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.cjs CHANGED
@@ -33,7 +33,6 @@ __export(index_exports, {
33
33
  ALL_TIME_KEY: () => ALL_TIME_KEY,
34
34
  ANDROID_CHROME_TEXT_CODE: () => ANDROID_CHROME_TEXT_CODE,
35
35
  AbortableFetch: () => AbortableFetch_default,
36
- Accordion: () => Accordion_default2,
37
36
  AccordionTable: () => AccordionTable_default,
38
37
  AccordionText: () => AccordionText_default,
39
38
  AccordionWithCheckbox: () => AccordionWithCheckbox_default,
@@ -46,7 +45,6 @@ __export(index_exports, {
46
45
  Arrow: () => Arrow_default,
47
46
  Box: () => Box_default,
48
47
  Button: () => Button_default,
49
- ButtonsBar: () => ButtonsBar_default2,
50
48
  CUSTOM_INTERVAL_KEY: () => CUSTOM_INTERVAL_KEY,
51
49
  CUSTOM_INTERVAL_KEY_TEXT: () => CUSTOM_INTERVAL_KEY_TEXT,
52
50
  Calendar: () => Calendar_default,
@@ -108,7 +106,6 @@ __export(index_exports, {
108
106
  MASK_PRESETS: () => MASK_PRESETS,
109
107
  MAX_NAME_LENGTH: () => MAX_NAME_LENGTH,
110
108
  MAX_PHONE_LENGTH: () => MAX_PHONE_LENGTH,
111
- MainMenu: () => MainMenu_default,
112
109
  MobileCalendar: () => MobileCalendar_default,
113
110
  Modal: () => Modal_default2,
114
111
  ModalFooter: () => ModalFooter_default,
@@ -118,7 +115,6 @@ __export(index_exports, {
118
115
  MultiSelect: () => MultiSelect_default,
119
116
  NAME_SYMBOLS_EXCLUDER: () => NAME_SYMBOLS_EXCLUDER,
120
117
  NUMERIC_KEYBOARD: () => NUMERIC_KEYBOARD,
121
- NavLine: () => NavLine_default2,
122
118
  NumericInput: () => NumericInput_default,
123
119
  ONLY_STRING_AND_DASH: () => ONLY_STRING_AND_DASH,
124
120
  OS: () => OS,
@@ -15596,7 +15592,7 @@ var TagsDropdown = ({
15596
15592
  const singleLevelOptions = options?.reduce(
15597
15593
  (acc, item) => {
15598
15594
  const checkUniqAndPush = (acc2, item2) => {
15599
- const isExist = acc2?.findIndex(({ value }) => value === item2?.value);
15595
+ const isExist = acc2?.findIndex(({ value }) => String(value) === String(item2?.value));
15600
15596
  if (isExist !== -1) {
15601
15597
  acc2[isExist] = item2;
15602
15598
  } else {
@@ -15922,7 +15918,11 @@ var TagsDropdown = ({
15922
15918
  } else if (isMobile ? closeOnSelectMobile : closeOnSelect) {
15923
15919
  setIsOpen(false);
15924
15920
  }
15925
- setSearchValueInterceptor("");
15921
+ if (inputRef?.current?.focus) {
15922
+ inputRef.current.focus();
15923
+ const len = inputRef.current?.value?.length ?? 0;
15924
+ inputRef.current.setSelectionRange(len, len);
15925
+ }
15926
15926
  if (item.value && chosenOptions.includes(item.value)) {
15927
15927
  deleteChosen(item.value);
15928
15928
  return null;
@@ -16284,7 +16284,7 @@ var TagsDropdown = ({
16284
16284
  TagList_default,
16285
16285
  {
16286
16286
  items: chosenOptions?.map((value, i) => {
16287
- const tag = singleLevelOptions?.find((el) => el.value === value);
16287
+ const tag = singleLevelOptions?.find((el) => String(el.value) === String(value));
16288
16288
  const label2 = isValuesInTags ? tag?.value : tag?.label || tag?.name || tag?.title;
16289
16289
  return {
16290
16290
  value,
@@ -16299,7 +16299,7 @@ var TagsDropdown = ({
16299
16299
  }
16300
16300
  )
16301
16301
  ) : chosenOptions?.map((value) => {
16302
- const tag = singleLevelOptions?.find((el) => el.value === value);
16302
+ const tag = singleLevelOptions?.find((el) => String(el.value) === String(value));
16303
16303
  const label2 = isValuesInTags ? tag?.value : tag?.label || tag?.name || tag?.title;
16304
16304
  return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
16305
16305
  Tag_default,
@@ -16427,6 +16427,7 @@ var TagsDropdown = ({
16427
16427
  }
16428
16428
  getListContainer2()?.classList.remove("tags-dropdown__container--opened");
16429
16429
  if (withSearchInputInList) setSearchValueInterceptor("");
16430
+ searchValueRef.current = "";
16430
16431
  setListPos(null);
16431
16432
  setSearchValue("");
16432
16433
  }
@@ -16483,7 +16484,7 @@ var TagsDropdown = ({
16483
16484
  }, [scrollTop, dropdownListRef?.current]);
16484
16485
  (0, import_react60.useEffect)(() => {
16485
16486
  if (isSearchable && useLiveSearch && (debouncedSearchTerm || isValueDeleted || isOpen)) {
16486
- doLiveSearchRequest?.(debouncedSearchTerm);
16487
+ doLiveSearchRequest?.(searchValue ? debouncedSearchTerm : "");
16487
16488
  }
16488
16489
  }, [isOpen, debouncedSearchTerm, isValueDeleted]);
16489
16490
  (0, import_react60.useEffect)(() => {
@@ -20788,334 +20789,6 @@ function Header({
20788
20789
  }
20789
20790
  var Header_default = Header;
20790
20791
 
20791
- // src/Atomic/Layout/MainMenu/MainMenu.tsx
20792
- var import_classnames82 = __toESM(require("classnames"), 1);
20793
- var import_react98 = require("react");
20794
- var Icons3 = __toESM(require("react-feather"), 1);
20795
- var import_react_router_dom3 = require("react-router-dom");
20796
-
20797
- // src/Atomic/UI/Accordion/Accordion.tsx
20798
- var import_classnames81 = __toESM(require("classnames"), 1);
20799
- var import_react97 = require("react");
20800
- var Icons2 = __toESM(require("react-feather"), 1);
20801
- var import_react_router_dom2 = require("react-router-dom");
20802
-
20803
- // src/Atomic/UI/Accordion/AccordionItem.tsx
20804
- var import_classnames80 = __toESM(require("classnames"), 1);
20805
- var import_react96 = require("react");
20806
- var Icons = __toESM(require("react-feather"), 1);
20807
- var import_react_router_dom = require("react-router-dom");
20808
-
20809
- // src/Atomic/UI/Status/index.ts
20810
- var Status_default2 = Status_default;
20811
-
20812
- // src/Atomic/UI/Accordion/AccordionItem.tsx
20813
- var import_jsx_runtime150 = require("react/jsx-runtime");
20814
- var AccordionItem = ({
20815
- item,
20816
- onClick,
20817
- isOpen,
20818
- className,
20819
- children,
20820
- noChevron,
20821
- testId = "accordion-item"
20822
- }) => {
20823
- const Icon2 = Icons[item.icon];
20824
- const [maxHeight, setMaxHeight] = (0, import_react96.useState)(0);
20825
- const ref = (0, import_react96.useRef)(null);
20826
- const getItemsHeight = () => {
20827
- let itemHeight = 0;
20828
- ref.current?.childNodes.forEach((el) => {
20829
- itemHeight += el.offsetHeight;
20830
- });
20831
- return itemHeight + 20;
20832
- };
20833
- (0, import_react96.useEffect)(() => {
20834
- setMaxHeight(isOpen ? getItemsHeight() : 0);
20835
- }, [isOpen]);
20836
- const calculateStatusCount = () => {
20837
- return item?.rows?.reduce(
20838
- (acc, row) => {
20839
- const result = row.cols.reduce(
20840
- (accum, col) => ({
20841
- active: accum.active + (col.status === "active" ? 1 : 0),
20842
- pause: accum.pause + (col.status === "pause" ? 1 : 0)
20843
- }),
20844
- { active: 0, pause: 0 }
20845
- );
20846
- return {
20847
- active: acc.active + result.active,
20848
- pause: acc.pause + result.pause
20849
- };
20850
- },
20851
- { active: 0, pause: 0 }
20852
- );
20853
- };
20854
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
20855
- "div",
20856
- {
20857
- "data-testid": testId,
20858
- className: (0, import_classnames80.default)("accordion--item", className),
20859
- role: "region",
20860
- "aria-labelledby": `accordion-title-${item.title}`,
20861
- children: [
20862
- /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
20863
- "div",
20864
- {
20865
- className: (0, import_classnames80.default)("accordion--title-box", {
20866
- "accordion--title-open": isOpen
20867
- }),
20868
- onClick: () => onClick(!isOpen),
20869
- id: `accordion-title-${item.title}`,
20870
- role: "button",
20871
- "aria-expanded": isOpen,
20872
- "aria-controls": `accordion-content-${item.title}`,
20873
- tabIndex: 0,
20874
- children: [
20875
- /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "j4 no-wrap", children: [
20876
- item?.icon && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Icon2, { className: (0, import_classnames80.default)("mr5", item?.className), "aria-hidden": "true" }),
20877
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
20878
- ] }),
20879
- /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "j6 accordion-title__right-box", children: [
20880
- item.status && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "mr5", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
20881
- Status_default2,
20882
- {
20883
- type: item?.status.type,
20884
- value: item?.status.value,
20885
- status: item?.status.status,
20886
- active: calculateStatusCount()?.active,
20887
- pause: calculateStatusCount()?.pause
20888
- }
20889
- ) }),
20890
- !noChevron && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
20891
- Icons.ChevronRight,
20892
- {
20893
- "aria-hidden": "true",
20894
- className: (0, import_classnames80.default)("accordion--title-chevron", {
20895
- "accordion--title-chevron-open": isOpen
20896
- })
20897
- }
20898
- )
20899
- ] })
20900
- ]
20901
- }
20902
- ),
20903
- /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
20904
- "div",
20905
- {
20906
- ref,
20907
- style: { maxHeight },
20908
- className: (0, import_classnames80.default)("accordion--content", {
20909
- "accordion--content-is-open": isOpen
20910
- }),
20911
- id: `accordion-content-${item.title}`,
20912
- role: "region",
20913
- "aria-labelledby": `accordion-title-${item.title}`,
20914
- children: item.children ? item.children.map((el) => {
20915
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_react_router_dom.NavLink, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
20916
- }) : children
20917
- }
20918
- )
20919
- ]
20920
- }
20921
- );
20922
- };
20923
- var AccordionItem_default = AccordionItem;
20924
-
20925
- // src/Atomic/UI/Accordion/Accordion.tsx
20926
- var import_jsx_runtime151 = require("react/jsx-runtime");
20927
- var CN7 = "accordion";
20928
- var Accordion = ({
20929
- items,
20930
- className,
20931
- itemClassName,
20932
- isMenuHovered,
20933
- isOpen,
20934
- testId = CN7
20935
- }) => {
20936
- const [data, setData] = (0, import_react97.useState)(items);
20937
- const onChange = handleObjectChange(setData, () => setData([...data]));
20938
- const handleArrayChange = (e, index, prop) => {
20939
- data[index][prop] = e;
20940
- onChange(data);
20941
- };
20942
- return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("div", { className: (0, import_classnames81.default)(CN7, className), "data-testid": testId, role: "list", "aria-label": "Accordion list", children: items?.map((item, index) => {
20943
- const Icon2 = Icons2[item.icon];
20944
- return item.link ? /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)(
20945
- import_react_router_dom2.NavLink,
20946
- {
20947
- "data-testid": `${testId}-link-${index}`,
20948
- to: item.link,
20949
- className: (0, import_classnames81.default)("main-menu--item main-menu--items-box-title"),
20950
- children: [
20951
- item?.icon && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(Icon2, { className: (0, import_classnames81.default)("mr5", item?.className) }),
20952
- /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: (0, import_classnames81.default)({ hidden: !isOpen && !isMenuHovered }), children: item?.title || "Link" })
20953
- ]
20954
- },
20955
- index
20956
- ) : /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
20957
- AccordionItem_default,
20958
- {
20959
- testId: `${testId}-item-${index}`,
20960
- className: itemClassName,
20961
- item,
20962
- isOpen: !!item.isOpen,
20963
- onClick: (value) => handleArrayChange(value, index, "isOpen")
20964
- },
20965
- index
20966
- );
20967
- }) });
20968
- };
20969
- var Accordion_default = Accordion;
20970
-
20971
- // src/Atomic/Layout/MainMenu/MainMenu.tsx
20972
- var import_jsx_runtime152 = require("react/jsx-runtime");
20973
- function MainMenu(props) {
20974
- const { items, className } = props;
20975
- const lng = globalThis.lng;
20976
- const txt = Langs_default[lng];
20977
- const [isOpen, setIsOpen] = (0, import_react98.useState)(true);
20978
- const [isMenuHovered, setIsMenuHovered] = (0, import_react98.useState)(false);
20979
- const [isMenuIconHovered, setIsMenuIconHovered] = (0, import_react98.useState)(false);
20980
- const chapterClass = (0, import_classnames82.default)("main-menu--items-box-chapter", {
20981
- "main-menu--items-box-chapter-hidden": !isOpen && !isMenuHovered
20982
- });
20983
- const accordionClass = (0, import_classnames82.default)("main-menu--accordion", {
20984
- "main-menu--accordion-hidden": !isOpen && !isMenuHovered
20985
- });
20986
- const itemsBoxClass = (0, import_classnames82.default)("main-menu--items-box", {
20987
- "main-menu--items-box-closed": !isOpen && !isMenuHovered
20988
- });
20989
- const mainMenuClass = (0, import_classnames82.default)("main-menu", className, {
20990
- "main-menu--closed": !isOpen && !isMenuHovered
20991
- });
20992
- const onMenuHover = () => {
20993
- if (!isOpen) {
20994
- setIsMenuHovered(!isMenuHovered);
20995
- items.mainMenu.forEach((item) => {
20996
- item.isOpen = false;
20997
- });
20998
- items.partners.forEach((item) => {
20999
- item.isOpen = false;
21000
- });
21001
- items.other.forEach((item) => {
21002
- item.isOpen = false;
21003
- });
21004
- }
21005
- };
21006
- const onCloseMenu = () => {
21007
- setIsOpen(!isOpen);
21008
- items.mainMenu.forEach((item) => {
21009
- item.isOpen = false;
21010
- });
21011
- items.partners.forEach((item) => {
21012
- item.isOpen = false;
21013
- });
21014
- items.other.forEach((item) => {
21015
- item.isOpen = false;
21016
- });
21017
- };
21018
- const changeMenuIcon = () => {
21019
- if (isOpen && !isMenuIconHovered) return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Icons3.Menu, {});
21020
- if (isOpen && isMenuIconHovered) return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Icons3.ChevronLeft, {});
21021
- if (!isOpen && isMenuHovered) return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Icons3.ChevronRight, {});
21022
- if (!isOpen) return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "main-menu--logo-close" });
21023
- return null;
21024
- };
21025
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
21026
- "div",
21027
- {
21028
- className: mainMenuClass,
21029
- onMouseEnter: () => onMenuHover(),
21030
- onMouseLeave: () => setIsMenuHovered(false),
21031
- children: [
21032
- /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
21033
- "div",
21034
- {
21035
- className: (0, import_classnames82.default)("main-menu--header", {
21036
- "main-menu--header-closed": !isOpen && !isMenuHovered
21037
- }),
21038
- children: [
21039
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21040
- "div",
21041
- {
21042
- className: (0, import_classnames82.default)("main-menu--logo", {
21043
- "main-menu--logo-none": !isOpen && !isMenuHovered
21044
- })
21045
- }
21046
- ),
21047
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { "data-testid": "main-menu--header-btn", className: "main-menu--header-btn", onClick: () => onCloseMenu(), children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21048
- "div",
21049
- {
21050
- className: "j5",
21051
- onMouseEnter: () => setIsMenuIconHovered(true),
21052
- onMouseLeave: () => setIsMenuIconHovered(false),
21053
- children: changeMenuIcon()
21054
- }
21055
- ) })
21056
- ]
21057
- }
21058
- ),
21059
- /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: itemsBoxClass, children: [
21060
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: (0, import_classnames82.default)("main-menu--items-box-main"), children: items.main.map((item, index) => {
21061
- const Icon2 = Icons3[item.icon];
21062
- return item.link ? /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21063
- import_react_router_dom3.NavLink,
21064
- {
21065
- to: item.link,
21066
- className: (0, import_classnames82.default)("main-menu--items-box-title"),
21067
- children: /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { className: "main-menu--item", children: [
21068
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: "df", children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(Icon2, { className: (0, import_classnames82.default)("mr5", item.className) }) }),
21069
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { className: (0, import_classnames82.default)({ hidden: !isOpen && !isMenuHovered }), children: item?.title || "Link" })
21070
- ] })
21071
- },
21072
- index
21073
- ) : /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21074
- "span",
21075
- {
21076
- className: (0, import_classnames82.default)("main-menu--items-box-title", {
21077
- hidden: !isOpen && !isMenuHovered
21078
- }),
21079
- children: txt?.titles[item?.title]
21080
- },
21081
- index
21082
- );
21083
- }) }),
21084
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: chapterClass, children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { children: "Main menu" }) }),
21085
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21086
- Accordion_default,
21087
- {
21088
- className: accordionClass,
21089
- items: items.mainMenu
21090
- }
21091
- ),
21092
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: chapterClass, children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { children: "Partners" }) }),
21093
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21094
- Accordion_default,
21095
- {
21096
- isOpen,
21097
- isMenuHovered,
21098
- className: accordionClass,
21099
- items: items.partners
21100
- }
21101
- ),
21102
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("div", { className: chapterClass, children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { children: "Other" }) }),
21103
- /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21104
- Accordion_default,
21105
- {
21106
- className: accordionClass,
21107
- isOpen,
21108
- isMenuHovered,
21109
- items: items.other
21110
- }
21111
- )
21112
- ] })
21113
- ]
21114
- }
21115
- );
21116
- }
21117
- var MainMenu_default = MainMenu;
21118
-
21119
20792
  // src/Functions/presets/inputMaskPresets.js
21120
20793
  var DATE_PRESET = {
21121
20794
  type: "inputMask",
@@ -21250,14 +20923,11 @@ var INPUT_PRESETS = {
21250
20923
  ONLY_STRING_AND_DASH
21251
20924
  };
21252
20925
 
21253
- // src/Atomic/UI/Accordion/index.ts
21254
- var Accordion_default2 = Accordion_default;
21255
-
21256
20926
  // src/Atomic/UI/AccordionTable/AccordionTable.js
21257
- var import_react99 = __toESM(require("react"), 1);
21258
- var import_classnames83 = __toESM(require("classnames"), 1);
20927
+ var import_react96 = __toESM(require("react"), 1);
20928
+ var import_classnames80 = __toESM(require("classnames"), 1);
21259
20929
  var import_react_feather26 = require("react-feather");
21260
- var import_jsx_runtime153 = require("react/jsx-runtime");
20930
+ var import_jsx_runtime150 = require("react/jsx-runtime");
21261
20931
  var AccordionTable = ({
21262
20932
  className,
21263
20933
  header,
@@ -21268,8 +20938,8 @@ var AccordionTable = ({
21268
20938
  },
21269
20939
  sortParams
21270
20940
  }) => {
21271
- const [accordions, setAccordions] = (0, import_react99.useState)(items);
21272
- const sortedColClassName = (item) => (0, import_classnames83.default)(
20941
+ const [accordions, setAccordions] = (0, import_react96.useState)(items);
20942
+ const sortedColClassName = (item) => (0, import_classnames80.default)(
21273
20943
  "accordion-table__header-item",
21274
20944
  item.className,
21275
20945
  {
@@ -21312,16 +20982,16 @@ var AccordionTable = ({
21312
20982
  };
21313
20983
  const renderTd = (tr) => {
21314
20984
  return Object.entries(tr)?.map(([key, value]) => {
21315
- return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
20985
+ return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21316
20986
  "div",
21317
20987
  {
21318
20988
  style: { flexBasis: `${getHeaderItem(key)?.width}%` },
21319
- className: (0, import_classnames83.default)(
20989
+ className: (0, import_classnames80.default)(
21320
20990
  "accordion-table__td",
21321
20991
  `accordion-table__td--${key}`,
21322
20992
  getHeaderItem(key)?.className
21323
20993
  ),
21324
- children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
20994
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21325
20995
  "p",
21326
20996
  {
21327
20997
  className: "accordion-table__statistics-td-value",
@@ -21336,10 +21006,10 @@ var AccordionTable = ({
21336
21006
  };
21337
21007
  const renderTr = (rows) => {
21338
21008
  return rows?.map((row, index) => {
21339
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
21009
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
21340
21010
  "div",
21341
21011
  {
21342
- className: (0, import_classnames83.default)(
21012
+ className: (0, import_classnames80.default)(
21343
21013
  "accordion-table__tr",
21344
21014
  {
21345
21015
  "accordion-table__tr-with-promo": row.promoDetails || row.cols?.promoDetails
@@ -21347,13 +21017,13 @@ var AccordionTable = ({
21347
21017
  row.className
21348
21018
  ),
21349
21019
  children: [
21350
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "df w100", children: renderTd(row.cols || row) }),
21351
- row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "accordion-table__tr-promo", children: [
21352
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(import_react_feather26.Tag, { className: "tr-promo-icon", width: 16, height: 16 }),
21353
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { className: "tr-promo-label", children: "PROMOTION" }),
21020
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "df w100", children: renderTd(row.cols || row) }),
21021
+ row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "accordion-table__tr-promo", children: [
21022
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_react_feather26.Tag, { className: "tr-promo-icon", width: 16, height: 16 }),
21023
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "tr-promo-label", children: "PROMOTION" }),
21354
21024
  row.promoDetails || row.cols?.promoDetails
21355
21025
  ] }) }) : null,
21356
- row.disclosure || row.cols?.disclosure ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__tr-promo accordion-table__tr-promo-disclosure", children: row.disclosure || row.cols?.disclosure }) }) : null
21026
+ row.disclosure || row.cols?.disclosure ? /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__tr-promo accordion-table__tr-promo-disclosure", children: row.disclosure || row.cols?.disclosure }) }) : null
21357
21027
  ]
21358
21028
  },
21359
21029
  index
@@ -21361,34 +21031,34 @@ var AccordionTable = ({
21361
21031
  });
21362
21032
  };
21363
21033
  const defineAccordionTitle = (row) => {
21364
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
21034
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
21365
21035
  "div",
21366
21036
  {
21367
21037
  onClick: (e) => handle.accordionChange(row.key, e),
21368
21038
  className: "accordion-table__accordion-label-box",
21369
21039
  children: [
21370
- /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
21371
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21040
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
21041
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21372
21042
  import_react_feather26.ChevronDown,
21373
21043
  {
21374
21044
  width: 8,
21375
21045
  height: 4,
21376
- className: (0, import_classnames83.default)("accordion-label-box__icon", {
21046
+ className: (0, import_classnames80.default)("accordion-label-box__icon", {
21377
21047
  "accordion-label-box__icon--open": row.isOpen
21378
21048
  })
21379
21049
  }
21380
21050
  ),
21381
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("span", { className: "accordion-label-box__label", children: row.label }),
21382
- row.statistics && /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: (0, import_classnames83.default)("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
21383
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21051
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "accordion-label-box__label", children: row.label }),
21052
+ row.statistics && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: (0, import_classnames80.default)("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
21053
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21384
21054
  "div",
21385
21055
  {
21386
21056
  style: { width: `${getHeaderItem(key)?.width}%` },
21387
- className: (0, import_classnames83.default)(
21057
+ className: (0, import_classnames80.default)(
21388
21058
  "accordion-table__statistics-td",
21389
21059
  getHeaderItem(key)?.className
21390
21060
  ),
21391
- children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__statistics-td-value-wrapper", children: key === "status" ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__statistics-td-value", children: value }) : /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21061
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__statistics-td-value-wrapper", children: key === "status" ? /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__statistics-td-value", children: value }) : /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21392
21062
  "p",
21393
21063
  {
21394
21064
  className: "accordion-table__statistics-td-value",
@@ -21406,33 +21076,33 @@ var AccordionTable = ({
21406
21076
  }
21407
21077
  );
21408
21078
  };
21409
- (0, import_react99.useEffect)(() => {
21079
+ (0, import_react96.useEffect)(() => {
21410
21080
  setAccordions(items);
21411
21081
  }, [items]);
21412
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: (0, import_classnames83.default)("accordion-table", className), children: [
21413
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__header", children: header?.map((item) => {
21414
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
21082
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: (0, import_classnames80.default)("accordion-table", className), children: [
21083
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__header", children: header?.map((item) => {
21084
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
21415
21085
  "div",
21416
21086
  {
21417
21087
  style: { flexBasis: `${item.width}%` },
21418
21088
  className: sortedColClassName(item),
21419
21089
  onClick: () => !item.noSort && handle.setSort(item.key),
21420
21090
  children: [
21421
- sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(import_react_feather26.ArrowDown, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(import_react_feather26.ArrowUp, { size: 16 })),
21091
+ sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_react_feather26.ArrowDown, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_react_feather26.ArrowUp, { size: 16 })),
21422
21092
  item.label
21423
21093
  ]
21424
21094
  },
21425
21095
  item.key
21426
21096
  );
21427
21097
  }) }),
21428
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
21429
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21098
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
21099
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21430
21100
  MonoAccordion_default,
21431
21101
  {
21432
21102
  testId,
21433
21103
  onClick: (e) => handle.accordionChange(accordion.key, e),
21434
21104
  isOpen: accordion.isOpen,
21435
- className: (0, import_classnames83.default)(
21105
+ className: (0, import_classnames80.default)(
21436
21106
  "accordion-table__body-accordion",
21437
21107
  {
21438
21108
  "accordion-table__body-accordion--closed": !accordion.isOpen
@@ -21450,14 +21120,14 @@ var AccordionTable = ({
21450
21120
  var AccordionTable_default = AccordionTable;
21451
21121
 
21452
21122
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21453
- var import_classnames85 = __toESM(require("classnames"), 1);
21454
- var import_react101 = require("react");
21123
+ var import_classnames82 = __toESM(require("classnames"), 1);
21124
+ var import_react98 = require("react");
21455
21125
 
21456
21126
  // src/Atomic/UI/AdvancedTag/AdvTag.tsx
21457
- var import_classnames84 = __toESM(require("classnames"), 1);
21458
- var import_react100 = require("react");
21127
+ var import_classnames81 = __toESM(require("classnames"), 1);
21128
+ var import_react97 = require("react");
21459
21129
  var import_react_feather27 = require("react-feather");
21460
- var import_jsx_runtime154 = require("react/jsx-runtime");
21130
+ var import_jsx_runtime151 = require("react/jsx-runtime");
21461
21131
  var AdvTag = ({
21462
21132
  item,
21463
21133
  className,
@@ -21481,19 +21151,19 @@ var AdvTag = ({
21481
21151
  },
21482
21152
  type
21483
21153
  } = item;
21484
- const [isOpen, setIsOpen] = (0, import_react100.useState)(false);
21485
- const [clickedWarning, setClickedWarning] = (0, import_react100.useState)("");
21486
- const hintRef = (0, import_react100.useRef)(null);
21487
- const activeNumberClass = (0, import_classnames84.default)("strong", {
21154
+ const [isOpen, setIsOpen] = (0, import_react97.useState)(false);
21155
+ const [clickedWarning, setClickedWarning] = (0, import_react97.useState)("");
21156
+ const hintRef = (0, import_react97.useRef)(null);
21157
+ const activeNumberClass = (0, import_classnames81.default)("strong", {
21488
21158
  "color--pause": active === 0,
21489
21159
  "color--green-haze": active > 0
21490
21160
  });
21491
- const pauseNumberClass = (0, import_classnames84.default)("strong", {
21161
+ const pauseNumberClass = (0, import_classnames81.default)("strong", {
21492
21162
  "color--pause": pause === 0,
21493
21163
  "color--light-red": pause > 0
21494
21164
  });
21495
21165
  const isEmptyEntitys = isEntityAndCounter && (!entityAndCounter?.counter || entityAndCounter.counter === 0) || !isEntityAndCounter && (warnLeft || !merchants);
21496
- const advancedTagClass = (0, import_classnames84.default)("advanced-tags", {
21166
+ const advancedTagClass = (0, import_classnames81.default)("advanced-tags", {
21497
21167
  "advanced-tags--error": isEmptyEntitys
21498
21168
  }, className);
21499
21169
  const onWarningClick = (warn) => {
@@ -21505,22 +21175,22 @@ var AdvTag = ({
21505
21175
  setIsOpen(false);
21506
21176
  }
21507
21177
  };
21508
- (0, import_react100.useEffect)(() => {
21178
+ (0, import_react97.useEffect)(() => {
21509
21179
  document.addEventListener("click", handleClickOutside, true);
21510
21180
  return () => {
21511
21181
  document.removeEventListener("click", handleClickOutside, true);
21512
21182
  };
21513
21183
  }, []);
21514
21184
  if (!item) return null;
21515
- const renderClassicTag = () => /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21516
- warnLeft && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21185
+ const renderClassicTag = () => /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21186
+ warnLeft && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21517
21187
  "div",
21518
21188
  {
21519
21189
  "data-testid": `${testId}-left`,
21520
21190
  className: "advanced-tags--warning-icon-wrapper",
21521
21191
  onMouseEnter: () => onWarningClick("warnLeft"),
21522
21192
  onMouseLeave: () => setIsOpen(false),
21523
- children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21193
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21524
21194
  import_react_feather27.AlertTriangle,
21525
21195
  {
21526
21196
  width: 16,
@@ -21530,23 +21200,23 @@ var AdvTag = ({
21530
21200
  )
21531
21201
  }
21532
21202
  ),
21533
- labelLeft && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "mr5", children: labelLeft }),
21534
- labelRight && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { children: labelRight }),
21535
- type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "ml5 mr5", children: "|" }),
21536
- type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { className: "df", children: [
21537
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: activeNumberClass, children: active }),
21538
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "strong color--pause", children: "/" }),
21539
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: pauseNumberClass, children: pause })
21203
+ labelLeft && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "mr5", children: labelLeft }),
21204
+ labelRight && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { children: labelRight }),
21205
+ type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "ml5 mr5", children: "|" }),
21206
+ type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: "df", children: [
21207
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: activeNumberClass, children: active }),
21208
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "strong color--pause", children: "/" }),
21209
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: pauseNumberClass, children: pause })
21540
21210
  ] }),
21541
- type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "ml5 mr5", children: "|" }),
21542
- merchants ? /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21211
+ type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "ml5 mr5", children: "|" }),
21212
+ merchants ? /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21543
21213
  "div",
21544
21214
  {
21545
21215
  "data-testid": `${testId}-right`,
21546
21216
  className: "advanced-tags--warning-icon-wrapper",
21547
21217
  onMouseEnter: () => onWarningClick("warnRight"),
21548
21218
  onMouseLeave: () => setIsOpen(false),
21549
- children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21219
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21550
21220
  import_react_feather27.AlertTriangle,
21551
21221
  {
21552
21222
  width: 16,
@@ -21556,20 +21226,20 @@ var AdvTag = ({
21556
21226
  )
21557
21227
  }
21558
21228
  ),
21559
- isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21229
+ isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21560
21230
  "span",
21561
21231
  {
21562
- className: (0, import_classnames84.default)(
21232
+ className: (0, import_classnames81.default)(
21563
21233
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21564
21234
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21565
21235
  ),
21566
21236
  children: warnLeftMsg
21567
21237
  }
21568
21238
  ),
21569
- isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21239
+ isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21570
21240
  "span",
21571
21241
  {
21572
- className: (0, import_classnames84.default)(
21242
+ className: (0, import_classnames81.default)(
21573
21243
  "advanced-tags__warn-text",
21574
21244
  "advanced-tags__warn-text--warnRight",
21575
21245
  { "advanced-tags__warn-text--warnRight--to-top": toTop }
@@ -21580,15 +21250,15 @@ var AdvTag = ({
21580
21250
  ] });
21581
21251
  const renderWithEntityAndCounterTag = () => {
21582
21252
  const isNullcounter = entityAndCounter?.counter?.toString() === "0";
21583
- return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21584
- isNullcounter && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21253
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21254
+ isNullcounter && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21585
21255
  "div",
21586
21256
  {
21587
21257
  "data-testid": `${testId}-left`,
21588
21258
  className: "advanced-tags--warning-icon-wrapper",
21589
21259
  onMouseEnter: () => onWarningClick("warnLeft"),
21590
21260
  onMouseLeave: () => setIsOpen(false),
21591
- children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21261
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21592
21262
  import_react_feather27.AlertTriangle,
21593
21263
  {
21594
21264
  width: 16,
@@ -21598,21 +21268,21 @@ var AdvTag = ({
21598
21268
  )
21599
21269
  }
21600
21270
  ),
21601
- isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21271
+ isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21602
21272
  "span",
21603
21273
  {
21604
- className: (0, import_classnames84.default)(
21274
+ className: (0, import_classnames81.default)(
21605
21275
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21606
21276
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21607
21277
  ),
21608
21278
  children: entityAndCounter.nullCounterMessage
21609
21279
  }
21610
21280
  ),
21611
- entityAndCounter?.title && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "mr5", children: entityAndCounter.title }),
21612
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21281
+ entityAndCounter?.title && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "mr5", children: entityAndCounter.title }),
21282
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21613
21283
  "div",
21614
21284
  {
21615
- className: (0, import_classnames84.default)("advanced-tags__counter", {
21285
+ className: (0, import_classnames81.default)("advanced-tags__counter", {
21616
21286
  "advanced-tags__counter--null": isNullcounter,
21617
21287
  "advanced-tags__counter--bold": !isNullcounter
21618
21288
  }),
@@ -21626,7 +21296,7 @@ var AdvTag = ({
21626
21296
  var AdvTag_default = AdvTag;
21627
21297
 
21628
21298
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21629
- var import_jsx_runtime155 = require("react/jsx-runtime");
21299
+ var import_jsx_runtime152 = require("react/jsx-runtime");
21630
21300
  var AdvancedTags = ({
21631
21301
  items,
21632
21302
  noItemsTagLabel,
@@ -21634,26 +21304,26 @@ var AdvancedTags = ({
21634
21304
  testId = "advanced-tag-test",
21635
21305
  toTop = true
21636
21306
  }) => {
21637
- const [showedItems, setShowedItems] = (0, import_react101.useState)(items.slice(0, 2));
21638
- const [showMore, setShowMore] = (0, import_react101.useState)(true);
21307
+ const [showedItems, setShowedItems] = (0, import_react98.useState)(items.slice(0, 2));
21308
+ const [showMore, setShowMore] = (0, import_react98.useState)(true);
21639
21309
  const onShowMoreClick = () => {
21640
21310
  setShowedItems(showMore ? items : items.slice(0, 2));
21641
21311
  setShowMore(!showMore);
21642
21312
  };
21643
21313
  if ((!items || !items.length) && noItemsTagLabel) {
21644
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21314
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21645
21315
  Tag_default,
21646
21316
  {
21647
21317
  label: noItemsTagLabel?.toString(),
21648
- className: (0, import_classnames85.default)(className, "tag-warn")
21318
+ className: (0, import_classnames82.default)(className, "tag-warn")
21649
21319
  }
21650
21320
  );
21651
21321
  }
21652
21322
  if ((!items || !items.length) && !noItemsTagLabel) return null;
21653
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { "data-testid": testId, className: (0, import_classnames85.default)(className, "j4 wrap"), children: [
21323
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { "data-testid": testId, className: (0, import_classnames82.default)(className, "j4 wrap"), children: [
21654
21324
  showedItems.map((item, index) => {
21655
21325
  if (!item) return null;
21656
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21326
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21657
21327
  AdvTag_default,
21658
21328
  {
21659
21329
  toTop,
@@ -21663,7 +21333,7 @@ var AdvancedTags = ({
21663
21333
  index
21664
21334
  );
21665
21335
  }),
21666
- items.length >= 3 && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21336
+ items.length >= 3 && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21667
21337
  "span",
21668
21338
  {
21669
21339
  "data-testid": `${testId}-showMore`,
@@ -21683,8 +21353,8 @@ var AdvancedTag_default = AdvancedTags_default;
21683
21353
  var Alert_default2 = Alert_default;
21684
21354
 
21685
21355
  // src/Atomic/UI/Box/Box.tsx
21686
- var import_classnames86 = __toESM(require("classnames"), 1);
21687
- var import_jsx_runtime156 = require("react/jsx-runtime");
21356
+ var import_classnames83 = __toESM(require("classnames"), 1);
21357
+ var import_jsx_runtime153 = require("react/jsx-runtime");
21688
21358
  var directionVariants = {
21689
21359
  column: "column",
21690
21360
  row: "row"
@@ -21708,12 +21378,12 @@ function Box({
21708
21378
  const styles = {
21709
21379
  flexDirection: direction
21710
21380
  };
21711
- return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
21381
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21712
21382
  "div",
21713
21383
  {
21714
21384
  style: styles,
21715
21385
  "data-testid": "box",
21716
- className: (0, import_classnames86.default)(
21386
+ className: (0, import_classnames83.default)(
21717
21387
  "box",
21718
21388
  `box--padding-${paddingVariant}`,
21719
21389
  `box--radii-${radiiVariant}`,
@@ -21730,80 +21400,10 @@ function Box({
21730
21400
  }
21731
21401
  var Box_default = Box;
21732
21402
 
21733
- // src/Atomic/UI/ButtonsBar/ButtonsBar.tsx
21734
- var import_classnames87 = __toESM(require("classnames"), 1);
21735
- var import_react_router_dom4 = require("react-router-dom");
21736
- var import_jsx_runtime157 = require("react/jsx-runtime");
21737
- var ButtonsBar = ({
21738
- className,
21739
- rejectBtnLabel,
21740
- rejectBtnIcon,
21741
- isRejectBtnIconRight,
21742
- rejectBtnVariant,
21743
- rejectBtnClass,
21744
- isRejectBtnDisabled,
21745
- rejectLink,
21746
- onReject,
21747
- confirmBtnLabel,
21748
- confirmBtnIcon,
21749
- isConfirmBtnIconRight,
21750
- confirmBtnVariant,
21751
- confirmBtnClass,
21752
- isConfirmBtnDisabled,
21753
- onConfirm,
21754
- testIdFirstBtn = "button-bar-first-item",
21755
- testIdSecondBtn = "button-bar-second-item"
21756
- }) => {
21757
- return /* @__PURE__ */ (0, import_jsx_runtime157.jsxs)("div", { className: (0, import_classnames87.default)("button-bar", className), children: [
21758
- rejectLink ? /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(import_react_router_dom4.Link, { className: "text-decoration-none", to: rejectLink, children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
21759
- Button_default,
21760
- {
21761
- testId: testIdFirstBtn,
21762
- label: rejectBtnLabel,
21763
- variant: rejectBtnVariant,
21764
- onClick: onReject,
21765
- disabled: isRejectBtnDisabled,
21766
- icon: rejectBtnIcon,
21767
- isIconRight: isRejectBtnIconRight,
21768
- className: (0, import_classnames87.default)(rejectBtnClass, { mr5: confirmBtnLabel })
21769
- }
21770
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
21771
- Button_default,
21772
- {
21773
- testId: testIdFirstBtn,
21774
- label: rejectBtnLabel,
21775
- variant: rejectBtnVariant,
21776
- onClick: onReject,
21777
- disabled: isRejectBtnDisabled,
21778
- icon: rejectBtnIcon,
21779
- isIconRight: isRejectBtnIconRight,
21780
- className: (0, import_classnames87.default)(rejectBtnClass, { mr5: confirmBtnLabel })
21781
- }
21782
- ),
21783
- /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
21784
- Button_default,
21785
- {
21786
- testId: testIdSecondBtn,
21787
- label: confirmBtnLabel,
21788
- variant: confirmBtnVariant,
21789
- onClick: onConfirm,
21790
- disabled: isConfirmBtnDisabled,
21791
- icon: confirmBtnIcon,
21792
- isIconRight: isConfirmBtnIconRight,
21793
- className: confirmBtnClass
21794
- }
21795
- )
21796
- ] });
21797
- };
21798
- var ButtonsBar_default = ButtonsBar;
21799
-
21800
- // src/Atomic/UI/ButtonsBar/index.ts
21801
- var ButtonsBar_default2 = ButtonsBar_default;
21802
-
21803
21403
  // src/Atomic/UI/CircleProgressBar/CircleProgressBar.js
21804
- var import_react102 = __toESM(require("react"), 1);
21805
- var import_classnames88 = __toESM(require("classnames"), 1);
21806
- var import_jsx_runtime158 = require("react/jsx-runtime");
21404
+ var import_react99 = __toESM(require("react"), 1);
21405
+ var import_classnames84 = __toESM(require("classnames"), 1);
21406
+ var import_jsx_runtime154 = require("react/jsx-runtime");
21807
21407
  var CircleProgressBar = ({
21808
21408
  amount,
21809
21409
  totalAmount,
@@ -21824,17 +21424,17 @@ var CircleProgressBar = ({
21824
21424
  finish: "#f06d8d",
21825
21425
  meter: "#ffcad6"
21826
21426
  };
21827
- const [strokeDashoffset, setStrokeDashoffset] = (0, import_react102.useState)(isReverseType ? String(0) : circumference);
21828
- (0, import_react102.useEffect)(() => {
21427
+ const [strokeDashoffset, setStrokeDashoffset] = (0, import_react99.useState)(isReverseType ? String(0) : circumference);
21428
+ (0, import_react99.useEffect)(() => {
21829
21429
  setStrokeDashoffset(circumference - circumference * amountProgress / 100);
21830
21430
  }, [amountProgress]);
21831
- return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21431
+ return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21832
21432
  "div",
21833
21433
  {
21834
21434
  "data-testid": testId,
21835
- className: (0, import_classnames88.default)("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21435
+ className: (0, import_classnames84.default)("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21836
21436
  children: [
21837
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21437
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21838
21438
  "svg",
21839
21439
  {
21840
21440
  className: "limit-progress-bar__progress",
@@ -21842,7 +21442,7 @@ var CircleProgressBar = ({
21842
21442
  height: "124",
21843
21443
  viewBox: "0 0 124 124",
21844
21444
  children: [
21845
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("defs", { children: isReverseType ? /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21445
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("defs", { children: isReverseType ? /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21846
21446
  "linearGradient",
21847
21447
  {
21848
21448
  id: "limit-progress-bar-linear-gradient-reverse",
@@ -21851,14 +21451,14 @@ var CircleProgressBar = ({
21851
21451
  x2: "0",
21852
21452
  y2: "0",
21853
21453
  children: [
21854
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21454
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21855
21455
  "stop",
21856
21456
  {
21857
21457
  offset: "0",
21858
21458
  stopColor: colors.finish || defaultColors.finish
21859
21459
  }
21860
21460
  ),
21861
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21461
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21862
21462
  "stop",
21863
21463
  {
21864
21464
  offset: "1",
@@ -21867,7 +21467,7 @@ var CircleProgressBar = ({
21867
21467
  )
21868
21468
  ]
21869
21469
  }
21870
- ) : /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21470
+ ) : /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21871
21471
  "linearGradient",
21872
21472
  {
21873
21473
  id: "limit-progress-bar-linear-gradient",
@@ -21876,14 +21476,14 @@ var CircleProgressBar = ({
21876
21476
  x2: "0",
21877
21477
  y2: "0",
21878
21478
  children: [
21879
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21479
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21880
21480
  "stop",
21881
21481
  {
21882
21482
  offset: "0",
21883
21483
  stopColor: colors.start || defaultColors.start
21884
21484
  }
21885
21485
  ),
21886
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21486
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21887
21487
  "stop",
21888
21488
  {
21889
21489
  offset: "1",
@@ -21893,7 +21493,7 @@ var CircleProgressBar = ({
21893
21493
  ]
21894
21494
  }
21895
21495
  ) }),
21896
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21496
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21897
21497
  "circle",
21898
21498
  {
21899
21499
  className: "limit-progress-bar__meter",
@@ -21904,7 +21504,7 @@ var CircleProgressBar = ({
21904
21504
  strokeWidth: String(innerLineStrokeWidth)
21905
21505
  }
21906
21506
  ),
21907
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21507
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21908
21508
  "circle",
21909
21509
  {
21910
21510
  className: "limit-progress-bar__value",
@@ -21922,7 +21522,7 @@ var CircleProgressBar = ({
21922
21522
  ]
21923
21523
  }
21924
21524
  ),
21925
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { className: "limit-progress-bar__content", children })
21525
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "limit-progress-bar__content", children })
21926
21526
  ]
21927
21527
  }
21928
21528
  );
@@ -21930,10 +21530,10 @@ var CircleProgressBar = ({
21930
21530
  var CircleProgressBar_default = CircleProgressBar;
21931
21531
 
21932
21532
  // src/Atomic/UI/DateTime/DateTime.tsx
21933
- var import_classnames89 = __toESM(require("classnames"), 1);
21533
+ var import_classnames85 = __toESM(require("classnames"), 1);
21934
21534
  var import_moment_timezone9 = __toESM(require("moment-timezone"), 1);
21935
- var import_react103 = require("react");
21936
- var import_jsx_runtime159 = require("react/jsx-runtime");
21535
+ var import_react100 = require("react");
21536
+ var import_jsx_runtime155 = require("react/jsx-runtime");
21937
21537
  var RC36 = "date-time";
21938
21538
  var DEFAULT_DATE_FORMAT = "DD.MM.YYYY";
21939
21539
  var DEFAULT_TIME_FORMAT = "HH:mm:ss";
@@ -21949,23 +21549,23 @@ var DateTime = ({
21949
21549
  }) => {
21950
21550
  const dateFormat = inputDateFormat ?? DEFAULT_DATE_FORMAT;
21951
21551
  const timeFormat = inputTimeFormat ?? DEFAULT_TIME_FORMAT;
21952
- const date = (0, import_react103.useMemo)(() => {
21552
+ const date = (0, import_react100.useMemo)(() => {
21953
21553
  return (valueFormat ? (0, import_moment_timezone9.default)(value, valueFormat) : (0, import_moment_timezone9.default)(value)).format(
21954
21554
  dateFormat
21955
21555
  );
21956
21556
  }, [value, valueFormat, dateFormat]);
21957
- const time = (0, import_react103.useMemo)(() => {
21557
+ const time = (0, import_react100.useMemo)(() => {
21958
21558
  return (valueFormat ? (0, import_moment_timezone9.default)(value, valueFormat) : (0, import_moment_timezone9.default)(value)).format(
21959
21559
  timeFormat
21960
21560
  );
21961
21561
  }, [value, valueFormat, timeFormat]);
21962
- return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { "data-testid": testId, className: (0, import_classnames89.default)(RC36, className), children: [
21963
- !isNoDate && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("span", { "data-testid": `${testId}-date`, className: `${RC36}__date`, children: date }),
21964
- !isNoTime && /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
21562
+ return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { "data-testid": testId, className: (0, import_classnames85.default)(RC36, className), children: [
21563
+ !isNoDate && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { "data-testid": `${testId}-date`, className: `${RC36}__date`, children: date }),
21564
+ !isNoTime && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21965
21565
  "span",
21966
21566
  {
21967
21567
  "data-testid": `${testId}-time`,
21968
- className: (0, import_classnames89.default)(`${RC36}__time`, {
21568
+ className: (0, import_classnames85.default)(`${RC36}__time`, {
21969
21569
  [`${RC36}_color--pause`]: !isNoDate
21970
21570
  }),
21971
21571
  children: time
@@ -21976,32 +21576,32 @@ var DateTime = ({
21976
21576
  var DateTime_default = DateTime;
21977
21577
 
21978
21578
  // src/Atomic/UI/DebugContainer/DebugContainer.tsx
21979
- var import_classnames90 = __toESM(require("classnames"), 1);
21980
- var import_react104 = require("react");
21579
+ var import_classnames86 = __toESM(require("classnames"), 1);
21580
+ var import_react101 = require("react");
21981
21581
  var import_react_feather28 = require("react-feather");
21982
- var import_jsx_runtime160 = require("react/jsx-runtime");
21582
+ var import_jsx_runtime156 = require("react/jsx-runtime");
21983
21583
  var defaultData = {};
21984
21584
  var DebugContainer = ({ data = defaultData, children, className }) => {
21985
- const [isVisible, setIsVisible] = (0, import_react104.useState)(true);
21986
- const renderData = () => /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("pre", { children: [
21585
+ const [isVisible, setIsVisible] = (0, import_react101.useState)(true);
21586
+ const renderData = () => /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("pre", { children: [
21987
21587
  "{\n",
21988
21588
  Object.keys(data).map((key) => ` ${key}: ${String(data[key])},
21989
21589
  `),
21990
21590
  "}"
21991
21591
  ] });
21992
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: (0, import_classnames90.default)("debug-container", className), "data-testid": "debug-container", children: [
21993
- isVisible && /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: "debug-container__body", children: [
21994
- /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("h5", { children: "Debug:" }),
21995
- data && Object.keys(data).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
21996
- children && /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
21592
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { className: (0, import_classnames86.default)("debug-container", className), "data-testid": "debug-container", children: [
21593
+ isVisible && /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { className: "debug-container__body", children: [
21594
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("h5", { children: "Debug:" }),
21595
+ data && Object.keys(data).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
21596
+ children && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
21997
21597
  ] }),
21998
- /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
21598
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
21999
21599
  "div",
22000
21600
  {
22001
21601
  className: "debug-container__toggler",
22002
21602
  onClick: () => setIsVisible((v) => !v),
22003
21603
  "data-testid": "debug-toggler",
22004
- children: isVisible ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(import_react_feather28.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(import_react_feather28.ChevronDown, {})
21604
+ children: isVisible ? /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_feather28.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_feather28.ChevronDown, {})
22005
21605
  }
22006
21606
  )
22007
21607
  ] });
@@ -22009,24 +21609,24 @@ var DebugContainer = ({ data = defaultData, children, className }) => {
22009
21609
  var DebugContainer_default = DebugContainer;
22010
21610
 
22011
21611
  // src/Atomic/UI/DebugContainer/useDebugContainer.tsx
22012
- var import_react105 = require("react");
22013
- var import_jsx_runtime161 = require("react/jsx-runtime");
21612
+ var import_react102 = require("react");
21613
+ var import_jsx_runtime157 = require("react/jsx-runtime");
22014
21614
  function useDebugContainer() {
22015
- const [data, setData] = (0, import_react105.useState)({});
21615
+ const [data, setData] = (0, import_react102.useState)({});
22016
21616
  return {
22017
21617
  debugData: data,
22018
21618
  setDebugData: setData,
22019
- renderDebugContainer: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(DebugContainer_default, { data })
21619
+ renderDebugContainer: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(DebugContainer_default, { data })
22020
21620
  };
22021
21621
  }
22022
21622
  var useDebugContainer_default = useDebugContainer;
22023
21623
 
22024
21624
  // src/Atomic/UI/DoubleString/DoubleString.tsx
22025
- var import_classnames91 = __toESM(require("classnames"), 1);
21625
+ var import_classnames87 = __toESM(require("classnames"), 1);
22026
21626
  var import_moment7 = __toESM(require("moment"), 1);
22027
- var import_react106 = require("react");
21627
+ var import_react103 = require("react");
22028
21628
  var import_react_feather29 = require("react-feather");
22029
- var import_jsx_runtime162 = require("react/jsx-runtime");
21629
+ var import_jsx_runtime158 = require("react/jsx-runtime");
22030
21630
  var RC37 = "double-string";
22031
21631
  var DoubleString = ({
22032
21632
  value,
@@ -22046,33 +21646,33 @@ var DoubleString = ({
22046
21646
  isUseHideMode = false,
22047
21647
  isShowHiddenValueAvailable = false
22048
21648
  }) => {
22049
- const [isValueHidden, setIsValueHidden] = (0, import_react106.useState)(isUseHideMode);
21649
+ const [isValueHidden, setIsValueHidden] = (0, import_react103.useState)(isUseHideMode);
22050
21650
  const computedValue = isFormatValueToDate ? (0, import_moment7.default)(value, parseFormat).format(displayFormat) : value;
22051
- const valueRef = (0, import_react106.useRef)(null);
21651
+ const valueRef = (0, import_react103.useRef)(null);
22052
21652
  ;
22053
- const descriptionRef = (0, import_react106.useRef)(null);
22054
- const [elemsWidth, setElemsWidth] = (0, import_react106.useState)({
21653
+ const descriptionRef = (0, import_react103.useRef)(null);
21654
+ const [elemsWidth, setElemsWidth] = (0, import_react103.useState)({
22055
21655
  valueWidth: 0,
22056
21656
  descriptionWidth: 0
22057
21657
  });
22058
- const [isOnClickON, setIsOnClickON] = (0, import_react106.useState)(false);
21658
+ const [isOnClickON, setIsOnClickON] = (0, import_react103.useState)(false);
22059
21659
  const handle = {
22060
21660
  click: () => {
22061
21661
  setIsOnClickON(!isOnClickON);
22062
21662
  }
22063
21663
  };
22064
- (0, import_react106.useEffect)(() => {
21664
+ (0, import_react103.useEffect)(() => {
22065
21665
  const valueWidth = valueRef?.current?.clientWidth ?? 0;
22066
21666
  const descriptionWidth = descriptionRef?.current?.clientWidth ?? 0;
22067
21667
  setElemsWidth({ valueWidth, descriptionWidth });
22068
21668
  }, [descriptionRef, valueRef]);
22069
- return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("div", { "data-testid": testId, className: (0, import_classnames91.default)(RC37, className), children: [
22070
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
21669
+ return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { "data-testid": testId, className: (0, import_classnames87.default)(RC37, className), children: [
21670
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
22071
21671
  "p",
22072
21672
  {
22073
21673
  onClick: () => handle.click(),
22074
21674
  ref: valueRef,
22075
- className: (0, import_classnames91.default)(
21675
+ className: (0, import_classnames87.default)(
22076
21676
  `${RC37}__value`,
22077
21677
  {
22078
21678
  "double-string--value-opened": isOnClickON && isUseOnClick
@@ -22080,27 +21680,27 @@ var DoubleString = ({
22080
21680
  { pointer: isUseOnClick }
22081
21681
  ),
22082
21682
  title: !noTitle && elemsWidth.valueWidth > 99 ? computedValue : "",
22083
- children: !revert ? /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
22084
- isUseHideMode ? /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
22085
- isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_feather29.Eye, { "data-testid": "double-string-eye", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
22086
- isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_feather29.EyeOff, { "data-testid": "double-string-eyeoff", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
22087
- valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: (0, import_classnames91.default)(`${RC37}__value-postfix`), children: valuePostfix })
21683
+ children: !revert ? /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_jsx_runtime158.Fragment, { children: [
21684
+ isUseHideMode ? /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
21685
+ isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_feather29.Eye, { "data-testid": "double-string-eye", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
21686
+ isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_feather29.EyeOff, { "data-testid": "double-string-eyeoff", className: `${RC37}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
21687
+ valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: (0, import_classnames87.default)(`${RC37}__value-postfix`), children: valuePostfix })
22088
21688
  ] }) : description
22089
21689
  }
22090
21690
  ),
22091
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
21691
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
22092
21692
  "p",
22093
21693
  {
22094
21694
  ref: descriptionRef,
22095
- className: (0, import_classnames91.default)(`${RC37}__description`),
21695
+ className: (0, import_classnames87.default)(`${RC37}__description`),
22096
21696
  title: !noTitle && elemsWidth.descriptionWidth > 99 ? computedValue : "",
22097
- children: !revert ? description : /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
21697
+ children: !revert ? description : /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_jsx_runtime158.Fragment, { children: [
22098
21698
  computedValue,
22099
- valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: (0, import_classnames91.default)(`${RC37}__value-postfix`), children: valuePostfix })
21699
+ valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: (0, import_classnames87.default)(`${RC37}__value-postfix`), children: valuePostfix })
22100
21700
  ] })
22101
21701
  }
22102
21702
  ),
22103
- subDescription && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("p", { className: (0, import_classnames91.default)(`${RC37}__sub-description`), children: subDescription })
21703
+ subDescription && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("p", { className: (0, import_classnames87.default)(`${RC37}__sub-description`), children: subDescription })
22104
21704
  ] });
22105
21705
  };
22106
21706
  var DoubleString_default = DoubleString;
@@ -22112,9 +21712,9 @@ var DoubleString_default2 = DoubleString_default;
22112
21712
  var Hint_default2 = Hint_default;
22113
21713
 
22114
21714
  // src/Atomic/UI/Modal/ModalHOC.tsx
22115
- var import_classnames92 = __toESM(require("classnames"), 1);
22116
- var import_react107 = require("react");
22117
- var import_jsx_runtime163 = require("react/jsx-runtime");
21715
+ var import_classnames88 = __toESM(require("classnames"), 1);
21716
+ var import_react104 = require("react");
21717
+ var import_jsx_runtime159 = require("react/jsx-runtime");
22118
21718
  var ModalHOC = ({
22119
21719
  id,
22120
21720
  zIndex = 100,
@@ -22132,19 +21732,19 @@ var ModalHOC = ({
22132
21732
  isClosingByEsc: isClosingByEscOuter = true,
22133
21733
  closeOnEsc
22134
21734
  }) => {
22135
- const modalRef = (0, import_react107.useRef)(null);
22136
- const closeModalRef = (0, import_react107.useRef)(closeModal);
21735
+ const modalRef = (0, import_react104.useRef)(null);
21736
+ const closeModalRef = (0, import_react104.useRef)(closeModal);
22137
21737
  const isClosingByEsc = closeOnEsc === false ? false : isClosingByEscOuter;
22138
21738
  const withEventManagementStructure = getWithEventManagementStructure(id, withEventManagement);
22139
- const handleClose = (0, import_react107.useMemo)(() => () => closeModalRef.current?.(), []);
21739
+ const handleClose = (0, import_react104.useMemo)(() => () => closeModalRef.current?.(), []);
22140
21740
  useHandleKeyPress_default({
22141
21741
  escCallback: isClosingByEsc && typeof closeModal === "function" ? handleClose : void 0,
22142
21742
  withEventManagementStructure
22143
21743
  });
22144
- (0, import_react107.useLayoutEffect)(() => {
21744
+ (0, import_react104.useLayoutEffect)(() => {
22145
21745
  closeModalRef.current = closeBtnDisable ? void 0 : closeModal;
22146
21746
  }, [closeModal, closeBtnDisable]);
22147
- (0, import_react107.useEffect)(() => {
21747
+ (0, import_react104.useEffect)(() => {
22148
21748
  const onKeyPress = getOnKeyPress({ id, onClose: handleClose });
22149
21749
  if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
22150
21750
  if (isClosingByEsc) document.addEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
@@ -22156,14 +21756,14 @@ var ModalHOC = ({
22156
21756
  };
22157
21757
  }, []);
22158
21758
  if (!isOpen) return null;
22159
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
22160
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
22161
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
21759
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
21760
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
21761
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
22162
21762
  "div",
22163
21763
  {
22164
21764
  ref: modalRef,
22165
21765
  style: { width: size },
22166
- className: (0, import_classnames92.default)(className, "modal"),
21766
+ className: (0, import_classnames88.default)(className, "modal"),
22167
21767
  role: "dialog",
22168
21768
  "aria-modal": "true",
22169
21769
  "aria-labelledby": testId,
@@ -22181,264 +21781,19 @@ var Modal_default2 = Modal_default;
22181
21781
  // src/Atomic/UI/MonoAccordion/index.ts
22182
21782
  var MonoAccordion_default2 = MonoAccordion_default;
22183
21783
 
22184
- // src/Atomic/UI/NavLine/NavLine.tsx
22185
- var import_classnames93 = __toESM(require("classnames"), 1);
22186
- var import_react108 = require("react");
22187
- var Icons4 = __toESM(require("react-feather"), 1);
22188
- var import_react_router_dom5 = require("react-router-dom");
22189
- var import_jsx_runtime164 = require("react/jsx-runtime");
22190
- var CN8 = "nav-line";
22191
- function checkedRef2(ref) {
22192
- if (!ref) return null;
22193
- return typeof ref === "function" ? (node) => ref(node) : ref;
22194
- }
22195
- var NavLine = ({
22196
- root = "",
22197
- activeTab,
22198
- variant,
22199
- onChange,
22200
- className,
22201
- items,
22202
- children,
22203
- isLocal = false,
22204
- mode,
22205
- isNavigateByKeys,
22206
- isTabLoading,
22207
- scrollMode = false,
22208
- testId = CN8
22209
- }) => {
22210
- const [navLineItems, setNavLineItems] = (0, import_react108.useState)([]);
22211
- const wrapperRef = (0, import_react108.useRef)(null);
22212
- const wrapperInnerRef = (0, import_react108.useRef)(null);
22213
- const [showScrollButtons, setShowScrollButtons] = (0, import_react108.useState)(false);
22214
- const [canScrollLeft, setCanScrollLeft] = (0, import_react108.useState)(false);
22215
- const [canScrollRight, setCanScrollRight] = (0, import_react108.useState)(false);
22216
- const [isScrollBlocked, setIsScrollBlocked] = (0, import_react108.useState)(false);
22217
- const checkScroll = (0, import_react108.useCallback)(() => {
22218
- const inner = wrapperInnerRef.current;
22219
- if (!inner) return;
22220
- const hasOverflow = inner.scrollWidth > inner.clientWidth;
22221
- const canScrollLeft2 = inner.scrollLeft > 0;
22222
- const canScrollRight2 = inner.scrollLeft < inner.scrollWidth - inner.clientWidth;
22223
- setShowScrollButtons(hasOverflow);
22224
- setCanScrollLeft(canScrollLeft2);
22225
- setCanScrollRight(canScrollRight2);
22226
- }, []);
22227
- const scroll = (0, import_react108.useCallback)(
22228
- (direction) => {
22229
- if (isScrollBlocked || !wrapperInnerRef.current) return;
22230
- setIsScrollBlocked(true);
22231
- const scrollAmount = 100;
22232
- const offset = direction === "left" ? -scrollAmount : scrollAmount;
22233
- try {
22234
- wrapperInnerRef.current.scrollBy({
22235
- left: offset,
22236
- behavior: "smooth"
22237
- });
22238
- } catch (error) {
22239
- console.error("scrollBy is not supported", error);
22240
- if (wrapperInnerRef.current) {
22241
- wrapperInnerRef.current.scrollLeft += offset;
22242
- }
22243
- }
22244
- setTimeout(() => {
22245
- setIsScrollBlocked(false);
22246
- checkScroll();
22247
- }, 300);
22248
- },
22249
- [isScrollBlocked, checkScroll]
22250
- );
22251
- const handleWheel = (0, import_react108.useCallback)(
22252
- (e) => {
22253
- if (!scrollMode) return;
22254
- e.preventDefault();
22255
- if (e.deltaY > 0) {
22256
- scroll("right");
22257
- } else {
22258
- scroll("left");
22259
- }
22260
- },
22261
- [scroll, scrollMode]
22262
- );
22263
- const onTabChange = (0, import_react108.useCallback)(
22264
- (item) => {
22265
- if (!item.disabled && !(mode === "create" && item.tabId !== "general")) {
22266
- onChange(item.tabId);
22267
- }
22268
- },
22269
- [mode, onChange]
22270
- );
22271
- const navigateByKeys = (0, import_react108.useCallback)(
22272
- (event) => {
22273
- if (event.repeat) return;
22274
- const activeTabIndex = items.findIndex((tab) => tab.tabId === activeTab);
22275
- const nextTabID = items[activeTabIndex + 1]?.tabId;
22276
- const prevTabID = items[activeTabIndex - 1]?.tabId;
22277
- if (event.keyCode === KEYBOARD_KEY_CODES.ARROW_RIGHT && nextTabID) {
22278
- onChange(nextTabID);
22279
- } else if (event.keyCode === KEYBOARD_KEY_CODES.ARROW_LEFT && prevTabID) {
22280
- onChange(prevTabID);
22281
- }
22282
- },
22283
- [activeTab, items, onChange]
22284
- );
22285
- (0, import_react108.useEffect)(() => {
22286
- setNavLineItems(
22287
- items.map((item) => ({
22288
- ...item,
22289
- ref: (0, import_react108.createRef)()
22290
- }))
22291
- );
22292
- }, [items]);
22293
- (0, import_react108.useEffect)(() => {
22294
- if (isNavigateByKeys && !isTabLoading) {
22295
- document.addEventListener("keydown", navigateByKeys);
22296
- }
22297
- return () => document.removeEventListener("keydown", navigateByKeys);
22298
- }, [isNavigateByKeys, isTabLoading, navigateByKeys]);
22299
- (0, import_react108.useEffect)(() => {
22300
- if (!scrollMode) return;
22301
- const inner = wrapperInnerRef.current;
22302
- if (!inner) return;
22303
- const resizeObserver = new ResizeObserver(checkScroll);
22304
- resizeObserver.observe(inner);
22305
- inner.addEventListener("scroll", checkScroll);
22306
- inner.addEventListener("wheel", handleWheel, { passive: false });
22307
- checkScroll();
22308
- return () => {
22309
- resizeObserver.disconnect();
22310
- inner.removeEventListener("scroll", checkScroll);
22311
- inner.removeEventListener("wheel", handleWheel);
22312
- };
22313
- }, [scrollMode, checkScroll, handleWheel]);
22314
- const renderNavItem = (item) => {
22315
- const Icon2 = item.icon ? Icons4[item.icon] : null;
22316
- const isDisabled = item.disabled || mode === "create" && item.tabId !== "general";
22317
- const commonProps = {
22318
- "title": item.title,
22319
- "className": (0, import_classnames93.default)(
22320
- { "nav-line__item": !variant },
22321
- { "nav-line--simple__item": variant === "simple" },
22322
- { active: activeTab === item.tabId },
22323
- { disabled: isDisabled },
22324
- { "nav-line__item--hidden": item.isHidden }
22325
- ),
22326
- "role": "tab",
22327
- "aria-selected": activeTab === item.tabId,
22328
- "aria-disabled": isDisabled,
22329
- "tabIndex": isDisabled ? -1 : 0
22330
- };
22331
- const content = /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "nav-line__content", children: [
22332
- Icon2 && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "nav-line__item--icon", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Icon2, {}) }),
22333
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("span", { className: (0, import_classnames93.default)({ "nav-line__item--label": variant !== "simple" }), children: item.label }),
22334
- item.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("span", { className: "nav-line-count", "aria-label": `${item.count} items`, children: [
22335
- "(",
22336
- item.count,
22337
- ")"
22338
- ] })
22339
- ] });
22340
- if (isLocal) {
22341
- return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
22342
- "span",
22343
- {
22344
- ...commonProps,
22345
- ref: checkedRef2(item.ref),
22346
- onClick: () => !isDisabled && onTabChange(item),
22347
- onKeyPress: (e) => {
22348
- if (!isDisabled && (e.key === "Enter" || e.key === " ")) {
22349
- e.preventDefault();
22350
- onTabChange(item);
22351
- }
22352
- },
22353
- children: content
22354
- },
22355
- `tab__${item.tabId}`
22356
- );
22357
- }
22358
- return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
22359
- import_react_router_dom5.NavLink,
22360
- {
22361
- ...commonProps,
22362
- to: `${root}${item?.linkChapter || item.tabId}/`,
22363
- onClick: (e) => {
22364
- if (isDisabled) {
22365
- e.preventDefault();
22366
- }
22367
- },
22368
- children: content
22369
- },
22370
- `tab__${item.tabId}`
22371
- );
22372
- };
22373
- return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "nav-line-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(
22374
- "div",
22375
- {
22376
- "data-testid": testId,
22377
- className: (0, import_classnames93.default)(
22378
- { [CN8]: !variant },
22379
- { [`${CN8}--simple`]: variant === "simple" },
22380
- { [`${CN8}--scroll-mode`]: scrollMode },
22381
- className
22382
- ),
22383
- ref: wrapperRef,
22384
- children: [
22385
- scrollMode && showScrollButtons && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
22386
- "button",
22387
- {
22388
- type: "button",
22389
- "data-testid": "nav-line-scroll-prev",
22390
- className: "nav-line--simple__arrow nav-line--simple__arrow--prev",
22391
- onClick: () => scroll("left"),
22392
- "aria-label": "Scroll previous",
22393
- disabled: !canScrollLeft,
22394
- children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Icons4.ChevronLeft, {})
22395
- }
22396
- ),
22397
- /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
22398
- "div",
22399
- {
22400
- ref: wrapperInnerRef,
22401
- className: (0, import_classnames93.default)({ "nav-line__inner": !variant }, { "nav-line--simple__inner": variant === "simple" }),
22402
- role: "tablist",
22403
- "aria-orientation": "horizontal",
22404
- children: navLineItems.map(renderNavItem)
22405
- }
22406
- ),
22407
- scrollMode && showScrollButtons && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
22408
- "button",
22409
- {
22410
- type: "button",
22411
- "data-testid": "nav-line-scroll-next",
22412
- className: "nav-line--simple__arrow nav-line--simple__arrow--next",
22413
- onClick: () => scroll("right"),
22414
- "aria-label": "Scroll next",
22415
- disabled: !canScrollRight,
22416
- children: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Icons4.ChevronRight, {})
22417
- }
22418
- ),
22419
- children && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "nav-line__body", role: "tabpanel", children })
22420
- ]
22421
- }
22422
- ) });
22423
- };
22424
- var NavLine_default = NavLine;
22425
-
22426
- // src/Atomic/UI/NavLine/index.ts
22427
- var NavLine_default2 = NavLine_default;
22428
-
22429
21784
  // src/Atomic/UI/PageTitle/PageTitle.tsx
22430
- var import_classnames94 = __toESM(require("classnames"), 1);
21785
+ var import_classnames89 = __toESM(require("classnames"), 1);
22431
21786
  var import_react_feather30 = require("react-feather");
22432
- var import_jsx_runtime165 = require("react/jsx-runtime");
21787
+ var import_jsx_runtime160 = require("react/jsx-runtime");
22433
21788
  var RC38 = "page-title";
22434
- var PageTitle = ({ title, pages, children, testId = RC38 }) => /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { "data-testid": testId, className: RC38, role: "region", "aria-label": title, children: [
22435
- /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: `${RC38}__wrap`, children: [
22436
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("h1", { className: `${RC38}__title`, children: title }),
22437
- pages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("nav", { className: `${RC38}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("ol", { className: `${RC38}__list`, children: [
22438
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("a", { className: `${RC38}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(import_react_feather30.Home, { "aria-hidden": "true" }) }) }),
22439
- pages.map(({ name, path }, index) => /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("li", { children: [
22440
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: `${RC38}__delimiter`, "aria-hidden": "true", children: "/" }),
22441
- pages.length - 1 === index ? /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { className: (0, import_classnames94.default)(`${RC38}__link`, `${RC38}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("a", { className: `${RC38}__link`, href: path, children: name })
21789
+ var PageTitle = ({ title, pages, children, testId = RC38 }) => /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { "data-testid": testId, className: RC38, role: "region", "aria-label": title, children: [
21790
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: `${RC38}__wrap`, children: [
21791
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("h1", { className: `${RC38}__title`, children: title }),
21792
+ pages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("nav", { className: `${RC38}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("ol", { className: `${RC38}__list`, children: [
21793
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("a", { className: `${RC38}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(import_react_feather30.Home, { "aria-hidden": "true" }) }) }),
21794
+ pages.map(({ name, path }, index) => /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("li", { children: [
21795
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: `${RC38}__delimiter`, "aria-hidden": "true", children: "/" }),
21796
+ pages.length - 1 === index ? /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: (0, import_classnames89.default)(`${RC38}__link`, `${RC38}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("a", { className: `${RC38}__link`, href: path, children: name })
22442
21797
  ] }, path))
22443
21798
  ] }) })
22444
21799
  ] }),
@@ -22450,16 +21805,16 @@ var PageTitle_default = PageTitle;
22450
21805
  var PageTitle_default2 = PageTitle_default;
22451
21806
 
22452
21807
  // src/Atomic/UI/Price/Price.tsx
22453
- var import_classnames95 = __toESM(require("classnames"), 1);
22454
- var import_jsx_runtime166 = require("react/jsx-runtime");
22455
- var CN9 = "price";
22456
- var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN9 }) => {
21808
+ var import_classnames90 = __toESM(require("classnames"), 1);
21809
+ var import_jsx_runtime161 = require("react/jsx-runtime");
21810
+ var CN7 = "price";
21811
+ var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN7 }) => {
22457
21812
  if (value === void 0 || value === null) return null;
22458
- return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
21813
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
22459
21814
  "div",
22460
21815
  {
22461
21816
  "data-testid": testId,
22462
- className: (0, import_classnames95.default)(CN9, className),
21817
+ className: (0, import_classnames90.default)(CN7, className),
22463
21818
  role: "contentinfo",
22464
21819
  "aria-label": `Price: ${formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")}`,
22465
21820
  children: formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")
@@ -22472,15 +21827,15 @@ var Price_default = Price;
22472
21827
  var Price_default2 = Price_default;
22473
21828
 
22474
21829
  // src/Atomic/UI/PriceRange/PriceRange.tsx
22475
- var import_classnames96 = __toESM(require("classnames"), 1);
22476
- var import_jsx_runtime167 = require("react/jsx-runtime");
22477
- var CN10 = "price-range";
22478
- var PriceRange = ({ from, to, mode, testId = CN10 }) => {
22479
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { "data-testid": testId, className: (0, import_classnames96.default)(CN10, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { "aria-live": "polite", children: [
21830
+ var import_classnames91 = __toESM(require("classnames"), 1);
21831
+ var import_jsx_runtime162 = require("react/jsx-runtime");
21832
+ var CN8 = "price-range";
21833
+ var PriceRange = ({ from, to, mode, testId = CN8 }) => {
21834
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("div", { "data-testid": testId, className: (0, import_classnames91.default)(CN8, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("span", { "aria-live": "polite", children: [
22480
21835
  from,
22481
21836
  " - ",
22482
21837
  to
22483
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { "aria-live": "polite", children: [
21838
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("span", { "aria-live": "polite", children: [
22484
21839
  formatToPriceWithUSD(from?.toString()),
22485
21840
  " - ",
22486
21841
  formatToPriceWithUSD(to?.toString())
@@ -22492,9 +21847,9 @@ var PriceRange_default = PriceRange;
22492
21847
  var PriceRange_default2 = PriceRange_default;
22493
21848
 
22494
21849
  // src/Atomic/UI/ProgressLine/ProgressLine.tsx
22495
- var import_classnames97 = __toESM(require("classnames"), 1);
22496
- var import_jsx_runtime168 = require("react/jsx-runtime");
22497
- var CN11 = "progress-line";
21850
+ var import_classnames92 = __toESM(require("classnames"), 1);
21851
+ var import_jsx_runtime163 = require("react/jsx-runtime");
21852
+ var CN9 = "progress-line";
22498
21853
  var ProgressLine = ({
22499
21854
  label = "",
22500
21855
  labelAlign = "left",
@@ -22513,7 +21868,7 @@ var ProgressLine = ({
22513
21868
  useVariantLabelColor = true,
22514
21869
  isShowLine = true,
22515
21870
  className,
22516
- testId = CN11
21871
+ testId = CN9
22517
21872
  }) => {
22518
21873
  const getFilledLineWidth = () => {
22519
21874
  if (value > maxValue) value = maxValue;
@@ -22521,21 +21876,21 @@ var ProgressLine = ({
22521
21876
  };
22522
21877
  const renderLabel = () => {
22523
21878
  if (!label) return null;
22524
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
21879
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
22525
21880
  };
22526
21881
  const renderProgressValue = () => {
22527
21882
  if (!renderValue) return null;
22528
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
21883
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
22529
21884
  };
22530
21885
  const renderExtremums = () => {
22531
21886
  if (!showExtremums) return null;
22532
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
22533
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
22534
- /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
21887
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
21888
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
21889
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
22535
21890
  ] });
22536
21891
  };
22537
21892
  const renderFilledLine = () => {
22538
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
21893
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
22539
21894
  "div",
22540
21895
  {
22541
21896
  className: "progress-line__wrapper__line--filled",
@@ -22549,14 +21904,14 @@ var ProgressLine = ({
22549
21904
  );
22550
21905
  };
22551
21906
  const renderLine = () => {
22552
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "progress-line__wrapper__line", children: [
21907
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { className: "progress-line__wrapper__line", children: [
22553
21908
  renderExtremums(),
22554
21909
  renderFilledLine()
22555
21910
  ] });
22556
21911
  };
22557
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: (0, import_classnames97.default)(CN11, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
21912
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { className: (0, import_classnames92.default)(CN9, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
22558
21913
  renderLabel(),
22559
- /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(
21914
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
22560
21915
  "div",
22561
21916
  {
22562
21917
  className: `progress-line__wrapper variant-${useVariantLabelColor && variant} value-${valueVerticalPosition}-${valueHorizontalPosition} ${className}`,
@@ -22573,108 +21928,229 @@ var ProgressLine_default = ProgressLine;
22573
21928
  // src/Atomic/UI/ProgressLine/index.ts
22574
21929
  var ProgressLine_default2 = ProgressLine_default;
22575
21930
 
21931
+ // src/Atomic/UI/Status/index.ts
21932
+ var Status_default2 = Status_default;
21933
+
22576
21934
  // src/Atomic/UI/Table/Table.js
22577
- var import_react115 = __toESM(require("react"), 1);
22578
- var import_classnames102 = __toESM(require("classnames"), 1);
21935
+ var import_react112 = __toESM(require("react"), 1);
21936
+ var import_classnames98 = __toESM(require("classnames"), 1);
22579
21937
 
22580
21938
  // src/Atomic/UI/Table/Partials/TdHeader.js
22581
- var import_react109 = __toESM(require("react"), 1);
22582
- var import_classnames98 = __toESM(require("classnames"), 1);
22583
- var import_jsx_runtime169 = require("react/jsx-runtime");
21939
+ var import_react105 = __toESM(require("react"), 1);
21940
+ var import_classnames93 = __toESM(require("classnames"), 1);
21941
+ var import_jsx_runtime164 = require("react/jsx-runtime");
22584
21942
  var TdHeader = ({ item, testId = "td-header" }) => {
22585
21943
  const txt = Langs_default[global.lng];
22586
21944
  switch (item.type) {
22587
21945
  case "double":
22588
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("th", { "data-testid": testId, children: /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "j46", children: [
22589
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "", children: txt.labels[item.left] || item.left }),
22590
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "", children: txt.labels[item.right] || item.right })
21946
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("th", { "data-testid": testId, children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "j46", children: [
21947
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "", children: txt.labels[item.left] || item.left }),
21948
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "", children: txt.labels[item.right] || item.right })
22591
21949
  ] }) });
22592
21950
  default:
22593
- return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("th", { "data-testid": testId, className: (0, import_classnames98.default)(item.className), children: /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: (0, import_classnames98.default)({ df: item.button }), children: [
22594
- /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
22595
- item.button && /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
21951
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("th", { "data-testid": testId, className: (0, import_classnames93.default)(item.className), children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: (0, import_classnames93.default)({ df: item.button }), children: [
21952
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
21953
+ item.button && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
22596
21954
  ] }) });
22597
21955
  }
22598
21956
  };
22599
21957
  var TdHeader_default = TdHeader;
22600
21958
 
22601
21959
  // src/Atomic/UI/Table/Partials/TdRow.js
22602
- var import_react114 = __toESM(require("react"), 1);
22603
- var import_classnames101 = __toESM(require("classnames"), 1);
21960
+ var import_react111 = __toESM(require("react"), 1);
21961
+ var import_classnames97 = __toESM(require("classnames"), 1);
22604
21962
 
22605
21963
  // src/Atomic/UI/Table/TdTypes/TdRange.js
22606
- var import_jsx_runtime170 = require("react/jsx-runtime");
21964
+ var import_jsx_runtime165 = require("react/jsx-runtime");
22607
21965
  var TdRange = ({ item }) => {
22608
21966
  if (!item) return false;
22609
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)("div", { children: [
22610
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { children: item.from }),
22611
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { children: " - " }),
22612
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { children: item.to })
21967
+ return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { children: [
21968
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { children: item.from }),
21969
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { children: " - " }),
21970
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { children: item.to })
22613
21971
  ] });
22614
21972
  };
22615
21973
  var TdRange_default = TdRange;
22616
21974
 
22617
21975
  // src/Atomic/UI/Table/Partials/TdCell.js
22618
- var import_react113 = __toESM(require("react"), 1);
21976
+ var import_react110 = __toESM(require("react"), 1);
21977
+
21978
+ // src/Atomic/UI/Accordion/AccordionItem.tsx
21979
+ var import_classnames94 = __toESM(require("classnames"), 1);
21980
+ var import_react106 = require("react");
21981
+ var Icons = __toESM(require("react-feather"), 1);
21982
+ var import_jsx_runtime166 = require("react/jsx-runtime");
21983
+ var DefaultLink = ({ to, className, children }) => /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("a", { href: to, className, children });
21984
+ var AccordionItem = ({
21985
+ item,
21986
+ onClick,
21987
+ isOpen,
21988
+ className,
21989
+ children,
21990
+ noChevron,
21991
+ linkComponent: LinkComponent = DefaultLink,
21992
+ testId = "accordion-item"
21993
+ }) => {
21994
+ const Icon2 = Icons[item.icon];
21995
+ const [maxHeight, setMaxHeight] = (0, import_react106.useState)(0);
21996
+ const ref = (0, import_react106.useRef)(null);
21997
+ const getItemsHeight = () => {
21998
+ let itemHeight = 0;
21999
+ ref.current?.childNodes.forEach((el) => {
22000
+ itemHeight += el.offsetHeight;
22001
+ });
22002
+ return itemHeight + 20;
22003
+ };
22004
+ (0, import_react106.useEffect)(() => {
22005
+ setMaxHeight(isOpen ? getItemsHeight() : 0);
22006
+ }, [isOpen]);
22007
+ const calculateStatusCount = () => {
22008
+ return item?.rows?.reduce(
22009
+ (acc, row) => {
22010
+ const result = row.cols.reduce(
22011
+ (accum, col) => ({
22012
+ active: accum.active + (col.status === "active" ? 1 : 0),
22013
+ pause: accum.pause + (col.status === "pause" ? 1 : 0)
22014
+ }),
22015
+ { active: 0, pause: 0 }
22016
+ );
22017
+ return {
22018
+ active: acc.active + result.active,
22019
+ pause: acc.pause + result.pause
22020
+ };
22021
+ },
22022
+ { active: 0, pause: 0 }
22023
+ );
22024
+ };
22025
+ return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
22026
+ "div",
22027
+ {
22028
+ "data-testid": testId,
22029
+ className: (0, import_classnames94.default)("accordion--item", className),
22030
+ role: "region",
22031
+ "aria-labelledby": `accordion-title-${item.title}`,
22032
+ children: [
22033
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
22034
+ "div",
22035
+ {
22036
+ className: (0, import_classnames94.default)("accordion--title-box", {
22037
+ "accordion--title-open": isOpen
22038
+ }),
22039
+ onClick: () => onClick(!isOpen),
22040
+ id: `accordion-title-${item.title}`,
22041
+ role: "button",
22042
+ "aria-expanded": isOpen,
22043
+ "aria-controls": `accordion-content-${item.title}`,
22044
+ tabIndex: 0,
22045
+ children: [
22046
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "j4 no-wrap", children: [
22047
+ item?.icon && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Icon2, { className: (0, import_classnames94.default)("mr5", item?.className), "aria-hidden": "true" }),
22048
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
22049
+ ] }),
22050
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "j6 accordion-title__right-box", children: [
22051
+ item.status && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "mr5", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
22052
+ Status_default2,
22053
+ {
22054
+ type: item?.status.type,
22055
+ value: item?.status.value,
22056
+ status: item?.status.status,
22057
+ active: calculateStatusCount()?.active,
22058
+ pause: calculateStatusCount()?.pause
22059
+ }
22060
+ ) }),
22061
+ !noChevron && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
22062
+ Icons.ChevronRight,
22063
+ {
22064
+ "aria-hidden": "true",
22065
+ className: (0, import_classnames94.default)("accordion--title-chevron", {
22066
+ "accordion--title-chevron-open": isOpen
22067
+ })
22068
+ }
22069
+ )
22070
+ ] })
22071
+ ]
22072
+ }
22073
+ ),
22074
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
22075
+ "div",
22076
+ {
22077
+ ref,
22078
+ style: { maxHeight },
22079
+ className: (0, import_classnames94.default)("accordion--content", {
22080
+ "accordion--content-is-open": isOpen
22081
+ }),
22082
+ id: `accordion-content-${item.title}`,
22083
+ role: "region",
22084
+ "aria-labelledby": `accordion-title-${item.title}`,
22085
+ children: item.children ? item.children.map((el) => {
22086
+ return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(LinkComponent, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
22087
+ }) : children
22088
+ }
22089
+ )
22090
+ ]
22091
+ }
22092
+ );
22093
+ };
22094
+ var AccordionItem_default = AccordionItem;
22619
22095
 
22620
22096
  // src/Atomic/UI/Table/TdTypes/TdActions.js
22621
- var import_react110 = __toESM(require("react"), 1);
22622
- var Icons5 = __toESM(require("react-feather"), 1);
22623
- var import_jsx_runtime171 = require("react/jsx-runtime");
22097
+ var import_react107 = __toESM(require("react"), 1);
22098
+ var Icons2 = __toESM(require("react-feather"), 1);
22099
+ var import_jsx_runtime167 = require("react/jsx-runtime");
22624
22100
  var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22625
22101
  if (!actions) return false;
22626
- const [state, setState] = (0, import_react110.useState)(actions);
22102
+ const [state, setState] = (0, import_react107.useState)(actions);
22627
22103
  const handleArrayChange = (value, index, prop) => {
22628
22104
  state[index][prop] = value;
22629
22105
  setState([...state]);
22630
22106
  onChange(state);
22631
22107
  };
22632
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "j6", children: actions?.map((action, index) => {
22108
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "j6", children: actions?.map((action, index) => {
22633
22109
  switch (action.type) {
22634
22110
  case "download":
22635
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22111
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22636
22112
  "div",
22637
22113
  {
22638
22114
  className: "td-actions--item td-actions--download",
22639
22115
  onClick: () => {
22640
22116
  },
22641
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.Download, {})
22117
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.Download, {})
22642
22118
  },
22643
22119
  index
22644
22120
  );
22645
22121
  case "edit":
22646
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22122
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22647
22123
  "div",
22648
22124
  {
22649
22125
  className: "td-actions--item td-actions--edit",
22650
22126
  onClick: () => {
22651
22127
  },
22652
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.Edit3, {})
22128
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.Edit3, {})
22653
22129
  },
22654
22130
  index
22655
22131
  );
22656
22132
  case "delete":
22657
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22133
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22658
22134
  "div",
22659
22135
  {
22660
22136
  className: "td-actions--item td-actions--delete",
22661
22137
  onClick: () => onActionClick("delete", rowItem),
22662
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.Trash2, {})
22138
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.Trash2, {})
22663
22139
  },
22664
22140
  index
22665
22141
  );
22666
22142
  case "undo":
22667
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22143
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22668
22144
  "div",
22669
22145
  {
22670
22146
  className: "td-actions--item td-actions--undo",
22671
22147
  onClick: () => onActionClick("undo", rowItem),
22672
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.RotateCcw, {})
22148
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.RotateCcw, {})
22673
22149
  },
22674
22150
  index
22675
22151
  );
22676
22152
  case "switcher":
22677
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "df", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22153
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "df", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22678
22154
  Switcher_default,
22679
22155
  {
22680
22156
  label: action.label || null,
@@ -22689,28 +22165,28 @@ var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22689
22165
  };
22690
22166
 
22691
22167
  // src/Atomic/UI/Table/TdTypes/TdPriority.js
22692
- var import_react111 = __toESM(require("react"), 1);
22693
- var import_classnames99 = __toESM(require("classnames"), 1);
22168
+ var import_react108 = __toESM(require("react"), 1);
22169
+ var import_classnames95 = __toESM(require("classnames"), 1);
22694
22170
  var import_react_feather31 = require("react-feather");
22695
- var import_jsx_runtime172 = require("react/jsx-runtime");
22171
+ var import_jsx_runtime168 = require("react/jsx-runtime");
22696
22172
  var TdPriority = ({ onClick, rowIndex, cardLength }) => {
22697
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "cards-table__priority", children: [
22698
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("span", { className: "mr5", children: rowIndex + 1 }),
22699
- /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("div", { className: "df", children: [
22700
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22173
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "cards-table__priority", children: [
22174
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "mr5", children: rowIndex + 1 }),
22175
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "df", children: [
22176
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
22701
22177
  import_react_feather31.ArrowDown,
22702
22178
  {
22703
22179
  onClick: () => onClick(rowIndex),
22704
- className: (0, import_classnames99.default)("table--icon", {
22180
+ className: (0, import_classnames95.default)("table--icon", {
22705
22181
  disabled: rowIndex + 1 === cardLength
22706
22182
  })
22707
22183
  }
22708
22184
  ),
22709
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22185
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
22710
22186
  import_react_feather31.ArrowUp,
22711
22187
  {
22712
22188
  onClick: () => onClick(rowIndex, true),
22713
- className: (0, import_classnames99.default)("table--icon", { disabled: rowIndex === 0 })
22189
+ className: (0, import_classnames95.default)("table--icon", { disabled: rowIndex === 0 })
22714
22190
  }
22715
22191
  )
22716
22192
  ] })
@@ -22719,17 +22195,17 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
22719
22195
  var TdPriority_default = TdPriority;
22720
22196
 
22721
22197
  // src/Atomic/UI/Table/TdTypes/TdWeight.js
22722
- var import_react112 = require("react");
22723
- var import_classnames100 = __toESM(require("classnames"), 1);
22724
- var import_jsx_runtime173 = require("react/jsx-runtime");
22198
+ var import_react109 = require("react");
22199
+ var import_classnames96 = __toESM(require("classnames"), 1);
22200
+ var import_jsx_runtime169 = require("react/jsx-runtime");
22725
22201
  var TdWeight = ({ value, percent, onChange, className }) => {
22726
- const [state, setState] = (0, import_react112.useState)(value);
22202
+ const [state, setState] = (0, import_react109.useState)(value);
22727
22203
  const {
22728
22204
  isToggled: isEdited,
22729
22205
  toggleOff: unsetIsEdited,
22730
22206
  toggleOn: setIsEdited
22731
22207
  } = useOutsideToggle(false);
22732
- (0, import_react112.useEffect)(() => {
22208
+ (0, import_react109.useEffect)(() => {
22733
22209
  setState(value);
22734
22210
  }, [value, isEdited]);
22735
22211
  const handleKeyUp = ({ keyCode, target }) => {
@@ -22739,7 +22215,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22739
22215
  unsetIsEdited();
22740
22216
  }
22741
22217
  };
22742
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_jsx_runtime173.Fragment, { children: isEdited ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
22218
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_jsx_runtime169.Fragment, { children: isEdited ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
22743
22219
  Input,
22744
22220
  {
22745
22221
  value: state,
@@ -22748,9 +22224,9 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22748
22224
  onKeyUp: handleKeyUp,
22749
22225
  autoFocus: true
22750
22226
  }
22751
- ) : /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: (0, import_classnames100.default)("td-weight", className), onClick: setIsEdited, children: [
22752
- /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { children: value }),
22753
- /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("span", { className: "ml2 color--grey-gull", children: [
22227
+ ) : /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: (0, import_classnames96.default)("td-weight", className), onClick: setIsEdited, children: [
22228
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { children: value }),
22229
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("span", { className: "ml2 color--grey-gull", children: [
22754
22230
  "(",
22755
22231
  percent,
22756
22232
  "%)"
@@ -22760,7 +22236,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22760
22236
  var TdWeight_default = TdWeight;
22761
22237
 
22762
22238
  // src/Atomic/UI/Table/Partials/TdCell.js
22763
- var import_jsx_runtime174 = require("react/jsx-runtime");
22239
+ var import_jsx_runtime170 = require("react/jsx-runtime");
22764
22240
  var TdCell = ({
22765
22241
  type,
22766
22242
  item,
@@ -22773,22 +22249,22 @@ var TdCell = ({
22773
22249
  rowItem,
22774
22250
  isDeleted
22775
22251
  }) => {
22776
- const [isAccordionOpen, setIsAccordionOpen] = (0, import_react113.useState)(item.isOpen);
22252
+ const [isAccordionOpen, setIsAccordionOpen] = (0, import_react110.useState)(item.isOpen);
22777
22253
  const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
22778
22254
  switch (type) {
22779
22255
  case "accordion":
22780
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22256
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22781
22257
  AccordionItem_default,
22782
22258
  {
22783
22259
  className: item.itemClassName,
22784
22260
  item,
22785
22261
  isOpen: isAccordionOpen,
22786
22262
  onClick: (e) => setIsAccordionOpen(e),
22787
- children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Table_default, { rows: item.rows, className: "accordion--table" })
22263
+ children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Table_default, { rows: item.rows, className: "accordion--table" })
22788
22264
  }
22789
22265
  );
22790
22266
  case "actions":
22791
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22267
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22792
22268
  TdActions,
22793
22269
  {
22794
22270
  rowItem,
@@ -22798,11 +22274,11 @@ var TdCell = ({
22798
22274
  }
22799
22275
  );
22800
22276
  case "advancedTags":
22801
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(AdvancedTags_default, { items: item });
22277
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(AdvancedTags_default, { items: item });
22802
22278
  case "link":
22803
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("a", { href: item.link, children: item.label });
22279
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("a", { href: item.link, children: item.label });
22804
22280
  case "priority":
22805
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22281
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22806
22282
  TdPriority_default,
22807
22283
  {
22808
22284
  rowIndex,
@@ -22811,7 +22287,7 @@ var TdCell = ({
22811
22287
  }
22812
22288
  );
22813
22289
  case "status":
22814
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22290
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22815
22291
  Status_default,
22816
22292
  {
22817
22293
  className: item.className,
@@ -22820,9 +22296,9 @@ var TdCell = ({
22820
22296
  }
22821
22297
  );
22822
22298
  case "tags":
22823
- return item.map((tag, index) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Tag_default, { label: tag.label }, index));
22299
+ return item.map((tag, index) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Tag_default, { label: tag.label }, index));
22824
22300
  case "weight":
22825
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22301
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22826
22302
  TdWeight_default,
22827
22303
  {
22828
22304
  value: item.value,
@@ -22831,13 +22307,13 @@ var TdCell = ({
22831
22307
  }
22832
22308
  );
22833
22309
  default:
22834
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("span", { className: item.className, children: item.value });
22310
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: item.className, children: item.value });
22835
22311
  }
22836
22312
  };
22837
22313
  var TdCell_default = TdCell;
22838
22314
 
22839
22315
  // src/Atomic/UI/Table/Partials/TdRow.js
22840
- var import_jsx_runtime175 = require("react/jsx-runtime");
22316
+ var import_jsx_runtime171 = require("react/jsx-runtime");
22841
22317
  var TdRow = ({
22842
22318
  item,
22843
22319
  onChange,
@@ -22854,27 +22330,27 @@ var TdRow = ({
22854
22330
  isDeleted,
22855
22331
  testId = "td-row"
22856
22332
  }) => {
22857
- const [isOpen, setIsOpen] = (0, import_react114.useState)(false);
22333
+ const [isOpen, setIsOpen] = (0, import_react111.useState)(false);
22858
22334
  const handleChange = handleObjectChange(item, () => onChange({ ...item }));
22859
- return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)(import_jsx_runtime175.Fragment, { children: [
22860
- /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("tr", { "data-testid": testId, children: [
22861
- type && rowSpan && /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22335
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(import_jsx_runtime171.Fragment, { children: [
22336
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("tr", { "data-testid": testId, children: [
22337
+ type && rowSpan && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22862
22338
  "span",
22863
22339
  {
22864
- className: (0, import_classnames101.default)(
22340
+ className: (0, import_classnames97.default)(
22865
22341
  type && `cards-table__score cards-table__score-${cardStatus}`
22866
22342
  ),
22867
- children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(TdRange_default, { item: range })
22343
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(TdRange_default, { item: range })
22868
22344
  }
22869
22345
  ) }),
22870
22346
  Object.entries(item).map(
22871
- ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22347
+ ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22872
22348
  "td",
22873
22349
  {
22874
- className: (0, import_classnames101.default)("cards-table__body-item", {
22350
+ className: (0, import_classnames97.default)("cards-table__body-item", {
22875
22351
  "cards-table__accordion": value.type === "accordion"
22876
22352
  }),
22877
- children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22353
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22878
22354
  TdCell_default,
22879
22355
  {
22880
22356
  onActionClick,
@@ -22894,10 +22370,10 @@ var TdRow = ({
22894
22370
  )
22895
22371
  )
22896
22372
  ] }),
22897
- type && colSpan ? /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("tr", { children: [
22898
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("td", {}),
22899
- /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)("td", { colSpan, children: [
22900
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22373
+ type && colSpan ? /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("tr", { children: [
22374
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("td", {}),
22375
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("td", { colSpan, children: [
22376
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22901
22377
  "span",
22902
22378
  {
22903
22379
  className: "cards-table__title-select-lender-btn",
@@ -22905,7 +22381,7 @@ var TdRow = ({
22905
22381
  children: "Select Lender"
22906
22382
  }
22907
22383
  ),
22908
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22384
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22909
22385
  Modal_default,
22910
22386
  {
22911
22387
  closeModal: () => setIsOpen(false),
@@ -22922,7 +22398,7 @@ var TdRow = ({
22922
22398
  var TdRow_default = TdRow;
22923
22399
 
22924
22400
  // src/Atomic/UI/Table/Table.js
22925
- var import_jsx_runtime176 = require("react/jsx-runtime");
22401
+ var import_jsx_runtime172 = require("react/jsx-runtime");
22926
22402
  var Table = ({
22927
22403
  rows,
22928
22404
  onChange,
@@ -22935,16 +22411,16 @@ var Table = ({
22935
22411
  rows[index] = value;
22936
22412
  onChange({ header: [...header], rows: [...rows] });
22937
22413
  };
22938
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
22414
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22939
22415
  "div",
22940
22416
  {
22941
22417
  "data-testid": testId,
22942
- className: (0, import_classnames102.default)("simple-table", {
22418
+ className: (0, import_classnames98.default)("simple-table", {
22943
22419
  [`simple-table--${className}`]: className
22944
22420
  }),
22945
- children: /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("table", { children: [
22946
- /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("tr", { children: header?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(TdHeader_default, { item }, item.key)) }) }),
22947
- /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
22421
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("table", { children: [
22422
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("tr", { children: header?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(TdHeader_default, { item }, item.key)) }) }),
22423
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22948
22424
  TdRow_default,
22949
22425
  {
22950
22426
  onActionClick,
@@ -22954,7 +22430,7 @@ var Table = ({
22954
22430
  onChange: (value) => handleArrayChange(value, index)
22955
22431
  },
22956
22432
  typeof row.id === "object" ? row.id.value : row.id
22957
- )) : /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
22433
+ )) : /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
22958
22434
  ] })
22959
22435
  }
22960
22436
  );
@@ -22965,8 +22441,8 @@ var Table_default = Table;
22965
22441
  var Tag_default2 = Tag_default;
22966
22442
 
22967
22443
  // src/Atomic/UI/UserBox/UserBox.tsx
22968
- var import_classnames103 = __toESM(require("classnames"), 1);
22969
- var import_jsx_runtime177 = require("react/jsx-runtime");
22444
+ var import_classnames99 = __toESM(require("classnames"), 1);
22445
+ var import_jsx_runtime173 = require("react/jsx-runtime");
22970
22446
  var UserBox = ({
22971
22447
  name = "Username",
22972
22448
  role,
@@ -22980,28 +22456,28 @@ var UserBox = ({
22980
22456
  const getNameFirstLetter = name.charAt(0).toUpperCase();
22981
22457
  const renderUser = () => {
22982
22458
  if (isModal) {
22983
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(import_jsx_runtime177.Fragment, { children: [
22984
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22985
- /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: "td-user-box__user-data", children: [
22986
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
22987
- role && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("span", { children: role })
22459
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
22460
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22461
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "td-user-box__user-data", children: [
22462
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
22463
+ role && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { children: role })
22988
22464
  ] })
22989
22465
  ] });
22990
22466
  } else {
22991
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(import_jsx_runtime177.Fragment, { children: [
22992
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22993
- /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: "td-user-box__user-data", children: [
22994
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Label_default, { label: name }),
22995
- role && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("span", { "aria-label": `User role: ${role}`, children: role })
22467
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
22468
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22469
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "td-user-box__user-data", children: [
22470
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Label_default, { label: name }),
22471
+ role && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { "aria-label": `User role: ${role}`, children: role })
22996
22472
  ] })
22997
22473
  ] });
22998
22474
  }
22999
22475
  };
23000
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
22476
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
23001
22477
  "div",
23002
22478
  {
23003
22479
  "data-testid": testId,
23004
- className: (0, import_classnames103.default)("td-user-box", className),
22480
+ className: (0, import_classnames99.default)("td-user-box", className),
23005
22481
  role: "region",
23006
22482
  "aria-label": `User box for ${name}`,
23007
22483
  children: renderUser()
@@ -23014,41 +22490,41 @@ var UserBox_default = UserBox;
23014
22490
  var UserBox_default2 = UserBox_default;
23015
22491
 
23016
22492
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
23017
- var import_classnames106 = __toESM(require("classnames"), 1);
22493
+ var import_classnames102 = __toESM(require("classnames"), 1);
23018
22494
 
23019
22495
  // src/Atomic/UI/WizardStepper/ui/icons.tsx
23020
- var import_jsx_runtime178 = require("react/jsx-runtime");
23021
- var DoneIcon = () => /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
23022
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
23023
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
23024
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
22496
+ var import_jsx_runtime174 = require("react/jsx-runtime");
22497
+ var DoneIcon = () => /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22498
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
22499
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
22500
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
23025
22501
  ] });
23026
22502
  var TodoIcon = () => {
23027
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
23028
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
23029
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
22503
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22504
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
22505
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
23030
22506
  ] });
23031
22507
  };
23032
22508
  var ActiveIcon = () => {
23033
- return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
23034
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
22509
+ return /* @__PURE__ */ (0, import_jsx_runtime174.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
22510
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
23035
22511
  "ii",
23036
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
23037
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
22512
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
22513
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
23038
22514
  ] });
23039
22515
  };
23040
22516
  var alternativeIconSet = {
23041
- defaultIcon: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(TodoIcon, {}),
23042
- doneIcon: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(DoneIcon, {}),
23043
- activeIcon: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(ActiveIcon, {})
22517
+ defaultIcon: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(TodoIcon, {}),
22518
+ doneIcon: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(DoneIcon, {}),
22519
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ActiveIcon, {})
23044
22520
  };
23045
22521
 
23046
22522
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
23047
- var import_classnames105 = __toESM(require("classnames"), 1);
22523
+ var import_classnames101 = __toESM(require("classnames"), 1);
23048
22524
 
23049
22525
  // src/Atomic/UI/WizardStepper/constructor.js
23050
- var import_react116 = __toESM(require("react"), 1);
23051
- var import_jsx_runtime179 = require("react/jsx-runtime");
22526
+ var import_react113 = __toESM(require("react"), 1);
22527
+ var import_jsx_runtime175 = require("react/jsx-runtime");
23052
22528
  var WIZARD_STEP_VARIANTS = Object.freeze({
23053
22529
  DEFAULT: "default",
23054
22530
  DONE: "done",
@@ -23056,31 +22532,31 @@ var WIZARD_STEP_VARIANTS = Object.freeze({
23056
22532
  });
23057
22533
 
23058
22534
  // src/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.tsx
23059
- var import_classnames104 = __toESM(require("classnames"), 1);
23060
- var import_jsx_runtime180 = require("react/jsx-runtime");
22535
+ var import_classnames100 = __toESM(require("classnames"), 1);
22536
+ var import_jsx_runtime176 = require("react/jsx-runtime");
23061
22537
  var DefaultPoint = () => {
23062
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("circle", { cx: "8", cy: "8", r: "4" }) });
22538
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("circle", { cx: "8", cy: "8", r: "4" }) });
23063
22539
  };
23064
22540
  var DonePoint = () => {
23065
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
22541
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
23066
22542
  };
23067
22543
  var RC39 = "state-icon";
23068
22544
  var { ACTIVE, DEFAULT, DONE } = WIZARD_STEP_VARIANTS;
23069
22545
  var StateIcon = ({ variant = DEFAULT, className }) => {
23070
22546
  const computedState = variant === ACTIVE || variant === DONE ? variant : DEFAULT;
23071
22547
  const Inner = {
23072
- [DEFAULT]: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(DefaultPoint, {}),
23073
- [ACTIVE]: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(DefaultPoint, {}),
23074
- [DONE]: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(DonePoint, {})
22548
+ [DEFAULT]: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(DefaultPoint, {}),
22549
+ [ACTIVE]: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(DefaultPoint, {}),
22550
+ [DONE]: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(DonePoint, {})
23075
22551
  };
23076
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: (0, import_classnames104.default)(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
22552
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("div", { className: (0, import_classnames100.default)(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
23077
22553
  };
23078
22554
 
23079
22555
  // src/Atomic/UI/WizardStepper/ui/StateIcon/index.ts
23080
22556
  var StateIcon_default = StateIcon;
23081
22557
 
23082
22558
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
23083
- var import_jsx_runtime181 = require("react/jsx-runtime");
22559
+ var import_jsx_runtime177 = require("react/jsx-runtime");
23084
22560
  var RC40 = "step-row";
23085
22561
  var { DEFAULT: DEFAULT2, ACTIVE: ACTIVE2, DONE: DONE2 } = WIZARD_STEP_VARIANTS;
23086
22562
  var StepRow = ({
@@ -23107,29 +22583,29 @@ var StepRow = ({
23107
22583
  })();
23108
22584
  const CorrectIcon = () => {
23109
22585
  if (!customIcons || Object?.values(customIcons)?.every((icon) => !icon)) {
23110
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(StateIcon_default, { variant: rowVariant });
22586
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(StateIcon_default, { variant: rowVariant });
23111
22587
  }
23112
22588
  return alternaviteIconFromProps || null;
23113
22589
  };
23114
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("div", { className: (0, import_classnames105.default)(RC40, `${RC40}--${rowVariant}`, className), children: [
23115
- /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: (0, import_classnames105.default)(`${RC40}__state-point`, `${RC40}__state-point--${rowVariant}`), children: /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(CorrectIcon, {}) }),
23116
- /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("div", { className: `${RC40}__content`, children: [
23117
- /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("div", { className: `${RC40}__title`, children: [
23118
- /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("div", { className: `${RC40}__title-left`, children: [
23119
- /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: (0, import_classnames105.default)(`${RC40}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
23120
- isOptional && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(Status_default, { label: "Optional", status: "draft" })
22590
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: (0, import_classnames101.default)(RC40, `${RC40}--${rowVariant}`, className), children: [
22591
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: (0, import_classnames101.default)(`${RC40}__state-point`, `${RC40}__state-point--${rowVariant}`), children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(CorrectIcon, {}) }),
22592
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: `${RC40}__content`, children: [
22593
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: `${RC40}__title`, children: [
22594
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: `${RC40}__title-left`, children: [
22595
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: (0, import_classnames101.default)(`${RC40}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
22596
+ isOptional && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Status_default, { label: "Optional", status: "draft" })
23121
22597
  ] }),
23122
- titleSlot && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: `${RC40}__title-right`, children: titleSlot })
22598
+ titleSlot && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: `${RC40}__title-right`, children: titleSlot })
23123
22599
  ] }),
23124
- description && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: `${RC40}__description`, children: description }),
23125
- contentSlot && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: `${RC40}__body`, children: contentSlot })
22600
+ description && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: `${RC40}__description`, children: description }),
22601
+ contentSlot && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: `${RC40}__body`, children: contentSlot })
23126
22602
  ] })
23127
22603
  ] }, label);
23128
22604
  };
23129
22605
  var StepRow_default = StepRow;
23130
22606
 
23131
22607
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
23132
- var import_jsx_runtime182 = require("react/jsx-runtime");
22608
+ var import_jsx_runtime178 = require("react/jsx-runtime");
23133
22609
  var StepWrapper = ({
23134
22610
  steps,
23135
22611
  customIcons,
@@ -23137,10 +22613,10 @@ var StepWrapper = ({
23137
22613
  className,
23138
22614
  testId = "step-wrapper"
23139
22615
  }) => {
23140
- if (!steps?.length) return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { "data-testid": "empty-state", children: "No steps available" });
22616
+ if (!steps?.length) return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { "data-testid": "empty-state", children: "No steps available" });
23141
22617
  const renderStepRow = (step) => {
23142
22618
  const { key, ...stepProps } = step;
23143
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22619
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23144
22620
  StepRow_default,
23145
22621
  {
23146
22622
  ...stepProps,
@@ -23151,28 +22627,28 @@ var StepWrapper = ({
23151
22627
  };
23152
22628
  switch (variant) {
23153
22629
  case "ghost":
23154
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22630
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23155
22631
  Box_default,
23156
22632
  {
23157
- className: (0, import_classnames106.default)("step-wrapper", "step-wrapper-ghost", className),
22633
+ className: (0, import_classnames102.default)("step-wrapper", "step-wrapper-ghost", className),
23158
22634
  "data-testid": testId,
23159
22635
  children: steps?.map(renderStepRow)
23160
22636
  }
23161
22637
  );
23162
22638
  case "cardActive":
23163
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22639
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23164
22640
  "div",
23165
22641
  {
23166
- className: (0, import_classnames106.default)("step-wrapper", "step-wrapper-card-active", className),
22642
+ className: (0, import_classnames102.default)("step-wrapper", "step-wrapper-card-active", className),
23167
22643
  "data-testid": testId,
23168
22644
  children: steps?.map(renderStepRow)
23169
22645
  }
23170
22646
  );
23171
22647
  default:
23172
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22648
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23173
22649
  "div",
23174
22650
  {
23175
- className: (0, import_classnames106.default)("step-wrapper", className),
22651
+ className: (0, import_classnames102.default)("step-wrapper", className),
23176
22652
  "data-testid": testId,
23177
22653
  children: steps?.map(renderStepRow)
23178
22654
  }