affiliate-front-shared 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +433 -433
- package/dist/index.mjs.map +1 -1
- package/dist/modules/GridViewPage/types.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $r = Object.defineProperty;
|
|
2
2
|
var Or = (n, e, t) => e in n ? $r(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Be = (n, e, t) => Or(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as s, Fragment as ae, jsxs as y } from "react/jsx-runtime";
|
|
5
5
|
import * as H from "react";
|
|
6
6
|
import qt, { createContext as Jt, useContext as ct, useEffect as Y, useState as j, useRef as Xe, useMemo as we } from "react";
|
|
7
7
|
import { Menu as Qt, DatePicker as Xt, Table as dt, Dropdown as $e, Select as pt, Input as et, Modal as er, Button as Oe, notification as kt, Form as Ce, Checkbox as Er, Skeleton as Ir, Pagination as Tr, Breadcrumb as zr, Spin as tr, Empty as rr, Tabs as Mr } from "antd";
|
|
@@ -20,7 +20,7 @@ function oo({
|
|
|
20
20
|
services: n,
|
|
21
21
|
children: e
|
|
22
22
|
}) {
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ s(ir.Provider, { value: n, children: e });
|
|
24
24
|
}
|
|
25
25
|
function Ie() {
|
|
26
26
|
return ct(ir);
|
|
@@ -33,7 +33,7 @@ const U = (n, e) => he(`general.${n}`, e), oe = (n, e) => he(`actions.${n}`, e),
|
|
|
33
33
|
function so({ t: n, children: e }) {
|
|
34
34
|
return St(n), Y(() => {
|
|
35
35
|
St(n);
|
|
36
|
-
}, [n]), /* @__PURE__ */
|
|
36
|
+
}, [n]), /* @__PURE__ */ s(ae, { children: e });
|
|
37
37
|
}
|
|
38
38
|
const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.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 })), Wr = m(ut)`
|
|
39
39
|
color: var(--color-text-primary, #131412);
|
|
@@ -150,16 +150,16 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
`, ar = (n, e = []) => {
|
|
153
|
-
const [t, r] = j(null), [i, a] = j(null), [o,
|
|
153
|
+
const [t, r] = j(null), [i, a] = j(null), [o, l] = j(!0), [d, c] = j(null), u = async () => {
|
|
154
154
|
var p;
|
|
155
155
|
try {
|
|
156
|
-
|
|
156
|
+
l(!0), r(null);
|
|
157
157
|
const g = await n();
|
|
158
158
|
r(g), (p = g == null ? void 0 : g.data) != null && p.items && a(g.data.items);
|
|
159
159
|
} catch {
|
|
160
160
|
c("Failed to fetch data");
|
|
161
161
|
} finally {
|
|
162
|
-
|
|
162
|
+
l(!1);
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
return Y(() => {
|
|
@@ -272,7 +272,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
272
272
|
position: absolute !important;
|
|
273
273
|
z-index: 10000;
|
|
274
274
|
`, tn = ({ closeProfileDropdown: n }) => {
|
|
275
|
-
const e = Ee(), { getCustomers: t, postSelectedCustomer: r } = Ie(), { storedThemeMode: i, logout: a, setThemeMode: o, user:
|
|
275
|
+
const e = Ee(), { getCustomers: t, postSelectedCustomer: r } = Ie(), { storedThemeMode: i, logout: a, setThemeMode: o, user: l } = Te(), { i18n: d } = Fr();
|
|
276
276
|
function c() {
|
|
277
277
|
a(), e("/authorization/login");
|
|
278
278
|
}
|
|
@@ -280,8 +280,8 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
280
280
|
d.changeLanguage(C), window.location.reload();
|
|
281
281
|
}
|
|
282
282
|
const p = (C, I) => /* @__PURE__ */ y(Qr, { children: [
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
I && /* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ s(Xr, { children: C }),
|
|
284
|
+
I && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(Jr, {}) })
|
|
285
285
|
] }), { response: g } = ar(t ?? (() => Promise.resolve({ data: [] })), []);
|
|
286
286
|
async function f(C) {
|
|
287
287
|
if (!r) return;
|
|
@@ -289,16 +289,16 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
289
289
|
localStorage.setItem("useToken", A.token), localStorage.setItem("userData", JSON.stringify(A));
|
|
290
290
|
}
|
|
291
291
|
const h = () => {
|
|
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__ */
|
|
294
|
+
return /* @__PURE__ */ s(en, { children: /* @__PURE__ */ y(
|
|
295
295
|
Q,
|
|
296
296
|
{
|
|
297
297
|
mode: window.innerWidth < 780 ? "inline" : "vertical",
|
|
298
298
|
getPopupContainer: (C) => C.parentElement || document.body,
|
|
299
299
|
onClick: () => n(!1),
|
|
300
300
|
children: [
|
|
301
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ s(Q.Item, { onClick: h, children: "Profile" }, "10-1"),
|
|
302
302
|
/* @__PURE__ */ y(Q.Item, { children: [
|
|
303
303
|
" ",
|
|
304
304
|
"Notifications"
|
|
@@ -307,29 +307,29 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
307
307
|
" ",
|
|
308
308
|
"SecurityAccess"
|
|
309
309
|
] }, "10-3"),
|
|
310
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ s(Q.Divider, {}),
|
|
311
311
|
/* @__PURE__ */ y(Q.SubMenu, { title: "Language", children: [
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => u("en"), children: p("English", d.language === "en") }, "20-1"),
|
|
313
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => u("ka"), children: p("Georgian", d.language === "ka") }, "20-2")
|
|
314
314
|
] }, "20"),
|
|
315
315
|
/* @__PURE__ */ y(Q.SubMenu, { title: "ColorTheme", children: [
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => o(!1), children: p("Light", i === !1) }, "30-1"),
|
|
317
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => o(!0), children: p("Dark", i === !0) }, "30-2"),
|
|
318
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => o(null), children: p(
|
|
319
319
|
`DefinedBySystem (${window.matchMedia("(prefers-color-scheme: dark)").matches ? "Dark" : "Light"})`,
|
|
320
320
|
i === null
|
|
321
321
|
) }, "30-3")
|
|
322
322
|
] }, "30"),
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ s(Q.Divider, {}),
|
|
324
|
+
/* @__PURE__ */ s(Q.SubMenu, { title: "ConnectedAccounts", children: ((g == null ? void 0 : g.data) || []).map((C) => /* @__PURE__ */ s(Q.Item, { onClick: () => f(C.id), children: p(C.name) }, C.id)) }, "40"),
|
|
325
|
+
/* @__PURE__ */ s(Q.Divider, {}),
|
|
326
|
+
/* @__PURE__ */ s(Q.Item, { onClick: c, children: "LogOut" }, "100")
|
|
327
327
|
]
|
|
328
328
|
},
|
|
329
329
|
"10"
|
|
330
330
|
) });
|
|
331
331
|
}, or = ({ items: n, topLogoPrimaryUrl: e, shortName: t }) => {
|
|
332
|
-
const r = Ve(), [i, a] = j(!1), o = Xe(null),
|
|
332
|
+
const r = Ve(), [i, a] = j(!1), o = Xe(null), l = () => a((d) => !d);
|
|
333
333
|
return Y(() => {
|
|
334
334
|
function d(c) {
|
|
335
335
|
o.current && !o.current.contains(c.target) && a(!1);
|
|
@@ -337,14 +337,14 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
337
337
|
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
338
338
|
}, []), /* @__PURE__ */ y(Yr, { className: "sidebar-wrapper", children: [
|
|
339
339
|
/* @__PURE__ */ y(Kr, { ref: o, children: [
|
|
340
|
-
/* @__PURE__ */ y(Zr, { onClick:
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ y(Zr, { onClick: l, children: [
|
|
341
|
+
/* @__PURE__ */ s("img", { src: e, alt: "logo" }),
|
|
342
|
+
/* @__PURE__ */ s("span", { children: t }),
|
|
343
|
+
/* @__PURE__ */ s(Wr, {})
|
|
344
344
|
] }),
|
|
345
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ s("div", { children: i && /* @__PURE__ */ s(tn, { closeProfileDropdown: a }) })
|
|
346
346
|
] }),
|
|
347
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ s(qr, { mode: "inline", selectedKeys: [r.pathname], items: n })
|
|
348
348
|
] });
|
|
349
349
|
}, rn = m.div`
|
|
350
350
|
min-height: 100vh;
|
|
@@ -374,8 +374,8 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
374
374
|
`, an = m.div`
|
|
375
375
|
background: var(--color-bg-primary, #fff);
|
|
376
376
|
`, lo = ({ children: n }) => /* @__PURE__ */ y(rn, { children: [
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ s(or, {}),
|
|
378
|
+
/* @__PURE__ */ s(nn, { children: /* @__PURE__ */ s(an, { children: n }) })
|
|
379
379
|
] }), on = m.div`
|
|
380
380
|
display: grid;
|
|
381
381
|
grid-template-columns: 33.625rem 1fr;
|
|
@@ -606,10 +606,10 @@ const Cn = m.span`
|
|
|
606
606
|
className: r,
|
|
607
607
|
color: i,
|
|
608
608
|
commissionStatus: a
|
|
609
|
-
}) => /* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
612
|
-
a && e === U("Commission") && /* @__PURE__ */
|
|
609
|
+
}) => /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ y(bn, { color: i, onClick: t, className: r, children: [
|
|
610
|
+
/* @__PURE__ */ s(wn, { children: e }),
|
|
611
|
+
/* @__PURE__ */ s(xn, { children: n }),
|
|
612
|
+
a && e === U("Commission") && /* @__PURE__ */ s(Cn, { color: i, children: a })
|
|
613
613
|
] }) }) }), co = ({
|
|
614
614
|
pageTitle: n,
|
|
615
615
|
pageDesc: e,
|
|
@@ -618,27 +618,27 @@ const Cn = m.span`
|
|
|
618
618
|
colorPrimary: i,
|
|
619
619
|
children: a
|
|
620
620
|
}) => {
|
|
621
|
-
const [o] = Hr(),
|
|
621
|
+
const [o] = Hr(), l = o.get("backPath"), d = Ee();
|
|
622
622
|
function c(u) {
|
|
623
623
|
d(u);
|
|
624
624
|
}
|
|
625
625
|
return /* @__PURE__ */ y(on, { children: [
|
|
626
626
|
/* @__PURE__ */ y(cn, { children: [
|
|
627
|
-
/* @__PURE__ */
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ s("header", { children: l && /* @__PURE__ */ s(ln, { onClick: () => c(l), children: /* @__PURE__ */ s(yn, {}) }) }),
|
|
628
|
+
/* @__PURE__ */ s(dn, { children: /* @__PURE__ */ y(pn, { children: [
|
|
629
|
+
/* @__PURE__ */ s(hn, { children: n }),
|
|
630
|
+
/* @__PURE__ */ s(fn, { children: e })
|
|
631
631
|
] }) }),
|
|
632
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ s(gn, { children: /* @__PURE__ */ s(
|
|
633
633
|
kn,
|
|
634
634
|
{
|
|
635
|
-
boxTopText: /* @__PURE__ */
|
|
636
|
-
boxBottomText: /* @__PURE__ */
|
|
635
|
+
boxTopText: /* @__PURE__ */ s("img", { className: "card-logo", src: t, alt: "logo" }),
|
|
636
|
+
boxBottomText: /* @__PURE__ */ s(sn, { children: r })
|
|
637
637
|
}
|
|
638
638
|
) }),
|
|
639
639
|
a,
|
|
640
640
|
/* @__PURE__ */ y(mn, { children: [
|
|
641
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ s(
|
|
642
642
|
"img",
|
|
643
643
|
{
|
|
644
644
|
className: "terms-logo",
|
|
@@ -649,12 +649,12 @@ const Cn = m.span`
|
|
|
649
649
|
}
|
|
650
650
|
),
|
|
651
651
|
/* @__PURE__ */ y("nav", { children: [
|
|
652
|
-
/* @__PURE__ */
|
|
653
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ s("a", { href: "", children: /* @__PURE__ */ s(Dt, { children: ee("TermsOfUsage") }) }),
|
|
653
|
+
/* @__PURE__ */ s("a", { href: "", children: /* @__PURE__ */ s(Dt, { children: ee("PrivacyPolicy") }) })
|
|
654
654
|
] })
|
|
655
655
|
] })
|
|
656
656
|
] }),
|
|
657
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ s(un, { backgroundcolor: i, children: /* @__PURE__ */ s("img", { src: t, alt: "logo" }) })
|
|
658
658
|
] });
|
|
659
659
|
};
|
|
660
660
|
var me = /* @__PURE__ */ ((n) => (n[n.TABLE = 0] = "TABLE", n[n.LIST = 1] = "LIST", n[n.BOARD = 2] = "BOARD", n))(me || {}), re = /* @__PURE__ */ ((n) => (n[n.ASC = 0] = "ASC", n[n.DESC = 1] = "DESC", n))(re || {}), ke = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.COLUMN = 1] = "COLUMN", n[n.TYPE = 2] = "TYPE", n[n.VALUE = 3] = "VALUE", n))(ke || {}), ue = /* @__PURE__ */ ((n) => (n[n.INPUT = 0] = "INPUT", n[n.SELECT = 1] = "SELECT", n[n.TwoComponentSelect = 2] = "TwoComponentSelect", n[n.DATEPICKER = 3] = "DATEPICKER", n[n.MULTISELECT = 4] = "MULTISELECT", n))(ue || {});
|
|
@@ -666,8 +666,8 @@ const $t = (n) => {
|
|
|
666
666
|
const g = e;
|
|
667
667
|
e = u ?? (typeof p != "object" || p === null) ? p : Object.assign({}, e, p), t.forEach((f) => f(e, g));
|
|
668
668
|
}
|
|
669
|
-
}, i = () => e,
|
|
670
|
-
return
|
|
669
|
+
}, i = () => e, l = { setState: r, getState: i, getInitialState: () => d, subscribe: (c) => (t.add(c), () => t.delete(c)) }, d = e = n(r, i, l);
|
|
670
|
+
return l;
|
|
671
671
|
}, Sn = ((n) => n ? $t(n) : $t), lr = {
|
|
672
672
|
Page: 1,
|
|
673
673
|
PageSize: 25
|
|
@@ -720,21 +720,21 @@ const $t = (n) => {
|
|
|
720
720
|
},
|
|
721
721
|
setSortItems: (t) => {
|
|
722
722
|
e().isHydrated && (n({ sortItems: t }), n((r) => {
|
|
723
|
-
const { Sort: i, Asc: a, ...o } = r.filters,
|
|
723
|
+
const { Sort: i, Asc: a, ...o } = r.filters, l = t.length > 0 ? {
|
|
724
724
|
Sort: t[0].param,
|
|
725
725
|
Asc: t[0].direction === re.ASC
|
|
726
726
|
} : {};
|
|
727
727
|
return {
|
|
728
728
|
filters: {
|
|
729
729
|
...o,
|
|
730
|
-
...
|
|
730
|
+
...l
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
733
|
}));
|
|
734
734
|
},
|
|
735
735
|
setFilterItems: (t, r = !1) => {
|
|
736
736
|
if (!e().isHydrated || (n({ filterItems: t }), !r)) return;
|
|
737
|
-
const { filters: i, sortItems: a } = e(), { PageSize: o, Sort:
|
|
737
|
+
const { filters: i, sortItems: a } = e(), { PageSize: o, Sort: l, Asc: d, QuickSearch: c } = i, u = {};
|
|
738
738
|
t.forEach((p) => {
|
|
739
739
|
u[p.dataIndex] = p.filterValue, p.isCountryGroup !== void 0 && (u.isCountryGroup = p.isCountryGroup);
|
|
740
740
|
}), n({
|
|
@@ -742,7 +742,7 @@ const $t = (n) => {
|
|
|
742
742
|
Page: 1,
|
|
743
743
|
PageSize: o,
|
|
744
744
|
QuickSearch: c || "",
|
|
745
|
-
...a.length > 0 ? { Sort:
|
|
745
|
+
...a.length > 0 ? { Sort: l, Asc: d } : {},
|
|
746
746
|
...u
|
|
747
747
|
}
|
|
748
748
|
});
|
|
@@ -760,13 +760,13 @@ const $t = (n) => {
|
|
|
760
760
|
}
|
|
761
761
|
})), cr = Jt(null), Dn = ({ children: n }) => {
|
|
762
762
|
const e = Xe();
|
|
763
|
-
return e.current || (e.current = Ln()), /* @__PURE__ */
|
|
763
|
+
return e.current || (e.current = Ln()), /* @__PURE__ */ s(cr.Provider, { value: e.current, children: n });
|
|
764
764
|
}, $ = (n) => {
|
|
765
765
|
const e = ct(cr);
|
|
766
766
|
if (!e) throw new Error("GridViewStoreProvider is missing");
|
|
767
767
|
return Nr(e, n);
|
|
768
768
|
}, $n = () => {
|
|
769
|
-
const n = $((u) => u.hydrateFromStorage), e = $((u) => u.isHydrated), t = $((u) => u.filters), r = $((u) => u.filterItems), i = $((u) => u.sortItems), a = $((u) => u.hideItems), o = $((u) => u.groupByArr),
|
|
769
|
+
const n = $((u) => u.hydrateFromStorage), e = $((u) => u.isHydrated), t = $((u) => u.filters), r = $((u) => u.filterItems), i = $((u) => u.sortItems), a = $((u) => u.hideItems), o = $((u) => u.groupByArr), l = $((u) => u.activeTableView), d = $((u) => u.selectedConfig), c = Ve();
|
|
770
770
|
Y(() => (n(`grid-filters:${c.pathname}`), sessionStorage.clear()), []), Y(() => {
|
|
771
771
|
e && sessionStorage.setItem(
|
|
772
772
|
`grid-filters:${c.pathname}`,
|
|
@@ -774,7 +774,7 @@ const $t = (n) => {
|
|
|
774
774
|
filters: t,
|
|
775
775
|
filterItems: r,
|
|
776
776
|
sortItems: i,
|
|
777
|
-
activeTableView:
|
|
777
|
+
activeTableView: l,
|
|
778
778
|
hideItems: a,
|
|
779
779
|
groupByArr: o,
|
|
780
780
|
selectedConfig: d
|
|
@@ -784,7 +784,7 @@ const $t = (n) => {
|
|
|
784
784
|
t,
|
|
785
785
|
r,
|
|
786
786
|
i,
|
|
787
|
-
|
|
787
|
+
l,
|
|
788
788
|
a,
|
|
789
789
|
o,
|
|
790
790
|
d,
|
|
@@ -1202,7 +1202,7 @@ const ft = m.div`
|
|
|
1202
1202
|
}, [r]), r;
|
|
1203
1203
|
}, ht = (n) => /* @__PURE__ */ H.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.createElement("path", { d: "M7.99947 2.38989L3.72266 6.6667L4.66547 7.60951L7.3328 4.94218V13.3334H8.66613V4.94218L11.3335 7.60951L12.2763 6.6667L7.99947 2.38989Z", fill: "currentColor", fillOpacity: 0.75 })), gt = (n) => /* @__PURE__ */ H.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.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 })), jn = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.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__ */ H.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" })), Bn = ({ children: n, overlay: e, placement: t = "bottomRight" }) => {
|
|
1204
1204
|
const [r, i] = j(!1);
|
|
1205
|
-
return /* @__PURE__ */
|
|
1205
|
+
return /* @__PURE__ */ s(
|
|
1206
1206
|
$e,
|
|
1207
1207
|
{
|
|
1208
1208
|
open: r,
|
|
@@ -1210,11 +1210,11 @@ const ft = m.div`
|
|
|
1210
1210
|
placement: t,
|
|
1211
1211
|
popupRender: () => typeof e == "function" ? e(i) : e,
|
|
1212
1212
|
trigger: ["click"],
|
|
1213
|
-
children: /* @__PURE__ */
|
|
1213
|
+
children: /* @__PURE__ */ s("button", { className: "icon", children: n })
|
|
1214
1214
|
}
|
|
1215
1215
|
);
|
|
1216
1216
|
}, fr = ({ placement: n, children: e }) => {
|
|
1217
|
-
const t = $((f) => f.columns), r = $((f) => f.sortItems), i = $((f) => f.setSortItems), a = r[0], [o,
|
|
1217
|
+
const t = $((f) => f.columns), r = $((f) => f.sortItems), i = $((f) => f.setSortItems), a = r[0], [o, l] = j(""), [d, c] = j(
|
|
1218
1218
|
(a == null ? void 0 : a.direction) === re.ASC ? re.ASC : re.DESC
|
|
1219
1219
|
), u = t.filter(
|
|
1220
1220
|
(f) => f.title.toLowerCase().includes(o.toLowerCase()) && f.sortable !== !1
|
|
@@ -1231,20 +1231,20 @@ const ft = m.div`
|
|
|
1231
1231
|
function g() {
|
|
1232
1232
|
i([]);
|
|
1233
1233
|
}
|
|
1234
|
-
return /* @__PURE__ */
|
|
1234
|
+
return /* @__PURE__ */ s(
|
|
1235
1235
|
Bn,
|
|
1236
1236
|
{
|
|
1237
1237
|
overlay: (f) => /* @__PURE__ */ y(ft, { children: [
|
|
1238
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ s(
|
|
1239
1239
|
"input",
|
|
1240
1240
|
{
|
|
1241
1241
|
type: "text",
|
|
1242
1242
|
placeholder: "Search...",
|
|
1243
1243
|
value: o,
|
|
1244
|
-
onChange: (h) =>
|
|
1244
|
+
onChange: (h) => l(h.target.value)
|
|
1245
1245
|
}
|
|
1246
1246
|
),
|
|
1247
|
-
/* @__PURE__ */
|
|
1247
|
+
/* @__PURE__ */ s("div", { children: u.map((h, C) => /* @__PURE__ */ y(
|
|
1248
1248
|
"button",
|
|
1249
1249
|
{
|
|
1250
1250
|
onClick: () => {
|
|
@@ -1252,7 +1252,7 @@ const ft = m.div`
|
|
|
1252
1252
|
},
|
|
1253
1253
|
children: [
|
|
1254
1254
|
h.title,
|
|
1255
|
-
h.title == (a == null ? void 0 : a.title) && /* @__PURE__ */
|
|
1255
|
+
h.title == (a == null ? void 0 : a.title) && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(He, {}) })
|
|
1256
1256
|
]
|
|
1257
1257
|
},
|
|
1258
1258
|
C
|
|
@@ -1265,9 +1265,9 @@ const ft = m.div`
|
|
|
1265
1265
|
c(re.ASC), a && p(a, re.ASC);
|
|
1266
1266
|
},
|
|
1267
1267
|
children: [
|
|
1268
|
-
/* @__PURE__ */
|
|
1268
|
+
/* @__PURE__ */ s(ht, {}),
|
|
1269
1269
|
"Ascending",
|
|
1270
|
-
d === re.ASC && /* @__PURE__ */
|
|
1270
|
+
d === re.ASC && /* @__PURE__ */ s(He, {})
|
|
1271
1271
|
]
|
|
1272
1272
|
}
|
|
1273
1273
|
),
|
|
@@ -1278,20 +1278,20 @@ const ft = m.div`
|
|
|
1278
1278
|
c(re.DESC), a && p(a, re.DESC);
|
|
1279
1279
|
},
|
|
1280
1280
|
children: [
|
|
1281
|
-
/* @__PURE__ */
|
|
1281
|
+
/* @__PURE__ */ s(gt, {}),
|
|
1282
1282
|
"Descending",
|
|
1283
|
-
d === re.DESC && /* @__PURE__ */
|
|
1283
|
+
d === re.DESC && /* @__PURE__ */ s(He, {})
|
|
1284
1284
|
]
|
|
1285
1285
|
}
|
|
1286
1286
|
)
|
|
1287
1287
|
] })
|
|
1288
1288
|
] }),
|
|
1289
1289
|
placement: n || "bottomRight",
|
|
1290
|
-
children: e || /* @__PURE__ */
|
|
1290
|
+
children: e || /* @__PURE__ */ s(jn, {})
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
1293
|
}, mt = ({ placement: n, children: e, onSelect: t, CustomFilters: r }) => {
|
|
1294
|
-
const [i, a] = j(!1), [o,
|
|
1294
|
+
const [i, a] = j(!1), [o, l] = j(""), d = $((g) => g.columns), c = $((g) => g.filterItems), u = $((g) => g.setFilterItems);
|
|
1295
1295
|
function p(g) {
|
|
1296
1296
|
t ? t(g) : u([
|
|
1297
1297
|
...c,
|
|
@@ -1301,24 +1301,24 @@ const ft = m.div`
|
|
|
1301
1301
|
}
|
|
1302
1302
|
]), a(!1);
|
|
1303
1303
|
}
|
|
1304
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ s(
|
|
1305
1305
|
$e,
|
|
1306
1306
|
{
|
|
1307
1307
|
open: i,
|
|
1308
1308
|
onOpenChange: a,
|
|
1309
1309
|
placement: n || "bottomRight",
|
|
1310
1310
|
popupRender: () => /* @__PURE__ */ y(ft, { children: [
|
|
1311
|
-
/* @__PURE__ */
|
|
1311
|
+
/* @__PURE__ */ s(
|
|
1312
1312
|
"input",
|
|
1313
1313
|
{
|
|
1314
1314
|
type: "text",
|
|
1315
1315
|
placeholder: oe("Search") + "...",
|
|
1316
1316
|
value: o,
|
|
1317
|
-
onChange: (g) =>
|
|
1317
|
+
onChange: (g) => l(g.target.value)
|
|
1318
1318
|
}
|
|
1319
1319
|
),
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
r && /* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ s("div", { children: d.filter((g) => g.filterable !== !1).filter((g) => !c.some((f) => f.title == g.title)).filter((g) => g.filterable !== !1).filter((g) => g.title.toLowerCase().includes(o)).map((g, f) => /* @__PURE__ */ s("button", { onClick: () => p(g), children: g.title }, f)) }),
|
|
1321
|
+
r && /* @__PURE__ */ s(
|
|
1322
1322
|
r,
|
|
1323
1323
|
{
|
|
1324
1324
|
setFilterItems: u,
|
|
@@ -1329,7 +1329,7 @@ const ft = m.div`
|
|
|
1329
1329
|
)
|
|
1330
1330
|
] }),
|
|
1331
1331
|
trigger: ["click"],
|
|
1332
|
-
children: /* @__PURE__ */
|
|
1332
|
+
children: /* @__PURE__ */ s("button", { className: "icon", children: e })
|
|
1333
1333
|
}
|
|
1334
1334
|
);
|
|
1335
1335
|
}, Gn = {
|
|
@@ -1453,7 +1453,7 @@ const Wn = ({
|
|
|
1453
1453
|
exportButton: i,
|
|
1454
1454
|
hasSelect: a,
|
|
1455
1455
|
selectProps: o,
|
|
1456
|
-
GridPageTopLeftComponent:
|
|
1456
|
+
GridPageTopLeftComponent: l,
|
|
1457
1457
|
noNeedSidebarResponsiveButton: d
|
|
1458
1458
|
}) => {
|
|
1459
1459
|
const c = Ee(), u = $((v) => v.filters), p = $((v) => v.hasCreateBtn), g = $((v) => v.setFilters), f = $((v) => v.setFilterItems), h = $((v) => v.setSortItems), [C, I] = j(() => {
|
|
@@ -1487,10 +1487,10 @@ const Wn = ({
|
|
|
1487
1487
|
r ? D() : c("new");
|
|
1488
1488
|
}
|
|
1489
1489
|
return /* @__PURE__ */ y(Tn, { children: [
|
|
1490
|
-
!d && /* @__PURE__ */
|
|
1491
|
-
|
|
1490
|
+
!d && /* @__PURE__ */ s("button", { className: "icon sidebar", onClick: () => S(!0), children: /* @__PURE__ */ s(An, {}) }),
|
|
1491
|
+
l && /* @__PURE__ */ s(l, {}),
|
|
1492
1492
|
/* @__PURE__ */ y("div", { className: "page-actions", children: [
|
|
1493
|
-
K.length > 0 && /* @__PURE__ */
|
|
1493
|
+
K.length > 0 && /* @__PURE__ */ s(
|
|
1494
1494
|
Et,
|
|
1495
1495
|
{
|
|
1496
1496
|
showSearch: !0,
|
|
@@ -1501,7 +1501,7 @@ const Wn = ({
|
|
|
1501
1501
|
onChange: (v) => v != null ? P(v) : w(null)
|
|
1502
1502
|
}
|
|
1503
1503
|
),
|
|
1504
|
-
a && o && /* @__PURE__ */
|
|
1504
|
+
a && o && /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1505
1505
|
Et,
|
|
1506
1506
|
{
|
|
1507
1507
|
options: o.options,
|
|
@@ -1512,7 +1512,7 @@ const Wn = ({
|
|
|
1512
1512
|
}
|
|
1513
1513
|
) }),
|
|
1514
1514
|
t && t(T, V),
|
|
1515
|
-
C ? /* @__PURE__ */
|
|
1515
|
+
C ? /* @__PURE__ */ s(
|
|
1516
1516
|
"input",
|
|
1517
1517
|
{
|
|
1518
1518
|
type: "text",
|
|
@@ -1520,14 +1520,14 @@ const Wn = ({
|
|
|
1520
1520
|
defaultValue: (u == null ? void 0 : u.QuickSearch) ?? "",
|
|
1521
1521
|
onChange: L
|
|
1522
1522
|
}
|
|
1523
|
-
) : /* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1523
|
+
) : /* @__PURE__ */ s("button", { onClick: () => I(!0), children: oe("Search") }),
|
|
1524
|
+
/* @__PURE__ */ s(fr, {}),
|
|
1525
|
+
/* @__PURE__ */ s(mt, { CustomFilters: e, children: /* @__PURE__ */ s(We, {}) }),
|
|
1526
|
+
/* @__PURE__ */ s("button", { className: "icon", onClick: k, children: /* @__PURE__ */ s(pr, {}) }),
|
|
1527
1527
|
i && i,
|
|
1528
|
-
p && /* @__PURE__ */
|
|
1528
|
+
p && /* @__PURE__ */ s("button", { onClick: b, className: "create-btn", children: oe("Create") })
|
|
1529
1529
|
] }),
|
|
1530
|
-
A && /* @__PURE__ */
|
|
1530
|
+
A && /* @__PURE__ */ s(or, {})
|
|
1531
1531
|
] });
|
|
1532
1532
|
}, Yn = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.createElement("path", { d: "M8.66665 7.3335H12.6666V8.66683H8.66665V12.6668H7.33331V8.66683H3.33331V7.3335H7.33331V3.3335H8.66665V7.3335Z", fill: "white" })), gr = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.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) {
|
|
@@ -1537,8 +1537,8 @@ const Wn = ({
|
|
|
1537
1537
|
static toMMddyyyy(e) {
|
|
1538
1538
|
const t = this.parseDate(e);
|
|
1539
1539
|
if (!t) return null;
|
|
1540
|
-
const r = t.getMonth() + 1, i = t.getDate(), a = t.getFullYear(), o = r < 10 ? `0${r}` : `${r}`,
|
|
1541
|
-
return `${o}/${
|
|
1540
|
+
const r = t.getMonth() + 1, i = t.getDate(), a = t.getFullYear(), o = r < 10 ? `0${r}` : `${r}`, l = i < 10 ? `0${i}` : `${i}`;
|
|
1541
|
+
return `${o}/${l}/${a}`;
|
|
1542
1542
|
}
|
|
1543
1543
|
static toLocal(e, t = !1, r = !1) {
|
|
1544
1544
|
const i = this.parseDate(e);
|
|
@@ -1571,7 +1571,7 @@ const Wn = ({
|
|
|
1571
1571
|
static toISODateStringWithTime(e) {
|
|
1572
1572
|
const t = this.parseDate(e);
|
|
1573
1573
|
if (!t) return null;
|
|
1574
|
-
const r = t.getFullYear(), i = t.getMonth() + 1, a = t.getDate(), o = t.getHours(),
|
|
1574
|
+
const r = t.getFullYear(), i = t.getMonth() + 1, a = t.getDate(), o = t.getHours(), l = t.getMinutes(), d = `${o < 10 ? "0" : ""}${o}:${l < 10 ? "0" : ""}${l}`;
|
|
1575
1575
|
return `${r}-${i < 10 ? "0" : ""}${i}-${a < 10 ? "0" : ""}${a} ` + d;
|
|
1576
1576
|
}
|
|
1577
1577
|
static monthDayYear(e) {
|
|
@@ -1596,12 +1596,12 @@ const Wn = ({
|
|
|
1596
1596
|
static withdrawalTableDateFormat(e) {
|
|
1597
1597
|
const t = this.parseDate(e);
|
|
1598
1598
|
if (!t || isNaN(t.getTime())) return null;
|
|
1599
|
-
const r = e.getFullYear(), i = e.getMonth() + 1, a = e.getDate(), o = `${r}/${i}/${a}`,
|
|
1599
|
+
const r = e.getFullYear(), i = e.getMonth() + 1, a = e.getDate(), o = `${r}/${i}/${a}`, l = t.toLocaleTimeString("en-US", {
|
|
1600
1600
|
hour: "2-digit",
|
|
1601
1601
|
minute: "2-digit",
|
|
1602
1602
|
hour12: !1
|
|
1603
1603
|
});
|
|
1604
|
-
return `${o}, ${
|
|
1604
|
+
return `${o}, ${l}`;
|
|
1605
1605
|
}
|
|
1606
1606
|
static getDateOnlyMonthAndNumber(e) {
|
|
1607
1607
|
if (!e) return "";
|
|
@@ -1747,8 +1747,8 @@ const Wn = ({
|
|
|
1747
1747
|
if (!isNaN(e - r))
|
|
1748
1748
|
return new Date(r);
|
|
1749
1749
|
if (/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)) {
|
|
1750
|
-
const [a, o,
|
|
1751
|
-
return new Date(a, o - 1,
|
|
1750
|
+
const [a, o, l] = e.split("-").map((d) => +d);
|
|
1751
|
+
return new Date(a, o - 1, l);
|
|
1752
1752
|
}
|
|
1753
1753
|
let i;
|
|
1754
1754
|
if (i = e.match(this.ISO8601_DATE_REGEX))
|
|
@@ -1764,8 +1764,8 @@ const Wn = ({
|
|
|
1764
1764
|
let r = 0, i = 0;
|
|
1765
1765
|
const a = e[8] ? t.setUTCFullYear : t.setFullYear, o = e[8] ? t.setUTCHours : t.setHours;
|
|
1766
1766
|
e[9] && (r = Number(e[9] + e[10]), i = Number(e[9] + e[11])), a.call(t, Number(e[1]), Number(e[2]) - 1, Number(e[3]));
|
|
1767
|
-
const
|
|
1768
|
-
return o.call(t,
|
|
1767
|
+
const l = Number(e[4] || 0) - r, d = Number(e[5] || 0) - i, c = Number(e[6] || 0), u = Math.round(parseFloat("0." + (e[7] || 0)) * 1e3);
|
|
1768
|
+
return o.call(t, l, d, c, u), t;
|
|
1769
1769
|
}
|
|
1770
1770
|
static isDate(e) {
|
|
1771
1771
|
return e instanceof Date && !isNaN(e.valueOf());
|
|
@@ -2276,11 +2276,11 @@ const ri = ({
|
|
|
2276
2276
|
postMyFilter: i,
|
|
2277
2277
|
putMyFilter: a
|
|
2278
2278
|
}) => {
|
|
2279
|
-
const [o] = Ce.useForm(),
|
|
2279
|
+
const [o] = Ce.useForm(), l = ye((c) => c.setOnOk), d = ye((c) => c.close);
|
|
2280
2280
|
return Y(() => {
|
|
2281
2281
|
t && o.setFieldsValue({ name: t.name });
|
|
2282
2282
|
}, [t, o]), Y(() => {
|
|
2283
|
-
|
|
2283
|
+
l(async () => {
|
|
2284
2284
|
try {
|
|
2285
2285
|
const c = await o.validateFields();
|
|
2286
2286
|
t ? await a({
|
|
@@ -2294,9 +2294,9 @@ const ri = ({
|
|
|
2294
2294
|
o.setFields(u);
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
|
-
}, [n, e, t, r, o,
|
|
2298
|
-
/* @__PURE__ */
|
|
2299
|
-
/* @__PURE__ */
|
|
2297
|
+
}, [n, e, t, r, o, l, d]), /* @__PURE__ */ y(Ce, { form: o, children: [
|
|
2298
|
+
/* @__PURE__ */ s(Ye, { children: U("ConfigurationName") }),
|
|
2299
|
+
/* @__PURE__ */ s(Ce.Item, { name: "name", children: /* @__PURE__ */ s(mr, {}) })
|
|
2300
2300
|
] });
|
|
2301
2301
|
}, ni = (n) => /* @__PURE__ */ H.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.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" })), Le = m(ni)`
|
|
2302
2302
|
cursor: pointer;
|
|
@@ -2308,7 +2308,7 @@ const ri = ({
|
|
|
2308
2308
|
transition: 0.1s;
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
|
-
`, ii = () => /* @__PURE__ */
|
|
2311
|
+
`, ii = () => /* @__PURE__ */ s(bt, { children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("p", { children: U("DeleteRecordQuestion") }) }) }), ai = m(Er)`
|
|
2312
2312
|
.ant-checkbox-inner {
|
|
2313
2313
|
background-color: transparent;
|
|
2314
2314
|
border: 1px solid #ccc;
|
|
@@ -2340,7 +2340,7 @@ const ri = ({
|
|
|
2340
2340
|
var w;
|
|
2341
2341
|
(w = e == null ? void 0 : e.current) == null || w.focus();
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function l(w) {
|
|
2344
2344
|
r(
|
|
2345
2345
|
t.map(
|
|
2346
2346
|
(N) => N.title == n.title ? { ...N, filterValue: w.id, filterLabel: w.name } : N
|
|
@@ -2411,7 +2411,7 @@ const ri = ({
|
|
|
2411
2411
|
}, 0);
|
|
2412
2412
|
}, [i]);
|
|
2413
2413
|
const I = {
|
|
2414
|
-
[ue.INPUT]: /* @__PURE__ */
|
|
2414
|
+
[ue.INPUT]: /* @__PURE__ */ s(
|
|
2415
2415
|
"input",
|
|
2416
2416
|
{
|
|
2417
2417
|
ref: e,
|
|
@@ -2421,10 +2421,10 @@ const ri = ({
|
|
|
2421
2421
|
onChange: f
|
|
2422
2422
|
}
|
|
2423
2423
|
),
|
|
2424
|
-
[ue.SELECT]: /* @__PURE__ */
|
|
2424
|
+
[ue.SELECT]: /* @__PURE__ */ s("div", { children: (D = (S = n == null ? void 0 : n.filters) == null ? void 0 : S.options) == null ? void 0 : D.map((w) => /* @__PURE__ */ s("button", { onClick: () => l(w), children: w.name }, w.id)) }),
|
|
2425
2425
|
[ue.TwoComponentSelect]: /* @__PURE__ */ y(ae, { children: [
|
|
2426
|
-
/* @__PURE__ */
|
|
2427
|
-
/* @__PURE__ */
|
|
2426
|
+
/* @__PURE__ */ s(Nn, { children: (T = n == null ? void 0 : n.filters) == null ? void 0 : T.firstGroupName }),
|
|
2427
|
+
/* @__PURE__ */ s(Fn, { children: (B = (V = n == null ? void 0 : n.filters) == null ? void 0 : V.options) == null ? void 0 : B.map((w) => /* @__PURE__ */ s(
|
|
2428
2428
|
"button",
|
|
2429
2429
|
{
|
|
2430
2430
|
onClick: () => d(w, !1),
|
|
@@ -2433,8 +2433,8 @@ const ri = ({
|
|
|
2433
2433
|
w.id
|
|
2434
2434
|
)) })
|
|
2435
2435
|
] }),
|
|
2436
|
-
[ue.MULTISELECT]: /* @__PURE__ */
|
|
2437
|
-
[ue.DATEPICKER]: /* @__PURE__ */
|
|
2436
|
+
[ue.MULTISELECT]: /* @__PURE__ */ s("div", { children: (K = (_ = n == null ? void 0 : n.filters) == null ? void 0 : _.options) == null ? void 0 : K.map((w) => /* @__PURE__ */ s(Rn, { children: /* @__PURE__ */ s(ai, { onChange: () => p(w == null ? void 0 : w.id), children: /* @__PURE__ */ s(Hn, { children: w.name }) }) }, w.id)) }),
|
|
2437
|
+
[ue.DATEPICKER]: /* @__PURE__ */ s(
|
|
2438
2438
|
dr,
|
|
2439
2439
|
{
|
|
2440
2440
|
open: !0,
|
|
@@ -2485,7 +2485,7 @@ const ri = ({
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
)
|
|
2488
|
-
}, A = /* @__PURE__ */
|
|
2488
|
+
}, A = /* @__PURE__ */ s(
|
|
2489
2489
|
ft,
|
|
2490
2490
|
{
|
|
2491
2491
|
style: {
|
|
@@ -2495,11 +2495,11 @@ const ri = ({
|
|
|
2495
2495
|
}
|
|
2496
2496
|
);
|
|
2497
2497
|
return /* @__PURE__ */ y(ot, { children: [
|
|
2498
|
-
/* @__PURE__ */
|
|
2499
|
-
/* @__PURE__ */
|
|
2498
|
+
/* @__PURE__ */ s(mt, { placement: "bottomLeft", onSelect: g, children: /* @__PURE__ */ y("span", { children: [
|
|
2499
|
+
/* @__PURE__ */ s(pr, {}),
|
|
2500
2500
|
n.title
|
|
2501
2501
|
] }) }),
|
|
2502
|
-
/* @__PURE__ */
|
|
2502
|
+
/* @__PURE__ */ s(
|
|
2503
2503
|
$e,
|
|
2504
2504
|
{
|
|
2505
2505
|
overlayClassName: "debug-dropdwon",
|
|
@@ -2512,13 +2512,13 @@ const ri = ({
|
|
|
2512
2512
|
var N;
|
|
2513
2513
|
return ((N = w == null ? void 0 : w.parentElement) == null ? void 0 : N.parentElement) ?? document.body;
|
|
2514
2514
|
},
|
|
2515
|
-
children: /* @__PURE__ */
|
|
2515
|
+
children: /* @__PURE__ */ s("div", { children: n.filterValue ? n.filterLabel ? n.filterLabel : n.filterValue : "NotSelected" })
|
|
2516
2516
|
}
|
|
2517
2517
|
),
|
|
2518
|
-
/* @__PURE__ */
|
|
2518
|
+
/* @__PURE__ */ s("span", { onClick: C, children: /* @__PURE__ */ s(yt, {}) })
|
|
2519
2519
|
] });
|
|
2520
2520
|
}, si = () => {
|
|
2521
|
-
const n = $((h) => h.filterItems), e = $((h) => h.sortItems), t = $((h) => h.setSelectedConfig), r = $((h) => h.resetStore), i = $((h) => h.selectedConfig), { deleteMyFilter: a } = Ie(), o = $((h) => h.bumpConfigsVersion), { open:
|
|
2521
|
+
const n = $((h) => h.filterItems), e = $((h) => h.sortItems), t = $((h) => h.setSelectedConfig), r = $((h) => h.resetStore), i = $((h) => h.selectedConfig), { deleteMyFilter: a } = Ie(), o = $((h) => h.bumpConfigsVersion), { open: l, store: d, close: c } = ye(), u = hr();
|
|
2522
2522
|
async function p() {
|
|
2523
2523
|
try {
|
|
2524
2524
|
if (!i || !a) return;
|
|
@@ -2532,7 +2532,7 @@ const ri = ({
|
|
|
2532
2532
|
component: ii,
|
|
2533
2533
|
title: i ? "UpdateConfiguration" : "NameYourConfiguration",
|
|
2534
2534
|
footerOptions: {
|
|
2535
|
-
okText: /* @__PURE__ */
|
|
2535
|
+
okText: /* @__PURE__ */ s(
|
|
2536
2536
|
Ke,
|
|
2537
2537
|
{
|
|
2538
2538
|
onClick: () => {
|
|
@@ -2540,13 +2540,13 @@ const ri = ({
|
|
|
2540
2540
|
},
|
|
2541
2541
|
children: /* @__PURE__ */ y("span", { className: "arrow-styled", children: [
|
|
2542
2542
|
"Delete",
|
|
2543
|
-
/* @__PURE__ */
|
|
2543
|
+
/* @__PURE__ */ s(Le, {})
|
|
2544
2544
|
] })
|
|
2545
2545
|
}
|
|
2546
2546
|
),
|
|
2547
2547
|
cancelText: "Cancel"
|
|
2548
2548
|
}
|
|
2549
|
-
}),
|
|
2549
|
+
}), l();
|
|
2550
2550
|
}
|
|
2551
2551
|
function f() {
|
|
2552
2552
|
const h = JSON.stringify({ filterItems: n, sortItems: e });
|
|
@@ -2562,29 +2562,29 @@ const ri = ({
|
|
|
2562
2562
|
},
|
|
2563
2563
|
title: i ? "UpdateConfiguration" : "NameYourConfiguration",
|
|
2564
2564
|
footerOptions: {
|
|
2565
|
-
okText: /* @__PURE__ */
|
|
2565
|
+
okText: /* @__PURE__ */ s(Ke, { children: /* @__PURE__ */ y("span", { className: "arrow-styled", children: [
|
|
2566
2566
|
"Save",
|
|
2567
|
-
/* @__PURE__ */
|
|
2567
|
+
/* @__PURE__ */ s(Le, {})
|
|
2568
2568
|
] }) }),
|
|
2569
2569
|
cancelText: "Cancel"
|
|
2570
2570
|
}
|
|
2571
|
-
}),
|
|
2571
|
+
}), l();
|
|
2572
2572
|
}
|
|
2573
2573
|
return /* @__PURE__ */ y(Mn, { children: [
|
|
2574
|
-
e.length > 0 && /* @__PURE__ */
|
|
2574
|
+
e.length > 0 && /* @__PURE__ */ s(fr, { placement: "bottomLeft", children: /* @__PURE__ */ s(ot, { className: "sort", children: /* @__PURE__ */ y("span", { children: [
|
|
2575
2575
|
e[0].title,
|
|
2576
|
-
e[0].direction == re.ASC ? /* @__PURE__ */
|
|
2576
|
+
e[0].direction == re.ASC ? /* @__PURE__ */ s(ht, {}) : /* @__PURE__ */ s(gt, {})
|
|
2577
2577
|
] }) }) }),
|
|
2578
|
-
n.map((h) => /* @__PURE__ */
|
|
2579
|
-
/* @__PURE__ */
|
|
2580
|
-
/* @__PURE__ */
|
|
2578
|
+
n.map((h) => /* @__PURE__ */ s(oi, { item: h }, h.title)),
|
|
2579
|
+
/* @__PURE__ */ s(mt, { placement: "bottomLeft", children: /* @__PURE__ */ s(ot, { className: "add-filter", children: /* @__PURE__ */ y("span", { children: [
|
|
2580
|
+
/* @__PURE__ */ s(Yn, {}),
|
|
2581
2581
|
"AddFilter"
|
|
2582
2582
|
] }) }) }),
|
|
2583
2583
|
/* @__PURE__ */ y(Pn, { children: [
|
|
2584
|
-
/* @__PURE__ */
|
|
2585
|
-
i && /* @__PURE__ */
|
|
2584
|
+
/* @__PURE__ */ s("button", { onClick: f, children: i ? "UpdateConfiguration" : "SaveConfiguration" }),
|
|
2585
|
+
i && /* @__PURE__ */ s("button", { onClick: g, children: "DeleteConfiguration" }),
|
|
2586
2586
|
/* @__PURE__ */ y("button", { onClick: r, children: [
|
|
2587
|
-
/* @__PURE__ */
|
|
2587
|
+
/* @__PURE__ */ s(gr, {}),
|
|
2588
2588
|
"ResetConditions"
|
|
2589
2589
|
] })
|
|
2590
2590
|
] })
|
|
@@ -2945,18 +2945,18 @@ function ui(n) {
|
|
|
2945
2945
|
}
|
|
2946
2946
|
function fi({ item: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
2947
2947
|
const i = $((a) => a.checkedValue);
|
|
2948
|
-
return /* @__PURE__ */
|
|
2948
|
+
return /* @__PURE__ */ s(
|
|
2949
2949
|
"tr",
|
|
2950
2950
|
{
|
|
2951
2951
|
onClick: r ? () => r(n) : void 0,
|
|
2952
2952
|
className: `${i && i[n[t]] ? "checked" : ""}`,
|
|
2953
|
-
children: e.map((a) => /* @__PURE__ */
|
|
2953
|
+
children: e.map((a) => /* @__PURE__ */ s("td", { children: a != null && a.render ? a.render(n[a.dataIndex], n) : n[a.dataIndex] }, `${n[t]}-${a.dataIndex}`))
|
|
2954
2954
|
},
|
|
2955
2955
|
n[t]
|
|
2956
2956
|
);
|
|
2957
2957
|
}
|
|
2958
2958
|
function wt({ rows: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
2959
|
-
return n.map((i) => /* @__PURE__ */
|
|
2959
|
+
return n.map((i) => /* @__PURE__ */ s(
|
|
2960
2960
|
fi,
|
|
2961
2961
|
{
|
|
2962
2962
|
item: i,
|
|
@@ -2968,20 +2968,20 @@ function wt({ rows: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
|
2968
2968
|
));
|
|
2969
2969
|
}
|
|
2970
2970
|
function hi({ rowLength: n, columnLength: e }) {
|
|
2971
|
-
return Array(n).fill(null).map((t, r) => /* @__PURE__ */
|
|
2971
|
+
return Array(n).fill(null).map((t, r) => /* @__PURE__ */ s("tr", { children: Array(e).fill(null).map((i, a) => /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(Ir, { active: !0, title: !1, paragraph: { rows: 1, width: "100%" } }) }, `${r}-${a}`)) }, `skeleton-row-${r}`));
|
|
2972
2972
|
}
|
|
2973
2973
|
function gi({ subGroups: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
2974
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((i) => /* @__PURE__ */ y(qt.Fragment, { children: [
|
|
2975
2975
|
/* @__PURE__ */ y("tr", { className: "sub-group-header", children: [
|
|
2976
|
-
/* @__PURE__ */
|
|
2977
|
-
/* @__PURE__ */
|
|
2976
|
+
/* @__PURE__ */ s("td", {}),
|
|
2977
|
+
/* @__PURE__ */ s("td", { colSpan: e.length, children: /* @__PURE__ */ y("div", { children: [
|
|
2978
2978
|
i,
|
|
2979
2979
|
" ",
|
|
2980
|
-
/* @__PURE__ */
|
|
2981
|
-
/* @__PURE__ */
|
|
2980
|
+
/* @__PURE__ */ s("span", { children: n[i].length }),
|
|
2981
|
+
/* @__PURE__ */ s("span", { className: "line" })
|
|
2982
2982
|
] }) })
|
|
2983
2983
|
] }),
|
|
2984
|
-
/* @__PURE__ */
|
|
2984
|
+
/* @__PURE__ */ s(
|
|
2985
2985
|
wt,
|
|
2986
2986
|
{
|
|
2987
2987
|
rows: n[i],
|
|
@@ -2994,13 +2994,13 @@ function gi({ subGroups: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
|
2994
2994
|
}
|
|
2995
2995
|
function mi({ label: n, colSpan: e, count: t }) {
|
|
2996
2996
|
return /* @__PURE__ */ y("tr", { className: "main-group-header", children: [
|
|
2997
|
-
/* @__PURE__ */
|
|
2997
|
+
/* @__PURE__ */ s("td", {}),
|
|
2998
2998
|
/* @__PURE__ */ y("td", { colSpan: e, children: [
|
|
2999
2999
|
n,
|
|
3000
3000
|
" ",
|
|
3001
|
-
/* @__PURE__ */
|
|
3001
|
+
/* @__PURE__ */ s("span", { children: t })
|
|
3002
3002
|
] }),
|
|
3003
|
-
/* @__PURE__ */
|
|
3003
|
+
/* @__PURE__ */ s("td", {})
|
|
3004
3004
|
] });
|
|
3005
3005
|
}
|
|
3006
3006
|
function yi({
|
|
@@ -3011,18 +3011,18 @@ function yi({
|
|
|
3011
3011
|
rowKey: i,
|
|
3012
3012
|
onRowClick: a
|
|
3013
3013
|
}) {
|
|
3014
|
-
return /* @__PURE__ */
|
|
3015
|
-
var
|
|
3014
|
+
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((o) => {
|
|
3015
|
+
var l;
|
|
3016
3016
|
return /* @__PURE__ */ y(qt.Fragment, { children: [
|
|
3017
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ s(
|
|
3018
3018
|
mi,
|
|
3019
3019
|
{
|
|
3020
3020
|
label: o,
|
|
3021
3021
|
colSpan: e.length,
|
|
3022
|
-
count: t ? r(n[o]) : (
|
|
3022
|
+
count: t ? r(n[o]) : (l = n[o]) == null ? void 0 : l.length
|
|
3023
3023
|
}
|
|
3024
3024
|
),
|
|
3025
|
-
t ? /* @__PURE__ */
|
|
3025
|
+
t ? /* @__PURE__ */ s(
|
|
3026
3026
|
gi,
|
|
3027
3027
|
{
|
|
3028
3028
|
subGroups: n[o],
|
|
@@ -3030,7 +3030,7 @@ function yi({
|
|
|
3030
3030
|
rowKey: i,
|
|
3031
3031
|
onRowClick: a
|
|
3032
3032
|
}
|
|
3033
|
-
) : /* @__PURE__ */
|
|
3033
|
+
) : /* @__PURE__ */ s(
|
|
3034
3034
|
wt,
|
|
3035
3035
|
{
|
|
3036
3036
|
rows: n[o],
|
|
@@ -3050,7 +3050,7 @@ function vi({
|
|
|
3050
3050
|
}) {
|
|
3051
3051
|
const [i, a] = j(!1);
|
|
3052
3052
|
return /* @__PURE__ */ y(di, { children: [
|
|
3053
|
-
/* @__PURE__ */
|
|
3053
|
+
/* @__PURE__ */ s(
|
|
3054
3054
|
Tr,
|
|
3055
3055
|
{
|
|
3056
3056
|
current: n.current,
|
|
@@ -3060,11 +3060,11 @@ function vi({
|
|
|
3060
3060
|
onChange: r
|
|
3061
3061
|
}
|
|
3062
3062
|
),
|
|
3063
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ s(
|
|
3064
3064
|
$e,
|
|
3065
3065
|
{
|
|
3066
3066
|
placement: "bottomRight",
|
|
3067
|
-
popupRender: () => /* @__PURE__ */
|
|
3067
|
+
popupRender: () => /* @__PURE__ */ s(pi, { children: ((n == null ? void 0 : n.items) || [
|
|
3068
3068
|
{ label: `10 ${U("Items")}`, value: 10 },
|
|
3069
3069
|
{ label: `25 ${U("Items")}`, value: 25 },
|
|
3070
3070
|
{ label: `50 ${U("Items")}`, value: 50 },
|
|
@@ -3076,7 +3076,7 @@ function vi({
|
|
|
3076
3076
|
children: [
|
|
3077
3077
|
o.label,
|
|
3078
3078
|
" ",
|
|
3079
|
-
o.value == n.pageSize && /* @__PURE__ */
|
|
3079
|
+
o.value == n.pageSize && /* @__PURE__ */ s(He, {})
|
|
3080
3080
|
]
|
|
3081
3081
|
},
|
|
3082
3082
|
o.value
|
|
@@ -3089,7 +3089,7 @@ function vi({
|
|
|
3089
3089
|
" ",
|
|
3090
3090
|
U("ItemsPerPage"),
|
|
3091
3091
|
" ",
|
|
3092
|
-
/* @__PURE__ */
|
|
3092
|
+
/* @__PURE__ */ s(ut, {})
|
|
3093
3093
|
] })
|
|
3094
3094
|
}
|
|
3095
3095
|
)
|
|
@@ -3097,7 +3097,7 @@ function vi({
|
|
|
3097
3097
|
}
|
|
3098
3098
|
const bi = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ H.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__ */ H.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 }));
|
|
3099
3099
|
function xi({ col: n }) {
|
|
3100
|
-
const [e, t] = j(!1), r = $((f) => f.filterItems), i = $((f) => f.hideItems), a = $((f) => f.setFilterItems), o = $((f) => f.setSortItems),
|
|
3100
|
+
const [e, t] = j(!1), r = $((f) => f.filterItems), i = $((f) => f.hideItems), a = $((f) => f.setFilterItems), o = $((f) => f.setSortItems), l = $((f) => f.setHideItems);
|
|
3101
3101
|
function d(f, h) {
|
|
3102
3102
|
o([
|
|
3103
3103
|
{
|
|
@@ -3118,34 +3118,34 @@ function xi({ col: n }) {
|
|
|
3118
3118
|
]);
|
|
3119
3119
|
}
|
|
3120
3120
|
function u(f, h) {
|
|
3121
|
-
|
|
3121
|
+
l({
|
|
3122
3122
|
...i,
|
|
3123
3123
|
[f.dataIndex]: !0
|
|
3124
3124
|
});
|
|
3125
3125
|
}
|
|
3126
3126
|
const p = () => t(!1), g = [
|
|
3127
|
-
{ icon: /* @__PURE__ */
|
|
3127
|
+
{ icon: /* @__PURE__ */ s(We, {}), text: U("Filter"), action: () => c(n) },
|
|
3128
3128
|
{
|
|
3129
|
-
icon: /* @__PURE__ */
|
|
3129
|
+
icon: /* @__PURE__ */ s(ht, {}),
|
|
3130
3130
|
text: oe("Ascending"),
|
|
3131
3131
|
action: () => d(n, re.ASC)
|
|
3132
3132
|
},
|
|
3133
3133
|
{
|
|
3134
|
-
icon: /* @__PURE__ */
|
|
3134
|
+
icon: /* @__PURE__ */ s(gt, {}),
|
|
3135
3135
|
text: oe("Descending"),
|
|
3136
3136
|
action: () => d(n, re.DESC)
|
|
3137
3137
|
},
|
|
3138
3138
|
{
|
|
3139
|
-
icon: /* @__PURE__ */
|
|
3139
|
+
icon: /* @__PURE__ */ s(bi, {}),
|
|
3140
3140
|
text: U("HideInView"),
|
|
3141
3141
|
action: () => u(n)
|
|
3142
3142
|
}
|
|
3143
3143
|
];
|
|
3144
|
-
return n.filterDropdown === !1 ? /* @__PURE__ */
|
|
3144
|
+
return n.filterDropdown === !1 ? /* @__PURE__ */ s("th", {}) : /* @__PURE__ */ s(
|
|
3145
3145
|
$e,
|
|
3146
3146
|
{
|
|
3147
3147
|
placement: "bottomLeft",
|
|
3148
|
-
popupRender: () => /* @__PURE__ */
|
|
3148
|
+
popupRender: () => /* @__PURE__ */ s(ci, { children: g.map(({ icon: f, text: h, action: C }) => /* @__PURE__ */ y(
|
|
3149
3149
|
"button",
|
|
3150
3150
|
{
|
|
3151
3151
|
onClick: () => {
|
|
@@ -3162,7 +3162,7 @@ function xi({ col: n }) {
|
|
|
3162
3162
|
open: e,
|
|
3163
3163
|
onOpenChange: t,
|
|
3164
3164
|
getPopupContainer: (f) => (f == null ? void 0 : f.parentElement) ?? document.body,
|
|
3165
|
-
children: /* @__PURE__ */
|
|
3165
|
+
children: /* @__PURE__ */ s("th", { className: e ? "active" : "", children: /* @__PURE__ */ s("span", { children: n.title }) })
|
|
3166
3166
|
}
|
|
3167
3167
|
);
|
|
3168
3168
|
}
|
|
@@ -3242,12 +3242,12 @@ m(Oe)`
|
|
|
3242
3242
|
line-height: var(--typo-caption-lineHeight-medium, 18px); /* 128.571% */
|
|
3243
3243
|
letter-spacing: var(--typo-caption-spacing-medium, 0.1px);
|
|
3244
3244
|
`;
|
|
3245
|
-
const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE__ */
|
|
3246
|
-
/* @__PURE__ */
|
|
3245
|
+
const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE__ */ s(wi, { children: /* @__PURE__ */ y(Ci, { children: [
|
|
3246
|
+
/* @__PURE__ */ s(ki, { children: n }),
|
|
3247
3247
|
/* @__PURE__ */ y(Si, { children: [
|
|
3248
3248
|
e,
|
|
3249
3249
|
" ",
|
|
3250
|
-
r && /* @__PURE__ */
|
|
3250
|
+
r && /* @__PURE__ */ s(Li, { children: r })
|
|
3251
3251
|
] }),
|
|
3252
3252
|
t && t
|
|
3253
3253
|
] }) }), $i = ({
|
|
@@ -3258,7 +3258,7 @@ const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3258
3258
|
loading: i,
|
|
3259
3259
|
pagination: a,
|
|
3260
3260
|
totalItemCount: o,
|
|
3261
|
-
onRowClick:
|
|
3261
|
+
onRowClick: l,
|
|
3262
3262
|
noPagination: d,
|
|
3263
3263
|
noDataProps: c
|
|
3264
3264
|
}) => {
|
|
@@ -3298,17 +3298,17 @@ const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3298
3298
|
}
|
|
3299
3299
|
return /* @__PURE__ */ y(li, { children: [
|
|
3300
3300
|
/* @__PURE__ */ y("table", { children: [
|
|
3301
|
-
n != me.LIST && /* @__PURE__ */
|
|
3302
|
-
f.map((D) => /* @__PURE__ */
|
|
3303
|
-
/* @__PURE__ */
|
|
3301
|
+
n != me.LIST && /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ y("tr", { children: [
|
|
3302
|
+
f.map((D) => /* @__PURE__ */ s(xi, { col: D }, D.dataIndex)),
|
|
3303
|
+
/* @__PURE__ */ s("th", {})
|
|
3304
3304
|
] }) }),
|
|
3305
|
-
/* @__PURE__ */
|
|
3305
|
+
/* @__PURE__ */ s("tbody", { children: i ? /* @__PURE__ */ s(
|
|
3306
3306
|
hi,
|
|
3307
3307
|
{
|
|
3308
3308
|
rowLength: a.pageSize,
|
|
3309
3309
|
columnLength: f.length
|
|
3310
3310
|
}
|
|
3311
|
-
) : (I == null ? void 0 : I.length) == 0 && c ? /* @__PURE__ */
|
|
3311
|
+
) : (I == null ? void 0 : I.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: f.length, children: /* @__PURE__ */ s(Di, { ...c }) }) }) : /* @__PURE__ */ s(ae, { children: h ? /* @__PURE__ */ s(
|
|
3312
3312
|
yi,
|
|
3313
3313
|
{
|
|
3314
3314
|
dataSource: I,
|
|
@@ -3316,19 +3316,19 @@ const Di = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3316
3316
|
isSubGroupped: C,
|
|
3317
3317
|
getGroupLength: ui,
|
|
3318
3318
|
rowKey: t,
|
|
3319
|
-
onRowClick:
|
|
3319
|
+
onRowClick: l
|
|
3320
3320
|
}
|
|
3321
|
-
) : /* @__PURE__ */
|
|
3321
|
+
) : /* @__PURE__ */ s(
|
|
3322
3322
|
wt,
|
|
3323
3323
|
{
|
|
3324
3324
|
rows: I,
|
|
3325
3325
|
columns: f,
|
|
3326
3326
|
rowKey: t,
|
|
3327
|
-
onRowClick:
|
|
3327
|
+
onRowClick: l
|
|
3328
3328
|
}
|
|
3329
3329
|
) }) })
|
|
3330
3330
|
] }),
|
|
3331
|
-
a && !d && /* @__PURE__ */
|
|
3331
|
+
a && !d && /* @__PURE__ */ s(
|
|
3332
3332
|
vi,
|
|
3333
3333
|
{
|
|
3334
3334
|
pagination: a,
|
|
@@ -4105,7 +4105,7 @@ const Cr = ({
|
|
|
4105
4105
|
id: i,
|
|
4106
4106
|
setRefetchData: a
|
|
4107
4107
|
}) => {
|
|
4108
|
-
const [o,
|
|
4108
|
+
const [o, l] = j(), [d, c] = j([]);
|
|
4109
4109
|
async function u() {
|
|
4110
4110
|
var p, g, f;
|
|
4111
4111
|
try {
|
|
@@ -4117,29 +4117,29 @@ const Cr = ({
|
|
|
4117
4117
|
}
|
|
4118
4118
|
}
|
|
4119
4119
|
return /* @__PURE__ */ y("div", { children: [
|
|
4120
|
-
/* @__PURE__ */
|
|
4120
|
+
/* @__PURE__ */ s(bt, { children: /* @__PURE__ */ y(wr, { children: [
|
|
4121
4121
|
ee("EnterBackupCode"),
|
|
4122
|
-
/* @__PURE__ */
|
|
4122
|
+
/* @__PURE__ */ s(Ye, { children: ee("BackupCodesDesc") })
|
|
4123
4123
|
] }) }),
|
|
4124
4124
|
/* @__PURE__ */ y(xr, { className: d.length > 0 ? "verification-error" : "", children: [
|
|
4125
|
-
/* @__PURE__ */
|
|
4126
|
-
/* @__PURE__ */
|
|
4125
|
+
/* @__PURE__ */ s(Ye, { children: ee("BackupCode") }),
|
|
4126
|
+
/* @__PURE__ */ s(
|
|
4127
4127
|
mr,
|
|
4128
4128
|
{
|
|
4129
4129
|
value: o,
|
|
4130
|
-
onChange: (p) =>
|
|
4130
|
+
onChange: (p) => l(p.target.value),
|
|
4131
4131
|
placeholder: "xxxx-xxxx-xxxx"
|
|
4132
4132
|
}
|
|
4133
4133
|
),
|
|
4134
4134
|
d.map((p) => /* @__PURE__ */ y("span", { children: [
|
|
4135
|
-
/* @__PURE__ */
|
|
4135
|
+
/* @__PURE__ */ s(Ct, {}),
|
|
4136
4136
|
" ",
|
|
4137
4137
|
p.errors[0]
|
|
4138
4138
|
] }, p.name)),
|
|
4139
|
-
/* @__PURE__ */
|
|
4139
|
+
/* @__PURE__ */ s(Vi, { children: ee("BackupCodeSpan") })
|
|
4140
4140
|
] }),
|
|
4141
4141
|
/* @__PURE__ */ y(vr, { children: [
|
|
4142
|
-
/* @__PURE__ */
|
|
4142
|
+
/* @__PURE__ */ s(
|
|
4143
4143
|
xt,
|
|
4144
4144
|
{
|
|
4145
4145
|
onClick: () => {
|
|
@@ -4148,10 +4148,10 @@ const Cr = ({
|
|
|
4148
4148
|
children: oe("Back")
|
|
4149
4149
|
}
|
|
4150
4150
|
),
|
|
4151
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ s(Ke, { onClick: u, children: /* @__PURE__ */ y("span", { className: "arrow-styled", children: [
|
|
4152
4152
|
oe("Continue"),
|
|
4153
4153
|
" ",
|
|
4154
|
-
/* @__PURE__ */
|
|
4154
|
+
/* @__PURE__ */ s(Le, {})
|
|
4155
4155
|
] }) })
|
|
4156
4156
|
] })
|
|
4157
4157
|
] });
|
|
@@ -4184,7 +4184,7 @@ function Pt({ isOpen: n, onClose: e, children: t }) {
|
|
|
4184
4184
|
};
|
|
4185
4185
|
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
4186
4186
|
}, [e]), n ? jr.createPortal(
|
|
4187
|
-
/* @__PURE__ */
|
|
4187
|
+
/* @__PURE__ */ s(ji, { onClick: e, children: /* @__PURE__ */ s(Bi, { onClick: (r) => r.stopPropagation(), children: t }) }),
|
|
4188
4188
|
Gi
|
|
4189
4189
|
) : null;
|
|
4190
4190
|
}
|
|
@@ -4202,12 +4202,12 @@ const Ui = {
|
|
|
4202
4202
|
isBlocked: a,
|
|
4203
4203
|
onBlockStateClose: o
|
|
4204
4204
|
}) => {
|
|
4205
|
-
const { confirmContactInfo:
|
|
4205
|
+
const { confirmContactInfo: l, confirmContactInfoBackup: d } = Ie(), { setUser: c } = Te(), [u, p] = j(""), [g, f] = j([]), [h, C] = j(!1);
|
|
4206
4206
|
function I(T) {
|
|
4207
4207
|
p(T);
|
|
4208
4208
|
}
|
|
4209
4209
|
async function A() {
|
|
4210
|
-
const T =
|
|
4210
|
+
const T = l;
|
|
4211
4211
|
if (T)
|
|
4212
4212
|
try {
|
|
4213
4213
|
f([]);
|
|
@@ -4237,19 +4237,19 @@ const Ui = {
|
|
|
4237
4237
|
function D() {
|
|
4238
4238
|
p(""), e(!1), f([]);
|
|
4239
4239
|
}
|
|
4240
|
-
return a ? /* @__PURE__ */
|
|
4240
|
+
return a ? /* @__PURE__ */ s(Pt, { isOpen: a, onClose: o, children: /* @__PURE__ */ y(zi, { children: [
|
|
4241
4241
|
/* @__PURE__ */ y(Mi, { children: [
|
|
4242
4242
|
/* @__PURE__ */ y(Pi, { children: [
|
|
4243
|
-
/* @__PURE__ */
|
|
4244
|
-
/* @__PURE__ */
|
|
4243
|
+
/* @__PURE__ */ s("span", { children: U("ContactInformationBlocked") }),
|
|
4244
|
+
/* @__PURE__ */ s("span", { onClick: o, children: /* @__PURE__ */ s(yt, {}) })
|
|
4245
4245
|
] }),
|
|
4246
|
-
/* @__PURE__ */
|
|
4246
|
+
/* @__PURE__ */ s(Hi, { children: U("ContactInformationBlockedDesc") })
|
|
4247
4247
|
] }),
|
|
4248
4248
|
/* @__PURE__ */ y(Ri, { children: [
|
|
4249
4249
|
U("TryAgain"),
|
|
4250
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ s(Le, {})
|
|
4251
4251
|
] })
|
|
4252
|
-
] }) }) : /* @__PURE__ */
|
|
4252
|
+
] }) }) : /* @__PURE__ */ s(Pt, { isOpen: n, onClose: D, children: h ? /* @__PURE__ */ s(
|
|
4253
4253
|
Cr,
|
|
4254
4254
|
{
|
|
4255
4255
|
setBackupActivated: C,
|
|
@@ -4259,22 +4259,22 @@ const Ui = {
|
|
|
4259
4259
|
setVisible: e
|
|
4260
4260
|
}
|
|
4261
4261
|
) : /* @__PURE__ */ y(yr, { children: [
|
|
4262
|
-
/* @__PURE__ */
|
|
4263
|
-
/* @__PURE__ */
|
|
4262
|
+
/* @__PURE__ */ s("h2", { children: ee("EnterVerificationCode") }),
|
|
4263
|
+
/* @__PURE__ */ s("p", { children: r !== void 0 ? U(Ui[r]) : "" }),
|
|
4264
4264
|
r !== 1 && /* @__PURE__ */ y(ae, { children: [
|
|
4265
4265
|
/* @__PURE__ */ y(
|
|
4266
4266
|
Ii,
|
|
4267
4267
|
{
|
|
4268
4268
|
className: g.length > 0 ? "verification-error" : "",
|
|
4269
4269
|
children: [
|
|
4270
|
-
/* @__PURE__ */
|
|
4270
|
+
/* @__PURE__ */ s(et.OTP, { value: u, onChange: I }),
|
|
4271
4271
|
/* @__PURE__ */ y(Ti, { children: [
|
|
4272
4272
|
ee("DidnReceiveCode"),
|
|
4273
4273
|
" ",
|
|
4274
|
-
/* @__PURE__ */
|
|
4274
|
+
/* @__PURE__ */ s(br, { onClick: () => C(!0), children: ee("EnterBackupCode") })
|
|
4275
4275
|
] }),
|
|
4276
4276
|
g.map((T) => /* @__PURE__ */ y("span", { children: [
|
|
4277
|
-
/* @__PURE__ */
|
|
4277
|
+
/* @__PURE__ */ s(Ct, {}),
|
|
4278
4278
|
T.errors[0]
|
|
4279
4279
|
] }, T.name))
|
|
4280
4280
|
]
|
|
@@ -4287,14 +4287,14 @@ const Ui = {
|
|
|
4287
4287
|
disabled: u.length !== 6,
|
|
4288
4288
|
children: [
|
|
4289
4289
|
oe("ShowContactInformation"),
|
|
4290
|
-
/* @__PURE__ */
|
|
4290
|
+
/* @__PURE__ */ s(Le, {})
|
|
4291
4291
|
]
|
|
4292
4292
|
}
|
|
4293
4293
|
)
|
|
4294
4294
|
] })
|
|
4295
4295
|
] }) });
|
|
4296
4296
|
}, Wi = () => {
|
|
4297
|
-
const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Te(), [r, i] = j(!1), [a, o] = j(null), [
|
|
4297
|
+
const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Te(), [r, i] = j(!1), [a, o] = j(null), [l, d] = j(!1), c = async () => {
|
|
4298
4298
|
var g, f, h, C, I, A, S;
|
|
4299
4299
|
if (n)
|
|
4300
4300
|
try {
|
|
@@ -4321,7 +4321,7 @@ const Ui = {
|
|
|
4321
4321
|
return {
|
|
4322
4322
|
isContactInfoModalVisible: r,
|
|
4323
4323
|
setIsContactInfoModalVisible: i,
|
|
4324
|
-
isBlocked:
|
|
4324
|
+
isBlocked: l,
|
|
4325
4325
|
setIsBlocked: d,
|
|
4326
4326
|
onBlockStateClose: p,
|
|
4327
4327
|
handleEnableContactInfo: c,
|
|
@@ -4332,16 +4332,16 @@ const Ui = {
|
|
|
4332
4332
|
code: a == null ? void 0 : a.token,
|
|
4333
4333
|
mfaType: a == null ? void 0 : a.mfaType,
|
|
4334
4334
|
id: a == null ? void 0 : a.id,
|
|
4335
|
-
isBlocked:
|
|
4335
|
+
isBlocked: l,
|
|
4336
4336
|
onBlockStateClose: p
|
|
4337
4337
|
}
|
|
4338
4338
|
};
|
|
4339
4339
|
}, Yi = ({ close: n }) => {
|
|
4340
4340
|
var A;
|
|
4341
|
-
const { user: e } = Te(), t = $((S) => S.columns), r = $((S) => S.groupByArr), i = $((S) => S.hideItems), a = $((S) => S.activeTableView), o = $((S) => S.setActiveTableView),
|
|
4341
|
+
const { user: e } = Te(), t = $((S) => S.columns), r = $((S) => S.groupByArr), i = $((S) => S.hideItems), a = $((S) => S.activeTableView), o = $((S) => S.setActiveTableView), l = $((S) => S.setGroupByArr), d = $((S) => S.setHideItems), c = $((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: g } = Wi();
|
|
4342
4342
|
function f(S) {
|
|
4343
4343
|
const D = t.find((T) => T.dataIndex == S.value);
|
|
4344
|
-
|
|
4344
|
+
l([D]);
|
|
4345
4345
|
}
|
|
4346
4346
|
function h(S, D) {
|
|
4347
4347
|
d({
|
|
@@ -4358,8 +4358,8 @@ const Ui = {
|
|
|
4358
4358
|
}
|
|
4359
4359
|
return /* @__PURE__ */ y(Oi, { children: [
|
|
4360
4360
|
/* @__PURE__ */ y("header", { children: [
|
|
4361
|
-
/* @__PURE__ */
|
|
4362
|
-
/* @__PURE__ */
|
|
4361
|
+
/* @__PURE__ */ s("span", { children: U("ViewOptions") }),
|
|
4362
|
+
/* @__PURE__ */ s("button", { onClick: n, children: /* @__PURE__ */ s(zt, {}) })
|
|
4363
4363
|
] }),
|
|
4364
4364
|
/* @__PURE__ */ y("div", { className: "setting-sidebar-content", children: [
|
|
4365
4365
|
/* @__PURE__ */ y("ul", { className: "table-view-list", children: [
|
|
@@ -4369,8 +4369,8 @@ const Ui = {
|
|
|
4369
4369
|
className: a == me.TABLE ? "active" : "",
|
|
4370
4370
|
onClick: () => o(me.TABLE),
|
|
4371
4371
|
children: [
|
|
4372
|
-
/* @__PURE__ */
|
|
4373
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ s(Mt, {}),
|
|
4373
|
+
/* @__PURE__ */ s("span", { children: U("Table") })
|
|
4374
4374
|
]
|
|
4375
4375
|
}
|
|
4376
4376
|
),
|
|
@@ -4380,15 +4380,15 @@ const Ui = {
|
|
|
4380
4380
|
className: a == me.LIST ? "active" : "",
|
|
4381
4381
|
onClick: () => o(me.LIST),
|
|
4382
4382
|
children: [
|
|
4383
|
-
/* @__PURE__ */
|
|
4384
|
-
/* @__PURE__ */
|
|
4383
|
+
/* @__PURE__ */ s(We, {}),
|
|
4384
|
+
/* @__PURE__ */ s("span", { children: U("List") })
|
|
4385
4385
|
]
|
|
4386
4386
|
}
|
|
4387
4387
|
)
|
|
4388
4388
|
] }),
|
|
4389
|
-
/* @__PURE__ */
|
|
4390
|
-
/* @__PURE__ */
|
|
4391
|
-
/* @__PURE__ */
|
|
4389
|
+
/* @__PURE__ */ s("ul", { className: "grouping-list", children: /* @__PURE__ */ y("li", { children: [
|
|
4390
|
+
/* @__PURE__ */ s("span", { children: U("Grouping") }),
|
|
4391
|
+
/* @__PURE__ */ s(
|
|
4392
4392
|
pt,
|
|
4393
4393
|
{
|
|
4394
4394
|
className: "teeest",
|
|
@@ -4399,7 +4399,7 @@ const Ui = {
|
|
|
4399
4399
|
})),
|
|
4400
4400
|
labelInValue: !0,
|
|
4401
4401
|
placeholder: /* @__PURE__ */ y(Ei, { children: [
|
|
4402
|
-
/* @__PURE__ */
|
|
4402
|
+
/* @__PURE__ */ s(We, {}),
|
|
4403
4403
|
U("NoGrouping")
|
|
4404
4404
|
] }),
|
|
4405
4405
|
value: ((A = r[0]) == null ? void 0 : A.dataIndex) || null,
|
|
@@ -4408,8 +4408,8 @@ const Ui = {
|
|
|
4408
4408
|
)
|
|
4409
4409
|
] }) }),
|
|
4410
4410
|
/* @__PURE__ */ y("div", { className: "properties-list", children: [
|
|
4411
|
-
/* @__PURE__ */
|
|
4412
|
-
/* @__PURE__ */
|
|
4411
|
+
/* @__PURE__ */ s("span", { children: U("ShowProperties") }),
|
|
4412
|
+
/* @__PURE__ */ s("ul", { children: t.map((S) => /* @__PURE__ */ s(
|
|
4413
4413
|
"li",
|
|
4414
4414
|
{
|
|
4415
4415
|
className: i[S.dataIndex] === !0 ? "hide" : "",
|
|
@@ -4426,18 +4426,18 @@ const Ui = {
|
|
|
4426
4426
|
" •",
|
|
4427
4427
|
" ",
|
|
4428
4428
|
C(new Date(e == null ? void 0 : e.sensitiveDataExpiration), /* @__PURE__ */ new Date()),
|
|
4429
|
-
/* @__PURE__ */
|
|
4429
|
+
/* @__PURE__ */ s(zt, {})
|
|
4430
4430
|
] }) : /* @__PURE__ */ y("button", { onClick: u, children: [
|
|
4431
4431
|
oe("ShowContactInformation"),
|
|
4432
4432
|
" ",
|
|
4433
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ s(Mt, {})
|
|
4434
4434
|
] }),
|
|
4435
4435
|
/* @__PURE__ */ y("button", { onClick: I, children: [
|
|
4436
4436
|
oe("ResetAllOptions"),
|
|
4437
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ s(gr, {})
|
|
4438
4438
|
] })
|
|
4439
4439
|
] }),
|
|
4440
|
-
/* @__PURE__ */
|
|
4440
|
+
/* @__PURE__ */ s(_i, { ...g })
|
|
4441
4441
|
] });
|
|
4442
4442
|
}, Ki = ({
|
|
4443
4443
|
columns: n,
|
|
@@ -4447,7 +4447,7 @@ const Ui = {
|
|
|
4447
4447
|
GridPageTopLeftComponent: i,
|
|
4448
4448
|
contentAfterPageHeader: a,
|
|
4449
4449
|
onRowClick: o,
|
|
4450
|
-
checkedValue:
|
|
4450
|
+
checkedValue: l,
|
|
4451
4451
|
rowKey: d,
|
|
4452
4452
|
pagination: c,
|
|
4453
4453
|
CustomFilters: u,
|
|
@@ -4480,10 +4480,10 @@ const Ui = {
|
|
|
4480
4480
|
}, [S]), Y(() => {
|
|
4481
4481
|
L(n);
|
|
4482
4482
|
}, [n]), Y(() => {
|
|
4483
|
-
v(
|
|
4484
|
-
}, [
|
|
4483
|
+
v(l);
|
|
4484
|
+
}, [l]), /* @__PURE__ */ y(In, { children: [
|
|
4485
4485
|
/* @__PURE__ */ y(zn, { ref: G, children: [
|
|
4486
|
-
/* @__PURE__ */
|
|
4486
|
+
/* @__PURE__ */ s(
|
|
4487
4487
|
Wn,
|
|
4488
4488
|
{
|
|
4489
4489
|
noNeedSidebarResponsiveButton: B,
|
|
@@ -4498,9 +4498,9 @@ const Ui = {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
),
|
|
4500
4500
|
a,
|
|
4501
|
-
(O.length > 0 || w.length > 0) && /* @__PURE__ */
|
|
4501
|
+
(O.length > 0 || w.length > 0) && /* @__PURE__ */ s(si, {})
|
|
4502
4502
|
] }),
|
|
4503
|
-
/* @__PURE__ */
|
|
4503
|
+
/* @__PURE__ */ s(Vn, { height: `calc(100vh - ${`${W}px`})`, children: T ? /* @__PURE__ */ s(
|
|
4504
4504
|
T,
|
|
4505
4505
|
{
|
|
4506
4506
|
dataSource: ((J = x == null ? void 0 : x.data) == null ? void 0 : J.items) || [],
|
|
@@ -4520,7 +4520,7 @@ const Ui = {
|
|
|
4520
4520
|
items: c == null ? void 0 : c.items
|
|
4521
4521
|
}
|
|
4522
4522
|
}
|
|
4523
|
-
) : /* @__PURE__ */
|
|
4523
|
+
) : /* @__PURE__ */ s(
|
|
4524
4524
|
$i,
|
|
4525
4525
|
{
|
|
4526
4526
|
noPagination: C,
|
|
@@ -4547,9 +4547,9 @@ const Ui = {
|
|
|
4547
4547
|
noDataProps: I || null
|
|
4548
4548
|
}
|
|
4549
4549
|
) }),
|
|
4550
|
-
M && /* @__PURE__ */
|
|
4550
|
+
M && /* @__PURE__ */ s(Yi, { close: () => F(!1) })
|
|
4551
4551
|
] });
|
|
4552
|
-
}, fo = (n) => /* @__PURE__ */
|
|
4552
|
+
}, fo = (n) => /* @__PURE__ */ s(Dn, { children: /* @__PURE__ */ s(Ki, { ...n }) }), ho = () => {
|
|
4553
4553
|
const n = ye((C) => C.isOpen), e = ye((C) => C.options), t = ye((C) => C.close), r = Ve();
|
|
4554
4554
|
if (Y(() => {
|
|
4555
4555
|
n && t();
|
|
@@ -4558,7 +4558,7 @@ const Ui = {
|
|
|
4558
4558
|
title: i,
|
|
4559
4559
|
component: a,
|
|
4560
4560
|
componentProps: o,
|
|
4561
|
-
popupOptions:
|
|
4561
|
+
popupOptions: l,
|
|
4562
4562
|
footerOptions: d,
|
|
4563
4563
|
hideFooter: c,
|
|
4564
4564
|
showCloseButton: u,
|
|
@@ -4574,15 +4574,15 @@ const Ui = {
|
|
|
4574
4574
|
{
|
|
4575
4575
|
centered: !0,
|
|
4576
4576
|
title: i || u ? /* @__PURE__ */ y(Zn, { children: [
|
|
4577
|
-
/* @__PURE__ */
|
|
4578
|
-
u && /* @__PURE__ */
|
|
4577
|
+
/* @__PURE__ */ s("span", { children: i }),
|
|
4578
|
+
u && /* @__PURE__ */ s(qn, { onClick: t, children: /* @__PURE__ */ s(yt, {}) })
|
|
4579
4579
|
] }) : void 0,
|
|
4580
|
-
...
|
|
4580
|
+
...l,
|
|
4581
4581
|
children: [
|
|
4582
|
-
a && /* @__PURE__ */
|
|
4582
|
+
a && /* @__PURE__ */ s(a, { ...o }),
|
|
4583
4583
|
!c && /* @__PURE__ */ y(Qn, { children: [
|
|
4584
|
-
/* @__PURE__ */
|
|
4585
|
-
/* @__PURE__ */
|
|
4584
|
+
/* @__PURE__ */ s(xt, { onClick: f, children: d == null ? void 0 : d.cancelText }),
|
|
4585
|
+
/* @__PURE__ */ s(
|
|
4586
4586
|
Xn,
|
|
4587
4587
|
{
|
|
4588
4588
|
onClick: h,
|
|
@@ -4604,7 +4604,7 @@ const Ui = {
|
|
|
4604
4604
|
title: t,
|
|
4605
4605
|
hideFooter: r = !1,
|
|
4606
4606
|
children: i
|
|
4607
|
-
}) => /* @__PURE__ */
|
|
4607
|
+
}) => /* @__PURE__ */ s(
|
|
4608
4608
|
vt,
|
|
4609
4609
|
{
|
|
4610
4610
|
open: n,
|
|
@@ -4688,15 +4688,15 @@ const Ui = {
|
|
|
4688
4688
|
logo: e,
|
|
4689
4689
|
button: t,
|
|
4690
4690
|
className: r,
|
|
4691
|
-
backButton: i = /* @__PURE__ */
|
|
4691
|
+
backButton: i = /* @__PURE__ */ s(Ji, {})
|
|
4692
4692
|
}) => {
|
|
4693
4693
|
const a = Ee();
|
|
4694
4694
|
return /* @__PURE__ */ y(Zi, { className: r || "", children: [
|
|
4695
4695
|
/* @__PURE__ */ y("div", { className: "page-starter", children: [
|
|
4696
|
-
e ? /* @__PURE__ */
|
|
4697
|
-
/* @__PURE__ */
|
|
4696
|
+
e ? /* @__PURE__ */ s("div", { className: "icon", children: e }) : /* @__PURE__ */ s(qi, { className: "icon", onClick: () => a(-1), children: i }),
|
|
4697
|
+
/* @__PURE__ */ s(Qi, { items: n })
|
|
4698
4698
|
] }),
|
|
4699
|
-
/* @__PURE__ */
|
|
4699
|
+
/* @__PURE__ */ s("div", { children: t && t })
|
|
4700
4700
|
] });
|
|
4701
4701
|
};
|
|
4702
4702
|
var st = /* @__PURE__ */ ((n) => (n[n.None = 1] = "None", n[n.OTP = 2] = "OTP", n[n.TOTP = 3] = "TOTP", n[n.BackupCode = 4] = "BackupCode", n))(st || {});
|
|
@@ -4714,10 +4714,10 @@ const Xi = {
|
|
|
4714
4714
|
setVisible: a,
|
|
4715
4715
|
visible: o
|
|
4716
4716
|
}) => {
|
|
4717
|
-
const { confirmTwoFactor:
|
|
4717
|
+
const { confirmTwoFactor: l, resendOTP: d, confirmTwoFactorBackupCode: c } = Ie(), [u, p] = j(""), [g, f] = j(!0), [h, C] = j(60), { close: I } = ye(), [A, S] = j([]), [D, T] = j(!1);
|
|
4718
4718
|
async function V() {
|
|
4719
4719
|
var O, w, N;
|
|
4720
|
-
const z =
|
|
4720
|
+
const z = l;
|
|
4721
4721
|
if (!(!u || !z))
|
|
4722
4722
|
try {
|
|
4723
4723
|
const P = await z({ confirmationToken: n, code: u, id: r });
|
|
@@ -4749,7 +4749,7 @@ const Xi = {
|
|
|
4749
4749
|
C((O) => O <= 1 ? (clearInterval(z), f(!1), 0) : O - 1);
|
|
4750
4750
|
}, 1e3);
|
|
4751
4751
|
return () => clearInterval(z);
|
|
4752
|
-
}, [g]), /* @__PURE__ */
|
|
4752
|
+
}, [g]), /* @__PURE__ */ s(vt, { open: o, onCancel: _, footer: [null], children: n ? /* @__PURE__ */ s(ae, { children: D ? /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(
|
|
4753
4753
|
Cr,
|
|
4754
4754
|
{
|
|
4755
4755
|
setBackupActivated: T,
|
|
@@ -4760,30 +4760,30 @@ const Xi = {
|
|
|
4760
4760
|
confirmationToken: n
|
|
4761
4761
|
}
|
|
4762
4762
|
) }) : /* @__PURE__ */ y(ae, { children: [
|
|
4763
|
-
/* @__PURE__ */
|
|
4763
|
+
/* @__PURE__ */ s(bt, { children: /* @__PURE__ */ y(wr, { children: [
|
|
4764
4764
|
ee("EnterVerificationCode"),
|
|
4765
|
-
/* @__PURE__ */
|
|
4765
|
+
/* @__PURE__ */ s(Ye, { children: ee(Xi[t]) })
|
|
4766
4766
|
] }) }),
|
|
4767
4767
|
/* @__PURE__ */ y(
|
|
4768
4768
|
xr,
|
|
4769
4769
|
{
|
|
4770
4770
|
className: A.length > 0 ? "verification-error" : "",
|
|
4771
4771
|
children: [
|
|
4772
|
-
/* @__PURE__ */
|
|
4772
|
+
/* @__PURE__ */ s(et.OTP, { value: u, onChange: K }),
|
|
4773
4773
|
A.map((z) => /* @__PURE__ */ y("span", { children: [
|
|
4774
|
-
/* @__PURE__ */
|
|
4774
|
+
/* @__PURE__ */ s(Ct, {}),
|
|
4775
4775
|
z.errors[0]
|
|
4776
4776
|
] }, z.name)),
|
|
4777
4777
|
/* @__PURE__ */ y(Fi, { children: [
|
|
4778
4778
|
ee("DidnReceiveCode"),
|
|
4779
4779
|
" ",
|
|
4780
|
-
/* @__PURE__ */
|
|
4780
|
+
/* @__PURE__ */ s(br, { onClick: () => T(!0), children: ee("EnterBackupCode") })
|
|
4781
4781
|
] })
|
|
4782
4782
|
]
|
|
4783
4783
|
}
|
|
4784
4784
|
),
|
|
4785
4785
|
/* @__PURE__ */ y(vr, { children: [
|
|
4786
|
-
t !== st.TOTP && /* @__PURE__ */
|
|
4786
|
+
t !== st.TOTP && /* @__PURE__ */ s(
|
|
4787
4787
|
xt,
|
|
4788
4788
|
{
|
|
4789
4789
|
disabled: g,
|
|
@@ -4801,12 +4801,12 @@ const Xi = {
|
|
|
4801
4801
|
" ",
|
|
4802
4802
|
oe("Continue")
|
|
4803
4803
|
] }),
|
|
4804
|
-
/* @__PURE__ */
|
|
4804
|
+
/* @__PURE__ */ s(Le, {})
|
|
4805
4805
|
]
|
|
4806
4806
|
}
|
|
4807
4807
|
)
|
|
4808
4808
|
] })
|
|
4809
|
-
] }) }) : /* @__PURE__ */
|
|
4809
|
+
] }) }) : /* @__PURE__ */ s(Ai, { children: /* @__PURE__ */ s(tr, {}) }) });
|
|
4810
4810
|
}, ea = m.div`
|
|
4811
4811
|
width: 100%;
|
|
4812
4812
|
height: 100%;
|
|
@@ -4817,7 +4817,7 @@ const Xi = {
|
|
|
4817
4817
|
return window.addEventListener("resize", r, { passive: !0, capture: !0 }), () => {
|
|
4818
4818
|
window.removeEventListener("resize", r), t.dispose();
|
|
4819
4819
|
};
|
|
4820
|
-
}, [n]), /* @__PURE__ */
|
|
4820
|
+
}, [n]), /* @__PURE__ */ s(ea, { id: "my-chart" }));
|
|
4821
4821
|
m.div`
|
|
4822
4822
|
display: flex;
|
|
4823
4823
|
justify-content: center;
|
|
@@ -4829,7 +4829,7 @@ const ta = m(tr)`
|
|
|
4829
4829
|
.ant-spin-dot-item {
|
|
4830
4830
|
background-color: ${(n) => n.backgroundcolor};
|
|
4831
4831
|
}
|
|
4832
|
-
`, bo = ({ backgroundcolor: n }) => /* @__PURE__ */
|
|
4832
|
+
`, bo = ({ backgroundcolor: n }) => /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(ta, { size: "large", backgroundcolor: n }) }), ra = m.div`
|
|
4833
4833
|
position: absolute;
|
|
4834
4834
|
left: 0;
|
|
4835
4835
|
top: 0;
|
|
@@ -4940,30 +4940,30 @@ const ta = m(tr)`
|
|
|
4940
4940
|
padding: 1rem;
|
|
4941
4941
|
margin-bottom: 2px;
|
|
4942
4942
|
`, Rt = () => /* @__PURE__ */ y(ae, { children: [
|
|
4943
|
-
/* @__PURE__ */
|
|
4944
|
-
/* @__PURE__ */
|
|
4943
|
+
/* @__PURE__ */ s(Ht, { width: "80%" }),
|
|
4944
|
+
/* @__PURE__ */ s(Ht, { width: "60%" })
|
|
4945
4945
|
] }), xo = () => /* @__PURE__ */ y(aa, { children: [
|
|
4946
|
-
/* @__PURE__ */
|
|
4947
|
-
/* @__PURE__ */
|
|
4948
|
-
/* @__PURE__ */
|
|
4946
|
+
/* @__PURE__ */ s(ra, { children: /* @__PURE__ */ y("div", { children: [
|
|
4947
|
+
/* @__PURE__ */ s("h2", { children: Lt("ComingSoon") }),
|
|
4948
|
+
/* @__PURE__ */ s("p", { children: Lt("ComingSoonDesc") })
|
|
4949
4949
|
] }) }),
|
|
4950
|
-
/* @__PURE__ */
|
|
4951
|
-
/* @__PURE__ */
|
|
4952
|
-
/* @__PURE__ */
|
|
4953
|
-
/* @__PURE__ */
|
|
4950
|
+
/* @__PURE__ */ s(ia, {}),
|
|
4951
|
+
/* @__PURE__ */ s(pe, {}),
|
|
4952
|
+
/* @__PURE__ */ s(oa, { children: [...Array(7)].map((n, e) => /* @__PURE__ */ s(sa, {}, e)) }),
|
|
4953
|
+
/* @__PURE__ */ s(rt, { children: [...Array(5)].map((n, e) => /* @__PURE__ */ s(Ze, { children: /* @__PURE__ */ s(Rt, {}) }, e)) }),
|
|
4954
4954
|
/* @__PURE__ */ y(la, { children: [
|
|
4955
|
-
/* @__PURE__ */
|
|
4956
|
-
/* @__PURE__ */
|
|
4955
|
+
/* @__PURE__ */ s(pe, { width: "20%", height: "18px", marginbottom: "10px" }),
|
|
4956
|
+
/* @__PURE__ */ s(pe, { width: "20%", height: "18px", marginbottom: "20px" }),
|
|
4957
4957
|
/* @__PURE__ */ y(rt, { children: [
|
|
4958
|
-
/* @__PURE__ */
|
|
4959
|
-
/* @__PURE__ */
|
|
4960
|
-
/* @__PURE__ */
|
|
4961
|
-
/* @__PURE__ */
|
|
4962
|
-
/* @__PURE__ */
|
|
4963
|
-
/* @__PURE__ */
|
|
4958
|
+
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10" }),
|
|
4959
|
+
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10" }),
|
|
4960
|
+
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10" }),
|
|
4961
|
+
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10px" }),
|
|
4962
|
+
/* @__PURE__ */ s(pe, { width: "120%", height: "18px", marginbottom: "10" }),
|
|
4963
|
+
/* @__PURE__ */ s(pe, { width: "12%", height: "18px", marginbottom: "10px" })
|
|
4964
4964
|
] })
|
|
4965
4965
|
] }),
|
|
4966
|
-
/* @__PURE__ */
|
|
4966
|
+
/* @__PURE__ */ s(rt, { children: [...Array(5)].map((n, e) => /* @__PURE__ */ s(Ze, { children: /* @__PURE__ */ s(Rt, {}) }, e)) })
|
|
4967
4967
|
] }), ca = m(dt)`
|
|
4968
4968
|
.ant-table-thead > tr > th {
|
|
4969
4969
|
background: var(--color-bg-primary, #fff);
|
|
@@ -5093,7 +5093,7 @@ const ta = m(tr)`
|
|
|
5093
5093
|
dataSource: i,
|
|
5094
5094
|
expandableRowProps: a,
|
|
5095
5095
|
expandedRows: o,
|
|
5096
|
-
setExpandedRow:
|
|
5096
|
+
setExpandedRow: l,
|
|
5097
5097
|
loading: d,
|
|
5098
5098
|
pagination: c
|
|
5099
5099
|
}) => {
|
|
@@ -5102,24 +5102,24 @@ const ta = m(tr)`
|
|
|
5102
5102
|
o && o.length > 0 && p((h) => [...o, ...h]);
|
|
5103
5103
|
}, [o]);
|
|
5104
5104
|
function f(h) {
|
|
5105
|
-
p(h),
|
|
5105
|
+
p(h), l && l([]);
|
|
5106
5106
|
}
|
|
5107
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ s(
|
|
5108
5108
|
ca,
|
|
5109
5109
|
{
|
|
5110
5110
|
rowKey: n || "id",
|
|
5111
5111
|
pagination: c,
|
|
5112
5112
|
scroll: { x: 1500 },
|
|
5113
5113
|
locale: {
|
|
5114
|
-
emptyText: /* @__PURE__ */
|
|
5114
|
+
emptyText: /* @__PURE__ */ s(rr, { description: _r("NoData") })
|
|
5115
5115
|
},
|
|
5116
5116
|
loading: d,
|
|
5117
5117
|
columns: g,
|
|
5118
5118
|
expandedRowKeys: u,
|
|
5119
5119
|
onExpandedRowsChange: f,
|
|
5120
5120
|
expandable: {
|
|
5121
|
-
expandedRowRender: (h) => /* @__PURE__ */
|
|
5122
|
-
expandIcon: ({ expanded: h }) => /* @__PURE__ */
|
|
5121
|
+
expandedRowRender: (h) => /* @__PURE__ */ s(e, { ...a, record: h }),
|
|
5122
|
+
expandIcon: ({ expanded: h }) => /* @__PURE__ */ s(ae, { children: h ? /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(da, {}) }) : /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(ut, {}) }) }),
|
|
5123
5123
|
expandRowByClick: !0
|
|
5124
5124
|
},
|
|
5125
5125
|
dataSource: i
|
|
@@ -5268,10 +5268,10 @@ const ua = m.div`
|
|
|
5268
5268
|
r[i] = t;
|
|
5269
5269
|
return;
|
|
5270
5270
|
}
|
|
5271
|
-
let a = e[e.length - 1], o = e.slice(0, e.length - 1),
|
|
5272
|
-
for (;
|
|
5273
|
-
a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1),
|
|
5274
|
-
|
|
5271
|
+
let a = e[e.length - 1], o = e.slice(0, e.length - 1), l = Re(n, o, Object);
|
|
5272
|
+
for (; l.obj === void 0 && o.length; )
|
|
5273
|
+
a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), l = Re(n, o, Object), l != null && l.obj && typeof l.obj[`${l.k}.${a}`] < "u" && (l.obj = void 0);
|
|
5274
|
+
l.obj[`${l.k}.${a}`] = t;
|
|
5275
5275
|
}, ma = (n, e, t, r) => {
|
|
5276
5276
|
const {
|
|
5277
5277
|
obj: i,
|
|
@@ -5332,9 +5332,9 @@ const wa = [" ", ",", "?", "!", ";"], Ca = new xa(20), ka = (n, e, t) => {
|
|
|
5332
5332
|
for (let a = 0; a < r.length; ) {
|
|
5333
5333
|
if (!i || typeof i != "object")
|
|
5334
5334
|
return;
|
|
5335
|
-
let o,
|
|
5335
|
+
let o, l = "";
|
|
5336
5336
|
for (let d = a; d < r.length; ++d)
|
|
5337
|
-
if (d !== a && (
|
|
5337
|
+
if (d !== a && (l += t), l += r[d], o = i[l], o !== void 0) {
|
|
5338
5338
|
if (["string", "number", "boolean"].includes(typeof o) && d < r.length - 1)
|
|
5339
5339
|
continue;
|
|
5340
5340
|
a += d - a + 1;
|
|
@@ -5445,17 +5445,17 @@ class jt extends tt {
|
|
|
5445
5445
|
getResource(e, t, r, i = {}) {
|
|
5446
5446
|
var c, u;
|
|
5447
5447
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, o = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
5448
|
-
let
|
|
5449
|
-
e.includes(".") ?
|
|
5450
|
-
const d = qe(this.data,
|
|
5451
|
-
return !d && !t && !r && e.includes(".") && (e =
|
|
5448
|
+
let l;
|
|
5449
|
+
e.includes(".") ? l = e.split(".") : (l = [e, t], r && (Array.isArray(r) ? l.push(...r) : R(r) && a ? l.push(...r.split(a)) : l.push(r)));
|
|
5450
|
+
const d = qe(this.data, l);
|
|
5451
|
+
return !d && !t && !r && e.includes(".") && (e = l[0], t = l[1], r = l.slice(2).join(".")), d || !o || !R(r) ? d : lt((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], r, a);
|
|
5452
5452
|
}
|
|
5453
5453
|
addResource(e, t, r, i, a = {
|
|
5454
5454
|
silent: !1
|
|
5455
5455
|
}) {
|
|
5456
5456
|
const o = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
5457
|
-
let
|
|
5458
|
-
r && (
|
|
5457
|
+
let l = [e, t];
|
|
5458
|
+
r && (l = l.concat(o ? r.split(o) : r)), e.includes(".") && (l = e.split("."), i = t, t = l[1]), this.addNamespaces(t), At(this.data, l, i), a.silent || this.emit("added", e, t, r, i);
|
|
5459
5459
|
}
|
|
5460
5460
|
addResources(e, t, r, i = {
|
|
5461
5461
|
silent: !1
|
|
@@ -5470,13 +5470,13 @@ class jt extends tt {
|
|
|
5470
5470
|
silent: !1,
|
|
5471
5471
|
skipCopy: !1
|
|
5472
5472
|
}) {
|
|
5473
|
-
let
|
|
5474
|
-
e.includes(".") && (
|
|
5475
|
-
let d = qe(this.data,
|
|
5473
|
+
let l = [e, t];
|
|
5474
|
+
e.includes(".") && (l = e.split("."), i = r, r = t, t = l[1]), this.addNamespaces(t);
|
|
5475
|
+
let d = qe(this.data, l) || {};
|
|
5476
5476
|
o.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? kr(d, r, a) : d = {
|
|
5477
5477
|
...d,
|
|
5478
5478
|
...r
|
|
5479
|
-
}, At(this.data,
|
|
5479
|
+
}, At(this.data, l, d), o.silent || this.emit("added", e, t, r);
|
|
5480
5480
|
}
|
|
5481
5481
|
removeResourceBundle(e, t) {
|
|
5482
5482
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -5555,8 +5555,8 @@ class Qe extends tt {
|
|
|
5555
5555
|
r === void 0 && (r = ":");
|
|
5556
5556
|
const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
5557
5557
|
let a = t.ns || this.options.defaultNS || [];
|
|
5558
|
-
const o = r && e.includes(r),
|
|
5559
|
-
if (o && !
|
|
5558
|
+
const o = r && e.includes(r), l = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ka(e, r, i);
|
|
5559
|
+
if (o && !l) {
|
|
5560
5560
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
5561
5561
|
if (d && d.length > 0)
|
|
5562
5562
|
return {
|
|
@@ -5586,7 +5586,7 @@ class Qe extends tt {
|
|
|
5586
5586
|
...i
|
|
5587
5587
|
}) : String(P));
|
|
5588
5588
|
const a = i.returnDetails !== void 0 ? i.returnDetails : this.options.returnDetails, o = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, {
|
|
5589
|
-
key:
|
|
5589
|
+
key: l,
|
|
5590
5590
|
namespaces: d
|
|
5591
5591
|
} = this.extractFromKey(e[e.length - 1], i), c = d[d.length - 1];
|
|
5592
5592
|
let u = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
|
|
@@ -5594,23 +5594,23 @@ class Qe extends tt {
|
|
|
5594
5594
|
const p = i.lng || this.language, g = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
5595
5595
|
if ((p == null ? void 0 : p.toLowerCase()) === "cimode")
|
|
5596
5596
|
return g ? a ? {
|
|
5597
|
-
res: `${c}${u}${
|
|
5598
|
-
usedKey:
|
|
5599
|
-
exactUsedKey:
|
|
5597
|
+
res: `${c}${u}${l}`,
|
|
5598
|
+
usedKey: l,
|
|
5599
|
+
exactUsedKey: l,
|
|
5600
5600
|
usedLng: p,
|
|
5601
5601
|
usedNS: c,
|
|
5602
5602
|
usedParams: this.getUsedParamsDetails(i)
|
|
5603
|
-
} : `${c}${u}${
|
|
5604
|
-
res:
|
|
5605
|
-
usedKey:
|
|
5606
|
-
exactUsedKey:
|
|
5603
|
+
} : `${c}${u}${l}` : a ? {
|
|
5604
|
+
res: l,
|
|
5605
|
+
usedKey: l,
|
|
5606
|
+
exactUsedKey: l,
|
|
5607
5607
|
usedLng: p,
|
|
5608
5608
|
usedNS: c,
|
|
5609
5609
|
usedParams: this.getUsedParamsDetails(i)
|
|
5610
|
-
} :
|
|
5610
|
+
} : l;
|
|
5611
5611
|
const f = this.resolve(e, i);
|
|
5612
5612
|
let h = f == null ? void 0 : f.res;
|
|
5613
|
-
const C = (f == null ? void 0 : f.usedKey) ||
|
|
5613
|
+
const C = (f == null ? void 0 : f.usedKey) || l, I = (f == null ? void 0 : f.exactUsedKey) || l, A = ["[object Number]", "[object Function]", "[object RegExp]"], S = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, D = !this.i18nFormat || this.i18nFormat.handleAsObject, T = i.count !== void 0 && !R(i.count), V = Qe.hasDefaultValue(i), B = T ? this.pluralResolver.getSuffix(p, i.count, i) : "", _ = i.ordinal && T ? this.pluralResolver.getSuffix(p, i.count, {
|
|
5614
5614
|
ordinal: !1
|
|
5615
5615
|
}) : "", K = T && !i.ordinal && i.count === 0, z = K && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${B}`] || i[`defaultValue${_}`] || i.defaultValue;
|
|
5616
5616
|
let O = h;
|
|
@@ -5622,7 +5622,7 @@ class Qe extends tt {
|
|
|
5622
5622
|
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(C, O, {
|
|
5623
5623
|
...i,
|
|
5624
5624
|
ns: d
|
|
5625
|
-
}) : `key '${
|
|
5625
|
+
}) : `key '${l} (${this.language})' returned an object instead of string.`;
|
|
5626
5626
|
return a ? (f.res = P, f.usedParams = this.getUsedParamsDetails(i), f) : P;
|
|
5627
5627
|
}
|
|
5628
5628
|
if (o) {
|
|
@@ -5647,11 +5647,11 @@ class Qe extends tt {
|
|
|
5647
5647
|
h = h.join(S), h && (h = this.extendTranslation(h, e, i, r));
|
|
5648
5648
|
else {
|
|
5649
5649
|
let P = !1, L = !1;
|
|
5650
|
-
!this.isValidLookup(h) && V && (P = !0, h = z), this.isValidLookup(h) || (L = !0, h =
|
|
5650
|
+
!this.isValidLookup(h) && V && (P = !0, h = z), this.isValidLookup(h) || (L = !0, h = l);
|
|
5651
5651
|
const b = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : h, v = V && z !== h && this.options.updateMissing;
|
|
5652
5652
|
if (L || P || v) {
|
|
5653
|
-
if (this.logger.log(v ? "updateKey" : "missingKey", p, c,
|
|
5654
|
-
const F = this.resolve(
|
|
5653
|
+
if (this.logger.log(v ? "updateKey" : "missingKey", p, c, l, v ? z : h), o) {
|
|
5654
|
+
const F = this.resolve(l, {
|
|
5655
5655
|
...i,
|
|
5656
5656
|
keySeparator: !1
|
|
5657
5657
|
});
|
|
@@ -5671,11 +5671,11 @@ class Qe extends tt {
|
|
|
5671
5671
|
this.options.saveMissing && (this.options.saveMissingPlurals && T ? x.forEach((F) => {
|
|
5672
5672
|
const G = this.pluralResolver.getSuffixes(F, i);
|
|
5673
5673
|
K && i[`defaultValue${this.options.pluralSeparator}zero`] && !G.includes(`${this.options.pluralSeparator}zero`) && G.push(`${this.options.pluralSeparator}zero`), G.forEach((W) => {
|
|
5674
|
-
M([F],
|
|
5674
|
+
M([F], l + W, i[`defaultValue${W}`] || z);
|
|
5675
5675
|
});
|
|
5676
|
-
}) : M(x,
|
|
5676
|
+
}) : M(x, l, z));
|
|
5677
5677
|
}
|
|
5678
|
-
h = this.extendTranslation(h, e, i, f, r), L && h ===
|
|
5678
|
+
h = this.extendTranslation(h, e, i, f, r), L && h === l && this.options.appendNamespaceToMissingKey && (h = `${c}${u}${l}`), (L || P) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${l}` : l, P ? h : void 0, i));
|
|
5679
5679
|
}
|
|
5680
5680
|
return a ? (f.res = h, f.usedParams = this.getUsedParamsDetails(i), f) : h;
|
|
5681
5681
|
}
|
|
@@ -5712,8 +5712,8 @@ class Qe extends tt {
|
|
|
5712
5712
|
}
|
|
5713
5713
|
!r.lng && i && i.res && (r.lng = this.language || i.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...f) => (a == null ? void 0 : a[0]) === f[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), r)), r.interpolation && this.interpolator.reset();
|
|
5714
5714
|
}
|
|
5715
|
-
const o = r.postProcess || this.options.postProcess,
|
|
5716
|
-
return e != null && (
|
|
5715
|
+
const o = r.postProcess || this.options.postProcess, l = R(o) ? [o] : o;
|
|
5716
|
+
return e != null && (l != null && l.length) && r.applyPostProcessor !== !1 && (e = Sr.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
5717
5717
|
i18nResolved: {
|
|
5718
5718
|
...i,
|
|
5719
5719
|
usedParams: this.getUsedParamsDetails(r)
|
|
@@ -5722,7 +5722,7 @@ class Qe extends tt {
|
|
|
5722
5722
|
} : r, this)), e;
|
|
5723
5723
|
}
|
|
5724
5724
|
resolve(e, t = {}) {
|
|
5725
|
-
let r, i, a, o,
|
|
5725
|
+
let r, i, a, o, l;
|
|
5726
5726
|
return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((d) => typeof d == "function" ? Se(d, {
|
|
5727
5727
|
...this.options,
|
|
5728
5728
|
...t
|
|
@@ -5735,7 +5735,7 @@ class Qe extends tt {
|
|
|
5735
5735
|
const g = t.count !== void 0 && !R(t.count), f = g && !t.ordinal && t.count === 0, h = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", C = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
5736
5736
|
p.forEach((I) => {
|
|
5737
5737
|
var A, S;
|
|
5738
|
-
this.isValidLookup(r) || (
|
|
5738
|
+
this.isValidLookup(r) || (l = I, !this.checkedLoadedFor[`${C[0]}-${I}`] && ((A = this.utils) != null && A.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(l)) && (this.checkedLoadedFor[`${C[0]}-${I}`] = !0, this.logger.warn(`key "${i}" for languages "${C.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!!!")), C.forEach((D) => {
|
|
5739
5739
|
var B;
|
|
5740
5740
|
if (this.isValidLookup(r)) return;
|
|
5741
5741
|
o = D;
|
|
@@ -5761,7 +5761,7 @@ class Qe extends tt {
|
|
|
5761
5761
|
usedKey: i,
|
|
5762
5762
|
exactUsedKey: a,
|
|
5763
5763
|
usedLng: o,
|
|
5764
|
-
usedNS:
|
|
5764
|
+
usedNS: l
|
|
5765
5765
|
};
|
|
5766
5766
|
}
|
|
5767
5767
|
isValidLookup(e) {
|
|
@@ -5930,7 +5930,7 @@ class Wt {
|
|
|
5930
5930
|
useRawValueToEscape: i,
|
|
5931
5931
|
prefix: a,
|
|
5932
5932
|
prefixEscaped: o,
|
|
5933
|
-
suffix:
|
|
5933
|
+
suffix: l,
|
|
5934
5934
|
suffixEscaped: d,
|
|
5935
5935
|
formatSeparator: c,
|
|
5936
5936
|
unescapeSuffix: u,
|
|
@@ -5943,7 +5943,7 @@ class Wt {
|
|
|
5943
5943
|
maxReplaces: A,
|
|
5944
5944
|
alwaysFormat: S
|
|
5945
5945
|
} = e.interpolation;
|
|
5946
|
-
this.escape = t !== void 0 ? t : ba, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = a ? be(a) : o || "{{", this.suffix =
|
|
5946
|
+
this.escape = t !== void 0 ? t : ba, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = a ? be(a) : o || "{{", this.suffix = l ? be(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = g ? be(g) : f || be("$t("), this.nestingSuffix = h ? be(h) : C || be(")"), this.nestingOptionsSeparator = I || ",", this.maxReplaces = A || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
5947
5947
|
}
|
|
5948
5948
|
reset() {
|
|
5949
5949
|
this.options && this.init(this.options);
|
|
@@ -5954,7 +5954,7 @@ class Wt {
|
|
|
5954
5954
|
}
|
|
5955
5955
|
interpolate(e, t, r, i) {
|
|
5956
5956
|
var f;
|
|
5957
|
-
let a, o,
|
|
5957
|
+
let a, o, l;
|
|
5958
5958
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (h) => {
|
|
5959
5959
|
if (!h.includes(this.formatSeparator)) {
|
|
5960
5960
|
const S = _t(t, d, h, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
@@ -5980,7 +5980,7 @@ class Wt {
|
|
|
5980
5980
|
regex: this.regexp,
|
|
5981
5981
|
safeValue: (h) => this.escapeValue ? it(this.escape(h)) : it(h)
|
|
5982
5982
|
}].forEach((h) => {
|
|
5983
|
-
for (
|
|
5983
|
+
for (l = 0; a = h.regex.exec(e); ) {
|
|
5984
5984
|
const C = a[1].trim();
|
|
5985
5985
|
if (o = c(C), o === void 0)
|
|
5986
5986
|
if (typeof u == "function") {
|
|
@@ -5995,14 +5995,14 @@ class Wt {
|
|
|
5995
5995
|
this.logger.warn(`missed to pass in variable ${C} for interpolating ${e}`), o = "";
|
|
5996
5996
|
else !R(o) && !this.useRawValueToEscape && (o = Nt(o));
|
|
5997
5997
|
const I = h.safeValue(o);
|
|
5998
|
-
if (e = e.replace(a[0], I), p ? (h.regex.lastIndex += o.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0,
|
|
5998
|
+
if (e = e.replace(a[0], I), p ? (h.regex.lastIndex += o.length, h.regex.lastIndex -= a[0].length) : h.regex.lastIndex = 0, l++, l >= this.maxReplaces)
|
|
5999
5999
|
break;
|
|
6000
6000
|
}
|
|
6001
6001
|
}), e;
|
|
6002
6002
|
}
|
|
6003
6003
|
nest(e, t, r = {}) {
|
|
6004
6004
|
let i, a, o;
|
|
6005
|
-
const
|
|
6005
|
+
const l = (d, c) => {
|
|
6006
6006
|
const u = this.nestingOptionsSeparator;
|
|
6007
6007
|
if (!d.includes(u)) return d;
|
|
6008
6008
|
const p = d.split(new RegExp(`${be(u)}[ ]*{`));
|
|
@@ -6026,7 +6026,7 @@ class Wt {
|
|
|
6026
6026
|
...r
|
|
6027
6027
|
}, o = o.replace && !R(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
|
|
6028
6028
|
const c = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
|
|
6029
|
-
if (c !== -1 && (d = i[1].slice(c).split(this.formatSeparator).map((u) => u.trim()).filter(Boolean), i[1] = i[1].slice(0, c)), a = t(
|
|
6029
|
+
if (c !== -1 && (d = i[1].slice(c).split(this.formatSeparator).map((u) => u.trim()).filter(Boolean), i[1] = i[1].slice(0, c)), a = t(l.call(this, i[1].trim(), o), o), a && i[0] === e && !R(a)) return a;
|
|
6030
6030
|
R(a) || (a = Nt(a)), a || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), a = ""), d.length && (a = d.reduce((u, p) => this.format(u, p, r.lng, {
|
|
6031
6031
|
...r,
|
|
6032
6032
|
interpolationkey: i[1].trim()
|
|
@@ -6044,7 +6044,7 @@ const $a = (n) => {
|
|
|
6044
6044
|
const i = r[1].slice(0, -1);
|
|
6045
6045
|
e === "currency" && !i.includes(":") ? t.currency || (t.currency = i.trim()) : e === "relativetime" && !i.includes(":") ? t.range || (t.range = i.trim()) : i.split(";").forEach((o) => {
|
|
6046
6046
|
if (o) {
|
|
6047
|
-
const [
|
|
6047
|
+
const [l, ...d] = o.split(":"), c = d.join(":").trim().replace(/^'+|'+$/g, ""), u = l.trim();
|
|
6048
6048
|
t[u] || (t[u] = c), c === "false" && (t[u] = !1), c === "true" && (t[u] = !0), isNaN(c) || (t[u] = parseInt(c, 10));
|
|
6049
6049
|
}
|
|
6050
6050
|
});
|
|
@@ -6062,8 +6062,8 @@ const $a = (n) => {
|
|
|
6062
6062
|
[i.interpolationkey]: void 0
|
|
6063
6063
|
});
|
|
6064
6064
|
const o = r + JSON.stringify(a);
|
|
6065
|
-
let
|
|
6066
|
-
return
|
|
6065
|
+
let l = e[o];
|
|
6066
|
+
return l || (l = n(Fe(r), i), e[o] = l), l(t);
|
|
6067
6067
|
};
|
|
6068
6068
|
}, Oa = (n) => (e, t, r) => n(Fe(t), r)(e);
|
|
6069
6069
|
class Ea {
|
|
@@ -6080,32 +6080,32 @@ class Ea {
|
|
|
6080
6080
|
const o = new Intl.NumberFormat(i, {
|
|
6081
6081
|
...a
|
|
6082
6082
|
});
|
|
6083
|
-
return (
|
|
6083
|
+
return (l) => o.format(l);
|
|
6084
6084
|
}),
|
|
6085
6085
|
currency: r((i, a) => {
|
|
6086
6086
|
const o = new Intl.NumberFormat(i, {
|
|
6087
6087
|
...a,
|
|
6088
6088
|
style: "currency"
|
|
6089
6089
|
});
|
|
6090
|
-
return (
|
|
6090
|
+
return (l) => o.format(l);
|
|
6091
6091
|
}),
|
|
6092
6092
|
datetime: r((i, a) => {
|
|
6093
6093
|
const o = new Intl.DateTimeFormat(i, {
|
|
6094
6094
|
...a
|
|
6095
6095
|
});
|
|
6096
|
-
return (
|
|
6096
|
+
return (l) => o.format(l);
|
|
6097
6097
|
}),
|
|
6098
6098
|
relativetime: r((i, a) => {
|
|
6099
6099
|
const o = new Intl.RelativeTimeFormat(i, {
|
|
6100
6100
|
...a
|
|
6101
6101
|
});
|
|
6102
|
-
return (
|
|
6102
|
+
return (l) => o.format(l, a.range || "day");
|
|
6103
6103
|
}),
|
|
6104
6104
|
list: r((i, a) => {
|
|
6105
6105
|
const o = new Intl.ListFormat(i, {
|
|
6106
6106
|
...a
|
|
6107
6107
|
});
|
|
6108
|
-
return (
|
|
6108
|
+
return (l) => o.format(l);
|
|
6109
6109
|
})
|
|
6110
6110
|
};
|
|
6111
6111
|
}
|
|
@@ -6118,21 +6118,21 @@ class Ea {
|
|
|
6118
6118
|
format(e, t, r, i = {}) {
|
|
6119
6119
|
if (!t || e == null) return e;
|
|
6120
6120
|
const a = t.split(this.formatSeparator);
|
|
6121
|
-
if (a.length > 1 && a[0].indexOf("(") > 1 && !a[0].includes(")") && a.find((
|
|
6122
|
-
const
|
|
6123
|
-
a[0] = [a[0], ...a.splice(1,
|
|
6121
|
+
if (a.length > 1 && a[0].indexOf("(") > 1 && !a[0].includes(")") && a.find((l) => l.includes(")"))) {
|
|
6122
|
+
const l = a.findIndex((d) => d.includes(")"));
|
|
6123
|
+
a[0] = [a[0], ...a.splice(1, l)].join(this.formatSeparator);
|
|
6124
6124
|
}
|
|
6125
|
-
return a.reduce((
|
|
6125
|
+
return a.reduce((l, d) => {
|
|
6126
6126
|
var p;
|
|
6127
6127
|
const {
|
|
6128
6128
|
formatName: c,
|
|
6129
6129
|
formatOptions: u
|
|
6130
6130
|
} = $a(d);
|
|
6131
6131
|
if (this.formats[c]) {
|
|
6132
|
-
let g =
|
|
6132
|
+
let g = l;
|
|
6133
6133
|
try {
|
|
6134
6134
|
const f = ((p = i == null ? void 0 : i.formatParams) == null ? void 0 : p[i.interpolationkey]) || {}, h = f.locale || f.lng || i.locale || i.lng || r;
|
|
6135
|
-
g = this.formats[c](
|
|
6135
|
+
g = this.formats[c](l, h, {
|
|
6136
6136
|
...u,
|
|
6137
6137
|
...i,
|
|
6138
6138
|
...f
|
|
@@ -6143,7 +6143,7 @@ class Ea {
|
|
|
6143
6143
|
return g;
|
|
6144
6144
|
} else
|
|
6145
6145
|
this.logger.warn(`there was no format function for ${c}`);
|
|
6146
|
-
return
|
|
6146
|
+
return l;
|
|
6147
6147
|
}, e);
|
|
6148
6148
|
}
|
|
6149
6149
|
}
|
|
@@ -6156,13 +6156,13 @@ class Ta extends tt {
|
|
|
6156
6156
|
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = le.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (o = (a = this.backend) == null ? void 0 : a.init) == null || o.call(a, r, i.backend, i);
|
|
6157
6157
|
}
|
|
6158
6158
|
queueLoad(e, t, r, i) {
|
|
6159
|
-
const a = {}, o = {},
|
|
6159
|
+
const a = {}, o = {}, l = {}, d = {};
|
|
6160
6160
|
return e.forEach((c) => {
|
|
6161
6161
|
let u = !0;
|
|
6162
6162
|
t.forEach((p) => {
|
|
6163
6163
|
const g = `${c}|${p}`;
|
|
6164
6164
|
!r.reload && this.store.hasResourceBundle(c, p) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? o[g] === void 0 && (o[g] = !0) : (this.state[g] = 1, u = !1, o[g] === void 0 && (o[g] = !0), a[g] === void 0 && (a[g] = !0), d[p] === void 0 && (d[p] = !0)));
|
|
6165
|
-
}), u || (
|
|
6165
|
+
}), u || (l[c] = !0);
|
|
6166
6166
|
}), (Object.keys(a).length || Object.keys(o).length) && this.queue.push({
|
|
6167
6167
|
pending: o,
|
|
6168
6168
|
pendingCount: Object.keys(o).length,
|
|
@@ -6172,7 +6172,7 @@ class Ta extends tt {
|
|
|
6172
6172
|
}), {
|
|
6173
6173
|
toLoad: Object.keys(a),
|
|
6174
6174
|
pending: Object.keys(o),
|
|
6175
|
-
toLoadLanguages: Object.keys(
|
|
6175
|
+
toLoadLanguages: Object.keys(l),
|
|
6176
6176
|
toLoadNamespaces: Object.keys(d)
|
|
6177
6177
|
};
|
|
6178
6178
|
}
|
|
@@ -6181,16 +6181,16 @@ class Ta extends tt {
|
|
|
6181
6181
|
t && this.emit("failedLoading", a, o, t), !t && r && this.store.addResourceBundle(a, o, r, void 0, void 0, {
|
|
6182
6182
|
skipCopy: !0
|
|
6183
6183
|
}), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
|
|
6184
|
-
const
|
|
6184
|
+
const l = {};
|
|
6185
6185
|
this.queue.forEach((d) => {
|
|
6186
6186
|
ma(d.loaded, [a], o), Ia(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((c) => {
|
|
6187
|
-
|
|
6187
|
+
l[c] || (l[c] = {});
|
|
6188
6188
|
const u = d.loaded[c];
|
|
6189
6189
|
u.length && u.forEach((p) => {
|
|
6190
|
-
|
|
6190
|
+
l[c][p] === void 0 && (l[c][p] = !0);
|
|
6191
6191
|
});
|
|
6192
6192
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
6193
|
-
}), this.emit("loaded",
|
|
6193
|
+
}), this.emit("loaded", l), this.queue = this.queue.filter((d) => !d.done);
|
|
6194
6194
|
}
|
|
6195
6195
|
read(e, t, r, i = 0, a = this.retryTimeout, o) {
|
|
6196
6196
|
if (!e.length) return o(null, {});
|
|
@@ -6206,7 +6206,7 @@ class Ta extends tt {
|
|
|
6206
6206
|
return;
|
|
6207
6207
|
}
|
|
6208
6208
|
this.readingCalls++;
|
|
6209
|
-
const
|
|
6209
|
+
const l = (c, u) => {
|
|
6210
6210
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
6211
6211
|
const p = this.waitingReads.shift();
|
|
6212
6212
|
this.read(p.lng, p.ns, p.fcName, p.tried, p.wait, p.callback);
|
|
@@ -6222,13 +6222,13 @@ class Ta extends tt {
|
|
|
6222
6222
|
if (d.length === 2) {
|
|
6223
6223
|
try {
|
|
6224
6224
|
const c = d(e, t);
|
|
6225
|
-
c && typeof c.then == "function" ? c.then((u) =>
|
|
6225
|
+
c && typeof c.then == "function" ? c.then((u) => l(null, u)).catch(l) : l(null, c);
|
|
6226
6226
|
} catch (c) {
|
|
6227
|
-
|
|
6227
|
+
l(c);
|
|
6228
6228
|
}
|
|
6229
6229
|
return;
|
|
6230
6230
|
}
|
|
6231
|
-
return d(e, t,
|
|
6231
|
+
return d(e, t, l);
|
|
6232
6232
|
}
|
|
6233
6233
|
prepareLoading(e, t, r = {}, i) {
|
|
6234
6234
|
if (!this.backend)
|
|
@@ -6251,11 +6251,11 @@ class Ta extends tt {
|
|
|
6251
6251
|
}
|
|
6252
6252
|
loadOne(e, t = "") {
|
|
6253
6253
|
const r = e.split("|"), i = r[0], a = r[1];
|
|
6254
|
-
this.read(i, a, "read", void 0, void 0, (o,
|
|
6255
|
-
o && this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`, o), !o &&
|
|
6254
|
+
this.read(i, a, "read", void 0, void 0, (o, l) => {
|
|
6255
|
+
o && this.logger.warn(`${t}loading namespace ${a} for language ${i} failed`, o), !o && l && this.logger.log(`${t}loaded namespace ${a} for language ${i}`, l), this.loaded(e, o, l);
|
|
6256
6256
|
});
|
|
6257
6257
|
}
|
|
6258
|
-
saveMissing(e, t, r, i, a, o = {},
|
|
6258
|
+
saveMissing(e, t, r, i, a, o = {}, l = () => {
|
|
6259
6259
|
}) {
|
|
6260
6260
|
var d, c, u, p, g;
|
|
6261
6261
|
if ((c = (d = this.services) == null ? void 0 : d.utils) != null && c.hasLoadedNamespace && !((p = (u = this.services) == null ? void 0 : u.utils) != null && p.hasLoadedNamespace(t))) {
|
|
@@ -6271,12 +6271,12 @@ class Ta extends tt {
|
|
|
6271
6271
|
if (h.length < 6)
|
|
6272
6272
|
try {
|
|
6273
6273
|
let C;
|
|
6274
|
-
h.length === 5 ? C = h(e, t, r, i, f) : C = h(e, t, r, i), C && typeof C.then == "function" ? C.then((I) =>
|
|
6274
|
+
h.length === 5 ? C = h(e, t, r, i, f) : C = h(e, t, r, i), C && typeof C.then == "function" ? C.then((I) => l(null, I)).catch(l) : l(null, C);
|
|
6275
6275
|
} catch (C) {
|
|
6276
|
-
|
|
6276
|
+
l(C);
|
|
6277
6277
|
}
|
|
6278
6278
|
else
|
|
6279
|
-
h(e, t, r, i,
|
|
6279
|
+
h(e, t, r, i, l, f);
|
|
6280
6280
|
}
|
|
6281
6281
|
!e || !e[0] || this.store.addResource(e[0], t, r, i);
|
|
6282
6282
|
}
|
|
@@ -6395,14 +6395,14 @@ class Ne extends tt {
|
|
|
6395
6395
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
|
|
6396
6396
|
this[c] = (...u) => (this.store[c](...u), this);
|
|
6397
6397
|
});
|
|
6398
|
-
const
|
|
6398
|
+
const l = Me(), d = () => {
|
|
6399
6399
|
const c = (u, p) => {
|
|
6400
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options),
|
|
6400
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(p), t(u, p);
|
|
6401
6401
|
};
|
|
6402
6402
|
if (this.languages && !this.isInitialized) return c(null, this.t.bind(this));
|
|
6403
6403
|
this.changeLanguage(this.options.lng, c);
|
|
6404
6404
|
};
|
|
6405
|
-
return this.options.resources || !this.options.initAsync ? d() : setTimeout(d, 0),
|
|
6405
|
+
return this.options.resources || !this.options.initAsync ? d() : setTimeout(d, 0), l;
|
|
6406
6406
|
}
|
|
6407
6407
|
loadResources(e, t = Ue) {
|
|
6408
6408
|
var a, o;
|
|
@@ -6410,13 +6410,13 @@ class Ne extends tt {
|
|
|
6410
6410
|
const i = R(e) ? e : this.language;
|
|
6411
6411
|
if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6412
6412
|
if ((i == null ? void 0 : i.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
|
|
6413
|
-
const
|
|
6413
|
+
const l = [], d = (c) => {
|
|
6414
6414
|
if (!c || c === "cimode") return;
|
|
6415
6415
|
this.services.languageUtils.toResolveHierarchy(c).forEach((p) => {
|
|
6416
|
-
p !== "cimode" && (
|
|
6416
|
+
p !== "cimode" && (l.includes(p) || l.push(p));
|
|
6417
6417
|
});
|
|
6418
6418
|
};
|
|
6419
|
-
i ? d(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => d(u)), (o = (a = this.options.preload) == null ? void 0 : a.forEach) == null || o.call(a, (c) => d(c)), this.services.backendConnector.load(
|
|
6419
|
+
i ? d(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => d(u)), (o = (a = this.options.preload) == null ? void 0 : a.forEach) == null || o.call(a, (c) => d(c)), this.services.backendConnector.load(l, this.options.ns, (c) => {
|
|
6420
6420
|
!c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(c);
|
|
6421
6421
|
});
|
|
6422
6422
|
} else
|
|
@@ -6449,14 +6449,14 @@ class Ne extends tt {
|
|
|
6449
6449
|
this.isLanguageChangingTo = e;
|
|
6450
6450
|
const r = Me();
|
|
6451
6451
|
this.emit("languageChanging", e);
|
|
6452
|
-
const i = (
|
|
6453
|
-
this.language =
|
|
6454
|
-
}, a = (
|
|
6455
|
-
d ? this.isLanguageChangingTo === e && (i(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, r.resolve((...c) => this.t(...c)), t && t(
|
|
6456
|
-
}, o = (
|
|
6452
|
+
const i = (l) => {
|
|
6453
|
+
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
6454
|
+
}, a = (l, d) => {
|
|
6455
|
+
d ? this.isLanguageChangingTo === e && (i(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, r.resolve((...c) => this.t(...c)), t && t(l, (...c) => this.t(...c));
|
|
6456
|
+
}, o = (l) => {
|
|
6457
6457
|
var u, p;
|
|
6458
|
-
!e && !
|
|
6459
|
-
const d = R(
|
|
6458
|
+
!e && !l && this.services.languageDetector && (l = []);
|
|
6459
|
+
const d = R(l) ? l : l && l[0], c = this.store.hasLanguageSomeTranslations(d) ? d : this.services.languageUtils.getBestMatchFromCodes(R(l) ? [l] : l);
|
|
6460
6460
|
c && (this.language || i(c), this.translator.language || this.translator.changeLanguage(c), (p = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || p.call(u, c)), this.loadResources(c, (g) => {
|
|
6461
6461
|
a(g, c);
|
|
6462
6462
|
});
|
|
@@ -6464,9 +6464,9 @@ class Ne extends tt {
|
|
|
6464
6464
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(e), r;
|
|
6465
6465
|
}
|
|
6466
6466
|
getFixedT(e, t, r) {
|
|
6467
|
-
const i = (a, o, ...
|
|
6467
|
+
const i = (a, o, ...l) => {
|
|
6468
6468
|
let d;
|
|
6469
|
-
typeof o != "object" ? d = this.options.overloadTranslationOptionHandler([a, o].concat(
|
|
6469
|
+
typeof o != "object" ? d = this.options.overloadTranslationOptionHandler([a, o].concat(l)) : d = {
|
|
6470
6470
|
...o
|
|
6471
6471
|
}, d.lng = d.lng || i.lng, d.lngs = d.lngs || i.lngs, d.ns = d.ns || i.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || r || i.keyPrefix);
|
|
6472
6472
|
const c = {
|
|
@@ -6498,13 +6498,13 @@ class Ne extends tt {
|
|
|
6498
6498
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
6499
6499
|
const r = t.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
6500
6500
|
if (r.toLowerCase() === "cimode") return !0;
|
|
6501
|
-
const o = (
|
|
6502
|
-
const c = this.services.backendConnector.state[`${
|
|
6501
|
+
const o = (l, d) => {
|
|
6502
|
+
const c = this.services.backendConnector.state[`${l}|${d}`];
|
|
6503
6503
|
return c === -1 || c === 0 || c === 2;
|
|
6504
6504
|
};
|
|
6505
6505
|
if (t.precheck) {
|
|
6506
|
-
const
|
|
6507
|
-
if (
|
|
6506
|
+
const l = t.precheck(this, o);
|
|
6507
|
+
if (l !== void 0) return l;
|
|
6508
6508
|
}
|
|
6509
6509
|
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!i || o(a, e)));
|
|
6510
6510
|
}
|
|
@@ -6530,8 +6530,8 @@ class Ne extends tt {
|
|
|
6530
6530
|
try {
|
|
6531
6531
|
const o = new Intl.Locale(e);
|
|
6532
6532
|
if (o && o.getTextInfo) {
|
|
6533
|
-
const
|
|
6534
|
-
if (
|
|
6533
|
+
const l = o.getTextInfo();
|
|
6534
|
+
if (l && l.direction) return l.direction;
|
|
6535
6535
|
}
|
|
6536
6536
|
} catch {
|
|
6537
6537
|
}
|
|
@@ -6550,19 +6550,19 @@ class Ne extends tt {
|
|
|
6550
6550
|
...e,
|
|
6551
6551
|
isClone: !0
|
|
6552
6552
|
}, a = new Ne(i);
|
|
6553
|
-
if ((e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((
|
|
6554
|
-
a[
|
|
6553
|
+
if ((e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((l) => {
|
|
6554
|
+
a[l] = this[l];
|
|
6555
6555
|
}), a.services = {
|
|
6556
6556
|
...this.services
|
|
6557
6557
|
}, a.services.utils = {
|
|
6558
6558
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
6559
6559
|
}, r) {
|
|
6560
|
-
const
|
|
6560
|
+
const l = Object.keys(this.store.data).reduce((d, c) => (d[c] = {
|
|
6561
6561
|
...this.store.data[c]
|
|
6562
6562
|
}, d[c] = Object.keys(d[c]).reduce((u, p) => (u[p] = {
|
|
6563
6563
|
...d[c][p]
|
|
6564
6564
|
}, u), d[c]), d), {});
|
|
6565
|
-
a.store = new jt(
|
|
6565
|
+
a.store = new jt(l, i), a.services.resourceStore = a.store;
|
|
6566
6566
|
}
|
|
6567
6567
|
if (e.interpolation) {
|
|
6568
6568
|
const d = {
|
|
@@ -6575,8 +6575,8 @@ class Ne extends tt {
|
|
|
6575
6575
|
};
|
|
6576
6576
|
a.services.interpolator = new Wt(c);
|
|
6577
6577
|
}
|
|
6578
|
-
return a.translator = new Qe(a.services, i), a.translator.on("*", (
|
|
6579
|
-
a.emit(
|
|
6578
|
+
return a.translator = new Qe(a.services, i), a.translator.on("*", (l, ...d) => {
|
|
6579
|
+
a.emit(l, ...d);
|
|
6580
6580
|
}), a.init(i, t), a.translator.options = i, a.translator.backendConnector.services.utils = {
|
|
6581
6581
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
6582
6582
|
}, a;
|
|
@@ -6629,7 +6629,7 @@ function Ha() {
|
|
|
6629
6629
|
(function(t, r) {
|
|
6630
6630
|
n.exports = r();
|
|
6631
6631
|
})(Pa, (function() {
|
|
6632
|
-
var t = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second",
|
|
6632
|
+
var t = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", d = "hour", c = "day", u = "week", p = "month", g = "quarter", f = "year", h = "date", C = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|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(L) {
|
|
6633
6633
|
var k = ["th", "st", "nd", "rd"], b = L % 100;
|
|
6634
6634
|
return "[" + L + (k[(b - 20) % 10] || k[b] || k[0]) + "]";
|
|
6635
6635
|
} }, D = function(L, k, b) {
|
|
@@ -6645,7 +6645,7 @@ function Ha() {
|
|
|
6645
6645
|
}, a: function(L) {
|
|
6646
6646
|
return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
|
|
6647
6647
|
}, p: function(L) {
|
|
6648
|
-
return { M: p, y: f, w: u, d: c, D: h, h: d, m:
|
|
6648
|
+
return { M: p, y: f, w: u, d: c, D: h, h: d, m: l, s: o, ms: a, Q: g }[L] || String(L || "").toLowerCase().replace(/s$/, "");
|
|
6649
6649
|
}, u: function(L) {
|
|
6650
6650
|
return L === void 0;
|
|
6651
6651
|
} }, V = "en", B = {};
|
|
@@ -6733,7 +6733,7 @@ function Ha() {
|
|
|
6733
6733
|
return G(ce + "Hours", 0);
|
|
6734
6734
|
case d:
|
|
6735
6735
|
return G(ce + "Minutes", 1);
|
|
6736
|
-
case
|
|
6736
|
+
case l:
|
|
6737
6737
|
return G(ce + "Seconds", 2);
|
|
6738
6738
|
case o:
|
|
6739
6739
|
return G(ce + "Milliseconds", 3);
|
|
@@ -6743,7 +6743,7 @@ function Ha() {
|
|
|
6743
6743
|
}, k.endOf = function(b) {
|
|
6744
6744
|
return this.startOf(b, !1);
|
|
6745
6745
|
}, k.$set = function(b, v) {
|
|
6746
|
-
var x, E = w.p(b), M = "set" + (this.$u ? "UTC" : ""), F = (x = {}, x[c] = M + "Date", x[h] = M + "Date", x[p] = M + "Month", x[f] = M + "FullYear", x[d] = M + "Hours", x[
|
|
6746
|
+
var x, E = w.p(b), M = "set" + (this.$u ? "UTC" : ""), F = (x = {}, x[c] = M + "Date", x[h] = M + "Date", x[p] = M + "Month", x[f] = M + "FullYear", x[d] = M + "Hours", x[l] = M + "Minutes", x[o] = M + "Seconds", x[a] = M + "Milliseconds", x)[E], G = E === c ? this.$D + (v - this.$W) : v;
|
|
6747
6747
|
if (E === p || E === f) {
|
|
6748
6748
|
var W = this.clone().set(h, 1);
|
|
6749
6749
|
W.$d[F](G), W.init(), this.$d = W.set(h, Math.min(this.$D, W.daysInMonth())).$d;
|
|
@@ -6764,7 +6764,7 @@ function Ha() {
|
|
|
6764
6764
|
if (M === f) return this.set(f, this.$y + b);
|
|
6765
6765
|
if (M === c) return F(1);
|
|
6766
6766
|
if (M === u) return F(7);
|
|
6767
|
-
var G = (x = {}, x[
|
|
6767
|
+
var G = (x = {}, x[l] = r, x[d] = i, x[o] = t, x)[M] || 1, W = this.$d.getTime() + b * G;
|
|
6768
6768
|
return w.w(W, this);
|
|
6769
6769
|
}, k.subtract = function(b, v) {
|
|
6770
6770
|
return this.add(-1 * b, v);
|
|
@@ -6859,7 +6859,7 @@ function Ha() {
|
|
|
6859
6859
|
case d:
|
|
6860
6860
|
E = q / i;
|
|
6861
6861
|
break;
|
|
6862
|
-
case
|
|
6862
|
+
case l:
|
|
6863
6863
|
E = q / r;
|
|
6864
6864
|
break;
|
|
6865
6865
|
case o:
|
|
@@ -6889,7 +6889,7 @@ function Ha() {
|
|
|
6889
6889
|
return this.$d.toUTCString();
|
|
6890
6890
|
}, L;
|
|
6891
6891
|
})(), P = N.prototype;
|
|
6892
|
-
return O.prototype = P, [["$ms", a], ["$s", o], ["$m",
|
|
6892
|
+
return O.prototype = P, [["$ms", a], ["$s", o], ["$m", l], ["$H", d], ["$W", c], ["$M", p], ["$y", f], ["$D", h]].forEach((function(L) {
|
|
6893
6893
|
P[L[1]] = function(k) {
|
|
6894
6894
|
return this.$g(k, L[0], L[1]);
|
|
6895
6895
|
};
|
|
@@ -6905,10 +6905,10 @@ var Ra = Ha();
|
|
|
6905
6905
|
const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, setDates: t }) => {
|
|
6906
6906
|
const r = (o) => o && o > Dr().endOf("day"), i = (o) => {
|
|
6907
6907
|
if (o && o[0] && o[1]) {
|
|
6908
|
-
const
|
|
6909
|
-
t([
|
|
6908
|
+
const l = ne.toISODateString(o[0].toDate()), d = ne.toISODateString(o[1].toDate());
|
|
6909
|
+
t([l, d]), n((c) => ({
|
|
6910
6910
|
...c,
|
|
6911
|
-
startDate:
|
|
6911
|
+
startDate: l,
|
|
6912
6912
|
endDate: d
|
|
6913
6913
|
})), e(!1);
|
|
6914
6914
|
}
|
|
@@ -6940,7 +6940,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
6940
6940
|
]
|
|
6941
6941
|
}
|
|
6942
6942
|
};
|
|
6943
|
-
return /* @__PURE__ */
|
|
6943
|
+
return /* @__PURE__ */ s(
|
|
6944
6944
|
dr,
|
|
6945
6945
|
{
|
|
6946
6946
|
dropdownClassName: "date-picker-column-style",
|
|
@@ -6950,8 +6950,8 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
6950
6950
|
format: "MMM D, YYYY",
|
|
6951
6951
|
placeholder: ["From", "To"],
|
|
6952
6952
|
getPopupContainer: (o) => {
|
|
6953
|
-
var
|
|
6954
|
-
return ((
|
|
6953
|
+
var l;
|
|
6954
|
+
return ((l = o == null ? void 0 : o.parentElement) == null ? void 0 : l.parentElement) ?? document.body;
|
|
6955
6955
|
},
|
|
6956
6956
|
onOpenChange: (o) => {
|
|
6957
6957
|
o || e(!1);
|
|
@@ -6987,7 +6987,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
6987
6987
|
label: t.length === 2 && t[0] !== "" ? `${U("Custom")}: ${t[0]} / ${t[1]}` : U("Custom"),
|
|
6988
6988
|
...ne.getCommonDateRange("custom")
|
|
6989
6989
|
}
|
|
6990
|
-
], [a, o] = j(),
|
|
6990
|
+
], [a, o] = j(), l = we(() => e ? [
|
|
6991
6991
|
{ key: "all", label: U("All"), ...ne.getCommonDateRange("all") },
|
|
6992
6992
|
...i
|
|
6993
6993
|
] : i, [e, t]);
|
|
@@ -6996,7 +6996,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
6996
6996
|
o(!0);
|
|
6997
6997
|
else {
|
|
6998
6998
|
o(!1);
|
|
6999
|
-
const u =
|
|
6999
|
+
const u = l.find((p) => p.key === c);
|
|
7000
7000
|
u && n((p) => ({
|
|
7001
7001
|
...p,
|
|
7002
7002
|
startDate: u.startDate,
|
|
@@ -7006,18 +7006,18 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7006
7006
|
return c;
|
|
7007
7007
|
}
|
|
7008
7008
|
return /* @__PURE__ */ y(ua, { id: "tabs-container", children: [
|
|
7009
|
-
/* @__PURE__ */
|
|
7009
|
+
/* @__PURE__ */ s(
|
|
7010
7010
|
pa,
|
|
7011
7011
|
{
|
|
7012
7012
|
type: "editable-card",
|
|
7013
|
-
items:
|
|
7013
|
+
items: l,
|
|
7014
7014
|
onTabClick: d,
|
|
7015
7015
|
activeKey: a ? "custom" : void 0,
|
|
7016
7016
|
removeIcon: !0,
|
|
7017
7017
|
hideAdd: !0
|
|
7018
7018
|
}
|
|
7019
7019
|
),
|
|
7020
|
-
a && /* @__PURE__ */
|
|
7020
|
+
a && /* @__PURE__ */ s(fa, { children: /* @__PURE__ */ s(
|
|
7021
7021
|
Na,
|
|
7022
7022
|
{
|
|
7023
7023
|
setDates: r,
|
|
@@ -7026,7 +7026,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7026
7026
|
getPopupContainer: () => document.getElementById("tabs-container")
|
|
7027
7027
|
}
|
|
7028
7028
|
) }),
|
|
7029
|
-
/* @__PURE__ */
|
|
7029
|
+
/* @__PURE__ */ s(
|
|
7030
7030
|
Fa,
|
|
7031
7031
|
{
|
|
7032
7032
|
border: "1px solid var(--color-border-brand-special, #02e0ae)",
|
|
@@ -7035,7 +7035,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7035
7035
|
placeholder: U("Choose"),
|
|
7036
7036
|
getPopupContainer: (c) => c.parentElement,
|
|
7037
7037
|
onChange: d,
|
|
7038
|
-
options:
|
|
7038
|
+
options: l.map((c) => ({
|
|
7039
7039
|
value: c.key,
|
|
7040
7040
|
label: c.label
|
|
7041
7041
|
}))
|
|
@@ -7097,7 +7097,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7097
7097
|
`, ko = ({ exportFileName: n, filters: e, service: t }) => {
|
|
7098
7098
|
const r = async (a) => {
|
|
7099
7099
|
try {
|
|
7100
|
-
const { PageSize: o, Page:
|
|
7100
|
+
const { PageSize: o, Page: l, ...d } = e, u = (await t(d, a)).data;
|
|
7101
7101
|
a === "xlsx" ? Aa(u, `${n}.${a}`) : ja(u, `${n}`);
|
|
7102
7102
|
} catch (o) {
|
|
7103
7103
|
console.error("Export failed:", o);
|
|
@@ -7114,21 +7114,21 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7114
7114
|
onClick: () => r("csv")
|
|
7115
7115
|
}
|
|
7116
7116
|
];
|
|
7117
|
-
return /* @__PURE__ */
|
|
7117
|
+
return /* @__PURE__ */ s(
|
|
7118
7118
|
Ba,
|
|
7119
7119
|
{
|
|
7120
7120
|
menu: {
|
|
7121
7121
|
items: i,
|
|
7122
7122
|
className: "dropdown-menu"
|
|
7123
7123
|
},
|
|
7124
|
-
popupRender: (a) => /* @__PURE__ */
|
|
7124
|
+
popupRender: (a) => /* @__PURE__ */ s(Va, { children: a }),
|
|
7125
7125
|
placement: "bottomLeft",
|
|
7126
|
-
children: /* @__PURE__ */
|
|
7126
|
+
children: /* @__PURE__ */ s(Ga, { children: U("Export") })
|
|
7127
7127
|
}
|
|
7128
7128
|
);
|
|
7129
7129
|
}, So = ({ value: n, onChange: e, ...t }) => {
|
|
7130
7130
|
const r = n ? Dr(n) : null;
|
|
7131
|
-
return /* @__PURE__ */
|
|
7131
|
+
return /* @__PURE__ */ s(Xt, { value: r, onChange: (a) => {
|
|
7132
7132
|
a ? e == null || e(ne.toISODateString(a.toDate())) : e == null || e(null);
|
|
7133
7133
|
}, allowClear: !0, ...t });
|
|
7134
7134
|
}, Lo = ({
|
|
@@ -7140,15 +7140,15 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7140
7140
|
getItemById: a,
|
|
7141
7141
|
onSetFormValues: o
|
|
7142
7142
|
}) => {
|
|
7143
|
-
const
|
|
7143
|
+
const l = Ee(), [d] = Ce.useForm(), [c, u] = j(n == "new"), [p, g] = j(null), f = async (C) => {
|
|
7144
7144
|
const I = window.location.pathname, A = I.substring(0, I.lastIndexOf("/"));
|
|
7145
7145
|
try {
|
|
7146
7146
|
if (p) {
|
|
7147
7147
|
let S;
|
|
7148
|
-
return n ? S = await r({ ...C, id: n }) : S = await r(C), t !== !1 && S.data.success === !0 &&
|
|
7148
|
+
return n ? S = await r({ ...C, id: n }) : S = await r(C), t !== !1 && S.data.success === !0 && l(A), S;
|
|
7149
7149
|
} else {
|
|
7150
7150
|
const S = await i(C);
|
|
7151
|
-
return t !== !1 && S.data.success === !0 &&
|
|
7151
|
+
return t !== !1 && S.data.success === !0 && l(A), S;
|
|
7152
7152
|
}
|
|
7153
7153
|
} catch (S) {
|
|
7154
7154
|
if (S.status === 400) {
|
|
@@ -7174,7 +7174,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7174
7174
|
handleSave: f
|
|
7175
7175
|
};
|
|
7176
7176
|
}, Do = ({ id: n, formItem: e, updateItem: t, addItem: r, getItemById: i }) => {
|
|
7177
|
-
const [a] = Ce.useForm(), [o,
|
|
7177
|
+
const [a] = Ce.useForm(), [o, l] = j(null), d = async (u) => {
|
|
7178
7178
|
try {
|
|
7179
7179
|
let p;
|
|
7180
7180
|
return n ? p = await t({ ...u }) : p = await r(u), p;
|
|
@@ -7188,7 +7188,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7188
7188
|
}, c = async (u) => {
|
|
7189
7189
|
try {
|
|
7190
7190
|
const g = (await i(u)).data;
|
|
7191
|
-
|
|
7191
|
+
l(g), a.setFieldsValue(g);
|
|
7192
7192
|
} catch (p) {
|
|
7193
7193
|
console.log(p, "Error in Form Controller.");
|
|
7194
7194
|
}
|
|
@@ -7196,7 +7196,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7196
7196
|
return Y(() => {
|
|
7197
7197
|
try {
|
|
7198
7198
|
if (!e) return;
|
|
7199
|
-
|
|
7199
|
+
l(e), a.setFieldsValue(e);
|
|
7200
7200
|
} catch (u) {
|
|
7201
7201
|
console.log(u, "Error in Form Controller.");
|
|
7202
7202
|
}
|
|
@@ -7215,7 +7215,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7215
7215
|
e(o), r({ visible: !1, token: "" }), n("/");
|
|
7216
7216
|
};
|
|
7217
7217
|
return {
|
|
7218
|
-
handleTwoFactorResponse: (o,
|
|
7218
|
+
handleTwoFactorResponse: (o, l) => {
|
|
7219
7219
|
const { success: d, value: c } = o.data;
|
|
7220
7220
|
if (!d)
|
|
7221
7221
|
throw new Error("Authentication failed");
|
|
@@ -7228,7 +7228,7 @@ const Dr = /* @__PURE__ */ Ma(Ra), Na = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7228
7228
|
});
|
|
7229
7229
|
return;
|
|
7230
7230
|
}
|
|
7231
|
-
|
|
7231
|
+
l && i(c);
|
|
7232
7232
|
},
|
|
7233
7233
|
finalizeLogin: i,
|
|
7234
7234
|
twoFactor: t,
|
|
@@ -7239,7 +7239,7 @@ function Oo(n) {
|
|
|
7239
7239
|
const { navigator: e } = ct(Rr), t = Ve();
|
|
7240
7240
|
Y(() => {
|
|
7241
7241
|
if (!n) return;
|
|
7242
|
-
const r = e.push, i = e.replace, a = (o) => (...
|
|
7242
|
+
const r = e.push, i = e.replace, a = (o) => (...l) => {
|
|
7243
7243
|
er.confirm({
|
|
7244
7244
|
title: "UnsavedChanges",
|
|
7245
7245
|
content: "UnsavedMoveDesc",
|
|
@@ -7254,7 +7254,7 @@ function Oo(n) {
|
|
|
7254
7254
|
// in global css at this point for this..
|
|
7255
7255
|
},
|
|
7256
7256
|
onOk: () => {
|
|
7257
|
-
o(...
|
|
7257
|
+
o(...l);
|
|
7258
7258
|
},
|
|
7259
7259
|
onCancel: () => {
|
|
7260
7260
|
}
|
|
@@ -7289,7 +7289,7 @@ const Io = (n, e, t) => {
|
|
|
7289
7289
|
})), o = [i, ...a].map(
|
|
7290
7290
|
(p) => p.map((g) => `"${(g || "").toString().replace(/"/g, '""')}"`).join(",")
|
|
7291
7291
|
).join(`\r
|
|
7292
|
-
`),
|
|
7292
|
+
`), l = "\uFEFF", d = new Blob([l + o], { type: "text/csv;charset=utf-8;" }), c = document.createElement("a"), u = URL.createObjectURL(d);
|
|
7293
7293
|
c.setAttribute("href", u), c.setAttribute("download", t), document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(u);
|
|
7294
7294
|
}, To = (n, e, t) => {
|
|
7295
7295
|
const i = n.filter((p) => e[p.id]).map((p) => {
|
|
@@ -7305,19 +7305,19 @@ const Io = (n, e, t) => {
|
|
|
7305
7305
|
}), g;
|
|
7306
7306
|
}), a = Ge.utils.json_to_sheet(i), o = Ge.utils.book_new();
|
|
7307
7307
|
Ge.utils.book_append_sheet(o, a, "Data");
|
|
7308
|
-
const
|
|
7308
|
+
const l = Ge.write(o, { bookType: "xlsx", type: "array" }), d = new Blob([l], { type: "application/octet-stream" }), c = URL.createObjectURL(d), u = document.createElement("a");
|
|
7309
7309
|
u.href = c, u.download = t, document.body.appendChild(u), u.click(), document.body.removeChild(u), URL.revokeObjectURL(c);
|
|
7310
7310
|
};
|
|
7311
7311
|
function zo(n, e) {
|
|
7312
7312
|
if (!n) return "";
|
|
7313
7313
|
const t = new Date(n);
|
|
7314
7314
|
if (isNaN(t.getTime())) return "";
|
|
7315
|
-
const r = t.getDate(), i = t.getMonth(), a = t.getFullYear(),
|
|
7315
|
+
const r = t.getDate(), i = t.getMonth(), a = t.getFullYear(), l = `${r} ${i}, ${a}`;
|
|
7316
7316
|
if (e != null && e.withTime) {
|
|
7317
7317
|
const d = t.getHours().toString().padStart(2, "0"), c = t.getMinutes().toString().padStart(2, "0");
|
|
7318
|
-
return `${
|
|
7318
|
+
return `${l} ${d}:${c}`;
|
|
7319
7319
|
}
|
|
7320
|
-
return
|
|
7320
|
+
return l;
|
|
7321
7321
|
}
|
|
7322
7322
|
function Mo(n, e = "en-US") {
|
|
7323
7323
|
return n < 1 ? 0 : n ? n.toLocaleString(e) : "";
|
|
@@ -7326,9 +7326,9 @@ const Po = (n, e) => Array.isArray(n) ? n.filter((t) => t.type ? (Array.isArray(
|
|
|
7326
7326
|
function Ho(n) {
|
|
7327
7327
|
const { errors: e } = n.response.data, t = Object.keys(e)[0], r = e[t][0], i = t.match(Ua);
|
|
7328
7328
|
if (i) {
|
|
7329
|
-
const [,
|
|
7329
|
+
const [, l, d, c, u, p] = i;
|
|
7330
7330
|
return {
|
|
7331
|
-
brandIndex: Number(
|
|
7331
|
+
brandIndex: Number(l),
|
|
7332
7332
|
generalType: Pe(d),
|
|
7333
7333
|
specificType: Pe(c),
|
|
7334
7334
|
itemIndex: Number(u),
|
|
@@ -7338,9 +7338,9 @@ function Ho(n) {
|
|
|
7338
7338
|
}
|
|
7339
7339
|
const a = t.match(_a) || t.match(Wa);
|
|
7340
7340
|
if (a) {
|
|
7341
|
-
const [,
|
|
7341
|
+
const [, l, d, c] = a;
|
|
7342
7342
|
return {
|
|
7343
|
-
brandIndex: Number(
|
|
7343
|
+
brandIndex: Number(l),
|
|
7344
7344
|
generalType: Pe(d),
|
|
7345
7345
|
specificType: Pe(c),
|
|
7346
7346
|
message: r
|