affiliate-front-shared 1.3.26 → 1.3.28

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,9 +4,9 @@ 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 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";
7
+ import { Menu as Fr, DatePicker as jr, Table as Vt, Dropdown as Me, Select as Ft, Button as Oe, Input as Be, Modal as Br, notification as ht, Form as Ne, 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
- import { useNavigate as ze, useLocation as Ue, useSearchParams as Fn, useParams as jn, UNSAFE_NavigationContext as Bn } from "react-router";
9
+ import { useNavigate as Pe, useLocation as _e, useSearchParams as Fn, useParams as jn, UNSAFE_NavigationContext as Bn } from "react-router";
10
10
  import { create as Gr, useStore as _n } from "zustand";
11
11
  import { useTranslation as Un, initReactI18next as Gn } from "react-i18next";
12
12
  import * as Wn from "echarts";
@@ -22,14 +22,14 @@ function Cl({
22
22
  }) {
23
23
  return /* @__PURE__ */ s(Wr.Provider, { value: r, children: e });
24
24
  }
25
- function De() {
25
+ function Ue() {
26
26
  return xt(Wr);
27
27
  }
28
28
  let Ce = (r) => r;
29
29
  function tr(r) {
30
30
  Ce = r;
31
31
  }
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);
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), He = (r, e) => Ce(`date.${r}`, e), Ee = (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);
@@ -171,7 +171,7 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
171
171
  fetchData: u,
172
172
  listItems: i
173
173
  };
174
- }, He = Gr((r, e) => ({
174
+ }, ze = Gr((r, e) => ({
175
175
  user: localStorage.getItem("userData") ? JSON.parse(localStorage.getItem("userData")) : null,
176
176
  prefersDark: !1,
177
177
  storedThemeMode: null,
@@ -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 } = De(), { storedThemeMode: i, logout: o, setThemeMode: a, user: l } = He(), { i18n: d } = Un();
275
+ const e = Pe(), { getCustomers: t, postSelectedCustomer: n } = Ue(), { storedThemeMode: i, logout: o, setThemeMode: a, user: l } = ze(), { i18n: d } = Un();
276
276
  function c() {
277
277
  o(), e("/authorization/login");
278
278
  }
@@ -329,7 +329,7 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
329
329
  "10"
330
330
  ) });
331
331
  }, Bt = ({ items: r, topLogoPrimaryUrl: e, shortName: t }) => {
332
- const n = Ue(), [i, o] = M(!1), a = wt(null), l = () => o((d) => !d);
332
+ const n = _e(), [i, o] = M(!1), a = wt(null), l = () => o((d) => !d);
333
333
  return K(() => {
334
334
  function d(c) {
335
335
  a.current && !a.current.contains(c.target) && o(!1);
@@ -618,7 +618,7 @@ const Di = m.span`
618
618
  colorPrimary: i,
619
619
  children: o
620
620
  }) => {
621
- const [a] = Fn(), l = a.get("backPath"), d = ze();
621
+ const [a] = Fn(), l = a.get("backPath"), d = Pe();
622
622
  function c(u) {
623
623
  d(u);
624
624
  }
@@ -657,7 +657,7 @@ 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 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 || {});
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 || {}), Ae = /* @__PURE__ */ ((r) => (r[r.NONE = 0] = "NONE", r[r.COLUMN = 1] = "COLUMN", r[r.TYPE = 2] = "TYPE", r[r.VALUE = 3] = "VALUE", r))(Ae || {}), 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) => {
@@ -766,7 +766,7 @@ const ir = (r) => {
766
766
  if (!e) throw new Error("GridViewStoreProvider is missing");
767
767
  return _n(e, r);
768
768
  }, Mi = () => {
769
- const r = T((u) => u.hydrateFromStorage), e = T((u) => u.isHydrated), t = T((u) => u.filters), n = T((u) => u.filterItems), i = T((u) => u.sortItems), o = T((u) => u.hideItems), a = T((u) => u.groupByArr), l = T((u) => u.activeTableView), d = T((u) => u.selectedConfig), c = Ue();
769
+ const r = T((u) => u.hydrateFromStorage), e = T((u) => u.isHydrated), t = T((u) => u.filters), n = T((u) => u.filterItems), i = T((u) => u.sortItems), o = T((u) => u.hideItems), a = T((u) => u.groupByArr), l = T((u) => u.activeTableView), d = T((u) => u.selectedConfig), c = _e();
770
770
  K(() => (r(`grid-filters:${c.pathname}`), sessionStorage.clear()), []), K(() => {
771
771
  e && sessionStorage.setItem(
772
772
  `grid-filters:${c.pathname}`,
@@ -1203,7 +1203,7 @@ const _t = m.div`
1203
1203
  }, Ut = (r) => /* @__PURE__ */ $.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.createElement("path", { d: "M7.99947 2.38989L3.72266 6.6667L4.66547 7.60951L7.3328 4.94218V13.3334H8.66613V4.94218L11.3335 7.60951L12.2763 6.6667L7.99947 2.38989Z", fill: "currentColor", fillOpacity: 0.75 })), Gt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.createElement("path", { d: "M8.66613 2.66675H7.3328V11.0573L4.66547 8.38994L3.72266 9.33275L7.99947 13.6096L12.2763 9.33275L11.3335 8.38994L8.66613 11.0573V2.66675Z", fill: "currentColor", fillOpacity: 0.75 })), Gi = (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", { d: "M13.7337 6.67614L14.6765 5.73333L11.3337 2.39052L7.99089 5.73333L8.93369 6.67614L10.667 4.94281L10.667 13.3333H12.0004L12.0004 4.94281L13.7337 6.67614Z", fill: "#131412" }), /* @__PURE__ */ $.createElement("path", { d: "M8.00984 10.2667L4.66703 13.6095L1.32422 10.2667L2.26703 9.32385L4.00036 11.0572L4.00036 2.66666L5.33369 2.66666L5.33369 11.0572L7.06703 9.32386L8.00984 10.2667Z", fill: "#131412" })), Wi = ({ children: r, overlay: e, placement: t = "bottomRight" }) => {
1204
1204
  const [n, i] = M(!1);
1205
1205
  return /* @__PURE__ */ s(
1206
- Pe,
1206
+ Me,
1207
1207
  {
1208
1208
  open: n,
1209
1209
  onOpenChange: i,
@@ -1297,12 +1297,12 @@ const _t = m.div`
1297
1297
  ...c,
1298
1298
  {
1299
1299
  ...f,
1300
- selectType: Ve.VALUE
1300
+ selectType: Ae.VALUE
1301
1301
  }
1302
1302
  ]), o(!1);
1303
1303
  }
1304
1304
  return /* @__PURE__ */ s(
1305
- Pe,
1305
+ Me,
1306
1306
  {
1307
1307
  open: i,
1308
1308
  onOpenChange: o,
@@ -1340,7 +1340,7 @@ const _t = m.div`
1340
1340
  }, Ki = {
1341
1341
  okText: "Create",
1342
1342
  cancelText: "Cancel"
1343
- }, Ie = Gr((r, e) => {
1343
+ }, $e = Gr((r, e) => {
1344
1344
  const t = (n) => ({
1345
1345
  ...n,
1346
1346
  popupOptions: { ...Yi, ...n.popupOptions },
@@ -1437,7 +1437,7 @@ const _t = m.div`
1437
1437
  "/tags": 13
1438
1438
  /* Tag */
1439
1439
  }, rn = () => {
1440
- const { pathname: r } = Ue(), e = Object.keys(sr).find(
1440
+ const { pathname: r } = _e(), e = Object.keys(sr).find(
1441
1441
  (t) => r === t || r.startsWith(t + "/")
1442
1442
  );
1443
1443
  return e ? sr[e] : void 0;
@@ -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), f = T((x) => x.setFilters), h = T((x) => x.setFilterItems), g = T((x) => x.setSortItems), [y, O] = M(() => {
1459
+ const c = Pe(), 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 } = De(), 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 } = $e(), [k, H] = M(!1), { getMyFilters: U } = Ue(), 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]);
@@ -1906,7 +1906,7 @@ const Qi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
1906
1906
  fill: var(--color-text-primary, #fff);
1907
1907
  }
1908
1908
  }
1909
- `, Ee = m.div`
1909
+ `, De = m.div`
1910
1910
  display: flex;
1911
1911
  align-items: start;
1912
1912
  flex-direction: column;
@@ -2085,7 +2085,7 @@ const Qi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
2085
2085
  color: var(--color-text-inverse-primary, #fff) !important;
2086
2086
  background: var(--color-bg-status-error, #fd7f60) !important;
2087
2087
  }
2088
- `, qt = m(_e)`
2088
+ `, qt = m(Be)`
2089
2089
  input[type='number'] {
2090
2090
  &::-webkit-outer-spin-button,
2091
2091
  &::-webkit-inner-spin-button {
@@ -2198,7 +2198,7 @@ const oo = ({
2198
2198
  postMyFilter: i,
2199
2199
  putMyFilter: o
2200
2200
  }) => {
2201
- const [a] = Ae.useForm(), l = Ie((c) => c.setOnOk), d = Ie((c) => c.close);
2201
+ const [a] = Ne.useForm(), l = $e((c) => c.setOnOk), d = $e((c) => c.close);
2202
2202
  return K(() => {
2203
2203
  t && a.setFieldsValue({ name: t.name });
2204
2204
  }, [t, a]), K(() => {
@@ -2216,9 +2216,9 @@ const oo = ({
2216
2216
  a.setFields(u);
2217
2217
  }
2218
2218
  });
2219
- }, [r, e, t, n, a, l, d]), /* @__PURE__ */ v(Ae, { form: a, children: [
2219
+ }, [r, e, t, n, a, l, d]), /* @__PURE__ */ v(Ne, { form: a, children: [
2220
2220
  /* @__PURE__ */ s(pe, { children: j("ConfigurationName") }),
2221
- /* @__PURE__ */ s(Ae.Item, { name: "name", children: /* @__PURE__ */ s(qt, {}) })
2221
+ /* @__PURE__ */ s(Ne.Item, { name: "name", children: /* @__PURE__ */ s(qt, {}) })
2222
2222
  ] });
2223
2223
  }, ao = (r) => /* @__PURE__ */ $.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.createElement("path", { d: "M11.6666 4.65485L10.4881 5.83336L13.8215 9.16669H3.33331V10.8334H13.8215L10.4881 14.1667L11.6666 15.3452L17.0118 10L11.6666 4.65485Z", fill: "currentColor" })), ce = m(ao)`
2224
2224
  cursor: pointer;
@@ -2230,7 +2230,7 @@ const oo = ({
2230
2230
  transition: 0.1s;
2231
2231
  }
2232
2232
  }
2233
- `, so = () => /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("p", { children: j("DeleteRecordQuestion") }) }) }), lo = m(Pn)`
2233
+ `, so = () => /* @__PURE__ */ s(De, { children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("p", { children: j("DeleteRecordQuestion") }) }) }), lo = m(Pn)`
2234
2234
  .ant-checkbox-inner {
2235
2235
  background-color: transparent;
2236
2236
  border: 1px solid #ccc;
@@ -2257,7 +2257,7 @@ const oo = ({
2257
2257
  }
2258
2258
  `, co = ({ item: r }) => {
2259
2259
  var S, E, k, H, U, Y, B, F, R;
2260
- const e = wt(null), t = T((b) => b.filterItems), n = T((b) => b.setFilterItems), [i, o] = M(r.selectType == Ve.VALUE);
2260
+ const e = wt(null), t = T((b) => b.filterItems), n = T((b) => b.setFilterItems), [i, o] = M(r.selectType == Ae.VALUE);
2261
2261
  function a() {
2262
2262
  var b;
2263
2263
  (b = e == null ? void 0 : e.current) == null || b.focus();
@@ -2302,7 +2302,7 @@ const oo = ({
2302
2302
  function f(b) {
2303
2303
  n(
2304
2304
  t.map(
2305
- (N) => N.title == r.title ? { ...b, selectType: Ve.VALUE } : N
2305
+ (N) => N.title == r.title ? { ...b, selectType: Ae.VALUE } : N
2306
2306
  )
2307
2307
  );
2308
2308
  }
@@ -2316,7 +2316,7 @@ const oo = ({
2316
2316
  function g(b) {
2317
2317
  n(
2318
2318
  t.map(
2319
- (N) => N.title == r.title ? { ...N, selectType: Ve.NONE } : N
2319
+ (N) => N.title == r.title ? { ...N, selectType: Ae.NONE } : N
2320
2320
  )
2321
2321
  ), o(b);
2322
2322
  }
@@ -2422,7 +2422,7 @@ const oo = ({
2422
2422
  r.title
2423
2423
  ] }) }),
2424
2424
  /* @__PURE__ */ s(
2425
- Pe,
2425
+ Me,
2426
2426
  {
2427
2427
  overlayClassName: "debug-dropdwon",
2428
2428
  placement: "bottomLeft",
@@ -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 } = De(), 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 } = Ue(), a = T((g) => g.bumpConfigsVersion), { open: l, store: d, close: c } = $e(), u = rn();
2444
2444
  async function p() {
2445
2445
  try {
2446
2446
  if (!i || !o) return;
@@ -2983,7 +2983,7 @@ function Co({
2983
2983
  }
2984
2984
  ),
2985
2985
  /* @__PURE__ */ s(
2986
- Pe,
2986
+ Me,
2987
2987
  {
2988
2988
  placement: "bottomRight",
2989
2989
  popupRender: () => /* @__PURE__ */ s(go, { children: ((r == null ? void 0 : r.items) || [
@@ -3035,7 +3035,7 @@ function ko({ col: r }) {
3035
3035
  ...g,
3036
3036
  {
3037
3037
  ...h,
3038
- selectType: Ve.VALUE
3038
+ selectType: Ae.VALUE
3039
3039
  }
3040
3040
  ]);
3041
3041
  }
@@ -3064,7 +3064,7 @@ function ko({ col: r }) {
3064
3064
  }
3065
3065
  ];
3066
3066
  return r.filterDropdown === !1 ? /* @__PURE__ */ s("th", {}) : /* @__PURE__ */ s(
3067
- Pe,
3067
+ Me,
3068
3068
  {
3069
3069
  placement: "bottomLeft",
3070
3070
  popupRender: () => /* @__PURE__ */ s(fo, { children: f.map(({ icon: h, text: g, action: y }) => /* @__PURE__ */ v(
@@ -3646,10 +3646,10 @@ function jo(r) {
3646
3646
  }
3647
3647
  return e;
3648
3648
  }
3649
- function je(r) {
3649
+ function Fe(r) {
3650
3650
  return Object.entries(r).map(([e, t]) => ({ name: e.replace(/\[(\d+)\]/g, ".$1").split(".").map((i) => isNaN(i) ? jo(i) : Number(i)), errors: t }));
3651
3651
  }
3652
- m(Ae.Item)`
3652
+ m(Ne.Item)`
3653
3653
  margin-bottom: 2.5rem;
3654
3654
  padding: 0 1.5rem;
3655
3655
  display: flex;
@@ -3910,7 +3910,7 @@ const an = m.span`
3910
3910
  color: var(--color-text-inverse-primary, #131412) !important;
3911
3911
  }
3912
3912
  }
3913
- `, Wo = m(_e.Password)`
3913
+ `, Wo = m(Be.Password)`
3914
3914
  input[type='number'] {
3915
3915
  &::-webkit-outer-spin-button,
3916
3916
  &::-webkit-inner-spin-button {
@@ -4028,12 +4028,12 @@ const an = m.span`
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((h = (f = g == null ? void 0 : g.response) == null ? void 0 : f.data) == null ? void 0 : h.errors);
4031
+ const y = Fe((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(Se, { children: [
4036
+ /* @__PURE__ */ s(De, { 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 } = De(), { setUser: c } = He(), [u, p] = M(""), [f, h] = M([]), [g, y] = M(!1);
4121
+ const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ue(), { setUser: c } = ze(), [u, p] = M(""), [f, h] = M([]), [g, y] = M(!1);
4122
4122
  function O(k) {
4123
4123
  p(k);
4124
4124
  }
@@ -4131,7 +4131,7 @@ const Zo = {
4131
4131
  c(H.data.value), E();
4132
4132
  } catch (H) {
4133
4133
  if (console.log(H), H.status === 400) {
4134
- const U = H.response.data, Y = je(U.errors);
4134
+ const U = H.response.data, Y = Fe(U.errors);
4135
4135
  h(Y);
4136
4136
  }
4137
4137
  }
@@ -4145,7 +4145,7 @@ const Zo = {
4145
4145
  c(U.data.value);
4146
4146
  } catch (U) {
4147
4147
  if (console.log(U), U.status === 400) {
4148
- const Y = U.response.data, B = je(Y.errors);
4148
+ const Y = U.response.data, B = Fe(Y.errors);
4149
4149
  h(B);
4150
4150
  }
4151
4151
  }
@@ -4183,7 +4183,7 @@ const Zo = {
4183
4183
  {
4184
4184
  className: f.length > 0 ? "verification-error" : "",
4185
4185
  children: [
4186
- /* @__PURE__ */ s(_e.OTP, { value: u, onChange: O }),
4186
+ /* @__PURE__ */ s(Be.OTP, { value: u, onChange: O }),
4187
4187
  /* @__PURE__ */ v(Ho, { children: [
4188
4188
  G("DidnReceiveCode"),
4189
4189
  " ",
@@ -4210,7 +4210,7 @@ const Zo = {
4210
4210
  ] })
4211
4211
  ] }) });
4212
4212
  }, Qo = () => {
4213
- const { enableContactInfo: r, disableContactInfo: e } = De(), { setUser: t } = He(), [n, i] = M(!1), [o, a] = M(null), [l, d] = M(!1), c = async () => {
4213
+ const { enableContactInfo: r, disableContactInfo: e } = Ue(), { setUser: t } = ze(), [n, i] = M(!1), [o, a] = M(null), [l, d] = M(!1), c = async () => {
4214
4214
  var f, h, g, y, O, P, S;
4215
4215
  if (r)
4216
4216
  try {
@@ -4254,7 +4254,7 @@ 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: f } = Qo();
4257
+ const { user: e } = ze(), 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
4258
  function h(S) {
4259
4259
  const E = t.find((k) => k.dataIndex == S.value);
4260
4260
  l([E]);
@@ -4383,7 +4383,7 @@ const Zo = {
4383
4383
  }
4384
4384
  }) => {
4385
4385
  var X, me, fe;
4386
- const { user: B } = He(), F = T((Z) => Z.filters), R = T((Z) => Z.filterItems), b = T((Z) => Z.sortItems), N = T((Z) => Z.hideItems), _ = T((Z) => Z.activeTableView), D = T((Z) => Z.setColumns), L = T((Z) => Z.setHasCreateBtn), w = T((Z) => Z.setHasSelect), x = T((Z) => Z.setCheckedValue), { response: C, loading: I } = Yr(
4386
+ const { user: B } = ze(), F = T((Z) => Z.filters), R = T((Z) => Z.filterItems), b = T((Z) => Z.sortItems), N = T((Z) => Z.hideItems), _ = T((Z) => Z.activeTableView), D = T((Z) => Z.setColumns), L = T((Z) => Z.setHasCreateBtn), w = T((Z) => Z.setHasSelect), x = T((Z) => Z.setCheckedValue), { response: C, loading: I } = Yr(
4387
4387
  () => e({ ...F, ...p }),
4388
4388
  [F, B, t]
4389
4389
  );
@@ -4466,7 +4466,7 @@ const Zo = {
4466
4466
  z && /* @__PURE__ */ s(Xo, { close: () => V(!1) })
4467
4467
  ] });
4468
4468
  }, Tl = (r) => /* @__PURE__ */ s(Ii, { children: /* @__PURE__ */ s(ea, { ...r }) }), $l = () => {
4469
- const r = Ie((y) => y.isOpen), e = Ie((y) => y.options), t = Ie((y) => y.close), n = Ue();
4469
+ const r = $e((y) => y.isOpen), e = $e((y) => y.options), t = $e((y) => y.close), n = _e();
4470
4470
  if (K(() => {
4471
4471
  r && t();
4472
4472
  }, [n.pathname]), !e || !r) return null;
@@ -4546,13 +4546,13 @@ const Zo = {
4546
4546
  if (l)
4547
4547
  try {
4548
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());
4549
+ (c = (d = f.data) == null ? void 0 : d.value) != null && c.isTwoFactorRequired ? (t(f.data.value.token), o(f.data.value.id), e(je.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
4550
  } catch (f) {
4551
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(Se, { children: [
4555
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
4556
4556
  G("SetupTwoFactorAuthentication"),
4557
4557
  /* @__PURE__ */ s(pe, { children: G("SetupTwoFactorAuthenticationDesc") })
4558
4558
  ] }) }),
@@ -4560,14 +4560,20 @@ const Zo = {
4560
4560
  /* @__PURE__ */ s("span", { children: j("Email") }),
4561
4561
  /* @__PURE__ */ s(ce, {})
4562
4562
  ] }) }) }),
4563
- /* @__PURE__ */ s(ue, { onClick: () => e(Be.SELECT_AUTHENTICATOR_APP), children: /* @__PURE__ */ s(et, { children: /* @__PURE__ */ v(re, { children: [
4563
+ /* @__PURE__ */ s(ue, { onClick: () => e(je.SELECT_AUTHENTICATOR_APP), children: /* @__PURE__ */ s(et, { children: /* @__PURE__ */ v(re, { children: [
4564
4564
  /* @__PURE__ */ s("span", { children: G("AuthenticatorApp") }),
4565
4565
  /* @__PURE__ */ s(ce, {})
4566
4566
  ] }) }) }),
4567
4567
  /* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(re, { onClick: r, children: J("Cancel") }) })
4568
4568
  ] });
4569
- }, ra = ({ onClose: r, setCurrentStep: e, setBackupCodes: t, setRefetch: n }) => {
4570
- const { verifyMFA: i } = De(), [o, a] = M(""), [l, d] = M([]);
4569
+ }, ra = ({
4570
+ onClose: r,
4571
+ setCurrentStep: e,
4572
+ setBackupCodes: t,
4573
+ setRefetch: n,
4574
+ confirmTwoFactorService: i
4575
+ }) => {
4576
+ const [o, a] = M(""), [l, d] = M([]);
4571
4577
  function c(p) {
4572
4578
  a(p);
4573
4579
  }
@@ -4577,7 +4583,7 @@ const Zo = {
4577
4583
  if (p)
4578
4584
  try {
4579
4585
  const h = await p(o);
4580
- (f = h.data) != null && f.success && (e(Be.BACKUP_CODES), t(h.data.value.recoveryCodes));
4586
+ (f = h.data) != null && f.success && (e(je.BACKUP_CODES), t(h.data.value.recoveryCodes));
4581
4587
  } catch (h) {
4582
4588
  console.log(h);
4583
4589
  } finally {
@@ -4590,7 +4596,7 @@ const Zo = {
4590
4596
  /* @__PURE__ */ s(pe, { children: G("YouMaySeeVerificationCode") })
4591
4597
  ] }),
4592
4598
  /* @__PURE__ */ v(ln, { children: [
4593
- /* @__PURE__ */ s(_e.OTP, { value: o, onChange: c }),
4599
+ /* @__PURE__ */ s(Be.OTP, { value: o, onChange: c }),
4594
4600
  l.map((p) => /* @__PURE__ */ v("span", { children: [
4595
4601
  /* @__PURE__ */ s(it, {}),
4596
4602
  p.errors[0]
@@ -4611,7 +4617,7 @@ const Zo = {
4611
4617
  G("Other")
4612
4618
  ];
4613
4619
  return /* @__PURE__ */ v("div", { children: [
4614
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
4620
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
4615
4621
  G("SetupTwoFactorAuthentication"),
4616
4622
  /* @__PURE__ */ v(pe, { children: [
4617
4623
  " ",
@@ -4621,7 +4627,7 @@ const Zo = {
4621
4627
  t.map((n) => /* @__PURE__ */ s(
4622
4628
  ue,
4623
4629
  {
4624
- onClick: () => e(Be.CONNECT_AUTHENTICATOR),
4630
+ onClick: () => e(je.CONNECT_AUTHENTICATOR),
4625
4631
  children: /* @__PURE__ */ s(et, { children: /* @__PURE__ */ v(re, { children: [
4626
4632
  /* @__PURE__ */ s("span", { children: n }),
4627
4633
  /* @__PURE__ */ s(ce, {})
@@ -4712,27 +4718,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4712
4718
  function pn(r, e) {
4713
4719
  return ca(r) || da(r, e) || pa(r, e) || ua();
4714
4720
  }
4715
- function Me(r) {
4721
+ function Ie(r) {
4716
4722
  "@babel/helpers - typeof";
4717
- return Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
4723
+ return Ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
4718
4724
  return typeof e;
4719
4725
  } : function(e) {
4720
4726
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
4721
- }, Me(r);
4727
+ }, Ie(r);
4722
4728
  }
4723
4729
  function fa(r, e) {
4724
- if (Me(r) != "object" || !r) return r;
4730
+ if (Ie(r) != "object" || !r) return r;
4725
4731
  var t = r[Symbol.toPrimitive];
4726
4732
  if (t !== void 0) {
4727
4733
  var n = t.call(r, e);
4728
- if (Me(n) != "object") return n;
4734
+ if (Ie(n) != "object") return n;
4729
4735
  throw new TypeError("@@toPrimitive must return a primitive value.");
4730
4736
  }
4731
4737
  return (e === "string" ? String : Number)(r);
4732
4738
  }
4733
4739
  function ha(r) {
4734
4740
  var e = fa(r, "string");
4735
- return Me(e) == "symbol" ? e : e + "";
4741
+ return Ie(e) == "symbol" ? e : e + "";
4736
4742
  }
4737
4743
  function ie(r, e, t) {
4738
4744
  return (e = ha(e)) in r ? Object.defineProperty(r, e, {
@@ -4815,7 +4821,7 @@ function Ye(r, e) {
4815
4821
  const t = e || 255;
4816
4822
  return r > t ? t : r < 0 ? 0 : r;
4817
4823
  }
4818
- class Ne {
4824
+ class Re {
4819
4825
  constructor(e) {
4820
4826
  ie(this, "isValid", !0), ie(this, "r", 0), ie(this, "g", 0), ie(this, "b", 0), ie(this, "a", 1), ie(this, "_h", void 0), ie(this, "_s", void 0), ie(this, "_l", void 0), ie(this, "_v", void 0), ie(this, "_max", void 0), ie(this, "_min", void 0), ie(this, "_brightness", void 0);
4821
4827
  function t(n) {
@@ -4827,7 +4833,7 @@ class Ne {
4827
4833
  };
4828
4834
  const n = e.trim();
4829
4835
  /^#?[A-F\d]{3,8}$/i.test(n) ? this.fromHexString(n) : i("rgb") ? this.fromRgbString(n) : i("hsl") ? this.fromHslString(n) : (i("hsv") || i("hsb")) && this.fromHsvString(n);
4830
- } else if (e instanceof Ne)
4836
+ } else if (e instanceof Re)
4831
4837
  this.r = e.r, this.g = e.g, this.b = e.b, this.a = e.a, this._h = e._h, this._s = e._s, this._l = e._l, this._v = e._v;
4832
4838
  else if (t("rgb"))
4833
4839
  this.r = Ye(e.r), this.g = Ye(e.g), this.b = Ye(e.b), this.a = typeof e.a == "number" ? Ye(e.a, 1) : 1;
@@ -5171,8 +5177,8 @@ function br(r, e, t) {
5171
5177
  return t ? n = r.v + xa * e : n = r.v - wa * e, n = Math.max(0, Math.min(1, n)), Math.round(n * 100) / 100;
5172
5178
  }
5173
5179
  function Sa(r) {
5174
- for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new Ne(r), i = n.toHsv(), o = hn; o > 0; o -= 1) {
5175
- var a = new Ne({
5180
+ for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], n = new Re(r), i = n.toHsv(), o = hn; o > 0; o -= 1) {
5181
+ var a = new Re({
5176
5182
  h: vr(i, o, !0),
5177
5183
  s: yr(i, o, !0),
5178
5184
  v: br(i, o, !0)
@@ -5181,7 +5187,7 @@ function Sa(r) {
5181
5187
  }
5182
5188
  t.push(n);
5183
5189
  for (var l = 1; l <= gn; l += 1) {
5184
- var d = new Ne({
5190
+ var d = new Re({
5185
5191
  h: vr(i, l),
5186
5192
  s: yr(i, l),
5187
5193
  v: br(i, l)
@@ -5190,7 +5196,7 @@ function Sa(r) {
5190
5196
  }
5191
5197
  return e.theme === "dark" ? Ca.map(function(c) {
5192
5198
  var u = c.index, p = c.amount;
5193
- return new Ne(e.backgroundColor || "#141414").mix(t[u], p).toHexString();
5199
+ return new Re(e.backgroundColor || "#141414").mix(t[u], p).toHexString();
5194
5200
  }) : t.map(function(c) {
5195
5201
  return c.toHexString();
5196
5202
  });
@@ -5358,7 +5364,7 @@ function Va(r, e) {
5358
5364
  St(r, "[@ant-design/icons] ".concat(e));
5359
5365
  }
5360
5366
  function Sr(r) {
5361
- return Me(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (Me(r.icon) === "object" || typeof r.icon == "function");
5367
+ return Ie(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (Ie(r.icon) === "object" || typeof r.icon == "function");
5362
5368
  }
5363
5369
  function kr() {
5364
5370
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -5549,7 +5555,7 @@ var qa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
5549
5555
  }, kn = /* @__PURE__ */ $.forwardRef(Za);
5550
5556
  process.env.NODE_ENV !== "production" && (kn.displayName = "DownloadOutlined");
5551
5557
  const Ja = ({ onClose: r, setCurrentStep: e }) => {
5552
- const { initiateMFA: t } = De(), [n, i] = M(null);
5558
+ const { initiateMFA: t } = Ue(), [n, i] = M(null);
5553
5559
  async function o() {
5554
5560
  if (t)
5555
5561
  try {
@@ -5562,7 +5568,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5562
5568
  return K(() => {
5563
5569
  o();
5564
5570
  }, []), /* @__PURE__ */ s("div", { children: n ? /* @__PURE__ */ v(oe, { children: [
5565
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ s(Se, { children: G("EnterAuthenticationCode") }) }),
5571
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ s(Se, { children: G("EnterAuthenticationCode") }) }),
5566
5572
  /* @__PURE__ */ s(ia, { children: /* @__PURE__ */ s("img", { src: `data:image/png;base64,${n.qrCodeImage}` }) }),
5567
5573
  /* @__PURE__ */ s("br", {}),
5568
5574
  /* @__PURE__ */ v(sa, { children: [
@@ -5580,7 +5586,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5580
5586
  /* @__PURE__ */ v(
5581
5587
  re,
5582
5588
  {
5583
- onClick: () => e(Be.VERIFY_AUTHENTICATOR_CODE),
5589
+ onClick: () => e(je.VERIFY_AUTHENTICATOR_CODE),
5584
5590
  children: [
5585
5591
  /* @__PURE__ */ s("span", { children: J("Continue") }),
5586
5592
  /* @__PURE__ */ s(ce, {})
@@ -5605,7 +5611,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5605
5611
  }
5606
5612
  }
5607
5613
  return /* @__PURE__ */ v("div", { children: [
5608
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
5614
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
5609
5615
  G("DisableTwoFactor"),
5610
5616
  /* @__PURE__ */ s(pe, { children: G("DisableTwoFactorDesc") })
5611
5617
  ] }) }),
@@ -5628,8 +5634,14 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5628
5634
  ] })
5629
5635
  ] })
5630
5636
  ] });
5631
- }, Xa = ({ onClose: r, confirmationToken: e, setRefetch: t, idOf2FA: n }) => {
5632
- const { confirmTwoFactor: i } = De(), [o, a] = M(""), [l, d] = M([]);
5637
+ }, Xa = ({
5638
+ onClose: r,
5639
+ confirmationToken: e,
5640
+ setRefetch: t,
5641
+ idOf2FA: n,
5642
+ confirmTwoFactorService: i
5643
+ }) => {
5644
+ const [o, a] = M(""), [l, d] = M([]);
5633
5645
  function c(p) {
5634
5646
  a(p);
5635
5647
  }
@@ -5653,7 +5665,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5653
5665
  /* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
5654
5666
  ] }),
5655
5667
  /* @__PURE__ */ v(ln, { children: [
5656
- /* @__PURE__ */ s(_e.OTP, { value: o, onChange: c }),
5668
+ /* @__PURE__ */ s(Be.OTP, { value: o, onChange: c }),
5657
5669
  l.map((p) => /* @__PURE__ */ v("span", { children: [
5658
5670
  /* @__PURE__ */ s(it, {}),
5659
5671
  p.errors[0]
@@ -5681,7 +5693,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5681
5693
  a.href = o, a.download = "backup-codes.txt", a.click(), URL.revokeObjectURL(o);
5682
5694
  };
5683
5695
  return /* @__PURE__ */ v("div", { children: [
5684
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
5696
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
5685
5697
  G("EnterVerificationCode"),
5686
5698
  /* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
5687
5699
  ] }) }),
@@ -5689,21 +5701,22 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
5689
5701
  /* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(re, { onClick: r, children: J("Cancel") }) })
5690
5702
  ] });
5691
5703
  };
5692
- var Be = /* @__PURE__ */ ((r) => (r[r.SELECT_MFA_OPTION = 0] = "SELECT_MFA_OPTION", r[r.SELECT_AUTHENTICATOR_APP = 1] = "SELECT_AUTHENTICATOR_APP", r[r.CONNECT_AUTHENTICATOR = 2] = "CONNECT_AUTHENTICATOR", r[r.VERIFY_AUTHENTICATOR_CODE = 3] = "VERIFY_AUTHENTICATOR_CODE", r[r.VERIFY_EMAIL_CODE = 4] = "VERIFY_EMAIL_CODE", r[r.DISABLE_AUTHENTICATOR = 5] = "DISABLE_AUTHENTICATOR", r[r.BACKUP_CODES = 6] = "BACKUP_CODES", r[r.ENTER_BACKUP_CODE = 7] = "ENTER_BACKUP_CODE", r))(Be || {});
5704
+ var je = /* @__PURE__ */ ((r) => (r[r.SELECT_MFA_OPTION = 0] = "SELECT_MFA_OPTION", r[r.SELECT_AUTHENTICATOR_APP = 1] = "SELECT_AUTHENTICATOR_APP", r[r.CONNECT_AUTHENTICATOR = 2] = "CONNECT_AUTHENTICATOR", r[r.VERIFY_AUTHENTICATOR_CODE = 3] = "VERIFY_AUTHENTICATOR_CODE", r[r.VERIFY_EMAIL_CODE = 4] = "VERIFY_EMAIL_CODE", r[r.DISABLE_AUTHENTICATOR = 5] = "DISABLE_AUTHENTICATOR", r[r.BACKUP_CODES = 6] = "BACKUP_CODES", r[r.ENTER_BACKUP_CODE = 7] = "ENTER_BACKUP_CODE", r))(je || {});
5693
5705
  const Il = ({
5694
5706
  isOpen: r,
5695
5707
  setIsOpen: e,
5696
5708
  modal: t = 0,
5697
5709
  setRefetch: n,
5698
5710
  enableTwoFactorService: i,
5699
- disableMFAService: o
5711
+ disableMFAService: o,
5712
+ confirmTwoFactorService: a
5700
5713
  }) => {
5701
- const [a, l] = M(t), [d, c] = M(""), [u, p] = M(), [f, h] = M("");
5702
- function g() {
5714
+ const [l, d] = M(t), [c, u] = M(""), [p, f] = M(), [h, g] = M("");
5715
+ function y() {
5703
5716
  e(!1);
5704
5717
  }
5705
- const y = we(() => {
5706
- switch (a) {
5718
+ const O = we(() => {
5719
+ switch (l) {
5707
5720
  case 0:
5708
5721
  return ur;
5709
5722
  case 1:
@@ -5721,37 +5734,50 @@ const Il = ({
5721
5734
  default:
5722
5735
  return ur;
5723
5736
  }
5724
- }, [a]), O = we(() => {
5725
- switch (a) {
5737
+ }, [l]), P = we(() => {
5738
+ switch (l) {
5726
5739
  case 0:
5727
5740
  return {
5728
- onClose: g,
5729
- setCurrentStep: l,
5730
- setConfirmationToken: c,
5741
+ onClose: y,
5742
+ setCurrentStep: d,
5743
+ setConfirmationToken: u,
5731
5744
  setRefetch: n,
5732
- setIdOf2FA: p,
5745
+ setIdOf2FA: f,
5733
5746
  enableTwoFactorService: i,
5734
5747
  disableMFAService: o
5735
5748
  };
5736
5749
  case 1:
5737
- return { onClose: g, setCurrentStep: l };
5750
+ return { onClose: y, setCurrentStep: d };
5738
5751
  case 2:
5739
- return { onClose: g, setCurrentStep: l };
5752
+ return { onClose: y, setCurrentStep: d };
5740
5753
  case 3:
5741
- return { onClose: g, setCurrentStep: l, setBackupCodes: h, setRefetch: n };
5754
+ return {
5755
+ onClose: y,
5756
+ setCurrentStep: d,
5757
+ setBackupCodes: g,
5758
+ setRefetch: n,
5759
+ confirmTwoFactorService: a
5760
+ };
5742
5761
  case 4:
5743
- return { onClose: g, setCurrentStep: l, confirmationToken: d, setRefetch: n, idOf2FA: u };
5762
+ return {
5763
+ onClose: y,
5764
+ setCurrentStep: d,
5765
+ confirmationToken: c,
5766
+ setRefetch: n,
5767
+ idOf2FA: p,
5768
+ confirmTwoFactorService: a
5769
+ };
5744
5770
  case 5:
5745
- return { onClose: g, setRefetch: n, disableMFAService: o };
5771
+ return { onClose: y, setRefetch: n, disableMFAService: o };
5746
5772
  case 6:
5747
- return { onClose: g, backupCodes: f };
5773
+ return { onClose: y, backupCodes: h };
5748
5774
  case 7:
5749
- return { onClose: g, confirmationToken: d, setRefetch: n, idOf2FA: u };
5775
+ return { onClose: y, confirmationToken: c, setRefetch: n, idOf2FA: p };
5750
5776
  default:
5751
- return { onClose: g };
5777
+ return { onClose: y };
5752
5778
  }
5753
- }, [a, d, f]);
5754
- return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: g, hideFooter: !0, children: /* @__PURE__ */ s(y, { ...O }) });
5779
+ }, [l, c, h]);
5780
+ return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: y, hideFooter: !0, children: /* @__PURE__ */ s(O, { ...P }) });
5755
5781
  }, ts = m.div`
5756
5782
  height: var(--size-800, 4rem);
5757
5783
  display: flex;
@@ -5826,7 +5852,7 @@ const Il = ({
5826
5852
  className: n,
5827
5853
  backButton: i = /* @__PURE__ */ s(ns, {})
5828
5854
  }) => {
5829
- const o = ze();
5855
+ const o = Pe();
5830
5856
  return /* @__PURE__ */ v(ts, { className: n || "", children: [
5831
5857
  /* @__PURE__ */ v("div", { className: "page-starter", children: [
5832
5858
  e ? /* @__PURE__ */ s("div", { className: "icon", children: e }) : /* @__PURE__ */ s(rs, { className: "icon", onClick: () => o(-1), children: i }),
@@ -5861,7 +5887,7 @@ const as = {
5861
5887
  const b = await r({ confirmationToken: t, code: u, id: o });
5862
5888
  (B = b == null ? void 0 : b.data) != null && B.success && (d(!1), a && a((N) => !N));
5863
5889
  } catch (b) {
5864
- const N = je((R = (F = b == null ? void 0 : b.response) == null ? void 0 : F.data) == null ? void 0 : R.errors);
5890
+ const N = Fe((R = (F = b == null ? void 0 : b.response) == null ? void 0 : F.data) == null ? void 0 : R.errors);
5865
5891
  P(N), console.log("Error in Save OTP", b);
5866
5892
  }
5867
5893
  }
@@ -5897,7 +5923,7 @@ const as = {
5897
5923
  confirmationToken: t
5898
5924
  }
5899
5925
  ) }) : /* @__PURE__ */ v(oe, { children: [
5900
- /* @__PURE__ */ s(Ee, { children: /* @__PURE__ */ v(Se, { children: [
5926
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
5901
5927
  G("EnterVerificationCode"),
5902
5928
  /* @__PURE__ */ s(pe, { children: G(as[i]) })
5903
5929
  ] }) }),
@@ -5906,7 +5932,7 @@ const as = {
5906
5932
  {
5907
5933
  className: O.length > 0 ? "verification-error" : "",
5908
5934
  children: [
5909
- /* @__PURE__ */ s(_e.OTP, { value: u, onChange: Y }),
5935
+ /* @__PURE__ */ s(Be.OTP, { value: u, onChange: Y }),
5910
5936
  O.map((B) => /* @__PURE__ */ v("span", { children: [
5911
5937
  /* @__PURE__ */ s(it, {}),
5912
5938
  B.errors[0]
@@ -6429,7 +6455,7 @@ const bs = m.div`
6429
6455
  for (const n in e)
6430
6456
  n !== "__proto__" && n !== "constructor" && (n in r ? A(r[n]) || r[n] instanceof String || A(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Ln(r[n], e[n], t) : r[n] = e[n]);
6431
6457
  return r;
6432
- }, $e = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Ls = {
6458
+ }, Te = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Ls = {
6433
6459
  "&": "&amp;",
6434
6460
  "<": "&lt;",
6435
6461
  ">": "&gt;",
@@ -6656,7 +6682,7 @@ function Ms() {
6656
6682
  return (o = t == null ? void 0 : t.revoke) == null || o.call(t), i === Dn ? r : (r.push(i), t = Proxy.revocable(n, e), t.proxy);
6657
6683
  }, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
6658
6684
  }
6659
- function Fe(r, e) {
6685
+ function Ve(r, e) {
6660
6686
  const {
6661
6687
  [Dn]: t
6662
6688
  } = r(Ms()), n = (e == null ? void 0 : e.keySeparator) ?? ".", i = (e == null ? void 0 : e.nsSeparator) ?? ":";
@@ -6715,10 +6741,10 @@ class bt extends kt {
6715
6741
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = {
6716
6742
  ...i
6717
6743
  }), i || (i = {}), e == null) return "";
6718
- typeof e == "function" && (e = Fe(e, {
6744
+ typeof e == "function" && (e = Ve(e, {
6719
6745
  ...this.options,
6720
6746
  ...i
6721
- })), Array.isArray(e) || (e = [String(e)]), e = e.map((_) => typeof _ == "function" ? Fe(_, {
6747
+ })), Array.isArray(e) || (e = [String(e)]), e = e.map((_) => typeof _ == "function" ? Ve(_, {
6722
6748
  ...this.options,
6723
6749
  ...i
6724
6750
  }) : String(_));
@@ -6860,7 +6886,7 @@ class bt extends kt {
6860
6886
  }
6861
6887
  resolve(e, t = {}) {
6862
6888
  let n, i, o, a, l;
6863
- return A(e) && (e = [e]), Array.isArray(e) && (e = e.map((d) => typeof d == "function" ? Fe(d, {
6889
+ return A(e) && (e = [e]), Array.isArray(e) && (e = e.map((d) => typeof d == "function" ? Ve(d, {
6864
6890
  ...this.options,
6865
6891
  ...t
6866
6892
  }) : d)), e.forEach((d) => {
@@ -7080,7 +7106,7 @@ class Rr {
7080
7106
  maxReplaces: P,
7081
7107
  alwaysFormat: S
7082
7108
  } = e.interpolation;
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();
7109
+ this.escape = t !== void 0 ? t : Os, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? Te(o) : a || "{{", this.suffix = l ? Te(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Te(f) : h || Te("$t("), this.nestingSuffix = g ? Te(g) : y || Te(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
7084
7110
  }
7085
7111
  reset() {
7086
7112
  this.options && this.init(this.options);
@@ -7142,7 +7168,7 @@ class Rr {
7142
7168
  const l = (d, c) => {
7143
7169
  const u = this.nestingOptionsSeparator;
7144
7170
  if (!d.includes(u)) return d;
7145
- const p = d.split(new RegExp(`${$e(u)}[ ]*{`));
7171
+ const p = d.split(new RegExp(`${Te(u)}[ ]*{`));
7146
7172
  let f = `{${p[1]}`;
7147
7173
  d = p[0], f = this.interpolate(f, a);
7148
7174
  const h = f.match(/'/g), g = f.match(/"/g);
@@ -7610,10 +7636,10 @@ class Xe extends kt {
7610
7636
  ...this.options,
7611
7637
  ...d
7612
7638
  };
7613
- typeof d.keyPrefix == "function" && (d.keyPrefix = Fe(d.keyPrefix, c));
7639
+ typeof d.keyPrefix == "function" && (d.keyPrefix = Ve(d.keyPrefix, c));
7614
7640
  const u = this.options.keySeparator || ".";
7615
7641
  let p;
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);
7642
+ return d.keyPrefix && Array.isArray(o) ? p = o.map((f) => (typeof f == "function" && (f = Ve(f, c)), `${d.keyPrefix}${u}${f}`)) : (typeof o == "function" && (o = Ve(o, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${o}` : o), this.t(p, d);
7617
7643
  };
7618
7644
  return A(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i;
7619
7645
  }
@@ -8064,13 +8090,13 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8064
8090
  de("11")
8065
8091
  ],
8066
8092
  shortWeekDays: [
8067
- Te("Sun"),
8068
- Te("Mon"),
8069
- Te("Tue"),
8070
- Te("Wed"),
8071
- Te("Thu"),
8072
- Te("Fri"),
8073
- Te("Sat")
8093
+ Ee("Sun"),
8094
+ Ee("Mon"),
8095
+ Ee("Tue"),
8096
+ Ee("Wed"),
8097
+ Ee("Thu"),
8098
+ Ee("Fri"),
8099
+ Ee("Sat")
8074
8100
  ]
8075
8101
  }
8076
8102
  };
@@ -8293,16 +8319,16 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8293
8319
  hasAllFilter: e = !1
8294
8320
  }) => {
8295
8321
  const [t, n] = M([]), i = [
8296
- { key: "week", label: Re("7D"), ...le.getCommonDateRange("week") },
8297
- { key: "month", label: Re("30D"), ...le.getCommonDateRange("month") },
8298
- { key: "threeMonth", label: Re("3M"), ...le.getCommonDateRange("threeMonth") },
8299
- { key: "sixMonth", label: Re("6M"), ...le.getCommonDateRange("sixMonth") },
8322
+ { key: "week", label: He("7D"), ...le.getCommonDateRange("week") },
8323
+ { key: "month", label: He("30D"), ...le.getCommonDateRange("month") },
8324
+ { key: "threeMonth", label: He("3M"), ...le.getCommonDateRange("threeMonth") },
8325
+ { key: "sixMonth", label: He("6M"), ...le.getCommonDateRange("sixMonth") },
8300
8326
  {
8301
8327
  key: "twelveMonth",
8302
- label: Re("12M"),
8328
+ label: He("12M"),
8303
8329
  ...le.getCommonDateRange("twelveMonth")
8304
8330
  },
8305
- { key: "year", label: Re("YTD"), ...le.getCommonDateRange("year") },
8331
+ { key: "year", label: He("YTD"), ...le.getCommonDateRange("year") },
8306
8332
  {
8307
8333
  key: "custom",
8308
8334
  label: t.length === 2 && t[0] !== "" ? `${j("Custom")}: ${t[0]} / ${t[1]}` : j("Custom"),
@@ -8394,7 +8420,7 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8394
8420
  }, Gs = (r, e) => {
8395
8421
  const t = new Blob([r], { type: "text/csv;charset=utf-8;" }), n = window.URL.createObjectURL(t), i = document.createElement("a");
8396
8422
  i.href = n, i.setAttribute("download", e), document.body.appendChild(i), i.click(), document.body.removeChild(i), window.URL.revokeObjectURL(n);
8397
- }, Ws = m(Pe)`
8423
+ }, Ws = m(Me)`
8398
8424
  background: var(--color-bg-secondary, #f0ededff) !important;
8399
8425
  font-size: 14px;
8400
8426
  font-weight: 500;
@@ -8471,7 +8497,7 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8471
8497
  ct.utils.book_append_sheet(a, o, "Data");
8472
8498
  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");
8473
8499
  u.href = c, u.download = t, document.body.appendChild(u), u.click(), document.body.removeChild(u), URL.revokeObjectURL(c);
8474
- }, Zs = m(Pe)`
8500
+ }, Zs = m(Me)`
8475
8501
  background: var(--color-bg-secondary, #f0ededff) !important;
8476
8502
  font-size: 14px;
8477
8503
  font-weight: 500;
@@ -8805,7 +8831,7 @@ const Ul = ({
8805
8831
  needsBreadcrumb: a,
8806
8832
  customTabFilter: l
8807
8833
  }) => {
8808
- const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p = ze(), f = we(() => {
8834
+ const { hasPermission: d } = ze(), { id: c } = jn(), u = _e(), p = Pe(), f = we(() => {
8809
8835
  const k = u.pathname.split("/");
8810
8836
  return k[k.length - 1] || n;
8811
8837
  }, [u.pathname, n]), [h, g] = M(null), [y, O] = M(null), P = (k) => {
@@ -8867,7 +8893,7 @@ const Ul = ({
8867
8893
  getItemById: o,
8868
8894
  onSetFormValues: a
8869
8895
  }) => {
8870
- const l = ze(), [d] = Ae.useForm(), [c, u] = M(r == "new"), [p, f] = M(null), h = async (y) => {
8896
+ const l = Pe(), [d] = Ne.useForm(), [c, u] = M(r == "new"), [p, f] = M(null), h = async (y) => {
8871
8897
  const O = window.location.pathname, P = O.substring(0, O.lastIndexOf("/"));
8872
8898
  try {
8873
8899
  if (p) {
@@ -8879,7 +8905,7 @@ const Ul = ({
8879
8905
  }
8880
8906
  } catch (S) {
8881
8907
  if (S.status === 400) {
8882
- const E = S.response.data, k = je(E.errors);
8908
+ const E = S.response.data, k = Fe(E.errors);
8883
8909
  d.setFields(k);
8884
8910
  }
8885
8911
  }
@@ -8901,13 +8927,13 @@ const Ul = ({
8901
8927
  handleSave: h
8902
8928
  };
8903
8929
  }, Yl = ({ id: r, formItem: e, updateItem: t, addItem: n, getItemById: i }) => {
8904
- const [o] = Ae.useForm(), [a, l] = M(null), d = async (u) => {
8930
+ const [o] = Ne.useForm(), [a, l] = M(null), d = async (u) => {
8905
8931
  try {
8906
8932
  let p;
8907
8933
  return r ? p = await t({ ...u }) : p = await n(u), p;
8908
8934
  } catch (p) {
8909
8935
  if (p.status === 400) {
8910
- const f = p.response.data, h = je(f.errors);
8936
+ const f = p.response.data, h = Fe(f.errors);
8911
8937
  o.setFields(h);
8912
8938
  }
8913
8939
  throw p;
@@ -8935,7 +8961,7 @@ const Ul = ({
8935
8961
  handleSave: d
8936
8962
  };
8937
8963
  }, Kl = () => {
8938
- const r = ze(), { setUser: e } = He(), [t, n] = M({
8964
+ const r = Pe(), { setUser: e } = ze(), [t, n] = M({
8939
8965
  visible: !1,
8940
8966
  token: ""
8941
8967
  }), i = (a) => {
@@ -8963,7 +8989,7 @@ const Ul = ({
8963
8989
  };
8964
8990
  };
8965
8991
  function ql(r) {
8966
- const { navigator: e } = xt(Bn), t = Ue();
8992
+ const { navigator: e } = xt(Bn), t = _e();
8967
8993
  K(() => {
8968
8994
  if (!r) return;
8969
8995
  const n = e.push, i = e.replace, o = (a) => (...l) => {
@@ -9066,7 +9092,7 @@ export {
9066
9092
  be as ColumnFilterType,
9067
9093
  Hl as ComingSoon,
9068
9094
  Jo as ContactInfoModal,
9069
- Ee as ContentContainer,
9095
+ De as ContentContainer,
9070
9096
  tt as CreateModalButton,
9071
9097
  le as DateHelper,
9072
9098
  _l as DatePickerToISO,
@@ -9076,14 +9102,14 @@ export {
9076
9102
  Bl as ExcelExportSelected,
9077
9103
  Rl as ExpandableTable,
9078
9104
  oo as FilterConfiguration,
9079
- Ve as FilterSelectTypes,
9105
+ Ae as FilterSelectTypes,
9080
9106
  qt as GeneralInput,
9081
9107
  pr as GenericModal,
9082
9108
  Gl as GenericTabsPage,
9083
9109
  Tl as GridViewPage,
9084
9110
  pe as LabelText,
9085
9111
  Il as MFAModalManager,
9086
- Be as MFA_STEP,
9112
+ je as MFA_STEP,
9087
9113
  $l as ModalHost,
9088
9114
  to as ModalHostButtonWrapper,
9089
9115
  $o as NoData,
@@ -9117,7 +9143,7 @@ export {
9117
9143
  Ql as numberFormatterWithComma,
9118
9144
  Xl as parseCommissionErrors,
9119
9145
  jo as parseErrorMessageKey,
9120
- je as parseServerErrors,
9146
+ Fe as parseServerErrors,
9121
9147
  Zl as useAutofillStartDetection,
9122
9148
  Qo as useContactInfoController,
9123
9149
  en as useDebounce,
@@ -9125,11 +9151,11 @@ export {
9125
9151
  Yr as useFetch,
9126
9152
  rn as useFilterDataSourceType,
9127
9153
  Wl as useFormController,
9128
- Ie as useModalStore,
9154
+ $e as useModalStore,
9129
9155
  ql as useNavigationGuard,
9130
9156
  Yl as useNewDesignFormController,
9131
- De as usePackageServices,
9157
+ Ue as usePackageServices,
9132
9158
  Kl as useTwoFactor,
9133
- He as useUserStore
9159
+ ze as useUserStore
9134
9160
  };
9135
9161
  //# sourceMappingURL=index.mjs.map