intelicoreact 2.0.11 → 2.0.15

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
@@ -15376,7 +15376,7 @@ var TagsDropdown = ({
15376
15376
  const singleLevelOptions = options?.reduce(
15377
15377
  (acc, item) => {
15378
15378
  const checkUniqAndPush = (acc2, item2) => {
15379
- const isExist = acc2?.findIndex(({ value }) => value === item2?.value);
15379
+ const isExist = acc2?.findIndex(({ value }) => String(value) === String(item2?.value));
15380
15380
  if (isExist !== -1) {
15381
15381
  acc2[isExist] = item2;
15382
15382
  } else {
@@ -15702,7 +15702,11 @@ var TagsDropdown = ({
15702
15702
  } else if (isMobile ? closeOnSelectMobile : closeOnSelect) {
15703
15703
  setIsOpen(false);
15704
15704
  }
15705
- setSearchValueInterceptor("");
15705
+ if (inputRef?.current?.focus) {
15706
+ inputRef.current.focus();
15707
+ const len = inputRef.current?.value?.length ?? 0;
15708
+ inputRef.current.setSelectionRange(len, len);
15709
+ }
15706
15710
  if (item.value && chosenOptions.includes(item.value)) {
15707
15711
  deleteChosen(item.value);
15708
15712
  return null;
@@ -16064,7 +16068,7 @@ var TagsDropdown = ({
16064
16068
  TagList_default,
16065
16069
  {
16066
16070
  items: chosenOptions?.map((value, i) => {
16067
- const tag = singleLevelOptions?.find((el) => el.value === value);
16071
+ const tag = singleLevelOptions?.find((el) => String(el.value) === String(value));
16068
16072
  const label2 = isValuesInTags ? tag?.value : tag?.label || tag?.name || tag?.title;
16069
16073
  return {
16070
16074
  value,
@@ -16079,7 +16083,7 @@ var TagsDropdown = ({
16079
16083
  }
16080
16084
  )
16081
16085
  ) : chosenOptions?.map((value) => {
16082
- const tag = singleLevelOptions?.find((el) => el.value === value);
16086
+ const tag = singleLevelOptions?.find((el) => String(el.value) === String(value));
16083
16087
  const label2 = isValuesInTags ? tag?.value : tag?.label || tag?.name || tag?.title;
16084
16088
  return /* @__PURE__ */ jsx128(
16085
16089
  Tag_default,
@@ -16207,6 +16211,7 @@ var TagsDropdown = ({
16207
16211
  }
16208
16212
  getListContainer2()?.classList.remove("tags-dropdown__container--opened");
16209
16213
  if (withSearchInputInList) setSearchValueInterceptor("");
16214
+ searchValueRef.current = "";
16210
16215
  setListPos(null);
16211
16216
  setSearchValue("");
16212
16217
  }
@@ -16263,7 +16268,7 @@ var TagsDropdown = ({
16263
16268
  }, [scrollTop, dropdownListRef?.current]);
16264
16269
  useEffect38(() => {
16265
16270
  if (isSearchable && useLiveSearch && (debouncedSearchTerm || isValueDeleted || isOpen)) {
16266
- doLiveSearchRequest?.(debouncedSearchTerm);
16271
+ doLiveSearchRequest?.(searchValue ? debouncedSearchTerm : "");
16267
16272
  }
16268
16273
  }, [isOpen, debouncedSearchTerm, isValueDeleted]);
16269
16274
  useEffect38(() => {
@@ -20572,334 +20577,6 @@ function Header({
20572
20577
  }
20573
20578
  var Header_default = Header;
20574
20579
 
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
20580
  // src/Functions/presets/inputMaskPresets.js
20904
20581
  var DATE_PRESET = {
20905
20582
  type: "inputMask",
@@ -21034,14 +20711,11 @@ var INPUT_PRESETS = {
21034
20711
  ONLY_STRING_AND_DASH
21035
20712
  };
21036
20713
 
21037
- // src/Atomic/UI/Accordion/index.ts
21038
- var Accordion_default2 = Accordion_default;
21039
-
21040
20714
  // src/Atomic/UI/AccordionTable/AccordionTable.js
21041
- import React60, { useEffect as useEffect61, useState as useState69 } from "react";
21042
- import cn82 from "classnames";
20715
+ import React58, { useEffect as useEffect60, useState as useState66 } from "react";
20716
+ import cn79 from "classnames";
21043
20717
  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";
20718
+ import { jsx as jsx149, jsxs as jsxs110 } from "react/jsx-runtime";
21045
20719
  var AccordionTable = ({
21046
20720
  className,
21047
20721
  header,
@@ -21052,8 +20726,8 @@ var AccordionTable = ({
21052
20726
  },
21053
20727
  sortParams
21054
20728
  }) => {
21055
- const [accordions, setAccordions] = useState69(items);
21056
- const sortedColClassName = (item) => cn82(
20729
+ const [accordions, setAccordions] = useState66(items);
20730
+ const sortedColClassName = (item) => cn79(
21057
20731
  "accordion-table__header-item",
21058
20732
  item.className,
21059
20733
  {
@@ -21096,16 +20770,16 @@ var AccordionTable = ({
21096
20770
  };
21097
20771
  const renderTd = (tr) => {
21098
20772
  return Object.entries(tr)?.map(([key, value]) => {
21099
- return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ jsx152(
20773
+ return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ jsx149(
21100
20774
  "div",
21101
20775
  {
21102
20776
  style: { flexBasis: `${getHeaderItem(key)?.width}%` },
21103
- className: cn82(
20777
+ className: cn79(
21104
20778
  "accordion-table__td",
21105
20779
  `accordion-table__td--${key}`,
21106
20780
  getHeaderItem(key)?.className
21107
20781
  ),
21108
- children: /* @__PURE__ */ jsx152(
20782
+ children: /* @__PURE__ */ jsx149(
21109
20783
  "p",
21110
20784
  {
21111
20785
  className: "accordion-table__statistics-td-value",
@@ -21120,10 +20794,10 @@ var AccordionTable = ({
21120
20794
  };
21121
20795
  const renderTr = (rows) => {
21122
20796
  return rows?.map((row, index) => {
21123
- return /* @__PURE__ */ jsxs113(
20797
+ return /* @__PURE__ */ jsxs110(
21124
20798
  "div",
21125
20799
  {
21126
- className: cn82(
20800
+ className: cn79(
21127
20801
  "accordion-table__tr",
21128
20802
  {
21129
20803
  "accordion-table__tr-with-promo": row.promoDetails || row.cols?.promoDetails
@@ -21131,13 +20805,13 @@ var AccordionTable = ({
21131
20805
  row.className
21132
20806
  ),
21133
20807
  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" }),
20808
+ /* @__PURE__ */ jsx149("div", { className: "df w100", children: renderTd(row.cols || row) }),
20809
+ row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ jsx149("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsxs110("div", { className: "accordion-table__tr-promo", children: [
20810
+ /* @__PURE__ */ jsx149(Tag2, { className: "tr-promo-icon", width: 16, height: 16 }),
20811
+ /* @__PURE__ */ jsx149("span", { className: "tr-promo-label", children: "PROMOTION" }),
21138
20812
  row.promoDetails || row.cols?.promoDetails
21139
20813
  ] }) }) : 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
20814
+ 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
20815
  ]
21142
20816
  },
21143
20817
  index
@@ -21145,34 +20819,34 @@ var AccordionTable = ({
21145
20819
  });
21146
20820
  };
21147
20821
  const defineAccordionTitle = (row) => {
21148
- return /* @__PURE__ */ jsxs113(
20822
+ return /* @__PURE__ */ jsxs110(
21149
20823
  "div",
21150
20824
  {
21151
20825
  onClick: (e) => handle.accordionChange(row.key, e),
21152
20826
  className: "accordion-table__accordion-label-box",
21153
20827
  children: [
21154
- /* @__PURE__ */ jsxs113("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
21155
- /* @__PURE__ */ jsx152(
20828
+ /* @__PURE__ */ jsxs110("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
20829
+ /* @__PURE__ */ jsx149(
21156
20830
  ChevronDown7,
21157
20831
  {
21158
20832
  width: 8,
21159
20833
  height: 4,
21160
- className: cn82("accordion-label-box__icon", {
20834
+ className: cn79("accordion-label-box__icon", {
21161
20835
  "accordion-label-box__icon--open": row.isOpen
21162
20836
  })
21163
20837
  }
21164
20838
  ),
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(
20839
+ /* @__PURE__ */ jsx149("span", { className: "accordion-label-box__label", children: row.label }),
20840
+ row.statistics && /* @__PURE__ */ jsx149("div", { className: cn79("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
20841
+ return /* @__PURE__ */ jsx149(
21168
20842
  "div",
21169
20843
  {
21170
20844
  style: { width: `${getHeaderItem(key)?.width}%` },
21171
- className: cn82(
20845
+ className: cn79(
21172
20846
  "accordion-table__statistics-td",
21173
20847
  getHeaderItem(key)?.className
21174
20848
  ),
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(
20849
+ 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
20850
  "p",
21177
20851
  {
21178
20852
  className: "accordion-table__statistics-td-value",
@@ -21190,33 +20864,33 @@ var AccordionTable = ({
21190
20864
  }
21191
20865
  );
21192
20866
  };
21193
- useEffect61(() => {
20867
+ useEffect60(() => {
21194
20868
  setAccordions(items);
21195
20869
  }, [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(
20870
+ return /* @__PURE__ */ jsxs110("div", { className: cn79("accordion-table", className), children: [
20871
+ /* @__PURE__ */ jsx149("div", { className: "accordion-table__header", children: header?.map((item) => {
20872
+ return /* @__PURE__ */ jsxs110(
21199
20873
  "div",
21200
20874
  {
21201
20875
  style: { flexBasis: `${item.width}%` },
21202
20876
  className: sortedColClassName(item),
21203
20877
  onClick: () => !item.noSort && handle.setSort(item.key),
21204
20878
  children: [
21205
- sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ jsx152(ArrowDown2, { size: 16 }) : /* @__PURE__ */ jsx152(ArrowUp2, { size: 16 })),
20879
+ sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ jsx149(ArrowDown2, { size: 16 }) : /* @__PURE__ */ jsx149(ArrowUp2, { size: 16 })),
21206
20880
  item.label
21207
20881
  ]
21208
20882
  },
21209
20883
  item.key
21210
20884
  );
21211
20885
  }) }),
21212
- /* @__PURE__ */ jsx152("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
21213
- return /* @__PURE__ */ jsx152(
20886
+ /* @__PURE__ */ jsx149("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
20887
+ return /* @__PURE__ */ jsx149(
21214
20888
  MonoAccordion_default,
21215
20889
  {
21216
20890
  testId,
21217
20891
  onClick: (e) => handle.accordionChange(accordion.key, e),
21218
20892
  isOpen: accordion.isOpen,
21219
- className: cn82(
20893
+ className: cn79(
21220
20894
  "accordion-table__body-accordion",
21221
20895
  {
21222
20896
  "accordion-table__body-accordion--closed": !accordion.isOpen
@@ -21234,14 +20908,14 @@ var AccordionTable = ({
21234
20908
  var AccordionTable_default = AccordionTable;
21235
20909
 
21236
20910
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21237
- import cn84 from "classnames";
21238
- import { useState as useState71 } from "react";
20911
+ import cn81 from "classnames";
20912
+ import { useState as useState68 } from "react";
21239
20913
 
21240
20914
  // src/Atomic/UI/AdvancedTag/AdvTag.tsx
21241
- import cn83 from "classnames";
21242
- import { useEffect as useEffect62, useRef as useRef43, useState as useState70 } from "react";
20915
+ import cn80 from "classnames";
20916
+ import { useEffect as useEffect61, useRef as useRef42, useState as useState67 } from "react";
21243
20917
  import { AlertTriangle as AlertTriangle5 } from "react-feather";
21244
- import { jsx as jsx153, jsxs as jsxs114 } from "react/jsx-runtime";
20918
+ import { jsx as jsx150, jsxs as jsxs111 } from "react/jsx-runtime";
21245
20919
  var AdvTag = ({
21246
20920
  item,
21247
20921
  className,
@@ -21265,19 +20939,19 @@ var AdvTag = ({
21265
20939
  },
21266
20940
  type
21267
20941
  } = item;
21268
- const [isOpen, setIsOpen] = useState70(false);
21269
- const [clickedWarning, setClickedWarning] = useState70("");
21270
- const hintRef = useRef43(null);
21271
- const activeNumberClass = cn83("strong", {
20942
+ const [isOpen, setIsOpen] = useState67(false);
20943
+ const [clickedWarning, setClickedWarning] = useState67("");
20944
+ const hintRef = useRef42(null);
20945
+ const activeNumberClass = cn80("strong", {
21272
20946
  "color--pause": active === 0,
21273
20947
  "color--green-haze": active > 0
21274
20948
  });
21275
- const pauseNumberClass = cn83("strong", {
20949
+ const pauseNumberClass = cn80("strong", {
21276
20950
  "color--pause": pause === 0,
21277
20951
  "color--light-red": pause > 0
21278
20952
  });
21279
20953
  const isEmptyEntitys = isEntityAndCounter && (!entityAndCounter?.counter || entityAndCounter.counter === 0) || !isEntityAndCounter && (warnLeft || !merchants);
21280
- const advancedTagClass = cn83("advanced-tags", {
20954
+ const advancedTagClass = cn80("advanced-tags", {
21281
20955
  "advanced-tags--error": isEmptyEntitys
21282
20956
  }, className);
21283
20957
  const onWarningClick = (warn) => {
@@ -21289,22 +20963,22 @@ var AdvTag = ({
21289
20963
  setIsOpen(false);
21290
20964
  }
21291
20965
  };
21292
- useEffect62(() => {
20966
+ useEffect61(() => {
21293
20967
  document.addEventListener("click", handleClickOutside, true);
21294
20968
  return () => {
21295
20969
  document.removeEventListener("click", handleClickOutside, true);
21296
20970
  };
21297
20971
  }, []);
21298
20972
  if (!item) return null;
21299
- const renderClassicTag = () => /* @__PURE__ */ jsxs114("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21300
- warnLeft && /* @__PURE__ */ jsx153(
20973
+ const renderClassicTag = () => /* @__PURE__ */ jsxs111("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
20974
+ warnLeft && /* @__PURE__ */ jsx150(
21301
20975
  "div",
21302
20976
  {
21303
20977
  "data-testid": `${testId}-left`,
21304
20978
  className: "advanced-tags--warning-icon-wrapper",
21305
20979
  onMouseEnter: () => onWarningClick("warnLeft"),
21306
20980
  onMouseLeave: () => setIsOpen(false),
21307
- children: /* @__PURE__ */ jsx153(
20981
+ children: /* @__PURE__ */ jsx150(
21308
20982
  AlertTriangle5,
21309
20983
  {
21310
20984
  width: 16,
@@ -21314,23 +20988,23 @@ var AdvTag = ({
21314
20988
  )
21315
20989
  }
21316
20990
  ),
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 })
20991
+ labelLeft && /* @__PURE__ */ jsx150("span", { className: "mr5", children: labelLeft }),
20992
+ labelRight && /* @__PURE__ */ jsx150("span", { children: labelRight }),
20993
+ type !== "simple" && /* @__PURE__ */ jsx150("span", { className: "ml5 mr5", children: "|" }),
20994
+ type !== "simple" && /* @__PURE__ */ jsxs111("div", { className: "df", children: [
20995
+ /* @__PURE__ */ jsx150("span", { className: activeNumberClass, children: active }),
20996
+ /* @__PURE__ */ jsx150("span", { className: "strong color--pause", children: "/" }),
20997
+ /* @__PURE__ */ jsx150("span", { className: pauseNumberClass, children: pause })
21324
20998
  ] }),
21325
- type !== "simple" && /* @__PURE__ */ jsx153("span", { className: "ml5 mr5", children: "|" }),
21326
- merchants ? /* @__PURE__ */ jsx153("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ jsx153(
20999
+ type !== "simple" && /* @__PURE__ */ jsx150("span", { className: "ml5 mr5", children: "|" }),
21000
+ merchants ? /* @__PURE__ */ jsx150("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ jsx150(
21327
21001
  "div",
21328
21002
  {
21329
21003
  "data-testid": `${testId}-right`,
21330
21004
  className: "advanced-tags--warning-icon-wrapper",
21331
21005
  onMouseEnter: () => onWarningClick("warnRight"),
21332
21006
  onMouseLeave: () => setIsOpen(false),
21333
- children: /* @__PURE__ */ jsx153(
21007
+ children: /* @__PURE__ */ jsx150(
21334
21008
  AlertTriangle5,
21335
21009
  {
21336
21010
  width: 16,
@@ -21340,20 +21014,20 @@ var AdvTag = ({
21340
21014
  )
21341
21015
  }
21342
21016
  ),
21343
- isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx153(
21017
+ isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx150(
21344
21018
  "span",
21345
21019
  {
21346
- className: cn83(
21020
+ className: cn80(
21347
21021
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21348
21022
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21349
21023
  ),
21350
21024
  children: warnLeftMsg
21351
21025
  }
21352
21026
  ),
21353
- isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ jsx153(
21027
+ isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ jsx150(
21354
21028
  "span",
21355
21029
  {
21356
- className: cn83(
21030
+ className: cn80(
21357
21031
  "advanced-tags__warn-text",
21358
21032
  "advanced-tags__warn-text--warnRight",
21359
21033
  { "advanced-tags__warn-text--warnRight--to-top": toTop }
@@ -21364,15 +21038,15 @@ var AdvTag = ({
21364
21038
  ] });
21365
21039
  const renderWithEntityAndCounterTag = () => {
21366
21040
  const isNullcounter = entityAndCounter?.counter?.toString() === "0";
21367
- return /* @__PURE__ */ jsxs114("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21368
- isNullcounter && /* @__PURE__ */ jsx153(
21041
+ return /* @__PURE__ */ jsxs111("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21042
+ isNullcounter && /* @__PURE__ */ jsx150(
21369
21043
  "div",
21370
21044
  {
21371
21045
  "data-testid": `${testId}-left`,
21372
21046
  className: "advanced-tags--warning-icon-wrapper",
21373
21047
  onMouseEnter: () => onWarningClick("warnLeft"),
21374
21048
  onMouseLeave: () => setIsOpen(false),
21375
- children: /* @__PURE__ */ jsx153(
21049
+ children: /* @__PURE__ */ jsx150(
21376
21050
  AlertTriangle5,
21377
21051
  {
21378
21052
  width: 16,
@@ -21382,21 +21056,21 @@ var AdvTag = ({
21382
21056
  )
21383
21057
  }
21384
21058
  ),
21385
- isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx153(
21059
+ isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx150(
21386
21060
  "span",
21387
21061
  {
21388
- className: cn83(
21062
+ className: cn80(
21389
21063
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21390
21064
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21391
21065
  ),
21392
21066
  children: entityAndCounter.nullCounterMessage
21393
21067
  }
21394
21068
  ),
21395
- entityAndCounter?.title && /* @__PURE__ */ jsx153("span", { className: "mr5", children: entityAndCounter.title }),
21396
- /* @__PURE__ */ jsx153(
21069
+ entityAndCounter?.title && /* @__PURE__ */ jsx150("span", { className: "mr5", children: entityAndCounter.title }),
21070
+ /* @__PURE__ */ jsx150(
21397
21071
  "div",
21398
21072
  {
21399
- className: cn83("advanced-tags__counter", {
21073
+ className: cn80("advanced-tags__counter", {
21400
21074
  "advanced-tags__counter--null": isNullcounter,
21401
21075
  "advanced-tags__counter--bold": !isNullcounter
21402
21076
  }),
@@ -21410,7 +21084,7 @@ var AdvTag = ({
21410
21084
  var AdvTag_default = AdvTag;
21411
21085
 
21412
21086
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21413
- import { jsx as jsx154, jsxs as jsxs115 } from "react/jsx-runtime";
21087
+ import { jsx as jsx151, jsxs as jsxs112 } from "react/jsx-runtime";
21414
21088
  var AdvancedTags = ({
21415
21089
  items,
21416
21090
  noItemsTagLabel,
@@ -21418,26 +21092,26 @@ var AdvancedTags = ({
21418
21092
  testId = "advanced-tag-test",
21419
21093
  toTop = true
21420
21094
  }) => {
21421
- const [showedItems, setShowedItems] = useState71(items.slice(0, 2));
21422
- const [showMore, setShowMore] = useState71(true);
21095
+ const [showedItems, setShowedItems] = useState68(items.slice(0, 2));
21096
+ const [showMore, setShowMore] = useState68(true);
21423
21097
  const onShowMoreClick = () => {
21424
21098
  setShowedItems(showMore ? items : items.slice(0, 2));
21425
21099
  setShowMore(!showMore);
21426
21100
  };
21427
21101
  if ((!items || !items.length) && noItemsTagLabel) {
21428
- return /* @__PURE__ */ jsx154(
21102
+ return /* @__PURE__ */ jsx151(
21429
21103
  Tag_default,
21430
21104
  {
21431
21105
  label: noItemsTagLabel?.toString(),
21432
- className: cn84(className, "tag-warn")
21106
+ className: cn81(className, "tag-warn")
21433
21107
  }
21434
21108
  );
21435
21109
  }
21436
21110
  if ((!items || !items.length) && !noItemsTagLabel) return null;
21437
- return /* @__PURE__ */ jsxs115("div", { "data-testid": testId, className: cn84(className, "j4 wrap"), children: [
21111
+ return /* @__PURE__ */ jsxs112("div", { "data-testid": testId, className: cn81(className, "j4 wrap"), children: [
21438
21112
  showedItems.map((item, index) => {
21439
21113
  if (!item) return null;
21440
- return /* @__PURE__ */ jsx154(
21114
+ return /* @__PURE__ */ jsx151(
21441
21115
  AdvTag_default,
21442
21116
  {
21443
21117
  toTop,
@@ -21447,7 +21121,7 @@ var AdvancedTags = ({
21447
21121
  index
21448
21122
  );
21449
21123
  }),
21450
- items.length >= 3 && /* @__PURE__ */ jsx154(
21124
+ items.length >= 3 && /* @__PURE__ */ jsx151(
21451
21125
  "span",
21452
21126
  {
21453
21127
  "data-testid": `${testId}-showMore`,
@@ -21467,8 +21141,8 @@ var AdvancedTag_default = AdvancedTags_default;
21467
21141
  var Alert_default2 = Alert_default;
21468
21142
 
21469
21143
  // src/Atomic/UI/Box/Box.tsx
21470
- import cn85 from "classnames";
21471
- import { jsx as jsx155 } from "react/jsx-runtime";
21144
+ import cn82 from "classnames";
21145
+ import { jsx as jsx152 } from "react/jsx-runtime";
21472
21146
  var directionVariants = {
21473
21147
  column: "column",
21474
21148
  row: "row"
@@ -21492,12 +21166,12 @@ function Box({
21492
21166
  const styles = {
21493
21167
  flexDirection: direction
21494
21168
  };
21495
- return /* @__PURE__ */ jsx155(
21169
+ return /* @__PURE__ */ jsx152(
21496
21170
  "div",
21497
21171
  {
21498
21172
  style: styles,
21499
21173
  "data-testid": "box",
21500
- className: cn85(
21174
+ className: cn82(
21501
21175
  "box",
21502
21176
  `box--padding-${paddingVariant}`,
21503
21177
  `box--radii-${radiiVariant}`,
@@ -21514,80 +21188,10 @@ function Box({
21514
21188
  }
21515
21189
  var Box_default = Box;
21516
21190
 
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
21191
  // 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";
21192
+ import React61, { useEffect as useEffect62, useState as useState69 } from "react";
21193
+ import cn83 from "classnames";
21194
+ import { jsx as jsx153, jsxs as jsxs113 } from "react/jsx-runtime";
21591
21195
  var CircleProgressBar = ({
21592
21196
  amount,
21593
21197
  totalAmount,
@@ -21608,17 +21212,17 @@ var CircleProgressBar = ({
21608
21212
  finish: "#f06d8d",
21609
21213
  meter: "#ffcad6"
21610
21214
  };
21611
- const [strokeDashoffset, setStrokeDashoffset] = useState72(isReverseType ? String(0) : circumference);
21612
- useEffect63(() => {
21215
+ const [strokeDashoffset, setStrokeDashoffset] = useState69(isReverseType ? String(0) : circumference);
21216
+ useEffect62(() => {
21613
21217
  setStrokeDashoffset(circumference - circumference * amountProgress / 100);
21614
21218
  }, [amountProgress]);
21615
- return /* @__PURE__ */ jsxs117(
21219
+ return /* @__PURE__ */ jsxs113(
21616
21220
  "div",
21617
21221
  {
21618
21222
  "data-testid": testId,
21619
- className: cn87("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21223
+ className: cn83("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21620
21224
  children: [
21621
- /* @__PURE__ */ jsxs117(
21225
+ /* @__PURE__ */ jsxs113(
21622
21226
  "svg",
21623
21227
  {
21624
21228
  className: "limit-progress-bar__progress",
@@ -21626,7 +21230,7 @@ var CircleProgressBar = ({
21626
21230
  height: "124",
21627
21231
  viewBox: "0 0 124 124",
21628
21232
  children: [
21629
- /* @__PURE__ */ jsx157("defs", { children: isReverseType ? /* @__PURE__ */ jsxs117(
21233
+ /* @__PURE__ */ jsx153("defs", { children: isReverseType ? /* @__PURE__ */ jsxs113(
21630
21234
  "linearGradient",
21631
21235
  {
21632
21236
  id: "limit-progress-bar-linear-gradient-reverse",
@@ -21635,14 +21239,14 @@ var CircleProgressBar = ({
21635
21239
  x2: "0",
21636
21240
  y2: "0",
21637
21241
  children: [
21638
- /* @__PURE__ */ jsx157(
21242
+ /* @__PURE__ */ jsx153(
21639
21243
  "stop",
21640
21244
  {
21641
21245
  offset: "0",
21642
21246
  stopColor: colors.finish || defaultColors.finish
21643
21247
  }
21644
21248
  ),
21645
- /* @__PURE__ */ jsx157(
21249
+ /* @__PURE__ */ jsx153(
21646
21250
  "stop",
21647
21251
  {
21648
21252
  offset: "1",
@@ -21651,7 +21255,7 @@ var CircleProgressBar = ({
21651
21255
  )
21652
21256
  ]
21653
21257
  }
21654
- ) : /* @__PURE__ */ jsxs117(
21258
+ ) : /* @__PURE__ */ jsxs113(
21655
21259
  "linearGradient",
21656
21260
  {
21657
21261
  id: "limit-progress-bar-linear-gradient",
@@ -21660,14 +21264,14 @@ var CircleProgressBar = ({
21660
21264
  x2: "0",
21661
21265
  y2: "0",
21662
21266
  children: [
21663
- /* @__PURE__ */ jsx157(
21267
+ /* @__PURE__ */ jsx153(
21664
21268
  "stop",
21665
21269
  {
21666
21270
  offset: "0",
21667
21271
  stopColor: colors.start || defaultColors.start
21668
21272
  }
21669
21273
  ),
21670
- /* @__PURE__ */ jsx157(
21274
+ /* @__PURE__ */ jsx153(
21671
21275
  "stop",
21672
21276
  {
21673
21277
  offset: "1",
@@ -21677,7 +21281,7 @@ var CircleProgressBar = ({
21677
21281
  ]
21678
21282
  }
21679
21283
  ) }),
21680
- /* @__PURE__ */ jsx157(
21284
+ /* @__PURE__ */ jsx153(
21681
21285
  "circle",
21682
21286
  {
21683
21287
  className: "limit-progress-bar__meter",
@@ -21688,7 +21292,7 @@ var CircleProgressBar = ({
21688
21292
  strokeWidth: String(innerLineStrokeWidth)
21689
21293
  }
21690
21294
  ),
21691
- /* @__PURE__ */ jsx157(
21295
+ /* @__PURE__ */ jsx153(
21692
21296
  "circle",
21693
21297
  {
21694
21298
  className: "limit-progress-bar__value",
@@ -21706,7 +21310,7 @@ var CircleProgressBar = ({
21706
21310
  ]
21707
21311
  }
21708
21312
  ),
21709
- /* @__PURE__ */ jsx157("div", { className: "limit-progress-bar__content", children })
21313
+ /* @__PURE__ */ jsx153("div", { className: "limit-progress-bar__content", children })
21710
21314
  ]
21711
21315
  }
21712
21316
  );
@@ -21714,10 +21318,10 @@ var CircleProgressBar = ({
21714
21318
  var CircleProgressBar_default = CircleProgressBar;
21715
21319
 
21716
21320
  // src/Atomic/UI/DateTime/DateTime.tsx
21717
- import cn88 from "classnames";
21321
+ import cn84 from "classnames";
21718
21322
  import moment15 from "moment-timezone";
21719
21323
  import { useMemo as useMemo25 } from "react";
21720
- import { jsx as jsx158, jsxs as jsxs118 } from "react/jsx-runtime";
21324
+ import { jsx as jsx154, jsxs as jsxs114 } from "react/jsx-runtime";
21721
21325
  var RC36 = "date-time";
21722
21326
  var DEFAULT_DATE_FORMAT = "DD.MM.YYYY";
21723
21327
  var DEFAULT_TIME_FORMAT = "HH:mm:ss";
@@ -21743,13 +21347,13 @@ var DateTime = ({
21743
21347
  timeFormat
21744
21348
  );
21745
21349
  }, [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(
21350
+ return /* @__PURE__ */ jsxs114("div", { "data-testid": testId, className: cn84(RC36, className), children: [
21351
+ !isNoDate && /* @__PURE__ */ jsx154("span", { "data-testid": `${testId}-date`, className: `${RC36}__date`, children: date }),
21352
+ !isNoTime && /* @__PURE__ */ jsx154(
21749
21353
  "span",
21750
21354
  {
21751
21355
  "data-testid": `${testId}-time`,
21752
- className: cn88(`${RC36}__time`, {
21356
+ className: cn84(`${RC36}__time`, {
21753
21357
  [`${RC36}_color--pause`]: !isNoDate
21754
21358
  }),
21755
21359
  children: time
@@ -21760,32 +21364,32 @@ var DateTime = ({
21760
21364
  var DateTime_default = DateTime;
21761
21365
 
21762
21366
  // src/Atomic/UI/DebugContainer/DebugContainer.tsx
21763
- import cn89 from "classnames";
21764
- import { useState as useState73 } from "react";
21367
+ import cn85 from "classnames";
21368
+ import { useState as useState70 } from "react";
21765
21369
  import { ChevronDown as ChevronDown8, ChevronUp as ChevronUp7 } from "react-feather";
21766
- import { jsx as jsx159, jsxs as jsxs119 } from "react/jsx-runtime";
21370
+ import { jsx as jsx155, jsxs as jsxs115 } from "react/jsx-runtime";
21767
21371
  var defaultData = {};
21768
21372
  var DebugContainer = ({ data = defaultData, children, className }) => {
21769
- const [isVisible, setIsVisible] = useState73(true);
21770
- const renderData = () => /* @__PURE__ */ jsxs119("pre", { children: [
21373
+ const [isVisible, setIsVisible] = useState70(true);
21374
+ const renderData = () => /* @__PURE__ */ jsxs115("pre", { children: [
21771
21375
  "{\n",
21772
21376
  Object.keys(data).map((key) => ` ${key}: ${String(data[key])},
21773
21377
  `),
21774
21378
  "}"
21775
21379
  ] });
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 })
21380
+ return /* @__PURE__ */ jsxs115("div", { className: cn85("debug-container", className), "data-testid": "debug-container", children: [
21381
+ isVisible && /* @__PURE__ */ jsxs115("div", { className: "debug-container__body", children: [
21382
+ /* @__PURE__ */ jsx155("h5", { children: "Debug:" }),
21383
+ data && Object.keys(data).length > 0 && /* @__PURE__ */ jsx155("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
21384
+ children && /* @__PURE__ */ jsx155("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
21781
21385
  ] }),
21782
- /* @__PURE__ */ jsx159(
21386
+ /* @__PURE__ */ jsx155(
21783
21387
  "div",
21784
21388
  {
21785
21389
  className: "debug-container__toggler",
21786
21390
  onClick: () => setIsVisible((v) => !v),
21787
21391
  "data-testid": "debug-toggler",
21788
- children: isVisible ? /* @__PURE__ */ jsx159(ChevronUp7, {}) : /* @__PURE__ */ jsx159(ChevronDown8, {})
21392
+ children: isVisible ? /* @__PURE__ */ jsx155(ChevronUp7, {}) : /* @__PURE__ */ jsx155(ChevronDown8, {})
21789
21393
  }
21790
21394
  )
21791
21395
  ] });
@@ -21793,24 +21397,24 @@ var DebugContainer = ({ data = defaultData, children, className }) => {
21793
21397
  var DebugContainer_default = DebugContainer;
21794
21398
 
21795
21399
  // src/Atomic/UI/DebugContainer/useDebugContainer.tsx
21796
- import { useState as useState74 } from "react";
21797
- import { jsx as jsx160 } from "react/jsx-runtime";
21400
+ import { useState as useState71 } from "react";
21401
+ import { jsx as jsx156 } from "react/jsx-runtime";
21798
21402
  function useDebugContainer() {
21799
- const [data, setData] = useState74({});
21403
+ const [data, setData] = useState71({});
21800
21404
  return {
21801
21405
  debugData: data,
21802
21406
  setDebugData: setData,
21803
- renderDebugContainer: /* @__PURE__ */ jsx160(DebugContainer_default, { data })
21407
+ renderDebugContainer: /* @__PURE__ */ jsx156(DebugContainer_default, { data })
21804
21408
  };
21805
21409
  }
21806
21410
  var useDebugContainer_default = useDebugContainer;
21807
21411
 
21808
21412
  // src/Atomic/UI/DoubleString/DoubleString.tsx
21809
- import cn90 from "classnames";
21413
+ import cn86 from "classnames";
21810
21414
  import moment16 from "moment";
21811
- import { useEffect as useEffect64, useRef as useRef44, useState as useState75 } from "react";
21415
+ import { useEffect as useEffect63, useRef as useRef43, useState as useState72 } from "react";
21812
21416
  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";
21417
+ import { Fragment as Fragment19, jsx as jsx157, jsxs as jsxs116 } from "react/jsx-runtime";
21814
21418
  var RC37 = "double-string";
21815
21419
  var DoubleString = ({
21816
21420
  value,
@@ -21830,33 +21434,33 @@ var DoubleString = ({
21830
21434
  isUseHideMode = false,
21831
21435
  isShowHiddenValueAvailable = false
21832
21436
  }) => {
21833
- const [isValueHidden, setIsValueHidden] = useState75(isUseHideMode);
21437
+ const [isValueHidden, setIsValueHidden] = useState72(isUseHideMode);
21834
21438
  const computedValue = isFormatValueToDate ? moment16(value, parseFormat).format(displayFormat) : value;
21835
- const valueRef = useRef44(null);
21439
+ const valueRef = useRef43(null);
21836
21440
  ;
21837
- const descriptionRef = useRef44(null);
21838
- const [elemsWidth, setElemsWidth] = useState75({
21441
+ const descriptionRef = useRef43(null);
21442
+ const [elemsWidth, setElemsWidth] = useState72({
21839
21443
  valueWidth: 0,
21840
21444
  descriptionWidth: 0
21841
21445
  });
21842
- const [isOnClickON, setIsOnClickON] = useState75(false);
21446
+ const [isOnClickON, setIsOnClickON] = useState72(false);
21843
21447
  const handle = {
21844
21448
  click: () => {
21845
21449
  setIsOnClickON(!isOnClickON);
21846
21450
  }
21847
21451
  };
21848
- useEffect64(() => {
21452
+ useEffect63(() => {
21849
21453
  const valueWidth = valueRef?.current?.clientWidth ?? 0;
21850
21454
  const descriptionWidth = descriptionRef?.current?.clientWidth ?? 0;
21851
21455
  setElemsWidth({ valueWidth, descriptionWidth });
21852
21456
  }, [descriptionRef, valueRef]);
21853
- return /* @__PURE__ */ jsxs120("div", { "data-testid": testId, className: cn90(RC37, className), children: [
21854
- /* @__PURE__ */ jsx161(
21457
+ return /* @__PURE__ */ jsxs116("div", { "data-testid": testId, className: cn86(RC37, className), children: [
21458
+ /* @__PURE__ */ jsx157(
21855
21459
  "p",
21856
21460
  {
21857
21461
  onClick: () => handle.click(),
21858
21462
  ref: valueRef,
21859
- className: cn90(
21463
+ className: cn86(
21860
21464
  `${RC37}__value`,
21861
21465
  {
21862
21466
  "double-string--value-opened": isOnClickON && isUseOnClick
@@ -21864,27 +21468,27 @@ var DoubleString = ({
21864
21468
  { pointer: isUseOnClick }
21865
21469
  ),
21866
21470
  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 })
21471
+ children: !revert ? /* @__PURE__ */ jsxs116(Fragment19, { children: [
21472
+ isUseHideMode ? /* @__PURE__ */ jsx157("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
21473
+ isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ jsx157(Eye4, { "data-testid": "double-string-eye", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
21474
+ isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ jsx157(EyeOff4, { "data-testid": "double-string-eyeoff", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
21475
+ valuePostfix && /* @__PURE__ */ jsx157("span", { className: cn86(`${RC37}__value-postfix`), children: valuePostfix })
21872
21476
  ] }) : description
21873
21477
  }
21874
21478
  ),
21875
- /* @__PURE__ */ jsx161(
21479
+ /* @__PURE__ */ jsx157(
21876
21480
  "p",
21877
21481
  {
21878
21482
  ref: descriptionRef,
21879
- className: cn90(`${RC37}__description`),
21483
+ className: cn86(`${RC37}__description`),
21880
21484
  title: !noTitle && elemsWidth.descriptionWidth > 99 ? computedValue : "",
21881
- children: !revert ? description : /* @__PURE__ */ jsxs120(Fragment19, { children: [
21485
+ children: !revert ? description : /* @__PURE__ */ jsxs116(Fragment19, { children: [
21882
21486
  computedValue,
21883
- valuePostfix && /* @__PURE__ */ jsx161("span", { className: cn90(`${RC37}__value-postfix`), children: valuePostfix })
21487
+ valuePostfix && /* @__PURE__ */ jsx157("span", { className: cn86(`${RC37}__value-postfix`), children: valuePostfix })
21884
21488
  ] })
21885
21489
  }
21886
21490
  ),
21887
- subDescription && /* @__PURE__ */ jsx161("p", { className: cn90(`${RC37}__sub-description`), children: subDescription })
21491
+ subDescription && /* @__PURE__ */ jsx157("p", { className: cn86(`${RC37}__sub-description`), children: subDescription })
21888
21492
  ] });
21889
21493
  };
21890
21494
  var DoubleString_default = DoubleString;
@@ -21896,9 +21500,9 @@ var DoubleString_default2 = DoubleString_default;
21896
21500
  var Hint_default2 = Hint_default;
21897
21501
 
21898
21502
  // 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";
21503
+ import cn87 from "classnames";
21504
+ import { useEffect as useEffect64, useLayoutEffect as useLayoutEffect14, useMemo as useMemo26, useRef as useRef44 } from "react";
21505
+ import { jsx as jsx158, jsxs as jsxs117 } from "react/jsx-runtime";
21902
21506
  var ModalHOC = ({
21903
21507
  id,
21904
21508
  zIndex = 100,
@@ -21916,8 +21520,8 @@ var ModalHOC = ({
21916
21520
  isClosingByEsc: isClosingByEscOuter = true,
21917
21521
  closeOnEsc
21918
21522
  }) => {
21919
- const modalRef = useRef45(null);
21920
- const closeModalRef = useRef45(closeModal);
21523
+ const modalRef = useRef44(null);
21524
+ const closeModalRef = useRef44(closeModal);
21921
21525
  const isClosingByEsc = closeOnEsc === false ? false : isClosingByEscOuter;
21922
21526
  const withEventManagementStructure = getWithEventManagementStructure(id, withEventManagement);
21923
21527
  const handleClose = useMemo26(() => () => closeModalRef.current?.(), []);
@@ -21928,7 +21532,7 @@ var ModalHOC = ({
21928
21532
  useLayoutEffect14(() => {
21929
21533
  closeModalRef.current = closeBtnDisable ? void 0 : closeModal;
21930
21534
  }, [closeModal, closeBtnDisable]);
21931
- useEffect65(() => {
21535
+ useEffect64(() => {
21932
21536
  const onKeyPress = getOnKeyPress({ id, onClose: handleClose });
21933
21537
  if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
21934
21538
  if (isClosingByEsc) document.addEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
@@ -21940,14 +21544,14 @@ var ModalHOC = ({
21940
21544
  };
21941
21545
  }, []);
21942
21546
  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(
21547
+ return /* @__PURE__ */ jsxs117("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
21548
+ /* @__PURE__ */ jsx158("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
21549
+ /* @__PURE__ */ jsx158(
21946
21550
  "div",
21947
21551
  {
21948
21552
  ref: modalRef,
21949
21553
  style: { width: size },
21950
- className: cn91(className, "modal"),
21554
+ className: cn87(className, "modal"),
21951
21555
  role: "dialog",
21952
21556
  "aria-modal": "true",
21953
21557
  "aria-labelledby": testId,
@@ -21965,264 +21569,19 @@ var Modal_default2 = Modal_default;
21965
21569
  // src/Atomic/UI/MonoAccordion/index.ts
21966
21570
  var MonoAccordion_default2 = MonoAccordion_default;
21967
21571
 
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
21572
  // src/Atomic/UI/PageTitle/PageTitle.tsx
22214
- import cn93 from "classnames";
21573
+ import cn88 from "classnames";
22215
21574
  import { Home as Home3 } from "react-feather";
22216
- import { jsx as jsx164, jsxs as jsxs123 } from "react/jsx-runtime";
21575
+ import { jsx as jsx159, jsxs as jsxs118 } from "react/jsx-runtime";
22217
21576
  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 })
21577
+ var PageTitle = ({ title, pages, children, testId = RC38 }) => /* @__PURE__ */ jsxs118("div", { "data-testid": testId, className: RC38, role: "region", "aria-label": title, children: [
21578
+ /* @__PURE__ */ jsxs118("div", { className: `${RC38}__wrap`, children: [
21579
+ /* @__PURE__ */ jsx159("h1", { className: `${RC38}__title`, children: title }),
21580
+ pages.length > 0 && /* @__PURE__ */ jsx159("nav", { className: `${RC38}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxs118("ol", { className: `${RC38}__list`, children: [
21581
+ /* @__PURE__ */ jsx159("li", { children: /* @__PURE__ */ jsx159("a", { className: `${RC38}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ jsx159(Home3, { "aria-hidden": "true" }) }) }),
21582
+ pages.map(({ name, path }, index) => /* @__PURE__ */ jsxs118("li", { children: [
21583
+ /* @__PURE__ */ jsx159("span", { className: `${RC38}__delimiter`, "aria-hidden": "true", children: "/" }),
21584
+ 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
21585
  ] }, path))
22227
21586
  ] }) })
22228
21587
  ] }),
@@ -22234,16 +21593,16 @@ var PageTitle_default = PageTitle;
22234
21593
  var PageTitle_default2 = PageTitle_default;
22235
21594
 
22236
21595
  // 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 }) => {
21596
+ import cn89 from "classnames";
21597
+ import { jsx as jsx160 } from "react/jsx-runtime";
21598
+ var CN7 = "price";
21599
+ var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN7 }) => {
22241
21600
  if (value === void 0 || value === null) return null;
22242
- return /* @__PURE__ */ jsx165(
21601
+ return /* @__PURE__ */ jsx160(
22243
21602
  "div",
22244
21603
  {
22245
21604
  "data-testid": testId,
22246
- className: cn94(CN9, className),
21605
+ className: cn89(CN7, className),
22247
21606
  role: "contentinfo",
22248
21607
  "aria-label": `Price: ${formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")}`,
22249
21608
  children: formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")
@@ -22256,15 +21615,15 @@ var Price_default = Price;
22256
21615
  var Price_default2 = Price_default;
22257
21616
 
22258
21617
  // 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: [
21618
+ import cn90 from "classnames";
21619
+ import { jsx as jsx161, jsxs as jsxs119 } from "react/jsx-runtime";
21620
+ var CN8 = "price-range";
21621
+ var PriceRange = ({ from, to, mode, testId = CN8 }) => {
21622
+ 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
21623
  from,
22265
21624
  " - ",
22266
21625
  to
22267
- ] }) : /* @__PURE__ */ jsxs124("span", { "aria-live": "polite", children: [
21626
+ ] }) : /* @__PURE__ */ jsxs119("span", { "aria-live": "polite", children: [
22268
21627
  formatToPriceWithUSD(from?.toString()),
22269
21628
  " - ",
22270
21629
  formatToPriceWithUSD(to?.toString())
@@ -22276,9 +21635,9 @@ var PriceRange_default = PriceRange;
22276
21635
  var PriceRange_default2 = PriceRange_default;
22277
21636
 
22278
21637
  // 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";
21638
+ import cn91 from "classnames";
21639
+ import { jsx as jsx162, jsxs as jsxs120 } from "react/jsx-runtime";
21640
+ var CN9 = "progress-line";
22282
21641
  var ProgressLine = ({
22283
21642
  label = "",
22284
21643
  labelAlign = "left",
@@ -22297,7 +21656,7 @@ var ProgressLine = ({
22297
21656
  useVariantLabelColor = true,
22298
21657
  isShowLine = true,
22299
21658
  className,
22300
- testId = CN11
21659
+ testId = CN9
22301
21660
  }) => {
22302
21661
  const getFilledLineWidth = () => {
22303
21662
  if (value > maxValue) value = maxValue;
@@ -22305,21 +21664,21 @@ var ProgressLine = ({
22305
21664
  };
22306
21665
  const renderLabel = () => {
22307
21666
  if (!label) return null;
22308
- return /* @__PURE__ */ jsx167("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
21667
+ return /* @__PURE__ */ jsx162("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
22309
21668
  };
22310
21669
  const renderProgressValue = () => {
22311
21670
  if (!renderValue) return null;
22312
- return /* @__PURE__ */ jsx167("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
21671
+ return /* @__PURE__ */ jsx162("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
22313
21672
  };
22314
21673
  const renderExtremums = () => {
22315
21674
  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}` })
21675
+ return /* @__PURE__ */ jsxs120("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
21676
+ /* @__PURE__ */ jsx162("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
21677
+ /* @__PURE__ */ jsx162("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
22319
21678
  ] });
22320
21679
  };
22321
21680
  const renderFilledLine = () => {
22322
- return /* @__PURE__ */ jsx167(
21681
+ return /* @__PURE__ */ jsx162(
22323
21682
  "div",
22324
21683
  {
22325
21684
  className: "progress-line__wrapper__line--filled",
@@ -22333,14 +21692,14 @@ var ProgressLine = ({
22333
21692
  );
22334
21693
  };
22335
21694
  const renderLine = () => {
22336
- return /* @__PURE__ */ jsxs125("div", { className: "progress-line__wrapper__line", children: [
21695
+ return /* @__PURE__ */ jsxs120("div", { className: "progress-line__wrapper__line", children: [
22337
21696
  renderExtremums(),
22338
21697
  renderFilledLine()
22339
21698
  ] });
22340
21699
  };
22341
- return /* @__PURE__ */ jsxs125("div", { className: cn96(CN11, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
21700
+ return /* @__PURE__ */ jsxs120("div", { className: cn91(CN9, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
22342
21701
  renderLabel(),
22343
- /* @__PURE__ */ jsxs125(
21702
+ /* @__PURE__ */ jsxs120(
22344
21703
  "div",
22345
21704
  {
22346
21705
  className: `progress-line__wrapper variant-${useVariantLabelColor && variant} value-${valueVerticalPosition}-${valueHorizontalPosition} ${className}`,
@@ -22357,108 +21716,229 @@ var ProgressLine_default = ProgressLine;
22357
21716
  // src/Atomic/UI/ProgressLine/index.ts
22358
21717
  var ProgressLine_default2 = ProgressLine_default;
22359
21718
 
21719
+ // src/Atomic/UI/Status/index.ts
21720
+ var Status_default2 = Status_default;
21721
+
22360
21722
  // src/Atomic/UI/Table/Table.js
22361
- import React74 from "react";
22362
- import cn101 from "classnames";
21723
+ import React72 from "react";
21724
+ import cn97 from "classnames";
22363
21725
 
22364
21726
  // 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";
21727
+ import React66 from "react";
21728
+ import cn92 from "classnames";
21729
+ import { jsx as jsx163, jsxs as jsxs121 } from "react/jsx-runtime";
22368
21730
  var TdHeader = ({ item, testId = "td-header" }) => {
22369
21731
  const txt = Langs_default[global.lng];
22370
21732
  switch (item.type) {
22371
21733
  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 })
21734
+ return /* @__PURE__ */ jsx163("th", { "data-testid": testId, children: /* @__PURE__ */ jsxs121("div", { className: "j46", children: [
21735
+ /* @__PURE__ */ jsx163("div", { className: "", children: txt.labels[item.left] || item.left }),
21736
+ /* @__PURE__ */ jsx163("div", { className: "", children: txt.labels[item.right] || item.right })
22375
21737
  ] }) });
22376
21738
  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 })
21739
+ return /* @__PURE__ */ jsx163("th", { "data-testid": testId, className: cn92(item.className), children: /* @__PURE__ */ jsxs121("div", { className: cn92({ df: item.button }), children: [
21740
+ /* @__PURE__ */ jsx163("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
21741
+ item.button && /* @__PURE__ */ jsx163("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
22380
21742
  ] }) });
22381
21743
  }
22382
21744
  };
22383
21745
  var TdHeader_default = TdHeader;
22384
21746
 
22385
21747
  // src/Atomic/UI/Table/Partials/TdRow.js
22386
- import React73, { useState as useState80 } from "react";
22387
- import cn100 from "classnames";
21748
+ import React71, { useState as useState77 } from "react";
21749
+ import cn96 from "classnames";
22388
21750
 
22389
21751
  // src/Atomic/UI/Table/TdTypes/TdRange.js
22390
- import { jsx as jsx169, jsxs as jsxs127 } from "react/jsx-runtime";
21752
+ import { jsx as jsx164, jsxs as jsxs122 } from "react/jsx-runtime";
22391
21753
  var TdRange = ({ item }) => {
22392
21754
  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 })
21755
+ return /* @__PURE__ */ jsxs122("div", { children: [
21756
+ /* @__PURE__ */ jsx164("span", { children: item.from }),
21757
+ /* @__PURE__ */ jsx164("span", { children: " - " }),
21758
+ /* @__PURE__ */ jsx164("span", { children: item.to })
22397
21759
  ] });
22398
21760
  };
22399
21761
  var TdRange_default = TdRange;
22400
21762
 
22401
21763
  // src/Atomic/UI/Table/Partials/TdCell.js
22402
- import React72, { useState as useState79 } from "react";
21764
+ import React70, { useState as useState76 } from "react";
21765
+
21766
+ // src/Atomic/UI/Accordion/AccordionItem.tsx
21767
+ import cn93 from "classnames";
21768
+ import { useEffect as useEffect65, useRef as useRef45, useState as useState73 } from "react";
21769
+ import * as Icons from "react-feather";
21770
+ import { jsx as jsx165, jsxs as jsxs123 } from "react/jsx-runtime";
21771
+ var DefaultLink = ({ to, className, children }) => /* @__PURE__ */ jsx165("a", { href: to, className, children });
21772
+ var AccordionItem = ({
21773
+ item,
21774
+ onClick,
21775
+ isOpen,
21776
+ className,
21777
+ children,
21778
+ noChevron,
21779
+ linkComponent: LinkComponent = DefaultLink,
21780
+ testId = "accordion-item"
21781
+ }) => {
21782
+ const Icon2 = Icons[item.icon];
21783
+ const [maxHeight, setMaxHeight] = useState73(0);
21784
+ const ref = useRef45(null);
21785
+ const getItemsHeight = () => {
21786
+ let itemHeight = 0;
21787
+ ref.current?.childNodes.forEach((el) => {
21788
+ itemHeight += el.offsetHeight;
21789
+ });
21790
+ return itemHeight + 20;
21791
+ };
21792
+ useEffect65(() => {
21793
+ setMaxHeight(isOpen ? getItemsHeight() : 0);
21794
+ }, [isOpen]);
21795
+ const calculateStatusCount = () => {
21796
+ return item?.rows?.reduce(
21797
+ (acc, row) => {
21798
+ const result = row.cols.reduce(
21799
+ (accum, col) => ({
21800
+ active: accum.active + (col.status === "active" ? 1 : 0),
21801
+ pause: accum.pause + (col.status === "pause" ? 1 : 0)
21802
+ }),
21803
+ { active: 0, pause: 0 }
21804
+ );
21805
+ return {
21806
+ active: acc.active + result.active,
21807
+ pause: acc.pause + result.pause
21808
+ };
21809
+ },
21810
+ { active: 0, pause: 0 }
21811
+ );
21812
+ };
21813
+ return /* @__PURE__ */ jsxs123(
21814
+ "div",
21815
+ {
21816
+ "data-testid": testId,
21817
+ className: cn93("accordion--item", className),
21818
+ role: "region",
21819
+ "aria-labelledby": `accordion-title-${item.title}`,
21820
+ children: [
21821
+ /* @__PURE__ */ jsxs123(
21822
+ "div",
21823
+ {
21824
+ className: cn93("accordion--title-box", {
21825
+ "accordion--title-open": isOpen
21826
+ }),
21827
+ onClick: () => onClick(!isOpen),
21828
+ id: `accordion-title-${item.title}`,
21829
+ role: "button",
21830
+ "aria-expanded": isOpen,
21831
+ "aria-controls": `accordion-content-${item.title}`,
21832
+ tabIndex: 0,
21833
+ children: [
21834
+ /* @__PURE__ */ jsxs123("div", { className: "j4 no-wrap", children: [
21835
+ item?.icon && /* @__PURE__ */ jsx165(Icon2, { className: cn93("mr5", item?.className), "aria-hidden": "true" }),
21836
+ /* @__PURE__ */ jsx165("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
21837
+ ] }),
21838
+ /* @__PURE__ */ jsxs123("div", { className: "j6 accordion-title__right-box", children: [
21839
+ item.status && /* @__PURE__ */ jsx165("div", { className: "mr5", children: /* @__PURE__ */ jsx165(
21840
+ Status_default2,
21841
+ {
21842
+ type: item?.status.type,
21843
+ value: item?.status.value,
21844
+ status: item?.status.status,
21845
+ active: calculateStatusCount()?.active,
21846
+ pause: calculateStatusCount()?.pause
21847
+ }
21848
+ ) }),
21849
+ !noChevron && /* @__PURE__ */ jsx165(
21850
+ Icons.ChevronRight,
21851
+ {
21852
+ "aria-hidden": "true",
21853
+ className: cn93("accordion--title-chevron", {
21854
+ "accordion--title-chevron-open": isOpen
21855
+ })
21856
+ }
21857
+ )
21858
+ ] })
21859
+ ]
21860
+ }
21861
+ ),
21862
+ /* @__PURE__ */ jsx165(
21863
+ "div",
21864
+ {
21865
+ ref,
21866
+ style: { maxHeight },
21867
+ className: cn93("accordion--content", {
21868
+ "accordion--content-is-open": isOpen
21869
+ }),
21870
+ id: `accordion-content-${item.title}`,
21871
+ role: "region",
21872
+ "aria-labelledby": `accordion-title-${item.title}`,
21873
+ children: item.children ? item.children.map((el) => {
21874
+ return /* @__PURE__ */ jsx165(LinkComponent, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
21875
+ }) : children
21876
+ }
21877
+ )
21878
+ ]
21879
+ }
21880
+ );
21881
+ };
21882
+ var AccordionItem_default = AccordionItem;
22403
21883
 
22404
21884
  // 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";
21885
+ import React68, { useState as useState74 } from "react";
21886
+ import * as Icons2 from "react-feather";
21887
+ import { jsx as jsx166 } from "react/jsx-runtime";
22408
21888
  var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22409
21889
  if (!actions) return false;
22410
- const [state, setState] = useState77(actions);
21890
+ const [state, setState] = useState74(actions);
22411
21891
  const handleArrayChange = (value, index, prop) => {
22412
21892
  state[index][prop] = value;
22413
21893
  setState([...state]);
22414
21894
  onChange(state);
22415
21895
  };
22416
- return /* @__PURE__ */ jsx170("div", { className: "j6", children: actions?.map((action, index) => {
21896
+ return /* @__PURE__ */ jsx166("div", { className: "j6", children: actions?.map((action, index) => {
22417
21897
  switch (action.type) {
22418
21898
  case "download":
22419
- return /* @__PURE__ */ jsx170(
21899
+ return /* @__PURE__ */ jsx166(
22420
21900
  "div",
22421
21901
  {
22422
21902
  className: "td-actions--item td-actions--download",
22423
21903
  onClick: () => {
22424
21904
  },
22425
- children: /* @__PURE__ */ jsx170(Icons5.Download, {})
21905
+ children: /* @__PURE__ */ jsx166(Icons2.Download, {})
22426
21906
  },
22427
21907
  index
22428
21908
  );
22429
21909
  case "edit":
22430
- return /* @__PURE__ */ jsx170(
21910
+ return /* @__PURE__ */ jsx166(
22431
21911
  "div",
22432
21912
  {
22433
21913
  className: "td-actions--item td-actions--edit",
22434
21914
  onClick: () => {
22435
21915
  },
22436
- children: /* @__PURE__ */ jsx170(Icons5.Edit3, {})
21916
+ children: /* @__PURE__ */ jsx166(Icons2.Edit3, {})
22437
21917
  },
22438
21918
  index
22439
21919
  );
22440
21920
  case "delete":
22441
- return /* @__PURE__ */ jsx170(
21921
+ return /* @__PURE__ */ jsx166(
22442
21922
  "div",
22443
21923
  {
22444
21924
  className: "td-actions--item td-actions--delete",
22445
21925
  onClick: () => onActionClick("delete", rowItem),
22446
- children: /* @__PURE__ */ jsx170(Icons5.Trash2, {})
21926
+ children: /* @__PURE__ */ jsx166(Icons2.Trash2, {})
22447
21927
  },
22448
21928
  index
22449
21929
  );
22450
21930
  case "undo":
22451
- return /* @__PURE__ */ jsx170(
21931
+ return /* @__PURE__ */ jsx166(
22452
21932
  "div",
22453
21933
  {
22454
21934
  className: "td-actions--item td-actions--undo",
22455
21935
  onClick: () => onActionClick("undo", rowItem),
22456
- children: /* @__PURE__ */ jsx170(Icons5.RotateCcw, {})
21936
+ children: /* @__PURE__ */ jsx166(Icons2.RotateCcw, {})
22457
21937
  },
22458
21938
  index
22459
21939
  );
22460
21940
  case "switcher":
22461
- return /* @__PURE__ */ jsx170("div", { className: "df", children: /* @__PURE__ */ jsx170(
21941
+ return /* @__PURE__ */ jsx166("div", { className: "df", children: /* @__PURE__ */ jsx166(
22462
21942
  Switcher_default,
22463
21943
  {
22464
21944
  label: action.label || null,
@@ -22473,28 +21953,28 @@ var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22473
21953
  };
22474
21954
 
22475
21955
  // src/Atomic/UI/Table/TdTypes/TdPriority.js
22476
- import React71 from "react";
22477
- import cn98 from "classnames";
21956
+ import React69 from "react";
21957
+ import cn94 from "classnames";
22478
21958
  import { ArrowDown as ArrowDown3, ArrowUp as ArrowUp3 } from "react-feather";
22479
- import { jsx as jsx171, jsxs as jsxs128 } from "react/jsx-runtime";
21959
+ import { jsx as jsx167, jsxs as jsxs124 } from "react/jsx-runtime";
22480
21960
  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(
21961
+ return /* @__PURE__ */ jsxs124("div", { className: "cards-table__priority", children: [
21962
+ /* @__PURE__ */ jsx167("span", { className: "mr5", children: rowIndex + 1 }),
21963
+ /* @__PURE__ */ jsxs124("div", { className: "df", children: [
21964
+ /* @__PURE__ */ jsx167(
22485
21965
  ArrowDown3,
22486
21966
  {
22487
21967
  onClick: () => onClick(rowIndex),
22488
- className: cn98("table--icon", {
21968
+ className: cn94("table--icon", {
22489
21969
  disabled: rowIndex + 1 === cardLength
22490
21970
  })
22491
21971
  }
22492
21972
  ),
22493
- /* @__PURE__ */ jsx171(
21973
+ /* @__PURE__ */ jsx167(
22494
21974
  ArrowUp3,
22495
21975
  {
22496
21976
  onClick: () => onClick(rowIndex, true),
22497
- className: cn98("table--icon", { disabled: rowIndex === 0 })
21977
+ className: cn94("table--icon", { disabled: rowIndex === 0 })
22498
21978
  }
22499
21979
  )
22500
21980
  ] })
@@ -22503,17 +21983,17 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
22503
21983
  var TdPriority_default = TdPriority;
22504
21984
 
22505
21985
  // 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";
21986
+ import { useEffect as useEffect66, useState as useState75 } from "react";
21987
+ import cn95 from "classnames";
21988
+ import { Fragment as Fragment20, jsx as jsx168, jsxs as jsxs125 } from "react/jsx-runtime";
22509
21989
  var TdWeight = ({ value, percent, onChange, className }) => {
22510
- const [state, setState] = useState78(value);
21990
+ const [state, setState] = useState75(value);
22511
21991
  const {
22512
21992
  isToggled: isEdited,
22513
21993
  toggleOff: unsetIsEdited,
22514
21994
  toggleOn: setIsEdited
22515
21995
  } = useOutsideToggle(false);
22516
- useEffect67(() => {
21996
+ useEffect66(() => {
22517
21997
  setState(value);
22518
21998
  }, [value, isEdited]);
22519
21999
  const handleKeyUp = ({ keyCode, target }) => {
@@ -22523,7 +22003,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22523
22003
  unsetIsEdited();
22524
22004
  }
22525
22005
  };
22526
- return /* @__PURE__ */ jsx172(Fragment20, { children: isEdited ? /* @__PURE__ */ jsx172(
22006
+ return /* @__PURE__ */ jsx168(Fragment20, { children: isEdited ? /* @__PURE__ */ jsx168(
22527
22007
  Input,
22528
22008
  {
22529
22009
  value: state,
@@ -22532,9 +22012,9 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22532
22012
  onKeyUp: handleKeyUp,
22533
22013
  autoFocus: true
22534
22014
  }
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: [
22015
+ ) : /* @__PURE__ */ jsxs125("div", { className: cn95("td-weight", className), onClick: setIsEdited, children: [
22016
+ /* @__PURE__ */ jsx168("span", { children: value }),
22017
+ /* @__PURE__ */ jsxs125("span", { className: "ml2 color--grey-gull", children: [
22538
22018
  "(",
22539
22019
  percent,
22540
22020
  "%)"
@@ -22544,7 +22024,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22544
22024
  var TdWeight_default = TdWeight;
22545
22025
 
22546
22026
  // src/Atomic/UI/Table/Partials/TdCell.js
22547
- import { jsx as jsx173 } from "react/jsx-runtime";
22027
+ import { jsx as jsx169 } from "react/jsx-runtime";
22548
22028
  var TdCell = ({
22549
22029
  type,
22550
22030
  item,
@@ -22557,22 +22037,22 @@ var TdCell = ({
22557
22037
  rowItem,
22558
22038
  isDeleted
22559
22039
  }) => {
22560
- const [isAccordionOpen, setIsAccordionOpen] = useState79(item.isOpen);
22040
+ const [isAccordionOpen, setIsAccordionOpen] = useState76(item.isOpen);
22561
22041
  const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
22562
22042
  switch (type) {
22563
22043
  case "accordion":
22564
- return /* @__PURE__ */ jsx173(
22044
+ return /* @__PURE__ */ jsx169(
22565
22045
  AccordionItem_default,
22566
22046
  {
22567
22047
  className: item.itemClassName,
22568
22048
  item,
22569
22049
  isOpen: isAccordionOpen,
22570
22050
  onClick: (e) => setIsAccordionOpen(e),
22571
- children: /* @__PURE__ */ jsx173(Table_default, { rows: item.rows, className: "accordion--table" })
22051
+ children: /* @__PURE__ */ jsx169(Table_default, { rows: item.rows, className: "accordion--table" })
22572
22052
  }
22573
22053
  );
22574
22054
  case "actions":
22575
- return /* @__PURE__ */ jsx173(
22055
+ return /* @__PURE__ */ jsx169(
22576
22056
  TdActions,
22577
22057
  {
22578
22058
  rowItem,
@@ -22582,11 +22062,11 @@ var TdCell = ({
22582
22062
  }
22583
22063
  );
22584
22064
  case "advancedTags":
22585
- return /* @__PURE__ */ jsx173(AdvancedTags_default, { items: item });
22065
+ return /* @__PURE__ */ jsx169(AdvancedTags_default, { items: item });
22586
22066
  case "link":
22587
- return /* @__PURE__ */ jsx173("a", { href: item.link, children: item.label });
22067
+ return /* @__PURE__ */ jsx169("a", { href: item.link, children: item.label });
22588
22068
  case "priority":
22589
- return /* @__PURE__ */ jsx173(
22069
+ return /* @__PURE__ */ jsx169(
22590
22070
  TdPriority_default,
22591
22071
  {
22592
22072
  rowIndex,
@@ -22595,7 +22075,7 @@ var TdCell = ({
22595
22075
  }
22596
22076
  );
22597
22077
  case "status":
22598
- return /* @__PURE__ */ jsx173(
22078
+ return /* @__PURE__ */ jsx169(
22599
22079
  Status_default,
22600
22080
  {
22601
22081
  className: item.className,
@@ -22604,9 +22084,9 @@ var TdCell = ({
22604
22084
  }
22605
22085
  );
22606
22086
  case "tags":
22607
- return item.map((tag, index) => /* @__PURE__ */ jsx173(Tag_default, { label: tag.label }, index));
22087
+ return item.map((tag, index) => /* @__PURE__ */ jsx169(Tag_default, { label: tag.label }, index));
22608
22088
  case "weight":
22609
- return /* @__PURE__ */ jsx173(
22089
+ return /* @__PURE__ */ jsx169(
22610
22090
  TdWeight_default,
22611
22091
  {
22612
22092
  value: item.value,
@@ -22615,13 +22095,13 @@ var TdCell = ({
22615
22095
  }
22616
22096
  );
22617
22097
  default:
22618
- return /* @__PURE__ */ jsx173("span", { className: item.className, children: item.value });
22098
+ return /* @__PURE__ */ jsx169("span", { className: item.className, children: item.value });
22619
22099
  }
22620
22100
  };
22621
22101
  var TdCell_default = TdCell;
22622
22102
 
22623
22103
  // src/Atomic/UI/Table/Partials/TdRow.js
22624
- import { Fragment as Fragment21, jsx as jsx174, jsxs as jsxs130 } from "react/jsx-runtime";
22104
+ import { Fragment as Fragment21, jsx as jsx170, jsxs as jsxs126 } from "react/jsx-runtime";
22625
22105
  var TdRow = ({
22626
22106
  item,
22627
22107
  onChange,
@@ -22638,27 +22118,27 @@ var TdRow = ({
22638
22118
  isDeleted,
22639
22119
  testId = "td-row"
22640
22120
  }) => {
22641
- const [isOpen, setIsOpen] = useState80(false);
22121
+ const [isOpen, setIsOpen] = useState77(false);
22642
22122
  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(
22123
+ return /* @__PURE__ */ jsxs126(Fragment21, { children: [
22124
+ /* @__PURE__ */ jsxs126("tr", { "data-testid": testId, children: [
22125
+ type && rowSpan && /* @__PURE__ */ jsx170("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ jsx170(
22646
22126
  "span",
22647
22127
  {
22648
- className: cn100(
22128
+ className: cn96(
22649
22129
  type && `cards-table__score cards-table__score-${cardStatus}`
22650
22130
  ),
22651
- children: /* @__PURE__ */ jsx174(TdRange_default, { item: range })
22131
+ children: /* @__PURE__ */ jsx170(TdRange_default, { item: range })
22652
22132
  }
22653
22133
  ) }),
22654
22134
  Object.entries(item).map(
22655
- ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx174(
22135
+ ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx170(
22656
22136
  "td",
22657
22137
  {
22658
- className: cn100("cards-table__body-item", {
22138
+ className: cn96("cards-table__body-item", {
22659
22139
  "cards-table__accordion": value.type === "accordion"
22660
22140
  }),
22661
- children: /* @__PURE__ */ jsx174(
22141
+ children: /* @__PURE__ */ jsx170(
22662
22142
  TdCell_default,
22663
22143
  {
22664
22144
  onActionClick,
@@ -22678,10 +22158,10 @@ var TdRow = ({
22678
22158
  )
22679
22159
  )
22680
22160
  ] }),
22681
- type && colSpan ? /* @__PURE__ */ jsxs130("tr", { children: [
22682
- /* @__PURE__ */ jsx174("td", {}),
22683
- /* @__PURE__ */ jsxs130("td", { colSpan, children: [
22684
- /* @__PURE__ */ jsx174(
22161
+ type && colSpan ? /* @__PURE__ */ jsxs126("tr", { children: [
22162
+ /* @__PURE__ */ jsx170("td", {}),
22163
+ /* @__PURE__ */ jsxs126("td", { colSpan, children: [
22164
+ /* @__PURE__ */ jsx170(
22685
22165
  "span",
22686
22166
  {
22687
22167
  className: "cards-table__title-select-lender-btn",
@@ -22689,7 +22169,7 @@ var TdRow = ({
22689
22169
  children: "Select Lender"
22690
22170
  }
22691
22171
  ),
22692
- /* @__PURE__ */ jsx174(
22172
+ /* @__PURE__ */ jsx170(
22693
22173
  Modal_default,
22694
22174
  {
22695
22175
  closeModal: () => setIsOpen(false),
@@ -22706,7 +22186,7 @@ var TdRow = ({
22706
22186
  var TdRow_default = TdRow;
22707
22187
 
22708
22188
  // src/Atomic/UI/Table/Table.js
22709
- import { jsx as jsx175, jsxs as jsxs131 } from "react/jsx-runtime";
22189
+ import { jsx as jsx171, jsxs as jsxs127 } from "react/jsx-runtime";
22710
22190
  var Table = ({
22711
22191
  rows,
22712
22192
  onChange,
@@ -22719,16 +22199,16 @@ var Table = ({
22719
22199
  rows[index] = value;
22720
22200
  onChange({ header: [...header], rows: [...rows] });
22721
22201
  };
22722
- return /* @__PURE__ */ jsx175(
22202
+ return /* @__PURE__ */ jsx171(
22723
22203
  "div",
22724
22204
  {
22725
22205
  "data-testid": testId,
22726
- className: cn101("simple-table", {
22206
+ className: cn97("simple-table", {
22727
22207
  [`simple-table--${className}`]: className
22728
22208
  }),
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(
22209
+ children: /* @__PURE__ */ jsxs127("table", { children: [
22210
+ /* @__PURE__ */ jsx171("thead", { children: /* @__PURE__ */ jsx171("tr", { children: header?.map((item) => /* @__PURE__ */ jsx171(TdHeader_default, { item }, item.key)) }) }),
22211
+ /* @__PURE__ */ jsx171("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ jsx171(
22732
22212
  TdRow_default,
22733
22213
  {
22734
22214
  onActionClick,
@@ -22738,7 +22218,7 @@ var Table = ({
22738
22218
  onChange: (value) => handleArrayChange(value, index)
22739
22219
  },
22740
22220
  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" }) }) })
22221
+ )) : /* @__PURE__ */ jsx171("tr", { children: /* @__PURE__ */ jsx171("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
22742
22222
  ] })
22743
22223
  }
22744
22224
  );
@@ -22749,8 +22229,8 @@ var Table_default = Table;
22749
22229
  var Tag_default2 = Tag_default;
22750
22230
 
22751
22231
  // 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";
22232
+ import cn98 from "classnames";
22233
+ import { Fragment as Fragment22, jsx as jsx172, jsxs as jsxs128 } from "react/jsx-runtime";
22754
22234
  var UserBox = ({
22755
22235
  name = "Username",
22756
22236
  role,
@@ -22764,28 +22244,28 @@ var UserBox = ({
22764
22244
  const getNameFirstLetter = name.charAt(0).toUpperCase();
22765
22245
  const renderUser = () => {
22766
22246
  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 })
22247
+ return /* @__PURE__ */ jsxs128(Fragment22, { children: [
22248
+ /* @__PURE__ */ jsx172("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22249
+ /* @__PURE__ */ jsxs128("div", { className: "td-user-box__user-data", children: [
22250
+ /* @__PURE__ */ jsx172(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
22251
+ role && /* @__PURE__ */ jsx172("span", { children: role })
22772
22252
  ] })
22773
22253
  ] });
22774
22254
  } 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 })
22255
+ return /* @__PURE__ */ jsxs128(Fragment22, { children: [
22256
+ /* @__PURE__ */ jsx172("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22257
+ /* @__PURE__ */ jsxs128("div", { className: "td-user-box__user-data", children: [
22258
+ /* @__PURE__ */ jsx172(Label_default, { label: name }),
22259
+ role && /* @__PURE__ */ jsx172("span", { "aria-label": `User role: ${role}`, children: role })
22780
22260
  ] })
22781
22261
  ] });
22782
22262
  }
22783
22263
  };
22784
- return /* @__PURE__ */ jsx176(
22264
+ return /* @__PURE__ */ jsx172(
22785
22265
  "div",
22786
22266
  {
22787
22267
  "data-testid": testId,
22788
- className: cn102("td-user-box", className),
22268
+ className: cn98("td-user-box", className),
22789
22269
  role: "region",
22790
22270
  "aria-label": `User box for ${name}`,
22791
22271
  children: renderUser()
@@ -22801,38 +22281,38 @@ var UserBox_default2 = UserBox_default;
22801
22281
  import classNames2 from "classnames";
22802
22282
 
22803
22283
  // 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" }) })
22284
+ import { jsx as jsx173, jsxs as jsxs129 } from "react/jsx-runtime";
22285
+ var DoneIcon = () => /* @__PURE__ */ jsxs129("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22286
+ /* @__PURE__ */ jsx173("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
22287
+ /* @__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" }) }),
22288
+ /* @__PURE__ */ jsx173("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ jsx173("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
22809
22289
  ] });
22810
22290
  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)" }) }) })
22291
+ return /* @__PURE__ */ jsxs129("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22292
+ /* @__PURE__ */ jsx173("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ jsx173("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
22293
+ /* @__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
22294
  ] });
22815
22295
  };
22816
22296
  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" }),
22297
+ return /* @__PURE__ */ jsxs129("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22298
+ /* @__PURE__ */ jsx173("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
22819
22299
  "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" }) })
22300
+ /* @__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" }) }),
22301
+ /* @__PURE__ */ jsx173("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ jsx173("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
22822
22302
  ] });
22823
22303
  };
22824
22304
  var alternativeIconSet = {
22825
- defaultIcon: /* @__PURE__ */ jsx177(TodoIcon, {}),
22826
- doneIcon: /* @__PURE__ */ jsx177(DoneIcon, {}),
22827
- activeIcon: /* @__PURE__ */ jsx177(ActiveIcon, {})
22305
+ defaultIcon: /* @__PURE__ */ jsx173(TodoIcon, {}),
22306
+ doneIcon: /* @__PURE__ */ jsx173(DoneIcon, {}),
22307
+ activeIcon: /* @__PURE__ */ jsx173(ActiveIcon, {})
22828
22308
  };
22829
22309
 
22830
22310
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
22831
- import cn104 from "classnames";
22311
+ import cn100 from "classnames";
22832
22312
 
22833
22313
  // src/Atomic/UI/WizardStepper/constructor.js
22834
- import React75 from "react";
22835
- import { jsx as jsx178, jsxs as jsxs134 } from "react/jsx-runtime";
22314
+ import React73 from "react";
22315
+ import { jsx as jsx174, jsxs as jsxs130 } from "react/jsx-runtime";
22836
22316
  var WIZARD_STEP_VARIANTS = Object.freeze({
22837
22317
  DEFAULT: "default",
22838
22318
  DONE: "done",
@@ -22840,31 +22320,31 @@ var WIZARD_STEP_VARIANTS = Object.freeze({
22840
22320
  });
22841
22321
 
22842
22322
  // src/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.tsx
22843
- import cn103 from "classnames";
22844
- import { jsx as jsx179 } from "react/jsx-runtime";
22323
+ import cn99 from "classnames";
22324
+ import { jsx as jsx175 } from "react/jsx-runtime";
22845
22325
  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" }) });
22326
+ 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
22327
  };
22848
22328
  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" }) });
22329
+ 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
22330
  };
22851
22331
  var RC39 = "state-icon";
22852
22332
  var { ACTIVE, DEFAULT, DONE } = WIZARD_STEP_VARIANTS;
22853
22333
  var StateIcon = ({ variant = DEFAULT, className }) => {
22854
22334
  const computedState = variant === ACTIVE || variant === DONE ? variant : DEFAULT;
22855
22335
  const Inner = {
22856
- [DEFAULT]: /* @__PURE__ */ jsx179(DefaultPoint, {}),
22857
- [ACTIVE]: /* @__PURE__ */ jsx179(DefaultPoint, {}),
22858
- [DONE]: /* @__PURE__ */ jsx179(DonePoint, {})
22336
+ [DEFAULT]: /* @__PURE__ */ jsx175(DefaultPoint, {}),
22337
+ [ACTIVE]: /* @__PURE__ */ jsx175(DefaultPoint, {}),
22338
+ [DONE]: /* @__PURE__ */ jsx175(DonePoint, {})
22859
22339
  };
22860
- return /* @__PURE__ */ jsx179("div", { className: cn103(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
22340
+ return /* @__PURE__ */ jsx175("div", { className: cn99(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
22861
22341
  };
22862
22342
 
22863
22343
  // src/Atomic/UI/WizardStepper/ui/StateIcon/index.ts
22864
22344
  var StateIcon_default = StateIcon;
22865
22345
 
22866
22346
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
22867
- import { jsx as jsx180, jsxs as jsxs135 } from "react/jsx-runtime";
22347
+ import { jsx as jsx176, jsxs as jsxs131 } from "react/jsx-runtime";
22868
22348
  var RC40 = "step-row";
22869
22349
  var { DEFAULT: DEFAULT2, ACTIVE: ACTIVE2, DONE: DONE2 } = WIZARD_STEP_VARIANTS;
22870
22350
  var StepRow = ({
@@ -22891,29 +22371,29 @@ var StepRow = ({
22891
22371
  })();
22892
22372
  const CorrectIcon = () => {
22893
22373
  if (!customIcons || Object?.values(customIcons)?.every((icon) => !icon)) {
22894
- return /* @__PURE__ */ jsx180(StateIcon_default, { variant: rowVariant });
22374
+ return /* @__PURE__ */ jsx176(StateIcon_default, { variant: rowVariant });
22895
22375
  }
22896
22376
  return alternaviteIconFromProps || null;
22897
22377
  };
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" })
22378
+ return /* @__PURE__ */ jsxs131("div", { className: cn100(RC40, `${RC40}--${rowVariant}`, className), children: [
22379
+ /* @__PURE__ */ jsx176("div", { className: cn100(`${RC40}__state-point`, `${RC40}__state-point--${rowVariant}`), children: /* @__PURE__ */ jsx176(CorrectIcon, {}) }),
22380
+ /* @__PURE__ */ jsxs131("div", { className: `${RC40}__content`, children: [
22381
+ /* @__PURE__ */ jsxs131("div", { className: `${RC40}__title`, children: [
22382
+ /* @__PURE__ */ jsxs131("div", { className: `${RC40}__title-left`, children: [
22383
+ /* @__PURE__ */ jsx176("div", { className: cn100(`${RC40}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
22384
+ isOptional && /* @__PURE__ */ jsx176(Status_default, { label: "Optional", status: "draft" })
22905
22385
  ] }),
22906
- titleSlot && /* @__PURE__ */ jsx180("div", { className: `${RC40}__title-right`, children: titleSlot })
22386
+ titleSlot && /* @__PURE__ */ jsx176("div", { className: `${RC40}__title-right`, children: titleSlot })
22907
22387
  ] }),
22908
- description && /* @__PURE__ */ jsx180("div", { className: `${RC40}__description`, children: description }),
22909
- contentSlot && /* @__PURE__ */ jsx180("div", { className: `${RC40}__body`, children: contentSlot })
22388
+ description && /* @__PURE__ */ jsx176("div", { className: `${RC40}__description`, children: description }),
22389
+ contentSlot && /* @__PURE__ */ jsx176("div", { className: `${RC40}__body`, children: contentSlot })
22910
22390
  ] })
22911
22391
  ] }, label);
22912
22392
  };
22913
22393
  var StepRow_default = StepRow;
22914
22394
 
22915
22395
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
22916
- import { jsx as jsx181 } from "react/jsx-runtime";
22396
+ import { jsx as jsx177 } from "react/jsx-runtime";
22917
22397
  var StepWrapper = ({
22918
22398
  steps,
22919
22399
  customIcons,
@@ -22921,10 +22401,10 @@ var StepWrapper = ({
22921
22401
  className,
22922
22402
  testId = "step-wrapper"
22923
22403
  }) => {
22924
- if (!steps?.length) return /* @__PURE__ */ jsx181("div", { "data-testid": "empty-state", children: "No steps available" });
22404
+ if (!steps?.length) return /* @__PURE__ */ jsx177("div", { "data-testid": "empty-state", children: "No steps available" });
22925
22405
  const renderStepRow = (step) => {
22926
22406
  const { key, ...stepProps } = step;
22927
- return /* @__PURE__ */ jsx181(
22407
+ return /* @__PURE__ */ jsx177(
22928
22408
  StepRow_default,
22929
22409
  {
22930
22410
  ...stepProps,
@@ -22935,7 +22415,7 @@ var StepWrapper = ({
22935
22415
  };
22936
22416
  switch (variant) {
22937
22417
  case "ghost":
22938
- return /* @__PURE__ */ jsx181(
22418
+ return /* @__PURE__ */ jsx177(
22939
22419
  Box_default,
22940
22420
  {
22941
22421
  className: classNames2("step-wrapper", "step-wrapper-ghost", className),
@@ -22944,7 +22424,7 @@ var StepWrapper = ({
22944
22424
  }
22945
22425
  );
22946
22426
  case "cardActive":
22947
- return /* @__PURE__ */ jsx181(
22427
+ return /* @__PURE__ */ jsx177(
22948
22428
  "div",
22949
22429
  {
22950
22430
  className: classNames2("step-wrapper", "step-wrapper-card-active", className),
@@ -22953,7 +22433,7 @@ var StepWrapper = ({
22953
22433
  }
22954
22434
  );
22955
22435
  default:
22956
- return /* @__PURE__ */ jsx181(
22436
+ return /* @__PURE__ */ jsx177(
22957
22437
  "div",
22958
22438
  {
22959
22439
  className: classNames2("step-wrapper", className),
@@ -23224,7 +22704,6 @@ export {
23224
22704
  ALL_TIME_KEY,
23225
22705
  ANDROID_CHROME_TEXT_CODE,
23226
22706
  AbortableFetch_default as AbortableFetch,
23227
- Accordion_default2 as Accordion,
23228
22707
  AccordionTable_default as AccordionTable,
23229
22708
  AccordionText_default as AccordionText,
23230
22709
  AccordionWithCheckbox_default as AccordionWithCheckbox,
@@ -23237,7 +22716,6 @@ export {
23237
22716
  Arrow_default as Arrow,
23238
22717
  Box_default as Box,
23239
22718
  Button_default as Button,
23240
- ButtonsBar_default2 as ButtonsBar,
23241
22719
  CUSTOM_INTERVAL_KEY,
23242
22720
  CUSTOM_INTERVAL_KEY_TEXT,
23243
22721
  Calendar_default as Calendar,
@@ -23299,7 +22777,6 @@ export {
23299
22777
  MASK_PRESETS,
23300
22778
  MAX_NAME_LENGTH,
23301
22779
  MAX_PHONE_LENGTH,
23302
- MainMenu_default as MainMenu,
23303
22780
  MobileCalendar_default as MobileCalendar,
23304
22781
  Modal_default2 as Modal,
23305
22782
  ModalFooter_default as ModalFooter,
@@ -23309,7 +22786,6 @@ export {
23309
22786
  MultiSelect_default as MultiSelect,
23310
22787
  NAME_SYMBOLS_EXCLUDER,
23311
22788
  NUMERIC_KEYBOARD,
23312
- NavLine_default2 as NavLine,
23313
22789
  NumericInput_default as NumericInput,
23314
22790
  ONLY_STRING_AND_DASH,
23315
22791
  OS,