affiliate-front-shared 1.3.25 → 1.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ var lt = (r, e, t) => Mn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
|
4
4
|
import { jsx as s, Fragment as oe, jsxs as v } from "react/jsx-runtime";
|
|
5
5
|
import * as $ from "react";
|
|
6
6
|
import ft, { createContext as At, useContext as xt, useEffect as K, useState as M, useRef as wt, useMemo as we } from "react";
|
|
7
|
-
import { Menu as Fr, DatePicker as jr, Table as Vt, Dropdown as
|
|
7
|
+
import { Menu as Fr, DatePicker as jr, Table as Vt, Dropdown as Me, Select as Ft, Button as Oe, Input as _e, Modal as Br, notification as ht, Form as Ae, Checkbox as Pn, Skeleton as zn, Pagination as Hn, Spin as Ct, Breadcrumb as Rn, Empty as _r, Tabs as Ur, Tooltip as Nn, Upload as An } from "antd";
|
|
8
8
|
import m, { keyframes as Vn } from "styled-components";
|
|
9
|
-
import { useNavigate as
|
|
9
|
+
import { useNavigate as Pe, useLocation as Ue, useSearchParams as Fn, useParams as jn, UNSAFE_NavigationContext as Bn } from "react-router";
|
|
10
10
|
import { create as Gr, useStore as _n } from "zustand";
|
|
11
11
|
import { useTranslation as Un, initReactI18next as Gn } from "react-i18next";
|
|
12
12
|
import * as Wn from "echarts";
|
|
@@ -22,14 +22,14 @@ function Cl({
|
|
|
22
22
|
}) {
|
|
23
23
|
return /* @__PURE__ */ s(Wr.Provider, { value: r, children: e });
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function ze() {
|
|
26
26
|
return xt(Wr);
|
|
27
27
|
}
|
|
28
28
|
let Ce = (r) => r;
|
|
29
29
|
function tr(r) {
|
|
30
30
|
Ce = r;
|
|
31
31
|
}
|
|
32
|
-
const j = (r, e) => Ce(`general.${r}`, e), J = (r, e) => Ce(`actions.${r}`, e), G = (r, e) => Ce(`authentication.${r}`, e), de = (r, e) => Ce(`months.${r}`, e), Re = (r, e) => Ce(`date.${r}`, e),
|
|
32
|
+
const j = (r, e) => Ce(`general.${r}`, e), J = (r, e) => Ce(`actions.${r}`, e), G = (r, e) => Ce(`authentication.${r}`, e), de = (r, e) => Ce(`months.${r}`, e), Re = (r, e) => Ce(`date.${r}`, e), Ee = (r, e) => Ce(`weekDays.${r}`, e), Jn = (r, e) => Ce(`noData.${r}`, e), rr = (r, e) => Ce(`comingSoon.${r}`, e);
|
|
33
33
|
function Sl({ t: r, children: e }) {
|
|
34
34
|
return tr(r), K(() => {
|
|
35
35
|
tr(r);
|
|
@@ -272,7 +272,7 @@ const jt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
|
|
|
272
272
|
position: absolute !important;
|
|
273
273
|
z-index: 10000;
|
|
274
274
|
`, si = ({ closeProfileDropdown: r }) => {
|
|
275
|
-
const e =
|
|
275
|
+
const e = Pe(), { getCustomers: t, postSelectedCustomer: n } = ze(), { storedThemeMode: i, logout: o, setThemeMode: a, user: l } = He(), { i18n: d } = Un();
|
|
276
276
|
function c() {
|
|
277
277
|
o(), e("/authorization/login");
|
|
278
278
|
}
|
|
@@ -618,7 +618,7 @@ const Di = m.span`
|
|
|
618
618
|
colorPrimary: i,
|
|
619
619
|
children: o
|
|
620
620
|
}) => {
|
|
621
|
-
const [a] = Fn(), l = a.get("backPath"), d =
|
|
621
|
+
const [a] = Fn(), l = a.get("backPath"), d = Pe();
|
|
622
622
|
function c(u) {
|
|
623
623
|
d(u);
|
|
624
624
|
}
|
|
@@ -1203,7 +1203,7 @@ const _t = m.div`
|
|
|
1203
1203
|
}, Ut = (r) => /* @__PURE__ */ $.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.createElement("path", { d: "M7.99947 2.38989L3.72266 6.6667L4.66547 7.60951L7.3328 4.94218V13.3334H8.66613V4.94218L11.3335 7.60951L12.2763 6.6667L7.99947 2.38989Z", fill: "currentColor", fillOpacity: 0.75 })), Gt = (r) => /* @__PURE__ */ $.createElement("svg", { width: 24, height: 24, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.createElement("path", { d: "M8.66613 2.66675H7.3328V11.0573L4.66547 8.38994L3.72266 9.33275L7.99947 13.6096L12.2763 9.33275L11.3335 8.38994L8.66613 11.0573V2.66675Z", fill: "currentColor", fillOpacity: 0.75 })), Gi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ $.createElement("path", { d: "M13.7337 6.67614L14.6765 5.73333L11.3337 2.39052L7.99089 5.73333L8.93369 6.67614L10.667 4.94281L10.667 13.3333H12.0004L12.0004 4.94281L13.7337 6.67614Z", fill: "#131412" }), /* @__PURE__ */ $.createElement("path", { d: "M8.00984 10.2667L4.66703 13.6095L1.32422 10.2667L2.26703 9.32385L4.00036 11.0572L4.00036 2.66666L5.33369 2.66666L5.33369 11.0572L7.06703 9.32386L8.00984 10.2667Z", fill: "#131412" })), Wi = ({ children: r, overlay: e, placement: t = "bottomRight" }) => {
|
|
1204
1204
|
const [n, i] = M(!1);
|
|
1205
1205
|
return /* @__PURE__ */ s(
|
|
1206
|
-
|
|
1206
|
+
Me,
|
|
1207
1207
|
{
|
|
1208
1208
|
open: n,
|
|
1209
1209
|
onOpenChange: i,
|
|
@@ -1302,7 +1302,7 @@ const _t = m.div`
|
|
|
1302
1302
|
]), o(!1);
|
|
1303
1303
|
}
|
|
1304
1304
|
return /* @__PURE__ */ s(
|
|
1305
|
-
|
|
1305
|
+
Me,
|
|
1306
1306
|
{
|
|
1307
1307
|
open: i,
|
|
1308
1308
|
onOpenChange: o,
|
|
@@ -1340,7 +1340,7 @@ const _t = m.div`
|
|
|
1340
1340
|
}, Ki = {
|
|
1341
1341
|
okText: "Create",
|
|
1342
1342
|
cancelText: "Cancel"
|
|
1343
|
-
},
|
|
1343
|
+
}, $e = Gr((r, e) => {
|
|
1344
1344
|
const t = (n) => ({
|
|
1345
1345
|
...n,
|
|
1346
1346
|
popupOptions: { ...Yi, ...n.popupOptions },
|
|
@@ -1456,7 +1456,7 @@ const Zi = ({
|
|
|
1456
1456
|
GridPageTopLeftComponent: l,
|
|
1457
1457
|
noNeedSidebarResponsiveButton: d
|
|
1458
1458
|
}) => {
|
|
1459
|
-
const c =
|
|
1459
|
+
const c = Pe(), u = T((x) => x.filters), p = T((x) => x.hasCreateBtn), f = T((x) => x.setFilters), h = T((x) => x.setFilterItems), g = T((x) => x.setSortItems), [y, O] = M(() => {
|
|
1460
1460
|
var x, C;
|
|
1461
1461
|
try {
|
|
1462
1462
|
const I = sessionStorage.getItem(`grid-filters:${window.location.pathname}`);
|
|
@@ -1464,7 +1464,7 @@ const Zi = ({
|
|
|
1464
1464
|
} catch {
|
|
1465
1465
|
return !1;
|
|
1466
1466
|
}
|
|
1467
|
-
}), [P, S] = M(!1), { open: E } =
|
|
1467
|
+
}), [P, S] = M(!1), { open: E } = $e(), [k, H] = M(!1), { getMyFilters: U } = ze(), Y = rn(), [B, F] = M([]), R = T((x) => x.selectedConfig), b = T((x) => x.setSelectedConfig), N = T((x) => x.configsVersion);
|
|
1468
1468
|
K(() => {
|
|
1469
1469
|
Y == null || !U || U(String(Y)).then((x) => F(x.data ?? []));
|
|
1470
1470
|
}, [Y, N, U]);
|
|
@@ -1906,7 +1906,7 @@ const Qi = (r) => /* @__PURE__ */ $.createElement("svg", { width: 16, height: 16
|
|
|
1906
1906
|
fill: var(--color-text-primary, #fff);
|
|
1907
1907
|
}
|
|
1908
1908
|
}
|
|
1909
|
-
`,
|
|
1909
|
+
`, De = m.div`
|
|
1910
1910
|
display: flex;
|
|
1911
1911
|
align-items: start;
|
|
1912
1912
|
flex-direction: column;
|
|
@@ -2198,7 +2198,7 @@ const oo = ({
|
|
|
2198
2198
|
postMyFilter: i,
|
|
2199
2199
|
putMyFilter: o
|
|
2200
2200
|
}) => {
|
|
2201
|
-
const [a] = Ae.useForm(), l =
|
|
2201
|
+
const [a] = Ae.useForm(), l = $e((c) => c.setOnOk), d = $e((c) => c.close);
|
|
2202
2202
|
return K(() => {
|
|
2203
2203
|
t && a.setFieldsValue({ name: t.name });
|
|
2204
2204
|
}, [t, a]), K(() => {
|
|
@@ -2230,7 +2230,7 @@ const oo = ({
|
|
|
2230
2230
|
transition: 0.1s;
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
|
-
`, so = () => /* @__PURE__ */ s(
|
|
2233
|
+
`, so = () => /* @__PURE__ */ s(De, { children: /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("p", { children: j("DeleteRecordQuestion") }) }) }), lo = m(Pn)`
|
|
2234
2234
|
.ant-checkbox-inner {
|
|
2235
2235
|
background-color: transparent;
|
|
2236
2236
|
border: 1px solid #ccc;
|
|
@@ -2422,7 +2422,7 @@ const oo = ({
|
|
|
2422
2422
|
r.title
|
|
2423
2423
|
] }) }),
|
|
2424
2424
|
/* @__PURE__ */ s(
|
|
2425
|
-
|
|
2425
|
+
Me,
|
|
2426
2426
|
{
|
|
2427
2427
|
overlayClassName: "debug-dropdwon",
|
|
2428
2428
|
placement: "bottomLeft",
|
|
@@ -2440,7 +2440,7 @@ const oo = ({
|
|
|
2440
2440
|
/* @__PURE__ */ s("span", { onClick: y, children: /* @__PURE__ */ s(Yt, {}) })
|
|
2441
2441
|
] });
|
|
2442
2442
|
}, po = () => {
|
|
2443
|
-
const r = T((g) => g.filterItems), e = T((g) => g.sortItems), t = T((g) => g.setSelectedConfig), n = T((g) => g.resetStore), i = T((g) => g.selectedConfig), { deleteMyFilter: o } =
|
|
2443
|
+
const r = T((g) => g.filterItems), e = T((g) => g.sortItems), t = T((g) => g.setSelectedConfig), n = T((g) => g.resetStore), i = T((g) => g.selectedConfig), { deleteMyFilter: o } = ze(), a = T((g) => g.bumpConfigsVersion), { open: l, store: d, close: c } = $e(), u = rn();
|
|
2444
2444
|
async function p() {
|
|
2445
2445
|
try {
|
|
2446
2446
|
if (!i || !o) return;
|
|
@@ -2983,7 +2983,7 @@ function Co({
|
|
|
2983
2983
|
}
|
|
2984
2984
|
),
|
|
2985
2985
|
/* @__PURE__ */ s(
|
|
2986
|
-
|
|
2986
|
+
Me,
|
|
2987
2987
|
{
|
|
2988
2988
|
placement: "bottomRight",
|
|
2989
2989
|
popupRender: () => /* @__PURE__ */ s(go, { children: ((r == null ? void 0 : r.items) || [
|
|
@@ -3064,7 +3064,7 @@ function ko({ col: r }) {
|
|
|
3064
3064
|
}
|
|
3065
3065
|
];
|
|
3066
3066
|
return r.filterDropdown === !1 ? /* @__PURE__ */ s("th", {}) : /* @__PURE__ */ s(
|
|
3067
|
-
|
|
3067
|
+
Me,
|
|
3068
3068
|
{
|
|
3069
3069
|
placement: "bottomLeft",
|
|
3070
3070
|
popupRender: () => /* @__PURE__ */ s(fo, { children: f.map(({ icon: h, text: g, action: y }) => /* @__PURE__ */ v(
|
|
@@ -4033,7 +4033,7 @@ const an = m.span`
|
|
|
4033
4033
|
}
|
|
4034
4034
|
}
|
|
4035
4035
|
return /* @__PURE__ */ v("div", { children: [
|
|
4036
|
-
/* @__PURE__ */ s(
|
|
4036
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
|
|
4037
4037
|
G("EnterBackupCode"),
|
|
4038
4038
|
/* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
|
|
4039
4039
|
] }) }),
|
|
@@ -4118,7 +4118,7 @@ const Zo = {
|
|
|
4118
4118
|
isBlocked: o,
|
|
4119
4119
|
onBlockStateClose: a
|
|
4120
4120
|
}) => {
|
|
4121
|
-
const { confirmContactInfo: l, confirmContactInfoBackup: d } =
|
|
4121
|
+
const { confirmContactInfo: l, confirmContactInfoBackup: d } = ze(), { setUser: c } = He(), [u, p] = M(""), [f, h] = M([]), [g, y] = M(!1);
|
|
4122
4122
|
function O(k) {
|
|
4123
4123
|
p(k);
|
|
4124
4124
|
}
|
|
@@ -4210,7 +4210,7 @@ const Zo = {
|
|
|
4210
4210
|
] })
|
|
4211
4211
|
] }) });
|
|
4212
4212
|
}, Qo = () => {
|
|
4213
|
-
const { enableContactInfo: r, disableContactInfo: e } =
|
|
4213
|
+
const { enableContactInfo: r, disableContactInfo: e } = ze(), { setUser: t } = He(), [n, i] = M(!1), [o, a] = M(null), [l, d] = M(!1), c = async () => {
|
|
4214
4214
|
var f, h, g, y, O, P, S;
|
|
4215
4215
|
if (r)
|
|
4216
4216
|
try {
|
|
@@ -4466,7 +4466,7 @@ const Zo = {
|
|
|
4466
4466
|
z && /* @__PURE__ */ s(Xo, { close: () => V(!1) })
|
|
4467
4467
|
] });
|
|
4468
4468
|
}, Tl = (r) => /* @__PURE__ */ s(Ii, { children: /* @__PURE__ */ s(ea, { ...r }) }), $l = () => {
|
|
4469
|
-
const r =
|
|
4469
|
+
const r = $e((y) => y.isOpen), e = $e((y) => y.options), t = $e((y) => y.close), n = Ue();
|
|
4470
4470
|
if (K(() => {
|
|
4471
4471
|
r && t();
|
|
4472
4472
|
}, [n.pathname]), !e || !r) return null;
|
|
@@ -4552,7 +4552,7 @@ const Zo = {
|
|
|
4552
4552
|
}
|
|
4553
4553
|
}
|
|
4554
4554
|
return /* @__PURE__ */ v("div", { children: [
|
|
4555
|
-
/* @__PURE__ */ s(
|
|
4555
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
|
|
4556
4556
|
G("SetupTwoFactorAuthentication"),
|
|
4557
4557
|
/* @__PURE__ */ s(pe, { children: G("SetupTwoFactorAuthenticationDesc") })
|
|
4558
4558
|
] }) }),
|
|
@@ -4567,7 +4567,7 @@ const Zo = {
|
|
|
4567
4567
|
/* @__PURE__ */ s(ue, { children: /* @__PURE__ */ s(re, { onClick: r, children: J("Cancel") }) })
|
|
4568
4568
|
] });
|
|
4569
4569
|
}, ra = ({ onClose: r, setCurrentStep: e, setBackupCodes: t, setRefetch: n }) => {
|
|
4570
|
-
const { verifyMFA: i } =
|
|
4570
|
+
const { verifyMFA: i } = ze(), [o, a] = M(""), [l, d] = M([]);
|
|
4571
4571
|
function c(p) {
|
|
4572
4572
|
a(p);
|
|
4573
4573
|
}
|
|
@@ -4611,7 +4611,7 @@ const Zo = {
|
|
|
4611
4611
|
G("Other")
|
|
4612
4612
|
];
|
|
4613
4613
|
return /* @__PURE__ */ v("div", { children: [
|
|
4614
|
-
/* @__PURE__ */ s(
|
|
4614
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
|
|
4615
4615
|
G("SetupTwoFactorAuthentication"),
|
|
4616
4616
|
/* @__PURE__ */ v(pe, { children: [
|
|
4617
4617
|
" ",
|
|
@@ -4712,27 +4712,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4712
4712
|
function pn(r, e) {
|
|
4713
4713
|
return ca(r) || da(r, e) || pa(r, e) || ua();
|
|
4714
4714
|
}
|
|
4715
|
-
function
|
|
4715
|
+
function Ie(r) {
|
|
4716
4716
|
"@babel/helpers - typeof";
|
|
4717
|
-
return
|
|
4717
|
+
return Ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4718
4718
|
return typeof e;
|
|
4719
4719
|
} : function(e) {
|
|
4720
4720
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4721
|
-
},
|
|
4721
|
+
}, Ie(r);
|
|
4722
4722
|
}
|
|
4723
4723
|
function fa(r, e) {
|
|
4724
|
-
if (
|
|
4724
|
+
if (Ie(r) != "object" || !r) return r;
|
|
4725
4725
|
var t = r[Symbol.toPrimitive];
|
|
4726
4726
|
if (t !== void 0) {
|
|
4727
4727
|
var n = t.call(r, e);
|
|
4728
|
-
if (
|
|
4728
|
+
if (Ie(n) != "object") return n;
|
|
4729
4729
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4730
4730
|
}
|
|
4731
4731
|
return (e === "string" ? String : Number)(r);
|
|
4732
4732
|
}
|
|
4733
4733
|
function ha(r) {
|
|
4734
4734
|
var e = fa(r, "string");
|
|
4735
|
-
return
|
|
4735
|
+
return Ie(e) == "symbol" ? e : e + "";
|
|
4736
4736
|
}
|
|
4737
4737
|
function ie(r, e, t) {
|
|
4738
4738
|
return (e = ha(e)) in r ? Object.defineProperty(r, e, {
|
|
@@ -5358,7 +5358,7 @@ function Va(r, e) {
|
|
|
5358
5358
|
St(r, "[@ant-design/icons] ".concat(e));
|
|
5359
5359
|
}
|
|
5360
5360
|
function Sr(r) {
|
|
5361
|
-
return
|
|
5361
|
+
return Ie(r) === "object" && typeof r.name == "string" && typeof r.theme == "string" && (Ie(r.icon) === "object" || typeof r.icon == "function");
|
|
5362
5362
|
}
|
|
5363
5363
|
function kr() {
|
|
5364
5364
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -5549,7 +5549,7 @@ var qa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
5549
5549
|
}, kn = /* @__PURE__ */ $.forwardRef(Za);
|
|
5550
5550
|
process.env.NODE_ENV !== "production" && (kn.displayName = "DownloadOutlined");
|
|
5551
5551
|
const Ja = ({ onClose: r, setCurrentStep: e }) => {
|
|
5552
|
-
const { initiateMFA: t } =
|
|
5552
|
+
const { initiateMFA: t } = ze(), [n, i] = M(null);
|
|
5553
5553
|
async function o() {
|
|
5554
5554
|
if (t)
|
|
5555
5555
|
try {
|
|
@@ -5562,7 +5562,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
|
|
|
5562
5562
|
return K(() => {
|
|
5563
5563
|
o();
|
|
5564
5564
|
}, []), /* @__PURE__ */ s("div", { children: n ? /* @__PURE__ */ v(oe, { children: [
|
|
5565
|
-
/* @__PURE__ */ s(
|
|
5565
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ s(Se, { children: G("EnterAuthenticationCode") }) }),
|
|
5566
5566
|
/* @__PURE__ */ s(ia, { children: /* @__PURE__ */ s("img", { src: `data:image/png;base64,${n.qrCodeImage}` }) }),
|
|
5567
5567
|
/* @__PURE__ */ s("br", {}),
|
|
5568
5568
|
/* @__PURE__ */ v(sa, { children: [
|
|
@@ -5605,7 +5605,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
|
|
|
5605
5605
|
}
|
|
5606
5606
|
}
|
|
5607
5607
|
return /* @__PURE__ */ v("div", { children: [
|
|
5608
|
-
/* @__PURE__ */ s(
|
|
5608
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
|
|
5609
5609
|
G("DisableTwoFactor"),
|
|
5610
5610
|
/* @__PURE__ */ s(pe, { children: G("DisableTwoFactorDesc") })
|
|
5611
5611
|
] }) }),
|
|
@@ -5628,8 +5628,14 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
|
|
|
5628
5628
|
] })
|
|
5629
5629
|
] })
|
|
5630
5630
|
] });
|
|
5631
|
-
}, Xa = ({
|
|
5632
|
-
|
|
5631
|
+
}, Xa = ({
|
|
5632
|
+
onClose: r,
|
|
5633
|
+
confirmationToken: e,
|
|
5634
|
+
setRefetch: t,
|
|
5635
|
+
idOf2FA: n,
|
|
5636
|
+
confirmTwoFactorService: i
|
|
5637
|
+
}) => {
|
|
5638
|
+
const [o, a] = M(""), [l, d] = M([]);
|
|
5633
5639
|
function c(p) {
|
|
5634
5640
|
a(p);
|
|
5635
5641
|
}
|
|
@@ -5681,7 +5687,7 @@ const Ja = ({ onClose: r, setCurrentStep: e }) => {
|
|
|
5681
5687
|
a.href = o, a.download = "backup-codes.txt", a.click(), URL.revokeObjectURL(o);
|
|
5682
5688
|
};
|
|
5683
5689
|
return /* @__PURE__ */ v("div", { children: [
|
|
5684
|
-
/* @__PURE__ */ s(
|
|
5690
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
|
|
5685
5691
|
G("EnterVerificationCode"),
|
|
5686
5692
|
/* @__PURE__ */ s(pe, { children: G("BackupCodesDesc") })
|
|
5687
5693
|
] }) }),
|
|
@@ -5696,14 +5702,15 @@ const Il = ({
|
|
|
5696
5702
|
modal: t = 0,
|
|
5697
5703
|
setRefetch: n,
|
|
5698
5704
|
enableTwoFactorService: i,
|
|
5699
|
-
disableMFAService: o
|
|
5705
|
+
disableMFAService: o,
|
|
5706
|
+
confirmTwoFactorService: a
|
|
5700
5707
|
}) => {
|
|
5701
|
-
const [
|
|
5702
|
-
function
|
|
5708
|
+
const [l, d] = M(t), [c, u] = M(""), [p, f] = M(), [h, g] = M("");
|
|
5709
|
+
function y() {
|
|
5703
5710
|
e(!1);
|
|
5704
5711
|
}
|
|
5705
|
-
const
|
|
5706
|
-
switch (
|
|
5712
|
+
const O = we(() => {
|
|
5713
|
+
switch (l) {
|
|
5707
5714
|
case 0:
|
|
5708
5715
|
return ur;
|
|
5709
5716
|
case 1:
|
|
@@ -5721,37 +5728,44 @@ const Il = ({
|
|
|
5721
5728
|
default:
|
|
5722
5729
|
return ur;
|
|
5723
5730
|
}
|
|
5724
|
-
}, [
|
|
5725
|
-
switch (
|
|
5731
|
+
}, [l]), P = we(() => {
|
|
5732
|
+
switch (l) {
|
|
5726
5733
|
case 0:
|
|
5727
5734
|
return {
|
|
5728
|
-
onClose:
|
|
5729
|
-
setCurrentStep:
|
|
5730
|
-
setConfirmationToken:
|
|
5735
|
+
onClose: y,
|
|
5736
|
+
setCurrentStep: d,
|
|
5737
|
+
setConfirmationToken: u,
|
|
5731
5738
|
setRefetch: n,
|
|
5732
|
-
setIdOf2FA:
|
|
5739
|
+
setIdOf2FA: f,
|
|
5733
5740
|
enableTwoFactorService: i,
|
|
5734
5741
|
disableMFAService: o
|
|
5735
5742
|
};
|
|
5736
5743
|
case 1:
|
|
5737
|
-
return { onClose:
|
|
5744
|
+
return { onClose: y, setCurrentStep: d };
|
|
5738
5745
|
case 2:
|
|
5739
|
-
return { onClose:
|
|
5746
|
+
return { onClose: y, setCurrentStep: d };
|
|
5740
5747
|
case 3:
|
|
5741
|
-
return { onClose:
|
|
5748
|
+
return { onClose: y, setCurrentStep: d, setBackupCodes: g, setRefetch: n };
|
|
5742
5749
|
case 4:
|
|
5743
|
-
return {
|
|
5750
|
+
return {
|
|
5751
|
+
onClose: y,
|
|
5752
|
+
setCurrentStep: d,
|
|
5753
|
+
confirmationToken: c,
|
|
5754
|
+
setRefetch: n,
|
|
5755
|
+
idOf2FA: p,
|
|
5756
|
+
confirmTwoFactorService: a
|
|
5757
|
+
};
|
|
5744
5758
|
case 5:
|
|
5745
|
-
return { onClose:
|
|
5759
|
+
return { onClose: y, setRefetch: n, disableMFAService: o };
|
|
5746
5760
|
case 6:
|
|
5747
|
-
return { onClose:
|
|
5761
|
+
return { onClose: y, backupCodes: h };
|
|
5748
5762
|
case 7:
|
|
5749
|
-
return { onClose:
|
|
5763
|
+
return { onClose: y, confirmationToken: c, setRefetch: n, idOf2FA: p };
|
|
5750
5764
|
default:
|
|
5751
|
-
return { onClose:
|
|
5765
|
+
return { onClose: y };
|
|
5752
5766
|
}
|
|
5753
|
-
}, [
|
|
5754
|
-
return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose:
|
|
5767
|
+
}, [l, c, h]);
|
|
5768
|
+
return /* @__PURE__ */ s(ta, { displayAddRuleModal: r, onClose: y, hideFooter: !0, children: /* @__PURE__ */ s(O, { ...P }) });
|
|
5755
5769
|
}, ts = m.div`
|
|
5756
5770
|
height: var(--size-800, 4rem);
|
|
5757
5771
|
display: flex;
|
|
@@ -5826,7 +5840,7 @@ const Il = ({
|
|
|
5826
5840
|
className: n,
|
|
5827
5841
|
backButton: i = /* @__PURE__ */ s(ns, {})
|
|
5828
5842
|
}) => {
|
|
5829
|
-
const o =
|
|
5843
|
+
const o = Pe();
|
|
5830
5844
|
return /* @__PURE__ */ v(ts, { className: n || "", children: [
|
|
5831
5845
|
/* @__PURE__ */ v("div", { className: "page-starter", children: [
|
|
5832
5846
|
e ? /* @__PURE__ */ s("div", { className: "icon", children: e }) : /* @__PURE__ */ s(rs, { className: "icon", onClick: () => o(-1), children: i }),
|
|
@@ -5897,7 +5911,7 @@ const as = {
|
|
|
5897
5911
|
confirmationToken: t
|
|
5898
5912
|
}
|
|
5899
5913
|
) }) : /* @__PURE__ */ v(oe, { children: [
|
|
5900
|
-
/* @__PURE__ */ s(
|
|
5914
|
+
/* @__PURE__ */ s(De, { children: /* @__PURE__ */ v(Se, { children: [
|
|
5901
5915
|
G("EnterVerificationCode"),
|
|
5902
5916
|
/* @__PURE__ */ s(pe, { children: G(as[i]) })
|
|
5903
5917
|
] }) }),
|
|
@@ -6429,7 +6443,7 @@ const bs = m.div`
|
|
|
6429
6443
|
for (const n in e)
|
|
6430
6444
|
n !== "__proto__" && n !== "constructor" && (n in r ? A(r[n]) || r[n] instanceof String || A(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Ln(r[n], e[n], t) : r[n] = e[n]);
|
|
6431
6445
|
return r;
|
|
6432
|
-
},
|
|
6446
|
+
}, Te = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Ls = {
|
|
6433
6447
|
"&": "&",
|
|
6434
6448
|
"<": "<",
|
|
6435
6449
|
">": ">",
|
|
@@ -7080,7 +7094,7 @@ class Rr {
|
|
|
7080
7094
|
maxReplaces: P,
|
|
7081
7095
|
alwaysFormat: S
|
|
7082
7096
|
} = e.interpolation;
|
|
7083
|
-
this.escape = t !== void 0 ? t : Os, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ?
|
|
7097
|
+
this.escape = t !== void 0 ? t : Os, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = o ? Te(o) : a || "{{", this.suffix = l ? Te(l) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : p || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = f ? Te(f) : h || Te("$t("), this.nestingSuffix = g ? Te(g) : y || Te(")"), this.nestingOptionsSeparator = O || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
7084
7098
|
}
|
|
7085
7099
|
reset() {
|
|
7086
7100
|
this.options && this.init(this.options);
|
|
@@ -7142,7 +7156,7 @@ class Rr {
|
|
|
7142
7156
|
const l = (d, c) => {
|
|
7143
7157
|
const u = this.nestingOptionsSeparator;
|
|
7144
7158
|
if (!d.includes(u)) return d;
|
|
7145
|
-
const p = d.split(new RegExp(`${
|
|
7159
|
+
const p = d.split(new RegExp(`${Te(u)}[ ]*{`));
|
|
7146
7160
|
let f = `{${p[1]}`;
|
|
7147
7161
|
d = p[0], f = this.interpolate(f, a);
|
|
7148
7162
|
const h = f.match(/'/g), g = f.match(/"/g);
|
|
@@ -8064,13 +8078,13 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
|
|
|
8064
8078
|
de("11")
|
|
8065
8079
|
],
|
|
8066
8080
|
shortWeekDays: [
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8081
|
+
Ee("Sun"),
|
|
8082
|
+
Ee("Mon"),
|
|
8083
|
+
Ee("Tue"),
|
|
8084
|
+
Ee("Wed"),
|
|
8085
|
+
Ee("Thu"),
|
|
8086
|
+
Ee("Fri"),
|
|
8087
|
+
Ee("Sat")
|
|
8074
8088
|
]
|
|
8075
8089
|
}
|
|
8076
8090
|
};
|
|
@@ -8394,7 +8408,7 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
|
|
|
8394
8408
|
}, Gs = (r, e) => {
|
|
8395
8409
|
const t = new Blob([r], { type: "text/csv;charset=utf-8;" }), n = window.URL.createObjectURL(t), i = document.createElement("a");
|
|
8396
8410
|
i.href = n, i.setAttribute("download", e), document.body.appendChild(i), i.click(), document.body.removeChild(i), window.URL.revokeObjectURL(n);
|
|
8397
|
-
}, Ws = m(
|
|
8411
|
+
}, Ws = m(Me)`
|
|
8398
8412
|
background: var(--color-bg-secondary, #f0ededff) !important;
|
|
8399
8413
|
font-size: 14px;
|
|
8400
8414
|
font-weight: 500;
|
|
@@ -8471,7 +8485,7 @@ const En = /* @__PURE__ */ fn(Bs), _s = ({ setDateFilter: r, setShowRange: e, se
|
|
|
8471
8485
|
ct.utils.book_append_sheet(a, o, "Data");
|
|
8472
8486
|
const l = ct.write(a, { bookType: "xlsx", type: "array" }), d = new Blob([l], { type: "application/octet-stream" }), c = URL.createObjectURL(d), u = document.createElement("a");
|
|
8473
8487
|
u.href = c, u.download = t, document.body.appendChild(u), u.click(), document.body.removeChild(u), URL.revokeObjectURL(c);
|
|
8474
|
-
}, Zs = m(
|
|
8488
|
+
}, Zs = m(Me)`
|
|
8475
8489
|
background: var(--color-bg-secondary, #f0ededff) !important;
|
|
8476
8490
|
font-size: 14px;
|
|
8477
8491
|
font-weight: 500;
|
|
@@ -8805,7 +8819,7 @@ const Ul = ({
|
|
|
8805
8819
|
needsBreadcrumb: a,
|
|
8806
8820
|
customTabFilter: l
|
|
8807
8821
|
}) => {
|
|
8808
|
-
const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p =
|
|
8822
|
+
const { hasPermission: d } = He(), { id: c } = jn(), u = Ue(), p = Pe(), f = we(() => {
|
|
8809
8823
|
const k = u.pathname.split("/");
|
|
8810
8824
|
return k[k.length - 1] || n;
|
|
8811
8825
|
}, [u.pathname, n]), [h, g] = M(null), [y, O] = M(null), P = (k) => {
|
|
@@ -8867,7 +8881,7 @@ const Ul = ({
|
|
|
8867
8881
|
getItemById: o,
|
|
8868
8882
|
onSetFormValues: a
|
|
8869
8883
|
}) => {
|
|
8870
|
-
const l =
|
|
8884
|
+
const l = Pe(), [d] = Ae.useForm(), [c, u] = M(r == "new"), [p, f] = M(null), h = async (y) => {
|
|
8871
8885
|
const O = window.location.pathname, P = O.substring(0, O.lastIndexOf("/"));
|
|
8872
8886
|
try {
|
|
8873
8887
|
if (p) {
|
|
@@ -8935,7 +8949,7 @@ const Ul = ({
|
|
|
8935
8949
|
handleSave: d
|
|
8936
8950
|
};
|
|
8937
8951
|
}, Kl = () => {
|
|
8938
|
-
const r =
|
|
8952
|
+
const r = Pe(), { setUser: e } = He(), [t, n] = M({
|
|
8939
8953
|
visible: !1,
|
|
8940
8954
|
token: ""
|
|
8941
8955
|
}), i = (a) => {
|
|
@@ -9066,7 +9080,7 @@ export {
|
|
|
9066
9080
|
be as ColumnFilterType,
|
|
9067
9081
|
Hl as ComingSoon,
|
|
9068
9082
|
Jo as ContactInfoModal,
|
|
9069
|
-
|
|
9083
|
+
De as ContentContainer,
|
|
9070
9084
|
tt as CreateModalButton,
|
|
9071
9085
|
le as DateHelper,
|
|
9072
9086
|
_l as DatePickerToISO,
|
|
@@ -9125,10 +9139,10 @@ export {
|
|
|
9125
9139
|
Yr as useFetch,
|
|
9126
9140
|
rn as useFilterDataSourceType,
|
|
9127
9141
|
Wl as useFormController,
|
|
9128
|
-
|
|
9142
|
+
$e as useModalStore,
|
|
9129
9143
|
ql as useNavigationGuard,
|
|
9130
9144
|
Yl as useNewDesignFormController,
|
|
9131
|
-
|
|
9145
|
+
ze as usePackageServices,
|
|
9132
9146
|
Kl as useTwoFactor,
|
|
9133
9147
|
He as useUserStore
|
|
9134
9148
|
};
|