@snmt-react-ui/user-select 2.7.10 → 2.7.11
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/user-select.js +723 -887
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
var ke = Object.defineProperty;
|
2
2
|
var Le = (i, e, t) => e in i ? ke(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
-
var
|
3
|
+
var D1 = (i, e, t) => Le(i, typeof e != "symbol" ? e + "" : e, t);
|
4
4
|
import "./index.css";
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
|
6
|
-
import { createContext as d1, forwardRef as k1, useState as
|
6
|
+
import { createContext as d1, forwardRef as k1, useState as B, useRef as X, useEffect as G, useCallback as $, useMemo as ve, useImperativeHandle as oe, useContext as r1 } from "react";
|
7
7
|
import { Select as Ne, Flex as xe, Avatar as Re, Checkbox as Me, Typography as ae, Tag as ye, Popover as be } from "antd";
|
8
8
|
import { SNMTUiContext as Ee } from "@snmt-react-ui/core";
|
9
9
|
var He = Object.defineProperty, _e = (i, e, t) => e in i ? He(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ie = (i, e, t) => _e(i, e + "", t), Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -14,11 +14,11 @@ function Se() {
|
|
14
14
|
s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
const
|
17
|
+
const B1 = {};
|
18
18
|
function S1() {
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
20
20
|
e[t] = arguments[t];
|
21
|
-
s1(e[0]) &&
|
21
|
+
s1(e[0]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), Se(...e));
|
22
22
|
}
|
23
23
|
const le = (i, e) => () => {
|
24
24
|
if (i.isInitialized)
|
@@ -41,11 +41,11 @@ const le = (i, e) => () => {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
42
42
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
43
43
|
if (s.toLowerCase() === "cimode") return !0;
|
44
|
-
const
|
44
|
+
const c = (a, d) => {
|
45
45
|
const g = e.services.backendConnector.state[`${a}|${d}`];
|
46
46
|
return g === -1 || g === 2;
|
47
47
|
};
|
48
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
48
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(o, i)));
|
49
49
|
}, Ae = function(i, e) {
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
51
51
|
return !e.languages || !e.languages.length ? (S1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
@@ -54,7 +54,7 @@ const le = (i, e) => () => {
|
|
54
54
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !n(s.isLanguageChangingTo, i)) return !1;
|
55
55
|
}
|
56
56
|
}) : Ve(i, e, t);
|
57
|
-
}, s1 = (i) => typeof i == "string", Te = (i) => typeof i == "object" && i !== null,
|
57
|
+
}, s1 = (i) => typeof i == "string", Te = (i) => typeof i == "object" && i !== null, je = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, De = {
|
58
58
|
"&": "&",
|
59
59
|
"&": "&",
|
60
60
|
"<": "<",
|
@@ -75,7 +75,7 @@ const le = (i, e) => () => {
|
|
75
75
|
"…": "…",
|
76
76
|
"/": "/",
|
77
77
|
"/": "/"
|
78
|
-
},
|
78
|
+
}, Be = (i) => De[i], Ze = (i) => i.replace(je, Be);
|
79
79
|
let We = {
|
80
80
|
bindI18n: "languageChanged",
|
81
81
|
bindI18nStore: "",
|
@@ -104,7 +104,7 @@ const Ye = (i, e) => {
|
|
104
104
|
return G(() => {
|
105
105
|
t.current = i;
|
106
106
|
}, [i, e]), t.current;
|
107
|
-
},
|
107
|
+
}, he = (i, e, t, s) => i.getFixedT(e, t, s), Ue = (i, e, t, s) => $(he(i, e, t, s), [i, e, t, s]), ze = function(i) {
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
109
109
|
const {
|
110
110
|
i18n: t
|
@@ -118,37 +118,37 @@ const Ye = (i, e) => {
|
|
118
118
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
119
119
|
}
|
120
120
|
o.options.react && o.options.react.wait !== void 0 && S1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
121
|
-
const
|
121
|
+
const c = {
|
122
122
|
...Ge(),
|
123
123
|
...o.options.react,
|
124
124
|
...e
|
125
125
|
}, {
|
126
126
|
useSuspense: a,
|
127
127
|
keyPrefix: d
|
128
|
-
} =
|
128
|
+
} = c;
|
129
129
|
let g = i;
|
130
130
|
g = s1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
|
131
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Ae(f, o,
|
132
|
-
let
|
133
|
-
e.lng && (
|
134
|
-
const O = Ye(
|
131
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Ae(f, o, c)), h = Ue(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => he(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, v] = B(u);
|
132
|
+
let m = g.join();
|
133
|
+
e.lng && (m = `${e.lng}${m}`);
|
134
|
+
const O = Ye(m), M = X(!0);
|
135
135
|
G(() => {
|
136
136
|
const {
|
137
137
|
bindI18n: f,
|
138
138
|
bindI18nStore: N
|
139
|
-
} =
|
139
|
+
} = c;
|
140
140
|
M.current = !0, !l && !a && (e.lng ? W1(o, e.lng, g, () => {
|
141
141
|
M.current && v(p);
|
142
142
|
}) : Z1(o, g, () => {
|
143
143
|
M.current && v(p);
|
144
|
-
})), l && O && O !==
|
144
|
+
})), l && O && O !== m && M.current && v(p);
|
145
145
|
const x = () => {
|
146
146
|
M.current && v(p);
|
147
147
|
};
|
148
148
|
return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
|
149
149
|
M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), N && o && N.split(" ").forEach((L) => o.store.off(L, x));
|
150
150
|
};
|
151
|
-
}, [o,
|
151
|
+
}, [o, m]), G(() => {
|
152
152
|
M.current && l && v(u);
|
153
153
|
}, [o, d, l]);
|
154
154
|
const S = [k, o, l];
|
@@ -163,7 +163,7 @@ const Ye = (i, e) => {
|
|
163
163
|
alignItems: s = "normal",
|
164
164
|
justifyContent: n = "normal",
|
165
165
|
flex: o,
|
166
|
-
gap:
|
166
|
+
gap: c,
|
167
167
|
padding: a
|
168
168
|
}) => /* @__PURE__ */ r(
|
169
169
|
xe,
|
@@ -174,7 +174,7 @@ const Ye = (i, e) => {
|
|
174
174
|
align: s,
|
175
175
|
justify: n,
|
176
176
|
flex: o,
|
177
|
-
gap:
|
177
|
+
gap: c,
|
178
178
|
style: { padding: a },
|
179
179
|
children: i
|
180
180
|
}
|
@@ -192,13 +192,13 @@ const Ye = (i, e) => {
|
|
192
192
|
}
|
193
193
|
);
|
194
194
|
};
|
195
|
-
var
|
196
|
-
const
|
195
|
+
var q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(q || {});
|
196
|
+
const j1 = d1({
|
197
197
|
locale: "en",
|
198
198
|
theme: "light"
|
199
199
|
});
|
200
|
-
|
201
|
-
const
|
200
|
+
j1.Provider;
|
201
|
+
const qe = ({
|
202
202
|
checked: i = !0,
|
203
203
|
indeterminate: e = !1,
|
204
204
|
children: t,
|
@@ -206,19 +206,19 @@ const Qe = ({
|
|
206
206
|
disabled: n = !1,
|
207
207
|
disableUncheck: o = !1
|
208
208
|
}) => {
|
209
|
-
const [
|
209
|
+
const [c, a] = B(i), [d, g] = B(e);
|
210
210
|
G(() => {
|
211
211
|
a(i), g(e);
|
212
212
|
}, [i, e]);
|
213
|
-
const { theme: l } = r1(
|
213
|
+
const { theme: l } = r1(j1);
|
214
214
|
return /* @__PURE__ */ r(
|
215
215
|
Me,
|
216
216
|
{
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${l}`,
|
218
|
-
checked:
|
218
|
+
checked: c,
|
219
219
|
indeterminate: d,
|
220
|
-
onChange: (
|
221
|
-
o &&
|
220
|
+
onChange: (h) => {
|
221
|
+
o && c || (g(!1), a(h.target.checked), s && s(h));
|
222
222
|
},
|
223
223
|
disabled: n,
|
224
224
|
children: t
|
@@ -226,12 +226,12 @@ const Qe = ({
|
|
226
226
|
);
|
227
227
|
};
|
228
228
|
var b = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(b || {});
|
229
|
-
const
|
229
|
+
const ce = d1({
|
230
230
|
locale: "en",
|
231
231
|
theme: "light"
|
232
232
|
});
|
233
|
-
|
234
|
-
const
|
233
|
+
ce.Provider;
|
234
|
+
const Qe = ({
|
235
235
|
width: i = 20,
|
236
236
|
height: e = 20,
|
237
237
|
color: t = "#001E52",
|
@@ -615,79 +615,7 @@ const qe = ({
|
|
615
615
|
)
|
616
616
|
]
|
617
617
|
}
|
618
|
-
), ct = ({
|
619
|
-
width: i = 11,
|
620
|
-
height: e = 32,
|
621
|
-
color: t = "#001E52",
|
622
|
-
className: s,
|
623
|
-
onClick: n
|
624
|
-
}) => /* @__PURE__ */ C(
|
625
|
-
"svg",
|
626
|
-
{
|
627
|
-
xmlns: "http://www.w3.org/2000/svg",
|
628
|
-
width: i,
|
629
|
-
height: e,
|
630
|
-
className: s,
|
631
|
-
onClick: n,
|
632
|
-
viewBox: "0 0 11 32",
|
633
|
-
fill: "none",
|
634
|
-
children: [
|
635
|
-
/* @__PURE__ */ r(
|
636
|
-
"path",
|
637
|
-
{
|
638
|
-
fillRule: "evenodd",
|
639
|
-
clipRule: "evenodd",
|
640
|
-
d: "M6.22724 31.222C6.53024 31.525 7.02149 31.525 7.32448 31.222L10.7728 27.7737C11.0757 27.4707 11.0757 26.9795 10.7728 26.6765L7.32448 23.2282C7.02149 22.9252 6.53024 22.9252 6.22724 23.2282C5.92425 23.5312 5.92425 24.0224 6.22724 24.3254L9.1269 27.2251L6.22724 30.1247C5.92425 30.4277 5.92425 30.919 6.22724 31.222Z",
|
641
|
-
fill: t
|
642
|
-
}
|
643
|
-
),
|
644
|
-
/* @__PURE__ */ r(
|
645
|
-
"path",
|
646
|
-
{
|
647
|
-
d: "M10 27.2597H4C3.44772 27.2597 3 26.812 3 26.2597V6",
|
648
|
-
stroke: t,
|
649
|
-
strokeWidth: "1.25",
|
650
|
-
strokeLinecap: "round"
|
651
|
-
}
|
652
|
-
),
|
653
|
-
/* @__PURE__ */ r("circle", { cx: "3", cy: "3", r: "3", fill: t })
|
654
|
-
]
|
655
|
-
}
|
656
618
|
), ht = ({
|
657
|
-
width: i = 10,
|
658
|
-
height: e = 23,
|
659
|
-
color: t = "#001E52",
|
660
|
-
className: s,
|
661
|
-
onClick: n
|
662
|
-
}) => /* @__PURE__ */ C(
|
663
|
-
"svg",
|
664
|
-
{
|
665
|
-
xmlns: "http://www.w3.org/2000/svg",
|
666
|
-
width: i,
|
667
|
-
height: e,
|
668
|
-
className: s,
|
669
|
-
onClick: n,
|
670
|
-
viewBox: "0 0 10 23",
|
671
|
-
fill: "none",
|
672
|
-
children: [
|
673
|
-
/* @__PURE__ */ r(
|
674
|
-
"path",
|
675
|
-
{
|
676
|
-
fillRule: "evenodd",
|
677
|
-
clipRule: "evenodd",
|
678
|
-
d: `M1.00621 18.2272C0.70322 18.5302 0.70322 19.0215 1.00621
|
679
|
-
19.3245L4.45449 22.7728C4.75748 23.0757 5.24873 23.0757 5.55172
|
680
|
-
22.7728L9 19.3245C9.30299 19.0215 9.30299 18.5302 9 18.2272C8.69701 17.9243
|
681
|
-
8.20576 17.9243 7.90277 18.2272L5.00311 21.1269L2.10345 18.2272C1.80045 17.9243
|
682
|
-
1.30921 17.9243 1.00621 18.2272Z`,
|
683
|
-
fill: t
|
684
|
-
}
|
685
|
-
),
|
686
|
-
/* @__PURE__ */ r("path", { d: "M5 21L5 3", stroke: t, strokeWidth: "1.25", strokeLinecap: "round" }),
|
687
|
-
/* @__PURE__ */ r("circle", { cx: "5", cy: "3", r: "3", fill: t })
|
688
|
-
]
|
689
|
-
}
|
690
|
-
), dt = ({
|
691
619
|
width: i = 20,
|
692
620
|
height: e = 20,
|
693
621
|
color: t = "#001E52",
|
@@ -734,7 +662,7 @@ const qe = ({
|
|
734
662
|
)
|
735
663
|
]
|
736
664
|
}
|
737
|
-
),
|
665
|
+
), ct = ({
|
738
666
|
width: i = 20,
|
739
667
|
height: e = 20,
|
740
668
|
color: t = "#001E52",
|
@@ -767,7 +695,7 @@ const qe = ({
|
|
767
695
|
)
|
768
696
|
]
|
769
697
|
}
|
770
|
-
),
|
698
|
+
), dt = ({
|
771
699
|
width: i = 20,
|
772
700
|
height: e = 20,
|
773
701
|
color: t = "#001E52",
|
@@ -814,7 +742,7 @@ const qe = ({
|
|
814
742
|
)
|
815
743
|
]
|
816
744
|
}
|
817
|
-
),
|
745
|
+
), gt = ({
|
818
746
|
width: i = 20,
|
819
747
|
height: e = 20,
|
820
748
|
color: t = "#001E52",
|
@@ -847,7 +775,7 @@ const qe = ({
|
|
847
775
|
)
|
848
776
|
]
|
849
777
|
}
|
850
|
-
),
|
778
|
+
), ut = ({
|
851
779
|
width: i = 18,
|
852
780
|
height: e = 16,
|
853
781
|
color: t = "#001E52",
|
@@ -886,7 +814,7 @@ const qe = ({
|
|
886
814
|
)
|
887
815
|
]
|
888
816
|
}
|
889
|
-
),
|
817
|
+
), Ct = ({
|
890
818
|
width: i = 20,
|
891
819
|
height: e = 20,
|
892
820
|
color: t = "#001E52",
|
@@ -919,7 +847,7 @@ const qe = ({
|
|
919
847
|
)
|
920
848
|
]
|
921
849
|
}
|
922
|
-
),
|
850
|
+
), pt = ({
|
923
851
|
width: i = 20,
|
924
852
|
height: e = 20,
|
925
853
|
color: t = "#001E52",
|
@@ -943,7 +871,7 @@ const qe = ({
|
|
943
871
|
}
|
944
872
|
)
|
945
873
|
}
|
946
|
-
),
|
874
|
+
), ft = ({
|
947
875
|
width: i = 20,
|
948
876
|
height: e = 20,
|
949
877
|
color: t = "#001E52",
|
@@ -976,7 +904,7 @@ const qe = ({
|
|
976
904
|
)
|
977
905
|
]
|
978
906
|
}
|
979
|
-
),
|
907
|
+
), mt = ({
|
980
908
|
width: i = 20,
|
981
909
|
height: e = 23,
|
982
910
|
color: t = "#001E52",
|
@@ -1037,7 +965,7 @@ const qe = ({
|
|
1037
965
|
)
|
1038
966
|
]
|
1039
967
|
}
|
1040
|
-
),
|
968
|
+
), wt = ({
|
1041
969
|
width: i = 14,
|
1042
970
|
height: e = 14,
|
1043
971
|
color: t = "#10B981",
|
@@ -1066,7 +994,7 @@ const qe = ({
|
|
1066
994
|
)
|
1067
995
|
]
|
1068
996
|
}
|
1069
|
-
),
|
997
|
+
), kt = ({
|
1070
998
|
width: i = 10,
|
1071
999
|
height: e = 10,
|
1072
1000
|
color: t = "#88A4FF",
|
@@ -1114,7 +1042,7 @@ const qe = ({
|
|
1114
1042
|
)
|
1115
1043
|
]
|
1116
1044
|
}
|
1117
|
-
),
|
1045
|
+
), Lt = ({
|
1118
1046
|
width: i = 14,
|
1119
1047
|
height: e = 14,
|
1120
1048
|
color: t = "#8E8E93",
|
@@ -1142,7 +1070,7 @@ const qe = ({
|
|
1142
1070
|
)
|
1143
1071
|
]
|
1144
1072
|
}
|
1145
|
-
),
|
1073
|
+
), vt = ({
|
1146
1074
|
width: i = 14,
|
1147
1075
|
height: e = 14,
|
1148
1076
|
color: t = "#FFB020",
|
@@ -1176,7 +1104,7 @@ const qe = ({
|
|
1176
1104
|
)
|
1177
1105
|
]
|
1178
1106
|
}
|
1179
|
-
),
|
1107
|
+
), Nt = ({
|
1180
1108
|
width: i = 14,
|
1181
1109
|
height: e = 14,
|
1182
1110
|
color: t = "#D0421B",
|
@@ -1224,7 +1152,7 @@ const qe = ({
|
|
1224
1152
|
)
|
1225
1153
|
]
|
1226
1154
|
}
|
1227
|
-
),
|
1155
|
+
), xt = ({
|
1228
1156
|
width: i = 20,
|
1229
1157
|
height: e = 20,
|
1230
1158
|
color: t = "#070739",
|
@@ -1254,7 +1182,7 @@ const qe = ({
|
|
1254
1182
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
1255
1183
|
]
|
1256
1184
|
}
|
1257
|
-
),
|
1185
|
+
), Rt = ({
|
1258
1186
|
width: i = 20,
|
1259
1187
|
height: e = 20,
|
1260
1188
|
color: t = "#070739",
|
@@ -1292,7 +1220,7 @@ const qe = ({
|
|
1292
1220
|
)
|
1293
1221
|
]
|
1294
1222
|
}
|
1295
|
-
),
|
1223
|
+
), Mt = ({
|
1296
1224
|
width: i = 9,
|
1297
1225
|
height: e = 5,
|
1298
1226
|
color: t = "#001E52",
|
@@ -1318,7 +1246,7 @@ const qe = ({
|
|
1318
1246
|
}
|
1319
1247
|
)
|
1320
1248
|
}
|
1321
|
-
),
|
1249
|
+
), yt = ({
|
1322
1250
|
width: i = 20,
|
1323
1251
|
height: e = 20,
|
1324
1252
|
color: t = "#F2F2F7",
|
@@ -1347,7 +1275,7 @@ const qe = ({
|
|
1347
1275
|
)
|
1348
1276
|
]
|
1349
1277
|
}
|
1350
|
-
),
|
1278
|
+
), bt = ({
|
1351
1279
|
width: i = 20,
|
1352
1280
|
height: e = 20,
|
1353
1281
|
color: t = "#004ED7",
|
@@ -1376,7 +1304,7 @@ const qe = ({
|
|
1376
1304
|
)
|
1377
1305
|
]
|
1378
1306
|
}
|
1379
|
-
),
|
1307
|
+
), Et = ({
|
1380
1308
|
width: i = 10,
|
1381
1309
|
height: e = 10,
|
1382
1310
|
color: t = "#001E52",
|
@@ -1405,7 +1333,7 @@ const qe = ({
|
|
1405
1333
|
)
|
1406
1334
|
]
|
1407
1335
|
}
|
1408
|
-
),
|
1336
|
+
), Ht = ({
|
1409
1337
|
width: i = 10,
|
1410
1338
|
height: e = 10,
|
1411
1339
|
color: t = "#001E52",
|
@@ -1442,7 +1370,7 @@ const qe = ({
|
|
1442
1370
|
)
|
1443
1371
|
]
|
1444
1372
|
}
|
1445
|
-
),
|
1373
|
+
), _t = ({
|
1446
1374
|
className: i,
|
1447
1375
|
color: e = b.GREY_DARK_5,
|
1448
1376
|
height: t = 24,
|
@@ -1481,7 +1409,7 @@ const qe = ({
|
|
1481
1409
|
)
|
1482
1410
|
]
|
1483
1411
|
}
|
1484
|
-
),
|
1412
|
+
), It = ({
|
1485
1413
|
className: i,
|
1486
1414
|
color: e = b.GREY_DARK_5,
|
1487
1415
|
height: t = 20,
|
@@ -1508,7 +1436,7 @@ const qe = ({
|
|
1508
1436
|
}
|
1509
1437
|
)
|
1510
1438
|
}
|
1511
|
-
),
|
1439
|
+
), Ot = ({
|
1512
1440
|
className: i,
|
1513
1441
|
color: e = b.GREY_DARK_5,
|
1514
1442
|
height: t = 20,
|
@@ -1535,7 +1463,7 @@ const qe = ({
|
|
1535
1463
|
}
|
1536
1464
|
)
|
1537
1465
|
}
|
1538
|
-
),
|
1466
|
+
), St = ({
|
1539
1467
|
className: i,
|
1540
1468
|
color: e = b.GREY_DARK_5,
|
1541
1469
|
height: t = 5,
|
@@ -1559,7 +1487,7 @@ const qe = ({
|
|
1559
1487
|
}
|
1560
1488
|
)
|
1561
1489
|
}
|
1562
|
-
),
|
1490
|
+
), Vt = ({
|
1563
1491
|
className: i,
|
1564
1492
|
color: e = b.GREY_DARK_5,
|
1565
1493
|
height: t = 5,
|
@@ -1584,7 +1512,7 @@ const qe = ({
|
|
1584
1512
|
}
|
1585
1513
|
)
|
1586
1514
|
}
|
1587
|
-
),
|
1515
|
+
), At = ({
|
1588
1516
|
className: i,
|
1589
1517
|
color: e = b.GREY_DARK_5,
|
1590
1518
|
height: t = 24,
|
@@ -1623,7 +1551,7 @@ const qe = ({
|
|
1623
1551
|
)
|
1624
1552
|
]
|
1625
1553
|
}
|
1626
|
-
),
|
1554
|
+
), Tt = ({
|
1627
1555
|
className: i,
|
1628
1556
|
color: e = b.GREY_DARK_5,
|
1629
1557
|
height: t = 24,
|
@@ -1689,7 +1617,7 @@ const qe = ({
|
|
1689
1617
|
}
|
1690
1618
|
)
|
1691
1619
|
}
|
1692
|
-
),
|
1620
|
+
), Dt = ({
|
1693
1621
|
className: i,
|
1694
1622
|
color: e = b.GREY_DARK_5,
|
1695
1623
|
height: t = 24,
|
@@ -1748,7 +1676,7 @@ const qe = ({
|
|
1748
1676
|
)
|
1749
1677
|
]
|
1750
1678
|
}
|
1751
|
-
),
|
1679
|
+
), Bt = ({
|
1752
1680
|
className: i,
|
1753
1681
|
color: e = b.GREY_DARK_5,
|
1754
1682
|
height: t = 24,
|
@@ -1785,7 +1713,7 @@ const qe = ({
|
|
1785
1713
|
)
|
1786
1714
|
]
|
1787
1715
|
}
|
1788
|
-
),
|
1716
|
+
), Zt = ({
|
1789
1717
|
className: i,
|
1790
1718
|
color: e = b.GREY_DARK_3,
|
1791
1719
|
height: t = 14,
|
@@ -1822,7 +1750,7 @@ const qe = ({
|
|
1822
1750
|
)
|
1823
1751
|
]
|
1824
1752
|
}
|
1825
|
-
),
|
1753
|
+
), Wt = ({
|
1826
1754
|
className: i,
|
1827
1755
|
color: e = b.GREY_DARK_5,
|
1828
1756
|
height: t = 18,
|
@@ -1849,7 +1777,7 @@ const qe = ({
|
|
1849
1777
|
}
|
1850
1778
|
)
|
1851
1779
|
}
|
1852
|
-
),
|
1780
|
+
), Gt = ({
|
1853
1781
|
className: i,
|
1854
1782
|
color: e = b.GREY_DARK_5,
|
1855
1783
|
height: t = 24,
|
@@ -1901,7 +1829,7 @@ const qe = ({
|
|
1901
1829
|
)
|
1902
1830
|
]
|
1903
1831
|
}
|
1904
|
-
),
|
1832
|
+
), Kt = ({
|
1905
1833
|
className: i,
|
1906
1834
|
color: e = b.GREY_DARK_5,
|
1907
1835
|
height: t = 24,
|
@@ -1938,7 +1866,7 @@ const qe = ({
|
|
1938
1866
|
)
|
1939
1867
|
]
|
1940
1868
|
}
|
1941
|
-
),
|
1869
|
+
), $t = ({
|
1942
1870
|
className: i,
|
1943
1871
|
color: e = b.NOTIFICATION_WARNING_DARK,
|
1944
1872
|
height: t = 37,
|
@@ -1977,7 +1905,7 @@ const qe = ({
|
|
1977
1905
|
)
|
1978
1906
|
]
|
1979
1907
|
}
|
1980
|
-
),
|
1908
|
+
), Pt = ({
|
1981
1909
|
className: i,
|
1982
1910
|
color: e = b.GREY_DARK_5,
|
1983
1911
|
height: t = 24,
|
@@ -2003,7 +1931,7 @@ const qe = ({
|
|
2003
1931
|
}
|
2004
1932
|
)
|
2005
1933
|
}
|
2006
|
-
),
|
1934
|
+
), Ft = ({
|
2007
1935
|
className: i,
|
2008
1936
|
color: e = b.GREY_DARK_5,
|
2009
1937
|
height: t = 24,
|
@@ -2042,7 +1970,7 @@ const qe = ({
|
|
2042
1970
|
)
|
2043
1971
|
]
|
2044
1972
|
}
|
2045
|
-
),
|
1973
|
+
), Yt = ({
|
2046
1974
|
className: i,
|
2047
1975
|
color: e = b.GREY_DARK_5,
|
2048
1976
|
height: t = 24,
|
@@ -2081,7 +2009,7 @@ const qe = ({
|
|
2081
2009
|
)
|
2082
2010
|
]
|
2083
2011
|
}
|
2084
|
-
),
|
2012
|
+
), Ut = ({
|
2085
2013
|
className: i,
|
2086
2014
|
color: e = b.GREY_DARK_5,
|
2087
2015
|
height: t = 24,
|
@@ -2150,7 +2078,7 @@ const qe = ({
|
|
2150
2078
|
)
|
2151
2079
|
]
|
2152
2080
|
}
|
2153
|
-
),
|
2081
|
+
), zt = ({
|
2154
2082
|
className: i,
|
2155
2083
|
color: e = b.GREY_DARK_5,
|
2156
2084
|
height: t = 24,
|
@@ -2207,7 +2135,7 @@ const qe = ({
|
|
2207
2135
|
)
|
2208
2136
|
]
|
2209
2137
|
}
|
2210
|
-
),
|
2138
|
+
), Jt = ({
|
2211
2139
|
className: i,
|
2212
2140
|
color: e = b.GREY_DARK_5,
|
2213
2141
|
height: t = 24,
|
@@ -2246,7 +2174,7 @@ const qe = ({
|
|
2246
2174
|
)
|
2247
2175
|
]
|
2248
2176
|
}
|
2249
|
-
),
|
2177
|
+
), qt = ({
|
2250
2178
|
className: i,
|
2251
2179
|
color: e = b.GREY_DARK_5,
|
2252
2180
|
height: t = 24,
|
@@ -2295,7 +2223,7 @@ const qe = ({
|
|
2295
2223
|
)
|
2296
2224
|
]
|
2297
2225
|
}
|
2298
|
-
),
|
2226
|
+
), Qt = ({
|
2299
2227
|
className: i,
|
2300
2228
|
color: e = b.GREY_DARK_5,
|
2301
2229
|
height: t = 24,
|
@@ -2322,7 +2250,7 @@ const qe = ({
|
|
2322
2250
|
}
|
2323
2251
|
)
|
2324
2252
|
}
|
2325
|
-
),
|
2253
|
+
), Xt = ({
|
2326
2254
|
className: i,
|
2327
2255
|
color: e = b.GREY_DARK_5,
|
2328
2256
|
height: t = 20,
|
@@ -2351,7 +2279,7 @@ const qe = ({
|
|
2351
2279
|
)
|
2352
2280
|
]
|
2353
2281
|
}
|
2354
|
-
),
|
2282
|
+
), e2 = ({
|
2355
2283
|
className: i,
|
2356
2284
|
color: e = "#001E52",
|
2357
2285
|
height: t = 24,
|
@@ -2377,7 +2305,7 @@ const qe = ({
|
|
2377
2305
|
}
|
2378
2306
|
)
|
2379
2307
|
}
|
2380
|
-
),
|
2308
|
+
), t2 = ({
|
2381
2309
|
className: i,
|
2382
2310
|
color: e = "#131314",
|
2383
2311
|
height: t = 20,
|
@@ -2405,7 +2333,7 @@ const qe = ({
|
|
2405
2333
|
}
|
2406
2334
|
)
|
2407
2335
|
}
|
2408
|
-
),
|
2336
|
+
), i2 = ({
|
2409
2337
|
className: i,
|
2410
2338
|
color: e = "#001E52",
|
2411
2339
|
height: t = 24,
|
@@ -2443,7 +2371,7 @@ const qe = ({
|
|
2443
2371
|
)
|
2444
2372
|
] }) })
|
2445
2373
|
}
|
2446
|
-
),
|
2374
|
+
), s2 = ({
|
2447
2375
|
width: i = 20,
|
2448
2376
|
height: e = 20,
|
2449
2377
|
color: t = "#001E52",
|
@@ -2499,7 +2427,7 @@ const qe = ({
|
|
2499
2427
|
}
|
2500
2428
|
)
|
2501
2429
|
}
|
2502
|
-
),
|
2430
|
+
), n2 = ({
|
2503
2431
|
width: i = 24,
|
2504
2432
|
height: e = 24,
|
2505
2433
|
color: t = "#131314",
|
@@ -2532,7 +2460,7 @@ const qe = ({
|
|
2532
2460
|
)
|
2533
2461
|
]
|
2534
2462
|
}
|
2535
|
-
),
|
2463
|
+
), r2 = ({
|
2536
2464
|
width: i = 24,
|
2537
2465
|
height: e = 24,
|
2538
2466
|
color: t = b.GREY_DARK_2,
|
@@ -2571,7 +2499,7 @@ const qe = ({
|
|
2571
2499
|
)
|
2572
2500
|
]
|
2573
2501
|
}
|
2574
|
-
),
|
2502
|
+
), o2 = ({
|
2575
2503
|
width: i = 24,
|
2576
2504
|
height: e = 24,
|
2577
2505
|
color: t = b.GREY_DARK_2,
|
@@ -2598,7 +2526,7 @@ const qe = ({
|
|
2598
2526
|
}
|
2599
2527
|
)
|
2600
2528
|
}
|
2601
|
-
),
|
2529
|
+
), a2 = ({
|
2602
2530
|
width: i = 24,
|
2603
2531
|
height: e = 24,
|
2604
2532
|
color: t = b.GREY_DARK_2,
|
@@ -2638,7 +2566,7 @@ const qe = ({
|
|
2638
2566
|
)
|
2639
2567
|
]
|
2640
2568
|
}
|
2641
|
-
),
|
2569
|
+
), l2 = ({
|
2642
2570
|
width: i = 24,
|
2643
2571
|
height: e = 24,
|
2644
2572
|
color: t = b.GREY_DARK_2,
|
@@ -2665,7 +2593,7 @@ const qe = ({
|
|
2665
2593
|
}
|
2666
2594
|
)
|
2667
2595
|
}
|
2668
|
-
),
|
2596
|
+
), h2 = ({
|
2669
2597
|
width: i = 24,
|
2670
2598
|
height: e = 24,
|
2671
2599
|
color: t = b.GREY_DARK_2,
|
@@ -2692,7 +2620,7 @@ const qe = ({
|
|
2692
2620
|
}
|
2693
2621
|
)
|
2694
2622
|
}
|
2695
|
-
),
|
2623
|
+
), c2 = ({
|
2696
2624
|
width: i = 20,
|
2697
2625
|
height: e = 20,
|
2698
2626
|
color: t = "#001E52",
|
@@ -2725,219 +2653,209 @@ const qe = ({
|
|
2725
2653
|
color: s,
|
2726
2654
|
className: n,
|
2727
2655
|
disabled: o = !1,
|
2728
|
-
onClick:
|
2656
|
+
onClick: c
|
2729
2657
|
}) => {
|
2730
|
-
const [a, d] =
|
2658
|
+
const [a, d] = B(n), { theme: g } = r1(ce), l = o ? g && g === "dark" ? b.GREY_LIGHT_4 : b.GREY_DARK_1 : s, h = o ? void 0 : c;
|
2731
2659
|
return G(() => {
|
2732
2660
|
if (n) {
|
2733
|
-
|
2661
|
+
h && !o && d(`${n} clickable`);
|
2734
2662
|
return;
|
2735
2663
|
}
|
2736
|
-
|
2737
|
-
}, [
|
2664
|
+
h && !o && d("clickable");
|
2665
|
+
}, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
2738
2666
|
switch (i) {
|
2739
2667
|
case "nextIcon":
|
2740
|
-
return
|
2668
|
+
return It({ width: e, height: t, color: l, className: a, onClick: h });
|
2741
2669
|
case "prevIcon":
|
2742
|
-
return
|
2670
|
+
return Ot({ width: e, height: t, color: l, className: a, onClick: h });
|
2743
2671
|
case "arrowDown":
|
2744
|
-
return
|
2672
|
+
return Qe({ width: e, height: t, color: l, className: a, onClick: h });
|
2745
2673
|
case "info":
|
2746
|
-
return Xe({ width: e, height: t, color: l, className: a, onClick:
|
2674
|
+
return Xe({ width: e, height: t, color: l, className: a, onClick: h });
|
2747
2675
|
case "arrowRight":
|
2748
|
-
return et({ width: e, height: t, color: l, className: a, onClick:
|
2676
|
+
return et({ width: e, height: t, color: l, className: a, onClick: h });
|
2749
2677
|
case "calendar":
|
2750
|
-
return tt({ width: e, height: t, color: l, className: a, onClick:
|
2678
|
+
return tt({ width: e, height: t, color: l, className: a, onClick: h });
|
2751
2679
|
case "ok":
|
2752
|
-
return it({ width: e, height: t, color: l, className: a, onClick:
|
2680
|
+
return it({ width: e, height: t, color: l, className: a, onClick: h });
|
2753
2681
|
case "cancel":
|
2754
|
-
return st({ width: e, height: t, color: l, className: a, onClick:
|
2682
|
+
return st({ width: e, height: t, color: l, className: a, onClick: h });
|
2755
2683
|
case "add":
|
2756
|
-
return nt({ width: e, height: t, color: l, className: a, onClick:
|
2684
|
+
return nt({ width: e, height: t, color: l, className: a, onClick: h });
|
2757
2685
|
case "list":
|
2758
|
-
return rt({ width: e, height: t, color: l, className: a, onClick:
|
2686
|
+
return rt({ width: e, height: t, color: l, className: a, onClick: h });
|
2759
2687
|
case "dragAndDrop":
|
2760
|
-
return ot({ width: e, height: t, color: l, className: a, onClick:
|
2688
|
+
return ot({ width: e, height: t, color: l, className: a, onClick: h });
|
2761
2689
|
case "filter":
|
2762
|
-
return at({ width: e, height: t, color: l, className: a, onClick:
|
2690
|
+
return at({ width: e, height: t, color: l, className: a, onClick: h });
|
2763
2691
|
case "attention":
|
2764
|
-
return lt({ width: e, height: t, color: l, className: a, onClick:
|
2765
|
-
case "arrowDownLong":
|
2766
|
-
return ct({
|
2767
|
-
width: e,
|
2768
|
-
height: t,
|
2769
|
-
color: l,
|
2770
|
-
className: a,
|
2771
|
-
onClick: c
|
2772
|
-
});
|
2773
|
-
case "dotArrowDown":
|
2774
|
-
return ht({ width: e, height: t, color: l, className: a, onClick: c });
|
2692
|
+
return lt({ width: e, height: t, color: l, className: a, onClick: h });
|
2775
2693
|
case "users":
|
2776
|
-
return
|
2694
|
+
return ht({ width: e, height: t, color: l, className: a, onClick: h });
|
2777
2695
|
case "mySkillsMatrix":
|
2778
|
-
return
|
2696
|
+
return ct({
|
2779
2697
|
width: e,
|
2780
2698
|
height: t,
|
2781
2699
|
color: l,
|
2782
2700
|
className: a,
|
2783
|
-
onClick:
|
2701
|
+
onClick: h
|
2784
2702
|
});
|
2785
2703
|
case "skills":
|
2786
|
-
return
|
2704
|
+
return dt({ width: e, height: t, color: l, className: a, onClick: h });
|
2787
2705
|
case "skillsMatrices":
|
2788
|
-
return
|
2706
|
+
return gt({
|
2789
2707
|
width: e,
|
2790
2708
|
height: t,
|
2791
2709
|
color: l,
|
2792
2710
|
className: a,
|
2793
|
-
onClick:
|
2711
|
+
onClick: h
|
2794
2712
|
});
|
2795
2713
|
case "history":
|
2796
|
-
return
|
2714
|
+
return ut({ width: e, height: t, color: l, className: a, onClick: h });
|
2797
2715
|
case "logOut":
|
2798
|
-
return
|
2716
|
+
return Ct({ width: e, height: t, color: l, className: a, onClick: h });
|
2799
2717
|
case "settings":
|
2800
|
-
return
|
2718
|
+
return pt({ width: e, height: t, color: l, className: a, onClick: h });
|
2801
2719
|
case "trash":
|
2802
|
-
return
|
2720
|
+
return ft({ width: e, height: t, color: l, className: a, onClick: h });
|
2803
2721
|
case "settings4":
|
2804
|
-
return
|
2722
|
+
return mt({ width: e, height: t, color: l, className: a, onClick: h });
|
2805
2723
|
case "success":
|
2806
|
-
return
|
2724
|
+
return wt({ width: e, height: t, color: l, className: a, onClick: h });
|
2807
2725
|
case "errorSmall":
|
2808
|
-
return
|
2726
|
+
return kt({ width: e, height: t, color: l, className: a, onClick: h });
|
2809
2727
|
case "infoMedium":
|
2810
|
-
return
|
2728
|
+
return Lt({ width: e, height: t, color: l, className: a, onClick: h });
|
2811
2729
|
case "attentionMedium":
|
2812
|
-
return
|
2730
|
+
return vt({
|
2813
2731
|
width: e,
|
2814
2732
|
height: t,
|
2815
2733
|
color: l,
|
2816
2734
|
className: a,
|
2817
|
-
onClick:
|
2735
|
+
onClick: h
|
2818
2736
|
});
|
2819
2737
|
case "errorMedium":
|
2820
|
-
return
|
2738
|
+
return Nt({ width: e, height: t, color: l, className: a, onClick: h });
|
2821
2739
|
case "visibilityIcon":
|
2822
|
-
return
|
2740
|
+
return xt({
|
2823
2741
|
width: e,
|
2824
2742
|
height: t,
|
2825
2743
|
color: l,
|
2826
2744
|
className: a,
|
2827
|
-
onClick:
|
2745
|
+
onClick: h
|
2828
2746
|
});
|
2829
2747
|
case "visibilityOffIcon":
|
2830
|
-
return
|
2748
|
+
return Rt({
|
2831
2749
|
width: e,
|
2832
2750
|
height: t,
|
2833
2751
|
color: l,
|
2834
2752
|
className: a,
|
2835
|
-
onClick:
|
2753
|
+
onClick: h
|
2836
2754
|
});
|
2837
2755
|
case "selectArrowIcon":
|
2838
|
-
return
|
2756
|
+
return Mt({
|
2839
2757
|
width: e,
|
2840
2758
|
height: t,
|
2841
2759
|
color: l,
|
2842
2760
|
className: a,
|
2843
|
-
onClick:
|
2761
|
+
onClick: h
|
2844
2762
|
});
|
2845
2763
|
case "expandArrowIcon":
|
2846
|
-
return
|
2764
|
+
return yt({
|
2847
2765
|
width: e,
|
2848
2766
|
height: t,
|
2849
2767
|
color: l,
|
2850
2768
|
className: a,
|
2851
|
-
onClick:
|
2769
|
+
onClick: h
|
2852
2770
|
});
|
2853
2771
|
case "expandActiveArrowIcon":
|
2854
|
-
return
|
2772
|
+
return bt({
|
2855
2773
|
width: e,
|
2856
2774
|
height: t,
|
2857
2775
|
color: l,
|
2858
2776
|
className: a,
|
2859
|
-
onClick:
|
2777
|
+
onClick: h
|
2860
2778
|
});
|
2861
2779
|
case "sortUp":
|
2862
|
-
return
|
2780
|
+
return Et({ width: e, height: t, color: l, className: a, onClick: h });
|
2863
2781
|
case "sortDown":
|
2864
|
-
return
|
2782
|
+
return Ht({ width: e, height: t, color: l, className: a, onClick: h });
|
2865
2783
|
case "search":
|
2866
|
-
return
|
2784
|
+
return _t({ width: e, height: t, color: l, className: a, onClick: h });
|
2867
2785
|
case "arrowUpFilled":
|
2868
|
-
return
|
2786
|
+
return Vt({ width: e, height: t, color: l, className: a, onClick: h });
|
2869
2787
|
case "arrowDownFilled":
|
2870
|
-
return
|
2788
|
+
return St({ width: e, height: t, color: l, className: a, onClick: h });
|
2871
2789
|
case "link":
|
2872
|
-
return
|
2790
|
+
return At({ width: e, height: t, color: l, className: a, onClick: h });
|
2873
2791
|
case "telegram":
|
2874
|
-
return jt({ width: e, height: t, color: l, className: a, onClick:
|
2792
|
+
return jt({ width: e, height: t, color: l, className: a, onClick: h });
|
2875
2793
|
case "mail":
|
2876
|
-
return
|
2794
|
+
return Bt({ width: e, height: t, color: l, className: a, onClick: h });
|
2877
2795
|
case "github":
|
2878
|
-
return
|
2796
|
+
return Tt({ width: e, height: t, color: l, className: a, onClick: h });
|
2879
2797
|
case "linkedIn":
|
2880
|
-
return
|
2798
|
+
return Dt({ width: e, height: t, color: l, className: a, onClick: h });
|
2881
2799
|
case "emptyStateIcon":
|
2882
|
-
return
|
2800
|
+
return Zt({ width: e, height: t, color: l, className: a, onClick: h });
|
2883
2801
|
case "filtersIcon":
|
2884
|
-
return
|
2802
|
+
return Wt({ width: e, height: t, color: l, className: a, onClick: h });
|
2885
2803
|
case "dotMenuIcon":
|
2886
|
-
return
|
2804
|
+
return Gt({ width: e, height: t, color: l, className: a, onClick: h });
|
2887
2805
|
case "plusCircle":
|
2888
|
-
return
|
2806
|
+
return Kt({ width: e, height: t, color: l, className: a, onClick: h });
|
2889
2807
|
case "warning":
|
2890
|
-
return
|
2808
|
+
return $t({ width: e, height: t, color: l, className: a, onClick: h });
|
2891
2809
|
case "back":
|
2892
|
-
return
|
2810
|
+
return Pt({ width: e, height: t, color: l, className: a, onClick: h });
|
2893
2811
|
case "bell":
|
2894
|
-
return
|
2812
|
+
return Ft({ width: e, height: t, color: l, className: a, onClick: h });
|
2895
2813
|
case "contract":
|
2896
|
-
return
|
2814
|
+
return Ut({ width: e, height: t, color: l, className: a, onClick: h });
|
2897
2815
|
case "trash2":
|
2898
|
-
return
|
2816
|
+
return Yt({ width: e, height: t, color: l, className: a, onClick: h });
|
2899
2817
|
case "resourceManager":
|
2900
|
-
return
|
2818
|
+
return zt({ width: e, height: t, color: l, className: a, onClick: h });
|
2901
2819
|
case "settings2":
|
2902
|
-
return
|
2820
|
+
return Jt({ width: e, height: t, color: l, className: a, onClick: h });
|
2903
2821
|
case "image":
|
2904
|
-
return
|
2822
|
+
return qt({ width: e, height: t, color: l, className: a, onClick: h });
|
2905
2823
|
case "edit":
|
2906
|
-
return
|
2824
|
+
return Qt({ width: e, height: t, color: l, className: a, onClick: h });
|
2907
2825
|
case "filledArrowRight":
|
2908
|
-
return
|
2826
|
+
return Xt({ width: e, height: t, color: l, className: a, onClick: h });
|
2909
2827
|
case "burgerMenu":
|
2910
|
-
return
|
2828
|
+
return e2({ width: e, height: t, color: l, className: a, onClick: h });
|
2911
2829
|
case "signOut":
|
2912
|
-
return
|
2830
|
+
return t2({ width: e, height: t, color: l, className: a, onClick: h });
|
2913
2831
|
case "refresh":
|
2914
|
-
return
|
2832
|
+
return i2({ width: e, height: t, color: l, className: a, onClick: h });
|
2915
2833
|
case "projects":
|
2916
|
-
return
|
2834
|
+
return s2({ width: e, height: t, color: l, className: a, onClick: h });
|
2917
2835
|
case "profile":
|
2918
|
-
return
|
2836
|
+
return c2({ width: e, height: t, color: l, className: a, onClick: h });
|
2919
2837
|
case "exit":
|
2920
|
-
return
|
2838
|
+
return n2({ width: e, height: t, color: l, className: a, onClick: h });
|
2921
2839
|
case "client":
|
2922
|
-
return
|
2840
|
+
return r2({ width: e, height: t, color: l, className: a, onClick: h });
|
2923
2841
|
case "calendar2":
|
2924
|
-
return
|
2842
|
+
return o2({ width: e, height: t, color: l, className: a, onClick: h });
|
2925
2843
|
case "openPointCircle":
|
2926
|
-
return
|
2844
|
+
return a2({ width: e, height: t, color: l, className: a, onClick: h });
|
2927
2845
|
case "community":
|
2928
|
-
return
|
2846
|
+
return l2({ width: e, height: t, color: l, className: a, onClick: h });
|
2929
2847
|
case "docs":
|
2930
|
-
return
|
2848
|
+
return h2({ width: e, height: t, color: l, className: a, onClick: h });
|
2931
2849
|
default:
|
2932
2850
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
2933
2851
|
}
|
2934
2852
|
})() });
|
2935
|
-
}, { Title:
|
2853
|
+
}, { Title: d2, Text: g2 } = ae, u2 = {
|
2936
2854
|
h1: 1,
|
2937
2855
|
h2: 2,
|
2938
2856
|
h3: 3,
|
2939
2857
|
h4: 4
|
2940
|
-
},
|
2858
|
+
}, C2 = k1(
|
2941
2859
|
({
|
2942
2860
|
align: i = "inherit",
|
2943
2861
|
variant: e = "body1",
|
@@ -2945,25 +2863,25 @@ const qe = ({
|
|
2945
2863
|
children: s,
|
2946
2864
|
onClick: n,
|
2947
2865
|
collapsed: o,
|
2948
|
-
whiteSpace:
|
2866
|
+
whiteSpace: c = "normal"
|
2949
2867
|
}, a) => {
|
2950
2868
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
2951
2869
|
let g = `snmt-typography snmt-typography-${e}`;
|
2952
2870
|
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), o && (g += " collapsed"), d ? /* @__PURE__ */ r(
|
2953
|
-
|
2871
|
+
d2,
|
2954
2872
|
{
|
2955
2873
|
className: g,
|
2956
|
-
style: { color: t, whiteSpace:
|
2874
|
+
style: { color: t, whiteSpace: c },
|
2957
2875
|
onClick: n,
|
2958
|
-
level:
|
2876
|
+
level: u2[e],
|
2959
2877
|
ref: a,
|
2960
2878
|
children: s
|
2961
2879
|
}
|
2962
2880
|
) : /* @__PURE__ */ r(
|
2963
|
-
|
2881
|
+
g2,
|
2964
2882
|
{
|
2965
2883
|
className: g,
|
2966
|
-
style: { color: t, whiteSpace:
|
2884
|
+
style: { color: t, whiteSpace: c },
|
2967
2885
|
onClick: n,
|
2968
2886
|
ref: a,
|
2969
2887
|
children: s
|
@@ -2977,7 +2895,7 @@ const de = d1({
|
|
2977
2895
|
theme: "light"
|
2978
2896
|
});
|
2979
2897
|
de.Provider;
|
2980
|
-
const
|
2898
|
+
const p2 = ({
|
2981
2899
|
width: i = 20,
|
2982
2900
|
height: e = 20,
|
2983
2901
|
color: t = "#001E52",
|
@@ -3004,7 +2922,7 @@ const w2 = ({
|
|
3004
2922
|
}
|
3005
2923
|
)
|
3006
2924
|
}
|
3007
|
-
),
|
2925
|
+
), f2 = ({
|
3008
2926
|
width: i = 16,
|
3009
2927
|
height: e = 16,
|
3010
2928
|
color: t = "#001E52",
|
@@ -3032,7 +2950,7 @@ const w2 = ({
|
|
3032
2950
|
)
|
3033
2951
|
]
|
3034
2952
|
}
|
3035
|
-
),
|
2953
|
+
), m2 = ({
|
3036
2954
|
width: i = 20,
|
3037
2955
|
height: e = 20,
|
3038
2956
|
color: t = "#001E52",
|
@@ -3067,7 +2985,7 @@ const w2 = ({
|
|
3067
2985
|
)
|
3068
2986
|
]
|
3069
2987
|
}
|
3070
|
-
),
|
2988
|
+
), w2 = ({
|
3071
2989
|
width: i = 18,
|
3072
2990
|
height: e = 18,
|
3073
2991
|
color: t = "#001E52",
|
@@ -3106,7 +3024,7 @@ const w2 = ({
|
|
3106
3024
|
)
|
3107
3025
|
]
|
3108
3026
|
}
|
3109
|
-
),
|
3027
|
+
), k2 = ({
|
3110
3028
|
width: i = 20,
|
3111
3029
|
height: e = 20,
|
3112
3030
|
color: t = "#001E52",
|
@@ -3132,7 +3050,7 @@ const w2 = ({
|
|
3132
3050
|
}
|
3133
3051
|
)
|
3134
3052
|
}
|
3135
|
-
),
|
3053
|
+
), L2 = ({
|
3136
3054
|
width: i = 20,
|
3137
3055
|
height: e = 20,
|
3138
3056
|
color: t = "#001E52",
|
@@ -3153,7 +3071,7 @@ const w2 = ({
|
|
3153
3071
|
/* @__PURE__ */ r("path", { d: "M16 4L4 16", stroke: t, strokeWidth: "1.5", strokeLinecap: "round" })
|
3154
3072
|
]
|
3155
3073
|
}
|
3156
|
-
),
|
3074
|
+
), v2 = ({
|
3157
3075
|
width: i = 20,
|
3158
3076
|
height: e = 20,
|
3159
3077
|
color: t = "#001E52",
|
@@ -3185,7 +3103,7 @@ const w2 = ({
|
|
3185
3103
|
)
|
3186
3104
|
]
|
3187
3105
|
}
|
3188
|
-
),
|
3106
|
+
), N2 = ({
|
3189
3107
|
width: i = 20,
|
3190
3108
|
height: e = 20,
|
3191
3109
|
color: t = "#001E52",
|
@@ -3239,7 +3157,7 @@ const w2 = ({
|
|
3239
3157
|
)
|
3240
3158
|
]
|
3241
3159
|
}
|
3242
|
-
),
|
3160
|
+
), x2 = ({
|
3243
3161
|
width: i = 20,
|
3244
3162
|
height: e = 20,
|
3245
3163
|
color: t = "#001E52",
|
@@ -3278,7 +3196,7 @@ const w2 = ({
|
|
3278
3196
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
3279
3197
|
]
|
3280
3198
|
}
|
3281
|
-
),
|
3199
|
+
), R2 = ({
|
3282
3200
|
width: i = 16,
|
3283
3201
|
height: e = 12,
|
3284
3202
|
color: t = "#001E52",
|
@@ -3327,7 +3245,7 @@ const w2 = ({
|
|
3327
3245
|
)
|
3328
3246
|
] })
|
3329
3247
|
}
|
3330
|
-
),
|
3248
|
+
), M2 = ({
|
3331
3249
|
width: i = 16,
|
3332
3250
|
height: e = 16,
|
3333
3251
|
color: t = "#001E52",
|
@@ -3361,79 +3279,7 @@ const w2 = ({
|
|
3361
3279
|
)
|
3362
3280
|
]
|
3363
3281
|
}
|
3364
|
-
),
|
3365
|
-
width: i = 11,
|
3366
|
-
height: e = 32,
|
3367
|
-
color: t = "#001E52",
|
3368
|
-
className: s,
|
3369
|
-
onClick: n
|
3370
|
-
}) => /* @__PURE__ */ C(
|
3371
|
-
"svg",
|
3372
|
-
{
|
3373
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3374
|
-
width: i,
|
3375
|
-
height: e,
|
3376
|
-
className: s,
|
3377
|
-
onClick: n,
|
3378
|
-
viewBox: "0 0 11 32",
|
3379
|
-
fill: "none",
|
3380
|
-
children: [
|
3381
|
-
/* @__PURE__ */ r(
|
3382
|
-
"path",
|
3383
|
-
{
|
3384
|
-
fillRule: "evenodd",
|
3385
|
-
clipRule: "evenodd",
|
3386
|
-
d: "M6.22724 31.222C6.53024 31.525 7.02149 31.525 7.32448 31.222L10.7728 27.7737C11.0757 27.4707 11.0757 26.9795 10.7728 26.6765L7.32448 23.2282C7.02149 22.9252 6.53024 22.9252 6.22724 23.2282C5.92425 23.5312 5.92425 24.0224 6.22724 24.3254L9.1269 27.2251L6.22724 30.1247C5.92425 30.4277 5.92425 30.919 6.22724 31.222Z",
|
3387
|
-
fill: t
|
3388
|
-
}
|
3389
|
-
),
|
3390
|
-
/* @__PURE__ */ r(
|
3391
|
-
"path",
|
3392
|
-
{
|
3393
|
-
d: "M10 27.2597H4C3.44772 27.2597 3 26.812 3 26.2597V6",
|
3394
|
-
stroke: t,
|
3395
|
-
strokeWidth: "1.25",
|
3396
|
-
strokeLinecap: "round"
|
3397
|
-
}
|
3398
|
-
),
|
3399
|
-
/* @__PURE__ */ r("circle", { cx: "3", cy: "3", r: "3", fill: t })
|
3400
|
-
]
|
3401
|
-
}
|
3402
|
-
), H2 = ({
|
3403
|
-
width: i = 10,
|
3404
|
-
height: e = 23,
|
3405
|
-
color: t = "#001E52",
|
3406
|
-
className: s,
|
3407
|
-
onClick: n
|
3408
|
-
}) => /* @__PURE__ */ C(
|
3409
|
-
"svg",
|
3410
|
-
{
|
3411
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3412
|
-
width: i,
|
3413
|
-
height: e,
|
3414
|
-
className: s,
|
3415
|
-
onClick: n,
|
3416
|
-
viewBox: "0 0 10 23",
|
3417
|
-
fill: "none",
|
3418
|
-
children: [
|
3419
|
-
/* @__PURE__ */ r(
|
3420
|
-
"path",
|
3421
|
-
{
|
3422
|
-
fillRule: "evenodd",
|
3423
|
-
clipRule: "evenodd",
|
3424
|
-
d: `M1.00621 18.2272C0.70322 18.5302 0.70322 19.0215 1.00621
|
3425
|
-
19.3245L4.45449 22.7728C4.75748 23.0757 5.24873 23.0757 5.55172
|
3426
|
-
22.7728L9 19.3245C9.30299 19.0215 9.30299 18.5302 9 18.2272C8.69701 17.9243
|
3427
|
-
8.20576 17.9243 7.90277 18.2272L5.00311 21.1269L2.10345 18.2272C1.80045 17.9243
|
3428
|
-
1.30921 17.9243 1.00621 18.2272Z`,
|
3429
|
-
fill: t
|
3430
|
-
}
|
3431
|
-
),
|
3432
|
-
/* @__PURE__ */ r("path", { d: "M5 21L5 3", stroke: t, strokeWidth: "1.25", strokeLinecap: "round" }),
|
3433
|
-
/* @__PURE__ */ r("circle", { cx: "5", cy: "3", r: "3", fill: t })
|
3434
|
-
]
|
3435
|
-
}
|
3436
|
-
), _2 = ({
|
3282
|
+
), y2 = ({
|
3437
3283
|
width: i = 20,
|
3438
3284
|
height: e = 20,
|
3439
3285
|
color: t = "#001E52",
|
@@ -3480,7 +3326,7 @@ const w2 = ({
|
|
3480
3326
|
)
|
3481
3327
|
]
|
3482
3328
|
}
|
3483
|
-
),
|
3329
|
+
), b2 = ({
|
3484
3330
|
width: i = 20,
|
3485
3331
|
height: e = 20,
|
3486
3332
|
color: t = "#001E52",
|
@@ -3513,7 +3359,7 @@ const w2 = ({
|
|
3513
3359
|
)
|
3514
3360
|
]
|
3515
3361
|
}
|
3516
|
-
),
|
3362
|
+
), E2 = ({
|
3517
3363
|
width: i = 20,
|
3518
3364
|
height: e = 20,
|
3519
3365
|
color: t = "#001E52",
|
@@ -3560,7 +3406,7 @@ const w2 = ({
|
|
3560
3406
|
)
|
3561
3407
|
]
|
3562
3408
|
}
|
3563
|
-
),
|
3409
|
+
), H2 = ({
|
3564
3410
|
width: i = 20,
|
3565
3411
|
height: e = 20,
|
3566
3412
|
color: t = "#001E52",
|
@@ -3593,7 +3439,7 @@ const w2 = ({
|
|
3593
3439
|
)
|
3594
3440
|
]
|
3595
3441
|
}
|
3596
|
-
),
|
3442
|
+
), _2 = ({
|
3597
3443
|
width: i = 18,
|
3598
3444
|
height: e = 16,
|
3599
3445
|
color: t = "#001E52",
|
@@ -3632,7 +3478,7 @@ const w2 = ({
|
|
3632
3478
|
)
|
3633
3479
|
]
|
3634
3480
|
}
|
3635
|
-
),
|
3481
|
+
), I2 = ({
|
3636
3482
|
width: i = 20,
|
3637
3483
|
height: e = 20,
|
3638
3484
|
color: t = "#001E52",
|
@@ -3665,7 +3511,7 @@ const w2 = ({
|
|
3665
3511
|
)
|
3666
3512
|
]
|
3667
3513
|
}
|
3668
|
-
),
|
3514
|
+
), O2 = ({
|
3669
3515
|
width: i = 20,
|
3670
3516
|
height: e = 20,
|
3671
3517
|
color: t = "#001E52",
|
@@ -3689,7 +3535,7 @@ const w2 = ({
|
|
3689
3535
|
}
|
3690
3536
|
)
|
3691
3537
|
}
|
3692
|
-
),
|
3538
|
+
), S2 = ({
|
3693
3539
|
width: i = 20,
|
3694
3540
|
height: e = 20,
|
3695
3541
|
color: t = "#001E52",
|
@@ -3722,7 +3568,7 @@ const w2 = ({
|
|
3722
3568
|
)
|
3723
3569
|
]
|
3724
3570
|
}
|
3725
|
-
),
|
3571
|
+
), V2 = ({
|
3726
3572
|
width: i = 20,
|
3727
3573
|
height: e = 23,
|
3728
3574
|
color: t = "#001E52",
|
@@ -3783,7 +3629,7 @@ const w2 = ({
|
|
3783
3629
|
)
|
3784
3630
|
]
|
3785
3631
|
}
|
3786
|
-
),
|
3632
|
+
), A2 = ({
|
3787
3633
|
width: i = 14,
|
3788
3634
|
height: e = 14,
|
3789
3635
|
color: t = "#10B981",
|
@@ -3812,7 +3658,7 @@ const w2 = ({
|
|
3812
3658
|
)
|
3813
3659
|
]
|
3814
3660
|
}
|
3815
|
-
),
|
3661
|
+
), T2 = ({
|
3816
3662
|
width: i = 10,
|
3817
3663
|
height: e = 10,
|
3818
3664
|
color: t = "#88A4FF",
|
@@ -3860,7 +3706,7 @@ const w2 = ({
|
|
3860
3706
|
)
|
3861
3707
|
]
|
3862
3708
|
}
|
3863
|
-
),
|
3709
|
+
), j2 = ({
|
3864
3710
|
width: i = 14,
|
3865
3711
|
height: e = 14,
|
3866
3712
|
color: t = "#8E8E93",
|
@@ -3888,7 +3734,7 @@ const w2 = ({
|
|
3888
3734
|
)
|
3889
3735
|
]
|
3890
3736
|
}
|
3891
|
-
),
|
3737
|
+
), D2 = ({
|
3892
3738
|
width: i = 14,
|
3893
3739
|
height: e = 14,
|
3894
3740
|
color: t = "#FFB020",
|
@@ -3922,7 +3768,7 @@ const w2 = ({
|
|
3922
3768
|
)
|
3923
3769
|
]
|
3924
3770
|
}
|
3925
|
-
),
|
3771
|
+
), B2 = ({
|
3926
3772
|
width: i = 14,
|
3927
3773
|
height: e = 14,
|
3928
3774
|
color: t = "#D0421B",
|
@@ -3970,7 +3816,7 @@ const w2 = ({
|
|
3970
3816
|
)
|
3971
3817
|
]
|
3972
3818
|
}
|
3973
|
-
),
|
3819
|
+
), Z2 = ({
|
3974
3820
|
width: i = 20,
|
3975
3821
|
height: e = 20,
|
3976
3822
|
color: t = "#070739",
|
@@ -4000,7 +3846,7 @@ const w2 = ({
|
|
4000
3846
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
4001
3847
|
]
|
4002
3848
|
}
|
4003
|
-
),
|
3849
|
+
), W2 = ({
|
4004
3850
|
width: i = 20,
|
4005
3851
|
height: e = 20,
|
4006
3852
|
color: t = "#070739",
|
@@ -4038,7 +3884,7 @@ const w2 = ({
|
|
4038
3884
|
)
|
4039
3885
|
]
|
4040
3886
|
}
|
4041
|
-
),
|
3887
|
+
), G2 = ({
|
4042
3888
|
width: i = 9,
|
4043
3889
|
height: e = 5,
|
4044
3890
|
color: t = "#001E52",
|
@@ -4064,7 +3910,7 @@ const w2 = ({
|
|
4064
3910
|
}
|
4065
3911
|
)
|
4066
3912
|
}
|
4067
|
-
),
|
3913
|
+
), K2 = ({
|
4068
3914
|
width: i = 20,
|
4069
3915
|
height: e = 20,
|
4070
3916
|
color: t = "#F2F2F7",
|
@@ -4093,7 +3939,7 @@ const w2 = ({
|
|
4093
3939
|
)
|
4094
3940
|
]
|
4095
3941
|
}
|
4096
|
-
),
|
3942
|
+
), $2 = ({
|
4097
3943
|
width: i = 20,
|
4098
3944
|
height: e = 20,
|
4099
3945
|
color: t = "#004ED7",
|
@@ -4122,7 +3968,7 @@ const w2 = ({
|
|
4122
3968
|
)
|
4123
3969
|
]
|
4124
3970
|
}
|
4125
|
-
),
|
3971
|
+
), P2 = ({
|
4126
3972
|
width: i = 10,
|
4127
3973
|
height: e = 10,
|
4128
3974
|
color: t = "#001E52",
|
@@ -4151,7 +3997,7 @@ const w2 = ({
|
|
4151
3997
|
)
|
4152
3998
|
]
|
4153
3999
|
}
|
4154
|
-
),
|
4000
|
+
), F2 = ({
|
4155
4001
|
width: i = 10,
|
4156
4002
|
height: e = 10,
|
4157
4003
|
color: t = "#001E52",
|
@@ -4188,7 +4034,7 @@ const w2 = ({
|
|
4188
4034
|
)
|
4189
4035
|
]
|
4190
4036
|
}
|
4191
|
-
),
|
4037
|
+
), Y2 = ({
|
4192
4038
|
className: i,
|
4193
4039
|
color: e = E.GREY_DARK_5,
|
4194
4040
|
height: t = 24,
|
@@ -4227,7 +4073,7 @@ const w2 = ({
|
|
4227
4073
|
)
|
4228
4074
|
]
|
4229
4075
|
}
|
4230
|
-
),
|
4076
|
+
), U2 = ({
|
4231
4077
|
className: i,
|
4232
4078
|
color: e = E.GREY_DARK_5,
|
4233
4079
|
height: t = 20,
|
@@ -4254,7 +4100,7 @@ const w2 = ({
|
|
4254
4100
|
}
|
4255
4101
|
)
|
4256
4102
|
}
|
4257
|
-
),
|
4103
|
+
), z2 = ({
|
4258
4104
|
className: i,
|
4259
4105
|
color: e = E.GREY_DARK_5,
|
4260
4106
|
height: t = 20,
|
@@ -4281,7 +4127,7 @@ const w2 = ({
|
|
4281
4127
|
}
|
4282
4128
|
)
|
4283
4129
|
}
|
4284
|
-
),
|
4130
|
+
), J2 = ({
|
4285
4131
|
className: i,
|
4286
4132
|
color: e = E.GREY_DARK_5,
|
4287
4133
|
height: t = 5,
|
@@ -4305,7 +4151,7 @@ const w2 = ({
|
|
4305
4151
|
}
|
4306
4152
|
)
|
4307
4153
|
}
|
4308
|
-
),
|
4154
|
+
), q2 = ({
|
4309
4155
|
className: i,
|
4310
4156
|
color: e = E.GREY_DARK_5,
|
4311
4157
|
height: t = 5,
|
@@ -4330,7 +4176,7 @@ const w2 = ({
|
|
4330
4176
|
}
|
4331
4177
|
)
|
4332
4178
|
}
|
4333
|
-
),
|
4179
|
+
), Q2 = ({
|
4334
4180
|
className: i,
|
4335
4181
|
color: e = E.GREY_DARK_5,
|
4336
4182
|
height: t = 24,
|
@@ -4369,7 +4215,7 @@ const w2 = ({
|
|
4369
4215
|
)
|
4370
4216
|
]
|
4371
4217
|
}
|
4372
|
-
),
|
4218
|
+
), X2 = ({
|
4373
4219
|
className: i,
|
4374
4220
|
color: e = E.GREY_DARK_5,
|
4375
4221
|
height: t = 24,
|
@@ -4408,7 +4254,7 @@ const w2 = ({
|
|
4408
4254
|
)
|
4409
4255
|
]
|
4410
4256
|
}
|
4411
|
-
),
|
4257
|
+
), ei = ({
|
4412
4258
|
className: i,
|
4413
4259
|
color: e = E.GREY_DARK_5,
|
4414
4260
|
height: t = 24,
|
@@ -4435,7 +4281,7 @@ const w2 = ({
|
|
4435
4281
|
}
|
4436
4282
|
)
|
4437
4283
|
}
|
4438
|
-
),
|
4284
|
+
), ti = ({
|
4439
4285
|
className: i,
|
4440
4286
|
color: e = E.GREY_DARK_5,
|
4441
4287
|
height: t = 24,
|
@@ -4494,7 +4340,7 @@ const w2 = ({
|
|
4494
4340
|
)
|
4495
4341
|
]
|
4496
4342
|
}
|
4497
|
-
),
|
4343
|
+
), ii = ({
|
4498
4344
|
className: i,
|
4499
4345
|
color: e = E.GREY_DARK_5,
|
4500
4346
|
height: t = 24,
|
@@ -4531,7 +4377,7 @@ const w2 = ({
|
|
4531
4377
|
)
|
4532
4378
|
]
|
4533
4379
|
}
|
4534
|
-
),
|
4380
|
+
), si = ({
|
4535
4381
|
className: i,
|
4536
4382
|
color: e = E.GREY_DARK_3,
|
4537
4383
|
height: t = 14,
|
@@ -4568,7 +4414,7 @@ const w2 = ({
|
|
4568
4414
|
)
|
4569
4415
|
]
|
4570
4416
|
}
|
4571
|
-
),
|
4417
|
+
), ni = ({
|
4572
4418
|
className: i,
|
4573
4419
|
color: e = E.GREY_DARK_5,
|
4574
4420
|
height: t = 18,
|
@@ -4595,7 +4441,7 @@ const w2 = ({
|
|
4595
4441
|
}
|
4596
4442
|
)
|
4597
4443
|
}
|
4598
|
-
),
|
4444
|
+
), ri = ({
|
4599
4445
|
className: i,
|
4600
4446
|
color: e = E.GREY_DARK_5,
|
4601
4447
|
height: t = 24,
|
@@ -4647,7 +4493,7 @@ const w2 = ({
|
|
4647
4493
|
)
|
4648
4494
|
]
|
4649
4495
|
}
|
4650
|
-
),
|
4496
|
+
), oi = ({
|
4651
4497
|
className: i,
|
4652
4498
|
color: e = E.GREY_DARK_5,
|
4653
4499
|
height: t = 24,
|
@@ -4684,7 +4530,7 @@ const w2 = ({
|
|
4684
4530
|
)
|
4685
4531
|
]
|
4686
4532
|
}
|
4687
|
-
),
|
4533
|
+
), ai = ({
|
4688
4534
|
className: i,
|
4689
4535
|
color: e = E.NOTIFICATION_WARNING_DARK,
|
4690
4536
|
height: t = 37,
|
@@ -4723,7 +4569,7 @@ const w2 = ({
|
|
4723
4569
|
)
|
4724
4570
|
]
|
4725
4571
|
}
|
4726
|
-
),
|
4572
|
+
), li = ({
|
4727
4573
|
className: i,
|
4728
4574
|
color: e = E.GREY_DARK_5,
|
4729
4575
|
height: t = 24,
|
@@ -4749,7 +4595,7 @@ const w2 = ({
|
|
4749
4595
|
}
|
4750
4596
|
)
|
4751
4597
|
}
|
4752
|
-
),
|
4598
|
+
), hi = ({
|
4753
4599
|
className: i,
|
4754
4600
|
color: e = E.GREY_DARK_5,
|
4755
4601
|
height: t = 24,
|
@@ -4788,7 +4634,7 @@ const w2 = ({
|
|
4788
4634
|
)
|
4789
4635
|
]
|
4790
4636
|
}
|
4791
|
-
),
|
4637
|
+
), ci = ({
|
4792
4638
|
className: i,
|
4793
4639
|
color: e = E.GREY_DARK_5,
|
4794
4640
|
height: t = 24,
|
@@ -4827,7 +4673,7 @@ const w2 = ({
|
|
4827
4673
|
)
|
4828
4674
|
]
|
4829
4675
|
}
|
4830
|
-
),
|
4676
|
+
), di = ({
|
4831
4677
|
className: i,
|
4832
4678
|
color: e = E.GREY_DARK_5,
|
4833
4679
|
height: t = 24,
|
@@ -4896,7 +4742,7 @@ const w2 = ({
|
|
4896
4742
|
)
|
4897
4743
|
]
|
4898
4744
|
}
|
4899
|
-
),
|
4745
|
+
), gi = ({
|
4900
4746
|
className: i,
|
4901
4747
|
color: e = E.GREY_DARK_5,
|
4902
4748
|
height: t = 24,
|
@@ -4953,7 +4799,7 @@ const w2 = ({
|
|
4953
4799
|
)
|
4954
4800
|
]
|
4955
4801
|
}
|
4956
|
-
),
|
4802
|
+
), ui = ({
|
4957
4803
|
className: i,
|
4958
4804
|
color: e = E.GREY_DARK_5,
|
4959
4805
|
height: t = 24,
|
@@ -4992,7 +4838,7 @@ const w2 = ({
|
|
4992
4838
|
)
|
4993
4839
|
]
|
4994
4840
|
}
|
4995
|
-
),
|
4841
|
+
), Ci = ({
|
4996
4842
|
className: i,
|
4997
4843
|
color: e = E.GREY_DARK_5,
|
4998
4844
|
height: t = 24,
|
@@ -5041,7 +4887,7 @@ const w2 = ({
|
|
5041
4887
|
)
|
5042
4888
|
]
|
5043
4889
|
}
|
5044
|
-
),
|
4890
|
+
), pi = ({
|
5045
4891
|
className: i,
|
5046
4892
|
color: e = E.GREY_DARK_5,
|
5047
4893
|
height: t = 24,
|
@@ -5068,7 +4914,7 @@ const w2 = ({
|
|
5068
4914
|
}
|
5069
4915
|
)
|
5070
4916
|
}
|
5071
|
-
),
|
4917
|
+
), fi = ({
|
5072
4918
|
className: i,
|
5073
4919
|
color: e = E.GREY_DARK_5,
|
5074
4920
|
height: t = 20,
|
@@ -5097,7 +4943,7 @@ const w2 = ({
|
|
5097
4943
|
)
|
5098
4944
|
]
|
5099
4945
|
}
|
5100
|
-
),
|
4946
|
+
), mi = ({
|
5101
4947
|
className: i,
|
5102
4948
|
color: e = "#001E52",
|
5103
4949
|
height: t = 24,
|
@@ -5123,7 +4969,7 @@ const w2 = ({
|
|
5123
4969
|
}
|
5124
4970
|
)
|
5125
4971
|
}
|
5126
|
-
),
|
4972
|
+
), wi = ({
|
5127
4973
|
className: i,
|
5128
4974
|
color: e = "#131314",
|
5129
4975
|
height: t = 20,
|
@@ -5151,7 +4997,7 @@ const w2 = ({
|
|
5151
4997
|
}
|
5152
4998
|
)
|
5153
4999
|
}
|
5154
|
-
),
|
5000
|
+
), ki = ({
|
5155
5001
|
className: i,
|
5156
5002
|
color: e = "#001E52",
|
5157
5003
|
height: t = 24,
|
@@ -5189,7 +5035,7 @@ const w2 = ({
|
|
5189
5035
|
)
|
5190
5036
|
] }) })
|
5191
5037
|
}
|
5192
|
-
),
|
5038
|
+
), Li = ({
|
5193
5039
|
width: i = 20,
|
5194
5040
|
height: e = 20,
|
5195
5041
|
color: t = "#001E52",
|
@@ -5245,7 +5091,7 @@ const w2 = ({
|
|
5245
5091
|
}
|
5246
5092
|
)
|
5247
5093
|
}
|
5248
|
-
),
|
5094
|
+
), vi = ({
|
5249
5095
|
width: i = 24,
|
5250
5096
|
height: e = 24,
|
5251
5097
|
color: t = "#131314",
|
@@ -5278,7 +5124,7 @@ const w2 = ({
|
|
5278
5124
|
)
|
5279
5125
|
]
|
5280
5126
|
}
|
5281
|
-
),
|
5127
|
+
), Ni = ({
|
5282
5128
|
width: i = 24,
|
5283
5129
|
height: e = 24,
|
5284
5130
|
color: t = E.GREY_DARK_2,
|
@@ -5317,7 +5163,7 @@ const w2 = ({
|
|
5317
5163
|
)
|
5318
5164
|
]
|
5319
5165
|
}
|
5320
|
-
),
|
5166
|
+
), xi = ({
|
5321
5167
|
width: i = 24,
|
5322
5168
|
height: e = 24,
|
5323
5169
|
color: t = E.GREY_DARK_2,
|
@@ -5344,7 +5190,7 @@ const w2 = ({
|
|
5344
5190
|
}
|
5345
5191
|
)
|
5346
5192
|
}
|
5347
|
-
),
|
5193
|
+
), Ri = ({
|
5348
5194
|
width: i = 24,
|
5349
5195
|
height: e = 24,
|
5350
5196
|
color: t = E.GREY_DARK_2,
|
@@ -5384,7 +5230,7 @@ const w2 = ({
|
|
5384
5230
|
)
|
5385
5231
|
]
|
5386
5232
|
}
|
5387
|
-
),
|
5233
|
+
), Mi = ({
|
5388
5234
|
width: i = 24,
|
5389
5235
|
height: e = 24,
|
5390
5236
|
color: t = E.GREY_DARK_2,
|
@@ -5411,7 +5257,7 @@ const w2 = ({
|
|
5411
5257
|
}
|
5412
5258
|
)
|
5413
5259
|
}
|
5414
|
-
),
|
5260
|
+
), yi = ({
|
5415
5261
|
width: i = 24,
|
5416
5262
|
height: e = 24,
|
5417
5263
|
color: t = E.GREY_DARK_2,
|
@@ -5438,7 +5284,7 @@ const w2 = ({
|
|
5438
5284
|
}
|
5439
5285
|
)
|
5440
5286
|
}
|
5441
|
-
),
|
5287
|
+
), bi = ({
|
5442
5288
|
width: i = 20,
|
5443
5289
|
height: e = 20,
|
5444
5290
|
color: t = "#001E52",
|
@@ -5464,227 +5310,217 @@ const w2 = ({
|
|
5464
5310
|
}
|
5465
5311
|
)
|
5466
5312
|
}
|
5467
|
-
),
|
5313
|
+
), Ei = ({
|
5468
5314
|
name: i,
|
5469
5315
|
width: e,
|
5470
5316
|
height: t,
|
5471
5317
|
color: s,
|
5472
5318
|
className: n,
|
5473
5319
|
disabled: o = !1,
|
5474
|
-
onClick:
|
5320
|
+
onClick: c
|
5475
5321
|
}) => {
|
5476
|
-
const [a, d] =
|
5322
|
+
const [a, d] = B(n), { theme: g } = r1(de), l = o ? g && g === "dark" ? E.GREY_LIGHT_4 : E.GREY_DARK_1 : s, h = o ? void 0 : c;
|
5477
5323
|
return G(() => {
|
5478
5324
|
if (n) {
|
5479
|
-
|
5325
|
+
h && !o && d(`${n} clickable`);
|
5480
5326
|
return;
|
5481
5327
|
}
|
5482
|
-
|
5483
|
-
}, [
|
5328
|
+
h && !o && d("clickable");
|
5329
|
+
}, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
5484
5330
|
switch (i) {
|
5485
5331
|
case "nextIcon":
|
5486
|
-
return
|
5332
|
+
return U2({ width: e, height: t, color: l, className: a, onClick: h });
|
5487
5333
|
case "prevIcon":
|
5488
|
-
return
|
5334
|
+
return z2({ width: e, height: t, color: l, className: a, onClick: h });
|
5489
5335
|
case "arrowDown":
|
5490
|
-
return
|
5336
|
+
return p2({ width: e, height: t, color: l, className: a, onClick: h });
|
5491
5337
|
case "info":
|
5492
|
-
return
|
5338
|
+
return f2({ width: e, height: t, color: l, className: a, onClick: h });
|
5493
5339
|
case "arrowRight":
|
5494
|
-
return
|
5340
|
+
return m2({ width: e, height: t, color: l, className: a, onClick: h });
|
5495
5341
|
case "calendar":
|
5496
|
-
return
|
5342
|
+
return w2({ width: e, height: t, color: l, className: a, onClick: h });
|
5497
5343
|
case "ok":
|
5498
|
-
return
|
5344
|
+
return k2({ width: e, height: t, color: l, className: a, onClick: h });
|
5499
5345
|
case "cancel":
|
5500
|
-
return
|
5346
|
+
return L2({ width: e, height: t, color: l, className: a, onClick: h });
|
5501
5347
|
case "add":
|
5502
|
-
return
|
5348
|
+
return v2({ width: e, height: t, color: l, className: a, onClick: h });
|
5503
5349
|
case "list":
|
5504
|
-
return
|
5350
|
+
return N2({ width: e, height: t, color: l, className: a, onClick: h });
|
5505
5351
|
case "dragAndDrop":
|
5506
|
-
return
|
5352
|
+
return x2({ width: e, height: t, color: l, className: a, onClick: h });
|
5507
5353
|
case "filter":
|
5508
|
-
return
|
5354
|
+
return R2({ width: e, height: t, color: l, className: a, onClick: h });
|
5509
5355
|
case "attention":
|
5510
|
-
return
|
5511
|
-
case "arrowDownLong":
|
5512
|
-
return E2({
|
5513
|
-
width: e,
|
5514
|
-
height: t,
|
5515
|
-
color: l,
|
5516
|
-
className: a,
|
5517
|
-
onClick: c
|
5518
|
-
});
|
5519
|
-
case "dotArrowDown":
|
5520
|
-
return H2({ width: e, height: t, color: l, className: a, onClick: c });
|
5356
|
+
return M2({ width: e, height: t, color: l, className: a, onClick: h });
|
5521
5357
|
case "users":
|
5522
|
-
return
|
5358
|
+
return y2({ width: e, height: t, color: l, className: a, onClick: h });
|
5523
5359
|
case "mySkillsMatrix":
|
5524
|
-
return
|
5360
|
+
return b2({
|
5525
5361
|
width: e,
|
5526
5362
|
height: t,
|
5527
5363
|
color: l,
|
5528
5364
|
className: a,
|
5529
|
-
onClick:
|
5365
|
+
onClick: h
|
5530
5366
|
});
|
5531
5367
|
case "skills":
|
5532
|
-
return
|
5368
|
+
return E2({ width: e, height: t, color: l, className: a, onClick: h });
|
5533
5369
|
case "skillsMatrices":
|
5534
|
-
return
|
5370
|
+
return H2({
|
5535
5371
|
width: e,
|
5536
5372
|
height: t,
|
5537
5373
|
color: l,
|
5538
5374
|
className: a,
|
5539
|
-
onClick:
|
5375
|
+
onClick: h
|
5540
5376
|
});
|
5541
5377
|
case "history":
|
5542
|
-
return
|
5378
|
+
return _2({ width: e, height: t, color: l, className: a, onClick: h });
|
5543
5379
|
case "logOut":
|
5544
|
-
return
|
5380
|
+
return I2({ width: e, height: t, color: l, className: a, onClick: h });
|
5545
5381
|
case "settings":
|
5546
|
-
return
|
5382
|
+
return O2({ width: e, height: t, color: l, className: a, onClick: h });
|
5547
5383
|
case "trash":
|
5548
|
-
return
|
5384
|
+
return S2({ width: e, height: t, color: l, className: a, onClick: h });
|
5549
5385
|
case "settings4":
|
5550
|
-
return
|
5386
|
+
return V2({ width: e, height: t, color: l, className: a, onClick: h });
|
5551
5387
|
case "success":
|
5552
|
-
return
|
5388
|
+
return A2({ width: e, height: t, color: l, className: a, onClick: h });
|
5553
5389
|
case "errorSmall":
|
5554
|
-
return
|
5390
|
+
return T2({ width: e, height: t, color: l, className: a, onClick: h });
|
5555
5391
|
case "infoMedium":
|
5556
|
-
return
|
5392
|
+
return j2({ width: e, height: t, color: l, className: a, onClick: h });
|
5557
5393
|
case "attentionMedium":
|
5558
|
-
return
|
5394
|
+
return D2({
|
5559
5395
|
width: e,
|
5560
5396
|
height: t,
|
5561
5397
|
color: l,
|
5562
5398
|
className: a,
|
5563
|
-
onClick:
|
5399
|
+
onClick: h
|
5564
5400
|
});
|
5565
5401
|
case "errorMedium":
|
5566
|
-
return
|
5402
|
+
return B2({ width: e, height: t, color: l, className: a, onClick: h });
|
5567
5403
|
case "visibilityIcon":
|
5568
|
-
return
|
5404
|
+
return Z2({
|
5569
5405
|
width: e,
|
5570
5406
|
height: t,
|
5571
5407
|
color: l,
|
5572
5408
|
className: a,
|
5573
|
-
onClick:
|
5409
|
+
onClick: h
|
5574
5410
|
});
|
5575
5411
|
case "visibilityOffIcon":
|
5576
|
-
return
|
5412
|
+
return W2({
|
5577
5413
|
width: e,
|
5578
5414
|
height: t,
|
5579
5415
|
color: l,
|
5580
5416
|
className: a,
|
5581
|
-
onClick:
|
5417
|
+
onClick: h
|
5582
5418
|
});
|
5583
5419
|
case "selectArrowIcon":
|
5584
|
-
return
|
5420
|
+
return G2({
|
5585
5421
|
width: e,
|
5586
5422
|
height: t,
|
5587
5423
|
color: l,
|
5588
5424
|
className: a,
|
5589
|
-
onClick:
|
5425
|
+
onClick: h
|
5590
5426
|
});
|
5591
5427
|
case "expandArrowIcon":
|
5592
|
-
return
|
5428
|
+
return K2({
|
5593
5429
|
width: e,
|
5594
5430
|
height: t,
|
5595
5431
|
color: l,
|
5596
5432
|
className: a,
|
5597
|
-
onClick:
|
5433
|
+
onClick: h
|
5598
5434
|
});
|
5599
5435
|
case "expandActiveArrowIcon":
|
5600
|
-
return
|
5436
|
+
return $2({
|
5601
5437
|
width: e,
|
5602
5438
|
height: t,
|
5603
5439
|
color: l,
|
5604
5440
|
className: a,
|
5605
|
-
onClick:
|
5441
|
+
onClick: h
|
5606
5442
|
});
|
5607
5443
|
case "sortUp":
|
5608
|
-
return
|
5444
|
+
return P2({ width: e, height: t, color: l, className: a, onClick: h });
|
5609
5445
|
case "sortDown":
|
5610
|
-
return
|
5446
|
+
return F2({ width: e, height: t, color: l, className: a, onClick: h });
|
5611
5447
|
case "search":
|
5612
|
-
return
|
5448
|
+
return Y2({ width: e, height: t, color: l, className: a, onClick: h });
|
5613
5449
|
case "arrowUpFilled":
|
5614
|
-
return
|
5450
|
+
return q2({ width: e, height: t, color: l, className: a, onClick: h });
|
5615
5451
|
case "arrowDownFilled":
|
5616
|
-
return
|
5452
|
+
return J2({ width: e, height: t, color: l, className: a, onClick: h });
|
5617
5453
|
case "link":
|
5618
|
-
return
|
5454
|
+
return Q2({ width: e, height: t, color: l, className: a, onClick: h });
|
5619
5455
|
case "telegram":
|
5620
|
-
return
|
5456
|
+
return ei({ width: e, height: t, color: l, className: a, onClick: h });
|
5621
5457
|
case "mail":
|
5622
|
-
return
|
5458
|
+
return ii({ width: e, height: t, color: l, className: a, onClick: h });
|
5623
5459
|
case "github":
|
5624
|
-
return
|
5460
|
+
return X2({ width: e, height: t, color: l, className: a, onClick: h });
|
5625
5461
|
case "linkedIn":
|
5626
|
-
return
|
5462
|
+
return ti({ width: e, height: t, color: l, className: a, onClick: h });
|
5627
5463
|
case "emptyStateIcon":
|
5628
|
-
return
|
5464
|
+
return si({ width: e, height: t, color: l, className: a, onClick: h });
|
5629
5465
|
case "filtersIcon":
|
5630
|
-
return
|
5466
|
+
return ni({ width: e, height: t, color: l, className: a, onClick: h });
|
5631
5467
|
case "dotMenuIcon":
|
5632
|
-
return
|
5468
|
+
return ri({ width: e, height: t, color: l, className: a, onClick: h });
|
5633
5469
|
case "plusCircle":
|
5634
|
-
return
|
5470
|
+
return oi({ width: e, height: t, color: l, className: a, onClick: h });
|
5635
5471
|
case "warning":
|
5636
|
-
return
|
5472
|
+
return ai({ width: e, height: t, color: l, className: a, onClick: h });
|
5637
5473
|
case "back":
|
5638
|
-
return
|
5474
|
+
return li({ width: e, height: t, color: l, className: a, onClick: h });
|
5639
5475
|
case "bell":
|
5640
|
-
return
|
5476
|
+
return hi({ width: e, height: t, color: l, className: a, onClick: h });
|
5641
5477
|
case "contract":
|
5642
|
-
return
|
5478
|
+
return di({ width: e, height: t, color: l, className: a, onClick: h });
|
5643
5479
|
case "trash2":
|
5644
|
-
return
|
5480
|
+
return ci({ width: e, height: t, color: l, className: a, onClick: h });
|
5645
5481
|
case "resourceManager":
|
5646
|
-
return
|
5482
|
+
return gi({ width: e, height: t, color: l, className: a, onClick: h });
|
5647
5483
|
case "settings2":
|
5648
|
-
return
|
5484
|
+
return ui({ width: e, height: t, color: l, className: a, onClick: h });
|
5649
5485
|
case "image":
|
5650
|
-
return
|
5486
|
+
return Ci({ width: e, height: t, color: l, className: a, onClick: h });
|
5651
5487
|
case "edit":
|
5652
|
-
return
|
5488
|
+
return pi({ width: e, height: t, color: l, className: a, onClick: h });
|
5653
5489
|
case "filledArrowRight":
|
5654
|
-
return
|
5490
|
+
return fi({ width: e, height: t, color: l, className: a, onClick: h });
|
5655
5491
|
case "burgerMenu":
|
5656
|
-
return
|
5492
|
+
return mi({ width: e, height: t, color: l, className: a, onClick: h });
|
5657
5493
|
case "signOut":
|
5658
|
-
return
|
5494
|
+
return wi({ width: e, height: t, color: l, className: a, onClick: h });
|
5659
5495
|
case "refresh":
|
5660
|
-
return
|
5496
|
+
return ki({ width: e, height: t, color: l, className: a, onClick: h });
|
5661
5497
|
case "projects":
|
5662
|
-
return
|
5498
|
+
return Li({ width: e, height: t, color: l, className: a, onClick: h });
|
5663
5499
|
case "profile":
|
5664
|
-
return
|
5500
|
+
return bi({ width: e, height: t, color: l, className: a, onClick: h });
|
5665
5501
|
case "exit":
|
5666
|
-
return
|
5502
|
+
return vi({ width: e, height: t, color: l, className: a, onClick: h });
|
5667
5503
|
case "client":
|
5668
|
-
return
|
5504
|
+
return Ni({ width: e, height: t, color: l, className: a, onClick: h });
|
5669
5505
|
case "calendar2":
|
5670
|
-
return
|
5506
|
+
return xi({ width: e, height: t, color: l, className: a, onClick: h });
|
5671
5507
|
case "openPointCircle":
|
5672
|
-
return
|
5508
|
+
return Ri({ width: e, height: t, color: l, className: a, onClick: h });
|
5673
5509
|
case "community":
|
5674
|
-
return
|
5510
|
+
return Mi({ width: e, height: t, color: l, className: a, onClick: h });
|
5675
5511
|
case "docs":
|
5676
|
-
return
|
5512
|
+
return yi({ width: e, height: t, color: l, className: a, onClick: h });
|
5677
5513
|
default:
|
5678
5514
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
5679
5515
|
}
|
5680
5516
|
})() });
|
5681
5517
|
};
|
5682
5518
|
var f1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(f1 || {});
|
5683
|
-
const
|
5519
|
+
const Hi = d1({
|
5684
5520
|
locale: "en",
|
5685
5521
|
theme: "light"
|
5686
5522
|
});
|
5687
|
-
|
5523
|
+
Hi.Provider;
|
5688
5524
|
const ge = ({
|
5689
5525
|
children: i,
|
5690
5526
|
width: e,
|
@@ -5693,7 +5529,7 @@ const ge = ({
|
|
5693
5529
|
closable: n = !0,
|
5694
5530
|
disabled: o = !1
|
5695
5531
|
}) => {
|
5696
|
-
const
|
5532
|
+
const c = t === "small" ? 10 : 12.5, a = () => {
|
5697
5533
|
o || s == null || s();
|
5698
5534
|
};
|
5699
5535
|
return /* @__PURE__ */ r(
|
@@ -5701,12 +5537,12 @@ const ge = ({
|
|
5701
5537
|
{
|
5702
5538
|
className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
|
5703
5539
|
closeIcon: /* @__PURE__ */ r(
|
5704
|
-
|
5540
|
+
Ei,
|
5705
5541
|
{
|
5706
5542
|
name: "errorSmall",
|
5707
5543
|
color: o ? f1.GREY_DARK_1 : f1.GREY_DARK_2,
|
5708
|
-
width:
|
5709
|
-
height:
|
5544
|
+
width: c,
|
5545
|
+
height: c,
|
5710
5546
|
onClick: a
|
5711
5547
|
}
|
5712
5548
|
),
|
@@ -5714,7 +5550,7 @@ const ge = ({
|
|
5714
5550
|
style: { width: e ?? "fit-content" },
|
5715
5551
|
closable: n,
|
5716
5552
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
5717
|
-
|
5553
|
+
C2,
|
5718
5554
|
{
|
5719
5555
|
variant: t === "small" ? "body4" : "body2",
|
5720
5556
|
color: o ? f1.GREY_DARK_2 : f1.GREY_DARK_5,
|
@@ -5723,12 +5559,12 @@ const ge = ({
|
|
5723
5559
|
) : i
|
5724
5560
|
}
|
5725
5561
|
);
|
5726
|
-
}, { Title:
|
5562
|
+
}, { Title: _i, Text: Ii } = ae, Oi = {
|
5727
5563
|
h1: 1,
|
5728
5564
|
h2: 2,
|
5729
5565
|
h3: 3,
|
5730
5566
|
h4: 4
|
5731
|
-
},
|
5567
|
+
}, Si = k1(
|
5732
5568
|
({
|
5733
5569
|
align: i = "inherit",
|
5734
5570
|
variant: e = "body1",
|
@@ -5736,32 +5572,32 @@ const ge = ({
|
|
5736
5572
|
children: s,
|
5737
5573
|
onClick: n,
|
5738
5574
|
collapsed: o,
|
5739
|
-
whiteSpace:
|
5575
|
+
whiteSpace: c = "normal"
|
5740
5576
|
}, a) => {
|
5741
5577
|
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
5742
5578
|
let g = `snmt-typography snmt-typography-${e}`;
|
5743
5579
|
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), o && (g += " collapsed"), d ? /* @__PURE__ */ r(
|
5744
|
-
|
5580
|
+
_i,
|
5745
5581
|
{
|
5746
5582
|
className: g,
|
5747
|
-
style: { color: t, whiteSpace:
|
5583
|
+
style: { color: t, whiteSpace: c },
|
5748
5584
|
onClick: n,
|
5749
|
-
level:
|
5585
|
+
level: Oi[e],
|
5750
5586
|
ref: a,
|
5751
5587
|
children: s
|
5752
5588
|
}
|
5753
5589
|
) : /* @__PURE__ */ r(
|
5754
|
-
|
5590
|
+
Ii,
|
5755
5591
|
{
|
5756
5592
|
className: g,
|
5757
|
-
style: { color: t, whiteSpace:
|
5593
|
+
style: { color: t, whiteSpace: c },
|
5758
5594
|
onClick: n,
|
5759
5595
|
ref: a,
|
5760
5596
|
children: s
|
5761
5597
|
}
|
5762
5598
|
);
|
5763
5599
|
}
|
5764
|
-
),
|
5600
|
+
), Vi = ({
|
5765
5601
|
children: i,
|
5766
5602
|
content: e,
|
5767
5603
|
isOpen: t,
|
@@ -5769,7 +5605,7 @@ const ge = ({
|
|
5769
5605
|
placement: n = "topRight",
|
5770
5606
|
noPadding: o = !1
|
5771
5607
|
}) => {
|
5772
|
-
const [
|
5608
|
+
const [c, a] = B(!1);
|
5773
5609
|
return /* @__PURE__ */ r(
|
5774
5610
|
be,
|
5775
5611
|
{
|
@@ -5778,7 +5614,7 @@ const ge = ({
|
|
5778
5614
|
placement: n,
|
5779
5615
|
trigger: "click",
|
5780
5616
|
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
5781
|
-
open: t ??
|
5617
|
+
open: t ?? c,
|
5782
5618
|
onOpenChange: (d) => {
|
5783
5619
|
a(d), s == null || s(d);
|
5784
5620
|
},
|
@@ -5786,7 +5622,7 @@ const ge = ({
|
|
5786
5622
|
}
|
5787
5623
|
);
|
5788
5624
|
};
|
5789
|
-
var
|
5625
|
+
var Ai = { exports: {} };
|
5790
5626
|
(function(i, e) {
|
5791
5627
|
(function(t, s) {
|
5792
5628
|
i.exports = s();
|
@@ -5796,27 +5632,27 @@ var ji = { exports: {} };
|
|
5796
5632
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
5797
5633
|
} };
|
5798
5634
|
});
|
5799
|
-
})(
|
5800
|
-
const
|
5635
|
+
})(Ai);
|
5636
|
+
const Ti = ({
|
5801
5637
|
values: i,
|
5802
5638
|
onTagClose: e,
|
5803
5639
|
maxWidth: t,
|
5804
5640
|
closable: s = !0,
|
5805
5641
|
disabled: n,
|
5806
5642
|
options: o,
|
5807
|
-
extraOptions:
|
5643
|
+
extraOptions: c
|
5808
5644
|
}) => {
|
5809
|
-
const { locale: a } = r1(
|
5645
|
+
const { locale: a } = r1(j1), { t: d } = ze("common", { lng: a }), [g, l] = B(!1);
|
5810
5646
|
if (G(() => {
|
5811
5647
|
i.length || l(!1);
|
5812
5648
|
}, [i]), !i.length)
|
5813
5649
|
return null;
|
5814
|
-
const
|
5650
|
+
const h = (u) => {
|
5815
5651
|
var p, k;
|
5816
|
-
return ((p = o == null ? void 0 : o.find((v) => v.value === u)) == null ? void 0 : p.label) || ((k =
|
5652
|
+
return ((p = o == null ? void 0 : o.find((v) => v.value === u)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((v) => v.value === u)) == null ? void 0 : k.label) || u;
|
5817
5653
|
};
|
5818
5654
|
return /* @__PURE__ */ C(
|
5819
|
-
|
5655
|
+
Vi,
|
5820
5656
|
{
|
5821
5657
|
content: (
|
5822
5658
|
// 90: paddings + margins + gaps and so on
|
@@ -5826,7 +5662,7 @@ const Zi = ({
|
|
5826
5662
|
onClose: () => e(u),
|
5827
5663
|
closable: s,
|
5828
5664
|
disabled: n,
|
5829
|
-
children:
|
5665
|
+
children: h(u)
|
5830
5666
|
},
|
5831
5667
|
u
|
5832
5668
|
)) }) })
|
@@ -5857,44 +5693,44 @@ const Zi = ({
|
|
5857
5693
|
mode: s,
|
5858
5694
|
search: n = !1,
|
5859
5695
|
options: o,
|
5860
|
-
width:
|
5696
|
+
width: c,
|
5861
5697
|
disabled: a = !1,
|
5862
5698
|
required: d = !1,
|
5863
5699
|
clearable: g = !1,
|
5864
5700
|
scrollThresholdValue: l = 50,
|
5865
|
-
onSearchChange:
|
5701
|
+
onSearchChange: h,
|
5866
5702
|
onDropdownVisibleChange: u,
|
5867
5703
|
onScrollToEnd: p,
|
5868
5704
|
onPopupScroll: k,
|
5869
5705
|
id: v,
|
5870
|
-
extraOptions:
|
5706
|
+
extraOptions: m,
|
5871
5707
|
dropdownRender: O,
|
5872
5708
|
optionRender: M,
|
5873
5709
|
isLoading: S,
|
5874
5710
|
readOnly: f,
|
5875
5711
|
error: N
|
5876
5712
|
}, x) => {
|
5877
|
-
const [L, P] =
|
5713
|
+
const [L, P] = B(!1), [J, F] = B(!1), [H, j] = B(!0), [_, V] = B(i), T = X(null);
|
5878
5714
|
G(() => {
|
5879
5715
|
V(i);
|
5880
5716
|
}, [i]);
|
5881
|
-
const Z = (
|
5882
|
-
P(
|
5883
|
-
}, U = (
|
5884
|
-
var
|
5885
|
-
return !!((
|
5717
|
+
const Z = (w) => {
|
5718
|
+
P(w), u && u(w);
|
5719
|
+
}, U = (w, y) => {
|
5720
|
+
var D;
|
5721
|
+
return !!((D = y == null ? void 0 : y.label) != null && D.toString().toLowerCase().includes(w.toLowerCase()));
|
5886
5722
|
}, I = () => {
|
5887
5723
|
F(!0);
|
5888
5724
|
}, K = () => {
|
5889
5725
|
F(!1);
|
5890
5726
|
}, W = $(
|
5891
|
-
(
|
5892
|
-
if (V(
|
5893
|
-
const
|
5894
|
-
e == null || e(
|
5727
|
+
(w) => {
|
5728
|
+
if (V(w), s) {
|
5729
|
+
const D = w;
|
5730
|
+
e == null || e(D);
|
5895
5731
|
return;
|
5896
5732
|
}
|
5897
|
-
const y =
|
5733
|
+
const y = w;
|
5898
5734
|
e == null || e(y);
|
5899
5735
|
},
|
5900
5736
|
[s, e]
|
@@ -5907,50 +5743,50 @@ const Zi = ({
|
|
5907
5743
|
W("");
|
5908
5744
|
}
|
5909
5745
|
}, [a, W, s, f]), t1 = $(
|
5910
|
-
(
|
5911
|
-
const y = _.filter((
|
5746
|
+
(w) => {
|
5747
|
+
const y = _.filter((D) => D !== w);
|
5912
5748
|
W(y), V(y);
|
5913
5749
|
},
|
5914
5750
|
[W, _]
|
5915
5751
|
), g1 = $(
|
5916
|
-
(
|
5752
|
+
(w) => (_ == null ? void 0 : _.indexOf(w)) === 0 ? (
|
5917
5753
|
// if the search input is empty
|
5918
5754
|
// then display the placeholder, else do not display it
|
5919
5755
|
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: H ? t : "" })
|
5920
5756
|
) : /* @__PURE__ */ r(i1, {}),
|
5921
5757
|
[H, _, t]
|
5922
|
-
), L1 = (
|
5923
|
-
|
5924
|
-
}, v1 = async (
|
5925
|
-
const { target: y } =
|
5926
|
-
y.scrollTop + y.offsetHeight >= y.scrollHeight - l && (p == null || p(!0)), k && await k(
|
5758
|
+
), L1 = (w) => {
|
5759
|
+
w.preventDefault(), w.stopPropagation();
|
5760
|
+
}, v1 = async (w) => {
|
5761
|
+
const { target: y } = w;
|
5762
|
+
y.scrollTop + y.offsetHeight >= y.scrollHeight - l && (p == null || p(!0)), k && await k(w);
|
5927
5763
|
}, o1 = $(
|
5928
|
-
(
|
5929
|
-
var y,
|
5930
|
-
return ((y = o.find((a1) => a1.value ===
|
5931
|
-
(a1) => a1.value ===
|
5932
|
-
)) == null ? void 0 :
|
5764
|
+
(w) => {
|
5765
|
+
var y, D;
|
5766
|
+
return ((y = o.find((a1) => a1.value === w)) == null ? void 0 : y.label) || ((D = m == null ? void 0 : m.find(
|
5767
|
+
(a1) => a1.value === w
|
5768
|
+
)) == null ? void 0 : D.label) || w;
|
5933
5769
|
},
|
5934
|
-
[
|
5770
|
+
[m, o]
|
5935
5771
|
), N1 = $(
|
5936
|
-
(
|
5772
|
+
(w) => {
|
5937
5773
|
var y;
|
5938
5774
|
return /* @__PURE__ */ r(
|
5939
|
-
|
5775
|
+
Ti,
|
5940
5776
|
{
|
5941
|
-
values:
|
5777
|
+
values: w,
|
5942
5778
|
onTagClose: t1,
|
5943
5779
|
maxWidth: ((y = T.current) == null ? void 0 : y.clientWidth) || 0,
|
5944
5780
|
disabled: a,
|
5945
5781
|
closable: !f,
|
5946
5782
|
options: o,
|
5947
|
-
extraOptions:
|
5783
|
+
extraOptions: m
|
5948
5784
|
}
|
5949
5785
|
);
|
5950
5786
|
},
|
5951
|
-
[a,
|
5787
|
+
[a, m, t1, o, f]
|
5952
5788
|
), A = $(
|
5953
|
-
({ label:
|
5789
|
+
({ label: w, value: y, mode: D }) => D === "filter" ? g1(y) : /* @__PURE__ */ r("div", { onMouseDown: L1, className: "tag-wrapper", children: /* @__PURE__ */ r(ge, { onClose: () => t1(y), disabled: a, children: typeof w == "object" ? w : o1(y) }) }),
|
5954
5790
|
[a, o1, t1, g1]
|
5955
5791
|
), z = Array.isArray(_) && _.length > 0 || !!_ && typeof _ == "string" && _.trim() !== "";
|
5956
5792
|
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
@@ -5960,7 +5796,7 @@ const Zi = ({
|
|
5960
5796
|
className: `snmt-select-1-15-6 ${J ? "snmt-select-focused" : ""}
|
5961
5797
|
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
5962
5798
|
ref: T,
|
5963
|
-
style: { width:
|
5799
|
+
style: { width: c },
|
5964
5800
|
children: [
|
5965
5801
|
/* @__PURE__ */ r(
|
5966
5802
|
Ne,
|
@@ -5974,20 +5810,20 @@ const Zi = ({
|
|
5974
5810
|
onDropdownVisibleChange: Z,
|
5975
5811
|
disabled: a,
|
5976
5812
|
value: _ || void 0,
|
5977
|
-
labelRender: (
|
5978
|
-
const y = o1(
|
5979
|
-
return a ? /* @__PURE__ */ r("span", { style: { color:
|
5813
|
+
labelRender: (w) => {
|
5814
|
+
const y = o1(w.value);
|
5815
|
+
return a ? /* @__PURE__ */ r("span", { style: { color: q.GREY_DARK_1 }, children: y }) : y;
|
5980
5816
|
},
|
5981
5817
|
mode: s === "filter" ? "multiple" : s,
|
5982
5818
|
onChange: W,
|
5983
5819
|
onFocus: I,
|
5984
5820
|
onBlur: K,
|
5985
|
-
onSearch: (
|
5986
|
-
|
5821
|
+
onSearch: (w) => {
|
5822
|
+
j(!w), h && h(w);
|
5987
5823
|
},
|
5988
|
-
onSelect: () =>
|
5989
|
-
onDeselect: () =>
|
5990
|
-
tagRender: (
|
5824
|
+
onSelect: () => j(!0),
|
5825
|
+
onDeselect: () => j(!0),
|
5826
|
+
tagRender: (w) => A({ ...w, mode: s }),
|
5991
5827
|
maxTagCount: "responsive",
|
5992
5828
|
maxTagPlaceholder: N1,
|
5993
5829
|
onPopupScroll: v1,
|
@@ -6004,7 +5840,7 @@ const Zi = ({
|
|
6004
5840
|
u1,
|
6005
5841
|
{
|
6006
5842
|
name: "cancel",
|
6007
|
-
color: a ?
|
5843
|
+
color: a ? q.GREY_DARK_1 : q.GREY_DARK_5
|
6008
5844
|
}
|
6009
5845
|
)
|
6010
5846
|
}
|
@@ -6013,39 +5849,39 @@ const Zi = ({
|
|
6013
5849
|
u1,
|
6014
5850
|
{
|
6015
5851
|
name: "selectArrowIcon",
|
6016
|
-
color: a ?
|
5852
|
+
color: a ? q.GREY_DARK_1 : q.GREY_DARK_5,
|
6017
5853
|
className: L ? "select-arrow-rotated" : "select-arrow",
|
6018
5854
|
onClick: () => P(!L)
|
6019
5855
|
}
|
6020
5856
|
)
|
6021
5857
|
] }) }),
|
6022
|
-
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color:
|
5858
|
+
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: q.GREY_DARK_1 }),
|
6023
5859
|
options: o,
|
6024
|
-
optionRender: (
|
5860
|
+
optionRender: (w) => M ? M(w.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
6025
5861
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
6026
5862
|
s && /* @__PURE__ */ r(
|
6027
|
-
|
5863
|
+
qe,
|
6028
5864
|
{
|
6029
|
-
checked: !!(_ != null && _.includes(
|
5865
|
+
checked: !!(_ != null && _.includes(w.value))
|
6030
5866
|
}
|
6031
5867
|
),
|
6032
5868
|
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
|
6033
|
-
|
6034
|
-
/* @__PURE__ */ r("span", { children:
|
5869
|
+
w.data.image && /* @__PURE__ */ r(Je, { src: w.data.image, size: 20 }),
|
5870
|
+
/* @__PURE__ */ r("span", { children: w.label })
|
6035
5871
|
] })
|
6036
5872
|
] }),
|
6037
|
-
!s && _ ===
|
5873
|
+
!s && _ === w.value && /* @__PURE__ */ r(
|
6038
5874
|
u1,
|
6039
5875
|
{
|
6040
5876
|
name: "ok",
|
6041
|
-
color:
|
5877
|
+
color: q.BLUE_PRIMARY,
|
6042
5878
|
width: 16,
|
6043
5879
|
height: 16
|
6044
5880
|
}
|
6045
5881
|
)
|
6046
5882
|
] }),
|
6047
|
-
dropdownRender: (
|
6048
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: O ? O(
|
5883
|
+
dropdownRender: (w) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
5884
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: O ? O(w) : w }),
|
6049
5885
|
S && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(G1, { size: 28 }) })
|
6050
5886
|
] })
|
6051
5887
|
}
|
@@ -6070,13 +5906,13 @@ const Zi = ({
|
|
6070
5906
|
}
|
6071
5907
|
),
|
6072
5908
|
N && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
|
6073
|
-
/* @__PURE__ */ r(u1, { name: "attention", color:
|
6074
|
-
typeof N == "string" ? /* @__PURE__ */ r(
|
5909
|
+
/* @__PURE__ */ r(u1, { name: "attention", color: q.NOTIFICATION_ERROR_DARK }),
|
5910
|
+
typeof N == "string" ? /* @__PURE__ */ r(Si, { color: q.NOTIFICATION_ERROR_DARK, variant: "body4", children: N }) : N
|
6075
5911
|
] })
|
6076
5912
|
] });
|
6077
5913
|
}
|
6078
5914
|
);
|
6079
|
-
function
|
5915
|
+
function ji(i, e = 500) {
|
6080
5916
|
const t = X();
|
6081
5917
|
return G(() => () => {
|
6082
5918
|
t.current && clearTimeout(t.current);
|
@@ -6103,39 +5939,39 @@ const _1 = 100, l1 = {
|
|
6103
5939
|
value: s,
|
6104
5940
|
id: n,
|
6105
5941
|
disabled: o,
|
6106
|
-
scrollThresholdValue:
|
5942
|
+
scrollThresholdValue: c,
|
6107
5943
|
placeholder: a,
|
6108
5944
|
mode: d,
|
6109
5945
|
loadOnClosedState: g,
|
6110
5946
|
preloadOptions: l,
|
6111
|
-
extraOptions:
|
5947
|
+
extraOptions: h,
|
6112
5948
|
onDropdownVisibleChange: u,
|
6113
5949
|
optionRender: p,
|
6114
5950
|
dropdownRender: k,
|
6115
5951
|
readOnly: v,
|
6116
|
-
clearable:
|
5952
|
+
clearable: m = !1,
|
6117
5953
|
required: O = !1,
|
6118
5954
|
error: M
|
6119
5955
|
}, S) => {
|
6120
|
-
const [f, N] =
|
6121
|
-
|
6122
|
-
), Z = $1(x.offset), U = $1(F), [I, K] =
|
5956
|
+
const [f, N] = B(), [x, L] = B(l1), [P, J] = B(!1), [F, H] = B(), [j, _] = B(!1), [V, T] = B(
|
5957
|
+
h ?? []
|
5958
|
+
), Z = $1(x.offset), U = $1(F), [I, K] = B(!1), W = X(!1), e1 = $(
|
6123
5959
|
async ({
|
6124
5960
|
limit: A = _1,
|
6125
5961
|
offset: z,
|
6126
|
-
search:
|
5962
|
+
search: w
|
6127
5963
|
}) => {
|
6128
5964
|
J(!0);
|
6129
5965
|
try {
|
6130
5966
|
const y = await i({
|
6131
5967
|
limit: A,
|
6132
5968
|
offset: z,
|
6133
|
-
search:
|
5969
|
+
search: w
|
6134
5970
|
});
|
6135
5971
|
N(
|
6136
|
-
(
|
6137
|
-
), L((
|
6138
|
-
...
|
5972
|
+
(D) => z === 0 ? y.options : [...D ?? [], ...y.options]
|
5973
|
+
), L((D) => ({
|
5974
|
+
...D,
|
6139
5975
|
count: y.count
|
6140
5976
|
}));
|
6141
5977
|
} catch (y) {
|
@@ -6145,7 +5981,7 @@ const _1 = 100, l1 = {
|
|
6145
5981
|
}
|
6146
5982
|
},
|
6147
5983
|
[i]
|
6148
|
-
), t1 =
|
5984
|
+
), t1 = ji((A) => {
|
6149
5985
|
H(A), A || L(l1);
|
6150
5986
|
}), g1 = $(
|
6151
5987
|
(A) => t1(A),
|
@@ -6165,32 +6001,32 @@ const _1 = 100, l1 = {
|
|
6165
6001
|
[u, F]
|
6166
6002
|
);
|
6167
6003
|
G(() => {
|
6168
|
-
!W.current || P || (I ||
|
6169
|
-
}, [I,
|
6004
|
+
!W.current || P || (I || j && (Z !== x.offset || U !== F || !f)) && (e1({ offset: x.offset, limit: _1, search: F }), I && K(!1));
|
6005
|
+
}, [I, j, x.offset, F, Z, U, f, P]), G(() => {
|
6170
6006
|
(g || l) && e1(l1), W.current = !0;
|
6171
6007
|
}, []), G(() => {
|
6172
|
-
|
6173
|
-
const z =
|
6174
|
-
(
|
6008
|
+
h && T((A) => {
|
6009
|
+
const z = h.filter(
|
6010
|
+
(w) => !A.some((y) => y.value === w.value)
|
6175
6011
|
);
|
6176
6012
|
return [...A, ...z];
|
6177
6013
|
});
|
6178
|
-
}, [
|
6014
|
+
}, [h]);
|
6179
6015
|
const o1 = $(
|
6180
6016
|
(A) => {
|
6181
6017
|
t && t(A);
|
6182
6018
|
let z = [];
|
6183
6019
|
if (d ? z = Array.isArray(A) ? A : [] : z = A ? [A] : [], F) {
|
6184
|
-
const
|
6185
|
-
(y) => !(V != null && V.some((
|
6020
|
+
const w = z.filter(
|
6021
|
+
(y) => !(V != null && V.some((D) => D.value === y))
|
6186
6022
|
);
|
6187
|
-
|
6023
|
+
w.length > 0 && T((y = []) => [
|
6188
6024
|
...y,
|
6189
|
-
...
|
6190
|
-
const a1 = f == null ? void 0 : f.find((
|
6025
|
+
...w.map((D) => {
|
6026
|
+
const a1 = f == null ? void 0 : f.find((we) => we.value === D);
|
6191
6027
|
return {
|
6192
|
-
value:
|
6193
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
6028
|
+
value: D,
|
6029
|
+
label: (a1 == null ? void 0 : a1.label) ?? D
|
6194
6030
|
};
|
6195
6031
|
})
|
6196
6032
|
]), H(void 0), L(l1), K(!0);
|
@@ -6209,7 +6045,7 @@ const _1 = 100, l1 = {
|
|
6209
6045
|
value: s,
|
6210
6046
|
onSearchChange: g1,
|
6211
6047
|
onDropdownVisibleChange: v1,
|
6212
|
-
scrollThresholdValue:
|
6048
|
+
scrollThresholdValue: c,
|
6213
6049
|
onScrollToEnd: L1,
|
6214
6050
|
disabled: o,
|
6215
6051
|
extraOptions: V,
|
@@ -6217,7 +6053,7 @@ const _1 = 100, l1 = {
|
|
6217
6053
|
optionRender: p,
|
6218
6054
|
dropdownRender: k,
|
6219
6055
|
readOnly: v,
|
6220
|
-
clearable:
|
6056
|
+
clearable: m,
|
6221
6057
|
required: O,
|
6222
6058
|
error: M
|
6223
6059
|
}),
|
@@ -6231,7 +6067,7 @@ const _1 = 100, l1 = {
|
|
6231
6067
|
s,
|
6232
6068
|
g1,
|
6233
6069
|
v1,
|
6234
|
-
|
6070
|
+
c,
|
6235
6071
|
L1,
|
6236
6072
|
o,
|
6237
6073
|
V,
|
@@ -6239,7 +6075,7 @@ const _1 = 100, l1 = {
|
|
6239
6075
|
p,
|
6240
6076
|
k,
|
6241
6077
|
v,
|
6242
|
-
|
6078
|
+
m,
|
6243
6079
|
O,
|
6244
6080
|
M
|
6245
6081
|
]
|
@@ -6252,7 +6088,7 @@ const _1 = 100, l1 = {
|
|
6252
6088
|
}
|
6253
6089
|
);
|
6254
6090
|
var R1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(R1 || {});
|
6255
|
-
const
|
6091
|
+
const Di = ({ size: i = 30, color: e = "#004ed7" }) => {
|
6256
6092
|
const t = `no-repeat linear-gradient(${e}
|
6257
6093
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
6258
6094
|
width: i,
|
@@ -6261,7 +6097,7 @@ const Gi = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
6261
6097
|
};
|
6262
6098
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
6263
6099
|
};
|
6264
|
-
function
|
6100
|
+
function Bi() {
|
6265
6101
|
if (console && console.warn) {
|
6266
6102
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
6267
6103
|
e[t] = arguments[t];
|
@@ -6272,7 +6108,7 @@ const F1 = {};
|
|
6272
6108
|
function V1() {
|
6273
6109
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
6274
6110
|
e[t] = arguments[t];
|
6275
|
-
n1(e[0]) && F1[e[0]] || (n1(e[0]) && (F1[e[0]] = /* @__PURE__ */ new Date()),
|
6111
|
+
n1(e[0]) && F1[e[0]] || (n1(e[0]) && (F1[e[0]] = /* @__PURE__ */ new Date()), Bi(...e));
|
6276
6112
|
}
|
6277
6113
|
const ue = (i, e) => () => {
|
6278
6114
|
if (i.isInitialized)
|
@@ -6291,24 +6127,24 @@ const ue = (i, e) => () => {
|
|
6291
6127
|
n1(t) && (t = [t]), t.forEach((n) => {
|
6292
6128
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
6293
6129
|
}), i.loadLanguages(e, ue(i, s));
|
6294
|
-
},
|
6130
|
+
}, Zi = function(i, e) {
|
6295
6131
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
6296
6132
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
6297
6133
|
if (s.toLowerCase() === "cimode") return !0;
|
6298
|
-
const
|
6134
|
+
const c = (a, d) => {
|
6299
6135
|
const g = e.services.backendConnector.state[`${a}|${d}`];
|
6300
6136
|
return g === -1 || g === 2;
|
6301
6137
|
};
|
6302
|
-
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !
|
6303
|
-
},
|
6138
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(o, i)));
|
6139
|
+
}, Wi = function(i, e) {
|
6304
6140
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
6305
6141
|
return !e.languages || !e.languages.length ? (V1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
6306
6142
|
lng: t.lng,
|
6307
6143
|
precheck: (n, o) => {
|
6308
6144
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
|
6309
6145
|
}
|
6310
|
-
}) :
|
6311
|
-
}, n1 = (i) => typeof i == "string",
|
6146
|
+
}) : Zi(i, e, t);
|
6147
|
+
}, n1 = (i) => typeof i == "string", Gi = (i) => typeof i == "object" && i !== null, Ki = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, $i = {
|
6312
6148
|
"&": "&",
|
6313
6149
|
"&": "&",
|
6314
6150
|
"<": "<",
|
@@ -6329,7 +6165,7 @@ const ue = (i, e) => () => {
|
|
6329
6165
|
"…": "…",
|
6330
6166
|
"/": "/",
|
6331
6167
|
"/": "/"
|
6332
|
-
},
|
6168
|
+
}, Pi = (i) => $i[i], Fi = (i) => i.replace(Ki, Pi);
|
6333
6169
|
let A1 = {
|
6334
6170
|
bindI18n: "languageChanged",
|
6335
6171
|
bindI18nStore: "",
|
@@ -6338,27 +6174,27 @@ let A1 = {
|
|
6338
6174
|
transWrapTextNodes: "",
|
6339
6175
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
6340
6176
|
useSuspense: !0,
|
6341
|
-
unescape:
|
6177
|
+
unescape: Fi
|
6342
6178
|
};
|
6343
|
-
const
|
6179
|
+
const Yi = function() {
|
6344
6180
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
6345
6181
|
A1 = {
|
6346
6182
|
...A1,
|
6347
6183
|
...i
|
6348
6184
|
};
|
6349
|
-
},
|
6185
|
+
}, Ui = () => A1;
|
6350
6186
|
let Ce;
|
6351
|
-
const
|
6187
|
+
const zi = (i) => {
|
6352
6188
|
Ce = i;
|
6353
|
-
},
|
6189
|
+
}, Ji = () => Ce, qi = {
|
6354
6190
|
type: "3rdParty",
|
6355
6191
|
init(i) {
|
6356
|
-
|
6192
|
+
Yi(i.options.react), zi(i);
|
6357
6193
|
}
|
6358
|
-
},
|
6359
|
-
class
|
6194
|
+
}, Qi = d1();
|
6195
|
+
class Xi {
|
6360
6196
|
constructor() {
|
6361
|
-
|
6197
|
+
D1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
6362
6198
|
this.usedNamespaces = {};
|
6363
6199
|
}
|
6364
6200
|
addUsedNamespaces(e) {
|
@@ -6367,56 +6203,56 @@ class s0 {
|
|
6367
6203
|
});
|
6368
6204
|
}
|
6369
6205
|
}
|
6370
|
-
const
|
6206
|
+
const e0 = (i, e) => {
|
6371
6207
|
const t = X();
|
6372
6208
|
return G(() => {
|
6373
6209
|
t.current = i;
|
6374
6210
|
}, [i, e]), t.current;
|
6375
|
-
}, pe = (i, e, t, s) => i.getFixedT(e, t, s),
|
6211
|
+
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), t0 = (i, e, t, s) => $(pe(i, e, t, s), [i, e, t, s]), i0 = function(i) {
|
6376
6212
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6377
6213
|
const {
|
6378
6214
|
i18n: t
|
6379
6215
|
} = e, {
|
6380
6216
|
i18n: s,
|
6381
6217
|
defaultNS: n
|
6382
|
-
} = r1(
|
6383
|
-
if (o && !o.reportNamespaces && (o.reportNamespaces = new
|
6218
|
+
} = r1(Qi) || {}, o = t || s || Ji();
|
6219
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new Xi()), !o) {
|
6384
6220
|
V1("You will need to pass in an i18next instance by using initReactI18next");
|
6385
|
-
const f = (x, L) => n1(L) ? L :
|
6221
|
+
const f = (x, L) => n1(L) ? L : Gi(L) && n1(L.defaultValue) ? L.defaultValue : Array.isArray(x) ? x[x.length - 1] : x, N = [f, {}, !1];
|
6386
6222
|
return N.t = f, N.i18n = {}, N.ready = !1, N;
|
6387
6223
|
}
|
6388
6224
|
o.options.react && o.options.react.wait !== void 0 && V1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
6389
|
-
const
|
6390
|
-
...
|
6225
|
+
const c = {
|
6226
|
+
...Ui(),
|
6391
6227
|
...o.options.react,
|
6392
6228
|
...e
|
6393
6229
|
}, {
|
6394
6230
|
useSuspense: a,
|
6395
6231
|
keyPrefix: d
|
6396
|
-
} =
|
6232
|
+
} = c;
|
6397
6233
|
let g = i;
|
6398
6234
|
g = n1(g) ? [g] : g || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(g);
|
6399
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) =>
|
6400
|
-
let
|
6401
|
-
e.lng && (
|
6402
|
-
const O =
|
6235
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && g.every((f) => Wi(f, o, c)), h = t0(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => pe(o, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, v] = B(u);
|
6236
|
+
let m = g.join();
|
6237
|
+
e.lng && (m = `${e.lng}${m}`);
|
6238
|
+
const O = e0(m), M = X(!0);
|
6403
6239
|
G(() => {
|
6404
6240
|
const {
|
6405
6241
|
bindI18n: f,
|
6406
6242
|
bindI18nStore: N
|
6407
|
-
} =
|
6243
|
+
} = c;
|
6408
6244
|
M.current = !0, !l && !a && (e.lng ? U1(o, e.lng, g, () => {
|
6409
6245
|
M.current && v(p);
|
6410
6246
|
}) : Y1(o, g, () => {
|
6411
6247
|
M.current && v(p);
|
6412
|
-
})), l && O && O !==
|
6248
|
+
})), l && O && O !== m && M.current && v(p);
|
6413
6249
|
const x = () => {
|
6414
6250
|
M.current && v(p);
|
6415
6251
|
};
|
6416
6252
|
return f && o && o.on(f, x), N && o && o.store.on(N, x), () => {
|
6417
6253
|
M.current = !1, f && o && f.split(" ").forEach((L) => o.off(L, x)), N && o && N.split(" ").forEach((L) => o.store.off(L, x));
|
6418
6254
|
};
|
6419
|
-
}, [o,
|
6255
|
+
}, [o, m]), G(() => {
|
6420
6256
|
M.current && l && v(u);
|
6421
6257
|
}, [o, d, l]);
|
6422
6258
|
const S = [k, o, l];
|
@@ -6430,57 +6266,57 @@ const n0 = (i, e) => {
|
|
6430
6266
|
i = s, e = n;
|
6431
6267
|
});
|
6432
6268
|
return t.resolve = i, t.reject = e, t;
|
6433
|
-
}, z1 = (i) => i == null ? "" : "" + i,
|
6269
|
+
}, z1 = (i) => i == null ? "" : "" + i, s0 = (i, e, t) => {
|
6434
6270
|
i.forEach((s) => {
|
6435
6271
|
e[s] && (t[s] = e[s]);
|
6436
6272
|
});
|
6437
|
-
},
|
6273
|
+
}, n0 = /###/g, J1 = (i) => i && i.indexOf("###") > -1 ? i.replace(n0, ".") : i, q1 = (i) => !i || R(i), m1 = (i, e, t) => {
|
6438
6274
|
const s = R(e) ? e.split(".") : e;
|
6439
6275
|
let n = 0;
|
6440
6276
|
for (; n < s.length - 1; ) {
|
6441
|
-
if (
|
6277
|
+
if (q1(i)) return {};
|
6442
6278
|
const o = J1(s[n]);
|
6443
6279
|
!i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {}, ++n;
|
6444
6280
|
}
|
6445
|
-
return
|
6281
|
+
return q1(i) ? {} : {
|
6446
6282
|
obj: i,
|
6447
6283
|
k: J1(s[n])
|
6448
6284
|
};
|
6449
|
-
},
|
6285
|
+
}, Q1 = (i, e, t) => {
|
6450
6286
|
const {
|
6451
6287
|
obj: s,
|
6452
6288
|
k: n
|
6453
|
-
} =
|
6289
|
+
} = m1(i, e, Object);
|
6454
6290
|
if (s !== void 0 || e.length === 1) {
|
6455
6291
|
s[n] = t;
|
6456
6292
|
return;
|
6457
6293
|
}
|
6458
|
-
let o = e[e.length - 1],
|
6459
|
-
for (; a.obj === void 0 &&
|
6460
|
-
o = `${
|
6294
|
+
let o = e[e.length - 1], c = e.slice(0, e.length - 1), a = m1(i, c, Object);
|
6295
|
+
for (; a.obj === void 0 && c.length; )
|
6296
|
+
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), a = m1(i, c, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
6461
6297
|
a.obj[`${a.k}.${o}`] = t;
|
6462
|
-
},
|
6298
|
+
}, r0 = (i, e, t, s) => {
|
6463
6299
|
const {
|
6464
6300
|
obj: n,
|
6465
6301
|
k: o
|
6466
|
-
} =
|
6302
|
+
} = m1(i, e, Object);
|
6467
6303
|
n[o] = n[o] || [], n[o].push(t);
|
6468
6304
|
}, M1 = (i, e) => {
|
6469
6305
|
const {
|
6470
6306
|
obj: t,
|
6471
6307
|
k: s
|
6472
|
-
} =
|
6308
|
+
} = m1(i, e);
|
6473
6309
|
if (t)
|
6474
6310
|
return t[s];
|
6475
|
-
},
|
6311
|
+
}, o0 = (i, e, t) => {
|
6476
6312
|
const s = M1(i, t);
|
6477
6313
|
return s !== void 0 ? s : M1(e, t);
|
6478
6314
|
}, fe = (i, e, t) => {
|
6479
6315
|
for (const s in e)
|
6480
6316
|
s !== "__proto__" && s !== "constructor" && (s in i ? R(i[s]) || i[s] instanceof String || R(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : fe(i[s], e[s], t) : i[s] = e[s]);
|
6481
6317
|
return i;
|
6482
|
-
},
|
6483
|
-
var
|
6318
|
+
}, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
6319
|
+
var a0 = {
|
6484
6320
|
"&": "&",
|
6485
6321
|
"<": "<",
|
6486
6322
|
">": ">",
|
@@ -6488,8 +6324,8 @@ var d0 = {
|
|
6488
6324
|
"'": "'",
|
6489
6325
|
"/": "/"
|
6490
6326
|
};
|
6491
|
-
const
|
6492
|
-
class
|
6327
|
+
const l0 = (i) => R(i) ? i.replace(/[&<>"'\/]/g, (e) => a0[e]) : i;
|
6328
|
+
class h0 {
|
6493
6329
|
constructor(e) {
|
6494
6330
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
6495
6331
|
}
|
@@ -6501,15 +6337,15 @@ class u0 {
|
|
6501
6337
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
6502
6338
|
}
|
6503
6339
|
}
|
6504
|
-
const
|
6340
|
+
const c0 = [" ", ",", "?", "!", ";"], d0 = new h0(20), g0 = (i, e, t) => {
|
6505
6341
|
e = e || "", t = t || "";
|
6506
|
-
const s =
|
6342
|
+
const s = c0.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
6507
6343
|
if (s.length === 0) return !0;
|
6508
|
-
const n =
|
6344
|
+
const n = d0.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
6509
6345
|
let o = !n.test(i);
|
6510
6346
|
if (!o) {
|
6511
|
-
const
|
6512
|
-
|
6347
|
+
const c = i.indexOf(t);
|
6348
|
+
c > 0 && !n.test(i.substring(0, c)) && (o = !0);
|
6513
6349
|
}
|
6514
6350
|
return o;
|
6515
6351
|
}, T1 = function(i, e) {
|
@@ -6521,18 +6357,18 @@ const C0 = [" ", ",", "?", "!", ";"], p0 = new u0(20), f0 = (i, e, t) => {
|
|
6521
6357
|
for (let o = 0; o < s.length; ) {
|
6522
6358
|
if (!n || typeof n != "object")
|
6523
6359
|
return;
|
6524
|
-
let
|
6360
|
+
let c, a = "";
|
6525
6361
|
for (let d = o; d < s.length; ++d)
|
6526
|
-
if (d !== o && (a += t), a += s[d],
|
6527
|
-
if (["string", "number", "boolean"].indexOf(typeof
|
6362
|
+
if (d !== o && (a += t), a += s[d], c = n[a], c !== void 0) {
|
6363
|
+
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && d < s.length - 1)
|
6528
6364
|
continue;
|
6529
6365
|
o += d - o + 1;
|
6530
6366
|
break;
|
6531
6367
|
}
|
6532
|
-
n =
|
6368
|
+
n = c;
|
6533
6369
|
}
|
6534
6370
|
return n;
|
6535
|
-
}, y1 = (i) => i && i.replace("_", "-"),
|
6371
|
+
}, y1 = (i) => i && i.replace("_", "-"), u0 = {
|
6536
6372
|
type: "logger",
|
6537
6373
|
log(i) {
|
6538
6374
|
this.output("log", i);
|
@@ -6554,7 +6390,7 @@ class b1 {
|
|
6554
6390
|
}
|
6555
6391
|
init(e) {
|
6556
6392
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6557
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
6393
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || u0, this.options = t, this.debug = t.debug;
|
6558
6394
|
}
|
6559
6395
|
log() {
|
6560
6396
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
@@ -6589,7 +6425,7 @@ class b1 {
|
|
6589
6425
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new b1(this.logger, e);
|
6590
6426
|
}
|
6591
6427
|
}
|
6592
|
-
var
|
6428
|
+
var Q = new b1();
|
6593
6429
|
class H1 {
|
6594
6430
|
constructor() {
|
6595
6431
|
this.observers = {};
|
@@ -6613,12 +6449,12 @@ class H1 {
|
|
6613
6449
|
emit(e) {
|
6614
6450
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
6615
6451
|
s[n - 1] = arguments[n];
|
6616
|
-
this.observers[e] && Array.from(this.observers[e].entries()).forEach((
|
6617
|
-
let [a, d] =
|
6452
|
+
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
6453
|
+
let [a, d] = c;
|
6618
6454
|
for (let g = 0; g < d; g++)
|
6619
6455
|
a(...s);
|
6620
|
-
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((
|
6621
|
-
let [a, d] =
|
6456
|
+
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
6457
|
+
let [a, d] = c;
|
6622
6458
|
for (let g = 0; g < d; g++)
|
6623
6459
|
a.apply(a, [e, ...s]);
|
6624
6460
|
});
|
@@ -6641,19 +6477,19 @@ class X1 extends H1 {
|
|
6641
6477
|
}
|
6642
6478
|
getResource(e, t, s) {
|
6643
6479
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
6644
|
-
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator,
|
6480
|
+
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
6645
6481
|
let a;
|
6646
6482
|
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : R(s) && o ? a.push(...s.split(o)) : a.push(s)));
|
6647
6483
|
const d = M1(this.data, a);
|
6648
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !
|
6484
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), d || !c || !R(s) ? d : T1(this.data && this.data[e] && this.data[e][t], s, o);
|
6649
6485
|
}
|
6650
6486
|
addResource(e, t, s, n) {
|
6651
6487
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
6652
6488
|
silent: !1
|
6653
6489
|
};
|
6654
|
-
const
|
6490
|
+
const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
6655
6491
|
let a = [e, t];
|
6656
|
-
s && (a = a.concat(
|
6492
|
+
s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), Q1(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
|
6657
6493
|
}
|
6658
6494
|
addResources(e, t, s) {
|
6659
6495
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
@@ -6666,16 +6502,16 @@ class X1 extends H1 {
|
|
6666
6502
|
n.silent || this.emit("added", e, t, s);
|
6667
6503
|
}
|
6668
6504
|
addResourceBundle(e, t, s, n, o) {
|
6669
|
-
let
|
6505
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
6670
6506
|
silent: !1,
|
6671
6507
|
skipCopy: !1
|
6672
6508
|
}, a = [e, t];
|
6673
6509
|
e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
|
6674
6510
|
let d = M1(this.data, a) || {};
|
6675
|
-
|
6511
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? fe(d, s, o) : d = {
|
6676
6512
|
...d,
|
6677
6513
|
...s
|
6678
|
-
},
|
6514
|
+
}, Q1(this.data, a, d), c.silent || this.emit("added", e, t, s);
|
6679
6515
|
}
|
6680
6516
|
removeResourceBundle(e, t) {
|
6681
6517
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
@@ -6699,7 +6535,7 @@ class X1 extends H1 {
|
|
6699
6535
|
return this.data;
|
6700
6536
|
}
|
6701
6537
|
}
|
6702
|
-
var
|
6538
|
+
var me = {
|
6703
6539
|
processors: {},
|
6704
6540
|
addPostProcessor(i) {
|
6705
6541
|
this.processors[i.name] = i;
|
@@ -6714,7 +6550,7 @@ const ee = {};
|
|
6714
6550
|
class E1 extends H1 {
|
6715
6551
|
constructor(e) {
|
6716
6552
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
6717
|
-
super(),
|
6553
|
+
super(), s0(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Q.create("translator");
|
6718
6554
|
}
|
6719
6555
|
changeLanguage(e) {
|
6720
6556
|
e && (this.language = e);
|
@@ -6733,8 +6569,8 @@ class E1 extends H1 {
|
|
6733
6569
|
s === void 0 && (s = ":");
|
6734
6570
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
6735
6571
|
let o = t.ns || this.options.defaultNS || [];
|
6736
|
-
const
|
6737
|
-
if (
|
6572
|
+
const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !g0(e, s, n);
|
6573
|
+
if (c && !a) {
|
6738
6574
|
const d = e.match(this.interpolator.nestingRegexp);
|
6739
6575
|
if (d && d.length > 0)
|
6740
6576
|
return {
|
@@ -6755,41 +6591,41 @@ class E1 extends H1 {
|
|
6755
6591
|
}), t || (t = {}), e == null) return "";
|
6756
6592
|
Array.isArray(e) || (e = [String(e)]);
|
6757
6593
|
const n = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
6758
|
-
key:
|
6594
|
+
key: c,
|
6759
6595
|
namespaces: a
|
6760
6596
|
} = this.extractFromKey(e[e.length - 1], t), d = a[a.length - 1], g = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
6761
6597
|
if (g && g.toLowerCase() === "cimode") {
|
6762
6598
|
if (l) {
|
6763
6599
|
const f = t.nsSeparator || this.options.nsSeparator;
|
6764
6600
|
return n ? {
|
6765
|
-
res: `${d}${f}${
|
6766
|
-
usedKey:
|
6767
|
-
exactUsedKey:
|
6601
|
+
res: `${d}${f}${c}`,
|
6602
|
+
usedKey: c,
|
6603
|
+
exactUsedKey: c,
|
6768
6604
|
usedLng: g,
|
6769
6605
|
usedNS: d,
|
6770
6606
|
usedParams: this.getUsedParamsDetails(t)
|
6771
|
-
} : `${d}${f}${
|
6607
|
+
} : `${d}${f}${c}`;
|
6772
6608
|
}
|
6773
6609
|
return n ? {
|
6774
|
-
res:
|
6775
|
-
usedKey:
|
6776
|
-
exactUsedKey:
|
6610
|
+
res: c,
|
6611
|
+
usedKey: c,
|
6612
|
+
exactUsedKey: c,
|
6777
6613
|
usedLng: g,
|
6778
6614
|
usedNS: d,
|
6779
6615
|
usedParams: this.getUsedParamsDetails(t)
|
6780
|
-
} :
|
6616
|
+
} : c;
|
6781
6617
|
}
|
6782
|
-
const
|
6783
|
-
let u =
|
6784
|
-
const p =
|
6785
|
-
if (M && u && S &&
|
6618
|
+
const h = this.resolve(e, t);
|
6619
|
+
let u = h && h.res;
|
6620
|
+
const p = h && h.usedKey || c, k = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(u), m = ["[object Number]", "[object Function]", "[object RegExp]"], O = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, M = !this.i18nFormat || this.i18nFormat.handleAsObject, S = !R(u) && typeof u != "boolean" && typeof u != "number";
|
6621
|
+
if (M && u && S && m.indexOf(v) < 0 && !(R(O) && Array.isArray(u))) {
|
6786
6622
|
if (!t.returnObjects && !this.options.returnObjects) {
|
6787
6623
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
6788
6624
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
6789
6625
|
...t,
|
6790
6626
|
ns: a
|
6791
|
-
}) : `key '${
|
6792
|
-
return n ? (
|
6627
|
+
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
6628
|
+
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
6793
6629
|
}
|
6794
6630
|
if (o) {
|
6795
6631
|
const f = Array.isArray(u), N = f ? [] : {}, x = f ? k : p;
|
@@ -6811,11 +6647,11 @@ class E1 extends H1 {
|
|
6811
6647
|
const x = t.count !== void 0 && !R(t.count), L = E1.hasDefaultValue(t), P = x ? this.pluralResolver.getSuffix(g, t.count, t) : "", J = t.ordinal && x ? this.pluralResolver.getSuffix(g, t.count, {
|
6812
6648
|
ordinal: !1
|
6813
6649
|
}) : "", F = x && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), H = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${P}`] || t[`defaultValue${J}`] || t.defaultValue;
|
6814
|
-
!this.isValidLookup(u) && L && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u =
|
6650
|
+
!this.isValidLookup(u) && L && (f = !0, u = H), this.isValidLookup(u) || (N = !0, u = c);
|
6815
6651
|
const _ = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : u, V = L && H !== u && this.options.updateMissing;
|
6816
6652
|
if (N || f || V) {
|
6817
|
-
if (this.logger.log(V ? "updateKey" : "missingKey", g, d,
|
6818
|
-
const I = this.resolve(
|
6653
|
+
if (this.logger.log(V ? "updateKey" : "missingKey", g, d, c, V ? H : u), o) {
|
6654
|
+
const I = this.resolve(c, {
|
6819
6655
|
...t,
|
6820
6656
|
keySeparator: !1
|
6821
6657
|
});
|
@@ -6834,16 +6670,16 @@ class E1 extends H1 {
|
|
6834
6670
|
this.options.saveMissing && (this.options.saveMissingPlurals && x ? T.forEach((I) => {
|
6835
6671
|
const K = this.pluralResolver.getSuffixes(I, t);
|
6836
6672
|
F && t[`defaultValue${this.options.pluralSeparator}zero`] && K.indexOf(`${this.options.pluralSeparator}zero`) < 0 && K.push(`${this.options.pluralSeparator}zero`), K.forEach((W) => {
|
6837
|
-
U([I],
|
6673
|
+
U([I], c + W, t[`defaultValue${W}`] || H);
|
6838
6674
|
});
|
6839
|
-
}) : U(T,
|
6675
|
+
}) : U(T, c, H));
|
6840
6676
|
}
|
6841
|
-
u = this.extendTranslation(u, e, t,
|
6677
|
+
u = this.extendTranslation(u, e, t, h, s), N && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (N || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? u = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${c}` : c, f ? u : void 0) : u = this.options.parseMissingKeyHandler(u));
|
6842
6678
|
}
|
6843
|
-
return n ? (
|
6679
|
+
return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
6844
6680
|
}
|
6845
6681
|
extendTranslation(e, t, s, n, o) {
|
6846
|
-
var
|
6682
|
+
var c = this;
|
6847
6683
|
if (this.i18nFormat && this.i18nFormat.parse)
|
6848
6684
|
e = this.i18nFormat.parse(e, {
|
6849
6685
|
...this.options.interpolation.defaultVariables,
|
@@ -6865,22 +6701,22 @@ class E1 extends H1 {
|
|
6865
6701
|
const u = e.match(this.interpolator.nestingRegexp);
|
6866
6702
|
l = u && u.length;
|
6867
6703
|
}
|
6868
|
-
let
|
6869
|
-
if (this.options.interpolation.defaultVariables && (
|
6704
|
+
let h = s.replace && !R(s.replace) ? s.replace : s;
|
6705
|
+
if (this.options.interpolation.defaultVariables && (h = {
|
6870
6706
|
...this.options.interpolation.defaultVariables,
|
6871
|
-
...
|
6872
|
-
}), e = this.interpolator.interpolate(e,
|
6707
|
+
...h
|
6708
|
+
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s), g) {
|
6873
6709
|
const u = e.match(this.interpolator.nestingRegexp), p = u && u.length;
|
6874
6710
|
l < p && (s.nest = !1);
|
6875
6711
|
}
|
6876
6712
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
6877
6713
|
for (var u = arguments.length, p = new Array(u), k = 0; k < u; k++)
|
6878
6714
|
p[k] = arguments[k];
|
6879
|
-
return o && o[0] === p[0] && !s.context ? (
|
6715
|
+
return o && o[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
6880
6716
|
}, s)), s.interpolation && this.interpolator.reset();
|
6881
6717
|
}
|
6882
6718
|
const a = s.postProcess || this.options.postProcess, d = R(a) ? [a] : a;
|
6883
|
-
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e =
|
6719
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = me.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
6884
6720
|
i18nResolved: {
|
6885
6721
|
...n,
|
6886
6722
|
usedParams: this.getUsedParamsDetails(s)
|
@@ -6889,21 +6725,21 @@ class E1 extends H1 {
|
|
6889
6725
|
} : s, this)), e;
|
6890
6726
|
}
|
6891
6727
|
resolve(e) {
|
6892
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o,
|
6728
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, c, a;
|
6893
6729
|
return R(e) && (e = [e]), e.forEach((d) => {
|
6894
6730
|
if (this.isValidLookup(s)) return;
|
6895
6731
|
const g = this.extractFromKey(d, t), l = g.key;
|
6896
6732
|
n = l;
|
6897
|
-
let
|
6898
|
-
this.options.fallbackNS && (
|
6733
|
+
let h = g.namespaces;
|
6734
|
+
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
6899
6735
|
const u = t.count !== void 0 && !R(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = t.context !== void 0 && (R(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
6900
|
-
|
6901
|
-
this.isValidLookup(s) || (a =
|
6736
|
+
h.forEach((m) => {
|
6737
|
+
this.isValidLookup(s) || (a = m, !ee[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ee[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((O) => {
|
6902
6738
|
if (this.isValidLookup(s)) return;
|
6903
|
-
|
6739
|
+
c = O;
|
6904
6740
|
const M = [l];
|
6905
6741
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
6906
|
-
this.i18nFormat.addLookupKeys(M, l, O,
|
6742
|
+
this.i18nFormat.addLookupKeys(M, l, O, m, t);
|
6907
6743
|
else {
|
6908
6744
|
let f;
|
6909
6745
|
u && (f = this.pluralResolver.getSuffix(O, t.count, t));
|
@@ -6915,14 +6751,14 @@ class E1 extends H1 {
|
|
6915
6751
|
}
|
6916
6752
|
let S;
|
6917
6753
|
for (; S = M.pop(); )
|
6918
|
-
this.isValidLookup(s) || (o = S, s = this.getResource(O,
|
6754
|
+
this.isValidLookup(s) || (o = S, s = this.getResource(O, m, S, t));
|
6919
6755
|
}));
|
6920
6756
|
});
|
6921
6757
|
}), {
|
6922
6758
|
res: s,
|
6923
6759
|
usedKey: n,
|
6924
6760
|
exactUsedKey: o,
|
6925
|
-
usedLng:
|
6761
|
+
usedLng: c,
|
6926
6762
|
usedNS: a
|
6927
6763
|
};
|
6928
6764
|
}
|
@@ -6960,7 +6796,7 @@ class E1 extends H1 {
|
|
6960
6796
|
const I1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
6961
6797
|
class te {
|
6962
6798
|
constructor(e) {
|
6963
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
6799
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
|
6964
6800
|
}
|
6965
6801
|
getScriptPartFromCode(e) {
|
6966
6802
|
if (e = y1(e), !e || e.indexOf("-") < 0) return null;
|
@@ -7015,15 +6851,15 @@ class te {
|
|
7015
6851
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
7016
6852
|
}
|
7017
6853
|
toResolveHierarchy(e, t) {
|
7018
|
-
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (
|
7019
|
-
|
6854
|
+
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (c) => {
|
6855
|
+
c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
7020
6856
|
};
|
7021
|
-
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : R(e) && o(this.formatLanguageCode(e)), s.forEach((
|
7022
|
-
n.indexOf(
|
6857
|
+
return R(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : R(e) && o(this.formatLanguageCode(e)), s.forEach((c) => {
|
6858
|
+
n.indexOf(c) < 0 && o(this.formatLanguageCode(c));
|
7023
6859
|
}), n;
|
7024
6860
|
}
|
7025
6861
|
}
|
7026
|
-
let
|
6862
|
+
let C0 = [{
|
7027
6863
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
7028
6864
|
nr: [1, 2],
|
7029
6865
|
fc: 1
|
@@ -7115,7 +6951,7 @@ let m0 = [{
|
|
7115
6951
|
lngs: ["he", "iw"],
|
7116
6952
|
nr: [1, 2, 20, 21],
|
7117
6953
|
fc: 22
|
7118
|
-
}],
|
6954
|
+
}], p0 = {
|
7119
6955
|
1: (i) => +(i > 1),
|
7120
6956
|
2: (i) => +(i != 1),
|
7121
6957
|
3: (i) => 0,
|
@@ -7139,28 +6975,28 @@ let m0 = [{
|
|
7139
6975
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
7140
6976
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
7141
6977
|
};
|
7142
|
-
const
|
6978
|
+
const f0 = ["v1", "v2", "v3"], m0 = ["v4"], ie = {
|
7143
6979
|
zero: 0,
|
7144
6980
|
one: 1,
|
7145
6981
|
two: 2,
|
7146
6982
|
few: 3,
|
7147
6983
|
many: 4,
|
7148
6984
|
other: 5
|
7149
|
-
},
|
6985
|
+
}, w0 = () => {
|
7150
6986
|
const i = {};
|
7151
|
-
return
|
6987
|
+
return C0.forEach((e) => {
|
7152
6988
|
e.lngs.forEach((t) => {
|
7153
6989
|
i[t] = {
|
7154
6990
|
numbers: e.nr,
|
7155
|
-
plurals:
|
6991
|
+
plurals: p0[e.fc]
|
7156
6992
|
};
|
7157
6993
|
});
|
7158
6994
|
}), i;
|
7159
6995
|
};
|
7160
|
-
class
|
6996
|
+
class k0 {
|
7161
6997
|
constructor(e) {
|
7162
6998
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
7163
|
-
this.languageUtils = e, this.options = t, this.logger =
|
6999
|
+
this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), (!this.options.compatibilityJSON || m0.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = w0(), this.pluralRulesCache = {};
|
7164
7000
|
}
|
7165
7001
|
addRule(e, t) {
|
7166
7002
|
this.rules[e] = t;
|
@@ -7177,17 +7013,17 @@ class x0 {
|
|
7177
7013
|
});
|
7178
7014
|
if (o in this.pluralRulesCache)
|
7179
7015
|
return this.pluralRulesCache[o];
|
7180
|
-
let
|
7016
|
+
let c;
|
7181
7017
|
try {
|
7182
|
-
|
7018
|
+
c = new Intl.PluralRules(s, {
|
7183
7019
|
type: n
|
7184
7020
|
});
|
7185
7021
|
} catch {
|
7186
7022
|
if (!e.match(/-|_/)) return;
|
7187
7023
|
const d = this.languageUtils.getLanguagePartFromCode(e);
|
7188
|
-
|
7024
|
+
c = this.getRule(d, t);
|
7189
7025
|
}
|
7190
|
-
return this.pluralRulesCache[o] =
|
7026
|
+
return this.pluralRulesCache[o] = c, c;
|
7191
7027
|
}
|
7192
7028
|
return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
|
7193
7029
|
}
|
@@ -7218,17 +7054,17 @@ class x0 {
|
|
7218
7054
|
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : o() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? o() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
7219
7055
|
}
|
7220
7056
|
shouldUseIntlApi() {
|
7221
|
-
return !
|
7057
|
+
return !f0.includes(this.options.compatibilityJSON);
|
7222
7058
|
}
|
7223
7059
|
}
|
7224
7060
|
const se = function(i, e, t) {
|
7225
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o =
|
7061
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = o0(i, e, t);
|
7226
7062
|
return !o && n && R(t) && (o = T1(i, t, s), o === void 0 && (o = T1(e, t, s))), o;
|
7227
7063
|
}, O1 = (i) => i.replace(/\$/g, "$$$$");
|
7228
|
-
class
|
7064
|
+
class L0 {
|
7229
7065
|
constructor() {
|
7230
7066
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
7231
|
-
this.logger =
|
7067
|
+
this.logger = Q.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
7232
7068
|
}
|
7233
7069
|
init() {
|
7234
7070
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -7240,21 +7076,21 @@ class R0 {
|
|
7240
7076
|
escapeValue: s,
|
7241
7077
|
useRawValueToEscape: n,
|
7242
7078
|
prefix: o,
|
7243
|
-
prefixEscaped:
|
7079
|
+
prefixEscaped: c,
|
7244
7080
|
suffix: a,
|
7245
7081
|
suffixEscaped: d,
|
7246
7082
|
formatSeparator: g,
|
7247
7083
|
unescapeSuffix: l,
|
7248
|
-
unescapePrefix:
|
7084
|
+
unescapePrefix: h,
|
7249
7085
|
nestingPrefix: u,
|
7250
7086
|
nestingPrefixEscaped: p,
|
7251
7087
|
nestingSuffix: k,
|
7252
7088
|
nestingSuffixEscaped: v,
|
7253
|
-
nestingOptionsSeparator:
|
7089
|
+
nestingOptionsSeparator: m,
|
7254
7090
|
maxReplaces: O,
|
7255
7091
|
alwaysFormat: M
|
7256
7092
|
} = e.interpolation;
|
7257
|
-
this.escape = t !== void 0 ? t :
|
7093
|
+
this.escape = t !== void 0 ? t : l0, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? h1(o) : c || "{{", this.suffix = a ? h1(a) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = k ? h1(k) : v || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = M !== void 0 ? M : !1, this.resetRegExp();
|
7258
7094
|
}
|
7259
7095
|
reset() {
|
7260
7096
|
this.options && this.init(this.options);
|
@@ -7264,7 +7100,7 @@ class R0 {
|
|
7264
7100
|
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}`);
|
7265
7101
|
}
|
7266
7102
|
interpolate(e, t, s, n) {
|
7267
|
-
let o,
|
7103
|
+
let o, c, a;
|
7268
7104
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
7269
7105
|
if (p.indexOf(this.formatSeparator) < 0) {
|
7270
7106
|
const O = se(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
@@ -7274,15 +7110,15 @@ class R0 {
|
|
7274
7110
|
interpolationkey: p
|
7275
7111
|
}) : O;
|
7276
7112
|
}
|
7277
|
-
const k = p.split(this.formatSeparator), v = k.shift().trim(),
|
7278
|
-
return this.format(se(t, d, v, this.options.keySeparator, this.options.ignoreJSONStructure),
|
7113
|
+
const k = p.split(this.formatSeparator), v = k.shift().trim(), m = k.join(this.formatSeparator).trim();
|
7114
|
+
return this.format(se(t, d, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
|
7279
7115
|
...n,
|
7280
7116
|
...t,
|
7281
7117
|
interpolationkey: v
|
7282
7118
|
});
|
7283
7119
|
};
|
7284
7120
|
this.resetRegExp();
|
7285
|
-
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
7121
|
+
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
7286
7122
|
return [{
|
7287
7123
|
regex: this.regexpUnescape,
|
7288
7124
|
safeValue: (p) => O1(p)
|
@@ -7292,56 +7128,56 @@ class R0 {
|
|
7292
7128
|
}].forEach((p) => {
|
7293
7129
|
for (a = 0; o = p.regex.exec(e); ) {
|
7294
7130
|
const k = o[1].trim();
|
7295
|
-
if (
|
7131
|
+
if (c = g(k), c === void 0)
|
7296
7132
|
if (typeof l == "function") {
|
7297
|
-
const
|
7298
|
-
|
7133
|
+
const m = l(e, o, n);
|
7134
|
+
c = R(m) ? m : "";
|
7299
7135
|
} else if (n && Object.prototype.hasOwnProperty.call(n, k))
|
7300
|
-
|
7301
|
-
else if (
|
7302
|
-
|
7136
|
+
c = "";
|
7137
|
+
else if (h) {
|
7138
|
+
c = o[0];
|
7303
7139
|
continue;
|
7304
7140
|
} else
|
7305
|
-
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`),
|
7306
|
-
else !R(
|
7307
|
-
const v = p.safeValue(
|
7308
|
-
if (e = e.replace(o[0], v),
|
7141
|
+
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
|
7142
|
+
else !R(c) && !this.useRawValueToEscape && (c = z1(c));
|
7143
|
+
const v = p.safeValue(c);
|
7144
|
+
if (e = e.replace(o[0], v), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
7309
7145
|
break;
|
7310
7146
|
}
|
7311
7147
|
}), e;
|
7312
7148
|
}
|
7313
7149
|
nest(e, t) {
|
7314
|
-
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o,
|
7150
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n, o, c;
|
7315
7151
|
const a = (d, g) => {
|
7316
7152
|
const l = this.nestingOptionsSeparator;
|
7317
7153
|
if (d.indexOf(l) < 0) return d;
|
7318
|
-
const
|
7319
|
-
let u = `{${
|
7320
|
-
d =
|
7154
|
+
const h = d.split(new RegExp(`${l}[ ]*{`));
|
7155
|
+
let u = `{${h[1]}`;
|
7156
|
+
d = h[0], u = this.interpolate(u, c);
|
7321
7157
|
const p = u.match(/'/g), k = u.match(/"/g);
|
7322
7158
|
(p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
7323
7159
|
try {
|
7324
|
-
|
7160
|
+
c = JSON.parse(u), g && (c = {
|
7325
7161
|
...g,
|
7326
|
-
...
|
7162
|
+
...c
|
7327
7163
|
});
|
7328
7164
|
} catch (v) {
|
7329
7165
|
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, v), `${d}${l}${u}`;
|
7330
7166
|
}
|
7331
|
-
return
|
7167
|
+
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, d;
|
7332
7168
|
};
|
7333
7169
|
for (; n = this.nestingRegexp.exec(e); ) {
|
7334
7170
|
let d = [];
|
7335
|
-
|
7171
|
+
c = {
|
7336
7172
|
...s
|
7337
|
-
},
|
7173
|
+
}, c = c.replace && !R(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
7338
7174
|
let g = !1;
|
7339
7175
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
7340
|
-
const l = n[1].split(this.formatSeparator).map((
|
7176
|
+
const l = n[1].split(this.formatSeparator).map((h) => h.trim());
|
7341
7177
|
n[1] = l.shift(), d = l, g = !0;
|
7342
7178
|
}
|
7343
|
-
if (o = t(a.call(this, n[1].trim(),
|
7344
|
-
R(o) || (o = z1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), g && (o = d.reduce((l,
|
7179
|
+
if (o = t(a.call(this, n[1].trim(), c), c), o && n[0] === e && !R(o)) return o;
|
7180
|
+
R(o) || (o = z1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), g && (o = d.reduce((l, h) => this.format(l, h, s.lng, {
|
7345
7181
|
...s,
|
7346
7182
|
interpolationkey: n[1].trim()
|
7347
7183
|
}), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
|
@@ -7349,16 +7185,16 @@ class R0 {
|
|
7349
7185
|
return e;
|
7350
7186
|
}
|
7351
7187
|
}
|
7352
|
-
const
|
7188
|
+
const v0 = (i) => {
|
7353
7189
|
let e = i.toLowerCase().trim();
|
7354
7190
|
const t = {};
|
7355
7191
|
if (i.indexOf("(") > -1) {
|
7356
7192
|
const s = i.split("(");
|
7357
7193
|
e = s[0].toLowerCase().trim();
|
7358
7194
|
const n = s[1].substring(0, s[1].length - 1);
|
7359
|
-
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((
|
7360
|
-
if (
|
7361
|
-
const [a, ...d] =
|
7195
|
+
e === "currency" && n.indexOf(":") < 0 ? t.currency || (t.currency = n.trim()) : e === "relativetime" && n.indexOf(":") < 0 ? t.range || (t.range = n.trim()) : n.split(";").forEach((c) => {
|
7196
|
+
if (c) {
|
7197
|
+
const [a, ...d] = c.split(":"), g = d.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
|
7362
7198
|
t[l] || (t[l] = g), g === "false" && (t[l] = !1), g === "true" && (t[l] = !0), isNaN(g) || (t[l] = parseInt(g, 10));
|
7363
7199
|
}
|
7364
7200
|
});
|
@@ -7367,7 +7203,7 @@ const M0 = (i) => {
|
|
7367
7203
|
formatName: e,
|
7368
7204
|
formatOptions: t
|
7369
7205
|
};
|
7370
|
-
},
|
7206
|
+
}, c1 = (i) => {
|
7371
7207
|
const e = {};
|
7372
7208
|
return (t, s, n) => {
|
7373
7209
|
let o = n;
|
@@ -7375,41 +7211,41 @@ const M0 = (i) => {
|
|
7375
7211
|
...o,
|
7376
7212
|
[n.interpolationkey]: void 0
|
7377
7213
|
});
|
7378
|
-
const
|
7379
|
-
let a = e[
|
7380
|
-
return a || (a = i(y1(s), n), e[
|
7214
|
+
const c = s + JSON.stringify(o);
|
7215
|
+
let a = e[c];
|
7216
|
+
return a || (a = i(y1(s), n), e[c] = a), a(t);
|
7381
7217
|
};
|
7382
7218
|
};
|
7383
|
-
class
|
7219
|
+
class N0 {
|
7384
7220
|
constructor() {
|
7385
7221
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
7386
|
-
this.logger =
|
7387
|
-
number:
|
7222
|
+
this.logger = Q.create("formatter"), this.options = e, this.formats = {
|
7223
|
+
number: c1((t, s) => {
|
7388
7224
|
const n = new Intl.NumberFormat(t, {
|
7389
7225
|
...s
|
7390
7226
|
});
|
7391
7227
|
return (o) => n.format(o);
|
7392
7228
|
}),
|
7393
|
-
currency:
|
7229
|
+
currency: c1((t, s) => {
|
7394
7230
|
const n = new Intl.NumberFormat(t, {
|
7395
7231
|
...s,
|
7396
7232
|
style: "currency"
|
7397
7233
|
});
|
7398
7234
|
return (o) => n.format(o);
|
7399
7235
|
}),
|
7400
|
-
datetime:
|
7236
|
+
datetime: c1((t, s) => {
|
7401
7237
|
const n = new Intl.DateTimeFormat(t, {
|
7402
7238
|
...s
|
7403
7239
|
});
|
7404
7240
|
return (o) => n.format(o);
|
7405
7241
|
}),
|
7406
|
-
relativetime:
|
7242
|
+
relativetime: c1((t, s) => {
|
7407
7243
|
const n = new Intl.RelativeTimeFormat(t, {
|
7408
7244
|
...s
|
7409
7245
|
});
|
7410
7246
|
return (o) => n.format(o, s.range || "day");
|
7411
7247
|
}),
|
7412
|
-
list:
|
7248
|
+
list: c1((t, s) => {
|
7413
7249
|
const n = new Intl.ListFormat(t, {
|
7414
7250
|
...s
|
7415
7251
|
});
|
@@ -7427,7 +7263,7 @@ class y0 {
|
|
7427
7263
|
this.formats[e.toLowerCase().trim()] = t;
|
7428
7264
|
}
|
7429
7265
|
addCached(e, t) {
|
7430
|
-
this.formats[e.toLowerCase().trim()] =
|
7266
|
+
this.formats[e.toLowerCase().trim()] = c1(t);
|
7431
7267
|
}
|
7432
7268
|
format(e, t, s) {
|
7433
7269
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
@@ -7440,12 +7276,12 @@ class y0 {
|
|
7440
7276
|
const {
|
7441
7277
|
formatName: g,
|
7442
7278
|
formatOptions: l
|
7443
|
-
} =
|
7279
|
+
} = v0(d);
|
7444
7280
|
if (this.formats[g]) {
|
7445
|
-
let
|
7281
|
+
let h = a;
|
7446
7282
|
try {
|
7447
7283
|
const u = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = u.locale || u.lng || n.locale || n.lng || s;
|
7448
|
-
|
7284
|
+
h = this.formats[g](a, p, {
|
7449
7285
|
...l,
|
7450
7286
|
...n,
|
7451
7287
|
...u
|
@@ -7453,61 +7289,61 @@ class y0 {
|
|
7453
7289
|
} catch (u) {
|
7454
7290
|
this.logger.warn(u);
|
7455
7291
|
}
|
7456
|
-
return
|
7292
|
+
return h;
|
7457
7293
|
} else
|
7458
7294
|
this.logger.warn(`there was no format function for ${g}`);
|
7459
7295
|
return a;
|
7460
7296
|
}, e);
|
7461
7297
|
}
|
7462
7298
|
}
|
7463
|
-
const
|
7299
|
+
const x0 = (i, e) => {
|
7464
7300
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
7465
7301
|
};
|
7466
|
-
class
|
7302
|
+
class R0 extends H1 {
|
7467
7303
|
constructor(e, t, s) {
|
7468
7304
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
7469
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger =
|
7305
|
+
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = Q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
|
7470
7306
|
}
|
7471
7307
|
queueLoad(e, t, s, n) {
|
7472
|
-
const o = {},
|
7308
|
+
const o = {}, c = {}, a = {}, d = {};
|
7473
7309
|
return e.forEach((g) => {
|
7474
7310
|
let l = !0;
|
7475
|
-
t.forEach((
|
7476
|
-
const u = `${g}|${
|
7477
|
-
!s.reload && this.store.hasResourceBundle(g,
|
7311
|
+
t.forEach((h) => {
|
7312
|
+
const u = `${g}|${h}`;
|
7313
|
+
!s.reload && this.store.hasResourceBundle(g, h) ? this.state[u] = 2 : this.state[u] < 0 || (this.state[u] === 1 ? c[u] === void 0 && (c[u] = !0) : (this.state[u] = 1, l = !1, c[u] === void 0 && (c[u] = !0), o[u] === void 0 && (o[u] = !0), d[h] === void 0 && (d[h] = !0)));
|
7478
7314
|
}), l || (a[g] = !0);
|
7479
|
-
}), (Object.keys(o).length || Object.keys(
|
7480
|
-
pending:
|
7481
|
-
pendingCount: Object.keys(
|
7315
|
+
}), (Object.keys(o).length || Object.keys(c).length) && this.queue.push({
|
7316
|
+
pending: c,
|
7317
|
+
pendingCount: Object.keys(c).length,
|
7482
7318
|
loaded: {},
|
7483
7319
|
errors: [],
|
7484
7320
|
callback: n
|
7485
7321
|
}), {
|
7486
7322
|
toLoad: Object.keys(o),
|
7487
|
-
pending: Object.keys(
|
7323
|
+
pending: Object.keys(c),
|
7488
7324
|
toLoadLanguages: Object.keys(a),
|
7489
7325
|
toLoadNamespaces: Object.keys(d)
|
7490
7326
|
};
|
7491
7327
|
}
|
7492
7328
|
loaded(e, t, s) {
|
7493
|
-
const n = e.split("|"), o = n[0],
|
7494
|
-
t && this.emit("failedLoading", o,
|
7329
|
+
const n = e.split("|"), o = n[0], c = n[1];
|
7330
|
+
t && this.emit("failedLoading", o, c, t), !t && s && this.store.addResourceBundle(o, c, s, void 0, void 0, {
|
7495
7331
|
skipCopy: !0
|
7496
7332
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
7497
7333
|
const a = {};
|
7498
7334
|
this.queue.forEach((d) => {
|
7499
|
-
|
7335
|
+
r0(d.loaded, [o], c), x0(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
7500
7336
|
a[g] || (a[g] = {});
|
7501
7337
|
const l = d.loaded[g];
|
7502
|
-
l.length && l.forEach((
|
7503
|
-
a[g][
|
7338
|
+
l.length && l.forEach((h) => {
|
7339
|
+
a[g][h] === void 0 && (a[g][h] = !0);
|
7504
7340
|
});
|
7505
7341
|
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
7506
7342
|
}), this.emit("loaded", a), this.queue = this.queue.filter((d) => !d.done);
|
7507
7343
|
}
|
7508
7344
|
read(e, t, s) {
|
7509
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout,
|
7510
|
-
if (!e.length) return
|
7345
|
+
let n = 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;
|
7346
|
+
if (!e.length) return c(null, {});
|
7511
7347
|
if (this.readingCalls >= this.maxParallelReads) {
|
7512
7348
|
this.waitingReads.push({
|
7513
7349
|
lng: e,
|
@@ -7515,23 +7351,23 @@ class E0 extends H1 {
|
|
7515
7351
|
fcName: s,
|
7516
7352
|
tried: n,
|
7517
7353
|
wait: o,
|
7518
|
-
callback:
|
7354
|
+
callback: c
|
7519
7355
|
});
|
7520
7356
|
return;
|
7521
7357
|
}
|
7522
7358
|
this.readingCalls++;
|
7523
7359
|
const a = (g, l) => {
|
7524
7360
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
7525
|
-
const
|
7526
|
-
this.read(
|
7361
|
+
const h = this.waitingReads.shift();
|
7362
|
+
this.read(h.lng, h.ns, h.fcName, h.tried, h.wait, h.callback);
|
7527
7363
|
}
|
7528
7364
|
if (g && l && n < this.maxRetries) {
|
7529
7365
|
setTimeout(() => {
|
7530
|
-
this.read.call(this, e, t, s, n + 1, o * 2,
|
7366
|
+
this.read.call(this, e, t, s, n + 1, o * 2, c);
|
7531
7367
|
}, o);
|
7532
7368
|
return;
|
7533
7369
|
}
|
7534
|
-
|
7370
|
+
c(g, l);
|
7535
7371
|
}, d = this.backend[s].bind(this.backend);
|
7536
7372
|
if (d.length === 2) {
|
7537
7373
|
try {
|
@@ -7552,8 +7388,8 @@ class E0 extends H1 {
|
|
7552
7388
|
const o = this.queueLoad(e, t, s, n);
|
7553
7389
|
if (!o.toLoad.length)
|
7554
7390
|
return o.pending.length || n(), null;
|
7555
|
-
o.toLoad.forEach((
|
7556
|
-
this.loadOne(
|
7391
|
+
o.toLoad.forEach((c) => {
|
7392
|
+
this.loadOne(c);
|
7557
7393
|
});
|
7558
7394
|
}
|
7559
7395
|
load(e, t, s) {
|
@@ -7567,12 +7403,12 @@ class E0 extends H1 {
|
|
7567
7403
|
loadOne(e) {
|
7568
7404
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
7569
7405
|
const s = e.split("|"), n = s[0], o = s[1];
|
7570
|
-
this.read(n, o, "read", void 0, void 0, (
|
7571
|
-
|
7406
|
+
this.read(n, o, "read", void 0, void 0, (c, a) => {
|
7407
|
+
c && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, c), !c && a && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, a), this.loaded(e, c, a);
|
7572
7408
|
});
|
7573
7409
|
}
|
7574
7410
|
saveMissing(e, t, s, n, o) {
|
7575
|
-
let
|
7411
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
7576
7412
|
};
|
7577
7413
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
7578
7414
|
this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
@@ -7581,13 +7417,13 @@ class E0 extends H1 {
|
|
7581
7417
|
if (!(s == null || s === "")) {
|
7582
7418
|
if (this.backend && this.backend.create) {
|
7583
7419
|
const d = {
|
7584
|
-
...
|
7420
|
+
...c,
|
7585
7421
|
isUpdate: o
|
7586
7422
|
}, g = this.backend.create.bind(this.backend);
|
7587
7423
|
if (g.length < 6)
|
7588
7424
|
try {
|
7589
7425
|
let l;
|
7590
|
-
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((
|
7426
|
+
g.length === 5 ? l = g(e, t, s, n, d) : l = g(e, t, s, n), l && typeof l.then == "function" ? l.then((h) => a(null, h)).catch(a) : a(null, l);
|
7591
7427
|
} catch (l) {
|
7592
7428
|
a(l);
|
7593
7429
|
}
|
@@ -7655,17 +7491,17 @@ const ne = () => ({
|
|
7655
7491
|
skipOnVariables: !0
|
7656
7492
|
}
|
7657
7493
|
}), re = (i) => (R(i.ns) && (i.ns = [i.ns]), R(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), R(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
|
7658
|
-
},
|
7494
|
+
}, M0 = (i) => {
|
7659
7495
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
7660
7496
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
7661
7497
|
});
|
7662
7498
|
};
|
7663
|
-
class
|
7499
|
+
class w1 extends H1 {
|
7664
7500
|
constructor() {
|
7665
7501
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
7666
|
-
if (super(), this.options = re(e), this.services = {}, this.logger =
|
7502
|
+
if (super(), this.options = re(e), this.services = {}, this.logger = Q, this.modules = {
|
7667
7503
|
external: []
|
7668
|
-
},
|
7504
|
+
}, M0(this), t && !this.isInitialized && !e.isClone) {
|
7669
7505
|
if (!this.options.initImmediate)
|
7670
7506
|
return this.init(e, t), this;
|
7671
7507
|
setTimeout(() => {
|
@@ -7688,25 +7524,25 @@ class m1 extends H1 {
|
|
7688
7524
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
7689
7525
|
const o = (l) => l ? typeof l == "function" ? new l() : l : null;
|
7690
7526
|
if (!this.options.isClone) {
|
7691
|
-
this.modules.logger ?
|
7527
|
+
this.modules.logger ? Q.init(o(this.modules.logger), this.options) : Q.init(null, this.options);
|
7692
7528
|
let l;
|
7693
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
7694
|
-
const
|
7529
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = N0);
|
7530
|
+
const h = new te(this.options);
|
7695
7531
|
this.store = new X1(this.options.resources, this.options);
|
7696
7532
|
const u = this.services;
|
7697
|
-
u.logger =
|
7533
|
+
u.logger = Q, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new k0(h, {
|
7698
7534
|
prepend: this.options.pluralSeparator,
|
7699
7535
|
compatibilityJSON: this.options.compatibilityJSON,
|
7700
7536
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
7701
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = o(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new
|
7537
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = o(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new L0(this.options), u.utils = {
|
7702
7538
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
7703
|
-
}, u.backendConnector = new
|
7704
|
-
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0),
|
7705
|
-
v[
|
7539
|
+
}, u.backendConnector = new R0(o(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
7540
|
+
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
|
7541
|
+
v[m - 1] = arguments[m];
|
7706
7542
|
e.emit(p, ...v);
|
7707
7543
|
}), this.modules.languageDetector && (u.languageDetector = o(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = o(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new E1(this.services, this.options), this.translator.on("*", function(p) {
|
7708
|
-
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0),
|
7709
|
-
v[
|
7544
|
+
for (var k = arguments.length, v = new Array(k > 1 ? k - 1 : 0), m = 1; m < k; m++)
|
7545
|
+
v[m - 1] = arguments[m];
|
7710
7546
|
e.emit(p, ...v);
|
7711
7547
|
}), this.modules.external.forEach((p) => {
|
7712
7548
|
p.init && p.init(this);
|
@@ -7726,8 +7562,8 @@ class m1 extends H1 {
|
|
7726
7562
|
};
|
7727
7563
|
});
|
7728
7564
|
const d = C1(), g = () => {
|
7729
|
-
const l = (
|
7730
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(u), s(
|
7565
|
+
const l = (h, u) => {
|
7566
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(u), s(h, u);
|
7731
7567
|
};
|
7732
7568
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
7733
7569
|
this.changeLanguage(this.options.lng, l);
|
@@ -7739,13 +7575,13 @@ class m1 extends H1 {
|
|
7739
7575
|
const n = R(e) ? e : this.language;
|
7740
7576
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
7741
7577
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
7742
|
-
const o = [],
|
7578
|
+
const o = [], c = (a) => {
|
7743
7579
|
if (!a || a === "cimode") return;
|
7744
7580
|
this.services.languageUtils.toResolveHierarchy(a).forEach((g) => {
|
7745
7581
|
g !== "cimode" && o.indexOf(g) < 0 && o.push(g);
|
7746
7582
|
});
|
7747
7583
|
};
|
7748
|
-
n ?
|
7584
|
+
n ? c(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => c(d)), this.options.preload && this.options.preload.forEach((a) => c(a)), this.services.backendConnector.load(o, this.options.ns, (a) => {
|
7749
7585
|
!a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), s(a);
|
7750
7586
|
});
|
7751
7587
|
} else
|
@@ -7760,7 +7596,7 @@ class m1 extends H1 {
|
|
7760
7596
|
use(e) {
|
7761
7597
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
7762
7598
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
7763
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
7599
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && me.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
7764
7600
|
}
|
7765
7601
|
setResolvedLanguage(e) {
|
7766
7602
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
@@ -7779,7 +7615,7 @@ class m1 extends H1 {
|
|
7779
7615
|
this.emit("languageChanging", e);
|
7780
7616
|
const o = (d) => {
|
7781
7617
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
7782
|
-
},
|
7618
|
+
}, c = (d, g) => {
|
7783
7619
|
g ? (o(g), this.translator.changeLanguage(g), this.isLanguageChangingTo = void 0, this.emit("languageChanged", g), this.logger.log("languageChanged", g)) : this.isLanguageChangingTo = void 0, n.resolve(function() {
|
7784
7620
|
return s.t(...arguments);
|
7785
7621
|
}), t && t(d, function() {
|
@@ -7789,19 +7625,19 @@ class m1 extends H1 {
|
|
7789
7625
|
!e && !d && this.services.languageDetector && (d = []);
|
7790
7626
|
const g = R(d) ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
7791
7627
|
g && (this.language || o(g), this.translator.language || this.translator.changeLanguage(g), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(g)), this.loadResources(g, (l) => {
|
7792
|
-
|
7628
|
+
c(l, g);
|
7793
7629
|
});
|
7794
7630
|
};
|
7795
7631
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), n;
|
7796
7632
|
}
|
7797
7633
|
getFixedT(e, t, s) {
|
7798
7634
|
var n = this;
|
7799
|
-
const o = function(
|
7635
|
+
const o = function(c, a) {
|
7800
7636
|
let d;
|
7801
7637
|
if (typeof a != "object") {
|
7802
|
-
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0),
|
7803
|
-
l[
|
7804
|
-
d = n.options.overloadTranslationOptionHandler([
|
7638
|
+
for (var g = arguments.length, l = new Array(g > 2 ? g - 2 : 0), h = 2; h < g; h++)
|
7639
|
+
l[h - 2] = arguments[h];
|
7640
|
+
d = n.options.overloadTranslationOptionHandler([c, a].concat(l));
|
7805
7641
|
} else
|
7806
7642
|
d = {
|
7807
7643
|
...a
|
@@ -7809,7 +7645,7 @@ class m1 extends H1 {
|
|
7809
7645
|
d.lng = d.lng || o.lng, d.lngs = d.lngs || o.lngs, d.ns = d.ns || o.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || o.keyPrefix);
|
7810
7646
|
const u = n.options.keySeparator || ".";
|
7811
7647
|
let p;
|
7812
|
-
return d.keyPrefix && Array.isArray(
|
7648
|
+
return d.keyPrefix && Array.isArray(c) ? p = c.map((k) => `${d.keyPrefix}${u}${k}`) : p = d.keyPrefix ? `${d.keyPrefix}${u}${c}` : c, n.t(p, d);
|
7813
7649
|
};
|
7814
7650
|
return R(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
|
7815
7651
|
}
|
@@ -7830,15 +7666,15 @@ class m1 extends H1 {
|
|
7830
7666
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
7831
7667
|
const s = t.lng || this.resolvedLanguage || this.languages[0], n = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
|
7832
7668
|
if (s.toLowerCase() === "cimode") return !0;
|
7833
|
-
const
|
7669
|
+
const c = (a, d) => {
|
7834
7670
|
const g = this.services.backendConnector.state[`${a}|${d}`];
|
7835
7671
|
return g === -1 || g === 0 || g === 2;
|
7836
7672
|
};
|
7837
7673
|
if (t.precheck) {
|
7838
|
-
const a = t.precheck(this,
|
7674
|
+
const a = t.precheck(this, c);
|
7839
7675
|
if (a !== void 0) return a;
|
7840
7676
|
}
|
7841
|
-
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages ||
|
7677
|
+
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(o, e)));
|
7842
7678
|
}
|
7843
7679
|
loadNamespaces(e, t) {
|
7844
7680
|
const s = C1();
|
@@ -7851,9 +7687,9 @@ class m1 extends H1 {
|
|
7851
7687
|
loadLanguages(e, t) {
|
7852
7688
|
const s = C1();
|
7853
7689
|
R(e) && (e = [e]);
|
7854
|
-
const n = this.options.preload || [], o = e.filter((
|
7855
|
-
return o.length ? (this.options.preload = n.concat(o), this.loadResources((
|
7856
|
-
s.resolve(), t && t(
|
7690
|
+
const n = this.options.preload || [], o = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
7691
|
+
return o.length ? (this.options.preload = n.concat(o), this.loadResources((c) => {
|
7692
|
+
s.resolve(), t && t(c);
|
7857
7693
|
}), s) : (t && t(), Promise.resolve());
|
7858
7694
|
}
|
7859
7695
|
dir(e) {
|
@@ -7863,7 +7699,7 @@ class m1 extends H1 {
|
|
7863
7699
|
}
|
7864
7700
|
static createInstance() {
|
7865
7701
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
7866
|
-
return new
|
7702
|
+
return new w1(e, t);
|
7867
7703
|
}
|
7868
7704
|
cloneInstance() {
|
7869
7705
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
@@ -7873,7 +7709,7 @@ class m1 extends H1 {
|
|
7873
7709
|
...this.options,
|
7874
7710
|
...e,
|
7875
7711
|
isClone: !0
|
7876
|
-
}, o = new
|
7712
|
+
}, o = new w1(n);
|
7877
7713
|
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
|
7878
7714
|
o[a] = this[a];
|
7879
7715
|
}), o.services = {
|
@@ -7898,8 +7734,8 @@ class m1 extends H1 {
|
|
7898
7734
|
};
|
7899
7735
|
}
|
7900
7736
|
}
|
7901
|
-
const Y =
|
7902
|
-
Y.createInstance =
|
7737
|
+
const Y = w1.createInstance();
|
7738
|
+
Y.createInstance = w1.createInstance;
|
7903
7739
|
Y.createInstance;
|
7904
7740
|
Y.dir;
|
7905
7741
|
Y.init;
|
@@ -7914,26 +7750,26 @@ Y.setDefaultNamespace;
|
|
7914
7750
|
Y.hasLoadedNamespace;
|
7915
7751
|
Y.loadNamespaces;
|
7916
7752
|
Y.loadLanguages;
|
7917
|
-
const
|
7918
|
-
archived:
|
7919
|
-
deleted:
|
7920
|
-
},
|
7921
|
-
archived:
|
7922
|
-
deleted:
|
7753
|
+
const y0 = "Archived", b0 = "Deleted", E0 = {
|
7754
|
+
archived: y0,
|
7755
|
+
deleted: b0
|
7756
|
+
}, H0 = "Заархивирован", _0 = "Удалён", I0 = {
|
7757
|
+
archived: H0,
|
7758
|
+
deleted: _0
|
7923
7759
|
};
|
7924
|
-
Y.use(
|
7760
|
+
Y.use(qi).init({
|
7925
7761
|
defaultNS: "common",
|
7926
7762
|
lng: "en",
|
7927
7763
|
resources: {
|
7928
7764
|
en: {
|
7929
|
-
common:
|
7765
|
+
common: E0
|
7930
7766
|
},
|
7931
7767
|
ru: {
|
7932
|
-
common:
|
7768
|
+
common: I0
|
7933
7769
|
}
|
7934
7770
|
}
|
7935
7771
|
});
|
7936
|
-
const
|
7772
|
+
const D0 = k1(
|
7937
7773
|
({
|
7938
7774
|
fetchParams: i,
|
7939
7775
|
mode: e = void 0,
|
@@ -7941,14 +7777,14 @@ const G0 = k1(
|
|
7941
7777
|
disabled: s,
|
7942
7778
|
value: n,
|
7943
7779
|
onChange: o,
|
7944
|
-
onError:
|
7780
|
+
onError: c,
|
7945
7781
|
allowEmpty: a = !1,
|
7946
7782
|
showAvatar: d = !1,
|
7947
7783
|
clearable: g,
|
7948
7784
|
required: l,
|
7949
|
-
error:
|
7785
|
+
error: h
|
7950
7786
|
}, u) => {
|
7951
|
-
const { axiosPeople: p, locale: k } = r1(Ee), { t: v } =
|
7787
|
+
const { axiosPeople: p, locale: k } = r1(Ee), { t: v } = i0("common", { lng: k }), [m, O] = B([]), [M, S] = B(!0), f = X(m), N = X(null);
|
7952
7788
|
if (oe(u, () => N.current), !p)
|
7953
7789
|
throw new Error(
|
7954
7790
|
`UserSelect requires "axiosPeople" to fetch users.
|
@@ -7956,21 +7792,21 @@ const G0 = k1(
|
|
7956
7792
|
);
|
7957
7793
|
const x = $(
|
7958
7794
|
(H) => {
|
7959
|
-
let
|
7960
|
-
return H.deletedAt && (
|
7795
|
+
let j = "";
|
7796
|
+
return H.deletedAt && (j += `[${v("deleted")}] `), H.status === R1.ARCHIVED && (j += `[${v("archived")}] `), `${j}${H.firstName} ${H.lastName}`;
|
7961
7797
|
},
|
7962
7798
|
[v]
|
7963
7799
|
), L = $(
|
7964
7800
|
async ({
|
7965
7801
|
offset: H,
|
7966
|
-
limit:
|
7802
|
+
limit: j,
|
7967
7803
|
search: _
|
7968
7804
|
}) => {
|
7969
7805
|
var V, T, Z;
|
7970
7806
|
try {
|
7971
7807
|
const U = await p.post("v1/users/search", {
|
7972
7808
|
offset: H,
|
7973
|
-
limit:
|
7809
|
+
limit: j,
|
7974
7810
|
search: _,
|
7975
7811
|
...i,
|
7976
7812
|
includeCount: !0
|
@@ -7984,7 +7820,7 @@ const G0 = k1(
|
|
7984
7820
|
count: K.count
|
7985
7821
|
};
|
7986
7822
|
} catch (U) {
|
7987
|
-
return
|
7823
|
+
return c && c({
|
7988
7824
|
status: ((V = U.response) == null ? void 0 : V.status) ?? 500,
|
7989
7825
|
message: ((Z = (T = U.response) == null ? void 0 : T.data) == null ? void 0 : Z.message) ?? "Error while fetching options"
|
7990
7826
|
}), {
|
@@ -7993,10 +7829,10 @@ const G0 = k1(
|
|
7993
7829
|
};
|
7994
7830
|
}
|
7995
7831
|
},
|
7996
|
-
[p, i, x, d,
|
7832
|
+
[p, i, x, d, c]
|
7997
7833
|
), P = $(
|
7998
7834
|
async (H) => {
|
7999
|
-
var
|
7835
|
+
var j, _, V;
|
8000
7836
|
try {
|
8001
7837
|
const T = H.filter(
|
8002
7838
|
(I) => !f.current.some((K) => K.value === I)
|
@@ -8015,17 +7851,17 @@ const G0 = k1(
|
|
8015
7851
|
}));
|
8016
7852
|
return [...f.current, ...U];
|
8017
7853
|
} catch (T) {
|
8018
|
-
return
|
8019
|
-
status: ((
|
7854
|
+
return c && c({
|
7855
|
+
status: ((j = T.response) == null ? void 0 : j.status) ?? 500,
|
8020
7856
|
message: ((V = (_ = T.response) == null ? void 0 : _.data) == null ? void 0 : V.message) ?? "Error while fetching selected items"
|
8021
7857
|
}), [];
|
8022
7858
|
}
|
8023
7859
|
},
|
8024
|
-
[p, x,
|
7860
|
+
[p, x, c, d]
|
8025
7861
|
);
|
8026
7862
|
G(() => {
|
8027
|
-
f.current =
|
8028
|
-
}, [
|
7863
|
+
f.current = m;
|
7864
|
+
}, [m]), G(() => {
|
8029
7865
|
var H;
|
8030
7866
|
(H = N.current) == null || H.refetchOptions();
|
8031
7867
|
}, [i]), G(() => {
|
@@ -8034,23 +7870,23 @@ const G0 = k1(
|
|
8034
7870
|
return;
|
8035
7871
|
}
|
8036
7872
|
(async () => {
|
8037
|
-
const
|
7873
|
+
const j = Array.isArray(n) ? n : [n], _ = await P(j);
|
8038
7874
|
O(_), S(!1);
|
8039
7875
|
})();
|
8040
7876
|
}, [P, n]);
|
8041
7877
|
const J = $(
|
8042
7878
|
async ({
|
8043
7879
|
limit: H,
|
8044
|
-
offset:
|
7880
|
+
offset: j,
|
8045
7881
|
search: _
|
8046
7882
|
}) => {
|
8047
7883
|
const { count: V, ...T } = await L({
|
8048
|
-
offset:
|
7884
|
+
offset: j,
|
8049
7885
|
limit: H,
|
8050
7886
|
search: _
|
8051
7887
|
});
|
8052
7888
|
let Z = T.options;
|
8053
|
-
return a &&
|
7889
|
+
return a && j === 0 && (Z = [{ value: null, label: "None" }, ...Z]), {
|
8054
7890
|
options: Z,
|
8055
7891
|
count: V,
|
8056
7892
|
limit: H
|
@@ -8059,14 +7895,14 @@ const G0 = k1(
|
|
8059
7895
|
[a, L]
|
8060
7896
|
);
|
8061
7897
|
if (M)
|
8062
|
-
return /* @__PURE__ */ r(
|
7898
|
+
return /* @__PURE__ */ r(Di, {});
|
8063
7899
|
const F = {
|
8064
7900
|
ref: N,
|
8065
7901
|
placeholder: t,
|
8066
7902
|
disabled: s,
|
8067
7903
|
clearable: g,
|
8068
7904
|
required: l,
|
8069
|
-
error:
|
7905
|
+
error: h
|
8070
7906
|
};
|
8071
7907
|
return e ? /* @__PURE__ */ r(
|
8072
7908
|
P1,
|
@@ -8077,7 +7913,7 @@ const G0 = k1(
|
|
8077
7913
|
onChange: o,
|
8078
7914
|
loadOptions: J,
|
8079
7915
|
preloadOptions: !0,
|
8080
|
-
extraOptions:
|
7916
|
+
extraOptions: m
|
8081
7917
|
}
|
8082
7918
|
) : /* @__PURE__ */ r(
|
8083
7919
|
P1,
|
@@ -8088,11 +7924,11 @@ const G0 = k1(
|
|
8088
7924
|
onChange: o,
|
8089
7925
|
loadOptions: J,
|
8090
7926
|
preloadOptions: !0,
|
8091
|
-
extraOptions:
|
7927
|
+
extraOptions: m
|
8092
7928
|
}
|
8093
7929
|
);
|
8094
7930
|
}
|
8095
7931
|
);
|
8096
7932
|
export {
|
8097
|
-
|
7933
|
+
D0 as UserSelect
|
8098
7934
|
};
|