@snmt-react-ui/user-select 2.9.8 → 2.9.10
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 +1199 -921
- package/package.json +4 -4
package/dist/user-select.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var L2 = Object.defineProperty;
|
|
2
2
|
var k2 = (i, e, t) => e in i ? L2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var K1 = (i, e, t) => k2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
5
|
import { jsx as r, Fragment as i1, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { forwardRef as
|
|
7
|
-
import { Select as N2, Tag as R2, Flex as x2, Checkbox as
|
|
6
|
+
import { forwardRef as d1, useState as O, useRef as J, useCallback as $, useEffect as G, useMemo as v2, useImperativeHandle as k1, useContext as r1, createContext as C1 } from "react";
|
|
7
|
+
import { Select as N2, Tag as R2, Flex as x2, Checkbox as _2, Avatar as M2, Typography as G1, Popover as b2 } from "antd";
|
|
8
8
|
import { SNMTUiContext as y2 } from "@snmt-react-ui/core";
|
|
9
|
-
var H2 = Object.defineProperty,
|
|
9
|
+
var H2 = Object.defineProperty, E2 = (i, e, t) => e in i ? H2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, V2 = (i, e, t) => E2(i, e + "", t), I2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function A2() {
|
|
11
11
|
if (console && console.warn) {
|
|
12
12
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
@@ -14,11 +14,11 @@ function A2() {
|
|
|
14
14
|
s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const B1 = {};
|
|
18
18
|
function O1() {
|
|
19
19
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
20
20
|
e[t] = arguments[t];
|
|
21
|
-
s1(e[0]) &&
|
|
21
|
+
s1(e[0]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), A2(...e));
|
|
22
22
|
}
|
|
23
23
|
const l2 = (i, e) => () => {
|
|
24
24
|
if (i.isInitialized)
|
|
@@ -31,9 +31,9 @@ const l2 = (i, e) => () => {
|
|
|
31
31
|
};
|
|
32
32
|
i.on("initialized", t);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, P1 = (i, e, t) => {
|
|
35
35
|
i.loadNamespaces(e, l2(i, t));
|
|
36
|
-
},
|
|
36
|
+
}, Y1 = (i, e, t, s) => {
|
|
37
37
|
s1(t) && (t = [t]), t.forEach((n) => {
|
|
38
38
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
39
39
|
}), i.loadLanguages(e, l2(i, s));
|
|
@@ -88,10 +88,10 @@ let B2 = {
|
|
|
88
88
|
};
|
|
89
89
|
const P2 = () => B2;
|
|
90
90
|
let Y2;
|
|
91
|
-
const $2 = () => Y2, j2 =
|
|
91
|
+
const $2 = () => Y2, j2 = C1();
|
|
92
92
|
class F2 {
|
|
93
93
|
constructor() {
|
|
94
|
-
|
|
94
|
+
V2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
95
95
|
}
|
|
96
96
|
addUsedNamespaces(e) {
|
|
97
97
|
e.forEach((t) => {
|
|
@@ -100,11 +100,11 @@ class F2 {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
const W2 = (i, e) => {
|
|
103
|
-
const t =
|
|
104
|
-
return
|
|
103
|
+
const t = J();
|
|
104
|
+
return G(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
|
-
},
|
|
107
|
+
}, h2 = (i, e, t, s) => i.getFixedT(e, t, s), U2 = (i, e, t, s) => $(h2(i, e, t, s), [i, e, t, s]), z2 = function(i) {
|
|
108
108
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
109
109
|
const {
|
|
110
110
|
i18n: t
|
|
@@ -114,8 +114,8 @@ const W2 = (i, e) => {
|
|
|
114
114
|
} = r1(j2) || {}, o = t || s || $2();
|
|
115
115
|
if (o && !o.reportNamespaces && (o.reportNamespaces = new F2()), !o) {
|
|
116
116
|
O1("You will need to pass in an i18next instance by using initReactI18next");
|
|
117
|
-
const
|
|
118
|
-
return x.t =
|
|
117
|
+
const f = (_, R) => s1(R) ? R : S2(R) && s1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, x = [f, {}, !1];
|
|
118
|
+
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
119
119
|
}
|
|
120
120
|
o.options.react && o.options.react.wait !== void 0 && O1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
121
121
|
const c = {
|
|
@@ -128,33 +128,33 @@ const W2 = (i, e) => {
|
|
|
128
128
|
} = c;
|
|
129
129
|
let d = i;
|
|
130
130
|
d = s1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
131
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((
|
|
131
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Z2(f, o, c)), h = U2(o, e.lng || null, c.nsMode === "fallback" ? d : d[0], C), g = () => h, p = () => h2(o, e.lng || null, c.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
|
|
132
132
|
let m = d.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const b = W2(m), y = J(!0);
|
|
135
|
+
G(() => {
|
|
136
136
|
const {
|
|
137
|
-
bindI18n:
|
|
137
|
+
bindI18n: f,
|
|
138
138
|
bindI18nStore: x
|
|
139
139
|
} = c;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}) :
|
|
143
|
-
|
|
144
|
-
})), l &&
|
|
145
|
-
const
|
|
146
|
-
|
|
140
|
+
y.current = !0, !l && !a && (e.lng ? Y1(o, e.lng, d, () => {
|
|
141
|
+
y.current && v(p);
|
|
142
|
+
}) : P1(o, d, () => {
|
|
143
|
+
y.current && v(p);
|
|
144
|
+
})), l && b && b !== m && y.current && v(p);
|
|
145
|
+
const _ = () => {
|
|
146
|
+
y.current && v(p);
|
|
147
147
|
};
|
|
148
|
-
return
|
|
149
|
-
|
|
148
|
+
return f && o && o.on(f, _), x && o && o.store.on(x, _), () => {
|
|
149
|
+
y.current = !1, f && o && f.split(" ").forEach((R) => o.off(R, _)), x && o && x.split(" ").forEach((R) => o.store.off(R, _));
|
|
150
150
|
};
|
|
151
|
-
}, [o, m]),
|
|
152
|
-
|
|
151
|
+
}, [o, m]), G(() => {
|
|
152
|
+
y.current && l && v(g);
|
|
153
153
|
}, [o, C, l]);
|
|
154
154
|
const A = [w, o, l];
|
|
155
155
|
if (A.t = w, A.i18n = o, A.ready = l, l || !l && !a) return A;
|
|
156
|
-
throw new Promise((
|
|
157
|
-
e.lng ?
|
|
156
|
+
throw new Promise((f) => {
|
|
157
|
+
e.lng ? Y1(o, e.lng, d, () => f()) : P1(o, d, () => f());
|
|
158
158
|
});
|
|
159
159
|
}, f1 = ({
|
|
160
160
|
children: i,
|
|
@@ -181,7 +181,7 @@ const W2 = (i, e) => {
|
|
|
181
181
|
), J2 = ({ shape: i = "circle", size: e = 32, children: t, ...s }) => {
|
|
182
182
|
const n = typeof s.src == "string";
|
|
183
183
|
return /* @__PURE__ */ r(
|
|
184
|
-
|
|
184
|
+
M2,
|
|
185
185
|
{
|
|
186
186
|
className: `snmt-avatar ${n ? "image" : ""}`,
|
|
187
187
|
shape: i,
|
|
@@ -193,45 +193,102 @@ const W2 = (i, e) => {
|
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
195
|
var Q = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", 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.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(Q || {});
|
|
196
|
-
const
|
|
196
|
+
const T1 = C1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
200
|
-
|
|
201
|
-
const q2 =
|
|
200
|
+
T1.Provider;
|
|
201
|
+
const { Title: q2, Text: Q2 } = G1, X2 = {
|
|
202
|
+
h1: 1,
|
|
203
|
+
h2: 2,
|
|
204
|
+
h3: 3,
|
|
205
|
+
h4: 4
|
|
206
|
+
}, e5 = d1(
|
|
207
|
+
({
|
|
208
|
+
align: i = "inherit",
|
|
209
|
+
variant: e = "body1",
|
|
210
|
+
color: t,
|
|
211
|
+
children: s,
|
|
212
|
+
onClick: n,
|
|
213
|
+
collapsed: o,
|
|
214
|
+
whiteSpace: c = "normal",
|
|
215
|
+
/** This prop allows you to enable tooltip if text size is too big */
|
|
216
|
+
trim: a = !1
|
|
217
|
+
}, C) => {
|
|
218
|
+
const d = J(null);
|
|
219
|
+
k1(C, () => d.current);
|
|
220
|
+
const [l, h] = O(!1);
|
|
221
|
+
G(() => {
|
|
222
|
+
var v;
|
|
223
|
+
if (!a) return;
|
|
224
|
+
const m = () => {
|
|
225
|
+
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
226
|
+
};
|
|
227
|
+
m();
|
|
228
|
+
const b = new ResizeObserver(m);
|
|
229
|
+
return d.current && b.observe(d.current), (v = d.current) != null && v.parentElement && b.observe(d.current.parentElement), () => {
|
|
230
|
+
b.disconnect();
|
|
231
|
+
};
|
|
232
|
+
}, [a]);
|
|
233
|
+
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
234
|
+
let p = `snmt-typography snmt-typography-${e}`;
|
|
235
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
236
|
+
const w = {
|
|
237
|
+
className: p,
|
|
238
|
+
style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
|
|
239
|
+
onClick: n,
|
|
240
|
+
ref: d,
|
|
241
|
+
ellipsis: a && l ? {
|
|
242
|
+
tooltip: {
|
|
243
|
+
title: s,
|
|
244
|
+
overlayClassName: "snmt-tooltip"
|
|
245
|
+
}
|
|
246
|
+
} : void 0
|
|
247
|
+
};
|
|
248
|
+
return g ? /* @__PURE__ */ r(q2, { level: X2[e], ...w, children: s }) : /* @__PURE__ */ r(Q2, { ...w, children: s });
|
|
249
|
+
}
|
|
250
|
+
), t5 = ({
|
|
202
251
|
checked: i = !0,
|
|
203
252
|
indeterminate: e = !1,
|
|
204
253
|
children: t,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
254
|
+
label: s,
|
|
255
|
+
onChange: n,
|
|
256
|
+
disabled: o = !1,
|
|
257
|
+
disableUncheck: c = !1
|
|
208
258
|
}) => {
|
|
209
|
-
const [
|
|
210
|
-
|
|
211
|
-
|
|
259
|
+
const [a, C] = O(i), [d, l] = O(e);
|
|
260
|
+
G(() => {
|
|
261
|
+
C(i), l(e);
|
|
212
262
|
}, [i, e]);
|
|
213
|
-
const { theme:
|
|
263
|
+
const { theme: h } = r1(T1);
|
|
214
264
|
return /* @__PURE__ */ r(
|
|
215
|
-
|
|
265
|
+
_2,
|
|
216
266
|
{
|
|
217
|
-
className: `snmt-checkbox snmt-checkbox-${
|
|
218
|
-
checked:
|
|
219
|
-
indeterminate:
|
|
220
|
-
onChange: (
|
|
221
|
-
|
|
267
|
+
className: `snmt-checkbox snmt-checkbox-${h}`,
|
|
268
|
+
checked: a,
|
|
269
|
+
indeterminate: d,
|
|
270
|
+
onChange: (g) => {
|
|
271
|
+
c && a || (l(!1), C(g.target.checked), n && n(g));
|
|
222
272
|
},
|
|
223
|
-
disabled:
|
|
224
|
-
children: t
|
|
273
|
+
disabled: o,
|
|
274
|
+
children: t || s && /* @__PURE__ */ r(
|
|
275
|
+
e5,
|
|
276
|
+
{
|
|
277
|
+
variant: "body2",
|
|
278
|
+
color: o ? Q.GREY_DARK_2 : Q.GREY_DARK_5,
|
|
279
|
+
children: s
|
|
280
|
+
}
|
|
281
|
+
)
|
|
225
282
|
}
|
|
226
283
|
);
|
|
227
284
|
};
|
|
228
|
-
var
|
|
229
|
-
const
|
|
285
|
+
var L = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", 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.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(L || {});
|
|
286
|
+
const c2 = C1({
|
|
230
287
|
locale: "en",
|
|
231
288
|
theme: "light"
|
|
232
289
|
});
|
|
233
|
-
|
|
234
|
-
const
|
|
290
|
+
c2.Provider;
|
|
291
|
+
const i5 = ({
|
|
235
292
|
width: i = 20,
|
|
236
293
|
height: e = 20,
|
|
237
294
|
color: t = "#001E52",
|
|
@@ -258,10 +315,10 @@ const Q2 = ({
|
|
|
258
315
|
}
|
|
259
316
|
)
|
|
260
317
|
}
|
|
261
|
-
),
|
|
318
|
+
), s5 = ({
|
|
262
319
|
width: i = 20,
|
|
263
320
|
height: e = 20,
|
|
264
|
-
color: t =
|
|
321
|
+
color: t = L.GREY_DARK_5,
|
|
265
322
|
className: s,
|
|
266
323
|
onClick: n
|
|
267
324
|
}) => /* @__PURE__ */ u(
|
|
@@ -298,7 +355,7 @@ const Q2 = ({
|
|
|
298
355
|
)
|
|
299
356
|
]
|
|
300
357
|
}
|
|
301
|
-
),
|
|
358
|
+
), n5 = ({
|
|
302
359
|
width: i = 20,
|
|
303
360
|
height: e = 20,
|
|
304
361
|
color: t = "#001E52",
|
|
@@ -333,10 +390,112 @@ const Q2 = ({
|
|
|
333
390
|
)
|
|
334
391
|
]
|
|
335
392
|
}
|
|
336
|
-
),
|
|
393
|
+
), r5 = ({
|
|
337
394
|
width: i = 20,
|
|
338
395
|
height: e = 20,
|
|
339
|
-
color: t =
|
|
396
|
+
color: t = L.GREY_DARK_5,
|
|
397
|
+
className: s,
|
|
398
|
+
onClick: n
|
|
399
|
+
}) => /* @__PURE__ */ u(
|
|
400
|
+
"svg",
|
|
401
|
+
{
|
|
402
|
+
width: i,
|
|
403
|
+
height: e,
|
|
404
|
+
className: s,
|
|
405
|
+
onClick: n,
|
|
406
|
+
viewBox: "0 0 25 25",
|
|
407
|
+
fill: "none",
|
|
408
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
409
|
+
children: [
|
|
410
|
+
/* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
|
|
411
|
+
"path",
|
|
412
|
+
{
|
|
413
|
+
d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
|
|
414
|
+
fill: t
|
|
415
|
+
}
|
|
416
|
+
) }),
|
|
417
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_1_2043", children: /* @__PURE__ */ r("rect", { width: "24", height: "24", fill: "white", transform: "translate(0.5 0.5)" }) }) })
|
|
418
|
+
]
|
|
419
|
+
}
|
|
420
|
+
), o5 = ({
|
|
421
|
+
width: i = 20,
|
|
422
|
+
height: e = 20,
|
|
423
|
+
color: t = L.GREY_DARK_5,
|
|
424
|
+
className: s,
|
|
425
|
+
onClick: n
|
|
426
|
+
}) => /* @__PURE__ */ r(
|
|
427
|
+
"svg",
|
|
428
|
+
{
|
|
429
|
+
width: i,
|
|
430
|
+
height: e,
|
|
431
|
+
className: s,
|
|
432
|
+
onClick: n,
|
|
433
|
+
viewBox: "0 0 25 25",
|
|
434
|
+
fill: "none",
|
|
435
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
436
|
+
children: /* @__PURE__ */ r(
|
|
437
|
+
"path",
|
|
438
|
+
{
|
|
439
|
+
d: "M10.0303 5.96967C9.73744 5.67678 9.26268 5.67678 8.96978 5.96967C8.67689 6.26256 8.67689 6.73732 8.96978 7.03022L14.4395 12.4999L8.96978 17.9697L8.91803 18.0263C8.67772 18.3209 8.69518 18.7556 8.96978 19.0302C9.24439 19.3048 9.67911 19.3223 9.97369 19.082L10.0303 19.0302L16.0303 13.0302C16.3232 12.7373 16.3232 12.2626 16.0303 11.9697L10.0303 5.96967Z",
|
|
440
|
+
fill: t
|
|
441
|
+
}
|
|
442
|
+
)
|
|
443
|
+
}
|
|
444
|
+
), a5 = ({
|
|
445
|
+
width: i = 20,
|
|
446
|
+
height: e = 20,
|
|
447
|
+
color: t = L.GREY_DARK_5,
|
|
448
|
+
className: s,
|
|
449
|
+
onClick: n
|
|
450
|
+
}) => /* @__PURE__ */ u(
|
|
451
|
+
"svg",
|
|
452
|
+
{
|
|
453
|
+
width: i,
|
|
454
|
+
height: e,
|
|
455
|
+
className: s,
|
|
456
|
+
onClick: n,
|
|
457
|
+
viewBox: "0 0 25 25",
|
|
458
|
+
fill: "none",
|
|
459
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
460
|
+
children: [
|
|
461
|
+
/* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
|
|
462
|
+
"path",
|
|
463
|
+
{
|
|
464
|
+
d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
|
|
465
|
+
fill: t
|
|
466
|
+
}
|
|
467
|
+
) }),
|
|
468
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_1_2039", children: /* @__PURE__ */ r("rect", { width: "24", height: "24", fill: "white", transform: "translate(0.5 0.5)" }) }) })
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
), l5 = ({
|
|
472
|
+
width: i = 20,
|
|
473
|
+
height: e = 20,
|
|
474
|
+
color: t = L.GREY_DARK_5,
|
|
475
|
+
className: s,
|
|
476
|
+
onClick: n
|
|
477
|
+
}) => /* @__PURE__ */ r(
|
|
478
|
+
"svg",
|
|
479
|
+
{
|
|
480
|
+
width: i,
|
|
481
|
+
height: e,
|
|
482
|
+
className: s,
|
|
483
|
+
onClick: n,
|
|
484
|
+
viewBox: "0 0 25 25",
|
|
485
|
+
fill: "none",
|
|
486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
487
|
+
children: /* @__PURE__ */ r(
|
|
488
|
+
"path",
|
|
489
|
+
{
|
|
490
|
+
d: "M14.9697 5.96967C15.2626 5.67678 15.7373 5.67678 16.0302 5.96967C16.3231 6.26256 16.3231 6.73732 16.0302 7.03022L10.5605 12.4999L16.0302 17.9697L16.082 18.0263C16.3223 18.3209 16.3048 18.7556 16.0302 19.0302C15.7556 19.3048 15.3209 19.3223 15.0263 19.082L14.9697 19.0302L8.96967 13.0302C8.67678 12.7373 8.67678 12.2626 8.96967 11.9697L14.9697 5.96967Z",
|
|
491
|
+
fill: t
|
|
492
|
+
}
|
|
493
|
+
)
|
|
494
|
+
}
|
|
495
|
+
), h5 = ({
|
|
496
|
+
width: i = 20,
|
|
497
|
+
height: e = 20,
|
|
498
|
+
color: t = L.GREY_DARK_5,
|
|
340
499
|
className: s,
|
|
341
500
|
onClick: n
|
|
342
501
|
}) => /* @__PURE__ */ u(
|
|
@@ -380,10 +539,10 @@ const Q2 = ({
|
|
|
380
539
|
)
|
|
381
540
|
]
|
|
382
541
|
}
|
|
383
|
-
),
|
|
542
|
+
), c5 = ({
|
|
384
543
|
width: i = 20,
|
|
385
544
|
height: e = 20,
|
|
386
|
-
color: t =
|
|
545
|
+
color: t = L.GREY_DARK_5,
|
|
387
546
|
className: s,
|
|
388
547
|
onClick: n
|
|
389
548
|
}) => /* @__PURE__ */ r(
|
|
@@ -404,10 +563,10 @@ const Q2 = ({
|
|
|
404
563
|
}
|
|
405
564
|
)
|
|
406
565
|
}
|
|
407
|
-
),
|
|
566
|
+
), d5 = ({
|
|
408
567
|
width: i = 20,
|
|
409
568
|
height: e = 20,
|
|
410
|
-
color: t =
|
|
569
|
+
color: t = L.GREY_DARK_5,
|
|
411
570
|
className: s,
|
|
412
571
|
onClick: n
|
|
413
572
|
}) => /* @__PURE__ */ r(
|
|
@@ -428,10 +587,10 @@ const Q2 = ({
|
|
|
428
587
|
}
|
|
429
588
|
)
|
|
430
589
|
}
|
|
431
|
-
),
|
|
590
|
+
), C5 = ({
|
|
432
591
|
width: i = 20,
|
|
433
592
|
height: e = 20,
|
|
434
|
-
color: t =
|
|
593
|
+
color: t = L.GREY_DARK_5,
|
|
435
594
|
className: s,
|
|
436
595
|
onClick: n
|
|
437
596
|
}) => /* @__PURE__ */ r(
|
|
@@ -452,10 +611,10 @@ const Q2 = ({
|
|
|
452
611
|
}
|
|
453
612
|
)
|
|
454
613
|
}
|
|
455
|
-
),
|
|
614
|
+
), g5 = ({
|
|
456
615
|
width: i = 20,
|
|
457
616
|
height: e = 20,
|
|
458
|
-
color: t =
|
|
617
|
+
color: t = L.GREY_DARK_5,
|
|
459
618
|
className: s,
|
|
460
619
|
onClick: n
|
|
461
620
|
}) => /* @__PURE__ */ u(
|
|
@@ -513,10 +672,10 @@ const Q2 = ({
|
|
|
513
672
|
)
|
|
514
673
|
]
|
|
515
674
|
}
|
|
516
|
-
),
|
|
675
|
+
), u5 = ({
|
|
517
676
|
width: i = 20,
|
|
518
677
|
height: e = 20,
|
|
519
|
-
color: t =
|
|
678
|
+
color: t = L.GREY_DARK_5,
|
|
520
679
|
className: s,
|
|
521
680
|
onClick: n
|
|
522
681
|
}) => /* @__PURE__ */ u(
|
|
@@ -560,10 +719,10 @@ const Q2 = ({
|
|
|
560
719
|
)
|
|
561
720
|
]
|
|
562
721
|
}
|
|
563
|
-
),
|
|
722
|
+
), p5 = ({
|
|
564
723
|
width: i = 20,
|
|
565
724
|
height: e = 20,
|
|
566
|
-
color: t =
|
|
725
|
+
color: t = L.GREY_DARK_5,
|
|
567
726
|
className: s,
|
|
568
727
|
onClick: n
|
|
569
728
|
}) => /* @__PURE__ */ u(
|
|
@@ -600,10 +759,10 @@ const Q2 = ({
|
|
|
600
759
|
)
|
|
601
760
|
]
|
|
602
761
|
}
|
|
603
|
-
),
|
|
762
|
+
), f5 = ({
|
|
604
763
|
width: i = 20,
|
|
605
764
|
height: e = 20,
|
|
606
|
-
color: t =
|
|
765
|
+
color: t = L.GREY_DARK_5,
|
|
607
766
|
className: s,
|
|
608
767
|
onClick: n
|
|
609
768
|
}) => /* @__PURE__ */ u(
|
|
@@ -640,10 +799,10 @@ const Q2 = ({
|
|
|
640
799
|
)
|
|
641
800
|
]
|
|
642
801
|
}
|
|
643
|
-
),
|
|
802
|
+
), m5 = ({
|
|
644
803
|
width: i = 20,
|
|
645
804
|
height: e = 20,
|
|
646
|
-
color: t =
|
|
805
|
+
color: t = L.GREY_DARK_5,
|
|
647
806
|
className: s,
|
|
648
807
|
onClick: n
|
|
649
808
|
}) => /* @__PURE__ */ u(
|
|
@@ -687,10 +846,10 @@ const Q2 = ({
|
|
|
687
846
|
)
|
|
688
847
|
]
|
|
689
848
|
}
|
|
690
|
-
),
|
|
849
|
+
), w5 = ({
|
|
691
850
|
width: i = 20,
|
|
692
851
|
height: e = 20,
|
|
693
|
-
color: t =
|
|
852
|
+
color: t = L.GREY_DARK_5,
|
|
694
853
|
className: s,
|
|
695
854
|
onClick: n
|
|
696
855
|
}) => /* @__PURE__ */ u(
|
|
@@ -734,10 +893,10 @@ const Q2 = ({
|
|
|
734
893
|
)
|
|
735
894
|
]
|
|
736
895
|
}
|
|
737
|
-
),
|
|
896
|
+
), L5 = ({
|
|
738
897
|
width: i = 20,
|
|
739
898
|
height: e = 20,
|
|
740
|
-
color: t =
|
|
899
|
+
color: t = L.GREY_DARK_5,
|
|
741
900
|
className: s,
|
|
742
901
|
onClick: n
|
|
743
902
|
}) => /* @__PURE__ */ u(
|
|
@@ -781,10 +940,10 @@ const Q2 = ({
|
|
|
781
940
|
)
|
|
782
941
|
]
|
|
783
942
|
}
|
|
784
|
-
),
|
|
943
|
+
), k5 = ({
|
|
785
944
|
width: i = 20,
|
|
786
945
|
height: e = 20,
|
|
787
|
-
color: t =
|
|
946
|
+
color: t = L.GREY_DARK_5,
|
|
788
947
|
className: s,
|
|
789
948
|
onClick: n
|
|
790
949
|
}) => /* @__PURE__ */ u(
|
|
@@ -821,10 +980,10 @@ const Q2 = ({
|
|
|
821
980
|
)
|
|
822
981
|
]
|
|
823
982
|
}
|
|
824
|
-
),
|
|
983
|
+
), v5 = ({
|
|
825
984
|
width: i = 20,
|
|
826
985
|
height: e = 20,
|
|
827
|
-
color: t =
|
|
986
|
+
color: t = L.GREY_DARK_5,
|
|
828
987
|
className: s,
|
|
829
988
|
onClick: n
|
|
830
989
|
}) => /* @__PURE__ */ u(
|
|
@@ -854,10 +1013,10 @@ const Q2 = ({
|
|
|
854
1013
|
)
|
|
855
1014
|
]
|
|
856
1015
|
}
|
|
857
|
-
),
|
|
1016
|
+
), N5 = ({
|
|
858
1017
|
width: i = 20,
|
|
859
1018
|
height: e = 20,
|
|
860
|
-
color: t =
|
|
1019
|
+
color: t = L.GREY_DARK_5,
|
|
861
1020
|
className: s,
|
|
862
1021
|
onClick: n
|
|
863
1022
|
}) => /* @__PURE__ */ u(
|
|
@@ -887,10 +1046,10 @@ const Q2 = ({
|
|
|
887
1046
|
)
|
|
888
1047
|
]
|
|
889
1048
|
}
|
|
890
|
-
),
|
|
1049
|
+
), R5 = ({
|
|
891
1050
|
width: i = 20,
|
|
892
1051
|
height: e = 20,
|
|
893
|
-
color: t =
|
|
1052
|
+
color: t = L.GREY_DARK_5,
|
|
894
1053
|
className: s,
|
|
895
1054
|
onClick: n
|
|
896
1055
|
}) => /* @__PURE__ */ u(
|
|
@@ -920,10 +1079,10 @@ const Q2 = ({
|
|
|
920
1079
|
)
|
|
921
1080
|
]
|
|
922
1081
|
}
|
|
923
|
-
),
|
|
1082
|
+
), x5 = ({
|
|
924
1083
|
width: i = 20,
|
|
925
1084
|
height: e = 20,
|
|
926
|
-
color: t =
|
|
1085
|
+
color: t = L.GREY_DARK_5,
|
|
927
1086
|
className: s,
|
|
928
1087
|
onClick: n
|
|
929
1088
|
}) => /* @__PURE__ */ u(
|
|
@@ -953,10 +1112,10 @@ const Q2 = ({
|
|
|
953
1112
|
)
|
|
954
1113
|
]
|
|
955
1114
|
}
|
|
956
|
-
),
|
|
1115
|
+
), _5 = ({
|
|
957
1116
|
width: i = 20,
|
|
958
1117
|
height: e = 20,
|
|
959
|
-
color: t =
|
|
1118
|
+
color: t = L.GREY_DARK_5,
|
|
960
1119
|
className: s,
|
|
961
1120
|
onClick: n
|
|
962
1121
|
}) => /* @__PURE__ */ u(
|
|
@@ -993,10 +1152,10 @@ const Q2 = ({
|
|
|
993
1152
|
)
|
|
994
1153
|
]
|
|
995
1154
|
}
|
|
996
|
-
),
|
|
1155
|
+
), M5 = ({
|
|
997
1156
|
width: i = 20,
|
|
998
1157
|
height: e = 20,
|
|
999
|
-
color: t =
|
|
1158
|
+
color: t = L.GREY_DARK_5,
|
|
1000
1159
|
className: s,
|
|
1001
1160
|
onClick: n
|
|
1002
1161
|
}) => /* @__PURE__ */ u(
|
|
@@ -1026,10 +1185,10 @@ const Q2 = ({
|
|
|
1026
1185
|
)
|
|
1027
1186
|
]
|
|
1028
1187
|
}
|
|
1029
|
-
),
|
|
1188
|
+
), b5 = ({
|
|
1030
1189
|
width: i = 20,
|
|
1031
1190
|
height: e = 20,
|
|
1032
|
-
color: t =
|
|
1191
|
+
color: t = L.GREY_DARK_5,
|
|
1033
1192
|
className: s,
|
|
1034
1193
|
onClick: n
|
|
1035
1194
|
}) => /* @__PURE__ */ u(
|
|
@@ -1059,7 +1218,7 @@ const Q2 = ({
|
|
|
1059
1218
|
)
|
|
1060
1219
|
]
|
|
1061
1220
|
}
|
|
1062
|
-
),
|
|
1221
|
+
), y5 = ({
|
|
1063
1222
|
width: i = 20,
|
|
1064
1223
|
height: e = 20,
|
|
1065
1224
|
color: t = "#070739",
|
|
@@ -1089,7 +1248,7 @@ const Q2 = ({
|
|
|
1089
1248
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
1090
1249
|
]
|
|
1091
1250
|
}
|
|
1092
|
-
),
|
|
1251
|
+
), H5 = ({
|
|
1093
1252
|
width: i = 20,
|
|
1094
1253
|
height: e = 20,
|
|
1095
1254
|
color: t = "#070739",
|
|
@@ -1127,7 +1286,7 @@ const Q2 = ({
|
|
|
1127
1286
|
)
|
|
1128
1287
|
]
|
|
1129
1288
|
}
|
|
1130
|
-
),
|
|
1289
|
+
), E5 = ({
|
|
1131
1290
|
width: i = 9,
|
|
1132
1291
|
height: e = 5,
|
|
1133
1292
|
color: t = "#001E52",
|
|
@@ -1153,7 +1312,7 @@ const Q2 = ({
|
|
|
1153
1312
|
}
|
|
1154
1313
|
)
|
|
1155
1314
|
}
|
|
1156
|
-
),
|
|
1315
|
+
), V5 = ({
|
|
1157
1316
|
width: i = 20,
|
|
1158
1317
|
height: e = 20,
|
|
1159
1318
|
color: t = "#F2F2F7",
|
|
@@ -1182,7 +1341,7 @@ const Q2 = ({
|
|
|
1182
1341
|
)
|
|
1183
1342
|
]
|
|
1184
1343
|
}
|
|
1185
|
-
),
|
|
1344
|
+
), I5 = ({
|
|
1186
1345
|
width: i = 20,
|
|
1187
1346
|
height: e = 20,
|
|
1188
1347
|
color: t = "#004ED7",
|
|
@@ -1211,7 +1370,7 @@ const Q2 = ({
|
|
|
1211
1370
|
)
|
|
1212
1371
|
]
|
|
1213
1372
|
}
|
|
1214
|
-
),
|
|
1373
|
+
), A5 = ({
|
|
1215
1374
|
width: i = 10,
|
|
1216
1375
|
height: e = 10,
|
|
1217
1376
|
color: t = "#001E52",
|
|
@@ -1240,7 +1399,7 @@ const Q2 = ({
|
|
|
1240
1399
|
)
|
|
1241
1400
|
]
|
|
1242
1401
|
}
|
|
1243
|
-
),
|
|
1402
|
+
), O5 = ({
|
|
1244
1403
|
width: i = 10,
|
|
1245
1404
|
height: e = 10,
|
|
1246
1405
|
color: t = "#001E52",
|
|
@@ -1277,9 +1436,9 @@ const Q2 = ({
|
|
|
1277
1436
|
)
|
|
1278
1437
|
]
|
|
1279
1438
|
}
|
|
1280
|
-
),
|
|
1439
|
+
), Z5 = ({
|
|
1281
1440
|
className: i,
|
|
1282
|
-
color: e =
|
|
1441
|
+
color: e = L.GREY_DARK_5,
|
|
1283
1442
|
height: t = 20,
|
|
1284
1443
|
width: s = 20,
|
|
1285
1444
|
onClick: n
|
|
@@ -1310,9 +1469,9 @@ const Q2 = ({
|
|
|
1310
1469
|
)
|
|
1311
1470
|
]
|
|
1312
1471
|
}
|
|
1313
|
-
),
|
|
1472
|
+
), S5 = ({
|
|
1314
1473
|
className: i,
|
|
1315
|
-
color: e =
|
|
1474
|
+
color: e = L.GREY_DARK_5,
|
|
1316
1475
|
height: t = 20,
|
|
1317
1476
|
width: s = 20,
|
|
1318
1477
|
onClick: n
|
|
@@ -1337,9 +1496,9 @@ const Q2 = ({
|
|
|
1337
1496
|
}
|
|
1338
1497
|
)
|
|
1339
1498
|
}
|
|
1340
|
-
),
|
|
1499
|
+
), D5 = ({
|
|
1341
1500
|
className: i,
|
|
1342
|
-
color: e =
|
|
1501
|
+
color: e = L.GREY_DARK_5,
|
|
1343
1502
|
height: t = 20,
|
|
1344
1503
|
width: s = 20,
|
|
1345
1504
|
onClick: n
|
|
@@ -1364,9 +1523,9 @@ const Q2 = ({
|
|
|
1364
1523
|
}
|
|
1365
1524
|
)
|
|
1366
1525
|
}
|
|
1367
|
-
),
|
|
1526
|
+
), G5 = ({
|
|
1368
1527
|
className: i,
|
|
1369
|
-
color: e =
|
|
1528
|
+
color: e = L.GREY_DARK_5,
|
|
1370
1529
|
height: t = 5,
|
|
1371
1530
|
width: s = 10,
|
|
1372
1531
|
onClick: n
|
|
@@ -1388,9 +1547,9 @@ const Q2 = ({
|
|
|
1388
1547
|
}
|
|
1389
1548
|
)
|
|
1390
1549
|
}
|
|
1391
|
-
),
|
|
1550
|
+
), T5 = ({
|
|
1392
1551
|
className: i,
|
|
1393
|
-
color: e =
|
|
1552
|
+
color: e = L.GREY_DARK_5,
|
|
1394
1553
|
height: t = 5,
|
|
1395
1554
|
width: s = 10,
|
|
1396
1555
|
onClick: n
|
|
@@ -1413,9 +1572,9 @@ const Q2 = ({
|
|
|
1413
1572
|
}
|
|
1414
1573
|
)
|
|
1415
1574
|
}
|
|
1416
|
-
),
|
|
1575
|
+
), K5 = ({
|
|
1417
1576
|
className: i,
|
|
1418
|
-
color: e =
|
|
1577
|
+
color: e = L.GREY_DARK_5,
|
|
1419
1578
|
height: t = 20,
|
|
1420
1579
|
width: s = 20,
|
|
1421
1580
|
onClick: n
|
|
@@ -1446,9 +1605,9 @@ const Q2 = ({
|
|
|
1446
1605
|
)
|
|
1447
1606
|
]
|
|
1448
1607
|
}
|
|
1449
|
-
),
|
|
1608
|
+
), B5 = ({
|
|
1450
1609
|
className: i,
|
|
1451
|
-
color: e =
|
|
1610
|
+
color: e = L.GREY_DARK_5,
|
|
1452
1611
|
height: t = 24,
|
|
1453
1612
|
width: s = 24,
|
|
1454
1613
|
onClick: n
|
|
@@ -1485,9 +1644,9 @@ const Q2 = ({
|
|
|
1485
1644
|
)
|
|
1486
1645
|
]
|
|
1487
1646
|
}
|
|
1488
|
-
),
|
|
1647
|
+
), P5 = ({
|
|
1489
1648
|
className: i,
|
|
1490
|
-
color: e =
|
|
1649
|
+
color: e = L.GREY_DARK_5,
|
|
1491
1650
|
height: t = 24,
|
|
1492
1651
|
width: s = 24,
|
|
1493
1652
|
onClick: n
|
|
@@ -1512,9 +1671,9 @@ const Q2 = ({
|
|
|
1512
1671
|
}
|
|
1513
1672
|
)
|
|
1514
1673
|
}
|
|
1515
|
-
),
|
|
1674
|
+
), Y5 = ({
|
|
1516
1675
|
className: i,
|
|
1517
|
-
color: e =
|
|
1676
|
+
color: e = L.GREY_DARK_5,
|
|
1518
1677
|
height: t = 24,
|
|
1519
1678
|
width: s = 24,
|
|
1520
1679
|
onClick: n
|
|
@@ -1571,9 +1730,9 @@ const Q2 = ({
|
|
|
1571
1730
|
)
|
|
1572
1731
|
]
|
|
1573
1732
|
}
|
|
1574
|
-
),
|
|
1733
|
+
), $5 = ({
|
|
1575
1734
|
className: i,
|
|
1576
|
-
color: e =
|
|
1735
|
+
color: e = L.GREY_DARK_5,
|
|
1577
1736
|
height: t = 24,
|
|
1578
1737
|
width: s = 24,
|
|
1579
1738
|
onClick: n
|
|
@@ -1608,9 +1767,9 @@ const Q2 = ({
|
|
|
1608
1767
|
)
|
|
1609
1768
|
]
|
|
1610
1769
|
}
|
|
1611
|
-
),
|
|
1770
|
+
), j5 = ({
|
|
1612
1771
|
className: i,
|
|
1613
|
-
color: e =
|
|
1772
|
+
color: e = L.GREY_DARK_3,
|
|
1614
1773
|
height: t = 14,
|
|
1615
1774
|
width: s = 14,
|
|
1616
1775
|
onClick: n
|
|
@@ -1645,9 +1804,9 @@ const Q2 = ({
|
|
|
1645
1804
|
)
|
|
1646
1805
|
]
|
|
1647
1806
|
}
|
|
1648
|
-
),
|
|
1807
|
+
), F5 = ({
|
|
1649
1808
|
className: i,
|
|
1650
|
-
color: e =
|
|
1809
|
+
color: e = L.GREY_DARK_5,
|
|
1651
1810
|
height: t = 18,
|
|
1652
1811
|
onClick: s,
|
|
1653
1812
|
width: n = 18
|
|
@@ -1672,9 +1831,9 @@ const Q2 = ({
|
|
|
1672
1831
|
}
|
|
1673
1832
|
)
|
|
1674
1833
|
}
|
|
1675
|
-
),
|
|
1834
|
+
), W5 = ({
|
|
1676
1835
|
className: i,
|
|
1677
|
-
color: e =
|
|
1836
|
+
color: e = L.GREY_DARK_5,
|
|
1678
1837
|
height: t = 24,
|
|
1679
1838
|
width: s = 24,
|
|
1680
1839
|
onClick: n
|
|
@@ -1724,9 +1883,9 @@ const Q2 = ({
|
|
|
1724
1883
|
)
|
|
1725
1884
|
]
|
|
1726
1885
|
}
|
|
1727
|
-
),
|
|
1886
|
+
), U5 = ({
|
|
1728
1887
|
className: i,
|
|
1729
|
-
color: e =
|
|
1888
|
+
color: e = L.GREY_DARK_5,
|
|
1730
1889
|
height: t = 24,
|
|
1731
1890
|
width: s = 24,
|
|
1732
1891
|
onClick: n
|
|
@@ -1761,9 +1920,9 @@ const Q2 = ({
|
|
|
1761
1920
|
)
|
|
1762
1921
|
]
|
|
1763
1922
|
}
|
|
1764
|
-
),
|
|
1923
|
+
), z5 = ({
|
|
1765
1924
|
className: i,
|
|
1766
|
-
color: e =
|
|
1925
|
+
color: e = L.NOTIFICATION_WARNING_DARK,
|
|
1767
1926
|
height: t = 37,
|
|
1768
1927
|
width: s = 36,
|
|
1769
1928
|
onClick: n
|
|
@@ -1800,9 +1959,9 @@ const Q2 = ({
|
|
|
1800
1959
|
)
|
|
1801
1960
|
]
|
|
1802
1961
|
}
|
|
1803
|
-
),
|
|
1962
|
+
), J5 = ({
|
|
1804
1963
|
className: i,
|
|
1805
|
-
color: e =
|
|
1964
|
+
color: e = L.GREY_DARK_5,
|
|
1806
1965
|
height: t = 24,
|
|
1807
1966
|
width: s = 24,
|
|
1808
1967
|
onClick: n
|
|
@@ -1826,9 +1985,9 @@ const Q2 = ({
|
|
|
1826
1985
|
}
|
|
1827
1986
|
)
|
|
1828
1987
|
}
|
|
1829
|
-
),
|
|
1988
|
+
), q5 = ({
|
|
1830
1989
|
className: i,
|
|
1831
|
-
color: e =
|
|
1990
|
+
color: e = L.GREY_DARK_5,
|
|
1832
1991
|
height: t = 24,
|
|
1833
1992
|
width: s = 24,
|
|
1834
1993
|
onClick: n
|
|
@@ -1865,9 +2024,9 @@ const Q2 = ({
|
|
|
1865
2024
|
)
|
|
1866
2025
|
]
|
|
1867
2026
|
}
|
|
1868
|
-
),
|
|
2027
|
+
), Q5 = ({
|
|
1869
2028
|
className: i,
|
|
1870
|
-
color: e =
|
|
2029
|
+
color: e = L.GREY_DARK_5,
|
|
1871
2030
|
height: t = 20,
|
|
1872
2031
|
width: s = 20,
|
|
1873
2032
|
onClick: n
|
|
@@ -1898,9 +2057,9 @@ const Q2 = ({
|
|
|
1898
2057
|
)
|
|
1899
2058
|
]
|
|
1900
2059
|
}
|
|
1901
|
-
),
|
|
2060
|
+
), X5 = ({
|
|
1902
2061
|
className: i,
|
|
1903
|
-
color: e =
|
|
2062
|
+
color: e = L.GREY_DARK_5,
|
|
1904
2063
|
height: t = 24,
|
|
1905
2064
|
width: s = 24,
|
|
1906
2065
|
onClick: n
|
|
@@ -1967,9 +2126,9 @@ const Q2 = ({
|
|
|
1967
2126
|
)
|
|
1968
2127
|
]
|
|
1969
2128
|
}
|
|
1970
|
-
),
|
|
2129
|
+
), ee = ({
|
|
1971
2130
|
className: i,
|
|
1972
|
-
color: e =
|
|
2131
|
+
color: e = L.GREY_DARK_5,
|
|
1973
2132
|
height: t = 24,
|
|
1974
2133
|
width: s = 24,
|
|
1975
2134
|
onClick: n
|
|
@@ -2024,9 +2183,9 @@ const Q2 = ({
|
|
|
2024
2183
|
)
|
|
2025
2184
|
]
|
|
2026
2185
|
}
|
|
2027
|
-
),
|
|
2186
|
+
), te = ({
|
|
2028
2187
|
className: i,
|
|
2029
|
-
color: e =
|
|
2188
|
+
color: e = L.GREY_DARK_5,
|
|
2030
2189
|
height: t = 24,
|
|
2031
2190
|
width: s = 24,
|
|
2032
2191
|
onClick: n
|
|
@@ -2073,9 +2232,9 @@ const Q2 = ({
|
|
|
2073
2232
|
)
|
|
2074
2233
|
]
|
|
2075
2234
|
}
|
|
2076
|
-
),
|
|
2235
|
+
), ie = ({
|
|
2077
2236
|
className: i,
|
|
2078
|
-
color: e =
|
|
2237
|
+
color: e = L.GREY_DARK_5,
|
|
2079
2238
|
height: t = 24,
|
|
2080
2239
|
width: s = 24,
|
|
2081
2240
|
onClick: n
|
|
@@ -2100,9 +2259,9 @@ const Q2 = ({
|
|
|
2100
2259
|
}
|
|
2101
2260
|
)
|
|
2102
2261
|
}
|
|
2103
|
-
),
|
|
2262
|
+
), se = ({
|
|
2104
2263
|
className: i,
|
|
2105
|
-
color: e =
|
|
2264
|
+
color: e = L.GREY_DARK_5,
|
|
2106
2265
|
height: t = 20,
|
|
2107
2266
|
width: s = 20,
|
|
2108
2267
|
onClick: n
|
|
@@ -2117,7 +2276,7 @@ const Q2 = ({
|
|
|
2117
2276
|
fill: "none",
|
|
2118
2277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2119
2278
|
children: [
|
|
2120
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
2279
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: L.GREY_LIGHT_2 }),
|
|
2121
2280
|
/* @__PURE__ */ r(
|
|
2122
2281
|
"path",
|
|
2123
2282
|
{
|
|
@@ -2129,7 +2288,7 @@ const Q2 = ({
|
|
|
2129
2288
|
)
|
|
2130
2289
|
]
|
|
2131
2290
|
}
|
|
2132
|
-
),
|
|
2291
|
+
), ne = ({
|
|
2133
2292
|
className: i,
|
|
2134
2293
|
color: e = "#001E52",
|
|
2135
2294
|
height: t = 24,
|
|
@@ -2155,7 +2314,7 @@ const Q2 = ({
|
|
|
2155
2314
|
}
|
|
2156
2315
|
)
|
|
2157
2316
|
}
|
|
2158
|
-
),
|
|
2317
|
+
), re = ({
|
|
2159
2318
|
className: i,
|
|
2160
2319
|
color: e = "#001E52",
|
|
2161
2320
|
height: t = 24,
|
|
@@ -2193,10 +2352,10 @@ const Q2 = ({
|
|
|
2193
2352
|
)
|
|
2194
2353
|
] }) })
|
|
2195
2354
|
}
|
|
2196
|
-
),
|
|
2355
|
+
), oe = ({
|
|
2197
2356
|
width: i = 20,
|
|
2198
2357
|
height: e = 20,
|
|
2199
|
-
color: t =
|
|
2358
|
+
color: t = L.GREY_DARK_5,
|
|
2200
2359
|
className: s,
|
|
2201
2360
|
onClick: n
|
|
2202
2361
|
}) => /* @__PURE__ */ r(
|
|
@@ -2217,7 +2376,7 @@ const Q2 = ({
|
|
|
2217
2376
|
}
|
|
2218
2377
|
)
|
|
2219
2378
|
}
|
|
2220
|
-
),
|
|
2379
|
+
), ae = ({
|
|
2221
2380
|
width: i = 24,
|
|
2222
2381
|
height: e = 24,
|
|
2223
2382
|
color: t = "#131314",
|
|
@@ -2250,10 +2409,10 @@ const Q2 = ({
|
|
|
2250
2409
|
)
|
|
2251
2410
|
]
|
|
2252
2411
|
}
|
|
2253
|
-
),
|
|
2412
|
+
), le = ({
|
|
2254
2413
|
width: i = 20,
|
|
2255
2414
|
height: e = 20,
|
|
2256
|
-
color: t =
|
|
2415
|
+
color: t = L.GREY_DARK_5,
|
|
2257
2416
|
className: s,
|
|
2258
2417
|
onClick: n
|
|
2259
2418
|
}) => /* @__PURE__ */ u(
|
|
@@ -2283,10 +2442,10 @@ const Q2 = ({
|
|
|
2283
2442
|
)
|
|
2284
2443
|
]
|
|
2285
2444
|
}
|
|
2286
|
-
),
|
|
2445
|
+
), he = ({
|
|
2287
2446
|
width: i = 24,
|
|
2288
2447
|
height: e = 24,
|
|
2289
|
-
color: t =
|
|
2448
|
+
color: t = L.GREY_DARK_2,
|
|
2290
2449
|
className: s,
|
|
2291
2450
|
onClick: n
|
|
2292
2451
|
}) => /* @__PURE__ */ u(
|
|
@@ -2323,10 +2482,10 @@ const Q2 = ({
|
|
|
2323
2482
|
)
|
|
2324
2483
|
]
|
|
2325
2484
|
}
|
|
2326
|
-
),
|
|
2485
|
+
), ce = ({
|
|
2327
2486
|
width: i = 24,
|
|
2328
2487
|
height: e = 24,
|
|
2329
|
-
color: t =
|
|
2488
|
+
color: t = L.GREY_DARK_2,
|
|
2330
2489
|
className: s,
|
|
2331
2490
|
onClick: n
|
|
2332
2491
|
}) => /* @__PURE__ */ r(
|
|
@@ -2350,10 +2509,10 @@ const Q2 = ({
|
|
|
2350
2509
|
}
|
|
2351
2510
|
)
|
|
2352
2511
|
}
|
|
2353
|
-
),
|
|
2512
|
+
), de = ({
|
|
2354
2513
|
width: i = 24,
|
|
2355
2514
|
height: e = 24,
|
|
2356
|
-
color: t =
|
|
2515
|
+
color: t = L.GREY_DARK_2,
|
|
2357
2516
|
className: s,
|
|
2358
2517
|
onClick: n
|
|
2359
2518
|
}) => /* @__PURE__ */ r(
|
|
@@ -2377,7 +2536,7 @@ const Q2 = ({
|
|
|
2377
2536
|
}
|
|
2378
2537
|
)
|
|
2379
2538
|
}
|
|
2380
|
-
),
|
|
2539
|
+
), u1 = ({
|
|
2381
2540
|
name: i,
|
|
2382
2541
|
width: e,
|
|
2383
2542
|
height: t,
|
|
@@ -2386,8 +2545,8 @@ const Q2 = ({
|
|
|
2386
2545
|
disabled: o = !1,
|
|
2387
2546
|
onClick: c
|
|
2388
2547
|
}) => {
|
|
2389
|
-
const [a, C] =
|
|
2390
|
-
return
|
|
2548
|
+
const [a, C] = O(n), { theme: d } = r1(c2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : s, h = o ? void 0 : c;
|
|
2549
|
+
return G(() => {
|
|
2391
2550
|
if (n) {
|
|
2392
2551
|
h && !o && C(`${n} clickable`);
|
|
2393
2552
|
return;
|
|
@@ -2396,35 +2555,35 @@ const Q2 = ({
|
|
|
2396
2555
|
}, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2397
2556
|
switch (i) {
|
|
2398
2557
|
case "nextIcon":
|
|
2399
|
-
return
|
|
2558
|
+
return S5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2400
2559
|
case "prevIcon":
|
|
2401
|
-
return
|
|
2560
|
+
return D5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2402
2561
|
case "arrowDown":
|
|
2403
|
-
return
|
|
2562
|
+
return i5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2404
2563
|
case "info":
|
|
2405
|
-
return
|
|
2564
|
+
return s5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2406
2565
|
case "arrowRight":
|
|
2407
|
-
return
|
|
2566
|
+
return n5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2408
2567
|
case "calendar":
|
|
2409
|
-
return
|
|
2568
|
+
return h5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2410
2569
|
case "check":
|
|
2411
|
-
return
|
|
2570
|
+
return c5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2412
2571
|
case "cancel":
|
|
2413
|
-
return
|
|
2572
|
+
return d5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2414
2573
|
case "add":
|
|
2415
|
-
return
|
|
2574
|
+
return C5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2416
2575
|
case "list":
|
|
2417
|
-
return
|
|
2576
|
+
return g5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2418
2577
|
case "dragAndDrop":
|
|
2419
|
-
return
|
|
2578
|
+
return u5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2420
2579
|
case "filter":
|
|
2421
|
-
return
|
|
2580
|
+
return p5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2422
2581
|
case "attention":
|
|
2423
|
-
return
|
|
2582
|
+
return f5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2424
2583
|
case "users":
|
|
2425
|
-
return
|
|
2584
|
+
return m5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2426
2585
|
case "mySkillsMatrix":
|
|
2427
|
-
return
|
|
2586
|
+
return w5({
|
|
2428
2587
|
width: e,
|
|
2429
2588
|
height: t,
|
|
2430
2589
|
color: l,
|
|
@@ -2432,9 +2591,9 @@ const Q2 = ({
|
|
|
2432
2591
|
onClick: h
|
|
2433
2592
|
});
|
|
2434
2593
|
case "skills":
|
|
2435
|
-
return
|
|
2594
|
+
return L5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2436
2595
|
case "skillsMatrices":
|
|
2437
|
-
return
|
|
2596
|
+
return k5({
|
|
2438
2597
|
width: e,
|
|
2439
2598
|
height: t,
|
|
2440
2599
|
color: l,
|
|
@@ -2442,21 +2601,21 @@ const Q2 = ({
|
|
|
2442
2601
|
onClick: h
|
|
2443
2602
|
});
|
|
2444
2603
|
case "history":
|
|
2445
|
-
return
|
|
2604
|
+
return v5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2446
2605
|
case "logOut":
|
|
2447
|
-
return
|
|
2606
|
+
return N5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2448
2607
|
case "settings":
|
|
2449
|
-
return
|
|
2608
|
+
return R5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2450
2609
|
case "trash":
|
|
2451
|
-
return
|
|
2610
|
+
return x5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2452
2611
|
case "settings2":
|
|
2453
|
-
return
|
|
2612
|
+
return _5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2454
2613
|
case "checkCircle":
|
|
2455
|
-
return
|
|
2614
|
+
return M5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2456
2615
|
case "cancelCircle":
|
|
2457
|
-
return
|
|
2616
|
+
return b5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2458
2617
|
case "visibilityIcon":
|
|
2459
|
-
return
|
|
2618
|
+
return y5({
|
|
2460
2619
|
width: e,
|
|
2461
2620
|
height: t,
|
|
2462
2621
|
color: l,
|
|
@@ -2464,7 +2623,7 @@ const Q2 = ({
|
|
|
2464
2623
|
onClick: h
|
|
2465
2624
|
});
|
|
2466
2625
|
case "visibilityOffIcon":
|
|
2467
|
-
return
|
|
2626
|
+
return H5({
|
|
2468
2627
|
width: e,
|
|
2469
2628
|
height: t,
|
|
2470
2629
|
color: l,
|
|
@@ -2472,7 +2631,7 @@ const Q2 = ({
|
|
|
2472
2631
|
onClick: h
|
|
2473
2632
|
});
|
|
2474
2633
|
case "selectArrowIcon":
|
|
2475
|
-
return
|
|
2634
|
+
return E5({
|
|
2476
2635
|
width: e,
|
|
2477
2636
|
height: t,
|
|
2478
2637
|
color: l,
|
|
@@ -2480,7 +2639,7 @@ const Q2 = ({
|
|
|
2480
2639
|
onClick: h
|
|
2481
2640
|
});
|
|
2482
2641
|
case "expandArrowIcon":
|
|
2483
|
-
return
|
|
2642
|
+
return V5({
|
|
2484
2643
|
width: e,
|
|
2485
2644
|
height: t,
|
|
2486
2645
|
color: l,
|
|
@@ -2488,7 +2647,7 @@ const Q2 = ({
|
|
|
2488
2647
|
onClick: h
|
|
2489
2648
|
});
|
|
2490
2649
|
case "expandActiveArrowIcon":
|
|
2491
|
-
return
|
|
2650
|
+
return I5({
|
|
2492
2651
|
width: e,
|
|
2493
2652
|
height: t,
|
|
2494
2653
|
color: l,
|
|
@@ -2496,77 +2655,85 @@ const Q2 = ({
|
|
|
2496
2655
|
onClick: h
|
|
2497
2656
|
});
|
|
2498
2657
|
case "sortUp":
|
|
2499
|
-
return
|
|
2658
|
+
return A5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2500
2659
|
case "sortDown":
|
|
2501
|
-
return
|
|
2660
|
+
return O5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2502
2661
|
case "search":
|
|
2503
|
-
return
|
|
2662
|
+
return Z5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2504
2663
|
case "arrowUpFilled":
|
|
2505
|
-
return
|
|
2664
|
+
return T5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2506
2665
|
case "arrowDownFilled":
|
|
2507
|
-
return
|
|
2666
|
+
return G5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2667
|
+
case "arrow2Up":
|
|
2668
|
+
return r5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2669
|
+
case "arrow2Right":
|
|
2670
|
+
return o5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2671
|
+
case "arrow2Down":
|
|
2672
|
+
return a5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2673
|
+
case "arrow2Left":
|
|
2674
|
+
return l5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2508
2675
|
case "link":
|
|
2509
|
-
return
|
|
2676
|
+
return K5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2510
2677
|
case "telegram":
|
|
2511
|
-
return
|
|
2678
|
+
return P5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2512
2679
|
case "mail":
|
|
2513
|
-
return
|
|
2680
|
+
return $5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2514
2681
|
case "github":
|
|
2515
|
-
return
|
|
2682
|
+
return B5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2516
2683
|
case "linkedIn":
|
|
2517
|
-
return
|
|
2684
|
+
return Y5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2518
2685
|
case "emptyStateIcon":
|
|
2519
|
-
return
|
|
2686
|
+
return j5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2520
2687
|
case "filtersIcon":
|
|
2521
|
-
return
|
|
2688
|
+
return F5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2522
2689
|
case "dotMenuIcon":
|
|
2523
|
-
return
|
|
2690
|
+
return W5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2524
2691
|
case "plusCircle":
|
|
2525
|
-
return
|
|
2692
|
+
return U5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2526
2693
|
case "warning":
|
|
2527
|
-
return
|
|
2694
|
+
return z5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2528
2695
|
case "back":
|
|
2529
|
-
return
|
|
2696
|
+
return J5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2530
2697
|
case "bell":
|
|
2531
|
-
return
|
|
2698
|
+
return q5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2532
2699
|
case "copy":
|
|
2533
|
-
return
|
|
2700
|
+
return Q5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2534
2701
|
case "contract":
|
|
2535
|
-
return
|
|
2702
|
+
return X5({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2536
2703
|
case "resourceManager":
|
|
2537
|
-
return
|
|
2704
|
+
return ee({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2538
2705
|
case "image":
|
|
2539
|
-
return
|
|
2706
|
+
return te({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2540
2707
|
case "edit":
|
|
2541
|
-
return
|
|
2708
|
+
return ie({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2542
2709
|
case "filledArrowRight":
|
|
2543
|
-
return
|
|
2710
|
+
return se({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2544
2711
|
case "burgerMenu":
|
|
2545
|
-
return
|
|
2712
|
+
return ne({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2546
2713
|
case "refresh":
|
|
2547
|
-
return
|
|
2714
|
+
return re({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2548
2715
|
case "projects":
|
|
2549
|
-
return
|
|
2716
|
+
return oe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2550
2717
|
case "user":
|
|
2551
|
-
return
|
|
2718
|
+
return le({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2552
2719
|
case "exit":
|
|
2553
|
-
return
|
|
2720
|
+
return ae({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2554
2721
|
case "openPointCircle":
|
|
2555
|
-
return
|
|
2722
|
+
return he({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2556
2723
|
case "community":
|
|
2557
|
-
return
|
|
2724
|
+
return ce({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2558
2725
|
case "docs":
|
|
2559
|
-
return
|
|
2726
|
+
return de({ width: e, height: t, color: l, className: a, onClick: h });
|
|
2560
2727
|
default:
|
|
2561
2728
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2562
2729
|
}
|
|
2563
2730
|
})() });
|
|
2564
|
-
}, { Title:
|
|
2731
|
+
}, { Title: Ce, Text: ge } = G1, ue = {
|
|
2565
2732
|
h1: 1,
|
|
2566
2733
|
h2: 2,
|
|
2567
2734
|
h3: 3,
|
|
2568
2735
|
h4: 4
|
|
2569
|
-
},
|
|
2736
|
+
}, pe = d1(
|
|
2570
2737
|
({
|
|
2571
2738
|
align: i = "inherit",
|
|
2572
2739
|
variant: e = "body1",
|
|
@@ -2578,26 +2745,26 @@ const Q2 = ({
|
|
|
2578
2745
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2579
2746
|
trim: a = !1
|
|
2580
2747
|
}, C) => {
|
|
2581
|
-
const d =
|
|
2582
|
-
|
|
2583
|
-
const [l, h] =
|
|
2584
|
-
|
|
2585
|
-
var
|
|
2748
|
+
const d = J(null);
|
|
2749
|
+
k1(C, () => d.current);
|
|
2750
|
+
const [l, h] = O(!1);
|
|
2751
|
+
G(() => {
|
|
2752
|
+
var v;
|
|
2586
2753
|
if (!a) return;
|
|
2587
2754
|
const m = () => {
|
|
2588
2755
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
2589
2756
|
};
|
|
2590
2757
|
m();
|
|
2591
|
-
const
|
|
2592
|
-
return d.current &&
|
|
2593
|
-
|
|
2758
|
+
const b = new ResizeObserver(m);
|
|
2759
|
+
return d.current && b.observe(d.current), (v = d.current) != null && v.parentElement && b.observe(d.current.parentElement), () => {
|
|
2760
|
+
b.disconnect();
|
|
2594
2761
|
};
|
|
2595
2762
|
}, [a]);
|
|
2596
2763
|
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2597
|
-
let
|
|
2598
|
-
i && i !== "inherit" && (
|
|
2764
|
+
let p = `snmt-typography snmt-typography-${e}`;
|
|
2765
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
2599
2766
|
const w = {
|
|
2600
|
-
className:
|
|
2767
|
+
className: p,
|
|
2601
2768
|
style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
|
|
2602
2769
|
onClick: n,
|
|
2603
2770
|
ref: d,
|
|
@@ -2608,16 +2775,16 @@ const Q2 = ({
|
|
|
2608
2775
|
}
|
|
2609
2776
|
} : void 0
|
|
2610
2777
|
};
|
|
2611
|
-
return g ? /* @__PURE__ */ r(
|
|
2778
|
+
return g ? /* @__PURE__ */ r(Ce, { level: ue[e], ...w, children: s }) : /* @__PURE__ */ r(ge, { ...w, children: s });
|
|
2612
2779
|
}
|
|
2613
2780
|
);
|
|
2614
|
-
var
|
|
2615
|
-
const d2 =
|
|
2781
|
+
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", 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.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(k || {});
|
|
2782
|
+
const d2 = C1({
|
|
2616
2783
|
locale: "en",
|
|
2617
2784
|
theme: "light"
|
|
2618
2785
|
});
|
|
2619
2786
|
d2.Provider;
|
|
2620
|
-
const
|
|
2787
|
+
const fe = ({
|
|
2621
2788
|
width: i = 20,
|
|
2622
2789
|
height: e = 20,
|
|
2623
2790
|
color: t = "#001E52",
|
|
@@ -2644,10 +2811,10 @@ const le = ({
|
|
|
2644
2811
|
}
|
|
2645
2812
|
)
|
|
2646
2813
|
}
|
|
2647
|
-
),
|
|
2814
|
+
), me = ({
|
|
2648
2815
|
width: i = 20,
|
|
2649
2816
|
height: e = 20,
|
|
2650
|
-
color: t =
|
|
2817
|
+
color: t = k.GREY_DARK_5,
|
|
2651
2818
|
className: s,
|
|
2652
2819
|
onClick: n
|
|
2653
2820
|
}) => /* @__PURE__ */ u(
|
|
@@ -2684,7 +2851,7 @@ const le = ({
|
|
|
2684
2851
|
)
|
|
2685
2852
|
]
|
|
2686
2853
|
}
|
|
2687
|
-
),
|
|
2854
|
+
), we = ({
|
|
2688
2855
|
width: i = 20,
|
|
2689
2856
|
height: e = 20,
|
|
2690
2857
|
color: t = "#001E52",
|
|
@@ -2719,10 +2886,112 @@ const le = ({
|
|
|
2719
2886
|
)
|
|
2720
2887
|
]
|
|
2721
2888
|
}
|
|
2722
|
-
),
|
|
2889
|
+
), Le = ({
|
|
2890
|
+
width: i = 20,
|
|
2891
|
+
height: e = 20,
|
|
2892
|
+
color: t = k.GREY_DARK_5,
|
|
2893
|
+
className: s,
|
|
2894
|
+
onClick: n
|
|
2895
|
+
}) => /* @__PURE__ */ u(
|
|
2896
|
+
"svg",
|
|
2897
|
+
{
|
|
2898
|
+
width: i,
|
|
2899
|
+
height: e,
|
|
2900
|
+
className: s,
|
|
2901
|
+
onClick: n,
|
|
2902
|
+
viewBox: "0 0 25 25",
|
|
2903
|
+
fill: "none",
|
|
2904
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2905
|
+
children: [
|
|
2906
|
+
/* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
|
|
2907
|
+
"path",
|
|
2908
|
+
{
|
|
2909
|
+
d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
|
|
2910
|
+
fill: t
|
|
2911
|
+
}
|
|
2912
|
+
) }),
|
|
2913
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_1_2043", children: /* @__PURE__ */ r("rect", { width: "24", height: "24", fill: "white", transform: "translate(0.5 0.5)" }) }) })
|
|
2914
|
+
]
|
|
2915
|
+
}
|
|
2916
|
+
), ke = ({
|
|
2917
|
+
width: i = 20,
|
|
2918
|
+
height: e = 20,
|
|
2919
|
+
color: t = k.GREY_DARK_5,
|
|
2920
|
+
className: s,
|
|
2921
|
+
onClick: n
|
|
2922
|
+
}) => /* @__PURE__ */ r(
|
|
2923
|
+
"svg",
|
|
2924
|
+
{
|
|
2925
|
+
width: i,
|
|
2926
|
+
height: e,
|
|
2927
|
+
className: s,
|
|
2928
|
+
onClick: n,
|
|
2929
|
+
viewBox: "0 0 25 25",
|
|
2930
|
+
fill: "none",
|
|
2931
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2932
|
+
children: /* @__PURE__ */ r(
|
|
2933
|
+
"path",
|
|
2934
|
+
{
|
|
2935
|
+
d: "M10.0303 5.96967C9.73744 5.67678 9.26268 5.67678 8.96978 5.96967C8.67689 6.26256 8.67689 6.73732 8.96978 7.03022L14.4395 12.4999L8.96978 17.9697L8.91803 18.0263C8.67772 18.3209 8.69518 18.7556 8.96978 19.0302C9.24439 19.3048 9.67911 19.3223 9.97369 19.082L10.0303 19.0302L16.0303 13.0302C16.3232 12.7373 16.3232 12.2626 16.0303 11.9697L10.0303 5.96967Z",
|
|
2936
|
+
fill: t
|
|
2937
|
+
}
|
|
2938
|
+
)
|
|
2939
|
+
}
|
|
2940
|
+
), ve = ({
|
|
2941
|
+
width: i = 20,
|
|
2942
|
+
height: e = 20,
|
|
2943
|
+
color: t = k.GREY_DARK_5,
|
|
2944
|
+
className: s,
|
|
2945
|
+
onClick: n
|
|
2946
|
+
}) => /* @__PURE__ */ u(
|
|
2947
|
+
"svg",
|
|
2948
|
+
{
|
|
2949
|
+
width: i,
|
|
2950
|
+
height: e,
|
|
2951
|
+
className: s,
|
|
2952
|
+
onClick: n,
|
|
2953
|
+
viewBox: "0 0 25 25",
|
|
2954
|
+
fill: "none",
|
|
2955
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2956
|
+
children: [
|
|
2957
|
+
/* @__PURE__ */ r("g", { "clip-path": "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
|
|
2958
|
+
"path",
|
|
2959
|
+
{
|
|
2960
|
+
d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
|
|
2961
|
+
fill: t
|
|
2962
|
+
}
|
|
2963
|
+
) }),
|
|
2964
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_1_2039", children: /* @__PURE__ */ r("rect", { width: "24", height: "24", fill: "white", transform: "translate(0.5 0.5)" }) }) })
|
|
2965
|
+
]
|
|
2966
|
+
}
|
|
2967
|
+
), Ne = ({
|
|
2968
|
+
width: i = 20,
|
|
2969
|
+
height: e = 20,
|
|
2970
|
+
color: t = k.GREY_DARK_5,
|
|
2971
|
+
className: s,
|
|
2972
|
+
onClick: n
|
|
2973
|
+
}) => /* @__PURE__ */ r(
|
|
2974
|
+
"svg",
|
|
2975
|
+
{
|
|
2976
|
+
width: i,
|
|
2977
|
+
height: e,
|
|
2978
|
+
className: s,
|
|
2979
|
+
onClick: n,
|
|
2980
|
+
viewBox: "0 0 25 25",
|
|
2981
|
+
fill: "none",
|
|
2982
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2983
|
+
children: /* @__PURE__ */ r(
|
|
2984
|
+
"path",
|
|
2985
|
+
{
|
|
2986
|
+
d: "M14.9697 5.96967C15.2626 5.67678 15.7373 5.67678 16.0302 5.96967C16.3231 6.26256 16.3231 6.73732 16.0302 7.03022L10.5605 12.4999L16.0302 17.9697L16.082 18.0263C16.3223 18.3209 16.3048 18.7556 16.0302 19.0302C15.7556 19.3048 15.3209 19.3223 15.0263 19.082L14.9697 19.0302L8.96967 13.0302C8.67678 12.7373 8.67678 12.2626 8.96967 11.9697L14.9697 5.96967Z",
|
|
2987
|
+
fill: t
|
|
2988
|
+
}
|
|
2989
|
+
)
|
|
2990
|
+
}
|
|
2991
|
+
), Re = ({
|
|
2723
2992
|
width: i = 20,
|
|
2724
2993
|
height: e = 20,
|
|
2725
|
-
color: t =
|
|
2994
|
+
color: t = k.GREY_DARK_5,
|
|
2726
2995
|
className: s,
|
|
2727
2996
|
onClick: n
|
|
2728
2997
|
}) => /* @__PURE__ */ u(
|
|
@@ -2766,10 +3035,10 @@ const le = ({
|
|
|
2766
3035
|
)
|
|
2767
3036
|
]
|
|
2768
3037
|
}
|
|
2769
|
-
),
|
|
3038
|
+
), xe = ({
|
|
2770
3039
|
width: i = 20,
|
|
2771
3040
|
height: e = 20,
|
|
2772
|
-
color: t =
|
|
3041
|
+
color: t = k.GREY_DARK_5,
|
|
2773
3042
|
className: s,
|
|
2774
3043
|
onClick: n
|
|
2775
3044
|
}) => /* @__PURE__ */ r(
|
|
@@ -2790,10 +3059,10 @@ const le = ({
|
|
|
2790
3059
|
}
|
|
2791
3060
|
)
|
|
2792
3061
|
}
|
|
2793
|
-
),
|
|
3062
|
+
), _e = ({
|
|
2794
3063
|
width: i = 20,
|
|
2795
3064
|
height: e = 20,
|
|
2796
|
-
color: t =
|
|
3065
|
+
color: t = k.GREY_DARK_5,
|
|
2797
3066
|
className: s,
|
|
2798
3067
|
onClick: n
|
|
2799
3068
|
}) => /* @__PURE__ */ r(
|
|
@@ -2814,10 +3083,10 @@ const le = ({
|
|
|
2814
3083
|
}
|
|
2815
3084
|
)
|
|
2816
3085
|
}
|
|
2817
|
-
),
|
|
3086
|
+
), Me = ({
|
|
2818
3087
|
width: i = 20,
|
|
2819
3088
|
height: e = 20,
|
|
2820
|
-
color: t =
|
|
3089
|
+
color: t = k.GREY_DARK_5,
|
|
2821
3090
|
className: s,
|
|
2822
3091
|
onClick: n
|
|
2823
3092
|
}) => /* @__PURE__ */ r(
|
|
@@ -2838,10 +3107,10 @@ const le = ({
|
|
|
2838
3107
|
}
|
|
2839
3108
|
)
|
|
2840
3109
|
}
|
|
2841
|
-
),
|
|
3110
|
+
), be = ({
|
|
2842
3111
|
width: i = 20,
|
|
2843
3112
|
height: e = 20,
|
|
2844
|
-
color: t =
|
|
3113
|
+
color: t = k.GREY_DARK_5,
|
|
2845
3114
|
className: s,
|
|
2846
3115
|
onClick: n
|
|
2847
3116
|
}) => /* @__PURE__ */ u(
|
|
@@ -2899,10 +3168,10 @@ const le = ({
|
|
|
2899
3168
|
)
|
|
2900
3169
|
]
|
|
2901
3170
|
}
|
|
2902
|
-
),
|
|
3171
|
+
), ye = ({
|
|
2903
3172
|
width: i = 20,
|
|
2904
3173
|
height: e = 20,
|
|
2905
|
-
color: t =
|
|
3174
|
+
color: t = k.GREY_DARK_5,
|
|
2906
3175
|
className: s,
|
|
2907
3176
|
onClick: n
|
|
2908
3177
|
}) => /* @__PURE__ */ u(
|
|
@@ -2946,10 +3215,10 @@ const le = ({
|
|
|
2946
3215
|
)
|
|
2947
3216
|
]
|
|
2948
3217
|
}
|
|
2949
|
-
),
|
|
3218
|
+
), He = ({
|
|
2950
3219
|
width: i = 20,
|
|
2951
3220
|
height: e = 20,
|
|
2952
|
-
color: t =
|
|
3221
|
+
color: t = k.GREY_DARK_5,
|
|
2953
3222
|
className: s,
|
|
2954
3223
|
onClick: n
|
|
2955
3224
|
}) => /* @__PURE__ */ u(
|
|
@@ -2986,10 +3255,10 @@ const le = ({
|
|
|
2986
3255
|
)
|
|
2987
3256
|
]
|
|
2988
3257
|
}
|
|
2989
|
-
),
|
|
3258
|
+
), Ee = ({
|
|
2990
3259
|
width: i = 20,
|
|
2991
3260
|
height: e = 20,
|
|
2992
|
-
color: t =
|
|
3261
|
+
color: t = k.GREY_DARK_5,
|
|
2993
3262
|
className: s,
|
|
2994
3263
|
onClick: n
|
|
2995
3264
|
}) => /* @__PURE__ */ u(
|
|
@@ -3026,10 +3295,10 @@ const le = ({
|
|
|
3026
3295
|
)
|
|
3027
3296
|
]
|
|
3028
3297
|
}
|
|
3029
|
-
),
|
|
3298
|
+
), Ve = ({
|
|
3030
3299
|
width: i = 20,
|
|
3031
3300
|
height: e = 20,
|
|
3032
|
-
color: t =
|
|
3301
|
+
color: t = k.GREY_DARK_5,
|
|
3033
3302
|
className: s,
|
|
3034
3303
|
onClick: n
|
|
3035
3304
|
}) => /* @__PURE__ */ u(
|
|
@@ -3073,10 +3342,10 @@ const le = ({
|
|
|
3073
3342
|
)
|
|
3074
3343
|
]
|
|
3075
3344
|
}
|
|
3076
|
-
),
|
|
3345
|
+
), Ie = ({
|
|
3077
3346
|
width: i = 20,
|
|
3078
3347
|
height: e = 20,
|
|
3079
|
-
color: t =
|
|
3348
|
+
color: t = k.GREY_DARK_5,
|
|
3080
3349
|
className: s,
|
|
3081
3350
|
onClick: n
|
|
3082
3351
|
}) => /* @__PURE__ */ u(
|
|
@@ -3120,10 +3389,10 @@ const le = ({
|
|
|
3120
3389
|
)
|
|
3121
3390
|
]
|
|
3122
3391
|
}
|
|
3123
|
-
),
|
|
3392
|
+
), Ae = ({
|
|
3124
3393
|
width: i = 20,
|
|
3125
3394
|
height: e = 20,
|
|
3126
|
-
color: t =
|
|
3395
|
+
color: t = k.GREY_DARK_5,
|
|
3127
3396
|
className: s,
|
|
3128
3397
|
onClick: n
|
|
3129
3398
|
}) => /* @__PURE__ */ u(
|
|
@@ -3167,10 +3436,10 @@ const le = ({
|
|
|
3167
3436
|
)
|
|
3168
3437
|
]
|
|
3169
3438
|
}
|
|
3170
|
-
),
|
|
3439
|
+
), Oe = ({
|
|
3171
3440
|
width: i = 20,
|
|
3172
3441
|
height: e = 20,
|
|
3173
|
-
color: t =
|
|
3442
|
+
color: t = k.GREY_DARK_5,
|
|
3174
3443
|
className: s,
|
|
3175
3444
|
onClick: n
|
|
3176
3445
|
}) => /* @__PURE__ */ u(
|
|
@@ -3207,10 +3476,10 @@ const le = ({
|
|
|
3207
3476
|
)
|
|
3208
3477
|
]
|
|
3209
3478
|
}
|
|
3210
|
-
),
|
|
3479
|
+
), Ze = ({
|
|
3211
3480
|
width: i = 20,
|
|
3212
3481
|
height: e = 20,
|
|
3213
|
-
color: t =
|
|
3482
|
+
color: t = k.GREY_DARK_5,
|
|
3214
3483
|
className: s,
|
|
3215
3484
|
onClick: n
|
|
3216
3485
|
}) => /* @__PURE__ */ u(
|
|
@@ -3240,10 +3509,10 @@ const le = ({
|
|
|
3240
3509
|
)
|
|
3241
3510
|
]
|
|
3242
3511
|
}
|
|
3243
|
-
),
|
|
3512
|
+
), Se = ({
|
|
3244
3513
|
width: i = 20,
|
|
3245
3514
|
height: e = 20,
|
|
3246
|
-
color: t =
|
|
3515
|
+
color: t = k.GREY_DARK_5,
|
|
3247
3516
|
className: s,
|
|
3248
3517
|
onClick: n
|
|
3249
3518
|
}) => /* @__PURE__ */ u(
|
|
@@ -3273,10 +3542,10 @@ const le = ({
|
|
|
3273
3542
|
)
|
|
3274
3543
|
]
|
|
3275
3544
|
}
|
|
3276
|
-
),
|
|
3545
|
+
), De = ({
|
|
3277
3546
|
width: i = 20,
|
|
3278
3547
|
height: e = 20,
|
|
3279
|
-
color: t =
|
|
3548
|
+
color: t = k.GREY_DARK_5,
|
|
3280
3549
|
className: s,
|
|
3281
3550
|
onClick: n
|
|
3282
3551
|
}) => /* @__PURE__ */ u(
|
|
@@ -3306,10 +3575,10 @@ const le = ({
|
|
|
3306
3575
|
)
|
|
3307
3576
|
]
|
|
3308
3577
|
}
|
|
3309
|
-
),
|
|
3578
|
+
), Ge = ({
|
|
3310
3579
|
width: i = 20,
|
|
3311
3580
|
height: e = 20,
|
|
3312
|
-
color: t =
|
|
3581
|
+
color: t = k.GREY_DARK_5,
|
|
3313
3582
|
className: s,
|
|
3314
3583
|
onClick: n
|
|
3315
3584
|
}) => /* @__PURE__ */ u(
|
|
@@ -3339,10 +3608,10 @@ const le = ({
|
|
|
3339
3608
|
)
|
|
3340
3609
|
]
|
|
3341
3610
|
}
|
|
3342
|
-
),
|
|
3611
|
+
), Te = ({
|
|
3343
3612
|
width: i = 20,
|
|
3344
3613
|
height: e = 20,
|
|
3345
|
-
color: t =
|
|
3614
|
+
color: t = k.GREY_DARK_5,
|
|
3346
3615
|
className: s,
|
|
3347
3616
|
onClick: n
|
|
3348
3617
|
}) => /* @__PURE__ */ u(
|
|
@@ -3379,10 +3648,10 @@ const le = ({
|
|
|
3379
3648
|
)
|
|
3380
3649
|
]
|
|
3381
3650
|
}
|
|
3382
|
-
),
|
|
3651
|
+
), Ke = ({
|
|
3383
3652
|
width: i = 20,
|
|
3384
3653
|
height: e = 20,
|
|
3385
|
-
color: t =
|
|
3654
|
+
color: t = k.GREY_DARK_5,
|
|
3386
3655
|
className: s,
|
|
3387
3656
|
onClick: n
|
|
3388
3657
|
}) => /* @__PURE__ */ u(
|
|
@@ -3412,10 +3681,10 @@ const le = ({
|
|
|
3412
3681
|
)
|
|
3413
3682
|
]
|
|
3414
3683
|
}
|
|
3415
|
-
),
|
|
3684
|
+
), Be = ({
|
|
3416
3685
|
width: i = 20,
|
|
3417
3686
|
height: e = 20,
|
|
3418
|
-
color: t =
|
|
3687
|
+
color: t = k.GREY_DARK_5,
|
|
3419
3688
|
className: s,
|
|
3420
3689
|
onClick: n
|
|
3421
3690
|
}) => /* @__PURE__ */ u(
|
|
@@ -3445,7 +3714,7 @@ const le = ({
|
|
|
3445
3714
|
)
|
|
3446
3715
|
]
|
|
3447
3716
|
}
|
|
3448
|
-
),
|
|
3717
|
+
), Pe = ({
|
|
3449
3718
|
width: i = 20,
|
|
3450
3719
|
height: e = 20,
|
|
3451
3720
|
color: t = "#070739",
|
|
@@ -3475,7 +3744,7 @@ const le = ({
|
|
|
3475
3744
|
/* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "2.375", stroke: t, strokeWidth: "1.25" })
|
|
3476
3745
|
]
|
|
3477
3746
|
}
|
|
3478
|
-
),
|
|
3747
|
+
), Ye = ({
|
|
3479
3748
|
width: i = 20,
|
|
3480
3749
|
height: e = 20,
|
|
3481
3750
|
color: t = "#070739",
|
|
@@ -3513,7 +3782,7 @@ const le = ({
|
|
|
3513
3782
|
)
|
|
3514
3783
|
]
|
|
3515
3784
|
}
|
|
3516
|
-
),
|
|
3785
|
+
), $e = ({
|
|
3517
3786
|
width: i = 9,
|
|
3518
3787
|
height: e = 5,
|
|
3519
3788
|
color: t = "#001E52",
|
|
@@ -3539,7 +3808,7 @@ const le = ({
|
|
|
3539
3808
|
}
|
|
3540
3809
|
)
|
|
3541
3810
|
}
|
|
3542
|
-
),
|
|
3811
|
+
), je = ({
|
|
3543
3812
|
width: i = 20,
|
|
3544
3813
|
height: e = 20,
|
|
3545
3814
|
color: t = "#F2F2F7",
|
|
@@ -3568,7 +3837,7 @@ const le = ({
|
|
|
3568
3837
|
)
|
|
3569
3838
|
]
|
|
3570
3839
|
}
|
|
3571
|
-
),
|
|
3840
|
+
), Fe = ({
|
|
3572
3841
|
width: i = 20,
|
|
3573
3842
|
height: e = 20,
|
|
3574
3843
|
color: t = "#004ED7",
|
|
@@ -3597,7 +3866,7 @@ const le = ({
|
|
|
3597
3866
|
)
|
|
3598
3867
|
]
|
|
3599
3868
|
}
|
|
3600
|
-
),
|
|
3869
|
+
), We = ({
|
|
3601
3870
|
width: i = 10,
|
|
3602
3871
|
height: e = 10,
|
|
3603
3872
|
color: t = "#001E52",
|
|
@@ -3626,7 +3895,7 @@ const le = ({
|
|
|
3626
3895
|
)
|
|
3627
3896
|
]
|
|
3628
3897
|
}
|
|
3629
|
-
),
|
|
3898
|
+
), Ue = ({
|
|
3630
3899
|
width: i = 10,
|
|
3631
3900
|
height: e = 10,
|
|
3632
3901
|
color: t = "#001E52",
|
|
@@ -3663,9 +3932,9 @@ const le = ({
|
|
|
3663
3932
|
)
|
|
3664
3933
|
]
|
|
3665
3934
|
}
|
|
3666
|
-
),
|
|
3935
|
+
), ze = ({
|
|
3667
3936
|
className: i,
|
|
3668
|
-
color: e =
|
|
3937
|
+
color: e = k.GREY_DARK_5,
|
|
3669
3938
|
height: t = 20,
|
|
3670
3939
|
width: s = 20,
|
|
3671
3940
|
onClick: n
|
|
@@ -3696,9 +3965,9 @@ const le = ({
|
|
|
3696
3965
|
)
|
|
3697
3966
|
]
|
|
3698
3967
|
}
|
|
3699
|
-
),
|
|
3968
|
+
), Je = ({
|
|
3700
3969
|
className: i,
|
|
3701
|
-
color: e =
|
|
3970
|
+
color: e = k.GREY_DARK_5,
|
|
3702
3971
|
height: t = 20,
|
|
3703
3972
|
width: s = 20,
|
|
3704
3973
|
onClick: n
|
|
@@ -3723,9 +3992,9 @@ const le = ({
|
|
|
3723
3992
|
}
|
|
3724
3993
|
)
|
|
3725
3994
|
}
|
|
3726
|
-
),
|
|
3995
|
+
), qe = ({
|
|
3727
3996
|
className: i,
|
|
3728
|
-
color: e =
|
|
3997
|
+
color: e = k.GREY_DARK_5,
|
|
3729
3998
|
height: t = 20,
|
|
3730
3999
|
width: s = 20,
|
|
3731
4000
|
onClick: n
|
|
@@ -3750,9 +4019,9 @@ const le = ({
|
|
|
3750
4019
|
}
|
|
3751
4020
|
)
|
|
3752
4021
|
}
|
|
3753
|
-
),
|
|
4022
|
+
), Qe = ({
|
|
3754
4023
|
className: i,
|
|
3755
|
-
color: e =
|
|
4024
|
+
color: e = k.GREY_DARK_5,
|
|
3756
4025
|
height: t = 5,
|
|
3757
4026
|
width: s = 10,
|
|
3758
4027
|
onClick: n
|
|
@@ -3774,9 +4043,9 @@ const le = ({
|
|
|
3774
4043
|
}
|
|
3775
4044
|
)
|
|
3776
4045
|
}
|
|
3777
|
-
),
|
|
4046
|
+
), Xe = ({
|
|
3778
4047
|
className: i,
|
|
3779
|
-
color: e =
|
|
4048
|
+
color: e = k.GREY_DARK_5,
|
|
3780
4049
|
height: t = 5,
|
|
3781
4050
|
width: s = 10,
|
|
3782
4051
|
onClick: n
|
|
@@ -3799,9 +4068,9 @@ const le = ({
|
|
|
3799
4068
|
}
|
|
3800
4069
|
)
|
|
3801
4070
|
}
|
|
3802
|
-
),
|
|
4071
|
+
), et = ({
|
|
3803
4072
|
className: i,
|
|
3804
|
-
color: e =
|
|
4073
|
+
color: e = k.GREY_DARK_5,
|
|
3805
4074
|
height: t = 20,
|
|
3806
4075
|
width: s = 20,
|
|
3807
4076
|
onClick: n
|
|
@@ -3832,9 +4101,9 @@ const le = ({
|
|
|
3832
4101
|
)
|
|
3833
4102
|
]
|
|
3834
4103
|
}
|
|
3835
|
-
),
|
|
4104
|
+
), tt = ({
|
|
3836
4105
|
className: i,
|
|
3837
|
-
color: e =
|
|
4106
|
+
color: e = k.GREY_DARK_5,
|
|
3838
4107
|
height: t = 24,
|
|
3839
4108
|
width: s = 24,
|
|
3840
4109
|
onClick: n
|
|
@@ -3871,9 +4140,9 @@ const le = ({
|
|
|
3871
4140
|
)
|
|
3872
4141
|
]
|
|
3873
4142
|
}
|
|
3874
|
-
),
|
|
4143
|
+
), it = ({
|
|
3875
4144
|
className: i,
|
|
3876
|
-
color: e =
|
|
4145
|
+
color: e = k.GREY_DARK_5,
|
|
3877
4146
|
height: t = 24,
|
|
3878
4147
|
width: s = 24,
|
|
3879
4148
|
onClick: n
|
|
@@ -3898,9 +4167,9 @@ const le = ({
|
|
|
3898
4167
|
}
|
|
3899
4168
|
)
|
|
3900
4169
|
}
|
|
3901
|
-
),
|
|
4170
|
+
), st = ({
|
|
3902
4171
|
className: i,
|
|
3903
|
-
color: e =
|
|
4172
|
+
color: e = k.GREY_DARK_5,
|
|
3904
4173
|
height: t = 24,
|
|
3905
4174
|
width: s = 24,
|
|
3906
4175
|
onClick: n
|
|
@@ -3957,9 +4226,9 @@ const le = ({
|
|
|
3957
4226
|
)
|
|
3958
4227
|
]
|
|
3959
4228
|
}
|
|
3960
|
-
),
|
|
4229
|
+
), nt = ({
|
|
3961
4230
|
className: i,
|
|
3962
|
-
color: e =
|
|
4231
|
+
color: e = k.GREY_DARK_5,
|
|
3963
4232
|
height: t = 24,
|
|
3964
4233
|
width: s = 24,
|
|
3965
4234
|
onClick: n
|
|
@@ -3994,9 +4263,9 @@ const le = ({
|
|
|
3994
4263
|
)
|
|
3995
4264
|
]
|
|
3996
4265
|
}
|
|
3997
|
-
),
|
|
4266
|
+
), rt = ({
|
|
3998
4267
|
className: i,
|
|
3999
|
-
color: e =
|
|
4268
|
+
color: e = k.GREY_DARK_3,
|
|
4000
4269
|
height: t = 14,
|
|
4001
4270
|
width: s = 14,
|
|
4002
4271
|
onClick: n
|
|
@@ -4031,9 +4300,9 @@ const le = ({
|
|
|
4031
4300
|
)
|
|
4032
4301
|
]
|
|
4033
4302
|
}
|
|
4034
|
-
),
|
|
4303
|
+
), ot = ({
|
|
4035
4304
|
className: i,
|
|
4036
|
-
color: e =
|
|
4305
|
+
color: e = k.GREY_DARK_5,
|
|
4037
4306
|
height: t = 18,
|
|
4038
4307
|
onClick: s,
|
|
4039
4308
|
width: n = 18
|
|
@@ -4058,9 +4327,9 @@ const le = ({
|
|
|
4058
4327
|
}
|
|
4059
4328
|
)
|
|
4060
4329
|
}
|
|
4061
|
-
),
|
|
4330
|
+
), at = ({
|
|
4062
4331
|
className: i,
|
|
4063
|
-
color: e =
|
|
4332
|
+
color: e = k.GREY_DARK_5,
|
|
4064
4333
|
height: t = 24,
|
|
4065
4334
|
width: s = 24,
|
|
4066
4335
|
onClick: n
|
|
@@ -4110,9 +4379,9 @@ const le = ({
|
|
|
4110
4379
|
)
|
|
4111
4380
|
]
|
|
4112
4381
|
}
|
|
4113
|
-
),
|
|
4382
|
+
), lt = ({
|
|
4114
4383
|
className: i,
|
|
4115
|
-
color: e =
|
|
4384
|
+
color: e = k.GREY_DARK_5,
|
|
4116
4385
|
height: t = 24,
|
|
4117
4386
|
width: s = 24,
|
|
4118
4387
|
onClick: n
|
|
@@ -4147,9 +4416,9 @@ const le = ({
|
|
|
4147
4416
|
)
|
|
4148
4417
|
]
|
|
4149
4418
|
}
|
|
4150
|
-
),
|
|
4419
|
+
), ht = ({
|
|
4151
4420
|
className: i,
|
|
4152
|
-
color: e =
|
|
4421
|
+
color: e = k.NOTIFICATION_WARNING_DARK,
|
|
4153
4422
|
height: t = 37,
|
|
4154
4423
|
width: s = 36,
|
|
4155
4424
|
onClick: n
|
|
@@ -4186,9 +4455,9 @@ const le = ({
|
|
|
4186
4455
|
)
|
|
4187
4456
|
]
|
|
4188
4457
|
}
|
|
4189
|
-
),
|
|
4458
|
+
), ct = ({
|
|
4190
4459
|
className: i,
|
|
4191
|
-
color: e =
|
|
4460
|
+
color: e = k.GREY_DARK_5,
|
|
4192
4461
|
height: t = 24,
|
|
4193
4462
|
width: s = 24,
|
|
4194
4463
|
onClick: n
|
|
@@ -4212,9 +4481,9 @@ const le = ({
|
|
|
4212
4481
|
}
|
|
4213
4482
|
)
|
|
4214
4483
|
}
|
|
4215
|
-
),
|
|
4484
|
+
), dt = ({
|
|
4216
4485
|
className: i,
|
|
4217
|
-
color: e =
|
|
4486
|
+
color: e = k.GREY_DARK_5,
|
|
4218
4487
|
height: t = 24,
|
|
4219
4488
|
width: s = 24,
|
|
4220
4489
|
onClick: n
|
|
@@ -4251,9 +4520,9 @@ const le = ({
|
|
|
4251
4520
|
)
|
|
4252
4521
|
]
|
|
4253
4522
|
}
|
|
4254
|
-
),
|
|
4523
|
+
), Ct = ({
|
|
4255
4524
|
className: i,
|
|
4256
|
-
color: e =
|
|
4525
|
+
color: e = k.GREY_DARK_5,
|
|
4257
4526
|
height: t = 20,
|
|
4258
4527
|
width: s = 20,
|
|
4259
4528
|
onClick: n
|
|
@@ -4284,9 +4553,9 @@ const le = ({
|
|
|
4284
4553
|
)
|
|
4285
4554
|
]
|
|
4286
4555
|
}
|
|
4287
|
-
),
|
|
4556
|
+
), gt = ({
|
|
4288
4557
|
className: i,
|
|
4289
|
-
color: e =
|
|
4558
|
+
color: e = k.GREY_DARK_5,
|
|
4290
4559
|
height: t = 24,
|
|
4291
4560
|
width: s = 24,
|
|
4292
4561
|
onClick: n
|
|
@@ -4353,9 +4622,9 @@ const le = ({
|
|
|
4353
4622
|
)
|
|
4354
4623
|
]
|
|
4355
4624
|
}
|
|
4356
|
-
),
|
|
4625
|
+
), ut = ({
|
|
4357
4626
|
className: i,
|
|
4358
|
-
color: e =
|
|
4627
|
+
color: e = k.GREY_DARK_5,
|
|
4359
4628
|
height: t = 24,
|
|
4360
4629
|
width: s = 24,
|
|
4361
4630
|
onClick: n
|
|
@@ -4410,9 +4679,9 @@ const le = ({
|
|
|
4410
4679
|
)
|
|
4411
4680
|
]
|
|
4412
4681
|
}
|
|
4413
|
-
),
|
|
4682
|
+
), pt = ({
|
|
4414
4683
|
className: i,
|
|
4415
|
-
color: e =
|
|
4684
|
+
color: e = k.GREY_DARK_5,
|
|
4416
4685
|
height: t = 24,
|
|
4417
4686
|
width: s = 24,
|
|
4418
4687
|
onClick: n
|
|
@@ -4459,9 +4728,9 @@ const le = ({
|
|
|
4459
4728
|
)
|
|
4460
4729
|
]
|
|
4461
4730
|
}
|
|
4462
|
-
),
|
|
4731
|
+
), ft = ({
|
|
4463
4732
|
className: i,
|
|
4464
|
-
color: e =
|
|
4733
|
+
color: e = k.GREY_DARK_5,
|
|
4465
4734
|
height: t = 24,
|
|
4466
4735
|
width: s = 24,
|
|
4467
4736
|
onClick: n
|
|
@@ -4486,9 +4755,9 @@ const le = ({
|
|
|
4486
4755
|
}
|
|
4487
4756
|
)
|
|
4488
4757
|
}
|
|
4489
|
-
),
|
|
4758
|
+
), mt = ({
|
|
4490
4759
|
className: i,
|
|
4491
|
-
color: e =
|
|
4760
|
+
color: e = k.GREY_DARK_5,
|
|
4492
4761
|
height: t = 20,
|
|
4493
4762
|
width: s = 20,
|
|
4494
4763
|
onClick: n
|
|
@@ -4503,7 +4772,7 @@ const le = ({
|
|
|
4503
4772
|
fill: "none",
|
|
4504
4773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4505
4774
|
children: [
|
|
4506
|
-
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill:
|
|
4775
|
+
/* @__PURE__ */ r("rect", { width: "20", height: "20", rx: "4", fill: k.GREY_LIGHT_2 }),
|
|
4507
4776
|
/* @__PURE__ */ r(
|
|
4508
4777
|
"path",
|
|
4509
4778
|
{
|
|
@@ -4515,7 +4784,7 @@ const le = ({
|
|
|
4515
4784
|
)
|
|
4516
4785
|
]
|
|
4517
4786
|
}
|
|
4518
|
-
),
|
|
4787
|
+
), wt = ({
|
|
4519
4788
|
className: i,
|
|
4520
4789
|
color: e = "#001E52",
|
|
4521
4790
|
height: t = 24,
|
|
@@ -4541,7 +4810,7 @@ const le = ({
|
|
|
4541
4810
|
}
|
|
4542
4811
|
)
|
|
4543
4812
|
}
|
|
4544
|
-
),
|
|
4813
|
+
), Lt = ({
|
|
4545
4814
|
className: i,
|
|
4546
4815
|
color: e = "#001E52",
|
|
4547
4816
|
height: t = 24,
|
|
@@ -4579,10 +4848,10 @@ const le = ({
|
|
|
4579
4848
|
)
|
|
4580
4849
|
] }) })
|
|
4581
4850
|
}
|
|
4582
|
-
),
|
|
4851
|
+
), kt = ({
|
|
4583
4852
|
width: i = 20,
|
|
4584
4853
|
height: e = 20,
|
|
4585
|
-
color: t =
|
|
4854
|
+
color: t = k.GREY_DARK_5,
|
|
4586
4855
|
className: s,
|
|
4587
4856
|
onClick: n
|
|
4588
4857
|
}) => /* @__PURE__ */ r(
|
|
@@ -4603,7 +4872,7 @@ const le = ({
|
|
|
4603
4872
|
}
|
|
4604
4873
|
)
|
|
4605
4874
|
}
|
|
4606
|
-
),
|
|
4875
|
+
), vt = ({
|
|
4607
4876
|
width: i = 24,
|
|
4608
4877
|
height: e = 24,
|
|
4609
4878
|
color: t = "#131314",
|
|
@@ -4636,10 +4905,10 @@ const le = ({
|
|
|
4636
4905
|
)
|
|
4637
4906
|
]
|
|
4638
4907
|
}
|
|
4639
|
-
),
|
|
4908
|
+
), Nt = ({
|
|
4640
4909
|
width: i = 20,
|
|
4641
4910
|
height: e = 20,
|
|
4642
|
-
color: t =
|
|
4911
|
+
color: t = k.GREY_DARK_5,
|
|
4643
4912
|
className: s,
|
|
4644
4913
|
onClick: n
|
|
4645
4914
|
}) => /* @__PURE__ */ u(
|
|
@@ -4669,10 +4938,10 @@ const le = ({
|
|
|
4669
4938
|
)
|
|
4670
4939
|
]
|
|
4671
4940
|
}
|
|
4672
|
-
),
|
|
4941
|
+
), Rt = ({
|
|
4673
4942
|
width: i = 24,
|
|
4674
4943
|
height: e = 24,
|
|
4675
|
-
color: t =
|
|
4944
|
+
color: t = k.GREY_DARK_2,
|
|
4676
4945
|
className: s,
|
|
4677
4946
|
onClick: n
|
|
4678
4947
|
}) => /* @__PURE__ */ u(
|
|
@@ -4709,10 +4978,10 @@ const le = ({
|
|
|
4709
4978
|
)
|
|
4710
4979
|
]
|
|
4711
4980
|
}
|
|
4712
|
-
),
|
|
4981
|
+
), xt = ({
|
|
4713
4982
|
width: i = 24,
|
|
4714
4983
|
height: e = 24,
|
|
4715
|
-
color: t =
|
|
4984
|
+
color: t = k.GREY_DARK_2,
|
|
4716
4985
|
className: s,
|
|
4717
4986
|
onClick: n
|
|
4718
4987
|
}) => /* @__PURE__ */ r(
|
|
@@ -4736,10 +5005,10 @@ const le = ({
|
|
|
4736
5005
|
}
|
|
4737
5006
|
)
|
|
4738
5007
|
}
|
|
4739
|
-
),
|
|
5008
|
+
), _t = ({
|
|
4740
5009
|
width: i = 24,
|
|
4741
5010
|
height: e = 24,
|
|
4742
|
-
color: t =
|
|
5011
|
+
color: t = k.GREY_DARK_2,
|
|
4743
5012
|
className: s,
|
|
4744
5013
|
onClick: n
|
|
4745
5014
|
}) => /* @__PURE__ */ r(
|
|
@@ -4763,7 +5032,7 @@ const le = ({
|
|
|
4763
5032
|
}
|
|
4764
5033
|
)
|
|
4765
5034
|
}
|
|
4766
|
-
),
|
|
5035
|
+
), Mt = ({
|
|
4767
5036
|
name: i,
|
|
4768
5037
|
width: e,
|
|
4769
5038
|
height: t,
|
|
@@ -4772,8 +5041,8 @@ const le = ({
|
|
|
4772
5041
|
disabled: o = !1,
|
|
4773
5042
|
onClick: c
|
|
4774
5043
|
}) => {
|
|
4775
|
-
const [a, C] =
|
|
4776
|
-
return
|
|
5044
|
+
const [a, C] = O(n), { theme: d } = r1(d2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : s, h = o ? void 0 : c;
|
|
5045
|
+
return G(() => {
|
|
4777
5046
|
if (n) {
|
|
4778
5047
|
h && !o && C(`${n} clickable`);
|
|
4779
5048
|
return;
|
|
@@ -4782,35 +5051,35 @@ const le = ({
|
|
|
4782
5051
|
}, [h, n, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
4783
5052
|
switch (i) {
|
|
4784
5053
|
case "nextIcon":
|
|
4785
|
-
return
|
|
5054
|
+
return Je({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4786
5055
|
case "prevIcon":
|
|
4787
|
-
return
|
|
5056
|
+
return qe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4788
5057
|
case "arrowDown":
|
|
4789
|
-
return
|
|
5058
|
+
return fe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4790
5059
|
case "info":
|
|
4791
|
-
return
|
|
5060
|
+
return me({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4792
5061
|
case "arrowRight":
|
|
4793
|
-
return
|
|
5062
|
+
return we({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4794
5063
|
case "calendar":
|
|
4795
|
-
return
|
|
5064
|
+
return Re({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4796
5065
|
case "check":
|
|
4797
|
-
return
|
|
5066
|
+
return xe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4798
5067
|
case "cancel":
|
|
4799
|
-
return
|
|
5068
|
+
return _e({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4800
5069
|
case "add":
|
|
4801
|
-
return
|
|
5070
|
+
return Me({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4802
5071
|
case "list":
|
|
4803
|
-
return
|
|
5072
|
+
return be({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4804
5073
|
case "dragAndDrop":
|
|
4805
|
-
return
|
|
5074
|
+
return ye({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4806
5075
|
case "filter":
|
|
4807
|
-
return
|
|
5076
|
+
return He({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4808
5077
|
case "attention":
|
|
4809
|
-
return
|
|
5078
|
+
return Ee({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4810
5079
|
case "users":
|
|
4811
|
-
return
|
|
5080
|
+
return Ve({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4812
5081
|
case "mySkillsMatrix":
|
|
4813
|
-
return
|
|
5082
|
+
return Ie({
|
|
4814
5083
|
width: e,
|
|
4815
5084
|
height: t,
|
|
4816
5085
|
color: l,
|
|
@@ -4818,9 +5087,9 @@ const le = ({
|
|
|
4818
5087
|
onClick: h
|
|
4819
5088
|
});
|
|
4820
5089
|
case "skills":
|
|
4821
|
-
return
|
|
5090
|
+
return Ae({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4822
5091
|
case "skillsMatrices":
|
|
4823
|
-
return
|
|
5092
|
+
return Oe({
|
|
4824
5093
|
width: e,
|
|
4825
5094
|
height: t,
|
|
4826
5095
|
color: l,
|
|
@@ -4828,21 +5097,21 @@ const le = ({
|
|
|
4828
5097
|
onClick: h
|
|
4829
5098
|
});
|
|
4830
5099
|
case "history":
|
|
4831
|
-
return
|
|
5100
|
+
return Ze({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4832
5101
|
case "logOut":
|
|
4833
|
-
return
|
|
5102
|
+
return Se({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4834
5103
|
case "settings":
|
|
4835
|
-
return
|
|
5104
|
+
return De({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4836
5105
|
case "trash":
|
|
4837
|
-
return
|
|
5106
|
+
return Ge({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4838
5107
|
case "settings2":
|
|
4839
|
-
return
|
|
5108
|
+
return Te({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4840
5109
|
case "checkCircle":
|
|
4841
|
-
return
|
|
5110
|
+
return Ke({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4842
5111
|
case "cancelCircle":
|
|
4843
|
-
return
|
|
5112
|
+
return Be({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4844
5113
|
case "visibilityIcon":
|
|
4845
|
-
return
|
|
5114
|
+
return Pe({
|
|
4846
5115
|
width: e,
|
|
4847
5116
|
height: t,
|
|
4848
5117
|
color: l,
|
|
@@ -4850,7 +5119,7 @@ const le = ({
|
|
|
4850
5119
|
onClick: h
|
|
4851
5120
|
});
|
|
4852
5121
|
case "visibilityOffIcon":
|
|
4853
|
-
return
|
|
5122
|
+
return Ye({
|
|
4854
5123
|
width: e,
|
|
4855
5124
|
height: t,
|
|
4856
5125
|
color: l,
|
|
@@ -4858,7 +5127,7 @@ const le = ({
|
|
|
4858
5127
|
onClick: h
|
|
4859
5128
|
});
|
|
4860
5129
|
case "selectArrowIcon":
|
|
4861
|
-
return
|
|
5130
|
+
return $e({
|
|
4862
5131
|
width: e,
|
|
4863
5132
|
height: t,
|
|
4864
5133
|
color: l,
|
|
@@ -4866,7 +5135,7 @@ const le = ({
|
|
|
4866
5135
|
onClick: h
|
|
4867
5136
|
});
|
|
4868
5137
|
case "expandArrowIcon":
|
|
4869
|
-
return
|
|
5138
|
+
return je({
|
|
4870
5139
|
width: e,
|
|
4871
5140
|
height: t,
|
|
4872
5141
|
color: l,
|
|
@@ -4874,7 +5143,7 @@ const le = ({
|
|
|
4874
5143
|
onClick: h
|
|
4875
5144
|
});
|
|
4876
5145
|
case "expandActiveArrowIcon":
|
|
4877
|
-
return
|
|
5146
|
+
return Fe({
|
|
4878
5147
|
width: e,
|
|
4879
5148
|
height: t,
|
|
4880
5149
|
color: l,
|
|
@@ -4882,78 +5151,86 @@ const le = ({
|
|
|
4882
5151
|
onClick: h
|
|
4883
5152
|
});
|
|
4884
5153
|
case "sortUp":
|
|
4885
|
-
return
|
|
5154
|
+
return We({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4886
5155
|
case "sortDown":
|
|
4887
|
-
return
|
|
5156
|
+
return Ue({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4888
5157
|
case "search":
|
|
4889
|
-
return
|
|
5158
|
+
return ze({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4890
5159
|
case "arrowUpFilled":
|
|
4891
|
-
return
|
|
5160
|
+
return Xe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4892
5161
|
case "arrowDownFilled":
|
|
4893
|
-
return
|
|
5162
|
+
return Qe({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5163
|
+
case "arrow2Up":
|
|
5164
|
+
return Le({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5165
|
+
case "arrow2Right":
|
|
5166
|
+
return ke({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5167
|
+
case "arrow2Down":
|
|
5168
|
+
return ve({ width: e, height: t, color: l, className: a, onClick: h });
|
|
5169
|
+
case "arrow2Left":
|
|
5170
|
+
return Ne({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4894
5171
|
case "link":
|
|
4895
|
-
return
|
|
5172
|
+
return et({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4896
5173
|
case "telegram":
|
|
4897
|
-
return
|
|
5174
|
+
return it({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4898
5175
|
case "mail":
|
|
4899
|
-
return
|
|
5176
|
+
return nt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4900
5177
|
case "github":
|
|
4901
|
-
return
|
|
5178
|
+
return tt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4902
5179
|
case "linkedIn":
|
|
4903
|
-
return
|
|
5180
|
+
return st({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4904
5181
|
case "emptyStateIcon":
|
|
4905
|
-
return
|
|
5182
|
+
return rt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4906
5183
|
case "filtersIcon":
|
|
4907
|
-
return
|
|
5184
|
+
return ot({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4908
5185
|
case "dotMenuIcon":
|
|
4909
|
-
return
|
|
5186
|
+
return at({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4910
5187
|
case "plusCircle":
|
|
4911
|
-
return
|
|
5188
|
+
return lt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4912
5189
|
case "warning":
|
|
4913
|
-
return
|
|
5190
|
+
return ht({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4914
5191
|
case "back":
|
|
4915
|
-
return
|
|
5192
|
+
return ct({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4916
5193
|
case "bell":
|
|
4917
|
-
return
|
|
5194
|
+
return dt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4918
5195
|
case "copy":
|
|
4919
|
-
return
|
|
5196
|
+
return Ct({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4920
5197
|
case "contract":
|
|
4921
|
-
return
|
|
5198
|
+
return gt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4922
5199
|
case "resourceManager":
|
|
4923
|
-
return
|
|
5200
|
+
return ut({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4924
5201
|
case "image":
|
|
4925
|
-
return
|
|
5202
|
+
return pt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4926
5203
|
case "edit":
|
|
4927
|
-
return
|
|
5204
|
+
return ft({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4928
5205
|
case "filledArrowRight":
|
|
4929
|
-
return
|
|
5206
|
+
return mt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4930
5207
|
case "burgerMenu":
|
|
4931
|
-
return
|
|
5208
|
+
return wt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4932
5209
|
case "refresh":
|
|
4933
|
-
return
|
|
5210
|
+
return Lt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4934
5211
|
case "projects":
|
|
4935
|
-
return
|
|
5212
|
+
return kt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4936
5213
|
case "user":
|
|
4937
|
-
return
|
|
5214
|
+
return Nt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4938
5215
|
case "exit":
|
|
4939
|
-
return
|
|
5216
|
+
return vt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4940
5217
|
case "openPointCircle":
|
|
4941
|
-
return
|
|
5218
|
+
return Rt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4942
5219
|
case "community":
|
|
4943
|
-
return
|
|
5220
|
+
return xt({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4944
5221
|
case "docs":
|
|
4945
|
-
return
|
|
5222
|
+
return _t({ width: e, height: t, color: l, className: a, onClick: h });
|
|
4946
5223
|
default:
|
|
4947
5224
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
4948
5225
|
}
|
|
4949
5226
|
})() });
|
|
4950
5227
|
};
|
|
4951
|
-
var
|
|
4952
|
-
const
|
|
5228
|
+
var m1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.BLUE_DARK_3 = "var(--blue-dark-3)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_LIGHT_2 = "var(--purple-light-2)", 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.CYAN_LIGHT = "var(--cyan-light)", i.GOLD_LIGHT = "var(--gold-light)", i))(m1 || {});
|
|
5229
|
+
const bt = C1({
|
|
4953
5230
|
locale: "en",
|
|
4954
5231
|
theme: "light"
|
|
4955
5232
|
});
|
|
4956
|
-
|
|
5233
|
+
bt.Provider;
|
|
4957
5234
|
const C2 = ({
|
|
4958
5235
|
children: i,
|
|
4959
5236
|
width: e,
|
|
@@ -4970,10 +5247,10 @@ const C2 = ({
|
|
|
4970
5247
|
{
|
|
4971
5248
|
className: `snmt-tag ${t} ${o ? "disabled" : ""}`,
|
|
4972
5249
|
closeIcon: /* @__PURE__ */ r(
|
|
4973
|
-
|
|
5250
|
+
Mt,
|
|
4974
5251
|
{
|
|
4975
5252
|
name: "cancelCircle",
|
|
4976
|
-
color: o ?
|
|
5253
|
+
color: o ? m1.GREY_DARK_1 : m1.GREY_DARK_2,
|
|
4977
5254
|
width: c,
|
|
4978
5255
|
height: c,
|
|
4979
5256
|
onClick: a
|
|
@@ -4983,21 +5260,21 @@ const C2 = ({
|
|
|
4983
5260
|
style: { width: e ?? "fit-content" },
|
|
4984
5261
|
closable: n,
|
|
4985
5262
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
4986
|
-
|
|
5263
|
+
pe,
|
|
4987
5264
|
{
|
|
4988
5265
|
variant: t === "small" ? "body4" : "body2",
|
|
4989
|
-
color: o ?
|
|
5266
|
+
color: o ? m1.GREY_DARK_2 : m1.GREY_DARK_5,
|
|
4990
5267
|
children: i
|
|
4991
5268
|
}
|
|
4992
5269
|
) : i
|
|
4993
5270
|
}
|
|
4994
5271
|
);
|
|
4995
|
-
}, { Title:
|
|
5272
|
+
}, { Title: yt, Text: Ht } = G1, Et = {
|
|
4996
5273
|
h1: 1,
|
|
4997
5274
|
h2: 2,
|
|
4998
5275
|
h3: 3,
|
|
4999
5276
|
h4: 4
|
|
5000
|
-
},
|
|
5277
|
+
}, Vt = d1(
|
|
5001
5278
|
({
|
|
5002
5279
|
align: i = "inherit",
|
|
5003
5280
|
variant: e = "body1",
|
|
@@ -5009,26 +5286,26 @@ const C2 = ({
|
|
|
5009
5286
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5010
5287
|
trim: a = !1
|
|
5011
5288
|
}, C) => {
|
|
5012
|
-
const d =
|
|
5013
|
-
|
|
5014
|
-
const [l, h] =
|
|
5015
|
-
|
|
5016
|
-
var
|
|
5289
|
+
const d = J(null);
|
|
5290
|
+
k1(C, () => d.current);
|
|
5291
|
+
const [l, h] = O(!1);
|
|
5292
|
+
G(() => {
|
|
5293
|
+
var v;
|
|
5017
5294
|
if (!a) return;
|
|
5018
5295
|
const m = () => {
|
|
5019
5296
|
d.current && h(d.current.scrollWidth > d.current.clientWidth);
|
|
5020
5297
|
};
|
|
5021
5298
|
m();
|
|
5022
|
-
const
|
|
5023
|
-
return d.current &&
|
|
5024
|
-
|
|
5299
|
+
const b = new ResizeObserver(m);
|
|
5300
|
+
return d.current && b.observe(d.current), (v = d.current) != null && v.parentElement && b.observe(d.current.parentElement), () => {
|
|
5301
|
+
b.disconnect();
|
|
5025
5302
|
};
|
|
5026
5303
|
}, [a]);
|
|
5027
5304
|
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5028
|
-
let
|
|
5029
|
-
i && i !== "inherit" && (
|
|
5305
|
+
let p = `snmt-typography snmt-typography-${e}`;
|
|
5306
|
+
i && i !== "inherit" && (p += ` snmt-typography-align-${i}`), o && (p += " collapsed");
|
|
5030
5307
|
const w = {
|
|
5031
|
-
className:
|
|
5308
|
+
className: p,
|
|
5032
5309
|
style: { color: t, whiteSpace: a ? "nowrap" : c, display: a ? "block" : "" },
|
|
5033
5310
|
onClick: n,
|
|
5034
5311
|
ref: d,
|
|
@@ -5039,34 +5316,35 @@ const C2 = ({
|
|
|
5039
5316
|
}
|
|
5040
5317
|
} : void 0
|
|
5041
5318
|
};
|
|
5042
|
-
return g ? /* @__PURE__ */ r(
|
|
5319
|
+
return g ? /* @__PURE__ */ r(yt, { level: Et[e], ...w, children: s }) : /* @__PURE__ */ r(Ht, { ...w, children: s });
|
|
5043
5320
|
}
|
|
5044
|
-
),
|
|
5321
|
+
), It = ({
|
|
5045
5322
|
children: i,
|
|
5046
5323
|
content: e,
|
|
5047
5324
|
isOpen: t,
|
|
5048
5325
|
setIsOpen: s,
|
|
5049
5326
|
placement: n = "topRight",
|
|
5050
|
-
noPadding: o = !1
|
|
5327
|
+
noPadding: o = !1,
|
|
5328
|
+
trigger: c = "click"
|
|
5051
5329
|
}) => {
|
|
5052
|
-
const [
|
|
5330
|
+
const [a, C] = O(!1);
|
|
5053
5331
|
return /* @__PURE__ */ r(
|
|
5054
|
-
|
|
5332
|
+
b2,
|
|
5055
5333
|
{
|
|
5056
5334
|
content: e,
|
|
5057
5335
|
arrow: !1,
|
|
5058
5336
|
placement: n,
|
|
5059
|
-
trigger:
|
|
5337
|
+
trigger: c,
|
|
5060
5338
|
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
|
5061
|
-
open: t ??
|
|
5062
|
-
onOpenChange: (
|
|
5063
|
-
|
|
5339
|
+
open: t ?? a,
|
|
5340
|
+
onOpenChange: (d) => {
|
|
5341
|
+
C(d), s == null || s(d);
|
|
5064
5342
|
},
|
|
5065
5343
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5066
5344
|
}
|
|
5067
5345
|
);
|
|
5068
5346
|
};
|
|
5069
|
-
var
|
|
5347
|
+
var At = { exports: {} };
|
|
5070
5348
|
(function(i, e) {
|
|
5071
5349
|
(function(t, s) {
|
|
5072
5350
|
i.exports = s();
|
|
@@ -5076,8 +5354,8 @@ var vt = { exports: {} };
|
|
|
5076
5354
|
return "[" + t + (s[(n - 20) % 10] || s[n] || s[0]) + "]";
|
|
5077
5355
|
} };
|
|
5078
5356
|
});
|
|
5079
|
-
})(
|
|
5080
|
-
const
|
|
5357
|
+
})(At);
|
|
5358
|
+
const Ot = ({
|
|
5081
5359
|
values: i,
|
|
5082
5360
|
onTagClose: e,
|
|
5083
5361
|
maxWidth: t,
|
|
@@ -5086,17 +5364,17 @@ const Nt = ({
|
|
|
5086
5364
|
options: o,
|
|
5087
5365
|
extraOptions: c
|
|
5088
5366
|
}) => {
|
|
5089
|
-
const { locale: a } = r1(
|
|
5090
|
-
if (
|
|
5367
|
+
const { locale: a } = r1(T1), { t: C } = z2("common", { lng: a }), [d, l] = O(!1);
|
|
5368
|
+
if (G(() => {
|
|
5091
5369
|
i.length || l(!1);
|
|
5092
5370
|
}, [i]), !i.length)
|
|
5093
5371
|
return null;
|
|
5094
5372
|
const h = (g) => {
|
|
5095
|
-
var
|
|
5096
|
-
return ((
|
|
5373
|
+
var p, w;
|
|
5374
|
+
return ((p = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : p.label) || ((w = c == null ? void 0 : c.find((v) => v.value === g)) == null ? void 0 : w.label) || g;
|
|
5097
5375
|
};
|
|
5098
5376
|
return /* @__PURE__ */ u(
|
|
5099
|
-
|
|
5377
|
+
It,
|
|
5100
5378
|
{
|
|
5101
5379
|
content: (
|
|
5102
5380
|
// 90: paddings + margins + gaps and so on
|
|
@@ -5121,19 +5399,19 @@ const Nt = ({
|
|
|
5121
5399
|
]
|
|
5122
5400
|
}
|
|
5123
5401
|
);
|
|
5124
|
-
},
|
|
5402
|
+
}, Zt = {
|
|
5125
5403
|
small: 20,
|
|
5126
5404
|
medium: 28,
|
|
5127
5405
|
large: 48
|
|
5128
|
-
},
|
|
5129
|
-
const t =
|
|
5406
|
+
}, $1 = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5407
|
+
const t = Zt[i], s = `no-repeat linear-gradient(${e}
|
|
5130
5408
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
5131
5409
|
width: t,
|
|
5132
5410
|
background: `${s} 0% 100%, ${s} 50% 100%, ${s} 100% 100%`,
|
|
5133
5411
|
backgroundSize: "20% calc(200% + 20px)"
|
|
5134
5412
|
};
|
|
5135
5413
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: n });
|
|
5136
|
-
},
|
|
5414
|
+
}, j1 = d1(
|
|
5137
5415
|
({
|
|
5138
5416
|
value: i,
|
|
5139
5417
|
onChange: e,
|
|
@@ -5148,101 +5426,101 @@ const Nt = ({
|
|
|
5148
5426
|
scrollThresholdValue: l = 50,
|
|
5149
5427
|
onSearchChange: h,
|
|
5150
5428
|
onDropdownVisibleChange: g,
|
|
5151
|
-
onScrollToEnd:
|
|
5429
|
+
onScrollToEnd: p,
|
|
5152
5430
|
onPopupScroll: w,
|
|
5153
|
-
id:
|
|
5431
|
+
id: v,
|
|
5154
5432
|
extraOptions: m,
|
|
5155
|
-
dropdownRender:
|
|
5156
|
-
optionRender:
|
|
5433
|
+
dropdownRender: b,
|
|
5434
|
+
optionRender: y,
|
|
5157
5435
|
isLoading: A,
|
|
5158
|
-
readOnly:
|
|
5436
|
+
readOnly: f,
|
|
5159
5437
|
error: x
|
|
5160
|
-
},
|
|
5161
|
-
const [R, j] =
|
|
5162
|
-
|
|
5163
|
-
|
|
5438
|
+
}, _) => {
|
|
5439
|
+
const [R, j] = O(!1), [q, F] = O(!1), [E, T] = O(!0), [V, Z] = O(i), D = J(null);
|
|
5440
|
+
G(() => {
|
|
5441
|
+
Z(i);
|
|
5164
5442
|
}, [i]);
|
|
5165
5443
|
const B = (N) => {
|
|
5166
5444
|
j(N), g && g(N);
|
|
5167
|
-
}, U = (N,
|
|
5168
|
-
var
|
|
5169
|
-
return !!((
|
|
5445
|
+
}, U = (N, H) => {
|
|
5446
|
+
var K;
|
|
5447
|
+
return !!((K = H == null ? void 0 : H.label) != null && K.toString().toLowerCase().includes(N.toLowerCase()));
|
|
5170
5448
|
}, I = () => {
|
|
5171
5449
|
F(!0);
|
|
5172
5450
|
}, Y = () => {
|
|
5173
5451
|
F(!1);
|
|
5174
5452
|
}, P = $(
|
|
5175
5453
|
(N) => {
|
|
5176
|
-
if (
|
|
5177
|
-
const
|
|
5178
|
-
e == null || e(
|
|
5454
|
+
if (Z(N), s) {
|
|
5455
|
+
const K = N;
|
|
5456
|
+
e == null || e(K);
|
|
5179
5457
|
return;
|
|
5180
5458
|
}
|
|
5181
|
-
const
|
|
5182
|
-
e == null || e(
|
|
5459
|
+
const H = N;
|
|
5460
|
+
e == null || e(H);
|
|
5183
5461
|
},
|
|
5184
5462
|
[s, e]
|
|
5185
5463
|
), e1 = $(() => {
|
|
5186
|
-
if (!(
|
|
5464
|
+
if (!(f || a)) {
|
|
5187
5465
|
if (s) {
|
|
5188
5466
|
P([]);
|
|
5189
5467
|
return;
|
|
5190
5468
|
}
|
|
5191
5469
|
P("");
|
|
5192
5470
|
}
|
|
5193
|
-
}, [a, P, s,
|
|
5471
|
+
}, [a, P, s, f]), t1 = $(
|
|
5194
5472
|
(N) => {
|
|
5195
|
-
const
|
|
5196
|
-
P(
|
|
5473
|
+
const H = V.filter((K) => K !== N);
|
|
5474
|
+
P(H), Z(H);
|
|
5197
5475
|
},
|
|
5198
|
-
[P,
|
|
5199
|
-
),
|
|
5200
|
-
(N) => (
|
|
5476
|
+
[P, V]
|
|
5477
|
+
), g1 = $(
|
|
5478
|
+
(N) => (V == null ? void 0 : V.indexOf(N)) === 0 ? (
|
|
5201
5479
|
// if the search input is empty
|
|
5202
5480
|
// then display the placeholder, else do not display it
|
|
5203
|
-
/* @__PURE__ */ r("span", { className: "custom-placeholder", children:
|
|
5481
|
+
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: E ? t : "" })
|
|
5204
5482
|
) : /* @__PURE__ */ r(i1, {}),
|
|
5205
|
-
[
|
|
5206
|
-
),
|
|
5483
|
+
[E, V, t]
|
|
5484
|
+
), v1 = (N) => {
|
|
5207
5485
|
N.preventDefault(), N.stopPropagation();
|
|
5208
|
-
},
|
|
5209
|
-
const { target:
|
|
5210
|
-
|
|
5486
|
+
}, N1 = async (N) => {
|
|
5487
|
+
const { target: H } = N;
|
|
5488
|
+
H.scrollTop + H.offsetHeight >= H.scrollHeight - l && (p == null || p(!0)), w && await w(N);
|
|
5211
5489
|
}, o1 = $(
|
|
5212
5490
|
(N) => {
|
|
5213
|
-
var
|
|
5214
|
-
return ((
|
|
5491
|
+
var H, K;
|
|
5492
|
+
return ((H = o.find((a1) => a1.value === N)) == null ? void 0 : H.label) || ((K = m == null ? void 0 : m.find(
|
|
5215
5493
|
(a1) => a1.value === N
|
|
5216
|
-
)) == null ? void 0 :
|
|
5494
|
+
)) == null ? void 0 : K.label) || N;
|
|
5217
5495
|
},
|
|
5218
5496
|
[m, o]
|
|
5219
|
-
),
|
|
5497
|
+
), R1 = $(
|
|
5220
5498
|
(N) => {
|
|
5221
|
-
var
|
|
5499
|
+
var H;
|
|
5222
5500
|
return /* @__PURE__ */ r(
|
|
5223
|
-
|
|
5501
|
+
Ot,
|
|
5224
5502
|
{
|
|
5225
5503
|
values: N,
|
|
5226
5504
|
onTagClose: t1,
|
|
5227
|
-
maxWidth: ((
|
|
5505
|
+
maxWidth: ((H = D.current) == null ? void 0 : H.clientWidth) || 0,
|
|
5228
5506
|
disabled: a,
|
|
5229
|
-
closable: !
|
|
5507
|
+
closable: !f,
|
|
5230
5508
|
options: o,
|
|
5231
5509
|
extraOptions: m
|
|
5232
5510
|
}
|
|
5233
5511
|
);
|
|
5234
5512
|
},
|
|
5235
|
-
[a, m, t1, o,
|
|
5236
|
-
),
|
|
5237
|
-
({ label: N, value:
|
|
5238
|
-
[a, o1, t1,
|
|
5239
|
-
), z = Array.isArray(
|
|
5513
|
+
[a, m, t1, o, f]
|
|
5514
|
+
), S = $(
|
|
5515
|
+
({ label: N, value: H, mode: K }) => K === "filter" ? g1(H) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(C2, { onClose: () => t1(H), disabled: a, children: typeof N == "object" ? N : o1(H) }) }),
|
|
5516
|
+
[a, o1, t1, g1]
|
|
5517
|
+
), z = Array.isArray(V) && V.length > 0 || !!V && typeof V == "string" && V.trim() !== "";
|
|
5240
5518
|
return /* @__PURE__ */ u("div", { className: "snmt-select-container", children: [
|
|
5241
5519
|
/* @__PURE__ */ u(
|
|
5242
5520
|
"div",
|
|
5243
5521
|
{
|
|
5244
|
-
className: `snmt-select-1-15-6 ${
|
|
5245
|
-
${s ? "" : "snmt-select-single"} ${
|
|
5522
|
+
className: `snmt-select-1-15-6 ${q ? "snmt-select-focused" : ""}
|
|
5523
|
+
${s ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
|
|
5246
5524
|
ref: D,
|
|
5247
5525
|
style: { width: c },
|
|
5248
5526
|
children: [
|
|
@@ -5250,34 +5528,34 @@ const Nt = ({
|
|
|
5250
5528
|
N2,
|
|
5251
5529
|
{
|
|
5252
5530
|
className: "snmt-select-blank",
|
|
5253
|
-
popupClassName:
|
|
5254
|
-
id:
|
|
5255
|
-
ref:
|
|
5531
|
+
popupClassName: f ? "dropdown-read-only" : "",
|
|
5532
|
+
id: v,
|
|
5533
|
+
ref: _,
|
|
5256
5534
|
showSearch: !!n,
|
|
5257
5535
|
filterOption: n && U,
|
|
5258
5536
|
onDropdownVisibleChange: B,
|
|
5259
5537
|
disabled: a,
|
|
5260
|
-
value:
|
|
5538
|
+
value: V || void 0,
|
|
5261
5539
|
labelRender: (N) => {
|
|
5262
|
-
const
|
|
5263
|
-
return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children:
|
|
5540
|
+
const H = o1(N.value);
|
|
5541
|
+
return a ? /* @__PURE__ */ r("span", { style: { color: Q.GREY_DARK_1 }, children: H }) : H;
|
|
5264
5542
|
},
|
|
5265
5543
|
mode: s === "filter" ? "multiple" : s,
|
|
5266
5544
|
onChange: P,
|
|
5267
5545
|
onFocus: I,
|
|
5268
5546
|
onBlur: Y,
|
|
5269
5547
|
onSearch: (N) => {
|
|
5270
|
-
|
|
5548
|
+
T(!N), h && h(N);
|
|
5271
5549
|
},
|
|
5272
|
-
onSelect: () =>
|
|
5273
|
-
onDeselect: () =>
|
|
5274
|
-
tagRender: (N) =>
|
|
5550
|
+
onSelect: () => T(!0),
|
|
5551
|
+
onDeselect: () => T(!0),
|
|
5552
|
+
tagRender: (N) => S({ ...N, mode: s }),
|
|
5275
5553
|
maxTagCount: "responsive",
|
|
5276
|
-
maxTagPlaceholder:
|
|
5277
|
-
onPopupScroll:
|
|
5278
|
-
prefix: A && /* @__PURE__ */ r(
|
|
5554
|
+
maxTagPlaceholder: R1,
|
|
5555
|
+
onPopupScroll: N1,
|
|
5556
|
+
prefix: A && /* @__PURE__ */ r($1, { size: "small" }),
|
|
5279
5557
|
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: s !== "filter" && /* @__PURE__ */ u(i1, { children: [
|
|
5280
|
-
|
|
5558
|
+
V && !!V.length && (s || d) && /* @__PURE__ */ r(
|
|
5281
5559
|
"div",
|
|
5282
5560
|
{
|
|
5283
5561
|
onClick: e1,
|
|
@@ -5285,7 +5563,7 @@ const Nt = ({
|
|
|
5285
5563
|
cursor: a ? "not-allowed" : "pointer"
|
|
5286
5564
|
},
|
|
5287
5565
|
children: /* @__PURE__ */ r(
|
|
5288
|
-
|
|
5566
|
+
u1,
|
|
5289
5567
|
{
|
|
5290
5568
|
name: "cancel",
|
|
5291
5569
|
color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_2
|
|
@@ -5294,7 +5572,7 @@ const Nt = ({
|
|
|
5294
5572
|
}
|
|
5295
5573
|
),
|
|
5296
5574
|
/* @__PURE__ */ r(
|
|
5297
|
-
|
|
5575
|
+
u1,
|
|
5298
5576
|
{
|
|
5299
5577
|
name: "selectArrowIcon",
|
|
5300
5578
|
color: a ? Q.GREY_DARK_1 : Q.GREY_DARK_5,
|
|
@@ -5303,14 +5581,14 @@ const Nt = ({
|
|
|
5303
5581
|
}
|
|
5304
5582
|
)
|
|
5305
5583
|
] }) }),
|
|
5306
|
-
removeIcon: /* @__PURE__ */ r(
|
|
5584
|
+
removeIcon: /* @__PURE__ */ r(u1, { name: "cancelCircle", color: Q.GREY_DARK_1 }),
|
|
5307
5585
|
options: o,
|
|
5308
|
-
optionRender: (N) =>
|
|
5586
|
+
optionRender: (N) => y ? y(N.data) : /* @__PURE__ */ u(f1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5309
5587
|
/* @__PURE__ */ u(f1, { alignItems: "center", gap: 12, children: [
|
|
5310
5588
|
s && /* @__PURE__ */ r(
|
|
5311
|
-
|
|
5589
|
+
t5,
|
|
5312
5590
|
{
|
|
5313
|
-
checked: !!(
|
|
5591
|
+
checked: !!(V != null && V.includes(N.value))
|
|
5314
5592
|
}
|
|
5315
5593
|
),
|
|
5316
5594
|
/* @__PURE__ */ u(f1, { alignItems: "center", gap: 8, children: [
|
|
@@ -5318,11 +5596,11 @@ const Nt = ({
|
|
|
5318
5596
|
/* @__PURE__ */ r("span", { children: N.label })
|
|
5319
5597
|
] })
|
|
5320
5598
|
] }),
|
|
5321
|
-
!s &&
|
|
5599
|
+
!s && V === N.value && /* @__PURE__ */ r(u1, { name: "check", color: Q.BLUE_DARK_1 })
|
|
5322
5600
|
] }),
|
|
5323
5601
|
dropdownRender: (N) => /* @__PURE__ */ u("div", { className: "dropdown-container", children: [
|
|
5324
|
-
/* @__PURE__ */ r("div", { className: "dropdown-menu", children:
|
|
5325
|
-
A && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(
|
|
5602
|
+
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: b ? b(N) : N }),
|
|
5603
|
+
A && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r($1, {}) })
|
|
5326
5604
|
] })
|
|
5327
5605
|
}
|
|
5328
5606
|
),
|
|
@@ -5330,14 +5608,14 @@ const Nt = ({
|
|
|
5330
5608
|
/* @__PURE__ */ r(
|
|
5331
5609
|
"label",
|
|
5332
5610
|
{
|
|
5333
|
-
className: `${
|
|
5611
|
+
className: `${q || z ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${q ? "label-focused" : ""} ${A ? "label-loading" : ""} ${x ? "label-error" : ""}`,
|
|
5334
5612
|
children: C ? `${t}*` : t
|
|
5335
5613
|
}
|
|
5336
5614
|
),
|
|
5337
5615
|
/* @__PURE__ */ r(
|
|
5338
5616
|
"fieldset",
|
|
5339
5617
|
{
|
|
5340
|
-
className: `${
|
|
5618
|
+
className: `${q ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${z ? "fieldset-filled" : ""} ${x ? "fieldset-error" : ""}`,
|
|
5341
5619
|
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: C ? `${t}*` : t }) })
|
|
5342
5620
|
}
|
|
5343
5621
|
)
|
|
@@ -5347,7 +5625,7 @@ const Nt = ({
|
|
|
5347
5625
|
),
|
|
5348
5626
|
x && /* @__PURE__ */ u(f1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5349
5627
|
/* @__PURE__ */ r(
|
|
5350
|
-
|
|
5628
|
+
u1,
|
|
5351
5629
|
{
|
|
5352
5630
|
name: "attention",
|
|
5353
5631
|
color: Q.NOTIFICATION_ERROR_DARK,
|
|
@@ -5355,14 +5633,14 @@ const Nt = ({
|
|
|
5355
5633
|
width: 16
|
|
5356
5634
|
}
|
|
5357
5635
|
),
|
|
5358
|
-
typeof x == "string" ? /* @__PURE__ */ r(
|
|
5636
|
+
typeof x == "string" ? /* @__PURE__ */ r(Vt, { color: Q.NOTIFICATION_ERROR_DARK, variant: "body4", children: x }) : x
|
|
5359
5637
|
] })
|
|
5360
5638
|
] });
|
|
5361
5639
|
}
|
|
5362
5640
|
);
|
|
5363
|
-
function
|
|
5364
|
-
const t =
|
|
5365
|
-
return
|
|
5641
|
+
function St(i, e = 500) {
|
|
5642
|
+
const t = J();
|
|
5643
|
+
return G(() => () => {
|
|
5366
5644
|
t.current && clearTimeout(t.current);
|
|
5367
5645
|
}, []), (...s) => {
|
|
5368
5646
|
const n = setTimeout(() => {
|
|
@@ -5371,15 +5649,15 @@ function xt(i, e = 500) {
|
|
|
5371
5649
|
clearTimeout(t.current), t.current = n;
|
|
5372
5650
|
};
|
|
5373
5651
|
}
|
|
5374
|
-
function
|
|
5375
|
-
const e =
|
|
5376
|
-
return
|
|
5652
|
+
function F1(i) {
|
|
5653
|
+
const e = J(i);
|
|
5654
|
+
return G(() => {
|
|
5377
5655
|
e.current = i;
|
|
5378
5656
|
}, [i]), e.current;
|
|
5379
5657
|
}
|
|
5380
|
-
const
|
|
5658
|
+
const V1 = 100, l1 = {
|
|
5381
5659
|
offset: 0
|
|
5382
|
-
},
|
|
5660
|
+
}, W1 = d1(
|
|
5383
5661
|
({
|
|
5384
5662
|
loadOptions: i,
|
|
5385
5663
|
width: e,
|
|
@@ -5394,154 +5672,154 @@ const E1 = 100, l1 = {
|
|
|
5394
5672
|
preloadOptions: l,
|
|
5395
5673
|
extraOptions: h,
|
|
5396
5674
|
onDropdownVisibleChange: g,
|
|
5397
|
-
optionRender:
|
|
5675
|
+
optionRender: p,
|
|
5398
5676
|
dropdownRender: w,
|
|
5399
|
-
readOnly:
|
|
5677
|
+
readOnly: v,
|
|
5400
5678
|
clearable: m = !1,
|
|
5401
|
-
required:
|
|
5402
|
-
error:
|
|
5679
|
+
required: b = !1,
|
|
5680
|
+
error: y
|
|
5403
5681
|
}, A) => {
|
|
5404
|
-
const [
|
|
5682
|
+
const [f, x] = O(), [_, R] = O(l1), [j, q] = O(!1), [F, E] = O(), [T, V] = O(!1), [Z, D] = O(
|
|
5405
5683
|
h ?? []
|
|
5406
|
-
), B =
|
|
5684
|
+
), B = F1(_.offset), U = F1(F), [I, Y] = O(!1), P = J(!1), e1 = $(
|
|
5407
5685
|
async ({
|
|
5408
|
-
limit:
|
|
5686
|
+
limit: S = V1,
|
|
5409
5687
|
offset: z,
|
|
5410
5688
|
search: N
|
|
5411
5689
|
}) => {
|
|
5412
|
-
|
|
5690
|
+
q(!0);
|
|
5413
5691
|
try {
|
|
5414
|
-
const
|
|
5415
|
-
limit:
|
|
5692
|
+
const H = await i({
|
|
5693
|
+
limit: S,
|
|
5416
5694
|
offset: z,
|
|
5417
5695
|
search: N
|
|
5418
5696
|
});
|
|
5419
5697
|
x(
|
|
5420
|
-
(
|
|
5421
|
-
), R((
|
|
5422
|
-
...
|
|
5423
|
-
count:
|
|
5698
|
+
(K) => z === 0 ? H.options : [...K ?? [], ...H.options]
|
|
5699
|
+
), R((K) => ({
|
|
5700
|
+
...K,
|
|
5701
|
+
count: H.count
|
|
5424
5702
|
}));
|
|
5425
|
-
} catch (
|
|
5426
|
-
return console.error("AsyncSelect. fetchOptions error",
|
|
5703
|
+
} catch (H) {
|
|
5704
|
+
return console.error("AsyncSelect. fetchOptions error", H), [];
|
|
5427
5705
|
} finally {
|
|
5428
|
-
|
|
5706
|
+
q(!1);
|
|
5429
5707
|
}
|
|
5430
5708
|
},
|
|
5431
5709
|
[i]
|
|
5432
|
-
), t1 =
|
|
5433
|
-
|
|
5434
|
-
}),
|
|
5435
|
-
(
|
|
5710
|
+
), t1 = St((S) => {
|
|
5711
|
+
E(S), S || R(l1);
|
|
5712
|
+
}), g1 = $(
|
|
5713
|
+
(S) => t1(S),
|
|
5436
5714
|
[t1]
|
|
5437
|
-
),
|
|
5438
|
-
async (
|
|
5439
|
-
j ||
|
|
5715
|
+
), v1 = $(
|
|
5716
|
+
async (S) => {
|
|
5717
|
+
j || S && _.count && _.count > ((f == null ? void 0 : f.length) ?? 0) && R((z) => ({
|
|
5440
5718
|
...z,
|
|
5441
|
-
offset: z.offset +
|
|
5719
|
+
offset: z.offset + V1
|
|
5442
5720
|
}));
|
|
5443
5721
|
},
|
|
5444
|
-
[j,
|
|
5445
|
-
),
|
|
5446
|
-
(
|
|
5447
|
-
|
|
5722
|
+
[j, f == null ? void 0 : f.length, _.count]
|
|
5723
|
+
), N1 = $(
|
|
5724
|
+
(S) => {
|
|
5725
|
+
V(S), !S && F && (E(void 0), R(l1), Y(!0)), g == null || g(S);
|
|
5448
5726
|
},
|
|
5449
5727
|
[g, F]
|
|
5450
5728
|
);
|
|
5451
|
-
|
|
5452
|
-
!P.current || j || (I ||
|
|
5453
|
-
}, [I,
|
|
5729
|
+
G(() => {
|
|
5730
|
+
!P.current || j || (I || T && (B !== _.offset || U !== F || !f)) && (e1({ offset: _.offset, limit: V1, search: F }), I && Y(!1));
|
|
5731
|
+
}, [I, T, _.offset, F, B, U, f, j]), G(() => {
|
|
5454
5732
|
(d || l) && e1(l1), P.current = !0;
|
|
5455
|
-
}, []),
|
|
5456
|
-
h && D((
|
|
5733
|
+
}, []), G(() => {
|
|
5734
|
+
h && D((S) => {
|
|
5457
5735
|
const z = h.filter(
|
|
5458
|
-
(N) => !
|
|
5736
|
+
(N) => !S.some((H) => H.value === N.value)
|
|
5459
5737
|
);
|
|
5460
|
-
return [...
|
|
5738
|
+
return [...S, ...z];
|
|
5461
5739
|
});
|
|
5462
5740
|
}, [h]);
|
|
5463
5741
|
const o1 = $(
|
|
5464
|
-
(
|
|
5465
|
-
t && t(
|
|
5742
|
+
(S) => {
|
|
5743
|
+
t && t(S);
|
|
5466
5744
|
let z = [];
|
|
5467
|
-
if (C ? z = Array.isArray(
|
|
5745
|
+
if (C ? z = Array.isArray(S) ? S : [] : z = S ? [S] : [], F) {
|
|
5468
5746
|
const N = z.filter(
|
|
5469
|
-
(
|
|
5747
|
+
(H) => !(Z != null && Z.some((K) => K.value === H))
|
|
5470
5748
|
);
|
|
5471
|
-
N.length > 0 && D((
|
|
5472
|
-
...
|
|
5473
|
-
...N.map((
|
|
5474
|
-
const a1 =
|
|
5749
|
+
N.length > 0 && D((H = []) => [
|
|
5750
|
+
...H,
|
|
5751
|
+
...N.map((K) => {
|
|
5752
|
+
const a1 = f == null ? void 0 : f.find((w2) => w2.value === K);
|
|
5475
5753
|
return {
|
|
5476
|
-
value:
|
|
5477
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
|
5754
|
+
value: K,
|
|
5755
|
+
label: (a1 == null ? void 0 : a1.label) ?? K
|
|
5478
5756
|
};
|
|
5479
5757
|
})
|
|
5480
|
-
]),
|
|
5758
|
+
]), E(void 0), R(l1), Y(!0);
|
|
5481
5759
|
}
|
|
5482
5760
|
},
|
|
5483
|
-
[t, F, C,
|
|
5484
|
-
),
|
|
5761
|
+
[t, F, C, f, Z]
|
|
5762
|
+
), R1 = v2(
|
|
5485
5763
|
() => ({
|
|
5486
5764
|
id: n,
|
|
5487
5765
|
width: e,
|
|
5488
|
-
options:
|
|
5766
|
+
options: f || [],
|
|
5489
5767
|
onChange: o1,
|
|
5490
5768
|
ref: A,
|
|
5491
5769
|
placeholder: a,
|
|
5492
5770
|
search: !0,
|
|
5493
5771
|
value: s,
|
|
5494
|
-
onSearchChange:
|
|
5495
|
-
onDropdownVisibleChange:
|
|
5772
|
+
onSearchChange: g1,
|
|
5773
|
+
onDropdownVisibleChange: N1,
|
|
5496
5774
|
scrollThresholdValue: c,
|
|
5497
|
-
onScrollToEnd:
|
|
5775
|
+
onScrollToEnd: v1,
|
|
5498
5776
|
disabled: o,
|
|
5499
|
-
extraOptions:
|
|
5777
|
+
extraOptions: Z,
|
|
5500
5778
|
isLoading: j,
|
|
5501
|
-
optionRender:
|
|
5779
|
+
optionRender: p,
|
|
5502
5780
|
dropdownRender: w,
|
|
5503
|
-
readOnly:
|
|
5781
|
+
readOnly: v,
|
|
5504
5782
|
clearable: m,
|
|
5505
|
-
required:
|
|
5506
|
-
error:
|
|
5783
|
+
required: b,
|
|
5784
|
+
error: y
|
|
5507
5785
|
}),
|
|
5508
5786
|
[
|
|
5509
5787
|
n,
|
|
5510
5788
|
e,
|
|
5511
|
-
|
|
5789
|
+
f,
|
|
5512
5790
|
o1,
|
|
5513
5791
|
A,
|
|
5514
5792
|
a,
|
|
5515
5793
|
s,
|
|
5516
|
-
|
|
5517
|
-
|
|
5794
|
+
g1,
|
|
5795
|
+
N1,
|
|
5518
5796
|
c,
|
|
5519
|
-
|
|
5797
|
+
v1,
|
|
5520
5798
|
o,
|
|
5521
|
-
|
|
5799
|
+
Z,
|
|
5522
5800
|
j,
|
|
5523
|
-
|
|
5801
|
+
p,
|
|
5524
5802
|
w,
|
|
5525
|
-
|
|
5803
|
+
v,
|
|
5526
5804
|
m,
|
|
5527
|
-
|
|
5528
|
-
|
|
5805
|
+
b,
|
|
5806
|
+
y
|
|
5529
5807
|
]
|
|
5530
5808
|
);
|
|
5531
|
-
return
|
|
5809
|
+
return k1(A, () => ({
|
|
5532
5810
|
refetchOptions: async () => {
|
|
5533
|
-
R(l1),
|
|
5811
|
+
R(l1), E(void 0), Y(!0);
|
|
5534
5812
|
}
|
|
5535
|
-
})), C ? /* @__PURE__ */ r(
|
|
5813
|
+
})), C ? /* @__PURE__ */ r(j1, { ...R1, value: s, mode: C }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(j1, { ...R1, value: s }) });
|
|
5536
5814
|
}
|
|
5537
5815
|
);
|
|
5538
|
-
var
|
|
5539
|
-
const
|
|
5816
|
+
var _1 = /* @__PURE__ */ ((i) => (i.ACTIVE = "Active", i.ARCHIVED = "Archived", i))(_1 || {});
|
|
5817
|
+
const Dt = {
|
|
5540
5818
|
small: 20,
|
|
5541
5819
|
medium: 28,
|
|
5542
5820
|
large: 48
|
|
5543
|
-
},
|
|
5544
|
-
const t =
|
|
5821
|
+
}, Gt = ({ size: i = "medium", color: e = "#004ed7" }) => {
|
|
5822
|
+
const t = Dt[i], s = `no-repeat linear-gradient(${e}
|
|
5545
5823
|
calc(50% - 10px), #0000 0 calc(50% + 10px), ${e} 0)`, n = {
|
|
5546
5824
|
width: t,
|
|
5547
5825
|
background: `${s} 0% 100%, ${s} 50% 100%, ${s} 100% 100%`,
|
|
@@ -5549,18 +5827,18 @@ const Mt = {
|
|
|
5549
5827
|
};
|
|
5550
5828
|
return /* @__PURE__ */ r("span", { className: "snmt-loader", style: n });
|
|
5551
5829
|
};
|
|
5552
|
-
function
|
|
5830
|
+
function Tt() {
|
|
5553
5831
|
if (console && console.warn) {
|
|
5554
5832
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
5555
5833
|
e[t] = arguments[t];
|
|
5556
5834
|
n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
|
|
5557
5835
|
}
|
|
5558
5836
|
}
|
|
5559
|
-
const
|
|
5837
|
+
const U1 = {};
|
|
5560
5838
|
function Z1() {
|
|
5561
5839
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
5562
5840
|
e[t] = arguments[t];
|
|
5563
|
-
n1(e[0]) &&
|
|
5841
|
+
n1(e[0]) && U1[e[0]] || (n1(e[0]) && (U1[e[0]] = /* @__PURE__ */ new Date()), Tt(...e));
|
|
5564
5842
|
}
|
|
5565
5843
|
const g2 = (i, e) => () => {
|
|
5566
5844
|
if (i.isInitialized)
|
|
@@ -5573,13 +5851,13 @@ const g2 = (i, e) => () => {
|
|
|
5573
5851
|
};
|
|
5574
5852
|
i.on("initialized", t);
|
|
5575
5853
|
}
|
|
5576
|
-
},
|
|
5854
|
+
}, z1 = (i, e, t) => {
|
|
5577
5855
|
i.loadNamespaces(e, g2(i, t));
|
|
5578
|
-
},
|
|
5856
|
+
}, J1 = (i, e, t, s) => {
|
|
5579
5857
|
n1(t) && (t = [t]), t.forEach((n) => {
|
|
5580
5858
|
i.options.ns.indexOf(n) < 0 && i.options.ns.push(n);
|
|
5581
5859
|
}), i.loadLanguages(e, g2(i, s));
|
|
5582
|
-
},
|
|
5860
|
+
}, Kt = function(i, e) {
|
|
5583
5861
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5584
5862
|
const s = e.languages[0], n = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
5585
5863
|
if (s.toLowerCase() === "cimode") return !0;
|
|
@@ -5588,15 +5866,15 @@ const g2 = (i, e) => () => {
|
|
|
5588
5866
|
return d === -1 || d === 2;
|
|
5589
5867
|
};
|
|
5590
5868
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(s, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(s, i) && (!n || c(o, i)));
|
|
5591
|
-
},
|
|
5869
|
+
}, Bt = function(i, e) {
|
|
5592
5870
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5593
5871
|
return !e.languages || !e.languages.length ? (Z1("i18n.languages were undefined or empty", e.languages), !0) : e.options.ignoreJSONStructure !== void 0 ? e.hasLoadedNamespace(i, {
|
|
5594
5872
|
lng: t.lng,
|
|
5595
5873
|
precheck: (n, o) => {
|
|
5596
5874
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !o(n.isLanguageChangingTo, i)) return !1;
|
|
5597
5875
|
}
|
|
5598
|
-
}) :
|
|
5599
|
-
}, n1 = (i) => typeof i == "string",
|
|
5876
|
+
}) : Kt(i, e, t);
|
|
5877
|
+
}, n1 = (i) => typeof i == "string", Pt = (i) => typeof i == "object" && i !== null, Yt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, $t = {
|
|
5600
5878
|
"&": "&",
|
|
5601
5879
|
"&": "&",
|
|
5602
5880
|
"<": "<",
|
|
@@ -5617,7 +5895,7 @@ const g2 = (i, e) => () => {
|
|
|
5617
5895
|
"…": "…",
|
|
5618
5896
|
"/": "/",
|
|
5619
5897
|
"/": "/"
|
|
5620
|
-
},
|
|
5898
|
+
}, jt = (i) => $t[i], Ft = (i) => i.replace(Yt, jt);
|
|
5621
5899
|
let S1 = {
|
|
5622
5900
|
bindI18n: "languageChanged",
|
|
5623
5901
|
bindI18nStore: "",
|
|
@@ -5626,27 +5904,27 @@ let S1 = {
|
|
|
5626
5904
|
transWrapTextNodes: "",
|
|
5627
5905
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
5628
5906
|
useSuspense: !0,
|
|
5629
|
-
unescape:
|
|
5907
|
+
unescape: Ft
|
|
5630
5908
|
};
|
|
5631
|
-
const
|
|
5909
|
+
const Wt = function() {
|
|
5632
5910
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5633
5911
|
S1 = {
|
|
5634
5912
|
...S1,
|
|
5635
5913
|
...i
|
|
5636
5914
|
};
|
|
5637
|
-
},
|
|
5915
|
+
}, Ut = () => S1;
|
|
5638
5916
|
let u2;
|
|
5639
|
-
const
|
|
5917
|
+
const zt = (i) => {
|
|
5640
5918
|
u2 = i;
|
|
5641
|
-
},
|
|
5919
|
+
}, Jt = () => u2, qt = {
|
|
5642
5920
|
type: "3rdParty",
|
|
5643
5921
|
init(i) {
|
|
5644
|
-
|
|
5922
|
+
Wt(i.options.react), zt(i);
|
|
5645
5923
|
}
|
|
5646
|
-
},
|
|
5647
|
-
class
|
|
5924
|
+
}, Qt = C1();
|
|
5925
|
+
class Xt {
|
|
5648
5926
|
constructor() {
|
|
5649
|
-
|
|
5927
|
+
K1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
5650
5928
|
this.usedNamespaces = {};
|
|
5651
5929
|
}
|
|
5652
5930
|
addUsedNamespaces(e) {
|
|
@@ -5655,27 +5933,27 @@ class Bt {
|
|
|
5655
5933
|
});
|
|
5656
5934
|
}
|
|
5657
5935
|
}
|
|
5658
|
-
const
|
|
5659
|
-
const t =
|
|
5660
|
-
return
|
|
5936
|
+
const e7 = (i, e) => {
|
|
5937
|
+
const t = J();
|
|
5938
|
+
return G(() => {
|
|
5661
5939
|
t.current = i;
|
|
5662
5940
|
}, [i, e]), t.current;
|
|
5663
|
-
},
|
|
5941
|
+
}, p2 = (i, e, t, s) => i.getFixedT(e, t, s), t7 = (i, e, t, s) => $(p2(i, e, t, s), [i, e, t, s]), i7 = function(i) {
|
|
5664
5942
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5665
5943
|
const {
|
|
5666
5944
|
i18n: t
|
|
5667
5945
|
} = e, {
|
|
5668
5946
|
i18n: s,
|
|
5669
5947
|
defaultNS: n
|
|
5670
|
-
} = r1(
|
|
5671
|
-
if (o && !o.reportNamespaces && (o.reportNamespaces = new
|
|
5948
|
+
} = r1(Qt) || {}, o = t || s || Jt();
|
|
5949
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new Xt()), !o) {
|
|
5672
5950
|
Z1("You will need to pass in an i18next instance by using initReactI18next");
|
|
5673
|
-
const
|
|
5674
|
-
return x.t =
|
|
5951
|
+
const f = (_, R) => n1(R) ? R : Pt(R) && n1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, x = [f, {}, !1];
|
|
5952
|
+
return x.t = f, x.i18n = {}, x.ready = !1, x;
|
|
5675
5953
|
}
|
|
5676
5954
|
o.options.react && o.options.react.wait !== void 0 && Z1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
5677
5955
|
const c = {
|
|
5678
|
-
...
|
|
5956
|
+
...Ut(),
|
|
5679
5957
|
...o.options.react,
|
|
5680
5958
|
...e
|
|
5681
5959
|
}, {
|
|
@@ -5684,91 +5962,91 @@ const Pt = (i, e) => {
|
|
|
5684
5962
|
} = c;
|
|
5685
5963
|
let d = i;
|
|
5686
5964
|
d = n1(d) ? [d] : d || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(d);
|
|
5687
|
-
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((
|
|
5965
|
+
const l = (o.isInitialized || o.initializedStoreOnce) && d.every((f) => Bt(f, o, c)), h = t7(o, e.lng || null, c.nsMode === "fallback" ? d : d[0], C), g = () => h, p = () => p2(o, e.lng || null, c.nsMode === "fallback" ? d : d[0], C), [w, v] = O(g);
|
|
5688
5966
|
let m = d.join();
|
|
5689
5967
|
e.lng && (m = `${e.lng}${m}`);
|
|
5690
|
-
const
|
|
5691
|
-
|
|
5968
|
+
const b = e7(m), y = J(!0);
|
|
5969
|
+
G(() => {
|
|
5692
5970
|
const {
|
|
5693
|
-
bindI18n:
|
|
5971
|
+
bindI18n: f,
|
|
5694
5972
|
bindI18nStore: x
|
|
5695
5973
|
} = c;
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
}) :
|
|
5699
|
-
|
|
5700
|
-
})), l &&
|
|
5701
|
-
const
|
|
5702
|
-
|
|
5974
|
+
y.current = !0, !l && !a && (e.lng ? J1(o, e.lng, d, () => {
|
|
5975
|
+
y.current && v(p);
|
|
5976
|
+
}) : z1(o, d, () => {
|
|
5977
|
+
y.current && v(p);
|
|
5978
|
+
})), l && b && b !== m && y.current && v(p);
|
|
5979
|
+
const _ = () => {
|
|
5980
|
+
y.current && v(p);
|
|
5703
5981
|
};
|
|
5704
|
-
return
|
|
5705
|
-
|
|
5982
|
+
return f && o && o.on(f, _), x && o && o.store.on(x, _), () => {
|
|
5983
|
+
y.current = !1, f && o && f.split(" ").forEach((R) => o.off(R, _)), x && o && x.split(" ").forEach((R) => o.store.off(R, _));
|
|
5706
5984
|
};
|
|
5707
|
-
}, [o, m]),
|
|
5708
|
-
|
|
5985
|
+
}, [o, m]), G(() => {
|
|
5986
|
+
y.current && l && v(g);
|
|
5709
5987
|
}, [o, C, l]);
|
|
5710
5988
|
const A = [w, o, l];
|
|
5711
5989
|
if (A.t = w, A.i18n = o, A.ready = l, l || !l && !a) return A;
|
|
5712
|
-
throw new Promise((
|
|
5713
|
-
e.lng ?
|
|
5990
|
+
throw new Promise((f) => {
|
|
5991
|
+
e.lng ? J1(o, e.lng, d, () => f()) : z1(o, d, () => f());
|
|
5714
5992
|
});
|
|
5715
|
-
},
|
|
5993
|
+
}, M = (i) => typeof i == "string", p1 = () => {
|
|
5716
5994
|
let i, e;
|
|
5717
5995
|
const t = new Promise((s, n) => {
|
|
5718
5996
|
i = s, e = n;
|
|
5719
5997
|
});
|
|
5720
5998
|
return t.resolve = i, t.reject = e, t;
|
|
5721
|
-
},
|
|
5999
|
+
}, q1 = (i) => i == null ? "" : "" + i, s7 = (i, e, t) => {
|
|
5722
6000
|
i.forEach((s) => {
|
|
5723
6001
|
e[s] && (t[s] = e[s]);
|
|
5724
6002
|
});
|
|
5725
|
-
},
|
|
5726
|
-
const s =
|
|
6003
|
+
}, n7 = /###/g, Q1 = (i) => i && i.indexOf("###") > -1 ? i.replace(n7, ".") : i, X1 = (i) => !i || M(i), w1 = (i, e, t) => {
|
|
6004
|
+
const s = M(e) ? e.split(".") : e;
|
|
5727
6005
|
let n = 0;
|
|
5728
6006
|
for (; n < s.length - 1; ) {
|
|
5729
|
-
if (
|
|
5730
|
-
const o =
|
|
6007
|
+
if (X1(i)) return {};
|
|
6008
|
+
const o = Q1(s[n]);
|
|
5731
6009
|
!i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {}, ++n;
|
|
5732
6010
|
}
|
|
5733
|
-
return
|
|
6011
|
+
return X1(i) ? {} : {
|
|
5734
6012
|
obj: i,
|
|
5735
|
-
k:
|
|
6013
|
+
k: Q1(s[n])
|
|
5736
6014
|
};
|
|
5737
|
-
},
|
|
6015
|
+
}, e2 = (i, e, t) => {
|
|
5738
6016
|
const {
|
|
5739
6017
|
obj: s,
|
|
5740
6018
|
k: n
|
|
5741
|
-
} =
|
|
6019
|
+
} = w1(i, e, Object);
|
|
5742
6020
|
if (s !== void 0 || e.length === 1) {
|
|
5743
6021
|
s[n] = t;
|
|
5744
6022
|
return;
|
|
5745
6023
|
}
|
|
5746
|
-
let o = e[e.length - 1], c = e.slice(0, e.length - 1), a =
|
|
6024
|
+
let o = e[e.length - 1], c = e.slice(0, e.length - 1), a = w1(i, c, Object);
|
|
5747
6025
|
for (; a.obj === void 0 && c.length; )
|
|
5748
|
-
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), a =
|
|
6026
|
+
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), a = w1(i, c, Object), a && a.obj && typeof a.obj[`${a.k}.${o}`] < "u" && (a.obj = void 0);
|
|
5749
6027
|
a.obj[`${a.k}.${o}`] = t;
|
|
5750
|
-
},
|
|
6028
|
+
}, r7 = (i, e, t, s) => {
|
|
5751
6029
|
const {
|
|
5752
6030
|
obj: n,
|
|
5753
6031
|
k: o
|
|
5754
|
-
} =
|
|
6032
|
+
} = w1(i, e, Object);
|
|
5755
6033
|
n[o] = n[o] || [], n[o].push(t);
|
|
5756
6034
|
}, M1 = (i, e) => {
|
|
5757
6035
|
const {
|
|
5758
6036
|
obj: t,
|
|
5759
6037
|
k: s
|
|
5760
|
-
} =
|
|
6038
|
+
} = w1(i, e);
|
|
5761
6039
|
if (t)
|
|
5762
6040
|
return t[s];
|
|
5763
|
-
},
|
|
6041
|
+
}, o7 = (i, e, t) => {
|
|
5764
6042
|
const s = M1(i, t);
|
|
5765
6043
|
return s !== void 0 ? s : M1(e, t);
|
|
5766
|
-
},
|
|
6044
|
+
}, f2 = (i, e, t) => {
|
|
5767
6045
|
for (const s in e)
|
|
5768
|
-
s !== "__proto__" && s !== "constructor" && (s in i ?
|
|
6046
|
+
s !== "__proto__" && s !== "constructor" && (s in i ? M(i[s]) || i[s] instanceof String || M(e[s]) || e[s] instanceof String ? t && (i[s] = e[s]) : f2(i[s], e[s], t) : i[s] = e[s]);
|
|
5769
6047
|
return i;
|
|
5770
|
-
},
|
|
5771
|
-
var
|
|
6048
|
+
}, h1 = (i) => i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
6049
|
+
var a7 = {
|
|
5772
6050
|
"&": "&",
|
|
5773
6051
|
"<": "<",
|
|
5774
6052
|
">": ">",
|
|
@@ -5776,8 +6054,8 @@ var zt = {
|
|
|
5776
6054
|
"'": "'",
|
|
5777
6055
|
"/": "/"
|
|
5778
6056
|
};
|
|
5779
|
-
const
|
|
5780
|
-
class
|
|
6057
|
+
const l7 = (i) => M(i) ? i.replace(/[&<>"'\/]/g, (e) => a7[e]) : i;
|
|
6058
|
+
class h7 {
|
|
5781
6059
|
constructor(e) {
|
|
5782
6060
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
5783
6061
|
}
|
|
@@ -5789,11 +6067,11 @@ class qt {
|
|
|
5789
6067
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, s), this.regExpQueue.push(e), s;
|
|
5790
6068
|
}
|
|
5791
6069
|
}
|
|
5792
|
-
const
|
|
6070
|
+
const c7 = [" ", ",", "?", "!", ";"], d7 = new h7(20), C7 = (i, e, t) => {
|
|
5793
6071
|
e = e || "", t = t || "";
|
|
5794
|
-
const s =
|
|
6072
|
+
const s = c7.filter((c) => e.indexOf(c) < 0 && t.indexOf(c) < 0);
|
|
5795
6073
|
if (s.length === 0) return !0;
|
|
5796
|
-
const n =
|
|
6074
|
+
const n = d7.getRegExp(`(${s.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
5797
6075
|
let o = !n.test(i);
|
|
5798
6076
|
if (!o) {
|
|
5799
6077
|
const c = i.indexOf(t);
|
|
@@ -5820,7 +6098,7 @@ const Qt = [" ", ",", "?", "!", ";"], Xt = new qt(20), e7 = (i, e, t) => {
|
|
|
5820
6098
|
n = c;
|
|
5821
6099
|
}
|
|
5822
6100
|
return n;
|
|
5823
|
-
}, b1 = (i) => i && i.replace("_", "-"),
|
|
6101
|
+
}, b1 = (i) => i && i.replace("_", "-"), g7 = {
|
|
5824
6102
|
type: "logger",
|
|
5825
6103
|
log(i) {
|
|
5826
6104
|
this.output("log", i);
|
|
@@ -5835,14 +6113,14 @@ const Qt = [" ", ",", "?", "!", ";"], Xt = new qt(20), e7 = (i, e, t) => {
|
|
|
5835
6113
|
console && console[i] && console[i].apply(console, e);
|
|
5836
6114
|
}
|
|
5837
6115
|
};
|
|
5838
|
-
class
|
|
6116
|
+
class y1 {
|
|
5839
6117
|
constructor(e) {
|
|
5840
6118
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5841
6119
|
this.init(e, t);
|
|
5842
6120
|
}
|
|
5843
6121
|
init(e) {
|
|
5844
6122
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5845
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
6123
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || g7, this.options = t, this.debug = t.debug;
|
|
5846
6124
|
}
|
|
5847
6125
|
log() {
|
|
5848
6126
|
for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
|
|
@@ -5865,20 +6143,20 @@ class _1 {
|
|
|
5865
6143
|
return this.forward(t, "warn", "WARNING DEPRECATED: ", !0);
|
|
5866
6144
|
}
|
|
5867
6145
|
forward(e, t, s, n) {
|
|
5868
|
-
return n && !this.debug ? null : (
|
|
6146
|
+
return n && !this.debug ? null : (M(e[0]) && (e[0] = `${s}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
5869
6147
|
}
|
|
5870
6148
|
create(e) {
|
|
5871
|
-
return new
|
|
6149
|
+
return new y1(this.logger, {
|
|
5872
6150
|
prefix: `${this.prefix}:${e}:`,
|
|
5873
6151
|
...this.options
|
|
5874
6152
|
});
|
|
5875
6153
|
}
|
|
5876
6154
|
clone(e) {
|
|
5877
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
6155
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
|
|
5878
6156
|
}
|
|
5879
6157
|
}
|
|
5880
|
-
var X = new
|
|
5881
|
-
class
|
|
6158
|
+
var X = new y1();
|
|
6159
|
+
class E1 {
|
|
5882
6160
|
constructor() {
|
|
5883
6161
|
this.observers = {};
|
|
5884
6162
|
}
|
|
@@ -5912,7 +6190,7 @@ class V1 {
|
|
|
5912
6190
|
});
|
|
5913
6191
|
}
|
|
5914
6192
|
}
|
|
5915
|
-
class
|
|
6193
|
+
class t2 extends E1 {
|
|
5916
6194
|
constructor(e) {
|
|
5917
6195
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
5918
6196
|
ns: ["translation"],
|
|
@@ -5931,9 +6209,9 @@ class e2 extends V1 {
|
|
|
5931
6209
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
5932
6210
|
const o = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, c = n.ignoreJSONStructure !== void 0 ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
5933
6211
|
let a;
|
|
5934
|
-
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) :
|
|
6212
|
+
e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], s && (Array.isArray(s) ? a.push(...s) : M(s) && o ? a.push(...s.split(o)) : a.push(s)));
|
|
5935
6213
|
const C = M1(this.data, a);
|
|
5936
|
-
return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !c || !
|
|
6214
|
+
return !C && !t && !s && e.indexOf(".") > -1 && (e = a[0], t = a[1], s = a.slice(2).join(".")), C || !c || !M(s) ? C : D1(this.data && this.data[e] && this.data[e][t], s, o);
|
|
5937
6215
|
}
|
|
5938
6216
|
addResource(e, t, s, n) {
|
|
5939
6217
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -5941,14 +6219,14 @@ class e2 extends V1 {
|
|
|
5941
6219
|
};
|
|
5942
6220
|
const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
|
5943
6221
|
let a = [e, t];
|
|
5944
|
-
s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t),
|
|
6222
|
+
s && (a = a.concat(c ? s.split(c) : s)), e.indexOf(".") > -1 && (a = e.split("."), n = t, t = a[1]), this.addNamespaces(t), e2(this.data, a, n), o.silent || this.emit("added", e, t, s, n);
|
|
5945
6223
|
}
|
|
5946
6224
|
addResources(e, t, s) {
|
|
5947
6225
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
5948
6226
|
silent: !1
|
|
5949
6227
|
};
|
|
5950
6228
|
for (const o in s)
|
|
5951
|
-
(
|
|
6229
|
+
(M(s[o]) || Array.isArray(s[o])) && this.addResource(e, t, o, s[o], {
|
|
5952
6230
|
silent: !0
|
|
5953
6231
|
});
|
|
5954
6232
|
n.silent || this.emit("added", e, t, s);
|
|
@@ -5960,10 +6238,10 @@ class e2 extends V1 {
|
|
|
5960
6238
|
}, a = [e, t];
|
|
5961
6239
|
e.indexOf(".") > -1 && (a = e.split("."), n = s, s = t, t = a[1]), this.addNamespaces(t);
|
|
5962
6240
|
let C = M1(this.data, a) || {};
|
|
5963
|
-
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ?
|
|
6241
|
+
c.skipCopy || (s = JSON.parse(JSON.stringify(s))), n ? f2(C, s, o) : C = {
|
|
5964
6242
|
...C,
|
|
5965
6243
|
...s
|
|
5966
|
-
},
|
|
6244
|
+
}, e2(this.data, a, C), c.silent || this.emit("added", e, t, s);
|
|
5967
6245
|
}
|
|
5968
6246
|
removeResourceBundle(e, t) {
|
|
5969
6247
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -5998,11 +6276,11 @@ var m2 = {
|
|
|
5998
6276
|
}), e;
|
|
5999
6277
|
}
|
|
6000
6278
|
};
|
|
6001
|
-
const
|
|
6002
|
-
class
|
|
6279
|
+
const i2 = {};
|
|
6280
|
+
class H1 extends E1 {
|
|
6003
6281
|
constructor(e) {
|
|
6004
6282
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6005
|
-
super(),
|
|
6283
|
+
super(), s7(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = X.create("translator");
|
|
6006
6284
|
}
|
|
6007
6285
|
changeLanguage(e) {
|
|
6008
6286
|
e && (this.language = e);
|
|
@@ -6021,20 +6299,20 @@ class y1 extends V1 {
|
|
|
6021
6299
|
s === void 0 && (s = ":");
|
|
6022
6300
|
const n = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6023
6301
|
let o = t.ns || this.options.defaultNS || [];
|
|
6024
|
-
const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
6302
|
+
const c = s && e.indexOf(s) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !C7(e, s, n);
|
|
6025
6303
|
if (c && !a) {
|
|
6026
6304
|
const C = e.match(this.interpolator.nestingRegexp);
|
|
6027
6305
|
if (C && C.length > 0)
|
|
6028
6306
|
return {
|
|
6029
6307
|
key: e,
|
|
6030
|
-
namespaces:
|
|
6308
|
+
namespaces: M(o) ? [o] : o
|
|
6031
6309
|
};
|
|
6032
6310
|
const d = e.split(s);
|
|
6033
6311
|
(s !== n || s === n && this.options.ns.indexOf(d[0]) > -1) && (o = d.shift()), e = d.join(n);
|
|
6034
6312
|
}
|
|
6035
6313
|
return {
|
|
6036
6314
|
key: e,
|
|
6037
|
-
namespaces:
|
|
6315
|
+
namespaces: M(o) ? [o] : o
|
|
6038
6316
|
};
|
|
6039
6317
|
}
|
|
6040
6318
|
translate(e, t, s) {
|
|
@@ -6048,15 +6326,15 @@ class y1 extends V1 {
|
|
|
6048
6326
|
} = this.extractFromKey(e[e.length - 1], t), C = a[a.length - 1], d = t.lng || this.language, l = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6049
6327
|
if (d && d.toLowerCase() === "cimode") {
|
|
6050
6328
|
if (l) {
|
|
6051
|
-
const
|
|
6329
|
+
const f = t.nsSeparator || this.options.nsSeparator;
|
|
6052
6330
|
return n ? {
|
|
6053
|
-
res: `${C}${
|
|
6331
|
+
res: `${C}${f}${c}`,
|
|
6054
6332
|
usedKey: c,
|
|
6055
6333
|
exactUsedKey: c,
|
|
6056
6334
|
usedLng: d,
|
|
6057
6335
|
usedNS: C,
|
|
6058
6336
|
usedParams: this.getUsedParamsDetails(t)
|
|
6059
|
-
} : `${C}${
|
|
6337
|
+
} : `${C}${f}${c}`;
|
|
6060
6338
|
}
|
|
6061
6339
|
return n ? {
|
|
6062
6340
|
res: c,
|
|
@@ -6069,21 +6347,21 @@ class y1 extends V1 {
|
|
|
6069
6347
|
}
|
|
6070
6348
|
const h = this.resolve(e, t);
|
|
6071
6349
|
let g = h && h.res;
|
|
6072
|
-
const
|
|
6073
|
-
if (
|
|
6350
|
+
const p = h && h.usedKey || c, w = h && h.exactUsedKey || c, v = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, A = !M(g) && typeof g != "boolean" && typeof g != "number";
|
|
6351
|
+
if (y && g && A && m.indexOf(v) < 0 && !(M(b) && Array.isArray(g))) {
|
|
6074
6352
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6075
6353
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6076
|
-
const
|
|
6354
|
+
const f = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, g, {
|
|
6077
6355
|
...t,
|
|
6078
6356
|
ns: a
|
|
6079
6357
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6080
|
-
return n ? (h.res =
|
|
6358
|
+
return n ? (h.res = f, h.usedParams = this.getUsedParamsDetails(t), h) : f;
|
|
6081
6359
|
}
|
|
6082
6360
|
if (o) {
|
|
6083
|
-
const
|
|
6361
|
+
const f = Array.isArray(g), x = f ? [] : {}, _ = f ? w : p;
|
|
6084
6362
|
for (const R in g)
|
|
6085
6363
|
if (Object.prototype.hasOwnProperty.call(g, R)) {
|
|
6086
|
-
const j = `${
|
|
6364
|
+
const j = `${_}${o}${R}`;
|
|
6087
6365
|
x[R] = this.translate(j, {
|
|
6088
6366
|
...t,
|
|
6089
6367
|
joinArrays: !1,
|
|
@@ -6092,17 +6370,17 @@ class y1 extends V1 {
|
|
|
6092
6370
|
}
|
|
6093
6371
|
g = x;
|
|
6094
6372
|
}
|
|
6095
|
-
} else if (
|
|
6096
|
-
g = g.join(
|
|
6373
|
+
} else if (y && M(b) && Array.isArray(g))
|
|
6374
|
+
g = g.join(b), g && (g = this.extendTranslation(g, e, t, s));
|
|
6097
6375
|
else {
|
|
6098
|
-
let
|
|
6099
|
-
const
|
|
6376
|
+
let f = !1, x = !1;
|
|
6377
|
+
const _ = t.count !== void 0 && !M(t.count), R = H1.hasDefaultValue(t), j = _ ? this.pluralResolver.getSuffix(d, t.count, t) : "", q = t.ordinal && _ ? this.pluralResolver.getSuffix(d, t.count, {
|
|
6100
6378
|
ordinal: !1
|
|
6101
|
-
}) : "", F =
|
|
6102
|
-
!this.isValidLookup(g) && R && (
|
|
6103
|
-
const
|
|
6104
|
-
if (x ||
|
|
6105
|
-
if (this.logger.log(
|
|
6379
|
+
}) : "", F = _ && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), E = F && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${j}`] || t[`defaultValue${q}`] || t.defaultValue;
|
|
6380
|
+
!this.isValidLookup(g) && R && (f = !0, g = E), this.isValidLookup(g) || (x = !0, g = c);
|
|
6381
|
+
const V = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && x ? void 0 : g, Z = R && E !== g && this.options.updateMissing;
|
|
6382
|
+
if (x || f || Z) {
|
|
6383
|
+
if (this.logger.log(Z ? "updateKey" : "missingKey", d, C, c, Z ? E : g), o) {
|
|
6106
6384
|
const I = this.resolve(c, {
|
|
6107
6385
|
...t,
|
|
6108
6386
|
keySeparator: !1
|
|
@@ -6116,17 +6394,17 @@ class y1 extends V1 {
|
|
|
6116
6394
|
D.push(B[I]);
|
|
6117
6395
|
else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(t.lng || this.language) : D.push(t.lng || this.language);
|
|
6118
6396
|
const U = (I, Y, P) => {
|
|
6119
|
-
const e1 = R && P !== g ? P :
|
|
6120
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(I, C, Y, e1,
|
|
6397
|
+
const e1 = R && P !== g ? P : V;
|
|
6398
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(I, C, Y, e1, Z, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(I, C, Y, e1, Z, t), this.emit("missingKey", I, C, Y, g);
|
|
6121
6399
|
};
|
|
6122
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
6400
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? D.forEach((I) => {
|
|
6123
6401
|
const Y = this.pluralResolver.getSuffixes(I, t);
|
|
6124
6402
|
F && t[`defaultValue${this.options.pluralSeparator}zero`] && Y.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Y.push(`${this.options.pluralSeparator}zero`), Y.forEach((P) => {
|
|
6125
|
-
U([I], c + P, t[`defaultValue${P}`] ||
|
|
6403
|
+
U([I], c + P, t[`defaultValue${P}`] || E);
|
|
6126
6404
|
});
|
|
6127
|
-
}) : U(D, c,
|
|
6405
|
+
}) : U(D, c, E));
|
|
6128
6406
|
}
|
|
6129
|
-
g = this.extendTranslation(g, e, t, h, s), x && g === c && this.options.appendNamespaceToMissingKey && (g = `${C}:${c}`), (x ||
|
|
6407
|
+
g = this.extendTranslation(g, e, t, h, s), x && g === c && this.options.appendNamespaceToMissingKey && (g = `${C}:${c}`), (x || f) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${C}:${c}` : c, f ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
|
|
6130
6408
|
}
|
|
6131
6409
|
return n ? (h.res = g, h.usedParams = this.getUsedParamsDetails(t), h) : g;
|
|
6132
6410
|
}
|
|
@@ -6147,27 +6425,27 @@ class y1 extends V1 {
|
|
|
6147
6425
|
...s.interpolation
|
|
6148
6426
|
}
|
|
6149
6427
|
});
|
|
6150
|
-
const d =
|
|
6428
|
+
const d = M(e) && (s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
6151
6429
|
let l;
|
|
6152
6430
|
if (d) {
|
|
6153
6431
|
const g = e.match(this.interpolator.nestingRegexp);
|
|
6154
6432
|
l = g && g.length;
|
|
6155
6433
|
}
|
|
6156
|
-
let h = s.replace && !
|
|
6434
|
+
let h = s.replace && !M(s.replace) ? s.replace : s;
|
|
6157
6435
|
if (this.options.interpolation.defaultVariables && (h = {
|
|
6158
6436
|
...this.options.interpolation.defaultVariables,
|
|
6159
6437
|
...h
|
|
6160
6438
|
}), e = this.interpolator.interpolate(e, h, s.lng || this.language || n.usedLng, s), d) {
|
|
6161
|
-
const g = e.match(this.interpolator.nestingRegexp),
|
|
6162
|
-
l <
|
|
6439
|
+
const g = e.match(this.interpolator.nestingRegexp), p = g && g.length;
|
|
6440
|
+
l < p && (s.nest = !1);
|
|
6163
6441
|
}
|
|
6164
6442
|
!s.lng && this.options.compatibilityAPI !== "v1" && n && n.res && (s.lng = this.language || n.usedLng), s.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6165
|
-
for (var g = arguments.length,
|
|
6166
|
-
|
|
6167
|
-
return o && o[0] ===
|
|
6443
|
+
for (var g = arguments.length, p = new Array(g), w = 0; w < g; w++)
|
|
6444
|
+
p[w] = arguments[w];
|
|
6445
|
+
return o && o[0] === p[0] && !s.context ? (c.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : c.translate(...p, t);
|
|
6168
6446
|
}, s)), s.interpolation && this.interpolator.reset();
|
|
6169
6447
|
}
|
|
6170
|
-
const a = s.postProcess || this.options.postProcess, C =
|
|
6448
|
+
const a = s.postProcess || this.options.postProcess, C = M(a) ? [a] : a;
|
|
6171
6449
|
return e != null && C && C.length && s.applyPostProcessor !== !1 && (e = m2.handle(C, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6172
6450
|
i18nResolved: {
|
|
6173
6451
|
...n,
|
|
@@ -6178,32 +6456,32 @@ class y1 extends V1 {
|
|
|
6178
6456
|
}
|
|
6179
6457
|
resolve(e) {
|
|
6180
6458
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, n, o, c, a;
|
|
6181
|
-
return
|
|
6459
|
+
return M(e) && (e = [e]), e.forEach((C) => {
|
|
6182
6460
|
if (this.isValidLookup(s)) return;
|
|
6183
6461
|
const d = this.extractFromKey(C, t), l = d.key;
|
|
6184
6462
|
n = l;
|
|
6185
6463
|
let h = d.namespaces;
|
|
6186
6464
|
this.options.fallbackNS && (h = h.concat(this.options.fallbackNS));
|
|
6187
|
-
const g = t.count !== void 0 && !
|
|
6465
|
+
const g = t.count !== void 0 && !M(t.count), p = g && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (M(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
6188
6466
|
h.forEach((m) => {
|
|
6189
|
-
this.isValidLookup(s) || (a = m, !
|
|
6467
|
+
this.isValidLookup(s) || (a = m, !i2[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (i2[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((b) => {
|
|
6190
6468
|
if (this.isValidLookup(s)) return;
|
|
6191
|
-
c =
|
|
6192
|
-
const
|
|
6469
|
+
c = b;
|
|
6470
|
+
const y = [l];
|
|
6193
6471
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6194
|
-
this.i18nFormat.addLookupKeys(
|
|
6472
|
+
this.i18nFormat.addLookupKeys(y, l, b, m, t);
|
|
6195
6473
|
else {
|
|
6196
|
-
let
|
|
6197
|
-
g && (
|
|
6198
|
-
const x = `${this.options.pluralSeparator}zero`,
|
|
6199
|
-
if (g && (
|
|
6474
|
+
let f;
|
|
6475
|
+
g && (f = this.pluralResolver.getSuffix(b, t.count, t));
|
|
6476
|
+
const x = `${this.options.pluralSeparator}zero`, _ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6477
|
+
if (g && (y.push(l + f), t.ordinal && f.indexOf(_) === 0 && y.push(l + f.replace(_, this.options.pluralSeparator)), p && y.push(l + x)), w) {
|
|
6200
6478
|
const R = `${l}${this.options.contextSeparator}${t.context}`;
|
|
6201
|
-
|
|
6479
|
+
y.push(R), g && (y.push(R + f), t.ordinal && f.indexOf(_) === 0 && y.push(R + f.replace(_, this.options.pluralSeparator)), p && y.push(R + x));
|
|
6202
6480
|
}
|
|
6203
6481
|
}
|
|
6204
6482
|
let A;
|
|
6205
|
-
for (; A =
|
|
6206
|
-
this.isValidLookup(s) || (o = A, s = this.getResource(
|
|
6483
|
+
for (; A = y.pop(); )
|
|
6484
|
+
this.isValidLookup(s) || (o = A, s = this.getResource(b, m, A, t));
|
|
6207
6485
|
}));
|
|
6208
6486
|
});
|
|
6209
6487
|
}), {
|
|
@@ -6223,7 +6501,7 @@ class y1 extends V1 {
|
|
|
6223
6501
|
}
|
|
6224
6502
|
getUsedParamsDetails() {
|
|
6225
6503
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6226
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !
|
|
6504
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], s = e.replace && !M(e.replace);
|
|
6227
6505
|
let n = s ? e.replace : e;
|
|
6228
6506
|
if (s && typeof e.count < "u" && (n.count = e.count), this.options.interpolation.defaultVariables && (n = {
|
|
6229
6507
|
...this.options.interpolation.defaultVariables,
|
|
@@ -6246,7 +6524,7 @@ class y1 extends V1 {
|
|
|
6246
6524
|
}
|
|
6247
6525
|
}
|
|
6248
6526
|
const I1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
|
|
6249
|
-
class
|
|
6527
|
+
class s2 {
|
|
6250
6528
|
constructor(e) {
|
|
6251
6529
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = X.create("languageUtils");
|
|
6252
6530
|
}
|
|
@@ -6261,7 +6539,7 @@ class i2 {
|
|
|
6261
6539
|
return this.formatLanguageCode(t[0]);
|
|
6262
6540
|
}
|
|
6263
6541
|
formatLanguageCode(e) {
|
|
6264
|
-
if (
|
|
6542
|
+
if (M(e) && e.indexOf("-") > -1) {
|
|
6265
6543
|
if (typeof Intl < "u" && typeof Intl.getCanonicalLocales < "u")
|
|
6266
6544
|
try {
|
|
6267
6545
|
let n = Intl.getCanonicalLocales(e)[0];
|
|
@@ -6297,7 +6575,7 @@ class i2 {
|
|
|
6297
6575
|
}
|
|
6298
6576
|
getFallbackCodes(e, t) {
|
|
6299
6577
|
if (!e) return [];
|
|
6300
|
-
if (typeof e == "function" && (e = e(t)),
|
|
6578
|
+
if (typeof e == "function" && (e = e(t)), M(e) && (e = [e]), Array.isArray(e)) return e;
|
|
6301
6579
|
if (!t) return e.default || [];
|
|
6302
6580
|
let s = e[t];
|
|
6303
6581
|
return s || (s = e[this.getScriptPartFromCode(t)]), s || (s = e[this.formatLanguageCode(t)]), s || (s = e[this.getLanguagePartFromCode(t)]), s || (s = e.default), s || [];
|
|
@@ -6306,12 +6584,12 @@ class i2 {
|
|
|
6306
6584
|
const s = this.getFallbackCodes(t || this.options.fallbackLng || [], e), n = [], o = (c) => {
|
|
6307
6585
|
c && (this.isSupportedCode(c) ? n.push(c) : this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`));
|
|
6308
6586
|
};
|
|
6309
|
-
return
|
|
6587
|
+
return M(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && o(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && o(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && o(this.getLanguagePartFromCode(e))) : M(e) && o(this.formatLanguageCode(e)), s.forEach((c) => {
|
|
6310
6588
|
n.indexOf(c) < 0 && o(this.formatLanguageCode(c));
|
|
6311
6589
|
}), n;
|
|
6312
6590
|
}
|
|
6313
6591
|
}
|
|
6314
|
-
let
|
|
6592
|
+
let u7 = [{
|
|
6315
6593
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
6316
6594
|
nr: [1, 2],
|
|
6317
6595
|
fc: 1
|
|
@@ -6403,7 +6681,7 @@ let i7 = [{
|
|
|
6403
6681
|
lngs: ["he", "iw"],
|
|
6404
6682
|
nr: [1, 2, 20, 21],
|
|
6405
6683
|
fc: 22
|
|
6406
|
-
}],
|
|
6684
|
+
}], p7 = {
|
|
6407
6685
|
1: (i) => +(i > 1),
|
|
6408
6686
|
2: (i) => +(i != 1),
|
|
6409
6687
|
3: (i) => 0,
|
|
@@ -6427,28 +6705,28 @@ let i7 = [{
|
|
|
6427
6705
|
21: (i) => i % 100 == 1 ? 1 : i % 100 == 2 ? 2 : i % 100 == 3 || i % 100 == 4 ? 3 : 0,
|
|
6428
6706
|
22: (i) => i == 1 ? 0 : i == 2 ? 1 : (i < 0 || i > 10) && i % 10 == 0 ? 2 : 3
|
|
6429
6707
|
};
|
|
6430
|
-
const
|
|
6708
|
+
const f7 = ["v1", "v2", "v3"], m7 = ["v4"], n2 = {
|
|
6431
6709
|
zero: 0,
|
|
6432
6710
|
one: 1,
|
|
6433
6711
|
two: 2,
|
|
6434
6712
|
few: 3,
|
|
6435
6713
|
many: 4,
|
|
6436
6714
|
other: 5
|
|
6437
|
-
},
|
|
6715
|
+
}, w7 = () => {
|
|
6438
6716
|
const i = {};
|
|
6439
|
-
return
|
|
6717
|
+
return u7.forEach((e) => {
|
|
6440
6718
|
e.lngs.forEach((t) => {
|
|
6441
6719
|
i[t] = {
|
|
6442
6720
|
numbers: e.nr,
|
|
6443
|
-
plurals:
|
|
6721
|
+
plurals: p7[e.fc]
|
|
6444
6722
|
};
|
|
6445
6723
|
});
|
|
6446
6724
|
}), i;
|
|
6447
6725
|
};
|
|
6448
|
-
class
|
|
6726
|
+
class L7 {
|
|
6449
6727
|
constructor(e) {
|
|
6450
6728
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6451
|
-
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
6729
|
+
this.languageUtils = e, this.options = t, this.logger = X.create("pluralResolver"), (!this.options.compatibilityJSON || m7.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 = w7(), this.pluralRulesCache = {};
|
|
6452
6730
|
}
|
|
6453
6731
|
addRule(e, t) {
|
|
6454
6732
|
this.rules[e] = t;
|
|
@@ -6491,7 +6769,7 @@ class a7 {
|
|
|
6491
6769
|
getSuffixes(e) {
|
|
6492
6770
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6493
6771
|
const s = this.getRule(e, t);
|
|
6494
|
-
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) =>
|
|
6772
|
+
return s ? this.shouldUseIntlApi() ? s.resolvedOptions().pluralCategories.sort((n, o) => n2[n] - n2[o]).map((n) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${n}`) : s.numbers.map((n) => this.getSuffix(e, n, t)) : [];
|
|
6495
6773
|
}
|
|
6496
6774
|
getSuffix(e, t) {
|
|
6497
6775
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -6506,14 +6784,14 @@ class a7 {
|
|
|
6506
6784
|
return this.options.compatibilityJSON === "v1" ? n === 1 ? "" : typeof n == "number" ? `_plural_${n.toString()}` : o() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && e.numbers.length === 2 && e.numbers[0] === 1 ? o() : this.options.prepend && s.toString() ? this.options.prepend + s.toString() : s.toString();
|
|
6507
6785
|
}
|
|
6508
6786
|
shouldUseIntlApi() {
|
|
6509
|
-
return !
|
|
6787
|
+
return !f7.includes(this.options.compatibilityJSON);
|
|
6510
6788
|
}
|
|
6511
6789
|
}
|
|
6512
|
-
const
|
|
6513
|
-
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o =
|
|
6514
|
-
return !o && n &&
|
|
6790
|
+
const r2 = function(i, e, t) {
|
|
6791
|
+
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = o7(i, e, t);
|
|
6792
|
+
return !o && n && M(t) && (o = D1(i, t, s), o === void 0 && (o = D1(e, t, s))), o;
|
|
6515
6793
|
}, A1 = (i) => i.replace(/\$/g, "$$$$");
|
|
6516
|
-
class
|
|
6794
|
+
class k7 {
|
|
6517
6795
|
constructor() {
|
|
6518
6796
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6519
6797
|
this.logger = X.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
|
|
@@ -6535,14 +6813,14 @@ class l7 {
|
|
|
6535
6813
|
unescapeSuffix: l,
|
|
6536
6814
|
unescapePrefix: h,
|
|
6537
6815
|
nestingPrefix: g,
|
|
6538
|
-
nestingPrefixEscaped:
|
|
6816
|
+
nestingPrefixEscaped: p,
|
|
6539
6817
|
nestingSuffix: w,
|
|
6540
|
-
nestingSuffixEscaped:
|
|
6818
|
+
nestingSuffixEscaped: v,
|
|
6541
6819
|
nestingOptionsSeparator: m,
|
|
6542
|
-
maxReplaces:
|
|
6543
|
-
alwaysFormat:
|
|
6820
|
+
maxReplaces: b,
|
|
6821
|
+
alwaysFormat: y
|
|
6544
6822
|
} = e.interpolation;
|
|
6545
|
-
this.escape = t !== void 0 ? t :
|
|
6823
|
+
this.escape = t !== void 0 ? t : l7, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = n !== void 0 ? n : !1, this.prefix = o ? h1(o) : c || "{{", this.suffix = a ? h1(a) : C || "}}", this.formatSeparator = d || ",", this.unescapePrefix = l ? "" : h || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = g ? h1(g) : p || h1("$t("), this.nestingSuffix = w ? h1(w) : v || h1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
|
|
6546
6824
|
}
|
|
6547
6825
|
reset() {
|
|
6548
6826
|
this.options && this.init(this.options);
|
|
@@ -6553,37 +6831,37 @@ class l7 {
|
|
|
6553
6831
|
}
|
|
6554
6832
|
interpolate(e, t, s, n) {
|
|
6555
6833
|
let o, c, a;
|
|
6556
|
-
const C = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (
|
|
6557
|
-
if (
|
|
6558
|
-
const
|
|
6559
|
-
return this.alwaysFormat ? this.format(
|
|
6834
|
+
const C = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, d = (p) => {
|
|
6835
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
6836
|
+
const b = r2(t, C, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
6837
|
+
return this.alwaysFormat ? this.format(b, void 0, s, {
|
|
6560
6838
|
...n,
|
|
6561
6839
|
...t,
|
|
6562
|
-
interpolationkey:
|
|
6563
|
-
}) :
|
|
6840
|
+
interpolationkey: p
|
|
6841
|
+
}) : b;
|
|
6564
6842
|
}
|
|
6565
|
-
const w =
|
|
6566
|
-
return this.format(
|
|
6843
|
+
const w = p.split(this.formatSeparator), v = w.shift().trim(), m = w.join(this.formatSeparator).trim();
|
|
6844
|
+
return this.format(r2(t, C, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, s, {
|
|
6567
6845
|
...n,
|
|
6568
6846
|
...t,
|
|
6569
|
-
interpolationkey:
|
|
6847
|
+
interpolationkey: v
|
|
6570
6848
|
});
|
|
6571
6849
|
};
|
|
6572
6850
|
this.resetRegExp();
|
|
6573
6851
|
const l = n && n.missingInterpolationHandler || this.options.missingInterpolationHandler, h = n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
6574
6852
|
return [{
|
|
6575
6853
|
regex: this.regexpUnescape,
|
|
6576
|
-
safeValue: (
|
|
6854
|
+
safeValue: (p) => A1(p)
|
|
6577
6855
|
}, {
|
|
6578
6856
|
regex: this.regexp,
|
|
6579
|
-
safeValue: (
|
|
6580
|
-
}].forEach((
|
|
6581
|
-
for (a = 0; o =
|
|
6857
|
+
safeValue: (p) => this.escapeValue ? A1(this.escape(p)) : A1(p)
|
|
6858
|
+
}].forEach((p) => {
|
|
6859
|
+
for (a = 0; o = p.regex.exec(e); ) {
|
|
6582
6860
|
const w = o[1].trim();
|
|
6583
6861
|
if (c = d(w), c === void 0)
|
|
6584
6862
|
if (typeof l == "function") {
|
|
6585
6863
|
const m = l(e, o, n);
|
|
6586
|
-
c =
|
|
6864
|
+
c = M(m) ? m : "";
|
|
6587
6865
|
} else if (n && Object.prototype.hasOwnProperty.call(n, w))
|
|
6588
6866
|
c = "";
|
|
6589
6867
|
else if (h) {
|
|
@@ -6591,9 +6869,9 @@ class l7 {
|
|
|
6591
6869
|
continue;
|
|
6592
6870
|
} else
|
|
6593
6871
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
|
6594
|
-
else !
|
|
6595
|
-
const
|
|
6596
|
-
if (e = e.replace(o[0],
|
|
6872
|
+
else !M(c) && !this.useRawValueToEscape && (c = q1(c));
|
|
6873
|
+
const v = p.safeValue(c);
|
|
6874
|
+
if (e = e.replace(o[0], v), h ? (p.regex.lastIndex += c.length, p.regex.lastIndex -= o[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
|
6597
6875
|
break;
|
|
6598
6876
|
}
|
|
6599
6877
|
}), e;
|
|
@@ -6606,15 +6884,15 @@ class l7 {
|
|
|
6606
6884
|
const h = C.split(new RegExp(`${l}[ ]*{`));
|
|
6607
6885
|
let g = `{${h[1]}`;
|
|
6608
6886
|
C = h[0], g = this.interpolate(g, c);
|
|
6609
|
-
const
|
|
6610
|
-
(
|
|
6887
|
+
const p = g.match(/'/g), w = g.match(/"/g);
|
|
6888
|
+
(p && p.length % 2 === 0 && !w || w.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
6611
6889
|
try {
|
|
6612
6890
|
c = JSON.parse(g), d && (c = {
|
|
6613
6891
|
...d,
|
|
6614
6892
|
...c
|
|
6615
6893
|
});
|
|
6616
|
-
} catch (
|
|
6617
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${C}`,
|
|
6894
|
+
} catch (v) {
|
|
6895
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${C}`, v), `${C}${l}${g}`;
|
|
6618
6896
|
}
|
|
6619
6897
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, C;
|
|
6620
6898
|
};
|
|
@@ -6622,14 +6900,14 @@ class l7 {
|
|
|
6622
6900
|
let C = [];
|
|
6623
6901
|
c = {
|
|
6624
6902
|
...s
|
|
6625
|
-
}, c = c.replace && !
|
|
6903
|
+
}, c = c.replace && !M(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
|
6626
6904
|
let d = !1;
|
|
6627
6905
|
if (n[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(n[1])) {
|
|
6628
6906
|
const l = n[1].split(this.formatSeparator).map((h) => h.trim());
|
|
6629
6907
|
n[1] = l.shift(), C = l, d = !0;
|
|
6630
6908
|
}
|
|
6631
|
-
if (o = t(a.call(this, n[1].trim(), c), c), o && n[0] === e && !
|
|
6632
|
-
|
|
6909
|
+
if (o = t(a.call(this, n[1].trim(), c), c), o && n[0] === e && !M(o)) return o;
|
|
6910
|
+
M(o) || (o = q1(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), d && (o = C.reduce((l, h) => this.format(l, h, s.lng, {
|
|
6633
6911
|
...s,
|
|
6634
6912
|
interpolationkey: n[1].trim()
|
|
6635
6913
|
}), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
|
|
@@ -6637,7 +6915,7 @@ class l7 {
|
|
|
6637
6915
|
return e;
|
|
6638
6916
|
}
|
|
6639
6917
|
}
|
|
6640
|
-
const
|
|
6918
|
+
const v7 = (i) => {
|
|
6641
6919
|
let e = i.toLowerCase().trim();
|
|
6642
6920
|
const t = {};
|
|
6643
6921
|
if (i.indexOf("(") > -1) {
|
|
@@ -6655,7 +6933,7 @@ const c7 = (i) => {
|
|
|
6655
6933
|
formatName: e,
|
|
6656
6934
|
formatOptions: t
|
|
6657
6935
|
};
|
|
6658
|
-
},
|
|
6936
|
+
}, c1 = (i) => {
|
|
6659
6937
|
const e = {};
|
|
6660
6938
|
return (t, s, n) => {
|
|
6661
6939
|
let o = n;
|
|
@@ -6668,36 +6946,36 @@ const c7 = (i) => {
|
|
|
6668
6946
|
return a || (a = i(b1(s), n), e[c] = a), a(t);
|
|
6669
6947
|
};
|
|
6670
6948
|
};
|
|
6671
|
-
class
|
|
6949
|
+
class N7 {
|
|
6672
6950
|
constructor() {
|
|
6673
6951
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6674
6952
|
this.logger = X.create("formatter"), this.options = e, this.formats = {
|
|
6675
|
-
number:
|
|
6953
|
+
number: c1((t, s) => {
|
|
6676
6954
|
const n = new Intl.NumberFormat(t, {
|
|
6677
6955
|
...s
|
|
6678
6956
|
});
|
|
6679
6957
|
return (o) => n.format(o);
|
|
6680
6958
|
}),
|
|
6681
|
-
currency:
|
|
6959
|
+
currency: c1((t, s) => {
|
|
6682
6960
|
const n = new Intl.NumberFormat(t, {
|
|
6683
6961
|
...s,
|
|
6684
6962
|
style: "currency"
|
|
6685
6963
|
});
|
|
6686
6964
|
return (o) => n.format(o);
|
|
6687
6965
|
}),
|
|
6688
|
-
datetime:
|
|
6966
|
+
datetime: c1((t, s) => {
|
|
6689
6967
|
const n = new Intl.DateTimeFormat(t, {
|
|
6690
6968
|
...s
|
|
6691
6969
|
});
|
|
6692
6970
|
return (o) => n.format(o);
|
|
6693
6971
|
}),
|
|
6694
|
-
relativetime:
|
|
6972
|
+
relativetime: c1((t, s) => {
|
|
6695
6973
|
const n = new Intl.RelativeTimeFormat(t, {
|
|
6696
6974
|
...s
|
|
6697
6975
|
});
|
|
6698
6976
|
return (o) => n.format(o, s.range || "day");
|
|
6699
6977
|
}),
|
|
6700
|
-
list:
|
|
6978
|
+
list: c1((t, s) => {
|
|
6701
6979
|
const n = new Intl.ListFormat(t, {
|
|
6702
6980
|
...s
|
|
6703
6981
|
});
|
|
@@ -6715,7 +6993,7 @@ class h7 {
|
|
|
6715
6993
|
this.formats[e.toLowerCase().trim()] = t;
|
|
6716
6994
|
}
|
|
6717
6995
|
addCached(e, t) {
|
|
6718
|
-
this.formats[e.toLowerCase().trim()] =
|
|
6996
|
+
this.formats[e.toLowerCase().trim()] = c1(t);
|
|
6719
6997
|
}
|
|
6720
6998
|
format(e, t, s) {
|
|
6721
6999
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -6728,12 +7006,12 @@ class h7 {
|
|
|
6728
7006
|
const {
|
|
6729
7007
|
formatName: d,
|
|
6730
7008
|
formatOptions: l
|
|
6731
|
-
} =
|
|
7009
|
+
} = v7(C);
|
|
6732
7010
|
if (this.formats[d]) {
|
|
6733
7011
|
let h = a;
|
|
6734
7012
|
try {
|
|
6735
|
-
const g = n && n.formatParams && n.formatParams[n.interpolationkey] || {},
|
|
6736
|
-
h = this.formats[d](a,
|
|
7013
|
+
const g = n && n.formatParams && n.formatParams[n.interpolationkey] || {}, p = g.locale || g.lng || n.locale || n.lng || s;
|
|
7014
|
+
h = this.formats[d](a, p, {
|
|
6737
7015
|
...l,
|
|
6738
7016
|
...n,
|
|
6739
7017
|
...g
|
|
@@ -6748,10 +7026,10 @@ class h7 {
|
|
|
6748
7026
|
}, e);
|
|
6749
7027
|
}
|
|
6750
7028
|
}
|
|
6751
|
-
const
|
|
7029
|
+
const R7 = (i, e) => {
|
|
6752
7030
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
6753
7031
|
};
|
|
6754
|
-
class
|
|
7032
|
+
class x7 extends E1 {
|
|
6755
7033
|
constructor(e, t, s) {
|
|
6756
7034
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6757
7035
|
super(), this.backend = e, this.store = t, this.services = s, this.languageUtils = s.languageUtils, this.options = n, this.logger = X.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(s, n.backend, n);
|
|
@@ -6784,7 +7062,7 @@ class C7 extends V1 {
|
|
|
6784
7062
|
}), this.state[e] = t ? -1 : 2, t && s && (this.state[e] = 0);
|
|
6785
7063
|
const a = {};
|
|
6786
7064
|
this.queue.forEach((C) => {
|
|
6787
|
-
|
|
7065
|
+
r7(C.loaded, [o], c), R7(C, e), t && C.errors.push(t), C.pendingCount === 0 && !C.done && (Object.keys(C.loaded).forEach((d) => {
|
|
6788
7066
|
a[d] || (a[d] = {});
|
|
6789
7067
|
const l = C.loaded[d];
|
|
6790
7068
|
l.length && l.forEach((h) => {
|
|
@@ -6836,7 +7114,7 @@ class C7 extends V1 {
|
|
|
6836
7114
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = arguments.length > 3 ? arguments[3] : void 0;
|
|
6837
7115
|
if (!this.backend)
|
|
6838
7116
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
|
|
6839
|
-
|
|
7117
|
+
M(e) && (e = this.languageUtils.toResolveHierarchy(e)), M(t) && (t = [t]);
|
|
6840
7118
|
const o = this.queueLoad(e, t, s, n);
|
|
6841
7119
|
if (!o.toLoad.length)
|
|
6842
7120
|
return o.pending.length || n(), null;
|
|
@@ -6886,7 +7164,7 @@ class C7 extends V1 {
|
|
|
6886
7164
|
}
|
|
6887
7165
|
}
|
|
6888
7166
|
}
|
|
6889
|
-
const
|
|
7167
|
+
const o2 = () => ({
|
|
6890
7168
|
debug: !1,
|
|
6891
7169
|
initImmediate: !0,
|
|
6892
7170
|
ns: ["translation"],
|
|
@@ -6921,7 +7199,7 @@ const r2 = () => ({
|
|
|
6921
7199
|
appendNamespaceToCIMode: !1,
|
|
6922
7200
|
overloadTranslationOptionHandler: (i) => {
|
|
6923
7201
|
let e = {};
|
|
6924
|
-
if (typeof i[1] == "object" && (e = i[1]),
|
|
7202
|
+
if (typeof i[1] == "object" && (e = i[1]), M(i[1]) && (e.defaultValue = i[1]), M(i[2]) && (e.tDescription = i[2]), typeof i[2] == "object" || typeof i[3] == "object") {
|
|
6925
7203
|
const t = i[3] || i[2];
|
|
6926
7204
|
Object.keys(t).forEach((s) => {
|
|
6927
7205
|
e[s] = t[s];
|
|
@@ -6942,18 +7220,18 @@ const r2 = () => ({
|
|
|
6942
7220
|
maxReplaces: 1e3,
|
|
6943
7221
|
skipOnVariables: !0
|
|
6944
7222
|
}
|
|
6945
|
-
}),
|
|
6946
|
-
},
|
|
7223
|
+
}), a2 = (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 = () => {
|
|
7224
|
+
}, _7 = (i) => {
|
|
6947
7225
|
Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((t) => {
|
|
6948
7226
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
6949
7227
|
});
|
|
6950
7228
|
};
|
|
6951
|
-
class
|
|
7229
|
+
class L1 extends E1 {
|
|
6952
7230
|
constructor() {
|
|
6953
7231
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
6954
|
-
if (super(), this.options =
|
|
7232
|
+
if (super(), this.options = a2(e), this.services = {}, this.logger = X, this.modules = {
|
|
6955
7233
|
external: []
|
|
6956
|
-
},
|
|
7234
|
+
}, _7(this), t && !this.isInitialized && !e.isClone) {
|
|
6957
7235
|
if (!this.options.initImmediate)
|
|
6958
7236
|
return this.init(e, t), this;
|
|
6959
7237
|
setTimeout(() => {
|
|
@@ -6964,12 +7242,12 @@ class w1 extends V1 {
|
|
|
6964
7242
|
init() {
|
|
6965
7243
|
var e = this;
|
|
6966
7244
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = arguments.length > 1 ? arguments[1] : void 0;
|
|
6967
|
-
this.isInitializing = !0, typeof t == "function" && (s = t, t = {}), !t.defaultNS && t.defaultNS !== !1 && t.ns && (
|
|
6968
|
-
const n =
|
|
7245
|
+
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]));
|
|
7246
|
+
const n = o2();
|
|
6969
7247
|
this.options = {
|
|
6970
7248
|
...n,
|
|
6971
7249
|
...this.options,
|
|
6972
|
-
...
|
|
7250
|
+
...a2(t)
|
|
6973
7251
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
6974
7252
|
...n.interpolation,
|
|
6975
7253
|
...this.options.interpolation
|
|
@@ -6978,29 +7256,29 @@ class w1 extends V1 {
|
|
|
6978
7256
|
if (!this.options.isClone) {
|
|
6979
7257
|
this.modules.logger ? X.init(o(this.modules.logger), this.options) : X.init(null, this.options);
|
|
6980
7258
|
let l;
|
|
6981
|
-
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l =
|
|
6982
|
-
const h = new
|
|
6983
|
-
this.store = new
|
|
7259
|
+
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = N7);
|
|
7260
|
+
const h = new s2(this.options);
|
|
7261
|
+
this.store = new t2(this.options.resources, this.options);
|
|
6984
7262
|
const g = this.services;
|
|
6985
|
-
g.logger = X, g.resourceStore = this.store, g.languageUtils = h, g.pluralResolver = new
|
|
7263
|
+
g.logger = X, g.resourceStore = this.store, g.languageUtils = h, g.pluralResolver = new L7(h, {
|
|
6986
7264
|
prepend: this.options.pluralSeparator,
|
|
6987
7265
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
6988
7266
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
6989
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (g.formatter = o(l), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new
|
|
7267
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (g.formatter = o(l), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new k7(this.options), g.utils = {
|
|
6990
7268
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
6991
|
-
}, g.backendConnector = new
|
|
6992
|
-
for (var w = arguments.length,
|
|
6993
|
-
|
|
6994
|
-
e.emit(
|
|
6995
|
-
}), this.modules.languageDetector && (g.languageDetector = o(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = o(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new
|
|
6996
|
-
for (var w = arguments.length,
|
|
6997
|
-
|
|
6998
|
-
e.emit(
|
|
6999
|
-
}), this.modules.external.forEach((
|
|
7000
|
-
|
|
7269
|
+
}, g.backendConnector = new x7(o(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", function(p) {
|
|
7270
|
+
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7271
|
+
v[m - 1] = arguments[m];
|
|
7272
|
+
e.emit(p, ...v);
|
|
7273
|
+
}), this.modules.languageDetector && (g.languageDetector = o(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = o(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new H1(this.services, this.options), this.translator.on("*", function(p) {
|
|
7274
|
+
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
7275
|
+
v[m - 1] = arguments[m];
|
|
7276
|
+
e.emit(p, ...v);
|
|
7277
|
+
}), this.modules.external.forEach((p) => {
|
|
7278
|
+
p.init && p.init(this);
|
|
7001
7279
|
});
|
|
7002
7280
|
}
|
|
7003
|
-
if (this.format = this.options.interpolation.format, s || (s =
|
|
7281
|
+
if (this.format = this.options.interpolation.format, s || (s = x1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
7004
7282
|
const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
7005
7283
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
|
7006
7284
|
}
|
|
@@ -7013,7 +7291,7 @@ class w1 extends V1 {
|
|
|
7013
7291
|
return e.store[l](...arguments), e;
|
|
7014
7292
|
};
|
|
7015
7293
|
});
|
|
7016
|
-
const C =
|
|
7294
|
+
const C = p1(), d = () => {
|
|
7017
7295
|
const l = (h, g) => {
|
|
7018
7296
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), C.resolve(g), s(h, g);
|
|
7019
7297
|
};
|
|
@@ -7023,8 +7301,8 @@ class w1 extends V1 {
|
|
|
7023
7301
|
return this.options.resources || !this.options.initImmediate ? d() : setTimeout(d, 0), C;
|
|
7024
7302
|
}
|
|
7025
7303
|
loadResources(e) {
|
|
7026
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
7027
|
-
const n =
|
|
7304
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
|
7305
|
+
const n = M(e) ? e : this.language;
|
|
7028
7306
|
if (typeof e == "function" && (s = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7029
7307
|
if (n && n.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return s();
|
|
7030
7308
|
const o = [], c = (a) => {
|
|
@@ -7040,8 +7318,8 @@ class w1 extends V1 {
|
|
|
7040
7318
|
s(null);
|
|
7041
7319
|
}
|
|
7042
7320
|
reloadResources(e, t, s) {
|
|
7043
|
-
const n =
|
|
7044
|
-
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 =
|
|
7321
|
+
const n = p1();
|
|
7322
|
+
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, (o) => {
|
|
7045
7323
|
n.resolve(), s(o);
|
|
7046
7324
|
}), n;
|
|
7047
7325
|
}
|
|
@@ -7063,7 +7341,7 @@ class w1 extends V1 {
|
|
|
7063
7341
|
changeLanguage(e, t) {
|
|
7064
7342
|
var s = this;
|
|
7065
7343
|
this.isLanguageChangingTo = e;
|
|
7066
|
-
const n =
|
|
7344
|
+
const n = p1();
|
|
7067
7345
|
this.emit("languageChanging", e);
|
|
7068
7346
|
const o = (C) => {
|
|
7069
7347
|
this.language = C, this.languages = this.services.languageUtils.toResolveHierarchy(C), this.resolvedLanguage = void 0, this.setResolvedLanguage(C);
|
|
@@ -7075,7 +7353,7 @@ class w1 extends V1 {
|
|
|
7075
7353
|
});
|
|
7076
7354
|
}, a = (C) => {
|
|
7077
7355
|
!e && !C && this.services.languageDetector && (C = []);
|
|
7078
|
-
const d =
|
|
7356
|
+
const d = M(C) ? C : this.services.languageUtils.getBestMatchFromCodes(C);
|
|
7079
7357
|
d && (this.language || o(d), this.translator.language || this.translator.changeLanguage(d), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(d)), this.loadResources(d, (l) => {
|
|
7080
7358
|
c(l, d);
|
|
7081
7359
|
});
|
|
@@ -7096,10 +7374,10 @@ class w1 extends V1 {
|
|
|
7096
7374
|
};
|
|
7097
7375
|
C.lng = C.lng || o.lng, C.lngs = C.lngs || o.lngs, C.ns = C.ns || o.ns, C.keyPrefix !== "" && (C.keyPrefix = C.keyPrefix || s || o.keyPrefix);
|
|
7098
7376
|
const g = n.options.keySeparator || ".";
|
|
7099
|
-
let
|
|
7100
|
-
return C.keyPrefix && Array.isArray(c) ?
|
|
7377
|
+
let p;
|
|
7378
|
+
return C.keyPrefix && Array.isArray(c) ? p = c.map((w) => `${C.keyPrefix}${g}${w}`) : p = C.keyPrefix ? `${C.keyPrefix}${g}${c}` : c, n.t(p, C);
|
|
7101
7379
|
};
|
|
7102
|
-
return
|
|
7380
|
+
return M(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = s, o;
|
|
7103
7381
|
}
|
|
7104
7382
|
t() {
|
|
7105
7383
|
return this.translator && this.translator.translate(...arguments);
|
|
@@ -7129,16 +7407,16 @@ class w1 extends V1 {
|
|
|
7129
7407
|
return !!(this.hasResourceBundle(s, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(s, e) && (!n || c(o, e)));
|
|
7130
7408
|
}
|
|
7131
7409
|
loadNamespaces(e, t) {
|
|
7132
|
-
const s =
|
|
7133
|
-
return this.options.ns ? (
|
|
7410
|
+
const s = p1();
|
|
7411
|
+
return this.options.ns ? (M(e) && (e = [e]), e.forEach((n) => {
|
|
7134
7412
|
this.options.ns.indexOf(n) < 0 && this.options.ns.push(n);
|
|
7135
7413
|
}), this.loadResources((n) => {
|
|
7136
7414
|
s.resolve(), t && t(n);
|
|
7137
7415
|
}), s) : (t && t(), Promise.resolve());
|
|
7138
7416
|
}
|
|
7139
7417
|
loadLanguages(e, t) {
|
|
7140
|
-
const s =
|
|
7141
|
-
|
|
7418
|
+
const s = p1();
|
|
7419
|
+
M(e) && (e = [e]);
|
|
7142
7420
|
const n = this.options.preload || [], o = e.filter((c) => n.indexOf(c) < 0 && this.services.languageUtils.isSupportedCode(c));
|
|
7143
7421
|
return o.length ? (this.options.preload = n.concat(o), this.loadResources((c) => {
|
|
7144
7422
|
s.resolve(), t && t(c);
|
|
@@ -7146,29 +7424,29 @@ class w1 extends V1 {
|
|
|
7146
7424
|
}
|
|
7147
7425
|
dir(e) {
|
|
7148
7426
|
if (e || (e = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
7149
|
-
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
|
|
7427
|
+
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 s2(o2());
|
|
7150
7428
|
return t.indexOf(s.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
7151
7429
|
}
|
|
7152
7430
|
static createInstance() {
|
|
7153
7431
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
|
|
7154
|
-
return new
|
|
7432
|
+
return new L1(e, t);
|
|
7155
7433
|
}
|
|
7156
7434
|
cloneInstance() {
|
|
7157
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
7435
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
|
7158
7436
|
const s = e.forkResourceStore;
|
|
7159
7437
|
s && delete e.forkResourceStore;
|
|
7160
7438
|
const n = {
|
|
7161
7439
|
...this.options,
|
|
7162
7440
|
...e,
|
|
7163
7441
|
isClone: !0
|
|
7164
|
-
}, o = new
|
|
7442
|
+
}, o = new L1(n);
|
|
7165
7443
|
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
|
|
7166
7444
|
o[a] = this[a];
|
|
7167
7445
|
}), o.services = {
|
|
7168
7446
|
...this.services
|
|
7169
7447
|
}, o.services.utils = {
|
|
7170
7448
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7171
|
-
}, s && (o.store = new
|
|
7449
|
+
}, s && (o.store = new t2(this.store.data, n), o.services.resourceStore = o.store), o.translator = new H1(o.services, n), o.translator.on("*", function(a) {
|
|
7172
7450
|
for (var C = arguments.length, d = new Array(C > 1 ? C - 1 : 0), l = 1; l < C; l++)
|
|
7173
7451
|
d[l - 1] = arguments[l];
|
|
7174
7452
|
o.emit(a, ...d);
|
|
@@ -7186,8 +7464,8 @@ class w1 extends V1 {
|
|
|
7186
7464
|
};
|
|
7187
7465
|
}
|
|
7188
7466
|
}
|
|
7189
|
-
const W =
|
|
7190
|
-
W.createInstance =
|
|
7467
|
+
const W = L1.createInstance();
|
|
7468
|
+
W.createInstance = L1.createInstance;
|
|
7191
7469
|
W.createInstance;
|
|
7192
7470
|
W.dir;
|
|
7193
7471
|
W.init;
|
|
@@ -7202,26 +7480,26 @@ W.setDefaultNamespace;
|
|
|
7202
7480
|
W.hasLoadedNamespace;
|
|
7203
7481
|
W.loadNamespaces;
|
|
7204
7482
|
W.loadLanguages;
|
|
7205
|
-
const
|
|
7206
|
-
archived:
|
|
7207
|
-
deleted:
|
|
7208
|
-
},
|
|
7209
|
-
archived:
|
|
7210
|
-
deleted:
|
|
7483
|
+
const M7 = "Archived", b7 = "Deleted", y7 = {
|
|
7484
|
+
archived: M7,
|
|
7485
|
+
deleted: b7
|
|
7486
|
+
}, H7 = "Заархивирован", E7 = "Удалён", V7 = {
|
|
7487
|
+
archived: H7,
|
|
7488
|
+
deleted: E7
|
|
7211
7489
|
};
|
|
7212
|
-
W.use(
|
|
7490
|
+
W.use(qt).init({
|
|
7213
7491
|
defaultNS: "common",
|
|
7214
7492
|
lng: "en",
|
|
7215
7493
|
resources: {
|
|
7216
7494
|
en: {
|
|
7217
|
-
common:
|
|
7495
|
+
common: y7
|
|
7218
7496
|
},
|
|
7219
7497
|
ru: {
|
|
7220
|
-
common:
|
|
7498
|
+
common: V7
|
|
7221
7499
|
}
|
|
7222
7500
|
}
|
|
7223
7501
|
});
|
|
7224
|
-
const
|
|
7502
|
+
const G7 = d1(
|
|
7225
7503
|
({
|
|
7226
7504
|
fetchParams: i,
|
|
7227
7505
|
mode: e = void 0,
|
|
@@ -7236,44 +7514,44 @@ const b7 = L1(
|
|
|
7236
7514
|
required: l,
|
|
7237
7515
|
error: h
|
|
7238
7516
|
}, g) => {
|
|
7239
|
-
const { axiosPeople:
|
|
7240
|
-
if (
|
|
7517
|
+
const { axiosPeople: p, locale: w } = r1(y2), { t: v } = i7("common", { lng: w }), [m, b] = O([]), [y, A] = O(!0), f = J(m), x = J(null);
|
|
7518
|
+
if (k1(g, () => x.current), !p)
|
|
7241
7519
|
throw new Error(
|
|
7242
7520
|
`UserSelect requires "axiosPeople" to fetch users.
|
|
7243
7521
|
Please provide it via SNMTUiContext.`
|
|
7244
7522
|
);
|
|
7245
|
-
const
|
|
7246
|
-
(
|
|
7247
|
-
let
|
|
7248
|
-
return
|
|
7523
|
+
const _ = $(
|
|
7524
|
+
(E) => {
|
|
7525
|
+
let T = "";
|
|
7526
|
+
return E.deletedAt && (T += `[${v("deleted")}] `), E.status === _1.ARCHIVED && (T += `[${v("archived")}] `), `${T}${E.firstName} ${E.lastName}`;
|
|
7249
7527
|
},
|
|
7250
|
-
[
|
|
7528
|
+
[v]
|
|
7251
7529
|
), R = $(
|
|
7252
7530
|
async ({
|
|
7253
|
-
offset:
|
|
7254
|
-
limit:
|
|
7255
|
-
search:
|
|
7531
|
+
offset: E,
|
|
7532
|
+
limit: T,
|
|
7533
|
+
search: V
|
|
7256
7534
|
}) => {
|
|
7257
|
-
var
|
|
7535
|
+
var Z, D, B;
|
|
7258
7536
|
try {
|
|
7259
|
-
const U = await
|
|
7260
|
-
offset:
|
|
7261
|
-
limit:
|
|
7262
|
-
search:
|
|
7537
|
+
const U = await p.post("v1/users/search", {
|
|
7538
|
+
offset: E,
|
|
7539
|
+
limit: T,
|
|
7540
|
+
search: V,
|
|
7263
7541
|
...i,
|
|
7264
7542
|
includeCount: !0
|
|
7265
7543
|
}), { data: I, metadata: Y } = U.data;
|
|
7266
7544
|
return {
|
|
7267
7545
|
options: I.map((P) => ({
|
|
7268
7546
|
value: P.id,
|
|
7269
|
-
label:
|
|
7547
|
+
label: _(P),
|
|
7270
7548
|
image: C ? P.avatarUrl : void 0
|
|
7271
7549
|
})),
|
|
7272
7550
|
count: Y.count
|
|
7273
7551
|
};
|
|
7274
7552
|
} catch (U) {
|
|
7275
7553
|
return c && c({
|
|
7276
|
-
status: ((
|
|
7554
|
+
status: ((Z = U.response) == null ? void 0 : Z.status) ?? 500,
|
|
7277
7555
|
message: ((B = (D = U.response) == null ? void 0 : D.data) == null ? void 0 : B.message) ?? "Error while fetching options"
|
|
7278
7556
|
}), {
|
|
7279
7557
|
options: [],
|
|
@@ -7281,73 +7559,73 @@ const b7 = L1(
|
|
|
7281
7559
|
};
|
|
7282
7560
|
}
|
|
7283
7561
|
},
|
|
7284
|
-
[
|
|
7562
|
+
[p, i, _, C, c]
|
|
7285
7563
|
), j = $(
|
|
7286
|
-
async (
|
|
7287
|
-
var
|
|
7564
|
+
async (E) => {
|
|
7565
|
+
var T, V, Z;
|
|
7288
7566
|
try {
|
|
7289
|
-
const D =
|
|
7290
|
-
(I) => !
|
|
7567
|
+
const D = E.filter(
|
|
7568
|
+
(I) => !f.current.some((Y) => Y.value === I)
|
|
7291
7569
|
);
|
|
7292
7570
|
let B = [];
|
|
7293
|
-
D.length && (B = (await
|
|
7571
|
+
D.length && (B = (await p.post("v1/users/search", {
|
|
7294
7572
|
filters: {
|
|
7295
7573
|
id: D,
|
|
7296
|
-
status: [
|
|
7574
|
+
status: [_1.ACTIVE, _1.ARCHIVED]
|
|
7297
7575
|
}
|
|
7298
7576
|
})).data.data);
|
|
7299
7577
|
const U = B.map((I) => ({
|
|
7300
7578
|
value: I.id,
|
|
7301
|
-
label:
|
|
7579
|
+
label: _(I),
|
|
7302
7580
|
image: C ? I.avatarUrl : void 0
|
|
7303
7581
|
}));
|
|
7304
|
-
return [...
|
|
7582
|
+
return [...f.current, ...U];
|
|
7305
7583
|
} catch (D) {
|
|
7306
7584
|
return c && c({
|
|
7307
|
-
status: ((
|
|
7308
|
-
message: ((
|
|
7585
|
+
status: ((T = D.response) == null ? void 0 : T.status) ?? 500,
|
|
7586
|
+
message: ((Z = (V = D.response) == null ? void 0 : V.data) == null ? void 0 : Z.message) ?? "Error while fetching selected items"
|
|
7309
7587
|
}), [];
|
|
7310
7588
|
}
|
|
7311
7589
|
},
|
|
7312
|
-
[
|
|
7590
|
+
[p, _, c, C]
|
|
7313
7591
|
);
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
}, [m]),
|
|
7317
|
-
var
|
|
7318
|
-
(
|
|
7319
|
-
}, [i]),
|
|
7592
|
+
G(() => {
|
|
7593
|
+
f.current = m;
|
|
7594
|
+
}, [m]), G(() => {
|
|
7595
|
+
var E;
|
|
7596
|
+
(E = x.current) == null || E.refetchOptions();
|
|
7597
|
+
}, [i]), G(() => {
|
|
7320
7598
|
if (!n) {
|
|
7321
7599
|
A(!1);
|
|
7322
7600
|
return;
|
|
7323
7601
|
}
|
|
7324
7602
|
(async () => {
|
|
7325
|
-
const
|
|
7326
|
-
|
|
7603
|
+
const T = Array.isArray(n) ? n : [n], V = await j(T);
|
|
7604
|
+
b(V), A(!1);
|
|
7327
7605
|
})();
|
|
7328
7606
|
}, [j, n]);
|
|
7329
|
-
const
|
|
7607
|
+
const q = $(
|
|
7330
7608
|
async ({
|
|
7331
|
-
limit:
|
|
7332
|
-
offset:
|
|
7333
|
-
search:
|
|
7609
|
+
limit: E,
|
|
7610
|
+
offset: T,
|
|
7611
|
+
search: V
|
|
7334
7612
|
}) => {
|
|
7335
|
-
const { count:
|
|
7336
|
-
offset:
|
|
7337
|
-
limit:
|
|
7338
|
-
search:
|
|
7613
|
+
const { count: Z, ...D } = await R({
|
|
7614
|
+
offset: T,
|
|
7615
|
+
limit: E,
|
|
7616
|
+
search: V
|
|
7339
7617
|
});
|
|
7340
7618
|
let B = D.options;
|
|
7341
|
-
return a &&
|
|
7619
|
+
return a && T === 0 && (B = [{ value: null, label: "None" }, ...B]), {
|
|
7342
7620
|
options: B,
|
|
7343
|
-
count:
|
|
7344
|
-
limit:
|
|
7621
|
+
count: Z,
|
|
7622
|
+
limit: E
|
|
7345
7623
|
};
|
|
7346
7624
|
},
|
|
7347
7625
|
[a, R]
|
|
7348
7626
|
);
|
|
7349
|
-
if (
|
|
7350
|
-
return /* @__PURE__ */ r(
|
|
7627
|
+
if (y)
|
|
7628
|
+
return /* @__PURE__ */ r(Gt, {});
|
|
7351
7629
|
const F = {
|
|
7352
7630
|
ref: x,
|
|
7353
7631
|
placeholder: t,
|
|
@@ -7357,24 +7635,24 @@ const b7 = L1(
|
|
|
7357
7635
|
error: h
|
|
7358
7636
|
};
|
|
7359
7637
|
return e ? /* @__PURE__ */ r(
|
|
7360
|
-
|
|
7638
|
+
W1,
|
|
7361
7639
|
{
|
|
7362
7640
|
...F,
|
|
7363
7641
|
mode: e,
|
|
7364
7642
|
value: n,
|
|
7365
7643
|
onChange: o,
|
|
7366
|
-
loadOptions:
|
|
7644
|
+
loadOptions: q,
|
|
7367
7645
|
preloadOptions: !0,
|
|
7368
7646
|
extraOptions: m
|
|
7369
7647
|
}
|
|
7370
7648
|
) : /* @__PURE__ */ r(
|
|
7371
|
-
|
|
7649
|
+
W1,
|
|
7372
7650
|
{
|
|
7373
7651
|
...F,
|
|
7374
7652
|
value: n,
|
|
7375
7653
|
mode: void 0,
|
|
7376
7654
|
onChange: o,
|
|
7377
|
-
loadOptions:
|
|
7655
|
+
loadOptions: q,
|
|
7378
7656
|
preloadOptions: !0,
|
|
7379
7657
|
extraOptions: m
|
|
7380
7658
|
}
|
|
@@ -7382,5 +7660,5 @@ const b7 = L1(
|
|
|
7382
7660
|
}
|
|
7383
7661
|
);
|
|
7384
7662
|
export {
|
|
7385
|
-
|
|
7663
|
+
G7 as UserSelect
|
|
7386
7664
|
};
|