intelicoreact 2.0.11 → 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/ui.js CHANGED
@@ -1,339 +1,12 @@
1
- // src/Atomic/UI/Accordion/Accordion.tsx
2
- import cn3 from "classnames";
3
- import { useState as useState2 } from "react";
4
- import * as Icons2 from "react-feather";
5
- import { NavLink as NavLink2 } from "react-router-dom";
6
-
7
- // src/Functions/utils.js
8
- import { useEffect } from "react";
9
- import moment from "moment-timezone";
10
-
11
- // src/Constants/index.constants.js
12
- var DEFAULT_COLORS = [
13
- "#D9C1FF",
14
- "#FFBAF0",
15
- "#FFB8CE",
16
- "#FFC3A2",
17
- "#FFDB7C",
18
- "#F9F871",
19
- "#C3FCF1",
20
- "#F6F2CB",
21
- "#E0F8D1",
22
- "#B1DFFB",
23
- "#8DECFE",
24
- "#76F7ED",
25
- "#8AFEC8"
26
- ];
27
- var KEYBOARD_KEY_CODES = {
28
- Backspace: 8,
29
- Delete: 46,
30
- ARROW_LEFT: 37,
31
- ARROW_RIGHT: 39
32
- };
33
-
34
- // src/Functions/utils.js
35
- var getIsOnlyAnObject = (input) => {
36
- return typeof input === "object" && // "отбивает" примитивы и функции
37
- input instanceof Object && // "отбивает" null
38
- !Array.isArray(input) && // "отбивает" массивы
39
- !(input instanceof Set) && // "отбивает" сеты
40
- !(input instanceof Map);
41
- };
42
- var handleObjectChange = (updateObject, updateFunction) => (data, prop = "", isNumber) => {
43
- let value;
44
- if (data?.target) {
45
- value = data.target.type === "checkbox" ? data.target.checked : data.target.value;
46
- } else value = data;
47
- value = isNumber ? Number(value) : value;
48
- const props = prop.split(".");
49
- const currentObject = props.reduce((res, chapter, index) => {
50
- if (props.length !== index + 1) res = res[chapter];
51
- return res;
52
- }, updateObject);
53
- currentObject[props.pop()] = value;
54
- updateFunction();
55
- };
56
- var useOutsideToggle = (ref, setOut, open) => {
57
- function handleClickOutside(event) {
58
- if (ref.current && !ref.current.contains(event.target)) {
59
- setOut(open);
60
- }
61
- }
62
- useEffect(() => {
63
- document.addEventListener("mouseup", handleClickOutside);
64
- return () => {
65
- document.removeEventListener("mouseup", handleClickOutside);
66
- };
67
- }, [ref]);
68
- };
69
- var getStyles = (el, prop) => {
70
- if (!el) return null;
71
- if (!prop) return window.getComputedStyle(el);
72
- return window.getComputedStyle(el).getPropertyValue(prop);
73
- };
74
- var getColorById = (id, colors) => {
75
- if (!id) return "#FF7D00";
76
- const idToArr = Array.from(id);
77
- const colorsArr = colors && colors.length > 0 ? colors : DEFAULT_COLORS;
78
- let number = idToArr.reduce((acc, item) => {
79
- if (Number(item)) {
80
- return acc + Number(item);
81
- }
82
- return acc;
83
- }, 0);
84
- while (number >= colorsArr.length) {
85
- number -= colorsArr.length;
86
- }
87
- return colorsArr[number];
88
- };
89
- var addBitDepthPoints = (value, step = 3) => {
90
- const isFraction = value?.includes(".");
91
- const valueBeforeDot = isFraction ? value?.slice(0, value?.indexOf(".")) : value;
92
- const intPart = valueBeforeDot.split("").reverse().reduce(
93
- (acc, item, idx) => idx % step === 0 && idx !== 0 ? [...acc, ",", item] : [...acc, item],
94
- []
95
- ).reverse().join("");
96
- return isFraction ? intPart + value?.slice(value?.indexOf(".")) : intPart;
97
- };
98
- var firstLetterCapital = (str) => typeof str === "string" ? `${str.charAt(0).toUpperCase()}${str.slice(1)}` : str;
99
- var capitalized = firstLetterCapital;
100
- var checkedRef = (ref) => ref ? typeof ref === "function" ? (node) => ref(node) : ref : null;
101
- String.prototype.longerThan = function(compareWith) {
102
- return this?.length > compareWith?.length;
103
- };
104
- String.prototype.lastIndexEqualsTo = function(index) {
105
- return this?.length - 1 === index;
106
- };
107
-
108
- // src/Atomic/UI/Accordion/AccordionItem.tsx
109
- import cn2 from "classnames";
110
- import { useEffect as useEffect2, useRef, useState } from "react";
111
- import * as Icons from "react-feather";
112
- import { NavLink } from "react-router-dom";
113
-
114
- // src/Atomic/UI/Status/Status.tsx
115
- import cn from "classnames";
116
- import { jsx, jsxs } from "react/jsx-runtime";
117
- function defaultOnClick() {
118
- }
119
- var Status = ({
120
- icon,
121
- value,
122
- label,
123
- status,
124
- disabled,
125
- type,
126
- active = 0,
127
- pause = 0,
128
- className,
129
- noBackground,
130
- children,
131
- testId = "status",
132
- onClick = defaultOnClick
133
- }) => {
134
- if (!status) return null;
135
- const text = children && typeof children === "string" ? children : value || label || status;
136
- const formattedLabel = text?.[0].toUpperCase() + text?.slice(1);
137
- return /* @__PURE__ */ jsx("div", { onClick, "data-testid": testId, className: cn({ disabled }, className), children: type === "number" ? /* @__PURE__ */ jsx("div", { children: active === 0 && pause === 0 ? /* @__PURE__ */ jsx("div", { className: "status status--error", children: /* @__PURE__ */ jsx("span", { children: active }) }) : /* @__PURE__ */ jsxs("div", { className: "status status--warning", children: [
138
- /* @__PURE__ */ jsx("span", { className: "status--number-active", children: active }),
139
- /* @__PURE__ */ jsx("span", { className: "color--gray-gull", children: " / " }),
140
- /* @__PURE__ */ jsx("span", { className: pause > 0 ? "color--froly" : "color--gray-gull", children: pause })
141
- ] }) }) : /* @__PURE__ */ jsxs(
142
- "div",
143
- {
144
- className: cn(
145
- "status",
146
- `status--${status}`,
147
- {
148
- "status--no-bg": noBackground && status === "pause",
149
- "color--gray-gull": noBackground && status === "pause" && !className,
150
- "j4": !!icon
151
- },
152
- className
153
- ),
154
- children: [
155
- icon,
156
- formattedLabel
157
- ]
158
- }
159
- ) });
160
- };
161
- var Status_default = Status;
162
-
163
- // src/Atomic/UI/Status/index.ts
164
- var Status_default2 = Status_default;
165
-
166
- // src/Atomic/UI/Accordion/AccordionItem.tsx
167
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
168
- var AccordionItem = ({
169
- item,
170
- onClick,
171
- isOpen,
172
- className,
173
- children,
174
- noChevron,
175
- testId = "accordion-item"
176
- }) => {
177
- const Icon = Icons[item.icon];
178
- const [maxHeight, setMaxHeight] = useState(0);
179
- const ref = useRef(null);
180
- const getItemsHeight = () => {
181
- let itemHeight = 0;
182
- ref.current?.childNodes.forEach((el) => {
183
- itemHeight += el.offsetHeight;
184
- });
185
- return itemHeight + 20;
186
- };
187
- useEffect2(() => {
188
- setMaxHeight(isOpen ? getItemsHeight() : 0);
189
- }, [isOpen]);
190
- const calculateStatusCount = () => {
191
- return item?.rows?.reduce(
192
- (acc, row) => {
193
- const result = row.cols.reduce(
194
- (accum, col) => ({
195
- active: accum.active + (col.status === "active" ? 1 : 0),
196
- pause: accum.pause + (col.status === "pause" ? 1 : 0)
197
- }),
198
- { active: 0, pause: 0 }
199
- );
200
- return {
201
- active: acc.active + result.active,
202
- pause: acc.pause + result.pause
203
- };
204
- },
205
- { active: 0, pause: 0 }
206
- );
207
- };
208
- return /* @__PURE__ */ jsxs2(
209
- "div",
210
- {
211
- "data-testid": testId,
212
- className: cn2("accordion--item", className),
213
- role: "region",
214
- "aria-labelledby": `accordion-title-${item.title}`,
215
- children: [
216
- /* @__PURE__ */ jsxs2(
217
- "div",
218
- {
219
- className: cn2("accordion--title-box", {
220
- "accordion--title-open": isOpen
221
- }),
222
- onClick: () => onClick(!isOpen),
223
- id: `accordion-title-${item.title}`,
224
- role: "button",
225
- "aria-expanded": isOpen,
226
- "aria-controls": `accordion-content-${item.title}`,
227
- tabIndex: 0,
228
- children: [
229
- /* @__PURE__ */ jsxs2("div", { className: "j4 no-wrap", children: [
230
- item?.icon && /* @__PURE__ */ jsx2(Icon, { className: cn2("mr5", item?.className), "aria-hidden": "true" }),
231
- /* @__PURE__ */ jsx2("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
232
- ] }),
233
- /* @__PURE__ */ jsxs2("div", { className: "j6 accordion-title__right-box", children: [
234
- item.status && /* @__PURE__ */ jsx2("div", { className: "mr5", children: /* @__PURE__ */ jsx2(
235
- Status_default2,
236
- {
237
- type: item?.status.type,
238
- value: item?.status.value,
239
- status: item?.status.status,
240
- active: calculateStatusCount()?.active,
241
- pause: calculateStatusCount()?.pause
242
- }
243
- ) }),
244
- !noChevron && /* @__PURE__ */ jsx2(
245
- Icons.ChevronRight,
246
- {
247
- "aria-hidden": "true",
248
- className: cn2("accordion--title-chevron", {
249
- "accordion--title-chevron-open": isOpen
250
- })
251
- }
252
- )
253
- ] })
254
- ]
255
- }
256
- ),
257
- /* @__PURE__ */ jsx2(
258
- "div",
259
- {
260
- ref,
261
- style: { maxHeight },
262
- className: cn2("accordion--content", {
263
- "accordion--content-is-open": isOpen
264
- }),
265
- id: `accordion-content-${item.title}`,
266
- role: "region",
267
- "aria-labelledby": `accordion-title-${item.title}`,
268
- children: item.children ? item.children.map((el) => {
269
- return /* @__PURE__ */ jsx2(NavLink, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
270
- }) : children
271
- }
272
- )
273
- ]
274
- }
275
- );
276
- };
277
- var AccordionItem_default = AccordionItem;
278
-
279
- // src/Atomic/UI/Accordion/Accordion.tsx
280
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
281
- var CN = "accordion";
282
- var Accordion = ({
283
- items,
284
- className,
285
- itemClassName,
286
- isMenuHovered,
287
- isOpen,
288
- testId = CN
289
- }) => {
290
- const [data, setData] = useState2(items);
291
- const onChange = handleObjectChange(setData, () => setData([...data]));
292
- const handleArrayChange = (e, index, prop) => {
293
- data[index][prop] = e;
294
- onChange(data);
295
- };
296
- return /* @__PURE__ */ jsx3("div", { className: cn3(CN, className), "data-testid": testId, role: "list", "aria-label": "Accordion list", children: items?.map((item, index) => {
297
- const Icon = Icons2[item.icon];
298
- return item.link ? /* @__PURE__ */ jsxs3(
299
- NavLink2,
300
- {
301
- "data-testid": `${testId}-link-${index}`,
302
- to: item.link,
303
- className: cn3("main-menu--item main-menu--items-box-title"),
304
- children: [
305
- item?.icon && /* @__PURE__ */ jsx3(Icon, { className: cn3("mr5", item?.className) }),
306
- /* @__PURE__ */ jsx3("span", { className: cn3({ hidden: !isOpen && !isMenuHovered }), children: item?.title || "Link" })
307
- ]
308
- },
309
- index
310
- ) : /* @__PURE__ */ jsx3(
311
- AccordionItem_default,
312
- {
313
- testId: `${testId}-item-${index}`,
314
- className: itemClassName,
315
- item,
316
- isOpen: !!item.isOpen,
317
- onClick: (value) => handleArrayChange(value, index, "isOpen")
318
- },
319
- index
320
- );
321
- }) });
322
- };
323
- var Accordion_default = Accordion;
324
-
325
- // src/Atomic/UI/Accordion/index.ts
326
- var Accordion_default2 = Accordion_default;
327
-
328
1
  // src/Atomic/UI/AccordionTable/AccordionTable.js
329
- import React4, { useEffect as useEffect4, useState as useState4 } from "react";
330
- import cn5 from "classnames";
2
+ import React2, { useEffect as useEffect2, useState as useState2 } from "react";
3
+ import cn2 from "classnames";
331
4
  import { ArrowDown, ArrowUp, ChevronDown, Tag } from "react-feather";
332
5
 
333
6
  // src/Atomic/UI/MonoAccordion/MonoAccordion.js
334
- import React3, { useEffect as useEffect3, useRef as useRef2, useState as useState3 } from "react";
335
- import cn4 from "classnames";
336
- import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
7
+ import React, { useEffect, useRef, useState } from "react";
8
+ import cn from "classnames";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
337
10
  var RC = "mono-accordion";
338
11
  var MonoAccordion = ({
339
12
  titleJSX,
@@ -346,9 +19,9 @@ var MonoAccordion = ({
346
19
  testId = "mono-accordion",
347
20
  datasetProp = {}
348
21
  }) => {
349
- const [maxHeight, setMaxHeight] = useState3();
350
- const titleRef = useRef2();
351
- const containerRef = useRef2();
22
+ const [maxHeight, setMaxHeight] = useState();
23
+ const titleRef = useRef();
24
+ const containerRef = useRef();
352
25
  const setHeight = (value) => {
353
26
  if (value !== void 0) setMaxHeight((state) => `${value}px`);
354
27
  else
@@ -365,38 +38,38 @@ var MonoAccordion = ({
365
38
  e?.stopPropagation();
366
39
  } else return e;
367
40
  };
368
- useEffect3(() => {
41
+ useEffect(() => {
369
42
  if (!isOpen) setHeight(0);
370
43
  else setHeight();
371
44
  }, [isOpen, children]);
372
- return /* @__PURE__ */ jsxs4(
45
+ return /* @__PURE__ */ jsxs(
373
46
  "div",
374
47
  {
375
48
  ...datasetProp,
376
49
  "data-testid": testId,
377
- className: cn4(RC, className, {
50
+ className: cn(RC, className, {
378
51
  [`${RC}_is-open`]: isOpen,
379
52
  [`${RC}_disabled`]: disabled
380
53
  }),
381
54
  children: [
382
- /* @__PURE__ */ jsxs4(
55
+ /* @__PURE__ */ jsxs(
383
56
  "div",
384
57
  {
385
58
  className: `${RC}__head`,
386
59
  onClick: handleClick,
387
60
  children: [
388
- /* @__PURE__ */ jsx4("div", { ref: titleRef, className: `${RC}__tile-container`, children: titleJSX }),
389
- /* @__PURE__ */ jsx4("span", { className: `${RC}__icon-container`, children: icon })
61
+ /* @__PURE__ */ jsx("div", { ref: titleRef, className: `${RC}__tile-container`, children: titleJSX }),
62
+ /* @__PURE__ */ jsx("span", { className: `${RC}__icon-container`, children: icon })
390
63
  ]
391
64
  }
392
65
  ),
393
- /* @__PURE__ */ jsx4(
66
+ /* @__PURE__ */ jsx(
394
67
  "div",
395
68
  {
396
69
  ref: containerRef,
397
70
  style: { maxHeight },
398
- className: cn4(`${RC}__container`),
399
- children: /* @__PURE__ */ jsx4("div", { className: `${RC}__content-wrapper`, children })
71
+ className: cn(`${RC}__container`),
72
+ children: /* @__PURE__ */ jsx("div", { className: `${RC}__content-wrapper`, children })
400
73
  }
401
74
  )
402
75
  ]
@@ -406,7 +79,7 @@ var MonoAccordion = ({
406
79
  var MonoAccordion_default = MonoAccordion;
407
80
 
408
81
  // src/Atomic/UI/AccordionTable/AccordionTable.js
409
- import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
82
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
410
83
  var AccordionTable = ({
411
84
  className,
412
85
  header,
@@ -417,8 +90,8 @@ var AccordionTable = ({
417
90
  },
418
91
  sortParams
419
92
  }) => {
420
- const [accordions, setAccordions] = useState4(items);
421
- const sortedColClassName = (item) => cn5(
93
+ const [accordions, setAccordions] = useState2(items);
94
+ const sortedColClassName = (item) => cn2(
422
95
  "accordion-table__header-item",
423
96
  item.className,
424
97
  {
@@ -461,16 +134,16 @@ var AccordionTable = ({
461
134
  };
462
135
  const renderTd = (tr) => {
463
136
  return Object.entries(tr)?.map(([key, value]) => {
464
- return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ jsx5(
137
+ return key === "promoDetails" || key === "disclosure" ? null : /* @__PURE__ */ jsx2(
465
138
  "div",
466
139
  {
467
140
  style: { flexBasis: `${getHeaderItem(key)?.width}%` },
468
- className: cn5(
141
+ className: cn2(
469
142
  "accordion-table__td",
470
143
  `accordion-table__td--${key}`,
471
144
  getHeaderItem(key)?.className
472
145
  ),
473
- children: /* @__PURE__ */ jsx5(
146
+ children: /* @__PURE__ */ jsx2(
474
147
  "p",
475
148
  {
476
149
  className: "accordion-table__statistics-td-value",
@@ -485,10 +158,10 @@ var AccordionTable = ({
485
158
  };
486
159
  const renderTr = (rows) => {
487
160
  return rows?.map((row, index) => {
488
- return /* @__PURE__ */ jsxs5(
161
+ return /* @__PURE__ */ jsxs2(
489
162
  "div",
490
163
  {
491
- className: cn5(
164
+ className: cn2(
492
165
  "accordion-table__tr",
493
166
  {
494
167
  "accordion-table__tr-with-promo": row.promoDetails || row.cols?.promoDetails
@@ -496,13 +169,13 @@ var AccordionTable = ({
496
169
  row.className
497
170
  ),
498
171
  children: [
499
- /* @__PURE__ */ jsx5("div", { className: "df w100", children: renderTd(row.cols || row) }),
500
- row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ jsx5("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsxs5("div", { className: "accordion-table__tr-promo", children: [
501
- /* @__PURE__ */ jsx5(Tag, { className: "tr-promo-icon", width: 16, height: 16 }),
502
- /* @__PURE__ */ jsx5("span", { className: "tr-promo-label", children: "PROMOTION" }),
172
+ /* @__PURE__ */ jsx2("div", { className: "df w100", children: renderTd(row.cols || row) }),
173
+ row.promoDetails || row.cols?.promoDetails ? /* @__PURE__ */ jsx2("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsxs2("div", { className: "accordion-table__tr-promo", children: [
174
+ /* @__PURE__ */ jsx2(Tag, { className: "tr-promo-icon", width: 16, height: 16 }),
175
+ /* @__PURE__ */ jsx2("span", { className: "tr-promo-label", children: "PROMOTION" }),
503
176
  row.promoDetails || row.cols?.promoDetails
504
177
  ] }) }) : null,
505
- row.disclosure || row.cols?.disclosure ? /* @__PURE__ */ jsx5("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsx5("div", { className: "accordion-table__tr-promo accordion-table__tr-promo-disclosure", children: row.disclosure || row.cols?.disclosure }) }) : null
178
+ row.disclosure || row.cols?.disclosure ? /* @__PURE__ */ jsx2("div", { className: "accordion-table__tr-promo-wrapper", children: /* @__PURE__ */ jsx2("div", { className: "accordion-table__tr-promo accordion-table__tr-promo-disclosure", children: row.disclosure || row.cols?.disclosure }) }) : null
506
179
  ]
507
180
  },
508
181
  index
@@ -510,34 +183,34 @@ var AccordionTable = ({
510
183
  });
511
184
  };
512
185
  const defineAccordionTitle = (row) => {
513
- return /* @__PURE__ */ jsxs5(
186
+ return /* @__PURE__ */ jsxs2(
514
187
  "div",
515
188
  {
516
189
  onClick: (e) => handle.accordionChange(row.key, e),
517
190
  className: "accordion-table__accordion-label-box",
518
191
  children: [
519
- /* @__PURE__ */ jsxs5("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
520
- /* @__PURE__ */ jsx5(
192
+ /* @__PURE__ */ jsxs2("div", { className: "accordion-table__accordion-label-wrapper j4", children: [
193
+ /* @__PURE__ */ jsx2(
521
194
  ChevronDown,
522
195
  {
523
196
  width: 8,
524
197
  height: 4,
525
- className: cn5("accordion-label-box__icon", {
198
+ className: cn2("accordion-label-box__icon", {
526
199
  "accordion-label-box__icon--open": row.isOpen
527
200
  })
528
201
  }
529
202
  ),
530
- /* @__PURE__ */ jsx5("span", { className: "accordion-label-box__label", children: row.label }),
531
- row.statistics && /* @__PURE__ */ jsx5("div", { className: cn5("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
532
- return /* @__PURE__ */ jsx5(
203
+ /* @__PURE__ */ jsx2("span", { className: "accordion-label-box__label", children: row.label }),
204
+ row.statistics && /* @__PURE__ */ jsx2("div", { className: cn2("accordion-table__tr", row.className), children: Object.entries(row.statistics).map(([key, value]) => {
205
+ return /* @__PURE__ */ jsx2(
533
206
  "div",
534
207
  {
535
208
  style: { width: `${getHeaderItem(key)?.width}%` },
536
- className: cn5(
209
+ className: cn2(
537
210
  "accordion-table__statistics-td",
538
211
  getHeaderItem(key)?.className
539
212
  ),
540
- children: /* @__PURE__ */ jsx5("div", { className: "accordion-table__statistics-td-value-wrapper", children: key === "status" ? /* @__PURE__ */ jsx5("div", { className: "accordion-table__statistics-td-value", children: value }) : /* @__PURE__ */ jsx5(
213
+ children: /* @__PURE__ */ jsx2("div", { className: "accordion-table__statistics-td-value-wrapper", children: key === "status" ? /* @__PURE__ */ jsx2("div", { className: "accordion-table__statistics-td-value", children: value }) : /* @__PURE__ */ jsx2(
541
214
  "p",
542
215
  {
543
216
  className: "accordion-table__statistics-td-value",
@@ -555,33 +228,33 @@ var AccordionTable = ({
555
228
  }
556
229
  );
557
230
  };
558
- useEffect4(() => {
231
+ useEffect2(() => {
559
232
  setAccordions(items);
560
233
  }, [items]);
561
- return /* @__PURE__ */ jsxs5("div", { className: cn5("accordion-table", className), children: [
562
- /* @__PURE__ */ jsx5("div", { className: "accordion-table__header", children: header?.map((item) => {
563
- return /* @__PURE__ */ jsxs5(
234
+ return /* @__PURE__ */ jsxs2("div", { className: cn2("accordion-table", className), children: [
235
+ /* @__PURE__ */ jsx2("div", { className: "accordion-table__header", children: header?.map((item) => {
236
+ return /* @__PURE__ */ jsxs2(
564
237
  "div",
565
238
  {
566
239
  style: { flexBasis: `${item.width}%` },
567
240
  className: sortedColClassName(item),
568
241
  onClick: () => !item.noSort && handle.setSort(item.key),
569
242
  children: [
570
- sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ jsx5(ArrowDown, { size: 16 }) : /* @__PURE__ */ jsx5(ArrowUp, { size: 16 })),
243
+ sortParams && item.key === sortParams.key && sortParams.key !== "actions" && (sortParams.direction === "DESC" ? /* @__PURE__ */ jsx2(ArrowDown, { size: 16 }) : /* @__PURE__ */ jsx2(ArrowUp, { size: 16 })),
571
244
  item.label
572
245
  ]
573
246
  },
574
247
  item.key
575
248
  );
576
249
  }) }),
577
- /* @__PURE__ */ jsx5("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
578
- return /* @__PURE__ */ jsx5(
250
+ /* @__PURE__ */ jsx2("div", { className: "accordion-table__body", children: accordions?.map((accordion) => {
251
+ return /* @__PURE__ */ jsx2(
579
252
  MonoAccordion_default,
580
253
  {
581
254
  testId,
582
255
  onClick: (e) => handle.accordionChange(accordion.key, e),
583
256
  isOpen: accordion.isOpen,
584
- className: cn5(
257
+ className: cn2(
585
258
  "accordion-table__body-accordion",
586
259
  {
587
260
  "accordion-table__body-accordion--closed": !accordion.isOpen
@@ -599,12 +272,12 @@ var AccordionTable = ({
599
272
  var AccordionTable_default = AccordionTable;
600
273
 
601
274
  // src/Atomic/UI/AccordionText/AccordionText.js
602
- import { useEffect as useEffect5, useRef as useRef3, useState as useState5 } from "react";
603
- import React5 from "react";
604
- import cn6 from "classnames";
275
+ import { useEffect as useEffect3, useRef as useRef2, useState as useState3 } from "react";
276
+ import React3 from "react";
277
+ import cn3 from "classnames";
605
278
  import { ChevronDown as ChevronDown2, ChevronUp } from "react-feather";
606
- import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
607
- var defaultText = /* @__PURE__ */ jsx6(Fragment, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." });
279
+ import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
280
+ var defaultText = /* @__PURE__ */ jsx3(Fragment, { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." });
608
281
  var AccordionText = ({
609
282
  isDefaultOpen = false,
610
283
  isOuterOpen = false,
@@ -612,13 +285,13 @@ var AccordionText = ({
612
285
  text = defaultText,
613
286
  shortText = null
614
287
  }) => {
615
- const bodyRef = useRef3(null);
616
- const [isOpen, setIsOpen] = useState5(isDefaultOpen);
617
- const [isNeedTrimText, setIsNeedTrimText] = useState5(false);
618
- useEffect5(() => {
288
+ const bodyRef = useRef2(null);
289
+ const [isOpen, setIsOpen] = useState3(isDefaultOpen);
290
+ const [isNeedTrimText, setIsNeedTrimText] = useState3(false);
291
+ useEffect3(() => {
619
292
  setIsOpen(isOuterOpen);
620
293
  }, [isOuterOpen]);
621
- useEffect5(() => {
294
+ useEffect3(() => {
622
295
  const checkEllipsis = () => {
623
296
  if (bodyRef.current) {
624
297
  setIsNeedTrimText(bodyRef.current.scrollWidth > bodyRef.current.clientWidth);
@@ -637,25 +310,25 @@ var AccordionText = ({
637
310
  }
638
311
  };
639
312
  }, [text]);
640
- return /* @__PURE__ */ jsxs6(
313
+ return /* @__PURE__ */ jsxs3(
641
314
  "div",
642
315
  {
643
- className: cn6("accordion-text", className, {
316
+ className: cn3("accordion-text", className, {
644
317
  "accordion-text--open": isOpen
645
318
  }),
646
319
  onClick: () => setIsOpen((prevIsOpen) => !prevIsOpen),
647
320
  children: [
648
- /* @__PURE__ */ jsx6(
321
+ /* @__PURE__ */ jsx3(
649
322
  "div",
650
323
  {
651
- className: cn6("accordion-text__body", {
324
+ className: cn3("accordion-text__body", {
652
325
  "accordion-text__body--trim-text": isNeedTrimText && !isOpen
653
326
  }),
654
327
  ref: bodyRef,
655
328
  children: shortText ? isOpen ? text : shortText : text
656
329
  }
657
330
  ),
658
- /* @__PURE__ */ jsx6("div", { className: "accordion-text__toggle", children: isOpen ? /* @__PURE__ */ jsx6(ChevronUp, {}) : /* @__PURE__ */ jsx6(ChevronDown2, {}) })
331
+ /* @__PURE__ */ jsx3("div", { className: "accordion-text__toggle", children: isOpen ? /* @__PURE__ */ jsx3(ChevronUp, {}) : /* @__PURE__ */ jsx3(ChevronDown2, {}) })
659
332
  ]
660
333
  }
661
334
  );
@@ -663,40 +336,40 @@ var AccordionText = ({
663
336
  var AccordionText_default = AccordionText;
664
337
 
665
338
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
666
- import cn10 from "classnames";
667
- import { useState as useState8 } from "react";
339
+ import cn7 from "classnames";
340
+ import { useState as useState6 } from "react";
668
341
 
669
342
  // src/Atomic/UI/Tag/Tag.tsx
670
- import cn8 from "classnames";
671
- import { useEffect as useEffect6, useMemo, useRef as useRef4, useState as useState6 } from "react";
343
+ import cn5 from "classnames";
344
+ import { useEffect as useEffect4, useMemo, useRef as useRef3, useState as useState4 } from "react";
672
345
  import { createPortal } from "react-dom";
673
346
  import { AlertTriangle, X } from "react-feather";
674
347
 
675
348
  // src/Atomic/Layout/Spinner/Spinner.tsx
676
- import cn7 from "classnames";
677
- import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
678
- var CN2 = "loader-box";
679
- var Spinner = ({ size = null, className, testId = CN2 }) => {
680
- return /* @__PURE__ */ jsx7(
349
+ import cn4 from "classnames";
350
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
351
+ var CN = "loader-box";
352
+ var Spinner = ({ size = null, className, testId = CN }) => {
353
+ return /* @__PURE__ */ jsx4(
681
354
  "div",
682
355
  {
683
356
  role: "status",
684
357
  "aria-live": "polite",
685
358
  "aria-busy": "true",
686
359
  "data-testid": testId,
687
- className: cn7(
688
- CN2,
360
+ className: cn4(
361
+ CN,
689
362
  {
690
363
  j5: size !== "small",
691
364
  j8: size === "small"
692
365
  },
693
366
  className
694
367
  ),
695
- children: /* @__PURE__ */ jsxs7("div", { className: cn7("lds-ring", { [`lds-ring_${size}`]: size }), children: [
696
- /* @__PURE__ */ jsx7("div", {}),
697
- /* @__PURE__ */ jsx7("div", {}),
698
- /* @__PURE__ */ jsx7("div", {}),
699
- /* @__PURE__ */ jsx7("div", {})
368
+ children: /* @__PURE__ */ jsxs4("div", { className: cn4("lds-ring", { [`lds-ring_${size}`]: size }), children: [
369
+ /* @__PURE__ */ jsx4("div", {}),
370
+ /* @__PURE__ */ jsx4("div", {}),
371
+ /* @__PURE__ */ jsx4("div", {}),
372
+ /* @__PURE__ */ jsx4("div", {})
700
373
  ] })
701
374
  }
702
375
  );
@@ -707,9 +380,9 @@ var Spinner_default = Spinner;
707
380
  var Spinner_default2 = Spinner_default;
708
381
 
709
382
  // src/Atomic/UI/Tag/Tag.tsx
710
- import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
711
- var CN3 = "tag";
712
- function defaultOnClick2() {
383
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
384
+ var CN2 = "tag";
385
+ function defaultOnClick() {
713
386
  }
714
387
  var Tag2 = ({
715
388
  value,
@@ -726,12 +399,12 @@ var Tag2 = ({
726
399
  id,
727
400
  isUseInTable,
728
401
  isNoDismiss = true,
729
- onClick = defaultOnClick2,
730
- testId = CN3
402
+ onClick = defaultOnClick,
403
+ testId = CN2
731
404
  }) => {
732
- const tagRef = useRef4(null);
733
- const [isTagHover, setIsTagHover] = useState6(false);
734
- const [isTagPopupOpened, setIsTagPopupOpened] = useState6(false);
405
+ const tagRef = useRef3(null);
406
+ const [isTagHover, setIsTagHover] = useState4(false);
407
+ const [isTagPopupOpened, setIsTagPopupOpened] = useState4(false);
735
408
  const { x, y, height, width } = tagRef?.current?.getBoundingClientRect() ?? {};
736
409
  const { scrollY } = window;
737
410
  const tagPopupStyles = useMemo(() => {
@@ -765,13 +438,13 @@ var Tag2 = ({
765
438
  const handleClickOutside = () => {
766
439
  setIsTagPopupOpened(false);
767
440
  };
768
- useEffect6(() => {
441
+ useEffect4(() => {
769
442
  document.addEventListener("click", handleClickOutside, true);
770
443
  return () => {
771
444
  document.removeEventListener("click", handleClickOutside, true);
772
445
  };
773
446
  }, []);
774
- useEffect6(() => {
447
+ useEffect4(() => {
775
448
  const handleScroll = () => {
776
449
  setIsTagPopupOpened(false);
777
450
  };
@@ -780,7 +453,7 @@ var Tag2 = ({
780
453
  window.removeEventListener("scroll", handleScroll, true);
781
454
  };
782
455
  }, []);
783
- return /* @__PURE__ */ jsxs8(
456
+ return /* @__PURE__ */ jsxs5(
784
457
  "div",
785
458
  {
786
459
  onMouseEnter: () => setIsTagHover(true),
@@ -788,15 +461,15 @@ var Tag2 = ({
788
461
  "data-testid": testId,
789
462
  role: "listitem",
790
463
  "aria-label": `Tag: ${label || name}`,
791
- className: cn8(CN3, className, { "tag-warn": warning }),
464
+ className: cn5(CN2, className, { "tag-warn": warning }),
792
465
  style: style ?? {},
793
466
  onClick: (event) => handle.onTagClick(event),
794
467
  ref: tagRef,
795
468
  children: [
796
- warning && typeof warning === "string" && /* @__PURE__ */ jsx8(AlertTriangle, { className: "advanced-tags--warning-icon mr5", "aria-label": "Warning" }),
797
- warning && typeof warning === "string" && isTagHover && isWarningHint && /* @__PURE__ */ jsx8("div", { className: "tag__warn-hint", role: "tooltip", children: warning }),
798
- /* @__PURE__ */ jsx8("span", { className: "tag__label", style: tagLabelStyle, children: label || name }),
799
- removeItem && !isNoDismiss && /* @__PURE__ */ jsx8(
469
+ warning && typeof warning === "string" && /* @__PURE__ */ jsx5(AlertTriangle, { className: "advanced-tags--warning-icon mr5", "aria-label": "Warning" }),
470
+ warning && typeof warning === "string" && isTagHover && isWarningHint && /* @__PURE__ */ jsx5("div", { className: "tag__warn-hint", role: "tooltip", children: warning }),
471
+ /* @__PURE__ */ jsx5("span", { className: "tag__label", style: tagLabelStyle, children: label || name }),
472
+ removeItem && !isNoDismiss && /* @__PURE__ */ jsx5(
800
473
  "button",
801
474
  {
802
475
  type: "button",
@@ -807,11 +480,11 @@ var Tag2 = ({
807
480
  },
808
481
  "aria-label": `Remove ${label || name}`,
809
482
  className: "tag__button",
810
- children: /* @__PURE__ */ jsx8(X, { className: "color--text" })
483
+ children: /* @__PURE__ */ jsx5(X, { className: "color--text" })
811
484
  }
812
485
  ),
813
486
  isTagPopupOpened && createPortal(
814
- /* @__PURE__ */ jsx8("div", { id: `tagPopup${value}`, className: cn8("tag__popup", popupClassName), style: tagPopupStyles, children: !popupInfoContent ? /* @__PURE__ */ jsx8(Spinner_default2, { size: "small" }) : popupInfoContent }),
487
+ /* @__PURE__ */ jsx5("div", { id: `tagPopup${value}`, className: cn5("tag__popup", popupClassName), style: tagPopupStyles, children: !popupInfoContent ? /* @__PURE__ */ jsx5(Spinner_default2, { size: "small" }) : popupInfoContent }),
815
488
  document.getElementById("root")
816
489
  )
817
490
  ]
@@ -821,10 +494,10 @@ var Tag2 = ({
821
494
  var Tag_default = Tag2;
822
495
 
823
496
  // src/Atomic/UI/AdvancedTag/AdvTag.tsx
824
- import cn9 from "classnames";
825
- import { useEffect as useEffect7, useRef as useRef5, useState as useState7 } from "react";
497
+ import cn6 from "classnames";
498
+ import { useEffect as useEffect5, useRef as useRef4, useState as useState5 } from "react";
826
499
  import { AlertTriangle as AlertTriangle2 } from "react-feather";
827
- import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
500
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
828
501
  var AdvTag = ({
829
502
  item,
830
503
  className,
@@ -848,19 +521,19 @@ var AdvTag = ({
848
521
  },
849
522
  type
850
523
  } = item;
851
- const [isOpen, setIsOpen] = useState7(false);
852
- const [clickedWarning, setClickedWarning] = useState7("");
853
- const hintRef = useRef5(null);
854
- const activeNumberClass = cn9("strong", {
524
+ const [isOpen, setIsOpen] = useState5(false);
525
+ const [clickedWarning, setClickedWarning] = useState5("");
526
+ const hintRef = useRef4(null);
527
+ const activeNumberClass = cn6("strong", {
855
528
  "color--pause": active === 0,
856
529
  "color--green-haze": active > 0
857
530
  });
858
- const pauseNumberClass = cn9("strong", {
531
+ const pauseNumberClass = cn6("strong", {
859
532
  "color--pause": pause === 0,
860
533
  "color--light-red": pause > 0
861
534
  });
862
535
  const isEmptyEntitys = isEntityAndCounter && (!entityAndCounter?.counter || entityAndCounter.counter === 0) || !isEntityAndCounter && (warnLeft || !merchants);
863
- const advancedTagClass = cn9("advanced-tags", {
536
+ const advancedTagClass = cn6("advanced-tags", {
864
537
  "advanced-tags--error": isEmptyEntitys
865
538
  }, className);
866
539
  const onWarningClick = (warn) => {
@@ -872,22 +545,22 @@ var AdvTag = ({
872
545
  setIsOpen(false);
873
546
  }
874
547
  };
875
- useEffect7(() => {
548
+ useEffect5(() => {
876
549
  document.addEventListener("click", handleClickOutside, true);
877
550
  return () => {
878
551
  document.removeEventListener("click", handleClickOutside, true);
879
552
  };
880
553
  }, []);
881
554
  if (!item) return null;
882
- const renderClassicTag = () => /* @__PURE__ */ jsxs9("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
883
- warnLeft && /* @__PURE__ */ jsx9(
555
+ const renderClassicTag = () => /* @__PURE__ */ jsxs6("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
556
+ warnLeft && /* @__PURE__ */ jsx6(
884
557
  "div",
885
558
  {
886
559
  "data-testid": `${testId}-left`,
887
560
  className: "advanced-tags--warning-icon-wrapper",
888
561
  onMouseEnter: () => onWarningClick("warnLeft"),
889
562
  onMouseLeave: () => setIsOpen(false),
890
- children: /* @__PURE__ */ jsx9(
563
+ children: /* @__PURE__ */ jsx6(
891
564
  AlertTriangle2,
892
565
  {
893
566
  width: 16,
@@ -897,23 +570,23 @@ var AdvTag = ({
897
570
  )
898
571
  }
899
572
  ),
900
- labelLeft && /* @__PURE__ */ jsx9("span", { className: "mr5", children: labelLeft }),
901
- labelRight && /* @__PURE__ */ jsx9("span", { children: labelRight }),
902
- type !== "simple" && /* @__PURE__ */ jsx9("span", { className: "ml5 mr5", children: "|" }),
903
- type !== "simple" && /* @__PURE__ */ jsxs9("div", { className: "df", children: [
904
- /* @__PURE__ */ jsx9("span", { className: activeNumberClass, children: active }),
905
- /* @__PURE__ */ jsx9("span", { className: "strong color--pause", children: "/" }),
906
- /* @__PURE__ */ jsx9("span", { className: pauseNumberClass, children: pause })
573
+ labelLeft && /* @__PURE__ */ jsx6("span", { className: "mr5", children: labelLeft }),
574
+ labelRight && /* @__PURE__ */ jsx6("span", { children: labelRight }),
575
+ type !== "simple" && /* @__PURE__ */ jsx6("span", { className: "ml5 mr5", children: "|" }),
576
+ type !== "simple" && /* @__PURE__ */ jsxs6("div", { className: "df", children: [
577
+ /* @__PURE__ */ jsx6("span", { className: activeNumberClass, children: active }),
578
+ /* @__PURE__ */ jsx6("span", { className: "strong color--pause", children: "/" }),
579
+ /* @__PURE__ */ jsx6("span", { className: pauseNumberClass, children: pause })
907
580
  ] }),
908
- type !== "simple" && /* @__PURE__ */ jsx9("span", { className: "ml5 mr5", children: "|" }),
909
- merchants ? /* @__PURE__ */ jsx9("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ jsx9(
581
+ type !== "simple" && /* @__PURE__ */ jsx6("span", { className: "ml5 mr5", children: "|" }),
582
+ merchants ? /* @__PURE__ */ jsx6("span", { children: merchants }) : type !== "simple" && /* @__PURE__ */ jsx6(
910
583
  "div",
911
584
  {
912
585
  "data-testid": `${testId}-right`,
913
586
  className: "advanced-tags--warning-icon-wrapper",
914
587
  onMouseEnter: () => onWarningClick("warnRight"),
915
588
  onMouseLeave: () => setIsOpen(false),
916
- children: /* @__PURE__ */ jsx9(
589
+ children: /* @__PURE__ */ jsx6(
917
590
  AlertTriangle2,
918
591
  {
919
592
  width: 16,
@@ -923,20 +596,20 @@ var AdvTag = ({
923
596
  )
924
597
  }
925
598
  ),
926
- isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx9(
599
+ isOpen && warnLeftMsg && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx6(
927
600
  "span",
928
601
  {
929
- className: cn9(
602
+ className: cn6(
930
603
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
931
604
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
932
605
  ),
933
606
  children: warnLeftMsg
934
607
  }
935
608
  ),
936
- isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ jsx9(
609
+ isOpen && warnRightMsg && clickedWarning === "warnRight" && /* @__PURE__ */ jsx6(
937
610
  "span",
938
611
  {
939
- className: cn9(
612
+ className: cn6(
940
613
  "advanced-tags__warn-text",
941
614
  "advanced-tags__warn-text--warnRight",
942
615
  { "advanced-tags__warn-text--warnRight--to-top": toTop }
@@ -947,15 +620,15 @@ var AdvTag = ({
947
620
  ] });
948
621
  const renderWithEntityAndCounterTag = () => {
949
622
  const isNullcounter = entityAndCounter?.counter?.toString() === "0";
950
- return /* @__PURE__ */ jsxs9("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
951
- isNullcounter && /* @__PURE__ */ jsx9(
623
+ return /* @__PURE__ */ jsxs6("div", { "data-testid": testId, className: advancedTagClass, ref: hintRef, children: [
624
+ isNullcounter && /* @__PURE__ */ jsx6(
952
625
  "div",
953
626
  {
954
627
  "data-testid": `${testId}-left`,
955
628
  className: "advanced-tags--warning-icon-wrapper",
956
629
  onMouseEnter: () => onWarningClick("warnLeft"),
957
630
  onMouseLeave: () => setIsOpen(false),
958
- children: /* @__PURE__ */ jsx9(
631
+ children: /* @__PURE__ */ jsx6(
959
632
  AlertTriangle2,
960
633
  {
961
634
  width: 16,
@@ -965,21 +638,21 @@ var AdvTag = ({
965
638
  )
966
639
  }
967
640
  ),
968
- isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx9(
641
+ isOpen && entityAndCounter?.nullCounterMessage && clickedWarning === "warnLeft" && /* @__PURE__ */ jsx6(
969
642
  "span",
970
643
  {
971
- className: cn9(
644
+ className: cn6(
972
645
  "advanced-tags__warn-text advanced-tags__warn-text--warnLeft",
973
646
  { "advanced-tags__warn-text--warnLeft--to-top": toTop }
974
647
  ),
975
648
  children: entityAndCounter.nullCounterMessage
976
649
  }
977
650
  ),
978
- entityAndCounter?.title && /* @__PURE__ */ jsx9("span", { className: "mr5", children: entityAndCounter.title }),
979
- /* @__PURE__ */ jsx9(
651
+ entityAndCounter?.title && /* @__PURE__ */ jsx6("span", { className: "mr5", children: entityAndCounter.title }),
652
+ /* @__PURE__ */ jsx6(
980
653
  "div",
981
654
  {
982
- className: cn9("advanced-tags__counter", {
655
+ className: cn6("advanced-tags__counter", {
983
656
  "advanced-tags__counter--null": isNullcounter,
984
657
  "advanced-tags__counter--bold": !isNullcounter
985
658
  }),
@@ -993,7 +666,7 @@ var AdvTag = ({
993
666
  var AdvTag_default = AdvTag;
994
667
 
995
668
  // src/Atomic/UI/AdvancedTag/AdvancedTags.tsx
996
- import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
669
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
997
670
  var AdvancedTags = ({
998
671
  items,
999
672
  noItemsTagLabel,
@@ -1001,26 +674,26 @@ var AdvancedTags = ({
1001
674
  testId = "advanced-tag-test",
1002
675
  toTop = true
1003
676
  }) => {
1004
- const [showedItems, setShowedItems] = useState8(items.slice(0, 2));
1005
- const [showMore, setShowMore] = useState8(true);
677
+ const [showedItems, setShowedItems] = useState6(items.slice(0, 2));
678
+ const [showMore, setShowMore] = useState6(true);
1006
679
  const onShowMoreClick = () => {
1007
680
  setShowedItems(showMore ? items : items.slice(0, 2));
1008
681
  setShowMore(!showMore);
1009
682
  };
1010
683
  if ((!items || !items.length) && noItemsTagLabel) {
1011
- return /* @__PURE__ */ jsx10(
684
+ return /* @__PURE__ */ jsx7(
1012
685
  Tag_default,
1013
686
  {
1014
687
  label: noItemsTagLabel?.toString(),
1015
- className: cn10(className, "tag-warn")
688
+ className: cn7(className, "tag-warn")
1016
689
  }
1017
690
  );
1018
691
  }
1019
692
  if ((!items || !items.length) && !noItemsTagLabel) return null;
1020
- return /* @__PURE__ */ jsxs10("div", { "data-testid": testId, className: cn10(className, "j4 wrap"), children: [
693
+ return /* @__PURE__ */ jsxs7("div", { "data-testid": testId, className: cn7(className, "j4 wrap"), children: [
1021
694
  showedItems.map((item, index) => {
1022
695
  if (!item) return null;
1023
- return /* @__PURE__ */ jsx10(
696
+ return /* @__PURE__ */ jsx7(
1024
697
  AdvTag_default,
1025
698
  {
1026
699
  toTop,
@@ -1030,7 +703,7 @@ var AdvancedTags = ({
1030
703
  index
1031
704
  );
1032
705
  }),
1033
- items.length >= 3 && /* @__PURE__ */ jsx10(
706
+ items.length >= 3 && /* @__PURE__ */ jsx7(
1034
707
  "span",
1035
708
  {
1036
709
  "data-testid": `${testId}-showMore`,
@@ -1047,13 +720,13 @@ var AdvancedTags_default = AdvancedTags;
1047
720
  var AdvancedTag_default = AdvancedTags_default;
1048
721
 
1049
722
  // src/Atomic/UI/Alert/Alert.tsx
1050
- import cn12 from "classnames";
1051
- import { useState as useState9 } from "react";
723
+ import cn9 from "classnames";
724
+ import { useState as useState7 } from "react";
1052
725
  import { X as X2 } from "react-feather";
1053
726
 
1054
727
  // src/Atomic/UI/Button/Button.tsx
1055
- import cn11 from "classnames";
1056
- import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
728
+ import cn8 from "classnames";
729
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1057
730
  var RC2 = "button";
1058
731
  var Button = ({
1059
732
  label,
@@ -1072,13 +745,13 @@ var Button = ({
1072
745
  ...props
1073
746
  }) => {
1074
747
  const noRenderIcon = noIcon || variant === "ellipse-apply" || variant === "ellipse-cancel";
1075
- return /* @__PURE__ */ jsxs11(
748
+ return /* @__PURE__ */ jsxs8(
1076
749
  "button",
1077
750
  {
1078
751
  "data-testid": testId,
1079
752
  tabIndex,
1080
753
  style,
1081
- className: cn11(
754
+ className: cn8(
1082
755
  RC2,
1083
756
  {
1084
757
  [`${RC2}_${variant}`]: variant,
@@ -1093,7 +766,7 @@ var Button = ({
1093
766
  ...props,
1094
767
  children: [
1095
768
  !noRenderIcon && icon,
1096
- label && /* @__PURE__ */ jsx11("div", { className: cn11("button__text", { "text-ellipsis": isTextEllipsis }), children: label }),
769
+ label && /* @__PURE__ */ jsx8("div", { className: cn8("button__text", { "text-ellipsis": isTextEllipsis }), children: label }),
1097
770
  !label && children ? children : null
1098
771
  ]
1099
772
  }
@@ -1102,7 +775,7 @@ var Button = ({
1102
775
  var Button_default = Button;
1103
776
 
1104
777
  // src/Atomic/UI/Alert/Alert.tsx
1105
- import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
778
+ import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1106
779
  var Alert = ({
1107
780
  message,
1108
781
  icon,
@@ -1115,35 +788,35 @@ var Alert = ({
1115
788
  isLoading,
1116
789
  buttonParams
1117
790
  }) => {
1118
- const [onClose, setOnClose] = useState9(false);
791
+ const [onClose, setOnClose] = useState7(false);
1119
792
  const renderActionsBlock = () => {
1120
793
  if (buttonParams) {
1121
- return /* @__PURE__ */ jsxs12("div", { className: "j6 alert__btns-box", children: [
1122
- /* @__PURE__ */ jsx12(Button_default, { ...buttonParams }),
1123
- !noDismiss && /* @__PURE__ */ jsx12("div", { className: "alert__close-btn", children: /* @__PURE__ */ jsx12(X2, { "data-testid": `${testId}-close`, onClick: () => setOnClose(!onClose) }) })
794
+ return /* @__PURE__ */ jsxs9("div", { className: "j6 alert__btns-box", children: [
795
+ /* @__PURE__ */ jsx9(Button_default, { ...buttonParams }),
796
+ !noDismiss && /* @__PURE__ */ jsx9("div", { className: "alert__close-btn", children: /* @__PURE__ */ jsx9(X2, { "data-testid": `${testId}-close`, onClick: () => setOnClose(!onClose) }) })
1124
797
  ] });
1125
798
  }
1126
799
  if (!noDismiss) {
1127
- return /* @__PURE__ */ jsx12("div", { className: "alert__close-btn", children: /* @__PURE__ */ jsx12(X2, { "data-testid": `${testId}-close`, onClick: () => setOnClose(!onClose) }) });
800
+ return /* @__PURE__ */ jsx9("div", { className: "alert__close-btn", children: /* @__PURE__ */ jsx9(X2, { "data-testid": `${testId}-close`, onClick: () => setOnClose(!onClose) }) });
1128
801
  } else {
1129
802
  return null;
1130
803
  }
1131
804
  };
1132
- return /* @__PURE__ */ jsxs12(
805
+ return /* @__PURE__ */ jsxs9(
1133
806
  "div",
1134
807
  {
1135
808
  "data-testid": testId,
1136
- className: cn12(className, { hidden: onClose }, `alert alert--${variant}`, {
809
+ className: cn9(className, { hidden: onClose }, `alert alert--${variant}`, {
1137
810
  "hidden": isHidden,
1138
811
  "alert--loading": isLoading
1139
812
  }),
1140
813
  children: [
1141
- /* @__PURE__ */ jsxs12("div", { className: "alert__icon-text-box j4", children: [
814
+ /* @__PURE__ */ jsxs9("div", { className: "alert__icon-text-box j4", children: [
1142
815
  icon,
1143
- /* @__PURE__ */ jsx12("div", { children: children || message })
816
+ /* @__PURE__ */ jsx9("div", { children: children || message })
1144
817
  ] }),
1145
818
  renderActionsBlock(),
1146
- isLoading && /* @__PURE__ */ jsx12(Spinner_default, { size: "small", testId: "loader-box" })
819
+ isLoading && /* @__PURE__ */ jsx9(Spinner_default, { size: "small", testId: "loader-box" })
1147
820
  ]
1148
821
  }
1149
822
  );
@@ -1154,13 +827,110 @@ var Alert_default = Alert;
1154
827
  var Alert_default2 = Alert_default;
1155
828
 
1156
829
  // src/Atomic/UI/Arrow/Arrow.tsx
1157
- import cn13 from "classnames";
1158
- import { useEffect as useEffect8, useRef as useRef6, useState as useState10 } from "react";
1159
- import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
830
+ import cn10 from "classnames";
831
+ import { useEffect as useEffect7, useRef as useRef5, useState as useState8 } from "react";
832
+
833
+ // src/Functions/utils.js
834
+ import { useEffect as useEffect6 } from "react";
835
+ import moment from "moment-timezone";
836
+
837
+ // src/Constants/index.constants.js
838
+ var DEFAULT_COLORS = [
839
+ "#D9C1FF",
840
+ "#FFBAF0",
841
+ "#FFB8CE",
842
+ "#FFC3A2",
843
+ "#FFDB7C",
844
+ "#F9F871",
845
+ "#C3FCF1",
846
+ "#F6F2CB",
847
+ "#E0F8D1",
848
+ "#B1DFFB",
849
+ "#8DECFE",
850
+ "#76F7ED",
851
+ "#8AFEC8"
852
+ ];
853
+
854
+ // src/Functions/utils.js
855
+ var getIsOnlyAnObject = (input) => {
856
+ return typeof input === "object" && // "отбивает" примитивы и функции
857
+ input instanceof Object && // "отбивает" null
858
+ !Array.isArray(input) && // "отбивает" массивы
859
+ !(input instanceof Set) && // "отбивает" сеты
860
+ !(input instanceof Map);
861
+ };
862
+ var handleObjectChange = (updateObject, updateFunction) => (data, prop = "", isNumber) => {
863
+ let value;
864
+ if (data?.target) {
865
+ value = data.target.type === "checkbox" ? data.target.checked : data.target.value;
866
+ } else value = data;
867
+ value = isNumber ? Number(value) : value;
868
+ const props = prop.split(".");
869
+ const currentObject = props.reduce((res, chapter, index) => {
870
+ if (props.length !== index + 1) res = res[chapter];
871
+ return res;
872
+ }, updateObject);
873
+ currentObject[props.pop()] = value;
874
+ updateFunction();
875
+ };
876
+ var useOutsideToggle = (ref, setOut, open) => {
877
+ function handleClickOutside(event) {
878
+ if (ref.current && !ref.current.contains(event.target)) {
879
+ setOut(open);
880
+ }
881
+ }
882
+ useEffect6(() => {
883
+ document.addEventListener("mouseup", handleClickOutside);
884
+ return () => {
885
+ document.removeEventListener("mouseup", handleClickOutside);
886
+ };
887
+ }, [ref]);
888
+ };
889
+ var getStyles = (el, prop) => {
890
+ if (!el) return null;
891
+ if (!prop) return window.getComputedStyle(el);
892
+ return window.getComputedStyle(el).getPropertyValue(prop);
893
+ };
894
+ var getColorById = (id, colors) => {
895
+ if (!id) return "#FF7D00";
896
+ const idToArr = Array.from(id);
897
+ const colorsArr = colors && colors.length > 0 ? colors : DEFAULT_COLORS;
898
+ let number = idToArr.reduce((acc, item) => {
899
+ if (Number(item)) {
900
+ return acc + Number(item);
901
+ }
902
+ return acc;
903
+ }, 0);
904
+ while (number >= colorsArr.length) {
905
+ number -= colorsArr.length;
906
+ }
907
+ return colorsArr[number];
908
+ };
909
+ var addBitDepthPoints = (value, step = 3) => {
910
+ const isFraction = value?.includes(".");
911
+ const valueBeforeDot = isFraction ? value?.slice(0, value?.indexOf(".")) : value;
912
+ const intPart = valueBeforeDot.split("").reverse().reduce(
913
+ (acc, item, idx) => idx % step === 0 && idx !== 0 ? [...acc, ",", item] : [...acc, item],
914
+ []
915
+ ).reverse().join("");
916
+ return isFraction ? intPart + value?.slice(value?.indexOf(".")) : intPart;
917
+ };
918
+ var firstLetterCapital = (str) => typeof str === "string" ? `${str.charAt(0).toUpperCase()}${str.slice(1)}` : str;
919
+ var capitalized = firstLetterCapital;
920
+ var checkedRef = (ref) => ref ? typeof ref === "function" ? (node) => ref(node) : ref : null;
921
+ String.prototype.longerThan = function(compareWith) {
922
+ return this?.length > compareWith?.length;
923
+ };
924
+ String.prototype.lastIndexEqualsTo = function(index) {
925
+ return this?.length - 1 === index;
926
+ };
927
+
928
+ // src/Atomic/UI/Arrow/Arrow.tsx
929
+ import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1160
930
  function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1161
- const ref = useRef6(null);
1162
- const [color, setColor] = useState10("currentColor");
1163
- useEffect8(() => {
931
+ const ref = useRef5(null);
932
+ const [color, setColor] = useState8("currentColor");
933
+ useEffect7(() => {
1164
934
  if (ref.current) {
1165
935
  setColor(getStyles(ref.current, "color"));
1166
936
  }
@@ -1169,7 +939,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1169
939
  function renderSVG() {
1170
940
  if (type === "left") {
1171
941
  if (isAlt) {
1172
- return /* @__PURE__ */ jsxs13(
942
+ return /* @__PURE__ */ jsxs10(
1173
943
  "svg",
1174
944
  {
1175
945
  "data-testid": testId,
@@ -1180,7 +950,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1180
950
  height: "16",
1181
951
  viewBox: "0 0 16 16",
1182
952
  children: [
1183
- /* @__PURE__ */ jsx13(
953
+ /* @__PURE__ */ jsx10(
1184
954
  "path",
1185
955
  {
1186
956
  d: "M12.7,8H3.3",
@@ -1191,7 +961,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1191
961
  strokeLinejoin: "round"
1192
962
  }
1193
963
  ),
1194
- /* @__PURE__ */ jsx13(
964
+ /* @__PURE__ */ jsx10(
1195
965
  "path",
1196
966
  {
1197
967
  d: "M8,3.3L3.3,8L8,12.7",
@@ -1206,7 +976,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1206
976
  }
1207
977
  );
1208
978
  }
1209
- return /* @__PURE__ */ jsx13(
979
+ return /* @__PURE__ */ jsx10(
1210
980
  "svg",
1211
981
  {
1212
982
  "data-testid": testId,
@@ -1215,7 +985,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1215
985
  viewBox: "0 0 24 24",
1216
986
  fill: "none",
1217
987
  xmlns: "http://www.w3.org/2000/svg",
1218
- children: /* @__PURE__ */ jsx13(
988
+ children: /* @__PURE__ */ jsx10(
1219
989
  "path",
1220
990
  {
1221
991
  d: "M15 18L9 12L15 6",
@@ -1229,7 +999,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1229
999
  );
1230
1000
  }
1231
1001
  if (isAlt) {
1232
- return /* @__PURE__ */ jsxs13(
1002
+ return /* @__PURE__ */ jsxs10(
1233
1003
  "svg",
1234
1004
  {
1235
1005
  "data-testid": testId,
@@ -1239,7 +1009,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1239
1009
  height: "16",
1240
1010
  viewBox: "0 0 16 16",
1241
1011
  children: [
1242
- /* @__PURE__ */ jsx13(
1012
+ /* @__PURE__ */ jsx10(
1243
1013
  "path",
1244
1014
  {
1245
1015
  d: "M3.3,8h9.3",
@@ -1250,7 +1020,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1250
1020
  strokeLinejoin: "round"
1251
1021
  }
1252
1022
  ),
1253
- /* @__PURE__ */ jsx13(
1023
+ /* @__PURE__ */ jsx10(
1254
1024
  "path",
1255
1025
  {
1256
1026
  d: "M8,3.3L12.7,8L8,12.7",
@@ -1265,7 +1035,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1265
1035
  }
1266
1036
  );
1267
1037
  }
1268
- return /* @__PURE__ */ jsx13(
1038
+ return /* @__PURE__ */ jsx10(
1269
1039
  "svg",
1270
1040
  {
1271
1041
  "data-testid": testId,
@@ -1274,7 +1044,7 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1274
1044
  viewBox: "0 0 24 24",
1275
1045
  fill: "none",
1276
1046
  xmlns: "http://www.w3.org/2000/svg",
1277
- children: /* @__PURE__ */ jsx13(
1047
+ children: /* @__PURE__ */ jsx10(
1278
1048
  "path",
1279
1049
  {
1280
1050
  d: "M9 18L15 12L9 6",
@@ -1287,12 +1057,12 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1287
1057
  }
1288
1058
  );
1289
1059
  }
1290
- return /* @__PURE__ */ jsx13(
1060
+ return /* @__PURE__ */ jsx10(
1291
1061
  "div",
1292
1062
  {
1293
1063
  "data-testid": `arrow--key-${testId}--type-${type}`,
1294
1064
  ref,
1295
- className: cn13("arrow", `arrow_${type}`, className, {
1065
+ className: cn10("arrow", `arrow_${type}`, className, {
1296
1066
  arrow_disabled: disabled
1297
1067
  }),
1298
1068
  onClick,
@@ -1303,8 +1073,8 @@ function Arrow({ type, className, onClick, disabled, testId, isAlt }) {
1303
1073
  var Arrow_default = Arrow;
1304
1074
 
1305
1075
  // src/Atomic/UI/Box/Box.tsx
1306
- import cn14 from "classnames";
1307
- import { jsx as jsx14 } from "react/jsx-runtime";
1076
+ import cn11 from "classnames";
1077
+ import { jsx as jsx11 } from "react/jsx-runtime";
1308
1078
  var directionVariants = {
1309
1079
  column: "column",
1310
1080
  row: "row"
@@ -1328,12 +1098,12 @@ function Box({
1328
1098
  const styles = {
1329
1099
  flexDirection: direction
1330
1100
  };
1331
- return /* @__PURE__ */ jsx14(
1101
+ return /* @__PURE__ */ jsx11(
1332
1102
  "div",
1333
1103
  {
1334
1104
  style: styles,
1335
1105
  "data-testid": "box",
1336
- className: cn14(
1106
+ className: cn11(
1337
1107
  "box",
1338
1108
  `box--padding-${paddingVariant}`,
1339
1109
  `box--radii-${radiiVariant}`,
@@ -1350,80 +1120,10 @@ function Box({
1350
1120
  }
1351
1121
  var Box_default = Box;
1352
1122
 
1353
- // src/Atomic/UI/ButtonsBar/ButtonsBar.tsx
1354
- import cn15 from "classnames";
1355
- import { Link } from "react-router-dom";
1356
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1357
- var ButtonsBar = ({
1358
- className,
1359
- rejectBtnLabel,
1360
- rejectBtnIcon,
1361
- isRejectBtnIconRight,
1362
- rejectBtnVariant,
1363
- rejectBtnClass,
1364
- isRejectBtnDisabled,
1365
- rejectLink,
1366
- onReject,
1367
- confirmBtnLabel,
1368
- confirmBtnIcon,
1369
- isConfirmBtnIconRight,
1370
- confirmBtnVariant,
1371
- confirmBtnClass,
1372
- isConfirmBtnDisabled,
1373
- onConfirm,
1374
- testIdFirstBtn = "button-bar-first-item",
1375
- testIdSecondBtn = "button-bar-second-item"
1376
- }) => {
1377
- return /* @__PURE__ */ jsxs14("div", { className: cn15("button-bar", className), children: [
1378
- rejectLink ? /* @__PURE__ */ jsx15(Link, { className: "text-decoration-none", to: rejectLink, children: /* @__PURE__ */ jsx15(
1379
- Button_default,
1380
- {
1381
- testId: testIdFirstBtn,
1382
- label: rejectBtnLabel,
1383
- variant: rejectBtnVariant,
1384
- onClick: onReject,
1385
- disabled: isRejectBtnDisabled,
1386
- icon: rejectBtnIcon,
1387
- isIconRight: isRejectBtnIconRight,
1388
- className: cn15(rejectBtnClass, { mr5: confirmBtnLabel })
1389
- }
1390
- ) }) : /* @__PURE__ */ jsx15(
1391
- Button_default,
1392
- {
1393
- testId: testIdFirstBtn,
1394
- label: rejectBtnLabel,
1395
- variant: rejectBtnVariant,
1396
- onClick: onReject,
1397
- disabled: isRejectBtnDisabled,
1398
- icon: rejectBtnIcon,
1399
- isIconRight: isRejectBtnIconRight,
1400
- className: cn15(rejectBtnClass, { mr5: confirmBtnLabel })
1401
- }
1402
- ),
1403
- /* @__PURE__ */ jsx15(
1404
- Button_default,
1405
- {
1406
- testId: testIdSecondBtn,
1407
- label: confirmBtnLabel,
1408
- variant: confirmBtnVariant,
1409
- onClick: onConfirm,
1410
- disabled: isConfirmBtnDisabled,
1411
- icon: confirmBtnIcon,
1412
- isIconRight: isConfirmBtnIconRight,
1413
- className: confirmBtnClass
1414
- }
1415
- )
1416
- ] });
1417
- };
1418
- var ButtonsBar_default = ButtonsBar;
1419
-
1420
- // src/Atomic/UI/ButtonsBar/index.ts
1421
- var ButtonsBar_default2 = ButtonsBar_default;
1422
-
1423
1123
  // src/Atomic/UI/CircleProgressBar/CircleProgressBar.js
1424
- import React10, { useEffect as useEffect9, useState as useState11 } from "react";
1425
- import cn16 from "classnames";
1426
- import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
1124
+ import React8, { useEffect as useEffect8, useState as useState9 } from "react";
1125
+ import cn12 from "classnames";
1126
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1427
1127
  var CircleProgressBar = ({
1428
1128
  amount,
1429
1129
  totalAmount,
@@ -1444,17 +1144,17 @@ var CircleProgressBar = ({
1444
1144
  finish: "#f06d8d",
1445
1145
  meter: "#ffcad6"
1446
1146
  };
1447
- const [strokeDashoffset, setStrokeDashoffset] = useState11(isReverseType ? String(0) : circumference);
1448
- useEffect9(() => {
1147
+ const [strokeDashoffset, setStrokeDashoffset] = useState9(isReverseType ? String(0) : circumference);
1148
+ useEffect8(() => {
1449
1149
  setStrokeDashoffset(circumference - circumference * amountProgress / 100);
1450
1150
  }, [amountProgress]);
1451
- return /* @__PURE__ */ jsxs15(
1151
+ return /* @__PURE__ */ jsxs11(
1452
1152
  "div",
1453
1153
  {
1454
1154
  "data-testid": testId,
1455
- className: cn16("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
1155
+ className: cn12("limit-progress-bar", { "limit-progress-bar--reverse": isReverseType }, className),
1456
1156
  children: [
1457
- /* @__PURE__ */ jsxs15(
1157
+ /* @__PURE__ */ jsxs11(
1458
1158
  "svg",
1459
1159
  {
1460
1160
  className: "limit-progress-bar__progress",
@@ -1462,7 +1162,7 @@ var CircleProgressBar = ({
1462
1162
  height: "124",
1463
1163
  viewBox: "0 0 124 124",
1464
1164
  children: [
1465
- /* @__PURE__ */ jsx16("defs", { children: isReverseType ? /* @__PURE__ */ jsxs15(
1165
+ /* @__PURE__ */ jsx12("defs", { children: isReverseType ? /* @__PURE__ */ jsxs11(
1466
1166
  "linearGradient",
1467
1167
  {
1468
1168
  id: "limit-progress-bar-linear-gradient-reverse",
@@ -1471,14 +1171,14 @@ var CircleProgressBar = ({
1471
1171
  x2: "0",
1472
1172
  y2: "0",
1473
1173
  children: [
1474
- /* @__PURE__ */ jsx16(
1174
+ /* @__PURE__ */ jsx12(
1475
1175
  "stop",
1476
1176
  {
1477
1177
  offset: "0",
1478
1178
  stopColor: colors.finish || defaultColors.finish
1479
1179
  }
1480
1180
  ),
1481
- /* @__PURE__ */ jsx16(
1181
+ /* @__PURE__ */ jsx12(
1482
1182
  "stop",
1483
1183
  {
1484
1184
  offset: "1",
@@ -1487,7 +1187,7 @@ var CircleProgressBar = ({
1487
1187
  )
1488
1188
  ]
1489
1189
  }
1490
- ) : /* @__PURE__ */ jsxs15(
1190
+ ) : /* @__PURE__ */ jsxs11(
1491
1191
  "linearGradient",
1492
1192
  {
1493
1193
  id: "limit-progress-bar-linear-gradient",
@@ -1496,14 +1196,14 @@ var CircleProgressBar = ({
1496
1196
  x2: "0",
1497
1197
  y2: "0",
1498
1198
  children: [
1499
- /* @__PURE__ */ jsx16(
1199
+ /* @__PURE__ */ jsx12(
1500
1200
  "stop",
1501
1201
  {
1502
1202
  offset: "0",
1503
1203
  stopColor: colors.start || defaultColors.start
1504
1204
  }
1505
1205
  ),
1506
- /* @__PURE__ */ jsx16(
1206
+ /* @__PURE__ */ jsx12(
1507
1207
  "stop",
1508
1208
  {
1509
1209
  offset: "1",
@@ -1513,7 +1213,7 @@ var CircleProgressBar = ({
1513
1213
  ]
1514
1214
  }
1515
1215
  ) }),
1516
- /* @__PURE__ */ jsx16(
1216
+ /* @__PURE__ */ jsx12(
1517
1217
  "circle",
1518
1218
  {
1519
1219
  className: "limit-progress-bar__meter",
@@ -1524,7 +1224,7 @@ var CircleProgressBar = ({
1524
1224
  strokeWidth: String(innerLineStrokeWidth)
1525
1225
  }
1526
1226
  ),
1527
- /* @__PURE__ */ jsx16(
1227
+ /* @__PURE__ */ jsx12(
1528
1228
  "circle",
1529
1229
  {
1530
1230
  className: "limit-progress-bar__value",
@@ -1542,7 +1242,7 @@ var CircleProgressBar = ({
1542
1242
  ]
1543
1243
  }
1544
1244
  ),
1545
- /* @__PURE__ */ jsx16("div", { className: "limit-progress-bar__content", children })
1245
+ /* @__PURE__ */ jsx12("div", { className: "limit-progress-bar__content", children })
1546
1246
  ]
1547
1247
  }
1548
1248
  );
@@ -1550,10 +1250,10 @@ var CircleProgressBar = ({
1550
1250
  var CircleProgressBar_default = CircleProgressBar;
1551
1251
 
1552
1252
  // src/Atomic/UI/DateTime/DateTime.tsx
1553
- import cn17 from "classnames";
1253
+ import cn13 from "classnames";
1554
1254
  import moment2 from "moment-timezone";
1555
1255
  import { useMemo as useMemo2 } from "react";
1556
- import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
1256
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1557
1257
  var RC3 = "date-time";
1558
1258
  var DEFAULT_DATE_FORMAT = "DD.MM.YYYY";
1559
1259
  var DEFAULT_TIME_FORMAT = "HH:mm:ss";
@@ -1579,13 +1279,13 @@ var DateTime = ({
1579
1279
  timeFormat
1580
1280
  );
1581
1281
  }, [value, valueFormat, timeFormat]);
1582
- return /* @__PURE__ */ jsxs16("div", { "data-testid": testId, className: cn17(RC3, className), children: [
1583
- !isNoDate && /* @__PURE__ */ jsx17("span", { "data-testid": `${testId}-date`, className: `${RC3}__date`, children: date }),
1584
- !isNoTime && /* @__PURE__ */ jsx17(
1282
+ return /* @__PURE__ */ jsxs12("div", { "data-testid": testId, className: cn13(RC3, className), children: [
1283
+ !isNoDate && /* @__PURE__ */ jsx13("span", { "data-testid": `${testId}-date`, className: `${RC3}__date`, children: date }),
1284
+ !isNoTime && /* @__PURE__ */ jsx13(
1585
1285
  "span",
1586
1286
  {
1587
1287
  "data-testid": `${testId}-time`,
1588
- className: cn17(`${RC3}__time`, {
1288
+ className: cn13(`${RC3}__time`, {
1589
1289
  [`${RC3}_color--pause`]: !isNoDate
1590
1290
  }),
1591
1291
  children: time
@@ -1596,32 +1296,32 @@ var DateTime = ({
1596
1296
  var DateTime_default = DateTime;
1597
1297
 
1598
1298
  // src/Atomic/UI/DebugContainer/DebugContainer.tsx
1599
- import cn18 from "classnames";
1600
- import { useState as useState12 } from "react";
1299
+ import cn14 from "classnames";
1300
+ import { useState as useState10 } from "react";
1601
1301
  import { ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "react-feather";
1602
- import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
1302
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1603
1303
  var defaultData = {};
1604
1304
  var DebugContainer = ({ data = defaultData, children, className }) => {
1605
- const [isVisible, setIsVisible] = useState12(true);
1606
- const renderData = () => /* @__PURE__ */ jsxs17("pre", { children: [
1305
+ const [isVisible, setIsVisible] = useState10(true);
1306
+ const renderData = () => /* @__PURE__ */ jsxs13("pre", { children: [
1607
1307
  "{\n",
1608
1308
  Object.keys(data).map((key) => ` ${key}: ${String(data[key])},
1609
1309
  `),
1610
1310
  "}"
1611
1311
  ] });
1612
- return /* @__PURE__ */ jsxs17("div", { className: cn18("debug-container", className), "data-testid": "debug-container", children: [
1613
- isVisible && /* @__PURE__ */ jsxs17("div", { className: "debug-container__body", children: [
1614
- /* @__PURE__ */ jsx18("h5", { children: "Debug:" }),
1615
- data && Object.keys(data).length > 0 && /* @__PURE__ */ jsx18("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
1616
- children && /* @__PURE__ */ jsx18("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
1312
+ return /* @__PURE__ */ jsxs13("div", { className: cn14("debug-container", className), "data-testid": "debug-container", children: [
1313
+ isVisible && /* @__PURE__ */ jsxs13("div", { className: "debug-container__body", children: [
1314
+ /* @__PURE__ */ jsx14("h5", { children: "Debug:" }),
1315
+ data && Object.keys(data).length > 0 && /* @__PURE__ */ jsx14("div", { className: "debug-container__body-row", "data-testid": "debug-data", children: renderData() }),
1316
+ children && /* @__PURE__ */ jsx14("div", { className: "debug-container__body-row", "data-testid": "debug-children", children })
1617
1317
  ] }),
1618
- /* @__PURE__ */ jsx18(
1318
+ /* @__PURE__ */ jsx14(
1619
1319
  "div",
1620
1320
  {
1621
1321
  className: "debug-container__toggler",
1622
1322
  onClick: () => setIsVisible((v) => !v),
1623
1323
  "data-testid": "debug-toggler",
1624
- children: isVisible ? /* @__PURE__ */ jsx18(ChevronUp2, {}) : /* @__PURE__ */ jsx18(ChevronDown3, {})
1324
+ children: isVisible ? /* @__PURE__ */ jsx14(ChevronUp2, {}) : /* @__PURE__ */ jsx14(ChevronDown3, {})
1625
1325
  }
1626
1326
  )
1627
1327
  ] });
@@ -1629,24 +1329,24 @@ var DebugContainer = ({ data = defaultData, children, className }) => {
1629
1329
  var DebugContainer_default = DebugContainer;
1630
1330
 
1631
1331
  // src/Atomic/UI/DebugContainer/useDebugContainer.tsx
1632
- import { useState as useState13 } from "react";
1633
- import { jsx as jsx19 } from "react/jsx-runtime";
1332
+ import { useState as useState11 } from "react";
1333
+ import { jsx as jsx15 } from "react/jsx-runtime";
1634
1334
  function useDebugContainer() {
1635
- const [data, setData] = useState13({});
1335
+ const [data, setData] = useState11({});
1636
1336
  return {
1637
1337
  debugData: data,
1638
1338
  setDebugData: setData,
1639
- renderDebugContainer: /* @__PURE__ */ jsx19(DebugContainer_default, { data })
1339
+ renderDebugContainer: /* @__PURE__ */ jsx15(DebugContainer_default, { data })
1640
1340
  };
1641
1341
  }
1642
1342
  var useDebugContainer_default = useDebugContainer;
1643
1343
 
1644
1344
  // src/Atomic/UI/DoubleString/DoubleString.tsx
1645
- import cn19 from "classnames";
1345
+ import cn15 from "classnames";
1646
1346
  import moment3 from "moment";
1647
- import { useEffect as useEffect10, useRef as useRef7, useState as useState14 } from "react";
1347
+ import { useEffect as useEffect9, useRef as useRef6, useState as useState12 } from "react";
1648
1348
  import { Eye, EyeOff } from "react-feather";
1649
- import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
1349
+ import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
1650
1350
  var RC4 = "double-string";
1651
1351
  var DoubleString = ({
1652
1352
  value,
@@ -1666,33 +1366,33 @@ var DoubleString = ({
1666
1366
  isUseHideMode = false,
1667
1367
  isShowHiddenValueAvailable = false
1668
1368
  }) => {
1669
- const [isValueHidden, setIsValueHidden] = useState14(isUseHideMode);
1369
+ const [isValueHidden, setIsValueHidden] = useState12(isUseHideMode);
1670
1370
  const computedValue = isFormatValueToDate ? moment3(value, parseFormat).format(displayFormat) : value;
1671
- const valueRef = useRef7(null);
1371
+ const valueRef = useRef6(null);
1672
1372
  ;
1673
- const descriptionRef = useRef7(null);
1674
- const [elemsWidth, setElemsWidth] = useState14({
1373
+ const descriptionRef = useRef6(null);
1374
+ const [elemsWidth, setElemsWidth] = useState12({
1675
1375
  valueWidth: 0,
1676
1376
  descriptionWidth: 0
1677
1377
  });
1678
- const [isOnClickON, setIsOnClickON] = useState14(false);
1378
+ const [isOnClickON, setIsOnClickON] = useState12(false);
1679
1379
  const handle = {
1680
1380
  click: () => {
1681
1381
  setIsOnClickON(!isOnClickON);
1682
1382
  }
1683
1383
  };
1684
- useEffect10(() => {
1384
+ useEffect9(() => {
1685
1385
  const valueWidth = valueRef?.current?.clientWidth ?? 0;
1686
1386
  const descriptionWidth = descriptionRef?.current?.clientWidth ?? 0;
1687
1387
  setElemsWidth({ valueWidth, descriptionWidth });
1688
1388
  }, [descriptionRef, valueRef]);
1689
- return /* @__PURE__ */ jsxs18("div", { "data-testid": testId, className: cn19(RC4, className), children: [
1690
- /* @__PURE__ */ jsx20(
1389
+ return /* @__PURE__ */ jsxs14("div", { "data-testid": testId, className: cn15(RC4, className), children: [
1390
+ /* @__PURE__ */ jsx16(
1691
1391
  "p",
1692
1392
  {
1693
1393
  onClick: () => handle.click(),
1694
1394
  ref: valueRef,
1695
- className: cn19(
1395
+ className: cn15(
1696
1396
  `${RC4}__value`,
1697
1397
  {
1698
1398
  "double-string--value-opened": isOnClickON && isUseOnClick
@@ -1700,27 +1400,27 @@ var DoubleString = ({
1700
1400
  { pointer: isUseOnClick }
1701
1401
  ),
1702
1402
  title: !noTitle && elemsWidth.valueWidth > 99 ? computedValue : "",
1703
- children: !revert ? /* @__PURE__ */ jsxs18(Fragment2, { children: [
1704
- isUseHideMode ? /* @__PURE__ */ jsx20("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
1705
- isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ jsx20(Eye, { "data-testid": "double-string-eye", className: `${RC4}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
1706
- isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ jsx20(EyeOff, { "data-testid": "double-string-eyeoff", className: `${RC4}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
1707
- valuePostfix && /* @__PURE__ */ jsx20("span", { className: cn19(`${RC4}__value-postfix`), children: valuePostfix })
1403
+ children: !revert ? /* @__PURE__ */ jsxs14(Fragment2, { children: [
1404
+ isUseHideMode ? /* @__PURE__ */ jsx16("span", { children: !isValueHidden ? computedValue : "*********" }) : computedValue,
1405
+ isUseHideMode && isShowHiddenValueAvailable && isValueHidden && /* @__PURE__ */ jsx16(Eye, { "data-testid": "double-string-eye", className: `${RC4}__hide-mode-icon`, onClick: () => setIsValueHidden(false) }),
1406
+ isUseHideMode && isShowHiddenValueAvailable && !isValueHidden && /* @__PURE__ */ jsx16(EyeOff, { "data-testid": "double-string-eyeoff", className: `${RC4}__hide-mode-icon`, onClick: () => setIsValueHidden(true) }),
1407
+ valuePostfix && /* @__PURE__ */ jsx16("span", { className: cn15(`${RC4}__value-postfix`), children: valuePostfix })
1708
1408
  ] }) : description
1709
1409
  }
1710
1410
  ),
1711
- /* @__PURE__ */ jsx20(
1411
+ /* @__PURE__ */ jsx16(
1712
1412
  "p",
1713
1413
  {
1714
1414
  ref: descriptionRef,
1715
- className: cn19(`${RC4}__description`),
1415
+ className: cn15(`${RC4}__description`),
1716
1416
  title: !noTitle && elemsWidth.descriptionWidth > 99 ? computedValue : "",
1717
- children: !revert ? description : /* @__PURE__ */ jsxs18(Fragment2, { children: [
1417
+ children: !revert ? description : /* @__PURE__ */ jsxs14(Fragment2, { children: [
1718
1418
  computedValue,
1719
- valuePostfix && /* @__PURE__ */ jsx20("span", { className: cn19(`${RC4}__value-postfix`), children: valuePostfix })
1419
+ valuePostfix && /* @__PURE__ */ jsx16("span", { className: cn15(`${RC4}__value-postfix`), children: valuePostfix })
1720
1420
  ] })
1721
1421
  }
1722
1422
  ),
1723
- subDescription && /* @__PURE__ */ jsx20("p", { className: cn19(`${RC4}__sub-description`), children: subDescription })
1423
+ subDescription && /* @__PURE__ */ jsx16("p", { className: cn15(`${RC4}__sub-description`), children: subDescription })
1724
1424
  ] });
1725
1425
  };
1726
1426
  var DoubleString_default = DoubleString;
@@ -1729,15 +1429,15 @@ var DoubleString_default = DoubleString;
1729
1429
  var DoubleString_default2 = DoubleString_default;
1730
1430
 
1731
1431
  // src/Atomic/UI/Hint/Hint.tsx
1732
- import cn20 from "classnames";
1733
- import { useEffect as useEffect11, useRef as useRef8, useState as useState15 } from "react";
1432
+ import cn16 from "classnames";
1433
+ import { useEffect as useEffect10, useRef as useRef7, useState as useState13 } from "react";
1734
1434
  import { createPortal as createPortal2 } from "react-dom";
1735
1435
  import { AlertTriangle as AlertTriangle3, HelpCircle } from "react-feather";
1736
1436
 
1737
1437
  // src/Molecular/CustomIcons/components/HelpCircleFilled.tsx
1738
- import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
1438
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
1739
1439
  function HelpCircleFilled(props) {
1740
- return /* @__PURE__ */ jsxs19(
1440
+ return /* @__PURE__ */ jsxs15(
1741
1441
  "svg",
1742
1442
  {
1743
1443
  xmlns: "http://www.w3.org/2000/svg",
@@ -1746,14 +1446,14 @@ function HelpCircleFilled(props) {
1746
1446
  fill: "none",
1747
1447
  ...props,
1748
1448
  children: [
1749
- /* @__PURE__ */ jsx21(
1449
+ /* @__PURE__ */ jsx17(
1750
1450
  "path",
1751
1451
  {
1752
1452
  fill: "#9AA0B9",
1753
1453
  d: "M8 14.667A6.667 6.667 0 1 0 8 1.333a6.667 6.667 0 0 0 0 13.334Z"
1754
1454
  }
1755
1455
  ),
1756
- /* @__PURE__ */ jsx21(
1456
+ /* @__PURE__ */ jsx17(
1757
1457
  "path",
1758
1458
  {
1759
1459
  stroke: "#fff",
@@ -1808,7 +1508,7 @@ function HandleClickOutsideObj(id, setIsOpen) {
1808
1508
  }
1809
1509
 
1810
1510
  // src/Atomic/UI/Hint/Hint.tsx
1811
- import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
1511
+ import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
1812
1512
  var hintTimeoutMap = /* @__PURE__ */ new Map();
1813
1513
  var isContentHoveredOuter = false;
1814
1514
  var DEFAULT_EMPTY_OBJ = {};
@@ -1834,13 +1534,13 @@ var Hint = ({
1834
1534
  isLoading,
1835
1535
  isCloseOnChildrenClick = false
1836
1536
  }) => {
1837
- const hintRef = useRef8(null);
1838
- const [hintId] = useState15(id ?? key ?? Math.random().toString(16).slice(2));
1839
- const [iAmOpenedOptions] = useState15({ ...I_AM_OPENED_EVENT_OPTIONS, detail: { hintId } });
1840
- const [isOpen, setIsOpen] = useState15(false);
1841
- const [isStyleComputed, setIsStyleComputed] = useState15(false);
1842
- const [handleScroll] = useState15(new HandleScrollObj(setIsOpen));
1843
- const [handleClickOutside] = useState15(new HandleClickOutsideObj(hintId, setIsOpen));
1537
+ const hintRef = useRef7(null);
1538
+ const [hintId] = useState13(id ?? key ?? Math.random().toString(16).slice(2));
1539
+ const [iAmOpenedOptions] = useState13({ ...I_AM_OPENED_EVENT_OPTIONS, detail: { hintId } });
1540
+ const [isOpen, setIsOpen] = useState13(false);
1541
+ const [isStyleComputed, setIsStyleComputed] = useState13(false);
1542
+ const [handleScroll] = useState13(new HandleScrollObj(setIsOpen));
1543
+ const [handleClickOutside] = useState13(new HandleClickOutsideObj(hintId, setIsOpen));
1844
1544
  const isCallbackExist = typeof onClickCallback === "function";
1845
1545
  const handle = {
1846
1546
  onMouseEnter: () => {
@@ -1890,11 +1590,11 @@ var Hint = ({
1890
1590
  }
1891
1591
  };
1892
1592
  const getHintMarkUp = (className2) => {
1893
- return /* @__PURE__ */ jsxs20(
1593
+ return /* @__PURE__ */ jsxs16(
1894
1594
  "div",
1895
1595
  {
1896
1596
  "data-testid": "test-hint-text",
1897
- className: cn20("hint__text", `hint__text_${side}`, `hint--${className2}__text`),
1597
+ className: cn16("hint__text", `hint__text_${side}`, `hint--${className2}__text`),
1898
1598
  onMouseEnter: () => {
1899
1599
  if (isHoverableContent) isContentHoveredOuter = true;
1900
1600
  },
@@ -1902,7 +1602,7 @@ var Hint = ({
1902
1602
  onClick: handle.onClick,
1903
1603
  style: { visibility: isStyleComputed ? "visible" : "hidden" },
1904
1604
  children: [
1905
- isLoading && /* @__PURE__ */ jsx22(Spinner_default, { size: "small" }),
1605
+ isLoading && /* @__PURE__ */ jsx18(Spinner_default, { size: "small" }),
1906
1606
  hint,
1907
1607
  children
1908
1608
  ]
@@ -1959,7 +1659,7 @@ var Hint = ({
1959
1659
  if (!hc) return null;
1960
1660
  return createPortal2(getHintMarkUp(className2), hc);
1961
1661
  };
1962
- useEffect11(() => {
1662
+ useEffect10(() => {
1963
1663
  initHintContainer(hintId, hintContainer);
1964
1664
  const iAmOpenedCallback = (ev) => {
1965
1665
  const event = ev;
@@ -1985,7 +1685,7 @@ var Hint = ({
1985
1685
  }
1986
1686
  };
1987
1687
  }, []);
1988
- useEffect11(() => {
1688
+ useEffect10(() => {
1989
1689
  setIsStyleComputed(false);
1990
1690
  setHintContainerStyles();
1991
1691
  onOpenChange?.(isOpen);
@@ -2004,8 +1704,8 @@ var Hint = ({
2004
1704
  }
2005
1705
  };
2006
1706
  }, [isOpen]);
2007
- return /* @__PURE__ */ jsxs20("div", { "data-testid": testId, className: cn20("hint", className), ref: hintRef, children: [
2008
- /* @__PURE__ */ jsxs20(
1707
+ return /* @__PURE__ */ jsxs16("div", { "data-testid": testId, className: cn16("hint", className), ref: hintRef, children: [
1708
+ /* @__PURE__ */ jsxs16(
2009
1709
  "button",
2010
1710
  {
2011
1711
  tabIndex: isAccessability ? 0 : -1,
@@ -2014,14 +1714,14 @@ var Hint = ({
2014
1714
  onClick: () => handleOpenType === "click" && (isCallbackExist ? onClickCallback?.() : setIsOpen(!isOpen)),
2015
1715
  onMouseEnter: handle.onMouseEnter,
2016
1716
  onMouseLeave: handle.onMouseLeave,
2017
- className: cn20("hint__button", { hint__button_active: isOpen }),
1717
+ className: cn16("hint__button", { hint__button_active: isOpen }),
2018
1718
  children: [
2019
- icon || icon === null || /* @__PURE__ */ jsxs20(Fragment3, { children: [
2020
- variant === "outlined" && /* @__PURE__ */ jsx22(HelpCircle, { width: 16, height: 16, className: "hint__icon outlined" }),
2021
- variant === "filled" && /* @__PURE__ */ jsx22(HelpCircleFilled, { className: "hint__icon filled" }),
2022
- variant === "warning" && /* @__PURE__ */ jsx22(AlertTriangle3, { className: "hint__icon", color: "#F06D8D", width: 16, height: 16 })
1719
+ icon || icon === null || /* @__PURE__ */ jsxs16(Fragment3, { children: [
1720
+ variant === "outlined" && /* @__PURE__ */ jsx18(HelpCircle, { width: 16, height: 16, className: "hint__icon outlined" }),
1721
+ variant === "filled" && /* @__PURE__ */ jsx18(HelpCircleFilled, { className: "hint__icon filled" }),
1722
+ variant === "warning" && /* @__PURE__ */ jsx18(AlertTriangle3, { className: "hint__icon", color: "#F06D8D", width: 16, height: 16 })
2023
1723
  ] }),
2024
- label && /* @__PURE__ */ jsx22("span", { className: cn20("hint__label", { "color--primary": isOpen }), children: typeof label === "string" ? capitalized(label) : label })
1724
+ label && /* @__PURE__ */ jsx18("span", { className: cn16("hint__label", { "color--primary": isOpen }), children: typeof label === "string" ? capitalized(label) : label })
2025
1725
  ]
2026
1726
  }
2027
1727
  ),
@@ -2034,19 +1734,19 @@ var Hint_default = Hint;
2034
1734
  var Hint_default2 = Hint_default;
2035
1735
 
2036
1736
  // src/Atomic/UI/Modal/Modal.tsx
2037
- import cn23 from "classnames";
2038
- import { useEffect as useEffect16, useLayoutEffect as useLayoutEffect3, useMemo as useMemo4, useRef as useRef11 } from "react";
1737
+ import cn19 from "classnames";
1738
+ import { useEffect as useEffect15, useLayoutEffect as useLayoutEffect3, useMemo as useMemo4, useRef as useRef10 } from "react";
2039
1739
 
2040
1740
  // src/Functions/useKeyPress/useHandleKeyPress.ts
2041
- import { useEffect as useEffect13 } from "react";
1741
+ import { useEffect as useEffect12 } from "react";
2042
1742
 
2043
1743
  // src/Functions/useKeyPress/useKeyPress.ts
2044
- import { useCallback, useEffect as useEffect12, useState as useState16 } from "react";
1744
+ import { useCallback, useEffect as useEffect11, useState as useState14 } from "react";
2045
1745
  function isISuspendProcessing(x) {
2046
1746
  return getIsOnlyAnObject(x) && Object.values(x).every((v) => typeof v === "function");
2047
1747
  }
2048
1748
  function useKeyPress(targetKey, clamping = true, isForbidden, suspendProcessing) {
2049
- const [keyPressed, setKeyPressed] = useState16(false);
1749
+ const [keyPressed, setKeyPressed] = useState14(false);
2050
1750
  const safelySuspendProcessing = isISuspendProcessing(suspendProcessing) ? suspendProcessing : {};
2051
1751
  const downHandler = useCallback(
2052
1752
  (event) => {
@@ -2074,7 +1774,7 @@ function useKeyPress(targetKey, clamping = true, isForbidden, suspendProcessing)
2074
1774
  // ? хоть в коде используем "безопасный"
2075
1775
  [clamping, targetKey, suspendProcessing]
2076
1776
  );
2077
- useEffect12(
1777
+ useEffect11(
2078
1778
  () => {
2079
1779
  const handleDown = (event) => downHandler(event);
2080
1780
  const handleUp = (event) => upHandler(event);
@@ -2106,12 +1806,12 @@ function useHandleKeyPress({
2106
1806
  const { isWithSubmitAndCloseManagement } = withEventManagementStructure || {};
2107
1807
  const isPressEnter = useKeyPress_default("Enter", withClamping, isWithSubmitAndCloseManagement, suspendProcessing);
2108
1808
  const isPressEscape = useKeyPress_default("Escape", withClamping, isWithSubmitAndCloseManagement, suspendProcessing);
2109
- useEffect13(() => {
1809
+ useEffect12(() => {
2110
1810
  if (!isWithSubmitAndCloseManagement && isPressEscape && typeof escCallback === "function") {
2111
1811
  escCallback();
2112
1812
  }
2113
1813
  }, [isPressEscape, escCallback]);
2114
- useEffect13(() => {
1814
+ useEffect12(() => {
2115
1815
  if (!isWithSubmitAndCloseManagement && isPressEnter && typeof enterCallback === "function") {
2116
1816
  enterCallback();
2117
1817
  }
@@ -2198,17 +1898,17 @@ function dispatchEventForModalManagement(realEvent, nameOfCustomEvent, uniqueIdO
2198
1898
  }
2199
1899
 
2200
1900
  // src/Atomic/UI/Modal/partials/ModalFooter.tsx
2201
- import cn21 from "classnames";
1901
+ import cn17 from "classnames";
2202
1902
  import { memo } from "react";
2203
- import { jsx as jsx23 } from "react/jsx-runtime";
1903
+ import { jsx as jsx19 } from "react/jsx-runtime";
2204
1904
  var ModalFooter = memo(
2205
1905
  ({ className = "", children, wrapperRef, testId = "modal-footer" }) => {
2206
- return /* @__PURE__ */ jsx23(
1906
+ return /* @__PURE__ */ jsx19(
2207
1907
  "footer",
2208
1908
  {
2209
1909
  "data-testid": testId,
2210
1910
  ref: wrapperRef,
2211
- className: cn21("modal__footer", className),
1911
+ className: cn17("modal__footer", className),
2212
1912
  role: "contentinfo",
2213
1913
  "aria-label": "Modal footer",
2214
1914
  children
@@ -2220,10 +1920,10 @@ ModalFooter.displayName = "ModalFooter";
2220
1920
  var ModalFooter_default = ModalFooter;
2221
1921
 
2222
1922
  // src/Atomic/UI/Modal/partials/ModalTitle.tsx
2223
- import cn22 from "classnames";
2224
- import { memo as memo2, useLayoutEffect, useMemo as useMemo3, useRef as useRef9 } from "react";
1923
+ import cn18 from "classnames";
1924
+ import { memo as memo2, useLayoutEffect, useMemo as useMemo3, useRef as useRef8 } from "react";
2225
1925
  import { X as X3 } from "react-feather";
2226
- import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
1926
+ import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
2227
1927
  var ModalTitle = memo2(
2228
1928
  ({
2229
1929
  variant = "primary",
@@ -2236,44 +1936,44 @@ var ModalTitle = memo2(
2236
1936
  wrapperRef,
2237
1937
  testId = "modal-title"
2238
1938
  }) => {
2239
- const closeModalRef = useRef9(onClose);
1939
+ const closeModalRef = useRef8(onClose);
2240
1940
  const handleClick = useMemo3(() => () => closeModalRef.current?.(), []);
2241
1941
  useLayoutEffect(() => {
2242
1942
  closeModalRef.current = closeBtnDisable ? void 0 : onClose;
2243
1943
  }, [onClose, closeBtnDisable]);
2244
- return /* @__PURE__ */ jsxs21(
1944
+ return /* @__PURE__ */ jsxs17(
2245
1945
  "header",
2246
1946
  {
2247
1947
  "data-testid": testId,
2248
1948
  ref: wrapperRef,
2249
- className: cn22("modal__header", className, {
1949
+ className: cn18("modal__header", className, {
2250
1950
  [`modal__header-${variant}`]: variant
2251
1951
  }),
2252
1952
  role: "banner",
2253
1953
  "aria-label": "Modal header",
2254
1954
  children: [
2255
- /* @__PURE__ */ jsx24(
1955
+ /* @__PURE__ */ jsx20(
2256
1956
  "span",
2257
1957
  {
2258
- className: cn22("modal__header-title", {
1958
+ className: cn18("modal__header-title", {
2259
1959
  [`modal__header-${variant}-title`]: variant
2260
1960
  }),
2261
1961
  id: `${testId}-heading`,
2262
1962
  children
2263
1963
  }
2264
1964
  ),
2265
- !isForced && /* @__PURE__ */ jsx24(
1965
+ !isForced && /* @__PURE__ */ jsx20(
2266
1966
  "button",
2267
1967
  {
2268
1968
  type: "button",
2269
1969
  onClick: handleClick,
2270
- className: cn22("modal-close-icon-box", {
1970
+ className: cn18("modal-close-icon-box", {
2271
1971
  "modal-close-icon-box-primary": variant === "primary",
2272
1972
  "modal-close-icon-box--hidden": noHeaderCloseBtn
2273
1973
  }),
2274
1974
  "aria-label": "Close modal",
2275
1975
  title: "Close modal",
2276
- children: !noHeaderCloseBtn && /* @__PURE__ */ jsx24(X3, { className: "modal-close-icon", role: "img", "aria-hidden": "true" })
1976
+ children: !noHeaderCloseBtn && /* @__PURE__ */ jsx20(X3, { className: "modal-close-icon", role: "img", "aria-hidden": "true" })
2277
1977
  }
2278
1978
  )
2279
1979
  ]
@@ -2285,10 +1985,10 @@ ModalTitle.displayName = "ModalTitle";
2285
1985
  var ModalTitle_default = ModalTitle;
2286
1986
 
2287
1987
  // src/Atomic/UI/Modal/partials/useMobileModal.tsx
2288
- import { useCallback as useCallback2, useEffect as useEffect15, useLayoutEffect as useLayoutEffect2, useRef as useRef10, useState as useState18 } from "react";
1988
+ import { useCallback as useCallback2, useEffect as useEffect14, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState16 } from "react";
2289
1989
 
2290
1990
  // src/Functions/useIsMobile/useIsMobile.ts
2291
- import { useEffect as useEffect14, useState as useState17 } from "react";
1991
+ import { useEffect as useEffect13, useState as useState15 } from "react";
2292
1992
  function useIsMobile({ isWithoutWidthCheck = false } = {}) {
2293
1993
  const isIPad = () => {
2294
1994
  const ua = navigator.userAgent || navigator.vendor || window.opera;
@@ -2299,8 +1999,8 @@ function useIsMobile({ isWithoutWidthCheck = false } = {}) {
2299
1999
  const getIsMobile = () => {
2300
2000
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || isIPad();
2301
2001
  };
2302
- const [isMobile, setIsMobile] = useState17(getIsMobile());
2303
- useEffect14(() => {
2002
+ const [isMobile, setIsMobile] = useState15(getIsMobile());
2003
+ useEffect13(() => {
2304
2004
  if (getIsMobile()) {
2305
2005
  setIsMobile(true);
2306
2006
  }
@@ -2314,7 +2014,7 @@ function useIsMobile({ isWithoutWidthCheck = false } = {}) {
2314
2014
  var useIsMobile_default = useIsMobile;
2315
2015
 
2316
2016
  // src/Atomic/UI/Modal/partials/useMobileModal.tsx
2317
- import { jsx as jsx25 } from "react/jsx-runtime";
2017
+ import { jsx as jsx21 } from "react/jsx-runtime";
2318
2018
  var SCROLL_DIRECTION = {
2319
2019
  UP: "up",
2320
2020
  DOWN: "down"
@@ -2325,27 +2025,27 @@ function useMobileModal({
2325
2025
  withFixedFooter = false,
2326
2026
  isOpen = false
2327
2027
  }) {
2328
- const modalMobileContainerRef = useRef10(null);
2329
- const modalMobileHeaderRef = useRef10(null);
2330
- const modalMobileFooterRef = useRef10(null);
2331
- const modalMobileBodyRef = useRef10(null);
2028
+ const modalMobileContainerRef = useRef9(null);
2029
+ const modalMobileHeaderRef = useRef9(null);
2030
+ const modalMobileFooterRef = useRef9(null);
2031
+ const modalMobileBodyRef = useRef9(null);
2332
2032
  const { isMobile } = useIsMobile_default();
2333
- const [modalHeight, setModalHeight] = useState18(0);
2334
- const [modalsLogic, setModalsLogic] = useState18({
2033
+ const [modalHeight, setModalHeight] = useState16(0);
2034
+ const [modalsLogic, setModalsLogic] = useState16({
2335
2035
  IS_HEADER_HIDDEN: false,
2336
2036
  IS_HEADER_STICKY: false,
2337
2037
  IS_FOOTER_HIDDEN: false,
2338
2038
  IS_FOOTER_STICKY: withFixedFooter
2339
2039
  });
2340
- const [modalsLogicProps, setModalsLogicProps] = useState18({
2040
+ const [modalsLogicProps, setModalsLogicProps] = useState16({
2341
2041
  headerHeight: 0,
2342
2042
  footerHeight: 0
2343
2043
  });
2344
- const [scrollDirection, setScrollDirection] = useState18(SCROLL_DIRECTION.UP);
2345
- const [scrollTopPrev, setScrollTopPrev] = useState18(0);
2346
- const [scrollTop, setScrollTop] = useState18(0);
2347
- const [scrollHeight, setScrollHeight] = useState18(1);
2348
- const [, setContainerScrollHeight] = useState18(1);
2044
+ const [scrollDirection, setScrollDirection] = useState16(SCROLL_DIRECTION.UP);
2045
+ const [scrollTopPrev, setScrollTopPrev] = useState16(0);
2046
+ const [scrollTop, setScrollTop] = useState16(0);
2047
+ const [scrollHeight, setScrollHeight] = useState16(1);
2048
+ const [, setContainerScrollHeight] = useState16(1);
2349
2049
  useLayoutEffect2(() => {
2350
2050
  const el = modalMobileContainerRef?.current;
2351
2051
  if (el) {
@@ -2357,7 +2057,7 @@ function useMobileModal({
2357
2057
  });
2358
2058
  }
2359
2059
  }, [modalMobileContainerRef?.current]);
2360
- useEffect15(() => {
2060
+ useEffect14(() => {
2361
2061
  setScrollDirection(
2362
2062
  (prevScrollDirection) => scrollTop < scrollTopPrev ? SCROLL_DIRECTION.UP : scrollTop > scrollTopPrev ? SCROLL_DIRECTION.DOWN : prevScrollDirection
2363
2063
  );
@@ -2386,7 +2086,7 @@ function useMobileModal({
2386
2086
  }
2387
2087
  }
2388
2088
  });
2389
- useEffect15(() => {
2089
+ useEffect14(() => {
2390
2090
  if (isMobile && withMobileLogic) {
2391
2091
  const { footerHeight, headerHeight } = modalsLogicProps;
2392
2092
  setModalsLogic((prevStickyLogic) => ({
@@ -2422,7 +2122,7 @@ function useMobileModal({
2422
2122
  }));
2423
2123
  }
2424
2124
  }, [modalMobileFooterRef?.current?.getBoundingClientRect()?.height]);
2425
- useEffect15(() => {
2125
+ useEffect14(() => {
2426
2126
  if (modalMobileContainerRef?.current) {
2427
2127
  setContainerScrollHeight(modalMobileContainerRef?.current?.scrollHeight);
2428
2128
  setScrollHeight(
@@ -2430,7 +2130,7 @@ function useMobileModal({
2430
2130
  );
2431
2131
  }
2432
2132
  }, [scrollTop, modalMobileContainerRef?.current, window.innerHeight]);
2433
- useEffect15(() => {
2133
+ useEffect14(() => {
2434
2134
  window.addEventListener("resize", () => {
2435
2135
  setContainerScrollHeight((containerScrollHeight) => {
2436
2136
  setScrollHeight(containerScrollHeight - window.innerHeight);
@@ -2441,7 +2141,7 @@ function useMobileModal({
2441
2141
  const renderModal = useCallback2(
2442
2142
  (modal) => {
2443
2143
  if (!isMobile || !withMobileLogic) return modal;
2444
- return /* @__PURE__ */ jsx25("div", { className: "modal-mobile-container", ref: modalMobileContainerRef, children: modal });
2144
+ return /* @__PURE__ */ jsx21("div", { className: "modal-mobile-container", ref: modalMobileContainerRef, children: modal });
2445
2145
  },
2446
2146
  [isMobile, withMobileLogic]
2447
2147
  );
@@ -2460,7 +2160,7 @@ function useMobileModal({
2460
2160
  }
2461
2161
 
2462
2162
  // src/Atomic/UI/Modal/Modal.tsx
2463
- import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
2163
+ import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
2464
2164
  var attrsForModalBodyDefault = {};
2465
2165
  var KEY_CODE = Object.freeze({
2466
2166
  ENTER: 13,
@@ -2524,11 +2224,11 @@ function Modal({
2524
2224
  withMobileLogic,
2525
2225
  children
2526
2226
  }) {
2527
- const internalRef = useRef11(null);
2227
+ const internalRef = useRef10(null);
2528
2228
  const modalRef = ref || internalRef;
2529
- const onConfirmRef = useRef11(onConfirm);
2530
- const closeModalRef = useRef11(closeModal);
2531
- const onDeclineRef = useRef11(onDecline);
2229
+ const onConfirmRef = useRef10(onConfirm);
2230
+ const closeModalRef = useRef10(closeModal);
2231
+ const onDeclineRef = useRef10(onDecline);
2532
2232
  const isSubmittingByEnter = submitOnEnter === false ? false : isSubmittingByEnterOuter;
2533
2233
  const isClosingByEsc = closeOnEsc === false ? false : isClosingByEscOuter;
2534
2234
  const withEventManagementStructure = getWithEventManagementStructure(id, withEventManagement);
@@ -2587,7 +2287,7 @@ function Modal({
2587
2287
  onDeclineRef.current = isOnDeclineBlocked ? () => {
2588
2288
  } : onDecline;
2589
2289
  }, [onDecline, isOnDeclineBlocked]);
2590
- useEffect16(() => {
2290
+ useEffect15(() => {
2591
2291
  const outerTarget = getIsOnlyAnObject(withEventManagement) ? withEventManagement.listenersTarget : void 0;
2592
2292
  const target = outerTarget ?? document;
2593
2293
  const onKeyPress = getOnKeyPress({ id, onSubmit: handle.confirm, onClose: handle.close, suspendProcessing });
@@ -2603,7 +2303,7 @@ function Modal({
2603
2303
  };
2604
2304
  }, []);
2605
2305
  if (!isOpen) return null;
2606
- return /* @__PURE__ */ jsx26(
2306
+ return /* @__PURE__ */ jsx22(
2607
2307
  "div",
2608
2308
  {
2609
2309
  id: `${id}`,
@@ -2614,8 +2314,8 @@ function Modal({
2614
2314
  "aria-modal": "true",
2615
2315
  "aria-labelledby": `${testId}-title`,
2616
2316
  children: renderModal(
2617
- /* @__PURE__ */ jsxs22(Fragment4, { children: [
2618
- /* @__PURE__ */ jsx26(
2317
+ /* @__PURE__ */ jsxs18(Fragment4, { children: [
2318
+ /* @__PURE__ */ jsx22(
2619
2319
  "div",
2620
2320
  {
2621
2321
  "data-testid": `${testId}-overlay`,
@@ -2624,23 +2324,23 @@ function Modal({
2624
2324
  role: "presentation"
2625
2325
  }
2626
2326
  ),
2627
- /* @__PURE__ */ jsxs22(
2327
+ /* @__PURE__ */ jsxs18(
2628
2328
  "div",
2629
2329
  {
2630
2330
  ref: modalRef,
2631
2331
  style: { width: typeof size === "number" ? `${size}px` : `${size?.replace("px", "")}px` },
2632
- className: cn23(className, {
2332
+ className: cn19(className, {
2633
2333
  "modal": isOpen,
2634
2334
  "modal--no-header": isOpen && noHeader && !customHeader,
2635
2335
  "modal-mobile": isOpen && isMobile,
2636
2336
  "hidden": !isOpen
2637
2337
  }),
2638
2338
  children: [
2639
- customHeader || !noHeader && /* @__PURE__ */ jsx26(
2339
+ customHeader || !noHeader && /* @__PURE__ */ jsx22(
2640
2340
  ModalTitle_default,
2641
2341
  {
2642
2342
  wrapperRef: modalMobileHeaderRef,
2643
- className: cn23({
2343
+ className: cn19({
2644
2344
  "modal__header--hidden": MODALS_LOGIC.IS_HEADER_HIDDEN,
2645
2345
  "modal__header--sticky": !MODALS_LOGIC.IS_HEADER_HIDDEN && MODALS_LOGIC.IS_HEADER_STICKY
2646
2346
  }),
@@ -2648,38 +2348,38 @@ function Modal({
2648
2348
  isForced: forced,
2649
2349
  onClose: handle.close,
2650
2350
  noHeaderCloseBtn,
2651
- children: /* @__PURE__ */ jsx26("span", { id: `${testId}-title`, children: renderModalTitle({ mode, title, onlyTitle }) })
2351
+ children: /* @__PURE__ */ jsx22("span", { id: `${testId}-title`, children: renderModalTitle({ mode, title, onlyTitle }) })
2652
2352
  }
2653
2353
  ),
2654
- /* @__PURE__ */ jsx26(
2354
+ /* @__PURE__ */ jsx22(
2655
2355
  "div",
2656
2356
  {
2657
2357
  ...atributesForModalBody,
2658
2358
  ref: modalMobileBodyRef,
2659
- className: cn23("modal__body", {
2359
+ className: cn19("modal__body", {
2660
2360
  "modal__body--no-footer": noFooter
2661
2361
  }),
2662
2362
  role: "document",
2663
2363
  children
2664
2364
  }
2665
2365
  ),
2666
- (!noFooter || customFooter) && /* @__PURE__ */ jsx26(
2366
+ (!noFooter || customFooter) && /* @__PURE__ */ jsx22(
2667
2367
  ModalFooter_default,
2668
2368
  {
2669
2369
  wrapperRef: modalMobileFooterRef,
2670
- className: cn23({
2370
+ className: cn19({
2671
2371
  "modal__footer--hidden": MODALS_LOGIC.IS_FOOTER_HIDDEN,
2672
2372
  "modal__footer--sticky": !MODALS_LOGIC.IS_FOOTER_HIDDEN && MODALS_LOGIC.IS_FOOTER_STICKY && scrollTop !== scrollHeight,
2673
2373
  "modal__footer_with-left-content": leftContentOfFooter
2674
2374
  }),
2675
- children: customFooter || /* @__PURE__ */ jsxs22(Fragment4, { children: [
2375
+ children: customFooter || /* @__PURE__ */ jsxs18(Fragment4, { children: [
2676
2376
  leftContentOfFooter,
2677
- (!noCloseBtn || !noConfirmBtn) && /* @__PURE__ */ jsxs22("div", { className: "modal__buttons-block", children: [
2678
- !noCloseBtn && /* @__PURE__ */ jsx26(
2377
+ (!noCloseBtn || !noConfirmBtn) && /* @__PURE__ */ jsxs18("div", { className: "modal__buttons-block", children: [
2378
+ !noCloseBtn && /* @__PURE__ */ jsx22(
2679
2379
  Button_default,
2680
2380
  {
2681
2381
  testId: "modal",
2682
- className: cn23(closeBtnClassName, btnClassNames),
2382
+ className: cn19(closeBtnClassName, btnClassNames),
2683
2383
  variant: closeBtnVariant || "dark-outline",
2684
2384
  onClick: handle.decline,
2685
2385
  label: closeBtnText || "Cancel",
@@ -2690,13 +2390,13 @@ function Modal({
2690
2390
  "aria-label": "Close modal"
2691
2391
  }
2692
2392
  ),
2693
- !noConfirmBtn && /* @__PURE__ */ jsx26(
2393
+ !noConfirmBtn && /* @__PURE__ */ jsx22(
2694
2394
  Button_default,
2695
2395
  {
2696
2396
  testId: "modal",
2697
2397
  onClick: handle.confirm,
2698
2398
  label: confirmBtnLabel || mode && mode?.[0].toUpperCase() + mode?.slice(1) || "Apply",
2699
- className: cn23("ml5", confirmBtnClassName, btnClassNames),
2399
+ className: cn19("ml5", confirmBtnClassName, btnClassNames),
2700
2400
  variant: confirmBtnVariant,
2701
2401
  disabled: confirmBtnDisable,
2702
2402
  icon: confirmBtnIcon,
@@ -2720,9 +2420,9 @@ Modal.displayName = "Modal";
2720
2420
  var Modal_default = Modal;
2721
2421
 
2722
2422
  // src/Atomic/UI/Modal/ModalHOC.tsx
2723
- import cn24 from "classnames";
2724
- import { useEffect as useEffect17, useLayoutEffect as useLayoutEffect4, useMemo as useMemo5, useRef as useRef12 } from "react";
2725
- import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
2423
+ import cn20 from "classnames";
2424
+ import { useEffect as useEffect16, useLayoutEffect as useLayoutEffect4, useMemo as useMemo5, useRef as useRef11 } from "react";
2425
+ import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
2726
2426
  var ModalHOC = ({
2727
2427
  id,
2728
2428
  zIndex = 100,
@@ -2740,8 +2440,8 @@ var ModalHOC = ({
2740
2440
  isClosingByEsc: isClosingByEscOuter = true,
2741
2441
  closeOnEsc
2742
2442
  }) => {
2743
- const modalRef = useRef12(null);
2744
- const closeModalRef = useRef12(closeModal);
2443
+ const modalRef = useRef11(null);
2444
+ const closeModalRef = useRef11(closeModal);
2745
2445
  const isClosingByEsc = closeOnEsc === false ? false : isClosingByEscOuter;
2746
2446
  const withEventManagementStructure = getWithEventManagementStructure(id, withEventManagement);
2747
2447
  const handleClose = useMemo5(() => () => closeModalRef.current?.(), []);
@@ -2752,301 +2452,56 @@ var ModalHOC = ({
2752
2452
  useLayoutEffect4(() => {
2753
2453
  closeModalRef.current = closeBtnDisable ? void 0 : closeModal;
2754
2454
  }, [closeModal, closeBtnDisable]);
2755
- useEffect17(() => {
2756
- const onKeyPress = getOnKeyPress({ id, onClose: handleClose });
2757
- if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
2758
- if (isClosingByEsc) document.addEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
2759
- }
2760
- return () => {
2761
- if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
2762
- if (isClosingByEsc) document.removeEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
2763
- }
2764
- };
2765
- }, []);
2766
- if (!isOpen) return null;
2767
- return /* @__PURE__ */ jsxs23("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
2768
- /* @__PURE__ */ jsx27("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
2769
- /* @__PURE__ */ jsx27(
2770
- "div",
2771
- {
2772
- ref: modalRef,
2773
- style: { width: size },
2774
- className: cn24(className, "modal"),
2775
- role: "dialog",
2776
- "aria-modal": "true",
2777
- "aria-labelledby": testId,
2778
- tabIndex: -1,
2779
- children
2780
- }
2781
- )
2782
- ] });
2783
- };
2784
- var ModalHOC_default = ModalHOC;
2785
-
2786
- // src/Atomic/UI/Modal/index.ts
2787
- var Modal_default2 = Modal_default;
2788
-
2789
- // src/Atomic/UI/MonoAccordion/index.ts
2790
- var MonoAccordion_default2 = MonoAccordion_default;
2791
-
2792
- // src/Atomic/UI/NavLine/NavLine.tsx
2793
- import cn25 from "classnames";
2794
- import { createRef, useCallback as useCallback3, useEffect as useEffect18, useRef as useRef13, useState as useState19 } from "react";
2795
- import * as Icons3 from "react-feather";
2796
- import { NavLink as NavLink3 } from "react-router-dom";
2797
- import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
2798
- var CN4 = "nav-line";
2799
- function checkedRef2(ref) {
2800
- if (!ref) return null;
2801
- return typeof ref === "function" ? (node) => ref(node) : ref;
2802
- }
2803
- var NavLine = ({
2804
- root = "",
2805
- activeTab,
2806
- variant,
2807
- onChange,
2808
- className,
2809
- items,
2810
- children,
2811
- isLocal = false,
2812
- mode,
2813
- isNavigateByKeys,
2814
- isTabLoading,
2815
- scrollMode = false,
2816
- testId = CN4
2817
- }) => {
2818
- const [navLineItems, setNavLineItems] = useState19([]);
2819
- const wrapperRef = useRef13(null);
2820
- const wrapperInnerRef = useRef13(null);
2821
- const [showScrollButtons, setShowScrollButtons] = useState19(false);
2822
- const [canScrollLeft, setCanScrollLeft] = useState19(false);
2823
- const [canScrollRight, setCanScrollRight] = useState19(false);
2824
- const [isScrollBlocked, setIsScrollBlocked] = useState19(false);
2825
- const checkScroll = useCallback3(() => {
2826
- const inner = wrapperInnerRef.current;
2827
- if (!inner) return;
2828
- const hasOverflow = inner.scrollWidth > inner.clientWidth;
2829
- const canScrollLeft2 = inner.scrollLeft > 0;
2830
- const canScrollRight2 = inner.scrollLeft < inner.scrollWidth - inner.clientWidth;
2831
- setShowScrollButtons(hasOverflow);
2832
- setCanScrollLeft(canScrollLeft2);
2833
- setCanScrollRight(canScrollRight2);
2834
- }, []);
2835
- const scroll = useCallback3(
2836
- (direction) => {
2837
- if (isScrollBlocked || !wrapperInnerRef.current) return;
2838
- setIsScrollBlocked(true);
2839
- const scrollAmount = 100;
2840
- const offset = direction === "left" ? -scrollAmount : scrollAmount;
2841
- try {
2842
- wrapperInnerRef.current.scrollBy({
2843
- left: offset,
2844
- behavior: "smooth"
2845
- });
2846
- } catch (error) {
2847
- console.error("scrollBy is not supported", error);
2848
- if (wrapperInnerRef.current) {
2849
- wrapperInnerRef.current.scrollLeft += offset;
2850
- }
2851
- }
2852
- setTimeout(() => {
2853
- setIsScrollBlocked(false);
2854
- checkScroll();
2855
- }, 300);
2856
- },
2857
- [isScrollBlocked, checkScroll]
2858
- );
2859
- const handleWheel = useCallback3(
2860
- (e) => {
2861
- if (!scrollMode) return;
2862
- e.preventDefault();
2863
- if (e.deltaY > 0) {
2864
- scroll("right");
2865
- } else {
2866
- scroll("left");
2867
- }
2868
- },
2869
- [scroll, scrollMode]
2870
- );
2871
- const onTabChange = useCallback3(
2872
- (item) => {
2873
- if (!item.disabled && !(mode === "create" && item.tabId !== "general")) {
2874
- onChange(item.tabId);
2875
- }
2876
- },
2877
- [mode, onChange]
2878
- );
2879
- const navigateByKeys = useCallback3(
2880
- (event) => {
2881
- if (event.repeat) return;
2882
- const activeTabIndex = items.findIndex((tab) => tab.tabId === activeTab);
2883
- const nextTabID = items[activeTabIndex + 1]?.tabId;
2884
- const prevTabID = items[activeTabIndex - 1]?.tabId;
2885
- if (event.keyCode === KEYBOARD_KEY_CODES.ARROW_RIGHT && nextTabID) {
2886
- onChange(nextTabID);
2887
- } else if (event.keyCode === KEYBOARD_KEY_CODES.ARROW_LEFT && prevTabID) {
2888
- onChange(prevTabID);
2889
- }
2890
- },
2891
- [activeTab, items, onChange]
2892
- );
2893
- useEffect18(() => {
2894
- setNavLineItems(
2895
- items.map((item) => ({
2896
- ...item,
2897
- ref: createRef()
2898
- }))
2899
- );
2900
- }, [items]);
2901
- useEffect18(() => {
2902
- if (isNavigateByKeys && !isTabLoading) {
2903
- document.addEventListener("keydown", navigateByKeys);
2904
- }
2905
- return () => document.removeEventListener("keydown", navigateByKeys);
2906
- }, [isNavigateByKeys, isTabLoading, navigateByKeys]);
2907
- useEffect18(() => {
2908
- if (!scrollMode) return;
2909
- const inner = wrapperInnerRef.current;
2910
- if (!inner) return;
2911
- const resizeObserver = new ResizeObserver(checkScroll);
2912
- resizeObserver.observe(inner);
2913
- inner.addEventListener("scroll", checkScroll);
2914
- inner.addEventListener("wheel", handleWheel, { passive: false });
2915
- checkScroll();
2916
- return () => {
2917
- resizeObserver.disconnect();
2918
- inner.removeEventListener("scroll", checkScroll);
2919
- inner.removeEventListener("wheel", handleWheel);
2920
- };
2921
- }, [scrollMode, checkScroll, handleWheel]);
2922
- const renderNavItem = (item) => {
2923
- const Icon = item.icon ? Icons3[item.icon] : null;
2924
- const isDisabled = item.disabled || mode === "create" && item.tabId !== "general";
2925
- const commonProps = {
2926
- "title": item.title,
2927
- "className": cn25(
2928
- { "nav-line__item": !variant },
2929
- { "nav-line--simple__item": variant === "simple" },
2930
- { active: activeTab === item.tabId },
2931
- { disabled: isDisabled },
2932
- { "nav-line__item--hidden": item.isHidden }
2933
- ),
2934
- "role": "tab",
2935
- "aria-selected": activeTab === item.tabId,
2936
- "aria-disabled": isDisabled,
2937
- "tabIndex": isDisabled ? -1 : 0
2938
- };
2939
- const content = /* @__PURE__ */ jsxs24("div", { className: "nav-line__content", children: [
2940
- Icon && /* @__PURE__ */ jsx28("div", { className: "nav-line__item--icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx28(Icon, {}) }),
2941
- /* @__PURE__ */ jsx28("span", { className: cn25({ "nav-line__item--label": variant !== "simple" }), children: item.label }),
2942
- item.count !== void 0 && /* @__PURE__ */ jsxs24("span", { className: "nav-line-count", "aria-label": `${item.count} items`, children: [
2943
- "(",
2944
- item.count,
2945
- ")"
2946
- ] })
2947
- ] });
2948
- if (isLocal) {
2949
- return /* @__PURE__ */ jsx28(
2950
- "span",
2951
- {
2952
- ...commonProps,
2953
- ref: checkedRef2(item.ref),
2954
- onClick: () => !isDisabled && onTabChange(item),
2955
- onKeyPress: (e) => {
2956
- if (!isDisabled && (e.key === "Enter" || e.key === " ")) {
2957
- e.preventDefault();
2958
- onTabChange(item);
2959
- }
2960
- },
2961
- children: content
2962
- },
2963
- `tab__${item.tabId}`
2964
- );
2455
+ useEffect16(() => {
2456
+ const onKeyPress = getOnKeyPress({ id, onClose: handleClose });
2457
+ if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
2458
+ if (isClosingByEsc) document.addEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
2965
2459
  }
2966
- return /* @__PURE__ */ jsx28(
2967
- NavLink3,
2460
+ return () => {
2461
+ if (withEventManagementStructure.isWithSubmitAndCloseManagement && !!onKeyPress) {
2462
+ if (isClosingByEsc) document.removeEventListener(EVENTS.iGotAnEscKeyPress.name, onKeyPress);
2463
+ }
2464
+ };
2465
+ }, []);
2466
+ if (!isOpen) return null;
2467
+ return /* @__PURE__ */ jsxs19("div", { id: `${id}`, style: { zIndex }, "data-testid": testId, className: "modal-box j5", role: "presentation", children: [
2468
+ /* @__PURE__ */ jsx23("div", { className: "modal-overlay", onClick: handleClose, role: "presentation", "aria-hidden": "true" }),
2469
+ /* @__PURE__ */ jsx23(
2470
+ "div",
2968
2471
  {
2969
- ...commonProps,
2970
- to: `${root}${item?.linkChapter || item.tabId}/`,
2971
- onClick: (e) => {
2972
- if (isDisabled) {
2973
- e.preventDefault();
2974
- }
2975
- },
2976
- children: content
2977
- },
2978
- `tab__${item.tabId}`
2979
- );
2980
- };
2981
- return /* @__PURE__ */ jsx28("div", { className: "nav-line-wrapper", children: /* @__PURE__ */ jsxs24(
2982
- "div",
2983
- {
2984
- "data-testid": testId,
2985
- className: cn25(
2986
- { [CN4]: !variant },
2987
- { [`${CN4}--simple`]: variant === "simple" },
2988
- { [`${CN4}--scroll-mode`]: scrollMode },
2989
- className
2990
- ),
2991
- ref: wrapperRef,
2992
- children: [
2993
- scrollMode && showScrollButtons && /* @__PURE__ */ jsx28(
2994
- "button",
2995
- {
2996
- type: "button",
2997
- "data-testid": "nav-line-scroll-prev",
2998
- className: "nav-line--simple__arrow nav-line--simple__arrow--prev",
2999
- onClick: () => scroll("left"),
3000
- "aria-label": "Scroll previous",
3001
- disabled: !canScrollLeft,
3002
- children: /* @__PURE__ */ jsx28(Icons3.ChevronLeft, {})
3003
- }
3004
- ),
3005
- /* @__PURE__ */ jsx28(
3006
- "div",
3007
- {
3008
- ref: wrapperInnerRef,
3009
- className: cn25({ "nav-line__inner": !variant }, { "nav-line--simple__inner": variant === "simple" }),
3010
- role: "tablist",
3011
- "aria-orientation": "horizontal",
3012
- children: navLineItems.map(renderNavItem)
3013
- }
3014
- ),
3015
- scrollMode && showScrollButtons && /* @__PURE__ */ jsx28(
3016
- "button",
3017
- {
3018
- type: "button",
3019
- "data-testid": "nav-line-scroll-next",
3020
- className: "nav-line--simple__arrow nav-line--simple__arrow--next",
3021
- onClick: () => scroll("right"),
3022
- "aria-label": "Scroll next",
3023
- disabled: !canScrollRight,
3024
- children: /* @__PURE__ */ jsx28(Icons3.ChevronRight, {})
3025
- }
3026
- ),
3027
- children && /* @__PURE__ */ jsx28("div", { className: "nav-line__body", role: "tabpanel", children })
3028
- ]
3029
- }
3030
- ) });
2472
+ ref: modalRef,
2473
+ style: { width: size },
2474
+ className: cn20(className, "modal"),
2475
+ role: "dialog",
2476
+ "aria-modal": "true",
2477
+ "aria-labelledby": testId,
2478
+ tabIndex: -1,
2479
+ children
2480
+ }
2481
+ )
2482
+ ] });
3031
2483
  };
3032
- var NavLine_default = NavLine;
2484
+ var ModalHOC_default = ModalHOC;
2485
+
2486
+ // src/Atomic/UI/Modal/index.ts
2487
+ var Modal_default2 = Modal_default;
3033
2488
 
3034
- // src/Atomic/UI/NavLine/index.ts
3035
- var NavLine_default2 = NavLine_default;
2489
+ // src/Atomic/UI/MonoAccordion/index.ts
2490
+ var MonoAccordion_default2 = MonoAccordion_default;
3036
2491
 
3037
2492
  // src/Atomic/UI/PageTitle/PageTitle.tsx
3038
- import cn26 from "classnames";
2493
+ import cn21 from "classnames";
3039
2494
  import { Home } from "react-feather";
3040
- import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
2495
+ import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
3041
2496
  var RC5 = "page-title";
3042
- var PageTitle = ({ title, pages, children, testId = RC5 }) => /* @__PURE__ */ jsxs25("div", { "data-testid": testId, className: RC5, role: "region", "aria-label": title, children: [
3043
- /* @__PURE__ */ jsxs25("div", { className: `${RC5}__wrap`, children: [
3044
- /* @__PURE__ */ jsx29("h1", { className: `${RC5}__title`, children: title }),
3045
- pages.length > 0 && /* @__PURE__ */ jsx29("nav", { className: `${RC5}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxs25("ol", { className: `${RC5}__list`, children: [
3046
- /* @__PURE__ */ jsx29("li", { children: /* @__PURE__ */ jsx29("a", { className: `${RC5}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ jsx29(Home, { "aria-hidden": "true" }) }) }),
3047
- pages.map(({ name, path }, index) => /* @__PURE__ */ jsxs25("li", { children: [
3048
- /* @__PURE__ */ jsx29("span", { className: `${RC5}__delimiter`, "aria-hidden": "true", children: "/" }),
3049
- pages.length - 1 === index ? /* @__PURE__ */ jsx29("span", { className: cn26(`${RC5}__link`, `${RC5}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ jsx29("a", { className: `${RC5}__link`, href: path, children: name })
2497
+ var PageTitle = ({ title, pages, children, testId = RC5 }) => /* @__PURE__ */ jsxs20("div", { "data-testid": testId, className: RC5, role: "region", "aria-label": title, children: [
2498
+ /* @__PURE__ */ jsxs20("div", { className: `${RC5}__wrap`, children: [
2499
+ /* @__PURE__ */ jsx24("h1", { className: `${RC5}__title`, children: title }),
2500
+ pages.length > 0 && /* @__PURE__ */ jsx24("nav", { className: `${RC5}__pages`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxs20("ol", { className: `${RC5}__list`, children: [
2501
+ /* @__PURE__ */ jsx24("li", { children: /* @__PURE__ */ jsx24("a", { className: `${RC5}__link`, href: "/", "aria-label": "Home page", children: /* @__PURE__ */ jsx24(Home, { "aria-hidden": "true" }) }) }),
2502
+ pages.map(({ name, path }, index) => /* @__PURE__ */ jsxs20("li", { children: [
2503
+ /* @__PURE__ */ jsx24("span", { className: `${RC5}__delimiter`, "aria-hidden": "true", children: "/" }),
2504
+ pages.length - 1 === index ? /* @__PURE__ */ jsx24("span", { className: cn21(`${RC5}__link`, `${RC5}__link_last`), "aria-current": "page", children: name }) : /* @__PURE__ */ jsx24("a", { className: `${RC5}__link`, href: path, children: name })
3050
2505
  ] }, path))
3051
2506
  ] }) })
3052
2507
  ] }),
@@ -3058,7 +2513,7 @@ var PageTitle_default = PageTitle;
3058
2513
  var PageTitle_default2 = PageTitle_default;
3059
2514
 
3060
2515
  // src/Atomic/UI/Price/Price.tsx
3061
- import cn27 from "classnames";
2516
+ import cn22 from "classnames";
3062
2517
 
3063
2518
  // src/Functions/fieldValueFormatters.js
3064
2519
  var getSafelyValue = (value) => value !== void 0 && value !== null ? value?.toString?.() || "" : "";
@@ -3168,15 +2623,15 @@ var formatToPriceWithCurrency = (value, currencyCode, symbolPosition = "before")
3168
2623
  };
3169
2624
 
3170
2625
  // src/Atomic/UI/Price/Price.tsx
3171
- import { jsx as jsx30 } from "react/jsx-runtime";
3172
- var CN5 = "price";
3173
- var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN5 }) => {
2626
+ import { jsx as jsx25 } from "react/jsx-runtime";
2627
+ var CN3 = "price";
2628
+ var Price = ({ value, currencyCode, isSymbolAfter, className, testId = CN3 }) => {
3174
2629
  if (value === void 0 || value === null) return null;
3175
- return /* @__PURE__ */ jsx30(
2630
+ return /* @__PURE__ */ jsx25(
3176
2631
  "div",
3177
2632
  {
3178
2633
  "data-testid": testId,
3179
- className: cn27(CN5, className),
2634
+ className: cn22(CN3, className),
3180
2635
  role: "contentinfo",
3181
2636
  "aria-label": `Price: ${formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")}`,
3182
2637
  children: formatToPriceWithCurrency(value, currencyCode, isSymbolAfter ? "after" : "before")
@@ -3189,15 +2644,15 @@ var Price_default = Price;
3189
2644
  var Price_default2 = Price_default;
3190
2645
 
3191
2646
  // src/Atomic/UI/PriceRange/PriceRange.tsx
3192
- import cn28 from "classnames";
3193
- import { jsx as jsx31, jsxs as jsxs26 } from "react/jsx-runtime";
3194
- var CN6 = "price-range";
3195
- var PriceRange = ({ from, to, mode, testId = CN6 }) => {
3196
- return /* @__PURE__ */ jsx31("div", { "data-testid": testId, className: cn28(CN6, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ jsxs26("span", { "aria-live": "polite", children: [
2647
+ import cn23 from "classnames";
2648
+ import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
2649
+ var CN4 = "price-range";
2650
+ var PriceRange = ({ from, to, mode, testId = CN4 }) => {
2651
+ return /* @__PURE__ */ jsx26("div", { "data-testid": testId, className: cn23(CN4, "j4"), role: "region", "aria-label": "Price range", children: mode === "simple" ? /* @__PURE__ */ jsxs21("span", { "aria-live": "polite", children: [
3197
2652
  from,
3198
2653
  " - ",
3199
2654
  to
3200
- ] }) : /* @__PURE__ */ jsxs26("span", { "aria-live": "polite", children: [
2655
+ ] }) : /* @__PURE__ */ jsxs21("span", { "aria-live": "polite", children: [
3201
2656
  formatToPriceWithUSD(from?.toString()),
3202
2657
  " - ",
3203
2658
  formatToPriceWithUSD(to?.toString())
@@ -3209,9 +2664,9 @@ var PriceRange_default = PriceRange;
3209
2664
  var PriceRange_default2 = PriceRange_default;
3210
2665
 
3211
2666
  // src/Atomic/UI/ProgressLine/ProgressLine.tsx
3212
- import cn29 from "classnames";
3213
- import { jsx as jsx32, jsxs as jsxs27 } from "react/jsx-runtime";
3214
- var CN7 = "progress-line";
2667
+ import cn24 from "classnames";
2668
+ import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
2669
+ var CN5 = "progress-line";
3215
2670
  var ProgressLine = ({
3216
2671
  label = "",
3217
2672
  labelAlign = "left",
@@ -3230,7 +2685,7 @@ var ProgressLine = ({
3230
2685
  useVariantLabelColor = true,
3231
2686
  isShowLine = true,
3232
2687
  className,
3233
- testId = CN7
2688
+ testId = CN5
3234
2689
  }) => {
3235
2690
  const getFilledLineWidth = () => {
3236
2691
  if (value > maxValue) value = maxValue;
@@ -3238,21 +2693,21 @@ var ProgressLine = ({
3238
2693
  };
3239
2694
  const renderLabel = () => {
3240
2695
  if (!label) return null;
3241
- return /* @__PURE__ */ jsx32("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
2696
+ return /* @__PURE__ */ jsx27("div", { className: `progress-line__wrapper__label align-${labelAlign}`, children: label });
3242
2697
  };
3243
2698
  const renderProgressValue = () => {
3244
2699
  if (!renderValue) return null;
3245
- return /* @__PURE__ */ jsx32("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
2700
+ return /* @__PURE__ */ jsx27("div", { className: "progress-line__wrapper__value", "aria-live": "polite", children: renderValueInPercents ? getFilledLineWidth() : `${addBitDepthPoints(String(value))} ${valueMeasurement}` });
3246
2701
  };
3247
2702
  const renderExtremums = () => {
3248
2703
  if (!showExtremums) return null;
3249
- return /* @__PURE__ */ jsxs27("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
3250
- /* @__PURE__ */ jsx32("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
3251
- /* @__PURE__ */ jsx32("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
2704
+ return /* @__PURE__ */ jsxs22("div", { "aria-hidden": "true", className: `progress-line__wrapper__extremums position-${extremumsPosition}`, children: [
2705
+ /* @__PURE__ */ jsx27("div", { className: "progress-line__wrapper__extremums--min", children: renderValueInPercents ? "0 %" : `${minValue} ${valueMeasurement}` }),
2706
+ /* @__PURE__ */ jsx27("div", { className: "progress-line__wrapper__extremums--max", children: renderValueInPercents ? "100 %" : `${maxValue} ${valueMeasurement}` })
3252
2707
  ] });
3253
2708
  };
3254
2709
  const renderFilledLine = () => {
3255
- return /* @__PURE__ */ jsx32(
2710
+ return /* @__PURE__ */ jsx27(
3256
2711
  "div",
3257
2712
  {
3258
2713
  className: "progress-line__wrapper__line--filled",
@@ -3266,14 +2721,14 @@ var ProgressLine = ({
3266
2721
  );
3267
2722
  };
3268
2723
  const renderLine = () => {
3269
- return /* @__PURE__ */ jsxs27("div", { className: "progress-line__wrapper__line", children: [
2724
+ return /* @__PURE__ */ jsxs22("div", { className: "progress-line__wrapper__line", children: [
3270
2725
  renderExtremums(),
3271
2726
  renderFilledLine()
3272
2727
  ] });
3273
2728
  };
3274
- return /* @__PURE__ */ jsxs27("div", { className: cn29(CN7, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
2729
+ return /* @__PURE__ */ jsxs22("div", { className: cn24(CN5, className), "data-testid": testId, role: "region", "aria-label": "Progress line", children: [
3275
2730
  renderLabel(),
3276
- /* @__PURE__ */ jsxs27(
2731
+ /* @__PURE__ */ jsxs22(
3277
2732
  "div",
3278
2733
  {
3279
2734
  className: `progress-line__wrapper variant-${useVariantLabelColor && variant} value-${valueVerticalPosition}-${valueHorizontalPosition} ${className}`,
@@ -3290,13 +2745,65 @@ var ProgressLine_default = ProgressLine;
3290
2745
  // src/Atomic/UI/ProgressLine/index.ts
3291
2746
  var ProgressLine_default2 = ProgressLine_default;
3292
2747
 
2748
+ // src/Atomic/UI/Status/Status.tsx
2749
+ import cn25 from "classnames";
2750
+ import { jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
2751
+ function defaultOnClick2() {
2752
+ }
2753
+ var Status = ({
2754
+ icon,
2755
+ value,
2756
+ label,
2757
+ status,
2758
+ disabled,
2759
+ type,
2760
+ active = 0,
2761
+ pause = 0,
2762
+ className,
2763
+ noBackground,
2764
+ children,
2765
+ testId = "status",
2766
+ onClick = defaultOnClick2
2767
+ }) => {
2768
+ if (!status) return null;
2769
+ const text = children && typeof children === "string" ? children : value || label || status;
2770
+ const formattedLabel = text?.[0].toUpperCase() + text?.slice(1);
2771
+ return /* @__PURE__ */ jsx28("div", { onClick, "data-testid": testId, className: cn25({ disabled }, className), children: type === "number" ? /* @__PURE__ */ jsx28("div", { children: active === 0 && pause === 0 ? /* @__PURE__ */ jsx28("div", { className: "status status--error", children: /* @__PURE__ */ jsx28("span", { children: active }) }) : /* @__PURE__ */ jsxs23("div", { className: "status status--warning", children: [
2772
+ /* @__PURE__ */ jsx28("span", { className: "status--number-active", children: active }),
2773
+ /* @__PURE__ */ jsx28("span", { className: "color--gray-gull", children: " / " }),
2774
+ /* @__PURE__ */ jsx28("span", { className: pause > 0 ? "color--froly" : "color--gray-gull", children: pause })
2775
+ ] }) }) : /* @__PURE__ */ jsxs23(
2776
+ "div",
2777
+ {
2778
+ className: cn25(
2779
+ "status",
2780
+ `status--${status}`,
2781
+ {
2782
+ "status--no-bg": noBackground && status === "pause",
2783
+ "color--gray-gull": noBackground && status === "pause" && !className,
2784
+ "j4": !!icon
2785
+ },
2786
+ className
2787
+ ),
2788
+ children: [
2789
+ icon,
2790
+ formattedLabel
2791
+ ]
2792
+ }
2793
+ ) });
2794
+ };
2795
+ var Status_default = Status;
2796
+
2797
+ // src/Atomic/UI/Status/index.ts
2798
+ var Status_default2 = Status_default;
2799
+
3293
2800
  // src/Atomic/UI/Table/Table.js
3294
- import React24 from "react";
3295
- import cn35 from "classnames";
2801
+ import React22 from "react";
2802
+ import cn32 from "classnames";
3296
2803
 
3297
2804
  // src/Atomic/UI/Table/Partials/TdHeader.js
3298
- import React19 from "react";
3299
- import cn30 from "classnames";
2805
+ import React16 from "react";
2806
+ import cn26 from "classnames";
3300
2807
 
3301
2808
  // src/Langs.js
3302
2809
  var Langs = {
@@ -3467,50 +2974,168 @@ var Langs = {
3467
2974
  var Langs_default = Langs;
3468
2975
 
3469
2976
  // src/Atomic/UI/Table/Partials/TdHeader.js
3470
- import { jsx as jsx33, jsxs as jsxs28 } from "react/jsx-runtime";
2977
+ import { jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
3471
2978
  var TdHeader = ({ item, testId = "td-header" }) => {
3472
2979
  const txt = Langs_default[global.lng];
3473
2980
  switch (item.type) {
3474
2981
  case "double":
3475
- return /* @__PURE__ */ jsx33("th", { "data-testid": testId, children: /* @__PURE__ */ jsxs28("div", { className: "j46", children: [
3476
- /* @__PURE__ */ jsx33("div", { className: "", children: txt.labels[item.left] || item.left }),
3477
- /* @__PURE__ */ jsx33("div", { className: "", children: txt.labels[item.right] || item.right })
2982
+ return /* @__PURE__ */ jsx29("th", { "data-testid": testId, children: /* @__PURE__ */ jsxs24("div", { className: "j46", children: [
2983
+ /* @__PURE__ */ jsx29("div", { className: "", children: txt.labels[item.left] || item.left }),
2984
+ /* @__PURE__ */ jsx29("div", { className: "", children: txt.labels[item.right] || item.right })
3478
2985
  ] }) });
3479
2986
  default:
3480
- return /* @__PURE__ */ jsx33("th", { "data-testid": testId, className: cn30(item.className), children: /* @__PURE__ */ jsxs28("div", { className: cn30({ df: item.button }), children: [
3481
- /* @__PURE__ */ jsx33("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
3482
- item.button && /* @__PURE__ */ jsx33("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
2987
+ return /* @__PURE__ */ jsx29("th", { "data-testid": testId, className: cn26(item.className), children: /* @__PURE__ */ jsxs24("div", { className: cn26({ df: item.button }), children: [
2988
+ /* @__PURE__ */ jsx29("div", { className: "mr5", children: txt.labels[item.label] || item.label }),
2989
+ item.button && /* @__PURE__ */ jsx29("div", { className: "cards-table__btn", children: txt.buttons[item.button] || item.button })
3483
2990
  ] }) });
3484
2991
  }
3485
2992
  };
3486
2993
  var TdHeader_default = TdHeader;
3487
2994
 
3488
2995
  // src/Atomic/UI/Table/Partials/TdRow.js
3489
- import React23, { useState as useState23 } from "react";
3490
- import cn34 from "classnames";
2996
+ import React21, { useState as useState21 } from "react";
2997
+ import cn31 from "classnames";
3491
2998
 
3492
2999
  // src/Atomic/UI/Table/TdTypes/TdRange.js
3493
- import { jsx as jsx34, jsxs as jsxs29 } from "react/jsx-runtime";
3000
+ import { jsx as jsx30, jsxs as jsxs25 } from "react/jsx-runtime";
3494
3001
  var TdRange = ({ item }) => {
3495
3002
  if (!item) return false;
3496
- return /* @__PURE__ */ jsxs29("div", { children: [
3497
- /* @__PURE__ */ jsx34("span", { children: item.from }),
3498
- /* @__PURE__ */ jsx34("span", { children: " - " }),
3499
- /* @__PURE__ */ jsx34("span", { children: item.to })
3003
+ return /* @__PURE__ */ jsxs25("div", { children: [
3004
+ /* @__PURE__ */ jsx30("span", { children: item.from }),
3005
+ /* @__PURE__ */ jsx30("span", { children: " - " }),
3006
+ /* @__PURE__ */ jsx30("span", { children: item.to })
3500
3007
  ] });
3501
3008
  };
3502
3009
  var TdRange_default = TdRange;
3503
3010
 
3504
3011
  // src/Atomic/UI/Table/Partials/TdCell.js
3505
- import React22, { useState as useState22 } from "react";
3012
+ import React20, { useState as useState20 } from "react";
3013
+
3014
+ // src/Atomic/UI/Accordion/AccordionItem.tsx
3015
+ import cn27 from "classnames";
3016
+ import { useEffect as useEffect17, useRef as useRef12, useState as useState17 } from "react";
3017
+ import * as Icons from "react-feather";
3018
+ import { jsx as jsx31, jsxs as jsxs26 } from "react/jsx-runtime";
3019
+ var DefaultLink = ({ to, className, children }) => /* @__PURE__ */ jsx31("a", { href: to, className, children });
3020
+ var AccordionItem = ({
3021
+ item,
3022
+ onClick,
3023
+ isOpen,
3024
+ className,
3025
+ children,
3026
+ noChevron,
3027
+ linkComponent: LinkComponent = DefaultLink,
3028
+ testId = "accordion-item"
3029
+ }) => {
3030
+ const Icon = Icons[item.icon];
3031
+ const [maxHeight, setMaxHeight] = useState17(0);
3032
+ const ref = useRef12(null);
3033
+ const getItemsHeight = () => {
3034
+ let itemHeight = 0;
3035
+ ref.current?.childNodes.forEach((el) => {
3036
+ itemHeight += el.offsetHeight;
3037
+ });
3038
+ return itemHeight + 20;
3039
+ };
3040
+ useEffect17(() => {
3041
+ setMaxHeight(isOpen ? getItemsHeight() : 0);
3042
+ }, [isOpen]);
3043
+ const calculateStatusCount = () => {
3044
+ return item?.rows?.reduce(
3045
+ (acc, row) => {
3046
+ const result = row.cols.reduce(
3047
+ (accum, col) => ({
3048
+ active: accum.active + (col.status === "active" ? 1 : 0),
3049
+ pause: accum.pause + (col.status === "pause" ? 1 : 0)
3050
+ }),
3051
+ { active: 0, pause: 0 }
3052
+ );
3053
+ return {
3054
+ active: acc.active + result.active,
3055
+ pause: acc.pause + result.pause
3056
+ };
3057
+ },
3058
+ { active: 0, pause: 0 }
3059
+ );
3060
+ };
3061
+ return /* @__PURE__ */ jsxs26(
3062
+ "div",
3063
+ {
3064
+ "data-testid": testId,
3065
+ className: cn27("accordion--item", className),
3066
+ role: "region",
3067
+ "aria-labelledby": `accordion-title-${item.title}`,
3068
+ children: [
3069
+ /* @__PURE__ */ jsxs26(
3070
+ "div",
3071
+ {
3072
+ className: cn27("accordion--title-box", {
3073
+ "accordion--title-open": isOpen
3074
+ }),
3075
+ onClick: () => onClick(!isOpen),
3076
+ id: `accordion-title-${item.title}`,
3077
+ role: "button",
3078
+ "aria-expanded": isOpen,
3079
+ "aria-controls": `accordion-content-${item.title}`,
3080
+ tabIndex: 0,
3081
+ children: [
3082
+ /* @__PURE__ */ jsxs26("div", { className: "j4 no-wrap", children: [
3083
+ item?.icon && /* @__PURE__ */ jsx31(Icon, { className: cn27("mr5", item?.className), "aria-hidden": "true" }),
3084
+ /* @__PURE__ */ jsx31("span", { className: "accordion--title", children: item.title || "Menu Chapter" })
3085
+ ] }),
3086
+ /* @__PURE__ */ jsxs26("div", { className: "j6 accordion-title__right-box", children: [
3087
+ item.status && /* @__PURE__ */ jsx31("div", { className: "mr5", children: /* @__PURE__ */ jsx31(
3088
+ Status_default2,
3089
+ {
3090
+ type: item?.status.type,
3091
+ value: item?.status.value,
3092
+ status: item?.status.status,
3093
+ active: calculateStatusCount()?.active,
3094
+ pause: calculateStatusCount()?.pause
3095
+ }
3096
+ ) }),
3097
+ !noChevron && /* @__PURE__ */ jsx31(
3098
+ Icons.ChevronRight,
3099
+ {
3100
+ "aria-hidden": "true",
3101
+ className: cn27("accordion--title-chevron", {
3102
+ "accordion--title-chevron-open": isOpen
3103
+ })
3104
+ }
3105
+ )
3106
+ ] })
3107
+ ]
3108
+ }
3109
+ ),
3110
+ /* @__PURE__ */ jsx31(
3111
+ "div",
3112
+ {
3113
+ ref,
3114
+ style: { maxHeight },
3115
+ className: cn27("accordion--content", {
3116
+ "accordion--content-is-open": isOpen
3117
+ }),
3118
+ id: `accordion-content-${item.title}`,
3119
+ role: "region",
3120
+ "aria-labelledby": `accordion-title-${item.title}`,
3121
+ children: item.children ? item.children.map((el) => {
3122
+ return /* @__PURE__ */ jsx31(LinkComponent, { to: el.link, className: "accordion--content-item accordion--menu-link", children: el?.title || "Menu item" }, el.id);
3123
+ }) : children
3124
+ }
3125
+ )
3126
+ ]
3127
+ }
3128
+ );
3129
+ };
3130
+ var AccordionItem_default = AccordionItem;
3506
3131
 
3507
3132
  // src/Atomic/UI/Table/TdTypes/TdActions.js
3508
- import React20, { useState as useState20 } from "react";
3509
- import * as Icons4 from "react-feather";
3133
+ import React18, { useState as useState18 } from "react";
3134
+ import * as Icons2 from "react-feather";
3510
3135
 
3511
3136
  // src/Atomic/FormElements/Switcher/Switcher.tsx
3512
- import cn31 from "classnames";
3513
- import { jsx as jsx35, jsxs as jsxs30 } from "react/jsx-runtime";
3137
+ import cn28 from "classnames";
3138
+ import { jsx as jsx32, jsxs as jsxs27 } from "react/jsx-runtime";
3514
3139
  var RC6 = "switcher";
3515
3140
  var Switcher = ({
3516
3141
  label,
@@ -3523,34 +3148,34 @@ var Switcher = ({
3523
3148
  hintSide,
3524
3149
  testId = "switcher"
3525
3150
  }) => {
3526
- return /* @__PURE__ */ jsxs30(
3151
+ return /* @__PURE__ */ jsxs27(
3527
3152
  "div",
3528
3153
  {
3529
3154
  "data-testid": testId,
3530
- className: cn31(RC6, className, { [`${RC6}_disabled`]: disabled }),
3155
+ className: cn28(RC6, className, { [`${RC6}_disabled`]: disabled }),
3531
3156
  children: [
3532
- /* @__PURE__ */ jsxs30(
3157
+ /* @__PURE__ */ jsxs27(
3533
3158
  "button",
3534
3159
  {
3535
3160
  type: "button",
3536
3161
  "data-testid": `${testId}-button`,
3537
- className: cn31(`${RC6}__button`),
3162
+ className: cn28(`${RC6}__button`),
3538
3163
  disabled,
3539
3164
  onClick: (e) => onChange(!isActive, e),
3540
3165
  children: [
3541
- /* @__PURE__ */ jsx35(
3166
+ /* @__PURE__ */ jsx32(
3542
3167
  "div",
3543
3168
  {
3544
- className: cn31(`${RC6}__button-content`, {
3169
+ className: cn28(`${RC6}__button-content`, {
3545
3170
  [`${RC6}__button-content_active`]: isActive
3546
3171
  }),
3547
- children: /* @__PURE__ */ jsx35("div", { className: `${RC6}__ball` })
3172
+ children: /* @__PURE__ */ jsx32("div", { className: `${RC6}__ball` })
3548
3173
  }
3549
3174
  ),
3550
- label && /* @__PURE__ */ jsx35(
3175
+ label && /* @__PURE__ */ jsx32(
3551
3176
  "span",
3552
3177
  {
3553
- className: cn31(`${RC6}__label`, {
3178
+ className: cn28(`${RC6}__label`, {
3554
3179
  [`${RC6}__label_bold`]: isLabelBold
3555
3180
  }),
3556
3181
  children: label
@@ -3559,7 +3184,7 @@ var Switcher = ({
3559
3184
  ]
3560
3185
  }
3561
3186
  ),
3562
- hint && /* @__PURE__ */ jsx35(Hint_default, { className: `${RC6}__hint`, hint, side: hintSide })
3187
+ hint && /* @__PURE__ */ jsx32(Hint_default, { className: `${RC6}__hint`, hint, side: hintSide })
3563
3188
  ]
3564
3189
  }
3565
3190
  );
@@ -3567,61 +3192,61 @@ var Switcher = ({
3567
3192
  var Switcher_default = Switcher;
3568
3193
 
3569
3194
  // src/Atomic/UI/Table/TdTypes/TdActions.js
3570
- import { jsx as jsx36 } from "react/jsx-runtime";
3195
+ import { jsx as jsx33 } from "react/jsx-runtime";
3571
3196
  var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
3572
3197
  if (!actions) return false;
3573
- const [state, setState] = useState20(actions);
3198
+ const [state, setState] = useState18(actions);
3574
3199
  const handleArrayChange = (value, index, prop) => {
3575
3200
  state[index][prop] = value;
3576
3201
  setState([...state]);
3577
3202
  onChange(state);
3578
3203
  };
3579
- return /* @__PURE__ */ jsx36("div", { className: "j6", children: actions?.map((action, index) => {
3204
+ return /* @__PURE__ */ jsx33("div", { className: "j6", children: actions?.map((action, index) => {
3580
3205
  switch (action.type) {
3581
3206
  case "download":
3582
- return /* @__PURE__ */ jsx36(
3207
+ return /* @__PURE__ */ jsx33(
3583
3208
  "div",
3584
3209
  {
3585
3210
  className: "td-actions--item td-actions--download",
3586
3211
  onClick: () => {
3587
3212
  },
3588
- children: /* @__PURE__ */ jsx36(Icons4.Download, {})
3213
+ children: /* @__PURE__ */ jsx33(Icons2.Download, {})
3589
3214
  },
3590
3215
  index
3591
3216
  );
3592
3217
  case "edit":
3593
- return /* @__PURE__ */ jsx36(
3218
+ return /* @__PURE__ */ jsx33(
3594
3219
  "div",
3595
3220
  {
3596
3221
  className: "td-actions--item td-actions--edit",
3597
3222
  onClick: () => {
3598
3223
  },
3599
- children: /* @__PURE__ */ jsx36(Icons4.Edit3, {})
3224
+ children: /* @__PURE__ */ jsx33(Icons2.Edit3, {})
3600
3225
  },
3601
3226
  index
3602
3227
  );
3603
3228
  case "delete":
3604
- return /* @__PURE__ */ jsx36(
3229
+ return /* @__PURE__ */ jsx33(
3605
3230
  "div",
3606
3231
  {
3607
3232
  className: "td-actions--item td-actions--delete",
3608
3233
  onClick: () => onActionClick("delete", rowItem),
3609
- children: /* @__PURE__ */ jsx36(Icons4.Trash2, {})
3234
+ children: /* @__PURE__ */ jsx33(Icons2.Trash2, {})
3610
3235
  },
3611
3236
  index
3612
3237
  );
3613
3238
  case "undo":
3614
- return /* @__PURE__ */ jsx36(
3239
+ return /* @__PURE__ */ jsx33(
3615
3240
  "div",
3616
3241
  {
3617
3242
  className: "td-actions--item td-actions--undo",
3618
3243
  onClick: () => onActionClick("undo", rowItem),
3619
- children: /* @__PURE__ */ jsx36(Icons4.RotateCcw, {})
3244
+ children: /* @__PURE__ */ jsx33(Icons2.RotateCcw, {})
3620
3245
  },
3621
3246
  index
3622
3247
  );
3623
3248
  case "switcher":
3624
- return /* @__PURE__ */ jsx36("div", { className: "df", children: /* @__PURE__ */ jsx36(
3249
+ return /* @__PURE__ */ jsx33("div", { className: "df", children: /* @__PURE__ */ jsx33(
3625
3250
  Switcher_default,
3626
3251
  {
3627
3252
  label: action.label || null,
@@ -3636,28 +3261,28 @@ var TdActions = ({ actions, onChange, onActionClick, rowItem }) => {
3636
3261
  };
3637
3262
 
3638
3263
  // src/Atomic/UI/Table/TdTypes/TdPriority.js
3639
- import React21 from "react";
3640
- import cn32 from "classnames";
3264
+ import React19 from "react";
3265
+ import cn29 from "classnames";
3641
3266
  import { ArrowDown as ArrowDown2, ArrowUp as ArrowUp2 } from "react-feather";
3642
- import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
3267
+ import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
3643
3268
  var TdPriority = ({ onClick, rowIndex, cardLength }) => {
3644
- return /* @__PURE__ */ jsxs31("div", { className: "cards-table__priority", children: [
3645
- /* @__PURE__ */ jsx37("span", { className: "mr5", children: rowIndex + 1 }),
3646
- /* @__PURE__ */ jsxs31("div", { className: "df", children: [
3647
- /* @__PURE__ */ jsx37(
3269
+ return /* @__PURE__ */ jsxs28("div", { className: "cards-table__priority", children: [
3270
+ /* @__PURE__ */ jsx34("span", { className: "mr5", children: rowIndex + 1 }),
3271
+ /* @__PURE__ */ jsxs28("div", { className: "df", children: [
3272
+ /* @__PURE__ */ jsx34(
3648
3273
  ArrowDown2,
3649
3274
  {
3650
3275
  onClick: () => onClick(rowIndex),
3651
- className: cn32("table--icon", {
3276
+ className: cn29("table--icon", {
3652
3277
  disabled: rowIndex + 1 === cardLength
3653
3278
  })
3654
3279
  }
3655
3280
  ),
3656
- /* @__PURE__ */ jsx37(
3281
+ /* @__PURE__ */ jsx34(
3657
3282
  ArrowUp2,
3658
3283
  {
3659
3284
  onClick: () => onClick(rowIndex, true),
3660
- className: cn32("table--icon", { disabled: rowIndex === 0 })
3285
+ className: cn29("table--icon", { disabled: rowIndex === 0 })
3661
3286
  }
3662
3287
  )
3663
3288
  ] })
@@ -3666,17 +3291,17 @@ var TdPriority = ({ onClick, rowIndex, cardLength }) => {
3666
3291
  var TdPriority_default = TdPriority;
3667
3292
 
3668
3293
  // src/Atomic/UI/Table/TdTypes/TdWeight.js
3669
- import { useEffect as useEffect19, useState as useState21 } from "react";
3670
- import cn33 from "classnames";
3671
- import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
3294
+ import { useEffect as useEffect18, useState as useState19 } from "react";
3295
+ import cn30 from "classnames";
3296
+ import { Fragment as Fragment5, jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
3672
3297
  var TdWeight = ({ value, percent, onChange, className }) => {
3673
- const [state, setState] = useState21(value);
3298
+ const [state, setState] = useState19(value);
3674
3299
  const {
3675
3300
  isToggled: isEdited,
3676
3301
  toggleOff: unsetIsEdited,
3677
3302
  toggleOn: setIsEdited
3678
3303
  } = useOutsideToggle(false);
3679
- useEffect19(() => {
3304
+ useEffect18(() => {
3680
3305
  setState(value);
3681
3306
  }, [value, isEdited]);
3682
3307
  const handleKeyUp = ({ keyCode, target }) => {
@@ -3686,7 +3311,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
3686
3311
  unsetIsEdited();
3687
3312
  }
3688
3313
  };
3689
- return /* @__PURE__ */ jsx38(Fragment5, { children: isEdited ? /* @__PURE__ */ jsx38(
3314
+ return /* @__PURE__ */ jsx35(Fragment5, { children: isEdited ? /* @__PURE__ */ jsx35(
3690
3315
  Input,
3691
3316
  {
3692
3317
  value: state,
@@ -3695,9 +3320,9 @@ var TdWeight = ({ value, percent, onChange, className }) => {
3695
3320
  onKeyUp: handleKeyUp,
3696
3321
  autoFocus: true
3697
3322
  }
3698
- ) : /* @__PURE__ */ jsxs32("div", { className: cn33("td-weight", className), onClick: setIsEdited, children: [
3699
- /* @__PURE__ */ jsx38("span", { children: value }),
3700
- /* @__PURE__ */ jsxs32("span", { className: "ml2 color--grey-gull", children: [
3323
+ ) : /* @__PURE__ */ jsxs29("div", { className: cn30("td-weight", className), onClick: setIsEdited, children: [
3324
+ /* @__PURE__ */ jsx35("span", { children: value }),
3325
+ /* @__PURE__ */ jsxs29("span", { className: "ml2 color--grey-gull", children: [
3701
3326
  "(",
3702
3327
  percent,
3703
3328
  "%)"
@@ -3707,7 +3332,7 @@ var TdWeight = ({ value, percent, onChange, className }) => {
3707
3332
  var TdWeight_default = TdWeight;
3708
3333
 
3709
3334
  // src/Atomic/UI/Table/Partials/TdCell.js
3710
- import { jsx as jsx39 } from "react/jsx-runtime";
3335
+ import { jsx as jsx36 } from "react/jsx-runtime";
3711
3336
  var TdCell = ({
3712
3337
  type,
3713
3338
  item,
@@ -3720,22 +3345,22 @@ var TdCell = ({
3720
3345
  rowItem,
3721
3346
  isDeleted
3722
3347
  }) => {
3723
- const [isAccordionOpen, setIsAccordionOpen] = useState22(item.isOpen);
3348
+ const [isAccordionOpen, setIsAccordionOpen] = useState20(item.isOpen);
3724
3349
  const percent = item.type === "weight" && getAdviceWeight(isDeleted ? 0 : item.value);
3725
3350
  switch (type) {
3726
3351
  case "accordion":
3727
- return /* @__PURE__ */ jsx39(
3352
+ return /* @__PURE__ */ jsx36(
3728
3353
  AccordionItem_default,
3729
3354
  {
3730
3355
  className: item.itemClassName,
3731
3356
  item,
3732
3357
  isOpen: isAccordionOpen,
3733
3358
  onClick: (e) => setIsAccordionOpen(e),
3734
- children: /* @__PURE__ */ jsx39(Table_default, { rows: item.rows, className: "accordion--table" })
3359
+ children: /* @__PURE__ */ jsx36(Table_default, { rows: item.rows, className: "accordion--table" })
3735
3360
  }
3736
3361
  );
3737
3362
  case "actions":
3738
- return /* @__PURE__ */ jsx39(
3363
+ return /* @__PURE__ */ jsx36(
3739
3364
  TdActions,
3740
3365
  {
3741
3366
  rowItem,
@@ -3745,11 +3370,11 @@ var TdCell = ({
3745
3370
  }
3746
3371
  );
3747
3372
  case "advancedTags":
3748
- return /* @__PURE__ */ jsx39(AdvancedTags_default, { items: item });
3373
+ return /* @__PURE__ */ jsx36(AdvancedTags_default, { items: item });
3749
3374
  case "link":
3750
- return /* @__PURE__ */ jsx39("a", { href: item.link, children: item.label });
3375
+ return /* @__PURE__ */ jsx36("a", { href: item.link, children: item.label });
3751
3376
  case "priority":
3752
- return /* @__PURE__ */ jsx39(
3377
+ return /* @__PURE__ */ jsx36(
3753
3378
  TdPriority_default,
3754
3379
  {
3755
3380
  rowIndex,
@@ -3758,7 +3383,7 @@ var TdCell = ({
3758
3383
  }
3759
3384
  );
3760
3385
  case "status":
3761
- return /* @__PURE__ */ jsx39(
3386
+ return /* @__PURE__ */ jsx36(
3762
3387
  Status_default,
3763
3388
  {
3764
3389
  className: item.className,
@@ -3767,9 +3392,9 @@ var TdCell = ({
3767
3392
  }
3768
3393
  );
3769
3394
  case "tags":
3770
- return item.map((tag, index) => /* @__PURE__ */ jsx39(Tag_default, { label: tag.label }, index));
3395
+ return item.map((tag, index) => /* @__PURE__ */ jsx36(Tag_default, { label: tag.label }, index));
3771
3396
  case "weight":
3772
- return /* @__PURE__ */ jsx39(
3397
+ return /* @__PURE__ */ jsx36(
3773
3398
  TdWeight_default,
3774
3399
  {
3775
3400
  value: item.value,
@@ -3778,13 +3403,13 @@ var TdCell = ({
3778
3403
  }
3779
3404
  );
3780
3405
  default:
3781
- return /* @__PURE__ */ jsx39("span", { className: item.className, children: item.value });
3406
+ return /* @__PURE__ */ jsx36("span", { className: item.className, children: item.value });
3782
3407
  }
3783
3408
  };
3784
3409
  var TdCell_default = TdCell;
3785
3410
 
3786
3411
  // src/Atomic/UI/Table/Partials/TdRow.js
3787
- import { Fragment as Fragment6, jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
3412
+ import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs30 } from "react/jsx-runtime";
3788
3413
  var TdRow = ({
3789
3414
  item,
3790
3415
  onChange,
@@ -3801,27 +3426,27 @@ var TdRow = ({
3801
3426
  isDeleted,
3802
3427
  testId = "td-row"
3803
3428
  }) => {
3804
- const [isOpen, setIsOpen] = useState23(false);
3429
+ const [isOpen, setIsOpen] = useState21(false);
3805
3430
  const handleChange = handleObjectChange(item, () => onChange({ ...item }));
3806
- return /* @__PURE__ */ jsxs33(Fragment6, { children: [
3807
- /* @__PURE__ */ jsxs33("tr", { "data-testid": testId, children: [
3808
- type && rowSpan && /* @__PURE__ */ jsx40("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ jsx40(
3431
+ return /* @__PURE__ */ jsxs30(Fragment6, { children: [
3432
+ /* @__PURE__ */ jsxs30("tr", { "data-testid": testId, children: [
3433
+ type && rowSpan && /* @__PURE__ */ jsx37("td", { className: "rel", rowSpan: rowSpan + 1, children: /* @__PURE__ */ jsx37(
3809
3434
  "span",
3810
3435
  {
3811
- className: cn34(
3436
+ className: cn31(
3812
3437
  type && `cards-table__score cards-table__score-${cardStatus}`
3813
3438
  ),
3814
- children: /* @__PURE__ */ jsx40(TdRange_default, { item: range })
3439
+ children: /* @__PURE__ */ jsx37(TdRange_default, { item: range })
3815
3440
  }
3816
3441
  ) }),
3817
3442
  Object.entries(item).map(
3818
- ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx40(
3443
+ ([key, value]) => key === "id" || key === "isDeleted" ? null : /* @__PURE__ */ jsx37(
3819
3444
  "td",
3820
3445
  {
3821
- className: cn34("cards-table__body-item", {
3446
+ className: cn31("cards-table__body-item", {
3822
3447
  "cards-table__accordion": value.type === "accordion"
3823
3448
  }),
3824
- children: /* @__PURE__ */ jsx40(
3449
+ children: /* @__PURE__ */ jsx37(
3825
3450
  TdCell_default,
3826
3451
  {
3827
3452
  onActionClick,
@@ -3841,10 +3466,10 @@ var TdRow = ({
3841
3466
  )
3842
3467
  )
3843
3468
  ] }),
3844
- type && colSpan ? /* @__PURE__ */ jsxs33("tr", { children: [
3845
- /* @__PURE__ */ jsx40("td", {}),
3846
- /* @__PURE__ */ jsxs33("td", { colSpan, children: [
3847
- /* @__PURE__ */ jsx40(
3469
+ type && colSpan ? /* @__PURE__ */ jsxs30("tr", { children: [
3470
+ /* @__PURE__ */ jsx37("td", {}),
3471
+ /* @__PURE__ */ jsxs30("td", { colSpan, children: [
3472
+ /* @__PURE__ */ jsx37(
3848
3473
  "span",
3849
3474
  {
3850
3475
  className: "cards-table__title-select-lender-btn",
@@ -3852,7 +3477,7 @@ var TdRow = ({
3852
3477
  children: "Select Lender"
3853
3478
  }
3854
3479
  ),
3855
- /* @__PURE__ */ jsx40(
3480
+ /* @__PURE__ */ jsx37(
3856
3481
  Modal_default,
3857
3482
  {
3858
3483
  closeModal: () => setIsOpen(false),
@@ -3869,7 +3494,7 @@ var TdRow = ({
3869
3494
  var TdRow_default = TdRow;
3870
3495
 
3871
3496
  // src/Atomic/UI/Table/Table.js
3872
- import { jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
3497
+ import { jsx as jsx38, jsxs as jsxs31 } from "react/jsx-runtime";
3873
3498
  var Table = ({
3874
3499
  rows,
3875
3500
  onChange,
@@ -3882,16 +3507,16 @@ var Table = ({
3882
3507
  rows[index] = value;
3883
3508
  onChange({ header: [...header], rows: [...rows] });
3884
3509
  };
3885
- return /* @__PURE__ */ jsx41(
3510
+ return /* @__PURE__ */ jsx38(
3886
3511
  "div",
3887
3512
  {
3888
3513
  "data-testid": testId,
3889
- className: cn35("simple-table", {
3514
+ className: cn32("simple-table", {
3890
3515
  [`simple-table--${className}`]: className
3891
3516
  }),
3892
- children: /* @__PURE__ */ jsxs34("table", { children: [
3893
- /* @__PURE__ */ jsx41("thead", { children: /* @__PURE__ */ jsx41("tr", { children: header?.map((item) => /* @__PURE__ */ jsx41(TdHeader_default, { item }, item.key)) }) }),
3894
- /* @__PURE__ */ jsx41("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ jsx41(
3517
+ children: /* @__PURE__ */ jsxs31("table", { children: [
3518
+ /* @__PURE__ */ jsx38("thead", { children: /* @__PURE__ */ jsx38("tr", { children: header?.map((item) => /* @__PURE__ */ jsx38(TdHeader_default, { item }, item.key)) }) }),
3519
+ /* @__PURE__ */ jsx38("tbody", { children: rows && rows?.length ? rows?.map((row, index) => /* @__PURE__ */ jsx38(
3895
3520
  TdRow_default,
3896
3521
  {
3897
3522
  onActionClick,
@@ -3901,7 +3526,7 @@ var Table = ({
3901
3526
  onChange: (value) => handleArrayChange(value, index)
3902
3527
  },
3903
3528
  typeof row.id === "object" ? row.id.value : row.id
3904
- )) : /* @__PURE__ */ jsx41("tr", { children: /* @__PURE__ */ jsx41("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
3529
+ )) : /* @__PURE__ */ jsx38("tr", { children: /* @__PURE__ */ jsx38("td", { className: "row--not-found", colSpan: header?.length, children: "Not set" }) }) })
3905
3530
  ] })
3906
3531
  }
3907
3532
  );
@@ -3912,16 +3537,16 @@ var Table_default = Table;
3912
3537
  var Tag_default2 = Tag_default;
3913
3538
 
3914
3539
  // src/Atomic/UI/TagList/TagList.tsx
3915
- import cn36 from "classnames";
3540
+ import cn33 from "classnames";
3916
3541
  import {
3917
- createRef as createRef2,
3918
- useEffect as useEffect20,
3542
+ createRef,
3543
+ useEffect as useEffect19,
3919
3544
  useLayoutEffect as useLayoutEffect5,
3920
- useRef as useRef14,
3921
- useState as useState24
3545
+ useRef as useRef13,
3546
+ useState as useState22
3922
3547
  } from "react";
3923
3548
  import { Edit3 as Edit32 } from "react-feather";
3924
- import { jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
3549
+ import { jsx as jsx39, jsxs as jsxs32 } from "react/jsx-runtime";
3925
3550
  var TagList = ({
3926
3551
  disabled,
3927
3552
  className,
@@ -3938,11 +3563,11 @@ var TagList = ({
3938
3563
  onToggleRenderAll,
3939
3564
  isUseInTable
3940
3565
  }) => {
3941
- const wrapperRef = useRef14(null);
3942
- const [tagList, setTagList] = useState24([]);
3943
- const [staticTagsCount, setStaticTagsCount] = useState24(-1);
3944
- const [renderItemsCount, setRenderItemsCount] = useState24(-1);
3945
- const [renderAll, setRenderAll] = useState24(!withToggle);
3566
+ const wrapperRef = useRef13(null);
3567
+ const [tagList, setTagList] = useState22([]);
3568
+ const [staticTagsCount, setStaticTagsCount] = useState22(-1);
3569
+ const [renderItemsCount, setRenderItemsCount] = useState22(-1);
3570
+ const [renderAll, setRenderAll] = useState22(!withToggle);
3946
3571
  const wrapperWidth = wrapperRef?.current?.getBoundingClientRect()?.width ?? -1;
3947
3572
  const setRenderAllInterceptor = (v, event) => {
3948
3573
  setRenderAll(v);
@@ -3993,12 +3618,12 @@ var TagList = ({
3993
3618
  });
3994
3619
  if (!item) return null;
3995
3620
  const isHidden = renderItemsCount !== -1 && staticTagsCount !== -1 ? i >= renderItemsCount : false;
3996
- return /* @__PURE__ */ jsx42(
3621
+ return /* @__PURE__ */ jsx39(
3997
3622
  "div",
3998
3623
  {
3999
3624
  className: `tag-list_wrapper_item ${isHidden ? "tag-list_wrapper_item--hidden" : ""}`,
4000
3625
  ref: checkedRef(item?.itemRef),
4001
- children: /* @__PURE__ */ jsx42(
3626
+ children: /* @__PURE__ */ jsx39(
4002
3627
  Tag_default,
4003
3628
  {
4004
3629
  testId: `test-taglist-item-${item?.id ?? item?.value}`,
@@ -4019,7 +3644,7 @@ var TagList = ({
4019
3644
  }
4020
3645
  const restItems = tagList.length - renderItemsCount;
4021
3646
  if (restItems === 0 || !withToggle || staticTagsCount === -1) return null;
4022
- return /* @__PURE__ */ jsx42(
3647
+ return /* @__PURE__ */ jsx39(
4023
3648
  Tag_default,
4024
3649
  {
4025
3650
  label: `+${restItems}`,
@@ -4034,7 +3659,7 @@ var TagList = ({
4034
3659
  if (renderItemsCount !== tagList?.length || !withToggle || staticTagsCount === -1 || staticTagsCount === tagList?.length) {
4035
3660
  return null;
4036
3661
  }
4037
- return /* @__PURE__ */ jsx42(
3662
+ return /* @__PURE__ */ jsx39(
4038
3663
  Tag_default,
4039
3664
  {
4040
3665
  label: "...",
@@ -4044,11 +3669,11 @@ var TagList = ({
4044
3669
  }
4045
3670
  );
4046
3671
  };
4047
- useEffect20(() => {
3672
+ useEffect19(() => {
4048
3673
  setStaticTagsCount(-1);
4049
3674
  setRenderItemsCount(-1);
4050
3675
  setRenderAllInterceptor(false, null);
4051
- const itemsWithRef = items.map((item) => ({ ...item, itemRef: createRef2() }));
3676
+ const itemsWithRef = items.map((item) => ({ ...item, itemRef: createRef() }));
4052
3677
  setTagList(itemsWithRef);
4053
3678
  }, [items]);
4054
3679
  useLayoutEffect5(() => {
@@ -4067,17 +3692,17 @@ var TagList = ({
4067
3692
  useLayoutEffect5(() => {
4068
3693
  setRenderItemsCount(staticTagsCount);
4069
3694
  }, [staticTagsCount]);
4070
- useEffect20(() => {
3695
+ useEffect19(() => {
4071
3696
  setRenderItemsCount(renderAll ? tagList?.length : staticTagsCount);
4072
3697
  }, [renderAll]);
4073
- useEffect20(() => {
3698
+ useEffect19(() => {
4074
3699
  if (wrapperRef?.current && refProp) refProp.current = wrapperRef?.current;
4075
3700
  }, [wrapperRef?.current]);
4076
- return /* @__PURE__ */ jsxs35(
3701
+ return /* @__PURE__ */ jsxs32(
4077
3702
  "div",
4078
3703
  {
4079
3704
  "data-testid": testId,
4080
- className: cn36(
3705
+ className: cn33(
4081
3706
  "tag-list_wrapper",
4082
3707
  `${renderItemsCount !== tagList?.length || !withToggle || staticTagsCount === -1 || staticTagsCount === tagList?.length ? "tag-list_wrapper--only-static-items" : "tag-list_wrapper--all-items"}`,
4083
3708
  className,
@@ -4092,7 +3717,7 @@ var TagList = ({
4092
3717
  renderTags(),
4093
3718
  renderMoreTags(),
4094
3719
  renderHideTags(),
4095
- typeof onEditClick === "function" && /* @__PURE__ */ jsx42("div", { className: "tag-list__edit-trigger", children: /* @__PURE__ */ jsx42(Edit32, { onClick: onEditClick }) })
3720
+ typeof onEditClick === "function" && /* @__PURE__ */ jsx39("div", { className: "tag-list__edit-trigger", children: /* @__PURE__ */ jsx39(Edit32, { onClick: onEditClick }) })
4096
3721
  ]
4097
3722
  }
4098
3723
  );
@@ -4100,12 +3725,12 @@ var TagList = ({
4100
3725
  var TagList_default = TagList;
4101
3726
 
4102
3727
  // src/Atomic/UI/UserBox/UserBox.tsx
4103
- import cn38 from "classnames";
3728
+ import cn35 from "classnames";
4104
3729
 
4105
3730
  // src/Atomic/FormElements/Label/Label.tsx
4106
- import cn37 from "classnames";
4107
- import { Fragment as Fragment7, jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
4108
- var CN8 = "label";
3731
+ import cn34 from "classnames";
3732
+ import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs33 } from "react/jsx-runtime";
3733
+ var CN6 = "label";
4109
3734
  var Label = ({
4110
3735
  className = "",
4111
3736
  label = "",
@@ -4117,15 +3742,15 @@ var Label = ({
4117
3742
  error = null,
4118
3743
  isAccessability = false,
4119
3744
  isAccessabilityHint = false,
4120
- testId = CN8
3745
+ testId = CN6
4121
3746
  }) => {
4122
- const correctLabel = isRequired ? /* @__PURE__ */ jsxs36(Fragment7, { children: [
3747
+ const correctLabel = isRequired ? /* @__PURE__ */ jsxs33(Fragment7, { children: [
4123
3748
  label,
4124
3749
  " ",
4125
- /* @__PURE__ */ jsx43("span", { className: "label_asterisk", children: "*" }),
3750
+ /* @__PURE__ */ jsx40("span", { className: "label_asterisk", children: "*" }),
4126
3751
  " ",
4127
- note && /* @__PURE__ */ jsx43("span", { className: "label_note", children: note }),
4128
- hint && /* @__PURE__ */ jsx43(
3752
+ note && /* @__PURE__ */ jsx40("span", { className: "label_note", children: note }),
3753
+ hint && /* @__PURE__ */ jsx40(
4129
3754
  Hint_default,
4130
3755
  {
4131
3756
  id: `hint-${label}`,
@@ -4141,11 +3766,11 @@ var Label = ({
4141
3766
  },
4142
3767
  `hint-${label}`
4143
3768
  )
4144
- ] }) : /* @__PURE__ */ jsxs36(Fragment7, { children: [
3769
+ ] }) : /* @__PURE__ */ jsxs33(Fragment7, { children: [
4145
3770
  label,
4146
3771
  " ",
4147
- note && /* @__PURE__ */ jsx43("span", { className: "label_note", children: note }),
4148
- hint && /* @__PURE__ */ jsx43(
3772
+ note && /* @__PURE__ */ jsx40("span", { className: "label_note", children: note }),
3773
+ hint && /* @__PURE__ */ jsx40(
4149
3774
  Hint_default,
4150
3775
  {
4151
3776
  isAccessability: isAccessabilityHint,
@@ -4162,21 +3787,21 @@ var Label = ({
4162
3787
  void 0
4163
3788
  )
4164
3789
  ] });
4165
- return /* @__PURE__ */ jsx43(
3790
+ return /* @__PURE__ */ jsx40(
4166
3791
  "span",
4167
3792
  {
4168
3793
  tabIndex: isAccessability ? 0 : -1,
4169
3794
  "aria-label": label,
4170
- className: cn37(CN8, { label_bold: isLabelBolt, error, isRequired }, className),
3795
+ className: cn34(CN6, { label_bold: isLabelBolt, error, isRequired }, className),
4171
3796
  "data-testid": testId,
4172
- children: /* @__PURE__ */ jsx43("span", { className: "label_text", "data-testid": "label-text", children: correctLabel })
3797
+ children: /* @__PURE__ */ jsx40("span", { className: "label_text", "data-testid": "label-text", children: correctLabel })
4173
3798
  }
4174
3799
  );
4175
3800
  };
4176
3801
  var Label_default = Label;
4177
3802
 
4178
3803
  // src/Atomic/UI/UserBox/UserBox.tsx
4179
- import { Fragment as Fragment8, jsx as jsx44, jsxs as jsxs37 } from "react/jsx-runtime";
3804
+ import { Fragment as Fragment8, jsx as jsx41, jsxs as jsxs34 } from "react/jsx-runtime";
4180
3805
  var UserBox = ({
4181
3806
  name = "Username",
4182
3807
  role,
@@ -4190,28 +3815,28 @@ var UserBox = ({
4190
3815
  const getNameFirstLetter = name.charAt(0).toUpperCase();
4191
3816
  const renderUser = () => {
4192
3817
  if (isModal) {
4193
- return /* @__PURE__ */ jsxs37(Fragment8, { children: [
4194
- /* @__PURE__ */ jsx44("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
4195
- /* @__PURE__ */ jsxs37("div", { className: "td-user-box__user-data", children: [
4196
- /* @__PURE__ */ jsx44(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
4197
- role && /* @__PURE__ */ jsx44("span", { children: role })
3818
+ return /* @__PURE__ */ jsxs34(Fragment8, { children: [
3819
+ /* @__PURE__ */ jsx41("div", { style: { backgroundColor: getColorById(id, colors) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
3820
+ /* @__PURE__ */ jsxs34("div", { className: "td-user-box__user-data", children: [
3821
+ /* @__PURE__ */ jsx41(Button_default, { className: "p0 no-shadow", onClick, label: name, variant: "link" }),
3822
+ role && /* @__PURE__ */ jsx41("span", { children: role })
4198
3823
  ] })
4199
3824
  ] });
4200
3825
  } else {
4201
- return /* @__PURE__ */ jsxs37(Fragment8, { children: [
4202
- /* @__PURE__ */ jsx44("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
4203
- /* @__PURE__ */ jsxs37("div", { className: "td-user-box__user-data", children: [
4204
- /* @__PURE__ */ jsx44(Label_default, { label: name }),
4205
- role && /* @__PURE__ */ jsx44("span", { "aria-label": `User role: ${role}`, children: role })
3826
+ return /* @__PURE__ */ jsxs34(Fragment8, { children: [
3827
+ /* @__PURE__ */ jsx41("div", { style: { backgroundColor: getColorById(id) }, className: "td-user-box__avatar", children: getNameFirstLetter }),
3828
+ /* @__PURE__ */ jsxs34("div", { className: "td-user-box__user-data", children: [
3829
+ /* @__PURE__ */ jsx41(Label_default, { label: name }),
3830
+ role && /* @__PURE__ */ jsx41("span", { "aria-label": `User role: ${role}`, children: role })
4206
3831
  ] })
4207
3832
  ] });
4208
3833
  }
4209
3834
  };
4210
- return /* @__PURE__ */ jsx44(
3835
+ return /* @__PURE__ */ jsx41(
4211
3836
  "div",
4212
3837
  {
4213
3838
  "data-testid": testId,
4214
- className: cn38("td-user-box", className),
3839
+ className: cn35("td-user-box", className),
4215
3840
  role: "region",
4216
3841
  "aria-label": `User box for ${name}`,
4217
3842
  children: renderUser()
@@ -4227,38 +3852,38 @@ var UserBox_default2 = UserBox_default;
4227
3852
  import classNames from "classnames";
4228
3853
 
4229
3854
  // src/Atomic/UI/WizardStepper/ui/icons.tsx
4230
- import { jsx as jsx45, jsxs as jsxs38 } from "react/jsx-runtime";
4231
- var DoneIcon = () => /* @__PURE__ */ jsxs38("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4232
- /* @__PURE__ */ jsx45("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
4233
- /* @__PURE__ */ jsx45("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx45("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
4234
- /* @__PURE__ */ jsx45("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ jsx45("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
3855
+ import { jsx as jsx42, jsxs as jsxs35 } from "react/jsx-runtime";
3856
+ var DoneIcon = () => /* @__PURE__ */ jsxs35("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3857
+ /* @__PURE__ */ jsx42("rect", { width: "20", height: "20", rx: "10", fill: "#69A457" }),
3858
+ /* @__PURE__ */ jsx42("mask", { id: "mask0_54394_4001", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx42("path", { d: "M14.5 7L9 12.5L6 9.5", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }),
3859
+ /* @__PURE__ */ jsx42("g", { mask: "url(#mask0_54394_4001)", children: /* @__PURE__ */ jsx42("rect", { x: "2", y: "2", width: "16", height: "16", fill: "white" }) })
4235
3860
  ] });
4236
3861
  var TodoIcon = () => {
4237
- return /* @__PURE__ */ jsxs38("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4238
- /* @__PURE__ */ jsx45("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ jsx45("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
4239
- /* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsx45("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ jsx45("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
3862
+ return /* @__PURE__ */ jsxs35("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3863
+ /* @__PURE__ */ jsx42("g", { clipPath: "url(#clip0_54394_4448)", children: /* @__PURE__ */ jsx42("circle", { cx: "10", cy: "10", r: "7", fill: "white", stroke: "#B3B8CB", strokeWidth: "2" }) }),
3864
+ /* @__PURE__ */ jsx42("defs", { children: /* @__PURE__ */ jsx42("clipPath", { id: "clip0_54394_4448", children: /* @__PURE__ */ jsx42("rect", { width: "16", height: "16", fill: "white", transform: "translate(2 2)" }) }) })
4240
3865
  ] });
4241
3866
  };
4242
3867
  var ActiveIcon = () => {
4243
- return /* @__PURE__ */ jsxs38("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4244
- /* @__PURE__ */ jsx45("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
3868
+ return /* @__PURE__ */ jsxs35("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3869
+ /* @__PURE__ */ jsx42("rect", { width: "20", height: "20", rx: "10", fill: "#E8F9E5" }),
4245
3870
  "ii",
4246
- /* @__PURE__ */ jsx45("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx45("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
4247
- /* @__PURE__ */ jsx45("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ jsx45("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
3871
+ /* @__PURE__ */ jsx42("mask", { id: "mask0_54394_1459", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "2", y: "2", width: "16", height: "16", children: /* @__PURE__ */ jsx42("circle", { cx: "10", cy: "10", r: "4", fill: "#171D33" }) }),
3872
+ /* @__PURE__ */ jsx42("g", { mask: "url(#mask0_54394_1459)", children: /* @__PURE__ */ jsx42("rect", { x: "2", y: "2", width: "16", height: "16", fill: "#171D33" }) })
4248
3873
  ] });
4249
3874
  };
4250
3875
  var alternativeIconSet = {
4251
- defaultIcon: /* @__PURE__ */ jsx45(TodoIcon, {}),
4252
- doneIcon: /* @__PURE__ */ jsx45(DoneIcon, {}),
4253
- activeIcon: /* @__PURE__ */ jsx45(ActiveIcon, {})
3876
+ defaultIcon: /* @__PURE__ */ jsx42(TodoIcon, {}),
3877
+ doneIcon: /* @__PURE__ */ jsx42(DoneIcon, {}),
3878
+ activeIcon: /* @__PURE__ */ jsx42(ActiveIcon, {})
4254
3879
  };
4255
3880
 
4256
3881
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
4257
- import cn40 from "classnames";
3882
+ import cn37 from "classnames";
4258
3883
 
4259
3884
  // src/Atomic/UI/WizardStepper/constructor.js
4260
- import React25 from "react";
4261
- import { jsx as jsx46, jsxs as jsxs39 } from "react/jsx-runtime";
3885
+ import React23 from "react";
3886
+ import { jsx as jsx43, jsxs as jsxs36 } from "react/jsx-runtime";
4262
3887
  var WIZARD_STEP_VARIANTS = Object.freeze({
4263
3888
  DEFAULT: "default",
4264
3889
  DONE: "done",
@@ -4266,31 +3891,31 @@ var WIZARD_STEP_VARIANTS = Object.freeze({
4266
3891
  });
4267
3892
 
4268
3893
  // src/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.tsx
4269
- import cn39 from "classnames";
4270
- import { jsx as jsx47 } from "react/jsx-runtime";
3894
+ import cn36 from "classnames";
3895
+ import { jsx as jsx44 } from "react/jsx-runtime";
4271
3896
  var DefaultPoint = () => {
4272
- return /* @__PURE__ */ jsx47("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx47("circle", { cx: "8", cy: "8", r: "4" }) });
3897
+ return /* @__PURE__ */ jsx44("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx44("circle", { cx: "8", cy: "8", r: "4" }) });
4273
3898
  };
4274
3899
  var DonePoint = () => {
4275
- return /* @__PURE__ */ jsx47("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx47("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
3900
+ return /* @__PURE__ */ jsx44("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx44("path", { d: "M12.5 5L7 10.5L4 7.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
4276
3901
  };
4277
3902
  var RC7 = "state-icon";
4278
3903
  var { ACTIVE, DEFAULT, DONE } = WIZARD_STEP_VARIANTS;
4279
3904
  var StateIcon = ({ variant = DEFAULT, className }) => {
4280
3905
  const computedState = variant === ACTIVE || variant === DONE ? variant : DEFAULT;
4281
3906
  const Inner = {
4282
- [DEFAULT]: /* @__PURE__ */ jsx47(DefaultPoint, {}),
4283
- [ACTIVE]: /* @__PURE__ */ jsx47(DefaultPoint, {}),
4284
- [DONE]: /* @__PURE__ */ jsx47(DonePoint, {})
3907
+ [DEFAULT]: /* @__PURE__ */ jsx44(DefaultPoint, {}),
3908
+ [ACTIVE]: /* @__PURE__ */ jsx44(DefaultPoint, {}),
3909
+ [DONE]: /* @__PURE__ */ jsx44(DonePoint, {})
4285
3910
  };
4286
- return /* @__PURE__ */ jsx47("div", { className: cn39(RC7, `${RC7}--${computedState}`, className), children: Inner[computedState] });
3911
+ return /* @__PURE__ */ jsx44("div", { className: cn36(RC7, `${RC7}--${computedState}`, className), children: Inner[computedState] });
4287
3912
  };
4288
3913
 
4289
3914
  // src/Atomic/UI/WizardStepper/ui/StateIcon/index.ts
4290
3915
  var StateIcon_default = StateIcon;
4291
3916
 
4292
3917
  // src/Atomic/UI/WizardStepper/ui/StepRow/StepRow.tsx
4293
- import { jsx as jsx48, jsxs as jsxs40 } from "react/jsx-runtime";
3918
+ import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
4294
3919
  var RC8 = "step-row";
4295
3920
  var { DEFAULT: DEFAULT2, ACTIVE: ACTIVE2, DONE: DONE2 } = WIZARD_STEP_VARIANTS;
4296
3921
  var StepRow = ({
@@ -4317,29 +3942,29 @@ var StepRow = ({
4317
3942
  })();
4318
3943
  const CorrectIcon = () => {
4319
3944
  if (!customIcons || Object?.values(customIcons)?.every((icon) => !icon)) {
4320
- return /* @__PURE__ */ jsx48(StateIcon_default, { variant: rowVariant });
3945
+ return /* @__PURE__ */ jsx45(StateIcon_default, { variant: rowVariant });
4321
3946
  }
4322
3947
  return alternaviteIconFromProps || null;
4323
3948
  };
4324
- return /* @__PURE__ */ jsxs40("div", { className: cn40(RC8, `${RC8}--${rowVariant}`, className), children: [
4325
- /* @__PURE__ */ jsx48("div", { className: cn40(`${RC8}__state-point`, `${RC8}__state-point--${rowVariant}`), children: /* @__PURE__ */ jsx48(CorrectIcon, {}) }),
4326
- /* @__PURE__ */ jsxs40("div", { className: `${RC8}__content`, children: [
4327
- /* @__PURE__ */ jsxs40("div", { className: `${RC8}__title`, children: [
4328
- /* @__PURE__ */ jsxs40("div", { className: `${RC8}__title-left`, children: [
4329
- /* @__PURE__ */ jsx48("div", { className: cn40(`${RC8}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
4330
- isOptional && /* @__PURE__ */ jsx48(Status_default, { label: "Optional", status: "draft" })
3949
+ return /* @__PURE__ */ jsxs37("div", { className: cn37(RC8, `${RC8}--${rowVariant}`, className), children: [
3950
+ /* @__PURE__ */ jsx45("div", { className: cn37(`${RC8}__state-point`, `${RC8}__state-point--${rowVariant}`), children: /* @__PURE__ */ jsx45(CorrectIcon, {}) }),
3951
+ /* @__PURE__ */ jsxs37("div", { className: `${RC8}__content`, children: [
3952
+ /* @__PURE__ */ jsxs37("div", { className: `${RC8}__title`, children: [
3953
+ /* @__PURE__ */ jsxs37("div", { className: `${RC8}__title-left`, children: [
3954
+ /* @__PURE__ */ jsx45("div", { className: cn37(`${RC8}__title-text`, { "text-muted": rowVariant === DEFAULT2 }), children: title }),
3955
+ isOptional && /* @__PURE__ */ jsx45(Status_default, { label: "Optional", status: "draft" })
4331
3956
  ] }),
4332
- titleSlot && /* @__PURE__ */ jsx48("div", { className: `${RC8}__title-right`, children: titleSlot })
3957
+ titleSlot && /* @__PURE__ */ jsx45("div", { className: `${RC8}__title-right`, children: titleSlot })
4333
3958
  ] }),
4334
- description && /* @__PURE__ */ jsx48("div", { className: `${RC8}__description`, children: description }),
4335
- contentSlot && /* @__PURE__ */ jsx48("div", { className: `${RC8}__body`, children: contentSlot })
3959
+ description && /* @__PURE__ */ jsx45("div", { className: `${RC8}__description`, children: description }),
3960
+ contentSlot && /* @__PURE__ */ jsx45("div", { className: `${RC8}__body`, children: contentSlot })
4336
3961
  ] })
4337
3962
  ] }, label);
4338
3963
  };
4339
3964
  var StepRow_default = StepRow;
4340
3965
 
4341
3966
  // src/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.tsx
4342
- import { jsx as jsx49 } from "react/jsx-runtime";
3967
+ import { jsx as jsx46 } from "react/jsx-runtime";
4343
3968
  var StepWrapper = ({
4344
3969
  steps,
4345
3970
  customIcons,
@@ -4347,10 +3972,10 @@ var StepWrapper = ({
4347
3972
  className,
4348
3973
  testId = "step-wrapper"
4349
3974
  }) => {
4350
- if (!steps?.length) return /* @__PURE__ */ jsx49("div", { "data-testid": "empty-state", children: "No steps available" });
3975
+ if (!steps?.length) return /* @__PURE__ */ jsx46("div", { "data-testid": "empty-state", children: "No steps available" });
4351
3976
  const renderStepRow = (step) => {
4352
3977
  const { key, ...stepProps } = step;
4353
- return /* @__PURE__ */ jsx49(
3978
+ return /* @__PURE__ */ jsx46(
4354
3979
  StepRow_default,
4355
3980
  {
4356
3981
  ...stepProps,
@@ -4361,7 +3986,7 @@ var StepWrapper = ({
4361
3986
  };
4362
3987
  switch (variant) {
4363
3988
  case "ghost":
4364
- return /* @__PURE__ */ jsx49(
3989
+ return /* @__PURE__ */ jsx46(
4365
3990
  Box_default,
4366
3991
  {
4367
3992
  className: classNames("step-wrapper", "step-wrapper-ghost", className),
@@ -4370,7 +3995,7 @@ var StepWrapper = ({
4370
3995
  }
4371
3996
  );
4372
3997
  case "cardActive":
4373
- return /* @__PURE__ */ jsx49(
3998
+ return /* @__PURE__ */ jsx46(
4374
3999
  "div",
4375
4000
  {
4376
4001
  className: classNames("step-wrapper", "step-wrapper-card-active", className),
@@ -4379,7 +4004,7 @@ var StepWrapper = ({
4379
4004
  }
4380
4005
  );
4381
4006
  default:
4382
- return /* @__PURE__ */ jsx49(
4007
+ return /* @__PURE__ */ jsx46(
4383
4008
  "div",
4384
4009
  {
4385
4010
  className: classNames("step-wrapper", className),
@@ -4400,7 +4025,6 @@ var ui_default = StepWrapper_default2;
4400
4025
  // src/Atomic/UI/WizardStepper/index.ts
4401
4026
  var WizardStepper_default = ui_default;
4402
4027
  export {
4403
- Accordion_default2 as Accordion,
4404
4028
  AccordionTable_default as AccordionTable,
4405
4029
  AccordionText_default as AccordionText,
4406
4030
  AdvTag_default as AdvTag,
@@ -4409,7 +4033,6 @@ export {
4409
4033
  Arrow_default as Arrow,
4410
4034
  Box_default as Box,
4411
4035
  Button_default as Button,
4412
- ButtonsBar_default2 as ButtonsBar,
4413
4036
  CircleProgressBar_default as CircleProgressBar,
4414
4037
  DateTime_default as DateTime,
4415
4038
  DebugContainer_default as DebugContainer,
@@ -4421,7 +4044,6 @@ export {
4421
4044
  ModalHOC_default as ModalHOC,
4422
4045
  ModalTitle_default as ModalTitle,
4423
4046
  MonoAccordion_default2 as MonoAccordion,
4424
- NavLine_default2 as NavLine,
4425
4047
  PageTitle_default2 as PageTitle,
4426
4048
  Price_default2 as Price,
4427
4049
  PriceRange_default2 as PriceRange,