@snmt-react-ui/country-select 2.8.18 → 2.8.20
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/country-select.js +692 -704
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
|
@@ -2,10 +2,10 @@ var C2 = Object.defineProperty;
|
|
|
2
2
|
var g2 = (i, e, t) => e in i ? C2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var I1 = (i, e, t) => g2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
|
-
import { jsx as r, Fragment as U, jsxs as
|
|
5
|
+
import { jsx as r, Fragment as U, jsxs as g } from "react/jsx-runtime";
|
|
6
6
|
import { SNMTUiContext as u2 } from "@snmt-react-ui/core";
|
|
7
7
|
import { Select as p2, Tag as f2, Flex as m2, Checkbox as w2, Avatar as L2, Typography as y1, Popover as k2 } from "antd";
|
|
8
|
-
import { forwardRef as h1, useState as A, useRef as W, useEffect as
|
|
8
|
+
import { forwardRef as h1, useState as A, useRef as W, useEffect as O, useCallback as K, useContext as Q, createContext as t1, useImperativeHandle as H1 } from "react";
|
|
9
9
|
var v2 = Object.defineProperty, N2 = (i, e, t) => e in i ? v2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, R2 = (i, e, t) => N2(i, e + "", t), x2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function _2() {
|
|
11
11
|
if (console && console.warn) {
|
|
@@ -41,9 +41,9 @@ const q1 = (i, e) => () => {
|
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
43
43
|
if (n.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (
|
|
45
|
-
const
|
|
46
|
-
return
|
|
44
|
+
const c = (d, l) => {
|
|
45
|
+
const a = e.services.backendConnector.state[`${d}|${l}`];
|
|
46
|
+
return a === -1 || a === 2;
|
|
47
47
|
};
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(o, i)));
|
|
49
49
|
}, b2 = function(i, e) {
|
|
@@ -101,7 +101,7 @@ class D2 {
|
|
|
101
101
|
}
|
|
102
102
|
const T2 = (i, e) => {
|
|
103
103
|
const t = W();
|
|
104
|
-
return
|
|
104
|
+
return O(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
107
|
}, X1 = (i, e, t, n) => i.getFixedT(e, t, n), K2 = (i, e, t, n) => K(X1(i, e, t, n), [i, e, t, n]), B2 = function(i) {
|
|
@@ -123,38 +123,38 @@ const T2 = (i, e) => {
|
|
|
123
123
|
...o.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
127
|
-
keyPrefix:
|
|
126
|
+
useSuspense: d,
|
|
127
|
+
keyPrefix: l
|
|
128
128
|
} = c;
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
const
|
|
132
|
-
let f =
|
|
129
|
+
let a = i;
|
|
130
|
+
a = z(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
|
|
131
|
+
const h = (o.isInitialized || o.initializedStoreOnce) && a.every((m) => b2(m, o, c)), u = K2(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), C = () => u, p = () => X1(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), [k, v] = A(C);
|
|
132
|
+
let f = a.join();
|
|
133
133
|
e.lng && (f = `${e.lng}${f}`);
|
|
134
134
|
const y = T2(f), b = W(!0);
|
|
135
|
-
|
|
135
|
+
O(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: m,
|
|
138
138
|
bindI18nStore: M
|
|
139
139
|
} = c;
|
|
140
|
-
b.current = !0, !
|
|
140
|
+
b.current = !0, !h && !d && (e.lng ? S1(o, e.lng, a, () => {
|
|
141
141
|
b.current && v(p);
|
|
142
|
-
}) : O1(o,
|
|
142
|
+
}) : O1(o, a, () => {
|
|
143
143
|
b.current && v(p);
|
|
144
|
-
})),
|
|
144
|
+
})), h && y && y !== f && b.current && v(p);
|
|
145
145
|
const R = () => {
|
|
146
146
|
b.current && v(p);
|
|
147
147
|
};
|
|
148
148
|
return m && o && o.on(m, R), M && o && o.store.on(M, R), () => {
|
|
149
149
|
b.current = !1, m && o && m.split(" ").forEach((x) => o.off(x, R)), M && o && M.split(" ").forEach((x) => o.store.off(x, R));
|
|
150
150
|
};
|
|
151
|
-
}, [o, f]),
|
|
152
|
-
b.current &&
|
|
153
|
-
}, [o,
|
|
154
|
-
const E = [k, o,
|
|
155
|
-
if (E.t = k, E.i18n = o, E.ready =
|
|
151
|
+
}, [o, f]), O(() => {
|
|
152
|
+
b.current && h && v(C);
|
|
153
|
+
}, [o, l, h]);
|
|
154
|
+
const E = [k, o, h];
|
|
155
|
+
if (E.t = k, E.i18n = o, E.ready = h, h || !h && !d) return E;
|
|
156
156
|
throw new Promise((m) => {
|
|
157
|
-
e.lng ? S1(o, e.lng,
|
|
157
|
+
e.lng ? S1(o, e.lng, a, () => m()) : O1(o, a, () => m());
|
|
158
158
|
});
|
|
159
159
|
}, r1 = ({
|
|
160
160
|
children: i,
|
|
@@ -164,7 +164,7 @@ const T2 = (i, e) => {
|
|
|
164
164
|
justifyContent: s = "normal",
|
|
165
165
|
flex: o,
|
|
166
166
|
gap: c,
|
|
167
|
-
padding:
|
|
167
|
+
padding: d
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
169
|
m2,
|
|
170
170
|
{
|
|
@@ -175,7 +175,7 @@ const T2 = (i, e) => {
|
|
|
175
175
|
justify: s,
|
|
176
176
|
flex: o,
|
|
177
177
|
gap: c,
|
|
178
|
-
style: { padding:
|
|
178
|
+
style: { padding: d },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
181
|
), Y2 = ({ shape: i = "circle", size: e = 32, children: t, ...n }) => {
|
|
@@ -213,39 +213,39 @@ const { Title: P2, Text: j2 } = y1, $2 = {
|
|
|
213
213
|
collapsed: o,
|
|
214
214
|
whiteSpace: c = "normal",
|
|
215
215
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
216
|
-
trim:
|
|
217
|
-
},
|
|
218
|
-
const
|
|
219
|
-
H1(
|
|
220
|
-
const [
|
|
221
|
-
|
|
216
|
+
trim: d = !1
|
|
217
|
+
}, l) => {
|
|
218
|
+
const a = W(null);
|
|
219
|
+
H1(l, () => a.current);
|
|
220
|
+
const [h, u] = A(!1);
|
|
221
|
+
O(() => {
|
|
222
222
|
var v;
|
|
223
|
-
if (!
|
|
223
|
+
if (!d) return;
|
|
224
224
|
const f = () => {
|
|
225
|
-
|
|
225
|
+
a.current && u(a.current.scrollWidth > a.current.clientWidth);
|
|
226
226
|
};
|
|
227
227
|
f();
|
|
228
228
|
const y = new ResizeObserver(f);
|
|
229
|
-
return
|
|
229
|
+
return a.current && y.observe(a.current), (v = a.current) != null && v.parentElement && y.observe(a.current.parentElement), () => {
|
|
230
230
|
y.disconnect();
|
|
231
231
|
};
|
|
232
|
-
}, [
|
|
233
|
-
const
|
|
232
|
+
}, [d]);
|
|
233
|
+
const C = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
234
234
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
235
235
|
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
236
236
|
const k = {
|
|
237
237
|
className: p,
|
|
238
|
-
style: { color: t, whiteSpace:
|
|
238
|
+
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
239
239
|
onClick: s,
|
|
240
|
-
ref:
|
|
241
|
-
ellipsis:
|
|
240
|
+
ref: a,
|
|
241
|
+
ellipsis: d && h ? {
|
|
242
242
|
tooltip: {
|
|
243
243
|
title: n,
|
|
244
244
|
overlayClassName: "snmt-tooltip"
|
|
245
245
|
}
|
|
246
246
|
} : void 0
|
|
247
247
|
};
|
|
248
|
-
return
|
|
248
|
+
return C ? /* @__PURE__ */ r(P2, { level: $2[e], ...k, children: n }) : /* @__PURE__ */ r(j2, { ...k, children: n });
|
|
249
249
|
}
|
|
250
250
|
), W2 = ({
|
|
251
251
|
checked: i = !0,
|
|
@@ -255,19 +255,19 @@ const { Title: P2, Text: j2 } = y1, $2 = {
|
|
|
255
255
|
disabled: s = !1,
|
|
256
256
|
disableUncheck: o = !1
|
|
257
257
|
}) => {
|
|
258
|
-
const [c,
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
const [c, d] = A(i), [l, a] = A(e);
|
|
259
|
+
O(() => {
|
|
260
|
+
d(i), a(e);
|
|
261
261
|
}, [i, e]);
|
|
262
|
-
const { theme:
|
|
262
|
+
const { theme: h } = Q(E1);
|
|
263
263
|
return /* @__PURE__ */ r(
|
|
264
264
|
w2,
|
|
265
265
|
{
|
|
266
|
-
className: `snmt-checkbox snmt-checkbox-${
|
|
266
|
+
className: `snmt-checkbox snmt-checkbox-${h}`,
|
|
267
267
|
checked: c,
|
|
268
|
-
indeterminate:
|
|
269
|
-
onChange: (
|
|
270
|
-
o && c || (
|
|
268
|
+
indeterminate: l,
|
|
269
|
+
onChange: (u) => {
|
|
270
|
+
o && c || (a(!1), d(u.target.checked), n && n(u));
|
|
271
271
|
},
|
|
272
272
|
disabled: s,
|
|
273
273
|
children: t && /* @__PURE__ */ r(
|
|
@@ -320,7 +320,7 @@ const U2 = ({
|
|
|
320
320
|
color: t = w.GREY_DARK_5,
|
|
321
321
|
className: n,
|
|
322
322
|
onClick: s
|
|
323
|
-
}) => /* @__PURE__ */
|
|
323
|
+
}) => /* @__PURE__ */ g(
|
|
324
324
|
"svg",
|
|
325
325
|
{
|
|
326
326
|
width: i,
|
|
@@ -360,7 +360,7 @@ const U2 = ({
|
|
|
360
360
|
color: t = "#001E52",
|
|
361
361
|
className: n,
|
|
362
362
|
onClick: s
|
|
363
|
-
}) => /* @__PURE__ */
|
|
363
|
+
}) => /* @__PURE__ */ g(
|
|
364
364
|
"svg",
|
|
365
365
|
{
|
|
366
366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -395,7 +395,7 @@ const U2 = ({
|
|
|
395
395
|
color: t = w.GREY_DARK_5,
|
|
396
396
|
className: n,
|
|
397
397
|
onClick: s
|
|
398
|
-
}) => /* @__PURE__ */
|
|
398
|
+
}) => /* @__PURE__ */ g(
|
|
399
399
|
"svg",
|
|
400
400
|
{
|
|
401
401
|
width: i,
|
|
@@ -406,7 +406,7 @@ const U2 = ({
|
|
|
406
406
|
fill: "none",
|
|
407
407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
408
408
|
children: [
|
|
409
|
-
/* @__PURE__ */ r("g", {
|
|
409
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
|
|
410
410
|
"path",
|
|
411
411
|
{
|
|
412
412
|
d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
|
|
@@ -446,7 +446,7 @@ const U2 = ({
|
|
|
446
446
|
color: t = w.GREY_DARK_5,
|
|
447
447
|
className: n,
|
|
448
448
|
onClick: s
|
|
449
|
-
}) => /* @__PURE__ */
|
|
449
|
+
}) => /* @__PURE__ */ g(
|
|
450
450
|
"svg",
|
|
451
451
|
{
|
|
452
452
|
width: i,
|
|
@@ -457,7 +457,7 @@ const U2 = ({
|
|
|
457
457
|
fill: "none",
|
|
458
458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
459
459
|
children: [
|
|
460
|
-
/* @__PURE__ */ r("g", {
|
|
460
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
|
|
461
461
|
"path",
|
|
462
462
|
{
|
|
463
463
|
d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
|
|
@@ -497,7 +497,7 @@ const U2 = ({
|
|
|
497
497
|
color: t = w.GREY_DARK_5,
|
|
498
498
|
className: n,
|
|
499
499
|
onClick: s
|
|
500
|
-
}) => /* @__PURE__ */
|
|
500
|
+
}) => /* @__PURE__ */ g(
|
|
501
501
|
"svg",
|
|
502
502
|
{
|
|
503
503
|
width: i,
|
|
@@ -616,7 +616,7 @@ const U2 = ({
|
|
|
616
616
|
color: t = w.GREY_DARK_5,
|
|
617
617
|
className: n,
|
|
618
618
|
onClick: s
|
|
619
|
-
}) => /* @__PURE__ */
|
|
619
|
+
}) => /* @__PURE__ */ g(
|
|
620
620
|
"svg",
|
|
621
621
|
{
|
|
622
622
|
width: i,
|
|
@@ -677,7 +677,7 @@ const U2 = ({
|
|
|
677
677
|
color: t = w.GREY_DARK_5,
|
|
678
678
|
className: n,
|
|
679
679
|
onClick: s
|
|
680
|
-
}) => /* @__PURE__ */
|
|
680
|
+
}) => /* @__PURE__ */ g(
|
|
681
681
|
"svg",
|
|
682
682
|
{
|
|
683
683
|
width: i,
|
|
@@ -724,7 +724,7 @@ const U2 = ({
|
|
|
724
724
|
color: t = w.GREY_DARK_5,
|
|
725
725
|
className: n,
|
|
726
726
|
onClick: s
|
|
727
|
-
}) => /* @__PURE__ */
|
|
727
|
+
}) => /* @__PURE__ */ g(
|
|
728
728
|
"svg",
|
|
729
729
|
{
|
|
730
730
|
width: i,
|
|
@@ -764,7 +764,7 @@ const U2 = ({
|
|
|
764
764
|
color: t = w.GREY_DARK_5,
|
|
765
765
|
className: n,
|
|
766
766
|
onClick: s
|
|
767
|
-
}) => /* @__PURE__ */
|
|
767
|
+
}) => /* @__PURE__ */ g(
|
|
768
768
|
"svg",
|
|
769
769
|
{
|
|
770
770
|
width: i,
|
|
@@ -804,7 +804,7 @@ const U2 = ({
|
|
|
804
804
|
color: t = w.GREY_DARK_5,
|
|
805
805
|
className: n,
|
|
806
806
|
onClick: s
|
|
807
|
-
}) => /* @__PURE__ */
|
|
807
|
+
}) => /* @__PURE__ */ g(
|
|
808
808
|
"svg",
|
|
809
809
|
{
|
|
810
810
|
width: i,
|
|
@@ -851,7 +851,7 @@ const U2 = ({
|
|
|
851
851
|
color: t = w.GREY_DARK_5,
|
|
852
852
|
className: n,
|
|
853
853
|
onClick: s
|
|
854
|
-
}) => /* @__PURE__ */
|
|
854
|
+
}) => /* @__PURE__ */ g(
|
|
855
855
|
"svg",
|
|
856
856
|
{
|
|
857
857
|
width: i,
|
|
@@ -898,7 +898,7 @@ const U2 = ({
|
|
|
898
898
|
color: t = w.GREY_DARK_5,
|
|
899
899
|
className: n,
|
|
900
900
|
onClick: s
|
|
901
|
-
}) => /* @__PURE__ */
|
|
901
|
+
}) => /* @__PURE__ */ g(
|
|
902
902
|
"svg",
|
|
903
903
|
{
|
|
904
904
|
width: i,
|
|
@@ -945,7 +945,7 @@ const U2 = ({
|
|
|
945
945
|
color: t = w.GREY_DARK_5,
|
|
946
946
|
className: n,
|
|
947
947
|
onClick: s
|
|
948
|
-
}) => /* @__PURE__ */
|
|
948
|
+
}) => /* @__PURE__ */ g(
|
|
949
949
|
"svg",
|
|
950
950
|
{
|
|
951
951
|
width: i,
|
|
@@ -985,7 +985,7 @@ const U2 = ({
|
|
|
985
985
|
color: t = w.GREY_DARK_5,
|
|
986
986
|
className: n,
|
|
987
987
|
onClick: s
|
|
988
|
-
}) => /* @__PURE__ */
|
|
988
|
+
}) => /* @__PURE__ */ g(
|
|
989
989
|
"svg",
|
|
990
990
|
{
|
|
991
991
|
width: i,
|
|
@@ -1018,7 +1018,7 @@ const U2 = ({
|
|
|
1018
1018
|
color: t = w.GREY_DARK_5,
|
|
1019
1019
|
className: n,
|
|
1020
1020
|
onClick: s
|
|
1021
|
-
}) => /* @__PURE__ */
|
|
1021
|
+
}) => /* @__PURE__ */ g(
|
|
1022
1022
|
"svg",
|
|
1023
1023
|
{
|
|
1024
1024
|
width: i,
|
|
@@ -1051,7 +1051,7 @@ const U2 = ({
|
|
|
1051
1051
|
color: t = w.GREY_DARK_5,
|
|
1052
1052
|
className: n,
|
|
1053
1053
|
onClick: s
|
|
1054
|
-
}) => /* @__PURE__ */
|
|
1054
|
+
}) => /* @__PURE__ */ g(
|
|
1055
1055
|
"svg",
|
|
1056
1056
|
{
|
|
1057
1057
|
width: i,
|
|
@@ -1084,7 +1084,7 @@ const U2 = ({
|
|
|
1084
1084
|
color: t = w.GREY_DARK_5,
|
|
1085
1085
|
className: n,
|
|
1086
1086
|
onClick: s
|
|
1087
|
-
}) => /* @__PURE__ */
|
|
1087
|
+
}) => /* @__PURE__ */ g(
|
|
1088
1088
|
"svg",
|
|
1089
1089
|
{
|
|
1090
1090
|
width: i,
|
|
@@ -1117,7 +1117,7 @@ const U2 = ({
|
|
|
1117
1117
|
color: t = w.GREY_DARK_5,
|
|
1118
1118
|
className: n,
|
|
1119
1119
|
onClick: s
|
|
1120
|
-
}) => /* @__PURE__ */
|
|
1120
|
+
}) => /* @__PURE__ */ g(
|
|
1121
1121
|
"svg",
|
|
1122
1122
|
{
|
|
1123
1123
|
width: i,
|
|
@@ -1157,7 +1157,7 @@ const U2 = ({
|
|
|
1157
1157
|
color: t = w.GREY_DARK_5,
|
|
1158
1158
|
className: n,
|
|
1159
1159
|
onClick: s
|
|
1160
|
-
}) => /* @__PURE__ */
|
|
1160
|
+
}) => /* @__PURE__ */ g(
|
|
1161
1161
|
"svg",
|
|
1162
1162
|
{
|
|
1163
1163
|
width: i,
|
|
@@ -1190,7 +1190,7 @@ const U2 = ({
|
|
|
1190
1190
|
color: t = w.GREY_DARK_5,
|
|
1191
1191
|
className: n,
|
|
1192
1192
|
onClick: s
|
|
1193
|
-
}) => /* @__PURE__ */
|
|
1193
|
+
}) => /* @__PURE__ */ g(
|
|
1194
1194
|
"svg",
|
|
1195
1195
|
{
|
|
1196
1196
|
width: i,
|
|
@@ -1223,7 +1223,7 @@ const U2 = ({
|
|
|
1223
1223
|
color: t = "#070739",
|
|
1224
1224
|
className: n,
|
|
1225
1225
|
onClick: s
|
|
1226
|
-
}) => /* @__PURE__ */
|
|
1226
|
+
}) => /* @__PURE__ */ g(
|
|
1227
1227
|
"svg",
|
|
1228
1228
|
{
|
|
1229
1229
|
width: i,
|
|
@@ -1253,7 +1253,7 @@ const U2 = ({
|
|
|
1253
1253
|
color: t = "#070739",
|
|
1254
1254
|
className: n,
|
|
1255
1255
|
onClick: s
|
|
1256
|
-
}) => /* @__PURE__ */
|
|
1256
|
+
}) => /* @__PURE__ */ g(
|
|
1257
1257
|
"svg",
|
|
1258
1258
|
{
|
|
1259
1259
|
width: i,
|
|
@@ -1317,7 +1317,7 @@ const U2 = ({
|
|
|
1317
1317
|
color: t = "#F2F2F7",
|
|
1318
1318
|
className: n,
|
|
1319
1319
|
onClick: s
|
|
1320
|
-
}) => /* @__PURE__ */
|
|
1320
|
+
}) => /* @__PURE__ */ g(
|
|
1321
1321
|
"svg",
|
|
1322
1322
|
{
|
|
1323
1323
|
width: i,
|
|
@@ -1346,7 +1346,7 @@ const U2 = ({
|
|
|
1346
1346
|
color: t = "#004ED7",
|
|
1347
1347
|
className: n,
|
|
1348
1348
|
onClick: s
|
|
1349
|
-
}) => /* @__PURE__ */
|
|
1349
|
+
}) => /* @__PURE__ */ g(
|
|
1350
1350
|
"svg",
|
|
1351
1351
|
{
|
|
1352
1352
|
width: i,
|
|
@@ -1375,7 +1375,7 @@ const U2 = ({
|
|
|
1375
1375
|
color: t = "#001E52",
|
|
1376
1376
|
className: n,
|
|
1377
1377
|
onClick: s
|
|
1378
|
-
}) => /* @__PURE__ */
|
|
1378
|
+
}) => /* @__PURE__ */ g(
|
|
1379
1379
|
"svg",
|
|
1380
1380
|
{
|
|
1381
1381
|
width: i,
|
|
@@ -1404,7 +1404,7 @@ const U2 = ({
|
|
|
1404
1404
|
color: t = "#001E52",
|
|
1405
1405
|
className: n,
|
|
1406
1406
|
onClick: s
|
|
1407
|
-
}) => /* @__PURE__ */
|
|
1407
|
+
}) => /* @__PURE__ */ g(
|
|
1408
1408
|
"svg",
|
|
1409
1409
|
{
|
|
1410
1410
|
width: i,
|
|
@@ -1441,7 +1441,7 @@ const U2 = ({
|
|
|
1441
1441
|
height: t = 20,
|
|
1442
1442
|
width: n = 20,
|
|
1443
1443
|
onClick: s
|
|
1444
|
-
}) => /* @__PURE__ */
|
|
1444
|
+
}) => /* @__PURE__ */ g(
|
|
1445
1445
|
"svg",
|
|
1446
1446
|
{
|
|
1447
1447
|
width: n,
|
|
@@ -1577,7 +1577,7 @@ const U2 = ({
|
|
|
1577
1577
|
height: t = 20,
|
|
1578
1578
|
width: n = 20,
|
|
1579
1579
|
onClick: s
|
|
1580
|
-
}) => /* @__PURE__ */
|
|
1580
|
+
}) => /* @__PURE__ */ g(
|
|
1581
1581
|
"svg",
|
|
1582
1582
|
{
|
|
1583
1583
|
width: n,
|
|
@@ -1610,7 +1610,7 @@ const U2 = ({
|
|
|
1610
1610
|
height: t = 24,
|
|
1611
1611
|
width: n = 24,
|
|
1612
1612
|
onClick: s
|
|
1613
|
-
}) => /* @__PURE__ */
|
|
1613
|
+
}) => /* @__PURE__ */ g(
|
|
1614
1614
|
"svg",
|
|
1615
1615
|
{
|
|
1616
1616
|
width: n,
|
|
@@ -1676,7 +1676,7 @@ const U2 = ({
|
|
|
1676
1676
|
height: t = 24,
|
|
1677
1677
|
width: n = 24,
|
|
1678
1678
|
onClick: s
|
|
1679
|
-
}) => /* @__PURE__ */
|
|
1679
|
+
}) => /* @__PURE__ */ g(
|
|
1680
1680
|
"svg",
|
|
1681
1681
|
{
|
|
1682
1682
|
width: n,
|
|
@@ -1735,7 +1735,7 @@ const U2 = ({
|
|
|
1735
1735
|
height: t = 24,
|
|
1736
1736
|
width: n = 24,
|
|
1737
1737
|
onClick: s
|
|
1738
|
-
}) => /* @__PURE__ */
|
|
1738
|
+
}) => /* @__PURE__ */ g(
|
|
1739
1739
|
"svg",
|
|
1740
1740
|
{
|
|
1741
1741
|
width: n,
|
|
@@ -1772,7 +1772,7 @@ const U2 = ({
|
|
|
1772
1772
|
height: t = 14,
|
|
1773
1773
|
width: n = 14,
|
|
1774
1774
|
onClick: s
|
|
1775
|
-
}) => /* @__PURE__ */
|
|
1775
|
+
}) => /* @__PURE__ */ g(
|
|
1776
1776
|
"svg",
|
|
1777
1777
|
{
|
|
1778
1778
|
className: i,
|
|
@@ -1836,7 +1836,7 @@ const U2 = ({
|
|
|
1836
1836
|
height: t = 24,
|
|
1837
1837
|
width: n = 24,
|
|
1838
1838
|
onClick: s
|
|
1839
|
-
}) => /* @__PURE__ */
|
|
1839
|
+
}) => /* @__PURE__ */ g(
|
|
1840
1840
|
"svg",
|
|
1841
1841
|
{
|
|
1842
1842
|
onClick: s,
|
|
@@ -1888,7 +1888,7 @@ const U2 = ({
|
|
|
1888
1888
|
height: t = 24,
|
|
1889
1889
|
width: n = 24,
|
|
1890
1890
|
onClick: s
|
|
1891
|
-
}) => /* @__PURE__ */
|
|
1891
|
+
}) => /* @__PURE__ */ g(
|
|
1892
1892
|
"svg",
|
|
1893
1893
|
{
|
|
1894
1894
|
onClick: s,
|
|
@@ -1925,7 +1925,7 @@ const U2 = ({
|
|
|
1925
1925
|
height: t = 37,
|
|
1926
1926
|
width: n = 36,
|
|
1927
1927
|
onClick: s
|
|
1928
|
-
}) => /* @__PURE__ */
|
|
1928
|
+
}) => /* @__PURE__ */ g(
|
|
1929
1929
|
"svg",
|
|
1930
1930
|
{
|
|
1931
1931
|
onClick: s,
|
|
@@ -1990,7 +1990,7 @@ const U2 = ({
|
|
|
1990
1990
|
height: t = 24,
|
|
1991
1991
|
width: n = 24,
|
|
1992
1992
|
onClick: s
|
|
1993
|
-
}) => /* @__PURE__ */
|
|
1993
|
+
}) => /* @__PURE__ */ g(
|
|
1994
1994
|
"svg",
|
|
1995
1995
|
{
|
|
1996
1996
|
onClick: s,
|
|
@@ -2029,7 +2029,7 @@ const U2 = ({
|
|
|
2029
2029
|
height: t = 20,
|
|
2030
2030
|
width: n = 20,
|
|
2031
2031
|
onClick: s
|
|
2032
|
-
}) => /* @__PURE__ */
|
|
2032
|
+
}) => /* @__PURE__ */ g(
|
|
2033
2033
|
"svg",
|
|
2034
2034
|
{
|
|
2035
2035
|
onClick: s,
|
|
@@ -2062,7 +2062,7 @@ const U2 = ({
|
|
|
2062
2062
|
height: t = 24,
|
|
2063
2063
|
width: n = 24,
|
|
2064
2064
|
onClick: s
|
|
2065
|
-
}) => /* @__PURE__ */
|
|
2065
|
+
}) => /* @__PURE__ */ g(
|
|
2066
2066
|
"svg",
|
|
2067
2067
|
{
|
|
2068
2068
|
onClick: s,
|
|
@@ -2131,7 +2131,7 @@ const U2 = ({
|
|
|
2131
2131
|
height: t = 24,
|
|
2132
2132
|
width: n = 24,
|
|
2133
2133
|
onClick: s
|
|
2134
|
-
}) => /* @__PURE__ */
|
|
2134
|
+
}) => /* @__PURE__ */ g(
|
|
2135
2135
|
"svg",
|
|
2136
2136
|
{
|
|
2137
2137
|
onClick: s,
|
|
@@ -2188,7 +2188,7 @@ const U2 = ({
|
|
|
2188
2188
|
height: t = 24,
|
|
2189
2189
|
width: n = 24,
|
|
2190
2190
|
onClick: s
|
|
2191
|
-
}) => /* @__PURE__ */
|
|
2191
|
+
}) => /* @__PURE__ */ g(
|
|
2192
2192
|
"svg",
|
|
2193
2193
|
{
|
|
2194
2194
|
onClick: s,
|
|
@@ -2264,7 +2264,7 @@ const U2 = ({
|
|
|
2264
2264
|
height: t = 20,
|
|
2265
2265
|
width: n = 20,
|
|
2266
2266
|
onClick: s
|
|
2267
|
-
}) => /* @__PURE__ */
|
|
2267
|
+
}) => /* @__PURE__ */ g(
|
|
2268
2268
|
"svg",
|
|
2269
2269
|
{
|
|
2270
2270
|
onClick: s,
|
|
@@ -2330,7 +2330,7 @@ const U2 = ({
|
|
|
2330
2330
|
version: "1.1",
|
|
2331
2331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2332
2332
|
viewBox: "0 0 489.698 489.698",
|
|
2333
|
-
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */
|
|
2333
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ g("g", { children: [
|
|
2334
2334
|
/* @__PURE__ */ r(
|
|
2335
2335
|
"path",
|
|
2336
2336
|
{
|
|
@@ -2381,7 +2381,7 @@ const U2 = ({
|
|
|
2381
2381
|
color: t = "#131314",
|
|
2382
2382
|
className: n,
|
|
2383
2383
|
onClick: s
|
|
2384
|
-
}) => /* @__PURE__ */
|
|
2384
|
+
}) => /* @__PURE__ */ g(
|
|
2385
2385
|
"svg",
|
|
2386
2386
|
{
|
|
2387
2387
|
width: i,
|
|
@@ -2414,7 +2414,7 @@ const U2 = ({
|
|
|
2414
2414
|
color: t = w.GREY_DARK_5,
|
|
2415
2415
|
className: n,
|
|
2416
2416
|
onClick: s
|
|
2417
|
-
}) => /* @__PURE__ */
|
|
2417
|
+
}) => /* @__PURE__ */ g(
|
|
2418
2418
|
"svg",
|
|
2419
2419
|
{
|
|
2420
2420
|
width: i,
|
|
@@ -2447,7 +2447,7 @@ const U2 = ({
|
|
|
2447
2447
|
color: t = w.GREY_DARK_2,
|
|
2448
2448
|
className: n,
|
|
2449
2449
|
onClick: s
|
|
2450
|
-
}) => /* @__PURE__ */
|
|
2450
|
+
}) => /* @__PURE__ */ g(
|
|
2451
2451
|
"svg",
|
|
2452
2452
|
{
|
|
2453
2453
|
width: i,
|
|
@@ -2544,185 +2544,179 @@ const U2 = ({
|
|
|
2544
2544
|
disabled: o = !1,
|
|
2545
2545
|
onClick: c
|
|
2546
2546
|
}) => {
|
|
2547
|
-
const
|
|
2548
|
-
return
|
|
2549
|
-
if (s) {
|
|
2550
|
-
h && !o && C(`${s} clickable`);
|
|
2551
|
-
return;
|
|
2552
|
-
}
|
|
2553
|
-
h && !o && C("clickable");
|
|
2554
|
-
}, [h, s, o]), /* @__PURE__ */ r(U, { children: (() => {
|
|
2547
|
+
const { theme: d } = Q(e2), l = o ? d && d === "dark" ? w.GREY_LIGHT_4 : w.GREY_DARK_1 : n, a = o ? void 0 : c, h = c && !o ? `${s || ""} clickable` : s;
|
|
2548
|
+
return /* @__PURE__ */ r(U, { children: (() => {
|
|
2555
2549
|
switch (i) {
|
|
2556
2550
|
case "nextIcon":
|
|
2557
|
-
return y5({ width: e, height: t, color: l, className:
|
|
2551
|
+
return y5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2558
2552
|
case "prevIcon":
|
|
2559
|
-
return H5({ width: e, height: t, color: l, className:
|
|
2553
|
+
return H5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2560
2554
|
case "arrowDown":
|
|
2561
|
-
return U2({ width: e, height: t, color: l, className:
|
|
2555
|
+
return U2({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2562
2556
|
case "info":
|
|
2563
|
-
return z2({ width: e, height: t, color: l, className:
|
|
2557
|
+
return z2({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2564
2558
|
case "arrowRight":
|
|
2565
|
-
return J2({ width: e, height: t, color: l, className:
|
|
2559
|
+
return J2({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2566
2560
|
case "calendar":
|
|
2567
|
-
return t5({ width: e, height: t, color: l, className:
|
|
2561
|
+
return t5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2568
2562
|
case "check":
|
|
2569
|
-
return i5({ width: e, height: t, color: l, className:
|
|
2563
|
+
return i5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2570
2564
|
case "cancel":
|
|
2571
|
-
return n5({ width: e, height: t, color: l, className:
|
|
2565
|
+
return n5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2572
2566
|
case "add":
|
|
2573
|
-
return s5({ width: e, height: t, color: l, className:
|
|
2567
|
+
return s5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2574
2568
|
case "list":
|
|
2575
|
-
return r5({ width: e, height: t, color: l, className:
|
|
2569
|
+
return r5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2576
2570
|
case "dragAndDrop":
|
|
2577
|
-
return o5({ width: e, height: t, color: l, className:
|
|
2571
|
+
return o5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2578
2572
|
case "filter":
|
|
2579
|
-
return a5({ width: e, height: t, color: l, className:
|
|
2573
|
+
return a5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2580
2574
|
case "attention":
|
|
2581
|
-
return l5({ width: e, height: t, color: l, className:
|
|
2575
|
+
return l5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2582
2576
|
case "users":
|
|
2583
|
-
return h5({ width: e, height: t, color: l, className:
|
|
2577
|
+
return h5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2584
2578
|
case "mySkillsMatrix":
|
|
2585
2579
|
return c5({
|
|
2586
2580
|
width: e,
|
|
2587
2581
|
height: t,
|
|
2588
2582
|
color: l,
|
|
2589
|
-
className:
|
|
2590
|
-
onClick:
|
|
2583
|
+
className: h,
|
|
2584
|
+
onClick: a
|
|
2591
2585
|
});
|
|
2592
2586
|
case "skills":
|
|
2593
|
-
return d5({ width: e, height: t, color: l, className:
|
|
2587
|
+
return d5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2594
2588
|
case "skillsMatrices":
|
|
2595
2589
|
return C5({
|
|
2596
2590
|
width: e,
|
|
2597
2591
|
height: t,
|
|
2598
2592
|
color: l,
|
|
2599
|
-
className:
|
|
2600
|
-
onClick:
|
|
2593
|
+
className: h,
|
|
2594
|
+
onClick: a
|
|
2601
2595
|
});
|
|
2602
2596
|
case "history":
|
|
2603
|
-
return g5({ width: e, height: t, color: l, className:
|
|
2597
|
+
return g5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2604
2598
|
case "logOut":
|
|
2605
|
-
return u5({ width: e, height: t, color: l, className:
|
|
2599
|
+
return u5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2606
2600
|
case "settings":
|
|
2607
|
-
return p5({ width: e, height: t, color: l, className:
|
|
2601
|
+
return p5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2608
2602
|
case "trash":
|
|
2609
|
-
return f5({ width: e, height: t, color: l, className:
|
|
2603
|
+
return f5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2610
2604
|
case "settings2":
|
|
2611
|
-
return m5({ width: e, height: t, color: l, className:
|
|
2605
|
+
return m5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2612
2606
|
case "checkCircle":
|
|
2613
|
-
return w5({ width: e, height: t, color: l, className:
|
|
2607
|
+
return w5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2614
2608
|
case "cancelCircle":
|
|
2615
|
-
return L5({ width: e, height: t, color: l, className:
|
|
2609
|
+
return L5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2616
2610
|
case "visibilityIcon":
|
|
2617
2611
|
return k5({
|
|
2618
2612
|
width: e,
|
|
2619
2613
|
height: t,
|
|
2620
2614
|
color: l,
|
|
2621
|
-
className:
|
|
2622
|
-
onClick:
|
|
2615
|
+
className: h,
|
|
2616
|
+
onClick: a
|
|
2623
2617
|
});
|
|
2624
2618
|
case "visibilityOffIcon":
|
|
2625
2619
|
return v5({
|
|
2626
2620
|
width: e,
|
|
2627
2621
|
height: t,
|
|
2628
2622
|
color: l,
|
|
2629
|
-
className:
|
|
2630
|
-
onClick:
|
|
2623
|
+
className: h,
|
|
2624
|
+
onClick: a
|
|
2631
2625
|
});
|
|
2632
2626
|
case "selectArrowIcon":
|
|
2633
2627
|
return N5({
|
|
2634
2628
|
width: e,
|
|
2635
2629
|
height: t,
|
|
2636
2630
|
color: l,
|
|
2637
|
-
className:
|
|
2638
|
-
onClick:
|
|
2631
|
+
className: h,
|
|
2632
|
+
onClick: a
|
|
2639
2633
|
});
|
|
2640
2634
|
case "expandArrowIcon":
|
|
2641
2635
|
return R5({
|
|
2642
2636
|
width: e,
|
|
2643
2637
|
height: t,
|
|
2644
2638
|
color: l,
|
|
2645
|
-
className:
|
|
2646
|
-
onClick:
|
|
2639
|
+
className: h,
|
|
2640
|
+
onClick: a
|
|
2647
2641
|
});
|
|
2648
2642
|
case "expandActiveArrowIcon":
|
|
2649
2643
|
return x5({
|
|
2650
2644
|
width: e,
|
|
2651
2645
|
height: t,
|
|
2652
2646
|
color: l,
|
|
2653
|
-
className:
|
|
2654
|
-
onClick:
|
|
2647
|
+
className: h,
|
|
2648
|
+
onClick: a
|
|
2655
2649
|
});
|
|
2656
2650
|
case "sortUp":
|
|
2657
|
-
return _5({ width: e, height: t, color: l, className:
|
|
2651
|
+
return _5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2658
2652
|
case "sortDown":
|
|
2659
|
-
return M5({ width: e, height: t, color: l, className:
|
|
2653
|
+
return M5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2660
2654
|
case "search":
|
|
2661
|
-
return b5({ width: e, height: t, color: l, className:
|
|
2655
|
+
return b5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2662
2656
|
case "arrowUpFilled":
|
|
2663
|
-
return V5({ width: e, height: t, color: l, className:
|
|
2657
|
+
return V5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2664
2658
|
case "arrowDownFilled":
|
|
2665
|
-
return E5({ width: e, height: t, color: l, className:
|
|
2659
|
+
return E5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2666
2660
|
case "arrow2Up":
|
|
2667
|
-
return Q2({ width: e, height: t, color: l, className:
|
|
2661
|
+
return Q2({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2668
2662
|
case "arrow2Right":
|
|
2669
|
-
return q2({ width: e, height: t, color: l, className:
|
|
2663
|
+
return q2({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2670
2664
|
case "arrow2Down":
|
|
2671
|
-
return X2({ width: e, height: t, color: l, className:
|
|
2665
|
+
return X2({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2672
2666
|
case "arrow2Left":
|
|
2673
|
-
return e5({ width: e, height: t, color: l, className:
|
|
2667
|
+
return e5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2674
2668
|
case "link":
|
|
2675
|
-
return A5({ width: e, height: t, color: l, className:
|
|
2669
|
+
return A5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2676
2670
|
case "telegram":
|
|
2677
|
-
return Z5({ width: e, height: t, color: l, className:
|
|
2671
|
+
return Z5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2678
2672
|
case "mail":
|
|
2679
|
-
return S5({ width: e, height: t, color: l, className:
|
|
2673
|
+
return S5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2680
2674
|
case "github":
|
|
2681
|
-
return I5({ width: e, height: t, color: l, className:
|
|
2675
|
+
return I5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2682
2676
|
case "linkedIn":
|
|
2683
|
-
return O5({ width: e, height: t, color: l, className:
|
|
2677
|
+
return O5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2684
2678
|
case "emptyStateIcon":
|
|
2685
|
-
return G5({ width: e, height: t, color: l, className:
|
|
2679
|
+
return G5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2686
2680
|
case "filtersIcon":
|
|
2687
|
-
return D5({ width: e, height: t, color: l, className:
|
|
2681
|
+
return D5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2688
2682
|
case "dotMenuIcon":
|
|
2689
|
-
return T5({ width: e, height: t, color: l, className:
|
|
2683
|
+
return T5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2690
2684
|
case "plusCircle":
|
|
2691
|
-
return K5({ width: e, height: t, color: l, className:
|
|
2685
|
+
return K5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2692
2686
|
case "warning":
|
|
2693
|
-
return B5({ width: e, height: t, color: l, className:
|
|
2687
|
+
return B5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2694
2688
|
case "back":
|
|
2695
|
-
return Y5({ width: e, height: t, color: l, className:
|
|
2689
|
+
return Y5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2696
2690
|
case "bell":
|
|
2697
|
-
return P5({ width: e, height: t, color: l, className:
|
|
2691
|
+
return P5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2698
2692
|
case "copy":
|
|
2699
|
-
return j5({ width: e, height: t, color: l, className:
|
|
2693
|
+
return j5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2700
2694
|
case "contract":
|
|
2701
|
-
return $5({ width: e, height: t, color: l, className:
|
|
2695
|
+
return $5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2702
2696
|
case "resourceManager":
|
|
2703
|
-
return F5({ width: e, height: t, color: l, className:
|
|
2697
|
+
return F5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2704
2698
|
case "image":
|
|
2705
|
-
return W5({ width: e, height: t, color: l, className:
|
|
2699
|
+
return W5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2706
2700
|
case "edit":
|
|
2707
|
-
return U5({ width: e, height: t, color: l, className:
|
|
2701
|
+
return U5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2708
2702
|
case "filledArrowRight":
|
|
2709
|
-
return z5({ width: e, height: t, color: l, className:
|
|
2703
|
+
return z5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2710
2704
|
case "burgerMenu":
|
|
2711
|
-
return J5({ width: e, height: t, color: l, className:
|
|
2705
|
+
return J5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2712
2706
|
case "refresh":
|
|
2713
|
-
return Q5({ width: e, height: t, color: l, className:
|
|
2707
|
+
return Q5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2714
2708
|
case "projects":
|
|
2715
|
-
return q5({ width: e, height: t, color: l, className:
|
|
2709
|
+
return q5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2716
2710
|
case "user":
|
|
2717
|
-
return ee({ width: e, height: t, color: l, className:
|
|
2711
|
+
return ee({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2718
2712
|
case "exit":
|
|
2719
|
-
return X5({ width: e, height: t, color: l, className:
|
|
2713
|
+
return X5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2720
2714
|
case "openPointCircle":
|
|
2721
|
-
return te({ width: e, height: t, color: l, className:
|
|
2715
|
+
return te({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2722
2716
|
case "community":
|
|
2723
|
-
return ie({ width: e, height: t, color: l, className:
|
|
2717
|
+
return ie({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2724
2718
|
case "docs":
|
|
2725
|
-
return ne({ width: e, height: t, color: l, className:
|
|
2719
|
+
return ne({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2726
2720
|
default:
|
|
2727
2721
|
return /* @__PURE__ */ r(U, { children: "No Icon provided" });
|
|
2728
2722
|
}
|
|
@@ -2742,39 +2736,39 @@ const U2 = ({
|
|
|
2742
2736
|
collapsed: o,
|
|
2743
2737
|
whiteSpace: c = "normal",
|
|
2744
2738
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2745
|
-
trim:
|
|
2746
|
-
},
|
|
2747
|
-
const
|
|
2748
|
-
H1(
|
|
2749
|
-
const [
|
|
2750
|
-
|
|
2739
|
+
trim: d = !1
|
|
2740
|
+
}, l) => {
|
|
2741
|
+
const a = W(null);
|
|
2742
|
+
H1(l, () => a.current);
|
|
2743
|
+
const [h, u] = A(!1);
|
|
2744
|
+
O(() => {
|
|
2751
2745
|
var v;
|
|
2752
|
-
if (!
|
|
2746
|
+
if (!d) return;
|
|
2753
2747
|
const f = () => {
|
|
2754
|
-
|
|
2748
|
+
a.current && u(a.current.scrollWidth > a.current.clientWidth);
|
|
2755
2749
|
};
|
|
2756
2750
|
f();
|
|
2757
2751
|
const y = new ResizeObserver(f);
|
|
2758
|
-
return
|
|
2752
|
+
return a.current && y.observe(a.current), (v = a.current) != null && v.parentElement && y.observe(a.current.parentElement), () => {
|
|
2759
2753
|
y.disconnect();
|
|
2760
2754
|
};
|
|
2761
|
-
}, [
|
|
2762
|
-
const
|
|
2755
|
+
}, [d]);
|
|
2756
|
+
const C = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2763
2757
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
2764
2758
|
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
2765
2759
|
const k = {
|
|
2766
2760
|
className: p,
|
|
2767
|
-
style: { color: t, whiteSpace:
|
|
2761
|
+
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
2768
2762
|
onClick: s,
|
|
2769
|
-
ref:
|
|
2770
|
-
ellipsis:
|
|
2763
|
+
ref: a,
|
|
2764
|
+
ellipsis: d && h ? {
|
|
2771
2765
|
tooltip: {
|
|
2772
2766
|
title: n,
|
|
2773
2767
|
overlayClassName: "snmt-tooltip"
|
|
2774
2768
|
}
|
|
2775
2769
|
} : void 0
|
|
2776
2770
|
};
|
|
2777
|
-
return
|
|
2771
|
+
return C ? /* @__PURE__ */ r(se, { level: oe[e], ...k, children: n }) : /* @__PURE__ */ r(re, { ...k, children: n });
|
|
2778
2772
|
}
|
|
2779
2773
|
);
|
|
2780
2774
|
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.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 || {});
|
|
@@ -2816,7 +2810,7 @@ const le = ({
|
|
|
2816
2810
|
color: t = L.GREY_DARK_5,
|
|
2817
2811
|
className: n,
|
|
2818
2812
|
onClick: s
|
|
2819
|
-
}) => /* @__PURE__ */
|
|
2813
|
+
}) => /* @__PURE__ */ g(
|
|
2820
2814
|
"svg",
|
|
2821
2815
|
{
|
|
2822
2816
|
width: i,
|
|
@@ -2856,7 +2850,7 @@ const le = ({
|
|
|
2856
2850
|
color: t = "#001E52",
|
|
2857
2851
|
className: n,
|
|
2858
2852
|
onClick: s
|
|
2859
|
-
}) => /* @__PURE__ */
|
|
2853
|
+
}) => /* @__PURE__ */ g(
|
|
2860
2854
|
"svg",
|
|
2861
2855
|
{
|
|
2862
2856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2891,7 +2885,7 @@ const le = ({
|
|
|
2891
2885
|
color: t = L.GREY_DARK_5,
|
|
2892
2886
|
className: n,
|
|
2893
2887
|
onClick: s
|
|
2894
|
-
}) => /* @__PURE__ */
|
|
2888
|
+
}) => /* @__PURE__ */ g(
|
|
2895
2889
|
"svg",
|
|
2896
2890
|
{
|
|
2897
2891
|
width: i,
|
|
@@ -2902,7 +2896,7 @@ const le = ({
|
|
|
2902
2896
|
fill: "none",
|
|
2903
2897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2904
2898
|
children: [
|
|
2905
|
-
/* @__PURE__ */ r("g", {
|
|
2899
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
|
|
2906
2900
|
"path",
|
|
2907
2901
|
{
|
|
2908
2902
|
d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
|
|
@@ -2942,7 +2936,7 @@ const le = ({
|
|
|
2942
2936
|
color: t = L.GREY_DARK_5,
|
|
2943
2937
|
className: n,
|
|
2944
2938
|
onClick: s
|
|
2945
|
-
}) => /* @__PURE__ */
|
|
2939
|
+
}) => /* @__PURE__ */ g(
|
|
2946
2940
|
"svg",
|
|
2947
2941
|
{
|
|
2948
2942
|
width: i,
|
|
@@ -2953,7 +2947,7 @@ const le = ({
|
|
|
2953
2947
|
fill: "none",
|
|
2954
2948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2955
2949
|
children: [
|
|
2956
|
-
/* @__PURE__ */ r("g", {
|
|
2950
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
|
|
2957
2951
|
"path",
|
|
2958
2952
|
{
|
|
2959
2953
|
d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
|
|
@@ -2993,7 +2987,7 @@ const le = ({
|
|
|
2993
2987
|
color: t = L.GREY_DARK_5,
|
|
2994
2988
|
className: n,
|
|
2995
2989
|
onClick: s
|
|
2996
|
-
}) => /* @__PURE__ */
|
|
2990
|
+
}) => /* @__PURE__ */ g(
|
|
2997
2991
|
"svg",
|
|
2998
2992
|
{
|
|
2999
2993
|
width: i,
|
|
@@ -3112,7 +3106,7 @@ const le = ({
|
|
|
3112
3106
|
color: t = L.GREY_DARK_5,
|
|
3113
3107
|
className: n,
|
|
3114
3108
|
onClick: s
|
|
3115
|
-
}) => /* @__PURE__ */
|
|
3109
|
+
}) => /* @__PURE__ */ g(
|
|
3116
3110
|
"svg",
|
|
3117
3111
|
{
|
|
3118
3112
|
width: i,
|
|
@@ -3173,7 +3167,7 @@ const le = ({
|
|
|
3173
3167
|
color: t = L.GREY_DARK_5,
|
|
3174
3168
|
className: n,
|
|
3175
3169
|
onClick: s
|
|
3176
|
-
}) => /* @__PURE__ */
|
|
3170
|
+
}) => /* @__PURE__ */ g(
|
|
3177
3171
|
"svg",
|
|
3178
3172
|
{
|
|
3179
3173
|
width: i,
|
|
@@ -3220,7 +3214,7 @@ const le = ({
|
|
|
3220
3214
|
color: t = L.GREY_DARK_5,
|
|
3221
3215
|
className: n,
|
|
3222
3216
|
onClick: s
|
|
3223
|
-
}) => /* @__PURE__ */
|
|
3217
|
+
}) => /* @__PURE__ */ g(
|
|
3224
3218
|
"svg",
|
|
3225
3219
|
{
|
|
3226
3220
|
width: i,
|
|
@@ -3260,7 +3254,7 @@ const le = ({
|
|
|
3260
3254
|
color: t = L.GREY_DARK_5,
|
|
3261
3255
|
className: n,
|
|
3262
3256
|
onClick: s
|
|
3263
|
-
}) => /* @__PURE__ */
|
|
3257
|
+
}) => /* @__PURE__ */ g(
|
|
3264
3258
|
"svg",
|
|
3265
3259
|
{
|
|
3266
3260
|
width: i,
|
|
@@ -3300,7 +3294,7 @@ const le = ({
|
|
|
3300
3294
|
color: t = L.GREY_DARK_5,
|
|
3301
3295
|
className: n,
|
|
3302
3296
|
onClick: s
|
|
3303
|
-
}) => /* @__PURE__ */
|
|
3297
|
+
}) => /* @__PURE__ */ g(
|
|
3304
3298
|
"svg",
|
|
3305
3299
|
{
|
|
3306
3300
|
width: i,
|
|
@@ -3347,7 +3341,7 @@ const le = ({
|
|
|
3347
3341
|
color: t = L.GREY_DARK_5,
|
|
3348
3342
|
className: n,
|
|
3349
3343
|
onClick: s
|
|
3350
|
-
}) => /* @__PURE__ */
|
|
3344
|
+
}) => /* @__PURE__ */ g(
|
|
3351
3345
|
"svg",
|
|
3352
3346
|
{
|
|
3353
3347
|
width: i,
|
|
@@ -3394,7 +3388,7 @@ const le = ({
|
|
|
3394
3388
|
color: t = L.GREY_DARK_5,
|
|
3395
3389
|
className: n,
|
|
3396
3390
|
onClick: s
|
|
3397
|
-
}) => /* @__PURE__ */
|
|
3391
|
+
}) => /* @__PURE__ */ g(
|
|
3398
3392
|
"svg",
|
|
3399
3393
|
{
|
|
3400
3394
|
width: i,
|
|
@@ -3441,7 +3435,7 @@ const le = ({
|
|
|
3441
3435
|
color: t = L.GREY_DARK_5,
|
|
3442
3436
|
className: n,
|
|
3443
3437
|
onClick: s
|
|
3444
|
-
}) => /* @__PURE__ */
|
|
3438
|
+
}) => /* @__PURE__ */ g(
|
|
3445
3439
|
"svg",
|
|
3446
3440
|
{
|
|
3447
3441
|
width: i,
|
|
@@ -3481,7 +3475,7 @@ const le = ({
|
|
|
3481
3475
|
color: t = L.GREY_DARK_5,
|
|
3482
3476
|
className: n,
|
|
3483
3477
|
onClick: s
|
|
3484
|
-
}) => /* @__PURE__ */
|
|
3478
|
+
}) => /* @__PURE__ */ g(
|
|
3485
3479
|
"svg",
|
|
3486
3480
|
{
|
|
3487
3481
|
width: i,
|
|
@@ -3514,7 +3508,7 @@ const le = ({
|
|
|
3514
3508
|
color: t = L.GREY_DARK_5,
|
|
3515
3509
|
className: n,
|
|
3516
3510
|
onClick: s
|
|
3517
|
-
}) => /* @__PURE__ */
|
|
3511
|
+
}) => /* @__PURE__ */ g(
|
|
3518
3512
|
"svg",
|
|
3519
3513
|
{
|
|
3520
3514
|
width: i,
|
|
@@ -3547,7 +3541,7 @@ const le = ({
|
|
|
3547
3541
|
color: t = L.GREY_DARK_5,
|
|
3548
3542
|
className: n,
|
|
3549
3543
|
onClick: s
|
|
3550
|
-
}) => /* @__PURE__ */
|
|
3544
|
+
}) => /* @__PURE__ */ g(
|
|
3551
3545
|
"svg",
|
|
3552
3546
|
{
|
|
3553
3547
|
width: i,
|
|
@@ -3580,7 +3574,7 @@ const le = ({
|
|
|
3580
3574
|
color: t = L.GREY_DARK_5,
|
|
3581
3575
|
className: n,
|
|
3582
3576
|
onClick: s
|
|
3583
|
-
}) => /* @__PURE__ */
|
|
3577
|
+
}) => /* @__PURE__ */ g(
|
|
3584
3578
|
"svg",
|
|
3585
3579
|
{
|
|
3586
3580
|
width: i,
|
|
@@ -3613,7 +3607,7 @@ const le = ({
|
|
|
3613
3607
|
color: t = L.GREY_DARK_5,
|
|
3614
3608
|
className: n,
|
|
3615
3609
|
onClick: s
|
|
3616
|
-
}) => /* @__PURE__ */
|
|
3610
|
+
}) => /* @__PURE__ */ g(
|
|
3617
3611
|
"svg",
|
|
3618
3612
|
{
|
|
3619
3613
|
width: i,
|
|
@@ -3653,7 +3647,7 @@ const le = ({
|
|
|
3653
3647
|
color: t = L.GREY_DARK_5,
|
|
3654
3648
|
className: n,
|
|
3655
3649
|
onClick: s
|
|
3656
|
-
}) => /* @__PURE__ */
|
|
3650
|
+
}) => /* @__PURE__ */ g(
|
|
3657
3651
|
"svg",
|
|
3658
3652
|
{
|
|
3659
3653
|
width: i,
|
|
@@ -3686,7 +3680,7 @@ const le = ({
|
|
|
3686
3680
|
color: t = L.GREY_DARK_5,
|
|
3687
3681
|
className: n,
|
|
3688
3682
|
onClick: s
|
|
3689
|
-
}) => /* @__PURE__ */
|
|
3683
|
+
}) => /* @__PURE__ */ g(
|
|
3690
3684
|
"svg",
|
|
3691
3685
|
{
|
|
3692
3686
|
width: i,
|
|
@@ -3719,7 +3713,7 @@ const le = ({
|
|
|
3719
3713
|
color: t = "#070739",
|
|
3720
3714
|
className: n,
|
|
3721
3715
|
onClick: s
|
|
3722
|
-
}) => /* @__PURE__ */
|
|
3716
|
+
}) => /* @__PURE__ */ g(
|
|
3723
3717
|
"svg",
|
|
3724
3718
|
{
|
|
3725
3719
|
width: i,
|
|
@@ -3749,7 +3743,7 @@ const le = ({
|
|
|
3749
3743
|
color: t = "#070739",
|
|
3750
3744
|
className: n,
|
|
3751
3745
|
onClick: s
|
|
3752
|
-
}) => /* @__PURE__ */
|
|
3746
|
+
}) => /* @__PURE__ */ g(
|
|
3753
3747
|
"svg",
|
|
3754
3748
|
{
|
|
3755
3749
|
width: i,
|
|
@@ -3813,7 +3807,7 @@ const le = ({
|
|
|
3813
3807
|
color: t = "#F2F2F7",
|
|
3814
3808
|
className: n,
|
|
3815
3809
|
onClick: s
|
|
3816
|
-
}) => /* @__PURE__ */
|
|
3810
|
+
}) => /* @__PURE__ */ g(
|
|
3817
3811
|
"svg",
|
|
3818
3812
|
{
|
|
3819
3813
|
width: i,
|
|
@@ -3842,7 +3836,7 @@ const le = ({
|
|
|
3842
3836
|
color: t = "#004ED7",
|
|
3843
3837
|
className: n,
|
|
3844
3838
|
onClick: s
|
|
3845
|
-
}) => /* @__PURE__ */
|
|
3839
|
+
}) => /* @__PURE__ */ g(
|
|
3846
3840
|
"svg",
|
|
3847
3841
|
{
|
|
3848
3842
|
width: i,
|
|
@@ -3871,7 +3865,7 @@ const le = ({
|
|
|
3871
3865
|
color: t = "#001E52",
|
|
3872
3866
|
className: n,
|
|
3873
3867
|
onClick: s
|
|
3874
|
-
}) => /* @__PURE__ */
|
|
3868
|
+
}) => /* @__PURE__ */ g(
|
|
3875
3869
|
"svg",
|
|
3876
3870
|
{
|
|
3877
3871
|
width: i,
|
|
@@ -3900,7 +3894,7 @@ const le = ({
|
|
|
3900
3894
|
color: t = "#001E52",
|
|
3901
3895
|
className: n,
|
|
3902
3896
|
onClick: s
|
|
3903
|
-
}) => /* @__PURE__ */
|
|
3897
|
+
}) => /* @__PURE__ */ g(
|
|
3904
3898
|
"svg",
|
|
3905
3899
|
{
|
|
3906
3900
|
width: i,
|
|
@@ -3937,7 +3931,7 @@ const le = ({
|
|
|
3937
3931
|
height: t = 20,
|
|
3938
3932
|
width: n = 20,
|
|
3939
3933
|
onClick: s
|
|
3940
|
-
}) => /* @__PURE__ */
|
|
3934
|
+
}) => /* @__PURE__ */ g(
|
|
3941
3935
|
"svg",
|
|
3942
3936
|
{
|
|
3943
3937
|
width: n,
|
|
@@ -4073,7 +4067,7 @@ const le = ({
|
|
|
4073
4067
|
height: t = 20,
|
|
4074
4068
|
width: n = 20,
|
|
4075
4069
|
onClick: s
|
|
4076
|
-
}) => /* @__PURE__ */
|
|
4070
|
+
}) => /* @__PURE__ */ g(
|
|
4077
4071
|
"svg",
|
|
4078
4072
|
{
|
|
4079
4073
|
width: n,
|
|
@@ -4106,7 +4100,7 @@ const le = ({
|
|
|
4106
4100
|
height: t = 24,
|
|
4107
4101
|
width: n = 24,
|
|
4108
4102
|
onClick: s
|
|
4109
|
-
}) => /* @__PURE__ */
|
|
4103
|
+
}) => /* @__PURE__ */ g(
|
|
4110
4104
|
"svg",
|
|
4111
4105
|
{
|
|
4112
4106
|
width: n,
|
|
@@ -4172,7 +4166,7 @@ const le = ({
|
|
|
4172
4166
|
height: t = 24,
|
|
4173
4167
|
width: n = 24,
|
|
4174
4168
|
onClick: s
|
|
4175
|
-
}) => /* @__PURE__ */
|
|
4169
|
+
}) => /* @__PURE__ */ g(
|
|
4176
4170
|
"svg",
|
|
4177
4171
|
{
|
|
4178
4172
|
width: n,
|
|
@@ -4231,7 +4225,7 @@ const le = ({
|
|
|
4231
4225
|
height: t = 24,
|
|
4232
4226
|
width: n = 24,
|
|
4233
4227
|
onClick: s
|
|
4234
|
-
}) => /* @__PURE__ */
|
|
4228
|
+
}) => /* @__PURE__ */ g(
|
|
4235
4229
|
"svg",
|
|
4236
4230
|
{
|
|
4237
4231
|
width: n,
|
|
@@ -4268,7 +4262,7 @@ const le = ({
|
|
|
4268
4262
|
height: t = 14,
|
|
4269
4263
|
width: n = 14,
|
|
4270
4264
|
onClick: s
|
|
4271
|
-
}) => /* @__PURE__ */
|
|
4265
|
+
}) => /* @__PURE__ */ g(
|
|
4272
4266
|
"svg",
|
|
4273
4267
|
{
|
|
4274
4268
|
className: i,
|
|
@@ -4332,7 +4326,7 @@ const le = ({
|
|
|
4332
4326
|
height: t = 24,
|
|
4333
4327
|
width: n = 24,
|
|
4334
4328
|
onClick: s
|
|
4335
|
-
}) => /* @__PURE__ */
|
|
4329
|
+
}) => /* @__PURE__ */ g(
|
|
4336
4330
|
"svg",
|
|
4337
4331
|
{
|
|
4338
4332
|
onClick: s,
|
|
@@ -4384,7 +4378,7 @@ const le = ({
|
|
|
4384
4378
|
height: t = 24,
|
|
4385
4379
|
width: n = 24,
|
|
4386
4380
|
onClick: s
|
|
4387
|
-
}) => /* @__PURE__ */
|
|
4381
|
+
}) => /* @__PURE__ */ g(
|
|
4388
4382
|
"svg",
|
|
4389
4383
|
{
|
|
4390
4384
|
onClick: s,
|
|
@@ -4421,7 +4415,7 @@ const le = ({
|
|
|
4421
4415
|
height: t = 37,
|
|
4422
4416
|
width: n = 36,
|
|
4423
4417
|
onClick: s
|
|
4424
|
-
}) => /* @__PURE__ */
|
|
4418
|
+
}) => /* @__PURE__ */ g(
|
|
4425
4419
|
"svg",
|
|
4426
4420
|
{
|
|
4427
4421
|
onClick: s,
|
|
@@ -4486,7 +4480,7 @@ const le = ({
|
|
|
4486
4480
|
height: t = 24,
|
|
4487
4481
|
width: n = 24,
|
|
4488
4482
|
onClick: s
|
|
4489
|
-
}) => /* @__PURE__ */
|
|
4483
|
+
}) => /* @__PURE__ */ g(
|
|
4490
4484
|
"svg",
|
|
4491
4485
|
{
|
|
4492
4486
|
onClick: s,
|
|
@@ -4525,7 +4519,7 @@ const le = ({
|
|
|
4525
4519
|
height: t = 20,
|
|
4526
4520
|
width: n = 20,
|
|
4527
4521
|
onClick: s
|
|
4528
|
-
}) => /* @__PURE__ */
|
|
4522
|
+
}) => /* @__PURE__ */ g(
|
|
4529
4523
|
"svg",
|
|
4530
4524
|
{
|
|
4531
4525
|
onClick: s,
|
|
@@ -4558,7 +4552,7 @@ const le = ({
|
|
|
4558
4552
|
height: t = 24,
|
|
4559
4553
|
width: n = 24,
|
|
4560
4554
|
onClick: s
|
|
4561
|
-
}) => /* @__PURE__ */
|
|
4555
|
+
}) => /* @__PURE__ */ g(
|
|
4562
4556
|
"svg",
|
|
4563
4557
|
{
|
|
4564
4558
|
onClick: s,
|
|
@@ -4627,7 +4621,7 @@ const le = ({
|
|
|
4627
4621
|
height: t = 24,
|
|
4628
4622
|
width: n = 24,
|
|
4629
4623
|
onClick: s
|
|
4630
|
-
}) => /* @__PURE__ */
|
|
4624
|
+
}) => /* @__PURE__ */ g(
|
|
4631
4625
|
"svg",
|
|
4632
4626
|
{
|
|
4633
4627
|
onClick: s,
|
|
@@ -4684,7 +4678,7 @@ const le = ({
|
|
|
4684
4678
|
height: t = 24,
|
|
4685
4679
|
width: n = 24,
|
|
4686
4680
|
onClick: s
|
|
4687
|
-
}) => /* @__PURE__ */
|
|
4681
|
+
}) => /* @__PURE__ */ g(
|
|
4688
4682
|
"svg",
|
|
4689
4683
|
{
|
|
4690
4684
|
onClick: s,
|
|
@@ -4760,7 +4754,7 @@ const le = ({
|
|
|
4760
4754
|
height: t = 20,
|
|
4761
4755
|
width: n = 20,
|
|
4762
4756
|
onClick: s
|
|
4763
|
-
}) => /* @__PURE__ */
|
|
4757
|
+
}) => /* @__PURE__ */ g(
|
|
4764
4758
|
"svg",
|
|
4765
4759
|
{
|
|
4766
4760
|
onClick: s,
|
|
@@ -4826,7 +4820,7 @@ const le = ({
|
|
|
4826
4820
|
version: "1.1",
|
|
4827
4821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4828
4822
|
viewBox: "0 0 489.698 489.698",
|
|
4829
|
-
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */
|
|
4823
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ g("g", { children: [
|
|
4830
4824
|
/* @__PURE__ */ r(
|
|
4831
4825
|
"path",
|
|
4832
4826
|
{
|
|
@@ -4877,7 +4871,7 @@ const le = ({
|
|
|
4877
4871
|
color: t = "#131314",
|
|
4878
4872
|
className: n,
|
|
4879
4873
|
onClick: s
|
|
4880
|
-
}) => /* @__PURE__ */
|
|
4874
|
+
}) => /* @__PURE__ */ g(
|
|
4881
4875
|
"svg",
|
|
4882
4876
|
{
|
|
4883
4877
|
width: i,
|
|
@@ -4910,7 +4904,7 @@ const le = ({
|
|
|
4910
4904
|
color: t = L.GREY_DARK_5,
|
|
4911
4905
|
className: n,
|
|
4912
4906
|
onClick: s
|
|
4913
|
-
}) => /* @__PURE__ */
|
|
4907
|
+
}) => /* @__PURE__ */ g(
|
|
4914
4908
|
"svg",
|
|
4915
4909
|
{
|
|
4916
4910
|
width: i,
|
|
@@ -4943,7 +4937,7 @@ const le = ({
|
|
|
4943
4937
|
color: t = L.GREY_DARK_2,
|
|
4944
4938
|
className: n,
|
|
4945
4939
|
onClick: s
|
|
4946
|
-
}) => /* @__PURE__ */
|
|
4940
|
+
}) => /* @__PURE__ */ g(
|
|
4947
4941
|
"svg",
|
|
4948
4942
|
{
|
|
4949
4943
|
width: i,
|
|
@@ -5040,185 +5034,179 @@ const le = ({
|
|
|
5040
5034
|
disabled: o = !1,
|
|
5041
5035
|
onClick: c
|
|
5042
5036
|
}) => {
|
|
5043
|
-
const
|
|
5044
|
-
return
|
|
5045
|
-
if (s) {
|
|
5046
|
-
h && !o && C(`${s} clickable`);
|
|
5047
|
-
return;
|
|
5048
|
-
}
|
|
5049
|
-
h && !o && C("clickable");
|
|
5050
|
-
}, [h, s, o]), /* @__PURE__ */ r(U, { children: (() => {
|
|
5037
|
+
const { theme: d } = Q(t2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : n, a = o ? void 0 : c, h = c && !o ? `${s || ""} clickable` : s;
|
|
5038
|
+
return /* @__PURE__ */ r(U, { children: (() => {
|
|
5051
5039
|
switch (i) {
|
|
5052
5040
|
case "nextIcon":
|
|
5053
|
-
return Ye({ width: e, height: t, color: l, className:
|
|
5041
|
+
return Ye({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5054
5042
|
case "prevIcon":
|
|
5055
|
-
return Pe({ width: e, height: t, color: l, className:
|
|
5043
|
+
return Pe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5056
5044
|
case "arrowDown":
|
|
5057
|
-
return le({ width: e, height: t, color: l, className:
|
|
5045
|
+
return le({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5058
5046
|
case "info":
|
|
5059
|
-
return he({ width: e, height: t, color: l, className:
|
|
5047
|
+
return he({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5060
5048
|
case "arrowRight":
|
|
5061
|
-
return ce({ width: e, height: t, color: l, className:
|
|
5049
|
+
return ce({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5062
5050
|
case "calendar":
|
|
5063
|
-
return pe({ width: e, height: t, color: l, className:
|
|
5051
|
+
return pe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5064
5052
|
case "check":
|
|
5065
|
-
return fe({ width: e, height: t, color: l, className:
|
|
5053
|
+
return fe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5066
5054
|
case "cancel":
|
|
5067
|
-
return me({ width: e, height: t, color: l, className:
|
|
5055
|
+
return me({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5068
5056
|
case "add":
|
|
5069
|
-
return we({ width: e, height: t, color: l, className:
|
|
5057
|
+
return we({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5070
5058
|
case "list":
|
|
5071
|
-
return Le({ width: e, height: t, color: l, className:
|
|
5059
|
+
return Le({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5072
5060
|
case "dragAndDrop":
|
|
5073
|
-
return ke({ width: e, height: t, color: l, className:
|
|
5061
|
+
return ke({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5074
5062
|
case "filter":
|
|
5075
|
-
return ve({ width: e, height: t, color: l, className:
|
|
5063
|
+
return ve({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5076
5064
|
case "attention":
|
|
5077
|
-
return Ne({ width: e, height: t, color: l, className:
|
|
5065
|
+
return Ne({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5078
5066
|
case "users":
|
|
5079
|
-
return Re({ width: e, height: t, color: l, className:
|
|
5067
|
+
return Re({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5080
5068
|
case "mySkillsMatrix":
|
|
5081
5069
|
return xe({
|
|
5082
5070
|
width: e,
|
|
5083
5071
|
height: t,
|
|
5084
5072
|
color: l,
|
|
5085
|
-
className:
|
|
5086
|
-
onClick:
|
|
5073
|
+
className: h,
|
|
5074
|
+
onClick: a
|
|
5087
5075
|
});
|
|
5088
5076
|
case "skills":
|
|
5089
|
-
return _e({ width: e, height: t, color: l, className:
|
|
5077
|
+
return _e({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5090
5078
|
case "skillsMatrices":
|
|
5091
5079
|
return Me({
|
|
5092
5080
|
width: e,
|
|
5093
5081
|
height: t,
|
|
5094
5082
|
color: l,
|
|
5095
|
-
className:
|
|
5096
|
-
onClick:
|
|
5083
|
+
className: h,
|
|
5084
|
+
onClick: a
|
|
5097
5085
|
});
|
|
5098
5086
|
case "history":
|
|
5099
|
-
return be({ width: e, height: t, color: l, className:
|
|
5087
|
+
return be({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5100
5088
|
case "logOut":
|
|
5101
|
-
return ye({ width: e, height: t, color: l, className:
|
|
5089
|
+
return ye({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5102
5090
|
case "settings":
|
|
5103
|
-
return He({ width: e, height: t, color: l, className:
|
|
5091
|
+
return He({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5104
5092
|
case "trash":
|
|
5105
|
-
return Ee({ width: e, height: t, color: l, className:
|
|
5093
|
+
return Ee({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5106
5094
|
case "settings2":
|
|
5107
|
-
return Ve({ width: e, height: t, color: l, className:
|
|
5095
|
+
return Ve({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5108
5096
|
case "checkCircle":
|
|
5109
|
-
return Ae({ width: e, height: t, color: l, className:
|
|
5097
|
+
return Ae({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5110
5098
|
case "cancelCircle":
|
|
5111
|
-
return Ie({ width: e, height: t, color: l, className:
|
|
5099
|
+
return Ie({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5112
5100
|
case "visibilityIcon":
|
|
5113
5101
|
return Ze({
|
|
5114
5102
|
width: e,
|
|
5115
5103
|
height: t,
|
|
5116
5104
|
color: l,
|
|
5117
|
-
className:
|
|
5118
|
-
onClick:
|
|
5105
|
+
className: h,
|
|
5106
|
+
onClick: a
|
|
5119
5107
|
});
|
|
5120
5108
|
case "visibilityOffIcon":
|
|
5121
5109
|
return Oe({
|
|
5122
5110
|
width: e,
|
|
5123
5111
|
height: t,
|
|
5124
5112
|
color: l,
|
|
5125
|
-
className:
|
|
5126
|
-
onClick:
|
|
5113
|
+
className: h,
|
|
5114
|
+
onClick: a
|
|
5127
5115
|
});
|
|
5128
5116
|
case "selectArrowIcon":
|
|
5129
5117
|
return Se({
|
|
5130
5118
|
width: e,
|
|
5131
5119
|
height: t,
|
|
5132
5120
|
color: l,
|
|
5133
|
-
className:
|
|
5134
|
-
onClick:
|
|
5121
|
+
className: h,
|
|
5122
|
+
onClick: a
|
|
5135
5123
|
});
|
|
5136
5124
|
case "expandArrowIcon":
|
|
5137
5125
|
return Ge({
|
|
5138
5126
|
width: e,
|
|
5139
5127
|
height: t,
|
|
5140
5128
|
color: l,
|
|
5141
|
-
className:
|
|
5142
|
-
onClick:
|
|
5129
|
+
className: h,
|
|
5130
|
+
onClick: a
|
|
5143
5131
|
});
|
|
5144
5132
|
case "expandActiveArrowIcon":
|
|
5145
5133
|
return De({
|
|
5146
5134
|
width: e,
|
|
5147
5135
|
height: t,
|
|
5148
5136
|
color: l,
|
|
5149
|
-
className:
|
|
5150
|
-
onClick:
|
|
5137
|
+
className: h,
|
|
5138
|
+
onClick: a
|
|
5151
5139
|
});
|
|
5152
5140
|
case "sortUp":
|
|
5153
|
-
return Te({ width: e, height: t, color: l, className:
|
|
5141
|
+
return Te({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5154
5142
|
case "sortDown":
|
|
5155
|
-
return Ke({ width: e, height: t, color: l, className:
|
|
5143
|
+
return Ke({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5156
5144
|
case "search":
|
|
5157
|
-
return Be({ width: e, height: t, color: l, className:
|
|
5145
|
+
return Be({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5158
5146
|
case "arrowUpFilled":
|
|
5159
|
-
return $e({ width: e, height: t, color: l, className:
|
|
5147
|
+
return $e({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5160
5148
|
case "arrowDownFilled":
|
|
5161
|
-
return je({ width: e, height: t, color: l, className:
|
|
5149
|
+
return je({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5162
5150
|
case "arrow2Up":
|
|
5163
|
-
return de({ width: e, height: t, color: l, className:
|
|
5151
|
+
return de({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5164
5152
|
case "arrow2Right":
|
|
5165
|
-
return Ce({ width: e, height: t, color: l, className:
|
|
5153
|
+
return Ce({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5166
5154
|
case "arrow2Down":
|
|
5167
|
-
return ge({ width: e, height: t, color: l, className:
|
|
5155
|
+
return ge({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5168
5156
|
case "arrow2Left":
|
|
5169
|
-
return ue({ width: e, height: t, color: l, className:
|
|
5157
|
+
return ue({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5170
5158
|
case "link":
|
|
5171
|
-
return Fe({ width: e, height: t, color: l, className:
|
|
5159
|
+
return Fe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5172
5160
|
case "telegram":
|
|
5173
|
-
return Ue({ width: e, height: t, color: l, className:
|
|
5161
|
+
return Ue({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5174
5162
|
case "mail":
|
|
5175
|
-
return Je({ width: e, height: t, color: l, className:
|
|
5163
|
+
return Je({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5176
5164
|
case "github":
|
|
5177
|
-
return We({ width: e, height: t, color: l, className:
|
|
5165
|
+
return We({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5178
5166
|
case "linkedIn":
|
|
5179
|
-
return ze({ width: e, height: t, color: l, className:
|
|
5167
|
+
return ze({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5180
5168
|
case "emptyStateIcon":
|
|
5181
|
-
return Qe({ width: e, height: t, color: l, className:
|
|
5169
|
+
return Qe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5182
5170
|
case "filtersIcon":
|
|
5183
|
-
return qe({ width: e, height: t, color: l, className:
|
|
5171
|
+
return qe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5184
5172
|
case "dotMenuIcon":
|
|
5185
|
-
return Xe({ width: e, height: t, color: l, className:
|
|
5173
|
+
return Xe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5186
5174
|
case "plusCircle":
|
|
5187
|
-
return e7({ width: e, height: t, color: l, className:
|
|
5175
|
+
return e7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5188
5176
|
case "warning":
|
|
5189
|
-
return t7({ width: e, height: t, color: l, className:
|
|
5177
|
+
return t7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5190
5178
|
case "back":
|
|
5191
|
-
return i7({ width: e, height: t, color: l, className:
|
|
5179
|
+
return i7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5192
5180
|
case "bell":
|
|
5193
|
-
return n7({ width: e, height: t, color: l, className:
|
|
5181
|
+
return n7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5194
5182
|
case "copy":
|
|
5195
|
-
return s7({ width: e, height: t, color: l, className:
|
|
5183
|
+
return s7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5196
5184
|
case "contract":
|
|
5197
|
-
return r7({ width: e, height: t, color: l, className:
|
|
5185
|
+
return r7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5198
5186
|
case "resourceManager":
|
|
5199
|
-
return o7({ width: e, height: t, color: l, className:
|
|
5187
|
+
return o7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5200
5188
|
case "image":
|
|
5201
|
-
return a7({ width: e, height: t, color: l, className:
|
|
5189
|
+
return a7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5202
5190
|
case "edit":
|
|
5203
|
-
return l7({ width: e, height: t, color: l, className:
|
|
5191
|
+
return l7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5204
5192
|
case "filledArrowRight":
|
|
5205
|
-
return h7({ width: e, height: t, color: l, className:
|
|
5193
|
+
return h7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5206
5194
|
case "burgerMenu":
|
|
5207
|
-
return c7({ width: e, height: t, color: l, className:
|
|
5195
|
+
return c7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5208
5196
|
case "refresh":
|
|
5209
|
-
return d7({ width: e, height: t, color: l, className:
|
|
5197
|
+
return d7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5210
5198
|
case "projects":
|
|
5211
|
-
return C7({ width: e, height: t, color: l, className:
|
|
5199
|
+
return C7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5212
5200
|
case "user":
|
|
5213
|
-
return u7({ width: e, height: t, color: l, className:
|
|
5201
|
+
return u7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5214
5202
|
case "exit":
|
|
5215
|
-
return g7({ width: e, height: t, color: l, className:
|
|
5203
|
+
return g7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5216
5204
|
case "openPointCircle":
|
|
5217
|
-
return p7({ width: e, height: t, color: l, className:
|
|
5205
|
+
return p7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5218
5206
|
case "community":
|
|
5219
|
-
return f7({ width: e, height: t, color: l, className:
|
|
5207
|
+
return f7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5220
5208
|
case "docs":
|
|
5221
|
-
return m7({ width: e, height: t, color: l, className:
|
|
5209
|
+
return m7({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5222
5210
|
default:
|
|
5223
5211
|
return /* @__PURE__ */ r(U, { children: "No Icon provided" });
|
|
5224
5212
|
}
|
|
@@ -5238,7 +5226,7 @@ const i2 = ({
|
|
|
5238
5226
|
closable: s = !0,
|
|
5239
5227
|
disabled: o = !1
|
|
5240
5228
|
}) => {
|
|
5241
|
-
const c = t === "small" ? 10 : 12.5,
|
|
5229
|
+
const c = t === "small" ? 10 : 12.5, d = () => {
|
|
5242
5230
|
o || n == null || n();
|
|
5243
5231
|
};
|
|
5244
5232
|
return /* @__PURE__ */ r(
|
|
@@ -5252,7 +5240,7 @@ const i2 = ({
|
|
|
5252
5240
|
color: o ? o1.GREY_DARK_1 : o1.GREY_DARK_2,
|
|
5253
5241
|
width: c,
|
|
5254
5242
|
height: c,
|
|
5255
|
-
onClick:
|
|
5243
|
+
onClick: d
|
|
5256
5244
|
}
|
|
5257
5245
|
),
|
|
5258
5246
|
bordered: !1,
|
|
@@ -5283,39 +5271,39 @@ const i2 = ({
|
|
|
5283
5271
|
collapsed: o,
|
|
5284
5272
|
whiteSpace: c = "normal",
|
|
5285
5273
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5286
|
-
trim:
|
|
5287
|
-
},
|
|
5288
|
-
const
|
|
5289
|
-
H1(
|
|
5290
|
-
const [
|
|
5291
|
-
|
|
5274
|
+
trim: d = !1
|
|
5275
|
+
}, l) => {
|
|
5276
|
+
const a = W(null);
|
|
5277
|
+
H1(l, () => a.current);
|
|
5278
|
+
const [h, u] = A(!1);
|
|
5279
|
+
O(() => {
|
|
5292
5280
|
var v;
|
|
5293
|
-
if (!
|
|
5281
|
+
if (!d) return;
|
|
5294
5282
|
const f = () => {
|
|
5295
|
-
|
|
5283
|
+
a.current && u(a.current.scrollWidth > a.current.clientWidth);
|
|
5296
5284
|
};
|
|
5297
5285
|
f();
|
|
5298
5286
|
const y = new ResizeObserver(f);
|
|
5299
|
-
return
|
|
5287
|
+
return a.current && y.observe(a.current), (v = a.current) != null && v.parentElement && y.observe(a.current.parentElement), () => {
|
|
5300
5288
|
y.disconnect();
|
|
5301
5289
|
};
|
|
5302
|
-
}, [
|
|
5303
|
-
const
|
|
5290
|
+
}, [d]);
|
|
5291
|
+
const C = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5304
5292
|
let p = `snmt-typography snmt-typography-${e}`;
|
|
5305
5293
|
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
5306
5294
|
const k = {
|
|
5307
5295
|
className: p,
|
|
5308
|
-
style: { color: t, whiteSpace:
|
|
5296
|
+
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
5309
5297
|
onClick: s,
|
|
5310
|
-
ref:
|
|
5311
|
-
ellipsis:
|
|
5298
|
+
ref: a,
|
|
5299
|
+
ellipsis: d && h ? {
|
|
5312
5300
|
tooltip: {
|
|
5313
5301
|
title: n,
|
|
5314
5302
|
overlayClassName: "snmt-tooltip"
|
|
5315
5303
|
}
|
|
5316
5304
|
} : void 0
|
|
5317
5305
|
};
|
|
5318
|
-
return
|
|
5306
|
+
return C ? /* @__PURE__ */ r(k7, { level: N7[e], ...k, children: n }) : /* @__PURE__ */ r(v7, { ...k, children: n });
|
|
5319
5307
|
}
|
|
5320
5308
|
), x7 = ({
|
|
5321
5309
|
children: i,
|
|
@@ -5326,7 +5314,7 @@ const i2 = ({
|
|
|
5326
5314
|
noPadding: o = !1,
|
|
5327
5315
|
trigger: c = "click"
|
|
5328
5316
|
}) => {
|
|
5329
|
-
const [
|
|
5317
|
+
const [d, l] = A(!1);
|
|
5330
5318
|
return /* @__PURE__ */ r(
|
|
5331
5319
|
k2,
|
|
5332
5320
|
{
|
|
@@ -5335,9 +5323,9 @@ const i2 = ({
|
|
|
5335
5323
|
placement: s,
|
|
5336
5324
|
trigger: c,
|
|
5337
5325
|
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
|
5338
|
-
open: t ??
|
|
5339
|
-
onOpenChange: (
|
|
5340
|
-
|
|
5326
|
+
open: t ?? d,
|
|
5327
|
+
onOpenChange: (a) => {
|
|
5328
|
+
l(a), n == null || n(a);
|
|
5341
5329
|
},
|
|
5342
5330
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5343
5331
|
}
|
|
@@ -5363,38 +5351,38 @@ const M7 = ({
|
|
|
5363
5351
|
options: o,
|
|
5364
5352
|
extraOptions: c
|
|
5365
5353
|
}) => {
|
|
5366
|
-
const { locale:
|
|
5367
|
-
if (
|
|
5368
|
-
i.length ||
|
|
5354
|
+
const { locale: d } = Q(E1), { t: l } = B2("common", { lng: d }), [a, h] = A(!1);
|
|
5355
|
+
if (O(() => {
|
|
5356
|
+
i.length || h(!1);
|
|
5369
5357
|
}, [i]), !i.length)
|
|
5370
5358
|
return null;
|
|
5371
|
-
const
|
|
5359
|
+
const u = (C) => {
|
|
5372
5360
|
var p, k;
|
|
5373
|
-
return ((p = o == null ? void 0 : o.find((f) => f.value ===
|
|
5361
|
+
return ((p = o == null ? void 0 : o.find((f) => f.value === C)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((f) => f.value === C)) == null ? void 0 : k.label) || C;
|
|
5374
5362
|
};
|
|
5375
|
-
return /* @__PURE__ */
|
|
5363
|
+
return /* @__PURE__ */ g(
|
|
5376
5364
|
x7,
|
|
5377
5365
|
{
|
|
5378
5366
|
content: (
|
|
5379
5367
|
// 90: paddings + margins + gaps and so on
|
|
5380
|
-
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(r1, { gap: 6, flexWrap: "wrap", children: i.map(({ value:
|
|
5368
|
+
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(r1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: C }) => /* @__PURE__ */ r(
|
|
5381
5369
|
i2,
|
|
5382
5370
|
{
|
|
5383
|
-
onClose: () => e(
|
|
5371
|
+
onClose: () => e(C),
|
|
5384
5372
|
closable: n,
|
|
5385
5373
|
disabled: s,
|
|
5386
|
-
children:
|
|
5374
|
+
children: u(C)
|
|
5387
5375
|
},
|
|
5388
|
-
|
|
5376
|
+
C
|
|
5389
5377
|
)) }) })
|
|
5390
5378
|
),
|
|
5391
5379
|
placement: "bottomRight",
|
|
5392
|
-
isOpen:
|
|
5393
|
-
setIsOpen:
|
|
5380
|
+
isOpen: a,
|
|
5381
|
+
setIsOpen: h,
|
|
5394
5382
|
children: [
|
|
5395
5383
|
i.length,
|
|
5396
5384
|
" ",
|
|
5397
|
-
|
|
5385
|
+
l("more")
|
|
5398
5386
|
]
|
|
5399
5387
|
}
|
|
5400
5388
|
);
|
|
@@ -5419,12 +5407,12 @@ const M7 = ({
|
|
|
5419
5407
|
search: s = !1,
|
|
5420
5408
|
options: o,
|
|
5421
5409
|
width: c,
|
|
5422
|
-
disabled:
|
|
5423
|
-
required:
|
|
5424
|
-
clearable:
|
|
5425
|
-
scrollThresholdValue:
|
|
5426
|
-
onSearchChange:
|
|
5427
|
-
onDropdownVisibleChange:
|
|
5410
|
+
disabled: d = !1,
|
|
5411
|
+
required: l = !1,
|
|
5412
|
+
clearable: a = !1,
|
|
5413
|
+
scrollThresholdValue: h = 50,
|
|
5414
|
+
onSearchChange: u,
|
|
5415
|
+
onDropdownVisibleChange: C,
|
|
5428
5416
|
onScrollToEnd: p,
|
|
5429
5417
|
onPopupScroll: k,
|
|
5430
5418
|
id: v,
|
|
@@ -5436,15 +5424,15 @@ const M7 = ({
|
|
|
5436
5424
|
error: M
|
|
5437
5425
|
}, R) => {
|
|
5438
5426
|
const [x, D] = A(!1), [Y, i1] = A(!1), [$, c1] = A(!0), [V, P] = A(i), F = W(null);
|
|
5439
|
-
|
|
5427
|
+
O(() => {
|
|
5440
5428
|
P(i);
|
|
5441
5429
|
}, [i]);
|
|
5442
5430
|
const q = (_) => {
|
|
5443
|
-
D(_),
|
|
5431
|
+
D(_), C && C(_);
|
|
5444
5432
|
}, d1 = (_, H) => {
|
|
5445
5433
|
var T;
|
|
5446
5434
|
return !!((T = H == null ? void 0 : H.label) != null && T.toString().toLowerCase().includes(_.toLowerCase()));
|
|
5447
|
-
},
|
|
5435
|
+
}, Z = () => {
|
|
5448
5436
|
i1(!0);
|
|
5449
5437
|
}, j = () => {
|
|
5450
5438
|
i1(!1);
|
|
@@ -5460,14 +5448,14 @@ const M7 = ({
|
|
|
5460
5448
|
},
|
|
5461
5449
|
[n, e]
|
|
5462
5450
|
), C1 = K(() => {
|
|
5463
|
-
if (!(m ||
|
|
5451
|
+
if (!(m || d)) {
|
|
5464
5452
|
if (n) {
|
|
5465
5453
|
S([]);
|
|
5466
5454
|
return;
|
|
5467
5455
|
}
|
|
5468
5456
|
S("");
|
|
5469
5457
|
}
|
|
5470
|
-
}, [
|
|
5458
|
+
}, [d, S, n, m]), g1 = K(
|
|
5471
5459
|
(_) => {
|
|
5472
5460
|
const H = V.filter((T) => T !== _);
|
|
5473
5461
|
S(H), P(H);
|
|
@@ -5484,7 +5472,7 @@ const M7 = ({
|
|
|
5484
5472
|
_.preventDefault(), _.stopPropagation();
|
|
5485
5473
|
}, h2 = async (_) => {
|
|
5486
5474
|
const { target: H } = _;
|
|
5487
|
-
H.scrollTop + H.offsetHeight >= H.scrollHeight -
|
|
5475
|
+
H.scrollTop + H.offsetHeight >= H.scrollHeight - h && (p == null || p(!0)), k && await k(_);
|
|
5488
5476
|
}, k1 = K(
|
|
5489
5477
|
(_) => {
|
|
5490
5478
|
var H, T;
|
|
@@ -5502,20 +5490,20 @@ const M7 = ({
|
|
|
5502
5490
|
values: _,
|
|
5503
5491
|
onTagClose: g1,
|
|
5504
5492
|
maxWidth: ((H = F.current) == null ? void 0 : H.clientWidth) || 0,
|
|
5505
|
-
disabled:
|
|
5493
|
+
disabled: d,
|
|
5506
5494
|
closable: !m,
|
|
5507
5495
|
options: o,
|
|
5508
5496
|
extraOptions: f
|
|
5509
5497
|
}
|
|
5510
5498
|
);
|
|
5511
5499
|
},
|
|
5512
|
-
[
|
|
5500
|
+
[d, f, g1, o, m]
|
|
5513
5501
|
), d2 = K(
|
|
5514
|
-
({ label: _, value: H, mode: T }) => T === "filter" ? V1(H) : /* @__PURE__ */ r("div", { onMouseDown: l2, className: "tag-wrapper", children: /* @__PURE__ */ r(i2, { onClose: () => g1(H), disabled:
|
|
5515
|
-
[
|
|
5502
|
+
({ label: _, value: H, mode: T }) => T === "filter" ? V1(H) : /* @__PURE__ */ r("div", { onMouseDown: l2, className: "tag-wrapper", children: /* @__PURE__ */ r(i2, { onClose: () => g1(H), disabled: d, children: typeof _ == "object" ? _ : k1(H) }) }),
|
|
5503
|
+
[d, k1, g1, V1]
|
|
5516
5504
|
), A1 = Array.isArray(V) && V.length > 0 || !!V && typeof V == "string" && V.trim() !== "";
|
|
5517
|
-
return /* @__PURE__ */
|
|
5518
|
-
/* @__PURE__ */
|
|
5505
|
+
return /* @__PURE__ */ g("div", { className: "snmt-select-container", children: [
|
|
5506
|
+
/* @__PURE__ */ g(
|
|
5519
5507
|
"div",
|
|
5520
5508
|
{
|
|
5521
5509
|
className: `snmt-select-1-15-6 ${Y ? "snmt-select-focused" : ""}
|
|
@@ -5533,18 +5521,18 @@ const M7 = ({
|
|
|
5533
5521
|
showSearch: !!s,
|
|
5534
5522
|
filterOption: s && d1,
|
|
5535
5523
|
onDropdownVisibleChange: q,
|
|
5536
|
-
disabled:
|
|
5524
|
+
disabled: d,
|
|
5537
5525
|
value: V || void 0,
|
|
5538
5526
|
labelRender: (_) => {
|
|
5539
5527
|
const H = k1(_.value);
|
|
5540
|
-
return
|
|
5528
|
+
return d ? /* @__PURE__ */ r("span", { style: { color: G.GREY_DARK_1 }, children: H }) : H;
|
|
5541
5529
|
},
|
|
5542
5530
|
mode: n === "filter" ? "multiple" : n,
|
|
5543
5531
|
onChange: S,
|
|
5544
|
-
onFocus:
|
|
5532
|
+
onFocus: Z,
|
|
5545
5533
|
onBlur: j,
|
|
5546
5534
|
onSearch: (_) => {
|
|
5547
|
-
c1(!_),
|
|
5535
|
+
c1(!_), u && u(_);
|
|
5548
5536
|
},
|
|
5549
5537
|
onSelect: () => c1(!0),
|
|
5550
5538
|
onDeselect: () => c1(!0),
|
|
@@ -5553,19 +5541,19 @@ const M7 = ({
|
|
|
5553
5541
|
maxTagPlaceholder: c2,
|
|
5554
5542
|
onPopupScroll: h2,
|
|
5555
5543
|
prefix: E && /* @__PURE__ */ r(G1, { size: "small" }),
|
|
5556
|
-
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */
|
|
5557
|
-
V && !!V.length && (n ||
|
|
5544
|
+
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */ g(U, { children: [
|
|
5545
|
+
V && !!V.length && (n || a) && /* @__PURE__ */ r(
|
|
5558
5546
|
"div",
|
|
5559
5547
|
{
|
|
5560
5548
|
onClick: C1,
|
|
5561
5549
|
style: {
|
|
5562
|
-
cursor:
|
|
5550
|
+
cursor: d ? "not-allowed" : "pointer"
|
|
5563
5551
|
},
|
|
5564
5552
|
children: /* @__PURE__ */ r(
|
|
5565
5553
|
n1,
|
|
5566
5554
|
{
|
|
5567
5555
|
name: "cancel",
|
|
5568
|
-
color:
|
|
5556
|
+
color: d ? G.GREY_DARK_1 : G.GREY_DARK_2
|
|
5569
5557
|
}
|
|
5570
5558
|
)
|
|
5571
5559
|
}
|
|
@@ -5574,7 +5562,7 @@ const M7 = ({
|
|
|
5574
5562
|
n1,
|
|
5575
5563
|
{
|
|
5576
5564
|
name: "selectArrowIcon",
|
|
5577
|
-
color:
|
|
5565
|
+
color: d ? G.GREY_DARK_1 : G.GREY_DARK_5,
|
|
5578
5566
|
className: x ? "select-arrow-rotated" : "select-arrow",
|
|
5579
5567
|
onClick: () => D(!x)
|
|
5580
5568
|
}
|
|
@@ -5582,47 +5570,47 @@ const M7 = ({
|
|
|
5582
5570
|
] }) }),
|
|
5583
5571
|
removeIcon: /* @__PURE__ */ r(n1, { name: "cancelCircle", color: G.GREY_DARK_1 }),
|
|
5584
5572
|
options: o,
|
|
5585
|
-
optionRender: (_) => b ? b(_.data) : /* @__PURE__ */
|
|
5586
|
-
/* @__PURE__ */
|
|
5573
|
+
optionRender: (_) => b ? b(_.data) : /* @__PURE__ */ g(r1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5574
|
+
/* @__PURE__ */ g(r1, { alignItems: "center", gap: 12, children: [
|
|
5587
5575
|
n && /* @__PURE__ */ r(
|
|
5588
5576
|
W2,
|
|
5589
5577
|
{
|
|
5590
5578
|
checked: !!(V != null && V.includes(_.value))
|
|
5591
5579
|
}
|
|
5592
5580
|
),
|
|
5593
|
-
/* @__PURE__ */
|
|
5581
|
+
/* @__PURE__ */ g(r1, { alignItems: "center", gap: 8, children: [
|
|
5594
5582
|
_.data.image && /* @__PURE__ */ r(Y2, { src: _.data.image, size: 20 }),
|
|
5595
5583
|
/* @__PURE__ */ r("span", { children: _.label })
|
|
5596
5584
|
] })
|
|
5597
5585
|
] }),
|
|
5598
5586
|
!n && V === _.value && /* @__PURE__ */ r(n1, { name: "check", color: G.BLUE_DARK_1 })
|
|
5599
5587
|
] }),
|
|
5600
|
-
dropdownRender: (_) => /* @__PURE__ */
|
|
5588
|
+
dropdownRender: (_) => /* @__PURE__ */ g("div", { className: "dropdown-container", children: [
|
|
5601
5589
|
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: y ? y(_) : _ }),
|
|
5602
5590
|
E && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(G1, {}) })
|
|
5603
5591
|
] })
|
|
5604
5592
|
}
|
|
5605
5593
|
),
|
|
5606
|
-
t && /* @__PURE__ */
|
|
5594
|
+
t && /* @__PURE__ */ g(U, { children: [
|
|
5607
5595
|
/* @__PURE__ */ r(
|
|
5608
5596
|
"label",
|
|
5609
5597
|
{
|
|
5610
|
-
className: `${Y || A1 ? "label-floating" : ""} ${
|
|
5611
|
-
children:
|
|
5598
|
+
className: `${Y || A1 ? "label-floating" : ""} ${d ? "label-disabled" : ""} ${Y ? "label-focused" : ""} ${E ? "label-loading" : ""} ${M ? "label-error" : ""}`,
|
|
5599
|
+
children: l ? `${t}*` : t
|
|
5612
5600
|
}
|
|
5613
5601
|
),
|
|
5614
5602
|
/* @__PURE__ */ r(
|
|
5615
5603
|
"fieldset",
|
|
5616
5604
|
{
|
|
5617
|
-
className: `${Y ? "fieldset-focused" : ""} ${
|
|
5618
|
-
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children:
|
|
5605
|
+
className: `${Y ? "fieldset-focused" : ""} ${d ? "fieldset-disabled" : ""} ${A1 ? "fieldset-filled" : ""} ${M ? "fieldset-error" : ""}`,
|
|
5606
|
+
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: l ? `${t}*` : t }) })
|
|
5619
5607
|
}
|
|
5620
5608
|
)
|
|
5621
5609
|
] })
|
|
5622
5610
|
]
|
|
5623
5611
|
}
|
|
5624
5612
|
),
|
|
5625
|
-
M && /* @__PURE__ */
|
|
5613
|
+
M && /* @__PURE__ */ g(r1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5626
5614
|
/* @__PURE__ */ r(
|
|
5627
5615
|
n1,
|
|
5628
5616
|
{
|
|
@@ -5667,10 +5655,10 @@ const M7 = ({
|
|
|
5667
5655
|
n[s] = t;
|
|
5668
5656
|
return;
|
|
5669
5657
|
}
|
|
5670
|
-
let o = e[e.length - 1], c = e.slice(0, e.length - 1),
|
|
5671
|
-
for (;
|
|
5672
|
-
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1),
|
|
5673
|
-
|
|
5658
|
+
let o = e[e.length - 1], c = e.slice(0, e.length - 1), d = a1(i, c, Object);
|
|
5659
|
+
for (; d.obj === void 0 && c.length; )
|
|
5660
|
+
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), d = a1(i, c, Object), d && d.obj && typeof d.obj[`${d.k}.${o}`] < "u" && (d.obj = void 0);
|
|
5661
|
+
d.obj[`${d.k}.${o}`] = t;
|
|
5674
5662
|
}, V7 = (i, e, t, n) => {
|
|
5675
5663
|
const {
|
|
5676
5664
|
obj: s,
|
|
@@ -5733,12 +5721,12 @@ const S7 = [" ", ",", "?", "!", ";"], G7 = new O7(20), D7 = (i, e, t) => {
|
|
|
5733
5721
|
for (let o = 0; o < n.length; ) {
|
|
5734
5722
|
if (!s || typeof s != "object")
|
|
5735
5723
|
return;
|
|
5736
|
-
let c,
|
|
5737
|
-
for (let
|
|
5738
|
-
if (
|
|
5739
|
-
if (["string", "number", "boolean"].indexOf(typeof c) > -1 &&
|
|
5724
|
+
let c, d = "";
|
|
5725
|
+
for (let l = o; l < n.length; ++l)
|
|
5726
|
+
if (l !== o && (d += t), d += n[l], c = s[d], c !== void 0) {
|
|
5727
|
+
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && l < n.length - 1)
|
|
5740
5728
|
continue;
|
|
5741
|
-
o +=
|
|
5729
|
+
o += l - o + 1;
|
|
5742
5730
|
break;
|
|
5743
5731
|
}
|
|
5744
5732
|
s = c;
|
|
@@ -5826,13 +5814,13 @@ class L1 {
|
|
|
5826
5814
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
5827
5815
|
n[s - 1] = arguments[s];
|
|
5828
5816
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
5829
|
-
let [
|
|
5830
|
-
for (let
|
|
5831
|
-
|
|
5817
|
+
let [d, l] = c;
|
|
5818
|
+
for (let a = 0; a < l; a++)
|
|
5819
|
+
d(...n);
|
|
5832
5820
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
5833
|
-
let [
|
|
5834
|
-
for (let
|
|
5835
|
-
|
|
5821
|
+
let [d, l] = c;
|
|
5822
|
+
for (let a = 0; a < l; a++)
|
|
5823
|
+
d.apply(d, [e, ...n]);
|
|
5836
5824
|
});
|
|
5837
5825
|
}
|
|
5838
5826
|
}
|
|
@@ -5854,18 +5842,18 @@ class Y1 extends L1 {
|
|
|
5854
5842
|
getResource(e, t, n) {
|
|
5855
5843
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
5856
5844
|
const o = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
5857
|
-
let
|
|
5858
|
-
e.indexOf(".") > -1 ?
|
|
5859
|
-
const
|
|
5860
|
-
return !
|
|
5845
|
+
let d;
|
|
5846
|
+
e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], n && (Array.isArray(n) ? d.push(...n) : N(n) && o ? d.push(...n.split(o)) : d.push(n)));
|
|
5847
|
+
const l = p1(this.data, d);
|
|
5848
|
+
return !l && !t && !n && e.indexOf(".") > -1 && (e = d[0], t = d[1], n = d.slice(2).join(".")), l || !c || !N(n) ? l : _1(this.data && this.data[e] && this.data[e][t], n, o);
|
|
5861
5849
|
}
|
|
5862
5850
|
addResource(e, t, n, s) {
|
|
5863
5851
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
5864
5852
|
silent: !1
|
|
5865
5853
|
};
|
|
5866
5854
|
const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
|
5867
|
-
let
|
|
5868
|
-
n && (
|
|
5855
|
+
let d = [e, t];
|
|
5856
|
+
n && (d = d.concat(c ? n.split(c) : n)), e.indexOf(".") > -1 && (d = e.split("."), s = t, t = d[1]), this.addNamespaces(t), B1(this.data, d, s), o.silent || this.emit("added", e, t, n, s);
|
|
5869
5857
|
}
|
|
5870
5858
|
addResources(e, t, n) {
|
|
5871
5859
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -5881,13 +5869,13 @@ class Y1 extends L1 {
|
|
|
5881
5869
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
5882
5870
|
silent: !1,
|
|
5883
5871
|
skipCopy: !1
|
|
5884
|
-
},
|
|
5885
|
-
e.indexOf(".") > -1 && (
|
|
5886
|
-
let
|
|
5887
|
-
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? n2(
|
|
5888
|
-
...
|
|
5872
|
+
}, d = [e, t];
|
|
5873
|
+
e.indexOf(".") > -1 && (d = e.split("."), s = n, n = t, t = d[1]), this.addNamespaces(t);
|
|
5874
|
+
let l = p1(this.data, d) || {};
|
|
5875
|
+
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? n2(l, n, o) : l = {
|
|
5876
|
+
...l,
|
|
5889
5877
|
...n
|
|
5890
|
-
}, B1(this.data,
|
|
5878
|
+
}, B1(this.data, d, l), c.silent || this.emit("added", e, t, n);
|
|
5891
5879
|
}
|
|
5892
5880
|
removeResourceBundle(e, t) {
|
|
5893
5881
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -5945,16 +5933,16 @@ class w1 extends L1 {
|
|
|
5945
5933
|
n === void 0 && (n = ":");
|
|
5946
5934
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
5947
5935
|
let o = t.ns || this.options.defaultNS || [];
|
|
5948
|
-
const c = n && e.indexOf(n) > -1,
|
|
5949
|
-
if (c && !
|
|
5950
|
-
const
|
|
5951
|
-
if (
|
|
5936
|
+
const c = n && e.indexOf(n) > -1, d = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !D7(e, n, s);
|
|
5937
|
+
if (c && !d) {
|
|
5938
|
+
const l = e.match(this.interpolator.nestingRegexp);
|
|
5939
|
+
if (l && l.length > 0)
|
|
5952
5940
|
return {
|
|
5953
5941
|
key: e,
|
|
5954
5942
|
namespaces: N(o) ? [o] : o
|
|
5955
5943
|
};
|
|
5956
|
-
const
|
|
5957
|
-
(n !== s || n === s && this.options.ns.indexOf(
|
|
5944
|
+
const a = e.split(n);
|
|
5945
|
+
(n !== s || n === s && this.options.ns.indexOf(a[0]) > -1) && (o = a.shift()), e = a.join(s);
|
|
5958
5946
|
}
|
|
5959
5947
|
return {
|
|
5960
5948
|
key: e,
|
|
@@ -5968,91 +5956,91 @@ class w1 extends L1 {
|
|
|
5968
5956
|
Array.isArray(e) || (e = [String(e)]);
|
|
5969
5957
|
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
5970
5958
|
key: c,
|
|
5971
|
-
namespaces:
|
|
5972
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
5973
|
-
if (
|
|
5974
|
-
if (
|
|
5959
|
+
namespaces: d
|
|
5960
|
+
} = this.extractFromKey(e[e.length - 1], t), l = d[d.length - 1], a = t.lng || this.language, h = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
5961
|
+
if (a && a.toLowerCase() === "cimode") {
|
|
5962
|
+
if (h) {
|
|
5975
5963
|
const m = t.nsSeparator || this.options.nsSeparator;
|
|
5976
5964
|
return s ? {
|
|
5977
|
-
res: `${
|
|
5965
|
+
res: `${l}${m}${c}`,
|
|
5978
5966
|
usedKey: c,
|
|
5979
5967
|
exactUsedKey: c,
|
|
5980
|
-
usedLng:
|
|
5981
|
-
usedNS:
|
|
5968
|
+
usedLng: a,
|
|
5969
|
+
usedNS: l,
|
|
5982
5970
|
usedParams: this.getUsedParamsDetails(t)
|
|
5983
|
-
} : `${
|
|
5971
|
+
} : `${l}${m}${c}`;
|
|
5984
5972
|
}
|
|
5985
5973
|
return s ? {
|
|
5986
5974
|
res: c,
|
|
5987
5975
|
usedKey: c,
|
|
5988
5976
|
exactUsedKey: c,
|
|
5989
|
-
usedLng:
|
|
5990
|
-
usedNS:
|
|
5977
|
+
usedLng: a,
|
|
5978
|
+
usedNS: l,
|
|
5991
5979
|
usedParams: this.getUsedParamsDetails(t)
|
|
5992
5980
|
} : c;
|
|
5993
5981
|
}
|
|
5994
|
-
const
|
|
5995
|
-
let
|
|
5996
|
-
const p =
|
|
5997
|
-
if (b &&
|
|
5982
|
+
const u = this.resolve(e, t);
|
|
5983
|
+
let C = u && u.res;
|
|
5984
|
+
const p = u && u.usedKey || c, k = u && u.exactUsedKey || c, v = Object.prototype.toString.apply(C), f = ["[object Number]", "[object Function]", "[object RegExp]"], y = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, E = !N(C) && typeof C != "boolean" && typeof C != "number";
|
|
5985
|
+
if (b && C && E && f.indexOf(v) < 0 && !(N(y) && Array.isArray(C))) {
|
|
5998
5986
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
5999
5987
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6000
|
-
const m = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p,
|
|
5988
|
+
const m = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, C, {
|
|
6001
5989
|
...t,
|
|
6002
|
-
ns:
|
|
5990
|
+
ns: d
|
|
6003
5991
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6004
|
-
return s ? (
|
|
5992
|
+
return s ? (u.res = m, u.usedParams = this.getUsedParamsDetails(t), u) : m;
|
|
6005
5993
|
}
|
|
6006
5994
|
if (o) {
|
|
6007
|
-
const m = Array.isArray(
|
|
6008
|
-
for (const x in
|
|
6009
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
5995
|
+
const m = Array.isArray(C), M = m ? [] : {}, R = m ? k : p;
|
|
5996
|
+
for (const x in C)
|
|
5997
|
+
if (Object.prototype.hasOwnProperty.call(C, x)) {
|
|
6010
5998
|
const D = `${R}${o}${x}`;
|
|
6011
5999
|
M[x] = this.translate(D, {
|
|
6012
6000
|
...t,
|
|
6013
6001
|
joinArrays: !1,
|
|
6014
|
-
ns:
|
|
6015
|
-
}), M[x] === D && (M[x] =
|
|
6002
|
+
ns: d
|
|
6003
|
+
}), M[x] === D && (M[x] = C[x]);
|
|
6016
6004
|
}
|
|
6017
|
-
|
|
6005
|
+
C = M;
|
|
6018
6006
|
}
|
|
6019
|
-
} else if (b && N(y) && Array.isArray(
|
|
6020
|
-
|
|
6007
|
+
} else if (b && N(y) && Array.isArray(C))
|
|
6008
|
+
C = C.join(y), C && (C = this.extendTranslation(C, e, t, n));
|
|
6021
6009
|
else {
|
|
6022
6010
|
let m = !1, M = !1;
|
|
6023
|
-
const R = t.count !== void 0 && !N(t.count), x = w1.hasDefaultValue(t), D = R ? this.pluralResolver.getSuffix(
|
|
6011
|
+
const R = t.count !== void 0 && !N(t.count), x = w1.hasDefaultValue(t), D = R ? this.pluralResolver.getSuffix(a, t.count, t) : "", Y = t.ordinal && R ? this.pluralResolver.getSuffix(a, t.count, {
|
|
6024
6012
|
ordinal: !1
|
|
6025
6013
|
}) : "", i1 = R && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), $ = i1 && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${D}`] || t[`defaultValue${Y}`] || t.defaultValue;
|
|
6026
|
-
!this.isValidLookup(
|
|
6027
|
-
const V = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 :
|
|
6014
|
+
!this.isValidLookup(C) && x && (m = !0, C = $), this.isValidLookup(C) || (M = !0, C = c);
|
|
6015
|
+
const V = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : C, P = x && $ !== C && this.options.updateMissing;
|
|
6028
6016
|
if (M || m || P) {
|
|
6029
|
-
if (this.logger.log(P ? "updateKey" : "missingKey",
|
|
6030
|
-
const
|
|
6017
|
+
if (this.logger.log(P ? "updateKey" : "missingKey", a, l, c, P ? $ : C), o) {
|
|
6018
|
+
const Z = this.resolve(c, {
|
|
6031
6019
|
...t,
|
|
6032
6020
|
keySeparator: !1
|
|
6033
6021
|
});
|
|
6034
|
-
|
|
6022
|
+
Z && Z.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.");
|
|
6035
6023
|
}
|
|
6036
6024
|
let F = [];
|
|
6037
6025
|
const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
6038
6026
|
if (this.options.saveMissingTo === "fallback" && q && q[0])
|
|
6039
|
-
for (let
|
|
6040
|
-
F.push(q[
|
|
6027
|
+
for (let Z = 0; Z < q.length; Z++)
|
|
6028
|
+
F.push(q[Z]);
|
|
6041
6029
|
else this.options.saveMissingTo === "all" ? F = this.languageUtils.toResolveHierarchy(t.lng || this.language) : F.push(t.lng || this.language);
|
|
6042
|
-
const d1 = (
|
|
6043
|
-
const C1 = x && S !==
|
|
6044
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
6030
|
+
const d1 = (Z, j, S) => {
|
|
6031
|
+
const C1 = x && S !== C ? S : V;
|
|
6032
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(Z, l, j, C1, P, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Z, l, j, C1, P, t), this.emit("missingKey", Z, l, j, C);
|
|
6045
6033
|
};
|
|
6046
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && R ? F.forEach((
|
|
6047
|
-
const j = this.pluralResolver.getSuffixes(
|
|
6034
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && R ? F.forEach((Z) => {
|
|
6035
|
+
const j = this.pluralResolver.getSuffixes(Z, t);
|
|
6048
6036
|
i1 && t[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((S) => {
|
|
6049
|
-
d1([
|
|
6037
|
+
d1([Z], c + S, t[`defaultValue${S}`] || $);
|
|
6050
6038
|
});
|
|
6051
6039
|
}) : d1(F, c, $));
|
|
6052
6040
|
}
|
|
6053
|
-
|
|
6041
|
+
C = this.extendTranslation(C, e, t, u, n), M && C === c && this.options.appendNamespaceToMissingKey && (C = `${l}:${c}`), (M || m) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? C = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${c}` : c, m ? C : void 0) : C = this.options.parseMissingKeyHandler(C));
|
|
6054
6042
|
}
|
|
6055
|
-
return s ? (
|
|
6043
|
+
return s ? (u.res = C, u.usedParams = this.getUsedParamsDetails(t), u) : C;
|
|
6056
6044
|
}
|
|
6057
6045
|
extendTranslation(e, t, n, s, o) {
|
|
6058
6046
|
var c = this;
|
|
@@ -6071,28 +6059,28 @@ class w1 extends L1 {
|
|
|
6071
6059
|
...n.interpolation
|
|
6072
6060
|
}
|
|
6073
6061
|
});
|
|
6074
|
-
const
|
|
6075
|
-
let
|
|
6076
|
-
if (
|
|
6077
|
-
const
|
|
6078
|
-
|
|
6062
|
+
const a = N(e) && (n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
6063
|
+
let h;
|
|
6064
|
+
if (a) {
|
|
6065
|
+
const C = e.match(this.interpolator.nestingRegexp);
|
|
6066
|
+
h = C && C.length;
|
|
6079
6067
|
}
|
|
6080
|
-
let
|
|
6081
|
-
if (this.options.interpolation.defaultVariables && (
|
|
6068
|
+
let u = n.replace && !N(n.replace) ? n.replace : n;
|
|
6069
|
+
if (this.options.interpolation.defaultVariables && (u = {
|
|
6082
6070
|
...this.options.interpolation.defaultVariables,
|
|
6083
|
-
...
|
|
6084
|
-
}), e = this.interpolator.interpolate(e,
|
|
6085
|
-
const
|
|
6086
|
-
|
|
6071
|
+
...u
|
|
6072
|
+
}), e = this.interpolator.interpolate(e, u, n.lng || this.language || s.usedLng, n), a) {
|
|
6073
|
+
const C = e.match(this.interpolator.nestingRegexp), p = C && C.length;
|
|
6074
|
+
h < p && (n.nest = !1);
|
|
6087
6075
|
}
|
|
6088
6076
|
!n.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6089
|
-
for (var
|
|
6077
|
+
for (var C = arguments.length, p = new Array(C), k = 0; k < C; k++)
|
|
6090
6078
|
p[k] = arguments[k];
|
|
6091
6079
|
return o && o[0] === p[0] && !n.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
6092
6080
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
6093
6081
|
}
|
|
6094
|
-
const
|
|
6095
|
-
return e != null &&
|
|
6082
|
+
const d = n.postProcess || this.options.postProcess, l = N(d) ? [d] : d;
|
|
6083
|
+
return e != null && l && l.length && n.applyPostProcessor !== !1 && (e = s2.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6096
6084
|
i18nResolved: {
|
|
6097
6085
|
...s,
|
|
6098
6086
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -6101,28 +6089,28 @@ class w1 extends L1 {
|
|
|
6101
6089
|
} : n, this)), e;
|
|
6102
6090
|
}
|
|
6103
6091
|
resolve(e) {
|
|
6104
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s, o, c,
|
|
6105
|
-
return N(e) && (e = [e]), e.forEach((
|
|
6092
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s, o, c, d;
|
|
6093
|
+
return N(e) && (e = [e]), e.forEach((l) => {
|
|
6106
6094
|
if (this.isValidLookup(n)) return;
|
|
6107
|
-
const
|
|
6108
|
-
s =
|
|
6109
|
-
let
|
|
6110
|
-
this.options.fallbackNS && (
|
|
6111
|
-
const
|
|
6112
|
-
|
|
6113
|
-
this.isValidLookup(n) || (
|
|
6095
|
+
const a = this.extractFromKey(l, t), h = a.key;
|
|
6096
|
+
s = h;
|
|
6097
|
+
let u = a.namespaces;
|
|
6098
|
+
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
6099
|
+
const C = t.count !== void 0 && !N(t.count), p = C && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = t.context !== void 0 && (N(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6100
|
+
u.forEach((f) => {
|
|
6101
|
+
this.isValidLookup(n) || (d = f, !P1[`${v[0]}-${f}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (P1[`${v[0]}-${f}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((y) => {
|
|
6114
6102
|
if (this.isValidLookup(n)) return;
|
|
6115
6103
|
c = y;
|
|
6116
|
-
const b = [
|
|
6104
|
+
const b = [h];
|
|
6117
6105
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6118
|
-
this.i18nFormat.addLookupKeys(b,
|
|
6106
|
+
this.i18nFormat.addLookupKeys(b, h, y, f, t);
|
|
6119
6107
|
else {
|
|
6120
6108
|
let m;
|
|
6121
|
-
|
|
6109
|
+
C && (m = this.pluralResolver.getSuffix(y, t.count, t));
|
|
6122
6110
|
const M = `${this.options.pluralSeparator}zero`, R = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6123
|
-
if (
|
|
6124
|
-
const x = `${
|
|
6125
|
-
b.push(x),
|
|
6111
|
+
if (C && (b.push(h + m), t.ordinal && m.indexOf(R) === 0 && b.push(h + m.replace(R, this.options.pluralSeparator)), p && b.push(h + M)), k) {
|
|
6112
|
+
const x = `${h}${this.options.contextSeparator}${t.context}`;
|
|
6113
|
+
b.push(x), C && (b.push(x + m), t.ordinal && m.indexOf(R) === 0 && b.push(x + m.replace(R, this.options.pluralSeparator)), p && b.push(x + M));
|
|
6126
6114
|
}
|
|
6127
6115
|
}
|
|
6128
6116
|
let E;
|
|
@@ -6135,7 +6123,7 @@ class w1 extends L1 {
|
|
|
6135
6123
|
usedKey: s,
|
|
6136
6124
|
exactUsedKey: o,
|
|
6137
6125
|
usedLng: c,
|
|
6138
|
-
usedNS:
|
|
6126
|
+
usedNS: d
|
|
6139
6127
|
};
|
|
6140
6128
|
}
|
|
6141
6129
|
isValidLookup(e) {
|
|
@@ -6396,8 +6384,8 @@ class $7 {
|
|
|
6396
6384
|
});
|
|
6397
6385
|
} catch {
|
|
6398
6386
|
if (!e.match(/-|_/)) return;
|
|
6399
|
-
const
|
|
6400
|
-
c = this.getRule(
|
|
6387
|
+
const l = this.languageUtils.getLanguagePartFromCode(e);
|
|
6388
|
+
c = this.getRule(l, t);
|
|
6401
6389
|
}
|
|
6402
6390
|
return this.pluralRulesCache[o] = c, c;
|
|
6403
6391
|
}
|
|
@@ -6453,12 +6441,12 @@ class F7 {
|
|
|
6453
6441
|
useRawValueToEscape: s,
|
|
6454
6442
|
prefix: o,
|
|
6455
6443
|
prefixEscaped: c,
|
|
6456
|
-
suffix:
|
|
6457
|
-
suffixEscaped:
|
|
6458
|
-
formatSeparator:
|
|
6459
|
-
unescapeSuffix:
|
|
6460
|
-
unescapePrefix:
|
|
6461
|
-
nestingPrefix:
|
|
6444
|
+
suffix: d,
|
|
6445
|
+
suffixEscaped: l,
|
|
6446
|
+
formatSeparator: a,
|
|
6447
|
+
unescapeSuffix: h,
|
|
6448
|
+
unescapePrefix: u,
|
|
6449
|
+
nestingPrefix: C,
|
|
6462
6450
|
nestingPrefixEscaped: p,
|
|
6463
6451
|
nestingSuffix: k,
|
|
6464
6452
|
nestingSuffixEscaped: v,
|
|
@@ -6466,7 +6454,7 @@ class F7 {
|
|
|
6466
6454
|
maxReplaces: y,
|
|
6467
6455
|
alwaysFormat: b
|
|
6468
6456
|
} = e.interpolation;
|
|
6469
|
-
this.escape = t !== void 0 ? t : Z7, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? X(o) : c || "{{", this.suffix =
|
|
6457
|
+
this.escape = t !== void 0 ? t : Z7, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? X(o) : c || "{{", this.suffix = d ? X(d) : l || "}}", this.formatSeparator = a || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = C ? X(C) : p || X("$t("), this.nestingSuffix = k ? X(k) : v || X(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
6470
6458
|
}
|
|
6471
6459
|
reset() {
|
|
6472
6460
|
this.options && this.init(this.options);
|
|
@@ -6476,10 +6464,10 @@ class F7 {
|
|
|
6476
6464
|
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}`);
|
|
6477
6465
|
}
|
|
6478
6466
|
interpolate(e, t, n, s) {
|
|
6479
|
-
let o, c,
|
|
6480
|
-
const
|
|
6467
|
+
let o, c, d;
|
|
6468
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (p) => {
|
|
6481
6469
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
6482
|
-
const y = F1(t,
|
|
6470
|
+
const y = F1(t, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
6483
6471
|
return this.alwaysFormat ? this.format(y, void 0, n, {
|
|
6484
6472
|
...s,
|
|
6485
6473
|
...t,
|
|
@@ -6487,14 +6475,14 @@ class F7 {
|
|
|
6487
6475
|
}) : y;
|
|
6488
6476
|
}
|
|
6489
6477
|
const k = p.split(this.formatSeparator), v = k.shift().trim(), f = k.join(this.formatSeparator).trim();
|
|
6490
|
-
return this.format(F1(t,
|
|
6478
|
+
return this.format(F1(t, l, v, this.options.keySeparator, this.options.ignoreJSONStructure), f, n, {
|
|
6491
6479
|
...s,
|
|
6492
6480
|
...t,
|
|
6493
6481
|
interpolationkey: v
|
|
6494
6482
|
});
|
|
6495
6483
|
};
|
|
6496
6484
|
this.resetRegExp();
|
|
6497
|
-
const
|
|
6485
|
+
const h = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler, u = s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
6498
6486
|
return [{
|
|
6499
6487
|
regex: this.regexpUnescape,
|
|
6500
6488
|
safeValue: (p) => R1(p)
|
|
@@ -6502,58 +6490,58 @@ class F7 {
|
|
|
6502
6490
|
regex: this.regexp,
|
|
6503
6491
|
safeValue: (p) => this.escapeValue ? R1(this.escape(p)) : R1(p)
|
|
6504
6492
|
}].forEach((p) => {
|
|
6505
|
-
for (
|
|
6493
|
+
for (d = 0; o = p.regex.exec(e); ) {
|
|
6506
6494
|
const k = o[1].trim();
|
|
6507
|
-
if (c =
|
|
6508
|
-
if (typeof
|
|
6509
|
-
const f =
|
|
6495
|
+
if (c = a(k), c === void 0)
|
|
6496
|
+
if (typeof h == "function") {
|
|
6497
|
+
const f = h(e, o, s);
|
|
6510
6498
|
c = N(f) ? f : "";
|
|
6511
6499
|
} else if (s && Object.prototype.hasOwnProperty.call(s, k))
|
|
6512
6500
|
c = "";
|
|
6513
|
-
else if (
|
|
6501
|
+
else if (u) {
|
|
6514
6502
|
c = o[0];
|
|
6515
6503
|
continue;
|
|
6516
6504
|
} else
|
|
6517
6505
|
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
|
|
6518
6506
|
else !N(c) && !this.useRawValueToEscape && (c = D1(c));
|
|
6519
6507
|
const v = p.safeValue(c);
|
|
6520
|
-
if (e = e.replace(o[0], v),
|
|
6508
|
+
if (e = e.replace(o[0], v), u ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, d++, d >= this.maxReplaces)
|
|
6521
6509
|
break;
|
|
6522
6510
|
}
|
|
6523
6511
|
}), e;
|
|
6524
6512
|
}
|
|
6525
6513
|
nest(e, t) {
|
|
6526
6514
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, o, c;
|
|
6527
|
-
const
|
|
6528
|
-
const
|
|
6529
|
-
if (
|
|
6530
|
-
const
|
|
6531
|
-
let
|
|
6532
|
-
|
|
6533
|
-
const p =
|
|
6534
|
-
(p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (
|
|
6515
|
+
const d = (l, a) => {
|
|
6516
|
+
const h = this.nestingOptionsSeparator;
|
|
6517
|
+
if (l.indexOf(h) < 0) return l;
|
|
6518
|
+
const u = l.split(new RegExp(`${h}[ ]*{`));
|
|
6519
|
+
let C = `{${u[1]}`;
|
|
6520
|
+
l = u[0], C = this.interpolate(C, c);
|
|
6521
|
+
const p = C.match(/'/g), k = C.match(/"/g);
|
|
6522
|
+
(p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (C = C.replace(/'/g, '"'));
|
|
6535
6523
|
try {
|
|
6536
|
-
c = JSON.parse(
|
|
6537
|
-
...
|
|
6524
|
+
c = JSON.parse(C), a && (c = {
|
|
6525
|
+
...a,
|
|
6538
6526
|
...c
|
|
6539
6527
|
});
|
|
6540
6528
|
} catch (v) {
|
|
6541
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
6529
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, v), `${l}${h}${C}`;
|
|
6542
6530
|
}
|
|
6543
|
-
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue,
|
|
6531
|
+
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, l;
|
|
6544
6532
|
};
|
|
6545
6533
|
for (; s = this.nestingRegexp.exec(e); ) {
|
|
6546
|
-
let
|
|
6534
|
+
let l = [];
|
|
6547
6535
|
c = {
|
|
6548
6536
|
...n
|
|
6549
6537
|
}, c = c.replace && !N(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
|
6550
|
-
let
|
|
6538
|
+
let a = !1;
|
|
6551
6539
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
6552
|
-
const
|
|
6553
|
-
s[1] =
|
|
6540
|
+
const h = s[1].split(this.formatSeparator).map((u) => u.trim());
|
|
6541
|
+
s[1] = h.shift(), l = h, a = !0;
|
|
6554
6542
|
}
|
|
6555
|
-
if (o = t(
|
|
6556
|
-
N(o) || (o = D1(o)), o || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), o = ""),
|
|
6543
|
+
if (o = t(d.call(this, s[1].trim(), c), c), o && s[0] === e && !N(o)) return o;
|
|
6544
|
+
N(o) || (o = D1(o)), o || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), o = ""), a && (o = l.reduce((h, u) => this.format(h, u, n.lng, {
|
|
6557
6545
|
...n,
|
|
6558
6546
|
interpolationkey: s[1].trim()
|
|
6559
6547
|
}), o.trim())), e = e.replace(s[0], o), this.regexp.lastIndex = 0;
|
|
@@ -6570,8 +6558,8 @@ const W7 = (i) => {
|
|
|
6570
6558
|
const s = n[1].substring(0, n[1].length - 1);
|
|
6571
6559
|
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((c) => {
|
|
6572
6560
|
if (c) {
|
|
6573
|
-
const [
|
|
6574
|
-
t[
|
|
6561
|
+
const [d, ...l] = c.split(":"), a = l.join(":").trim().replace(/^'+|'+$/g, ""), h = d.trim();
|
|
6562
|
+
t[h] || (t[h] = a), a === "false" && (t[h] = !1), a === "true" && (t[h] = !0), isNaN(a) || (t[h] = parseInt(a, 10));
|
|
6575
6563
|
}
|
|
6576
6564
|
});
|
|
6577
6565
|
}
|
|
@@ -6588,8 +6576,8 @@ const W7 = (i) => {
|
|
|
6588
6576
|
[s.interpolationkey]: void 0
|
|
6589
6577
|
});
|
|
6590
6578
|
const c = n + JSON.stringify(o);
|
|
6591
|
-
let
|
|
6592
|
-
return
|
|
6579
|
+
let d = e[c];
|
|
6580
|
+
return d || (d = i(f1(n), s), e[c] = d), d(t);
|
|
6593
6581
|
};
|
|
6594
6582
|
};
|
|
6595
6583
|
class U7 {
|
|
@@ -6644,31 +6632,31 @@ class U7 {
|
|
|
6644
6632
|
format(e, t, n) {
|
|
6645
6633
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6646
6634
|
const o = t.split(this.formatSeparator);
|
|
6647
|
-
if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((
|
|
6648
|
-
const
|
|
6649
|
-
o[0] = [o[0], ...o.splice(1,
|
|
6635
|
+
if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((d) => d.indexOf(")") > -1)) {
|
|
6636
|
+
const d = o.findIndex((l) => l.indexOf(")") > -1);
|
|
6637
|
+
o[0] = [o[0], ...o.splice(1, d)].join(this.formatSeparator);
|
|
6650
6638
|
}
|
|
6651
|
-
return o.reduce((
|
|
6639
|
+
return o.reduce((d, l) => {
|
|
6652
6640
|
const {
|
|
6653
|
-
formatName:
|
|
6654
|
-
formatOptions:
|
|
6655
|
-
} = W7(
|
|
6656
|
-
if (this.formats[
|
|
6657
|
-
let
|
|
6641
|
+
formatName: a,
|
|
6642
|
+
formatOptions: h
|
|
6643
|
+
} = W7(l);
|
|
6644
|
+
if (this.formats[a]) {
|
|
6645
|
+
let u = d;
|
|
6658
6646
|
try {
|
|
6659
|
-
const
|
|
6660
|
-
|
|
6661
|
-
...
|
|
6647
|
+
const C = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, p = C.locale || C.lng || s.locale || s.lng || n;
|
|
6648
|
+
u = this.formats[a](d, p, {
|
|
6649
|
+
...h,
|
|
6662
6650
|
...s,
|
|
6663
|
-
...
|
|
6651
|
+
...C
|
|
6664
6652
|
});
|
|
6665
|
-
} catch (
|
|
6666
|
-
this.logger.warn(
|
|
6653
|
+
} catch (C) {
|
|
6654
|
+
this.logger.warn(C);
|
|
6667
6655
|
}
|
|
6668
|
-
return
|
|
6656
|
+
return u;
|
|
6669
6657
|
} else
|
|
6670
|
-
this.logger.warn(`there was no format function for ${
|
|
6671
|
-
return
|
|
6658
|
+
this.logger.warn(`there was no format function for ${a}`);
|
|
6659
|
+
return d;
|
|
6672
6660
|
}, e);
|
|
6673
6661
|
}
|
|
6674
6662
|
}
|
|
@@ -6681,13 +6669,13 @@ class J7 extends L1 {
|
|
|
6681
6669
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = B.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(n, s.backend, s);
|
|
6682
6670
|
}
|
|
6683
6671
|
queueLoad(e, t, n, s) {
|
|
6684
|
-
const o = {}, c = {},
|
|
6685
|
-
return e.forEach((
|
|
6686
|
-
let
|
|
6687
|
-
t.forEach((
|
|
6688
|
-
const
|
|
6689
|
-
!n.reload && this.store.hasResourceBundle(
|
|
6690
|
-
}),
|
|
6672
|
+
const o = {}, c = {}, d = {}, l = {};
|
|
6673
|
+
return e.forEach((a) => {
|
|
6674
|
+
let h = !0;
|
|
6675
|
+
t.forEach((u) => {
|
|
6676
|
+
const C = `${a}|${u}`;
|
|
6677
|
+
!n.reload && this.store.hasResourceBundle(a, u) ? this.state[C] = 2 : this.state[C] < 0 || (this.state[C] === 1 ? c[C] === void 0 && (c[C] = !0) : (this.state[C] = 1, h = !1, c[C] === void 0 && (c[C] = !0), o[C] === void 0 && (o[C] = !0), l[u] === void 0 && (l[u] = !0)));
|
|
6678
|
+
}), h || (d[a] = !0);
|
|
6691
6679
|
}), (Object.keys(o).length || Object.keys(c).length) && this.queue.push({
|
|
6692
6680
|
pending: c,
|
|
6693
6681
|
pendingCount: Object.keys(c).length,
|
|
@@ -6697,8 +6685,8 @@ class J7 extends L1 {
|
|
|
6697
6685
|
}), {
|
|
6698
6686
|
toLoad: Object.keys(o),
|
|
6699
6687
|
pending: Object.keys(c),
|
|
6700
|
-
toLoadLanguages: Object.keys(
|
|
6701
|
-
toLoadNamespaces: Object.keys(
|
|
6688
|
+
toLoadLanguages: Object.keys(d),
|
|
6689
|
+
toLoadNamespaces: Object.keys(l)
|
|
6702
6690
|
};
|
|
6703
6691
|
}
|
|
6704
6692
|
loaded(e, t, n) {
|
|
@@ -6706,16 +6694,16 @@ class J7 extends L1 {
|
|
|
6706
6694
|
t && this.emit("failedLoading", o, c, t), !t && n && this.store.addResourceBundle(o, c, n, void 0, void 0, {
|
|
6707
6695
|
skipCopy: !0
|
|
6708
6696
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
6709
|
-
const
|
|
6710
|
-
this.queue.forEach((
|
|
6711
|
-
V7(
|
|
6712
|
-
a
|
|
6713
|
-
const
|
|
6714
|
-
|
|
6715
|
-
a
|
|
6697
|
+
const d = {};
|
|
6698
|
+
this.queue.forEach((l) => {
|
|
6699
|
+
V7(l.loaded, [o], c), z7(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((a) => {
|
|
6700
|
+
d[a] || (d[a] = {});
|
|
6701
|
+
const h = l.loaded[a];
|
|
6702
|
+
h.length && h.forEach((u) => {
|
|
6703
|
+
d[a][u] === void 0 && (d[a][u] = !0);
|
|
6716
6704
|
});
|
|
6717
|
-
}),
|
|
6718
|
-
}), this.emit("loaded",
|
|
6705
|
+
}), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
|
|
6706
|
+
}), this.emit("loaded", d), this.queue = this.queue.filter((l) => !l.done);
|
|
6719
6707
|
}
|
|
6720
6708
|
read(e, t, n) {
|
|
6721
6709
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
@@ -6732,29 +6720,29 @@ class J7 extends L1 {
|
|
|
6732
6720
|
return;
|
|
6733
6721
|
}
|
|
6734
6722
|
this.readingCalls++;
|
|
6735
|
-
const
|
|
6723
|
+
const d = (a, h) => {
|
|
6736
6724
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
6737
|
-
const
|
|
6738
|
-
this.read(
|
|
6725
|
+
const u = this.waitingReads.shift();
|
|
6726
|
+
this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
|
|
6739
6727
|
}
|
|
6740
|
-
if (
|
|
6728
|
+
if (a && h && s < this.maxRetries) {
|
|
6741
6729
|
setTimeout(() => {
|
|
6742
6730
|
this.read.call(this, e, t, n, s + 1, o * 2, c);
|
|
6743
6731
|
}, o);
|
|
6744
6732
|
return;
|
|
6745
6733
|
}
|
|
6746
|
-
c(
|
|
6747
|
-
},
|
|
6748
|
-
if (
|
|
6734
|
+
c(a, h);
|
|
6735
|
+
}, l = this.backend[n].bind(this.backend);
|
|
6736
|
+
if (l.length === 2) {
|
|
6749
6737
|
try {
|
|
6750
|
-
const
|
|
6751
|
-
|
|
6752
|
-
} catch (
|
|
6753
|
-
a
|
|
6738
|
+
const a = l(e, t);
|
|
6739
|
+
a && typeof a.then == "function" ? a.then((h) => d(null, h)).catch(d) : d(null, a);
|
|
6740
|
+
} catch (a) {
|
|
6741
|
+
d(a);
|
|
6754
6742
|
}
|
|
6755
6743
|
return;
|
|
6756
6744
|
}
|
|
6757
|
-
return
|
|
6745
|
+
return l(e, t, d);
|
|
6758
6746
|
}
|
|
6759
6747
|
prepareLoading(e, t) {
|
|
6760
6748
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
|
|
@@ -6779,12 +6767,12 @@ class J7 extends L1 {
|
|
|
6779
6767
|
loadOne(e) {
|
|
6780
6768
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
6781
6769
|
const n = e.split("|"), s = n[0], o = n[1];
|
|
6782
|
-
this.read(s, o, "read", void 0, void 0, (c,
|
|
6783
|
-
c && this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`, c), !c &&
|
|
6770
|
+
this.read(s, o, "read", void 0, void 0, (c, d) => {
|
|
6771
|
+
c && this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`, c), !c && d && this.logger.log(`${t}loaded namespace ${o} for language ${s}`, d), this.loaded(e, c, d);
|
|
6784
6772
|
});
|
|
6785
6773
|
}
|
|
6786
6774
|
saveMissing(e, t, n, s, o) {
|
|
6787
|
-
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
6775
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, d = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
6788
6776
|
};
|
|
6789
6777
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
6790
6778
|
this.logger.warn(`did not save key "${n}" 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!!!");
|
|
@@ -6792,19 +6780,19 @@ class J7 extends L1 {
|
|
|
6792
6780
|
}
|
|
6793
6781
|
if (!(n == null || n === "")) {
|
|
6794
6782
|
if (this.backend && this.backend.create) {
|
|
6795
|
-
const
|
|
6783
|
+
const l = {
|
|
6796
6784
|
...c,
|
|
6797
6785
|
isUpdate: o
|
|
6798
|
-
},
|
|
6799
|
-
if (
|
|
6786
|
+
}, a = this.backend.create.bind(this.backend);
|
|
6787
|
+
if (a.length < 6)
|
|
6800
6788
|
try {
|
|
6801
|
-
let
|
|
6802
|
-
|
|
6803
|
-
} catch (
|
|
6804
|
-
|
|
6789
|
+
let h;
|
|
6790
|
+
a.length === 5 ? h = a(e, t, n, s, l) : h = a(e, t, n, s), h && typeof h.then == "function" ? h.then((u) => d(null, u)).catch(d) : d(null, h);
|
|
6791
|
+
} catch (h) {
|
|
6792
|
+
d(h);
|
|
6805
6793
|
}
|
|
6806
6794
|
else
|
|
6807
|
-
|
|
6795
|
+
a(e, t, n, s, d, l);
|
|
6808
6796
|
}
|
|
6809
6797
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
6810
6798
|
}
|
|
@@ -6898,25 +6886,25 @@ class l1 extends L1 {
|
|
|
6898
6886
|
...s.interpolation,
|
|
6899
6887
|
...this.options.interpolation
|
|
6900
6888
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
6901
|
-
const o = (
|
|
6889
|
+
const o = (h) => h ? typeof h == "function" ? new h() : h : null;
|
|
6902
6890
|
if (!this.options.isClone) {
|
|
6903
6891
|
this.modules.logger ? B.init(o(this.modules.logger), this.options) : B.init(null, this.options);
|
|
6904
|
-
let
|
|
6905
|
-
this.modules.formatter ?
|
|
6906
|
-
const
|
|
6892
|
+
let h;
|
|
6893
|
+
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = U7);
|
|
6894
|
+
const u = new j1(this.options);
|
|
6907
6895
|
this.store = new Y1(this.options.resources, this.options);
|
|
6908
|
-
const
|
|
6909
|
-
|
|
6896
|
+
const C = this.services;
|
|
6897
|
+
C.logger = B, C.resourceStore = this.store, C.languageUtils = u, C.pluralResolver = new $7(u, {
|
|
6910
6898
|
prepend: this.options.pluralSeparator,
|
|
6911
6899
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
6912
6900
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
6913
|
-
}),
|
|
6901
|
+
}), h && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (C.formatter = o(h), C.formatter.init(C, this.options), this.options.interpolation.format = C.formatter.format.bind(C.formatter)), C.interpolator = new F7(this.options), C.utils = {
|
|
6914
6902
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
6915
|
-
},
|
|
6903
|
+
}, C.backendConnector = new J7(o(this.modules.backend), C.resourceStore, C, this.options), C.backendConnector.on("*", function(p) {
|
|
6916
6904
|
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), f = 1; f < k; f++)
|
|
6917
6905
|
v[f - 1] = arguments[f];
|
|
6918
6906
|
e.emit(p, ...v);
|
|
6919
|
-
}), this.modules.languageDetector && (
|
|
6907
|
+
}), this.modules.languageDetector && (C.languageDetector = o(this.modules.languageDetector), C.languageDetector.init && C.languageDetector.init(C, this.options.detection, this.options)), this.modules.i18nFormat && (C.i18nFormat = o(this.modules.i18nFormat), C.i18nFormat.init && C.i18nFormat.init(this)), this.translator = new w1(this.services, this.options), this.translator.on("*", function(p) {
|
|
6920
6908
|
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), f = 1; f < k; f++)
|
|
6921
6909
|
v[f - 1] = arguments[f];
|
|
6922
6910
|
e.emit(p, ...v);
|
|
@@ -6925,40 +6913,40 @@ class l1 extends L1 {
|
|
|
6925
6913
|
});
|
|
6926
6914
|
}
|
|
6927
6915
|
if (this.format = this.options.interpolation.format, n || (n = u1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
6928
|
-
const
|
|
6929
|
-
|
|
6916
|
+
const h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
6917
|
+
h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
|
|
6930
6918
|
}
|
|
6931
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((
|
|
6932
|
-
this[
|
|
6933
|
-
return e.store[
|
|
6919
|
+
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((h) => {
|
|
6920
|
+
this[h] = function() {
|
|
6921
|
+
return e.store[h](...arguments);
|
|
6934
6922
|
};
|
|
6935
|
-
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((
|
|
6936
|
-
this[
|
|
6937
|
-
return e.store[
|
|
6923
|
+
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((h) => {
|
|
6924
|
+
this[h] = function() {
|
|
6925
|
+
return e.store[h](...arguments), e;
|
|
6938
6926
|
};
|
|
6939
6927
|
});
|
|
6940
|
-
const
|
|
6941
|
-
const
|
|
6942
|
-
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),
|
|
6928
|
+
const l = s1(), a = () => {
|
|
6929
|
+
const h = (u, C) => {
|
|
6930
|
+
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), l.resolve(C), n(u, C);
|
|
6943
6931
|
};
|
|
6944
|
-
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return
|
|
6945
|
-
this.changeLanguage(this.options.lng,
|
|
6932
|
+
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return h(null, this.t.bind(this));
|
|
6933
|
+
this.changeLanguage(this.options.lng, h);
|
|
6946
6934
|
};
|
|
6947
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
6935
|
+
return this.options.resources || !this.options.initImmediate ? a() : setTimeout(a, 0), l;
|
|
6948
6936
|
}
|
|
6949
6937
|
loadResources(e) {
|
|
6950
6938
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : u1;
|
|
6951
6939
|
const s = N(e) ? e : this.language;
|
|
6952
6940
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
6953
6941
|
if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
6954
|
-
const o = [], c = (
|
|
6955
|
-
if (!
|
|
6956
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
6957
|
-
|
|
6942
|
+
const o = [], c = (d) => {
|
|
6943
|
+
if (!d || d === "cimode") return;
|
|
6944
|
+
this.services.languageUtils.toResolveHierarchy(d).forEach((a) => {
|
|
6945
|
+
a !== "cimode" && o.indexOf(a) < 0 && o.push(a);
|
|
6958
6946
|
});
|
|
6959
6947
|
};
|
|
6960
|
-
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
6961
|
-
!
|
|
6948
|
+
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => c(l)), this.options.preload && this.options.preload.forEach((d) => c(d)), this.services.backendConnector.load(o, this.options.ns, (d) => {
|
|
6949
|
+
!d && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(d);
|
|
6962
6950
|
});
|
|
6963
6951
|
} else
|
|
6964
6952
|
n(null);
|
|
@@ -6989,39 +6977,39 @@ class l1 extends L1 {
|
|
|
6989
6977
|
this.isLanguageChangingTo = e;
|
|
6990
6978
|
const s = s1();
|
|
6991
6979
|
this.emit("languageChanging", e);
|
|
6992
|
-
const o = (
|
|
6993
|
-
this.language =
|
|
6994
|
-
}, c = (
|
|
6995
|
-
|
|
6980
|
+
const o = (l) => {
|
|
6981
|
+
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
6982
|
+
}, c = (l, a) => {
|
|
6983
|
+
a ? (o(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, s.resolve(function() {
|
|
6996
6984
|
return n.t(...arguments);
|
|
6997
|
-
}), t && t(
|
|
6985
|
+
}), t && t(l, function() {
|
|
6998
6986
|
return n.t(...arguments);
|
|
6999
6987
|
});
|
|
7000
|
-
},
|
|
7001
|
-
!e && !
|
|
7002
|
-
const
|
|
7003
|
-
|
|
7004
|
-
c(
|
|
6988
|
+
}, d = (l) => {
|
|
6989
|
+
!e && !l && this.services.languageDetector && (l = []);
|
|
6990
|
+
const a = N(l) ? l : this.services.languageUtils.getBestMatchFromCodes(l);
|
|
6991
|
+
a && (this.language || o(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(a)), this.loadResources(a, (h) => {
|
|
6992
|
+
c(h, a);
|
|
7005
6993
|
});
|
|
7006
6994
|
};
|
|
7007
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
6995
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? d(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(d) : this.services.languageDetector.detect(d) : d(e), s;
|
|
7008
6996
|
}
|
|
7009
6997
|
getFixedT(e, t, n) {
|
|
7010
6998
|
var s = this;
|
|
7011
|
-
const o = function(c,
|
|
7012
|
-
let
|
|
7013
|
-
if (typeof
|
|
7014
|
-
for (var
|
|
7015
|
-
|
|
7016
|
-
|
|
6999
|
+
const o = function(c, d) {
|
|
7000
|
+
let l;
|
|
7001
|
+
if (typeof d != "object") {
|
|
7002
|
+
for (var a = arguments.length, h = new Array(a > 2 ? a - 2 : 0), u = 2; u < a; u++)
|
|
7003
|
+
h[u - 2] = arguments[u];
|
|
7004
|
+
l = s.options.overloadTranslationOptionHandler([c, d].concat(h));
|
|
7017
7005
|
} else
|
|
7018
|
-
|
|
7019
|
-
...
|
|
7006
|
+
l = {
|
|
7007
|
+
...d
|
|
7020
7008
|
};
|
|
7021
|
-
|
|
7022
|
-
const
|
|
7009
|
+
l.lng = l.lng || o.lng, l.lngs = l.lngs || o.lngs, l.ns = l.ns || o.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || n || o.keyPrefix);
|
|
7010
|
+
const C = s.options.keySeparator || ".";
|
|
7023
7011
|
let p;
|
|
7024
|
-
return
|
|
7012
|
+
return l.keyPrefix && Array.isArray(c) ? p = c.map((k) => `${l.keyPrefix}${C}${k}`) : p = l.keyPrefix ? `${l.keyPrefix}${C}${c}` : c, s.t(p, l);
|
|
7025
7013
|
};
|
|
7026
7014
|
return N(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = n, o;
|
|
7027
7015
|
}
|
|
@@ -7042,13 +7030,13 @@ class l1 extends L1 {
|
|
|
7042
7030
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7043
7031
|
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
|
|
7044
7032
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7045
|
-
const c = (
|
|
7046
|
-
const
|
|
7047
|
-
return
|
|
7033
|
+
const c = (d, l) => {
|
|
7034
|
+
const a = this.services.backendConnector.state[`${d}|${l}`];
|
|
7035
|
+
return a === -1 || a === 0 || a === 2;
|
|
7048
7036
|
};
|
|
7049
7037
|
if (t.precheck) {
|
|
7050
|
-
const
|
|
7051
|
-
if (
|
|
7038
|
+
const d = t.precheck(this, c);
|
|
7039
|
+
if (d !== void 0) return d;
|
|
7052
7040
|
}
|
|
7053
7041
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(n, e) && (!s || c(o, e)));
|
|
7054
7042
|
}
|
|
@@ -7086,16 +7074,16 @@ class l1 extends L1 {
|
|
|
7086
7074
|
...e,
|
|
7087
7075
|
isClone: !0
|
|
7088
7076
|
}, o = new l1(s);
|
|
7089
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((
|
|
7090
|
-
o[
|
|
7077
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((d) => {
|
|
7078
|
+
o[d] = this[d];
|
|
7091
7079
|
}), o.services = {
|
|
7092
7080
|
...this.services
|
|
7093
7081
|
}, o.services.utils = {
|
|
7094
7082
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7095
|
-
}, n && (o.store = new Y1(this.store.data, s), o.services.resourceStore = o.store), o.translator = new w1(o.services, s), o.translator.on("*", function(
|
|
7096
|
-
for (var
|
|
7097
|
-
|
|
7098
|
-
o.emit(
|
|
7083
|
+
}, n && (o.store = new Y1(this.store.data, s), o.services.resourceStore = o.store), o.translator = new w1(o.services, s), o.translator.on("*", function(d) {
|
|
7084
|
+
for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
|
|
7085
|
+
a[h - 1] = arguments[h];
|
|
7086
|
+
o.emit(d, ...a);
|
|
7099
7087
|
}), o.init(s, t), o.translator.options = s, o.translator.backendConnector.services.utils = {
|
|
7100
7088
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7101
7089
|
}, o;
|
|
@@ -7110,22 +7098,22 @@ class l1 extends L1 {
|
|
|
7110
7098
|
};
|
|
7111
7099
|
}
|
|
7112
7100
|
}
|
|
7113
|
-
const
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7101
|
+
const I = l1.createInstance();
|
|
7102
|
+
I.createInstance = l1.createInstance;
|
|
7103
|
+
I.createInstance;
|
|
7104
|
+
I.dir;
|
|
7105
|
+
I.init;
|
|
7106
|
+
I.loadResources;
|
|
7107
|
+
I.reloadResources;
|
|
7108
|
+
I.use;
|
|
7109
|
+
I.changeLanguage;
|
|
7110
|
+
I.getFixedT;
|
|
7111
|
+
I.t;
|
|
7112
|
+
I.exists;
|
|
7113
|
+
I.setDefaultNamespace;
|
|
7114
|
+
I.hasLoadedNamespace;
|
|
7115
|
+
I.loadNamespaces;
|
|
7116
|
+
I.loadLanguages;
|
|
7129
7117
|
function q7() {
|
|
7130
7118
|
if (console && console.warn) {
|
|
7131
7119
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
@@ -7160,9 +7148,9 @@ const r2 = (i, e) => () => {
|
|
|
7160
7148
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7161
7149
|
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
7162
7150
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7163
|
-
const c = (
|
|
7164
|
-
const
|
|
7165
|
-
return
|
|
7151
|
+
const c = (d, l) => {
|
|
7152
|
+
const a = e.services.backendConnector.state[`${d}|${l}`];
|
|
7153
|
+
return a === -1 || a === 2;
|
|
7166
7154
|
};
|
|
7167
7155
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(o, i)));
|
|
7168
7156
|
}, e0 = function(i, e) {
|
|
@@ -7234,7 +7222,7 @@ class C0 {
|
|
|
7234
7222
|
}
|
|
7235
7223
|
const g0 = (i, e) => {
|
|
7236
7224
|
const t = W();
|
|
7237
|
-
return
|
|
7225
|
+
return O(() => {
|
|
7238
7226
|
t.current = i;
|
|
7239
7227
|
}, [i, e]), t.current;
|
|
7240
7228
|
}, a2 = (i, e, t, n) => i.getFixedT(e, t, n), u0 = (i, e, t, n) => K(a2(i, e, t, n), [i, e, t, n]), p0 = function(i) {
|
|
@@ -7256,45 +7244,45 @@ const g0 = (i, e) => {
|
|
|
7256
7244
|
...o.options.react,
|
|
7257
7245
|
...e
|
|
7258
7246
|
}, {
|
|
7259
|
-
useSuspense:
|
|
7260
|
-
keyPrefix:
|
|
7247
|
+
useSuspense: d,
|
|
7248
|
+
keyPrefix: l
|
|
7261
7249
|
} = c;
|
|
7262
|
-
let
|
|
7263
|
-
|
|
7264
|
-
const
|
|
7265
|
-
let f =
|
|
7250
|
+
let a = i;
|
|
7251
|
+
a = J(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
|
|
7252
|
+
const h = (o.isInitialized || o.initializedStoreOnce) && a.every((m) => e0(m, o, c)), u = u0(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), C = () => u, p = () => a2(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), [k, v] = A(C);
|
|
7253
|
+
let f = a.join();
|
|
7266
7254
|
e.lng && (f = `${e.lng}${f}`);
|
|
7267
7255
|
const y = g0(f), b = W(!0);
|
|
7268
|
-
|
|
7256
|
+
O(() => {
|
|
7269
7257
|
const {
|
|
7270
7258
|
bindI18n: m,
|
|
7271
7259
|
bindI18nStore: M
|
|
7272
7260
|
} = c;
|
|
7273
|
-
b.current = !0, !
|
|
7261
|
+
b.current = !0, !h && !d && (e.lng ? Q1(o, e.lng, a, () => {
|
|
7274
7262
|
b.current && v(p);
|
|
7275
|
-
}) : J1(o,
|
|
7263
|
+
}) : J1(o, a, () => {
|
|
7276
7264
|
b.current && v(p);
|
|
7277
|
-
})),
|
|
7265
|
+
})), h && y && y !== f && b.current && v(p);
|
|
7278
7266
|
const R = () => {
|
|
7279
7267
|
b.current && v(p);
|
|
7280
7268
|
};
|
|
7281
7269
|
return m && o && o.on(m, R), M && o && o.store.on(M, R), () => {
|
|
7282
7270
|
b.current = !1, m && o && m.split(" ").forEach((x) => o.off(x, R)), M && o && M.split(" ").forEach((x) => o.store.off(x, R));
|
|
7283
7271
|
};
|
|
7284
|
-
}, [o, f]),
|
|
7285
|
-
b.current &&
|
|
7286
|
-
}, [o,
|
|
7287
|
-
const E = [k, o,
|
|
7288
|
-
if (E.t = k, E.i18n = o, E.ready =
|
|
7272
|
+
}, [o, f]), O(() => {
|
|
7273
|
+
b.current && h && v(C);
|
|
7274
|
+
}, [o, l, h]);
|
|
7275
|
+
const E = [k, o, h];
|
|
7276
|
+
if (E.t = k, E.i18n = o, E.ready = h, h || !h && !d) return E;
|
|
7289
7277
|
throw new Promise((m) => {
|
|
7290
|
-
e.lng ? Q1(o, e.lng,
|
|
7278
|
+
e.lng ? Q1(o, e.lng, a, () => m()) : J1(o, a, () => m());
|
|
7291
7279
|
});
|
|
7292
7280
|
}, f0 = "Country", m0 = {
|
|
7293
7281
|
placeholder: f0
|
|
7294
7282
|
}, w0 = "Страна", L0 = {
|
|
7295
7283
|
placeholder: w0
|
|
7296
7284
|
};
|
|
7297
|
-
|
|
7285
|
+
I.use(c0).init({
|
|
7298
7286
|
defaultNS: "common",
|
|
7299
7287
|
lng: "en",
|
|
7300
7288
|
resources: {
|
|
@@ -7315,11 +7303,11 @@ const b0 = h1(
|
|
|
7315
7303
|
value: s,
|
|
7316
7304
|
id: o,
|
|
7317
7305
|
disabled: c,
|
|
7318
|
-
required:
|
|
7319
|
-
clearable:
|
|
7320
|
-
error:
|
|
7321
|
-
},
|
|
7322
|
-
const [
|
|
7306
|
+
required: d,
|
|
7307
|
+
clearable: l,
|
|
7308
|
+
error: a
|
|
7309
|
+
}, h) => {
|
|
7310
|
+
const [u, C] = A([]), [p, k] = A([]), [v, f] = A(!1), { locale: y, axiosPeople: b } = Q(u2);
|
|
7323
7311
|
if (!b)
|
|
7324
7312
|
throw new Error(
|
|
7325
7313
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
|
@@ -7331,14 +7319,14 @@ const b0 = h1(
|
|
|
7331
7319
|
const R = await b.post("v1/countries/search");
|
|
7332
7320
|
k(R == null ? void 0 : R.data.data);
|
|
7333
7321
|
} catch {
|
|
7334
|
-
|
|
7322
|
+
C([]);
|
|
7335
7323
|
} finally {
|
|
7336
7324
|
f(!1);
|
|
7337
7325
|
}
|
|
7338
7326
|
}, [b]);
|
|
7339
|
-
|
|
7327
|
+
O(() => {
|
|
7340
7328
|
m();
|
|
7341
|
-
}, []),
|
|
7329
|
+
}, []), O(() => {
|
|
7342
7330
|
if (e) {
|
|
7343
7331
|
const R = e.split("-")[1], x = p.filter(
|
|
7344
7332
|
(D) => D.name.includes(R)
|
|
@@ -7351,12 +7339,12 @@ const b0 = h1(
|
|
|
7351
7339
|
n(D[0].value);
|
|
7352
7340
|
}
|
|
7353
7341
|
}
|
|
7354
|
-
}, [e, p, n]),
|
|
7342
|
+
}, [e, p, n]), O(() => {
|
|
7355
7343
|
const R = p.map((x) => ({
|
|
7356
7344
|
label: x.name,
|
|
7357
7345
|
value: x.name
|
|
7358
7346
|
}));
|
|
7359
|
-
|
|
7347
|
+
C(R);
|
|
7360
7348
|
}, [p]);
|
|
7361
7349
|
const M = (R) => {
|
|
7362
7350
|
R === null ? (n(""), t && t("")) : (n(R), t && t(""));
|
|
@@ -7368,14 +7356,14 @@ const b0 = h1(
|
|
|
7368
7356
|
width: i,
|
|
7369
7357
|
placeholder: E("placeholder"),
|
|
7370
7358
|
value: s,
|
|
7371
|
-
ref:
|
|
7359
|
+
ref: h,
|
|
7372
7360
|
onChange: M,
|
|
7373
|
-
options:
|
|
7361
|
+
options: u,
|
|
7374
7362
|
disabled: c,
|
|
7375
7363
|
isLoading: v,
|
|
7376
|
-
required:
|
|
7377
|
-
clearable:
|
|
7378
|
-
error:
|
|
7364
|
+
required: d,
|
|
7365
|
+
clearable: l,
|
|
7366
|
+
error: a
|
|
7379
7367
|
}
|
|
7380
7368
|
) });
|
|
7381
7369
|
}
|