affiliate-front-shared 1.3.22 → 1.3.23

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
@@ -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 f = await r();
158
- n(f), (p = f == null ? void 0 : f.data) != null && p.items && o(f.data.items);
157
+ const h = await r();
158
+ n(h), (p = h == null ? void 0 : h.data) != null && p.items && o(h.data.items);
159
159
  } catch {
160
160
  c("Failed to fetch data");
161
161
  } finally {
@@ -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: f } = Yr(t ?? (() => Promise.resolve({ data: [] })), []);
286
- async function h(y) {
285
+ ] }), { response: h } = Yr(t ?? (() => Promise.resolve({ data: [] })), []);
286
+ async function f(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: ((f == null ? void 0 : f.data) || []).map((y) => /* @__PURE__ */ s(te.Item, { onClick: () => h(y.id), children: p(y.name) }, y.id)) }, "40"),
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"),
325
325
  /* @__PURE__ */ s(te.Divider, {}),
326
326
  /* @__PURE__ */ s(te.Item, { onClick: c, children: "LogOut" }, "100")
327
327
  ]
@@ -663,8 +663,8 @@ const ir = (r) => {
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 f = e;
667
- e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((h) => h(e, f));
666
+ const h = e;
667
+ e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((f) => f(e, h));
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;
@@ -1214,27 +1214,27 @@ const _t = m.div`
1214
1214
  }
1215
1215
  );
1216
1216
  }, tn = ({ placement: r, children: e }) => {
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(
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(
1218
1218
  (o == null ? void 0 : o.direction) === se.ASC ? se.ASC : se.DESC
1219
1219
  ), u = t.filter(
1220
- (h) => h.title.toLowerCase().includes(a.toLowerCase()) && h.sortable !== !1
1220
+ (f) => f.title.toLowerCase().includes(a.toLowerCase()) && f.sortable !== !1
1221
1221
  );
1222
- function p(h, g) {
1222
+ function p(f, g) {
1223
1223
  i([
1224
1224
  {
1225
- title: h.title,
1226
- dataIndex: h.dataIndex.charAt(0).toUpperCase() + h.dataIndex.slice(1),
1225
+ title: f.title,
1226
+ dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
1227
1227
  direction: g
1228
1228
  }
1229
1229
  ]);
1230
1230
  }
1231
- function f() {
1231
+ function h() {
1232
1232
  i([]);
1233
1233
  }
1234
1234
  return /* @__PURE__ */ s(
1235
1235
  Wi,
1236
1236
  {
1237
- overlay: (h) => /* @__PURE__ */ v(_t, { children: [
1237
+ overlay: (f) => /* @__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) ? f() : p(g, d);
1251
+ g.title == (o == null ? void 0 : o.title) ? h() : 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((f) => f.columns), c = T((f) => f.filterItems), u = T((f) => f.setFilterItems);
1295
- function p(f) {
1296
- t ? t(f) : u([
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([
1297
1297
  ...c,
1298
1298
  {
1299
- ...f,
1299
+ ...h,
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: (f) => l(f.target.value)
1317
+ onChange: (h) => l(h.target.value)
1318
1318
  }
1319
1319
  ),
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)) }),
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)) }),
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), f = T((x) => x.setFilters), h = 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), h = T((x) => x.setFilters), f = 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}`);
@@ -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
- h(I, !0), g(z), b({ id: C.id, name: C.name });
1475
+ f(I, !0), g(z), b({ id: C.id, name: C.name });
1476
1476
  }
1477
1477
  const D = en((x) => {
1478
- f({
1478
+ h({
1479
1479
  ...u,
1480
1480
  QuickSearch: x.target.value
1481
1481
  });
@@ -2299,14 +2299,14 @@ const oo = ({
2299
2299
  !0
2300
2300
  );
2301
2301
  };
2302
- function f(b) {
2302
+ function h(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 h = en((b) => {
2309
+ const f = 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: h
2343
+ onChange: f
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: f, children: /* @__PURE__ */ v("span", { children: [
2420
+ /* @__PURE__ */ s(Wt, { placement: "bottomLeft", onSelect: h, children: /* @__PURE__ */ v("span", { children: [
2421
2421
  /* @__PURE__ */ s(Qr, {}),
2422
2422
  r.title
2423
2423
  ] }) }),
@@ -2449,7 +2449,7 @@ const oo = ({
2449
2449
  console.log(g, "Error happened deleting configuration");
2450
2450
  }
2451
2451
  }
2452
- function f() {
2452
+ function h() {
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 h() {
2473
+ function f() {
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: h, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2507
- i && /* @__PURE__ */ s("button", { onClick: f, children: "DeleteConfiguration" }),
2506
+ /* @__PURE__ */ s("button", { onClick: f, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2507
+ i && /* @__PURE__ */ s("button", { onClick: h, 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((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) {
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) {
3024
3024
  a([
3025
3025
  {
3026
- title: h.title,
3027
- dataIndex: h.dataIndex.charAt(0).toUpperCase() + h.dataIndex.slice(1),
3026
+ title: f.title,
3027
+ dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
3028
3028
  direction: g
3029
3029
  }
3030
3030
  ]);
3031
3031
  }
3032
- function c(h) {
3033
- const g = n.filter((y) => h.title != y.title);
3032
+ function c(f) {
3033
+ const g = n.filter((y) => f.title != y.title);
3034
3034
  o([
3035
3035
  ...g,
3036
3036
  {
3037
- ...h,
3037
+ ...f,
3038
3038
  selectType: Ve.VALUE
3039
3039
  }
3040
3040
  ]);
3041
3041
  }
3042
- function u(h, g) {
3042
+ function u(f, g) {
3043
3043
  l({
3044
3044
  ...i,
3045
- [h.dataIndex]: !0
3045
+ [f.dataIndex]: !0
3046
3046
  });
3047
3047
  }
3048
- const p = () => t(!1), f = [
3048
+ const p = () => t(!1), h = [
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: f.map(({ icon: h, text: g, action: y }) => /* @__PURE__ */ v(
3070
+ popupRender: () => /* @__PURE__ */ s(fo, { children: h.map(({ icon: f, text: g, action: y }) => /* @__PURE__ */ v(
3071
3071
  "button",
3072
3072
  {
3073
3073
  onClick: () => {
3074
3074
  y(), p();
3075
3075
  },
3076
3076
  children: [
3077
- h,
3077
+ f,
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: (h) => (h == null ? void 0 : h.parentElement) ?? document.body,
3086
+ getPopupContainer: (f) => (f == null ? void 0 : f.parentElement) ?? document.body,
3087
3087
  children: /* @__PURE__ */ s("th", { className: e ? "active" : "", children: /* @__PURE__ */ s("span", { children: r.title }) })
3088
3088
  }
3089
3089
  );
@@ -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), f = T((E) => E.setFilters), h = we(() => p.length > 0 ? e.filter(
3187
+ const u = T((E) => E.filters), p = T((E) => E.groupByArr), h = T((E) => E.setFilters), f = 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,14 +3206,14 @@ 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
- f({
3209
+ h({
3210
3210
  ...u,
3211
3211
  PageSize: E,
3212
3212
  Page: 1
3213
3213
  });
3214
3214
  }
3215
3215
  function S(E) {
3216
- f({
3216
+ h({
3217
3217
  ...u,
3218
3218
  Page: E
3219
3219
  });
@@ -3221,20 +3221,20 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3221
3221
  return /* @__PURE__ */ v(uo, { children: [
3222
3222
  /* @__PURE__ */ v("table", { children: [
3223
3223
  r != Oe.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ v("tr", { children: [
3224
- h.map((E) => /* @__PURE__ */ s(ko, { col: E }, E.dataIndex)),
3224
+ f.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: h.length
3231
+ columnLength: f.length
3232
3232
  }
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(
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(
3234
3234
  wo,
3235
3235
  {
3236
3236
  dataSource: O,
3237
- columns: h,
3237
+ columns: f,
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: h,
3247
+ columns: f,
3248
3248
  rowKey: t,
3249
3249
  onRowClick: l
3250
3250
  }
@@ -4023,12 +4023,12 @@ const an = m.span`
4023
4023
  }) => {
4024
4024
  const [a, l] = M(), [d, c] = M([]);
4025
4025
  async function u() {
4026
- var p, f, h;
4026
+ var p, h, f;
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((h = (f = g == null ? void 0 : g.response) == null ? void 0 : f.data) == null ? void 0 : h.errors);
4031
+ const y = je((f = (h = g == null ? void 0 : g.response) == null ? void 0 : h.data) == null ? void 0 : f.errors);
4032
4032
  c(y), console.log(g);
4033
4033
  }
4034
4034
  }
@@ -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(""), [f, h] = M([]), [g, y] = M(!1);
4121
+ const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ce(), { setUser: c } = He(), [u, p] = M(""), [h, f] = 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
- h([]);
4129
+ f([]);
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
- h(Y);
4135
+ f(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
- h([]);
4143
+ f([]);
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
- h(B);
4149
+ f(B);
4150
4150
  }
4151
4151
  }
4152
4152
  }
4153
4153
  function E() {
4154
- p(""), e(!1), h([]);
4154
+ p(""), e(!1), f([]);
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: f.length > 0 ? "verification-error" : "",
4184
+ className: h.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
- f.map((k) => /* @__PURE__ */ v("span", { children: [
4192
+ h.map((k) => /* @__PURE__ */ v("span", { children: [
4193
4193
  /* @__PURE__ */ s(it, {}),
4194
4194
  k.errors[0]
4195
4195
  ] }, k.name))
@@ -4211,13 +4211,13 @@ const Zo = {
4211
4211
  ] }) });
4212
4212
  }, Qo = () => {
4213
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 f, h, g, y, O, P, S;
4214
+ var h, f, 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: (h = (f = E.data) == null ? void 0 : f.value) == null ? void 0 : h.token,
4220
+ token: (f = (h = E.data) == null ? void 0 : h.value) == null ? void 0 : f.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 f = await e();
4232
- t(f.data.value);
4231
+ const h = await e();
4232
+ t(h.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: f } = Qo();
4258
- function h(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: h } = Qo();
4258
+ function f(S) {
4259
4259
  const E = t.find((k) => k.dataIndex == S.value);
4260
4260
  l([E]);
4261
4261
  }
@@ -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: h
4322
+ onChange: f
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, { ...f })
4356
+ /* @__PURE__ */ s(Jo, { ...h })
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: f,
4372
- createIsModal: h,
4371
+ tableAdditionalFields: h,
4372
+ createIsModal: f,
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: f,
4412
- createIsModal: h,
4411
+ tableAdditionalFields: h,
4412
+ createIsModal: f,
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: h,
4444
+ createIsModal: f,
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: f
4483
- } = e, h = () => {
4484
- f == null || f();
4482
+ onCancel: h
4483
+ } = e, f = () => {
4484
+ h == null || h();
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: h, children: d == null ? void 0 : d.cancelText }),
4500
+ /* @__PURE__ */ s(re, { onClick: f, children: d == null ? void 0 : d.cancelText }),
4501
4501
  /* @__PURE__ */ s(
4502
4502
  to,
4503
4503
  {
@@ -4545,10 +4545,10 @@ const Zo = {
4545
4545
  const l = n;
4546
4546
  if (l)
4547
4547
  try {
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);
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);
4552
4552
  }
4553
4553
  }
4554
4554
  return /* @__PURE__ */ v("div", { children: [
@@ -4572,16 +4572,16 @@ const Zo = {
4572
4572
  a(p);
4573
4573
  }
4574
4574
  async function u() {
4575
- var f;
4575
+ var h;
4576
4576
  const p = i;
4577
4577
  if (p)
4578
4578
  try {
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);
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);
4583
4583
  } finally {
4584
- n((h) => h + 1);
4584
+ n((f) => f + 1);
4585
4585
  }
4586
4586
  }
4587
4587
  return /* @__PURE__ */ v("div", { children: [
@@ -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 f = ee(n * 255);
5061
- this.r = f, this.g = f, this.b = f;
5060
+ const h = ee(n * 255);
5061
+ this.r = h, this.g = h, this.b = h;
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(f) {
5265
- if (!["prepend", "prependQueue"].includes(f.getAttribute(wr)))
5264
+ var p = (e.styles || Xt(c)).filter(function(h) {
5265
+ if (!["prepend", "prependQueue"].includes(h.getAttribute(wr)))
5266
5266
  return !1;
5267
- var h = Number(f.getAttribute(Cr) || 0);
5268
- return o >= h;
5267
+ var f = Number(h.getAttribute(Cr) || 0);
5268
+ return o >= f;
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, 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;
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;
5514
5514
  y === void 0 && l && (y = -1);
5515
5515
  var O = o ? {
5516
5516
  msTransform: "rotate(".concat(o, "deg)"),
@@ -5694,14 +5694,15 @@ const Il = ({
5694
5694
  isOpen: r,
5695
5695
  setIsOpen: e,
5696
5696
  modal: t = 0,
5697
- setRefetch: n
5697
+ setRefetch: n,
5698
+ enableTwoFactor: i
5698
5699
  }) => {
5699
- const [i, o] = M(t), [a, l] = M(""), [d, c] = M(), [u, p] = M("");
5700
+ const [o, a] = M(t), [l, d] = M(""), [c, u] = M(), [p, h] = M("");
5700
5701
  function f() {
5701
5702
  e(!1);
5702
5703
  }
5703
- const h = we(() => {
5704
- switch (i) {
5704
+ const g = we(() => {
5705
+ switch (o) {
5705
5706
  case 0:
5706
5707
  return ur;
5707
5708
  case 1:
@@ -5719,29 +5720,29 @@ const Il = ({
5719
5720
  default:
5720
5721
  return ur;
5721
5722
  }
5722
- }, [i]), g = we(() => {
5723
- switch (i) {
5723
+ }, [o]), y = we(() => {
5724
+ switch (o) {
5724
5725
  case 0:
5725
- return { onClose: f, setCurrentStep: o, setConfirmationToken: l, setRefetch: n, setIdOf2FA: c };
5726
+ return { onClose: f, setCurrentStep: a, setConfirmationToken: d, setRefetch: n, setIdOf2FA: u, enableTwoFactor: i };
5726
5727
  case 1:
5727
- return { onClose: f, setCurrentStep: o };
5728
+ return { onClose: f, setCurrentStep: a };
5728
5729
  case 2:
5729
- return { onClose: f, setCurrentStep: o };
5730
+ return { onClose: f, setCurrentStep: a };
5730
5731
  case 3:
5731
- return { onClose: f, setCurrentStep: o, setBackupCodes: p, setRefetch: n };
5732
+ return { onClose: f, setCurrentStep: a, setBackupCodes: h, setRefetch: n };
5732
5733
  case 4:
5733
- return { onClose: f, setCurrentStep: o, confirmationToken: a, setRefetch: n, idOf2FA: d };
5734
+ return { onClose: f, setCurrentStep: a, confirmationToken: l, setRefetch: n, idOf2FA: c };
5734
5735
  case 5:
5735
5736
  return { onClose: f, setRefetch: n };
5736
5737
  case 6:
5737
- return { onClose: f, backupCodes: u };
5738
+ return { onClose: f, backupCodes: p };
5738
5739
  case 7:
5739
- return { onClose: f, confirmationToken: a, setRefetch: n, idOf2FA: d };
5740
+ return { onClose: f, confirmationToken: l, setRefetch: n, idOf2FA: c };
5740
5741
  default:
5741
5742
  return { onClose: f };
5742
5743
  }
5743
- }, [i, a, u]);
5744
- return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: f, hideFooter: !0, children: /* @__PURE__ */ s(h, { ...g }) });
5744
+ }, [o, l, p]);
5745
+ return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: f, hideFooter: !0, children: /* @__PURE__ */ s(g, { ...y }) });
5745
5746
  }, ts = m.div`
5746
5747
  height: var(--size-800, 4rem);
5747
5748
  display: flex;
@@ -5843,7 +5844,7 @@ const as = {
5843
5844
  setVisible: d,
5844
5845
  visible: c
5845
5846
  }) => {
5846
- const [u, p] = M(""), [f, h] = M(!0), [g, y] = M(60), [O, P] = M([]), [S, E] = M(!1);
5847
+ const [u, p] = M(""), [h, f] = M(!0), [g, y] = M(60), [O, P] = M([]), [S, E] = M(!1);
5847
5848
  async function k() {
5848
5849
  var B, F, R;
5849
5850
  if (u)
@@ -5859,7 +5860,7 @@ const as = {
5859
5860
  if (e)
5860
5861
  try {
5861
5862
  const B = await e(t, o);
5862
- B.data.success && (n(B), h(!0), y(60));
5863
+ B.data.success && (n(B), f(!0), y(60));
5863
5864
  } catch (B) {
5864
5865
  console.log("Error in OTP resend", B);
5865
5866
  }
@@ -5871,12 +5872,12 @@ const as = {
5871
5872
  p(B);
5872
5873
  }
5873
5874
  return K(() => {
5874
- if (!f) return;
5875
+ if (!h) return;
5875
5876
  const B = setInterval(() => {
5876
- y((F) => F <= 1 ? (clearInterval(B), h(!1), 0) : F - 1);
5877
+ y((F) => F <= 1 ? (clearInterval(B), f(!1), 0) : F - 1);
5877
5878
  }, 1e3);
5878
5879
  return () => clearInterval(B);
5879
- }, [f]), /* @__PURE__ */ s(Kt, { open: c, onCancel: U, footer: [null], children: t ? /* @__PURE__ */ s(oe, { children: S ? /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
5880
+ }, [h]), /* @__PURE__ */ s(Kt, { open: c, onCancel: U, footer: [null], children: t ? /* @__PURE__ */ s(oe, { children: S ? /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
5880
5881
  cn,
5881
5882
  {
5882
5883
  setBackupActivated: E,
@@ -5913,9 +5914,9 @@ const as = {
5913
5914
  i !== Rt.TOTP && /* @__PURE__ */ s(
5914
5915
  re,
5915
5916
  {
5916
- disabled: f,
5917
+ disabled: h,
5917
5918
  onClick: H,
5918
- children: f ? `${G("ResendAvailable")} ${g} ${j("Second")}` : `${G("Resend")}`
5919
+ children: h ? `${G("ResendAvailable")} ${g} ${j("Second")}` : `${G("Resend")}`
5919
5920
  }
5920
5921
  ),
5921
5922
  /* @__PURE__ */ v(
@@ -6224,11 +6225,11 @@ const ls = m(Ct)`
6224
6225
  loading: d,
6225
6226
  pagination: c
6226
6227
  }) => {
6227
- const [u, p] = M([]), f = t || n;
6228
+ const [u, p] = M([]), h = t || n;
6228
6229
  K(() => {
6229
6230
  a && a.length > 0 && p((g) => [...a, ...g]);
6230
6231
  }, [a]);
6231
- function h(g) {
6232
+ function f(g) {
6232
6233
  p(g), l && l([]);
6233
6234
  }
6234
6235
  return /* @__PURE__ */ s(
@@ -6241,9 +6242,9 @@ const ls = m(Ct)`
6241
6242
  emptyText: /* @__PURE__ */ s(_r, { description: Jn("NoData") })
6242
6243
  },
6243
6244
  loading: d,
6244
- columns: f,
6245
+ columns: h,
6245
6246
  expandedRowKeys: u,
6246
- onExpandedRowsChange: h,
6247
+ onExpandedRowsChange: f,
6247
6248
  expandable: {
6248
6249
  expandedRowRender: (g) => /* @__PURE__ */ s(e, { ...o, record: g }),
6249
6250
  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, {}) }) }),
@@ -6718,9 +6719,9 @@ class bt extends kt {
6718
6719
  } = this.extractFromKey(e[e.length - 1], i), c = d[d.length - 1];
6719
6720
  let u = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
6720
6721
  u === void 0 && (u = ":");
6721
- const p = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6722
+ const p = i.lng || this.language, h = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6722
6723
  if ((p == null ? void 0 : p.toLowerCase()) === "cimode")
6723
- return f ? o ? {
6724
+ return h ? o ? {
6724
6725
  res: `${c}${u}${l}`,
6725
6726
  usedKey: l,
6726
6727
  exactUsedKey: l,
@@ -6735,9 +6736,9 @@ class bt extends kt {
6735
6736
  usedNS: c,
6736
6737
  usedParams: this.getUsedParamsDetails(i)
6737
6738
  } : l;
6738
- const h = this.resolve(e, i);
6739
- let g = h == null ? void 0 : h.res;
6740
- 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, {
6739
+ const f = this.resolve(e, i);
6740
+ let g = f == null ? void 0 : f.res;
6741
+ 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, {
6741
6742
  ordinal: !1
6742
6743
  }) : "", B = k && !i.ordinal && i.count === 0, F = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${U}`] || i[`defaultValue${Y}`] || i.defaultValue;
6743
6744
  let R = g;
@@ -6750,7 +6751,7 @@ class bt extends kt {
6750
6751
  ...i,
6751
6752
  ns: d
6752
6753
  }) : `key '${l} (${this.language})' returned an object instead of string.`;
6753
- return o ? (h.res = _, h.usedParams = this.getUsedParamsDetails(i), h) : _;
6754
+ return o ? (f.res = _, f.usedParams = this.getUsedParamsDetails(i), f) : _;
6754
6755
  }
6755
6756
  if (a) {
6756
6757
  const _ = Array.isArray(R), D = _ ? [] : {}, L = _ ? O : y;
@@ -6802,9 +6803,9 @@ class bt extends kt {
6802
6803
  });
6803
6804
  }) : z(C, l, F));
6804
6805
  }
6805
- 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));
6806
+ 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));
6806
6807
  }
6807
- return o ? (h.res = g, h.usedParams = this.getUsedParamsDetails(i), h) : g;
6808
+ return o ? (f.res = g, f.usedParams = this.getUsedParamsDetails(i), f) : g;
6808
6809
  }
6809
6810
  extendTranslation(e, t, n, i, o) {
6810
6811
  var d, c;
@@ -6826,18 +6827,18 @@ class bt extends kt {
6826
6827
  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);
6827
6828
  let p;
6828
6829
  if (u) {
6829
- const h = e.match(this.interpolator.nestingRegexp);
6830
- p = h && h.length;
6830
+ const f = e.match(this.interpolator.nestingRegexp);
6831
+ p = f && f.length;
6831
6832
  }
6832
- let f = n.replace && !A(n.replace) ? n.replace : n;
6833
- if (this.options.interpolation.defaultVariables && (f = {
6833
+ let h = n.replace && !A(n.replace) ? n.replace : n;
6834
+ if (this.options.interpolation.defaultVariables && (h = {
6834
6835
  ...this.options.interpolation.defaultVariables,
6835
- ...f
6836
- }), e = this.interpolator.interpolate(e, f, n.lng || this.language || i.usedLng, n), u) {
6837
- const h = e.match(this.interpolator.nestingRegexp), g = h && h.length;
6836
+ ...h
6837
+ }), e = this.interpolator.interpolate(e, h, n.lng || this.language || i.usedLng, n), u) {
6838
+ const f = e.match(this.interpolator.nestingRegexp), g = f && f.length;
6838
6839
  p < g && (n.nest = !1);
6839
6840
  }
6840
- !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();
6841
+ !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();
6841
6842
  }
6842
6843
  const a = n.postProcess || this.options.postProcess, l = A(a) ? [a] : a;
6843
6844
  return e != null && (l != null && l.length) && n.applyPostProcessor !== !1 && (e = On.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
@@ -6859,7 +6860,7 @@ class bt extends kt {
6859
6860
  i = u;
6860
6861
  let p = c.namespaces;
6861
6862
  this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
6862
- 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);
6863
+ 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);
6863
6864
  p.forEach((O) => {
6864
6865
  var P, S;
6865
6866
  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) => {
@@ -6871,11 +6872,11 @@ class bt extends kt {
6871
6872
  this.i18nFormat.addLookupKeys(k, u, E, O, t);
6872
6873
  else {
6873
6874
  let Y;
6874
- f && (Y = this.pluralResolver.getSuffix(E, t.count, t));
6875
+ h && (Y = this.pluralResolver.getSuffix(E, t.count, t));
6875
6876
  const B = `${this.options.pluralSeparator}zero`, F = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6876
- 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) {
6877
+ 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) {
6877
6878
  const R = `${u}${this.options.contextSeparator || "_"}${t.context}`;
6878
- 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));
6879
+ 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));
6879
6880
  }
6880
6881
  }
6881
6882
  let H;
@@ -7062,15 +7063,15 @@ class Rr {
7062
7063
  formatSeparator: c,
7063
7064
  unescapeSuffix: u,
7064
7065
  unescapePrefix: p,
7065
- nestingPrefix: f,
7066
- nestingPrefixEscaped: h,
7066
+ nestingPrefix: h,
7067
+ nestingPrefixEscaped: f,
7067
7068
  nestingSuffix: g,
7068
7069
  nestingSuffixEscaped: y,
7069
7070
  nestingOptionsSeparator: O,
7070
7071
  maxReplaces: P,
7071
7072
  alwaysFormat: S
7072
7073
  } = e.interpolation;
7073
- 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();
7074
+ 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();
7074
7075
  }
7075
7076
  reset() {
7076
7077
  this.options && this.init(this.options);
@@ -7080,7 +7081,7 @@ class Rr {
7080
7081
  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}`);
7081
7082
  }
7082
7083
  interpolate(e, t, n, i) {
7083
- var h;
7084
+ var f;
7084
7085
  let o, a, l;
7085
7086
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
7086
7087
  if (!g.includes(this.formatSeparator)) {
@@ -7099,7 +7100,7 @@ class Rr {
7099
7100
  });
7100
7101
  };
7101
7102
  this.resetRegExp();
7102
- 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;
7103
+ 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;
7103
7104
  return [{
7104
7105
  regex: this.regexpUnescape,
7105
7106
  safeValue: (g) => Tt(g)
@@ -7133,17 +7134,17 @@ class Rr {
7133
7134
  const u = this.nestingOptionsSeparator;
7134
7135
  if (!d.includes(u)) return d;
7135
7136
  const p = d.split(new RegExp(`${$e(u)}[ ]*{`));
7136
- let f = `{${p[1]}`;
7137
- d = p[0], f = this.interpolate(f, a);
7138
- const h = f.match(/'/g), g = f.match(/"/g);
7139
- (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (f = f.replace(/'/g, '"'));
7137
+ let h = `{${p[1]}`;
7138
+ d = p[0], h = this.interpolate(h, a);
7139
+ const f = h.match(/'/g), g = h.match(/"/g);
7140
+ (((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (h = h.replace(/'/g, '"'));
7140
7141
  try {
7141
- a = JSON.parse(f), c && (a = {
7142
+ a = JSON.parse(h), c && (a = {
7142
7143
  ...c,
7143
7144
  ...a
7144
7145
  });
7145
7146
  } catch (y) {
7146
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, y), `${d}${u}${f}`;
7147
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, y), `${d}${u}${h}`;
7147
7148
  }
7148
7149
  return a.defaultValue && a.defaultValue.includes(this.prefix) && delete a.defaultValue, d;
7149
7150
  };
@@ -7256,18 +7257,18 @@ class Rs {
7256
7257
  formatOptions: u
7257
7258
  } = zs(d);
7258
7259
  if (this.formats[c]) {
7259
- let f = l;
7260
+ let h = l;
7260
7261
  try {
7261
- 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;
7262
- f = this.formats[c](l, g, {
7262
+ 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;
7263
+ h = this.formats[c](l, g, {
7263
7264
  ...u,
7264
7265
  ...i,
7265
- ...h
7266
+ ...f
7266
7267
  });
7267
- } catch (h) {
7268
- this.logger.warn(h);
7268
+ } catch (f) {
7269
+ this.logger.warn(f);
7269
7270
  }
7270
- return f;
7271
+ return h;
7271
7272
  } else
7272
7273
  this.logger.warn(`there was no format function for ${c}`);
7273
7274
  return l;
@@ -7287,8 +7288,8 @@ class As extends kt {
7287
7288
  return e.forEach((c) => {
7288
7289
  let u = !0;
7289
7290
  t.forEach((p) => {
7290
- const f = `${c}|${p}`;
7291
- !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)));
7291
+ const h = `${c}|${p}`;
7292
+ !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)));
7292
7293
  }), u || (l[c] = !0);
7293
7294
  }), (Object.keys(o).length || Object.keys(a).length) && this.queue.push({
7294
7295
  pending: a,
@@ -7384,26 +7385,26 @@ class As extends kt {
7384
7385
  }
7385
7386
  saveMissing(e, t, n, i, o, a = {}, l = () => {
7386
7387
  }) {
7387
- var d, c, u, p, f;
7388
+ var d, c, u, p, h;
7388
7389
  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))) {
7389
7390
  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!!!");
7390
7391
  return;
7391
7392
  }
7392
7393
  if (!(n == null || n === "")) {
7393
- if ((f = this.backend) != null && f.create) {
7394
- const h = {
7394
+ if ((h = this.backend) != null && h.create) {
7395
+ const f = {
7395
7396
  ...a,
7396
7397
  isUpdate: o
7397
7398
  }, g = this.backend.create.bind(this.backend);
7398
7399
  if (g.length < 6)
7399
7400
  try {
7400
7401
  let y;
7401
- 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);
7402
+ 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);
7402
7403
  } catch (y) {
7403
7404
  l(y);
7404
7405
  }
7405
7406
  else
7406
- g(e, t, n, i, l, h);
7407
+ g(e, t, n, i, l, f);
7407
7408
  }
7408
7409
  !e || !e[0] || this.store.addResource(e[0], t, n, i);
7409
7410
  }
@@ -7505,12 +7506,12 @@ class Xe extends kt {
7505
7506
  prepend: this.options.pluralSeparator
7506
7507
  }), 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 = {
7507
7508
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
7508
- }, p.backendConnector = new As(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (f, ...h) => {
7509
- this.emit(f, ...h);
7510
- }), 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) => {
7511
- this.emit(f, ...h);
7512
- }), this.modules.external.forEach((f) => {
7513
- f.init && f.init(this);
7509
+ }, p.backendConnector = new As(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (h, ...f) => {
7510
+ this.emit(h, ...f);
7511
+ }), 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) => {
7512
+ this.emit(h, ...f);
7513
+ }), this.modules.external.forEach((h) => {
7514
+ h.init && h.init(this);
7514
7515
  });
7515
7516
  }
7516
7517
  if (this.format = this.options.interpolation.format, t || (t = pt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
@@ -7584,8 +7585,8 @@ class Xe extends kt {
7584
7585
  var u, p;
7585
7586
  !e && !l && this.services.languageDetector && (l = []);
7586
7587
  const d = A(l) ? l : l && l[0], c = this.store.hasLanguageSomeTranslations(d) ? d : this.services.languageUtils.getBestMatchFromCodes(A(l) ? [l] : l);
7587
- 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) => {
7588
- o(f, c);
7588
+ 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) => {
7589
+ o(h, c);
7589
7590
  });
7590
7591
  };
7591
7592
  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;
@@ -7603,7 +7604,7 @@ class Xe extends kt {
7603
7604
  typeof d.keyPrefix == "function" && (d.keyPrefix = Fe(d.keyPrefix, c));
7604
7605
  const u = this.options.keySeparator || ".";
7605
7606
  let p;
7606
- 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);
7607
+ 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);
7607
7608
  };
7608
7609
  return A(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i;
7609
7610
  }
@@ -7753,7 +7754,7 @@ function js() {
7753
7754
  (function(t, n) {
7754
7755
  r.exports = n();
7755
7756
  })(Fs, (function() {
7756
- 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) {
7757
+ 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) {
7757
7758
  var L = ["th", "st", "nd", "rd"], w = D % 100;
7758
7759
  return "[" + D + (L[(w - 20) % 10] || L[w] || L[0]) + "]";
7759
7760
  } }, E = function(D, L, w) {
@@ -7769,7 +7770,7 @@ function js() {
7769
7770
  }, a: function(D) {
7770
7771
  return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
7771
7772
  }, p: function(D) {
7772
- 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$/, "");
7773
+ 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$/, "");
7773
7774
  }, u: function(D) {
7774
7775
  return D === void 0;
7775
7776
  } }, H = "en", U = {};
@@ -7845,7 +7846,7 @@ function js() {
7845
7846
  return b.w(C.toDate()[ve].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), C);
7846
7847
  }, q = this.$W, Q = this.$M, X = this.$D, me = "set" + (this.$u ? "UTC" : "");
7847
7848
  switch (z) {
7848
- case h:
7849
+ case f:
7849
7850
  return I ? V(1, 0) : V(31, 11);
7850
7851
  case p:
7851
7852
  return I ? V(1, Q) : V(0, Q + 1);
@@ -7867,8 +7868,8 @@ function js() {
7867
7868
  }, L.endOf = function(w) {
7868
7869
  return this.startOf(w, !1);
7869
7870
  }, L.$set = function(w, x) {
7870
- 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;
7871
- if (I === p || I === h) {
7871
+ 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;
7872
+ if (I === p || I === f) {
7872
7873
  var q = this.clone().set(g, 1);
7873
7874
  q.$d[V](W), q.init(), this.$d = q.set(g, Math.min(this.$D, q.daysInMonth())).$d;
7874
7875
  } else V && this.$d[V](W);
@@ -7885,7 +7886,7 @@ function js() {
7885
7886
  return b.w(X.date(X.date() + Math.round(Q * w)), I);
7886
7887
  };
7887
7888
  if (z === p) return this.set(p, this.$M + w);
7888
- if (z === h) return this.set(h, this.$y + w);
7889
+ if (z === f) return this.set(f, this.$y + w);
7889
7890
  if (z === c) return V(1);
7890
7891
  if (z === u) return V(7);
7891
7892
  var W = (C = {}, C[l] = n, C[d] = i, C[a] = t, C)[z] || 1, q = this.$d.getTime() + w * W;
@@ -7965,13 +7966,13 @@ function js() {
7965
7966
  return b.m(z, W);
7966
7967
  };
7967
7968
  switch (V) {
7968
- case h:
7969
+ case f:
7969
7970
  I = X() / 12;
7970
7971
  break;
7971
7972
  case p:
7972
7973
  I = X();
7973
7974
  break;
7974
- case f:
7975
+ case h:
7975
7976
  I = X() / 3;
7976
7977
  break;
7977
7978
  case u:
@@ -8013,7 +8014,7 @@ function js() {
8013
8014
  return this.$d.toUTCString();
8014
8015
  }, D;
8015
8016
  })(), _ = N.prototype;
8016
- return R.prototype = _, [["$ms", o], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", h], ["$D", g]].forEach((function(D) {
8017
+ return R.prototype = _, [["$ms", o], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", f], ["$D", g]].forEach((function(D) {
8017
8018
  _[D[1]] = function(L) {
8018
8019
  return this.$g(L, D[0], D[1]);
8019
8020
  };
@@ -8437,26 +8438,26 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8437
8438
  }
8438
8439
  );
8439
8440
  }, Ks = (r, e, t) => {
8440
- const n = r.filter((p) => e[p.id]), i = Object.keys(n[0]), o = n.map((p) => i.map((f) => {
8441
- const h = p[f];
8442
- return h == null ? "" : typeof h == "object" ? Object.values(h).find((y) => typeof y != "object") ?? "" : h;
8441
+ const n = r.filter((p) => e[p.id]), i = Object.keys(n[0]), o = n.map((p) => i.map((h) => {
8442
+ const f = p[h];
8443
+ return f == null ? "" : typeof f == "object" ? Object.values(f).find((y) => typeof y != "object") ?? "" : f;
8443
8444
  })), a = [i, ...o].map(
8444
- (p) => p.map((f) => `"${(f || "").toString().replace(/"/g, '""')}"`).join(",")
8445
+ (p) => p.map((h) => `"${(h || "").toString().replace(/"/g, '""')}"`).join(",")
8445
8446
  ).join(`\r
8446
8447
  `), l = "\uFEFF", d = new Blob([l + a], { type: "text/csv;charset=utf-8;" }), c = document.createElement("a"), u = URL.createObjectURL(d);
8447
8448
  c.setAttribute("href", u), c.setAttribute("download", t), document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(u);
8448
8449
  }, qs = (r, e, t) => {
8449
8450
  const i = r.filter((p) => e[p.id]).map((p) => {
8450
- const f = {};
8451
- return Object.entries(p).forEach(([h, g]) => {
8451
+ const h = {};
8452
+ return Object.entries(p).forEach(([f, g]) => {
8452
8453
  if (g == null)
8453
- f[h] = "";
8454
+ h[f] = "";
8454
8455
  else if (typeof g == "object") {
8455
8456
  const y = Object.values(g).find((O) => typeof O != "object");
8456
- f[h] = y ?? "";
8457
+ h[f] = y ?? "";
8457
8458
  } else
8458
- f[h] = g;
8459
- }), f;
8459
+ h[f] = g;
8460
+ }), h;
8460
8461
  }), o = ct.utils.json_to_sheet(i), a = ct.utils.book_new();
8461
8462
  ct.utils.book_append_sheet(a, o, "Data");
8462
8463
  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");
@@ -8610,29 +8611,29 @@ const Ul = ({
8610
8611
  ...o
8611
8612
  }) => {
8612
8613
  const a = async (d) => {
8613
- var h, g;
8614
- const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, f = [...r, p];
8615
- e(f);
8614
+ var f, g;
8615
+ const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, h = [...r, p];
8616
+ e(h);
8616
8617
  try {
8617
8618
  const y = new FormData();
8618
8619
  y.append("files", c);
8619
8620
  const O = await i(y);
8620
- if ((h = O == null ? void 0 : O.data) != null && h.success) {
8621
+ if ((f = O == null ? void 0 : O.data) != null && f.success) {
8621
8622
  const P = (g = O == null ? void 0 : O.data) == null ? void 0 : g.value[0];
8622
8623
  e(
8623
- f.map(
8624
+ h.map(
8624
8625
  (S) => S.uid === c.uid ? { ...S, status: "done", ...P } : S
8625
8626
  )
8626
8627
  );
8627
8628
  } else
8628
- e(f.filter((P) => P.uid !== c.uid)), ht.error({
8629
+ e(h.filter((P) => P.uid !== c.uid)), ht.error({
8629
8630
  className: "bottom-right-notification",
8630
8631
  placement: "bottomRight",
8631
8632
  message: "Error",
8632
8633
  description: "Upload failed"
8633
8634
  });
8634
8635
  } catch {
8635
- e(f.filter((O) => O.uid !== c.uid)), ht.error({
8636
+ e(h.filter((O) => O.uid !== c.uid)), ht.error({
8636
8637
  className: "bottom-right-notification",
8637
8638
  placement: "bottomRight",
8638
8639
  message: "Error",
@@ -8795,16 +8796,16 @@ const Ul = ({
8795
8796
  needsBreadcrumb: a,
8796
8797
  customTabFilter: l
8797
8798
  }) => {
8798
- const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p = ze(), f = we(() => {
8799
+ const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p = ze(), h = we(() => {
8799
8800
  const k = u.pathname.split("/");
8800
8801
  return k[k.length - 1] || n;
8801
- }, [u.pathname, n]), [h, g] = M(null), [y, O] = M(null), P = (k) => {
8802
+ }, [u.pathname, n]), [f, g] = M(null), [y, O] = M(null), P = (k) => {
8802
8803
  p(`${r}/${c}/${k}`);
8803
8804
  }, S = () => l ? l(e) : e.filter((k) => {
8804
8805
  var H;
8805
8806
  return (H = k.permission) == null ? void 0 : H.some((U) => d(U));
8806
8807
  }), E = () => {
8807
- const k = t[f] || t[n];
8808
+ const k = t[h] || t[n];
8808
8809
  return k ? typeof k == "object" && k !== null && "type" in k ? {
8809
8810
  ...k,
8810
8811
  props: {
@@ -8820,7 +8821,7 @@ const Ul = ({
8820
8821
  /* @__PURE__ */ s(
8821
8822
  el,
8822
8823
  {
8823
- activeKey: f,
8824
+ activeKey: h,
8824
8825
  onChange: P,
8825
8826
  tabBarExtraContent: {
8826
8827
  right: /* @__PURE__ */ v(rl, { children: [
@@ -8830,7 +8831,7 @@ const Ul = ({
8830
8831
  className: "partner-tab-select",
8831
8832
  placeholder: "Modules",
8832
8833
  onChange: (k) => P(k),
8833
- value: f,
8834
+ value: h,
8834
8835
  options: e.filter((k) => (k == null ? void 0 : k.label) !== "Details").map((k) => ({
8835
8836
  value: k.key,
8836
8837
  label: k.label
@@ -8839,7 +8840,7 @@ const Ul = ({
8839
8840
  ) }),
8840
8841
  /* @__PURE__ */ v(tl, { children: [
8841
8842
  y,
8842
- h
8843
+ f
8843
8844
  ] })
8844
8845
  ] })
8845
8846
  },
@@ -8857,7 +8858,7 @@ const Ul = ({
8857
8858
  getItemById: o,
8858
8859
  onSetFormValues: a
8859
8860
  }) => {
8860
- const l = ze(), [d] = Ae.useForm(), [c, u] = M(r == "new"), [p, f] = M(null), h = async (y) => {
8861
+ const l = ze(), [d] = Ae.useForm(), [c, u] = M(r == "new"), [p, h] = M(null), f = async (y) => {
8861
8862
  const O = window.location.pathname, P = O.substring(0, O.lastIndexOf("/"));
8862
8863
  try {
8863
8864
  if (p) {
@@ -8876,7 +8877,7 @@ const Ul = ({
8876
8877
  }, g = async (y) => {
8877
8878
  try {
8878
8879
  const O = await o(y), P = a ? a(O.data) : O.data;
8879
- f(P), d.setFieldsValue(P);
8880
+ h(P), d.setFieldsValue(P);
8880
8881
  } catch (O) {
8881
8882
  console.log(O, "Error in Form Controller.");
8882
8883
  }
@@ -8888,7 +8889,7 @@ const Ul = ({
8888
8889
  item: p,
8889
8890
  getItemById: o,
8890
8891
  isAddingForm: c,
8891
- handleSave: h
8892
+ handleSave: f
8892
8893
  };
8893
8894
  }, Yl = ({ id: r, formItem: e, updateItem: t, addItem: n, getItemById: i }) => {
8894
8895
  const [o] = Ae.useForm(), [a, l] = M(null), d = async (u) => {
@@ -8897,15 +8898,15 @@ const Ul = ({
8897
8898
  return r ? p = await t({ ...u }) : p = await n(u), p;
8898
8899
  } catch (p) {
8899
8900
  if (p.status === 400) {
8900
- const f = p.response.data, h = je(f.errors);
8901
- o.setFields(h);
8901
+ const h = p.response.data, f = je(h.errors);
8902
+ o.setFields(f);
8902
8903
  }
8903
8904
  throw p;
8904
8905
  }
8905
8906
  }, c = async (u) => {
8906
8907
  try {
8907
- const f = (await i(u)).data;
8908
- l(f), o.setFieldsValue(f);
8908
+ const h = (await i(u)).data;
8909
+ l(h), o.setFieldsValue(h);
8909
8910
  } catch (p) {
8910
8911
  console.log(p, "Error in Form Controller.");
8911
8912
  }