affiliate-front-shared 1.3.15 → 1.3.16
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/components/two-factor-popup/TwoFactorPopup.d.ts +2 -1
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +792 -791
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Ir = (n, e, t) => e in n ?
|
|
1
|
+
var zr = Object.defineProperty;
|
|
2
|
+
var Ir = (n, e, t) => e in n ? zr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Be = (n, e, t) => Ir(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { jsx as s, Fragment as ae, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import Jt, { createContext as Qt, useContext as dt, useEffect as Y, useState as
|
|
4
|
+
import { jsx as s, Fragment as ae, jsxs as b } from "react/jsx-runtime";
|
|
5
|
+
import * as M from "react";
|
|
6
|
+
import Jt, { createContext as Qt, useContext as dt, useEffect as Y, useState as V, useRef as et, useMemo as xe } from "react";
|
|
7
7
|
import { Menu as Xt, DatePicker as er, Table as pt, Dropdown as we, Select as ut, Button as Ce, Input as tt, Modal as tr, notification as We, Form as $e, Checkbox as Pr, Skeleton as Mr, Pagination as Hr, Breadcrumb as Rr, Spin as rr, Empty as nr, Tabs as ar, Upload as Nr } from "antd";
|
|
8
8
|
import h, { keyframes as Fr } from "styled-components";
|
|
9
|
-
import { useNavigate as ke, useLocation as
|
|
9
|
+
import { useNavigate as ke, useLocation as ze, useSearchParams as Vr, useParams as Ar, UNSAFE_NavigationContext as jr } from "react-router";
|
|
10
10
|
import { create as ir, useStore as Br } from "zustand";
|
|
11
11
|
import { useTranslation as Gr, initReactI18next as Ur } from "react-i18next";
|
|
12
12
|
import * as _r from "echarts";
|
|
@@ -35,7 +35,7 @@ function Co({ t: n, children: e }) {
|
|
|
35
35
|
Lt(n);
|
|
36
36
|
}, [n]), /* @__PURE__ */ s(ae, { children: e });
|
|
37
37
|
}
|
|
38
|
-
const ft = (n) => /* @__PURE__ */
|
|
38
|
+
const ft = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M5.33343 5.72363L8.0001 8.3903L10.6668 5.72363L11.6096 6.66644L8.0001 10.2759L4.39062 6.66644L5.33343 5.72363Z", fill: "currentColor", fillOpacity: 0.75 })), Jr = h(ft)`
|
|
39
39
|
color: var(--color-text-primary, #131412);
|
|
40
40
|
`, Qr = h.div`
|
|
41
41
|
background: var(--color-bg-secondary, #f5f5f5);
|
|
@@ -150,7 +150,7 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
`, sr = (n, e = []) => {
|
|
153
|
-
const [t, r] =
|
|
153
|
+
const [t, r] = V(null), [a, i] = V(null), [o, l] = V(!0), [d, c] = V(null), u = async () => {
|
|
154
154
|
var p;
|
|
155
155
|
try {
|
|
156
156
|
l(!0), r(null);
|
|
@@ -204,7 +204,7 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
204
204
|
const r = e().user;
|
|
205
205
|
return r != null && r.permissions ? !!r.permissions[t] : !1;
|
|
206
206
|
}
|
|
207
|
-
})), Re = (n) => /* @__PURE__ */
|
|
207
|
+
})), Re = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M13.4715 5.13812L12.5286 4.19531L7.00005 9.72391L4.13812 6.86198L3.19531 7.80479L7.00005 11.6095L13.4715 5.13812Z", fill: "currentColor" })), rn = h(Re)`
|
|
208
208
|
display: flex;
|
|
209
209
|
justify-content: center;
|
|
210
210
|
color: var(--color-text-primary, #131412) !important;
|
|
@@ -276,43 +276,43 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
276
276
|
function c() {
|
|
277
277
|
i(), e("/authorization/login");
|
|
278
278
|
}
|
|
279
|
-
function u(
|
|
280
|
-
d.changeLanguage(
|
|
279
|
+
function u(x) {
|
|
280
|
+
d.changeLanguage(x), window.location.reload();
|
|
281
281
|
}
|
|
282
|
-
const p = (
|
|
283
|
-
/* @__PURE__ */ s(an, { children:
|
|
282
|
+
const p = (x, D) => /* @__PURE__ */ b(nn, { children: [
|
|
283
|
+
/* @__PURE__ */ s(an, { children: x }),
|
|
284
284
|
D && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(rn, {}) })
|
|
285
285
|
] }), { response: m } = sr(t ?? (() => Promise.resolve({ data: [] })), []);
|
|
286
|
-
async function
|
|
286
|
+
async function g(x) {
|
|
287
287
|
if (!r) return;
|
|
288
|
-
const I = (await r(
|
|
288
|
+
const I = (await r(x)).data.value;
|
|
289
289
|
localStorage.setItem("useToken", I.token), localStorage.setItem("userData", JSON.stringify(I));
|
|
290
290
|
}
|
|
291
|
-
const
|
|
291
|
+
const f = () => {
|
|
292
292
|
(l == null ? void 0 : l.type) === "Manager" ? e(`/affiliate-manager/profile/${l.id}`) : e(`/affiliate-users/profile/${l == null ? void 0 : l.affiliateUserId}`);
|
|
293
293
|
};
|
|
294
|
-
return /* @__PURE__ */ s(on, { children: /* @__PURE__ */
|
|
294
|
+
return /* @__PURE__ */ s(on, { children: /* @__PURE__ */ b(
|
|
295
295
|
Q,
|
|
296
296
|
{
|
|
297
297
|
mode: window.innerWidth < 780 ? "inline" : "vertical",
|
|
298
|
-
getPopupContainer: (
|
|
298
|
+
getPopupContainer: (x) => x.parentElement || document.body,
|
|
299
299
|
onClick: () => n(!1),
|
|
300
300
|
children: [
|
|
301
|
-
/* @__PURE__ */ s(Q.Item, { onClick:
|
|
302
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ s(Q.Item, { onClick: f, children: "Profile" }, "10-1"),
|
|
302
|
+
/* @__PURE__ */ b(Q.Item, { children: [
|
|
303
303
|
" ",
|
|
304
304
|
"Notifications"
|
|
305
305
|
] }, "10-2"),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ b(Q.Item, { children: [
|
|
307
307
|
" ",
|
|
308
308
|
"SecurityAccess"
|
|
309
309
|
] }, "10-3"),
|
|
310
310
|
/* @__PURE__ */ s(Q.Divider, {}),
|
|
311
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ b(Q.SubMenu, { title: "Language", children: [
|
|
312
312
|
/* @__PURE__ */ s(Q.Item, { onClick: () => u("en"), children: p("English", d.language === "en") }, "20-1"),
|
|
313
313
|
/* @__PURE__ */ s(Q.Item, { onClick: () => u("ka"), children: p("Georgian", d.language === "ka") }, "20-2")
|
|
314
314
|
] }, "20"),
|
|
315
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ b(Q.SubMenu, { title: "ColorTheme", children: [
|
|
316
316
|
/* @__PURE__ */ s(Q.Item, { onClick: () => o(!1), children: p("Light", a === !1) }, "30-1"),
|
|
317
317
|
/* @__PURE__ */ s(Q.Item, { onClick: () => o(!0), children: p("Dark", a === !0) }, "30-2"),
|
|
318
318
|
/* @__PURE__ */ s(Q.Item, { onClick: () => o(null), children: p(
|
|
@@ -321,7 +321,7 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
321
321
|
) }, "30-3")
|
|
322
322
|
] }, "30"),
|
|
323
323
|
/* @__PURE__ */ s(Q.Divider, {}),
|
|
324
|
-
/* @__PURE__ */ s(Q.SubMenu, { title: "ConnectedAccounts", children: ((m == null ? void 0 : m.data) || []).map((
|
|
324
|
+
/* @__PURE__ */ s(Q.SubMenu, { title: "ConnectedAccounts", children: ((m == null ? void 0 : m.data) || []).map((x) => /* @__PURE__ */ s(Q.Item, { onClick: () => g(x.id), children: p(x.name) }, x.id)) }, "40"),
|
|
325
325
|
/* @__PURE__ */ s(Q.Divider, {}),
|
|
326
326
|
/* @__PURE__ */ s(Q.Item, { onClick: c, children: "LogOut" }, "100")
|
|
327
327
|
]
|
|
@@ -329,15 +329,15 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
329
329
|
"10"
|
|
330
330
|
) });
|
|
331
331
|
}, gt = ({ items: n, topLogoPrimaryUrl: e, shortName: t }) => {
|
|
332
|
-
const r =
|
|
332
|
+
const r = ze(), [a, i] = V(!1), o = et(null), l = () => i((d) => !d);
|
|
333
333
|
return Y(() => {
|
|
334
334
|
function d(c) {
|
|
335
335
|
o.current && !o.current.contains(c.target) && i(!1);
|
|
336
336
|
}
|
|
337
337
|
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
338
|
-
}, []), /* @__PURE__ */
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
-
/* @__PURE__ */
|
|
338
|
+
}, []), /* @__PURE__ */ b(Qr, { className: "sidebar-wrapper", children: [
|
|
339
|
+
/* @__PURE__ */ b(Xr, { ref: o, children: [
|
|
340
|
+
/* @__PURE__ */ b(en, { onClick: l, children: [
|
|
341
341
|
/* @__PURE__ */ s("img", { src: e, alt: "logo" }),
|
|
342
342
|
/* @__PURE__ */ s("span", { children: t }),
|
|
343
343
|
/* @__PURE__ */ s(Jr, {})
|
|
@@ -373,7 +373,7 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
373
373
|
max-height: 100vh;
|
|
374
374
|
`, dn = h.div`
|
|
375
375
|
background: var(--color-bg-primary, #fff);
|
|
376
|
-
`, ko = ({ children: n }) => /* @__PURE__ */
|
|
376
|
+
`, ko = ({ children: n }) => /* @__PURE__ */ b(ln, { children: [
|
|
377
377
|
/* @__PURE__ */ s(gt, {}),
|
|
378
378
|
/* @__PURE__ */ s(cn, { children: /* @__PURE__ */ s(dn, { children: n }) })
|
|
379
379
|
] }), pn = h.div`
|
|
@@ -525,7 +525,7 @@ const ft = (n) => /* @__PURE__ */ R.createElement("svg", { width: 16, height: 16
|
|
|
525
525
|
flex-direction: column;
|
|
526
526
|
align-items: start !important;
|
|
527
527
|
}
|
|
528
|
-
`, Dt = h.span``, lr = (n) => /* @__PURE__ */
|
|
528
|
+
`, Dt = h.span``, lr = (n) => /* @__PURE__ */ M.createElement("svg", { width: 12, height: 10, viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M5.60945 1.66669L2.94279 4.33335H11.3333V5.66669H2.94279L5.60945 8.33335L4.66665 9.27616L0.390503 5.00002L4.66665 0.723877L5.60945 1.66669Z", fill: "currentColor" })), Cn = h(lr)`
|
|
529
529
|
cursor: pointer;
|
|
530
530
|
|
|
531
531
|
svg {
|
|
@@ -606,7 +606,7 @@ const Dn = h.span`
|
|
|
606
606
|
className: r,
|
|
607
607
|
color: a,
|
|
608
608
|
commissionStatus: i
|
|
609
|
-
}) => /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(kn, { children: /* @__PURE__ */
|
|
609
|
+
}) => /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(kn, { children: /* @__PURE__ */ b(Sn, { color: a, onClick: t, className: r, children: [
|
|
610
610
|
/* @__PURE__ */ s($n, { children: e }),
|
|
611
611
|
/* @__PURE__ */ s(Ln, { children: n }),
|
|
612
612
|
i && e === B("Commission") && /* @__PURE__ */ s(Dn, { color: a, children: i })
|
|
@@ -622,10 +622,10 @@ const Dn = h.span`
|
|
|
622
622
|
function c(u) {
|
|
623
623
|
d(u);
|
|
624
624
|
}
|
|
625
|
-
return /* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */
|
|
625
|
+
return /* @__PURE__ */ b(pn, { children: [
|
|
626
|
+
/* @__PURE__ */ b(gn, { children: [
|
|
627
627
|
/* @__PURE__ */ s("header", { children: l && /* @__PURE__ */ s(fn, { onClick: () => c(l), children: /* @__PURE__ */ s(Cn, {}) }) }),
|
|
628
|
-
/* @__PURE__ */ s(mn, { children: /* @__PURE__ */
|
|
628
|
+
/* @__PURE__ */ s(mn, { children: /* @__PURE__ */ b(hn, { children: [
|
|
629
629
|
/* @__PURE__ */ s(vn, { children: n }),
|
|
630
630
|
/* @__PURE__ */ s(bn, { children: e })
|
|
631
631
|
] }) }),
|
|
@@ -637,7 +637,7 @@ const Dn = h.span`
|
|
|
637
637
|
}
|
|
638
638
|
) }),
|
|
639
639
|
i,
|
|
640
|
-
/* @__PURE__ */
|
|
640
|
+
/* @__PURE__ */ b(wn, { children: [
|
|
641
641
|
/* @__PURE__ */ s(
|
|
642
642
|
"img",
|
|
643
643
|
{
|
|
@@ -648,7 +648,7 @@ const Dn = h.span`
|
|
|
648
648
|
alt: "logo"
|
|
649
649
|
}
|
|
650
650
|
),
|
|
651
|
-
/* @__PURE__ */
|
|
651
|
+
/* @__PURE__ */ b("nav", { children: [
|
|
652
652
|
/* @__PURE__ */ s("a", { href: "", children: /* @__PURE__ */ s(Dt, { children: ee("TermsOfUsage") }) }),
|
|
653
653
|
/* @__PURE__ */ s("a", { href: "", children: /* @__PURE__ */ s(Dt, { children: ee("PrivacyPolicy") }) })
|
|
654
654
|
] })
|
|
@@ -664,7 +664,7 @@ const Ot = (n) => {
|
|
|
664
664
|
const p = typeof c == "function" ? c(e) : c;
|
|
665
665
|
if (!Object.is(p, e)) {
|
|
666
666
|
const m = e;
|
|
667
|
-
e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((
|
|
667
|
+
e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((g) => g(e, m));
|
|
668
668
|
}
|
|
669
669
|
}, a = () => e, l = { setState: r, getState: a, getInitialState: () => d, subscribe: (c) => (t.add(c), () => t.delete(c)) }, d = e = n(r, a, l);
|
|
670
670
|
return l;
|
|
@@ -678,7 +678,7 @@ const Ot = (n) => {
|
|
|
678
678
|
hideItems: {},
|
|
679
679
|
groupByArr: [],
|
|
680
680
|
activeTableView: he.TABLE
|
|
681
|
-
},
|
|
681
|
+
}, Tn = () => En((n, e) => ({
|
|
682
682
|
columns: [],
|
|
683
683
|
...Et,
|
|
684
684
|
isHydrated: !1,
|
|
@@ -758,15 +758,15 @@ const Ot = (n) => {
|
|
|
758
758
|
selectedConfig: null
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
|
-
})), dr = Qt(null),
|
|
761
|
+
})), dr = Qt(null), zn = ({ children: n }) => {
|
|
762
762
|
const e = et();
|
|
763
|
-
return e.current || (e.current =
|
|
763
|
+
return e.current || (e.current = Tn()), /* @__PURE__ */ s(dr.Provider, { value: e.current, children: n });
|
|
764
764
|
}, E = (n) => {
|
|
765
765
|
const e = dt(dr);
|
|
766
766
|
if (!e) throw new Error("GridViewStoreProvider is missing");
|
|
767
767
|
return Br(e, n);
|
|
768
768
|
}, In = () => {
|
|
769
|
-
const n = E((u) => u.hydrateFromStorage), e = E((u) => u.isHydrated), t = E((u) => u.filters), r = E((u) => u.filterItems), a = E((u) => u.sortItems), i = E((u) => u.hideItems), o = E((u) => u.groupByArr), l = E((u) => u.activeTableView), d = E((u) => u.selectedConfig), c =
|
|
769
|
+
const n = E((u) => u.hydrateFromStorage), e = E((u) => u.isHydrated), t = E((u) => u.filters), r = E((u) => u.filterItems), a = E((u) => u.sortItems), i = E((u) => u.hideItems), o = E((u) => u.groupByArr), l = E((u) => u.activeTableView), d = E((u) => u.selectedConfig), c = ze();
|
|
770
770
|
Y(() => (n(`grid-filters:${c.pathname}`), sessionStorage.clear()), []), Y(() => {
|
|
771
771
|
e && sessionStorage.setItem(
|
|
772
772
|
`grid-filters:${c.pathname}`,
|
|
@@ -792,7 +792,7 @@ const Ot = (n) => {
|
|
|
792
792
|
]);
|
|
793
793
|
};
|
|
794
794
|
function Pn(n) {
|
|
795
|
-
const [e, t] =
|
|
795
|
+
const [e, t] = V(0);
|
|
796
796
|
return Y(() => {
|
|
797
797
|
if (!n.current) return;
|
|
798
798
|
const r = new ResizeObserver(([a]) => {
|
|
@@ -1195,13 +1195,13 @@ const mt = h.div`
|
|
|
1195
1195
|
overflow: hidden;
|
|
1196
1196
|
`, Un = h.div`
|
|
1197
1197
|
height: ${(n) => n.height || "100%"};
|
|
1198
|
-
`, Ye = (n) => /* @__PURE__ */
|
|
1198
|
+
`, Ye = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M1.33203 3.33333H14.6654V4.66667H1.33203V3.33333Z", fill: "#131412" }), /* @__PURE__ */ M.createElement("path", { d: "M3.33203 7.33333H12.6654V8.66667H3.33203V7.33333Z", fill: "#131412" }), /* @__PURE__ */ M.createElement("path", { d: "M5.33203 11.3333H10.6654V12.6667H5.33203V11.3333Z", fill: "#131412" })), ur = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.9987 2V4H1.33203V5.33333H3.9987V7.33333H7.9987V5.33333H14.6654V4H7.9987V2H3.9987ZM6.66536 3.33333H5.33203V6H6.66536V3.33333Z", fill: "currentColor" }), /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.9987 8.66667V10.6667H1.33203V12H7.9987V14H11.9987V12H14.6654V10.6667H11.9987V8.66667H7.9987ZM9.33203 10H10.6654V12.6667H9.33203V10Z", fill: "currentColor" })), fr = (n) => /* @__PURE__ */ M.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M4 12H0V8H4V12Z", fill: "white" }), /* @__PURE__ */ M.createElement("path", { d: "M12 12H8V8H12V12Z", fill: "white" }), /* @__PURE__ */ M.createElement("path", { d: "M4 4H0V0H4V4Z", fill: "white" }), /* @__PURE__ */ M.createElement("path", { d: "M12 4H8V0H12V4Z", fill: "white" })), gr = (n, e, t = []) => {
|
|
1199
1199
|
const r = xe(() => Zr(n, e), t);
|
|
1200
1200
|
return Y(() => () => {
|
|
1201
1201
|
r.cancel();
|
|
1202
1202
|
}, [r]), r;
|
|
1203
|
-
}, ht = (n) => /* @__PURE__ */
|
|
1204
|
-
const [r, a] =
|
|
1203
|
+
}, ht = (n) => /* @__PURE__ */ M.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M7.99947 2.38989L3.72266 6.6667L4.66547 7.60951L7.3328 4.94218V13.3334H8.66613V4.94218L11.3335 7.60951L12.2763 6.6667L7.99947 2.38989Z", fill: "currentColor", fillOpacity: 0.75 })), yt = (n) => /* @__PURE__ */ M.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M8.66613 2.66675H7.3328V11.0573L4.66547 8.38994L3.72266 9.33275L7.99947 13.6096L12.2763 9.33275L11.3335 8.38994L8.66613 11.0573V2.66675Z", fill: "currentColor", fillOpacity: 0.75 })), _n = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M13.7337 6.67614L14.6765 5.73333L11.3337 2.39052L7.99089 5.73333L8.93369 6.67614L10.667 4.94281L10.667 13.3333H12.0004L12.0004 4.94281L13.7337 6.67614Z", fill: "#131412" }), /* @__PURE__ */ M.createElement("path", { d: "M8.00984 10.2667L4.66703 13.6095L1.32422 10.2667L2.26703 9.32385L4.00036 11.0572L4.00036 2.66666L5.33369 2.66666L5.33369 11.0572L7.06703 9.32386L8.00984 10.2667Z", fill: "#131412" })), Wn = ({ children: n, overlay: e, placement: t = "bottomRight" }) => {
|
|
1204
|
+
const [r, a] = V(!1);
|
|
1205
1205
|
return /* @__PURE__ */ s(
|
|
1206
1206
|
we,
|
|
1207
1207
|
{
|
|
@@ -1214,17 +1214,17 @@ const mt = h.div`
|
|
|
1214
1214
|
}
|
|
1215
1215
|
);
|
|
1216
1216
|
}, mr = ({ placement: n, children: e }) => {
|
|
1217
|
-
const t = E((
|
|
1217
|
+
const t = E((g) => g.columns), r = E((g) => g.sortItems), a = E((g) => g.setSortItems), i = r[0], [o, l] = V(""), [d, c] = V(
|
|
1218
1218
|
(i == null ? void 0 : i.direction) === re.ASC ? re.ASC : re.DESC
|
|
1219
1219
|
), u = t.filter(
|
|
1220
|
-
(
|
|
1220
|
+
(g) => g.title.toLowerCase().includes(o.toLowerCase()) && g.sortable !== !1
|
|
1221
1221
|
);
|
|
1222
|
-
function p(
|
|
1222
|
+
function p(g, f) {
|
|
1223
1223
|
a([
|
|
1224
1224
|
{
|
|
1225
|
-
title:
|
|
1226
|
-
dataIndex:
|
|
1227
|
-
direction:
|
|
1225
|
+
title: g.title,
|
|
1226
|
+
dataIndex: g.dataIndex.charAt(0).toUpperCase() + g.dataIndex.slice(1),
|
|
1227
|
+
direction: f
|
|
1228
1228
|
}
|
|
1229
1229
|
]);
|
|
1230
1230
|
}
|
|
@@ -1234,31 +1234,31 @@ const mt = h.div`
|
|
|
1234
1234
|
return /* @__PURE__ */ s(
|
|
1235
1235
|
Wn,
|
|
1236
1236
|
{
|
|
1237
|
-
overlay: (
|
|
1237
|
+
overlay: (g) => /* @__PURE__ */ b(mt, { children: [
|
|
1238
1238
|
/* @__PURE__ */ s(
|
|
1239
1239
|
"input",
|
|
1240
1240
|
{
|
|
1241
1241
|
type: "text",
|
|
1242
1242
|
placeholder: "Search...",
|
|
1243
1243
|
value: o,
|
|
1244
|
-
onChange: (
|
|
1244
|
+
onChange: (f) => l(f.target.value)
|
|
1245
1245
|
}
|
|
1246
1246
|
),
|
|
1247
|
-
/* @__PURE__ */ s("div", { children: u.map((
|
|
1247
|
+
/* @__PURE__ */ s("div", { children: u.map((f, x) => /* @__PURE__ */ b(
|
|
1248
1248
|
"button",
|
|
1249
1249
|
{
|
|
1250
1250
|
onClick: () => {
|
|
1251
|
-
|
|
1251
|
+
f.title == (i == null ? void 0 : i.title) ? m() : p(f, d);
|
|
1252
1252
|
},
|
|
1253
1253
|
children: [
|
|
1254
|
-
|
|
1255
|
-
|
|
1254
|
+
f.title,
|
|
1255
|
+
f.title == (i == null ? void 0 : i.title) && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(Re, {}) })
|
|
1256
1256
|
]
|
|
1257
1257
|
},
|
|
1258
|
-
|
|
1258
|
+
x
|
|
1259
1259
|
)) }),
|
|
1260
|
-
/* @__PURE__ */
|
|
1261
|
-
/* @__PURE__ */
|
|
1260
|
+
/* @__PURE__ */ b("div", { children: [
|
|
1261
|
+
/* @__PURE__ */ b(
|
|
1262
1262
|
"button",
|
|
1263
1263
|
{
|
|
1264
1264
|
onClick: () => {
|
|
@@ -1271,7 +1271,7 @@ const mt = h.div`
|
|
|
1271
1271
|
]
|
|
1272
1272
|
}
|
|
1273
1273
|
),
|
|
1274
|
-
/* @__PURE__ */
|
|
1274
|
+
/* @__PURE__ */ b(
|
|
1275
1275
|
"button",
|
|
1276
1276
|
{
|
|
1277
1277
|
onClick: () => {
|
|
@@ -1291,7 +1291,7 @@ const mt = h.div`
|
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
1293
|
}, bt = ({ placement: n, children: e, onSelect: t, CustomFilters: r }) => {
|
|
1294
|
-
const [a, i] =
|
|
1294
|
+
const [a, i] = V(!1), [o, l] = V(""), d = E((m) => m.columns), c = E((m) => m.filterItems), u = E((m) => m.setFilterItems);
|
|
1295
1295
|
function p(m) {
|
|
1296
1296
|
t ? t(m) : u([
|
|
1297
1297
|
...c,
|
|
@@ -1307,7 +1307,7 @@ const mt = h.div`
|
|
|
1307
1307
|
open: a,
|
|
1308
1308
|
onOpenChange: i,
|
|
1309
1309
|
placement: n || "bottomRight",
|
|
1310
|
-
popupRender: () => /* @__PURE__ */
|
|
1310
|
+
popupRender: () => /* @__PURE__ */ b(mt, { children: [
|
|
1311
1311
|
/* @__PURE__ */ s(
|
|
1312
1312
|
"input",
|
|
1313
1313
|
{
|
|
@@ -1317,7 +1317,7 @@ const mt = h.div`
|
|
|
1317
1317
|
onChange: (m) => l(m.target.value)
|
|
1318
1318
|
}
|
|
1319
1319
|
),
|
|
1320
|
-
/* @__PURE__ */ s("div", { children: d.filter((m) => m.filterable !== !1).filter((m) => !c.some((
|
|
1320
|
+
/* @__PURE__ */ s("div", { children: d.filter((m) => m.filterable !== !1).filter((m) => !c.some((g) => g.title == m.title)).filter((m) => m.filterable !== !1).filter((m) => m.title.toLowerCase().includes(o)).map((m, g) => /* @__PURE__ */ s("button", { onClick: () => p(m), children: m.title }, g)) }),
|
|
1321
1321
|
r && /* @__PURE__ */ s(
|
|
1322
1322
|
r,
|
|
1323
1323
|
{
|
|
@@ -1392,7 +1392,7 @@ const mt = h.div`
|
|
|
1392
1392
|
),
|
|
1393
1393
|
setTitle: (r) => n((a) => a.options ? { options: { ...a.options, title: r } } : a)
|
|
1394
1394
|
};
|
|
1395
|
-
}),
|
|
1395
|
+
}), Tt = h(ut)`
|
|
1396
1396
|
width: 200px;
|
|
1397
1397
|
|
|
1398
1398
|
display: flex;
|
|
@@ -1419,7 +1419,7 @@ const mt = h.div`
|
|
|
1419
1419
|
line-height: var(--typo-caption-lineHeight-medium, 1.125rem); /* 128.571% */
|
|
1420
1420
|
letter-spacing: var(--typo-caption-spacing-medium, 0.00625rem);
|
|
1421
1421
|
}
|
|
1422
|
-
`,
|
|
1422
|
+
`, zt = {
|
|
1423
1423
|
"/reports/activity-report": 1,
|
|
1424
1424
|
"/reports/commission-report": 2,
|
|
1425
1425
|
"/reports/deposit-report": 3,
|
|
@@ -1437,10 +1437,10 @@ const mt = h.div`
|
|
|
1437
1437
|
"/tags": 13
|
|
1438
1438
|
/* Tag */
|
|
1439
1439
|
}, hr = () => {
|
|
1440
|
-
const { pathname: n } =
|
|
1440
|
+
const { pathname: n } = ze(), e = Object.keys(zt).find(
|
|
1441
1441
|
(t) => n === t || n.startsWith(t + "/")
|
|
1442
1442
|
);
|
|
1443
|
-
return e ?
|
|
1443
|
+
return e ? zt[e] : void 0;
|
|
1444
1444
|
};
|
|
1445
1445
|
function Zn(n, e) {
|
|
1446
1446
|
return e.label.toLowerCase().includes(n.toLowerCase()) || e.value == n;
|
|
@@ -1456,63 +1456,63 @@ const qn = ({
|
|
|
1456
1456
|
GridPageTopLeftComponent: l,
|
|
1457
1457
|
noNeedSidebarResponsiveButton: d
|
|
1458
1458
|
}) => {
|
|
1459
|
-
const c = ke(), u = E((
|
|
1460
|
-
var
|
|
1459
|
+
const c = ke(), u = E((w) => w.filters), p = E((w) => w.hasCreateBtn), m = E((w) => w.setFilters), g = E((w) => w.setFilterItems), f = E((w) => w.setSortItems), [x, D] = V(() => {
|
|
1460
|
+
var w, C;
|
|
1461
1461
|
try {
|
|
1462
1462
|
const T = sessionStorage.getItem(`grid-filters:${window.location.pathname}`);
|
|
1463
|
-
return T ? !!((
|
|
1463
|
+
return T ? !!((C = (w = JSON.parse(T)) == null ? void 0 : w.filters) != null && C.QuickSearch) : !1;
|
|
1464
1464
|
} catch {
|
|
1465
1465
|
return !1;
|
|
1466
1466
|
}
|
|
1467
|
-
}), [I,
|
|
1467
|
+
}), [I, S] = V(!1), { open: O } = ye(), [L, H] = V(!1), { getMyFilters: j } = Ie(), _ = hr(), [K, G] = V([]), N = E((w) => w.selectedConfig), y = E((w) => w.setSelectedConfig), z = E((w) => w.configsVersion);
|
|
1468
1468
|
Y(() => {
|
|
1469
|
-
_ == null || !
|
|
1470
|
-
}, [_,
|
|
1471
|
-
function
|
|
1472
|
-
const
|
|
1473
|
-
if (!
|
|
1474
|
-
const { filterItems: T, sortItems:
|
|
1475
|
-
|
|
1476
|
-
}
|
|
1477
|
-
const $ = gr((
|
|
1469
|
+
_ == null || !j || j(String(_)).then((w) => G(w.data ?? []));
|
|
1470
|
+
}, [_, z, j]);
|
|
1471
|
+
function A(w) {
|
|
1472
|
+
const C = K.find((F) => F.id === w);
|
|
1473
|
+
if (!C) return;
|
|
1474
|
+
const { filterItems: T, sortItems: P } = JSON.parse(C.value);
|
|
1475
|
+
g(T, !0), f(P), y({ id: C.id, name: C.name });
|
|
1476
|
+
}
|
|
1477
|
+
const $ = gr((w) => {
|
|
1478
1478
|
m({
|
|
1479
1479
|
...u,
|
|
1480
|
-
QuickSearch:
|
|
1480
|
+
QuickSearch: w.target.value
|
|
1481
1481
|
});
|
|
1482
1482
|
}, 500);
|
|
1483
|
-
function
|
|
1483
|
+
function k() {
|
|
1484
1484
|
n(!0);
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function v() {
|
|
1487
1487
|
r ? O() : c("new");
|
|
1488
1488
|
}
|
|
1489
|
-
return /* @__PURE__ */
|
|
1490
|
-
!d && /* @__PURE__ */ s("button", { className: "icon sidebar", onClick: () =>
|
|
1489
|
+
return /* @__PURE__ */ b(Rn, { children: [
|
|
1490
|
+
!d && /* @__PURE__ */ s("button", { className: "icon sidebar", onClick: () => S(!0), children: /* @__PURE__ */ s(fr, {}) }),
|
|
1491
1491
|
l && /* @__PURE__ */ s(l, {}),
|
|
1492
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ b("div", { className: "page-actions", children: [
|
|
1493
1493
|
K.length > 0 && /* @__PURE__ */ s(
|
|
1494
|
-
|
|
1494
|
+
Tt,
|
|
1495
1495
|
{
|
|
1496
1496
|
showSearch: !0,
|
|
1497
1497
|
placeholder: B("SavedConfiguration"),
|
|
1498
|
-
options: K.map((
|
|
1499
|
-
value: (
|
|
1498
|
+
options: K.map((w) => ({ value: w.id, label: w.name })),
|
|
1499
|
+
value: (N == null ? void 0 : N.id) ?? null,
|
|
1500
1500
|
filterOption: Zn,
|
|
1501
|
-
onChange: (
|
|
1501
|
+
onChange: (w) => w != null ? A(w) : y(null)
|
|
1502
1502
|
}
|
|
1503
1503
|
),
|
|
1504
1504
|
i && o && /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1505
|
-
|
|
1505
|
+
Tt,
|
|
1506
1506
|
{
|
|
1507
1507
|
options: o.options,
|
|
1508
1508
|
placeholder: o.placeholder,
|
|
1509
|
-
onChange: (
|
|
1510
|
-
o.onChange(
|
|
1509
|
+
onChange: (w) => {
|
|
1510
|
+
o.onChange(w ?? null);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
) }),
|
|
1514
|
-
t && t(L,
|
|
1515
|
-
|
|
1514
|
+
t && t(L, H),
|
|
1515
|
+
x ? /* @__PURE__ */ s(
|
|
1516
1516
|
"input",
|
|
1517
1517
|
{
|
|
1518
1518
|
type: "text",
|
|
@@ -1523,13 +1523,13 @@ const qn = ({
|
|
|
1523
1523
|
) : /* @__PURE__ */ s("button", { onClick: () => D(!0), children: oe("Search") }),
|
|
1524
1524
|
/* @__PURE__ */ s(mr, {}),
|
|
1525
1525
|
/* @__PURE__ */ s(bt, { CustomFilters: e, children: /* @__PURE__ */ s(Ye, {}) }),
|
|
1526
|
-
/* @__PURE__ */ s("button", { className: "icon", onClick:
|
|
1526
|
+
/* @__PURE__ */ s("button", { className: "icon", onClick: k, children: /* @__PURE__ */ s(ur, {}) }),
|
|
1527
1527
|
a && a,
|
|
1528
|
-
p && /* @__PURE__ */ s("button", { onClick:
|
|
1528
|
+
p && /* @__PURE__ */ s("button", { onClick: v, className: "create-btn", children: oe("Create") })
|
|
1529
1529
|
] }),
|
|
1530
1530
|
I && /* @__PURE__ */ s(gt, {})
|
|
1531
1531
|
] });
|
|
1532
|
-
}, Jn = (n) => /* @__PURE__ */
|
|
1532
|
+
}, Jn = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M8.66665 7.3335H12.6666V8.66683H8.66665V12.6668H7.33331V8.66683H3.33331V7.3335H7.33331V3.3335H8.66665V7.3335Z", fill: "white" })), yr = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M8 2C9.69989 2 11.2343 2.70742 12.3255 3.84245V2.42578H13.6589V6.11654H9.96875V4.7832H11.3796C10.5289 3.88969 9.32909 3.33333 8 3.33333C5.42286 3.33333 3.33333 5.42286 3.33333 8C3.33333 10.5771 5.42286 12.6667 8 12.6667C10.5771 12.6667 12.6667 10.5771 12.6667 8V7.33333H14V8C14 11.3135 11.3135 14 8 14C4.68648 14 2 11.3135 2 8C2 4.68648 4.68648 2 8 2Z", fill: "#131412" })), fe = class fe {
|
|
1533
1533
|
static equals(e, t) {
|
|
1534
1534
|
const r = e ?? null, a = t ?? null;
|
|
1535
1535
|
return r === a ? !0 : !r || !a ? !1 : r.getTime() === a.getTime();
|
|
@@ -1807,7 +1807,7 @@ Be(fe, "getCommonDateRange", (e) => {
|
|
|
1807
1807
|
}), //** Offes seconds ( offsetmin * 60sec * 1000ms) */
|
|
1808
1808
|
Be(fe, "_utcDiff", -(/* @__PURE__ */ new Date()).getTimezoneOffset() * 6e4), Be(fe, "ISO8601_DATE_REGEX", /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/);
|
|
1809
1809
|
let ne = fe;
|
|
1810
|
-
const Qn = (n) => /* @__PURE__ */
|
|
1810
|
+
const Qn = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M12.471 4.47152L8.94238 8.00016L12.471 11.5288L11.5283 12.4715L7.99967 8.94287L4.47103 12.4715L3.52832 11.5288L7.05697 8.00016L3.52832 4.47152L4.47103 3.52881L7.99967 7.05745L11.5283 3.52881L12.471 4.47152Z", fill: "currentColor", fillOpacity: 0.75 })), vt = h(Qn)`
|
|
1811
1811
|
width: 25px;
|
|
1812
1812
|
height: 25px;
|
|
1813
1813
|
cursor: pointer;
|
|
@@ -2216,11 +2216,11 @@ const ia = ({
|
|
|
2216
2216
|
o.setFields(u);
|
|
2217
2217
|
}
|
|
2218
2218
|
});
|
|
2219
|
-
}, [n, e, t, r, o, l, d]), /* @__PURE__ */
|
|
2219
|
+
}, [n, e, t, r, o, l, d]), /* @__PURE__ */ b($e, { form: o, children: [
|
|
2220
2220
|
/* @__PURE__ */ s(Ke, { children: B("ConfigurationName") }),
|
|
2221
2221
|
/* @__PURE__ */ s($e.Item, { name: "name", children: /* @__PURE__ */ s(br, {}) })
|
|
2222
2222
|
] });
|
|
2223
|
-
}, oa = (n) => /* @__PURE__ */
|
|
2223
|
+
}, oa = (n) => /* @__PURE__ */ M.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M11.6666 4.65485L10.4881 5.83336L13.8215 9.16669H3.33331V10.8334H13.8215L10.4881 14.1667L11.6666 15.3452L17.0118 10L11.6666 4.65485Z", fill: "currentColor" })), Ee = h(oa)`
|
|
2224
2224
|
cursor: pointer;
|
|
2225
2225
|
svg {
|
|
2226
2226
|
width: 1rem;
|
|
@@ -2256,79 +2256,79 @@ const ia = ({
|
|
|
2256
2256
|
border-color: black;
|
|
2257
2257
|
}
|
|
2258
2258
|
`, ca = ({ item: n }) => {
|
|
2259
|
-
var
|
|
2260
|
-
const e = et(null), t = E((
|
|
2259
|
+
var S, O, L, H, j, _, K, G, N;
|
|
2260
|
+
const e = et(null), t = E((y) => y.filterItems), r = E((y) => y.setFilterItems), [a, i] = V(n.selectType == De.VALUE);
|
|
2261
2261
|
function o() {
|
|
2262
|
-
var
|
|
2263
|
-
(
|
|
2262
|
+
var y;
|
|
2263
|
+
(y = e == null ? void 0 : e.current) == null || y.focus();
|
|
2264
2264
|
}
|
|
2265
|
-
function l(
|
|
2265
|
+
function l(y) {
|
|
2266
2266
|
r(
|
|
2267
2267
|
t.map(
|
|
2268
|
-
(
|
|
2268
|
+
(z) => z.title == n.title ? { ...z, filterValue: y.id, filterLabel: y.name } : z
|
|
2269
2269
|
),
|
|
2270
2270
|
!0
|
|
2271
2271
|
), i(!1);
|
|
2272
2272
|
}
|
|
2273
|
-
function d(
|
|
2273
|
+
function d(y, z = !1) {
|
|
2274
2274
|
r(
|
|
2275
2275
|
t.map(
|
|
2276
|
-
(
|
|
2277
|
-
...
|
|
2278
|
-
filterValue:
|
|
2279
|
-
filterLabel:
|
|
2280
|
-
isCountryGroup:
|
|
2281
|
-
} :
|
|
2276
|
+
(A) => A.title == n.title ? {
|
|
2277
|
+
...A,
|
|
2278
|
+
filterValue: y.id,
|
|
2279
|
+
filterLabel: y.name,
|
|
2280
|
+
isCountryGroup: z
|
|
2281
|
+
} : A
|
|
2282
2282
|
),
|
|
2283
2283
|
!0
|
|
2284
2284
|
), i(!1);
|
|
2285
2285
|
}
|
|
2286
|
-
const [c, u] =
|
|
2287
|
-
var $,
|
|
2288
|
-
const
|
|
2289
|
-
u(
|
|
2290
|
-
const
|
|
2286
|
+
const [c, u] = V(n.filterValue || []), p = (y) => {
|
|
2287
|
+
var $, k;
|
|
2288
|
+
const z = c.includes(y) ? c.filter((v) => v !== y) : [...c, y];
|
|
2289
|
+
u(z);
|
|
2290
|
+
const A = (k = ($ = n == null ? void 0 : n.filters) == null ? void 0 : $.options) == null ? void 0 : k.filter((v) => z.includes(v.id)).map((v) => v.name).join(", ");
|
|
2291
2291
|
r(
|
|
2292
2292
|
t.map(
|
|
2293
|
-
(
|
|
2294
|
-
...
|
|
2295
|
-
filterValue:
|
|
2296
|
-
filterLabel:
|
|
2297
|
-
} :
|
|
2293
|
+
(v) => v.title === n.title ? {
|
|
2294
|
+
...v,
|
|
2295
|
+
filterValue: z,
|
|
2296
|
+
filterLabel: A || ""
|
|
2297
|
+
} : v
|
|
2298
2298
|
),
|
|
2299
2299
|
!0
|
|
2300
2300
|
);
|
|
2301
2301
|
};
|
|
2302
|
-
function m(
|
|
2302
|
+
function m(y) {
|
|
2303
2303
|
r(
|
|
2304
2304
|
t.map(
|
|
2305
|
-
(
|
|
2305
|
+
(z) => z.title == n.title ? { ...y, selectType: De.VALUE } : z
|
|
2306
2306
|
)
|
|
2307
2307
|
);
|
|
2308
2308
|
}
|
|
2309
|
-
const
|
|
2310
|
-
const
|
|
2309
|
+
const g = gr((y) => {
|
|
2310
|
+
const z = y.target.value;
|
|
2311
2311
|
r(
|
|
2312
|
-
t.map((
|
|
2312
|
+
t.map((A) => A.title == n.title ? { ...A, filterValue: z } : A),
|
|
2313
2313
|
!0
|
|
2314
2314
|
);
|
|
2315
2315
|
}, 500);
|
|
2316
|
-
function
|
|
2316
|
+
function f(y) {
|
|
2317
2317
|
r(
|
|
2318
2318
|
t.map(
|
|
2319
|
-
(
|
|
2319
|
+
(z) => z.title == n.title ? { ...z, selectType: De.NONE } : z
|
|
2320
2320
|
)
|
|
2321
|
-
), i(
|
|
2321
|
+
), i(y);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function x() {
|
|
2324
2324
|
r(
|
|
2325
|
-
t.filter((
|
|
2325
|
+
t.filter((y) => y.title != n.title),
|
|
2326
2326
|
!0
|
|
2327
2327
|
);
|
|
2328
2328
|
}
|
|
2329
2329
|
Y(() => {
|
|
2330
|
-
var
|
|
2331
|
-
a && ((
|
|
2330
|
+
var y;
|
|
2331
|
+
a && ((y = n == null ? void 0 : n.filters) == null ? void 0 : y.type) !== ue.SELECT && setTimeout(() => {
|
|
2332
2332
|
o();
|
|
2333
2333
|
}, 0);
|
|
2334
2334
|
}, [a]);
|
|
@@ -2340,22 +2340,22 @@ const ia = ({
|
|
|
2340
2340
|
type: "text",
|
|
2341
2341
|
placeholder: "Search...",
|
|
2342
2342
|
className: "filter-item-search",
|
|
2343
|
-
onChange:
|
|
2343
|
+
onChange: g
|
|
2344
2344
|
}
|
|
2345
2345
|
),
|
|
2346
|
-
[ue.SELECT]: /* @__PURE__ */ s("div", { children: (O = (
|
|
2347
|
-
[ue.TwoComponentSelect]: /* @__PURE__ */
|
|
2346
|
+
[ue.SELECT]: /* @__PURE__ */ s("div", { children: (O = (S = n == null ? void 0 : n.filters) == null ? void 0 : S.options) == null ? void 0 : O.map((y) => /* @__PURE__ */ s("button", { onClick: () => l(y), children: y.name }, y.id)) }),
|
|
2347
|
+
[ue.TwoComponentSelect]: /* @__PURE__ */ b(ae, { children: [
|
|
2348
2348
|
/* @__PURE__ */ s(Bn, { children: (L = n == null ? void 0 : n.filters) == null ? void 0 : L.firstGroupName }),
|
|
2349
|
-
/* @__PURE__ */ s(Gn, { children: (
|
|
2349
|
+
/* @__PURE__ */ s(Gn, { children: (j = (H = n == null ? void 0 : n.filters) == null ? void 0 : H.options) == null ? void 0 : j.map((y) => /* @__PURE__ */ s(
|
|
2350
2350
|
"button",
|
|
2351
2351
|
{
|
|
2352
|
-
onClick: () => d(
|
|
2353
|
-
children:
|
|
2352
|
+
onClick: () => d(y, !1),
|
|
2353
|
+
children: y.name
|
|
2354
2354
|
},
|
|
2355
|
-
|
|
2355
|
+
y.id
|
|
2356
2356
|
)) })
|
|
2357
2357
|
] }),
|
|
2358
|
-
[ue.MULTISELECT]: /* @__PURE__ */ s("div", { children: (K = (_ = n == null ? void 0 : n.filters) == null ? void 0 : _.options) == null ? void 0 : K.map((
|
|
2358
|
+
[ue.MULTISELECT]: /* @__PURE__ */ s("div", { children: (K = (_ = n == null ? void 0 : n.filters) == null ? void 0 : _.options) == null ? void 0 : K.map((y) => /* @__PURE__ */ s(jn, { children: /* @__PURE__ */ s(la, { onChange: () => p(y == null ? void 0 : y.id), children: /* @__PURE__ */ s(An, { children: y.name }) }) }, y.id)) }),
|
|
2359
2359
|
[ue.DATEPICKER]: /* @__PURE__ */ s(
|
|
2360
2360
|
pr,
|
|
2361
2361
|
{
|
|
@@ -2363,47 +2363,47 @@ const ia = ({
|
|
|
2363
2363
|
allowClear: !0,
|
|
2364
2364
|
format: "MMM D, YYYY",
|
|
2365
2365
|
placeholder: ["From", "To"],
|
|
2366
|
-
onChange: (
|
|
2367
|
-
if (!
|
|
2366
|
+
onChange: (y) => {
|
|
2367
|
+
if (!y)
|
|
2368
2368
|
r(
|
|
2369
2369
|
t.map(
|
|
2370
|
-
(
|
|
2371
|
-
...
|
|
2370
|
+
(z) => z.title === n.title ? {
|
|
2371
|
+
...z,
|
|
2372
2372
|
filterValue: null,
|
|
2373
2373
|
filterLabel: ""
|
|
2374
|
-
} :
|
|
2374
|
+
} : z
|
|
2375
2375
|
),
|
|
2376
2376
|
!0
|
|
2377
2377
|
);
|
|
2378
2378
|
else {
|
|
2379
|
-
const
|
|
2380
|
-
(
|
|
2381
|
-
var
|
|
2382
|
-
return
|
|
2383
|
-
|
|
2379
|
+
const z = y.map(
|
|
2380
|
+
(A, $) => {
|
|
2381
|
+
var k;
|
|
2382
|
+
return A ? (k = ne.toLocal(
|
|
2383
|
+
A,
|
|
2384
2384
|
$ === 0,
|
|
2385
|
-
$ ===
|
|
2386
|
-
)) == null ? void 0 :
|
|
2385
|
+
$ === y.length - 1
|
|
2386
|
+
)) == null ? void 0 : k.toISOString() : null;
|
|
2387
2387
|
}
|
|
2388
2388
|
);
|
|
2389
2389
|
r(
|
|
2390
2390
|
t.map(
|
|
2391
|
-
(
|
|
2392
|
-
...
|
|
2391
|
+
(A) => A.title === n.title ? {
|
|
2392
|
+
...A,
|
|
2393
2393
|
// Store the ISO strings for the API
|
|
2394
|
-
filterValue:
|
|
2394
|
+
filterValue: z,
|
|
2395
2395
|
// Keep the user-friendly label
|
|
2396
|
-
filterLabel: `${
|
|
2397
|
-
} :
|
|
2396
|
+
filterLabel: `${y[0].format("MMM D, YYYY")} → ${y[1].format("MMM D, YYYY")}`
|
|
2397
|
+
} : A
|
|
2398
2398
|
),
|
|
2399
2399
|
!0
|
|
2400
2400
|
);
|
|
2401
2401
|
}
|
|
2402
2402
|
i(!1);
|
|
2403
2403
|
},
|
|
2404
|
-
getPopupContainer: (
|
|
2405
|
-
var
|
|
2406
|
-
return ((
|
|
2404
|
+
getPopupContainer: (y) => {
|
|
2405
|
+
var z;
|
|
2406
|
+
return ((z = y == null ? void 0 : y.parentElement) == null ? void 0 : z.parentElement) ?? document.body;
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
2409
2409
|
)
|
|
@@ -2411,13 +2411,13 @@ const ia = ({
|
|
|
2411
2411
|
mt,
|
|
2412
2412
|
{
|
|
2413
2413
|
style: {
|
|
2414
|
-
border: ((
|
|
2414
|
+
border: ((G = n == null ? void 0 : n.filters) == null ? void 0 : G.type) === ue.DATEPICKER ? "none" : "inherit"
|
|
2415
2415
|
},
|
|
2416
|
-
children: D[((
|
|
2416
|
+
children: D[((N = n == null ? void 0 : n.filters) == null ? void 0 : N.type) || ue.INPUT]
|
|
2417
2417
|
}
|
|
2418
2418
|
);
|
|
2419
|
-
return /* @__PURE__ */
|
|
2420
|
-
/* @__PURE__ */ s(bt, { placement: "bottomLeft", onSelect: m, children: /* @__PURE__ */
|
|
2419
|
+
return /* @__PURE__ */ b(st, { children: [
|
|
2420
|
+
/* @__PURE__ */ s(bt, { placement: "bottomLeft", onSelect: m, children: /* @__PURE__ */ b("span", { children: [
|
|
2421
2421
|
/* @__PURE__ */ s(ur, {}),
|
|
2422
2422
|
n.title
|
|
2423
2423
|
] }) }),
|
|
@@ -2427,26 +2427,26 @@ const ia = ({
|
|
|
2427
2427
|
overlayClassName: "debug-dropdwon",
|
|
2428
2428
|
placement: "bottomLeft",
|
|
2429
2429
|
open: a,
|
|
2430
|
-
onOpenChange:
|
|
2430
|
+
onOpenChange: f,
|
|
2431
2431
|
popupRender: () => I,
|
|
2432
2432
|
trigger: ["click"],
|
|
2433
|
-
getPopupContainer: (
|
|
2434
|
-
var
|
|
2435
|
-
return ((
|
|
2433
|
+
getPopupContainer: (y) => {
|
|
2434
|
+
var z;
|
|
2435
|
+
return ((z = y == null ? void 0 : y.parentElement) == null ? void 0 : z.parentElement) ?? document.body;
|
|
2436
2436
|
},
|
|
2437
2437
|
children: /* @__PURE__ */ s("div", { children: n.filterValue ? n.filterLabel ? n.filterLabel : n.filterValue : "NotSelected" })
|
|
2438
2438
|
}
|
|
2439
2439
|
),
|
|
2440
|
-
/* @__PURE__ */ s("span", { onClick:
|
|
2440
|
+
/* @__PURE__ */ s("span", { onClick: x, children: /* @__PURE__ */ s(vt, {}) })
|
|
2441
2441
|
] });
|
|
2442
2442
|
}, da = () => {
|
|
2443
|
-
const n = E((
|
|
2443
|
+
const n = E((f) => f.filterItems), e = E((f) => f.sortItems), t = E((f) => f.setSelectedConfig), r = E((f) => f.resetStore), a = E((f) => f.selectedConfig), { deleteMyFilter: i } = Ie(), o = E((f) => f.bumpConfigsVersion), { open: l, store: d, close: c } = ye(), u = hr();
|
|
2444
2444
|
async function p() {
|
|
2445
2445
|
try {
|
|
2446
2446
|
if (!a || !i) return;
|
|
2447
2447
|
await i(a.id), t(null), o();
|
|
2448
|
-
} catch (
|
|
2449
|
-
console.log(
|
|
2448
|
+
} catch (f) {
|
|
2449
|
+
console.log(f, "Error happened deleting configuration");
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
function m() {
|
|
@@ -2460,7 +2460,7 @@ const ia = ({
|
|
|
2460
2460
|
onClick: () => {
|
|
2461
2461
|
p(), c(), r();
|
|
2462
2462
|
},
|
|
2463
|
-
children: /* @__PURE__ */
|
|
2463
|
+
children: /* @__PURE__ */ b("span", { className: "arrow-styled", children: [
|
|
2464
2464
|
"Delete",
|
|
2465
2465
|
/* @__PURE__ */ s(Ee, {})
|
|
2466
2466
|
] })
|
|
@@ -2470,21 +2470,21 @@ const ia = ({
|
|
|
2470
2470
|
}
|
|
2471
2471
|
}), l();
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2474
|
-
const
|
|
2473
|
+
function g() {
|
|
2474
|
+
const f = JSON.stringify({ filterItems: n, sortItems: e });
|
|
2475
2475
|
d({
|
|
2476
2476
|
component: ia,
|
|
2477
2477
|
componentProps: {
|
|
2478
2478
|
type: u,
|
|
2479
|
-
value:
|
|
2479
|
+
value: f,
|
|
2480
2480
|
selectedConfig: a,
|
|
2481
|
-
onSuccess: (
|
|
2482
|
-
a && t({ ...a, name:
|
|
2481
|
+
onSuccess: (x) => {
|
|
2482
|
+
a && t({ ...a, name: x }), o();
|
|
2483
2483
|
}
|
|
2484
2484
|
},
|
|
2485
2485
|
title: a ? "UpdateConfiguration" : "NameYourConfiguration",
|
|
2486
2486
|
footerOptions: {
|
|
2487
|
-
okText: /* @__PURE__ */ s(Ze, { children: /* @__PURE__ */
|
|
2487
|
+
okText: /* @__PURE__ */ s(Ze, { children: /* @__PURE__ */ b("span", { className: "arrow-styled", children: [
|
|
2488
2488
|
"Save",
|
|
2489
2489
|
/* @__PURE__ */ s(Ee, {})
|
|
2490
2490
|
] }) }),
|
|
@@ -2492,20 +2492,20 @@ const ia = ({
|
|
|
2492
2492
|
}
|
|
2493
2493
|
}), l();
|
|
2494
2494
|
}
|
|
2495
|
-
return /* @__PURE__ */
|
|
2496
|
-
e.length > 0 && /* @__PURE__ */ s(mr, { placement: "bottomLeft", children: /* @__PURE__ */ s(st, { className: "sort", children: /* @__PURE__ */
|
|
2495
|
+
return /* @__PURE__ */ b(Fn, { children: [
|
|
2496
|
+
e.length > 0 && /* @__PURE__ */ s(mr, { placement: "bottomLeft", children: /* @__PURE__ */ s(st, { className: "sort", children: /* @__PURE__ */ b("span", { children: [
|
|
2497
2497
|
e[0].title,
|
|
2498
2498
|
e[0].direction == re.ASC ? /* @__PURE__ */ s(ht, {}) : /* @__PURE__ */ s(yt, {})
|
|
2499
2499
|
] }) }) }),
|
|
2500
|
-
n.map((
|
|
2501
|
-
/* @__PURE__ */ s(bt, { placement: "bottomLeft", children: /* @__PURE__ */ s(st, { className: "add-filter", children: /* @__PURE__ */
|
|
2500
|
+
n.map((f) => /* @__PURE__ */ s(ca, { item: f }, f.title)),
|
|
2501
|
+
/* @__PURE__ */ s(bt, { placement: "bottomLeft", children: /* @__PURE__ */ s(st, { className: "add-filter", children: /* @__PURE__ */ b("span", { children: [
|
|
2502
2502
|
/* @__PURE__ */ s(Jn, {}),
|
|
2503
2503
|
"AddFilter"
|
|
2504
2504
|
] }) }) }),
|
|
2505
|
-
/* @__PURE__ */
|
|
2506
|
-
/* @__PURE__ */ s("button", { onClick:
|
|
2505
|
+
/* @__PURE__ */ b(Vn, { children: [
|
|
2506
|
+
/* @__PURE__ */ s("button", { onClick: g, children: a ? "UpdateConfiguration" : "SaveConfiguration" }),
|
|
2507
2507
|
a && /* @__PURE__ */ s("button", { onClick: m, children: "DeleteConfiguration" }),
|
|
2508
|
-
/* @__PURE__ */
|
|
2508
|
+
/* @__PURE__ */ b("button", { onClick: r, children: [
|
|
2509
2509
|
/* @__PURE__ */ s(yr, {}),
|
|
2510
2510
|
"ResetConditions"
|
|
2511
2511
|
] })
|
|
@@ -2893,10 +2893,10 @@ function ya({ rowLength: n, columnLength: e }) {
|
|
|
2893
2893
|
return Array(n).fill(null).map((t, r) => /* @__PURE__ */ s("tr", { children: Array(e).fill(null).map((a, i) => /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(Mr, { active: !0, title: !1, paragraph: { rows: 1, width: "100%" } }) }, `${r}-${i}`)) }, `skeleton-row-${r}`));
|
|
2894
2894
|
}
|
|
2895
2895
|
function ba({ subGroups: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
2896
|
-
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((a) => /* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((a) => /* @__PURE__ */ b(Jt.Fragment, { children: [
|
|
2897
|
+
/* @__PURE__ */ b("tr", { className: "sub-group-header", children: [
|
|
2898
2898
|
/* @__PURE__ */ s("td", {}),
|
|
2899
|
-
/* @__PURE__ */ s("td", { colSpan: e.length, children: /* @__PURE__ */
|
|
2899
|
+
/* @__PURE__ */ s("td", { colSpan: e.length, children: /* @__PURE__ */ b("div", { children: [
|
|
2900
2900
|
a,
|
|
2901
2901
|
" ",
|
|
2902
2902
|
/* @__PURE__ */ s("span", { children: n[a].length }),
|
|
@@ -2915,9 +2915,9 @@ function ba({ subGroups: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
|
2915
2915
|
] }, a)) });
|
|
2916
2916
|
}
|
|
2917
2917
|
function va({ label: n, colSpan: e, count: t }) {
|
|
2918
|
-
return /* @__PURE__ */
|
|
2918
|
+
return /* @__PURE__ */ b("tr", { className: "main-group-header", children: [
|
|
2919
2919
|
/* @__PURE__ */ s("td", {}),
|
|
2920
|
-
/* @__PURE__ */
|
|
2920
|
+
/* @__PURE__ */ b("td", { colSpan: e, children: [
|
|
2921
2921
|
n,
|
|
2922
2922
|
" ",
|
|
2923
2923
|
/* @__PURE__ */ s("span", { children: t })
|
|
@@ -2935,7 +2935,7 @@ function xa({
|
|
|
2935
2935
|
}) {
|
|
2936
2936
|
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((o) => {
|
|
2937
2937
|
var l;
|
|
2938
|
-
return /* @__PURE__ */
|
|
2938
|
+
return /* @__PURE__ */ b(Jt.Fragment, { children: [
|
|
2939
2939
|
/* @__PURE__ */ s(
|
|
2940
2940
|
va,
|
|
2941
2941
|
{
|
|
@@ -2970,8 +2970,8 @@ function wa({
|
|
|
2970
2970
|
totalItemCount: t,
|
|
2971
2971
|
onPaginationChange: r
|
|
2972
2972
|
}) {
|
|
2973
|
-
const [a, i] =
|
|
2974
|
-
return /* @__PURE__ */
|
|
2973
|
+
const [a, i] = V(!1);
|
|
2974
|
+
return /* @__PURE__ */ b(fa, { children: [
|
|
2975
2975
|
/* @__PURE__ */ s(
|
|
2976
2976
|
Hr,
|
|
2977
2977
|
{
|
|
@@ -2991,7 +2991,7 @@ function wa({
|
|
|
2991
2991
|
{ label: `25 ${B("Items")}`, value: 25 },
|
|
2992
2992
|
{ label: `50 ${B("Items")}`, value: 50 },
|
|
2993
2993
|
{ label: `100 ${B("Items")}`, value: 100 }
|
|
2994
|
-
]).map((o) => /* @__PURE__ */
|
|
2994
|
+
]).map((o) => /* @__PURE__ */ b(
|
|
2995
2995
|
"button",
|
|
2996
2996
|
{
|
|
2997
2997
|
onClick: () => e(o.value),
|
|
@@ -3006,7 +3006,7 @@ function wa({
|
|
|
3006
3006
|
trigger: ["click"],
|
|
3007
3007
|
open: a,
|
|
3008
3008
|
onOpenChange: i,
|
|
3009
|
-
children: /* @__PURE__ */
|
|
3009
|
+
children: /* @__PURE__ */ b("div", { className: "page-size-select-header", children: [
|
|
3010
3010
|
n.pageSize,
|
|
3011
3011
|
" ",
|
|
3012
3012
|
B("ItemsPerPage"),
|
|
@@ -3017,32 +3017,32 @@ function wa({
|
|
|
3017
3017
|
)
|
|
3018
3018
|
] });
|
|
3019
3019
|
}
|
|
3020
|
-
const Ca = (n) => /* @__PURE__ */
|
|
3020
|
+
const Ca = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.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__ */ M.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 ka({ col: n }) {
|
|
3022
|
-
const [e, t] =
|
|
3023
|
-
function d(
|
|
3022
|
+
const [e, t] = V(!1), r = E((g) => g.filterItems), a = E((g) => g.hideItems), i = E((g) => g.setFilterItems), o = E((g) => g.setSortItems), l = E((g) => g.setHideItems);
|
|
3023
|
+
function d(g, f) {
|
|
3024
3024
|
o([
|
|
3025
3025
|
{
|
|
3026
|
-
title:
|
|
3027
|
-
dataIndex:
|
|
3028
|
-
direction:
|
|
3026
|
+
title: g.title,
|
|
3027
|
+
dataIndex: g.dataIndex.charAt(0).toUpperCase() + g.dataIndex.slice(1),
|
|
3028
|
+
direction: f
|
|
3029
3029
|
}
|
|
3030
3030
|
]);
|
|
3031
3031
|
}
|
|
3032
|
-
function c(
|
|
3033
|
-
const
|
|
3032
|
+
function c(g) {
|
|
3033
|
+
const f = r.filter((x) => g.title != x.title);
|
|
3034
3034
|
i([
|
|
3035
|
-
...
|
|
3035
|
+
...f,
|
|
3036
3036
|
{
|
|
3037
|
-
...
|
|
3037
|
+
...g,
|
|
3038
3038
|
selectType: De.VALUE
|
|
3039
3039
|
}
|
|
3040
3040
|
]);
|
|
3041
3041
|
}
|
|
3042
|
-
function u(
|
|
3042
|
+
function u(g, f) {
|
|
3043
3043
|
l({
|
|
3044
3044
|
...a,
|
|
3045
|
-
[
|
|
3045
|
+
[g.dataIndex]: !0
|
|
3046
3046
|
});
|
|
3047
3047
|
}
|
|
3048
3048
|
const p = () => t(!1), m = [
|
|
@@ -3067,23 +3067,23 @@ function ka({ col: n }) {
|
|
|
3067
3067
|
we,
|
|
3068
3068
|
{
|
|
3069
3069
|
placement: "bottomLeft",
|
|
3070
|
-
popupRender: () => /* @__PURE__ */ s(ua, { children: m.map(({ icon:
|
|
3070
|
+
popupRender: () => /* @__PURE__ */ s(ua, { children: m.map(({ icon: g, text: f, action: x }) => /* @__PURE__ */ b(
|
|
3071
3071
|
"button",
|
|
3072
3072
|
{
|
|
3073
3073
|
onClick: () => {
|
|
3074
|
-
|
|
3074
|
+
x(), p();
|
|
3075
3075
|
},
|
|
3076
3076
|
children: [
|
|
3077
|
-
|
|
3078
|
-
|
|
3077
|
+
g,
|
|
3078
|
+
f
|
|
3079
3079
|
]
|
|
3080
3080
|
},
|
|
3081
|
-
|
|
3081
|
+
f
|
|
3082
3082
|
)) }),
|
|
3083
3083
|
trigger: ["click"],
|
|
3084
3084
|
open: e,
|
|
3085
3085
|
onOpenChange: t,
|
|
3086
|
-
getPopupContainer: (
|
|
3086
|
+
getPopupContainer: (g) => (g == null ? void 0 : g.parentElement) ?? document.body,
|
|
3087
3087
|
children: /* @__PURE__ */ s("th", { className: e ? "active" : "", children: /* @__PURE__ */ s("span", { children: n.title }) })
|
|
3088
3088
|
}
|
|
3089
3089
|
);
|
|
@@ -3164,15 +3164,15 @@ h(Ce)`
|
|
|
3164
3164
|
line-height: var(--typo-caption-lineHeight-medium, 18px); /* 128.571% */
|
|
3165
3165
|
letter-spacing: var(--typo-caption-spacing-medium, 0.1px);
|
|
3166
3166
|
`;
|
|
3167
|
-
const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE__ */ s(Sa, { children: /* @__PURE__ */
|
|
3167
|
+
const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE__ */ s(Sa, { children: /* @__PURE__ */ b(La, { children: [
|
|
3168
3168
|
/* @__PURE__ */ s($a, { children: n }),
|
|
3169
|
-
/* @__PURE__ */
|
|
3169
|
+
/* @__PURE__ */ b(Da, { children: [
|
|
3170
3170
|
e,
|
|
3171
3171
|
" ",
|
|
3172
3172
|
r && /* @__PURE__ */ s(Oa, { children: r })
|
|
3173
3173
|
] }),
|
|
3174
3174
|
t && t
|
|
3175
|
-
] }) }),
|
|
3175
|
+
] }) }), Ta = ({
|
|
3176
3176
|
activeTableView: n,
|
|
3177
3177
|
columns: e,
|
|
3178
3178
|
rowKey: t,
|
|
@@ -3184,9 +3184,9 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3184
3184
|
noPagination: d,
|
|
3185
3185
|
noDataProps: c
|
|
3186
3186
|
}) => {
|
|
3187
|
-
const u = E((O) => O.filters), p = E((O) => O.groupByArr), m = E((O) => O.setFilters),
|
|
3187
|
+
const u = E((O) => O.filters), p = E((O) => O.groupByArr), m = E((O) => O.setFilters), g = xe(() => p.length > 0 ? e.filter(
|
|
3188
3188
|
(O) => !p.some((L) => L.dataIndex == O.dataIndex)
|
|
3189
|
-
) : e, [e, p]), { isTableGroupped:
|
|
3189
|
+
) : e, [e, p]), { isTableGroupped: f, isTableSubGroupped: x } = xe(
|
|
3190
3190
|
() => ({
|
|
3191
3191
|
isTableGroupped: !!p[0],
|
|
3192
3192
|
isTableSubGroupped: !!p[1]
|
|
@@ -3197,8 +3197,8 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3197
3197
|
const O = It(p[0], r);
|
|
3198
3198
|
if (p[1]) {
|
|
3199
3199
|
const L = {};
|
|
3200
|
-
return Object.keys(O).forEach((
|
|
3201
|
-
L[
|
|
3200
|
+
return Object.keys(O).forEach((H) => {
|
|
3201
|
+
L[H] = It(p[1], O[H]);
|
|
3202
3202
|
}), L;
|
|
3203
3203
|
}
|
|
3204
3204
|
return O;
|
|
@@ -3212,30 +3212,30 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3212
3212
|
Page: 1
|
|
3213
3213
|
});
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3215
|
+
function S(O) {
|
|
3216
3216
|
m({
|
|
3217
3217
|
...u,
|
|
3218
3218
|
Page: O
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
3221
|
-
return /* @__PURE__ */
|
|
3222
|
-
/* @__PURE__ */
|
|
3223
|
-
n != he.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */
|
|
3224
|
-
|
|
3221
|
+
return /* @__PURE__ */ b(pa, { children: [
|
|
3222
|
+
/* @__PURE__ */ b("table", { children: [
|
|
3223
|
+
n != he.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ b("tr", { children: [
|
|
3224
|
+
g.map((O) => /* @__PURE__ */ s(ka, { col: O }, O.dataIndex)),
|
|
3225
3225
|
/* @__PURE__ */ s("th", {})
|
|
3226
3226
|
] }) }),
|
|
3227
3227
|
/* @__PURE__ */ s("tbody", { children: a ? /* @__PURE__ */ s(
|
|
3228
3228
|
ya,
|
|
3229
3229
|
{
|
|
3230
3230
|
rowLength: i.pageSize,
|
|
3231
|
-
columnLength:
|
|
3231
|
+
columnLength: g.length
|
|
3232
3232
|
}
|
|
3233
|
-
) : (D == null ? void 0 : D.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan:
|
|
3233
|
+
) : (D == null ? void 0 : D.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: g.length, children: /* @__PURE__ */ s(Ea, { ...c }) }) }) : /* @__PURE__ */ s(ae, { children: f ? /* @__PURE__ */ s(
|
|
3234
3234
|
xa,
|
|
3235
3235
|
{
|
|
3236
3236
|
dataSource: D,
|
|
3237
|
-
columns:
|
|
3238
|
-
isSubGroupped:
|
|
3237
|
+
columns: g,
|
|
3238
|
+
isSubGroupped: x,
|
|
3239
3239
|
getGroupLength: ma,
|
|
3240
3240
|
rowKey: t,
|
|
3241
3241
|
onRowClick: l
|
|
@@ -3244,7 +3244,7 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3244
3244
|
kt,
|
|
3245
3245
|
{
|
|
3246
3246
|
rows: D,
|
|
3247
|
-
columns:
|
|
3247
|
+
columns: g,
|
|
3248
3248
|
rowKey: t,
|
|
3249
3249
|
onRowClick: l
|
|
3250
3250
|
}
|
|
@@ -3256,11 +3256,11 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3256
3256
|
pagination: i,
|
|
3257
3257
|
totalItemCount: o,
|
|
3258
3258
|
onPerPageSelectChange: I,
|
|
3259
|
-
onPaginationChange:
|
|
3259
|
+
onPaginationChange: S
|
|
3260
3260
|
}
|
|
3261
3261
|
)
|
|
3262
3262
|
] });
|
|
3263
|
-
},
|
|
3263
|
+
}, za = h.div`
|
|
3264
3264
|
display: flex;
|
|
3265
3265
|
flex-direction: column;
|
|
3266
3266
|
position: fixed;
|
|
@@ -3482,7 +3482,7 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3482
3482
|
display: flex;
|
|
3483
3483
|
align-items: center;
|
|
3484
3484
|
gap: 8px;
|
|
3485
|
-
`, Pt = (n) => /* @__PURE__ */
|
|
3485
|
+
`, Pt = (n) => /* @__PURE__ */ M.createElement("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2C6.47672 2 2 6.47672 2 12C2 17.5233 6.47672 22 12 22C17.5233 22 22 17.5233 22 12C22 6.47672 17.5233 2 12 2ZM4 12C4 7.58128 7.58128 4 12 4C16.4187 4 20 7.58128 20 12C20 16.4187 16.4187 20 12 20C7.58128 20 4 16.4187 4 12Z", fill: "currentColor" }), /* @__PURE__ */ M.createElement("path", { d: "M16.207 9.20703L13.4141 12L16.207 14.793L14.793 16.207L12 13.4141L9.20703 16.207L7.79297 14.793L10.5859 12L7.79297 9.20703L9.20703 7.79297L12 10.5859L14.793 7.79297L16.207 9.20703Z", fill: "currentColor" })), Mt = (n) => /* @__PURE__ */ M.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.0013 1.66675C5.39856 1.66675 1.66797 5.39734 1.66797 10.0001C1.66797 14.6028 5.39856 18.3334 10.0013 18.3334C14.604 18.3334 18.3346 14.6028 18.3346 10.0001C18.3346 5.39734 14.604 1.66675 10.0013 1.66675ZM13.9239 8.92267C14.2493 8.59723 14.2493 8.0696 13.9239 7.74416C13.5985 7.41872 13.0708 7.41872 12.7454 7.74416L9.16797 11.3216L7.25722 9.41083C6.93179 9.08539 6.40415 9.08539 6.07871 9.41083C5.75328 9.73626 5.75328 10.2639 6.07871 10.5893L8.57871 13.0893C8.90415 13.4148 9.43179 13.4148 9.75723 13.0893L13.9239 8.92267Z", fill: "currentColor" })), vr = h.div`
|
|
3486
3486
|
display: flex;
|
|
3487
3487
|
flex-direction: column;
|
|
3488
3488
|
padding-top: 1.5rem;
|
|
@@ -3636,7 +3636,7 @@ const Ea = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3636
3636
|
color: var(--color-text-inverse-primary, #131412) !important;
|
|
3637
3637
|
border-top: 2px solid var(--color-bg-secondary, #f5f5f5) !important;
|
|
3638
3638
|
}
|
|
3639
|
-
`, St = (n) => /* @__PURE__ */
|
|
3639
|
+
`, St = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M7.16635 10.8358C7.16765 11.2949 7.54029 11.6667 7.99968 11.6667C8.45987 11.6667 8.83301 11.2936 8.83301 10.8334C8.83301 10.3715 8.45813 10 7.99901 10C7.54056 10 7.1643 10.372 7.16635 10.8358Z", fill: "#FD6C49" }), /* @__PURE__ */ M.createElement("path", { d: "M8.66634 9.00004V4.33338H7.33301V9.00004H8.66634Z", fill: "#FD6C49" }), /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.943 1.33337L11.1383 1.52921C12.2476 2.64117 13.3589 3.75126 14.4708 4.86166L14.6663 5.05698V10.9429L10.9425 14.6667H5.05687L1.33301 10.9429L1.33301 5.05723L5.05687 1.33338L10.943 1.33337ZM5.60915 2.66671L2.66634 5.60952L2.66634 10.3906L5.60915 13.3334H10.3902L13.333 10.3906V5.60977C12.3516 4.62959 11.37 3.64891 10.3898 2.66671L5.60915 2.66671Z", fill: "#FD6C49" }));
|
|
3640
3640
|
function Aa(n) {
|
|
3641
3641
|
if (!n) return n;
|
|
3642
3642
|
let e = n[0].toLowerCase();
|
|
@@ -3646,7 +3646,7 @@ function Aa(n) {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
return e;
|
|
3648
3648
|
}
|
|
3649
|
-
function
|
|
3649
|
+
function Te(n) {
|
|
3650
3650
|
return Object.entries(n).map(([e, t]) => ({ name: e.replace(/\[(\d+)\]/g, ".$1").split(".").map((a) => isNaN(a) ? Aa(a) : Number(a)), errors: t }));
|
|
3651
3651
|
}
|
|
3652
3652
|
h($e.Item)`
|
|
@@ -4027,23 +4027,23 @@ const Sr = ({
|
|
|
4027
4027
|
id: a,
|
|
4028
4028
|
setRefetchData: i
|
|
4029
4029
|
}) => {
|
|
4030
|
-
const [o, l] =
|
|
4030
|
+
const [o, l] = V(), [d, c] = V([]);
|
|
4031
4031
|
async function u() {
|
|
4032
|
-
var p, m,
|
|
4032
|
+
var p, m, g;
|
|
4033
4033
|
try {
|
|
4034
|
-
const
|
|
4035
|
-
(p =
|
|
4036
|
-
} catch (
|
|
4037
|
-
const
|
|
4038
|
-
c(
|
|
4034
|
+
const f = await e({ confirmationToken: n, code: o, id: a });
|
|
4035
|
+
(p = f == null ? void 0 : f.data) != null && p.success && (r(!1), i((x) => !x));
|
|
4036
|
+
} catch (f) {
|
|
4037
|
+
const x = Te((g = (m = f == null ? void 0 : f.response) == null ? void 0 : m.data) == null ? void 0 : g.errors);
|
|
4038
|
+
c(x), console.log(f);
|
|
4039
4039
|
}
|
|
4040
4040
|
}
|
|
4041
|
-
return /* @__PURE__ */
|
|
4042
|
-
/* @__PURE__ */ s(wt, { children: /* @__PURE__ */
|
|
4041
|
+
return /* @__PURE__ */ b("div", { children: [
|
|
4042
|
+
/* @__PURE__ */ s(wt, { children: /* @__PURE__ */ b(kr, { children: [
|
|
4043
4043
|
ee("EnterBackupCode"),
|
|
4044
4044
|
/* @__PURE__ */ s(Ke, { children: ee("BackupCodesDesc") })
|
|
4045
4045
|
] }) }),
|
|
4046
|
-
/* @__PURE__ */
|
|
4046
|
+
/* @__PURE__ */ b(Cr, { className: d.length > 0 ? "verification-error" : "", children: [
|
|
4047
4047
|
/* @__PURE__ */ s(Ke, { children: ee("BackupCode") }),
|
|
4048
4048
|
/* @__PURE__ */ s(
|
|
4049
4049
|
br,
|
|
@@ -4053,14 +4053,14 @@ const Sr = ({
|
|
|
4053
4053
|
placeholder: "xxxx-xxxx-xxxx"
|
|
4054
4054
|
}
|
|
4055
4055
|
),
|
|
4056
|
-
d.map((p) => /* @__PURE__ */
|
|
4056
|
+
d.map((p) => /* @__PURE__ */ b("span", { children: [
|
|
4057
4057
|
/* @__PURE__ */ s(St, {}),
|
|
4058
4058
|
" ",
|
|
4059
4059
|
p.errors[0]
|
|
4060
4060
|
] }, p.name)),
|
|
4061
4061
|
/* @__PURE__ */ s(Ba, { children: ee("BackupCodeSpan") })
|
|
4062
4062
|
] }),
|
|
4063
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ b(xr, { children: [
|
|
4064
4064
|
/* @__PURE__ */ s(
|
|
4065
4065
|
Ct,
|
|
4066
4066
|
{
|
|
@@ -4070,7 +4070,7 @@ const Sr = ({
|
|
|
4070
4070
|
children: oe("Back")
|
|
4071
4071
|
}
|
|
4072
4072
|
),
|
|
4073
|
-
/* @__PURE__ */ s(Ze, { onClick: u, children: /* @__PURE__ */
|
|
4073
|
+
/* @__PURE__ */ s(Ze, { onClick: u, children: /* @__PURE__ */ b("span", { className: "arrow-styled", children: [
|
|
4074
4074
|
oe("Continue"),
|
|
4075
4075
|
" ",
|
|
4076
4076
|
/* @__PURE__ */ s(Ee, {})
|
|
@@ -4124,7 +4124,7 @@ const Ya = {
|
|
|
4124
4124
|
isBlocked: i,
|
|
4125
4125
|
onBlockStateClose: o
|
|
4126
4126
|
}) => {
|
|
4127
|
-
const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ie(), { setUser: c } = Se(), [u, p] =
|
|
4127
|
+
const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ie(), { setUser: c } = Se(), [u, p] = V(""), [m, g] = V([]), [f, x] = V(!1);
|
|
4128
4128
|
function D(L) {
|
|
4129
4129
|
p(L);
|
|
4130
4130
|
}
|
|
@@ -4132,77 +4132,77 @@ const Ya = {
|
|
|
4132
4132
|
const L = l;
|
|
4133
4133
|
if (L)
|
|
4134
4134
|
try {
|
|
4135
|
-
|
|
4136
|
-
const
|
|
4137
|
-
c(
|
|
4138
|
-
} catch (
|
|
4139
|
-
if (console.log(
|
|
4140
|
-
const
|
|
4141
|
-
|
|
4135
|
+
g([]);
|
|
4136
|
+
const H = await L(t, u, a);
|
|
4137
|
+
c(H.data.value), O();
|
|
4138
|
+
} catch (H) {
|
|
4139
|
+
if (console.log(H), H.status === 400) {
|
|
4140
|
+
const j = H.response.data, _ = Te(j.errors);
|
|
4141
|
+
g(_);
|
|
4142
4142
|
}
|
|
4143
4143
|
}
|
|
4144
4144
|
}
|
|
4145
|
-
async function
|
|
4146
|
-
const
|
|
4147
|
-
if (
|
|
4145
|
+
async function S(L) {
|
|
4146
|
+
const H = d;
|
|
4147
|
+
if (H)
|
|
4148
4148
|
try {
|
|
4149
|
-
|
|
4150
|
-
const
|
|
4151
|
-
c(
|
|
4152
|
-
} catch (
|
|
4153
|
-
if (console.log(
|
|
4154
|
-
const _ =
|
|
4155
|
-
|
|
4149
|
+
g([]);
|
|
4150
|
+
const j = await H(L);
|
|
4151
|
+
c(j.data.value);
|
|
4152
|
+
} catch (j) {
|
|
4153
|
+
if (console.log(j), j.status === 400) {
|
|
4154
|
+
const _ = j.response.data, K = Te(_.errors);
|
|
4155
|
+
g(K);
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
4159
|
function O() {
|
|
4160
|
-
p(""), e(!1),
|
|
4160
|
+
p(""), e(!1), g([]);
|
|
4161
4161
|
}
|
|
4162
|
-
return i ? /* @__PURE__ */ s(Ht, { isOpen: i, onClose: o, children: /* @__PURE__ */
|
|
4163
|
-
/* @__PURE__ */
|
|
4164
|
-
/* @__PURE__ */
|
|
4162
|
+
return i ? /* @__PURE__ */ s(Ht, { isOpen: i, onClose: o, children: /* @__PURE__ */ b(Ha, { children: [
|
|
4163
|
+
/* @__PURE__ */ b(Ra, { children: [
|
|
4164
|
+
/* @__PURE__ */ b(Na, { children: [
|
|
4165
4165
|
/* @__PURE__ */ s("span", { children: B("ContactInformationBlocked") }),
|
|
4166
4166
|
/* @__PURE__ */ s("span", { onClick: o, children: /* @__PURE__ */ s(vt, {}) })
|
|
4167
4167
|
] }),
|
|
4168
4168
|
/* @__PURE__ */ s(Fa, { children: B("ContactInformationBlockedDesc") })
|
|
4169
4169
|
] }),
|
|
4170
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ b(Va, { children: [
|
|
4171
4171
|
B("TryAgain"),
|
|
4172
4172
|
/* @__PURE__ */ s(Ee, {})
|
|
4173
4173
|
] })
|
|
4174
|
-
] }) }) : /* @__PURE__ */ s(Ht, { isOpen: n, onClose: O, children:
|
|
4174
|
+
] }) }) : /* @__PURE__ */ s(Ht, { isOpen: n, onClose: O, children: f ? /* @__PURE__ */ s(
|
|
4175
4175
|
Sr,
|
|
4176
4176
|
{
|
|
4177
|
-
setBackupActivated:
|
|
4178
|
-
backupCodeEndpoint:
|
|
4177
|
+
setBackupActivated: x,
|
|
4178
|
+
backupCodeEndpoint: S,
|
|
4179
4179
|
confirmationToken: t,
|
|
4180
4180
|
id: a,
|
|
4181
4181
|
setVisible: e
|
|
4182
4182
|
}
|
|
4183
|
-
) : /* @__PURE__ */
|
|
4183
|
+
) : /* @__PURE__ */ b(vr, { children: [
|
|
4184
4184
|
/* @__PURE__ */ s("h2", { children: ee("EnterVerificationCode") }),
|
|
4185
4185
|
/* @__PURE__ */ s("p", { children: r !== void 0 ? B(Ya[r]) : "" }),
|
|
4186
|
-
r !== 1 && /* @__PURE__ */
|
|
4187
|
-
/* @__PURE__ */
|
|
4186
|
+
r !== 1 && /* @__PURE__ */ b(ae, { children: [
|
|
4187
|
+
/* @__PURE__ */ b(
|
|
4188
4188
|
Pa,
|
|
4189
4189
|
{
|
|
4190
4190
|
className: m.length > 0 ? "verification-error" : "",
|
|
4191
4191
|
children: [
|
|
4192
4192
|
/* @__PURE__ */ s(tt.OTP, { value: u, onChange: D }),
|
|
4193
|
-
/* @__PURE__ */
|
|
4193
|
+
/* @__PURE__ */ b(Ma, { children: [
|
|
4194
4194
|
ee("DidnReceiveCode"),
|
|
4195
4195
|
" ",
|
|
4196
|
-
/* @__PURE__ */ s(wr, { onClick: () =>
|
|
4196
|
+
/* @__PURE__ */ s(wr, { onClick: () => x(!0), children: ee("EnterBackupCode") })
|
|
4197
4197
|
] }),
|
|
4198
|
-
m.map((L) => /* @__PURE__ */
|
|
4198
|
+
m.map((L) => /* @__PURE__ */ b("span", { children: [
|
|
4199
4199
|
/* @__PURE__ */ s(St, {}),
|
|
4200
4200
|
L.errors[0]
|
|
4201
4201
|
] }, L.name))
|
|
4202
4202
|
]
|
|
4203
4203
|
}
|
|
4204
4204
|
),
|
|
4205
|
-
/* @__PURE__ */
|
|
4205
|
+
/* @__PURE__ */ b(
|
|
4206
4206
|
"button",
|
|
4207
4207
|
{
|
|
4208
4208
|
onClick: I,
|
|
@@ -4216,20 +4216,20 @@ const Ya = {
|
|
|
4216
4216
|
] })
|
|
4217
4217
|
] }) });
|
|
4218
4218
|
}, Za = () => {
|
|
4219
|
-
const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Se(), [r, a] =
|
|
4220
|
-
var m,
|
|
4219
|
+
const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Se(), [r, a] = V(!1), [i, o] = V(null), [l, d] = V(!1), c = async () => {
|
|
4220
|
+
var m, g, f, x, D, I, S;
|
|
4221
4221
|
if (n)
|
|
4222
4222
|
try {
|
|
4223
4223
|
d(!1);
|
|
4224
4224
|
const O = await n();
|
|
4225
4225
|
o({
|
|
4226
|
-
token: (
|
|
4227
|
-
id: (
|
|
4226
|
+
token: (g = (m = O.data) == null ? void 0 : m.value) == null ? void 0 : g.token,
|
|
4227
|
+
id: (x = (f = O.data) == null ? void 0 : f.value) == null ? void 0 : x.id,
|
|
4228
4228
|
mfaType: (I = (D = O.data) == null ? void 0 : D.value) == null ? void 0 : I.mfaType
|
|
4229
4229
|
}), a(!0);
|
|
4230
4230
|
} catch (O) {
|
|
4231
|
-
const L = (
|
|
4232
|
-
(
|
|
4231
|
+
const L = (S = O.response) == null ? void 0 : S.data, H = L == null ? void 0 : L.errors;
|
|
4232
|
+
(H && Array.isArray(H[""]) && H[""][0] === "TooManyAttempts" || H[""][0] === "IsNotAllowed") && d(!0);
|
|
4233
4233
|
}
|
|
4234
4234
|
};
|
|
4235
4235
|
async function u() {
|
|
@@ -4260,32 +4260,32 @@ const Ya = {
|
|
|
4260
4260
|
};
|
|
4261
4261
|
}, qa = ({ close: n }) => {
|
|
4262
4262
|
var I;
|
|
4263
|
-
const { user: e } = Se(), t = E((
|
|
4264
|
-
function
|
|
4265
|
-
const O = t.find((L) => L.dataIndex ==
|
|
4263
|
+
const { user: e } = Se(), t = E((S) => S.columns), r = E((S) => S.groupByArr), a = E((S) => S.hideItems), i = E((S) => S.activeTableView), o = E((S) => S.setActiveTableView), l = E((S) => S.setGroupByArr), d = E((S) => S.setHideItems), c = E((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: m } = Za();
|
|
4264
|
+
function g(S) {
|
|
4265
|
+
const O = t.find((L) => L.dataIndex == S.value);
|
|
4266
4266
|
l([O]);
|
|
4267
4267
|
}
|
|
4268
|
-
function
|
|
4268
|
+
function f(S, O) {
|
|
4269
4269
|
d({
|
|
4270
4270
|
...a,
|
|
4271
|
-
[
|
|
4271
|
+
[S.dataIndex]: !!O
|
|
4272
4272
|
});
|
|
4273
4273
|
}
|
|
4274
|
-
function
|
|
4275
|
-
const L = new Date(
|
|
4276
|
-
return K > 0 &&
|
|
4274
|
+
function x(S, O) {
|
|
4275
|
+
const L = new Date(S), H = new Date(O), j = Math.abs(H.getTime() - L.getTime()), _ = Math.floor(j / (1e3 * 60)) % 60, K = Math.floor(j / (1e3 * 60 * 60)) % 24, G = [];
|
|
4276
|
+
return K > 0 && G.push(`${K}h`), _ > 0 && G.push(`${_}m`), G.join(" ");
|
|
4277
4277
|
}
|
|
4278
4278
|
function D() {
|
|
4279
4279
|
c(), n();
|
|
4280
4280
|
}
|
|
4281
|
-
return /* @__PURE__ */
|
|
4282
|
-
/* @__PURE__ */
|
|
4281
|
+
return /* @__PURE__ */ b(za, { children: [
|
|
4282
|
+
/* @__PURE__ */ b("header", { children: [
|
|
4283
4283
|
/* @__PURE__ */ s("span", { children: B("ViewOptions") }),
|
|
4284
4284
|
/* @__PURE__ */ s("button", { onClick: n, children: /* @__PURE__ */ s(Pt, {}) })
|
|
4285
4285
|
] }),
|
|
4286
|
-
/* @__PURE__ */
|
|
4287
|
-
/* @__PURE__ */
|
|
4288
|
-
/* @__PURE__ */
|
|
4286
|
+
/* @__PURE__ */ b("div", { className: "setting-sidebar-content", children: [
|
|
4287
|
+
/* @__PURE__ */ b("ul", { className: "table-view-list", children: [
|
|
4288
|
+
/* @__PURE__ */ b(
|
|
4289
4289
|
"li",
|
|
4290
4290
|
{
|
|
4291
4291
|
className: i == he.TABLE ? "active" : "",
|
|
@@ -4296,7 +4296,7 @@ const Ya = {
|
|
|
4296
4296
|
]
|
|
4297
4297
|
}
|
|
4298
4298
|
),
|
|
4299
|
-
/* @__PURE__ */
|
|
4299
|
+
/* @__PURE__ */ b(
|
|
4300
4300
|
"li",
|
|
4301
4301
|
{
|
|
4302
4302
|
className: i == he.LIST ? "active" : "",
|
|
@@ -4308,53 +4308,53 @@ const Ya = {
|
|
|
4308
4308
|
}
|
|
4309
4309
|
)
|
|
4310
4310
|
] }),
|
|
4311
|
-
/* @__PURE__ */ s("ul", { className: "grouping-list", children: /* @__PURE__ */
|
|
4311
|
+
/* @__PURE__ */ s("ul", { className: "grouping-list", children: /* @__PURE__ */ b("li", { children: [
|
|
4312
4312
|
/* @__PURE__ */ s("span", { children: B("Grouping") }),
|
|
4313
4313
|
/* @__PURE__ */ s(
|
|
4314
4314
|
ut,
|
|
4315
4315
|
{
|
|
4316
4316
|
className: "teeest",
|
|
4317
4317
|
showSearch: !0,
|
|
4318
|
-
options: t.map((
|
|
4319
|
-
value:
|
|
4320
|
-
label:
|
|
4318
|
+
options: t.map((S) => ({
|
|
4319
|
+
value: S.dataIndex,
|
|
4320
|
+
label: S.title
|
|
4321
4321
|
})),
|
|
4322
4322
|
labelInValue: !0,
|
|
4323
|
-
placeholder: /* @__PURE__ */
|
|
4323
|
+
placeholder: /* @__PURE__ */ b(Ia, { children: [
|
|
4324
4324
|
/* @__PURE__ */ s(Ye, {}),
|
|
4325
4325
|
B("NoGrouping")
|
|
4326
4326
|
] }),
|
|
4327
4327
|
value: ((I = r[0]) == null ? void 0 : I.dataIndex) || null,
|
|
4328
|
-
onChange:
|
|
4328
|
+
onChange: g
|
|
4329
4329
|
}
|
|
4330
4330
|
)
|
|
4331
4331
|
] }) }),
|
|
4332
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ b("div", { className: "properties-list", children: [
|
|
4333
4333
|
/* @__PURE__ */ s("span", { children: B("ShowProperties") }),
|
|
4334
|
-
/* @__PURE__ */ s("ul", { children: t.map((
|
|
4334
|
+
/* @__PURE__ */ s("ul", { children: t.map((S) => /* @__PURE__ */ s(
|
|
4335
4335
|
"li",
|
|
4336
4336
|
{
|
|
4337
|
-
className: a[
|
|
4338
|
-
onClick: () =>
|
|
4339
|
-
children:
|
|
4337
|
+
className: a[S.dataIndex] === !0 ? "hide" : "",
|
|
4338
|
+
onClick: () => f(S, a[S.dataIndex] !== !0),
|
|
4339
|
+
children: S.title
|
|
4340
4340
|
},
|
|
4341
|
-
|
|
4341
|
+
S.dataIndex
|
|
4342
4342
|
)) })
|
|
4343
4343
|
] })
|
|
4344
4344
|
] }),
|
|
4345
|
-
/* @__PURE__ */
|
|
4346
|
-
e != null && e.sensitiveDataExpiration && new Date(e == null ? void 0 : e.sensitiveDataExpiration) > /* @__PURE__ */ new Date() ? /* @__PURE__ */
|
|
4345
|
+
/* @__PURE__ */ b("footer", { children: [
|
|
4346
|
+
e != null && e.sensitiveDataExpiration && new Date(e == null ? void 0 : e.sensitiveDataExpiration) > /* @__PURE__ */ new Date() ? /* @__PURE__ */ b("button", { onClick: p, children: [
|
|
4347
4347
|
B("HideContactInfo"),
|
|
4348
4348
|
" •",
|
|
4349
4349
|
" ",
|
|
4350
|
-
|
|
4350
|
+
x(new Date(e == null ? void 0 : e.sensitiveDataExpiration), /* @__PURE__ */ new Date()),
|
|
4351
4351
|
/* @__PURE__ */ s(Pt, {})
|
|
4352
|
-
] }) : /* @__PURE__ */
|
|
4352
|
+
] }) : /* @__PURE__ */ b("button", { onClick: u, children: [
|
|
4353
4353
|
oe("ShowContactInformation"),
|
|
4354
4354
|
" ",
|
|
4355
4355
|
/* @__PURE__ */ s(Mt, {})
|
|
4356
4356
|
] }),
|
|
4357
|
-
/* @__PURE__ */
|
|
4357
|
+
/* @__PURE__ */ b("button", { onClick: D, children: [
|
|
4358
4358
|
oe("ResetAllOptions"),
|
|
4359
4359
|
/* @__PURE__ */ s(yr, {})
|
|
4360
4360
|
] })
|
|
@@ -4375,58 +4375,58 @@ const Ya = {
|
|
|
4375
4375
|
CustomFilters: u,
|
|
4376
4376
|
initialFilterValues: p,
|
|
4377
4377
|
tableAdditionalFields: m,
|
|
4378
|
-
createIsModal:
|
|
4379
|
-
editButton:
|
|
4380
|
-
noPagination:
|
|
4378
|
+
createIsModal: g,
|
|
4379
|
+
editButton: f,
|
|
4380
|
+
noPagination: x,
|
|
4381
4381
|
noDataProps: D,
|
|
4382
4382
|
exportButton: I,
|
|
4383
|
-
hasSelect:
|
|
4383
|
+
hasSelect: S,
|
|
4384
4384
|
selectProps: O,
|
|
4385
4385
|
TableComponent: L,
|
|
4386
|
-
tableProps:
|
|
4387
|
-
noNeedSidebarResponsiveButton:
|
|
4386
|
+
tableProps: H = {},
|
|
4387
|
+
noNeedSidebarResponsiveButton: j,
|
|
4388
4388
|
loadedData: _ = () => {
|
|
4389
4389
|
}
|
|
4390
4390
|
}) => {
|
|
4391
4391
|
var J, ce, se;
|
|
4392
|
-
const { user: K } = Se(),
|
|
4393
|
-
() => e({ ...
|
|
4394
|
-
[
|
|
4392
|
+
const { user: K } = Se(), G = E((Z) => Z.filters), N = E((Z) => Z.filterItems), y = E((Z) => Z.sortItems), z = E((Z) => Z.hideItems), A = E((Z) => Z.activeTableView), $ = E((Z) => Z.setColumns), k = E((Z) => Z.setHasCreateBtn), v = E((Z) => Z.setHasSelect), w = E((Z) => Z.setCheckedValue), { response: C, loading: T } = sr(
|
|
4393
|
+
() => e({ ...G, ...p }),
|
|
4394
|
+
[G, K, t]
|
|
4395
4395
|
);
|
|
4396
4396
|
In(), Y(() => {
|
|
4397
|
-
|
|
4398
|
-
}, [
|
|
4399
|
-
const [
|
|
4397
|
+
C != null && C.data && _(C.data);
|
|
4398
|
+
}, [C, _]);
|
|
4399
|
+
const [P, F] = V(!1), U = et(null), W = Pn(U), q = xe(() => n.filter((de) => z[de.dataIndex] !== !0), [n, z]);
|
|
4400
4400
|
return Y(() => {
|
|
4401
|
-
|
|
4402
|
-
}, [
|
|
4401
|
+
k(r || !1), v(S || !1);
|
|
4402
|
+
}, [S]), Y(() => {
|
|
4403
4403
|
$(n);
|
|
4404
4404
|
}, [n]), Y(() => {
|
|
4405
|
-
|
|
4406
|
-
}, [l]), /* @__PURE__ */
|
|
4407
|
-
/* @__PURE__ */
|
|
4405
|
+
w(l);
|
|
4406
|
+
}, [l]), /* @__PURE__ */ b(Hn, { children: [
|
|
4407
|
+
/* @__PURE__ */ b(Nn, { ref: U, children: [
|
|
4408
4408
|
/* @__PURE__ */ s(
|
|
4409
4409
|
qn,
|
|
4410
4410
|
{
|
|
4411
|
-
noNeedSidebarResponsiveButton:
|
|
4412
|
-
hasSelect:
|
|
4411
|
+
noNeedSidebarResponsiveButton: j,
|
|
4412
|
+
hasSelect: S,
|
|
4413
4413
|
selectProps: O,
|
|
4414
4414
|
exportButton: I,
|
|
4415
|
-
setisSettingPopupVisible:
|
|
4415
|
+
setisSettingPopupVisible: F,
|
|
4416
4416
|
CustomFilters: u,
|
|
4417
4417
|
tableAdditionalFields: m,
|
|
4418
|
-
createIsModal:
|
|
4418
|
+
createIsModal: g,
|
|
4419
4419
|
GridPageTopLeftComponent: a
|
|
4420
4420
|
}
|
|
4421
4421
|
),
|
|
4422
4422
|
i,
|
|
4423
|
-
(
|
|
4423
|
+
(N.length > 0 || y.length > 0) && /* @__PURE__ */ s(da, {})
|
|
4424
4424
|
] }),
|
|
4425
4425
|
/* @__PURE__ */ s(Un, { height: `calc(100vh - ${`${W}px`})`, children: L ? /* @__PURE__ */ s(
|
|
4426
4426
|
L,
|
|
4427
4427
|
{
|
|
4428
|
-
dataSource: ((J =
|
|
4429
|
-
...
|
|
4428
|
+
dataSource: ((J = C == null ? void 0 : C.data) == null ? void 0 : J.items) || [],
|
|
4429
|
+
...H,
|
|
4430
4430
|
rowKey: d || "id",
|
|
4431
4431
|
columns: [
|
|
4432
4432
|
{
|
|
@@ -4437,17 +4437,17 @@ const Ya = {
|
|
|
4437
4437
|
],
|
|
4438
4438
|
loading: T,
|
|
4439
4439
|
pagination: {
|
|
4440
|
-
current:
|
|
4441
|
-
pageSize:
|
|
4440
|
+
current: G.Page,
|
|
4441
|
+
pageSize: G.PageSize,
|
|
4442
4442
|
items: c == null ? void 0 : c.items
|
|
4443
4443
|
}
|
|
4444
4444
|
}
|
|
4445
4445
|
) : /* @__PURE__ */ s(
|
|
4446
|
-
|
|
4446
|
+
Ta,
|
|
4447
4447
|
{
|
|
4448
|
-
noPagination:
|
|
4449
|
-
editButton:
|
|
4450
|
-
createIsModal:
|
|
4448
|
+
noPagination: x,
|
|
4449
|
+
editButton: f,
|
|
4450
|
+
createIsModal: g,
|
|
4451
4451
|
rowKey: d || "id",
|
|
4452
4452
|
columns: [
|
|
4453
4453
|
{
|
|
@@ -4456,23 +4456,23 @@ const Ya = {
|
|
|
4456
4456
|
},
|
|
4457
4457
|
...q
|
|
4458
4458
|
],
|
|
4459
|
-
dataSource: ((ce =
|
|
4459
|
+
dataSource: ((ce = C == null ? void 0 : C.data) == null ? void 0 : ce.items) || [],
|
|
4460
4460
|
loading: T,
|
|
4461
4461
|
pagination: {
|
|
4462
|
-
current:
|
|
4463
|
-
pageSize:
|
|
4462
|
+
current: G.Page,
|
|
4463
|
+
pageSize: G.PageSize,
|
|
4464
4464
|
items: c == null ? void 0 : c.items
|
|
4465
4465
|
},
|
|
4466
|
-
activeTableView:
|
|
4467
|
-
totalItemCount: ((se =
|
|
4466
|
+
activeTableView: A,
|
|
4467
|
+
totalItemCount: ((se = C == null ? void 0 : C.data) == null ? void 0 : se.totalItemCount) || 0,
|
|
4468
4468
|
onRowClick: o,
|
|
4469
4469
|
noDataProps: D || null
|
|
4470
4470
|
}
|
|
4471
4471
|
) }),
|
|
4472
|
-
|
|
4472
|
+
P && /* @__PURE__ */ s(qa, { close: () => F(!1) })
|
|
4473
4473
|
] });
|
|
4474
|
-
}, Eo = (n) => /* @__PURE__ */ s(
|
|
4475
|
-
const n = ye((
|
|
4474
|
+
}, Eo = (n) => /* @__PURE__ */ s(zn, { children: /* @__PURE__ */ s(Ja, { ...n }) }), To = () => {
|
|
4475
|
+
const n = ye((x) => x.isOpen), e = ye((x) => x.options), t = ye((x) => x.close), r = ze();
|
|
4476
4476
|
if (Y(() => {
|
|
4477
4477
|
n && t();
|
|
4478
4478
|
}, [r.pathname]), !e || !n) return null;
|
|
@@ -4486,32 +4486,32 @@ const Ya = {
|
|
|
4486
4486
|
showCloseButton: u,
|
|
4487
4487
|
onOk: p,
|
|
4488
4488
|
onCancel: m
|
|
4489
|
-
} = e,
|
|
4489
|
+
} = e, g = () => {
|
|
4490
4490
|
m == null || m();
|
|
4491
|
-
},
|
|
4491
|
+
}, f = () => {
|
|
4492
4492
|
p == null || p();
|
|
4493
4493
|
};
|
|
4494
|
-
return /* @__PURE__ */
|
|
4494
|
+
return /* @__PURE__ */ b(
|
|
4495
4495
|
xt,
|
|
4496
4496
|
{
|
|
4497
4497
|
centered: !0,
|
|
4498
|
-
title: a || u ? /* @__PURE__ */
|
|
4498
|
+
title: a || u ? /* @__PURE__ */ b(Xn, { children: [
|
|
4499
4499
|
/* @__PURE__ */ s("span", { children: a }),
|
|
4500
4500
|
u && /* @__PURE__ */ s(ea, { onClick: t, children: /* @__PURE__ */ s(vt, {}) })
|
|
4501
4501
|
] }) : void 0,
|
|
4502
4502
|
...l,
|
|
4503
4503
|
children: [
|
|
4504
4504
|
i && /* @__PURE__ */ s(i, { ...o }),
|
|
4505
|
-
!c && /* @__PURE__ */
|
|
4506
|
-
/* @__PURE__ */ s(Ct, { onClick:
|
|
4505
|
+
!c && /* @__PURE__ */ b(ta, { children: [
|
|
4506
|
+
/* @__PURE__ */ s(Ct, { onClick: g, children: d == null ? void 0 : d.cancelText }),
|
|
4507
4507
|
/* @__PURE__ */ s(
|
|
4508
4508
|
ra,
|
|
4509
4509
|
{
|
|
4510
|
-
onClick:
|
|
4510
|
+
onClick: f,
|
|
4511
4511
|
role: "button",
|
|
4512
4512
|
tabIndex: 0,
|
|
4513
|
-
onKeyDown: (
|
|
4514
|
-
(
|
|
4513
|
+
onKeyDown: (x) => {
|
|
4514
|
+
(x.key === "Enter" || x.key === " ") && f();
|
|
4515
4515
|
},
|
|
4516
4516
|
children: d == null ? void 0 : d.okText
|
|
4517
4517
|
}
|
|
@@ -4520,7 +4520,7 @@ const Ya = {
|
|
|
4520
4520
|
]
|
|
4521
4521
|
}
|
|
4522
4522
|
);
|
|
4523
|
-
},
|
|
4523
|
+
}, zo = ({
|
|
4524
4524
|
displayAddRuleModal: n,
|
|
4525
4525
|
onClose: e,
|
|
4526
4526
|
title: t,
|
|
@@ -4613,8 +4613,8 @@ const Ya = {
|
|
|
4613
4613
|
backButton: a = /* @__PURE__ */ s(ei, {})
|
|
4614
4614
|
}) => {
|
|
4615
4615
|
const i = ke();
|
|
4616
|
-
return /* @__PURE__ */
|
|
4617
|
-
/* @__PURE__ */
|
|
4616
|
+
return /* @__PURE__ */ b(Qa, { className: r || "", children: [
|
|
4617
|
+
/* @__PURE__ */ b("div", { className: "page-starter", children: [
|
|
4618
4618
|
e ? /* @__PURE__ */ s("div", { className: "icon", children: e }) : /* @__PURE__ */ s(Xa, { className: "icon", onClick: () => i(-1), children: a }),
|
|
4619
4619
|
/* @__PURE__ */ s(ti, { items: n })
|
|
4620
4620
|
] }),
|
|
@@ -4634,92 +4634,93 @@ const ni = {
|
|
|
4634
4634
|
id: r,
|
|
4635
4635
|
setRefetchData: a,
|
|
4636
4636
|
setVisible: i,
|
|
4637
|
-
visible: o
|
|
4637
|
+
visible: o,
|
|
4638
|
+
confirmTwoFactor: l
|
|
4638
4639
|
}) => {
|
|
4639
|
-
const { confirmTwoFactor:
|
|
4640
|
-
async function
|
|
4641
|
-
var z,
|
|
4642
|
-
const
|
|
4643
|
-
if (!(!
|
|
4640
|
+
const { confirmTwoFactor: d, resendOTP: c, confirmTwoFactorBackupCode: u } = Ie(), p = l ?? d, [m, g] = V(""), [f, x] = V(!0), [D, I] = V(60), { close: S } = ye(), [O, L] = V([]), [H, j] = V(!1);
|
|
4641
|
+
async function _() {
|
|
4642
|
+
var z, A, $;
|
|
4643
|
+
const y = p;
|
|
4644
|
+
if (!(!m || !y))
|
|
4644
4645
|
try {
|
|
4645
|
-
const
|
|
4646
|
-
(z =
|
|
4647
|
-
} catch (
|
|
4648
|
-
const
|
|
4649
|
-
|
|
4646
|
+
const k = await y({ confirmationToken: n, code: m, id: r });
|
|
4647
|
+
(z = k == null ? void 0 : k.data) != null && z.success && (i(!1), a && a((v) => !v), S());
|
|
4648
|
+
} catch (k) {
|
|
4649
|
+
const v = Te(($ = (A = k == null ? void 0 : k.response) == null ? void 0 : A.data) == null ? void 0 : $.errors);
|
|
4650
|
+
L(v), console.log("Error in Save OTP", k);
|
|
4650
4651
|
}
|
|
4651
4652
|
}
|
|
4652
|
-
async function
|
|
4653
|
-
const
|
|
4654
|
-
if (
|
|
4653
|
+
async function K() {
|
|
4654
|
+
const y = c;
|
|
4655
|
+
if (y)
|
|
4655
4656
|
try {
|
|
4656
|
-
const z = await
|
|
4657
|
-
z.data.success && (e(z),
|
|
4657
|
+
const z = await y(n, r);
|
|
4658
|
+
z.data.success && (e(z), x(!0), I(60));
|
|
4658
4659
|
} catch (z) {
|
|
4659
4660
|
console.log("Error in OTP resend", z);
|
|
4660
4661
|
}
|
|
4661
4662
|
}
|
|
4662
|
-
function
|
|
4663
|
+
function G() {
|
|
4663
4664
|
i(!1);
|
|
4664
4665
|
}
|
|
4665
|
-
function
|
|
4666
|
-
|
|
4666
|
+
function N(y) {
|
|
4667
|
+
g(y);
|
|
4667
4668
|
}
|
|
4668
4669
|
return Y(() => {
|
|
4669
|
-
if (!
|
|
4670
|
-
const
|
|
4671
|
-
|
|
4670
|
+
if (!f) return;
|
|
4671
|
+
const y = setInterval(() => {
|
|
4672
|
+
I((z) => z <= 1 ? (clearInterval(y), x(!1), 0) : z - 1);
|
|
4672
4673
|
}, 1e3);
|
|
4673
|
-
return () => clearInterval(
|
|
4674
|
-
}, [
|
|
4674
|
+
return () => clearInterval(y);
|
|
4675
|
+
}, [f]), /* @__PURE__ */ s(xt, { open: o, onCancel: G, footer: [null], children: n ? /* @__PURE__ */ s(ae, { children: H ? /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(
|
|
4675
4676
|
Sr,
|
|
4676
4677
|
{
|
|
4677
|
-
setBackupActivated:
|
|
4678
|
-
backupCodeEndpoint:
|
|
4678
|
+
setBackupActivated: j,
|
|
4679
|
+
backupCodeEndpoint: u,
|
|
4679
4680
|
setVisible: i,
|
|
4680
4681
|
id: r,
|
|
4681
4682
|
setRefetchData: a,
|
|
4682
4683
|
confirmationToken: n
|
|
4683
4684
|
}
|
|
4684
|
-
) }) : /* @__PURE__ */
|
|
4685
|
-
/* @__PURE__ */ s(wt, { children: /* @__PURE__ */
|
|
4685
|
+
) }) : /* @__PURE__ */ b(ae, { children: [
|
|
4686
|
+
/* @__PURE__ */ s(wt, { children: /* @__PURE__ */ b(kr, { children: [
|
|
4686
4687
|
ee("EnterVerificationCode"),
|
|
4687
4688
|
/* @__PURE__ */ s(Ke, { children: ee(ni[t]) })
|
|
4688
4689
|
] }) }),
|
|
4689
|
-
/* @__PURE__ */
|
|
4690
|
+
/* @__PURE__ */ b(
|
|
4690
4691
|
Cr,
|
|
4691
4692
|
{
|
|
4692
|
-
className:
|
|
4693
|
+
className: O.length > 0 ? "verification-error" : "",
|
|
4693
4694
|
children: [
|
|
4694
|
-
/* @__PURE__ */ s(tt.OTP, { value:
|
|
4695
|
-
|
|
4695
|
+
/* @__PURE__ */ s(tt.OTP, { value: m, onChange: N }),
|
|
4696
|
+
O.map((y) => /* @__PURE__ */ b("span", { children: [
|
|
4696
4697
|
/* @__PURE__ */ s(St, {}),
|
|
4697
|
-
|
|
4698
|
-
] },
|
|
4699
|
-
/* @__PURE__ */
|
|
4698
|
+
y.errors[0]
|
|
4699
|
+
] }, y.name)),
|
|
4700
|
+
/* @__PURE__ */ b(ja, { children: [
|
|
4700
4701
|
ee("DidnReceiveCode"),
|
|
4701
4702
|
" ",
|
|
4702
|
-
/* @__PURE__ */ s(wr, { onClick: () =>
|
|
4703
|
+
/* @__PURE__ */ s(wr, { onClick: () => j(!0), children: ee("EnterBackupCode") })
|
|
4703
4704
|
] })
|
|
4704
4705
|
]
|
|
4705
4706
|
}
|
|
4706
4707
|
),
|
|
4707
|
-
/* @__PURE__ */
|
|
4708
|
+
/* @__PURE__ */ b(xr, { children: [
|
|
4708
4709
|
t !== lt.TOTP && /* @__PURE__ */ s(
|
|
4709
4710
|
Ct,
|
|
4710
4711
|
{
|
|
4711
|
-
disabled:
|
|
4712
|
-
onClick:
|
|
4713
|
-
children:
|
|
4712
|
+
disabled: f,
|
|
4713
|
+
onClick: K,
|
|
4714
|
+
children: f ? `${ee("ResendAvailable")} ${D} ${B("Second")}` : `${ee("Resend")}`
|
|
4714
4715
|
}
|
|
4715
4716
|
),
|
|
4716
|
-
/* @__PURE__ */
|
|
4717
|
+
/* @__PURE__ */ b(
|
|
4717
4718
|
Ze,
|
|
4718
4719
|
{
|
|
4719
|
-
onClick:
|
|
4720
|
-
disabled: (
|
|
4720
|
+
onClick: _,
|
|
4721
|
+
disabled: (m == null ? void 0 : m.length) !== 6 && t !== lt.TOTP,
|
|
4721
4722
|
children: [
|
|
4722
|
-
/* @__PURE__ */
|
|
4723
|
+
/* @__PURE__ */ b("span", { children: [
|
|
4723
4724
|
" ",
|
|
4724
4725
|
oe("Continue")
|
|
4725
4726
|
] }),
|
|
@@ -4861,11 +4862,11 @@ const ii = h(rr)`
|
|
|
4861
4862
|
flex-direction: column;
|
|
4862
4863
|
padding: 1rem;
|
|
4863
4864
|
margin-bottom: 2px;
|
|
4864
|
-
`, Nt = () => /* @__PURE__ */
|
|
4865
|
+
`, Nt = () => /* @__PURE__ */ b(ae, { children: [
|
|
4865
4866
|
/* @__PURE__ */ s(Rt, { width: "80%" }),
|
|
4866
4867
|
/* @__PURE__ */ s(Rt, { width: "60%" })
|
|
4867
|
-
] }), Ho = () => /* @__PURE__ */
|
|
4868
|
-
/* @__PURE__ */ s(oi, { children: /* @__PURE__ */
|
|
4868
|
+
] }), Ho = () => /* @__PURE__ */ b(ci, { children: [
|
|
4869
|
+
/* @__PURE__ */ s(oi, { children: /* @__PURE__ */ b("div", { children: [
|
|
4869
4870
|
/* @__PURE__ */ s("h2", { children: $t("ComingSoon") }),
|
|
4870
4871
|
/* @__PURE__ */ s("p", { children: $t("ComingSoonDesc") })
|
|
4871
4872
|
] }) }),
|
|
@@ -4873,10 +4874,10 @@ const ii = h(rr)`
|
|
|
4873
4874
|
/* @__PURE__ */ s(pe, {}),
|
|
4874
4875
|
/* @__PURE__ */ s(di, { children: [...Array(7)].map((n, e) => /* @__PURE__ */ s(pi, {}, e)) }),
|
|
4875
4876
|
/* @__PURE__ */ s(nt, { children: [...Array(5)].map((n, e) => /* @__PURE__ */ s(qe, { children: /* @__PURE__ */ s(Nt, {}) }, e)) }),
|
|
4876
|
-
/* @__PURE__ */
|
|
4877
|
+
/* @__PURE__ */ b(ui, { children: [
|
|
4877
4878
|
/* @__PURE__ */ s(pe, { width: "20%", height: "18px", marginbottom: "10px" }),
|
|
4878
4879
|
/* @__PURE__ */ s(pe, { width: "20%", height: "18px", marginbottom: "20px" }),
|
|
4879
|
-
/* @__PURE__ */
|
|
4880
|
+
/* @__PURE__ */ b(nt, { children: [
|
|
4880
4881
|
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10" }),
|
|
4881
4882
|
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10" }),
|
|
4882
4883
|
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10" }),
|
|
@@ -5007,7 +5008,7 @@ const ii = h(rr)`
|
|
|
5007
5008
|
}
|
|
5008
5009
|
}
|
|
5009
5010
|
}
|
|
5010
|
-
`, gi = (n) => /* @__PURE__ */
|
|
5011
|
+
`, gi = (n) => /* @__PURE__ */ M.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ M.createElement("path", { d: "M8.0001 5.72363L11.6096 9.33311L10.6668 10.2759L8.0001 7.60925L5.33343 10.2759L4.39062 9.33311L8.0001 5.72363Z", fill: "currentColor" })), Ro = ({
|
|
5011
5012
|
rowKey: n,
|
|
5012
5013
|
CustomExpandableRow: e,
|
|
5013
5014
|
columns: t,
|
|
@@ -5019,12 +5020,12 @@ const ii = h(rr)`
|
|
|
5019
5020
|
loading: d,
|
|
5020
5021
|
pagination: c
|
|
5021
5022
|
}) => {
|
|
5022
|
-
const [u, p] =
|
|
5023
|
+
const [u, p] = V([]), m = t || r;
|
|
5023
5024
|
Y(() => {
|
|
5024
|
-
o && o.length > 0 && p((
|
|
5025
|
+
o && o.length > 0 && p((f) => [...o, ...f]);
|
|
5025
5026
|
}, [o]);
|
|
5026
|
-
function f
|
|
5027
|
-
p(
|
|
5027
|
+
function g(f) {
|
|
5028
|
+
p(f), l && l([]);
|
|
5028
5029
|
}
|
|
5029
5030
|
return /* @__PURE__ */ s(
|
|
5030
5031
|
fi,
|
|
@@ -5038,10 +5039,10 @@ const ii = h(rr)`
|
|
|
5038
5039
|
loading: d,
|
|
5039
5040
|
columns: m,
|
|
5040
5041
|
expandedRowKeys: u,
|
|
5041
|
-
onExpandedRowsChange:
|
|
5042
|
+
onExpandedRowsChange: g,
|
|
5042
5043
|
expandable: {
|
|
5043
|
-
expandedRowRender: (
|
|
5044
|
-
expandIcon: ({ expanded:
|
|
5044
|
+
expandedRowRender: (f) => /* @__PURE__ */ s(e, { ...i, record: f }),
|
|
5045
|
+
expandIcon: ({ expanded: f }) => /* @__PURE__ */ s(ae, { children: f ? /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(gi, {}) }) : /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(ft, {}) }) }),
|
|
5045
5046
|
expandRowByClick: !0
|
|
5046
5047
|
},
|
|
5047
5048
|
dataSource: a
|
|
@@ -5159,7 +5160,7 @@ const hi = h.div`
|
|
|
5159
5160
|
left: 20px;
|
|
5160
5161
|
top: 10px;
|
|
5161
5162
|
z-index: 1000;
|
|
5162
|
-
`,
|
|
5163
|
+
`, R = (n) => typeof n == "string", Me = () => {
|
|
5163
5164
|
let n, e;
|
|
5164
5165
|
const t = new Promise((r, a) => {
|
|
5165
5166
|
n = r, e = a;
|
|
@@ -5169,8 +5170,8 @@ const hi = h.div`
|
|
|
5169
5170
|
n.forEach((r) => {
|
|
5170
5171
|
e[r] && (t[r] = e[r]);
|
|
5171
5172
|
});
|
|
5172
|
-
}, vi = /###/g, Vt = (n) => n && n.includes("###") ? n.replace(vi, ".") : n, At = (n) => !n ||
|
|
5173
|
-
const r =
|
|
5173
|
+
}, vi = /###/g, Vt = (n) => n && n.includes("###") ? n.replace(vi, ".") : n, At = (n) => !n || R(n), Ne = (n, e, t) => {
|
|
5174
|
+
const r = R(e) ? e.split(".") : e;
|
|
5174
5175
|
let a = 0;
|
|
5175
5176
|
for (; a < r.length - 1; ) {
|
|
5176
5177
|
if (At(n)) return {};
|
|
@@ -5212,7 +5213,7 @@ const hi = h.div`
|
|
|
5212
5213
|
return r !== void 0 ? r : Je(e, t);
|
|
5213
5214
|
}, Lr = (n, e, t) => {
|
|
5214
5215
|
for (const r in e)
|
|
5215
|
-
r !== "__proto__" && r !== "constructor" && (r in n ?
|
|
5216
|
+
r !== "__proto__" && r !== "constructor" && (r in n ? R(n[r]) || n[r] instanceof String || R(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : Lr(n[r], e[r], t) : n[r] = e[r]);
|
|
5216
5217
|
return n;
|
|
5217
5218
|
}, ve = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Ci = {
|
|
5218
5219
|
"&": "&",
|
|
@@ -5221,7 +5222,7 @@ const hi = h.div`
|
|
|
5221
5222
|
'"': """,
|
|
5222
5223
|
"'": "'",
|
|
5223
5224
|
"/": "/"
|
|
5224
|
-
}, ki = (n) =>
|
|
5225
|
+
}, ki = (n) => R(n) ? n.replace(/[&<>"'\/]/g, (e) => Ci[e]) : n;
|
|
5225
5226
|
class Si {
|
|
5226
5227
|
constructor(e) {
|
|
5227
5228
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -5301,7 +5302,7 @@ class Qe {
|
|
|
5301
5302
|
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
5302
5303
|
}
|
|
5303
5304
|
forward(e, t, r, a) {
|
|
5304
|
-
return a && !this.debug ? null : (
|
|
5305
|
+
return a && !this.debug ? null : (R(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
5305
5306
|
}
|
|
5306
5307
|
create(e) {
|
|
5307
5308
|
return new Qe(this.logger, {
|
|
@@ -5368,9 +5369,9 @@ class Bt extends rt {
|
|
|
5368
5369
|
var c, u;
|
|
5369
5370
|
const i = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, o = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
5370
5371
|
let l;
|
|
5371
|
-
e.includes(".") ? l = e.split(".") : (l = [e, t], r && (Array.isArray(r) ? l.push(...r) :
|
|
5372
|
+
e.includes(".") ? l = e.split(".") : (l = [e, t], r && (Array.isArray(r) ? l.push(...r) : R(r) && i ? l.push(...r.split(i)) : l.push(r)));
|
|
5372
5373
|
const d = Je(this.data, l);
|
|
5373
|
-
return !d && !t && !r && e.includes(".") && (e = l[0], t = l[1], r = l.slice(2).join(".")), d || !o || !
|
|
5374
|
+
return !d && !t && !r && e.includes(".") && (e = l[0], t = l[1], r = l.slice(2).join(".")), d || !o || !R(r) ? d : ct((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], r, i);
|
|
5374
5375
|
}
|
|
5375
5376
|
addResource(e, t, r, a, i = {
|
|
5376
5377
|
silent: !1
|
|
@@ -5383,7 +5384,7 @@ class Bt extends rt {
|
|
|
5383
5384
|
silent: !1
|
|
5384
5385
|
}) {
|
|
5385
5386
|
for (const i in r)
|
|
5386
|
-
(
|
|
5387
|
+
(R(r[i]) || Array.isArray(r[i])) && this.addResource(e, t, i, r[i], {
|
|
5387
5388
|
silent: !0
|
|
5388
5389
|
});
|
|
5389
5390
|
a.silent || this.emit("added", e, t, r);
|
|
@@ -5452,7 +5453,7 @@ function Oe(n, e) {
|
|
|
5452
5453
|
}
|
|
5453
5454
|
return t.join(r);
|
|
5454
5455
|
}
|
|
5455
|
-
const at = (n) => !
|
|
5456
|
+
const at = (n) => !R(n) && typeof n != "boolean" && typeof n != "number";
|
|
5456
5457
|
class Xe extends rt {
|
|
5457
5458
|
constructor(e, t = {}) {
|
|
5458
5459
|
super(), bi(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = le.create("translator"), this.checkedLoadedFor = {};
|
|
@@ -5483,14 +5484,14 @@ class Xe extends rt {
|
|
|
5483
5484
|
if (d && d.length > 0)
|
|
5484
5485
|
return {
|
|
5485
5486
|
key: e,
|
|
5486
|
-
namespaces:
|
|
5487
|
+
namespaces: R(i) ? [i] : i
|
|
5487
5488
|
};
|
|
5488
5489
|
const c = e.split(r);
|
|
5489
5490
|
(r !== a || r === a && this.options.ns.includes(c[0])) && (i = c.shift()), e = c.join(a);
|
|
5490
5491
|
}
|
|
5491
5492
|
return {
|
|
5492
5493
|
key: e,
|
|
5493
|
-
namespaces:
|
|
5494
|
+
namespaces: R(i) ? [i] : i
|
|
5494
5495
|
};
|
|
5495
5496
|
}
|
|
5496
5497
|
translate(e, t, r) {
|
|
@@ -5503,10 +5504,10 @@ class Xe extends rt {
|
|
|
5503
5504
|
typeof e == "function" && (e = Oe(e, {
|
|
5504
5505
|
...this.options,
|
|
5505
5506
|
...a
|
|
5506
|
-
})), Array.isArray(e) || (e = [String(e)]), e = e.map((
|
|
5507
|
+
})), Array.isArray(e) || (e = [String(e)]), e = e.map((A) => typeof A == "function" ? Oe(A, {
|
|
5507
5508
|
...this.options,
|
|
5508
5509
|
...a
|
|
5509
|
-
}) : String(
|
|
5510
|
+
}) : String(A));
|
|
5510
5511
|
const i = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, o = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, {
|
|
5511
5512
|
key: l,
|
|
5512
5513
|
namespaces: d
|
|
@@ -5530,76 +5531,76 @@ class Xe extends rt {
|
|
|
5530
5531
|
usedNS: c,
|
|
5531
5532
|
usedParams: this.getUsedParamsDetails(a)
|
|
5532
5533
|
} : l;
|
|
5533
|
-
const
|
|
5534
|
-
let
|
|
5535
|
-
const
|
|
5534
|
+
const g = this.resolve(e, a);
|
|
5535
|
+
let f = g == null ? void 0 : g.res;
|
|
5536
|
+
const x = (g == null ? void 0 : g.usedKey) || l, D = (g == null ? void 0 : g.exactUsedKey) || l, I = ["[object Number]", "[object Function]", "[object RegExp]"], S = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, L = a.count !== void 0 && !R(a.count), H = Xe.hasDefaultValue(a), j = L ? this.pluralResolver.getSuffix(p, a.count, a) : "", _ = a.ordinal && L ? this.pluralResolver.getSuffix(p, a.count, {
|
|
5536
5537
|
ordinal: !1
|
|
5537
|
-
}) : "", K = L && !a.ordinal && a.count === 0,
|
|
5538
|
-
let
|
|
5539
|
-
O && !
|
|
5540
|
-
const
|
|
5541
|
-
if (O &&
|
|
5538
|
+
}) : "", K = L && !a.ordinal && a.count === 0, G = K && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${j}`] || a[`defaultValue${_}`] || a.defaultValue;
|
|
5539
|
+
let N = f;
|
|
5540
|
+
O && !f && H && (N = G);
|
|
5541
|
+
const y = at(N), z = Object.prototype.toString.apply(N);
|
|
5542
|
+
if (O && N && y && !I.includes(z) && !(R(S) && Array.isArray(N))) {
|
|
5542
5543
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
5543
5544
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
5544
|
-
const
|
|
5545
|
+
const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, N, {
|
|
5545
5546
|
...a,
|
|
5546
5547
|
ns: d
|
|
5547
5548
|
}) : `key '${l} (${this.language})' returned an object instead of string.`;
|
|
5548
|
-
return i ? (
|
|
5549
|
+
return i ? (g.res = A, g.usedParams = this.getUsedParamsDetails(a), g) : A;
|
|
5549
5550
|
}
|
|
5550
5551
|
if (o) {
|
|
5551
|
-
const
|
|
5552
|
-
for (const
|
|
5553
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5554
|
-
const
|
|
5555
|
-
|
|
5552
|
+
const A = Array.isArray(N), $ = A ? [] : {}, k = A ? D : x;
|
|
5553
|
+
for (const v in N)
|
|
5554
|
+
if (Object.prototype.hasOwnProperty.call(N, v)) {
|
|
5555
|
+
const w = `${k}${o}${v}`;
|
|
5556
|
+
H && !f ? $[v] = this.translate(w, {
|
|
5556
5557
|
...a,
|
|
5557
|
-
defaultValue: at(
|
|
5558
|
+
defaultValue: at(G) ? G[v] : void 0,
|
|
5558
5559
|
joinArrays: !1,
|
|
5559
5560
|
ns: d
|
|
5560
|
-
}) : $[
|
|
5561
|
+
}) : $[v] = this.translate(w, {
|
|
5561
5562
|
...a,
|
|
5562
5563
|
joinArrays: !1,
|
|
5563
5564
|
ns: d
|
|
5564
|
-
}), $[
|
|
5565
|
+
}), $[v] === w && ($[v] = N[v]);
|
|
5565
5566
|
}
|
|
5566
|
-
|
|
5567
|
+
f = $;
|
|
5567
5568
|
}
|
|
5568
|
-
} else if (O &&
|
|
5569
|
-
|
|
5569
|
+
} else if (O && R(S) && Array.isArray(f))
|
|
5570
|
+
f = f.join(S), f && (f = this.extendTranslation(f, e, a, r));
|
|
5570
5571
|
else {
|
|
5571
|
-
let
|
|
5572
|
-
!this.isValidLookup(
|
|
5573
|
-
const
|
|
5574
|
-
if ($ ||
|
|
5575
|
-
if (this.logger.log(
|
|
5576
|
-
const
|
|
5572
|
+
let A = !1, $ = !1;
|
|
5573
|
+
!this.isValidLookup(f) && H && (A = !0, f = G), this.isValidLookup(f) || ($ = !0, f = l);
|
|
5574
|
+
const v = (a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && $ ? void 0 : f, w = H && G !== f && this.options.updateMissing;
|
|
5575
|
+
if ($ || A || w) {
|
|
5576
|
+
if (this.logger.log(w ? "updateKey" : "missingKey", p, c, l, w ? G : f), o) {
|
|
5577
|
+
const F = this.resolve(l, {
|
|
5577
5578
|
...a,
|
|
5578
5579
|
keySeparator: !1
|
|
5579
5580
|
});
|
|
5580
|
-
|
|
5581
|
+
F && F.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
5581
5582
|
}
|
|
5582
|
-
let
|
|
5583
|
+
let C = [];
|
|
5583
5584
|
const T = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
5584
5585
|
if (this.options.saveMissingTo === "fallback" && T && T[0])
|
|
5585
|
-
for (let
|
|
5586
|
-
|
|
5587
|
-
else this.options.saveMissingTo === "all" ?
|
|
5588
|
-
const
|
|
5586
|
+
for (let F = 0; F < T.length; F++)
|
|
5587
|
+
C.push(T[F]);
|
|
5588
|
+
else this.options.saveMissingTo === "all" ? C = this.languageUtils.toResolveHierarchy(a.lng || this.language) : C.push(a.lng || this.language);
|
|
5589
|
+
const P = (F, U, W) => {
|
|
5589
5590
|
var J;
|
|
5590
|
-
const q =
|
|
5591
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
5591
|
+
const q = H && W !== f ? W : v;
|
|
5592
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(F, c, U, q, w, a) : (J = this.backendConnector) != null && J.saveMissing && this.backendConnector.saveMissing(F, c, U, q, w, a), this.emit("missingKey", F, c, U, f);
|
|
5592
5593
|
};
|
|
5593
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && L ?
|
|
5594
|
-
const U = this.pluralResolver.getSuffixes(
|
|
5594
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && L ? C.forEach((F) => {
|
|
5595
|
+
const U = this.pluralResolver.getSuffixes(F, a);
|
|
5595
5596
|
K && a[`defaultValue${this.options.pluralSeparator}zero`] && !U.includes(`${this.options.pluralSeparator}zero`) && U.push(`${this.options.pluralSeparator}zero`), U.forEach((W) => {
|
|
5596
|
-
|
|
5597
|
+
P([F], l + W, a[`defaultValue${W}`] || G);
|
|
5597
5598
|
});
|
|
5598
|
-
}) :
|
|
5599
|
+
}) : P(C, l, G));
|
|
5599
5600
|
}
|
|
5600
|
-
|
|
5601
|
+
f = this.extendTranslation(f, e, a, g, r), $ && f === l && this.options.appendNamespaceToMissingKey && (f = `${c}${u}${l}`), ($ || A) && this.options.parseMissingKeyHandler && (f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${l}` : l, A ? f : void 0, a));
|
|
5601
5602
|
}
|
|
5602
|
-
return i ? (
|
|
5603
|
+
return i ? (g.res = f, g.usedParams = this.getUsedParamsDetails(a), g) : f;
|
|
5603
5604
|
}
|
|
5604
5605
|
extendTranslation(e, t, r, a, i) {
|
|
5605
5606
|
var d, c;
|
|
@@ -5618,23 +5619,23 @@ class Xe extends rt {
|
|
|
5618
5619
|
...r.interpolation
|
|
5619
5620
|
}
|
|
5620
5621
|
});
|
|
5621
|
-
const u =
|
|
5622
|
+
const u = R(e) && (((c = r == null ? void 0 : r.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
5622
5623
|
let p;
|
|
5623
5624
|
if (u) {
|
|
5624
|
-
const
|
|
5625
|
-
p =
|
|
5625
|
+
const g = e.match(this.interpolator.nestingRegexp);
|
|
5626
|
+
p = g && g.length;
|
|
5626
5627
|
}
|
|
5627
|
-
let m = r.replace && !
|
|
5628
|
+
let m = r.replace && !R(r.replace) ? r.replace : r;
|
|
5628
5629
|
if (this.options.interpolation.defaultVariables && (m = {
|
|
5629
5630
|
...this.options.interpolation.defaultVariables,
|
|
5630
5631
|
...m
|
|
5631
5632
|
}), e = this.interpolator.interpolate(e, m, r.lng || this.language || a.usedLng, r), u) {
|
|
5632
|
-
const
|
|
5633
|
-
p <
|
|
5633
|
+
const g = e.match(this.interpolator.nestingRegexp), f = g && g.length;
|
|
5634
|
+
p < f && (r.nest = !1);
|
|
5634
5635
|
}
|
|
5635
|
-
!r.lng && a && a.res && (r.lng = this.language || a.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...
|
|
5636
|
+
!r.lng && a && a.res && (r.lng = this.language || a.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...g) => (i == null ? void 0 : i[0]) === g[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${t[0]}`), null) : this.translate(...g, t), r)), r.interpolation && this.interpolator.reset();
|
|
5636
5637
|
}
|
|
5637
|
-
const o = r.postProcess || this.options.postProcess, l =
|
|
5638
|
+
const o = r.postProcess || this.options.postProcess, l = R(o) ? [o] : o;
|
|
5638
5639
|
return e != null && (l != null && l.length) && r.applyPostProcessor !== !1 && (e = $r.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
5639
5640
|
i18nResolved: {
|
|
5640
5641
|
...a,
|
|
@@ -5645,7 +5646,7 @@ class Xe extends rt {
|
|
|
5645
5646
|
}
|
|
5646
5647
|
resolve(e, t = {}) {
|
|
5647
5648
|
let r, a, i, o, l;
|
|
5648
|
-
return
|
|
5649
|
+
return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((d) => typeof d == "function" ? Oe(d, {
|
|
5649
5650
|
...this.options,
|
|
5650
5651
|
...t
|
|
5651
5652
|
}) : d)), e.forEach((d) => {
|
|
@@ -5654,28 +5655,28 @@ class Xe extends rt {
|
|
|
5654
5655
|
a = u;
|
|
5655
5656
|
let p = c.namespaces;
|
|
5656
5657
|
this.options.fallbackNS && (p = p.concat(this.options.fallbackNS));
|
|
5657
|
-
const m = t.count !== void 0 && !
|
|
5658
|
+
const m = t.count !== void 0 && !R(t.count), g = m && !t.ordinal && t.count === 0, f = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
5658
5659
|
p.forEach((D) => {
|
|
5659
|
-
var I,
|
|
5660
|
-
this.isValidLookup(r) || (l = D, !this.checkedLoadedFor[`${
|
|
5661
|
-
var
|
|
5660
|
+
var I, S;
|
|
5661
|
+
this.isValidLookup(r) || (l = D, !this.checkedLoadedFor[`${x[0]}-${D}`] && ((I = this.utils) != null && I.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(l)) && (this.checkedLoadedFor[`${x[0]}-${D}`] = !0, this.logger.warn(`key "${a}" for languages "${x.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!!!")), x.forEach((O) => {
|
|
5662
|
+
var j;
|
|
5662
5663
|
if (this.isValidLookup(r)) return;
|
|
5663
5664
|
o = O;
|
|
5664
5665
|
const L = [u];
|
|
5665
|
-
if ((
|
|
5666
|
+
if ((j = this.i18nFormat) != null && j.addLookupKeys)
|
|
5666
5667
|
this.i18nFormat.addLookupKeys(L, u, O, D, t);
|
|
5667
5668
|
else {
|
|
5668
5669
|
let _;
|
|
5669
5670
|
m && (_ = this.pluralResolver.getSuffix(O, t.count, t));
|
|
5670
|
-
const K = `${this.options.pluralSeparator}zero`,
|
|
5671
|
-
if (m && (t.ordinal && _.startsWith(
|
|
5672
|
-
const
|
|
5673
|
-
L.push(
|
|
5671
|
+
const K = `${this.options.pluralSeparator}zero`, G = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
5672
|
+
if (m && (t.ordinal && _.startsWith(G) && L.push(u + _.replace(G, this.options.pluralSeparator)), L.push(u + _), g && L.push(u + K)), f) {
|
|
5673
|
+
const N = `${u}${this.options.contextSeparator || "_"}${t.context}`;
|
|
5674
|
+
L.push(N), m && (t.ordinal && _.startsWith(G) && L.push(N + _.replace(G, this.options.pluralSeparator)), L.push(N + _), g && L.push(N + K));
|
|
5674
5675
|
}
|
|
5675
5676
|
}
|
|
5676
|
-
let
|
|
5677
|
-
for (;
|
|
5678
|
-
this.isValidLookup(r) || (i =
|
|
5677
|
+
let H;
|
|
5678
|
+
for (; H = L.pop(); )
|
|
5679
|
+
this.isValidLookup(r) || (i = H, r = this.getResource(O, D, H, t));
|
|
5679
5680
|
}));
|
|
5680
5681
|
});
|
|
5681
5682
|
}), {
|
|
@@ -5694,7 +5695,7 @@ class Xe extends rt {
|
|
|
5694
5695
|
return (i = this.i18nFormat) != null && i.getResource ? this.i18nFormat.getResource(e, t, r, a) : this.resourceStore.getResource(e, t, r, a);
|
|
5695
5696
|
}
|
|
5696
5697
|
getUsedParamsDetails(e = {}) {
|
|
5697
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !
|
|
5698
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !R(e.replace);
|
|
5698
5699
|
let a = r ? e.replace : e;
|
|
5699
5700
|
if (r && typeof e.count < "u" && (a.count = e.count), this.options.interpolation.defaultVariables && (a = {
|
|
5700
5701
|
...this.options.interpolation.defaultVariables,
|
|
@@ -5731,7 +5732,7 @@ class Gt {
|
|
|
5731
5732
|
return this.formatLanguageCode(t[0]);
|
|
5732
5733
|
}
|
|
5733
5734
|
formatLanguageCode(e) {
|
|
5734
|
-
if (
|
|
5735
|
+
if (R(e) && e.includes("-")) {
|
|
5735
5736
|
let t;
|
|
5736
5737
|
try {
|
|
5737
5738
|
t = Intl.getCanonicalLocales(e)[0];
|
|
@@ -5762,7 +5763,7 @@ class Gt {
|
|
|
5762
5763
|
}
|
|
5763
5764
|
getFallbackCodes(e, t) {
|
|
5764
5765
|
if (!e) return [];
|
|
5765
|
-
if (typeof e == "function" && (e = e(t)),
|
|
5766
|
+
if (typeof e == "function" && (e = e(t)), R(e) && (e = [e]), Array.isArray(e)) return e;
|
|
5766
5767
|
if (!t) return e.default || [];
|
|
5767
5768
|
let r = e[t];
|
|
5768
5769
|
return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
|
|
@@ -5771,7 +5772,7 @@ class Gt {
|
|
|
5771
5772
|
const r = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), a = [], i = (o) => {
|
|
5772
5773
|
o && (this.isSupportedCode(o) ? a.push(o) : this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`));
|
|
5773
5774
|
};
|
|
5774
|
-
return
|
|
5775
|
+
return R(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : R(e) && i(this.formatLanguageCode(e)), r.forEach((o) => {
|
|
5775
5776
|
a.includes(o) || i(this.formatLanguageCode(o));
|
|
5776
5777
|
}), a;
|
|
5777
5778
|
}
|
|
@@ -5789,7 +5790,7 @@ const Ut = {
|
|
|
5789
5790
|
pluralCategories: ["one", "other"]
|
|
5790
5791
|
})
|
|
5791
5792
|
};
|
|
5792
|
-
class
|
|
5793
|
+
class Ti {
|
|
5793
5794
|
constructor(e, t = {}) {
|
|
5794
5795
|
this.languageUtils = e, this.options = t, this.logger = le.create("pluralResolver"), this.pluralRulesCache = {};
|
|
5795
5796
|
}
|
|
@@ -5835,7 +5836,7 @@ class zi {
|
|
|
5835
5836
|
}
|
|
5836
5837
|
const Wt = (n, e, t, r = ".", a = !0) => {
|
|
5837
5838
|
let i = wi(n, e, t);
|
|
5838
|
-
return !i && a &&
|
|
5839
|
+
return !i && a && R(t) && (i = ct(n, t, r), i === void 0 && (i = ct(e, t, r))), i;
|
|
5839
5840
|
}, it = (n) => n.replace(/\$/g, "$$$$");
|
|
5840
5841
|
class Yt {
|
|
5841
5842
|
constructor(e = {}) {
|
|
@@ -5858,14 +5859,14 @@ class Yt {
|
|
|
5858
5859
|
unescapeSuffix: u,
|
|
5859
5860
|
unescapePrefix: p,
|
|
5860
5861
|
nestingPrefix: m,
|
|
5861
|
-
nestingPrefixEscaped:
|
|
5862
|
-
nestingSuffix:
|
|
5863
|
-
nestingSuffixEscaped:
|
|
5862
|
+
nestingPrefixEscaped: g,
|
|
5863
|
+
nestingSuffix: f,
|
|
5864
|
+
nestingSuffixEscaped: x,
|
|
5864
5865
|
nestingOptionsSeparator: D,
|
|
5865
5866
|
maxReplaces: I,
|
|
5866
|
-
alwaysFormat:
|
|
5867
|
+
alwaysFormat: S
|
|
5867
5868
|
} = e.interpolation;
|
|
5868
|
-
this.escape = t !== void 0 ? t : ki, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = i ? ve(i) : o || "{{", this.suffix = l ? ve(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = m ? ve(m) :
|
|
5869
|
+
this.escape = t !== void 0 ? t : ki, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = i ? ve(i) : o || "{{", this.suffix = l ? ve(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = m ? ve(m) : g || ve("$t("), this.nestingSuffix = f ? ve(f) : x || ve(")"), this.nestingOptionsSeparator = D || ",", this.maxReplaces = I || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
5869
5870
|
}
|
|
5870
5871
|
reset() {
|
|
5871
5872
|
this.options && this.init(this.options);
|
|
@@ -5875,18 +5876,18 @@ class Yt {
|
|
|
5875
5876
|
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}`);
|
|
5876
5877
|
}
|
|
5877
5878
|
interpolate(e, t, r, a) {
|
|
5878
|
-
var
|
|
5879
|
+
var g;
|
|
5879
5880
|
let i, o, l;
|
|
5880
|
-
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
5881
|
-
if (!
|
|
5882
|
-
const
|
|
5883
|
-
return this.alwaysFormat ? this.format(
|
|
5881
|
+
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (f) => {
|
|
5882
|
+
if (!f.includes(this.formatSeparator)) {
|
|
5883
|
+
const S = Wt(t, d, f, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
5884
|
+
return this.alwaysFormat ? this.format(S, void 0, r, {
|
|
5884
5885
|
...a,
|
|
5885
5886
|
...t,
|
|
5886
|
-
interpolationkey:
|
|
5887
|
-
}) :
|
|
5887
|
+
interpolationkey: f
|
|
5888
|
+
}) : S;
|
|
5888
5889
|
}
|
|
5889
|
-
const
|
|
5890
|
+
const x = f.split(this.formatSeparator), D = x.shift().trim(), I = x.join(this.formatSeparator).trim();
|
|
5890
5891
|
return this.format(Wt(t, d, D, this.options.keySeparator, this.options.ignoreJSONStructure), I, r, {
|
|
5891
5892
|
...a,
|
|
5892
5893
|
...t,
|
|
@@ -5894,30 +5895,30 @@ class Yt {
|
|
|
5894
5895
|
});
|
|
5895
5896
|
};
|
|
5896
5897
|
this.resetRegExp();
|
|
5897
|
-
const u = (a == null ? void 0 : a.missingInterpolationHandler) || this.options.missingInterpolationHandler, p = ((
|
|
5898
|
+
const u = (a == null ? void 0 : a.missingInterpolationHandler) || this.options.missingInterpolationHandler, p = ((g = a == null ? void 0 : a.interpolation) == null ? void 0 : g.skipOnVariables) !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
5898
5899
|
return [{
|
|
5899
5900
|
regex: this.regexpUnescape,
|
|
5900
|
-
safeValue: (
|
|
5901
|
+
safeValue: (f) => it(f)
|
|
5901
5902
|
}, {
|
|
5902
5903
|
regex: this.regexp,
|
|
5903
|
-
safeValue: (
|
|
5904
|
-
}].forEach((
|
|
5905
|
-
for (l = 0; i =
|
|
5906
|
-
const
|
|
5907
|
-
if (o = c(
|
|
5904
|
+
safeValue: (f) => this.escapeValue ? it(this.escape(f)) : it(f)
|
|
5905
|
+
}].forEach((f) => {
|
|
5906
|
+
for (l = 0; i = f.regex.exec(e); ) {
|
|
5907
|
+
const x = i[1].trim();
|
|
5908
|
+
if (o = c(x), o === void 0)
|
|
5908
5909
|
if (typeof u == "function") {
|
|
5909
5910
|
const I = u(e, i, a);
|
|
5910
|
-
o =
|
|
5911
|
-
} else if (a && Object.prototype.hasOwnProperty.call(a,
|
|
5911
|
+
o = R(I) ? I : "";
|
|
5912
|
+
} else if (a && Object.prototype.hasOwnProperty.call(a, x))
|
|
5912
5913
|
o = "";
|
|
5913
5914
|
else if (p) {
|
|
5914
5915
|
o = i[0];
|
|
5915
5916
|
continue;
|
|
5916
5917
|
} else
|
|
5917
|
-
this.logger.warn(`missed to pass in variable ${
|
|
5918
|
-
else !
|
|
5919
|
-
const D =
|
|
5920
|
-
if (e = e.replace(i[0], D), p ? (
|
|
5918
|
+
this.logger.warn(`missed to pass in variable ${x} for interpolating ${e}`), o = "";
|
|
5919
|
+
else !R(o) && !this.useRawValueToEscape && (o = Ft(o));
|
|
5920
|
+
const D = f.safeValue(o);
|
|
5921
|
+
if (e = e.replace(i[0], D), p ? (f.regex.lastIndex += o.length, f.regex.lastIndex -= i[0].length) : f.regex.lastIndex = 0, l++, l >= this.maxReplaces)
|
|
5921
5922
|
break;
|
|
5922
5923
|
}
|
|
5923
5924
|
}), e;
|
|
@@ -5930,15 +5931,15 @@ class Yt {
|
|
|
5930
5931
|
const p = d.split(new RegExp(`${ve(u)}[ ]*{`));
|
|
5931
5932
|
let m = `{${p[1]}`;
|
|
5932
5933
|
d = p[0], m = this.interpolate(m, o);
|
|
5933
|
-
const
|
|
5934
|
-
(((
|
|
5934
|
+
const g = m.match(/'/g), f = m.match(/"/g);
|
|
5935
|
+
(((g == null ? void 0 : g.length) ?? 0) % 2 === 0 && !f || ((f == null ? void 0 : f.length) ?? 0) % 2 !== 0) && (m = m.replace(/'/g, '"'));
|
|
5935
5936
|
try {
|
|
5936
5937
|
o = JSON.parse(m), c && (o = {
|
|
5937
5938
|
...c,
|
|
5938
5939
|
...o
|
|
5939
5940
|
});
|
|
5940
|
-
} catch (
|
|
5941
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${d}`,
|
|
5941
|
+
} catch (x) {
|
|
5942
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, x), `${d}${u}${m}`;
|
|
5942
5943
|
}
|
|
5943
5944
|
return o.defaultValue && o.defaultValue.includes(this.prefix) && delete o.defaultValue, d;
|
|
5944
5945
|
};
|
|
@@ -5946,10 +5947,10 @@ class Yt {
|
|
|
5946
5947
|
let d = [];
|
|
5947
5948
|
o = {
|
|
5948
5949
|
...r
|
|
5949
|
-
}, o = o.replace && !
|
|
5950
|
+
}, o = o.replace && !R(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
|
|
5950
5951
|
const c = /{.*}/.test(a[1]) ? a[1].lastIndexOf("}") + 1 : a[1].indexOf(this.formatSeparator);
|
|
5951
|
-
if (c !== -1 && (d = a[1].slice(c).split(this.formatSeparator).map((u) => u.trim()).filter(Boolean), a[1] = a[1].slice(0, c)), i = t(l.call(this, a[1].trim(), o), o), i && a[0] === e && !
|
|
5952
|
-
|
|
5952
|
+
if (c !== -1 && (d = a[1].slice(c).split(this.formatSeparator).map((u) => u.trim()).filter(Boolean), a[1] = a[1].slice(0, c)), i = t(l.call(this, a[1].trim(), o), o), i && a[0] === e && !R(i)) return i;
|
|
5953
|
+
R(i) || (i = Ft(i)), i || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), i = ""), d.length && (i = d.reduce((u, p) => this.format(u, p, r.lng, {
|
|
5953
5954
|
...r,
|
|
5954
5955
|
interpolationkey: a[1].trim()
|
|
5955
5956
|
}), i.trim())), e = e.replace(a[0], i), this.regexp.lastIndex = 0;
|
|
@@ -5957,7 +5958,7 @@ class Yt {
|
|
|
5957
5958
|
return e;
|
|
5958
5959
|
}
|
|
5959
5960
|
}
|
|
5960
|
-
const
|
|
5961
|
+
const zi = (n) => {
|
|
5961
5962
|
let e = n.toLowerCase().trim();
|
|
5962
5963
|
const t = {};
|
|
5963
5964
|
if (n.includes("(")) {
|
|
@@ -6049,18 +6050,18 @@ class Pi {
|
|
|
6049
6050
|
const {
|
|
6050
6051
|
formatName: c,
|
|
6051
6052
|
formatOptions: u
|
|
6052
|
-
} =
|
|
6053
|
+
} = zi(d);
|
|
6053
6054
|
if (this.formats[c]) {
|
|
6054
6055
|
let m = l;
|
|
6055
6056
|
try {
|
|
6056
|
-
const
|
|
6057
|
-
m = this.formats[c](l,
|
|
6057
|
+
const g = ((p = a == null ? void 0 : a.formatParams) == null ? void 0 : p[a.interpolationkey]) || {}, f = g.locale || g.lng || a.locale || a.lng || r;
|
|
6058
|
+
m = this.formats[c](l, f, {
|
|
6058
6059
|
...u,
|
|
6059
6060
|
...a,
|
|
6060
|
-
...
|
|
6061
|
+
...g
|
|
6061
6062
|
});
|
|
6062
|
-
} catch (
|
|
6063
|
-
this.logger.warn(
|
|
6063
|
+
} catch (g) {
|
|
6064
|
+
this.logger.warn(g);
|
|
6064
6065
|
}
|
|
6065
6066
|
return m;
|
|
6066
6067
|
} else
|
|
@@ -6155,7 +6156,7 @@ class Hi extends rt {
|
|
|
6155
6156
|
prepareLoading(e, t, r = {}, a) {
|
|
6156
6157
|
if (!this.backend)
|
|
6157
6158
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), a && a();
|
|
6158
|
-
|
|
6159
|
+
R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
|
|
6159
6160
|
const i = this.queueLoad(e, t, r, a);
|
|
6160
6161
|
if (!i.toLoad.length)
|
|
6161
6162
|
return i.pending.length || a(), null;
|
|
@@ -6186,19 +6187,19 @@ class Hi extends rt {
|
|
|
6186
6187
|
}
|
|
6187
6188
|
if (!(r == null || r === "")) {
|
|
6188
6189
|
if ((m = this.backend) != null && m.create) {
|
|
6189
|
-
const
|
|
6190
|
+
const g = {
|
|
6190
6191
|
...o,
|
|
6191
6192
|
isUpdate: i
|
|
6192
|
-
},
|
|
6193
|
-
if (
|
|
6193
|
+
}, f = this.backend.create.bind(this.backend);
|
|
6194
|
+
if (f.length < 6)
|
|
6194
6195
|
try {
|
|
6195
|
-
let
|
|
6196
|
-
|
|
6197
|
-
} catch (
|
|
6198
|
-
l(
|
|
6196
|
+
let x;
|
|
6197
|
+
f.length === 5 ? x = f(e, t, r, a, g) : x = f(e, t, r, a), x && typeof x.then == "function" ? x.then((D) => l(null, D)).catch(l) : l(null, x);
|
|
6198
|
+
} catch (x) {
|
|
6199
|
+
l(x);
|
|
6199
6200
|
}
|
|
6200
6201
|
else
|
|
6201
|
-
|
|
6202
|
+
f(e, t, r, a, l, g);
|
|
6202
6203
|
}
|
|
6203
6204
|
!e || !e[0] || this.store.addResource(e[0], t, r, a);
|
|
6204
6205
|
}
|
|
@@ -6238,7 +6239,7 @@ const ot = () => ({
|
|
|
6238
6239
|
appendNamespaceToCIMode: !1,
|
|
6239
6240
|
overloadTranslationOptionHandler: (n) => {
|
|
6240
6241
|
let e = {};
|
|
6241
|
-
if (typeof n[1] == "object" && (e = n[1]),
|
|
6242
|
+
if (typeof n[1] == "object" && (e = n[1]), R(n[1]) && (e.defaultValue = n[1]), R(n[2]) && (e.tDescription = n[2]), typeof n[2] == "object" || typeof n[3] == "object") {
|
|
6242
6243
|
const t = n[3] || n[2];
|
|
6243
6244
|
Object.keys(t).forEach((r) => {
|
|
6244
6245
|
e[r] = t[r];
|
|
@@ -6259,7 +6260,7 @@ const ot = () => ({
|
|
|
6259
6260
|
skipOnVariables: !0
|
|
6260
6261
|
},
|
|
6261
6262
|
cacheInBuiltFormats: !0
|
|
6262
|
-
}), Zt = (n) => (
|
|
6263
|
+
}), Zt = (n) => (R(n.ns) && (n.ns = [n.ns]), R(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), R(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && !n.supportedLngs.includes("cimode") && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n), Ue = () => {
|
|
6263
6264
|
}, Ri = (n) => {
|
|
6264
6265
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
6265
6266
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
@@ -6278,7 +6279,7 @@ class Fe extends rt {
|
|
|
6278
6279
|
}
|
|
6279
6280
|
}
|
|
6280
6281
|
init(e = {}, t) {
|
|
6281
|
-
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (
|
|
6282
|
+
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (R(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
|
|
6282
6283
|
const r = ot();
|
|
6283
6284
|
this.options = {
|
|
6284
6285
|
...r,
|
|
@@ -6296,14 +6297,14 @@ class Fe extends rt {
|
|
|
6296
6297
|
const u = new Gt(this.options);
|
|
6297
6298
|
this.store = new Bt(this.options.resources, this.options);
|
|
6298
6299
|
const p = this.services;
|
|
6299
|
-
p.logger = le, p.resourceStore = this.store, p.languageUtils = u, p.pluralResolver = new
|
|
6300
|
+
p.logger = le, p.resourceStore = this.store, p.languageUtils = u, p.pluralResolver = new Ti(u, {
|
|
6300
6301
|
prepend: this.options.pluralSeparator
|
|
6301
6302
|
}), c && (p.formatter = a(c), p.formatter.init && p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new Yt(this.options), p.utils = {
|
|
6302
6303
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
6303
|
-
}, p.backendConnector = new Hi(a(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (m, ...
|
|
6304
|
-
this.emit(m, ...
|
|
6305
|
-
}), this.modules.languageDetector && (p.languageDetector = a(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = a(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Xe(this.services, this.options), this.translator.on("*", (m, ...
|
|
6306
|
-
this.emit(m, ...
|
|
6304
|
+
}, p.backendConnector = new Hi(a(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (m, ...g) => {
|
|
6305
|
+
this.emit(m, ...g);
|
|
6306
|
+
}), this.modules.languageDetector && (p.languageDetector = a(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = a(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Xe(this.services, this.options), this.translator.on("*", (m, ...g) => {
|
|
6307
|
+
this.emit(m, ...g);
|
|
6307
6308
|
}), this.modules.external.forEach((m) => {
|
|
6308
6309
|
m.init && m.init(this);
|
|
6309
6310
|
});
|
|
@@ -6329,7 +6330,7 @@ class Fe extends rt {
|
|
|
6329
6330
|
loadResources(e, t = Ue) {
|
|
6330
6331
|
var i, o;
|
|
6331
6332
|
let r = t;
|
|
6332
|
-
const a =
|
|
6333
|
+
const a = R(e) ? e : this.language;
|
|
6333
6334
|
if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6334
6335
|
if ((a == null ? void 0 : a.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
|
|
6335
6336
|
const l = [], d = (c) => {
|
|
@@ -6378,7 +6379,7 @@ class Fe extends rt {
|
|
|
6378
6379
|
}, o = (l) => {
|
|
6379
6380
|
var u, p;
|
|
6380
6381
|
!e && !l && this.services.languageDetector && (l = []);
|
|
6381
|
-
const d =
|
|
6382
|
+
const d = R(l) ? l : l && l[0], c = this.store.hasLanguageSomeTranslations(d) ? d : this.services.languageUtils.getBestMatchFromCodes(R(l) ? [l] : l);
|
|
6382
6383
|
c && (this.language || a(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, (m) => {
|
|
6383
6384
|
i(m, c);
|
|
6384
6385
|
});
|
|
@@ -6400,7 +6401,7 @@ class Fe extends rt {
|
|
|
6400
6401
|
let p;
|
|
6401
6402
|
return d.keyPrefix && Array.isArray(i) ? p = i.map((m) => (typeof m == "function" && (m = Oe(m, c)), `${d.keyPrefix}${u}${m}`)) : (typeof i == "function" && (i = Oe(i, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${i}` : i), this.t(p, d);
|
|
6402
6403
|
};
|
|
6403
|
-
return
|
|
6404
|
+
return R(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = r, a;
|
|
6404
6405
|
}
|
|
6405
6406
|
t(...e) {
|
|
6406
6407
|
var t;
|
|
@@ -6432,7 +6433,7 @@ class Fe extends rt {
|
|
|
6432
6433
|
}
|
|
6433
6434
|
loadNamespaces(e, t) {
|
|
6434
6435
|
const r = Me();
|
|
6435
|
-
return this.options.ns ? (
|
|
6436
|
+
return this.options.ns ? (R(e) && (e = [e]), e.forEach((a) => {
|
|
6436
6437
|
this.options.ns.includes(a) || this.options.ns.push(a);
|
|
6437
6438
|
}), this.loadResources((a) => {
|
|
6438
6439
|
r.resolve(), t && t(a);
|
|
@@ -6440,7 +6441,7 @@ class Fe extends rt {
|
|
|
6440
6441
|
}
|
|
6441
6442
|
loadLanguages(e, t) {
|
|
6442
6443
|
const r = Me();
|
|
6443
|
-
|
|
6444
|
+
R(e) && (e = [e]);
|
|
6444
6445
|
const a = this.options.preload || [], i = e.filter((o) => !a.includes(o) && this.services.languageUtils.isSupportedCode(o));
|
|
6445
6446
|
return i.length ? (this.options.preload = a.concat(i), this.loadResources((o) => {
|
|
6446
6447
|
r.resolve(), t && t(o);
|
|
@@ -6551,107 +6552,107 @@ function Vi() {
|
|
|
6551
6552
|
(function(t, r) {
|
|
6552
6553
|
n.exports = r();
|
|
6553
6554
|
})(Fi, (function() {
|
|
6554
|
-
var t = 1e3, r = 6e4, a = 36e5, i = "millisecond", o = "second", l = "minute", d = "hour", c = "day", u = "week", p = "month", m = "quarter",
|
|
6555
|
-
var
|
|
6556
|
-
return "[" + $ + (
|
|
6557
|
-
} }, O = function($,
|
|
6558
|
-
var
|
|
6559
|
-
return !
|
|
6555
|
+
var t = 1e3, r = 6e4, a = 36e5, i = "millisecond", o = "second", l = "minute", d = "hour", c = "day", u = "week", p = "month", m = "quarter", g = "year", f = "date", x = "Invalid Date", D = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|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($) {
|
|
6556
|
+
var k = ["th", "st", "nd", "rd"], v = $ % 100;
|
|
6557
|
+
return "[" + $ + (k[(v - 20) % 10] || k[v] || k[0]) + "]";
|
|
6558
|
+
} }, O = function($, k, v) {
|
|
6559
|
+
var w = String($);
|
|
6560
|
+
return !w || w.length >= k ? $ : "" + Array(k + 1 - w.length).join(v) + $;
|
|
6560
6561
|
}, L = { s: O, z: function($) {
|
|
6561
|
-
var
|
|
6562
|
-
return (
|
|
6563
|
-
}, m: function $(
|
|
6564
|
-
if (
|
|
6565
|
-
var
|
|
6566
|
-
return +(-(
|
|
6562
|
+
var k = -$.utcOffset(), v = Math.abs(k), w = Math.floor(v / 60), C = v % 60;
|
|
6563
|
+
return (k <= 0 ? "+" : "-") + O(w, 2, "0") + ":" + O(C, 2, "0");
|
|
6564
|
+
}, m: function $(k, v) {
|
|
6565
|
+
if (k.date() < v.date()) return -$(v, k);
|
|
6566
|
+
var w = 12 * (v.year() - k.year()) + (v.month() - k.month()), C = k.clone().add(w, p), T = v - C < 0, P = k.clone().add(w + (T ? -1 : 1), p);
|
|
6567
|
+
return +(-(w + (v - C) / (T ? C - P : P - C)) || 0);
|
|
6567
6568
|
}, a: function($) {
|
|
6568
6569
|
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
6569
6570
|
}, p: function($) {
|
|
6570
|
-
return { M: p, y:
|
|
6571
|
+
return { M: p, y: g, w: u, d: c, D: f, h: d, m: l, s: o, ms: i, Q: m }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
6571
6572
|
}, u: function($) {
|
|
6572
6573
|
return $ === void 0;
|
|
6573
|
-
} },
|
|
6574
|
-
|
|
6574
|
+
} }, H = "en", j = {};
|
|
6575
|
+
j[H] = S;
|
|
6575
6576
|
var _ = "$isDayjsObject", K = function($) {
|
|
6576
|
-
return $ instanceof
|
|
6577
|
-
},
|
|
6578
|
-
var
|
|
6579
|
-
if (!
|
|
6580
|
-
if (typeof
|
|
6581
|
-
var T =
|
|
6582
|
-
|
|
6583
|
-
var
|
|
6584
|
-
if (!
|
|
6577
|
+
return $ instanceof z || !(!$ || !$[_]);
|
|
6578
|
+
}, G = function $(k, v, w) {
|
|
6579
|
+
var C;
|
|
6580
|
+
if (!k) return H;
|
|
6581
|
+
if (typeof k == "string") {
|
|
6582
|
+
var T = k.toLowerCase();
|
|
6583
|
+
j[T] && (C = T), v && (j[T] = v, C = T);
|
|
6584
|
+
var P = k.split("-");
|
|
6585
|
+
if (!C && P.length > 1) return $(P[0]);
|
|
6585
6586
|
} else {
|
|
6586
|
-
var
|
|
6587
|
-
|
|
6587
|
+
var F = k.name;
|
|
6588
|
+
j[F] = k, C = F;
|
|
6588
6589
|
}
|
|
6589
|
-
return !
|
|
6590
|
-
},
|
|
6590
|
+
return !w && C && (H = C), C || !w && H;
|
|
6591
|
+
}, N = function($, k) {
|
|
6591
6592
|
if (K($)) return $.clone();
|
|
6592
|
-
var
|
|
6593
|
-
return
|
|
6594
|
-
},
|
|
6595
|
-
|
|
6596
|
-
return
|
|
6593
|
+
var v = typeof k == "object" ? k : {};
|
|
6594
|
+
return v.date = $, v.args = arguments, new z(v);
|
|
6595
|
+
}, y = L;
|
|
6596
|
+
y.l = G, y.i = K, y.w = function($, k) {
|
|
6597
|
+
return N($, { locale: k.$L, utc: k.$u, x: k.$x, $offset: k.$offset });
|
|
6597
6598
|
};
|
|
6598
|
-
var
|
|
6599
|
-
function $(
|
|
6600
|
-
this.$L =
|
|
6601
|
-
}
|
|
6602
|
-
var
|
|
6603
|
-
return
|
|
6604
|
-
this.$d = (function(
|
|
6605
|
-
var
|
|
6606
|
-
if (
|
|
6607
|
-
if (
|
|
6608
|
-
if (
|
|
6609
|
-
if (typeof
|
|
6610
|
-
var
|
|
6611
|
-
if (
|
|
6612
|
-
var
|
|
6613
|
-
return T ? new Date(Date.UTC(
|
|
6599
|
+
var z = (function() {
|
|
6600
|
+
function $(v) {
|
|
6601
|
+
this.$L = G(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[_] = !0;
|
|
6602
|
+
}
|
|
6603
|
+
var k = $.prototype;
|
|
6604
|
+
return k.parse = function(v) {
|
|
6605
|
+
this.$d = (function(w) {
|
|
6606
|
+
var C = w.date, T = w.utc;
|
|
6607
|
+
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
6608
|
+
if (y.u(C)) return /* @__PURE__ */ new Date();
|
|
6609
|
+
if (C instanceof Date) return new Date(C);
|
|
6610
|
+
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
6611
|
+
var P = C.match(D);
|
|
6612
|
+
if (P) {
|
|
6613
|
+
var F = P[2] - 1 || 0, U = (P[7] || "0").substring(0, 3);
|
|
6614
|
+
return T ? new Date(Date.UTC(P[1], F, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, U)) : new Date(P[1], F, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, U);
|
|
6614
6615
|
}
|
|
6615
6616
|
}
|
|
6616
|
-
return new Date(
|
|
6617
|
-
})(
|
|
6618
|
-
},
|
|
6619
|
-
var
|
|
6620
|
-
this.$y =
|
|
6621
|
-
},
|
|
6622
|
-
return
|
|
6623
|
-
},
|
|
6624
|
-
return this.$d.toString() !==
|
|
6625
|
-
},
|
|
6626
|
-
var
|
|
6627
|
-
return this.startOf(
|
|
6628
|
-
},
|
|
6629
|
-
return
|
|
6630
|
-
},
|
|
6631
|
-
return this.endOf(
|
|
6632
|
-
},
|
|
6633
|
-
return
|
|
6634
|
-
},
|
|
6617
|
+
return new Date(C);
|
|
6618
|
+
})(v), this.init();
|
|
6619
|
+
}, k.init = function() {
|
|
6620
|
+
var v = this.$d;
|
|
6621
|
+
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
6622
|
+
}, k.$utils = function() {
|
|
6623
|
+
return y;
|
|
6624
|
+
}, k.isValid = function() {
|
|
6625
|
+
return this.$d.toString() !== x;
|
|
6626
|
+
}, k.isSame = function(v, w) {
|
|
6627
|
+
var C = N(v);
|
|
6628
|
+
return this.startOf(w) <= C && C <= this.endOf(w);
|
|
6629
|
+
}, k.isAfter = function(v, w) {
|
|
6630
|
+
return N(v) < this.startOf(w);
|
|
6631
|
+
}, k.isBefore = function(v, w) {
|
|
6632
|
+
return this.endOf(w) < N(v);
|
|
6633
|
+
}, k.$g = function(v, w, C) {
|
|
6634
|
+
return y.u(v) ? this[w] : this.set(C, v);
|
|
6635
|
+
}, k.unix = function() {
|
|
6635
6636
|
return Math.floor(this.valueOf() / 1e3);
|
|
6636
|
-
},
|
|
6637
|
+
}, k.valueOf = function() {
|
|
6637
6638
|
return this.$d.getTime();
|
|
6638
|
-
},
|
|
6639
|
-
var
|
|
6640
|
-
var me =
|
|
6639
|
+
}, k.startOf = function(v, w) {
|
|
6640
|
+
var C = this, T = !!y.u(w) || w, P = y.p(v), F = function(de, te) {
|
|
6641
|
+
var me = y.w(C.$u ? Date.UTC(C.$y, te, de) : new Date(C.$y, te, de), C);
|
|
6641
6642
|
return T ? me : me.endOf(c);
|
|
6642
6643
|
}, U = function(de, te) {
|
|
6643
|
-
return
|
|
6644
|
+
return y.w(C.toDate()[de].apply(C.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), C);
|
|
6644
6645
|
}, W = this.$W, q = this.$M, J = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
6645
|
-
switch (
|
|
6646
|
-
case
|
|
6647
|
-
return T ?
|
|
6646
|
+
switch (P) {
|
|
6647
|
+
case g:
|
|
6648
|
+
return T ? F(1, 0) : F(31, 11);
|
|
6648
6649
|
case p:
|
|
6649
|
-
return T ?
|
|
6650
|
+
return T ? F(1, q) : F(0, q + 1);
|
|
6650
6651
|
case u:
|
|
6651
6652
|
var se = this.$locale().weekStart || 0, Z = (W < se ? W + 7 : W) - se;
|
|
6652
|
-
return
|
|
6653
|
+
return F(T ? J - Z : J + (6 - Z), q);
|
|
6653
6654
|
case c:
|
|
6654
|
-
case
|
|
6655
|
+
case f:
|
|
6655
6656
|
return U(ce + "Hours", 0);
|
|
6656
6657
|
case d:
|
|
6657
6658
|
return U(ce + "Minutes", 1);
|
|
@@ -6662,41 +6663,41 @@ function Vi() {
|
|
|
6662
6663
|
default:
|
|
6663
6664
|
return this.clone();
|
|
6664
6665
|
}
|
|
6665
|
-
},
|
|
6666
|
-
return this.startOf(
|
|
6667
|
-
},
|
|
6668
|
-
var
|
|
6669
|
-
if (T === p || T ===
|
|
6670
|
-
var W = this.clone().set(
|
|
6671
|
-
W.$d[
|
|
6672
|
-
} else
|
|
6666
|
+
}, k.endOf = function(v) {
|
|
6667
|
+
return this.startOf(v, !1);
|
|
6668
|
+
}, k.$set = function(v, w) {
|
|
6669
|
+
var C, T = y.p(v), P = "set" + (this.$u ? "UTC" : ""), F = (C = {}, C[c] = P + "Date", C[f] = P + "Date", C[p] = P + "Month", C[g] = P + "FullYear", C[d] = P + "Hours", C[l] = P + "Minutes", C[o] = P + "Seconds", C[i] = P + "Milliseconds", C)[T], U = T === c ? this.$D + (w - this.$W) : w;
|
|
6670
|
+
if (T === p || T === g) {
|
|
6671
|
+
var W = this.clone().set(f, 1);
|
|
6672
|
+
W.$d[F](U), W.init(), this.$d = W.set(f, Math.min(this.$D, W.daysInMonth())).$d;
|
|
6673
|
+
} else F && this.$d[F](U);
|
|
6673
6674
|
return this.init(), this;
|
|
6674
|
-
},
|
|
6675
|
-
return this.clone().$set(
|
|
6676
|
-
},
|
|
6677
|
-
return this[
|
|
6678
|
-
},
|
|
6679
|
-
var
|
|
6680
|
-
|
|
6681
|
-
var
|
|
6682
|
-
var J =
|
|
6683
|
-
return
|
|
6675
|
+
}, k.set = function(v, w) {
|
|
6676
|
+
return this.clone().$set(v, w);
|
|
6677
|
+
}, k.get = function(v) {
|
|
6678
|
+
return this[y.p(v)]();
|
|
6679
|
+
}, k.add = function(v, w) {
|
|
6680
|
+
var C, T = this;
|
|
6681
|
+
v = Number(v);
|
|
6682
|
+
var P = y.p(w), F = function(q) {
|
|
6683
|
+
var J = N(T);
|
|
6684
|
+
return y.w(J.date(J.date() + Math.round(q * v)), T);
|
|
6684
6685
|
};
|
|
6685
|
-
if (
|
|
6686
|
-
if (
|
|
6687
|
-
if (
|
|
6688
|
-
if (
|
|
6689
|
-
var U = (
|
|
6690
|
-
return
|
|
6691
|
-
},
|
|
6692
|
-
return this.add(-1 *
|
|
6693
|
-
},
|
|
6694
|
-
var
|
|
6695
|
-
if (!this.isValid()) return
|
|
6696
|
-
var T =
|
|
6697
|
-
return te && (te[me] || te(
|
|
6686
|
+
if (P === p) return this.set(p, this.$M + v);
|
|
6687
|
+
if (P === g) return this.set(g, this.$y + v);
|
|
6688
|
+
if (P === c) return F(1);
|
|
6689
|
+
if (P === u) return F(7);
|
|
6690
|
+
var U = (C = {}, C[l] = r, C[d] = a, C[o] = t, C)[P] || 1, W = this.$d.getTime() + v * U;
|
|
6691
|
+
return y.w(W, this);
|
|
6692
|
+
}, k.subtract = function(v, w) {
|
|
6693
|
+
return this.add(-1 * v, w);
|
|
6694
|
+
}, k.format = function(v) {
|
|
6695
|
+
var w = this, C = this.$locale();
|
|
6696
|
+
if (!this.isValid()) return C.invalidDate || x;
|
|
6697
|
+
var T = v || "YYYY-MM-DDTHH:mm:ssZ", P = y.z(this), F = this.$H, U = this.$m, W = this.$M, q = C.weekdays, J = C.months, ce = C.meridiem, se = function(te, me, Pe, je) {
|
|
6698
|
+
return te && (te[me] || te(w, T)) || Pe[me].slice(0, je);
|
|
6698
6699
|
}, Z = function(te) {
|
|
6699
|
-
return
|
|
6700
|
+
return y.s(F % 12 || 12, te, "0");
|
|
6700
6701
|
}, de = ce || function(te, me, Pe) {
|
|
6701
6702
|
var je = te < 12 ? "AM" : "PM";
|
|
6702
6703
|
return Pe ? je.toLowerCase() : je;
|
|
@@ -6705,65 +6706,65 @@ function Vi() {
|
|
|
6705
6706
|
return me || (function(Pe) {
|
|
6706
6707
|
switch (Pe) {
|
|
6707
6708
|
case "YY":
|
|
6708
|
-
return String(
|
|
6709
|
+
return String(w.$y).slice(-2);
|
|
6709
6710
|
case "YYYY":
|
|
6710
|
-
return
|
|
6711
|
+
return y.s(w.$y, 4, "0");
|
|
6711
6712
|
case "M":
|
|
6712
6713
|
return W + 1;
|
|
6713
6714
|
case "MM":
|
|
6714
|
-
return
|
|
6715
|
+
return y.s(W + 1, 2, "0");
|
|
6715
6716
|
case "MMM":
|
|
6716
|
-
return se(
|
|
6717
|
+
return se(C.monthsShort, W, J, 3);
|
|
6717
6718
|
case "MMMM":
|
|
6718
6719
|
return se(J, W);
|
|
6719
6720
|
case "D":
|
|
6720
|
-
return
|
|
6721
|
+
return w.$D;
|
|
6721
6722
|
case "DD":
|
|
6722
|
-
return
|
|
6723
|
+
return y.s(w.$D, 2, "0");
|
|
6723
6724
|
case "d":
|
|
6724
|
-
return String(
|
|
6725
|
+
return String(w.$W);
|
|
6725
6726
|
case "dd":
|
|
6726
|
-
return se(
|
|
6727
|
+
return se(C.weekdaysMin, w.$W, q, 2);
|
|
6727
6728
|
case "ddd":
|
|
6728
|
-
return se(
|
|
6729
|
+
return se(C.weekdaysShort, w.$W, q, 3);
|
|
6729
6730
|
case "dddd":
|
|
6730
|
-
return q[
|
|
6731
|
+
return q[w.$W];
|
|
6731
6732
|
case "H":
|
|
6732
|
-
return String(
|
|
6733
|
+
return String(F);
|
|
6733
6734
|
case "HH":
|
|
6734
|
-
return
|
|
6735
|
+
return y.s(F, 2, "0");
|
|
6735
6736
|
case "h":
|
|
6736
6737
|
return Z(1);
|
|
6737
6738
|
case "hh":
|
|
6738
6739
|
return Z(2);
|
|
6739
6740
|
case "a":
|
|
6740
|
-
return de(
|
|
6741
|
+
return de(F, U, !0);
|
|
6741
6742
|
case "A":
|
|
6742
|
-
return de(
|
|
6743
|
+
return de(F, U, !1);
|
|
6743
6744
|
case "m":
|
|
6744
6745
|
return String(U);
|
|
6745
6746
|
case "mm":
|
|
6746
|
-
return
|
|
6747
|
+
return y.s(U, 2, "0");
|
|
6747
6748
|
case "s":
|
|
6748
|
-
return String(
|
|
6749
|
+
return String(w.$s);
|
|
6749
6750
|
case "ss":
|
|
6750
|
-
return
|
|
6751
|
+
return y.s(w.$s, 2, "0");
|
|
6751
6752
|
case "SSS":
|
|
6752
|
-
return
|
|
6753
|
+
return y.s(w.$ms, 3, "0");
|
|
6753
6754
|
case "Z":
|
|
6754
|
-
return
|
|
6755
|
+
return P;
|
|
6755
6756
|
}
|
|
6756
6757
|
return null;
|
|
6757
|
-
})(te) ||
|
|
6758
|
+
})(te) || P.replace(":", "");
|
|
6758
6759
|
}));
|
|
6759
|
-
},
|
|
6760
|
+
}, k.utcOffset = function() {
|
|
6760
6761
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6761
|
-
},
|
|
6762
|
-
var T,
|
|
6763
|
-
return
|
|
6762
|
+
}, k.diff = function(v, w, C) {
|
|
6763
|
+
var T, P = this, F = y.p(w), U = N(v), W = (U.utcOffset() - this.utcOffset()) * r, q = this - U, J = function() {
|
|
6764
|
+
return y.m(P, U);
|
|
6764
6765
|
};
|
|
6765
|
-
switch (
|
|
6766
|
-
case
|
|
6766
|
+
switch (F) {
|
|
6767
|
+
case g:
|
|
6767
6768
|
T = J() / 12;
|
|
6768
6769
|
break;
|
|
6769
6770
|
case p:
|
|
@@ -6790,36 +6791,36 @@ function Vi() {
|
|
|
6790
6791
|
default:
|
|
6791
6792
|
T = q;
|
|
6792
6793
|
}
|
|
6793
|
-
return
|
|
6794
|
-
},
|
|
6794
|
+
return C ? T : y.a(T);
|
|
6795
|
+
}, k.daysInMonth = function() {
|
|
6795
6796
|
return this.endOf(p).$D;
|
|
6796
|
-
},
|
|
6797
|
-
return
|
|
6798
|
-
},
|
|
6799
|
-
if (!
|
|
6800
|
-
var
|
|
6801
|
-
return T && (
|
|
6802
|
-
},
|
|
6803
|
-
return
|
|
6804
|
-
},
|
|
6797
|
+
}, k.$locale = function() {
|
|
6798
|
+
return j[this.$L];
|
|
6799
|
+
}, k.locale = function(v, w) {
|
|
6800
|
+
if (!v) return this.$L;
|
|
6801
|
+
var C = this.clone(), T = G(v, w, !0);
|
|
6802
|
+
return T && (C.$L = T), C;
|
|
6803
|
+
}, k.clone = function() {
|
|
6804
|
+
return y.w(this.$d, this);
|
|
6805
|
+
}, k.toDate = function() {
|
|
6805
6806
|
return new Date(this.valueOf());
|
|
6806
|
-
},
|
|
6807
|
+
}, k.toJSON = function() {
|
|
6807
6808
|
return this.isValid() ? this.toISOString() : null;
|
|
6808
|
-
},
|
|
6809
|
+
}, k.toISOString = function() {
|
|
6809
6810
|
return this.$d.toISOString();
|
|
6810
|
-
},
|
|
6811
|
+
}, k.toString = function() {
|
|
6811
6812
|
return this.$d.toUTCString();
|
|
6812
6813
|
}, $;
|
|
6813
|
-
})(),
|
|
6814
|
-
return
|
|
6815
|
-
|
|
6816
|
-
return this.$g(
|
|
6814
|
+
})(), A = z.prototype;
|
|
6815
|
+
return N.prototype = A, [["$ms", i], ["$s", o], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", g], ["$D", f]].forEach((function($) {
|
|
6816
|
+
A[$[1]] = function(k) {
|
|
6817
|
+
return this.$g(k, $[0], $[1]);
|
|
6817
6818
|
};
|
|
6818
|
-
})),
|
|
6819
|
-
return $.$i || ($(
|
|
6820
|
-
},
|
|
6821
|
-
return
|
|
6822
|
-
},
|
|
6819
|
+
})), N.extend = function($, k) {
|
|
6820
|
+
return $.$i || ($(k, z, N), $.$i = !0), N;
|
|
6821
|
+
}, N.locale = G, N.isDayjs = K, N.unix = function($) {
|
|
6822
|
+
return N(1e3 * $);
|
|
6823
|
+
}, N.en = j[H], N.Ls = j, N.p = {}, N;
|
|
6823
6824
|
}));
|
|
6824
6825
|
})(_e)), _e.exports;
|
|
6825
6826
|
}
|
|
@@ -7068,7 +7069,7 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7068
7069
|
setDateFilters: n,
|
|
7069
7070
|
hasAllFilter: e = !1
|
|
7070
7071
|
}) => {
|
|
7071
|
-
const [t, r] =
|
|
7072
|
+
const [t, r] = V([]), a = [
|
|
7072
7073
|
{ key: "week", label: Le("7D"), ...ne.getCommonDateRange("week") },
|
|
7073
7074
|
{ key: "month", label: Le("30D"), ...ne.getCommonDateRange("month") },
|
|
7074
7075
|
{ key: "threeMonth", label: Le("3M"), ...ne.getCommonDateRange("threeMonth") },
|
|
@@ -7084,7 +7085,7 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7084
7085
|
label: t.length === 2 && t[0] !== "" ? `${B("Custom")}: ${t[0]} / ${t[1]}` : B("Custom"),
|
|
7085
7086
|
...ne.getCommonDateRange("custom")
|
|
7086
7087
|
}
|
|
7087
|
-
], [i, o] =
|
|
7088
|
+
], [i, o] = V(), l = xe(() => e ? [
|
|
7088
7089
|
{ key: "all", label: B("All"), ...ne.getCommonDateRange("all") },
|
|
7089
7090
|
...a
|
|
7090
7091
|
] : a, [e, t]);
|
|
@@ -7102,7 +7103,7 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7102
7103
|
}
|
|
7103
7104
|
return c;
|
|
7104
7105
|
}
|
|
7105
|
-
return /* @__PURE__ */
|
|
7106
|
+
return /* @__PURE__ */ b(hi, { id: "tabs-container", children: [
|
|
7106
7107
|
/* @__PURE__ */ s(
|
|
7107
7108
|
mi,
|
|
7108
7109
|
{
|
|
@@ -7138,7 +7139,7 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7138
7139
|
}
|
|
7139
7140
|
)
|
|
7140
7141
|
] });
|
|
7141
|
-
},
|
|
7142
|
+
}, Tr = h.div`
|
|
7142
7143
|
.ant-dropdown-menu {
|
|
7143
7144
|
border-radius: 2px !important;
|
|
7144
7145
|
background: var(--color-bg-quaternary, #2f2f2f) !important;
|
|
@@ -7217,15 +7218,15 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7217
7218
|
items: a,
|
|
7218
7219
|
className: "dropdown-menu"
|
|
7219
7220
|
},
|
|
7220
|
-
popupRender: (i) => /* @__PURE__ */ s(
|
|
7221
|
+
popupRender: (i) => /* @__PURE__ */ s(Tr, { children: i }),
|
|
7221
7222
|
placement: "bottomLeft",
|
|
7222
7223
|
children: /* @__PURE__ */ s(_i, { children: B("Export") })
|
|
7223
7224
|
}
|
|
7224
7225
|
);
|
|
7225
7226
|
}, Wi = (n, e, t) => {
|
|
7226
7227
|
const r = n.filter((p) => e[p.id]), a = Object.keys(r[0]), i = r.map((p) => a.map((m) => {
|
|
7227
|
-
const
|
|
7228
|
-
return
|
|
7228
|
+
const g = p[m];
|
|
7229
|
+
return g == null ? "" : typeof g == "object" ? Object.values(g).find((x) => typeof x != "object") ?? "" : g;
|
|
7229
7230
|
})), o = [a, ...i].map(
|
|
7230
7231
|
(p) => p.map((m) => `"${(m || "").toString().replace(/"/g, '""')}"`).join(",")
|
|
7231
7232
|
).join(`\r
|
|
@@ -7234,14 +7235,14 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7234
7235
|
}, Yi = (n, e, t) => {
|
|
7235
7236
|
const a = n.filter((p) => e[p.id]).map((p) => {
|
|
7236
7237
|
const m = {};
|
|
7237
|
-
return Object.entries(p).forEach(([
|
|
7238
|
-
if (
|
|
7239
|
-
m[
|
|
7240
|
-
else if (typeof
|
|
7241
|
-
const
|
|
7242
|
-
m[
|
|
7238
|
+
return Object.entries(p).forEach(([g, f]) => {
|
|
7239
|
+
if (f == null)
|
|
7240
|
+
m[g] = "";
|
|
7241
|
+
else if (typeof f == "object") {
|
|
7242
|
+
const x = Object.values(f).find((D) => typeof D != "object");
|
|
7243
|
+
m[g] = x ?? "";
|
|
7243
7244
|
} else
|
|
7244
|
-
m[
|
|
7245
|
+
m[g] = f;
|
|
7245
7246
|
}), m;
|
|
7246
7247
|
}), i = Ge.utils.json_to_sheet(a), o = Ge.utils.book_new();
|
|
7247
7248
|
Ge.utils.book_append_sheet(o, i, "Data");
|
|
@@ -7293,7 +7294,7 @@ const Or = /* @__PURE__ */ Ni(Ai), ji = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7293
7294
|
items: a,
|
|
7294
7295
|
className: "dropdown-menu"
|
|
7295
7296
|
},
|
|
7296
|
-
popupRender: (i) => /* @__PURE__ */ s(
|
|
7297
|
+
popupRender: (i) => /* @__PURE__ */ s(Tr, { children: i }),
|
|
7297
7298
|
placement: "bottomLeft",
|
|
7298
7299
|
children: /* @__PURE__ */ s(Zi, { children: B("Export") })
|
|
7299
7300
|
}
|
|
@@ -7396,18 +7397,18 @@ const Go = ({
|
|
|
7396
7397
|
...i
|
|
7397
7398
|
}) => {
|
|
7398
7399
|
const o = async (d) => {
|
|
7399
|
-
var
|
|
7400
|
+
var g, f;
|
|
7400
7401
|
const { file: c } = d, u = URL.createObjectURL(c), p = { name: c.name, uid: c.uid, status: "uploading", url: u }, m = [...n, p];
|
|
7401
7402
|
e(m);
|
|
7402
7403
|
try {
|
|
7403
|
-
const
|
|
7404
|
-
|
|
7405
|
-
const D = await a(
|
|
7406
|
-
if ((
|
|
7407
|
-
const I = (
|
|
7404
|
+
const x = new FormData();
|
|
7405
|
+
x.append("files", c);
|
|
7406
|
+
const D = await a(x);
|
|
7407
|
+
if ((g = D == null ? void 0 : D.data) != null && g.success) {
|
|
7408
|
+
const I = (f = D == null ? void 0 : D.data) == null ? void 0 : f.value[0];
|
|
7408
7409
|
e(
|
|
7409
7410
|
m.map(
|
|
7410
|
-
(
|
|
7411
|
+
(S) => S.uid === c.uid ? { ...S, status: "done", ...I } : S
|
|
7411
7412
|
)
|
|
7412
7413
|
);
|
|
7413
7414
|
} else
|
|
@@ -7566,8 +7567,8 @@ const Go = ({
|
|
|
7566
7567
|
margin-left: 0.9rem;
|
|
7567
7568
|
}
|
|
7568
7569
|
`, no = () => {
|
|
7569
|
-
const [n, e] =
|
|
7570
|
-
return /* @__PURE__ */
|
|
7570
|
+
const [n, e] = V(!1);
|
|
7571
|
+
return /* @__PURE__ */ b(ro, { children: [
|
|
7571
7572
|
/* @__PURE__ */ s("button", { className: "icon sidebar", onClick: () => e(!0), children: /* @__PURE__ */ s(fr, {}) }),
|
|
7572
7573
|
n && /* @__PURE__ */ s(gt, {})
|
|
7573
7574
|
] });
|
|
@@ -7581,26 +7582,26 @@ const Go = ({
|
|
|
7581
7582
|
needsBreadcrumb: o,
|
|
7582
7583
|
customTabFilter: l
|
|
7583
7584
|
}) => {
|
|
7584
|
-
const { hasPermission: d } = Se(), { id: c } = Ar(), u =
|
|
7585
|
+
const { hasPermission: d } = Se(), { id: c } = Ar(), u = ze(), p = ke(), m = xe(() => {
|
|
7585
7586
|
const L = u.pathname.split("/");
|
|
7586
7587
|
return L[L.length - 1] || r;
|
|
7587
|
-
}, [u.pathname, r]), [
|
|
7588
|
+
}, [u.pathname, r]), [g, f] = V(null), [x, D] = V(null), I = (L) => {
|
|
7588
7589
|
p(`${n}/${c}/${L}`);
|
|
7589
|
-
},
|
|
7590
|
-
var
|
|
7591
|
-
return (
|
|
7590
|
+
}, S = () => l ? l(e) : e.filter((L) => {
|
|
7591
|
+
var H;
|
|
7592
|
+
return (H = L.permission) == null ? void 0 : H.some((j) => d(j));
|
|
7592
7593
|
}), O = () => {
|
|
7593
7594
|
const L = t[m] || t[r];
|
|
7594
7595
|
return L ? typeof L == "object" && L !== null && "type" in L ? {
|
|
7595
7596
|
...L,
|
|
7596
7597
|
props: {
|
|
7597
7598
|
...L.props,
|
|
7598
|
-
setExtraTabItem:
|
|
7599
|
+
setExtraTabItem: f,
|
|
7599
7600
|
setSecondExtraTab: D
|
|
7600
7601
|
}
|
|
7601
7602
|
} : L : null;
|
|
7602
7603
|
};
|
|
7603
|
-
return /* @__PURE__ */
|
|
7604
|
+
return /* @__PURE__ */ b(ae, { children: [
|
|
7604
7605
|
/* @__PURE__ */ s(no, {}),
|
|
7605
7606
|
o && /* @__PURE__ */ s(ri, { logo: a, breadcrumbItems: i }),
|
|
7606
7607
|
/* @__PURE__ */ s(
|
|
@@ -7609,7 +7610,7 @@ const Go = ({
|
|
|
7609
7610
|
activeKey: m,
|
|
7610
7611
|
onChange: I,
|
|
7611
7612
|
tabBarExtraContent: {
|
|
7612
|
-
right: /* @__PURE__ */
|
|
7613
|
+
right: /* @__PURE__ */ b(eo, { children: [
|
|
7613
7614
|
/* @__PURE__ */ s(to, { children: /* @__PURE__ */ s(
|
|
7614
7615
|
Er,
|
|
7615
7616
|
{
|
|
@@ -7623,13 +7624,13 @@ const Go = ({
|
|
|
7623
7624
|
}))
|
|
7624
7625
|
}
|
|
7625
7626
|
) }),
|
|
7626
|
-
/* @__PURE__ */
|
|
7627
|
-
|
|
7628
|
-
|
|
7627
|
+
/* @__PURE__ */ b(Xi, { children: [
|
|
7628
|
+
x,
|
|
7629
|
+
g
|
|
7629
7630
|
] })
|
|
7630
7631
|
] })
|
|
7631
7632
|
},
|
|
7632
|
-
items:
|
|
7633
|
+
items: S()
|
|
7633
7634
|
}
|
|
7634
7635
|
),
|
|
7635
7636
|
/* @__PURE__ */ s("div", { children: O() })
|
|
@@ -7643,48 +7644,48 @@ const Go = ({
|
|
|
7643
7644
|
getItemById: i,
|
|
7644
7645
|
onSetFormValues: o
|
|
7645
7646
|
}) => {
|
|
7646
|
-
const l = ke(), [d] = $e.useForm(), [c, u] =
|
|
7647
|
+
const l = ke(), [d] = $e.useForm(), [c, u] = V(n == "new"), [p, m] = V(null), g = async (x) => {
|
|
7647
7648
|
const D = window.location.pathname, I = D.substring(0, D.lastIndexOf("/"));
|
|
7648
7649
|
try {
|
|
7649
7650
|
if (p) {
|
|
7650
|
-
let
|
|
7651
|
-
return n ?
|
|
7651
|
+
let S;
|
|
7652
|
+
return n ? S = await r({ ...x, id: n }) : S = await r(x), t !== !1 && S.data.success === !0 && l(I), S;
|
|
7652
7653
|
} else {
|
|
7653
|
-
const
|
|
7654
|
-
return t !== !1 &&
|
|
7654
|
+
const S = await a(x);
|
|
7655
|
+
return t !== !1 && S.data.success === !0 && l(I), S;
|
|
7655
7656
|
}
|
|
7656
|
-
} catch (
|
|
7657
|
-
if (
|
|
7658
|
-
const O =
|
|
7657
|
+
} catch (S) {
|
|
7658
|
+
if (S.status === 400) {
|
|
7659
|
+
const O = S.response.data, L = Te(O.errors);
|
|
7659
7660
|
d.setFields(L);
|
|
7660
7661
|
}
|
|
7661
7662
|
}
|
|
7662
|
-
},
|
|
7663
|
+
}, f = async (x) => {
|
|
7663
7664
|
try {
|
|
7664
|
-
const D = await i(
|
|
7665
|
+
const D = await i(x), I = o ? o(D.data) : D.data;
|
|
7665
7666
|
m(I), d.setFieldsValue(I);
|
|
7666
7667
|
} catch (D) {
|
|
7667
7668
|
console.log(D, "Error in Form Controller.");
|
|
7668
7669
|
}
|
|
7669
7670
|
};
|
|
7670
7671
|
return Y(() => {
|
|
7671
|
-
u(n == "new"), n != "new" ?
|
|
7672
|
+
u(n == "new"), n != "new" ? f(Number(n)) : d.resetFields();
|
|
7672
7673
|
}, [n, e]), {
|
|
7673
7674
|
form: d,
|
|
7674
7675
|
item: p,
|
|
7675
7676
|
getItemById: i,
|
|
7676
7677
|
isAddingForm: c,
|
|
7677
|
-
handleSave:
|
|
7678
|
+
handleSave: g
|
|
7678
7679
|
};
|
|
7679
7680
|
}, Wo = ({ id: n, formItem: e, updateItem: t, addItem: r, getItemById: a }) => {
|
|
7680
|
-
const [i] = $e.useForm(), [o, l] =
|
|
7681
|
+
const [i] = $e.useForm(), [o, l] = V(null), d = async (u) => {
|
|
7681
7682
|
try {
|
|
7682
7683
|
let p;
|
|
7683
7684
|
return n ? p = await t({ ...u }) : p = await r(u), p;
|
|
7684
7685
|
} catch (p) {
|
|
7685
7686
|
if (p.status === 400) {
|
|
7686
|
-
const m = p.response.data,
|
|
7687
|
-
i.setFields(
|
|
7687
|
+
const m = p.response.data, g = Te(m.errors);
|
|
7688
|
+
i.setFields(g);
|
|
7688
7689
|
}
|
|
7689
7690
|
throw p;
|
|
7690
7691
|
}
|
|
@@ -7711,7 +7712,7 @@ const Go = ({
|
|
|
7711
7712
|
handleSave: d
|
|
7712
7713
|
};
|
|
7713
7714
|
}, Yo = () => {
|
|
7714
|
-
const n = ke(), { setUser: e } = Se(), [t, r] =
|
|
7715
|
+
const n = ke(), { setUser: e } = Se(), [t, r] = V({
|
|
7715
7716
|
visible: !1,
|
|
7716
7717
|
token: ""
|
|
7717
7718
|
}), a = (o) => {
|
|
@@ -7739,7 +7740,7 @@ const Go = ({
|
|
|
7739
7740
|
};
|
|
7740
7741
|
};
|
|
7741
7742
|
function Ko(n) {
|
|
7742
|
-
const { navigator: e } = dt(jr), t =
|
|
7743
|
+
const { navigator: e } = dt(jr), t = ze();
|
|
7743
7744
|
Y(() => {
|
|
7744
7745
|
if (!n) return;
|
|
7745
7746
|
const r = e.push, a = e.replace, i = (o) => (...l) => {
|
|
@@ -7857,7 +7858,7 @@ export {
|
|
|
7857
7858
|
Uo as GenericTabsPage,
|
|
7858
7859
|
Eo as GridViewPage,
|
|
7859
7860
|
Ke as LabelText,
|
|
7860
|
-
|
|
7861
|
+
To as ModalHost,
|
|
7861
7862
|
ra as ModalHostButtonWrapper,
|
|
7862
7863
|
Ea as NoData,
|
|
7863
7864
|
Lo as NoDataSpanForSelect,
|
|
@@ -7867,7 +7868,7 @@ export {
|
|
|
7867
7868
|
xt as Popup,
|
|
7868
7869
|
ta as PopupFooterContainer,
|
|
7869
7870
|
Xn as PopupHeader,
|
|
7870
|
-
|
|
7871
|
+
zo as PopupMFA,
|
|
7871
7872
|
$o as RejectButton,
|
|
7872
7873
|
re as SortDirections,
|
|
7873
7874
|
Mo as Spinner,
|
|
@@ -7889,7 +7890,7 @@ export {
|
|
|
7889
7890
|
Jo as numberFormatterWithComma,
|
|
7890
7891
|
Xo as parseCommissionErrors,
|
|
7891
7892
|
Aa as parseErrorMessageKey,
|
|
7892
|
-
|
|
7893
|
+
Te as parseServerErrors,
|
|
7893
7894
|
Qo as showByType,
|
|
7894
7895
|
Zo as useAutofillStartDetection,
|
|
7895
7896
|
Za as useContactInfoController,
|