@scbt-ecom/ui 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.js CHANGED
@@ -4,7 +4,7 @@ var Rm = (t) => {
4
4
  var xu = (t, e, n) => e.has(t) || Rm("Cannot " + n);
5
5
  var pe = (t, e, n) => (xu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ct = (t, e, n) => e.has(t) ? Rm("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), He = (t, e, n, r) => (xu(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), bt = (t, e, n) => (xu(t, e, "access private method"), n);
6
6
  import { j as A, c as jo, I as We, d as XE, e as vy, f as Rn, u as Ht, g as nr, h as st, i as et, k as us, l as Ac, R as YE, B as ZE, m as Nm, n as ds, o as UE, p as by, A as JE, D as KE, q as qE, r as QE, s as eI, t as tI, v as nI, H as rI, w as iI, x as ia, y as oI, z as yy, E as Cu, F as wu, G as aI, J as sI, K as lI, M as cI, N as uI, a as xy, _ as Li, L as dI } from "./CustomLink-DmCJLTWC.js";
7
- import { C as iU, P as oU, S as aU, b as sU } from "./CustomLink-DmCJLTWC.js";
7
+ import { C as oU, P as aU, S as sU, b as lU } from "./CustomLink-DmCJLTWC.js";
8
8
  import * as j from "react";
9
9
  import te, { forwardRef as ln, createContext as lt, useContext as _e, useState as Re, useEffect as Ge, useMemo as Pe, useCallback as ve, useId as hn, Component as Cy, useLayoutEffect as Bo, useRef as Ce, useInsertionEffect as wy, Fragment as rn, createElement as Sy, Children as fI, isValidElement as ky, cloneElement as pI, useReducer as Ap, useSyncExternalStore as hI, createRef as mI, useDebugValue as Ey, useImperativeHandle as gI, memo as fs } from "react";
10
10
  import { c as $ } from "./cn-DIfn7EPB.js";
@@ -13,6 +13,7 @@ import { c as Tc, C as mn, f as bI, h as ps } from "./useDebounce-m2rLy7nL.js";
13
13
  import * as _d from "react-dom";
14
14
  import yI, { createPortal as Mc, flushSync as fi } from "react-dom";
15
15
  import { t as Mt, c as qn, g as Fm, m as xI, a as Iy, b as Ay, d as CI, e as wI, f as Ty, h as My, j as Oc, i as Oy, l as SI, k as kI, n as EI, w as II, s as Gd, o as Su, q as Yo, r as AI, u as Zo, v as TI, x as MI, z as OI, p as PI } from "./parse-Bv7rNn_R.js";
16
+ import { g as DI } from "./_commonjsHelpers-C6fGbg64.js";
16
17
  function Py(t, e, n) {
17
18
  const r = Mt(t, n == null ? void 0 : n.in);
18
19
  if (isNaN(e)) return qn(t, NaN);
@@ -46,13 +47,13 @@ function Dy(t, e, n) {
46
47
  ), o = Na(r), a = Na(i), s = +o - Fm(o), l = +a - Fm(a);
47
48
  return Math.round((s - l) / xI);
48
49
  }
49
- function DI(t, e, n) {
50
+ function RI(t, e, n) {
50
51
  return Iy(t, e * 7, n);
51
52
  }
52
- function RI(t, e, n) {
53
+ function NI(t, e, n) {
53
54
  return Py(t, e * 12, n);
54
55
  }
55
- function NI(t, e) {
56
+ function FI(t, e) {
56
57
  let n, r = e == null ? void 0 : e.in;
57
58
  return t.forEach((i) => {
58
59
  !r && typeof i == "object" && (r = qn.bind(null, i));
@@ -60,7 +61,7 @@ function NI(t, e) {
60
61
  (!n || n < o || isNaN(+o)) && (n = o);
61
62
  }), qn(r, n || NaN);
62
63
  }
63
- function FI(t, e) {
64
+ function jI(t, e) {
64
65
  let n, r = e == null ? void 0 : e.in;
65
66
  return t.forEach((i) => {
66
67
  !r && typeof i == "object" && (r = qn.bind(null, i));
@@ -68,7 +69,7 @@ function FI(t, e) {
68
69
  (!n || n > o || isNaN(+o)) && (n = o);
69
70
  }), qn(r, n || NaN);
70
71
  }
71
- function jI(t, e, n) {
72
+ function BI(t, e, n) {
72
73
  const [r, i] = Vo(
73
74
  n == null ? void 0 : n.in,
74
75
  t,
@@ -76,7 +77,7 @@ function jI(t, e, n) {
76
77
  );
77
78
  return +Na(r) == +Na(i);
78
79
  }
79
- function BI(t, e, n) {
80
+ function VI(t, e, n) {
80
81
  const [r, i] = Vo(
81
82
  n == null ? void 0 : n.in,
82
83
  t,
@@ -84,15 +85,15 @@ function BI(t, e, n) {
84
85
  ), o = r.getFullYear() - i.getFullYear(), a = r.getMonth() - i.getMonth();
85
86
  return o * 12 + a;
86
87
  }
87
- function VI(t, e) {
88
+ function LI(t, e) {
88
89
  const n = Mt(t, e == null ? void 0 : e.in), r = n.getMonth();
89
90
  return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
90
91
  }
91
- function LI(t, e) {
92
+ function _I(t, e) {
92
93
  const n = Mt(t, e == null ? void 0 : e.in);
93
94
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
94
95
  }
95
- function _I(t, e) {
96
+ function GI(t, e) {
96
97
  const n = Mt(t, e == null ? void 0 : e.in), r = n.getFullYear();
97
98
  return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
98
99
  }
@@ -105,10 +106,10 @@ function Ny(t, e) {
105
106
  const n = Ay(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (s = e == null ? void 0 : e.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, i = Mt(t, e == null ? void 0 : e.in), o = i.getDay(), a = (o < r ? -7 : 0) + 6 - (o - r);
106
107
  return i.setDate(i.getDate() + a), i.setHours(23, 59, 59, 999), i;
107
108
  }
108
- function GI(t, e) {
109
+ function WI(t, e) {
109
110
  return Ny(t, { ...e, weekStartsOn: 1 });
110
111
  }
111
- function WI(t, e) {
112
+ function zI(t, e) {
112
113
  const n = Mt(t, e == null ? void 0 : e.in);
113
114
  return Dy(n, Ry(n)) + 1;
114
115
  }
@@ -351,7 +352,7 @@ const kr = {
351
352
  },
352
353
  // Day of year
353
354
  D: function(t, e, n) {
354
- const r = WI(t);
355
+ const r = zI(t);
355
356
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Qe(r, e.length);
356
357
  },
357
358
  // Day of week
@@ -677,28 +678,28 @@ function ii(t, e = "") {
677
678
  const n = t > 0 ? "-" : "+", r = Math.abs(t), i = Qe(Math.trunc(r / 60), 2), o = Qe(r % 60, 2);
678
679
  return n + i + e + o;
679
680
  }
680
- const zI = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, HI = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $I = /^'([^]*?)'?$/, XI = /''/g, YI = /[a-zA-Z]/;
681
+ const HI = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $I = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, XI = /^'([^]*?)'?$/, YI = /''/g, ZI = /[a-zA-Z]/;
681
682
  function Fy(t, e, n) {
682
683
  var u, d, f, p, h, m, g, v;
683
684
  const r = Ay(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? Oc, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, a = (n == null ? void 0 : n.weekStartsOn) ?? ((m = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : m.weekStartsOn) ?? r.weekStartsOn ?? ((v = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : v.weekStartsOn) ?? 0, s = Mt(t, n == null ? void 0 : n.in);
684
685
  if (!Oy(s))
685
686
  throw new RangeError("Invalid time value");
686
- let l = e.match(HI).map((b) => {
687
+ let l = e.match($I).map((b) => {
687
688
  const w = b[0];
688
689
  if (w === "p" || w === "P") {
689
690
  const y = SI[w];
690
691
  return y(b, i.formatLong);
691
692
  }
692
693
  return b;
693
- }).join("").match(zI).map((b) => {
694
+ }).join("").match(HI).map((b) => {
694
695
  if (b === "''")
695
696
  return { isToken: !1, value: "'" };
696
697
  const w = b[0];
697
698
  if (w === "'")
698
- return { isToken: !1, value: ZI(b) };
699
+ return { isToken: !1, value: UI(b) };
699
700
  if (jm[w])
700
701
  return { isToken: !0, value: b };
701
- if (w.match(YI))
702
+ if (w.match(ZI))
702
703
  throw new RangeError(
703
704
  "Format string contains an unescaped latin alphabet character `" + w + "`"
704
705
  );
@@ -718,18 +719,18 @@ function Fy(t, e, n) {
718
719
  return y(s, w, i.localize, c);
719
720
  }).join("");
720
721
  }
721
- function ZI(t) {
722
- const e = t.match($I);
723
- return e ? e[1].replace(XI, "'") : t;
722
+ function UI(t) {
723
+ const e = t.match(XI);
724
+ return e ? e[1].replace(YI, "'") : t;
724
725
  }
725
- function UI(t, e) {
726
+ function JI(t, e) {
726
727
  const n = Mt(t, e == null ? void 0 : e.in), r = n.getFullYear(), i = n.getMonth(), o = qn(n, 0);
727
728
  return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
728
729
  }
729
- function JI(t, e) {
730
+ function KI(t, e) {
730
731
  return +Mt(t) > +Mt(e);
731
732
  }
732
- function KI(t, e) {
733
+ function qI(t, e) {
733
734
  return +Mt(t) < +Mt(e);
734
735
  }
735
736
  function Lm(t, e, n) {
@@ -740,7 +741,7 @@ function Lm(t, e, n) {
740
741
  );
741
742
  return +Gd(r, n) == +Gd(i, n);
742
743
  }
743
- function qI(t, e, n) {
744
+ function QI(t, e, n) {
744
745
  const [r, i] = Vo(
745
746
  n == null ? void 0 : n.in,
746
747
  t,
@@ -748,7 +749,7 @@ function qI(t, e, n) {
748
749
  );
749
750
  return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
750
751
  }
751
- function QI(t, e, n) {
752
+ function eA(t, e, n) {
752
753
  const [r, i] = Vo(
753
754
  n == null ? void 0 : n.in,
754
755
  t,
@@ -756,19 +757,16 @@ function QI(t, e, n) {
756
757
  );
757
758
  return r.getFullYear() === i.getFullYear();
758
759
  }
759
- function eA(t, e, n) {
760
+ function tA(t, e, n) {
760
761
  const r = Mt(t, n == null ? void 0 : n.in), i = r.getFullYear(), o = r.getDate(), a = qn(t, 0);
761
762
  a.setFullYear(i, e, 15), a.setHours(0, 0, 0, 0);
762
- const s = UI(a);
763
+ const s = JI(a);
763
764
  return r.setMonth(e, Math.min(o, s)), r;
764
765
  }
765
- function tA(t, e, n) {
766
+ function nA(t, e, n) {
766
767
  const r = Mt(t, n == null ? void 0 : n.in);
767
768
  return isNaN(+r) ? qn(t, NaN) : (r.setFullYear(e), r);
768
769
  }
769
- function nA(t) {
770
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
771
- }
772
770
  const rA = jo(
773
771
  "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
774
772
  {
@@ -789,9 +787,9 @@ const rA = jo(
789
787
  size: "lg"
790
788
  }
791
789
  }
792
- ), hZ = ln(
790
+ ), mZ = ln(
793
791
  ({ size: t, intent: e, children: n, classes: r, type: i = "button", ...o }, a) => /* @__PURE__ */ A.jsx("button", { ref: a, type: i, className: $(rA({ intent: e, size: t }), r == null ? void 0 : r.button), ...o, children: /* @__PURE__ */ A.jsx("span", { className: $(r == null ? void 0 : r.icon), children: n }) })
794
- ), mZ = ({ className: t }) => /* @__PURE__ */ A.jsx("div", { className: $("skeleton-apply h-full w-full", t) });
792
+ ), gZ = ({ className: t }) => /* @__PURE__ */ A.jsx("div", { className: $("skeleton-apply h-full w-full", t) });
795
793
  var Te;
796
794
  (function(t) {
797
795
  t.Root = "root", t.Chevron = "chevron", t.Day = "day", t.DayButton = "day_button", t.CaptionLabel = "caption_label", t.Dropdowns = "dropdowns", t.Dropdown = "dropdown", t.DropdownRoot = "dropdown_root", t.Footer = "footer", t.MonthGrid = "month_grid", t.MonthCaption = "month_caption", t.MonthsDropdown = "months_dropdown", t.Month = "month", t.Months = "months", t.Nav = "nav", t.NextMonthButton = "button_next", t.PreviousMonthButton = "button_previous", t.Week = "week", t.Weeks = "weeks", t.Weekday = "weekday", t.Weekdays = "weekdays", t.WeekNumber = "week_number", t.WeekNumberHeader = "week_number_header", t.YearsDropdown = "years_dropdown";
@@ -1387,31 +1385,31 @@ class xr {
1387
1385
  return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(r, i) : Py(r, i);
1388
1386
  }, this.addWeeks = (r, i) => {
1389
1387
  var o;
1390
- return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(r, i) : DI(r, i);
1388
+ return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(r, i) : RI(r, i);
1391
1389
  }, this.addYears = (r, i) => {
1392
1390
  var o;
1393
- return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(r, i) : RI(r, i);
1391
+ return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(r, i) : NI(r, i);
1394
1392
  }, this.differenceInCalendarDays = (r, i) => {
1395
1393
  var o;
1396
1394
  return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, i) : Dy(r, i);
1397
1395
  }, this.differenceInCalendarMonths = (r, i) => {
1398
1396
  var o;
1399
- return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, i) : BI(r, i);
1397
+ return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, i) : VI(r, i);
1400
1398
  }, this.endOfBroadcastWeek = (r) => {
1401
1399
  var i;
1402
1400
  return (i = this.overrides) != null && i.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r, this) : LA(r, this);
1403
1401
  }, this.endOfISOWeek = (r) => {
1404
1402
  var i;
1405
- return (i = this.overrides) != null && i.endOfISOWeek ? this.overrides.endOfISOWeek(r) : GI(r);
1403
+ return (i = this.overrides) != null && i.endOfISOWeek ? this.overrides.endOfISOWeek(r) : WI(r);
1406
1404
  }, this.endOfMonth = (r) => {
1407
1405
  var i;
1408
- return (i = this.overrides) != null && i.endOfMonth ? this.overrides.endOfMonth(r) : VI(r);
1406
+ return (i = this.overrides) != null && i.endOfMonth ? this.overrides.endOfMonth(r) : LI(r);
1409
1407
  }, this.endOfWeek = (r) => {
1410
1408
  var i;
1411
1409
  return (i = this.overrides) != null && i.endOfWeek ? this.overrides.endOfWeek(r, this.options) : Ny(r, this.options);
1412
1410
  }, this.endOfYear = (r) => {
1413
1411
  var i;
1414
- return (i = this.overrides) != null && i.endOfYear ? this.overrides.endOfYear(r) : _I(r);
1412
+ return (i = this.overrides) != null && i.endOfYear ? this.overrides.endOfYear(r) : GI(r);
1415
1413
  }, this.format = (r, i) => {
1416
1414
  var o;
1417
1415
  return (o = this.overrides) != null && o.format ? this.overrides.format(r, i, this.options) : Fy(r, i, this.options);
@@ -1423,34 +1421,34 @@ class xr {
1423
1421
  return (i = this.overrides) != null && i.getWeek ? this.overrides.getWeek(r, this.options) : Ty(r, this.options);
1424
1422
  }, this.isAfter = (r, i) => {
1425
1423
  var o;
1426
- return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(r, i) : JI(r, i);
1424
+ return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(r, i) : KI(r, i);
1427
1425
  }, this.isBefore = (r, i) => {
1428
1426
  var o;
1429
- return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(r, i) : KI(r, i);
1427
+ return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(r, i) : qI(r, i);
1430
1428
  }, this.isDate = (r) => {
1431
1429
  var i;
1432
1430
  return (i = this.overrides) != null && i.isDate ? this.overrides.isDate(r) : TI(r);
1433
1431
  }, this.isSameDay = (r, i) => {
1434
1432
  var o;
1435
- return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(r, i) : jI(r, i);
1433
+ return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(r, i) : BI(r, i);
1436
1434
  }, this.isSameMonth = (r, i) => {
1437
1435
  var o;
1438
- return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(r, i) : qI(r, i);
1436
+ return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(r, i) : QI(r, i);
1439
1437
  }, this.isSameYear = (r, i) => {
1440
1438
  var o;
1441
- return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(r, i) : QI(r, i);
1439
+ return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(r, i) : eA(r, i);
1442
1440
  }, this.max = (r) => {
1443
1441
  var i;
1444
- return (i = this.overrides) != null && i.max ? this.overrides.max(r) : NI(r);
1442
+ return (i = this.overrides) != null && i.max ? this.overrides.max(r) : FI(r);
1445
1443
  }, this.min = (r) => {
1446
1444
  var i;
1447
- return (i = this.overrides) != null && i.min ? this.overrides.min(r) : FI(r);
1445
+ return (i = this.overrides) != null && i.min ? this.overrides.min(r) : jI(r);
1448
1446
  }, this.setMonth = (r, i) => {
1449
1447
  var o;
1450
- return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(r, i) : eA(r, i);
1448
+ return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(r, i) : tA(r, i);
1451
1449
  }, this.setYear = (r, i) => {
1452
1450
  var o;
1453
- return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(r, i) : tA(r, i);
1451
+ return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(r, i) : nA(r, i);
1454
1452
  }, this.startOfBroadcastWeek = (r) => {
1455
1453
  var i;
1456
1454
  return (i = this.overrides) != null && i.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : jy(r, this);
@@ -1462,7 +1460,7 @@ class xr {
1462
1460
  return (i = this.overrides) != null && i.startOfISOWeek ? this.overrides.startOfISOWeek(r) : MI(r);
1463
1461
  }, this.startOfMonth = (r) => {
1464
1462
  var i;
1465
- return (i = this.overrides) != null && i.startOfMonth ? this.overrides.startOfMonth(r) : LI(r);
1463
+ return (i = this.overrides) != null && i.startOfMonth ? this.overrides.startOfMonth(r) : _I(r);
1466
1464
  }, this.startOfWeek = (r) => {
1467
1465
  var i;
1468
1466
  return (i = this.overrides) != null && i.startOfWeek ? this.overrides.startOfWeek(r, this.options) : Gd(r, this.options);
@@ -5337,7 +5335,7 @@ const Jo = {
5337
5335
  function qP(t) {
5338
5336
  Object.assign(kl, t);
5339
5337
  }
5340
- const { schedule: th, cancel: gZ } = Jy(queueMicrotask, !1);
5338
+ const { schedule: th, cancel: vZ } = Jy(queueMicrotask, !1);
5341
5339
  class QP extends Cy {
5342
5340
  /**
5343
5341
  * This only mounts projection nodes for components that
@@ -15461,7 +15459,7 @@ function Hc(t) {
15461
15459
  const e = j.useRef({ value: t, previous: t });
15462
15460
  return j.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
15463
15461
  }
15464
- var xh = "Checkbox", [nB, bZ] = Rn(xh), [rB, iB] = nB(xh), cC = j.forwardRef(
15462
+ var xh = "Checkbox", [nB, yZ] = Rn(xh), [rB, iB] = nB(xh), cC = j.forwardRef(
15465
15463
  (t, e) => {
15466
15464
  const {
15467
15465
  __scopeCheckbox: n,
@@ -15703,7 +15701,7 @@ const aB = ({
15703
15701
  }
15704
15702
  );
15705
15703
  mC.displayName = "SelectBase";
15706
- const yZ = ({ isVisible: t, classes: e, children: n, buttonProps: r }) => /* @__PURE__ */ A.jsxs(
15704
+ const xZ = ({ isVisible: t, classes: e, children: n, buttonProps: r }) => /* @__PURE__ */ A.jsxs(
15707
15705
  YE,
15708
15706
  {
15709
15707
  className: $(
@@ -15716,7 +15714,7 @@ const yZ = ({ isVisible: t, classes: e, children: n, buttonProps: r }) => /* @__
15716
15714
  /* @__PURE__ */ A.jsx(ZE, { size: "lg", className: $("m-auto w-full", e == null ? void 0 : e.button), ...r, children: "Оформить заявку" })
15717
15715
  ]
15718
15716
  }
15719
- ), xZ = ({ text: t, classes: e }) => {
15717
+ ), CZ = ({ text: t, classes: e }) => {
15720
15718
  const [n, r] = j.useState(!1), [i, o] = j.useState(!1), a = j.useRef(null);
15721
15719
  return j.useEffect(() => {
15722
15720
  const s = a.current;
@@ -15889,7 +15887,7 @@ function Cs(t) {
15889
15887
  const e = j.useContext(hB);
15890
15888
  return t || e || "ltr";
15891
15889
  }
15892
- var wr = "Accordion", mB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ah, gB, vB] = wh(wr), [$c, CZ] = Rn(wr, [
15890
+ var wr = "Accordion", mB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ah, gB, vB] = wh(wr), [$c, wZ] = Rn(wr, [
15893
15891
  vB,
15894
15892
  gC
15895
15893
  ]), Th = gC(), CC = te.forwardRef(
@@ -16167,7 +16165,7 @@ var OB = "VisuallyHidden", RC = j.forwardRef(
16167
16165
  )
16168
16166
  );
16169
16167
  RC.displayName = OB;
16170
- var PB = RC, [Yc, wZ] = Rn("Tooltip", [
16168
+ var PB = RC, [Yc, SZ] = Rn("Tooltip", [
16171
16169
  by
16172
16170
  ]), Zc = by(), NC = "TooltipProvider", DB = 700, mf = "tooltip.open", [RB, Oh] = Yc(NC), FC = (t) => {
16173
16171
  const {
@@ -16283,7 +16281,7 @@ var gf = "TooltipTrigger", BC = j.forwardRef(
16283
16281
  }
16284
16282
  );
16285
16283
  BC.displayName = gf;
16286
- var FB = "TooltipPortal", [SZ, jB] = Yc(FB, {
16284
+ var FB = "TooltipPortal", [kZ, jB] = Yc(FB, {
16287
16285
  forceMount: void 0
16288
16286
  }), To = "TooltipContent", VC = j.forwardRef(
16289
16287
  (t, e) => {
@@ -16506,7 +16504,7 @@ const WC = ({
16506
16504
  }
16507
16505
  )
16508
16506
  ] }) }) });
16509
- }, kZ = ({ topContent: t, bottomContent: e, progress: n, maxPercent: r = 100, classes: i }) => /* @__PURE__ */ A.jsxs("div", { className: $("flex w-full flex-col", i == null ? void 0 : i.wrapper), children: [
16507
+ }, EZ = ({ topContent: t, bottomContent: e, progress: n, maxPercent: r = 100, classes: i }) => /* @__PURE__ */ A.jsxs("div", { className: $("flex w-full flex-col", i == null ? void 0 : i.wrapper), children: [
16510
16508
  t && /* @__PURE__ */ A.jsx("div", { className: $("mb-2 flex justify-between gap-5", i == null ? void 0 : i.topContent), children: t }),
16511
16509
  /* @__PURE__ */ A.jsxs("div", { className: $("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", i == null ? void 0 : i.progressBar), children: [
16512
16510
  /* @__PURE__ */ A.jsx(
@@ -16690,7 +16688,7 @@ function YC(t, e = !1) {
16690
16688
  function aV(t, e) {
16691
16689
  return t.map((n, r) => t[(e + r) % t.length]);
16692
16690
  }
16693
- var ZC = HC, UC = XC, Ph = "Tabs", [sV, EZ] = Rn(Ph, [
16691
+ var ZC = HC, UC = XC, Ph = "Tabs", [sV, IZ] = Rn(Ph, [
16694
16692
  qc
16695
16693
  ]), JC = qc(), [lV, Dh] = sV(Ph), KC = j.forwardRef(
16696
16694
  (t, e) => {
@@ -16832,7 +16830,7 @@ function ow(t, e) {
16832
16830
  return `${t}-content-${e}`;
16833
16831
  }
16834
16832
  var cV = KC, uV = QC, dV = tw, _v = rw;
16835
- const IZ = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
16833
+ const AZ = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeTab: r, classes: i }) => {
16836
16834
  var o, a;
16837
16835
  return /* @__PURE__ */ A.jsxs(
16838
16836
  cV,
@@ -16878,7 +16876,7 @@ const IZ = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeT
16878
16876
  className: $("size-8 cursor-pointer text-icon-dark-hover", n == null ? void 0 : n.icon)
16879
16877
  }
16880
16878
  )
16881
- ] }), AZ = ({
16879
+ ] }), TZ = ({
16882
16880
  title: t,
16883
16881
  children: e,
16884
16882
  isModalOpen: n,
@@ -17329,7 +17327,7 @@ const iL = jo(
17329
17327
  default:
17330
17328
  return null;
17331
17329
  }
17332
- }, Ca = (t) => oL(t), TZ = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
17330
+ }, Ca = (t) => oL(t), MZ = ({ maxToastViewLimit: t = 2, toastDuration: e = 5e3 }) => {
17333
17331
  const { toasts: n } = cw();
17334
17332
  return Ge(() => {
17335
17333
  n.filter((r) => r.visible).filter((r, i) => i >= t).forEach((r) => Rl.dismiss(r.id));
@@ -17342,7 +17340,7 @@ const iL = jo(
17342
17340
  }
17343
17341
  }
17344
17342
  );
17345
- }, MZ = ({ linksList: t }) => /* @__PURE__ */ A.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: t.map((e) => /* @__PURE__ */ A.jsx(A.Fragment, { children: "path" in e ? /* @__PURE__ */ A.jsxs(
17343
+ }, OZ = ({ linksList: t }) => /* @__PURE__ */ A.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: t.map((e) => /* @__PURE__ */ A.jsx(A.Fragment, { children: "path" in e ? /* @__PURE__ */ A.jsxs(
17346
17344
  "div",
17347
17345
  {
17348
17346
  className: $(
@@ -17385,7 +17383,7 @@ const iL = jo(
17385
17383
  }), sL = {
17386
17384
  filled: "files/documentFilled",
17387
17385
  outline: "files/documentOutline"
17388
- }, OZ = ({ text: t, size: e, sizeType: n, href: r, intent: i = "outline" }) => /* @__PURE__ */ A.jsxs(
17386
+ }, PZ = ({ text: t, size: e, sizeType: n, href: r, intent: i = "outline" }) => /* @__PURE__ */ A.jsxs(
17389
17387
  "a",
17390
17388
  {
17391
17389
  href: r,
@@ -17419,7 +17417,7 @@ const iL = jo(
17419
17417
  }
17420
17418
  ),
17421
17419
  /* @__PURE__ */ A.jsx("span", { children: r !== t.length - 1 && "+" })
17422
- ] }, r)) }), PZ = ({
17420
+ ] }, r)) }), DZ = ({
17423
17421
  label: t,
17424
17422
  helperText: e,
17425
17423
  control: n,
@@ -18189,7 +18187,7 @@ const BL = (t, e) => ({ onValueChange: ({ inputValue: a, onChange: s, source: l
18189
18187
  s(!0), t != null && t.customFocus && (t == null || t.customFocus(a));
18190
18188
  }, onBlur: ({ event: a, setShowMask: s, hookFormBlur: l }) => {
18191
18189
  l(), s(!1), t != null && t.customFocus && (t == null || t.customFocus(a));
18192
- } }), DZ = ({
18190
+ } }), RZ = ({
18193
18191
  format: t,
18194
18192
  allowEmptyFormatting: e = !1,
18195
18193
  mask: n,
@@ -18275,7 +18273,7 @@ const BL = (t, e) => ({ onValueChange: ({ inputValue: a, onChange: s, source: l
18275
18273
  ] })
18276
18274
  }
18277
18275
  );
18278
- }, RZ = ({
18276
+ }, NZ = ({
18279
18277
  control: t,
18280
18278
  label: e,
18281
18279
  helperText: n,
@@ -18352,7 +18350,7 @@ const BL = (t, e) => ({ onValueChange: ({ inputValue: a, onChange: s, source: l
18352
18350
  }
18353
18351
  );
18354
18352
  };
18355
- var Fh = "Switch", [VL, NZ] = Rn(Fh), [LL, _L] = VL(Fh), xw = j.forwardRef(
18353
+ var Fh = "Switch", [VL, FZ] = Rn(Fh), [LL, _L] = VL(Fh), xw = j.forwardRef(
18356
18354
  (t, e) => {
18357
18355
  const {
18358
18356
  __scopeSwitch: n,
@@ -18454,7 +18452,7 @@ function Sw(t) {
18454
18452
  return t ? "checked" : "unchecked";
18455
18453
  }
18456
18454
  var WL = xw, zL = ww;
18457
- const FZ = ({
18455
+ const jZ = ({
18458
18456
  disabled: t,
18459
18457
  classes: e,
18460
18458
  control: n,
@@ -18518,7 +18516,7 @@ const FZ = ({
18518
18516
  ] })
18519
18517
  }
18520
18518
  );
18521
- }, jZ = ({
18519
+ }, BZ = ({
18522
18520
  label: t,
18523
18521
  helperText: e,
18524
18522
  control: n,
@@ -22084,7 +22082,7 @@ const yG = (t, e) => {
22084
22082
  ) })
22085
22083
  }
22086
22084
  );
22087
- }, LZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "fio", ...t }), _Z = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "auto", ...t }), GZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "country", ...t }), WZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "address", ...t }), zZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "party", ...t }), kG = (t, e, n) => ({
22085
+ }, _Z = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "fio", ...t }), GZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "auto", ...t }), WZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "country", ...t }), zZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "address", ...t }), HZ = ({ ...t }) => /* @__PURE__ */ A.jsx(Ms, { dadataType: "party", ...t }), kG = (t, e, n) => ({
22088
22086
  dropdownIndicator: () => $("absolute top-1/2 right-4 !p-0 -translate-y-1/2", n == null ? void 0 : n.dropdownIndicator),
22089
22087
  indicatorsContainer: () => $("", n == null ? void 0 : n.indicatorsContainer),
22090
22088
  input: () => $(
@@ -22155,7 +22153,7 @@ const yG = (t, e) => {
22155
22153
  t == null ? void 0 : t.indicatorIcon
22156
22154
  )
22157
22155
  }
22158
- ) }), AG = ({ classes: t, ...e }) => /* @__PURE__ */ A.jsx(Wo.MultiValueRemove, { ...e, children: /* @__PURE__ */ A.jsx(We, { name: "general/close", className: $("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), HZ = ({
22156
+ ) }), AG = ({ classes: t, ...e }) => /* @__PURE__ */ A.jsx(Wo.MultiValueRemove, { ...e, children: /* @__PURE__ */ A.jsx(We, { name: "general/close", className: $("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), $Z = ({
22159
22157
  options: t,
22160
22158
  control: e,
22161
22159
  defaultValue: n,
@@ -22272,7 +22270,7 @@ var uS = ["PageUp", "PageDown"], dS = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
22272
22270
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
22273
22271
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
22274
22272
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
22275
- }, Ho = "Slider", [_f, DG, RG] = wh(Ho), [pS, $Z] = Rn(Ho, [
22273
+ }, Ho = "Slider", [_f, DG, RG] = wh(Ho), [pS, XZ] = Rn(Ho, [
22276
22274
  RG
22277
22275
  ]), [NG, iu] = pS(Ho), Zh = j.forwardRef(
22278
22276
  (t, e) => {
@@ -22704,7 +22702,7 @@ const JG = j.forwardRef(
22704
22702
  ) })
22705
22703
  );
22706
22704
  Zh.displayName = wS.displayName;
22707
- const XZ = ({
22705
+ const YZ = ({
22708
22706
  label: t,
22709
22707
  size: e = "full",
22710
22708
  helperText: n,
@@ -38212,7 +38210,7 @@ const fE = dE(!1, !0), pE = dE(!0, !0), OX = $t.create({
38212
38210
  }
38213
38211
  )
38214
38212
  ] }) : null;
38215
- }, ZZ = ({
38213
+ }, UZ = ({
38216
38214
  control: t,
38217
38215
  label: e,
38218
38216
  helperText: n,
@@ -38943,7 +38941,7 @@ if (process.env.NODE_ENV !== "production") {
38943
38941
  } else
38944
38942
  Cp.exports = uY()();
38945
38943
  var pY = Cp.exports;
38946
- const tt = /* @__PURE__ */ nA(pY), hY = /* @__PURE__ */ new Map([
38944
+ const tt = /* @__PURE__ */ DI(pY), hY = /* @__PURE__ */ new Map([
38947
38945
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
38948
38946
  ["1km", "application/vnd.1000minds.decision-model+xml"],
38949
38947
  ["3dml", "text/vnd.in3d.3dml"],
@@ -41150,7 +41148,7 @@ const s6 = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
41150
41148
  ] }),
41151
41149
  /* @__PURE__ */ A.jsx(u6, { classes: s, filesStatus: u, removeFile: d, controlledFiles: n })
41152
41150
  ] });
41153
- }), UZ = ({
41151
+ }), JZ = ({
41154
41152
  control: t,
41155
41153
  disabled: e,
41156
41154
  helperText: n,
@@ -41275,7 +41273,7 @@ var m6 = (t) => {
41275
41273
  function DE(t) {
41276
41274
  return t ? "checked" : "unchecked";
41277
41275
  }
41278
- var g6 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Pm = "RadioGroup", [v6, JZ] = Rn(Pm, [
41276
+ var g6 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Pm = "RadioGroup", [v6, KZ] = Rn(Pm, [
41279
41277
  qc,
41280
41278
  TE
41281
41279
  ]), RE = qc(), NE = TE(), [b6, y6] = v6(Pm), FE = j.forwardRef(
@@ -41442,7 +41440,7 @@ const k6 = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ A.j
41442
41440
  defaultVariants: {
41443
41441
  orientation: "vertical"
41444
41442
  }
41445
- }), KZ = ({
41443
+ }), qZ = ({
41446
41444
  radioItemsGroup: t,
41447
41445
  control: e,
41448
41446
  groupName: n,
@@ -41573,7 +41571,7 @@ const k6 = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ A.j
41573
41571
  r.engName
41574
41572
  ))
41575
41573
  }
41576
- ), qZ = ({
41574
+ ), QZ = ({
41577
41575
  label: t,
41578
41576
  size: e = "full",
41579
41577
  helperText: n,
@@ -41862,7 +41860,7 @@ const $E = ln(({ index: t, classes: e, ...n }, r) => {
41862
41860
  );
41863
41861
  });
41864
41862
  $E.displayName = "InputOTPSlot";
41865
- const QZ = ({
41863
+ const eU = ({
41866
41864
  control: t,
41867
41865
  inputLength: e = 4,
41868
41866
  classes: n,
@@ -41893,7 +41891,7 @@ const QZ = ({
41893
41891
  ] })
41894
41892
  }
41895
41893
  );
41896
- }, eU = () => /* @__PURE__ */ A.jsx("div", { className: "", children: "Form example" }), H6 = ({
41894
+ }, tU = () => /* @__PURE__ */ A.jsx("div", { className: "", children: "Form example" }), H6 = ({
41897
41895
  control: t,
41898
41896
  classes: e,
41899
41897
  className: n,
@@ -42176,58 +42174,58 @@ const iZ = ({
42176
42174
  ),
42177
42175
  h && /* @__PURE__ */ A.jsx("p", { className: $("desk-body-regular-m text-color-negative", g), children: h.message })
42178
42176
  ] });
42179
- }, oZ = fs(iZ), tU = { InputControl: eZ, MaskInputControl: nZ, DayPickerControl: q6, CheckboxControl: $6, SelectControl: oZ };
42177
+ }, oZ = fs(iZ), nU = { InputControl: eZ, MaskInputControl: nZ, DayPickerControl: q6, CheckboxControl: $6, SelectControl: oZ };
42180
42178
  export {
42181
42179
  MB as Accordion,
42182
42180
  XE as Badge,
42183
- MZ as Breadcrumbs,
42181
+ OZ as Breadcrumbs,
42184
42182
  ZE as Button,
42185
- hZ as ButtonIcon,
42183
+ mZ as ButtonIcon,
42186
42184
  qR as Calendar,
42187
42185
  Ch as CheckboxBase,
42188
- RZ as CheckboxControl,
42189
- HZ as ComboboxControl,
42190
- tU as Controlled,
42191
- iU as CustomLink,
42186
+ NZ as CheckboxControl,
42187
+ $Z as ComboboxControl,
42188
+ nU as Controlled,
42189
+ oU as CustomLink,
42192
42190
  lv as DATE_VISIBLE_PATTERN,
42193
- WZ as DadataAddress,
42194
- _Z as DadataAuto,
42195
- GZ as DadataCountry,
42196
- LZ as DadataFio,
42197
- zZ as DadataOrganization,
42198
- OZ as Document,
42199
- ZZ as EditorControl,
42200
- yZ as FloatButton,
42201
- eU as FormControl,
42191
+ zZ as DadataAddress,
42192
+ GZ as DadataAuto,
42193
+ WZ as DadataCountry,
42194
+ _Z as DadataFio,
42195
+ HZ as DadataOrganization,
42196
+ PZ as Document,
42197
+ UZ as EditorControl,
42198
+ xZ as FloatButton,
42199
+ tU as FormControl,
42202
42200
  rI as Heading,
42203
42201
  WC as Hint,
42204
42202
  We as Icon,
42205
42203
  Lc as InputBase,
42206
- PZ as InputControl,
42207
- DZ as InputControlMask,
42208
- qZ as InputCurrencyControl,
42209
- QZ as InputOtpControl,
42204
+ DZ as InputControl,
42205
+ RZ as InputControlMask,
42206
+ QZ as InputCurrencyControl,
42207
+ eU as InputOtpControl,
42210
42208
  lL as KeyboardShortcuts,
42211
- xZ as Ligal,
42209
+ CZ as Ligal,
42212
42210
  dI as Loader,
42213
42211
  dh as MaskInput,
42214
- AZ as Modal,
42212
+ TZ as Modal,
42215
42213
  Ca as Notification,
42216
- TZ as NotificationProvider,
42217
- oU as PhoneView,
42214
+ MZ as NotificationProvider,
42215
+ aU as PhoneView,
42218
42216
  xy as Popover,
42219
- kZ as ProgressBar,
42220
- KZ as RadioControl,
42217
+ EZ as ProgressBar,
42218
+ qZ as RadioControl,
42221
42219
  YE as ResponsiveContainer,
42222
- aU as Section,
42220
+ sU as Section,
42223
42221
  mC as SelectBase,
42224
- mZ as Skeleton,
42225
- XZ as SliderControl,
42226
- FZ as SwitchControl,
42227
- IZ as TabsSwitcher,
42228
- jZ as TextareaControl,
42229
- UZ as UploaderControl,
42230
- sU as brandLogos,
42222
+ gZ as Skeleton,
42223
+ YZ as SliderControl,
42224
+ jZ as SwitchControl,
42225
+ AZ as TabsSwitcher,
42226
+ BZ as TextareaControl,
42227
+ JZ as UploaderControl,
42228
+ lU as brandLogos,
42231
42229
  Ji as defaultClassNames,
42232
42230
  Vu as formatDateToLocaleString,
42233
42231
  w1 as formatDateToMonthString,