@snmt-react-ui/city-select 2.8.19 → 2.8.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/city-select.js +716 -728
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
|
@@ -2,9 +2,9 @@ var m2 = Object.defineProperty;
|
|
|
2
2
|
var w2 = (i, e, t) => e in i ? m2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var T1 = (i, e, t) => w2(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "./index.css";
|
|
5
|
-
import { jsx as r, Fragment as i1, jsxs as
|
|
5
|
+
import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
|
|
6
6
|
import { SNMTUiContext as L2 } from "@snmt-react-ui/core";
|
|
7
|
-
import { forwardRef as d1, useState as
|
|
7
|
+
import { forwardRef as d1, useState as O, useRef as $, useCallback as K, useEffect as Z, useMemo as k2, useImperativeHandle as k1, useContext as r1, createContext as g1 } from "react";
|
|
8
8
|
import { Select as v2, Tag as N2, Flex as R2, Checkbox as x2, Avatar as _2, Typography as G1, Popover as M2 } from "antd";
|
|
9
9
|
var b2 = Object.defineProperty, y2 = (i, e, t) => e in i ? b2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, H2 = (i, e, t) => y2(i, e + "", t), E2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function V2() {
|
|
@@ -41,9 +41,9 @@ const o2 = (i, e) => () => {
|
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
43
43
|
if (n.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const c = (
|
|
45
|
-
const
|
|
46
|
-
return
|
|
44
|
+
const c = (d, l) => {
|
|
45
|
+
const a = e.services.backendConnector.state[`${d}|${l}`];
|
|
46
|
+
return a === -1 || a === 2;
|
|
47
47
|
};
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(o, i)));
|
|
49
49
|
}, I2 = function(i, e) {
|
|
@@ -88,7 +88,7 @@ let T2 = {
|
|
|
88
88
|
};
|
|
89
89
|
const K2 = () => T2;
|
|
90
90
|
let B2;
|
|
91
|
-
const Y2 = () => B2, P2 =
|
|
91
|
+
const Y2 = () => B2, P2 = g1();
|
|
92
92
|
class j2 {
|
|
93
93
|
constructor() {
|
|
94
94
|
H2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
|
|
@@ -101,7 +101,7 @@ class j2 {
|
|
|
101
101
|
}
|
|
102
102
|
const $2 = (i, e) => {
|
|
103
103
|
const t = $();
|
|
104
|
-
return
|
|
104
|
+
return Z(() => {
|
|
105
105
|
t.current = i;
|
|
106
106
|
}, [i, e]), t.current;
|
|
107
107
|
}, a2 = (i, e, t, n) => i.getFixedT(e, t, n), F2 = (i, e, t, n) => K(a2(i, e, t, n), [i, e, t, n]), W2 = function(i) {
|
|
@@ -123,38 +123,38 @@ const $2 = (i, e) => {
|
|
|
123
123
|
...o.options.react,
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
|
-
useSuspense:
|
|
127
|
-
keyPrefix:
|
|
126
|
+
useSuspense: d,
|
|
127
|
+
keyPrefix: l
|
|
128
128
|
} = c;
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
const
|
|
132
|
-
let m =
|
|
129
|
+
let a = i;
|
|
130
|
+
a = n1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
|
|
131
|
+
const h = (o.isInitialized || o.initializedStoreOnce) && a.every((p) => I2(p, o, c)), u = F2(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), g = () => u, f = () => a2(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), [w, v] = O(g);
|
|
132
|
+
let m = a.join();
|
|
133
133
|
e.lng && (m = `${e.lng}${m}`);
|
|
134
134
|
const b = $2(m), y = $(!0);
|
|
135
|
-
|
|
135
|
+
Z(() => {
|
|
136
136
|
const {
|
|
137
137
|
bindI18n: p,
|
|
138
138
|
bindI18nStore: N
|
|
139
139
|
} = c;
|
|
140
|
-
y.current = !0, !
|
|
140
|
+
y.current = !0, !h && !d && (e.lng ? Y1(o, e.lng, a, () => {
|
|
141
141
|
y.current && v(f);
|
|
142
|
-
}) : B1(o,
|
|
142
|
+
}) : B1(o, a, () => {
|
|
143
143
|
y.current && v(f);
|
|
144
|
-
})),
|
|
144
|
+
})), h && b && b !== m && y.current && v(f);
|
|
145
145
|
const _ = () => {
|
|
146
146
|
y.current && v(f);
|
|
147
147
|
};
|
|
148
148
|
return p && o && o.on(p, _), N && o && o.store.on(N, _), () => {
|
|
149
149
|
y.current = !1, p && o && p.split(" ").forEach((R) => o.off(R, _)), N && o && N.split(" ").forEach((R) => o.store.off(R, _));
|
|
150
150
|
};
|
|
151
|
-
}, [o, m]),
|
|
152
|
-
y.current &&
|
|
153
|
-
}, [o,
|
|
154
|
-
const E = [w, o,
|
|
155
|
-
if (E.t = w, E.i18n = o, E.ready =
|
|
151
|
+
}, [o, m]), Z(() => {
|
|
152
|
+
y.current && h && v(g);
|
|
153
|
+
}, [o, l, h]);
|
|
154
|
+
const E = [w, o, h];
|
|
155
|
+
if (E.t = w, E.i18n = o, E.ready = h, h || !h && !d) return E;
|
|
156
156
|
throw new Promise((p) => {
|
|
157
|
-
e.lng ? Y1(o, e.lng,
|
|
157
|
+
e.lng ? Y1(o, e.lng, a, () => p()) : B1(o, a, () => p());
|
|
158
158
|
});
|
|
159
159
|
}, p1 = ({
|
|
160
160
|
children: i,
|
|
@@ -164,7 +164,7 @@ const $2 = (i, e) => {
|
|
|
164
164
|
justifyContent: s = "normal",
|
|
165
165
|
flex: o,
|
|
166
166
|
gap: c,
|
|
167
|
-
padding:
|
|
167
|
+
padding: d
|
|
168
168
|
}) => /* @__PURE__ */ r(
|
|
169
169
|
R2,
|
|
170
170
|
{
|
|
@@ -175,7 +175,7 @@ const $2 = (i, e) => {
|
|
|
175
175
|
justify: s,
|
|
176
176
|
flex: o,
|
|
177
177
|
gap: c,
|
|
178
|
-
style: { padding:
|
|
178
|
+
style: { padding: d },
|
|
179
179
|
children: i
|
|
180
180
|
}
|
|
181
181
|
), U2 = ({ shape: i = "circle", size: e = 32, children: t, ...n }) => {
|
|
@@ -193,7 +193,7 @@ const $2 = (i, e) => {
|
|
|
193
193
|
);
|
|
194
194
|
};
|
|
195
195
|
var U = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(U || {});
|
|
196
|
-
const D1 =
|
|
196
|
+
const D1 = g1({
|
|
197
197
|
locale: "en",
|
|
198
198
|
theme: "light"
|
|
199
199
|
});
|
|
@@ -213,32 +213,32 @@ const { Title: z2, Text: J2 } = G1, q2 = {
|
|
|
213
213
|
collapsed: o,
|
|
214
214
|
whiteSpace: c = "normal",
|
|
215
215
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
216
|
-
trim:
|
|
217
|
-
},
|
|
218
|
-
const
|
|
219
|
-
k1(
|
|
220
|
-
const [
|
|
221
|
-
|
|
216
|
+
trim: d = !1
|
|
217
|
+
}, l) => {
|
|
218
|
+
const a = $(null);
|
|
219
|
+
k1(l, () => a.current);
|
|
220
|
+
const [h, u] = O(!1);
|
|
221
|
+
Z(() => {
|
|
222
222
|
var v;
|
|
223
|
-
if (!
|
|
223
|
+
if (!d) return;
|
|
224
224
|
const m = () => {
|
|
225
|
-
|
|
225
|
+
a.current && u(a.current.scrollWidth > a.current.clientWidth);
|
|
226
226
|
};
|
|
227
227
|
m();
|
|
228
228
|
const b = new ResizeObserver(m);
|
|
229
|
-
return
|
|
229
|
+
return a.current && b.observe(a.current), (v = a.current) != null && v.parentElement && b.observe(a.current.parentElement), () => {
|
|
230
230
|
b.disconnect();
|
|
231
231
|
};
|
|
232
|
-
}, [
|
|
232
|
+
}, [d]);
|
|
233
233
|
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
234
234
|
let f = `snmt-typography snmt-typography-${e}`;
|
|
235
235
|
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), o && (f += " collapsed");
|
|
236
236
|
const w = {
|
|
237
237
|
className: f,
|
|
238
|
-
style: { color: t, whiteSpace:
|
|
238
|
+
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
239
239
|
onClick: s,
|
|
240
|
-
ref:
|
|
241
|
-
ellipsis:
|
|
240
|
+
ref: a,
|
|
241
|
+
ellipsis: d && h ? {
|
|
242
242
|
tooltip: {
|
|
243
243
|
title: n,
|
|
244
244
|
overlayClassName: "snmt-tooltip"
|
|
@@ -255,19 +255,19 @@ const { Title: z2, Text: J2 } = G1, q2 = {
|
|
|
255
255
|
disabled: s = !1,
|
|
256
256
|
disableUncheck: o = !1
|
|
257
257
|
}) => {
|
|
258
|
-
const [c,
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
const [c, d] = O(i), [l, a] = O(e);
|
|
259
|
+
Z(() => {
|
|
260
|
+
d(i), a(e);
|
|
261
261
|
}, [i, e]);
|
|
262
|
-
const { theme:
|
|
262
|
+
const { theme: h } = r1(D1);
|
|
263
263
|
return /* @__PURE__ */ r(
|
|
264
264
|
x2,
|
|
265
265
|
{
|
|
266
|
-
className: `snmt-checkbox snmt-checkbox-${
|
|
266
|
+
className: `snmt-checkbox snmt-checkbox-${h}`,
|
|
267
267
|
checked: c,
|
|
268
|
-
indeterminate:
|
|
269
|
-
onChange: (
|
|
270
|
-
o && c || (
|
|
268
|
+
indeterminate: l,
|
|
269
|
+
onChange: (u) => {
|
|
270
|
+
o && c || (a(!1), d(u.target.checked), n && n(u));
|
|
271
271
|
},
|
|
272
272
|
disabled: s,
|
|
273
273
|
children: t && /* @__PURE__ */ r(
|
|
@@ -282,7 +282,7 @@ const { Title: z2, Text: J2 } = G1, q2 = {
|
|
|
282
282
|
);
|
|
283
283
|
};
|
|
284
284
|
var L = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(L || {});
|
|
285
|
-
const l2 =
|
|
285
|
+
const l2 = g1({
|
|
286
286
|
locale: "en",
|
|
287
287
|
theme: "light"
|
|
288
288
|
});
|
|
@@ -320,7 +320,7 @@ const e5 = ({
|
|
|
320
320
|
color: t = L.GREY_DARK_5,
|
|
321
321
|
className: n,
|
|
322
322
|
onClick: s
|
|
323
|
-
}) => /* @__PURE__ */
|
|
323
|
+
}) => /* @__PURE__ */ C(
|
|
324
324
|
"svg",
|
|
325
325
|
{
|
|
326
326
|
width: i,
|
|
@@ -360,7 +360,7 @@ const e5 = ({
|
|
|
360
360
|
color: t = "#001E52",
|
|
361
361
|
className: n,
|
|
362
362
|
onClick: s
|
|
363
|
-
}) => /* @__PURE__ */
|
|
363
|
+
}) => /* @__PURE__ */ C(
|
|
364
364
|
"svg",
|
|
365
365
|
{
|
|
366
366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -395,7 +395,7 @@ const e5 = ({
|
|
|
395
395
|
color: t = L.GREY_DARK_5,
|
|
396
396
|
className: n,
|
|
397
397
|
onClick: s
|
|
398
|
-
}) => /* @__PURE__ */
|
|
398
|
+
}) => /* @__PURE__ */ C(
|
|
399
399
|
"svg",
|
|
400
400
|
{
|
|
401
401
|
width: i,
|
|
@@ -406,7 +406,7 @@ const e5 = ({
|
|
|
406
406
|
fill: "none",
|
|
407
407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
408
408
|
children: [
|
|
409
|
-
/* @__PURE__ */ r("g", {
|
|
409
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
|
|
410
410
|
"path",
|
|
411
411
|
{
|
|
412
412
|
d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
|
|
@@ -446,7 +446,7 @@ const e5 = ({
|
|
|
446
446
|
color: t = L.GREY_DARK_5,
|
|
447
447
|
className: n,
|
|
448
448
|
onClick: s
|
|
449
|
-
}) => /* @__PURE__ */
|
|
449
|
+
}) => /* @__PURE__ */ C(
|
|
450
450
|
"svg",
|
|
451
451
|
{
|
|
452
452
|
width: i,
|
|
@@ -457,7 +457,7 @@ const e5 = ({
|
|
|
457
457
|
fill: "none",
|
|
458
458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
459
459
|
children: [
|
|
460
|
-
/* @__PURE__ */ r("g", {
|
|
460
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
|
|
461
461
|
"path",
|
|
462
462
|
{
|
|
463
463
|
d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
|
|
@@ -497,7 +497,7 @@ const e5 = ({
|
|
|
497
497
|
color: t = L.GREY_DARK_5,
|
|
498
498
|
className: n,
|
|
499
499
|
onClick: s
|
|
500
|
-
}) => /* @__PURE__ */
|
|
500
|
+
}) => /* @__PURE__ */ C(
|
|
501
501
|
"svg",
|
|
502
502
|
{
|
|
503
503
|
width: i,
|
|
@@ -616,7 +616,7 @@ const e5 = ({
|
|
|
616
616
|
color: t = L.GREY_DARK_5,
|
|
617
617
|
className: n,
|
|
618
618
|
onClick: s
|
|
619
|
-
}) => /* @__PURE__ */
|
|
619
|
+
}) => /* @__PURE__ */ C(
|
|
620
620
|
"svg",
|
|
621
621
|
{
|
|
622
622
|
width: i,
|
|
@@ -671,13 +671,13 @@ const e5 = ({
|
|
|
671
671
|
)
|
|
672
672
|
]
|
|
673
673
|
}
|
|
674
|
-
),
|
|
674
|
+
), g5 = ({
|
|
675
675
|
width: i = 20,
|
|
676
676
|
height: e = 20,
|
|
677
677
|
color: t = L.GREY_DARK_5,
|
|
678
678
|
className: n,
|
|
679
679
|
onClick: s
|
|
680
|
-
}) => /* @__PURE__ */
|
|
680
|
+
}) => /* @__PURE__ */ C(
|
|
681
681
|
"svg",
|
|
682
682
|
{
|
|
683
683
|
width: i,
|
|
@@ -718,13 +718,13 @@ const e5 = ({
|
|
|
718
718
|
)
|
|
719
719
|
]
|
|
720
720
|
}
|
|
721
|
-
),
|
|
721
|
+
), C5 = ({
|
|
722
722
|
width: i = 20,
|
|
723
723
|
height: e = 20,
|
|
724
724
|
color: t = L.GREY_DARK_5,
|
|
725
725
|
className: n,
|
|
726
726
|
onClick: s
|
|
727
|
-
}) => /* @__PURE__ */
|
|
727
|
+
}) => /* @__PURE__ */ C(
|
|
728
728
|
"svg",
|
|
729
729
|
{
|
|
730
730
|
width: i,
|
|
@@ -764,7 +764,7 @@ const e5 = ({
|
|
|
764
764
|
color: t = L.GREY_DARK_5,
|
|
765
765
|
className: n,
|
|
766
766
|
onClick: s
|
|
767
|
-
}) => /* @__PURE__ */
|
|
767
|
+
}) => /* @__PURE__ */ C(
|
|
768
768
|
"svg",
|
|
769
769
|
{
|
|
770
770
|
width: i,
|
|
@@ -804,7 +804,7 @@ const e5 = ({
|
|
|
804
804
|
color: t = L.GREY_DARK_5,
|
|
805
805
|
className: n,
|
|
806
806
|
onClick: s
|
|
807
|
-
}) => /* @__PURE__ */
|
|
807
|
+
}) => /* @__PURE__ */ C(
|
|
808
808
|
"svg",
|
|
809
809
|
{
|
|
810
810
|
width: i,
|
|
@@ -851,7 +851,7 @@ const e5 = ({
|
|
|
851
851
|
color: t = L.GREY_DARK_5,
|
|
852
852
|
className: n,
|
|
853
853
|
onClick: s
|
|
854
|
-
}) => /* @__PURE__ */
|
|
854
|
+
}) => /* @__PURE__ */ C(
|
|
855
855
|
"svg",
|
|
856
856
|
{
|
|
857
857
|
width: i,
|
|
@@ -898,7 +898,7 @@ const e5 = ({
|
|
|
898
898
|
color: t = L.GREY_DARK_5,
|
|
899
899
|
className: n,
|
|
900
900
|
onClick: s
|
|
901
|
-
}) => /* @__PURE__ */
|
|
901
|
+
}) => /* @__PURE__ */ C(
|
|
902
902
|
"svg",
|
|
903
903
|
{
|
|
904
904
|
width: i,
|
|
@@ -945,7 +945,7 @@ const e5 = ({
|
|
|
945
945
|
color: t = L.GREY_DARK_5,
|
|
946
946
|
className: n,
|
|
947
947
|
onClick: s
|
|
948
|
-
}) => /* @__PURE__ */
|
|
948
|
+
}) => /* @__PURE__ */ C(
|
|
949
949
|
"svg",
|
|
950
950
|
{
|
|
951
951
|
width: i,
|
|
@@ -985,7 +985,7 @@ const e5 = ({
|
|
|
985
985
|
color: t = L.GREY_DARK_5,
|
|
986
986
|
className: n,
|
|
987
987
|
onClick: s
|
|
988
|
-
}) => /* @__PURE__ */
|
|
988
|
+
}) => /* @__PURE__ */ C(
|
|
989
989
|
"svg",
|
|
990
990
|
{
|
|
991
991
|
width: i,
|
|
@@ -1018,7 +1018,7 @@ const e5 = ({
|
|
|
1018
1018
|
color: t = L.GREY_DARK_5,
|
|
1019
1019
|
className: n,
|
|
1020
1020
|
onClick: s
|
|
1021
|
-
}) => /* @__PURE__ */
|
|
1021
|
+
}) => /* @__PURE__ */ C(
|
|
1022
1022
|
"svg",
|
|
1023
1023
|
{
|
|
1024
1024
|
width: i,
|
|
@@ -1051,7 +1051,7 @@ const e5 = ({
|
|
|
1051
1051
|
color: t = L.GREY_DARK_5,
|
|
1052
1052
|
className: n,
|
|
1053
1053
|
onClick: s
|
|
1054
|
-
}) => /* @__PURE__ */
|
|
1054
|
+
}) => /* @__PURE__ */ C(
|
|
1055
1055
|
"svg",
|
|
1056
1056
|
{
|
|
1057
1057
|
width: i,
|
|
@@ -1084,7 +1084,7 @@ const e5 = ({
|
|
|
1084
1084
|
color: t = L.GREY_DARK_5,
|
|
1085
1085
|
className: n,
|
|
1086
1086
|
onClick: s
|
|
1087
|
-
}) => /* @__PURE__ */
|
|
1087
|
+
}) => /* @__PURE__ */ C(
|
|
1088
1088
|
"svg",
|
|
1089
1089
|
{
|
|
1090
1090
|
width: i,
|
|
@@ -1117,7 +1117,7 @@ const e5 = ({
|
|
|
1117
1117
|
color: t = L.GREY_DARK_5,
|
|
1118
1118
|
className: n,
|
|
1119
1119
|
onClick: s
|
|
1120
|
-
}) => /* @__PURE__ */
|
|
1120
|
+
}) => /* @__PURE__ */ C(
|
|
1121
1121
|
"svg",
|
|
1122
1122
|
{
|
|
1123
1123
|
width: i,
|
|
@@ -1157,7 +1157,7 @@ const e5 = ({
|
|
|
1157
1157
|
color: t = L.GREY_DARK_5,
|
|
1158
1158
|
className: n,
|
|
1159
1159
|
onClick: s
|
|
1160
|
-
}) => /* @__PURE__ */
|
|
1160
|
+
}) => /* @__PURE__ */ C(
|
|
1161
1161
|
"svg",
|
|
1162
1162
|
{
|
|
1163
1163
|
width: i,
|
|
@@ -1190,7 +1190,7 @@ const e5 = ({
|
|
|
1190
1190
|
color: t = L.GREY_DARK_5,
|
|
1191
1191
|
className: n,
|
|
1192
1192
|
onClick: s
|
|
1193
|
-
}) => /* @__PURE__ */
|
|
1193
|
+
}) => /* @__PURE__ */ C(
|
|
1194
1194
|
"svg",
|
|
1195
1195
|
{
|
|
1196
1196
|
width: i,
|
|
@@ -1223,7 +1223,7 @@ const e5 = ({
|
|
|
1223
1223
|
color: t = "#070739",
|
|
1224
1224
|
className: n,
|
|
1225
1225
|
onClick: s
|
|
1226
|
-
}) => /* @__PURE__ */
|
|
1226
|
+
}) => /* @__PURE__ */ C(
|
|
1227
1227
|
"svg",
|
|
1228
1228
|
{
|
|
1229
1229
|
width: i,
|
|
@@ -1253,7 +1253,7 @@ const e5 = ({
|
|
|
1253
1253
|
color: t = "#070739",
|
|
1254
1254
|
className: n,
|
|
1255
1255
|
onClick: s
|
|
1256
|
-
}) => /* @__PURE__ */
|
|
1256
|
+
}) => /* @__PURE__ */ C(
|
|
1257
1257
|
"svg",
|
|
1258
1258
|
{
|
|
1259
1259
|
width: i,
|
|
@@ -1317,7 +1317,7 @@ const e5 = ({
|
|
|
1317
1317
|
color: t = "#F2F2F7",
|
|
1318
1318
|
className: n,
|
|
1319
1319
|
onClick: s
|
|
1320
|
-
}) => /* @__PURE__ */
|
|
1320
|
+
}) => /* @__PURE__ */ C(
|
|
1321
1321
|
"svg",
|
|
1322
1322
|
{
|
|
1323
1323
|
width: i,
|
|
@@ -1346,7 +1346,7 @@ const e5 = ({
|
|
|
1346
1346
|
color: t = "#004ED7",
|
|
1347
1347
|
className: n,
|
|
1348
1348
|
onClick: s
|
|
1349
|
-
}) => /* @__PURE__ */
|
|
1349
|
+
}) => /* @__PURE__ */ C(
|
|
1350
1350
|
"svg",
|
|
1351
1351
|
{
|
|
1352
1352
|
width: i,
|
|
@@ -1375,7 +1375,7 @@ const e5 = ({
|
|
|
1375
1375
|
color: t = "#001E52",
|
|
1376
1376
|
className: n,
|
|
1377
1377
|
onClick: s
|
|
1378
|
-
}) => /* @__PURE__ */
|
|
1378
|
+
}) => /* @__PURE__ */ C(
|
|
1379
1379
|
"svg",
|
|
1380
1380
|
{
|
|
1381
1381
|
width: i,
|
|
@@ -1404,7 +1404,7 @@ const e5 = ({
|
|
|
1404
1404
|
color: t = "#001E52",
|
|
1405
1405
|
className: n,
|
|
1406
1406
|
onClick: s
|
|
1407
|
-
}) => /* @__PURE__ */
|
|
1407
|
+
}) => /* @__PURE__ */ C(
|
|
1408
1408
|
"svg",
|
|
1409
1409
|
{
|
|
1410
1410
|
width: i,
|
|
@@ -1441,7 +1441,7 @@ const e5 = ({
|
|
|
1441
1441
|
height: t = 20,
|
|
1442
1442
|
width: n = 20,
|
|
1443
1443
|
onClick: s
|
|
1444
|
-
}) => /* @__PURE__ */
|
|
1444
|
+
}) => /* @__PURE__ */ C(
|
|
1445
1445
|
"svg",
|
|
1446
1446
|
{
|
|
1447
1447
|
width: n,
|
|
@@ -1577,7 +1577,7 @@ const e5 = ({
|
|
|
1577
1577
|
height: t = 20,
|
|
1578
1578
|
width: n = 20,
|
|
1579
1579
|
onClick: s
|
|
1580
|
-
}) => /* @__PURE__ */
|
|
1580
|
+
}) => /* @__PURE__ */ C(
|
|
1581
1581
|
"svg",
|
|
1582
1582
|
{
|
|
1583
1583
|
width: n,
|
|
@@ -1610,7 +1610,7 @@ const e5 = ({
|
|
|
1610
1610
|
height: t = 24,
|
|
1611
1611
|
width: n = 24,
|
|
1612
1612
|
onClick: s
|
|
1613
|
-
}) => /* @__PURE__ */
|
|
1613
|
+
}) => /* @__PURE__ */ C(
|
|
1614
1614
|
"svg",
|
|
1615
1615
|
{
|
|
1616
1616
|
width: n,
|
|
@@ -1676,7 +1676,7 @@ const e5 = ({
|
|
|
1676
1676
|
height: t = 24,
|
|
1677
1677
|
width: n = 24,
|
|
1678
1678
|
onClick: s
|
|
1679
|
-
}) => /* @__PURE__ */
|
|
1679
|
+
}) => /* @__PURE__ */ C(
|
|
1680
1680
|
"svg",
|
|
1681
1681
|
{
|
|
1682
1682
|
width: n,
|
|
@@ -1735,7 +1735,7 @@ const e5 = ({
|
|
|
1735
1735
|
height: t = 24,
|
|
1736
1736
|
width: n = 24,
|
|
1737
1737
|
onClick: s
|
|
1738
|
-
}) => /* @__PURE__ */
|
|
1738
|
+
}) => /* @__PURE__ */ C(
|
|
1739
1739
|
"svg",
|
|
1740
1740
|
{
|
|
1741
1741
|
width: n,
|
|
@@ -1772,7 +1772,7 @@ const e5 = ({
|
|
|
1772
1772
|
height: t = 14,
|
|
1773
1773
|
width: n = 14,
|
|
1774
1774
|
onClick: s
|
|
1775
|
-
}) => /* @__PURE__ */
|
|
1775
|
+
}) => /* @__PURE__ */ C(
|
|
1776
1776
|
"svg",
|
|
1777
1777
|
{
|
|
1778
1778
|
className: i,
|
|
@@ -1836,7 +1836,7 @@ const e5 = ({
|
|
|
1836
1836
|
height: t = 24,
|
|
1837
1837
|
width: n = 24,
|
|
1838
1838
|
onClick: s
|
|
1839
|
-
}) => /* @__PURE__ */
|
|
1839
|
+
}) => /* @__PURE__ */ C(
|
|
1840
1840
|
"svg",
|
|
1841
1841
|
{
|
|
1842
1842
|
onClick: s,
|
|
@@ -1888,7 +1888,7 @@ const e5 = ({
|
|
|
1888
1888
|
height: t = 24,
|
|
1889
1889
|
width: n = 24,
|
|
1890
1890
|
onClick: s
|
|
1891
|
-
}) => /* @__PURE__ */
|
|
1891
|
+
}) => /* @__PURE__ */ C(
|
|
1892
1892
|
"svg",
|
|
1893
1893
|
{
|
|
1894
1894
|
onClick: s,
|
|
@@ -1925,7 +1925,7 @@ const e5 = ({
|
|
|
1925
1925
|
height: t = 37,
|
|
1926
1926
|
width: n = 36,
|
|
1927
1927
|
onClick: s
|
|
1928
|
-
}) => /* @__PURE__ */
|
|
1928
|
+
}) => /* @__PURE__ */ C(
|
|
1929
1929
|
"svg",
|
|
1930
1930
|
{
|
|
1931
1931
|
onClick: s,
|
|
@@ -1990,7 +1990,7 @@ const e5 = ({
|
|
|
1990
1990
|
height: t = 24,
|
|
1991
1991
|
width: n = 24,
|
|
1992
1992
|
onClick: s
|
|
1993
|
-
}) => /* @__PURE__ */
|
|
1993
|
+
}) => /* @__PURE__ */ C(
|
|
1994
1994
|
"svg",
|
|
1995
1995
|
{
|
|
1996
1996
|
onClick: s,
|
|
@@ -2029,7 +2029,7 @@ const e5 = ({
|
|
|
2029
2029
|
height: t = 20,
|
|
2030
2030
|
width: n = 20,
|
|
2031
2031
|
onClick: s
|
|
2032
|
-
}) => /* @__PURE__ */
|
|
2032
|
+
}) => /* @__PURE__ */ C(
|
|
2033
2033
|
"svg",
|
|
2034
2034
|
{
|
|
2035
2035
|
onClick: s,
|
|
@@ -2062,7 +2062,7 @@ const e5 = ({
|
|
|
2062
2062
|
height: t = 24,
|
|
2063
2063
|
width: n = 24,
|
|
2064
2064
|
onClick: s
|
|
2065
|
-
}) => /* @__PURE__ */
|
|
2065
|
+
}) => /* @__PURE__ */ C(
|
|
2066
2066
|
"svg",
|
|
2067
2067
|
{
|
|
2068
2068
|
onClick: s,
|
|
@@ -2131,7 +2131,7 @@ const e5 = ({
|
|
|
2131
2131
|
height: t = 24,
|
|
2132
2132
|
width: n = 24,
|
|
2133
2133
|
onClick: s
|
|
2134
|
-
}) => /* @__PURE__ */
|
|
2134
|
+
}) => /* @__PURE__ */ C(
|
|
2135
2135
|
"svg",
|
|
2136
2136
|
{
|
|
2137
2137
|
onClick: s,
|
|
@@ -2188,7 +2188,7 @@ const e5 = ({
|
|
|
2188
2188
|
height: t = 24,
|
|
2189
2189
|
width: n = 24,
|
|
2190
2190
|
onClick: s
|
|
2191
|
-
}) => /* @__PURE__ */
|
|
2191
|
+
}) => /* @__PURE__ */ C(
|
|
2192
2192
|
"svg",
|
|
2193
2193
|
{
|
|
2194
2194
|
onClick: s,
|
|
@@ -2264,7 +2264,7 @@ const e5 = ({
|
|
|
2264
2264
|
height: t = 20,
|
|
2265
2265
|
width: n = 20,
|
|
2266
2266
|
onClick: s
|
|
2267
|
-
}) => /* @__PURE__ */
|
|
2267
|
+
}) => /* @__PURE__ */ C(
|
|
2268
2268
|
"svg",
|
|
2269
2269
|
{
|
|
2270
2270
|
onClick: s,
|
|
@@ -2330,7 +2330,7 @@ const e5 = ({
|
|
|
2330
2330
|
version: "1.1",
|
|
2331
2331
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2332
2332
|
viewBox: "0 0 489.698 489.698",
|
|
2333
|
-
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */
|
|
2333
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ C("g", { children: [
|
|
2334
2334
|
/* @__PURE__ */ r(
|
|
2335
2335
|
"path",
|
|
2336
2336
|
{
|
|
@@ -2381,7 +2381,7 @@ const e5 = ({
|
|
|
2381
2381
|
color: t = "#131314",
|
|
2382
2382
|
className: n,
|
|
2383
2383
|
onClick: s
|
|
2384
|
-
}) => /* @__PURE__ */
|
|
2384
|
+
}) => /* @__PURE__ */ C(
|
|
2385
2385
|
"svg",
|
|
2386
2386
|
{
|
|
2387
2387
|
width: i,
|
|
@@ -2414,7 +2414,7 @@ const e5 = ({
|
|
|
2414
2414
|
color: t = L.GREY_DARK_5,
|
|
2415
2415
|
className: n,
|
|
2416
2416
|
onClick: s
|
|
2417
|
-
}) => /* @__PURE__ */
|
|
2417
|
+
}) => /* @__PURE__ */ C(
|
|
2418
2418
|
"svg",
|
|
2419
2419
|
{
|
|
2420
2420
|
width: i,
|
|
@@ -2447,7 +2447,7 @@ const e5 = ({
|
|
|
2447
2447
|
color: t = L.GREY_DARK_2,
|
|
2448
2448
|
className: n,
|
|
2449
2449
|
onClick: s
|
|
2450
|
-
}) => /* @__PURE__ */
|
|
2450
|
+
}) => /* @__PURE__ */ C(
|
|
2451
2451
|
"svg",
|
|
2452
2452
|
{
|
|
2453
2453
|
width: i,
|
|
@@ -2544,195 +2544,189 @@ const e5 = ({
|
|
|
2544
2544
|
disabled: o = !1,
|
|
2545
2545
|
onClick: c
|
|
2546
2546
|
}) => {
|
|
2547
|
-
const
|
|
2548
|
-
return
|
|
2549
|
-
if (s) {
|
|
2550
|
-
h && !o && C(`${s} clickable`);
|
|
2551
|
-
return;
|
|
2552
|
-
}
|
|
2553
|
-
h && !o && C("clickable");
|
|
2554
|
-
}, [h, s, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
2547
|
+
const { theme: d } = r1(l2), l = o ? d && d === "dark" ? L.GREY_LIGHT_4 : L.GREY_DARK_1 : n, a = o ? void 0 : c, h = c && !o ? `${s || ""} clickable` : s;
|
|
2548
|
+
return /* @__PURE__ */ r(i1, { children: (() => {
|
|
2555
2549
|
switch (i) {
|
|
2556
2550
|
case "nextIcon":
|
|
2557
|
-
return O5({ width: e, height: t, color: l, className:
|
|
2551
|
+
return O5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2558
2552
|
case "prevIcon":
|
|
2559
|
-
return S5({ width: e, height: t, color: l, className:
|
|
2553
|
+
return S5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2560
2554
|
case "arrowDown":
|
|
2561
|
-
return e5({ width: e, height: t, color: l, className:
|
|
2555
|
+
return e5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2562
2556
|
case "info":
|
|
2563
|
-
return t5({ width: e, height: t, color: l, className:
|
|
2557
|
+
return t5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2564
2558
|
case "arrowRight":
|
|
2565
|
-
return i5({ width: e, height: t, color: l, className:
|
|
2559
|
+
return i5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2566
2560
|
case "calendar":
|
|
2567
|
-
return a5({ width: e, height: t, color: l, className:
|
|
2561
|
+
return a5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2568
2562
|
case "check":
|
|
2569
|
-
return l5({ width: e, height: t, color: l, className:
|
|
2563
|
+
return l5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2570
2564
|
case "cancel":
|
|
2571
|
-
return h5({ width: e, height: t, color: l, className:
|
|
2565
|
+
return h5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2572
2566
|
case "add":
|
|
2573
|
-
return c5({ width: e, height: t, color: l, className:
|
|
2567
|
+
return c5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2574
2568
|
case "list":
|
|
2575
|
-
return d5({ width: e, height: t, color: l, className:
|
|
2569
|
+
return d5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2576
2570
|
case "dragAndDrop":
|
|
2577
|
-
return
|
|
2571
|
+
return g5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2578
2572
|
case "filter":
|
|
2579
|
-
return
|
|
2573
|
+
return C5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2580
2574
|
case "attention":
|
|
2581
|
-
return u5({ width: e, height: t, color: l, className:
|
|
2575
|
+
return u5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2582
2576
|
case "users":
|
|
2583
|
-
return f5({ width: e, height: t, color: l, className:
|
|
2577
|
+
return f5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2584
2578
|
case "mySkillsMatrix":
|
|
2585
2579
|
return p5({
|
|
2586
2580
|
width: e,
|
|
2587
2581
|
height: t,
|
|
2588
2582
|
color: l,
|
|
2589
|
-
className:
|
|
2590
|
-
onClick:
|
|
2583
|
+
className: h,
|
|
2584
|
+
onClick: a
|
|
2591
2585
|
});
|
|
2592
2586
|
case "skills":
|
|
2593
|
-
return m5({ width: e, height: t, color: l, className:
|
|
2587
|
+
return m5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2594
2588
|
case "skillsMatrices":
|
|
2595
2589
|
return w5({
|
|
2596
2590
|
width: e,
|
|
2597
2591
|
height: t,
|
|
2598
2592
|
color: l,
|
|
2599
|
-
className:
|
|
2600
|
-
onClick:
|
|
2593
|
+
className: h,
|
|
2594
|
+
onClick: a
|
|
2601
2595
|
});
|
|
2602
2596
|
case "history":
|
|
2603
|
-
return L5({ width: e, height: t, color: l, className:
|
|
2597
|
+
return L5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2604
2598
|
case "logOut":
|
|
2605
|
-
return k5({ width: e, height: t, color: l, className:
|
|
2599
|
+
return k5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2606
2600
|
case "settings":
|
|
2607
|
-
return v5({ width: e, height: t, color: l, className:
|
|
2601
|
+
return v5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2608
2602
|
case "trash":
|
|
2609
|
-
return N5({ width: e, height: t, color: l, className:
|
|
2603
|
+
return N5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2610
2604
|
case "settings2":
|
|
2611
|
-
return R5({ width: e, height: t, color: l, className:
|
|
2605
|
+
return R5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2612
2606
|
case "checkCircle":
|
|
2613
|
-
return x5({ width: e, height: t, color: l, className:
|
|
2607
|
+
return x5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2614
2608
|
case "cancelCircle":
|
|
2615
|
-
return _5({ width: e, height: t, color: l, className:
|
|
2609
|
+
return _5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2616
2610
|
case "visibilityIcon":
|
|
2617
2611
|
return M5({
|
|
2618
2612
|
width: e,
|
|
2619
2613
|
height: t,
|
|
2620
2614
|
color: l,
|
|
2621
|
-
className:
|
|
2622
|
-
onClick:
|
|
2615
|
+
className: h,
|
|
2616
|
+
onClick: a
|
|
2623
2617
|
});
|
|
2624
2618
|
case "visibilityOffIcon":
|
|
2625
2619
|
return b5({
|
|
2626
2620
|
width: e,
|
|
2627
2621
|
height: t,
|
|
2628
2622
|
color: l,
|
|
2629
|
-
className:
|
|
2630
|
-
onClick:
|
|
2623
|
+
className: h,
|
|
2624
|
+
onClick: a
|
|
2631
2625
|
});
|
|
2632
2626
|
case "selectArrowIcon":
|
|
2633
2627
|
return y5({
|
|
2634
2628
|
width: e,
|
|
2635
2629
|
height: t,
|
|
2636
2630
|
color: l,
|
|
2637
|
-
className:
|
|
2638
|
-
onClick:
|
|
2631
|
+
className: h,
|
|
2632
|
+
onClick: a
|
|
2639
2633
|
});
|
|
2640
2634
|
case "expandArrowIcon":
|
|
2641
2635
|
return H5({
|
|
2642
2636
|
width: e,
|
|
2643
2637
|
height: t,
|
|
2644
2638
|
color: l,
|
|
2645
|
-
className:
|
|
2646
|
-
onClick:
|
|
2639
|
+
className: h,
|
|
2640
|
+
onClick: a
|
|
2647
2641
|
});
|
|
2648
2642
|
case "expandActiveArrowIcon":
|
|
2649
2643
|
return E5({
|
|
2650
2644
|
width: e,
|
|
2651
2645
|
height: t,
|
|
2652
2646
|
color: l,
|
|
2653
|
-
className:
|
|
2654
|
-
onClick:
|
|
2647
|
+
className: h,
|
|
2648
|
+
onClick: a
|
|
2655
2649
|
});
|
|
2656
2650
|
case "sortUp":
|
|
2657
|
-
return V5({ width: e, height: t, color: l, className:
|
|
2651
|
+
return V5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2658
2652
|
case "sortDown":
|
|
2659
|
-
return A5({ width: e, height: t, color: l, className:
|
|
2653
|
+
return A5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2660
2654
|
case "search":
|
|
2661
|
-
return I5({ width: e, height: t, color: l, className:
|
|
2655
|
+
return I5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2662
2656
|
case "arrowUpFilled":
|
|
2663
|
-
return G5({ width: e, height: t, color: l, className:
|
|
2657
|
+
return G5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2664
2658
|
case "arrowDownFilled":
|
|
2665
|
-
return Z5({ width: e, height: t, color: l, className:
|
|
2659
|
+
return Z5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2666
2660
|
case "arrow2Up":
|
|
2667
|
-
return n5({ width: e, height: t, color: l, className:
|
|
2661
|
+
return n5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2668
2662
|
case "arrow2Right":
|
|
2669
|
-
return s5({ width: e, height: t, color: l, className:
|
|
2663
|
+
return s5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2670
2664
|
case "arrow2Down":
|
|
2671
|
-
return r5({ width: e, height: t, color: l, className:
|
|
2665
|
+
return r5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2672
2666
|
case "arrow2Left":
|
|
2673
|
-
return o5({ width: e, height: t, color: l, className:
|
|
2667
|
+
return o5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2674
2668
|
case "link":
|
|
2675
|
-
return D5({ width: e, height: t, color: l, className:
|
|
2669
|
+
return D5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2676
2670
|
case "telegram":
|
|
2677
|
-
return K5({ width: e, height: t, color: l, className:
|
|
2671
|
+
return K5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2678
2672
|
case "mail":
|
|
2679
|
-
return Y5({ width: e, height: t, color: l, className:
|
|
2673
|
+
return Y5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2680
2674
|
case "github":
|
|
2681
|
-
return T5({ width: e, height: t, color: l, className:
|
|
2675
|
+
return T5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2682
2676
|
case "linkedIn":
|
|
2683
|
-
return B5({ width: e, height: t, color: l, className:
|
|
2677
|
+
return B5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2684
2678
|
case "emptyStateIcon":
|
|
2685
|
-
return P5({ width: e, height: t, color: l, className:
|
|
2679
|
+
return P5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2686
2680
|
case "filtersIcon":
|
|
2687
|
-
return j5({ width: e, height: t, color: l, className:
|
|
2681
|
+
return j5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2688
2682
|
case "dotMenuIcon":
|
|
2689
|
-
return $5({ width: e, height: t, color: l, className:
|
|
2683
|
+
return $5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2690
2684
|
case "plusCircle":
|
|
2691
|
-
return F5({ width: e, height: t, color: l, className:
|
|
2685
|
+
return F5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2692
2686
|
case "warning":
|
|
2693
|
-
return W5({ width: e, height: t, color: l, className:
|
|
2687
|
+
return W5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2694
2688
|
case "back":
|
|
2695
|
-
return U5({ width: e, height: t, color: l, className:
|
|
2689
|
+
return U5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2696
2690
|
case "bell":
|
|
2697
|
-
return z5({ width: e, height: t, color: l, className:
|
|
2691
|
+
return z5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2698
2692
|
case "copy":
|
|
2699
|
-
return J5({ width: e, height: t, color: l, className:
|
|
2693
|
+
return J5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2700
2694
|
case "contract":
|
|
2701
|
-
return q5({ width: e, height: t, color: l, className:
|
|
2695
|
+
return q5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2702
2696
|
case "resourceManager":
|
|
2703
|
-
return Q5({ width: e, height: t, color: l, className:
|
|
2697
|
+
return Q5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2704
2698
|
case "image":
|
|
2705
|
-
return X5({ width: e, height: t, color: l, className:
|
|
2699
|
+
return X5({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2706
2700
|
case "edit":
|
|
2707
|
-
return ee({ width: e, height: t, color: l, className:
|
|
2701
|
+
return ee({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2708
2702
|
case "filledArrowRight":
|
|
2709
|
-
return te({ width: e, height: t, color: l, className:
|
|
2703
|
+
return te({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2710
2704
|
case "burgerMenu":
|
|
2711
|
-
return ie({ width: e, height: t, color: l, className:
|
|
2705
|
+
return ie({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2712
2706
|
case "refresh":
|
|
2713
|
-
return ne({ width: e, height: t, color: l, className:
|
|
2707
|
+
return ne({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2714
2708
|
case "projects":
|
|
2715
|
-
return se({ width: e, height: t, color: l, className:
|
|
2709
|
+
return se({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2716
2710
|
case "user":
|
|
2717
|
-
return oe({ width: e, height: t, color: l, className:
|
|
2711
|
+
return oe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2718
2712
|
case "exit":
|
|
2719
|
-
return re({ width: e, height: t, color: l, className:
|
|
2713
|
+
return re({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2720
2714
|
case "openPointCircle":
|
|
2721
|
-
return ae({ width: e, height: t, color: l, className:
|
|
2715
|
+
return ae({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2722
2716
|
case "community":
|
|
2723
|
-
return le({ width: e, height: t, color: l, className:
|
|
2717
|
+
return le({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2724
2718
|
case "docs":
|
|
2725
|
-
return he({ width: e, height: t, color: l, className:
|
|
2719
|
+
return he({ width: e, height: t, color: l, className: h, onClick: a });
|
|
2726
2720
|
default:
|
|
2727
2721
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
2728
2722
|
}
|
|
2729
2723
|
})() });
|
|
2730
|
-
}, { Title: ce, Text: de } = G1,
|
|
2724
|
+
}, { Title: ce, Text: de } = G1, ge = {
|
|
2731
2725
|
h1: 1,
|
|
2732
2726
|
h2: 2,
|
|
2733
2727
|
h3: 3,
|
|
2734
2728
|
h4: 4
|
|
2735
|
-
},
|
|
2729
|
+
}, Ce = d1(
|
|
2736
2730
|
({
|
|
2737
2731
|
align: i = "inherit",
|
|
2738
2732
|
variant: e = "body1",
|
|
@@ -2742,43 +2736,43 @@ const e5 = ({
|
|
|
2742
2736
|
collapsed: o,
|
|
2743
2737
|
whiteSpace: c = "normal",
|
|
2744
2738
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2745
|
-
trim:
|
|
2746
|
-
},
|
|
2747
|
-
const
|
|
2748
|
-
k1(
|
|
2749
|
-
const [
|
|
2750
|
-
|
|
2739
|
+
trim: d = !1
|
|
2740
|
+
}, l) => {
|
|
2741
|
+
const a = $(null);
|
|
2742
|
+
k1(l, () => a.current);
|
|
2743
|
+
const [h, u] = O(!1);
|
|
2744
|
+
Z(() => {
|
|
2751
2745
|
var v;
|
|
2752
|
-
if (!
|
|
2746
|
+
if (!d) return;
|
|
2753
2747
|
const m = () => {
|
|
2754
|
-
|
|
2748
|
+
a.current && u(a.current.scrollWidth > a.current.clientWidth);
|
|
2755
2749
|
};
|
|
2756
2750
|
m();
|
|
2757
2751
|
const b = new ResizeObserver(m);
|
|
2758
|
-
return
|
|
2752
|
+
return a.current && b.observe(a.current), (v = a.current) != null && v.parentElement && b.observe(a.current.parentElement), () => {
|
|
2759
2753
|
b.disconnect();
|
|
2760
2754
|
};
|
|
2761
|
-
}, [
|
|
2755
|
+
}, [d]);
|
|
2762
2756
|
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2763
2757
|
let f = `snmt-typography snmt-typography-${e}`;
|
|
2764
2758
|
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), o && (f += " collapsed");
|
|
2765
2759
|
const w = {
|
|
2766
2760
|
className: f,
|
|
2767
|
-
style: { color: t, whiteSpace:
|
|
2761
|
+
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
2768
2762
|
onClick: s,
|
|
2769
|
-
ref:
|
|
2770
|
-
ellipsis:
|
|
2763
|
+
ref: a,
|
|
2764
|
+
ellipsis: d && h ? {
|
|
2771
2765
|
tooltip: {
|
|
2772
2766
|
title: n,
|
|
2773
2767
|
overlayClassName: "snmt-tooltip"
|
|
2774
2768
|
}
|
|
2775
2769
|
} : void 0
|
|
2776
2770
|
};
|
|
2777
|
-
return g ? /* @__PURE__ */ r(ce, { level:
|
|
2771
|
+
return g ? /* @__PURE__ */ r(ce, { level: ge[e], ...w, children: n }) : /* @__PURE__ */ r(de, { ...w, children: n });
|
|
2778
2772
|
}
|
|
2779
2773
|
);
|
|
2780
2774
|
var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(k || {});
|
|
2781
|
-
const h2 =
|
|
2775
|
+
const h2 = g1({
|
|
2782
2776
|
locale: "en",
|
|
2783
2777
|
theme: "light"
|
|
2784
2778
|
});
|
|
@@ -2816,7 +2810,7 @@ const ue = ({
|
|
|
2816
2810
|
color: t = k.GREY_DARK_5,
|
|
2817
2811
|
className: n,
|
|
2818
2812
|
onClick: s
|
|
2819
|
-
}) => /* @__PURE__ */
|
|
2813
|
+
}) => /* @__PURE__ */ C(
|
|
2820
2814
|
"svg",
|
|
2821
2815
|
{
|
|
2822
2816
|
width: i,
|
|
@@ -2856,7 +2850,7 @@ const ue = ({
|
|
|
2856
2850
|
color: t = "#001E52",
|
|
2857
2851
|
className: n,
|
|
2858
2852
|
onClick: s
|
|
2859
|
-
}) => /* @__PURE__ */
|
|
2853
|
+
}) => /* @__PURE__ */ C(
|
|
2860
2854
|
"svg",
|
|
2861
2855
|
{
|
|
2862
2856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2891,7 +2885,7 @@ const ue = ({
|
|
|
2891
2885
|
color: t = k.GREY_DARK_5,
|
|
2892
2886
|
className: n,
|
|
2893
2887
|
onClick: s
|
|
2894
|
-
}) => /* @__PURE__ */
|
|
2888
|
+
}) => /* @__PURE__ */ C(
|
|
2895
2889
|
"svg",
|
|
2896
2890
|
{
|
|
2897
2891
|
width: i,
|
|
@@ -2902,7 +2896,7 @@ const ue = ({
|
|
|
2902
2896
|
fill: "none",
|
|
2903
2897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2904
2898
|
children: [
|
|
2905
|
-
/* @__PURE__ */ r("g", {
|
|
2899
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2043)", children: /* @__PURE__ */ r(
|
|
2906
2900
|
"path",
|
|
2907
2901
|
{
|
|
2908
2902
|
d: "M5.96967 14.9697C5.67678 15.2626 5.67678 15.7373 5.96967 16.0302C6.26256 16.3231 6.73732 16.3231 7.03022 16.0302L12.4999 10.5605L17.9697 16.0302L18.0263 16.082C18.3209 16.3223 18.7556 16.3048 19.0302 16.0302C19.3048 15.7556 19.3223 15.3209 19.082 15.0263L19.0302 14.9697L13.0302 8.96967C12.7373 8.67678 12.2626 8.67678 11.9697 8.96967L5.96967 14.9697Z",
|
|
@@ -2942,7 +2936,7 @@ const ue = ({
|
|
|
2942
2936
|
color: t = k.GREY_DARK_5,
|
|
2943
2937
|
className: n,
|
|
2944
2938
|
onClick: s
|
|
2945
|
-
}) => /* @__PURE__ */
|
|
2939
|
+
}) => /* @__PURE__ */ C(
|
|
2946
2940
|
"svg",
|
|
2947
2941
|
{
|
|
2948
2942
|
width: i,
|
|
@@ -2953,7 +2947,7 @@ const ue = ({
|
|
|
2953
2947
|
fill: "none",
|
|
2954
2948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2955
2949
|
children: [
|
|
2956
|
-
/* @__PURE__ */ r("g", {
|
|
2950
|
+
/* @__PURE__ */ r("g", { clipPath: "url(#clip0_1_2039)", children: /* @__PURE__ */ r(
|
|
2957
2951
|
"path",
|
|
2958
2952
|
{
|
|
2959
2953
|
d: "M5.96967 10.0303C5.67678 9.73744 5.67678 9.26268 5.96967 8.96978C6.26256 8.67689 6.73732 8.67689 7.03022 8.96978L12.4999 14.4395L17.9697 8.96978L18.0263 8.91803C18.3209 8.67772 18.7556 8.69518 19.0302 8.96978C19.3048 9.24439 19.3223 9.67911 19.082 9.97369L19.0302 10.0303L13.0302 16.0303C12.7373 16.3232 12.2626 16.3232 11.9697 16.0303L5.96967 10.0303Z",
|
|
@@ -2993,7 +2987,7 @@ const ue = ({
|
|
|
2993
2987
|
color: t = k.GREY_DARK_5,
|
|
2994
2988
|
className: n,
|
|
2995
2989
|
onClick: s
|
|
2996
|
-
}) => /* @__PURE__ */
|
|
2990
|
+
}) => /* @__PURE__ */ C(
|
|
2997
2991
|
"svg",
|
|
2998
2992
|
{
|
|
2999
2993
|
width: i,
|
|
@@ -3112,7 +3106,7 @@ const ue = ({
|
|
|
3112
3106
|
color: t = k.GREY_DARK_5,
|
|
3113
3107
|
className: n,
|
|
3114
3108
|
onClick: s
|
|
3115
|
-
}) => /* @__PURE__ */
|
|
3109
|
+
}) => /* @__PURE__ */ C(
|
|
3116
3110
|
"svg",
|
|
3117
3111
|
{
|
|
3118
3112
|
width: i,
|
|
@@ -3173,7 +3167,7 @@ const ue = ({
|
|
|
3173
3167
|
color: t = k.GREY_DARK_5,
|
|
3174
3168
|
className: n,
|
|
3175
3169
|
onClick: s
|
|
3176
|
-
}) => /* @__PURE__ */
|
|
3170
|
+
}) => /* @__PURE__ */ C(
|
|
3177
3171
|
"svg",
|
|
3178
3172
|
{
|
|
3179
3173
|
width: i,
|
|
@@ -3220,7 +3214,7 @@ const ue = ({
|
|
|
3220
3214
|
color: t = k.GREY_DARK_5,
|
|
3221
3215
|
className: n,
|
|
3222
3216
|
onClick: s
|
|
3223
|
-
}) => /* @__PURE__ */
|
|
3217
|
+
}) => /* @__PURE__ */ C(
|
|
3224
3218
|
"svg",
|
|
3225
3219
|
{
|
|
3226
3220
|
width: i,
|
|
@@ -3260,7 +3254,7 @@ const ue = ({
|
|
|
3260
3254
|
color: t = k.GREY_DARK_5,
|
|
3261
3255
|
className: n,
|
|
3262
3256
|
onClick: s
|
|
3263
|
-
}) => /* @__PURE__ */
|
|
3257
|
+
}) => /* @__PURE__ */ C(
|
|
3264
3258
|
"svg",
|
|
3265
3259
|
{
|
|
3266
3260
|
width: i,
|
|
@@ -3300,7 +3294,7 @@ const ue = ({
|
|
|
3300
3294
|
color: t = k.GREY_DARK_5,
|
|
3301
3295
|
className: n,
|
|
3302
3296
|
onClick: s
|
|
3303
|
-
}) => /* @__PURE__ */
|
|
3297
|
+
}) => /* @__PURE__ */ C(
|
|
3304
3298
|
"svg",
|
|
3305
3299
|
{
|
|
3306
3300
|
width: i,
|
|
@@ -3347,7 +3341,7 @@ const ue = ({
|
|
|
3347
3341
|
color: t = k.GREY_DARK_5,
|
|
3348
3342
|
className: n,
|
|
3349
3343
|
onClick: s
|
|
3350
|
-
}) => /* @__PURE__ */
|
|
3344
|
+
}) => /* @__PURE__ */ C(
|
|
3351
3345
|
"svg",
|
|
3352
3346
|
{
|
|
3353
3347
|
width: i,
|
|
@@ -3394,7 +3388,7 @@ const ue = ({
|
|
|
3394
3388
|
color: t = k.GREY_DARK_5,
|
|
3395
3389
|
className: n,
|
|
3396
3390
|
onClick: s
|
|
3397
|
-
}) => /* @__PURE__ */
|
|
3391
|
+
}) => /* @__PURE__ */ C(
|
|
3398
3392
|
"svg",
|
|
3399
3393
|
{
|
|
3400
3394
|
width: i,
|
|
@@ -3441,7 +3435,7 @@ const ue = ({
|
|
|
3441
3435
|
color: t = k.GREY_DARK_5,
|
|
3442
3436
|
className: n,
|
|
3443
3437
|
onClick: s
|
|
3444
|
-
}) => /* @__PURE__ */
|
|
3438
|
+
}) => /* @__PURE__ */ C(
|
|
3445
3439
|
"svg",
|
|
3446
3440
|
{
|
|
3447
3441
|
width: i,
|
|
@@ -3481,7 +3475,7 @@ const ue = ({
|
|
|
3481
3475
|
color: t = k.GREY_DARK_5,
|
|
3482
3476
|
className: n,
|
|
3483
3477
|
onClick: s
|
|
3484
|
-
}) => /* @__PURE__ */
|
|
3478
|
+
}) => /* @__PURE__ */ C(
|
|
3485
3479
|
"svg",
|
|
3486
3480
|
{
|
|
3487
3481
|
width: i,
|
|
@@ -3514,7 +3508,7 @@ const ue = ({
|
|
|
3514
3508
|
color: t = k.GREY_DARK_5,
|
|
3515
3509
|
className: n,
|
|
3516
3510
|
onClick: s
|
|
3517
|
-
}) => /* @__PURE__ */
|
|
3511
|
+
}) => /* @__PURE__ */ C(
|
|
3518
3512
|
"svg",
|
|
3519
3513
|
{
|
|
3520
3514
|
width: i,
|
|
@@ -3547,7 +3541,7 @@ const ue = ({
|
|
|
3547
3541
|
color: t = k.GREY_DARK_5,
|
|
3548
3542
|
className: n,
|
|
3549
3543
|
onClick: s
|
|
3550
|
-
}) => /* @__PURE__ */
|
|
3544
|
+
}) => /* @__PURE__ */ C(
|
|
3551
3545
|
"svg",
|
|
3552
3546
|
{
|
|
3553
3547
|
width: i,
|
|
@@ -3580,7 +3574,7 @@ const ue = ({
|
|
|
3580
3574
|
color: t = k.GREY_DARK_5,
|
|
3581
3575
|
className: n,
|
|
3582
3576
|
onClick: s
|
|
3583
|
-
}) => /* @__PURE__ */
|
|
3577
|
+
}) => /* @__PURE__ */ C(
|
|
3584
3578
|
"svg",
|
|
3585
3579
|
{
|
|
3586
3580
|
width: i,
|
|
@@ -3613,7 +3607,7 @@ const ue = ({
|
|
|
3613
3607
|
color: t = k.GREY_DARK_5,
|
|
3614
3608
|
className: n,
|
|
3615
3609
|
onClick: s
|
|
3616
|
-
}) => /* @__PURE__ */
|
|
3610
|
+
}) => /* @__PURE__ */ C(
|
|
3617
3611
|
"svg",
|
|
3618
3612
|
{
|
|
3619
3613
|
width: i,
|
|
@@ -3653,7 +3647,7 @@ const ue = ({
|
|
|
3653
3647
|
color: t = k.GREY_DARK_5,
|
|
3654
3648
|
className: n,
|
|
3655
3649
|
onClick: s
|
|
3656
|
-
}) => /* @__PURE__ */
|
|
3650
|
+
}) => /* @__PURE__ */ C(
|
|
3657
3651
|
"svg",
|
|
3658
3652
|
{
|
|
3659
3653
|
width: i,
|
|
@@ -3686,7 +3680,7 @@ const ue = ({
|
|
|
3686
3680
|
color: t = k.GREY_DARK_5,
|
|
3687
3681
|
className: n,
|
|
3688
3682
|
onClick: s
|
|
3689
|
-
}) => /* @__PURE__ */
|
|
3683
|
+
}) => /* @__PURE__ */ C(
|
|
3690
3684
|
"svg",
|
|
3691
3685
|
{
|
|
3692
3686
|
width: i,
|
|
@@ -3719,7 +3713,7 @@ const ue = ({
|
|
|
3719
3713
|
color: t = "#070739",
|
|
3720
3714
|
className: n,
|
|
3721
3715
|
onClick: s
|
|
3722
|
-
}) => /* @__PURE__ */
|
|
3716
|
+
}) => /* @__PURE__ */ C(
|
|
3723
3717
|
"svg",
|
|
3724
3718
|
{
|
|
3725
3719
|
width: i,
|
|
@@ -3749,7 +3743,7 @@ const ue = ({
|
|
|
3749
3743
|
color: t = "#070739",
|
|
3750
3744
|
className: n,
|
|
3751
3745
|
onClick: s
|
|
3752
|
-
}) => /* @__PURE__ */
|
|
3746
|
+
}) => /* @__PURE__ */ C(
|
|
3753
3747
|
"svg",
|
|
3754
3748
|
{
|
|
3755
3749
|
width: i,
|
|
@@ -3813,7 +3807,7 @@ const ue = ({
|
|
|
3813
3807
|
color: t = "#F2F2F7",
|
|
3814
3808
|
className: n,
|
|
3815
3809
|
onClick: s
|
|
3816
|
-
}) => /* @__PURE__ */
|
|
3810
|
+
}) => /* @__PURE__ */ C(
|
|
3817
3811
|
"svg",
|
|
3818
3812
|
{
|
|
3819
3813
|
width: i,
|
|
@@ -3842,7 +3836,7 @@ const ue = ({
|
|
|
3842
3836
|
color: t = "#004ED7",
|
|
3843
3837
|
className: n,
|
|
3844
3838
|
onClick: s
|
|
3845
|
-
}) => /* @__PURE__ */
|
|
3839
|
+
}) => /* @__PURE__ */ C(
|
|
3846
3840
|
"svg",
|
|
3847
3841
|
{
|
|
3848
3842
|
width: i,
|
|
@@ -3871,7 +3865,7 @@ const ue = ({
|
|
|
3871
3865
|
color: t = "#001E52",
|
|
3872
3866
|
className: n,
|
|
3873
3867
|
onClick: s
|
|
3874
|
-
}) => /* @__PURE__ */
|
|
3868
|
+
}) => /* @__PURE__ */ C(
|
|
3875
3869
|
"svg",
|
|
3876
3870
|
{
|
|
3877
3871
|
width: i,
|
|
@@ -3900,7 +3894,7 @@ const ue = ({
|
|
|
3900
3894
|
color: t = "#001E52",
|
|
3901
3895
|
className: n,
|
|
3902
3896
|
onClick: s
|
|
3903
|
-
}) => /* @__PURE__ */
|
|
3897
|
+
}) => /* @__PURE__ */ C(
|
|
3904
3898
|
"svg",
|
|
3905
3899
|
{
|
|
3906
3900
|
width: i,
|
|
@@ -3937,7 +3931,7 @@ const ue = ({
|
|
|
3937
3931
|
height: t = 20,
|
|
3938
3932
|
width: n = 20,
|
|
3939
3933
|
onClick: s
|
|
3940
|
-
}) => /* @__PURE__ */
|
|
3934
|
+
}) => /* @__PURE__ */ C(
|
|
3941
3935
|
"svg",
|
|
3942
3936
|
{
|
|
3943
3937
|
width: n,
|
|
@@ -4073,7 +4067,7 @@ const ue = ({
|
|
|
4073
4067
|
height: t = 20,
|
|
4074
4068
|
width: n = 20,
|
|
4075
4069
|
onClick: s
|
|
4076
|
-
}) => /* @__PURE__ */
|
|
4070
|
+
}) => /* @__PURE__ */ C(
|
|
4077
4071
|
"svg",
|
|
4078
4072
|
{
|
|
4079
4073
|
width: n,
|
|
@@ -4106,7 +4100,7 @@ const ue = ({
|
|
|
4106
4100
|
height: t = 24,
|
|
4107
4101
|
width: n = 24,
|
|
4108
4102
|
onClick: s
|
|
4109
|
-
}) => /* @__PURE__ */
|
|
4103
|
+
}) => /* @__PURE__ */ C(
|
|
4110
4104
|
"svg",
|
|
4111
4105
|
{
|
|
4112
4106
|
width: n,
|
|
@@ -4172,7 +4166,7 @@ const ue = ({
|
|
|
4172
4166
|
height: t = 24,
|
|
4173
4167
|
width: n = 24,
|
|
4174
4168
|
onClick: s
|
|
4175
|
-
}) => /* @__PURE__ */
|
|
4169
|
+
}) => /* @__PURE__ */ C(
|
|
4176
4170
|
"svg",
|
|
4177
4171
|
{
|
|
4178
4172
|
width: n,
|
|
@@ -4231,7 +4225,7 @@ const ue = ({
|
|
|
4231
4225
|
height: t = 24,
|
|
4232
4226
|
width: n = 24,
|
|
4233
4227
|
onClick: s
|
|
4234
|
-
}) => /* @__PURE__ */
|
|
4228
|
+
}) => /* @__PURE__ */ C(
|
|
4235
4229
|
"svg",
|
|
4236
4230
|
{
|
|
4237
4231
|
width: n,
|
|
@@ -4268,7 +4262,7 @@ const ue = ({
|
|
|
4268
4262
|
height: t = 14,
|
|
4269
4263
|
width: n = 14,
|
|
4270
4264
|
onClick: s
|
|
4271
|
-
}) => /* @__PURE__ */
|
|
4265
|
+
}) => /* @__PURE__ */ C(
|
|
4272
4266
|
"svg",
|
|
4273
4267
|
{
|
|
4274
4268
|
className: i,
|
|
@@ -4332,7 +4326,7 @@ const ue = ({
|
|
|
4332
4326
|
height: t = 24,
|
|
4333
4327
|
width: n = 24,
|
|
4334
4328
|
onClick: s
|
|
4335
|
-
}) => /* @__PURE__ */
|
|
4329
|
+
}) => /* @__PURE__ */ C(
|
|
4336
4330
|
"svg",
|
|
4337
4331
|
{
|
|
4338
4332
|
onClick: s,
|
|
@@ -4384,7 +4378,7 @@ const ue = ({
|
|
|
4384
4378
|
height: t = 24,
|
|
4385
4379
|
width: n = 24,
|
|
4386
4380
|
onClick: s
|
|
4387
|
-
}) => /* @__PURE__ */
|
|
4381
|
+
}) => /* @__PURE__ */ C(
|
|
4388
4382
|
"svg",
|
|
4389
4383
|
{
|
|
4390
4384
|
onClick: s,
|
|
@@ -4421,7 +4415,7 @@ const ue = ({
|
|
|
4421
4415
|
height: t = 37,
|
|
4422
4416
|
width: n = 36,
|
|
4423
4417
|
onClick: s
|
|
4424
|
-
}) => /* @__PURE__ */
|
|
4418
|
+
}) => /* @__PURE__ */ C(
|
|
4425
4419
|
"svg",
|
|
4426
4420
|
{
|
|
4427
4421
|
onClick: s,
|
|
@@ -4486,7 +4480,7 @@ const ue = ({
|
|
|
4486
4480
|
height: t = 24,
|
|
4487
4481
|
width: n = 24,
|
|
4488
4482
|
onClick: s
|
|
4489
|
-
}) => /* @__PURE__ */
|
|
4483
|
+
}) => /* @__PURE__ */ C(
|
|
4490
4484
|
"svg",
|
|
4491
4485
|
{
|
|
4492
4486
|
onClick: s,
|
|
@@ -4525,7 +4519,7 @@ const ue = ({
|
|
|
4525
4519
|
height: t = 20,
|
|
4526
4520
|
width: n = 20,
|
|
4527
4521
|
onClick: s
|
|
4528
|
-
}) => /* @__PURE__ */
|
|
4522
|
+
}) => /* @__PURE__ */ C(
|
|
4529
4523
|
"svg",
|
|
4530
4524
|
{
|
|
4531
4525
|
onClick: s,
|
|
@@ -4558,7 +4552,7 @@ const ue = ({
|
|
|
4558
4552
|
height: t = 24,
|
|
4559
4553
|
width: n = 24,
|
|
4560
4554
|
onClick: s
|
|
4561
|
-
}) => /* @__PURE__ */
|
|
4555
|
+
}) => /* @__PURE__ */ C(
|
|
4562
4556
|
"svg",
|
|
4563
4557
|
{
|
|
4564
4558
|
onClick: s,
|
|
@@ -4621,13 +4615,13 @@ const ue = ({
|
|
|
4621
4615
|
)
|
|
4622
4616
|
]
|
|
4623
4617
|
}
|
|
4624
|
-
),
|
|
4618
|
+
), gt = ({
|
|
4625
4619
|
className: i,
|
|
4626
4620
|
color: e = k.GREY_DARK_5,
|
|
4627
4621
|
height: t = 24,
|
|
4628
4622
|
width: n = 24,
|
|
4629
4623
|
onClick: s
|
|
4630
|
-
}) => /* @__PURE__ */
|
|
4624
|
+
}) => /* @__PURE__ */ C(
|
|
4631
4625
|
"svg",
|
|
4632
4626
|
{
|
|
4633
4627
|
onClick: s,
|
|
@@ -4678,13 +4672,13 @@ const ue = ({
|
|
|
4678
4672
|
)
|
|
4679
4673
|
]
|
|
4680
4674
|
}
|
|
4681
|
-
),
|
|
4675
|
+
), Ct = ({
|
|
4682
4676
|
className: i,
|
|
4683
4677
|
color: e = k.GREY_DARK_5,
|
|
4684
4678
|
height: t = 24,
|
|
4685
4679
|
width: n = 24,
|
|
4686
4680
|
onClick: s
|
|
4687
|
-
}) => /* @__PURE__ */
|
|
4681
|
+
}) => /* @__PURE__ */ C(
|
|
4688
4682
|
"svg",
|
|
4689
4683
|
{
|
|
4690
4684
|
onClick: s,
|
|
@@ -4760,7 +4754,7 @@ const ue = ({
|
|
|
4760
4754
|
height: t = 20,
|
|
4761
4755
|
width: n = 20,
|
|
4762
4756
|
onClick: s
|
|
4763
|
-
}) => /* @__PURE__ */
|
|
4757
|
+
}) => /* @__PURE__ */ C(
|
|
4764
4758
|
"svg",
|
|
4765
4759
|
{
|
|
4766
4760
|
onClick: s,
|
|
@@ -4826,7 +4820,7 @@ const ue = ({
|
|
|
4826
4820
|
version: "1.1",
|
|
4827
4821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4828
4822
|
viewBox: "0 0 489.698 489.698",
|
|
4829
|
-
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */
|
|
4823
|
+
children: /* @__PURE__ */ r("g", { children: /* @__PURE__ */ C("g", { children: [
|
|
4830
4824
|
/* @__PURE__ */ r(
|
|
4831
4825
|
"path",
|
|
4832
4826
|
{
|
|
@@ -4877,7 +4871,7 @@ const ue = ({
|
|
|
4877
4871
|
color: t = "#131314",
|
|
4878
4872
|
className: n,
|
|
4879
4873
|
onClick: s
|
|
4880
|
-
}) => /* @__PURE__ */
|
|
4874
|
+
}) => /* @__PURE__ */ C(
|
|
4881
4875
|
"svg",
|
|
4882
4876
|
{
|
|
4883
4877
|
width: i,
|
|
@@ -4910,7 +4904,7 @@ const ue = ({
|
|
|
4910
4904
|
color: t = k.GREY_DARK_5,
|
|
4911
4905
|
className: n,
|
|
4912
4906
|
onClick: s
|
|
4913
|
-
}) => /* @__PURE__ */
|
|
4907
|
+
}) => /* @__PURE__ */ C(
|
|
4914
4908
|
"svg",
|
|
4915
4909
|
{
|
|
4916
4910
|
width: i,
|
|
@@ -4943,7 +4937,7 @@ const ue = ({
|
|
|
4943
4937
|
color: t = k.GREY_DARK_2,
|
|
4944
4938
|
className: n,
|
|
4945
4939
|
onClick: s
|
|
4946
|
-
}) => /* @__PURE__ */
|
|
4940
|
+
}) => /* @__PURE__ */ C(
|
|
4947
4941
|
"svg",
|
|
4948
4942
|
{
|
|
4949
4943
|
width: i,
|
|
@@ -5040,192 +5034,186 @@ const ue = ({
|
|
|
5040
5034
|
disabled: o = !1,
|
|
5041
5035
|
onClick: c
|
|
5042
5036
|
}) => {
|
|
5043
|
-
const
|
|
5044
|
-
return
|
|
5045
|
-
if (s) {
|
|
5046
|
-
h && !o && C(`${s} clickable`);
|
|
5047
|
-
return;
|
|
5048
|
-
}
|
|
5049
|
-
h && !o && C("clickable");
|
|
5050
|
-
}, [h, s, o]), /* @__PURE__ */ r(i1, { children: (() => {
|
|
5037
|
+
const { theme: d } = r1(h2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : n, a = o ? void 0 : c, h = c && !o ? `${s || ""} clickable` : s;
|
|
5038
|
+
return /* @__PURE__ */ r(i1, { children: (() => {
|
|
5051
5039
|
switch (i) {
|
|
5052
5040
|
case "nextIcon":
|
|
5053
|
-
return Ue({ width: e, height: t, color: l, className:
|
|
5041
|
+
return Ue({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5054
5042
|
case "prevIcon":
|
|
5055
|
-
return ze({ width: e, height: t, color: l, className:
|
|
5043
|
+
return ze({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5056
5044
|
case "arrowDown":
|
|
5057
|
-
return ue({ width: e, height: t, color: l, className:
|
|
5045
|
+
return ue({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5058
5046
|
case "info":
|
|
5059
|
-
return fe({ width: e, height: t, color: l, className:
|
|
5047
|
+
return fe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5060
5048
|
case "arrowRight":
|
|
5061
|
-
return pe({ width: e, height: t, color: l, className:
|
|
5049
|
+
return pe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5062
5050
|
case "calendar":
|
|
5063
|
-
return ve({ width: e, height: t, color: l, className:
|
|
5051
|
+
return ve({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5064
5052
|
case "check":
|
|
5065
|
-
return Ne({ width: e, height: t, color: l, className:
|
|
5053
|
+
return Ne({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5066
5054
|
case "cancel":
|
|
5067
|
-
return Re({ width: e, height: t, color: l, className:
|
|
5055
|
+
return Re({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5068
5056
|
case "add":
|
|
5069
|
-
return xe({ width: e, height: t, color: l, className:
|
|
5057
|
+
return xe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5070
5058
|
case "list":
|
|
5071
|
-
return _e({ width: e, height: t, color: l, className:
|
|
5059
|
+
return _e({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5072
5060
|
case "dragAndDrop":
|
|
5073
|
-
return Me({ width: e, height: t, color: l, className:
|
|
5061
|
+
return Me({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5074
5062
|
case "filter":
|
|
5075
|
-
return be({ width: e, height: t, color: l, className:
|
|
5063
|
+
return be({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5076
5064
|
case "attention":
|
|
5077
|
-
return ye({ width: e, height: t, color: l, className:
|
|
5065
|
+
return ye({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5078
5066
|
case "users":
|
|
5079
|
-
return He({ width: e, height: t, color: l, className:
|
|
5067
|
+
return He({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5080
5068
|
case "mySkillsMatrix":
|
|
5081
5069
|
return Ee({
|
|
5082
5070
|
width: e,
|
|
5083
5071
|
height: t,
|
|
5084
5072
|
color: l,
|
|
5085
|
-
className:
|
|
5086
|
-
onClick:
|
|
5073
|
+
className: h,
|
|
5074
|
+
onClick: a
|
|
5087
5075
|
});
|
|
5088
5076
|
case "skills":
|
|
5089
|
-
return Ve({ width: e, height: t, color: l, className:
|
|
5077
|
+
return Ve({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5090
5078
|
case "skillsMatrices":
|
|
5091
5079
|
return Ae({
|
|
5092
5080
|
width: e,
|
|
5093
5081
|
height: t,
|
|
5094
5082
|
color: l,
|
|
5095
|
-
className:
|
|
5096
|
-
onClick:
|
|
5083
|
+
className: h,
|
|
5084
|
+
onClick: a
|
|
5097
5085
|
});
|
|
5098
5086
|
case "history":
|
|
5099
|
-
return Ie({ width: e, height: t, color: l, className:
|
|
5087
|
+
return Ie({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5100
5088
|
case "logOut":
|
|
5101
|
-
return Oe({ width: e, height: t, color: l, className:
|
|
5089
|
+
return Oe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5102
5090
|
case "settings":
|
|
5103
|
-
return Se({ width: e, height: t, color: l, className:
|
|
5091
|
+
return Se({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5104
5092
|
case "trash":
|
|
5105
|
-
return Ze({ width: e, height: t, color: l, className:
|
|
5093
|
+
return Ze({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5106
5094
|
case "settings2":
|
|
5107
|
-
return Ge({ width: e, height: t, color: l, className:
|
|
5095
|
+
return Ge({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5108
5096
|
case "checkCircle":
|
|
5109
|
-
return De({ width: e, height: t, color: l, className:
|
|
5097
|
+
return De({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5110
5098
|
case "cancelCircle":
|
|
5111
|
-
return Te({ width: e, height: t, color: l, className:
|
|
5099
|
+
return Te({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5112
5100
|
case "visibilityIcon":
|
|
5113
5101
|
return Ke({
|
|
5114
5102
|
width: e,
|
|
5115
5103
|
height: t,
|
|
5116
5104
|
color: l,
|
|
5117
|
-
className:
|
|
5118
|
-
onClick:
|
|
5105
|
+
className: h,
|
|
5106
|
+
onClick: a
|
|
5119
5107
|
});
|
|
5120
5108
|
case "visibilityOffIcon":
|
|
5121
5109
|
return Be({
|
|
5122
5110
|
width: e,
|
|
5123
5111
|
height: t,
|
|
5124
5112
|
color: l,
|
|
5125
|
-
className:
|
|
5126
|
-
onClick:
|
|
5113
|
+
className: h,
|
|
5114
|
+
onClick: a
|
|
5127
5115
|
});
|
|
5128
5116
|
case "selectArrowIcon":
|
|
5129
5117
|
return Ye({
|
|
5130
5118
|
width: e,
|
|
5131
5119
|
height: t,
|
|
5132
5120
|
color: l,
|
|
5133
|
-
className:
|
|
5134
|
-
onClick:
|
|
5121
|
+
className: h,
|
|
5122
|
+
onClick: a
|
|
5135
5123
|
});
|
|
5136
5124
|
case "expandArrowIcon":
|
|
5137
5125
|
return Pe({
|
|
5138
5126
|
width: e,
|
|
5139
5127
|
height: t,
|
|
5140
5128
|
color: l,
|
|
5141
|
-
className:
|
|
5142
|
-
onClick:
|
|
5129
|
+
className: h,
|
|
5130
|
+
onClick: a
|
|
5143
5131
|
});
|
|
5144
5132
|
case "expandActiveArrowIcon":
|
|
5145
5133
|
return je({
|
|
5146
5134
|
width: e,
|
|
5147
5135
|
height: t,
|
|
5148
5136
|
color: l,
|
|
5149
|
-
className:
|
|
5150
|
-
onClick:
|
|
5137
|
+
className: h,
|
|
5138
|
+
onClick: a
|
|
5151
5139
|
});
|
|
5152
5140
|
case "sortUp":
|
|
5153
|
-
return $e({ width: e, height: t, color: l, className:
|
|
5141
|
+
return $e({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5154
5142
|
case "sortDown":
|
|
5155
|
-
return Fe({ width: e, height: t, color: l, className:
|
|
5143
|
+
return Fe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5156
5144
|
case "search":
|
|
5157
|
-
return We({ width: e, height: t, color: l, className:
|
|
5145
|
+
return We({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5158
5146
|
case "arrowUpFilled":
|
|
5159
|
-
return qe({ width: e, height: t, color: l, className:
|
|
5147
|
+
return qe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5160
5148
|
case "arrowDownFilled":
|
|
5161
|
-
return Je({ width: e, height: t, color: l, className:
|
|
5149
|
+
return Je({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5162
5150
|
case "arrow2Up":
|
|
5163
|
-
return me({ width: e, height: t, color: l, className:
|
|
5151
|
+
return me({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5164
5152
|
case "arrow2Right":
|
|
5165
|
-
return we({ width: e, height: t, color: l, className:
|
|
5153
|
+
return we({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5166
5154
|
case "arrow2Down":
|
|
5167
|
-
return Le({ width: e, height: t, color: l, className:
|
|
5155
|
+
return Le({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5168
5156
|
case "arrow2Left":
|
|
5169
|
-
return ke({ width: e, height: t, color: l, className:
|
|
5157
|
+
return ke({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5170
5158
|
case "link":
|
|
5171
|
-
return Qe({ width: e, height: t, color: l, className:
|
|
5159
|
+
return Qe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5172
5160
|
case "telegram":
|
|
5173
|
-
return et({ width: e, height: t, color: l, className:
|
|
5161
|
+
return et({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5174
5162
|
case "mail":
|
|
5175
|
-
return it({ width: e, height: t, color: l, className:
|
|
5163
|
+
return it({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5176
5164
|
case "github":
|
|
5177
|
-
return Xe({ width: e, height: t, color: l, className:
|
|
5165
|
+
return Xe({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5178
5166
|
case "linkedIn":
|
|
5179
|
-
return tt({ width: e, height: t, color: l, className:
|
|
5167
|
+
return tt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5180
5168
|
case "emptyStateIcon":
|
|
5181
|
-
return nt({ width: e, height: t, color: l, className:
|
|
5169
|
+
return nt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5182
5170
|
case "filtersIcon":
|
|
5183
|
-
return st({ width: e, height: t, color: l, className:
|
|
5171
|
+
return st({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5184
5172
|
case "dotMenuIcon":
|
|
5185
|
-
return rt({ width: e, height: t, color: l, className:
|
|
5173
|
+
return rt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5186
5174
|
case "plusCircle":
|
|
5187
|
-
return ot({ width: e, height: t, color: l, className:
|
|
5175
|
+
return ot({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5188
5176
|
case "warning":
|
|
5189
|
-
return at({ width: e, height: t, color: l, className:
|
|
5177
|
+
return at({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5190
5178
|
case "back":
|
|
5191
|
-
return lt({ width: e, height: t, color: l, className:
|
|
5179
|
+
return lt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5192
5180
|
case "bell":
|
|
5193
|
-
return ht({ width: e, height: t, color: l, className:
|
|
5181
|
+
return ht({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5194
5182
|
case "copy":
|
|
5195
|
-
return ct({ width: e, height: t, color: l, className:
|
|
5183
|
+
return ct({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5196
5184
|
case "contract":
|
|
5197
|
-
return dt({ width: e, height: t, color: l, className:
|
|
5185
|
+
return dt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5198
5186
|
case "resourceManager":
|
|
5199
|
-
return
|
|
5187
|
+
return gt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5200
5188
|
case "image":
|
|
5201
|
-
return
|
|
5189
|
+
return Ct({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5202
5190
|
case "edit":
|
|
5203
|
-
return ut({ width: e, height: t, color: l, className:
|
|
5191
|
+
return ut({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5204
5192
|
case "filledArrowRight":
|
|
5205
|
-
return ft({ width: e, height: t, color: l, className:
|
|
5193
|
+
return ft({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5206
5194
|
case "burgerMenu":
|
|
5207
|
-
return pt({ width: e, height: t, color: l, className:
|
|
5195
|
+
return pt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5208
5196
|
case "refresh":
|
|
5209
|
-
return mt({ width: e, height: t, color: l, className:
|
|
5197
|
+
return mt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5210
5198
|
case "projects":
|
|
5211
|
-
return wt({ width: e, height: t, color: l, className:
|
|
5199
|
+
return wt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5212
5200
|
case "user":
|
|
5213
|
-
return kt({ width: e, height: t, color: l, className:
|
|
5201
|
+
return kt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5214
5202
|
case "exit":
|
|
5215
|
-
return Lt({ width: e, height: t, color: l, className:
|
|
5203
|
+
return Lt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5216
5204
|
case "openPointCircle":
|
|
5217
|
-
return vt({ width: e, height: t, color: l, className:
|
|
5205
|
+
return vt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5218
5206
|
case "community":
|
|
5219
|
-
return Nt({ width: e, height: t, color: l, className:
|
|
5207
|
+
return Nt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5220
5208
|
case "docs":
|
|
5221
|
-
return Rt({ width: e, height: t, color: l, className:
|
|
5209
|
+
return Rt({ width: e, height: t, color: l, className: h, onClick: a });
|
|
5222
5210
|
default:
|
|
5223
5211
|
return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
|
|
5224
5212
|
}
|
|
5225
5213
|
})() });
|
|
5226
5214
|
};
|
|
5227
5215
|
var m1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(m1 || {});
|
|
5228
|
-
const _t =
|
|
5216
|
+
const _t = g1({
|
|
5229
5217
|
locale: "en",
|
|
5230
5218
|
theme: "light"
|
|
5231
5219
|
});
|
|
@@ -5238,7 +5226,7 @@ const c2 = ({
|
|
|
5238
5226
|
closable: s = !0,
|
|
5239
5227
|
disabled: o = !1
|
|
5240
5228
|
}) => {
|
|
5241
|
-
const c = t === "small" ? 10 : 12.5,
|
|
5229
|
+
const c = t === "small" ? 10 : 12.5, d = () => {
|
|
5242
5230
|
o || n == null || n();
|
|
5243
5231
|
};
|
|
5244
5232
|
return /* @__PURE__ */ r(
|
|
@@ -5252,14 +5240,14 @@ const c2 = ({
|
|
|
5252
5240
|
color: o ? m1.GREY_DARK_1 : m1.GREY_DARK_2,
|
|
5253
5241
|
width: c,
|
|
5254
5242
|
height: c,
|
|
5255
|
-
onClick:
|
|
5243
|
+
onClick: d
|
|
5256
5244
|
}
|
|
5257
5245
|
),
|
|
5258
5246
|
bordered: !1,
|
|
5259
5247
|
style: { width: e ?? "fit-content" },
|
|
5260
5248
|
closable: s,
|
|
5261
5249
|
children: typeof i == "string" ? /* @__PURE__ */ r(
|
|
5262
|
-
|
|
5250
|
+
Ce,
|
|
5263
5251
|
{
|
|
5264
5252
|
variant: t === "small" ? "body4" : "body2",
|
|
5265
5253
|
color: o ? m1.GREY_DARK_2 : m1.GREY_DARK_5,
|
|
@@ -5283,32 +5271,32 @@ const c2 = ({
|
|
|
5283
5271
|
collapsed: o,
|
|
5284
5272
|
whiteSpace: c = "normal",
|
|
5285
5273
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5286
|
-
trim:
|
|
5287
|
-
},
|
|
5288
|
-
const
|
|
5289
|
-
k1(
|
|
5290
|
-
const [
|
|
5291
|
-
|
|
5274
|
+
trim: d = !1
|
|
5275
|
+
}, l) => {
|
|
5276
|
+
const a = $(null);
|
|
5277
|
+
k1(l, () => a.current);
|
|
5278
|
+
const [h, u] = O(!1);
|
|
5279
|
+
Z(() => {
|
|
5292
5280
|
var v;
|
|
5293
|
-
if (!
|
|
5281
|
+
if (!d) return;
|
|
5294
5282
|
const m = () => {
|
|
5295
|
-
|
|
5283
|
+
a.current && u(a.current.scrollWidth > a.current.clientWidth);
|
|
5296
5284
|
};
|
|
5297
5285
|
m();
|
|
5298
5286
|
const b = new ResizeObserver(m);
|
|
5299
|
-
return
|
|
5287
|
+
return a.current && b.observe(a.current), (v = a.current) != null && v.parentElement && b.observe(a.current.parentElement), () => {
|
|
5300
5288
|
b.disconnect();
|
|
5301
5289
|
};
|
|
5302
|
-
}, [
|
|
5290
|
+
}, [d]);
|
|
5303
5291
|
const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5304
5292
|
let f = `snmt-typography snmt-typography-${e}`;
|
|
5305
5293
|
i && i !== "inherit" && (f += ` snmt-typography-align-${i}`), o && (f += " collapsed");
|
|
5306
5294
|
const w = {
|
|
5307
5295
|
className: f,
|
|
5308
|
-
style: { color: t, whiteSpace:
|
|
5296
|
+
style: { color: t, whiteSpace: d ? "nowrap" : c, display: d ? "block" : "" },
|
|
5309
5297
|
onClick: s,
|
|
5310
|
-
ref:
|
|
5311
|
-
ellipsis:
|
|
5298
|
+
ref: a,
|
|
5299
|
+
ellipsis: d && h ? {
|
|
5312
5300
|
tooltip: {
|
|
5313
5301
|
title: n,
|
|
5314
5302
|
overlayClassName: "snmt-tooltip"
|
|
@@ -5326,7 +5314,7 @@ const c2 = ({
|
|
|
5326
5314
|
noPadding: o = !1,
|
|
5327
5315
|
trigger: c = "click"
|
|
5328
5316
|
}) => {
|
|
5329
|
-
const [
|
|
5317
|
+
const [d, l] = O(!1);
|
|
5330
5318
|
return /* @__PURE__ */ r(
|
|
5331
5319
|
M2,
|
|
5332
5320
|
{
|
|
@@ -5335,9 +5323,9 @@ const c2 = ({
|
|
|
5335
5323
|
placement: s,
|
|
5336
5324
|
trigger: c,
|
|
5337
5325
|
overlayClassName: `snmt-popover ${o ? "" : "padding"}`,
|
|
5338
|
-
open: t ??
|
|
5339
|
-
onOpenChange: (
|
|
5340
|
-
|
|
5326
|
+
open: t ?? d,
|
|
5327
|
+
onOpenChange: (a) => {
|
|
5328
|
+
l(a), n == null || n(a);
|
|
5341
5329
|
},
|
|
5342
5330
|
children: /* @__PURE__ */ r("div", { className: "wrapper", children: i })
|
|
5343
5331
|
}
|
|
@@ -5363,16 +5351,16 @@ const At = ({
|
|
|
5363
5351
|
options: o,
|
|
5364
5352
|
extraOptions: c
|
|
5365
5353
|
}) => {
|
|
5366
|
-
const { locale:
|
|
5367
|
-
if (
|
|
5368
|
-
i.length ||
|
|
5354
|
+
const { locale: d } = r1(D1), { t: l } = W2("common", { lng: d }), [a, h] = O(!1);
|
|
5355
|
+
if (Z(() => {
|
|
5356
|
+
i.length || h(!1);
|
|
5369
5357
|
}, [i]), !i.length)
|
|
5370
5358
|
return null;
|
|
5371
|
-
const
|
|
5359
|
+
const u = (g) => {
|
|
5372
5360
|
var f, w;
|
|
5373
5361
|
return ((f = o == null ? void 0 : o.find((v) => v.value === g)) == null ? void 0 : f.label) || ((w = c == null ? void 0 : c.find((v) => v.value === g)) == null ? void 0 : w.label) || g;
|
|
5374
5362
|
};
|
|
5375
|
-
return /* @__PURE__ */
|
|
5363
|
+
return /* @__PURE__ */ C(
|
|
5376
5364
|
Et,
|
|
5377
5365
|
{
|
|
5378
5366
|
content: (
|
|
@@ -5383,18 +5371,18 @@ const At = ({
|
|
|
5383
5371
|
onClose: () => e(g),
|
|
5384
5372
|
closable: n,
|
|
5385
5373
|
disabled: s,
|
|
5386
|
-
children:
|
|
5374
|
+
children: u(g)
|
|
5387
5375
|
},
|
|
5388
5376
|
g
|
|
5389
5377
|
)) }) })
|
|
5390
5378
|
),
|
|
5391
5379
|
placement: "bottomRight",
|
|
5392
|
-
isOpen:
|
|
5393
|
-
setIsOpen:
|
|
5380
|
+
isOpen: a,
|
|
5381
|
+
setIsOpen: h,
|
|
5394
5382
|
children: [
|
|
5395
5383
|
i.length,
|
|
5396
5384
|
" ",
|
|
5397
|
-
|
|
5385
|
+
l("more")
|
|
5398
5386
|
]
|
|
5399
5387
|
}
|
|
5400
5388
|
);
|
|
@@ -5419,11 +5407,11 @@ const At = ({
|
|
|
5419
5407
|
search: s = !1,
|
|
5420
5408
|
options: o,
|
|
5421
5409
|
width: c,
|
|
5422
|
-
disabled:
|
|
5423
|
-
required:
|
|
5424
|
-
clearable:
|
|
5425
|
-
scrollThresholdValue:
|
|
5426
|
-
onSearchChange:
|
|
5410
|
+
disabled: d = !1,
|
|
5411
|
+
required: l = !1,
|
|
5412
|
+
clearable: a = !1,
|
|
5413
|
+
scrollThresholdValue: h = 50,
|
|
5414
|
+
onSearchChange: u,
|
|
5427
5415
|
onDropdownVisibleChange: g,
|
|
5428
5416
|
onScrollToEnd: f,
|
|
5429
5417
|
onPopupScroll: w,
|
|
@@ -5435,15 +5423,15 @@ const At = ({
|
|
|
5435
5423
|
readOnly: p,
|
|
5436
5424
|
error: N
|
|
5437
5425
|
}, _) => {
|
|
5438
|
-
const [R, V] =
|
|
5439
|
-
|
|
5426
|
+
const [R, V] = O(!1), [G, T] = O(!1), [Y, Q] = O(!0), [A, P] = O(i), z = $(null);
|
|
5427
|
+
Z(() => {
|
|
5440
5428
|
P(i);
|
|
5441
5429
|
}, [i]);
|
|
5442
5430
|
const q = (x) => {
|
|
5443
5431
|
V(x), g && g(x);
|
|
5444
5432
|
}, X = (x, H) => {
|
|
5445
|
-
var
|
|
5446
|
-
return !!((
|
|
5433
|
+
var S;
|
|
5434
|
+
return !!((S = H == null ? void 0 : H.label) != null && S.toString().toLowerCase().includes(x.toLowerCase()));
|
|
5447
5435
|
}, D = () => {
|
|
5448
5436
|
T(!0);
|
|
5449
5437
|
}, F = () => {
|
|
@@ -5451,8 +5439,8 @@ const At = ({
|
|
|
5451
5439
|
}, j = K(
|
|
5452
5440
|
(x) => {
|
|
5453
5441
|
if (P(x), n) {
|
|
5454
|
-
const
|
|
5455
|
-
e == null || e(
|
|
5442
|
+
const S = x;
|
|
5443
|
+
e == null || e(S);
|
|
5456
5444
|
return;
|
|
5457
5445
|
}
|
|
5458
5446
|
const H = x;
|
|
@@ -5460,37 +5448,37 @@ const At = ({
|
|
|
5460
5448
|
},
|
|
5461
5449
|
[n, e]
|
|
5462
5450
|
), e1 = K(() => {
|
|
5463
|
-
if (!(p ||
|
|
5451
|
+
if (!(p || d)) {
|
|
5464
5452
|
if (n) {
|
|
5465
5453
|
j([]);
|
|
5466
5454
|
return;
|
|
5467
5455
|
}
|
|
5468
5456
|
j("");
|
|
5469
5457
|
}
|
|
5470
|
-
}, [
|
|
5458
|
+
}, [d, j, n, p]), t1 = K(
|
|
5471
5459
|
(x) => {
|
|
5472
|
-
const H =
|
|
5460
|
+
const H = A.filter((S) => S !== x);
|
|
5473
5461
|
j(H), P(H);
|
|
5474
5462
|
},
|
|
5475
|
-
[j,
|
|
5476
|
-
),
|
|
5477
|
-
(x) => (
|
|
5463
|
+
[j, A]
|
|
5464
|
+
), C1 = K(
|
|
5465
|
+
(x) => (A == null ? void 0 : A.indexOf(x)) === 0 ? (
|
|
5478
5466
|
// if the search input is empty
|
|
5479
5467
|
// then display the placeholder, else do not display it
|
|
5480
5468
|
/* @__PURE__ */ r("span", { className: "custom-placeholder", children: Y ? t : "" })
|
|
5481
5469
|
) : /* @__PURE__ */ r(i1, {}),
|
|
5482
|
-
[Y,
|
|
5470
|
+
[Y, A, t]
|
|
5483
5471
|
), v1 = (x) => {
|
|
5484
5472
|
x.preventDefault(), x.stopPropagation();
|
|
5485
5473
|
}, N1 = async (x) => {
|
|
5486
5474
|
const { target: H } = x;
|
|
5487
|
-
H.scrollTop + H.offsetHeight >= H.scrollHeight -
|
|
5475
|
+
H.scrollTop + H.offsetHeight >= H.scrollHeight - h && (f == null || f(!0)), w && await w(x);
|
|
5488
5476
|
}, o1 = K(
|
|
5489
5477
|
(x) => {
|
|
5490
|
-
var H,
|
|
5491
|
-
return ((H = o.find((a1) => a1.value === x)) == null ? void 0 : H.label) || ((
|
|
5478
|
+
var H, S;
|
|
5479
|
+
return ((H = o.find((a1) => a1.value === x)) == null ? void 0 : H.label) || ((S = m == null ? void 0 : m.find(
|
|
5492
5480
|
(a1) => a1.value === x
|
|
5493
|
-
)) == null ? void 0 :
|
|
5481
|
+
)) == null ? void 0 : S.label) || x;
|
|
5494
5482
|
},
|
|
5495
5483
|
[m, o]
|
|
5496
5484
|
), R1 = K(
|
|
@@ -5502,20 +5490,20 @@ const At = ({
|
|
|
5502
5490
|
values: x,
|
|
5503
5491
|
onTagClose: t1,
|
|
5504
5492
|
maxWidth: ((H = z.current) == null ? void 0 : H.clientWidth) || 0,
|
|
5505
|
-
disabled:
|
|
5493
|
+
disabled: d,
|
|
5506
5494
|
closable: !p,
|
|
5507
5495
|
options: o,
|
|
5508
5496
|
extraOptions: m
|
|
5509
5497
|
}
|
|
5510
5498
|
);
|
|
5511
5499
|
},
|
|
5512
|
-
[
|
|
5513
|
-
),
|
|
5514
|
-
({ label: x, value: H, mode:
|
|
5515
|
-
[
|
|
5516
|
-
), W = Array.isArray(
|
|
5517
|
-
return /* @__PURE__ */
|
|
5518
|
-
/* @__PURE__ */
|
|
5500
|
+
[d, m, t1, o, p]
|
|
5501
|
+
), I = K(
|
|
5502
|
+
({ label: x, value: H, mode: S }) => S === "filter" ? C1(H) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(c2, { onClose: () => t1(H), disabled: d, children: typeof x == "object" ? x : o1(H) }) }),
|
|
5503
|
+
[d, o1, t1, C1]
|
|
5504
|
+
), W = Array.isArray(A) && A.length > 0 || !!A && typeof A == "string" && A.trim() !== "";
|
|
5505
|
+
return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
|
|
5506
|
+
/* @__PURE__ */ C(
|
|
5519
5507
|
"div",
|
|
5520
5508
|
{
|
|
5521
5509
|
className: `snmt-select-1-15-6 ${G ? "snmt-select-focused" : ""}
|
|
@@ -5533,39 +5521,39 @@ const At = ({
|
|
|
5533
5521
|
showSearch: !!s,
|
|
5534
5522
|
filterOption: s && X,
|
|
5535
5523
|
onDropdownVisibleChange: q,
|
|
5536
|
-
disabled:
|
|
5537
|
-
value:
|
|
5524
|
+
disabled: d,
|
|
5525
|
+
value: A || void 0,
|
|
5538
5526
|
labelRender: (x) => {
|
|
5539
5527
|
const H = o1(x.value);
|
|
5540
|
-
return
|
|
5528
|
+
return d ? /* @__PURE__ */ r("span", { style: { color: U.GREY_DARK_1 }, children: H }) : H;
|
|
5541
5529
|
},
|
|
5542
5530
|
mode: n === "filter" ? "multiple" : n,
|
|
5543
5531
|
onChange: j,
|
|
5544
5532
|
onFocus: D,
|
|
5545
5533
|
onBlur: F,
|
|
5546
5534
|
onSearch: (x) => {
|
|
5547
|
-
Q(!x),
|
|
5535
|
+
Q(!x), u && u(x);
|
|
5548
5536
|
},
|
|
5549
5537
|
onSelect: () => Q(!0),
|
|
5550
5538
|
onDeselect: () => Q(!0),
|
|
5551
|
-
tagRender: (x) =>
|
|
5539
|
+
tagRender: (x) => I({ ...x, mode: n }),
|
|
5552
5540
|
maxTagCount: "responsive",
|
|
5553
5541
|
maxTagPlaceholder: R1,
|
|
5554
5542
|
onPopupScroll: N1,
|
|
5555
5543
|
prefix: E && /* @__PURE__ */ r(P1, { size: "small" }),
|
|
5556
|
-
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */
|
|
5557
|
-
|
|
5544
|
+
suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */ C(i1, { children: [
|
|
5545
|
+
A && !!A.length && (n || a) && /* @__PURE__ */ r(
|
|
5558
5546
|
"div",
|
|
5559
5547
|
{
|
|
5560
5548
|
onClick: e1,
|
|
5561
5549
|
style: {
|
|
5562
|
-
cursor:
|
|
5550
|
+
cursor: d ? "not-allowed" : "pointer"
|
|
5563
5551
|
},
|
|
5564
5552
|
children: /* @__PURE__ */ r(
|
|
5565
5553
|
u1,
|
|
5566
5554
|
{
|
|
5567
5555
|
name: "cancel",
|
|
5568
|
-
color:
|
|
5556
|
+
color: d ? U.GREY_DARK_1 : U.GREY_DARK_2
|
|
5569
5557
|
}
|
|
5570
5558
|
)
|
|
5571
5559
|
}
|
|
@@ -5574,7 +5562,7 @@ const At = ({
|
|
|
5574
5562
|
u1,
|
|
5575
5563
|
{
|
|
5576
5564
|
name: "selectArrowIcon",
|
|
5577
|
-
color:
|
|
5565
|
+
color: d ? U.GREY_DARK_1 : U.GREY_DARK_5,
|
|
5578
5566
|
className: R ? "select-arrow-rotated" : "select-arrow",
|
|
5579
5567
|
onClick: () => V(!R)
|
|
5580
5568
|
}
|
|
@@ -5582,47 +5570,47 @@ const At = ({
|
|
|
5582
5570
|
] }) }),
|
|
5583
5571
|
removeIcon: /* @__PURE__ */ r(u1, { name: "cancelCircle", color: U.GREY_DARK_1 }),
|
|
5584
5572
|
options: o,
|
|
5585
|
-
optionRender: (x) => y ? y(x.data) : /* @__PURE__ */
|
|
5586
|
-
/* @__PURE__ */
|
|
5573
|
+
optionRender: (x) => y ? y(x.data) : /* @__PURE__ */ C(p1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
5574
|
+
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 12, children: [
|
|
5587
5575
|
n && /* @__PURE__ */ r(
|
|
5588
5576
|
X2,
|
|
5589
5577
|
{
|
|
5590
|
-
checked: !!(
|
|
5578
|
+
checked: !!(A != null && A.includes(x.value))
|
|
5591
5579
|
}
|
|
5592
5580
|
),
|
|
5593
|
-
/* @__PURE__ */
|
|
5581
|
+
/* @__PURE__ */ C(p1, { alignItems: "center", gap: 8, children: [
|
|
5594
5582
|
x.data.image && /* @__PURE__ */ r(U2, { src: x.data.image, size: 20 }),
|
|
5595
5583
|
/* @__PURE__ */ r("span", { children: x.label })
|
|
5596
5584
|
] })
|
|
5597
5585
|
] }),
|
|
5598
|
-
!n &&
|
|
5586
|
+
!n && A === x.value && /* @__PURE__ */ r(u1, { name: "check", color: U.BLUE_DARK_1 })
|
|
5599
5587
|
] }),
|
|
5600
|
-
dropdownRender: (x) => /* @__PURE__ */
|
|
5588
|
+
dropdownRender: (x) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
|
|
5601
5589
|
/* @__PURE__ */ r("div", { className: "dropdown-menu", children: b ? b(x) : x }),
|
|
5602
5590
|
E && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r(P1, {}) })
|
|
5603
5591
|
] })
|
|
5604
5592
|
}
|
|
5605
5593
|
),
|
|
5606
|
-
t && /* @__PURE__ */
|
|
5594
|
+
t && /* @__PURE__ */ C(i1, { children: [
|
|
5607
5595
|
/* @__PURE__ */ r(
|
|
5608
5596
|
"label",
|
|
5609
5597
|
{
|
|
5610
|
-
className: `${G || W ? "label-floating" : ""} ${
|
|
5611
|
-
children:
|
|
5598
|
+
className: `${G || W ? "label-floating" : ""} ${d ? "label-disabled" : ""} ${G ? "label-focused" : ""} ${E ? "label-loading" : ""} ${N ? "label-error" : ""}`,
|
|
5599
|
+
children: l ? `${t}*` : t
|
|
5612
5600
|
}
|
|
5613
5601
|
),
|
|
5614
5602
|
/* @__PURE__ */ r(
|
|
5615
5603
|
"fieldset",
|
|
5616
5604
|
{
|
|
5617
|
-
className: `${G ? "fieldset-focused" : ""} ${
|
|
5618
|
-
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children:
|
|
5605
|
+
className: `${G ? "fieldset-focused" : ""} ${d ? "fieldset-disabled" : ""} ${W ? "fieldset-filled" : ""} ${N ? "fieldset-error" : ""}`,
|
|
5606
|
+
children: /* @__PURE__ */ r("legend", { children: /* @__PURE__ */ r("span", { children: l ? `${t}*` : t }) })
|
|
5619
5607
|
}
|
|
5620
5608
|
)
|
|
5621
5609
|
] })
|
|
5622
5610
|
]
|
|
5623
5611
|
}
|
|
5624
5612
|
),
|
|
5625
|
-
N && /* @__PURE__ */
|
|
5613
|
+
N && /* @__PURE__ */ C(p1, { justifyContent: "flex-start", gap: 6, children: [
|
|
5626
5614
|
/* @__PURE__ */ r(
|
|
5627
5615
|
u1,
|
|
5628
5616
|
{
|
|
@@ -5639,7 +5627,7 @@ const At = ({
|
|
|
5639
5627
|
);
|
|
5640
5628
|
function Ot(i, e = 500) {
|
|
5641
5629
|
const t = $();
|
|
5642
|
-
return
|
|
5630
|
+
return Z(() => () => {
|
|
5643
5631
|
t.current && clearTimeout(t.current);
|
|
5644
5632
|
}, []), (...n) => {
|
|
5645
5633
|
const s = setTimeout(() => {
|
|
@@ -5650,7 +5638,7 @@ function Ot(i, e = 500) {
|
|
|
5650
5638
|
}
|
|
5651
5639
|
function $1(i) {
|
|
5652
5640
|
const e = $(i);
|
|
5653
|
-
return
|
|
5641
|
+
return Z(() => {
|
|
5654
5642
|
e.current = i;
|
|
5655
5643
|
}, [i]), e.current;
|
|
5656
5644
|
}
|
|
@@ -5665,11 +5653,11 @@ const E1 = 100, l1 = {
|
|
|
5665
5653
|
id: s,
|
|
5666
5654
|
disabled: o,
|
|
5667
5655
|
scrollThresholdValue: c,
|
|
5668
|
-
placeholder:
|
|
5669
|
-
mode:
|
|
5670
|
-
loadOnClosedState:
|
|
5671
|
-
preloadOptions:
|
|
5672
|
-
extraOptions:
|
|
5656
|
+
placeholder: d,
|
|
5657
|
+
mode: l,
|
|
5658
|
+
loadOnClosedState: a,
|
|
5659
|
+
preloadOptions: h,
|
|
5660
|
+
extraOptions: u,
|
|
5673
5661
|
onDropdownVisibleChange: g,
|
|
5674
5662
|
optionRender: f,
|
|
5675
5663
|
dropdownRender: w,
|
|
@@ -5678,25 +5666,25 @@ const E1 = 100, l1 = {
|
|
|
5678
5666
|
required: b = !1,
|
|
5679
5667
|
error: y
|
|
5680
5668
|
}, E) => {
|
|
5681
|
-
const [p, N] =
|
|
5682
|
-
|
|
5683
|
-
), q = $1(_.offset), X = $1(T), [D, F] =
|
|
5669
|
+
const [p, N] = O(), [_, R] = O(l1), [V, G] = O(!1), [T, Y] = O(), [Q, A] = O(!1), [P, z] = O(
|
|
5670
|
+
u ?? []
|
|
5671
|
+
), q = $1(_.offset), X = $1(T), [D, F] = O(!1), j = $(!1), e1 = K(
|
|
5684
5672
|
async ({
|
|
5685
|
-
limit:
|
|
5673
|
+
limit: I = E1,
|
|
5686
5674
|
offset: W,
|
|
5687
5675
|
search: x
|
|
5688
5676
|
}) => {
|
|
5689
5677
|
G(!0);
|
|
5690
5678
|
try {
|
|
5691
5679
|
const H = await i({
|
|
5692
|
-
limit:
|
|
5680
|
+
limit: I,
|
|
5693
5681
|
offset: W,
|
|
5694
5682
|
search: x
|
|
5695
5683
|
});
|
|
5696
5684
|
N(
|
|
5697
|
-
(
|
|
5698
|
-
), R((
|
|
5699
|
-
...
|
|
5685
|
+
(S) => W === 0 ? H.options : [...S ?? [], ...H.options]
|
|
5686
|
+
), R((S) => ({
|
|
5687
|
+
...S,
|
|
5700
5688
|
count: H.count
|
|
5701
5689
|
}));
|
|
5702
5690
|
} catch (H) {
|
|
@@ -5706,58 +5694,58 @@ const E1 = 100, l1 = {
|
|
|
5706
5694
|
}
|
|
5707
5695
|
},
|
|
5708
5696
|
[i]
|
|
5709
|
-
), t1 = Ot((
|
|
5710
|
-
Y(
|
|
5711
|
-
}),
|
|
5712
|
-
(
|
|
5697
|
+
), t1 = Ot((I) => {
|
|
5698
|
+
Y(I), I || R(l1);
|
|
5699
|
+
}), C1 = K(
|
|
5700
|
+
(I) => t1(I),
|
|
5713
5701
|
[t1]
|
|
5714
5702
|
), v1 = K(
|
|
5715
|
-
async (
|
|
5716
|
-
V ||
|
|
5703
|
+
async (I) => {
|
|
5704
|
+
V || I && _.count && _.count > ((p == null ? void 0 : p.length) ?? 0) && R((W) => ({
|
|
5717
5705
|
...W,
|
|
5718
5706
|
offset: W.offset + E1
|
|
5719
5707
|
}));
|
|
5720
5708
|
},
|
|
5721
5709
|
[V, p == null ? void 0 : p.length, _.count]
|
|
5722
5710
|
), N1 = K(
|
|
5723
|
-
(
|
|
5724
|
-
I
|
|
5711
|
+
(I) => {
|
|
5712
|
+
A(I), !I && T && (Y(void 0), R(l1), F(!0)), g == null || g(I);
|
|
5725
5713
|
},
|
|
5726
5714
|
[g, T]
|
|
5727
5715
|
);
|
|
5728
|
-
|
|
5716
|
+
Z(() => {
|
|
5729
5717
|
!j.current || V || (D || Q && (q !== _.offset || X !== T || !p)) && (e1({ offset: _.offset, limit: E1, search: T }), D && F(!1));
|
|
5730
|
-
}, [D, Q, _.offset, T, q, X, p, V]),
|
|
5731
|
-
(
|
|
5732
|
-
}, []),
|
|
5733
|
-
|
|
5734
|
-
const W =
|
|
5735
|
-
(x) => !
|
|
5718
|
+
}, [D, Q, _.offset, T, q, X, p, V]), Z(() => {
|
|
5719
|
+
(a || h) && e1(l1), j.current = !0;
|
|
5720
|
+
}, []), Z(() => {
|
|
5721
|
+
u && z((I) => {
|
|
5722
|
+
const W = u.filter(
|
|
5723
|
+
(x) => !I.some((H) => H.value === x.value)
|
|
5736
5724
|
);
|
|
5737
|
-
return [...
|
|
5725
|
+
return [...I, ...W];
|
|
5738
5726
|
});
|
|
5739
|
-
}, [
|
|
5727
|
+
}, [u]);
|
|
5740
5728
|
const o1 = K(
|
|
5741
|
-
(
|
|
5742
|
-
t && t(
|
|
5729
|
+
(I) => {
|
|
5730
|
+
t && t(I);
|
|
5743
5731
|
let W = [];
|
|
5744
|
-
if (
|
|
5732
|
+
if (l ? W = Array.isArray(I) ? I : [] : W = I ? [I] : [], T) {
|
|
5745
5733
|
const x = W.filter(
|
|
5746
|
-
(H) => !(P != null && P.some((
|
|
5734
|
+
(H) => !(P != null && P.some((S) => S.value === H))
|
|
5747
5735
|
);
|
|
5748
5736
|
x.length > 0 && z((H = []) => [
|
|
5749
5737
|
...H,
|
|
5750
|
-
...x.map((
|
|
5751
|
-
const a1 = p == null ? void 0 : p.find((p2) => p2.value ===
|
|
5738
|
+
...x.map((S) => {
|
|
5739
|
+
const a1 = p == null ? void 0 : p.find((p2) => p2.value === S);
|
|
5752
5740
|
return {
|
|
5753
|
-
value:
|
|
5754
|
-
label: (a1 == null ? void 0 : a1.label) ??
|
|
5741
|
+
value: S,
|
|
5742
|
+
label: (a1 == null ? void 0 : a1.label) ?? S
|
|
5755
5743
|
};
|
|
5756
5744
|
})
|
|
5757
5745
|
]), Y(void 0), R(l1), F(!0);
|
|
5758
5746
|
}
|
|
5759
5747
|
},
|
|
5760
|
-
[t, T,
|
|
5748
|
+
[t, T, l, p, P]
|
|
5761
5749
|
), R1 = k2(
|
|
5762
5750
|
() => ({
|
|
5763
5751
|
id: s,
|
|
@@ -5765,10 +5753,10 @@ const E1 = 100, l1 = {
|
|
|
5765
5753
|
options: p || [],
|
|
5766
5754
|
onChange: o1,
|
|
5767
5755
|
ref: E,
|
|
5768
|
-
placeholder:
|
|
5756
|
+
placeholder: d,
|
|
5769
5757
|
search: !0,
|
|
5770
5758
|
value: n,
|
|
5771
|
-
onSearchChange:
|
|
5759
|
+
onSearchChange: C1,
|
|
5772
5760
|
onDropdownVisibleChange: N1,
|
|
5773
5761
|
scrollThresholdValue: c,
|
|
5774
5762
|
onScrollToEnd: v1,
|
|
@@ -5788,9 +5776,9 @@ const E1 = 100, l1 = {
|
|
|
5788
5776
|
p,
|
|
5789
5777
|
o1,
|
|
5790
5778
|
E,
|
|
5791
|
-
|
|
5779
|
+
d,
|
|
5792
5780
|
n,
|
|
5793
|
-
|
|
5781
|
+
C1,
|
|
5794
5782
|
N1,
|
|
5795
5783
|
c,
|
|
5796
5784
|
v1,
|
|
@@ -5809,7 +5797,7 @@ const E1 = 100, l1 = {
|
|
|
5809
5797
|
refetchOptions: async () => {
|
|
5810
5798
|
R(l1), Y(void 0), F(!0);
|
|
5811
5799
|
}
|
|
5812
|
-
})),
|
|
5800
|
+
})), l ? /* @__PURE__ */ r(j1, { ...R1, value: n, mode: l }) : /* @__PURE__ */ r("div", { className: "snmt-async-select", children: /* @__PURE__ */ r(j1, { ...R1, value: n }) });
|
|
5813
5801
|
}
|
|
5814
5802
|
), M = (i) => typeof i == "string", f1 = () => {
|
|
5815
5803
|
let i, e;
|
|
@@ -5842,10 +5830,10 @@ const E1 = 100, l1 = {
|
|
|
5842
5830
|
n[s] = t;
|
|
5843
5831
|
return;
|
|
5844
5832
|
}
|
|
5845
|
-
let o = e[e.length - 1], c = e.slice(0, e.length - 1),
|
|
5846
|
-
for (;
|
|
5847
|
-
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1),
|
|
5848
|
-
|
|
5833
|
+
let o = e[e.length - 1], c = e.slice(0, e.length - 1), d = w1(i, c, Object);
|
|
5834
|
+
for (; d.obj === void 0 && c.length; )
|
|
5835
|
+
o = `${c[c.length - 1]}.${o}`, c = c.slice(0, c.length - 1), d = w1(i, c, Object), d && d.obj && typeof d.obj[`${d.k}.${o}`] < "u" && (d.obj = void 0);
|
|
5836
|
+
d.obj[`${d.k}.${o}`] = t;
|
|
5849
5837
|
}, Dt = (i, e, t, n) => {
|
|
5850
5838
|
const {
|
|
5851
5839
|
obj: s,
|
|
@@ -5908,12 +5896,12 @@ const Pt = [" ", ",", "?", "!", ";"], jt = new Yt(20), $t = (i, e, t) => {
|
|
|
5908
5896
|
for (let o = 0; o < n.length; ) {
|
|
5909
5897
|
if (!s || typeof s != "object")
|
|
5910
5898
|
return;
|
|
5911
|
-
let c,
|
|
5912
|
-
for (let
|
|
5913
|
-
if (
|
|
5914
|
-
if (["string", "number", "boolean"].indexOf(typeof c) > -1 &&
|
|
5899
|
+
let c, d = "";
|
|
5900
|
+
for (let l = o; l < n.length; ++l)
|
|
5901
|
+
if (l !== o && (d += t), d += n[l], c = s[d], c !== void 0) {
|
|
5902
|
+
if (["string", "number", "boolean"].indexOf(typeof c) > -1 && l < n.length - 1)
|
|
5915
5903
|
continue;
|
|
5916
|
-
o +=
|
|
5904
|
+
o += l - o + 1;
|
|
5917
5905
|
break;
|
|
5918
5906
|
}
|
|
5919
5907
|
s = c;
|
|
@@ -6001,13 +5989,13 @@ class H1 {
|
|
|
6001
5989
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
6002
5990
|
n[s - 1] = arguments[s];
|
|
6003
5991
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((c) => {
|
|
6004
|
-
let [
|
|
6005
|
-
for (let
|
|
6006
|
-
|
|
5992
|
+
let [d, l] = c;
|
|
5993
|
+
for (let a = 0; a < l; a++)
|
|
5994
|
+
d(...n);
|
|
6007
5995
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((c) => {
|
|
6008
|
-
let [
|
|
6009
|
-
for (let
|
|
6010
|
-
|
|
5996
|
+
let [d, l] = c;
|
|
5997
|
+
for (let a = 0; a < l; a++)
|
|
5998
|
+
d.apply(d, [e, ...n]);
|
|
6011
5999
|
});
|
|
6012
6000
|
}
|
|
6013
6001
|
}
|
|
@@ -6029,18 +6017,18 @@ class J1 extends H1 {
|
|
|
6029
6017
|
getResource(e, t, n) {
|
|
6030
6018
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6031
6019
|
const o = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
6032
|
-
let
|
|
6033
|
-
e.indexOf(".") > -1 ?
|
|
6034
|
-
const
|
|
6035
|
-
return !
|
|
6020
|
+
let d;
|
|
6021
|
+
e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], n && (Array.isArray(n) ? d.push(...n) : M(n) && o ? d.push(...n.split(o)) : d.push(n)));
|
|
6022
|
+
const l = _1(this.data, d);
|
|
6023
|
+
return !l && !t && !n && e.indexOf(".") > -1 && (e = d[0], t = d[1], n = d.slice(2).join(".")), l || !c || !M(n) ? l : O1(this.data && this.data[e] && this.data[e][t], n, o);
|
|
6036
6024
|
}
|
|
6037
6025
|
addResource(e, t, n, s) {
|
|
6038
6026
|
let o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
6039
6027
|
silent: !1
|
|
6040
6028
|
};
|
|
6041
6029
|
const c = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator;
|
|
6042
|
-
let
|
|
6043
|
-
n && (
|
|
6030
|
+
let d = [e, t];
|
|
6031
|
+
n && (d = d.concat(c ? n.split(c) : n)), e.indexOf(".") > -1 && (d = e.split("."), s = t, t = d[1]), this.addNamespaces(t), z1(this.data, d, s), o.silent || this.emit("added", e, t, n, s);
|
|
6044
6032
|
}
|
|
6045
6033
|
addResources(e, t, n) {
|
|
6046
6034
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -6056,13 +6044,13 @@ class J1 extends H1 {
|
|
|
6056
6044
|
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
|
|
6057
6045
|
silent: !1,
|
|
6058
6046
|
skipCopy: !1
|
|
6059
|
-
},
|
|
6060
|
-
e.indexOf(".") > -1 && (
|
|
6061
|
-
let
|
|
6062
|
-
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? d2(
|
|
6063
|
-
...
|
|
6047
|
+
}, d = [e, t];
|
|
6048
|
+
e.indexOf(".") > -1 && (d = e.split("."), s = n, n = t, t = d[1]), this.addNamespaces(t);
|
|
6049
|
+
let l = _1(this.data, d) || {};
|
|
6050
|
+
c.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? d2(l, n, o) : l = {
|
|
6051
|
+
...l,
|
|
6064
6052
|
...n
|
|
6065
|
-
}, z1(this.data,
|
|
6053
|
+
}, z1(this.data, d, l), c.silent || this.emit("added", e, t, n);
|
|
6066
6054
|
}
|
|
6067
6055
|
removeResourceBundle(e, t) {
|
|
6068
6056
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -6086,7 +6074,7 @@ class J1 extends H1 {
|
|
|
6086
6074
|
return this.data;
|
|
6087
6075
|
}
|
|
6088
6076
|
}
|
|
6089
|
-
var
|
|
6077
|
+
var g2 = {
|
|
6090
6078
|
processors: {},
|
|
6091
6079
|
addPostProcessor(i) {
|
|
6092
6080
|
this.processors[i.name] = i;
|
|
@@ -6120,16 +6108,16 @@ class y1 extends H1 {
|
|
|
6120
6108
|
n === void 0 && (n = ":");
|
|
6121
6109
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
6122
6110
|
let o = t.ns || this.options.defaultNS || [];
|
|
6123
|
-
const c = n && e.indexOf(n) > -1,
|
|
6124
|
-
if (c && !
|
|
6125
|
-
const
|
|
6126
|
-
if (
|
|
6111
|
+
const c = n && e.indexOf(n) > -1, d = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !$t(e, n, s);
|
|
6112
|
+
if (c && !d) {
|
|
6113
|
+
const l = e.match(this.interpolator.nestingRegexp);
|
|
6114
|
+
if (l && l.length > 0)
|
|
6127
6115
|
return {
|
|
6128
6116
|
key: e,
|
|
6129
6117
|
namespaces: M(o) ? [o] : o
|
|
6130
6118
|
};
|
|
6131
|
-
const
|
|
6132
|
-
(n !== s || n === s && this.options.ns.indexOf(
|
|
6119
|
+
const a = e.split(n);
|
|
6120
|
+
(n !== s || n === s && this.options.ns.indexOf(a[0]) > -1) && (o = a.shift()), e = a.join(s);
|
|
6133
6121
|
}
|
|
6134
6122
|
return {
|
|
6135
6123
|
key: e,
|
|
@@ -6143,40 +6131,40 @@ class y1 extends H1 {
|
|
|
6143
6131
|
Array.isArray(e) || (e = [String(e)]);
|
|
6144
6132
|
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, o = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
6145
6133
|
key: c,
|
|
6146
|
-
namespaces:
|
|
6147
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
6148
|
-
if (
|
|
6149
|
-
if (
|
|
6134
|
+
namespaces: d
|
|
6135
|
+
} = this.extractFromKey(e[e.length - 1], t), l = d[d.length - 1], a = t.lng || this.language, h = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
6136
|
+
if (a && a.toLowerCase() === "cimode") {
|
|
6137
|
+
if (h) {
|
|
6150
6138
|
const p = t.nsSeparator || this.options.nsSeparator;
|
|
6151
6139
|
return s ? {
|
|
6152
|
-
res: `${
|
|
6140
|
+
res: `${l}${p}${c}`,
|
|
6153
6141
|
usedKey: c,
|
|
6154
6142
|
exactUsedKey: c,
|
|
6155
|
-
usedLng:
|
|
6156
|
-
usedNS:
|
|
6143
|
+
usedLng: a,
|
|
6144
|
+
usedNS: l,
|
|
6157
6145
|
usedParams: this.getUsedParamsDetails(t)
|
|
6158
|
-
} : `${
|
|
6146
|
+
} : `${l}${p}${c}`;
|
|
6159
6147
|
}
|
|
6160
6148
|
return s ? {
|
|
6161
6149
|
res: c,
|
|
6162
6150
|
usedKey: c,
|
|
6163
6151
|
exactUsedKey: c,
|
|
6164
|
-
usedLng:
|
|
6165
|
-
usedNS:
|
|
6152
|
+
usedLng: a,
|
|
6153
|
+
usedNS: l,
|
|
6166
6154
|
usedParams: this.getUsedParamsDetails(t)
|
|
6167
6155
|
} : c;
|
|
6168
6156
|
}
|
|
6169
|
-
const
|
|
6170
|
-
let g =
|
|
6171
|
-
const f =
|
|
6157
|
+
const u = this.resolve(e, t);
|
|
6158
|
+
let g = u && u.res;
|
|
6159
|
+
const f = u && u.usedKey || c, w = u && u.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, E = !M(g) && typeof g != "boolean" && typeof g != "number";
|
|
6172
6160
|
if (y && g && E && m.indexOf(v) < 0 && !(M(b) && Array.isArray(g))) {
|
|
6173
6161
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
6174
6162
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
6175
6163
|
const p = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, g, {
|
|
6176
6164
|
...t,
|
|
6177
|
-
ns:
|
|
6165
|
+
ns: d
|
|
6178
6166
|
}) : `key '${c} (${this.language})' returned an object instead of string.`;
|
|
6179
|
-
return s ? (
|
|
6167
|
+
return s ? (u.res = p, u.usedParams = this.getUsedParamsDetails(t), u) : p;
|
|
6180
6168
|
}
|
|
6181
6169
|
if (o) {
|
|
6182
6170
|
const p = Array.isArray(g), N = p ? [] : {}, _ = p ? w : f;
|
|
@@ -6186,7 +6174,7 @@ class y1 extends H1 {
|
|
|
6186
6174
|
N[R] = this.translate(V, {
|
|
6187
6175
|
...t,
|
|
6188
6176
|
joinArrays: !1,
|
|
6189
|
-
ns:
|
|
6177
|
+
ns: d
|
|
6190
6178
|
}), N[R] === V && (N[R] = g[R]);
|
|
6191
6179
|
}
|
|
6192
6180
|
g = N;
|
|
@@ -6195,13 +6183,13 @@ class y1 extends H1 {
|
|
|
6195
6183
|
g = g.join(b), g && (g = this.extendTranslation(g, e, t, n));
|
|
6196
6184
|
else {
|
|
6197
6185
|
let p = !1, N = !1;
|
|
6198
|
-
const _ = t.count !== void 0 && !M(t.count), R = y1.hasDefaultValue(t), V = _ ? this.pluralResolver.getSuffix(
|
|
6186
|
+
const _ = t.count !== void 0 && !M(t.count), R = y1.hasDefaultValue(t), V = _ ? this.pluralResolver.getSuffix(a, t.count, t) : "", G = t.ordinal && _ ? this.pluralResolver.getSuffix(a, t.count, {
|
|
6199
6187
|
ordinal: !1
|
|
6200
6188
|
}) : "", T = _ && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), Y = T && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${V}`] || t[`defaultValue${G}`] || t.defaultValue;
|
|
6201
6189
|
!this.isValidLookup(g) && R && (p = !0, g = Y), this.isValidLookup(g) || (N = !0, g = c);
|
|
6202
|
-
const
|
|
6190
|
+
const A = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : g, P = R && Y !== g && this.options.updateMissing;
|
|
6203
6191
|
if (N || p || P) {
|
|
6204
|
-
if (this.logger.log(P ? "updateKey" : "missingKey",
|
|
6192
|
+
if (this.logger.log(P ? "updateKey" : "missingKey", a, l, c, P ? Y : g), o) {
|
|
6205
6193
|
const D = this.resolve(c, {
|
|
6206
6194
|
...t,
|
|
6207
6195
|
keySeparator: !1
|
|
@@ -6215,8 +6203,8 @@ class y1 extends H1 {
|
|
|
6215
6203
|
z.push(q[D]);
|
|
6216
6204
|
else this.options.saveMissingTo === "all" ? z = this.languageUtils.toResolveHierarchy(t.lng || this.language) : z.push(t.lng || this.language);
|
|
6217
6205
|
const X = (D, F, j) => {
|
|
6218
|
-
const e1 = R && j !== g ? j :
|
|
6219
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(D,
|
|
6206
|
+
const e1 = R && j !== g ? j : A;
|
|
6207
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(D, l, F, e1, P, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(D, l, F, e1, P, t), this.emit("missingKey", D, l, F, g);
|
|
6220
6208
|
};
|
|
6221
6209
|
this.options.saveMissing && (this.options.saveMissingPlurals && _ ? z.forEach((D) => {
|
|
6222
6210
|
const F = this.pluralResolver.getSuffixes(D, t);
|
|
@@ -6225,9 +6213,9 @@ class y1 extends H1 {
|
|
|
6225
6213
|
});
|
|
6226
6214
|
}) : X(z, c, Y));
|
|
6227
6215
|
}
|
|
6228
|
-
g = this.extendTranslation(g, e, t,
|
|
6216
|
+
g = this.extendTranslation(g, e, t, u, n), N && g === c && this.options.appendNamespaceToMissingKey && (g = `${l}:${c}`), (N || p) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${c}` : c, p ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
|
|
6229
6217
|
}
|
|
6230
|
-
return s ? (
|
|
6218
|
+
return s ? (u.res = g, u.usedParams = this.getUsedParamsDetails(t), u) : g;
|
|
6231
6219
|
}
|
|
6232
6220
|
extendTranslation(e, t, n, s, o) {
|
|
6233
6221
|
var c = this;
|
|
@@ -6246,19 +6234,19 @@ class y1 extends H1 {
|
|
|
6246
6234
|
...n.interpolation
|
|
6247
6235
|
}
|
|
6248
6236
|
});
|
|
6249
|
-
const
|
|
6250
|
-
let
|
|
6251
|
-
if (
|
|
6237
|
+
const a = M(e) && (n && n.interpolation && n.interpolation.skipOnVariables !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
6238
|
+
let h;
|
|
6239
|
+
if (a) {
|
|
6252
6240
|
const g = e.match(this.interpolator.nestingRegexp);
|
|
6253
|
-
|
|
6241
|
+
h = g && g.length;
|
|
6254
6242
|
}
|
|
6255
|
-
let
|
|
6256
|
-
if (this.options.interpolation.defaultVariables && (
|
|
6243
|
+
let u = n.replace && !M(n.replace) ? n.replace : n;
|
|
6244
|
+
if (this.options.interpolation.defaultVariables && (u = {
|
|
6257
6245
|
...this.options.interpolation.defaultVariables,
|
|
6258
|
-
...
|
|
6259
|
-
}), e = this.interpolator.interpolate(e,
|
|
6246
|
+
...u
|
|
6247
|
+
}), e = this.interpolator.interpolate(e, u, n.lng || this.language || s.usedLng, n), a) {
|
|
6260
6248
|
const g = e.match(this.interpolator.nestingRegexp), f = g && g.length;
|
|
6261
|
-
|
|
6249
|
+
h < f && (n.nest = !1);
|
|
6262
6250
|
}
|
|
6263
6251
|
!n.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
6264
6252
|
for (var g = arguments.length, f = new Array(g), w = 0; w < g; w++)
|
|
@@ -6266,8 +6254,8 @@ class y1 extends H1 {
|
|
|
6266
6254
|
return o && o[0] === f[0] && !n.context ? (c.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : c.translate(...f, t);
|
|
6267
6255
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
6268
6256
|
}
|
|
6269
|
-
const
|
|
6270
|
-
return e != null &&
|
|
6257
|
+
const d = n.postProcess || this.options.postProcess, l = M(d) ? [d] : d;
|
|
6258
|
+
return e != null && l && l.length && n.applyPostProcessor !== !1 && (e = g2.handle(l, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
6271
6259
|
i18nResolved: {
|
|
6272
6260
|
...s,
|
|
6273
6261
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -6276,27 +6264,27 @@ class y1 extends H1 {
|
|
|
6276
6264
|
} : n, this)), e;
|
|
6277
6265
|
}
|
|
6278
6266
|
resolve(e) {
|
|
6279
|
-
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s, o, c,
|
|
6280
|
-
return M(e) && (e = [e]), e.forEach((
|
|
6267
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n, s, o, c, d;
|
|
6268
|
+
return M(e) && (e = [e]), e.forEach((l) => {
|
|
6281
6269
|
if (this.isValidLookup(n)) return;
|
|
6282
|
-
const
|
|
6283
|
-
s =
|
|
6284
|
-
let
|
|
6285
|
-
this.options.fallbackNS && (
|
|
6270
|
+
const a = this.extractFromKey(l, t), h = a.key;
|
|
6271
|
+
s = h;
|
|
6272
|
+
let u = a.namespaces;
|
|
6273
|
+
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
6286
6274
|
const g = t.count !== void 0 && !M(t.count), f = 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);
|
|
6287
|
-
|
|
6288
|
-
this.isValidLookup(n) || (
|
|
6275
|
+
u.forEach((m) => {
|
|
6276
|
+
this.isValidLookup(n) || (d = m, !q1[`${v[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (q1[`${v[0]}-${m}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((b) => {
|
|
6289
6277
|
if (this.isValidLookup(n)) return;
|
|
6290
6278
|
c = b;
|
|
6291
|
-
const y = [
|
|
6279
|
+
const y = [h];
|
|
6292
6280
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
|
6293
|
-
this.i18nFormat.addLookupKeys(y,
|
|
6281
|
+
this.i18nFormat.addLookupKeys(y, h, b, m, t);
|
|
6294
6282
|
else {
|
|
6295
6283
|
let p;
|
|
6296
6284
|
g && (p = this.pluralResolver.getSuffix(b, t.count, t));
|
|
6297
6285
|
const N = `${this.options.pluralSeparator}zero`, _ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
6298
|
-
if (g && (y.push(
|
|
6299
|
-
const R = `${
|
|
6286
|
+
if (g && (y.push(h + p), t.ordinal && p.indexOf(_) === 0 && y.push(h + p.replace(_, this.options.pluralSeparator)), f && y.push(h + N)), w) {
|
|
6287
|
+
const R = `${h}${this.options.contextSeparator}${t.context}`;
|
|
6300
6288
|
y.push(R), g && (y.push(R + p), t.ordinal && p.indexOf(_) === 0 && y.push(R + p.replace(_, this.options.pluralSeparator)), f && y.push(R + N));
|
|
6301
6289
|
}
|
|
6302
6290
|
}
|
|
@@ -6310,7 +6298,7 @@ class y1 extends H1 {
|
|
|
6310
6298
|
usedKey: s,
|
|
6311
6299
|
exactUsedKey: o,
|
|
6312
6300
|
usedLng: c,
|
|
6313
|
-
usedNS:
|
|
6301
|
+
usedNS: d
|
|
6314
6302
|
};
|
|
6315
6303
|
}
|
|
6316
6304
|
isValidLookup(e) {
|
|
@@ -6571,8 +6559,8 @@ class Qt {
|
|
|
6571
6559
|
});
|
|
6572
6560
|
} catch {
|
|
6573
6561
|
if (!e.match(/-|_/)) return;
|
|
6574
|
-
const
|
|
6575
|
-
c = this.getRule(
|
|
6562
|
+
const l = this.languageUtils.getLanguagePartFromCode(e);
|
|
6563
|
+
c = this.getRule(l, t);
|
|
6576
6564
|
}
|
|
6577
6565
|
return this.pluralRulesCache[o] = c, c;
|
|
6578
6566
|
}
|
|
@@ -6628,11 +6616,11 @@ class Xt {
|
|
|
6628
6616
|
useRawValueToEscape: s,
|
|
6629
6617
|
prefix: o,
|
|
6630
6618
|
prefixEscaped: c,
|
|
6631
|
-
suffix:
|
|
6632
|
-
suffixEscaped:
|
|
6633
|
-
formatSeparator:
|
|
6634
|
-
unescapeSuffix:
|
|
6635
|
-
unescapePrefix:
|
|
6619
|
+
suffix: d,
|
|
6620
|
+
suffixEscaped: l,
|
|
6621
|
+
formatSeparator: a,
|
|
6622
|
+
unescapeSuffix: h,
|
|
6623
|
+
unescapePrefix: u,
|
|
6636
6624
|
nestingPrefix: g,
|
|
6637
6625
|
nestingPrefixEscaped: f,
|
|
6638
6626
|
nestingSuffix: w,
|
|
@@ -6641,7 +6629,7 @@ class Xt {
|
|
|
6641
6629
|
maxReplaces: b,
|
|
6642
6630
|
alwaysFormat: y
|
|
6643
6631
|
} = e.interpolation;
|
|
6644
|
-
this.escape = t !== void 0 ? t : Bt, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? h1(o) : c || "{{", this.suffix =
|
|
6632
|
+
this.escape = t !== void 0 ? t : Bt, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? h1(o) : c || "{{", this.suffix = d ? h1(d) : l || "}}", this.formatSeparator = a || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = g ? h1(g) : f || 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();
|
|
6645
6633
|
}
|
|
6646
6634
|
reset() {
|
|
6647
6635
|
this.options && this.init(this.options);
|
|
@@ -6651,10 +6639,10 @@ class Xt {
|
|
|
6651
6639
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
6652
6640
|
}
|
|
6653
6641
|
interpolate(e, t, n, s) {
|
|
6654
|
-
let o, c,
|
|
6655
|
-
const
|
|
6642
|
+
let o, c, d;
|
|
6643
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (f) => {
|
|
6656
6644
|
if (f.indexOf(this.formatSeparator) < 0) {
|
|
6657
|
-
const b = e2(t,
|
|
6645
|
+
const b = e2(t, l, f, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
6658
6646
|
return this.alwaysFormat ? this.format(b, void 0, n, {
|
|
6659
6647
|
...s,
|
|
6660
6648
|
...t,
|
|
@@ -6662,14 +6650,14 @@ class Xt {
|
|
|
6662
6650
|
}) : b;
|
|
6663
6651
|
}
|
|
6664
6652
|
const w = f.split(this.formatSeparator), v = w.shift().trim(), m = w.join(this.formatSeparator).trim();
|
|
6665
|
-
return this.format(e2(t,
|
|
6653
|
+
return this.format(e2(t, l, v, this.options.keySeparator, this.options.ignoreJSONStructure), m, n, {
|
|
6666
6654
|
...s,
|
|
6667
6655
|
...t,
|
|
6668
6656
|
interpolationkey: v
|
|
6669
6657
|
});
|
|
6670
6658
|
};
|
|
6671
6659
|
this.resetRegExp();
|
|
6672
|
-
const
|
|
6660
|
+
const h = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler, u = s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
6673
6661
|
return [{
|
|
6674
6662
|
regex: this.regexpUnescape,
|
|
6675
6663
|
safeValue: (f) => A1(f)
|
|
@@ -6677,58 +6665,58 @@ class Xt {
|
|
|
6677
6665
|
regex: this.regexp,
|
|
6678
6666
|
safeValue: (f) => this.escapeValue ? A1(this.escape(f)) : A1(f)
|
|
6679
6667
|
}].forEach((f) => {
|
|
6680
|
-
for (
|
|
6668
|
+
for (d = 0; o = f.regex.exec(e); ) {
|
|
6681
6669
|
const w = o[1].trim();
|
|
6682
|
-
if (c =
|
|
6683
|
-
if (typeof
|
|
6684
|
-
const m =
|
|
6670
|
+
if (c = a(w), c === void 0)
|
|
6671
|
+
if (typeof h == "function") {
|
|
6672
|
+
const m = h(e, o, s);
|
|
6685
6673
|
c = M(m) ? m : "";
|
|
6686
6674
|
} else if (s && Object.prototype.hasOwnProperty.call(s, w))
|
|
6687
6675
|
c = "";
|
|
6688
|
-
else if (
|
|
6676
|
+
else if (u) {
|
|
6689
6677
|
c = o[0];
|
|
6690
6678
|
continue;
|
|
6691
6679
|
} else
|
|
6692
6680
|
this.logger.warn(`missed to pass in variable ${w} for interpolating ${e}`), c = "";
|
|
6693
6681
|
else !M(c) && !this.useRawValueToEscape && (c = F1(c));
|
|
6694
6682
|
const v = f.safeValue(c);
|
|
6695
|
-
if (e = e.replace(o[0], v),
|
|
6683
|
+
if (e = e.replace(o[0], v), u ? (f.regex.lastIndex += c.length, f.regex.lastIndex -= o[0].length) : f.regex.lastIndex = 0, d++, d >= this.maxReplaces)
|
|
6696
6684
|
break;
|
|
6697
6685
|
}
|
|
6698
6686
|
}), e;
|
|
6699
6687
|
}
|
|
6700
6688
|
nest(e, t) {
|
|
6701
6689
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, o, c;
|
|
6702
|
-
const
|
|
6703
|
-
const
|
|
6704
|
-
if (
|
|
6705
|
-
const
|
|
6706
|
-
let g = `{${
|
|
6707
|
-
|
|
6690
|
+
const d = (l, a) => {
|
|
6691
|
+
const h = this.nestingOptionsSeparator;
|
|
6692
|
+
if (l.indexOf(h) < 0) return l;
|
|
6693
|
+
const u = l.split(new RegExp(`${h}[ ]*{`));
|
|
6694
|
+
let g = `{${u[1]}`;
|
|
6695
|
+
l = u[0], g = this.interpolate(g, c);
|
|
6708
6696
|
const f = g.match(/'/g), w = g.match(/"/g);
|
|
6709
6697
|
(f && f.length % 2 === 0 && !w || w.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
6710
6698
|
try {
|
|
6711
|
-
c = JSON.parse(g),
|
|
6712
|
-
...
|
|
6699
|
+
c = JSON.parse(g), a && (c = {
|
|
6700
|
+
...a,
|
|
6713
6701
|
...c
|
|
6714
6702
|
});
|
|
6715
6703
|
} catch (v) {
|
|
6716
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
6704
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, v), `${l}${h}${g}`;
|
|
6717
6705
|
}
|
|
6718
|
-
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue,
|
|
6706
|
+
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, l;
|
|
6719
6707
|
};
|
|
6720
6708
|
for (; s = this.nestingRegexp.exec(e); ) {
|
|
6721
|
-
let
|
|
6709
|
+
let l = [];
|
|
6722
6710
|
c = {
|
|
6723
6711
|
...n
|
|
6724
6712
|
}, c = c.replace && !M(c.replace) ? c.replace : c, c.applyPostProcessor = !1, delete c.defaultValue;
|
|
6725
|
-
let
|
|
6713
|
+
let a = !1;
|
|
6726
6714
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
6727
|
-
const
|
|
6728
|
-
s[1] =
|
|
6715
|
+
const h = s[1].split(this.formatSeparator).map((u) => u.trim());
|
|
6716
|
+
s[1] = h.shift(), l = h, a = !0;
|
|
6729
6717
|
}
|
|
6730
|
-
if (o = t(
|
|
6731
|
-
M(o) || (o = F1(o)), o || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), o = ""),
|
|
6718
|
+
if (o = t(d.call(this, s[1].trim(), c), c), o && s[0] === e && !M(o)) return o;
|
|
6719
|
+
M(o) || (o = F1(o)), o || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), o = ""), a && (o = l.reduce((h, u) => this.format(h, u, n.lng, {
|
|
6732
6720
|
...n,
|
|
6733
6721
|
interpolationkey: s[1].trim()
|
|
6734
6722
|
}), o.trim())), e = e.replace(s[0], o), this.regexp.lastIndex = 0;
|
|
@@ -6745,8 +6733,8 @@ const e7 = (i) => {
|
|
|
6745
6733
|
const s = n[1].substring(0, n[1].length - 1);
|
|
6746
6734
|
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((c) => {
|
|
6747
6735
|
if (c) {
|
|
6748
|
-
const [
|
|
6749
|
-
t[
|
|
6736
|
+
const [d, ...l] = c.split(":"), a = l.join(":").trim().replace(/^'+|'+$/g, ""), h = d.trim();
|
|
6737
|
+
t[h] || (t[h] = a), a === "false" && (t[h] = !1), a === "true" && (t[h] = !0), isNaN(a) || (t[h] = parseInt(a, 10));
|
|
6750
6738
|
}
|
|
6751
6739
|
});
|
|
6752
6740
|
}
|
|
@@ -6763,8 +6751,8 @@ const e7 = (i) => {
|
|
|
6763
6751
|
[s.interpolationkey]: void 0
|
|
6764
6752
|
});
|
|
6765
6753
|
const c = n + JSON.stringify(o);
|
|
6766
|
-
let
|
|
6767
|
-
return
|
|
6754
|
+
let d = e[c];
|
|
6755
|
+
return d || (d = i(M1(n), s), e[c] = d), d(t);
|
|
6768
6756
|
};
|
|
6769
6757
|
};
|
|
6770
6758
|
class t7 {
|
|
@@ -6819,31 +6807,31 @@ class t7 {
|
|
|
6819
6807
|
format(e, t, n) {
|
|
6820
6808
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
6821
6809
|
const o = t.split(this.formatSeparator);
|
|
6822
|
-
if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((
|
|
6823
|
-
const
|
|
6824
|
-
o[0] = [o[0], ...o.splice(1,
|
|
6810
|
+
if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((d) => d.indexOf(")") > -1)) {
|
|
6811
|
+
const d = o.findIndex((l) => l.indexOf(")") > -1);
|
|
6812
|
+
o[0] = [o[0], ...o.splice(1, d)].join(this.formatSeparator);
|
|
6825
6813
|
}
|
|
6826
|
-
return o.reduce((
|
|
6814
|
+
return o.reduce((d, l) => {
|
|
6827
6815
|
const {
|
|
6828
|
-
formatName:
|
|
6829
|
-
formatOptions:
|
|
6830
|
-
} = e7(
|
|
6831
|
-
if (this.formats[
|
|
6832
|
-
let
|
|
6816
|
+
formatName: a,
|
|
6817
|
+
formatOptions: h
|
|
6818
|
+
} = e7(l);
|
|
6819
|
+
if (this.formats[a]) {
|
|
6820
|
+
let u = d;
|
|
6833
6821
|
try {
|
|
6834
6822
|
const g = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, f = g.locale || g.lng || s.locale || s.lng || n;
|
|
6835
|
-
|
|
6836
|
-
...
|
|
6823
|
+
u = this.formats[a](d, f, {
|
|
6824
|
+
...h,
|
|
6837
6825
|
...s,
|
|
6838
6826
|
...g
|
|
6839
6827
|
});
|
|
6840
6828
|
} catch (g) {
|
|
6841
6829
|
this.logger.warn(g);
|
|
6842
6830
|
}
|
|
6843
|
-
return
|
|
6831
|
+
return u;
|
|
6844
6832
|
} else
|
|
6845
|
-
this.logger.warn(`there was no format function for ${
|
|
6846
|
-
return
|
|
6833
|
+
this.logger.warn(`there was no format function for ${a}`);
|
|
6834
|
+
return d;
|
|
6847
6835
|
}, e);
|
|
6848
6836
|
}
|
|
6849
6837
|
}
|
|
@@ -6856,13 +6844,13 @@ class n7 extends H1 {
|
|
|
6856
6844
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = J.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(n, s.backend, s);
|
|
6857
6845
|
}
|
|
6858
6846
|
queueLoad(e, t, n, s) {
|
|
6859
|
-
const o = {}, c = {},
|
|
6860
|
-
return e.forEach((
|
|
6861
|
-
let
|
|
6862
|
-
t.forEach((
|
|
6863
|
-
const g = `${
|
|
6864
|
-
!n.reload && this.store.hasResourceBundle(
|
|
6865
|
-
}),
|
|
6847
|
+
const o = {}, c = {}, d = {}, l = {};
|
|
6848
|
+
return e.forEach((a) => {
|
|
6849
|
+
let h = !0;
|
|
6850
|
+
t.forEach((u) => {
|
|
6851
|
+
const g = `${a}|${u}`;
|
|
6852
|
+
!n.reload && this.store.hasResourceBundle(a, u) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? c[g] === void 0 && (c[g] = !0) : (this.state[g] = 1, h = !1, c[g] === void 0 && (c[g] = !0), o[g] === void 0 && (o[g] = !0), l[u] === void 0 && (l[u] = !0)));
|
|
6853
|
+
}), h || (d[a] = !0);
|
|
6866
6854
|
}), (Object.keys(o).length || Object.keys(c).length) && this.queue.push({
|
|
6867
6855
|
pending: c,
|
|
6868
6856
|
pendingCount: Object.keys(c).length,
|
|
@@ -6872,8 +6860,8 @@ class n7 extends H1 {
|
|
|
6872
6860
|
}), {
|
|
6873
6861
|
toLoad: Object.keys(o),
|
|
6874
6862
|
pending: Object.keys(c),
|
|
6875
|
-
toLoadLanguages: Object.keys(
|
|
6876
|
-
toLoadNamespaces: Object.keys(
|
|
6863
|
+
toLoadLanguages: Object.keys(d),
|
|
6864
|
+
toLoadNamespaces: Object.keys(l)
|
|
6877
6865
|
};
|
|
6878
6866
|
}
|
|
6879
6867
|
loaded(e, t, n) {
|
|
@@ -6881,16 +6869,16 @@ class n7 extends H1 {
|
|
|
6881
6869
|
t && this.emit("failedLoading", o, c, t), !t && n && this.store.addResourceBundle(o, c, n, void 0, void 0, {
|
|
6882
6870
|
skipCopy: !0
|
|
6883
6871
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
6884
|
-
const
|
|
6885
|
-
this.queue.forEach((
|
|
6886
|
-
Dt(
|
|
6887
|
-
a
|
|
6888
|
-
const
|
|
6889
|
-
|
|
6890
|
-
a
|
|
6872
|
+
const d = {};
|
|
6873
|
+
this.queue.forEach((l) => {
|
|
6874
|
+
Dt(l.loaded, [o], c), i7(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((a) => {
|
|
6875
|
+
d[a] || (d[a] = {});
|
|
6876
|
+
const h = l.loaded[a];
|
|
6877
|
+
h.length && h.forEach((u) => {
|
|
6878
|
+
d[a][u] === void 0 && (d[a][u] = !0);
|
|
6891
6879
|
});
|
|
6892
|
-
}),
|
|
6893
|
-
}), this.emit("loaded",
|
|
6880
|
+
}), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
|
|
6881
|
+
}), this.emit("loaded", d), this.queue = this.queue.filter((l) => !l.done);
|
|
6894
6882
|
}
|
|
6895
6883
|
read(e, t, n) {
|
|
6896
6884
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, c = arguments.length > 5 ? arguments[5] : void 0;
|
|
@@ -6907,29 +6895,29 @@ class n7 extends H1 {
|
|
|
6907
6895
|
return;
|
|
6908
6896
|
}
|
|
6909
6897
|
this.readingCalls++;
|
|
6910
|
-
const
|
|
6898
|
+
const d = (a, h) => {
|
|
6911
6899
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
6912
|
-
const
|
|
6913
|
-
this.read(
|
|
6900
|
+
const u = this.waitingReads.shift();
|
|
6901
|
+
this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
|
|
6914
6902
|
}
|
|
6915
|
-
if (
|
|
6903
|
+
if (a && h && s < this.maxRetries) {
|
|
6916
6904
|
setTimeout(() => {
|
|
6917
6905
|
this.read.call(this, e, t, n, s + 1, o * 2, c);
|
|
6918
6906
|
}, o);
|
|
6919
6907
|
return;
|
|
6920
6908
|
}
|
|
6921
|
-
c(
|
|
6922
|
-
},
|
|
6923
|
-
if (
|
|
6909
|
+
c(a, h);
|
|
6910
|
+
}, l = this.backend[n].bind(this.backend);
|
|
6911
|
+
if (l.length === 2) {
|
|
6924
6912
|
try {
|
|
6925
|
-
const
|
|
6926
|
-
|
|
6927
|
-
} catch (
|
|
6928
|
-
a
|
|
6913
|
+
const a = l(e, t);
|
|
6914
|
+
a && typeof a.then == "function" ? a.then((h) => d(null, h)).catch(d) : d(null, a);
|
|
6915
|
+
} catch (a) {
|
|
6916
|
+
d(a);
|
|
6929
6917
|
}
|
|
6930
6918
|
return;
|
|
6931
6919
|
}
|
|
6932
|
-
return
|
|
6920
|
+
return l(e, t, d);
|
|
6933
6921
|
}
|
|
6934
6922
|
prepareLoading(e, t) {
|
|
6935
6923
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
|
|
@@ -6954,12 +6942,12 @@ class n7 extends H1 {
|
|
|
6954
6942
|
loadOne(e) {
|
|
6955
6943
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
6956
6944
|
const n = e.split("|"), s = n[0], o = n[1];
|
|
6957
|
-
this.read(s, o, "read", void 0, void 0, (c,
|
|
6958
|
-
c && this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`, c), !c &&
|
|
6945
|
+
this.read(s, o, "read", void 0, void 0, (c, d) => {
|
|
6946
|
+
c && this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`, c), !c && d && this.logger.log(`${t}loaded namespace ${o} for language ${s}`, d), this.loaded(e, c, d);
|
|
6959
6947
|
});
|
|
6960
6948
|
}
|
|
6961
6949
|
saveMissing(e, t, n, s, o) {
|
|
6962
|
-
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {},
|
|
6950
|
+
let c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, d = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
|
|
6963
6951
|
};
|
|
6964
6952
|
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
|
|
6965
6953
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
@@ -6967,19 +6955,19 @@ class n7 extends H1 {
|
|
|
6967
6955
|
}
|
|
6968
6956
|
if (!(n == null || n === "")) {
|
|
6969
6957
|
if (this.backend && this.backend.create) {
|
|
6970
|
-
const
|
|
6958
|
+
const l = {
|
|
6971
6959
|
...c,
|
|
6972
6960
|
isUpdate: o
|
|
6973
|
-
},
|
|
6974
|
-
if (
|
|
6961
|
+
}, a = this.backend.create.bind(this.backend);
|
|
6962
|
+
if (a.length < 6)
|
|
6975
6963
|
try {
|
|
6976
|
-
let
|
|
6977
|
-
|
|
6978
|
-
} catch (
|
|
6979
|
-
|
|
6964
|
+
let h;
|
|
6965
|
+
a.length === 5 ? h = a(e, t, n, s, l) : h = a(e, t, n, s), h && typeof h.then == "function" ? h.then((u) => d(null, u)).catch(d) : d(null, h);
|
|
6966
|
+
} catch (h) {
|
|
6967
|
+
d(h);
|
|
6980
6968
|
}
|
|
6981
6969
|
else
|
|
6982
|
-
|
|
6970
|
+
a(e, t, n, s, d, l);
|
|
6983
6971
|
}
|
|
6984
6972
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
6985
6973
|
}
|
|
@@ -7073,19 +7061,19 @@ class L1 extends H1 {
|
|
|
7073
7061
|
...s.interpolation,
|
|
7074
7062
|
...this.options.interpolation
|
|
7075
7063
|
}), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
|
|
7076
|
-
const o = (
|
|
7064
|
+
const o = (h) => h ? typeof h == "function" ? new h() : h : null;
|
|
7077
7065
|
if (!this.options.isClone) {
|
|
7078
7066
|
this.modules.logger ? J.init(o(this.modules.logger), this.options) : J.init(null, this.options);
|
|
7079
|
-
let
|
|
7080
|
-
this.modules.formatter ?
|
|
7081
|
-
const
|
|
7067
|
+
let h;
|
|
7068
|
+
this.modules.formatter ? h = this.modules.formatter : typeof Intl < "u" && (h = t7);
|
|
7069
|
+
const u = new Q1(this.options);
|
|
7082
7070
|
this.store = new J1(this.options.resources, this.options);
|
|
7083
7071
|
const g = this.services;
|
|
7084
|
-
g.logger = J, g.resourceStore = this.store, g.languageUtils =
|
|
7072
|
+
g.logger = J, g.resourceStore = this.store, g.languageUtils = u, g.pluralResolver = new Qt(u, {
|
|
7085
7073
|
prepend: this.options.pluralSeparator,
|
|
7086
7074
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
7087
7075
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
7088
|
-
}),
|
|
7076
|
+
}), h && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (g.formatter = o(h), g.formatter.init(g, this.options), this.options.interpolation.format = g.formatter.format.bind(g.formatter)), g.interpolator = new Xt(this.options), g.utils = {
|
|
7089
7077
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
7090
7078
|
}, g.backendConnector = new n7(o(this.modules.backend), g.resourceStore, g, this.options), g.backendConnector.on("*", function(f) {
|
|
7091
7079
|
for (var w = arguments.length, v = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
|
|
@@ -7100,40 +7088,40 @@ class L1 extends H1 {
|
|
|
7100
7088
|
});
|
|
7101
7089
|
}
|
|
7102
7090
|
if (this.format = this.options.interpolation.format, n || (n = x1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
7103
|
-
const
|
|
7104
|
-
|
|
7091
|
+
const h = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
7092
|
+
h.length > 0 && h[0] !== "dev" && (this.options.lng = h[0]);
|
|
7105
7093
|
}
|
|
7106
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((
|
|
7107
|
-
this[
|
|
7108
|
-
return e.store[
|
|
7094
|
+
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((h) => {
|
|
7095
|
+
this[h] = function() {
|
|
7096
|
+
return e.store[h](...arguments);
|
|
7109
7097
|
};
|
|
7110
|
-
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((
|
|
7111
|
-
this[
|
|
7112
|
-
return e.store[
|
|
7098
|
+
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((h) => {
|
|
7099
|
+
this[h] = function() {
|
|
7100
|
+
return e.store[h](...arguments), e;
|
|
7113
7101
|
};
|
|
7114
7102
|
});
|
|
7115
|
-
const
|
|
7116
|
-
const
|
|
7117
|
-
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),
|
|
7103
|
+
const l = f1(), a = () => {
|
|
7104
|
+
const h = (u, g) => {
|
|
7105
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), l.resolve(g), n(u, g);
|
|
7118
7106
|
};
|
|
7119
|
-
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return
|
|
7120
|
-
this.changeLanguage(this.options.lng,
|
|
7107
|
+
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return h(null, this.t.bind(this));
|
|
7108
|
+
this.changeLanguage(this.options.lng, h);
|
|
7121
7109
|
};
|
|
7122
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
7110
|
+
return this.options.resources || !this.options.initImmediate ? a() : setTimeout(a, 0), l;
|
|
7123
7111
|
}
|
|
7124
7112
|
loadResources(e) {
|
|
7125
7113
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : x1;
|
|
7126
7114
|
const s = M(e) ? e : this.language;
|
|
7127
7115
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
7128
7116
|
if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
7129
|
-
const o = [], c = (
|
|
7130
|
-
if (!
|
|
7131
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
7132
|
-
|
|
7117
|
+
const o = [], c = (d) => {
|
|
7118
|
+
if (!d || d === "cimode") return;
|
|
7119
|
+
this.services.languageUtils.toResolveHierarchy(d).forEach((a) => {
|
|
7120
|
+
a !== "cimode" && o.indexOf(a) < 0 && o.push(a);
|
|
7133
7121
|
});
|
|
7134
7122
|
};
|
|
7135
|
-
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
7136
|
-
!
|
|
7123
|
+
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((l) => c(l)), this.options.preload && this.options.preload.forEach((d) => c(d)), this.services.backendConnector.load(o, this.options.ns, (d) => {
|
|
7124
|
+
!d && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(d);
|
|
7137
7125
|
});
|
|
7138
7126
|
} else
|
|
7139
7127
|
n(null);
|
|
@@ -7147,7 +7135,7 @@ class L1 extends H1 {
|
|
|
7147
7135
|
use(e) {
|
|
7148
7136
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
7149
7137
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
7150
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
7138
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && g2.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
7151
7139
|
}
|
|
7152
7140
|
setResolvedLanguage(e) {
|
|
7153
7141
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1))
|
|
@@ -7164,39 +7152,39 @@ class L1 extends H1 {
|
|
|
7164
7152
|
this.isLanguageChangingTo = e;
|
|
7165
7153
|
const s = f1();
|
|
7166
7154
|
this.emit("languageChanging", e);
|
|
7167
|
-
const o = (
|
|
7168
|
-
this.language =
|
|
7169
|
-
}, c = (
|
|
7170
|
-
|
|
7155
|
+
const o = (l) => {
|
|
7156
|
+
this.language = l, this.languages = this.services.languageUtils.toResolveHierarchy(l), this.resolvedLanguage = void 0, this.setResolvedLanguage(l);
|
|
7157
|
+
}, c = (l, a) => {
|
|
7158
|
+
a ? (o(a), this.translator.changeLanguage(a), this.isLanguageChangingTo = void 0, this.emit("languageChanged", a), this.logger.log("languageChanged", a)) : this.isLanguageChangingTo = void 0, s.resolve(function() {
|
|
7171
7159
|
return n.t(...arguments);
|
|
7172
|
-
}), t && t(
|
|
7160
|
+
}), t && t(l, function() {
|
|
7173
7161
|
return n.t(...arguments);
|
|
7174
7162
|
});
|
|
7175
|
-
},
|
|
7176
|
-
!e && !
|
|
7177
|
-
const
|
|
7178
|
-
|
|
7179
|
-
c(
|
|
7163
|
+
}, d = (l) => {
|
|
7164
|
+
!e && !l && this.services.languageDetector && (l = []);
|
|
7165
|
+
const a = M(l) ? l : this.services.languageUtils.getBestMatchFromCodes(l);
|
|
7166
|
+
a && (this.language || o(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(a)), this.loadResources(a, (h) => {
|
|
7167
|
+
c(h, a);
|
|
7180
7168
|
});
|
|
7181
7169
|
};
|
|
7182
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
7170
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? d(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(d) : this.services.languageDetector.detect(d) : d(e), s;
|
|
7183
7171
|
}
|
|
7184
7172
|
getFixedT(e, t, n) {
|
|
7185
7173
|
var s = this;
|
|
7186
|
-
const o = function(c,
|
|
7187
|
-
let
|
|
7188
|
-
if (typeof
|
|
7189
|
-
for (var
|
|
7190
|
-
|
|
7191
|
-
|
|
7174
|
+
const o = function(c, d) {
|
|
7175
|
+
let l;
|
|
7176
|
+
if (typeof d != "object") {
|
|
7177
|
+
for (var a = arguments.length, h = new Array(a > 2 ? a - 2 : 0), u = 2; u < a; u++)
|
|
7178
|
+
h[u - 2] = arguments[u];
|
|
7179
|
+
l = s.options.overloadTranslationOptionHandler([c, d].concat(h));
|
|
7192
7180
|
} else
|
|
7193
|
-
|
|
7194
|
-
...
|
|
7181
|
+
l = {
|
|
7182
|
+
...d
|
|
7195
7183
|
};
|
|
7196
|
-
|
|
7184
|
+
l.lng = l.lng || o.lng, l.lngs = l.lngs || o.lngs, l.ns = l.ns || o.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || n || o.keyPrefix);
|
|
7197
7185
|
const g = s.options.keySeparator || ".";
|
|
7198
7186
|
let f;
|
|
7199
|
-
return
|
|
7187
|
+
return l.keyPrefix && Array.isArray(c) ? f = c.map((w) => `${l.keyPrefix}${g}${w}`) : f = l.keyPrefix ? `${l.keyPrefix}${g}${c}` : c, s.t(f, l);
|
|
7200
7188
|
};
|
|
7201
7189
|
return M(e) ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = n, o;
|
|
7202
7190
|
}
|
|
@@ -7217,13 +7205,13 @@ class L1 extends H1 {
|
|
|
7217
7205
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
7218
7206
|
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, o = this.languages[this.languages.length - 1];
|
|
7219
7207
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7220
|
-
const c = (
|
|
7221
|
-
const
|
|
7222
|
-
return
|
|
7208
|
+
const c = (d, l) => {
|
|
7209
|
+
const a = this.services.backendConnector.state[`${d}|${l}`];
|
|
7210
|
+
return a === -1 || a === 0 || a === 2;
|
|
7223
7211
|
};
|
|
7224
7212
|
if (t.precheck) {
|
|
7225
|
-
const
|
|
7226
|
-
if (
|
|
7213
|
+
const d = t.precheck(this, c);
|
|
7214
|
+
if (d !== void 0) return d;
|
|
7227
7215
|
}
|
|
7228
7216
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || c(n, e) && (!s || c(o, e)));
|
|
7229
7217
|
}
|
|
@@ -7261,16 +7249,16 @@ class L1 extends H1 {
|
|
|
7261
7249
|
...e,
|
|
7262
7250
|
isClone: !0
|
|
7263
7251
|
}, o = new L1(s);
|
|
7264
|
-
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((
|
|
7265
|
-
o[
|
|
7252
|
+
return (e.debug !== void 0 || e.prefix !== void 0) && (o.logger = o.logger.clone(e)), ["store", "services", "language"].forEach((d) => {
|
|
7253
|
+
o[d] = this[d];
|
|
7266
7254
|
}), o.services = {
|
|
7267
7255
|
...this.services
|
|
7268
7256
|
}, o.services.utils = {
|
|
7269
7257
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7270
|
-
}, n && (o.store = new J1(this.store.data, s), o.services.resourceStore = o.store), o.translator = new y1(o.services, s), o.translator.on("*", function(
|
|
7271
|
-
for (var
|
|
7272
|
-
|
|
7273
|
-
o.emit(
|
|
7258
|
+
}, n && (o.store = new J1(this.store.data, s), o.services.resourceStore = o.store), o.translator = new y1(o.services, s), o.translator.on("*", function(d) {
|
|
7259
|
+
for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
|
|
7260
|
+
a[h - 1] = arguments[h];
|
|
7261
|
+
o.emit(d, ...a);
|
|
7274
7262
|
}), o.init(s, t), o.translator.options = s, o.translator.backendConnector.services.utils = {
|
|
7275
7263
|
hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
|
|
7276
7264
|
}, o;
|
|
@@ -7314,7 +7302,7 @@ function S1() {
|
|
|
7314
7302
|
e[t] = arguments[t];
|
|
7315
7303
|
s1(e[0]) && n2[e[0]] || (s1(e[0]) && (n2[e[0]] = /* @__PURE__ */ new Date()), r7(...e));
|
|
7316
7304
|
}
|
|
7317
|
-
const
|
|
7305
|
+
const C2 = (i, e) => () => {
|
|
7318
7306
|
if (i.isInitialized)
|
|
7319
7307
|
e();
|
|
7320
7308
|
else {
|
|
@@ -7326,18 +7314,18 @@ const g2 = (i, e) => () => {
|
|
|
7326
7314
|
i.on("initialized", t);
|
|
7327
7315
|
}
|
|
7328
7316
|
}, s2 = (i, e, t) => {
|
|
7329
|
-
i.loadNamespaces(e,
|
|
7317
|
+
i.loadNamespaces(e, C2(i, t));
|
|
7330
7318
|
}, r2 = (i, e, t, n) => {
|
|
7331
7319
|
s1(t) && (t = [t]), t.forEach((s) => {
|
|
7332
7320
|
i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
|
|
7333
|
-
}), i.loadLanguages(e,
|
|
7321
|
+
}), i.loadLanguages(e, C2(i, n));
|
|
7334
7322
|
}, o7 = function(i, e) {
|
|
7335
7323
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
7336
7324
|
const n = e.languages[0], s = e.options ? e.options.fallbackLng : !1, o = e.languages[e.languages.length - 1];
|
|
7337
7325
|
if (n.toLowerCase() === "cimode") return !0;
|
|
7338
|
-
const c = (
|
|
7339
|
-
const
|
|
7340
|
-
return
|
|
7326
|
+
const c = (d, l) => {
|
|
7327
|
+
const a = e.services.backendConnector.state[`${d}|${l}`];
|
|
7328
|
+
return a === -1 || a === 2;
|
|
7341
7329
|
};
|
|
7342
7330
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !c(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || c(n, i) && (!s || c(o, i)));
|
|
7343
7331
|
}, a7 = function(i, e) {
|
|
@@ -7369,7 +7357,7 @@ const g2 = (i, e) => () => {
|
|
|
7369
7357
|
"…": "…",
|
|
7370
7358
|
"/": "/",
|
|
7371
7359
|
"/": "/"
|
|
7372
|
-
}, d7 = (i) => c7[i],
|
|
7360
|
+
}, d7 = (i) => c7[i], g7 = (i) => i.replace(h7, d7);
|
|
7373
7361
|
let Z1 = {
|
|
7374
7362
|
bindI18n: "languageChanged",
|
|
7375
7363
|
bindI18nStore: "",
|
|
@@ -7378,9 +7366,9 @@ let Z1 = {
|
|
|
7378
7366
|
transWrapTextNodes: "",
|
|
7379
7367
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
7380
7368
|
useSuspense: !0,
|
|
7381
|
-
unescape:
|
|
7369
|
+
unescape: g7
|
|
7382
7370
|
};
|
|
7383
|
-
const
|
|
7371
|
+
const C7 = function() {
|
|
7384
7372
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
7385
7373
|
Z1 = {
|
|
7386
7374
|
...Z1,
|
|
@@ -7393,9 +7381,9 @@ const f7 = (i) => {
|
|
|
7393
7381
|
}, p7 = () => u2, m7 = {
|
|
7394
7382
|
type: "3rdParty",
|
|
7395
7383
|
init(i) {
|
|
7396
|
-
|
|
7384
|
+
C7(i.options.react), f7(i);
|
|
7397
7385
|
}
|
|
7398
|
-
}, w7 =
|
|
7386
|
+
}, w7 = g1();
|
|
7399
7387
|
class L7 {
|
|
7400
7388
|
constructor() {
|
|
7401
7389
|
T1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
|
|
@@ -7409,7 +7397,7 @@ class L7 {
|
|
|
7409
7397
|
}
|
|
7410
7398
|
const k7 = (i, e) => {
|
|
7411
7399
|
const t = $();
|
|
7412
|
-
return
|
|
7400
|
+
return Z(() => {
|
|
7413
7401
|
t.current = i;
|
|
7414
7402
|
}, [i, e]), t.current;
|
|
7415
7403
|
}, f2 = (i, e, t, n) => i.getFixedT(e, t, n), v7 = (i, e, t, n) => K(f2(i, e, t, n), [i, e, t, n]), N7 = function(i) {
|
|
@@ -7431,38 +7419,38 @@ const k7 = (i, e) => {
|
|
|
7431
7419
|
...o.options.react,
|
|
7432
7420
|
...e
|
|
7433
7421
|
}, {
|
|
7434
|
-
useSuspense:
|
|
7435
|
-
keyPrefix:
|
|
7422
|
+
useSuspense: d,
|
|
7423
|
+
keyPrefix: l
|
|
7436
7424
|
} = c;
|
|
7437
|
-
let
|
|
7438
|
-
|
|
7439
|
-
const
|
|
7440
|
-
let m =
|
|
7425
|
+
let a = i;
|
|
7426
|
+
a = s1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
|
|
7427
|
+
const h = (o.isInitialized || o.initializedStoreOnce) && a.every((p) => a7(p, o, c)), u = v7(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), g = () => u, f = () => f2(o, e.lng || null, c.nsMode === "fallback" ? a : a[0], l), [w, v] = O(g);
|
|
7428
|
+
let m = a.join();
|
|
7441
7429
|
e.lng && (m = `${e.lng}${m}`);
|
|
7442
7430
|
const b = k7(m), y = $(!0);
|
|
7443
|
-
|
|
7431
|
+
Z(() => {
|
|
7444
7432
|
const {
|
|
7445
7433
|
bindI18n: p,
|
|
7446
7434
|
bindI18nStore: N
|
|
7447
7435
|
} = c;
|
|
7448
|
-
y.current = !0, !
|
|
7436
|
+
y.current = !0, !h && !d && (e.lng ? r2(o, e.lng, a, () => {
|
|
7449
7437
|
y.current && v(f);
|
|
7450
|
-
}) : s2(o,
|
|
7438
|
+
}) : s2(o, a, () => {
|
|
7451
7439
|
y.current && v(f);
|
|
7452
|
-
})),
|
|
7440
|
+
})), h && b && b !== m && y.current && v(f);
|
|
7453
7441
|
const _ = () => {
|
|
7454
7442
|
y.current && v(f);
|
|
7455
7443
|
};
|
|
7456
7444
|
return p && o && o.on(p, _), N && o && o.store.on(N, _), () => {
|
|
7457
7445
|
y.current = !1, p && o && p.split(" ").forEach((R) => o.off(R, _)), N && o && N.split(" ").forEach((R) => o.store.off(R, _));
|
|
7458
7446
|
};
|
|
7459
|
-
}, [o, m]),
|
|
7460
|
-
y.current &&
|
|
7461
|
-
}, [o,
|
|
7462
|
-
const E = [w, o,
|
|
7463
|
-
if (E.t = w, E.i18n = o, E.ready =
|
|
7447
|
+
}, [o, m]), Z(() => {
|
|
7448
|
+
y.current && h && v(g);
|
|
7449
|
+
}, [o, l, h]);
|
|
7450
|
+
const E = [w, o, h];
|
|
7451
|
+
if (E.t = w, E.i18n = o, E.ready = h, h || !h && !d) return E;
|
|
7464
7452
|
throw new Promise((p) => {
|
|
7465
|
-
e.lng ? r2(o, e.lng,
|
|
7453
|
+
e.lng ? r2(o, e.lng, a, () => p()) : s2(o, a, () => p());
|
|
7466
7454
|
});
|
|
7467
7455
|
}, R7 = "City", x7 = {
|
|
7468
7456
|
placeholder: R7
|
|
@@ -7471,7 +7459,7 @@ const k7 = (i, e) => {
|
|
|
7471
7459
|
};
|
|
7472
7460
|
function b7(i) {
|
|
7473
7461
|
const e = $(i);
|
|
7474
|
-
return
|
|
7462
|
+
return Z(() => {
|
|
7475
7463
|
e.current = i;
|
|
7476
7464
|
}, [i]), e.current;
|
|
7477
7465
|
}
|
|
@@ -7488,10 +7476,10 @@ B.use(m7).init({
|
|
|
7488
7476
|
}
|
|
7489
7477
|
});
|
|
7490
7478
|
const O7 = d1(
|
|
7491
|
-
({ width: i, selectedCountry: e, onChange: t, value: n, id: s, disabled: o, clearable: c },
|
|
7492
|
-
const [
|
|
7479
|
+
({ width: i, selectedCountry: e, onChange: t, value: n, id: s, disabled: o, clearable: c }, d) => {
|
|
7480
|
+
const [l, a] = O(
|
|
7493
7481
|
[]
|
|
7494
|
-
), [
|
|
7482
|
+
), [h, u] = O(!1), { locale: g, axiosPeople: f } = r1(L2), w = $(!1), v = $(null), m = $(l), b = b7(e);
|
|
7495
7483
|
if (!f)
|
|
7496
7484
|
throw new Error(
|
|
7497
7485
|
`CitySelect requires "axiosPeople" to fetch cities.
|
|
@@ -7522,15 +7510,15 @@ const O7 = d1(
|
|
|
7522
7510
|
},
|
|
7523
7511
|
[f, e, t]
|
|
7524
7512
|
);
|
|
7525
|
-
|
|
7513
|
+
Z(() => {
|
|
7526
7514
|
(async () => {
|
|
7527
7515
|
if (!n) return;
|
|
7528
7516
|
const _ = await E(n);
|
|
7529
|
-
|
|
7517
|
+
a(_);
|
|
7530
7518
|
})();
|
|
7531
|
-
}, []),
|
|
7519
|
+
}, []), Z(() => {
|
|
7532
7520
|
var N;
|
|
7533
|
-
b !== e ? w.current && (t(null),
|
|
7521
|
+
b !== e ? w.current && (t(null), a([]), m.current = [], (N = v.current) == null || N.refetchOptions()) : w.current = !0;
|
|
7534
7522
|
}, [e, t, b]);
|
|
7535
7523
|
const p = K(
|
|
7536
7524
|
async ({
|
|
@@ -7539,7 +7527,7 @@ const O7 = d1(
|
|
|
7539
7527
|
search: R
|
|
7540
7528
|
}) => {
|
|
7541
7529
|
try {
|
|
7542
|
-
|
|
7530
|
+
u(!0);
|
|
7543
7531
|
const V = {
|
|
7544
7532
|
offset: _,
|
|
7545
7533
|
limit: N,
|
|
@@ -7548,9 +7536,9 @@ const O7 = d1(
|
|
|
7548
7536
|
V.filters = {}, e && e.length > 0 && (V.filters.countryId = [e]), R && (V.search = R);
|
|
7549
7537
|
const G = await f.post("v1/cities/search", V), T = (G == null ? void 0 : G.data.data) || [], Y = G == null ? void 0 : G.data.metadata.count;
|
|
7550
7538
|
return {
|
|
7551
|
-
options: T.map((
|
|
7552
|
-
value:
|
|
7553
|
-
label:
|
|
7539
|
+
options: T.map((A) => ({
|
|
7540
|
+
value: A.geoNameId,
|
|
7541
|
+
label: A.name
|
|
7554
7542
|
})),
|
|
7555
7543
|
count: Y,
|
|
7556
7544
|
limit: N
|
|
@@ -7562,17 +7550,17 @@ const O7 = d1(
|
|
|
7562
7550
|
limit: N
|
|
7563
7551
|
};
|
|
7564
7552
|
} finally {
|
|
7565
|
-
|
|
7553
|
+
u(!1);
|
|
7566
7554
|
}
|
|
7567
7555
|
},
|
|
7568
7556
|
[f, e]
|
|
7569
7557
|
);
|
|
7570
|
-
return k1(
|
|
7558
|
+
return k1(d, () => v.current), /* @__PURE__ */ r("div", { className: "snmt-city-select", children: /* @__PURE__ */ r(
|
|
7571
7559
|
St,
|
|
7572
7560
|
{
|
|
7573
7561
|
id: s,
|
|
7574
7562
|
width: i,
|
|
7575
|
-
value:
|
|
7563
|
+
value: h && n ? null : n,
|
|
7576
7564
|
onChange: t,
|
|
7577
7565
|
ref: v,
|
|
7578
7566
|
search: !0,
|
|
@@ -7581,8 +7569,8 @@ const O7 = d1(
|
|
|
7581
7569
|
clearable: c,
|
|
7582
7570
|
loadOptions: p,
|
|
7583
7571
|
preloadOptions: !0,
|
|
7584
|
-
extraOptions:
|
|
7585
|
-
isLoading:
|
|
7572
|
+
extraOptions: l,
|
|
7573
|
+
isLoading: h
|
|
7586
7574
|
}
|
|
7587
7575
|
) });
|
|
7588
7576
|
}
|