@snmt-react-ui/user-select 2.5.11 → 2.6.1
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/UserSelect.d.ts +3 -0
- package/dist/user-select.js +606 -601
- package/package.json +3 -3
package/dist/user-select.js
CHANGED
|
@@ -3,24 +3,24 @@ var ue = (i, e, t) => e in i ? ge(i, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var V1 = (i, e, t) => ue(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as o, Fragment as n1, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { createContext as o1, forwardRef as k1, useState as
|
|
6
|
+
import { createContext as o1, forwardRef as k1, useState as Z, useRef as X, useEffect as K, useCallback as D, useImperativeHandle as Ce, useContext as e1 } from "react";
|
|
7
7
|
import { Select as pe, Flex as fe, Avatar as we, Checkbox as me, Typography as ke, Tag as Le, Popover as ve } from "antd";
|
|
8
8
|
import { SNMTUiContext as Ne } from "@snmt-react-ui/core";
|
|
9
|
-
var xe = Object.defineProperty, Re = (i, e, t) => e in i ? xe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Me = (i, e, t) => Re(i, e + "", t),
|
|
10
|
-
function
|
|
9
|
+
var xe = Object.defineProperty, Re = (i, e, t) => e in i ? xe(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Me = (i, e, t) => Re(i, e + "", t), be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
|
+
function ye() {
|
|
11
11
|
if (console && console.warn) {
|
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
13
13
|
e[t] = arguments[t];
|
|
14
|
-
|
|
14
|
+
q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const I1 = {};
|
|
18
18
|
function M1() {
|
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
20
20
|
e[t] = arguments[t];
|
|
21
|
-
|
|
21
|
+
q(e[0]) && I1[e[0]] || (q(e[0]) && (I1[e[0]] = /* @__PURE__ */ new Date()), ye(...e));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Q1 = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
25
25
|
e();
|
|
26
26
|
else {
|
|
@@ -32,18 +32,18 @@ const q1 = (i, e) => () => {
|
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
34
|
}, S1 = (i, e, t) => {
|
|
35
|
-
i.loadNamespaces(e,
|
|
35
|
+
i.loadNamespaces(e, Q1(i, t));
|
|
36
36
|
}, O1 = (i, e, t, s) => {
|
|
37
|
-
|
|
37
|
+
q(t) && (t = [t]), t.forEach((n) => {
|
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
39
|
-
}), i.loadLanguages(e,
|
|
39
|
+
}), i.loadLanguages(e, Q1(i, s));
|
|
40
40
|
}, Ee = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (r,
|
|
45
|
-
const
|
|
46
|
-
return
|
|
44
|
+
const c = (r, d) => {
|
|
45
|
+
const g = e.services.backendConnector.state[`${r}|${d}`];
|
|
46
|
+
return g === -1 || g === 2;
|
|
47
47
|
};
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
|
|
49
49
|
}, _e = function(i, e) {
|
|
@@ -54,7 +54,7 @@ const q1 = (i, e) => () => {
|
|
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
|
|
55
55
|
}
|
|
56
56
|
}) : Ee(i, e, t);
|
|
57
|
-
},
|
|
57
|
+
}, q = (i) => typeof i == "string", He = (i) => typeof i == "object" && i !== null, Ve = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ie = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -87,8 +87,8 @@ let Ae = {
|
|
|
87
87
|
unescape: Oe
|
|
88
88
|
};
|
|
89
89
|
const Be = () => Ae;
|
|
90
|
-
let
|
|
91
|
-
const
|
|
90
|
+
let We;
|
|
91
|
+
const Ze = () => We, je = o1();
|
|
92
92
|
class De {
|
|
93
93
|
constructor() {
|
|
94
94
|
Me(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -101,7 +101,7 @@ class De {
|
|
|
101
101
|
}
|
|
102
102
|
const Te = (i, e) => {
|
|
103
103
|
const t = X();
|
|
104
|
-
return
|
|
104
|
+
return K(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
107
|
}, X1 = (i, e, t, s) => i.getFixedT(e, t, s), Ge = (i, e, t, s) => D(X1(i, e, t, s), [i, e, t, s]), Ke = function(i) {
|
|
@@ -111,11 +111,11 @@ const Te = (i, e) => {
|
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} = e1(je) || {}, a = t || s ||
|
|
114
|
+
} = e1(je) || {}, a = t || s || Ze();
|
|
115
115
|
if (a && !a.reportNamespaces && (a.reportNamespaces = new De()), !a) {
|
|
116
116
|
M1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
-
const f = (
|
|
118
|
-
return
|
|
117
|
+
const f = (y, w) => q(w) ? w : He(w) && q(w.defaultValue) ? w.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, x = [f, {}, !1];
|
|
118
|
+
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
119
119
|
}
|
|
120
120
|
a.options.react && a.options.react.wait !== void 0 && M1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
121
|
const c = {
|
|
@@ -124,37 +124,37 @@ const Te = (i, e) => {
|
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
126
|
useSuspense: r,
|
|
127
|
-
keyPrefix:
|
|
127
|
+
keyPrefix: d
|
|
128
128
|
} = c;
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
const l = (a.isInitialized || a.initializedStoreOnce) &&
|
|
132
|
-
let k =
|
|
129
|
+
let g = i;
|
|
130
|
+
g = q(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
|
|
131
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => _e(f, a, c)), h = Ge(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => X1(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [m, N] = Z(C);
|
|
132
|
+
let k = g.join();
|
|
133
133
|
e.lng && (k = `${e.lng}${k}`);
|
|
134
|
-
const E = Te(k),
|
|
135
|
-
|
|
134
|
+
const E = Te(k), R = X(!0);
|
|
135
|
+
K(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
|
-
bindI18nStore:
|
|
138
|
+
bindI18nStore: x
|
|
139
139
|
} = c;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}) : S1(a,
|
|
143
|
-
|
|
144
|
-
})), l && E && E !== k &&
|
|
145
|
-
const
|
|
146
|
-
|
|
140
|
+
R.current = !0, !l && !r && (e.lng ? O1(a, e.lng, g, () => {
|
|
141
|
+
R.current && N(p);
|
|
142
|
+
}) : S1(a, g, () => {
|
|
143
|
+
R.current && N(p);
|
|
144
|
+
})), l && E && E !== k && R.current && N(p);
|
|
145
|
+
const y = () => {
|
|
146
|
+
R.current && N(p);
|
|
147
147
|
};
|
|
148
|
-
return f && a && a.on(f,
|
|
149
|
-
|
|
148
|
+
return f && a && a.on(f, y), x && a && a.store.on(x, y), () => {
|
|
149
|
+
R.current = !1, f && a && f.split(" ").forEach((w) => a.off(w, y)), x && a && x.split(" ").forEach((w) => a.store.off(w, y));
|
|
150
150
|
};
|
|
151
|
-
}, [a, k]),
|
|
152
|
-
|
|
153
|
-
}, [a,
|
|
154
|
-
const _ = [
|
|
155
|
-
if (_.t =
|
|
151
|
+
}, [a, k]), K(() => {
|
|
152
|
+
R.current && l && N(C);
|
|
153
|
+
}, [a, d, l]);
|
|
154
|
+
const _ = [m, a, l];
|
|
155
|
+
if (_.t = m, _.i18n = a, _.ready = l, l || !l && !r) return _;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ? O1(a, e.lng,
|
|
157
|
+
e.lng ? O1(a, e.lng, g, () => f()) : S1(a, g, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, u1 = ({
|
|
160
160
|
children: i,
|
|
@@ -206,9 +206,9 @@ const $e = ({
|
|
|
206
206
|
disabled: n = !1,
|
|
207
207
|
disableUncheck: a = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [c, r] =
|
|
210
|
-
|
|
211
|
-
r(i),
|
|
209
|
+
const [c, r] = Z(i), [d, g] = Z(e);
|
|
210
|
+
K(() => {
|
|
211
|
+
r(i), g(e);
|
|
212
212
|
}, [i, e]);
|
|
213
213
|
const { theme: l } = e1(_1);
|
|
214
214
|
return /* @__PURE__ */ o(
|
|
@@ -216,9 +216,9 @@ const $e = ({
|
|
|
216
216
|
{
|
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
|
218
218
|
checked: c,
|
|
219
|
-
indeterminate:
|
|
219
|
+
indeterminate: d,
|
|
220
220
|
onChange: (h) => {
|
|
221
|
-
a && c || (
|
|
221
|
+
a && c || (g(!1), r(h.target.checked), s && s(h));
|
|
222
222
|
},
|
|
223
223
|
disabled: n,
|
|
224
224
|
children: t
|
|
@@ -387,7 +387,7 @@ const Fe = ({
|
|
|
387
387
|
)
|
|
388
388
|
]
|
|
389
389
|
}
|
|
390
|
-
),
|
|
390
|
+
), qe = ({
|
|
391
391
|
width: i = 20,
|
|
392
392
|
height: e = 20,
|
|
393
393
|
color: t = "#001E52",
|
|
@@ -413,7 +413,7 @@ const Fe = ({
|
|
|
413
413
|
}
|
|
414
414
|
)
|
|
415
415
|
}
|
|
416
|
-
),
|
|
416
|
+
), Qe = ({
|
|
417
417
|
width: i = 20,
|
|
418
418
|
height: e = 20,
|
|
419
419
|
color: t = "#001E52",
|
|
@@ -1474,7 +1474,7 @@ const Fe = ({
|
|
|
1474
1474
|
)
|
|
1475
1475
|
]
|
|
1476
1476
|
}
|
|
1477
|
-
),
|
|
1477
|
+
), bt = ({
|
|
1478
1478
|
width: i = 20,
|
|
1479
1479
|
height: e = 20,
|
|
1480
1480
|
color: t = "#070739",
|
|
@@ -1504,7 +1504,7 @@ const Fe = ({
|
|
|
1504
1504
|
/* @__PURE__ */ o("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
1505
1505
|
]
|
|
1506
1506
|
}
|
|
1507
|
-
),
|
|
1507
|
+
), yt = ({
|
|
1508
1508
|
width: i = 20,
|
|
1509
1509
|
height: e = 20,
|
|
1510
1510
|
color: t = "#070739",
|
|
@@ -1840,7 +1840,7 @@ const Fe = ({
|
|
|
1840
1840
|
)
|
|
1841
1841
|
]
|
|
1842
1842
|
}
|
|
1843
|
-
),
|
|
1843
|
+
), Wt = ({
|
|
1844
1844
|
width: i = 81,
|
|
1845
1845
|
height: e = 80,
|
|
1846
1846
|
color: t = M.GREY_DARK_5,
|
|
@@ -1889,7 +1889,7 @@ const Fe = ({
|
|
|
1889
1889
|
)
|
|
1890
1890
|
]
|
|
1891
1891
|
}
|
|
1892
|
-
),
|
|
1892
|
+
), Zt = ({
|
|
1893
1893
|
className: i,
|
|
1894
1894
|
color: e = M.GREY_DARK_5,
|
|
1895
1895
|
height: t = 20,
|
|
@@ -2346,7 +2346,7 @@ const Fe = ({
|
|
|
2346
2346
|
)
|
|
2347
2347
|
]
|
|
2348
2348
|
}
|
|
2349
|
-
),
|
|
2349
|
+
), qt = ({
|
|
2350
2350
|
className: i,
|
|
2351
2351
|
color: e = M.NOTIFICATION_WARNING_DARK,
|
|
2352
2352
|
height: t = 37,
|
|
@@ -2385,7 +2385,7 @@ const Fe = ({
|
|
|
2385
2385
|
)
|
|
2386
2386
|
]
|
|
2387
2387
|
}
|
|
2388
|
-
),
|
|
2388
|
+
), Qt = ({
|
|
2389
2389
|
className: i,
|
|
2390
2390
|
color: e = M.GREY_DARK_5,
|
|
2391
2391
|
height: t = 24,
|
|
@@ -3283,17 +3283,17 @@ const Fe = ({
|
|
|
3283
3283
|
disabled: a = !1,
|
|
3284
3284
|
onClick: c
|
|
3285
3285
|
}) => {
|
|
3286
|
-
const [r,
|
|
3287
|
-
return
|
|
3286
|
+
const [r, d] = Z(n), { theme: g } = e1(ee), l = a ? g && g === "dark" ? M.GREY_LIGHT_4 : M.GREY_DARK_1 : s, h = a ? void 0 : c;
|
|
3287
|
+
return K(() => {
|
|
3288
3288
|
if (n) {
|
|
3289
|
-
h && !a &&
|
|
3289
|
+
h && !a && d(`${n} clickable`);
|
|
3290
3290
|
return;
|
|
3291
3291
|
}
|
|
3292
|
-
h && !a &&
|
|
3292
|
+
h && !a && d("clickable");
|
|
3293
3293
|
}, [h, n, a]), /* @__PURE__ */ o(n1, { children: (() => {
|
|
3294
3294
|
switch (i) {
|
|
3295
3295
|
case "nextIcon":
|
|
3296
|
-
return
|
|
3296
|
+
return Zt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3297
3297
|
case "prevIcon":
|
|
3298
3298
|
return jt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3299
3299
|
case "arrowUp":
|
|
@@ -3307,9 +3307,9 @@ const Fe = ({
|
|
|
3307
3307
|
case "calendar":
|
|
3308
3308
|
return Je({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3309
3309
|
case "ok":
|
|
3310
|
-
return Qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3311
|
-
case "cancel":
|
|
3312
3310
|
return qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3311
|
+
case "cancel":
|
|
3312
|
+
return Qe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3313
3313
|
case "add":
|
|
3314
3314
|
return Xe({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3315
3315
|
case "list":
|
|
@@ -3409,7 +3409,7 @@ const Fe = ({
|
|
|
3409
3409
|
onClick: h
|
|
3410
3410
|
});
|
|
3411
3411
|
case "visibilityIcon":
|
|
3412
|
-
return
|
|
3412
|
+
return bt({
|
|
3413
3413
|
width: e,
|
|
3414
3414
|
height: t,
|
|
3415
3415
|
color: l,
|
|
@@ -3417,7 +3417,7 @@ const Fe = ({
|
|
|
3417
3417
|
onClick: h
|
|
3418
3418
|
});
|
|
3419
3419
|
case "visibilityOffIcon":
|
|
3420
|
-
return
|
|
3420
|
+
return yt({
|
|
3421
3421
|
width: e,
|
|
3422
3422
|
height: t,
|
|
3423
3423
|
color: l,
|
|
@@ -3459,7 +3459,7 @@ const Fe = ({
|
|
|
3459
3459
|
case "search":
|
|
3460
3460
|
return Bt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3461
3461
|
case "handRock":
|
|
3462
|
-
return
|
|
3462
|
+
return Wt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3463
3463
|
case "arrowUpFilled":
|
|
3464
3464
|
return Tt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3465
3465
|
case "arrowDownFilled":
|
|
@@ -3483,9 +3483,9 @@ const Fe = ({
|
|
|
3483
3483
|
case "plusCircle":
|
|
3484
3484
|
return Jt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3485
3485
|
case "warning":
|
|
3486
|
-
return Qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3487
|
-
case "back":
|
|
3488
3486
|
return qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3487
|
+
case "back":
|
|
3488
|
+
return Qt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3489
3489
|
case "bell":
|
|
3490
3490
|
return Xt({ width: e, height: t, color: l, className: r, onClick: h });
|
|
3491
3491
|
case "contract":
|
|
@@ -3551,12 +3551,12 @@ const Fe = ({
|
|
|
3551
3551
|
collapsed: a,
|
|
3552
3552
|
whiteSpace: c = "normal"
|
|
3553
3553
|
}, r) => {
|
|
3554
|
-
const
|
|
3555
|
-
let
|
|
3556
|
-
return i && i !== "inherit" && (
|
|
3554
|
+
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
3555
|
+
let g = `snmt-typography snmt-typography-${e}`;
|
|
3556
|
+
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), a && (g += " collapsed"), d ? /* @__PURE__ */ o(
|
|
3557
3557
|
N2,
|
|
3558
3558
|
{
|
|
3559
|
-
className:
|
|
3559
|
+
className: g,
|
|
3560
3560
|
style: { color: t, whiteSpace: c },
|
|
3561
3561
|
onClick: n,
|
|
3562
3562
|
level: R2[e],
|
|
@@ -3566,7 +3566,7 @@ const Fe = ({
|
|
|
3566
3566
|
) : /* @__PURE__ */ o(
|
|
3567
3567
|
x2,
|
|
3568
3568
|
{
|
|
3569
|
-
className:
|
|
3569
|
+
className: g,
|
|
3570
3570
|
style: { color: t, whiteSpace: c },
|
|
3571
3571
|
onClick: n,
|
|
3572
3572
|
ref: r,
|
|
@@ -3575,13 +3575,13 @@ const Fe = ({
|
|
|
3575
3575
|
);
|
|
3576
3576
|
}
|
|
3577
3577
|
);
|
|
3578
|
-
var
|
|
3578
|
+
var b = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(b || {});
|
|
3579
3579
|
const te = o1({
|
|
3580
3580
|
locale: "en",
|
|
3581
3581
|
theme: "light"
|
|
3582
3582
|
});
|
|
3583
3583
|
te.Provider;
|
|
3584
|
-
const
|
|
3584
|
+
const b2 = ({
|
|
3585
3585
|
width: i = 20,
|
|
3586
3586
|
height: e = 20,
|
|
3587
3587
|
color: t = "#001E52",
|
|
@@ -3608,7 +3608,7 @@ const y2 = ({
|
|
|
3608
3608
|
}
|
|
3609
3609
|
)
|
|
3610
3610
|
}
|
|
3611
|
-
),
|
|
3611
|
+
), y2 = ({
|
|
3612
3612
|
width: i = 20,
|
|
3613
3613
|
height: e = 20,
|
|
3614
3614
|
color: t = "#001E52",
|
|
@@ -3958,7 +3958,7 @@ const y2 = ({
|
|
|
3958
3958
|
)
|
|
3959
3959
|
] })
|
|
3960
3960
|
}
|
|
3961
|
-
),
|
|
3961
|
+
), W2 = ({
|
|
3962
3962
|
width: i = 16,
|
|
3963
3963
|
height: e = 16,
|
|
3964
3964
|
color: t = "#001E52",
|
|
@@ -3992,7 +3992,7 @@ const y2 = ({
|
|
|
3992
3992
|
)
|
|
3993
3993
|
]
|
|
3994
3994
|
}
|
|
3995
|
-
),
|
|
3995
|
+
), Z2 = ({
|
|
3996
3996
|
width: i = 10,
|
|
3997
3997
|
height: e = 10,
|
|
3998
3998
|
color: t = "#001E52",
|
|
@@ -4474,7 +4474,7 @@ const y2 = ({
|
|
|
4474
4474
|
)
|
|
4475
4475
|
]
|
|
4476
4476
|
}
|
|
4477
|
-
),
|
|
4477
|
+
), q2 = ({
|
|
4478
4478
|
width: i = 20,
|
|
4479
4479
|
height: e = 23,
|
|
4480
4480
|
color: t = "#001E52",
|
|
@@ -4535,7 +4535,7 @@ const y2 = ({
|
|
|
4535
4535
|
)
|
|
4536
4536
|
]
|
|
4537
4537
|
}
|
|
4538
|
-
),
|
|
4538
|
+
), Q2 = ({
|
|
4539
4539
|
width: i = 20,
|
|
4540
4540
|
height: e = 20,
|
|
4541
4541
|
color: t = "#001E52",
|
|
@@ -5121,7 +5121,7 @@ const y2 = ({
|
|
|
5121
5121
|
), p5 = ({
|
|
5122
5122
|
width: i = 24,
|
|
5123
5123
|
height: e = 24,
|
|
5124
|
-
color: t =
|
|
5124
|
+
color: t = b.GREY_DARK_5,
|
|
5125
5125
|
className: s,
|
|
5126
5126
|
onClick: n
|
|
5127
5127
|
}) => /* @__PURE__ */ u(
|
|
@@ -5160,7 +5160,7 @@ const y2 = ({
|
|
|
5160
5160
|
), f5 = ({
|
|
5161
5161
|
width: i = 20,
|
|
5162
5162
|
height: e = 20,
|
|
5163
|
-
color: t =
|
|
5163
|
+
color: t = b.GREY_DARK_1,
|
|
5164
5164
|
className: s,
|
|
5165
5165
|
onClick: n
|
|
5166
5166
|
}) => /* @__PURE__ */ u(
|
|
@@ -5193,7 +5193,7 @@ const y2 = ({
|
|
|
5193
5193
|
), w5 = ({
|
|
5194
5194
|
width: i = 81,
|
|
5195
5195
|
height: e = 80,
|
|
5196
|
-
color: t =
|
|
5196
|
+
color: t = b.GREY_DARK_5,
|
|
5197
5197
|
className: s,
|
|
5198
5198
|
onClick: n
|
|
5199
5199
|
}) => /* @__PURE__ */ u(
|
|
@@ -5241,7 +5241,7 @@ const y2 = ({
|
|
|
5241
5241
|
}
|
|
5242
5242
|
), m5 = ({
|
|
5243
5243
|
className: i,
|
|
5244
|
-
color: e =
|
|
5244
|
+
color: e = b.GREY_DARK_5,
|
|
5245
5245
|
height: t = 20,
|
|
5246
5246
|
width: s = 20,
|
|
5247
5247
|
onClick: n
|
|
@@ -5268,7 +5268,7 @@ const y2 = ({
|
|
|
5268
5268
|
}
|
|
5269
5269
|
), k5 = ({
|
|
5270
5270
|
className: i,
|
|
5271
|
-
color: e =
|
|
5271
|
+
color: e = b.GREY_DARK_5,
|
|
5272
5272
|
height: t = 20,
|
|
5273
5273
|
width: s = 20,
|
|
5274
5274
|
onClick: n
|
|
@@ -5295,7 +5295,7 @@ const y2 = ({
|
|
|
5295
5295
|
}
|
|
5296
5296
|
), L5 = ({
|
|
5297
5297
|
className: i,
|
|
5298
|
-
color: e =
|
|
5298
|
+
color: e = b.GREY_DARK_5,
|
|
5299
5299
|
height: t = 5,
|
|
5300
5300
|
width: s = 10,
|
|
5301
5301
|
onClick: n
|
|
@@ -5319,7 +5319,7 @@ const y2 = ({
|
|
|
5319
5319
|
}
|
|
5320
5320
|
), v5 = ({
|
|
5321
5321
|
className: i,
|
|
5322
|
-
color: e =
|
|
5322
|
+
color: e = b.GREY_DARK_5,
|
|
5323
5323
|
height: t = 5,
|
|
5324
5324
|
width: s = 10,
|
|
5325
5325
|
onClick: n
|
|
@@ -5344,7 +5344,7 @@ const y2 = ({
|
|
|
5344
5344
|
}
|
|
5345
5345
|
), N5 = ({
|
|
5346
5346
|
className: i,
|
|
5347
|
-
color: e =
|
|
5347
|
+
color: e = b.GREY_DARK_5,
|
|
5348
5348
|
height: t = 24,
|
|
5349
5349
|
width: s = 24,
|
|
5350
5350
|
onClick: n
|
|
@@ -5383,7 +5383,7 @@ const y2 = ({
|
|
|
5383
5383
|
}
|
|
5384
5384
|
), x5 = ({
|
|
5385
5385
|
className: i,
|
|
5386
|
-
color: e =
|
|
5386
|
+
color: e = b.GREY_DARK_5,
|
|
5387
5387
|
height: t = 24,
|
|
5388
5388
|
width: s = 24,
|
|
5389
5389
|
onClick: n
|
|
@@ -5422,7 +5422,7 @@ const y2 = ({
|
|
|
5422
5422
|
}
|
|
5423
5423
|
), R5 = ({
|
|
5424
5424
|
className: i,
|
|
5425
|
-
color: e =
|
|
5425
|
+
color: e = b.GREY_DARK_5,
|
|
5426
5426
|
height: t = 24,
|
|
5427
5427
|
width: s = 24,
|
|
5428
5428
|
onClick: n
|
|
@@ -5449,7 +5449,7 @@ const y2 = ({
|
|
|
5449
5449
|
}
|
|
5450
5450
|
), M5 = ({
|
|
5451
5451
|
className: i,
|
|
5452
|
-
color: e =
|
|
5452
|
+
color: e = b.GREY_DARK_5,
|
|
5453
5453
|
height: t = 24,
|
|
5454
5454
|
width: s = 24,
|
|
5455
5455
|
onClick: n
|
|
@@ -5506,9 +5506,9 @@ const y2 = ({
|
|
|
5506
5506
|
)
|
|
5507
5507
|
]
|
|
5508
5508
|
}
|
|
5509
|
-
),
|
|
5509
|
+
), b5 = ({
|
|
5510
5510
|
className: i,
|
|
5511
|
-
color: e =
|
|
5511
|
+
color: e = b.GREY_DARK_5,
|
|
5512
5512
|
height: t = 24,
|
|
5513
5513
|
width: s = 24,
|
|
5514
5514
|
onClick: n
|
|
@@ -5543,9 +5543,9 @@ const y2 = ({
|
|
|
5543
5543
|
)
|
|
5544
5544
|
]
|
|
5545
5545
|
}
|
|
5546
|
-
),
|
|
5546
|
+
), y5 = ({
|
|
5547
5547
|
className: i,
|
|
5548
|
-
color: e =
|
|
5548
|
+
color: e = b.GREY_DARK_3,
|
|
5549
5549
|
height: t = 14,
|
|
5550
5550
|
width: s = 14,
|
|
5551
5551
|
onClick: n
|
|
@@ -5582,7 +5582,7 @@ const y2 = ({
|
|
|
5582
5582
|
}
|
|
5583
5583
|
), E5 = ({
|
|
5584
5584
|
className: i,
|
|
5585
|
-
color: e =
|
|
5585
|
+
color: e = b.GREY_DARK_5,
|
|
5586
5586
|
height: t = 18,
|
|
5587
5587
|
onClick: s,
|
|
5588
5588
|
width: n = 18
|
|
@@ -5609,7 +5609,7 @@ const y2 = ({
|
|
|
5609
5609
|
}
|
|
5610
5610
|
), _5 = ({
|
|
5611
5611
|
className: i,
|
|
5612
|
-
color: e =
|
|
5612
|
+
color: e = b.GREY_DARK_5,
|
|
5613
5613
|
height: t = 24,
|
|
5614
5614
|
width: s = 24,
|
|
5615
5615
|
onClick: n
|
|
@@ -5661,7 +5661,7 @@ const y2 = ({
|
|
|
5661
5661
|
}
|
|
5662
5662
|
), H5 = ({
|
|
5663
5663
|
className: i,
|
|
5664
|
-
color: e =
|
|
5664
|
+
color: e = b.GREY_DARK_5,
|
|
5665
5665
|
height: t = 24,
|
|
5666
5666
|
width: s = 24,
|
|
5667
5667
|
onClick: n
|
|
@@ -5698,7 +5698,7 @@ const y2 = ({
|
|
|
5698
5698
|
}
|
|
5699
5699
|
), V5 = ({
|
|
5700
5700
|
className: i,
|
|
5701
|
-
color: e =
|
|
5701
|
+
color: e = b.NOTIFICATION_WARNING_DARK,
|
|
5702
5702
|
height: t = 37,
|
|
5703
5703
|
width: s = 36,
|
|
5704
5704
|
onClick: n
|
|
@@ -5737,7 +5737,7 @@ const y2 = ({
|
|
|
5737
5737
|
}
|
|
5738
5738
|
), I5 = ({
|
|
5739
5739
|
className: i,
|
|
5740
|
-
color: e =
|
|
5740
|
+
color: e = b.GREY_DARK_5,
|
|
5741
5741
|
height: t = 24,
|
|
5742
5742
|
width: s = 24,
|
|
5743
5743
|
onClick: n
|
|
@@ -5763,7 +5763,7 @@ const y2 = ({
|
|
|
5763
5763
|
}
|
|
5764
5764
|
), S5 = ({
|
|
5765
5765
|
className: i,
|
|
5766
|
-
color: e =
|
|
5766
|
+
color: e = b.GREY_DARK_5,
|
|
5767
5767
|
height: t = 24,
|
|
5768
5768
|
width: s = 24,
|
|
5769
5769
|
onClick: n
|
|
@@ -5802,7 +5802,7 @@ const y2 = ({
|
|
|
5802
5802
|
}
|
|
5803
5803
|
), O5 = ({
|
|
5804
5804
|
className: i,
|
|
5805
|
-
color: e =
|
|
5805
|
+
color: e = b.GREY_DARK_5,
|
|
5806
5806
|
height: t = 24,
|
|
5807
5807
|
width: s = 24,
|
|
5808
5808
|
onClick: n
|
|
@@ -5841,7 +5841,7 @@ const y2 = ({
|
|
|
5841
5841
|
}
|
|
5842
5842
|
), A5 = ({
|
|
5843
5843
|
className: i,
|
|
5844
|
-
color: e =
|
|
5844
|
+
color: e = b.GREY_DARK_5,
|
|
5845
5845
|
height: t = 24,
|
|
5846
5846
|
width: s = 24,
|
|
5847
5847
|
onClick: n
|
|
@@ -5910,7 +5910,7 @@ const y2 = ({
|
|
|
5910
5910
|
}
|
|
5911
5911
|
), B5 = ({
|
|
5912
5912
|
className: i,
|
|
5913
|
-
color: e =
|
|
5913
|
+
color: e = b.GREY_DARK_5,
|
|
5914
5914
|
height: t = 24,
|
|
5915
5915
|
width: s = 24,
|
|
5916
5916
|
onClick: n
|
|
@@ -5947,9 +5947,9 @@ const y2 = ({
|
|
|
5947
5947
|
)
|
|
5948
5948
|
]
|
|
5949
5949
|
}
|
|
5950
|
-
),
|
|
5950
|
+
), W5 = ({
|
|
5951
5951
|
className: i,
|
|
5952
|
-
color: e =
|
|
5952
|
+
color: e = b.GREY_DARK_5,
|
|
5953
5953
|
height: t = 24,
|
|
5954
5954
|
width: s = 24,
|
|
5955
5955
|
onClick: n
|
|
@@ -6004,9 +6004,9 @@ const y2 = ({
|
|
|
6004
6004
|
)
|
|
6005
6005
|
]
|
|
6006
6006
|
}
|
|
6007
|
-
),
|
|
6007
|
+
), Z5 = ({
|
|
6008
6008
|
className: i,
|
|
6009
|
-
color: e =
|
|
6009
|
+
color: e = b.GREY_DARK_5,
|
|
6010
6010
|
height: t = 24,
|
|
6011
6011
|
width: s = 24,
|
|
6012
6012
|
onClick: n
|
|
@@ -6045,7 +6045,7 @@ const y2 = ({
|
|
|
6045
6045
|
}
|
|
6046
6046
|
), j5 = ({
|
|
6047
6047
|
className: i,
|
|
6048
|
-
color: e =
|
|
6048
|
+
color: e = b.GREY_DARK_5,
|
|
6049
6049
|
height: t = 24,
|
|
6050
6050
|
width: s = 24,
|
|
6051
6051
|
onClick: n
|
|
@@ -6094,7 +6094,7 @@ const y2 = ({
|
|
|
6094
6094
|
}
|
|
6095
6095
|
), D5 = ({
|
|
6096
6096
|
className: i,
|
|
6097
|
-
color: e =
|
|
6097
|
+
color: e = b.GREY_DARK_5,
|
|
6098
6098
|
height: t = 24,
|
|
6099
6099
|
width: s = 24,
|
|
6100
6100
|
onClick: n
|
|
@@ -6133,7 +6133,7 @@ const y2 = ({
|
|
|
6133
6133
|
}
|
|
6134
6134
|
), T5 = ({
|
|
6135
6135
|
className: i,
|
|
6136
|
-
color: e =
|
|
6136
|
+
color: e = b.GREY_DARK_5,
|
|
6137
6137
|
height: t = 24,
|
|
6138
6138
|
width: s = 24,
|
|
6139
6139
|
onClick: n
|
|
@@ -6160,7 +6160,7 @@ const y2 = ({
|
|
|
6160
6160
|
}
|
|
6161
6161
|
), G5 = ({
|
|
6162
6162
|
className: i,
|
|
6163
|
-
color: e =
|
|
6163
|
+
color: e = b.GREY_DARK_5,
|
|
6164
6164
|
height: t = 24,
|
|
6165
6165
|
width: s = 24,
|
|
6166
6166
|
onClick: n
|
|
@@ -6198,7 +6198,7 @@ const y2 = ({
|
|
|
6198
6198
|
}
|
|
6199
6199
|
), K5 = ({
|
|
6200
6200
|
className: i,
|
|
6201
|
-
color: e =
|
|
6201
|
+
color: e = b.GREY_DARK_5,
|
|
6202
6202
|
height: t = 24,
|
|
6203
6203
|
width: s = 24,
|
|
6204
6204
|
onClick: n
|
|
@@ -6219,7 +6219,7 @@ const y2 = ({
|
|
|
6219
6219
|
}
|
|
6220
6220
|
), P5 = ({
|
|
6221
6221
|
className: i,
|
|
6222
|
-
color: e =
|
|
6222
|
+
color: e = b.GREY_DARK_5,
|
|
6223
6223
|
height: t = 24,
|
|
6224
6224
|
width: s = 24,
|
|
6225
6225
|
onClick: n
|
|
@@ -6258,7 +6258,7 @@ const y2 = ({
|
|
|
6258
6258
|
}
|
|
6259
6259
|
), $5 = ({
|
|
6260
6260
|
className: i,
|
|
6261
|
-
color: e =
|
|
6261
|
+
color: e = b.GREY_DARK_5,
|
|
6262
6262
|
height: t = 24,
|
|
6263
6263
|
width: s = 24,
|
|
6264
6264
|
onClick: n
|
|
@@ -6297,7 +6297,7 @@ const y2 = ({
|
|
|
6297
6297
|
}
|
|
6298
6298
|
), F5 = ({
|
|
6299
6299
|
className: i,
|
|
6300
|
-
color: e =
|
|
6300
|
+
color: e = b.GREY_DARK_5,
|
|
6301
6301
|
height: t = 24,
|
|
6302
6302
|
width: s = 24,
|
|
6303
6303
|
onClick: n
|
|
@@ -6336,7 +6336,7 @@ const y2 = ({
|
|
|
6336
6336
|
}
|
|
6337
6337
|
), Y5 = ({
|
|
6338
6338
|
className: i,
|
|
6339
|
-
color: e =
|
|
6339
|
+
color: e = b.GREY_DARK_2,
|
|
6340
6340
|
height: t = 16,
|
|
6341
6341
|
width: s = 16,
|
|
6342
6342
|
onClick: n
|
|
@@ -6362,7 +6362,7 @@ const y2 = ({
|
|
|
6362
6362
|
}
|
|
6363
6363
|
), U5 = ({
|
|
6364
6364
|
className: i,
|
|
6365
|
-
color: e =
|
|
6365
|
+
color: e = b.GREY_DARK_5,
|
|
6366
6366
|
height: t = 20,
|
|
6367
6367
|
width: s = 20,
|
|
6368
6368
|
onClick: n
|
|
@@ -6391,7 +6391,7 @@ const y2 = ({
|
|
|
6391
6391
|
}
|
|
6392
6392
|
), z5 = ({
|
|
6393
6393
|
className: i,
|
|
6394
|
-
color: e =
|
|
6394
|
+
color: e = b.GREY_DARK_5,
|
|
6395
6395
|
height: t = 20,
|
|
6396
6396
|
width: s = 20,
|
|
6397
6397
|
onClick: n
|
|
@@ -6420,7 +6420,7 @@ const y2 = ({
|
|
|
6420
6420
|
}
|
|
6421
6421
|
), J5 = ({
|
|
6422
6422
|
className: i,
|
|
6423
|
-
color: e =
|
|
6423
|
+
color: e = b.GREY_DARK_5,
|
|
6424
6424
|
height: t = 20,
|
|
6425
6425
|
width: s = 20,
|
|
6426
6426
|
onClick: n
|
|
@@ -6435,7 +6435,7 @@ const y2 = ({
|
|
|
6435
6435
|
fill: "none",
|
|
6436
6436
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6437
6437
|
children: [
|
|
6438
|
-
/* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill:
|
|
6438
|
+
/* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill: b.GREY_LIGHT_2 }),
|
|
6439
6439
|
/* @__PURE__ */ o(
|
|
6440
6440
|
"path",
|
|
6441
6441
|
{
|
|
@@ -6447,9 +6447,9 @@ const y2 = ({
|
|
|
6447
6447
|
)
|
|
6448
6448
|
]
|
|
6449
6449
|
}
|
|
6450
|
-
),
|
|
6450
|
+
), q5 = ({
|
|
6451
6451
|
className: i,
|
|
6452
|
-
color: e =
|
|
6452
|
+
color: e = b.GREY_DARK_5,
|
|
6453
6453
|
height: t = 20,
|
|
6454
6454
|
width: s = 20,
|
|
6455
6455
|
onClick: n
|
|
@@ -6464,7 +6464,7 @@ const y2 = ({
|
|
|
6464
6464
|
fill: "none",
|
|
6465
6465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6466
6466
|
children: [
|
|
6467
|
-
/* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill:
|
|
6467
|
+
/* @__PURE__ */ o("rect", { width: "20", height: "20", rx: "4", fill: b.GREY_LIGHT_2 }),
|
|
6468
6468
|
/* @__PURE__ */ o(
|
|
6469
6469
|
"path",
|
|
6470
6470
|
{
|
|
@@ -6476,7 +6476,7 @@ const y2 = ({
|
|
|
6476
6476
|
)
|
|
6477
6477
|
]
|
|
6478
6478
|
}
|
|
6479
|
-
),
|
|
6479
|
+
), Q5 = ({
|
|
6480
6480
|
className: i,
|
|
6481
6481
|
color: e = "#001E52",
|
|
6482
6482
|
height: t = 24,
|
|
@@ -6633,13 +6633,13 @@ const y2 = ({
|
|
|
6633
6633
|
disabled: a = !1,
|
|
6634
6634
|
onClick: c
|
|
6635
6635
|
}) => {
|
|
6636
|
-
const [r,
|
|
6637
|
-
return
|
|
6636
|
+
const [r, d] = Z(n), { theme: g } = e1(te), l = a ? g && g === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : s, h = a ? void 0 : c;
|
|
6637
|
+
return K(() => {
|
|
6638
6638
|
if (n) {
|
|
6639
|
-
h && !a &&
|
|
6639
|
+
h && !a && d(`${n} clickable`);
|
|
6640
6640
|
return;
|
|
6641
6641
|
}
|
|
6642
|
-
h && !a &&
|
|
6642
|
+
h && !a && d("clickable");
|
|
6643
6643
|
}, [h, n, a]), /* @__PURE__ */ o(n1, { children: (() => {
|
|
6644
6644
|
switch (i) {
|
|
6645
6645
|
case "nextIcon":
|
|
@@ -6647,9 +6647,9 @@ const y2 = ({
|
|
|
6647
6647
|
case "prevIcon":
|
|
6648
6648
|
return k5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6649
6649
|
case "arrowUp":
|
|
6650
|
-
return y2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6651
|
-
case "arrowDown":
|
|
6652
6650
|
return b2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6651
|
+
case "arrowDown":
|
|
6652
|
+
return y2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6653
6653
|
case "info":
|
|
6654
6654
|
return E2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6655
6655
|
case "arrowRight":
|
|
@@ -6669,9 +6669,9 @@ const y2 = ({
|
|
|
6669
6669
|
case "filter":
|
|
6670
6670
|
return B2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6671
6671
|
case "attention":
|
|
6672
|
-
return Z2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6673
|
-
case "plus":
|
|
6674
6672
|
return W2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6673
|
+
case "plus":
|
|
6674
|
+
return Z2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6675
6675
|
case "time":
|
|
6676
6676
|
return j2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6677
6677
|
case "arrowDownLong":
|
|
@@ -6715,9 +6715,9 @@ const y2 = ({
|
|
|
6715
6715
|
case "trash":
|
|
6716
6716
|
return J2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6717
6717
|
case "settings4":
|
|
6718
|
-
return Q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6719
|
-
case "edit2":
|
|
6720
6718
|
return q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6719
|
+
case "edit2":
|
|
6720
|
+
return Q2({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6721
6721
|
case "notifications":
|
|
6722
6722
|
return X2({
|
|
6723
6723
|
width: e,
|
|
@@ -6819,13 +6819,13 @@ const y2 = ({
|
|
|
6819
6819
|
case "telegram":
|
|
6820
6820
|
return R5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6821
6821
|
case "mail":
|
|
6822
|
-
return
|
|
6822
|
+
return b5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6823
6823
|
case "github":
|
|
6824
6824
|
return x5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6825
6825
|
case "linkedIn":
|
|
6826
6826
|
return M5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6827
6827
|
case "emptyStateIcon":
|
|
6828
|
-
return
|
|
6828
|
+
return y5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6829
6829
|
case "filtersIcon":
|
|
6830
6830
|
return E5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6831
6831
|
case "dotMenuIcon":
|
|
@@ -6845,9 +6845,9 @@ const y2 = ({
|
|
|
6845
6845
|
case "manager":
|
|
6846
6846
|
return B5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6847
6847
|
case "resourceManager":
|
|
6848
|
-
return Z5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6849
|
-
case "settings2":
|
|
6850
6848
|
return W5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6849
|
+
case "settings2":
|
|
6850
|
+
return Z5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6851
6851
|
case "image":
|
|
6852
6852
|
return j5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6853
6853
|
case "upload":
|
|
@@ -6873,9 +6873,9 @@ const y2 = ({
|
|
|
6873
6873
|
case "filledArrowLeft":
|
|
6874
6874
|
return J5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6875
6875
|
case "filledArrowRight":
|
|
6876
|
-
return Q5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6877
|
-
case "burgerMenu":
|
|
6878
6876
|
return q5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6877
|
+
case "burgerMenu":
|
|
6878
|
+
return Q5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6879
6879
|
case "signOut":
|
|
6880
6880
|
return X5({ width: e, height: t, color: l, className: r, onClick: h });
|
|
6881
6881
|
case "refresh":
|
|
@@ -6939,7 +6939,7 @@ const ie = ({
|
|
|
6939
6939
|
placement: n = "topRight",
|
|
6940
6940
|
noPadding: a = !1
|
|
6941
6941
|
}) => {
|
|
6942
|
-
const [c, r] =
|
|
6942
|
+
const [c, r] = Z(!1);
|
|
6943
6943
|
return /* @__PURE__ */ o(
|
|
6944
6944
|
ve,
|
|
6945
6945
|
{
|
|
@@ -6949,8 +6949,8 @@ const ie = ({
|
|
|
6949
6949
|
trigger: "click",
|
|
6950
6950
|
overlayClassName: `snmt-popover ${a ? "" : "padding"}`,
|
|
6951
6951
|
open: t ?? c,
|
|
6952
|
-
onOpenChange: (
|
|
6953
|
-
r(
|
|
6952
|
+
onOpenChange: (d) => {
|
|
6953
|
+
r(d), s == null || s(d);
|
|
6954
6954
|
},
|
|
6955
6955
|
children: /* @__PURE__ */ o("div", { className: "wrapper", children: i })
|
|
6956
6956
|
}
|
|
@@ -6960,7 +6960,7 @@ var o3 = { exports: {} };
|
|
|
6960
6960
|
(function(i, e) {
|
|
6961
6961
|
(function(t, s) {
|
|
6962
6962
|
i.exports = s();
|
|
6963
|
-
})(
|
|
6963
|
+
})(be, function() {
|
|
6964
6964
|
return { 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(t) {
|
|
6965
6965
|
var s = ["th", "st", "nd", "rd"], n = t % 100;
|
|
6966
6966
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
@@ -6976,14 +6976,14 @@ const r3 = ({
|
|
|
6976
6976
|
options: a,
|
|
6977
6977
|
extraOptions: c
|
|
6978
6978
|
}) => {
|
|
6979
|
-
const { locale: r } = e1(_1), { t:
|
|
6980
|
-
if (
|
|
6979
|
+
const { locale: r } = e1(_1), { t: d } = Ke("common", { lng: r }), [g, l] = Z(!1);
|
|
6980
|
+
if (K(() => {
|
|
6981
6981
|
i.length || l(!1);
|
|
6982
6982
|
}, [i]), !i.length)
|
|
6983
6983
|
return null;
|
|
6984
6984
|
const h = (C) => {
|
|
6985
|
-
var p,
|
|
6986
|
-
return ((p = a == null ? void 0 : a.find((N) => N.value === C)) == null ? void 0 : p.label) || ((
|
|
6985
|
+
var p, m;
|
|
6986
|
+
return ((p = a == null ? void 0 : a.find((N) => N.value === C)) == null ? void 0 : p.label) || ((m = c == null ? void 0 : c.find((N) => N.value === C)) == null ? void 0 : m.label) || C;
|
|
6987
6987
|
};
|
|
6988
6988
|
return /* @__PURE__ */ u(
|
|
6989
6989
|
n3,
|
|
@@ -7002,12 +7002,12 @@ const r3 = ({
|
|
|
7002
7002
|
)) }) })
|
|
7003
7003
|
),
|
|
7004
7004
|
placement: "bottomRight",
|
|
7005
|
-
isOpen:
|
|
7005
|
+
isOpen: g,
|
|
7006
7006
|
setIsOpen: l,
|
|
7007
7007
|
children: [
|
|
7008
7008
|
i.length,
|
|
7009
7009
|
" ",
|
|
7010
|
-
|
|
7010
|
+
d("more")
|
|
7011
7011
|
]
|
|
7012
7012
|
}
|
|
7013
7013
|
);
|
|
@@ -7029,87 +7029,87 @@ const r3 = ({
|
|
|
7029
7029
|
options: a,
|
|
7030
7030
|
width: c,
|
|
7031
7031
|
disabled: r = !1,
|
|
7032
|
-
required:
|
|
7033
|
-
clearable:
|
|
7032
|
+
required: d = !1,
|
|
7033
|
+
clearable: g = !1,
|
|
7034
7034
|
scrollThresholdValue: l = 50,
|
|
7035
7035
|
onSearchChange: h,
|
|
7036
7036
|
onDropdownVisibleChange: C,
|
|
7037
7037
|
onScrollToEnd: p,
|
|
7038
|
-
onPopupScroll:
|
|
7038
|
+
onPopupScroll: m,
|
|
7039
7039
|
id: N,
|
|
7040
7040
|
extraOptions: k,
|
|
7041
7041
|
dropdownRender: E,
|
|
7042
|
-
optionRender:
|
|
7042
|
+
optionRender: R,
|
|
7043
7043
|
isLoading: _,
|
|
7044
7044
|
readOnly: f
|
|
7045
|
-
},
|
|
7046
|
-
const [
|
|
7047
|
-
|
|
7048
|
-
|
|
7045
|
+
}, x) => {
|
|
7046
|
+
const [y, w] = Z(!1), [H, G] = Z(!1), [A, V] = Z(!0), [I, P] = Z(i), B = X(null);
|
|
7047
|
+
K(() => {
|
|
7048
|
+
P(i);
|
|
7049
7049
|
}, [i]);
|
|
7050
|
-
const
|
|
7051
|
-
w(
|
|
7052
|
-
},
|
|
7053
|
-
var
|
|
7054
|
-
return !!((
|
|
7050
|
+
const $ = (v) => {
|
|
7051
|
+
w(v), C && C(v);
|
|
7052
|
+
}, S = (v, O) => {
|
|
7053
|
+
var Y;
|
|
7054
|
+
return !!((Y = O == null ? void 0 : O.label) != null && Y.toString().toLowerCase().includes(v.toLowerCase()));
|
|
7055
7055
|
}, t1 = () => {
|
|
7056
|
-
|
|
7057
|
-
},
|
|
7058
|
-
|
|
7059
|
-
},
|
|
7060
|
-
(
|
|
7061
|
-
if (
|
|
7062
|
-
const
|
|
7063
|
-
e == null || e(
|
|
7056
|
+
G(!0);
|
|
7057
|
+
}, j = () => {
|
|
7058
|
+
G(!1);
|
|
7059
|
+
}, W = D(
|
|
7060
|
+
(v) => {
|
|
7061
|
+
if (P(v), s) {
|
|
7062
|
+
const Y = v;
|
|
7063
|
+
e == null || e(Y);
|
|
7064
7064
|
return;
|
|
7065
7065
|
}
|
|
7066
|
-
const
|
|
7067
|
-
e == null || e(
|
|
7066
|
+
const O = v;
|
|
7067
|
+
e == null || e(O);
|
|
7068
7068
|
},
|
|
7069
7069
|
[s, e]
|
|
7070
|
-
),
|
|
7070
|
+
), F = D(() => {
|
|
7071
7071
|
if (!f) {
|
|
7072
7072
|
if (s) {
|
|
7073
|
-
|
|
7073
|
+
W([]);
|
|
7074
7074
|
return;
|
|
7075
7075
|
}
|
|
7076
|
-
|
|
7076
|
+
W("");
|
|
7077
7077
|
}
|
|
7078
|
-
}, [
|
|
7079
|
-
(
|
|
7080
|
-
const
|
|
7081
|
-
|
|
7078
|
+
}, [W, s, f]), z = D(
|
|
7079
|
+
(v) => {
|
|
7080
|
+
const O = I.filter((Y) => Y !== v);
|
|
7081
|
+
W(O), P(O);
|
|
7082
7082
|
},
|
|
7083
|
-
[
|
|
7083
|
+
[W, I]
|
|
7084
7084
|
), H1 = D(
|
|
7085
|
-
(
|
|
7085
|
+
(v) => (I == null ? void 0 : I.indexOf(v)) === 0 ? (
|
|
7086
7086
|
// if the search input is empty
|
|
7087
7087
|
// then display the placeholder, else do not display it
|
|
7088
|
-
/* @__PURE__ */ o("span", { className: "custom-placeholder", children:
|
|
7088
|
+
/* @__PURE__ */ o("span", { className: "custom-placeholder", children: A ? t : "" })
|
|
7089
7089
|
) : /* @__PURE__ */ o(n1, {}),
|
|
7090
|
-
[
|
|
7091
|
-
), le = (
|
|
7092
|
-
|
|
7093
|
-
}, he = async (
|
|
7094
|
-
const { target:
|
|
7095
|
-
|
|
7090
|
+
[A, I, t]
|
|
7091
|
+
), le = (v) => {
|
|
7092
|
+
v.preventDefault(), v.stopPropagation();
|
|
7093
|
+
}, he = async (v) => {
|
|
7094
|
+
const { target: O } = v;
|
|
7095
|
+
O.scrollTop + O.offsetHeight >= O.scrollHeight - l && (p == null || p(!0)), m && await m(v);
|
|
7096
7096
|
}, v1 = D(
|
|
7097
|
-
(
|
|
7098
|
-
var
|
|
7099
|
-
return ((
|
|
7100
|
-
(N1) => N1.value ===
|
|
7101
|
-
)) == null ? void 0 :
|
|
7097
|
+
(v) => {
|
|
7098
|
+
var O, Y;
|
|
7099
|
+
return ((O = a.find((N1) => N1.value === v)) == null ? void 0 : O.label) || ((Y = k == null ? void 0 : k.find(
|
|
7100
|
+
(N1) => N1.value === v
|
|
7101
|
+
)) == null ? void 0 : Y.label) || v;
|
|
7102
7102
|
},
|
|
7103
7103
|
[k, a]
|
|
7104
7104
|
), ce = D(
|
|
7105
|
-
(
|
|
7106
|
-
var
|
|
7105
|
+
(v) => {
|
|
7106
|
+
var O;
|
|
7107
7107
|
return /* @__PURE__ */ o(
|
|
7108
7108
|
r3,
|
|
7109
7109
|
{
|
|
7110
|
-
values:
|
|
7110
|
+
values: v,
|
|
7111
7111
|
onTagClose: z,
|
|
7112
|
-
maxWidth: ((
|
|
7112
|
+
maxWidth: ((O = B.current) == null ? void 0 : O.clientWidth) || 0,
|
|
7113
7113
|
disabled: r,
|
|
7114
7114
|
closable: !f,
|
|
7115
7115
|
options: a,
|
|
@@ -7119,15 +7119,15 @@ const r3 = ({
|
|
|
7119
7119
|
},
|
|
7120
7120
|
[r, k, z, a, f]
|
|
7121
7121
|
), de = D(
|
|
7122
|
-
({ label:
|
|
7122
|
+
({ label: v, value: O, mode: Y }) => Y === "filter" ? H1(O) : /* @__PURE__ */ o("div", { onMouseDown: le, className: "tag-wrapper", children: /* @__PURE__ */ o(ie, { onClose: () => z(O), disabled: r, children: typeof v == "object" ? v : v1(O) }) }),
|
|
7123
7123
|
[r, v1, z, H1]
|
|
7124
7124
|
);
|
|
7125
7125
|
return /* @__PURE__ */ u(
|
|
7126
7126
|
"div",
|
|
7127
7127
|
{
|
|
7128
|
-
className: `snmt-select ${
|
|
7128
|
+
className: `snmt-select ${H ? "snmt-select-focused" : ""}
|
|
7129
7129
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
7130
|
-
ref:
|
|
7130
|
+
ref: B,
|
|
7131
7131
|
style: { width: c },
|
|
7132
7132
|
children: [
|
|
7133
7133
|
/* @__PURE__ */ o(
|
|
@@ -7136,30 +7136,30 @@ const r3 = ({
|
|
|
7136
7136
|
className: "snmt-select-blank",
|
|
7137
7137
|
popupClassName: f ? "dropdown-read-only" : "",
|
|
7138
7138
|
id: N,
|
|
7139
|
-
ref:
|
|
7139
|
+
ref: x,
|
|
7140
7140
|
showSearch: !!n,
|
|
7141
|
-
filterOption: n &&
|
|
7142
|
-
onDropdownVisibleChange:
|
|
7143
|
-
placeholder: t ?
|
|
7141
|
+
filterOption: n && S,
|
|
7142
|
+
onDropdownVisibleChange: $,
|
|
7143
|
+
placeholder: t ? d ? `${t}*` : t : void 0,
|
|
7144
7144
|
disabled: r,
|
|
7145
7145
|
value: I || void 0,
|
|
7146
|
-
labelRender: (
|
|
7146
|
+
labelRender: (v) => v1(v.value),
|
|
7147
7147
|
mode: s === "filter" ? "multiple" : s,
|
|
7148
|
-
onChange:
|
|
7148
|
+
onChange: W,
|
|
7149
7149
|
onFocus: t1,
|
|
7150
|
-
onBlur:
|
|
7151
|
-
onSearch: (
|
|
7152
|
-
V(!
|
|
7150
|
+
onBlur: j,
|
|
7151
|
+
onSearch: (v) => {
|
|
7152
|
+
V(!v), h && h(v);
|
|
7153
7153
|
},
|
|
7154
7154
|
onSelect: () => V(!0),
|
|
7155
7155
|
onDeselect: () => V(!0),
|
|
7156
|
-
tagRender: (
|
|
7156
|
+
tagRender: (v) => de({ ...v, mode: s }),
|
|
7157
7157
|
maxTagCount: "responsive",
|
|
7158
7158
|
maxTagPlaceholder: ce,
|
|
7159
7159
|
onPopupScroll: he,
|
|
7160
7160
|
prefix: _ && /* @__PURE__ */ o(A1, { size: 15 }),
|
|
7161
7161
|
suffixIcon: /* @__PURE__ */ o("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(n1, { children: [
|
|
7162
|
-
I && !!I.length && (s ||
|
|
7162
|
+
I && !!I.length && (s || g) && /* @__PURE__ */ o("div", { onClick: F, children: /* @__PURE__ */ o(
|
|
7163
7163
|
d1,
|
|
7164
7164
|
{
|
|
7165
7165
|
name: "cancel",
|
|
@@ -7171,27 +7171,27 @@ const r3 = ({
|
|
|
7171
7171
|
{
|
|
7172
7172
|
name: "selectArrowIcon",
|
|
7173
7173
|
color: r ? J.GREY_DARK_1 : J.GREY_DARK_5,
|
|
7174
|
-
className:
|
|
7175
|
-
onClick: () => w(!
|
|
7174
|
+
className: y ? "select-arrow-rotated" : "select-arrow",
|
|
7175
|
+
onClick: () => w(!y)
|
|
7176
7176
|
}
|
|
7177
7177
|
)
|
|
7178
7178
|
] }) }),
|
|
7179
7179
|
removeIcon: /* @__PURE__ */ o(d1, { name: "errorSmall", color: J.GREY_DARK_2 }),
|
|
7180
7180
|
options: a,
|
|
7181
|
-
optionRender: (
|
|
7181
|
+
optionRender: (v) => R ? R(v.data) : /* @__PURE__ */ u(u1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
7182
7182
|
/* @__PURE__ */ u(u1, { alignItems: "center", gap: 12, children: [
|
|
7183
7183
|
s && /* @__PURE__ */ o(
|
|
7184
7184
|
$e,
|
|
7185
7185
|
{
|
|
7186
|
-
checked: !!(I != null && I.includes(
|
|
7186
|
+
checked: !!(I != null && I.includes(v.value))
|
|
7187
7187
|
}
|
|
7188
7188
|
),
|
|
7189
7189
|
/* @__PURE__ */ u(u1, { alignItems: "center", gap: 8, children: [
|
|
7190
|
-
|
|
7191
|
-
/* @__PURE__ */ o("span", { children:
|
|
7190
|
+
v.data.image && /* @__PURE__ */ o(Pe, { src: v.data.image, size: 20 }),
|
|
7191
|
+
/* @__PURE__ */ o("span", { children: v.label })
|
|
7192
7192
|
] })
|
|
7193
7193
|
] }),
|
|
7194
|
-
!s && I ===
|
|
7194
|
+
!s && I === v.value && /* @__PURE__ */ o(
|
|
7195
7195
|
d1,
|
|
7196
7196
|
{
|
|
7197
7197
|
name: "ok",
|
|
@@ -7211,17 +7211,17 @@ const r3 = ({
|
|
|
7211
7211
|
},
|
|
7212
7212
|
children: /* @__PURE__ */ o(A1, { size: 28 })
|
|
7213
7213
|
}
|
|
7214
|
-
) : (
|
|
7214
|
+
) : (v) => E ? E(v) : v
|
|
7215
7215
|
}
|
|
7216
7216
|
),
|
|
7217
7217
|
/* @__PURE__ */ o(
|
|
7218
7218
|
"fieldset",
|
|
7219
7219
|
{
|
|
7220
|
-
className: `${
|
|
7220
|
+
className: `${H ? "fieldset-focused" : ""}
|
|
7221
7221
|
${r ? "fieldset-disabled" : ""}
|
|
7222
7222
|
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
|
7223
7223
|
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
|
7224
|
-
children: /* @__PURE__ */ o("legend", { children: t ? /* @__PURE__ */ o("span", { children:
|
|
7224
|
+
children: /* @__PURE__ */ o("legend", { children: t ? /* @__PURE__ */ o("span", { children: d ? `${t}*` : t }) : "" })
|
|
7225
7225
|
}
|
|
7226
7226
|
)
|
|
7227
7227
|
]
|
|
@@ -7231,7 +7231,7 @@ const r3 = ({
|
|
|
7231
7231
|
);
|
|
7232
7232
|
function a3(i, e = 500) {
|
|
7233
7233
|
const t = X();
|
|
7234
|
-
return
|
|
7234
|
+
return K(() => () => {
|
|
7235
7235
|
t.current && clearTimeout(t.current);
|
|
7236
7236
|
}, []), (...s) => {
|
|
7237
7237
|
const n = setTimeout(() => {
|
|
@@ -7243,7 +7243,7 @@ function a3(i, e = 500) {
|
|
|
7243
7243
|
const r1 = {
|
|
7244
7244
|
limit: 100,
|
|
7245
7245
|
offset: 0
|
|
7246
|
-
},
|
|
7246
|
+
}, W1 = k1(
|
|
7247
7247
|
({
|
|
7248
7248
|
loadOptions: i,
|
|
7249
7249
|
width: e,
|
|
@@ -7253,77 +7253,79 @@ const r1 = {
|
|
|
7253
7253
|
disabled: a,
|
|
7254
7254
|
scrollThresholdValue: c,
|
|
7255
7255
|
placeholder: r,
|
|
7256
|
-
mode:
|
|
7257
|
-
loadOnClosedState:
|
|
7256
|
+
mode: d,
|
|
7257
|
+
loadOnClosedState: g,
|
|
7258
7258
|
extraOptions: l,
|
|
7259
7259
|
onDropdownVisibleChange: h,
|
|
7260
7260
|
optionRender: C,
|
|
7261
7261
|
dropdownRender: p,
|
|
7262
|
-
readOnly:
|
|
7263
|
-
clearable: N
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7262
|
+
readOnly: m,
|
|
7263
|
+
clearable: N,
|
|
7264
|
+
required: k = !1
|
|
7265
|
+
}, E) => {
|
|
7266
|
+
const [R, _] = Z([]), [f, x] = Z(r1), [y, w] = Z(!1), [H, G] = Z(null), A = D(
|
|
7267
|
+
async (S = !1, t1) => {
|
|
7268
|
+
if (!y) {
|
|
7269
|
+
w(!0);
|
|
7269
7270
|
try {
|
|
7270
|
-
const
|
|
7271
|
-
|
|
7272
|
-
(
|
|
7273
|
-
),
|
|
7274
|
-
...
|
|
7275
|
-
offset:
|
|
7271
|
+
const j = S ? { ...r1, search: t1 } : f, W = await i(j);
|
|
7272
|
+
_(
|
|
7273
|
+
(F) => S ? W.options : [...F, ...W.options]
|
|
7274
|
+
), G(W.count), x((F) => ({
|
|
7275
|
+
...F,
|
|
7276
|
+
offset: F.offset + F.limit
|
|
7276
7277
|
}));
|
|
7277
7278
|
} finally {
|
|
7278
|
-
|
|
7279
|
+
w(!1);
|
|
7279
7280
|
}
|
|
7280
7281
|
}
|
|
7281
7282
|
},
|
|
7282
|
-
[
|
|
7283
|
-
),
|
|
7284
|
-
(
|
|
7285
|
-
|
|
7283
|
+
[f, i, y]
|
|
7284
|
+
), V = a3(A), I = D(
|
|
7285
|
+
(S) => {
|
|
7286
|
+
S === "" || S === void 0 || S === null ? (x(r1), V(!0)) : V(!0, S);
|
|
7286
7287
|
},
|
|
7287
|
-
[
|
|
7288
|
-
),
|
|
7289
|
-
|
|
7290
|
-
},
|
|
7291
|
-
(
|
|
7292
|
-
|
|
7288
|
+
[V]
|
|
7289
|
+
), P = async (S) => {
|
|
7290
|
+
S && H !== null && H > R.length && await A(!1);
|
|
7291
|
+
}, B = D(
|
|
7292
|
+
(S) => {
|
|
7293
|
+
S && !g && (_([]), x(r1), A(!0)), h == null || h(S);
|
|
7293
7294
|
},
|
|
7294
7295
|
// eslint-disable-next-line
|
|
7295
|
-
[
|
|
7296
|
+
[g]
|
|
7296
7297
|
);
|
|
7297
|
-
|
|
7298
|
-
|
|
7298
|
+
K(() => {
|
|
7299
|
+
g && A(!1);
|
|
7299
7300
|
}, []);
|
|
7300
|
-
const
|
|
7301
|
+
const $ = {
|
|
7301
7302
|
id: n,
|
|
7302
7303
|
width: e,
|
|
7303
|
-
options:
|
|
7304
|
+
options: R,
|
|
7304
7305
|
onChange: t,
|
|
7305
|
-
ref:
|
|
7306
|
+
ref: E,
|
|
7306
7307
|
placeholder: r,
|
|
7307
7308
|
search: !0,
|
|
7308
7309
|
value: s,
|
|
7309
|
-
onSearchChange:
|
|
7310
|
-
onDropdownVisibleChange:
|
|
7310
|
+
onSearchChange: I,
|
|
7311
|
+
onDropdownVisibleChange: B,
|
|
7311
7312
|
scrollThresholdValue: c,
|
|
7312
|
-
onScrollToEnd:
|
|
7313
|
-
loadOnClosedState:
|
|
7313
|
+
onScrollToEnd: P,
|
|
7314
|
+
loadOnClosedState: g,
|
|
7314
7315
|
disabled: a,
|
|
7315
7316
|
extraOptions: l,
|
|
7316
|
-
isLoading:
|
|
7317
|
+
isLoading: y,
|
|
7317
7318
|
optionRender: C,
|
|
7318
7319
|
dropdownRender: p,
|
|
7319
|
-
readOnly:
|
|
7320
|
-
clearable: N
|
|
7320
|
+
readOnly: m,
|
|
7321
|
+
clearable: N,
|
|
7322
|
+
required: k
|
|
7321
7323
|
};
|
|
7322
|
-
return Ce(
|
|
7324
|
+
return Ce(E, () => ({
|
|
7323
7325
|
refetchOptions: async () => {
|
|
7324
|
-
|
|
7326
|
+
x(r1), await A(!0);
|
|
7325
7327
|
}
|
|
7326
|
-
})),
|
|
7328
|
+
})), d ? /* @__PURE__ */ o(B1, { ...$, onChange: t, value: s, mode: d }) : /* @__PURE__ */ o("div", { className: "snmt-async-select", children: /* @__PURE__ */ o(B1, { ...$, onChange: t, value: s }) });
|
|
7327
7329
|
}
|
|
7328
7330
|
);
|
|
7329
7331
|
var C1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(C1 || {});
|
|
@@ -7340,14 +7342,14 @@ function h3() {
|
|
|
7340
7342
|
if (console && console.warn) {
|
|
7341
7343
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7342
7344
|
e[t] = arguments[t];
|
|
7343
|
-
|
|
7345
|
+
Q(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
7344
7346
|
}
|
|
7345
7347
|
}
|
|
7346
|
-
const
|
|
7347
|
-
function
|
|
7348
|
+
const Z1 = {};
|
|
7349
|
+
function b1() {
|
|
7348
7350
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7349
7351
|
e[t] = arguments[t];
|
|
7350
|
-
|
|
7352
|
+
Q(e[0]) && Z1[e[0]] || (Q(e[0]) && (Z1[e[0]] = /* @__PURE__ */ new Date()), h3(...e));
|
|
7351
7353
|
}
|
|
7352
7354
|
const se = (i, e) => () => {
|
|
7353
7355
|
if (i.isInitialized)
|
|
@@ -7363,27 +7365,27 @@ const se = (i, e) => () => {
|
|
|
7363
7365
|
}, j1 = (i, e, t) => {
|
|
7364
7366
|
i.loadNamespaces(e, se(i, t));
|
|
7365
7367
|
}, D1 = (i, e, t, s) => {
|
|
7366
|
-
|
|
7368
|
+
Q(t) && (t = [t]), t.forEach((n) => {
|
|
7367
7369
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
7368
7370
|
}), i.loadLanguages(e, se(i, s));
|
|
7369
7371
|
}, c3 = function(i, e) {
|
|
7370
7372
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7371
7373
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
7372
7374
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7373
|
-
const c = (r,
|
|
7374
|
-
const
|
|
7375
|
-
return
|
|
7375
|
+
const c = (r, d) => {
|
|
7376
|
+
const g = e.services.backendConnector.state[`${r}|${d}`];
|
|
7377
|
+
return g === -1 || g === 2;
|
|
7376
7378
|
};
|
|
7377
7379
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(a, i)));
|
|
7378
7380
|
}, d3 = function(i, e) {
|
|
7379
7381
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7380
|
-
return !e.languages || !e.languages.length ? (
|
|
7382
|
+
return !e.languages || !e.languages.length ? (b1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
7381
7383
|
lng: t.lng,
|
|
7382
7384
|
precheck: (n, a) => {
|
|
7383
7385
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !a(n.isLanguageChangingTo, i)) return !1;
|
|
7384
7386
|
}
|
|
7385
7387
|
}) : c3(i, e, t);
|
|
7386
|
-
},
|
|
7388
|
+
}, Q = (i) => typeof i == "string", g3 = (i) => typeof i == "object" && i !== null, u3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, C3 = {
|
|
7387
7389
|
"&": "&",
|
|
7388
7390
|
"&": "&",
|
|
7389
7391
|
"<": "<",
|
|
@@ -7405,7 +7407,7 @@ const se = (i, e) => () => {
|
|
|
7405
7407
|
"/": "/",
|
|
7406
7408
|
"/": "/"
|
|
7407
7409
|
}, p3 = (i) => C3[i], f3 = (i) => i.replace(u3, p3);
|
|
7408
|
-
let
|
|
7410
|
+
let y1 = {
|
|
7409
7411
|
bindI18n: "languageChanged",
|
|
7410
7412
|
bindI18nStore: "",
|
|
7411
7413
|
transEmptyNodeValue: "",
|
|
@@ -7417,11 +7419,11 @@ let b1 = {
|
|
|
7417
7419
|
};
|
|
7418
7420
|
const w3 = function() {
|
|
7419
7421
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7420
|
-
|
|
7421
|
-
...
|
|
7422
|
+
y1 = {
|
|
7423
|
+
...y1,
|
|
7422
7424
|
...i
|
|
7423
7425
|
};
|
|
7424
|
-
}, m3 = () =>
|
|
7426
|
+
}, m3 = () => y1;
|
|
7425
7427
|
let ne;
|
|
7426
7428
|
const k3 = (i) => {
|
|
7427
7429
|
ne = i;
|
|
@@ -7444,10 +7446,10 @@ class x3 {
|
|
|
7444
7446
|
}
|
|
7445
7447
|
const R3 = (i, e) => {
|
|
7446
7448
|
const t = X();
|
|
7447
|
-
return
|
|
7449
|
+
return K(() => {
|
|
7448
7450
|
t.current = i;
|
|
7449
7451
|
}, [i, e]), t.current;
|
|
7450
|
-
}, oe = (i, e, t, s) => i.getFixedT(e, t, s), M3 = (i, e, t, s) => D(oe(i, e, t, s), [i, e, t, s]),
|
|
7452
|
+
}, oe = (i, e, t, s) => i.getFixedT(e, t, s), M3 = (i, e, t, s) => D(oe(i, e, t, s), [i, e, t, s]), b3 = function(i) {
|
|
7451
7453
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7452
7454
|
const {
|
|
7453
7455
|
i18n: t
|
|
@@ -7456,61 +7458,61 @@ const R3 = (i, e) => {
|
|
|
7456
7458
|
defaultNS: n
|
|
7457
7459
|
} = e1(N3) || {}, a = t || s || L3();
|
|
7458
7460
|
if (a && !a.reportNamespaces && (a.reportNamespaces = new x3()), !a) {
|
|
7459
|
-
|
|
7460
|
-
const f = (
|
|
7461
|
-
return
|
|
7461
|
+
b1("You will need to pass in an i18next instance by using initReactI18next");
|
|
7462
|
+
const f = (y, w) => Q(w) ? w : g3(w) && Q(w.defaultValue) ? w.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, x = [f, {}, !1];
|
|
7463
|
+
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
7462
7464
|
}
|
|
7463
|
-
a.options.react && a.options.react.wait !== void 0 &&
|
|
7465
|
+
a.options.react && a.options.react.wait !== void 0 && b1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
7464
7466
|
const c = {
|
|
7465
7467
|
...m3(),
|
|
7466
7468
|
...a.options.react,
|
|
7467
7469
|
...e
|
|
7468
7470
|
}, {
|
|
7469
7471
|
useSuspense: r,
|
|
7470
|
-
keyPrefix:
|
|
7472
|
+
keyPrefix: d
|
|
7471
7473
|
} = c;
|
|
7472
|
-
let
|
|
7473
|
-
|
|
7474
|
-
const l = (a.isInitialized || a.initializedStoreOnce) &&
|
|
7475
|
-
let k =
|
|
7474
|
+
let g = i;
|
|
7475
|
+
g = Q(g) ? [g] : g || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(g);
|
|
7476
|
+
const l = (a.isInitialized || a.initializedStoreOnce) && g.every((f) => d3(f, a, c)), h = M3(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), C = () => h, p = () => oe(a, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [m, N] = Z(C);
|
|
7477
|
+
let k = g.join();
|
|
7476
7478
|
e.lng && (k = `${e.lng}${k}`);
|
|
7477
|
-
const E = R3(k),
|
|
7478
|
-
|
|
7479
|
+
const E = R3(k), R = X(!0);
|
|
7480
|
+
K(() => {
|
|
7479
7481
|
const {
|
|
7480
7482
|
bindI18n: f,
|
|
7481
|
-
bindI18nStore:
|
|
7483
|
+
bindI18nStore: x
|
|
7482
7484
|
} = c;
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
}) : j1(a,
|
|
7486
|
-
|
|
7487
|
-
})), l && E && E !== k &&
|
|
7488
|
-
const
|
|
7489
|
-
|
|
7485
|
+
R.current = !0, !l && !r && (e.lng ? D1(a, e.lng, g, () => {
|
|
7486
|
+
R.current && N(p);
|
|
7487
|
+
}) : j1(a, g, () => {
|
|
7488
|
+
R.current && N(p);
|
|
7489
|
+
})), l && E && E !== k && R.current && N(p);
|
|
7490
|
+
const y = () => {
|
|
7491
|
+
R.current && N(p);
|
|
7490
7492
|
};
|
|
7491
|
-
return f && a && a.on(f,
|
|
7492
|
-
|
|
7493
|
+
return f && a && a.on(f, y), x && a && a.store.on(x, y), () => {
|
|
7494
|
+
R.current = !1, f && a && f.split(" ").forEach((w) => a.off(w, y)), x && a && x.split(" ").forEach((w) => a.store.off(w, y));
|
|
7493
7495
|
};
|
|
7494
|
-
}, [a, k]),
|
|
7495
|
-
|
|
7496
|
-
}, [a,
|
|
7497
|
-
const _ = [
|
|
7498
|
-
if (_.t =
|
|
7496
|
+
}, [a, k]), K(() => {
|
|
7497
|
+
R.current && l && N(C);
|
|
7498
|
+
}, [a, d, l]);
|
|
7499
|
+
const _ = [m, a, l];
|
|
7500
|
+
if (_.t = m, _.i18n = a, _.ready = l, l || !l && !r) return _;
|
|
7499
7501
|
throw new Promise((f) => {
|
|
7500
|
-
e.lng ? D1(a, e.lng,
|
|
7502
|
+
e.lng ? D1(a, e.lng, g, () => f()) : j1(a, g, () => f());
|
|
7501
7503
|
});
|
|
7502
|
-
},
|
|
7504
|
+
}, L = (i) => typeof i == "string", a1 = () => {
|
|
7503
7505
|
let i, e;
|
|
7504
7506
|
const t = new Promise((s, n) => {
|
|
7505
7507
|
i = s, e = n;
|
|
7506
7508
|
});
|
|
7507
7509
|
return t.resolve = i, t.reject = e, t;
|
|
7508
|
-
}, T1 = (i) => i == null ? "" : "" + i,
|
|
7510
|
+
}, T1 = (i) => i == null ? "" : "" + i, y3 = (i, e, t) => {
|
|
7509
7511
|
i.forEach((s) => {
|
|
7510
7512
|
e[s] && (t[s] = e[s]);
|
|
7511
7513
|
});
|
|
7512
|
-
}, E3 = /###/g, G1 = (i) => i && i.indexOf("###") > -1 ? i.replace(E3, ".") : i, K1 = (i) => !i ||
|
|
7513
|
-
const s =
|
|
7514
|
+
}, E3 = /###/g, G1 = (i) => i && i.indexOf("###") > -1 ? i.replace(E3, ".") : i, K1 = (i) => !i || L(i), h1 = (i, e, t) => {
|
|
7515
|
+
const s = L(e) ? e.split(".") : e;
|
|
7514
7516
|
let n = 0;
|
|
7515
7517
|
for (; n < s.length - 1; ) {
|
|
7516
7518
|
if (K1(i)) return {};
|
|
@@ -7552,7 +7554,7 @@ const R3 = (i, e) => {
|
|
|
7552
7554
|
return s !== void 0 ? s : p1(e, t);
|
|
7553
7555
|
}, re = (i, e, t) => {
|
|
7554
7556
|
for (const s in e)
|
|
7555
|
-
s !== "__proto__" && s !== "constructor" && (s in i ?
|
|
7557
|
+
s !== "__proto__" && s !== "constructor" && (s in i ? L(i[s]) || i[s] instanceof String || L(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : re(i[s], e[s], t) : i[s] = e[s]);
|
|
7556
7558
|
return i;
|
|
7557
7559
|
}, i1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
7558
7560
|
var V3 = {
|
|
@@ -7563,7 +7565,7 @@ var V3 = {
|
|
|
7563
7565
|
"'": "'",
|
|
7564
7566
|
"/": "/"
|
|
7565
7567
|
};
|
|
7566
|
-
const I3 = (i) =>
|
|
7568
|
+
const I3 = (i) => L(i) ? i.replace(/[&<>"'\/]/g, (e) => V3[e]) : i;
|
|
7567
7569
|
class S3 {
|
|
7568
7570
|
constructor(e) {
|
|
7569
7571
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -7597,17 +7599,17 @@ const O3 = [" ", ",", "?", "!", ";"], A3 = new S3(20), B3 = (i, e, t) => {
|
|
|
7597
7599
|
if (!n || typeof n != "object")
|
|
7598
7600
|
return;
|
|
7599
7601
|
let c, r = "";
|
|
7600
|
-
for (let
|
|
7601
|
-
if (
|
|
7602
|
-
if (["string", "number", "boolean"].indexOf(typeof c) > -1 &&
|
|
7602
|
+
for (let d = a; d < s.length; ++d)
|
|
7603
|
+
if (d !== a && (r += t), r += s[d], c = n[r], c !== void 0) {
|
|
7604
|
+
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
|
|
7603
7605
|
continue;
|
|
7604
|
-
a +=
|
|
7606
|
+
a += d - a + 1;
|
|
7605
7607
|
break;
|
|
7606
7608
|
}
|
|
7607
7609
|
n = c;
|
|
7608
7610
|
}
|
|
7609
7611
|
return n;
|
|
7610
|
-
}, f1 = (i) => i && i.replace("_", "-"),
|
|
7612
|
+
}, f1 = (i) => i && i.replace("_", "-"), W3 = {
|
|
7611
7613
|
type: "logger",
|
|
7612
7614
|
log(i) {
|
|
7613
7615
|
this.output("log", i);
|
|
@@ -7629,7 +7631,7 @@ class w1 {
|
|
|
7629
7631
|
}
|
|
7630
7632
|
init(e) {
|
|
7631
7633
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7632
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
7634
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || W3, this.options = t, this.debug = t.debug;
|
|
7633
7635
|
}
|
|
7634
7636
|
log() {
|
|
7635
7637
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -7652,7 +7654,7 @@ class w1 {
|
|
|
7652
7654
|
return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
|
|
7653
7655
|
}
|
|
7654
7656
|
forward(e, t, s, n) {
|
|
7655
|
-
return n && !this.debug ? null : (
|
|
7657
|
+
return n && !this.debug ? null : (L(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
7656
7658
|
}
|
|
7657
7659
|
create(e) {
|
|
7658
7660
|
return new w1(this.logger, {
|
|
@@ -7664,7 +7666,7 @@ class w1 {
|
|
|
7664
7666
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new w1(this.logger, e);
|
|
7665
7667
|
}
|
|
7666
7668
|
}
|
|
7667
|
-
var
|
|
7669
|
+
var U = new w1();
|
|
7668
7670
|
class L1 {
|
|
7669
7671
|
constructor() {
|
|
7670
7672
|
this.observers = {};
|
|
@@ -7689,12 +7691,12 @@ class L1 {
|
|
|
7689
7691
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
7690
7692
|
s[n - 1] = arguments[n];
|
|
7691
7693
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
7692
|
-
let [r,
|
|
7693
|
-
for (let
|
|
7694
|
+
let [r, d] = c;
|
|
7695
|
+
for (let g = 0; g < d; g++)
|
|
7694
7696
|
r(...s);
|
|
7695
7697
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
7696
|
-
let [r,
|
|
7697
|
-
for (let
|
|
7698
|
+
let [r, d] = c;
|
|
7699
|
+
for (let g = 0; g < d; g++)
|
|
7698
7700
|
r.apply(r, [e, ...s]);
|
|
7699
7701
|
});
|
|
7700
7702
|
}
|
|
@@ -7718,9 +7720,9 @@ class $1 extends L1 {
|
|
|
7718
7720
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
7719
7721
|
const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
7720
7722
|
let r;
|
|
7721
|
-
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) :
|
|
7722
|
-
const
|
|
7723
|
-
return !
|
|
7723
|
+
e.indexOf(".") > -1 ? r = e.split(".") : (r = [e, t], s && (Array.isArray(s) ? r.push(...s) : L(s) && a ? r.push(...s.split(a)) : r.push(s)));
|
|
7724
|
+
const d = p1(this.data, r);
|
|
7725
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = r[0], t = r[1], s = r.slice(2).join(".")), d || !c || !L(s) ? d : E1(this.data && this.data[e] && this.data[e][t], s, a);
|
|
7724
7726
|
}
|
|
7725
7727
|
addResource(e, t, s, n) {
|
|
7726
7728
|
let a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -7735,7 +7737,7 @@ class $1 extends L1 {
|
|
|
7735
7737
|
silent: !1
|
|
7736
7738
|
};
|
|
7737
7739
|
for (const a in s)
|
|
7738
|
-
(
|
|
7740
|
+
(L(s[a]) || Array.isArray(s[a])) && this.addResource(e, t, a, s[a], {
|
|
7739
7741
|
silent: !0
|
|
7740
7742
|
});
|
|
7741
7743
|
n.silent || this.emit("added", e, t, s);
|
|
@@ -7746,11 +7748,11 @@ class $1 extends L1 {
|
|
|
7746
7748
|
skipCopy: !1
|
|
7747
7749
|
}, r = [e, t];
|
|
7748
7750
|
e.indexOf(".") > -1 && (r = e.split("."), n = s, s = t, t = r[1]), this.addNamespaces(t);
|
|
7749
|
-
let
|
|
7750
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? re(
|
|
7751
|
-
...
|
|
7751
|
+
let d = p1(this.data, r) || {};
|
|
7752
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? re(d, s, a) : d = {
|
|
7753
|
+
...d,
|
|
7752
7754
|
...s
|
|
7753
|
-
}, P1(this.data, r,
|
|
7755
|
+
}, P1(this.data, r, d), c.silent || this.emit("added", e, t, s);
|
|
7754
7756
|
}
|
|
7755
7757
|
removeResourceBundle(e, t) {
|
|
7756
7758
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -7789,7 +7791,7 @@ const F1 = {};
|
|
|
7789
7791
|
class m1 extends L1 {
|
|
7790
7792
|
constructor(e) {
|
|
7791
7793
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7792
|
-
super(),
|
|
7794
|
+
super(), y3(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = U.create("translator");
|
|
7793
7795
|
}
|
|
7794
7796
|
changeLanguage(e) {
|
|
7795
7797
|
e && (this.language = e);
|
|
@@ -7810,18 +7812,18 @@ class m1 extends L1 {
|
|
|
7810
7812
|
let a = t.ns || this.options.defaultNS || [];
|
|
7811
7813
|
const c = s && e.indexOf(s) > -1, r = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !B3(e, s, n);
|
|
7812
7814
|
if (c && !r) {
|
|
7813
|
-
const
|
|
7814
|
-
if (
|
|
7815
|
+
const d = e.match(this.interpolator.nestingRegexp);
|
|
7816
|
+
if (d && d.length > 0)
|
|
7815
7817
|
return {
|
|
7816
7818
|
key: e,
|
|
7817
|
-
namespaces:
|
|
7819
|
+
namespaces: L(a) ? [a] : a
|
|
7818
7820
|
};
|
|
7819
|
-
const
|
|
7820
|
-
(s !== n || s === n && this.options.ns.indexOf(
|
|
7821
|
+
const g = e.split(s);
|
|
7822
|
+
(s !== n || s === n && this.options.ns.indexOf(g[0]) > -1) && (a = g.shift()), e = g.join(n);
|
|
7821
7823
|
}
|
|
7822
7824
|
return {
|
|
7823
7825
|
key: e,
|
|
7824
|
-
namespaces:
|
|
7826
|
+
namespaces: L(a) ? [a] : a
|
|
7825
7827
|
};
|
|
7826
7828
|
}
|
|
7827
7829
|
translate(e, t, s) {
|
|
@@ -7832,32 +7834,32 @@ class m1 extends L1 {
|
|
|
7832
7834
|
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, a = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
7833
7835
|
key: c,
|
|
7834
7836
|
namespaces: r
|
|
7835
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
7836
|
-
if (
|
|
7837
|
+
} = this.extractFromKey(e[e.length - 1], t), d = r[r.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
7838
|
+
if (g && g.toLowerCase() === "cimode") {
|
|
7837
7839
|
if (l) {
|
|
7838
7840
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
7839
7841
|
return n ? {
|
|
7840
|
-
res: `${
|
|
7842
|
+
res: `${d}${f}${c}`,
|
|
7841
7843
|
usedKey: c,
|
|
7842
7844
|
exactUsedKey: c,
|
|
7843
|
-
usedLng:
|
|
7844
|
-
usedNS:
|
|
7845
|
+
usedLng: g,
|
|
7846
|
+
usedNS: d,
|
|
7845
7847
|
usedParams: this.getUsedParamsDetails(t)
|
|
7846
|
-
} : `${
|
|
7848
|
+
} : `${d}${f}${c}`;
|
|
7847
7849
|
}
|
|
7848
7850
|
return n ? {
|
|
7849
7851
|
res: c,
|
|
7850
7852
|
usedKey: c,
|
|
7851
7853
|
exactUsedKey: c,
|
|
7852
|
-
usedLng:
|
|
7853
|
-
usedNS:
|
|
7854
|
+
usedLng: g,
|
|
7855
|
+
usedNS: d,
|
|
7854
7856
|
usedParams: this.getUsedParamsDetails(t)
|
|
7855
7857
|
} : c;
|
|
7856
7858
|
}
|
|
7857
7859
|
const h = this.resolve(e, t);
|
|
7858
7860
|
let C = h && h.res;
|
|
7859
|
-
const p = h && h.usedKey || c,
|
|
7860
|
-
if (
|
|
7861
|
+
const p = h && h.usedKey || c, m = h && h.exactUsedKey || c, N = Object.prototype.toString.apply(C), k = ["[object Number]", "[object Function]", "[object RegExp]"], E = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, R = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = !L(C) && typeof C != "boolean" && typeof C != "number";
|
|
7862
|
+
if (R && C && _ && k.indexOf(N) < 0 && !(L(E) && Array.isArray(C))) {
|
|
7861
7863
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
7862
7864
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
7863
7865
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
|
@@ -7867,53 +7869,53 @@ class m1 extends L1 {
|
|
|
7867
7869
|
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
7868
7870
|
}
|
|
7869
7871
|
if (a) {
|
|
7870
|
-
const f = Array.isArray(C),
|
|
7872
|
+
const f = Array.isArray(C), x = f ? [] : {}, y = f ? m : p;
|
|
7871
7873
|
for (const w in C)
|
|
7872
7874
|
if (Object.prototype.hasOwnProperty.call(C, w)) {
|
|
7873
|
-
const
|
|
7874
|
-
|
|
7875
|
+
const H = `${y}${a}${w}`;
|
|
7876
|
+
x[w] = this.translate(H, {
|
|
7875
7877
|
...t,
|
|
7876
7878
|
joinArrays: !1,
|
|
7877
7879
|
ns: r
|
|
7878
|
-
}),
|
|
7880
|
+
}), x[w] === H && (x[w] = C[w]);
|
|
7879
7881
|
}
|
|
7880
|
-
C =
|
|
7882
|
+
C = x;
|
|
7881
7883
|
}
|
|
7882
|
-
} else if (
|
|
7884
|
+
} else if (R && L(E) && Array.isArray(C))
|
|
7883
7885
|
C = C.join(E), C && (C = this.extendTranslation(C, e, t, s));
|
|
7884
7886
|
else {
|
|
7885
|
-
let f = !1,
|
|
7886
|
-
const
|
|
7887
|
+
let f = !1, x = !1;
|
|
7888
|
+
const y = t.count !== void 0 && !L(t.count), w = m1.hasDefaultValue(t), H = y ? this.pluralResolver.getSuffix(g, t.count, t) : "", G = t.ordinal && y ? this.pluralResolver.getSuffix(g, t.count, {
|
|
7887
7889
|
ordinal: !1
|
|
7888
|
-
}) : "",
|
|
7889
|
-
!this.isValidLookup(C) && w && (f = !0, C = V), this.isValidLookup(C) || (
|
|
7890
|
-
const
|
|
7891
|
-
if (
|
|
7892
|
-
if (this.logger.log(
|
|
7893
|
-
const
|
|
7890
|
+
}) : "", A = y && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), V = A && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${H}`] || t[`defaultValue${G}`] || t.defaultValue;
|
|
7891
|
+
!this.isValidLookup(C) && w && (f = !0, C = V), this.isValidLookup(C) || (x = !0, C = c);
|
|
7892
|
+
const P = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : C, B = w && V !== C && this.options.updateMissing;
|
|
7893
|
+
if (x || f || B) {
|
|
7894
|
+
if (this.logger.log(B ? "updateKey" : "missingKey", g, d, c, B ? V : C), a) {
|
|
7895
|
+
const j = this.resolve(c, {
|
|
7894
7896
|
...t,
|
|
7895
7897
|
keySeparator: !1
|
|
7896
7898
|
});
|
|
7897
|
-
|
|
7898
|
-
}
|
|
7899
|
-
let
|
|
7900
|
-
const
|
|
7901
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
7902
|
-
for (let
|
|
7903
|
-
|
|
7904
|
-
else this.options.saveMissingTo === "all" ?
|
|
7905
|
-
const t1 = (
|
|
7906
|
-
const z = w &&
|
|
7907
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
7899
|
+
j && j.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
7900
|
+
}
|
|
7901
|
+
let $ = [];
|
|
7902
|
+
const S = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
7903
|
+
if (this.options.saveMissingTo === "fallback" && S && S[0])
|
|
7904
|
+
for (let j = 0; j < S.length; j++)
|
|
7905
|
+
$.push(S[j]);
|
|
7906
|
+
else this.options.saveMissingTo === "all" ? $ = this.languageUtils.toResolveHierarchy(t.lng || this.language) : $.push(t.lng || this.language);
|
|
7907
|
+
const t1 = (j, W, F) => {
|
|
7908
|
+
const z = w && F !== C ? F : P;
|
|
7909
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(j, d, W, z, B, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(j, d, W, z, B, t), this.emit("missingKey", j, d, W, C);
|
|
7908
7910
|
};
|
|
7909
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
7910
|
-
const
|
|
7911
|
-
|
|
7912
|
-
t1([
|
|
7911
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && y ? $.forEach((j) => {
|
|
7912
|
+
const W = this.pluralResolver.getSuffixes(j, t);
|
|
7913
|
+
A && t[`defaultValue${this.options.pluralSeparator}zero`] && W.indexOf(`${this.options.pluralSeparator}zero`) < 0 && W.push(`${this.options.pluralSeparator}zero`), W.forEach((F) => {
|
|
7914
|
+
t1([j], c + F, t[`defaultValue${F}`] || V);
|
|
7913
7915
|
});
|
|
7914
|
-
}) : t1(
|
|
7916
|
+
}) : t1($, c, V));
|
|
7915
7917
|
}
|
|
7916
|
-
C = this.extendTranslation(C, e, t, h, s),
|
|
7918
|
+
C = this.extendTranslation(C, e, t, h, s), x && C === c && this.options.appendNamespaceToMissingKey && (C = `${d}:${c}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
|
7917
7919
|
}
|
|
7918
7920
|
return n ? (h.res = C, h.usedParams = this.getUsedParamsDetails(t), h) : C;
|
|
7919
7921
|
}
|
|
@@ -7934,28 +7936,28 @@ class m1 extends L1 {
|
|
|
7934
7936
|
...s.interpolation
|
|
7935
7937
|
}
|
|
7936
7938
|
});
|
|
7937
|
-
const
|
|
7939
|
+
const g = L(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
7938
7940
|
let l;
|
|
7939
|
-
if (
|
|
7941
|
+
if (g) {
|
|
7940
7942
|
const C = e.match(this.interpolator.nestingRegexp);
|
|
7941
7943
|
l = C && C.length;
|
|
7942
7944
|
}
|
|
7943
|
-
let h = s.replace && !
|
|
7945
|
+
let h = s.replace && !L(s.replace) ? s.replace : s;
|
|
7944
7946
|
if (this.options.interpolation.defaultVariables && (h = {
|
|
7945
7947
|
...this.options.interpolation.defaultVariables,
|
|
7946
7948
|
...h
|
|
7947
|
-
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s),
|
|
7949
|
+
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s), g) {
|
|
7948
7950
|
const C = e.match(this.interpolator.nestingRegexp), p = C && C.length;
|
|
7949
7951
|
l < p && (s.nest = !1);
|
|
7950
7952
|
}
|
|
7951
7953
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
7952
|
-
for (var C = arguments.length, p = new Array(C),
|
|
7953
|
-
p[
|
|
7954
|
+
for (var C = arguments.length, p = new Array(C), m = 0; m < C; m++)
|
|
7955
|
+
p[m] = arguments[m];
|
|
7954
7956
|
return a && a[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
7955
7957
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
7956
7958
|
}
|
|
7957
|
-
const r = s.postProcess || this.options.postProcess,
|
|
7958
|
-
return e != null &&
|
|
7959
|
+
const r = s.postProcess || this.options.postProcess, d = L(r) ? [r] : r;
|
|
7960
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = ae.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
7959
7961
|
i18nResolved: {
|
|
7960
7962
|
...n,
|
|
7961
7963
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -7965,31 +7967,31 @@ class m1 extends L1 {
|
|
|
7965
7967
|
}
|
|
7966
7968
|
resolve(e) {
|
|
7967
7969
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, a, c, r;
|
|
7968
|
-
return
|
|
7970
|
+
return L(e) && (e = [e]), e.forEach((d) => {
|
|
7969
7971
|
if (this.isValidLookup(s)) return;
|
|
7970
|
-
const
|
|
7972
|
+
const g = this.extractFromKey(d, t), l = g.key;
|
|
7971
7973
|
n = l;
|
|
7972
|
-
let h =
|
|
7974
|
+
let h = g.namespaces;
|
|
7973
7975
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
7974
|
-
const C = t.count !== void 0 && !
|
|
7976
|
+
const C = t.count !== void 0 && !L(t.count), p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), m = t.context !== void 0 && (L(t.context) || typeof t.context == "number") && t.context !== "", N = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
7975
7977
|
h.forEach((k) => {
|
|
7976
7978
|
this.isValidLookup(s) || (r = k, !F1[`${N[0]}-${k}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(r) && (F1[`${N[0]}-${k}`] = !0, this.logger.warn(`key "${n}" for languages "${N.join(", ")}" won't get resolved as namespace "${r}" 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!!!")), N.forEach((E) => {
|
|
7977
7979
|
if (this.isValidLookup(s)) return;
|
|
7978
7980
|
c = E;
|
|
7979
|
-
const
|
|
7981
|
+
const R = [l];
|
|
7980
7982
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
7981
|
-
this.i18nFormat.addLookupKeys(
|
|
7983
|
+
this.i18nFormat.addLookupKeys(R, l, E, k, t);
|
|
7982
7984
|
else {
|
|
7983
7985
|
let f;
|
|
7984
7986
|
C && (f = this.pluralResolver.getSuffix(E, t.count, t));
|
|
7985
|
-
const
|
|
7986
|
-
if (C && (
|
|
7987
|
+
const x = `${this.options.pluralSeparator}zero`, y = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
7988
|
+
if (C && (R.push(l + f), t.ordinal && f.indexOf(y) === 0 && R.push(l + f.replace(y, this.options.pluralSeparator)), p && R.push(l + x)), m) {
|
|
7987
7989
|
const w = `${l}${this.options.contextSeparator}${t.context}`;
|
|
7988
|
-
|
|
7990
|
+
R.push(w), C && (R.push(w + f), t.ordinal && f.indexOf(y) === 0 && R.push(w + f.replace(y, this.options.pluralSeparator)), p && R.push(w + x));
|
|
7989
7991
|
}
|
|
7990
7992
|
}
|
|
7991
7993
|
let _;
|
|
7992
|
-
for (; _ =
|
|
7994
|
+
for (; _ = R.pop(); )
|
|
7993
7995
|
this.isValidLookup(s) || (a = _, s = this.getResource(E, k, _, t));
|
|
7994
7996
|
}));
|
|
7995
7997
|
});
|
|
@@ -8010,7 +8012,7 @@ class m1 extends L1 {
|
|
|
8010
8012
|
}
|
|
8011
8013
|
getUsedParamsDetails() {
|
|
8012
8014
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8013
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !
|
|
8015
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !L(e.replace);
|
|
8014
8016
|
let n = s ? e.replace : e;
|
|
8015
8017
|
if (s && typeof e.count < "u" && (n.count = e.count), this.options.interpolation.defaultVariables && (n = {
|
|
8016
8018
|
...this.options.interpolation.defaultVariables,
|
|
@@ -8035,7 +8037,7 @@ class m1 extends L1 {
|
|
|
8035
8037
|
const x1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
8036
8038
|
class Y1 {
|
|
8037
8039
|
constructor(e) {
|
|
8038
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
8040
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = U.create("languageUtils");
|
|
8039
8041
|
}
|
|
8040
8042
|
getScriptPartFromCode(e) {
|
|
8041
8043
|
if (e = f1(e), !e || e.indexOf("-") < 0) return null;
|
|
@@ -8048,7 +8050,7 @@ class Y1 {
|
|
|
8048
8050
|
return this.formatLanguageCode(t[0]);
|
|
8049
8051
|
}
|
|
8050
8052
|
formatLanguageCode(e) {
|
|
8051
|
-
if (
|
|
8053
|
+
if (L(e) && e.indexOf("-") > -1) {
|
|
8052
8054
|
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
8053
8055
|
try {
|
|
8054
8056
|
let n = Intl.getCanonicalLocales(e)[0];
|
|
@@ -8084,7 +8086,7 @@ class Y1 {
|
|
|
8084
8086
|
}
|
|
8085
8087
|
getFallbackCodes(e, t) {
|
|
8086
8088
|
if (!e) return [];
|
|
8087
|
-
if (typeof e == "function" && (e = e(t)),
|
|
8089
|
+
if (typeof e == "function" && (e = e(t)), L(e) && (e = [e]), Array.isArray(e)) return e;
|
|
8088
8090
|
if (!t) return e.default || [];
|
|
8089
8091
|
let s = e[t];
|
|
8090
8092
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
@@ -8093,12 +8095,12 @@ class Y1 {
|
|
|
8093
8095
|
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], a = (c) => {
|
|
8094
8096
|
c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
8095
8097
|
};
|
|
8096
|
-
return
|
|
8098
|
+
return L(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (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))) : L(e) && a(this.formatLanguageCode(e)), s.forEach((c) => {
|
|
8097
8099
|
n.indexOf(c) < 0 && a(this.formatLanguageCode(c));
|
|
8098
8100
|
}), n;
|
|
8099
8101
|
}
|
|
8100
8102
|
}
|
|
8101
|
-
let
|
|
8103
|
+
let Z3 = [{
|
|
8102
8104
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
8103
8105
|
nr: [1, 2],
|
|
8104
8106
|
fc: 1
|
|
@@ -8223,7 +8225,7 @@ const D3 = ["v1", "v2", "v3"], T3 = ["v4"], U1 = {
|
|
|
8223
8225
|
other: 5
|
|
8224
8226
|
}, G3 = () => {
|
|
8225
8227
|
const i = {};
|
|
8226
|
-
return
|
|
8228
|
+
return Z3.forEach((e) => {
|
|
8227
8229
|
e.lngs.forEach((t) => {
|
|
8228
8230
|
i[t] = {
|
|
8229
8231
|
numbers: e.nr,
|
|
@@ -8235,7 +8237,7 @@ const D3 = ["v1", "v2", "v3"], T3 = ["v4"], U1 = {
|
|
|
8235
8237
|
class K3 {
|
|
8236
8238
|
constructor(e) {
|
|
8237
8239
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8238
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
8240
|
+
this.languageUtils = e, this.options = t, this.logger = U.create("pluralResolver"), (!this.options.compatibilityJSON || T3.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = G3(), this.pluralRulesCache = {};
|
|
8239
8241
|
}
|
|
8240
8242
|
addRule(e, t) {
|
|
8241
8243
|
this.rules[e] = t;
|
|
@@ -8259,8 +8261,8 @@ class K3 {
|
|
|
8259
8261
|
});
|
|
8260
8262
|
} catch {
|
|
8261
8263
|
if (!e.match(/-|_/)) return;
|
|
8262
|
-
const
|
|
8263
|
-
c = this.getRule(
|
|
8264
|
+
const d = this.languageUtils.getLanguagePartFromCode(e);
|
|
8265
|
+
c = this.getRule(d, t);
|
|
8264
8266
|
}
|
|
8265
8267
|
return this.pluralRulesCache[a] = c, c;
|
|
8266
8268
|
}
|
|
@@ -8298,12 +8300,12 @@ class K3 {
|
|
|
8298
8300
|
}
|
|
8299
8301
|
const z1 = function(i, e, t) {
|
|
8300
8302
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = H3(i, e, t);
|
|
8301
|
-
return !a && n &&
|
|
8303
|
+
return !a && n && L(t) && (a = E1(i, t, s), a === void 0 && (a = E1(e, t, s))), a;
|
|
8302
8304
|
}, R1 = (i) => i.replace(/\$/g, "$$$$");
|
|
8303
8305
|
class P3 {
|
|
8304
8306
|
constructor() {
|
|
8305
8307
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8306
|
-
this.logger =
|
|
8308
|
+
this.logger = U.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
8307
8309
|
}
|
|
8308
8310
|
init() {
|
|
8309
8311
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -8317,19 +8319,19 @@ class P3 {
|
|
|
8317
8319
|
prefix: a,
|
|
8318
8320
|
prefixEscaped: c,
|
|
8319
8321
|
suffix: r,
|
|
8320
|
-
suffixEscaped:
|
|
8321
|
-
formatSeparator:
|
|
8322
|
+
suffixEscaped: d,
|
|
8323
|
+
formatSeparator: g,
|
|
8322
8324
|
unescapeSuffix: l,
|
|
8323
8325
|
unescapePrefix: h,
|
|
8324
8326
|
nestingPrefix: C,
|
|
8325
8327
|
nestingPrefixEscaped: p,
|
|
8326
|
-
nestingSuffix:
|
|
8328
|
+
nestingSuffix: m,
|
|
8327
8329
|
nestingSuffixEscaped: N,
|
|
8328
8330
|
nestingOptionsSeparator: k,
|
|
8329
8331
|
maxReplaces: E,
|
|
8330
|
-
alwaysFormat:
|
|
8332
|
+
alwaysFormat: R
|
|
8331
8333
|
} = e.interpolation;
|
|
8332
|
-
this.escape = t !== void 0 ? t : I3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? i1(a) : c || "{{", this.suffix = r ? i1(r) :
|
|
8334
|
+
this.escape = t !== void 0 ? t : I3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = a ? i1(a) : c || "{{", this.suffix = r ? i1(r) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = C ? i1(C) : p || i1("$t("), this.nestingSuffix = m ? i1(m) : N || i1(")"), this.nestingOptionsSeparator = k || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
|
|
8333
8335
|
}
|
|
8334
8336
|
reset() {
|
|
8335
8337
|
this.options && this.init(this.options);
|
|
@@ -8340,17 +8342,17 @@ class P3 {
|
|
|
8340
8342
|
}
|
|
8341
8343
|
interpolate(e, t, s, n) {
|
|
8342
8344
|
let a, c, r;
|
|
8343
|
-
const
|
|
8345
|
+
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
|
8344
8346
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
8345
|
-
const E = z1(t,
|
|
8347
|
+
const E = z1(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
8346
8348
|
return this.alwaysFormat ? this.format(E, void 0, s, {
|
|
8347
8349
|
...n,
|
|
8348
8350
|
...t,
|
|
8349
8351
|
interpolationkey: p
|
|
8350
8352
|
}) : E;
|
|
8351
8353
|
}
|
|
8352
|
-
const
|
|
8353
|
-
return this.format(z1(t,
|
|
8354
|
+
const m = p.split(this.formatSeparator), N = m.shift().trim(), k = m.join(this.formatSeparator).trim();
|
|
8355
|
+
return this.format(z1(t, d, N, this.options.keySeparator, this.options.ignoreJSONStructure), k, s, {
|
|
8354
8356
|
...n,
|
|
8355
8357
|
...t,
|
|
8356
8358
|
interpolationkey: N
|
|
@@ -8366,19 +8368,19 @@ class P3 {
|
|
|
8366
8368
|
safeValue: (p) => this.escapeValue ? R1(this.escape(p)) : R1(p)
|
|
8367
8369
|
}].forEach((p) => {
|
|
8368
8370
|
for (r = 0; a = p.regex.exec(e); ) {
|
|
8369
|
-
const
|
|
8370
|
-
if (c =
|
|
8371
|
+
const m = a[1].trim();
|
|
8372
|
+
if (c = g(m), c === void 0)
|
|
8371
8373
|
if (typeof l == "function") {
|
|
8372
8374
|
const k = l(e, a, n);
|
|
8373
|
-
c =
|
|
8374
|
-
} else if (n && Object.prototype.hasOwnProperty.call(n,
|
|
8375
|
+
c = L(k) ? k : "";
|
|
8376
|
+
} else if (n && Object.prototype.hasOwnProperty.call(n, m))
|
|
8375
8377
|
c = "";
|
|
8376
8378
|
else if (h) {
|
|
8377
8379
|
c = a[0];
|
|
8378
8380
|
continue;
|
|
8379
8381
|
} else
|
|
8380
|
-
this.logger.warn(`missed to pass in variable ${
|
|
8381
|
-
else !
|
|
8382
|
+
this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), c = "";
|
|
8383
|
+
else !L(c) && !this.useRawValueToEscape && (c = T1(c));
|
|
8382
8384
|
const N = p.safeValue(c);
|
|
8383
8385
|
if (e = e.replace(a[0], N), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, r++, r >= this.maxReplaces)
|
|
8384
8386
|
break;
|
|
@@ -8387,36 +8389,36 @@ class P3 {
|
|
|
8387
8389
|
}
|
|
8388
8390
|
nest(e, t) {
|
|
8389
8391
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, a, c;
|
|
8390
|
-
const r = (
|
|
8392
|
+
const r = (d, g) => {
|
|
8391
8393
|
const l = this.nestingOptionsSeparator;
|
|
8392
|
-
if (
|
|
8393
|
-
const h =
|
|
8394
|
+
if (d.indexOf(l) < 0) return d;
|
|
8395
|
+
const h = d.split(new RegExp(`${l}[ ]*{`));
|
|
8394
8396
|
let C = `{${h[1]}`;
|
|
8395
|
-
|
|
8396
|
-
const p = C.match(/'/g),
|
|
8397
|
-
(p && p.length % 2 === 0 && !
|
|
8397
|
+
d = h[0], C = this.interpolate(C, c);
|
|
8398
|
+
const p = C.match(/'/g), m = C.match(/"/g);
|
|
8399
|
+
(p && p.length % 2 === 0 && !m || m.length % 2 !== 0) && (C = C.replace(/'/g, '"'));
|
|
8398
8400
|
try {
|
|
8399
|
-
c = JSON.parse(C),
|
|
8400
|
-
...
|
|
8401
|
+
c = JSON.parse(C), g && (c = {
|
|
8402
|
+
...g,
|
|
8401
8403
|
...c
|
|
8402
8404
|
});
|
|
8403
8405
|
} catch (N) {
|
|
8404
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
8406
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, N), `${d}${l}${C}`;
|
|
8405
8407
|
}
|
|
8406
|
-
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue,
|
|
8408
|
+
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
|
8407
8409
|
};
|
|
8408
8410
|
for (; n = this.nestingRegexp.exec(e); ) {
|
|
8409
|
-
let
|
|
8411
|
+
let d = [];
|
|
8410
8412
|
c = {
|
|
8411
8413
|
...s
|
|
8412
|
-
}, c = c.replace && !
|
|
8413
|
-
let
|
|
8414
|
+
}, c = c.replace && !L(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
|
8415
|
+
let g = !1;
|
|
8414
8416
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
|
8415
8417
|
const l = n[1].split(this.formatSeparator).map((h) => h.trim());
|
|
8416
|
-
n[1] = l.shift(),
|
|
8418
|
+
n[1] = l.shift(), d = l, g = !0;
|
|
8417
8419
|
}
|
|
8418
|
-
if (a = t(r.call(this, n[1].trim(), c), c), a && n[0] === e && !
|
|
8419
|
-
|
|
8420
|
+
if (a = t(r.call(this, n[1].trim(), c), c), a && n[0] === e && !L(a)) return a;
|
|
8421
|
+
L(a) || (a = T1(a)), a || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), a = ""), g && (a = d.reduce((l, h) => this.format(l, h, s.lng, {
|
|
8420
8422
|
...s,
|
|
8421
8423
|
interpolationkey: n[1].trim()
|
|
8422
8424
|
}), a.trim())), e = e.replace(n[0], a), this.regexp.lastIndex = 0;
|
|
@@ -8433,8 +8435,8 @@ const $3 = (i) => {
|
|
|
8433
8435
|
const n = s[1].substring(0, s[1].length - 1);
|
|
8434
8436
|
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((c) => {
|
|
8435
8437
|
if (c) {
|
|
8436
|
-
const [r, ...
|
|
8437
|
-
t[l] || (t[l] =
|
|
8438
|
+
const [r, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = r.trim();
|
|
8439
|
+
t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
|
|
8438
8440
|
}
|
|
8439
8441
|
});
|
|
8440
8442
|
}
|
|
@@ -8458,7 +8460,7 @@ const $3 = (i) => {
|
|
|
8458
8460
|
class F3 {
|
|
8459
8461
|
constructor() {
|
|
8460
8462
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8461
|
-
this.logger =
|
|
8463
|
+
this.logger = U.create("formatter"), this.options = e, this.formats = {
|
|
8462
8464
|
number: s1((t, s) => {
|
|
8463
8465
|
const n = new Intl.NumberFormat(t, {
|
|
8464
8466
|
...s
|
|
@@ -8508,19 +8510,19 @@ class F3 {
|
|
|
8508
8510
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
8509
8511
|
const a = t.split(this.formatSeparator);
|
|
8510
8512
|
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((r) => r.indexOf(")") > -1)) {
|
|
8511
|
-
const r = a.findIndex((
|
|
8513
|
+
const r = a.findIndex((d) => d.indexOf(")") > -1);
|
|
8512
8514
|
a[0] = [a[0], ...a.splice(1, r)].join(this.formatSeparator);
|
|
8513
8515
|
}
|
|
8514
|
-
return a.reduce((r,
|
|
8516
|
+
return a.reduce((r, d) => {
|
|
8515
8517
|
const {
|
|
8516
|
-
formatName:
|
|
8518
|
+
formatName: g,
|
|
8517
8519
|
formatOptions: l
|
|
8518
|
-
} = $3(
|
|
8519
|
-
if (this.formats[
|
|
8520
|
+
} = $3(d);
|
|
8521
|
+
if (this.formats[g]) {
|
|
8520
8522
|
let h = r;
|
|
8521
8523
|
try {
|
|
8522
8524
|
const C = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = C.locale || C.lng || n.locale || n.lng || s;
|
|
8523
|
-
h = this.formats[
|
|
8525
|
+
h = this.formats[g](r, p, {
|
|
8524
8526
|
...l,
|
|
8525
8527
|
...n,
|
|
8526
8528
|
...C
|
|
@@ -8530,7 +8532,7 @@ class F3 {
|
|
|
8530
8532
|
}
|
|
8531
8533
|
return h;
|
|
8532
8534
|
} else
|
|
8533
|
-
this.logger.warn(`there was no format function for ${
|
|
8535
|
+
this.logger.warn(`there was no format function for ${g}`);
|
|
8534
8536
|
return r;
|
|
8535
8537
|
}, e);
|
|
8536
8538
|
}
|
|
@@ -8541,16 +8543,16 @@ const Y3 = (i, e) => {
|
|
|
8541
8543
|
class U3 extends L1 {
|
|
8542
8544
|
constructor(e, t, s) {
|
|
8543
8545
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
8544
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger =
|
|
8546
|
+
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = U.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
|
|
8545
8547
|
}
|
|
8546
8548
|
queueLoad(e, t, s, n) {
|
|
8547
|
-
const a = {}, c = {}, r = {},
|
|
8548
|
-
return e.forEach((
|
|
8549
|
+
const a = {}, c = {}, r = {}, d = {};
|
|
8550
|
+
return e.forEach((g) => {
|
|
8549
8551
|
let l = !0;
|
|
8550
8552
|
t.forEach((h) => {
|
|
8551
|
-
const C = `${
|
|
8552
|
-
!s.reload && this.store.hasResourceBundle(
|
|
8553
|
-
}), l || (r[
|
|
8553
|
+
const C = `${g}|${h}`;
|
|
8554
|
+
!s.reload && this.store.hasResourceBundle(g, h) ? this.state[C] = 2 : this.state[C] < 0 || (this.state[C] === 1 ? c[C] === void 0 && (c[C] = !0) : (this.state[C] = 1, l = !1, c[C] === void 0 && (c[C] = !0), a[C] === void 0 && (a[C] = !0), d[h] === void 0 && (d[h] = !0)));
|
|
8555
|
+
}), l || (r[g] = !0);
|
|
8554
8556
|
}), (Object.keys(a).length || Object.keys(c).length) && this.queue.push({
|
|
8555
8557
|
pending: c,
|
|
8556
8558
|
pendingCount: Object.keys(c).length,
|
|
@@ -8561,7 +8563,7 @@ class U3 extends L1 {
|
|
|
8561
8563
|
toLoad: Object.keys(a),
|
|
8562
8564
|
pending: Object.keys(c),
|
|
8563
8565
|
toLoadLanguages: Object.keys(r),
|
|
8564
|
-
toLoadNamespaces: Object.keys(
|
|
8566
|
+
toLoadNamespaces: Object.keys(d)
|
|
8565
8567
|
};
|
|
8566
8568
|
}
|
|
8567
8569
|
loaded(e, t, s) {
|
|
@@ -8570,15 +8572,15 @@ class U3 extends L1 {
|
|
|
8570
8572
|
skipCopy: !0
|
|
8571
8573
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
8572
8574
|
const r = {};
|
|
8573
|
-
this.queue.forEach((
|
|
8574
|
-
_3(
|
|
8575
|
-
r[
|
|
8576
|
-
const l =
|
|
8575
|
+
this.queue.forEach((d) => {
|
|
8576
|
+
_3(d.loaded, [a], c), Y3(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
|
8577
|
+
r[g] || (r[g] = {});
|
|
8578
|
+
const l = d.loaded[g];
|
|
8577
8579
|
l.length && l.forEach((h) => {
|
|
8578
|
-
r[
|
|
8580
|
+
r[g][h] === void 0 && (r[g][h] = !0);
|
|
8579
8581
|
});
|
|
8580
|
-
}),
|
|
8581
|
-
}), this.emit("loaded", r), this.queue = this.queue.filter((
|
|
8582
|
+
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
|
8583
|
+
}), this.emit("loaded", r), this.queue = this.queue.filter((d) => !d.done);
|
|
8582
8584
|
}
|
|
8583
8585
|
read(e, t, s) {
|
|
8584
8586
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
@@ -8595,35 +8597,35 @@ class U3 extends L1 {
|
|
|
8595
8597
|
return;
|
|
8596
8598
|
}
|
|
8597
8599
|
this.readingCalls++;
|
|
8598
|
-
const r = (
|
|
8600
|
+
const r = (g, l) => {
|
|
8599
8601
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
8600
8602
|
const h = this.waitingReads.shift();
|
|
8601
8603
|
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
|
8602
8604
|
}
|
|
8603
|
-
if (
|
|
8605
|
+
if (g && l && n < this.maxRetries) {
|
|
8604
8606
|
setTimeout(() => {
|
|
8605
8607
|
this.read.call(this, e, t, s, n + 1, a * 2, c);
|
|
8606
8608
|
}, a);
|
|
8607
8609
|
return;
|
|
8608
8610
|
}
|
|
8609
|
-
c(
|
|
8610
|
-
},
|
|
8611
|
-
if (
|
|
8611
|
+
c(g, l);
|
|
8612
|
+
}, d = this.backend[s].bind(this.backend);
|
|
8613
|
+
if (d.length === 2) {
|
|
8612
8614
|
try {
|
|
8613
|
-
const
|
|
8614
|
-
|
|
8615
|
-
} catch (
|
|
8616
|
-
r(
|
|
8615
|
+
const g = d(e, t);
|
|
8616
|
+
g && typeof g.then == "function" ? g.then((l) => r(null, l)).catch(r) : r(null, g);
|
|
8617
|
+
} catch (g) {
|
|
8618
|
+
r(g);
|
|
8617
8619
|
}
|
|
8618
8620
|
return;
|
|
8619
8621
|
}
|
|
8620
|
-
return
|
|
8622
|
+
return d(e, t, r);
|
|
8621
8623
|
}
|
|
8622
8624
|
prepareLoading(e, t) {
|
|
8623
8625
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
|
|
8624
8626
|
if (!this.backend)
|
|
8625
8627
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
|
|
8626
|
-
|
|
8628
|
+
L(e) && (e = this.languageUtils.toResolveHierarchy(e)), L(t) && (t = [t]);
|
|
8627
8629
|
const a = this.queueLoad(e, t, s, n);
|
|
8628
8630
|
if (!a.toLoad.length)
|
|
8629
8631
|
return a.pending.length || n(), null;
|
|
@@ -8655,19 +8657,19 @@ class U3 extends L1 {
|
|
|
8655
8657
|
}
|
|
8656
8658
|
if (!(s == null || s === "")) {
|
|
8657
8659
|
if (this.backend && this.backend.create) {
|
|
8658
|
-
const
|
|
8660
|
+
const d = {
|
|
8659
8661
|
...c,
|
|
8660
8662
|
isUpdate: a
|
|
8661
|
-
},
|
|
8662
|
-
if (
|
|
8663
|
+
}, g = this.backend.create.bind(this.backend);
|
|
8664
|
+
if (g.length < 6)
|
|
8663
8665
|
try {
|
|
8664
8666
|
let l;
|
|
8665
|
-
|
|
8667
|
+
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => r(null, h)).catch(r) : r(null, l);
|
|
8666
8668
|
} catch (l) {
|
|
8667
8669
|
r(l);
|
|
8668
8670
|
}
|
|
8669
8671
|
else
|
|
8670
|
-
|
|
8672
|
+
g(e, t, s, n, r, d);
|
|
8671
8673
|
}
|
|
8672
8674
|
!e || !e[0] || this.store.addResource(e[0], t, s, n);
|
|
8673
8675
|
}
|
|
@@ -8708,7 +8710,7 @@ const J1 = () => ({
|
|
|
8708
8710
|
appendNamespaceToCIMode: !1,
|
|
8709
8711
|
overloadTranslationOptionHandler: (i) => {
|
|
8710
8712
|
let e = {};
|
|
8711
|
-
if (typeof i[1] == "object" && (e = i[1]),
|
|
8713
|
+
if (typeof i[1] == "object" && (e = i[1]), L(i[1]) && (e.defaultValue = i[1]), L(i[2]) && (e.tDescription = i[2]), typeof i[2] == "object" || typeof i[3] == "object") {
|
|
8712
8714
|
const t = i[3] || i[2];
|
|
8713
8715
|
Object.keys(t).forEach((s) => {
|
|
8714
8716
|
e[s] = t[s];
|
|
@@ -8729,7 +8731,7 @@ const J1 = () => ({
|
|
|
8729
8731
|
maxReplaces: 1e3,
|
|
8730
8732
|
skipOnVariables: !0
|
|
8731
8733
|
}
|
|
8732
|
-
}),
|
|
8734
|
+
}), q1 = (i) => (L(i.ns) && (i.ns = [i.ns]), L(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), L(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), g1 = () => {
|
|
8733
8735
|
}, z3 = (i) => {
|
|
8734
8736
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
8735
8737
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
@@ -8738,7 +8740,7 @@ const J1 = () => ({
|
|
|
8738
8740
|
class c1 extends L1 {
|
|
8739
8741
|
constructor() {
|
|
8740
8742
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
8741
|
-
if (super(), this.options =
|
|
8743
|
+
if (super(), this.options = q1(e), this.services = {}, this.logger = U, this.modules = {
|
|
8742
8744
|
external: []
|
|
8743
8745
|
}, z3(this), t && !this.isInitialized && !e.isClone) {
|
|
8744
8746
|
if (!this.options.initImmediate)
|
|
@@ -8751,36 +8753,36 @@ class c1 extends L1 {
|
|
|
8751
8753
|
init() {
|
|
8752
8754
|
var e = this;
|
|
8753
8755
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
8754
|
-
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (
|
|
8756
|
+
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (L(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
8755
8757
|
const n = J1();
|
|
8756
8758
|
this.options = {
|
|
8757
8759
|
...n,
|
|
8758
8760
|
...this.options,
|
|
8759
|
-
...
|
|
8761
|
+
...q1(t)
|
|
8760
8762
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
8761
8763
|
...n.interpolation,
|
|
8762
8764
|
...this.options.interpolation
|
|
8763
8765
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
8764
8766
|
const a = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
8765
8767
|
if (!this.options.isClone) {
|
|
8766
|
-
this.modules.logger ?
|
|
8768
|
+
this.modules.logger ? U.init(a(this.modules.logger), this.options) : U.init(null, this.options);
|
|
8767
8769
|
let l;
|
|
8768
8770
|
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = F3);
|
|
8769
8771
|
const h = new Y1(this.options);
|
|
8770
8772
|
this.store = new $1(this.options.resources, this.options);
|
|
8771
8773
|
const C = this.services;
|
|
8772
|
-
C.logger =
|
|
8774
|
+
C.logger = U, C.resourceStore = this.store, C.languageUtils = h, C.pluralResolver = new K3(h, {
|
|
8773
8775
|
prepend: this.options.pluralSeparator,
|
|
8774
8776
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
8775
8777
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
8776
8778
|
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (C.formatter = a(l), C.formatter.init(C, this.options), this.options.interpolation.format = C.formatter.format.bind(C.formatter)), C.interpolator = new P3(this.options), C.utils = {
|
|
8777
8779
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
8778
8780
|
}, C.backendConnector = new U3(a(this.modules.backend), C.resourceStore, C, this.options), C.backendConnector.on("*", function(p) {
|
|
8779
|
-
for (var
|
|
8781
|
+
for (var m = arguments.length, N = new Array(m > 1 ? m - 1 : 0), k = 1; k < m; k++)
|
|
8780
8782
|
N[k - 1] = arguments[k];
|
|
8781
8783
|
e.emit(p, ...N);
|
|
8782
8784
|
}), this.modules.languageDetector && (C.languageDetector = a(this.modules.languageDetector), C.languageDetector.init && C.languageDetector.init(C, this.options.detection, this.options)), this.modules.i18nFormat && (C.i18nFormat = a(this.modules.i18nFormat), C.i18nFormat.init && C.i18nFormat.init(this)), this.translator = new m1(this.services, this.options), this.translator.on("*", function(p) {
|
|
8783
|
-
for (var
|
|
8785
|
+
for (var m = arguments.length, N = new Array(m > 1 ? m - 1 : 0), k = 1; k < m; k++)
|
|
8784
8786
|
N[k - 1] = arguments[k];
|
|
8785
8787
|
e.emit(p, ...N);
|
|
8786
8788
|
}), this.modules.external.forEach((p) => {
|
|
@@ -8800,27 +8802,27 @@ class c1 extends L1 {
|
|
|
8800
8802
|
return e.store[l](...arguments), e;
|
|
8801
8803
|
};
|
|
8802
8804
|
});
|
|
8803
|
-
const
|
|
8805
|
+
const d = a1(), g = () => {
|
|
8804
8806
|
const l = (h, C) => {
|
|
8805
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options),
|
|
8807
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(C), s(h, C);
|
|
8806
8808
|
};
|
|
8807
8809
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
|
8808
8810
|
this.changeLanguage(this.options.lng, l);
|
|
8809
8811
|
};
|
|
8810
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
8812
|
+
return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
|
|
8811
8813
|
}
|
|
8812
8814
|
loadResources(e) {
|
|
8813
8815
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g1;
|
|
8814
|
-
const n =
|
|
8816
|
+
const n = L(e) ? e : this.language;
|
|
8815
8817
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
8816
8818
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
8817
8819
|
const a = [], c = (r) => {
|
|
8818
8820
|
if (!r || r === "cimode") return;
|
|
8819
|
-
this.services.languageUtils.toResolveHierarchy(r).forEach((
|
|
8820
|
-
|
|
8821
|
+
this.services.languageUtils.toResolveHierarchy(r).forEach((g) => {
|
|
8822
|
+
g !== "cimode" && a.indexOf(g) < 0 && a.push(g);
|
|
8821
8823
|
});
|
|
8822
8824
|
};
|
|
8823
|
-
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
8825
|
+
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((r) => c(r)), this.services.backendConnector.load(a, this.options.ns, (r) => {
|
|
8824
8826
|
!r && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(r);
|
|
8825
8827
|
});
|
|
8826
8828
|
} else
|
|
@@ -8852,19 +8854,19 @@ class c1 extends L1 {
|
|
|
8852
8854
|
this.isLanguageChangingTo = e;
|
|
8853
8855
|
const n = a1();
|
|
8854
8856
|
this.emit("languageChanging", e);
|
|
8855
|
-
const a = (
|
|
8856
|
-
this.language =
|
|
8857
|
-
}, c = (
|
|
8858
|
-
|
|
8857
|
+
const a = (d) => {
|
|
8858
|
+
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
|
8859
|
+
}, c = (d, g) => {
|
|
8860
|
+
g ? (a(g), this.translator.changeLanguage(g), this.isLanguageChangingTo = void 0, this.emit("languageChanged", g), this.logger.log("languageChanged", g)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
|
8859
8861
|
return s.t(...arguments);
|
|
8860
|
-
}), t && t(
|
|
8862
|
+
}), t && t(d, function() {
|
|
8861
8863
|
return s.t(...arguments);
|
|
8862
8864
|
});
|
|
8863
|
-
}, r = (
|
|
8864
|
-
!e && !
|
|
8865
|
-
const
|
|
8866
|
-
|
|
8867
|
-
c(l,
|
|
8865
|
+
}, r = (d) => {
|
|
8866
|
+
!e && !d && this.services.languageDetector && (d = []);
|
|
8867
|
+
const g = L(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
|
8868
|
+
g && (this.language || a(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (l) => {
|
|
8869
|
+
c(l, g);
|
|
8868
8870
|
});
|
|
8869
8871
|
};
|
|
8870
8872
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), n;
|
|
@@ -8872,21 +8874,21 @@ class c1 extends L1 {
|
|
|
8872
8874
|
getFixedT(e, t, s) {
|
|
8873
8875
|
var n = this;
|
|
8874
8876
|
const a = function(c, r) {
|
|
8875
|
-
let
|
|
8877
|
+
let d;
|
|
8876
8878
|
if (typeof r != "object") {
|
|
8877
|
-
for (var
|
|
8879
|
+
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
|
|
8878
8880
|
l[h - 2] = arguments[h];
|
|
8879
|
-
|
|
8881
|
+
d = n.options.overloadTranslationOptionHandler([c, r].concat(l));
|
|
8880
8882
|
} else
|
|
8881
|
-
|
|
8883
|
+
d = {
|
|
8882
8884
|
...r
|
|
8883
8885
|
};
|
|
8884
|
-
|
|
8886
|
+
d.lng = d.lng || a.lng, d.lngs = d.lngs || a.lngs, d.ns = d.ns || a.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || a.keyPrefix);
|
|
8885
8887
|
const C = n.options.keySeparator || ".";
|
|
8886
8888
|
let p;
|
|
8887
|
-
return
|
|
8889
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((m) => `${d.keyPrefix}${C}${m}`) : p = d.keyPrefix ? `${d.keyPrefix}${C}${c}` : c, n.t(p, d);
|
|
8888
8890
|
};
|
|
8889
|
-
return
|
|
8891
|
+
return L(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = s, a;
|
|
8890
8892
|
}
|
|
8891
8893
|
t() {
|
|
8892
8894
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -8905,9 +8907,9 @@ class c1 extends L1 {
|
|
|
8905
8907
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
8906
8908
|
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
8907
8909
|
if (s.toLowerCase() === "cimode") return !0;
|
|
8908
|
-
const c = (r,
|
|
8909
|
-
const
|
|
8910
|
-
return
|
|
8910
|
+
const c = (r, d) => {
|
|
8911
|
+
const g = this.services.backendConnector.state[`${r}|${d}`];
|
|
8912
|
+
return g === -1 || g === 0 || g === 2;
|
|
8911
8913
|
};
|
|
8912
8914
|
if (t.precheck) {
|
|
8913
8915
|
const r = t.precheck(this, c);
|
|
@@ -8917,7 +8919,7 @@ class c1 extends L1 {
|
|
|
8917
8919
|
}
|
|
8918
8920
|
loadNamespaces(e, t) {
|
|
8919
8921
|
const s = a1();
|
|
8920
|
-
return this.options.ns ? (
|
|
8922
|
+
return this.options.ns ? (L(e) && (e = [e]), e.forEach((n) => {
|
|
8921
8923
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
8922
8924
|
}), this.loadResources((n) => {
|
|
8923
8925
|
s.resolve(), t && t(n);
|
|
@@ -8925,7 +8927,7 @@ class c1 extends L1 {
|
|
|
8925
8927
|
}
|
|
8926
8928
|
loadLanguages(e, t) {
|
|
8927
8929
|
const s = a1();
|
|
8928
|
-
|
|
8930
|
+
L(e) && (e = [e]);
|
|
8929
8931
|
const n = this.options.preload || [], a = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
8930
8932
|
return a.length ? (this.options.preload = n.concat(a), this.loadResources((c) => {
|
|
8931
8933
|
s.resolve(), t && t(c);
|
|
@@ -8956,9 +8958,9 @@ class c1 extends L1 {
|
|
|
8956
8958
|
}, a.services.utils = {
|
|
8957
8959
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
8958
8960
|
}, s && (a.store = new $1(this.store.data, n), a.services.resourceStore = a.store), a.translator = new m1(a.services, n), a.translator.on("*", function(r) {
|
|
8959
|
-
for (var
|
|
8960
|
-
|
|
8961
|
-
a.emit(r, ...
|
|
8961
|
+
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
|
8962
|
+
g[l - 1] = arguments[l];
|
|
8963
|
+
a.emit(r, ...g);
|
|
8962
8964
|
}), a.init(n, t), a.translator.options = n, a.translator.backendConnector.services.utils = {
|
|
8963
8965
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
8964
8966
|
}, a;
|
|
@@ -8989,9 +8991,9 @@ T.setDefaultNamespace;
|
|
|
8989
8991
|
T.hasLoadedNamespace;
|
|
8990
8992
|
T.loadNamespaces;
|
|
8991
8993
|
T.loadLanguages;
|
|
8992
|
-
const J3 = "Archived",
|
|
8994
|
+
const J3 = "Archived", q3 = "Deleted", Q3 = {
|
|
8993
8995
|
archived: J3,
|
|
8994
|
-
deleted:
|
|
8996
|
+
deleted: q3
|
|
8995
8997
|
}, X3 = "Заархивирован", e0 = "Удалён", t0 = {
|
|
8996
8998
|
archived: X3,
|
|
8997
8999
|
deleted: e0
|
|
@@ -9001,7 +9003,7 @@ T.use(v3).init({
|
|
|
9001
9003
|
lng: "en",
|
|
9002
9004
|
resources: {
|
|
9003
9005
|
en: {
|
|
9004
|
-
common:
|
|
9006
|
+
common: Q3
|
|
9005
9007
|
},
|
|
9006
9008
|
ru: {
|
|
9007
9009
|
common: t0
|
|
@@ -9017,141 +9019,144 @@ const l0 = k1(
|
|
|
9017
9019
|
value: n,
|
|
9018
9020
|
onChange: a,
|
|
9019
9021
|
onError: c,
|
|
9020
|
-
allowEmpty: r = !1
|
|
9022
|
+
allowEmpty: r = !1,
|
|
9023
|
+
showAvatar: d = !1
|
|
9021
9024
|
}, g) => {
|
|
9022
|
-
const { axiosPeople:
|
|
9023
|
-
if (!
|
|
9025
|
+
const { axiosPeople: l, locale: h } = e1(Ne), { t: C } = b3("common", { lng: h }), [p, m] = Z([]), [N, k] = Z(!0), E = X(p);
|
|
9026
|
+
if (!l)
|
|
9024
9027
|
throw new Error(
|
|
9025
9028
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
9026
9029
|
Please provide it via SNMTUiContext.`
|
|
9027
9030
|
);
|
|
9028
|
-
const
|
|
9029
|
-
(
|
|
9030
|
-
let
|
|
9031
|
-
return
|
|
9031
|
+
const R = D(
|
|
9032
|
+
(w) => {
|
|
9033
|
+
let H = "";
|
|
9034
|
+
return w.deletedAt && (H += `[${C("deleted")}] `), w.status === C1.ARCHIVED && (H += `[${C("archived")}] `), `${H}${w.firstName} ${w.lastName}`;
|
|
9032
9035
|
},
|
|
9033
|
-
[
|
|
9034
|
-
),
|
|
9036
|
+
[C]
|
|
9037
|
+
), _ = D(
|
|
9035
9038
|
async ({
|
|
9036
|
-
offset:
|
|
9037
|
-
limit:
|
|
9038
|
-
search:
|
|
9039
|
+
offset: w,
|
|
9040
|
+
limit: H,
|
|
9041
|
+
search: G
|
|
9039
9042
|
}) => {
|
|
9040
|
-
var
|
|
9043
|
+
var A, V, I;
|
|
9041
9044
|
try {
|
|
9042
|
-
const
|
|
9043
|
-
offset:
|
|
9044
|
-
limit:
|
|
9045
|
-
search:
|
|
9045
|
+
const P = await l.post("v1/users/search", {
|
|
9046
|
+
offset: w,
|
|
9047
|
+
limit: H,
|
|
9048
|
+
search: G,
|
|
9046
9049
|
...i,
|
|
9047
9050
|
includeCount: !0
|
|
9048
|
-
}), { data:
|
|
9051
|
+
}), { data: B, metadata: $ } = P.data;
|
|
9049
9052
|
return {
|
|
9050
|
-
options:
|
|
9051
|
-
value:
|
|
9052
|
-
label:
|
|
9053
|
+
options: B.map((S) => ({
|
|
9054
|
+
value: S.id,
|
|
9055
|
+
label: R(S),
|
|
9056
|
+
image: d ? S.avatarUrl : void 0
|
|
9053
9057
|
})),
|
|
9054
|
-
count:
|
|
9058
|
+
count: $.count
|
|
9055
9059
|
};
|
|
9056
|
-
} catch (
|
|
9060
|
+
} catch (P) {
|
|
9057
9061
|
return c && c({
|
|
9058
|
-
status: ((
|
|
9059
|
-
message: ((
|
|
9062
|
+
status: ((A = P.response) == null ? void 0 : A.status) ?? 500,
|
|
9063
|
+
message: ((I = (V = P.response) == null ? void 0 : V.data) == null ? void 0 : I.message) ?? "Error while fetching options"
|
|
9060
9064
|
}), {
|
|
9061
9065
|
options: [],
|
|
9062
9066
|
count: 0
|
|
9063
9067
|
};
|
|
9064
9068
|
}
|
|
9065
9069
|
},
|
|
9066
|
-
[
|
|
9067
|
-
),
|
|
9068
|
-
async (
|
|
9069
|
-
var
|
|
9070
|
+
[l, i, R, d, c]
|
|
9071
|
+
), f = D(
|
|
9072
|
+
async (w) => {
|
|
9073
|
+
var H, G, A;
|
|
9070
9074
|
try {
|
|
9071
|
-
const
|
|
9072
|
-
(
|
|
9075
|
+
const V = w.filter(
|
|
9076
|
+
(B) => !E.current.some(($) => $.value === B)
|
|
9073
9077
|
);
|
|
9074
|
-
let
|
|
9075
|
-
|
|
9078
|
+
let I = [];
|
|
9079
|
+
V.length && (I = (await l.post("v1/users/search", {
|
|
9076
9080
|
filters: {
|
|
9077
|
-
id:
|
|
9081
|
+
id: V,
|
|
9078
9082
|
status: [C1.ACTIVE, C1.ARCHIVED]
|
|
9079
9083
|
}
|
|
9080
9084
|
})).data.data);
|
|
9081
|
-
const
|
|
9082
|
-
value:
|
|
9083
|
-
label:
|
|
9085
|
+
const P = I.map((B) => ({
|
|
9086
|
+
value: B.id,
|
|
9087
|
+
label: R(B),
|
|
9088
|
+
image: d ? B.avatarUrl : void 0
|
|
9084
9089
|
}));
|
|
9085
|
-
return [...
|
|
9086
|
-
} catch (
|
|
9090
|
+
return [...E.current, ...P];
|
|
9091
|
+
} catch (V) {
|
|
9087
9092
|
return c && c({
|
|
9088
|
-
status: ((
|
|
9089
|
-
message: ((
|
|
9093
|
+
status: ((H = V.response) == null ? void 0 : H.status) ?? 500,
|
|
9094
|
+
message: ((A = (G = V.response) == null ? void 0 : G.data) == null ? void 0 : A.message) ?? "Error while fetching selected items"
|
|
9090
9095
|
}), [];
|
|
9091
9096
|
}
|
|
9092
9097
|
},
|
|
9093
|
-
[
|
|
9098
|
+
[l, R, c, d]
|
|
9094
9099
|
);
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
}, [
|
|
9100
|
+
K(() => {
|
|
9101
|
+
E.current = p;
|
|
9102
|
+
}, [p]), K(() => {
|
|
9098
9103
|
if (!n) {
|
|
9099
|
-
|
|
9104
|
+
k(!1);
|
|
9100
9105
|
return;
|
|
9101
9106
|
}
|
|
9102
9107
|
(async () => {
|
|
9103
|
-
const
|
|
9104
|
-
|
|
9108
|
+
const H = Array.isArray(n) ? n : [n], G = await f(H);
|
|
9109
|
+
m(G), k(!1);
|
|
9105
9110
|
})();
|
|
9106
|
-
}, [
|
|
9107
|
-
const
|
|
9111
|
+
}, [f, n]);
|
|
9112
|
+
const x = D(
|
|
9108
9113
|
async ({
|
|
9109
|
-
limit:
|
|
9110
|
-
offset:
|
|
9111
|
-
search:
|
|
9114
|
+
limit: w,
|
|
9115
|
+
offset: H,
|
|
9116
|
+
search: G
|
|
9112
9117
|
}) => {
|
|
9113
|
-
const { count:
|
|
9114
|
-
offset:
|
|
9115
|
-
limit:
|
|
9116
|
-
search:
|
|
9118
|
+
const { count: A, ...V } = await _({
|
|
9119
|
+
offset: H,
|
|
9120
|
+
limit: w,
|
|
9121
|
+
search: G
|
|
9117
9122
|
});
|
|
9118
|
-
let
|
|
9119
|
-
return r &&
|
|
9120
|
-
options:
|
|
9121
|
-
count:
|
|
9122
|
-
limit:
|
|
9123
|
+
let I = V.options;
|
|
9124
|
+
return r && H === 0 && (I = [{ value: null, label: "None" }, ...I]), {
|
|
9125
|
+
options: I,
|
|
9126
|
+
count: A,
|
|
9127
|
+
limit: w
|
|
9123
9128
|
};
|
|
9124
9129
|
},
|
|
9125
|
-
[r,
|
|
9130
|
+
[r, _]
|
|
9126
9131
|
);
|
|
9127
|
-
if (
|
|
9132
|
+
if (N)
|
|
9128
9133
|
return /* @__PURE__ */ o(l3, {});
|
|
9129
|
-
const
|
|
9134
|
+
const y = {
|
|
9130
9135
|
ref: g,
|
|
9131
9136
|
placeholder: t,
|
|
9132
9137
|
disabled: s
|
|
9133
9138
|
};
|
|
9134
9139
|
return e ? /* @__PURE__ */ o(
|
|
9135
|
-
|
|
9140
|
+
W1,
|
|
9136
9141
|
{
|
|
9137
|
-
...
|
|
9142
|
+
...y,
|
|
9138
9143
|
mode: e,
|
|
9139
9144
|
value: n,
|
|
9140
9145
|
onChange: a,
|
|
9141
|
-
loadOptions:
|
|
9146
|
+
loadOptions: x,
|
|
9142
9147
|
loadOnClosedState: !0,
|
|
9143
|
-
extraOptions:
|
|
9148
|
+
extraOptions: p
|
|
9144
9149
|
}
|
|
9145
9150
|
) : /* @__PURE__ */ o(
|
|
9146
|
-
|
|
9151
|
+
W1,
|
|
9147
9152
|
{
|
|
9148
|
-
...
|
|
9153
|
+
...y,
|
|
9149
9154
|
value: n,
|
|
9150
9155
|
mode: void 0,
|
|
9151
9156
|
onChange: a,
|
|
9152
|
-
loadOptions:
|
|
9157
|
+
loadOptions: x,
|
|
9153
9158
|
loadOnClosedState: !0,
|
|
9154
|
-
extraOptions:
|
|
9159
|
+
extraOptions: p
|
|
9155
9160
|
}
|
|
9156
9161
|
);
|
|
9157
9162
|
}
|