@snmt-react-ui/city-select 2.8.21 → 2.8.23

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.
@@ -2,23 +2,23 @@ var L2 = Object.defineProperty;
2
2
  var k2 = (i, e, t) => e in i ? L2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var K1 = (i, e, t) => k2(i, typeof e != "symbol" ? e + "" : e, t);
4
4
  import "./index.css";
5
- import { jsx as r, Fragment as i1, jsxs as C } from "react/jsx-runtime";
5
+ import { jsx as r, Fragment as n1, jsxs as C } from "react/jsx-runtime";
6
6
  import { SNMTUiContext as v2 } from "@snmt-react-ui/core";
7
- import { forwardRef as r1, useState as O, useRef as B, useCallback as K, useEffect as S, useMemo as N2, useImperativeHandle as C1, useContext as o1, createContext as a1 } from "react";
8
- import { Select as R2, Tag as x2, Flex as _2, Checkbox as M2, Avatar as y2, Typography as E1, Popover as b2 } from "antd";
7
+ import { forwardRef as o1, useState as O, useRef as B, useCallback as K, useEffect as S, useMemo as N2, useImperativeHandle as C1, useContext as a1, createContext as l1 } from "react";
8
+ import { Select as R2, Tag as x2, Flex as _2, Checkbox as M2, Avatar as b2, Typography as E1, Popover as y2 } from "antd";
9
9
  var E2 = Object.defineProperty, H2 = (i, e, t) => e in i ? E2(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, I2 = (i, e, t) => H2(i, e + "", t), A2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
10
  function V2() {
11
11
  if (console && console.warn) {
12
12
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
13
13
  e[t] = arguments[t];
14
- n1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
14
+ s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
15
15
  }
16
16
  }
17
17
  const B1 = {};
18
18
  function O1() {
19
19
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
20
20
  e[t] = arguments[t];
21
- n1(e[0]) && B1[e[0]] || (n1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), V2(...e));
21
+ s1(e[0]) && B1[e[0]] || (s1(e[0]) && (B1[e[0]] = /* @__PURE__ */ new Date()), V2(...e));
22
22
  }
23
23
  const l2 = (i, e) => () => {
24
24
  if (i.isInitialized)
@@ -34,7 +34,7 @@ const l2 = (i, e) => () => {
34
34
  }, Y1 = (i, e, t) => {
35
35
  i.loadNamespaces(e, l2(i, t));
36
36
  }, P1 = (i, e, t, n) => {
37
- n1(t) && (t = [t]), t.forEach((s) => {
37
+ s1(t) && (t = [t]), t.forEach((s) => {
38
38
  i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
39
39
  }), i.loadLanguages(e, l2(i, n));
40
40
  }, O2 = function(i, e) {
@@ -54,7 +54,7 @@ const l2 = (i, e) => () => {
54
54
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && n.services.backendConnector.backend && n.isLanguageChangingTo && !s(n.isLanguageChangingTo, i)) return !1;
55
55
  }
56
56
  }) : O2(i, e, t);
57
- }, n1 = (i) => typeof i == "string", S2 = (i) => typeof i == "object" && i !== null, Z2 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, T2 = {
57
+ }, s1 = (i) => typeof i == "string", S2 = (i) => typeof i == "object" && i !== null, Z2 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, T2 = {
58
58
  "&amp;": "&",
59
59
  "&#38;": "&",
60
60
  "&lt;": "<",
@@ -88,7 +88,7 @@ let B2 = {
88
88
  };
89
89
  const Y2 = () => B2;
90
90
  let P2;
91
- const j2 = () => P2, $2 = a1();
91
+ const j2 = () => P2, $2 = l1();
92
92
  class F2 {
93
93
  constructor() {
94
94
  I2(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces)), this.usedNamespaces = {};
@@ -111,10 +111,10 @@ const W2 = (i, e) => {
111
111
  } = e, {
112
112
  i18n: n,
113
113
  defaultNS: s
114
- } = o1($2) || {}, o = t || n || j2();
114
+ } = a1($2) || {}, o = t || n || j2();
115
115
  if (o && !o.reportNamespaces && (o.reportNamespaces = new F2()), !o) {
116
116
  O1("You will need to pass in an i18next instance by using initReactI18next");
117
- const p = (_, R) => n1(R) ? R : S2(R) && n1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, N = [p, {}, !1];
117
+ const p = (_, R) => s1(R) ? R : S2(R) && s1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, N = [p, {}, !1];
118
118
  return N.t = p, N.i18n = {}, N.ready = !1, N;
119
119
  }
120
120
  o.options.react && o.options.react.wait !== void 0 && O1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
@@ -127,29 +127,29 @@ const W2 = (i, e) => {
127
127
  keyPrefix: l
128
128
  } = h;
129
129
  let a = i;
130
- a = n1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
130
+ a = s1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
131
131
  const c = (o.isInitialized || o.initializedStoreOnce) && a.every((p) => G2(p, o, h)), u = U2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), g = () => u, f = () => c2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), [w, L] = O(g);
132
132
  let m = a.join();
133
133
  e.lng && (m = `${e.lng}${m}`);
134
- const y = W2(m), b = B(!0);
134
+ const b = W2(m), y = B(!0);
135
135
  S(() => {
136
136
  const {
137
137
  bindI18n: p,
138
138
  bindI18nStore: N
139
139
  } = h;
140
- b.current = !0, !c && !d && (e.lng ? P1(o, e.lng, a, () => {
141
- b.current && L(f);
140
+ y.current = !0, !c && !d && (e.lng ? P1(o, e.lng, a, () => {
141
+ y.current && L(f);
142
142
  }) : Y1(o, a, () => {
143
- b.current && L(f);
144
- })), c && y && y !== m && b.current && L(f);
143
+ y.current && L(f);
144
+ })), c && b && b !== m && y.current && L(f);
145
145
  const _ = () => {
146
- b.current && L(f);
146
+ y.current && L(f);
147
147
  };
148
148
  return p && o && o.on(p, _), N && o && o.store.on(N, _), () => {
149
- b.current = !1, p && o && p.split(" ").forEach((R) => o.off(R, _)), N && o && N.split(" ").forEach((R) => o.store.off(R, _));
149
+ y.current = !1, p && o && p.split(" ").forEach((R) => o.off(R, _)), N && o && N.split(" ").forEach((R) => o.store.off(R, _));
150
150
  };
151
151
  }, [o, m]), S(() => {
152
- b.current && c && L(g);
152
+ y.current && c && L(g);
153
153
  }, [o, l, c]);
154
154
  const H = [w, o, c];
155
155
  if (H.t = w, H.i18n = o, H.ready = c, c || !c && !d) return H;
@@ -183,7 +183,7 @@ const W2 = (i, e) => {
183
183
  h2: 2,
184
184
  h3: 3,
185
185
  h4: 4
186
- }, j1 = r1(
186
+ }, j1 = o1(
187
187
  ({
188
188
  align: i = "inherit",
189
189
  variant: e = "body1",
@@ -205,9 +205,9 @@ const W2 = (i, e) => {
205
205
  a.current && u(a.current.scrollWidth > a.current.clientWidth);
206
206
  };
207
207
  m();
208
- const y = new ResizeObserver(m);
209
- return a.current && y.observe(a.current), (L = a.current) != null && L.parentElement && y.observe(a.current.parentElement), () => {
210
- y.disconnect();
208
+ const b = new ResizeObserver(m);
209
+ return a.current && b.observe(a.current), (L = a.current) != null && L.parentElement && b.observe(a.current.parentElement), () => {
210
+ b.disconnect();
211
211
  };
212
212
  }, [d]);
213
213
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
@@ -229,13 +229,13 @@ const W2 = (i, e) => {
229
229
  }
230
230
  );
231
231
  var G1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(G1 || {});
232
- const X2 = a1({
232
+ const X2 = l1({
233
233
  locale: "en",
234
234
  theme: "light"
235
235
  });
236
236
  X2.Provider;
237
- const e5 = ({ children: i, label: e, variant: t = "small", src: n }) => {
238
- const s = typeof n == "string", o = {
237
+ const e5 = ({ label: i, variant: e = "small", src: t, fallbackText: n }) => {
238
+ const s = t != null && t.trim() ? t : void 0, o = {
239
239
  large: 80,
240
240
  medium: 48,
241
241
  small: 32,
@@ -255,24 +255,23 @@ const e5 = ({ children: i, label: e, variant: t = "small", src: n }) => {
255
255
  "div",
256
256
  {
257
257
  className: "snmt-avatar-with-label-wrapper",
258
- style: { gap: e ? t === "large" || t === "medium" ? 12 : 8 : 0 },
258
+ style: { gap: i ? e === "large" || e === "medium" ? 12 : 8 : 0 },
259
259
  children: [
260
260
  /* @__PURE__ */ r(
261
- y2,
261
+ b2,
262
262
  {
263
263
  className: `snmt-avatar ${s ? "image" : ""}`,
264
- shape: "circle",
265
- src: n,
266
- size: o[t],
267
- children: /* @__PURE__ */ r(j1, { color: G1.GREY_LIGHT_0, variant: h[t], children: i })
264
+ src: s,
265
+ size: o[e],
266
+ children: /* @__PURE__ */ r(j1, { color: G1.GREY_LIGHT_0, variant: h[e], children: !s && n })
268
267
  }
269
268
  ),
270
- e && /* @__PURE__ */ r(
269
+ i && /* @__PURE__ */ r(
271
270
  j1,
272
271
  {
273
272
  color: G1.GREY_DARK_5,
274
- variant: t ? d[t] : "body2",
275
- children: e
273
+ variant: e ? d[e] : "body2",
274
+ children: i
276
275
  }
277
276
  )
278
277
  ]
@@ -280,7 +279,7 @@ const e5 = ({ children: i, label: e, variant: t = "small", src: n }) => {
280
279
  );
281
280
  };
282
281
  var U = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(U || {});
283
- const D1 = a1({
282
+ const D1 = l1({
284
283
  locale: "en",
285
284
  theme: "light"
286
285
  });
@@ -290,7 +289,7 @@ const { Title: t5, Text: i5 } = E1, n5 = {
290
289
  h2: 2,
291
290
  h3: 3,
292
291
  h4: 4
293
- }, s5 = r1(
292
+ }, s5 = o1(
294
293
  ({
295
294
  align: i = "inherit",
296
295
  variant: e = "body1",
@@ -312,9 +311,9 @@ const { Title: t5, Text: i5 } = E1, n5 = {
312
311
  a.current && u(a.current.scrollWidth > a.current.clientWidth);
313
312
  };
314
313
  m();
315
- const y = new ResizeObserver(m);
316
- return a.current && y.observe(a.current), (L = a.current) != null && L.parentElement && y.observe(a.current.parentElement), () => {
317
- y.disconnect();
314
+ const b = new ResizeObserver(m);
315
+ return a.current && b.observe(a.current), (L = a.current) != null && L.parentElement && b.observe(a.current.parentElement), () => {
316
+ b.disconnect();
318
317
  };
319
318
  }, [d]);
320
319
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
@@ -346,7 +345,7 @@ const { Title: t5, Text: i5 } = E1, n5 = {
346
345
  S(() => {
347
346
  d(i), a(e);
348
347
  }, [i, e]);
349
- const { theme: c } = o1(D1);
348
+ const { theme: c } = a1(D1);
350
349
  return /* @__PURE__ */ r(
351
350
  M2,
352
351
  {
@@ -369,7 +368,7 @@ const { Title: t5, Text: i5 } = E1, n5 = {
369
368
  );
370
369
  };
371
370
  var k = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(k || {});
372
- const h2 = a1({
371
+ const h2 = l1({
373
372
  locale: "en",
374
373
  theme: "light"
375
374
  });
@@ -1132,7 +1131,7 @@ const o5 = ({
1132
1131
  )
1133
1132
  ]
1134
1133
  }
1135
- ), y5 = ({
1134
+ ), b5 = ({
1136
1135
  width: i = 20,
1137
1136
  height: e = 20,
1138
1137
  color: t = k.GREY_DARK_5,
@@ -1165,7 +1164,7 @@ const o5 = ({
1165
1164
  )
1166
1165
  ]
1167
1166
  }
1168
- ), b5 = ({
1167
+ ), y5 = ({
1169
1168
  width: i = 20,
1170
1169
  height: e = 20,
1171
1170
  color: t = k.GREY_DARK_5,
@@ -2631,8 +2630,8 @@ const o5 = ({
2631
2630
  disabled: o = !1,
2632
2631
  onClick: h
2633
2632
  }) => {
2634
- const { theme: d } = o1(h2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : n, a = o ? void 0 : h, c = h && !o ? `${s || ""} clickable` : s;
2635
- return /* @__PURE__ */ r(i1, { children: (() => {
2633
+ const { theme: d } = a1(h2), l = o ? d && d === "dark" ? k.GREY_LIGHT_4 : k.GREY_DARK_1 : n, a = o ? void 0 : h, c = h && !o ? `${s || ""} clickable` : s;
2634
+ return /* @__PURE__ */ r(n1, { children: (() => {
2636
2635
  switch (i) {
2637
2636
  case "nextIcon":
2638
2637
  return K5({ width: e, height: t, color: l, className: c, onClick: a });
@@ -2685,9 +2684,9 @@ const o5 = ({
2685
2684
  case "logOut":
2686
2685
  return M5({ width: e, height: t, color: l, className: c, onClick: a });
2687
2686
  case "settings":
2688
- return y5({ width: e, height: t, color: l, className: c, onClick: a });
2689
- case "trash":
2690
2687
  return b5({ width: e, height: t, color: l, className: c, onClick: a });
2688
+ case "trash":
2689
+ return y5({ width: e, height: t, color: l, className: c, onClick: a });
2691
2690
  case "settings2":
2692
2691
  return E5({ width: e, height: t, color: l, className: c, onClick: a });
2693
2692
  case "checkCircle":
@@ -2805,7 +2804,7 @@ const o5 = ({
2805
2804
  case "docs":
2806
2805
  return fe({ width: e, height: t, color: l, className: c, onClick: a });
2807
2806
  default:
2808
- return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
2807
+ return /* @__PURE__ */ r(n1, { children: "No Icon provided" });
2809
2808
  }
2810
2809
  })() });
2811
2810
  }, { Title: pe, Text: me } = E1, we = {
@@ -2813,7 +2812,7 @@ const o5 = ({
2813
2812
  h2: 2,
2814
2813
  h3: 3,
2815
2814
  h4: 4
2816
- }, Le = r1(
2815
+ }, Le = o1(
2817
2816
  ({
2818
2817
  align: i = "inherit",
2819
2818
  variant: e = "body1",
@@ -2835,9 +2834,9 @@ const o5 = ({
2835
2834
  a.current && u(a.current.scrollWidth > a.current.clientWidth);
2836
2835
  };
2837
2836
  m();
2838
- const y = new ResizeObserver(m);
2839
- return a.current && y.observe(a.current), (L = a.current) != null && L.parentElement && y.observe(a.current.parentElement), () => {
2840
- y.disconnect();
2837
+ const b = new ResizeObserver(m);
2838
+ return a.current && b.observe(a.current), (L = a.current) != null && L.parentElement && b.observe(a.current.parentElement), () => {
2839
+ b.disconnect();
2841
2840
  };
2842
2841
  }, [d]);
2843
2842
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
@@ -2859,7 +2858,7 @@ const o5 = ({
2859
2858
  }
2860
2859
  );
2861
2860
  var v = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(v || {});
2862
- const d2 = a1({
2861
+ const d2 = l1({
2863
2862
  locale: "en",
2864
2863
  theme: "light"
2865
2864
  });
@@ -3068,7 +3067,7 @@ const ke = ({
3068
3067
  }
3069
3068
  )
3070
3069
  }
3071
- ), ye = ({
3070
+ ), be = ({
3072
3071
  width: i = 20,
3073
3072
  height: e = 20,
3074
3073
  color: t = v.GREY_DARK_5,
@@ -3115,7 +3114,7 @@ const ke = ({
3115
3114
  )
3116
3115
  ]
3117
3116
  }
3118
- ), be = ({
3117
+ ), ye = ({
3119
3118
  width: i = 20,
3120
3119
  height: e = 20,
3121
3120
  color: t = v.GREY_DARK_5,
@@ -5018,7 +5017,7 @@ const ke = ({
5018
5017
  )
5019
5018
  ]
5020
5019
  }
5021
- ), yt = ({
5020
+ ), bt = ({
5022
5021
  width: i = 24,
5023
5022
  height: e = 24,
5024
5023
  color: t = v.GREY_DARK_2,
@@ -5058,7 +5057,7 @@ const ke = ({
5058
5057
  )
5059
5058
  ]
5060
5059
  }
5061
- ), bt = ({
5060
+ ), yt = ({
5062
5061
  width: i = 24,
5063
5062
  height: e = 24,
5064
5063
  color: t = v.GREY_DARK_2,
@@ -5121,8 +5120,8 @@ const ke = ({
5121
5120
  disabled: o = !1,
5122
5121
  onClick: h
5123
5122
  }) => {
5124
- const { theme: d } = o1(d2), l = o ? d && d === "dark" ? v.GREY_LIGHT_4 : v.GREY_DARK_1 : n, a = o ? void 0 : h, c = h && !o ? `${s || ""} clickable` : s;
5125
- return /* @__PURE__ */ r(i1, { children: (() => {
5123
+ const { theme: d } = a1(d2), l = o ? d && d === "dark" ? v.GREY_LIGHT_4 : v.GREY_DARK_1 : n, a = o ? void 0 : h, c = h && !o ? `${s || ""} clickable` : s;
5124
+ return /* @__PURE__ */ r(n1, { children: (() => {
5126
5125
  switch (i) {
5127
5126
  case "nextIcon":
5128
5127
  return et({ width: e, height: t, color: l, className: c, onClick: a });
@@ -5135,9 +5134,9 @@ const ke = ({
5135
5134
  case "arrowRight":
5136
5135
  return Ne({ width: e, height: t, color: l, className: c, onClick: a });
5137
5136
  case "calendar":
5138
- return ye({ width: e, height: t, color: l, className: c, onClick: a });
5139
- case "check":
5140
5137
  return be({ width: e, height: t, color: l, className: c, onClick: a });
5138
+ case "check":
5139
+ return ye({ width: e, height: t, color: l, className: c, onClick: a });
5141
5140
  case "cancel":
5142
5141
  return Ee({ width: e, height: t, color: l, className: c, onClick: a });
5143
5142
  case "add":
@@ -5289,18 +5288,18 @@ const ke = ({
5289
5288
  case "exit":
5290
5289
  return _t({ width: e, height: t, color: l, className: c, onClick: a });
5291
5290
  case "openPointCircle":
5292
- return yt({ width: e, height: t, color: l, className: c, onClick: a });
5293
- case "community":
5294
5291
  return bt({ width: e, height: t, color: l, className: c, onClick: a });
5292
+ case "community":
5293
+ return yt({ width: e, height: t, color: l, className: c, onClick: a });
5295
5294
  case "docs":
5296
5295
  return Et({ width: e, height: t, color: l, className: c, onClick: a });
5297
5296
  default:
5298
- return /* @__PURE__ */ r(i1, { children: "No Icon provided" });
5297
+ return /* @__PURE__ */ r(n1, { children: "No Icon provided" });
5299
5298
  }
5300
5299
  })() });
5301
5300
  };
5302
5301
  var w1 = /* @__PURE__ */ ((i) => (i.GREY_LIGHT_0 = "var(--grey-light-0)", i.GREY_LIGHT_0_5 = "var(--grey-light-0-5)", i.GREY_LIGHT_1 = "var(--grey-light-1)", i.GREY_LIGHT_2 = "var(--grey-light-2)", i.GREY_LIGHT_3 = "var(--grey-light-3)", i.GREY_LIGHT_4 = "var(--grey-light-4)", i.GREY_DARK_1 = "var(--grey-dark-1)", i.GREY_DARK_2 = "var(--grey-dark-2)", i.GREY_DARK_3 = "var(--grey-dark-3)", i.GREY_DARK_4 = "var(--grey-dark-4)", i.GREY_DARK_5 = "var(--grey-dark-5)", i.BLUE_PRIMARY = "var(--blue-primary)", i.BLUE_HOVER = "var(--blue-hover)", i.BLUE_LIGHT_0_5 = "var(--blue-light-0-5)", i.BLUE_LIGHT_1 = "var(--blue-light-1)", i.BLUE_LIGHT_2 = "var(--blue-light-2)", i.BLUE_LIGHT_3 = "var(--blue-light-3)", i.BLUE_LIGHT_4 = "var(--blue-light-4)", i.BLUE_DARK_1 = "var(--blue-dark-1)", i.PURPLE_LIGHT = "var(--purple-light)", i.PURPLE_DARK = "var(--purple-dark)", i.CYAN_LIGHT = "var(--cyan-light)", i.CYAN_DARK = "var(--cyan-dark)", i.MAGENTA_LIGHT = "var(--magenta-light)", i.MAGENTA_DARK = "var(--magenta-dark)", i.GOLD_LIGHT = "var(--gold-light)", i.GOLD_DARK = "var(--gold-dark)", i.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", i.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", i.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", i.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", i.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", i.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", i.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", i))(w1 || {});
5303
- const It = a1({
5302
+ const It = l1({
5304
5303
  locale: "en",
5305
5304
  theme: "light"
5306
5305
  });
@@ -5348,7 +5347,7 @@ const g2 = ({
5348
5347
  h2: 2,
5349
5348
  h3: 3,
5350
5349
  h4: 4
5351
- }, Gt = r1(
5350
+ }, Gt = o1(
5352
5351
  ({
5353
5352
  align: i = "inherit",
5354
5353
  variant: e = "body1",
@@ -5370,9 +5369,9 @@ const g2 = ({
5370
5369
  a.current && u(a.current.scrollWidth > a.current.clientWidth);
5371
5370
  };
5372
5371
  m();
5373
- const y = new ResizeObserver(m);
5374
- return a.current && y.observe(a.current), (L = a.current) != null && L.parentElement && y.observe(a.current.parentElement), () => {
5375
- y.disconnect();
5372
+ const b = new ResizeObserver(m);
5373
+ return a.current && b.observe(a.current), (L = a.current) != null && L.parentElement && b.observe(a.current.parentElement), () => {
5374
+ b.disconnect();
5376
5375
  };
5377
5376
  }, [d]);
5378
5377
  const g = e === "h1" || e === "h2" || e === "h3" || e === "h4";
@@ -5403,7 +5402,7 @@ const g2 = ({
5403
5402
  }) => {
5404
5403
  const [d, l] = O(!1);
5405
5404
  return /* @__PURE__ */ r(
5406
- b2,
5405
+ y2,
5407
5406
  {
5408
5407
  content: e,
5409
5408
  arrow: !1,
@@ -5438,7 +5437,7 @@ const Tt = ({
5438
5437
  options: o,
5439
5438
  extraOptions: h
5440
5439
  }) => {
5441
- const { locale: d } = o1(D1), { t: l } = z2("common", { lng: d }), [a, c] = O(!1);
5440
+ const { locale: d } = a1(D1), { t: l } = z2("common", { lng: d }), [a, c] = O(!1);
5442
5441
  if (S(() => {
5443
5442
  i.length || c(!1);
5444
5443
  }, [i]), !i.length)
@@ -5485,7 +5484,7 @@ const Tt = ({
5485
5484
  backgroundSize: "20% calc(200% + 20px)"
5486
5485
  };
5487
5486
  return /* @__PURE__ */ r("span", { className: "snmt-loader", style: s });
5488
- }, F1 = r1(
5487
+ }, F1 = o1(
5489
5488
  ({
5490
5489
  value: i,
5491
5490
  onChange: e,
@@ -5504,19 +5503,19 @@ const Tt = ({
5504
5503
  onPopupScroll: w,
5505
5504
  id: L,
5506
5505
  extraOptions: m,
5507
- dropdownRender: y,
5508
- optionRender: b,
5506
+ dropdownRender: b,
5507
+ optionRender: y,
5509
5508
  isLoading: H,
5510
5509
  readOnly: p,
5511
5510
  error: N
5512
5511
  }, _) => {
5513
- const [R, I] = O(!1), [Z, D] = O(!1), [P, Q] = O(!0), [A, j] = O(i), z = B(null);
5512
+ const [R, I] = O(!1), [Z, D] = O(!1), [P, X] = O(!0), [A, j] = O(i), z = B(null);
5514
5513
  S(() => {
5515
5514
  j(i);
5516
5515
  }, [i]);
5517
- const q = (x) => {
5516
+ const Q = (x) => {
5518
5517
  I(x), g && g(x);
5519
- }, X = (x, E) => {
5518
+ }, e1 = (x, E) => {
5520
5519
  var G;
5521
5520
  return !!((G = E == null ? void 0 : E.label) != null && G.toString().toLowerCase().includes(x.toLowerCase()));
5522
5521
  }, T = () => {
@@ -5534,7 +5533,7 @@ const Tt = ({
5534
5533
  e == null || e(E);
5535
5534
  },
5536
5535
  [n, e]
5537
- ), e1 = K(() => {
5536
+ ), t1 = K(() => {
5538
5537
  if (!(p || d)) {
5539
5538
  if (n) {
5540
5539
  $([]);
@@ -5542,7 +5541,7 @@ const Tt = ({
5542
5541
  }
5543
5542
  $("");
5544
5543
  }
5545
- }, [d, $, n, p]), t1 = K(
5544
+ }, [d, $, n, p]), i1 = K(
5546
5545
  (x) => {
5547
5546
  const E = A.filter((G) => G !== x);
5548
5547
  $(E), j(E);
@@ -5553,18 +5552,18 @@ const Tt = ({
5553
5552
  // if the search input is empty
5554
5553
  // then display the placeholder, else do not display it
5555
5554
  /* @__PURE__ */ r("span", { className: "custom-placeholder", children: P ? t : "" })
5556
- ) : /* @__PURE__ */ r(i1, {}),
5555
+ ) : /* @__PURE__ */ r(n1, {}),
5557
5556
  [P, A, t]
5558
5557
  ), v1 = (x) => {
5559
5558
  x.preventDefault(), x.stopPropagation();
5560
5559
  }, N1 = async (x) => {
5561
5560
  const { target: E } = x;
5562
5561
  E.scrollTop + E.offsetHeight >= E.scrollHeight - c && (f == null || f(!0)), w && await w(x);
5563
- }, l1 = K(
5562
+ }, c1 = K(
5564
5563
  (x) => {
5565
5564
  var E, G;
5566
- return ((E = o.find((c1) => c1.value === x)) == null ? void 0 : E.label) || ((G = m == null ? void 0 : m.find(
5567
- (c1) => c1.value === x
5565
+ return ((E = o.find((J) => J.value === x)) == null ? void 0 : E.label) || ((G = m == null ? void 0 : m.find(
5566
+ (J) => J.value === x
5568
5567
  )) == null ? void 0 : G.label) || x;
5569
5568
  },
5570
5569
  [m, o]
@@ -5575,7 +5574,7 @@ const Tt = ({
5575
5574
  Tt,
5576
5575
  {
5577
5576
  values: x,
5578
- onTagClose: t1,
5577
+ onTagClose: i1,
5579
5578
  maxWidth: ((E = z.current) == null ? void 0 : E.clientWidth) || 0,
5580
5579
  disabled: d,
5581
5580
  closable: !p,
@@ -5584,10 +5583,10 @@ const Tt = ({
5584
5583
  }
5585
5584
  );
5586
5585
  },
5587
- [d, m, t1, o, p]
5586
+ [d, m, i1, o, p]
5588
5587
  ), V = K(
5589
- ({ label: x, value: E, mode: G }) => G === "filter" ? u1(E) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(g2, { onClose: () => t1(E), disabled: d, children: typeof x == "object" ? x : l1(E) }) }),
5590
- [d, l1, t1, u1]
5588
+ ({ label: x, value: E, mode: G }) => G === "filter" ? u1(E) : /* @__PURE__ */ r("div", { onMouseDown: v1, className: "tag-wrapper", children: /* @__PURE__ */ r(g2, { onClose: () => i1(E), disabled: d, children: typeof x == "object" ? x : c1(E) }) }),
5589
+ [d, c1, i1, u1]
5591
5590
  ), W = Array.isArray(A) && A.length > 0 || !!A && typeof A == "string" && A.trim() !== "";
5592
5591
  return /* @__PURE__ */ C("div", { className: "snmt-select-container", children: [
5593
5592
  /* @__PURE__ */ C(
@@ -5606,12 +5605,12 @@ const Tt = ({
5606
5605
  id: L,
5607
5606
  ref: _,
5608
5607
  showSearch: !!s,
5609
- filterOption: s && X,
5610
- onDropdownVisibleChange: q,
5608
+ filterOption: s && e1,
5609
+ onDropdownVisibleChange: Q,
5611
5610
  disabled: d,
5612
5611
  value: A || void 0,
5613
5612
  labelRender: (x) => {
5614
- const E = l1(x.value);
5613
+ const E = c1(x.value);
5615
5614
  return d ? /* @__PURE__ */ r("span", { style: { color: U.GREY_DARK_1 }, children: E }) : E;
5616
5615
  },
5617
5616
  mode: n === "filter" ? "multiple" : n,
@@ -5619,20 +5618,20 @@ const Tt = ({
5619
5618
  onFocus: T,
5620
5619
  onBlur: F,
5621
5620
  onSearch: (x) => {
5622
- Q(!x), u && u(x);
5621
+ X(!x), u && u(x);
5623
5622
  },
5624
- onSelect: () => Q(!0),
5625
- onDeselect: () => Q(!0),
5623
+ onSelect: () => X(!0),
5624
+ onDeselect: () => X(!0),
5626
5625
  tagRender: (x) => V({ ...x, mode: n }),
5627
5626
  maxTagCount: "responsive",
5628
5627
  maxTagPlaceholder: R1,
5629
5628
  onPopupScroll: N1,
5630
5629
  prefix: H && /* @__PURE__ */ r($1, { size: "small" }),
5631
- suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */ C(i1, { children: [
5630
+ suffixIcon: /* @__PURE__ */ r("div", { className: "wrapper-suffix-icon", children: n !== "filter" && /* @__PURE__ */ C(n1, { children: [
5632
5631
  A && !!A.length && (n || a) && /* @__PURE__ */ r(
5633
5632
  "div",
5634
5633
  {
5635
- onClick: e1,
5634
+ onClick: t1,
5636
5635
  style: {
5637
5636
  cursor: d ? "not-allowed" : "pointer"
5638
5637
  },
@@ -5657,7 +5656,7 @@ const Tt = ({
5657
5656
  ] }) }),
5658
5657
  removeIcon: /* @__PURE__ */ r(f1, { name: "cancelCircle", color: U.GREY_DARK_1 }),
5659
5658
  options: o,
5660
- optionRender: (x) => b ? b(x.data) : /* @__PURE__ */ C(m1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5659
+ optionRender: (x) => y ? y(x.data) : /* @__PURE__ */ C(m1, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
5661
5660
  /* @__PURE__ */ C(m1, { alignItems: "center", gap: 12, children: [
5662
5661
  n && /* @__PURE__ */ r(
5663
5662
  r5,
@@ -5666,19 +5665,26 @@ const Tt = ({
5666
5665
  }
5667
5666
  ),
5668
5667
  /* @__PURE__ */ C(m1, { alignItems: "center", gap: 8, children: [
5669
- x.data.image && /* @__PURE__ */ r(e5, { src: x.data.image, variant: "xsmall" }),
5668
+ x.data.image !== void 0 && /* @__PURE__ */ r(
5669
+ e5,
5670
+ {
5671
+ src: x.data.image,
5672
+ variant: "xsmall",
5673
+ fallbackText: x.data.imageFallbackText ? x.data.imageFallbackText : ""
5674
+ }
5675
+ ),
5670
5676
  /* @__PURE__ */ r("span", { children: x.label })
5671
5677
  ] })
5672
5678
  ] }),
5673
5679
  !n && A === x.value && /* @__PURE__ */ r(f1, { name: "check", color: U.BLUE_DARK_1 })
5674
5680
  ] }),
5675
5681
  dropdownRender: (x) => /* @__PURE__ */ C("div", { className: "dropdown-container", children: [
5676
- /* @__PURE__ */ r("div", { className: "dropdown-menu", children: y ? y(x) : x }),
5682
+ /* @__PURE__ */ r("div", { className: "dropdown-menu", children: b ? b(x) : x }),
5677
5683
  H && /* @__PURE__ */ r("div", { className: "loading-overlay", children: /* @__PURE__ */ r($1, {}) })
5678
5684
  ] })
5679
5685
  }
5680
5686
  ),
5681
- t && /* @__PURE__ */ C(i1, { children: [
5687
+ t && /* @__PURE__ */ C(n1, { children: [
5682
5688
  /* @__PURE__ */ r(
5683
5689
  "label",
5684
5690
  {
@@ -5731,7 +5737,7 @@ function W1(i) {
5731
5737
  }
5732
5738
  const I1 = 100, h1 = {
5733
5739
  offset: 0
5734
- }, Bt = r1(
5740
+ }, Bt = o1(
5735
5741
  ({
5736
5742
  loadOptions: i,
5737
5743
  width: e,
@@ -5750,12 +5756,12 @@ const I1 = 100, h1 = {
5750
5756
  dropdownRender: w,
5751
5757
  readOnly: L,
5752
5758
  clearable: m = !1,
5753
- required: y = !1,
5754
- error: b
5759
+ required: b = !1,
5760
+ error: y
5755
5761
  }, H) => {
5756
- const [p, N] = O(), [_, R] = O(h1), [I, Z] = O(!1), [D, P] = O(), [Q, A] = O(!1), [j, z] = O(
5762
+ const [p, N] = O(), [_, R] = O(h1), [I, Z] = O(!1), [D, P] = O(), [X, A] = O(!1), [j, z] = O(
5757
5763
  u ?? []
5758
- ), q = W1(_.offset), X = W1(D), [T, F] = O(!1), $ = B(!1), e1 = K(
5764
+ ), Q = W1(_.offset), e1 = W1(D), [T, F] = O(!1), $ = B(!1), t1 = K(
5759
5765
  async ({
5760
5766
  limit: V = I1,
5761
5767
  offset: W,
@@ -5781,11 +5787,11 @@ const I1 = 100, h1 = {
5781
5787
  }
5782
5788
  },
5783
5789
  [i]
5784
- ), t1 = Kt((V) => {
5790
+ ), i1 = Kt((V) => {
5785
5791
  P(V), V || R(h1);
5786
5792
  }), u1 = K(
5787
- (V) => t1(V),
5788
- [t1]
5793
+ (V) => i1(V),
5794
+ [i1]
5789
5795
  ), v1 = K(
5790
5796
  async (V) => {
5791
5797
  I || V && _.count && _.count > ((p == null ? void 0 : p.length) ?? 0) && R((W) => ({
@@ -5801,9 +5807,9 @@ const I1 = 100, h1 = {
5801
5807
  [g, D]
5802
5808
  );
5803
5809
  S(() => {
5804
- !$.current || I || (T || Q && (q !== _.offset || X !== D || !p)) && (e1({ offset: _.offset, limit: I1, search: D }), T && F(!1));
5805
- }, [T, Q, _.offset, D, q, X, p, I]), S(() => {
5806
- (a || c) && e1(h1), $.current = !0;
5810
+ !$.current || I || (T || X && (Q !== _.offset || e1 !== D || !p)) && (t1({ offset: _.offset, limit: I1, search: D }), T && F(!1));
5811
+ }, [T, X, _.offset, D, Q, e1, p, I]), S(() => {
5812
+ (a || c) && t1(h1), $.current = !0;
5807
5813
  }, []), S(() => {
5808
5814
  u && z((V) => {
5809
5815
  const W = u.filter(
@@ -5812,7 +5818,7 @@ const I1 = 100, h1 = {
5812
5818
  return [...V, ...W];
5813
5819
  });
5814
5820
  }, [u]);
5815
- const l1 = K(
5821
+ const c1 = K(
5816
5822
  (V) => {
5817
5823
  t && t(V);
5818
5824
  let W = [];
@@ -5823,10 +5829,12 @@ const I1 = 100, h1 = {
5823
5829
  x.length > 0 && z((E = []) => [
5824
5830
  ...E,
5825
5831
  ...x.map((G) => {
5826
- const c1 = p == null ? void 0 : p.find((w2) => w2.value === G);
5832
+ const J = p == null ? void 0 : p.find((w2) => w2.value === G);
5827
5833
  return {
5828
5834
  value: G,
5829
- label: (c1 == null ? void 0 : c1.label) ?? G
5835
+ label: (J == null ? void 0 : J.label) ?? G,
5836
+ imageFallbackText: (J == null ? void 0 : J.imageFallbackText) ?? "",
5837
+ image: (J == null ? void 0 : J.image) ?? void 0
5830
5838
  };
5831
5839
  })
5832
5840
  ]), P(void 0), R(h1), F(!0);
@@ -5838,7 +5846,7 @@ const I1 = 100, h1 = {
5838
5846
  id: s,
5839
5847
  width: e,
5840
5848
  options: p || [],
5841
- onChange: l1,
5849
+ onChange: c1,
5842
5850
  ref: H,
5843
5851
  placeholder: d,
5844
5852
  search: !0,
@@ -5854,14 +5862,14 @@ const I1 = 100, h1 = {
5854
5862
  dropdownRender: w,
5855
5863
  readOnly: L,
5856
5864
  clearable: m,
5857
- required: y,
5858
- error: b
5865
+ required: b,
5866
+ error: y
5859
5867
  }),
5860
5868
  [
5861
5869
  s,
5862
5870
  e,
5863
5871
  p,
5864
- l1,
5872
+ c1,
5865
5873
  H,
5866
5874
  d,
5867
5875
  n,
@@ -5876,8 +5884,8 @@ const I1 = 100, h1 = {
5876
5884
  w,
5877
5885
  L,
5878
5886
  m,
5879
- y,
5880
- b
5887
+ b,
5888
+ y
5881
5889
  ]
5882
5890
  );
5883
5891
  return C1(H, () => ({
@@ -6009,7 +6017,7 @@ const zt = [" ", ",", "?", "!", ";"], Jt = new Ut(20), qt = (i, e, t) => {
6009
6017
  console && console[i] && console[i].apply(console, e);
6010
6018
  }
6011
6019
  };
6012
- class y1 {
6020
+ class b1 {
6013
6021
  constructor(e) {
6014
6022
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6015
6023
  this.init(e, t);
@@ -6042,16 +6050,16 @@ class y1 {
6042
6050
  return s && !this.debug ? null : (M(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
6043
6051
  }
6044
6052
  create(e) {
6045
- return new y1(this.logger, {
6053
+ return new b1(this.logger, {
6046
6054
  prefix: `${this.prefix}:${e}:`,
6047
6055
  ...this.options
6048
6056
  });
6049
6057
  }
6050
6058
  clone(e) {
6051
- return e = e || this.options, e.prefix = e.prefix || this.prefix, new y1(this.logger, e);
6059
+ return e = e || this.options, e.prefix = e.prefix || this.prefix, new b1(this.logger, e);
6052
6060
  }
6053
6061
  }
6054
- var J = new y1();
6062
+ var q = new b1();
6055
6063
  class H1 {
6056
6064
  constructor() {
6057
6065
  this.observers = {};
@@ -6173,10 +6181,10 @@ var u2 = {
6173
6181
  }
6174
6182
  };
6175
6183
  const X1 = {};
6176
- class b1 extends H1 {
6184
+ class y1 extends H1 {
6177
6185
  constructor(e) {
6178
6186
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6179
- super(), Yt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = J.create("translator");
6187
+ super(), Yt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = q.create("translator");
6180
6188
  }
6181
6189
  changeLanguage(e) {
6182
6190
  e && (this.language = e);
@@ -6243,8 +6251,8 @@ class b1 extends H1 {
6243
6251
  }
6244
6252
  const u = this.resolve(e, t);
6245
6253
  let g = u && u.res;
6246
- const f = u && u.usedKey || h, w = u && u.exactUsedKey || h, L = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], y = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, H = !M(g) && typeof g != "boolean" && typeof g != "number";
6247
- if (b && g && H && m.indexOf(L) < 0 && !(M(y) && Array.isArray(g))) {
6254
+ const f = u && u.usedKey || h, w = u && u.exactUsedKey || h, L = Object.prototype.toString.apply(g), m = ["[object Number]", "[object Function]", "[object RegExp]"], b = t.joinArrays !== void 0 ? t.joinArrays : this.options.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, H = !M(g) && typeof g != "boolean" && typeof g != "number";
6255
+ if (y && g && H && m.indexOf(L) < 0 && !(M(b) && Array.isArray(g))) {
6248
6256
  if (!t.returnObjects && !this.options.returnObjects) {
6249
6257
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
6250
6258
  const p = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(f, g, {
@@ -6266,11 +6274,11 @@ class b1 extends H1 {
6266
6274
  }
6267
6275
  g = N;
6268
6276
  }
6269
- } else if (b && M(y) && Array.isArray(g))
6270
- g = g.join(y), g && (g = this.extendTranslation(g, e, t, n));
6277
+ } else if (y && M(b) && Array.isArray(g))
6278
+ g = g.join(b), g && (g = this.extendTranslation(g, e, t, n));
6271
6279
  else {
6272
6280
  let p = !1, N = !1;
6273
- const _ = t.count !== void 0 && !M(t.count), R = b1.hasDefaultValue(t), I = _ ? this.pluralResolver.getSuffix(a, t.count, t) : "", Z = t.ordinal && _ ? this.pluralResolver.getSuffix(a, t.count, {
6281
+ const _ = t.count !== void 0 && !M(t.count), R = y1.hasDefaultValue(t), I = _ ? this.pluralResolver.getSuffix(a, t.count, t) : "", Z = t.ordinal && _ ? this.pluralResolver.getSuffix(a, t.count, {
6274
6282
  ordinal: !1
6275
6283
  }) : "", D = _ && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), P = D && t[`defaultValue${this.options.pluralSeparator}zero`] || t[`defaultValue${I}`] || t[`defaultValue${Z}`] || t.defaultValue;
6276
6284
  !this.isValidLookup(g) && R && (p = !0, g = P), this.isValidLookup(g) || (N = !0, g = h);
@@ -6284,21 +6292,21 @@ class b1 extends H1 {
6284
6292
  T && T.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
6285
6293
  }
6286
6294
  let z = [];
6287
- const q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
6288
- if (this.options.saveMissingTo === "fallback" && q && q[0])
6289
- for (let T = 0; T < q.length; T++)
6290
- z.push(q[T]);
6295
+ const Q = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
6296
+ if (this.options.saveMissingTo === "fallback" && Q && Q[0])
6297
+ for (let T = 0; T < Q.length; T++)
6298
+ z.push(Q[T]);
6291
6299
  else this.options.saveMissingTo === "all" ? z = this.languageUtils.toResolveHierarchy(t.lng || this.language) : z.push(t.lng || this.language);
6292
- const X = (T, F, $) => {
6293
- const e1 = R && $ !== g ? $ : A;
6294
- this.options.missingKeyHandler ? this.options.missingKeyHandler(T, l, F, e1, j, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(T, l, F, e1, j, t), this.emit("missingKey", T, l, F, g);
6300
+ const e1 = (T, F, $) => {
6301
+ const t1 = R && $ !== g ? $ : A;
6302
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(T, l, F, t1, j, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(T, l, F, t1, j, t), this.emit("missingKey", T, l, F, g);
6295
6303
  };
6296
6304
  this.options.saveMissing && (this.options.saveMissingPlurals && _ ? z.forEach((T) => {
6297
6305
  const F = this.pluralResolver.getSuffixes(T, t);
6298
6306
  D && t[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach(($) => {
6299
- X([T], h + $, t[`defaultValue${$}`] || P);
6307
+ e1([T], h + $, t[`defaultValue${$}`] || P);
6300
6308
  });
6301
- }) : X(z, h, P));
6309
+ }) : e1(z, h, P));
6302
6310
  }
6303
6311
  g = this.extendTranslation(g, e, t, u, n), N && g === h && this.options.appendNamespaceToMissingKey && (g = `${l}:${h}`), (N || p) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}:${h}` : h, p ? g : void 0) : g = this.options.parseMissingKeyHandler(g));
6304
6312
  }
@@ -6360,24 +6368,24 @@ class b1 extends H1 {
6360
6368
  this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
6361
6369
  const g = t.count !== void 0 && !M(t.count), f = g && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), w = t.context !== void 0 && (M(t.context) || typeof t.context == "number") && t.context !== "", L = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
6362
6370
  u.forEach((m) => {
6363
- this.isValidLookup(n) || (d = m, !X1[`${L[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (X1[`${L[0]}-${m}`] = !0, this.logger.warn(`key "${s}" for languages "${L.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!!!")), L.forEach((y) => {
6371
+ this.isValidLookup(n) || (d = m, !X1[`${L[0]}-${m}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(d) && (X1[`${L[0]}-${m}`] = !0, this.logger.warn(`key "${s}" for languages "${L.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!!!")), L.forEach((b) => {
6364
6372
  if (this.isValidLookup(n)) return;
6365
- h = y;
6366
- const b = [c];
6373
+ h = b;
6374
+ const y = [c];
6367
6375
  if (this.i18nFormat && this.i18nFormat.addLookupKeys)
6368
- this.i18nFormat.addLookupKeys(b, c, y, m, t);
6376
+ this.i18nFormat.addLookupKeys(y, c, b, m, t);
6369
6377
  else {
6370
6378
  let p;
6371
- g && (p = this.pluralResolver.getSuffix(y, t.count, t));
6379
+ g && (p = this.pluralResolver.getSuffix(b, t.count, t));
6372
6380
  const N = `${this.options.pluralSeparator}zero`, _ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
6373
- if (g && (b.push(c + p), t.ordinal && p.indexOf(_) === 0 && b.push(c + p.replace(_, this.options.pluralSeparator)), f && b.push(c + N)), w) {
6381
+ if (g && (y.push(c + p), t.ordinal && p.indexOf(_) === 0 && y.push(c + p.replace(_, this.options.pluralSeparator)), f && y.push(c + N)), w) {
6374
6382
  const R = `${c}${this.options.contextSeparator}${t.context}`;
6375
- b.push(R), g && (b.push(R + p), t.ordinal && p.indexOf(_) === 0 && b.push(R + p.replace(_, this.options.pluralSeparator)), f && b.push(R + N));
6383
+ y.push(R), g && (y.push(R + p), t.ordinal && p.indexOf(_) === 0 && y.push(R + p.replace(_, this.options.pluralSeparator)), f && y.push(R + N));
6376
6384
  }
6377
6385
  }
6378
6386
  let H;
6379
- for (; H = b.pop(); )
6380
- this.isValidLookup(n) || (o = H, n = this.getResource(y, m, H, t));
6387
+ for (; H = y.pop(); )
6388
+ this.isValidLookup(n) || (o = H, n = this.getResource(b, m, H, t));
6381
6389
  }));
6382
6390
  });
6383
6391
  }), {
@@ -6422,7 +6430,7 @@ class b1 extends H1 {
6422
6430
  const A1 = (i) => i.charAt(0).toUpperCase() + i.slice(1);
6423
6431
  class e2 {
6424
6432
  constructor(e) {
6425
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
6433
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
6426
6434
  }
6427
6435
  getScriptPartFromCode(e) {
6428
6436
  if (e = M1(e), !e || e.indexOf("-") < 0) return null;
@@ -6622,7 +6630,7 @@ const t7 = ["v1", "v2", "v3"], i7 = ["v4"], t2 = {
6622
6630
  class s7 {
6623
6631
  constructor(e) {
6624
6632
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6625
- this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || i7.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = n7(), this.pluralRulesCache = {};
6633
+ this.languageUtils = e, this.options = t, this.logger = q.create("pluralResolver"), (!this.options.compatibilityJSON || i7.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = n7(), this.pluralRulesCache = {};
6626
6634
  }
6627
6635
  addRule(e, t) {
6628
6636
  this.rules[e] = t;
@@ -6690,7 +6698,7 @@ const i2 = function(i, e, t) {
6690
6698
  class r7 {
6691
6699
  constructor() {
6692
6700
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6693
- this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
6701
+ this.logger = q.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || ((t) => t), this.init(e);
6694
6702
  }
6695
6703
  init() {
6696
6704
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -6713,10 +6721,10 @@ class r7 {
6713
6721
  nestingSuffix: w,
6714
6722
  nestingSuffixEscaped: L,
6715
6723
  nestingOptionsSeparator: m,
6716
- maxReplaces: y,
6717
- alwaysFormat: b
6724
+ maxReplaces: b,
6725
+ alwaysFormat: y
6718
6726
  } = e.interpolation;
6719
- this.escape = t !== void 0 ? t : Wt, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? d1(o) : h || "{{", this.suffix = d ? d1(d) : l || "}}", this.formatSeparator = a || ",", this.unescapePrefix = c ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = g ? d1(g) : f || d1("$t("), this.nestingSuffix = w ? d1(w) : L || d1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
6727
+ this.escape = t !== void 0 ? t : Wt, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? d1(o) : h || "{{", this.suffix = d ? d1(d) : l || "}}", this.formatSeparator = a || ",", this.unescapePrefix = c ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = g ? d1(g) : f || d1("$t("), this.nestingSuffix = w ? d1(w) : L || d1(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = b || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
6720
6728
  }
6721
6729
  reset() {
6722
6730
  this.options && this.init(this.options);
@@ -6729,12 +6737,12 @@ class r7 {
6729
6737
  let o, h, d;
6730
6738
  const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, a = (f) => {
6731
6739
  if (f.indexOf(this.formatSeparator) < 0) {
6732
- const y = i2(t, l, f, this.options.keySeparator, this.options.ignoreJSONStructure);
6733
- return this.alwaysFormat ? this.format(y, void 0, n, {
6740
+ const b = i2(t, l, f, this.options.keySeparator, this.options.ignoreJSONStructure);
6741
+ return this.alwaysFormat ? this.format(b, void 0, n, {
6734
6742
  ...s,
6735
6743
  ...t,
6736
6744
  interpolationkey: f
6737
- }) : y;
6745
+ }) : b;
6738
6746
  }
6739
6747
  const w = f.split(this.formatSeparator), L = w.shift().trim(), m = w.join(this.formatSeparator).trim();
6740
6748
  return this.format(i2(t, l, L, this.options.keySeparator, this.options.ignoreJSONStructure), m, n, {
@@ -6845,7 +6853,7 @@ const o7 = (i) => {
6845
6853
  class a7 {
6846
6854
  constructor() {
6847
6855
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6848
- this.logger = J.create("formatter"), this.options = e, this.formats = {
6856
+ this.logger = q.create("formatter"), this.options = e, this.formats = {
6849
6857
  number: g1((t, n) => {
6850
6858
  const s = new Intl.NumberFormat(t, {
6851
6859
  ...n
@@ -6928,7 +6936,7 @@ const l7 = (i, e) => {
6928
6936
  class c7 extends H1 {
6929
6937
  constructor(e, t, n) {
6930
6938
  let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
6931
- super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = J.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(n, s.backend, s);
6939
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(n, s.backend, s);
6932
6940
  }
6933
6941
  queueLoad(e, t, n, s) {
6934
6942
  const o = {}, h = {}, d = {}, l = {};
@@ -7125,7 +7133,7 @@ const n2 = () => ({
7125
7133
  class k1 extends H1 {
7126
7134
  constructor() {
7127
7135
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0;
7128
- if (super(), this.options = s2(e), this.services = {}, this.logger = J, this.modules = {
7136
+ if (super(), this.options = s2(e), this.services = {}, this.logger = q, this.modules = {
7129
7137
  external: []
7130
7138
  }, h7(this), t && !this.isInitialized && !e.isClone) {
7131
7139
  if (!this.options.initImmediate)
@@ -7150,13 +7158,13 @@ class k1 extends H1 {
7150
7158
  }), t.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = t.keySeparator), t.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = t.nsSeparator);
7151
7159
  const o = (c) => c ? typeof c == "function" ? new c() : c : null;
7152
7160
  if (!this.options.isClone) {
7153
- this.modules.logger ? J.init(o(this.modules.logger), this.options) : J.init(null, this.options);
7161
+ this.modules.logger ? q.init(o(this.modules.logger), this.options) : q.init(null, this.options);
7154
7162
  let c;
7155
7163
  this.modules.formatter ? c = this.modules.formatter : typeof Intl < "u" && (c = a7);
7156
7164
  const u = new e2(this.options);
7157
7165
  this.store = new Q1(this.options.resources, this.options);
7158
7166
  const g = this.services;
7159
- g.logger = J, g.resourceStore = this.store, g.languageUtils = u, g.pluralResolver = new s7(u, {
7167
+ g.logger = q, g.resourceStore = this.store, g.languageUtils = u, g.pluralResolver = new s7(u, {
7160
7168
  prepend: this.options.pluralSeparator,
7161
7169
  compatibilityJSON: this.options.compatibilityJSON,
7162
7170
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
@@ -7166,7 +7174,7 @@ class k1 extends H1 {
7166
7174
  for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
7167
7175
  L[m - 1] = arguments[m];
7168
7176
  e.emit(f, ...L);
7169
- }), this.modules.languageDetector && (g.languageDetector = o(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = o(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new b1(this.services, this.options), this.translator.on("*", function(f) {
7177
+ }), this.modules.languageDetector && (g.languageDetector = o(this.modules.languageDetector), g.languageDetector.init && g.languageDetector.init(g, this.options.detection, this.options)), this.modules.i18nFormat && (g.i18nFormat = o(this.modules.i18nFormat), g.i18nFormat.init && g.i18nFormat.init(this)), this.translator = new y1(this.services, this.options), this.translator.on("*", function(f) {
7170
7178
  for (var w = arguments.length, L = new Array(w > 1 ? w - 1 : 0), m = 1; m < w; m++)
7171
7179
  L[m - 1] = arguments[m];
7172
7180
  e.emit(f, ...L);
@@ -7342,7 +7350,7 @@ class k1 extends H1 {
7342
7350
  ...this.services
7343
7351
  }, o.services.utils = {
7344
7352
  hasLoadedNamespace: o.hasLoadedNamespace.bind(o)
7345
- }, n && (o.store = new Q1(this.store.data, s), o.services.resourceStore = o.store), o.translator = new b1(o.services, s), o.translator.on("*", function(d) {
7353
+ }, n && (o.store = new Q1(this.store.data, s), o.services.resourceStore = o.store), o.translator = new y1(o.services, s), o.translator.on("*", function(d) {
7346
7354
  for (var l = arguments.length, a = new Array(l > 1 ? l - 1 : 0), c = 1; c < l; c++)
7347
7355
  a[c - 1] = arguments[c];
7348
7356
  o.emit(d, ...a);
@@ -7380,14 +7388,14 @@ function d7() {
7380
7388
  if (console && console.warn) {
7381
7389
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7382
7390
  e[t] = arguments[t];
7383
- s1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
7391
+ r1(e[0]) && (e[0] = `react-i18next:: ${e[0]}`), console.warn(...e);
7384
7392
  }
7385
7393
  }
7386
7394
  const r2 = {};
7387
7395
  function Z1() {
7388
7396
  for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
7389
7397
  e[t] = arguments[t];
7390
- s1(e[0]) && r2[e[0]] || (s1(e[0]) && (r2[e[0]] = /* @__PURE__ */ new Date()), d7(...e));
7398
+ r1(e[0]) && r2[e[0]] || (r1(e[0]) && (r2[e[0]] = /* @__PURE__ */ new Date()), d7(...e));
7391
7399
  }
7392
7400
  const f2 = (i, e) => () => {
7393
7401
  if (i.isInitialized)
@@ -7403,7 +7411,7 @@ const f2 = (i, e) => () => {
7403
7411
  }, o2 = (i, e, t) => {
7404
7412
  i.loadNamespaces(e, f2(i, t));
7405
7413
  }, a2 = (i, e, t, n) => {
7406
- s1(t) && (t = [t]), t.forEach((s) => {
7414
+ r1(t) && (t = [t]), t.forEach((s) => {
7407
7415
  i.options.ns.indexOf(s) < 0 && i.options.ns.push(s);
7408
7416
  }), i.loadLanguages(e, f2(i, n));
7409
7417
  }, g7 = function(i, e) {
@@ -7423,7 +7431,7 @@ const f2 = (i, e) => () => {
7423
7431
  if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && s.services.backendConnector.backend && s.isLanguageChangingTo && !o(s.isLanguageChangingTo, i)) return !1;
7424
7432
  }
7425
7433
  }) : g7(i, e, t);
7426
- }, s1 = (i) => typeof i == "string", u7 = (i) => typeof i == "object" && i !== null, f7 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, p7 = {
7434
+ }, r1 = (i) => typeof i == "string", u7 = (i) => typeof i == "object" && i !== null, f7 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, p7 = {
7427
7435
  "&amp;": "&",
7428
7436
  "&#38;": "&",
7429
7437
  "&lt;": "<",
@@ -7470,7 +7478,7 @@ const v7 = (i) => {
7470
7478
  init(i) {
7471
7479
  L7(i.options.react), v7(i);
7472
7480
  }
7473
- }, x7 = a1();
7481
+ }, x7 = l1();
7474
7482
  class _7 {
7475
7483
  constructor() {
7476
7484
  K1(this, "getUsedNamespaces", () => Object.keys(this.usedNamespaces));
@@ -7487,17 +7495,17 @@ const M7 = (i, e) => {
7487
7495
  return S(() => {
7488
7496
  t.current = i;
7489
7497
  }, [i, e]), t.current;
7490
- }, m2 = (i, e, t, n) => i.getFixedT(e, t, n), y7 = (i, e, t, n) => K(m2(i, e, t, n), [i, e, t, n]), b7 = function(i) {
7498
+ }, m2 = (i, e, t, n) => i.getFixedT(e, t, n), b7 = (i, e, t, n) => K(m2(i, e, t, n), [i, e, t, n]), y7 = function(i) {
7491
7499
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7492
7500
  const {
7493
7501
  i18n: t
7494
7502
  } = e, {
7495
7503
  i18n: n,
7496
7504
  defaultNS: s
7497
- } = o1(x7) || {}, o = t || n || N7();
7505
+ } = a1(x7) || {}, o = t || n || N7();
7498
7506
  if (o && !o.reportNamespaces && (o.reportNamespaces = new _7()), !o) {
7499
7507
  Z1("You will need to pass in an i18next instance by using initReactI18next");
7500
- const p = (_, R) => s1(R) ? R : u7(R) && s1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, N = [p, {}, !1];
7508
+ const p = (_, R) => r1(R) ? R : u7(R) && r1(R.defaultValue) ? R.defaultValue : Array.isArray(_) ? _[_.length - 1] : _, N = [p, {}, !1];
7501
7509
  return N.t = p, N.i18n = {}, N.ready = !1, N;
7502
7510
  }
7503
7511
  o.options.react && o.options.react.wait !== void 0 && Z1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
@@ -7510,29 +7518,29 @@ const M7 = (i, e) => {
7510
7518
  keyPrefix: l
7511
7519
  } = h;
7512
7520
  let a = i;
7513
- a = s1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
7514
- const c = (o.isInitialized || o.initializedStoreOnce) && a.every((p) => C7(p, o, h)), u = y7(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), g = () => u, f = () => m2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), [w, L] = O(g);
7521
+ a = r1(a) ? [a] : a || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(a);
7522
+ const c = (o.isInitialized || o.initializedStoreOnce) && a.every((p) => C7(p, o, h)), u = b7(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), g = () => u, f = () => m2(o, e.lng || null, h.nsMode === "fallback" ? a : a[0], l), [w, L] = O(g);
7515
7523
  let m = a.join();
7516
7524
  e.lng && (m = `${e.lng}${m}`);
7517
- const y = M7(m), b = B(!0);
7525
+ const b = M7(m), y = B(!0);
7518
7526
  S(() => {
7519
7527
  const {
7520
7528
  bindI18n: p,
7521
7529
  bindI18nStore: N
7522
7530
  } = h;
7523
- b.current = !0, !c && !d && (e.lng ? a2(o, e.lng, a, () => {
7524
- b.current && L(f);
7531
+ y.current = !0, !c && !d && (e.lng ? a2(o, e.lng, a, () => {
7532
+ y.current && L(f);
7525
7533
  }) : o2(o, a, () => {
7526
- b.current && L(f);
7527
- })), c && y && y !== m && b.current && L(f);
7534
+ y.current && L(f);
7535
+ })), c && b && b !== m && y.current && L(f);
7528
7536
  const _ = () => {
7529
- b.current && L(f);
7537
+ y.current && L(f);
7530
7538
  };
7531
7539
  return p && o && o.on(p, _), N && o && o.store.on(N, _), () => {
7532
- b.current = !1, p && o && p.split(" ").forEach((R) => o.off(R, _)), N && o && N.split(" ").forEach((R) => o.store.off(R, _));
7540
+ y.current = !1, p && o && p.split(" ").forEach((R) => o.off(R, _)), N && o && N.split(" ").forEach((R) => o.store.off(R, _));
7533
7541
  };
7534
7542
  }, [o, m]), S(() => {
7535
- b.current && c && L(g);
7543
+ y.current && c && L(g);
7536
7544
  }, [o, l, c]);
7537
7545
  const H = [w, o, c];
7538
7546
  if (H.t = w, H.i18n = o, H.ready = c, c || !c && !d) return H;
@@ -7562,17 +7570,17 @@ Y.use(R7).init({
7562
7570
  }
7563
7571
  }
7564
7572
  });
7565
- const K7 = r1(
7573
+ const K7 = o1(
7566
7574
  ({ width: i, selectedCountry: e, onChange: t, value: n, id: s, disabled: o, clearable: h }, d) => {
7567
7575
  const [l, a] = O(
7568
7576
  []
7569
- ), [c, u] = O(!1), { locale: g, axiosPeople: f } = o1(v2), w = B(!1), L = B(null), m = B(l), y = V7(e);
7577
+ ), [c, u] = O(!1), { locale: g, axiosPeople: f } = a1(v2), w = B(!1), L = B(null), m = B(l), b = V7(e);
7570
7578
  if (!f)
7571
7579
  throw new Error(
7572
7580
  `CitySelect requires "axiosPeople" to fetch cities.
7573
7581
  Please provide it via SNMTUiContext.`
7574
7582
  );
7575
- const { t: b } = b7("common", { lng: g }), H = K(
7583
+ const { t: y } = y7("common", { lng: g }), H = K(
7576
7584
  async (N) => {
7577
7585
  const _ = m.current.find((R) => R.value === N);
7578
7586
  if (_)
@@ -7605,8 +7613,8 @@ const K7 = r1(
7605
7613
  })();
7606
7614
  }, []), S(() => {
7607
7615
  var N;
7608
- y !== e ? w.current && (t(null), a([]), m.current = [], (N = L.current) == null || N.refetchOptions()) : w.current = !0;
7609
- }, [e, t, y]);
7616
+ b !== e ? w.current && (t(null), a([]), m.current = [], (N = L.current) == null || N.refetchOptions()) : w.current = !0;
7617
+ }, [e, t, b]);
7610
7618
  const p = K(
7611
7619
  async ({
7612
7620
  limit: N,
@@ -7651,7 +7659,7 @@ const K7 = r1(
7651
7659
  onChange: t,
7652
7660
  ref: L,
7653
7661
  search: !0,
7654
- placeholder: b("placeholder"),
7662
+ placeholder: y("placeholder"),
7655
7663
  disabled: o,
7656
7664
  clearable: h,
7657
7665
  loadOptions: p,
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{display:grid;border:none;background-color:var(--grey-dark-4);place-items:center}.snmt-avatar.ant-avatar .ant-avatar-string{position:static;display:grid;place-items:center}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-avatar-with-label-wrapper{display:grid;grid-template-columns:auto auto;place-items:center}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner{border-color:var(--grey-light-4);border-radius:5px}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1.5px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border-color:var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border-color:var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border-color:var(--blue-hover)!important}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-2)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-0-5: #fcfcfd;--grey-light-1: #f7f7f8;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-0-5: #f5f8ff;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f9f0ff;--purple-dark: #531dab;--cyan-light: #e6fffb;--cyan-dark: #08979c;--magenta-light: #fff0f6;--magenta-dark: #c41d7f;--gold-light: #fefed2;--gold-dark: #faad14;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--grey-dark-5);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.ant-typography.snmt-typography-h1{font-size:25px;font-weight:700;line-height:128%}.snmt-typography.ant-typography.snmt-typography-h2{font-size:21px;font-weight:600;line-height:132%}.snmt-typography.ant-typography.snmt-typography-h3{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-h4,.snmt-typography.ant-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:150%}.snmt-typography.ant-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.ant-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.ant-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.ant-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.ant-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link1{font-size:16px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link2{font-size:14px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-align-center{text-align:center}.snmt-typography.ant-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.ant-typography.snmt-typography-align-left{text-align:left}.snmt-typography.ant-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
1
+ @import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-avatar.ant-avatar{display:grid;border:none;background-color:var(--grey-dark-4);place-items:center;color:var(--grey-light-0)}.snmt-avatar.ant-avatar .ant-avatar-string{position:static;display:grid;place-items:center}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-avatar-with-label-wrapper{display:grid;grid-template-columns:auto auto;place-items:center}.snmt-checkbox .ant-checkbox+span{padding-inline-start:12px}.ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox .ant-checkbox-inner{border-color:var(--grey-light-4);border-radius:5px}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-disabled .ant-checkbox-inner:after{border-color:var(--grey-dark-2)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-primary);border-color:var(--blue-primary)}.snmt-checkbox-light.ant-checkbox-wrapper .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner:after{background-color:var(--grey-light-0);border:1.5px solid var(--grey-light-0);transform:none;content:"";position:absolute;left:50%;top:50%;width:9px;height:1px;transform:translate(-50%,-50%)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border-color:var(--blue-dark-1)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--blue-hover);border-color:var(--blue-hover)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox-disabled:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-light-3);border-color:var(--grey-light-3)}.snmt-checkbox-light.ant-checkbox-wrapper:hover .ant-checkbox.ant-checkbox-indeterminate .ant-checkbox-inner{background-color:var(--blue-hover)!important;border-color:var(--blue-hover)!important}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{background-color:var(--grey-dark-4);border:1px solid var(--grey-dark-4)}.snmt-checkbox-dark .ant-checkbox:not(.ant-checkbox-checked):hover .ant-checkbox-inner{background-color:var(--grey-dark-3);border:1px solid var(--grey-dark-3)}.snmt-checkbox-dark .ant-checkbox+span{color:var(--grey-light-2)}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag:not(.disabled) .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.snmt-tag.disabled{background:var(--grey-light-3)}.clickable{cursor:pointer}:root{--grey-light-0: #ffffff;--grey-light-0-5: #fcfcfd;--grey-light-1: #f7f7f8;--grey-light-2: #f4f4f5;--grey-light-3: #e6e6e9;--grey-light-4: #d0d0d7;--grey-dark-1: #babac4;--grey-dark-2: #8b8b9d;--grey-dark-3: #6f6f83;--grey-dark-4: #35353f;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-0-5: #f5f8ff;--blue-light-1: #ebf2ff;--blue-light-2: #deeaff;--blue-light-3: #c3d9ff;--blue-light-4: #a5c6ff;--blue-dark-1: #498bff;--purple-light: #f9f0ff;--purple-dark: #531dab;--cyan-light: #e6fffb;--cyan-dark: #08979c;--magenta-light: #fff0f6;--magenta-dark: #c41d7f;--gold-light: #fefed2;--gold-dark: #faad14;--notification-warning-light: #fff4e8;--notification-warning-dark: #d17100;--notification-success-light: #e0ffdb;--notification-success-dark: #0f6e00;--notification-error-light: #ffecec;--notification-error-dark: #d20000;--notification-error-dark-mode: #e50f00}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.snmt-typography.ant-typography{color:var(--grey-dark-5);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.ant-typography.snmt-typography-h1{font-size:25px;font-weight:700;line-height:128%}.snmt-typography.ant-typography.snmt-typography-h2{font-size:21px;font-weight:600;line-height:132%}.snmt-typography.ant-typography.snmt-typography-h3{font-size:19px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-h4,.snmt-typography.ant-typography.snmt-typography-h5{font-size:16px;font-weight:600;line-height:124%}.snmt-typography.ant-typography.snmt-typography-body1{font-size:16px;font-weight:500;line-height:150%}.snmt-typography.ant-typography.snmt-typography-body2{font-size:14px;font-weight:500;line-height:144%}.snmt-typography.ant-typography.snmt-typography-body3{font-size:12px;font-weight:600;line-height:120%}.snmt-typography.ant-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-button{font-size:14px;font-weight:600;line-height:116%}.snmt-typography.ant-typography.snmt-typography-caption{font-size:10px;font-weight:500;line-height:120%}.snmt-typography.ant-typography.snmt-typography-tag{font-size:9px;font-weight:500;line-height:116%}.snmt-typography.ant-typography.snmt-typography-link{font-size:16px;font-weight:500;line-height:120%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link1{font-size:16px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-link2{font-size:14px;font-weight:500;line-height:124%;text-decoration:underline;cursor:pointer}.snmt-typography.ant-typography.snmt-typography-align-center{text-align:center}.snmt-typography.ant-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.ant-typography.snmt-typography-align-left{text-align:left}.snmt-typography.ant-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snmt-tooltip.ant-tooltip>.ant-tooltip-arrow:before{background-color:var(--grey-dark-4);bottom:-1px}.snmt-tooltip.ant-tooltip>.ant-tooltip-content>.ant-tooltip-inner{background-color:var(--grey-dark-4);padding:12.5px 12px;border-radius:8px;color:var(--grey-light-0);font-family:Montserrat,sans-serif;font-size:10px;font-weight:500;line-height:12px}.snmt-popover:has(.snmt-popover-from-select){z-index:1050!important}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag{font-family:Montserrat,sans-serif}.ant-select-selection-overflow>:nth-last-child(2):hover .snmt-tag{background:var(--blue-light-1)}.ant-select-selection-overflow>:nth-last-child(2) .snmt-tag:has(.ant-popover-open){color:var(--blue-primary);background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}.wrapper{cursor:pointer}.snmt-select-1-15-6{width:100%;position:relative;height:48px;font-family:Montserrat,sans-serif;font-weight:500}.snmt-select-1-15-6 .snmt-select-blank .ant-select-selector{border:none!important}.snmt-select-1-15-6 .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select-1-15-6 .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select-1-15-6 .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select-1-15-6 .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select-1-15-6 .ant-select-selector:hover{border-color:var(--blue-dark-1)!important}.snmt-select-1-15-6 .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select-1-15-6 .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--grey-dark-5)!important}.snmt-select-1-15-6 .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select-1-15-6 .ant-select-selection-overflow-item-rest .ant-tag-close-icon{display:none}.snmt-select-1-15-6 .ant-select-disabled .snmt-select-1-15-6 .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--grey-dark-5);font-size:16px}.snmt-select-1-15-6.snmt-select-single .ant-select-selection-item img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select-1-15-6 .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select-1-15-6 .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select-1-15-6 .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select-1-15-6 .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-1-15-6>label{position:absolute;top:calc(50% - 10px);left:18px;width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:16px;font-style:normal;font-weight:500;line-height:normal;-webkit-user-select:none;user-select:none;pointer-events:none;color:var(--grey-dark-2);transition:top .2s cubic-bezier(0,0,.2,1) 0ms,font-size .2s cubic-bezier(0,0,.2,1) 0ms}.snmt-select-1-15-6>label.label-floating{top:-7px;font-size:12px}.snmt-select-1-15-6>label.label-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6>label.label-loading{padding-left:30px}.snmt-select-1-15-6>label.label-loading.label-floating{padding-left:0}.snmt-select-1-15-6 fieldset{position:absolute;min-width:0;margin:0;padding:0 11px;top:-6px;right:0;bottom:0;left:0;border:1px solid var(--grey-light-4);border-radius:8px;text-align:left;pointer-events:none}.snmt-select-1-15-6 fieldset>legend{max-width:0;height:14px;padding:0;font-size:12px}.snmt-select-1-15-6 fieldset>legend>span{opacity:0!important;padding:0 5px;pointer-events:none;-webkit-user-select:none;user-select:none}.snmt-select-1-15-6 fieldset.fieldset-focused>legend,.snmt-select-1-15-6 fieldset.fieldset-filled>legend,.snmt-select-1-15-6 fieldset.fieldset-disabled>legend{max-width:100%}.snmt-select-1-15-6 fieldset.fieldset-focused{border-color:var(--blue-primary);border-width:2px;color:var(--blue-primary)}.snmt-select-1-15-6 fieldset.fieldset-disabled{border:none;color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-disabled:not(.fieldset-filled){display:none}.snmt-select-1-15-6 fieldset.fieldset-filled{border-color:var(--grey-light-4);color:var(--grey-dark-2)}.snmt-select-1-15-6 fieldset.fieldset-filled.fieldset-disabled{color:var(--grey-dark-1)}.snmt-select-1-15-6 fieldset.fieldset-error,.snmt-select-1-15-6 fieldset.fieldset-focused.fieldset-error{border-color:var(--notification-error-dark)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only) fieldset:not(.fieldset-disabled):not(.fieldset-error):not(.fieldset-focused){border-color:var(--blue-dark-1)}.snmt-select-1-15-6:hover:not(.snmt-select-read-only)>label.label-floating:not(.label-disabled):not(.label-focused):not(.label-error){color:var(--blue-dark-1)}.snmt-select-1-15-6.snmt-select-read-only .ant-select-selector{background-color:var(--grey-light-2);cursor:not-allowed;pointer-events:none!important}.snmt-select-1-15-6.snmt-select-read-only .ant-select-arrow{pointer-events:all!important;cursor:pointer}.snmt-select-1-15-6.snmt-select-read-only .ant-select{pointer-events:auto!important}.snmt-select-1-15-6.snmt-select-focused fieldset.fieldset-focused:not(.fieldset-disabled):not(.fieldset-error){border-color:var(--blue-primary);border-width:2px}.snmt-select-1-15-6.snmt-select-focused>label.label-floating:not(.label-disabled){color:var(--blue-primary)}.snmt-select-1-15-6>label.label-floating.label-error:not(.label-disabled){color:var(--notification-error-dark)}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--grey-dark-5);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:500!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-dropdown .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-dropdown .rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.dropdown-read-only .rc-virtual-list{pointer-events:none}.dropdown-container{position:relative;display:block}.dropdown-container .dropdown-menu{position:relative;z-index:0}.dropdown-container .loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;background:var(--grey-light-1);opacity:.9;display:flex;align-items:center;justify-content:center;pointer-events:none}.snmt-select-container .snmt-flex{margin-top:6px}.snmt-loader{display:inline-block;aspect-ratio:1;animation:loader 1s infinite linear}@keyframes loader{33%{background-position:0% 50%,50% 100%,100% 100%}50%{background-position:0% 0%,50% 50%,100% 100%}66%{background-position:0% 0%,50% 0%,100% 50%}to{background-position:0% 0%,50% 0%,100% 0%}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snmt-react-ui/city-select",
3
3
  "private": false,
4
- "version": "2.8.21",
4
+ "version": "2.8.23",
5
5
  "type": "module",
6
6
  "main": "dist/city-select.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "build": "tsc && vite build"
19
19
  },
20
20
  "dependencies": {
21
- "@snmt-react-ui/async-select": "^1.10.21",
21
+ "@snmt-react-ui/async-select": "^1.11.1",
22
22
  "@snmt-react-ui/core": "^2.8.1",
23
23
  "i18next": "^23.11.5",
24
24
  "react-i18next": "^14.1.1",
@@ -27,5 +27,5 @@
27
27
  "peerDependencies": {
28
28
  "antd": "^5.22.0"
29
29
  },
30
- "gitHead": "9736ca423dcc8290d01ea7a3b4b58c493988355a"
30
+ "gitHead": "a2a23ce7f77bfdcf9aa395ab8c43b465ad7e73ff"
31
31
  }