@snmt-react-ui/user-select 2.9.12 → 2.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/user-select.js +508 -508
- package/package.json +5 -5
package/dist/user-select.js
CHANGED
|
@@ -3,11 +3,11 @@ var k2 = (i, e, t) => e in i ? L2(i, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var K1 = (i, e, t) => k2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { forwardRef as d1, useState as O, useRef as J, useCallback as
|
|
6
|
+
import { forwardRef as d1, useState as O, useRef as J, useCallback as P, useEffect as G, useMemo as v2, useImperativeHandle as k1, useContext as r1, createContext as C1 } from "react";
|
|
7
7
|
import { Select as N2, Tag as R2, Flex as x2, Checkbox as _2, Avatar as M2, Typography as G1, Popover as b2 } from "antd";
|
|
8
8
|
import { SNMTUiContext as y2 } from "@snmt-react-ui/core";
|
|
9
|
-
var H2 = Object.defineProperty, E2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t,
|
|
10
|
-
function
|
|
9
|
+
var H2 = Object.defineProperty, E2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, A2 = (i, e, t) => E2(i, e + "", t), V2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
|
+
function I2() {
|
|
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];
|
|
@@ -18,7 +18,7 @@ const B1 = {};
|
|
|
18
18
|
function O1() {
|
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
20
20
|
e[t] = arguments[t];
|
|
21
|
-
s1(e[0]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()),
|
|
21
|
+
s1(e[0]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), I2(...e));
|
|
22
22
|
}
|
|
23
23
|
const l2 = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
@@ -31,9 +31,9 @@ const l2 = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, Y1 = (i, e, t) => {
|
|
35
35
|
i.loadNamespaces(e, l2(i, t));
|
|
36
|
-
},
|
|
36
|
+
}, $1 = (i, e, t, s) => {
|
|
37
37
|
s1(t) && (t = [t]), t.forEach((n) => {
|
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
39
39
|
}), i.loadLanguages(e, l2(i, s));
|
|
@@ -41,11 +41,11 @@ const l2 = (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, o = e.languages[e.languages.length - 1];
|
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const
|
|
44
|
+
const h = (a, C) => {
|
|
45
45
|
const d = e.services.backendConnector.state[`${a}|${C}`];
|
|
46
46
|
return d === -1 || d === 2;
|
|
47
47
|
};
|
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
|
|
49
49
|
}, Z2 = function(i, e) {
|
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
51
51
|
return !e.languages || !e.languages.length ? (O1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
@@ -86,12 +86,12 @@ let B2 = {
|
|
|
86
86
|
useSuspense: !0,
|
|
87
87
|
unescape: K2
|
|
88
88
|
};
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
const
|
|
89
|
+
const Y2 = () => B2;
|
|
90
|
+
let $2;
|
|
91
|
+
const P2 = () => $2, j2 = C1();
|
|
92
92
|
class F2 {
|
|
93
93
|
constructor() {
|
|
94
|
-
|
|
94
|
+
A2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
95
95
|
}
|
|
96
96
|
addUsedNamespaces(e) {
|
|
97
97
|
e.forEach((t) => {
|
|
@@ -104,31 +104,31 @@ const W2 = (i, e) => {
|
|
|
104
104
|
return G(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
},
|
|
107
|
+
}, c2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) => P(c2(i, e, t, s), [i, e, t, s]), z2 = function(i) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} = r1(j2) || {}, o = t || s ||
|
|
114
|
+
} = r1(j2) || {}, o = t || s || P2();
|
|
115
115
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new F2()), !o) {
|
|
116
116
|
O1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
117
|
const f = (_, R) => s1(R) ? R : S2(R) && s1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, x = [f, {}, !1];
|
|
118
118
|
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
119
119
|
}
|
|
120
120
|
o.options.react && o.options.react.wait !== void 0 && O1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
|
-
const
|
|
122
|
-
...
|
|
121
|
+
const h = {
|
|
122
|
+
...Y2(),
|
|
123
123
|
...o.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
126
|
useSuspense: a,
|
|
127
127
|
keyPrefix: C
|
|
128
|
-
} =
|
|
128
|
+
} = h;
|
|
129
129
|
let d = i;
|
|
130
130
|
d = s1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
131
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Z2(f, o,
|
|
131
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Z2(f, o, h)), c = U2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), g = () => c, p = () => c2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
134
|
const b = W2(m), y = J(!0);
|
|
@@ -136,10 +136,10 @@ const W2 = (i, e) => {
|
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
138
|
bindI18nStore: x
|
|
139
|
-
} =
|
|
140
|
-
y.current = !0, !l && !a && (e.lng ?
|
|
139
|
+
} = h;
|
|
140
|
+
y.current = !0, !l && !a && (e.lng ? $1(o, e.lng, d, () => {
|
|
141
141
|
y.current && v(p);
|
|
142
|
-
}) :
|
|
142
|
+
}) : Y1(o, d, () => {
|
|
143
143
|
y.current && v(p);
|
|
144
144
|
})), l && b && b !== m && y.current && v(p);
|
|
145
145
|
const _ = () => {
|
|
@@ -151,10 +151,10 @@ const W2 = (i, e) => {
|
|
|
151
151
|
}, [o, m]), G(() => {
|
|
152
152
|
y.current && l && v(g);
|
|
153
153
|
}, [o, C, l]);
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
154
|
+
const I = [w, o, l];
|
|
155
|
+
if (I.t = w, I.i18n = o, I.ready = l, l || !l && !a) return I;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ?
|
|
157
|
+
e.lng ? $1(o, e.lng, d, () => f()) : Y1(o, d, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, f1 = ({
|
|
160
160
|
children: i,
|
|
@@ -163,7 +163,7 @@ const W2 = (i, e) => {
|
|
|
163
163
|
alignItems: s = "normal",
|
|
164
164
|
justifyContent: n = "normal",
|
|
165
165
|
flex: o,
|
|
166
|
-
gap:
|
|
166
|
+
gap: h,
|
|
167
167
|
padding: a
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
169
|
x2,
|
|
@@ -174,7 +174,7 @@ const W2 = (i, e) => {
|
|
|
174
174
|
align: s,
|
|
175
175
|
justify: n,
|
|
176
176
|
flex: o,
|
|
177
|
-
gap:
|
|
177
|
+
gap: h,
|
|
178
178
|
style: { padding: a },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
@@ -192,7 +192,7 @@ const W2 = (i, e) => {
|
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
|
-
var Q = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.
|
|
195
|
+
var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", 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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(Q || {});
|
|
196
196
|
const T1 = C1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
@@ -211,18 +211,18 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
211
211
|
children: s,
|
|
212
212
|
onClick: n,
|
|
213
213
|
collapsed: o,
|
|
214
|
-
whiteSpace:
|
|
214
|
+
whiteSpace: h = "normal",
|
|
215
215
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
216
216
|
trim: a = !1
|
|
217
217
|
}, C) => {
|
|
218
218
|
const d = J(null);
|
|
219
219
|
k1(C, () => d.current);
|
|
220
|
-
const [l,
|
|
220
|
+
const [l, c] = O(!1);
|
|
221
221
|
G(() => {
|
|
222
222
|
var v;
|
|
223
223
|
if (!a) return;
|
|
224
224
|
const m = () => {
|
|
225
|
-
d.current &&
|
|
225
|
+
d.current && c(d.current.scrollWidth > d.current.clientWidth);
|
|
226
226
|
};
|
|
227
227
|
m();
|
|
228
228
|
const b = new ResizeObserver(m);
|
|
@@ -235,7 +235,7 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
235
235
|
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
236
236
|
const w = {
|
|
237
237
|
className: p,
|
|
238
|
-
style: { color: t, whiteSpace: a ? "nowrap" :
|
|
238
|
+
style: { color: t, whiteSpace: a ? "nowrap" : h, display: a ? "block" : "" },
|
|
239
239
|
onClick: n,
|
|
240
240
|
ref: d,
|
|
241
241
|
ellipsis: a && l ? {
|
|
@@ -255,7 +255,7 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
255
255
|
disabled: n = !1,
|
|
256
256
|
disableUncheck: o = !1
|
|
257
257
|
}) => {
|
|
258
|
-
const [
|
|
258
|
+
const [h, a] = O(i), [C, d] = O(e);
|
|
259
259
|
G(() => {
|
|
260
260
|
a(i), d(e);
|
|
261
261
|
}, [i, e]);
|
|
@@ -264,10 +264,10 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
264
264
|
_2,
|
|
265
265
|
{
|
|
266
266
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
|
267
|
-
checked:
|
|
267
|
+
checked: h,
|
|
268
268
|
indeterminate: C,
|
|
269
|
-
onChange: (
|
|
270
|
-
o &&
|
|
269
|
+
onChange: (c) => {
|
|
270
|
+
o && h || (d(!1), a(c.target.checked), s && s(c));
|
|
271
271
|
},
|
|
272
272
|
disabled: n,
|
|
273
273
|
children: t && /* @__PURE__ */ r(
|
|
@@ -281,12 +281,12 @@ const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
};
|
|
284
|
-
var L = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.
|
|
285
|
-
const
|
|
284
|
+
var L = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", 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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(L || {});
|
|
285
|
+
const h2 = C1({
|
|
286
286
|
locale: "en",
|
|
287
287
|
theme: "light"
|
|
288
288
|
});
|
|
289
|
-
|
|
289
|
+
h2.Provider;
|
|
290
290
|
const i5 = ({
|
|
291
291
|
width: i = 20,
|
|
292
292
|
height: e = 20,
|
|
@@ -491,7 +491,7 @@ const i5 = ({
|
|
|
491
491
|
}
|
|
492
492
|
)
|
|
493
493
|
}
|
|
494
|
-
),
|
|
494
|
+
), c5 = ({
|
|
495
495
|
width: i = 20,
|
|
496
496
|
height: e = 20,
|
|
497
497
|
color: t = L.GREY_DARK_5,
|
|
@@ -538,7 +538,7 @@ const i5 = ({
|
|
|
538
538
|
)
|
|
539
539
|
]
|
|
540
540
|
}
|
|
541
|
-
),
|
|
541
|
+
), h5 = ({
|
|
542
542
|
width: i = 20,
|
|
543
543
|
height: e = 20,
|
|
544
544
|
color: t = L.GREY_DARK_5,
|
|
@@ -1311,7 +1311,7 @@ const i5 = ({
|
|
|
1311
1311
|
}
|
|
1312
1312
|
)
|
|
1313
1313
|
}
|
|
1314
|
-
),
|
|
1314
|
+
), A5 = ({
|
|
1315
1315
|
width: i = 20,
|
|
1316
1316
|
height: e = 20,
|
|
1317
1317
|
color: t = "#F2F2F7",
|
|
@@ -1340,7 +1340,7 @@ const i5 = ({
|
|
|
1340
1340
|
)
|
|
1341
1341
|
]
|
|
1342
1342
|
}
|
|
1343
|
-
),
|
|
1343
|
+
), V5 = ({
|
|
1344
1344
|
width: i = 20,
|
|
1345
1345
|
height: e = 20,
|
|
1346
1346
|
color: t = "#004ED7",
|
|
@@ -1369,7 +1369,7 @@ const i5 = ({
|
|
|
1369
1369
|
)
|
|
1370
1370
|
]
|
|
1371
1371
|
}
|
|
1372
|
-
),
|
|
1372
|
+
), I5 = ({
|
|
1373
1373
|
width: i = 10,
|
|
1374
1374
|
height: e = 10,
|
|
1375
1375
|
color: t = "#001E52",
|
|
@@ -1643,7 +1643,7 @@ const i5 = ({
|
|
|
1643
1643
|
)
|
|
1644
1644
|
]
|
|
1645
1645
|
}
|
|
1646
|
-
),
|
|
1646
|
+
), Y5 = ({
|
|
1647
1647
|
className: i,
|
|
1648
1648
|
color: e = L.GREY_DARK_5,
|
|
1649
1649
|
height: t = 24,
|
|
@@ -1670,7 +1670,7 @@ const i5 = ({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
)
|
|
1672
1672
|
}
|
|
1673
|
-
),
|
|
1673
|
+
), $5 = ({
|
|
1674
1674
|
className: i,
|
|
1675
1675
|
color: e = L.GREY_DARK_5,
|
|
1676
1676
|
height: t = 24,
|
|
@@ -1729,7 +1729,7 @@ const i5 = ({
|
|
|
1729
1729
|
)
|
|
1730
1730
|
]
|
|
1731
1731
|
}
|
|
1732
|
-
),
|
|
1732
|
+
), P5 = ({
|
|
1733
1733
|
className: i,
|
|
1734
1734
|
color: e = L.GREY_DARK_5,
|
|
1735
1735
|
height: t = 24,
|
|
@@ -2441,7 +2441,7 @@ const i5 = ({
|
|
|
2441
2441
|
)
|
|
2442
2442
|
]
|
|
2443
2443
|
}
|
|
2444
|
-
),
|
|
2444
|
+
), ce = ({
|
|
2445
2445
|
width: i = 24,
|
|
2446
2446
|
height: e = 24,
|
|
2447
2447
|
color: t = L.GREY_DARK_2,
|
|
@@ -2481,7 +2481,7 @@ const i5 = ({
|
|
|
2481
2481
|
)
|
|
2482
2482
|
]
|
|
2483
2483
|
}
|
|
2484
|
-
),
|
|
2484
|
+
), he = ({
|
|
2485
2485
|
width: i = 24,
|
|
2486
2486
|
height: e = 24,
|
|
2487
2487
|
color: t = L.GREY_DARK_2,
|
|
@@ -2542,84 +2542,84 @@ const i5 = ({
|
|
|
2542
2542
|
color: s,
|
|
2543
2543
|
className: n,
|
|
2544
2544
|
disabled: o = !1,
|
|
2545
|
-
onClick:
|
|
2545
|
+
onClick: h
|
|
2546
2546
|
}) => {
|
|
2547
|
-
const [a, C] = O(n), { theme: d } = r1(
|
|
2547
|
+
const [a, C] = O(n), { theme: d } = r1(h2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, c = o ? void 0 : h;
|
|
2548
2548
|
return G(() => {
|
|
2549
2549
|
if (n) {
|
|
2550
|
-
|
|
2550
|
+
c && !o && C(`${n} clickable`);
|
|
2551
2551
|
return;
|
|
2552
2552
|
}
|
|
2553
|
-
|
|
2554
|
-
}, [
|
|
2553
|
+
c && !o && C("clickable");
|
|
2554
|
+
}, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2555
2555
|
switch (i) {
|
|
2556
2556
|
case "nextIcon":
|
|
2557
|
-
return S5({ width: e, height: t, color: l, className: a, onClick:
|
|
2557
|
+
return S5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2558
2558
|
case "prevIcon":
|
|
2559
|
-
return D5({ width: e, height: t, color: l, className: a, onClick:
|
|
2559
|
+
return D5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2560
2560
|
case "arrowDown":
|
|
2561
|
-
return i5({ width: e, height: t, color: l, className: a, onClick:
|
|
2561
|
+
return i5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2562
2562
|
case "info":
|
|
2563
|
-
return s5({ width: e, height: t, color: l, className: a, onClick:
|
|
2563
|
+
return s5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2564
2564
|
case "arrowRight":
|
|
2565
|
-
return n5({ width: e, height: t, color: l, className: a, onClick:
|
|
2565
|
+
return n5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2566
2566
|
case "calendar":
|
|
2567
|
-
return
|
|
2567
|
+
return c5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2568
2568
|
case "check":
|
|
2569
|
-
return
|
|
2569
|
+
return h5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2570
2570
|
case "cancel":
|
|
2571
|
-
return d5({ width: e, height: t, color: l, className: a, onClick:
|
|
2571
|
+
return d5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2572
2572
|
case "add":
|
|
2573
|
-
return C5({ width: e, height: t, color: l, className: a, onClick:
|
|
2573
|
+
return C5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2574
2574
|
case "list":
|
|
2575
|
-
return g5({ width: e, height: t, color: l, className: a, onClick:
|
|
2575
|
+
return g5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2576
2576
|
case "dragAndDrop":
|
|
2577
|
-
return u5({ width: e, height: t, color: l, className: a, onClick:
|
|
2577
|
+
return u5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2578
2578
|
case "filter":
|
|
2579
|
-
return p5({ width: e, height: t, color: l, className: a, onClick:
|
|
2579
|
+
return p5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2580
2580
|
case "attention":
|
|
2581
|
-
return f5({ width: e, height: t, color: l, className: a, onClick:
|
|
2581
|
+
return f5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2582
2582
|
case "users":
|
|
2583
|
-
return m5({ width: e, height: t, color: l, className: a, onClick:
|
|
2583
|
+
return m5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2584
2584
|
case "mySkillsMatrix":
|
|
2585
2585
|
return w5({
|
|
2586
2586
|
width: e,
|
|
2587
2587
|
height: t,
|
|
2588
2588
|
color: l,
|
|
2589
2589
|
className: a,
|
|
2590
|
-
onClick:
|
|
2590
|
+
onClick: c
|
|
2591
2591
|
});
|
|
2592
2592
|
case "skills":
|
|
2593
|
-
return L5({ width: e, height: t, color: l, className: a, onClick:
|
|
2593
|
+
return L5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2594
2594
|
case "skillsMatrices":
|
|
2595
2595
|
return k5({
|
|
2596
2596
|
width: e,
|
|
2597
2597
|
height: t,
|
|
2598
2598
|
color: l,
|
|
2599
2599
|
className: a,
|
|
2600
|
-
onClick:
|
|
2600
|
+
onClick: c
|
|
2601
2601
|
});
|
|
2602
2602
|
case "history":
|
|
2603
|
-
return v5({ width: e, height: t, color: l, className: a, onClick:
|
|
2603
|
+
return v5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2604
2604
|
case "logOut":
|
|
2605
|
-
return N5({ width: e, height: t, color: l, className: a, onClick:
|
|
2605
|
+
return N5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2606
2606
|
case "settings":
|
|
2607
|
-
return R5({ width: e, height: t, color: l, className: a, onClick:
|
|
2607
|
+
return R5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2608
2608
|
case "trash":
|
|
2609
|
-
return x5({ width: e, height: t, color: l, className: a, onClick:
|
|
2609
|
+
return x5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2610
2610
|
case "settings2":
|
|
2611
|
-
return _5({ width: e, height: t, color: l, className: a, onClick:
|
|
2611
|
+
return _5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2612
2612
|
case "checkCircle":
|
|
2613
|
-
return M5({ width: e, height: t, color: l, className: a, onClick:
|
|
2613
|
+
return M5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2614
2614
|
case "cancelCircle":
|
|
2615
|
-
return b5({ width: e, height: t, color: l, className: a, onClick:
|
|
2615
|
+
return b5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2616
2616
|
case "visibilityIcon":
|
|
2617
2617
|
return y5({
|
|
2618
2618
|
width: e,
|
|
2619
2619
|
height: t,
|
|
2620
2620
|
color: l,
|
|
2621
2621
|
className: a,
|
|
2622
|
-
onClick:
|
|
2622
|
+
onClick: c
|
|
2623
2623
|
});
|
|
2624
2624
|
case "visibilityOffIcon":
|
|
2625
2625
|
return H5({
|
|
@@ -2627,7 +2627,7 @@ const i5 = ({
|
|
|
2627
2627
|
height: t,
|
|
2628
2628
|
color: l,
|
|
2629
2629
|
className: a,
|
|
2630
|
-
onClick:
|
|
2630
|
+
onClick: c
|
|
2631
2631
|
});
|
|
2632
2632
|
case "selectArrowIcon":
|
|
2633
2633
|
return E5({
|
|
@@ -2635,94 +2635,94 @@ const i5 = ({
|
|
|
2635
2635
|
height: t,
|
|
2636
2636
|
color: l,
|
|
2637
2637
|
className: a,
|
|
2638
|
-
onClick:
|
|
2638
|
+
onClick: c
|
|
2639
2639
|
});
|
|
2640
2640
|
case "expandArrowIcon":
|
|
2641
|
-
return
|
|
2641
|
+
return A5({
|
|
2642
2642
|
width: e,
|
|
2643
2643
|
height: t,
|
|
2644
2644
|
color: l,
|
|
2645
2645
|
className: a,
|
|
2646
|
-
onClick:
|
|
2646
|
+
onClick: c
|
|
2647
2647
|
});
|
|
2648
2648
|
case "expandActiveArrowIcon":
|
|
2649
|
-
return
|
|
2649
|
+
return V5({
|
|
2650
2650
|
width: e,
|
|
2651
2651
|
height: t,
|
|
2652
2652
|
color: l,
|
|
2653
2653
|
className: a,
|
|
2654
|
-
onClick:
|
|
2654
|
+
onClick: c
|
|
2655
2655
|
});
|
|
2656
2656
|
case "sortUp":
|
|
2657
|
-
return
|
|
2657
|
+
return I5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2658
2658
|
case "sortDown":
|
|
2659
|
-
return O5({ width: e, height: t, color: l, className: a, onClick:
|
|
2659
|
+
return O5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2660
2660
|
case "search":
|
|
2661
|
-
return Z5({ width: e, height: t, color: l, className: a, onClick:
|
|
2661
|
+
return Z5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2662
2662
|
case "arrowUpFilled":
|
|
2663
|
-
return T5({ width: e, height: t, color: l, className: a, onClick:
|
|
2663
|
+
return T5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2664
2664
|
case "arrowDownFilled":
|
|
2665
|
-
return G5({ width: e, height: t, color: l, className: a, onClick:
|
|
2665
|
+
return G5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2666
2666
|
case "arrow2Up":
|
|
2667
|
-
return r5({ width: e, height: t, color: l, className: a, onClick:
|
|
2667
|
+
return r5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2668
2668
|
case "arrow2Right":
|
|
2669
|
-
return o5({ width: e, height: t, color: l, className: a, onClick:
|
|
2669
|
+
return o5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2670
2670
|
case "arrow2Down":
|
|
2671
|
-
return a5({ width: e, height: t, color: l, className: a, onClick:
|
|
2671
|
+
return a5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2672
2672
|
case "arrow2Left":
|
|
2673
|
-
return l5({ width: e, height: t, color: l, className: a, onClick:
|
|
2673
|
+
return l5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2674
2674
|
case "link":
|
|
2675
|
-
return K5({ width: e, height: t, color: l, className: a, onClick:
|
|
2675
|
+
return K5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2676
2676
|
case "telegram":
|
|
2677
|
-
return
|
|
2677
|
+
return Y5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2678
2678
|
case "mail":
|
|
2679
|
-
return
|
|
2679
|
+
return P5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2680
2680
|
case "github":
|
|
2681
|
-
return B5({ width: e, height: t, color: l, className: a, onClick:
|
|
2681
|
+
return B5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2682
2682
|
case "linkedIn":
|
|
2683
|
-
return
|
|
2683
|
+
return $5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2684
2684
|
case "emptyStateIcon":
|
|
2685
|
-
return j5({ width: e, height: t, color: l, className: a, onClick:
|
|
2685
|
+
return j5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2686
2686
|
case "filtersIcon":
|
|
2687
|
-
return F5({ width: e, height: t, color: l, className: a, onClick:
|
|
2687
|
+
return F5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2688
2688
|
case "dotMenuIcon":
|
|
2689
|
-
return W5({ width: e, height: t, color: l, className: a, onClick:
|
|
2689
|
+
return W5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2690
2690
|
case "plusCircle":
|
|
2691
|
-
return U5({ width: e, height: t, color: l, className: a, onClick:
|
|
2691
|
+
return U5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2692
2692
|
case "warning":
|
|
2693
|
-
return z5({ width: e, height: t, color: l, className: a, onClick:
|
|
2693
|
+
return z5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2694
2694
|
case "back":
|
|
2695
|
-
return J5({ width: e, height: t, color: l, className: a, onClick:
|
|
2695
|
+
return J5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2696
2696
|
case "bell":
|
|
2697
|
-
return q5({ width: e, height: t, color: l, className: a, onClick:
|
|
2697
|
+
return q5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2698
2698
|
case "copy":
|
|
2699
|
-
return Q5({ width: e, height: t, color: l, className: a, onClick:
|
|
2699
|
+
return Q5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2700
2700
|
case "contract":
|
|
2701
|
-
return X5({ width: e, height: t, color: l, className: a, onClick:
|
|
2701
|
+
return X5({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2702
2702
|
case "resourceManager":
|
|
2703
|
-
return ee({ width: e, height: t, color: l, className: a, onClick:
|
|
2703
|
+
return ee({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2704
2704
|
case "image":
|
|
2705
|
-
return te({ width: e, height: t, color: l, className: a, onClick:
|
|
2705
|
+
return te({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2706
2706
|
case "edit":
|
|
2707
|
-
return ie({ width: e, height: t, color: l, className: a, onClick:
|
|
2707
|
+
return ie({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2708
2708
|
case "filledArrowRight":
|
|
2709
|
-
return se({ width: e, height: t, color: l, className: a, onClick:
|
|
2709
|
+
return se({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2710
2710
|
case "burgerMenu":
|
|
2711
|
-
return ne({ width: e, height: t, color: l, className: a, onClick:
|
|
2711
|
+
return ne({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2712
2712
|
case "refresh":
|
|
2713
|
-
return re({ width: e, height: t, color: l, className: a, onClick:
|
|
2713
|
+
return re({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2714
2714
|
case "projects":
|
|
2715
|
-
return oe({ width: e, height: t, color: l, className: a, onClick:
|
|
2715
|
+
return oe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2716
2716
|
case "user":
|
|
2717
|
-
return le({ width: e, height: t, color: l, className: a, onClick:
|
|
2717
|
+
return le({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2718
2718
|
case "exit":
|
|
2719
|
-
return ae({ width: e, height: t, color: l, className: a, onClick:
|
|
2719
|
+
return ae({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2720
2720
|
case "openPointCircle":
|
|
2721
|
-
return
|
|
2721
|
+
return ce({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2722
2722
|
case "community":
|
|
2723
|
-
return
|
|
2723
|
+
return he({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2724
2724
|
case "docs":
|
|
2725
|
-
return de({ width: e, height: t, color: l, className: a, onClick:
|
|
2725
|
+
return de({ width: e, height: t, color: l, className: a, onClick: c });
|
|
2726
2726
|
default:
|
|
2727
2727
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2728
2728
|
}
|
|
@@ -2740,18 +2740,18 @@ const i5 = ({
|
|
|
2740
2740
|
children: s,
|
|
2741
2741
|
onClick: n,
|
|
2742
2742
|
collapsed: o,
|
|
2743
|
-
whiteSpace:
|
|
2743
|
+
whiteSpace: h = "normal",
|
|
2744
2744
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2745
2745
|
trim: a = !1
|
|
2746
2746
|
}, C) => {
|
|
2747
2747
|
const d = J(null);
|
|
2748
2748
|
k1(C, () => d.current);
|
|
2749
|
-
const [l,
|
|
2749
|
+
const [l, c] = O(!1);
|
|
2750
2750
|
G(() => {
|
|
2751
2751
|
var v;
|
|
2752
2752
|
if (!a) return;
|
|
2753
2753
|
const m = () => {
|
|
2754
|
-
d.current &&
|
|
2754
|
+
d.current && c(d.current.scrollWidth > d.current.clientWidth);
|
|
2755
2755
|
};
|
|
2756
2756
|
m();
|
|
2757
2757
|
const b = new ResizeObserver(m);
|
|
@@ -2764,7 +2764,7 @@ const i5 = ({
|
|
|
2764
2764
|
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
2765
2765
|
const w = {
|
|
2766
2766
|
className: p,
|
|
2767
|
-
style: { color: t, whiteSpace: a ? "nowrap" :
|
|
2767
|
+
style: { color: t, whiteSpace: a ? "nowrap" : h, display: a ? "block" : "" },
|
|
2768
2768
|
onClick: n,
|
|
2769
2769
|
ref: d,
|
|
2770
2770
|
ellipsis: a && l ? {
|
|
@@ -2777,7 +2777,7 @@ const i5 = ({
|
|
|
2777
2777
|
return g ? /* @__PURE__ */ r(Ce, { level: ue[e], ...w, children: s }) : /* @__PURE__ */ r(ge, { ...w, children: s });
|
|
2778
2778
|
}
|
|
2779
2779
|
);
|
|
2780
|
-
var k = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.
|
|
2780
|
+
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", 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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(k || {});
|
|
2781
2781
|
const d2 = C1({
|
|
2782
2782
|
locale: "en",
|
|
2783
2783
|
theme: "light"
|
|
@@ -3294,7 +3294,7 @@ const fe = ({
|
|
|
3294
3294
|
)
|
|
3295
3295
|
]
|
|
3296
3296
|
}
|
|
3297
|
-
),
|
|
3297
|
+
), Ae = ({
|
|
3298
3298
|
width: i = 20,
|
|
3299
3299
|
height: e = 20,
|
|
3300
3300
|
color: t = k.GREY_DARK_5,
|
|
@@ -3341,7 +3341,7 @@ const fe = ({
|
|
|
3341
3341
|
)
|
|
3342
3342
|
]
|
|
3343
3343
|
}
|
|
3344
|
-
),
|
|
3344
|
+
), Ve = ({
|
|
3345
3345
|
width: i = 20,
|
|
3346
3346
|
height: e = 20,
|
|
3347
3347
|
color: t = k.GREY_DARK_5,
|
|
@@ -3388,7 +3388,7 @@ const fe = ({
|
|
|
3388
3388
|
)
|
|
3389
3389
|
]
|
|
3390
3390
|
}
|
|
3391
|
-
),
|
|
3391
|
+
), Ie = ({
|
|
3392
3392
|
width: i = 20,
|
|
3393
3393
|
height: e = 20,
|
|
3394
3394
|
color: t = k.GREY_DARK_5,
|
|
@@ -3713,7 +3713,7 @@ const fe = ({
|
|
|
3713
3713
|
)
|
|
3714
3714
|
]
|
|
3715
3715
|
}
|
|
3716
|
-
),
|
|
3716
|
+
), Ye = ({
|
|
3717
3717
|
width: i = 20,
|
|
3718
3718
|
height: e = 20,
|
|
3719
3719
|
color: t = "#070739",
|
|
@@ -3743,7 +3743,7 @@ const fe = ({
|
|
|
3743
3743
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3744
3744
|
]
|
|
3745
3745
|
}
|
|
3746
|
-
),
|
|
3746
|
+
), $e = ({
|
|
3747
3747
|
width: i = 20,
|
|
3748
3748
|
height: e = 20,
|
|
3749
3749
|
color: t = "#070739",
|
|
@@ -3781,7 +3781,7 @@ const fe = ({
|
|
|
3781
3781
|
)
|
|
3782
3782
|
]
|
|
3783
3783
|
}
|
|
3784
|
-
),
|
|
3784
|
+
), Pe = ({
|
|
3785
3785
|
width: i = 9,
|
|
3786
3786
|
height: e = 5,
|
|
3787
3787
|
color: t = "#001E52",
|
|
@@ -4415,7 +4415,7 @@ const fe = ({
|
|
|
4415
4415
|
)
|
|
4416
4416
|
]
|
|
4417
4417
|
}
|
|
4418
|
-
),
|
|
4418
|
+
), ct = ({
|
|
4419
4419
|
className: i,
|
|
4420
4420
|
color: e = k.NOTIFICATION_WARNING_DARK,
|
|
4421
4421
|
height: t = 37,
|
|
@@ -4454,7 +4454,7 @@ const fe = ({
|
|
|
4454
4454
|
)
|
|
4455
4455
|
]
|
|
4456
4456
|
}
|
|
4457
|
-
),
|
|
4457
|
+
), ht = ({
|
|
4458
4458
|
className: i,
|
|
4459
4459
|
color: e = k.GREY_DARK_5,
|
|
4460
4460
|
height: t = 24,
|
|
@@ -5038,100 +5038,100 @@ const fe = ({
|
|
|
5038
5038
|
color: s,
|
|
5039
5039
|
className: n,
|
|
5040
5040
|
disabled: o = !1,
|
|
5041
|
-
onClick:
|
|
5041
|
+
onClick: h
|
|
5042
5042
|
}) => {
|
|
5043
|
-
const [a, C] = O(n), { theme: d } = r1(d2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s,
|
|
5043
|
+
const [a, C] = O(n), { theme: d } = r1(d2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, c = o ? void 0 : h;
|
|
5044
5044
|
return G(() => {
|
|
5045
5045
|
if (n) {
|
|
5046
|
-
|
|
5046
|
+
c && !o && C(`${n} clickable`);
|
|
5047
5047
|
return;
|
|
5048
5048
|
}
|
|
5049
|
-
|
|
5050
|
-
}, [
|
|
5049
|
+
c && !o && C("clickable");
|
|
5050
|
+
}, [c, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5051
5051
|
switch (i) {
|
|
5052
5052
|
case "nextIcon":
|
|
5053
|
-
return Je({ width: e, height: t, color: l, className: a, onClick:
|
|
5053
|
+
return Je({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5054
5054
|
case "prevIcon":
|
|
5055
|
-
return qe({ width: e, height: t, color: l, className: a, onClick:
|
|
5055
|
+
return qe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5056
5056
|
case "arrowDown":
|
|
5057
|
-
return fe({ width: e, height: t, color: l, className: a, onClick:
|
|
5057
|
+
return fe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5058
5058
|
case "info":
|
|
5059
|
-
return me({ width: e, height: t, color: l, className: a, onClick:
|
|
5059
|
+
return me({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5060
5060
|
case "arrowRight":
|
|
5061
|
-
return we({ width: e, height: t, color: l, className: a, onClick:
|
|
5061
|
+
return we({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5062
5062
|
case "calendar":
|
|
5063
|
-
return Re({ width: e, height: t, color: l, className: a, onClick:
|
|
5063
|
+
return Re({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5064
5064
|
case "check":
|
|
5065
|
-
return xe({ width: e, height: t, color: l, className: a, onClick:
|
|
5065
|
+
return xe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5066
5066
|
case "cancel":
|
|
5067
|
-
return _e({ width: e, height: t, color: l, className: a, onClick:
|
|
5067
|
+
return _e({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5068
5068
|
case "add":
|
|
5069
|
-
return Me({ width: e, height: t, color: l, className: a, onClick:
|
|
5069
|
+
return Me({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5070
5070
|
case "list":
|
|
5071
|
-
return be({ width: e, height: t, color: l, className: a, onClick:
|
|
5071
|
+
return be({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5072
5072
|
case "dragAndDrop":
|
|
5073
|
-
return ye({ width: e, height: t, color: l, className: a, onClick:
|
|
5073
|
+
return ye({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5074
5074
|
case "filter":
|
|
5075
|
-
return He({ width: e, height: t, color: l, className: a, onClick:
|
|
5075
|
+
return He({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5076
5076
|
case "attention":
|
|
5077
|
-
return Ee({ width: e, height: t, color: l, className: a, onClick:
|
|
5077
|
+
return Ee({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5078
5078
|
case "users":
|
|
5079
|
-
return
|
|
5079
|
+
return Ae({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5080
5080
|
case "mySkillsMatrix":
|
|
5081
|
-
return
|
|
5081
|
+
return Ve({
|
|
5082
5082
|
width: e,
|
|
5083
5083
|
height: t,
|
|
5084
5084
|
color: l,
|
|
5085
5085
|
className: a,
|
|
5086
|
-
onClick:
|
|
5086
|
+
onClick: c
|
|
5087
5087
|
});
|
|
5088
5088
|
case "skills":
|
|
5089
|
-
return
|
|
5089
|
+
return Ie({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5090
5090
|
case "skillsMatrices":
|
|
5091
5091
|
return Oe({
|
|
5092
5092
|
width: e,
|
|
5093
5093
|
height: t,
|
|
5094
5094
|
color: l,
|
|
5095
5095
|
className: a,
|
|
5096
|
-
onClick:
|
|
5096
|
+
onClick: c
|
|
5097
5097
|
});
|
|
5098
5098
|
case "history":
|
|
5099
|
-
return Ze({ width: e, height: t, color: l, className: a, onClick:
|
|
5099
|
+
return Ze({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5100
5100
|
case "logOut":
|
|
5101
|
-
return Se({ width: e, height: t, color: l, className: a, onClick:
|
|
5101
|
+
return Se({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5102
5102
|
case "settings":
|
|
5103
|
-
return De({ width: e, height: t, color: l, className: a, onClick:
|
|
5103
|
+
return De({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5104
5104
|
case "trash":
|
|
5105
|
-
return Ge({ width: e, height: t, color: l, className: a, onClick:
|
|
5105
|
+
return Ge({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5106
5106
|
case "settings2":
|
|
5107
|
-
return Te({ width: e, height: t, color: l, className: a, onClick:
|
|
5107
|
+
return Te({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5108
5108
|
case "checkCircle":
|
|
5109
|
-
return Ke({ width: e, height: t, color: l, className: a, onClick:
|
|
5109
|
+
return Ke({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5110
5110
|
case "cancelCircle":
|
|
5111
|
-
return Be({ width: e, height: t, color: l, className: a, onClick:
|
|
5111
|
+
return Be({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5112
5112
|
case "visibilityIcon":
|
|
5113
|
-
return
|
|
5113
|
+
return Ye({
|
|
5114
5114
|
width: e,
|
|
5115
5115
|
height: t,
|
|
5116
5116
|
color: l,
|
|
5117
5117
|
className: a,
|
|
5118
|
-
onClick:
|
|
5118
|
+
onClick: c
|
|
5119
5119
|
});
|
|
5120
5120
|
case "visibilityOffIcon":
|
|
5121
|
-
return
|
|
5121
|
+
return $e({
|
|
5122
5122
|
width: e,
|
|
5123
5123
|
height: t,
|
|
5124
5124
|
color: l,
|
|
5125
5125
|
className: a,
|
|
5126
|
-
onClick:
|
|
5126
|
+
onClick: c
|
|
5127
5127
|
});
|
|
5128
5128
|
case "selectArrowIcon":
|
|
5129
|
-
return
|
|
5129
|
+
return Pe({
|
|
5130
5130
|
width: e,
|
|
5131
5131
|
height: t,
|
|
5132
5132
|
color: l,
|
|
5133
5133
|
className: a,
|
|
5134
|
-
onClick:
|
|
5134
|
+
onClick: c
|
|
5135
5135
|
});
|
|
5136
5136
|
case "expandArrowIcon":
|
|
5137
5137
|
return je({
|
|
@@ -5139,7 +5139,7 @@ const fe = ({
|
|
|
5139
5139
|
height: t,
|
|
5140
5140
|
color: l,
|
|
5141
5141
|
className: a,
|
|
5142
|
-
onClick:
|
|
5142
|
+
onClick: c
|
|
5143
5143
|
});
|
|
5144
5144
|
case "expandActiveArrowIcon":
|
|
5145
5145
|
return Fe({
|
|
@@ -5147,84 +5147,84 @@ const fe = ({
|
|
|
5147
5147
|
height: t,
|
|
5148
5148
|
color: l,
|
|
5149
5149
|
className: a,
|
|
5150
|
-
onClick:
|
|
5150
|
+
onClick: c
|
|
5151
5151
|
});
|
|
5152
5152
|
case "sortUp":
|
|
5153
|
-
return We({ width: e, height: t, color: l, className: a, onClick:
|
|
5153
|
+
return We({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5154
5154
|
case "sortDown":
|
|
5155
|
-
return Ue({ width: e, height: t, color: l, className: a, onClick:
|
|
5155
|
+
return Ue({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5156
5156
|
case "search":
|
|
5157
|
-
return ze({ width: e, height: t, color: l, className: a, onClick:
|
|
5157
|
+
return ze({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5158
5158
|
case "arrowUpFilled":
|
|
5159
|
-
return Xe({ width: e, height: t, color: l, className: a, onClick:
|
|
5159
|
+
return Xe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5160
5160
|
case "arrowDownFilled":
|
|
5161
|
-
return Qe({ width: e, height: t, color: l, className: a, onClick:
|
|
5161
|
+
return Qe({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5162
5162
|
case "arrow2Up":
|
|
5163
|
-
return Le({ width: e, height: t, color: l, className: a, onClick:
|
|
5163
|
+
return Le({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5164
5164
|
case "arrow2Right":
|
|
5165
|
-
return ke({ width: e, height: t, color: l, className: a, onClick:
|
|
5165
|
+
return ke({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5166
5166
|
case "arrow2Down":
|
|
5167
|
-
return ve({ width: e, height: t, color: l, className: a, onClick:
|
|
5167
|
+
return ve({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5168
5168
|
case "arrow2Left":
|
|
5169
|
-
return Ne({ width: e, height: t, color: l, className: a, onClick:
|
|
5169
|
+
return Ne({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5170
5170
|
case "link":
|
|
5171
|
-
return et({ width: e, height: t, color: l, className: a, onClick:
|
|
5171
|
+
return et({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5172
5172
|
case "telegram":
|
|
5173
|
-
return it({ width: e, height: t, color: l, className: a, onClick:
|
|
5173
|
+
return it({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5174
5174
|
case "mail":
|
|
5175
|
-
return nt({ width: e, height: t, color: l, className: a, onClick:
|
|
5175
|
+
return nt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5176
5176
|
case "github":
|
|
5177
|
-
return tt({ width: e, height: t, color: l, className: a, onClick:
|
|
5177
|
+
return tt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5178
5178
|
case "linkedIn":
|
|
5179
|
-
return st({ width: e, height: t, color: l, className: a, onClick:
|
|
5179
|
+
return st({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5180
5180
|
case "emptyStateIcon":
|
|
5181
|
-
return rt({ width: e, height: t, color: l, className: a, onClick:
|
|
5181
|
+
return rt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5182
5182
|
case "filtersIcon":
|
|
5183
|
-
return ot({ width: e, height: t, color: l, className: a, onClick:
|
|
5183
|
+
return ot({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5184
5184
|
case "dotMenuIcon":
|
|
5185
|
-
return at({ width: e, height: t, color: l, className: a, onClick:
|
|
5185
|
+
return at({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5186
5186
|
case "plusCircle":
|
|
5187
|
-
return lt({ width: e, height: t, color: l, className: a, onClick:
|
|
5187
|
+
return lt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5188
5188
|
case "warning":
|
|
5189
|
-
return
|
|
5189
|
+
return ct({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5190
5190
|
case "back":
|
|
5191
|
-
return
|
|
5191
|
+
return ht({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5192
5192
|
case "bell":
|
|
5193
|
-
return dt({ width: e, height: t, color: l, className: a, onClick:
|
|
5193
|
+
return dt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5194
5194
|
case "copy":
|
|
5195
|
-
return Ct({ width: e, height: t, color: l, className: a, onClick:
|
|
5195
|
+
return Ct({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5196
5196
|
case "contract":
|
|
5197
|
-
return gt({ width: e, height: t, color: l, className: a, onClick:
|
|
5197
|
+
return gt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5198
5198
|
case "resourceManager":
|
|
5199
|
-
return ut({ width: e, height: t, color: l, className: a, onClick:
|
|
5199
|
+
return ut({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5200
5200
|
case "image":
|
|
5201
|
-
return pt({ width: e, height: t, color: l, className: a, onClick:
|
|
5201
|
+
return pt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5202
5202
|
case "edit":
|
|
5203
|
-
return ft({ width: e, height: t, color: l, className: a, onClick:
|
|
5203
|
+
return ft({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5204
5204
|
case "filledArrowRight":
|
|
5205
|
-
return mt({ width: e, height: t, color: l, className: a, onClick:
|
|
5205
|
+
return mt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5206
5206
|
case "burgerMenu":
|
|
5207
|
-
return wt({ width: e, height: t, color: l, className: a, onClick:
|
|
5207
|
+
return wt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5208
5208
|
case "refresh":
|
|
5209
|
-
return Lt({ width: e, height: t, color: l, className: a, onClick:
|
|
5209
|
+
return Lt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5210
5210
|
case "projects":
|
|
5211
|
-
return kt({ width: e, height: t, color: l, className: a, onClick:
|
|
5211
|
+
return kt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5212
5212
|
case "user":
|
|
5213
|
-
return Nt({ width: e, height: t, color: l, className: a, onClick:
|
|
5213
|
+
return Nt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5214
5214
|
case "exit":
|
|
5215
|
-
return vt({ width: e, height: t, color: l, className: a, onClick:
|
|
5215
|
+
return vt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5216
5216
|
case "openPointCircle":
|
|
5217
|
-
return Rt({ width: e, height: t, color: l, className: a, onClick:
|
|
5217
|
+
return Rt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5218
5218
|
case "community":
|
|
5219
|
-
return xt({ width: e, height: t, color: l, className: a, onClick:
|
|
5219
|
+
return xt({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5220
5220
|
case "docs":
|
|
5221
|
-
return _t({ width: e, height: t, color: l, className: a, onClick:
|
|
5221
|
+
return _t({ width: e, height: t, color: l, className: a, onClick: c });
|
|
5222
5222
|
default:
|
|
5223
5223
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5224
5224
|
}
|
|
5225
5225
|
})() });
|
|
5226
5226
|
};
|
|
5227
|
-
var m1 = /* @__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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.
|
|
5227
|
+
var m1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", 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_0_5 = "var(--blue-light-0-5)", 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.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-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))(m1 || {});
|
|
5228
5228
|
const bt = C1({
|
|
5229
5229
|
locale: "en",
|
|
5230
5230
|
theme: "light"
|
|
@@ -5238,7 +5238,7 @@ const C2 = ({
|
|
|
5238
5238
|
closable: n = !0,
|
|
5239
5239
|
disabled: o = !1
|
|
5240
5240
|
}) => {
|
|
5241
|
-
const
|
|
5241
|
+
const h = t === "small" ? 10 : 12.5, a = () => {
|
|
5242
5242
|
o || s == null || s();
|
|
5243
5243
|
};
|
|
5244
5244
|
return /* @__PURE__ */ r(
|
|
@@ -5250,8 +5250,8 @@ const C2 = ({
|
|
|
5250
5250
|
{
|
|
5251
5251
|
name: "cancelCircle",
|
|
5252
5252
|
color: o ? m1.GREY_DARK_1 : m1.GREY_DARK_2,
|
|
5253
|
-
width:
|
|
5254
|
-
height:
|
|
5253
|
+
width: h,
|
|
5254
|
+
height: h,
|
|
5255
5255
|
onClick: a
|
|
5256
5256
|
}
|
|
5257
5257
|
),
|
|
@@ -5273,7 +5273,7 @@ const C2 = ({
|
|
|
5273
5273
|
h2: 2,
|
|
5274
5274
|
h3: 3,
|
|
5275
5275
|
h4: 4
|
|
5276
|
-
},
|
|
5276
|
+
}, At = d1(
|
|
5277
5277
|
({
|
|
5278
5278
|
align: i = "inherit",
|
|
5279
5279
|
variant: e = "body1",
|
|
@@ -5281,18 +5281,18 @@ const C2 = ({
|
|
|
5281
5281
|
children: s,
|
|
5282
5282
|
onClick: n,
|
|
5283
5283
|
collapsed: o,
|
|
5284
|
-
whiteSpace:
|
|
5284
|
+
whiteSpace: h = "normal",
|
|
5285
5285
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5286
5286
|
trim: a = !1
|
|
5287
5287
|
}, C) => {
|
|
5288
5288
|
const d = J(null);
|
|
5289
5289
|
k1(C, () => d.current);
|
|
5290
|
-
const [l,
|
|
5290
|
+
const [l, c] = O(!1);
|
|
5291
5291
|
G(() => {
|
|
5292
5292
|
var v;
|
|
5293
5293
|
if (!a) return;
|
|
5294
5294
|
const m = () => {
|
|
5295
|
-
d.current &&
|
|
5295
|
+
d.current && c(d.current.scrollWidth > d.current.clientWidth);
|
|
5296
5296
|
};
|
|
5297
5297
|
m();
|
|
5298
5298
|
const b = new ResizeObserver(m);
|
|
@@ -5305,7 +5305,7 @@ const C2 = ({
|
|
|
5305
5305
|
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
5306
5306
|
const w = {
|
|
5307
5307
|
className: p,
|
|
5308
|
-
style: { color: t, whiteSpace: a ? "nowrap" :
|
|
5308
|
+
style: { color: t, whiteSpace: a ? "nowrap" : h, display: a ? "block" : "" },
|
|
5309
5309
|
onClick: n,
|
|
5310
5310
|
ref: d,
|
|
5311
5311
|
ellipsis: a && l ? {
|
|
@@ -5317,14 +5317,14 @@ const C2 = ({
|
|
|
5317
5317
|
};
|
|
5318
5318
|
return g ? /* @__PURE__ */ r(yt, { level: Et[e], ...w, children: s }) : /* @__PURE__ */ r(Ht, { ...w, children: s });
|
|
5319
5319
|
}
|
|
5320
|
-
),
|
|
5320
|
+
), Vt = ({
|
|
5321
5321
|
children: i,
|
|
5322
5322
|
content: e,
|
|
5323
5323
|
isOpen: t,
|
|
5324
5324
|
setIsOpen: s,
|
|
5325
5325
|
placement: n = "topRight",
|
|
5326
5326
|
noPadding: o = !1,
|
|
5327
|
-
trigger:
|
|
5327
|
+
trigger: h = "click"
|
|
5328
5328
|
}) => {
|
|
5329
5329
|
const [a, C] = O(!1);
|
|
5330
5330
|
return /* @__PURE__ */ r(
|
|
@@ -5333,7 +5333,7 @@ const C2 = ({
|
|
|
5333
5333
|
content: e,
|
|
5334
5334
|
arrow: !1,
|
|
5335
5335
|
placement: n,
|
|
5336
|
-
trigger:
|
|
5336
|
+
trigger: h,
|
|
5337
5337
|
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
|
5338
5338
|
open: t ?? a,
|
|
5339
5339
|
onOpenChange: (d) => {
|
|
@@ -5343,17 +5343,17 @@ const C2 = ({
|
|
|
5343
5343
|
}
|
|
5344
5344
|
);
|
|
5345
5345
|
};
|
|
5346
|
-
var
|
|
5346
|
+
var It = { exports: {} };
|
|
5347
5347
|
(function(i, e) {
|
|
5348
5348
|
(function(t, s) {
|
|
5349
5349
|
i.exports = s();
|
|
5350
|
-
})(
|
|
5350
|
+
})(V2, function() {
|
|
5351
5351
|
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) {
|
|
5352
5352
|
var s = ["th", "st", "nd", "rd"], n = t % 100;
|
|
5353
5353
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5354
5354
|
} };
|
|
5355
5355
|
});
|
|
5356
|
-
})(
|
|
5356
|
+
})(It);
|
|
5357
5357
|
const Ot = ({
|
|
5358
5358
|
values: i,
|
|
5359
5359
|
onTagClose: e,
|
|
@@ -5361,19 +5361,19 @@ const Ot = ({
|
|
|
5361
5361
|
closable: s = !0,
|
|
5362
5362
|
disabled: n,
|
|
5363
5363
|
options: o,
|
|
5364
|
-
extraOptions:
|
|
5364
|
+
extraOptions: h
|
|
5365
5365
|
}) => {
|
|
5366
5366
|
const { locale: a } = r1(T1), { t: C } = z2("common", { lng: a }), [d, l] = O(!1);
|
|
5367
5367
|
if (G(() => {
|
|
5368
5368
|
i.length || l(!1);
|
|
5369
5369
|
}, [i]), !i.length)
|
|
5370
5370
|
return null;
|
|
5371
|
-
const
|
|
5371
|
+
const c = (g) => {
|
|
5372
5372
|
var p, w;
|
|
5373
|
-
return ((p = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : p.label) || ((w =
|
|
5373
|
+
return ((p = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : p.label) || ((w = h == null ? void 0 : h.find((v) => v.value === g)) == null ? void 0 : w.label) || g;
|
|
5374
5374
|
};
|
|
5375
5375
|
return /* @__PURE__ */ u(
|
|
5376
|
-
|
|
5376
|
+
Vt,
|
|
5377
5377
|
{
|
|
5378
5378
|
content: (
|
|
5379
5379
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5383,7 +5383,7 @@ const Ot = ({
|
|
|
5383
5383
|
onClose: () => e(g),
|
|
5384
5384
|
closable: s,
|
|
5385
5385
|
disabled: n,
|
|
5386
|
-
children:
|
|
5386
|
+
children: c(g)
|
|
5387
5387
|
},
|
|
5388
5388
|
g
|
|
5389
5389
|
)) }) })
|
|
@@ -5402,7 +5402,7 @@ const Ot = ({
|
|
|
5402
5402
|
small: 20,
|
|
5403
5403
|
medium: 28,
|
|
5404
5404
|
large: 48
|
|
5405
|
-
},
|
|
5405
|
+
}, P1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5406
5406
|
const t = Zt[i], s = `no-repeat linear-gradient(${e}
|
|
5407
5407
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
5408
5408
|
width: t,
|
|
@@ -5418,12 +5418,12 @@ const Ot = ({
|
|
|
5418
5418
|
mode: s,
|
|
5419
5419
|
search: n = !1,
|
|
5420
5420
|
options: o,
|
|
5421
|
-
width:
|
|
5421
|
+
width: h,
|
|
5422
5422
|
disabled: a = !1,
|
|
5423
5423
|
required: C = !1,
|
|
5424
5424
|
clearable: d = !1,
|
|
5425
5425
|
scrollThresholdValue: l = 50,
|
|
5426
|
-
onSearchChange:
|
|
5426
|
+
onSearchChange: c,
|
|
5427
5427
|
onDropdownVisibleChange: g,
|
|
5428
5428
|
onScrollToEnd: p,
|
|
5429
5429
|
onPopupScroll: w,
|
|
@@ -5431,11 +5431,11 @@ const Ot = ({
|
|
|
5431
5431
|
extraOptions: m,
|
|
5432
5432
|
dropdownRender: b,
|
|
5433
5433
|
optionRender: y,
|
|
5434
|
-
isLoading:
|
|
5434
|
+
isLoading: I,
|
|
5435
5435
|
readOnly: f,
|
|
5436
5436
|
error: x
|
|
5437
5437
|
}, _) => {
|
|
5438
|
-
const [R, j] = O(!1), [q, F] = O(!1), [E, T] = O(!0), [
|
|
5438
|
+
const [R, j] = O(!1), [q, F] = O(!1), [E, T] = O(!0), [A, Z] = O(i), D = J(null);
|
|
5439
5439
|
G(() => {
|
|
5440
5440
|
Z(i);
|
|
5441
5441
|
}, [i]);
|
|
@@ -5444,11 +5444,11 @@ const Ot = ({
|
|
|
5444
5444
|
}, U = (N, H) => {
|
|
5445
5445
|
var K;
|
|
5446
5446
|
return !!((K = H == null ? void 0 : H.label) != null && K.toString().toLowerCase().includes(N.toLowerCase()));
|
|
5447
|
-
},
|
|
5447
|
+
}, V = () => {
|
|
5448
5448
|
F(!0);
|
|
5449
|
-
},
|
|
5449
|
+
}, $ = () => {
|
|
5450
5450
|
F(!1);
|
|
5451
|
-
},
|
|
5451
|
+
}, Y = P(
|
|
5452
5452
|
(N) => {
|
|
5453
5453
|
if (Z(N), s) {
|
|
5454
5454
|
const K = N;
|
|
@@ -5459,33 +5459,33 @@ const Ot = ({
|
|
|
5459
5459
|
e == null || e(H);
|
|
5460
5460
|
},
|
|
5461
5461
|
[s, e]
|
|
5462
|
-
), e1 =
|
|
5462
|
+
), e1 = P(() => {
|
|
5463
5463
|
if (!(f || a)) {
|
|
5464
5464
|
if (s) {
|
|
5465
|
-
|
|
5465
|
+
Y([]);
|
|
5466
5466
|
return;
|
|
5467
5467
|
}
|
|
5468
|
-
|
|
5468
|
+
Y("");
|
|
5469
5469
|
}
|
|
5470
|
-
}, [a,
|
|
5470
|
+
}, [a, Y, s, f]), t1 = P(
|
|
5471
5471
|
(N) => {
|
|
5472
|
-
const H =
|
|
5473
|
-
|
|
5472
|
+
const H = A.filter((K) => K !== N);
|
|
5473
|
+
Y(H), Z(H);
|
|
5474
5474
|
},
|
|
5475
|
-
[
|
|
5476
|
-
), g1 =
|
|
5477
|
-
(N) => (
|
|
5475
|
+
[Y, A]
|
|
5476
|
+
), g1 = P(
|
|
5477
|
+
(N) => (A == null ? void 0 : A.indexOf(N)) === 0 ? (
|
|
5478
5478
|
// if the search input is empty
|
|
5479
5479
|
// then display the placeholder, else do not display it
|
|
5480
5480
|
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: E ? t : "" })
|
|
5481
5481
|
) : /* @__PURE__ */ r(i1, {}),
|
|
5482
|
-
[E,
|
|
5482
|
+
[E, A, t]
|
|
5483
5483
|
), v1 = (N) => {
|
|
5484
5484
|
N.preventDefault(), N.stopPropagation();
|
|
5485
5485
|
}, N1 = async (N) => {
|
|
5486
5486
|
const { target: H } = N;
|
|
5487
5487
|
H.scrollTop + H.offsetHeight >= H.scrollHeight - l && (p == null || p(!0)), w && await w(N);
|
|
5488
|
-
}, o1 =
|
|
5488
|
+
}, o1 = P(
|
|
5489
5489
|
(N) => {
|
|
5490
5490
|
var H, K;
|
|
5491
5491
|
return ((H = o.find((a1) => a1.value === N)) == null ? void 0 : H.label) || ((K = m == null ? void 0 : m.find(
|
|
@@ -5493,7 +5493,7 @@ const Ot = ({
|
|
|
5493
5493
|
)) == null ? void 0 : K.label) || N;
|
|
5494
5494
|
},
|
|
5495
5495
|
[m, o]
|
|
5496
|
-
), R1 =
|
|
5496
|
+
), R1 = P(
|
|
5497
5497
|
(N) => {
|
|
5498
5498
|
var H;
|
|
5499
5499
|
return /* @__PURE__ */ r(
|
|
@@ -5510,10 +5510,10 @@ const Ot = ({
|
|
|
5510
5510
|
);
|
|
5511
5511
|
},
|
|
5512
5512
|
[a, m, t1, o, f]
|
|
5513
|
-
), S =
|
|
5513
|
+
), S = P(
|
|
5514
5514
|
({ label: N, value: H, mode: K }) => K === "filter" ? g1(H) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(C2, { onClose: () => t1(H), disabled: a, children: typeof N == "object" ? N : o1(H) }) }),
|
|
5515
5515
|
[a, o1, t1, g1]
|
|
5516
|
-
), z = Array.isArray(
|
|
5516
|
+
), z = Array.isArray(A) && A.length > 0 || !!A && typeof A == "string" && A.trim() !== "";
|
|
5517
5517
|
return /* @__PURE__ */ u("div", { className: "snmt-select-container", children: [
|
|
5518
5518
|
/* @__PURE__ */ u(
|
|
5519
5519
|
"div",
|
|
@@ -5521,7 +5521,7 @@ const Ot = ({
|
|
|
5521
5521
|
className: `snmt-select-1-15-6 ${q ? "snmt-select-focused" : ""}
|
|
5522
5522
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5523
5523
|
ref: D,
|
|
5524
|
-
style: { width:
|
|
5524
|
+
style: { width: h },
|
|
5525
5525
|
children: [
|
|
5526
5526
|
/* @__PURE__ */ r(
|
|
5527
5527
|
N2,
|
|
@@ -5534,17 +5534,17 @@ const Ot = ({
|
|
|
5534
5534
|
filterOption: n && U,
|
|
5535
5535
|
onDropdownVisibleChange: B,
|
|
5536
5536
|
disabled: a,
|
|
5537
|
-
value:
|
|
5537
|
+
value: A || void 0,
|
|
5538
5538
|
labelRender: (N) => {
|
|
5539
5539
|
const H = o1(N.value);
|
|
5540
5540
|
return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: H }) : H;
|
|
5541
5541
|
},
|
|
5542
5542
|
mode: s === "filter" ? "multiple" : s,
|
|
5543
|
-
onChange:
|
|
5544
|
-
onFocus:
|
|
5545
|
-
onBlur:
|
|
5543
|
+
onChange: Y,
|
|
5544
|
+
onFocus: V,
|
|
5545
|
+
onBlur: $,
|
|
5546
5546
|
onSearch: (N) => {
|
|
5547
|
-
T(!N),
|
|
5547
|
+
T(!N), c && c(N);
|
|
5548
5548
|
},
|
|
5549
5549
|
onSelect: () => T(!0),
|
|
5550
5550
|
onDeselect: () => T(!0),
|
|
@@ -5552,9 +5552,9 @@ const Ot = ({
|
|
|
5552
5552
|
maxTagCount: "responsive",
|
|
5553
5553
|
maxTagPlaceholder: R1,
|
|
5554
5554
|
onPopupScroll: N1,
|
|
5555
|
-
prefix:
|
|
5555
|
+
prefix: I && /* @__PURE__ */ r(P1, { size: "small" }),
|
|
5556
5556
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(i1, { children: [
|
|
5557
|
-
|
|
5557
|
+
A && !!A.length && (s || d) && /* @__PURE__ */ r(
|
|
5558
5558
|
"div",
|
|
5559
5559
|
{
|
|
5560
5560
|
onClick: e1,
|
|
@@ -5587,7 +5587,7 @@ const Ot = ({
|
|
|
5587
5587
|
s && /* @__PURE__ */ r(
|
|
5588
5588
|
t5,
|
|
5589
5589
|
{
|
|
5590
|
-
checked: !!(
|
|
5590
|
+
checked: !!(A != null && A.includes(N.value))
|
|
5591
5591
|
}
|
|
5592
5592
|
),
|
|
5593
5593
|
/* @__PURE__ */ u(f1, { alignItems: "center", gap: 8, children: [
|
|
@@ -5595,11 +5595,11 @@ const Ot = ({
|
|
|
5595
5595
|
/* @__PURE__ */ r("span", { children: N.label })
|
|
5596
5596
|
] })
|
|
5597
5597
|
] }),
|
|
5598
|
-
!s &&
|
|
5598
|
+
!s && A === N.value && /* @__PURE__ */ r(u1, { name: "check", color: Q.BLUE_DARK_1 })
|
|
5599
5599
|
] }),
|
|
5600
5600
|
dropdownRender: (N) => /* @__PURE__ */ u("div", { className: "dropdown-container", children: [
|
|
5601
5601
|
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: b ? b(N) : N }),
|
|
5602
|
-
|
|
5602
|
+
I && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(P1, {}) })
|
|
5603
5603
|
] })
|
|
5604
5604
|
}
|
|
5605
5605
|
),
|
|
@@ -5607,7 +5607,7 @@ const Ot = ({
|
|
|
5607
5607
|
/* @__PURE__ */ r(
|
|
5608
5608
|
"label",
|
|
5609
5609
|
{
|
|
5610
|
-
className: `${q || z ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${q ? "label-focused" : ""} ${
|
|
5610
|
+
className: `${q || z ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${q ? "label-focused" : ""} ${I ? "label-loading" : ""} ${x ? "label-error" : ""}`,
|
|
5611
5611
|
children: C ? `${t}*` : t
|
|
5612
5612
|
}
|
|
5613
5613
|
),
|
|
@@ -5632,7 +5632,7 @@ const Ot = ({
|
|
|
5632
5632
|
width: 16
|
|
5633
5633
|
}
|
|
5634
5634
|
),
|
|
5635
|
-
typeof x == "string" ? /* @__PURE__ */ r(
|
|
5635
|
+
typeof x == "string" ? /* @__PURE__ */ r(At, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: x }) : x
|
|
5636
5636
|
] })
|
|
5637
5637
|
] });
|
|
5638
5638
|
}
|
|
@@ -5654,7 +5654,7 @@ function F1(i) {
|
|
|
5654
5654
|
e.current = i;
|
|
5655
5655
|
}, [i]), e.current;
|
|
5656
5656
|
}
|
|
5657
|
-
const
|
|
5657
|
+
const A1 = 100, l1 = {
|
|
5658
5658
|
offset: 0
|
|
5659
5659
|
}, W1 = d1(
|
|
5660
5660
|
({
|
|
@@ -5664,12 +5664,12 @@ const V1 = 100, l1 = {
|
|
|
5664
5664
|
value: s,
|
|
5665
5665
|
id: n,
|
|
5666
5666
|
disabled: o,
|
|
5667
|
-
scrollThresholdValue:
|
|
5667
|
+
scrollThresholdValue: h,
|
|
5668
5668
|
placeholder: a,
|
|
5669
5669
|
mode: C,
|
|
5670
5670
|
loadOnClosedState: d,
|
|
5671
5671
|
preloadOptions: l,
|
|
5672
|
-
extraOptions:
|
|
5672
|
+
extraOptions: c,
|
|
5673
5673
|
onDropdownVisibleChange: g,
|
|
5674
5674
|
optionRender: p,
|
|
5675
5675
|
dropdownRender: w,
|
|
@@ -5677,12 +5677,12 @@ const V1 = 100, l1 = {
|
|
|
5677
5677
|
clearable: m = !1,
|
|
5678
5678
|
required: b = !1,
|
|
5679
5679
|
error: y
|
|
5680
|
-
},
|
|
5681
|
-
const [f, x] = O(), [_, R] = O(l1), [j, q] = O(!1), [F, E] = O(), [T,
|
|
5682
|
-
|
|
5683
|
-
), B = F1(_.offset), U = F1(F), [
|
|
5680
|
+
}, I) => {
|
|
5681
|
+
const [f, x] = O(), [_, R] = O(l1), [j, q] = O(!1), [F, E] = O(), [T, A] = O(!1), [Z, D] = O(
|
|
5682
|
+
c ?? []
|
|
5683
|
+
), B = F1(_.offset), U = F1(F), [V, $] = O(!1), Y = J(!1), e1 = P(
|
|
5684
5684
|
async ({
|
|
5685
|
-
limit: S =
|
|
5685
|
+
limit: S = A1,
|
|
5686
5686
|
offset: z,
|
|
5687
5687
|
search: N
|
|
5688
5688
|
}) => {
|
|
@@ -5708,36 +5708,36 @@ const V1 = 100, l1 = {
|
|
|
5708
5708
|
[i]
|
|
5709
5709
|
), t1 = St((S) => {
|
|
5710
5710
|
E(S), S || R(l1);
|
|
5711
|
-
}), g1 =
|
|
5711
|
+
}), g1 = P(
|
|
5712
5712
|
(S) => t1(S),
|
|
5713
5713
|
[t1]
|
|
5714
|
-
), v1 =
|
|
5714
|
+
), v1 = P(
|
|
5715
5715
|
async (S) => {
|
|
5716
5716
|
j || S && _.count && _.count > ((f == null ? void 0 : f.length) ?? 0) && R((z) => ({
|
|
5717
5717
|
...z,
|
|
5718
|
-
offset: z.offset +
|
|
5718
|
+
offset: z.offset + A1
|
|
5719
5719
|
}));
|
|
5720
5720
|
},
|
|
5721
5721
|
[j, f == null ? void 0 : f.length, _.count]
|
|
5722
|
-
), N1 =
|
|
5722
|
+
), N1 = P(
|
|
5723
5723
|
(S) => {
|
|
5724
|
-
|
|
5724
|
+
A(S), !S && F && (E(void 0), R(l1), $(!0)), g == null || g(S);
|
|
5725
5725
|
},
|
|
5726
5726
|
[g, F]
|
|
5727
5727
|
);
|
|
5728
5728
|
G(() => {
|
|
5729
|
-
!
|
|
5730
|
-
}, [
|
|
5731
|
-
(d || l) && e1(l1),
|
|
5729
|
+
!Y.current || j || (V || T && (B !== _.offset || U !== F || !f)) && (e1({ offset: _.offset, limit: A1, search: F }), V && $(!1));
|
|
5730
|
+
}, [V, T, _.offset, F, B, U, f, j]), G(() => {
|
|
5731
|
+
(d || l) && e1(l1), Y.current = !0;
|
|
5732
5732
|
}, []), G(() => {
|
|
5733
|
-
|
|
5734
|
-
const z =
|
|
5733
|
+
c && D((S) => {
|
|
5734
|
+
const z = c.filter(
|
|
5735
5735
|
(N) => !S.some((H) => H.value === N.value)
|
|
5736
5736
|
);
|
|
5737
5737
|
return [...S, ...z];
|
|
5738
5738
|
});
|
|
5739
|
-
}, [
|
|
5740
|
-
const o1 =
|
|
5739
|
+
}, [c]);
|
|
5740
|
+
const o1 = P(
|
|
5741
5741
|
(S) => {
|
|
5742
5742
|
t && t(S);
|
|
5743
5743
|
let z = [];
|
|
@@ -5754,7 +5754,7 @@ const V1 = 100, l1 = {
|
|
|
5754
5754
|
label: (a1 == null ? void 0 : a1.label) ?? K
|
|
5755
5755
|
};
|
|
5756
5756
|
})
|
|
5757
|
-
]), E(void 0), R(l1),
|
|
5757
|
+
]), E(void 0), R(l1), $(!0);
|
|
5758
5758
|
}
|
|
5759
5759
|
},
|
|
5760
5760
|
[t, F, C, f, Z]
|
|
@@ -5764,13 +5764,13 @@ const V1 = 100, l1 = {
|
|
|
5764
5764
|
width: e,
|
|
5765
5765
|
options: f || [],
|
|
5766
5766
|
onChange: o1,
|
|
5767
|
-
ref:
|
|
5767
|
+
ref: I,
|
|
5768
5768
|
placeholder: a,
|
|
5769
5769
|
search: !0,
|
|
5770
5770
|
value: s,
|
|
5771
5771
|
onSearchChange: g1,
|
|
5772
5772
|
onDropdownVisibleChange: N1,
|
|
5773
|
-
scrollThresholdValue:
|
|
5773
|
+
scrollThresholdValue: h,
|
|
5774
5774
|
onScrollToEnd: v1,
|
|
5775
5775
|
disabled: o,
|
|
5776
5776
|
extraOptions: Z,
|
|
@@ -5787,12 +5787,12 @@ const V1 = 100, l1 = {
|
|
|
5787
5787
|
e,
|
|
5788
5788
|
f,
|
|
5789
5789
|
o1,
|
|
5790
|
-
|
|
5790
|
+
I,
|
|
5791
5791
|
a,
|
|
5792
5792
|
s,
|
|
5793
5793
|
g1,
|
|
5794
5794
|
N1,
|
|
5795
|
-
|
|
5795
|
+
h,
|
|
5796
5796
|
v1,
|
|
5797
5797
|
o,
|
|
5798
5798
|
Z,
|
|
@@ -5805,9 +5805,9 @@ const V1 = 100, l1 = {
|
|
|
5805
5805
|
y
|
|
5806
5806
|
]
|
|
5807
5807
|
);
|
|
5808
|
-
return k1(
|
|
5808
|
+
return k1(I, () => ({
|
|
5809
5809
|
refetchOptions: async () => {
|
|
5810
|
-
R(l1), E(void 0),
|
|
5810
|
+
R(l1), E(void 0), $(!0);
|
|
5811
5811
|
}
|
|
5812
5812
|
})), C ? /* @__PURE__ */ r(j1, { ...R1, value: s, mode: C }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(j1, { ...R1, value: s }) });
|
|
5813
5813
|
}
|
|
@@ -5860,11 +5860,11 @@ const g2 = (i, e) => () => {
|
|
|
5860
5860
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5861
5861
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
5862
5862
|
if (s.toLowerCase() === "cimode") return !0;
|
|
5863
|
-
const
|
|
5863
|
+
const h = (a, C) => {
|
|
5864
5864
|
const d = e.services.backendConnector.state[`${a}|${C}`];
|
|
5865
5865
|
return d === -1 || d === 2;
|
|
5866
5866
|
};
|
|
5867
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
|
5867
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(s, i) && (!n || h(o, i)));
|
|
5868
5868
|
}, Bt = function(i, e) {
|
|
5869
5869
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5870
5870
|
return !e.languages || !e.languages.length ? (Z1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
@@ -5873,7 +5873,7 @@ const g2 = (i, e) => () => {
|
|
|
5873
5873
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
|
|
5874
5874
|
}
|
|
5875
5875
|
}) : Kt(i, e, t);
|
|
5876
|
-
}, n1 = (i) => typeof i == "string",
|
|
5876
|
+
}, n1 = (i) => typeof i == "string", Yt = (i) => typeof i == "object" && i !== null, $t = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Pt = {
|
|
5877
5877
|
"&": "&",
|
|
5878
5878
|
"&": "&",
|
|
5879
5879
|
"<": "<",
|
|
@@ -5894,7 +5894,7 @@ const g2 = (i, e) => () => {
|
|
|
5894
5894
|
"…": "…",
|
|
5895
5895
|
"/": "/",
|
|
5896
5896
|
"/": "/"
|
|
5897
|
-
}, jt = (i) =>
|
|
5897
|
+
}, jt = (i) => Pt[i], Ft = (i) => i.replace($t, jt);
|
|
5898
5898
|
let S1 = {
|
|
5899
5899
|
bindI18n: "languageChanged",
|
|
5900
5900
|
bindI18nStore: "",
|
|
@@ -5937,7 +5937,7 @@ const e7 = (i, e) => {
|
|
|
5937
5937
|
return G(() => {
|
|
5938
5938
|
t.current = i;
|
|
5939
5939
|
}, [i, e]), t.current;
|
|
5940
|
-
}, p2 = (i, e, t, s) => i.getFixedT(e, t, s), t7 = (i, e, t, s) =>
|
|
5940
|
+
}, p2 = (i, e, t, s) => i.getFixedT(e, t, s), t7 = (i, e, t, s) => P(p2(i, e, t, s), [i, e, t, s]), i7 = function(i) {
|
|
5941
5941
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5942
5942
|
const {
|
|
5943
5943
|
i18n: t
|
|
@@ -5947,21 +5947,21 @@ const e7 = (i, e) => {
|
|
|
5947
5947
|
} = r1(Qt) || {}, o = t || s || Jt();
|
|
5948
5948
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new Xt()), !o) {
|
|
5949
5949
|
Z1("You will need to pass in an i18next instance by using initReactI18next");
|
|
5950
|
-
const f = (_, R) => n1(R) ? R :
|
|
5950
|
+
const f = (_, R) => n1(R) ? R : Yt(R) && n1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, x = [f, {}, !1];
|
|
5951
5951
|
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
5952
5952
|
}
|
|
5953
5953
|
o.options.react && o.options.react.wait !== void 0 && Z1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
5954
|
-
const
|
|
5954
|
+
const h = {
|
|
5955
5955
|
...Ut(),
|
|
5956
5956
|
...o.options.react,
|
|
5957
5957
|
...e
|
|
5958
5958
|
}, {
|
|
5959
5959
|
useSuspense: a,
|
|
5960
5960
|
keyPrefix: C
|
|
5961
|
-
} =
|
|
5961
|
+
} = h;
|
|
5962
5962
|
let d = i;
|
|
5963
5963
|
d = n1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
5964
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Bt(f, o,
|
|
5964
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Bt(f, o, h)), c = t7(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), g = () => c, p = () => p2(o, e.lng || null, h.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
|
|
5965
5965
|
let m = d.join();
|
|
5966
5966
|
e.lng && (m = `${e.lng}${m}`);
|
|
5967
5967
|
const b = e7(m), y = J(!0);
|
|
@@ -5969,7 +5969,7 @@ const e7 = (i, e) => {
|
|
|
5969
5969
|
const {
|
|
5970
5970
|
bindI18n: f,
|
|
5971
5971
|
bindI18nStore: x
|
|
5972
|
-
} =
|
|
5972
|
+
} = h;
|
|
5973
5973
|
y.current = !0, !l && !a && (e.lng ? J1(o, e.lng, d, () => {
|
|
5974
5974
|
y.current && v(p);
|
|
5975
5975
|
}) : z1(o, d, () => {
|
|
@@ -5984,8 +5984,8 @@ const e7 = (i, e) => {
|
|
|
5984
5984
|
}, [o, m]), G(() => {
|
|
5985
5985
|
y.current && l && v(g);
|
|
5986
5986
|
}, [o, C, l]);
|
|
5987
|
-
const
|
|
5988
|
-
if (
|
|
5987
|
+
const I = [w, o, l];
|
|
5988
|
+
if (I.t = w, I.i18n = o, I.ready = l, l || !l && !a) return I;
|
|
5989
5989
|
throw new Promise((f) => {
|
|
5990
5990
|
e.lng ? J1(o, e.lng, d, () => f()) : z1(o, d, () => f());
|
|
5991
5991
|
});
|
|
@@ -6020,9 +6020,9 @@ const e7 = (i, e) => {
|
|
|
6020
6020
|
s[n] = t;
|
|
6021
6021
|
return;
|
|
6022
6022
|
}
|
|
6023
|
-
let o = e[e.length - 1],
|
|
6024
|
-
for (; a.obj === void 0 &&
|
|
6025
|
-
o = `${
|
|
6023
|
+
let o = e[e.length - 1], h = e.slice(0, e.length - 1), a = w1(i, h, Object);
|
|
6024
|
+
for (; a.obj === void 0 && h.length; )
|
|
6025
|
+
o = `${h[h.length - 1]}.${o}`, h = h.slice(0, h.length - 1), a = w1(i, h, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
|
6026
6026
|
a.obj[`${a.k}.${o}`] = t;
|
|
6027
6027
|
}, r7 = (i, e, t, s) => {
|
|
6028
6028
|
const {
|
|
@@ -6044,7 +6044,7 @@ const e7 = (i, e) => {
|
|
|
6044
6044
|
for (const s in e)
|
|
6045
6045
|
s !== "__proto__" && s !== "constructor" && (s in i ? M(i[s]) || i[s] instanceof String || M(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : f2(i[s], e[s], t) : i[s] = e[s]);
|
|
6046
6046
|
return i;
|
|
6047
|
-
},
|
|
6047
|
+
}, c1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6048
6048
|
var a7 = {
|
|
6049
6049
|
"&": "&",
|
|
6050
6050
|
"<": "<",
|
|
@@ -6054,7 +6054,7 @@ var a7 = {
|
|
|
6054
6054
|
"/": "/"
|
|
6055
6055
|
};
|
|
6056
6056
|
const l7 = (i) => M(i) ? i.replace(/[&<>"'\/]/g, (e) => a7[e]) : i;
|
|
6057
|
-
class
|
|
6057
|
+
class c7 {
|
|
6058
6058
|
constructor(e) {
|
|
6059
6059
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
6060
6060
|
}
|
|
@@ -6066,15 +6066,15 @@ class h7 {
|
|
|
6066
6066
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
6067
6067
|
}
|
|
6068
6068
|
}
|
|
6069
|
-
const
|
|
6069
|
+
const h7 = [" ", ",", "?", "!", ";"], d7 = new c7(20), C7 = (i, e, t) => {
|
|
6070
6070
|
e = e || "", t = t || "";
|
|
6071
|
-
const s =
|
|
6071
|
+
const s = h7.filter((h) => e.indexOf(h) < 0 && t.indexOf(h) < 0);
|
|
6072
6072
|
if (s.length === 0) return !0;
|
|
6073
|
-
const n = d7.getRegExp(`(${s.map((
|
|
6073
|
+
const n = d7.getRegExp(`(${s.map((h) => h === "?" ? "\\?" : h).join("|")})`);
|
|
6074
6074
|
let o = !n.test(i);
|
|
6075
6075
|
if (!o) {
|
|
6076
|
-
const
|
|
6077
|
-
|
|
6076
|
+
const h = i.indexOf(t);
|
|
6077
|
+
h > 0 && !n.test(i.substring(0, h)) && (o = !0);
|
|
6078
6078
|
}
|
|
6079
6079
|
return o;
|
|
6080
6080
|
}, D1 = function(i, e) {
|
|
@@ -6086,15 +6086,15 @@ const c7 = [" ", ",", "?", "!", ";"], d7 = new h7(20), C7 = (i, e, t) => {
|
|
|
6086
6086
|
for (let o = 0; o < s.length; ) {
|
|
6087
6087
|
if (!n || typeof n != "object")
|
|
6088
6088
|
return;
|
|
6089
|
-
let
|
|
6089
|
+
let h, a = "";
|
|
6090
6090
|
for (let C = o; C < s.length; ++C)
|
|
6091
|
-
if (C !== o && (a += t), a += s[C],
|
|
6092
|
-
if (["string", "number", "boolean"].indexOf(typeof
|
|
6091
|
+
if (C !== o && (a += t), a += s[C], h = n[a], h !== void 0) {
|
|
6092
|
+
if (["string", "number", "boolean"].indexOf(typeof h) > -1 && C < s.length - 1)
|
|
6093
6093
|
continue;
|
|
6094
6094
|
o += C - o + 1;
|
|
6095
6095
|
break;
|
|
6096
6096
|
}
|
|
6097
|
-
n =
|
|
6097
|
+
n = h;
|
|
6098
6098
|
}
|
|
6099
6099
|
return n;
|
|
6100
6100
|
}, b1 = (i) => i && i.replace("_", "-"), g7 = {
|
|
@@ -6178,12 +6178,12 @@ class E1 {
|
|
|
6178
6178
|
emit(e) {
|
|
6179
6179
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
6180
6180
|
s[n - 1] = arguments[n];
|
|
6181
|
-
this.observers[e] && Array.from(this.observers[e].entries()).forEach((
|
|
6182
|
-
let [a, C] =
|
|
6181
|
+
this.observers[e] && Array.from(this.observers[e].entries()).forEach((h) => {
|
|
6182
|
+
let [a, C] = h;
|
|
6183
6183
|
for (let d = 0; d < C; d++)
|
|
6184
6184
|
a(...s);
|
|
6185
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((
|
|
6186
|
-
let [a, C] =
|
|
6185
|
+
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((h) => {
|
|
6186
|
+
let [a, C] = h;
|
|
6187
6187
|
for (let d = 0; d < C; d++)
|
|
6188
6188
|
a.apply(a, [e, ...s]);
|
|
6189
6189
|
});
|
|
@@ -6206,19 +6206,19 @@ class t2 extends E1 {
|
|
|
6206
6206
|
}
|
|
6207
6207
|
getResource(e, t, s) {
|
|
6208
6208
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6209
|
-
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator,
|
|
6209
|
+
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, h = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6210
6210
|
let a;
|
|
6211
6211
|
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : M(s) && o ? a.push(...s.split(o)) : a.push(s)));
|
|
6212
6212
|
const C = M1(this.data, a);
|
|
6213
|
-
return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !
|
|
6213
|
+
return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !h || !M(s) ? C : D1(this.data && this.data[e] && this.data[e][t], s, o);
|
|
6214
6214
|
}
|
|
6215
6215
|
addResource(e, t, s, n) {
|
|
6216
6216
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6217
6217
|
silent: !1
|
|
6218
6218
|
};
|
|
6219
|
-
const
|
|
6219
|
+
const h = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
|
6220
6220
|
let a = [e, t];
|
|
6221
|
-
s && (a = a.concat(
|
|
6221
|
+
s && (a = a.concat(h ? s.split(h) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), e2(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
|
|
6222
6222
|
}
|
|
6223
6223
|
addResources(e, t, s) {
|
|
6224
6224
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -6231,16 +6231,16 @@ class t2 extends E1 {
|
|
|
6231
6231
|
n.silent || this.emit("added", e, t, s);
|
|
6232
6232
|
}
|
|
6233
6233
|
addResourceBundle(e, t, s, n, o) {
|
|
6234
|
-
let
|
|
6234
|
+
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6235
6235
|
silent: !1,
|
|
6236
6236
|
skipCopy: !1
|
|
6237
6237
|
}, a = [e, t];
|
|
6238
6238
|
e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
|
|
6239
6239
|
let C = M1(this.data, a) || {};
|
|
6240
|
-
|
|
6240
|
+
h.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? f2(C, s, o) : C = {
|
|
6241
6241
|
...C,
|
|
6242
6242
|
...s
|
|
6243
|
-
}, e2(this.data, a, C),
|
|
6243
|
+
}, e2(this.data, a, C), h.silent || this.emit("added", e, t, s);
|
|
6244
6244
|
}
|
|
6245
6245
|
removeResourceBundle(e, t) {
|
|
6246
6246
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6298,8 +6298,8 @@ class H1 extends E1 {
|
|
|
6298
6298
|
s === void 0 && (s = ":");
|
|
6299
6299
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6300
6300
|
let o = t.ns || this.options.defaultNS || [];
|
|
6301
|
-
const
|
|
6302
|
-
if (
|
|
6301
|
+
const h = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !C7(e, s, n);
|
|
6302
|
+
if (h && !a) {
|
|
6303
6303
|
const C = e.match(this.interpolator.nestingRegexp);
|
|
6304
6304
|
if (C && C.length > 0)
|
|
6305
6305
|
return {
|
|
@@ -6320,41 +6320,41 @@ class H1 extends E1 {
|
|
|
6320
6320
|
}), t || (t = {}), e == null) return "";
|
|
6321
6321
|
Array.isArray(e) || (e = [String(e)]);
|
|
6322
6322
|
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6323
|
-
key:
|
|
6323
|
+
key: h,
|
|
6324
6324
|
namespaces: a
|
|
6325
6325
|
} = this.extractFromKey(e[e.length - 1], t), C = a[a.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6326
6326
|
if (d && d.toLowerCase() === "cimode") {
|
|
6327
6327
|
if (l) {
|
|
6328
6328
|
const f = t.nsSeparator || this.options.nsSeparator;
|
|
6329
6329
|
return n ? {
|
|
6330
|
-
res: `${C}${f}${
|
|
6331
|
-
usedKey:
|
|
6332
|
-
exactUsedKey:
|
|
6330
|
+
res: `${C}${f}${h}`,
|
|
6331
|
+
usedKey: h,
|
|
6332
|
+
exactUsedKey: h,
|
|
6333
6333
|
usedLng: d,
|
|
6334
6334
|
usedNS: C,
|
|
6335
6335
|
usedParams: this.getUsedParamsDetails(t)
|
|
6336
|
-
} : `${C}${f}${
|
|
6336
|
+
} : `${C}${f}${h}`;
|
|
6337
6337
|
}
|
|
6338
6338
|
return n ? {
|
|
6339
|
-
res:
|
|
6340
|
-
usedKey:
|
|
6341
|
-
exactUsedKey:
|
|
6339
|
+
res: h,
|
|
6340
|
+
usedKey: h,
|
|
6341
|
+
exactUsedKey: h,
|
|
6342
6342
|
usedLng: d,
|
|
6343
6343
|
usedNS: C,
|
|
6344
6344
|
usedParams: this.getUsedParamsDetails(t)
|
|
6345
|
-
} :
|
|
6345
|
+
} : h;
|
|
6346
6346
|
}
|
|
6347
|
-
const
|
|
6348
|
-
let g =
|
|
6349
|
-
const p =
|
|
6350
|
-
if (y && g &&
|
|
6347
|
+
const c = this.resolve(e, t);
|
|
6348
|
+
let g = c && c.res;
|
|
6349
|
+
const p = c && c.usedKey || h, w = c && c.exactUsedKey || h, v = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, I = !M(g) && typeof g != "boolean" && typeof g != "number";
|
|
6350
|
+
if (y && g && I && m.indexOf(v) < 0 && !(M(b) && Array.isArray(g))) {
|
|
6351
6351
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6352
6352
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6353
6353
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, g, {
|
|
6354
6354
|
...t,
|
|
6355
6355
|
ns: a
|
|
6356
|
-
}) : `key '${
|
|
6357
|
-
return n ? (
|
|
6356
|
+
}) : `key '${h} (${this.language})' returned an object instead of string.`;
|
|
6357
|
+
return n ? (c.res = f, c.usedParams = this.getUsedParamsDetails(t), c) : f;
|
|
6358
6358
|
}
|
|
6359
6359
|
if (o) {
|
|
6360
6360
|
const f = Array.isArray(g), x = f ? [] : {}, _ = f ? w : p;
|
|
@@ -6376,39 +6376,39 @@ class H1 extends E1 {
|
|
|
6376
6376
|
const _ = t.count !== void 0 && !M(t.count), R = H1.hasDefaultValue(t), j = _ ? this.pluralResolver.getSuffix(d, t.count, t) : "", q = t.ordinal && _ ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6377
6377
|
ordinal: !1
|
|
6378
6378
|
}) : "", F = _ && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), E = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${j}`] || t[`defaultValue${q}`] || t.defaultValue;
|
|
6379
|
-
!this.isValidLookup(g) && R && (f = !0, g = E), this.isValidLookup(g) || (x = !0, g =
|
|
6380
|
-
const
|
|
6379
|
+
!this.isValidLookup(g) && R && (f = !0, g = E), this.isValidLookup(g) || (x = !0, g = h);
|
|
6380
|
+
const A = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : g, Z = R && E !== g && this.options.updateMissing;
|
|
6381
6381
|
if (x || f || Z) {
|
|
6382
|
-
if (this.logger.log(Z ? "updateKey" : "missingKey", d, C,
|
|
6383
|
-
const
|
|
6382
|
+
if (this.logger.log(Z ? "updateKey" : "missingKey", d, C, h, Z ? E : g), o) {
|
|
6383
|
+
const V = this.resolve(h, {
|
|
6384
6384
|
...t,
|
|
6385
6385
|
keySeparator: !1
|
|
6386
6386
|
});
|
|
6387
|
-
|
|
6387
|
+
V && V.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.");
|
|
6388
6388
|
}
|
|
6389
6389
|
let D = [];
|
|
6390
6390
|
const B = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6391
6391
|
if (this.options.saveMissingTo === "fallback" && B && B[0])
|
|
6392
|
-
for (let
|
|
6393
|
-
D.push(B[
|
|
6392
|
+
for (let V = 0; V < B.length; V++)
|
|
6393
|
+
D.push(B[V]);
|
|
6394
6394
|
else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(t.lng || this.language) : D.push(t.lng || this.language);
|
|
6395
|
-
const U = (
|
|
6396
|
-
const e1 = R &&
|
|
6397
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
6395
|
+
const U = (V, $, Y) => {
|
|
6396
|
+
const e1 = R && Y !== g ? Y : A;
|
|
6397
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(V, C, $, e1, Z, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(V, C, $, e1, Z, t), this.emit("missingKey", V, C, $, g);
|
|
6398
6398
|
};
|
|
6399
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? D.forEach((
|
|
6400
|
-
const
|
|
6401
|
-
F && t[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
6402
|
-
U([
|
|
6399
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? D.forEach((V) => {
|
|
6400
|
+
const $ = this.pluralResolver.getSuffixes(V, t);
|
|
6401
|
+
F && t[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((Y) => {
|
|
6402
|
+
U([V], h + Y, t[`defaultValue${Y}`] || E);
|
|
6403
6403
|
});
|
|
6404
|
-
}) : U(D,
|
|
6404
|
+
}) : U(D, h, E));
|
|
6405
6405
|
}
|
|
6406
|
-
g = this.extendTranslation(g, e, t,
|
|
6406
|
+
g = this.extendTranslation(g, e, t, c, s), x && g === h && this.options.appendNamespaceToMissingKey && (g = `${C}:${h}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${C}:${h}` : h, f ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
|
|
6407
6407
|
}
|
|
6408
|
-
return n ? (
|
|
6408
|
+
return n ? (c.res = g, c.usedParams = this.getUsedParamsDetails(t), c) : g;
|
|
6409
6409
|
}
|
|
6410
6410
|
extendTranslation(e, t, s, n, o) {
|
|
6411
|
-
var
|
|
6411
|
+
var h = this;
|
|
6412
6412
|
if (this.i18nFormat && this.i18nFormat.parse)
|
|
6413
6413
|
e = this.i18nFormat.parse(e, {
|
|
6414
6414
|
...this.options.interpolation.defaultVariables,
|
|
@@ -6430,18 +6430,18 @@ class H1 extends E1 {
|
|
|
6430
6430
|
const g = e.match(this.interpolator.nestingRegexp);
|
|
6431
6431
|
l = g && g.length;
|
|
6432
6432
|
}
|
|
6433
|
-
let
|
|
6434
|
-
if (this.options.interpolation.defaultVariables && (
|
|
6433
|
+
let c = s.replace && !M(s.replace) ? s.replace : s;
|
|
6434
|
+
if (this.options.interpolation.defaultVariables && (c = {
|
|
6435
6435
|
...this.options.interpolation.defaultVariables,
|
|
6436
|
-
...
|
|
6437
|
-
}), e = this.interpolator.interpolate(e,
|
|
6436
|
+
...c
|
|
6437
|
+
}), e = this.interpolator.interpolate(e, c, s.lng || this.language || n.usedLng, s), d) {
|
|
6438
6438
|
const g = e.match(this.interpolator.nestingRegexp), p = g && g.length;
|
|
6439
6439
|
l < p && (s.nest = !1);
|
|
6440
6440
|
}
|
|
6441
6441
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6442
6442
|
for (var g = arguments.length, p = new Array(g), w = 0; w < g; w++)
|
|
6443
6443
|
p[w] = arguments[w];
|
|
6444
|
-
return o && o[0] === p[0] && !s.context ? (
|
|
6444
|
+
return o && o[0] === p[0] && !s.context ? (h.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : h.translate(...p, t);
|
|
6445
6445
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6446
6446
|
}
|
|
6447
6447
|
const a = s.postProcess || this.options.postProcess, C = M(a) ? [a] : a;
|
|
@@ -6454,18 +6454,18 @@ class H1 extends E1 {
|
|
|
6454
6454
|
} : s, this)), e;
|
|
6455
6455
|
}
|
|
6456
6456
|
resolve(e) {
|
|
6457
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o,
|
|
6457
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, h, a;
|
|
6458
6458
|
return M(e) && (e = [e]), e.forEach((C) => {
|
|
6459
6459
|
if (this.isValidLookup(s)) return;
|
|
6460
6460
|
const d = this.extractFromKey(C, t), l = d.key;
|
|
6461
6461
|
n = l;
|
|
6462
|
-
let
|
|
6463
|
-
this.options.fallbackNS && (
|
|
6462
|
+
let c = d.namespaces;
|
|
6463
|
+
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
|
|
6464
6464
|
const g = t.count !== void 0 && !M(t.count), p = g && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (M(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6465
|
-
|
|
6465
|
+
c.forEach((m) => {
|
|
6466
6466
|
this.isValidLookup(s) || (a = m, !i2[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (i2[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((b) => {
|
|
6467
6467
|
if (this.isValidLookup(s)) return;
|
|
6468
|
-
|
|
6468
|
+
h = b;
|
|
6469
6469
|
const y = [l];
|
|
6470
6470
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6471
6471
|
this.i18nFormat.addLookupKeys(y, l, b, m, t);
|
|
@@ -6478,16 +6478,16 @@ class H1 extends E1 {
|
|
|
6478
6478
|
y.push(R), g && (y.push(R + f), t.ordinal && f.indexOf(_) === 0 && y.push(R + f.replace(_, this.options.pluralSeparator)), p && y.push(R + x));
|
|
6479
6479
|
}
|
|
6480
6480
|
}
|
|
6481
|
-
let
|
|
6482
|
-
for (;
|
|
6483
|
-
this.isValidLookup(s) || (o =
|
|
6481
|
+
let I;
|
|
6482
|
+
for (; I = y.pop(); )
|
|
6483
|
+
this.isValidLookup(s) || (o = I, s = this.getResource(b, m, I, t));
|
|
6484
6484
|
}));
|
|
6485
6485
|
});
|
|
6486
6486
|
}), {
|
|
6487
6487
|
res: s,
|
|
6488
6488
|
usedKey: n,
|
|
6489
6489
|
exactUsedKey: o,
|
|
6490
|
-
usedLng:
|
|
6490
|
+
usedLng: h,
|
|
6491
6491
|
usedNS: a
|
|
6492
6492
|
};
|
|
6493
6493
|
}
|
|
@@ -6522,7 +6522,7 @@ class H1 extends E1 {
|
|
|
6522
6522
|
return !1;
|
|
6523
6523
|
}
|
|
6524
6524
|
}
|
|
6525
|
-
const
|
|
6525
|
+
const V1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
6526
6526
|
class s2 {
|
|
6527
6527
|
constructor(e) {
|
|
6528
6528
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = X.create("languageUtils");
|
|
@@ -6547,7 +6547,7 @@ class s2 {
|
|
|
6547
6547
|
}
|
|
6548
6548
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
6549
6549
|
let s = e.split("-");
|
|
6550
|
-
return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
|
6550
|
+
return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = V1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = V1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = V1(s[2].toLowerCase()))), s.join("-");
|
|
6551
6551
|
}
|
|
6552
6552
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
6553
6553
|
}
|
|
@@ -6580,11 +6580,11 @@ class s2 {
|
|
|
6580
6580
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
6581
6581
|
}
|
|
6582
6582
|
toResolveHierarchy(e, t) {
|
|
6583
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (
|
|
6584
|
-
|
|
6583
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (h) => {
|
|
6584
|
+
h && (this.isSupportedCode(h) ? n.push(h) : this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`));
|
|
6585
6585
|
};
|
|
6586
|
-
return M(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : M(e) && o(this.formatLanguageCode(e)), s.forEach((
|
|
6587
|
-
n.indexOf(
|
|
6586
|
+
return M(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : M(e) && o(this.formatLanguageCode(e)), s.forEach((h) => {
|
|
6587
|
+
n.indexOf(h) < 0 && o(this.formatLanguageCode(h));
|
|
6588
6588
|
}), n;
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
@@ -6742,17 +6742,17 @@ class L7 {
|
|
|
6742
6742
|
});
|
|
6743
6743
|
if (o in this.pluralRulesCache)
|
|
6744
6744
|
return this.pluralRulesCache[o];
|
|
6745
|
-
let
|
|
6745
|
+
let h;
|
|
6746
6746
|
try {
|
|
6747
|
-
|
|
6747
|
+
h = new Intl.PluralRules(s, {
|
|
6748
6748
|
type: n
|
|
6749
6749
|
});
|
|
6750
6750
|
} catch {
|
|
6751
6751
|
if (!e.match(/-|_/)) return;
|
|
6752
6752
|
const C = this.languageUtils.getLanguagePartFromCode(e);
|
|
6753
|
-
|
|
6753
|
+
h = this.getRule(C, t);
|
|
6754
6754
|
}
|
|
6755
|
-
return this.pluralRulesCache[o] =
|
|
6755
|
+
return this.pluralRulesCache[o] = h, h;
|
|
6756
6756
|
}
|
|
6757
6757
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
|
6758
6758
|
}
|
|
@@ -6789,7 +6789,7 @@ class L7 {
|
|
|
6789
6789
|
const r2 = function(i, e, t) {
|
|
6790
6790
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = o7(i, e, t);
|
|
6791
6791
|
return !o && n && M(t) && (o = D1(i, t, s), o === void 0 && (o = D1(e, t, s))), o;
|
|
6792
|
-
},
|
|
6792
|
+
}, I1 = (i) => i.replace(/\$/g, "$$$$");
|
|
6793
6793
|
class k7 {
|
|
6794
6794
|
constructor() {
|
|
6795
6795
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -6805,12 +6805,12 @@ class k7 {
|
|
|
6805
6805
|
escapeValue: s,
|
|
6806
6806
|
useRawValueToEscape: n,
|
|
6807
6807
|
prefix: o,
|
|
6808
|
-
prefixEscaped:
|
|
6808
|
+
prefixEscaped: h,
|
|
6809
6809
|
suffix: a,
|
|
6810
6810
|
suffixEscaped: C,
|
|
6811
6811
|
formatSeparator: d,
|
|
6812
6812
|
unescapeSuffix: l,
|
|
6813
|
-
unescapePrefix:
|
|
6813
|
+
unescapePrefix: c,
|
|
6814
6814
|
nestingPrefix: g,
|
|
6815
6815
|
nestingPrefixEscaped: p,
|
|
6816
6816
|
nestingSuffix: w,
|
|
@@ -6819,7 +6819,7 @@ class k7 {
|
|
|
6819
6819
|
maxReplaces: b,
|
|
6820
6820
|
alwaysFormat: y
|
|
6821
6821
|
} = e.interpolation;
|
|
6822
|
-
this.escape = t !== void 0 ? t : l7, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ?
|
|
6822
|
+
this.escape = t !== void 0 ? t : l7, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? c1(o) : h || "{{", this.suffix = a ? c1(a) : C || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = g ? c1(g) : p || c1("$t("), this.nestingSuffix = w ? c1(w) : v || c1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
|
|
6823
6823
|
}
|
|
6824
6824
|
reset() {
|
|
6825
6825
|
this.options && this.init(this.options);
|
|
@@ -6829,7 +6829,7 @@ class k7 {
|
|
|
6829
6829
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
6830
6830
|
}
|
|
6831
6831
|
interpolate(e, t, s, n) {
|
|
6832
|
-
let o,
|
|
6832
|
+
let o, h, a;
|
|
6833
6833
|
const C = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
|
|
6834
6834
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
6835
6835
|
const b = r2(t, C, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
@@ -6847,66 +6847,66 @@ class k7 {
|
|
|
6847
6847
|
});
|
|
6848
6848
|
};
|
|
6849
6849
|
this.resetRegExp();
|
|
6850
|
-
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
|
6850
|
+
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, c = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
6851
6851
|
return [{
|
|
6852
6852
|
regex: this.regexpUnescape,
|
|
6853
|
-
safeValue: (p) =>
|
|
6853
|
+
safeValue: (p) => I1(p)
|
|
6854
6854
|
}, {
|
|
6855
6855
|
regex: this.regexp,
|
|
6856
|
-
safeValue: (p) => this.escapeValue ?
|
|
6856
|
+
safeValue: (p) => this.escapeValue ? I1(this.escape(p)) : I1(p)
|
|
6857
6857
|
}].forEach((p) => {
|
|
6858
6858
|
for (a = 0; o = p.regex.exec(e); ) {
|
|
6859
6859
|
const w = o[1].trim();
|
|
6860
|
-
if (
|
|
6860
|
+
if (h = d(w), h === void 0)
|
|
6861
6861
|
if (typeof l == "function") {
|
|
6862
6862
|
const m = l(e, o, n);
|
|
6863
|
-
|
|
6863
|
+
h = M(m) ? m : "";
|
|
6864
6864
|
} else if (n && Object.prototype.hasOwnProperty.call(n, w))
|
|
6865
|
-
|
|
6866
|
-
else if (
|
|
6867
|
-
|
|
6865
|
+
h = "";
|
|
6866
|
+
else if (c) {
|
|
6867
|
+
h = o[0];
|
|
6868
6868
|
continue;
|
|
6869
6869
|
} else
|
|
6870
|
-
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`),
|
|
6871
|
-
else !M(
|
|
6872
|
-
const v = p.safeValue(
|
|
6873
|
-
if (e = e.replace(o[0], v),
|
|
6870
|
+
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), h = "";
|
|
6871
|
+
else !M(h) && !this.useRawValueToEscape && (h = q1(h));
|
|
6872
|
+
const v = p.safeValue(h);
|
|
6873
|
+
if (e = e.replace(o[0], v), c ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
6874
6874
|
break;
|
|
6875
6875
|
}
|
|
6876
6876
|
}), e;
|
|
6877
6877
|
}
|
|
6878
6878
|
nest(e, t) {
|
|
6879
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o,
|
|
6879
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, h;
|
|
6880
6880
|
const a = (C, d) => {
|
|
6881
6881
|
const l = this.nestingOptionsSeparator;
|
|
6882
6882
|
if (C.indexOf(l) < 0) return C;
|
|
6883
|
-
const
|
|
6884
|
-
let g = `{${
|
|
6885
|
-
C =
|
|
6883
|
+
const c = C.split(new RegExp(`${l}[ ]*{`));
|
|
6884
|
+
let g = `{${c[1]}`;
|
|
6885
|
+
C = c[0], g = this.interpolate(g, h);
|
|
6886
6886
|
const p = g.match(/'/g), w = g.match(/"/g);
|
|
6887
6887
|
(p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
6888
6888
|
try {
|
|
6889
|
-
|
|
6889
|
+
h = JSON.parse(g), d && (h = {
|
|
6890
6890
|
...d,
|
|
6891
|
-
...
|
|
6891
|
+
...h
|
|
6892
6892
|
});
|
|
6893
6893
|
} catch (v) {
|
|
6894
6894
|
return this.logger.warn(`failed parsing options string in nesting for key ${C}`, v), `${C}${l}${g}`;
|
|
6895
6895
|
}
|
|
6896
|
-
return
|
|
6896
|
+
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, C;
|
|
6897
6897
|
};
|
|
6898
6898
|
for (; n = this.nestingRegexp.exec(e); ) {
|
|
6899
6899
|
let C = [];
|
|
6900
|
-
|
|
6900
|
+
h = {
|
|
6901
6901
|
...s
|
|
6902
|
-
},
|
|
6902
|
+
}, h = h.replace && !M(h.replace) ? h.replace : h, h.applyPostProcessor = !1, delete h.defaultValue;
|
|
6903
6903
|
let d = !1;
|
|
6904
6904
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
|
6905
|
-
const l = n[1].split(this.formatSeparator).map((
|
|
6905
|
+
const l = n[1].split(this.formatSeparator).map((c) => c.trim());
|
|
6906
6906
|
n[1] = l.shift(), C = l, d = !0;
|
|
6907
6907
|
}
|
|
6908
|
-
if (o = t(a.call(this, n[1].trim(),
|
|
6909
|
-
M(o) || (o = q1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), d && (o = C.reduce((l,
|
|
6908
|
+
if (o = t(a.call(this, n[1].trim(), h), h), o && n[0] === e && !M(o)) return o;
|
|
6909
|
+
M(o) || (o = q1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), d && (o = C.reduce((l, c) => this.format(l, c, s.lng, {
|
|
6910
6910
|
...s,
|
|
6911
6911
|
interpolationkey: n[1].trim()
|
|
6912
6912
|
}), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
|
|
@@ -6921,9 +6921,9 @@ const v7 = (i) => {
|
|
|
6921
6921
|
const s = i.split("(");
|
|
6922
6922
|
e = s[0].toLowerCase().trim();
|
|
6923
6923
|
const n = s[1].substring(0, s[1].length - 1);
|
|
6924
|
-
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((
|
|
6925
|
-
if (
|
|
6926
|
-
const [a, ...C] =
|
|
6924
|
+
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((h) => {
|
|
6925
|
+
if (h) {
|
|
6926
|
+
const [a, ...C] = h.split(":"), d = C.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
|
|
6927
6927
|
t[l] || (t[l] = d), d === "false" && (t[l] = !1), d === "true" && (t[l] = !0), isNaN(d) || (t[l] = parseInt(d, 10));
|
|
6928
6928
|
}
|
|
6929
6929
|
});
|
|
@@ -6932,7 +6932,7 @@ const v7 = (i) => {
|
|
|
6932
6932
|
formatName: e,
|
|
6933
6933
|
formatOptions: t
|
|
6934
6934
|
};
|
|
6935
|
-
},
|
|
6935
|
+
}, h1 = (i) => {
|
|
6936
6936
|
const e = {};
|
|
6937
6937
|
return (t, s, n) => {
|
|
6938
6938
|
let o = n;
|
|
@@ -6940,41 +6940,41 @@ const v7 = (i) => {
|
|
|
6940
6940
|
...o,
|
|
6941
6941
|
[n.interpolationkey]: void 0
|
|
6942
6942
|
});
|
|
6943
|
-
const
|
|
6944
|
-
let a = e[
|
|
6945
|
-
return a || (a = i(b1(s), n), e[
|
|
6943
|
+
const h = s + JSON.stringify(o);
|
|
6944
|
+
let a = e[h];
|
|
6945
|
+
return a || (a = i(b1(s), n), e[h] = a), a(t);
|
|
6946
6946
|
};
|
|
6947
6947
|
};
|
|
6948
6948
|
class N7 {
|
|
6949
6949
|
constructor() {
|
|
6950
6950
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6951
6951
|
this.logger = X.create("formatter"), this.options = e, this.formats = {
|
|
6952
|
-
number:
|
|
6952
|
+
number: h1((t, s) => {
|
|
6953
6953
|
const n = new Intl.NumberFormat(t, {
|
|
6954
6954
|
...s
|
|
6955
6955
|
});
|
|
6956
6956
|
return (o) => n.format(o);
|
|
6957
6957
|
}),
|
|
6958
|
-
currency:
|
|
6958
|
+
currency: h1((t, s) => {
|
|
6959
6959
|
const n = new Intl.NumberFormat(t, {
|
|
6960
6960
|
...s,
|
|
6961
6961
|
style: "currency"
|
|
6962
6962
|
});
|
|
6963
6963
|
return (o) => n.format(o);
|
|
6964
6964
|
}),
|
|
6965
|
-
datetime:
|
|
6965
|
+
datetime: h1((t, s) => {
|
|
6966
6966
|
const n = new Intl.DateTimeFormat(t, {
|
|
6967
6967
|
...s
|
|
6968
6968
|
});
|
|
6969
6969
|
return (o) => n.format(o);
|
|
6970
6970
|
}),
|
|
6971
|
-
relativetime:
|
|
6971
|
+
relativetime: h1((t, s) => {
|
|
6972
6972
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
6973
6973
|
...s
|
|
6974
6974
|
});
|
|
6975
6975
|
return (o) => n.format(o, s.range || "day");
|
|
6976
6976
|
}),
|
|
6977
|
-
list:
|
|
6977
|
+
list: h1((t, s) => {
|
|
6978
6978
|
const n = new Intl.ListFormat(t, {
|
|
6979
6979
|
...s
|
|
6980
6980
|
});
|
|
@@ -6992,7 +6992,7 @@ class N7 {
|
|
|
6992
6992
|
this.formats[e.toLowerCase().trim()] = t;
|
|
6993
6993
|
}
|
|
6994
6994
|
addCached(e, t) {
|
|
6995
|
-
this.formats[e.toLowerCase().trim()] =
|
|
6995
|
+
this.formats[e.toLowerCase().trim()] = h1(t);
|
|
6996
6996
|
}
|
|
6997
6997
|
format(e, t, s) {
|
|
6998
6998
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -7007,10 +7007,10 @@ class N7 {
|
|
|
7007
7007
|
formatOptions: l
|
|
7008
7008
|
} = v7(C);
|
|
7009
7009
|
if (this.formats[d]) {
|
|
7010
|
-
let
|
|
7010
|
+
let c = a;
|
|
7011
7011
|
try {
|
|
7012
7012
|
const g = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = g.locale || g.lng || n.locale || n.lng || s;
|
|
7013
|
-
|
|
7013
|
+
c = this.formats[d](a, p, {
|
|
7014
7014
|
...l,
|
|
7015
7015
|
...n,
|
|
7016
7016
|
...g
|
|
@@ -7018,7 +7018,7 @@ class N7 {
|
|
|
7018
7018
|
} catch (g) {
|
|
7019
7019
|
this.logger.warn(g);
|
|
7020
7020
|
}
|
|
7021
|
-
return
|
|
7021
|
+
return c;
|
|
7022
7022
|
} else
|
|
7023
7023
|
this.logger.warn(`there was no format function for ${d}`);
|
|
7024
7024
|
return a;
|
|
@@ -7034,45 +7034,45 @@ class x7 extends E1 {
|
|
|
7034
7034
|
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = X.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);
|
|
7035
7035
|
}
|
|
7036
7036
|
queueLoad(e, t, s, n) {
|
|
7037
|
-
const o = {},
|
|
7037
|
+
const o = {}, h = {}, a = {}, C = {};
|
|
7038
7038
|
return e.forEach((d) => {
|
|
7039
7039
|
let l = !0;
|
|
7040
|
-
t.forEach((
|
|
7041
|
-
const g = `${d}|${
|
|
7042
|
-
!s.reload && this.store.hasResourceBundle(d,
|
|
7040
|
+
t.forEach((c) => {
|
|
7041
|
+
const g = `${d}|${c}`;
|
|
7042
|
+
!s.reload && this.store.hasResourceBundle(d, c) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? h[g] === void 0 && (h[g] = !0) : (this.state[g] = 1, l = !1, h[g] === void 0 && (h[g] = !0), o[g] === void 0 && (o[g] = !0), C[c] === void 0 && (C[c] = !0)));
|
|
7043
7043
|
}), l || (a[d] = !0);
|
|
7044
|
-
}), (Object.keys(o).length || Object.keys(
|
|
7045
|
-
pending:
|
|
7046
|
-
pendingCount: Object.keys(
|
|
7044
|
+
}), (Object.keys(o).length || Object.keys(h).length) && this.queue.push({
|
|
7045
|
+
pending: h,
|
|
7046
|
+
pendingCount: Object.keys(h).length,
|
|
7047
7047
|
loaded: {},
|
|
7048
7048
|
errors: [],
|
|
7049
7049
|
callback: n
|
|
7050
7050
|
}), {
|
|
7051
7051
|
toLoad: Object.keys(o),
|
|
7052
|
-
pending: Object.keys(
|
|
7052
|
+
pending: Object.keys(h),
|
|
7053
7053
|
toLoadLanguages: Object.keys(a),
|
|
7054
7054
|
toLoadNamespaces: Object.keys(C)
|
|
7055
7055
|
};
|
|
7056
7056
|
}
|
|
7057
7057
|
loaded(e, t, s) {
|
|
7058
|
-
const n = e.split("|"), o = n[0],
|
|
7059
|
-
t && this.emit("failedLoading", o,
|
|
7058
|
+
const n = e.split("|"), o = n[0], h = n[1];
|
|
7059
|
+
t && this.emit("failedLoading", o, h, t), !t && s && this.store.addResourceBundle(o, h, s, void 0, void 0, {
|
|
7060
7060
|
skipCopy: !0
|
|
7061
7061
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
7062
7062
|
const a = {};
|
|
7063
7063
|
this.queue.forEach((C) => {
|
|
7064
|
-
r7(C.loaded, [o],
|
|
7064
|
+
r7(C.loaded, [o], h), R7(C, e), t && C.errors.push(t), C.pendingCount === 0 && !C.done && (Object.keys(C.loaded).forEach((d) => {
|
|
7065
7065
|
a[d] || (a[d] = {});
|
|
7066
7066
|
const l = C.loaded[d];
|
|
7067
|
-
l.length && l.forEach((
|
|
7068
|
-
a[d][
|
|
7067
|
+
l.length && l.forEach((c) => {
|
|
7068
|
+
a[d][c] === void 0 && (a[d][c] = !0);
|
|
7069
7069
|
});
|
|
7070
7070
|
}), C.done = !0, C.errors.length ? C.callback(C.errors) : C.callback());
|
|
7071
7071
|
}), this.emit("loaded", a), this.queue = this.queue.filter((C) => !C.done);
|
|
7072
7072
|
}
|
|
7073
7073
|
read(e, t, s) {
|
|
7074
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout,
|
|
7075
|
-
if (!e.length) return
|
|
7074
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, h = arguments.length > 5 ? arguments[5] : void 0;
|
|
7075
|
+
if (!e.length) return h(null, {});
|
|
7076
7076
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
7077
7077
|
this.waitingReads.push({
|
|
7078
7078
|
lng: e,
|
|
@@ -7080,23 +7080,23 @@ class x7 extends E1 {
|
|
|
7080
7080
|
fcName: s,
|
|
7081
7081
|
tried: n,
|
|
7082
7082
|
wait: o,
|
|
7083
|
-
callback:
|
|
7083
|
+
callback: h
|
|
7084
7084
|
});
|
|
7085
7085
|
return;
|
|
7086
7086
|
}
|
|
7087
7087
|
this.readingCalls++;
|
|
7088
7088
|
const a = (d, l) => {
|
|
7089
7089
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
7090
|
-
const
|
|
7091
|
-
this.read(
|
|
7090
|
+
const c = this.waitingReads.shift();
|
|
7091
|
+
this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
|
|
7092
7092
|
}
|
|
7093
7093
|
if (d && l && n < this.maxRetries) {
|
|
7094
7094
|
setTimeout(() => {
|
|
7095
|
-
this.read.call(this, e, t, s, n + 1, o * 2,
|
|
7095
|
+
this.read.call(this, e, t, s, n + 1, o * 2, h);
|
|
7096
7096
|
}, o);
|
|
7097
7097
|
return;
|
|
7098
7098
|
}
|
|
7099
|
-
|
|
7099
|
+
h(d, l);
|
|
7100
7100
|
}, C = this.backend[s].bind(this.backend);
|
|
7101
7101
|
if (C.length === 2) {
|
|
7102
7102
|
try {
|
|
@@ -7117,8 +7117,8 @@ class x7 extends E1 {
|
|
|
7117
7117
|
const o = this.queueLoad(e, t, s, n);
|
|
7118
7118
|
if (!o.toLoad.length)
|
|
7119
7119
|
return o.pending.length || n(), null;
|
|
7120
|
-
o.toLoad.forEach((
|
|
7121
|
-
this.loadOne(
|
|
7120
|
+
o.toLoad.forEach((h) => {
|
|
7121
|
+
this.loadOne(h);
|
|
7122
7122
|
});
|
|
7123
7123
|
}
|
|
7124
7124
|
load(e, t, s) {
|
|
@@ -7132,12 +7132,12 @@ class x7 extends E1 {
|
|
|
7132
7132
|
loadOne(e) {
|
|
7133
7133
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
7134
7134
|
const s = e.split("|"), n = s[0], o = s[1];
|
|
7135
|
-
this.read(n, o, "read", void 0, void 0, (
|
|
7136
|
-
|
|
7135
|
+
this.read(n, o, "read", void 0, void 0, (h, a) => {
|
|
7136
|
+
h && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, h), !h && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, h, a);
|
|
7137
7137
|
});
|
|
7138
7138
|
}
|
|
7139
7139
|
saveMissing(e, t, s, n, o) {
|
|
7140
|
-
let
|
|
7140
|
+
let h = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
7141
7141
|
};
|
|
7142
7142
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
7143
7143
|
this.logger.warn(`did not save key "${s}" as the namespace "${t}" 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!!!");
|
|
@@ -7146,13 +7146,13 @@ class x7 extends E1 {
|
|
|
7146
7146
|
if (!(s == null || s === "")) {
|
|
7147
7147
|
if (this.backend && this.backend.create) {
|
|
7148
7148
|
const C = {
|
|
7149
|
-
...
|
|
7149
|
+
...h,
|
|
7150
7150
|
isUpdate: o
|
|
7151
7151
|
}, d = this.backend.create.bind(this.backend);
|
|
7152
7152
|
if (d.length < 6)
|
|
7153
7153
|
try {
|
|
7154
7154
|
let l;
|
|
7155
|
-
d.length === 5 ? l = d(e, t, s, n, C) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((
|
|
7155
|
+
d.length === 5 ? l = d(e, t, s, n, C) : l = d(e, t, s, n), l && typeof l.then == "function" ? l.then((c) => a(null, c)).catch(a) : a(null, l);
|
|
7156
7156
|
} catch (l) {
|
|
7157
7157
|
a(l);
|
|
7158
7158
|
}
|
|
@@ -7256,10 +7256,10 @@ class L1 extends E1 {
|
|
|
7256
7256
|
this.modules.logger ? X.init(o(this.modules.logger), this.options) : X.init(null, this.options);
|
|
7257
7257
|
let l;
|
|
7258
7258
|
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = N7);
|
|
7259
|
-
const
|
|
7259
|
+
const c = new s2(this.options);
|
|
7260
7260
|
this.store = new t2(this.options.resources, this.options);
|
|
7261
7261
|
const g = this.services;
|
|
7262
|
-
g.logger = X, g.resourceStore = this.store, g.languageUtils =
|
|
7262
|
+
g.logger = X, g.resourceStore = this.store, g.languageUtils = c, g.pluralResolver = new L7(c, {
|
|
7263
7263
|
prepend: this.options.pluralSeparator,
|
|
7264
7264
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7265
7265
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
@@ -7291,8 +7291,8 @@ class L1 extends E1 {
|
|
|
7291
7291
|
};
|
|
7292
7292
|
});
|
|
7293
7293
|
const C = p1(), d = () => {
|
|
7294
|
-
const l = (
|
|
7295
|
-
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), C.resolve(g), s(
|
|
7294
|
+
const l = (c, g) => {
|
|
7295
|
+
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), C.resolve(g), s(c, g);
|
|
7296
7296
|
};
|
|
7297
7297
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
|
7298
7298
|
this.changeLanguage(this.options.lng, l);
|
|
@@ -7304,13 +7304,13 @@ class L1 extends E1 {
|
|
|
7304
7304
|
const n = M(e) ? e : this.language;
|
|
7305
7305
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7306
7306
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
7307
|
-
const o = [],
|
|
7307
|
+
const o = [], h = (a) => {
|
|
7308
7308
|
if (!a || a === "cimode") return;
|
|
7309
7309
|
this.services.languageUtils.toResolveHierarchy(a).forEach((d) => {
|
|
7310
7310
|
d !== "cimode" && o.indexOf(d) < 0 && o.push(d);
|
|
7311
7311
|
});
|
|
7312
7312
|
};
|
|
7313
|
-
n ?
|
|
7313
|
+
n ? h(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((C) => h(C)), this.options.preload && this.options.preload.forEach((a) => h(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
|
|
7314
7314
|
!a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
|
|
7315
7315
|
});
|
|
7316
7316
|
} else
|
|
@@ -7344,7 +7344,7 @@ class L1 extends E1 {
|
|
|
7344
7344
|
this.emit("languageChanging", e);
|
|
7345
7345
|
const o = (C) => {
|
|
7346
7346
|
this.language = C, this.languages = this.services.languageUtils.toResolveHierarchy(C), this.resolvedLanguage = void 0, this.setResolvedLanguage(C);
|
|
7347
|
-
},
|
|
7347
|
+
}, h = (C, d) => {
|
|
7348
7348
|
d ? (o(d), this.translator.changeLanguage(d), this.isLanguageChangingTo = void 0, this.emit("languageChanged", d), this.logger.log("languageChanged", d)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
|
7349
7349
|
return s.t(...arguments);
|
|
7350
7350
|
}), t && t(C, function() {
|
|
@@ -7354,19 +7354,19 @@ class L1 extends E1 {
|
|
|
7354
7354
|
!e && !C && this.services.languageDetector && (C = []);
|
|
7355
7355
|
const d = M(C) ? C : this.services.languageUtils.getBestMatchFromCodes(C);
|
|
7356
7356
|
d && (this.language || o(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
|
|
7357
|
-
|
|
7357
|
+
h(l, d);
|
|
7358
7358
|
});
|
|
7359
7359
|
};
|
|
7360
7360
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
|
|
7361
7361
|
}
|
|
7362
7362
|
getFixedT(e, t, s) {
|
|
7363
7363
|
var n = this;
|
|
7364
|
-
const o = function(
|
|
7364
|
+
const o = function(h, a) {
|
|
7365
7365
|
let C;
|
|
7366
7366
|
if (typeof a != "object") {
|
|
7367
|
-
for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0),
|
|
7368
|
-
l[
|
|
7369
|
-
C = n.options.overloadTranslationOptionHandler([
|
|
7367
|
+
for (var d = arguments.length, l = new Array(d > 2 ? d - 2 : 0), c = 2; c < d; c++)
|
|
7368
|
+
l[c - 2] = arguments[c];
|
|
7369
|
+
C = n.options.overloadTranslationOptionHandler([h, a].concat(l));
|
|
7370
7370
|
} else
|
|
7371
7371
|
C = {
|
|
7372
7372
|
...a
|
|
@@ -7374,7 +7374,7 @@ class L1 extends E1 {
|
|
|
7374
7374
|
C.lng = C.lng || o.lng, C.lngs = C.lngs || o.lngs, C.ns = C.ns || o.ns, C.keyPrefix !== "" && (C.keyPrefix = C.keyPrefix || s || o.keyPrefix);
|
|
7375
7375
|
const g = n.options.keySeparator || ".";
|
|
7376
7376
|
let p;
|
|
7377
|
-
return C.keyPrefix && Array.isArray(
|
|
7377
|
+
return C.keyPrefix && Array.isArray(h) ? p = h.map((w) => `${C.keyPrefix}${g}${w}`) : p = C.keyPrefix ? `${C.keyPrefix}${g}${h}` : h, n.t(p, C);
|
|
7378
7378
|
};
|
|
7379
7379
|
return M(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
|
|
7380
7380
|
}
|
|
@@ -7395,15 +7395,15 @@ class L1 extends E1 {
|
|
|
7395
7395
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7396
7396
|
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
|
|
7397
7397
|
if (s.toLowerCase() === "cimode") return !0;
|
|
7398
|
-
const
|
|
7398
|
+
const h = (a, C) => {
|
|
7399
7399
|
const d = this.services.backendConnector.state[`${a}|${C}`];
|
|
7400
7400
|
return d === -1 || d === 0 || d === 2;
|
|
7401
7401
|
};
|
|
7402
7402
|
if (t.precheck) {
|
|
7403
|
-
const a = t.precheck(this,
|
|
7403
|
+
const a = t.precheck(this, h);
|
|
7404
7404
|
if (a !== void 0) return a;
|
|
7405
7405
|
}
|
|
7406
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages ||
|
|
7406
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || h(s, e) && (!n || h(o, e)));
|
|
7407
7407
|
}
|
|
7408
7408
|
loadNamespaces(e, t) {
|
|
7409
7409
|
const s = p1();
|
|
@@ -7416,9 +7416,9 @@ class L1 extends E1 {
|
|
|
7416
7416
|
loadLanguages(e, t) {
|
|
7417
7417
|
const s = p1();
|
|
7418
7418
|
M(e) && (e = [e]);
|
|
7419
|
-
const n = this.options.preload || [], o = e.filter((
|
|
7420
|
-
return o.length ? (this.options.preload = n.concat(o), this.loadResources((
|
|
7421
|
-
s.resolve(), t && t(
|
|
7419
|
+
const n = this.options.preload || [], o = e.filter((h) => n.indexOf(h) < 0 && this.services.languageUtils.isSupportedCode(h));
|
|
7420
|
+
return o.length ? (this.options.preload = n.concat(o), this.loadResources((h) => {
|
|
7421
|
+
s.resolve(), t && t(h);
|
|
7422
7422
|
}), s) : (t && t(), Promise.resolve());
|
|
7423
7423
|
}
|
|
7424
7424
|
dir(e) {
|
|
@@ -7482,7 +7482,7 @@ W.loadLanguages;
|
|
|
7482
7482
|
const M7 = "Archived", b7 = "Deleted", y7 = {
|
|
7483
7483
|
archived: M7,
|
|
7484
7484
|
deleted: b7
|
|
7485
|
-
}, H7 = "Заархивирован", E7 = "Удалён",
|
|
7485
|
+
}, H7 = "Заархивирован", E7 = "Удалён", A7 = {
|
|
7486
7486
|
archived: H7,
|
|
7487
7487
|
deleted: E7
|
|
7488
7488
|
};
|
|
@@ -7494,7 +7494,7 @@ W.use(qt).init({
|
|
|
7494
7494
|
common: y7
|
|
7495
7495
|
},
|
|
7496
7496
|
ru: {
|
|
7497
|
-
common:
|
|
7497
|
+
common: A7
|
|
7498
7498
|
}
|
|
7499
7499
|
}
|
|
7500
7500
|
});
|
|
@@ -7506,50 +7506,50 @@ const G7 = d1(
|
|
|
7506
7506
|
disabled: s,
|
|
7507
7507
|
value: n,
|
|
7508
7508
|
onChange: o,
|
|
7509
|
-
onError:
|
|
7509
|
+
onError: h,
|
|
7510
7510
|
allowEmpty: a = !1,
|
|
7511
7511
|
showAvatar: C = !1,
|
|
7512
7512
|
clearable: d,
|
|
7513
7513
|
required: l,
|
|
7514
|
-
error:
|
|
7514
|
+
error: c
|
|
7515
7515
|
}, g) => {
|
|
7516
|
-
const { axiosPeople: p, locale: w } = r1(y2), { t: v } = i7("common", { lng: w }), [m, b] = O([]), [y,
|
|
7516
|
+
const { axiosPeople: p, locale: w } = r1(y2), { t: v } = i7("common", { lng: w }), [m, b] = O([]), [y, I] = O(!0), f = J(m), x = J(null);
|
|
7517
7517
|
if (k1(g, () => x.current), !p)
|
|
7518
7518
|
throw new Error(
|
|
7519
7519
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
7520
7520
|
Please provide it via SNMTUiContext.`
|
|
7521
7521
|
);
|
|
7522
|
-
const _ =
|
|
7522
|
+
const _ = P(
|
|
7523
7523
|
(E) => {
|
|
7524
7524
|
let T = "";
|
|
7525
7525
|
return E.deletedAt && (T += `[${v("deleted")}] `), E.status === _1.ARCHIVED && (T += `[${v("archived")}] `), `${T}${E.firstName} ${E.lastName}`;
|
|
7526
7526
|
},
|
|
7527
7527
|
[v]
|
|
7528
|
-
), R =
|
|
7528
|
+
), R = P(
|
|
7529
7529
|
async ({
|
|
7530
7530
|
offset: E,
|
|
7531
7531
|
limit: T,
|
|
7532
|
-
search:
|
|
7532
|
+
search: A
|
|
7533
7533
|
}) => {
|
|
7534
7534
|
var Z, D, B;
|
|
7535
7535
|
try {
|
|
7536
7536
|
const U = await p.post("v1/users/search", {
|
|
7537
7537
|
offset: E,
|
|
7538
7538
|
limit: T,
|
|
7539
|
-
search:
|
|
7539
|
+
search: A,
|
|
7540
7540
|
...i,
|
|
7541
7541
|
includeCount: !0
|
|
7542
|
-
}), { data:
|
|
7542
|
+
}), { data: V, metadata: $ } = U.data;
|
|
7543
7543
|
return {
|
|
7544
|
-
options:
|
|
7545
|
-
value:
|
|
7546
|
-
label: _(
|
|
7547
|
-
image: C ?
|
|
7544
|
+
options: V.map((Y) => ({
|
|
7545
|
+
value: Y.id,
|
|
7546
|
+
label: _(Y),
|
|
7547
|
+
image: C ? Y.avatarUrl : void 0
|
|
7548
7548
|
})),
|
|
7549
|
-
count:
|
|
7549
|
+
count: $.count
|
|
7550
7550
|
};
|
|
7551
7551
|
} catch (U) {
|
|
7552
|
-
return
|
|
7552
|
+
return h && h({
|
|
7553
7553
|
status: ((Z = U.response) == null ? void 0 : Z.status) ?? 500,
|
|
7554
7554
|
message: ((B = (D = U.response) == null ? void 0 : D.data) == null ? void 0 : B.message) ?? "Error while fetching options"
|
|
7555
7555
|
}), {
|
|
@@ -7558,13 +7558,13 @@ const G7 = d1(
|
|
|
7558
7558
|
};
|
|
7559
7559
|
}
|
|
7560
7560
|
},
|
|
7561
|
-
[p, i, _, C,
|
|
7562
|
-
), j =
|
|
7561
|
+
[p, i, _, C, h]
|
|
7562
|
+
), j = P(
|
|
7563
7563
|
async (E) => {
|
|
7564
|
-
var T,
|
|
7564
|
+
var T, A, Z;
|
|
7565
7565
|
try {
|
|
7566
7566
|
const D = E.filter(
|
|
7567
|
-
(
|
|
7567
|
+
(V) => !f.current.some(($) => $.value === V)
|
|
7568
7568
|
);
|
|
7569
7569
|
let B = [];
|
|
7570
7570
|
D.length && (B = (await p.post("v1/users/search", {
|
|
@@ -7573,20 +7573,20 @@ const G7 = d1(
|
|
|
7573
7573
|
status: [_1.ACTIVE, _1.ARCHIVED]
|
|
7574
7574
|
}
|
|
7575
7575
|
})).data.data);
|
|
7576
|
-
const U = B.map((
|
|
7577
|
-
value:
|
|
7578
|
-
label: _(
|
|
7579
|
-
image: C ?
|
|
7576
|
+
const U = B.map((V) => ({
|
|
7577
|
+
value: V.id,
|
|
7578
|
+
label: _(V),
|
|
7579
|
+
image: C ? V.avatarUrl : void 0
|
|
7580
7580
|
}));
|
|
7581
7581
|
return [...f.current, ...U];
|
|
7582
7582
|
} catch (D) {
|
|
7583
|
-
return
|
|
7583
|
+
return h && h({
|
|
7584
7584
|
status: ((T = D.response) == null ? void 0 : T.status) ?? 500,
|
|
7585
|
-
message: ((Z = (
|
|
7585
|
+
message: ((Z = (A = D.response) == null ? void 0 : A.data) == null ? void 0 : Z.message) ?? "Error while fetching selected items"
|
|
7586
7586
|
}), [];
|
|
7587
7587
|
}
|
|
7588
7588
|
},
|
|
7589
|
-
[p, _,
|
|
7589
|
+
[p, _, h, C]
|
|
7590
7590
|
);
|
|
7591
7591
|
G(() => {
|
|
7592
7592
|
f.current = m;
|
|
@@ -7595,24 +7595,24 @@ const G7 = d1(
|
|
|
7595
7595
|
(E = x.current) == null || E.refetchOptions();
|
|
7596
7596
|
}, [i]), G(() => {
|
|
7597
7597
|
if (!n) {
|
|
7598
|
-
|
|
7598
|
+
I(!1);
|
|
7599
7599
|
return;
|
|
7600
7600
|
}
|
|
7601
7601
|
(async () => {
|
|
7602
|
-
const T = Array.isArray(n) ? n : [n],
|
|
7603
|
-
b(
|
|
7602
|
+
const T = Array.isArray(n) ? n : [n], A = await j(T);
|
|
7603
|
+
b(A), I(!1);
|
|
7604
7604
|
})();
|
|
7605
7605
|
}, [j, n]);
|
|
7606
|
-
const q =
|
|
7606
|
+
const q = P(
|
|
7607
7607
|
async ({
|
|
7608
7608
|
limit: E,
|
|
7609
7609
|
offset: T,
|
|
7610
|
-
search:
|
|
7610
|
+
search: A
|
|
7611
7611
|
}) => {
|
|
7612
7612
|
const { count: Z, ...D } = await R({
|
|
7613
7613
|
offset: T,
|
|
7614
7614
|
limit: E,
|
|
7615
|
-
search:
|
|
7615
|
+
search: A
|
|
7616
7616
|
});
|
|
7617
7617
|
let B = D.options;
|
|
7618
7618
|
return a && T === 0 && (B = [{ value: null, label: "None" }, ...B]), {
|
|
@@ -7631,7 +7631,7 @@ const G7 = d1(
|
|
|
7631
7631
|
disabled: s,
|
|
7632
7632
|
clearable: d,
|
|
7633
7633
|
required: l,
|
|
7634
|
-
error:
|
|
7634
|
+
error: c
|
|
7635
7635
|
};
|
|
7636
7636
|
return e ? /* @__PURE__ */ r(
|
|
7637
7637
|
W1,
|