affiliate-front-shared 1.3.28 → 1.3.29

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
@@ -149,27 +149,28 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
149
149
  margin-left: 1.5rem !important;
150
150
  }
151
151
  }
152
- `, Yr = (r, e = []) => {
153
- const [t, n] = M(null), [i, o] = M(null), [a, l] = M(!0), [d, c] = M(null), u = async () => {
154
- var p;
155
- try {
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);
159
- } catch {
160
- c("Failed to fetch data");
161
- } finally {
162
- l(!1);
163
- }
152
+ `, Yr = (r, e = [], t = !0) => {
153
+ const [n, i] = M(null), [o, a] = M(null), [l, d] = M(!0), [c, u] = M(null), p = async () => {
154
+ var h;
155
+ if (t)
156
+ try {
157
+ d(!0), i(null);
158
+ const f = await r();
159
+ i(f), (h = f == null ? void 0 : f.data) != null && h.items && a(f.data.items);
160
+ } catch {
161
+ u("Failed to fetch data");
162
+ } finally {
163
+ d(!1);
164
+ }
164
165
  };
165
166
  return K(() => {
166
- u();
167
+ p();
167
168
  }, [...e]), {
168
- response: t,
169
- loading: a,
170
- error: d,
171
- fetchData: u,
172
- listItems: i
169
+ response: n,
170
+ loading: l,
171
+ error: c,
172
+ fetchData: p,
173
+ listItems: o
173
174
  };
174
175
  }, ze = Gr((r, e) => ({
175
176
  user: localStorage.getItem("userData") ? JSON.parse(localStorage.getItem("userData")) : null,
@@ -282,8 +283,8 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
282
283
  const p = (y, O) => /* @__PURE__ */ v(ii, { children: [
283
284
  /* @__PURE__ */ s(oi, { children: y }),
284
285
  O && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(ni, {}) })
285
- ] }), { response: f } = Yr(t ?? (() => Promise.resolve({ data: [] })), []);
286
- async function h(y) {
286
+ ] }), { response: h } = Yr(t ?? (() => Promise.resolve({ data: [] })), []);
287
+ async function f(y) {
287
288
  if (!n) return;
288
289
  const P = (await n(y)).data.value;
289
290
  localStorage.setItem("useToken", P.token), localStorage.setItem("userData", JSON.stringify(P));
@@ -321,7 +322,7 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
321
322
  ) }, "30-3")
322
323
  ] }, "30"),
323
324
  /* @__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"),
325
+ /* @__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
326
  /* @__PURE__ */ s(te.Divider, {}),
326
327
  /* @__PURE__ */ s(te.Item, { onClick: c, children: "LogOut" }, "100")
327
328
  ]
@@ -663,8 +664,8 @@ const ir = (r) => {
663
664
  const t = /* @__PURE__ */ new Set(), n = (c, u) => {
664
665
  const p = typeof c == "function" ? c(e) : c;
665
666
  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));
667
+ const h = e;
668
+ e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((f) => f(e, h));
668
669
  }
669
670
  }, i = () => e, l = { setState: n, getState: i, getInitialState: () => d, subscribe: (c) => (t.add(c), () => t.delete(c)) }, d = e = r(n, i, l);
670
671
  return l;
@@ -1214,27 +1215,27 @@ const _t = m.div`
1214
1215
  }
1215
1216
  );
1216
1217
  }, 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(
1218
+ 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
1219
  (o == null ? void 0 : o.direction) === se.ASC ? se.ASC : se.DESC
1219
1220
  ), u = t.filter(
1220
- (h) => h.title.toLowerCase().includes(a.toLowerCase()) && h.sortable !== !1
1221
+ (f) => f.title.toLowerCase().includes(a.toLowerCase()) && f.sortable !== !1
1221
1222
  );
1222
- function p(h, g) {
1223
+ function p(f, g) {
1223
1224
  i([
1224
1225
  {
1225
- title: h.title,
1226
- dataIndex: h.dataIndex.charAt(0).toUpperCase() + h.dataIndex.slice(1),
1226
+ title: f.title,
1227
+ dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
1227
1228
  direction: g
1228
1229
  }
1229
1230
  ]);
1230
1231
  }
1231
- function f() {
1232
+ function h() {
1232
1233
  i([]);
1233
1234
  }
1234
1235
  return /* @__PURE__ */ s(
1235
1236
  Wi,
1236
1237
  {
1237
- overlay: (h) => /* @__PURE__ */ v(_t, { children: [
1238
+ overlay: (f) => /* @__PURE__ */ v(_t, { children: [
1238
1239
  /* @__PURE__ */ s(
1239
1240
  "input",
1240
1241
  {
@@ -1248,7 +1249,7 @@ const _t = m.div`
1248
1249
  "button",
1249
1250
  {
1250
1251
  onClick: () => {
1251
- g.title == (o == null ? void 0 : o.title) ? f() : p(g, d);
1252
+ g.title == (o == null ? void 0 : o.title) ? h() : p(g, d);
1252
1253
  },
1253
1254
  children: [
1254
1255
  g.title,
@@ -1291,12 +1292,12 @@ const _t = m.div`
1291
1292
  }
1292
1293
  );
1293
1294
  }, 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([
1295
+ const [i, o] = M(!1), [a, l] = M(""), d = T((h) => h.columns), c = T((h) => h.filterItems), u = T((h) => h.setFilterItems);
1296
+ function p(h) {
1297
+ t ? t(h) : u([
1297
1298
  ...c,
1298
1299
  {
1299
- ...f,
1300
+ ...h,
1300
1301
  selectType: Ae.VALUE
1301
1302
  }
1302
1303
  ]), o(!1);
@@ -1314,10 +1315,10 @@ const _t = m.div`
1314
1315
  type: "text",
1315
1316
  placeholder: J("Search") + "...",
1316
1317
  value: a,
1317
- onChange: (f) => l(f.target.value)
1318
+ onChange: (h) => l(h.target.value)
1318
1319
  }
1319
1320
  ),
1320
- /* @__PURE__ */ s("div", { children: d.filter((f) => f.filterable !== !1).filter((f) => !c.some((h) => h.title == f.title)).filter((f) => f.filterable !== !1).filter((f) => f.title.toLowerCase().includes(a)).map((f, h) => /* @__PURE__ */ s("button", { onClick: () => p(f), children: f.title }, h)) }),
1321
+ /* @__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
1322
  n && /* @__PURE__ */ s(
1322
1323
  n,
1323
1324
  {
@@ -1456,7 +1457,7 @@ const Zi = ({
1456
1457
  GridPageTopLeftComponent: l,
1457
1458
  noNeedSidebarResponsiveButton: d
1458
1459
  }) => {
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
+ const c = Pe(), 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
1461
  var x, C;
1461
1462
  try {
1462
1463
  const I = sessionStorage.getItem(`grid-filters:${window.location.pathname}`);
@@ -1472,10 +1473,10 @@ const Zi = ({
1472
1473
  const C = B.find((V) => V.id === x);
1473
1474
  if (!C) return;
1474
1475
  const { filterItems: I, sortItems: z } = JSON.parse(C.value);
1475
- h(I, !0), g(z), b({ id: C.id, name: C.name });
1476
+ f(I, !0), g(z), b({ id: C.id, name: C.name });
1476
1477
  }
1477
1478
  const D = en((x) => {
1478
- f({
1479
+ h({
1479
1480
  ...u,
1480
1481
  QuickSearch: x.target.value
1481
1482
  });
@@ -2299,14 +2300,14 @@ const oo = ({
2299
2300
  !0
2300
2301
  );
2301
2302
  };
2302
- function f(b) {
2303
+ function h(b) {
2303
2304
  n(
2304
2305
  t.map(
2305
2306
  (N) => N.title == r.title ? { ...b, selectType: Ae.VALUE } : N
2306
2307
  )
2307
2308
  );
2308
2309
  }
2309
- const h = en((b) => {
2310
+ const f = en((b) => {
2310
2311
  const N = b.target.value;
2311
2312
  n(
2312
2313
  t.map((_) => _.title == r.title ? { ..._, filterValue: N } : _),
@@ -2340,7 +2341,7 @@ const oo = ({
2340
2341
  type: "text",
2341
2342
  placeholder: "Search...",
2342
2343
  className: "filter-item-search",
2343
- onChange: h
2344
+ onChange: f
2344
2345
  }
2345
2346
  ),
2346
2347
  [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 +2418,7 @@ const oo = ({
2417
2418
  }
2418
2419
  );
2419
2420
  return /* @__PURE__ */ v(It, { children: [
2420
- /* @__PURE__ */ s(Wt, { placement: "bottomLeft", onSelect: f, children: /* @__PURE__ */ v("span", { children: [
2421
+ /* @__PURE__ */ s(Wt, { placement: "bottomLeft", onSelect: h, children: /* @__PURE__ */ v("span", { children: [
2421
2422
  /* @__PURE__ */ s(Qr, {}),
2422
2423
  r.title
2423
2424
  ] }) }),
@@ -2449,7 +2450,7 @@ const oo = ({
2449
2450
  console.log(g, "Error happened deleting configuration");
2450
2451
  }
2451
2452
  }
2452
- function f() {
2453
+ function h() {
2453
2454
  d({
2454
2455
  component: so,
2455
2456
  title: i ? "UpdateConfiguration" : "NameYourConfiguration",
@@ -2470,7 +2471,7 @@ const oo = ({
2470
2471
  }
2471
2472
  }), l();
2472
2473
  }
2473
- function h() {
2474
+ function f() {
2474
2475
  const g = JSON.stringify({ filterItems: r, sortItems: e });
2475
2476
  d({
2476
2477
  component: oo,
@@ -2503,8 +2504,8 @@ const oo = ({
2503
2504
  "AddFilter"
2504
2505
  ] }) }) }),
2505
2506
  /* @__PURE__ */ v(Vi, { children: [
2506
- /* @__PURE__ */ s("button", { onClick: h, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2507
- i && /* @__PURE__ */ s("button", { onClick: f, children: "DeleteConfiguration" }),
2507
+ /* @__PURE__ */ s("button", { onClick: f, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
2508
+ i && /* @__PURE__ */ s("button", { onClick: h, children: "DeleteConfiguration" }),
2508
2509
  /* @__PURE__ */ v("button", { onClick: n, children: [
2509
2510
  /* @__PURE__ */ s(nn, {}),
2510
2511
  "ResetConditions"
@@ -3019,33 +3020,33 @@ function Co({
3019
3020
  }
3020
3021
  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
3022
  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) {
3023
+ 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);
3024
+ function d(f, g) {
3024
3025
  a([
3025
3026
  {
3026
- title: h.title,
3027
- dataIndex: h.dataIndex.charAt(0).toUpperCase() + h.dataIndex.slice(1),
3027
+ title: f.title,
3028
+ dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
3028
3029
  direction: g
3029
3030
  }
3030
3031
  ]);
3031
3032
  }
3032
- function c(h) {
3033
- const g = n.filter((y) => h.title != y.title);
3033
+ function c(f) {
3034
+ const g = n.filter((y) => f.title != y.title);
3034
3035
  o([
3035
3036
  ...g,
3036
3037
  {
3037
- ...h,
3038
+ ...f,
3038
3039
  selectType: Ae.VALUE
3039
3040
  }
3040
3041
  ]);
3041
3042
  }
3042
- function u(h, g) {
3043
+ function u(f, g) {
3043
3044
  l({
3044
3045
  ...i,
3045
- [h.dataIndex]: !0
3046
+ [f.dataIndex]: !0
3046
3047
  });
3047
3048
  }
3048
- const p = () => t(!1), f = [
3049
+ const p = () => t(!1), h = [
3049
3050
  { icon: /* @__PURE__ */ s(gt, {}), text: j("Filter"), action: () => c(r) },
3050
3051
  {
3051
3052
  icon: /* @__PURE__ */ s(Ut, {}),
@@ -3067,14 +3068,14 @@ function ko({ col: r }) {
3067
3068
  Me,
3068
3069
  {
3069
3070
  placement: "bottomLeft",
3070
- popupRender: () => /* @__PURE__ */ s(fo, { children: f.map(({ icon: h, text: g, action: y }) => /* @__PURE__ */ v(
3071
+ popupRender: () => /* @__PURE__ */ s(fo, { children: h.map(({ icon: f, text: g, action: y }) => /* @__PURE__ */ v(
3071
3072
  "button",
3072
3073
  {
3073
3074
  onClick: () => {
3074
3075
  y(), p();
3075
3076
  },
3076
3077
  children: [
3077
- h,
3078
+ f,
3078
3079
  g
3079
3080
  ]
3080
3081
  },
@@ -3083,7 +3084,7 @@ function ko({ col: r }) {
3083
3084
  trigger: ["click"],
3084
3085
  open: e,
3085
3086
  onOpenChange: t,
3086
- getPopupContainer: (h) => (h == null ? void 0 : h.parentElement) ?? document.body,
3087
+ getPopupContainer: (f) => (f == null ? void 0 : f.parentElement) ?? document.body,
3087
3088
  children: /* @__PURE__ */ s("th", { className: e ? "active" : "", children: /* @__PURE__ */ s("span", { children: r.title }) })
3088
3089
  }
3089
3090
  );
@@ -3184,7 +3185,7 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3184
3185
  noPagination: d,
3185
3186
  noDataProps: c
3186
3187
  }) => {
3187
- const u = T((E) => E.filters), p = T((E) => E.groupByArr), f = T((E) => E.setFilters), h = we(() => p.length > 0 ? e.filter(
3188
+ const u = T((E) => E.filters), p = T((E) => E.groupByArr), h = T((E) => E.setFilters), f = we(() => p.length > 0 ? e.filter(
3188
3189
  (E) => !p.some((k) => k.dataIndex == E.dataIndex)
3189
3190
  ) : e, [e, p]), { isTableGroupped: g, isTableSubGroupped: y } = we(
3190
3191
  () => ({
@@ -3206,14 +3207,14 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3206
3207
  return n;
3207
3208
  }, [n, p]);
3208
3209
  function P(E) {
3209
- f({
3210
+ h({
3210
3211
  ...u,
3211
3212
  PageSize: E,
3212
3213
  Page: 1
3213
3214
  });
3214
3215
  }
3215
3216
  function S(E) {
3216
- f({
3217
+ h({
3217
3218
  ...u,
3218
3219
  Page: E
3219
3220
  });
@@ -3221,20 +3222,20 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3221
3222
  return /* @__PURE__ */ v(uo, { children: [
3222
3223
  /* @__PURE__ */ v("table", { children: [
3223
3224
  r != Le.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ v("tr", { children: [
3224
- h.map((E) => /* @__PURE__ */ s(ko, { col: E }, E.dataIndex)),
3225
+ f.map((E) => /* @__PURE__ */ s(ko, { col: E }, E.dataIndex)),
3225
3226
  /* @__PURE__ */ s("th", {})
3226
3227
  ] }) }),
3227
3228
  /* @__PURE__ */ s("tbody", { children: i ? /* @__PURE__ */ s(
3228
3229
  yo,
3229
3230
  {
3230
3231
  rowLength: o.pageSize,
3231
- columnLength: h.length
3232
+ columnLength: f.length
3232
3233
  }
3233
- ) : (O == null ? void 0 : O.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: h.length, children: /* @__PURE__ */ s($o, { ...c }) }) }) : /* @__PURE__ */ s(oe, { children: g ? /* @__PURE__ */ s(
3234
+ ) : (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
3235
  wo,
3235
3236
  {
3236
3237
  dataSource: O,
3237
- columns: h,
3238
+ columns: f,
3238
3239
  isSubGroupped: y,
3239
3240
  getGroupLength: mo,
3240
3241
  rowKey: t,
@@ -3244,7 +3245,7 @@ const $o = ({ title: r, description: e, button: t, helpSpan: n }) => /* @__PURE_
3244
3245
  Zt,
3245
3246
  {
3246
3247
  rows: O,
3247
- columns: h,
3248
+ columns: f,
3248
3249
  rowKey: t,
3249
3250
  onRowClick: l
3250
3251
  }
@@ -4023,12 +4024,12 @@ const an = m.span`
4023
4024
  }) => {
4024
4025
  const [a, l] = M(), [d, c] = M([]);
4025
4026
  async function u() {
4026
- var p, f, h;
4027
+ var p, h, f;
4027
4028
  try {
4028
4029
  const g = await e({ confirmationToken: r, code: a, id: i });
4029
4030
  (p = g == null ? void 0 : g.data) != null && p.success && (n(!1), o((y) => !y));
4030
4031
  } catch (g) {
4031
- const y = Fe((h = (f = g == null ? void 0 : g.response) == null ? void 0 : f.data) == null ? void 0 : h.errors);
4032
+ const y = Fe((f = (h = g == null ? void 0 : g.response) == null ? void 0 : h.data) == null ? void 0 : f.errors);
4032
4033
  c(y), console.log(g);
4033
4034
  }
4034
4035
  }
@@ -4118,7 +4119,7 @@ const Zo = {
4118
4119
  isBlocked: o,
4119
4120
  onBlockStateClose: a
4120
4121
  }) => {
4121
- const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ue(), { setUser: c } = ze(), [u, p] = M(""), [f, h] = M([]), [g, y] = M(!1);
4122
+ const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ue(), { setUser: c } = ze(), [u, p] = M(""), [h, f] = M([]), [g, y] = M(!1);
4122
4123
  function O(k) {
4123
4124
  p(k);
4124
4125
  }
@@ -4126,13 +4127,13 @@ const Zo = {
4126
4127
  const k = l;
4127
4128
  if (k)
4128
4129
  try {
4129
- h([]);
4130
+ f([]);
4130
4131
  const H = await k(t, u, i);
4131
4132
  c(H.data.value), E();
4132
4133
  } catch (H) {
4133
4134
  if (console.log(H), H.status === 400) {
4134
4135
  const U = H.response.data, Y = Fe(U.errors);
4135
- h(Y);
4136
+ f(Y);
4136
4137
  }
4137
4138
  }
4138
4139
  }
@@ -4140,18 +4141,18 @@ const Zo = {
4140
4141
  const H = d;
4141
4142
  if (H)
4142
4143
  try {
4143
- h([]);
4144
+ f([]);
4144
4145
  const U = await H(k);
4145
4146
  c(U.data.value);
4146
4147
  } catch (U) {
4147
4148
  if (console.log(U), U.status === 400) {
4148
4149
  const Y = U.response.data, B = Fe(Y.errors);
4149
- h(B);
4150
+ f(B);
4150
4151
  }
4151
4152
  }
4152
4153
  }
4153
4154
  function E() {
4154
- p(""), e(!1), h([]);
4155
+ p(""), e(!1), f([]);
4155
4156
  }
4156
4157
  return o ? /* @__PURE__ */ s(pr, { isOpen: o, onClose: a, children: /* @__PURE__ */ v(Ro, { children: [
4157
4158
  /* @__PURE__ */ v(No, { children: [
@@ -4181,7 +4182,7 @@ const Zo = {
4181
4182
  /* @__PURE__ */ v(
4182
4183
  zo,
4183
4184
  {
4184
- className: f.length > 0 ? "verification-error" : "",
4185
+ className: h.length > 0 ? "verification-error" : "",
4185
4186
  children: [
4186
4187
  /* @__PURE__ */ s(Be.OTP, { value: u, onChange: O }),
4187
4188
  /* @__PURE__ */ v(Ho, { children: [
@@ -4189,7 +4190,7 @@ const Zo = {
4189
4190
  " ",
4190
4191
  /* @__PURE__ */ s(an, { onClick: () => y(!0), children: G("EnterBackupCode") })
4191
4192
  ] }),
4192
- f.map((k) => /* @__PURE__ */ v("span", { children: [
4193
+ h.map((k) => /* @__PURE__ */ v("span", { children: [
4193
4194
  /* @__PURE__ */ s(it, {}),
4194
4195
  k.errors[0]
4195
4196
  ] }, k.name))
@@ -4211,13 +4212,13 @@ const Zo = {
4211
4212
  ] }) });
4212
4213
  }, Qo = () => {
4213
4214
  const { enableContactInfo: r, disableContactInfo: e } = Ue(), { setUser: t } = ze(), [n, i] = M(!1), [o, a] = M(null), [l, d] = M(!1), c = async () => {
4214
- var f, h, g, y, O, P, S;
4215
+ var h, f, g, y, O, P, S;
4215
4216
  if (r)
4216
4217
  try {
4217
4218
  d(!1);
4218
4219
  const E = await r();
4219
4220
  a({
4220
- token: (h = (f = E.data) == null ? void 0 : f.value) == null ? void 0 : h.token,
4221
+ token: (f = (h = E.data) == null ? void 0 : h.value) == null ? void 0 : f.token,
4221
4222
  id: (y = (g = E.data) == null ? void 0 : g.value) == null ? void 0 : y.id,
4222
4223
  mfaType: (P = (O = E.data) == null ? void 0 : O.value) == null ? void 0 : P.mfaType
4223
4224
  }), i(!0);
@@ -4228,8 +4229,8 @@ const Zo = {
4228
4229
  };
4229
4230
  async function u() {
4230
4231
  if (!e) return;
4231
- const f = await e();
4232
- t(f.data.value);
4232
+ const h = await e();
4233
+ t(h.data.value);
4233
4234
  }
4234
4235
  const p = () => {
4235
4236
  d(!1), i(!1);
@@ -4254,8 +4255,8 @@ const Zo = {
4254
4255
  };
4255
4256
  }, Xo = ({ close: r }) => {
4256
4257
  var P;
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
- function h(S) {
4258
+ 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: h } = Qo();
4259
+ function f(S) {
4259
4260
  const E = t.find((k) => k.dataIndex == S.value);
4260
4261
  l([E]);
4261
4262
  }
@@ -4319,7 +4320,7 @@ const Zo = {
4319
4320
  j("NoGrouping")
4320
4321
  ] }),
4321
4322
  value: ((P = n[0]) == null ? void 0 : P.dataIndex) || null,
4322
- onChange: h
4323
+ onChange: f
4323
4324
  }
4324
4325
  )
4325
4326
  ] }) }),
@@ -4353,7 +4354,7 @@ const Zo = {
4353
4354
  /* @__PURE__ */ s(nn, {})
4354
4355
  ] })
4355
4356
  ] }),
4356
- /* @__PURE__ */ s(Jo, { ...f })
4357
+ /* @__PURE__ */ s(Jo, { ...h })
4357
4358
  ] });
4358
4359
  }, ea = ({
4359
4360
  columns: r,
@@ -4368,8 +4369,8 @@ const Zo = {
4368
4369
  pagination: c,
4369
4370
  CustomFilters: u,
4370
4371
  initialFilterValues: p,
4371
- tableAdditionalFields: f,
4372
- createIsModal: h,
4372
+ tableAdditionalFields: h,
4373
+ createIsModal: f,
4373
4374
  editButton: g,
4374
4375
  noPagination: y,
4375
4376
  noDataProps: O,
@@ -4408,8 +4409,8 @@ const Zo = {
4408
4409
  exportButton: P,
4409
4410
  setisSettingPopupVisible: V,
4410
4411
  CustomFilters: u,
4411
- tableAdditionalFields: f,
4412
- createIsModal: h,
4412
+ tableAdditionalFields: h,
4413
+ createIsModal: f,
4413
4414
  GridPageTopLeftComponent: i
4414
4415
  }
4415
4416
  ),
@@ -4441,7 +4442,7 @@ const Zo = {
4441
4442
  {
4442
4443
  noPagination: y,
4443
4444
  editButton: g,
4444
- createIsModal: h,
4445
+ createIsModal: f,
4445
4446
  rowKey: d || "id",
4446
4447
  columns: [
4447
4448
  {
@@ -4479,9 +4480,9 @@ const Zo = {
4479
4480
  hideFooter: c,
4480
4481
  showCloseButton: u,
4481
4482
  onOk: p,
4482
- onCancel: f
4483
- } = e, h = () => {
4484
- f == null || f();
4483
+ onCancel: h
4484
+ } = e, f = () => {
4485
+ h == null || h();
4485
4486
  }, g = () => {
4486
4487
  p == null || p();
4487
4488
  };
@@ -4497,7 +4498,7 @@ const Zo = {
4497
4498
  children: [
4498
4499
  o && /* @__PURE__ */ s(o, { ...a }),
4499
4500
  !c && /* @__PURE__ */ v(et, { children: [
4500
- /* @__PURE__ */ s(re, { onClick: h, children: d == null ? void 0 : d.cancelText }),
4501
+ /* @__PURE__ */ s(re, { onClick: f, children: d == null ? void 0 : d.cancelText }),
4501
4502
  /* @__PURE__ */ s(
4502
4503
  to,
4503
4504
  {
@@ -4545,10 +4546,10 @@ const Zo = {
4545
4546
  const l = n;
4546
4547
  if (l)
4547
4548
  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(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
- } catch (f) {
4551
- console.error("Failed to toggle 2FA:", f);
4549
+ const h = await l();
4550
+ (c = (d = h.data) == null ? void 0 : d.value) != null && c.isTwoFactorRequired ? (t(h.data.value.token), o(h.data.value.id), e(je.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());
4551
+ } catch (h) {
4552
+ console.error("Failed to toggle 2FA:", h);
4552
4553
  }
4553
4554
  }
4554
4555
  return /* @__PURE__ */ v("div", { children: [
@@ -4578,16 +4579,16 @@ const Zo = {
4578
4579
  a(p);
4579
4580
  }
4580
4581
  async function u() {
4581
- var f;
4582
+ var h;
4582
4583
  const p = i;
4583
4584
  if (p)
4584
4585
  try {
4585
- const h = await p(o);
4586
- (f = h.data) != null && f.success && (e(je.BACKUP_CODES), t(h.data.value.recoveryCodes));
4587
- } catch (h) {
4588
- console.log(h);
4586
+ const f = await p(o);
4587
+ (h = f.data) != null && h.success && (e(je.BACKUP_CODES), t(f.data.value.recoveryCodes));
4588
+ } catch (f) {
4589
+ console.log(f);
4589
4590
  } finally {
4590
- n((h) => h + 1);
4591
+ n((f) => f + 1);
4591
4592
  }
4592
4593
  }
4593
4594
  return /* @__PURE__ */ v("div", { children: [
@@ -5063,8 +5064,8 @@ class Re {
5063
5064
  a: i
5064
5065
  }) {
5065
5066
  if (this._h = e % 360, this._s = t, this._l = n, this.a = typeof i == "number" ? i : 1, t <= 0) {
5066
- const f = ee(n * 255);
5067
- this.r = f, this.g = f, this.b = f;
5067
+ const h = ee(n * 255);
5068
+ this.r = h, this.g = h, this.b = h;
5068
5069
  }
5069
5070
  let o = 0, a = 0, l = 0;
5070
5071
  const d = e / 60, c = (1 - Math.abs(2 * n - 1)) * t, u = c * (1 - Math.abs(d % 2 - 1));
@@ -5267,11 +5268,11 @@ function vn(r) {
5267
5268
  var c = Qt(e), u = c.firstChild;
5268
5269
  if (n) {
5269
5270
  if (l) {
5270
- var p = (e.styles || Xt(c)).filter(function(f) {
5271
- if (!["prepend", "prependQueue"].includes(f.getAttribute(wr)))
5271
+ var p = (e.styles || Xt(c)).filter(function(h) {
5272
+ if (!["prepend", "prependQueue"].includes(h.getAttribute(wr)))
5272
5273
  return !1;
5273
- var h = Number(f.getAttribute(Cr) || 0);
5274
- return o >= h;
5274
+ var f = Number(h.getAttribute(Cr) || 0);
5275
+ return o >= f;
5275
5276
  });
5276
5277
  if (p.length)
5277
5278
  return c.insertBefore(d, p[p.length - 1].nextSibling), d;
@@ -5516,7 +5517,7 @@ function Ga() {
5516
5517
  var Wa = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
5517
5518
  Cn(Mt.primary);
5518
5519
  var ot = /* @__PURE__ */ $.forwardRef(function(r, e) {
5519
- 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;
5520
+ 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;
5520
5521
  y === void 0 && l && (y = -1);
5521
5522
  var O = o ? {
5522
5523
  msTransform: "rotate(".concat(o, "deg)"),
@@ -5711,7 +5712,7 @@ const Il = ({
5711
5712
  disableMFAService: o,
5712
5713
  confirmTwoFactorService: a
5713
5714
  }) => {
5714
- const [l, d] = M(t), [c, u] = M(""), [p, f] = M(), [h, g] = M("");
5715
+ const [l, d] = M(t), [c, u] = M(""), [p, h] = M(), [f, g] = M("");
5715
5716
  function y() {
5716
5717
  e(!1);
5717
5718
  }
@@ -5742,7 +5743,7 @@ const Il = ({
5742
5743
  setCurrentStep: d,
5743
5744
  setConfirmationToken: u,
5744
5745
  setRefetch: n,
5745
- setIdOf2FA: f,
5746
+ setIdOf2FA: h,
5746
5747
  enableTwoFactorService: i,
5747
5748
  disableMFAService: o
5748
5749
  };
@@ -5770,13 +5771,13 @@ const Il = ({
5770
5771
  case 5:
5771
5772
  return { onClose: y, setRefetch: n, disableMFAService: o };
5772
5773
  case 6:
5773
- return { onClose: y, backupCodes: h };
5774
+ return { onClose: y, backupCodes: f };
5774
5775
  case 7:
5775
5776
  return { onClose: y, confirmationToken: c, setRefetch: n, idOf2FA: p };
5776
5777
  default:
5777
5778
  return { onClose: y };
5778
5779
  }
5779
- }, [l, c, h]);
5780
+ }, [l, c, f]);
5780
5781
  return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: y, hideFooter: !0, children: /* @__PURE__ */ s(O, { ...P }) });
5781
5782
  }, ts = m.div`
5782
5783
  height: var(--size-800, 4rem);
@@ -5879,7 +5880,7 @@ const as = {
5879
5880
  setVisible: d,
5880
5881
  visible: c
5881
5882
  }) => {
5882
- const [u, p] = M(""), [f, h] = M(!0), [g, y] = M(60), [O, P] = M([]), [S, E] = M(!1);
5883
+ const [u, p] = M(""), [h, f] = M(!0), [g, y] = M(60), [O, P] = M([]), [S, E] = M(!1);
5883
5884
  async function k() {
5884
5885
  var B, F, R;
5885
5886
  if (u)
@@ -5895,7 +5896,7 @@ const as = {
5895
5896
  if (e)
5896
5897
  try {
5897
5898
  const B = await e(t, o);
5898
- B.data.success && (n(B), h(!0), y(60));
5899
+ B.data.success && (n(B), f(!0), y(60));
5899
5900
  } catch (B) {
5900
5901
  console.log("Error in OTP resend", B);
5901
5902
  }
@@ -5907,12 +5908,12 @@ const as = {
5907
5908
  p(B);
5908
5909
  }
5909
5910
  return K(() => {
5910
- if (!f) return;
5911
+ if (!h) return;
5911
5912
  const B = setInterval(() => {
5912
- y((F) => F <= 1 ? (clearInterval(B), h(!1), 0) : F - 1);
5913
+ y((F) => F <= 1 ? (clearInterval(B), f(!1), 0) : F - 1);
5913
5914
  }, 1e3);
5914
5915
  return () => clearInterval(B);
5915
- }, [f]), /* @__PURE__ */ s(Kt, { open: c, onCancel: U, footer: [null], children: t ? /* @__PURE__ */ s(oe, { children: S ? /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
5916
+ }, [h]), /* @__PURE__ */ s(Kt, { open: c, onCancel: U, footer: [null], children: t ? /* @__PURE__ */ s(oe, { children: S ? /* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(
5916
5917
  cn,
5917
5918
  {
5918
5919
  setBackupActivated: E,
@@ -5949,9 +5950,9 @@ const as = {
5949
5950
  i !== Rt.TOTP && /* @__PURE__ */ s(
5950
5951
  re,
5951
5952
  {
5952
- disabled: f,
5953
+ disabled: h,
5953
5954
  onClick: H,
5954
- children: f ? `${G("ResendAvailable")} ${g} ${j("Second")}` : `${G("Resend")}`
5955
+ children: h ? `${G("ResendAvailable")} ${g} ${j("Second")}` : `${G("Resend")}`
5955
5956
  }
5956
5957
  ),
5957
5958
  /* @__PURE__ */ v(
@@ -6260,11 +6261,11 @@ const ls = m(Ct)`
6260
6261
  loading: d,
6261
6262
  pagination: c
6262
6263
  }) => {
6263
- const [u, p] = M([]), f = t || n;
6264
+ const [u, p] = M([]), h = t || n;
6264
6265
  K(() => {
6265
6266
  a && a.length > 0 && p((g) => [...a, ...g]);
6266
6267
  }, [a]);
6267
- function h(g) {
6268
+ function f(g) {
6268
6269
  p(g), l && l([]);
6269
6270
  }
6270
6271
  return /* @__PURE__ */ s(
@@ -6277,9 +6278,9 @@ const ls = m(Ct)`
6277
6278
  emptyText: /* @__PURE__ */ s(_r, { description: Jn("NoData") })
6278
6279
  },
6279
6280
  loading: d,
6280
- columns: f,
6281
+ columns: h,
6281
6282
  expandedRowKeys: u,
6282
- onExpandedRowsChange: h,
6283
+ onExpandedRowsChange: f,
6283
6284
  expandable: {
6284
6285
  expandedRowRender: (g) => /* @__PURE__ */ s(e, { ...o, record: g }),
6285
6286
  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, {}) }) }),
@@ -6754,9 +6755,9 @@ class bt extends kt {
6754
6755
  } = this.extractFromKey(e[e.length - 1], i), c = d[d.length - 1];
6755
6756
  let u = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
6756
6757
  u === void 0 && (u = ":");
6757
- const p = i.lng || this.language, f = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6758
+ const p = i.lng || this.language, h = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
6758
6759
  if ((p == null ? void 0 : p.toLowerCase()) === "cimode")
6759
- return f ? o ? {
6760
+ return h ? o ? {
6760
6761
  res: `${c}${u}${l}`,
6761
6762
  usedKey: l,
6762
6763
  exactUsedKey: l,
@@ -6771,9 +6772,9 @@ class bt extends kt {
6771
6772
  usedNS: c,
6772
6773
  usedParams: this.getUsedParamsDetails(i)
6773
6774
  } : l;
6774
- const h = this.resolve(e, i);
6775
- let g = h == null ? void 0 : h.res;
6776
- 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, {
6775
+ const f = this.resolve(e, i);
6776
+ let g = f == null ? void 0 : f.res;
6777
+ 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, {
6777
6778
  ordinal: !1
6778
6779
  }) : "", B = k && !i.ordinal && i.count === 0, F = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${U}`] || i[`defaultValue${Y}`] || i.defaultValue;
6779
6780
  let R = g;
@@ -6786,7 +6787,7 @@ class bt extends kt {
6786
6787
  ...i,
6787
6788
  ns: d
6788
6789
  }) : `key '${l} (${this.language})' returned an object instead of string.`;
6789
- return o ? (h.res = _, h.usedParams = this.getUsedParamsDetails(i), h) : _;
6790
+ return o ? (f.res = _, f.usedParams = this.getUsedParamsDetails(i), f) : _;
6790
6791
  }
6791
6792
  if (a) {
6792
6793
  const _ = Array.isArray(R), D = _ ? [] : {}, L = _ ? O : y;
@@ -6838,9 +6839,9 @@ class bt extends kt {
6838
6839
  });
6839
6840
  }) : z(C, l, F));
6840
6841
  }
6841
- 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));
6842
+ 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));
6842
6843
  }
6843
- return o ? (h.res = g, h.usedParams = this.getUsedParamsDetails(i), h) : g;
6844
+ return o ? (f.res = g, f.usedParams = this.getUsedParamsDetails(i), f) : g;
6844
6845
  }
6845
6846
  extendTranslation(e, t, n, i, o) {
6846
6847
  var d, c;
@@ -6862,18 +6863,18 @@ class bt extends kt {
6862
6863
  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);
6863
6864
  let p;
6864
6865
  if (u) {
6865
- const h = e.match(this.interpolator.nestingRegexp);
6866
- p = h && h.length;
6866
+ const f = e.match(this.interpolator.nestingRegexp);
6867
+ p = f && f.length;
6867
6868
  }
6868
- let f = n.replace && !A(n.replace) ? n.replace : n;
6869
- if (this.options.interpolation.defaultVariables && (f = {
6869
+ let h = n.replace && !A(n.replace) ? n.replace : n;
6870
+ if (this.options.interpolation.defaultVariables && (h = {
6870
6871
  ...this.options.interpolation.defaultVariables,
6871
- ...f
6872
- }), e = this.interpolator.interpolate(e, f, n.lng || this.language || i.usedLng, n), u) {
6873
- const h = e.match(this.interpolator.nestingRegexp), g = h && h.length;
6872
+ ...h
6873
+ }), e = this.interpolator.interpolate(e, h, n.lng || this.language || i.usedLng, n), u) {
6874
+ const f = e.match(this.interpolator.nestingRegexp), g = f && f.length;
6874
6875
  p < g && (n.nest = !1);
6875
6876
  }
6876
- !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();
6877
+ !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();
6877
6878
  }
6878
6879
  const a = n.postProcess || this.options.postProcess, l = A(a) ? [a] : a;
6879
6880
  return e != null && (l != null && l.length) && n.applyPostProcessor !== !1 && (e = On.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
@@ -6895,7 +6896,7 @@ class bt extends kt {
6895
6896
  i = u;
6896
6897
  let p = c.namespaces;
6897
6898
  this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
6898
- 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);
6899
+ 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);
6899
6900
  p.forEach((O) => {
6900
6901
  var P, S;
6901
6902
  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) => {
@@ -6907,11 +6908,11 @@ class bt extends kt {
6907
6908
  this.i18nFormat.addLookupKeys(k, u, E, O, t);
6908
6909
  else {
6909
6910
  let Y;
6910
- f && (Y = this.pluralResolver.getSuffix(E, t.count, t));
6911
+ h && (Y = this.pluralResolver.getSuffix(E, t.count, t));
6911
6912
  const B = `${this.options.pluralSeparator}zero`, F = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6912
- 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) {
6913
+ 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) {
6913
6914
  const R = `${u}${this.options.contextSeparator || "_"}${t.context}`;
6914
- 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));
6915
+ 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));
6915
6916
  }
6916
6917
  }
6917
6918
  let H;
@@ -7098,15 +7099,15 @@ class Rr {
7098
7099
  formatSeparator: c,
7099
7100
  unescapeSuffix: u,
7100
7101
  unescapePrefix: p,
7101
- nestingPrefix: f,
7102
- nestingPrefixEscaped: h,
7102
+ nestingPrefix: h,
7103
+ nestingPrefixEscaped: f,
7103
7104
  nestingSuffix: g,
7104
7105
  nestingSuffixEscaped: y,
7105
7106
  nestingOptionsSeparator: O,
7106
7107
  maxReplaces: P,
7107
7108
  alwaysFormat: S
7108
7109
  } = e.interpolation;
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();
7110
+ 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 = h ? Te(h) : f || 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();
7110
7111
  }
7111
7112
  reset() {
7112
7113
  this.options && this.init(this.options);
@@ -7116,7 +7117,7 @@ class Rr {
7116
7117
  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}`);
7117
7118
  }
7118
7119
  interpolate(e, t, n, i) {
7119
- var h;
7120
+ var f;
7120
7121
  let o, a, l;
7121
7122
  const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
7122
7123
  if (!g.includes(this.formatSeparator)) {
@@ -7135,7 +7136,7 @@ class Rr {
7135
7136
  });
7136
7137
  };
7137
7138
  this.resetRegExp();
7138
- 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;
7139
+ 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;
7139
7140
  return [{
7140
7141
  regex: this.regexpUnescape,
7141
7142
  safeValue: (g) => Tt(g)
@@ -7169,17 +7170,17 @@ class Rr {
7169
7170
  const u = this.nestingOptionsSeparator;
7170
7171
  if (!d.includes(u)) return d;
7171
7172
  const p = d.split(new RegExp(`${Te(u)}[ ]*{`));
7172
- let f = `{${p[1]}`;
7173
- d = p[0], f = this.interpolate(f, a);
7174
- const h = f.match(/'/g), g = f.match(/"/g);
7175
- (((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (f = f.replace(/'/g, '"'));
7173
+ let h = `{${p[1]}`;
7174
+ d = p[0], h = this.interpolate(h, a);
7175
+ const f = h.match(/'/g), g = h.match(/"/g);
7176
+ (((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !g || ((g == null ? void 0 : g.length) ?? 0) % 2 !== 0) && (h = h.replace(/'/g, '"'));
7176
7177
  try {
7177
- a = JSON.parse(f), c && (a = {
7178
+ a = JSON.parse(h), c && (a = {
7178
7179
  ...c,
7179
7180
  ...a
7180
7181
  });
7181
7182
  } catch (y) {
7182
- return this.logger.warn(`failed parsing options string in nesting for key ${d}`, y), `${d}${u}${f}`;
7183
+ return this.logger.warn(`failed parsing options string in nesting for key ${d}`, y), `${d}${u}${h}`;
7183
7184
  }
7184
7185
  return a.defaultValue && a.defaultValue.includes(this.prefix) && delete a.defaultValue, d;
7185
7186
  };
@@ -7292,18 +7293,18 @@ class Rs {
7292
7293
  formatOptions: u
7293
7294
  } = zs(d);
7294
7295
  if (this.formats[c]) {
7295
- let f = l;
7296
+ let h = l;
7296
7297
  try {
7297
- 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;
7298
- f = this.formats[c](l, g, {
7298
+ 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;
7299
+ h = this.formats[c](l, g, {
7299
7300
  ...u,
7300
7301
  ...i,
7301
- ...h
7302
+ ...f
7302
7303
  });
7303
- } catch (h) {
7304
- this.logger.warn(h);
7304
+ } catch (f) {
7305
+ this.logger.warn(f);
7305
7306
  }
7306
- return f;
7307
+ return h;
7307
7308
  } else
7308
7309
  this.logger.warn(`there was no format function for ${c}`);
7309
7310
  return l;
@@ -7323,8 +7324,8 @@ class As extends kt {
7323
7324
  return e.forEach((c) => {
7324
7325
  let u = !0;
7325
7326
  t.forEach((p) => {
7326
- const f = `${c}|${p}`;
7327
- !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)));
7327
+ const h = `${c}|${p}`;
7328
+ !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)));
7328
7329
  }), u || (l[c] = !0);
7329
7330
  }), (Object.keys(o).length || Object.keys(a).length) && this.queue.push({
7330
7331
  pending: a,
@@ -7420,26 +7421,26 @@ class As extends kt {
7420
7421
  }
7421
7422
  saveMissing(e, t, n, i, o, a = {}, l = () => {
7422
7423
  }) {
7423
- var d, c, u, p, f;
7424
+ var d, c, u, p, h;
7424
7425
  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))) {
7425
7426
  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!!!");
7426
7427
  return;
7427
7428
  }
7428
7429
  if (!(n == null || n === "")) {
7429
- if ((f = this.backend) != null && f.create) {
7430
- const h = {
7430
+ if ((h = this.backend) != null && h.create) {
7431
+ const f = {
7431
7432
  ...a,
7432
7433
  isUpdate: o
7433
7434
  }, g = this.backend.create.bind(this.backend);
7434
7435
  if (g.length < 6)
7435
7436
  try {
7436
7437
  let y;
7437
- 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);
7438
+ 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);
7438
7439
  } catch (y) {
7439
7440
  l(y);
7440
7441
  }
7441
7442
  else
7442
- g(e, t, n, i, l, h);
7443
+ g(e, t, n, i, l, f);
7443
7444
  }
7444
7445
  !e || !e[0] || this.store.addResource(e[0], t, n, i);
7445
7446
  }
@@ -7541,12 +7542,12 @@ class Xe extends kt {
7541
7542
  prepend: this.options.pluralSeparator
7542
7543
  }), 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 = {
7543
7544
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
7544
- }, p.backendConnector = new As(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (f, ...h) => {
7545
- this.emit(f, ...h);
7546
- }), 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) => {
7547
- this.emit(f, ...h);
7548
- }), this.modules.external.forEach((f) => {
7549
- f.init && f.init(this);
7545
+ }, p.backendConnector = new As(i(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (h, ...f) => {
7546
+ this.emit(h, ...f);
7547
+ }), 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) => {
7548
+ this.emit(h, ...f);
7549
+ }), this.modules.external.forEach((h) => {
7550
+ h.init && h.init(this);
7550
7551
  });
7551
7552
  }
7552
7553
  if (this.format = this.options.interpolation.format, t || (t = pt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
@@ -7620,8 +7621,8 @@ class Xe extends kt {
7620
7621
  var u, p;
7621
7622
  !e && !l && this.services.languageDetector && (l = []);
7622
7623
  const d = A(l) ? l : l && l[0], c = this.store.hasLanguageSomeTranslations(d) ? d : this.services.languageUtils.getBestMatchFromCodes(A(l) ? [l] : l);
7623
- 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) => {
7624
- o(f, c);
7624
+ 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) => {
7625
+ o(h, c);
7625
7626
  });
7626
7627
  };
7627
7628
  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;
@@ -7639,7 +7640,7 @@ class Xe extends kt {
7639
7640
  typeof d.keyPrefix == "function" && (d.keyPrefix = Ve(d.keyPrefix, c));
7640
7641
  const u = this.options.keySeparator || ".";
7641
7642
  let p;
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);
7643
+ return d.keyPrefix && Array.isArray(o) ? p = o.map((h) => (typeof h == "function" && (h = Ve(h, c)), `${d.keyPrefix}${u}${h}`)) : (typeof o == "function" && (o = Ve(o, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${o}` : o), this.t(p, d);
7643
7644
  };
7644
7645
  return A(e) ? i.lng = e : i.lngs = e, i.ns = t, i.keyPrefix = n, i;
7645
7646
  }
@@ -7789,7 +7790,7 @@ function js() {
7789
7790
  (function(t, n) {
7790
7791
  r.exports = n();
7791
7792
  })(Fs, (function() {
7792
- 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) {
7793
+ 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) {
7793
7794
  var L = ["th", "st", "nd", "rd"], w = D % 100;
7794
7795
  return "[" + D + (L[(w - 20) % 10] || L[w] || L[0]) + "]";
7795
7796
  } }, E = function(D, L, w) {
@@ -7805,7 +7806,7 @@ function js() {
7805
7806
  }, a: function(D) {
7806
7807
  return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
7807
7808
  }, p: function(D) {
7808
- 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$/, "");
7809
+ 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$/, "");
7809
7810
  }, u: function(D) {
7810
7811
  return D === void 0;
7811
7812
  } }, H = "en", U = {};
@@ -7881,7 +7882,7 @@ function js() {
7881
7882
  return b.w(C.toDate()[ve].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), C);
7882
7883
  }, q = this.$W, Q = this.$M, X = this.$D, me = "set" + (this.$u ? "UTC" : "");
7883
7884
  switch (z) {
7884
- case h:
7885
+ case f:
7885
7886
  return I ? V(1, 0) : V(31, 11);
7886
7887
  case p:
7887
7888
  return I ? V(1, Q) : V(0, Q + 1);
@@ -7903,8 +7904,8 @@ function js() {
7903
7904
  }, L.endOf = function(w) {
7904
7905
  return this.startOf(w, !1);
7905
7906
  }, L.$set = function(w, x) {
7906
- 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;
7907
- if (I === p || I === h) {
7907
+ 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;
7908
+ if (I === p || I === f) {
7908
7909
  var q = this.clone().set(g, 1);
7909
7910
  q.$d[V](W), q.init(), this.$d = q.set(g, Math.min(this.$D, q.daysInMonth())).$d;
7910
7911
  } else V && this.$d[V](W);
@@ -7921,7 +7922,7 @@ function js() {
7921
7922
  return b.w(X.date(X.date() + Math.round(Q * w)), I);
7922
7923
  };
7923
7924
  if (z === p) return this.set(p, this.$M + w);
7924
- if (z === h) return this.set(h, this.$y + w);
7925
+ if (z === f) return this.set(f, this.$y + w);
7925
7926
  if (z === c) return V(1);
7926
7927
  if (z === u) return V(7);
7927
7928
  var W = (C = {}, C[l] = n, C[d] = i, C[a] = t, C)[z] || 1, q = this.$d.getTime() + w * W;
@@ -8001,13 +8002,13 @@ function js() {
8001
8002
  return b.m(z, W);
8002
8003
  };
8003
8004
  switch (V) {
8004
- case h:
8005
+ case f:
8005
8006
  I = X() / 12;
8006
8007
  break;
8007
8008
  case p:
8008
8009
  I = X();
8009
8010
  break;
8010
- case f:
8011
+ case h:
8011
8012
  I = X() / 3;
8012
8013
  break;
8013
8014
  case u:
@@ -8049,7 +8050,7 @@ function js() {
8049
8050
  return this.$d.toUTCString();
8050
8051
  }, D;
8051
8052
  })(), _ = N.prototype;
8052
- return R.prototype = _, [["$ms", o], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", h], ["$D", g]].forEach((function(D) {
8053
+ return R.prototype = _, [["$ms", o], ["$s", a], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", f], ["$D", g]].forEach((function(D) {
8053
8054
  _[D[1]] = function(L) {
8054
8055
  return this.$g(L, D[0], D[1]);
8055
8056
  };
@@ -8473,26 +8474,26 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
8473
8474
  }
8474
8475
  );
8475
8476
  }, Ks = (r, e, t) => {
8476
- const n = r.filter((p) => e[p.id]), i = Object.keys(n[0]), o = n.map((p) => i.map((f) => {
8477
- const h = p[f];
8478
- return h == null ? "" : typeof h == "object" ? Object.values(h).find((y) => typeof y != "object") ?? "" : h;
8477
+ const n = r.filter((p) => e[p.id]), i = Object.keys(n[0]), o = n.map((p) => i.map((h) => {
8478
+ const f = p[h];
8479
+ return f == null ? "" : typeof f == "object" ? Object.values(f).find((y) => typeof y != "object") ?? "" : f;
8479
8480
  })), a = [i, ...o].map(
8480
- (p) => p.map((f) => `"${(f || "").toString().replace(/"/g, '""')}"`).join(",")
8481
+ (p) => p.map((h) => `"${(h || "").toString().replace(/"/g, '""')}"`).join(",")
8481
8482
  ).join(`\r
8482
8483
  `), l = "\uFEFF", d = new Blob([l + a], { type: "text/csv;charset=utf-8;" }), c = document.createElement("a"), u = URL.createObjectURL(d);
8483
8484
  c.setAttribute("href", u), c.setAttribute("download", t), document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(u);
8484
8485
  }, qs = (r, e, t) => {
8485
8486
  const i = r.filter((p) => e[p.id]).map((p) => {
8486
- const f = {};
8487
- return Object.entries(p).forEach(([h, g]) => {
8487
+ const h = {};
8488
+ return Object.entries(p).forEach(([f, g]) => {
8488
8489
  if (g == null)
8489
- f[h] = "";
8490
+ h[f] = "";
8490
8491
  else if (typeof g == "object") {
8491
8492
  const y = Object.values(g).find((O) => typeof O != "object");
8492
- f[h] = y ?? "";
8493
+ h[f] = y ?? "";
8493
8494
  } else
8494
- f[h] = g;
8495
- }), f;
8495
+ h[f] = g;
8496
+ }), h;
8496
8497
  }), o = ct.utils.json_to_sheet(i), a = ct.utils.book_new();
8497
8498
  ct.utils.book_append_sheet(a, o, "Data");
8498
8499
  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");
@@ -8646,29 +8647,29 @@ const Ul = ({
8646
8647
  ...o
8647
8648
  }) => {
8648
8649
  const a = async (d) => {
8649
- var h, g;
8650
- const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, f = [...r, p];
8651
- e(f);
8650
+ var f, g;
8651
+ const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, h = [...r, p];
8652
+ e(h);
8652
8653
  try {
8653
8654
  const y = new FormData();
8654
8655
  y.append("files", c);
8655
8656
  const O = await i(y);
8656
- if ((h = O == null ? void 0 : O.data) != null && h.success) {
8657
+ if ((f = O == null ? void 0 : O.data) != null && f.success) {
8657
8658
  const P = (g = O == null ? void 0 : O.data) == null ? void 0 : g.value[0];
8658
8659
  e(
8659
- f.map(
8660
+ h.map(
8660
8661
  (S) => S.uid === c.uid ? { ...S, status: "done", ...P } : S
8661
8662
  )
8662
8663
  );
8663
8664
  } else
8664
- e(f.filter((P) => P.uid !== c.uid)), ht.error({
8665
+ e(h.filter((P) => P.uid !== c.uid)), ht.error({
8665
8666
  className: "bottom-right-notification",
8666
8667
  placement: "bottomRight",
8667
8668
  message: "Error",
8668
8669
  description: "Upload failed"
8669
8670
  });
8670
8671
  } catch {
8671
- e(f.filter((O) => O.uid !== c.uid)), ht.error({
8672
+ e(h.filter((O) => O.uid !== c.uid)), ht.error({
8672
8673
  className: "bottom-right-notification",
8673
8674
  placement: "bottomRight",
8674
8675
  message: "Error",
@@ -8831,16 +8832,16 @@ const Ul = ({
8831
8832
  needsBreadcrumb: a,
8832
8833
  customTabFilter: l
8833
8834
  }) => {
8834
- const { hasPermission: d } = ze(), { id: c } = jn(), u = _e(), p = Pe(), f = we(() => {
8835
+ const { hasPermission: d } = ze(), { id: c } = jn(), u = _e(), p = Pe(), h = we(() => {
8835
8836
  const k = u.pathname.split("/");
8836
8837
  return k[k.length - 1] || n;
8837
- }, [u.pathname, n]), [h, g] = M(null), [y, O] = M(null), P = (k) => {
8838
+ }, [u.pathname, n]), [f, g] = M(null), [y, O] = M(null), P = (k) => {
8838
8839
  p(`${r}/${c}/${k}`);
8839
8840
  }, S = () => l ? l(e) : e.filter((k) => {
8840
8841
  var H;
8841
8842
  return (H = k.permission) == null ? void 0 : H.some((U) => d(U));
8842
8843
  }), E = () => {
8843
- const k = t[f] || t[n];
8844
+ const k = t[h] || t[n];
8844
8845
  return k ? typeof k == "object" && k !== null && "type" in k ? {
8845
8846
  ...k,
8846
8847
  props: {
@@ -8856,7 +8857,7 @@ const Ul = ({
8856
8857
  /* @__PURE__ */ s(
8857
8858
  el,
8858
8859
  {
8859
- activeKey: f,
8860
+ activeKey: h,
8860
8861
  onChange: P,
8861
8862
  tabBarExtraContent: {
8862
8863
  right: /* @__PURE__ */ v(rl, { children: [
@@ -8866,7 +8867,7 @@ const Ul = ({
8866
8867
  className: "partner-tab-select",
8867
8868
  placeholder: "Modules",
8868
8869
  onChange: (k) => P(k),
8869
- value: f,
8870
+ value: h,
8870
8871
  options: e.filter((k) => (k == null ? void 0 : k.label) !== "Details").map((k) => ({
8871
8872
  value: k.key,
8872
8873
  label: k.label
@@ -8875,7 +8876,7 @@ const Ul = ({
8875
8876
  ) }),
8876
8877
  /* @__PURE__ */ v(tl, { children: [
8877
8878
  y,
8878
- h
8879
+ f
8879
8880
  ] })
8880
8881
  ] })
8881
8882
  },
@@ -8893,7 +8894,7 @@ const Ul = ({
8893
8894
  getItemById: o,
8894
8895
  onSetFormValues: a
8895
8896
  }) => {
8896
- const l = Pe(), [d] = Ne.useForm(), [c, u] = M(r == "new"), [p, f] = M(null), h = async (y) => {
8897
+ const l = Pe(), [d] = Ne.useForm(), [c, u] = M(r == "new"), [p, h] = M(null), f = async (y) => {
8897
8898
  const O = window.location.pathname, P = O.substring(0, O.lastIndexOf("/"));
8898
8899
  try {
8899
8900
  if (p) {
@@ -8912,7 +8913,7 @@ const Ul = ({
8912
8913
  }, g = async (y) => {
8913
8914
  try {
8914
8915
  const O = await o(y), P = a ? a(O.data) : O.data;
8915
- f(P), d.setFieldsValue(P);
8916
+ h(P), d.setFieldsValue(P);
8916
8917
  } catch (O) {
8917
8918
  console.log(O, "Error in Form Controller.");
8918
8919
  }
@@ -8924,7 +8925,7 @@ const Ul = ({
8924
8925
  item: p,
8925
8926
  getItemById: o,
8926
8927
  isAddingForm: c,
8927
- handleSave: h
8928
+ handleSave: f
8928
8929
  };
8929
8930
  }, Yl = ({ id: r, formItem: e, updateItem: t, addItem: n, getItemById: i }) => {
8930
8931
  const [o] = Ne.useForm(), [a, l] = M(null), d = async (u) => {
@@ -8933,15 +8934,15 @@ const Ul = ({
8933
8934
  return r ? p = await t({ ...u }) : p = await n(u), p;
8934
8935
  } catch (p) {
8935
8936
  if (p.status === 400) {
8936
- const f = p.response.data, h = Fe(f.errors);
8937
- o.setFields(h);
8937
+ const h = p.response.data, f = Fe(h.errors);
8938
+ o.setFields(f);
8938
8939
  }
8939
8940
  throw p;
8940
8941
  }
8941
8942
  }, c = async (u) => {
8942
8943
  try {
8943
- const f = (await i(u)).data;
8944
- l(f), o.setFieldsValue(f);
8944
+ const h = (await i(u)).data;
8945
+ l(h), o.setFieldsValue(h);
8945
8946
  } catch (p) {
8946
8947
  console.log(p, "Error in Form Controller.");
8947
8948
  }