aquasis-fe-components 1.3.2-g → 1.3.2-j
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/aquasis-fe-components.js +121 -122
- package/dist/aquasis-fe-components.umd.cjs +13 -13
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import './index.css';var TT = Object.defineProperty;
|
|
|
2
2
|
var kT = (e, t, n) => t in e ? TT(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var H3 = (e, t, n) => kT(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as u from "react";
|
|
5
|
-
import ee, { version as _T, isValidElement as uo, useContext as
|
|
5
|
+
import ee, { version as _T, isValidElement as uo, useContext as Vt, createContext as j2, useRef as Be, useLayoutEffect as DT, useEffect as zt, useState as Lt, forwardRef as S1, useMemo as Xt, Children as n0, createRef as AT, useCallback as b1, useImperativeHandle as d2, cloneElement as t5, Component as Cv, createElement as ea, Fragment as FT } from "react";
|
|
6
6
|
import * as jT from "react-dom";
|
|
7
7
|
import Pi, { createPortal as yv, unstable_batchedUpdates as Sv, flushSync as Ri } from "react-dom";
|
|
8
8
|
var za = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -4325,7 +4325,7 @@ var bb = function(t, n, r, a) {
|
|
|
4325
4325
|
return a && (i = a(i)), i;
|
|
4326
4326
|
}, Cb = "token";
|
|
4327
4327
|
function OD(e, t) {
|
|
4328
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r =
|
|
4328
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = Vt(rs), a = r.cache.instanceId, o = r.container, i = n.salt, c = i === void 0 ? "" : i, l = n.override, s = l === void 0 ? LD : l, d = n.formatToken, f = n.getComputedToken, m = n.cssVar, p = uD(function() {
|
|
4329
4329
|
return Object.assign.apply(Object, [{}].concat(we(t)));
|
|
4330
4330
|
}, t), h = yi(p), v = yi(s), g = m ? yi(m) : "", C = g5(Cb, [c, e.id, h, v, g], function() {
|
|
4331
4331
|
var b, y = f ? f(p, s, e) : bb(p, s, e, d), x = B({}, y), S = "";
|
|
@@ -4894,7 +4894,7 @@ var rA = function(t, n, r) {
|
|
|
4894
4894
|
}
|
|
4895
4895
|
}), [d, c, p];
|
|
4896
4896
|
}, Ib = "cssVar", aA = function(t, n) {
|
|
4897
|
-
var r = t.key, a = t.prefix, o = t.unitless, i = t.ignore, c = t.token, l = t.scope, s = l === void 0 ? "" : l, d =
|
|
4897
|
+
var r = t.key, a = t.prefix, o = t.unitless, i = t.ignore, c = t.token, l = t.scope, s = l === void 0 ? "" : l, d = Vt(rs), f = d.cache.instanceId, m = d.container, p = c._tokenKey, h = [].concat(we(t.path), [r, s, p]), v = g5(Ib, h, function() {
|
|
4898
4898
|
var g = n(), C = vb(g, r, {
|
|
4899
4899
|
prefix: a,
|
|
4900
4900
|
unitless: o,
|
|
@@ -6274,7 +6274,7 @@ const y1 = /* @__PURE__ */ u.createContext(!1), w5 = (e) => {
|
|
|
6274
6274
|
}, t);
|
|
6275
6275
|
};
|
|
6276
6276
|
function FA() {
|
|
6277
|
-
const e =
|
|
6277
|
+
const e = Vt(y1), t = Vt(ga);
|
|
6278
6278
|
return {
|
|
6279
6279
|
componentDisabled: e,
|
|
6280
6280
|
componentSize: t
|
|
@@ -7123,7 +7123,7 @@ const cr = {
|
|
|
7123
7123
|
const {
|
|
7124
7124
|
getPrefixCls: e,
|
|
7125
7125
|
iconPrefixCls: t
|
|
7126
|
-
} =
|
|
7126
|
+
} = Vt(lt);
|
|
7127
7127
|
return {
|
|
7128
7128
|
rootPrefixCls: e(),
|
|
7129
7129
|
iconPrefixCls: t
|
|
@@ -7143,7 +7143,7 @@ const cr = {
|
|
|
7143
7143
|
const {
|
|
7144
7144
|
csp: e,
|
|
7145
7145
|
iconPrefixCls: t
|
|
7146
|
-
} =
|
|
7146
|
+
} = Vt(lt);
|
|
7147
7147
|
return nC(t, e), e ?? {};
|
|
7148
7148
|
},
|
|
7149
7149
|
getResetStyles: (e) => [{
|
|
@@ -8003,7 +8003,7 @@ var VF = `
|
|
|
8003
8003
|
}
|
|
8004
8004
|
}
|
|
8005
8005
|
`, WF = function(t) {
|
|
8006
|
-
var n =
|
|
8006
|
+
var n = Vt(b5), r = n.csp, a = n.prefixCls, o = VF;
|
|
8007
8007
|
a && (o = o.replace(/anticon/g, a)), zt(function() {
|
|
8008
8008
|
var i = t.current, c = v0(i);
|
|
8009
8009
|
e2(o, "@ant-design-icons", {
|
|
@@ -8867,7 +8867,7 @@ var Ne = {
|
|
|
8867
8867
|
}
|
|
8868
8868
|
return [!!t, n];
|
|
8869
8869
|
}, bj = ["className", "style", "classNames", "styles"], LC = function(t) {
|
|
8870
|
-
var n = t.configList, r = t.placement, a = t.prefixCls, o = t.className, i = t.style, c = t.motion, l = t.onAllNoticeRemoved, s = t.onNoticeClose, d = t.stack, f =
|
|
8870
|
+
var n = t.configList, r = t.placement, a = t.prefixCls, o = t.className, i = t.style, c = t.motion, l = t.onAllNoticeRemoved, s = t.onNoticeClose, d = t.stack, f = Vt(xC), m = f.classNames, p = Be({}), h = Lt(null), v = ne(h, 2), g = v[0], C = v[1], b = Lt([]), y = ne(b, 2), x = y[0], S = y[1], w = n.map(function(I) {
|
|
8871
8871
|
return {
|
|
8872
8872
|
config: I,
|
|
8873
8873
|
key: String(I.key)
|
|
@@ -10079,7 +10079,7 @@ const eB = (e) => {
|
|
|
10079
10079
|
component: r
|
|
10080
10080
|
} = e, {
|
|
10081
10081
|
getPrefixCls: a
|
|
10082
|
-
} =
|
|
10082
|
+
} = Vt(lt), o = Be(null), i = a("wave"), [, c] = Jj(i), l = nB(o, Z(i, c), r);
|
|
10083
10083
|
if (ee.useEffect(() => {
|
|
10084
10084
|
const d = o.current;
|
|
10085
10085
|
if (!d || d.nodeType !== 1 || n)
|
|
@@ -12383,7 +12383,7 @@ const TH = {
|
|
|
12383
12383
|
getPrefixCls: I,
|
|
12384
12384
|
direction: $,
|
|
12385
12385
|
button: T
|
|
12386
|
-
} =
|
|
12386
|
+
} = Vt(lt), D = (n = z ?? (T == null ? void 0 : T.autoInsertSpace)) !== null && n !== void 0 ? n : !0, _ = I("btn", i), [A, H, F] = LH(_), V = Vt(y1), W = h ?? V, J = Vt(TC), Y = Xt(() => IH(o), [o]), [q, re] = Lt(Y.loading), [G, Q] = Lt(!1), te = l1(t, /* @__PURE__ */ AT()), K = n0.count(C) === 1 && !b && !ol(k);
|
|
12387
12387
|
zt(() => {
|
|
12388
12388
|
let Ee = null;
|
|
12389
12389
|
Y.delay > 0 ? Ee = setTimeout(() => {
|
|
@@ -12552,7 +12552,7 @@ const UC = (e) => {
|
|
|
12552
12552
|
close: i,
|
|
12553
12553
|
onCancel: c,
|
|
12554
12554
|
onConfirm: l
|
|
12555
|
-
} =
|
|
12555
|
+
} = Vt(Cc);
|
|
12556
12556
|
return a ? /* @__PURE__ */ ee.createElement(UC, {
|
|
12557
12557
|
isSilent: r,
|
|
12558
12558
|
actionFn: c,
|
|
@@ -12574,7 +12574,7 @@ const UC = (e) => {
|
|
|
12574
12574
|
okType: i,
|
|
12575
12575
|
onConfirm: c,
|
|
12576
12576
|
onOk: l
|
|
12577
|
-
} =
|
|
12577
|
+
} = Vt(Cc);
|
|
12578
12578
|
return /* @__PURE__ */ ee.createElement(UC, {
|
|
12579
12579
|
isSilent: n,
|
|
12580
12580
|
type: i || "primary",
|
|
@@ -15018,7 +15018,7 @@ function iy() {
|
|
|
15018
15018
|
return hm(d);
|
|
15019
15019
|
}, [d]), p = Be(m);
|
|
15020
15020
|
p.current = m;
|
|
15021
|
-
var h =
|
|
15021
|
+
var h = Vt(ba), v = c || h, g = v && v._init;
|
|
15022
15022
|
process.env.NODE_ENV !== "production" && dt(t.length === 2 ? c ? g : !0 : g, "useWatch requires a form instance since it can not auto detect from context.");
|
|
15023
15023
|
var C = An(r), b = Be(C);
|
|
15024
15024
|
return b.current = C, AV(C), zt(
|
|
@@ -15063,7 +15063,7 @@ const jV = (e) => {
|
|
|
15063
15063
|
status: n,
|
|
15064
15064
|
override: r
|
|
15065
15065
|
} = e;
|
|
15066
|
-
const a =
|
|
15066
|
+
const a = Vt(Yn), o = Xt(() => {
|
|
15067
15067
|
const i = Object.assign({}, a);
|
|
15068
15068
|
return r && delete i.isFormItemInput, n && (delete i.status, delete i.hasFeedback, delete i.feedbackIcon), i;
|
|
15069
15069
|
}, [n, r, a]);
|
|
@@ -15732,7 +15732,7 @@ const xm = () => {
|
|
|
15732
15732
|
cancelButtonProps: e,
|
|
15733
15733
|
cancelTextLocale: t,
|
|
15734
15734
|
onCancel: n
|
|
15735
|
-
} =
|
|
15735
|
+
} = Vt(Cc);
|
|
15736
15736
|
return /* @__PURE__ */ ee.createElement(hn, Object.assign({
|
|
15737
15737
|
onClick: n
|
|
15738
15738
|
}, e), t);
|
|
@@ -15743,7 +15743,7 @@ const xm = () => {
|
|
|
15743
15743
|
okType: n,
|
|
15744
15744
|
okTextLocale: r,
|
|
15745
15745
|
onOk: a
|
|
15746
|
-
} =
|
|
15746
|
+
} = Vt(Cc);
|
|
15747
15747
|
return /* @__PURE__ */ ee.createElement(hn, Object.assign({}, kC(n), {
|
|
15748
15748
|
loading: e,
|
|
15749
15749
|
onClick: a
|
|
@@ -16418,7 +16418,7 @@ const yW = (e) => {
|
|
|
16418
16418
|
prefixCls: r,
|
|
16419
16419
|
getContainer: a,
|
|
16420
16420
|
direction: o
|
|
16421
|
-
} = e, i = Bb(), c =
|
|
16421
|
+
} = e, i = Bb(), c = Vt(lt), l = Sy() || c.getPrefixCls(), s = r || `${l}-modal`;
|
|
16422
16422
|
let d = a;
|
|
16423
16423
|
return d === !1 && (d = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && f2(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ ee.createElement(K5, Object.assign({}, e, {
|
|
16424
16424
|
rootPrefixCls: l,
|
|
@@ -17223,7 +17223,7 @@ const zm = 24, HW = 4.5, VW = "topRight", WW = (e) => {
|
|
|
17223
17223
|
getPopupContainer: h,
|
|
17224
17224
|
notification: v,
|
|
17225
17225
|
direction: g
|
|
17226
|
-
} =
|
|
17226
|
+
} = Vt(lt), [, C] = Qn(), b = a || p("notification"), y = (M) => FW(M, n ?? zm, r ?? zm), x = () => Z({
|
|
17227
17227
|
[`${b}-rtl`]: c ?? g === "rtl"
|
|
17228
17228
|
}), S = () => jW(b), [w, L] = zC({
|
|
17229
17229
|
prefixCls: b,
|
|
@@ -20473,7 +20473,7 @@ const ed = (e) => {
|
|
|
20473
20473
|
componentName: t
|
|
20474
20474
|
} = e, {
|
|
20475
20475
|
getPrefixCls: n
|
|
20476
|
-
} =
|
|
20476
|
+
} = Vt(lt), r = n("empty");
|
|
20477
20477
|
switch (t) {
|
|
20478
20478
|
case "Table":
|
|
20479
20479
|
case "List":
|
|
@@ -20500,7 +20500,7 @@ const ed = (e) => {
|
|
|
20500
20500
|
const {
|
|
20501
20501
|
variant: o,
|
|
20502
20502
|
[e]: i
|
|
20503
|
-
} =
|
|
20503
|
+
} = Vt(lt), c = Vt(sy), l = i == null ? void 0 : i.variant;
|
|
20504
20504
|
let s;
|
|
20505
20505
|
typeof t < "u" ? s = t : n === !1 ? s = "borderless" : s = (a = (r = c ?? l) !== null && r !== void 0 ? r : o) !== null && a !== void 0 ? a : "outlined";
|
|
20506
20506
|
const d = IA.includes(s);
|
|
@@ -24407,7 +24407,7 @@ const np = {
|
|
|
24407
24407
|
onBreakpoint: g
|
|
24408
24408
|
} = e, C = bG(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
24409
24409
|
siderHook: b
|
|
24410
|
-
} =
|
|
24410
|
+
} = Vt(pG), [y, x] = Lt("collapsed" in e ? e.collapsed : i), [S, w] = Lt(!1);
|
|
24411
24411
|
zt(() => {
|
|
24412
24412
|
"collapsed" in e && x(e.collapsed);
|
|
24413
24413
|
}, [e.collapsed]);
|
|
@@ -24415,7 +24415,7 @@ const np = {
|
|
|
24415
24415
|
"collapsed" in e || x($), v == null || v($, T);
|
|
24416
24416
|
}, {
|
|
24417
24417
|
getPrefixCls: M
|
|
24418
|
-
} =
|
|
24418
|
+
} = Vt(lt), z = M("layout-sider", n), [E, O, P] = vG(z), k = Be();
|
|
24419
24419
|
k.current = ($) => {
|
|
24420
24420
|
w($.matches), g == null || g($.matches), y !== $.matches && L($.matches, "responsive");
|
|
24421
24421
|
}, zt(() => {
|
|
@@ -38783,7 +38783,7 @@ const cZ = (e) => {
|
|
|
38783
38783
|
const {
|
|
38784
38784
|
getPrefixCls: t,
|
|
38785
38785
|
direction: n
|
|
38786
|
-
} =
|
|
38786
|
+
} = Vt(lt), {
|
|
38787
38787
|
prefixCls: r,
|
|
38788
38788
|
className: a
|
|
38789
38789
|
} = e, o = t("input-group", r), i = t("input"), [c, l] = Ld(i), s = Z(o, {
|
|
@@ -38791,7 +38791,7 @@ const cZ = (e) => {
|
|
|
38791
38791
|
[`${o}-sm`]: e.size === "small",
|
|
38792
38792
|
[`${o}-compact`]: e.compact,
|
|
38793
38793
|
[`${o}-rtl`]: n === "rtl"
|
|
38794
|
-
}, l, a), d =
|
|
38794
|
+
}, l, a), d = Vt(Yn), f = Xt(() => Object.assign(Object.assign({}, d), {
|
|
38795
38795
|
isFormItemInput: !1
|
|
38796
38796
|
}), [d]);
|
|
38797
38797
|
return process.env.NODE_ENV !== "production" && Dt("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), c(/* @__PURE__ */ u.createElement("span", {
|
|
@@ -38894,7 +38894,7 @@ const Tc = /* @__PURE__ */ S1((e, t) => {
|
|
|
38894
38894
|
status: _,
|
|
38895
38895
|
hasFeedback: A,
|
|
38896
38896
|
feedbackIcon: H
|
|
38897
|
-
} =
|
|
38897
|
+
} = Vt(Yn), F = $a(_, o), V = lZ(e) || !!A, W = Be(V);
|
|
38898
38898
|
if (process.env.NODE_ENV !== "production") {
|
|
38899
38899
|
const K = Dt("Input");
|
|
38900
38900
|
zt(() => {
|
|
@@ -39733,7 +39733,7 @@ const JZ = (e) => {
|
|
|
39733
39733
|
direction: M,
|
|
39734
39734
|
getPopupContainer: z,
|
|
39735
39735
|
rangePicker: E
|
|
39736
|
-
} =
|
|
39736
|
+
} = Vt(lt), O = L("picker", o), {
|
|
39737
39737
|
compactSize: P,
|
|
39738
39738
|
compactItemClassnames: k
|
|
39739
39739
|
} = W2(O, M), N = L(), [R, I] = ko("rangePicker", y, p), $ = bn(O), [T, D, _] = kx(O, $);
|
|
@@ -39744,7 +39744,7 @@ const JZ = (e) => {
|
|
|
39744
39744
|
const [A] = gw(n, O), H = vw(c), F = n1((K) => {
|
|
39745
39745
|
var oe;
|
|
39746
39746
|
return (oe = f ?? P) !== null && oe !== void 0 ? oe : K;
|
|
39747
|
-
}), V = u.useContext(y1), W = m ?? V, J =
|
|
39747
|
+
}), V = u.useContext(y1), W = m ?? V, J = Vt(Yn), {
|
|
39748
39748
|
hasFeedback: Y,
|
|
39749
39749
|
status: q,
|
|
39750
39750
|
feedbackIcon: re
|
|
@@ -39837,7 +39837,7 @@ const eee = (e) => {
|
|
|
39837
39837
|
getPopupContainer: T,
|
|
39838
39838
|
// Consume different styles according to different names
|
|
39839
39839
|
[d]: D
|
|
39840
|
-
} =
|
|
39840
|
+
} = Vt(lt), _ = I("picker", v), {
|
|
39841
39841
|
compactSize: A,
|
|
39842
39842
|
compactItemClassnames: H
|
|
39843
39843
|
} = W2(_, $), F = u.useRef(null), [V, W] = ko("datePicker", k, w), J = bn(_), [Y, q, re] = kx(_, J);
|
|
@@ -39857,7 +39857,7 @@ const eee = (e) => {
|
|
|
39857
39857
|
const [ue, ie] = gw(m, _), fe = vw(C), pe = n1((Fe) => {
|
|
39858
39858
|
var Ae;
|
|
39859
39859
|
return (Ae = S ?? A) !== null && Ae !== void 0 ? Ae : Fe;
|
|
39860
|
-
}), ge = u.useContext(y1), Se = O ?? ge, he =
|
|
39860
|
+
}), ge = u.useContext(y1), Se = O ?? ge, he = Vt(Yn), {
|
|
39861
39861
|
hasFeedback: Ce,
|
|
39862
39862
|
status: Me,
|
|
39863
39863
|
feedbackIcon: $e
|
|
@@ -41002,7 +41002,7 @@ const Rw = () => {
|
|
|
41002
41002
|
status: e,
|
|
41003
41003
|
errors: t = [],
|
|
41004
41004
|
warnings: n = []
|
|
41005
|
-
} =
|
|
41005
|
+
} = Vt(Yn);
|
|
41006
41006
|
if (process.env.NODE_ENV !== "production") {
|
|
41007
41007
|
const r = Dt("Form.Item");
|
|
41008
41008
|
process.env.NODE_ENV !== "production" && r(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
|
|
@@ -41555,7 +41555,7 @@ const Zee = (e) => {
|
|
|
41555
41555
|
function ete() {
|
|
41556
41556
|
const {
|
|
41557
41557
|
form: e
|
|
41558
|
-
} =
|
|
41558
|
+
} = Vt(o2);
|
|
41559
41559
|
return e;
|
|
41560
41560
|
}
|
|
41561
41561
|
const rn = Pw;
|
|
@@ -41594,7 +41594,7 @@ function _r(e, t, n, r) {
|
|
|
41594
41594
|
};
|
|
41595
41595
|
}
|
|
41596
41596
|
var kc = /* @__PURE__ */ u.createContext(null), tte = function(t) {
|
|
41597
|
-
var n = t.visible, r = t.maskTransitionName, a = t.getContainer, o = t.prefixCls, i = t.rootClassName, c = t.icons, l = t.countRender, s = t.showSwitch, d = t.showProgress, f = t.current, m = t.transform, p = t.count, h = t.scale, v = t.minScale, g = t.maxScale, C = t.closeIcon, b = t.onActive, y = t.onClose, x = t.onZoomIn, S = t.onZoomOut, w = t.onRotateRight, L = t.onRotateLeft, M = t.onFlipX, z = t.onFlipY, E = t.onReset, O = t.toolbarRender, P = t.zIndex, k = t.image, N =
|
|
41597
|
+
var n = t.visible, r = t.maskTransitionName, a = t.getContainer, o = t.prefixCls, i = t.rootClassName, c = t.icons, l = t.countRender, s = t.showSwitch, d = t.showProgress, f = t.current, m = t.transform, p = t.count, h = t.scale, v = t.minScale, g = t.maxScale, C = t.closeIcon, b = t.onActive, y = t.onClose, x = t.onZoomIn, S = t.onZoomOut, w = t.onRotateRight, L = t.onRotateLeft, M = t.onFlipX, z = t.onFlipY, E = t.onReset, O = t.toolbarRender, P = t.zIndex, k = t.image, N = Vt(kc), R = c.rotateLeft, I = c.rotateRight, $ = c.zoomIn, T = c.zoomOut, D = c.close, _ = c.left, A = c.right, H = c.flipX, F = c.flipY, V = "".concat(o, "-operations-operation");
|
|
41598
41598
|
u.useEffect(function() {
|
|
41599
41599
|
var ae = function(ie) {
|
|
41600
41600
|
ie.keyCode === Ne.ESC && y();
|
|
@@ -41978,7 +41978,7 @@ var lte = ["fallback", "src", "imgRef"], ste = ["prefixCls", "src", "alt", "imag
|
|
|
41978
41978
|
}
|
|
41979
41979
|
}, o, s));
|
|
41980
41980
|
}, Fw = function(t) {
|
|
41981
|
-
var n = t.prefixCls, r = t.src, a = t.alt, o = t.imageInfo, i = t.fallback, c = t.movable, l = c === void 0 ? !0 : c, s = t.onClose, d = t.visible, f = t.icons, m = f === void 0 ? {} : f, p = t.rootClassName, h = t.closeIcon, v = t.getContainer, g = t.current, C = g === void 0 ? 0 : g, b = t.count, y = b === void 0 ? 1 : b, x = t.countRender, S = t.scaleStep, w = S === void 0 ? 0.5 : S, L = t.minScale, M = L === void 0 ? 1 : L, z = t.maxScale, E = z === void 0 ? 50 : z, O = t.transitionName, P = O === void 0 ? "zoom" : O, k = t.maskTransitionName, N = k === void 0 ? "fade" : k, R = t.imageRender, I = t.imgCommonProps, $ = t.toolbarRender, T = t.onTransform, D = t.onChange, _ = mt(t, ste), A = Be(), H =
|
|
41981
|
+
var n = t.prefixCls, r = t.src, a = t.alt, o = t.imageInfo, i = t.fallback, c = t.movable, l = c === void 0 ? !0 : c, s = t.onClose, d = t.visible, f = t.icons, m = f === void 0 ? {} : f, p = t.rootClassName, h = t.closeIcon, v = t.getContainer, g = t.current, C = g === void 0 ? 0 : g, b = t.count, y = b === void 0 ? 1 : b, x = t.countRender, S = t.scaleStep, w = S === void 0 ? 0.5 : S, L = t.minScale, M = L === void 0 ? 1 : L, z = t.maxScale, E = z === void 0 ? 50 : z, O = t.transitionName, P = O === void 0 ? "zoom" : O, k = t.maskTransitionName, N = k === void 0 ? "fade" : k, R = t.imageRender, I = t.imgCommonProps, $ = t.toolbarRender, T = t.onTransform, D = t.onChange, _ = mt(t, ste), A = Be(), H = Vt(kc), F = H && y > 1, V = H && y >= 1, W = Lt(!0), J = ne(W, 2), Y = J[0], q = J[1], re = nte(A, M, E, T), G = re.transform, Q = re.resetTransform, U = re.updateTransform, te = re.dispatchZoomChange, K = ate(A, l, d, w, G, U, te), oe = K.isMoving, ae = K.onMouseDown, ue = K.onWheel, ie = cte(A, l, d, M, G, U, te), fe = ie.isTouching, pe = ie.onTouchStart, ge = ie.onTouchMove, Se = ie.onTouchEnd, he = G.rotate, Ce = G.scale, Me = Z(j({}, "".concat(n, "-moving"), oe));
|
|
41982
41982
|
zt(function() {
|
|
41983
41983
|
Y || q(!0);
|
|
41984
41984
|
}, [Y]);
|
|
@@ -42214,7 +42214,7 @@ var hte = ["src", "alt", "onPreviewClose", "prefixCls", "previewPrefixCls", "pla
|
|
|
42214
42214
|
src: n,
|
|
42215
42215
|
isCustomPlaceholder: L,
|
|
42216
42216
|
fallback: d
|
|
42217
|
-
}), U = ne(Q, 3), te = U[0], K = U[1], oe = U[2], ae = Lt(null), ue = ne(ae, 2), ie = ue[0], fe = ue[1], pe =
|
|
42217
|
+
}), U = ne(Q, 3), te = U[0], K = U[1], oe = U[2], ae = Lt(null), ue = ne(ae, 2), ie = ue[0], fe = ue[1], pe = Vt(kc), ge = !!v, Se = function() {
|
|
42218
42218
|
G(!1), fe(null);
|
|
42219
42219
|
}, he = Z(i, y, S, j({}, "".concat(i, "-error"), oe === "error")), Ce = Xt(function() {
|
|
42220
42220
|
var He = {};
|
|
@@ -44267,7 +44267,7 @@ const mne = (e) => {
|
|
|
44267
44267
|
} = e, i = nL(e, ["prefixCls", "className", "avatar", "title", "description"]);
|
|
44268
44268
|
const {
|
|
44269
44269
|
getPrefixCls: c
|
|
44270
|
-
} =
|
|
44270
|
+
} = Vt(lt), l = c("list", t), s = Z(`${l}-item-meta`, n), d = /* @__PURE__ */ ee.createElement("div", {
|
|
44271
44271
|
className: `${l}-item-meta-content`
|
|
44272
44272
|
}, a && /* @__PURE__ */ ee.createElement("h4", {
|
|
44273
44273
|
className: `${l}-item-meta-title`
|
|
@@ -44292,10 +44292,10 @@ const mne = (e) => {
|
|
|
44292
44292
|
} = e, d = nL(e, ["prefixCls", "children", "actions", "extra", "styles", "className", "classNames", "colStyle"]), {
|
|
44293
44293
|
grid: f,
|
|
44294
44294
|
itemLayout: m
|
|
44295
|
-
} =
|
|
44295
|
+
} = Vt(Vd), {
|
|
44296
44296
|
getPrefixCls: p,
|
|
44297
44297
|
list: h
|
|
44298
|
-
} =
|
|
44298
|
+
} = Vt(lt), v = (L) => {
|
|
44299
44299
|
var M, z;
|
|
44300
44300
|
return Z((z = (M = h == null ? void 0 : h.item) === null || M === void 0 ? void 0 : M.classNames) === null || z === void 0 ? void 0 : z[L], l == null ? void 0 : l[L]);
|
|
44301
44301
|
}, g = (L) => {
|
|
@@ -44820,7 +44820,7 @@ const wne = /* @__PURE__ */ ee.forwardRef((e, t) => {
|
|
|
44820
44820
|
sync: r
|
|
44821
44821
|
} = e, {
|
|
44822
44822
|
getPrefixCls: a
|
|
44823
|
-
} =
|
|
44823
|
+
} = Vt(lt), o = Qi.prefixCls || a("message"), i = Vt(Iy), [c, l] = OC(Object.assign(Object.assign(Object.assign({}, n), {
|
|
44824
44824
|
prefixCls: o
|
|
44825
44825
|
}), i.message));
|
|
44826
44826
|
return ee.useImperativeHandle(t, () => {
|
|
@@ -45064,7 +45064,7 @@ const Tne = /* @__PURE__ */ ee.forwardRef((e, t) => {
|
|
|
45064
45064
|
sync: r
|
|
45065
45065
|
} = e, {
|
|
45066
45066
|
getPrefixCls: a
|
|
45067
|
-
} =
|
|
45067
|
+
} = Vt(lt), o = Zi.prefixCls || a("notification"), i = Vt(Iy), [c, l] = Ry(Object.assign(Object.assign(Object.assign({}, n), {
|
|
45068
45068
|
prefixCls: o
|
|
45069
45069
|
}), i.notification));
|
|
45070
45070
|
return ee.useEffect(r, []), ee.useImperativeHandle(t, () => {
|
|
@@ -67887,7 +67887,7 @@ function GI({
|
|
|
67887
67887
|
const {
|
|
67888
67888
|
i18n: h,
|
|
67889
67889
|
defaultNS: v
|
|
67890
|
-
} =
|
|
67890
|
+
} = Vt(qI) || {}, g = d || h || p7(), C = f || (g == null ? void 0 : g.t.bind(g));
|
|
67891
67891
|
return n$e({
|
|
67892
67892
|
children: e,
|
|
67893
67893
|
count: t,
|
|
@@ -67917,7 +67917,7 @@ const o$e = (e, t) => {
|
|
|
67917
67917
|
} = t, {
|
|
67918
67918
|
i18n: r,
|
|
67919
67919
|
defaultNS: a
|
|
67920
|
-
} =
|
|
67920
|
+
} = Vt(qI) || {}, o = n || r || p7();
|
|
67921
67921
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new a$e()), !o) {
|
|
67922
67922
|
j0("You will need to pass in an i18next instance by using initReactI18next");
|
|
67923
67923
|
const M = (E, O) => or(O) ? O : eo(O) && or(O.defaultValue) ? O.defaultValue : Array.isArray(E) ? E[E.length - 1] : E, z = [M, {}, !1];
|
|
@@ -70031,7 +70031,7 @@ const ZNe = ({ size: e }) => {
|
|
|
70031
70031
|
}
|
|
70032
70032
|
) }) });
|
|
70033
70033
|
}, eOe = c5(), $Pe = eOe(ZNe);
|
|
70034
|
-
var
|
|
70034
|
+
var Ht = /* @__PURE__ */ ((e) => (e.App = "idApp", e.Version = "version", e.DeployDate = "releaseDate", e.ReleasePages = "gaReleasePages", e.Fields = "gaReleasePagesContent", e.Title = "title", e.Description = "description", e.Image = "idFile", e.Order = "order", e.NoImage = "noImage", e))(Ht || {}), S7 = /* @__PURE__ */ ((e) => (e.GetApps = "GetApps", e.GetReleases = "GetReleases", e.GetUser = "GetUser", e))(S7 || {});
|
|
70035
70035
|
const tOe = async () => {
|
|
70036
70036
|
const e = window.globalAuthUrl, { data: t } = await F2.get(`${e}/getApps`);
|
|
70037
70037
|
return t;
|
|
@@ -70882,16 +70882,16 @@ const POe = {
|
|
|
70882
70882
|
}
|
|
70883
70883
|
}), { updTheme: NPe, updLanguage: OPe, updateCurrSlide: IOe } = ROe.actions, TOe = ({ index: e }) => {
|
|
70884
70884
|
const { t } = g2(), { requiredField: n } = $3();
|
|
70885
|
-
return /* @__PURE__ */ be.jsx(rn.List, { name: [e,
|
|
70885
|
+
return /* @__PURE__ */ be.jsx(rn.List, { name: [e, Ht.Fields], children: (r, { remove: a }) => /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
|
|
70886
70886
|
/* @__PURE__ */ be.jsx(B0, { fieldName: "idReleasePage", hidden: !0 }),
|
|
70887
70887
|
/* @__PURE__ */ be.jsx(vr, { gap: 16, vertical: !0, children: r.map(({ key: o, name: i, ...c }) => /* @__PURE__ */ be.jsxs(vr, { gap: 6, align: "center", children: [
|
|
70888
70888
|
/* @__PURE__ */ be.jsxs(vr, { vertical: !0, gap: 2, style: { width: "100%" }, children: [
|
|
70889
|
-
/* @__PURE__ */ be.jsx(rn.Item, { ...c, name: [i,
|
|
70889
|
+
/* @__PURE__ */ be.jsx(rn.Item, { ...c, name: [i, Ht.Title], rules: n, noStyle: !0, children: /* @__PURE__ */ be.jsx(Hr, { placeholder: t("RELEASE-NOTES.FORM.FIELDS.TITLE"), maxLength: 500 }) }),
|
|
70890
70890
|
/* @__PURE__ */ be.jsx(
|
|
70891
70891
|
rn.Item,
|
|
70892
70892
|
{
|
|
70893
70893
|
...c,
|
|
70894
|
-
name: [i,
|
|
70894
|
+
name: [i, Ht.Description],
|
|
70895
70895
|
rules: n,
|
|
70896
70896
|
noStyle: !0,
|
|
70897
70897
|
children: /* @__PURE__ */ be.jsx(_d, { autoSize: { minRows: 2 }, placeholder: t("RELEASE-NOTES.FORM.FIELDS.DESCRIPTION") })
|
|
@@ -70910,21 +70910,21 @@ const POe = {
|
|
|
70910
70910
|
] }, o)) })
|
|
70911
70911
|
] }) });
|
|
70912
70912
|
}, kOe = S1((e, t) => {
|
|
70913
|
-
const [n, r] = Lt([]), { t: a } = g2(), o = f$e(), i = rn.useFormInstance(), c = g7(XI), l = (p) => o(IOe(p)), s = rn.useWatch(
|
|
70913
|
+
const [n, r] = Lt([]), { t: a } = g2(), o = f$e(), i = rn.useFormInstance(), c = g7(XI), l = (p) => o(IOe(p)), s = rn.useWatch(Ht.ReleasePages, i), d = (p) => ({ file: h, fileList: v }) => {
|
|
70914
70914
|
const g = p[0], C = p[1], b = s[g];
|
|
70915
70915
|
r(v), vM(h.originFileObj, (y) => {
|
|
70916
|
-
i.setFieldValue(
|
|
70916
|
+
i.setFieldValue(Ht.ReleasePages, s.toSpliced(g, 1, { ...b, [C]: y }));
|
|
70917
70917
|
});
|
|
70918
70918
|
}, f = (p) => () => {
|
|
70919
70919
|
var b;
|
|
70920
|
-
const h = s == null ? void 0 : s[p], g = [...((b = s == null ? void 0 : s[p]) == null ? void 0 : b[
|
|
70921
|
-
i.setFieldValue(
|
|
70920
|
+
const h = s == null ? void 0 : s[p], g = [...((b = s == null ? void 0 : s[p]) == null ? void 0 : b[Ht.Fields]) ?? [], {}], C = s.toSpliced(p, 1, { ...h, [Ht.Fields]: g });
|
|
70921
|
+
i.setFieldValue(Ht.ReleasePages, C);
|
|
70922
70922
|
}, m = /* @__PURE__ */ be.jsx(z1, { justify: "center", align: "middle", children: /* @__PURE__ */ be.jsxs(Xs, { direction: "vertical", children: [
|
|
70923
70923
|
/* @__PURE__ */ be.jsx("p", { className: "ant-upload-drag-icon", children: /* @__PURE__ */ be.jsx(qd, {}) }),
|
|
70924
70924
|
/* @__PURE__ */ be.jsx("p", { className: "ant-upload-text", children: a("GENERAL.UPLOAD_LABEL") }),
|
|
70925
70925
|
/* @__PURE__ */ be.jsx("p", { className: "ant-upload-hint", children: a("GENERAL.JPG_PNG_WARNING") })
|
|
70926
70926
|
] }) });
|
|
70927
|
-
return /* @__PURE__ */ be.jsx(rn.List, { name:
|
|
70927
|
+
return /* @__PURE__ */ be.jsx(rn.List, { name: Ht.ReleasePages, children: (p) => /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
|
|
70928
70928
|
/* @__PURE__ */ be.jsx(B0, { fieldName: "idRelease", hidden: !0 }),
|
|
70929
70929
|
/* @__PURE__ */ be.jsx(B0, { fieldName: "idReleasePage", hidden: !0 }),
|
|
70930
70930
|
/* @__PURE__ */ be.jsx(
|
|
@@ -70932,18 +70932,16 @@ const POe = {
|
|
|
70932
70932
|
{
|
|
70933
70933
|
infinite: !1,
|
|
70934
70934
|
ref: t,
|
|
70935
|
-
|
|
70936
|
-
beforeChange: (h, v) =>
|
|
70937
|
-
console.log({ curr: h, next: v }), l(v);
|
|
70938
|
-
},
|
|
70935
|
+
initialSlide: c,
|
|
70936
|
+
beforeChange: (h, v) => l(v),
|
|
70939
70937
|
adaptiveHeight: !0,
|
|
70940
70938
|
children: p.map(({ key: h, name: v, ...g }) => {
|
|
70941
70939
|
var y, x;
|
|
70942
|
-
const C = (y = s == null ? void 0 : s[v]) == null ? void 0 : y[
|
|
70940
|
+
const C = (y = s == null ? void 0 : s[v]) == null ? void 0 : y[Ht.Image], b = (x = s == null ? void 0 : s[v]) == null ? void 0 : x[Ht.NoImage];
|
|
70943
70941
|
return /* @__PURE__ */ be.jsx("div", { children: /* @__PURE__ */ be.jsxs(z1, { gutter: [8, 16], style: { marginBottom: 35 }, children: [
|
|
70944
70942
|
/* @__PURE__ */ be.jsx(On, { span: 24, children: /* @__PURE__ */ be.jsxs(z1, { gutter: 8, children: [
|
|
70945
70943
|
/* @__PURE__ */ be.jsx(On, { span: b ? 24 : 12, children: /* @__PURE__ */ be.jsx(TOe, { index: v }) }),
|
|
70946
|
-
!b && /* @__PURE__ */ be.jsx(On, { span: 12, children: /* @__PURE__ */ be.jsx(Ra, { bordered: !0, styles: { body: { display: "flex", justifyContent: "center", padding: 2 } }, children: /* @__PURE__ */ be.jsx(rn.Item, { ...g, name: [v,
|
|
70944
|
+
!b && /* @__PURE__ */ be.jsx(On, { span: 12, children: /* @__PURE__ */ be.jsx(Ra, { bordered: !0, styles: { body: { display: "flex", justifyContent: "center", padding: 2 } }, children: /* @__PURE__ */ be.jsx(rn.Item, { ...g, name: [v, Ht.Image], noStyle: !0, children: /* @__PURE__ */ be.jsx(
|
|
70947
70945
|
i3,
|
|
70948
70946
|
{
|
|
70949
70947
|
listType: "picture",
|
|
@@ -70951,7 +70949,7 @@ const POe = {
|
|
|
70951
70949
|
showUploadList: !1,
|
|
70952
70950
|
fileList: n,
|
|
70953
70951
|
beforeUpload: Woe,
|
|
70954
|
-
onChange: d([v,
|
|
70952
|
+
onChange: d([v, Ht.Image]),
|
|
70955
70953
|
children: C ? /* @__PURE__ */ be.jsx(Js, { src: C, preview: !1, style: { maxHeight: 600 } }) : m
|
|
70956
70954
|
}
|
|
70957
70955
|
) }) }) })
|
|
@@ -70961,15 +70959,15 @@ const POe = {
|
|
|
70961
70959
|
/* @__PURE__ */ be.jsx(
|
|
70962
70960
|
v$e,
|
|
70963
70961
|
{
|
|
70964
|
-
fieldName: [v,
|
|
70962
|
+
fieldName: [v, Ht.NoImage],
|
|
70965
70963
|
label: a("GENERAL.DO_NOT_USE_IMAGE"),
|
|
70966
70964
|
onChange: (S) => {
|
|
70967
70965
|
const w = S.target.checked, L = s.map((M, z) => ({
|
|
70968
70966
|
...M,
|
|
70969
|
-
[
|
|
70970
|
-
[
|
|
70967
|
+
[Ht.NoImage]: z === v ? w : M[Ht.NoImage],
|
|
70968
|
+
[Ht.Image]: z === v && w ? void 0 : M[Ht.Image]
|
|
70971
70969
|
}));
|
|
70972
|
-
i.setFieldValue(
|
|
70970
|
+
i.setFieldValue(Ht.ReleasePages, L);
|
|
70973
70971
|
}
|
|
70974
70972
|
}
|
|
70975
70973
|
)
|
|
@@ -70987,18 +70985,15 @@ const POe = {
|
|
|
70987
70985
|
beforeCloseModal: a,
|
|
70988
70986
|
afterSubmit: o
|
|
70989
70987
|
}) => {
|
|
70990
|
-
const [i, c] = Lt(!1), [l, s] = Lt(!1), [d] = rn.useForm(), { t: f } = g2(), m = E3(), { getColor: p } = p$e(), h = Be(null), { requiredField: v } = $3(), g = g7(XI), { data: C } = ST(), b = rn.useWatch(
|
|
70988
|
+
const [i, c] = Lt(!1), [l, s] = Lt(!1), [d] = rn.useForm(), { t: f } = g2(), m = E3(), { getColor: p } = p$e(), h = Be(null), { requiredField: v } = $3(), g = g7(XI), { data: C } = ST(), b = rn.useWatch(Ht.ReleasePages, d), y = () => d.resetFields();
|
|
70991
70989
|
zt(() => {
|
|
70992
|
-
var $;
|
|
70993
|
-
b != null && b.length && (($ = h.current) == null || $.goTo(b.length - 1));
|
|
70994
|
-
}, [b]), zt(() => {
|
|
70995
70990
|
n && (c(!0), d.setFieldsValue({
|
|
70996
70991
|
...n,
|
|
70997
|
-
[
|
|
70992
|
+
[Ht.ReleasePages]: n[Ht.ReleasePages].map(($) => ({
|
|
70998
70993
|
...$,
|
|
70999
|
-
[
|
|
70994
|
+
[Ht.Image]: uf($[Ht.Image])
|
|
71000
70995
|
})),
|
|
71001
|
-
[
|
|
70996
|
+
[Ht.DeployDate]: e1(n[Ht.DeployDate])
|
|
71002
70997
|
}));
|
|
71003
70998
|
}, [n]);
|
|
71004
70999
|
const x = () => {
|
|
@@ -71006,24 +71001,28 @@ const POe = {
|
|
|
71006
71001
|
}, S = () => {
|
|
71007
71002
|
a ? new Promise(($) => $(a())).then(() => c(!1)) : c(!1);
|
|
71008
71003
|
}, w = () => {
|
|
71009
|
-
|
|
71004
|
+
var T;
|
|
71005
|
+
d.setFieldValue(Ht.ReleasePages, [
|
|
71010
71006
|
...b,
|
|
71011
|
-
{ [
|
|
71007
|
+
{ [Ht.Fields]: [{}] }
|
|
71012
71008
|
]);
|
|
71009
|
+
const $ = d.getFieldValue(Ht.ReleasePages);
|
|
71010
|
+
(T = h.current) == null || T.goTo($.length - 1);
|
|
71013
71011
|
}, L = () => {
|
|
71014
|
-
|
|
71015
|
-
|
|
71016
|
-
|
|
71017
|
-
);
|
|
71012
|
+
var D;
|
|
71013
|
+
const $ = b.filter((_, A) => A !== g);
|
|
71014
|
+
d.setFieldValue(Ht.ReleasePages, $);
|
|
71015
|
+
const T = d.getFieldValue(Ht.ReleasePages);
|
|
71016
|
+
(D = h.current) == null || D.goTo(T.length - 1);
|
|
71018
71017
|
}, M = ($) => {
|
|
71019
71018
|
const T = {
|
|
71020
71019
|
...$,
|
|
71021
|
-
[
|
|
71022
|
-
[
|
|
71020
|
+
[Ht.DeployDate]: e1($[Ht.DeployDate]).format(h_),
|
|
71021
|
+
[Ht.ReleasePages]: $[Ht.ReleasePages].map((D, _) => ({
|
|
71023
71022
|
...D,
|
|
71024
|
-
[
|
|
71023
|
+
[Ht.Image]: bM(D[Ht.Image]),
|
|
71025
71024
|
order: _,
|
|
71026
|
-
[
|
|
71025
|
+
[Ht.Fields]: D[Ht.Fields].map((A, H) => ({ ...A, order: H }))
|
|
71027
71026
|
}))
|
|
71028
71027
|
};
|
|
71029
71028
|
rOe(T).then(() => {
|
|
@@ -71086,8 +71085,8 @@ const POe = {
|
|
|
71086
71085
|
] }), k = ($) => {
|
|
71087
71086
|
s(t ? $ : !1);
|
|
71088
71087
|
}, N = {
|
|
71089
|
-
[
|
|
71090
|
-
[
|
|
71088
|
+
[Ht.ReleasePages]: [{ [Ht.Fields]: [{}] }],
|
|
71089
|
+
[Ht.DeployDate]: e1()
|
|
71091
71090
|
}, R = Koe(C ?? [], "appName", "id"), I = Xt(() => f(`${Gr}.${n ? "UPD_RELEASE_NOTE" : "ADD_RELEASE_NOTE"}`), [m]);
|
|
71092
71091
|
return /* @__PURE__ */ be.jsxs(be.Fragment, { children: [
|
|
71093
71092
|
/* @__PURE__ */ be.jsx(p1, { title: t, open: l, onOpenChange: k, children: /* @__PURE__ */ be.jsx(
|
|
@@ -71106,7 +71105,7 @@ const POe = {
|
|
|
71106
71105
|
/* @__PURE__ */ be.jsx(On, { span: 8, children: /* @__PURE__ */ be.jsx(
|
|
71107
71106
|
g$e,
|
|
71108
71107
|
{
|
|
71109
|
-
fieldName:
|
|
71108
|
+
fieldName: Ht.App,
|
|
71110
71109
|
label: f(`${Gr}.FORM.FIELDS.APP`),
|
|
71111
71110
|
placeholder: f(`${Gr}.FORM.FIELDS.APP`, { context: "PLACEHOLDER" }),
|
|
71112
71111
|
options: R,
|
|
@@ -71116,7 +71115,7 @@ const POe = {
|
|
|
71116
71115
|
/* @__PURE__ */ be.jsx(On, { span: 8, children: /* @__PURE__ */ be.jsx(
|
|
71117
71116
|
hr,
|
|
71118
71117
|
{
|
|
71119
|
-
fieldName:
|
|
71118
|
+
fieldName: Ht.Version,
|
|
71120
71119
|
label: f(`${Gr}.FORM.FIELDS.VERSION`),
|
|
71121
71120
|
placeholder: "0.0.0",
|
|
71122
71121
|
tooltip: f(`${Gr}.FORM.FIELDS.VERSION`, { context: "TOOLTIP" }),
|
|
@@ -71136,7 +71135,7 @@ const POe = {
|
|
|
71136
71135
|
/* @__PURE__ */ be.jsx(On, { span: 8, children: /* @__PURE__ */ be.jsx(
|
|
71137
71136
|
h$e,
|
|
71138
71137
|
{
|
|
71139
|
-
fieldName:
|
|
71138
|
+
fieldName: Ht.DeployDate,
|
|
71140
71139
|
label: f(`${Gr}.FORM.FIELDS.DEPLOY_DATE`),
|
|
71141
71140
|
format: g_,
|
|
71142
71141
|
rules: v
|
|
@@ -71190,7 +71189,7 @@ const POe = {
|
|
|
71190
71189
|
}
|
|
71191
71190
|
}), jOe = ({ showAddBtn: e, ...t }) => e ? /* @__PURE__ */ be.jsx(yu, { children: /* @__PURE__ */ be.jsx(_6, { client: tv, children: /* @__PURE__ */ be.jsx(_Oe, { ...t }) }) }) : /* @__PURE__ */ be.jsx(yu, { children: /* @__PURE__ */ be.jsx(_6, { client: tv, children: /* @__PURE__ */ be.jsx(FOe, {}) }) }), BOe = c5(), PPe = BOe(jOe);
|
|
71192
71191
|
var f1 = /* @__PURE__ */ ((e) => (e.FirstName = "firstName", e.LastName = "lastName", e.Username = "username", e.Email = "email", e.ProfilePicture = "profilePicture", e.Password = "password", e.ConfirmPassword = "confirmPassword", e.Apps = "userRolesApp", e.AppId = "idApp", e.RoleId = "roleId", e.Tenants = "tenantId", e.Active = "isActive", e.Private = "isPrivate", e.User = "userId", e.Hierarchy = "hierarchy", e))(f1 || {}), t0 = /* @__PURE__ */ ((e) => (e.Tab1 = "PROFILE", e.Tab2 = "MANAGEMENT", e))(t0 || {}), OT = /* @__PURE__ */ ((e) => (e[e.GA_USER_EMPTY = 0] = "GA_USER_EMPTY", e[e.GA_EMAIL_EMPTY = 1] = "GA_EMAIL_EMPTY", e[e.GA_USER_ID_EMPTY = 2] = "GA_USER_ID_EMPTY", e[e.GA_PASS_EMPTY = 3] = "GA_PASS_EMPTY", e[e.GA_PASS_NOT_MATCH = 4] = "GA_PASS_NOT_MATCH", e[e.GA_USERNAME_EXISTS = 5] = "GA_USERNAME_EXISTS", e[e.GA_EMAIL_EXISTS = 6] = "GA_EMAIL_EXISTS", e[e.GA_NO_ROLES_APP_DEFINED = 7] = "GA_NO_ROLES_APP_DEFINED", e[e.GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP = 8] = "GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP", e[e.GA_CANNOT_GET_USER_INFO = 9] = "GA_CANNOT_GET_USER_INFO", e[e.GA_ERROR_CHAGING_PASS = 10] = "GA_ERROR_CHAGING_PASS", e[e.GA_NO_TENANTS_ROLES_DEFINDED = 11] = "GA_NO_TENANTS_ROLES_DEFINDED", e[e.GA_PASS_DOES_NOT_MEET_REQUIREMENTS = 12] = "GA_PASS_DOES_NOT_MEET_REQUIREMENTS", e))(OT || {});
|
|
71193
|
-
const
|
|
71192
|
+
const Wt = (e) => typeof e == "string", ii = () => {
|
|
71194
71193
|
let e, t;
|
|
71195
71194
|
const n = new Promise((r, a) => {
|
|
71196
71195
|
e = r, t = a;
|
|
@@ -71200,8 +71199,8 @@ const Vt = (e) => typeof e == "string", ii = () => {
|
|
|
71200
71199
|
e.forEach((r) => {
|
|
71201
71200
|
t[r] && (n[r] = t[r]);
|
|
71202
71201
|
});
|
|
71203
|
-
}, VOe = /###/g, rv = (e) => e && e.indexOf("###") > -1 ? e.replace(VOe, ".") : e, av = (e) => !e ||
|
|
71204
|
-
const r =
|
|
71202
|
+
}, VOe = /###/g, rv = (e) => e && e.indexOf("###") > -1 ? e.replace(VOe, ".") : e, av = (e) => !e || Wt(e), Oi = (e, t, n) => {
|
|
71203
|
+
const r = Wt(t) ? t.split(".") : t;
|
|
71205
71204
|
let a = 0;
|
|
71206
71205
|
for (; a < r.length - 1; ) {
|
|
71207
71206
|
if (av(e)) return {};
|
|
@@ -71243,7 +71242,7 @@ const Vt = (e) => typeof e == "string", ii = () => {
|
|
|
71243
71242
|
return r !== void 0 ? r : q0(t, n);
|
|
71244
71243
|
}, PT = (e, t, n) => {
|
|
71245
71244
|
for (const r in t)
|
|
71246
|
-
r !== "__proto__" && r !== "constructor" && (r in e ?
|
|
71245
|
+
r !== "__proto__" && r !== "constructor" && (r in e ? Wt(e[r]) || e[r] instanceof String || Wt(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : PT(e[r], t[r], n) : e[r] = t[r]);
|
|
71247
71246
|
return e;
|
|
71248
71247
|
}, Wa = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
71249
71248
|
var UOe = {
|
|
@@ -71254,7 +71253,7 @@ var UOe = {
|
|
|
71254
71253
|
"'": "'",
|
|
71255
71254
|
"/": "/"
|
|
71256
71255
|
};
|
|
71257
|
-
const qOe = (e) =>
|
|
71256
|
+
const qOe = (e) => Wt(e) ? e.replace(/[&<>"'\/]/g, (t) => UOe[t]) : e;
|
|
71258
71257
|
class GOe {
|
|
71259
71258
|
constructor(t) {
|
|
71260
71259
|
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -71344,7 +71343,7 @@ class Y0 {
|
|
|
71344
71343
|
return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
|
|
71345
71344
|
}
|
|
71346
71345
|
forward(t, n, r, a) {
|
|
71347
|
-
return a && !this.debug ? null : (
|
|
71346
|
+
return a && !this.debug ? null : (Wt(t[0]) && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
71348
71347
|
}
|
|
71349
71348
|
create(t) {
|
|
71350
71349
|
return new Y0(this.logger, {
|
|
@@ -71411,9 +71410,9 @@ class iv extends A3 {
|
|
|
71411
71410
|
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
71412
71411
|
const o = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, i = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
71413
71412
|
let c;
|
|
71414
|
-
t.indexOf(".") > -1 ? c = t.split(".") : (c = [t, n], r && (Array.isArray(r) ? c.push(...r) :
|
|
71413
|
+
t.indexOf(".") > -1 ? c = t.split(".") : (c = [t, n], r && (Array.isArray(r) ? c.push(...r) : Wt(r) && o ? c.push(...r.split(o)) : c.push(r)));
|
|
71415
71414
|
const l = q0(this.data, c);
|
|
71416
|
-
return !l && !n && !r && t.indexOf(".") > -1 && (t = c[0], n = c[1], r = c.slice(2).join(".")), l || !i || !
|
|
71415
|
+
return !l && !n && !r && t.indexOf(".") > -1 && (t = c[0], n = c[1], r = c.slice(2).join(".")), l || !i || !Wt(r) ? l : e5((d = (s = this.data) == null ? void 0 : s[t]) == null ? void 0 : d[n], r, o);
|
|
71417
71416
|
}
|
|
71418
71417
|
addResource(t, n, r, a) {
|
|
71419
71418
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -71428,7 +71427,7 @@ class iv extends A3 {
|
|
|
71428
71427
|
silent: !1
|
|
71429
71428
|
};
|
|
71430
71429
|
for (const o in r)
|
|
71431
|
-
(
|
|
71430
|
+
(Wt(r[o]) || Array.isArray(r[o])) && this.addResource(t, n, o, r[o], {
|
|
71432
71431
|
silent: !0
|
|
71433
71432
|
});
|
|
71434
71433
|
a.silent || this.emit("added", t, n, r);
|
|
@@ -71506,14 +71505,14 @@ class X0 extends A3 {
|
|
|
71506
71505
|
if (l && l.length > 0)
|
|
71507
71506
|
return {
|
|
71508
71507
|
key: t,
|
|
71509
|
-
namespaces:
|
|
71508
|
+
namespaces: Wt(o) ? [o] : o
|
|
71510
71509
|
};
|
|
71511
71510
|
const s = t.split(r);
|
|
71512
71511
|
(r !== a || r === a && this.options.ns.indexOf(s[0]) > -1) && (o = s.shift()), t = s.join(a);
|
|
71513
71512
|
}
|
|
71514
71513
|
return {
|
|
71515
71514
|
key: t,
|
|
71516
|
-
namespaces:
|
|
71515
|
+
namespaces: Wt(o) ? [o] : o
|
|
71517
71516
|
};
|
|
71518
71517
|
}
|
|
71519
71518
|
translate(t, n, r) {
|
|
@@ -71548,8 +71547,8 @@ class X0 extends A3 {
|
|
|
71548
71547
|
}
|
|
71549
71548
|
const f = this.resolve(t, n);
|
|
71550
71549
|
let m = f == null ? void 0 : f.res;
|
|
71551
|
-
const p = (f == null ? void 0 : f.usedKey) || i, h = (f == null ? void 0 : f.exactUsedKey) || i, v = Object.prototype.toString.apply(m), g = ["[object Number]", "[object Function]", "[object RegExp]"], C = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, y = !
|
|
71552
|
-
if (b && m && y && g.indexOf(v) < 0 && !(
|
|
71550
|
+
const p = (f == null ? void 0 : f.usedKey) || i, h = (f == null ? void 0 : f.exactUsedKey) || i, v = Object.prototype.toString.apply(m), g = ["[object Number]", "[object Function]", "[object RegExp]"], C = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, y = !Wt(m) && typeof m != "boolean" && typeof m != "number";
|
|
71551
|
+
if (b && m && y && g.indexOf(v) < 0 && !(Wt(C) && Array.isArray(m))) {
|
|
71553
71552
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
71554
71553
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
71555
71554
|
const x = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, m, {
|
|
@@ -71571,11 +71570,11 @@ class X0 extends A3 {
|
|
|
71571
71570
|
}
|
|
71572
71571
|
m = S;
|
|
71573
71572
|
}
|
|
71574
|
-
} else if (b &&
|
|
71573
|
+
} else if (b && Wt(C) && Array.isArray(m))
|
|
71575
71574
|
m = m.join(C), m && (m = this.extendTranslation(m, t, n, r));
|
|
71576
71575
|
else {
|
|
71577
71576
|
let x = !1, S = !1;
|
|
71578
|
-
const w = n.count !== void 0 && !
|
|
71577
|
+
const w = n.count !== void 0 && !Wt(n.count), L = X0.hasDefaultValue(n), M = w ? this.pluralResolver.getSuffix(s, n.count, n) : "", z = n.ordinal && w ? this.pluralResolver.getSuffix(s, n.count, {
|
|
71579
71578
|
ordinal: !1
|
|
71580
71579
|
}) : "", E = w && !n.ordinal && n.count === 0, O = E && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${M}`] || n[`defaultValue${z}`] || n.defaultValue;
|
|
71581
71580
|
!this.isValidLookup(m) && L && (x = !0, m = O), this.isValidLookup(m) || (S = !0, m = i);
|
|
@@ -71628,13 +71627,13 @@ class X0 extends A3 {
|
|
|
71628
71627
|
...r.interpolation
|
|
71629
71628
|
}
|
|
71630
71629
|
});
|
|
71631
|
-
const f =
|
|
71630
|
+
const f = Wt(t) && (((d = r == null ? void 0 : r.interpolation) == null ? void 0 : d.skipOnVariables) !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
71632
71631
|
let m;
|
|
71633
71632
|
if (f) {
|
|
71634
71633
|
const h = t.match(this.interpolator.nestingRegexp);
|
|
71635
71634
|
m = h && h.length;
|
|
71636
71635
|
}
|
|
71637
|
-
let p = r.replace && !
|
|
71636
|
+
let p = r.replace && !Wt(r.replace) ? r.replace : r;
|
|
71638
71637
|
if (this.options.interpolation.defaultVariables && (p = {
|
|
71639
71638
|
...this.options.interpolation.defaultVariables,
|
|
71640
71639
|
...p
|
|
@@ -71648,7 +71647,7 @@ class X0 extends A3 {
|
|
|
71648
71647
|
return (o == null ? void 0 : o[0]) === v[0] && !r.context ? (i.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`), null) : i.translate(...v, n);
|
|
71649
71648
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
71650
71649
|
}
|
|
71651
|
-
const c = r.postProcess || this.options.postProcess, l =
|
|
71650
|
+
const c = r.postProcess || this.options.postProcess, l = Wt(c) ? [c] : c;
|
|
71652
71651
|
return t != null && (l != null && l.length) && r.applyPostProcessor !== !1 && (t = RT.handle(l, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
71653
71652
|
i18nResolved: {
|
|
71654
71653
|
...a,
|
|
@@ -71659,13 +71658,13 @@ class X0 extends A3 {
|
|
|
71659
71658
|
}
|
|
71660
71659
|
resolve(t) {
|
|
71661
71660
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r, a, o, i, c;
|
|
71662
|
-
return
|
|
71661
|
+
return Wt(t) && (t = [t]), t.forEach((l) => {
|
|
71663
71662
|
if (this.isValidLookup(r)) return;
|
|
71664
71663
|
const s = this.extractFromKey(l, n), d = s.key;
|
|
71665
71664
|
a = d;
|
|
71666
71665
|
let f = s.namespaces;
|
|
71667
71666
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
71668
|
-
const m = n.count !== void 0 && !
|
|
71667
|
+
const m = n.count !== void 0 && !Wt(n.count), p = m && !n.ordinal && n.count === 0, h = n.context !== void 0 && (Wt(n.context) || typeof n.context == "number") && n.context !== "", v = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
71669
71668
|
f.forEach((g) => {
|
|
71670
71669
|
var C, b;
|
|
71671
71670
|
this.isValidLookup(r) || (c = g, !cv[`${v[0]}-${g}`] && ((C = this.utils) != null && C.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(c)) && (cv[`${v[0]}-${g}`] = !0, this.logger.warn(`key "${a}" for languages "${v.join(", ")}" won't get resolved as namespace "${c}" 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!!!")), v.forEach((y) => {
|
|
@@ -71707,7 +71706,7 @@ class X0 extends A3 {
|
|
|
71707
71706
|
}
|
|
71708
71707
|
getUsedParamsDetails() {
|
|
71709
71708
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
71710
|
-
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = t.replace && !
|
|
71709
|
+
const n = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = t.replace && !Wt(t.replace);
|
|
71711
71710
|
let a = r ? t.replace : t;
|
|
71712
71711
|
if (r && typeof t.count < "u" && (a.count = t.count), this.options.interpolation.defaultVariables && (a = {
|
|
71713
71712
|
...this.options.interpolation.defaultVariables,
|
|
@@ -71744,7 +71743,7 @@ class lv {
|
|
|
71744
71743
|
return this.formatLanguageCode(n[0]);
|
|
71745
71744
|
}
|
|
71746
71745
|
formatLanguageCode(t) {
|
|
71747
|
-
if (
|
|
71746
|
+
if (Wt(t) && t.indexOf("-") > -1) {
|
|
71748
71747
|
let n = Intl.getCanonicalLocales(t)[0];
|
|
71749
71748
|
return n && this.options.lowerCaseLng && (n = n.toLowerCase()), n || (this.options.lowerCaseLng ? t.toLowerCase() : t);
|
|
71750
71749
|
}
|
|
@@ -71773,7 +71772,7 @@ class lv {
|
|
|
71773
71772
|
}
|
|
71774
71773
|
getFallbackCodes(t, n) {
|
|
71775
71774
|
if (!t) return [];
|
|
71776
|
-
if (typeof t == "function" && (t = t(n)),
|
|
71775
|
+
if (typeof t == "function" && (t = t(n)), Wt(t) && (t = [t]), Array.isArray(t)) return t;
|
|
71777
71776
|
if (!n) return t.default || [];
|
|
71778
71777
|
let r = t[n];
|
|
71779
71778
|
return r || (r = t[this.getScriptPartFromCode(n)]), r || (r = t[this.formatLanguageCode(n)]), r || (r = t[this.getLanguagePartFromCode(n)]), r || (r = t.default), r || [];
|
|
@@ -71782,7 +71781,7 @@ class lv {
|
|
|
71782
71781
|
const r = this.getFallbackCodes(n || this.options.fallbackLng || [], t), a = [], o = (i) => {
|
|
71783
71782
|
i && (this.isSupportedCode(i) ? a.push(i) : this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`));
|
|
71784
71783
|
};
|
|
71785
|
-
return
|
|
71784
|
+
return Wt(t) && (t.indexOf("-") > -1 || t.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(t))) : Wt(t) && o(this.formatLanguageCode(t)), r.forEach((i) => {
|
|
71786
71785
|
a.indexOf(i) < 0 && o(this.formatLanguageCode(i));
|
|
71787
71786
|
}), a;
|
|
71788
71787
|
}
|
|
@@ -71853,7 +71852,7 @@ class ZOe {
|
|
|
71853
71852
|
}
|
|
71854
71853
|
const dv = function(e, t, n) {
|
|
71855
71854
|
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = KOe(e, t, n);
|
|
71856
|
-
return !o && a &&
|
|
71855
|
+
return !o && a && Wt(n) && (o = e5(e, n, r), o === void 0 && (o = e5(t, n, r))), o;
|
|
71857
71856
|
}, E6 = (e) => e.replace(/\$/g, "$$$$");
|
|
71858
71857
|
class ePe {
|
|
71859
71858
|
constructor() {
|
|
@@ -71927,7 +71926,7 @@ class ePe {
|
|
|
71927
71926
|
if (i = s(v), i === void 0)
|
|
71928
71927
|
if (typeof d == "function") {
|
|
71929
71928
|
const C = d(t, o, a);
|
|
71930
|
-
i =
|
|
71929
|
+
i = Wt(C) ? C : "";
|
|
71931
71930
|
} else if (a && Object.prototype.hasOwnProperty.call(a, v))
|
|
71932
71931
|
i = "";
|
|
71933
71932
|
else if (f) {
|
|
@@ -71935,7 +71934,7 @@ class ePe {
|
|
|
71935
71934
|
continue;
|
|
71936
71935
|
} else
|
|
71937
71936
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`), i = "";
|
|
71938
|
-
else !
|
|
71937
|
+
else !Wt(i) && !this.useRawValueToEscape && (i = nv(i));
|
|
71939
71938
|
const g = h.safeValue(i);
|
|
71940
71939
|
if (t = t.replace(o[0], g), f ? (h.regex.lastIndex += i.length, h.regex.lastIndex -= o[0].length) : h.regex.lastIndex = 0, c++, c >= this.maxReplaces)
|
|
71941
71940
|
break;
|
|
@@ -71966,14 +71965,14 @@ class ePe {
|
|
|
71966
71965
|
let l = [];
|
|
71967
71966
|
i = {
|
|
71968
71967
|
...r
|
|
71969
|
-
}, i = i.replace && !
|
|
71968
|
+
}, i = i.replace && !Wt(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
|
|
71970
71969
|
let s = !1;
|
|
71971
71970
|
if (a[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(a[1])) {
|
|
71972
71971
|
const d = a[1].split(this.formatSeparator).map((f) => f.trim());
|
|
71973
71972
|
a[1] = d.shift(), l = d, s = !0;
|
|
71974
71973
|
}
|
|
71975
|
-
if (o = n(c.call(this, a[1].trim(), i), i), o && a[0] === t && !
|
|
71976
|
-
|
|
71974
|
+
if (o = n(c.call(this, a[1].trim(), i), i), o && a[0] === t && !Wt(o)) return o;
|
|
71975
|
+
Wt(o) || (o = nv(o)), o || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`), o = ""), s && (o = l.reduce((d, f) => this.format(d, f, r.lng, {
|
|
71977
71976
|
...r,
|
|
71978
71977
|
interpolationkey: a[1].trim()
|
|
71979
71978
|
}), o.trim())), t = t.replace(a[0], o), this.regexp.lastIndex = 0;
|
|
@@ -72182,7 +72181,7 @@ class aPe extends A3 {
|
|
|
72182
72181
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
|
|
72183
72182
|
if (!this.backend)
|
|
72184
72183
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), a && a();
|
|
72185
|
-
|
|
72184
|
+
Wt(t) && (t = this.languageUtils.toResolveHierarchy(t)), Wt(n) && (n = [n]);
|
|
72186
72185
|
const o = this.queueLoad(t, n, r, a);
|
|
72187
72186
|
if (!o.toLoad.length)
|
|
72188
72187
|
return o.pending.length || a(), null;
|
|
@@ -72268,7 +72267,7 @@ const fv = () => ({
|
|
|
72268
72267
|
appendNamespaceToCIMode: !1,
|
|
72269
72268
|
overloadTranslationOptionHandler: (e) => {
|
|
72270
72269
|
let t = {};
|
|
72271
|
-
if (typeof e[1] == "object" && (t = e[1]),
|
|
72270
|
+
if (typeof e[1] == "object" && (t = e[1]), Wt(e[1]) && (t.defaultValue = e[1]), Wt(e[2]) && (t.tDescription = e[2]), typeof e[2] == "object" || typeof e[3] == "object") {
|
|
72272
72271
|
const n = e[3] || e[2];
|
|
72273
72272
|
Object.keys(n).forEach((r) => {
|
|
72274
72273
|
t[r] = n[r];
|
|
@@ -72291,7 +72290,7 @@ const fv = () => ({
|
|
|
72291
72290
|
}
|
|
72292
72291
|
}), mv = (e) => {
|
|
72293
72292
|
var t, n;
|
|
72294
|
-
return
|
|
72293
|
+
return Wt(e.ns) && (e.ns = [e.ns]), Wt(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Wt(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), ((n = (t = e.supportedLngs) == null ? void 0 : t.indexOf) == null ? void 0 : n.call(t, "cimode")) < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e;
|
|
72295
72294
|
}, El = () => {
|
|
72296
72295
|
}, oPe = (e) => {
|
|
72297
72296
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
@@ -72314,7 +72313,7 @@ class cc extends A3 {
|
|
|
72314
72313
|
init() {
|
|
72315
72314
|
var t = this;
|
|
72316
72315
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
72317
|
-
this.isInitializing = !0, typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (
|
|
72316
|
+
this.isInitializing = !0, typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (Wt(n.ns) ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
|
72318
72317
|
const a = fv();
|
|
72319
72318
|
this.options = {
|
|
72320
72319
|
...a,
|
|
@@ -72374,7 +72373,7 @@ class cc extends A3 {
|
|
|
72374
72373
|
loadResources(t) {
|
|
72375
72374
|
var o, i;
|
|
72376
72375
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : El;
|
|
72377
|
-
const a =
|
|
72376
|
+
const a = Wt(t) ? t : this.language;
|
|
72378
72377
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
72379
72378
|
if ((a == null ? void 0 : a.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
|
|
72380
72379
|
const c = [], l = (s) => {
|
|
@@ -72426,7 +72425,7 @@ class cc extends A3 {
|
|
|
72426
72425
|
}, c = (l) => {
|
|
72427
72426
|
var d, f;
|
|
72428
72427
|
!t && !l && this.services.languageDetector && (l = []);
|
|
72429
|
-
const s =
|
|
72428
|
+
const s = Wt(l) ? l : this.services.languageUtils.getBestMatchFromCodes(l);
|
|
72430
72429
|
s && (this.language || o(s), this.translator.language || this.translator.changeLanguage(s), (f = (d = this.services.languageDetector) == null ? void 0 : d.cacheUserLanguage) == null || f.call(d, s)), this.loadResources(s, (m) => {
|
|
72431
72430
|
i(m, s);
|
|
72432
72431
|
});
|
|
@@ -72450,7 +72449,7 @@ class cc extends A3 {
|
|
|
72450
72449
|
let p;
|
|
72451
72450
|
return l.keyPrefix && Array.isArray(i) ? p = i.map((h) => `${l.keyPrefix}${m}${h}`) : p = l.keyPrefix ? `${l.keyPrefix}${m}${i}` : i, a.t(p, l);
|
|
72452
72451
|
};
|
|
72453
|
-
return
|
|
72452
|
+
return Wt(t) ? o.lng = t : o.lngs = t, o.ns = n, o.keyPrefix = r, o;
|
|
72454
72453
|
}
|
|
72455
72454
|
t() {
|
|
72456
72455
|
var a;
|
|
@@ -72487,7 +72486,7 @@ class cc extends A3 {
|
|
|
72487
72486
|
}
|
|
72488
72487
|
loadNamespaces(t, n) {
|
|
72489
72488
|
const r = ii();
|
|
72490
|
-
return this.options.ns ? (
|
|
72489
|
+
return this.options.ns ? (Wt(t) && (t = [t]), t.forEach((a) => {
|
|
72491
72490
|
this.options.ns.indexOf(a) < 0 && this.options.ns.push(a);
|
|
72492
72491
|
}), this.loadResources((a) => {
|
|
72493
72492
|
r.resolve(), n && n(a);
|
|
@@ -72495,7 +72494,7 @@ class cc extends A3 {
|
|
|
72495
72494
|
}
|
|
72496
72495
|
loadLanguages(t, n) {
|
|
72497
72496
|
const r = ii();
|
|
72498
|
-
|
|
72497
|
+
Wt(t) && (t = [t]);
|
|
72499
72498
|
const a = this.options.preload || [], o = t.filter((i) => a.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
|
|
72500
72499
|
return o.length ? (this.options.preload = a.concat(o), this.loadResources((i) => {
|
|
72501
72500
|
r.resolve(), n && n(i);
|