intelicoreact 2.0.10 → 2.0.12

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/index.js CHANGED
@@ -1036,7 +1036,7 @@ var ApiUtils = class extends Utils_default {
1036
1036
  // ? т.к. на разных проектах могут быть разные интерпретации пропы api
1037
1037
  // ? Метод не планировался как асинхронный,
1038
1038
  // ? однако ввиду того что он может быть перегружен на экземпляре асинхронность предусматривается
1039
- async getRootPath() {
1039
+ async getRootPath(_apiProp) {
1040
1040
  return this.API_PATH;
1041
1041
  }
1042
1042
  /**
@@ -1801,7 +1801,7 @@ var RESTAPI = class extends ApiBase_default {
1801
1801
  };
1802
1802
  return {
1803
1803
  ...rest,
1804
- path: `${fullPath || await API_CONTEXT.getRootPath() + (typeof path === "string" ? path : "")}`,
1804
+ path: `${fullPath || await API_CONTEXT.getRootPath(api) + (typeof path === "string" ? path : "")}`,
1805
1805
  // ? Запускаем самовызывающуюся асинхронную ф-ю, ждем резолва промиса от нее
1806
1806
  queryParameters: await (async () => {
1807
1807
  const queryParams = query || queryParameters || "";
@@ -20572,334 +20572,6 @@ function Header({
20572
20572
  }
20573
20573
  var Header_default = Header;
20574
20574
 
20575
- // src/Atomic/Layout/MainMenu/MainMenu.tsx
20576
- import cn81 from "classnames";
20577
- import { useState as useState68 } from "react";
20578
- import * as Icons3 from "react-feather";
20579
- import { NavLink as NavLink3 } from "react-router-dom";
20580
-
20581
- // src/Atomic/UI/Accordion/Accordion.tsx
20582
- import cn80 from "classnames";
20583
- import { useState as useState67 } from "react";
20584
- import * as Icons2 from "react-feather";
20585
- import { NavLink as NavLink2 } from "react-router-dom";
20586
-
20587
- // src/Atomic/UI/Accordion/AccordionItem.tsx
20588
- import cn79 from "classnames";
20589
- import { useEffect as useEffect60, useRef as useRef42, useState as useState66 } from "react";
20590
- import * as Icons from "react-feather";
20591
- import { NavLink } from "react-router-dom";
20592
-
20593
- // src/Atomic/UI/Status/index.ts
20594
- var Status_default2 = Status_default;
20595
-
20596
- // src/Atomic/UI/Accordion/AccordionItem.tsx
20597
- import { jsx as jsx149, jsxs as jsxs110 } from "react/jsx-runtime";
20598
- var AccordionItem = ({
20599
- item,
20600
- onClick,
20601
- isOpen,
20602
- className,
20603
- children,
20604
- noChevron,
20605
- testId = "accordion-item"
20606
- }) => {
20607
- const Icon2 = Icons[item.icon];
20608
- const [maxHeight, setMaxHeight] = useState66(0);
20609
- const ref = useRef42(null);
20610
- const getItemsHeight = () => {
20611
- let itemHeight = 0;
20612
- ref.current?.childNodes.forEach((el) => {
20613
- itemHeight += el.offsetHeight;
20614
- });
20615
- return itemHeight + 20;
20616
- };
20617
- useEffect60(() => {
20618
- setMaxHeight(isOpen ? getItemsHeight() : 0);
20619
- }, [isOpen]);
20620
- const calculateStatusCount = () => {
20621
- return item?.rows?.reduce(
20622
- (acc, row) => {
20623
- const result = row.cols.reduce(
20624
- (accum, col) => ({
20625
- active: accum.active + (col.status === "active" ? 1 : 0),
20626
- pause: accum.pause + (col.status === "pause" ? 1 : 0)
20627
- }),
20628
- { active: 0, pause: 0 }
20629
- );
20630
- return {
20631
- active: acc.active + result.active,
20632
- pause: acc.pause + result.pause
20633
- };
20634
- },
20635
- { active: 0, pause: 0 }
20636
- );
20637
- };
20638
- return /* @__PURE__ */ jsxs110(
20639
- "div",
20640
- {
20641
- "data-testid": testId,
20642
- className: cn79("accordion--item", className),
20643
- role: "region",
20644
- "aria-labelledby": `accordion-title-${item.title}`,
20645
- children: [
20646
- /* @__PURE__ */ jsxs110(
20647
- "div",
20648
- {
20649
- className: cn79("accordion--title-box", {
20650
- "accordion--title-open": isOpen
20651
- }),
20652
- onClick: () => onClick(!isOpen),
20653
- id: `accordion-title-${item.title}`,
20654
- role: "button",
20655
- "aria-expanded": isOpen,
20656
- "aria-controls": `accordion-content-${item.title}`,
20657
- tabIndex: 0,
20658
- children: [
20659
- /* @__PURE__ */ jsxs110("div", { className: "j4 no-wrap", children: [
20660
- item?.icon && /* @__PURE__ */ jsx149(Icon2, { className: cn79("mr5", item?.className), "aria-hidden": "true" }),
20661
- /* @__PURE__ */ jsx149("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
20662
- ] }),
20663
- /* @__PURE__ */ jsxs110("div", { className: "j6 accordion-title__right-box", children: [
20664
- item.status && /* @__PURE__ */ jsx149("div", { className: "mr5", children: /* @__PURE__ */ jsx149(
20665
- Status_default2,
20666
- {
20667
- type: item?.status.type,
20668
- value: item?.status.value,
20669
- status: item?.status.status,
20670
- active: calculateStatusCount()?.active,
20671
- pause: calculateStatusCount()?.pause
20672
- }
20673
- ) }),
20674
- !noChevron && /* @__PURE__ */ jsx149(
20675
- Icons.ChevronRight,
20676
- {
20677
- "aria-hidden": "true",
20678
- className: cn79("accordion--title-chevron", {
20679
- "accordion--title-chevron-open": isOpen
20680
- })
20681
- }
20682
- )
20683
- ] })
20684
- ]
20685
- }
20686
- ),
20687
- /* @__PURE__ */ jsx149(
20688
- "div",
20689
- {
20690
- ref,
20691
- style: { maxHeight },
20692
- className: cn79("accordion--content", {
20693
- "accordion--content-is-open": isOpen
20694
- }),
20695
- id: `accordion-content-${item.title}`,
20696
- role: "region",
20697
- "aria-labelledby": `accordion-title-${item.title}`,
20698
- children: item.children ? item.children.map((el) => {
20699
- return /* @__PURE__ */ jsx149(NavLink, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
20700
- }) : children
20701
- }
20702
- )
20703
- ]
20704
- }
20705
- );
20706
- };
20707
- var AccordionItem_default = AccordionItem;
20708
-
20709
- // src/Atomic/UI/Accordion/Accordion.tsx
20710
- import { jsx as jsx150, jsxs as jsxs111 } from "react/jsx-runtime";
20711
- var CN7 = "accordion";
20712
- var Accordion = ({
20713
- items,
20714
- className,
20715
- itemClassName,
20716
- isMenuHovered,
20717
- isOpen,
20718
- testId = CN7
20719
- }) => {
20720
- const [data, setData] = useState67(items);
20721
- const onChange = handleObjectChange(setData, () => setData([...data]));
20722
- const handleArrayChange = (e, index, prop) => {
20723
- data[index][prop] = e;
20724
- onChange(data);
20725
- };
20726
- return /* @__PURE__ */ jsx150("div", { className: cn80(CN7, className), "data-testid": testId, role: "list", "aria-label": "Accordion list", children: items?.map((item, index) => {
20727
- const Icon2 = Icons2[item.icon];
20728
- return item.link ? /* @__PURE__ */ jsxs111(
20729
- NavLink2,
20730
- {
20731
- "data-testid": `${testId}-link-${index}`,
20732
- to: item.link,
20733
- className: cn80("main-menu--item main-menu--items-box-title"),
20734
- children: [
20735
- item?.icon && /* @__PURE__ */ jsx150(Icon2, { className: cn80("mr5", item?.className) }),
20736
- /* @__PURE__ */ jsx150("span", { className: cn80({ hidden: !isOpen && !isMenuHovered }), children: item?.title || "Link" })
20737
- ]
20738
- },
20739
- index
20740
- ) : /* @__PURE__ */ jsx150(
20741
- AccordionItem_default,
20742
- {
20743
- testId: `${testId}-item-${index}`,
20744
- className: itemClassName,
20745
- item,
20746
- isOpen: !!item.isOpen,
20747
- onClick: (value) => handleArrayChange(value, index, "isOpen")
20748
- },
20749
- index
20750
- );
20751
- }) });
20752
- };
20753
- var Accordion_default = Accordion;
20754
-
20755
- // src/Atomic/Layout/MainMenu/MainMenu.tsx
20756
- import { jsx as jsx151, jsxs as jsxs112 } from "react/jsx-runtime";
20757
- function MainMenu(props) {
20758
- const { items, className } = props;
20759
- const lng = globalThis.lng;
20760
- const txt = Langs_default[lng];
20761
- const [isOpen, setIsOpen] = useState68(true);
20762
- const [isMenuHovered, setIsMenuHovered] = useState68(false);
20763
- const [isMenuIconHovered, setIsMenuIconHovered] = useState68(false);
20764
- const chapterClass = cn81("main-menu--items-box-chapter", {
20765
- "main-menu--items-box-chapter-hidden": !isOpen && !isMenuHovered
20766
- });
20767
- const accordionClass = cn81("main-menu--accordion", {
20768
- "main-menu--accordion-hidden": !isOpen && !isMenuHovered
20769
- });
20770
- const itemsBoxClass = cn81("main-menu--items-box", {
20771
- "main-menu--items-box-closed": !isOpen && !isMenuHovered
20772
- });
20773
- const mainMenuClass = cn81("main-menu", className, {
20774
- "main-menu--closed": !isOpen && !isMenuHovered
20775
- });
20776
- const onMenuHover = () => {
20777
- if (!isOpen) {
20778
- setIsMenuHovered(!isMenuHovered);
20779
- items.mainMenu.forEach((item) => {
20780
- item.isOpen = false;
20781
- });
20782
- items.partners.forEach((item) => {
20783
- item.isOpen = false;
20784
- });
20785
- items.other.forEach((item) => {
20786
- item.isOpen = false;
20787
- });
20788
- }
20789
- };
20790
- const onCloseMenu = () => {
20791
- setIsOpen(!isOpen);
20792
- items.mainMenu.forEach((item) => {
20793
- item.isOpen = false;
20794
- });
20795
- items.partners.forEach((item) => {
20796
- item.isOpen = false;
20797
- });
20798
- items.other.forEach((item) => {
20799
- item.isOpen = false;
20800
- });
20801
- };
20802
- const changeMenuIcon = () => {
20803
- if (isOpen && !isMenuIconHovered) return /* @__PURE__ */ jsx151(Icons3.Menu, {});
20804
- if (isOpen && isMenuIconHovered) return /* @__PURE__ */ jsx151(Icons3.ChevronLeft, {});
20805
- if (!isOpen && isMenuHovered) return /* @__PURE__ */ jsx151(Icons3.ChevronRight, {});
20806
- if (!isOpen) return /* @__PURE__ */ jsx151("div", { className: "main-menu--logo-close" });
20807
- return null;
20808
- };
20809
- return /* @__PURE__ */ jsxs112(
20810
- "div",
20811
- {
20812
- className: mainMenuClass,
20813
- onMouseEnter: () => onMenuHover(),
20814
- onMouseLeave: () => setIsMenuHovered(false),
20815
- children: [
20816
- /* @__PURE__ */ jsxs112(
20817
- "div",
20818
- {
20819
- className: cn81("main-menu--header", {
20820
- "main-menu--header-closed": !isOpen && !isMenuHovered
20821
- }),
20822
- children: [
20823
- /* @__PURE__ */ jsx151(
20824
- "div",
20825
- {
20826
- className: cn81("main-menu--logo", {
20827
- "main-menu--logo-none": !isOpen && !isMenuHovered
20828
- })
20829
- }
20830
- ),
20831
- /* @__PURE__ */ jsx151("div", { "data-testid": "main-menu--header-btn", className: "main-menu--header-btn", onClick: () => onCloseMenu(), children: /* @__PURE__ */ jsx151(
20832
- "div",
20833
- {
20834
- className: "j5",
20835
- onMouseEnter: () => setIsMenuIconHovered(true),
20836
- onMouseLeave: () => setIsMenuIconHovered(false),
20837
- children: changeMenuIcon()
20838
- }
20839
- ) })
20840
- ]
20841
- }
20842
- ),
20843
- /* @__PURE__ */ jsxs112("div", { className: itemsBoxClass, children: [
20844
- /* @__PURE__ */ jsx151("div", { className: cn81("main-menu--items-box-main"), children: items.main.map((item, index) => {
20845
- const Icon2 = Icons3[item.icon];
20846
- return item.link ? /* @__PURE__ */ jsx151(
20847
- NavLink3,
20848
- {
20849
- to: item.link,
20850
- className: cn81("main-menu--items-box-title"),
20851
- children: /* @__PURE__ */ jsxs112("div", { className: "main-menu--item", children: [
20852
- /* @__PURE__ */ jsx151("div", { className: "df", children: /* @__PURE__ */ jsx151(Icon2, { className: cn81("mr5", item.className) }) }),
20853
- /* @__PURE__ */ jsx151("span", { className: cn81({ hidden: !isOpen && !isMenuHovered }), children: item?.title || "Link" })
20854
- ] })
20855
- },
20856
- index
20857
- ) : /* @__PURE__ */ jsx151(
20858
- "span",
20859
- {
20860
- className: cn81("main-menu--items-box-title", {
20861
- hidden: !isOpen && !isMenuHovered
20862
- }),
20863
- children: txt?.titles[item?.title]
20864
- },
20865
- index
20866
- );
20867
- }) }),
20868
- /* @__PURE__ */ jsx151("div", { className: chapterClass, children: /* @__PURE__ */ jsx151("span", { children: "Main menu" }) }),
20869
- /* @__PURE__ */ jsx151(
20870
- Accordion_default,
20871
- {
20872
- className: accordionClass,
20873
- items: items.mainMenu
20874
- }
20875
- ),
20876
- /* @__PURE__ */ jsx151("div", { className: chapterClass, children: /* @__PURE__ */ jsx151("span", { children: "Partners" }) }),
20877
- /* @__PURE__ */ jsx151(
20878
- Accordion_default,
20879
- {
20880
- isOpen,
20881
- isMenuHovered,
20882
- className: accordionClass,
20883
- items: items.partners
20884
- }
20885
- ),
20886
- /* @__PURE__ */ jsx151("div", { className: chapterClass, children: /* @__PURE__ */ jsx151("span", { children: "Other" }) }),
20887
- /* @__PURE__ */ jsx151(
20888
- Accordion_default,
20889
- {
20890
- className: accordionClass,
20891
- isOpen,
20892
- isMenuHovered,
20893
- items: items.other
20894
- }
20895
- )
20896
- ] })
20897
- ]
20898
- }
20899
- );
20900
- }
20901
- var MainMenu_default = MainMenu;
20902
-
20903
20575
  // src/Functions/presets/inputMaskPresets.js
20904
20576
  var DATE_PRESET = {
20905
20577
  type: "inputMask",
@@ -21034,14 +20706,11 @@ var INPUT_PRESETS = {
21034
20706
  ONLY_STRING_AND_DASH
21035
20707
  };
21036
20708
 
21037
- // src/Atomic/UI/Accordion/index.ts
21038
- var Accordion_default2 = Accordion_default;
21039
-
21040
20709
  // src/Atomic/UI/AccordionTable/AccordionTable.js
21041
- import React60, { useEffect as useEffect61, useState as useState69 } from "react";
21042
- import cn82 from "classnames";
20710
+ import React58, { useEffect as useEffect60, useState as useState66 } from "react";
20711
+ import cn79 from "classnames";
21043
20712
  import { ArrowDown as ArrowDown2, ArrowUp as ArrowUp2, ChevronDown as ChevronDown7, Tag as Tag2 } from "react-feather";
21044
- import { jsx as jsx152, jsxs as jsxs113 } from "react/jsx-runtime";
20713
+ import { jsx as jsx149, jsxs as jsxs110 } from "react/jsx-runtime";
21045
20714
  var AccordionTable = ({
21046
20715
  className,
21047
20716
  header,
@@ -21052,8 +20721,8 @@ var AccordionTable = ({
21052
20721
  },
21053
20722
  sortParams
21054
20723
  }) => {
21055
- const [accordions, setAccordions] = useState69(items);
21056
- const sortedColClassName = (item) => cn82(
20724
+ const [accordions, setAccordions] = useState66(items);
20725
+ const sortedColClassName = (item) => cn79(
21057
20726
  "accordion-table__header-item",
21058
20727
  item.className,
21059
20728
  {
@@ -21096,16 +20765,16 @@ var AccordionTable = ({
21096
20765
  };
21097
20766
  const renderTd = (tr) => {
21098
20767
  return Object.entries(tr)?.map(([key, value]) => {
21099
- return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ jsx152(
20768
+ return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ jsx149(
21100
20769
  "div",
21101
20770
  {
21102
20771
  style: { flexBasis: `${getHeaderItem(key)?.width}%` },
21103
- className: cn82(
20772
+ className: cn79(
21104
20773
  "accordion-table__td",
21105
20774
  `accordion-table__td--${key}`,
21106
20775
  getHeaderItem(key)?.className
21107
20776
  ),
21108
- children: /* @__PURE__ */ jsx152(
20777
+ children: /* @__PURE__ */ jsx149(
21109
20778
  "p",
21110
20779
  {
21111
20780
  className: "accordion-table__statistics-td-value",
@@ -21120,10 +20789,10 @@ var AccordionTable = ({
21120
20789
  };
21121
20790
  const renderTr = (rows) => {
21122
20791
  return rows?.map((row, index) => {
21123
- return /* @__PURE__ */ jsxs113(
20792
+ return /* @__PURE__ */ jsxs110(
21124
20793
  "div",
21125
20794
  {
21126
- className: cn82(
20795
+ className: cn79(
21127
20796
  "accordion-table__tr",
21128
20797
  {
21129
20798
  "accordion-table__tr-with-promo": row.promoDetails || row.cols?.promoDetails
@@ -21131,13 +20800,13 @@ var AccordionTable = ({
21131
20800
  row.className
21132
20801
  ),
21133
20802
  children: [
21134
- /* @__PURE__ */ jsx152("div", { className: "df w100", children: renderTd(row.cols || row) }),
21135
- row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ jsx152("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsxs113("div", { className: "accordion-table__tr-promo", children: [
21136
- /* @__PURE__ */ jsx152(Tag2, { className: "tr-promo-icon", width: 16, height: 16 }),
21137
- /* @__PURE__ */ jsx152("span", { className: "tr-promo-label", children: "PROMOTION" }),
20803
+ /* @__PURE__ */ jsx149("div", { className: "df w100", children: renderTd(row.cols || row) }),
20804
+ row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ jsx149("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsxs110("div", { className: "accordion-table__tr-promo", children: [
20805
+ /* @__PURE__ */ jsx149(Tag2, { className: "tr-promo-icon", width: 16, height: 16 }),
20806
+ /* @__PURE__ */ jsx149("span", { className: "tr-promo-label", children: "PROMOTION" }),
21138
20807
  row.promoDetails || row.cols?.promoDetails
21139
20808
  ] }) }) : null,
21140
- row.disclosure || row.cols?.disclosure ? /* @__PURE__ */ jsx152("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsx152("div", { className: "accordion-table__tr-promo accordion-table__tr-promo-disclosure", children: row.disclosure || row.cols?.disclosure }) }) : null
20809
+ row.disclosure || row.cols?.disclosure ? /* @__PURE__ */ jsx149("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsx149("div", { className: "accordion-table__tr-promo accordion-table__tr-promo-disclosure", children: row.disclosure || row.cols?.disclosure }) }) : null
21141
20810
  ]
21142
20811
  },
21143
20812
  index
@@ -21145,34 +20814,34 @@ var AccordionTable = ({
21145
20814
  });
21146
20815
  };
21147
20816
  const defineAccordionTitle = (row) => {
21148
- return /* @__PURE__ */ jsxs113(
20817
+ return /* @__PURE__ */ jsxs110(
21149
20818
  "div",
21150
20819
  {
21151
20820
  onClick: (e) => handle.accordionChange(row.key, e),
21152
20821
  className: "accordion-table__accordion-label-box",
21153
20822
  children: [
21154
- /* @__PURE__ */ jsxs113("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
21155
- /* @__PURE__ */ jsx152(
20823
+ /* @__PURE__ */ jsxs110("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
20824
+ /* @__PURE__ */ jsx149(
21156
20825
  ChevronDown7,
21157
20826
  {
21158
20827
  width: 8,
21159
20828
  height: 4,
21160
- className: cn82("accordion-label-box__icon", {
20829
+ className: cn79("accordion-label-box__icon", {
21161
20830
  "accordion-label-box__icon--open": row.isOpen
21162
20831
  })
21163
20832
  }
21164
20833
  ),
21165
- /* @__PURE__ */ jsx152("span", { className: "accordion-label-box__label", children: row.label }),
21166
- row.statistics && /* @__PURE__ */ jsx152("div", { className: cn82("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
21167
- return /* @__PURE__ */ jsx152(
20834
+ /* @__PURE__ */ jsx149("span", { className: "accordion-label-box__label", children: row.label }),
20835
+ row.statistics && /* @__PURE__ */ jsx149("div", { className: cn79("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
20836
+ return /* @__PURE__ */ jsx149(
21168
20837
  "div",
21169
20838
  {
21170
20839
  style: { width: `${getHeaderItem(key)?.width}%` },
21171
- className: cn82(
20840
+ className: cn79(
21172
20841
  "accordion-table__statistics-td",
21173
20842
  getHeaderItem(key)?.className
21174
20843
  ),
21175
- children: /* @__PURE__ */ jsx152("div", { className: "accordion-table__statistics-td-value-wrapper", children: key === "status" ? /* @__PURE__ */ jsx152("div", { className: "accordion-table__statistics-td-value", children: value }) : /* @__PURE__ */ jsx152(
20844
+ children: /* @__PURE__ */ jsx149("div", { className: "accordion-table__statistics-td-value-wrapper", children: key === "status" ? /* @__PURE__ */ jsx149("div", { className: "accordion-table__statistics-td-value", children: value }) : /* @__PURE__ */ jsx149(
21176
20845
  "p",
21177
20846
  {
21178
20847
  className: "accordion-table__statistics-td-value",
@@ -21190,33 +20859,33 @@ var AccordionTable = ({
21190
20859
  }
21191
20860
  );
21192
20861
  };
21193
- useEffect61(() => {
20862
+ useEffect60(() => {
21194
20863
  setAccordions(items);
21195
20864
  }, [items]);
21196
- return /* @__PURE__ */ jsxs113("div", { className: cn82("accordion-table", className), children: [
21197
- /* @__PURE__ */ jsx152("div", { className: "accordion-table__header", children: header?.map((item) => {
21198
- return /* @__PURE__ */ jsxs113(
20865
+ return /* @__PURE__ */ jsxs110("div", { className: cn79("accordion-table", className), children: [
20866
+ /* @__PURE__ */ jsx149("div", { className: "accordion-table__header", children: header?.map((item) => {
20867
+ return /* @__PURE__ */ jsxs110(
21199
20868
  "div",
21200
20869
  {
21201
20870
  style: { flexBasis: `${item.width}%` },
21202
20871
  className: sortedColClassName(item),
21203
20872
  onClick: () => !item.noSort && handle.setSort(item.key),
21204
20873
  children: [
21205
- sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ jsx152(ArrowDown2, { size: 16 }) : /* @__PURE__ */ jsx152(ArrowUp2, { size: 16 })),
20874
+ sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ jsx149(ArrowDown2, { size: 16 }) : /* @__PURE__ */ jsx149(ArrowUp2, { size: 16 })),
21206
20875
  item.label
21207
20876
  ]
21208
20877
  },
21209
20878
  item.key
21210
20879
  );
21211
20880
  }) }),
21212
- /* @__PURE__ */ jsx152("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
21213
- return /* @__PURE__ */ jsx152(
20881
+ /* @__PURE__ */ jsx149("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
20882
+ return /* @__PURE__ */ jsx149(
21214
20883
  MonoAccordion_default,
21215
20884
  {
21216
20885
  testId,
21217
20886
  onClick: (e) => handle.accordionChange(accordion.key, e),
21218
20887
  isOpen: accordion.isOpen,
21219
- className: cn82(
20888
+ className: cn79(
21220
20889
  "accordion-table__body-accordion",
21221
20890
  {
21222
20891
  "accordion-table__body-accordion--closed": !accordion.isOpen
@@ -21234,14 +20903,14 @@ var AccordionTable = ({
21234
20903
  var AccordionTable_default = AccordionTable;
21235
20904
 
21236
20905
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21237
- import cn84 from "classnames";
21238
- import { useState as useState71 } from "react";
20906
+ import cn81 from "classnames";
20907
+ import { useState as useState68 } from "react";
21239
20908
 
21240
20909
  // src/Atomic/UI/AdvancedTag/AdvTag.tsx
21241
- import cn83 from "classnames";
21242
- import { useEffect as useEffect62, useRef as useRef43, useState as useState70 } from "react";
20910
+ import cn80 from "classnames";
20911
+ import { useEffect as useEffect61, useRef as useRef42, useState as useState67 } from "react";
21243
20912
  import { AlertTriangle as AlertTriangle5 } from "react-feather";
21244
- import { jsx as jsx153, jsxs as jsxs114 } from "react/jsx-runtime";
20913
+ import { jsx as jsx150, jsxs as jsxs111 } from "react/jsx-runtime";
21245
20914
  var AdvTag = ({
21246
20915
  item,
21247
20916
  className,
@@ -21265,19 +20934,19 @@ var AdvTag = ({
21265
20934
  },
21266
20935
  type
21267
20936
  } = item;
21268
- const [isOpen, setIsOpen] = useState70(false);
21269
- const [clickedWarning, setClickedWarning] = useState70("");
21270
- const hintRef = useRef43(null);
21271
- const activeNumberClass = cn83("strong", {
20937
+ const [isOpen, setIsOpen] = useState67(false);
20938
+ const [clickedWarning, setClickedWarning] = useState67("");
20939
+ const hintRef = useRef42(null);
20940
+ const activeNumberClass = cn80("strong", {
21272
20941
  "color--pause": active === 0,
21273
20942
  "color--green-haze": active > 0
21274
20943
  });
21275
- const pauseNumberClass = cn83("strong", {
20944
+ const pauseNumberClass = cn80("strong", {
21276
20945
  "color--pause": pause === 0,
21277
20946
  "color--light-red": pause > 0
21278
20947
  });
21279
20948
  const isEmptyEntitys = isEntityAndCounter && (!entityAndCounter?.counter || entityAndCounter.counter === 0) || !isEntityAndCounter && (warnLeft || !merchants);
21280
- const advancedTagClass = cn83("advanced-tags", {
20949
+ const advancedTagClass = cn80("advanced-tags", {
21281
20950
  "advanced-tags--error": isEmptyEntitys
21282
20951
  }, className);
21283
20952
  const onWarningClick = (warn) => {
@@ -21289,22 +20958,22 @@ var AdvTag = ({
21289
20958
  setIsOpen(false);
21290
20959
  }
21291
20960
  };
21292
- useEffect62(() => {
20961
+ useEffect61(() => {
21293
20962
  document.addEventListener("click", handleClickOutside, true);
21294
20963
  return () => {
21295
20964
  document.removeEventListener("click", handleClickOutside, true);
21296
20965
  };
21297
20966
  }, []);
21298
20967
  if (!item) return null;
21299
- const renderClassicTag = () => /* @__PURE__ */ jsxs114("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21300
- warnLeft && /* @__PURE__ */ jsx153(
20968
+ const renderClassicTag = () => /* @__PURE__ */ jsxs111("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
20969
+ warnLeft && /* @__PURE__ */ jsx150(
21301
20970
  "div",
21302
20971
  {
21303
20972
  "data-testid": `${testId}-left`,
21304
20973
  className: "advanced-tags--warning-icon-wrapper",
21305
20974
  onMouseEnter: () => onWarningClick("warnLeft"),
21306
20975
  onMouseLeave: () => setIsOpen(false),
21307
- children: /* @__PURE__ */ jsx153(
20976
+ children: /* @__PURE__ */ jsx150(
21308
20977
  AlertTriangle5,
21309
20978
  {
21310
20979
  width: 16,
@@ -21314,23 +20983,23 @@ var AdvTag = ({
21314
20983
  )
21315
20984
  }
21316
20985
  ),
21317
- labelLeft && /* @__PURE__ */ jsx153("span", { className: "mr5", children: labelLeft }),
21318
- labelRight && /* @__PURE__ */ jsx153("span", { children: labelRight }),
21319
- type !== "simple" && /* @__PURE__ */ jsx153("span", { className: "ml5 mr5", children: "|" }),
21320
- type !== "simple" && /* @__PURE__ */ jsxs114("div", { className: "df", children: [
21321
- /* @__PURE__ */ jsx153("span", { className: activeNumberClass, children: active }),
21322
- /* @__PURE__ */ jsx153("span", { className: "strong color--pause", children: "/" }),
21323
- /* @__PURE__ */ jsx153("span", { className: pauseNumberClass, children: pause })
20986
+ labelLeft && /* @__PURE__ */ jsx150("span", { className: "mr5", children: labelLeft }),
20987
+ labelRight && /* @__PURE__ */ jsx150("span", { children: labelRight }),
20988
+ type !== "simple" && /* @__PURE__ */ jsx150("span", { className: "ml5 mr5", children: "|" }),
20989
+ type !== "simple" && /* @__PURE__ */ jsxs111("div", { className: "df", children: [
20990
+ /* @__PURE__ */ jsx150("span", { className: activeNumberClass, children: active }),
20991
+ /* @__PURE__ */ jsx150("span", { className: "strong color--pause", children: "/" }),
20992
+ /* @__PURE__ */ jsx150("span", { className: pauseNumberClass, children: pause })
21324
20993
  ] }),
21325
- type !== "simple" && /* @__PURE__ */ jsx153("span", { className: "ml5 mr5", children: "|" }),
21326
- merchants ? /* @__PURE__ */ jsx153("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ jsx153(
20994
+ type !== "simple" && /* @__PURE__ */ jsx150("span", { className: "ml5 mr5", children: "|" }),
20995
+ merchants ? /* @__PURE__ */ jsx150("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ jsx150(
21327
20996
  "div",
21328
20997
  {
21329
20998
  "data-testid": `${testId}-right`,
21330
20999
  className: "advanced-tags--warning-icon-wrapper",
21331
21000
  onMouseEnter: () => onWarningClick("warnRight"),
21332
21001
  onMouseLeave: () => setIsOpen(false),
21333
- children: /* @__PURE__ */ jsx153(
21002
+ children: /* @__PURE__ */ jsx150(
21334
21003
  AlertTriangle5,
21335
21004
  {
21336
21005
  width: 16,
@@ -21340,20 +21009,20 @@ var AdvTag = ({
21340
21009
  )
21341
21010
  }
21342
21011
  ),
21343
- isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx153(
21012
+ isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx150(
21344
21013
  "span",
21345
21014
  {
21346
- className: cn83(
21015
+ className: cn80(
21347
21016
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21348
21017
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21349
21018
  ),
21350
21019
  children: warnLeftMsg
21351
21020
  }
21352
21021
  ),
21353
- isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ jsx153(
21022
+ isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ jsx150(
21354
21023
  "span",
21355
21024
  {
21356
- className: cn83(
21025
+ className: cn80(
21357
21026
  "advanced-tags__warn-text",
21358
21027
  "advanced-tags__warn-text--warnRight",
21359
21028
  { "advanced-tags__warn-text--warnRight--to-top": toTop }
@@ -21364,15 +21033,15 @@ var AdvTag = ({
21364
21033
  ] });
21365
21034
  const renderWithEntityAndCounterTag = () => {
21366
21035
  const isNullcounter = entityAndCounter?.counter?.toString() === "0";
21367
- return /* @__PURE__ */ jsxs114("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21368
- isNullcounter && /* @__PURE__ */ jsx153(
21036
+ return /* @__PURE__ */ jsxs111("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21037
+ isNullcounter && /* @__PURE__ */ jsx150(
21369
21038
  "div",
21370
21039
  {
21371
21040
  "data-testid": `${testId}-left`,
21372
21041
  className: "advanced-tags--warning-icon-wrapper",
21373
21042
  onMouseEnter: () => onWarningClick("warnLeft"),
21374
21043
  onMouseLeave: () => setIsOpen(false),
21375
- children: /* @__PURE__ */ jsx153(
21044
+ children: /* @__PURE__ */ jsx150(
21376
21045
  AlertTriangle5,
21377
21046
  {
21378
21047
  width: 16,
@@ -21382,21 +21051,21 @@ var AdvTag = ({
21382
21051
  )
21383
21052
  }
21384
21053
  ),
21385
- isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx153(
21054
+ isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx150(
21386
21055
  "span",
21387
21056
  {
21388
- className: cn83(
21057
+ className: cn80(
21389
21058
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21390
21059
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21391
21060
  ),
21392
21061
  children: entityAndCounter.nullCounterMessage
21393
21062
  }
21394
21063
  ),
21395
- entityAndCounter?.title && /* @__PURE__ */ jsx153("span", { className: "mr5", children: entityAndCounter.title }),
21396
- /* @__PURE__ */ jsx153(
21064
+ entityAndCounter?.title && /* @__PURE__ */ jsx150("span", { className: "mr5", children: entityAndCounter.title }),
21065
+ /* @__PURE__ */ jsx150(
21397
21066
  "div",
21398
21067
  {
21399
- className: cn83("advanced-tags__counter", {
21068
+ className: cn80("advanced-tags__counter", {
21400
21069
  "advanced-tags__counter--null": isNullcounter,
21401
21070
  "advanced-tags__counter--bold": !isNullcounter
21402
21071
  }),
@@ -21410,7 +21079,7 @@ var AdvTag = ({
21410
21079
  var AdvTag_default = AdvTag;
21411
21080
 
21412
21081
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21413
- import { jsx as jsx154, jsxs as jsxs115 } from "react/jsx-runtime";
21082
+ import { jsx as jsx151, jsxs as jsxs112 } from "react/jsx-runtime";
21414
21083
  var AdvancedTags = ({
21415
21084
  items,
21416
21085
  noItemsTagLabel,
@@ -21418,26 +21087,26 @@ var AdvancedTags = ({
21418
21087
  testId = "advanced-tag-test",
21419
21088
  toTop = true
21420
21089
  }) => {
21421
- const [showedItems, setShowedItems] = useState71(items.slice(0, 2));
21422
- const [showMore, setShowMore] = useState71(true);
21090
+ const [showedItems, setShowedItems] = useState68(items.slice(0, 2));
21091
+ const [showMore, setShowMore] = useState68(true);
21423
21092
  const onShowMoreClick = () => {
21424
21093
  setShowedItems(showMore ? items : items.slice(0, 2));
21425
21094
  setShowMore(!showMore);
21426
21095
  };
21427
21096
  if ((!items || !items.length) && noItemsTagLabel) {
21428
- return /* @__PURE__ */ jsx154(
21097
+ return /* @__PURE__ */ jsx151(
21429
21098
  Tag_default,
21430
21099
  {
21431
21100
  label: noItemsTagLabel?.toString(),
21432
- className: cn84(className, "tag-warn")
21101
+ className: cn81(className, "tag-warn")
21433
21102
  }
21434
21103
  );
21435
21104
  }
21436
21105
  if ((!items || !items.length) && !noItemsTagLabel) return null;
21437
- return /* @__PURE__ */ jsxs115("div", { "data-testid": testId, className: cn84(className, "j4 wrap"), children: [
21106
+ return /* @__PURE__ */ jsxs112("div", { "data-testid": testId, className: cn81(className, "j4 wrap"), children: [
21438
21107
  showedItems.map((item, index) => {
21439
21108
  if (!item) return null;
21440
- return /* @__PURE__ */ jsx154(
21109
+ return /* @__PURE__ */ jsx151(
21441
21110
  AdvTag_default,
21442
21111
  {
21443
21112
  toTop,
@@ -21447,7 +21116,7 @@ var AdvancedTags = ({
21447
21116
  index
21448
21117
  );
21449
21118
  }),
21450
- items.length >= 3 && /* @__PURE__ */ jsx154(
21119
+ items.length >= 3 && /* @__PURE__ */ jsx151(
21451
21120
  "span",
21452
21121
  {
21453
21122
  "data-testid": `${testId}-showMore`,
@@ -21467,8 +21136,8 @@ var AdvancedTag_default = AdvancedTags_default;
21467
21136
  var Alert_default2 = Alert_default;
21468
21137
 
21469
21138
  // src/Atomic/UI/Box/Box.tsx
21470
- import cn85 from "classnames";
21471
- import { jsx as jsx155 } from "react/jsx-runtime";
21139
+ import cn82 from "classnames";
21140
+ import { jsx as jsx152 } from "react/jsx-runtime";
21472
21141
  var directionVariants = {
21473
21142
  column: "column",
21474
21143
  row: "row"
@@ -21492,12 +21161,12 @@ function Box({
21492
21161
  const styles = {
21493
21162
  flexDirection: direction
21494
21163
  };
21495
- return /* @__PURE__ */ jsx155(
21164
+ return /* @__PURE__ */ jsx152(
21496
21165
  "div",
21497
21166
  {
21498
21167
  style: styles,
21499
21168
  "data-testid": "box",
21500
- className: cn85(
21169
+ className: cn82(
21501
21170
  "box",
21502
21171
  `box--padding-${paddingVariant}`,
21503
21172
  `box--radii-${radiiVariant}`,
@@ -21514,80 +21183,10 @@ function Box({
21514
21183
  }
21515
21184
  var Box_default = Box;
21516
21185
 
21517
- // src/Atomic/UI/ButtonsBar/ButtonsBar.tsx
21518
- import cn86 from "classnames";
21519
- import { Link } from "react-router-dom";
21520
- import { jsx as jsx156, jsxs as jsxs116 } from "react/jsx-runtime";
21521
- var ButtonsBar = ({
21522
- className,
21523
- rejectBtnLabel,
21524
- rejectBtnIcon,
21525
- isRejectBtnIconRight,
21526
- rejectBtnVariant,
21527
- rejectBtnClass,
21528
- isRejectBtnDisabled,
21529
- rejectLink,
21530
- onReject,
21531
- confirmBtnLabel,
21532
- confirmBtnIcon,
21533
- isConfirmBtnIconRight,
21534
- confirmBtnVariant,
21535
- confirmBtnClass,
21536
- isConfirmBtnDisabled,
21537
- onConfirm,
21538
- testIdFirstBtn = "button-bar-first-item",
21539
- testIdSecondBtn = "button-bar-second-item"
21540
- }) => {
21541
- return /* @__PURE__ */ jsxs116("div", { className: cn86("button-bar", className), children: [
21542
- rejectLink ? /* @__PURE__ */ jsx156(Link, { className: "text-decoration-none", to: rejectLink, children: /* @__PURE__ */ jsx156(
21543
- Button_default,
21544
- {
21545
- testId: testIdFirstBtn,
21546
- label: rejectBtnLabel,
21547
- variant: rejectBtnVariant,
21548
- onClick: onReject,
21549
- disabled: isRejectBtnDisabled,
21550
- icon: rejectBtnIcon,
21551
- isIconRight: isRejectBtnIconRight,
21552
- className: cn86(rejectBtnClass, { mr5: confirmBtnLabel })
21553
- }
21554
- ) }) : /* @__PURE__ */ jsx156(
21555
- Button_default,
21556
- {
21557
- testId: testIdFirstBtn,
21558
- label: rejectBtnLabel,
21559
- variant: rejectBtnVariant,
21560
- onClick: onReject,
21561
- disabled: isRejectBtnDisabled,
21562
- icon: rejectBtnIcon,
21563
- isIconRight: isRejectBtnIconRight,
21564
- className: cn86(rejectBtnClass, { mr5: confirmBtnLabel })
21565
- }
21566
- ),
21567
- /* @__PURE__ */ jsx156(
21568
- Button_default,
21569
- {
21570
- testId: testIdSecondBtn,
21571
- label: confirmBtnLabel,
21572
- variant: confirmBtnVariant,
21573
- onClick: onConfirm,
21574
- disabled: isConfirmBtnDisabled,
21575
- icon: confirmBtnIcon,
21576
- isIconRight: isConfirmBtnIconRight,
21577
- className: confirmBtnClass
21578
- }
21579
- )
21580
- ] });
21581
- };
21582
- var ButtonsBar_default = ButtonsBar;
21583
-
21584
- // src/Atomic/UI/ButtonsBar/index.ts
21585
- var ButtonsBar_default2 = ButtonsBar_default;
21586
-
21587
21186
  // src/Atomic/UI/CircleProgressBar/CircleProgressBar.js
21588
- import React63, { useEffect as useEffect63, useState as useState72 } from "react";
21589
- import cn87 from "classnames";
21590
- import { jsx as jsx157, jsxs as jsxs117 } from "react/jsx-runtime";
21187
+ import React61, { useEffect as useEffect62, useState as useState69 } from "react";
21188
+ import cn83 from "classnames";
21189
+ import { jsx as jsx153, jsxs as jsxs113 } from "react/jsx-runtime";
21591
21190
  var CircleProgressBar = ({
21592
21191
  amount,
21593
21192
  totalAmount,
@@ -21608,17 +21207,17 @@ var CircleProgressBar = ({
21608
21207
  finish: "#f06d8d",
21609
21208
  meter: "#ffcad6"
21610
21209
  };
21611
- const [strokeDashoffset, setStrokeDashoffset] = useState72(isReverseType ? String(0) : circumference);
21612
- useEffect63(() => {
21210
+ const [strokeDashoffset, setStrokeDashoffset] = useState69(isReverseType ? String(0) : circumference);
21211
+ useEffect62(() => {
21613
21212
  setStrokeDashoffset(circumference - circumference * amountProgress / 100);
21614
21213
  }, [amountProgress]);
21615
- return /* @__PURE__ */ jsxs117(
21214
+ return /* @__PURE__ */ jsxs113(
21616
21215
  "div",
21617
21216
  {
21618
21217
  "data-testid": testId,
21619
- className: cn87("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21218
+ className: cn83("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21620
21219
  children: [
21621
- /* @__PURE__ */ jsxs117(
21220
+ /* @__PURE__ */ jsxs113(
21622
21221
  "svg",
21623
21222
  {
21624
21223
  className: "limit-progress-bar__progress",
@@ -21626,7 +21225,7 @@ var CircleProgressBar = ({
21626
21225
  height: "124",
21627
21226
  viewBox: "0 0 124 124",
21628
21227
  children: [
21629
- /* @__PURE__ */ jsx157("defs", { children: isReverseType ? /* @__PURE__ */ jsxs117(
21228
+ /* @__PURE__ */ jsx153("defs", { children: isReverseType ? /* @__PURE__ */ jsxs113(
21630
21229
  "linearGradient",
21631
21230
  {
21632
21231
  id: "limit-progress-bar-linear-gradient-reverse",
@@ -21635,14 +21234,14 @@ var CircleProgressBar = ({
21635
21234
  x2: "0",
21636
21235
  y2: "0",
21637
21236
  children: [
21638
- /* @__PURE__ */ jsx157(
21237
+ /* @__PURE__ */ jsx153(
21639
21238
  "stop",
21640
21239
  {
21641
21240
  offset: "0",
21642
21241
  stopColor: colors.finish || defaultColors.finish
21643
21242
  }
21644
21243
  ),
21645
- /* @__PURE__ */ jsx157(
21244
+ /* @__PURE__ */ jsx153(
21646
21245
  "stop",
21647
21246
  {
21648
21247
  offset: "1",
@@ -21651,7 +21250,7 @@ var CircleProgressBar = ({
21651
21250
  )
21652
21251
  ]
21653
21252
  }
21654
- ) : /* @__PURE__ */ jsxs117(
21253
+ ) : /* @__PURE__ */ jsxs113(
21655
21254
  "linearGradient",
21656
21255
  {
21657
21256
  id: "limit-progress-bar-linear-gradient",
@@ -21660,14 +21259,14 @@ var CircleProgressBar = ({
21660
21259
  x2: "0",
21661
21260
  y2: "0",
21662
21261
  children: [
21663
- /* @__PURE__ */ jsx157(
21262
+ /* @__PURE__ */ jsx153(
21664
21263
  "stop",
21665
21264
  {
21666
21265
  offset: "0",
21667
21266
  stopColor: colors.start || defaultColors.start
21668
21267
  }
21669
21268
  ),
21670
- /* @__PURE__ */ jsx157(
21269
+ /* @__PURE__ */ jsx153(
21671
21270
  "stop",
21672
21271
  {
21673
21272
  offset: "1",
@@ -21677,7 +21276,7 @@ var CircleProgressBar = ({
21677
21276
  ]
21678
21277
  }
21679
21278
  ) }),
21680
- /* @__PURE__ */ jsx157(
21279
+ /* @__PURE__ */ jsx153(
21681
21280
  "circle",
21682
21281
  {
21683
21282
  className: "limit-progress-bar__meter",
@@ -21688,7 +21287,7 @@ var CircleProgressBar = ({
21688
21287
  strokeWidth: String(innerLineStrokeWidth)
21689
21288
  }
21690
21289
  ),
21691
- /* @__PURE__ */ jsx157(
21290
+ /* @__PURE__ */ jsx153(
21692
21291
  "circle",
21693
21292
  {
21694
21293
  className: "limit-progress-bar__value",
@@ -21706,7 +21305,7 @@ var CircleProgressBar = ({
21706
21305
  ]
21707
21306
  }
21708
21307
  ),
21709
- /* @__PURE__ */ jsx157("div", { className: "limit-progress-bar__content", children })
21308
+ /* @__PURE__ */ jsx153("div", { className: "limit-progress-bar__content", children })
21710
21309
  ]
21711
21310
  }
21712
21311
  );
@@ -21714,10 +21313,10 @@ var CircleProgressBar = ({
21714
21313
  var CircleProgressBar_default = CircleProgressBar;
21715
21314
 
21716
21315
  // src/Atomic/UI/DateTime/DateTime.tsx
21717
- import cn88 from "classnames";
21316
+ import cn84 from "classnames";
21718
21317
  import moment15 from "moment-timezone";
21719
21318
  import { useMemo as useMemo25 } from "react";
21720
- import { jsx as jsx158, jsxs as jsxs118 } from "react/jsx-runtime";
21319
+ import { jsx as jsx154, jsxs as jsxs114 } from "react/jsx-runtime";
21721
21320
  var RC36 = "date-time";
21722
21321
  var DEFAULT_DATE_FORMAT = "DD.MM.YYYY";
21723
21322
  var DEFAULT_TIME_FORMAT = "HH:mm:ss";
@@ -21743,13 +21342,13 @@ var DateTime = ({
21743
21342
  timeFormat
21744
21343
  );
21745
21344
  }, [value, valueFormat, timeFormat]);
21746
- return /* @__PURE__ */ jsxs118("div", { "data-testid": testId, className: cn88(RC36, className), children: [
21747
- !isNoDate && /* @__PURE__ */ jsx158("span", { "data-testid": `${testId}-date`, className: `${RC36}__date`, children: date }),
21748
- !isNoTime && /* @__PURE__ */ jsx158(
21345
+ return /* @__PURE__ */ jsxs114("div", { "data-testid": testId, className: cn84(RC36, className), children: [
21346
+ !isNoDate && /* @__PURE__ */ jsx154("span", { "data-testid": `${testId}-date`, className: `${RC36}__date`, children: date }),
21347
+ !isNoTime && /* @__PURE__ */ jsx154(
21749
21348
  "span",
21750
21349
  {
21751
21350
  "data-testid": `${testId}-time`,
21752
- className: cn88(`${RC36}__time`, {
21351
+ className: cn84(`${RC36}__time`, {
21753
21352
  [`${RC36}_color--pause`]: !isNoDate
21754
21353
  }),
21755
21354
  children: time
@@ -21760,32 +21359,32 @@ var DateTime = ({
21760
21359
  var DateTime_default = DateTime;
21761
21360
 
21762
21361
  // src/Atomic/UI/DebugContainer/DebugContainer.tsx
21763
- import cn89 from "classnames";
21764
- import { useState as useState73 } from "react";
21362
+ import cn85 from "classnames";
21363
+ import { useState as useState70 } from "react";
21765
21364
  import { ChevronDown as ChevronDown8, ChevronUp as ChevronUp7 } from "react-feather";
21766
- import { jsx as jsx159, jsxs as jsxs119 } from "react/jsx-runtime";
21365
+ import { jsx as jsx155, jsxs as jsxs115 } from "react/jsx-runtime";
21767
21366
  var defaultData = {};
21768
21367
  var DebugContainer = ({ data = defaultData, children, className }) => {
21769
- const [isVisible, setIsVisible] = useState73(true);
21770
- const renderData = () => /* @__PURE__ */ jsxs119("pre", { children: [
21368
+ const [isVisible, setIsVisible] = useState70(true);
21369
+ const renderData = () => /* @__PURE__ */ jsxs115("pre", { children: [
21771
21370
  "{\n",
21772
21371
  Object.keys(data).map((key) => ` ${key}: ${String(data[key])},
21773
21372
  `),
21774
21373
  "}"
21775
21374
  ] });
21776
- return /* @__PURE__ */ jsxs119("div", { className: cn89("debug-container", className), "data-testid": "debug-container", children: [
21777
- isVisible && /* @__PURE__ */ jsxs119("div", { className: "debug-container__body", children: [
21778
- /* @__PURE__ */ jsx159("h5", { children: "Debug:" }),
21779
- data && Object.keys(data).length > 0 && /* @__PURE__ */ jsx159("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
21780
- children && /* @__PURE__ */ jsx159("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
21375
+ return /* @__PURE__ */ jsxs115("div", { className: cn85("debug-container", className), "data-testid": "debug-container", children: [
21376
+ isVisible && /* @__PURE__ */ jsxs115("div", { className: "debug-container__body", children: [
21377
+ /* @__PURE__ */ jsx155("h5", { children: "Debug:" }),
21378
+ data && Object.keys(data).length > 0 && /* @__PURE__ */ jsx155("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
21379
+ children && /* @__PURE__ */ jsx155("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
21781
21380
  ] }),
21782
- /* @__PURE__ */ jsx159(
21381
+ /* @__PURE__ */ jsx155(
21783
21382
  "div",
21784
21383
  {
21785
21384
  className: "debug-container__toggler",
21786
21385
  onClick: () => setIsVisible((v) => !v),
21787
21386
  "data-testid": "debug-toggler",
21788
- children: isVisible ? /* @__PURE__ */ jsx159(ChevronUp7, {}) : /* @__PURE__ */ jsx159(ChevronDown8, {})
21387
+ children: isVisible ? /* @__PURE__ */ jsx155(ChevronUp7, {}) : /* @__PURE__ */ jsx155(ChevronDown8, {})
21789
21388
  }
21790
21389
  )
21791
21390
  ] });
@@ -21793,24 +21392,24 @@ var DebugContainer = ({ data = defaultData, children, className }) => {
21793
21392
  var DebugContainer_default = DebugContainer;
21794
21393
 
21795
21394
  // src/Atomic/UI/DebugContainer/useDebugContainer.tsx
21796
- import { useState as useState74 } from "react";
21797
- import { jsx as jsx160 } from "react/jsx-runtime";
21395
+ import { useState as useState71 } from "react";
21396
+ import { jsx as jsx156 } from "react/jsx-runtime";
21798
21397
  function useDebugContainer() {
21799
- const [data, setData] = useState74({});
21398
+ const [data, setData] = useState71({});
21800
21399
  return {
21801
21400
  debugData: data,
21802
21401
  setDebugData: setData,
21803
- renderDebugContainer: /* @__PURE__ */ jsx160(DebugContainer_default, { data })
21402
+ renderDebugContainer: /* @__PURE__ */ jsx156(DebugContainer_default, { data })
21804
21403
  };
21805
21404
  }
21806
21405
  var useDebugContainer_default = useDebugContainer;
21807
21406
 
21808
21407
  // src/Atomic/UI/DoubleString/DoubleString.tsx
21809
- import cn90 from "classnames";
21408
+ import cn86 from "classnames";
21810
21409
  import moment16 from "moment";
21811
- import { useEffect as useEffect64, useRef as useRef44, useState as useState75 } from "react";
21410
+ import { useEffect as useEffect63, useRef as useRef43, useState as useState72 } from "react";
21812
21411
  import { Eye as Eye4, EyeOff as EyeOff4 } from "react-feather";
21813
- import { Fragment as Fragment19, jsx as jsx161, jsxs as jsxs120 } from "react/jsx-runtime";
21412
+ import { Fragment as Fragment19, jsx as jsx157, jsxs as jsxs116 } from "react/jsx-runtime";
21814
21413
  var RC37 = "double-string";
21815
21414
  var DoubleString = ({
21816
21415
  value,
@@ -21830,33 +21429,33 @@ var DoubleString = ({
21830
21429
  isUseHideMode = false,
21831
21430
  isShowHiddenValueAvailable = false
21832
21431
  }) => {
21833
- const [isValueHidden, setIsValueHidden] = useState75(isUseHideMode);
21432
+ const [isValueHidden, setIsValueHidden] = useState72(isUseHideMode);
21834
21433
  const computedValue = isFormatValueToDate ? moment16(value, parseFormat).format(displayFormat) : value;
21835
- const valueRef = useRef44(null);
21434
+ const valueRef = useRef43(null);
21836
21435
  ;
21837
- const descriptionRef = useRef44(null);
21838
- const [elemsWidth, setElemsWidth] = useState75({
21436
+ const descriptionRef = useRef43(null);
21437
+ const [elemsWidth, setElemsWidth] = useState72({
21839
21438
  valueWidth: 0,
21840
21439
  descriptionWidth: 0
21841
21440
  });
21842
- const [isOnClickON, setIsOnClickON] = useState75(false);
21441
+ const [isOnClickON, setIsOnClickON] = useState72(false);
21843
21442
  const handle = {
21844
21443
  click: () => {
21845
21444
  setIsOnClickON(!isOnClickON);
21846
21445
  }
21847
21446
  };
21848
- useEffect64(() => {
21447
+ useEffect63(() => {
21849
21448
  const valueWidth = valueRef?.current?.clientWidth ?? 0;
21850
21449
  const descriptionWidth = descriptionRef?.current?.clientWidth ?? 0;
21851
21450
  setElemsWidth({ valueWidth, descriptionWidth });
21852
21451
  }, [descriptionRef, valueRef]);
21853
- return /* @__PURE__ */ jsxs120("div", { "data-testid": testId, className: cn90(RC37, className), children: [
21854
- /* @__PURE__ */ jsx161(
21452
+ return /* @__PURE__ */ jsxs116("div", { "data-testid": testId, className: cn86(RC37, className), children: [
21453
+ /* @__PURE__ */ jsx157(
21855
21454
  "p",
21856
21455
  {
21857
21456
  onClick: () => handle.click(),
21858
21457
  ref: valueRef,
21859
- className: cn90(
21458
+ className: cn86(
21860
21459
  `${RC37}__value`,
21861
21460
  {
21862
21461
  "double-string--value-opened": isOnClickON && isUseOnClick
@@ -21864,27 +21463,27 @@ var DoubleString = ({
21864
21463
  { pointer: isUseOnClick }
21865
21464
  ),
21866
21465
  title: !noTitle && elemsWidth.valueWidth > 99 ? computedValue : "",
21867
- children: !revert ? /* @__PURE__ */ jsxs120(Fragment19, { children: [
21868
- isUseHideMode ? /* @__PURE__ */ jsx161("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
21869
- isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ jsx161(Eye4, { "data-testid": "double-string-eye", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
21870
- isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ jsx161(EyeOff4, { "data-testid": "double-string-eyeoff", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
21871
- valuePostfix && /* @__PURE__ */ jsx161("span", { className: cn90(`${RC37}__value-postfix`), children: valuePostfix })
21466
+ children: !revert ? /* @__PURE__ */ jsxs116(Fragment19, { children: [
21467
+ isUseHideMode ? /* @__PURE__ */ jsx157("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
21468
+ isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ jsx157(Eye4, { "data-testid": "double-string-eye", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
21469
+ isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ jsx157(EyeOff4, { "data-testid": "double-string-eyeoff", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
21470
+ valuePostfix && /* @__PURE__ */ jsx157("span", { className: cn86(`${RC37}__value-postfix`), children: valuePostfix })
21872
21471
  ] }) : description
21873
21472
  }
21874
21473
  ),
21875
- /* @__PURE__ */ jsx161(
21474
+ /* @__PURE__ */ jsx157(
21876
21475
  "p",
21877
21476
  {
21878
21477
  ref: descriptionRef,
21879
- className: cn90(`${RC37}__description`),
21478
+ className: cn86(`${RC37}__description`),
21880
21479
  title: !noTitle && elemsWidth.descriptionWidth > 99 ? computedValue : "",
21881
- children: !revert ? description : /* @__PURE__ */ jsxs120(Fragment19, { children: [
21480
+ children: !revert ? description : /* @__PURE__ */ jsxs116(Fragment19, { children: [
21882
21481
  computedValue,
21883
- valuePostfix && /* @__PURE__ */ jsx161("span", { className: cn90(`${RC37}__value-postfix`), children: valuePostfix })
21482
+ valuePostfix && /* @__PURE__ */ jsx157("span", { className: cn86(`${RC37}__value-postfix`), children: valuePostfix })
21884
21483
  ] })
21885
21484
  }
21886
21485
  ),
21887
- subDescription && /* @__PURE__ */ jsx161("p", { className: cn90(`${RC37}__sub-description`), children: subDescription })
21486
+ subDescription && /* @__PURE__ */ jsx157("p", { className: cn86(`${RC37}__sub-description`), children: subDescription })
21888
21487
  ] });
21889
21488
  };
21890
21489
  var DoubleString_default = DoubleString;
@@ -21896,9 +21495,9 @@ var DoubleString_default2 = DoubleString_default;
21896
21495
  var Hint_default2 = Hint_default;
21897
21496
 
21898
21497
  // src/Atomic/UI/Modal/ModalHOC.tsx
21899
- import cn91 from "classnames";
21900
- import { useEffect as useEffect65, useLayoutEffect as useLayoutEffect14, useMemo as useMemo26, useRef as useRef45 } from "react";
21901
- import { jsx as jsx162, jsxs as jsxs121 } from "react/jsx-runtime";
21498
+ import cn87 from "classnames";
21499
+ import { useEffect as useEffect64, useLayoutEffect as useLayoutEffect14, useMemo as useMemo26, useRef as useRef44 } from "react";
21500
+ import { jsx as jsx158, jsxs as jsxs117 } from "react/jsx-runtime";
21902
21501
  var ModalHOC = ({
21903
21502
  id,
21904
21503
  zIndex = 100,
@@ -21916,8 +21515,8 @@ var ModalHOC = ({
21916
21515
  isClosingByEsc: isClosingByEscOuter = true,
21917
21516
  closeOnEsc
21918
21517
  }) => {
21919
- const modalRef = useRef45(null);
21920
- const closeModalRef = useRef45(closeModal);
21518
+ const modalRef = useRef44(null);
21519
+ const closeModalRef = useRef44(closeModal);
21921
21520
  const isClosingByEsc = closeOnEsc === false ? false : isClosingByEscOuter;
21922
21521
  const withEventManagementStructure = getWithEventManagementStructure(id, withEventManagement);
21923
21522
  const handleClose = useMemo26(() => () => closeModalRef.current?.(), []);
@@ -21928,7 +21527,7 @@ var ModalHOC = ({
21928
21527
  useLayoutEffect14(() => {
21929
21528
  closeModalRef.current = closeBtnDisable ? void 0 : closeModal;
21930
21529
  }, [closeModal, closeBtnDisable]);
21931
- useEffect65(() => {
21530
+ useEffect64(() => {
21932
21531
  const onKeyPress = getOnKeyPress({ id, onClose: handleClose });
21933
21532
  if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
21934
21533
  if (isClosingByEsc) document.addEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
@@ -21940,14 +21539,14 @@ var ModalHOC = ({
21940
21539
  };
21941
21540
  }, []);
21942
21541
  if (!isOpen) return null;
21943
- return /* @__PURE__ */ jsxs121("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
21944
- /* @__PURE__ */ jsx162("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
21945
- /* @__PURE__ */ jsx162(
21542
+ return /* @__PURE__ */ jsxs117("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
21543
+ /* @__PURE__ */ jsx158("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
21544
+ /* @__PURE__ */ jsx158(
21946
21545
  "div",
21947
21546
  {
21948
21547
  ref: modalRef,
21949
21548
  style: { width: size },
21950
- className: cn91(className, "modal"),
21549
+ className: cn87(className, "modal"),
21951
21550
  role: "dialog",
21952
21551
  "aria-modal": "true",
21953
21552
  "aria-labelledby": testId,
@@ -21965,264 +21564,19 @@ var Modal_default2 = Modal_default;
21965
21564
  // src/Atomic/UI/MonoAccordion/index.ts
21966
21565
  var MonoAccordion_default2 = MonoAccordion_default;
21967
21566
 
21968
- // src/Atomic/UI/NavLine/NavLine.tsx
21969
- import cn92 from "classnames";
21970
- import { createRef as createRef6, useCallback as useCallback12, useEffect as useEffect66, useRef as useRef46, useState as useState76 } from "react";
21971
- import * as Icons4 from "react-feather";
21972
- import { NavLink as NavLink4 } from "react-router-dom";
21973
- import { jsx as jsx163, jsxs as jsxs122 } from "react/jsx-runtime";
21974
- var CN8 = "nav-line";
21975
- function checkedRef2(ref) {
21976
- if (!ref) return null;
21977
- return typeof ref === "function" ? (node) => ref(node) : ref;
21978
- }
21979
- var NavLine = ({
21980
- root = "",
21981
- activeTab,
21982
- variant,
21983
- onChange,
21984
- className,
21985
- items,
21986
- children,
21987
- isLocal = false,
21988
- mode,
21989
- isNavigateByKeys,
21990
- isTabLoading,
21991
- scrollMode = false,
21992
- testId = CN8
21993
- }) => {
21994
- const [navLineItems, setNavLineItems] = useState76([]);
21995
- const wrapperRef = useRef46(null);
21996
- const wrapperInnerRef = useRef46(null);
21997
- const [showScrollButtons, setShowScrollButtons] = useState76(false);
21998
- const [canScrollLeft, setCanScrollLeft] = useState76(false);
21999
- const [canScrollRight, setCanScrollRight] = useState76(false);
22000
- const [isScrollBlocked, setIsScrollBlocked] = useState76(false);
22001
- const checkScroll = useCallback12(() => {
22002
- const inner = wrapperInnerRef.current;
22003
- if (!inner) return;
22004
- const hasOverflow = inner.scrollWidth > inner.clientWidth;
22005
- const canScrollLeft2 = inner.scrollLeft > 0;
22006
- const canScrollRight2 = inner.scrollLeft < inner.scrollWidth - inner.clientWidth;
22007
- setShowScrollButtons(hasOverflow);
22008
- setCanScrollLeft(canScrollLeft2);
22009
- setCanScrollRight(canScrollRight2);
22010
- }, []);
22011
- const scroll = useCallback12(
22012
- (direction) => {
22013
- if (isScrollBlocked || !wrapperInnerRef.current) return;
22014
- setIsScrollBlocked(true);
22015
- const scrollAmount = 100;
22016
- const offset = direction === "left" ? -scrollAmount : scrollAmount;
22017
- try {
22018
- wrapperInnerRef.current.scrollBy({
22019
- left: offset,
22020
- behavior: "smooth"
22021
- });
22022
- } catch (error) {
22023
- console.error("scrollBy is not supported", error);
22024
- if (wrapperInnerRef.current) {
22025
- wrapperInnerRef.current.scrollLeft += offset;
22026
- }
22027
- }
22028
- setTimeout(() => {
22029
- setIsScrollBlocked(false);
22030
- checkScroll();
22031
- }, 300);
22032
- },
22033
- [isScrollBlocked, checkScroll]
22034
- );
22035
- const handleWheel = useCallback12(
22036
- (e) => {
22037
- if (!scrollMode) return;
22038
- e.preventDefault();
22039
- if (e.deltaY > 0) {
22040
- scroll("right");
22041
- } else {
22042
- scroll("left");
22043
- }
22044
- },
22045
- [scroll, scrollMode]
22046
- );
22047
- const onTabChange = useCallback12(
22048
- (item) => {
22049
- if (!item.disabled && !(mode === "create" && item.tabId !== "general")) {
22050
- onChange(item.tabId);
22051
- }
22052
- },
22053
- [mode, onChange]
22054
- );
22055
- const navigateByKeys = useCallback12(
22056
- (event) => {
22057
- if (event.repeat) return;
22058
- const activeTabIndex = items.findIndex((tab) => tab.tabId === activeTab);
22059
- const nextTabID = items[activeTabIndex + 1]?.tabId;
22060
- const prevTabID = items[activeTabIndex - 1]?.tabId;
22061
- if (event.keyCode === KEYBOARD_KEY_CODES.ARROW_RIGHT && nextTabID) {
22062
- onChange(nextTabID);
22063
- } else if (event.keyCode === KEYBOARD_KEY_CODES.ARROW_LEFT && prevTabID) {
22064
- onChange(prevTabID);
22065
- }
22066
- },
22067
- [activeTab, items, onChange]
22068
- );
22069
- useEffect66(() => {
22070
- setNavLineItems(
22071
- items.map((item) => ({
22072
- ...item,
22073
- ref: createRef6()
22074
- }))
22075
- );
22076
- }, [items]);
22077
- useEffect66(() => {
22078
- if (isNavigateByKeys && !isTabLoading) {
22079
- document.addEventListener("keydown", navigateByKeys);
22080
- }
22081
- return () => document.removeEventListener("keydown", navigateByKeys);
22082
- }, [isNavigateByKeys, isTabLoading, navigateByKeys]);
22083
- useEffect66(() => {
22084
- if (!scrollMode) return;
22085
- const inner = wrapperInnerRef.current;
22086
- if (!inner) return;
22087
- const resizeObserver = new ResizeObserver(checkScroll);
22088
- resizeObserver.observe(inner);
22089
- inner.addEventListener("scroll", checkScroll);
22090
- inner.addEventListener("wheel", handleWheel, { passive: false });
22091
- checkScroll();
22092
- return () => {
22093
- resizeObserver.disconnect();
22094
- inner.removeEventListener("scroll", checkScroll);
22095
- inner.removeEventListener("wheel", handleWheel);
22096
- };
22097
- }, [scrollMode, checkScroll, handleWheel]);
22098
- const renderNavItem = (item) => {
22099
- const Icon2 = item.icon ? Icons4[item.icon] : null;
22100
- const isDisabled = item.disabled || mode === "create" && item.tabId !== "general";
22101
- const commonProps = {
22102
- "title": item.title,
22103
- "className": cn92(
22104
- { "nav-line__item": !variant },
22105
- { "nav-line--simple__item": variant === "simple" },
22106
- { active: activeTab === item.tabId },
22107
- { disabled: isDisabled },
22108
- { "nav-line__item--hidden": item.isHidden }
22109
- ),
22110
- "role": "tab",
22111
- "aria-selected": activeTab === item.tabId,
22112
- "aria-disabled": isDisabled,
22113
- "tabIndex": isDisabled ? -1 : 0
22114
- };
22115
- const content = /* @__PURE__ */ jsxs122("div", { className: "nav-line__content", children: [
22116
- Icon2 && /* @__PURE__ */ jsx163("div", { className: "nav-line__item--icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx163(Icon2, {}) }),
22117
- /* @__PURE__ */ jsx163("span", { className: cn92({ "nav-line__item--label": variant !== "simple" }), children: item.label }),
22118
- item.count !== void 0 && /* @__PURE__ */ jsxs122("span", { className: "nav-line-count", "aria-label": `${item.count} items`, children: [
22119
- "(",
22120
- item.count,
22121
- ")"
22122
- ] })
22123
- ] });
22124
- if (isLocal) {
22125
- return /* @__PURE__ */ jsx163(
22126
- "span",
22127
- {
22128
- ...commonProps,
22129
- ref: checkedRef2(item.ref),
22130
- onClick: () => !isDisabled && onTabChange(item),
22131
- onKeyPress: (e) => {
22132
- if (!isDisabled && (e.key === "Enter" || e.key === " ")) {
22133
- e.preventDefault();
22134
- onTabChange(item);
22135
- }
22136
- },
22137
- children: content
22138
- },
22139
- `tab__${item.tabId}`
22140
- );
22141
- }
22142
- return /* @__PURE__ */ jsx163(
22143
- NavLink4,
22144
- {
22145
- ...commonProps,
22146
- to: `${root}${item?.linkChapter || item.tabId}/`,
22147
- onClick: (e) => {
22148
- if (isDisabled) {
22149
- e.preventDefault();
22150
- }
22151
- },
22152
- children: content
22153
- },
22154
- `tab__${item.tabId}`
22155
- );
22156
- };
22157
- return /* @__PURE__ */ jsx163("div", { className: "nav-line-wrapper", children: /* @__PURE__ */ jsxs122(
22158
- "div",
22159
- {
22160
- "data-testid": testId,
22161
- className: cn92(
22162
- { [CN8]: !variant },
22163
- { [`${CN8}--simple`]: variant === "simple" },
22164
- { [`${CN8}--scroll-mode`]: scrollMode },
22165
- className
22166
- ),
22167
- ref: wrapperRef,
22168
- children: [
22169
- scrollMode && showScrollButtons && /* @__PURE__ */ jsx163(
22170
- "button",
22171
- {
22172
- type: "button",
22173
- "data-testid": "nav-line-scroll-prev",
22174
- className: "nav-line--simple__arrow nav-line--simple__arrow--prev",
22175
- onClick: () => scroll("left"),
22176
- "aria-label": "Scroll previous",
22177
- disabled: !canScrollLeft,
22178
- children: /* @__PURE__ */ jsx163(Icons4.ChevronLeft, {})
22179
- }
22180
- ),
22181
- /* @__PURE__ */ jsx163(
22182
- "div",
22183
- {
22184
- ref: wrapperInnerRef,
22185
- className: cn92({ "nav-line__inner": !variant }, { "nav-line--simple__inner": variant === "simple" }),
22186
- role: "tablist",
22187
- "aria-orientation": "horizontal",
22188
- children: navLineItems.map(renderNavItem)
22189
- }
22190
- ),
22191
- scrollMode && showScrollButtons && /* @__PURE__ */ jsx163(
22192
- "button",
22193
- {
22194
- type: "button",
22195
- "data-testid": "nav-line-scroll-next",
22196
- className: "nav-line--simple__arrow nav-line--simple__arrow--next",
22197
- onClick: () => scroll("right"),
22198
- "aria-label": "Scroll next",
22199
- disabled: !canScrollRight,
22200
- children: /* @__PURE__ */ jsx163(Icons4.ChevronRight, {})
22201
- }
22202
- ),
22203
- children && /* @__PURE__ */ jsx163("div", { className: "nav-line__body", role: "tabpanel", children })
22204
- ]
22205
- }
22206
- ) });
22207
- };
22208
- var NavLine_default = NavLine;
22209
-
22210
- // src/Atomic/UI/NavLine/index.ts
22211
- var NavLine_default2 = NavLine_default;
22212
-
22213
21567
  // src/Atomic/UI/PageTitle/PageTitle.tsx
22214
- import cn93 from "classnames";
21568
+ import cn88 from "classnames";
22215
21569
  import { Home as Home3 } from "react-feather";
22216
- import { jsx as jsx164, jsxs as jsxs123 } from "react/jsx-runtime";
21570
+ import { jsx as jsx159, jsxs as jsxs118 } from "react/jsx-runtime";
22217
21571
  var RC38 = "page-title";
22218
- var PageTitle = ({ title, pages, children, testId = RC38 }) => /* @__PURE__ */ jsxs123("div", { "data-testid": testId, className: RC38, role: "region", "aria-label": title, children: [
22219
- /* @__PURE__ */ jsxs123("div", { className: `${RC38}__wrap`, children: [
22220
- /* @__PURE__ */ jsx164("h1", { className: `${RC38}__title`, children: title }),
22221
- pages.length > 0 && /* @__PURE__ */ jsx164("nav", { className: `${RC38}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxs123("ol", { className: `${RC38}__list`, children: [
22222
- /* @__PURE__ */ jsx164("li", { children: /* @__PURE__ */ jsx164("a", { className: `${RC38}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ jsx164(Home3, { "aria-hidden": "true" }) }) }),
22223
- pages.map(({ name, path }, index) => /* @__PURE__ */ jsxs123("li", { children: [
22224
- /* @__PURE__ */ jsx164("span", { className: `${RC38}__delimiter`, "aria-hidden": "true", children: "/" }),
22225
- pages.length - 1 === index ? /* @__PURE__ */ jsx164("span", { className: cn93(`${RC38}__link`, `${RC38}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ jsx164("a", { className: `${RC38}__link`, href: path, children: name })
21572
+ var PageTitle = ({ title, pages, children, testId = RC38 }) => /* @__PURE__ */ jsxs118("div", { "data-testid": testId, className: RC38, role: "region", "aria-label": title, children: [
21573
+ /* @__PURE__ */ jsxs118("div", { className: `${RC38}__wrap`, children: [
21574
+ /* @__PURE__ */ jsx159("h1", { className: `${RC38}__title`, children: title }),
21575
+ pages.length > 0 && /* @__PURE__ */ jsx159("nav", { className: `${RC38}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxs118("ol", { className: `${RC38}__list`, children: [
21576
+ /* @__PURE__ */ jsx159("li", { children: /* @__PURE__ */ jsx159("a", { className: `${RC38}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ jsx159(Home3, { "aria-hidden": "true" }) }) }),
21577
+ pages.map(({ name, path }, index) => /* @__PURE__ */ jsxs118("li", { children: [
21578
+ /* @__PURE__ */ jsx159("span", { className: `${RC38}__delimiter`, "aria-hidden": "true", children: "/" }),
21579
+ pages.length - 1 === index ? /* @__PURE__ */ jsx159("span", { className: cn88(`${RC38}__link`, `${RC38}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ jsx159("a", { className: `${RC38}__link`, href: path, children: name })
22226
21580
  ] }, path))
22227
21581
  ] }) })
22228
21582
  ] }),
@@ -22234,16 +21588,16 @@ var PageTitle_default = PageTitle;
22234
21588
  var PageTitle_default2 = PageTitle_default;
22235
21589
 
22236
21590
  // src/Atomic/UI/Price/Price.tsx
22237
- import cn94 from "classnames";
22238
- import { jsx as jsx165 } from "react/jsx-runtime";
22239
- var CN9 = "price";
22240
- var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN9 }) => {
21591
+ import cn89 from "classnames";
21592
+ import { jsx as jsx160 } from "react/jsx-runtime";
21593
+ var CN7 = "price";
21594
+ var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN7 }) => {
22241
21595
  if (value === void 0 || value === null) return null;
22242
- return /* @__PURE__ */ jsx165(
21596
+ return /* @__PURE__ */ jsx160(
22243
21597
  "div",
22244
21598
  {
22245
21599
  "data-testid": testId,
22246
- className: cn94(CN9, className),
21600
+ className: cn89(CN7, className),
22247
21601
  role: "contentinfo",
22248
21602
  "aria-label": `Price: ${formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")}`,
22249
21603
  children: formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")
@@ -22256,15 +21610,15 @@ var Price_default = Price;
22256
21610
  var Price_default2 = Price_default;
22257
21611
 
22258
21612
  // src/Atomic/UI/PriceRange/PriceRange.tsx
22259
- import cn95 from "classnames";
22260
- import { jsx as jsx166, jsxs as jsxs124 } from "react/jsx-runtime";
22261
- var CN10 = "price-range";
22262
- var PriceRange = ({ from, to, mode, testId = CN10 }) => {
22263
- return /* @__PURE__ */ jsx166("div", { "data-testid": testId, className: cn95(CN10, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ jsxs124("span", { "aria-live": "polite", children: [
21613
+ import cn90 from "classnames";
21614
+ import { jsx as jsx161, jsxs as jsxs119 } from "react/jsx-runtime";
21615
+ var CN8 = "price-range";
21616
+ var PriceRange = ({ from, to, mode, testId = CN8 }) => {
21617
+ return /* @__PURE__ */ jsx161("div", { "data-testid": testId, className: cn90(CN8, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ jsxs119("span", { "aria-live": "polite", children: [
22264
21618
  from,
22265
21619
  " - ",
22266
21620
  to
22267
- ] }) : /* @__PURE__ */ jsxs124("span", { "aria-live": "polite", children: [
21621
+ ] }) : /* @__PURE__ */ jsxs119("span", { "aria-live": "polite", children: [
22268
21622
  formatToPriceWithUSD(from?.toString()),
22269
21623
  " - ",
22270
21624
  formatToPriceWithUSD(to?.toString())
@@ -22276,9 +21630,9 @@ var PriceRange_default = PriceRange;
22276
21630
  var PriceRange_default2 = PriceRange_default;
22277
21631
 
22278
21632
  // src/Atomic/UI/ProgressLine/ProgressLine.tsx
22279
- import cn96 from "classnames";
22280
- import { jsx as jsx167, jsxs as jsxs125 } from "react/jsx-runtime";
22281
- var CN11 = "progress-line";
21633
+ import cn91 from "classnames";
21634
+ import { jsx as jsx162, jsxs as jsxs120 } from "react/jsx-runtime";
21635
+ var CN9 = "progress-line";
22282
21636
  var ProgressLine = ({
22283
21637
  label = "",
22284
21638
  labelAlign = "left",
@@ -22297,7 +21651,7 @@ var ProgressLine = ({
22297
21651
  useVariantLabelColor = true,
22298
21652
  isShowLine = true,
22299
21653
  className,
22300
- testId = CN11
21654
+ testId = CN9
22301
21655
  }) => {
22302
21656
  const getFilledLineWidth = () => {
22303
21657
  if (value > maxValue) value = maxValue;
@@ -22305,21 +21659,21 @@ var ProgressLine = ({
22305
21659
  };
22306
21660
  const renderLabel = () => {
22307
21661
  if (!label) return null;
22308
- return /* @__PURE__ */ jsx167("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
21662
+ return /* @__PURE__ */ jsx162("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
22309
21663
  };
22310
21664
  const renderProgressValue = () => {
22311
21665
  if (!renderValue) return null;
22312
- return /* @__PURE__ */ jsx167("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
21666
+ return /* @__PURE__ */ jsx162("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
22313
21667
  };
22314
21668
  const renderExtremums = () => {
22315
21669
  if (!showExtremums) return null;
22316
- return /* @__PURE__ */ jsxs125("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
22317
- /* @__PURE__ */ jsx167("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
22318
- /* @__PURE__ */ jsx167("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
21670
+ return /* @__PURE__ */ jsxs120("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
21671
+ /* @__PURE__ */ jsx162("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
21672
+ /* @__PURE__ */ jsx162("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
22319
21673
  ] });
22320
21674
  };
22321
21675
  const renderFilledLine = () => {
22322
- return /* @__PURE__ */ jsx167(
21676
+ return /* @__PURE__ */ jsx162(
22323
21677
  "div",
22324
21678
  {
22325
21679
  className: "progress-line__wrapper__line--filled",
@@ -22333,14 +21687,14 @@ var ProgressLine = ({
22333
21687
  );
22334
21688
  };
22335
21689
  const renderLine = () => {
22336
- return /* @__PURE__ */ jsxs125("div", { className: "progress-line__wrapper__line", children: [
21690
+ return /* @__PURE__ */ jsxs120("div", { className: "progress-line__wrapper__line", children: [
22337
21691
  renderExtremums(),
22338
21692
  renderFilledLine()
22339
21693
  ] });
22340
21694
  };
22341
- return /* @__PURE__ */ jsxs125("div", { className: cn96(CN11, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
21695
+ return /* @__PURE__ */ jsxs120("div", { className: cn91(CN9, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
22342
21696
  renderLabel(),
22343
- /* @__PURE__ */ jsxs125(
21697
+ /* @__PURE__ */ jsxs120(
22344
21698
  "div",
22345
21699
  {
22346
21700
  className: `progress-line__wrapper variant-${useVariantLabelColor && variant} value-${valueVerticalPosition}-${valueHorizontalPosition} ${className}`,
@@ -22357,108 +21711,229 @@ var ProgressLine_default = ProgressLine;
22357
21711
  // src/Atomic/UI/ProgressLine/index.ts
22358
21712
  var ProgressLine_default2 = ProgressLine_default;
22359
21713
 
21714
+ // src/Atomic/UI/Status/index.ts
21715
+ var Status_default2 = Status_default;
21716
+
22360
21717
  // src/Atomic/UI/Table/Table.js
22361
- import React74 from "react";
22362
- import cn101 from "classnames";
21718
+ import React72 from "react";
21719
+ import cn97 from "classnames";
22363
21720
 
22364
21721
  // src/Atomic/UI/Table/Partials/TdHeader.js
22365
- import React69 from "react";
22366
- import cn97 from "classnames";
22367
- import { jsx as jsx168, jsxs as jsxs126 } from "react/jsx-runtime";
21722
+ import React66 from "react";
21723
+ import cn92 from "classnames";
21724
+ import { jsx as jsx163, jsxs as jsxs121 } from "react/jsx-runtime";
22368
21725
  var TdHeader = ({ item, testId = "td-header" }) => {
22369
21726
  const txt = Langs_default[global.lng];
22370
21727
  switch (item.type) {
22371
21728
  case "double":
22372
- return /* @__PURE__ */ jsx168("th", { "data-testid": testId, children: /* @__PURE__ */ jsxs126("div", { className: "j46", children: [
22373
- /* @__PURE__ */ jsx168("div", { className: "", children: txt.labels[item.left] || item.left }),
22374
- /* @__PURE__ */ jsx168("div", { className: "", children: txt.labels[item.right] || item.right })
21729
+ return /* @__PURE__ */ jsx163("th", { "data-testid": testId, children: /* @__PURE__ */ jsxs121("div", { className: "j46", children: [
21730
+ /* @__PURE__ */ jsx163("div", { className: "", children: txt.labels[item.left] || item.left }),
21731
+ /* @__PURE__ */ jsx163("div", { className: "", children: txt.labels[item.right] || item.right })
22375
21732
  ] }) });
22376
21733
  default:
22377
- return /* @__PURE__ */ jsx168("th", { "data-testid": testId, className: cn97(item.className), children: /* @__PURE__ */ jsxs126("div", { className: cn97({ df: item.button }), children: [
22378
- /* @__PURE__ */ jsx168("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
22379
- item.button && /* @__PURE__ */ jsx168("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
21734
+ return /* @__PURE__ */ jsx163("th", { "data-testid": testId, className: cn92(item.className), children: /* @__PURE__ */ jsxs121("div", { className: cn92({ df: item.button }), children: [
21735
+ /* @__PURE__ */ jsx163("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
21736
+ item.button && /* @__PURE__ */ jsx163("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
22380
21737
  ] }) });
22381
21738
  }
22382
21739
  };
22383
21740
  var TdHeader_default = TdHeader;
22384
21741
 
22385
21742
  // src/Atomic/UI/Table/Partials/TdRow.js
22386
- import React73, { useState as useState80 } from "react";
22387
- import cn100 from "classnames";
21743
+ import React71, { useState as useState77 } from "react";
21744
+ import cn96 from "classnames";
22388
21745
 
22389
21746
  // src/Atomic/UI/Table/TdTypes/TdRange.js
22390
- import { jsx as jsx169, jsxs as jsxs127 } from "react/jsx-runtime";
21747
+ import { jsx as jsx164, jsxs as jsxs122 } from "react/jsx-runtime";
22391
21748
  var TdRange = ({ item }) => {
22392
21749
  if (!item) return false;
22393
- return /* @__PURE__ */ jsxs127("div", { children: [
22394
- /* @__PURE__ */ jsx169("span", { children: item.from }),
22395
- /* @__PURE__ */ jsx169("span", { children: " - " }),
22396
- /* @__PURE__ */ jsx169("span", { children: item.to })
21750
+ return /* @__PURE__ */ jsxs122("div", { children: [
21751
+ /* @__PURE__ */ jsx164("span", { children: item.from }),
21752
+ /* @__PURE__ */ jsx164("span", { children: " - " }),
21753
+ /* @__PURE__ */ jsx164("span", { children: item.to })
22397
21754
  ] });
22398
21755
  };
22399
21756
  var TdRange_default = TdRange;
22400
21757
 
22401
21758
  // src/Atomic/UI/Table/Partials/TdCell.js
22402
- import React72, { useState as useState79 } from "react";
21759
+ import React70, { useState as useState76 } from "react";
21760
+
21761
+ // src/Atomic/UI/Accordion/AccordionItem.tsx
21762
+ import cn93 from "classnames";
21763
+ import { useEffect as useEffect65, useRef as useRef45, useState as useState73 } from "react";
21764
+ import * as Icons from "react-feather";
21765
+ import { jsx as jsx165, jsxs as jsxs123 } from "react/jsx-runtime";
21766
+ var DefaultLink = ({ to, className, children }) => /* @__PURE__ */ jsx165("a", { href: to, className, children });
21767
+ var AccordionItem = ({
21768
+ item,
21769
+ onClick,
21770
+ isOpen,
21771
+ className,
21772
+ children,
21773
+ noChevron,
21774
+ linkComponent: LinkComponent = DefaultLink,
21775
+ testId = "accordion-item"
21776
+ }) => {
21777
+ const Icon2 = Icons[item.icon];
21778
+ const [maxHeight, setMaxHeight] = useState73(0);
21779
+ const ref = useRef45(null);
21780
+ const getItemsHeight = () => {
21781
+ let itemHeight = 0;
21782
+ ref.current?.childNodes.forEach((el) => {
21783
+ itemHeight += el.offsetHeight;
21784
+ });
21785
+ return itemHeight + 20;
21786
+ };
21787
+ useEffect65(() => {
21788
+ setMaxHeight(isOpen ? getItemsHeight() : 0);
21789
+ }, [isOpen]);
21790
+ const calculateStatusCount = () => {
21791
+ return item?.rows?.reduce(
21792
+ (acc, row) => {
21793
+ const result = row.cols.reduce(
21794
+ (accum, col) => ({
21795
+ active: accum.active + (col.status === "active" ? 1 : 0),
21796
+ pause: accum.pause + (col.status === "pause" ? 1 : 0)
21797
+ }),
21798
+ { active: 0, pause: 0 }
21799
+ );
21800
+ return {
21801
+ active: acc.active + result.active,
21802
+ pause: acc.pause + result.pause
21803
+ };
21804
+ },
21805
+ { active: 0, pause: 0 }
21806
+ );
21807
+ };
21808
+ return /* @__PURE__ */ jsxs123(
21809
+ "div",
21810
+ {
21811
+ "data-testid": testId,
21812
+ className: cn93("accordion--item", className),
21813
+ role: "region",
21814
+ "aria-labelledby": `accordion-title-${item.title}`,
21815
+ children: [
21816
+ /* @__PURE__ */ jsxs123(
21817
+ "div",
21818
+ {
21819
+ className: cn93("accordion--title-box", {
21820
+ "accordion--title-open": isOpen
21821
+ }),
21822
+ onClick: () => onClick(!isOpen),
21823
+ id: `accordion-title-${item.title}`,
21824
+ role: "button",
21825
+ "aria-expanded": isOpen,
21826
+ "aria-controls": `accordion-content-${item.title}`,
21827
+ tabIndex: 0,
21828
+ children: [
21829
+ /* @__PURE__ */ jsxs123("div", { className: "j4 no-wrap", children: [
21830
+ item?.icon && /* @__PURE__ */ jsx165(Icon2, { className: cn93("mr5", item?.className), "aria-hidden": "true" }),
21831
+ /* @__PURE__ */ jsx165("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
21832
+ ] }),
21833
+ /* @__PURE__ */ jsxs123("div", { className: "j6 accordion-title__right-box", children: [
21834
+ item.status && /* @__PURE__ */ jsx165("div", { className: "mr5", children: /* @__PURE__ */ jsx165(
21835
+ Status_default2,
21836
+ {
21837
+ type: item?.status.type,
21838
+ value: item?.status.value,
21839
+ status: item?.status.status,
21840
+ active: calculateStatusCount()?.active,
21841
+ pause: calculateStatusCount()?.pause
21842
+ }
21843
+ ) }),
21844
+ !noChevron && /* @__PURE__ */ jsx165(
21845
+ Icons.ChevronRight,
21846
+ {
21847
+ "aria-hidden": "true",
21848
+ className: cn93("accordion--title-chevron", {
21849
+ "accordion--title-chevron-open": isOpen
21850
+ })
21851
+ }
21852
+ )
21853
+ ] })
21854
+ ]
21855
+ }
21856
+ ),
21857
+ /* @__PURE__ */ jsx165(
21858
+ "div",
21859
+ {
21860
+ ref,
21861
+ style: { maxHeight },
21862
+ className: cn93("accordion--content", {
21863
+ "accordion--content-is-open": isOpen
21864
+ }),
21865
+ id: `accordion-content-${item.title}`,
21866
+ role: "region",
21867
+ "aria-labelledby": `accordion-title-${item.title}`,
21868
+ children: item.children ? item.children.map((el) => {
21869
+ return /* @__PURE__ */ jsx165(LinkComponent, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
21870
+ }) : children
21871
+ }
21872
+ )
21873
+ ]
21874
+ }
21875
+ );
21876
+ };
21877
+ var AccordionItem_default = AccordionItem;
22403
21878
 
22404
21879
  // src/Atomic/UI/Table/TdTypes/TdActions.js
22405
- import React70, { useState as useState77 } from "react";
22406
- import * as Icons5 from "react-feather";
22407
- import { jsx as jsx170 } from "react/jsx-runtime";
21880
+ import React68, { useState as useState74 } from "react";
21881
+ import * as Icons2 from "react-feather";
21882
+ import { jsx as jsx166 } from "react/jsx-runtime";
22408
21883
  var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22409
21884
  if (!actions) return false;
22410
- const [state, setState] = useState77(actions);
21885
+ const [state, setState] = useState74(actions);
22411
21886
  const handleArrayChange = (value, index, prop) => {
22412
21887
  state[index][prop] = value;
22413
21888
  setState([...state]);
22414
21889
  onChange(state);
22415
21890
  };
22416
- return /* @__PURE__ */ jsx170("div", { className: "j6", children: actions?.map((action, index) => {
21891
+ return /* @__PURE__ */ jsx166("div", { className: "j6", children: actions?.map((action, index) => {
22417
21892
  switch (action.type) {
22418
21893
  case "download":
22419
- return /* @__PURE__ */ jsx170(
21894
+ return /* @__PURE__ */ jsx166(
22420
21895
  "div",
22421
21896
  {
22422
21897
  className: "td-actions--item td-actions--download",
22423
21898
  onClick: () => {
22424
21899
  },
22425
- children: /* @__PURE__ */ jsx170(Icons5.Download, {})
21900
+ children: /* @__PURE__ */ jsx166(Icons2.Download, {})
22426
21901
  },
22427
21902
  index
22428
21903
  );
22429
21904
  case "edit":
22430
- return /* @__PURE__ */ jsx170(
21905
+ return /* @__PURE__ */ jsx166(
22431
21906
  "div",
22432
21907
  {
22433
21908
  className: "td-actions--item td-actions--edit",
22434
21909
  onClick: () => {
22435
21910
  },
22436
- children: /* @__PURE__ */ jsx170(Icons5.Edit3, {})
21911
+ children: /* @__PURE__ */ jsx166(Icons2.Edit3, {})
22437
21912
  },
22438
21913
  index
22439
21914
  );
22440
21915
  case "delete":
22441
- return /* @__PURE__ */ jsx170(
21916
+ return /* @__PURE__ */ jsx166(
22442
21917
  "div",
22443
21918
  {
22444
21919
  className: "td-actions--item td-actions--delete",
22445
21920
  onClick: () => onActionClick("delete", rowItem),
22446
- children: /* @__PURE__ */ jsx170(Icons5.Trash2, {})
21921
+ children: /* @__PURE__ */ jsx166(Icons2.Trash2, {})
22447
21922
  },
22448
21923
  index
22449
21924
  );
22450
21925
  case "undo":
22451
- return /* @__PURE__ */ jsx170(
21926
+ return /* @__PURE__ */ jsx166(
22452
21927
  "div",
22453
21928
  {
22454
21929
  className: "td-actions--item td-actions--undo",
22455
21930
  onClick: () => onActionClick("undo", rowItem),
22456
- children: /* @__PURE__ */ jsx170(Icons5.RotateCcw, {})
21931
+ children: /* @__PURE__ */ jsx166(Icons2.RotateCcw, {})
22457
21932
  },
22458
21933
  index
22459
21934
  );
22460
21935
  case "switcher":
22461
- return /* @__PURE__ */ jsx170("div", { className: "df", children: /* @__PURE__ */ jsx170(
21936
+ return /* @__PURE__ */ jsx166("div", { className: "df", children: /* @__PURE__ */ jsx166(
22462
21937
  Switcher_default,
22463
21938
  {
22464
21939
  label: action.label || null,
@@ -22473,28 +21948,28 @@ var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22473
21948
  };
22474
21949
 
22475
21950
  // src/Atomic/UI/Table/TdTypes/TdPriority.js
22476
- import React71 from "react";
22477
- import cn98 from "classnames";
21951
+ import React69 from "react";
21952
+ import cn94 from "classnames";
22478
21953
  import { ArrowDown as ArrowDown3, ArrowUp as ArrowUp3 } from "react-feather";
22479
- import { jsx as jsx171, jsxs as jsxs128 } from "react/jsx-runtime";
21954
+ import { jsx as jsx167, jsxs as jsxs124 } from "react/jsx-runtime";
22480
21955
  var TdPriority = ({ onClick, rowIndex, cardLength }) => {
22481
- return /* @__PURE__ */ jsxs128("div", { className: "cards-table__priority", children: [
22482
- /* @__PURE__ */ jsx171("span", { className: "mr5", children: rowIndex + 1 }),
22483
- /* @__PURE__ */ jsxs128("div", { className: "df", children: [
22484
- /* @__PURE__ */ jsx171(
21956
+ return /* @__PURE__ */ jsxs124("div", { className: "cards-table__priority", children: [
21957
+ /* @__PURE__ */ jsx167("span", { className: "mr5", children: rowIndex + 1 }),
21958
+ /* @__PURE__ */ jsxs124("div", { className: "df", children: [
21959
+ /* @__PURE__ */ jsx167(
22485
21960
  ArrowDown3,
22486
21961
  {
22487
21962
  onClick: () => onClick(rowIndex),
22488
- className: cn98("table--icon", {
21963
+ className: cn94("table--icon", {
22489
21964
  disabled: rowIndex + 1 === cardLength
22490
21965
  })
22491
21966
  }
22492
21967
  ),
22493
- /* @__PURE__ */ jsx171(
21968
+ /* @__PURE__ */ jsx167(
22494
21969
  ArrowUp3,
22495
21970
  {
22496
21971
  onClick: () => onClick(rowIndex, true),
22497
- className: cn98("table--icon", { disabled: rowIndex === 0 })
21972
+ className: cn94("table--icon", { disabled: rowIndex === 0 })
22498
21973
  }
22499
21974
  )
22500
21975
  ] })
@@ -22503,17 +21978,17 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
22503
21978
  var TdPriority_default = TdPriority;
22504
21979
 
22505
21980
  // src/Atomic/UI/Table/TdTypes/TdWeight.js
22506
- import { useEffect as useEffect67, useState as useState78 } from "react";
22507
- import cn99 from "classnames";
22508
- import { Fragment as Fragment20, jsx as jsx172, jsxs as jsxs129 } from "react/jsx-runtime";
21981
+ import { useEffect as useEffect66, useState as useState75 } from "react";
21982
+ import cn95 from "classnames";
21983
+ import { Fragment as Fragment20, jsx as jsx168, jsxs as jsxs125 } from "react/jsx-runtime";
22509
21984
  var TdWeight = ({ value, percent, onChange, className }) => {
22510
- const [state, setState] = useState78(value);
21985
+ const [state, setState] = useState75(value);
22511
21986
  const {
22512
21987
  isToggled: isEdited,
22513
21988
  toggleOff: unsetIsEdited,
22514
21989
  toggleOn: setIsEdited
22515
21990
  } = useOutsideToggle(false);
22516
- useEffect67(() => {
21991
+ useEffect66(() => {
22517
21992
  setState(value);
22518
21993
  }, [value, isEdited]);
22519
21994
  const handleKeyUp = ({ keyCode, target }) => {
@@ -22523,7 +21998,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22523
21998
  unsetIsEdited();
22524
21999
  }
22525
22000
  };
22526
- return /* @__PURE__ */ jsx172(Fragment20, { children: isEdited ? /* @__PURE__ */ jsx172(
22001
+ return /* @__PURE__ */ jsx168(Fragment20, { children: isEdited ? /* @__PURE__ */ jsx168(
22527
22002
  Input,
22528
22003
  {
22529
22004
  value: state,
@@ -22532,9 +22007,9 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22532
22007
  onKeyUp: handleKeyUp,
22533
22008
  autoFocus: true
22534
22009
  }
22535
- ) : /* @__PURE__ */ jsxs129("div", { className: cn99("td-weight", className), onClick: setIsEdited, children: [
22536
- /* @__PURE__ */ jsx172("span", { children: value }),
22537
- /* @__PURE__ */ jsxs129("span", { className: "ml2 color--grey-gull", children: [
22010
+ ) : /* @__PURE__ */ jsxs125("div", { className: cn95("td-weight", className), onClick: setIsEdited, children: [
22011
+ /* @__PURE__ */ jsx168("span", { children: value }),
22012
+ /* @__PURE__ */ jsxs125("span", { className: "ml2 color--grey-gull", children: [
22538
22013
  "(",
22539
22014
  percent,
22540
22015
  "%)"
@@ -22544,7 +22019,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22544
22019
  var TdWeight_default = TdWeight;
22545
22020
 
22546
22021
  // src/Atomic/UI/Table/Partials/TdCell.js
22547
- import { jsx as jsx173 } from "react/jsx-runtime";
22022
+ import { jsx as jsx169 } from "react/jsx-runtime";
22548
22023
  var TdCell = ({
22549
22024
  type,
22550
22025
  item,
@@ -22557,22 +22032,22 @@ var TdCell = ({
22557
22032
  rowItem,
22558
22033
  isDeleted
22559
22034
  }) => {
22560
- const [isAccordionOpen, setIsAccordionOpen] = useState79(item.isOpen);
22035
+ const [isAccordionOpen, setIsAccordionOpen] = useState76(item.isOpen);
22561
22036
  const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
22562
22037
  switch (type) {
22563
22038
  case "accordion":
22564
- return /* @__PURE__ */ jsx173(
22039
+ return /* @__PURE__ */ jsx169(
22565
22040
  AccordionItem_default,
22566
22041
  {
22567
22042
  className: item.itemClassName,
22568
22043
  item,
22569
22044
  isOpen: isAccordionOpen,
22570
22045
  onClick: (e) => setIsAccordionOpen(e),
22571
- children: /* @__PURE__ */ jsx173(Table_default, { rows: item.rows, className: "accordion--table" })
22046
+ children: /* @__PURE__ */ jsx169(Table_default, { rows: item.rows, className: "accordion--table" })
22572
22047
  }
22573
22048
  );
22574
22049
  case "actions":
22575
- return /* @__PURE__ */ jsx173(
22050
+ return /* @__PURE__ */ jsx169(
22576
22051
  TdActions,
22577
22052
  {
22578
22053
  rowItem,
@@ -22582,11 +22057,11 @@ var TdCell = ({
22582
22057
  }
22583
22058
  );
22584
22059
  case "advancedTags":
22585
- return /* @__PURE__ */ jsx173(AdvancedTags_default, { items: item });
22060
+ return /* @__PURE__ */ jsx169(AdvancedTags_default, { items: item });
22586
22061
  case "link":
22587
- return /* @__PURE__ */ jsx173("a", { href: item.link, children: item.label });
22062
+ return /* @__PURE__ */ jsx169("a", { href: item.link, children: item.label });
22588
22063
  case "priority":
22589
- return /* @__PURE__ */ jsx173(
22064
+ return /* @__PURE__ */ jsx169(
22590
22065
  TdPriority_default,
22591
22066
  {
22592
22067
  rowIndex,
@@ -22595,7 +22070,7 @@ var TdCell = ({
22595
22070
  }
22596
22071
  );
22597
22072
  case "status":
22598
- return /* @__PURE__ */ jsx173(
22073
+ return /* @__PURE__ */ jsx169(
22599
22074
  Status_default,
22600
22075
  {
22601
22076
  className: item.className,
@@ -22604,9 +22079,9 @@ var TdCell = ({
22604
22079
  }
22605
22080
  );
22606
22081
  case "tags":
22607
- return item.map((tag, index) => /* @__PURE__ */ jsx173(Tag_default, { label: tag.label }, index));
22082
+ return item.map((tag, index) => /* @__PURE__ */ jsx169(Tag_default, { label: tag.label }, index));
22608
22083
  case "weight":
22609
- return /* @__PURE__ */ jsx173(
22084
+ return /* @__PURE__ */ jsx169(
22610
22085
  TdWeight_default,
22611
22086
  {
22612
22087
  value: item.value,
@@ -22615,13 +22090,13 @@ var TdCell = ({
22615
22090
  }
22616
22091
  );
22617
22092
  default:
22618
- return /* @__PURE__ */ jsx173("span", { className: item.className, children: item.value });
22093
+ return /* @__PURE__ */ jsx169("span", { className: item.className, children: item.value });
22619
22094
  }
22620
22095
  };
22621
22096
  var TdCell_default = TdCell;
22622
22097
 
22623
22098
  // src/Atomic/UI/Table/Partials/TdRow.js
22624
- import { Fragment as Fragment21, jsx as jsx174, jsxs as jsxs130 } from "react/jsx-runtime";
22099
+ import { Fragment as Fragment21, jsx as jsx170, jsxs as jsxs126 } from "react/jsx-runtime";
22625
22100
  var TdRow = ({
22626
22101
  item,
22627
22102
  onChange,
@@ -22638,27 +22113,27 @@ var TdRow = ({
22638
22113
  isDeleted,
22639
22114
  testId = "td-row"
22640
22115
  }) => {
22641
- const [isOpen, setIsOpen] = useState80(false);
22116
+ const [isOpen, setIsOpen] = useState77(false);
22642
22117
  const handleChange = handleObjectChange(item, () => onChange({ ...item }));
22643
- return /* @__PURE__ */ jsxs130(Fragment21, { children: [
22644
- /* @__PURE__ */ jsxs130("tr", { "data-testid": testId, children: [
22645
- type && rowSpan && /* @__PURE__ */ jsx174("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ jsx174(
22118
+ return /* @__PURE__ */ jsxs126(Fragment21, { children: [
22119
+ /* @__PURE__ */ jsxs126("tr", { "data-testid": testId, children: [
22120
+ type && rowSpan && /* @__PURE__ */ jsx170("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ jsx170(
22646
22121
  "span",
22647
22122
  {
22648
- className: cn100(
22123
+ className: cn96(
22649
22124
  type && `cards-table__score cards-table__score-${cardStatus}`
22650
22125
  ),
22651
- children: /* @__PURE__ */ jsx174(TdRange_default, { item: range })
22126
+ children: /* @__PURE__ */ jsx170(TdRange_default, { item: range })
22652
22127
  }
22653
22128
  ) }),
22654
22129
  Object.entries(item).map(
22655
- ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx174(
22130
+ ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx170(
22656
22131
  "td",
22657
22132
  {
22658
- className: cn100("cards-table__body-item", {
22133
+ className: cn96("cards-table__body-item", {
22659
22134
  "cards-table__accordion": value.type === "accordion"
22660
22135
  }),
22661
- children: /* @__PURE__ */ jsx174(
22136
+ children: /* @__PURE__ */ jsx170(
22662
22137
  TdCell_default,
22663
22138
  {
22664
22139
  onActionClick,
@@ -22678,10 +22153,10 @@ var TdRow = ({
22678
22153
  )
22679
22154
  )
22680
22155
  ] }),
22681
- type && colSpan ? /* @__PURE__ */ jsxs130("tr", { children: [
22682
- /* @__PURE__ */ jsx174("td", {}),
22683
- /* @__PURE__ */ jsxs130("td", { colSpan, children: [
22684
- /* @__PURE__ */ jsx174(
22156
+ type && colSpan ? /* @__PURE__ */ jsxs126("tr", { children: [
22157
+ /* @__PURE__ */ jsx170("td", {}),
22158
+ /* @__PURE__ */ jsxs126("td", { colSpan, children: [
22159
+ /* @__PURE__ */ jsx170(
22685
22160
  "span",
22686
22161
  {
22687
22162
  className: "cards-table__title-select-lender-btn",
@@ -22689,7 +22164,7 @@ var TdRow = ({
22689
22164
  children: "Select Lender"
22690
22165
  }
22691
22166
  ),
22692
- /* @__PURE__ */ jsx174(
22167
+ /* @__PURE__ */ jsx170(
22693
22168
  Modal_default,
22694
22169
  {
22695
22170
  closeModal: () => setIsOpen(false),
@@ -22706,7 +22181,7 @@ var TdRow = ({
22706
22181
  var TdRow_default = TdRow;
22707
22182
 
22708
22183
  // src/Atomic/UI/Table/Table.js
22709
- import { jsx as jsx175, jsxs as jsxs131 } from "react/jsx-runtime";
22184
+ import { jsx as jsx171, jsxs as jsxs127 } from "react/jsx-runtime";
22710
22185
  var Table = ({
22711
22186
  rows,
22712
22187
  onChange,
@@ -22719,16 +22194,16 @@ var Table = ({
22719
22194
  rows[index] = value;
22720
22195
  onChange({ header: [...header], rows: [...rows] });
22721
22196
  };
22722
- return /* @__PURE__ */ jsx175(
22197
+ return /* @__PURE__ */ jsx171(
22723
22198
  "div",
22724
22199
  {
22725
22200
  "data-testid": testId,
22726
- className: cn101("simple-table", {
22201
+ className: cn97("simple-table", {
22727
22202
  [`simple-table--${className}`]: className
22728
22203
  }),
22729
- children: /* @__PURE__ */ jsxs131("table", { children: [
22730
- /* @__PURE__ */ jsx175("thead", { children: /* @__PURE__ */ jsx175("tr", { children: header?.map((item) => /* @__PURE__ */ jsx175(TdHeader_default, { item }, item.key)) }) }),
22731
- /* @__PURE__ */ jsx175("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ jsx175(
22204
+ children: /* @__PURE__ */ jsxs127("table", { children: [
22205
+ /* @__PURE__ */ jsx171("thead", { children: /* @__PURE__ */ jsx171("tr", { children: header?.map((item) => /* @__PURE__ */ jsx171(TdHeader_default, { item }, item.key)) }) }),
22206
+ /* @__PURE__ */ jsx171("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ jsx171(
22732
22207
  TdRow_default,
22733
22208
  {
22734
22209
  onActionClick,
@@ -22738,7 +22213,7 @@ var Table = ({
22738
22213
  onChange: (value) => handleArrayChange(value, index)
22739
22214
  },
22740
22215
  typeof row.id === "object" ? row.id.value : row.id
22741
- )) : /* @__PURE__ */ jsx175("tr", { children: /* @__PURE__ */ jsx175("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
22216
+ )) : /* @__PURE__ */ jsx171("tr", { children: /* @__PURE__ */ jsx171("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
22742
22217
  ] })
22743
22218
  }
22744
22219
  );
@@ -22749,8 +22224,8 @@ var Table_default = Table;
22749
22224
  var Tag_default2 = Tag_default;
22750
22225
 
22751
22226
  // src/Atomic/UI/UserBox/UserBox.tsx
22752
- import cn102 from "classnames";
22753
- import { Fragment as Fragment22, jsx as jsx176, jsxs as jsxs132 } from "react/jsx-runtime";
22227
+ import cn98 from "classnames";
22228
+ import { Fragment as Fragment22, jsx as jsx172, jsxs as jsxs128 } from "react/jsx-runtime";
22754
22229
  var UserBox = ({
22755
22230
  name = "Username",
22756
22231
  role,
@@ -22764,28 +22239,28 @@ var UserBox = ({
22764
22239
  const getNameFirstLetter = name.charAt(0).toUpperCase();
22765
22240
  const renderUser = () => {
22766
22241
  if (isModal) {
22767
- return /* @__PURE__ */ jsxs132(Fragment22, { children: [
22768
- /* @__PURE__ */ jsx176("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22769
- /* @__PURE__ */ jsxs132("div", { className: "td-user-box__user-data", children: [
22770
- /* @__PURE__ */ jsx176(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
22771
- role && /* @__PURE__ */ jsx176("span", { children: role })
22242
+ return /* @__PURE__ */ jsxs128(Fragment22, { children: [
22243
+ /* @__PURE__ */ jsx172("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22244
+ /* @__PURE__ */ jsxs128("div", { className: "td-user-box__user-data", children: [
22245
+ /* @__PURE__ */ jsx172(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
22246
+ role && /* @__PURE__ */ jsx172("span", { children: role })
22772
22247
  ] })
22773
22248
  ] });
22774
22249
  } else {
22775
- return /* @__PURE__ */ jsxs132(Fragment22, { children: [
22776
- /* @__PURE__ */ jsx176("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22777
- /* @__PURE__ */ jsxs132("div", { className: "td-user-box__user-data", children: [
22778
- /* @__PURE__ */ jsx176(Label_default, { label: name }),
22779
- role && /* @__PURE__ */ jsx176("span", { "aria-label": `User role: ${role}`, children: role })
22250
+ return /* @__PURE__ */ jsxs128(Fragment22, { children: [
22251
+ /* @__PURE__ */ jsx172("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22252
+ /* @__PURE__ */ jsxs128("div", { className: "td-user-box__user-data", children: [
22253
+ /* @__PURE__ */ jsx172(Label_default, { label: name }),
22254
+ role && /* @__PURE__ */ jsx172("span", { "aria-label": `User role: ${role}`, children: role })
22780
22255
  ] })
22781
22256
  ] });
22782
22257
  }
22783
22258
  };
22784
- return /* @__PURE__ */ jsx176(
22259
+ return /* @__PURE__ */ jsx172(
22785
22260
  "div",
22786
22261
  {
22787
22262
  "data-testid": testId,
22788
- className: cn102("td-user-box", className),
22263
+ className: cn98("td-user-box", className),
22789
22264
  role: "region",
22790
22265
  "aria-label": `User box for ${name}`,
22791
22266
  children: renderUser()
@@ -22801,38 +22276,38 @@ var UserBox_default2 = UserBox_default;
22801
22276
  import classNames2 from "classnames";
22802
22277
 
22803
22278
  // src/Atomic/UI/WizardStepper/ui/icons.tsx
22804
- import { jsx as jsx177, jsxs as jsxs133 } from "react/jsx-runtime";
22805
- var DoneIcon = () => /* @__PURE__ */ jsxs133("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22806
- /* @__PURE__ */ jsx177("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
22807
- /* @__PURE__ */ jsx177("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx177("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
22808
- /* @__PURE__ */ jsx177("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ jsx177("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
22279
+ import { jsx as jsx173, jsxs as jsxs129 } from "react/jsx-runtime";
22280
+ var DoneIcon = () => /* @__PURE__ */ jsxs129("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22281
+ /* @__PURE__ */ jsx173("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
22282
+ /* @__PURE__ */ jsx173("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx173("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
22283
+ /* @__PURE__ */ jsx173("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ jsx173("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
22809
22284
  ] });
22810
22285
  var TodoIcon = () => {
22811
- return /* @__PURE__ */ jsxs133("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22812
- /* @__PURE__ */ jsx177("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ jsx177("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
22813
- /* @__PURE__ */ jsx177("defs", { children: /* @__PURE__ */ jsx177("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ jsx177("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
22286
+ return /* @__PURE__ */ jsxs129("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22287
+ /* @__PURE__ */ jsx173("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ jsx173("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
22288
+ /* @__PURE__ */ jsx173("defs", { children: /* @__PURE__ */ jsx173("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ jsx173("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
22814
22289
  ] });
22815
22290
  };
22816
22291
  var ActiveIcon = () => {
22817
- return /* @__PURE__ */ jsxs133("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22818
- /* @__PURE__ */ jsx177("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
22292
+ return /* @__PURE__ */ jsxs129("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22293
+ /* @__PURE__ */ jsx173("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
22819
22294
  "ii",
22820
- /* @__PURE__ */ jsx177("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx177("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
22821
- /* @__PURE__ */ jsx177("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ jsx177("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
22295
+ /* @__PURE__ */ jsx173("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx173("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
22296
+ /* @__PURE__ */ jsx173("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ jsx173("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
22822
22297
  ] });
22823
22298
  };
22824
22299
  var alternativeIconSet = {
22825
- defaultIcon: /* @__PURE__ */ jsx177(TodoIcon, {}),
22826
- doneIcon: /* @__PURE__ */ jsx177(DoneIcon, {}),
22827
- activeIcon: /* @__PURE__ */ jsx177(ActiveIcon, {})
22300
+ defaultIcon: /* @__PURE__ */ jsx173(TodoIcon, {}),
22301
+ doneIcon: /* @__PURE__ */ jsx173(DoneIcon, {}),
22302
+ activeIcon: /* @__PURE__ */ jsx173(ActiveIcon, {})
22828
22303
  };
22829
22304
 
22830
22305
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
22831
- import cn104 from "classnames";
22306
+ import cn100 from "classnames";
22832
22307
 
22833
22308
  // src/Atomic/UI/WizardStepper/constructor.js
22834
- import React75 from "react";
22835
- import { jsx as jsx178, jsxs as jsxs134 } from "react/jsx-runtime";
22309
+ import React73 from "react";
22310
+ import { jsx as jsx174, jsxs as jsxs130 } from "react/jsx-runtime";
22836
22311
  var WIZARD_STEP_VARIANTS = Object.freeze({
22837
22312
  DEFAULT: "default",
22838
22313
  DONE: "done",
@@ -22840,31 +22315,31 @@ var WIZARD_STEP_VARIANTS = Object.freeze({
22840
22315
  });
22841
22316
 
22842
22317
  // src/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.tsx
22843
- import cn103 from "classnames";
22844
- import { jsx as jsx179 } from "react/jsx-runtime";
22318
+ import cn99 from "classnames";
22319
+ import { jsx as jsx175 } from "react/jsx-runtime";
22845
22320
  var DefaultPoint = () => {
22846
- return /* @__PURE__ */ jsx179("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx179("circle", { cx: "8", cy: "8", r: "4" }) });
22321
+ return /* @__PURE__ */ jsx175("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx175("circle", { cx: "8", cy: "8", r: "4" }) });
22847
22322
  };
22848
22323
  var DonePoint = () => {
22849
- return /* @__PURE__ */ jsx179("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx179("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
22324
+ return /* @__PURE__ */ jsx175("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx175("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
22850
22325
  };
22851
22326
  var RC39 = "state-icon";
22852
22327
  var { ACTIVE, DEFAULT, DONE } = WIZARD_STEP_VARIANTS;
22853
22328
  var StateIcon = ({ variant = DEFAULT, className }) => {
22854
22329
  const computedState = variant === ACTIVE || variant === DONE ? variant : DEFAULT;
22855
22330
  const Inner = {
22856
- [DEFAULT]: /* @__PURE__ */ jsx179(DefaultPoint, {}),
22857
- [ACTIVE]: /* @__PURE__ */ jsx179(DefaultPoint, {}),
22858
- [DONE]: /* @__PURE__ */ jsx179(DonePoint, {})
22331
+ [DEFAULT]: /* @__PURE__ */ jsx175(DefaultPoint, {}),
22332
+ [ACTIVE]: /* @__PURE__ */ jsx175(DefaultPoint, {}),
22333
+ [DONE]: /* @__PURE__ */ jsx175(DonePoint, {})
22859
22334
  };
22860
- return /* @__PURE__ */ jsx179("div", { className: cn103(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
22335
+ return /* @__PURE__ */ jsx175("div", { className: cn99(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
22861
22336
  };
22862
22337
 
22863
22338
  // src/Atomic/UI/WizardStepper/ui/StateIcon/index.ts
22864
22339
  var StateIcon_default = StateIcon;
22865
22340
 
22866
22341
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
22867
- import { jsx as jsx180, jsxs as jsxs135 } from "react/jsx-runtime";
22342
+ import { jsx as jsx176, jsxs as jsxs131 } from "react/jsx-runtime";
22868
22343
  var RC40 = "step-row";
22869
22344
  var { DEFAULT: DEFAULT2, ACTIVE: ACTIVE2, DONE: DONE2 } = WIZARD_STEP_VARIANTS;
22870
22345
  var StepRow = ({
@@ -22891,29 +22366,29 @@ var StepRow = ({
22891
22366
  })();
22892
22367
  const CorrectIcon = () => {
22893
22368
  if (!customIcons || Object?.values(customIcons)?.every((icon) => !icon)) {
22894
- return /* @__PURE__ */ jsx180(StateIcon_default, { variant: rowVariant });
22369
+ return /* @__PURE__ */ jsx176(StateIcon_default, { variant: rowVariant });
22895
22370
  }
22896
22371
  return alternaviteIconFromProps || null;
22897
22372
  };
22898
- return /* @__PURE__ */ jsxs135("div", { className: cn104(RC40, `${RC40}--${rowVariant}`, className), children: [
22899
- /* @__PURE__ */ jsx180("div", { className: cn104(`${RC40}__state-point`, `${RC40}__state-point--${rowVariant}`), children: /* @__PURE__ */ jsx180(CorrectIcon, {}) }),
22900
- /* @__PURE__ */ jsxs135("div", { className: `${RC40}__content`, children: [
22901
- /* @__PURE__ */ jsxs135("div", { className: `${RC40}__title`, children: [
22902
- /* @__PURE__ */ jsxs135("div", { className: `${RC40}__title-left`, children: [
22903
- /* @__PURE__ */ jsx180("div", { className: cn104(`${RC40}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
22904
- isOptional && /* @__PURE__ */ jsx180(Status_default, { label: "Optional", status: "draft" })
22373
+ return /* @__PURE__ */ jsxs131("div", { className: cn100(RC40, `${RC40}--${rowVariant}`, className), children: [
22374
+ /* @__PURE__ */ jsx176("div", { className: cn100(`${RC40}__state-point`, `${RC40}__state-point--${rowVariant}`), children: /* @__PURE__ */ jsx176(CorrectIcon, {}) }),
22375
+ /* @__PURE__ */ jsxs131("div", { className: `${RC40}__content`, children: [
22376
+ /* @__PURE__ */ jsxs131("div", { className: `${RC40}__title`, children: [
22377
+ /* @__PURE__ */ jsxs131("div", { className: `${RC40}__title-left`, children: [
22378
+ /* @__PURE__ */ jsx176("div", { className: cn100(`${RC40}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
22379
+ isOptional && /* @__PURE__ */ jsx176(Status_default, { label: "Optional", status: "draft" })
22905
22380
  ] }),
22906
- titleSlot && /* @__PURE__ */ jsx180("div", { className: `${RC40}__title-right`, children: titleSlot })
22381
+ titleSlot && /* @__PURE__ */ jsx176("div", { className: `${RC40}__title-right`, children: titleSlot })
22907
22382
  ] }),
22908
- description && /* @__PURE__ */ jsx180("div", { className: `${RC40}__description`, children: description }),
22909
- contentSlot && /* @__PURE__ */ jsx180("div", { className: `${RC40}__body`, children: contentSlot })
22383
+ description && /* @__PURE__ */ jsx176("div", { className: `${RC40}__description`, children: description }),
22384
+ contentSlot && /* @__PURE__ */ jsx176("div", { className: `${RC40}__body`, children: contentSlot })
22910
22385
  ] })
22911
22386
  ] }, label);
22912
22387
  };
22913
22388
  var StepRow_default = StepRow;
22914
22389
 
22915
22390
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
22916
- import { jsx as jsx181 } from "react/jsx-runtime";
22391
+ import { jsx as jsx177 } from "react/jsx-runtime";
22917
22392
  var StepWrapper = ({
22918
22393
  steps,
22919
22394
  customIcons,
@@ -22921,10 +22396,10 @@ var StepWrapper = ({
22921
22396
  className,
22922
22397
  testId = "step-wrapper"
22923
22398
  }) => {
22924
- if (!steps?.length) return /* @__PURE__ */ jsx181("div", { "data-testid": "empty-state", children: "No steps available" });
22399
+ if (!steps?.length) return /* @__PURE__ */ jsx177("div", { "data-testid": "empty-state", children: "No steps available" });
22925
22400
  const renderStepRow = (step) => {
22926
22401
  const { key, ...stepProps } = step;
22927
- return /* @__PURE__ */ jsx181(
22402
+ return /* @__PURE__ */ jsx177(
22928
22403
  StepRow_default,
22929
22404
  {
22930
22405
  ...stepProps,
@@ -22935,7 +22410,7 @@ var StepWrapper = ({
22935
22410
  };
22936
22411
  switch (variant) {
22937
22412
  case "ghost":
22938
- return /* @__PURE__ */ jsx181(
22413
+ return /* @__PURE__ */ jsx177(
22939
22414
  Box_default,
22940
22415
  {
22941
22416
  className: classNames2("step-wrapper", "step-wrapper-ghost", className),
@@ -22944,7 +22419,7 @@ var StepWrapper = ({
22944
22419
  }
22945
22420
  );
22946
22421
  case "cardActive":
22947
- return /* @__PURE__ */ jsx181(
22422
+ return /* @__PURE__ */ jsx177(
22948
22423
  "div",
22949
22424
  {
22950
22425
  className: classNames2("step-wrapper", "step-wrapper-card-active", className),
@@ -22953,7 +22428,7 @@ var StepWrapper = ({
22953
22428
  }
22954
22429
  );
22955
22430
  default:
22956
- return /* @__PURE__ */ jsx181(
22431
+ return /* @__PURE__ */ jsx177(
22957
22432
  "div",
22958
22433
  {
22959
22434
  className: classNames2("step-wrapper", className),
@@ -23224,7 +22699,6 @@ export {
23224
22699
  ALL_TIME_KEY,
23225
22700
  ANDROID_CHROME_TEXT_CODE,
23226
22701
  AbortableFetch_default as AbortableFetch,
23227
- Accordion_default2 as Accordion,
23228
22702
  AccordionTable_default as AccordionTable,
23229
22703
  AccordionText_default as AccordionText,
23230
22704
  AccordionWithCheckbox_default as AccordionWithCheckbox,
@@ -23237,7 +22711,6 @@ export {
23237
22711
  Arrow_default as Arrow,
23238
22712
  Box_default as Box,
23239
22713
  Button_default as Button,
23240
- ButtonsBar_default2 as ButtonsBar,
23241
22714
  CUSTOM_INTERVAL_KEY,
23242
22715
  CUSTOM_INTERVAL_KEY_TEXT,
23243
22716
  Calendar_default as Calendar,
@@ -23299,7 +22772,6 @@ export {
23299
22772
  MASK_PRESETS,
23300
22773
  MAX_NAME_LENGTH,
23301
22774
  MAX_PHONE_LENGTH,
23302
- MainMenu_default as MainMenu,
23303
22775
  MobileCalendar_default as MobileCalendar,
23304
22776
  Modal_default2 as Modal,
23305
22777
  ModalFooter_default as ModalFooter,
@@ -23309,7 +22781,6 @@ export {
23309
22781
  MultiSelect_default as MultiSelect,
23310
22782
  NAME_SYMBOLS_EXCLUDER,
23311
22783
  NUMERIC_KEYBOARD,
23312
- NavLine_default2 as NavLine,
23313
22784
  NumericInput_default as NumericInput,
23314
22785
  ONLY_STRING_AND_DASH,
23315
22786
  OS,