@snmt-react-ui/country-select 2.9.12 → 2.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/country-select.js +619 -609
- package/dist/index.css +1 -1
- package/package.json +3 -3
package/dist/country-select.js
CHANGED
|
@@ -41,9 +41,9 @@ const i2 = (l, e) => () => {
|
|
|
41
41
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
42
42
|
const i = e.languages[0], s = e.options ? e.options.fallbackLng : !1, C = e.languages[e.languages.length - 1];
|
|
43
43
|
if (i.toLowerCase() === "cimode") return !0;
|
|
44
|
-
const h = (d,
|
|
45
|
-
const
|
|
46
|
-
return
|
|
44
|
+
const h = (d, o) => {
|
|
45
|
+
const a = e.services.backendConnector.state[`${d}|${o}`];
|
|
46
|
+
return a === -1 || a === 2;
|
|
47
47
|
};
|
|
48
48
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, l) ? !1 : !!(e.hasResourceBundle(i, l) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(i, l) && (!s || h(C, l)));
|
|
49
49
|
}, K2 = function(l, e) {
|
|
@@ -124,12 +124,12 @@ const U2 = (l, e) => {
|
|
|
124
124
|
...e
|
|
125
125
|
}, {
|
|
126
126
|
useSuspense: d,
|
|
127
|
-
keyPrefix:
|
|
127
|
+
keyPrefix: o
|
|
128
128
|
} = h;
|
|
129
|
-
let
|
|
130
|
-
|
|
131
|
-
const r = (C.isInitialized || C.initializedStoreOnce) &&
|
|
132
|
-
let x =
|
|
129
|
+
let a = l;
|
|
130
|
+
a = z(a) ? [a] : a || ["translation"], C.reportNamespaces.addUsedNamespaces && C.reportNamespaces.addUsedNamespaces(a);
|
|
131
|
+
const r = (C.isInitialized || C.initializedStoreOnce) && a.every((u) => K2(u, C, h)), f = W2(C, e.lng || null, h.nsMode === "fallback" ? a : a[0], o), w = () => f, p = () => l2(C, e.lng || null, h.nsMode === "fallback" ? a : a[0], o), [v, M] = E(w);
|
|
132
|
+
let x = a.join();
|
|
133
133
|
e.lng && (x = `${e.lng}${x}`);
|
|
134
134
|
const H = U2(x), Z = P(!0);
|
|
135
135
|
S(() => {
|
|
@@ -137,24 +137,24 @@ const U2 = (l, e) => {
|
|
|
137
137
|
bindI18n: u,
|
|
138
138
|
bindI18nStore: V
|
|
139
139
|
} = h;
|
|
140
|
-
Z.current = !0, !r && !d && (e.lng ? S1(C, e.lng,
|
|
141
|
-
Z.current && M(
|
|
142
|
-
}) : B1(C,
|
|
143
|
-
Z.current && M(
|
|
144
|
-
})), r && H && H !== x && Z.current && M(
|
|
140
|
+
Z.current = !0, !r && !d && (e.lng ? S1(C, e.lng, a, () => {
|
|
141
|
+
Z.current && M(p);
|
|
142
|
+
}) : B1(C, a, () => {
|
|
143
|
+
Z.current && M(p);
|
|
144
|
+
})), r && H && H !== x && Z.current && M(p);
|
|
145
145
|
const m = () => {
|
|
146
|
-
Z.current && M(
|
|
146
|
+
Z.current && M(p);
|
|
147
147
|
};
|
|
148
148
|
return u && C && C.on(u, m), V && C && C.store.on(V, m), () => {
|
|
149
149
|
Z.current = !1, u && C && u.split(" ").forEach((k) => C.off(k, m)), V && C && V.split(" ").forEach((k) => C.store.off(k, m));
|
|
150
150
|
};
|
|
151
151
|
}, [C, x]), S(() => {
|
|
152
152
|
Z.current && r && M(w);
|
|
153
|
-
}, [C,
|
|
153
|
+
}, [C, o, r]);
|
|
154
154
|
const b = [v, C, r];
|
|
155
155
|
if (b.t = v, b.i18n = C, b.ready = r, r || !r && !d) return b;
|
|
156
156
|
throw new Promise((u) => {
|
|
157
|
-
e.lng ? S1(C, e.lng,
|
|
157
|
+
e.lng ? S1(C, e.lng, a, () => u()) : B1(C, a, () => u());
|
|
158
158
|
});
|
|
159
159
|
}, C1 = ({
|
|
160
160
|
children: l,
|
|
@@ -195,8 +195,8 @@ const U2 = (l, e) => {
|
|
|
195
195
|
overflow: "hidden",
|
|
196
196
|
textOverflow: "clip"
|
|
197
197
|
});
|
|
198
|
-
const
|
|
199
|
-
Object.assign(h.style, d), i(
|
|
198
|
+
const o = h.scrollWidth > h.offsetWidth + 1;
|
|
199
|
+
Object.assign(h.style, d), i(o);
|
|
200
200
|
}, [s]);
|
|
201
201
|
return w1(() => {
|
|
202
202
|
const h = s();
|
|
@@ -220,29 +220,31 @@ const U2 = (l, e) => {
|
|
|
220
220
|
color: t,
|
|
221
221
|
children: i,
|
|
222
222
|
onClick: s,
|
|
223
|
-
|
|
224
|
-
whiteSpace: h = "normal",
|
|
223
|
+
whiteSpace: C,
|
|
225
224
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
226
|
-
trim:
|
|
227
|
-
},
|
|
225
|
+
trim: h = !1
|
|
226
|
+
}, d) => {
|
|
228
227
|
const o = P(null);
|
|
229
|
-
g1(
|
|
230
|
-
const
|
|
231
|
-
let
|
|
232
|
-
l && l !== "inherit" && (
|
|
233
|
-
const
|
|
234
|
-
className:
|
|
235
|
-
style: {
|
|
228
|
+
g1(d, () => o.current);
|
|
229
|
+
const a = J2(o, { enabled: h }), r = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
230
|
+
let f = `snmt-typography snmt-typography-${e}`;
|
|
231
|
+
l && l !== "inherit" && (f += ` snmt-typography-align-${l}`);
|
|
232
|
+
const w = {
|
|
233
|
+
className: f,
|
|
234
|
+
style: {
|
|
235
|
+
color: t,
|
|
236
|
+
whiteSpace: C
|
|
237
|
+
},
|
|
236
238
|
onClick: s,
|
|
237
239
|
ref: o,
|
|
238
|
-
ellipsis:
|
|
240
|
+
ellipsis: h && a ? {
|
|
239
241
|
tooltip: {
|
|
240
242
|
title: i,
|
|
241
243
|
overlayClassName: "snmt-tooltip"
|
|
242
244
|
}
|
|
243
245
|
} : void 0
|
|
244
246
|
};
|
|
245
|
-
return
|
|
247
|
+
return r ? /* @__PURE__ */ n(Q2, { level: X2[e], ...w, children: i }) : /* @__PURE__ */ n(q2, { ...w, children: i });
|
|
246
248
|
}
|
|
247
249
|
), e5 = ({ label: l, variant: e = "small", src: t, fallbackText: i }) => {
|
|
248
250
|
const s = t != null && t.trim() ? t : void 0, C = {
|
|
@@ -304,8 +306,8 @@ const U2 = (l, e) => {
|
|
|
304
306
|
overflow: "hidden",
|
|
305
307
|
textOverflow: "clip"
|
|
306
308
|
});
|
|
307
|
-
const
|
|
308
|
-
Object.assign(h.style, d), i(
|
|
309
|
+
const o = h.scrollWidth > h.offsetWidth + 1;
|
|
310
|
+
Object.assign(h.style, d), i(o);
|
|
309
311
|
}, [s]);
|
|
310
312
|
return w1(() => {
|
|
311
313
|
const h = s();
|
|
@@ -329,29 +331,31 @@ const U2 = (l, e) => {
|
|
|
329
331
|
color: t,
|
|
330
332
|
children: i,
|
|
331
333
|
onClick: s,
|
|
332
|
-
|
|
333
|
-
whiteSpace: h = "normal",
|
|
334
|
+
whiteSpace: C,
|
|
334
335
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
335
|
-
trim:
|
|
336
|
-
},
|
|
336
|
+
trim: h = !1
|
|
337
|
+
}, d) => {
|
|
337
338
|
const o = P(null);
|
|
338
|
-
g1(
|
|
339
|
-
const
|
|
340
|
-
let
|
|
341
|
-
l && l !== "inherit" && (
|
|
342
|
-
const
|
|
343
|
-
className:
|
|
344
|
-
style: {
|
|
339
|
+
g1(d, () => o.current);
|
|
340
|
+
const a = t5(o, { enabled: h }), r = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
341
|
+
let f = `snmt-typography snmt-typography-${e}`;
|
|
342
|
+
l && l !== "inherit" && (f += ` snmt-typography-align-${l}`);
|
|
343
|
+
const w = {
|
|
344
|
+
className: f,
|
|
345
|
+
style: {
|
|
346
|
+
color: t,
|
|
347
|
+
whiteSpace: C
|
|
348
|
+
},
|
|
345
349
|
onClick: s,
|
|
346
350
|
ref: o,
|
|
347
|
-
ellipsis:
|
|
351
|
+
ellipsis: h && a ? {
|
|
348
352
|
tooltip: {
|
|
349
353
|
title: i,
|
|
350
354
|
overlayClassName: "snmt-tooltip"
|
|
351
355
|
}
|
|
352
356
|
} : void 0
|
|
353
357
|
};
|
|
354
|
-
return
|
|
358
|
+
return r ? /* @__PURE__ */ n(i5, { level: s5[e], ...w, children: i }) : /* @__PURE__ */ n(l5, { ...w, children: i });
|
|
355
359
|
}
|
|
356
360
|
), o5 = ({
|
|
357
361
|
checked: l = !0,
|
|
@@ -361,9 +365,9 @@ const U2 = (l, e) => {
|
|
|
361
365
|
disabled: s = !1,
|
|
362
366
|
disableUncheck: C = !1
|
|
363
367
|
}) => {
|
|
364
|
-
const [h, d] = E(l), [
|
|
368
|
+
const [h, d] = E(l), [o, a] = E(e);
|
|
365
369
|
S(() => {
|
|
366
|
-
d(l),
|
|
370
|
+
d(l), a(e);
|
|
367
371
|
}, [l, e]);
|
|
368
372
|
const { theme: r } = T(Q);
|
|
369
373
|
return /* @__PURE__ */ n(
|
|
@@ -371,9 +375,9 @@ const U2 = (l, e) => {
|
|
|
371
375
|
{
|
|
372
376
|
className: `snmt-checkbox snmt-checkbox-${r}`,
|
|
373
377
|
checked: h,
|
|
374
|
-
indeterminate:
|
|
375
|
-
onChange: (
|
|
376
|
-
C && h || (
|
|
378
|
+
indeterminate: o,
|
|
379
|
+
onChange: (f) => {
|
|
380
|
+
C && h || (a(!1), d(f.target.checked), i && i(f));
|
|
377
381
|
},
|
|
378
382
|
disabled: s,
|
|
379
383
|
children: t && /* @__PURE__ */ n(
|
|
@@ -2650,159 +2654,159 @@ const U2 = (l, e) => {
|
|
|
2650
2654
|
disabled: C = !1,
|
|
2651
2655
|
onClick: h
|
|
2652
2656
|
}) => {
|
|
2653
|
-
const { theme: d } = T(Q),
|
|
2657
|
+
const { theme: d } = T(Q), o = C ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, a = C ? void 0 : h, r = h && !C ? `${s || ""} clickable` : s;
|
|
2654
2658
|
return /* @__PURE__ */ n($, { children: (() => {
|
|
2655
2659
|
switch (l) {
|
|
2656
2660
|
case "arrow1Down":
|
|
2657
|
-
return a5({ width: e, height: t, color:
|
|
2661
|
+
return a5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2658
2662
|
case "arrow1Up":
|
|
2659
|
-
return r5({ width: e, height: t, color:
|
|
2663
|
+
return r5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2660
2664
|
case "arrow1Right":
|
|
2661
|
-
return C5({ width: e, height: t, color:
|
|
2665
|
+
return C5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2662
2666
|
case "arrow1Left":
|
|
2663
|
-
return h5({ width: e, height: t, color:
|
|
2667
|
+
return h5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2664
2668
|
case "info":
|
|
2665
|
-
return c5({ width: e, height: t, color:
|
|
2669
|
+
return c5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2666
2670
|
case "archive":
|
|
2667
|
-
return p5({ width: e, height: t, color:
|
|
2671
|
+
return p5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2668
2672
|
case "unarchive":
|
|
2669
|
-
return u5({ width: e, height: t, color:
|
|
2673
|
+
return u5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2670
2674
|
case "calendar":
|
|
2671
|
-
return L5({ width: e, height: t, color:
|
|
2675
|
+
return L5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2672
2676
|
case "check":
|
|
2673
|
-
return m5({ width: e, height: t, color:
|
|
2677
|
+
return m5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2674
2678
|
case "cancel":
|
|
2675
|
-
return v5({ width: e, height: t, color:
|
|
2679
|
+
return v5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2676
2680
|
case "add":
|
|
2677
|
-
return k5({ width: e, height: t, color:
|
|
2681
|
+
return k5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2678
2682
|
case "list":
|
|
2679
|
-
return N5({ width: e, height: t, color:
|
|
2683
|
+
return N5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2680
2684
|
case "dragAndDrop":
|
|
2681
|
-
return M5({ width: e, height: t, color:
|
|
2685
|
+
return M5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2682
2686
|
case "filter1":
|
|
2683
|
-
return x5({ width: e, height: t, color:
|
|
2687
|
+
return x5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2684
2688
|
case "filter2":
|
|
2685
|
-
return Q5({ width: e, height: t, color:
|
|
2689
|
+
return Q5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2686
2690
|
case "attention":
|
|
2687
|
-
return Z5({ width: e, height: t, color:
|
|
2691
|
+
return Z5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2688
2692
|
case "users":
|
|
2689
|
-
return V5({ width: e, height: t, color:
|
|
2693
|
+
return V5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2690
2694
|
case "mySkillsMatrix":
|
|
2691
2695
|
return R5({
|
|
2692
2696
|
width: e,
|
|
2693
2697
|
height: t,
|
|
2694
|
-
color:
|
|
2698
|
+
color: o,
|
|
2695
2699
|
className: r,
|
|
2696
|
-
onClick:
|
|
2700
|
+
onClick: a
|
|
2697
2701
|
});
|
|
2698
2702
|
case "skills":
|
|
2699
|
-
return H5({ width: e, height: t, color:
|
|
2703
|
+
return H5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2700
2704
|
case "skillsMatrices":
|
|
2701
2705
|
return _5({
|
|
2702
2706
|
width: e,
|
|
2703
2707
|
height: t,
|
|
2704
|
-
color:
|
|
2708
|
+
color: o,
|
|
2705
2709
|
className: r,
|
|
2706
|
-
onClick:
|
|
2710
|
+
onClick: a
|
|
2707
2711
|
});
|
|
2708
2712
|
case "history":
|
|
2709
|
-
return b5({ width: e, height: t, color:
|
|
2713
|
+
return b5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2710
2714
|
case "logOut":
|
|
2711
|
-
return y5({ width: e, height: t, color:
|
|
2715
|
+
return y5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2712
2716
|
case "settings":
|
|
2713
|
-
return A5({ width: e, height: t, color:
|
|
2717
|
+
return A5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2714
2718
|
case "trash":
|
|
2715
|
-
return E5({ width: e, height: t, color:
|
|
2719
|
+
return E5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2716
2720
|
case "settings2":
|
|
2717
|
-
return D5({ width: e, height: t, color:
|
|
2721
|
+
return D5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2718
2722
|
case "checkCircle":
|
|
2719
|
-
return K5({ width: e, height: t, color:
|
|
2723
|
+
return K5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2720
2724
|
case "cancelCircle":
|
|
2721
|
-
return G5({ width: e, height: t, color:
|
|
2725
|
+
return G5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2722
2726
|
case "visibilityIcon":
|
|
2723
2727
|
return B5({
|
|
2724
2728
|
width: e,
|
|
2725
2729
|
height: t,
|
|
2726
|
-
color:
|
|
2730
|
+
color: o,
|
|
2727
2731
|
className: r,
|
|
2728
|
-
onClick:
|
|
2732
|
+
onClick: a
|
|
2729
2733
|
});
|
|
2730
2734
|
case "visibilityOffIcon":
|
|
2731
2735
|
return S5({
|
|
2732
2736
|
width: e,
|
|
2733
2737
|
height: t,
|
|
2734
|
-
color:
|
|
2738
|
+
color: o,
|
|
2735
2739
|
className: r,
|
|
2736
|
-
onClick:
|
|
2740
|
+
onClick: a
|
|
2737
2741
|
});
|
|
2738
2742
|
case "sortUp":
|
|
2739
|
-
return Y5({ width: e, height: t, color:
|
|
2743
|
+
return Y5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2740
2744
|
case "sortDown":
|
|
2741
|
-
return O5({ width: e, height: t, color:
|
|
2745
|
+
return O5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2742
2746
|
case "sortDouble":
|
|
2743
|
-
return I5({ width: e, height: t, color:
|
|
2747
|
+
return I5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2744
2748
|
case "search":
|
|
2745
|
-
return $5({ width: e, height: t, color:
|
|
2749
|
+
return $5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2746
2750
|
case "arrowUpFilled":
|
|
2747
|
-
return T5({ width: e, height: t, color:
|
|
2751
|
+
return T5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2748
2752
|
case "arrowDownFilled":
|
|
2749
|
-
return P5({ width: e, height: t, color:
|
|
2753
|
+
return P5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2750
2754
|
case "arrow2Up":
|
|
2751
|
-
return d5({ width: e, height: t, color:
|
|
2755
|
+
return d5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2752
2756
|
case "arrow2Right":
|
|
2753
|
-
return g5({ width: e, height: t, color:
|
|
2757
|
+
return g5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2754
2758
|
case "arrow2Down":
|
|
2755
|
-
return w5({ width: e, height: t, color:
|
|
2759
|
+
return w5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2756
2760
|
case "arrow2Left":
|
|
2757
|
-
return f5({ width: e, height: t, color:
|
|
2761
|
+
return f5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2758
2762
|
case "link":
|
|
2759
|
-
return j5({ width: e, height: t, color:
|
|
2763
|
+
return j5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2760
2764
|
case "telegram":
|
|
2761
|
-
return U5({ width: e, height: t, color:
|
|
2765
|
+
return U5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2762
2766
|
case "mail":
|
|
2763
|
-
return z5({ width: e, height: t, color:
|
|
2767
|
+
return z5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2764
2768
|
case "github":
|
|
2765
|
-
return F5({ width: e, height: t, color:
|
|
2769
|
+
return F5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2766
2770
|
case "linkedIn":
|
|
2767
|
-
return W5({ width: e, height: t, color:
|
|
2771
|
+
return W5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2768
2772
|
case "emptyStateIcon":
|
|
2769
|
-
return J5({ width: e, height: t, color:
|
|
2773
|
+
return J5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2770
2774
|
case "dotMenuIcon":
|
|
2771
|
-
return q5({ width: e, height: t, color:
|
|
2775
|
+
return q5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2772
2776
|
case "plusCircle":
|
|
2773
|
-
return X5({ width: e, height: t, color:
|
|
2777
|
+
return X5({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2774
2778
|
case "warning":
|
|
2775
|
-
return e7({ width: e, height: t, color:
|
|
2779
|
+
return e7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2776
2780
|
case "bell":
|
|
2777
|
-
return t7({ width: e, height: t, color:
|
|
2781
|
+
return t7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2778
2782
|
case "copy":
|
|
2779
|
-
return i7({ width: e, height: t, color:
|
|
2783
|
+
return i7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2780
2784
|
case "contract":
|
|
2781
|
-
return l7({ width: e, height: t, color:
|
|
2785
|
+
return l7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2782
2786
|
case "resourceManager":
|
|
2783
|
-
return s7({ width: e, height: t, color:
|
|
2787
|
+
return s7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2784
2788
|
case "image":
|
|
2785
|
-
return n7({ width: e, height: t, color:
|
|
2789
|
+
return n7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2786
2790
|
case "edit":
|
|
2787
|
-
return o7({ width: e, height: t, color:
|
|
2791
|
+
return o7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2788
2792
|
case "burgerMenu":
|
|
2789
|
-
return a7({ width: e, height: t, color:
|
|
2793
|
+
return a7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2790
2794
|
case "refresh":
|
|
2791
|
-
return r7({ width: e, height: t, color:
|
|
2795
|
+
return r7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2792
2796
|
case "projects":
|
|
2793
|
-
return C7({ width: e, height: t, color:
|
|
2797
|
+
return C7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2794
2798
|
case "user":
|
|
2795
|
-
return c7({ width: e, height: t, color:
|
|
2799
|
+
return c7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2796
2800
|
case "exit":
|
|
2797
|
-
return h7({ width: e, height: t, color:
|
|
2801
|
+
return h7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2798
2802
|
case "status":
|
|
2799
|
-
return d7({ width: e, height: t, color:
|
|
2803
|
+
return d7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2800
2804
|
case "community":
|
|
2801
|
-
return g7({ width: e, height: t, color:
|
|
2805
|
+
return g7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2802
2806
|
case "docs":
|
|
2803
|
-
return w7({ width: e, height: t, color:
|
|
2807
|
+
return w7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2804
2808
|
case "unpaidLeave":
|
|
2805
|
-
return f7({ width: e, height: t, color:
|
|
2809
|
+
return f7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
2806
2810
|
default:
|
|
2807
2811
|
return /* @__PURE__ */ n($, { children: "No Icon provided" });
|
|
2808
2812
|
}
|
|
@@ -2824,8 +2828,8 @@ const U2 = (l, e) => {
|
|
|
2824
2828
|
overflow: "hidden",
|
|
2825
2829
|
textOverflow: "clip"
|
|
2826
2830
|
});
|
|
2827
|
-
const
|
|
2828
|
-
Object.assign(h.style, d), i(
|
|
2831
|
+
const o = h.scrollWidth > h.offsetWidth + 1;
|
|
2832
|
+
Object.assign(h.style, d), i(o);
|
|
2829
2833
|
}, [s]);
|
|
2830
2834
|
return w1(() => {
|
|
2831
2835
|
const h = s();
|
|
@@ -2849,29 +2853,31 @@ const U2 = (l, e) => {
|
|
|
2849
2853
|
color: t,
|
|
2850
2854
|
children: i,
|
|
2851
2855
|
onClick: s,
|
|
2852
|
-
|
|
2853
|
-
whiteSpace: h = "normal",
|
|
2856
|
+
whiteSpace: C,
|
|
2854
2857
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
2855
|
-
trim:
|
|
2856
|
-
},
|
|
2858
|
+
trim: h = !1
|
|
2859
|
+
}, d) => {
|
|
2857
2860
|
const o = P(null);
|
|
2858
|
-
g1(
|
|
2859
|
-
const
|
|
2860
|
-
let
|
|
2861
|
-
l && l !== "inherit" && (
|
|
2862
|
-
const
|
|
2863
|
-
className:
|
|
2864
|
-
style: {
|
|
2861
|
+
g1(d, () => o.current);
|
|
2862
|
+
const a = p7(o, { enabled: h }), r = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
2863
|
+
let f = `snmt-typography snmt-typography-${e}`;
|
|
2864
|
+
l && l !== "inherit" && (f += ` snmt-typography-align-${l}`);
|
|
2865
|
+
const w = {
|
|
2866
|
+
className: f,
|
|
2867
|
+
style: {
|
|
2868
|
+
color: t,
|
|
2869
|
+
whiteSpace: C
|
|
2870
|
+
},
|
|
2865
2871
|
onClick: s,
|
|
2866
2872
|
ref: o,
|
|
2867
|
-
ellipsis:
|
|
2873
|
+
ellipsis: h && a ? {
|
|
2868
2874
|
tooltip: {
|
|
2869
2875
|
title: i,
|
|
2870
2876
|
overlayClassName: "snmt-tooltip"
|
|
2871
2877
|
}
|
|
2872
2878
|
} : void 0
|
|
2873
2879
|
};
|
|
2874
|
-
return
|
|
2880
|
+
return r ? /* @__PURE__ */ n(u7, { level: m7[e], ...w, children: i }) : /* @__PURE__ */ n(L7, { ...w, children: i });
|
|
2875
2881
|
}
|
|
2876
2882
|
), k7 = ({
|
|
2877
2883
|
width: l = 20,
|
|
@@ -5137,159 +5143,159 @@ const U2 = (l, e) => {
|
|
|
5137
5143
|
disabled: C = !1,
|
|
5138
5144
|
onClick: h
|
|
5139
5145
|
}) => {
|
|
5140
|
-
const { theme: d } = T(Q),
|
|
5146
|
+
const { theme: d } = T(Q), o = C ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, a = C ? void 0 : h, r = h && !C ? `${s || ""} clickable` : s;
|
|
5141
5147
|
return /* @__PURE__ */ n($, { children: (() => {
|
|
5142
5148
|
switch (l) {
|
|
5143
5149
|
case "arrow1Down":
|
|
5144
|
-
return k7({ width: e, height: t, color:
|
|
5150
|
+
return k7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5145
5151
|
case "arrow1Up":
|
|
5146
|
-
return N7({ width: e, height: t, color:
|
|
5152
|
+
return N7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5147
5153
|
case "arrow1Right":
|
|
5148
|
-
return M7({ width: e, height: t, color:
|
|
5154
|
+
return M7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5149
5155
|
case "arrow1Left":
|
|
5150
|
-
return x7({ width: e, height: t, color:
|
|
5156
|
+
return x7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5151
5157
|
case "info":
|
|
5152
|
-
return Z7({ width: e, height: t, color:
|
|
5158
|
+
return Z7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5153
5159
|
case "archive":
|
|
5154
|
-
return b7({ width: e, height: t, color:
|
|
5160
|
+
return b7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5155
5161
|
case "unarchive":
|
|
5156
|
-
return y7({ width: e, height: t, color:
|
|
5162
|
+
return y7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5157
5163
|
case "calendar":
|
|
5158
|
-
return A7({ width: e, height: t, color:
|
|
5164
|
+
return A7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5159
5165
|
case "check":
|
|
5160
|
-
return E7({ width: e, height: t, color:
|
|
5166
|
+
return E7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5161
5167
|
case "cancel":
|
|
5162
|
-
return D7({ width: e, height: t, color:
|
|
5168
|
+
return D7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5163
5169
|
case "add":
|
|
5164
|
-
return K7({ width: e, height: t, color:
|
|
5170
|
+
return K7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5165
5171
|
case "list":
|
|
5166
|
-
return G7({ width: e, height: t, color:
|
|
5172
|
+
return G7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5167
5173
|
case "dragAndDrop":
|
|
5168
|
-
return B7({ width: e, height: t, color:
|
|
5174
|
+
return B7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5169
5175
|
case "filter1":
|
|
5170
|
-
return S7({ width: e, height: t, color:
|
|
5176
|
+
return S7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5171
5177
|
case "filter2":
|
|
5172
|
-
return c9({ width: e, height: t, color:
|
|
5178
|
+
return c9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5173
5179
|
case "attention":
|
|
5174
|
-
return Y7({ width: e, height: t, color:
|
|
5180
|
+
return Y7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5175
5181
|
case "users":
|
|
5176
|
-
return O7({ width: e, height: t, color:
|
|
5182
|
+
return O7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5177
5183
|
case "mySkillsMatrix":
|
|
5178
5184
|
return I7({
|
|
5179
5185
|
width: e,
|
|
5180
5186
|
height: t,
|
|
5181
|
-
color:
|
|
5187
|
+
color: o,
|
|
5182
5188
|
className: r,
|
|
5183
|
-
onClick:
|
|
5189
|
+
onClick: a
|
|
5184
5190
|
});
|
|
5185
5191
|
case "skills":
|
|
5186
|
-
return $7({ width: e, height: t, color:
|
|
5192
|
+
return $7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5187
5193
|
case "skillsMatrices":
|
|
5188
5194
|
return P7({
|
|
5189
5195
|
width: e,
|
|
5190
5196
|
height: t,
|
|
5191
|
-
color:
|
|
5197
|
+
color: o,
|
|
5192
5198
|
className: r,
|
|
5193
|
-
onClick:
|
|
5199
|
+
onClick: a
|
|
5194
5200
|
});
|
|
5195
5201
|
case "history":
|
|
5196
|
-
return T7({ width: e, height: t, color:
|
|
5202
|
+
return T7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5197
5203
|
case "logOut":
|
|
5198
|
-
return j7({ width: e, height: t, color:
|
|
5204
|
+
return j7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5199
5205
|
case "settings":
|
|
5200
|
-
return F7({ width: e, height: t, color:
|
|
5206
|
+
return F7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5201
5207
|
case "trash":
|
|
5202
|
-
return U7({ width: e, height: t, color:
|
|
5208
|
+
return U7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5203
5209
|
case "settings2":
|
|
5204
|
-
return W7({ width: e, height: t, color:
|
|
5210
|
+
return W7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5205
5211
|
case "checkCircle":
|
|
5206
|
-
return z7({ width: e, height: t, color:
|
|
5212
|
+
return z7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5207
5213
|
case "cancelCircle":
|
|
5208
|
-
return J7({ width: e, height: t, color:
|
|
5214
|
+
return J7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5209
5215
|
case "visibilityIcon":
|
|
5210
5216
|
return Q7({
|
|
5211
5217
|
width: e,
|
|
5212
5218
|
height: t,
|
|
5213
|
-
color:
|
|
5219
|
+
color: o,
|
|
5214
5220
|
className: r,
|
|
5215
|
-
onClick:
|
|
5221
|
+
onClick: a
|
|
5216
5222
|
});
|
|
5217
5223
|
case "visibilityOffIcon":
|
|
5218
5224
|
return q7({
|
|
5219
5225
|
width: e,
|
|
5220
5226
|
height: t,
|
|
5221
|
-
color:
|
|
5227
|
+
color: o,
|
|
5222
5228
|
className: r,
|
|
5223
|
-
onClick:
|
|
5229
|
+
onClick: a
|
|
5224
5230
|
});
|
|
5225
5231
|
case "sortUp":
|
|
5226
|
-
return X7({ width: e, height: t, color:
|
|
5232
|
+
return X7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5227
5233
|
case "sortDown":
|
|
5228
|
-
return e9({ width: e, height: t, color:
|
|
5234
|
+
return e9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5229
5235
|
case "sortDouble":
|
|
5230
|
-
return t9({ width: e, height: t, color:
|
|
5236
|
+
return t9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5231
5237
|
case "search":
|
|
5232
|
-
return i9({ width: e, height: t, color:
|
|
5238
|
+
return i9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5233
5239
|
case "arrowUpFilled":
|
|
5234
|
-
return s9({ width: e, height: t, color:
|
|
5240
|
+
return s9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5235
5241
|
case "arrowDownFilled":
|
|
5236
|
-
return l9({ width: e, height: t, color:
|
|
5242
|
+
return l9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5237
5243
|
case "arrow2Up":
|
|
5238
|
-
return V7({ width: e, height: t, color:
|
|
5244
|
+
return V7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5239
5245
|
case "arrow2Right":
|
|
5240
|
-
return R7({ width: e, height: t, color:
|
|
5246
|
+
return R7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5241
5247
|
case "arrow2Down":
|
|
5242
|
-
return H7({ width: e, height: t, color:
|
|
5248
|
+
return H7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5243
5249
|
case "arrow2Left":
|
|
5244
|
-
return _7({ width: e, height: t, color:
|
|
5250
|
+
return _7({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5245
5251
|
case "link":
|
|
5246
|
-
return n9({ width: e, height: t, color:
|
|
5252
|
+
return n9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5247
5253
|
case "telegram":
|
|
5248
|
-
return a9({ width: e, height: t, color:
|
|
5254
|
+
return a9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5249
5255
|
case "mail":
|
|
5250
|
-
return C9({ width: e, height: t, color:
|
|
5256
|
+
return C9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5251
5257
|
case "github":
|
|
5252
|
-
return o9({ width: e, height: t, color:
|
|
5258
|
+
return o9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5253
5259
|
case "linkedIn":
|
|
5254
|
-
return r9({ width: e, height: t, color:
|
|
5260
|
+
return r9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5255
5261
|
case "emptyStateIcon":
|
|
5256
|
-
return h9({ width: e, height: t, color:
|
|
5262
|
+
return h9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5257
5263
|
case "dotMenuIcon":
|
|
5258
|
-
return d9({ width: e, height: t, color:
|
|
5264
|
+
return d9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5259
5265
|
case "plusCircle":
|
|
5260
|
-
return g9({ width: e, height: t, color:
|
|
5266
|
+
return g9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5261
5267
|
case "warning":
|
|
5262
|
-
return w9({ width: e, height: t, color:
|
|
5268
|
+
return w9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5263
5269
|
case "bell":
|
|
5264
|
-
return f9({ width: e, height: t, color:
|
|
5270
|
+
return f9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5265
5271
|
case "copy":
|
|
5266
|
-
return p9({ width: e, height: t, color:
|
|
5272
|
+
return p9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5267
5273
|
case "contract":
|
|
5268
|
-
return u9({ width: e, height: t, color:
|
|
5274
|
+
return u9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5269
5275
|
case "resourceManager":
|
|
5270
|
-
return L9({ width: e, height: t, color:
|
|
5276
|
+
return L9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5271
5277
|
case "image":
|
|
5272
|
-
return m9({ width: e, height: t, color:
|
|
5278
|
+
return m9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5273
5279
|
case "edit":
|
|
5274
|
-
return v9({ width: e, height: t, color:
|
|
5280
|
+
return v9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5275
5281
|
case "burgerMenu":
|
|
5276
|
-
return k9({ width: e, height: t, color:
|
|
5282
|
+
return k9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5277
5283
|
case "refresh":
|
|
5278
|
-
return N9({ width: e, height: t, color:
|
|
5284
|
+
return N9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5279
5285
|
case "projects":
|
|
5280
|
-
return M9({ width: e, height: t, color:
|
|
5286
|
+
return M9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5281
5287
|
case "user":
|
|
5282
|
-
return Z9({ width: e, height: t, color:
|
|
5288
|
+
return Z9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5283
5289
|
case "exit":
|
|
5284
|
-
return x9({ width: e, height: t, color:
|
|
5290
|
+
return x9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5285
5291
|
case "status":
|
|
5286
|
-
return V9({ width: e, height: t, color:
|
|
5292
|
+
return V9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5287
5293
|
case "community":
|
|
5288
|
-
return R9({ width: e, height: t, color:
|
|
5294
|
+
return R9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5289
5295
|
case "docs":
|
|
5290
|
-
return H9({ width: e, height: t, color:
|
|
5296
|
+
return H9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5291
5297
|
case "unpaidLeave":
|
|
5292
|
-
return _9({ width: e, height: t, color:
|
|
5298
|
+
return _9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
5293
5299
|
default:
|
|
5294
5300
|
return /* @__PURE__ */ n($, { children: "No Icon provided" });
|
|
5295
5301
|
}
|
|
@@ -5349,8 +5355,8 @@ const U2 = (l, e) => {
|
|
|
5349
5355
|
overflow: "hidden",
|
|
5350
5356
|
textOverflow: "clip"
|
|
5351
5357
|
});
|
|
5352
|
-
const
|
|
5353
|
-
Object.assign(h.style, d), i(
|
|
5358
|
+
const o = h.scrollWidth > h.offsetWidth + 1;
|
|
5359
|
+
Object.assign(h.style, d), i(o);
|
|
5354
5360
|
}, [s]);
|
|
5355
5361
|
return w1(() => {
|
|
5356
5362
|
const h = s();
|
|
@@ -5374,29 +5380,31 @@ const U2 = (l, e) => {
|
|
|
5374
5380
|
color: t,
|
|
5375
5381
|
children: i,
|
|
5376
5382
|
onClick: s,
|
|
5377
|
-
|
|
5378
|
-
whiteSpace: h = "normal",
|
|
5383
|
+
whiteSpace: C,
|
|
5379
5384
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5380
|
-
trim:
|
|
5381
|
-
},
|
|
5385
|
+
trim: h = !1
|
|
5386
|
+
}, d) => {
|
|
5382
5387
|
const o = P(null);
|
|
5383
|
-
g1(
|
|
5384
|
-
const
|
|
5385
|
-
let
|
|
5386
|
-
l && l !== "inherit" && (
|
|
5387
|
-
const
|
|
5388
|
-
className:
|
|
5389
|
-
style: {
|
|
5388
|
+
g1(d, () => o.current);
|
|
5389
|
+
const a = y9(o, { enabled: h }), r = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5390
|
+
let f = `snmt-typography snmt-typography-${e}`;
|
|
5391
|
+
l && l !== "inherit" && (f += ` snmt-typography-align-${l}`);
|
|
5392
|
+
const w = {
|
|
5393
|
+
className: f,
|
|
5394
|
+
style: {
|
|
5395
|
+
color: t,
|
|
5396
|
+
whiteSpace: C
|
|
5397
|
+
},
|
|
5390
5398
|
onClick: s,
|
|
5391
5399
|
ref: o,
|
|
5392
|
-
ellipsis:
|
|
5400
|
+
ellipsis: h && a ? {
|
|
5393
5401
|
tooltip: {
|
|
5394
5402
|
title: i,
|
|
5395
5403
|
overlayClassName: "snmt-tooltip"
|
|
5396
5404
|
}
|
|
5397
5405
|
} : void 0
|
|
5398
5406
|
};
|
|
5399
|
-
return
|
|
5407
|
+
return r ? /* @__PURE__ */ n(A9, { level: D9[e], ...w, children: i }) : /* @__PURE__ */ n(E9, { ...w, children: i });
|
|
5400
5408
|
}
|
|
5401
5409
|
), G9 = ({
|
|
5402
5410
|
children: l,
|
|
@@ -5407,7 +5415,7 @@ const U2 = (l, e) => {
|
|
|
5407
5415
|
noPadding: C = !1,
|
|
5408
5416
|
trigger: h = "click"
|
|
5409
5417
|
}) => {
|
|
5410
|
-
const [d,
|
|
5418
|
+
const [d, o] = E(!1);
|
|
5411
5419
|
return /* @__PURE__ */ n(
|
|
5412
5420
|
H2,
|
|
5413
5421
|
{
|
|
@@ -5417,8 +5425,8 @@ const U2 = (l, e) => {
|
|
|
5417
5425
|
trigger: h,
|
|
5418
5426
|
overlayClassName: `snmt-popover ${C ? "" : "padding"}`,
|
|
5419
5427
|
open: t ?? d,
|
|
5420
|
-
onOpenChange: (
|
|
5421
|
-
a
|
|
5428
|
+
onOpenChange: (a) => {
|
|
5429
|
+
o(a), i == null || i(a);
|
|
5422
5430
|
},
|
|
5423
5431
|
children: /* @__PURE__ */ n("div", { className: "wrapper", children: l })
|
|
5424
5432
|
}
|
|
@@ -5440,8 +5448,8 @@ const U2 = (l, e) => {
|
|
|
5440
5448
|
overflow: "hidden",
|
|
5441
5449
|
textOverflow: "clip"
|
|
5442
5450
|
});
|
|
5443
|
-
const
|
|
5444
|
-
Object.assign(h.style, d), i(
|
|
5451
|
+
const o = h.scrollWidth > h.offsetWidth + 1;
|
|
5452
|
+
Object.assign(h.style, d), i(o);
|
|
5445
5453
|
}, [s]);
|
|
5446
5454
|
return w1(() => {
|
|
5447
5455
|
const h = s();
|
|
@@ -5465,29 +5473,31 @@ const U2 = (l, e) => {
|
|
|
5465
5473
|
color: t,
|
|
5466
5474
|
children: i,
|
|
5467
5475
|
onClick: s,
|
|
5468
|
-
|
|
5469
|
-
whiteSpace: h = "normal",
|
|
5476
|
+
whiteSpace: C,
|
|
5470
5477
|
/** This prop allows you to enable tooltip if text size is too big */
|
|
5471
|
-
trim:
|
|
5472
|
-
},
|
|
5478
|
+
trim: h = !1
|
|
5479
|
+
}, d) => {
|
|
5473
5480
|
const o = P(null);
|
|
5474
|
-
g1(
|
|
5475
|
-
const
|
|
5476
|
-
let
|
|
5477
|
-
l && l !== "inherit" && (
|
|
5478
|
-
const
|
|
5479
|
-
className:
|
|
5480
|
-
style: {
|
|
5481
|
+
g1(d, () => o.current);
|
|
5482
|
+
const a = B9(o, { enabled: h }), r = e === "h1" || e === "h2" || e === "h3" || e === "h4";
|
|
5483
|
+
let f = `snmt-typography snmt-typography-${e}`;
|
|
5484
|
+
l && l !== "inherit" && (f += ` snmt-typography-align-${l}`);
|
|
5485
|
+
const w = {
|
|
5486
|
+
className: f,
|
|
5487
|
+
style: {
|
|
5488
|
+
color: t,
|
|
5489
|
+
whiteSpace: C
|
|
5490
|
+
},
|
|
5481
5491
|
onClick: s,
|
|
5482
5492
|
ref: o,
|
|
5483
|
-
ellipsis:
|
|
5493
|
+
ellipsis: h && a ? {
|
|
5484
5494
|
tooltip: {
|
|
5485
5495
|
title: i,
|
|
5486
5496
|
overlayClassName: "snmt-tooltip"
|
|
5487
5497
|
}
|
|
5488
5498
|
} : void 0
|
|
5489
5499
|
};
|
|
5490
|
-
return
|
|
5500
|
+
return r ? /* @__PURE__ */ n(S9, { level: O9[e], ...w, children: i }) : /* @__PURE__ */ n(Y9, { ...w, children: i });
|
|
5491
5501
|
}
|
|
5492
5502
|
), I9 = ({
|
|
5493
5503
|
width: l = 20,
|
|
@@ -7753,159 +7763,159 @@ const U2 = (l, e) => {
|
|
|
7753
7763
|
disabled: C = !1,
|
|
7754
7764
|
onClick: h
|
|
7755
7765
|
}) => {
|
|
7756
|
-
const { theme: d } = T(Q),
|
|
7766
|
+
const { theme: d } = T(Q), o = C ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, a = C ? void 0 : h, r = h && !C ? `${s || ""} clickable` : s;
|
|
7757
7767
|
return /* @__PURE__ */ n($, { children: (() => {
|
|
7758
7768
|
switch (l) {
|
|
7759
7769
|
case "arrow1Down":
|
|
7760
|
-
return I9({ width: e, height: t, color:
|
|
7770
|
+
return I9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7761
7771
|
case "arrow1Up":
|
|
7762
|
-
return $9({ width: e, height: t, color:
|
|
7772
|
+
return $9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7763
7773
|
case "arrow1Right":
|
|
7764
|
-
return P9({ width: e, height: t, color:
|
|
7774
|
+
return P9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7765
7775
|
case "arrow1Left":
|
|
7766
|
-
return T9({ width: e, height: t, color:
|
|
7776
|
+
return T9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7767
7777
|
case "info":
|
|
7768
|
-
return j9({ width: e, height: t, color:
|
|
7778
|
+
return j9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7769
7779
|
case "archive":
|
|
7770
|
-
return J9({ width: e, height: t, color:
|
|
7780
|
+
return J9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7771
7781
|
case "unarchive":
|
|
7772
|
-
return Q9({ width: e, height: t, color:
|
|
7782
|
+
return Q9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7773
7783
|
case "calendar":
|
|
7774
|
-
return q9({ width: e, height: t, color:
|
|
7784
|
+
return q9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7775
7785
|
case "check":
|
|
7776
|
-
return X9({ width: e, height: t, color:
|
|
7786
|
+
return X9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7777
7787
|
case "cancel":
|
|
7778
|
-
return e0({ width: e, height: t, color:
|
|
7788
|
+
return e0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7779
7789
|
case "add":
|
|
7780
|
-
return t0({ width: e, height: t, color:
|
|
7790
|
+
return t0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7781
7791
|
case "list":
|
|
7782
|
-
return i0({ width: e, height: t, color:
|
|
7792
|
+
return i0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7783
7793
|
case "dragAndDrop":
|
|
7784
|
-
return l0({ width: e, height: t, color:
|
|
7794
|
+
return l0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7785
7795
|
case "filter1":
|
|
7786
|
-
return s0({ width: e, height: t, color:
|
|
7796
|
+
return s0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7787
7797
|
case "filter2":
|
|
7788
|
-
return y0({ width: e, height: t, color:
|
|
7798
|
+
return y0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7789
7799
|
case "attention":
|
|
7790
|
-
return n0({ width: e, height: t, color:
|
|
7800
|
+
return n0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7791
7801
|
case "users":
|
|
7792
|
-
return o0({ width: e, height: t, color:
|
|
7802
|
+
return o0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7793
7803
|
case "mySkillsMatrix":
|
|
7794
7804
|
return a0({
|
|
7795
7805
|
width: e,
|
|
7796
7806
|
height: t,
|
|
7797
|
-
color:
|
|
7807
|
+
color: o,
|
|
7798
7808
|
className: r,
|
|
7799
|
-
onClick:
|
|
7809
|
+
onClick: a
|
|
7800
7810
|
});
|
|
7801
7811
|
case "skills":
|
|
7802
|
-
return r0({ width: e, height: t, color:
|
|
7812
|
+
return r0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7803
7813
|
case "skillsMatrices":
|
|
7804
7814
|
return C0({
|
|
7805
7815
|
width: e,
|
|
7806
7816
|
height: t,
|
|
7807
|
-
color:
|
|
7817
|
+
color: o,
|
|
7808
7818
|
className: r,
|
|
7809
|
-
onClick:
|
|
7819
|
+
onClick: a
|
|
7810
7820
|
});
|
|
7811
7821
|
case "history":
|
|
7812
|
-
return h0({ width: e, height: t, color:
|
|
7822
|
+
return h0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7813
7823
|
case "logOut":
|
|
7814
|
-
return c0({ width: e, height: t, color:
|
|
7824
|
+
return c0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7815
7825
|
case "settings":
|
|
7816
|
-
return d0({ width: e, height: t, color:
|
|
7826
|
+
return d0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7817
7827
|
case "trash":
|
|
7818
|
-
return g0({ width: e, height: t, color:
|
|
7828
|
+
return g0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7819
7829
|
case "settings2":
|
|
7820
|
-
return w0({ width: e, height: t, color:
|
|
7830
|
+
return w0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7821
7831
|
case "checkCircle":
|
|
7822
|
-
return f0({ width: e, height: t, color:
|
|
7832
|
+
return f0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7823
7833
|
case "cancelCircle":
|
|
7824
|
-
return p0({ width: e, height: t, color:
|
|
7834
|
+
return p0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7825
7835
|
case "visibilityIcon":
|
|
7826
7836
|
return u0({
|
|
7827
7837
|
width: e,
|
|
7828
7838
|
height: t,
|
|
7829
|
-
color:
|
|
7839
|
+
color: o,
|
|
7830
7840
|
className: r,
|
|
7831
|
-
onClick:
|
|
7841
|
+
onClick: a
|
|
7832
7842
|
});
|
|
7833
7843
|
case "visibilityOffIcon":
|
|
7834
7844
|
return L0({
|
|
7835
7845
|
width: e,
|
|
7836
7846
|
height: t,
|
|
7837
|
-
color:
|
|
7847
|
+
color: o,
|
|
7838
7848
|
className: r,
|
|
7839
|
-
onClick:
|
|
7849
|
+
onClick: a
|
|
7840
7850
|
});
|
|
7841
7851
|
case "sortUp":
|
|
7842
|
-
return m0({ width: e, height: t, color:
|
|
7852
|
+
return m0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7843
7853
|
case "sortDown":
|
|
7844
|
-
return v0({ width: e, height: t, color:
|
|
7854
|
+
return v0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7845
7855
|
case "sortDouble":
|
|
7846
|
-
return k0({ width: e, height: t, color:
|
|
7856
|
+
return k0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7847
7857
|
case "search":
|
|
7848
|
-
return N0({ width: e, height: t, color:
|
|
7858
|
+
return N0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7849
7859
|
case "arrowUpFilled":
|
|
7850
|
-
return x0({ width: e, height: t, color:
|
|
7860
|
+
return x0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7851
7861
|
case "arrowDownFilled":
|
|
7852
|
-
return M0({ width: e, height: t, color:
|
|
7862
|
+
return M0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7853
7863
|
case "arrow2Up":
|
|
7854
|
-
return F9({ width: e, height: t, color:
|
|
7864
|
+
return F9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7855
7865
|
case "arrow2Right":
|
|
7856
|
-
return U9({ width: e, height: t, color:
|
|
7866
|
+
return U9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7857
7867
|
case "arrow2Down":
|
|
7858
|
-
return W9({ width: e, height: t, color:
|
|
7868
|
+
return W9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7859
7869
|
case "arrow2Left":
|
|
7860
|
-
return z9({ width: e, height: t, color:
|
|
7870
|
+
return z9({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7861
7871
|
case "link":
|
|
7862
|
-
return Z0({ width: e, height: t, color:
|
|
7872
|
+
return Z0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7863
7873
|
case "telegram":
|
|
7864
|
-
return R0({ width: e, height: t, color:
|
|
7874
|
+
return R0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7865
7875
|
case "mail":
|
|
7866
|
-
return _0({ width: e, height: t, color:
|
|
7876
|
+
return _0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7867
7877
|
case "github":
|
|
7868
|
-
return V0({ width: e, height: t, color:
|
|
7878
|
+
return V0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7869
7879
|
case "linkedIn":
|
|
7870
|
-
return H0({ width: e, height: t, color:
|
|
7880
|
+
return H0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7871
7881
|
case "emptyStateIcon":
|
|
7872
|
-
return b0({ width: e, height: t, color:
|
|
7882
|
+
return b0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7873
7883
|
case "dotMenuIcon":
|
|
7874
|
-
return A0({ width: e, height: t, color:
|
|
7884
|
+
return A0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7875
7885
|
case "plusCircle":
|
|
7876
|
-
return E0({ width: e, height: t, color:
|
|
7886
|
+
return E0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7877
7887
|
case "warning":
|
|
7878
|
-
return D0({ width: e, height: t, color:
|
|
7888
|
+
return D0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7879
7889
|
case "bell":
|
|
7880
|
-
return K0({ width: e, height: t, color:
|
|
7890
|
+
return K0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7881
7891
|
case "copy":
|
|
7882
|
-
return G0({ width: e, height: t, color:
|
|
7892
|
+
return G0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7883
7893
|
case "contract":
|
|
7884
|
-
return B0({ width: e, height: t, color:
|
|
7894
|
+
return B0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7885
7895
|
case "resourceManager":
|
|
7886
|
-
return S0({ width: e, height: t, color:
|
|
7896
|
+
return S0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7887
7897
|
case "image":
|
|
7888
|
-
return Y0({ width: e, height: t, color:
|
|
7898
|
+
return Y0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7889
7899
|
case "edit":
|
|
7890
|
-
return O0({ width: e, height: t, color:
|
|
7900
|
+
return O0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7891
7901
|
case "burgerMenu":
|
|
7892
|
-
return I0({ width: e, height: t, color:
|
|
7902
|
+
return I0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7893
7903
|
case "refresh":
|
|
7894
|
-
return $0({ width: e, height: t, color:
|
|
7904
|
+
return $0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7895
7905
|
case "projects":
|
|
7896
|
-
return P0({ width: e, height: t, color:
|
|
7906
|
+
return P0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7897
7907
|
case "user":
|
|
7898
|
-
return j0({ width: e, height: t, color:
|
|
7908
|
+
return j0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7899
7909
|
case "exit":
|
|
7900
|
-
return T0({ width: e, height: t, color:
|
|
7910
|
+
return T0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7901
7911
|
case "status":
|
|
7902
|
-
return F0({ width: e, height: t, color:
|
|
7912
|
+
return F0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7903
7913
|
case "community":
|
|
7904
|
-
return U0({ width: e, height: t, color:
|
|
7914
|
+
return U0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7905
7915
|
case "docs":
|
|
7906
|
-
return W0({ width: e, height: t, color:
|
|
7916
|
+
return W0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7907
7917
|
case "unpaidLeave":
|
|
7908
|
-
return z0({ width: e, height: t, color:
|
|
7918
|
+
return z0({ width: e, height: t, color: o, className: r, onClick: a });
|
|
7909
7919
|
default:
|
|
7910
7920
|
return /* @__PURE__ */ n($, { children: "No Icon provided" });
|
|
7911
7921
|
}
|
|
@@ -8007,23 +8017,23 @@ const X0 = ({
|
|
|
8007
8017
|
extraOptions: h,
|
|
8008
8018
|
selectedItemVariant: d = "default"
|
|
8009
8019
|
}) => {
|
|
8010
|
-
const { locale:
|
|
8020
|
+
const { locale: o } = T(Q), { t: a } = z2("common", { lng: o }), [r, f] = E(!1);
|
|
8011
8021
|
if (S(() => {
|
|
8012
|
-
l.length ||
|
|
8022
|
+
l.length || f(!1);
|
|
8013
8023
|
}, [l]), !l.length)
|
|
8014
8024
|
return null;
|
|
8015
|
-
const w = (
|
|
8025
|
+
const w = (p) => {
|
|
8016
8026
|
var v, M;
|
|
8017
|
-
return ((v = C == null ? void 0 : C.find((H) => H.value ===
|
|
8027
|
+
return ((v = C == null ? void 0 : C.find((H) => H.value === p)) == null ? void 0 : v.label) || ((M = h == null ? void 0 : h.find((H) => H.value === p)) == null ? void 0 : M.label) || p;
|
|
8018
8028
|
};
|
|
8019
8029
|
return /* @__PURE__ */ g(
|
|
8020
8030
|
G9,
|
|
8021
8031
|
{
|
|
8022
8032
|
content: (
|
|
8023
8033
|
// 90: paddings + margins + gaps and so on
|
|
8024
|
-
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ n(C1, { gap: 6, flexWrap: "wrap", children: l.map(({ value:
|
|
8034
|
+
/* @__PURE__ */ n("div", { style: { maxWidth: t - 90 }, className: "snmt-popover-from-select", children: /* @__PURE__ */ n(C1, { gap: 6, flexWrap: "wrap", children: l.map(({ value: p }) => {
|
|
8025
8035
|
const v = d === "badge" && C.find(
|
|
8026
|
-
(M) => M.label === w(
|
|
8036
|
+
(M) => M.label === w(p)
|
|
8027
8037
|
);
|
|
8028
8038
|
return d === "badge" ? /* @__PURE__ */ n(
|
|
8029
8039
|
o2,
|
|
@@ -8031,28 +8041,28 @@ const X0 = ({
|
|
|
8031
8041
|
variant: "regular",
|
|
8032
8042
|
size: "small",
|
|
8033
8043
|
color: v ? v.color : void 0,
|
|
8034
|
-
text: w(
|
|
8044
|
+
text: w(p)
|
|
8035
8045
|
},
|
|
8036
|
-
|
|
8046
|
+
p
|
|
8037
8047
|
) : /* @__PURE__ */ n(
|
|
8038
8048
|
s2,
|
|
8039
8049
|
{
|
|
8040
|
-
onClose: () => e(
|
|
8050
|
+
onClose: () => e(p),
|
|
8041
8051
|
closable: i,
|
|
8042
8052
|
disabled: s,
|
|
8043
|
-
children: w(
|
|
8053
|
+
children: w(p)
|
|
8044
8054
|
},
|
|
8045
|
-
|
|
8055
|
+
p
|
|
8046
8056
|
);
|
|
8047
8057
|
}) }) })
|
|
8048
8058
|
),
|
|
8049
8059
|
placement: "bottomRight",
|
|
8050
8060
|
isOpen: r,
|
|
8051
|
-
setIsOpen:
|
|
8061
|
+
setIsOpen: f,
|
|
8052
8062
|
children: [
|
|
8053
8063
|
l.length,
|
|
8054
8064
|
" ",
|
|
8055
|
-
|
|
8065
|
+
a("more")
|
|
8056
8066
|
]
|
|
8057
8067
|
}
|
|
8058
8068
|
);
|
|
@@ -10332,159 +10342,159 @@ const X0 = ({
|
|
|
10332
10342
|
disabled: C = !1,
|
|
10333
10343
|
onClick: h
|
|
10334
10344
|
}) => {
|
|
10335
|
-
const { theme: d } = T(Q),
|
|
10345
|
+
const { theme: d } = T(Q), o = C ? d && d === "dark" ? c.GREY_LIGHT_4 : c.GREY_DARK_1 : i, a = C ? void 0 : h, r = h && !C ? `${s || ""} clickable` : s;
|
|
10336
10346
|
return /* @__PURE__ */ n($, { children: (() => {
|
|
10337
10347
|
switch (l) {
|
|
10338
10348
|
case "arrow1Down":
|
|
10339
|
-
return t4({ width: e, height: t, color:
|
|
10349
|
+
return t4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10340
10350
|
case "arrow1Up":
|
|
10341
|
-
return i4({ width: e, height: t, color:
|
|
10351
|
+
return i4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10342
10352
|
case "arrow1Right":
|
|
10343
|
-
return l4({ width: e, height: t, color:
|
|
10353
|
+
return l4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10344
10354
|
case "arrow1Left":
|
|
10345
|
-
return s4({ width: e, height: t, color:
|
|
10355
|
+
return s4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10346
10356
|
case "info":
|
|
10347
|
-
return n4({ width: e, height: t, color:
|
|
10357
|
+
return n4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10348
10358
|
case "archive":
|
|
10349
|
-
return h4({ width: e, height: t, color:
|
|
10359
|
+
return h4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10350
10360
|
case "unarchive":
|
|
10351
|
-
return c4({ width: e, height: t, color:
|
|
10361
|
+
return c4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10352
10362
|
case "calendar":
|
|
10353
|
-
return d4({ width: e, height: t, color:
|
|
10363
|
+
return d4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10354
10364
|
case "check":
|
|
10355
|
-
return g4({ width: e, height: t, color:
|
|
10365
|
+
return g4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10356
10366
|
case "cancel":
|
|
10357
|
-
return w4({ width: e, height: t, color:
|
|
10367
|
+
return w4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10358
10368
|
case "add":
|
|
10359
|
-
return f4({ width: e, height: t, color:
|
|
10369
|
+
return f4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10360
10370
|
case "list":
|
|
10361
|
-
return p4({ width: e, height: t, color:
|
|
10371
|
+
return p4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10362
10372
|
case "dragAndDrop":
|
|
10363
|
-
return u4({ width: e, height: t, color:
|
|
10373
|
+
return u4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10364
10374
|
case "filter1":
|
|
10365
|
-
return L4({ width: e, height: t, color:
|
|
10375
|
+
return L4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10366
10376
|
case "filter2":
|
|
10367
|
-
return j4({ width: e, height: t, color:
|
|
10377
|
+
return j4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10368
10378
|
case "attention":
|
|
10369
|
-
return m4({ width: e, height: t, color:
|
|
10379
|
+
return m4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10370
10380
|
case "users":
|
|
10371
|
-
return v4({ width: e, height: t, color:
|
|
10381
|
+
return v4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10372
10382
|
case "mySkillsMatrix":
|
|
10373
10383
|
return k4({
|
|
10374
10384
|
width: e,
|
|
10375
10385
|
height: t,
|
|
10376
|
-
color:
|
|
10386
|
+
color: o,
|
|
10377
10387
|
className: r,
|
|
10378
|
-
onClick:
|
|
10388
|
+
onClick: a
|
|
10379
10389
|
});
|
|
10380
10390
|
case "skills":
|
|
10381
|
-
return N4({ width: e, height: t, color:
|
|
10391
|
+
return N4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10382
10392
|
case "skillsMatrices":
|
|
10383
10393
|
return M4({
|
|
10384
10394
|
width: e,
|
|
10385
10395
|
height: t,
|
|
10386
|
-
color:
|
|
10396
|
+
color: o,
|
|
10387
10397
|
className: r,
|
|
10388
|
-
onClick:
|
|
10398
|
+
onClick: a
|
|
10389
10399
|
});
|
|
10390
10400
|
case "history":
|
|
10391
|
-
return x4({ width: e, height: t, color:
|
|
10401
|
+
return x4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10392
10402
|
case "logOut":
|
|
10393
|
-
return Z4({ width: e, height: t, color:
|
|
10403
|
+
return Z4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10394
10404
|
case "settings":
|
|
10395
|
-
return V4({ width: e, height: t, color:
|
|
10405
|
+
return V4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10396
10406
|
case "trash":
|
|
10397
|
-
return R4({ width: e, height: t, color:
|
|
10407
|
+
return R4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10398
10408
|
case "settings2":
|
|
10399
|
-
return H4({ width: e, height: t, color:
|
|
10409
|
+
return H4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10400
10410
|
case "checkCircle":
|
|
10401
|
-
return _4({ width: e, height: t, color:
|
|
10411
|
+
return _4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10402
10412
|
case "cancelCircle":
|
|
10403
|
-
return b4({ width: e, height: t, color:
|
|
10413
|
+
return b4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10404
10414
|
case "visibilityIcon":
|
|
10405
10415
|
return y4({
|
|
10406
10416
|
width: e,
|
|
10407
10417
|
height: t,
|
|
10408
|
-
color:
|
|
10418
|
+
color: o,
|
|
10409
10419
|
className: r,
|
|
10410
|
-
onClick:
|
|
10420
|
+
onClick: a
|
|
10411
10421
|
});
|
|
10412
10422
|
case "visibilityOffIcon":
|
|
10413
10423
|
return A4({
|
|
10414
10424
|
width: e,
|
|
10415
10425
|
height: t,
|
|
10416
|
-
color:
|
|
10426
|
+
color: o,
|
|
10417
10427
|
className: r,
|
|
10418
|
-
onClick:
|
|
10428
|
+
onClick: a
|
|
10419
10429
|
});
|
|
10420
10430
|
case "sortUp":
|
|
10421
|
-
return E4({ width: e, height: t, color:
|
|
10431
|
+
return E4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10422
10432
|
case "sortDown":
|
|
10423
|
-
return D4({ width: e, height: t, color:
|
|
10433
|
+
return D4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10424
10434
|
case "sortDouble":
|
|
10425
|
-
return K4({ width: e, height: t, color:
|
|
10435
|
+
return K4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10426
10436
|
case "search":
|
|
10427
|
-
return G4({ width: e, height: t, color:
|
|
10437
|
+
return G4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10428
10438
|
case "arrowUpFilled":
|
|
10429
|
-
return S4({ width: e, height: t, color:
|
|
10439
|
+
return S4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10430
10440
|
case "arrowDownFilled":
|
|
10431
|
-
return B4({ width: e, height: t, color:
|
|
10441
|
+
return B4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10432
10442
|
case "arrow2Up":
|
|
10433
|
-
return o4({ width: e, height: t, color:
|
|
10443
|
+
return o4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10434
10444
|
case "arrow2Right":
|
|
10435
|
-
return a4({ width: e, height: t, color:
|
|
10445
|
+
return a4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10436
10446
|
case "arrow2Down":
|
|
10437
|
-
return r4({ width: e, height: t, color:
|
|
10447
|
+
return r4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10438
10448
|
case "arrow2Left":
|
|
10439
|
-
return C4({ width: e, height: t, color:
|
|
10449
|
+
return C4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10440
10450
|
case "link":
|
|
10441
|
-
return Y4({ width: e, height: t, color:
|
|
10451
|
+
return Y4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10442
10452
|
case "telegram":
|
|
10443
|
-
return I4({ width: e, height: t, color:
|
|
10453
|
+
return I4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10444
10454
|
case "mail":
|
|
10445
|
-
return P4({ width: e, height: t, color:
|
|
10455
|
+
return P4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10446
10456
|
case "github":
|
|
10447
|
-
return O4({ width: e, height: t, color:
|
|
10457
|
+
return O4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10448
10458
|
case "linkedIn":
|
|
10449
|
-
return $4({ width: e, height: t, color:
|
|
10459
|
+
return $4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10450
10460
|
case "emptyStateIcon":
|
|
10451
|
-
return T4({ width: e, height: t, color:
|
|
10461
|
+
return T4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10452
10462
|
case "dotMenuIcon":
|
|
10453
|
-
return F4({ width: e, height: t, color:
|
|
10463
|
+
return F4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10454
10464
|
case "plusCircle":
|
|
10455
|
-
return U4({ width: e, height: t, color:
|
|
10465
|
+
return U4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10456
10466
|
case "warning":
|
|
10457
|
-
return W4({ width: e, height: t, color:
|
|
10467
|
+
return W4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10458
10468
|
case "bell":
|
|
10459
|
-
return z4({ width: e, height: t, color:
|
|
10469
|
+
return z4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10460
10470
|
case "copy":
|
|
10461
|
-
return J4({ width: e, height: t, color:
|
|
10471
|
+
return J4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10462
10472
|
case "contract":
|
|
10463
|
-
return Q4({ width: e, height: t, color:
|
|
10473
|
+
return Q4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10464
10474
|
case "resourceManager":
|
|
10465
|
-
return q4({ width: e, height: t, color:
|
|
10475
|
+
return q4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10466
10476
|
case "image":
|
|
10467
|
-
return X4({ width: e, height: t, color:
|
|
10477
|
+
return X4({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10468
10478
|
case "edit":
|
|
10469
|
-
return e6({ width: e, height: t, color:
|
|
10479
|
+
return e6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10470
10480
|
case "burgerMenu":
|
|
10471
|
-
return t6({ width: e, height: t, color:
|
|
10481
|
+
return t6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10472
10482
|
case "refresh":
|
|
10473
|
-
return i6({ width: e, height: t, color:
|
|
10483
|
+
return i6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10474
10484
|
case "projects":
|
|
10475
|
-
return l6({ width: e, height: t, color:
|
|
10485
|
+
return l6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10476
10486
|
case "user":
|
|
10477
|
-
return n6({ width: e, height: t, color:
|
|
10487
|
+
return n6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10478
10488
|
case "exit":
|
|
10479
|
-
return s6({ width: e, height: t, color:
|
|
10489
|
+
return s6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10480
10490
|
case "status":
|
|
10481
|
-
return o6({ width: e, height: t, color:
|
|
10491
|
+
return o6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10482
10492
|
case "community":
|
|
10483
|
-
return a6({ width: e, height: t, color:
|
|
10493
|
+
return a6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10484
10494
|
case "docs":
|
|
10485
|
-
return r6({ width: e, height: t, color:
|
|
10495
|
+
return r6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10486
10496
|
case "unpaidLeave":
|
|
10487
|
-
return C6({ width: e, height: t, color:
|
|
10497
|
+
return C6({ width: e, height: t, color: o, className: r, onClick: a });
|
|
10488
10498
|
default:
|
|
10489
10499
|
return /* @__PURE__ */ n($, { children: "No Icon provided" });
|
|
10490
10500
|
}
|
|
@@ -10528,12 +10538,12 @@ const w6 = q((l, e) => {
|
|
|
10528
10538
|
mode: C,
|
|
10529
10539
|
search: h = !1,
|
|
10530
10540
|
options: d,
|
|
10531
|
-
width:
|
|
10532
|
-
disabled:
|
|
10541
|
+
width: o,
|
|
10542
|
+
disabled: a = !1,
|
|
10533
10543
|
required: r = !1,
|
|
10534
|
-
clearable:
|
|
10544
|
+
clearable: f = !0,
|
|
10535
10545
|
scrollThresholdValue: w = 50,
|
|
10536
|
-
onSearchChange:
|
|
10546
|
+
onSearchChange: p,
|
|
10537
10547
|
onDropdownVisibleChange: v,
|
|
10538
10548
|
onScrollToEnd: M,
|
|
10539
10549
|
onPopupScroll: x,
|
|
@@ -10581,14 +10591,14 @@ const w6 = q((l, e) => {
|
|
|
10581
10591
|
},
|
|
10582
10592
|
[C, i, x1]
|
|
10583
10593
|
), p2 = A(() => {
|
|
10584
|
-
if (!(m ||
|
|
10594
|
+
if (!(m || a)) {
|
|
10585
10595
|
if (C) {
|
|
10586
10596
|
e1([]);
|
|
10587
10597
|
return;
|
|
10588
10598
|
}
|
|
10589
10599
|
e1("");
|
|
10590
10600
|
}
|
|
10591
|
-
}, [
|
|
10601
|
+
}, [a, e1, C, m]), p1 = A(
|
|
10592
10602
|
(L) => {
|
|
10593
10603
|
const R = _.filter((y) => y !== L);
|
|
10594
10604
|
e1(R), Y(R);
|
|
@@ -10621,7 +10631,7 @@ const w6 = q((l, e) => {
|
|
|
10621
10631
|
values: L,
|
|
10622
10632
|
onTagClose: p1,
|
|
10623
10633
|
maxWidth: ((y = n1.current) == null ? void 0 : y.clientWidth) || 0,
|
|
10624
|
-
disabled:
|
|
10634
|
+
disabled: a,
|
|
10625
10635
|
closable: !m,
|
|
10626
10636
|
options: d,
|
|
10627
10637
|
extraOptions: Z,
|
|
@@ -10629,7 +10639,7 @@ const w6 = q((l, e) => {
|
|
|
10629
10639
|
}
|
|
10630
10640
|
);
|
|
10631
10641
|
},
|
|
10632
|
-
[
|
|
10642
|
+
[a, Z, p1, d, m]
|
|
10633
10643
|
), v2 = A(
|
|
10634
10644
|
({ label: L, value: R, mode: y }) => {
|
|
10635
10645
|
if (y === "filter")
|
|
@@ -10644,10 +10654,10 @@ const w6 = q((l, e) => {
|
|
|
10644
10654
|
color: o1 ? o1.color : "cyan",
|
|
10645
10655
|
text: t1
|
|
10646
10656
|
}
|
|
10647
|
-
) : /* @__PURE__ */ n(s2, { onClose: () => p1(R), disabled:
|
|
10657
|
+
) : /* @__PURE__ */ n(s2, { onClose: () => p1(R), disabled: a, children: t1 }) });
|
|
10648
10658
|
}
|
|
10649
10659
|
},
|
|
10650
|
-
[
|
|
10660
|
+
[a, Z1, p1, E1, G, d]
|
|
10651
10661
|
), D1 = Array.isArray(_) && _.length > 0 || !!_ && typeof _ == "string" && _.trim() !== "";
|
|
10652
10662
|
return /* @__PURE__ */ g(
|
|
10653
10663
|
"div",
|
|
@@ -10663,7 +10673,7 @@ const w6 = q((l, e) => {
|
|
|
10663
10673
|
${X === "static" ? "snmt-select-static" : ""}
|
|
10664
10674
|
${B === "borderless" ? "snmt-select-borderless" : ""}`,
|
|
10665
10675
|
ref: n1,
|
|
10666
|
-
style: { width:
|
|
10676
|
+
style: { width: o },
|
|
10667
10677
|
children: [
|
|
10668
10678
|
/* @__PURE__ */ n(
|
|
10669
10679
|
x2,
|
|
@@ -10675,11 +10685,11 @@ const w6 = q((l, e) => {
|
|
|
10675
10685
|
showSearch: !!h,
|
|
10676
10686
|
filterOption: h && g2,
|
|
10677
10687
|
onDropdownVisibleChange: d2,
|
|
10678
|
-
disabled:
|
|
10688
|
+
disabled: a,
|
|
10679
10689
|
value: _ || void 0,
|
|
10680
10690
|
labelRender: (L) => {
|
|
10681
10691
|
const R = Z1(L.value);
|
|
10682
|
-
return
|
|
10692
|
+
return a ? /* @__PURE__ */ n("span", { style: { color: c.GREY_DARK_1 }, children: R }) : R;
|
|
10683
10693
|
},
|
|
10684
10694
|
mode: f6(C, x1),
|
|
10685
10695
|
variant: B,
|
|
@@ -10689,7 +10699,7 @@ const w6 = q((l, e) => {
|
|
|
10689
10699
|
onMouseEnter: () => W(!0),
|
|
10690
10700
|
onMouseLeave: () => W(!1),
|
|
10691
10701
|
onSearch: (L) => {
|
|
10692
|
-
D(!L),
|
|
10702
|
+
D(!L), p && p(L);
|
|
10693
10703
|
},
|
|
10694
10704
|
onSelect: () => D(!0),
|
|
10695
10705
|
onDeselect: () => D(!0),
|
|
@@ -10699,18 +10709,18 @@ const w6 = q((l, e) => {
|
|
|
10699
10709
|
onPopupScroll: L2,
|
|
10700
10710
|
prefix: V && /* @__PURE__ */ n(O1, { size: "small" }),
|
|
10701
10711
|
suffixIcon: /* @__PURE__ */ n("div", { className: "wrapper-suffix-icon", children: C !== "filter" && /* @__PURE__ */ g($, { children: [
|
|
10702
|
-
_ && !!_.length &&
|
|
10712
|
+
_ && !!_.length && f && /* @__PURE__ */ n(
|
|
10703
10713
|
"div",
|
|
10704
10714
|
{
|
|
10705
10715
|
onClick: p2,
|
|
10706
10716
|
style: {
|
|
10707
|
-
cursor:
|
|
10717
|
+
cursor: a ? "not-allowed" : "pointer"
|
|
10708
10718
|
},
|
|
10709
10719
|
children: /* @__PURE__ */ n(
|
|
10710
10720
|
a1,
|
|
10711
10721
|
{
|
|
10712
10722
|
name: "cancel",
|
|
10713
|
-
color:
|
|
10723
|
+
color: a ? c.GREY_DARK_1 : c.GREY_DARK_2
|
|
10714
10724
|
}
|
|
10715
10725
|
)
|
|
10716
10726
|
}
|
|
@@ -10726,7 +10736,7 @@ const w6 = q((l, e) => {
|
|
|
10726
10736
|
a1,
|
|
10727
10737
|
{
|
|
10728
10738
|
name: "arrow2Down",
|
|
10729
|
-
color:
|
|
10739
|
+
color: a ? c.GREY_DARK_1 : c.GREY_DARK_2,
|
|
10730
10740
|
className: O ? "select-arrow-rotated" : "select-arrow",
|
|
10731
10741
|
onClick: () => f1(!O)
|
|
10732
10742
|
}
|
|
@@ -10765,14 +10775,14 @@ const w6 = q((l, e) => {
|
|
|
10765
10775
|
s && B !== "borderless" && /* @__PURE__ */ n(
|
|
10766
10776
|
"label",
|
|
10767
10777
|
{
|
|
10768
|
-
className: `${U || D1 ? "label-floating" : ""} ${
|
|
10778
|
+
className: `${U || D1 ? "label-floating" : ""} ${a ? "label-disabled" : ""} ${U ? "label-focused" : ""} ${V ? "label-loading" : ""} ${k ? "label-error" : ""}`,
|
|
10769
10779
|
children: r ? `${s}*` : s
|
|
10770
10780
|
}
|
|
10771
10781
|
),
|
|
10772
10782
|
/* @__PURE__ */ n(
|
|
10773
10783
|
"fieldset",
|
|
10774
10784
|
{
|
|
10775
|
-
className: `${U ? "fieldset-focused" : ""} ${
|
|
10785
|
+
className: `${U ? "fieldset-focused" : ""} ${a ? "fieldset-disabled" : ""} ${D1 ? "fieldset-filled" : ""} ${k ? "fieldset-error" : ""}
|
|
10776
10786
|
${F ? "fieldset-hovered" : ""}`,
|
|
10777
10787
|
children: /* @__PURE__ */ n("legend", { children: s && B !== "borderless" && /* @__PURE__ */ n("span", { children: r ? `${s}*` : s }) })
|
|
10778
10788
|
}
|
|
@@ -10897,11 +10907,11 @@ const M6 = [" ", ",", "?", "!", ";"], x6 = new N6(20), Z6 = (l, e, t) => {
|
|
|
10897
10907
|
if (!s || typeof s != "object")
|
|
10898
10908
|
return;
|
|
10899
10909
|
let h, d = "";
|
|
10900
|
-
for (let
|
|
10901
|
-
if (
|
|
10902
|
-
if (["string", "number", "boolean"].indexOf(typeof h) > -1 &&
|
|
10910
|
+
for (let o = C; o < i.length; ++o)
|
|
10911
|
+
if (o !== C && (d += t), d += i[o], h = s[d], h !== void 0) {
|
|
10912
|
+
if (["string", "number", "boolean"].indexOf(typeof h) > -1 && o < i.length - 1)
|
|
10903
10913
|
continue;
|
|
10904
|
-
C +=
|
|
10914
|
+
C += o - C + 1;
|
|
10905
10915
|
break;
|
|
10906
10916
|
}
|
|
10907
10917
|
s = h;
|
|
@@ -10989,12 +10999,12 @@ class M1 {
|
|
|
10989
10999
|
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
10990
11000
|
i[s - 1] = arguments[s];
|
|
10991
11001
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach((h) => {
|
|
10992
|
-
let [d,
|
|
10993
|
-
for (let
|
|
11002
|
+
let [d, o] = h;
|
|
11003
|
+
for (let a = 0; a < o; a++)
|
|
10994
11004
|
d(...i);
|
|
10995
11005
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((h) => {
|
|
10996
|
-
let [d,
|
|
10997
|
-
for (let
|
|
11006
|
+
let [d, o] = h;
|
|
11007
|
+
for (let a = 0; a < o; a++)
|
|
10998
11008
|
d.apply(d, [e, ...i]);
|
|
10999
11009
|
});
|
|
11000
11010
|
}
|
|
@@ -11019,8 +11029,8 @@ class j1 extends M1 {
|
|
|
11019
11029
|
const C = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, h = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
11020
11030
|
let d;
|
|
11021
11031
|
e.indexOf(".") > -1 ? d = e.split(".") : (d = [e, t], i && (Array.isArray(i) ? d.push(...i) : N(i) && C ? d.push(...i.split(C)) : d.push(i)));
|
|
11022
|
-
const
|
|
11023
|
-
return !
|
|
11032
|
+
const o = m1(this.data, d);
|
|
11033
|
+
return !o && !t && !i && e.indexOf(".") > -1 && (e = d[0], t = d[1], i = d.slice(2).join(".")), o || !h || !N(i) ? o : _1(this.data && this.data[e] && this.data[e][t], i, C);
|
|
11024
11034
|
}
|
|
11025
11035
|
addResource(e, t, i, s) {
|
|
11026
11036
|
let C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -11046,11 +11056,11 @@ class j1 extends M1 {
|
|
|
11046
11056
|
skipCopy: !1
|
|
11047
11057
|
}, d = [e, t];
|
|
11048
11058
|
e.indexOf(".") > -1 && (d = e.split("."), s = i, i = t, t = d[1]), this.addNamespaces(t);
|
|
11049
|
-
let
|
|
11050
|
-
h.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? a2(
|
|
11051
|
-
...
|
|
11059
|
+
let o = m1(this.data, d) || {};
|
|
11060
|
+
h.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? a2(o, i, C) : o = {
|
|
11061
|
+
...o,
|
|
11052
11062
|
...i
|
|
11053
|
-
}, T1(this.data, d,
|
|
11063
|
+
}, T1(this.data, d, o), h.silent || this.emit("added", e, t, i);
|
|
11054
11064
|
}
|
|
11055
11065
|
removeResourceBundle(e, t) {
|
|
11056
11066
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -11110,14 +11120,14 @@ class N1 extends M1 {
|
|
|
11110
11120
|
let C = t.ns || this.options.defaultNS || [];
|
|
11111
11121
|
const h = i && e.indexOf(i) > -1, d = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Z6(e, i, s);
|
|
11112
11122
|
if (h && !d) {
|
|
11113
|
-
const
|
|
11114
|
-
if (
|
|
11123
|
+
const o = e.match(this.interpolator.nestingRegexp);
|
|
11124
|
+
if (o && o.length > 0)
|
|
11115
11125
|
return {
|
|
11116
11126
|
key: e,
|
|
11117
11127
|
namespaces: N(C) ? [C] : C
|
|
11118
11128
|
};
|
|
11119
|
-
const
|
|
11120
|
-
(i !== s || i === s && this.options.ns.indexOf(
|
|
11129
|
+
const a = e.split(i);
|
|
11130
|
+
(i !== s || i === s && this.options.ns.indexOf(a[0]) > -1) && (C = a.shift()), e = a.join(s);
|
|
11121
11131
|
}
|
|
11122
11132
|
return {
|
|
11123
11133
|
key: e,
|
|
@@ -11132,42 +11142,42 @@ class N1 extends M1 {
|
|
|
11132
11142
|
const s = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, C = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
|
|
11133
11143
|
key: h,
|
|
11134
11144
|
namespaces: d
|
|
11135
|
-
} = this.extractFromKey(e[e.length - 1], t),
|
|
11136
|
-
if (
|
|
11145
|
+
} = this.extractFromKey(e[e.length - 1], t), o = d[d.length - 1], a = t.lng || this.language, r = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
11146
|
+
if (a && a.toLowerCase() === "cimode") {
|
|
11137
11147
|
if (r) {
|
|
11138
11148
|
const u = t.nsSeparator || this.options.nsSeparator;
|
|
11139
11149
|
return s ? {
|
|
11140
|
-
res: `${
|
|
11150
|
+
res: `${o}${u}${h}`,
|
|
11141
11151
|
usedKey: h,
|
|
11142
11152
|
exactUsedKey: h,
|
|
11143
|
-
usedLng:
|
|
11144
|
-
usedNS:
|
|
11153
|
+
usedLng: a,
|
|
11154
|
+
usedNS: o,
|
|
11145
11155
|
usedParams: this.getUsedParamsDetails(t)
|
|
11146
|
-
} : `${
|
|
11156
|
+
} : `${o}${u}${h}`;
|
|
11147
11157
|
}
|
|
11148
11158
|
return s ? {
|
|
11149
11159
|
res: h,
|
|
11150
11160
|
usedKey: h,
|
|
11151
11161
|
exactUsedKey: h,
|
|
11152
|
-
usedLng:
|
|
11153
|
-
usedNS:
|
|
11162
|
+
usedLng: a,
|
|
11163
|
+
usedNS: o,
|
|
11154
11164
|
usedParams: this.getUsedParamsDetails(t)
|
|
11155
11165
|
} : h;
|
|
11156
11166
|
}
|
|
11157
|
-
const
|
|
11158
|
-
let w =
|
|
11159
|
-
const
|
|
11167
|
+
const f = this.resolve(e, t);
|
|
11168
|
+
let w = f && f.res;
|
|
11169
|
+
const p = f && f.usedKey || h, v = f && f.exactUsedKey || h, M = Object.prototype.toString.apply(w), x = ["[object Number]", "[object Function]", "[object RegExp]"], H = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, Z = !this.i18nFormat || this.i18nFormat.handleAsObject, b = !N(w) && typeof w != "boolean" && typeof w != "number";
|
|
11160
11170
|
if (Z && w && b && x.indexOf(M) < 0 && !(N(H) && Array.isArray(w))) {
|
|
11161
11171
|
if (!t.returnObjects && !this.options.returnObjects) {
|
|
11162
11172
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
11163
|
-
const u = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
|
11173
|
+
const u = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, w, {
|
|
11164
11174
|
...t,
|
|
11165
11175
|
ns: d
|
|
11166
11176
|
}) : `key '${h} (${this.language})' returned an object instead of string.`;
|
|
11167
|
-
return s ? (
|
|
11177
|
+
return s ? (f.res = u, f.usedParams = this.getUsedParamsDetails(t), f) : u;
|
|
11168
11178
|
}
|
|
11169
11179
|
if (C) {
|
|
11170
|
-
const u = Array.isArray(w), V = u ? [] : {}, m = u ? v :
|
|
11180
|
+
const u = Array.isArray(w), V = u ? [] : {}, m = u ? v : p;
|
|
11171
11181
|
for (const k in w)
|
|
11172
11182
|
if (Object.prototype.hasOwnProperty.call(w, k)) {
|
|
11173
11183
|
const G = `${m}${C}${k}`;
|
|
@@ -11183,13 +11193,13 @@ class N1 extends M1 {
|
|
|
11183
11193
|
w = w.join(H), w && (w = this.extendTranslation(w, e, t, i));
|
|
11184
11194
|
else {
|
|
11185
11195
|
let u = !1, V = !1;
|
|
11186
|
-
const m = t.count !== void 0 && !N(t.count), k = N1.hasDefaultValue(t), G = m ? this.pluralResolver.getSuffix(
|
|
11196
|
+
const m = t.count !== void 0 && !N(t.count), k = N1.hasDefaultValue(t), G = m ? this.pluralResolver.getSuffix(a, t.count, t) : "", B = t.ordinal && m ? this.pluralResolver.getSuffix(a, t.count, {
|
|
11187
11197
|
ordinal: !1
|
|
11188
11198
|
}) : "", X = m && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), O = X && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${G}`] || t[`defaultValue${B}`] || t.defaultValue;
|
|
11189
11199
|
!this.isValidLookup(w) && k && (u = !0, w = O), this.isValidLookup(w) || (V = !0, w = h);
|
|
11190
11200
|
const U = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && V ? void 0 : w, j = k && O !== w && this.options.updateMissing;
|
|
11191
11201
|
if (V || u || j) {
|
|
11192
|
-
if (this.logger.log(j ? "updateKey" : "missingKey",
|
|
11202
|
+
if (this.logger.log(j ? "updateKey" : "missingKey", a, o, h, j ? O : w), C) {
|
|
11193
11203
|
const D = this.resolve(h, {
|
|
11194
11204
|
...t,
|
|
11195
11205
|
keySeparator: !1
|
|
@@ -11204,7 +11214,7 @@ class N1 extends M1 {
|
|
|
11204
11214
|
else this.options.saveMissingTo === "all" ? F = this.languageUtils.toResolveHierarchy(t.lng || this.language) : F.push(t.lng || this.language);
|
|
11205
11215
|
const s1 = (D, _, Y) => {
|
|
11206
11216
|
const n1 = k && Y !== w ? Y : U;
|
|
11207
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(D,
|
|
11217
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(D, o, _, n1, j, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(D, o, _, n1, j, t), this.emit("missingKey", D, o, _, w);
|
|
11208
11218
|
};
|
|
11209
11219
|
this.options.saveMissing && (this.options.saveMissingPlurals && m ? F.forEach((D) => {
|
|
11210
11220
|
const _ = this.pluralResolver.getSuffixes(D, t);
|
|
@@ -11213,9 +11223,9 @@ class N1 extends M1 {
|
|
|
11213
11223
|
});
|
|
11214
11224
|
}) : s1(F, h, O));
|
|
11215
11225
|
}
|
|
11216
|
-
w = this.extendTranslation(w, e, t,
|
|
11226
|
+
w = this.extendTranslation(w, e, t, f, i), V && w === h && this.options.appendNamespaceToMissingKey && (w = `${o}:${h}`), (V || u) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? w = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${o}:${h}` : h, u ? w : void 0) : w = this.options.parseMissingKeyHandler(w));
|
|
11217
11227
|
}
|
|
11218
|
-
return s ? (
|
|
11228
|
+
return s ? (f.res = w, f.usedParams = this.getUsedParamsDetails(t), f) : w;
|
|
11219
11229
|
}
|
|
11220
11230
|
extendTranslation(e, t, i, s, C) {
|
|
11221
11231
|
var h = this;
|
|
@@ -11234,28 +11244,28 @@ class N1 extends M1 {
|
|
|
11234
11244
|
...i.interpolation
|
|
11235
11245
|
}
|
|
11236
11246
|
});
|
|
11237
|
-
const
|
|
11247
|
+
const a = N(e) && (i && i.interpolation && i.interpolation.skipOnVariables !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
11238
11248
|
let r;
|
|
11239
|
-
if (
|
|
11249
|
+
if (a) {
|
|
11240
11250
|
const w = e.match(this.interpolator.nestingRegexp);
|
|
11241
11251
|
r = w && w.length;
|
|
11242
11252
|
}
|
|
11243
|
-
let
|
|
11244
|
-
if (this.options.interpolation.defaultVariables && (
|
|
11253
|
+
let f = i.replace && !N(i.replace) ? i.replace : i;
|
|
11254
|
+
if (this.options.interpolation.defaultVariables && (f = {
|
|
11245
11255
|
...this.options.interpolation.defaultVariables,
|
|
11246
|
-
...
|
|
11247
|
-
}), e = this.interpolator.interpolate(e,
|
|
11248
|
-
const w = e.match(this.interpolator.nestingRegexp),
|
|
11249
|
-
r <
|
|
11256
|
+
...f
|
|
11257
|
+
}), e = this.interpolator.interpolate(e, f, i.lng || this.language || s.usedLng, i), a) {
|
|
11258
|
+
const w = e.match(this.interpolator.nestingRegexp), p = w && w.length;
|
|
11259
|
+
r < p && (i.nest = !1);
|
|
11250
11260
|
}
|
|
11251
11261
|
!i.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, function() {
|
|
11252
|
-
for (var w = arguments.length,
|
|
11253
|
-
|
|
11254
|
-
return C && C[0] ===
|
|
11262
|
+
for (var w = arguments.length, p = new Array(w), v = 0; v < w; v++)
|
|
11263
|
+
p[v] = arguments[v];
|
|
11264
|
+
return C && C[0] === p[0] && !i.context ? (h.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : h.translate(...p, t);
|
|
11255
11265
|
}, i)), i.interpolation && this.interpolator.reset();
|
|
11256
11266
|
}
|
|
11257
|
-
const d = i.postProcess || this.options.postProcess,
|
|
11258
|
-
return e != null &&
|
|
11267
|
+
const d = i.postProcess || this.options.postProcess, o = N(d) ? [d] : d;
|
|
11268
|
+
return e != null && o && o.length && i.applyPostProcessor !== !1 && (e = r2.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
11259
11269
|
i18nResolved: {
|
|
11260
11270
|
...s,
|
|
11261
11271
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -11265,14 +11275,14 @@ class N1 extends M1 {
|
|
|
11265
11275
|
}
|
|
11266
11276
|
resolve(e) {
|
|
11267
11277
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, s, C, h, d;
|
|
11268
|
-
return N(e) && (e = [e]), e.forEach((
|
|
11278
|
+
return N(e) && (e = [e]), e.forEach((o) => {
|
|
11269
11279
|
if (this.isValidLookup(i)) return;
|
|
11270
|
-
const
|
|
11280
|
+
const a = this.extractFromKey(o, t), r = a.key;
|
|
11271
11281
|
s = r;
|
|
11272
|
-
let
|
|
11273
|
-
this.options.fallbackNS && (
|
|
11274
|
-
const w = t.count !== void 0 && !N(t.count),
|
|
11275
|
-
|
|
11282
|
+
let f = a.namespaces;
|
|
11283
|
+
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
11284
|
+
const w = t.count !== void 0 && !N(t.count), p = w && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), v = t.context !== void 0 && (N(t.context) || typeof t.context == "number") && t.context !== "", M = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
11285
|
+
f.forEach((x) => {
|
|
11276
11286
|
this.isValidLookup(i) || (d = x, !F1[`${M[0]}-${x}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (F1[`${M[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${M.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!!!")), M.forEach((H) => {
|
|
11277
11287
|
if (this.isValidLookup(i)) return;
|
|
11278
11288
|
h = H;
|
|
@@ -11283,9 +11293,9 @@ class N1 extends M1 {
|
|
|
11283
11293
|
let u;
|
|
11284
11294
|
w && (u = this.pluralResolver.getSuffix(H, t.count, t));
|
|
11285
11295
|
const V = `${this.options.pluralSeparator}zero`, m = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
11286
|
-
if (w && (Z.push(r + u), t.ordinal && u.indexOf(m) === 0 && Z.push(r + u.replace(m, this.options.pluralSeparator)),
|
|
11296
|
+
if (w && (Z.push(r + u), t.ordinal && u.indexOf(m) === 0 && Z.push(r + u.replace(m, this.options.pluralSeparator)), p && Z.push(r + V)), v) {
|
|
11287
11297
|
const k = `${r}${this.options.contextSeparator}${t.context}`;
|
|
11288
|
-
Z.push(k), w && (Z.push(k + u), t.ordinal && u.indexOf(m) === 0 && Z.push(k + u.replace(m, this.options.pluralSeparator)),
|
|
11298
|
+
Z.push(k), w && (Z.push(k + u), t.ordinal && u.indexOf(m) === 0 && Z.push(k + u.replace(m, this.options.pluralSeparator)), p && Z.push(k + V));
|
|
11289
11299
|
}
|
|
11290
11300
|
}
|
|
11291
11301
|
let b;
|
|
@@ -11559,8 +11569,8 @@ class A6 {
|
|
|
11559
11569
|
});
|
|
11560
11570
|
} catch {
|
|
11561
11571
|
if (!e.match(/-|_/)) return;
|
|
11562
|
-
const
|
|
11563
|
-
h = this.getRule(
|
|
11572
|
+
const o = this.languageUtils.getLanguagePartFromCode(e);
|
|
11573
|
+
h = this.getRule(o, t);
|
|
11564
11574
|
}
|
|
11565
11575
|
return this.pluralRulesCache[C] = h, h;
|
|
11566
11576
|
}
|
|
@@ -11617,19 +11627,19 @@ class E6 {
|
|
|
11617
11627
|
prefix: C,
|
|
11618
11628
|
prefixEscaped: h,
|
|
11619
11629
|
suffix: d,
|
|
11620
|
-
suffixEscaped:
|
|
11621
|
-
formatSeparator:
|
|
11630
|
+
suffixEscaped: o,
|
|
11631
|
+
formatSeparator: a,
|
|
11622
11632
|
unescapeSuffix: r,
|
|
11623
|
-
unescapePrefix:
|
|
11633
|
+
unescapePrefix: f,
|
|
11624
11634
|
nestingPrefix: w,
|
|
11625
|
-
nestingPrefixEscaped:
|
|
11635
|
+
nestingPrefixEscaped: p,
|
|
11626
11636
|
nestingSuffix: v,
|
|
11627
11637
|
nestingSuffixEscaped: M,
|
|
11628
11638
|
nestingOptionsSeparator: x,
|
|
11629
11639
|
maxReplaces: H,
|
|
11630
11640
|
alwaysFormat: Z
|
|
11631
11641
|
} = e.interpolation;
|
|
11632
|
-
this.escape = t !== void 0 ? t : k6, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = C ? i1(C) : h || "{{", this.suffix = d ? i1(d) :
|
|
11642
|
+
this.escape = t !== void 0 ? t : k6, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = C ? i1(C) : h || "{{", this.suffix = d ? i1(d) : o || "}}", this.formatSeparator = a || ",", this.unescapePrefix = r ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : r || "", this.nestingPrefix = w ? i1(w) : p || i1("$t("), this.nestingSuffix = v ? i1(v) : M || i1(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = H || 1e3, this.alwaysFormat = Z !== void 0 ? Z : !1, this.resetRegExp();
|
|
11633
11643
|
}
|
|
11634
11644
|
reset() {
|
|
11635
11645
|
this.options && this.init(this.options);
|
|
@@ -11640,83 +11650,83 @@ class E6 {
|
|
|
11640
11650
|
}
|
|
11641
11651
|
interpolate(e, t, i, s) {
|
|
11642
11652
|
let C, h, d;
|
|
11643
|
-
const
|
|
11644
|
-
if (
|
|
11645
|
-
const H = z1(t,
|
|
11653
|
+
const o = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (p) => {
|
|
11654
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
11655
|
+
const H = z1(t, o, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
11646
11656
|
return this.alwaysFormat ? this.format(H, void 0, i, {
|
|
11647
11657
|
...s,
|
|
11648
11658
|
...t,
|
|
11649
|
-
interpolationkey:
|
|
11659
|
+
interpolationkey: p
|
|
11650
11660
|
}) : H;
|
|
11651
11661
|
}
|
|
11652
|
-
const v =
|
|
11653
|
-
return this.format(z1(t,
|
|
11662
|
+
const v = p.split(this.formatSeparator), M = v.shift().trim(), x = v.join(this.formatSeparator).trim();
|
|
11663
|
+
return this.format(z1(t, o, M, this.options.keySeparator, this.options.ignoreJSONStructure), x, i, {
|
|
11654
11664
|
...s,
|
|
11655
11665
|
...t,
|
|
11656
11666
|
interpolationkey: M
|
|
11657
11667
|
});
|
|
11658
11668
|
};
|
|
11659
11669
|
this.resetRegExp();
|
|
11660
|
-
const r = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
|
11670
|
+
const r = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler, f = s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
11661
11671
|
return [{
|
|
11662
11672
|
regex: this.regexpUnescape,
|
|
11663
|
-
safeValue: (
|
|
11673
|
+
safeValue: (p) => R1(p)
|
|
11664
11674
|
}, {
|
|
11665
11675
|
regex: this.regexp,
|
|
11666
|
-
safeValue: (
|
|
11667
|
-
}].forEach((
|
|
11668
|
-
for (d = 0; C =
|
|
11676
|
+
safeValue: (p) => this.escapeValue ? R1(this.escape(p)) : R1(p)
|
|
11677
|
+
}].forEach((p) => {
|
|
11678
|
+
for (d = 0; C = p.regex.exec(e); ) {
|
|
11669
11679
|
const v = C[1].trim();
|
|
11670
|
-
if (h =
|
|
11680
|
+
if (h = a(v), h === void 0)
|
|
11671
11681
|
if (typeof r == "function") {
|
|
11672
11682
|
const x = r(e, C, s);
|
|
11673
11683
|
h = N(x) ? x : "";
|
|
11674
11684
|
} else if (s && Object.prototype.hasOwnProperty.call(s, v))
|
|
11675
11685
|
h = "";
|
|
11676
|
-
else if (
|
|
11686
|
+
else if (f) {
|
|
11677
11687
|
h = C[0];
|
|
11678
11688
|
continue;
|
|
11679
11689
|
} else
|
|
11680
11690
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), h = "";
|
|
11681
11691
|
else !N(h) && !this.useRawValueToEscape && (h = I1(h));
|
|
11682
|
-
const M =
|
|
11683
|
-
if (e = e.replace(C[0], M),
|
|
11692
|
+
const M = p.safeValue(h);
|
|
11693
|
+
if (e = e.replace(C[0], M), f ? (p.regex.lastIndex += h.length, p.regex.lastIndex -= C[0].length) : p.regex.lastIndex = 0, d++, d >= this.maxReplaces)
|
|
11684
11694
|
break;
|
|
11685
11695
|
}
|
|
11686
11696
|
}), e;
|
|
11687
11697
|
}
|
|
11688
11698
|
nest(e, t) {
|
|
11689
11699
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, C, h;
|
|
11690
|
-
const d = (
|
|
11700
|
+
const d = (o, a) => {
|
|
11691
11701
|
const r = this.nestingOptionsSeparator;
|
|
11692
|
-
if (
|
|
11693
|
-
const
|
|
11694
|
-
let w = `{${
|
|
11695
|
-
|
|
11696
|
-
const
|
|
11697
|
-
(
|
|
11702
|
+
if (o.indexOf(r) < 0) return o;
|
|
11703
|
+
const f = o.split(new RegExp(`${r}[ ]*{`));
|
|
11704
|
+
let w = `{${f[1]}`;
|
|
11705
|
+
o = f[0], w = this.interpolate(w, h);
|
|
11706
|
+
const p = w.match(/'/g), v = w.match(/"/g);
|
|
11707
|
+
(p && p.length % 2 === 0 && !v || v.length % 2 !== 0) && (w = w.replace(/'/g, '"'));
|
|
11698
11708
|
try {
|
|
11699
|
-
h = JSON.parse(w),
|
|
11700
|
-
...
|
|
11709
|
+
h = JSON.parse(w), a && (h = {
|
|
11710
|
+
...a,
|
|
11701
11711
|
...h
|
|
11702
11712
|
});
|
|
11703
11713
|
} catch (M) {
|
|
11704
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
11714
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${o}`, M), `${o}${r}${w}`;
|
|
11705
11715
|
}
|
|
11706
|
-
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue,
|
|
11716
|
+
return h.defaultValue && h.defaultValue.indexOf(this.prefix) > -1 && delete h.defaultValue, o;
|
|
11707
11717
|
};
|
|
11708
11718
|
for (; s = this.nestingRegexp.exec(e); ) {
|
|
11709
|
-
let
|
|
11719
|
+
let o = [];
|
|
11710
11720
|
h = {
|
|
11711
11721
|
...i
|
|
11712
11722
|
}, h = h.replace && !N(h.replace) ? h.replace : h, h.applyPostProcessor = !1, delete h.defaultValue;
|
|
11713
|
-
let
|
|
11723
|
+
let a = !1;
|
|
11714
11724
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
11715
|
-
const r = s[1].split(this.formatSeparator).map((
|
|
11716
|
-
s[1] = r.shift(),
|
|
11725
|
+
const r = s[1].split(this.formatSeparator).map((f) => f.trim());
|
|
11726
|
+
s[1] = r.shift(), o = r, a = !0;
|
|
11717
11727
|
}
|
|
11718
11728
|
if (C = t(d.call(this, s[1].trim(), h), h), C && s[0] === e && !N(C)) return C;
|
|
11719
|
-
N(C) || (C = I1(C)), C || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), C = ""),
|
|
11729
|
+
N(C) || (C = I1(C)), C || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), C = ""), a && (C = o.reduce((r, f) => this.format(r, f, i.lng, {
|
|
11720
11730
|
...i,
|
|
11721
11731
|
interpolationkey: s[1].trim()
|
|
11722
11732
|
}), C.trim())), e = e.replace(s[0], C), this.regexp.lastIndex = 0;
|
|
@@ -11733,8 +11743,8 @@ const D6 = (l) => {
|
|
|
11733
11743
|
const s = i[1].substring(0, i[1].length - 1);
|
|
11734
11744
|
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((h) => {
|
|
11735
11745
|
if (h) {
|
|
11736
|
-
const [d, ...
|
|
11737
|
-
t[r] || (t[r] =
|
|
11746
|
+
const [d, ...o] = h.split(":"), a = o.join(":").trim().replace(/^'+|'+$/g, ""), r = d.trim();
|
|
11747
|
+
t[r] || (t[r] = a), a === "false" && (t[r] = !1), a === "true" && (t[r] = !0), isNaN(a) || (t[r] = parseInt(a, 10));
|
|
11738
11748
|
}
|
|
11739
11749
|
});
|
|
11740
11750
|
}
|
|
@@ -11808,19 +11818,19 @@ class K6 {
|
|
|
11808
11818
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
11809
11819
|
const C = t.split(this.formatSeparator);
|
|
11810
11820
|
if (C.length > 1 && C[0].indexOf("(") > 1 && C[0].indexOf(")") < 0 && C.find((d) => d.indexOf(")") > -1)) {
|
|
11811
|
-
const d = C.findIndex((
|
|
11821
|
+
const d = C.findIndex((o) => o.indexOf(")") > -1);
|
|
11812
11822
|
C[0] = [C[0], ...C.splice(1, d)].join(this.formatSeparator);
|
|
11813
11823
|
}
|
|
11814
|
-
return C.reduce((d,
|
|
11824
|
+
return C.reduce((d, o) => {
|
|
11815
11825
|
const {
|
|
11816
|
-
formatName:
|
|
11826
|
+
formatName: a,
|
|
11817
11827
|
formatOptions: r
|
|
11818
|
-
} = D6(
|
|
11819
|
-
if (this.formats[
|
|
11820
|
-
let
|
|
11828
|
+
} = D6(o);
|
|
11829
|
+
if (this.formats[a]) {
|
|
11830
|
+
let f = d;
|
|
11821
11831
|
try {
|
|
11822
|
-
const w = s && s.formatParams && s.formatParams[s.interpolationkey] || {},
|
|
11823
|
-
|
|
11832
|
+
const w = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, p = w.locale || w.lng || s.locale || s.lng || i;
|
|
11833
|
+
f = this.formats[a](d, p, {
|
|
11824
11834
|
...r,
|
|
11825
11835
|
...s,
|
|
11826
11836
|
...w
|
|
@@ -11828,9 +11838,9 @@ class K6 {
|
|
|
11828
11838
|
} catch (w) {
|
|
11829
11839
|
this.logger.warn(w);
|
|
11830
11840
|
}
|
|
11831
|
-
return
|
|
11841
|
+
return f;
|
|
11832
11842
|
} else
|
|
11833
|
-
this.logger.warn(`there was no format function for ${
|
|
11843
|
+
this.logger.warn(`there was no format function for ${a}`);
|
|
11834
11844
|
return d;
|
|
11835
11845
|
}, e);
|
|
11836
11846
|
}
|
|
@@ -11844,13 +11854,13 @@ class B6 extends M1 {
|
|
|
11844
11854
|
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = I.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(i, s.backend, s);
|
|
11845
11855
|
}
|
|
11846
11856
|
queueLoad(e, t, i, s) {
|
|
11847
|
-
const C = {}, h = {}, d = {},
|
|
11848
|
-
return e.forEach((
|
|
11857
|
+
const C = {}, h = {}, d = {}, o = {};
|
|
11858
|
+
return e.forEach((a) => {
|
|
11849
11859
|
let r = !0;
|
|
11850
|
-
t.forEach((
|
|
11851
|
-
const w = `${
|
|
11852
|
-
!i.reload && this.store.hasResourceBundle(
|
|
11853
|
-
}), r || (d[
|
|
11860
|
+
t.forEach((f) => {
|
|
11861
|
+
const w = `${a}|${f}`;
|
|
11862
|
+
!i.reload && this.store.hasResourceBundle(a, f) ? this.state[w] = 2 : this.state[w] < 0 || (this.state[w] === 1 ? h[w] === void 0 && (h[w] = !0) : (this.state[w] = 1, r = !1, h[w] === void 0 && (h[w] = !0), C[w] === void 0 && (C[w] = !0), o[f] === void 0 && (o[f] = !0)));
|
|
11863
|
+
}), r || (d[a] = !0);
|
|
11854
11864
|
}), (Object.keys(C).length || Object.keys(h).length) && this.queue.push({
|
|
11855
11865
|
pending: h,
|
|
11856
11866
|
pendingCount: Object.keys(h).length,
|
|
@@ -11861,7 +11871,7 @@ class B6 extends M1 {
|
|
|
11861
11871
|
toLoad: Object.keys(C),
|
|
11862
11872
|
pending: Object.keys(h),
|
|
11863
11873
|
toLoadLanguages: Object.keys(d),
|
|
11864
|
-
toLoadNamespaces: Object.keys(
|
|
11874
|
+
toLoadNamespaces: Object.keys(o)
|
|
11865
11875
|
};
|
|
11866
11876
|
}
|
|
11867
11877
|
loaded(e, t, i) {
|
|
@@ -11870,15 +11880,15 @@ class B6 extends M1 {
|
|
|
11870
11880
|
skipCopy: !0
|
|
11871
11881
|
}), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
|
|
11872
11882
|
const d = {};
|
|
11873
|
-
this.queue.forEach((
|
|
11874
|
-
L6(
|
|
11875
|
-
d[
|
|
11876
|
-
const r =
|
|
11877
|
-
r.length && r.forEach((
|
|
11878
|
-
d[
|
|
11883
|
+
this.queue.forEach((o) => {
|
|
11884
|
+
L6(o.loaded, [C], h), G6(o, e), t && o.errors.push(t), o.pendingCount === 0 && !o.done && (Object.keys(o.loaded).forEach((a) => {
|
|
11885
|
+
d[a] || (d[a] = {});
|
|
11886
|
+
const r = o.loaded[a];
|
|
11887
|
+
r.length && r.forEach((f) => {
|
|
11888
|
+
d[a][f] === void 0 && (d[a][f] = !0);
|
|
11879
11889
|
});
|
|
11880
|
-
}),
|
|
11881
|
-
}), this.emit("loaded", d), this.queue = this.queue.filter((
|
|
11890
|
+
}), o.done = !0, o.errors.length ? o.callback(o.errors) : o.callback());
|
|
11891
|
+
}), this.emit("loaded", d), this.queue = this.queue.filter((o) => !o.done);
|
|
11882
11892
|
}
|
|
11883
11893
|
read(e, t, i) {
|
|
11884
11894
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, h = arguments.length > 5 ? arguments[5] : void 0;
|
|
@@ -11895,29 +11905,29 @@ class B6 extends M1 {
|
|
|
11895
11905
|
return;
|
|
11896
11906
|
}
|
|
11897
11907
|
this.readingCalls++;
|
|
11898
|
-
const d = (
|
|
11908
|
+
const d = (a, r) => {
|
|
11899
11909
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
11900
|
-
const
|
|
11901
|
-
this.read(
|
|
11910
|
+
const f = this.waitingReads.shift();
|
|
11911
|
+
this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
|
|
11902
11912
|
}
|
|
11903
|
-
if (
|
|
11913
|
+
if (a && r && s < this.maxRetries) {
|
|
11904
11914
|
setTimeout(() => {
|
|
11905
11915
|
this.read.call(this, e, t, i, s + 1, C * 2, h);
|
|
11906
11916
|
}, C);
|
|
11907
11917
|
return;
|
|
11908
11918
|
}
|
|
11909
|
-
h(
|
|
11910
|
-
},
|
|
11911
|
-
if (
|
|
11919
|
+
h(a, r);
|
|
11920
|
+
}, o = this.backend[i].bind(this.backend);
|
|
11921
|
+
if (o.length === 2) {
|
|
11912
11922
|
try {
|
|
11913
|
-
const
|
|
11914
|
-
|
|
11915
|
-
} catch (
|
|
11916
|
-
d(
|
|
11923
|
+
const a = o(e, t);
|
|
11924
|
+
a && typeof a.then == "function" ? a.then((r) => d(null, r)).catch(d) : d(null, a);
|
|
11925
|
+
} catch (a) {
|
|
11926
|
+
d(a);
|
|
11917
11927
|
}
|
|
11918
11928
|
return;
|
|
11919
11929
|
}
|
|
11920
|
-
return
|
|
11930
|
+
return o(e, t, d);
|
|
11921
11931
|
}
|
|
11922
11932
|
prepareLoading(e, t) {
|
|
11923
11933
|
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s = arguments.length > 3 ? arguments[3] : void 0;
|
|
@@ -11955,19 +11965,19 @@ class B6 extends M1 {
|
|
|
11955
11965
|
}
|
|
11956
11966
|
if (!(i == null || i === "")) {
|
|
11957
11967
|
if (this.backend && this.backend.create) {
|
|
11958
|
-
const
|
|
11968
|
+
const o = {
|
|
11959
11969
|
...h,
|
|
11960
11970
|
isUpdate: C
|
|
11961
|
-
},
|
|
11962
|
-
if (
|
|
11971
|
+
}, a = this.backend.create.bind(this.backend);
|
|
11972
|
+
if (a.length < 6)
|
|
11963
11973
|
try {
|
|
11964
11974
|
let r;
|
|
11965
|
-
|
|
11975
|
+
a.length === 5 ? r = a(e, t, i, s, o) : r = a(e, t, i, s), r && typeof r.then == "function" ? r.then((f) => d(null, f)).catch(d) : d(null, r);
|
|
11966
11976
|
} catch (r) {
|
|
11967
11977
|
d(r);
|
|
11968
11978
|
}
|
|
11969
11979
|
else
|
|
11970
|
-
|
|
11980
|
+
a(e, t, i, s, d, o);
|
|
11971
11981
|
}
|
|
11972
11982
|
!e || !e[0] || this.store.addResource(e[0], t, i, s);
|
|
11973
11983
|
}
|
|
@@ -12066,25 +12076,25 @@ class c1 extends M1 {
|
|
|
12066
12076
|
this.modules.logger ? I.init(C(this.modules.logger), this.options) : I.init(null, this.options);
|
|
12067
12077
|
let r;
|
|
12068
12078
|
this.modules.formatter ? r = this.modules.formatter : typeof Intl < "u" && (r = K6);
|
|
12069
|
-
const
|
|
12079
|
+
const f = new U1(this.options);
|
|
12070
12080
|
this.store = new j1(this.options.resources, this.options);
|
|
12071
12081
|
const w = this.services;
|
|
12072
|
-
w.logger = I, w.resourceStore = this.store, w.languageUtils =
|
|
12082
|
+
w.logger = I, w.resourceStore = this.store, w.languageUtils = f, w.pluralResolver = new A6(f, {
|
|
12073
12083
|
prepend: this.options.pluralSeparator,
|
|
12074
12084
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
12075
12085
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
12076
12086
|
}), r && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (w.formatter = C(r), w.formatter.init(w, this.options), this.options.interpolation.format = w.formatter.format.bind(w.formatter)), w.interpolator = new E6(this.options), w.utils = {
|
|
12077
12087
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
12078
|
-
}, w.backendConnector = new B6(C(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", function(
|
|
12088
|
+
}, w.backendConnector = new B6(C(this.modules.backend), w.resourceStore, w, this.options), w.backendConnector.on("*", function(p) {
|
|
12079
12089
|
for (var v = arguments.length, M = new Array(v > 1 ? v - 1 : 0), x = 1; x < v; x++)
|
|
12080
12090
|
M[x - 1] = arguments[x];
|
|
12081
|
-
e.emit(
|
|
12082
|
-
}), this.modules.languageDetector && (w.languageDetector = C(this.modules.languageDetector), w.languageDetector.init && w.languageDetector.init(w, this.options.detection, this.options)), this.modules.i18nFormat && (w.i18nFormat = C(this.modules.i18nFormat), w.i18nFormat.init && w.i18nFormat.init(this)), this.translator = new N1(this.services, this.options), this.translator.on("*", function(
|
|
12091
|
+
e.emit(p, ...M);
|
|
12092
|
+
}), this.modules.languageDetector && (w.languageDetector = C(this.modules.languageDetector), w.languageDetector.init && w.languageDetector.init(w, this.options.detection, this.options)), this.modules.i18nFormat && (w.i18nFormat = C(this.modules.i18nFormat), w.i18nFormat.init && w.i18nFormat.init(this)), this.translator = new N1(this.services, this.options), this.translator.on("*", function(p) {
|
|
12083
12093
|
for (var v = arguments.length, M = new Array(v > 1 ? v - 1 : 0), x = 1; x < v; x++)
|
|
12084
12094
|
M[x - 1] = arguments[x];
|
|
12085
|
-
e.emit(
|
|
12086
|
-
}), this.modules.external.forEach((
|
|
12087
|
-
|
|
12095
|
+
e.emit(p, ...M);
|
|
12096
|
+
}), this.modules.external.forEach((p) => {
|
|
12097
|
+
p.init && p.init(this);
|
|
12088
12098
|
});
|
|
12089
12099
|
}
|
|
12090
12100
|
if (this.format = this.options.interpolation.format, i || (i = L1), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -12100,14 +12110,14 @@ class c1 extends M1 {
|
|
|
12100
12110
|
return e.store[r](...arguments), e;
|
|
12101
12111
|
};
|
|
12102
12112
|
});
|
|
12103
|
-
const
|
|
12104
|
-
const r = (
|
|
12105
|
-
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),
|
|
12113
|
+
const o = r1(), a = () => {
|
|
12114
|
+
const r = (f, w) => {
|
|
12115
|
+
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), o.resolve(w), i(f, w);
|
|
12106
12116
|
};
|
|
12107
12117
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return r(null, this.t.bind(this));
|
|
12108
12118
|
this.changeLanguage(this.options.lng, r);
|
|
12109
12119
|
};
|
|
12110
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
12120
|
+
return this.options.resources || !this.options.initImmediate ? a() : setTimeout(a, 0), o;
|
|
12111
12121
|
}
|
|
12112
12122
|
loadResources(e) {
|
|
12113
12123
|
let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L1;
|
|
@@ -12116,11 +12126,11 @@ class c1 extends M1 {
|
|
|
12116
12126
|
if (s && s.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return i();
|
|
12117
12127
|
const C = [], h = (d) => {
|
|
12118
12128
|
if (!d || d === "cimode") return;
|
|
12119
|
-
this.services.languageUtils.toResolveHierarchy(d).forEach((
|
|
12120
|
-
|
|
12129
|
+
this.services.languageUtils.toResolveHierarchy(d).forEach((a) => {
|
|
12130
|
+
a !== "cimode" && C.indexOf(a) < 0 && C.push(a);
|
|
12121
12131
|
});
|
|
12122
12132
|
};
|
|
12123
|
-
s ? h(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
12133
|
+
s ? h(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((o) => h(o)), this.options.preload && this.options.preload.forEach((d) => h(d)), this.services.backendConnector.load(C, this.options.ns, (d) => {
|
|
12124
12134
|
!d && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), i(d);
|
|
12125
12135
|
});
|
|
12126
12136
|
} else
|
|
@@ -12152,19 +12162,19 @@ class c1 extends M1 {
|
|
|
12152
12162
|
this.isLanguageChangingTo = e;
|
|
12153
12163
|
const s = r1();
|
|
12154
12164
|
this.emit("languageChanging", e);
|
|
12155
|
-
const C = (
|
|
12156
|
-
this.language =
|
|
12157
|
-
}, h = (
|
|
12158
|
-
|
|
12165
|
+
const C = (o) => {
|
|
12166
|
+
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
12167
|
+
}, h = (o, a) => {
|
|
12168
|
+
a ? (C(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() {
|
|
12159
12169
|
return i.t(...arguments);
|
|
12160
|
-
}), t && t(
|
|
12170
|
+
}), t && t(o, function() {
|
|
12161
12171
|
return i.t(...arguments);
|
|
12162
12172
|
});
|
|
12163
|
-
}, d = (
|
|
12164
|
-
!e && !
|
|
12165
|
-
const
|
|
12166
|
-
|
|
12167
|
-
h(r,
|
|
12173
|
+
}, d = (o) => {
|
|
12174
|
+
!e && !o && this.services.languageDetector && (o = []);
|
|
12175
|
+
const a = N(o) ? o : this.services.languageUtils.getBestMatchFromCodes(o);
|
|
12176
|
+
a && (this.language || C(a), this.translator.language || this.translator.changeLanguage(a), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(a)), this.loadResources(a, (r) => {
|
|
12177
|
+
h(r, a);
|
|
12168
12178
|
});
|
|
12169
12179
|
};
|
|
12170
12180
|
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;
|
|
@@ -12172,19 +12182,19 @@ class c1 extends M1 {
|
|
|
12172
12182
|
getFixedT(e, t, i) {
|
|
12173
12183
|
var s = this;
|
|
12174
12184
|
const C = function(h, d) {
|
|
12175
|
-
let
|
|
12185
|
+
let o;
|
|
12176
12186
|
if (typeof d != "object") {
|
|
12177
|
-
for (var
|
|
12178
|
-
r[
|
|
12179
|
-
|
|
12187
|
+
for (var a = arguments.length, r = new Array(a > 2 ? a - 2 : 0), f = 2; f < a; f++)
|
|
12188
|
+
r[f - 2] = arguments[f];
|
|
12189
|
+
o = s.options.overloadTranslationOptionHandler([h, d].concat(r));
|
|
12180
12190
|
} else
|
|
12181
|
-
|
|
12191
|
+
o = {
|
|
12182
12192
|
...d
|
|
12183
12193
|
};
|
|
12184
|
-
|
|
12194
|
+
o.lng = o.lng || C.lng, o.lngs = o.lngs || C.lngs, o.ns = o.ns || C.ns, o.keyPrefix !== "" && (o.keyPrefix = o.keyPrefix || i || C.keyPrefix);
|
|
12185
12195
|
const w = s.options.keySeparator || ".";
|
|
12186
|
-
let
|
|
12187
|
-
return
|
|
12196
|
+
let p;
|
|
12197
|
+
return o.keyPrefix && Array.isArray(h) ? p = h.map((v) => `${o.keyPrefix}${w}${v}`) : p = o.keyPrefix ? `${o.keyPrefix}${w}${h}` : h, s.t(p, o);
|
|
12188
12198
|
};
|
|
12189
12199
|
return N(e) ? C.lng = e : C.lngs = e, C.ns = t, C.keyPrefix = i, C;
|
|
12190
12200
|
}
|
|
@@ -12205,9 +12215,9 @@ class c1 extends M1 {
|
|
|
12205
12215
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
12206
12216
|
const i = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, C = this.languages[this.languages.length - 1];
|
|
12207
12217
|
if (i.toLowerCase() === "cimode") return !0;
|
|
12208
|
-
const h = (d,
|
|
12209
|
-
const
|
|
12210
|
-
return
|
|
12218
|
+
const h = (d, o) => {
|
|
12219
|
+
const a = this.services.backendConnector.state[`${d}|${o}`];
|
|
12220
|
+
return a === -1 || a === 0 || a === 2;
|
|
12211
12221
|
};
|
|
12212
12222
|
if (t.precheck) {
|
|
12213
12223
|
const d = t.precheck(this, h);
|
|
@@ -12256,9 +12266,9 @@ class c1 extends M1 {
|
|
|
12256
12266
|
}, C.services.utils = {
|
|
12257
12267
|
hasLoadedNamespace: C.hasLoadedNamespace.bind(C)
|
|
12258
12268
|
}, i && (C.store = new j1(this.store.data, s), C.services.resourceStore = C.store), C.translator = new N1(C.services, s), C.translator.on("*", function(d) {
|
|
12259
|
-
for (var
|
|
12260
|
-
|
|
12261
|
-
C.emit(d, ...
|
|
12269
|
+
for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++)
|
|
12270
|
+
a[r - 1] = arguments[r];
|
|
12271
|
+
C.emit(d, ...a);
|
|
12262
12272
|
}), C.init(s, t), C.translator.options = s, C.translator.backendConnector.services.utils = {
|
|
12263
12273
|
hasLoadedNamespace: C.hasLoadedNamespace.bind(C)
|
|
12264
12274
|
}, C;
|
|
@@ -12323,9 +12333,9 @@ const C2 = (l, e) => () => {
|
|
|
12323
12333
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12324
12334
|
const i = e.languages[0], s = e.options ? e.options.fallbackLng : !1, C = e.languages[e.languages.length - 1];
|
|
12325
12335
|
if (i.toLowerCase() === "cimode") return !0;
|
|
12326
|
-
const h = (d,
|
|
12327
|
-
const
|
|
12328
|
-
return
|
|
12336
|
+
const h = (d, o) => {
|
|
12337
|
+
const a = e.services.backendConnector.state[`${d}|${o}`];
|
|
12338
|
+
return a === -1 || a === 2;
|
|
12329
12339
|
};
|
|
12330
12340
|
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !h(e.isLanguageChangingTo, l) ? !1 : !!(e.hasResourceBundle(i, l) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || h(i, l) && (!s || h(C, l)));
|
|
12331
12341
|
}, I6 = function(l, e) {
|
|
@@ -12420,12 +12430,12 @@ const e8 = (l, e) => {
|
|
|
12420
12430
|
...e
|
|
12421
12431
|
}, {
|
|
12422
12432
|
useSuspense: d,
|
|
12423
|
-
keyPrefix:
|
|
12433
|
+
keyPrefix: o
|
|
12424
12434
|
} = h;
|
|
12425
|
-
let
|
|
12426
|
-
|
|
12427
|
-
const r = (C.isInitialized || C.initializedStoreOnce) &&
|
|
12428
|
-
let x =
|
|
12435
|
+
let a = l;
|
|
12436
|
+
a = J(a) ? [a] : a || ["translation"], C.reportNamespaces.addUsedNamespaces && C.reportNamespaces.addUsedNamespaces(a);
|
|
12437
|
+
const r = (C.isInitialized || C.initializedStoreOnce) && a.every((u) => I6(u, C, h)), f = t8(C, e.lng || null, h.nsMode === "fallback" ? a : a[0], o), w = () => f, p = () => c2(C, e.lng || null, h.nsMode === "fallback" ? a : a[0], o), [v, M] = E(w);
|
|
12438
|
+
let x = a.join();
|
|
12429
12439
|
e.lng && (x = `${e.lng}${x}`);
|
|
12430
12440
|
const H = e8(x), Z = P(!0);
|
|
12431
12441
|
S(() => {
|
|
@@ -12433,24 +12443,24 @@ const e8 = (l, e) => {
|
|
|
12433
12443
|
bindI18n: u,
|
|
12434
12444
|
bindI18nStore: V
|
|
12435
12445
|
} = h;
|
|
12436
|
-
Z.current = !0, !r && !d && (e.lng ? e2(C, e.lng,
|
|
12437
|
-
Z.current && M(
|
|
12438
|
-
}) : X1(C,
|
|
12439
|
-
Z.current && M(
|
|
12440
|
-
})), r && H && H !== x && Z.current && M(
|
|
12446
|
+
Z.current = !0, !r && !d && (e.lng ? e2(C, e.lng, a, () => {
|
|
12447
|
+
Z.current && M(p);
|
|
12448
|
+
}) : X1(C, a, () => {
|
|
12449
|
+
Z.current && M(p);
|
|
12450
|
+
})), r && H && H !== x && Z.current && M(p);
|
|
12441
12451
|
const m = () => {
|
|
12442
|
-
Z.current && M(
|
|
12452
|
+
Z.current && M(p);
|
|
12443
12453
|
};
|
|
12444
12454
|
return u && C && C.on(u, m), V && C && C.store.on(V, m), () => {
|
|
12445
12455
|
Z.current = !1, u && C && u.split(" ").forEach((k) => C.off(k, m)), V && C && V.split(" ").forEach((k) => C.store.off(k, m));
|
|
12446
12456
|
};
|
|
12447
12457
|
}, [C, x]), S(() => {
|
|
12448
12458
|
Z.current && r && M(w);
|
|
12449
|
-
}, [C,
|
|
12459
|
+
}, [C, o, r]);
|
|
12450
12460
|
const b = [v, C, r];
|
|
12451
12461
|
if (b.t = v, b.i18n = C, b.ready = r, r || !r && !d) return b;
|
|
12452
12462
|
throw new Promise((u) => {
|
|
12453
|
-
e.lng ? e2(C, e.lng,
|
|
12463
|
+
e.lng ? e2(C, e.lng, a, () => u()) : X1(C, a, () => u());
|
|
12454
12464
|
});
|
|
12455
12465
|
}, l8 = "Country", s8 = {
|
|
12456
12466
|
placeholder: l8
|
|
@@ -12479,10 +12489,10 @@ const g8 = q(
|
|
|
12479
12489
|
id: C,
|
|
12480
12490
|
disabled: h,
|
|
12481
12491
|
required: d,
|
|
12482
|
-
clearable:
|
|
12483
|
-
error:
|
|
12492
|
+
clearable: o,
|
|
12493
|
+
error: a
|
|
12484
12494
|
}, r) => {
|
|
12485
|
-
const [
|
|
12495
|
+
const [f, w] = E([]), [p, v] = E([]), [M, x] = E(!1), { locale: H, axiosPeople: Z } = T(Q);
|
|
12486
12496
|
if (!Z)
|
|
12487
12497
|
throw new Error(
|
|
12488
12498
|
`CountrySelect requires "axiosPeople" to fetch counties.
|
|
@@ -12503,7 +12513,7 @@ const g8 = q(
|
|
|
12503
12513
|
u();
|
|
12504
12514
|
}, []), S(() => {
|
|
12505
12515
|
if (e) {
|
|
12506
|
-
const m = e.split("-")[1], k =
|
|
12516
|
+
const m = e.split("-")[1], k = p.filter(
|
|
12507
12517
|
(G) => G.name.includes(m)
|
|
12508
12518
|
);
|
|
12509
12519
|
if (k.length) {
|
|
@@ -12514,13 +12524,13 @@ const g8 = q(
|
|
|
12514
12524
|
i(G[0].value);
|
|
12515
12525
|
}
|
|
12516
12526
|
}
|
|
12517
|
-
}, [e,
|
|
12518
|
-
const m =
|
|
12527
|
+
}, [e, p, i]), S(() => {
|
|
12528
|
+
const m = p.map((k) => ({
|
|
12519
12529
|
label: k.name,
|
|
12520
12530
|
value: k.name
|
|
12521
12531
|
}));
|
|
12522
12532
|
w(m);
|
|
12523
|
-
}, [
|
|
12533
|
+
}, [p]);
|
|
12524
12534
|
const V = (m) => {
|
|
12525
12535
|
m === null ? (i(""), t && t("")) : (i(m), t && t(""));
|
|
12526
12536
|
};
|
|
@@ -12533,12 +12543,12 @@ const g8 = q(
|
|
|
12533
12543
|
value: s,
|
|
12534
12544
|
ref: r,
|
|
12535
12545
|
onChange: V,
|
|
12536
|
-
options:
|
|
12546
|
+
options: f,
|
|
12537
12547
|
disabled: h,
|
|
12538
12548
|
isLoading: M,
|
|
12539
12549
|
required: d,
|
|
12540
|
-
clearable:
|
|
12541
|
-
error:
|
|
12550
|
+
clearable: o,
|
|
12551
|
+
error: a
|
|
12542
12552
|
}
|
|
12543
12553
|
) });
|
|
12544
12554
|
}
|