intelicoreact 2.0.10 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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,
@@ -1299,7 +1295,7 @@ var ApiUtils = class extends Utils_default {
1299
1295
  // ? т.к. на разных проектах могут быть разные интерпретации пропы api
1300
1296
  // ? Метод не планировался как асинхронный,
1301
1297
  // ? однако ввиду того что он может быть перегружен на экземпляре асинхронность предусматривается
1302
- async getRootPath() {
1298
+ async getRootPath(_apiProp) {
1303
1299
  return this.API_PATH;
1304
1300
  }
1305
1301
  /**
@@ -2064,7 +2060,7 @@ var RESTAPI = class extends ApiBase_default {
2064
2060
  };
2065
2061
  return {
2066
2062
  ...rest,
2067
- path: `${fullPath || await API_CONTEXT.getRootPath() + (typeof path === "string" ? path : "")}`,
2063
+ path: `${fullPath || await API_CONTEXT.getRootPath(api) + (typeof path === "string" ? path : "")}`,
2068
2064
  // ? Запускаем самовызывающуюся асинхронную ф-ю, ждем резолва промиса от нее
2069
2065
  queryParameters: await (async () => {
2070
2066
  const queryParams = query || queryParameters || "";
@@ -20788,334 +20784,6 @@ function Header({
20788
20784
  }
20789
20785
  var Header_default = Header;
20790
20786
 
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
20787
  // src/Functions/presets/inputMaskPresets.js
21120
20788
  var DATE_PRESET = {
21121
20789
  type: "inputMask",
@@ -21250,14 +20918,11 @@ var INPUT_PRESETS = {
21250
20918
  ONLY_STRING_AND_DASH
21251
20919
  };
21252
20920
 
21253
- // src/Atomic/UI/Accordion/index.ts
21254
- var Accordion_default2 = Accordion_default;
21255
-
21256
20921
  // src/Atomic/UI/AccordionTable/AccordionTable.js
21257
- var import_react99 = __toESM(require("react"), 1);
21258
- var import_classnames83 = __toESM(require("classnames"), 1);
20922
+ var import_react96 = __toESM(require("react"), 1);
20923
+ var import_classnames80 = __toESM(require("classnames"), 1);
21259
20924
  var import_react_feather26 = require("react-feather");
21260
- var import_jsx_runtime153 = require("react/jsx-runtime");
20925
+ var import_jsx_runtime150 = require("react/jsx-runtime");
21261
20926
  var AccordionTable = ({
21262
20927
  className,
21263
20928
  header,
@@ -21268,8 +20933,8 @@ var AccordionTable = ({
21268
20933
  },
21269
20934
  sortParams
21270
20935
  }) => {
21271
- const [accordions, setAccordions] = (0, import_react99.useState)(items);
21272
- const sortedColClassName = (item) => (0, import_classnames83.default)(
20936
+ const [accordions, setAccordions] = (0, import_react96.useState)(items);
20937
+ const sortedColClassName = (item) => (0, import_classnames80.default)(
21273
20938
  "accordion-table__header-item",
21274
20939
  item.className,
21275
20940
  {
@@ -21312,16 +20977,16 @@ var AccordionTable = ({
21312
20977
  };
21313
20978
  const renderTd = (tr) => {
21314
20979
  return Object.entries(tr)?.map(([key, value]) => {
21315
- return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
20980
+ return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21316
20981
  "div",
21317
20982
  {
21318
20983
  style: { flexBasis: `${getHeaderItem(key)?.width}%` },
21319
- className: (0, import_classnames83.default)(
20984
+ className: (0, import_classnames80.default)(
21320
20985
  "accordion-table__td",
21321
20986
  `accordion-table__td--${key}`,
21322
20987
  getHeaderItem(key)?.className
21323
20988
  ),
21324
- children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
20989
+ children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21325
20990
  "p",
21326
20991
  {
21327
20992
  className: "accordion-table__statistics-td-value",
@@ -21336,10 +21001,10 @@ var AccordionTable = ({
21336
21001
  };
21337
21002
  const renderTr = (rows) => {
21338
21003
  return rows?.map((row, index) => {
21339
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
21004
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
21340
21005
  "div",
21341
21006
  {
21342
- className: (0, import_classnames83.default)(
21007
+ className: (0, import_classnames80.default)(
21343
21008
  "accordion-table__tr",
21344
21009
  {
21345
21010
  "accordion-table__tr-with-promo": row.promoDetails || row.cols?.promoDetails
@@ -21347,13 +21012,13 @@ var AccordionTable = ({
21347
21012
  row.className
21348
21013
  ),
21349
21014
  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" }),
21015
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "df w100", children: renderTd(row.cols || row) }),
21016
+ 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: [
21017
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_react_feather26.Tag, { className: "tr-promo-icon", width: 16, height: 16 }),
21018
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "tr-promo-label", children: "PROMOTION" }),
21354
21019
  row.promoDetails || row.cols?.promoDetails
21355
21020
  ] }) }) : 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
21021
+ 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
21022
  ]
21358
21023
  },
21359
21024
  index
@@ -21361,34 +21026,34 @@ var AccordionTable = ({
21361
21026
  });
21362
21027
  };
21363
21028
  const defineAccordionTitle = (row) => {
21364
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)(
21029
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
21365
21030
  "div",
21366
21031
  {
21367
21032
  onClick: (e) => handle.accordionChange(row.key, e),
21368
21033
  className: "accordion-table__accordion-label-box",
21369
21034
  children: [
21370
- /* @__PURE__ */ (0, import_jsx_runtime153.jsxs)("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
21371
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21035
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
21036
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21372
21037
  import_react_feather26.ChevronDown,
21373
21038
  {
21374
21039
  width: 8,
21375
21040
  height: 4,
21376
- className: (0, import_classnames83.default)("accordion-label-box__icon", {
21041
+ className: (0, import_classnames80.default)("accordion-label-box__icon", {
21377
21042
  "accordion-label-box__icon--open": row.isOpen
21378
21043
  })
21379
21044
  }
21380
21045
  ),
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)(
21046
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("span", { className: "accordion-label-box__label", children: row.label }),
21047
+ 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]) => {
21048
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21384
21049
  "div",
21385
21050
  {
21386
21051
  style: { width: `${getHeaderItem(key)?.width}%` },
21387
- className: (0, import_classnames83.default)(
21052
+ className: (0, import_classnames80.default)(
21388
21053
  "accordion-table__statistics-td",
21389
21054
  getHeaderItem(key)?.className
21390
21055
  ),
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)(
21056
+ 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
21057
  "p",
21393
21058
  {
21394
21059
  className: "accordion-table__statistics-td-value",
@@ -21406,33 +21071,33 @@ var AccordionTable = ({
21406
21071
  }
21407
21072
  );
21408
21073
  };
21409
- (0, import_react99.useEffect)(() => {
21074
+ (0, import_react96.useEffect)(() => {
21410
21075
  setAccordions(items);
21411
21076
  }, [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)(
21077
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { className: (0, import_classnames80.default)("accordion-table", className), children: [
21078
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__header", children: header?.map((item) => {
21079
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
21415
21080
  "div",
21416
21081
  {
21417
21082
  style: { flexBasis: `${item.width}%` },
21418
21083
  className: sortedColClassName(item),
21419
21084
  onClick: () => !item.noSort && handle.setSort(item.key),
21420
21085
  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 })),
21086
+ 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
21087
  item.label
21423
21088
  ]
21424
21089
  },
21425
21090
  item.key
21426
21091
  );
21427
21092
  }) }),
21428
- /* @__PURE__ */ (0, import_jsx_runtime153.jsx)("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
21429
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21093
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
21094
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
21430
21095
  MonoAccordion_default,
21431
21096
  {
21432
21097
  testId,
21433
21098
  onClick: (e) => handle.accordionChange(accordion.key, e),
21434
21099
  isOpen: accordion.isOpen,
21435
- className: (0, import_classnames83.default)(
21100
+ className: (0, import_classnames80.default)(
21436
21101
  "accordion-table__body-accordion",
21437
21102
  {
21438
21103
  "accordion-table__body-accordion--closed": !accordion.isOpen
@@ -21450,14 +21115,14 @@ var AccordionTable = ({
21450
21115
  var AccordionTable_default = AccordionTable;
21451
21116
 
21452
21117
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21453
- var import_classnames85 = __toESM(require("classnames"), 1);
21454
- var import_react101 = require("react");
21118
+ var import_classnames82 = __toESM(require("classnames"), 1);
21119
+ var import_react98 = require("react");
21455
21120
 
21456
21121
  // src/Atomic/UI/AdvancedTag/AdvTag.tsx
21457
- var import_classnames84 = __toESM(require("classnames"), 1);
21458
- var import_react100 = require("react");
21122
+ var import_classnames81 = __toESM(require("classnames"), 1);
21123
+ var import_react97 = require("react");
21459
21124
  var import_react_feather27 = require("react-feather");
21460
- var import_jsx_runtime154 = require("react/jsx-runtime");
21125
+ var import_jsx_runtime151 = require("react/jsx-runtime");
21461
21126
  var AdvTag = ({
21462
21127
  item,
21463
21128
  className,
@@ -21481,19 +21146,19 @@ var AdvTag = ({
21481
21146
  },
21482
21147
  type
21483
21148
  } = 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", {
21149
+ const [isOpen, setIsOpen] = (0, import_react97.useState)(false);
21150
+ const [clickedWarning, setClickedWarning] = (0, import_react97.useState)("");
21151
+ const hintRef = (0, import_react97.useRef)(null);
21152
+ const activeNumberClass = (0, import_classnames81.default)("strong", {
21488
21153
  "color--pause": active === 0,
21489
21154
  "color--green-haze": active > 0
21490
21155
  });
21491
- const pauseNumberClass = (0, import_classnames84.default)("strong", {
21156
+ const pauseNumberClass = (0, import_classnames81.default)("strong", {
21492
21157
  "color--pause": pause === 0,
21493
21158
  "color--light-red": pause > 0
21494
21159
  });
21495
21160
  const isEmptyEntitys = isEntityAndCounter && (!entityAndCounter?.counter || entityAndCounter.counter === 0) || !isEntityAndCounter && (warnLeft || !merchants);
21496
- const advancedTagClass = (0, import_classnames84.default)("advanced-tags", {
21161
+ const advancedTagClass = (0, import_classnames81.default)("advanced-tags", {
21497
21162
  "advanced-tags--error": isEmptyEntitys
21498
21163
  }, className);
21499
21164
  const onWarningClick = (warn) => {
@@ -21505,22 +21170,22 @@ var AdvTag = ({
21505
21170
  setIsOpen(false);
21506
21171
  }
21507
21172
  };
21508
- (0, import_react100.useEffect)(() => {
21173
+ (0, import_react97.useEffect)(() => {
21509
21174
  document.addEventListener("click", handleClickOutside, true);
21510
21175
  return () => {
21511
21176
  document.removeEventListener("click", handleClickOutside, true);
21512
21177
  };
21513
21178
  }, []);
21514
21179
  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)(
21180
+ const renderClassicTag = () => /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21181
+ warnLeft && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21517
21182
  "div",
21518
21183
  {
21519
21184
  "data-testid": `${testId}-left`,
21520
21185
  className: "advanced-tags--warning-icon-wrapper",
21521
21186
  onMouseEnter: () => onWarningClick("warnLeft"),
21522
21187
  onMouseLeave: () => setIsOpen(false),
21523
- children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21188
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21524
21189
  import_react_feather27.AlertTriangle,
21525
21190
  {
21526
21191
  width: 16,
@@ -21530,23 +21195,23 @@ var AdvTag = ({
21530
21195
  )
21531
21196
  }
21532
21197
  ),
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 })
21198
+ labelLeft && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "mr5", children: labelLeft }),
21199
+ labelRight && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { children: labelRight }),
21200
+ type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "ml5 mr5", children: "|" }),
21201
+ type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { className: "df", children: [
21202
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: activeNumberClass, children: active }),
21203
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "strong color--pause", children: "/" }),
21204
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: pauseNumberClass, children: pause })
21540
21205
  ] }),
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)(
21206
+ type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "ml5 mr5", children: "|" }),
21207
+ merchants ? /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21543
21208
  "div",
21544
21209
  {
21545
21210
  "data-testid": `${testId}-right`,
21546
21211
  className: "advanced-tags--warning-icon-wrapper",
21547
21212
  onMouseEnter: () => onWarningClick("warnRight"),
21548
21213
  onMouseLeave: () => setIsOpen(false),
21549
- children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21214
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21550
21215
  import_react_feather27.AlertTriangle,
21551
21216
  {
21552
21217
  width: 16,
@@ -21556,20 +21221,20 @@ var AdvTag = ({
21556
21221
  )
21557
21222
  }
21558
21223
  ),
21559
- isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21224
+ isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21560
21225
  "span",
21561
21226
  {
21562
- className: (0, import_classnames84.default)(
21227
+ className: (0, import_classnames81.default)(
21563
21228
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21564
21229
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21565
21230
  ),
21566
21231
  children: warnLeftMsg
21567
21232
  }
21568
21233
  ),
21569
- isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21234
+ isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21570
21235
  "span",
21571
21236
  {
21572
- className: (0, import_classnames84.default)(
21237
+ className: (0, import_classnames81.default)(
21573
21238
  "advanced-tags__warn-text",
21574
21239
  "advanced-tags__warn-text--warnRight",
21575
21240
  { "advanced-tags__warn-text--warnRight--to-top": toTop }
@@ -21580,15 +21245,15 @@ var AdvTag = ({
21580
21245
  ] });
21581
21246
  const renderWithEntityAndCounterTag = () => {
21582
21247
  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)(
21248
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsxs)("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
21249
+ isNullcounter && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21585
21250
  "div",
21586
21251
  {
21587
21252
  "data-testid": `${testId}-left`,
21588
21253
  className: "advanced-tags--warning-icon-wrapper",
21589
21254
  onMouseEnter: () => onWarningClick("warnLeft"),
21590
21255
  onMouseLeave: () => setIsOpen(false),
21591
- children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21256
+ children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21592
21257
  import_react_feather27.AlertTriangle,
21593
21258
  {
21594
21259
  width: 16,
@@ -21598,21 +21263,21 @@ var AdvTag = ({
21598
21263
  )
21599
21264
  }
21600
21265
  ),
21601
- isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21266
+ isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21602
21267
  "span",
21603
21268
  {
21604
- className: (0, import_classnames84.default)(
21269
+ className: (0, import_classnames81.default)(
21605
21270
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
21606
21271
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
21607
21272
  ),
21608
21273
  children: entityAndCounter.nullCounterMessage
21609
21274
  }
21610
21275
  ),
21611
- entityAndCounter?.title && /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("span", { className: "mr5", children: entityAndCounter.title }),
21612
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21276
+ entityAndCounter?.title && /* @__PURE__ */ (0, import_jsx_runtime151.jsx)("span", { className: "mr5", children: entityAndCounter.title }),
21277
+ /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
21613
21278
  "div",
21614
21279
  {
21615
- className: (0, import_classnames84.default)("advanced-tags__counter", {
21280
+ className: (0, import_classnames81.default)("advanced-tags__counter", {
21616
21281
  "advanced-tags__counter--null": isNullcounter,
21617
21282
  "advanced-tags__counter--bold": !isNullcounter
21618
21283
  }),
@@ -21626,7 +21291,7 @@ var AdvTag = ({
21626
21291
  var AdvTag_default = AdvTag;
21627
21292
 
21628
21293
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
21629
- var import_jsx_runtime155 = require("react/jsx-runtime");
21294
+ var import_jsx_runtime152 = require("react/jsx-runtime");
21630
21295
  var AdvancedTags = ({
21631
21296
  items,
21632
21297
  noItemsTagLabel,
@@ -21634,26 +21299,26 @@ var AdvancedTags = ({
21634
21299
  testId = "advanced-tag-test",
21635
21300
  toTop = true
21636
21301
  }) => {
21637
- const [showedItems, setShowedItems] = (0, import_react101.useState)(items.slice(0, 2));
21638
- const [showMore, setShowMore] = (0, import_react101.useState)(true);
21302
+ const [showedItems, setShowedItems] = (0, import_react98.useState)(items.slice(0, 2));
21303
+ const [showMore, setShowMore] = (0, import_react98.useState)(true);
21639
21304
  const onShowMoreClick = () => {
21640
21305
  setShowedItems(showMore ? items : items.slice(0, 2));
21641
21306
  setShowMore(!showMore);
21642
21307
  };
21643
21308
  if ((!items || !items.length) && noItemsTagLabel) {
21644
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21309
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21645
21310
  Tag_default,
21646
21311
  {
21647
21312
  label: noItemsTagLabel?.toString(),
21648
- className: (0, import_classnames85.default)(className, "tag-warn")
21313
+ className: (0, import_classnames82.default)(className, "tag-warn")
21649
21314
  }
21650
21315
  );
21651
21316
  }
21652
21317
  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: [
21318
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)("div", { "data-testid": testId, className: (0, import_classnames82.default)(className, "j4 wrap"), children: [
21654
21319
  showedItems.map((item, index) => {
21655
21320
  if (!item) return null;
21656
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21321
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21657
21322
  AdvTag_default,
21658
21323
  {
21659
21324
  toTop,
@@ -21663,7 +21328,7 @@ var AdvancedTags = ({
21663
21328
  index
21664
21329
  );
21665
21330
  }),
21666
- items.length >= 3 && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21331
+ items.length >= 3 && /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
21667
21332
  "span",
21668
21333
  {
21669
21334
  "data-testid": `${testId}-showMore`,
@@ -21683,8 +21348,8 @@ var AdvancedTag_default = AdvancedTags_default;
21683
21348
  var Alert_default2 = Alert_default;
21684
21349
 
21685
21350
  // src/Atomic/UI/Box/Box.tsx
21686
- var import_classnames86 = __toESM(require("classnames"), 1);
21687
- var import_jsx_runtime156 = require("react/jsx-runtime");
21351
+ var import_classnames83 = __toESM(require("classnames"), 1);
21352
+ var import_jsx_runtime153 = require("react/jsx-runtime");
21688
21353
  var directionVariants = {
21689
21354
  column: "column",
21690
21355
  row: "row"
@@ -21708,12 +21373,12 @@ function Box({
21708
21373
  const styles = {
21709
21374
  flexDirection: direction
21710
21375
  };
21711
- return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
21376
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
21712
21377
  "div",
21713
21378
  {
21714
21379
  style: styles,
21715
21380
  "data-testid": "box",
21716
- className: (0, import_classnames86.default)(
21381
+ className: (0, import_classnames83.default)(
21717
21382
  "box",
21718
21383
  `box--padding-${paddingVariant}`,
21719
21384
  `box--radii-${radiiVariant}`,
@@ -21730,80 +21395,10 @@ function Box({
21730
21395
  }
21731
21396
  var Box_default = Box;
21732
21397
 
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
21398
  // 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");
21399
+ var import_react99 = __toESM(require("react"), 1);
21400
+ var import_classnames84 = __toESM(require("classnames"), 1);
21401
+ var import_jsx_runtime154 = require("react/jsx-runtime");
21807
21402
  var CircleProgressBar = ({
21808
21403
  amount,
21809
21404
  totalAmount,
@@ -21824,17 +21419,17 @@ var CircleProgressBar = ({
21824
21419
  finish: "#f06d8d",
21825
21420
  meter: "#ffcad6"
21826
21421
  };
21827
- const [strokeDashoffset, setStrokeDashoffset] = (0, import_react102.useState)(isReverseType ? String(0) : circumference);
21828
- (0, import_react102.useEffect)(() => {
21422
+ const [strokeDashoffset, setStrokeDashoffset] = (0, import_react99.useState)(isReverseType ? String(0) : circumference);
21423
+ (0, import_react99.useEffect)(() => {
21829
21424
  setStrokeDashoffset(circumference - circumference * amountProgress / 100);
21830
21425
  }, [amountProgress]);
21831
- return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21426
+ return /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21832
21427
  "div",
21833
21428
  {
21834
21429
  "data-testid": testId,
21835
- className: (0, import_classnames88.default)("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21430
+ className: (0, import_classnames84.default)("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
21836
21431
  children: [
21837
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21432
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21838
21433
  "svg",
21839
21434
  {
21840
21435
  className: "limit-progress-bar__progress",
@@ -21842,7 +21437,7 @@ var CircleProgressBar = ({
21842
21437
  height: "124",
21843
21438
  viewBox: "0 0 124 124",
21844
21439
  children: [
21845
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("defs", { children: isReverseType ? /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21440
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("defs", { children: isReverseType ? /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21846
21441
  "linearGradient",
21847
21442
  {
21848
21443
  id: "limit-progress-bar-linear-gradient-reverse",
@@ -21851,14 +21446,14 @@ var CircleProgressBar = ({
21851
21446
  x2: "0",
21852
21447
  y2: "0",
21853
21448
  children: [
21854
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21449
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21855
21450
  "stop",
21856
21451
  {
21857
21452
  offset: "0",
21858
21453
  stopColor: colors.finish || defaultColors.finish
21859
21454
  }
21860
21455
  ),
21861
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21456
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21862
21457
  "stop",
21863
21458
  {
21864
21459
  offset: "1",
@@ -21867,7 +21462,7 @@ var CircleProgressBar = ({
21867
21462
  )
21868
21463
  ]
21869
21464
  }
21870
- ) : /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
21465
+ ) : /* @__PURE__ */ (0, import_jsx_runtime154.jsxs)(
21871
21466
  "linearGradient",
21872
21467
  {
21873
21468
  id: "limit-progress-bar-linear-gradient",
@@ -21876,14 +21471,14 @@ var CircleProgressBar = ({
21876
21471
  x2: "0",
21877
21472
  y2: "0",
21878
21473
  children: [
21879
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21474
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21880
21475
  "stop",
21881
21476
  {
21882
21477
  offset: "0",
21883
21478
  stopColor: colors.start || defaultColors.start
21884
21479
  }
21885
21480
  ),
21886
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21481
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21887
21482
  "stop",
21888
21483
  {
21889
21484
  offset: "1",
@@ -21893,7 +21488,7 @@ var CircleProgressBar = ({
21893
21488
  ]
21894
21489
  }
21895
21490
  ) }),
21896
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21491
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21897
21492
  "circle",
21898
21493
  {
21899
21494
  className: "limit-progress-bar__meter",
@@ -21904,7 +21499,7 @@ var CircleProgressBar = ({
21904
21499
  strokeWidth: String(innerLineStrokeWidth)
21905
21500
  }
21906
21501
  ),
21907
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
21502
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
21908
21503
  "circle",
21909
21504
  {
21910
21505
  className: "limit-progress-bar__value",
@@ -21922,7 +21517,7 @@ var CircleProgressBar = ({
21922
21517
  ]
21923
21518
  }
21924
21519
  ),
21925
- /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("div", { className: "limit-progress-bar__content", children })
21520
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)("div", { className: "limit-progress-bar__content", children })
21926
21521
  ]
21927
21522
  }
21928
21523
  );
@@ -21930,10 +21525,10 @@ var CircleProgressBar = ({
21930
21525
  var CircleProgressBar_default = CircleProgressBar;
21931
21526
 
21932
21527
  // src/Atomic/UI/DateTime/DateTime.tsx
21933
- var import_classnames89 = __toESM(require("classnames"), 1);
21528
+ var import_classnames85 = __toESM(require("classnames"), 1);
21934
21529
  var import_moment_timezone9 = __toESM(require("moment-timezone"), 1);
21935
- var import_react103 = require("react");
21936
- var import_jsx_runtime159 = require("react/jsx-runtime");
21530
+ var import_react100 = require("react");
21531
+ var import_jsx_runtime155 = require("react/jsx-runtime");
21937
21532
  var RC36 = "date-time";
21938
21533
  var DEFAULT_DATE_FORMAT = "DD.MM.YYYY";
21939
21534
  var DEFAULT_TIME_FORMAT = "HH:mm:ss";
@@ -21949,23 +21544,23 @@ var DateTime = ({
21949
21544
  }) => {
21950
21545
  const dateFormat = inputDateFormat ?? DEFAULT_DATE_FORMAT;
21951
21546
  const timeFormat = inputTimeFormat ?? DEFAULT_TIME_FORMAT;
21952
- const date = (0, import_react103.useMemo)(() => {
21547
+ const date = (0, import_react100.useMemo)(() => {
21953
21548
  return (valueFormat ? (0, import_moment_timezone9.default)(value, valueFormat) : (0, import_moment_timezone9.default)(value)).format(
21954
21549
  dateFormat
21955
21550
  );
21956
21551
  }, [value, valueFormat, dateFormat]);
21957
- const time = (0, import_react103.useMemo)(() => {
21552
+ const time = (0, import_react100.useMemo)(() => {
21958
21553
  return (valueFormat ? (0, import_moment_timezone9.default)(value, valueFormat) : (0, import_moment_timezone9.default)(value)).format(
21959
21554
  timeFormat
21960
21555
  );
21961
21556
  }, [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)(
21557
+ return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)("div", { "data-testid": testId, className: (0, import_classnames85.default)(RC36, className), children: [
21558
+ !isNoDate && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)("span", { "data-testid": `${testId}-date`, className: `${RC36}__date`, children: date }),
21559
+ !isNoTime && /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
21965
21560
  "span",
21966
21561
  {
21967
21562
  "data-testid": `${testId}-time`,
21968
- className: (0, import_classnames89.default)(`${RC36}__time`, {
21563
+ className: (0, import_classnames85.default)(`${RC36}__time`, {
21969
21564
  [`${RC36}_color--pause`]: !isNoDate
21970
21565
  }),
21971
21566
  children: time
@@ -21976,32 +21571,32 @@ var DateTime = ({
21976
21571
  var DateTime_default = DateTime;
21977
21572
 
21978
21573
  // src/Atomic/UI/DebugContainer/DebugContainer.tsx
21979
- var import_classnames90 = __toESM(require("classnames"), 1);
21980
- var import_react104 = require("react");
21574
+ var import_classnames86 = __toESM(require("classnames"), 1);
21575
+ var import_react101 = require("react");
21981
21576
  var import_react_feather28 = require("react-feather");
21982
- var import_jsx_runtime160 = require("react/jsx-runtime");
21577
+ var import_jsx_runtime156 = require("react/jsx-runtime");
21983
21578
  var defaultData = {};
21984
21579
  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: [
21580
+ const [isVisible, setIsVisible] = (0, import_react101.useState)(true);
21581
+ const renderData = () => /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("pre", { children: [
21987
21582
  "{\n",
21988
21583
  Object.keys(data).map((key) => ` ${key}: ${String(data[key])},
21989
21584
  `),
21990
21585
  "}"
21991
21586
  ] });
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 })
21587
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { className: (0, import_classnames86.default)("debug-container", className), "data-testid": "debug-container", children: [
21588
+ isVisible && /* @__PURE__ */ (0, import_jsx_runtime156.jsxs)("div", { className: "debug-container__body", children: [
21589
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("h5", { children: "Debug:" }),
21590
+ data && Object.keys(data).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
21591
+ children && /* @__PURE__ */ (0, import_jsx_runtime156.jsx)("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
21997
21592
  ] }),
21998
- /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
21593
+ /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
21999
21594
  "div",
22000
21595
  {
22001
21596
  className: "debug-container__toggler",
22002
21597
  onClick: () => setIsVisible((v) => !v),
22003
21598
  "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, {})
21599
+ children: isVisible ? /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_feather28.ChevronUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(import_react_feather28.ChevronDown, {})
22005
21600
  }
22006
21601
  )
22007
21602
  ] });
@@ -22009,24 +21604,24 @@ var DebugContainer = ({ data = defaultData, children, className }) => {
22009
21604
  var DebugContainer_default = DebugContainer;
22010
21605
 
22011
21606
  // src/Atomic/UI/DebugContainer/useDebugContainer.tsx
22012
- var import_react105 = require("react");
22013
- var import_jsx_runtime161 = require("react/jsx-runtime");
21607
+ var import_react102 = require("react");
21608
+ var import_jsx_runtime157 = require("react/jsx-runtime");
22014
21609
  function useDebugContainer() {
22015
- const [data, setData] = (0, import_react105.useState)({});
21610
+ const [data, setData] = (0, import_react102.useState)({});
22016
21611
  return {
22017
21612
  debugData: data,
22018
21613
  setDebugData: setData,
22019
- renderDebugContainer: /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(DebugContainer_default, { data })
21614
+ renderDebugContainer: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(DebugContainer_default, { data })
22020
21615
  };
22021
21616
  }
22022
21617
  var useDebugContainer_default = useDebugContainer;
22023
21618
 
22024
21619
  // src/Atomic/UI/DoubleString/DoubleString.tsx
22025
- var import_classnames91 = __toESM(require("classnames"), 1);
21620
+ var import_classnames87 = __toESM(require("classnames"), 1);
22026
21621
  var import_moment7 = __toESM(require("moment"), 1);
22027
- var import_react106 = require("react");
21622
+ var import_react103 = require("react");
22028
21623
  var import_react_feather29 = require("react-feather");
22029
- var import_jsx_runtime162 = require("react/jsx-runtime");
21624
+ var import_jsx_runtime158 = require("react/jsx-runtime");
22030
21625
  var RC37 = "double-string";
22031
21626
  var DoubleString = ({
22032
21627
  value,
@@ -22046,33 +21641,33 @@ var DoubleString = ({
22046
21641
  isUseHideMode = false,
22047
21642
  isShowHiddenValueAvailable = false
22048
21643
  }) => {
22049
- const [isValueHidden, setIsValueHidden] = (0, import_react106.useState)(isUseHideMode);
21644
+ const [isValueHidden, setIsValueHidden] = (0, import_react103.useState)(isUseHideMode);
22050
21645
  const computedValue = isFormatValueToDate ? (0, import_moment7.default)(value, parseFormat).format(displayFormat) : value;
22051
- const valueRef = (0, import_react106.useRef)(null);
21646
+ const valueRef = (0, import_react103.useRef)(null);
22052
21647
  ;
22053
- const descriptionRef = (0, import_react106.useRef)(null);
22054
- const [elemsWidth, setElemsWidth] = (0, import_react106.useState)({
21648
+ const descriptionRef = (0, import_react103.useRef)(null);
21649
+ const [elemsWidth, setElemsWidth] = (0, import_react103.useState)({
22055
21650
  valueWidth: 0,
22056
21651
  descriptionWidth: 0
22057
21652
  });
22058
- const [isOnClickON, setIsOnClickON] = (0, import_react106.useState)(false);
21653
+ const [isOnClickON, setIsOnClickON] = (0, import_react103.useState)(false);
22059
21654
  const handle = {
22060
21655
  click: () => {
22061
21656
  setIsOnClickON(!isOnClickON);
22062
21657
  }
22063
21658
  };
22064
- (0, import_react106.useEffect)(() => {
21659
+ (0, import_react103.useEffect)(() => {
22065
21660
  const valueWidth = valueRef?.current?.clientWidth ?? 0;
22066
21661
  const descriptionWidth = descriptionRef?.current?.clientWidth ?? 0;
22067
21662
  setElemsWidth({ valueWidth, descriptionWidth });
22068
21663
  }, [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)(
21664
+ return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)("div", { "data-testid": testId, className: (0, import_classnames87.default)(RC37, className), children: [
21665
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
22071
21666
  "p",
22072
21667
  {
22073
21668
  onClick: () => handle.click(),
22074
21669
  ref: valueRef,
22075
- className: (0, import_classnames91.default)(
21670
+ className: (0, import_classnames87.default)(
22076
21671
  `${RC37}__value`,
22077
21672
  {
22078
21673
  "double-string--value-opened": isOnClickON && isUseOnClick
@@ -22080,27 +21675,27 @@ var DoubleString = ({
22080
21675
  { pointer: isUseOnClick }
22081
21676
  ),
22082
21677
  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 })
21678
+ children: !revert ? /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_jsx_runtime158.Fragment, { children: [
21679
+ isUseHideMode ? /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
21680
+ 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) }),
21681
+ 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) }),
21682
+ valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: (0, import_classnames87.default)(`${RC37}__value-postfix`), children: valuePostfix })
22088
21683
  ] }) : description
22089
21684
  }
22090
21685
  ),
22091
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
21686
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
22092
21687
  "p",
22093
21688
  {
22094
21689
  ref: descriptionRef,
22095
- className: (0, import_classnames91.default)(`${RC37}__description`),
21690
+ className: (0, import_classnames87.default)(`${RC37}__description`),
22096
21691
  title: !noTitle && elemsWidth.descriptionWidth > 99 ? computedValue : "",
22097
- children: !revert ? description : /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
21692
+ children: !revert ? description : /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_jsx_runtime158.Fragment, { children: [
22098
21693
  computedValue,
22099
- valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("span", { className: (0, import_classnames91.default)(`${RC37}__value-postfix`), children: valuePostfix })
21694
+ valuePostfix && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("span", { className: (0, import_classnames87.default)(`${RC37}__value-postfix`), children: valuePostfix })
22100
21695
  ] })
22101
21696
  }
22102
21697
  ),
22103
- subDescription && /* @__PURE__ */ (0, import_jsx_runtime162.jsx)("p", { className: (0, import_classnames91.default)(`${RC37}__sub-description`), children: subDescription })
21698
+ subDescription && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)("p", { className: (0, import_classnames87.default)(`${RC37}__sub-description`), children: subDescription })
22104
21699
  ] });
22105
21700
  };
22106
21701
  var DoubleString_default = DoubleString;
@@ -22112,9 +21707,9 @@ var DoubleString_default2 = DoubleString_default;
22112
21707
  var Hint_default2 = Hint_default;
22113
21708
 
22114
21709
  // 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");
21710
+ var import_classnames88 = __toESM(require("classnames"), 1);
21711
+ var import_react104 = require("react");
21712
+ var import_jsx_runtime159 = require("react/jsx-runtime");
22118
21713
  var ModalHOC = ({
22119
21714
  id,
22120
21715
  zIndex = 100,
@@ -22132,19 +21727,19 @@ var ModalHOC = ({
22132
21727
  isClosingByEsc: isClosingByEscOuter = true,
22133
21728
  closeOnEsc
22134
21729
  }) => {
22135
- const modalRef = (0, import_react107.useRef)(null);
22136
- const closeModalRef = (0, import_react107.useRef)(closeModal);
21730
+ const modalRef = (0, import_react104.useRef)(null);
21731
+ const closeModalRef = (0, import_react104.useRef)(closeModal);
22137
21732
  const isClosingByEsc = closeOnEsc === false ? false : isClosingByEscOuter;
22138
21733
  const withEventManagementStructure = getWithEventManagementStructure(id, withEventManagement);
22139
- const handleClose = (0, import_react107.useMemo)(() => () => closeModalRef.current?.(), []);
21734
+ const handleClose = (0, import_react104.useMemo)(() => () => closeModalRef.current?.(), []);
22140
21735
  useHandleKeyPress_default({
22141
21736
  escCallback: isClosingByEsc && typeof closeModal === "function" ? handleClose : void 0,
22142
21737
  withEventManagementStructure
22143
21738
  });
22144
- (0, import_react107.useLayoutEffect)(() => {
21739
+ (0, import_react104.useLayoutEffect)(() => {
22145
21740
  closeModalRef.current = closeBtnDisable ? void 0 : closeModal;
22146
21741
  }, [closeModal, closeBtnDisable]);
22147
- (0, import_react107.useEffect)(() => {
21742
+ (0, import_react104.useEffect)(() => {
22148
21743
  const onKeyPress = getOnKeyPress({ id, onClose: handleClose });
22149
21744
  if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
22150
21745
  if (isClosingByEsc) document.addEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
@@ -22156,14 +21751,14 @@ var ModalHOC = ({
22156
21751
  };
22157
21752
  }, []);
22158
21753
  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)(
21754
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
21755
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
21756
+ /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
22162
21757
  "div",
22163
21758
  {
22164
21759
  ref: modalRef,
22165
21760
  style: { width: size },
22166
- className: (0, import_classnames92.default)(className, "modal"),
21761
+ className: (0, import_classnames88.default)(className, "modal"),
22167
21762
  role: "dialog",
22168
21763
  "aria-modal": "true",
22169
21764
  "aria-labelledby": testId,
@@ -22181,264 +21776,19 @@ var Modal_default2 = Modal_default;
22181
21776
  // src/Atomic/UI/MonoAccordion/index.ts
22182
21777
  var MonoAccordion_default2 = MonoAccordion_default;
22183
21778
 
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
21779
  // src/Atomic/UI/PageTitle/PageTitle.tsx
22430
- var import_classnames94 = __toESM(require("classnames"), 1);
21780
+ var import_classnames89 = __toESM(require("classnames"), 1);
22431
21781
  var import_react_feather30 = require("react-feather");
22432
- var import_jsx_runtime165 = require("react/jsx-runtime");
21782
+ var import_jsx_runtime160 = require("react/jsx-runtime");
22433
21783
  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 })
21784
+ 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: [
21785
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("div", { className: `${RC38}__wrap`, children: [
21786
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("h1", { className: `${RC38}__title`, children: title }),
21787
+ 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: [
21788
+ /* @__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" }) }) }),
21789
+ pages.map(({ name, path }, index) => /* @__PURE__ */ (0, import_jsx_runtime160.jsxs)("li", { children: [
21790
+ /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { className: `${RC38}__delimiter`, "aria-hidden": "true", children: "/" }),
21791
+ 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
21792
  ] }, path))
22443
21793
  ] }) })
22444
21794
  ] }),
@@ -22450,16 +21800,16 @@ var PageTitle_default = PageTitle;
22450
21800
  var PageTitle_default2 = PageTitle_default;
22451
21801
 
22452
21802
  // 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 }) => {
21803
+ var import_classnames90 = __toESM(require("classnames"), 1);
21804
+ var import_jsx_runtime161 = require("react/jsx-runtime");
21805
+ var CN7 = "price";
21806
+ var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN7 }) => {
22457
21807
  if (value === void 0 || value === null) return null;
22458
- return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
21808
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
22459
21809
  "div",
22460
21810
  {
22461
21811
  "data-testid": testId,
22462
- className: (0, import_classnames95.default)(CN9, className),
21812
+ className: (0, import_classnames90.default)(CN7, className),
22463
21813
  role: "contentinfo",
22464
21814
  "aria-label": `Price: ${formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")}`,
22465
21815
  children: formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")
@@ -22472,15 +21822,15 @@ var Price_default = Price;
22472
21822
  var Price_default2 = Price_default;
22473
21823
 
22474
21824
  // 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: [
21825
+ var import_classnames91 = __toESM(require("classnames"), 1);
21826
+ var import_jsx_runtime162 = require("react/jsx-runtime");
21827
+ var CN8 = "price-range";
21828
+ var PriceRange = ({ from, to, mode, testId = CN8 }) => {
21829
+ 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
21830
  from,
22481
21831
  " - ",
22482
21832
  to
22483
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)("span", { "aria-live": "polite", children: [
21833
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)("span", { "aria-live": "polite", children: [
22484
21834
  formatToPriceWithUSD(from?.toString()),
22485
21835
  " - ",
22486
21836
  formatToPriceWithUSD(to?.toString())
@@ -22492,9 +21842,9 @@ var PriceRange_default = PriceRange;
22492
21842
  var PriceRange_default2 = PriceRange_default;
22493
21843
 
22494
21844
  // 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";
21845
+ var import_classnames92 = __toESM(require("classnames"), 1);
21846
+ var import_jsx_runtime163 = require("react/jsx-runtime");
21847
+ var CN9 = "progress-line";
22498
21848
  var ProgressLine = ({
22499
21849
  label = "",
22500
21850
  labelAlign = "left",
@@ -22513,7 +21863,7 @@ var ProgressLine = ({
22513
21863
  useVariantLabelColor = true,
22514
21864
  isShowLine = true,
22515
21865
  className,
22516
- testId = CN11
21866
+ testId = CN9
22517
21867
  }) => {
22518
21868
  const getFilledLineWidth = () => {
22519
21869
  if (value > maxValue) value = maxValue;
@@ -22521,21 +21871,21 @@ var ProgressLine = ({
22521
21871
  };
22522
21872
  const renderLabel = () => {
22523
21873
  if (!label) return null;
22524
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
21874
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
22525
21875
  };
22526
21876
  const renderProgressValue = () => {
22527
21877
  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}` });
21878
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
22529
21879
  };
22530
21880
  const renderExtremums = () => {
22531
21881
  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}` })
21882
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
21883
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
21884
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
22535
21885
  ] });
22536
21886
  };
22537
21887
  const renderFilledLine = () => {
22538
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
21888
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
22539
21889
  "div",
22540
21890
  {
22541
21891
  className: "progress-line__wrapper__line--filled",
@@ -22549,14 +21899,14 @@ var ProgressLine = ({
22549
21899
  );
22550
21900
  };
22551
21901
  const renderLine = () => {
22552
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "progress-line__wrapper__line", children: [
21902
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)("div", { className: "progress-line__wrapper__line", children: [
22553
21903
  renderExtremums(),
22554
21904
  renderFilledLine()
22555
21905
  ] });
22556
21906
  };
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: [
21907
+ 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
21908
  renderLabel(),
22559
- /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(
21909
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
22560
21910
  "div",
22561
21911
  {
22562
21912
  className: `progress-line__wrapper variant-${useVariantLabelColor && variant} value-${valueVerticalPosition}-${valueHorizontalPosition} ${className}`,
@@ -22573,108 +21923,229 @@ var ProgressLine_default = ProgressLine;
22573
21923
  // src/Atomic/UI/ProgressLine/index.ts
22574
21924
  var ProgressLine_default2 = ProgressLine_default;
22575
21925
 
21926
+ // src/Atomic/UI/Status/index.ts
21927
+ var Status_default2 = Status_default;
21928
+
22576
21929
  // src/Atomic/UI/Table/Table.js
22577
- var import_react115 = __toESM(require("react"), 1);
22578
- var import_classnames102 = __toESM(require("classnames"), 1);
21930
+ var import_react112 = __toESM(require("react"), 1);
21931
+ var import_classnames98 = __toESM(require("classnames"), 1);
22579
21932
 
22580
21933
  // 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");
21934
+ var import_react105 = __toESM(require("react"), 1);
21935
+ var import_classnames93 = __toESM(require("classnames"), 1);
21936
+ var import_jsx_runtime164 = require("react/jsx-runtime");
22584
21937
  var TdHeader = ({ item, testId = "td-header" }) => {
22585
21938
  const txt = Langs_default[global.lng];
22586
21939
  switch (item.type) {
22587
21940
  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 })
21941
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("th", { "data-testid": testId, children: /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)("div", { className: "j46", children: [
21942
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "", children: txt.labels[item.left] || item.left }),
21943
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "", children: txt.labels[item.right] || item.right })
22591
21944
  ] }) });
22592
21945
  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 })
21946
+ 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: [
21947
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
21948
+ item.button && /* @__PURE__ */ (0, import_jsx_runtime164.jsx)("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
22596
21949
  ] }) });
22597
21950
  }
22598
21951
  };
22599
21952
  var TdHeader_default = TdHeader;
22600
21953
 
22601
21954
  // src/Atomic/UI/Table/Partials/TdRow.js
22602
- var import_react114 = __toESM(require("react"), 1);
22603
- var import_classnames101 = __toESM(require("classnames"), 1);
21955
+ var import_react111 = __toESM(require("react"), 1);
21956
+ var import_classnames97 = __toESM(require("classnames"), 1);
22604
21957
 
22605
21958
  // src/Atomic/UI/Table/TdTypes/TdRange.js
22606
- var import_jsx_runtime170 = require("react/jsx-runtime");
21959
+ var import_jsx_runtime165 = require("react/jsx-runtime");
22607
21960
  var TdRange = ({ item }) => {
22608
21961
  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 })
21962
+ return /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { children: [
21963
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { children: item.from }),
21964
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { children: " - " }),
21965
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("span", { children: item.to })
22613
21966
  ] });
22614
21967
  };
22615
21968
  var TdRange_default = TdRange;
22616
21969
 
22617
21970
  // src/Atomic/UI/Table/Partials/TdCell.js
22618
- var import_react113 = __toESM(require("react"), 1);
21971
+ var import_react110 = __toESM(require("react"), 1);
21972
+
21973
+ // src/Atomic/UI/Accordion/AccordionItem.tsx
21974
+ var import_classnames94 = __toESM(require("classnames"), 1);
21975
+ var import_react106 = require("react");
21976
+ var Icons = __toESM(require("react-feather"), 1);
21977
+ var import_jsx_runtime166 = require("react/jsx-runtime");
21978
+ var DefaultLink = ({ to, className, children }) => /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("a", { href: to, className, children });
21979
+ var AccordionItem = ({
21980
+ item,
21981
+ onClick,
21982
+ isOpen,
21983
+ className,
21984
+ children,
21985
+ noChevron,
21986
+ linkComponent: LinkComponent = DefaultLink,
21987
+ testId = "accordion-item"
21988
+ }) => {
21989
+ const Icon2 = Icons[item.icon];
21990
+ const [maxHeight, setMaxHeight] = (0, import_react106.useState)(0);
21991
+ const ref = (0, import_react106.useRef)(null);
21992
+ const getItemsHeight = () => {
21993
+ let itemHeight = 0;
21994
+ ref.current?.childNodes.forEach((el) => {
21995
+ itemHeight += el.offsetHeight;
21996
+ });
21997
+ return itemHeight + 20;
21998
+ };
21999
+ (0, import_react106.useEffect)(() => {
22000
+ setMaxHeight(isOpen ? getItemsHeight() : 0);
22001
+ }, [isOpen]);
22002
+ const calculateStatusCount = () => {
22003
+ return item?.rows?.reduce(
22004
+ (acc, row) => {
22005
+ const result = row.cols.reduce(
22006
+ (accum, col) => ({
22007
+ active: accum.active + (col.status === "active" ? 1 : 0),
22008
+ pause: accum.pause + (col.status === "pause" ? 1 : 0)
22009
+ }),
22010
+ { active: 0, pause: 0 }
22011
+ );
22012
+ return {
22013
+ active: acc.active + result.active,
22014
+ pause: acc.pause + result.pause
22015
+ };
22016
+ },
22017
+ { active: 0, pause: 0 }
22018
+ );
22019
+ };
22020
+ return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
22021
+ "div",
22022
+ {
22023
+ "data-testid": testId,
22024
+ className: (0, import_classnames94.default)("accordion--item", className),
22025
+ role: "region",
22026
+ "aria-labelledby": `accordion-title-${item.title}`,
22027
+ children: [
22028
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
22029
+ "div",
22030
+ {
22031
+ className: (0, import_classnames94.default)("accordion--title-box", {
22032
+ "accordion--title-open": isOpen
22033
+ }),
22034
+ onClick: () => onClick(!isOpen),
22035
+ id: `accordion-title-${item.title}`,
22036
+ role: "button",
22037
+ "aria-expanded": isOpen,
22038
+ "aria-controls": `accordion-content-${item.title}`,
22039
+ tabIndex: 0,
22040
+ children: [
22041
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "j4 no-wrap", children: [
22042
+ item?.icon && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Icon2, { className: (0, import_classnames94.default)("mr5", item?.className), "aria-hidden": "true" }),
22043
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
22044
+ ] }),
22045
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)("div", { className: "j6 accordion-title__right-box", children: [
22046
+ item.status && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("div", { className: "mr5", children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
22047
+ Status_default2,
22048
+ {
22049
+ type: item?.status.type,
22050
+ value: item?.status.value,
22051
+ status: item?.status.status,
22052
+ active: calculateStatusCount()?.active,
22053
+ pause: calculateStatusCount()?.pause
22054
+ }
22055
+ ) }),
22056
+ !noChevron && /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
22057
+ Icons.ChevronRight,
22058
+ {
22059
+ "aria-hidden": "true",
22060
+ className: (0, import_classnames94.default)("accordion--title-chevron", {
22061
+ "accordion--title-chevron-open": isOpen
22062
+ })
22063
+ }
22064
+ )
22065
+ ] })
22066
+ ]
22067
+ }
22068
+ ),
22069
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
22070
+ "div",
22071
+ {
22072
+ ref,
22073
+ style: { maxHeight },
22074
+ className: (0, import_classnames94.default)("accordion--content", {
22075
+ "accordion--content-is-open": isOpen
22076
+ }),
22077
+ id: `accordion-content-${item.title}`,
22078
+ role: "region",
22079
+ "aria-labelledby": `accordion-title-${item.title}`,
22080
+ children: item.children ? item.children.map((el) => {
22081
+ 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);
22082
+ }) : children
22083
+ }
22084
+ )
22085
+ ]
22086
+ }
22087
+ );
22088
+ };
22089
+ var AccordionItem_default = AccordionItem;
22619
22090
 
22620
22091
  // 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");
22092
+ var import_react107 = __toESM(require("react"), 1);
22093
+ var Icons2 = __toESM(require("react-feather"), 1);
22094
+ var import_jsx_runtime167 = require("react/jsx-runtime");
22624
22095
  var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22625
22096
  if (!actions) return false;
22626
- const [state, setState] = (0, import_react110.useState)(actions);
22097
+ const [state, setState] = (0, import_react107.useState)(actions);
22627
22098
  const handleArrayChange = (value, index, prop) => {
22628
22099
  state[index][prop] = value;
22629
22100
  setState([...state]);
22630
22101
  onChange(state);
22631
22102
  };
22632
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "j6", children: actions?.map((action, index) => {
22103
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "j6", children: actions?.map((action, index) => {
22633
22104
  switch (action.type) {
22634
22105
  case "download":
22635
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22106
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22636
22107
  "div",
22637
22108
  {
22638
22109
  className: "td-actions--item td-actions--download",
22639
22110
  onClick: () => {
22640
22111
  },
22641
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.Download, {})
22112
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.Download, {})
22642
22113
  },
22643
22114
  index
22644
22115
  );
22645
22116
  case "edit":
22646
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22117
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22647
22118
  "div",
22648
22119
  {
22649
22120
  className: "td-actions--item td-actions--edit",
22650
22121
  onClick: () => {
22651
22122
  },
22652
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.Edit3, {})
22123
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.Edit3, {})
22653
22124
  },
22654
22125
  index
22655
22126
  );
22656
22127
  case "delete":
22657
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22128
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22658
22129
  "div",
22659
22130
  {
22660
22131
  className: "td-actions--item td-actions--delete",
22661
22132
  onClick: () => onActionClick("delete", rowItem),
22662
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.Trash2, {})
22133
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.Trash2, {})
22663
22134
  },
22664
22135
  index
22665
22136
  );
22666
22137
  case "undo":
22667
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22138
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22668
22139
  "div",
22669
22140
  {
22670
22141
  className: "td-actions--item td-actions--undo",
22671
22142
  onClick: () => onActionClick("undo", rowItem),
22672
- children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Icons5.RotateCcw, {})
22143
+ children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Icons2.RotateCcw, {})
22673
22144
  },
22674
22145
  index
22675
22146
  );
22676
22147
  case "switcher":
22677
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { className: "df", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22148
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("div", { className: "df", children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
22678
22149
  Switcher_default,
22679
22150
  {
22680
22151
  label: action.label || null,
@@ -22689,28 +22160,28 @@ var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
22689
22160
  };
22690
22161
 
22691
22162
  // src/Atomic/UI/Table/TdTypes/TdPriority.js
22692
- var import_react111 = __toESM(require("react"), 1);
22693
- var import_classnames99 = __toESM(require("classnames"), 1);
22163
+ var import_react108 = __toESM(require("react"), 1);
22164
+ var import_classnames95 = __toESM(require("classnames"), 1);
22694
22165
  var import_react_feather31 = require("react-feather");
22695
- var import_jsx_runtime172 = require("react/jsx-runtime");
22166
+ var import_jsx_runtime168 = require("react/jsx-runtime");
22696
22167
  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)(
22168
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "cards-table__priority", children: [
22169
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: "mr5", children: rowIndex + 1 }),
22170
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: "df", children: [
22171
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
22701
22172
  import_react_feather31.ArrowDown,
22702
22173
  {
22703
22174
  onClick: () => onClick(rowIndex),
22704
- className: (0, import_classnames99.default)("table--icon", {
22175
+ className: (0, import_classnames95.default)("table--icon", {
22705
22176
  disabled: rowIndex + 1 === cardLength
22706
22177
  })
22707
22178
  }
22708
22179
  ),
22709
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22180
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
22710
22181
  import_react_feather31.ArrowUp,
22711
22182
  {
22712
22183
  onClick: () => onClick(rowIndex, true),
22713
- className: (0, import_classnames99.default)("table--icon", { disabled: rowIndex === 0 })
22184
+ className: (0, import_classnames95.default)("table--icon", { disabled: rowIndex === 0 })
22714
22185
  }
22715
22186
  )
22716
22187
  ] })
@@ -22719,17 +22190,17 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
22719
22190
  var TdPriority_default = TdPriority;
22720
22191
 
22721
22192
  // 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");
22193
+ var import_react109 = require("react");
22194
+ var import_classnames96 = __toESM(require("classnames"), 1);
22195
+ var import_jsx_runtime169 = require("react/jsx-runtime");
22725
22196
  var TdWeight = ({ value, percent, onChange, className }) => {
22726
- const [state, setState] = (0, import_react112.useState)(value);
22197
+ const [state, setState] = (0, import_react109.useState)(value);
22727
22198
  const {
22728
22199
  isToggled: isEdited,
22729
22200
  toggleOff: unsetIsEdited,
22730
22201
  toggleOn: setIsEdited
22731
22202
  } = useOutsideToggle(false);
22732
- (0, import_react112.useEffect)(() => {
22203
+ (0, import_react109.useEffect)(() => {
22733
22204
  setState(value);
22734
22205
  }, [value, isEdited]);
22735
22206
  const handleKeyUp = ({ keyCode, target }) => {
@@ -22739,7 +22210,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22739
22210
  unsetIsEdited();
22740
22211
  }
22741
22212
  };
22742
- return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(import_jsx_runtime173.Fragment, { children: isEdited ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
22213
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_jsx_runtime169.Fragment, { children: isEdited ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
22743
22214
  Input,
22744
22215
  {
22745
22216
  value: state,
@@ -22748,9 +22219,9 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22748
22219
  onKeyUp: handleKeyUp,
22749
22220
  autoFocus: true
22750
22221
  }
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: [
22222
+ ) : /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: (0, import_classnames96.default)("td-weight", className), onClick: setIsEdited, children: [
22223
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { children: value }),
22224
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("span", { className: "ml2 color--grey-gull", children: [
22754
22225
  "(",
22755
22226
  percent,
22756
22227
  "%)"
@@ -22760,7 +22231,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
22760
22231
  var TdWeight_default = TdWeight;
22761
22232
 
22762
22233
  // src/Atomic/UI/Table/Partials/TdCell.js
22763
- var import_jsx_runtime174 = require("react/jsx-runtime");
22234
+ var import_jsx_runtime170 = require("react/jsx-runtime");
22764
22235
  var TdCell = ({
22765
22236
  type,
22766
22237
  item,
@@ -22773,22 +22244,22 @@ var TdCell = ({
22773
22244
  rowItem,
22774
22245
  isDeleted
22775
22246
  }) => {
22776
- const [isAccordionOpen, setIsAccordionOpen] = (0, import_react113.useState)(item.isOpen);
22247
+ const [isAccordionOpen, setIsAccordionOpen] = (0, import_react110.useState)(item.isOpen);
22777
22248
  const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
22778
22249
  switch (type) {
22779
22250
  case "accordion":
22780
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22251
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22781
22252
  AccordionItem_default,
22782
22253
  {
22783
22254
  className: item.itemClassName,
22784
22255
  item,
22785
22256
  isOpen: isAccordionOpen,
22786
22257
  onClick: (e) => setIsAccordionOpen(e),
22787
- children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Table_default, { rows: item.rows, className: "accordion--table" })
22258
+ children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Table_default, { rows: item.rows, className: "accordion--table" })
22788
22259
  }
22789
22260
  );
22790
22261
  case "actions":
22791
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22262
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22792
22263
  TdActions,
22793
22264
  {
22794
22265
  rowItem,
@@ -22798,11 +22269,11 @@ var TdCell = ({
22798
22269
  }
22799
22270
  );
22800
22271
  case "advancedTags":
22801
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(AdvancedTags_default, { items: item });
22272
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(AdvancedTags_default, { items: item });
22802
22273
  case "link":
22803
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("a", { href: item.link, children: item.label });
22274
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("a", { href: item.link, children: item.label });
22804
22275
  case "priority":
22805
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22276
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22806
22277
  TdPriority_default,
22807
22278
  {
22808
22279
  rowIndex,
@@ -22811,7 +22282,7 @@ var TdCell = ({
22811
22282
  }
22812
22283
  );
22813
22284
  case "status":
22814
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22285
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22815
22286
  Status_default,
22816
22287
  {
22817
22288
  className: item.className,
@@ -22820,9 +22291,9 @@ var TdCell = ({
22820
22291
  }
22821
22292
  );
22822
22293
  case "tags":
22823
- return item.map((tag, index) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(Tag_default, { label: tag.label }, index));
22294
+ return item.map((tag, index) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Tag_default, { label: tag.label }, index));
22824
22295
  case "weight":
22825
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(
22296
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
22826
22297
  TdWeight_default,
22827
22298
  {
22828
22299
  value: item.value,
@@ -22831,13 +22302,13 @@ var TdCell = ({
22831
22302
  }
22832
22303
  );
22833
22304
  default:
22834
- return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("span", { className: item.className, children: item.value });
22305
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("span", { className: item.className, children: item.value });
22835
22306
  }
22836
22307
  };
22837
22308
  var TdCell_default = TdCell;
22838
22309
 
22839
22310
  // src/Atomic/UI/Table/Partials/TdRow.js
22840
- var import_jsx_runtime175 = require("react/jsx-runtime");
22311
+ var import_jsx_runtime171 = require("react/jsx-runtime");
22841
22312
  var TdRow = ({
22842
22313
  item,
22843
22314
  onChange,
@@ -22854,27 +22325,27 @@ var TdRow = ({
22854
22325
  isDeleted,
22855
22326
  testId = "td-row"
22856
22327
  }) => {
22857
- const [isOpen, setIsOpen] = (0, import_react114.useState)(false);
22328
+ const [isOpen, setIsOpen] = (0, import_react111.useState)(false);
22858
22329
  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)(
22330
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(import_jsx_runtime171.Fragment, { children: [
22331
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("tr", { "data-testid": testId, children: [
22332
+ type && rowSpan && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22862
22333
  "span",
22863
22334
  {
22864
- className: (0, import_classnames101.default)(
22335
+ className: (0, import_classnames97.default)(
22865
22336
  type && `cards-table__score cards-table__score-${cardStatus}`
22866
22337
  ),
22867
- children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(TdRange_default, { item: range })
22338
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(TdRange_default, { item: range })
22868
22339
  }
22869
22340
  ) }),
22870
22341
  Object.entries(item).map(
22871
- ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22342
+ ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22872
22343
  "td",
22873
22344
  {
22874
- className: (0, import_classnames101.default)("cards-table__body-item", {
22345
+ className: (0, import_classnames97.default)("cards-table__body-item", {
22875
22346
  "cards-table__accordion": value.type === "accordion"
22876
22347
  }),
22877
- children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22348
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22878
22349
  TdCell_default,
22879
22350
  {
22880
22351
  onActionClick,
@@ -22894,10 +22365,10 @@ var TdRow = ({
22894
22365
  )
22895
22366
  )
22896
22367
  ] }),
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)(
22368
+ type && colSpan ? /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("tr", { children: [
22369
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("td", {}),
22370
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("td", { colSpan, children: [
22371
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22901
22372
  "span",
22902
22373
  {
22903
22374
  className: "cards-table__title-select-lender-btn",
@@ -22905,7 +22376,7 @@ var TdRow = ({
22905
22376
  children: "Select Lender"
22906
22377
  }
22907
22378
  ),
22908
- /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
22379
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
22909
22380
  Modal_default,
22910
22381
  {
22911
22382
  closeModal: () => setIsOpen(false),
@@ -22922,7 +22393,7 @@ var TdRow = ({
22922
22393
  var TdRow_default = TdRow;
22923
22394
 
22924
22395
  // src/Atomic/UI/Table/Table.js
22925
- var import_jsx_runtime176 = require("react/jsx-runtime");
22396
+ var import_jsx_runtime172 = require("react/jsx-runtime");
22926
22397
  var Table = ({
22927
22398
  rows,
22928
22399
  onChange,
@@ -22935,16 +22406,16 @@ var Table = ({
22935
22406
  rows[index] = value;
22936
22407
  onChange({ header: [...header], rows: [...rows] });
22937
22408
  };
22938
- return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(
22409
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22939
22410
  "div",
22940
22411
  {
22941
22412
  "data-testid": testId,
22942
- className: (0, import_classnames102.default)("simple-table", {
22413
+ className: (0, import_classnames98.default)("simple-table", {
22943
22414
  [`simple-table--${className}`]: className
22944
22415
  }),
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)(
22416
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("table", { children: [
22417
+ /* @__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)) }) }),
22418
+ /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
22948
22419
  TdRow_default,
22949
22420
  {
22950
22421
  onActionClick,
@@ -22954,7 +22425,7 @@ var Table = ({
22954
22425
  onChange: (value) => handleArrayChange(value, index)
22955
22426
  },
22956
22427
  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" }) }) })
22428
+ )) : /* @__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
22429
  ] })
22959
22430
  }
22960
22431
  );
@@ -22965,8 +22436,8 @@ var Table_default = Table;
22965
22436
  var Tag_default2 = Tag_default;
22966
22437
 
22967
22438
  // src/Atomic/UI/UserBox/UserBox.tsx
22968
- var import_classnames103 = __toESM(require("classnames"), 1);
22969
- var import_jsx_runtime177 = require("react/jsx-runtime");
22439
+ var import_classnames99 = __toESM(require("classnames"), 1);
22440
+ var import_jsx_runtime173 = require("react/jsx-runtime");
22970
22441
  var UserBox = ({
22971
22442
  name = "Username",
22972
22443
  role,
@@ -22980,28 +22451,28 @@ var UserBox = ({
22980
22451
  const getNameFirstLetter = name.charAt(0).toUpperCase();
22981
22452
  const renderUser = () => {
22982
22453
  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 })
22454
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
22455
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22456
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "td-user-box__user-data", children: [
22457
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
22458
+ role && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { children: role })
22988
22459
  ] })
22989
22460
  ] });
22990
22461
  } 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 })
22462
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(import_jsx_runtime173.Fragment, { children: [
22463
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
22464
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)("div", { className: "td-user-box__user-data", children: [
22465
+ /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Label_default, { label: name }),
22466
+ role && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { "aria-label": `User role: ${role}`, children: role })
22996
22467
  ] })
22997
22468
  ] });
22998
22469
  }
22999
22470
  };
23000
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
22471
+ return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(
23001
22472
  "div",
23002
22473
  {
23003
22474
  "data-testid": testId,
23004
- className: (0, import_classnames103.default)("td-user-box", className),
22475
+ className: (0, import_classnames99.default)("td-user-box", className),
23005
22476
  role: "region",
23006
22477
  "aria-label": `User box for ${name}`,
23007
22478
  children: renderUser()
@@ -23014,41 +22485,41 @@ var UserBox_default = UserBox;
23014
22485
  var UserBox_default2 = UserBox_default;
23015
22486
 
23016
22487
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
23017
- var import_classnames106 = __toESM(require("classnames"), 1);
22488
+ var import_classnames102 = __toESM(require("classnames"), 1);
23018
22489
 
23019
22490
  // 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" }) })
22491
+ var import_jsx_runtime174 = require("react/jsx-runtime");
22492
+ 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: [
22493
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
22494
+ /* @__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" }) }),
22495
+ /* @__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
22496
  ] });
23026
22497
  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)" }) }) })
22498
+ 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: [
22499
+ /* @__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" }) }),
22500
+ /* @__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
22501
  ] });
23031
22502
  };
23032
22503
  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" }),
22504
+ 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: [
22505
+ /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
23035
22506
  "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" }) })
22507
+ /* @__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" }) }),
22508
+ /* @__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
22509
  ] });
23039
22510
  };
23040
22511
  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, {})
22512
+ defaultIcon: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(TodoIcon, {}),
22513
+ doneIcon: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(DoneIcon, {}),
22514
+ activeIcon: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ActiveIcon, {})
23044
22515
  };
23045
22516
 
23046
22517
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
23047
- var import_classnames105 = __toESM(require("classnames"), 1);
22518
+ var import_classnames101 = __toESM(require("classnames"), 1);
23048
22519
 
23049
22520
  // src/Atomic/UI/WizardStepper/constructor.js
23050
- var import_react116 = __toESM(require("react"), 1);
23051
- var import_jsx_runtime179 = require("react/jsx-runtime");
22521
+ var import_react113 = __toESM(require("react"), 1);
22522
+ var import_jsx_runtime175 = require("react/jsx-runtime");
23052
22523
  var WIZARD_STEP_VARIANTS = Object.freeze({
23053
22524
  DEFAULT: "default",
23054
22525
  DONE: "done",
@@ -23056,31 +22527,31 @@ var WIZARD_STEP_VARIANTS = Object.freeze({
23056
22527
  });
23057
22528
 
23058
22529
  // 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");
22530
+ var import_classnames100 = __toESM(require("classnames"), 1);
22531
+ var import_jsx_runtime176 = require("react/jsx-runtime");
23061
22532
  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" }) });
22533
+ 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
22534
  };
23064
22535
  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" }) });
22536
+ 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
22537
  };
23067
22538
  var RC39 = "state-icon";
23068
22539
  var { ACTIVE, DEFAULT, DONE } = WIZARD_STEP_VARIANTS;
23069
22540
  var StateIcon = ({ variant = DEFAULT, className }) => {
23070
22541
  const computedState = variant === ACTIVE || variant === DONE ? variant : DEFAULT;
23071
22542
  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, {})
22543
+ [DEFAULT]: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(DefaultPoint, {}),
22544
+ [ACTIVE]: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(DefaultPoint, {}),
22545
+ [DONE]: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)(DonePoint, {})
23075
22546
  };
23076
- return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: (0, import_classnames104.default)(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
22547
+ return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("div", { className: (0, import_classnames100.default)(RC39, `${RC39}--${computedState}`, className), children: Inner[computedState] });
23077
22548
  };
23078
22549
 
23079
22550
  // src/Atomic/UI/WizardStepper/ui/StateIcon/index.ts
23080
22551
  var StateIcon_default = StateIcon;
23081
22552
 
23082
22553
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
23083
- var import_jsx_runtime181 = require("react/jsx-runtime");
22554
+ var import_jsx_runtime177 = require("react/jsx-runtime");
23084
22555
  var RC40 = "step-row";
23085
22556
  var { DEFAULT: DEFAULT2, ACTIVE: ACTIVE2, DONE: DONE2 } = WIZARD_STEP_VARIANTS;
23086
22557
  var StepRow = ({
@@ -23107,29 +22578,29 @@ var StepRow = ({
23107
22578
  })();
23108
22579
  const CorrectIcon = () => {
23109
22580
  if (!customIcons || Object?.values(customIcons)?.every((icon) => !icon)) {
23110
- return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(StateIcon_default, { variant: rowVariant });
22581
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(StateIcon_default, { variant: rowVariant });
23111
22582
  }
23112
22583
  return alternaviteIconFromProps || null;
23113
22584
  };
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" })
22585
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: (0, import_classnames101.default)(RC40, `${RC40}--${rowVariant}`, className), children: [
22586
+ /* @__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, {}) }),
22587
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: `${RC40}__content`, children: [
22588
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: `${RC40}__title`, children: [
22589
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)("div", { className: `${RC40}__title-left`, children: [
22590
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: (0, import_classnames101.default)(`${RC40}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
22591
+ isOptional && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Status_default, { label: "Optional", status: "draft" })
23121
22592
  ] }),
23122
- titleSlot && /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("div", { className: `${RC40}__title-right`, children: titleSlot })
22593
+ titleSlot && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: `${RC40}__title-right`, children: titleSlot })
23123
22594
  ] }),
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 })
22595
+ description && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: `${RC40}__description`, children: description }),
22596
+ contentSlot && /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className: `${RC40}__body`, children: contentSlot })
23126
22597
  ] })
23127
22598
  ] }, label);
23128
22599
  };
23129
22600
  var StepRow_default = StepRow;
23130
22601
 
23131
22602
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
23132
- var import_jsx_runtime182 = require("react/jsx-runtime");
22603
+ var import_jsx_runtime178 = require("react/jsx-runtime");
23133
22604
  var StepWrapper = ({
23134
22605
  steps,
23135
22606
  customIcons,
@@ -23137,10 +22608,10 @@ var StepWrapper = ({
23137
22608
  className,
23138
22609
  testId = "step-wrapper"
23139
22610
  }) => {
23140
- if (!steps?.length) return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { "data-testid": "empty-state", children: "No steps available" });
22611
+ if (!steps?.length) return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { "data-testid": "empty-state", children: "No steps available" });
23141
22612
  const renderStepRow = (step) => {
23142
22613
  const { key, ...stepProps } = step;
23143
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22614
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23144
22615
  StepRow_default,
23145
22616
  {
23146
22617
  ...stepProps,
@@ -23151,28 +22622,28 @@ var StepWrapper = ({
23151
22622
  };
23152
22623
  switch (variant) {
23153
22624
  case "ghost":
23154
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22625
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23155
22626
  Box_default,
23156
22627
  {
23157
- className: (0, import_classnames106.default)("step-wrapper", "step-wrapper-ghost", className),
22628
+ className: (0, import_classnames102.default)("step-wrapper", "step-wrapper-ghost", className),
23158
22629
  "data-testid": testId,
23159
22630
  children: steps?.map(renderStepRow)
23160
22631
  }
23161
22632
  );
23162
22633
  case "cardActive":
23163
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22634
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23164
22635
  "div",
23165
22636
  {
23166
- className: (0, import_classnames106.default)("step-wrapper", "step-wrapper-card-active", className),
22637
+ className: (0, import_classnames102.default)("step-wrapper", "step-wrapper-card-active", className),
23167
22638
  "data-testid": testId,
23168
22639
  children: steps?.map(renderStepRow)
23169
22640
  }
23170
22641
  );
23171
22642
  default:
23172
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
22643
+ return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
23173
22644
  "div",
23174
22645
  {
23175
- className: (0, import_classnames106.default)("step-wrapper", className),
22646
+ className: (0, import_classnames102.default)("step-wrapper", className),
23176
22647
  "data-testid": testId,
23177
22648
  children: steps?.map(renderStepRow)
23178
22649
  }