@snmt-react-ui/user-select 2.6.7 → 2.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/user-select.js +759 -711
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var me = Object.defineProperty;
|
|
2
|
+
var ke = (i, e, t) => e in i ? me(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var W1 = (i, e, t) => ke(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
|
-
import { jsx as r, Fragment as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { Select as
|
|
5
|
+
import { jsx as r, Fragment as s1, jsxs as C } from "react/jsx-runtime";
|
|
6
|
+
import { createContext as d1, forwardRef as L1, useState as A, useRef as Q, useEffect as T, useCallback as G, useMemo as Le, useImperativeHandle as oe, useContext as o1 } from "react";
|
|
7
|
+
import { Select as ve, Flex as Ne, Avatar as xe, Checkbox as Me, Typography as le, Tag as Re, Popover as ye } from "antd";
|
|
8
8
|
import { SNMTUiContext as be } from "@snmt-react-ui/core";
|
|
9
9
|
var _e = Object.defineProperty, Ve = (i, e, t) => e in i ? _e(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Ee = (i, e, t) => Ve(i, e + "", t), He = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function Ie() {
|
|
11
11
|
if (console && console.warn) {
|
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
13
13
|
e[t] = arguments[t];
|
|
14
|
-
|
|
14
|
+
n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
function
|
|
17
|
+
const j1 = {};
|
|
18
|
+
function O1() {
|
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
20
20
|
e[t] = arguments[t];
|
|
21
|
-
|
|
21
|
+
n1(e[0]) && j1[e[0]] || (n1(e[0]) && (j1[e[0]] = /* @__PURE__ */ new Date()), Ie(...e));
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const ae = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
25
25
|
e();
|
|
26
26
|
else {
|
|
@@ -31,12 +31,12 @@ const oe = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
35
|
-
i.loadNamespaces(e,
|
|
36
|
-
},
|
|
37
|
-
|
|
34
|
+
}, D1 = (i, e, t) => {
|
|
35
|
+
i.loadNamespaces(e, ae(i, t));
|
|
36
|
+
}, T1 = (i, e, t, s) => {
|
|
37
|
+
n1(t) && (t = [t]), t.forEach((n) => {
|
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
39
|
-
}), i.loadLanguages(e,
|
|
39
|
+
}), i.loadLanguages(e, ae(i, s));
|
|
40
40
|
}, Oe = function(i, e) {
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
|
|
@@ -48,13 +48,13 @@ const oe = (i, e) => () => {
|
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(l, i)));
|
|
49
49
|
}, Se = function(i, e) {
|
|
50
50
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
51
|
-
return !e.languages || !e.languages.length ? (
|
|
51
|
+
return !e.languages || !e.languages.length ? (O1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
52
52
|
lng: t.lng,
|
|
53
53
|
precheck: (s, n) => {
|
|
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
|
}) : Oe(i, e, t);
|
|
57
|
-
},
|
|
57
|
+
}, n1 = (i) => typeof i == "string", Ae = (i) => typeof i == "object" && i !== null, Be = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Ze = {
|
|
58
58
|
"&": "&",
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
@@ -88,7 +88,7 @@ let De = {
|
|
|
88
88
|
};
|
|
89
89
|
const Te = () => De;
|
|
90
90
|
let Ge;
|
|
91
|
-
const Ke = () => Ge, Pe =
|
|
91
|
+
const Ke = () => Ge, Pe = d1();
|
|
92
92
|
class $e {
|
|
93
93
|
constructor() {
|
|
94
94
|
Ee(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -99,25 +99,25 @@ class $e {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
const t =
|
|
104
|
-
return
|
|
102
|
+
const Fe = (i, e) => {
|
|
103
|
+
const t = Q();
|
|
104
|
+
return T(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
},
|
|
107
|
+
}, he = (i, e, t, s) => i.getFixedT(e, t, s), Ye = (i, e, t, s) => G(he(i, e, t, s), [i, e, t, s]), Ue = function(i) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
111
111
|
} = e, {
|
|
112
112
|
i18n: s,
|
|
113
113
|
defaultNS: n
|
|
114
|
-
} =
|
|
114
|
+
} = o1(Pe) || {}, l = t || s || Ke();
|
|
115
115
|
if (l && !l.reportNamespaces && (l.reportNamespaces = new $e()), !l) {
|
|
116
|
-
|
|
117
|
-
const f = (y,
|
|
118
|
-
return
|
|
116
|
+
O1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
+
const f = (y, v) => n1(v) ? v : Ae(v) && n1(v.defaultValue) ? v.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, m = [f, {}, !1];
|
|
118
|
+
return m.t = f, m.i18n = {}, m.ready = !1, m;
|
|
119
119
|
}
|
|
120
|
-
l.options.react && l.options.react.wait !== void 0 &&
|
|
120
|
+
l.options.react && l.options.react.wait !== void 0 && O1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
121
|
const c = {
|
|
122
122
|
...Te(),
|
|
123
123
|
...l.options.react,
|
|
@@ -127,36 +127,36 @@ const Ye = (i, e) => {
|
|
|
127
127
|
keyPrefix: d
|
|
128
128
|
} = c;
|
|
129
129
|
let g = i;
|
|
130
|
-
g =
|
|
131
|
-
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => Se(f, l, c)), h =
|
|
132
|
-
let
|
|
133
|
-
e.lng && (
|
|
134
|
-
const
|
|
135
|
-
|
|
130
|
+
g = n1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
|
|
131
|
+
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => Se(f, l, c)), h = Ye(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => he(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, R] = A(u);
|
|
132
|
+
let L = g.join();
|
|
133
|
+
e.lng && (L = `${e.lng}${L}`);
|
|
134
|
+
const H = Fe(L), b = Q(!0);
|
|
135
|
+
T(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: f,
|
|
138
|
-
bindI18nStore:
|
|
138
|
+
bindI18nStore: m
|
|
139
139
|
} = c;
|
|
140
|
-
b.current = !0, !a && !o && (e.lng ?
|
|
140
|
+
b.current = !0, !a && !o && (e.lng ? T1(l, e.lng, g, () => {
|
|
141
141
|
b.current && R(p);
|
|
142
|
-
}) :
|
|
142
|
+
}) : D1(l, g, () => {
|
|
143
143
|
b.current && R(p);
|
|
144
|
-
})), a &&
|
|
144
|
+
})), a && H && H !== L && b.current && R(p);
|
|
145
145
|
const y = () => {
|
|
146
146
|
b.current && R(p);
|
|
147
147
|
};
|
|
148
|
-
return f && l && l.on(f, y),
|
|
149
|
-
b.current = !1, f && l && f.split(" ").forEach((
|
|
148
|
+
return f && l && l.on(f, y), m && l && l.store.on(m, y), () => {
|
|
149
|
+
b.current = !1, f && l && f.split(" ").forEach((v) => l.off(v, y)), m && l && m.split(" ").forEach((v) => l.store.off(v, y));
|
|
150
150
|
};
|
|
151
|
-
}, [l,
|
|
151
|
+
}, [l, L]), T(() => {
|
|
152
152
|
b.current && a && R(u);
|
|
153
153
|
}, [l, d, a]);
|
|
154
|
-
const _ = [
|
|
155
|
-
if (_.t =
|
|
154
|
+
const _ = [k, l, a];
|
|
155
|
+
if (_.t = k, _.i18n = l, _.ready = a, a || !a && !o) return _;
|
|
156
156
|
throw new Promise((f) => {
|
|
157
|
-
e.lng ?
|
|
157
|
+
e.lng ? T1(l, e.lng, g, () => f()) : D1(l, g, () => f());
|
|
158
158
|
});
|
|
159
|
-
},
|
|
159
|
+
}, f1 = ({
|
|
160
160
|
children: i,
|
|
161
161
|
direction: e = "row",
|
|
162
162
|
flexWrap: t = "nowrap",
|
|
@@ -166,7 +166,7 @@ const Ye = (i, e) => {
|
|
|
166
166
|
gap: c,
|
|
167
167
|
padding: o
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
|
-
|
|
169
|
+
Ne,
|
|
170
170
|
{
|
|
171
171
|
className: `snmt-flex${t === "inherit" ? " inherit" : ""}`,
|
|
172
172
|
vertical: e === "column",
|
|
@@ -181,7 +181,7 @@ const Ye = (i, e) => {
|
|
|
181
181
|
), ze = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
|
182
182
|
const n = typeof s.src == "string";
|
|
183
183
|
return /* @__PURE__ */ r(
|
|
184
|
-
|
|
184
|
+
xe,
|
|
185
185
|
{
|
|
186
186
|
className: `snmt-avatar ${n ? "image" : ""}`,
|
|
187
187
|
shape: i,
|
|
@@ -193,11 +193,11 @@ const Ye = (i, e) => {
|
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
195
|
var e1 = /* @__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))(e1 || {});
|
|
196
|
-
const
|
|
196
|
+
const Z1 = d1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
Z1.Provider;
|
|
201
201
|
const Je = ({
|
|
202
202
|
checked: i = !0,
|
|
203
203
|
indeterminate: e = !1,
|
|
@@ -206,13 +206,13 @@ const Je = ({
|
|
|
206
206
|
disabled: n = !1,
|
|
207
207
|
disableUncheck: l = !1
|
|
208
208
|
}) => {
|
|
209
|
-
const [c, o] =
|
|
210
|
-
|
|
209
|
+
const [c, o] = A(i), [d, g] = A(e);
|
|
210
|
+
T(() => {
|
|
211
211
|
o(i), g(e);
|
|
212
212
|
}, [i, e]);
|
|
213
|
-
const { theme: a } =
|
|
213
|
+
const { theme: a } = o1(Z1);
|
|
214
214
|
return /* @__PURE__ */ r(
|
|
215
|
-
|
|
215
|
+
Me,
|
|
216
216
|
{
|
|
217
217
|
className: `snmt-checkbox snmt-checkbox-${a}`,
|
|
218
218
|
checked: c,
|
|
@@ -225,12 +225,12 @@ const Je = ({
|
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
};
|
|
228
|
-
var
|
|
229
|
-
const
|
|
228
|
+
var N = /* @__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))(N || {});
|
|
229
|
+
const ce = d1({
|
|
230
230
|
locale: "en",
|
|
231
231
|
theme: "light"
|
|
232
232
|
});
|
|
233
|
-
|
|
233
|
+
ce.Provider;
|
|
234
234
|
const qe = ({
|
|
235
235
|
width: i = 20,
|
|
236
236
|
height: e = 20,
|
|
@@ -1771,7 +1771,7 @@ const qe = ({
|
|
|
1771
1771
|
), D2 = ({
|
|
1772
1772
|
width: i = 24,
|
|
1773
1773
|
height: e = 24,
|
|
1774
|
-
color: t =
|
|
1774
|
+
color: t = N.GREY_DARK_5,
|
|
1775
1775
|
className: s,
|
|
1776
1776
|
onClick: n
|
|
1777
1777
|
}) => /* @__PURE__ */ C(
|
|
@@ -1810,7 +1810,7 @@ const qe = ({
|
|
|
1810
1810
|
), T2 = ({
|
|
1811
1811
|
width: i = 20,
|
|
1812
1812
|
height: e = 20,
|
|
1813
|
-
color: t =
|
|
1813
|
+
color: t = N.GREY_DARK_1,
|
|
1814
1814
|
className: s,
|
|
1815
1815
|
onClick: n
|
|
1816
1816
|
}) => /* @__PURE__ */ C(
|
|
@@ -1843,7 +1843,7 @@ const qe = ({
|
|
|
1843
1843
|
), G2 = ({
|
|
1844
1844
|
width: i = 81,
|
|
1845
1845
|
height: e = 80,
|
|
1846
|
-
color: t =
|
|
1846
|
+
color: t = N.GREY_DARK_5,
|
|
1847
1847
|
className: s,
|
|
1848
1848
|
onClick: n
|
|
1849
1849
|
}) => /* @__PURE__ */ C(
|
|
@@ -1891,7 +1891,7 @@ const qe = ({
|
|
|
1891
1891
|
}
|
|
1892
1892
|
), K2 = ({
|
|
1893
1893
|
className: i,
|
|
1894
|
-
color: e =
|
|
1894
|
+
color: e = N.GREY_DARK_5,
|
|
1895
1895
|
height: t = 20,
|
|
1896
1896
|
width: s = 20,
|
|
1897
1897
|
onClick: n
|
|
@@ -1918,7 +1918,7 @@ const qe = ({
|
|
|
1918
1918
|
}
|
|
1919
1919
|
), P2 = ({
|
|
1920
1920
|
className: i,
|
|
1921
|
-
color: e =
|
|
1921
|
+
color: e = N.GREY_DARK_5,
|
|
1922
1922
|
height: t = 20,
|
|
1923
1923
|
width: s = 20,
|
|
1924
1924
|
onClick: n
|
|
@@ -1945,7 +1945,7 @@ const qe = ({
|
|
|
1945
1945
|
}
|
|
1946
1946
|
), $2 = ({
|
|
1947
1947
|
className: i,
|
|
1948
|
-
color: e =
|
|
1948
|
+
color: e = N.GREY_DARK_5,
|
|
1949
1949
|
height: t = 5,
|
|
1950
1950
|
width: s = 10,
|
|
1951
1951
|
onClick: n
|
|
@@ -1967,9 +1967,9 @@ const qe = ({
|
|
|
1967
1967
|
}
|
|
1968
1968
|
)
|
|
1969
1969
|
}
|
|
1970
|
-
),
|
|
1970
|
+
), F2 = ({
|
|
1971
1971
|
className: i,
|
|
1972
|
-
color: e =
|
|
1972
|
+
color: e = N.GREY_DARK_5,
|
|
1973
1973
|
height: t = 5,
|
|
1974
1974
|
width: s = 10,
|
|
1975
1975
|
onClick: n
|
|
@@ -1992,9 +1992,9 @@ const qe = ({
|
|
|
1992
1992
|
}
|
|
1993
1993
|
)
|
|
1994
1994
|
}
|
|
1995
|
-
),
|
|
1995
|
+
), Y2 = ({
|
|
1996
1996
|
className: i,
|
|
1997
|
-
color: e =
|
|
1997
|
+
color: e = N.GREY_DARK_5,
|
|
1998
1998
|
height: t = 24,
|
|
1999
1999
|
width: s = 24,
|
|
2000
2000
|
onClick: n
|
|
@@ -2033,7 +2033,7 @@ const qe = ({
|
|
|
2033
2033
|
}
|
|
2034
2034
|
), U2 = ({
|
|
2035
2035
|
className: i,
|
|
2036
|
-
color: e =
|
|
2036
|
+
color: e = N.GREY_DARK_5,
|
|
2037
2037
|
height: t = 24,
|
|
2038
2038
|
width: s = 24,
|
|
2039
2039
|
onClick: n
|
|
@@ -2072,7 +2072,7 @@ const qe = ({
|
|
|
2072
2072
|
}
|
|
2073
2073
|
), z2 = ({
|
|
2074
2074
|
className: i,
|
|
2075
|
-
color: e =
|
|
2075
|
+
color: e = N.GREY_DARK_5,
|
|
2076
2076
|
height: t = 24,
|
|
2077
2077
|
width: s = 24,
|
|
2078
2078
|
onClick: n
|
|
@@ -2099,7 +2099,7 @@ const qe = ({
|
|
|
2099
2099
|
}
|
|
2100
2100
|
), J2 = ({
|
|
2101
2101
|
className: i,
|
|
2102
|
-
color: e =
|
|
2102
|
+
color: e = N.GREY_DARK_5,
|
|
2103
2103
|
height: t = 24,
|
|
2104
2104
|
width: s = 24,
|
|
2105
2105
|
onClick: n
|
|
@@ -2158,7 +2158,7 @@ const qe = ({
|
|
|
2158
2158
|
}
|
|
2159
2159
|
), q2 = ({
|
|
2160
2160
|
className: i,
|
|
2161
|
-
color: e =
|
|
2161
|
+
color: e = N.GREY_DARK_5,
|
|
2162
2162
|
height: t = 24,
|
|
2163
2163
|
width: s = 24,
|
|
2164
2164
|
onClick: n
|
|
@@ -2195,7 +2195,7 @@ const qe = ({
|
|
|
2195
2195
|
}
|
|
2196
2196
|
), Q2 = ({
|
|
2197
2197
|
className: i,
|
|
2198
|
-
color: e =
|
|
2198
|
+
color: e = N.GREY_DARK_3,
|
|
2199
2199
|
height: t = 14,
|
|
2200
2200
|
width: s = 14,
|
|
2201
2201
|
onClick: n
|
|
@@ -2232,7 +2232,7 @@ const qe = ({
|
|
|
2232
2232
|
}
|
|
2233
2233
|
), X2 = ({
|
|
2234
2234
|
className: i,
|
|
2235
|
-
color: e =
|
|
2235
|
+
color: e = N.GREY_DARK_5,
|
|
2236
2236
|
height: t = 18,
|
|
2237
2237
|
onClick: s,
|
|
2238
2238
|
width: n = 18
|
|
@@ -2259,7 +2259,7 @@ const qe = ({
|
|
|
2259
2259
|
}
|
|
2260
2260
|
), et = ({
|
|
2261
2261
|
className: i,
|
|
2262
|
-
color: e =
|
|
2262
|
+
color: e = N.GREY_DARK_5,
|
|
2263
2263
|
height: t = 24,
|
|
2264
2264
|
width: s = 24,
|
|
2265
2265
|
onClick: n
|
|
@@ -2311,7 +2311,7 @@ const qe = ({
|
|
|
2311
2311
|
}
|
|
2312
2312
|
), tt = ({
|
|
2313
2313
|
className: i,
|
|
2314
|
-
color: e =
|
|
2314
|
+
color: e = N.GREY_DARK_5,
|
|
2315
2315
|
height: t = 24,
|
|
2316
2316
|
width: s = 24,
|
|
2317
2317
|
onClick: n
|
|
@@ -2348,7 +2348,7 @@ const qe = ({
|
|
|
2348
2348
|
}
|
|
2349
2349
|
), it = ({
|
|
2350
2350
|
className: i,
|
|
2351
|
-
color: e =
|
|
2351
|
+
color: e = N.NOTIFICATION_WARNING_DARK,
|
|
2352
2352
|
height: t = 37,
|
|
2353
2353
|
width: s = 36,
|
|
2354
2354
|
onClick: n
|
|
@@ -2387,7 +2387,7 @@ const qe = ({
|
|
|
2387
2387
|
}
|
|
2388
2388
|
), st = ({
|
|
2389
2389
|
className: i,
|
|
2390
|
-
color: e =
|
|
2390
|
+
color: e = N.GREY_DARK_5,
|
|
2391
2391
|
height: t = 24,
|
|
2392
2392
|
width: s = 24,
|
|
2393
2393
|
onClick: n
|
|
@@ -2413,7 +2413,7 @@ const qe = ({
|
|
|
2413
2413
|
}
|
|
2414
2414
|
), nt = ({
|
|
2415
2415
|
className: i,
|
|
2416
|
-
color: e =
|
|
2416
|
+
color: e = N.GREY_DARK_5,
|
|
2417
2417
|
height: t = 24,
|
|
2418
2418
|
width: s = 24,
|
|
2419
2419
|
onClick: n
|
|
@@ -2452,7 +2452,7 @@ const qe = ({
|
|
|
2452
2452
|
}
|
|
2453
2453
|
), rt = ({
|
|
2454
2454
|
className: i,
|
|
2455
|
-
color: e =
|
|
2455
|
+
color: e = N.GREY_DARK_5,
|
|
2456
2456
|
height: t = 24,
|
|
2457
2457
|
width: s = 24,
|
|
2458
2458
|
onClick: n
|
|
@@ -2491,7 +2491,7 @@ const qe = ({
|
|
|
2491
2491
|
}
|
|
2492
2492
|
), ot = ({
|
|
2493
2493
|
className: i,
|
|
2494
|
-
color: e =
|
|
2494
|
+
color: e = N.GREY_DARK_5,
|
|
2495
2495
|
height: t = 24,
|
|
2496
2496
|
width: s = 24,
|
|
2497
2497
|
onClick: n
|
|
@@ -2560,7 +2560,7 @@ const qe = ({
|
|
|
2560
2560
|
}
|
|
2561
2561
|
), lt = ({
|
|
2562
2562
|
className: i,
|
|
2563
|
-
color: e =
|
|
2563
|
+
color: e = N.GREY_DARK_5,
|
|
2564
2564
|
height: t = 24,
|
|
2565
2565
|
width: s = 24,
|
|
2566
2566
|
onClick: n
|
|
@@ -2599,7 +2599,7 @@ const qe = ({
|
|
|
2599
2599
|
}
|
|
2600
2600
|
), at = ({
|
|
2601
2601
|
className: i,
|
|
2602
|
-
color: e =
|
|
2602
|
+
color: e = N.GREY_DARK_5,
|
|
2603
2603
|
height: t = 24,
|
|
2604
2604
|
width: s = 24,
|
|
2605
2605
|
onClick: n
|
|
@@ -2656,7 +2656,7 @@ const qe = ({
|
|
|
2656
2656
|
}
|
|
2657
2657
|
), ht = ({
|
|
2658
2658
|
className: i,
|
|
2659
|
-
color: e =
|
|
2659
|
+
color: e = N.GREY_DARK_5,
|
|
2660
2660
|
height: t = 24,
|
|
2661
2661
|
width: s = 24,
|
|
2662
2662
|
onClick: n
|
|
@@ -2695,7 +2695,7 @@ const qe = ({
|
|
|
2695
2695
|
}
|
|
2696
2696
|
), ct = ({
|
|
2697
2697
|
className: i,
|
|
2698
|
-
color: e =
|
|
2698
|
+
color: e = N.GREY_DARK_5,
|
|
2699
2699
|
height: t = 24,
|
|
2700
2700
|
width: s = 24,
|
|
2701
2701
|
onClick: n
|
|
@@ -2744,7 +2744,7 @@ const qe = ({
|
|
|
2744
2744
|
}
|
|
2745
2745
|
), dt = ({
|
|
2746
2746
|
className: i,
|
|
2747
|
-
color: e =
|
|
2747
|
+
color: e = N.GREY_DARK_5,
|
|
2748
2748
|
height: t = 24,
|
|
2749
2749
|
width: s = 24,
|
|
2750
2750
|
onClick: n
|
|
@@ -2783,7 +2783,7 @@ const qe = ({
|
|
|
2783
2783
|
}
|
|
2784
2784
|
), gt = ({
|
|
2785
2785
|
className: i,
|
|
2786
|
-
color: e =
|
|
2786
|
+
color: e = N.GREY_DARK_5,
|
|
2787
2787
|
height: t = 24,
|
|
2788
2788
|
width: s = 24,
|
|
2789
2789
|
onClick: n
|
|
@@ -2810,7 +2810,7 @@ const qe = ({
|
|
|
2810
2810
|
}
|
|
2811
2811
|
), Ct = ({
|
|
2812
2812
|
className: i,
|
|
2813
|
-
color: e =
|
|
2813
|
+
color: e = N.GREY_DARK_5,
|
|
2814
2814
|
height: t = 24,
|
|
2815
2815
|
width: s = 24,
|
|
2816
2816
|
onClick: n
|
|
@@ -2848,7 +2848,7 @@ const qe = ({
|
|
|
2848
2848
|
}
|
|
2849
2849
|
), ut = ({
|
|
2850
2850
|
className: i,
|
|
2851
|
-
color: e =
|
|
2851
|
+
color: e = N.GREY_DARK_5,
|
|
2852
2852
|
height: t = 24,
|
|
2853
2853
|
width: s = 24,
|
|
2854
2854
|
onClick: n
|
|
@@ -2869,7 +2869,7 @@ const qe = ({
|
|
|
2869
2869
|
}
|
|
2870
2870
|
), pt = ({
|
|
2871
2871
|
className: i,
|
|
2872
|
-
color: e =
|
|
2872
|
+
color: e = N.GREY_DARK_5,
|
|
2873
2873
|
height: t = 24,
|
|
2874
2874
|
width: s = 24,
|
|
2875
2875
|
onClick: n
|
|
@@ -2908,7 +2908,7 @@ const qe = ({
|
|
|
2908
2908
|
}
|
|
2909
2909
|
), ft = ({
|
|
2910
2910
|
className: i,
|
|
2911
|
-
color: e =
|
|
2911
|
+
color: e = N.GREY_DARK_5,
|
|
2912
2912
|
height: t = 24,
|
|
2913
2913
|
width: s = 24,
|
|
2914
2914
|
onClick: n
|
|
@@ -2947,7 +2947,7 @@ const qe = ({
|
|
|
2947
2947
|
}
|
|
2948
2948
|
), wt = ({
|
|
2949
2949
|
className: i,
|
|
2950
|
-
color: e =
|
|
2950
|
+
color: e = N.GREY_DARK_5,
|
|
2951
2951
|
height: t = 24,
|
|
2952
2952
|
width: s = 24,
|
|
2953
2953
|
onClick: n
|
|
@@ -2986,7 +2986,7 @@ const qe = ({
|
|
|
2986
2986
|
}
|
|
2987
2987
|
), mt = ({
|
|
2988
2988
|
className: i,
|
|
2989
|
-
color: e =
|
|
2989
|
+
color: e = N.GREY_DARK_2,
|
|
2990
2990
|
height: t = 16,
|
|
2991
2991
|
width: s = 16,
|
|
2992
2992
|
onClick: n
|
|
@@ -3012,7 +3012,7 @@ const qe = ({
|
|
|
3012
3012
|
}
|
|
3013
3013
|
), kt = ({
|
|
3014
3014
|
className: i,
|
|
3015
|
-
color: e =
|
|
3015
|
+
color: e = N.GREY_DARK_5,
|
|
3016
3016
|
height: t = 20,
|
|
3017
3017
|
width: s = 20,
|
|
3018
3018
|
onClick: n
|
|
@@ -3041,7 +3041,7 @@ const qe = ({
|
|
|
3041
3041
|
}
|
|
3042
3042
|
), Lt = ({
|
|
3043
3043
|
className: i,
|
|
3044
|
-
color: e =
|
|
3044
|
+
color: e = N.GREY_DARK_5,
|
|
3045
3045
|
height: t = 20,
|
|
3046
3046
|
width: s = 20,
|
|
3047
3047
|
onClick: n
|
|
@@ -3070,7 +3070,7 @@ const qe = ({
|
|
|
3070
3070
|
}
|
|
3071
3071
|
), vt = ({
|
|
3072
3072
|
className: i,
|
|
3073
|
-
color: e =
|
|
3073
|
+
color: e = N.GREY_DARK_5,
|
|
3074
3074
|
height: t = 20,
|
|
3075
3075
|
width: s = 20,
|
|
3076
3076
|
onClick: n
|
|
@@ -3085,7 +3085,7 @@ const qe = ({
|
|
|
3085
3085
|
fill: "none",
|
|
3086
3086
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3087
3087
|
children: [
|
|
3088
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
3088
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: N.GREY_LIGHT_2 }),
|
|
3089
3089
|
/* @__PURE__ */ r(
|
|
3090
3090
|
"path",
|
|
3091
3091
|
{
|
|
@@ -3099,7 +3099,7 @@ const qe = ({
|
|
|
3099
3099
|
}
|
|
3100
3100
|
), Nt = ({
|
|
3101
3101
|
className: i,
|
|
3102
|
-
color: e =
|
|
3102
|
+
color: e = N.GREY_DARK_5,
|
|
3103
3103
|
height: t = 20,
|
|
3104
3104
|
width: s = 20,
|
|
3105
3105
|
onClick: n
|
|
@@ -3114,7 +3114,7 @@ const qe = ({
|
|
|
3114
3114
|
fill: "none",
|
|
3115
3115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3116
3116
|
children: [
|
|
3117
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
3117
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: N.GREY_LIGHT_2 }),
|
|
3118
3118
|
/* @__PURE__ */ r(
|
|
3119
3119
|
"path",
|
|
3120
3120
|
{
|
|
@@ -3310,7 +3310,7 @@ const qe = ({
|
|
|
3310
3310
|
), _t = ({
|
|
3311
3311
|
width: i = 24,
|
|
3312
3312
|
height: e = 24,
|
|
3313
|
-
color: t =
|
|
3313
|
+
color: t = N.GREY_DARK_2,
|
|
3314
3314
|
className: s,
|
|
3315
3315
|
onClick: n
|
|
3316
3316
|
}) => /* @__PURE__ */ C(
|
|
@@ -3349,7 +3349,7 @@ const qe = ({
|
|
|
3349
3349
|
), Vt = ({
|
|
3350
3350
|
width: i = 24,
|
|
3351
3351
|
height: e = 24,
|
|
3352
|
-
color: t =
|
|
3352
|
+
color: t = N.GREY_DARK_2,
|
|
3353
3353
|
className: s,
|
|
3354
3354
|
onClick: n
|
|
3355
3355
|
}) => /* @__PURE__ */ r(
|
|
@@ -3376,7 +3376,7 @@ const qe = ({
|
|
|
3376
3376
|
), Et = ({
|
|
3377
3377
|
width: i = 24,
|
|
3378
3378
|
height: e = 24,
|
|
3379
|
-
color: t =
|
|
3379
|
+
color: t = N.GREY_DARK_2,
|
|
3380
3380
|
className: s,
|
|
3381
3381
|
onClick: n
|
|
3382
3382
|
}) => /* @__PURE__ */ C(
|
|
@@ -3416,7 +3416,7 @@ const qe = ({
|
|
|
3416
3416
|
), Ht = ({
|
|
3417
3417
|
width: i = 24,
|
|
3418
3418
|
height: e = 24,
|
|
3419
|
-
color: t =
|
|
3419
|
+
color: t = N.GREY_DARK_2,
|
|
3420
3420
|
className: s,
|
|
3421
3421
|
onClick: n
|
|
3422
3422
|
}) => /* @__PURE__ */ r(
|
|
@@ -3443,7 +3443,7 @@ const qe = ({
|
|
|
3443
3443
|
), It = ({
|
|
3444
3444
|
width: i = 24,
|
|
3445
3445
|
height: e = 24,
|
|
3446
|
-
color: t =
|
|
3446
|
+
color: t = N.GREY_DARK_2,
|
|
3447
3447
|
className: s,
|
|
3448
3448
|
onClick: n
|
|
3449
3449
|
}) => /* @__PURE__ */ r(
|
|
@@ -3467,7 +3467,7 @@ const qe = ({
|
|
|
3467
3467
|
}
|
|
3468
3468
|
)
|
|
3469
3469
|
}
|
|
3470
|
-
),
|
|
3470
|
+
), u1 = ({
|
|
3471
3471
|
name: i,
|
|
3472
3472
|
width: e,
|
|
3473
3473
|
height: t,
|
|
@@ -3476,14 +3476,14 @@ const qe = ({
|
|
|
3476
3476
|
disabled: l = !1,
|
|
3477
3477
|
onClick: c
|
|
3478
3478
|
}) => {
|
|
3479
|
-
const [o, d] =
|
|
3480
|
-
return
|
|
3479
|
+
const [o, d] = A(n), { theme: g } = o1(ce), a = l ? g && g === "dark" ? N.GREY_LIGHT_4 : N.GREY_DARK_1 : s, h = l ? void 0 : c;
|
|
3480
|
+
return T(() => {
|
|
3481
3481
|
if (n) {
|
|
3482
3482
|
h && !l && d(`${n} clickable`);
|
|
3483
3483
|
return;
|
|
3484
3484
|
}
|
|
3485
3485
|
h && !l && d("clickable");
|
|
3486
|
-
}, [h, n, l]), /* @__PURE__ */ r(
|
|
3486
|
+
}, [h, n, l]), /* @__PURE__ */ r(s1, { children: (() => {
|
|
3487
3487
|
switch (i) {
|
|
3488
3488
|
case "nextIcon":
|
|
3489
3489
|
return K2({ width: e, height: t, color: a, className: o, onClick: h });
|
|
@@ -3654,11 +3654,11 @@ const qe = ({
|
|
|
3654
3654
|
case "handRock":
|
|
3655
3655
|
return G2({ width: e, height: t, color: a, className: o, onClick: h });
|
|
3656
3656
|
case "arrowUpFilled":
|
|
3657
|
-
return
|
|
3657
|
+
return F2({ width: e, height: t, color: a, className: o, onClick: h });
|
|
3658
3658
|
case "arrowDownFilled":
|
|
3659
3659
|
return $2({ width: e, height: t, color: a, className: o, onClick: h });
|
|
3660
3660
|
case "link":
|
|
3661
|
-
return
|
|
3661
|
+
return Y2({ width: e, height: t, color: a, className: o, onClick: h });
|
|
3662
3662
|
case "telegram":
|
|
3663
3663
|
return z2({ width: e, height: t, color: a, className: o, onClick: h });
|
|
3664
3664
|
case "mail":
|
|
@@ -3738,15 +3738,15 @@ const qe = ({
|
|
|
3738
3738
|
case "docs":
|
|
3739
3739
|
return It({ width: e, height: t, color: a, className: o, onClick: h });
|
|
3740
3740
|
default:
|
|
3741
|
-
return /* @__PURE__ */ r(
|
|
3741
|
+
return /* @__PURE__ */ r(s1, { children: "No Icon provided" });
|
|
3742
3742
|
}
|
|
3743
3743
|
})() });
|
|
3744
|
-
}, { Title: Ot, Text: St } =
|
|
3744
|
+
}, { Title: Ot, Text: St } = le, At = {
|
|
3745
3745
|
h1: 1,
|
|
3746
3746
|
h2: 2,
|
|
3747
3747
|
h3: 3,
|
|
3748
3748
|
h4: 4
|
|
3749
|
-
}, Bt =
|
|
3749
|
+
}, Bt = L1(
|
|
3750
3750
|
({
|
|
3751
3751
|
align: i = "inherit",
|
|
3752
3752
|
variant: e = "body1",
|
|
@@ -3780,12 +3780,12 @@ const qe = ({
|
|
|
3780
3780
|
);
|
|
3781
3781
|
}
|
|
3782
3782
|
);
|
|
3783
|
-
var
|
|
3784
|
-
const
|
|
3783
|
+
var x = /* @__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))(x || {});
|
|
3784
|
+
const de = d1({
|
|
3785
3785
|
locale: "en",
|
|
3786
3786
|
theme: "light"
|
|
3787
3787
|
});
|
|
3788
|
-
|
|
3788
|
+
de.Provider;
|
|
3789
3789
|
const Zt = ({
|
|
3790
3790
|
width: i = 20,
|
|
3791
3791
|
height: e = 20,
|
|
@@ -4075,7 +4075,7 @@ const Zt = ({
|
|
|
4075
4075
|
)
|
|
4076
4076
|
]
|
|
4077
4077
|
}
|
|
4078
|
-
),
|
|
4078
|
+
), Ft = ({
|
|
4079
4079
|
width: i = 20,
|
|
4080
4080
|
height: e = 20,
|
|
4081
4081
|
color: t = "#001E52",
|
|
@@ -4114,7 +4114,7 @@ const Zt = ({
|
|
|
4114
4114
|
/* @__PURE__ */ r("path", { d: "M3 12L17 12", stroke: t, strokeWidth: "2", strokeLinecap: "round" })
|
|
4115
4115
|
]
|
|
4116
4116
|
}
|
|
4117
|
-
),
|
|
4117
|
+
), Yt = ({
|
|
4118
4118
|
width: i = 16,
|
|
4119
4119
|
height: e = 12,
|
|
4120
4120
|
color: t = "#001E52",
|
|
@@ -5326,7 +5326,7 @@ const Zt = ({
|
|
|
5326
5326
|
), y5 = ({
|
|
5327
5327
|
width: i = 24,
|
|
5328
5328
|
height: e = 24,
|
|
5329
|
-
color: t =
|
|
5329
|
+
color: t = x.GREY_DARK_5,
|
|
5330
5330
|
className: s,
|
|
5331
5331
|
onClick: n
|
|
5332
5332
|
}) => /* @__PURE__ */ C(
|
|
@@ -5365,7 +5365,7 @@ const Zt = ({
|
|
|
5365
5365
|
), b5 = ({
|
|
5366
5366
|
width: i = 20,
|
|
5367
5367
|
height: e = 20,
|
|
5368
|
-
color: t =
|
|
5368
|
+
color: t = x.GREY_DARK_1,
|
|
5369
5369
|
className: s,
|
|
5370
5370
|
onClick: n
|
|
5371
5371
|
}) => /* @__PURE__ */ C(
|
|
@@ -5398,7 +5398,7 @@ const Zt = ({
|
|
|
5398
5398
|
), _5 = ({
|
|
5399
5399
|
width: i = 81,
|
|
5400
5400
|
height: e = 80,
|
|
5401
|
-
color: t =
|
|
5401
|
+
color: t = x.GREY_DARK_5,
|
|
5402
5402
|
className: s,
|
|
5403
5403
|
onClick: n
|
|
5404
5404
|
}) => /* @__PURE__ */ C(
|
|
@@ -5446,7 +5446,7 @@ const Zt = ({
|
|
|
5446
5446
|
}
|
|
5447
5447
|
), V5 = ({
|
|
5448
5448
|
className: i,
|
|
5449
|
-
color: e =
|
|
5449
|
+
color: e = x.GREY_DARK_5,
|
|
5450
5450
|
height: t = 20,
|
|
5451
5451
|
width: s = 20,
|
|
5452
5452
|
onClick: n
|
|
@@ -5473,7 +5473,7 @@ const Zt = ({
|
|
|
5473
5473
|
}
|
|
5474
5474
|
), E5 = ({
|
|
5475
5475
|
className: i,
|
|
5476
|
-
color: e =
|
|
5476
|
+
color: e = x.GREY_DARK_5,
|
|
5477
5477
|
height: t = 20,
|
|
5478
5478
|
width: s = 20,
|
|
5479
5479
|
onClick: n
|
|
@@ -5500,7 +5500,7 @@ const Zt = ({
|
|
|
5500
5500
|
}
|
|
5501
5501
|
), H5 = ({
|
|
5502
5502
|
className: i,
|
|
5503
|
-
color: e =
|
|
5503
|
+
color: e = x.GREY_DARK_5,
|
|
5504
5504
|
height: t = 5,
|
|
5505
5505
|
width: s = 10,
|
|
5506
5506
|
onClick: n
|
|
@@ -5524,7 +5524,7 @@ const Zt = ({
|
|
|
5524
5524
|
}
|
|
5525
5525
|
), I5 = ({
|
|
5526
5526
|
className: i,
|
|
5527
|
-
color: e =
|
|
5527
|
+
color: e = x.GREY_DARK_5,
|
|
5528
5528
|
height: t = 5,
|
|
5529
5529
|
width: s = 10,
|
|
5530
5530
|
onClick: n
|
|
@@ -5549,7 +5549,7 @@ const Zt = ({
|
|
|
5549
5549
|
}
|
|
5550
5550
|
), O5 = ({
|
|
5551
5551
|
className: i,
|
|
5552
|
-
color: e =
|
|
5552
|
+
color: e = x.GREY_DARK_5,
|
|
5553
5553
|
height: t = 24,
|
|
5554
5554
|
width: s = 24,
|
|
5555
5555
|
onClick: n
|
|
@@ -5588,7 +5588,7 @@ const Zt = ({
|
|
|
5588
5588
|
}
|
|
5589
5589
|
), S5 = ({
|
|
5590
5590
|
className: i,
|
|
5591
|
-
color: e =
|
|
5591
|
+
color: e = x.GREY_DARK_5,
|
|
5592
5592
|
height: t = 24,
|
|
5593
5593
|
width: s = 24,
|
|
5594
5594
|
onClick: n
|
|
@@ -5627,7 +5627,7 @@ const Zt = ({
|
|
|
5627
5627
|
}
|
|
5628
5628
|
), A5 = ({
|
|
5629
5629
|
className: i,
|
|
5630
|
-
color: e =
|
|
5630
|
+
color: e = x.GREY_DARK_5,
|
|
5631
5631
|
height: t = 24,
|
|
5632
5632
|
width: s = 24,
|
|
5633
5633
|
onClick: n
|
|
@@ -5654,7 +5654,7 @@ const Zt = ({
|
|
|
5654
5654
|
}
|
|
5655
5655
|
), B5 = ({
|
|
5656
5656
|
className: i,
|
|
5657
|
-
color: e =
|
|
5657
|
+
color: e = x.GREY_DARK_5,
|
|
5658
5658
|
height: t = 24,
|
|
5659
5659
|
width: s = 24,
|
|
5660
5660
|
onClick: n
|
|
@@ -5713,7 +5713,7 @@ const Zt = ({
|
|
|
5713
5713
|
}
|
|
5714
5714
|
), Z5 = ({
|
|
5715
5715
|
className: i,
|
|
5716
|
-
color: e =
|
|
5716
|
+
color: e = x.GREY_DARK_5,
|
|
5717
5717
|
height: t = 24,
|
|
5718
5718
|
width: s = 24,
|
|
5719
5719
|
onClick: n
|
|
@@ -5750,7 +5750,7 @@ const Zt = ({
|
|
|
5750
5750
|
}
|
|
5751
5751
|
), W5 = ({
|
|
5752
5752
|
className: i,
|
|
5753
|
-
color: e =
|
|
5753
|
+
color: e = x.GREY_DARK_3,
|
|
5754
5754
|
height: t = 14,
|
|
5755
5755
|
width: s = 14,
|
|
5756
5756
|
onClick: n
|
|
@@ -5787,7 +5787,7 @@ const Zt = ({
|
|
|
5787
5787
|
}
|
|
5788
5788
|
), j5 = ({
|
|
5789
5789
|
className: i,
|
|
5790
|
-
color: e =
|
|
5790
|
+
color: e = x.GREY_DARK_5,
|
|
5791
5791
|
height: t = 18,
|
|
5792
5792
|
onClick: s,
|
|
5793
5793
|
width: n = 18
|
|
@@ -5814,7 +5814,7 @@ const Zt = ({
|
|
|
5814
5814
|
}
|
|
5815
5815
|
), D5 = ({
|
|
5816
5816
|
className: i,
|
|
5817
|
-
color: e =
|
|
5817
|
+
color: e = x.GREY_DARK_5,
|
|
5818
5818
|
height: t = 24,
|
|
5819
5819
|
width: s = 24,
|
|
5820
5820
|
onClick: n
|
|
@@ -5866,7 +5866,7 @@ const Zt = ({
|
|
|
5866
5866
|
}
|
|
5867
5867
|
), T5 = ({
|
|
5868
5868
|
className: i,
|
|
5869
|
-
color: e =
|
|
5869
|
+
color: e = x.GREY_DARK_5,
|
|
5870
5870
|
height: t = 24,
|
|
5871
5871
|
width: s = 24,
|
|
5872
5872
|
onClick: n
|
|
@@ -5903,7 +5903,7 @@ const Zt = ({
|
|
|
5903
5903
|
}
|
|
5904
5904
|
), G5 = ({
|
|
5905
5905
|
className: i,
|
|
5906
|
-
color: e =
|
|
5906
|
+
color: e = x.NOTIFICATION_WARNING_DARK,
|
|
5907
5907
|
height: t = 37,
|
|
5908
5908
|
width: s = 36,
|
|
5909
5909
|
onClick: n
|
|
@@ -5942,7 +5942,7 @@ const Zt = ({
|
|
|
5942
5942
|
}
|
|
5943
5943
|
), K5 = ({
|
|
5944
5944
|
className: i,
|
|
5945
|
-
color: e =
|
|
5945
|
+
color: e = x.GREY_DARK_5,
|
|
5946
5946
|
height: t = 24,
|
|
5947
5947
|
width: s = 24,
|
|
5948
5948
|
onClick: n
|
|
@@ -5968,7 +5968,7 @@ const Zt = ({
|
|
|
5968
5968
|
}
|
|
5969
5969
|
), P5 = ({
|
|
5970
5970
|
className: i,
|
|
5971
|
-
color: e =
|
|
5971
|
+
color: e = x.GREY_DARK_5,
|
|
5972
5972
|
height: t = 24,
|
|
5973
5973
|
width: s = 24,
|
|
5974
5974
|
onClick: n
|
|
@@ -6007,7 +6007,7 @@ const Zt = ({
|
|
|
6007
6007
|
}
|
|
6008
6008
|
), $5 = ({
|
|
6009
6009
|
className: i,
|
|
6010
|
-
color: e =
|
|
6010
|
+
color: e = x.GREY_DARK_5,
|
|
6011
6011
|
height: t = 24,
|
|
6012
6012
|
width: s = 24,
|
|
6013
6013
|
onClick: n
|
|
@@ -6044,9 +6044,9 @@ const Zt = ({
|
|
|
6044
6044
|
)
|
|
6045
6045
|
]
|
|
6046
6046
|
}
|
|
6047
|
-
),
|
|
6047
|
+
), F5 = ({
|
|
6048
6048
|
className: i,
|
|
6049
|
-
color: e =
|
|
6049
|
+
color: e = x.GREY_DARK_5,
|
|
6050
6050
|
height: t = 24,
|
|
6051
6051
|
width: s = 24,
|
|
6052
6052
|
onClick: n
|
|
@@ -6113,9 +6113,9 @@ const Zt = ({
|
|
|
6113
6113
|
)
|
|
6114
6114
|
]
|
|
6115
6115
|
}
|
|
6116
|
-
),
|
|
6116
|
+
), Y5 = ({
|
|
6117
6117
|
className: i,
|
|
6118
|
-
color: e =
|
|
6118
|
+
color: e = x.GREY_DARK_5,
|
|
6119
6119
|
height: t = 24,
|
|
6120
6120
|
width: s = 24,
|
|
6121
6121
|
onClick: n
|
|
@@ -6154,7 +6154,7 @@ const Zt = ({
|
|
|
6154
6154
|
}
|
|
6155
6155
|
), U5 = ({
|
|
6156
6156
|
className: i,
|
|
6157
|
-
color: e =
|
|
6157
|
+
color: e = x.GREY_DARK_5,
|
|
6158
6158
|
height: t = 24,
|
|
6159
6159
|
width: s = 24,
|
|
6160
6160
|
onClick: n
|
|
@@ -6211,7 +6211,7 @@ const Zt = ({
|
|
|
6211
6211
|
}
|
|
6212
6212
|
), z5 = ({
|
|
6213
6213
|
className: i,
|
|
6214
|
-
color: e =
|
|
6214
|
+
color: e = x.GREY_DARK_5,
|
|
6215
6215
|
height: t = 24,
|
|
6216
6216
|
width: s = 24,
|
|
6217
6217
|
onClick: n
|
|
@@ -6250,7 +6250,7 @@ const Zt = ({
|
|
|
6250
6250
|
}
|
|
6251
6251
|
), J5 = ({
|
|
6252
6252
|
className: i,
|
|
6253
|
-
color: e =
|
|
6253
|
+
color: e = x.GREY_DARK_5,
|
|
6254
6254
|
height: t = 24,
|
|
6255
6255
|
width: s = 24,
|
|
6256
6256
|
onClick: n
|
|
@@ -6299,7 +6299,7 @@ const Zt = ({
|
|
|
6299
6299
|
}
|
|
6300
6300
|
), q5 = ({
|
|
6301
6301
|
className: i,
|
|
6302
|
-
color: e =
|
|
6302
|
+
color: e = x.GREY_DARK_5,
|
|
6303
6303
|
height: t = 24,
|
|
6304
6304
|
width: s = 24,
|
|
6305
6305
|
onClick: n
|
|
@@ -6338,7 +6338,7 @@ const Zt = ({
|
|
|
6338
6338
|
}
|
|
6339
6339
|
), Q5 = ({
|
|
6340
6340
|
className: i,
|
|
6341
|
-
color: e =
|
|
6341
|
+
color: e = x.GREY_DARK_5,
|
|
6342
6342
|
height: t = 24,
|
|
6343
6343
|
width: s = 24,
|
|
6344
6344
|
onClick: n
|
|
@@ -6365,7 +6365,7 @@ const Zt = ({
|
|
|
6365
6365
|
}
|
|
6366
6366
|
), X5 = ({
|
|
6367
6367
|
className: i,
|
|
6368
|
-
color: e =
|
|
6368
|
+
color: e = x.GREY_DARK_5,
|
|
6369
6369
|
height: t = 24,
|
|
6370
6370
|
width: s = 24,
|
|
6371
6371
|
onClick: n
|
|
@@ -6403,7 +6403,7 @@ const Zt = ({
|
|
|
6403
6403
|
}
|
|
6404
6404
|
), e3 = ({
|
|
6405
6405
|
className: i,
|
|
6406
|
-
color: e =
|
|
6406
|
+
color: e = x.GREY_DARK_5,
|
|
6407
6407
|
height: t = 24,
|
|
6408
6408
|
width: s = 24,
|
|
6409
6409
|
onClick: n
|
|
@@ -6424,7 +6424,7 @@ const Zt = ({
|
|
|
6424
6424
|
}
|
|
6425
6425
|
), t3 = ({
|
|
6426
6426
|
className: i,
|
|
6427
|
-
color: e =
|
|
6427
|
+
color: e = x.GREY_DARK_5,
|
|
6428
6428
|
height: t = 24,
|
|
6429
6429
|
width: s = 24,
|
|
6430
6430
|
onClick: n
|
|
@@ -6463,7 +6463,7 @@ const Zt = ({
|
|
|
6463
6463
|
}
|
|
6464
6464
|
), i3 = ({
|
|
6465
6465
|
className: i,
|
|
6466
|
-
color: e =
|
|
6466
|
+
color: e = x.GREY_DARK_5,
|
|
6467
6467
|
height: t = 24,
|
|
6468
6468
|
width: s = 24,
|
|
6469
6469
|
onClick: n
|
|
@@ -6502,7 +6502,7 @@ const Zt = ({
|
|
|
6502
6502
|
}
|
|
6503
6503
|
), s3 = ({
|
|
6504
6504
|
className: i,
|
|
6505
|
-
color: e =
|
|
6505
|
+
color: e = x.GREY_DARK_5,
|
|
6506
6506
|
height: t = 24,
|
|
6507
6507
|
width: s = 24,
|
|
6508
6508
|
onClick: n
|
|
@@ -6541,7 +6541,7 @@ const Zt = ({
|
|
|
6541
6541
|
}
|
|
6542
6542
|
), n3 = ({
|
|
6543
6543
|
className: i,
|
|
6544
|
-
color: e =
|
|
6544
|
+
color: e = x.GREY_DARK_2,
|
|
6545
6545
|
height: t = 16,
|
|
6546
6546
|
width: s = 16,
|
|
6547
6547
|
onClick: n
|
|
@@ -6567,7 +6567,7 @@ const Zt = ({
|
|
|
6567
6567
|
}
|
|
6568
6568
|
), r3 = ({
|
|
6569
6569
|
className: i,
|
|
6570
|
-
color: e =
|
|
6570
|
+
color: e = x.GREY_DARK_5,
|
|
6571
6571
|
height: t = 20,
|
|
6572
6572
|
width: s = 20,
|
|
6573
6573
|
onClick: n
|
|
@@ -6596,7 +6596,7 @@ const Zt = ({
|
|
|
6596
6596
|
}
|
|
6597
6597
|
), o3 = ({
|
|
6598
6598
|
className: i,
|
|
6599
|
-
color: e =
|
|
6599
|
+
color: e = x.GREY_DARK_5,
|
|
6600
6600
|
height: t = 20,
|
|
6601
6601
|
width: s = 20,
|
|
6602
6602
|
onClick: n
|
|
@@ -6625,7 +6625,7 @@ const Zt = ({
|
|
|
6625
6625
|
}
|
|
6626
6626
|
), l3 = ({
|
|
6627
6627
|
className: i,
|
|
6628
|
-
color: e =
|
|
6628
|
+
color: e = x.GREY_DARK_5,
|
|
6629
6629
|
height: t = 20,
|
|
6630
6630
|
width: s = 20,
|
|
6631
6631
|
onClick: n
|
|
@@ -6640,7 +6640,7 @@ const Zt = ({
|
|
|
6640
6640
|
fill: "none",
|
|
6641
6641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6642
6642
|
children: [
|
|
6643
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
6643
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: x.GREY_LIGHT_2 }),
|
|
6644
6644
|
/* @__PURE__ */ r(
|
|
6645
6645
|
"path",
|
|
6646
6646
|
{
|
|
@@ -6654,7 +6654,7 @@ const Zt = ({
|
|
|
6654
6654
|
}
|
|
6655
6655
|
), a3 = ({
|
|
6656
6656
|
className: i,
|
|
6657
|
-
color: e =
|
|
6657
|
+
color: e = x.GREY_DARK_5,
|
|
6658
6658
|
height: t = 20,
|
|
6659
6659
|
width: s = 20,
|
|
6660
6660
|
onClick: n
|
|
@@ -6669,7 +6669,7 @@ const Zt = ({
|
|
|
6669
6669
|
fill: "none",
|
|
6670
6670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6671
6671
|
children: [
|
|
6672
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
6672
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: x.GREY_LIGHT_2 }),
|
|
6673
6673
|
/* @__PURE__ */ r(
|
|
6674
6674
|
"path",
|
|
6675
6675
|
{
|
|
@@ -6865,7 +6865,7 @@ const Zt = ({
|
|
|
6865
6865
|
), u3 = ({
|
|
6866
6866
|
width: i = 24,
|
|
6867
6867
|
height: e = 24,
|
|
6868
|
-
color: t =
|
|
6868
|
+
color: t = x.GREY_DARK_2,
|
|
6869
6869
|
className: s,
|
|
6870
6870
|
onClick: n
|
|
6871
6871
|
}) => /* @__PURE__ */ C(
|
|
@@ -6904,7 +6904,7 @@ const Zt = ({
|
|
|
6904
6904
|
), p3 = ({
|
|
6905
6905
|
width: i = 24,
|
|
6906
6906
|
height: e = 24,
|
|
6907
|
-
color: t =
|
|
6907
|
+
color: t = x.GREY_DARK_2,
|
|
6908
6908
|
className: s,
|
|
6909
6909
|
onClick: n
|
|
6910
6910
|
}) => /* @__PURE__ */ r(
|
|
@@ -6931,7 +6931,7 @@ const Zt = ({
|
|
|
6931
6931
|
), f3 = ({
|
|
6932
6932
|
width: i = 24,
|
|
6933
6933
|
height: e = 24,
|
|
6934
|
-
color: t =
|
|
6934
|
+
color: t = x.GREY_DARK_2,
|
|
6935
6935
|
className: s,
|
|
6936
6936
|
onClick: n
|
|
6937
6937
|
}) => /* @__PURE__ */ C(
|
|
@@ -6971,7 +6971,7 @@ const Zt = ({
|
|
|
6971
6971
|
), w3 = ({
|
|
6972
6972
|
width: i = 24,
|
|
6973
6973
|
height: e = 24,
|
|
6974
|
-
color: t =
|
|
6974
|
+
color: t = x.GREY_DARK_2,
|
|
6975
6975
|
className: s,
|
|
6976
6976
|
onClick: n
|
|
6977
6977
|
}) => /* @__PURE__ */ r(
|
|
@@ -6998,7 +6998,7 @@ const Zt = ({
|
|
|
6998
6998
|
), m3 = ({
|
|
6999
6999
|
width: i = 24,
|
|
7000
7000
|
height: e = 24,
|
|
7001
|
-
color: t =
|
|
7001
|
+
color: t = x.GREY_DARK_2,
|
|
7002
7002
|
className: s,
|
|
7003
7003
|
onClick: n
|
|
7004
7004
|
}) => /* @__PURE__ */ r(
|
|
@@ -7031,14 +7031,14 @@ const Zt = ({
|
|
|
7031
7031
|
disabled: l = !1,
|
|
7032
7032
|
onClick: c
|
|
7033
7033
|
}) => {
|
|
7034
|
-
const [o, d] =
|
|
7035
|
-
return
|
|
7034
|
+
const [o, d] = A(n), { theme: g } = o1(de), a = l ? g && g === "dark" ? x.GREY_LIGHT_4 : x.GREY_DARK_1 : s, h = l ? void 0 : c;
|
|
7035
|
+
return T(() => {
|
|
7036
7036
|
if (n) {
|
|
7037
7037
|
h && !l && d(`${n} clickable`);
|
|
7038
7038
|
return;
|
|
7039
7039
|
}
|
|
7040
7040
|
h && !l && d("clickable");
|
|
7041
|
-
}, [h, n, l]), /* @__PURE__ */ r(
|
|
7041
|
+
}, [h, n, l]), /* @__PURE__ */ r(s1, { children: (() => {
|
|
7042
7042
|
switch (i) {
|
|
7043
7043
|
case "nextIcon":
|
|
7044
7044
|
return V5({ width: e, height: t, color: a, className: o, onClick: h });
|
|
@@ -7063,9 +7063,9 @@ const Zt = ({
|
|
|
7063
7063
|
case "list":
|
|
7064
7064
|
return $t({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7065
7065
|
case "dragAndDrop":
|
|
7066
|
-
return Yt({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7067
|
-
case "filter":
|
|
7068
7066
|
return Ft({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7067
|
+
case "filter":
|
|
7068
|
+
return Yt({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7069
7069
|
case "attention":
|
|
7070
7070
|
return Ut({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7071
7071
|
case "plus":
|
|
@@ -7237,11 +7237,11 @@ const Zt = ({
|
|
|
7237
7237
|
case "bell":
|
|
7238
7238
|
return P5({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7239
7239
|
case "contract":
|
|
7240
|
-
return
|
|
7240
|
+
return F5({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7241
7241
|
case "trash2":
|
|
7242
7242
|
return $5({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7243
7243
|
case "manager":
|
|
7244
|
-
return
|
|
7244
|
+
return Y5({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7245
7245
|
case "resourceManager":
|
|
7246
7246
|
return U5({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7247
7247
|
case "settings2":
|
|
@@ -7293,17 +7293,17 @@ const Zt = ({
|
|
|
7293
7293
|
case "docs":
|
|
7294
7294
|
return m3({ width: e, height: t, color: a, className: o, onClick: h });
|
|
7295
7295
|
default:
|
|
7296
|
-
return /* @__PURE__ */ r(
|
|
7296
|
+
return /* @__PURE__ */ r(s1, { children: "No Icon provided" });
|
|
7297
7297
|
}
|
|
7298
7298
|
})() });
|
|
7299
7299
|
};
|
|
7300
|
-
var
|
|
7301
|
-
const L3 =
|
|
7300
|
+
var w1 = /* @__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))(w1 || {});
|
|
7301
|
+
const L3 = d1({
|
|
7302
7302
|
locale: "en",
|
|
7303
7303
|
theme: "light"
|
|
7304
7304
|
});
|
|
7305
7305
|
L3.Provider;
|
|
7306
|
-
const
|
|
7306
|
+
const ge = ({
|
|
7307
7307
|
children: i,
|
|
7308
7308
|
width: e,
|
|
7309
7309
|
size: t = "small",
|
|
@@ -7322,7 +7322,7 @@ const ce = ({
|
|
|
7322
7322
|
k3,
|
|
7323
7323
|
{
|
|
7324
7324
|
name: "errorSmall",
|
|
7325
|
-
color: l ?
|
|
7325
|
+
color: l ? w1.GREY_DARK_1 : w1.GREY_DARK_2,
|
|
7326
7326
|
width: c,
|
|
7327
7327
|
height: c,
|
|
7328
7328
|
onClick: o
|
|
@@ -7335,13 +7335,51 @@ const ce = ({
|
|
|
7335
7335
|
Bt,
|
|
7336
7336
|
{
|
|
7337
7337
|
variant: t === "small" ? "body4" : "body2",
|
|
7338
|
-
color: l ?
|
|
7338
|
+
color: l ? w1.GREY_DARK_2 : w1.GREY_DARK_5,
|
|
7339
7339
|
children: i
|
|
7340
7340
|
}
|
|
7341
7341
|
) : i
|
|
7342
7342
|
}
|
|
7343
7343
|
);
|
|
7344
|
-
}, v3 =
|
|
7344
|
+
}, { Title: v3, Text: N3 } = le, x3 = {
|
|
7345
|
+
h1: 1,
|
|
7346
|
+
h2: 2,
|
|
7347
|
+
h3: 3,
|
|
7348
|
+
h4: 4
|
|
7349
|
+
}, M3 = L1(
|
|
7350
|
+
({
|
|
7351
|
+
align: i = "inherit",
|
|
7352
|
+
variant: e = "body1",
|
|
7353
|
+
color: t,
|
|
7354
|
+
children: s,
|
|
7355
|
+
onClick: n,
|
|
7356
|
+
collapsed: l,
|
|
7357
|
+
whiteSpace: c = "normal"
|
|
7358
|
+
}, o) => {
|
|
7359
|
+
const d = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
7360
|
+
let g = `snmt-typography snmt-typography-${e}`;
|
|
7361
|
+
return i && i !== "inherit" && (g += ` snmt-typography-align-${i}`), l && (g += " collapsed"), d ? /* @__PURE__ */ r(
|
|
7362
|
+
v3,
|
|
7363
|
+
{
|
|
7364
|
+
className: g,
|
|
7365
|
+
style: { color: t, whiteSpace: c },
|
|
7366
|
+
onClick: n,
|
|
7367
|
+
level: x3[e],
|
|
7368
|
+
ref: o,
|
|
7369
|
+
children: s
|
|
7370
|
+
}
|
|
7371
|
+
) : /* @__PURE__ */ r(
|
|
7372
|
+
N3,
|
|
7373
|
+
{
|
|
7374
|
+
className: g,
|
|
7375
|
+
style: { color: t, whiteSpace: c },
|
|
7376
|
+
onClick: n,
|
|
7377
|
+
ref: o,
|
|
7378
|
+
children: s
|
|
7379
|
+
}
|
|
7380
|
+
);
|
|
7381
|
+
}
|
|
7382
|
+
), R3 = ({
|
|
7345
7383
|
children: i,
|
|
7346
7384
|
content: e,
|
|
7347
7385
|
isOpen: t,
|
|
@@ -7349,7 +7387,7 @@ const ce = ({
|
|
|
7349
7387
|
placement: n = "topRight",
|
|
7350
7388
|
noPadding: l = !1
|
|
7351
7389
|
}) => {
|
|
7352
|
-
const [c, o] =
|
|
7390
|
+
const [c, o] = A(!1);
|
|
7353
7391
|
return /* @__PURE__ */ r(
|
|
7354
7392
|
ye,
|
|
7355
7393
|
{
|
|
@@ -7366,7 +7404,7 @@ const ce = ({
|
|
|
7366
7404
|
}
|
|
7367
7405
|
);
|
|
7368
7406
|
};
|
|
7369
|
-
var
|
|
7407
|
+
var y3 = { exports: {} };
|
|
7370
7408
|
(function(i, e) {
|
|
7371
7409
|
(function(t, s) {
|
|
7372
7410
|
i.exports = s();
|
|
@@ -7376,8 +7414,8 @@ var N3 = { exports: {} };
|
|
|
7376
7414
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
7377
7415
|
} };
|
|
7378
7416
|
});
|
|
7379
|
-
})(
|
|
7380
|
-
const
|
|
7417
|
+
})(y3);
|
|
7418
|
+
const b3 = ({
|
|
7381
7419
|
values: i,
|
|
7382
7420
|
onTagClose: e,
|
|
7383
7421
|
maxWidth: t,
|
|
@@ -7386,22 +7424,22 @@ const x3 = ({
|
|
|
7386
7424
|
options: l,
|
|
7387
7425
|
extraOptions: c
|
|
7388
7426
|
}) => {
|
|
7389
|
-
const { locale: o } =
|
|
7390
|
-
if (
|
|
7427
|
+
const { locale: o } = o1(Z1), { t: d } = Ue("common", { lng: o }), [g, a] = A(!1);
|
|
7428
|
+
if (T(() => {
|
|
7391
7429
|
i.length || a(!1);
|
|
7392
7430
|
}, [i]), !i.length)
|
|
7393
7431
|
return null;
|
|
7394
7432
|
const h = (u) => {
|
|
7395
|
-
var p,
|
|
7396
|
-
return ((p = l == null ? void 0 : l.find((R) => R.value === u)) == null ? void 0 : p.label) || ((
|
|
7433
|
+
var p, k;
|
|
7434
|
+
return ((p = l == null ? void 0 : l.find((R) => R.value === u)) == null ? void 0 : p.label) || ((k = c == null ? void 0 : c.find((R) => R.value === u)) == null ? void 0 : k.label) || u;
|
|
7397
7435
|
};
|
|
7398
7436
|
return /* @__PURE__ */ C(
|
|
7399
|
-
|
|
7437
|
+
R3,
|
|
7400
7438
|
{
|
|
7401
7439
|
content: (
|
|
7402
7440
|
// 90: paddings + margins + gaps and so on
|
|
7403
|
-
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(
|
|
7404
|
-
|
|
7441
|
+
/* @__PURE__ */ r("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ r(f1, { gap: 6, flexWrap: "wrap", children: i.map(({ value: u }) => /* @__PURE__ */ r(
|
|
7442
|
+
ge,
|
|
7405
7443
|
{
|
|
7406
7444
|
onClose: () => e(u),
|
|
7407
7445
|
closable: s,
|
|
@@ -7421,7 +7459,7 @@ const x3 = ({
|
|
|
7421
7459
|
]
|
|
7422
7460
|
}
|
|
7423
7461
|
);
|
|
7424
|
-
},
|
|
7462
|
+
}, G1 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
7425
7463
|
const t = `no-repeat linear-gradient(${e}
|
|
7426
7464
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
7427
7465
|
width: i,
|
|
@@ -7429,7 +7467,7 @@ const x3 = ({
|
|
|
7429
7467
|
backgroundSize: "20% calc(200% + 20px)"
|
|
7430
7468
|
};
|
|
7431
7469
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
7432
|
-
},
|
|
7470
|
+
}, K1 = L1(
|
|
7433
7471
|
({
|
|
7434
7472
|
value: i,
|
|
7435
7473
|
onChange: e,
|
|
@@ -7445,39 +7483,40 @@ const x3 = ({
|
|
|
7445
7483
|
onSearchChange: h,
|
|
7446
7484
|
onDropdownVisibleChange: u,
|
|
7447
7485
|
onScrollToEnd: p,
|
|
7448
|
-
onPopupScroll:
|
|
7486
|
+
onPopupScroll: k,
|
|
7449
7487
|
id: R,
|
|
7450
|
-
extraOptions:
|
|
7451
|
-
dropdownRender:
|
|
7488
|
+
extraOptions: L,
|
|
7489
|
+
dropdownRender: H,
|
|
7452
7490
|
optionRender: b,
|
|
7453
7491
|
isLoading: _,
|
|
7454
|
-
readOnly: f
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7492
|
+
readOnly: f,
|
|
7493
|
+
error: m
|
|
7494
|
+
}, y) => {
|
|
7495
|
+
const [v, O] = A(!1), [I, W] = A(!1), [j, K] = A(!0), [V, D] = A(i), B = Q(null);
|
|
7496
|
+
T(() => {
|
|
7497
|
+
D(i);
|
|
7459
7498
|
}, [i]);
|
|
7460
|
-
const
|
|
7461
|
-
|
|
7462
|
-
},
|
|
7463
|
-
var
|
|
7464
|
-
return !!((
|
|
7465
|
-
},
|
|
7466
|
-
|
|
7467
|
-
},
|
|
7468
|
-
|
|
7469
|
-
}, $ =
|
|
7499
|
+
const Y = (w) => {
|
|
7500
|
+
O(w), u && u(w);
|
|
7501
|
+
}, z = (w, E) => {
|
|
7502
|
+
var F;
|
|
7503
|
+
return !!((F = E == null ? void 0 : E.label) != null && F.toString().toLowerCase().includes(w.toLowerCase()));
|
|
7504
|
+
}, Z = () => {
|
|
7505
|
+
W(!0);
|
|
7506
|
+
}, J = () => {
|
|
7507
|
+
W(!1);
|
|
7508
|
+
}, $ = G(
|
|
7470
7509
|
(w) => {
|
|
7471
|
-
if (
|
|
7472
|
-
const
|
|
7473
|
-
e == null || e(
|
|
7510
|
+
if (D(w), s) {
|
|
7511
|
+
const F = w;
|
|
7512
|
+
e == null || e(F);
|
|
7474
7513
|
return;
|
|
7475
7514
|
}
|
|
7476
7515
|
const E = w;
|
|
7477
7516
|
e == null || e(E);
|
|
7478
7517
|
},
|
|
7479
7518
|
[s, e]
|
|
7480
|
-
),
|
|
7519
|
+
), t1 = G(() => {
|
|
7481
7520
|
if (!f) {
|
|
7482
7521
|
if (s) {
|
|
7483
7522
|
$([]);
|
|
@@ -7485,124 +7524,123 @@ const x3 = ({
|
|
|
7485
7524
|
}
|
|
7486
7525
|
$("");
|
|
7487
7526
|
}
|
|
7488
|
-
}, [$, s, f]),
|
|
7527
|
+
}, [$, s, f]), i1 = G(
|
|
7489
7528
|
(w) => {
|
|
7490
|
-
const E =
|
|
7491
|
-
$(E),
|
|
7529
|
+
const E = V.filter((F) => F !== w);
|
|
7530
|
+
$(E), D(E);
|
|
7492
7531
|
},
|
|
7493
|
-
[$,
|
|
7494
|
-
),
|
|
7495
|
-
(w) => (
|
|
7532
|
+
[$, V]
|
|
7533
|
+
), g1 = G(
|
|
7534
|
+
(w) => (V == null ? void 0 : V.indexOf(w)) === 0 ? (
|
|
7496
7535
|
// if the search input is empty
|
|
7497
7536
|
// then display the placeholder, else do not display it
|
|
7498
|
-
/* @__PURE__ */ r("span", { className: "custom-placeholder", children:
|
|
7499
|
-
) : /* @__PURE__ */ r(
|
|
7500
|
-
[
|
|
7501
|
-
),
|
|
7537
|
+
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: j ? t : "" })
|
|
7538
|
+
) : /* @__PURE__ */ r(s1, {}),
|
|
7539
|
+
[j, V, t]
|
|
7540
|
+
), v1 = (w) => {
|
|
7502
7541
|
w.preventDefault(), w.stopPropagation();
|
|
7503
|
-
},
|
|
7542
|
+
}, N1 = async (w) => {
|
|
7504
7543
|
const { target: E } = w;
|
|
7505
|
-
E.scrollTop + E.offsetHeight >= E.scrollHeight - a && (p == null || p(!0)),
|
|
7506
|
-
},
|
|
7544
|
+
E.scrollTop + E.offsetHeight >= E.scrollHeight - a && (p == null || p(!0)), k && await k(w);
|
|
7545
|
+
}, l1 = G(
|
|
7507
7546
|
(w) => {
|
|
7508
|
-
var E,
|
|
7509
|
-
return ((E = l.find((
|
|
7510
|
-
(
|
|
7511
|
-
)) == null ? void 0 :
|
|
7547
|
+
var E, F;
|
|
7548
|
+
return ((E = l.find((C1) => C1.value === w)) == null ? void 0 : E.label) || ((F = L == null ? void 0 : L.find(
|
|
7549
|
+
(C1) => C1.value === w
|
|
7550
|
+
)) == null ? void 0 : F.label) || w;
|
|
7512
7551
|
},
|
|
7513
|
-
[
|
|
7514
|
-
),
|
|
7552
|
+
[L, l]
|
|
7553
|
+
), S = G(
|
|
7515
7554
|
(w) => {
|
|
7516
7555
|
var E;
|
|
7517
7556
|
return /* @__PURE__ */ r(
|
|
7518
|
-
|
|
7557
|
+
b3,
|
|
7519
7558
|
{
|
|
7520
7559
|
values: w,
|
|
7521
|
-
onTagClose:
|
|
7522
|
-
maxWidth: ((E =
|
|
7560
|
+
onTagClose: i1,
|
|
7561
|
+
maxWidth: ((E = B.current) == null ? void 0 : E.clientWidth) || 0,
|
|
7523
7562
|
disabled: o,
|
|
7524
7563
|
closable: !f,
|
|
7525
7564
|
options: l,
|
|
7526
|
-
extraOptions:
|
|
7565
|
+
extraOptions: L
|
|
7527
7566
|
}
|
|
7528
7567
|
);
|
|
7529
7568
|
},
|
|
7530
|
-
[o,
|
|
7531
|
-
),
|
|
7532
|
-
({ label: w, value: E, mode:
|
|
7533
|
-
[o,
|
|
7534
|
-
);
|
|
7569
|
+
[o, L, i1, l, f]
|
|
7570
|
+
), U = G(
|
|
7571
|
+
({ label: w, value: E, mode: F }) => F === "filter" ? g1(E) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(ge, { onClose: () => i1(E), disabled: o, children: typeof w == "object" ? w : l1(E) }) }),
|
|
7572
|
+
[o, l1, i1, g1]
|
|
7573
|
+
), X = Array.isArray(V) && V.length > 0 || !!V && typeof V == "string" && V.trim() !== "";
|
|
7535
7574
|
return /* @__PURE__ */ C(
|
|
7536
7575
|
"div",
|
|
7537
7576
|
{
|
|
7538
|
-
className: `snmt-select ${I ? "snmt-select-focused" : ""}
|
|
7539
|
-
|
|
7540
|
-
ref:
|
|
7577
|
+
className: `snmt-select-1-15-6 ${I ? "snmt-select-focused" : ""}
|
|
7578
|
+
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
7579
|
+
ref: B,
|
|
7541
7580
|
style: { width: c },
|
|
7542
7581
|
children: [
|
|
7543
7582
|
/* @__PURE__ */ r(
|
|
7544
|
-
|
|
7583
|
+
ve,
|
|
7545
7584
|
{
|
|
7546
7585
|
className: "snmt-select-blank",
|
|
7547
7586
|
popupClassName: f ? "dropdown-read-only" : "",
|
|
7548
7587
|
id: R,
|
|
7549
|
-
ref:
|
|
7588
|
+
ref: y,
|
|
7550
7589
|
showSearch: !!n,
|
|
7551
|
-
filterOption: n &&
|
|
7552
|
-
onDropdownVisibleChange:
|
|
7553
|
-
placeholder: t ? d ? `${t}*` : t : void 0,
|
|
7590
|
+
filterOption: n && z,
|
|
7591
|
+
onDropdownVisibleChange: Y,
|
|
7554
7592
|
disabled: o,
|
|
7555
|
-
value:
|
|
7556
|
-
labelRender: (w) =>
|
|
7593
|
+
value: V || void 0,
|
|
7594
|
+
labelRender: (w) => l1(w.value),
|
|
7557
7595
|
mode: s === "filter" ? "multiple" : s,
|
|
7558
7596
|
onChange: $,
|
|
7559
|
-
onFocus:
|
|
7560
|
-
onBlur:
|
|
7597
|
+
onFocus: Z,
|
|
7598
|
+
onBlur: J,
|
|
7561
7599
|
onSearch: (w) => {
|
|
7562
|
-
|
|
7600
|
+
K(!w), h && h(w);
|
|
7563
7601
|
},
|
|
7564
|
-
onSelect: () =>
|
|
7565
|
-
onDeselect: () =>
|
|
7566
|
-
tagRender: (w) =>
|
|
7602
|
+
onSelect: () => K(!0),
|
|
7603
|
+
onDeselect: () => K(!0),
|
|
7604
|
+
tagRender: (w) => U({ ...w, mode: s }),
|
|
7567
7605
|
maxTagCount: "responsive",
|
|
7568
|
-
maxTagPlaceholder:
|
|
7569
|
-
onPopupScroll:
|
|
7570
|
-
prefix: _ && /* @__PURE__ */ r(
|
|
7571
|
-
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(
|
|
7572
|
-
|
|
7573
|
-
|
|
7606
|
+
maxTagPlaceholder: S,
|
|
7607
|
+
onPopupScroll: N1,
|
|
7608
|
+
prefix: _ && /* @__PURE__ */ r(G1, { size: 15 }),
|
|
7609
|
+
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ C(s1, { children: [
|
|
7610
|
+
V && !!V.length && (s || g) && /* @__PURE__ */ r("div", { onClick: t1, children: /* @__PURE__ */ r(
|
|
7611
|
+
u1,
|
|
7574
7612
|
{
|
|
7575
7613
|
name: "cancel",
|
|
7576
7614
|
color: o ? e1.GREY_DARK_1 : e1.GREY_DARK_5
|
|
7577
7615
|
}
|
|
7578
7616
|
) }),
|
|
7579
7617
|
/* @__PURE__ */ r(
|
|
7580
|
-
|
|
7618
|
+
u1,
|
|
7581
7619
|
{
|
|
7582
7620
|
name: "selectArrowIcon",
|
|
7583
7621
|
color: o ? e1.GREY_DARK_1 : e1.GREY_DARK_5,
|
|
7584
|
-
className:
|
|
7585
|
-
onClick: () =>
|
|
7622
|
+
className: v ? "select-arrow-rotated" : "select-arrow",
|
|
7623
|
+
onClick: () => O(!v)
|
|
7586
7624
|
}
|
|
7587
7625
|
)
|
|
7588
7626
|
] }) }),
|
|
7589
|
-
removeIcon: /* @__PURE__ */ r(
|
|
7627
|
+
removeIcon: /* @__PURE__ */ r(u1, { name: "errorSmall", color: e1.GREY_DARK_2 }),
|
|
7590
7628
|
options: l,
|
|
7591
|
-
optionRender: (w) => b ? b(w.data) : /* @__PURE__ */ C(
|
|
7592
|
-
/* @__PURE__ */ C(
|
|
7629
|
+
optionRender: (w) => b ? b(w.data) : /* @__PURE__ */ C(f1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
7630
|
+
/* @__PURE__ */ C(f1, { alignItems: "center", gap: 12, children: [
|
|
7593
7631
|
s && /* @__PURE__ */ r(
|
|
7594
7632
|
Je,
|
|
7595
7633
|
{
|
|
7596
|
-
checked: !!(
|
|
7634
|
+
checked: !!(V != null && V.includes(w.value))
|
|
7597
7635
|
}
|
|
7598
7636
|
),
|
|
7599
|
-
/* @__PURE__ */ C(
|
|
7637
|
+
/* @__PURE__ */ C(f1, { alignItems: "center", gap: 8, children: [
|
|
7600
7638
|
w.data.image && /* @__PURE__ */ r(ze, { src: w.data.image, size: 20 }),
|
|
7601
7639
|
/* @__PURE__ */ r("span", { children: w.label })
|
|
7602
7640
|
] })
|
|
7603
7641
|
] }),
|
|
7604
|
-
!s &&
|
|
7605
|
-
|
|
7642
|
+
!s && V === w.value && /* @__PURE__ */ r(
|
|
7643
|
+
u1,
|
|
7606
7644
|
{
|
|
7607
7645
|
name: "ok",
|
|
7608
7646
|
color: e1.BLUE_PRIMARY,
|
|
@@ -7612,29 +7650,39 @@ const x3 = ({
|
|
|
7612
7650
|
)
|
|
7613
7651
|
] }),
|
|
7614
7652
|
dropdownRender: (w) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
7615
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children:
|
|
7616
|
-
_ && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(
|
|
7653
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: H ? H(w) : w }),
|
|
7654
|
+
_ && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(G1, { size: 28 }) })
|
|
7617
7655
|
] })
|
|
7618
7656
|
}
|
|
7619
7657
|
),
|
|
7620
|
-
/* @__PURE__ */
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7658
|
+
t && /* @__PURE__ */ C(s1, { children: [
|
|
7659
|
+
/* @__PURE__ */ r(
|
|
7660
|
+
"label",
|
|
7661
|
+
{
|
|
7662
|
+
className: `${I || X ? "label-floating" : ""} ${o ? "label-disabled" : ""} ${I ? "label-focused" : ""} ${_ ? "label-loading" : ""} ${m ? "label-error" : ""}`,
|
|
7663
|
+
children: d ? `${t}*` : t
|
|
7664
|
+
}
|
|
7665
|
+
),
|
|
7666
|
+
/* @__PURE__ */ r(
|
|
7667
|
+
"fieldset",
|
|
7668
|
+
{
|
|
7669
|
+
className: `${I ? "fieldset-focused" : ""} ${o ? "fieldset-disabled" : ""} ${X ? "fieldset-filled" : ""} ${m ? "fieldset-error" : ""}`,
|
|
7670
|
+
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: d ? `${t}*` : t }) })
|
|
7671
|
+
}
|
|
7672
|
+
)
|
|
7673
|
+
] }),
|
|
7674
|
+
m && /* @__PURE__ */ C(f1, { justifyContent: "flex-start", gap: 6, children: [
|
|
7675
|
+
/* @__PURE__ */ r(u1, { name: "attention", color: e1.NOTIFICATION_ERROR_DARK }),
|
|
7676
|
+
typeof m == "string" ? /* @__PURE__ */ r(M3, { color: e1.NOTIFICATION_ERROR_DARK, variant: "body4", children: m }) : m
|
|
7677
|
+
] })
|
|
7630
7678
|
]
|
|
7631
7679
|
}
|
|
7632
7680
|
);
|
|
7633
7681
|
}
|
|
7634
7682
|
);
|
|
7635
|
-
function
|
|
7636
|
-
const t =
|
|
7637
|
-
return
|
|
7683
|
+
function _3(i, e = 500) {
|
|
7684
|
+
const t = Q();
|
|
7685
|
+
return T(() => () => {
|
|
7638
7686
|
t.current && clearTimeout(t.current);
|
|
7639
7687
|
}, []), (...s) => {
|
|
7640
7688
|
const n = setTimeout(() => {
|
|
@@ -7643,15 +7691,15 @@ function M3(i, e = 500) {
|
|
|
7643
7691
|
clearTimeout(t.current), t.current = n;
|
|
7644
7692
|
};
|
|
7645
7693
|
}
|
|
7646
|
-
function
|
|
7647
|
-
const e =
|
|
7648
|
-
return
|
|
7694
|
+
function P1(i) {
|
|
7695
|
+
const e = Q(i);
|
|
7696
|
+
return T(() => {
|
|
7649
7697
|
e.current = i;
|
|
7650
7698
|
}, [i]), e.current;
|
|
7651
7699
|
}
|
|
7652
|
-
const
|
|
7700
|
+
const E1 = 100, a1 = {
|
|
7653
7701
|
offset: 0
|
|
7654
|
-
},
|
|
7702
|
+
}, $1 = L1(
|
|
7655
7703
|
({
|
|
7656
7704
|
loadOptions: i,
|
|
7657
7705
|
width: e,
|
|
@@ -7667,145 +7715,145 @@ const _1 = 100, r1 = {
|
|
|
7667
7715
|
extraOptions: h,
|
|
7668
7716
|
onDropdownVisibleChange: u,
|
|
7669
7717
|
optionRender: p,
|
|
7670
|
-
dropdownRender:
|
|
7718
|
+
dropdownRender: k,
|
|
7671
7719
|
readOnly: R,
|
|
7672
|
-
clearable:
|
|
7673
|
-
required:
|
|
7720
|
+
clearable: L,
|
|
7721
|
+
required: H = !1
|
|
7674
7722
|
}, b) => {
|
|
7675
|
-
const [_, f] =
|
|
7723
|
+
const [_, f] = A(), [m, y] = A(a1), [v, O] = A(!1), [I, W] = A(), [j, K] = A(!1), [V, D] = A(
|
|
7676
7724
|
h ?? []
|
|
7677
|
-
),
|
|
7725
|
+
), B = P1(m.offset), Y = P1(I), [z, Z] = A(!1), J = Q(!1), $ = G(
|
|
7678
7726
|
async ({
|
|
7679
|
-
limit: S =
|
|
7680
|
-
offset:
|
|
7681
|
-
search:
|
|
7727
|
+
limit: S = E1,
|
|
7728
|
+
offset: U,
|
|
7729
|
+
search: X
|
|
7682
7730
|
}) => {
|
|
7683
|
-
|
|
7731
|
+
O(!0);
|
|
7684
7732
|
try {
|
|
7685
|
-
const
|
|
7733
|
+
const w = await i({
|
|
7686
7734
|
limit: S,
|
|
7687
|
-
offset:
|
|
7688
|
-
search:
|
|
7735
|
+
offset: U,
|
|
7736
|
+
search: X
|
|
7689
7737
|
});
|
|
7690
7738
|
f(
|
|
7691
|
-
(
|
|
7692
|
-
), y((
|
|
7693
|
-
...
|
|
7694
|
-
count:
|
|
7739
|
+
(E) => U === 0 ? w.options : [...E ?? [], ...w.options]
|
|
7740
|
+
), y((E) => ({
|
|
7741
|
+
...E,
|
|
7742
|
+
count: w.count
|
|
7695
7743
|
}));
|
|
7696
|
-
} catch (
|
|
7697
|
-
return console.error("AsyncSelect. fetchOptions error",
|
|
7744
|
+
} catch (w) {
|
|
7745
|
+
return console.error("AsyncSelect. fetchOptions error", w), [];
|
|
7698
7746
|
} finally {
|
|
7699
|
-
|
|
7747
|
+
O(!1);
|
|
7700
7748
|
}
|
|
7701
7749
|
},
|
|
7702
7750
|
[i]
|
|
7703
|
-
),
|
|
7704
|
-
|
|
7705
|
-
}),
|
|
7706
|
-
(S) =>
|
|
7707
|
-
[
|
|
7708
|
-
),
|
|
7751
|
+
), t1 = _3((S) => {
|
|
7752
|
+
W(S), S || y(a1);
|
|
7753
|
+
}), i1 = G(
|
|
7754
|
+
(S) => t1(S),
|
|
7755
|
+
[t1]
|
|
7756
|
+
), g1 = G(
|
|
7709
7757
|
async (S) => {
|
|
7710
|
-
|
|
7711
|
-
...
|
|
7712
|
-
offset:
|
|
7758
|
+
v || S && m.count && m.count > ((_ == null ? void 0 : _.length) ?? 0) && y((U) => ({
|
|
7759
|
+
...U,
|
|
7760
|
+
offset: U.offset + E1
|
|
7713
7761
|
}));
|
|
7714
7762
|
},
|
|
7715
|
-
[
|
|
7716
|
-
),
|
|
7763
|
+
[v, _ == null ? void 0 : _.length, m.count]
|
|
7764
|
+
), v1 = G(
|
|
7717
7765
|
(S) => {
|
|
7718
|
-
|
|
7766
|
+
K(S), !S && I && (W(void 0), y(a1), Z(!0)), u == null || u(S);
|
|
7719
7767
|
},
|
|
7720
|
-
[u,
|
|
7768
|
+
[u, I]
|
|
7721
7769
|
);
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
}, [z,
|
|
7725
|
-
(g || a) &&
|
|
7726
|
-
}, []),
|
|
7727
|
-
h &&
|
|
7728
|
-
const
|
|
7729
|
-
(
|
|
7770
|
+
T(() => {
|
|
7771
|
+
!J.current || v || (z || j && (B !== m.offset || Y !== I || !_)) && ($({ offset: m.offset, limit: E1, search: I }), z && Z(!1));
|
|
7772
|
+
}, [z, j, m.offset, I, B, Y, _, v]), T(() => {
|
|
7773
|
+
(g || a) && $(a1), J.current = !0;
|
|
7774
|
+
}, []), T(() => {
|
|
7775
|
+
h && D((S) => {
|
|
7776
|
+
const U = h.filter(
|
|
7777
|
+
(X) => !S.some((w) => w.value === X.value)
|
|
7730
7778
|
);
|
|
7731
|
-
return [...S, ...
|
|
7779
|
+
return [...S, ...U];
|
|
7732
7780
|
});
|
|
7733
7781
|
}, [h]);
|
|
7734
|
-
const
|
|
7782
|
+
const N1 = G(
|
|
7735
7783
|
(S) => {
|
|
7736
7784
|
t && t(S);
|
|
7737
|
-
let
|
|
7738
|
-
if (d ?
|
|
7739
|
-
const
|
|
7740
|
-
(
|
|
7785
|
+
let U = [];
|
|
7786
|
+
if (d ? U = Array.isArray(S) ? S : [] : U = S ? [S] : [], I) {
|
|
7787
|
+
const X = U.filter(
|
|
7788
|
+
(w) => !(V != null && V.some((E) => E.value === w))
|
|
7741
7789
|
);
|
|
7742
|
-
|
|
7743
|
-
...
|
|
7744
|
-
...
|
|
7745
|
-
const
|
|
7790
|
+
X.length > 0 && D((w = []) => [
|
|
7791
|
+
...w,
|
|
7792
|
+
...X.map((E) => {
|
|
7793
|
+
const F = _ == null ? void 0 : _.find((C1) => C1.value === E);
|
|
7746
7794
|
return {
|
|
7747
|
-
value:
|
|
7748
|
-
label: (
|
|
7795
|
+
value: E,
|
|
7796
|
+
label: (F == null ? void 0 : F.label) ?? E
|
|
7749
7797
|
};
|
|
7750
7798
|
})
|
|
7751
|
-
]),
|
|
7799
|
+
]), W(void 0), y(a1), Z(!0);
|
|
7752
7800
|
}
|
|
7753
7801
|
},
|
|
7754
|
-
[t,
|
|
7755
|
-
),
|
|
7802
|
+
[t, I, d, _, V]
|
|
7803
|
+
), l1 = Le(
|
|
7756
7804
|
() => ({
|
|
7757
7805
|
id: n,
|
|
7758
7806
|
width: e,
|
|
7759
7807
|
options: _ || [],
|
|
7760
|
-
onChange:
|
|
7808
|
+
onChange: N1,
|
|
7761
7809
|
ref: b,
|
|
7762
7810
|
placeholder: o,
|
|
7763
7811
|
search: !0,
|
|
7764
7812
|
value: s,
|
|
7765
|
-
onSearchChange:
|
|
7766
|
-
onDropdownVisibleChange:
|
|
7813
|
+
onSearchChange: i1,
|
|
7814
|
+
onDropdownVisibleChange: v1,
|
|
7767
7815
|
scrollThresholdValue: c,
|
|
7768
|
-
onScrollToEnd:
|
|
7816
|
+
onScrollToEnd: g1,
|
|
7769
7817
|
disabled: l,
|
|
7770
|
-
extraOptions:
|
|
7771
|
-
isLoading:
|
|
7818
|
+
extraOptions: V,
|
|
7819
|
+
isLoading: v,
|
|
7772
7820
|
optionRender: p,
|
|
7773
|
-
dropdownRender:
|
|
7821
|
+
dropdownRender: k,
|
|
7774
7822
|
readOnly: R,
|
|
7775
|
-
clearable:
|
|
7776
|
-
required:
|
|
7823
|
+
clearable: L,
|
|
7824
|
+
required: H
|
|
7777
7825
|
}),
|
|
7778
7826
|
[
|
|
7779
7827
|
n,
|
|
7780
7828
|
e,
|
|
7781
7829
|
_,
|
|
7782
|
-
|
|
7830
|
+
N1,
|
|
7783
7831
|
b,
|
|
7784
7832
|
o,
|
|
7785
7833
|
s,
|
|
7786
|
-
|
|
7787
|
-
|
|
7834
|
+
i1,
|
|
7835
|
+
v1,
|
|
7788
7836
|
c,
|
|
7789
|
-
|
|
7837
|
+
g1,
|
|
7790
7838
|
l,
|
|
7791
|
-
|
|
7792
|
-
|
|
7839
|
+
V,
|
|
7840
|
+
v,
|
|
7793
7841
|
p,
|
|
7794
|
-
m,
|
|
7795
|
-
R,
|
|
7796
7842
|
k,
|
|
7797
|
-
|
|
7843
|
+
R,
|
|
7844
|
+
L,
|
|
7845
|
+
H
|
|
7798
7846
|
]
|
|
7799
7847
|
);
|
|
7800
|
-
return
|
|
7848
|
+
return oe(b, () => ({
|
|
7801
7849
|
refetchOptions: async () => {
|
|
7802
|
-
y(
|
|
7850
|
+
y(a1), W(void 0), Z(!0);
|
|
7803
7851
|
}
|
|
7804
|
-
})), d ? /* @__PURE__ */ r(
|
|
7852
|
+
})), d ? /* @__PURE__ */ r(K1, { ...l1, value: s, mode: d }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(K1, { ...l1, value: s }) });
|
|
7805
7853
|
}
|
|
7806
7854
|
);
|
|
7807
|
-
var
|
|
7808
|
-
const
|
|
7855
|
+
var M1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(M1 || {});
|
|
7856
|
+
const V3 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
7809
7857
|
const t = `no-repeat linear-gradient(${e}
|
|
7810
7858
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, s = {
|
|
7811
7859
|
width: i,
|
|
@@ -7814,20 +7862,20 @@ const R3 = ({ size: i = 30, color: e = "#004ed7" }) => {
|
|
|
7814
7862
|
};
|
|
7815
7863
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
|
|
7816
7864
|
};
|
|
7817
|
-
function
|
|
7865
|
+
function E3() {
|
|
7818
7866
|
if (console && console.warn) {
|
|
7819
7867
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7820
7868
|
e[t] = arguments[t];
|
|
7821
|
-
|
|
7869
|
+
r1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
7822
7870
|
}
|
|
7823
7871
|
}
|
|
7824
|
-
const
|
|
7825
|
-
function
|
|
7872
|
+
const F1 = {};
|
|
7873
|
+
function S1() {
|
|
7826
7874
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
7827
7875
|
e[t] = arguments[t];
|
|
7828
|
-
|
|
7876
|
+
r1(e[0]) && F1[e[0]] || (r1(e[0]) && (F1[e[0]] = /* @__PURE__ */ new Date()), E3(...e));
|
|
7829
7877
|
}
|
|
7830
|
-
const
|
|
7878
|
+
const Ce = (i, e) => () => {
|
|
7831
7879
|
if (i.isInitialized)
|
|
7832
7880
|
e();
|
|
7833
7881
|
else {
|
|
@@ -7839,12 +7887,12 @@ const de = (i, e) => () => {
|
|
|
7839
7887
|
i.on("initialized", t);
|
|
7840
7888
|
}
|
|
7841
7889
|
}, Y1 = (i, e, t) => {
|
|
7842
|
-
i.loadNamespaces(e,
|
|
7843
|
-
},
|
|
7844
|
-
|
|
7890
|
+
i.loadNamespaces(e, Ce(i, t));
|
|
7891
|
+
}, U1 = (i, e, t, s) => {
|
|
7892
|
+
r1(t) && (t = [t]), t.forEach((n) => {
|
|
7845
7893
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
7846
|
-
}), i.loadLanguages(e,
|
|
7847
|
-
},
|
|
7894
|
+
}), i.loadLanguages(e, Ce(i, s));
|
|
7895
|
+
}, H3 = function(i, e) {
|
|
7848
7896
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7849
7897
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, l = e.languages[e.languages.length - 1];
|
|
7850
7898
|
if (s.toLowerCase() === "cimode") return !0;
|
|
@@ -7853,15 +7901,15 @@ const de = (i, e) => () => {
|
|
|
7853
7901
|
return g === -1 || g === 2;
|
|
7854
7902
|
};
|
|
7855
7903
|
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(l, i)));
|
|
7856
|
-
},
|
|
7904
|
+
}, I3 = function(i, e) {
|
|
7857
7905
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7858
|
-
return !e.languages || !e.languages.length ? (
|
|
7906
|
+
return !e.languages || !e.languages.length ? (S1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
7859
7907
|
lng: t.lng,
|
|
7860
7908
|
precheck: (n, l) => {
|
|
7861
7909
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !l(n.isLanguageChangingTo, i)) return !1;
|
|
7862
7910
|
}
|
|
7863
|
-
}) :
|
|
7864
|
-
},
|
|
7911
|
+
}) : H3(i, e, t);
|
|
7912
|
+
}, r1 = (i) => typeof i == "string", O3 = (i) => typeof i == "object" && i !== null, S3 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, A3 = {
|
|
7865
7913
|
"&": "&",
|
|
7866
7914
|
"&": "&",
|
|
7867
7915
|
"<": "<",
|
|
@@ -7882,8 +7930,8 @@ const de = (i, e) => () => {
|
|
|
7882
7930
|
"…": "…",
|
|
7883
7931
|
"/": "/",
|
|
7884
7932
|
"/": "/"
|
|
7885
|
-
},
|
|
7886
|
-
let
|
|
7933
|
+
}, B3 = (i) => A3[i], Z3 = (i) => i.replace(S3, B3);
|
|
7934
|
+
let A1 = {
|
|
7887
7935
|
bindI18n: "languageChanged",
|
|
7888
7936
|
bindI18nStore: "",
|
|
7889
7937
|
transEmptyNodeValue: "",
|
|
@@ -7891,27 +7939,27 @@ let O1 = {
|
|
|
7891
7939
|
transWrapTextNodes: "",
|
|
7892
7940
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
7893
7941
|
useSuspense: !0,
|
|
7894
|
-
unescape:
|
|
7942
|
+
unescape: Z3
|
|
7895
7943
|
};
|
|
7896
|
-
const
|
|
7944
|
+
const W3 = function() {
|
|
7897
7945
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7898
|
-
|
|
7899
|
-
...
|
|
7946
|
+
A1 = {
|
|
7947
|
+
...A1,
|
|
7900
7948
|
...i
|
|
7901
7949
|
};
|
|
7902
|
-
},
|
|
7903
|
-
let
|
|
7904
|
-
const
|
|
7905
|
-
|
|
7906
|
-
},
|
|
7950
|
+
}, j3 = () => A1;
|
|
7951
|
+
let ue;
|
|
7952
|
+
const D3 = (i) => {
|
|
7953
|
+
ue = i;
|
|
7954
|
+
}, T3 = () => ue, G3 = {
|
|
7907
7955
|
type: "3rdParty",
|
|
7908
7956
|
init(i) {
|
|
7909
|
-
|
|
7957
|
+
W3(i.options.react), D3(i);
|
|
7910
7958
|
}
|
|
7911
|
-
},
|
|
7912
|
-
class
|
|
7959
|
+
}, K3 = d1();
|
|
7960
|
+
class P3 {
|
|
7913
7961
|
constructor() {
|
|
7914
|
-
|
|
7962
|
+
W1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
7915
7963
|
this.usedNamespaces = {};
|
|
7916
7964
|
}
|
|
7917
7965
|
addUsedNamespaces(e) {
|
|
@@ -7920,27 +7968,27 @@ class D3 {
|
|
|
7920
7968
|
});
|
|
7921
7969
|
}
|
|
7922
7970
|
}
|
|
7923
|
-
const
|
|
7924
|
-
const t =
|
|
7925
|
-
return
|
|
7971
|
+
const $3 = (i, e) => {
|
|
7972
|
+
const t = Q();
|
|
7973
|
+
return T(() => {
|
|
7926
7974
|
t.current = i;
|
|
7927
7975
|
}, [i, e]), t.current;
|
|
7928
|
-
},
|
|
7976
|
+
}, pe = (i, e, t, s) => i.getFixedT(e, t, s), F3 = (i, e, t, s) => G(pe(i, e, t, s), [i, e, t, s]), Y3 = function(i) {
|
|
7929
7977
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7930
7978
|
const {
|
|
7931
7979
|
i18n: t
|
|
7932
7980
|
} = e, {
|
|
7933
7981
|
i18n: s,
|
|
7934
7982
|
defaultNS: n
|
|
7935
|
-
} =
|
|
7936
|
-
if (l && !l.reportNamespaces && (l.reportNamespaces = new
|
|
7937
|
-
|
|
7938
|
-
const f = (y,
|
|
7939
|
-
return
|
|
7983
|
+
} = o1(K3) || {}, l = t || s || T3();
|
|
7984
|
+
if (l && !l.reportNamespaces && (l.reportNamespaces = new P3()), !l) {
|
|
7985
|
+
S1("You will need to pass in an i18next instance by using initReactI18next");
|
|
7986
|
+
const f = (y, v) => r1(v) ? v : O3(v) && r1(v.defaultValue) ? v.defaultValue : Array.isArray(y) ? y[y.length - 1] : y, m = [f, {}, !1];
|
|
7987
|
+
return m.t = f, m.i18n = {}, m.ready = !1, m;
|
|
7940
7988
|
}
|
|
7941
|
-
l.options.react && l.options.react.wait !== void 0 &&
|
|
7989
|
+
l.options.react && l.options.react.wait !== void 0 && S1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
7942
7990
|
const c = {
|
|
7943
|
-
...
|
|
7991
|
+
...j3(),
|
|
7944
7992
|
...l.options.react,
|
|
7945
7993
|
...e
|
|
7946
7994
|
}, {
|
|
@@ -7948,92 +7996,92 @@ const T3 = (i, e) => {
|
|
|
7948
7996
|
keyPrefix: d
|
|
7949
7997
|
} = c;
|
|
7950
7998
|
let g = i;
|
|
7951
|
-
g =
|
|
7952
|
-
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) =>
|
|
7953
|
-
let
|
|
7954
|
-
e.lng && (
|
|
7955
|
-
const
|
|
7956
|
-
|
|
7999
|
+
g = r1(g) ? [g] : g || ["translation"], l.reportNamespaces.addUsedNamespaces && l.reportNamespaces.addUsedNamespaces(g);
|
|
8000
|
+
const a = (l.isInitialized || l.initializedStoreOnce) && g.every((f) => I3(f, l, c)), h = F3(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), u = () => h, p = () => pe(l, e.lng || null, c.nsMode === "fallback" ? g : g[0], d), [k, R] = A(u);
|
|
8001
|
+
let L = g.join();
|
|
8002
|
+
e.lng && (L = `${e.lng}${L}`);
|
|
8003
|
+
const H = $3(L), b = Q(!0);
|
|
8004
|
+
T(() => {
|
|
7957
8005
|
const {
|
|
7958
8006
|
bindI18n: f,
|
|
7959
|
-
bindI18nStore:
|
|
8007
|
+
bindI18nStore: m
|
|
7960
8008
|
} = c;
|
|
7961
|
-
b.current = !0, !a && !o && (e.lng ?
|
|
8009
|
+
b.current = !0, !a && !o && (e.lng ? U1(l, e.lng, g, () => {
|
|
7962
8010
|
b.current && R(p);
|
|
7963
8011
|
}) : Y1(l, g, () => {
|
|
7964
8012
|
b.current && R(p);
|
|
7965
|
-
})), a &&
|
|
8013
|
+
})), a && H && H !== L && b.current && R(p);
|
|
7966
8014
|
const y = () => {
|
|
7967
8015
|
b.current && R(p);
|
|
7968
8016
|
};
|
|
7969
|
-
return f && l && l.on(f, y),
|
|
7970
|
-
b.current = !1, f && l && f.split(" ").forEach((
|
|
8017
|
+
return f && l && l.on(f, y), m && l && l.store.on(m, y), () => {
|
|
8018
|
+
b.current = !1, f && l && f.split(" ").forEach((v) => l.off(v, y)), m && l && m.split(" ").forEach((v) => l.store.off(v, y));
|
|
7971
8019
|
};
|
|
7972
|
-
}, [l,
|
|
8020
|
+
}, [l, L]), T(() => {
|
|
7973
8021
|
b.current && a && R(u);
|
|
7974
8022
|
}, [l, d, a]);
|
|
7975
|
-
const _ = [
|
|
7976
|
-
if (_.t =
|
|
8023
|
+
const _ = [k, l, a];
|
|
8024
|
+
if (_.t = k, _.i18n = l, _.ready = a, a || !a && !o) return _;
|
|
7977
8025
|
throw new Promise((f) => {
|
|
7978
|
-
e.lng ?
|
|
8026
|
+
e.lng ? U1(l, e.lng, g, () => f()) : Y1(l, g, () => f());
|
|
7979
8027
|
});
|
|
7980
|
-
}, M = (i) => typeof i == "string",
|
|
8028
|
+
}, M = (i) => typeof i == "string", p1 = () => {
|
|
7981
8029
|
let i, e;
|
|
7982
8030
|
const t = new Promise((s, n) => {
|
|
7983
8031
|
i = s, e = n;
|
|
7984
8032
|
});
|
|
7985
8033
|
return t.resolve = i, t.reject = e, t;
|
|
7986
|
-
},
|
|
8034
|
+
}, z1 = (i) => i == null ? "" : "" + i, U3 = (i, e, t) => {
|
|
7987
8035
|
i.forEach((s) => {
|
|
7988
8036
|
e[s] && (t[s] = e[s]);
|
|
7989
8037
|
});
|
|
7990
|
-
},
|
|
8038
|
+
}, z3 = /###/g, J1 = (i) => i && i.indexOf("###") > -1 ? i.replace(z3, ".") : i, q1 = (i) => !i || M(i), m1 = (i, e, t) => {
|
|
7991
8039
|
const s = M(e) ? e.split(".") : e;
|
|
7992
8040
|
let n = 0;
|
|
7993
8041
|
for (; n < s.length - 1; ) {
|
|
7994
|
-
if (
|
|
7995
|
-
const l =
|
|
8042
|
+
if (q1(i)) return {};
|
|
8043
|
+
const l = J1(s[n]);
|
|
7996
8044
|
!i[l] && t && (i[l] = new t()), Object.prototype.hasOwnProperty.call(i, l) ? i = i[l] : i = {}, ++n;
|
|
7997
8045
|
}
|
|
7998
|
-
return
|
|
8046
|
+
return q1(i) ? {} : {
|
|
7999
8047
|
obj: i,
|
|
8000
|
-
k:
|
|
8048
|
+
k: J1(s[n])
|
|
8001
8049
|
};
|
|
8002
|
-
},
|
|
8050
|
+
}, Q1 = (i, e, t) => {
|
|
8003
8051
|
const {
|
|
8004
8052
|
obj: s,
|
|
8005
8053
|
k: n
|
|
8006
|
-
} =
|
|
8054
|
+
} = m1(i, e, Object);
|
|
8007
8055
|
if (s !== void 0 || e.length === 1) {
|
|
8008
8056
|
s[n] = t;
|
|
8009
8057
|
return;
|
|
8010
8058
|
}
|
|
8011
|
-
let l = e[e.length - 1], c = e.slice(0, e.length - 1), o =
|
|
8059
|
+
let l = e[e.length - 1], c = e.slice(0, e.length - 1), o = m1(i, c, Object);
|
|
8012
8060
|
for (; o.obj === void 0 && c.length; )
|
|
8013
|
-
l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), o =
|
|
8061
|
+
l = `${c[c.length - 1]}.${l}`, c = c.slice(0, c.length - 1), o = m1(i, c, Object), o && o.obj && typeof o.obj[`${o.k}.${l}`] < "u" && (o.obj = void 0);
|
|
8014
8062
|
o.obj[`${o.k}.${l}`] = t;
|
|
8015
|
-
},
|
|
8063
|
+
}, J3 = (i, e, t, s) => {
|
|
8016
8064
|
const {
|
|
8017
8065
|
obj: n,
|
|
8018
8066
|
k: l
|
|
8019
|
-
} =
|
|
8067
|
+
} = m1(i, e, Object);
|
|
8020
8068
|
n[l] = n[l] || [], n[l].push(t);
|
|
8021
|
-
},
|
|
8069
|
+
}, R1 = (i, e) => {
|
|
8022
8070
|
const {
|
|
8023
8071
|
obj: t,
|
|
8024
8072
|
k: s
|
|
8025
|
-
} =
|
|
8073
|
+
} = m1(i, e);
|
|
8026
8074
|
if (t)
|
|
8027
8075
|
return t[s];
|
|
8028
|
-
},
|
|
8029
|
-
const s =
|
|
8030
|
-
return s !== void 0 ? s :
|
|
8031
|
-
},
|
|
8076
|
+
}, q3 = (i, e, t) => {
|
|
8077
|
+
const s = R1(i, t);
|
|
8078
|
+
return s !== void 0 ? s : R1(e, t);
|
|
8079
|
+
}, fe = (i, e, t) => {
|
|
8032
8080
|
for (const s in e)
|
|
8033
|
-
s !== "__proto__" && s !== "constructor" && (s in i ? M(i[s]) || i[s] instanceof String || M(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) :
|
|
8081
|
+
s !== "__proto__" && s !== "constructor" && (s in i ? M(i[s]) || i[s] instanceof String || M(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : fe(i[s], e[s], t) : i[s] = e[s]);
|
|
8034
8082
|
return i;
|
|
8035
|
-
},
|
|
8036
|
-
var
|
|
8083
|
+
}, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
8084
|
+
var Q3 = {
|
|
8037
8085
|
"&": "&",
|
|
8038
8086
|
"<": "<",
|
|
8039
8087
|
">": ">",
|
|
@@ -8041,8 +8089,8 @@ var U3 = {
|
|
|
8041
8089
|
"'": "'",
|
|
8042
8090
|
"/": "/"
|
|
8043
8091
|
};
|
|
8044
|
-
const
|
|
8045
|
-
class
|
|
8092
|
+
const X3 = (i) => M(i) ? i.replace(/[&<>"'\/]/g, (e) => Q3[e]) : i;
|
|
8093
|
+
class e0 {
|
|
8046
8094
|
constructor(e) {
|
|
8047
8095
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
8048
8096
|
}
|
|
@@ -8054,18 +8102,18 @@ class J3 {
|
|
|
8054
8102
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
8055
8103
|
}
|
|
8056
8104
|
}
|
|
8057
|
-
const
|
|
8105
|
+
const t0 = [" ", ",", "?", "!", ";"], i0 = new e0(20), s0 = (i, e, t) => {
|
|
8058
8106
|
e = e || "", t = t || "";
|
|
8059
|
-
const s =
|
|
8107
|
+
const s = t0.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
8060
8108
|
if (s.length === 0) return !0;
|
|
8061
|
-
const n =
|
|
8109
|
+
const n = i0.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
8062
8110
|
let l = !n.test(i);
|
|
8063
8111
|
if (!l) {
|
|
8064
8112
|
const c = i.indexOf(t);
|
|
8065
8113
|
c > 0 && !n.test(i.substring(0, c)) && (l = !0);
|
|
8066
8114
|
}
|
|
8067
8115
|
return l;
|
|
8068
|
-
},
|
|
8116
|
+
}, B1 = function(i, e) {
|
|
8069
8117
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
8070
8118
|
if (!i) return;
|
|
8071
8119
|
if (i[e]) return i[e];
|
|
@@ -8085,7 +8133,7 @@ const q3 = [" ", ",", "?", "!", ";"], Q3 = new J3(20), X3 = (i, e, t) => {
|
|
|
8085
8133
|
n = c;
|
|
8086
8134
|
}
|
|
8087
8135
|
return n;
|
|
8088
|
-
},
|
|
8136
|
+
}, y1 = (i) => i && i.replace("_", "-"), n0 = {
|
|
8089
8137
|
type: "logger",
|
|
8090
8138
|
log(i) {
|
|
8091
8139
|
this.output("log", i);
|
|
@@ -8100,14 +8148,14 @@ const q3 = [" ", ",", "?", "!", ";"], Q3 = new J3(20), X3 = (i, e, t) => {
|
|
|
8100
8148
|
console && console[i] && console[i].apply(console, e);
|
|
8101
8149
|
}
|
|
8102
8150
|
};
|
|
8103
|
-
class
|
|
8151
|
+
class b1 {
|
|
8104
8152
|
constructor(e) {
|
|
8105
8153
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8106
8154
|
this.init(e, t);
|
|
8107
8155
|
}
|
|
8108
8156
|
init(e) {
|
|
8109
8157
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8110
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
8158
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || n0, this.options = t, this.debug = t.debug;
|
|
8111
8159
|
}
|
|
8112
8160
|
log() {
|
|
8113
8161
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -8133,17 +8181,17 @@ class M1 {
|
|
|
8133
8181
|
return n && !this.debug ? null : (M(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
8134
8182
|
}
|
|
8135
8183
|
create(e) {
|
|
8136
|
-
return new
|
|
8184
|
+
return new b1(this.logger, {
|
|
8137
8185
|
prefix: `${this.prefix}:${e}:`,
|
|
8138
8186
|
...this.options
|
|
8139
8187
|
});
|
|
8140
8188
|
}
|
|
8141
8189
|
clone(e) {
|
|
8142
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
8190
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new b1(this.logger, e);
|
|
8143
8191
|
}
|
|
8144
8192
|
}
|
|
8145
|
-
var
|
|
8146
|
-
class
|
|
8193
|
+
var q = new b1();
|
|
8194
|
+
class V1 {
|
|
8147
8195
|
constructor() {
|
|
8148
8196
|
this.observers = {};
|
|
8149
8197
|
}
|
|
@@ -8177,7 +8225,7 @@ class b1 {
|
|
|
8177
8225
|
});
|
|
8178
8226
|
}
|
|
8179
8227
|
}
|
|
8180
|
-
class
|
|
8228
|
+
class X1 extends V1 {
|
|
8181
8229
|
constructor(e) {
|
|
8182
8230
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
8183
8231
|
ns: ["translation"],
|
|
@@ -8197,8 +8245,8 @@ class Q1 extends b1 {
|
|
|
8197
8245
|
const l = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
8198
8246
|
let o;
|
|
8199
8247
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], s && (Array.isArray(s) ? o.push(...s) : M(s) && l ? o.push(...s.split(l)) : o.push(s)));
|
|
8200
|
-
const d =
|
|
8201
|
-
return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || !M(s) ? d :
|
|
8248
|
+
const d = R1(this.data, o);
|
|
8249
|
+
return !d && !t && !s && e.indexOf(".") > -1 && (e = o[0], t = o[1], s = o.slice(2).join(".")), d || !c || !M(s) ? d : B1(this.data && this.data[e] && this.data[e][t], s, l);
|
|
8202
8250
|
}
|
|
8203
8251
|
addResource(e, t, s, n) {
|
|
8204
8252
|
let l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -8206,7 +8254,7 @@ class Q1 extends b1 {
|
|
|
8206
8254
|
};
|
|
8207
8255
|
const c = l.keySeparator !== void 0 ? l.keySeparator : this.options.keySeparator;
|
|
8208
8256
|
let o = [e, t];
|
|
8209
|
-
s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t),
|
|
8257
|
+
s && (o = o.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (o = e.split("."), n = t, t = o[1]), this.addNamespaces(t), Q1(this.data, o, n), l.silent || this.emit("added", e, t, s, n);
|
|
8210
8258
|
}
|
|
8211
8259
|
addResources(e, t, s) {
|
|
8212
8260
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -8224,11 +8272,11 @@ class Q1 extends b1 {
|
|
|
8224
8272
|
skipCopy: !1
|
|
8225
8273
|
}, o = [e, t];
|
|
8226
8274
|
e.indexOf(".") > -1 && (o = e.split("."), n = s, s = t, t = o[1]), this.addNamespaces(t);
|
|
8227
|
-
let d =
|
|
8228
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ?
|
|
8275
|
+
let d = R1(this.data, o) || {};
|
|
8276
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? fe(d, s, l) : d = {
|
|
8229
8277
|
...d,
|
|
8230
8278
|
...s
|
|
8231
|
-
},
|
|
8279
|
+
}, Q1(this.data, o, d), c.silent || this.emit("added", e, t, s);
|
|
8232
8280
|
}
|
|
8233
8281
|
removeResourceBundle(e, t) {
|
|
8234
8282
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -8252,7 +8300,7 @@ class Q1 extends b1 {
|
|
|
8252
8300
|
return this.data;
|
|
8253
8301
|
}
|
|
8254
8302
|
}
|
|
8255
|
-
var
|
|
8303
|
+
var we = {
|
|
8256
8304
|
processors: {},
|
|
8257
8305
|
addPostProcessor(i) {
|
|
8258
8306
|
this.processors[i.name] = i;
|
|
@@ -8263,11 +8311,11 @@ var pe = {
|
|
|
8263
8311
|
}), e;
|
|
8264
8312
|
}
|
|
8265
8313
|
};
|
|
8266
|
-
const
|
|
8267
|
-
class
|
|
8314
|
+
const ee = {};
|
|
8315
|
+
class _1 extends V1 {
|
|
8268
8316
|
constructor(e) {
|
|
8269
8317
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8270
|
-
super(),
|
|
8318
|
+
super(), U3(["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");
|
|
8271
8319
|
}
|
|
8272
8320
|
changeLanguage(e) {
|
|
8273
8321
|
e && (this.language = e);
|
|
@@ -8286,7 +8334,7 @@ class R1 extends b1 {
|
|
|
8286
8334
|
s === void 0 && (s = ":");
|
|
8287
8335
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
8288
8336
|
let l = t.ns || this.options.defaultNS || [];
|
|
8289
|
-
const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
8337
|
+
const c = s && e.indexOf(s) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !s0(e, s, n);
|
|
8290
8338
|
if (c && !o) {
|
|
8291
8339
|
const d = e.match(this.interpolator.nestingRegexp);
|
|
8292
8340
|
if (d && d.length > 0)
|
|
@@ -8334,8 +8382,8 @@ class R1 extends b1 {
|
|
|
8334
8382
|
}
|
|
8335
8383
|
const h = this.resolve(e, t);
|
|
8336
8384
|
let u = h && h.res;
|
|
8337
|
-
const p = h && h.usedKey || c,
|
|
8338
|
-
if (b && u && _ &&
|
|
8385
|
+
const p = h && h.usedKey || c, k = h && h.exactUsedKey || c, R = Object.prototype.toString.apply(u), L = ["[object Number]", "[object Function]", "[object RegExp]"], H = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, _ = !M(u) && typeof u != "boolean" && typeof u != "number";
|
|
8386
|
+
if (b && u && _ && L.indexOf(R) < 0 && !(M(H) && Array.isArray(u))) {
|
|
8339
8387
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
8340
8388
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
8341
8389
|
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, u, {
|
|
@@ -8345,53 +8393,53 @@ class R1 extends b1 {
|
|
|
8345
8393
|
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
8346
8394
|
}
|
|
8347
8395
|
if (l) {
|
|
8348
|
-
const f = Array.isArray(u),
|
|
8349
|
-
for (const
|
|
8350
|
-
if (Object.prototype.hasOwnProperty.call(u,
|
|
8351
|
-
const
|
|
8352
|
-
|
|
8396
|
+
const f = Array.isArray(u), m = f ? [] : {}, y = f ? k : p;
|
|
8397
|
+
for (const v in u)
|
|
8398
|
+
if (Object.prototype.hasOwnProperty.call(u, v)) {
|
|
8399
|
+
const O = `${y}${l}${v}`;
|
|
8400
|
+
m[v] = this.translate(O, {
|
|
8353
8401
|
...t,
|
|
8354
8402
|
joinArrays: !1,
|
|
8355
8403
|
ns: o
|
|
8356
|
-
}),
|
|
8404
|
+
}), m[v] === O && (m[v] = u[v]);
|
|
8357
8405
|
}
|
|
8358
|
-
u =
|
|
8406
|
+
u = m;
|
|
8359
8407
|
}
|
|
8360
|
-
} else if (b && M(
|
|
8361
|
-
u = u.join(
|
|
8408
|
+
} else if (b && M(H) && Array.isArray(u))
|
|
8409
|
+
u = u.join(H), u && (u = this.extendTranslation(u, e, t, s));
|
|
8362
8410
|
else {
|
|
8363
|
-
let f = !1,
|
|
8364
|
-
const y = t.count !== void 0 && !M(t.count),
|
|
8411
|
+
let f = !1, m = !1;
|
|
8412
|
+
const y = t.count !== void 0 && !M(t.count), v = _1.hasDefaultValue(t), O = y ? this.pluralResolver.getSuffix(g, t.count, t) : "", I = t.ordinal && y ? this.pluralResolver.getSuffix(g, t.count, {
|
|
8365
8413
|
ordinal: !1
|
|
8366
|
-
}) : "",
|
|
8367
|
-
!this.isValidLookup(u) &&
|
|
8368
|
-
const
|
|
8369
|
-
if (
|
|
8370
|
-
if (this.logger.log(
|
|
8371
|
-
const
|
|
8414
|
+
}) : "", W = y && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), j = W && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${O}`] || t[`defaultValue${I}`] || t.defaultValue;
|
|
8415
|
+
!this.isValidLookup(u) && v && (f = !0, u = j), this.isValidLookup(u) || (m = !0, u = c);
|
|
8416
|
+
const V = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && m ? void 0 : u, D = v && j !== u && this.options.updateMissing;
|
|
8417
|
+
if (m || f || D) {
|
|
8418
|
+
if (this.logger.log(D ? "updateKey" : "missingKey", g, d, c, D ? j : u), l) {
|
|
8419
|
+
const Z = this.resolve(c, {
|
|
8372
8420
|
...t,
|
|
8373
8421
|
keySeparator: !1
|
|
8374
8422
|
});
|
|
8375
|
-
|
|
8376
|
-
}
|
|
8377
|
-
let
|
|
8378
|
-
const
|
|
8379
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
8380
|
-
for (let
|
|
8381
|
-
|
|
8382
|
-
else this.options.saveMissingTo === "all" ?
|
|
8383
|
-
const z = (
|
|
8384
|
-
const
|
|
8385
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
8423
|
+
Z && Z.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
8424
|
+
}
|
|
8425
|
+
let B = [];
|
|
8426
|
+
const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
8427
|
+
if (this.options.saveMissingTo === "fallback" && Y && Y[0])
|
|
8428
|
+
for (let Z = 0; Z < Y.length; Z++)
|
|
8429
|
+
B.push(Y[Z]);
|
|
8430
|
+
else this.options.saveMissingTo === "all" ? B = this.languageUtils.toResolveHierarchy(t.lng || this.language) : B.push(t.lng || this.language);
|
|
8431
|
+
const z = (Z, J, $) => {
|
|
8432
|
+
const t1 = v && $ !== u ? $ : V;
|
|
8433
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(Z, d, J, t1, D, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(Z, d, J, t1, D, t), this.emit("missingKey", Z, d, J, u);
|
|
8386
8434
|
};
|
|
8387
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && y ?
|
|
8388
|
-
const
|
|
8389
|
-
|
|
8390
|
-
z([
|
|
8435
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && y ? B.forEach((Z) => {
|
|
8436
|
+
const J = this.pluralResolver.getSuffixes(Z, t);
|
|
8437
|
+
W && t[`defaultValue${this.options.pluralSeparator}zero`] && J.indexOf(`${this.options.pluralSeparator}zero`) < 0 && J.push(`${this.options.pluralSeparator}zero`), J.forEach(($) => {
|
|
8438
|
+
z([Z], c + $, t[`defaultValue${$}`] || j);
|
|
8391
8439
|
});
|
|
8392
|
-
}) : z(
|
|
8440
|
+
}) : z(B, c, j));
|
|
8393
8441
|
}
|
|
8394
|
-
u = this.extendTranslation(u, e, t, h, s),
|
|
8442
|
+
u = this.extendTranslation(u, e, t, h, s), m && u === c && this.options.appendNamespaceToMissingKey && (u = `${d}:${c}`), (m || 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));
|
|
8395
8443
|
}
|
|
8396
8444
|
return n ? (h.res = u, h.usedParams = this.getUsedParamsDetails(t), h) : u;
|
|
8397
8445
|
}
|
|
@@ -8427,13 +8475,13 @@ class R1 extends b1 {
|
|
|
8427
8475
|
a < p && (s.nest = !1);
|
|
8428
8476
|
}
|
|
8429
8477
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
8430
|
-
for (var u = arguments.length, p = new Array(u),
|
|
8431
|
-
p[
|
|
8478
|
+
for (var u = arguments.length, p = new Array(u), k = 0; k < u; k++)
|
|
8479
|
+
p[k] = arguments[k];
|
|
8432
8480
|
return l && l[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);
|
|
8433
8481
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
8434
8482
|
}
|
|
8435
8483
|
const o = s.postProcess || this.options.postProcess, d = M(o) ? [o] : o;
|
|
8436
|
-
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e =
|
|
8484
|
+
return e != null && d && d.length && s.applyPostProcessor !== !1 && (e = we.handle(d, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
8437
8485
|
i18nResolved: {
|
|
8438
8486
|
...n,
|
|
8439
8487
|
usedParams: this.getUsedParamsDetails(s)
|
|
@@ -8449,26 +8497,26 @@ class R1 extends b1 {
|
|
|
8449
8497
|
n = a;
|
|
8450
8498
|
let h = g.namespaces;
|
|
8451
8499
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
8452
|
-
const u = t.count !== void 0 && !M(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(),
|
|
8453
|
-
h.forEach((
|
|
8454
|
-
this.isValidLookup(s) || (o =
|
|
8500
|
+
const u = t.count !== void 0 && !M(t.count), p = u && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), k = t.context !== void 0 && (M(t.context) || typeof t.context == "number") && t.context !== "", R = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
8501
|
+
h.forEach((L) => {
|
|
8502
|
+
this.isValidLookup(s) || (o = L, !ee[`${R[0]}-${L}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ee[`${R[0]}-${L}`] = !0, this.logger.warn(`key "${n}" for languages "${R.join(", ")}" won't get resolved as namespace "${o}" 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!!!")), R.forEach((H) => {
|
|
8455
8503
|
if (this.isValidLookup(s)) return;
|
|
8456
|
-
c =
|
|
8504
|
+
c = H;
|
|
8457
8505
|
const b = [a];
|
|
8458
8506
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
8459
|
-
this.i18nFormat.addLookupKeys(b, a,
|
|
8507
|
+
this.i18nFormat.addLookupKeys(b, a, H, L, t);
|
|
8460
8508
|
else {
|
|
8461
8509
|
let f;
|
|
8462
|
-
u && (f = this.pluralResolver.getSuffix(
|
|
8463
|
-
const
|
|
8464
|
-
if (u && (b.push(a + f), t.ordinal && f.indexOf(y) === 0 && b.push(a + f.replace(y, this.options.pluralSeparator)), p && b.push(a +
|
|
8465
|
-
const
|
|
8466
|
-
b.push(
|
|
8510
|
+
u && (f = this.pluralResolver.getSuffix(H, t.count, t));
|
|
8511
|
+
const m = `${this.options.pluralSeparator}zero`, y = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
8512
|
+
if (u && (b.push(a + f), t.ordinal && f.indexOf(y) === 0 && b.push(a + f.replace(y, this.options.pluralSeparator)), p && b.push(a + m)), k) {
|
|
8513
|
+
const v = `${a}${this.options.contextSeparator}${t.context}`;
|
|
8514
|
+
b.push(v), u && (b.push(v + f), t.ordinal && f.indexOf(y) === 0 && b.push(v + f.replace(y, this.options.pluralSeparator)), p && b.push(v + m));
|
|
8467
8515
|
}
|
|
8468
8516
|
}
|
|
8469
8517
|
let _;
|
|
8470
8518
|
for (; _ = b.pop(); )
|
|
8471
|
-
this.isValidLookup(s) || (l = _, s = this.getResource(
|
|
8519
|
+
this.isValidLookup(s) || (l = _, s = this.getResource(H, L, _, t));
|
|
8472
8520
|
}));
|
|
8473
8521
|
});
|
|
8474
8522
|
}), {
|
|
@@ -8510,18 +8558,18 @@ class R1 extends b1 {
|
|
|
8510
8558
|
return !1;
|
|
8511
8559
|
}
|
|
8512
8560
|
}
|
|
8513
|
-
const
|
|
8514
|
-
class
|
|
8561
|
+
const H1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
8562
|
+
class te {
|
|
8515
8563
|
constructor(e) {
|
|
8516
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
8564
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
|
|
8517
8565
|
}
|
|
8518
8566
|
getScriptPartFromCode(e) {
|
|
8519
|
-
if (e =
|
|
8567
|
+
if (e = y1(e), !e || e.indexOf("-") < 0) return null;
|
|
8520
8568
|
const t = e.split("-");
|
|
8521
8569
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
8522
8570
|
}
|
|
8523
8571
|
getLanguagePartFromCode(e) {
|
|
8524
|
-
if (e =
|
|
8572
|
+
if (e = y1(e), !e || e.indexOf("-") < 0) return e;
|
|
8525
8573
|
const t = e.split("-");
|
|
8526
8574
|
return this.formatLanguageCode(t[0]);
|
|
8527
8575
|
}
|
|
@@ -8535,7 +8583,7 @@ class ee {
|
|
|
8535
8583
|
}
|
|
8536
8584
|
const t = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
8537
8585
|
let s = e.split("-");
|
|
8538
|
-
return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] =
|
|
8586
|
+
return this.options.lowerCaseLng ? s = s.map((n) => n.toLowerCase()) : s.length === 2 ? (s[0] = s[0].toLowerCase(), s[1] = s[1].toUpperCase(), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = H1(s[1].toLowerCase()))) : s.length === 3 && (s[0] = s[0].toLowerCase(), s[1].length === 2 && (s[1] = s[1].toUpperCase()), s[0] !== "sgn" && s[2].length === 2 && (s[2] = s[2].toUpperCase()), t.indexOf(s[1].toLowerCase()) > -1 && (s[1] = H1(s[1].toLowerCase())), t.indexOf(s[2].toLowerCase()) > -1 && (s[2] = H1(s[2].toLowerCase()))), s.join("-");
|
|
8539
8587
|
}
|
|
8540
8588
|
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
|
|
8541
8589
|
}
|
|
@@ -8576,7 +8624,7 @@ class ee {
|
|
|
8576
8624
|
}), n;
|
|
8577
8625
|
}
|
|
8578
8626
|
}
|
|
8579
|
-
let
|
|
8627
|
+
let r0 = [{
|
|
8580
8628
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
8581
8629
|
nr: [1, 2],
|
|
8582
8630
|
fc: 1
|
|
@@ -8668,7 +8716,7 @@ let t0 = [{
|
|
|
8668
8716
|
lngs: ["he", "iw"],
|
|
8669
8717
|
nr: [1, 2, 20, 21],
|
|
8670
8718
|
fc: 22
|
|
8671
|
-
}],
|
|
8719
|
+
}], o0 = {
|
|
8672
8720
|
1: (i) => +(i > 1),
|
|
8673
8721
|
2: (i) => +(i != 1),
|
|
8674
8722
|
3: (i) => 0,
|
|
@@ -8692,28 +8740,28 @@ let t0 = [{
|
|
|
8692
8740
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
8693
8741
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
8694
8742
|
};
|
|
8695
|
-
const
|
|
8743
|
+
const l0 = ["v1", "v2", "v3"], a0 = ["v4"], ie = {
|
|
8696
8744
|
zero: 0,
|
|
8697
8745
|
one: 1,
|
|
8698
8746
|
two: 2,
|
|
8699
8747
|
few: 3,
|
|
8700
8748
|
many: 4,
|
|
8701
8749
|
other: 5
|
|
8702
|
-
},
|
|
8750
|
+
}, h0 = () => {
|
|
8703
8751
|
const i = {};
|
|
8704
|
-
return
|
|
8752
|
+
return r0.forEach((e) => {
|
|
8705
8753
|
e.lngs.forEach((t) => {
|
|
8706
8754
|
i[t] = {
|
|
8707
8755
|
numbers: e.nr,
|
|
8708
|
-
plurals:
|
|
8756
|
+
plurals: o0[e.fc]
|
|
8709
8757
|
};
|
|
8710
8758
|
});
|
|
8711
8759
|
}), i;
|
|
8712
8760
|
};
|
|
8713
|
-
class
|
|
8761
|
+
class c0 {
|
|
8714
8762
|
constructor(e) {
|
|
8715
8763
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8716
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
8764
|
+
this.languageUtils = e, this.options = t, this.logger = q.create("pluralResolver"), (!this.options.compatibilityJSON || a0.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 = h0(), this.pluralRulesCache = {};
|
|
8717
8765
|
}
|
|
8718
8766
|
addRule(e, t) {
|
|
8719
8767
|
this.rules[e] = t;
|
|
@@ -8724,7 +8772,7 @@ class o0 {
|
|
|
8724
8772
|
getRule(e) {
|
|
8725
8773
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8726
8774
|
if (this.shouldUseIntlApi()) {
|
|
8727
|
-
const s =
|
|
8775
|
+
const s = y1(e === "dev" ? "en" : e), n = t.ordinal ? "ordinal" : "cardinal", l = JSON.stringify({
|
|
8728
8776
|
cleanedCode: s,
|
|
8729
8777
|
type: n
|
|
8730
8778
|
});
|
|
@@ -8756,7 +8804,7 @@ class o0 {
|
|
|
8756
8804
|
getSuffixes(e) {
|
|
8757
8805
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8758
8806
|
const s = this.getRule(e, t);
|
|
8759
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, l) =>
|
|
8807
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, l) => ie[n] - ie[l]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
|
|
8760
8808
|
}
|
|
8761
8809
|
getSuffix(e, t) {
|
|
8762
8810
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -8771,17 +8819,17 @@ class o0 {
|
|
|
8771
8819
|
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : l() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? l() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
8772
8820
|
}
|
|
8773
8821
|
shouldUseIntlApi() {
|
|
8774
|
-
return !
|
|
8822
|
+
return !l0.includes(this.options.compatibilityJSON);
|
|
8775
8823
|
}
|
|
8776
8824
|
}
|
|
8777
|
-
const
|
|
8778
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l =
|
|
8779
|
-
return !l && n && M(t) && (l =
|
|
8780
|
-
},
|
|
8781
|
-
class
|
|
8825
|
+
const se = function(i, e, t) {
|
|
8826
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, l = q3(i, e, t);
|
|
8827
|
+
return !l && n && M(t) && (l = B1(i, t, s), l === void 0 && (l = B1(e, t, s))), l;
|
|
8828
|
+
}, I1 = (i) => i.replace(/\$/g, "$$$$");
|
|
8829
|
+
class d0 {
|
|
8782
8830
|
constructor() {
|
|
8783
8831
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8784
|
-
this.logger =
|
|
8832
|
+
this.logger = q.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
8785
8833
|
}
|
|
8786
8834
|
init() {
|
|
8787
8835
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -8801,13 +8849,13 @@ class l0 {
|
|
|
8801
8849
|
unescapePrefix: h,
|
|
8802
8850
|
nestingPrefix: u,
|
|
8803
8851
|
nestingPrefixEscaped: p,
|
|
8804
|
-
nestingSuffix:
|
|
8852
|
+
nestingSuffix: k,
|
|
8805
8853
|
nestingSuffixEscaped: R,
|
|
8806
|
-
nestingOptionsSeparator:
|
|
8807
|
-
maxReplaces:
|
|
8854
|
+
nestingOptionsSeparator: L,
|
|
8855
|
+
maxReplaces: H,
|
|
8808
8856
|
alwaysFormat: b
|
|
8809
8857
|
} = e.interpolation;
|
|
8810
|
-
this.escape = t !== void 0 ? t :
|
|
8858
|
+
this.escape = t !== void 0 ? t : X3, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = l ? h1(l) : c || "{{", this.suffix = o ? h1(o) : d || "}}", this.formatSeparator = g || ",", this.unescapePrefix = a ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : a || "", this.nestingPrefix = u ? h1(u) : p || h1("$t("), this.nestingSuffix = k ? h1(k) : R || h1(")"), this.nestingOptionsSeparator = L || ",", this.maxReplaces = H || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
8811
8859
|
}
|
|
8812
8860
|
reset() {
|
|
8813
8861
|
this.options && this.init(this.options);
|
|
@@ -8820,15 +8868,15 @@ class l0 {
|
|
|
8820
8868
|
let l, c, o;
|
|
8821
8869
|
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, g = (p) => {
|
|
8822
8870
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
8823
|
-
const
|
|
8824
|
-
return this.alwaysFormat ? this.format(
|
|
8871
|
+
const H = se(t, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
8872
|
+
return this.alwaysFormat ? this.format(H, void 0, s, {
|
|
8825
8873
|
...n,
|
|
8826
8874
|
...t,
|
|
8827
8875
|
interpolationkey: p
|
|
8828
|
-
}) :
|
|
8876
|
+
}) : H;
|
|
8829
8877
|
}
|
|
8830
|
-
const
|
|
8831
|
-
return this.format(
|
|
8878
|
+
const k = p.split(this.formatSeparator), R = k.shift().trim(), L = k.join(this.formatSeparator).trim();
|
|
8879
|
+
return this.format(se(t, d, R, this.options.keySeparator, this.options.ignoreJSONStructure), L, s, {
|
|
8832
8880
|
...n,
|
|
8833
8881
|
...t,
|
|
8834
8882
|
interpolationkey: R
|
|
@@ -8838,25 +8886,25 @@ class l0 {
|
|
|
8838
8886
|
const a = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
8839
8887
|
return [{
|
|
8840
8888
|
regex: this.regexpUnescape,
|
|
8841
|
-
safeValue: (p) =>
|
|
8889
|
+
safeValue: (p) => I1(p)
|
|
8842
8890
|
}, {
|
|
8843
8891
|
regex: this.regexp,
|
|
8844
|
-
safeValue: (p) => this.escapeValue ?
|
|
8892
|
+
safeValue: (p) => this.escapeValue ? I1(this.escape(p)) : I1(p)
|
|
8845
8893
|
}].forEach((p) => {
|
|
8846
8894
|
for (o = 0; l = p.regex.exec(e); ) {
|
|
8847
|
-
const
|
|
8848
|
-
if (c = g(
|
|
8895
|
+
const k = l[1].trim();
|
|
8896
|
+
if (c = g(k), c === void 0)
|
|
8849
8897
|
if (typeof a == "function") {
|
|
8850
|
-
const
|
|
8851
|
-
c = M(
|
|
8852
|
-
} else if (n && Object.prototype.hasOwnProperty.call(n,
|
|
8898
|
+
const L = a(e, l, n);
|
|
8899
|
+
c = M(L) ? L : "";
|
|
8900
|
+
} else if (n && Object.prototype.hasOwnProperty.call(n, k))
|
|
8853
8901
|
c = "";
|
|
8854
8902
|
else if (h) {
|
|
8855
8903
|
c = l[0];
|
|
8856
8904
|
continue;
|
|
8857
8905
|
} else
|
|
8858
|
-
this.logger.warn(`missed to pass in variable ${
|
|
8859
|
-
else !M(c) && !this.useRawValueToEscape && (c =
|
|
8906
|
+
this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`), c = "";
|
|
8907
|
+
else !M(c) && !this.useRawValueToEscape && (c = z1(c));
|
|
8860
8908
|
const R = p.safeValue(c);
|
|
8861
8909
|
if (e = e.replace(l[0], R), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= l[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
8862
8910
|
break;
|
|
@@ -8871,8 +8919,8 @@ class l0 {
|
|
|
8871
8919
|
const h = d.split(new RegExp(`${a}[ ]*{`));
|
|
8872
8920
|
let u = `{${h[1]}`;
|
|
8873
8921
|
d = h[0], u = this.interpolate(u, c);
|
|
8874
|
-
const p = u.match(/'/g),
|
|
8875
|
-
(p && p.length % 2 === 0 && !
|
|
8922
|
+
const p = u.match(/'/g), k = u.match(/"/g);
|
|
8923
|
+
(p && p.length % 2 === 0 && !k || k.length % 2 !== 0) && (u = u.replace(/'/g, '"'));
|
|
8876
8924
|
try {
|
|
8877
8925
|
c = JSON.parse(u), g && (c = {
|
|
8878
8926
|
...g,
|
|
@@ -8894,7 +8942,7 @@ class l0 {
|
|
|
8894
8942
|
n[1] = a.shift(), d = a, g = !0;
|
|
8895
8943
|
}
|
|
8896
8944
|
if (l = t(o.call(this, n[1].trim(), c), c), l && n[0] === e && !M(l)) return l;
|
|
8897
|
-
M(l) || (l =
|
|
8945
|
+
M(l) || (l = z1(l)), l || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), l = ""), g && (l = d.reduce((a, h) => this.format(a, h, s.lng, {
|
|
8898
8946
|
...s,
|
|
8899
8947
|
interpolationkey: n[1].trim()
|
|
8900
8948
|
}), l.trim())), e = e.replace(n[0], l), this.regexp.lastIndex = 0;
|
|
@@ -8902,7 +8950,7 @@ class l0 {
|
|
|
8902
8950
|
return e;
|
|
8903
8951
|
}
|
|
8904
8952
|
}
|
|
8905
|
-
const
|
|
8953
|
+
const g0 = (i) => {
|
|
8906
8954
|
let e = i.toLowerCase().trim();
|
|
8907
8955
|
const t = {};
|
|
8908
8956
|
if (i.indexOf("(") > -1) {
|
|
@@ -8920,7 +8968,7 @@ const a0 = (i) => {
|
|
|
8920
8968
|
formatName: e,
|
|
8921
8969
|
formatOptions: t
|
|
8922
8970
|
};
|
|
8923
|
-
},
|
|
8971
|
+
}, c1 = (i) => {
|
|
8924
8972
|
const e = {};
|
|
8925
8973
|
return (t, s, n) => {
|
|
8926
8974
|
let l = n;
|
|
@@ -8930,39 +8978,39 @@ const a0 = (i) => {
|
|
|
8930
8978
|
});
|
|
8931
8979
|
const c = s + JSON.stringify(l);
|
|
8932
8980
|
let o = e[c];
|
|
8933
|
-
return o || (o = i(
|
|
8981
|
+
return o || (o = i(y1(s), n), e[c] = o), o(t);
|
|
8934
8982
|
};
|
|
8935
8983
|
};
|
|
8936
|
-
class
|
|
8984
|
+
class C0 {
|
|
8937
8985
|
constructor() {
|
|
8938
8986
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8939
|
-
this.logger =
|
|
8940
|
-
number:
|
|
8987
|
+
this.logger = q.create("formatter"), this.options = e, this.formats = {
|
|
8988
|
+
number: c1((t, s) => {
|
|
8941
8989
|
const n = new Intl.NumberFormat(t, {
|
|
8942
8990
|
...s
|
|
8943
8991
|
});
|
|
8944
8992
|
return (l) => n.format(l);
|
|
8945
8993
|
}),
|
|
8946
|
-
currency:
|
|
8994
|
+
currency: c1((t, s) => {
|
|
8947
8995
|
const n = new Intl.NumberFormat(t, {
|
|
8948
8996
|
...s,
|
|
8949
8997
|
style: "currency"
|
|
8950
8998
|
});
|
|
8951
8999
|
return (l) => n.format(l);
|
|
8952
9000
|
}),
|
|
8953
|
-
datetime:
|
|
9001
|
+
datetime: c1((t, s) => {
|
|
8954
9002
|
const n = new Intl.DateTimeFormat(t, {
|
|
8955
9003
|
...s
|
|
8956
9004
|
});
|
|
8957
9005
|
return (l) => n.format(l);
|
|
8958
9006
|
}),
|
|
8959
|
-
relativetime:
|
|
9007
|
+
relativetime: c1((t, s) => {
|
|
8960
9008
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
8961
9009
|
...s
|
|
8962
9010
|
});
|
|
8963
9011
|
return (l) => n.format(l, s.range || "day");
|
|
8964
9012
|
}),
|
|
8965
|
-
list:
|
|
9013
|
+
list: c1((t, s) => {
|
|
8966
9014
|
const n = new Intl.ListFormat(t, {
|
|
8967
9015
|
...s
|
|
8968
9016
|
});
|
|
@@ -8980,7 +9028,7 @@ class h0 {
|
|
|
8980
9028
|
this.formats[e.toLowerCase().trim()] = t;
|
|
8981
9029
|
}
|
|
8982
9030
|
addCached(e, t) {
|
|
8983
|
-
this.formats[e.toLowerCase().trim()] =
|
|
9031
|
+
this.formats[e.toLowerCase().trim()] = c1(t);
|
|
8984
9032
|
}
|
|
8985
9033
|
format(e, t, s) {
|
|
8986
9034
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -8993,7 +9041,7 @@ class h0 {
|
|
|
8993
9041
|
const {
|
|
8994
9042
|
formatName: g,
|
|
8995
9043
|
formatOptions: a
|
|
8996
|
-
} =
|
|
9044
|
+
} = g0(d);
|
|
8997
9045
|
if (this.formats[g]) {
|
|
8998
9046
|
let h = o;
|
|
8999
9047
|
try {
|
|
@@ -9013,13 +9061,13 @@ class h0 {
|
|
|
9013
9061
|
}, e);
|
|
9014
9062
|
}
|
|
9015
9063
|
}
|
|
9016
|
-
const
|
|
9064
|
+
const u0 = (i, e) => {
|
|
9017
9065
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
9018
9066
|
};
|
|
9019
|
-
class
|
|
9067
|
+
class p0 extends V1 {
|
|
9020
9068
|
constructor(e, t, s) {
|
|
9021
9069
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
9022
|
-
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger =
|
|
9070
|
+
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);
|
|
9023
9071
|
}
|
|
9024
9072
|
queueLoad(e, t, s, n) {
|
|
9025
9073
|
const l = {}, c = {}, o = {}, d = {};
|
|
@@ -9049,7 +9097,7 @@ class d0 extends b1 {
|
|
|
9049
9097
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
9050
9098
|
const o = {};
|
|
9051
9099
|
this.queue.forEach((d) => {
|
|
9052
|
-
|
|
9100
|
+
J3(d.loaded, [l], c), u0(d, e), t && d.errors.push(t), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((g) => {
|
|
9053
9101
|
o[g] || (o[g] = {});
|
|
9054
9102
|
const a = d.loaded[g];
|
|
9055
9103
|
a.length && a.forEach((h) => {
|
|
@@ -9151,7 +9199,7 @@ class d0 extends b1 {
|
|
|
9151
9199
|
}
|
|
9152
9200
|
}
|
|
9153
9201
|
}
|
|
9154
|
-
const
|
|
9202
|
+
const ne = () => ({
|
|
9155
9203
|
debug: !1,
|
|
9156
9204
|
initImmediate: !0,
|
|
9157
9205
|
ns: ["translation"],
|
|
@@ -9207,18 +9255,18 @@ const se = () => ({
|
|
|
9207
9255
|
maxReplaces: 1e3,
|
|
9208
9256
|
skipOnVariables: !0
|
|
9209
9257
|
}
|
|
9210
|
-
}),
|
|
9211
|
-
},
|
|
9258
|
+
}), re = (i) => (M(i.ns) && (i.ns = [i.ns]), M(i.fallbackLng) && (i.fallbackLng = [i.fallbackLng]), M(i.fallbackNS) && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i), x1 = () => {
|
|
9259
|
+
}, f0 = (i) => {
|
|
9212
9260
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
9213
9261
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
9214
9262
|
});
|
|
9215
9263
|
};
|
|
9216
|
-
class
|
|
9264
|
+
class k1 extends V1 {
|
|
9217
9265
|
constructor() {
|
|
9218
9266
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
9219
|
-
if (super(), this.options =
|
|
9267
|
+
if (super(), this.options = re(e), this.services = {}, this.logger = q, this.modules = {
|
|
9220
9268
|
external: []
|
|
9221
|
-
},
|
|
9269
|
+
}, f0(this), t && !this.isInitialized && !e.isClone) {
|
|
9222
9270
|
if (!this.options.initImmediate)
|
|
9223
9271
|
return this.init(e, t), this;
|
|
9224
9272
|
setTimeout(() => {
|
|
@@ -9230,42 +9278,42 @@ class u1 extends b1 {
|
|
|
9230
9278
|
var e = this;
|
|
9231
9279
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
9232
9280
|
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (M(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
9233
|
-
const n =
|
|
9281
|
+
const n = ne();
|
|
9234
9282
|
this.options = {
|
|
9235
9283
|
...n,
|
|
9236
9284
|
...this.options,
|
|
9237
|
-
...
|
|
9285
|
+
...re(t)
|
|
9238
9286
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
9239
9287
|
...n.interpolation,
|
|
9240
9288
|
...this.options.interpolation
|
|
9241
9289
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
9242
9290
|
const l = (a) => a ? typeof a == "function" ? new a() : a : null;
|
|
9243
9291
|
if (!this.options.isClone) {
|
|
9244
|
-
this.modules.logger ?
|
|
9292
|
+
this.modules.logger ? q.init(l(this.modules.logger), this.options) : q.init(null, this.options);
|
|
9245
9293
|
let a;
|
|
9246
|
-
this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a =
|
|
9247
|
-
const h = new
|
|
9248
|
-
this.store = new
|
|
9294
|
+
this.modules.formatter ? a = this.modules.formatter : typeof Intl < "u" && (a = C0);
|
|
9295
|
+
const h = new te(this.options);
|
|
9296
|
+
this.store = new X1(this.options.resources, this.options);
|
|
9249
9297
|
const u = this.services;
|
|
9250
|
-
u.logger =
|
|
9298
|
+
u.logger = q, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new c0(h, {
|
|
9251
9299
|
prepend: this.options.pluralSeparator,
|
|
9252
9300
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
9253
9301
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
9254
|
-
}), a && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = l(a), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new
|
|
9302
|
+
}), a && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = l(a), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new d0(this.options), u.utils = {
|
|
9255
9303
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
9256
|
-
}, u.backendConnector = new
|
|
9257
|
-
for (var
|
|
9258
|
-
R[
|
|
9304
|
+
}, u.backendConnector = new p0(l(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", function(p) {
|
|
9305
|
+
for (var k = arguments.length, R = new Array(k > 1 ? k - 1 : 0), L = 1; L < k; L++)
|
|
9306
|
+
R[L - 1] = arguments[L];
|
|
9259
9307
|
e.emit(p, ...R);
|
|
9260
|
-
}), this.modules.languageDetector && (u.languageDetector = l(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = l(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new
|
|
9261
|
-
for (var
|
|
9262
|
-
R[
|
|
9308
|
+
}), this.modules.languageDetector && (u.languageDetector = l(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = l(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new _1(this.services, this.options), this.translator.on("*", function(p) {
|
|
9309
|
+
for (var k = arguments.length, R = new Array(k > 1 ? k - 1 : 0), L = 1; L < k; L++)
|
|
9310
|
+
R[L - 1] = arguments[L];
|
|
9263
9311
|
e.emit(p, ...R);
|
|
9264
9312
|
}), this.modules.external.forEach((p) => {
|
|
9265
9313
|
p.init && p.init(this);
|
|
9266
9314
|
});
|
|
9267
9315
|
}
|
|
9268
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
|
9316
|
+
if (this.format = this.options.interpolation.format, s || (s = x1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
9269
9317
|
const a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
9270
9318
|
a.length > 0 && a[0] !== "dev" && (this.options.lng = a[0]);
|
|
9271
9319
|
}
|
|
@@ -9278,7 +9326,7 @@ class u1 extends b1 {
|
|
|
9278
9326
|
return e.store[a](...arguments), e;
|
|
9279
9327
|
};
|
|
9280
9328
|
});
|
|
9281
|
-
const d =
|
|
9329
|
+
const d = p1(), g = () => {
|
|
9282
9330
|
const a = (h, u) => {
|
|
9283
9331
|
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);
|
|
9284
9332
|
};
|
|
@@ -9288,7 +9336,7 @@ class u1 extends b1 {
|
|
|
9288
9336
|
return this.options.resources || !this.options.initImmediate ? g() : setTimeout(g, 0), d;
|
|
9289
9337
|
}
|
|
9290
9338
|
loadResources(e) {
|
|
9291
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
9339
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
|
9292
9340
|
const n = M(e) ? e : this.language;
|
|
9293
9341
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
9294
9342
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
@@ -9305,15 +9353,15 @@ class u1 extends b1 {
|
|
|
9305
9353
|
s(null);
|
|
9306
9354
|
}
|
|
9307
9355
|
reloadResources(e, t, s) {
|
|
9308
|
-
const n =
|
|
9309
|
-
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s =
|
|
9356
|
+
const n = p1();
|
|
9357
|
+
return typeof e == "function" && (s = e, e = void 0), typeof t == "function" && (s = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), s || (s = x1), this.services.backendConnector.reload(e, t, (l) => {
|
|
9310
9358
|
n.resolve(), s(l);
|
|
9311
9359
|
}), n;
|
|
9312
9360
|
}
|
|
9313
9361
|
use(e) {
|
|
9314
9362
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
9315
9363
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
9316
|
-
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" &&
|
|
9364
|
+
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" && we.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
9317
9365
|
}
|
|
9318
9366
|
setResolvedLanguage(e) {
|
|
9319
9367
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -9328,7 +9376,7 @@ class u1 extends b1 {
|
|
|
9328
9376
|
changeLanguage(e, t) {
|
|
9329
9377
|
var s = this;
|
|
9330
9378
|
this.isLanguageChangingTo = e;
|
|
9331
|
-
const n =
|
|
9379
|
+
const n = p1();
|
|
9332
9380
|
this.emit("languageChanging", e);
|
|
9333
9381
|
const l = (d) => {
|
|
9334
9382
|
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
|
@@ -9362,7 +9410,7 @@ class u1 extends b1 {
|
|
|
9362
9410
|
d.lng = d.lng || l.lng, d.lngs = d.lngs || l.lngs, d.ns = d.ns || l.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || s || l.keyPrefix);
|
|
9363
9411
|
const u = n.options.keySeparator || ".";
|
|
9364
9412
|
let p;
|
|
9365
|
-
return d.keyPrefix && Array.isArray(c) ? p = c.map((
|
|
9413
|
+
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);
|
|
9366
9414
|
};
|
|
9367
9415
|
return M(e) ? l.lng = e : l.lngs = e, l.ns = t, l.keyPrefix = s, l;
|
|
9368
9416
|
}
|
|
@@ -9394,7 +9442,7 @@ class u1 extends b1 {
|
|
|
9394
9442
|
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(l, e)));
|
|
9395
9443
|
}
|
|
9396
9444
|
loadNamespaces(e, t) {
|
|
9397
|
-
const s =
|
|
9445
|
+
const s = p1();
|
|
9398
9446
|
return this.options.ns ? (M(e) && (e = [e]), e.forEach((n) => {
|
|
9399
9447
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
9400
9448
|
}), this.loadResources((n) => {
|
|
@@ -9402,7 +9450,7 @@ class u1 extends b1 {
|
|
|
9402
9450
|
}), s) : (t && t(), Promise.resolve());
|
|
9403
9451
|
}
|
|
9404
9452
|
loadLanguages(e, t) {
|
|
9405
|
-
const s =
|
|
9453
|
+
const s = p1();
|
|
9406
9454
|
M(e) && (e = [e]);
|
|
9407
9455
|
const n = this.options.preload || [], l = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
9408
9456
|
return l.length ? (this.options.preload = n.concat(l), this.loadResources((c) => {
|
|
@@ -9411,29 +9459,29 @@ class u1 extends b1 {
|
|
|
9411
9459
|
}
|
|
9412
9460
|
dir(e) {
|
|
9413
9461
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
9414
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new
|
|
9462
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], s = this.services && this.services.languageUtils || new te(ne());
|
|
9415
9463
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
9416
9464
|
}
|
|
9417
9465
|
static createInstance() {
|
|
9418
9466
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
9419
|
-
return new
|
|
9467
|
+
return new k1(e, t);
|
|
9420
9468
|
}
|
|
9421
9469
|
cloneInstance() {
|
|
9422
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
9470
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
|
9423
9471
|
const s = e.forkResourceStore;
|
|
9424
9472
|
s && delete e.forkResourceStore;
|
|
9425
9473
|
const n = {
|
|
9426
9474
|
...this.options,
|
|
9427
9475
|
...e,
|
|
9428
9476
|
isClone: !0
|
|
9429
|
-
}, l = new
|
|
9477
|
+
}, l = new k1(n);
|
|
9430
9478
|
return (e.debug !== void 0 || e.prefix !== void 0) && (l.logger = l.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
9431
9479
|
l[o] = this[o];
|
|
9432
9480
|
}), l.services = {
|
|
9433
9481
|
...this.services
|
|
9434
9482
|
}, l.services.utils = {
|
|
9435
9483
|
hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
|
|
9436
|
-
}, s && (l.store = new
|
|
9484
|
+
}, s && (l.store = new X1(this.store.data, n), l.services.resourceStore = l.store), l.translator = new _1(l.services, n), l.translator.on("*", function(o) {
|
|
9437
9485
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), a = 1; a < d; a++)
|
|
9438
9486
|
g[a - 1] = arguments[a];
|
|
9439
9487
|
l.emit(o, ...g);
|
|
@@ -9451,42 +9499,42 @@ class u1 extends b1 {
|
|
|
9451
9499
|
};
|
|
9452
9500
|
}
|
|
9453
9501
|
}
|
|
9454
|
-
const
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
const
|
|
9471
|
-
archived:
|
|
9472
|
-
deleted:
|
|
9473
|
-
},
|
|
9474
|
-
archived:
|
|
9475
|
-
deleted:
|
|
9502
|
+
const P = k1.createInstance();
|
|
9503
|
+
P.createInstance = k1.createInstance;
|
|
9504
|
+
P.createInstance;
|
|
9505
|
+
P.dir;
|
|
9506
|
+
P.init;
|
|
9507
|
+
P.loadResources;
|
|
9508
|
+
P.reloadResources;
|
|
9509
|
+
P.use;
|
|
9510
|
+
P.changeLanguage;
|
|
9511
|
+
P.getFixedT;
|
|
9512
|
+
P.t;
|
|
9513
|
+
P.exists;
|
|
9514
|
+
P.setDefaultNamespace;
|
|
9515
|
+
P.hasLoadedNamespace;
|
|
9516
|
+
P.loadNamespaces;
|
|
9517
|
+
P.loadLanguages;
|
|
9518
|
+
const w0 = "Archived", m0 = "Deleted", k0 = {
|
|
9519
|
+
archived: w0,
|
|
9520
|
+
deleted: m0
|
|
9521
|
+
}, L0 = "Заархивирован", v0 = "Удалён", N0 = {
|
|
9522
|
+
archived: L0,
|
|
9523
|
+
deleted: v0
|
|
9476
9524
|
};
|
|
9477
|
-
|
|
9525
|
+
P.use(G3).init({
|
|
9478
9526
|
defaultNS: "common",
|
|
9479
9527
|
lng: "en",
|
|
9480
9528
|
resources: {
|
|
9481
9529
|
en: {
|
|
9482
|
-
common:
|
|
9530
|
+
common: k0
|
|
9483
9531
|
},
|
|
9484
9532
|
ru: {
|
|
9485
|
-
common:
|
|
9533
|
+
common: N0
|
|
9486
9534
|
}
|
|
9487
9535
|
}
|
|
9488
9536
|
});
|
|
9489
|
-
const
|
|
9537
|
+
const V0 = L1(
|
|
9490
9538
|
({
|
|
9491
9539
|
fetchParams: i,
|
|
9492
9540
|
mode: e = void 0,
|
|
@@ -9498,45 +9546,45 @@ const R0 = y1(
|
|
|
9498
9546
|
allowEmpty: o = !1,
|
|
9499
9547
|
showAvatar: d = !1
|
|
9500
9548
|
}, g) => {
|
|
9501
|
-
const { axiosPeople: a, locale: h } =
|
|
9502
|
-
if (
|
|
9549
|
+
const { axiosPeople: a, locale: h } = o1(be), { t: u } = Y3("common", { lng: h }), [p, k] = A([]), [R, L] = A(!0), H = Q(p), b = Q(null);
|
|
9550
|
+
if (oe(g, () => b.current), !a)
|
|
9503
9551
|
throw new Error(
|
|
9504
9552
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
9505
9553
|
Please provide it via SNMTUiContext.`
|
|
9506
9554
|
);
|
|
9507
|
-
const _ =
|
|
9508
|
-
(
|
|
9509
|
-
let
|
|
9510
|
-
return
|
|
9555
|
+
const _ = G(
|
|
9556
|
+
(O) => {
|
|
9557
|
+
let I = "";
|
|
9558
|
+
return O.deletedAt && (I += `[${u("deleted")}] `), O.status === M1.ARCHIVED && (I += `[${u("archived")}] `), `${I}${O.firstName} ${O.lastName}`;
|
|
9511
9559
|
},
|
|
9512
9560
|
[u]
|
|
9513
|
-
), f =
|
|
9561
|
+
), f = G(
|
|
9514
9562
|
async ({
|
|
9515
|
-
offset:
|
|
9516
|
-
limit:
|
|
9517
|
-
search:
|
|
9563
|
+
offset: O,
|
|
9564
|
+
limit: I,
|
|
9565
|
+
search: W
|
|
9518
9566
|
}) => {
|
|
9519
|
-
var
|
|
9567
|
+
var j, K, V;
|
|
9520
9568
|
try {
|
|
9521
|
-
const
|
|
9522
|
-
offset:
|
|
9523
|
-
limit:
|
|
9524
|
-
search:
|
|
9569
|
+
const D = await a.post("v1/users/search", {
|
|
9570
|
+
offset: O,
|
|
9571
|
+
limit: I,
|
|
9572
|
+
search: W,
|
|
9525
9573
|
...i,
|
|
9526
9574
|
includeCount: !0
|
|
9527
|
-
}), { data:
|
|
9575
|
+
}), { data: B, metadata: Y } = D.data;
|
|
9528
9576
|
return {
|
|
9529
|
-
options:
|
|
9577
|
+
options: B.map((z) => ({
|
|
9530
9578
|
value: z.id,
|
|
9531
9579
|
label: _(z),
|
|
9532
9580
|
image: d ? z.avatarUrl : void 0
|
|
9533
9581
|
})),
|
|
9534
|
-
count:
|
|
9582
|
+
count: Y.count
|
|
9535
9583
|
};
|
|
9536
|
-
} catch (
|
|
9584
|
+
} catch (D) {
|
|
9537
9585
|
return c && c({
|
|
9538
|
-
status: ((
|
|
9539
|
-
message: ((
|
|
9586
|
+
status: ((j = D.response) == null ? void 0 : j.status) ?? 500,
|
|
9587
|
+
message: ((V = (K = D.response) == null ? void 0 : K.data) == null ? void 0 : V.message) ?? "Error while fetching options"
|
|
9540
9588
|
}), {
|
|
9541
9589
|
options: [],
|
|
9542
9590
|
count: 0
|
|
@@ -9544,81 +9592,81 @@ const R0 = y1(
|
|
|
9544
9592
|
}
|
|
9545
9593
|
},
|
|
9546
9594
|
[a, i, _, d, c]
|
|
9547
|
-
),
|
|
9548
|
-
async (
|
|
9549
|
-
var
|
|
9595
|
+
), m = G(
|
|
9596
|
+
async (O) => {
|
|
9597
|
+
var I, W, j;
|
|
9550
9598
|
try {
|
|
9551
|
-
const
|
|
9552
|
-
(
|
|
9599
|
+
const K = O.filter(
|
|
9600
|
+
(B) => !H.current.some((Y) => Y.value === B)
|
|
9553
9601
|
);
|
|
9554
|
-
let
|
|
9555
|
-
|
|
9602
|
+
let V = [];
|
|
9603
|
+
K.length && (V = (await a.post("v1/users/search", {
|
|
9556
9604
|
filters: {
|
|
9557
|
-
id:
|
|
9558
|
-
status: [
|
|
9605
|
+
id: K,
|
|
9606
|
+
status: [M1.ACTIVE, M1.ARCHIVED]
|
|
9559
9607
|
}
|
|
9560
9608
|
})).data.data);
|
|
9561
|
-
const
|
|
9562
|
-
value:
|
|
9563
|
-
label: _(
|
|
9564
|
-
image: d ?
|
|
9609
|
+
const D = V.map((B) => ({
|
|
9610
|
+
value: B.id,
|
|
9611
|
+
label: _(B),
|
|
9612
|
+
image: d ? B.avatarUrl : void 0
|
|
9565
9613
|
}));
|
|
9566
|
-
return [...
|
|
9567
|
-
} catch (
|
|
9614
|
+
return [...H.current, ...D];
|
|
9615
|
+
} catch (K) {
|
|
9568
9616
|
return c && c({
|
|
9569
|
-
status: ((
|
|
9570
|
-
message: ((
|
|
9617
|
+
status: ((I = K.response) == null ? void 0 : I.status) ?? 500,
|
|
9618
|
+
message: ((j = (W = K.response) == null ? void 0 : W.data) == null ? void 0 : j.message) ?? "Error while fetching selected items"
|
|
9571
9619
|
}), [];
|
|
9572
9620
|
}
|
|
9573
9621
|
},
|
|
9574
9622
|
[a, _, c, d]
|
|
9575
9623
|
);
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
}, [p]),
|
|
9579
|
-
var
|
|
9580
|
-
(
|
|
9581
|
-
}, [i]),
|
|
9624
|
+
T(() => {
|
|
9625
|
+
H.current = p;
|
|
9626
|
+
}, [p]), T(() => {
|
|
9627
|
+
var O;
|
|
9628
|
+
(O = b.current) == null || O.refetchOptions();
|
|
9629
|
+
}, [i]), T(() => {
|
|
9582
9630
|
if (!n) {
|
|
9583
|
-
|
|
9631
|
+
L(!1);
|
|
9584
9632
|
return;
|
|
9585
9633
|
}
|
|
9586
9634
|
(async () => {
|
|
9587
|
-
const
|
|
9588
|
-
|
|
9635
|
+
const I = Array.isArray(n) ? n : [n], W = await m(I);
|
|
9636
|
+
k(W), L(!1);
|
|
9589
9637
|
})();
|
|
9590
|
-
}, [
|
|
9591
|
-
const y =
|
|
9638
|
+
}, [m, n]);
|
|
9639
|
+
const y = G(
|
|
9592
9640
|
async ({
|
|
9593
|
-
limit:
|
|
9594
|
-
offset:
|
|
9595
|
-
search:
|
|
9641
|
+
limit: O,
|
|
9642
|
+
offset: I,
|
|
9643
|
+
search: W
|
|
9596
9644
|
}) => {
|
|
9597
|
-
const { count:
|
|
9598
|
-
offset:
|
|
9599
|
-
limit:
|
|
9600
|
-
search:
|
|
9645
|
+
const { count: j, ...K } = await f({
|
|
9646
|
+
offset: I,
|
|
9647
|
+
limit: O,
|
|
9648
|
+
search: W
|
|
9601
9649
|
});
|
|
9602
|
-
let
|
|
9603
|
-
return o &&
|
|
9604
|
-
options:
|
|
9605
|
-
count:
|
|
9606
|
-
limit:
|
|
9650
|
+
let V = K.options;
|
|
9651
|
+
return o && I === 0 && (V = [{ value: null, label: "None" }, ...V]), {
|
|
9652
|
+
options: V,
|
|
9653
|
+
count: j,
|
|
9654
|
+
limit: O
|
|
9607
9655
|
};
|
|
9608
9656
|
},
|
|
9609
9657
|
[o, f]
|
|
9610
9658
|
);
|
|
9611
9659
|
if (R)
|
|
9612
|
-
return /* @__PURE__ */ r(
|
|
9613
|
-
const
|
|
9660
|
+
return /* @__PURE__ */ r(V3, {});
|
|
9661
|
+
const v = {
|
|
9614
9662
|
ref: b,
|
|
9615
9663
|
placeholder: t,
|
|
9616
9664
|
disabled: s
|
|
9617
9665
|
};
|
|
9618
9666
|
return e ? /* @__PURE__ */ r(
|
|
9619
|
-
|
|
9667
|
+
$1,
|
|
9620
9668
|
{
|
|
9621
|
-
...
|
|
9669
|
+
...v,
|
|
9622
9670
|
mode: e,
|
|
9623
9671
|
value: n,
|
|
9624
9672
|
onChange: l,
|
|
@@ -9627,9 +9675,9 @@ const R0 = y1(
|
|
|
9627
9675
|
extraOptions: p
|
|
9628
9676
|
}
|
|
9629
9677
|
) : /* @__PURE__ */ r(
|
|
9630
|
-
|
|
9678
|
+
$1,
|
|
9631
9679
|
{
|
|
9632
|
-
...
|
|
9680
|
+
...v,
|
|
9633
9681
|
value: n,
|
|
9634
9682
|
mode: void 0,
|
|
9635
9683
|
onChange: l,
|
|
@@ -9641,5 +9689,5 @@ const R0 = y1(
|
|
|
9641
9689
|
}
|
|
9642
9690
|
);
|
|
9643
9691
|
export {
|
|
9644
|
-
|
|
9692
|
+
V0 as UserSelect
|
|
9645
9693
|
};
|