affiliate-front-shared 1.3.9 → 1.3.11
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 +121 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +687 -639
- package/dist/index.mjs.map +1 -1
- package/dist/styled-components/StyledSelect.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Or = Object.defineProperty;
|
|
2
2
|
var Er = (n, e, t) => e in n ? Or(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var Be = (n, e, t) => Er(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { jsx as s, Fragment 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 dt, useEffect as Y, useState as j, useRef as Xe, useMemo as Ce } from "react";
|
|
7
7
|
import { Menu as Qt, DatePicker as Xt, Table as pt, Dropdown as xe, Select as et, Input as tt, Modal as er, Button as Oe, notification as kt, Form as ke, Checkbox as Ir, Skeleton as Tr, Pagination as zr, Breadcrumb as Mr, Spin as tr, Empty as rr, Tabs as Pr } from "antd";
|
|
@@ -16,7 +16,7 @@ import Ur from "i18next-http-backend";
|
|
|
16
16
|
import * as Ge from "xlsx";
|
|
17
17
|
import { debounce as _r } from "lodash";
|
|
18
18
|
const or = Jt({});
|
|
19
|
-
function
|
|
19
|
+
function pi({
|
|
20
20
|
services: n,
|
|
21
21
|
children: e
|
|
22
22
|
}) {
|
|
@@ -29,11 +29,11 @@ let he = (n) => n;
|
|
|
29
29
|
function St(n) {
|
|
30
30
|
he = n;
|
|
31
31
|
}
|
|
32
|
-
const B = (n, e) => he(`general.${n}`, e),
|
|
33
|
-
function
|
|
32
|
+
const B = (n, e) => he(`general.${n}`, e), ie = (n, e) => he(`actions.${n}`, e), ee = (n, e) => he(`authentication.${n}`, e), oe = (n, e) => he(`months.${n}`, e), we = (n, e) => he(`date.${n}`, e), be = (n, e) => he(`weekDays.${n}`, e), Wr = (n, e) => he(`noData.${n}`, e), Lt = (n, e) => he(`comingSoon.${n}`, e);
|
|
33
|
+
function ui({ t: n, children: e }) {
|
|
34
34
|
return St(n), Y(() => {
|
|
35
35
|
St(n);
|
|
36
|
-
}, [n]), /* @__PURE__ */ s(
|
|
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 })), Yr = m(ut)`
|
|
39
39
|
color: var(--color-text-primary, #131412);
|
|
@@ -149,13 +149,13 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
149
149
|
margin-left: 1.5rem !important;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
`,
|
|
153
|
-
const [t, r] = j(null), [o,
|
|
152
|
+
`, ar = (n, e = []) => {
|
|
153
|
+
const [t, r] = j(null), [o, a] = j(null), [i, 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
|
-
r(g), (p = g == null ? void 0 : g.data) != null && p.items &&
|
|
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 {
|
|
@@ -166,7 +166,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
166
166
|
u();
|
|
167
167
|
}, [...e]), {
|
|
168
168
|
response: t,
|
|
169
|
-
loading:
|
|
169
|
+
loading: i,
|
|
170
170
|
error: d,
|
|
171
171
|
fetchData: u,
|
|
172
172
|
listItems: o
|
|
@@ -272,9 +272,9 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
272
272
|
position: absolute !important;
|
|
273
273
|
z-index: 10000;
|
|
274
274
|
`, rn = ({ closeProfileDropdown: n }) => {
|
|
275
|
-
const e = Ee(), { getCustomers: t, postSelectedCustomer: r } = Ie(), { storedThemeMode: o, logout:
|
|
275
|
+
const e = Ee(), { getCustomers: t, postSelectedCustomer: r } = Ie(), { storedThemeMode: o, logout: a, setThemeMode: i, user: l } = Te(), { i18n: d } = Vr();
|
|
276
276
|
function c() {
|
|
277
|
-
|
|
277
|
+
a(), e("/authorization/login");
|
|
278
278
|
}
|
|
279
279
|
function u(C) {
|
|
280
280
|
d.changeLanguage(C), window.location.reload();
|
|
@@ -282,7 +282,7 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
282
282
|
const p = (C, I) => /* @__PURE__ */ y(Xr, { children: [
|
|
283
283
|
/* @__PURE__ */ s(en, { children: C }),
|
|
284
284
|
I && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(Qr, {}) })
|
|
285
|
-
] }), { response: g } =
|
|
285
|
+
] }), { response: g } = ar(t ?? (() => Promise.resolve({ data: [] })), []);
|
|
286
286
|
async function f(C) {
|
|
287
287
|
if (!r) return;
|
|
288
288
|
const A = (await r(C)).data.value;
|
|
@@ -313,9 +313,9 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
313
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__ */ s(Q.Item, { onClick: () =>
|
|
317
|
-
/* @__PURE__ */ s(Q.Item, { onClick: () =>
|
|
318
|
-
/* @__PURE__ */ s(Q.Item, { onClick: () =>
|
|
316
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => i(!1), children: p("Light", o === !1) }, "30-1"),
|
|
317
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => i(!0), children: p("Dark", o === !0) }, "30-2"),
|
|
318
|
+
/* @__PURE__ */ s(Q.Item, { onClick: () => i(null), children: p(
|
|
319
319
|
`DefinedBySystem (${window.matchMedia("(prefers-color-scheme: dark)").matches ? "Dark" : "Light"})`,
|
|
320
320
|
o === null
|
|
321
321
|
) }, "30-3")
|
|
@@ -328,21 +328,21 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
328
328
|
},
|
|
329
329
|
"10"
|
|
330
330
|
) });
|
|
331
|
-
},
|
|
332
|
-
const r = Ve(), [o,
|
|
331
|
+
}, ir = ({ items: n, topLogoPrimaryUrl: e, shortName: t }) => {
|
|
332
|
+
const r = Ve(), [o, a] = j(!1), i = Xe(null), l = () => a((d) => !d);
|
|
333
333
|
return Y(() => {
|
|
334
334
|
function d(c) {
|
|
335
|
-
|
|
335
|
+
i.current && !i.current.contains(c.target) && a(!1);
|
|
336
336
|
}
|
|
337
337
|
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
338
338
|
}, []), /* @__PURE__ */ y(Kr, { className: "sidebar-wrapper", children: [
|
|
339
|
-
/* @__PURE__ */ y(Zr, { ref:
|
|
339
|
+
/* @__PURE__ */ y(Zr, { ref: i, children: [
|
|
340
340
|
/* @__PURE__ */ y(qr, { onClick: l, children: [
|
|
341
341
|
/* @__PURE__ */ s("img", { src: e, alt: "logo" }),
|
|
342
342
|
/* @__PURE__ */ s("span", { children: t }),
|
|
343
343
|
/* @__PURE__ */ s(Yr, {})
|
|
344
344
|
] }),
|
|
345
|
-
/* @__PURE__ */ s("div", { children: o && /* @__PURE__ */ s(rn, { closeProfileDropdown:
|
|
345
|
+
/* @__PURE__ */ s("div", { children: o && /* @__PURE__ */ s(rn, { closeProfileDropdown: a }) })
|
|
346
346
|
] }),
|
|
347
347
|
/* @__PURE__ */ s(Jr, { mode: "inline", selectedKeys: [r.pathname], items: n })
|
|
348
348
|
] });
|
|
@@ -373,8 +373,8 @@ const ut = (n) => /* @__PURE__ */ H.createElement("svg", { width: 16, height: 16
|
|
|
373
373
|
max-height: 100vh;
|
|
374
374
|
`, an = m.div`
|
|
375
375
|
background: var(--color-bg-primary, #fff);
|
|
376
|
-
`,
|
|
377
|
-
/* @__PURE__ */ s(
|
|
376
|
+
`, fi = ({ children: n }) => /* @__PURE__ */ y(nn, { children: [
|
|
377
|
+
/* @__PURE__ */ s(ir, {}),
|
|
378
378
|
/* @__PURE__ */ s(on, { children: /* @__PURE__ */ s(an, { children: n }) })
|
|
379
379
|
] }), sn = m.div`
|
|
380
380
|
display: grid;
|
|
@@ -605,20 +605,20 @@ const kn = m.span`
|
|
|
605
605
|
onClick: t,
|
|
606
606
|
className: r,
|
|
607
607
|
color: o,
|
|
608
|
-
commissionStatus:
|
|
609
|
-
}) => /* @__PURE__ */ s(
|
|
608
|
+
commissionStatus: a
|
|
609
|
+
}) => /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ y(xn, { color: o, onClick: t, className: r, children: [
|
|
610
610
|
/* @__PURE__ */ s(Cn, { children: e }),
|
|
611
611
|
/* @__PURE__ */ s(wn, { children: n }),
|
|
612
|
-
|
|
613
|
-
] }) }) }),
|
|
612
|
+
a && e === B("Commission") && /* @__PURE__ */ s(kn, { color: o, children: a })
|
|
613
|
+
] }) }) }), hi = ({
|
|
614
614
|
pageTitle: n,
|
|
615
615
|
pageDesc: e,
|
|
616
616
|
logoPrimaryUrl: t,
|
|
617
617
|
shortName: r,
|
|
618
618
|
colorPrimary: o,
|
|
619
|
-
children:
|
|
619
|
+
children: a
|
|
620
620
|
}) => {
|
|
621
|
-
const [
|
|
621
|
+
const [i] = Rr(), l = i.get("backPath"), d = Ee();
|
|
622
622
|
function c(u) {
|
|
623
623
|
d(u);
|
|
624
624
|
}
|
|
@@ -636,7 +636,7 @@ const kn = m.span`
|
|
|
636
636
|
boxBottomText: /* @__PURE__ */ s(ln, { children: r })
|
|
637
637
|
}
|
|
638
638
|
) }),
|
|
639
|
-
|
|
639
|
+
a,
|
|
640
640
|
/* @__PURE__ */ y(yn, { children: [
|
|
641
641
|
/* @__PURE__ */ s(
|
|
642
642
|
"img",
|
|
@@ -692,15 +692,15 @@ const Dt = (n) => {
|
|
|
692
692
|
const o = sessionStorage.getItem(t);
|
|
693
693
|
if (o)
|
|
694
694
|
try {
|
|
695
|
-
const
|
|
695
|
+
const a = JSON.parse(o);
|
|
696
696
|
n({
|
|
697
|
-
filters:
|
|
698
|
-
filterItems:
|
|
699
|
-
sortItems:
|
|
700
|
-
activeTableView:
|
|
701
|
-
hideItems:
|
|
702
|
-
groupByArr:
|
|
703
|
-
selectedConfig:
|
|
697
|
+
filters: a.filters ?? lr,
|
|
698
|
+
filterItems: a.filterItems ?? [],
|
|
699
|
+
sortItems: a.sortItems ?? [],
|
|
700
|
+
activeTableView: a.activeTableView ?? r,
|
|
701
|
+
hideItems: a.hideItems ?? {},
|
|
702
|
+
groupByArr: a.groupByArr ?? [],
|
|
703
|
+
selectedConfig: a.selectedConfig ?? null,
|
|
704
704
|
isHydrated: !0
|
|
705
705
|
});
|
|
706
706
|
return;
|
|
@@ -720,13 +720,13 @@ const Dt = (n) => {
|
|
|
720
720
|
},
|
|
721
721
|
setSortItems: (t) => {
|
|
722
722
|
e().isHydrated && (n({ sortItems: t }), n((r) => {
|
|
723
|
-
const { Sort: o, Asc:
|
|
723
|
+
const { Sort: o, Asc: a, ...i } = 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
|
+
...i,
|
|
730
730
|
...l
|
|
731
731
|
}
|
|
732
732
|
};
|
|
@@ -734,15 +734,15 @@ const Dt = (n) => {
|
|
|
734
734
|
},
|
|
735
735
|
setFilterItems: (t, r = !1) => {
|
|
736
736
|
if (!e().isHydrated || (n({ filterItems: t }), !r)) return;
|
|
737
|
-
const { filters: o, sortItems:
|
|
737
|
+
const { filters: o, sortItems: a } = e(), { PageSize: i, Sort: l, Asc: d, QuickSearch: c } = o, u = {};
|
|
738
738
|
t.forEach((p) => {
|
|
739
739
|
u[p.dataIndex] = p.filterValue, p.isCountryGroup !== void 0 && (u.isCountryGroup = p.isCountryGroup);
|
|
740
740
|
}), n({
|
|
741
741
|
filters: {
|
|
742
742
|
Page: 1,
|
|
743
|
-
PageSize:
|
|
743
|
+
PageSize: i,
|
|
744
744
|
QuickSearch: c || "",
|
|
745
|
-
...
|
|
745
|
+
...a.length > 0 ? { Sort: l, Asc: d } : {},
|
|
746
746
|
...u
|
|
747
747
|
}
|
|
748
748
|
});
|
|
@@ -766,7 +766,7 @@ const Dt = (n) => {
|
|
|
766
766
|
if (!e) throw new Error("GridViewStoreProvider is missing");
|
|
767
767
|
return Fr(e, n);
|
|
768
768
|
}, On = () => {
|
|
769
|
-
const n = D((u) => u.hydrateFromStorage), e = D((u) => u.isHydrated), t = D((u) => u.filters), r = D((u) => u.filterItems), o = D((u) => u.sortItems),
|
|
769
|
+
const n = D((u) => u.hydrateFromStorage), e = D((u) => u.isHydrated), t = D((u) => u.filters), r = D((u) => u.filterItems), o = D((u) => u.sortItems), a = D((u) => u.hideItems), i = D((u) => u.groupByArr), l = D((u) => u.activeTableView), d = 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}`,
|
|
@@ -775,8 +775,8 @@ const Dt = (n) => {
|
|
|
775
775
|
filterItems: r,
|
|
776
776
|
sortItems: o,
|
|
777
777
|
activeTableView: l,
|
|
778
|
-
hideItems:
|
|
779
|
-
groupByArr:
|
|
778
|
+
hideItems: a,
|
|
779
|
+
groupByArr: i,
|
|
780
780
|
selectedConfig: d
|
|
781
781
|
})
|
|
782
782
|
);
|
|
@@ -785,8 +785,8 @@ const Dt = (n) => {
|
|
|
785
785
|
r,
|
|
786
786
|
o,
|
|
787
787
|
l,
|
|
788
|
-
i,
|
|
789
788
|
a,
|
|
789
|
+
i,
|
|
790
790
|
d,
|
|
791
791
|
e
|
|
792
792
|
]);
|
|
@@ -1214,10 +1214,10 @@ const ft = m.div`
|
|
|
1214
1214
|
}
|
|
1215
1215
|
);
|
|
1216
1216
|
}, fr = ({ placement: n, children: e }) => {
|
|
1217
|
-
const t = D((f) => f.columns), r = D((f) => f.sortItems), o = D((f) => f.setSortItems),
|
|
1218
|
-
(
|
|
1217
|
+
const t = D((f) => f.columns), r = D((f) => f.sortItems), o = D((f) => f.setSortItems), a = r[0], [i, l] = j(""), [d, c] = j(
|
|
1218
|
+
(a == null ? void 0 : a.direction) === re.ASC ? re.ASC : re.DESC
|
|
1219
1219
|
), u = t.filter(
|
|
1220
|
-
(f) => f.title.toLowerCase().includes(
|
|
1220
|
+
(f) => f.title.toLowerCase().includes(i.toLowerCase()) && f.sortable !== !1
|
|
1221
1221
|
);
|
|
1222
1222
|
function p(f, h) {
|
|
1223
1223
|
o([
|
|
@@ -1240,7 +1240,7 @@ const ft = m.div`
|
|
|
1240
1240
|
{
|
|
1241
1241
|
type: "text",
|
|
1242
1242
|
placeholder: "Search...",
|
|
1243
|
-
value:
|
|
1243
|
+
value: i,
|
|
1244
1244
|
onChange: (h) => l(h.target.value)
|
|
1245
1245
|
}
|
|
1246
1246
|
),
|
|
@@ -1248,11 +1248,11 @@ const ft = m.div`
|
|
|
1248
1248
|
"button",
|
|
1249
1249
|
{
|
|
1250
1250
|
onClick: () => {
|
|
1251
|
-
h.title == (
|
|
1251
|
+
h.title == (a == null ? void 0 : a.title) ? g() : p(h, d);
|
|
1252
1252
|
},
|
|
1253
1253
|
children: [
|
|
1254
1254
|
h.title,
|
|
1255
|
-
h.title == (
|
|
1255
|
+
h.title == (a == null ? void 0 : a.title) && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(He, {}) })
|
|
1256
1256
|
]
|
|
1257
1257
|
},
|
|
1258
1258
|
C
|
|
@@ -1262,7 +1262,7 @@ const ft = m.div`
|
|
|
1262
1262
|
"button",
|
|
1263
1263
|
{
|
|
1264
1264
|
onClick: () => {
|
|
1265
|
-
c(re.ASC),
|
|
1265
|
+
c(re.ASC), a && p(a, re.ASC);
|
|
1266
1266
|
},
|
|
1267
1267
|
children: [
|
|
1268
1268
|
/* @__PURE__ */ s(ht, {}),
|
|
@@ -1275,7 +1275,7 @@ const ft = m.div`
|
|
|
1275
1275
|
"button",
|
|
1276
1276
|
{
|
|
1277
1277
|
onClick: () => {
|
|
1278
|
-
c(re.DESC),
|
|
1278
|
+
c(re.DESC), a && p(a, re.DESC);
|
|
1279
1279
|
},
|
|
1280
1280
|
children: [
|
|
1281
1281
|
/* @__PURE__ */ s(gt, {}),
|
|
@@ -1291,7 +1291,7 @@ const ft = m.div`
|
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
1293
|
}, mt = ({ placement: n, children: e, onSelect: t, CustomFilters: r }) => {
|
|
1294
|
-
const [o,
|
|
1294
|
+
const [o, a] = j(!1), [i, l] = j(""), d = D((g) => g.columns), c = D((g) => g.filterItems), u = D((g) => g.setFilterItems);
|
|
1295
1295
|
function p(g) {
|
|
1296
1296
|
t ? t(g) : u([
|
|
1297
1297
|
...c,
|
|
@@ -1299,32 +1299,32 @@ const ft = m.div`
|
|
|
1299
1299
|
...g,
|
|
1300
1300
|
selectType: Se.VALUE
|
|
1301
1301
|
}
|
|
1302
|
-
]),
|
|
1302
|
+
]), a(!1);
|
|
1303
1303
|
}
|
|
1304
1304
|
return /* @__PURE__ */ s(
|
|
1305
1305
|
xe,
|
|
1306
1306
|
{
|
|
1307
1307
|
open: o,
|
|
1308
|
-
onOpenChange:
|
|
1308
|
+
onOpenChange: a,
|
|
1309
1309
|
placement: n || "bottomRight",
|
|
1310
1310
|
popupRender: () => /* @__PURE__ */ y(ft, { children: [
|
|
1311
1311
|
/* @__PURE__ */ s(
|
|
1312
1312
|
"input",
|
|
1313
1313
|
{
|
|
1314
1314
|
type: "text",
|
|
1315
|
-
placeholder:
|
|
1316
|
-
value:
|
|
1315
|
+
placeholder: ie("Search") + "...",
|
|
1316
|
+
value: i,
|
|
1317
1317
|
onChange: (g) => l(g.target.value)
|
|
1318
1318
|
}
|
|
1319
1319
|
),
|
|
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(
|
|
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(i)).map((g, f) => /* @__PURE__ */ s("button", { onClick: () => p(g), children: g.title }, f)) }),
|
|
1321
1321
|
r && /* @__PURE__ */ s(
|
|
1322
1322
|
r,
|
|
1323
1323
|
{
|
|
1324
1324
|
setFilterItems: u,
|
|
1325
1325
|
filterItems: c,
|
|
1326
1326
|
columns: d,
|
|
1327
|
-
setDropdownOpen:
|
|
1327
|
+
setDropdownOpen: a
|
|
1328
1328
|
}
|
|
1329
1329
|
)
|
|
1330
1330
|
] }),
|
|
@@ -1451,8 +1451,8 @@ const Yn = ({
|
|
|
1451
1451
|
tableAdditionalFields: t,
|
|
1452
1452
|
createIsModal: r,
|
|
1453
1453
|
exportButton: o,
|
|
1454
|
-
hasSelect:
|
|
1455
|
-
selectProps:
|
|
1454
|
+
hasSelect: a,
|
|
1455
|
+
selectProps: i,
|
|
1456
1456
|
GridPageTopLeftComponent: l,
|
|
1457
1457
|
noNeedSidebarResponsiveButton: d
|
|
1458
1458
|
}) => {
|
|
@@ -1501,13 +1501,13 @@ const Yn = ({
|
|
|
1501
1501
|
onChange: (b) => b != null ? P(b) : w(null)
|
|
1502
1502
|
}
|
|
1503
1503
|
),
|
|
1504
|
-
|
|
1504
|
+
a && i && /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1505
1505
|
Et,
|
|
1506
1506
|
{
|
|
1507
|
-
options:
|
|
1508
|
-
placeholder:
|
|
1507
|
+
options: i.options,
|
|
1508
|
+
placeholder: i.placeholder,
|
|
1509
1509
|
onChange: (b) => {
|
|
1510
|
-
|
|
1510
|
+
i.onChange(b ?? null);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
) }),
|
|
@@ -1516,18 +1516,18 @@ const Yn = ({
|
|
|
1516
1516
|
"input",
|
|
1517
1517
|
{
|
|
1518
1518
|
type: "text",
|
|
1519
|
-
placeholder:
|
|
1519
|
+
placeholder: ie("QuickSearch"),
|
|
1520
1520
|
defaultValue: (u == null ? void 0 : u.QuickSearch) ?? "",
|
|
1521
1521
|
onChange: L
|
|
1522
1522
|
}
|
|
1523
|
-
) : /* @__PURE__ */ s("button", { onClick: () => I(!0), children:
|
|
1523
|
+
) : /* @__PURE__ */ s("button", { onClick: () => I(!0), children: ie("Search") }),
|
|
1524
1524
|
/* @__PURE__ */ s(fr, {}),
|
|
1525
1525
|
/* @__PURE__ */ s(mt, { CustomFilters: e, children: /* @__PURE__ */ s(We, {}) }),
|
|
1526
1526
|
/* @__PURE__ */ s("button", { className: "icon", onClick: k, children: /* @__PURE__ */ s(pr, {}) }),
|
|
1527
1527
|
o && o,
|
|
1528
|
-
p && /* @__PURE__ */ s("button", { onClick: v, className: "create-btn", children:
|
|
1528
|
+
p && /* @__PURE__ */ s("button", { onClick: v, className: "create-btn", children: ie("Create") })
|
|
1529
1529
|
] }),
|
|
1530
|
-
A && /* @__PURE__ */ s(
|
|
1530
|
+
A && /* @__PURE__ */ s(ir, {})
|
|
1531
1531
|
] });
|
|
1532
1532
|
}, Kn = (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 Yn = ({
|
|
|
1537
1537
|
static toMMddyyyy(e) {
|
|
1538
1538
|
const t = this.parseDate(e);
|
|
1539
1539
|
if (!t) return null;
|
|
1540
|
-
const r = t.getMonth() + 1, o = t.getDate(),
|
|
1541
|
-
return `${
|
|
1540
|
+
const r = t.getMonth() + 1, o = t.getDate(), a = t.getFullYear(), i = r < 10 ? `0${r}` : `${r}`, l = o < 10 ? `0${o}` : `${o}`;
|
|
1541
|
+
return `${i}/${l}/${a}`;
|
|
1542
1542
|
}
|
|
1543
1543
|
static toLocal(e, t = !1, r = !1) {
|
|
1544
1544
|
const o = this.parseDate(e);
|
|
@@ -1565,14 +1565,14 @@ const Yn = ({
|
|
|
1565
1565
|
static toISODateString(e) {
|
|
1566
1566
|
const t = this.parseDate(e);
|
|
1567
1567
|
if (!t) return null;
|
|
1568
|
-
const r = t.getFullYear(), o = t.getMonth() + 1,
|
|
1569
|
-
return `${r}-${o < 10 ? "0" : ""}${o}-${
|
|
1568
|
+
const r = t.getFullYear(), o = t.getMonth() + 1, a = t.getDate();
|
|
1569
|
+
return `${r}-${o < 10 ? "0" : ""}${o}-${a < 10 ? "0" : ""}${a}`;
|
|
1570
1570
|
}
|
|
1571
1571
|
static toISODateStringWithTime(e) {
|
|
1572
1572
|
const t = this.parseDate(e);
|
|
1573
1573
|
if (!t) return null;
|
|
1574
|
-
const r = t.getFullYear(), o = t.getMonth() + 1,
|
|
1575
|
-
return `${r}-${o < 10 ? "0" : ""}${o}-${
|
|
1574
|
+
const r = t.getFullYear(), o = t.getMonth() + 1, a = t.getDate(), i = t.getHours(), l = t.getMinutes(), d = `${i < 10 ? "0" : ""}${i}:${l < 10 ? "0" : ""}${l}`;
|
|
1575
|
+
return `${r}-${o < 10 ? "0" : ""}${o}-${a < 10 ? "0" : ""}${a} ` + d;
|
|
1576
1576
|
}
|
|
1577
1577
|
static monthDayYear(e) {
|
|
1578
1578
|
const t = this.parseDate(e);
|
|
@@ -1590,25 +1590,25 @@ const Yn = ({
|
|
|
1590
1590
|
"Oct",
|
|
1591
1591
|
"Nov",
|
|
1592
1592
|
"Dec"
|
|
1593
|
-
][t.getMonth()],
|
|
1594
|
-
return `${o} ${
|
|
1593
|
+
][t.getMonth()], a = t.getDate(), i = t.getFullYear();
|
|
1594
|
+
return `${o} ${a}, ${i}`;
|
|
1595
1595
|
}
|
|
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(), o = e.getMonth() + 1,
|
|
1599
|
+
const r = e.getFullYear(), o = e.getMonth() + 1, a = e.getDate(), i = `${r}/${o}/${a}`, l = t.toLocaleTimeString("en-US", {
|
|
1600
1600
|
hour: "2-digit",
|
|
1601
1601
|
minute: "2-digit",
|
|
1602
1602
|
hour12: !1
|
|
1603
1603
|
});
|
|
1604
|
-
return `${
|
|
1604
|
+
return `${i}, ${l}`;
|
|
1605
1605
|
}
|
|
1606
1606
|
static getDateOnlyMonthAndNumber(e) {
|
|
1607
1607
|
if (!e) return "";
|
|
1608
1608
|
const t = new Date(e);
|
|
1609
1609
|
if (isNaN(t.getTime())) return "";
|
|
1610
|
-
const r = t.getDate(),
|
|
1611
|
-
return `${r} ${
|
|
1610
|
+
const r = t.getDate(), a = t.getMonth();
|
|
1611
|
+
return `${r} ${a}`;
|
|
1612
1612
|
}
|
|
1613
1613
|
static fromDateOrStringToTable(e) {
|
|
1614
1614
|
const t = this.parseDate(e);
|
|
@@ -1627,8 +1627,8 @@ const Yn = ({
|
|
|
1627
1627
|
static toISOTimeString(e) {
|
|
1628
1628
|
const t = fe.parseDate(e);
|
|
1629
1629
|
if (!t) return null;
|
|
1630
|
-
const r = t.getHours(), o = t.getMinutes(),
|
|
1631
|
-
return `${r < 10 ? "0" : ""}${r}:${o < 10 ? "0" : ""}${o}:${
|
|
1630
|
+
const r = t.getHours(), o = t.getMinutes(), a = t.getSeconds();
|
|
1631
|
+
return `${r < 10 ? "0" : ""}${r}:${o < 10 ? "0" : ""}${o}:${a < 10 ? "0" : ""}${a}`;
|
|
1632
1632
|
}
|
|
1633
1633
|
static toTimeInput(e) {
|
|
1634
1634
|
const t = fe.parseDate(e);
|
|
@@ -1692,13 +1692,13 @@ const Yn = ({
|
|
|
1692
1692
|
}
|
|
1693
1693
|
static getAge(e, t) {
|
|
1694
1694
|
if (e == null || e === "" || e !== e) return null;
|
|
1695
|
-
const r = this.toDate(e),
|
|
1696
|
-
return Math.floor(
|
|
1695
|
+
const r = this.toDate(e), a = (t ? t.getTime() : Date.now()) - r.getTime();
|
|
1696
|
+
return Math.floor(a / 864e5 / 365.25);
|
|
1697
1697
|
}
|
|
1698
1698
|
static subtractMonths(e, t) {
|
|
1699
|
-
const r = t <= e ? t : e, o = t <= e ? e : t,
|
|
1700
|
-
let
|
|
1701
|
-
return
|
|
1699
|
+
const r = t <= e ? t : e, o = t <= e ? e : t, a = t <= e ? 1 : -1;
|
|
1700
|
+
let i = (o.getFullYear() - r.getFullYear()) * 12;
|
|
1701
|
+
return i -= r.getMonth(), i += o.getMonth(), i * a;
|
|
1702
1702
|
}
|
|
1703
1703
|
static subtractDays(e, t) {
|
|
1704
1704
|
if (!t) return null;
|
|
@@ -1747,8 +1747,8 @@ const Yn = ({
|
|
|
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 [
|
|
1751
|
-
return new Date(
|
|
1750
|
+
const [a, i, l] = e.split("-").map((d) => +d);
|
|
1751
|
+
return new Date(a, i - 1, l);
|
|
1752
1752
|
}
|
|
1753
1753
|
let o;
|
|
1754
1754
|
if (o = e.match(this.ISO8601_DATE_REGEX))
|
|
@@ -1762,10 +1762,10 @@ const Yn = ({
|
|
|
1762
1762
|
static isoStringToDate(e) {
|
|
1763
1763
|
const t = /* @__PURE__ */ new Date(0);
|
|
1764
1764
|
let r = 0, o = 0;
|
|
1765
|
-
const
|
|
1766
|
-
e[9] && (r = Number(e[9] + e[10]), o = Number(e[9] + e[11])),
|
|
1765
|
+
const a = e[8] ? t.setUTCFullYear : t.setFullYear, i = e[8] ? t.setUTCHours : t.setHours;
|
|
1766
|
+
e[9] && (r = Number(e[9] + e[10]), o = Number(e[9] + e[11])), a.call(t, Number(e[1]), Number(e[2]) - 1, Number(e[3]));
|
|
1767
1767
|
const l = Number(e[4] || 0) - r, d = Number(e[5] || 0) - o, c = Number(e[6] || 0), u = Math.round(parseFloat("0." + (e[7] || 0)) * 1e3);
|
|
1768
|
-
return
|
|
1768
|
+
return i.call(t, l, d, c, u), t;
|
|
1769
1769
|
}
|
|
1770
1770
|
static isDate(e) {
|
|
1771
1771
|
return e instanceof Date && !isNaN(e.valueOf());
|
|
@@ -2234,14 +2234,14 @@ const mr = m(tt)`
|
|
|
2234
2234
|
line-height: var(--typo-caption-lineHeight-medium, 18px); /* 128.571% */
|
|
2235
2235
|
letter-spacing: var(--typo-caption-spacing-medium, 0.1px);
|
|
2236
2236
|
}
|
|
2237
|
-
`,
|
|
2237
|
+
`, gi = (n) => new Promise((e, t) => {
|
|
2238
2238
|
const r = new FileReader();
|
|
2239
2239
|
r.readAsDataURL(n), r.onload = () => e(r.result), r.onerror = (o) => t(o);
|
|
2240
2240
|
});
|
|
2241
2241
|
function to(n) {
|
|
2242
2242
|
return n && n.charAt(0).toLowerCase() + n.slice(1);
|
|
2243
2243
|
}
|
|
2244
|
-
const
|
|
2244
|
+
const mi = async (n) => {
|
|
2245
2245
|
try {
|
|
2246
2246
|
await navigator.clipboard.writeText(n), kt.success({
|
|
2247
2247
|
className: "bottom-right-notification",
|
|
@@ -2274,27 +2274,27 @@ const no = ({
|
|
|
2274
2274
|
selectedConfig: t,
|
|
2275
2275
|
onSuccess: r,
|
|
2276
2276
|
postMyFilter: o,
|
|
2277
|
-
putMyFilter:
|
|
2277
|
+
putMyFilter: a
|
|
2278
2278
|
}) => {
|
|
2279
|
-
const [
|
|
2279
|
+
const [i] = ke.useForm(), l = ye((c) => c.setOnOk), d = ye((c) => c.close);
|
|
2280
2280
|
return Y(() => {
|
|
2281
|
-
t &&
|
|
2282
|
-
}, [t,
|
|
2281
|
+
t && i.setFieldsValue({ name: t.name });
|
|
2282
|
+
}, [t, i]), Y(() => {
|
|
2283
2283
|
l(async () => {
|
|
2284
2284
|
try {
|
|
2285
|
-
const c = await
|
|
2286
|
-
t ? await
|
|
2285
|
+
const c = await i.validateFields();
|
|
2286
|
+
t ? await a({
|
|
2287
2287
|
id: t.id,
|
|
2288
2288
|
type: n,
|
|
2289
2289
|
name: c.name,
|
|
2290
2290
|
value: e ?? ""
|
|
2291
2291
|
}) : await o({ type: n, name: c.name, value: e ?? "" }), r == null || r(c.name), d();
|
|
2292
2292
|
} catch (c) {
|
|
2293
|
-
const u = ro(c,
|
|
2294
|
-
|
|
2293
|
+
const u = ro(c, i);
|
|
2294
|
+
i.setFields(u);
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
|
-
}, [n, e, t, r,
|
|
2297
|
+
}, [n, e, t, r, i, l, d]), /* @__PURE__ */ y(ke, { form: i, children: [
|
|
2298
2298
|
/* @__PURE__ */ s(Ye, { children: B("ConfigurationName") }),
|
|
2299
2299
|
/* @__PURE__ */ s(ke.Item, { name: "name", children: /* @__PURE__ */ s(mr, {}) })
|
|
2300
2300
|
] });
|
|
@@ -2308,7 +2308,7 @@ const no = ({
|
|
|
2308
2308
|
transition: 0.1s;
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
|
-
`,
|
|
2311
|
+
`, ao = () => /* @__PURE__ */ s(vt, { children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("p", { children: B("DeleteRecordQuestion") }) }) }), io = m(Ir)`
|
|
2312
2312
|
.ant-checkbox-inner {
|
|
2313
2313
|
background-color: transparent;
|
|
2314
2314
|
border: 1px solid #ccc;
|
|
@@ -2335,8 +2335,8 @@ const no = ({
|
|
|
2335
2335
|
}
|
|
2336
2336
|
`, so = ({ item: n }) => {
|
|
2337
2337
|
var S, $, T, V, G, _, K, z, O;
|
|
2338
|
-
const e = Xe(null), t = D((w) => w.filterItems), r = D((w) => w.setFilterItems), [o,
|
|
2339
|
-
function
|
|
2338
|
+
const e = Xe(null), t = D((w) => w.filterItems), r = D((w) => w.setFilterItems), [o, a] = j(n.selectType == Se.VALUE);
|
|
2339
|
+
function i() {
|
|
2340
2340
|
var w;
|
|
2341
2341
|
(w = e == null ? void 0 : e.current) == null || w.focus();
|
|
2342
2342
|
}
|
|
@@ -2346,7 +2346,7 @@ const no = ({
|
|
|
2346
2346
|
(N) => N.title == n.title ? { ...N, filterValue: w.id, filterLabel: w.name } : N
|
|
2347
2347
|
),
|
|
2348
2348
|
!0
|
|
2349
|
-
),
|
|
2349
|
+
), a(!1);
|
|
2350
2350
|
}
|
|
2351
2351
|
function d(w, N = !1) {
|
|
2352
2352
|
r(
|
|
@@ -2359,7 +2359,7 @@ const no = ({
|
|
|
2359
2359
|
} : P
|
|
2360
2360
|
),
|
|
2361
2361
|
!0
|
|
2362
|
-
),
|
|
2362
|
+
), a(!1);
|
|
2363
2363
|
}
|
|
2364
2364
|
const [c, u] = j(n.filterValue || []), p = (w) => {
|
|
2365
2365
|
var L, k;
|
|
@@ -2396,7 +2396,7 @@ const no = ({
|
|
|
2396
2396
|
t.map(
|
|
2397
2397
|
(N) => N.title == n.title ? { ...N, selectType: Se.NONE } : N
|
|
2398
2398
|
)
|
|
2399
|
-
),
|
|
2399
|
+
), a(w);
|
|
2400
2400
|
}
|
|
2401
2401
|
function C() {
|
|
2402
2402
|
r(
|
|
@@ -2407,7 +2407,7 @@ const no = ({
|
|
|
2407
2407
|
Y(() => {
|
|
2408
2408
|
var w;
|
|
2409
2409
|
o && ((w = n == null ? void 0 : n.filters) == null ? void 0 : w.type) !== ue.SELECT && setTimeout(() => {
|
|
2410
|
-
|
|
2410
|
+
i();
|
|
2411
2411
|
}, 0);
|
|
2412
2412
|
}, [o]);
|
|
2413
2413
|
const I = {
|
|
@@ -2422,7 +2422,7 @@ const no = ({
|
|
|
2422
2422
|
}
|
|
2423
2423
|
),
|
|
2424
2424
|
[ue.SELECT]: /* @__PURE__ */ s("div", { children: ($ = (S = n == null ? void 0 : n.filters) == null ? void 0 : S.options) == null ? void 0 : $.map((w) => /* @__PURE__ */ s("button", { onClick: () => l(w), children: w.name }, w.id)) }),
|
|
2425
|
-
[ue.TwoComponentSelect]: /* @__PURE__ */ y(
|
|
2425
|
+
[ue.TwoComponentSelect]: /* @__PURE__ */ y(ae, { children: [
|
|
2426
2426
|
/* @__PURE__ */ s(Fn, { children: (T = n == null ? void 0 : n.filters) == null ? void 0 : T.firstGroupName }),
|
|
2427
2427
|
/* @__PURE__ */ s(Vn, { children: (G = (V = n == null ? void 0 : n.filters) == null ? void 0 : V.options) == null ? void 0 : G.map((w) => /* @__PURE__ */ s(
|
|
2428
2428
|
"button",
|
|
@@ -2433,7 +2433,7 @@ const no = ({
|
|
|
2433
2433
|
w.id
|
|
2434
2434
|
)) })
|
|
2435
2435
|
] }),
|
|
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(Nn, { children: /* @__PURE__ */ s(
|
|
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(Nn, { children: /* @__PURE__ */ s(io, { onChange: () => p(w == null ? void 0 : w.id), children: /* @__PURE__ */ s(Rn, { children: w.name }) }) }, w.id)) }),
|
|
2437
2437
|
[ue.DATEPICKER]: /* @__PURE__ */ s(
|
|
2438
2438
|
dr,
|
|
2439
2439
|
{
|
|
@@ -2477,7 +2477,7 @@ const no = ({
|
|
|
2477
2477
|
!0
|
|
2478
2478
|
);
|
|
2479
2479
|
}
|
|
2480
|
-
|
|
2480
|
+
a(!1);
|
|
2481
2481
|
},
|
|
2482
2482
|
getPopupContainer: (w) => {
|
|
2483
2483
|
var N;
|
|
@@ -2518,18 +2518,18 @@ const no = ({
|
|
|
2518
2518
|
/* @__PURE__ */ s("span", { onClick: C, children: /* @__PURE__ */ s(yt, {}) })
|
|
2519
2519
|
] });
|
|
2520
2520
|
}, lo = () => {
|
|
2521
|
-
const n = D((h) => h.filterItems), e = D((h) => h.sortItems), t = D((h) => h.setSelectedConfig), r = D((h) => h.resetStore), o = D((h) => h.selectedConfig), { deleteMyFilter:
|
|
2521
|
+
const n = D((h) => h.filterItems), e = D((h) => h.sortItems), t = D((h) => h.setSelectedConfig), r = D((h) => h.resetStore), o = D((h) => h.selectedConfig), { deleteMyFilter: a } = Ie(), i = D((h) => h.bumpConfigsVersion), { open: l, store: d, close: c } = ye(), u = hr();
|
|
2522
2522
|
async function p() {
|
|
2523
2523
|
try {
|
|
2524
|
-
if (!o || !
|
|
2525
|
-
await
|
|
2524
|
+
if (!o || !a) return;
|
|
2525
|
+
await a(o.id), t(null), i();
|
|
2526
2526
|
} catch (h) {
|
|
2527
2527
|
console.log(h, "Error happened deleting configuration");
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
2530
|
function g() {
|
|
2531
2531
|
d({
|
|
2532
|
-
component:
|
|
2532
|
+
component: ao,
|
|
2533
2533
|
title: o ? "UpdateConfiguration" : "NameYourConfiguration",
|
|
2534
2534
|
footerOptions: {
|
|
2535
2535
|
okText: /* @__PURE__ */ s(
|
|
@@ -2557,7 +2557,7 @@ const no = ({
|
|
|
2557
2557
|
value: h,
|
|
2558
2558
|
selectedConfig: o,
|
|
2559
2559
|
onSuccess: (C) => {
|
|
2560
|
-
o && t({ ...o, name: C }),
|
|
2560
|
+
o && t({ ...o, name: C }), i();
|
|
2561
2561
|
}
|
|
2562
2562
|
},
|
|
2563
2563
|
title: o ? "UpdateConfiguration" : "NameYourConfiguration",
|
|
@@ -2944,13 +2944,13 @@ function ho(n) {
|
|
|
2944
2944
|
return Object.values(n).reduce((e, t) => e + t.length, 0);
|
|
2945
2945
|
}
|
|
2946
2946
|
function go({ item: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
2947
|
-
const o = D((
|
|
2947
|
+
const o = D((a) => a.checkedValue);
|
|
2948
2948
|
return /* @__PURE__ */ s(
|
|
2949
2949
|
"tr",
|
|
2950
2950
|
{
|
|
2951
2951
|
onClick: r ? () => r(n) : void 0,
|
|
2952
2952
|
className: `${o && o[n[t]] ? "checked" : ""}`,
|
|
2953
|
-
children: e.map((
|
|
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
|
);
|
|
@@ -2968,10 +2968,10 @@ function wt({ rows: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
|
2968
2968
|
));
|
|
2969
2969
|
}
|
|
2970
2970
|
function mo({ rowLength: n, columnLength: e }) {
|
|
2971
|
-
return Array(n).fill(null).map((t, r) => /* @__PURE__ */ s("tr", { children: Array(e).fill(null).map((o,
|
|
2971
|
+
return Array(n).fill(null).map((t, r) => /* @__PURE__ */ s("tr", { children: Array(e).fill(null).map((o, a) => /* @__PURE__ */ s("td", { children: /* @__PURE__ */ s(Tr, { active: !0, title: !1, paragraph: { rows: 1, width: "100%" } }) }, `${r}-${a}`)) }, `skeleton-row-${r}`));
|
|
2972
2972
|
}
|
|
2973
2973
|
function yo({ subGroups: n, columns: e, rowKey: t, onRowClick: r }) {
|
|
2974
|
-
return /* @__PURE__ */ s(
|
|
2974
|
+
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((o) => /* @__PURE__ */ y(qt.Fragment, { children: [
|
|
2975
2975
|
/* @__PURE__ */ y("tr", { className: "sub-group-header", children: [
|
|
2976
2976
|
/* @__PURE__ */ s("td", {}),
|
|
2977
2977
|
/* @__PURE__ */ s("td", { colSpan: e.length, children: /* @__PURE__ */ y("div", { children: [
|
|
@@ -3009,37 +3009,37 @@ function vo({
|
|
|
3009
3009
|
isSubGroupped: t,
|
|
3010
3010
|
getGroupLength: r,
|
|
3011
3011
|
rowKey: o,
|
|
3012
|
-
onRowClick:
|
|
3012
|
+
onRowClick: a
|
|
3013
3013
|
}) {
|
|
3014
|
-
return /* @__PURE__ */ s(
|
|
3014
|
+
return /* @__PURE__ */ s(ae, { children: Object.keys(n).map((i) => {
|
|
3015
3015
|
var l;
|
|
3016
3016
|
return /* @__PURE__ */ y(qt.Fragment, { children: [
|
|
3017
3017
|
/* @__PURE__ */ s(
|
|
3018
3018
|
bo,
|
|
3019
3019
|
{
|
|
3020
|
-
label:
|
|
3020
|
+
label: i,
|
|
3021
3021
|
colSpan: e.length,
|
|
3022
|
-
count: t ? r(n[
|
|
3022
|
+
count: t ? r(n[i]) : (l = n[i]) == null ? void 0 : l.length
|
|
3023
3023
|
}
|
|
3024
3024
|
),
|
|
3025
3025
|
t ? /* @__PURE__ */ s(
|
|
3026
3026
|
yo,
|
|
3027
3027
|
{
|
|
3028
|
-
subGroups: n[
|
|
3028
|
+
subGroups: n[i],
|
|
3029
3029
|
columns: e,
|
|
3030
3030
|
rowKey: o,
|
|
3031
|
-
onRowClick:
|
|
3031
|
+
onRowClick: a
|
|
3032
3032
|
}
|
|
3033
3033
|
) : /* @__PURE__ */ s(
|
|
3034
3034
|
wt,
|
|
3035
3035
|
{
|
|
3036
|
-
rows: n[
|
|
3036
|
+
rows: n[i],
|
|
3037
3037
|
columns: e,
|
|
3038
3038
|
rowKey: o,
|
|
3039
|
-
onRowClick:
|
|
3039
|
+
onRowClick: a
|
|
3040
3040
|
}
|
|
3041
3041
|
)
|
|
3042
|
-
] },
|
|
3042
|
+
] }, i);
|
|
3043
3043
|
}) });
|
|
3044
3044
|
}
|
|
3045
3045
|
function xo({
|
|
@@ -3048,7 +3048,7 @@ function xo({
|
|
|
3048
3048
|
totalItemCount: t,
|
|
3049
3049
|
onPaginationChange: r
|
|
3050
3050
|
}) {
|
|
3051
|
-
const [o,
|
|
3051
|
+
const [o, a] = j(!1);
|
|
3052
3052
|
return /* @__PURE__ */ y(uo, { children: [
|
|
3053
3053
|
/* @__PURE__ */ s(
|
|
3054
3054
|
zr,
|
|
@@ -3069,21 +3069,21 @@ function xo({
|
|
|
3069
3069
|
{ label: `25 ${B("Items")}`, value: 25 },
|
|
3070
3070
|
{ label: `50 ${B("Items")}`, value: 50 },
|
|
3071
3071
|
{ label: `100 ${B("Items")}`, value: 100 }
|
|
3072
|
-
]).map((
|
|
3072
|
+
]).map((i) => /* @__PURE__ */ y(
|
|
3073
3073
|
"button",
|
|
3074
3074
|
{
|
|
3075
|
-
onClick: () => e(
|
|
3075
|
+
onClick: () => e(i.value),
|
|
3076
3076
|
children: [
|
|
3077
|
-
|
|
3077
|
+
i.label,
|
|
3078
3078
|
" ",
|
|
3079
|
-
|
|
3079
|
+
i.value == n.pageSize && /* @__PURE__ */ s(He, {})
|
|
3080
3080
|
]
|
|
3081
3081
|
},
|
|
3082
|
-
|
|
3082
|
+
i.value
|
|
3083
3083
|
)) }),
|
|
3084
3084
|
trigger: ["click"],
|
|
3085
3085
|
open: o,
|
|
3086
|
-
onOpenChange:
|
|
3086
|
+
onOpenChange: a,
|
|
3087
3087
|
children: /* @__PURE__ */ y("div", { className: "page-size-select-header", children: [
|
|
3088
3088
|
n.pageSize,
|
|
3089
3089
|
" ",
|
|
@@ -3097,9 +3097,9 @@ function xo({
|
|
|
3097
3097
|
}
|
|
3098
3098
|
const wo = (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 Co({ col: n }) {
|
|
3100
|
-
const [e, t] = j(!1), r = D((f) => f.filterItems), o = D((f) => f.hideItems),
|
|
3100
|
+
const [e, t] = j(!1), r = D((f) => f.filterItems), o = D((f) => f.hideItems), a = D((f) => f.setFilterItems), i = D((f) => f.setSortItems), l = D((f) => f.setHideItems);
|
|
3101
3101
|
function d(f, h) {
|
|
3102
|
-
|
|
3102
|
+
i([
|
|
3103
3103
|
{
|
|
3104
3104
|
title: f.title,
|
|
3105
3105
|
dataIndex: f.dataIndex.charAt(0).toUpperCase() + f.dataIndex.slice(1),
|
|
@@ -3109,7 +3109,7 @@ function Co({ col: n }) {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
function c(f) {
|
|
3111
3111
|
const h = r.filter((C) => f.title != C.title);
|
|
3112
|
-
|
|
3112
|
+
a([
|
|
3113
3113
|
...h,
|
|
3114
3114
|
{
|
|
3115
3115
|
...f,
|
|
@@ -3127,12 +3127,12 @@ function Co({ col: n }) {
|
|
|
3127
3127
|
{ icon: /* @__PURE__ */ s(We, {}), text: B("Filter"), action: () => c(n) },
|
|
3128
3128
|
{
|
|
3129
3129
|
icon: /* @__PURE__ */ s(ht, {}),
|
|
3130
|
-
text:
|
|
3130
|
+
text: ie("Ascending"),
|
|
3131
3131
|
action: () => d(n, re.ASC)
|
|
3132
3132
|
},
|
|
3133
3133
|
{
|
|
3134
3134
|
icon: /* @__PURE__ */ s(gt, {}),
|
|
3135
|
-
text:
|
|
3135
|
+
text: ie("Descending"),
|
|
3136
3136
|
action: () => d(n, re.DESC)
|
|
3137
3137
|
},
|
|
3138
3138
|
{
|
|
@@ -3256,8 +3256,8 @@ const Oo = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3256
3256
|
rowKey: t,
|
|
3257
3257
|
dataSource: r,
|
|
3258
3258
|
loading: o,
|
|
3259
|
-
pagination:
|
|
3260
|
-
totalItemCount:
|
|
3259
|
+
pagination: a,
|
|
3260
|
+
totalItemCount: i,
|
|
3261
3261
|
onRowClick: l,
|
|
3262
3262
|
noPagination: d,
|
|
3263
3263
|
noDataProps: c
|
|
@@ -3305,10 +3305,10 @@ const Oo = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3305
3305
|
/* @__PURE__ */ s("tbody", { children: o ? /* @__PURE__ */ s(
|
|
3306
3306
|
mo,
|
|
3307
3307
|
{
|
|
3308
|
-
rowLength:
|
|
3308
|
+
rowLength: a.pageSize,
|
|
3309
3309
|
columnLength: f.length
|
|
3310
3310
|
}
|
|
3311
|
-
) : (I == null ? void 0 : I.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: f.length, children: /* @__PURE__ */ s(Oo, { ...c }) }) }) : /* @__PURE__ */ s(
|
|
3311
|
+
) : (I == null ? void 0 : I.length) == 0 && c ? /* @__PURE__ */ s("tr", { children: /* @__PURE__ */ s("td", { colSpan: f.length, children: /* @__PURE__ */ s(Oo, { ...c }) }) }) : /* @__PURE__ */ s(ae, { children: h ? /* @__PURE__ */ s(
|
|
3312
3312
|
vo,
|
|
3313
3313
|
{
|
|
3314
3314
|
dataSource: I,
|
|
@@ -3328,11 +3328,11 @@ const Oo = ({ title: n, description: e, button: t, helpSpan: r }) => /* @__PURE_
|
|
|
3328
3328
|
}
|
|
3329
3329
|
) }) })
|
|
3330
3330
|
] }),
|
|
3331
|
-
|
|
3331
|
+
a && !d && /* @__PURE__ */ s(
|
|
3332
3332
|
xo,
|
|
3333
3333
|
{
|
|
3334
|
-
pagination:
|
|
3335
|
-
totalItemCount:
|
|
3334
|
+
pagination: a,
|
|
3335
|
+
totalItemCount: i,
|
|
3336
3336
|
onPerPageSelectChange: A,
|
|
3337
3337
|
onPaginationChange: S
|
|
3338
3338
|
}
|
|
@@ -3719,8 +3719,8 @@ function Vo(n) {
|
|
|
3719
3719
|
if (!n) return n;
|
|
3720
3720
|
let e = n[0].toLowerCase();
|
|
3721
3721
|
for (let t = 1; t < n.length; t++) {
|
|
3722
|
-
const r = n[t - 1], o = n[t],
|
|
3723
|
-
/[A-Z]/.test(o) ? /[A-Z]/.test(r) && /[A-Z]/.test(
|
|
3722
|
+
const r = n[t - 1], o = n[t], a = n[t + 1];
|
|
3723
|
+
/[A-Z]/.test(o) ? /[A-Z]/.test(r) && /[A-Z]/.test(a) ? e += o.toLowerCase() : (/[A-Z]/.test(r) && (!a || /[^A-Z]/.test(a)), e += o) : e += o;
|
|
3724
3724
|
}
|
|
3725
3725
|
return e;
|
|
3726
3726
|
}
|
|
@@ -4103,14 +4103,14 @@ const Cr = ({
|
|
|
4103
4103
|
setBackupActivated: t,
|
|
4104
4104
|
setVisible: r,
|
|
4105
4105
|
id: o,
|
|
4106
|
-
setRefetchData:
|
|
4106
|
+
setRefetchData: a
|
|
4107
4107
|
}) => {
|
|
4108
|
-
const [
|
|
4108
|
+
const [i, l] = j(), [d, c] = j([]);
|
|
4109
4109
|
async function u() {
|
|
4110
4110
|
var p, g, f;
|
|
4111
4111
|
try {
|
|
4112
|
-
const h = await e({ confirmationToken: n, code:
|
|
4113
|
-
(p = h == null ? void 0 : h.data) != null && p.success && (r(!1),
|
|
4112
|
+
const h = await e({ confirmationToken: n, code: i, id: o });
|
|
4113
|
+
(p = h == null ? void 0 : h.data) != null && p.success && (r(!1), a((C) => !C));
|
|
4114
4114
|
} catch (h) {
|
|
4115
4115
|
const C = De((f = (g = h == null ? void 0 : h.response) == null ? void 0 : g.data) == null ? void 0 : f.errors);
|
|
4116
4116
|
c(C), console.log(h);
|
|
@@ -4126,7 +4126,7 @@ const Cr = ({
|
|
|
4126
4126
|
/* @__PURE__ */ s(
|
|
4127
4127
|
mr,
|
|
4128
4128
|
{
|
|
4129
|
-
value:
|
|
4129
|
+
value: i,
|
|
4130
4130
|
onChange: (p) => l(p.target.value),
|
|
4131
4131
|
placeholder: "xxxx-xxxx-xxxx"
|
|
4132
4132
|
}
|
|
@@ -4145,11 +4145,11 @@ const Cr = ({
|
|
|
4145
4145
|
onClick: () => {
|
|
4146
4146
|
t(!1);
|
|
4147
4147
|
},
|
|
4148
|
-
children:
|
|
4148
|
+
children: ie("Back")
|
|
4149
4149
|
}
|
|
4150
4150
|
),
|
|
4151
4151
|
/* @__PURE__ */ s(Ke, { onClick: u, children: /* @__PURE__ */ y("span", { className: "arrow-styled", children: [
|
|
4152
|
-
|
|
4152
|
+
ie("Continue"),
|
|
4153
4153
|
" ",
|
|
4154
4154
|
/* @__PURE__ */ s($e, {})
|
|
4155
4155
|
] }) })
|
|
@@ -4199,8 +4199,8 @@ const Wo = {
|
|
|
4199
4199
|
code: t,
|
|
4200
4200
|
mfaType: r,
|
|
4201
4201
|
id: o,
|
|
4202
|
-
isBlocked:
|
|
4203
|
-
onBlockStateClose:
|
|
4202
|
+
isBlocked: a,
|
|
4203
|
+
onBlockStateClose: i
|
|
4204
4204
|
}) => {
|
|
4205
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) {
|
|
@@ -4237,11 +4237,11 @@ const Wo = {
|
|
|
4237
4237
|
function $() {
|
|
4238
4238
|
p(""), e(!1), f([]);
|
|
4239
4239
|
}
|
|
4240
|
-
return
|
|
4240
|
+
return a ? /* @__PURE__ */ s(Pt, { isOpen: a, onClose: i, children: /* @__PURE__ */ y(Po, { children: [
|
|
4241
4241
|
/* @__PURE__ */ y(Ho, { children: [
|
|
4242
4242
|
/* @__PURE__ */ y(Ro, { children: [
|
|
4243
4243
|
/* @__PURE__ */ s("span", { children: B("ContactInformationBlocked") }),
|
|
4244
|
-
/* @__PURE__ */ s("span", { onClick:
|
|
4244
|
+
/* @__PURE__ */ s("span", { onClick: i, children: /* @__PURE__ */ s(yt, {}) })
|
|
4245
4245
|
] }),
|
|
4246
4246
|
/* @__PURE__ */ s(No, { children: B("ContactInformationBlockedDesc") })
|
|
4247
4247
|
] }),
|
|
@@ -4261,7 +4261,7 @@ const Wo = {
|
|
|
4261
4261
|
) : /* @__PURE__ */ y(yr, { children: [
|
|
4262
4262
|
/* @__PURE__ */ s("h2", { children: ee("EnterVerificationCode") }),
|
|
4263
4263
|
/* @__PURE__ */ s("p", { children: r !== void 0 ? B(Wo[r]) : "" }),
|
|
4264
|
-
r !== 1 && /* @__PURE__ */ y(
|
|
4264
|
+
r !== 1 && /* @__PURE__ */ y(ae, { children: [
|
|
4265
4265
|
/* @__PURE__ */ y(
|
|
4266
4266
|
zo,
|
|
4267
4267
|
{
|
|
@@ -4286,7 +4286,7 @@ const Wo = {
|
|
|
4286
4286
|
onClick: A,
|
|
4287
4287
|
disabled: u.length !== 6,
|
|
4288
4288
|
children: [
|
|
4289
|
-
|
|
4289
|
+
ie("ShowContactInformation"),
|
|
4290
4290
|
/* @__PURE__ */ s($e, {})
|
|
4291
4291
|
]
|
|
4292
4292
|
}
|
|
@@ -4294,13 +4294,13 @@ const Wo = {
|
|
|
4294
4294
|
] })
|
|
4295
4295
|
] }) });
|
|
4296
4296
|
}, Ko = () => {
|
|
4297
|
-
const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Te(), [r, o] = j(!1), [
|
|
4297
|
+
const { enableContactInfo: n, disableContactInfo: e } = Ie(), { setUser: t } = Te(), [r, o] = j(!1), [a, i] = 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 {
|
|
4301
4301
|
d(!1);
|
|
4302
4302
|
const $ = await n();
|
|
4303
|
-
|
|
4303
|
+
i({
|
|
4304
4304
|
token: (f = (g = $.data) == null ? void 0 : g.value) == null ? void 0 : f.token,
|
|
4305
4305
|
id: (C = (h = $.data) == null ? void 0 : h.value) == null ? void 0 : C.id,
|
|
4306
4306
|
mfaType: (A = (I = $.data) == null ? void 0 : I.value) == null ? void 0 : A.mfaType
|
|
@@ -4329,16 +4329,16 @@ const Wo = {
|
|
|
4329
4329
|
ContactInfoModalProps: {
|
|
4330
4330
|
isVisible: r,
|
|
4331
4331
|
setVisible: o,
|
|
4332
|
-
code:
|
|
4333
|
-
mfaType:
|
|
4334
|
-
id:
|
|
4332
|
+
code: a == null ? void 0 : a.token,
|
|
4333
|
+
mfaType: a == null ? void 0 : a.mfaType,
|
|
4334
|
+
id: a == null ? void 0 : a.id,
|
|
4335
4335
|
isBlocked: l,
|
|
4336
4336
|
onBlockStateClose: p
|
|
4337
4337
|
}
|
|
4338
4338
|
};
|
|
4339
4339
|
}, Zo = ({ close: n }) => {
|
|
4340
4340
|
var A;
|
|
4341
|
-
const { user: e } = Te(), t = D((S) => S.columns), r = D((S) => S.groupByArr), o = D((S) => S.hideItems),
|
|
4341
|
+
const { user: e } = Te(), t = D((S) => S.columns), r = D((S) => S.groupByArr), o = D((S) => S.hideItems), a = D((S) => S.activeTableView), i = D((S) => S.setActiveTableView), l = D((S) => S.setGroupByArr), d = D((S) => S.setHideItems), c = D((S) => S.resetStore), { handleEnableContactInfo: u, handleDisableContactInfo: p, ContactInfoModalProps: g } = Ko();
|
|
4342
4342
|
function f(S) {
|
|
4343
4343
|
const $ = t.find((T) => T.dataIndex == S.value);
|
|
4344
4344
|
l([$]);
|
|
@@ -4366,8 +4366,8 @@ const Wo = {
|
|
|
4366
4366
|
/* @__PURE__ */ y(
|
|
4367
4367
|
"li",
|
|
4368
4368
|
{
|
|
4369
|
-
className:
|
|
4370
|
-
onClick: () =>
|
|
4369
|
+
className: a == me.TABLE ? "active" : "",
|
|
4370
|
+
onClick: () => i(me.TABLE),
|
|
4371
4371
|
children: [
|
|
4372
4372
|
/* @__PURE__ */ s(Mt, {}),
|
|
4373
4373
|
/* @__PURE__ */ s("span", { children: B("Table") })
|
|
@@ -4377,8 +4377,8 @@ const Wo = {
|
|
|
4377
4377
|
/* @__PURE__ */ y(
|
|
4378
4378
|
"li",
|
|
4379
4379
|
{
|
|
4380
|
-
className:
|
|
4381
|
-
onClick: () =>
|
|
4380
|
+
className: a == me.LIST ? "active" : "",
|
|
4381
|
+
onClick: () => i(me.LIST),
|
|
4382
4382
|
children: [
|
|
4383
4383
|
/* @__PURE__ */ s(We, {}),
|
|
4384
4384
|
/* @__PURE__ */ s("span", { children: B("List") })
|
|
@@ -4428,12 +4428,12 @@ const Wo = {
|
|
|
4428
4428
|
C(new Date(e == null ? void 0 : e.sensitiveDataExpiration), /* @__PURE__ */ new Date()),
|
|
4429
4429
|
/* @__PURE__ */ s(zt, {})
|
|
4430
4430
|
] }) : /* @__PURE__ */ y("button", { onClick: u, children: [
|
|
4431
|
-
|
|
4431
|
+
ie("ShowContactInformation"),
|
|
4432
4432
|
" ",
|
|
4433
4433
|
/* @__PURE__ */ s(Mt, {})
|
|
4434
4434
|
] }),
|
|
4435
4435
|
/* @__PURE__ */ y("button", { onClick: I, children: [
|
|
4436
|
-
|
|
4436
|
+
ie("ResetAllOptions"),
|
|
4437
4437
|
/* @__PURE__ */ s(gr, {})
|
|
4438
4438
|
] })
|
|
4439
4439
|
] }),
|
|
@@ -4445,8 +4445,8 @@ const Wo = {
|
|
|
4445
4445
|
update: t,
|
|
4446
4446
|
hasCreateBtn: r,
|
|
4447
4447
|
GridPageTopLeftComponent: o,
|
|
4448
|
-
contentAfterPageHeader:
|
|
4449
|
-
onRowClick:
|
|
4448
|
+
contentAfterPageHeader: a,
|
|
4449
|
+
onRowClick: i,
|
|
4450
4450
|
checkedValue: l,
|
|
4451
4451
|
rowKey: d,
|
|
4452
4452
|
pagination: c,
|
|
@@ -4467,7 +4467,7 @@ const Wo = {
|
|
|
4467
4467
|
}
|
|
4468
4468
|
}) => {
|
|
4469
4469
|
var J, ce, se;
|
|
4470
|
-
const { user: K } = Te(), z = D((Z) => Z.filters), O = D((Z) => Z.filterItems), w = D((Z) => Z.sortItems), N = D((Z) => Z.hideItems), P = D((Z) => Z.activeTableView), L = D((Z) => Z.setColumns), k = D((Z) => Z.setHasCreateBtn), v = D((Z) => Z.setHasSelect), b = D((Z) => Z.setCheckedValue), { response: x, loading: E } =
|
|
4470
|
+
const { user: K } = Te(), z = D((Z) => Z.filters), O = D((Z) => Z.filterItems), w = D((Z) => Z.sortItems), N = D((Z) => Z.hideItems), P = D((Z) => Z.activeTableView), L = D((Z) => Z.setColumns), k = D((Z) => Z.setHasCreateBtn), v = D((Z) => Z.setHasSelect), b = D((Z) => Z.setCheckedValue), { response: x, loading: E } = ar(
|
|
4471
4471
|
() => e({ ...z, ...p }),
|
|
4472
4472
|
[z, K, t]
|
|
4473
4473
|
);
|
|
@@ -4497,7 +4497,7 @@ const Wo = {
|
|
|
4497
4497
|
GridPageTopLeftComponent: o
|
|
4498
4498
|
}
|
|
4499
4499
|
),
|
|
4500
|
-
|
|
4500
|
+
a,
|
|
4501
4501
|
(O.length > 0 || w.length > 0) && /* @__PURE__ */ s(lo, {})
|
|
4502
4502
|
] }),
|
|
4503
4503
|
/* @__PURE__ */ s(An, { height: `calc(100vh - ${`${W}px`})`, children: T ? /* @__PURE__ */ s(
|
|
@@ -4543,21 +4543,21 @@ const Wo = {
|
|
|
4543
4543
|
},
|
|
4544
4544
|
activeTableView: P,
|
|
4545
4545
|
totalItemCount: ((se = x == null ? void 0 : x.data) == null ? void 0 : se.totalItemCount) || 0,
|
|
4546
|
-
onRowClick:
|
|
4546
|
+
onRowClick: i,
|
|
4547
4547
|
noDataProps: I || null
|
|
4548
4548
|
}
|
|
4549
4549
|
) }),
|
|
4550
4550
|
M && /* @__PURE__ */ s(Zo, { close: () => F(!1) })
|
|
4551
4551
|
] });
|
|
4552
|
-
},
|
|
4552
|
+
}, yi = (n) => /* @__PURE__ */ s(Dn, { children: /* @__PURE__ */ s(qo, { ...n }) }), bi = () => {
|
|
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();
|
|
4556
4556
|
}, [r.pathname]), !e || !n) return null;
|
|
4557
4557
|
const {
|
|
4558
4558
|
title: o,
|
|
4559
|
-
component:
|
|
4560
|
-
componentProps:
|
|
4559
|
+
component: a,
|
|
4560
|
+
componentProps: i,
|
|
4561
4561
|
popupOptions: l,
|
|
4562
4562
|
footerOptions: d,
|
|
4563
4563
|
hideFooter: c,
|
|
@@ -4579,7 +4579,7 @@ const Wo = {
|
|
|
4579
4579
|
] }) : void 0,
|
|
4580
4580
|
...l,
|
|
4581
4581
|
children: [
|
|
4582
|
-
|
|
4582
|
+
a && /* @__PURE__ */ s(a, { ...i }),
|
|
4583
4583
|
!c && /* @__PURE__ */ y(Xn, { children: [
|
|
4584
4584
|
/* @__PURE__ */ s(xt, { onClick: f, children: d == null ? void 0 : d.cancelText }),
|
|
4585
4585
|
/* @__PURE__ */ s(
|
|
@@ -4598,7 +4598,7 @@ const Wo = {
|
|
|
4598
4598
|
]
|
|
4599
4599
|
}
|
|
4600
4600
|
);
|
|
4601
|
-
},
|
|
4601
|
+
}, vi = ({
|
|
4602
4602
|
displayAddRuleModal: n,
|
|
4603
4603
|
onClose: e,
|
|
4604
4604
|
title: t,
|
|
@@ -4662,7 +4662,7 @@ const Wo = {
|
|
|
4662
4662
|
path {
|
|
4663
4663
|
fill: var(--color-icon-primary, #131412) !important;
|
|
4664
4664
|
}
|
|
4665
|
-
`,
|
|
4665
|
+
`, ea = m(Mr)`
|
|
4666
4666
|
font-family: var(--text-font-family-base, Geist);
|
|
4667
4667
|
font-size: var(--typo-caption-size-medium, 0.875rem);
|
|
4668
4668
|
font-weight: var(--text-weight-regular, 400);
|
|
@@ -4683,36 +4683,36 @@ const Wo = {
|
|
|
4683
4683
|
letter-spacing: var(--typo-caption-spacing-medium, 0.00625rem);
|
|
4684
4684
|
color: var(--color-text-secondary, rgba(19, 20, 18, 0.75));
|
|
4685
4685
|
}
|
|
4686
|
-
`,
|
|
4686
|
+
`, xi = ({
|
|
4687
4687
|
breadcrumbItems: n,
|
|
4688
4688
|
logo: e,
|
|
4689
4689
|
button: t,
|
|
4690
4690
|
className: r,
|
|
4691
4691
|
backButton: o = /* @__PURE__ */ s(Xo, {})
|
|
4692
4692
|
}) => {
|
|
4693
|
-
const
|
|
4693
|
+
const a = Ee();
|
|
4694
4694
|
return /* @__PURE__ */ y(Jo, { className: r || "", children: [
|
|
4695
4695
|
/* @__PURE__ */ y("div", { className: "page-starter", children: [
|
|
4696
|
-
e ? /* @__PURE__ */ s("div", { className: "icon", children: e }) : /* @__PURE__ */ s(Qo, { className: "icon", onClick: () =>
|
|
4697
|
-
/* @__PURE__ */ s(
|
|
4696
|
+
e ? /* @__PURE__ */ s("div", { className: "icon", children: e }) : /* @__PURE__ */ s(Qo, { className: "icon", onClick: () => a(-1), children: o }),
|
|
4697
|
+
/* @__PURE__ */ s(ea, { items: n })
|
|
4698
4698
|
] }),
|
|
4699
4699
|
/* @__PURE__ */ s("div", { children: t && t })
|
|
4700
4700
|
] });
|
|
4701
4701
|
};
|
|
4702
4702
|
var lt = /* @__PURE__ */ ((n) => (n[n.None = 1] = "None", n[n.OTP = 2] = "OTP", n[n.TOTP = 3] = "TOTP", n[n.BackupCode = 4] = "BackupCode", n))(lt || {});
|
|
4703
|
-
const
|
|
4703
|
+
const ta = {
|
|
4704
4704
|
1: "",
|
|
4705
4705
|
2: "OtpDesc",
|
|
4706
4706
|
3: "TotpDesc",
|
|
4707
4707
|
4: "TotpDesc"
|
|
4708
|
-
},
|
|
4708
|
+
}, wi = ({
|
|
4709
4709
|
confirmationToken: n,
|
|
4710
4710
|
updatedResponse: e,
|
|
4711
4711
|
mfaType: t = 1,
|
|
4712
4712
|
id: r,
|
|
4713
4713
|
setRefetchData: o,
|
|
4714
|
-
setVisible:
|
|
4715
|
-
visible:
|
|
4714
|
+
setVisible: a,
|
|
4715
|
+
visible: i
|
|
4716
4716
|
}) => {
|
|
4717
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([]), [$, T] = j(!1);
|
|
4718
4718
|
async function V() {
|
|
@@ -4721,7 +4721,7 @@ const ti = {
|
|
|
4721
4721
|
if (!(!u || !z))
|
|
4722
4722
|
try {
|
|
4723
4723
|
const P = await z({ confirmationToken: n, code: u, id: r });
|
|
4724
|
-
(O = P == null ? void 0 : P.data) != null && O.success && (
|
|
4724
|
+
(O = P == null ? void 0 : P.data) != null && O.success && (a(!1), o && o((L) => !L), I());
|
|
4725
4725
|
} catch (P) {
|
|
4726
4726
|
const L = De((N = (w = P == null ? void 0 : P.response) == null ? void 0 : w.data) == null ? void 0 : N.errors);
|
|
4727
4727
|
S(L), console.log("Error in Save OTP", P);
|
|
@@ -4738,7 +4738,7 @@ const ti = {
|
|
|
4738
4738
|
}
|
|
4739
4739
|
}
|
|
4740
4740
|
function _() {
|
|
4741
|
-
|
|
4741
|
+
a(!1);
|
|
4742
4742
|
}
|
|
4743
4743
|
function K(z) {
|
|
4744
4744
|
p(z);
|
|
@@ -4749,20 +4749,20 @@ const ti = {
|
|
|
4749
4749
|
C((O) => O <= 1 ? (clearInterval(z), f(!1), 0) : O - 1);
|
|
4750
4750
|
}, 1e3);
|
|
4751
4751
|
return () => clearInterval(z);
|
|
4752
|
-
}, [g]), /* @__PURE__ */ s(bt, { open:
|
|
4752
|
+
}, [g]), /* @__PURE__ */ s(bt, { open: i, onCancel: _, footer: [null], children: n ? /* @__PURE__ */ s(ae, { children: $ ? /* @__PURE__ */ s(ae, { children: /* @__PURE__ */ s(
|
|
4753
4753
|
Cr,
|
|
4754
4754
|
{
|
|
4755
4755
|
setBackupActivated: T,
|
|
4756
4756
|
backupCodeEndpoint: c,
|
|
4757
|
-
setVisible:
|
|
4757
|
+
setVisible: a,
|
|
4758
4758
|
id: r,
|
|
4759
4759
|
setRefetchData: o,
|
|
4760
4760
|
confirmationToken: n
|
|
4761
4761
|
}
|
|
4762
|
-
) }) : /* @__PURE__ */ y(
|
|
4762
|
+
) }) : /* @__PURE__ */ y(ae, { children: [
|
|
4763
4763
|
/* @__PURE__ */ s(vt, { children: /* @__PURE__ */ y(wr, { children: [
|
|
4764
4764
|
ee("EnterVerificationCode"),
|
|
4765
|
-
/* @__PURE__ */ s(Ye, { children: ee(
|
|
4765
|
+
/* @__PURE__ */ s(Ye, { children: ee(ta[t]) })
|
|
4766
4766
|
] }) }),
|
|
4767
4767
|
/* @__PURE__ */ y(
|
|
4768
4768
|
xr,
|
|
@@ -4799,7 +4799,7 @@ const ti = {
|
|
|
4799
4799
|
children: [
|
|
4800
4800
|
/* @__PURE__ */ y("span", { children: [
|
|
4801
4801
|
" ",
|
|
4802
|
-
|
|
4802
|
+
ie("Continue")
|
|
4803
4803
|
] }),
|
|
4804
4804
|
/* @__PURE__ */ s($e, {})
|
|
4805
4805
|
]
|
|
@@ -4807,17 +4807,17 @@ const ti = {
|
|
|
4807
4807
|
)
|
|
4808
4808
|
] })
|
|
4809
4809
|
] }) }) : /* @__PURE__ */ s(Bo, { children: /* @__PURE__ */ s(tr, {}) }) });
|
|
4810
|
-
},
|
|
4810
|
+
}, ra = m.div`
|
|
4811
4811
|
width: 100%;
|
|
4812
4812
|
height: 100%;
|
|
4813
|
-
`,
|
|
4813
|
+
`, Ci = ({ option: n }) => (Y(() => {
|
|
4814
4814
|
const e = document.getElementById("my-chart"), t = jr.init(e);
|
|
4815
4815
|
t.setOption(n);
|
|
4816
4816
|
const r = () => t.resize();
|
|
4817
4817
|
return window.addEventListener("resize", r, { passive: !0, capture: !0 }), () => {
|
|
4818
4818
|
window.removeEventListener("resize", r), t.dispose();
|
|
4819
4819
|
};
|
|
4820
|
-
}, [n]), /* @__PURE__ */ s(
|
|
4820
|
+
}, [n]), /* @__PURE__ */ s(ra, { id: "my-chart" }));
|
|
4821
4821
|
m.div`
|
|
4822
4822
|
display: flex;
|
|
4823
4823
|
justify-content: center;
|
|
@@ -4825,11 +4825,11 @@ m.div`
|
|
|
4825
4825
|
height: 100vh;
|
|
4826
4826
|
background-color: ${(n) => n.backgroundcolor};
|
|
4827
4827
|
`;
|
|
4828
|
-
const
|
|
4828
|
+
const na = m(tr)`
|
|
4829
4829
|
.ant-spin-dot-item {
|
|
4830
4830
|
background-color: ${(n) => n.backgroundcolor};
|
|
4831
4831
|
}
|
|
4832
|
-
`,
|
|
4832
|
+
`, ki = ({ backgroundcolor: n }) => /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(na, { size: "large", backgroundcolor: n }) }), oa = m.div`
|
|
4833
4833
|
position: absolute;
|
|
4834
4834
|
left: 0;
|
|
4835
4835
|
top: 0;
|
|
@@ -4864,7 +4864,7 @@ const ni = m(tr)`
|
|
|
4864
4864
|
font-size: 1.125rem;
|
|
4865
4865
|
max-width: 25rem;
|
|
4866
4866
|
}
|
|
4867
|
-
`,
|
|
4867
|
+
`, aa = Hr`
|
|
4868
4868
|
0% {
|
|
4869
4869
|
opacity: 90%;
|
|
4870
4870
|
}
|
|
@@ -4878,9 +4878,9 @@ const ni = m(tr)`
|
|
|
4878
4878
|
background: #282828; /* Dark base color */
|
|
4879
4879
|
border-radius: 4px;
|
|
4880
4880
|
background-size: 1000px 100%;
|
|
4881
|
-
animation: ${
|
|
4881
|
+
animation: ${aa} 1.5s infinite linear;
|
|
4882
4882
|
background: var(--color-interaction-press-primary, rgba(20, 20, 20, 0.1));
|
|
4883
|
-
`,
|
|
4883
|
+
`, ia = m(Ae)`
|
|
4884
4884
|
width: 70%; /* Mimics the main title area */
|
|
4885
4885
|
height: 20px;
|
|
4886
4886
|
margin-bottom: 10px;
|
|
@@ -4909,13 +4909,13 @@ const ni = m(tr)`
|
|
|
4909
4909
|
${Ze}:last-child {
|
|
4910
4910
|
margin-right: 0;
|
|
4911
4911
|
}
|
|
4912
|
-
`,
|
|
4912
|
+
`, sa = m.div`
|
|
4913
4913
|
padding: 20px;
|
|
4914
4914
|
overflow-y: hidden;
|
|
4915
4915
|
height: 100vh;
|
|
4916
4916
|
position: relative;
|
|
4917
4917
|
background: var(--color-bg-primary, #fff);
|
|
4918
|
-
`,
|
|
4918
|
+
`, la = m.div`
|
|
4919
4919
|
display: flex;
|
|
4920
4920
|
width: fit-content;
|
|
4921
4921
|
gap: 2rem;
|
|
@@ -4923,7 +4923,7 @@ const ni = m(tr)`
|
|
|
4923
4923
|
padding: 0.5rem;
|
|
4924
4924
|
margin-top: 3rem;
|
|
4925
4925
|
margin-bottom: 1.5rem;
|
|
4926
|
-
`,
|
|
4926
|
+
`, ca = m(Ae)`
|
|
4927
4927
|
width: 4rem;
|
|
4928
4928
|
height: 1rem;
|
|
4929
4929
|
border-radius: 5px;
|
|
@@ -4931,7 +4931,7 @@ const ni = m(tr)`
|
|
|
4931
4931
|
width: ${(n) => n.width || "100%"};
|
|
4932
4932
|
height: 20px;
|
|
4933
4933
|
margin-bottom: 8px;
|
|
4934
|
-
`,
|
|
4934
|
+
`, da = m.div`
|
|
4935
4935
|
border-radius: 2px;
|
|
4936
4936
|
background: var(--color-bg-secondary, #232323);
|
|
4937
4937
|
height: 40rem;
|
|
@@ -4939,19 +4939,19 @@ const ni = m(tr)`
|
|
|
4939
4939
|
flex-direction: column;
|
|
4940
4940
|
padding: 1rem;
|
|
4941
4941
|
margin-bottom: 2px;
|
|
4942
|
-
`, Rt = () => /* @__PURE__ */ y(
|
|
4942
|
+
`, Rt = () => /* @__PURE__ */ y(ae, { children: [
|
|
4943
4943
|
/* @__PURE__ */ s(Ht, { width: "80%" }),
|
|
4944
4944
|
/* @__PURE__ */ s(Ht, { width: "60%" })
|
|
4945
|
-
] }),
|
|
4946
|
-
/* @__PURE__ */ s(
|
|
4945
|
+
] }), Si = () => /* @__PURE__ */ y(sa, { children: [
|
|
4946
|
+
/* @__PURE__ */ s(oa, { children: /* @__PURE__ */ y("div", { children: [
|
|
4947
4947
|
/* @__PURE__ */ s("h2", { children: Lt("ComingSoon") }),
|
|
4948
4948
|
/* @__PURE__ */ s("p", { children: Lt("ComingSoonDesc") })
|
|
4949
4949
|
] }) }),
|
|
4950
|
-
/* @__PURE__ */ s(
|
|
4950
|
+
/* @__PURE__ */ s(ia, {}),
|
|
4951
4951
|
/* @__PURE__ */ s(pe, {}),
|
|
4952
|
-
/* @__PURE__ */ s(
|
|
4952
|
+
/* @__PURE__ */ s(la, { children: [...Array(7)].map((n, e) => /* @__PURE__ */ s(ca, {}, e)) }),
|
|
4953
4953
|
/* @__PURE__ */ s(nt, { children: [...Array(5)].map((n, e) => /* @__PURE__ */ s(Ze, { children: /* @__PURE__ */ s(Rt, {}) }, e)) }),
|
|
4954
|
-
/* @__PURE__ */ y(
|
|
4954
|
+
/* @__PURE__ */ y(da, { children: [
|
|
4955
4955
|
/* @__PURE__ */ s(pe, { width: "20%", height: "18px", marginbottom: "10px" }),
|
|
4956
4956
|
/* @__PURE__ */ s(pe, { width: "20%", height: "18px", marginbottom: "20px" }),
|
|
4957
4957
|
/* @__PURE__ */ y(nt, { children: [
|
|
@@ -4964,7 +4964,7 @@ const ni = m(tr)`
|
|
|
4964
4964
|
] })
|
|
4965
4965
|
] }),
|
|
4966
4966
|
/* @__PURE__ */ s(nt, { children: [...Array(5)].map((n, e) => /* @__PURE__ */ s(Ze, { children: /* @__PURE__ */ s(Rt, {}) }, e)) })
|
|
4967
|
-
] }),
|
|
4967
|
+
] }), pa = m(pt)`
|
|
4968
4968
|
.ant-table-thead > tr > th {
|
|
4969
4969
|
background: var(--color-bg-primary, #fff);
|
|
4970
4970
|
color: var(--color-text-secondary, rgba(19, 20, 18, 0.75));
|
|
@@ -5085,27 +5085,27 @@ const ni = m(tr)`
|
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
5088
|
-
`,
|
|
5088
|
+
`, ua = (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.0001 5.72363L11.6096 9.33311L10.6668 10.2759L8.0001 7.60925L5.33343 10.2759L4.39062 9.33311L8.0001 5.72363Z", fill: "currentColor" })), Li = ({
|
|
5089
5089
|
rowKey: n,
|
|
5090
5090
|
CustomExpandableRow: e,
|
|
5091
5091
|
columns: t,
|
|
5092
5092
|
dataTableColumns: r,
|
|
5093
5093
|
dataSource: o,
|
|
5094
|
-
expandableRowProps:
|
|
5095
|
-
expandedRows:
|
|
5094
|
+
expandableRowProps: a,
|
|
5095
|
+
expandedRows: i,
|
|
5096
5096
|
setExpandedRow: l,
|
|
5097
5097
|
loading: d,
|
|
5098
5098
|
pagination: c
|
|
5099
5099
|
}) => {
|
|
5100
5100
|
const [u, p] = j([]), g = t || r;
|
|
5101
5101
|
Y(() => {
|
|
5102
|
-
|
|
5103
|
-
}, [
|
|
5102
|
+
i && i.length > 0 && p((h) => [...i, ...h]);
|
|
5103
|
+
}, [i]);
|
|
5104
5104
|
function f(h) {
|
|
5105
5105
|
p(h), l && l([]);
|
|
5106
5106
|
}
|
|
5107
5107
|
return /* @__PURE__ */ s(
|
|
5108
|
-
|
|
5108
|
+
pa,
|
|
5109
5109
|
{
|
|
5110
5110
|
rowKey: n || "id",
|
|
5111
5111
|
pagination: c,
|
|
@@ -5118,14 +5118,14 @@ const ni = m(tr)`
|
|
|
5118
5118
|
expandedRowKeys: u,
|
|
5119
5119
|
onExpandedRowsChange: f,
|
|
5120
5120
|
expandable: {
|
|
5121
|
-
expandedRowRender: (h) => /* @__PURE__ */ s(e, { ...
|
|
5122
|
-
expandIcon: ({ expanded: h }) => /* @__PURE__ */ s(
|
|
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(ua, {}) }) : /* @__PURE__ */ s("span", { className: "arrow-svg", children: /* @__PURE__ */ s(ut, {}) }) }),
|
|
5123
5123
|
expandRowByClick: !0
|
|
5124
5124
|
},
|
|
5125
5125
|
dataSource: o
|
|
5126
5126
|
}
|
|
5127
5127
|
);
|
|
5128
|
-
},
|
|
5128
|
+
}, fa = m(Pr)`
|
|
5129
5129
|
display: flex;
|
|
5130
5130
|
gap: var(--spacing-025, 2px);
|
|
5131
5131
|
color: var(--color-text-secondary, rgba(19, 20, 18, 0.75));
|
|
@@ -5225,14 +5225,14 @@ m.div`
|
|
|
5225
5225
|
gap: 5px;
|
|
5226
5226
|
}
|
|
5227
5227
|
`;
|
|
5228
|
-
const
|
|
5228
|
+
const ha = m.div`
|
|
5229
5229
|
position: relative;
|
|
5230
5230
|
@media (min-width: 1080px) {
|
|
5231
5231
|
.tab-select {
|
|
5232
5232
|
display: none;
|
|
5233
5233
|
}
|
|
5234
5234
|
}
|
|
5235
|
-
`,
|
|
5235
|
+
`, ga = m.div`
|
|
5236
5236
|
position: absolute;
|
|
5237
5237
|
left: 20px;
|
|
5238
5238
|
top: 10px;
|
|
@@ -5243,17 +5243,17 @@ const hi = m.div`
|
|
|
5243
5243
|
n = r, e = o;
|
|
5244
5244
|
});
|
|
5245
5245
|
return t.resolve = n, t.reject = e, t;
|
|
5246
|
-
}, Nt = (n) => n == null ? "" : String(n),
|
|
5246
|
+
}, Nt = (n) => n == null ? "" : String(n), ma = (n, e, t) => {
|
|
5247
5247
|
n.forEach((r) => {
|
|
5248
5248
|
e[r] && (t[r] = e[r]);
|
|
5249
5249
|
});
|
|
5250
|
-
},
|
|
5250
|
+
}, ya = /###/g, Ft = (n) => n && n.includes("###") ? n.replace(ya, ".") : n, Vt = (n) => !n || R(n), Re = (n, e, t) => {
|
|
5251
5251
|
const r = R(e) ? e.split(".") : e;
|
|
5252
5252
|
let o = 0;
|
|
5253
5253
|
for (; o < r.length - 1; ) {
|
|
5254
5254
|
if (Vt(n)) return {};
|
|
5255
|
-
const
|
|
5256
|
-
!n[
|
|
5255
|
+
const a = Ft(r[o]);
|
|
5256
|
+
!n[a] && t && (n[a] = new t()), Object.prototype.hasOwnProperty.call(n, a) ? n = n[a] : n = {}, ++o;
|
|
5257
5257
|
}
|
|
5258
5258
|
return Vt(n) ? {} : {
|
|
5259
5259
|
obj: n,
|
|
@@ -5268,16 +5268,16 @@ const hi = m.div`
|
|
|
5268
5268
|
r[o] = t;
|
|
5269
5269
|
return;
|
|
5270
5270
|
}
|
|
5271
|
-
let
|
|
5272
|
-
for (; l.obj === void 0 &&
|
|
5273
|
-
|
|
5274
|
-
l.obj[`${l.k}.${
|
|
5275
|
-
},
|
|
5271
|
+
let a = e[e.length - 1], i = e.slice(0, e.length - 1), l = Re(n, i, Object);
|
|
5272
|
+
for (; l.obj === void 0 && i.length; )
|
|
5273
|
+
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), l = Re(n, i, Object), l != null && l.obj && typeof l.obj[`${l.k}.${a}`] < "u" && (l.obj = void 0);
|
|
5274
|
+
l.obj[`${l.k}.${a}`] = t;
|
|
5275
|
+
}, ba = (n, e, t, r) => {
|
|
5276
5276
|
const {
|
|
5277
5277
|
obj: o,
|
|
5278
|
-
k:
|
|
5278
|
+
k: a
|
|
5279
5279
|
} = Re(n, e, Object);
|
|
5280
|
-
o[
|
|
5280
|
+
o[a] = o[a] || [], o[a].push(t);
|
|
5281
5281
|
}, qe = (n, e) => {
|
|
5282
5282
|
const {
|
|
5283
5283
|
obj: t,
|
|
@@ -5285,22 +5285,22 @@ const hi = m.div`
|
|
|
5285
5285
|
} = Re(n, e);
|
|
5286
5286
|
if (t && Object.prototype.hasOwnProperty.call(t, r))
|
|
5287
5287
|
return t[r];
|
|
5288
|
-
},
|
|
5288
|
+
}, va = (n, e, t) => {
|
|
5289
5289
|
const r = qe(n, t);
|
|
5290
5290
|
return r !== void 0 ? r : qe(e, t);
|
|
5291
5291
|
}, kr = (n, e, t) => {
|
|
5292
5292
|
for (const r in e)
|
|
5293
5293
|
r !== "__proto__" && r !== "constructor" && (r in n ? R(n[r]) || n[r] instanceof String || R(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : kr(n[r], e[r], t) : n[r] = e[r]);
|
|
5294
5294
|
return n;
|
|
5295
|
-
}, ve = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"),
|
|
5295
|
+
}, ve = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), xa = {
|
|
5296
5296
|
"&": "&",
|
|
5297
5297
|
"<": "<",
|
|
5298
5298
|
">": ">",
|
|
5299
5299
|
'"': """,
|
|
5300
5300
|
"'": "'",
|
|
5301
5301
|
"/": "/"
|
|
5302
|
-
},
|
|
5303
|
-
class
|
|
5302
|
+
}, wa = (n) => R(n) ? n.replace(/[&<>"'\/]/g, (e) => xa[e]) : n;
|
|
5303
|
+
class Ca {
|
|
5304
5304
|
constructor(e) {
|
|
5305
5305
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
5306
5306
|
}
|
|
@@ -5312,38 +5312,38 @@ class Ci {
|
|
|
5312
5312
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
|
-
const
|
|
5315
|
+
const ka = [" ", ",", "?", "!", ";"], Sa = new Ca(20), La = (n, e, t) => {
|
|
5316
5316
|
e = e || "", t = t || "";
|
|
5317
|
-
const r =
|
|
5317
|
+
const r = ka.filter((i) => !e.includes(i) && !t.includes(i));
|
|
5318
5318
|
if (r.length === 0) return !0;
|
|
5319
|
-
const o =
|
|
5320
|
-
let
|
|
5321
|
-
if (!
|
|
5322
|
-
const
|
|
5323
|
-
|
|
5319
|
+
const o = Sa.getRegExp(`(${r.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
5320
|
+
let a = !o.test(n);
|
|
5321
|
+
if (!a) {
|
|
5322
|
+
const i = n.indexOf(t);
|
|
5323
|
+
i > 0 && !o.test(n.substring(0, i)) && (a = !0);
|
|
5324
5324
|
}
|
|
5325
|
-
return
|
|
5325
|
+
return a;
|
|
5326
5326
|
}, ct = (n, e, t = ".") => {
|
|
5327
5327
|
if (!n) return;
|
|
5328
5328
|
if (n[e])
|
|
5329
5329
|
return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : void 0;
|
|
5330
5330
|
const r = e.split(t);
|
|
5331
5331
|
let o = n;
|
|
5332
|
-
for (let
|
|
5332
|
+
for (let a = 0; a < r.length; ) {
|
|
5333
5333
|
if (!o || typeof o != "object")
|
|
5334
5334
|
return;
|
|
5335
|
-
let
|
|
5336
|
-
for (let d =
|
|
5337
|
-
if (d !==
|
|
5338
|
-
if (["string", "number", "boolean"].includes(typeof
|
|
5335
|
+
let i, l = "";
|
|
5336
|
+
for (let d = a; d < r.length; ++d)
|
|
5337
|
+
if (d !== a && (l += t), l += r[d], i = o[l], i !== void 0) {
|
|
5338
|
+
if (["string", "number", "boolean"].includes(typeof i) && d < r.length - 1)
|
|
5339
5339
|
continue;
|
|
5340
|
-
|
|
5340
|
+
a += d - a + 1;
|
|
5341
5341
|
break;
|
|
5342
5342
|
}
|
|
5343
|
-
o =
|
|
5343
|
+
o = i;
|
|
5344
5344
|
}
|
|
5345
5345
|
return o;
|
|
5346
|
-
}, Fe = (n) => n == null ? void 0 : n.replace(/_/g, "-"), $
|
|
5346
|
+
}, Fe = (n) => n == null ? void 0 : n.replace(/_/g, "-"), $a = {
|
|
5347
5347
|
type: "logger",
|
|
5348
5348
|
log(n) {
|
|
5349
5349
|
this.output("log", n);
|
|
@@ -5364,7 +5364,7 @@ class Je {
|
|
|
5364
5364
|
this.init(e, t);
|
|
5365
5365
|
}
|
|
5366
5366
|
init(e, t = {}) {
|
|
5367
|
-
this.prefix = t.prefix || "i18next:", this.logger = e || $
|
|
5367
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || $a, this.options = t, this.debug = t.debug;
|
|
5368
5368
|
}
|
|
5369
5369
|
log(...e) {
|
|
5370
5370
|
return this.forward(e, "log", "", !0);
|
|
@@ -5419,11 +5419,11 @@ class rt {
|
|
|
5419
5419
|
return this.on(e, r), this;
|
|
5420
5420
|
}
|
|
5421
5421
|
emit(e, ...t) {
|
|
5422
|
-
this.observers[e] && Array.from(this.observers[e].entries()).forEach(([o,
|
|
5423
|
-
for (let
|
|
5422
|
+
this.observers[e] && Array.from(this.observers[e].entries()).forEach(([o, a]) => {
|
|
5423
|
+
for (let i = 0; i < a; i++)
|
|
5424
5424
|
o(...t);
|
|
5425
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([o,
|
|
5426
|
-
for (let
|
|
5425
|
+
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([o, a]) => {
|
|
5426
|
+
for (let i = 0; i < a; i++)
|
|
5427
5427
|
o(e, ...t);
|
|
5428
5428
|
});
|
|
5429
5429
|
}
|
|
@@ -5444,39 +5444,39 @@ class jt extends rt {
|
|
|
5444
5444
|
}
|
|
5445
5445
|
getResource(e, t, r, o = {}) {
|
|
5446
5446
|
var c, u;
|
|
5447
|
-
const
|
|
5447
|
+
const a = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, i = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
5448
5448
|
let l;
|
|
5449
|
-
e.includes(".") ? l = e.split(".") : (l = [e, t], r && (Array.isArray(r) ? l.push(...r) : R(r) &&
|
|
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
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 || !
|
|
5451
|
+
return !d && !t && !r && e.includes(".") && (e = l[0], t = l[1], r = l.slice(2).join(".")), d || !i || !R(r) ? d : ct((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], r, a);
|
|
5452
5452
|
}
|
|
5453
|
-
addResource(e, t, r, o,
|
|
5453
|
+
addResource(e, t, r, o, a = {
|
|
5454
5454
|
silent: !1
|
|
5455
5455
|
}) {
|
|
5456
|
-
const
|
|
5456
|
+
const i = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
5457
5457
|
let l = [e, t];
|
|
5458
|
-
r && (l = l.concat(
|
|
5458
|
+
r && (l = l.concat(i ? r.split(i) : r)), e.includes(".") && (l = e.split("."), o = t, t = l[1]), this.addNamespaces(t), At(this.data, l, o), a.silent || this.emit("added", e, t, r, o);
|
|
5459
5459
|
}
|
|
5460
5460
|
addResources(e, t, r, o = {
|
|
5461
5461
|
silent: !1
|
|
5462
5462
|
}) {
|
|
5463
|
-
for (const
|
|
5464
|
-
(R(r[
|
|
5463
|
+
for (const a in r)
|
|
5464
|
+
(R(r[a]) || Array.isArray(r[a])) && this.addResource(e, t, a, r[a], {
|
|
5465
5465
|
silent: !0
|
|
5466
5466
|
});
|
|
5467
5467
|
o.silent || this.emit("added", e, t, r);
|
|
5468
5468
|
}
|
|
5469
|
-
addResourceBundle(e, t, r, o,
|
|
5469
|
+
addResourceBundle(e, t, r, o, a, i = {
|
|
5470
5470
|
silent: !1,
|
|
5471
5471
|
skipCopy: !1
|
|
5472
5472
|
}) {
|
|
5473
5473
|
let l = [e, t];
|
|
5474
5474
|
e.includes(".") && (l = e.split("."), o = r, r = t, t = l[1]), this.addNamespaces(t);
|
|
5475
5475
|
let d = qe(this.data, l) || {};
|
|
5476
|
-
|
|
5476
|
+
i.skipCopy || (r = JSON.parse(JSON.stringify(r))), o ? kr(d, r, a) : d = {
|
|
5477
5477
|
...d,
|
|
5478
5478
|
...r
|
|
5479
|
-
}, At(this.data, l, d),
|
|
5479
|
+
}, At(this.data, l, d), i.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);
|
|
@@ -5504,28 +5504,28 @@ var Sr = {
|
|
|
5504
5504
|
this.processors[n.name] = n;
|
|
5505
5505
|
},
|
|
5506
5506
|
handle(n, e, t, r, o) {
|
|
5507
|
-
return n.forEach((
|
|
5508
|
-
var
|
|
5509
|
-
e = ((
|
|
5507
|
+
return n.forEach((a) => {
|
|
5508
|
+
var i;
|
|
5509
|
+
e = ((i = this.processors[a]) == null ? void 0 : i.process(e, t, r, o)) ?? e;
|
|
5510
5510
|
}), e;
|
|
5511
5511
|
}
|
|
5512
5512
|
};
|
|
5513
5513
|
const Lr = Symbol("i18next/PATH_KEY");
|
|
5514
|
-
function
|
|
5514
|
+
function Da() {
|
|
5515
5515
|
const n = [], e = /* @__PURE__ */ Object.create(null);
|
|
5516
5516
|
let t;
|
|
5517
5517
|
return e.get = (r, o) => {
|
|
5518
|
-
var
|
|
5519
|
-
return (
|
|
5518
|
+
var a;
|
|
5519
|
+
return (a = t == null ? void 0 : t.revoke) == null || a.call(t), o === Lr ? n : (n.push(o), t = Proxy.revocable(r, e), t.proxy);
|
|
5520
5520
|
}, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
|
|
5521
5521
|
}
|
|
5522
5522
|
function Le(n, e) {
|
|
5523
5523
|
const {
|
|
5524
5524
|
[Lr]: t
|
|
5525
|
-
} = n(
|
|
5525
|
+
} = n(Da()), r = (e == null ? void 0 : e.keySeparator) ?? ".", o = (e == null ? void 0 : e.nsSeparator) ?? ":";
|
|
5526
5526
|
if (t.length > 1 && o) {
|
|
5527
|
-
const
|
|
5528
|
-
if (
|
|
5527
|
+
const a = e == null ? void 0 : e.ns, i = Array.isArray(a) ? a : null;
|
|
5528
|
+
if (i && i.length > 1 && i.slice(1).includes(t[0]))
|
|
5529
5529
|
return `${t[0]}${o}${t.slice(1).join(r)}`;
|
|
5530
5530
|
}
|
|
5531
5531
|
return t.join(r);
|
|
@@ -5533,7 +5533,7 @@ function Le(n, e) {
|
|
|
5533
5533
|
const ot = (n) => !R(n) && typeof n != "boolean" && typeof n != "number";
|
|
5534
5534
|
class Qe extends rt {
|
|
5535
5535
|
constructor(e, t = {}) {
|
|
5536
|
-
super(),
|
|
5536
|
+
super(), ma(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = le.create("translator"), this.checkedLoadedFor = {};
|
|
5537
5537
|
}
|
|
5538
5538
|
changeLanguage(e) {
|
|
5539
5539
|
e && (this.language = e);
|
|
@@ -5547,28 +5547,28 @@ class Qe extends rt {
|
|
|
5547
5547
|
if (e == null) return !1;
|
|
5548
5548
|
const o = this.resolve(e, r);
|
|
5549
5549
|
if ((o == null ? void 0 : o.res) === void 0) return !1;
|
|
5550
|
-
const
|
|
5551
|
-
return !(r.returnObjects === !1 &&
|
|
5550
|
+
const a = ot(o.res);
|
|
5551
|
+
return !(r.returnObjects === !1 && a);
|
|
5552
5552
|
}
|
|
5553
5553
|
extractFromKey(e, t) {
|
|
5554
5554
|
let r = t.nsSeparator !== void 0 ? t.nsSeparator : this.options.nsSeparator;
|
|
5555
5555
|
r === void 0 && (r = ":");
|
|
5556
5556
|
const o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
5557
|
-
let
|
|
5558
|
-
const
|
|
5559
|
-
if (
|
|
5557
|
+
let a = t.ns || this.options.defaultNS || [];
|
|
5558
|
+
const i = r && e.includes(r), l = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !La(e, r, o);
|
|
5559
|
+
if (i && !l) {
|
|
5560
5560
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
5561
5561
|
if (d && d.length > 0)
|
|
5562
5562
|
return {
|
|
5563
5563
|
key: e,
|
|
5564
|
-
namespaces: R(
|
|
5564
|
+
namespaces: R(a) ? [a] : a
|
|
5565
5565
|
};
|
|
5566
5566
|
const c = e.split(r);
|
|
5567
|
-
(r !== o || r === o && this.options.ns.includes(c[0])) && (
|
|
5567
|
+
(r !== o || r === o && this.options.ns.includes(c[0])) && (a = c.shift()), e = c.join(o);
|
|
5568
5568
|
}
|
|
5569
5569
|
return {
|
|
5570
5570
|
key: e,
|
|
5571
|
-
namespaces: R(
|
|
5571
|
+
namespaces: R(a) ? [a] : a
|
|
5572
5572
|
};
|
|
5573
5573
|
}
|
|
5574
5574
|
translate(e, t, r) {
|
|
@@ -5585,7 +5585,7 @@ class Qe extends rt {
|
|
|
5585
5585
|
...this.options,
|
|
5586
5586
|
...o
|
|
5587
5587
|
}) : String(P));
|
|
5588
|
-
const
|
|
5588
|
+
const a = o.returnDetails !== void 0 ? o.returnDetails : this.options.returnDetails, i = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, {
|
|
5589
5589
|
key: l,
|
|
5590
5590
|
namespaces: d
|
|
5591
5591
|
} = this.extractFromKey(e[e.length - 1], o), c = d[d.length - 1];
|
|
@@ -5593,14 +5593,14 @@ class Qe extends rt {
|
|
|
5593
5593
|
u === void 0 && (u = ":");
|
|
5594
5594
|
const p = o.lng || this.language, g = o.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
5595
5595
|
if ((p == null ? void 0 : p.toLowerCase()) === "cimode")
|
|
5596
|
-
return g ?
|
|
5596
|
+
return g ? a ? {
|
|
5597
5597
|
res: `${c}${u}${l}`,
|
|
5598
5598
|
usedKey: l,
|
|
5599
5599
|
exactUsedKey: l,
|
|
5600
5600
|
usedLng: p,
|
|
5601
5601
|
usedNS: c,
|
|
5602
5602
|
usedParams: this.getUsedParamsDetails(o)
|
|
5603
|
-
} : `${c}${u}${l}` :
|
|
5603
|
+
} : `${c}${u}${l}` : a ? {
|
|
5604
5604
|
res: l,
|
|
5605
5605
|
usedKey: l,
|
|
5606
5606
|
exactUsedKey: l,
|
|
@@ -5623,13 +5623,13 @@ class Qe extends rt {
|
|
|
5623
5623
|
...o,
|
|
5624
5624
|
ns: d
|
|
5625
5625
|
}) : `key '${l} (${this.language})' returned an object instead of string.`;
|
|
5626
|
-
return
|
|
5626
|
+
return a ? (f.res = P, f.usedParams = this.getUsedParamsDetails(o), f) : P;
|
|
5627
5627
|
}
|
|
5628
|
-
if (
|
|
5628
|
+
if (i) {
|
|
5629
5629
|
const P = Array.isArray(O), L = P ? [] : {}, k = P ? I : C;
|
|
5630
5630
|
for (const v in O)
|
|
5631
5631
|
if (Object.prototype.hasOwnProperty.call(O, v)) {
|
|
5632
|
-
const b = `${k}${
|
|
5632
|
+
const b = `${k}${i}${v}`;
|
|
5633
5633
|
V && !h ? L[v] = this.translate(b, {
|
|
5634
5634
|
...o,
|
|
5635
5635
|
defaultValue: ot(z) ? z[v] : void 0,
|
|
@@ -5650,7 +5650,7 @@ class Qe extends rt {
|
|
|
5650
5650
|
!this.isValidLookup(h) && V && (P = !0, h = z), this.isValidLookup(h) || (L = !0, h = l);
|
|
5651
5651
|
const v = (o.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : h, b = V && z !== h && this.options.updateMissing;
|
|
5652
5652
|
if (L || P || b) {
|
|
5653
|
-
if (this.logger.log(b ? "updateKey" : "missingKey", p, c, l, b ? z : h),
|
|
5653
|
+
if (this.logger.log(b ? "updateKey" : "missingKey", p, c, l, b ? z : h), i) {
|
|
5654
5654
|
const F = this.resolve(l, {
|
|
5655
5655
|
...o,
|
|
5656
5656
|
keySeparator: !1
|
|
@@ -5677,9 +5677,9 @@ class Qe extends rt {
|
|
|
5677
5677
|
}
|
|
5678
5678
|
h = this.extendTranslation(h, e, o, 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, o));
|
|
5679
5679
|
}
|
|
5680
|
-
return
|
|
5680
|
+
return a ? (f.res = h, f.usedParams = this.getUsedParamsDetails(o), f) : h;
|
|
5681
5681
|
}
|
|
5682
|
-
extendTranslation(e, t, r, o,
|
|
5682
|
+
extendTranslation(e, t, r, o, a) {
|
|
5683
5683
|
var d, c;
|
|
5684
5684
|
if ((d = this.i18nFormat) != null && d.parse)
|
|
5685
5685
|
e = this.i18nFormat.parse(e, {
|
|
@@ -5710,9 +5710,9 @@ class Qe extends rt {
|
|
|
5710
5710
|
const f = e.match(this.interpolator.nestingRegexp), h = f && f.length;
|
|
5711
5711
|
p < h && (r.nest = !1);
|
|
5712
5712
|
}
|
|
5713
|
-
!r.lng && o && o.res && (r.lng = this.language || o.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...f) => (
|
|
5713
|
+
!r.lng && o && o.res && (r.lng = this.language || o.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
|
|
5715
|
+
const i = r.postProcess || this.options.postProcess, l = R(i) ? [i] : i;
|
|
5716
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
|
...o,
|
|
@@ -5722,7 +5722,7 @@ class Qe extends rt {
|
|
|
5722
5722
|
} : r, this)), e;
|
|
5723
5723
|
}
|
|
5724
5724
|
resolve(e, t = {}) {
|
|
5725
|
-
let r, o,
|
|
5725
|
+
let r, o, a, i, l;
|
|
5726
5726
|
return R(e) && (e = [e]), Array.isArray(e) && (e = e.map((d) => typeof d == "function" ? Le(d, {
|
|
5727
5727
|
...this.options,
|
|
5728
5728
|
...t
|
|
@@ -5738,7 +5738,7 @@ class Qe extends rt {
|
|
|
5738
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 "${o}" 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(($) => {
|
|
5739
5739
|
var G;
|
|
5740
5740
|
if (this.isValidLookup(r)) return;
|
|
5741
|
-
|
|
5741
|
+
i = $;
|
|
5742
5742
|
const T = [u];
|
|
5743
5743
|
if ((G = this.i18nFormat) != null && G.addLookupKeys)
|
|
5744
5744
|
this.i18nFormat.addLookupKeys(T, u, $, I, t);
|
|
@@ -5753,14 +5753,14 @@ class Qe extends rt {
|
|
|
5753
5753
|
}
|
|
5754
5754
|
let V;
|
|
5755
5755
|
for (; V = T.pop(); )
|
|
5756
|
-
this.isValidLookup(r) || (
|
|
5756
|
+
this.isValidLookup(r) || (a = V, r = this.getResource($, I, V, t));
|
|
5757
5757
|
}));
|
|
5758
5758
|
});
|
|
5759
5759
|
}), {
|
|
5760
5760
|
res: r,
|
|
5761
5761
|
usedKey: o,
|
|
5762
|
-
exactUsedKey:
|
|
5763
|
-
usedLng:
|
|
5762
|
+
exactUsedKey: a,
|
|
5763
|
+
usedLng: i,
|
|
5764
5764
|
usedNS: l
|
|
5765
5765
|
};
|
|
5766
5766
|
}
|
|
@@ -5768,8 +5768,8 @@ class Qe extends rt {
|
|
|
5768
5768
|
return e !== void 0 && !(!this.options.returnNull && e === null) && !(!this.options.returnEmptyString && e === "");
|
|
5769
5769
|
}
|
|
5770
5770
|
getResource(e, t, r, o = {}) {
|
|
5771
|
-
var
|
|
5772
|
-
return (
|
|
5771
|
+
var a;
|
|
5772
|
+
return (a = this.i18nFormat) != null && a.getResource ? this.i18nFormat.getResource(e, t, r, o) : this.resourceStore.getResource(e, t, r, o);
|
|
5773
5773
|
}
|
|
5774
5774
|
getUsedParamsDetails(e = {}) {
|
|
5775
5775
|
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !R(e.replace);
|
|
@@ -5781,8 +5781,8 @@ class Qe extends rt {
|
|
|
5781
5781
|
o = {
|
|
5782
5782
|
...o
|
|
5783
5783
|
};
|
|
5784
|
-
for (const
|
|
5785
|
-
delete o[
|
|
5784
|
+
for (const a of t)
|
|
5785
|
+
delete o[a];
|
|
5786
5786
|
}
|
|
5787
5787
|
return o;
|
|
5788
5788
|
}
|
|
@@ -5833,9 +5833,9 @@ class Bt {
|
|
|
5833
5833
|
if (t) return;
|
|
5834
5834
|
const o = this.getScriptPartFromCode(r);
|
|
5835
5835
|
if (this.isSupportedCode(o)) return t = o;
|
|
5836
|
-
const
|
|
5837
|
-
if (this.isSupportedCode(
|
|
5838
|
-
t = this.options.supportedLngs.find((
|
|
5836
|
+
const a = this.getLanguagePartFromCode(r);
|
|
5837
|
+
if (this.isSupportedCode(a)) return t = a;
|
|
5838
|
+
t = this.options.supportedLngs.find((i) => i === a ? !0 : !i.includes("-") && !a.includes("-") ? !1 : !!(i.includes("-") && !a.includes("-") && i.slice(0, i.indexOf("-")) === a || i.startsWith(a) && a.length > 1));
|
|
5839
5839
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
5840
5840
|
}
|
|
5841
5841
|
getFallbackCodes(e, t) {
|
|
@@ -5846,11 +5846,11 @@ class Bt {
|
|
|
5846
5846
|
return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
|
|
5847
5847
|
}
|
|
5848
5848
|
toResolveHierarchy(e, t) {
|
|
5849
|
-
const r = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), o = [],
|
|
5850
|
-
|
|
5849
|
+
const r = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), o = [], a = (i) => {
|
|
5850
|
+
i && (this.isSupportedCode(i) ? o.push(i) : this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`));
|
|
5851
5851
|
};
|
|
5852
|
-
return R(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" &&
|
|
5853
|
-
o.includes(
|
|
5852
|
+
return R(e) && (e.includes("-") || e.includes("_")) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : R(e) && a(this.formatLanguageCode(e)), r.forEach((i) => {
|
|
5853
|
+
o.includes(i) || a(this.formatLanguageCode(i));
|
|
5854
5854
|
}), o;
|
|
5855
5855
|
}
|
|
5856
5856
|
}
|
|
@@ -5867,7 +5867,7 @@ const Gt = {
|
|
|
5867
5867
|
pluralCategories: ["one", "other"]
|
|
5868
5868
|
})
|
|
5869
5869
|
};
|
|
5870
|
-
class
|
|
5870
|
+
class Oa {
|
|
5871
5871
|
constructor(e, t = {}) {
|
|
5872
5872
|
this.languageUtils = e, this.options = t, this.logger = le.create("pluralResolver"), this.pluralRulesCache = {};
|
|
5873
5873
|
}
|
|
@@ -5875,15 +5875,15 @@ class Oi {
|
|
|
5875
5875
|
this.pluralRulesCache = {};
|
|
5876
5876
|
}
|
|
5877
5877
|
getRule(e, t = {}) {
|
|
5878
|
-
const r = Fe(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal",
|
|
5878
|
+
const r = Fe(e === "dev" ? "en" : e), o = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
5879
5879
|
cleanedCode: r,
|
|
5880
5880
|
type: o
|
|
5881
5881
|
});
|
|
5882
|
-
if (
|
|
5883
|
-
return this.pluralRulesCache[
|
|
5884
|
-
let
|
|
5882
|
+
if (a in this.pluralRulesCache)
|
|
5883
|
+
return this.pluralRulesCache[a];
|
|
5884
|
+
let i;
|
|
5885
5885
|
try {
|
|
5886
|
-
|
|
5886
|
+
i = new Intl.PluralRules(r, {
|
|
5887
5887
|
type: o
|
|
5888
5888
|
});
|
|
5889
5889
|
} catch {
|
|
@@ -5891,9 +5891,9 @@ class Oi {
|
|
|
5891
5891
|
return this.logger.error("No Intl support, please use an Intl polyfill!"), Ut;
|
|
5892
5892
|
if (!e.match(/-|_/)) return Ut;
|
|
5893
5893
|
const d = this.languageUtils.getLanguagePartFromCode(e);
|
|
5894
|
-
|
|
5894
|
+
i = this.getRule(d, t);
|
|
5895
5895
|
}
|
|
5896
|
-
return this.pluralRulesCache[
|
|
5896
|
+
return this.pluralRulesCache[a] = i, i;
|
|
5897
5897
|
}
|
|
5898
5898
|
needsPlural(e, t = {}) {
|
|
5899
5899
|
let r = this.getRule(e, t);
|
|
@@ -5904,7 +5904,7 @@ class Oi {
|
|
|
5904
5904
|
}
|
|
5905
5905
|
getSuffixes(e, t = {}) {
|
|
5906
5906
|
let r = this.getRule(e, t);
|
|
5907
|
-
return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((o,
|
|
5907
|
+
return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((o, a) => Gt[o] - Gt[a]).map((o) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${o}`) : [];
|
|
5908
5908
|
}
|
|
5909
5909
|
getSuffix(e, t, r = {}) {
|
|
5910
5910
|
const o = this.getRule(e, r);
|
|
@@ -5912,9 +5912,9 @@ class Oi {
|
|
|
5912
5912
|
}
|
|
5913
5913
|
}
|
|
5914
5914
|
const _t = (n, e, t, r = ".", o = !0) => {
|
|
5915
|
-
let
|
|
5916
|
-
return !
|
|
5917
|
-
},
|
|
5915
|
+
let a = va(n, e, t);
|
|
5916
|
+
return !a && o && R(t) && (a = ct(n, t, r), a === void 0 && (a = ct(e, t, r))), a;
|
|
5917
|
+
}, at = (n) => n.replace(/\$/g, "$$$$");
|
|
5918
5918
|
class Wt {
|
|
5919
5919
|
constructor(e = {}) {
|
|
5920
5920
|
var t;
|
|
@@ -5928,8 +5928,8 @@ class Wt {
|
|
|
5928
5928
|
escape: t,
|
|
5929
5929
|
escapeValue: r,
|
|
5930
5930
|
useRawValueToEscape: o,
|
|
5931
|
-
prefix:
|
|
5932
|
-
prefixEscaped:
|
|
5931
|
+
prefix: a,
|
|
5932
|
+
prefixEscaped: i,
|
|
5933
5933
|
suffix: l,
|
|
5934
5934
|
suffixEscaped: d,
|
|
5935
5935
|
formatSeparator: c,
|
|
@@ -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 :
|
|
5946
|
+
this.escape = t !== void 0 ? t : wa, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = a ? ve(a) : i || "{{", this.suffix = l ? ve(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = g ? ve(g) : f || ve("$t("), this.nestingSuffix = h ? ve(h) : C || ve(")"), 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, o) {
|
|
5956
5956
|
var f;
|
|
5957
|
-
let
|
|
5957
|
+
let a, i, 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);
|
|
@@ -5975,76 +5975,76 @@ class Wt {
|
|
|
5975
5975
|
const u = (o == null ? void 0 : o.missingInterpolationHandler) || this.options.missingInterpolationHandler, p = ((f = o == null ? void 0 : o.interpolation) == null ? void 0 : f.skipOnVariables) !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
5976
5976
|
return [{
|
|
5977
5977
|
regex: this.regexpUnescape,
|
|
5978
|
-
safeValue: (h) =>
|
|
5978
|
+
safeValue: (h) => at(h)
|
|
5979
5979
|
}, {
|
|
5980
5980
|
regex: this.regexp,
|
|
5981
|
-
safeValue: (h) => this.escapeValue ?
|
|
5981
|
+
safeValue: (h) => this.escapeValue ? at(this.escape(h)) : at(h)
|
|
5982
5982
|
}].forEach((h) => {
|
|
5983
|
-
for (l = 0;
|
|
5984
|
-
const C =
|
|
5985
|
-
if (
|
|
5983
|
+
for (l = 0; a = h.regex.exec(e); ) {
|
|
5984
|
+
const C = a[1].trim();
|
|
5985
|
+
if (i = c(C), i === void 0)
|
|
5986
5986
|
if (typeof u == "function") {
|
|
5987
|
-
const A = u(e,
|
|
5988
|
-
|
|
5987
|
+
const A = u(e, a, o);
|
|
5988
|
+
i = R(A) ? A : "";
|
|
5989
5989
|
} else if (o && Object.prototype.hasOwnProperty.call(o, C))
|
|
5990
|
-
|
|
5990
|
+
i = "";
|
|
5991
5991
|
else if (p) {
|
|
5992
|
-
|
|
5992
|
+
i = a[0];
|
|
5993
5993
|
continue;
|
|
5994
5994
|
} else
|
|
5995
|
-
this.logger.warn(`missed to pass in variable ${C} for interpolating ${e}`),
|
|
5996
|
-
else !R(
|
|
5997
|
-
const I = h.safeValue(
|
|
5998
|
-
if (e = e.replace(
|
|
5995
|
+
this.logger.warn(`missed to pass in variable ${C} for interpolating ${e}`), i = "";
|
|
5996
|
+
else !R(i) && !this.useRawValueToEscape && (i = Nt(i));
|
|
5997
|
+
const I = h.safeValue(i);
|
|
5998
|
+
if (e = e.replace(a[0], I), p ? (h.regex.lastIndex += i.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
|
-
let o,
|
|
6004
|
+
let o, a, i;
|
|
6005
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(`${ve(u)}[ ]*{`));
|
|
6009
6009
|
let g = `{${p[1]}`;
|
|
6010
|
-
d = p[0], g = this.interpolate(g,
|
|
6010
|
+
d = p[0], g = this.interpolate(g, i);
|
|
6011
6011
|
const f = g.match(/'/g), h = g.match(/"/g);
|
|
6012
6012
|
(((f == null ? void 0 : f.length) ?? 0) % 2 === 0 && !h || ((h == null ? void 0 : h.length) ?? 0) % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
6013
6013
|
try {
|
|
6014
|
-
|
|
6014
|
+
i = JSON.parse(g), c && (i = {
|
|
6015
6015
|
...c,
|
|
6016
|
-
...
|
|
6016
|
+
...i
|
|
6017
6017
|
});
|
|
6018
6018
|
} catch (C) {
|
|
6019
6019
|
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, C), `${d}${u}${g}`;
|
|
6020
6020
|
}
|
|
6021
|
-
return
|
|
6021
|
+
return i.defaultValue && i.defaultValue.includes(this.prefix) && delete i.defaultValue, d;
|
|
6022
6022
|
};
|
|
6023
6023
|
for (; o = this.nestingRegexp.exec(e); ) {
|
|
6024
6024
|
let d = [];
|
|
6025
|
-
|
|
6025
|
+
i = {
|
|
6026
6026
|
...r
|
|
6027
|
-
},
|
|
6027
|
+
}, i = i.replace && !R(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
|
|
6028
6028
|
const c = /{.*}/.test(o[1]) ? o[1].lastIndexOf("}") + 1 : o[1].indexOf(this.formatSeparator);
|
|
6029
|
-
if (c !== -1 && (d = o[1].slice(c).split(this.formatSeparator).map((u) => u.trim()).filter(Boolean), o[1] = o[1].slice(0, c)),
|
|
6030
|
-
R(
|
|
6029
|
+
if (c !== -1 && (d = o[1].slice(c).split(this.formatSeparator).map((u) => u.trim()).filter(Boolean), o[1] = o[1].slice(0, c)), a = t(l.call(this, o[1].trim(), i), i), a && o[0] === e && !R(a)) return a;
|
|
6030
|
+
R(a) || (a = Nt(a)), a || (this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`), a = ""), d.length && (a = d.reduce((u, p) => this.format(u, p, r.lng, {
|
|
6031
6031
|
...r,
|
|
6032
6032
|
interpolationkey: o[1].trim()
|
|
6033
|
-
}),
|
|
6033
|
+
}), a.trim())), e = e.replace(o[0], a), this.regexp.lastIndex = 0;
|
|
6034
6034
|
}
|
|
6035
6035
|
return e;
|
|
6036
6036
|
}
|
|
6037
6037
|
}
|
|
6038
|
-
const
|
|
6038
|
+
const Ea = (n) => {
|
|
6039
6039
|
let e = n.toLowerCase().trim();
|
|
6040
6040
|
const t = {};
|
|
6041
6041
|
if (n.includes("(")) {
|
|
6042
6042
|
const r = n.split("(");
|
|
6043
6043
|
e = r[0].toLowerCase().trim();
|
|
6044
6044
|
const o = r[1].slice(0, -1);
|
|
6045
|
-
e === "currency" && !o.includes(":") ? t.currency || (t.currency = o.trim()) : e === "relativetime" && !o.includes(":") ? t.range || (t.range = o.trim()) : o.split(";").forEach((
|
|
6046
|
-
if (
|
|
6047
|
-
const [l, ...d] =
|
|
6045
|
+
e === "currency" && !o.includes(":") ? t.currency || (t.currency = o.trim()) : e === "relativetime" && !o.includes(":") ? t.range || (t.range = o.trim()) : o.split(";").forEach((i) => {
|
|
6046
|
+
if (i) {
|
|
6047
|
+
const [l, ...d] = i.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
|
});
|
|
@@ -6056,17 +6056,17 @@ const Ei = (n) => {
|
|
|
6056
6056
|
}, Yt = (n) => {
|
|
6057
6057
|
const e = {};
|
|
6058
6058
|
return (t, r, o) => {
|
|
6059
|
-
let
|
|
6060
|
-
o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey] && (
|
|
6061
|
-
...
|
|
6059
|
+
let a = o;
|
|
6060
|
+
o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey] && (a = {
|
|
6061
|
+
...a,
|
|
6062
6062
|
[o.interpolationkey]: void 0
|
|
6063
6063
|
});
|
|
6064
|
-
const
|
|
6065
|
-
let l = e[
|
|
6066
|
-
return l || (l = n(Fe(r), o), e[
|
|
6064
|
+
const i = r + JSON.stringify(a);
|
|
6065
|
+
let l = e[i];
|
|
6066
|
+
return l || (l = n(Fe(r), o), e[i] = l), l(t);
|
|
6067
6067
|
};
|
|
6068
|
-
},
|
|
6069
|
-
class
|
|
6068
|
+
}, Ia = (n) => (e, t, r) => n(Fe(t), r)(e);
|
|
6069
|
+
class Ta {
|
|
6070
6070
|
constructor(e = {}) {
|
|
6071
6071
|
this.logger = le.create("formatter"), this.options = e, this.init(e);
|
|
6072
6072
|
}
|
|
@@ -6074,38 +6074,38 @@ class Ti {
|
|
|
6074
6074
|
interpolation: {}
|
|
6075
6075
|
}) {
|
|
6076
6076
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
6077
|
-
const r = t.cacheInBuiltFormats ? Yt :
|
|
6077
|
+
const r = t.cacheInBuiltFormats ? Yt : Ia;
|
|
6078
6078
|
this.formats = {
|
|
6079
|
-
number: r((o,
|
|
6080
|
-
const
|
|
6081
|
-
...
|
|
6079
|
+
number: r((o, a) => {
|
|
6080
|
+
const i = new Intl.NumberFormat(o, {
|
|
6081
|
+
...a
|
|
6082
6082
|
});
|
|
6083
|
-
return (l) =>
|
|
6083
|
+
return (l) => i.format(l);
|
|
6084
6084
|
}),
|
|
6085
|
-
currency: r((o,
|
|
6086
|
-
const
|
|
6087
|
-
...
|
|
6085
|
+
currency: r((o, a) => {
|
|
6086
|
+
const i = new Intl.NumberFormat(o, {
|
|
6087
|
+
...a,
|
|
6088
6088
|
style: "currency"
|
|
6089
6089
|
});
|
|
6090
|
-
return (l) =>
|
|
6090
|
+
return (l) => i.format(l);
|
|
6091
6091
|
}),
|
|
6092
|
-
datetime: r((o,
|
|
6093
|
-
const
|
|
6094
|
-
...
|
|
6092
|
+
datetime: r((o, a) => {
|
|
6093
|
+
const i = new Intl.DateTimeFormat(o, {
|
|
6094
|
+
...a
|
|
6095
6095
|
});
|
|
6096
|
-
return (l) =>
|
|
6096
|
+
return (l) => i.format(l);
|
|
6097
6097
|
}),
|
|
6098
|
-
relativetime: r((o,
|
|
6099
|
-
const
|
|
6100
|
-
...
|
|
6098
|
+
relativetime: r((o, a) => {
|
|
6099
|
+
const i = new Intl.RelativeTimeFormat(o, {
|
|
6100
|
+
...a
|
|
6101
6101
|
});
|
|
6102
|
-
return (l) =>
|
|
6102
|
+
return (l) => i.format(l, a.range || "day");
|
|
6103
6103
|
}),
|
|
6104
|
-
list: r((o,
|
|
6105
|
-
const
|
|
6106
|
-
...
|
|
6104
|
+
list: r((o, a) => {
|
|
6105
|
+
const i = new Intl.ListFormat(o, {
|
|
6106
|
+
...a
|
|
6107
6107
|
});
|
|
6108
|
-
return (l) =>
|
|
6108
|
+
return (l) => i.format(l);
|
|
6109
6109
|
})
|
|
6110
6110
|
};
|
|
6111
6111
|
}
|
|
@@ -6117,17 +6117,17 @@ class Ti {
|
|
|
6117
6117
|
}
|
|
6118
6118
|
format(e, t, r, o = {}) {
|
|
6119
6119
|
if (!t || e == null) return e;
|
|
6120
|
-
const
|
|
6121
|
-
if (
|
|
6122
|
-
const l =
|
|
6123
|
-
|
|
6120
|
+
const a = t.split(this.formatSeparator);
|
|
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
|
|
6125
|
+
return a.reduce((l, d) => {
|
|
6126
6126
|
var p;
|
|
6127
6127
|
const {
|
|
6128
6128
|
formatName: c,
|
|
6129
6129
|
formatOptions: u
|
|
6130
|
-
} =
|
|
6130
|
+
} = Ea(d);
|
|
6131
6131
|
if (this.formats[c]) {
|
|
6132
6132
|
let g = l;
|
|
6133
6133
|
try {
|
|
@@ -6147,43 +6147,43 @@ class Ti {
|
|
|
6147
6147
|
}, e);
|
|
6148
6148
|
}
|
|
6149
6149
|
}
|
|
6150
|
-
const
|
|
6150
|
+
const za = (n, e) => {
|
|
6151
6151
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
6152
6152
|
};
|
|
6153
|
-
class
|
|
6153
|
+
class Ma extends rt {
|
|
6154
6154
|
constructor(e, t, r, o = {}) {
|
|
6155
|
-
var
|
|
6156
|
-
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = o, this.logger = le.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], (
|
|
6155
|
+
var a, i;
|
|
6156
|
+
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = o, this.logger = le.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, r, o.backend, o);
|
|
6157
6157
|
}
|
|
6158
6158
|
queueLoad(e, t, r, o) {
|
|
6159
|
-
const
|
|
6159
|
+
const a = {}, i = {}, 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
|
-
!r.reload && this.store.hasResourceBundle(c, p) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ?
|
|
6164
|
+
!r.reload && this.store.hasResourceBundle(c, p) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? i[g] === void 0 && (i[g] = !0) : (this.state[g] = 1, u = !1, i[g] === void 0 && (i[g] = !0), a[g] === void 0 && (a[g] = !0), d[p] === void 0 && (d[p] = !0)));
|
|
6165
6165
|
}), u || (l[c] = !0);
|
|
6166
|
-
}), (Object.keys(
|
|
6167
|
-
pending:
|
|
6168
|
-
pendingCount: Object.keys(
|
|
6166
|
+
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
6167
|
+
pending: i,
|
|
6168
|
+
pendingCount: Object.keys(i).length,
|
|
6169
6169
|
loaded: {},
|
|
6170
6170
|
errors: [],
|
|
6171
6171
|
callback: o
|
|
6172
6172
|
}), {
|
|
6173
|
-
toLoad: Object.keys(
|
|
6174
|
-
pending: Object.keys(
|
|
6173
|
+
toLoad: Object.keys(a),
|
|
6174
|
+
pending: Object.keys(i),
|
|
6175
6175
|
toLoadLanguages: Object.keys(l),
|
|
6176
6176
|
toLoadNamespaces: Object.keys(d)
|
|
6177
6177
|
};
|
|
6178
6178
|
}
|
|
6179
6179
|
loaded(e, t, r) {
|
|
6180
|
-
const o = e.split("|"),
|
|
6181
|
-
t && this.emit("failedLoading",
|
|
6180
|
+
const o = e.split("|"), a = o[0], i = o[1];
|
|
6181
|
+
t && this.emit("failedLoading", a, i, t), !t && r && this.store.addResourceBundle(a, i, r, void 0, void 0, {
|
|
6182
6182
|
skipCopy: !0
|
|
6183
6183
|
}), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
|
|
6184
6184
|
const l = {};
|
|
6185
6185
|
this.queue.forEach((d) => {
|
|
6186
|
-
|
|
6186
|
+
ba(d.loaded, [a], i), za(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) => {
|
|
@@ -6192,16 +6192,16 @@ class Mi extends rt {
|
|
|
6192
6192
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
6193
6193
|
}), this.emit("loaded", l), this.queue = this.queue.filter((d) => !d.done);
|
|
6194
6194
|
}
|
|
6195
|
-
read(e, t, r, o = 0,
|
|
6196
|
-
if (!e.length) return
|
|
6195
|
+
read(e, t, r, o = 0, a = this.retryTimeout, i) {
|
|
6196
|
+
if (!e.length) return i(null, {});
|
|
6197
6197
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
6198
6198
|
this.waitingReads.push({
|
|
6199
6199
|
lng: e,
|
|
6200
6200
|
ns: t,
|
|
6201
6201
|
fcName: r,
|
|
6202
6202
|
tried: o,
|
|
6203
|
-
wait:
|
|
6204
|
-
callback:
|
|
6203
|
+
wait: a,
|
|
6204
|
+
callback: i
|
|
6205
6205
|
});
|
|
6206
6206
|
return;
|
|
6207
6207
|
}
|
|
@@ -6213,11 +6213,11 @@ class Mi extends rt {
|
|
|
6213
6213
|
}
|
|
6214
6214
|
if (c && u && o < this.maxRetries) {
|
|
6215
6215
|
setTimeout(() => {
|
|
6216
|
-
this.read(e, t, r, o + 1,
|
|
6217
|
-
},
|
|
6216
|
+
this.read(e, t, r, o + 1, a * 2, i);
|
|
6217
|
+
}, a);
|
|
6218
6218
|
return;
|
|
6219
6219
|
}
|
|
6220
|
-
|
|
6220
|
+
i(c, u);
|
|
6221
6221
|
}, d = this.backend[r].bind(this.backend);
|
|
6222
6222
|
if (d.length === 2) {
|
|
6223
6223
|
try {
|
|
@@ -6234,11 +6234,11 @@ class Mi extends rt {
|
|
|
6234
6234
|
if (!this.backend)
|
|
6235
6235
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), o && o();
|
|
6236
6236
|
R(e) && (e = this.languageUtils.toResolveHierarchy(e)), R(t) && (t = [t]);
|
|
6237
|
-
const
|
|
6238
|
-
if (!
|
|
6239
|
-
return
|
|
6240
|
-
|
|
6241
|
-
this.loadOne(
|
|
6237
|
+
const a = this.queueLoad(e, t, r, o);
|
|
6238
|
+
if (!a.toLoad.length)
|
|
6239
|
+
return a.pending.length || o(), null;
|
|
6240
|
+
a.toLoad.forEach((i) => {
|
|
6241
|
+
this.loadOne(i);
|
|
6242
6242
|
});
|
|
6243
6243
|
}
|
|
6244
6244
|
load(e, t, r) {
|
|
@@ -6250,12 +6250,12 @@ class Mi extends rt {
|
|
|
6250
6250
|
}, r);
|
|
6251
6251
|
}
|
|
6252
6252
|
loadOne(e, t = "") {
|
|
6253
|
-
const r = e.split("|"), o = r[0],
|
|
6254
|
-
this.read(o,
|
|
6255
|
-
|
|
6253
|
+
const r = e.split("|"), o = r[0], a = r[1];
|
|
6254
|
+
this.read(o, a, "read", void 0, void 0, (i, l) => {
|
|
6255
|
+
i && this.logger.warn(`${t}loading namespace ${a} for language ${o} failed`, i), !i && l && this.logger.log(`${t}loaded namespace ${a} for language ${o}`, l), this.loaded(e, i, l);
|
|
6256
6256
|
});
|
|
6257
6257
|
}
|
|
6258
|
-
saveMissing(e, t, r, o,
|
|
6258
|
+
saveMissing(e, t, r, o, a, i = {}, 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))) {
|
|
@@ -6265,8 +6265,8 @@ class Mi extends rt {
|
|
|
6265
6265
|
if (!(r == null || r === "")) {
|
|
6266
6266
|
if ((g = this.backend) != null && g.create) {
|
|
6267
6267
|
const f = {
|
|
6268
|
-
...
|
|
6269
|
-
isUpdate:
|
|
6268
|
+
...i,
|
|
6269
|
+
isUpdate: a
|
|
6270
6270
|
}, h = this.backend.create.bind(this.backend);
|
|
6271
6271
|
if (h.length < 6)
|
|
6272
6272
|
try {
|
|
@@ -6282,7 +6282,7 @@ class Mi extends rt {
|
|
|
6282
6282
|
}
|
|
6283
6283
|
}
|
|
6284
6284
|
}
|
|
6285
|
-
const
|
|
6285
|
+
const it = () => ({
|
|
6286
6286
|
debug: !1,
|
|
6287
6287
|
initAsync: !0,
|
|
6288
6288
|
ns: ["translation"],
|
|
@@ -6338,7 +6338,7 @@ const at = () => ({
|
|
|
6338
6338
|
},
|
|
6339
6339
|
cacheInBuiltFormats: !0
|
|
6340
6340
|
}), Kt = (n) => (R(n.ns) && (n.ns = [n.ns]), R(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), R(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs && !n.supportedLngs.includes("cimode") && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), n), Ue = () => {
|
|
6341
|
-
},
|
|
6341
|
+
}, Pa = (n) => {
|
|
6342
6342
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
6343
6343
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
6344
6344
|
});
|
|
@@ -6347,7 +6347,7 @@ class Ne extends rt {
|
|
|
6347
6347
|
constructor(e = {}, t) {
|
|
6348
6348
|
if (super(), this.options = Kt(e), this.services = {}, this.logger = le, this.modules = {
|
|
6349
6349
|
external: []
|
|
6350
|
-
},
|
|
6350
|
+
}, Pa(this), t && !this.isInitialized && !e.isClone) {
|
|
6351
6351
|
if (!this.options.initAsync)
|
|
6352
6352
|
return this.init(e, t), this;
|
|
6353
6353
|
setTimeout(() => {
|
|
@@ -6357,7 +6357,7 @@ class Ne extends rt {
|
|
|
6357
6357
|
}
|
|
6358
6358
|
init(e = {}, t) {
|
|
6359
6359
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (R(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
|
|
6360
|
-
const r =
|
|
6360
|
+
const r = it();
|
|
6361
6361
|
this.options = {
|
|
6362
6362
|
...r,
|
|
6363
6363
|
...this.options,
|
|
@@ -6370,15 +6370,15 @@ class Ne extends rt {
|
|
|
6370
6370
|
if (!this.options.isClone) {
|
|
6371
6371
|
this.modules.logger ? le.init(o(this.modules.logger), this.options) : le.init(null, this.options);
|
|
6372
6372
|
let c;
|
|
6373
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
6373
|
+
this.modules.formatter ? c = this.modules.formatter : c = Ta;
|
|
6374
6374
|
const u = new Bt(this.options);
|
|
6375
6375
|
this.store = new jt(this.options.resources, this.options);
|
|
6376
6376
|
const p = this.services;
|
|
6377
|
-
p.logger = le, p.resourceStore = this.store, p.languageUtils = u, p.pluralResolver = new
|
|
6377
|
+
p.logger = le, p.resourceStore = this.store, p.languageUtils = u, p.pluralResolver = new Oa(u, {
|
|
6378
6378
|
prepend: this.options.pluralSeparator
|
|
6379
6379
|
}), c && (p.formatter = o(c), p.formatter.init && p.formatter.init(p, this.options), this.options.interpolation.format = p.formatter.format.bind(p.formatter)), p.interpolator = new Wt(this.options), p.utils = {
|
|
6380
6380
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
6381
|
-
}, p.backendConnector = new
|
|
6381
|
+
}, p.backendConnector = new Ma(o(this.modules.backend), p.resourceStore, p, this.options), p.backendConnector.on("*", (g, ...f) => {
|
|
6382
6382
|
this.emit(g, ...f);
|
|
6383
6383
|
}), this.modules.languageDetector && (p.languageDetector = o(this.modules.languageDetector), p.languageDetector.init && p.languageDetector.init(p, this.options.detection, this.options)), this.modules.i18nFormat && (p.i18nFormat = o(this.modules.i18nFormat), p.i18nFormat.init && p.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", (g, ...f) => {
|
|
6384
6384
|
this.emit(g, ...f);
|
|
@@ -6405,7 +6405,7 @@ class Ne extends rt {
|
|
|
6405
6405
|
return this.options.resources || !this.options.initAsync ? d() : setTimeout(d, 0), l;
|
|
6406
6406
|
}
|
|
6407
6407
|
loadResources(e, t = Ue) {
|
|
6408
|
-
var
|
|
6408
|
+
var a, i;
|
|
6409
6409
|
let r = t;
|
|
6410
6410
|
const o = R(e) ? e : this.language;
|
|
6411
6411
|
if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
@@ -6416,7 +6416,7 @@ class Ne extends rt {
|
|
|
6416
6416
|
p !== "cimode" && (l.includes(p) || l.push(p));
|
|
6417
6417
|
});
|
|
6418
6418
|
};
|
|
6419
|
-
o ? d(o) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => d(u)), (
|
|
6419
|
+
o ? d(o) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => d(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.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
|
|
@@ -6424,8 +6424,8 @@ class Ne extends rt {
|
|
|
6424
6424
|
}
|
|
6425
6425
|
reloadResources(e, t, r) {
|
|
6426
6426
|
const o = Me();
|
|
6427
|
-
return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Ue), this.services.backendConnector.reload(e, t, (
|
|
6428
|
-
o.resolve(), r(
|
|
6427
|
+
return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Ue), this.services.backendConnector.reload(e, t, (a) => {
|
|
6428
|
+
o.resolve(), r(a);
|
|
6429
6429
|
}), o;
|
|
6430
6430
|
}
|
|
6431
6431
|
use(e) {
|
|
@@ -6451,23 +6451,23 @@ class Ne extends rt {
|
|
|
6451
6451
|
this.emit("languageChanging", e);
|
|
6452
6452
|
const o = (l) => {
|
|
6453
6453
|
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
6454
|
-
},
|
|
6454
|
+
}, a = (l, d) => {
|
|
6455
6455
|
d ? this.isLanguageChangingTo === e && (o(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
|
-
},
|
|
6456
|
+
}, i = (l) => {
|
|
6457
6457
|
var u, p;
|
|
6458
6458
|
!e && !l && this.services.languageDetector && (l = []);
|
|
6459
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 || o(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
|
});
|
|
6463
6463
|
};
|
|
6464
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
6464
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), r;
|
|
6465
6465
|
}
|
|
6466
6466
|
getFixedT(e, t, r) {
|
|
6467
|
-
const o = (
|
|
6467
|
+
const o = (a, i, ...l) => {
|
|
6468
6468
|
let d;
|
|
6469
|
-
typeof
|
|
6470
|
-
...
|
|
6469
|
+
typeof i != "object" ? d = this.options.overloadTranslationOptionHandler([a, i].concat(l)) : d = {
|
|
6470
|
+
...i
|
|
6471
6471
|
}, d.lng = d.lng || o.lng, d.lngs = d.lngs || o.lngs, d.ns = d.ns || o.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || r || o.keyPrefix);
|
|
6472
6472
|
const c = {
|
|
6473
6473
|
...this.options,
|
|
@@ -6476,7 +6476,7 @@ class Ne extends rt {
|
|
|
6476
6476
|
typeof d.keyPrefix == "function" && (d.keyPrefix = Le(d.keyPrefix, c));
|
|
6477
6477
|
const u = this.options.keySeparator || ".";
|
|
6478
6478
|
let p;
|
|
6479
|
-
return d.keyPrefix && Array.isArray(
|
|
6479
|
+
return d.keyPrefix && Array.isArray(a) ? p = a.map((g) => (typeof g == "function" && (g = Le(g, c)), `${d.keyPrefix}${u}${g}`)) : (typeof a == "function" && (a = Le(a, c)), p = d.keyPrefix ? `${d.keyPrefix}${u}${a}` : a), this.t(p, d);
|
|
6480
6480
|
};
|
|
6481
6481
|
return R(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = r, o;
|
|
6482
6482
|
}
|
|
@@ -6496,17 +6496,17 @@ class Ne extends rt {
|
|
|
6496
6496
|
return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
|
|
6497
6497
|
if (!this.languages || !this.languages.length)
|
|
6498
6498
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
6499
|
-
const r = t.lng || this.resolvedLanguage || this.languages[0], o = this.options ? this.options.fallbackLng : !1,
|
|
6499
|
+
const r = t.lng || this.resolvedLanguage || this.languages[0], o = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
6500
6500
|
if (r.toLowerCase() === "cimode") return !0;
|
|
6501
|
-
const
|
|
6501
|
+
const i = (l, d) => {
|
|
6502
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 l = t.precheck(this,
|
|
6506
|
+
const l = t.precheck(this, i);
|
|
6507
6507
|
if (l !== void 0) return l;
|
|
6508
6508
|
}
|
|
6509
|
-
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages ||
|
|
6509
|
+
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || i(r, e) && (!o || i(a, e)));
|
|
6510
6510
|
}
|
|
6511
6511
|
loadNamespaces(e, t) {
|
|
6512
6512
|
const r = Me();
|
|
@@ -6519,23 +6519,23 @@ class Ne extends rt {
|
|
|
6519
6519
|
loadLanguages(e, t) {
|
|
6520
6520
|
const r = Me();
|
|
6521
6521
|
R(e) && (e = [e]);
|
|
6522
|
-
const o = this.options.preload || [],
|
|
6523
|
-
return
|
|
6524
|
-
r.resolve(), t && t(
|
|
6522
|
+
const o = this.options.preload || [], a = e.filter((i) => !o.includes(i) && this.services.languageUtils.isSupportedCode(i));
|
|
6523
|
+
return a.length ? (this.options.preload = o.concat(a), this.loadResources((i) => {
|
|
6524
|
+
r.resolve(), t && t(i);
|
|
6525
6525
|
}), r) : (t && t(), Promise.resolve());
|
|
6526
6526
|
}
|
|
6527
6527
|
dir(e) {
|
|
6528
|
-
var o,
|
|
6528
|
+
var o, a;
|
|
6529
6529
|
if (e || (e = this.resolvedLanguage || (((o = this.languages) == null ? void 0 : o.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
6530
6530
|
try {
|
|
6531
|
-
const
|
|
6532
|
-
if (
|
|
6533
|
-
const l =
|
|
6531
|
+
const i = new Intl.Locale(e);
|
|
6532
|
+
if (i && i.getTextInfo) {
|
|
6533
|
+
const l = i.getTextInfo();
|
|
6534
6534
|
if (l && l.direction) return l.direction;
|
|
6535
6535
|
}
|
|
6536
6536
|
} catch {
|
|
6537
6537
|
}
|
|
6538
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = ((
|
|
6538
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = ((a = this.services) == null ? void 0 : a.languageUtils) || new Bt(it());
|
|
6539
6539
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.includes(r.getLanguagePartFromCode(e)) || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
6540
6540
|
}
|
|
6541
6541
|
static createInstance(e = {}, t) {
|
|
@@ -6549,37 +6549,37 @@ class Ne extends rt {
|
|
|
6549
6549
|
...this.options,
|
|
6550
6550
|
...e,
|
|
6551
6551
|
isClone: !0
|
|
6552
|
-
},
|
|
6553
|
-
if ((e.debug !== void 0 || e.prefix !== void 0) && (
|
|
6554
|
-
|
|
6555
|
-
}),
|
|
6552
|
+
}, a = new Ne(o);
|
|
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
|
+
}), a.services = {
|
|
6556
6556
|
...this.services
|
|
6557
|
-
},
|
|
6558
|
-
hasLoadedNamespace:
|
|
6557
|
+
}, a.services.utils = {
|
|
6558
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
6559
6559
|
}, r) {
|
|
6560
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
|
-
|
|
6565
|
+
a.store = new jt(l, o), a.services.resourceStore = a.store;
|
|
6566
6566
|
}
|
|
6567
6567
|
if (e.interpolation) {
|
|
6568
6568
|
const d = {
|
|
6569
|
-
...
|
|
6569
|
+
...it().interpolation,
|
|
6570
6570
|
...this.options.interpolation,
|
|
6571
6571
|
...e.interpolation
|
|
6572
6572
|
}, c = {
|
|
6573
6573
|
...o,
|
|
6574
6574
|
interpolation: d
|
|
6575
6575
|
};
|
|
6576
|
-
|
|
6576
|
+
a.services.interpolator = new Wt(c);
|
|
6577
6577
|
}
|
|
6578
|
-
return
|
|
6579
|
-
|
|
6580
|
-
}),
|
|
6581
|
-
hasLoadedNamespace:
|
|
6582
|
-
},
|
|
6578
|
+
return a.translator = new Qe(a.services, o), a.translator.on("*", (l, ...d) => {
|
|
6579
|
+
a.emit(l, ...d);
|
|
6580
|
+
}), a.init(o, t), a.translator.options = o, a.translator.backendConnector.services.utils = {
|
|
6581
|
+
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
6582
|
+
}, a;
|
|
6583
6583
|
}
|
|
6584
6584
|
toJSON() {
|
|
6585
6585
|
return {
|
|
@@ -6620,16 +6620,16 @@ X.use(Ur).use(Gr).use(Ar).init({
|
|
|
6620
6620
|
},
|
|
6621
6621
|
interpolation: { escapeValue: !1 }
|
|
6622
6622
|
});
|
|
6623
|
-
function
|
|
6623
|
+
function Ha(n) {
|
|
6624
6624
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
6625
6625
|
}
|
|
6626
|
-
var _e = { exports: {} },
|
|
6627
|
-
function
|
|
6626
|
+
var _e = { exports: {} }, Ra = _e.exports, Zt;
|
|
6627
|
+
function Na() {
|
|
6628
6628
|
return Zt || (Zt = 1, (function(n, e) {
|
|
6629
6629
|
(function(t, r) {
|
|
6630
6630
|
n.exports = r();
|
|
6631
|
-
})(
|
|
6632
|
-
var t = 1e3, r = 6e4, o = 36e5,
|
|
6631
|
+
})(Ra, (function() {
|
|
6632
|
+
var t = 1e3, r = 6e4, o = 36e5, a = "millisecond", i = "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"], v = L % 100;
|
|
6634
6634
|
return "[" + L + (k[(v - 20) % 10] || k[v] || k[0]) + "]";
|
|
6635
6635
|
} }, $ = function(L, k, v) {
|
|
@@ -6645,7 +6645,7 @@ function Ni() {
|
|
|
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: l, s:
|
|
6648
|
+
return { M: p, y: f, w: u, d: c, D: h, h: d, m: l, s: i, 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", G = {};
|
|
@@ -6735,7 +6735,7 @@ function Ni() {
|
|
|
6735
6735
|
return U(ce + "Minutes", 1);
|
|
6736
6736
|
case l:
|
|
6737
6737
|
return U(ce + "Seconds", 2);
|
|
6738
|
-
case
|
|
6738
|
+
case i:
|
|
6739
6739
|
return U(ce + "Milliseconds", 3);
|
|
6740
6740
|
default:
|
|
6741
6741
|
return this.clone();
|
|
@@ -6743,7 +6743,7 @@ function Ni() {
|
|
|
6743
6743
|
}, k.endOf = function(v) {
|
|
6744
6744
|
return this.startOf(v, !1);
|
|
6745
6745
|
}, k.$set = function(v, b) {
|
|
6746
|
-
var x, E = w.p(v), 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[
|
|
6746
|
+
var x, E = w.p(v), 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[i] = M + "Seconds", x[a] = M + "Milliseconds", x)[E], U = E === c ? this.$D + (b - this.$W) : b;
|
|
6747
6747
|
if (E === p || E === f) {
|
|
6748
6748
|
var W = this.clone().set(h, 1);
|
|
6749
6749
|
W.$d[F](U), W.init(), this.$d = W.set(h, Math.min(this.$D, W.daysInMonth())).$d;
|
|
@@ -6764,7 +6764,7 @@ function Ni() {
|
|
|
6764
6764
|
if (M === f) return this.set(f, this.$y + v);
|
|
6765
6765
|
if (M === c) return F(1);
|
|
6766
6766
|
if (M === u) return F(7);
|
|
6767
|
-
var U = (x = {}, x[l] = r, x[d] = o, x[
|
|
6767
|
+
var U = (x = {}, x[l] = r, x[d] = o, x[i] = t, x)[M] || 1, W = this.$d.getTime() + v * U;
|
|
6768
6768
|
return w.w(W, this);
|
|
6769
6769
|
}, k.subtract = function(v, b) {
|
|
6770
6770
|
return this.add(-1 * v, b);
|
|
@@ -6862,7 +6862,7 @@ function Ni() {
|
|
|
6862
6862
|
case l:
|
|
6863
6863
|
E = q / r;
|
|
6864
6864
|
break;
|
|
6865
|
-
case
|
|
6865
|
+
case i:
|
|
6866
6866
|
E = q / t;
|
|
6867
6867
|
break;
|
|
6868
6868
|
default:
|
|
@@ -6889,7 +6889,7 @@ function Ni() {
|
|
|
6889
6889
|
return this.$d.toUTCString();
|
|
6890
6890
|
}, L;
|
|
6891
6891
|
})(), P = N.prototype;
|
|
6892
|
-
return O.prototype = P, [["$ms",
|
|
6892
|
+
return O.prototype = P, [["$ms", a], ["$s", i], ["$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
|
};
|
|
@@ -6901,18 +6901,18 @@ function Ni() {
|
|
|
6901
6901
|
}));
|
|
6902
6902
|
})(_e)), _e.exports;
|
|
6903
6903
|
}
|
|
6904
|
-
var
|
|
6905
|
-
const $r = /* @__PURE__ */
|
|
6906
|
-
const r = (
|
|
6907
|
-
if (
|
|
6908
|
-
const l = ne.toISODateString(
|
|
6904
|
+
var Fa = Na();
|
|
6905
|
+
const $r = /* @__PURE__ */ Ha(Fa), Va = ({ setDateFilter: n, setShowRange: e, setDates: t }) => {
|
|
6906
|
+
const r = (i) => i && i > $r().endOf("day"), o = (i) => {
|
|
6907
|
+
if (i && i[0] && i[1]) {
|
|
6908
|
+
const l = ne.toISODateString(i[0].toDate()), d = ne.toISODateString(i[1].toDate());
|
|
6909
6909
|
t([l, d]), n((c) => ({
|
|
6910
6910
|
...c,
|
|
6911
6911
|
startDate: l,
|
|
6912
6912
|
endDate: d
|
|
6913
6913
|
})), e(!1);
|
|
6914
6914
|
}
|
|
6915
|
-
},
|
|
6915
|
+
}, a = {
|
|
6916
6916
|
lang: {
|
|
6917
6917
|
locale: X.language,
|
|
6918
6918
|
shortMonths: [
|
|
@@ -6944,30 +6944,30 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
6944
6944
|
dr,
|
|
6945
6945
|
{
|
|
6946
6946
|
dropdownClassName: "date-picker-column-style",
|
|
6947
|
-
locale:
|
|
6947
|
+
locale: a,
|
|
6948
6948
|
open: !0,
|
|
6949
6949
|
allowClear: !0,
|
|
6950
6950
|
format: "MMM D, YYYY",
|
|
6951
6951
|
placeholder: ["From", "To"],
|
|
6952
|
-
getPopupContainer: (
|
|
6952
|
+
getPopupContainer: (i) => {
|
|
6953
6953
|
var l;
|
|
6954
|
-
return ((l =
|
|
6954
|
+
return ((l = i == null ? void 0 : i.parentElement) == null ? void 0 : l.parentElement) ?? document.body;
|
|
6955
6955
|
},
|
|
6956
|
-
onOpenChange: (
|
|
6957
|
-
|
|
6956
|
+
onOpenChange: (i) => {
|
|
6957
|
+
i || e(!1);
|
|
6958
6958
|
},
|
|
6959
|
-
onChange: (
|
|
6959
|
+
onChange: (i) => o(i),
|
|
6960
6960
|
disabledDate: r
|
|
6961
6961
|
}
|
|
6962
6962
|
);
|
|
6963
|
-
},
|
|
6963
|
+
}, Aa = m(Qn)`
|
|
6964
6964
|
border: ${(n) => n.border || "1px solid transparent"};
|
|
6965
6965
|
.ant-select-dropdown {
|
|
6966
6966
|
max-height: 200px;
|
|
6967
6967
|
overflow-y: auto;
|
|
6968
6968
|
}
|
|
6969
6969
|
width: ${(n) => n.width || "auto"};
|
|
6970
|
-
`, $
|
|
6970
|
+
`, $i = ({
|
|
6971
6971
|
setDateFilters: n,
|
|
6972
6972
|
hasAllFilter: e = !1
|
|
6973
6973
|
}) => {
|
|
@@ -6987,15 +6987,15 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
6987
6987
|
label: t.length === 2 && t[0] !== "" ? `${B("Custom")}: ${t[0]} / ${t[1]}` : B("Custom"),
|
|
6988
6988
|
...ne.getCommonDateRange("custom")
|
|
6989
6989
|
}
|
|
6990
|
-
], [
|
|
6990
|
+
], [a, i] = j(), l = Ce(() => e ? [
|
|
6991
6991
|
{ key: "all", label: B("All"), ...ne.getCommonDateRange("all") },
|
|
6992
6992
|
...o
|
|
6993
6993
|
] : o, [e, t]);
|
|
6994
6994
|
function d(c) {
|
|
6995
6995
|
if (c === "custom")
|
|
6996
|
-
|
|
6996
|
+
i(!0);
|
|
6997
6997
|
else {
|
|
6998
|
-
|
|
6998
|
+
i(!1);
|
|
6999
6999
|
const u = l.find((p) => p.key === c);
|
|
7000
7000
|
u && n((p) => ({
|
|
7001
7001
|
...p,
|
|
@@ -7005,29 +7005,29 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7005
7005
|
}
|
|
7006
7006
|
return c;
|
|
7007
7007
|
}
|
|
7008
|
-
return /* @__PURE__ */ y(
|
|
7008
|
+
return /* @__PURE__ */ y(ha, { id: "tabs-container", children: [
|
|
7009
7009
|
/* @__PURE__ */ s(
|
|
7010
|
-
|
|
7010
|
+
fa,
|
|
7011
7011
|
{
|
|
7012
7012
|
type: "editable-card",
|
|
7013
7013
|
items: l,
|
|
7014
7014
|
onTabClick: d,
|
|
7015
|
-
activeKey:
|
|
7015
|
+
activeKey: a ? "custom" : void 0,
|
|
7016
7016
|
removeIcon: !0,
|
|
7017
7017
|
hideAdd: !0
|
|
7018
7018
|
}
|
|
7019
7019
|
),
|
|
7020
|
-
|
|
7021
|
-
|
|
7020
|
+
a && /* @__PURE__ */ s(ga, { children: /* @__PURE__ */ s(
|
|
7021
|
+
Va,
|
|
7022
7022
|
{
|
|
7023
7023
|
setDates: r,
|
|
7024
7024
|
setDateFilter: n,
|
|
7025
|
-
setShowRange:
|
|
7025
|
+
setShowRange: i,
|
|
7026
7026
|
getPopupContainer: () => document.getElementById("tabs-container")
|
|
7027
7027
|
}
|
|
7028
7028
|
) }),
|
|
7029
7029
|
/* @__PURE__ */ s(
|
|
7030
|
-
|
|
7030
|
+
Aa,
|
|
7031
7031
|
{
|
|
7032
7032
|
border: "1px solid var(--color-border-brand-special, #02e0ae)",
|
|
7033
7033
|
className: "tab-select",
|
|
@@ -7068,13 +7068,13 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7068
7068
|
padding: 8px 12px; /* აქ დაარეგულირე შიდა დაშორება */
|
|
7069
7069
|
display: block;
|
|
7070
7070
|
}
|
|
7071
|
-
`,
|
|
7071
|
+
`, ja = (n, e) => {
|
|
7072
7072
|
const t = window.URL.createObjectURL(n), r = document.createElement("a");
|
|
7073
7073
|
r.href = t, r.setAttribute("download", e), document.body.appendChild(r), r.click(), document.body.removeChild(r), window.URL.revokeObjectURL(t);
|
|
7074
|
-
},
|
|
7074
|
+
}, Ba = (n, e) => {
|
|
7075
7075
|
const t = new Blob([n], { type: "text/csv;charset=utf-8;" }), r = window.URL.createObjectURL(t), o = document.createElement("a");
|
|
7076
7076
|
o.href = r, o.setAttribute("download", e), document.body.appendChild(o), o.click(), document.body.removeChild(o), window.URL.revokeObjectURL(r);
|
|
7077
|
-
},
|
|
7077
|
+
}, Ga = m(xe)`
|
|
7078
7078
|
background: var(--color-bg-secondary, #f0ededff) !important;
|
|
7079
7079
|
font-size: 14px;
|
|
7080
7080
|
font-weight: 500;
|
|
@@ -7088,19 +7088,19 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7088
7088
|
font-weight: 500;
|
|
7089
7089
|
color: var(--color-text-primary, #000000ff) !important;
|
|
7090
7090
|
}
|
|
7091
|
-
`,
|
|
7091
|
+
`, Ua = m.div`
|
|
7092
7092
|
background-color: red;
|
|
7093
7093
|
padding: 5px;
|
|
7094
7094
|
background: var(--color-bg-opaque-primary, rgba(255, 255, 255, 0.05));
|
|
7095
7095
|
color: var(--color-text-primary, #fff);
|
|
7096
7096
|
cursor: pointer;
|
|
7097
|
-
`,
|
|
7098
|
-
const r = async (
|
|
7097
|
+
`, Di = ({ exportFileName: n, filters: e, service: t }) => {
|
|
7098
|
+
const r = async (a) => {
|
|
7099
7099
|
try {
|
|
7100
|
-
const { PageSize:
|
|
7101
|
-
|
|
7102
|
-
} catch (
|
|
7103
|
-
console.error("Export failed:",
|
|
7100
|
+
const { PageSize: i, Page: l, ...d } = e, u = (await t(d, a)).data;
|
|
7101
|
+
a === "xlsx" ? ja(u, `${n}.${a}`) : Ba(u, `${n}`);
|
|
7102
|
+
} catch (i) {
|
|
7103
|
+
console.error("Export failed:", i);
|
|
7104
7104
|
}
|
|
7105
7105
|
}, o = [
|
|
7106
7106
|
{
|
|
@@ -7115,27 +7115,27 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7115
7115
|
}
|
|
7116
7116
|
];
|
|
7117
7117
|
return /* @__PURE__ */ s(
|
|
7118
|
-
|
|
7118
|
+
Ga,
|
|
7119
7119
|
{
|
|
7120
7120
|
menu: {
|
|
7121
7121
|
items: o,
|
|
7122
7122
|
className: "dropdown-menu"
|
|
7123
7123
|
},
|
|
7124
|
-
popupRender: (
|
|
7124
|
+
popupRender: (a) => /* @__PURE__ */ s(Dr, { children: a }),
|
|
7125
7125
|
placement: "bottomLeft",
|
|
7126
|
-
children: /* @__PURE__ */ s(
|
|
7126
|
+
children: /* @__PURE__ */ s(Ua, { children: B("Export") })
|
|
7127
7127
|
}
|
|
7128
7128
|
);
|
|
7129
|
-
},
|
|
7130
|
-
const r = n.filter((p) => e[p.id]), o = Object.keys(r[0]),
|
|
7129
|
+
}, _a = (n, e, t) => {
|
|
7130
|
+
const r = n.filter((p) => e[p.id]), o = Object.keys(r[0]), a = r.map((p) => o.map((g) => {
|
|
7131
7131
|
const f = p[g];
|
|
7132
7132
|
return f == null ? "" : typeof f == "object" ? Object.values(f).find((C) => typeof C != "object") ?? "" : f;
|
|
7133
|
-
})),
|
|
7133
|
+
})), i = [o, ...a].map(
|
|
7134
7134
|
(p) => p.map((g) => `"${(g || "").toString().replace(/"/g, '""')}"`).join(",")
|
|
7135
7135
|
).join(`\r
|
|
7136
|
-
`), l = "\uFEFF", d = new Blob([l +
|
|
7136
|
+
`), l = "\uFEFF", d = new Blob([l + i], { type: "text/csv;charset=utf-8;" }), c = document.createElement("a"), u = URL.createObjectURL(d);
|
|
7137
7137
|
c.setAttribute("href", u), c.setAttribute("download", t), document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(u);
|
|
7138
|
-
},
|
|
7138
|
+
}, Wa = (n, e, t) => {
|
|
7139
7139
|
const o = n.filter((p) => e[p.id]).map((p) => {
|
|
7140
7140
|
const g = {};
|
|
7141
7141
|
return Object.entries(p).forEach(([f, h]) => {
|
|
@@ -7147,11 +7147,11 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7147
7147
|
} else
|
|
7148
7148
|
g[f] = h;
|
|
7149
7149
|
}), g;
|
|
7150
|
-
}),
|
|
7151
|
-
Ge.utils.book_append_sheet(
|
|
7152
|
-
const l = Ge.write(
|
|
7150
|
+
}), a = Ge.utils.json_to_sheet(o), i = Ge.utils.book_new();
|
|
7151
|
+
Ge.utils.book_append_sheet(i, a, "Data");
|
|
7152
|
+
const l = Ge.write(i, { bookType: "xlsx", type: "array" }), d = new Blob([l], { type: "application/octet-stream" }), c = URL.createObjectURL(d), u = document.createElement("a");
|
|
7153
7153
|
u.href = c, u.download = t, document.body.appendChild(u), u.click(), document.body.removeChild(u), URL.revokeObjectURL(c);
|
|
7154
|
-
},
|
|
7154
|
+
}, Ya = m(xe)`
|
|
7155
7155
|
background: var(--color-bg-secondary, #f0ededff) !important;
|
|
7156
7156
|
font-size: 14px;
|
|
7157
7157
|
font-weight: 500;
|
|
@@ -7165,18 +7165,18 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7165
7165
|
font-weight: 500;
|
|
7166
7166
|
color: var(--color-text-primary, #000000ff) !important;
|
|
7167
7167
|
}
|
|
7168
|
-
`,
|
|
7168
|
+
`, Ka = m.div`
|
|
7169
7169
|
background-color: red;
|
|
7170
7170
|
padding: 5px;
|
|
7171
7171
|
background: var(--color-bg-opaque-primary, rgba(255, 255, 255, 0.05));
|
|
7172
7172
|
color: var(--color-text-primary, #fff);
|
|
7173
7173
|
cursor: pointer;
|
|
7174
|
-
`,
|
|
7175
|
-
const r = async (
|
|
7174
|
+
`, Oi = ({ tableData: n, checked: e, fileName: t }) => {
|
|
7175
|
+
const r = async (a) => {
|
|
7176
7176
|
try {
|
|
7177
|
-
|
|
7178
|
-
} catch (
|
|
7179
|
-
console.error("Export failed:",
|
|
7177
|
+
a === "xlsx" ? Wa(n, e, t + ".xlsx") : _a(n, e, t + ".csv");
|
|
7178
|
+
} catch (i) {
|
|
7179
|
+
console.error("Export failed:", i);
|
|
7180
7180
|
}
|
|
7181
7181
|
}, o = [
|
|
7182
7182
|
{
|
|
@@ -7191,30 +7191,30 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7191
7191
|
}
|
|
7192
7192
|
];
|
|
7193
7193
|
return /* @__PURE__ */ s(
|
|
7194
|
-
|
|
7194
|
+
Ya,
|
|
7195
7195
|
{
|
|
7196
7196
|
menu: {
|
|
7197
7197
|
items: o,
|
|
7198
7198
|
className: "dropdown-menu"
|
|
7199
7199
|
},
|
|
7200
|
-
popupRender: (
|
|
7200
|
+
popupRender: (a) => /* @__PURE__ */ s(Dr, { children: a }),
|
|
7201
7201
|
placement: "bottomLeft",
|
|
7202
|
-
children: /* @__PURE__ */ s(
|
|
7202
|
+
children: /* @__PURE__ */ s(Ka, { children: B("Export") })
|
|
7203
7203
|
}
|
|
7204
7204
|
);
|
|
7205
|
-
},
|
|
7205
|
+
}, Ei = ({ value: n, onChange: e, ...t }) => {
|
|
7206
7206
|
const r = n ? $r(n) : null;
|
|
7207
|
-
return /* @__PURE__ */ s(Xt, { value: r, onChange: (
|
|
7208
|
-
|
|
7207
|
+
return /* @__PURE__ */ s(Xt, { value: r, onChange: (a) => {
|
|
7208
|
+
a ? e == null || e(ne.toISODateString(a.toDate())) : e == null || e(null);
|
|
7209
7209
|
}, allowClear: !0, ...t });
|
|
7210
|
-
},
|
|
7210
|
+
}, Ii = ({
|
|
7211
7211
|
id: n,
|
|
7212
7212
|
refetchFormItems: e,
|
|
7213
7213
|
redirectPrevPage: t,
|
|
7214
7214
|
updateItem: r,
|
|
7215
7215
|
addItem: o,
|
|
7216
|
-
getItemById:
|
|
7217
|
-
onSetFormValues:
|
|
7216
|
+
getItemById: a,
|
|
7217
|
+
onSetFormValues: i
|
|
7218
7218
|
}) => {
|
|
7219
7219
|
const l = Ee(), [d] = ke.useForm(), [c, u] = j(n == "new"), [p, g] = j(null), f = async (C) => {
|
|
7220
7220
|
const I = window.location.pathname, A = I.substring(0, I.lastIndexOf("/"));
|
|
@@ -7234,7 +7234,7 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7234
7234
|
}
|
|
7235
7235
|
}, h = async (C) => {
|
|
7236
7236
|
try {
|
|
7237
|
-
const I = await
|
|
7237
|
+
const I = await a(C), A = i ? i(I.data) : I.data;
|
|
7238
7238
|
g(A), d.setFieldsValue(A);
|
|
7239
7239
|
} catch (I) {
|
|
7240
7240
|
console.log(I, "Error in Form Controller.");
|
|
@@ -7245,26 +7245,26 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7245
7245
|
}, [n, e]), {
|
|
7246
7246
|
form: d,
|
|
7247
7247
|
item: p,
|
|
7248
|
-
getItemById:
|
|
7248
|
+
getItemById: a,
|
|
7249
7249
|
isAddingForm: c,
|
|
7250
7250
|
handleSave: f
|
|
7251
7251
|
};
|
|
7252
|
-
},
|
|
7253
|
-
const [
|
|
7252
|
+
}, Ti = ({ id: n, formItem: e, updateItem: t, addItem: r, getItemById: o }) => {
|
|
7253
|
+
const [a] = ke.useForm(), [i, l] = j(null), d = async (u) => {
|
|
7254
7254
|
try {
|
|
7255
7255
|
let p;
|
|
7256
7256
|
return n ? p = await t({ ...u }) : p = await r(u), p;
|
|
7257
7257
|
} catch (p) {
|
|
7258
7258
|
if (p.status === 400) {
|
|
7259
7259
|
const g = p.response.data, f = De(g.errors);
|
|
7260
|
-
|
|
7260
|
+
a.setFields(f);
|
|
7261
7261
|
}
|
|
7262
7262
|
throw p;
|
|
7263
7263
|
}
|
|
7264
7264
|
}, c = async (u) => {
|
|
7265
7265
|
try {
|
|
7266
7266
|
const g = (await o(u)).data;
|
|
7267
|
-
l(g),
|
|
7267
|
+
l(g), a.setFieldsValue(g);
|
|
7268
7268
|
} catch (p) {
|
|
7269
7269
|
console.log(p, "Error in Form Controller.");
|
|
7270
7270
|
}
|
|
@@ -7272,27 +7272,27 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7272
7272
|
return Y(() => {
|
|
7273
7273
|
try {
|
|
7274
7274
|
if (!e) return;
|
|
7275
|
-
l(e),
|
|
7275
|
+
l(e), a.setFieldsValue(e);
|
|
7276
7276
|
} catch (u) {
|
|
7277
7277
|
console.log(u, "Error in Form Controller.");
|
|
7278
7278
|
}
|
|
7279
7279
|
}, [e]), Y(() => {
|
|
7280
7280
|
n && c(Number(n));
|
|
7281
7281
|
}, [n]), {
|
|
7282
|
-
form:
|
|
7283
|
-
item:
|
|
7282
|
+
form: a,
|
|
7283
|
+
item: i,
|
|
7284
7284
|
handleSave: d
|
|
7285
7285
|
};
|
|
7286
|
-
},
|
|
7286
|
+
}, zi = () => {
|
|
7287
7287
|
const n = Ee(), { setUser: e } = Te(), [t, r] = j({
|
|
7288
7288
|
visible: !1,
|
|
7289
7289
|
token: ""
|
|
7290
|
-
}), o = (
|
|
7291
|
-
e(
|
|
7290
|
+
}), o = (i) => {
|
|
7291
|
+
e(i), r({ visible: !1, token: "" }), n("/");
|
|
7292
7292
|
};
|
|
7293
7293
|
return {
|
|
7294
|
-
handleTwoFactorResponse: (
|
|
7295
|
-
const { success: d, value: c } =
|
|
7294
|
+
handleTwoFactorResponse: (i, l) => {
|
|
7295
|
+
const { success: d, value: c } = i.data;
|
|
7296
7296
|
if (!d)
|
|
7297
7297
|
throw new Error("Authentication failed");
|
|
7298
7298
|
if (c.isTwoFactorRequired) {
|
|
@@ -7311,11 +7311,11 @@ const $r = /* @__PURE__ */ Hi(Fi), Vi = ({ setDateFilter: n, setShowRange: e, se
|
|
|
7311
7311
|
setTwoFactor: r
|
|
7312
7312
|
};
|
|
7313
7313
|
};
|
|
7314
|
-
function
|
|
7314
|
+
function Mi(n) {
|
|
7315
7315
|
const { navigator: e } = dt(Nr), t = Ve();
|
|
7316
7316
|
Y(() => {
|
|
7317
7317
|
if (!n) return;
|
|
7318
|
-
const r = e.push, o = e.replace,
|
|
7318
|
+
const r = e.push, o = e.replace, a = (i) => (...l) => {
|
|
7319
7319
|
er.confirm({
|
|
7320
7320
|
title: "UnsavedChanges",
|
|
7321
7321
|
content: "UnsavedMoveDesc",
|
|
@@ -7330,13 +7330,13 @@ function Ma(n) {
|
|
|
7330
7330
|
// in global css at this point for this..
|
|
7331
7331
|
},
|
|
7332
7332
|
onOk: () => {
|
|
7333
|
-
|
|
7333
|
+
i(...l);
|
|
7334
7334
|
},
|
|
7335
7335
|
onCancel: () => {
|
|
7336
7336
|
}
|
|
7337
7337
|
});
|
|
7338
7338
|
};
|
|
7339
|
-
return e.push =
|
|
7339
|
+
return e.push = a(r), e.replace = a(o), () => {
|
|
7340
7340
|
e.push = r, e.replace = o;
|
|
7341
7341
|
};
|
|
7342
7342
|
}, [n, e, t]), Y(() => {
|
|
@@ -7348,7 +7348,7 @@ function Ma(n) {
|
|
|
7348
7348
|
};
|
|
7349
7349
|
}, [n]);
|
|
7350
7350
|
}
|
|
7351
|
-
function
|
|
7351
|
+
function Pi(n) {
|
|
7352
7352
|
Y(() => {
|
|
7353
7353
|
const e = (t) => {
|
|
7354
7354
|
t.animationName === "onAutoFillStart" && n(t);
|
|
@@ -7358,23 +7358,23 @@ function Pa(n) {
|
|
|
7358
7358
|
};
|
|
7359
7359
|
}, []);
|
|
7360
7360
|
}
|
|
7361
|
-
function
|
|
7361
|
+
function Hi(n, e) {
|
|
7362
7362
|
if (!n) return "";
|
|
7363
7363
|
const t = new Date(n);
|
|
7364
7364
|
if (isNaN(t.getTime())) return "";
|
|
7365
|
-
const r = t.getDate(), o = t.getMonth(),
|
|
7365
|
+
const r = t.getDate(), o = t.getMonth(), a = t.getFullYear(), l = `${r} ${o}, ${a}`;
|
|
7366
7366
|
if (e != null && e.withTime) {
|
|
7367
7367
|
const d = t.getHours().toString().padStart(2, "0"), c = t.getMinutes().toString().padStart(2, "0");
|
|
7368
7368
|
return `${l} ${d}:${c}`;
|
|
7369
7369
|
}
|
|
7370
7370
|
return l;
|
|
7371
7371
|
}
|
|
7372
|
-
function
|
|
7372
|
+
function Ri(n, e = "en-US") {
|
|
7373
7373
|
return n < 1 ? 0 : n ? n.toLocaleString(e) : "";
|
|
7374
7374
|
}
|
|
7375
|
-
const
|
|
7376
|
-
function
|
|
7377
|
-
const { errors: e } = n.response.data, t = Object.keys(e)[0], r = e[t][0], o = t.match(
|
|
7375
|
+
const Ni = (n, e) => Array.isArray(n) ? n.filter((t) => t.type ? (Array.isArray(t.type) ? t.type : [t.type]).some((o) => e.includes(o)) : !1) : [], Pe = (n) => n.replace(/^[A-Z]+/, (e) => e.length === n.length ? e.toLowerCase() : e.length > 1 ? e.slice(0, -1).toLowerCase() + e.slice(-1) : e.toLowerCase()), Za = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)\[(\d+)\]\.(\w+)$/, qa = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)$/, Ja = /^Commissions\[(\d+)\]\.(\w+)\.(\w+)\.(\w+)$/, Qa = /^Commissions\[(\d+)\]$/;
|
|
7376
|
+
function Fi(n) {
|
|
7377
|
+
const { errors: e } = n.response.data, t = Object.keys(e)[0], r = e[t][0], o = t.match(Za);
|
|
7378
7378
|
if (o) {
|
|
7379
7379
|
const [, l, d, c, u, p] = o;
|
|
7380
7380
|
return {
|
|
@@ -7386,9 +7386,9 @@ function Fa(n) {
|
|
|
7386
7386
|
message: r
|
|
7387
7387
|
};
|
|
7388
7388
|
}
|
|
7389
|
-
const
|
|
7390
|
-
if (
|
|
7391
|
-
const [, l, d, c] =
|
|
7389
|
+
const a = t.match(qa) || t.match(Ja);
|
|
7390
|
+
if (a) {
|
|
7391
|
+
const [, l, d, c] = a;
|
|
7392
7392
|
return {
|
|
7393
7393
|
brandIndex: Number(l),
|
|
7394
7394
|
generalType: Pe(d),
|
|
@@ -7396,20 +7396,20 @@ function Fa(n) {
|
|
|
7396
7396
|
message: r
|
|
7397
7397
|
};
|
|
7398
7398
|
}
|
|
7399
|
-
const
|
|
7400
|
-
return
|
|
7401
|
-
brandIndex: Number(
|
|
7399
|
+
const i = t.match(Qa);
|
|
7400
|
+
return i ? {
|
|
7401
|
+
brandIndex: Number(i[1]),
|
|
7402
7402
|
message: r
|
|
7403
7403
|
} : (console.warn(
|
|
7404
7404
|
"parseCommissionErrors: unrecognized key format from the validations on commissions",
|
|
7405
7405
|
t
|
|
7406
7406
|
), null);
|
|
7407
7407
|
}
|
|
7408
|
-
const
|
|
7408
|
+
const Vi = m(rr)`
|
|
7409
7409
|
.ant-empty-description {
|
|
7410
7410
|
color: var(--color-text-secondary, rgba(19, 20, 18, 0.75));
|
|
7411
7411
|
}
|
|
7412
|
-
`,
|
|
7412
|
+
`, Ai = m(pt)`
|
|
7413
7413
|
.ant-table-thead > tr > th {
|
|
7414
7414
|
background: var(--color-bg-primary, #fff);
|
|
7415
7415
|
color: var(--color-text-secondary, rgba(19, 20, 18, 0.75));
|
|
@@ -7512,91 +7512,139 @@ const Va = m(rr)`
|
|
|
7512
7512
|
.ant-collapse-header {
|
|
7513
7513
|
background-color: transparent !important;
|
|
7514
7514
|
}
|
|
7515
|
-
`,
|
|
7516
|
-
width: ${({ $width: n }) => n ?? "
|
|
7515
|
+
`, ji = m(et)`
|
|
7516
|
+
width: ${({ $width: n }) => n ?? "100%"};
|
|
7517
7517
|
|
|
7518
|
-
|
|
7519
|
-
flex-direction: column;
|
|
7518
|
+
min-height: ${({ $height: n }) => n ?? "unset"};
|
|
7520
7519
|
gap: 2.5rem;
|
|
7521
7520
|
display: flex;
|
|
7522
7521
|
flex-direction: column;
|
|
7523
7522
|
gap: 0.5rem;
|
|
7523
|
+
border-radius: var(--border-radius-025, 2px);
|
|
7524
|
+
background: var(--color-bg-secondary, #f5f5f5);
|
|
7525
|
+
|
|
7526
|
+
.arrow-svg {
|
|
7527
|
+
svg {
|
|
7528
|
+
width: 16px;
|
|
7529
|
+
height: 16px;
|
|
7530
|
+
path {
|
|
7531
|
+
fill: var(--color-text-primary, #131412);
|
|
7532
|
+
}
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
|
|
7536
|
+
&.ant-select-multiple .ant-select-selection-placeholder {
|
|
7537
|
+
color: var(--color-text-tertiary, rgba(255, 255, 255, 0.5)) !important;
|
|
7538
|
+
}
|
|
7539
|
+
|
|
7540
|
+
&:hover {
|
|
7541
|
+
border: 1px solid var(--color-border-brand-special, #02e0ae) !important;
|
|
7542
|
+
}
|
|
7543
|
+
|
|
7524
7544
|
.ant-select-selector {
|
|
7525
|
-
|
|
7526
|
-
background: var(--color-bg-secondary, #f5f5f5) !important;
|
|
7545
|
+
padding: 0 !important;
|
|
7527
7546
|
border: none !important;
|
|
7547
|
+
background-color: transparent !important;
|
|
7548
|
+
box-shadow: none !important;
|
|
7549
|
+
}
|
|
7550
|
+
.ant-select-selection-overflow {
|
|
7551
|
+
justify-content: flex-start !important;
|
|
7552
|
+
background-color: none;
|
|
7553
|
+
margin-top: 5px;
|
|
7554
|
+
}
|
|
7555
|
+
.ant-select-selection-item {
|
|
7556
|
+
background: transparent !important;
|
|
7557
|
+
}
|
|
7558
|
+
|
|
7559
|
+
&&& {
|
|
7560
|
+
.ant-select-selector {
|
|
7561
|
+
border: none !important;
|
|
7562
|
+
box-shadow: none !important;
|
|
7563
|
+
background-color: transparent !important;
|
|
7564
|
+
padding: 0 !important;
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
&:hover .ant-select-selector,
|
|
7568
|
+
&.ant-select-focused .ant-select-selector,
|
|
7569
|
+
&.ant-select-open .ant-select-selector {
|
|
7570
|
+
border: none !important;
|
|
7571
|
+
box-shadow: none !important;
|
|
7572
|
+
}
|
|
7573
|
+
}
|
|
7574
|
+
&.ant-select-single {
|
|
7575
|
+
.ant-select-selector .ant-select-selection-placeholder {
|
|
7576
|
+
color: var(--color-text-tertiary, rgba(255, 255, 255, 0.5)) !important;
|
|
7577
|
+
}
|
|
7578
|
+
padding: var(--spacing-025, 2px) var(--spacing-150, 12px);
|
|
7579
|
+
}
|
|
7580
|
+
|
|
7581
|
+
&.ant-select-multiple {
|
|
7528
7582
|
.ant-select-selection-placeholder {
|
|
7529
|
-
|
|
7530
|
-
fill: var(--color-text-secondary, rgba(255, 255, 255, 0.75)) !important;
|
|
7531
|
-
}
|
|
7583
|
+
color: var(--color-text-tertiary, rgba(255, 255, 255, 0.5)) !important;
|
|
7532
7584
|
}
|
|
7585
|
+
padding: var(--spacing-025, 2px) var(--spacing-150, 5px);
|
|
7533
7586
|
}
|
|
7534
|
-
|
|
7535
|
-
color: var(--color-text-secondary, rgba(
|
|
7536
|
-
font-family: var(--text-font-family-base, Geist);
|
|
7537
|
-
font-size: var(--typo-caption-size-medium, 0.875rem);
|
|
7538
|
-
font-weight: var(--text-weight-regular, 400);
|
|
7539
|
-
line-height: var(--typo-caption-lineHeight-medium, 1.125rem); /* 128.571% */
|
|
7540
|
-
letter-spacing: var(--typo-caption-spacing-medium, 0.00625rem);
|
|
7587
|
+
.anticon.anticon-close {
|
|
7588
|
+
color: var(--color-text-secondary, rgba(255, 255, 255, 0.5)) !important;
|
|
7541
7589
|
}
|
|
7542
7590
|
`;
|
|
7543
7591
|
export {
|
|
7544
|
-
|
|
7545
|
-
|
|
7592
|
+
fi as AdminLayout,
|
|
7593
|
+
hi as AuthorizationLayout,
|
|
7546
7594
|
Sn as BoxComponent,
|
|
7547
|
-
|
|
7595
|
+
Ci as Chart,
|
|
7548
7596
|
ue as ColumnFilterType,
|
|
7549
|
-
|
|
7597
|
+
Si as ComingSoon,
|
|
7550
7598
|
Yo as ContactInfoModal,
|
|
7551
7599
|
ne as DateHelper,
|
|
7552
|
-
|
|
7553
|
-
$
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7600
|
+
Ei as DatePickerToISO,
|
|
7601
|
+
$i as DateRangeFilterTabs,
|
|
7602
|
+
Di as ExcelExport,
|
|
7603
|
+
Oi as ExcelExportSelected,
|
|
7604
|
+
Li as ExpandableTable,
|
|
7557
7605
|
no as FilterConfiguration,
|
|
7558
7606
|
Se as FilterSelectTypes,
|
|
7559
7607
|
Pt as GenericModal,
|
|
7560
|
-
|
|
7561
|
-
|
|
7608
|
+
yi as GridViewPage,
|
|
7609
|
+
bi as ModalHost,
|
|
7562
7610
|
Oo as NoData,
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7611
|
+
pi as PackageServicesProvider,
|
|
7612
|
+
ui as PackageTranslationProvider,
|
|
7613
|
+
xi as PageBreadcrumb,
|
|
7614
|
+
vi as PopupMFA,
|
|
7567
7615
|
re as SortDirections,
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7616
|
+
ki as Spinner,
|
|
7617
|
+
ea as StyledBreadcrumb,
|
|
7618
|
+
Vi as StyledEmpty,
|
|
7619
|
+
ji as StyledSelect,
|
|
7620
|
+
Ai as StyledTable,
|
|
7573
7621
|
me as TableViewOptions,
|
|
7574
|
-
|
|
7622
|
+
wi as TwoFactorPopup,
|
|
7575
7623
|
ro as catchErrorMessage,
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7624
|
+
_a as exportSelectedToCSV,
|
|
7625
|
+
Wa as exportSelectedToXLSX,
|
|
7626
|
+
Hi as formatDate,
|
|
7627
|
+
gi as getBase64,
|
|
7628
|
+
mi as handleCopy,
|
|
7581
7629
|
Wn as handleDictionarySelectFilter,
|
|
7582
7630
|
to as lowercaseFirstLetter,
|
|
7583
|
-
|
|
7584
|
-
|
|
7631
|
+
Ri as numberFormatterWithComma,
|
|
7632
|
+
Fi as parseCommissionErrors,
|
|
7585
7633
|
Vo as parseErrorMessageKey,
|
|
7586
7634
|
De as parseServerErrors,
|
|
7587
|
-
|
|
7588
|
-
|
|
7635
|
+
Ni as showByType,
|
|
7636
|
+
Pi as useAutofillStartDetection,
|
|
7589
7637
|
Ko as useContactInfoController,
|
|
7590
7638
|
ur as useDebounce,
|
|
7591
7639
|
En as useElementHeight,
|
|
7592
|
-
|
|
7640
|
+
ar as useFetch,
|
|
7593
7641
|
hr as useFilterDataSourceType,
|
|
7594
|
-
|
|
7642
|
+
Ii as useFormController,
|
|
7595
7643
|
ye as useModalStore,
|
|
7596
|
-
|
|
7597
|
-
|
|
7644
|
+
Mi as useNavigationGuard,
|
|
7645
|
+
Ti as useNewDesignFormController,
|
|
7598
7646
|
Ie as usePackageServices,
|
|
7599
|
-
|
|
7647
|
+
zi as useTwoFactor,
|
|
7600
7648
|
Te as useUserStore
|
|
7601
7649
|
};
|
|
7602
7650
|
//# sourceMappingURL=index.mjs.map
|