alex-evo-sh-ui-kit 1.1.77 → 1.1.78

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.
@@ -1,4 +1,4 @@
1
- import ce, { useCallback as N, useState as k, useEffect as I, createContext as un, useContext as $e, useRef as U, useMemo as ge, forwardRef as Re, useLayoutEffect as cr, useId as tt, memo as dr, useImperativeHandle as ur } from "react";
1
+ import ce, { useEffect as I, useState as k, useRef as U, useCallback as N, createContext as un, useContext as $e, useMemo as ge, forwardRef as Re, useLayoutEffect as cr, useId as tt, memo as dr, useImperativeHandle as ur } from "react";
2
2
  import hr from "react-dom";
3
3
  import { NavLink as Sn } from "react-router-dom";
4
4
  import './index.css';var wn = { exports: {} }, Ye = {};
@@ -682,7 +682,118 @@ const rt = (n) => /* @__PURE__ */ e.jsx(
682
682
  large: "btn--large"
683
683
  };
684
684
  return /* @__PURE__ */ e.jsx("button", { ...t, className: (t.className ?? "") + " btn " + s[n], onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: t.children }) });
685
- }, We = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(rt, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(be, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(mr, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(jr, { ...t }) : /* @__PURE__ */ e.jsx(Qe, { ...t });
685
+ }, We = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(rt, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(be, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(mr, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(jr, { ...t }) : /* @__PURE__ */ e.jsx(Qe, { ...t }), st = (n, t) => {
686
+ I(() => {
687
+ if (n) {
688
+ const r = window.innerWidth - document.documentElement.clientWidth;
689
+ t.style.overflow = "hidden", t.style.paddingRight = `${r}px`;
690
+ } else
691
+ t.style.overflow = "", t.style.paddingRight = "";
692
+ return () => {
693
+ t.style.overflow = "", t.style.paddingRight = "";
694
+ };
695
+ }, [n]);
696
+ };
697
+ var ae = /* @__PURE__ */ ((n) => (n.MOBILE = "MOBILE", n.STANDART = "STANDART", n.BIG_SCREEN = "BIG_SCREEN", n))(ae || {});
698
+ const hn = ({ children: n, onHide: t, disableBackplate: r }) => {
699
+ function s(i) {
700
+ i.stopPropagation(), t && t();
701
+ }
702
+ return /* @__PURE__ */ e.jsxs(
703
+ "div",
704
+ {
705
+ className: `modal-template ${r ? "modal-template_z_0" : ""}`,
706
+ children: [
707
+ /* @__PURE__ */ e.jsx(
708
+ "div",
709
+ {
710
+ onClick: s,
711
+ className: `modal-template__backplate ${r ? "modal-template__backplate_disable" : ""}`
712
+ }
713
+ ),
714
+ n
715
+ ]
716
+ }
717
+ );
718
+ }, it = ({ bottom: n = 0, ...t }) => {
719
+ const [r, s] = k(!1), [i, o] = k(!0), l = U(null), c = N(() => {
720
+ s(!0), setTimeout(() => {
721
+ t.onHide(), s(!1), o(!0);
722
+ }, 200);
723
+ }, [t.onHide]);
724
+ I(() => {
725
+ t.visible && o(!1);
726
+ }, [t.visible]), I(() => {
727
+ !t.visible && !i && c();
728
+ }, [t.visible, c, i]);
729
+ const a = N((f) => {
730
+ window.innerHeight - f.changedTouches[0].clientY <= 150 && c(), l.current && (l.current.style.height = `${window.innerHeight - f.changedTouches[0].clientY + 20 - n}px`);
731
+ }, [c]), d = (f) => {
732
+ window.innerHeight - f.clientY + 20 <= 150 && c(), l.current && (l.current.style.height = `${window.innerHeight - f.clientY + 20 - n}px`);
733
+ }, u = () => {
734
+ document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
735
+ }, x = () => {
736
+ document.body.addEventListener("mousemove", d), document.body.addEventListener("mouseup", u);
737
+ };
738
+ return I(() => () => {
739
+ document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
740
+ }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(hn, { onHide: c, children: /* @__PURE__ */ e.jsxs("div", { ref: l, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
741
+ /* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: x, onTouchMove: a, children: /* @__PURE__ */ e.jsx("span", {}) }),
742
+ /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets__content", children: t.children })
743
+ ] }) });
744
+ };
745
+ const ot = {
746
+ [ae.MOBILE]: "small-screen",
747
+ [ae.STANDART]: "standart-screen",
748
+ [ae.BIG_SCREEN]: "big-screen"
749
+ }, at = (n, t = ae.STANDART) => `var(--${n}-${ot[t]})`, lt = (n, t = "standart") => `var(--${n}-${t})`, ct = (n, t = "normal", r = ae.STANDART) => `var(--${n}-heights-${ot[r]}-${t})`, Pe = {
750
+ mobileSize: 720,
751
+ bigSize: 1400
752
+ }, pr = (n = {}) => {
753
+ const t = {
754
+ bigSize: n.bigSize ?? Pe.bigSize,
755
+ mobileSize: n.mobileSize ?? Pe.mobileSize
756
+ };
757
+ t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = Pe.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = Pe.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = Pe.mobileSize, t.bigSize = Pe.bigSize);
758
+ const [r, s] = k(ae.STANDART), i = N(() => {
759
+ window.innerWidth < t.mobileSize ? s(ae.MOBILE) : window.innerWidth < t.bigSize ? s(ae.STANDART) : s(ae.BIG_SCREEN);
760
+ }, [window.innerWidth]);
761
+ return I(() => {
762
+ i();
763
+ }, [i]), I(() => (window.addEventListener("resize", i), () => {
764
+ window.removeEventListener("resize", i);
765
+ }), [i]), { screen: r };
766
+ }, Cr = {
767
+ screen: ae.STANDART
768
+ }, Ge = un(Cr), bi = ({ children: n, option: t }) => {
769
+ const r = pr(t);
770
+ return /* @__PURE__ */ e.jsx(Ge.Provider, { value: r, children: n });
771
+ }, K = ({
772
+ type: n,
773
+ screensize: t = ae.STANDART,
774
+ weight: r = "standart",
775
+ density: s = "normal",
776
+ children: i,
777
+ style: o,
778
+ className: l = "",
779
+ ...c
780
+ }) => {
781
+ const a = $e(Ge), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", x = u ? "h3" : "span", f = {
782
+ fontSize: at(n, d),
783
+ fontWeight: lt(n, r),
784
+ lineHeight: ct(n, s, d),
785
+ ...o
786
+ }, m = u ? "typography-heading" : "typography-text";
787
+ return /* @__PURE__ */ e.jsx(
788
+ x,
789
+ {
790
+ ...c,
791
+ style: f,
792
+ className: `${m} ${l}`,
793
+ children: i
794
+ }
795
+ );
796
+ };
686
797
  const ye = ce.forwardRef(
687
798
  ({
688
799
  icon: n,
@@ -749,7 +860,7 @@ function T(n) {
749
860
  tertiaryColor: n.tertiaryColor ?? n.baseColor ?? "var(--icon-tertiary)"
750
861
  };
751
862
  }
752
- const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} icon-trash`, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--Error-color)", fill: "none", d: "M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), ke = (n) => /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e.jsxs("g", { id: "Close", children: [
863
+ const dt = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} icon-trash`, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--Error-color)", fill: "none", d: "M18 6L17.1991 18.0129C17.129 19.065 17.0939 19.5911 16.8667 19.99C16.6666 20.3412 16.3648 20.6235 16.0011 20.7998C15.588 21 15.0607 21 14.0062 21H9.99377C8.93927 21 8.41202 21 7.99889 20.7998C7.63517 20.6235 7.33339 20.3412 7.13332 19.99C6.90607 19.5911 6.871 19.065 6.80086 18.0129L6 6M4 6H20M16 6L15.7294 5.18807C15.4671 4.40125 15.3359 4.00784 15.0927 3.71698C14.8779 3.46013 14.6021 3.26132 14.2905 3.13878C13.9376 3 13.523 3 12.6936 3H11.3064C10.477 3 10.0624 3 9.70951 3.13878C9.39792 3.26132 9.12208 3.46013 8.90729 3.71698C8.66405 4.00784 8.53292 4.40125 8.27064 5.18807L8 6", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), ke = (n) => /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e.jsxs("g", { id: "Close", children: [
753
864
  /* @__PURE__ */ e.jsx("rect", { id: "Rectangle", fillRule: "nonzero", x: "0", y: "0", width: "24", height: "24" }),
754
865
  /* @__PURE__ */ e.jsx("line", { x1: "16.9999", y1: "7", x2: "7.00001", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" }),
755
866
  /* @__PURE__ */ e.jsx("line", { x1: "7.00006", y1: "7", x2: "17", y2: "16.9999", id: "Path", stroke: "var(--On-surface-color)", strokeWidth: "2", strokeLinecap: "round" })
@@ -767,7 +878,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
767
878
  " "
768
879
  ] })
769
880
  ] });
770
- }, it = (n) => {
881
+ }, ut = (n) => {
771
882
  const t = T(n);
772
883
  return /* @__PURE__ */ e.jsx(E, { ...n, dpi: "512", children: /* @__PURE__ */ e.jsxs("g", { style: { width: "100%" }, children: [
773
884
  /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: `M133.977,245.743c4.662,1.718,9.756,2.564,15.006,2.315c7.873-0.355,15.159-3.118,21.05-7.512
@@ -823,7 +934,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
823
934
  c3.6,0,7.214-0.081,10.848-0.255c31.087-1.438,60.913-8.926,88.644-22.258c26.736-12.846,50.478-30.598,70.567-52.762
824
935
  C466.998,391.463,488.499,332.501,486.476,270.708z` })
825
936
  ] }) });
826
- }, ot = (n) => {
937
+ }, ht = (n) => {
827
938
  const t = T(n);
828
939
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
829
940
  /* @__PURE__ */ e.jsx("path", { stroke: t.primaryColor, fill: "none", d: "M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12Z", strokeWidth: "1.5" }),
@@ -843,10 +954,10 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
843
954
  ] }), cn = (n) => {
844
955
  const t = T(n);
845
956
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, fillRule: "evenodd", clipRule: "evenodd", d: "M5 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zm14 0a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zM13.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0z" }) });
846
- }, at = (n) => {
957
+ }, ft = (n) => {
847
958
  const t = T(n);
848
959
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, fillRule: "evenodd", clipRule: "evenodd", d: "M12 6.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zm0 14a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5zM13.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0z" }) });
849
- }, lt = (n) => {
960
+ }, xt = (n) => {
850
961
  const t = T(n);
851
962
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "52", children: [
852
963
  /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M50,12.5H2a2,2,0,0,1,0-4H50a2,2,0,0,1,0,4Z" }),
@@ -864,7 +975,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
864
975
  " "
865
976
  ] })
866
977
  ] });
867
- }, pr = (n) => {
978
+ }, _r = (n) => {
868
979
  const t = T(n);
869
980
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "24", children: [
870
981
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -875,7 +986,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
875
986
  " "
876
987
  ] })
877
988
  ] });
878
- }, Cr = (n) => {
989
+ }, vr = (n) => {
879
990
  const t = T(n);
880
991
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "24", children: [
881
992
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -889,7 +1000,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
889
1000
  }, $n = (n) => /* @__PURE__ */ e.jsxs(E, { ...n, children: [
890
1001
  /* @__PURE__ */ e.jsx("path", { fill: "none", stroke: "var(--On-surface-color)", fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 11.1455C5.49956 8.21437 7.56975 5.69108 10.4445 5.11883C13.3193 4.54659 16.198 6.08477 17.32 8.79267C18.4421 11.5006 17.495 14.624 15.058 16.2528C12.621 17.8815 9.37287 17.562 7.3 15.4895C6.14763 14.3376 5.50014 12.775 5.5 11.1455Z", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
891
1002
  /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M15.989 15.4905L19.5 19.0015", stroke: "var(--On-surface-color)", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
892
- ] }), _r = (n) => {
1003
+ ] }), gr = (n) => {
893
1004
  const { primaryColor: t, secondaryColor: r } = T(n);
894
1005
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
895
1006
  /* @__PURE__ */ e.jsx("g", { stroke: "none", strokeWidth: "0" }),
@@ -962,16 +1073,16 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
962
1073
  )
963
1074
  ] })
964
1075
  ] });
965
- }, Rn = (n) => /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M8 12H16M12 8V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), hn = (n) => {
1076
+ }, Rn = (n) => /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { stroke: "var(--On-surface-color)", fill: "none", d: "M8 12H16M12 8V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), fn = (n) => {
966
1077
  const t = T(n);
967
1078
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
968
1079
  /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M16 12L12 12L8 12", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round" }),
969
1080
  /* @__PURE__ */ e.jsx("circle", { fill: "none", cx: "12", cy: "12", r: "10", stroke: t.primaryColor, strokeWidth: "2" })
970
1081
  ] });
971
- }, ct = (n) => {
1082
+ }, mt = (n) => {
972
1083
  const t = T(n);
973
1084
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", stroke: t.primaryColor, d: "M15.4998 5.49994L18.3282 8.32837M3 20.9997L3.04745 20.6675C3.21536 19.4922 3.29932 18.9045 3.49029 18.3558C3.65975 17.8689 3.89124 17.4059 4.17906 16.9783C4.50341 16.4963 4.92319 16.0765 5.76274 15.237L17.4107 3.58896C18.1918 2.80791 19.4581 2.80791 20.2392 3.58896C21.0202 4.37001 21.0202 5.63634 20.2392 6.41739L8.37744 18.2791C7.61579 19.0408 7.23497 19.4216 6.8012 19.7244C6.41618 19.9932 6.00093 20.2159 5.56398 20.3879C5.07171 20.5817 4.54375 20.6882 3.48793 20.9012L3 20.9997Z", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
974
- }, dt = (n) => {
1085
+ }, jt = (n) => {
975
1086
  const t = T(n);
976
1087
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
977
1088
  /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M7 9C7 9.55229 6.55229 10 6 10C5.44772 10 5 9.55229 5 9C5 8.44772 5.44772 8 6 8C6.55229 8 7 8.44772 7 9Z" }),
@@ -986,16 +1097,16 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
986
1097
  /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, d: "M19 12C19 12.5523 18.5523 13 18 13C17.4477 13 17 12.5523 17 12C17 11.4477 17.4477 11 18 11C18.5523 11 19 11.4477 19 12Z" }),
987
1098
  /* @__PURE__ */ e.jsx("path", { fill: t.primaryColor, fillRule: "evenodd", clipRule: "evenodd", d: "M7.94513 4.25H16.0549C17.4225 4.24998 18.5248 4.24996 19.3918 4.36652C20.2919 4.48754 21.0497 4.74643 21.6517 5.34835C22.2536 5.95027 22.5125 6.70814 22.6335 7.60825C22.75 8.47522 22.75 9.57754 22.75 10.9451V13.0549C22.75 14.4225 22.75 15.5248 22.6335 16.3918C22.5125 17.2919 22.2536 18.0497 21.6517 18.6517C21.0497 19.2536 20.2919 19.5125 19.3918 19.6335C18.5248 19.75 17.4225 19.75 16.0549 19.75H7.94513C6.57754 19.75 5.47522 19.75 4.60825 19.6335C3.70814 19.5125 2.95027 19.2536 2.34835 18.6517C1.74643 18.0497 1.48754 17.2919 1.36652 16.3918C1.24996 15.5248 1.24998 14.4225 1.25 13.0549V10.9451C1.24998 9.57754 1.24996 8.47522 1.36652 7.60825C1.48754 6.70814 1.74643 5.95027 2.34835 5.34835C2.95027 4.74643 3.70814 4.48754 4.60825 4.36652C5.47522 4.24996 6.57754 4.24998 7.94513 4.25ZM4.80812 5.85315C4.07435 5.9518 3.68577 6.13225 3.40901 6.40901C3.13225 6.68577 2.9518 7.07435 2.85315 7.80812C2.75159 8.56347 2.75 9.56458 2.75 11V13C2.75 14.4354 2.75159 15.4365 2.85315 16.1919C2.9518 16.9257 3.13225 17.3142 3.40901 17.591C3.68577 17.8678 4.07435 18.0482 4.80812 18.1469C5.56347 18.2484 6.56458 18.25 8 18.25H16C17.4354 18.25 18.4365 18.2484 19.1919 18.1469C19.9257 18.0482 20.3142 17.8678 20.591 17.591C20.8678 17.3142 21.0482 16.9257 21.1469 16.1919C21.2484 15.4365 21.25 14.4354 21.25 13V11C21.25 9.56459 21.2484 8.56347 21.1469 7.80812C21.0482 7.07435 20.8678 6.68577 20.591 6.40901C20.3142 6.13225 19.9257 5.9518 19.1919 5.85315C18.4365 5.75159 17.4354 5.75 16 5.75H8C6.56458 5.75 5.56347 5.75159 4.80812 5.85315ZM6.25 16C6.25 15.5858 6.58579 15.25 7 15.25H17C17.4142 15.25 17.75 15.5858 17.75 16C17.75 16.4142 17.4142 16.75 17 16.75H7C6.58579 16.75 6.25 16.4142 6.25 16Z" })
988
1099
  ] });
989
- }, ut = (n) => {
1100
+ }, pt = (n) => {
990
1101
  const t = T(n);
991
1102
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M6 12H18M12 6V18", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
992
- }, ht = (n) => {
1103
+ }, Ct = (n) => {
993
1104
  const t = T(n);
994
1105
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { d: "M6 12L18 12", fill: "none", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
995
- }, vr = (n) => {
1106
+ }, br = (n) => {
996
1107
  const t = T(n);
997
1108
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsx("path", { fill: "none", d: "M17 9V12C17 14.7614 14.7614 17 12 17M7 9V12C7 14.7614 9.23858 17 12 17M12 17V21M8 3V6M16 3V6M5 9H19", stroke: t.primaryColor, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
998
- }, gr = (n) => {
1109
+ }, yr = (n) => {
999
1110
  const { primaryColor: t } = T(n);
1000
1111
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1001
1112
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1043,7 +1154,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1043
1154
  )
1044
1155
  ] })
1045
1156
  ] });
1046
- }, br = (n) => {
1157
+ }, kr = (n) => {
1047
1158
  const { primaryColor: t } = T(n);
1048
1159
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1049
1160
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1076,7 +1187,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1076
1187
  }
1077
1188
  ) })
1078
1189
  ] });
1079
- }, yr = (n) => {
1190
+ }, Nr = (n) => {
1080
1191
  const { primaryColor: t } = T(n);
1081
1192
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1082
1193
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1087,7 +1198,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1087
1198
  " "
1088
1199
  ] })
1089
1200
  ] });
1090
- }, kr = (n) => {
1201
+ }, wr = (n) => {
1091
1202
  const { primaryColor: t, secondaryColor: r } = T(n);
1092
1203
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1093
1204
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1145,7 +1256,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1145
1256
  )
1146
1257
  ] })
1147
1258
  ] });
1148
- }, Nr = (n) => {
1259
+ }, Sr = (n) => {
1149
1260
  const { primaryColor: t, secondaryColor: r } = T(n);
1150
1261
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsxs("g", { id: "SVGRepo_iconCarrier", children: [
1151
1262
  /* @__PURE__ */ e.jsx(
@@ -1180,7 +1291,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1180
1291
  }
1181
1292
  )
1182
1293
  ] }) });
1183
- }, wr = (n) => {
1294
+ }, Mr = (n) => {
1184
1295
  const { primaryColor: t, secondaryColor: r } = T(n);
1185
1296
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1186
1297
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1232,7 +1343,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1232
1343
  )
1233
1344
  ] })
1234
1345
  ] });
1235
- }, Sr = (n) => {
1346
+ }, Lr = (n) => {
1236
1347
  const { primaryColor: t, secondaryColor: r } = T(n);
1237
1348
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1238
1349
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1296,7 +1407,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1296
1407
  )
1297
1408
  ] })
1298
1409
  ] });
1299
- }, Mr = (n) => {
1410
+ }, $r = (n) => {
1300
1411
  const { primaryColor: t, secondaryColor: r } = T(n);
1301
1412
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1302
1413
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1352,7 +1463,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1352
1463
  )
1353
1464
  ] })
1354
1465
  ] });
1355
- }, Lr = (n) => {
1466
+ }, Rr = (n) => {
1356
1467
  const { primaryColor: t, secondaryColor: r } = T(n);
1357
1468
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1358
1469
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1422,7 +1533,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1422
1533
  )
1423
1534
  ] })
1424
1535
  ] });
1425
- }, $r = (n) => {
1536
+ }, Er = (n) => {
1426
1537
  const { primaryColor: t } = T(n);
1427
1538
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1428
1539
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1469,7 +1580,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1469
1580
  )
1470
1581
  ] })
1471
1582
  ] });
1472
- }, Rr = (n) => {
1583
+ }, Fr = (n) => {
1473
1584
  const { primaryColor: t } = T(n);
1474
1585
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "124", children: [
1475
1586
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1508,7 +1619,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1508
1619
  }
1509
1620
  ) }) })
1510
1621
  ] });
1511
- }, ft = (n) => {
1622
+ }, _t = (n) => {
1512
1623
  const { primaryColor: t, secondaryColor: r } = T(n);
1513
1624
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1514
1625
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1546,7 +1657,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1546
1657
  )
1547
1658
  ] }) }) })
1548
1659
  ] });
1549
- }, Er = (n) => {
1660
+ }, Vr = (n) => {
1550
1661
  const { primaryColor: t, secondaryColor: r } = T(n);
1551
1662
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1552
1663
  /* @__PURE__ */ e.jsx("g", { strokeWidth: "0" }),
@@ -1581,7 +1692,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1581
1692
  )
1582
1693
  ] })
1583
1694
  ] });
1584
- }, Fr = (n) => {
1695
+ }, Tr = (n) => {
1585
1696
  const { primaryColor: t, secondaryColor: r } = T(n);
1586
1697
  return /* @__PURE__ */ e.jsxs(E, { ...n, viewBox: "0 0 512 512", children: [
1587
1698
  /* @__PURE__ */ e.jsx(
@@ -1613,7 +1724,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1613
1724
  }
1614
1725
  )
1615
1726
  ] });
1616
- }, Vr = (n) => {
1727
+ }, Or = (n) => {
1617
1728
  const { primaryColor: t, secondaryColor: r } = T(n);
1618
1729
  return /* @__PURE__ */ e.jsxs(E, { ...n, viewBox: "0 0 24 24", children: [
1619
1730
  /* @__PURE__ */ e.jsx(
@@ -1663,7 +1774,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1663
1774
  }
1664
1775
  )
1665
1776
  ] });
1666
- }, Tr = (n) => {
1777
+ }, Dr = (n) => {
1667
1778
  const { primaryColor: t, secondaryColor: r } = T(n);
1668
1779
  return /* @__PURE__ */ e.jsxs(E, { ...n, viewBox: "0 0 24 24", children: [
1669
1780
  /* @__PURE__ */ e.jsx(
@@ -1704,7 +1815,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1704
1815
  }
1705
1816
  )
1706
1817
  ] });
1707
- }, xt = (n) => {
1818
+ }, vt = (n) => {
1708
1819
  const { primaryColor: t } = T(n);
1709
1820
  return /* @__PURE__ */ e.jsxs(E, { ...n, viewBox: "0 0 24 24", children: [
1710
1821
  /* @__PURE__ */ e.jsx(
@@ -1722,7 +1833,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1722
1833
  }
1723
1834
  )
1724
1835
  ] });
1725
- }, bi = xt, Or = (n) => {
1836
+ }, yi = vt, Ir = (n) => {
1726
1837
  const { primaryColor: t } = T(n);
1727
1838
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
1728
1839
  /* @__PURE__ */ e.jsx(
@@ -1748,7 +1859,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1748
1859
  }
1749
1860
  )
1750
1861
  ] }) });
1751
- }, Dr = (n) => {
1862
+ }, Ar = (n) => {
1752
1863
  const { primaryColor: t } = T(n);
1753
1864
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
1754
1865
  /* @__PURE__ */ e.jsx(
@@ -1784,7 +1895,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1784
1895
  }
1785
1896
  )
1786
1897
  ] }) });
1787
- }, Ir = (n) => {
1898
+ }, Pr = (n) => {
1788
1899
  const { primaryColor: t } = T(n);
1789
1900
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
1790
1901
  /* @__PURE__ */ e.jsx(
@@ -1819,7 +1930,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1819
1930
  }
1820
1931
  )
1821
1932
  ] }) });
1822
- }, Ar = (n) => {
1933
+ }, Br = (n) => {
1823
1934
  const { primaryColor: t } = T(n);
1824
1935
  return /* @__PURE__ */ e.jsx(E, { ...n, children: /* @__PURE__ */ e.jsxs("g", { children: [
1825
1936
  /* @__PURE__ */ e.jsx(
@@ -1867,7 +1978,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1867
1978
  }
1868
1979
  )
1869
1980
  ] }) });
1870
- }, Pr = (n) => {
1981
+ }, Hr = (n) => {
1871
1982
  const { primaryColor: t } = T(n);
1872
1983
  return /* @__PURE__ */ e.jsx(E, { ...n, viewBox: "0 0 512 512", fill: "none", children: /* @__PURE__ */ e.jsxs("g", { fill: t, children: [
1873
1984
  /* @__PURE__ */ e.jsx("rect", { y: "233.666", width: "68.805", height: "32" }),
@@ -1890,7 +2001,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1890
2001
  }
1891
2002
  )
1892
2003
  ] }) });
1893
- }, mt = (n) => {
2004
+ }, gt = (n) => {
1894
2005
  const { primaryColor: t } = T(n);
1895
2006
  return /* @__PURE__ */ e.jsxs(E, { ...n, viewBox: "0 0 24 24", fill: "none", children: [
1896
2007
  /* @__PURE__ */ e.jsx(
@@ -1917,7 +2028,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1917
2028
  }
1918
2029
  )
1919
2030
  ] });
1920
- }, Br = (n) => {
2031
+ }, Wr = (n) => {
1921
2032
  const { primaryColor: t } = T(n);
1922
2033
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "24", children: [
1923
2034
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1932,7 +2043,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1932
2043
  }
1933
2044
  ) })
1934
2045
  ] });
1935
- }, Hr = (n) => {
2046
+ }, zr = (n) => {
1936
2047
  const t = T(n);
1937
2048
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "72", viewBox: "0 -8 72 72", children: [
1938
2049
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -1961,7 +2072,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
1961
2072
  )
1962
2073
  ] })
1963
2074
  ] });
1964
- }, Wr = (n) => {
2075
+ }, Gr = (n) => {
1965
2076
  const { primaryColor: t, secondaryColor: r } = T(n);
1966
2077
  return /* @__PURE__ */ e.jsxs(E, { ...n, children: [
1967
2078
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -2009,7 +2120,7 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
2009
2120
  )
2010
2121
  ] })
2011
2122
  ] });
2012
- }, zr = (n) => {
2123
+ }, Zr = (n) => {
2013
2124
  const { primaryColor: t } = T(n);
2014
2125
  return /* @__PURE__ */ e.jsxs(E, { ...n, dpi: "30", children: [
2015
2126
  /* @__PURE__ */ e.jsx("g", { id: "SVGRepo_bgCarrier", strokeWidth: "0" }),
@@ -2036,59 +2147,162 @@ const st = (n) => /* @__PURE__ */ e.jsx(E, { ...n, className: `${n.className} ic
2036
2147
  }
2037
2148
  ) }) })
2038
2149
  ] });
2150
+ }, xn = ({
2151
+ className: n = "",
2152
+ children: t,
2153
+ header: r,
2154
+ action: s,
2155
+ onHide: i,
2156
+ style: o,
2157
+ clearStyle: l = !1,
2158
+ disableBackplate: c,
2159
+ marginBottom: a,
2160
+ maxWidth: d = "560px",
2161
+ showCloseButton: u = !1,
2162
+ ariaLabel: x
2163
+ }) => {
2164
+ const f = () => {
2165
+ i && i();
2166
+ }, m = {
2167
+ ...o,
2168
+ marginBottom: a,
2169
+ maxWidth: typeof d == "number" ? `${d}px` : d
2170
+ };
2171
+ return /* @__PURE__ */ e.jsx(
2172
+ hn,
2173
+ {
2174
+ onHide: f,
2175
+ disableBackplate: c,
2176
+ children: /* @__PURE__ */ e.jsxs(
2177
+ "div",
2178
+ {
2179
+ style: m,
2180
+ className: `${l ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
2181
+ role: "dialog",
2182
+ "aria-modal": "true",
2183
+ "aria-label": x || r,
2184
+ children: [
2185
+ r && /* @__PURE__ */ e.jsxs("div", { className: "dialog-template__container__header dialog-template__container__header_color_surface-container", children: [
2186
+ /* @__PURE__ */ e.jsx(K, { type: "heading", children: r }),
2187
+ u && /* @__PURE__ */ e.jsx(
2188
+ ye,
2189
+ {
2190
+ className: "dialog-template__container__header__button dialog-template__container__header__button_color_surface-container",
2191
+ onClick: f,
2192
+ "aria-label": "Close dialog",
2193
+ icon: /* @__PURE__ */ e.jsx(ke, {})
2194
+ }
2195
+ )
2196
+ ] }),
2197
+ /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__content", children: t }),
2198
+ s && /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__action", children: s })
2199
+ ]
2200
+ }
2201
+ )
2202
+ }
2203
+ );
2039
2204
  };
2040
- var ae = /* @__PURE__ */ ((n) => (n.MOBILE = "MOBILE", n.STANDART = "STANDART", n.BIG_SCREEN = "BIG_SCREEN", n))(ae || {});
2041
- const jt = {
2042
- [ae.MOBILE]: "small-screen",
2043
- [ae.STANDART]: "standart-screen",
2044
- [ae.BIG_SCREEN]: "big-screen"
2045
- }, pt = (n, t = ae.STANDART) => `var(--${n}-${jt[t]})`, Ct = (n, t = "standart") => `var(--${n}-${t})`, _t = (n, t = "normal", r = ae.STANDART) => `var(--${n}-heights-${jt[r]}-${t})`, Pe = {
2046
- mobileSize: 720,
2047
- bigSize: 1400
2048
- }, Gr = (n = {}) => {
2049
- const t = {
2050
- bigSize: n.bigSize ?? Pe.bigSize,
2051
- mobileSize: n.mobileSize ?? Pe.mobileSize
2205
+ const qe = ({
2206
+ marginBottom: n = 80,
2207
+ forceBottomSheet: t = !1,
2208
+ forceModal: r = !1,
2209
+ ...s
2210
+ }) => {
2211
+ const { screen: i } = $e(Ge);
2212
+ st(!0, document.body);
2213
+ const o = () => {
2214
+ var c;
2215
+ (c = s.onHide) == null || c.call(s);
2052
2216
  };
2053
- t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = Pe.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = Pe.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = Pe.mobileSize, t.bigSize = Pe.bigSize);
2054
- const [r, s] = k(ae.STANDART), i = N(() => {
2055
- window.innerWidth < t.mobileSize ? s(ae.MOBILE) : window.innerWidth < t.bigSize ? s(ae.STANDART) : s(ae.BIG_SCREEN);
2056
- }, [window.innerWidth]);
2057
- return I(() => {
2058
- i();
2059
- }, [i]), I(() => (window.addEventListener("resize", i), () => {
2060
- window.removeEventListener("resize", i);
2061
- }), [i]), { screen: r };
2062
- }, Zr = {
2063
- screen: ae.STANDART
2064
- }, Ge = un(Zr), yi = ({ children: n, option: t }) => {
2065
- const r = Gr(t);
2066
- return /* @__PURE__ */ e.jsx(Ge.Provider, { value: r, children: n });
2067
- }, K = ({
2068
- type: n,
2069
- screensize: t = ae.STANDART,
2070
- weight: r = "standart",
2071
- density: s = "normal",
2072
- children: i,
2073
- style: o,
2074
- className: l = "",
2075
- ...c
2217
+ return t || !r && i === ae.MOBILE ? /* @__PURE__ */ e.jsx(
2218
+ it,
2219
+ {
2220
+ bottom: n,
2221
+ onHide: o,
2222
+ visible: !0,
2223
+ children: /* @__PURE__ */ e.jsxs(
2224
+ "div",
2225
+ {
2226
+ style: s.style,
2227
+ className: `dialog-bottom ${s.className || ""}`,
2228
+ children: [
2229
+ s.header && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__header", children: /* @__PURE__ */ e.jsx(K, { type: "heading", children: s.header }) }),
2230
+ /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__content dialog-bottom__content_color_text-surface-color", children: /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__content__scroll", children: s.children }) }),
2231
+ s.action && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__action", children: s.action })
2232
+ ]
2233
+ }
2234
+ )
2235
+ }
2236
+ ) : /* @__PURE__ */ e.jsx(xn, { ...s, onHide: o });
2237
+ }, dn = ({ btns: n, onHide: t, onSuccess: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: n.map((s) => s.danger ? /* @__PURE__ */ e.jsx(
2238
+ Ur,
2239
+ {
2240
+ text: s.danger.text,
2241
+ header: s.danger.header,
2242
+ style: { backgroundColor: "var(--Error-color)", ...s.style },
2243
+ onClick: s.success ? r : s.hide ? t : s.onClick,
2244
+ disabled: s.disabled,
2245
+ children: s.text
2246
+ },
2247
+ s.text
2248
+ ) : /* @__PURE__ */ e.jsx(
2249
+ We,
2250
+ {
2251
+ style: s.style,
2252
+ styleType: s.styleType,
2253
+ onClick: s.success ? r : s.hide ? t : s.onClick,
2254
+ disabled: s.disabled,
2255
+ children: s.text
2256
+ },
2257
+ s.text
2258
+ )) }), Yr = ({
2259
+ styleContainer: n,
2260
+ text: t,
2261
+ header: r,
2262
+ actionText: s,
2263
+ cancelText: i = "Отмена",
2264
+ onSuccess: o,
2265
+ onCancel: l,
2266
+ onHide: c,
2267
+ children: a,
2268
+ disableDefaultButtons: d = !1,
2269
+ customActions: u,
2270
+ btns: x
2076
2271
  }) => {
2077
- const a = $e(Ge), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", x = u ? "h3" : "span", f = {
2078
- fontSize: pt(n, d),
2079
- fontWeight: Ct(n, r),
2080
- lineHeight: _t(n, s, d),
2081
- ...o
2082
- }, m = u ? "typography-heading" : "typography-text";
2083
- return /* @__PURE__ */ e.jsx(
2084
- x,
2272
+ const f = N(() => {
2273
+ o == null || o(), c == null || c();
2274
+ }, [o, c]), m = N(() => {
2275
+ l == null || l(), c == null || c();
2276
+ }, [l, c]), _ = N(() => u || (d ? null : x ? /* @__PURE__ */ e.jsx(dn, { onHide: m, onSuccess: f, btns: x }) : /* @__PURE__ */ e.jsx(dn, { onHide: m, onSuccess: f, btns: [
2085
2277
  {
2086
- ...c,
2087
- style: f,
2088
- className: `${m} ${l}`,
2089
- children: i
2278
+ text: i,
2279
+ hide: !0,
2280
+ styleType: "outline"
2281
+ },
2282
+ {
2283
+ text: s ?? "OK",
2284
+ success: !0
2285
+ }
2286
+ ] })), [u, d, m, f, s, i]);
2287
+ return /* @__PURE__ */ e.jsxs(
2288
+ qe,
2289
+ {
2290
+ style: n,
2291
+ header: r,
2292
+ onHide: m,
2293
+ action: _(),
2294
+ children: [
2295
+ t && /* @__PURE__ */ e.jsx(K, { type: "body", children: t }),
2296
+ a
2297
+ ]
2090
2298
  }
2091
2299
  );
2300
+ }, Ur = ({ text: n, header: t, onClick: r, styleType: s, ...i }) => {
2301
+ const [o, l] = k(!1);
2302
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2303
+ /* @__PURE__ */ e.jsx(We, { styleType: s ?? "filled", ...i, onClick: () => l(!0) }),
2304
+ o && /* @__PURE__ */ e.jsx(Yr, { header: t, text: n, onHide: () => l(!1) })
2305
+ ] });
2092
2306
  };
2093
2307
  const Yn = ({
2094
2308
  text: n,
@@ -2108,7 +2322,7 @@ const Yn = ({
2108
2322
  }
2109
2323
  i == null || i(f);
2110
2324
  }
2111
- }, [n, o, r, i]), u = c ? /* @__PURE__ */ e.jsx(Le, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(ft, { "aria-hidden": "true" }), x = c ? "Скопировано!" : "Копировать";
2325
+ }, [n, o, r, i]), u = c ? /* @__PURE__ */ e.jsx(Le, { "aria-hidden": "true" }) : /* @__PURE__ */ e.jsx(_t, { "aria-hidden": "true" }), x = c ? "Скопировано!" : "Копировать";
2112
2326
  return t ? /* @__PURE__ */ e.jsxs("div", { className: "copy-button", children: [
2113
2327
  /* @__PURE__ */ e.jsx(
2114
2328
  ye,
@@ -2135,7 +2349,7 @@ const Yn = ({
2135
2349
  );
2136
2350
  };
2137
2351
  var on = /* @__PURE__ */ ((n) => (n[n.OPEN = 0] = "OPEN", n[n.HIDING = 1] = "HIDING", n[n.CLOSE = 2] = "CLOSE", n))(on || {});
2138
- const Yr = ({ valueDisplayDuration: n = 2e3 }) => {
2352
+ const Kr = ({ valueDisplayDuration: n = 2e3 }) => {
2139
2353
  const [t, r] = k(
2140
2354
  2
2141
2355
  /* CLOSE */
@@ -2165,7 +2379,7 @@ const Yr = ({ valueDisplayDuration: n = 2e3 }) => {
2165
2379
  hidePopup: o
2166
2380
  };
2167
2381
  };
2168
- const vt = ({ className: n = "", text: t, state: r = on.OPEN }) => r === on.CLOSE ? null : /* @__PURE__ */ e.jsx(
2382
+ const bt = ({ className: n = "", text: t, state: r = on.OPEN }) => r === on.CLOSE ? null : /* @__PURE__ */ e.jsx(
2169
2383
  "div",
2170
2384
  {
2171
2385
  className: `alex-evo-sh-ui-kit-tooltip value-popup ${n} ${r === on.HIDING ? "hiding" : ""}`,
@@ -2258,13 +2472,13 @@ function ze(n) {
2258
2472
  b: parseInt(r[3], 16)
2259
2473
  } : null;
2260
2474
  }
2261
- const Ur = ze, Kr = (n) => {
2475
+ const Xr = ze, Jr = (n) => {
2262
2476
  if (!n)
2263
2477
  return "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
2264
- const t = Ur(n);
2478
+ const t = Xr(n);
2265
2479
  return t ? `linear-gradient(135deg, rgba(${t.r}, ${t.g}, ${t.b}, 0.1), rgba(${t.r}, ${t.g}, ${t.b}, 0))` : "linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0))";
2266
2480
  };
2267
- function gt(n, t, r) {
2481
+ function yt(n, t, r) {
2268
2482
  if (n === 0)
2269
2483
  return r ?? "#e0e0e0";
2270
2484
  if (n === 1)
@@ -2304,7 +2518,7 @@ function me(n) {
2304
2518
  function rn(n, t = !1) {
2305
2519
  return ve(t ? -0.6 : 0.3, n) ?? n;
2306
2520
  }
2307
- const bt = {
2521
+ const kt = {
2308
2522
  // BaseColor
2309
2523
  Primary_color: "#6750A4",
2310
2524
  // фиолетовый акцент
@@ -2347,7 +2561,7 @@ const bt = {
2347
2561
  Surface_container_hover_color: "#F2E7FE",
2348
2562
  // Outline
2349
2563
  Outline_variant_color: "#CAC4D0"
2350
- }, Xr = {
2564
+ }, qr = {
2351
2565
  Primary_color: (n, t) => {
2352
2566
  const r = rn(n, t);
2353
2567
  return {
@@ -2406,10 +2620,10 @@ const bt = {
2406
2620
  Outline_variant_color: ve(t ? 0.1 : -0.1, n) ?? n
2407
2621
  })
2408
2622
  };
2409
- function Jr(n, t = !1) {
2410
- const [r, s] = k({ ...bt, ...n }), [i, o] = k(t), l = N(
2623
+ function Qr(n, t = !1) {
2624
+ const [r, s] = k({ ...kt, ...n }), [i, o] = k(t), l = N(
2411
2625
  (a, d) => {
2412
- const u = Xr[a];
2626
+ const u = qr[a];
2413
2627
  if (!u)
2414
2628
  return;
2415
2629
  const x = u(d, i);
@@ -2425,7 +2639,7 @@ function Jr(n, t = !1) {
2425
2639
  setReverse: (a) => o(a)
2426
2640
  };
2427
2641
  }
2428
- const qr = {
2642
+ const es = {
2429
2643
  Primary_color: "#6750A4",
2430
2644
  // фиолетовый акцент
2431
2645
  Secondary_color: "#8c5a9c",
@@ -2441,7 +2655,7 @@ const qr = {
2441
2655
  // серый
2442
2656
  Shadow_color: "#000000"
2443
2657
  // чёрный (для теней)
2444
- }, Qr = {
2658
+ }, ns = {
2445
2659
  Primary_color: "#D0BCFF",
2446
2660
  // светло-фиолетовый
2447
2661
  Secondary_color: "#dbb0e8",
@@ -2458,17 +2672,17 @@ const qr = {
2458
2672
  Shadow_color: "#000000"
2459
2673
  }, yn = {
2460
2674
  light: {
2461
- colors: qr
2675
+ colors: es
2462
2676
  },
2463
2677
  dark: {
2464
2678
  reverse: !0,
2465
- colors: Qr
2679
+ colors: ns
2466
2680
  }
2467
2681
  };
2468
- function es(n = "light") {
2682
+ function ts(n = "light") {
2469
2683
  const [t, r] = k(
2470
2684
  yn
2471
- ), [s, i] = k(n), { colors: o, setColor: l, setReverse: c } = Jr(t[s].colors, t[s].reverse), a = N(
2685
+ ), [s, i] = k(n), { colors: o, setColor: l, setReverse: c } = Qr(t[s].colors, t[s].reverse), a = N(
2472
2686
  (m) => {
2473
2687
  const _ = t[m].colors;
2474
2688
  _ && (Object.entries(_).forEach(([j, p]) => {
@@ -2522,8 +2736,8 @@ function es(n = "light") {
2522
2736
  };
2523
2737
  }
2524
2738
  const Xe = () => {
2525
- }, ns = {
2526
- colors: bt,
2739
+ }, rs = {
2740
+ colors: kt,
2527
2741
  themes: {},
2528
2742
  activeTheme: "",
2529
2743
  setActiveTheme: Xe,
@@ -2531,8 +2745,8 @@ const Xe = () => {
2531
2745
  createTheme: Xe,
2532
2746
  deleteTheme: Xe,
2533
2747
  resetTheme: Xe
2534
- }, En = un(ns), wi = ({ children: n }) => {
2535
- const t = es();
2748
+ }, En = un(rs), wi = ({ children: n }) => {
2749
+ const t = ts();
2536
2750
  return /* @__PURE__ */ e.jsx(En.Provider, { value: t, children: n });
2537
2751
  }, Un = "var(--range-width)", Si = ({
2538
2752
  colorRange: n,
@@ -2552,7 +2766,7 @@ const Xe = () => {
2552
2766
  className: _ = "",
2553
2767
  ...j
2554
2768
  }) => {
2555
- const p = U(null), C = U(null), [g, w] = k(c ?? s), [v, M] = k("200px"), { colors: R } = $e(En), { showPopup: A, popupState: z } = Yr({ valueDisplayDuration: x }), L = n ?? R.Primary_color ?? "#0000ff";
2769
+ const p = U(null), C = U(null), [g, w] = k(c ?? s), [v, M] = k("200px"), { colors: R } = $e(En), { showPopup: A, popupState: z } = Kr({ valueDisplayDuration: x }), L = n ?? R.Primary_color ?? "#0000ff";
2556
2770
  I(() => {
2557
2771
  var O;
2558
2772
  if (a === "vertical" && ((O = C.current) != null && O.parentElement)) {
@@ -2579,7 +2793,7 @@ const Xe = () => {
2579
2793
  ), y = ge(() => ({
2580
2794
  ...j.style,
2581
2795
  [a === "vertical" ? "height" : "width"]: `${H}%`,
2582
- background: d === "point" ? "transperent" : d === "static-color" ? L : gt(H / 100, L, m)
2796
+ background: d === "point" ? "transperent" : d === "static-color" ? L : yt(H / 100, L, m)
2583
2797
  }), [H, L, j.style, a, d]), F = ge(() => a === "vertical" ? {
2584
2798
  "--range-width": l,
2585
2799
  "--point-width": d === "point" ? l : "6px",
@@ -2610,7 +2824,7 @@ const Xe = () => {
2610
2824
  children: [
2611
2825
  /* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
2612
2826
  /* @__PURE__ */ e.jsx("div", { className: "active-track", style: y }),
2613
- /* @__PURE__ */ e.jsx(vt, { text: Math.round(g).toString(), state: z, className: "value-popup" })
2827
+ /* @__PURE__ */ e.jsx(bt, { text: Math.round(g).toString(), state: z, className: "value-popup" })
2614
2828
  ] }),
2615
2829
  /* @__PURE__ */ e.jsx(
2616
2830
  "input",
@@ -2690,7 +2904,7 @@ const Xe = () => {
2690
2904
  const Y = R.current.querySelector('[data-el="indicator"]');
2691
2905
  if (Y) {
2692
2906
  const _e = parseFloat(Y.dataset.percentage ?? "");
2693
- _e !== null && (_e < oe - 2 || _e > oe + 2) ? Y.style.transition = ".3s" : Y.style.transition = A.current ? "none" : ".3s", Y.dataset.percentage = oe.toString(), Y.style.stroke = c === "static-color" ? q : gt(oe / 100, q, M), Y.style.strokeWidth = a.toString(), Y.style.strokeLinecap = p ? "round" : "", Y.style.strokeDashoffset = W.toString(), Y.style.strokeDasharray = `${Ce}, ${y * Math.PI * 2 - Ce}`;
2907
+ _e !== null && (_e < oe - 2 || _e > oe + 2) ? Y.style.transition = ".3s" : Y.style.transition = A.current ? "none" : ".3s", Y.dataset.percentage = oe.toString(), Y.style.stroke = c === "static-color" ? q : yt(oe / 100, q, M), Y.style.strokeWidth = a.toString(), Y.style.strokeLinecap = p ? "round" : "", Y.style.strokeDashoffset = W.toString(), Y.style.strokeDasharray = `${Ce}, ${y * Math.PI * 2 - Ce}`;
2694
2908
  }
2695
2909
  }
2696
2910
  if ($) {
@@ -2765,10 +2979,10 @@ const Xe = () => {
2765
2979
  ]
2766
2980
  }
2767
2981
  ),
2768
- /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: D, children: w ?? (C && /* @__PURE__ */ e.jsx(vt, { className: "", text: Math.floor(ne).toString() })) })
2982
+ /* @__PURE__ */ e.jsx("div", { className: `range-circule-children ${v}`, style: D, children: w ?? (C && /* @__PURE__ */ e.jsx(bt, { className: "", text: Math.floor(ne).toString() })) })
2769
2983
  ] });
2770
2984
  };
2771
- const ts = Re(
2985
+ const ss = Re(
2772
2986
  ({
2773
2987
  icon: n,
2774
2988
  children: t,
@@ -2795,7 +3009,7 @@ const ts = Re(
2795
3009
  );
2796
3010
  }
2797
3011
  );
2798
- ts.displayName = "FAB";
3012
+ ss.displayName = "FAB";
2799
3013
  const Oe = ({ children: n, container: t = document.body }) => t ? hr.createPortal(
2800
3014
  n,
2801
3015
  t
@@ -2805,7 +3019,7 @@ const je = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
2805
3019
  r,
2806
3020
  /* @__PURE__ */ e.jsx("div", { className: `divider ${t ? "short" : ""}` })
2807
3021
  ] }) : /* @__PURE__ */ e.jsx("div", { style: n, className: `divider ${t ? "short" : ""}` });
2808
- const rs = ({ item: n, isIcon: t, globalClick: r, autoHide: s, onHide: i }) => {
3022
+ const is = ({ item: n, isIcon: t, globalClick: r, autoHide: s, onHide: i }) => {
2809
3023
  const o = () => {
2810
3024
  n.onClick && n.onClick(), r && r(), s && (i == null || i());
2811
3025
  };
@@ -2814,7 +3028,7 @@ const rs = ({ item: n, isIcon: t, globalClick: r, autoHide: s, onHide: i }) => {
2814
3028
  /* @__PURE__ */ e.jsx("div", { className: "menu-text-container", children: n.title }),
2815
3029
  /* @__PURE__ */ e.jsx("div", { className: "menu-status-container", children: n.activated ? /* @__PURE__ */ e.jsx(Le, {}) : null })
2816
3030
  ] });
2817
- }, fn = (n) => {
3031
+ }, mn = (n) => {
2818
3032
  if (!n)
2819
3033
  return;
2820
3034
  const t = window.getComputedStyle(n), r = n.getBoundingClientRect();
@@ -2824,14 +3038,14 @@ const rs = ({ item: n, isIcon: t, globalClick: r, autoHide: s, onHide: i }) => {
2824
3038
  left: r.left,
2825
3039
  top: r.top
2826
3040
  };
2827
- }, yt = (n, t, r, s) => {
3041
+ }, Nt = (n, t, r, s) => {
2828
3042
  let i = { x: n, y: t };
2829
3043
  if (!r)
2830
3044
  return i;
2831
3045
  const o = window.getComputedStyle(r), l = parseFloat(o.getPropertyValue("height")), c = parseFloat(o.getPropertyValue("width")), a = t + l - document.documentElement.clientHeight, d = n + c - document.documentElement.clientWidth;
2832
3046
  return a > 0 && (i.y = i.y - a - ((s == null ? void 0 : s.marginBottom) ?? 0)), d > 0 && (i.x = i.x - d - ((s == null ? void 0 : s.marginRight) ?? 0)), i;
2833
3047
  };
2834
- const ss = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: o }) => {
3048
+ const os = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i, onGlobalHide: o }) => {
2835
3049
  const l = U(null), [c, a] = k({ left: "0px", top: "0px" }), [d, u] = k(!1);
2836
3050
  function x(f) {
2837
3051
  for (let m of f)
@@ -2842,19 +3056,19 @@ const ss = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i,
2842
3056
  return I(() => {
2843
3057
  if (!l.current)
2844
3058
  return;
2845
- let f = fn(l.current.parentElement);
3059
+ let f = mn(l.current.parentElement);
2846
3060
  if (!f)
2847
3061
  return;
2848
- let m = yt(f.left + f.width, f.top, l.current, { marginRight: f.width });
3062
+ let m = Nt(f.left + f.width, f.top, l.current, { marginRight: f.width });
2849
3063
  a({
2850
3064
  left: m.x - f.left + "px",
2851
3065
  top: m.y - f.top + "px"
2852
3066
  }), u(!0);
2853
3067
  }, []), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2854
- /* @__PURE__ */ e.jsx("div", { ref: l, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...c, ...d ? {} : { display: "none" } }, children: n.map((f, m) => /* @__PURE__ */ e.jsx(rs, { onHide: o, autoHide: i, item: f, isIcon: x(n), globalClick: s }, m)) }),
3068
+ /* @__PURE__ */ e.jsx("div", { ref: l, className: `menu-block menu-block_color_surface-container-highest ${r ? "" : "menu-block_sub"}`, style: { ...c, ...d ? {} : { display: "none" } }, children: n.map((f, m) => /* @__PURE__ */ e.jsx(is, { onHide: o, autoHide: i, item: f, isIcon: x(n), globalClick: s }, m)) }),
2855
3069
  r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
2856
3070
  ] });
2857
- }, is = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: o }) => {
3071
+ }, as = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: o }) => {
2858
3072
  const [l, c] = k(!1), a = N(() => {
2859
3073
  s.subItems ? c((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
2860
3074
  }, [s.onClick]);
@@ -2864,50 +3078,29 @@ const ss = ({ items: n, onHide: t, smallDisplay: r, globalClick: s, autoHide: i,
2864
3078
  /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__text", children: s.title }),
2865
3079
  /* @__PURE__ */ e.jsx("div", { className: "menu-item__info__status ", children: s.subItems ? /* @__PURE__ */ e.jsx("span", { className: `menu-item__info__status__arrow ${l ? "menu-item__info__status__arrow_active" : ""}` }) : s.activated ? /* @__PURE__ */ e.jsx(Le, {}) : /* @__PURE__ */ e.jsx("span", { className: "menu-item__info__status__none" }) })
2866
3080
  ] }),
2867
- l && s.subItems ? /* @__PURE__ */ e.jsx(ss, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => c(!1), smallDisplay: o }) : null
3081
+ l && s.subItems ? /* @__PURE__ */ e.jsx(os, { autoHide: t, items: s.subItems, onGlobalHide: n, onHide: () => c(!1), smallDisplay: o }) : null
2868
3082
  ] });
2869
3083
  };
2870
- function kt({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: i }) {
3084
+ function wt({ block: n, smallDisplay: t, onHide: r, globalClick: s, autoHide: i }) {
2871
3085
  function o(l) {
2872
3086
  for (let c of l.items)
2873
3087
  if (c.icon)
2874
3088
  return !0;
2875
3089
  return !1;
2876
3090
  }
2877
- return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((l, c) => /* @__PURE__ */ e.jsx(is, { globalClick: s, autoHide: i, onHide: r, item: l, isIcon: o(n), smallDisplay: t }, c)) });
3091
+ return /* @__PURE__ */ e.jsx("div", { className: "menu-block", children: n.items.map((l, c) => /* @__PURE__ */ e.jsx(as, { globalClick: s, autoHide: i, onHide: r, item: l, isIcon: o(n), smallDisplay: t }, c)) });
2878
3092
  }
2879
- const xn = ({ children: n, onHide: t, disableBackplate: r }) => {
2880
- function s(i) {
2881
- i.stopPropagation(), t && t();
2882
- }
2883
- return /* @__PURE__ */ e.jsxs(
2884
- "div",
2885
- {
2886
- className: `modal-template ${r ? "modal-template_z_0" : ""}`,
2887
- children: [
2888
- /* @__PURE__ */ e.jsx(
2889
- "div",
2890
- {
2891
- onClick: s,
2892
- className: `modal-template__backplate ${r ? "modal-template__backplate_disable" : ""}`
2893
- }
2894
- ),
2895
- n
2896
- ]
2897
- }
2898
- );
2899
- };
2900
- const os = 100, as = (n) => {
3093
+ const ls = 100, cs = (n) => {
2901
3094
  const t = U(null), [r, s] = k({ left: "0px", top: "0px" }), i = () => {
2902
3095
  n.onHide && n.onHide();
2903
3096
  };
2904
3097
  return cr(() => {
2905
- let o = yt(n.x, n.y, t.current, { marginBottom: os });
3098
+ let o = Nt(n.x, n.y, t.current, { marginBottom: ls });
2906
3099
  s({
2907
3100
  left: o.x + "px",
2908
3101
  top: o.y + "px"
2909
3102
  });
2910
- }, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsx(xn, { onHide: i, children: /* @__PURE__ */ e.jsx(
3103
+ }, [n.x, n.y]), n.visible ? /* @__PURE__ */ e.jsx(hn, { onHide: i, children: /* @__PURE__ */ e.jsx(
2911
3104
  "div",
2912
3105
  {
2913
3106
  ref: t,
@@ -2915,19 +3108,19 @@ const os = 100, as = (n) => {
2915
3108
  style: { ...r, width: n.width, maxWidth: n.width ? "100%" : void 0 },
2916
3109
  children: n.blocks.map((o, l) => /* @__PURE__ */ e.jsxs(ce.Fragment, { children: [
2917
3110
  l !== 0 ? /* @__PURE__ */ e.jsx(je, {}) : null,
2918
- /* @__PURE__ */ e.jsx(kt, { block: o, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: i })
3111
+ /* @__PURE__ */ e.jsx(wt, { block: o, smallDisplay: !1, globalClick: n.onClick, autoHide: n.autoHide, onHide: i })
2919
3112
  ] }, l))
2920
3113
  }
2921
3114
  ) }) : null;
2922
3115
  };
2923
- const ls = (n) => {
3116
+ const ds = (n) => {
2924
3117
  const t = () => {
2925
3118
  };
2926
- return /* @__PURE__ */ e.jsx(Rt, { onHide: n.onHide || t, visible: n.visible, bottom: n.marginBottom, children: /* @__PURE__ */ e.jsx("div", { className: "small-window-menu", children: n.blocks.map((r, s) => /* @__PURE__ */ e.jsxs(ce.Fragment, { children: [
3119
+ return /* @__PURE__ */ e.jsx(it, { onHide: n.onHide || t, visible: n.visible, bottom: n.marginBottom, children: /* @__PURE__ */ e.jsx("div", { className: "small-window-menu", children: n.blocks.map((r, s) => /* @__PURE__ */ e.jsxs(ce.Fragment, { children: [
2927
3120
  s !== 0 ? /* @__PURE__ */ e.jsx(je, {}) : null,
2928
- /* @__PURE__ */ e.jsx(kt, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
3121
+ /* @__PURE__ */ e.jsx(wt, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
2929
3122
  ] }, s)) }) });
2930
- }, Nt = (n) => n.screensize === ae.MOBILE ? /* @__PURE__ */ e.jsx(Oe, { container: n.container, children: /* @__PURE__ */ e.jsx(ls, { ...n }) }) : /* @__PURE__ */ e.jsx(Oe, { container: n.container, children: /* @__PURE__ */ e.jsx(as, { ...n }) }), Li = ce.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...o }, l) => {
3123
+ }, St = (n) => n.screensize === ae.MOBILE ? /* @__PURE__ */ e.jsx(Oe, { container: n.container, children: /* @__PURE__ */ e.jsx(ds, { ...n }) }) : /* @__PURE__ */ e.jsx(Oe, { container: n.container, children: /* @__PURE__ */ e.jsx(cs, { ...n }) }), Li = ce.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...o }, l) => {
2931
3124
  const [c, a] = k(!1), [d, u] = k(void 0), { screen: x } = $e(Ge), f = () => {
2932
3125
  a(!1), u(void 0);
2933
3126
  }, m = (j) => {
@@ -2943,7 +3136,7 @@ const ls = (n) => {
2943
3136
  }
2944
3137
  ),
2945
3138
  /* @__PURE__ */ e.jsx(
2946
- Nt,
3139
+ St,
2947
3140
  {
2948
3141
  marginBottom: _ === ae.MOBILE ? 80 : 0,
2949
3142
  onHide: f,
@@ -2958,7 +3151,7 @@ const ls = (n) => {
2958
3151
  )
2959
3152
  ] });
2960
3153
  });
2961
- const wt = ce.forwardRef(
3154
+ const Mt = ce.forwardRef(
2962
3155
  ({
2963
3156
  name: n,
2964
3157
  checked: t,
@@ -2999,8 +3192,8 @@ const wt = ce.forwardRef(
2999
3192
  }
3000
3193
  )
3001
3194
  );
3002
- wt.displayName = "Checkbox";
3003
- const St = ce.forwardRef(
3195
+ Mt.displayName = "Checkbox";
3196
+ const Lt = ce.forwardRef(
3004
3197
  ({ text: n, onDelete: t, big: r, onClick: s, screenSize: i, className: o, disabled: l, ...c }, a) => {
3005
3198
  const d = (x) => {
3006
3199
  x.stopPropagation(), t == null || t(x);
@@ -3033,8 +3226,8 @@ const St = ce.forwardRef(
3033
3226
  );
3034
3227
  }
3035
3228
  );
3036
- St.displayName = "Chips";
3037
- const Mt = Re(
3229
+ Lt.displayName = "Chips";
3230
+ const $t = Re(
3038
3231
  ({
3039
3232
  name: n,
3040
3233
  currentValue: t,
@@ -3073,8 +3266,8 @@ const Mt = Re(
3073
3266
  ] });
3074
3267
  }
3075
3268
  );
3076
- Mt.displayName = "RadioButton";
3077
- const Lt = Re(
3269
+ $t.displayName = "RadioButton";
3270
+ const Rt = Re(
3078
3271
  ({
3079
3272
  items: n,
3080
3273
  value: t,
@@ -3137,8 +3330,8 @@ const Lt = Re(
3137
3330
  );
3138
3331
  }
3139
3332
  );
3140
- Lt.displayName = "SegmentedButton";
3141
- const $t = Re(
3333
+ Rt.displayName = "SegmentedButton";
3334
+ const Et = Re(
3142
3335
  ({
3143
3336
  size: n = "medium",
3144
3337
  variant: t = "primary",
@@ -3166,202 +3359,7 @@ const $t = Re(
3166
3359
  s && /* @__PURE__ */ e.jsx("span", { className: "switch-label", children: l ? i : o })
3167
3360
  ] })
3168
3361
  );
3169
- $t.displayName = "Switch";
3170
- const Rt = ({ bottom: n = 0, ...t }) => {
3171
- const [r, s] = k(!1), [i, o] = k(!0), l = U(null), c = N(() => {
3172
- s(!0), setTimeout(() => {
3173
- t.onHide(), s(!1), o(!0);
3174
- }, 200);
3175
- }, [t.onHide]);
3176
- I(() => {
3177
- t.visible && o(!1);
3178
- }, [t.visible]), I(() => {
3179
- !t.visible && !i && c();
3180
- }, [t.visible, c, i]);
3181
- const a = N((f) => {
3182
- window.innerHeight - f.changedTouches[0].clientY <= 150 && c(), l.current && (l.current.style.height = `${window.innerHeight - f.changedTouches[0].clientY + 20 - n}px`);
3183
- }, [c]), d = (f) => {
3184
- window.innerHeight - f.clientY + 20 <= 150 && c(), l.current && (l.current.style.height = `${window.innerHeight - f.clientY + 20 - n}px`);
3185
- }, u = () => {
3186
- document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
3187
- }, x = () => {
3188
- document.body.addEventListener("mousemove", d), document.body.addEventListener("mouseup", u);
3189
- };
3190
- return I(() => () => {
3191
- document.body.removeEventListener("mousemove", d), document.body.removeEventListener("mouseup", u);
3192
- }), i && !r || !t.children ? null : /* @__PURE__ */ e.jsx(xn, { onHide: c, children: /* @__PURE__ */ e.jsxs("div", { ref: l, style: { paddingBottom: n }, className: `bottom-sheets ${r ? "bottom-sheets_hide" : "bottom-sheets_show"}`, children: [
3193
- /* @__PURE__ */ e.jsx("div", { role: "presentation", "data-testid": "bottom-sheet-handle", className: "bottom-sheets__handle", onMouseDown: x, onTouchMove: a, children: /* @__PURE__ */ e.jsx("span", {}) }),
3194
- /* @__PURE__ */ e.jsx("div", { className: "bottom-sheets__content", children: t.children })
3195
- ] }) });
3196
- }, Et = (n, t) => {
3197
- I(() => {
3198
- if (n) {
3199
- const r = window.innerWidth - document.documentElement.clientWidth;
3200
- t.style.overflow = "hidden", t.style.paddingRight = `${r}px`;
3201
- } else
3202
- t.style.overflow = "", t.style.paddingRight = "";
3203
- return () => {
3204
- t.style.overflow = "", t.style.paddingRight = "";
3205
- };
3206
- }, [n]);
3207
- };
3208
- const mn = ({
3209
- className: n = "",
3210
- children: t,
3211
- header: r,
3212
- action: s,
3213
- onHide: i,
3214
- style: o,
3215
- clearStyle: l = !1,
3216
- disableBackplate: c,
3217
- marginBottom: a,
3218
- maxWidth: d = "560px",
3219
- showCloseButton: u = !1,
3220
- ariaLabel: x
3221
- }) => {
3222
- const f = () => {
3223
- i && i();
3224
- }, m = {
3225
- ...o,
3226
- marginBottom: a,
3227
- maxWidth: typeof d == "number" ? `${d}px` : d
3228
- };
3229
- return /* @__PURE__ */ e.jsx(
3230
- xn,
3231
- {
3232
- onHide: f,
3233
- disableBackplate: c,
3234
- children: /* @__PURE__ */ e.jsxs(
3235
- "div",
3236
- {
3237
- style: m,
3238
- className: `${l ? "" : "dialog-template__container dialog-template_base dialog-template_color_surface-container"} dialog-template ${n}`,
3239
- role: "dialog",
3240
- "aria-modal": "true",
3241
- "aria-label": x || r,
3242
- children: [
3243
- r && /* @__PURE__ */ e.jsxs("div", { className: "dialog-template__container__header dialog-template__container__header_color_surface-container", children: [
3244
- /* @__PURE__ */ e.jsx(K, { type: "heading", children: r }),
3245
- u && /* @__PURE__ */ e.jsx(
3246
- ye,
3247
- {
3248
- className: "dialog-template__container__header__button dialog-template__container__header__button_color_surface-container",
3249
- onClick: f,
3250
- "aria-label": "Close dialog",
3251
- icon: /* @__PURE__ */ e.jsx(ke, {})
3252
- }
3253
- )
3254
- ] }),
3255
- /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__content", children: t }),
3256
- s && /* @__PURE__ */ e.jsx("div", { className: "dialog-template__container__action", children: s })
3257
- ]
3258
- }
3259
- )
3260
- }
3261
- );
3262
- };
3263
- const qe = ({
3264
- marginBottom: n = 80,
3265
- forceBottomSheet: t = !1,
3266
- forceModal: r = !1,
3267
- ...s
3268
- }) => {
3269
- const { screen: i } = $e(Ge);
3270
- Et(!0, document.body);
3271
- const o = () => {
3272
- var c;
3273
- (c = s.onHide) == null || c.call(s);
3274
- };
3275
- return t || !r && i === ae.MOBILE ? /* @__PURE__ */ e.jsx(
3276
- Rt,
3277
- {
3278
- bottom: n,
3279
- onHide: o,
3280
- visible: !0,
3281
- children: /* @__PURE__ */ e.jsxs(
3282
- "div",
3283
- {
3284
- style: s.style,
3285
- className: `dialog-bottom ${s.className || ""}`,
3286
- children: [
3287
- s.header && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__header", children: /* @__PURE__ */ e.jsx(K, { type: "heading", children: s.header }) }),
3288
- /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__content dialog-bottom__content_color_text-surface-color", children: /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__content__scroll", children: s.children }) }),
3289
- s.action && /* @__PURE__ */ e.jsx("div", { className: "dialog-bottom__action", children: s.action })
3290
- ]
3291
- }
3292
- )
3293
- }
3294
- ) : /* @__PURE__ */ e.jsx(mn, { ...s, onHide: o });
3295
- }, cs = ({ text: n, header: t, onClick: r, styleType: s, ...i }) => {
3296
- const [o, l] = k(!1);
3297
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3298
- /* @__PURE__ */ e.jsx(We, { styleType: s ?? "filled", ...i, onClick: () => l(!0) }),
3299
- o && /* @__PURE__ */ e.jsx(ds, { header: t, text: n, onHide: () => l(!1) })
3300
- ] });
3301
- }, dn = ({ btns: n, onHide: t, onSuccess: r }) => /* @__PURE__ */ e.jsx(e.Fragment, { children: n.map((s) => s.danger ? /* @__PURE__ */ e.jsx(
3302
- cs,
3303
- {
3304
- text: s.danger.text,
3305
- header: s.danger.header,
3306
- style: { backgroundColor: "var(--Error-color)", ...s.style },
3307
- onClick: s.success ? r : s.hide ? t : s.onClick,
3308
- disabled: s.disabled,
3309
- children: s.text
3310
- },
3311
- s.text
3312
- ) : /* @__PURE__ */ e.jsx(
3313
- We,
3314
- {
3315
- style: s.style,
3316
- styleType: s.styleType,
3317
- onClick: s.success ? r : s.hide ? t : s.onClick,
3318
- disabled: s.disabled,
3319
- children: s.text
3320
- },
3321
- s.text
3322
- )) }), ds = ({
3323
- styleContainer: n,
3324
- text: t,
3325
- header: r,
3326
- actionText: s,
3327
- cancelText: i = "Отмена",
3328
- onSuccess: o,
3329
- onCancel: l,
3330
- onHide: c,
3331
- children: a,
3332
- disableDefaultButtons: d = !1,
3333
- customActions: u,
3334
- btns: x
3335
- }) => {
3336
- const f = N(() => {
3337
- o == null || o(), c == null || c();
3338
- }, [o, c]), m = N(() => {
3339
- l == null || l(), c == null || c();
3340
- }, [l, c]), _ = N(() => u || (d ? null : x ? /* @__PURE__ */ e.jsx(dn, { onHide: m, onSuccess: f, btns: x }) : /* @__PURE__ */ e.jsx(dn, { onHide: m, onSuccess: f, btns: [
3341
- {
3342
- text: i,
3343
- hide: !0,
3344
- styleType: "outline"
3345
- },
3346
- {
3347
- text: s ?? "OK",
3348
- success: !0
3349
- }
3350
- ] })), [u, d, m, f, s, i]);
3351
- return /* @__PURE__ */ e.jsxs(
3352
- qe,
3353
- {
3354
- style: n,
3355
- header: r,
3356
- onHide: m,
3357
- action: _(),
3358
- children: [
3359
- t && /* @__PURE__ */ e.jsx(K, { type: "body", children: t }),
3360
- a
3361
- ]
3362
- }
3363
- );
3364
- };
3362
+ Et.displayName = "Switch";
3365
3363
  function us({
3366
3364
  onSuccess: n,
3367
3365
  items: t,
@@ -3419,7 +3417,7 @@ function us({
3419
3417
  description: j.description,
3420
3418
  onClick: j.disabled ? void 0 : () => _(j.data),
3421
3419
  control: /* @__PURE__ */ e.jsx(
3422
- Mt,
3420
+ $t,
3423
3421
  {
3424
3422
  onClick: j.disabled ? void 0 : () => _(j.data),
3425
3423
  name: o,
@@ -3681,7 +3679,7 @@ const Ri = ({
3681
3679
  btns: x
3682
3680
  }) => {
3683
3681
  const { screen: f } = $e(Ge);
3684
- Et(!0, document.body);
3682
+ st(!0, document.body);
3685
3683
  const m = () => {
3686
3684
  o == null || o();
3687
3685
  }, _ = () => {
@@ -3721,7 +3719,7 @@ const Ri = ({
3721
3719
  ]
3722
3720
  }
3723
3721
  ) : /* @__PURE__ */ e.jsx(
3724
- mn,
3722
+ xn,
3725
3723
  {
3726
3724
  disableBackplate: c,
3727
3725
  style: n,
@@ -3907,7 +3905,7 @@ const xs = 10, ms = 2e-3, Ti = ({
3907
3905
  const [d, u] = k(o ? l : !0), x = U(null), f = (p) => {
3908
3906
  if (!p)
3909
3907
  return;
3910
- const C = fn(p);
3908
+ const C = mn(p);
3911
3909
  if (C)
3912
3910
  return C.height + xs;
3913
3911
  }, m = (p) => {
@@ -4272,12 +4270,12 @@ const gs = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
4272
4270
  x
4273
4271
  )) }) }),
4274
4272
  (s || i || o) && /* @__PURE__ */ e.jsx("td", { className: "w-[180px] table-edit-button no-click", children: /* @__PURE__ */ e.jsxs("div", { className: "table-edit-button", children: [
4275
- o && /* @__PURE__ */ e.jsx(ye, { transparent: !0, icon: /* @__PURE__ */ e.jsx(ct, {}), onClick: () => o(t, c) }),
4273
+ o && /* @__PURE__ */ e.jsx(ye, { transparent: !0, icon: /* @__PURE__ */ e.jsx(mt, {}), onClick: () => o(t, c) }),
4276
4274
  i && /* @__PURE__ */ e.jsx(
4277
4275
  ye,
4278
4276
  {
4279
4277
  transparent: !0,
4280
- icon: /* @__PURE__ */ e.jsx(st, { className: "text-red-500" }),
4278
+ icon: /* @__PURE__ */ e.jsx(dt, { className: "text-red-500" }),
4281
4279
  onClick: () => i(t, c)
4282
4280
  }
4283
4281
  ),
@@ -4285,7 +4283,7 @@ const gs = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
4285
4283
  ye,
4286
4284
  {
4287
4285
  transparent: !0,
4288
- icon: /* @__PURE__ */ e.jsx(at, {}),
4286
+ icon: /* @__PURE__ */ e.jsx(ft, {}),
4289
4287
  onClick: (u) => s(u, t, c)
4290
4288
  }
4291
4289
  )
@@ -4464,7 +4462,7 @@ const ws = ({ icon: n, title: t, to: r }) => /* @__PURE__ */ e.jsxs(Sn, { to: r,
4464
4462
  `, children: t }),
4465
4463
  /* @__PURE__ */ e.jsx("div", { className: "navigation-item-rail__text navigation-item-rail__text_color_surface-variant", children: r })
4466
4464
  ] }), Wi = ({ onToggleMenu: n, firstBtn: t, mainBtn: r, backBtn: s }) => /* @__PURE__ */ e.jsx("div", { className: "navigation-rail", children: /* @__PURE__ */ e.jsx("div", { className: "navigation-rail__block", children: /* @__PURE__ */ e.jsxs("div", { className: "navigation-rail__block__content", children: [
4467
- n ? /* @__PURE__ */ e.jsx(sn, { icon: /* @__PURE__ */ e.jsx(lt, { className: "navigation-rail__block__content__icon navigation-rail__block__content__icon_color_surface-variant" }), onClick: n }) : null,
4465
+ n ? /* @__PURE__ */ e.jsx(sn, { icon: /* @__PURE__ */ e.jsx(xt, { className: "navigation-rail__block__content__icon navigation-rail__block__content__icon_color_surface-variant" }), onClick: n }) : null,
4468
4466
  t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
4469
4467
  /* @__PURE__ */ e.jsx(je, {}),
4470
4468
  /* @__PURE__ */ e.jsx(sn, { active: t.active, title: t.text, icon: t.icon ?? /* @__PURE__ */ e.jsx(cn, {}), onClick: (i) => {
@@ -4656,7 +4654,7 @@ const Fs = [
4656
4654
  o && (r == null || r(o), i && (n == null || n()), A(o));
4657
4655
  }, [o, r, A]);
4658
4656
  return /* @__PURE__ */ e.jsxs(
4659
- mn,
4657
+ xn,
4660
4658
  {
4661
4659
  className: "color-picker-panel",
4662
4660
  onHide: n,
@@ -4871,7 +4869,7 @@ const Fs = [
4871
4869
  className: "color-icon-container icon-container",
4872
4870
  onClick: _,
4873
4871
  "aria-label": "Open color picker",
4874
- children: /* @__PURE__ */ e.jsx(it, {})
4872
+ children: /* @__PURE__ */ e.jsx(ut, {})
4875
4873
  }
4876
4874
  )
4877
4875
  ] }),
@@ -4928,7 +4926,7 @@ const Os = 2050, Qn = 1900, Se = [
4928
4926
  let v = /* @__PURE__ */ new Date();
4929
4927
  v.setFullYear(c), d.type === "NEXT_MONTH" ? o === Se[11] ? (v.setMonth(0), v.setFullYear(c + 1)) : v.setMonth(Se.indexOf(o) + 1) : d.type === "PREV_MONTH" ? o === Se[0] ? (v.setMonth(11), v.setFullYear(c - 1)) : v.setMonth(Se.indexOf(o) - 1) : v.setMonth(Se.indexOf(o)), v.setDate(d.day), n && n(v.getFullYear(), v.getMonth(), v.getDate()), t && t();
4930
4928
  }, [o, c, n, t, d]);
4931
- return /* @__PURE__ */ e.jsxs(mn, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
4929
+ return /* @__PURE__ */ e.jsxs(xn, { className: "calendar-body-container", style: { maxWidth: "328px" }, children: [
4932
4930
  /* @__PURE__ */ e.jsxs("div", { className: "calendar-body-select-container", children: [
4933
4931
  /* @__PURE__ */ e.jsx("div", { className: "month", children: /* @__PURE__ */ e.jsxs("span", { className: x === "MONTHS" ? "active" : "", onClick: () => f(
4934
4932
  "MONTHS"
@@ -5007,7 +5005,7 @@ const Os = 2050, Qn = 1900, Se = [
5007
5005
  ${j ? "input-field_error" : ""}
5008
5006
  ${u ? "input-field_disabled" : ""}
5009
5007
  `, children: [
5010
- /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: p, children: /* @__PURE__ */ e.jsx(ot, {}) }),
5008
+ /* @__PURE__ */ e.jsx("div", { className: "input-field__icon-container", onClick: p, children: /* @__PURE__ */ e.jsx(ht, {}) }),
5011
5009
  /* @__PURE__ */ e.jsx("div", { className: "input-field__input-container", onClick: p, children: /* @__PURE__ */ e.jsx(
5012
5010
  "input",
5013
5011
  {
@@ -5138,7 +5136,7 @@ const zs = ({
5138
5136
  "aria-label": u,
5139
5137
  "aria-multiselectable": "false",
5140
5138
  children: j.map((L, P) => /* @__PURE__ */ e.jsx(
5141
- St,
5139
+ Lt,
5142
5140
  {
5143
5141
  text: L,
5144
5142
  onDelete: () => z(P),
@@ -5314,7 +5312,7 @@ const Dt = ce.forwardRef(({
5314
5312
  "aria-label": "Decrease value",
5315
5313
  tabIndex: 0,
5316
5314
  onKeyDown: (D) => D.key === "Enter" && oe(),
5317
- children: /* @__PURE__ */ e.jsx(ht, {})
5315
+ children: /* @__PURE__ */ e.jsx(Ct, {})
5318
5316
  }
5319
5317
  ),
5320
5318
  /* @__PURE__ */ e.jsx(
@@ -5326,7 +5324,7 @@ const Dt = ce.forwardRef(({
5326
5324
  "aria-label": "Increase value",
5327
5325
  tabIndex: 0,
5328
5326
  onKeyDown: (D) => D.key === "Enter" && ue(),
5329
- children: /* @__PURE__ */ e.jsx(ut, {})
5327
+ children: /* @__PURE__ */ e.jsx(pt, {})
5330
5328
  }
5331
5329
  )
5332
5330
  ] })
@@ -5479,7 +5477,7 @@ const Gs = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, o
5479
5477
  ] }),
5480
5478
  /* @__PURE__ */ e.jsx("div", { className: "clock-input-container", children: c ? /* @__PURE__ */ e.jsx(Ys, { setMinutes: u }) : /* @__PURE__ */ e.jsx(Zs, { setHours: d }) }),
5481
5479
  /* @__PURE__ */ e.jsxs("div", { className: "enter-time-action", children: [
5482
- /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(dt, {}) }),
5480
+ /* @__PURE__ */ e.jsx("div", { className: "enter-time-icon", onClick: () => r(), children: /* @__PURE__ */ e.jsx(jt, {}) }),
5483
5481
  /* @__PURE__ */ e.jsx(be, { className: "little", onClick: x, children: "Cancel" }),
5484
5482
  /* @__PURE__ */ e.jsx(be, { className: "little", onClick: l, children: "OK" })
5485
5483
  ] })
@@ -5692,7 +5690,7 @@ const kn = 0, Nn = 100, Zi = ({ showValue: n = !0, ...t }) => {
5692
5690
  s(Number(f.target.value)), t.onChange && t.onChange(f);
5693
5691
  }, d = (f, m, _) => {
5694
5692
  if (l.current && c.current) {
5695
- let j = fn(c.current);
5693
+ let j = mn(c.current);
5696
5694
  if (j)
5697
5695
  return Js(f, m, _, 0, _ - m) * (j.width - 20) / (_ - m);
5698
5696
  }
@@ -5714,7 +5712,7 @@ const kn = 0, Nn = 100, Zi = ({ showValue: n = !0, ...t }) => {
5714
5712
  t.showMinMax ? /* @__PURE__ */ e.jsx("div", { className: "value right", children: t.max ?? Nn }) : null
5715
5713
  ] }) });
5716
5714
  };
5717
- const Yi = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: o, btn: l }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Kr(i), color: s, ...o }, children: [
5715
+ const Yi = ({ className: n, text: t, title: r, hexColor: s, hexBackground: i, style: o, btn: l }) => /* @__PURE__ */ e.jsxs("div", { className: `alex-evo-sh-ui-kit-empty-page ${n ?? ""}`, style: { background: Jr(i), color: s, ...o }, children: [
5718
5716
  /* @__PURE__ */ e.jsx("h2", { children: r }),
5719
5717
  t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
5720
5718
  l ? /* @__PURE__ */ e.jsx(We, { styleType: l.styleType ?? "filled", style: l.style, className: l.className, onClick: l.onClick, children: l.text }) : null
@@ -5757,7 +5755,7 @@ const qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initCompo
5757
5755
  ] }) : null,
5758
5756
  /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5759
5757
  "}",
5760
- !n && !o ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(hn, {}) }) : null
5758
+ !n && !o ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(fn, {}) }) : null
5761
5759
  ] })
5762
5760
  ] }) });
5763
5761
  }, Qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: o, onlyStringValue: l }) => {
@@ -5794,7 +5792,7 @@ const qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initCompo
5794
5792
  ] }) : null,
5795
5793
  /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
5796
5794
  "]",
5797
- !n && !o ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(hn, {}) }) : null
5795
+ !n && !o ? /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(fn, {}) }) : null
5798
5796
  ] })
5799
5797
  ] }) });
5800
5798
  }, ei = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i }) => {
@@ -5806,7 +5804,7 @@ const qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initCompo
5806
5804
  ":",
5807
5805
  n ? /* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: String(r) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5808
5806
  /* @__PURE__ */ e.jsx("span", { className: "json-base-data", children: /* @__PURE__ */ e.jsx("input", { size: (r == null ? void 0 : r.toString().length) || 10, onChange: o, className: "json-base-data-input", type: "text", value: r !== void 0 ? String(r) : "" }) }),
5809
- /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(hn, {}) })
5807
+ /* @__PURE__ */ e.jsx("span", { className: "json-element json-btn", onClick: i, children: /* @__PURE__ */ e.jsx(fn, {}) })
5810
5808
  ] })
5811
5809
  ] }) }) });
5812
5810
  };
@@ -5882,12 +5880,12 @@ const ni = ({
5882
5880
  left: `${o.x}px`,
5883
5881
  zIndex: 1e3
5884
5882
  };
5885
- return /* @__PURE__ */ e.jsx(xn, { onHide: i, children: /* @__PURE__ */ e.jsx(js, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: l, children: n.map(({ name: d, options: u }, x) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5883
+ return /* @__PURE__ */ e.jsx(hn, { onHide: i, children: /* @__PURE__ */ e.jsx(js, { className: "multi-filter", style: a, children: /* @__PURE__ */ e.jsx("div", { ref: l, children: n.map(({ name: d, options: u }, x) => /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: 16 }, children: [
5886
5884
  x !== 0 && /* @__PURE__ */ e.jsx(je, {}),
5887
5885
  /* @__PURE__ */ e.jsx(K, { type: "title-2", weight: "bold", children: d }),
5888
5886
  /* @__PURE__ */ e.jsx("div", { className: "filter-block", children: u.map((f) => /* @__PURE__ */ e.jsxs("label", { className: "filter-field", children: [
5889
5887
  /* @__PURE__ */ e.jsx(
5890
- wt,
5888
+ Mt,
5891
5889
  {
5892
5890
  name: d,
5893
5891
  checked: (t[d] || []).includes(f),
@@ -5926,7 +5924,7 @@ const ni = ({
5926
5924
  };
5927
5925
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
5928
5926
  /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
5929
- u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(Ln, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: w, children: /* @__PURE__ */ e.jsx(mt, {}) }),
5927
+ u ? /* @__PURE__ */ e.jsx("span", { onClick: p, children: /* @__PURE__ */ e.jsx(Ln, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: w, children: /* @__PURE__ */ e.jsx(gt, {}) }),
5930
5928
  /* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: C, onKeyDown: g, value: a, onFocus: () => x(!0) }),
5931
5929
  u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(ke, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: _, children: /* @__PURE__ */ e.jsx($n, {}) })
5932
5930
  ] }) }),
@@ -5972,9 +5970,9 @@ const Ji = ({
5972
5970
  ...d
5973
5971
  }) => {
5974
5972
  const u = U(null), x = U(null), [f, m] = k(!1), _ = n === "heading" || n === "title" || n === "title-2", j = _ ? "h3" : "span", p = {
5975
- fontSize: pt(n, t),
5976
- fontWeight: Ct(n, r),
5977
- lineHeight: _t(n, s, t),
5973
+ fontSize: at(n, t),
5974
+ fontWeight: lt(n, r),
5975
+ lineHeight: ct(n, s, t),
5978
5976
  ...l
5979
5977
  }, C = _ ? "typography-heading" : "typography-text", g = N(() => {
5980
5978
  if (!u.current || !x.current)
@@ -6060,7 +6058,7 @@ const nt = (n, t) => {
6060
6058
  if (g)
6061
6059
  return;
6062
6060
  $.preventDefault();
6063
- let O = fn($.currentTarget), q = (O == null ? void 0 : O.left) ?? $.pageX, Q = O != null && O.top ? O.top + O.height : $.pageY;
6061
+ let O = mn($.currentTarget), q = (O == null ? void 0 : O.left) ?? $.pageX, Q = O != null && O.top ? O.top + O.height : $.pageY;
6064
6062
  A({ x: q, y: Q, width: (O == null ? void 0 : O.width) ?? 150 }), L(!0);
6065
6063
  }, [s, H, g]), F = {
6066
6064
  small: "input-field__text-field_small",
@@ -6097,7 +6095,7 @@ const nt = (n, t) => {
6097
6095
  ] }) }),
6098
6096
  P && C && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__error-text", children: C }),
6099
6097
  p && !P && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__helper-text", children: p }),
6100
- /* @__PURE__ */ e.jsx(Nt, { marginBottom: r === ae.MOBILE ? 80 : 0, width: R.width, screensize: r, x: R.x, y: R.y, onHide: () => L(!1), container: m, blocks: [{ items: s.map(H) }], visible: z })
6098
+ /* @__PURE__ */ e.jsx(St, { marginBottom: r === ae.MOBILE ? 80 : 0, width: R.width, screensize: r, x: R.x, y: R.y, onHide: () => L(!1), container: m, blocks: [{ items: s.map(H) }], visible: z })
6101
6099
  ] });
6102
6100
  }
6103
6101
  );
@@ -6130,55 +6128,55 @@ const ri = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
6130
6128
  ) })
6131
6129
  ] });
6132
6130
  }, Bt = {
6133
- Dashboard: Wr,
6134
- Copy: ft,
6135
- LogoutIcon: $r,
6136
- Room: Rr,
6137
- Group: Lr,
6138
- OkUserIcon: Mr,
6139
- XUserIcon: Sr,
6140
- MinusUserIcon: wr,
6141
- AddUserIcon: kr,
6142
- UserIcon: Nr,
6143
- LinkIcon: yr,
6144
- UnLinkIcon: br,
6145
- GearIcon: gr,
6131
+ Dashboard: Gr,
6132
+ Copy: _t,
6133
+ LogoutIcon: Er,
6134
+ Room: Fr,
6135
+ Group: Rr,
6136
+ OkUserIcon: $r,
6137
+ XUserIcon: Lr,
6138
+ MinusUserIcon: Mr,
6139
+ AddUserIcon: wr,
6140
+ UserIcon: Sr,
6141
+ LinkIcon: Nr,
6142
+ UnLinkIcon: kr,
6143
+ GearIcon: yr,
6146
6144
  X: ke,
6147
- Trash: st,
6148
- Pen: ct,
6149
- Palette: it,
6150
- Home: _r,
6145
+ Trash: dt,
6146
+ Pen: mt,
6147
+ Palette: ut,
6148
+ Home: gr,
6151
6149
  MoreHorizontal: cn,
6152
- MenuIcon: lt,
6153
- MoreVertical: at,
6154
- CircleMinus: hn,
6155
- Calendar: ot,
6150
+ MenuIcon: xt,
6151
+ MoreVertical: ft,
6152
+ CircleMinus: fn,
6153
+ Calendar: ht,
6156
6154
  Check: Le,
6157
6155
  ChevronDown: ln,
6158
6156
  CirclePlus: Rn,
6159
6157
  Clock: Mn,
6160
6158
  ArrowLeft: Ln,
6161
- ArrowRight: pr,
6162
- ArrowUp: Cr,
6163
- Keyboard: dt,
6159
+ ArrowRight: _r,
6160
+ ArrowUp: vr,
6161
+ Keyboard: jt,
6164
6162
  Search: $n,
6165
- Plus: ut,
6166
- Minus: ht,
6167
- Plug: vr,
6168
- LampIcon: Er,
6169
- SwitchIcon: Fr,
6170
- ConditionerIcon: Tr,
6171
- ConditionerIcon2: Vr,
6172
- TempHighIcon: xt,
6173
- Sensor: Or,
6174
- Sensor2: Dr,
6175
- Sensor3: Ir,
6176
- SensorWarning: Ar,
6177
- Curtains: Pr,
6178
- FilterIcon: mt,
6179
- Play: Br,
6180
- ToolsIcon: Hr,
6181
- Addons: zr
6163
+ Plus: pt,
6164
+ Minus: Ct,
6165
+ Plug: br,
6166
+ LampIcon: Vr,
6167
+ SwitchIcon: Tr,
6168
+ ConditionerIcon: Dr,
6169
+ ConditionerIcon2: Or,
6170
+ TempHighIcon: vt,
6171
+ Sensor: Ir,
6172
+ Sensor2: Ar,
6173
+ Sensor3: Pr,
6174
+ SensorWarning: Br,
6175
+ Curtains: Hr,
6176
+ FilterIcon: gt,
6177
+ Play: Wr,
6178
+ ToolsIcon: zr,
6179
+ Addons: Zr
6182
6180
  }, si = Object.entries(Bt).map(([n, t]) => ({
6183
6181
  id: n,
6184
6182
  name: n.charAt(0).toUpperCase() + n.slice(1),
@@ -6257,7 +6255,7 @@ const Ee = (n) => {
6257
6255
  c && c(d.target.checked);
6258
6256
  };
6259
6257
  return /* @__PURE__ */ e.jsx("div", { className: `input-field form-switch ${i}`, style: r, children: /* @__PURE__ */ e.jsx(
6260
- $t,
6258
+ Et,
6261
6259
  {
6262
6260
  readOnly: s,
6263
6261
  ref: t,
@@ -6274,7 +6272,7 @@ const Ee = (n) => {
6274
6272
  c && c(!1);
6275
6273
  }, d = N(() => l ? [n ?? o] : [], [l, o, n]);
6276
6274
  return /* @__PURE__ */ e.jsx(
6277
- Lt,
6275
+ Rt,
6278
6276
  {
6279
6277
  className: i,
6280
6278
  style: r,
@@ -6346,149 +6344,150 @@ const ji = (n) => {
6346
6344
  DateField: pi
6347
6345
  });
6348
6346
  export {
6349
- kr as AddUserIcon,
6350
- zr as Addons,
6347
+ wr as AddUserIcon,
6348
+ Zr as Addons,
6351
6349
  Ln as ArrowLeft,
6352
- pr as ArrowRight,
6353
- Cr as ArrowUp,
6350
+ _r as ArrowRight,
6351
+ vr as ArrowUp,
6354
6352
  Ei as BaseActionCard,
6355
6353
  Qe as BaseButton,
6356
- ds as BaseDialog,
6357
- as as BaseMenu,
6354
+ Yr as BaseDialog,
6355
+ cs as BaseMenu,
6358
6356
  At as BaseType,
6359
6357
  qe as BasicTemplateDialog,
6360
6358
  Fi as BigContainer,
6361
- Rt as BottomSheetsUi,
6359
+ it as BottomSheetsUi,
6362
6360
  We as Button,
6363
- ot as Calendar,
6361
+ ht as Calendar,
6364
6362
  fs as Card,
6365
6363
  Le as Check,
6366
- wt as Checkbox,
6364
+ Mt as Checkbox,
6367
6365
  ln as ChevronDown,
6368
- St as Chips,
6366
+ Lt as Chips,
6369
6367
  Mi as CircleInput,
6370
- hn as CircleMinus,
6368
+ fn as CircleMinus,
6371
6369
  Rn as CirclePlus,
6372
6370
  Mn as Clock,
6373
6371
  En as ColorContext,
6374
6372
  zi as ColorField,
6375
6373
  wi as ColorProvider,
6376
6374
  Vi as ColumnLayout,
6377
- Tr as ConditionerIcon,
6378
- Vr as ConditionerIcon2,
6375
+ Dr as ConditionerIcon,
6376
+ Or as ConditionerIcon2,
6379
6377
  Ti as ContentBox,
6380
- ft as Copy,
6378
+ _t as Copy,
6381
6379
  Yn as CopyButton,
6382
- Pr as Curtains,
6383
- Wr as Dashboard,
6380
+ Hr as Curtains,
6381
+ Ur as DangerButton,
6382
+ Gr as Dashboard,
6384
6383
  As as DateField,
6385
6384
  Hs as DayOfWeekField,
6386
6385
  je as Divider,
6387
6386
  Yi as EmptyPage,
6388
- ts as FAB,
6387
+ ss as FAB,
6389
6388
  jr as FilledButton,
6390
6389
  mr as FilledTotalButton,
6391
- mt as FilterIcon,
6390
+ gt as FilterIcon,
6392
6391
  n1 as Form,
6393
6392
  Ri as FullScreenTemplateDialog,
6394
- gr as GearIcon,
6393
+ yr as GearIcon,
6395
6394
  Di as GridLayout,
6396
6395
  Oi as GridLayoutItem,
6397
- Lr as Group,
6396
+ Rr as Group,
6398
6397
  ze as HEXtoRGB,
6399
6398
  ki as HSLtoHSV,
6400
6399
  Ni as HSVtoHSL,
6401
6400
  Ke as HSVtoRGB,
6402
- _r as Home,
6401
+ gr as Home,
6403
6402
  ye as IconButton,
6404
6403
  Li as IconButtonMenu,
6405
6404
  ri as IconSelectField,
6406
6405
  qi as IconsSelect,
6407
6406
  Ui as JsonContainer,
6408
- dt as Keyboard,
6409
- Er as LampIcon,
6410
- yr as LinkIcon,
6407
+ jt as Keyboard,
6408
+ Vr as LampIcon,
6409
+ Nr as LinkIcon,
6411
6410
  ps as ListContainer,
6412
6411
  Cs as ListItem,
6413
- $r as LogoutIcon,
6414
- Nt as Menu,
6415
- lt as MenuIcon,
6416
- ht as Minus,
6417
- wr as MinusUserIcon,
6418
- mn as ModalDialogTemplate,
6412
+ Er as LogoutIcon,
6413
+ St as Menu,
6414
+ xt as MenuIcon,
6415
+ Ct as Minus,
6416
+ Mr as MinusUserIcon,
6417
+ xn as ModalDialogTemplate,
6419
6418
  Oe as ModalPortal,
6420
- xn as ModalTemplate,
6419
+ hn as ModalTemplate,
6421
6420
  cn as MoreHorizontal,
6422
6421
  zs as MoreText,
6423
- at as MoreVertical,
6422
+ ft as MoreVertical,
6424
6423
  ni as MultiFilter,
6425
6424
  Bi as NavigationBar,
6426
6425
  Hi as NavigationDrawer,
6427
6426
  Wi as NavigationRail,
6428
6427
  Dt as NumberField,
6429
- Mr as OkUserIcon,
6428
+ $r as OkUserIcon,
6430
6429
  rt as OutlineButton,
6431
- it as Palette,
6430
+ ut as Palette,
6432
6431
  js as Panel,
6433
- ct as Pen,
6434
- Br as Play,
6435
- vr as Plug,
6436
- ut as Plus,
6432
+ mt as Pen,
6433
+ Wr as Play,
6434
+ br as Plug,
6435
+ pt as Plus,
6437
6436
  on as PopupState,
6438
6437
  an as RGBtoHSV,
6439
- Mt as RadioButton,
6438
+ $t as RadioButton,
6440
6439
  Si as Range,
6441
- Rr as Room,
6440
+ Fr as Room,
6442
6441
  Ji as RunningLine,
6443
6442
  ae as ScreenSize,
6444
6443
  Ii as ScrollContainer,
6445
6444
  Ki as Search,
6446
6445
  Xi as SearchAndFilter,
6447
- Lt as SegmentedButton,
6446
+ Rt as SegmentedButton,
6448
6447
  Pt as SelectField,
6449
6448
  us as SelectionDialog,
6450
- Or as Sensor,
6451
- Dr as Sensor2,
6452
- Ir as Sensor3,
6453
- Ar as SensorWarning,
6449
+ Ir as Sensor,
6450
+ Ar as Sensor2,
6451
+ Pr as Sensor3,
6452
+ Br as SensorWarning,
6454
6453
  Ge as SizeContext,
6455
- yi as SizeProvider,
6454
+ bi as SizeProvider,
6456
6455
  Zi as Slider,
6457
- ls as SmallWindowMenu,
6456
+ ds as SmallWindowMenu,
6458
6457
  ti as Snackbar,
6459
6458
  oi as SneckbarContext,
6460
6459
  e1 as SneckbarProvider,
6461
- $t as Switch,
6462
- Fr as SwitchIcon,
6460
+ Et as Switch,
6461
+ Tr as SwitchIcon,
6463
6462
  Pi as Table,
6464
6463
  Ai as Tabs,
6465
- bi as Temp,
6466
- xt as TempHighIcon,
6464
+ yi as Temp,
6465
+ vt as TempHighIcon,
6467
6466
  It as TextArea,
6468
6467
  be as TextButton,
6469
6468
  $i as TextDialog,
6470
6469
  en as TextField,
6471
6470
  Gi as TimeField,
6472
6471
  Ks as TimePicker,
6473
- Hr as ToolsIcon,
6474
- vt as Tooltip,
6475
- st as Trash,
6472
+ zr as ToolsIcon,
6473
+ bt as Tooltip,
6474
+ dt as Trash,
6476
6475
  K as Typography,
6477
- br as UnLinkIcon,
6478
- Nr as UserIcon,
6476
+ kr as UnLinkIcon,
6477
+ Sr as UserIcon,
6479
6478
  ke as X,
6480
- Sr as XUserIcon,
6479
+ Lr as XUserIcon,
6481
6480
  rn as getContainerColor,
6482
- fn as getContainerData,
6481
+ mn as getContainerData,
6483
6482
  Qi as getIcons,
6484
- yt as getModalWindowCord,
6483
+ Nt as getModalWindowCord,
6485
6484
  me as getTextColor,
6486
- Ur as hexToRgb,
6485
+ Xr as hexToRgb,
6487
6486
  Js as map,
6488
- Jr as useColors,
6489
- Yr as usePopup,
6490
- Gr as useScreenSize,
6491
- Et as useScrollLock,
6492
- es as useThemes,
6487
+ Qr as useColors,
6488
+ Kr as usePopup,
6489
+ pr as useScreenSize,
6490
+ st as useScrollLock,
6491
+ ts as useThemes,
6493
6492
  Is as СalendarPickers
6494
6493
  };