affiliate-front-shared 1.3.24 → 1.3.26

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
@@ -4,7 +4,7 @@ var lt = (r, e, t) => Mn(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as s, Fragment as oe, jsxs as v } from "react/jsx-runtime";
5
5
  import * as $ from "react";
6
6
  import ft, { createContext as At, useContext as xt, useEffect as K, useState as M, useRef as wt, useMemo as we } from "react";
7
- import { Menu as Fr, DatePicker as jr, Table as Vt, Dropdown as Pe, Select as Ft, Button as De, Input as _e, Modal as Br, notification as ht, Form as Ae, Checkbox as Pn, Skeleton as zn, Pagination as Hn, Spin as Ct, Breadcrumb as Rn, Empty as _r, Tabs as Ur, Tooltip as Nn, Upload as An } from "antd";
7
+ import { Menu as Fr, DatePicker as jr, Table as Vt, Dropdown as Pe, Select as Ft, Button as Oe, Input as _e, Modal as Br, notification as ht, Form as Ae, Checkbox as Pn, Skeleton as zn, Pagination as Hn, Spin as Ct, Breadcrumb as Rn, Empty as _r, Tabs as Ur, Tooltip as Nn, Upload as An } from "antd";
8
8
  import m, { keyframes as Vn } from "styled-components";
9
9
  import { useNavigate as ze, useLocation as Ue, useSearchParams as Fn, useParams as jn, UNSAFE_NavigationContext as Bn } from "react-router";
10
10
  import { create as Gr, useStore as _n } from "zustand";
@@ -22,14 +22,14 @@ function Cl({
22
22
  }) {
23
23
  return /* @__PURE__ */ s(Wr.Provider, { value: r, children: e });
24
24
  }
25
- function Ce() {
25
+ function De() {
26
26
  return xt(Wr);
27
27
  }
28
- let Se = (r) => r;
28
+ let Ce = (r) => r;
29
29
  function tr(r) {
30
- Se = r;
30
+ Ce = r;
31
31
  }
32
- const j = (r, e) => Se(`general.${r}`, e), J = (r, e) => Se(`actions.${r}`, e), G = (r, e) => Se(`authentication.${r}`, e), de = (r, e) => Se(`months.${r}`, e), Re = (r, e) => Se(`date.${r}`, e), Te = (r, e) => Se(`weekDays.${r}`, e), Jn = (r, e) => Se(`noData.${r}`, e), rr = (r, e) => Se(`comingSoon.${r}`, e);
32
+ const j = (r, e) => Ce(`general.${r}`, e), J = (r, e) => Ce(`actions.${r}`, e), G = (r, e) => Ce(`authentication.${r}`, e), de = (r, e) => Ce(`months.${r}`, e), Re = (r, e) => Ce(`date.${r}`, e), Te = (r, e) => Ce(`weekDays.${r}`, e), Jn = (r, e) => Ce(`noData.${r}`, e), rr = (r, e) => Ce(`comingSoon.${r}`, e);
33
33
  function Sl({ t: r, children: e }) {
34
34
  return tr(r), K(() => {
35
35
  tr(r);
@@ -154,8 +154,8 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
154
154
  var p;
155
155
  try {
156
156
  l(!0), n(null);
157
- const h = await r();
158
- n(h), (p = h == null ? void 0 : h.data) != null && p.items && o(h.data.items);
157
+ const f = await r();
158
+ n(f), (p = f == null ? void 0 : f.data) != null && p.items && o(f.data.items);
159
159
  } catch {
160
160
  c("Failed to fetch data");
161
161
  } finally {
@@ -272,7 +272,7 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
272
272
  position: absolute !important;
273
273
  z-index: 10000;
274
274
  `, si = ({ closeProfileDropdown: r }) => {
275
- const e = ze(), { getCustomers: t, postSelectedCustomer: n } = Ce(), { storedThemeMode: i, logout: o, setThemeMode: a, user: l } = He(), { i18n: d } = Un();
275
+ const e = ze(), { getCustomers: t, postSelectedCustomer: n } = De(), { storedThemeMode: i, logout: o, setThemeMode: a, user: l } = He(), { i18n: d } = Un();
276
276
  function c() {
277
277
  o(), e("/authorization/login");
278
278
  }
@@ -282,8 +282,8 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
282
282
  const p = (y, O) => /* @__PURE__ */ v(ii, { children: [
283
283
  /* @__PURE__ */ s(oi, { children: y }),
284
284
  O && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(ni, {}) })
285
- ] }), { response: h } = Yr(t ?? (() => Promise.resolve({ data: [] })), []);
286
- async function f(y) {
285
+ ] }), { response: f } = Yr(t ?? (() => Promise.resolve({ data: [] })), []);
286
+ async function h(y) {
287
287
  if (!n) return;
288
288
  const P = (await n(y)).data.value;
289
289
  localStorage.setItem("useToken", P.token), localStorage.setItem("userData", JSON.stringify(P));
@@ -321,7 +321,7 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
321
321
  ) }, "30-3")
322
322
  ] }, "30"),
323
323
  /* @__PURE__ */ s(te.Divider, {}),
324
- /* @__PURE__ */ s(te.SubMenu, { title: "ConnectedAccounts", children: ((h == null ? void 0 : h.data) || []).map((y) => /* @__PURE__ */ s(te.Item, { onClick: () => f(y.id), children: p(y.name) }, y.id)) }, "40"),
324
+ /* @__PURE__ */ s(te.SubMenu, { title: "ConnectedAccounts", children: ((f == null ? void 0 : f.data) || []).map((y) => /* @__PURE__ */ s(te.Item, { onClick: () => h(y.id), children: p(y.name) }, y.id)) }, "40"),
325
325
  /* @__PURE__ */ s(te.Divider, {}),
326
326
  /* @__PURE__ */ s(te.Item, { onClick: c, children: "LogOut" }, "100")
327
327
  ]
@@ -657,14 +657,14 @@ const Di = m.span`
657
657
  /* @__PURE__ */ s(vi, { backgroundcolor: i, children: /* @__PURE__ */ s("img", { src: t, alt: "logo" }) })
658
658
  ] });
659
659
  };
660
- var Oe = /* @__PURE__ */ ((r) => (r[r.TABLE = 0] = "TABLE", r[r.LIST = 1] = "LIST", r[r.BOARD = 2] = "BOARD", r))(Oe || {}), se = /* @__PURE__ */ ((r) => (r[r.ASC = 0] = "ASC", r[r.DESC = 1] = "DESC", r))(se || {}), Ve = /* @__PURE__ */ ((r) => (r[r.NONE = 0] = "NONE", r[r.COLUMN = 1] = "COLUMN", r[r.TYPE = 2] = "TYPE", r[r.VALUE = 3] = "VALUE", r))(Ve || {}), be = /* @__PURE__ */ ((r) => (r[r.INPUT = 0] = "INPUT", r[r.SELECT = 1] = "SELECT", r[r.TwoComponentSelect = 2] = "TwoComponentSelect", r[r.DATEPICKER = 3] = "DATEPICKER", r[r.MULTISELECT = 4] = "MULTISELECT", r))(be || {});
660
+ var Le = /* @__PURE__ */ ((r) => (r[r.TABLE = 0] = "TABLE", r[r.LIST = 1] = "LIST", r[r.BOARD = 2] = "BOARD", r))(Le || {}), se = /* @__PURE__ */ ((r) => (r[r.ASC = 0] = "ASC", r[r.DESC = 1] = "DESC", r))(se || {}), Ve = /* @__PURE__ */ ((r) => (r[r.NONE = 0] = "NONE", r[r.COLUMN = 1] = "COLUMN", r[r.TYPE = 2] = "TYPE", r[r.VALUE = 3] = "VALUE", r))(Ve || {}), be = /* @__PURE__ */ ((r) => (r[r.INPUT = 0] = "INPUT", r[r.SELECT = 1] = "SELECT", r[r.TwoComponentSelect = 2] = "TwoComponentSelect", r[r.DATEPICKER = 3] = "DATEPICKER", r[r.MULTISELECT = 4] = "MULTISELECT", r))(be || {});
661
661
  const ir = (r) => {
662
662
  let e;
663
663
  const t = /* @__PURE__ */ new Set(), n = (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 f = e;
667
+ e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((h) => h(e, f));
668
668
  }
669
669
  }, i = () => e, l = { setState: n, getState: i, getInitialState: () => d, subscribe: (c) => (t.add(c), () => t.delete(c)) }, d = e = r(n, i, l);
670
670
  return l;
@@ -677,7 +677,7 @@ const ir = (r) => {
677
677
  sortItems: [],
678
678
  hideItems: {},
679
679
  groupByArr: [],
680
- activeTableView: Oe.TABLE
680
+ activeTableView: Le.TABLE
681
681
  }, $i = () => Ti((r, e) => ({
682
682
  columns: [],
683
683
  ...or,
@@ -687,7 +687,7 @@ const ir = (r) => {
687
687
  setSelectedConfig: (t) => r({ selectedConfig: t }),
688
688
  configsVersion: 0,
689
689
  bumpConfigsVersion: () => r((t) => ({ configsVersion: t.configsVersion + 1 })),
690
- hydrateFromStorage: (t, n = Oe.TABLE) => {
690
+ hydrateFromStorage: (t, n = Le.TABLE) => {
691
691
  if (e().isHydrated) return;
692
692
  const i = sessionStorage.getItem(t);
693
693
  if (i)
@@ -1214,27 +1214,27 @@ const _t = m.div`
1214
1214
  }
1215
1215
  );
1216
1216
  }, tn = ({ placement: r, children: e }) => {
1217
- const t = T((f) => f.columns), n = T((f) => f.sortItems), i = T((f) => f.setSortItems), o = n[0], [a, l] = M(""), [d, c] = M(
1217
+ const t = T((h) => h.columns), n = T((h) => h.sortItems), i = T((h) => h.setSortItems), o = n[0], [a, l] = M(""), [d, c] = M(
1218
1218
  (o == null ? void 0 : o.direction) === se.ASC ? se.ASC : se.DESC
1219
1219
  ), u = t.filter(
1220
- (f) => f.title.toLowerCase().includes(a.toLowerCase()) && f.sortable !== !1
1220
+ (h) => h.title.toLowerCase().includes(a.toLowerCase()) && h.sortable !== !1
1221
1221
  );
1222
- function p(f, g) {
1222
+ function p(h, g) {
1223
1223
  i([
1224
1224
  {
1225
- title: f.title,
1226
- dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
1225
+ title: h.title,
1226
+ dataIndex: h.dataIndex.charAt(0).toUpperCase() + h.dataIndex.slice(1),
1227
1227
  direction: g
1228
1228
  }
1229
1229
  ]);
1230
1230
  }
1231
- function h() {
1231
+ function f() {
1232
1232
  i([]);
1233
1233
  }
1234
1234
  return /* @__PURE__ */ s(
1235
1235
  Wi,
1236
1236
  {
1237
- overlay: (f) => /* @__PURE__ */ v(_t, { children: [
1237
+ overlay: (h) => /* @__PURE__ */ v(_t, { children: [
1238
1238
  /* @__PURE__ */ s(
1239
1239
  "input",
1240
1240
  {
@@ -1248,7 +1248,7 @@ const _t = m.div`
1248
1248
  "button",
1249
1249
  {
1250
1250
  onClick: () => {
1251
- g.title == (o == null ? void 0 : o.title) ? h() : p(g, d);
1251
+ g.title == (o == null ? void 0 : o.title) ? f() : p(g, d);
1252
1252
  },
1253
1253
  children: [
1254
1254
  g.title,
@@ -1291,12 +1291,12 @@ const _t = m.div`
1291
1291
  }
1292
1292
  );
1293
1293
  }, Wt = ({ placement: r, children: e, onSelect: t, CustomFilters: n }) => {
1294
- const [i, o] = M(!1), [a, l] = M(""), d = T((h) => h.columns), c = T((h) => h.filterItems), u = T((h) => h.setFilterItems);
1295
- function p(h) {
1296
- t ? t(h) : u([
1294
+ const [i, o] = M(!1), [a, l] = M(""), d = T((f) => f.columns), c = T((f) => f.filterItems), u = T((f) => f.setFilterItems);
1295
+ function p(f) {
1296
+ t ? t(f) : u([
1297
1297
  ...c,
1298
1298
  {
1299
- ...h,
1299
+ ...f,
1300
1300
  selectType: Ve.VALUE
1301
1301
  }
1302
1302
  ]), o(!1);
@@ -1314,10 +1314,10 @@ const _t = m.div`
1314
1314
  type: "text",
1315
1315
  placeholder: J("Search") + "...",
1316
1316
  value: a,
1317
- onChange: (h) => l(h.target.value)
1317
+ onChange: (f) => l(f.target.value)
1318
1318
  }
1319
1319
  ),
1320
- /* @__PURE__ */ s("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(a)).map((h, f) => /* @__PURE__ */ s("button", { onClick: () => p(h), children: h.title }, f)) }),
1320
+ /* @__PURE__ */ s("div", { children: d.filter((f) => f.filterable !== !1).filter((f) => !c.some((h) => h.title == f.title)).filter((f) => f.filterable !== !1).filter((f) => f.title.toLowerCase().includes(a)).map((f, h) => /* @__PURE__ */ s("button", { onClick: () => p(f), children: f.title }, h)) }),
1321
1321
  n && /* @__PURE__ */ s(
1322
1322
  n,
1323
1323
  {
@@ -1456,7 +1456,7 @@ const Zi = ({
1456
1456
  GridPageTopLeftComponent: l,
1457
1457
  noNeedSidebarResponsiveButton: d
1458
1458
  }) => {
1459
- const c = ze(), u = T((x) => x.filters), p = T((x) => x.hasCreateBtn), h = T((x) => x.setFilters), f = T((x) => x.setFilterItems), g = T((x) => x.setSortItems), [y, O] = M(() => {
1459
+ const c = ze(), u = T((x) => x.filters), p = T((x) => x.hasCreateBtn), f = T((x) => x.setFilters), h = T((x) => x.setFilterItems), g = T((x) => x.setSortItems), [y, O] = M(() => {
1460
1460
  var x, C;
1461
1461
  try {
1462
1462
  const I = sessionStorage.getItem(`grid-filters:${window.location.pathname}`);
@@ -1464,7 +1464,7 @@ const Zi = ({
1464
1464
  } catch {
1465
1465
  return !1;
1466
1466
  }
1467
- }), [P, S] = M(!1), { open: E } = Ie(), [k, H] = M(!1), { getMyFilters: U } = Ce(), Y = rn(), [B, F] = M([]), R = T((x) => x.selectedConfig), b = T((x) => x.setSelectedConfig), N = T((x) => x.configsVersion);
1467
+ }), [P, S] = M(!1), { open: E } = Ie(), [k, H] = M(!1), { getMyFilters: U } = De(), Y = rn(), [B, F] = M([]), R = T((x) => x.selectedConfig), b = T((x) => x.setSelectedConfig), N = T((x) => x.configsVersion);
1468
1468
  K(() => {
1469
1469
  Y == null || !U || U(String(Y)).then((x) => F(x.data ?? []));
1470
1470
  }, [Y, N, U]);
@@ -1472,10 +1472,10 @@ const Zi = ({
1472
1472
  const C = B.find((V) => V.id === x);
1473
1473
  if (!C) return;
1474
1474
  const { filterItems: I, sortItems: z } = JSON.parse(C.value);
1475
- f(I, !0), g(z), b({ id: C.id, name: C.name });
1475
+ h(I, !0), g(z), b({ id: C.id, name: C.name });
1476
1476
  }
1477
1477
  const D = en((x) => {
1478
- h({
1478
+ f({
1479
1479
  ...u,
1480
1480
  QuickSearch: x.target.value
1481
1481
  });
@@ -1932,7 +1932,7 @@ const Qi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
1932
1932
  display: flex;
1933
1933
  width: 100%;
1934
1934
  background: var(--color-bg-secondary, #232323);
1935
- `, re = m(De)`
1935
+ `, re = m(Oe)`
1936
1936
  display: flex;
1937
1937
  height: var(--size-800, 64px);
1938
1938
  padding: var(--spacing-200, 16px) var(--spacing-300, 24px);
@@ -1960,7 +1960,7 @@ const Qi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
1960
1960
  }
1961
1961
  `, to = m.div`
1962
1962
  width: 50%;
1963
- `, tt = m(De)`
1963
+ `, tt = m(Oe)`
1964
1964
  display: flex;
1965
1965
  height: var(--size-800, 64px);
1966
1966
  padding: var(--spacing-200, 16px) var(--spacing-300, 24px);
@@ -2024,7 +2024,7 @@ const Qi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
2024
2024
  background: var(--color-bg-brand-special, #141414) !important;
2025
2025
  color: var(--color-text-inverse-primary, #fff) !important;
2026
2026
  }
2027
- `, Dl = m(De)`
2027
+ `, Dl = m(Oe)`
2028
2028
  display: flex;
2029
2029
  height: var(--size-800, 64px);
2030
2030
  padding: var(--spacing-200, 16px) var(--spacing-300, 24px);
@@ -2299,14 +2299,14 @@ const oo = ({
2299
2299
  !0
2300
2300
  );
2301
2301
  };
2302
- function h(b) {
2302
+ function f(b) {
2303
2303
  n(
2304
2304
  t.map(
2305
2305
  (N) => N.title == r.title ? { ...b, selectType: Ve.VALUE } : N
2306
2306
  )
2307
2307
  );
2308
2308
  }
2309
- const f = en((b) => {
2309
+ const h = en((b) => {
2310
2310
  const N = b.target.value;
2311
2311
  n(
2312
2312
  t.map((_) => _.title == r.title ? { ..._, filterValue: N } : _),
@@ -2340,7 +2340,7 @@ const oo = ({
2340
2340
  type: "text",
2341
2341
  placeholder: "Search...",
2342
2342
  className: "filter-item-search",
2343
- onChange: f
2343
+ onChange: h
2344
2344
  }
2345
2345
  ),
2346
2346
  [be.SELECT]: /* @__PURE__ */ s("div", { children: (E = (S = r == null ? void 0 : r.filters) == null ? void 0 : S.options) == null ? void 0 : E.map((b) => /* @__PURE__ */ s("button", { onClick: () => l(b), children: b.name }, b.id)) }),
@@ -2417,7 +2417,7 @@ const oo = ({
2417
2417
  }
2418
2418
  );
2419
2419
  return /* @__PURE__ */ v(It, { children: [
2420
- /* @__PURE__ */ s(Wt, { placement: "bottomLeft", onSelect: h, children: /* @__PURE__ */ v("span", { children: [
2420
+ /* @__PURE__ */ s(Wt, { placement: "bottomLeft", onSelect: f, children: /* @__PURE__ */ v("span", { children: [
2421
2421
  /* @__PURE__ */ s(Qr, {}),
2422
2422
  r.title
2423
2423
  ] }) }),
@@ -2440,7 +2440,7 @@ const oo = ({
2440
2440
  /* @__PURE__ */ s("span", { onClick: y, children: /* @__PURE__ */ s(Yt, {}) })
2441
2441
  ] });
2442
2442
  }, po = () => {
2443
- const r = T((g) => g.filterItems), e = T((g) => g.sortItems), t = T((g) => g.setSelectedConfig), n = T((g) => g.resetStore), i = T((g) => g.selectedConfig), { deleteMyFilter: o } = Ce(), a = T((g) => g.bumpConfigsVersion), { open: l, store: d, close: c } = Ie(), u = rn();
2443
+ const r = T((g) => g.filterItems), e = T((g) => g.sortItems), t = T((g) => g.setSelectedConfig), n = T((g) => g.resetStore), i = T((g) => g.selectedConfig), { deleteMyFilter: o } = De(), a = T((g) => g.bumpConfigsVersion), { open: l, store: d, close: c } = Ie(), u = rn();
2444
2444
  async function p() {
2445
2445
  try {
2446
2446
  if (!i || !o) return;
@@ -2449,7 +2449,7 @@ const oo = ({
2449
2449
  console.log(g, "Error happened deleting configuration");
2450
2450
  }
2451
2451
  }
2452
- function h() {
2452
+ function f() {
2453
2453
  d({
2454
2454
  component: so,
2455
2455
  title: i ? "UpdateConfiguration" : "NameYourConfiguration",
@@ -2470,7 +2470,7 @@ const oo = ({
2470
2470
  }
2471
2471
  }), l();
2472
2472
  }
2473
- function f() {
2473
+ function h() {
2474
2474
  const g = JSON.stringify({ filterItems: r, sortItems: e });
2475
2475
  d({
2476
2476
  component: oo,
@@ -2503,8 +2503,8 @@ const oo = ({
2503
2503
  "AddFilter"
2504
2504
  ] }) }) }),
2505
2505
  /* @__PURE__ */ v(Vi, { children: [
2506
- /* @__PURE__ */ s("button", { onClick: f, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2507
- i && /* @__PURE__ */ s("button", { onClick: h, children: "DeleteConfiguration" }),
2506
+ /* @__PURE__ */ s("button", { onClick: h, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2507
+ i && /* @__PURE__ */ s("button", { onClick: f, children: "DeleteConfiguration" }),
2508
2508
  /* @__PURE__ */ v("button", { onClick: n, children: [
2509
2509
  /* @__PURE__ */ s(nn, {}),
2510
2510
  "ResetConditions"
@@ -3019,33 +3019,33 @@ function Co({
3019
3019
  }
3020
3020
  const So = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.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__ */ $.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 }));
3021
3021
  function ko({ col: r }) {
3022
- const [e, t] = M(!1), n = T((f) => f.filterItems), i = T((f) => f.hideItems), o = T((f) => f.setFilterItems), a = T((f) => f.setSortItems), l = T((f) => f.setHideItems);
3023
- function d(f, g) {
3022
+ const [e, t] = M(!1), n = T((h) => h.filterItems), i = T((h) => h.hideItems), o = T((h) => h.setFilterItems), a = T((h) => h.setSortItems), l = T((h) => h.setHideItems);
3023
+ function d(h, g) {
3024
3024
  a([
3025
3025
  {
3026
- title: f.title,
3027
- dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
3026
+ title: h.title,
3027
+ dataIndex: h.dataIndex.charAt(0).toUpperCase() + h.dataIndex.slice(1),
3028
3028
  direction: g
3029
3029
  }
3030
3030
  ]);
3031
3031
  }
3032
- function c(f) {
3033
- const g = n.filter((y) => f.title != y.title);
3032
+ function c(h) {
3033
+ const g = n.filter((y) => h.title != y.title);
3034
3034
  o([
3035
3035
  ...g,
3036
3036
  {
3037
- ...f,
3037
+ ...h,
3038
3038
  selectType: Ve.VALUE
3039
3039
  }
3040
3040
  ]);
3041
3041
  }
3042
- function u(f, g) {
3042
+ function u(h, g) {
3043
3043
  l({
3044
3044
  ...i,
3045
- [f.dataIndex]: !0
3045
+ [h.dataIndex]: !0
3046
3046
  });
3047
3047
  }
3048
- const p = () => t(!1), h = [
3048
+ const p = () => t(!1), f = [
3049
3049
  { icon: /* @__PURE__ */ s(gt, {}), text: j("Filter"), action: () => c(r) },
3050
3050
  {
3051
3051
  icon: /* @__PURE__ */ s(Ut, {}),
@@ -3067,14 +3067,14 @@ function ko({ col: r }) {
3067
3067
  Pe,
3068
3068
  {
3069
3069
  placement: "bottomLeft",
3070
- popupRender: () => /* @__PURE__ */ s(fo, { children: h.map(({ icon: f, text: g, action: y }) => /* @__PURE__ */ v(
3070
+ popupRender: () => /* @__PURE__ */ s(fo, { children: f.map(({ icon: h, text: g, action: y }) => /* @__PURE__ */ v(
3071
3071
  "button",
3072
3072
  {
3073
3073
  onClick: () => {
3074
3074
  y(), p();
3075
3075
  },
3076
3076
  children: [
3077
- f,
3077
+ h,
3078
3078
  g
3079
3079
  ]
3080
3080
  },
@@ -3083,7 +3083,7 @@ function ko({ col: r }) {
3083
3083
  trigger: ["click"],
3084
3084
  open: e,
3085
3085
  onOpenChange: t,
3086
- getPopupContainer: (f) => (f == null ? void 0 : f.parentElement) ?? document.body,
3086
+ getPopupContainer: (h) => (h == null ? void 0 : h.parentElement) ?? document.body,
3087
3087
  children: /* @__PURE__ */ s("th", { className: e ? "active" : "", children: /* @__PURE__ */ s("span", { children: r.title }) })
3088
3088
  }
3089
3089
  );
@@ -3142,7 +3142,7 @@ const Lo = m.div`
3142
3142
  line-height: var(--typo-caption-lineHeight-medium, 18px);
3143
3143
  letter-spacing: var(--typo-caption-spacing-medium, 0.1px);
3144
3144
  `;
3145
- m(De)`
3145
+ m(Oe)`
3146
3146
  display: flex;
3147
3147
  height: var(--size-400, 32px);
3148
3148
  padding: 8px;
@@ -3184,7 +3184,7 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3184
3184
  noPagination: d,
3185
3185
  noDataProps: c
3186
3186
  }) => {
3187
- const u = T((E) => E.filters), p = T((E) => E.groupByArr), h = T((E) => E.setFilters), f = we(() => p.length > 0 ? e.filter(
3187
+ const u = T((E) => E.filters), p = T((E) => E.groupByArr), f = T((E) => E.setFilters), h = we(() => p.length > 0 ? e.filter(
3188
3188
  (E) => !p.some((k) => k.dataIndex == E.dataIndex)
3189
3189
  ) : e, [e, p]), { isTableGroupped: g, isTableSubGroupped: y } = we(
3190
3190
  () => ({
@@ -3206,35 +3206,35 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3206
3206
  return n;
3207
3207
  }, [n, p]);
3208
3208
  function P(E) {
3209
- h({
3209
+ f({
3210
3210
  ...u,
3211
3211
  PageSize: E,
3212
3212
  Page: 1
3213
3213
  });
3214
3214
  }
3215
3215
  function S(E) {
3216
- h({
3216
+ f({
3217
3217
  ...u,
3218
3218
  Page: E
3219
3219
  });
3220
3220
  }
3221
3221
  return /* @__PURE__ */ v(uo, { children: [
3222
3222
  /* @__PURE__ */ v("table", { children: [
3223
- r != Oe.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ v("tr", { children: [
3224
- f.map((E) => /* @__PURE__ */ s(ko, { col: E }, E.dataIndex)),
3223
+ r != Le.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ v("tr", { children: [
3224
+ h.map((E) => /* @__PURE__ */ s(ko, { col: E }, E.dataIndex)),
3225
3225
  /* @__PURE__ */ s("th", {})
3226
3226
  ] }) }),
3227
3227
  /* @__PURE__ */ s("tbody", { children: i ? /* @__PURE__ */ s(
3228
3228
  yo,
3229
3229
  {
3230
3230
  rowLength: o.pageSize,
3231
- columnLength: f.length
3231
+ columnLength: h.length
3232
3232
  }
3233
- ) : (O == null ? void 0 : O.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: f.length, children: /* @__PURE__ */ s($o, { ...c }) }) }) : /* @__PURE__ */ s(oe, { children: g ? /* @__PURE__ */ s(
3233
+ ) : (O == null ? void 0 : O.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: h.length, children: /* @__PURE__ */ s($o, { ...c }) }) }) : /* @__PURE__ */ s(oe, { children: g ? /* @__PURE__ */ s(
3234
3234
  wo,
3235
3235
  {
3236
3236
  dataSource: O,
3237
- columns: f,
3237
+ columns: h,
3238
3238
  isSubGroupped: y,
3239
3239
  getGroupLength: mo,
3240
3240
  rowKey: t,
@@ -3244,7 +3244,7 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3244
3244
  Zt,
3245
3245
  {
3246
3246
  rows: O,
3247
- columns: f,
3247
+ columns: h,
3248
3248
  rowKey: t,
3249
3249
  onRowClick: l
3250
3250
  }
@@ -3613,7 +3613,7 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3613
3613
  line-height: var(--typo-body-lineHeight-small, 20px); /* 125% */
3614
3614
  letter-spacing: var(--typo-body-spacing-small, 0.15px);
3615
3615
  padding-bottom: var(--spacing-400, 32px) !important;
3616
- `, Fo = m(De)`
3616
+ `, Fo = m(Oe)`
3617
3617
  border-radius: var(--border-radius-025, 2px);
3618
3618
  background: var(--color-bg-brand-special, #02e0ae);
3619
3619
  display: flex;
@@ -3702,7 +3702,7 @@ const ue = m.div`
3702
3702
  flex-direction: column;
3703
3703
  border-top: 1px solid black;
3704
3704
  `;
3705
- m(De)`
3705
+ m(Oe)`
3706
3706
  display: flex;
3707
3707
  height: var(--size-800, 64px);
3708
3708
  padding: var(--spacing-200, 16px) var(--spacing-300, 24px);
@@ -3830,7 +3830,7 @@ const an = m.span`
3830
3830
  letter-spacing: var(--typo-body-spacing-small, 0.00938rem);
3831
3831
  }
3832
3832
  }
3833
- `, ke = m.div`
3833
+ `, Se = m.div`
3834
3834
  display: flex;
3835
3835
  flex-direction: column;
3836
3836
  gap: 8px;
@@ -4023,17 +4023,17 @@ const an = m.span`
4023
4023
  }) => {
4024
4024
  const [a, l] = M(), [d, c] = M([]);
4025
4025
  async function u() {
4026
- var p, h, f;
4026
+ var p, f, h;
4027
4027
  try {
4028
4028
  const g = await e({ confirmationToken: r, code: a, id: i });
4029
4029
  (p = g == null ? void 0 : g.data) != null && p.success && (n(!1), o((y) => !y));
4030
4030
  } catch (g) {
4031
- const y = je((f = (h = g == null ? void 0 : g.response) == null ? void 0 : h.data) == null ? void 0 : f.errors);
4031
+ const y = je((h = (f = g == null ? void 0 : g.response) == null ? void 0 : f.data) == null ? void 0 : h.errors);
4032
4032
  c(y), console.log(g);
4033
4033
  }
4034
4034
  }
4035
4035
  return /* @__PURE__ */ v("div", { children: [
4036
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(ke, { children: [
4036
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
4037
4037
  G("EnterBackupCode"),
4038
4038
  /* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
4039
4039
  ] }) }),
@@ -4118,7 +4118,7 @@ const Zo = {
4118
4118
  isBlocked: o,
4119
4119
  onBlockStateClose: a
4120
4120
  }) => {
4121
- const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ce(), { setUser: c } = He(), [u, p] = M(""), [h, f] = M([]), [g, y] = M(!1);
4121
+ const { confirmContactInfo: l, confirmContactInfoBackup: d } = De(), { setUser: c } = He(), [u, p] = M(""), [f, h] = M([]), [g, y] = M(!1);
4122
4122
  function O(k) {
4123
4123
  p(k);
4124
4124
  }
@@ -4126,13 +4126,13 @@ const Zo = {
4126
4126
  const k = l;
4127
4127
  if (k)
4128
4128
  try {
4129
- f([]);
4129
+ h([]);
4130
4130
  const H = await k(t, u, i);
4131
4131
  c(H.data.value), E();
4132
4132
  } catch (H) {
4133
4133
  if (console.log(H), H.status === 400) {
4134
4134
  const U = H.response.data, Y = je(U.errors);
4135
- f(Y);
4135
+ h(Y);
4136
4136
  }
4137
4137
  }
4138
4138
  }
@@ -4140,18 +4140,18 @@ const Zo = {
4140
4140
  const H = d;
4141
4141
  if (H)
4142
4142
  try {
4143
- f([]);
4143
+ h([]);
4144
4144
  const U = await H(k);
4145
4145
  c(U.data.value);
4146
4146
  } catch (U) {
4147
4147
  if (console.log(U), U.status === 400) {
4148
4148
  const Y = U.response.data, B = je(Y.errors);
4149
- f(B);
4149
+ h(B);
4150
4150
  }
4151
4151
  }
4152
4152
  }
4153
4153
  function E() {
4154
- p(""), e(!1), f([]);
4154
+ p(""), e(!1), h([]);
4155
4155
  }
4156
4156
  return o ? /* @__PURE__ */ s(pr, { isOpen: o, onClose: a, children: /* @__PURE__ */ v(Ro, { children: [
4157
4157
  /* @__PURE__ */ v(No, { children: [
@@ -4181,7 +4181,7 @@ const Zo = {
4181
4181
  /* @__PURE__ */ v(
4182
4182
  zo,
4183
4183
  {
4184
- className: h.length > 0 ? "verification-error" : "",
4184
+ className: f.length > 0 ? "verification-error" : "",
4185
4185
  children: [
4186
4186
  /* @__PURE__ */ s(_e.OTP, { value: u, onChange: O }),
4187
4187
  /* @__PURE__ */ v(Ho, { children: [
@@ -4189,7 +4189,7 @@ const Zo = {
4189
4189
  " ",
4190
4190
  /* @__PURE__ */ s(an, { onClick: () => y(!0), children: G("EnterBackupCode") })
4191
4191
  ] }),
4192
- h.map((k) => /* @__PURE__ */ v("span", { children: [
4192
+ f.map((k) => /* @__PURE__ */ v("span", { children: [
4193
4193
  /* @__PURE__ */ s(it, {}),
4194
4194
  k.errors[0]
4195
4195
  ] }, k.name))
@@ -4210,14 +4210,14 @@ const Zo = {
4210
4210
  ] })
4211
4211
  ] }) });
4212
4212
  }, Qo = () => {
4213
- const { enableContactInfo: r, disableContactInfo: e } = Ce(), { setUser: t } = He(), [n, i] = M(!1), [o, a] = M(null), [l, d] = M(!1), c = async () => {
4214
- var h, f, g, y, O, P, S;
4213
+ const { enableContactInfo: r, disableContactInfo: e } = De(), { setUser: t } = He(), [n, i] = M(!1), [o, a] = M(null), [l, d] = M(!1), c = async () => {
4214
+ var f, h, g, y, O, P, S;
4215
4215
  if (r)
4216
4216
  try {
4217
4217
  d(!1);
4218
4218
  const E = await r();
4219
4219
  a({
4220
- token: (f = (h = E.data) == null ? void 0 : h.value) == null ? void 0 : f.token,
4220
+ token: (h = (f = E.data) == null ? void 0 : f.value) == null ? void 0 : h.token,
4221
4221
  id: (y = (g = E.data) == null ? void 0 : g.value) == null ? void 0 : y.id,
4222
4222
  mfaType: (P = (O = E.data) == null ? void 0 : O.value) == null ? void 0 : P.mfaType
4223
4223
  }), i(!0);
@@ -4228,8 +4228,8 @@ const Zo = {
4228
4228
  };
4229
4229
  async function u() {
4230
4230
  if (!e) return;
4231
- const h = await e();
4232
- t(h.data.value);
4231
+ const f = await e();
4232
+ t(f.data.value);
4233
4233
  }
4234
4234
  const p = () => {
4235
4235
  d(!1), i(!1);
@@ -4254,8 +4254,8 @@ const Zo = {
4254
4254
  };
4255
4255
  }, Xo = ({ close: r }) => {
4256
4256
  var P;
4257
- const { user: e } = He(), t = T((S) => S.columns), n = T((S) => S.groupByArr), i = T((S) => S.hideItems), o = T((S) => S.activeTableView), a = T((S) => S.setActiveTableView), l = T((S) => S.setGroupByArr), d = T((S) => S.setHideItems), c = T((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: h } = Qo();
4258
- function f(S) {
4257
+ const { user: e } = He(), t = T((S) => S.columns), n = T((S) => S.groupByArr), i = T((S) => S.hideItems), o = T((S) => S.activeTableView), a = T((S) => S.setActiveTableView), l = T((S) => S.setGroupByArr), d = T((S) => S.setHideItems), c = T((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: f } = Qo();
4258
+ function h(S) {
4259
4259
  const E = t.find((k) => k.dataIndex == S.value);
4260
4260
  l([E]);
4261
4261
  }
@@ -4282,8 +4282,8 @@ const Zo = {
4282
4282
  /* @__PURE__ */ v(
4283
4283
  "li",
4284
4284
  {
4285
- className: o == Oe.TABLE ? "active" : "",
4286
- onClick: () => a(Oe.TABLE),
4285
+ className: o == Le.TABLE ? "active" : "",
4286
+ onClick: () => a(Le.TABLE),
4287
4287
  children: [
4288
4288
  /* @__PURE__ */ s(dr, {}),
4289
4289
  /* @__PURE__ */ s("span", { children: j("Table") })
@@ -4293,8 +4293,8 @@ const Zo = {
4293
4293
  /* @__PURE__ */ v(
4294
4294
  "li",
4295
4295
  {
4296
- className: o == Oe.LIST ? "active" : "",
4297
- onClick: () => a(Oe.LIST),
4296
+ className: o == Le.LIST ? "active" : "",
4297
+ onClick: () => a(Le.LIST),
4298
4298
  children: [
4299
4299
  /* @__PURE__ */ s(gt, {}),
4300
4300
  /* @__PURE__ */ s("span", { children: j("List") })
@@ -4319,7 +4319,7 @@ const Zo = {
4319
4319
  j("NoGrouping")
4320
4320
  ] }),
4321
4321
  value: ((P = n[0]) == null ? void 0 : P.dataIndex) || null,
4322
- onChange: f
4322
+ onChange: h
4323
4323
  }
4324
4324
  )
4325
4325
  ] }) }),
@@ -4353,7 +4353,7 @@ const Zo = {
4353
4353
  /* @__PURE__ */ s(nn, {})
4354
4354
  ] })
4355
4355
  ] }),
4356
- /* @__PURE__ */ s(Jo, { ...h })
4356
+ /* @__PURE__ */ s(Jo, { ...f })
4357
4357
  ] });
4358
4358
  }, ea = ({
4359
4359
  columns: r,
@@ -4368,8 +4368,8 @@ const Zo = {
4368
4368
  pagination: c,
4369
4369
  CustomFilters: u,
4370
4370
  initialFilterValues: p,
4371
- tableAdditionalFields: h,
4372
- createIsModal: f,
4371
+ tableAdditionalFields: f,
4372
+ createIsModal: h,
4373
4373
  editButton: g,
4374
4374
  noPagination: y,
4375
4375
  noDataProps: O,
@@ -4408,8 +4408,8 @@ const Zo = {
4408
4408
  exportButton: P,
4409
4409
  setisSettingPopupVisible: V,
4410
4410
  CustomFilters: u,
4411
- tableAdditionalFields: h,
4412
- createIsModal: f,
4411
+ tableAdditionalFields: f,
4412
+ createIsModal: h,
4413
4413
  GridPageTopLeftComponent: i
4414
4414
  }
4415
4415
  ),
@@ -4441,7 +4441,7 @@ const Zo = {
4441
4441
  {
4442
4442
  noPagination: y,
4443
4443
  editButton: g,
4444
- createIsModal: f,
4444
+ createIsModal: h,
4445
4445
  rowKey: d || "id",
4446
4446
  columns: [
4447
4447
  {
@@ -4479,9 +4479,9 @@ const Zo = {
4479
4479
  hideFooter: c,
4480
4480
  showCloseButton: u,
4481
4481
  onOk: p,
4482
- onCancel: h
4483
- } = e, f = () => {
4484
- h == null || h();
4482
+ onCancel: f
4483
+ } = e, h = () => {
4484
+ f == null || f();
4485
4485
  }, g = () => {
4486
4486
  p == null || p();
4487
4487
  };
@@ -4497,7 +4497,7 @@ const Zo = {
4497
4497
  children: [
4498
4498
  o && /* @__PURE__ */ s(o, { ...a }),
4499
4499
  !c && /* @__PURE__ */ v(et, { children: [
4500
- /* @__PURE__ */ s(re, { onClick: f, children: d == null ? void 0 : d.cancelText }),
4500
+ /* @__PURE__ */ s(re, { onClick: h, children: d == null ? void 0 : d.cancelText }),
4501
4501
  /* @__PURE__ */ s(
4502
4502
  to,
4503
4503
  {
@@ -4545,14 +4545,14 @@ const Zo = {
4545
4545
  const l = n;
4546
4546
  if (l)
4547
4547
  try {
4548
- const h = await l();
4549
- (c = (d = h.data) == null ? void 0 : d.value) != null && c.isTwoFactorRequired ? (t(h.data.value.token), o(h.data.value.id), e(Be.VERIFY_EMAIL_CODE)) : ((u = h == null ? void 0 : h.data) != null && u.success && !((p = h == null ? void 0 : h.data) != null && p.value) && i((f) => !f), r());
4550
- } catch (h) {
4551
- console.error("Failed to toggle 2FA:", h);
4548
+ const f = await l();
4549
+ (c = (d = f.data) == null ? void 0 : d.value) != null && c.isTwoFactorRequired ? (t(f.data.value.token), o(f.data.value.id), e(Be.VERIFY_EMAIL_CODE)) : ((u = f == null ? void 0 : f.data) != null && u.success && !((p = f == null ? void 0 : f.data) != null && p.value) && i((h) => !h), r());
4550
+ } catch (f) {
4551
+ console.error("Failed to toggle 2FA:", f);
4552
4552
  }
4553
4553
  }
4554
4554
  return /* @__PURE__ */ v("div", { children: [
4555
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(ke, { children: [
4555
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
4556
4556
  G("SetupTwoFactorAuthentication"),
4557
4557
  /* @__PURE__ */ s(pe, { children: G("SetupTwoFactorAuthenticationDesc") })
4558
4558
  ] }) }),
@@ -4567,25 +4567,25 @@ const Zo = {
4567
4567
  /* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(re, { onClick: r, children: J("Cancel") }) })
4568
4568
  ] });
4569
4569
  }, ra = ({ onClose: r, setCurrentStep: e, setBackupCodes: t, setRefetch: n }) => {
4570
- const { verifyMFA: i } = Ce(), [o, a] = M(""), [l, d] = M([]);
4570
+ const { verifyMFA: i } = De(), [o, a] = M(""), [l, d] = M([]);
4571
4571
  function c(p) {
4572
4572
  a(p);
4573
4573
  }
4574
4574
  async function u() {
4575
- var h;
4575
+ var f;
4576
4576
  const p = i;
4577
4577
  if (p)
4578
4578
  try {
4579
- const f = await p(o);
4580
- (h = f.data) != null && h.success && (e(Be.BACKUP_CODES), t(f.data.value.recoveryCodes));
4581
- } catch (f) {
4582
- console.log(f);
4579
+ const h = await p(o);
4580
+ (f = h.data) != null && f.success && (e(Be.BACKUP_CODES), t(h.data.value.recoveryCodes));
4581
+ } catch (h) {
4582
+ console.log(h);
4583
4583
  } finally {
4584
- n((f) => f + 1);
4584
+ n((h) => h + 1);
4585
4585
  }
4586
4586
  }
4587
4587
  return /* @__PURE__ */ v("div", { children: [
4588
- /* @__PURE__ */ v(ke, { children: [
4588
+ /* @__PURE__ */ v(Se, { children: [
4589
4589
  G("EnterVerificationCode"),
4590
4590
  /* @__PURE__ */ s(pe, { children: G("YouMaySeeVerificationCode") })
4591
4591
  ] }),
@@ -4611,7 +4611,7 @@ const Zo = {
4611
4611
  G("Other")
4612
4612
  ];
4613
4613
  return /* @__PURE__ */ v("div", { children: [
4614
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(ke, { children: [
4614
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
4615
4615
  G("SetupTwoFactorAuthentication"),
4616
4616
  /* @__PURE__ */ v(pe, { children: [
4617
4617
  " ",
@@ -5057,8 +5057,8 @@ class Ne {
5057
5057
  a: i
5058
5058
  }) {
5059
5059
  if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof i == "number" ? i : 1, t <= 0) {
5060
- const h = ee(n * 255);
5061
- this.r = h, this.g = h, this.b = h;
5060
+ const f = ee(n * 255);
5061
+ this.r = f, this.g = f, this.b = f;
5062
5062
  }
5063
5063
  let o = 0, a = 0, l = 0;
5064
5064
  const d = e / 60, c = (1 - Math.abs(2 * n - 1)) * t, u = c * (1 - Math.abs(d % 2 - 1));
@@ -5261,11 +5261,11 @@ function vn(r) {
5261
5261
  var c = Qt(e), u = c.firstChild;
5262
5262
  if (n) {
5263
5263
  if (l) {
5264
- var p = (e.styles || Xt(c)).filter(function(h) {
5265
- if (!["prepend", "prependQueue"].includes(h.getAttribute(wr)))
5264
+ var p = (e.styles || Xt(c)).filter(function(f) {
5265
+ if (!["prepend", "prependQueue"].includes(f.getAttribute(wr)))
5266
5266
  return !1;
5267
- var f = Number(h.getAttribute(Cr) || 0);
5268
- return o >= f;
5267
+ var h = Number(f.getAttribute(Cr) || 0);
5268
+ return o >= h;
5269
5269
  });
5270
5270
  if (p.length)
5271
5271
  return c.insertBefore(d, p[p.length - 1].nextSibling), d;
@@ -5510,7 +5510,7 @@ function Ga() {
5510
5510
  var Wa = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
5511
5511
  Cn(Mt.primary);
5512
5512
  var ot = /* @__PURE__ */ $.forwardRef(function(r, e) {
5513
- var t = r.className, n = r.icon, i = r.spin, o = r.rotate, a = r.tabIndex, l = r.onClick, d = r.twoToneColor, c = un(r, Wa), u = $.useContext(dn), p = u.prefixCls, h = p === void 0 ? "anticon" : p, f = u.rootClassName, g = ya(f, h, ie(ie({}, "".concat(h, "-").concat(n.name), !!n.name), "".concat(h, "-spin"), !!i || n.name === "loading"), t), y = a;
5513
+ var t = r.className, n = r.icon, i = r.spin, o = r.rotate, a = r.tabIndex, l = r.onClick, d = r.twoToneColor, c = un(r, Wa), u = $.useContext(dn), p = u.prefixCls, f = p === void 0 ? "anticon" : p, h = u.rootClassName, g = ya(h, f, ie(ie({}, "".concat(f, "-").concat(n.name), !!n.name), "".concat(f, "-spin"), !!i || n.name === "loading"), t), y = a;
5514
5514
  y === void 0 && l && (y = -1);
5515
5515
  var O = o ? {
5516
5516
  msTransform: "rotate(".concat(o, "deg)"),
@@ -5549,7 +5549,7 @@ var qa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
5549
5549
  }, kn = /* @__PURE__ */ $.forwardRef(Za);
5550
5550
  process.env.NODE_ENV !== "production" && (kn.displayName = "DownloadOutlined");
5551
5551
  const Ja = ({ onClose: r, setCurrentStep: e }) => {
5552
- const { initiateMFA: t } = Ce(), [n, i] = M(null);
5552
+ const { initiateMFA: t } = De(), [n, i] = M(null);
5553
5553
  async function o() {
5554
5554
  if (t)
5555
5555
  try {
@@ -5562,7 +5562,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5562
5562
  return K(() => {
5563
5563
  o();
5564
5564
  }, []), /* @__PURE__ */ s("div", { children: n ? /* @__PURE__ */ v(oe, { children: [
5565
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(ke, { children: G("EnterAuthenticationCode") }) }),
5565
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(Se, { children: G("EnterAuthenticationCode") }) }),
5566
5566
  /* @__PURE__ */ s(ia, { children: /* @__PURE__ */ s("img", { src: `data:image/png;base64,${n.qrCodeImage}` }) }),
5567
5567
  /* @__PURE__ */ s("br", {}),
5568
5568
  /* @__PURE__ */ v(sa, { children: [
@@ -5589,8 +5589,8 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5589
5589
  )
5590
5590
  ] }) })
5591
5591
  ] }) : /* @__PURE__ */ s(Jt, { children: /* @__PURE__ */ s(Ct, {}) }) });
5592
- }, Qa = ({ onClose: r, setRefetch: e }) => {
5593
- const { disableMFA: t } = Ce(), [n, i] = M("");
5592
+ }, Qa = ({ onClose: r, setRefetch: e, disableMFAService: t }) => {
5593
+ const [n, i] = M("");
5594
5594
  function o(l) {
5595
5595
  i(l.target.value);
5596
5596
  }
@@ -5605,7 +5605,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5605
5605
  }
5606
5606
  }
5607
5607
  return /* @__PURE__ */ v("div", { children: [
5608
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(ke, { children: [
5608
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
5609
5609
  G("DisableTwoFactor"),
5610
5610
  /* @__PURE__ */ s(pe, { children: G("DisableTwoFactorDesc") })
5611
5611
  ] }) }),
@@ -5629,7 +5629,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5629
5629
  ] })
5630
5630
  ] });
5631
5631
  }, Xa = ({ onClose: r, confirmationToken: e, setRefetch: t, idOf2FA: n }) => {
5632
- const { confirmTwoFactor: i } = Ce(), [o, a] = M(""), [l, d] = M([]);
5632
+ const { confirmTwoFactor: i } = De(), [o, a] = M(""), [l, d] = M([]);
5633
5633
  function c(p) {
5634
5634
  a(p);
5635
5635
  }
@@ -5648,7 +5648,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5648
5648
  }
5649
5649
  }
5650
5650
  return /* @__PURE__ */ s("div", { children: e ? /* @__PURE__ */ v(oe, { children: [
5651
- /* @__PURE__ */ v(ke, { children: [
5651
+ /* @__PURE__ */ v(Se, { children: [
5652
5652
  /* @__PURE__ */ s("div", { children: G("EnterVerificationCode") }),
5653
5653
  /* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
5654
5654
  ] }),
@@ -5681,11 +5681,11 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5681
5681
  a.href = o, a.download = "backup-codes.txt", a.click(), URL.revokeObjectURL(o);
5682
5682
  };
5683
5683
  return /* @__PURE__ */ v("div", { children: [
5684
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(ke, { children: [
5684
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
5685
5685
  G("EnterVerificationCode"),
5686
5686
  /* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
5687
5687
  ] }) }),
5688
- /* @__PURE__ */ s(Go, { children: /* @__PURE__ */ s(De, { type: "primary", icon: /* @__PURE__ */ s(kn, {}), onClick: t, children: G("DownloadBackupCodes") }) }),
5688
+ /* @__PURE__ */ s(Go, { children: /* @__PURE__ */ s(Oe, { type: "primary", icon: /* @__PURE__ */ s(kn, {}), onClick: t, children: G("DownloadBackupCodes") }) }),
5689
5689
  /* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(re, { onClick: r, children: J("Cancel") }) })
5690
5690
  ] });
5691
5691
  };
@@ -5695,14 +5695,15 @@ const Il = ({
5695
5695
  setIsOpen: e,
5696
5696
  modal: t = 0,
5697
5697
  setRefetch: n,
5698
- enableTwoFactorService: i
5698
+ enableTwoFactorService: i,
5699
+ disableMFAService: o
5699
5700
  }) => {
5700
- const [o, a] = M(t), [l, d] = M(""), [c, u] = M(), [p, h] = M("");
5701
- function f() {
5701
+ const [a, l] = M(t), [d, c] = M(""), [u, p] = M(), [f, h] = M("");
5702
+ function g() {
5702
5703
  e(!1);
5703
5704
  }
5704
- const g = we(() => {
5705
- switch (o) {
5705
+ const y = we(() => {
5706
+ switch (a) {
5706
5707
  case 0:
5707
5708
  return ur;
5708
5709
  case 1:
@@ -5720,36 +5721,37 @@ const Il = ({
5720
5721
  default:
5721
5722
  return ur;
5722
5723
  }
5723
- }, [o]), y = we(() => {
5724
- switch (o) {
5724
+ }, [a]), O = we(() => {
5725
+ switch (a) {
5725
5726
  case 0:
5726
5727
  return {
5727
- onClose: f,
5728
- setCurrentStep: a,
5729
- setConfirmationToken: d,
5728
+ onClose: g,
5729
+ setCurrentStep: l,
5730
+ setConfirmationToken: c,
5730
5731
  setRefetch: n,
5731
- setIdOf2FA: u,
5732
- enableTwoFactorService: i
5732
+ setIdOf2FA: p,
5733
+ enableTwoFactorService: i,
5734
+ disableMFAService: o
5733
5735
  };
5734
5736
  case 1:
5735
- return { onClose: f, setCurrentStep: a };
5737
+ return { onClose: g, setCurrentStep: l };
5736
5738
  case 2:
5737
- return { onClose: f, setCurrentStep: a };
5739
+ return { onClose: g, setCurrentStep: l };
5738
5740
  case 3:
5739
- return { onClose: f, setCurrentStep: a, setBackupCodes: h, setRefetch: n };
5741
+ return { onClose: g, setCurrentStep: l, setBackupCodes: h, setRefetch: n };
5740
5742
  case 4:
5741
- return { onClose: f, setCurrentStep: a, confirmationToken: l, setRefetch: n, idOf2FA: c };
5743
+ return { onClose: g, setCurrentStep: l, confirmationToken: d, setRefetch: n, idOf2FA: u };
5742
5744
  case 5:
5743
- return { onClose: f, setRefetch: n };
5745
+ return { onClose: g, setRefetch: n, disableMFAService: o };
5744
5746
  case 6:
5745
- return { onClose: f, backupCodes: p };
5747
+ return { onClose: g, backupCodes: f };
5746
5748
  case 7:
5747
- return { onClose: f, confirmationToken: l, setRefetch: n, idOf2FA: c };
5749
+ return { onClose: g, confirmationToken: d, setRefetch: n, idOf2FA: u };
5748
5750
  default:
5749
- return { onClose: f };
5751
+ return { onClose: g };
5750
5752
  }
5751
- }, [o, l, p]);
5752
- return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: f, hideFooter: !0, children: /* @__PURE__ */ s(g, { ...y }) });
5753
+ }, [a, d, f]);
5754
+ return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: g, hideFooter: !0, children: /* @__PURE__ */ s(y, { ...O }) });
5753
5755
  }, ts = m.div`
5754
5756
  height: var(--size-800, 4rem);
5755
5757
  display: flex;
@@ -5851,7 +5853,7 @@ const as = {
5851
5853
  setVisible: d,
5852
5854
  visible: c
5853
5855
  }) => {
5854
- const [u, p] = M(""), [h, f] = M(!0), [g, y] = M(60), [O, P] = M([]), [S, E] = M(!1);
5856
+ const [u, p] = M(""), [f, h] = M(!0), [g, y] = M(60), [O, P] = M([]), [S, E] = M(!1);
5855
5857
  async function k() {
5856
5858
  var B, F, R;
5857
5859
  if (u)
@@ -5867,7 +5869,7 @@ const as = {
5867
5869
  if (e)
5868
5870
  try {
5869
5871
  const B = await e(t, o);
5870
- B.data.success && (n(B), f(!0), y(60));
5872
+ B.data.success && (n(B), h(!0), y(60));
5871
5873
  } catch (B) {
5872
5874
  console.log("Error in OTP resend", B);
5873
5875
  }
@@ -5879,12 +5881,12 @@ const as = {
5879
5881
  p(B);
5880
5882
  }
5881
5883
  return K(() => {
5882
- if (!h) return;
5884
+ if (!f) return;
5883
5885
  const B = setInterval(() => {
5884
- y((F) => F <= 1 ? (clearInterval(B), f(!1), 0) : F - 1);
5886
+ y((F) => F <= 1 ? (clearInterval(B), h(!1), 0) : F - 1);
5885
5887
  }, 1e3);
5886
5888
  return () => clearInterval(B);
5887
- }, [h]), /* @__PURE__ */ s(Kt, { open: c, onCancel: U, footer: [null], children: t ? /* @__PURE__ */ s(oe, { children: S ? /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
5889
+ }, [f]), /* @__PURE__ */ s(Kt, { open: c, onCancel: U, footer: [null], children: t ? /* @__PURE__ */ s(oe, { children: S ? /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
5888
5890
  cn,
5889
5891
  {
5890
5892
  setBackupActivated: E,
@@ -5895,7 +5897,7 @@ const as = {
5895
5897
  confirmationToken: t
5896
5898
  }
5897
5899
  ) }) : /* @__PURE__ */ v(oe, { children: [
5898
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(ke, { children: [
5900
+ /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
5899
5901
  G("EnterVerificationCode"),
5900
5902
  /* @__PURE__ */ s(pe, { children: G(as[i]) })
5901
5903
  ] }) }),
@@ -5921,9 +5923,9 @@ const as = {
5921
5923
  i !== Rt.TOTP && /* @__PURE__ */ s(
5922
5924
  re,
5923
5925
  {
5924
- disabled: h,
5926
+ disabled: f,
5925
5927
  onClick: H,
5926
- children: h ? `${G("ResendAvailable")} ${g} ${j("Second")}` : `${G("Resend")}`
5928
+ children: f ? `${G("ResendAvailable")} ${g} ${j("Second")}` : `${G("Resend")}`
5927
5929
  }
5928
5930
  ),
5929
5931
  /* @__PURE__ */ v(
@@ -6232,11 +6234,11 @@ const ls = m(Ct)`
6232
6234
  loading: d,
6233
6235
  pagination: c
6234
6236
  }) => {
6235
- const [u, p] = M([]), h = t || n;
6237
+ const [u, p] = M([]), f = t || n;
6236
6238
  K(() => {
6237
6239
  a && a.length > 0 && p((g) => [...a, ...g]);
6238
6240
  }, [a]);
6239
- function f(g) {
6241
+ function h(g) {
6240
6242
  p(g), l && l([]);
6241
6243
  }
6242
6244
  return /* @__PURE__ */ s(
@@ -6249,9 +6251,9 @@ const ls = m(Ct)`
6249
6251
  emptyText: /* @__PURE__ */ s(_r, { description: Jn("NoData") })
6250
6252
  },
6251
6253
  loading: d,
6252
- columns: h,
6254
+ columns: f,
6253
6255
  expandedRowKeys: u,
6254
- onExpandedRowsChange: f,
6256
+ onExpandedRowsChange: h,
6255
6257
  expandable: {
6256
6258
  expandedRowRender: (g) => /* @__PURE__ */ s(e, { ...o, record: g }),
6257
6259
  expandIcon: ({ expanded: g }) => /* @__PURE__ */ s(oe, { children: g ? /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(vs, {}) }) : /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(jt, {}) }) }),
@@ -6726,9 +6728,9 @@ class bt extends kt {
6726
6728
  } = this.extractFromKey(e[e.length - 1], i), c = d[d.length - 1];
6727
6729
  let u = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
6728
6730
  u === void 0 && (u = ":");
6729
- const p = i.lng || this.language, h = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6731
+ const p = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6730
6732
  if ((p == null ? void 0 : p.toLowerCase()) === "cimode")
6731
- return h ? o ? {
6733
+ return f ? o ? {
6732
6734
  res: `${c}${u}${l}`,
6733
6735
  usedKey: l,
6734
6736
  exactUsedKey: l,
@@ -6743,9 +6745,9 @@ class bt extends kt {
6743
6745
  usedNS: c,
6744
6746
  usedParams: this.getUsedParamsDetails(i)
6745
6747
  } : l;
6746
- const f = this.resolve(e, i);
6747
- let g = f == null ? void 0 : f.res;
6748
- const y = (f == null ? void 0 : f.usedKey) || l, O = (f == null ? void 0 : f.exactUsedKey) || l, P = ["[object Number]", "[object Function]", "[object RegExp]"], S = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, k = i.count !== void 0 && !A(i.count), H = bt.hasDefaultValue(i), U = k ? this.pluralResolver.getSuffix(p, i.count, i) : "", Y = i.ordinal && k ? this.pluralResolver.getSuffix(p, i.count, {
6748
+ const h = this.resolve(e, i);
6749
+ let g = h == null ? void 0 : h.res;
6750
+ const y = (h == null ? void 0 : h.usedKey) || l, O = (h == null ? void 0 : h.exactUsedKey) || l, P = ["[object Number]", "[object Function]", "[object RegExp]"], S = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, k = i.count !== void 0 && !A(i.count), H = bt.hasDefaultValue(i), U = k ? this.pluralResolver.getSuffix(p, i.count, i) : "", Y = i.ordinal && k ? this.pluralResolver.getSuffix(p, i.count, {
6749
6751
  ordinal: !1
6750
6752
  }) : "", B = k && !i.ordinal && i.count === 0, F = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${U}`] || i[`defaultValue${Y}`] || i.defaultValue;
6751
6753
  let R = g;
@@ -6758,7 +6760,7 @@ class bt extends kt {
6758
6760
  ...i,
6759
6761
  ns: d
6760
6762
  }) : `key '${l} (${this.language})' returned an object instead of string.`;
6761
- return o ? (f.res = _, f.usedParams = this.getUsedParamsDetails(i), f) : _;
6763
+ return o ? (h.res = _, h.usedParams = this.getUsedParamsDetails(i), h) : _;
6762
6764
  }
6763
6765
  if (a) {
6764
6766
  const _ = Array.isArray(R), D = _ ? [] : {}, L = _ ? O : y;
@@ -6810,9 +6812,9 @@ class bt extends kt {
6810
6812
  });
6811
6813
  }) : z(C, l, F));
6812
6814
  }
6813
- g = this.extendTranslation(g, e, i, f, n), D && g === l && this.options.appendNamespaceToMissingKey && (g = `${c}${u}${l}`), (D || _) && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${l}` : l, _ ? g : void 0, i));
6815
+ g = this.extendTranslation(g, e, i, h, n), D && g === l && this.options.appendNamespaceToMissingKey && (g = `${c}${u}${l}`), (D || _) && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${l}` : l, _ ? g : void 0, i));
6814
6816
  }
6815
- return o ? (f.res = g, f.usedParams = this.getUsedParamsDetails(i), f) : g;
6817
+ return o ? (h.res = g, h.usedParams = this.getUsedParamsDetails(i), h) : g;
6816
6818
  }
6817
6819
  extendTranslation(e, t, n, i, o) {
6818
6820
  var d, c;
@@ -6834,18 +6836,18 @@ class bt extends kt {
6834
6836
  const u = A(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
6835
6837
  let p;
6836
6838
  if (u) {
6837
- const f = e.match(this.interpolator.nestingRegexp);
6838
- p = f && f.length;
6839
+ const h = e.match(this.interpolator.nestingRegexp);
6840
+ p = h && h.length;
6839
6841
  }
6840
- let h = n.replace && !A(n.replace) ? n.replace : n;
6841
- if (this.options.interpolation.defaultVariables && (h = {
6842
+ let f = n.replace && !A(n.replace) ? n.replace : n;
6843
+ if (this.options.interpolation.defaultVariables && (f = {
6842
6844
  ...this.options.interpolation.defaultVariables,
6843
- ...h
6844
- }), e = this.interpolator.interpolate(e, h, n.lng || this.language || i.usedLng, n), u) {
6845
- const f = e.match(this.interpolator.nestingRegexp), g = f && f.length;
6845
+ ...f
6846
+ }), e = this.interpolator.interpolate(e, f, n.lng || this.language || i.usedLng, n), u) {
6847
+ const h = e.match(this.interpolator.nestingRegexp), g = h && h.length;
6846
6848
  p < g && (n.nest = !1);
6847
6849
  }
6848
- !n.lng && i && i.res && (n.lng = this.language || i.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...f) => (o == null ? void 0 : o[0]) === f[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), n)), n.interpolation && this.interpolator.reset();
6850
+ !n.lng && i && i.res && (n.lng = this.language || i.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (o == null ? void 0 : o[0]) === h[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), n)), n.interpolation && this.interpolator.reset();
6849
6851
  }
6850
6852
  const a = n.postProcess || this.options.postProcess, l = A(a) ? [a] : a;
6851
6853
  return e != null && (l != null && l.length) && n.applyPostProcessor !== !1 && (e = On.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
@@ -6867,7 +6869,7 @@ class bt extends kt {
6867
6869
  i = u;
6868
6870
  let p = c.namespaces;
6869
6871
  this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
6870
- const h = t.count !== void 0 && !A(t.count), f = h && !t.ordinal && t.count === 0, g = t.context !== void 0 && (A(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6872
+ const f = t.count !== void 0 && !A(t.count), h = f && !t.ordinal && t.count === 0, g = t.context !== void 0 && (A(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6871
6873
  p.forEach((O) => {
6872
6874
  var P, S;
6873
6875
  this.isValidLookup(n) || (l = O, !this.checkedLoadedFor[`${y[0]}-${O}`] && ((P = this.utils) != null && P.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(l)) && (this.checkedLoadedFor[`${y[0]}-${O}`] = !0, this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${l}" 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!!!")), y.forEach((E) => {
@@ -6879,11 +6881,11 @@ class bt extends kt {
6879
6881
  this.i18nFormat.addLookupKeys(k, u, E, O, t);
6880
6882
  else {
6881
6883
  let Y;
6882
- h && (Y = this.pluralResolver.getSuffix(E, t.count, t));
6884
+ f && (Y = this.pluralResolver.getSuffix(E, t.count, t));
6883
6885
  const B = `${this.options.pluralSeparator}zero`, F = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6884
- if (h && (t.ordinal && Y.startsWith(F) && k.push(u + Y.replace(F, this.options.pluralSeparator)), k.push(u + Y), f && k.push(u + B)), g) {
6886
+ if (f && (t.ordinal && Y.startsWith(F) && k.push(u + Y.replace(F, this.options.pluralSeparator)), k.push(u + Y), h && k.push(u + B)), g) {
6885
6887
  const R = `${u}${this.options.contextSeparator || "_"}${t.context}`;
6886
- k.push(R), h && (t.ordinal && Y.startsWith(F) && k.push(R + Y.replace(F, this.options.pluralSeparator)), k.push(R + Y), f && k.push(R + B));
6888
+ k.push(R), f && (t.ordinal && Y.startsWith(F) && k.push(R + Y.replace(F, this.options.pluralSeparator)), k.push(R + Y), h && k.push(R + B));
6887
6889
  }
6888
6890
  }
6889
6891
  let H;
@@ -7070,15 +7072,15 @@ class Rr {
7070
7072
  formatSeparator: c,
7071
7073
  unescapeSuffix: u,
7072
7074
  unescapePrefix: p,
7073
- nestingPrefix: h,
7074
- nestingPrefixEscaped: f,
7075
+ nestingPrefix: f,
7076
+ nestingPrefixEscaped: h,
7075
7077
  nestingSuffix: g,
7076
7078
  nestingSuffixEscaped: y,
7077
7079
  nestingOptionsSeparator: O,
7078
7080
  maxReplaces: P,
7079
7081
  alwaysFormat: S
7080
7082
  } = e.interpolation;
7081
- this.escape = t !== void 0 ? t : Os, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? $e(o) : a || "{{", this.suffix = l ? $e(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = h ? $e(h) : f || $e("$t("), this.nestingSuffix = g ? $e(g) : y || $e(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
7083
+ this.escape = t !== void 0 ? t : Os, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? $e(o) : a || "{{", this.suffix = l ? $e(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? $e(f) : h || $e("$t("), this.nestingSuffix = g ? $e(g) : y || $e(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
7082
7084
  }
7083
7085
  reset() {
7084
7086
  this.options && this.init(this.options);
@@ -7088,7 +7090,7 @@ class Rr {
7088
7090
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
7089
7091
  }
7090
7092
  interpolate(e, t, n, i) {
7091
- var f;
7093
+ var h;
7092
7094
  let o, a, l;
7093
7095
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
7094
7096
  if (!g.includes(this.formatSeparator)) {
@@ -7107,7 +7109,7 @@ class Rr {
7107
7109
  });
7108
7110
  };
7109
7111
  this.resetRegExp();
7110
- 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;
7112
+ const u = (i == null ? void 0 : i.missingInterpolationHandler) || this.options.missingInterpolationHandler, p = ((h = i == null ? void 0 : i.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
7111
7113
  return [{
7112
7114
  regex: this.regexpUnescape,
7113
7115
  safeValue: (g) => Tt(g)
@@ -7141,17 +7143,17 @@ class Rr {
7141
7143
  const u = this.nestingOptionsSeparator;
7142
7144
  if (!d.includes(u)) return d;
7143
7145
  const p = d.split(new RegExp(`${$e(u)}[ ]*{`));
7144
- let h = `{${p[1]}`;
7145
- d = p[0], h = this.interpolate(h, a);
7146
- const f = h.match(/'/g), g = h.match(/"/g);
7147
- (((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (h = h.replace(/'/g, '"'));
7146
+ let f = `{${p[1]}`;
7147
+ d = p[0], f = this.interpolate(f, a);
7148
+ const h = f.match(/'/g), g = f.match(/"/g);
7149
+ (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (f = f.replace(/'/g, '"'));
7148
7150
  try {
7149
- a = JSON.parse(h), c && (a = {
7151
+ a = JSON.parse(f), c && (a = {
7150
7152
  ...c,
7151
7153
  ...a
7152
7154
  });
7153
7155
  } catch (y) {
7154
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, y), `${d}${u}${h}`;
7156
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, y), `${d}${u}${f}`;
7155
7157
  }
7156
7158
  return a.defaultValue && a.defaultValue.includes(this.prefix) && delete a.defaultValue, d;
7157
7159
  };
@@ -7264,18 +7266,18 @@ class Rs {
7264
7266
  formatOptions: u
7265
7267
  } = zs(d);
7266
7268
  if (this.formats[c]) {
7267
- let h = l;
7269
+ let f = l;
7268
7270
  try {
7269
- const f = ((p = i == null ? void 0 : i.formatParams) == null ? void 0 : p[i.interpolationkey]) || {}, g = f.locale || f.lng || i.locale || i.lng || n;
7270
- h = this.formats[c](l, g, {
7271
+ const h = ((p = i == null ? void 0 : i.formatParams) == null ? void 0 : p[i.interpolationkey]) || {}, g = h.locale || h.lng || i.locale || i.lng || n;
7272
+ f = this.formats[c](l, g, {
7271
7273
  ...u,
7272
7274
  ...i,
7273
- ...f
7275
+ ...h
7274
7276
  });
7275
- } catch (f) {
7276
- this.logger.warn(f);
7277
+ } catch (h) {
7278
+ this.logger.warn(h);
7277
7279
  }
7278
- return h;
7280
+ return f;
7279
7281
  } else
7280
7282
  this.logger.warn(`there was no format function for ${c}`);
7281
7283
  return l;
@@ -7295,8 +7297,8 @@ class As extends kt {
7295
7297
  return e.forEach((c) => {
7296
7298
  let u = !0;
7297
7299
  t.forEach((p) => {
7298
- const h = `${c}|${p}`;
7299
- !n.reload && this.store.hasResourceBundle(c, p) ? this.state[h] = 2 : this.state[h] < 0 || (this.state[h] === 1 ? a[h] === void 0 && (a[h] = !0) : (this.state[h] = 1, u = !1, a[h] === void 0 && (a[h] = !0), o[h] === void 0 && (o[h] = !0), d[p] === void 0 && (d[p] = !0)));
7300
+ const f = `${c}|${p}`;
7301
+ !n.reload && this.store.hasResourceBundle(c, p) ? this.state[f] = 2 : this.state[f] < 0 || (this.state[f] === 1 ? a[f] === void 0 && (a[f] = !0) : (this.state[f] = 1, u = !1, a[f] === void 0 && (a[f] = !0), o[f] === void 0 && (o[f] = !0), d[p] === void 0 && (d[p] = !0)));
7300
7302
  }), u || (l[c] = !0);
7301
7303
  }), (Object.keys(o).length || Object.keys(a).length) && this.queue.push({
7302
7304
  pending: a,
@@ -7392,26 +7394,26 @@ class As extends kt {
7392
7394
  }
7393
7395
  saveMissing(e, t, n, i, o, a = {}, l = () => {
7394
7396
  }) {
7395
- var d, c, u, p, h;
7397
+ var d, c, u, p, f;
7396
7398
  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))) {
7397
7399
  this.logger.warn(`did not save key "${n}" 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!!!");
7398
7400
  return;
7399
7401
  }
7400
7402
  if (!(n == null || n === "")) {
7401
- if ((h = this.backend) != null && h.create) {
7402
- const f = {
7403
+ if ((f = this.backend) != null && f.create) {
7404
+ const h = {
7403
7405
  ...a,
7404
7406
  isUpdate: o
7405
7407
  }, g = this.backend.create.bind(this.backend);
7406
7408
  if (g.length < 6)
7407
7409
  try {
7408
7410
  let y;
7409
- g.length === 5 ? y = g(e, t, n, i, f) : y = g(e, t, n, i), y && typeof y.then == "function" ? y.then((O) => l(null, O)).catch(l) : l(null, y);
7411
+ g.length === 5 ? y = g(e, t, n, i, h) : y = g(e, t, n, i), y && typeof y.then == "function" ? y.then((O) => l(null, O)).catch(l) : l(null, y);
7410
7412
  } catch (y) {
7411
7413
  l(y);
7412
7414
  }
7413
7415
  else
7414
- g(e, t, n, i, l, f);
7416
+ g(e, t, n, i, l, h);
7415
7417
  }
7416
7418
  !e || !e[0] || this.store.addResource(e[0], t, n, i);
7417
7419
  }
@@ -7513,12 +7515,12 @@ class Xe extends kt {
7513
7515
  prepend: this.options.pluralSeparator
7514
7516
  }), 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 Rr(this.options), p.utils = {
7515
7517
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
7516
- }, p.backendConnector = new As(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (h, ...f) => {
7517
- this.emit(h, ...f);
7518
- }), 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 bt(this.services, this.options), this.translator.on("*", (h, ...f) => {
7519
- this.emit(h, ...f);
7520
- }), this.modules.external.forEach((h) => {
7521
- h.init && h.init(this);
7518
+ }, p.backendConnector = new As(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (f, ...h) => {
7519
+ this.emit(f, ...h);
7520
+ }), 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 bt(this.services, this.options), this.translator.on("*", (f, ...h) => {
7521
+ this.emit(f, ...h);
7522
+ }), this.modules.external.forEach((f) => {
7523
+ f.init && f.init(this);
7522
7524
  });
7523
7525
  }
7524
7526
  if (this.format = this.options.interpolation.format, t || (t = pt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
@@ -7592,8 +7594,8 @@ class Xe extends kt {
7592
7594
  var u, p;
7593
7595
  !e && !l && this.services.languageDetector && (l = []);
7594
7596
  const d = A(l) ? l : l && l[0], c = this.store.hasLanguageSomeTranslations(d) ? d : this.services.languageUtils.getBestMatchFromCodes(A(l) ? [l] : l);
7595
- 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) => {
7596
- o(h, c);
7597
+ 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, (f) => {
7598
+ o(f, c);
7597
7599
  });
7598
7600
  };
7599
7601
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
@@ -7611,7 +7613,7 @@ class Xe extends kt {
7611
7613
  typeof d.keyPrefix == "function" && (d.keyPrefix = Fe(d.keyPrefix, c));
7612
7614
  const u = this.options.keySeparator || ".";
7613
7615
  let p;
7614
- return d.keyPrefix && Array.isArray(o) ? p = o.map((h) => (typeof h == "function" && (h = Fe(h, c)), `${d.keyPrefix}${u}${h}`)) : (typeof o == "function" && (o = Fe(o, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${o}` : o), this.t(p, d);
7616
+ return d.keyPrefix && Array.isArray(o) ? p = o.map((f) => (typeof f == "function" && (f = Fe(f, c)), `${d.keyPrefix}${u}${f}`)) : (typeof o == "function" && (o = Fe(o, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${o}` : o), this.t(p, d);
7615
7617
  };
7616
7618
  return A(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i;
7617
7619
  }
@@ -7761,7 +7763,7 @@ function js() {
7761
7763
  (function(t, n) {
7762
7764
  r.exports = n();
7763
7765
  })(Fs, (function() {
7764
- var t = 1e3, n = 6e4, i = 36e5, o = "millisecond", a = "second", l = "minute", d = "hour", c = "day", u = "week", p = "month", h = "quarter", f = "year", g = "date", y = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|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(D) {
7766
+ var t = 1e3, n = 6e4, i = 36e5, o = "millisecond", a = "second", l = "minute", d = "hour", c = "day", u = "week", p = "month", f = "quarter", h = "year", g = "date", y = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|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(D) {
7765
7767
  var L = ["th", "st", "nd", "rd"], w = D % 100;
7766
7768
  return "[" + D + (L[(w - 20) % 10] || L[w] || L[0]) + "]";
7767
7769
  } }, E = function(D, L, w) {
@@ -7777,7 +7779,7 @@ function js() {
7777
7779
  }, a: function(D) {
7778
7780
  return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
7779
7781
  }, p: function(D) {
7780
- return { M: p, y: f, w: u, d: c, D: g, h: d, m: l, s: a, ms: o, Q: h }[D] || String(D || "").toLowerCase().replace(/s$/, "");
7782
+ return { M: p, y: h, w: u, d: c, D: g, h: d, m: l, s: a, ms: o, Q: f }[D] || String(D || "").toLowerCase().replace(/s$/, "");
7781
7783
  }, u: function(D) {
7782
7784
  return D === void 0;
7783
7785
  } }, H = "en", U = {};
@@ -7847,13 +7849,13 @@ function js() {
7847
7849
  return this.$d.getTime();
7848
7850
  }, L.startOf = function(w, x) {
7849
7851
  var C = this, I = !!b.u(x) || x, z = b.p(w), V = function(ve, ae) {
7850
- var Le = b.w(C.$u ? Date.UTC(C.$y, ae, ve) : new Date(C.$y, ae, ve), C);
7851
- return I ? Le : Le.endOf(c);
7852
+ var ke = b.w(C.$u ? Date.UTC(C.$y, ae, ve) : new Date(C.$y, ae, ve), C);
7853
+ return I ? ke : ke.endOf(c);
7852
7854
  }, W = function(ve, ae) {
7853
7855
  return b.w(C.toDate()[ve].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), C);
7854
7856
  }, q = this.$W, Q = this.$M, X = this.$D, me = "set" + (this.$u ? "UTC" : "");
7855
7857
  switch (z) {
7856
- case f:
7858
+ case h:
7857
7859
  return I ? V(1, 0) : V(31, 11);
7858
7860
  case p:
7859
7861
  return I ? V(1, Q) : V(0, Q + 1);
@@ -7875,8 +7877,8 @@ function js() {
7875
7877
  }, L.endOf = function(w) {
7876
7878
  return this.startOf(w, !1);
7877
7879
  }, L.$set = function(w, x) {
7878
- var C, I = b.p(w), z = "set" + (this.$u ? "UTC" : ""), V = (C = {}, C[c] = z + "Date", C[g] = z + "Date", C[p] = z + "Month", C[f] = z + "FullYear", C[d] = z + "Hours", C[l] = z + "Minutes", C[a] = z + "Seconds", C[o] = z + "Milliseconds", C)[I], W = I === c ? this.$D + (x - this.$W) : x;
7879
- if (I === p || I === f) {
7880
+ var C, I = b.p(w), z = "set" + (this.$u ? "UTC" : ""), V = (C = {}, C[c] = z + "Date", C[g] = z + "Date", C[p] = z + "Month", C[h] = z + "FullYear", C[d] = z + "Hours", C[l] = z + "Minutes", C[a] = z + "Seconds", C[o] = z + "Milliseconds", C)[I], W = I === c ? this.$D + (x - this.$W) : x;
7881
+ if (I === p || I === h) {
7880
7882
  var q = this.clone().set(g, 1);
7881
7883
  q.$d[V](W), q.init(), this.$d = q.set(g, Math.min(this.$D, q.daysInMonth())).$d;
7882
7884
  } else V && this.$d[V](W);
@@ -7893,7 +7895,7 @@ function js() {
7893
7895
  return b.w(X.date(X.date() + Math.round(Q * w)), I);
7894
7896
  };
7895
7897
  if (z === p) return this.set(p, this.$M + w);
7896
- if (z === f) return this.set(f, this.$y + w);
7898
+ if (z === h) return this.set(h, this.$y + w);
7897
7899
  if (z === c) return V(1);
7898
7900
  if (z === u) return V(7);
7899
7901
  var W = (C = {}, C[l] = n, C[d] = i, C[a] = t, C)[z] || 1, q = this.$d.getTime() + w * W;
@@ -7903,16 +7905,16 @@ function js() {
7903
7905
  }, L.format = function(w) {
7904
7906
  var x = this, C = this.$locale();
7905
7907
  if (!this.isValid()) return C.invalidDate || y;
7906
- var I = w || "YYYY-MM-DDTHH:mm:ssZ", z = b.z(this), V = this.$H, W = this.$m, q = this.$M, Q = C.weekdays, X = C.months, me = C.meridiem, fe = function(ae, Le, We, st) {
7907
- return ae && (ae[Le] || ae(x, I)) || We[Le].slice(0, st);
7908
+ var I = w || "YYYY-MM-DDTHH:mm:ssZ", z = b.z(this), V = this.$H, W = this.$m, q = this.$M, Q = C.weekdays, X = C.months, me = C.meridiem, fe = function(ae, ke, We, st) {
7909
+ return ae && (ae[ke] || ae(x, I)) || We[ke].slice(0, st);
7908
7910
  }, Z = function(ae) {
7909
7911
  return b.s(V % 12 || 12, ae, "0");
7910
- }, ve = me || function(ae, Le, We) {
7912
+ }, ve = me || function(ae, ke, We) {
7911
7913
  var st = ae < 12 ? "AM" : "PM";
7912
7914
  return We ? st.toLowerCase() : st;
7913
7915
  };
7914
- return I.replace(P, (function(ae, Le) {
7915
- return Le || (function(We) {
7916
+ return I.replace(P, (function(ae, ke) {
7917
+ return ke || (function(We) {
7916
7918
  switch (We) {
7917
7919
  case "YY":
7918
7920
  return String(x.$y).slice(-2);
@@ -7973,13 +7975,13 @@ function js() {
7973
7975
  return b.m(z, W);
7974
7976
  };
7975
7977
  switch (V) {
7976
- case f:
7978
+ case h:
7977
7979
  I = X() / 12;
7978
7980
  break;
7979
7981
  case p:
7980
7982
  I = X();
7981
7983
  break;
7982
- case h:
7984
+ case f:
7983
7985
  I = X() / 3;
7984
7986
  break;
7985
7987
  case u:
@@ -8021,7 +8023,7 @@ function js() {
8021
8023
  return this.$d.toUTCString();
8022
8024
  }, D;
8023
8025
  })(), _ = N.prototype;
8024
- return R.prototype = _, [["$ms", o], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", f], ["$D", g]].forEach((function(D) {
8026
+ return R.prototype = _, [["$ms", o], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", h], ["$D", g]].forEach((function(D) {
8025
8027
  _[D[1]] = function(L) {
8026
8028
  return this.$g(L, D[0], D[1]);
8027
8029
  };
@@ -8445,26 +8447,26 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8445
8447
  }
8446
8448
  );
8447
8449
  }, Ks = (r, e, t) => {
8448
- const n = r.filter((p) => e[p.id]), i = Object.keys(n[0]), o = n.map((p) => i.map((h) => {
8449
- const f = p[h];
8450
- return f == null ? "" : typeof f == "object" ? Object.values(f).find((y) => typeof y != "object") ?? "" : f;
8450
+ const n = r.filter((p) => e[p.id]), i = Object.keys(n[0]), o = n.map((p) => i.map((f) => {
8451
+ const h = p[f];
8452
+ return h == null ? "" : typeof h == "object" ? Object.values(h).find((y) => typeof y != "object") ?? "" : h;
8451
8453
  })), a = [i, ...o].map(
8452
- (p) => p.map((h) => `"${(h || "").toString().replace(/"/g, '""')}"`).join(",")
8454
+ (p) => p.map((f) => `"${(f || "").toString().replace(/"/g, '""')}"`).join(",")
8453
8455
  ).join(`\r
8454
8456
  `), l = "\uFEFF", d = new Blob([l + a], { type: "text/csv;charset=utf-8;" }), c = document.createElement("a"), u = URL.createObjectURL(d);
8455
8457
  c.setAttribute("href", u), c.setAttribute("download", t), document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(u);
8456
8458
  }, qs = (r, e, t) => {
8457
8459
  const i = r.filter((p) => e[p.id]).map((p) => {
8458
- const h = {};
8459
- return Object.entries(p).forEach(([f, g]) => {
8460
+ const f = {};
8461
+ return Object.entries(p).forEach(([h, g]) => {
8460
8462
  if (g == null)
8461
- h[f] = "";
8463
+ f[h] = "";
8462
8464
  else if (typeof g == "object") {
8463
8465
  const y = Object.values(g).find((O) => typeof O != "object");
8464
- h[f] = y ?? "";
8466
+ f[h] = y ?? "";
8465
8467
  } else
8466
- h[f] = g;
8467
- }), h;
8468
+ f[h] = g;
8469
+ }), f;
8468
8470
  }), o = ct.utils.json_to_sheet(i), a = ct.utils.book_new();
8469
8471
  ct.utils.book_append_sheet(a, o, "Data");
8470
8472
  const l = ct.write(a, { bookType: "xlsx", type: "array" }), d = new Blob([l], { type: "application/octet-stream" }), c = URL.createObjectURL(d), u = document.createElement("a");
@@ -8587,7 +8589,7 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8587
8589
  }
8588
8590
  }
8589
8591
  `;
8590
- m(De)`
8592
+ m(Oe)`
8591
8593
  display: flex;
8592
8594
  align-items: center;
8593
8595
  justify-content: start;
@@ -8618,29 +8620,29 @@ const Ul = ({
8618
8620
  ...o
8619
8621
  }) => {
8620
8622
  const a = async (d) => {
8621
- var f, g;
8622
- const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, h = [...r, p];
8623
- e(h);
8623
+ var h, g;
8624
+ const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, f = [...r, p];
8625
+ e(f);
8624
8626
  try {
8625
8627
  const y = new FormData();
8626
8628
  y.append("files", c);
8627
8629
  const O = await i(y);
8628
- if ((f = O == null ? void 0 : O.data) != null && f.success) {
8630
+ if ((h = O == null ? void 0 : O.data) != null && h.success) {
8629
8631
  const P = (g = O == null ? void 0 : O.data) == null ? void 0 : g.value[0];
8630
8632
  e(
8631
- h.map(
8633
+ f.map(
8632
8634
  (S) => S.uid === c.uid ? { ...S, status: "done", ...P } : S
8633
8635
  )
8634
8636
  );
8635
8637
  } else
8636
- e(h.filter((P) => P.uid !== c.uid)), ht.error({
8638
+ e(f.filter((P) => P.uid !== c.uid)), ht.error({
8637
8639
  className: "bottom-right-notification",
8638
8640
  placement: "bottomRight",
8639
8641
  message: "Error",
8640
8642
  description: "Upload failed"
8641
8643
  });
8642
8644
  } catch {
8643
- e(h.filter((O) => O.uid !== c.uid)), ht.error({
8645
+ e(f.filter((O) => O.uid !== c.uid)), ht.error({
8644
8646
  className: "bottom-right-notification",
8645
8647
  placement: "bottomRight",
8646
8648
  message: "Error",
@@ -8803,16 +8805,16 @@ const Ul = ({
8803
8805
  needsBreadcrumb: a,
8804
8806
  customTabFilter: l
8805
8807
  }) => {
8806
- const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p = ze(), h = we(() => {
8808
+ const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p = ze(), f = we(() => {
8807
8809
  const k = u.pathname.split("/");
8808
8810
  return k[k.length - 1] || n;
8809
- }, [u.pathname, n]), [f, g] = M(null), [y, O] = M(null), P = (k) => {
8811
+ }, [u.pathname, n]), [h, g] = M(null), [y, O] = M(null), P = (k) => {
8810
8812
  p(`${r}/${c}/${k}`);
8811
8813
  }, S = () => l ? l(e) : e.filter((k) => {
8812
8814
  var H;
8813
8815
  return (H = k.permission) == null ? void 0 : H.some((U) => d(U));
8814
8816
  }), E = () => {
8815
- const k = t[h] || t[n];
8817
+ const k = t[f] || t[n];
8816
8818
  return k ? typeof k == "object" && k !== null && "type" in k ? {
8817
8819
  ...k,
8818
8820
  props: {
@@ -8828,7 +8830,7 @@ const Ul = ({
8828
8830
  /* @__PURE__ */ s(
8829
8831
  el,
8830
8832
  {
8831
- activeKey: h,
8833
+ activeKey: f,
8832
8834
  onChange: P,
8833
8835
  tabBarExtraContent: {
8834
8836
  right: /* @__PURE__ */ v(rl, { children: [
@@ -8838,7 +8840,7 @@ const Ul = ({
8838
8840
  className: "partner-tab-select",
8839
8841
  placeholder: "Modules",
8840
8842
  onChange: (k) => P(k),
8841
- value: h,
8843
+ value: f,
8842
8844
  options: e.filter((k) => (k == null ? void 0 : k.label) !== "Details").map((k) => ({
8843
8845
  value: k.key,
8844
8846
  label: k.label
@@ -8847,7 +8849,7 @@ const Ul = ({
8847
8849
  ) }),
8848
8850
  /* @__PURE__ */ v(tl, { children: [
8849
8851
  y,
8850
- f
8852
+ h
8851
8853
  ] })
8852
8854
  ] })
8853
8855
  },
@@ -8865,7 +8867,7 @@ const Ul = ({
8865
8867
  getItemById: o,
8866
8868
  onSetFormValues: a
8867
8869
  }) => {
8868
- const l = ze(), [d] = Ae.useForm(), [c, u] = M(r == "new"), [p, h] = M(null), f = async (y) => {
8870
+ const l = ze(), [d] = Ae.useForm(), [c, u] = M(r == "new"), [p, f] = M(null), h = async (y) => {
8869
8871
  const O = window.location.pathname, P = O.substring(0, O.lastIndexOf("/"));
8870
8872
  try {
8871
8873
  if (p) {
@@ -8884,7 +8886,7 @@ const Ul = ({
8884
8886
  }, g = async (y) => {
8885
8887
  try {
8886
8888
  const O = await o(y), P = a ? a(O.data) : O.data;
8887
- h(P), d.setFieldsValue(P);
8889
+ f(P), d.setFieldsValue(P);
8888
8890
  } catch (O) {
8889
8891
  console.log(O, "Error in Form Controller.");
8890
8892
  }
@@ -8896,7 +8898,7 @@ const Ul = ({
8896
8898
  item: p,
8897
8899
  getItemById: o,
8898
8900
  isAddingForm: c,
8899
- handleSave: f
8901
+ handleSave: h
8900
8902
  };
8901
8903
  }, Yl = ({ id: r, formItem: e, updateItem: t, addItem: n, getItemById: i }) => {
8902
8904
  const [o] = Ae.useForm(), [a, l] = M(null), d = async (u) => {
@@ -8905,15 +8907,15 @@ const Ul = ({
8905
8907
  return r ? p = await t({ ...u }) : p = await n(u), p;
8906
8908
  } catch (p) {
8907
8909
  if (p.status === 400) {
8908
- const h = p.response.data, f = je(h.errors);
8909
- o.setFields(f);
8910
+ const f = p.response.data, h = je(f.errors);
8911
+ o.setFields(h);
8910
8912
  }
8911
8913
  throw p;
8912
8914
  }
8913
8915
  }, c = async (u) => {
8914
8916
  try {
8915
- const h = (await i(u)).data;
8916
- l(h), o.setFieldsValue(h);
8917
+ const f = (await i(u)).data;
8918
+ l(f), o.setFieldsValue(f);
8917
8919
  } catch (p) {
8918
8920
  console.log(p, "Error in Form Controller.");
8919
8921
  }
@@ -9101,7 +9103,7 @@ export {
9101
9103
  Tn as StyledSelect,
9102
9104
  Al as StyledTable,
9103
9105
  Vl as StyledTooltip,
9104
- Oe as TableViewOptions,
9106
+ Le as TableViewOptions,
9105
9107
  Ml as TwoFactorPopup,
9106
9108
  Ul as UploadFiles,
9107
9109
  io as catchErrorMessage,
@@ -9126,7 +9128,7 @@ export {
9126
9128
  Ie as useModalStore,
9127
9129
  ql as useNavigationGuard,
9128
9130
  Yl as useNewDesignFormController,
9129
- Ce as usePackageServices,
9131
+ De as usePackageServices,
9130
9132
  Kl as useTwoFactor,
9131
9133
  He as useUserStore
9132
9134
  };