fui-material 2.3.4 → 2.5.0
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/README.md +67 -67
- package/dist/f-ui-kit.es.js +633 -230
- package/dist/f-ui-kit.es.js.map +1 -1
- package/dist/main.css +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/material/FSearchableSelect/FSearchableSelect.d.ts +22 -0
- package/dist/types/material/FSearchableSelect/index.d.ts +1 -0
- package/dist/types/material/index.d.ts +1 -0
- package/dist/types/pages/error-boundary/Page.d.ts +3 -0
- package/dist/types/pages/error-boundary/index.d.ts +1 -0
- package/dist/types/pages/index.d.ts +1 -0
- package/package.json +77 -77
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef, useRef, useState, useEffect, useMemo, useCallback, useLayoutEffect, Fragment, isValidElement, cloneElement } from "react";
|
|
1
|
+
import React, { forwardRef, useRef, useState, useEffect, useMemo, useCallback, useLayoutEffect, Fragment, isValidElement, cloneElement, useDeferredValue } from "react";
|
|
2
2
|
import ReactDOM, { createPortal } from "react-dom";
|
|
3
3
|
import './main.css';function _mergeNamespaces(n, m) {
|
|
4
4
|
for (var i = 0; i < m.length; i++) {
|
|
@@ -1049,7 +1049,7 @@ FTrashIcon.displayName = "FTrashIcon";
|
|
|
1049
1049
|
const progressBar = "_progressBar_1xp9s_48";
|
|
1050
1050
|
const completed = "_completed_1xp9s_60";
|
|
1051
1051
|
const progress = "_progress_1xp9s_48";
|
|
1052
|
-
const styles$
|
|
1052
|
+
const styles$y = {
|
|
1053
1053
|
"file-preview-card": "_file-preview-card_1xp9s_1",
|
|
1054
1054
|
"file-preview-info": "_file-preview-info_1xp9s_22",
|
|
1055
1055
|
"file-preview-name": "_file-preview-name_1xp9s_28",
|
|
@@ -1071,18 +1071,18 @@ const FFile = ({
|
|
|
1071
1071
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1072
1072
|
"div",
|
|
1073
1073
|
{
|
|
1074
|
-
className: `${styles$
|
|
1074
|
+
className: `${styles$y["file-preview-card"]} ${className || ""}`,
|
|
1075
1075
|
id,
|
|
1076
1076
|
style: st,
|
|
1077
1077
|
children: [
|
|
1078
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
1079
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
|
1080
|
-
typeof size === "number" && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$
|
|
1078
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$y["file-preview-info"], children: [
|
|
1079
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$y["file-preview-name"], title: name, children: name }),
|
|
1080
|
+
typeof size === "number" && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: styles$y["file-preview-size"], children: [
|
|
1081
1081
|
Math.round(size / 1024),
|
|
1082
1082
|
" КБ"
|
|
1083
1083
|
] })
|
|
1084
1084
|
] }),
|
|
1085
|
-
handleDelete && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
1085
|
+
handleDelete && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$y["trash-icon"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1086
1086
|
FTrashIcon,
|
|
1087
1087
|
{
|
|
1088
1088
|
size: 20,
|
|
@@ -1090,10 +1090,10 @@ const FFile = ({
|
|
|
1090
1090
|
handleClick: handleDelete
|
|
1091
1091
|
}
|
|
1092
1092
|
) }),
|
|
1093
|
-
typeof progress2 === "number" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$
|
|
1093
|
+
typeof progress2 === "number" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$y.progressBar} ${progress2 === 100 ? styles$y.completed : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1094
1094
|
"div",
|
|
1095
1095
|
{
|
|
1096
|
-
className: styles$
|
|
1096
|
+
className: styles$y.progress,
|
|
1097
1097
|
style: { width: `${progress2}%` }
|
|
1098
1098
|
}
|
|
1099
1099
|
) })
|
|
@@ -1196,7 +1196,7 @@ const FButtonFile = ({
|
|
|
1196
1196
|
)) }) })
|
|
1197
1197
|
] });
|
|
1198
1198
|
};
|
|
1199
|
-
const styles$
|
|
1199
|
+
const styles$x = {
|
|
1200
1200
|
"f-text-field": "_f-text-field_200bb_1"
|
|
1201
1201
|
};
|
|
1202
1202
|
const FLoadIcon = React.forwardRef(({
|
|
@@ -1275,7 +1275,7 @@ const FTextField = forwardRef(
|
|
|
1275
1275
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1276
1276
|
"div",
|
|
1277
1277
|
{
|
|
1278
|
-
className: `f-form-element ${styles$
|
|
1278
|
+
className: `f-form-element ${styles$x["f-text-field"]} ${className || ""}`,
|
|
1279
1279
|
style: mergedStyle,
|
|
1280
1280
|
role: "group",
|
|
1281
1281
|
id: inputId + "-text-field-block",
|
|
@@ -1367,7 +1367,7 @@ const FStack = ({
|
|
|
1367
1367
|
}
|
|
1368
1368
|
);
|
|
1369
1369
|
};
|
|
1370
|
-
const styles$
|
|
1370
|
+
const styles$w = {
|
|
1371
1371
|
"f-grid": "_f-grid_3g4xh_1",
|
|
1372
1372
|
"f-grid__col": "_f-grid__col_3g4xh_10",
|
|
1373
1373
|
"f-grid__col--auto": "_f-grid__col--auto_3g4xh_16",
|
|
@@ -1470,21 +1470,21 @@ const FGrid = ({
|
|
|
1470
1470
|
xxl: xxl ?? xl ?? lg ?? md ?? sm ?? xs
|
|
1471
1471
|
};
|
|
1472
1472
|
const getColumnClasses = () => {
|
|
1473
|
-
if (colAuto) return styles$
|
|
1474
|
-
const classes = [styles$
|
|
1475
|
-
if (resolvedSizes.xs !== void 0) classes.push(styles$
|
|
1476
|
-
if (resolvedSizes.sm !== void 0) classes.push(styles$
|
|
1477
|
-
if (resolvedSizes.md !== void 0) classes.push(styles$
|
|
1478
|
-
if (resolvedSizes.lg !== void 0) classes.push(styles$
|
|
1479
|
-
if (resolvedSizes.xl !== void 0) classes.push(styles$
|
|
1480
|
-
if (resolvedSizes.xxl !== void 0) classes.push(styles$
|
|
1473
|
+
if (colAuto) return styles$w["f-grid__col--auto"];
|
|
1474
|
+
const classes = [styles$w["f-grid__col"]];
|
|
1475
|
+
if (resolvedSizes.xs !== void 0) classes.push(styles$w[`f-grid__col--xs-${resolvedSizes.xs}`]);
|
|
1476
|
+
if (resolvedSizes.sm !== void 0) classes.push(styles$w[`f-grid__col--sm-${resolvedSizes.sm}`]);
|
|
1477
|
+
if (resolvedSizes.md !== void 0) classes.push(styles$w[`f-grid__col--md-${resolvedSizes.md}`]);
|
|
1478
|
+
if (resolvedSizes.lg !== void 0) classes.push(styles$w[`f-grid__col--lg-${resolvedSizes.lg}`]);
|
|
1479
|
+
if (resolvedSizes.xl !== void 0) classes.push(styles$w[`f-grid__col--xl-${resolvedSizes.xl}`]);
|
|
1480
|
+
if (resolvedSizes.xxl !== void 0) classes.push(styles$w[`f-grid__col--xxl-${resolvedSizes.xxl}`]);
|
|
1481
1481
|
return classes.join(" ");
|
|
1482
1482
|
};
|
|
1483
1483
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
1484
1484
|
obj === "container" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1485
1485
|
"div",
|
|
1486
1486
|
{
|
|
1487
|
-
className: `${styles$
|
|
1487
|
+
className: `${styles$w["f-grid"]} ${className || ""}`,
|
|
1488
1488
|
style,
|
|
1489
1489
|
id,
|
|
1490
1490
|
children
|
|
@@ -1502,7 +1502,7 @@ const FGrid = ({
|
|
|
1502
1502
|
obj === void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className, style, id, children })
|
|
1503
1503
|
] });
|
|
1504
1504
|
};
|
|
1505
|
-
const styles$
|
|
1505
|
+
const styles$v = {
|
|
1506
1506
|
"f-grid-row": "_f-grid-row_1crbx_1",
|
|
1507
1507
|
"f-grid-row--justify-start": "_f-grid-row--justify-start_1crbx_7",
|
|
1508
1508
|
"f-grid-row--justify-center": "_f-grid-row--justify-center_1crbx_10",
|
|
@@ -1524,21 +1524,21 @@ const FGridRow = ({
|
|
|
1524
1524
|
}) => {
|
|
1525
1525
|
const getJustifyContentClass = () => {
|
|
1526
1526
|
if (!justifyContent) return "";
|
|
1527
|
-
return styles$
|
|
1527
|
+
return styles$v[`f-grid-row--justify-${justifyContent}`];
|
|
1528
1528
|
};
|
|
1529
1529
|
const getAlignItemsClass = () => {
|
|
1530
1530
|
if (!alignItems) return "";
|
|
1531
|
-
return styles$
|
|
1531
|
+
return styles$v[`f-grid-row--align-${alignItems}`];
|
|
1532
1532
|
};
|
|
1533
1533
|
const rowClasses = [
|
|
1534
|
-
styles$
|
|
1534
|
+
styles$v["f-grid-row"],
|
|
1535
1535
|
getJustifyContentClass(),
|
|
1536
1536
|
getAlignItemsClass(),
|
|
1537
1537
|
className
|
|
1538
1538
|
].filter(Boolean).join(" ");
|
|
1539
1539
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: rowClasses, style: st, id, children });
|
|
1540
1540
|
};
|
|
1541
|
-
const styles$
|
|
1541
|
+
const styles$u = {
|
|
1542
1542
|
"f-container": "_f-container_g9ck3_1",
|
|
1543
1543
|
"container-fluid": "_container-fluid_g9ck3_1",
|
|
1544
1544
|
"container-xxl": "_container-xxl_g9ck3_1",
|
|
@@ -1558,7 +1558,7 @@ const FContainer = ({
|
|
|
1558
1558
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1559
1559
|
"div",
|
|
1560
1560
|
{
|
|
1561
|
-
className: `${styles$
|
|
1561
|
+
className: `${styles$u["f-container"]} ${styles$u[maxWidth]} ${className || ""}`,
|
|
1562
1562
|
style: st,
|
|
1563
1563
|
id,
|
|
1564
1564
|
children
|
|
@@ -1566,7 +1566,7 @@ const FContainer = ({
|
|
|
1566
1566
|
);
|
|
1567
1567
|
};
|
|
1568
1568
|
const panel = "_panel_yplsg_1";
|
|
1569
|
-
const styles$
|
|
1569
|
+
const styles$t = {
|
|
1570
1570
|
panel,
|
|
1571
1571
|
"panel-default": "_panel-default_yplsg_6",
|
|
1572
1572
|
"panel-heading": "_panel-heading_yplsg_12",
|
|
@@ -1599,15 +1599,15 @@ const FPaper = ({
|
|
|
1599
1599
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
1600
1600
|
"div",
|
|
1601
1601
|
{
|
|
1602
|
-
className: `${styles$
|
|
1602
|
+
className: `${styles$t["panel"]} ${styles$t["panel-default"]} ${className || ""} ${animated ? `${styles$t[`animated-${animated.name}`]} ${animated.name}` : ""}`,
|
|
1603
1603
|
style: st,
|
|
1604
1604
|
id,
|
|
1605
1605
|
onAnimationEnd,
|
|
1606
1606
|
children: [
|
|
1607
|
-
label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
1607
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$t["panel-heading"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1608
1608
|
"h3",
|
|
1609
1609
|
{
|
|
1610
|
-
className: styles$
|
|
1610
|
+
className: styles$t["panel-title"],
|
|
1611
1611
|
style: { fontSize: fontSizeLabel },
|
|
1612
1612
|
children: label
|
|
1613
1613
|
}
|
|
@@ -1615,7 +1615,7 @@ const FPaper = ({
|
|
|
1615
1615
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1616
1616
|
"div",
|
|
1617
1617
|
{
|
|
1618
|
-
className: styles$
|
|
1618
|
+
className: styles$t["panel-body"],
|
|
1619
1619
|
style: { fontSize: fontSizeBody },
|
|
1620
1620
|
children
|
|
1621
1621
|
}
|
|
@@ -1628,7 +1628,7 @@ const bordered = "_bordered_j1bhx_18";
|
|
|
1628
1628
|
const left$1 = "_left_j1bhx_40";
|
|
1629
1629
|
const center = "_center_j1bhx_43";
|
|
1630
1630
|
const right = "_right_j1bhx_46";
|
|
1631
|
-
const styles$
|
|
1631
|
+
const styles$s = {
|
|
1632
1632
|
"f-table-component": "_f-table-component_j1bhx_1",
|
|
1633
1633
|
"f-table-component__table": "_f-table-component__table_j1bhx_7",
|
|
1634
1634
|
bordered,
|
|
@@ -1658,7 +1658,7 @@ const FTableHead = ({
|
|
|
1658
1658
|
{
|
|
1659
1659
|
style: st,
|
|
1660
1660
|
...props,
|
|
1661
|
-
className: `${styles$
|
|
1661
|
+
className: `${styles$s["f-table-component__table_header"]} ${isSticky ? styles$s["is-sticky"] : ""} ${props.className || ""} ${styles$s[textAlignment]}`,
|
|
1662
1662
|
children
|
|
1663
1663
|
}
|
|
1664
1664
|
);
|
|
@@ -1751,7 +1751,7 @@ const FTableBody = ({
|
|
|
1751
1751
|
} else {
|
|
1752
1752
|
visibleItems = flatChildren;
|
|
1753
1753
|
}
|
|
1754
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style: st, ...props, className: `${styles$
|
|
1754
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("tbody", { ref: tableBodyRef, style: st, ...props, className: `${styles$s["f-table-component__table_body"]} ${props.className || ""} ${styles$s[textAlignment]}`, children: [
|
|
1755
1755
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: topOffset } }),
|
|
1756
1756
|
visibleItems.map((child, idx) => React.isValidElement(child) ? React.cloneElement(child, { "data-row-index": virtualizationEnabled ? startIdx + idx : idx, key: virtualizationEnabled ? startIdx + idx : idx }) : child),
|
|
1757
1757
|
virtualizationEnabled && rowHeights.some((h) => h > 0) && /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { style: { height: bottomOffset } })
|
|
@@ -1790,14 +1790,14 @@ const FTable = ({
|
|
|
1790
1790
|
"div",
|
|
1791
1791
|
{
|
|
1792
1792
|
ref: tableWrapperRef,
|
|
1793
|
-
className: styles$
|
|
1793
|
+
className: styles$s["f-table-component"],
|
|
1794
1794
|
style: { overflowX, overflowY },
|
|
1795
1795
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1796
1796
|
"table",
|
|
1797
1797
|
{
|
|
1798
1798
|
style: st,
|
|
1799
1799
|
...props,
|
|
1800
|
-
className: `table ${styles$
|
|
1800
|
+
className: `table ${styles$s["f-table-component__table"]} ${styles$s["bordered"]} ${styles$s["bordered-half"]} ${props.className || ""}`,
|
|
1801
1801
|
children: React.Children.map(children, (child) => {
|
|
1802
1802
|
if (React.isValidElement(child) && child.type === FTableHead) {
|
|
1803
1803
|
const headProps = child.props;
|
|
@@ -1837,7 +1837,7 @@ const FTableRow = ({
|
|
|
1837
1837
|
{
|
|
1838
1838
|
style: st,
|
|
1839
1839
|
...props,
|
|
1840
|
-
className: `${styles$
|
|
1840
|
+
className: `${styles$s["f-table-component__table_row"]} ${props.className || ""}${textAlignment !== void 0 ? ` ${styles$s[textAlignment]}` : ""}`,
|
|
1841
1841
|
children
|
|
1842
1842
|
}
|
|
1843
1843
|
);
|
|
@@ -1865,7 +1865,7 @@ const FTableHeaderCell = ({
|
|
|
1865
1865
|
rowSpan: row && row > 1 ? row : void 0,
|
|
1866
1866
|
colSpan: col && col > 1 ? col : void 0,
|
|
1867
1867
|
...props,
|
|
1868
|
-
className: `${styles$
|
|
1868
|
+
className: `${styles$s["f-table-component__table_header-cell"]} ${props.className || ""}`,
|
|
1869
1869
|
children
|
|
1870
1870
|
}
|
|
1871
1871
|
);
|
|
@@ -1893,7 +1893,7 @@ const FTableDataCell = ({
|
|
|
1893
1893
|
rowSpan: row && row > 1 ? row : void 0,
|
|
1894
1894
|
colSpan: col && col > 1 ? col : void 0,
|
|
1895
1895
|
...props,
|
|
1896
|
-
className: `${styles$
|
|
1896
|
+
className: `${styles$s["f-table-component__table_body-cell"]} ${props.className || ""}`,
|
|
1897
1897
|
children
|
|
1898
1898
|
}
|
|
1899
1899
|
);
|
|
@@ -1908,14 +1908,14 @@ const FTableFooter = ({
|
|
|
1908
1908
|
{
|
|
1909
1909
|
style: st,
|
|
1910
1910
|
...props,
|
|
1911
|
-
className: `${styles$
|
|
1911
|
+
className: `${styles$s["f-table-component__table_footer"]} ${props.className || ""}`,
|
|
1912
1912
|
children
|
|
1913
1913
|
}
|
|
1914
1914
|
);
|
|
1915
1915
|
};
|
|
1916
1916
|
const active$4 = "_active_16jkc_16";
|
|
1917
1917
|
const hide = "_hide_16jkc_37";
|
|
1918
|
-
const styles$
|
|
1918
|
+
const styles$r = {
|
|
1919
1919
|
"f-dialog": "_f-dialog_16jkc_1",
|
|
1920
1920
|
"active-dialog": "_active-dialog_16jkc_16",
|
|
1921
1921
|
"f-dialog__content": "_f-dialog__content_16jkc_20",
|
|
@@ -1967,12 +1967,12 @@ const FDialog = ({
|
|
|
1967
1967
|
{
|
|
1968
1968
|
id,
|
|
1969
1969
|
style: st,
|
|
1970
|
-
className: `${styles$
|
|
1970
|
+
className: `${styles$r["f-dialog"]} ${openAndClose ? styles$r["active-dialog"] : ""} ${className || ""}`,
|
|
1971
1971
|
onClick: () => closeButtonBackPage == null ? void 0 : closeButtonBackPage(false),
|
|
1972
1972
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1973
1973
|
"div",
|
|
1974
1974
|
{
|
|
1975
|
-
className: `${styles$
|
|
1975
|
+
className: `${styles$r["f-dialog__content"]} ${openAndClose ? styles$r["active"] : ""} ${hide2 ? styles$r["hide"] : ""}`,
|
|
1976
1976
|
style: {
|
|
1977
1977
|
width: contentWidth
|
|
1978
1978
|
},
|
|
@@ -2012,10 +2012,10 @@ const FCloseIcon = React.forwardRef(({
|
|
|
2012
2012
|
);
|
|
2013
2013
|
});
|
|
2014
2014
|
FCloseIcon.displayName = "FCloseIcon";
|
|
2015
|
-
const FDialogHeader = ({ title, handleClose }) => {
|
|
2016
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
2017
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: styles$
|
|
2018
|
-
handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2015
|
+
const FDialogHeader = ({ title: title2, handleClose }) => {
|
|
2016
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$r["f-dialog__header"], children: [
|
|
2017
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: styles$r["f-dialog__header_title"], children: title2 }),
|
|
2018
|
+
handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$r["f-dialog__header_close"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2019
2019
|
FCloseIcon,
|
|
2020
2020
|
{
|
|
2021
2021
|
handleClose,
|
|
@@ -2030,7 +2030,7 @@ const FDialogBody = ({ st, children, scroll = true }) => {
|
|
|
2030
2030
|
...scroll ? { overflowY: "auto" } : {},
|
|
2031
2031
|
...st
|
|
2032
2032
|
};
|
|
2033
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2033
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$r["f-dialog__body"], style, children });
|
|
2034
2034
|
};
|
|
2035
2035
|
const FDialogFooter = ({ children, className, st, id }) => {
|
|
2036
2036
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -2038,7 +2038,7 @@ const FDialogFooter = ({ children, className, st, id }) => {
|
|
|
2038
2038
|
{
|
|
2039
2039
|
id,
|
|
2040
2040
|
style: st,
|
|
2041
|
-
className: `${styles$
|
|
2041
|
+
className: `${styles$r["f-dialog__footer"]} ${className || ""}`,
|
|
2042
2042
|
children
|
|
2043
2043
|
}
|
|
2044
2044
|
);
|
|
@@ -2053,7 +2053,7 @@ const info$2 = "_info_1lhk7_62";
|
|
|
2053
2053
|
const light = "_light_1lhk7_66";
|
|
2054
2054
|
const dark = "_dark_1lhk7_70";
|
|
2055
2055
|
const link = "_link_1lhk7_74";
|
|
2056
|
-
const styles$
|
|
2056
|
+
const styles$q = {
|
|
2057
2057
|
"authorization-spinner": "_authorization-spinner_1lhk7_1",
|
|
2058
2058
|
"spinner-item": "_spinner-item_1lhk7_7",
|
|
2059
2059
|
loader,
|
|
@@ -2071,14 +2071,14 @@ const FProgress = ({ st, color = "primary", id, className }) => {
|
|
|
2071
2071
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2072
2072
|
"div",
|
|
2073
2073
|
{
|
|
2074
|
-
className: `${styles$
|
|
2074
|
+
className: `${styles$q["authorization-spinner"]} ${styles$q.visible} ${className || ""}`,
|
|
2075
2075
|
id,
|
|
2076
2076
|
style: st,
|
|
2077
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$
|
|
2077
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$q["spinner-item"]} ${styles$q[color]}` })
|
|
2078
2078
|
}
|
|
2079
2079
|
);
|
|
2080
2080
|
};
|
|
2081
|
-
const styles$
|
|
2081
|
+
const styles$p = {
|
|
2082
2082
|
"f-preloader": "_f-preloader_17f9x_1",
|
|
2083
2083
|
"active-preloader": "_active-preloader_17f9x_10"
|
|
2084
2084
|
};
|
|
@@ -2105,13 +2105,13 @@ const FPreloader = ({
|
|
|
2105
2105
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2106
2106
|
"div",
|
|
2107
2107
|
{
|
|
2108
|
-
className: `${styles$
|
|
2108
|
+
className: `${styles$p["f-preloader"]} ${open ? styles$p["active-preloader"] : ""}`,
|
|
2109
2109
|
style: mergedStyle,
|
|
2110
2110
|
children
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
2113
|
};
|
|
2114
|
-
const styles$
|
|
2114
|
+
const styles$o = {
|
|
2115
2115
|
"f-checkbox": "_f-checkbox_9rvqg_1"
|
|
2116
2116
|
};
|
|
2117
2117
|
const FCheckbox = forwardRef(
|
|
@@ -2124,7 +2124,7 @@ const FCheckbox = forwardRef(
|
|
|
2124
2124
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2125
2125
|
"div",
|
|
2126
2126
|
{
|
|
2127
|
-
className: `${styles$
|
|
2127
|
+
className: `${styles$o["f-checkbox"]} ${className || ""}`,
|
|
2128
2128
|
style: st,
|
|
2129
2129
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
|
|
2130
2130
|
/* @__PURE__ */ jsxRuntimeExports.jsx("input", { ref, type: "checkbox", ...props }),
|
|
@@ -2134,7 +2134,7 @@ const FCheckbox = forwardRef(
|
|
|
2134
2134
|
);
|
|
2135
2135
|
}
|
|
2136
2136
|
);
|
|
2137
|
-
const styles$
|
|
2137
|
+
const styles$n = {
|
|
2138
2138
|
"f-radio": "_f-radio_cwhmx_1"
|
|
2139
2139
|
};
|
|
2140
2140
|
const FRadioButton = forwardRef(
|
|
@@ -2147,7 +2147,7 @@ const FRadioButton = forwardRef(
|
|
|
2147
2147
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2148
2148
|
"div",
|
|
2149
2149
|
{
|
|
2150
|
-
className: `${styles$
|
|
2150
|
+
className: `${styles$n["f-radio"]} ${className || ""}`,
|
|
2151
2151
|
style: st,
|
|
2152
2152
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
|
|
2153
2153
|
/* @__PURE__ */ jsxRuntimeExports.jsx("input", { ref, type: "radio", ...props }),
|
|
@@ -2205,15 +2205,15 @@ const usePagination = ({
|
|
|
2205
2205
|
return paginationRange;
|
|
2206
2206
|
};
|
|
2207
2207
|
const dots = "_dots_aham2_29";
|
|
2208
|
-
const selected = "_selected_aham2_33";
|
|
2208
|
+
const selected$1 = "_selected_aham2_33";
|
|
2209
2209
|
const disabled$2 = "_disabled_aham2_37";
|
|
2210
2210
|
const arrow = "_arrow_aham2_43";
|
|
2211
2211
|
const left = "_left_aham2_56";
|
|
2212
|
-
const styles$
|
|
2212
|
+
const styles$m = {
|
|
2213
2213
|
"pagination-container": "_pagination-container_aham2_1",
|
|
2214
2214
|
"pagination-item": "_pagination-item_aham2_9",
|
|
2215
2215
|
dots,
|
|
2216
|
-
selected,
|
|
2216
|
+
selected: selected$1,
|
|
2217
2217
|
disabled: disabled$2,
|
|
2218
2218
|
arrow,
|
|
2219
2219
|
left
|
|
@@ -2243,26 +2243,26 @@ const FPagination = ({
|
|
|
2243
2243
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2244
2244
|
"ul",
|
|
2245
2245
|
{
|
|
2246
|
-
className: `${styles$
|
|
2246
|
+
className: `${styles$m["pagination-container"]} ${className || ""}`,
|
|
2247
2247
|
style: st,
|
|
2248
2248
|
id,
|
|
2249
2249
|
children: [
|
|
2250
2250
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2251
2251
|
"li",
|
|
2252
2252
|
{
|
|
2253
|
-
className: `${styles$
|
|
2253
|
+
className: `${styles$m["pagination-item"]} ${currentPage === 1 ? styles$m.disabled : ""}`,
|
|
2254
2254
|
onClick: onPrevious,
|
|
2255
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$
|
|
2255
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$m.arrow} ${styles$m.left}` })
|
|
2256
2256
|
}
|
|
2257
2257
|
),
|
|
2258
2258
|
paginationRange.map((pageNumber, index) => {
|
|
2259
2259
|
if (pageNumber === DOTS) {
|
|
2260
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: `${styles$
|
|
2260
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: `${styles$m["pagination-item"]} ${styles$m.dots}`, children: "…" }, index);
|
|
2261
2261
|
}
|
|
2262
2262
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2263
2263
|
"li",
|
|
2264
2264
|
{
|
|
2265
|
-
className: `${styles$
|
|
2265
|
+
className: `${styles$m["pagination-item"]} ${pageNumber === currentPage ? styles$m.selected : ""}`,
|
|
2266
2266
|
onClick: () => onPageChange(pageNumber),
|
|
2267
2267
|
children: pageNumber
|
|
2268
2268
|
},
|
|
@@ -2272,16 +2272,16 @@ const FPagination = ({
|
|
|
2272
2272
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2273
2273
|
"li",
|
|
2274
2274
|
{
|
|
2275
|
-
className: `${styles$
|
|
2275
|
+
className: `${styles$m["pagination-item"]} ${currentPage === lastPage ? styles$m.disabled : ""}`,
|
|
2276
2276
|
onClick: onNext,
|
|
2277
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$
|
|
2277
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$m.arrow} ${styles$m.right}` })
|
|
2278
2278
|
}
|
|
2279
2279
|
)
|
|
2280
2280
|
]
|
|
2281
2281
|
}
|
|
2282
2282
|
);
|
|
2283
2283
|
};
|
|
2284
|
-
const styles$
|
|
2284
|
+
const styles$l = {
|
|
2285
2285
|
"f-time-line": "_f-time-line_1ybe7_1",
|
|
2286
2286
|
"f-time-line__block": "_f-time-line__block_1ybe7_10",
|
|
2287
2287
|
"f-time-line__block-circle": "_f-time-line__block-circle_1ybe7_29",
|
|
@@ -2295,26 +2295,26 @@ const FTimeline = ({
|
|
|
2295
2295
|
id,
|
|
2296
2296
|
className
|
|
2297
2297
|
}) => {
|
|
2298
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$
|
|
2298
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$l["f-time-line"]} ${className || ""}`, style: st, id, children });
|
|
2299
2299
|
};
|
|
2300
2300
|
const FTimelineCard = ({
|
|
2301
2301
|
children,
|
|
2302
2302
|
st,
|
|
2303
|
-
title,
|
|
2303
|
+
title: title2,
|
|
2304
2304
|
id,
|
|
2305
2305
|
className
|
|
2306
2306
|
}) => {
|
|
2307
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$
|
|
2308
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2309
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
2310
|
-
|
|
2311
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2307
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$l["f-time-line__block"]} ${className || ""}`, id, children: [
|
|
2308
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$l["f-time-line__block-circle"] }),
|
|
2309
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$l["f-time-line__block-inner"], style: st, children: [
|
|
2310
|
+
title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$l["f-time-line__block-title"], children: title2 }),
|
|
2311
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$l["f-time-line__block-content"], children })
|
|
2312
2312
|
] })
|
|
2313
2313
|
] });
|
|
2314
2314
|
};
|
|
2315
2315
|
const spinner = "_spinner_f7bma_133";
|
|
2316
2316
|
const active$3 = "_active_f7bma_183";
|
|
2317
|
-
const styles$
|
|
2317
|
+
const styles$k = {
|
|
2318
2318
|
"fv-opn-img-full": "_fv-opn-img-full_f7bma_1",
|
|
2319
2319
|
"fv-opn-img-full-body": "_fv-opn-img-full-body_f7bma_19",
|
|
2320
2320
|
"close-button": "_close-button_f7bma_33",
|
|
@@ -2453,10 +2453,10 @@ const FOpenImgFull = ({
|
|
|
2453
2453
|
{
|
|
2454
2454
|
openAndClose,
|
|
2455
2455
|
st,
|
|
2456
|
-
className: `${styles$
|
|
2456
|
+
className: `${styles$k["fv-opn-img-full"]} ${className || ""}`,
|
|
2457
2457
|
id,
|
|
2458
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
2459
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2458
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$k["fv-opn-img-full-body"], children: [
|
|
2459
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["close-button"], children: handleClose && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2460
2460
|
FCloseIcon,
|
|
2461
2461
|
{
|
|
2462
2462
|
handleClose: () => {
|
|
@@ -2468,21 +2468,21 @@ const FOpenImgFull = ({
|
|
|
2468
2468
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2469
2469
|
"div",
|
|
2470
2470
|
{
|
|
2471
|
-
className: styles$
|
|
2471
|
+
className: styles$k["image-container"],
|
|
2472
2472
|
onTouchStart: handleTouchStart,
|
|
2473
2473
|
onTouchMove: handleTouchMove,
|
|
2474
2474
|
onTouchEnd: handleTouchEnd,
|
|
2475
2475
|
children: [
|
|
2476
|
-
selectedImg > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2476
|
+
selectedImg > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["arrow-left"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2477
2477
|
FArrowIcon,
|
|
2478
2478
|
{
|
|
2479
2479
|
direction: "left",
|
|
2480
2480
|
handleClick: () => setSelectedImg(selectedImg - 1)
|
|
2481
2481
|
}
|
|
2482
2482
|
) }),
|
|
2483
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
2484
|
-
isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2485
|
-
error2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2483
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$k["image-wrapper"], children: [
|
|
2484
|
+
isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["loading-spinner"], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["spinner"] }) }),
|
|
2485
|
+
error2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["error-message"], children: "Ошибка загрузки изображения" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2486
2486
|
"img",
|
|
2487
2487
|
{
|
|
2488
2488
|
src: imagesUrl[selectedImg],
|
|
@@ -2492,7 +2492,7 @@ const FOpenImgFull = ({
|
|
|
2492
2492
|
setError(true);
|
|
2493
2493
|
setIsLoading(false);
|
|
2494
2494
|
},
|
|
2495
|
-
className: styles$
|
|
2495
|
+
className: styles$k["full-image"],
|
|
2496
2496
|
onClick: handleImageClick,
|
|
2497
2497
|
style: {
|
|
2498
2498
|
cursor: "zoom-in",
|
|
@@ -2502,7 +2502,7 @@ const FOpenImgFull = ({
|
|
|
2502
2502
|
}
|
|
2503
2503
|
)
|
|
2504
2504
|
] }),
|
|
2505
|
-
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2505
|
+
selectedImg < imagesUrl.length - 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["arrow-right"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2506
2506
|
FArrowIcon,
|
|
2507
2507
|
{
|
|
2508
2508
|
direction: "right",
|
|
@@ -2512,10 +2512,10 @@ const FOpenImgFull = ({
|
|
|
2512
2512
|
]
|
|
2513
2513
|
}
|
|
2514
2514
|
),
|
|
2515
|
-
imagesUrl.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2515
|
+
imagesUrl.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$k["progress-indicator"], children: imagesUrl.map((_, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2516
2516
|
"div",
|
|
2517
2517
|
{
|
|
2518
|
-
className: `${styles$
|
|
2518
|
+
className: `${styles$k["progress-dot"]} ${index === selectedImg ? styles$k["active"] : ""}`,
|
|
2519
2519
|
onClick: () => setSelectedImg(index)
|
|
2520
2520
|
},
|
|
2521
2521
|
index
|
|
@@ -2524,12 +2524,12 @@ const FOpenImgFull = ({
|
|
|
2524
2524
|
}
|
|
2525
2525
|
);
|
|
2526
2526
|
};
|
|
2527
|
-
const card = "_card_1pttw_1";
|
|
2527
|
+
const card$1 = "_card_1pttw_1";
|
|
2528
2528
|
const warning$3 = "_warning_1pttw_16";
|
|
2529
2529
|
const info$1 = "_info_1pttw_24";
|
|
2530
2530
|
const alert$1 = "_alert_1pttw_32";
|
|
2531
|
-
const styles$
|
|
2532
|
-
card,
|
|
2531
|
+
const styles$j = {
|
|
2532
|
+
card: card$1,
|
|
2533
2533
|
warning: warning$3,
|
|
2534
2534
|
info: info$1,
|
|
2535
2535
|
alert: alert$1,
|
|
@@ -2537,7 +2537,7 @@ const styles$h = {
|
|
|
2537
2537
|
};
|
|
2538
2538
|
const FAccordion = ({
|
|
2539
2539
|
variant = "info",
|
|
2540
|
-
title,
|
|
2540
|
+
title: title2,
|
|
2541
2541
|
children,
|
|
2542
2542
|
id,
|
|
2543
2543
|
className,
|
|
@@ -2556,16 +2556,16 @@ const FAccordion = ({
|
|
|
2556
2556
|
"div",
|
|
2557
2557
|
{
|
|
2558
2558
|
onClick,
|
|
2559
|
-
className: `${styles$
|
|
2559
|
+
className: `${styles$j.card} ${className || ""}`,
|
|
2560
2560
|
id,
|
|
2561
2561
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2562
2562
|
"details",
|
|
2563
2563
|
{
|
|
2564
|
-
className: styles$
|
|
2564
|
+
className: styles$j[variant],
|
|
2565
2565
|
open: isOpen,
|
|
2566
2566
|
style: st,
|
|
2567
2567
|
children: [
|
|
2568
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("summary", { className: styles$
|
|
2568
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("summary", { className: styles$j["fv-accord-title"], children: title2 }),
|
|
2569
2569
|
children
|
|
2570
2570
|
]
|
|
2571
2571
|
}
|
|
@@ -2573,9 +2573,9 @@ const FAccordion = ({
|
|
|
2573
2573
|
}
|
|
2574
2574
|
);
|
|
2575
2575
|
};
|
|
2576
|
-
const container = "_container_6r9j2_1";
|
|
2577
|
-
const styles$
|
|
2578
|
-
container,
|
|
2576
|
+
const container$1 = "_container_6r9j2_1";
|
|
2577
|
+
const styles$i = {
|
|
2578
|
+
container: container$1,
|
|
2579
2579
|
"custom-file": "_custom-file_6r9j2_6",
|
|
2580
2580
|
"custom-file-input": "_custom-file-input_6r9j2_9",
|
|
2581
2581
|
"custom-file-dropzone": "_custom-file-dropzone_6r9j2_24",
|
|
@@ -2593,7 +2593,7 @@ const FInputFileForm = ({
|
|
|
2593
2593
|
onChange,
|
|
2594
2594
|
disabled: disabled2 = false,
|
|
2595
2595
|
deleteFile,
|
|
2596
|
-
title,
|
|
2596
|
+
title: title2,
|
|
2597
2597
|
required,
|
|
2598
2598
|
onValidationError,
|
|
2599
2599
|
showPreview = true,
|
|
@@ -2704,11 +2704,11 @@ const FInputFileForm = ({
|
|
|
2704
2704
|
setUploadProgress({});
|
|
2705
2705
|
}
|
|
2706
2706
|
}, [deleteFile]);
|
|
2707
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
2707
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i.container, children: [
|
|
2708
2708
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2709
2709
|
"div",
|
|
2710
2710
|
{
|
|
2711
|
-
className: `${styles$
|
|
2711
|
+
className: `${styles$i["custom-file"]} ${styles$i["custom-file-dropzone"]} ${isDragging ? styles$i.dragging : ""}`,
|
|
2712
2712
|
style: st,
|
|
2713
2713
|
onDragOver: handleDragOver,
|
|
2714
2714
|
onDragLeave: handleDragLeave,
|
|
@@ -2720,10 +2720,10 @@ const FInputFileForm = ({
|
|
|
2720
2720
|
required,
|
|
2721
2721
|
accept,
|
|
2722
2722
|
type: "file",
|
|
2723
|
-
className: `${styles$
|
|
2723
|
+
className: `${styles$i["custom-file-input"]} ${className || ""}`,
|
|
2724
2724
|
name,
|
|
2725
2725
|
id,
|
|
2726
|
-
title,
|
|
2726
|
+
title: title2,
|
|
2727
2727
|
"data-max-size": dataMaxSize == null ? void 0 : dataMaxSize.size,
|
|
2728
2728
|
multiple,
|
|
2729
2729
|
onChange: handleFileChange,
|
|
@@ -2731,7 +2731,7 @@ const FInputFileForm = ({
|
|
|
2731
2731
|
ref: inputRef
|
|
2732
2732
|
}
|
|
2733
2733
|
),
|
|
2734
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: id, className: styles$
|
|
2734
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("label", { htmlFor: id, className: styles$i["custom-file-label"], style: disabled2 ? { backgroundColor: "#F3F3F3", border: "1px dashed #C4C4C4" } : void 0, children: [
|
|
2735
2735
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "30", height: "30", fill: "currentColor", viewBox: "0 0 16 16", children: [
|
|
2736
2736
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { "fill-rule": "evenodd", d: "M7.646 5.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 6.707V10.5a.5.5 0 0 1-1 0V6.707L6.354 7.854a.5.5 0 1 1-.708-.708z" }),
|
|
2737
2737
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M4.406 3.342A5.53 5.53 0 0 1 8 2c2.69 0 4.923 2 5.166 4.579C14.758 6.804 16 8.137 16 9.773 16 11.569 14.502 13 12.687 13H3.781C1.708 13 0 11.366 0 9.318c0-1.763 1.266-3.223 2.942-3.593.143-.863.698-1.723 1.464-2.383m.653.757c-.757.653-1.153 1.44-1.153 2.056v.448l-.445.049C2.064 6.805 1 7.952 1 9.318 1 10.785 2.23 12 3.781 12h8.906C13.98 12 15 10.988 15 9.773c0-1.216-1.02-2.228-2.313-2.228h-.5v-.5C12.188 4.825 10.328 3 8 3a4.53 4.53 0 0 0-2.941 1.1z" })
|
|
@@ -2757,8 +2757,8 @@ const FInputFileForm = ({
|
|
|
2757
2757
|
]
|
|
2758
2758
|
}
|
|
2759
2759
|
),
|
|
2760
|
-
errors.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2761
|
-
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
2760
|
+
errors.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.errors, children: errors.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.error, children: error2 }, index)) }),
|
|
2761
|
+
showPreview && selectedFiles.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i["custom-files-preview"], children: selectedFiles.map((file, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.fileItem, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2762
2762
|
FFile,
|
|
2763
2763
|
{
|
|
2764
2764
|
name: file.name,
|
|
@@ -2769,7 +2769,7 @@ const FInputFileForm = ({
|
|
|
2769
2769
|
) }, index)) })
|
|
2770
2770
|
] });
|
|
2771
2771
|
};
|
|
2772
|
-
const styles$
|
|
2772
|
+
const styles$h = {
|
|
2773
2773
|
"f-select": "_f-select_1n6ag_1",
|
|
2774
2774
|
"f-select__control-element": "_f-select__control-element_1n6ag_5"
|
|
2775
2775
|
};
|
|
@@ -2799,7 +2799,7 @@ const FSelect = forwardRef(
|
|
|
2799
2799
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
2800
2800
|
"div",
|
|
2801
2801
|
{
|
|
2802
|
-
className: `f-form-element ${styles$
|
|
2802
|
+
className: `f-form-element ${styles$h["f-select"]}`,
|
|
2803
2803
|
style: mergedStyle,
|
|
2804
2804
|
id: inputId + "-select-block",
|
|
2805
2805
|
role: "group",
|
|
@@ -2824,7 +2824,7 @@ const FSelect = forwardRef(
|
|
|
2824
2824
|
...props,
|
|
2825
2825
|
id: inputId,
|
|
2826
2826
|
disabled: props.disabled || load,
|
|
2827
|
-
className: `f-form-element__control-element ${styles$
|
|
2827
|
+
className: `f-form-element__control-element ${styles$h["f-select__control-element"]} ${errText ? "error" : ""} ${props.className || ""}`,
|
|
2828
2828
|
children: !load && children
|
|
2829
2829
|
}
|
|
2830
2830
|
),
|
|
@@ -2906,7 +2906,7 @@ const FFullDateField = forwardRef(
|
|
|
2906
2906
|
}
|
|
2907
2907
|
);
|
|
2908
2908
|
const active$2 = "_active_yhck3_41";
|
|
2909
|
-
const styles$
|
|
2909
|
+
const styles$g = {
|
|
2910
2910
|
"f-select-search-db": "_f-select-search-db_yhck3_1",
|
|
2911
2911
|
"f-select-search-db__input": "_f-select-search-db__input_yhck3_7",
|
|
2912
2912
|
"f-select-search-db__input_field": "_f-select-search-db__input_field_yhck3_11",
|
|
@@ -3090,12 +3090,12 @@ const FSelectSearchDb = ({
|
|
|
3090
3090
|
"div",
|
|
3091
3091
|
{
|
|
3092
3092
|
ref: containerRef,
|
|
3093
|
-
className: `${styles$
|
|
3093
|
+
className: `${styles$g["f-select-search-db"]} ${className || ""}`,
|
|
3094
3094
|
style: st,
|
|
3095
3095
|
id,
|
|
3096
3096
|
"data-position": dropdownPosition,
|
|
3097
3097
|
children: [
|
|
3098
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
3098
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$g["f-select-search-db__input"], children: [
|
|
3099
3099
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3100
3100
|
FTextField,
|
|
3101
3101
|
{
|
|
@@ -3106,7 +3106,7 @@ const FSelectSearchDb = ({
|
|
|
3106
3106
|
label,
|
|
3107
3107
|
type,
|
|
3108
3108
|
placeholder,
|
|
3109
|
-
className: styles$
|
|
3109
|
+
className: styles$g["f-select-search-db__input_field"],
|
|
3110
3110
|
value: valueInput,
|
|
3111
3111
|
onChange: handlerOnChange,
|
|
3112
3112
|
onFocus,
|
|
@@ -3123,7 +3123,7 @@ const FSelectSearchDb = ({
|
|
|
3123
3123
|
!load && !disabled2 && arrObject.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3124
3124
|
"div",
|
|
3125
3125
|
{
|
|
3126
|
-
className: styles$
|
|
3126
|
+
className: styles$g["f-select-search-db__input_arrow"],
|
|
3127
3127
|
style: { marginTop: label ? "28px" : "7px" },
|
|
3128
3128
|
onClick: handleArrowClick,
|
|
3129
3129
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(FArrowIcon, { direction: isDropdownOpen ? "up" : "down", size: 15 })
|
|
@@ -3135,8 +3135,8 @@ const FSelectSearchDb = ({
|
|
|
3135
3135
|
"div",
|
|
3136
3136
|
{
|
|
3137
3137
|
ref: dropdownRef,
|
|
3138
|
-
className: `${styles$
|
|
3139
|
-
children: arrObject.length === 0 && valueInput.trim() === "" ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Введите текст" }) : arrObject.length === 0 && valueInput.trim() !== "" && !load ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Ничего не найдено" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: styles$
|
|
3138
|
+
className: `${styles$g["f-select-search-db__dropdown"]} ${isDropdownOpen ? styles$g.active : ""}`,
|
|
3139
|
+
children: arrObject.length === 0 && valueInput.trim() === "" ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Введите текст" }) : arrObject.length === 0 && valueInput.trim() !== "" && !load ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: "Ничего не найдено" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: styles$g["f-select-search-db__dropdown_content"], children: arrObject.slice(0, 10).map((opt, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", { onMouseDown: () => handleItemClick(opt), children: selectItem(opt) }, index)) })
|
|
3140
3140
|
}
|
|
3141
3141
|
),
|
|
3142
3142
|
dropdownPortalRef.current
|
|
@@ -3145,7 +3145,7 @@ const FSelectSearchDb = ({
|
|
|
3145
3145
|
}
|
|
3146
3146
|
);
|
|
3147
3147
|
};
|
|
3148
|
-
const styles$
|
|
3148
|
+
const styles$f = {
|
|
3149
3149
|
"f-text-area": "_f-text-area_1ywhr_1"
|
|
3150
3150
|
};
|
|
3151
3151
|
const FTextArea = forwardRef(
|
|
@@ -3174,7 +3174,7 @@ const FTextArea = forwardRef(
|
|
|
3174
3174
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3175
3175
|
"div",
|
|
3176
3176
|
{
|
|
3177
|
-
className: `f-form-element ${styles$
|
|
3177
|
+
className: `f-form-element ${styles$f["f-text-area"]} ${className || ""}`,
|
|
3178
3178
|
style: mergedStyle,
|
|
3179
3179
|
role: "group",
|
|
3180
3180
|
id: areaId + "-text-area-block",
|
|
@@ -3239,7 +3239,7 @@ function fGenerateUniqueId() {
|
|
|
3239
3239
|
return `${timestamp}${randomPart}`;
|
|
3240
3240
|
}
|
|
3241
3241
|
const FAlert = ({
|
|
3242
|
-
title,
|
|
3242
|
+
title: title2,
|
|
3243
3243
|
body,
|
|
3244
3244
|
variant = "info",
|
|
3245
3245
|
displayTime,
|
|
@@ -3424,7 +3424,7 @@ const FAlert = ({
|
|
|
3424
3424
|
style: { width: size !== void 0 ? `${size}` : "fit-content" },
|
|
3425
3425
|
children: [
|
|
3426
3426
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "f-alert-header", children: [
|
|
3427
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children:
|
|
3427
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h4", { children: title2 !== void 0 ? title2 : "" }),
|
|
3428
3428
|
buttonClose && onClose && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3429
3429
|
FCloseIcon,
|
|
3430
3430
|
{
|
|
@@ -3533,7 +3533,7 @@ const FNative = ({
|
|
|
3533
3533
|
const horizontal = "_horizontal_zlvc7_1";
|
|
3534
3534
|
const vertical = "_vertical_zlvc7_7";
|
|
3535
3535
|
const active$1 = "_active_zlvc7_50";
|
|
3536
|
-
const styles$
|
|
3536
|
+
const styles$e = {
|
|
3537
3537
|
"f-tabs": "_f-tabs_zlvc7_1",
|
|
3538
3538
|
horizontal,
|
|
3539
3539
|
vertical,
|
|
@@ -3552,7 +3552,7 @@ const FTabs = ({
|
|
|
3552
3552
|
{
|
|
3553
3553
|
id,
|
|
3554
3554
|
style: st,
|
|
3555
|
-
className: `${styles$
|
|
3555
|
+
className: `${styles$e["f-tabs"]} ${styles$e[orientation]} ${className || ""}`,
|
|
3556
3556
|
children
|
|
3557
3557
|
}
|
|
3558
3558
|
);
|
|
@@ -3569,7 +3569,7 @@ const FTab = forwardRef(({
|
|
|
3569
3569
|
ref,
|
|
3570
3570
|
type: "button",
|
|
3571
3571
|
style: st,
|
|
3572
|
-
className: `${styles$
|
|
3572
|
+
className: `${styles$e["f-tabs__tab"]} ${active2 ? styles$e["active"] : ""} ${props.className || ""}`,
|
|
3573
3573
|
...props,
|
|
3574
3574
|
children
|
|
3575
3575
|
}
|
|
@@ -3577,7 +3577,7 @@ const FTab = forwardRef(({
|
|
|
3577
3577
|
});
|
|
3578
3578
|
FTab.displayName = "FTab";
|
|
3579
3579
|
const disabled$1 = "_disabled_2ty2i_40";
|
|
3580
|
-
const styles$
|
|
3580
|
+
const styles$d = {
|
|
3581
3581
|
"f-dropdown": "_f-dropdown_2ty2i_1",
|
|
3582
3582
|
"f-dropdown__arrow": "_f-dropdown__arrow_2ty2i_6",
|
|
3583
3583
|
"f-dropdown__content": "_f-dropdown__content_2ty2i_10",
|
|
@@ -3627,7 +3627,7 @@ const FDropdown = forwardRef(({
|
|
|
3627
3627
|
return child;
|
|
3628
3628
|
});
|
|
3629
3629
|
};
|
|
3630
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
3630
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$d["f-dropdown"], ref, ...props, children: [
|
|
3631
3631
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3632
3632
|
FButton,
|
|
3633
3633
|
{
|
|
@@ -3636,21 +3636,21 @@ const FDropdown = forwardRef(({
|
|
|
3636
3636
|
size,
|
|
3637
3637
|
disabled: disabled2,
|
|
3638
3638
|
st,
|
|
3639
|
-
className: `${styles$
|
|
3639
|
+
className: `${styles$d["f-dropdown__button"]} ${className || ""}`,
|
|
3640
3640
|
id,
|
|
3641
3641
|
onClick: () => setIsOpen((v) => !v),
|
|
3642
3642
|
"aria-haspopup": "menu",
|
|
3643
3643
|
"aria-expanded": isOpen,
|
|
3644
3644
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(FStack, { direction: "row", spacing: 2, justifyContent: "center", alignItems: "center", children: [
|
|
3645
3645
|
label,
|
|
3646
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(FArrowIcon, { className: styles$
|
|
3646
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FArrowIcon, { className: styles$d["f-dropdown__arrow"], size: 16, color: "light", direction: isOpen ? "up" : "down" })
|
|
3647
3647
|
] })
|
|
3648
3648
|
}
|
|
3649
3649
|
),
|
|
3650
3650
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3651
3651
|
"div",
|
|
3652
3652
|
{
|
|
3653
|
-
className: styles$
|
|
3653
|
+
className: styles$d["f-dropdown__content"] + (isOpen ? " " + styles$d["f-dropdown__content--open"] : ""),
|
|
3654
3654
|
role: "menu",
|
|
3655
3655
|
children: renderChildren()
|
|
3656
3656
|
}
|
|
@@ -3671,7 +3671,7 @@ const FDropdownItem = ({
|
|
|
3671
3671
|
{
|
|
3672
3672
|
id,
|
|
3673
3673
|
style: st,
|
|
3674
|
-
className: `${styles$
|
|
3674
|
+
className: `${styles$d["f-dropdown__content-link"]} ${className || ""} ${disabled2 ? styles$d["disabled"] : ""}`,
|
|
3675
3675
|
onClick: disabled2 ? void 0 : onClick,
|
|
3676
3676
|
"aria-disabled": disabled2,
|
|
3677
3677
|
role: "menuitem",
|
|
@@ -3679,7 +3679,7 @@ const FDropdownItem = ({
|
|
|
3679
3679
|
}
|
|
3680
3680
|
);
|
|
3681
3681
|
};
|
|
3682
|
-
const styles$
|
|
3682
|
+
const styles$c = {
|
|
3683
3683
|
"f-search-box": "_f-search-box_1ce2j_1",
|
|
3684
3684
|
"f-search-box__input": "_f-search-box__input_1ce2j_7",
|
|
3685
3685
|
"f-search-box__button": "_f-search-box__button_1ce2j_13",
|
|
@@ -3705,7 +3705,7 @@ const FSearchBox = forwardRef(
|
|
|
3705
3705
|
type,
|
|
3706
3706
|
...props
|
|
3707
3707
|
}, ref) => {
|
|
3708
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$
|
|
3708
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${styles$c["f-search-box"]} form-group`, style: st, children: [
|
|
3709
3709
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3710
3710
|
FTextField,
|
|
3711
3711
|
{
|
|
@@ -3719,14 +3719,14 @@ const FSearchBox = forwardRef(
|
|
|
3719
3719
|
errText,
|
|
3720
3720
|
load,
|
|
3721
3721
|
...props,
|
|
3722
|
-
className: `${styles$
|
|
3722
|
+
className: `${styles$c["f-search-box__input"]} ${props.className || ""}`
|
|
3723
3723
|
}
|
|
3724
3724
|
),
|
|
3725
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
|
3725
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$c["f-search-box__button"], style: { marginTop: label ? "21.8px" : "0" }, children: [
|
|
3726
3726
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3727
3727
|
FButton,
|
|
3728
3728
|
{
|
|
3729
|
-
className: `${styles$
|
|
3729
|
+
className: `${styles$c["f-search-box__button_search"]} ${clearDataFromInput ? styles$c["clear-on"] : ""}`,
|
|
3730
3730
|
type: "button",
|
|
3731
3731
|
disabled: disabled2,
|
|
3732
3732
|
onClick: onClickButton,
|
|
@@ -3738,7 +3738,7 @@ const FSearchBox = forwardRef(
|
|
|
3738
3738
|
clearDataFromInput && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3739
3739
|
FButton,
|
|
3740
3740
|
{
|
|
3741
|
-
className: `${styles$
|
|
3741
|
+
className: `${styles$c["f-search-box__button_clear"]}`,
|
|
3742
3742
|
type: "button",
|
|
3743
3743
|
disabled: disabled2,
|
|
3744
3744
|
onClick: clearDataFromInput,
|
|
@@ -3751,7 +3751,7 @@ const FSearchBox = forwardRef(
|
|
|
3751
3751
|
] });
|
|
3752
3752
|
}
|
|
3753
3753
|
);
|
|
3754
|
-
const styles$
|
|
3754
|
+
const styles$b = {
|
|
3755
3755
|
"f-carousel": "_f-carousel_d5w12_1",
|
|
3756
3756
|
"f-carousel__viewport": "_f-carousel__viewport_d5w12_8",
|
|
3757
3757
|
"f-carousel__track": "_f-carousel__track_d5w12_12",
|
|
@@ -3834,10 +3834,10 @@ const FCarousel = ({
|
|
|
3834
3834
|
const handleTouchEnd = () => {
|
|
3835
3835
|
startX.current = null;
|
|
3836
3836
|
};
|
|
3837
|
-
const rootClass = [styles$
|
|
3837
|
+
const rootClass = [styles$b["f-carousel"], className].filter(Boolean).join(" ");
|
|
3838
3838
|
const trackClass = [
|
|
3839
|
-
styles$
|
|
3840
|
-
isAnimating ? styles$
|
|
3839
|
+
styles$b["f-carousel__track"],
|
|
3840
|
+
isAnimating ? styles$b["f-carousel__track--animating"] : ""
|
|
3841
3841
|
].filter(Boolean).join(" ");
|
|
3842
3842
|
const trackStyle = {
|
|
3843
3843
|
transform: `translateX(-${100 / itemsCount * current}%)`,
|
|
@@ -3848,7 +3848,7 @@ const FCarousel = ({
|
|
|
3848
3848
|
showArrows && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3849
3849
|
"button",
|
|
3850
3850
|
{
|
|
3851
|
-
className: `${styles$
|
|
3851
|
+
className: `${styles$b["f-carousel__arrow"]} ${styles$b["f-carousel__arrow--left"]}`,
|
|
3852
3852
|
onClick: handlePrev,
|
|
3853
3853
|
disabled: !loop && current === 0,
|
|
3854
3854
|
"aria-label": "Назад",
|
|
@@ -3858,14 +3858,14 @@ const FCarousel = ({
|
|
|
3858
3858
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3859
3859
|
"div",
|
|
3860
3860
|
{
|
|
3861
|
-
className: styles$
|
|
3861
|
+
className: styles$b["f-carousel__viewport"],
|
|
3862
3862
|
onTouchStart: handleTouchStart,
|
|
3863
3863
|
onTouchMove: handleTouchMove,
|
|
3864
3864
|
onTouchEnd: handleTouchEnd,
|
|
3865
3865
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: trackRef, className: trackClass, style: trackStyle, children: children.map((child, idx) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3866
3866
|
"div",
|
|
3867
3867
|
{
|
|
3868
|
-
className: styles$
|
|
3868
|
+
className: styles$b["f-carousel__item"],
|
|
3869
3869
|
style: { width: `${100 / itemsCount}%` },
|
|
3870
3870
|
children: child
|
|
3871
3871
|
},
|
|
@@ -3876,19 +3876,19 @@ const FCarousel = ({
|
|
|
3876
3876
|
showArrows && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3877
3877
|
"button",
|
|
3878
3878
|
{
|
|
3879
|
-
className: `${styles$
|
|
3879
|
+
className: `${styles$b["f-carousel__arrow"]} ${styles$b["f-carousel__arrow--right"]}`,
|
|
3880
3880
|
onClick: handleNext,
|
|
3881
3881
|
disabled: !loop && current >= itemsCount - visibleCount,
|
|
3882
3882
|
"aria-label": "Вперёд",
|
|
3883
3883
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: arrowRight, alt: "Следующий слайд" })
|
|
3884
3884
|
}
|
|
3885
3885
|
),
|
|
3886
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
3886
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b["f-carousel__indicators"], children: Array.from({ length: itemsCount - visibleCount + 1 }).map((_, idx) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3887
3887
|
"button",
|
|
3888
3888
|
{
|
|
3889
3889
|
className: [
|
|
3890
|
-
styles$
|
|
3891
|
-
idx === current ? styles$
|
|
3890
|
+
styles$b["f-carousel__indicator"],
|
|
3891
|
+
idx === current ? styles$b["f-carousel__indicator--active"] : ""
|
|
3892
3892
|
].join(" "),
|
|
3893
3893
|
onClick: () => setCurrent(idx),
|
|
3894
3894
|
"aria-label": `Перейти к слайду ${idx + 1}`
|
|
@@ -3902,10 +3902,10 @@ const FCarouselItem = ({
|
|
|
3902
3902
|
className,
|
|
3903
3903
|
id
|
|
3904
3904
|
}) => {
|
|
3905
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$
|
|
3905
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$b["f-carousel-item"]} ${className || ""}`, id, children });
|
|
3906
3906
|
};
|
|
3907
3907
|
const skeleton = "_skeleton_1ojrt_1";
|
|
3908
|
-
const styles$
|
|
3908
|
+
const styles$a = {
|
|
3909
3909
|
"skeleton-block": "_skeleton-block_1ojrt_1",
|
|
3910
3910
|
skeleton
|
|
3911
3911
|
};
|
|
@@ -3915,7 +3915,7 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3915
3915
|
const skeletons = useRef([]);
|
|
3916
3916
|
const createSkeleton = (element) => {
|
|
3917
3917
|
const skeleton2 = document.createElement("div");
|
|
3918
|
-
skeleton2.className = styles$
|
|
3918
|
+
skeleton2.className = styles$a.skeleton;
|
|
3919
3919
|
const computedStyle = window.getComputedStyle(element);
|
|
3920
3920
|
skeleton2.style.width = width ?? computedStyle.width;
|
|
3921
3921
|
skeleton2.style.height = height ?? computedStyle.height;
|
|
@@ -3962,10 +3962,10 @@ const FSkeleton = ({ children, enable, width, height }) => {
|
|
|
3962
3962
|
restoreOriginalElements();
|
|
3963
3963
|
};
|
|
3964
3964
|
}, [enable]);
|
|
3965
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: elementRef, className: styles$
|
|
3965
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: elementRef, className: styles$a["skeleton-block"], children });
|
|
3966
3966
|
};
|
|
3967
3967
|
const active = "_active_1tib7_71";
|
|
3968
|
-
const styles$
|
|
3968
|
+
const styles$9 = {
|
|
3969
3969
|
"f-nav-bar": "_f-nav-bar_1tib7_1",
|
|
3970
3970
|
"f-nav-bar__menu": "_f-nav-bar__menu_1tib7_8",
|
|
3971
3971
|
"f-nav-bar__menu-route": "_f-nav-bar__menu-route_1tib7_31",
|
|
@@ -3977,7 +3977,7 @@ const FNavigateBar = ({
|
|
|
3977
3977
|
id,
|
|
3978
3978
|
className
|
|
3979
3979
|
}) => {
|
|
3980
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FGrid, { obj: "container", id, className, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FGridRow, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(FGrid, { obj: "item", sm: 12, children: /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { style: st, className: styles$
|
|
3980
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FGrid, { obj: "container", id, className, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FGridRow, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(FGrid, { obj: "item", sm: 12, children: /* @__PURE__ */ jsxRuntimeExports.jsx("nav", { style: st, className: styles$9["f-nav-bar"], children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: styles$9["f-nav-bar__menu"], children }) }) }) }) });
|
|
3981
3981
|
};
|
|
3982
3982
|
const FNavigateBarItem = ({
|
|
3983
3983
|
st,
|
|
@@ -3991,13 +3991,13 @@ const FNavigateBarItem = ({
|
|
|
3991
3991
|
{
|
|
3992
3992
|
id,
|
|
3993
3993
|
style: st,
|
|
3994
|
-
className: `${styles$
|
|
3994
|
+
className: `${styles$9["f-nav-bar__menu-route"]} ${activeClass ? styles$9.active : ""} ${className || ""}`,
|
|
3995
3995
|
children
|
|
3996
3996
|
}
|
|
3997
3997
|
);
|
|
3998
3998
|
};
|
|
3999
3999
|
const disabled = "_disabled_w47ps_49";
|
|
4000
|
-
const styles$
|
|
4000
|
+
const styles$8 = {
|
|
4001
4001
|
"sections-routes": "_sections-routes_w47ps_2",
|
|
4002
4002
|
"sections-routes_card": "_sections-routes_card_w47ps_9",
|
|
4003
4003
|
"sections-routes_card__title": "_sections-routes_card__title_w47ps_25",
|
|
@@ -4015,7 +4015,7 @@ const FMenuBlockLinks = ({
|
|
|
4015
4015
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4016
4016
|
"div",
|
|
4017
4017
|
{
|
|
4018
|
-
className: `${styles$
|
|
4018
|
+
className: `${styles$8["sections-routes"]} ${className ?? ""}`.trim(),
|
|
4019
4019
|
style,
|
|
4020
4020
|
id,
|
|
4021
4021
|
children
|
|
@@ -4028,15 +4028,15 @@ const FMenuLinks = ({
|
|
|
4028
4028
|
st,
|
|
4029
4029
|
id,
|
|
4030
4030
|
disabled: disabled2 = [],
|
|
4031
|
-
title
|
|
4031
|
+
title: title2
|
|
4032
4032
|
}) => {
|
|
4033
4033
|
const enhancedChildren = React.Children.map(children, (child, index) => {
|
|
4034
4034
|
if (!React.isValidElement(child)) return child;
|
|
4035
4035
|
const isDisabled = disabled2.includes(index);
|
|
4036
4036
|
const childClass = [
|
|
4037
4037
|
child.props.className,
|
|
4038
|
-
styles$
|
|
4039
|
-
isDisabled && styles$
|
|
4038
|
+
styles$8.link,
|
|
4039
|
+
isDisabled && styles$8.disabled
|
|
4040
4040
|
].filter(Boolean).join(" ");
|
|
4041
4041
|
return React.cloneElement(child, {
|
|
4042
4042
|
className: childClass,
|
|
@@ -4046,17 +4046,17 @@ const FMenuLinks = ({
|
|
|
4046
4046
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4047
4047
|
"div",
|
|
4048
4048
|
{
|
|
4049
|
-
className: `${styles$
|
|
4049
|
+
className: `${styles$8["sections-routes_card"]} ${className ?? ""}`.trim(),
|
|
4050
4050
|
style: st,
|
|
4051
4051
|
id,
|
|
4052
4052
|
children: [
|
|
4053
|
-
|
|
4054
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
4053
|
+
title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$8["sections-routes_card__title"], children: title2 }),
|
|
4054
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$8["sections-routes_card__links"], children: enhancedChildren })
|
|
4055
4055
|
]
|
|
4056
4056
|
}
|
|
4057
4057
|
);
|
|
4058
4058
|
};
|
|
4059
|
-
const styles$
|
|
4059
|
+
const styles$7 = {
|
|
4060
4060
|
"f-tooltip": "_f-tooltip_xpnbo_1",
|
|
4061
4061
|
"f-tooltip--open": "_f-tooltip--open_xpnbo_17",
|
|
4062
4062
|
"f-tooltip--exiting": "_f-tooltip--exiting_xpnbo_22",
|
|
@@ -4070,7 +4070,7 @@ const styles$5 = {
|
|
|
4070
4070
|
"f-tooltip--with-arrow": "_f-tooltip--with-arrow_xpnbo_104"
|
|
4071
4071
|
};
|
|
4072
4072
|
const FTooltip = ({
|
|
4073
|
-
title,
|
|
4073
|
+
title: title2,
|
|
4074
4074
|
children,
|
|
4075
4075
|
placement = "bottom",
|
|
4076
4076
|
arrow: arrow2 = false,
|
|
@@ -4245,14 +4245,14 @@ const FTooltip = ({
|
|
|
4245
4245
|
wrappedChild = cloneElement(children, childProps);
|
|
4246
4246
|
}
|
|
4247
4247
|
const tooltipClasses = [
|
|
4248
|
-
styles$
|
|
4249
|
-
styles$
|
|
4250
|
-
arrow2 ? styles$
|
|
4251
|
-
isVisible ? styles$
|
|
4252
|
-
isExiting ? styles$
|
|
4248
|
+
styles$7["f-tooltip"],
|
|
4249
|
+
styles$7[`f-tooltip--${placement}`],
|
|
4250
|
+
arrow2 ? styles$7["f-tooltip--with-arrow"] : "",
|
|
4251
|
+
isVisible ? styles$7["f-tooltip--open"] : "",
|
|
4252
|
+
isExiting ? styles$7["f-tooltip--exiting"] : "",
|
|
4253
4253
|
className
|
|
4254
4254
|
].filter(Boolean).join(" ");
|
|
4255
|
-
const tooltipElement = mountTooltip &&
|
|
4255
|
+
const tooltipElement = mountTooltip && title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4256
4256
|
"div",
|
|
4257
4257
|
{
|
|
4258
4258
|
ref: tooltipRef,
|
|
@@ -4260,8 +4260,8 @@ const FTooltip = ({
|
|
|
4260
4260
|
style: { ...style, ...tooltipStyles },
|
|
4261
4261
|
role: "tooltip",
|
|
4262
4262
|
children: [
|
|
4263
|
-
arrow2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
4264
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
|
4263
|
+
arrow2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7["f-tooltip__arrow"] }),
|
|
4264
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7["f-tooltip__content"], children: title2 })
|
|
4265
4265
|
]
|
|
4266
4266
|
}
|
|
4267
4267
|
) : null;
|
|
@@ -4270,6 +4270,311 @@ const FTooltip = ({
|
|
|
4270
4270
|
tooltipElement && createPortal(tooltipElement, document.body)
|
|
4271
4271
|
] });
|
|
4272
4272
|
};
|
|
4273
|
+
const rotate = "_rotate_igzn5_43";
|
|
4274
|
+
const focused = "_focused_igzn5_94";
|
|
4275
|
+
const selected = "_selected_igzn5_97";
|
|
4276
|
+
const styles$6 = {
|
|
4277
|
+
"f-search-select": "_f-search-select_igzn5_3",
|
|
4278
|
+
"f-select-native-hidden": "_f-select-native-hidden_igzn5_8",
|
|
4279
|
+
"f-select-actions": "_f-select-actions_igzn5_25",
|
|
4280
|
+
"f-select-icon": "_f-select-icon_igzn5_34",
|
|
4281
|
+
rotate,
|
|
4282
|
+
"f-select-dropdown": "_f-select-dropdown_igzn5_48",
|
|
4283
|
+
"f-select-list": "_f-select-list_igzn5_62",
|
|
4284
|
+
"f-select-option": "_f-select-option_igzn5_81",
|
|
4285
|
+
focused,
|
|
4286
|
+
selected,
|
|
4287
|
+
"f-select-create": "_f-select-create_igzn5_102",
|
|
4288
|
+
"f-select-no-results": "_f-select-no-results_igzn5_108",
|
|
4289
|
+
"f-select-highlight": "_f-select-highlight_igzn5_128",
|
|
4290
|
+
"has-icons": "_has-icons_igzn5_135"
|
|
4291
|
+
};
|
|
4292
|
+
const ChevronIcon = ({ className }) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className, children: /* @__PURE__ */ jsxRuntimeExports.jsx("polyline", { points: "6 9 12 15 18 9" }) });
|
|
4293
|
+
const CloseIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
4294
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
4295
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
4296
|
+
] });
|
|
4297
|
+
const PlusIcon = () => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
4298
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("line", { x1: "12", y1: "5", x2: "12", y2: "19" }),
|
|
4299
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("line", { x1: "5", y1: "12", x2: "19", y2: "12" })
|
|
4300
|
+
] });
|
|
4301
|
+
const HighlightedText = ({ text, highlight }) => {
|
|
4302
|
+
if (!highlight.trim()) return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: text });
|
|
4303
|
+
const escapeRegExp = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4304
|
+
const regex = new RegExp(`(${escapeRegExp(highlight)})`, "gi");
|
|
4305
|
+
const parts = text.split(regex);
|
|
4306
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: parts.map(
|
|
4307
|
+
(part, i) => regex.test(part) ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$6["f-select-highlight"], children: part }, i) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: part }, i)
|
|
4308
|
+
) });
|
|
4309
|
+
};
|
|
4310
|
+
const FSearchableSelect = forwardRef(
|
|
4311
|
+
({
|
|
4312
|
+
label,
|
|
4313
|
+
st,
|
|
4314
|
+
children,
|
|
4315
|
+
fullWidth,
|
|
4316
|
+
load = false,
|
|
4317
|
+
errText,
|
|
4318
|
+
helpText,
|
|
4319
|
+
height = "auto",
|
|
4320
|
+
width = "fit-content",
|
|
4321
|
+
allowCreate = false,
|
|
4322
|
+
disabled: disabled2,
|
|
4323
|
+
onKeyDown: restOnKeyDown,
|
|
4324
|
+
onFocus: restOnFocus,
|
|
4325
|
+
...restProps
|
|
4326
|
+
}, ref) => {
|
|
4327
|
+
const options = useMemo(() => {
|
|
4328
|
+
const results = [];
|
|
4329
|
+
React.Children.forEach(children, (child) => {
|
|
4330
|
+
if (React.isValidElement(child)) {
|
|
4331
|
+
const element = child;
|
|
4332
|
+
const { value: childValue, children: childLabel } = element.props;
|
|
4333
|
+
const valStr = childValue !== void 0 ? String(childValue) : "";
|
|
4334
|
+
let labelStr = valStr;
|
|
4335
|
+
if (typeof childLabel === "string" || typeof childLabel === "number") {
|
|
4336
|
+
labelStr = String(childLabel);
|
|
4337
|
+
} else if (valStr) {
|
|
4338
|
+
labelStr = valStr;
|
|
4339
|
+
}
|
|
4340
|
+
if (valStr || labelStr) {
|
|
4341
|
+
results.push({ value: valStr, label: labelStr });
|
|
4342
|
+
}
|
|
4343
|
+
}
|
|
4344
|
+
});
|
|
4345
|
+
return results;
|
|
4346
|
+
}, [children]);
|
|
4347
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
4348
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
4349
|
+
const [highlightedIndex, setHighlightedIndex] = useState(0);
|
|
4350
|
+
const containerRef = useRef(null);
|
|
4351
|
+
const visibleInputRef = useRef(null);
|
|
4352
|
+
const listRef = useRef(null);
|
|
4353
|
+
const lastValueRef = useRef(restProps.value !== void 0 ? String(restProps.value) : "");
|
|
4354
|
+
useEffect(() => {
|
|
4355
|
+
if (restProps.value !== void 0) {
|
|
4356
|
+
const strValue = String(restProps.value);
|
|
4357
|
+
lastValueRef.current = strValue;
|
|
4358
|
+
const found = options.find((o) => o.value === strValue);
|
|
4359
|
+
setSearchQuery(found ? found.label : strValue);
|
|
4360
|
+
}
|
|
4361
|
+
}, [restProps.value, options]);
|
|
4362
|
+
const deferredQuery = useDeferredValue(searchQuery);
|
|
4363
|
+
const filteredOptions = useMemo(() => {
|
|
4364
|
+
if (!isOpen) return options;
|
|
4365
|
+
const lowerQuery = deferredQuery.toLowerCase();
|
|
4366
|
+
return options.filter((opt) => opt.label.toLowerCase().includes(lowerQuery));
|
|
4367
|
+
}, [options, deferredQuery, isOpen]);
|
|
4368
|
+
const showCreateOption = useMemo(() => {
|
|
4369
|
+
if (!allowCreate) return false;
|
|
4370
|
+
if (!deferredQuery.trim()) return false;
|
|
4371
|
+
const exactMatch = filteredOptions.find((opt) => opt.label.toLowerCase() === deferredQuery.toLowerCase());
|
|
4372
|
+
return !exactMatch;
|
|
4373
|
+
}, [deferredQuery, filteredOptions, allowCreate]);
|
|
4374
|
+
const renderList = useMemo(() => {
|
|
4375
|
+
const list = filteredOptions.slice(0, 100);
|
|
4376
|
+
if (showCreateOption) {
|
|
4377
|
+
list.push({ value: deferredQuery, label: deferredQuery, isNew: true });
|
|
4378
|
+
}
|
|
4379
|
+
return list;
|
|
4380
|
+
}, [filteredOptions, showCreateOption, deferredQuery]);
|
|
4381
|
+
const triggerChange = (newValue) => {
|
|
4382
|
+
lastValueRef.current = newValue;
|
|
4383
|
+
if (restProps.onChange) {
|
|
4384
|
+
const syntheticEvent = {
|
|
4385
|
+
target: { name: restProps.name || "", value: newValue }
|
|
4386
|
+
};
|
|
4387
|
+
restProps.onChange(syntheticEvent);
|
|
4388
|
+
}
|
|
4389
|
+
};
|
|
4390
|
+
const handleSelect = (option) => {
|
|
4391
|
+
triggerChange(option.value);
|
|
4392
|
+
setSearchQuery(option.label);
|
|
4393
|
+
setIsOpen(false);
|
|
4394
|
+
setHighlightedIndex(0);
|
|
4395
|
+
};
|
|
4396
|
+
const handleClear = (e) => {
|
|
4397
|
+
var _a;
|
|
4398
|
+
e.stopPropagation();
|
|
4399
|
+
triggerChange("");
|
|
4400
|
+
setSearchQuery("");
|
|
4401
|
+
(_a = visibleInputRef.current) == null ? void 0 : _a.focus();
|
|
4402
|
+
};
|
|
4403
|
+
useEffect(() => {
|
|
4404
|
+
const handleClickOutside = (event) => {
|
|
4405
|
+
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
4406
|
+
setIsOpen(false);
|
|
4407
|
+
const effectiveValue = restProps.value !== void 0 ? String(restProps.value) : lastValueRef.current;
|
|
4408
|
+
if (effectiveValue) {
|
|
4409
|
+
const found = options.find((o) => o.value === effectiveValue);
|
|
4410
|
+
setSearchQuery(found ? found.label : effectiveValue);
|
|
4411
|
+
} else {
|
|
4412
|
+
setSearchQuery("");
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
};
|
|
4416
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
4417
|
+
return () => document.removeEventListener("mousedown", handleClickOutside);
|
|
4418
|
+
}, [restProps.value, options]);
|
|
4419
|
+
const handleKeyDown = (e) => {
|
|
4420
|
+
var _a;
|
|
4421
|
+
if (restOnKeyDown) restOnKeyDown(e);
|
|
4422
|
+
if (e.key === "ArrowDown") {
|
|
4423
|
+
e.preventDefault();
|
|
4424
|
+
if (!isOpen) setIsOpen(true);
|
|
4425
|
+
else setHighlightedIndex((prev) => prev < renderList.length - 1 ? prev + 1 : prev);
|
|
4426
|
+
} else if (e.key === "ArrowUp") {
|
|
4427
|
+
e.preventDefault();
|
|
4428
|
+
setHighlightedIndex((prev) => prev > 0 ? prev - 1 : prev);
|
|
4429
|
+
} else if (e.key === "Enter") {
|
|
4430
|
+
e.preventDefault();
|
|
4431
|
+
e.stopPropagation();
|
|
4432
|
+
if (isOpen && renderList[highlightedIndex]) {
|
|
4433
|
+
handleSelect(renderList[highlightedIndex]);
|
|
4434
|
+
} else {
|
|
4435
|
+
setIsOpen(true);
|
|
4436
|
+
}
|
|
4437
|
+
} else if (e.key === "Escape") {
|
|
4438
|
+
setIsOpen(false);
|
|
4439
|
+
(_a = visibleInputRef.current) == null ? void 0 : _a.blur();
|
|
4440
|
+
}
|
|
4441
|
+
};
|
|
4442
|
+
const baseStyle = {
|
|
4443
|
+
width: fullWidth ? "100%" : width || "fit-content",
|
|
4444
|
+
height: height || "auto",
|
|
4445
|
+
whiteSpace: "nowrap",
|
|
4446
|
+
textOverflow: "ellipsis"
|
|
4447
|
+
};
|
|
4448
|
+
const mergedStyle = { ...baseStyle, ...st };
|
|
4449
|
+
const inputId = restProps.id || `search-select-${Math.random().toString(36).substring(2, 9)}`;
|
|
4450
|
+
const hasValue = restProps.value !== void 0 ? !!String(restProps.value) : !!lastValueRef.current;
|
|
4451
|
+
const currentValStr = restProps.value !== void 0 ? String(restProps.value) : lastValueRef.current;
|
|
4452
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
4453
|
+
"div",
|
|
4454
|
+
{
|
|
4455
|
+
className: `f-form-element ${styles$6["f-search-select"]} ${restProps.className || ""}`,
|
|
4456
|
+
style: mergedStyle,
|
|
4457
|
+
ref: containerRef,
|
|
4458
|
+
id: inputId + "-block",
|
|
4459
|
+
children: [
|
|
4460
|
+
label && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4461
|
+
"label",
|
|
4462
|
+
{
|
|
4463
|
+
id: inputId + "-label",
|
|
4464
|
+
htmlFor: inputId,
|
|
4465
|
+
className: `f-form-element__label ${errText ? "error" : ""}`,
|
|
4466
|
+
children: label
|
|
4467
|
+
}
|
|
4468
|
+
),
|
|
4469
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4470
|
+
"input",
|
|
4471
|
+
{
|
|
4472
|
+
ref,
|
|
4473
|
+
name: restProps.name,
|
|
4474
|
+
value: restProps.value !== void 0 ? String(restProps.value) : "",
|
|
4475
|
+
onChange: () => {
|
|
4476
|
+
},
|
|
4477
|
+
className: styles$6["f-select-native-hidden"],
|
|
4478
|
+
tabIndex: -1,
|
|
4479
|
+
disabled: disabled2,
|
|
4480
|
+
"aria-hidden": "true"
|
|
4481
|
+
}
|
|
4482
|
+
),
|
|
4483
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `f-form-element__control ${load ? "is-loading" : ""}`, children: [
|
|
4484
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4485
|
+
"input",
|
|
4486
|
+
{
|
|
4487
|
+
ref: visibleInputRef,
|
|
4488
|
+
id: inputId,
|
|
4489
|
+
type: "text",
|
|
4490
|
+
autoComplete: "off",
|
|
4491
|
+
className: `f-form-element__control-element ${styles$6["has-icons"]} ${errText ? "error" : ""}`,
|
|
4492
|
+
...restProps,
|
|
4493
|
+
disabled: disabled2 || load,
|
|
4494
|
+
value: searchQuery,
|
|
4495
|
+
onChange: (e) => {
|
|
4496
|
+
const val = e.target.value;
|
|
4497
|
+
setSearchQuery(val);
|
|
4498
|
+
if (!isOpen) setIsOpen(true);
|
|
4499
|
+
if (allowCreate) {
|
|
4500
|
+
triggerChange(val);
|
|
4501
|
+
} else if (val === "") {
|
|
4502
|
+
triggerChange("");
|
|
4503
|
+
}
|
|
4504
|
+
},
|
|
4505
|
+
onKeyDown: handleKeyDown,
|
|
4506
|
+
onFocus: (e) => {
|
|
4507
|
+
if (!disabled2 && !load) setIsOpen(true);
|
|
4508
|
+
if (restOnFocus) restOnFocus(e);
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
),
|
|
4512
|
+
load ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "f-form-element__loader", children: /* @__PURE__ */ jsxRuntimeExports.jsx(FLoadIcon, { size: 10 }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6["f-select-actions"], children: [
|
|
4513
|
+
hasValue && !disabled2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4514
|
+
"div",
|
|
4515
|
+
{
|
|
4516
|
+
onClick: handleClear,
|
|
4517
|
+
className: `${styles$6["f-select-icon"]} close`,
|
|
4518
|
+
title: "Очистить",
|
|
4519
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
4520
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseIcon, {})
|
|
4521
|
+
}
|
|
4522
|
+
),
|
|
4523
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `${styles$6["f-select-icon"]} ${isOpen ? styles$6["rotate"] : ""}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronIcon, {}) })
|
|
4524
|
+
] })
|
|
4525
|
+
] }),
|
|
4526
|
+
isOpen && !disabled2 && !load && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6["f-select-dropdown"], children: /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { ref: listRef, className: styles$6["f-select-list"], children: renderList.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: styles$6["f-select-no-results"], children: allowCreate ? "Нет данных" : "Совпадений не найдено" }) : renderList.map((option, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4527
|
+
"li",
|
|
4528
|
+
{
|
|
4529
|
+
className: `
|
|
4530
|
+
${styles$6["f-select-option"]}
|
|
4531
|
+
${option.isNew ? styles$6["f-select-create"] : ""}
|
|
4532
|
+
${index === highlightedIndex ? styles$6["focused"] : ""}
|
|
4533
|
+
${currentValStr === option.value ? styles$6["selected"] : ""}
|
|
4534
|
+
`,
|
|
4535
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
4536
|
+
onClick: (e) => {
|
|
4537
|
+
e.stopPropagation();
|
|
4538
|
+
handleSelect(option);
|
|
4539
|
+
},
|
|
4540
|
+
onMouseEnter: () => setHighlightedIndex(index),
|
|
4541
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { overflow: "hidden", textOverflow: "ellipsis" }, children: [
|
|
4542
|
+
option.isNew && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { marginRight: 4 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusIcon, {}) }),
|
|
4543
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(HighlightedText, { text: option.label, highlight: deferredQuery }),
|
|
4544
|
+
option.isNew && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { opacity: 0.6, fontSize: "0.85em", marginLeft: 6 }, children: "(Создать)" })
|
|
4545
|
+
] })
|
|
4546
|
+
},
|
|
4547
|
+
option.value + index
|
|
4548
|
+
)) }) }),
|
|
4549
|
+
helpText && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4550
|
+
"p",
|
|
4551
|
+
{
|
|
4552
|
+
id: inputId + "-helptext",
|
|
4553
|
+
className: "f-form-element__helptext",
|
|
4554
|
+
children: helpText
|
|
4555
|
+
}
|
|
4556
|
+
),
|
|
4557
|
+
errText && errText.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4558
|
+
"div",
|
|
4559
|
+
{
|
|
4560
|
+
className: "f-form-element__errorblock",
|
|
4561
|
+
children: errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4562
|
+
"p",
|
|
4563
|
+
{
|
|
4564
|
+
id: `${inputId}-errortext-${index}`,
|
|
4565
|
+
className: "f-form-element__errorblock_errortext",
|
|
4566
|
+
children: error2
|
|
4567
|
+
},
|
|
4568
|
+
index
|
|
4569
|
+
))
|
|
4570
|
+
}
|
|
4571
|
+
)
|
|
4572
|
+
]
|
|
4573
|
+
}
|
|
4574
|
+
);
|
|
4575
|
+
}
|
|
4576
|
+
);
|
|
4577
|
+
FSearchableSelect.displayName = "FSearchableSelect";
|
|
4273
4578
|
const FPlusIcon = React.forwardRef(({
|
|
4274
4579
|
color = "primary",
|
|
4275
4580
|
size = 30,
|
|
@@ -4712,7 +5017,7 @@ const FSafeIcon = React.forwardRef(({
|
|
|
4712
5017
|
);
|
|
4713
5018
|
});
|
|
4714
5019
|
FSafeIcon.displayName = "FSafeIcon";
|
|
4715
|
-
const styles$
|
|
5020
|
+
const styles$5 = {
|
|
4716
5021
|
"f-function-block-alert": "_f-function-block-alert_1jotv_1",
|
|
4717
5022
|
"f-function-alert": "_f-function-alert_1jotv_16",
|
|
4718
5023
|
"f-function-alert-ico": "_f-function-alert-ico_1jotv_24",
|
|
@@ -4725,7 +5030,7 @@ const styles$4 = {
|
|
|
4725
5030
|
"f-function-alert-body": "_f-function-alert-body_1jotv_68",
|
|
4726
5031
|
"f-function-alert-footer": "_f-function-alert-footer_1jotv_83"
|
|
4727
5032
|
};
|
|
4728
|
-
const fAlert = ({ title, body, variant = "info" }) => {
|
|
5033
|
+
const fAlert = ({ title: title2, body, variant = "info" }) => {
|
|
4729
5034
|
let ico = "";
|
|
4730
5035
|
switch (variant) {
|
|
4731
5036
|
case "info":
|
|
@@ -4748,21 +5053,21 @@ const fAlert = ({ title, body, variant = "info" }) => {
|
|
|
4748
5053
|
window.document.body.insertAdjacentHTML(
|
|
4749
5054
|
"afterbegin",
|
|
4750
5055
|
`
|
|
4751
|
-
<div class='${styles$
|
|
4752
|
-
<div class='${styles$
|
|
4753
|
-
<div class='${styles$
|
|
5056
|
+
<div class='${styles$5["f-function-block-alert"]}' id='f-function-block-alert'>
|
|
5057
|
+
<div class='${styles$5["f-function-alert"]}'>
|
|
5058
|
+
<div class='${styles$5["f-function-alert-ico"]} ${styles$5[`${variant}-alert`]}' style='color: inherit; fill: inherit'>
|
|
4754
5059
|
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
4755
5060
|
${ico}
|
|
4756
5061
|
</svg>
|
|
4757
5062
|
</div>
|
|
4758
|
-
<div class='${styles$
|
|
4759
|
-
<div class='${styles$
|
|
4760
|
-
<h4>${
|
|
5063
|
+
<div class='${styles$5["f-function-alert-inside"]}'>
|
|
5064
|
+
<div class='${styles$5["f-function-alert-header"]}'>
|
|
5065
|
+
<h4>${title2 || ""}</h4>
|
|
4761
5066
|
</div>
|
|
4762
|
-
<div class='${styles$
|
|
5067
|
+
<div class='${styles$5["f-function-alert-body"]}'>
|
|
4763
5068
|
${arrBody.join("")}
|
|
4764
5069
|
</div>
|
|
4765
|
-
<div class='${styles$
|
|
5070
|
+
<div class='${styles$5["f-function-alert-footer"]}'>
|
|
4766
5071
|
<FButton
|
|
4767
5072
|
class='${stylesBtn["btn"]} ${stylesBtn["btn-sm"]} ${stylesBtn["btn-primary"]}'
|
|
4768
5073
|
onclick='document.querySelector("#f-function-block-alert").remove()'
|
|
@@ -4777,7 +5082,7 @@ const fAlert = ({ title, body, variant = "info" }) => {
|
|
|
4777
5082
|
);
|
|
4778
5083
|
};
|
|
4779
5084
|
const warning$2 = "_warning_de5a5_31";
|
|
4780
|
-
const styles$
|
|
5085
|
+
const styles$4 = {
|
|
4781
5086
|
"f-function-block-confirm": "_f-function-block-confirm_de5a5_1",
|
|
4782
5087
|
"f-function-confirm": "_f-function-confirm_de5a5_16",
|
|
4783
5088
|
"f-function-confirm-ico": "_f-function-confirm-ico_de5a5_24",
|
|
@@ -4787,27 +5092,27 @@ const styles$3 = {
|
|
|
4787
5092
|
"f-function-confirm-body": "_f-function-confirm-body_de5a5_51",
|
|
4788
5093
|
"f-function-confirm-footer": "_f-function-confirm-footer_de5a5_65"
|
|
4789
5094
|
};
|
|
4790
|
-
const fConfirm = ({ title, body }) => {
|
|
5095
|
+
const fConfirm = ({ title: title2, body }) => {
|
|
4791
5096
|
return new Promise((resolve) => {
|
|
4792
5097
|
window.document.body.insertAdjacentHTML(
|
|
4793
5098
|
"afterbegin",
|
|
4794
5099
|
`
|
|
4795
|
-
<div class='${styles$
|
|
4796
|
-
<div class='${styles$
|
|
4797
|
-
<div class='${styles$
|
|
5100
|
+
<div class='${styles$4["f-function-block-confirm"]}' id='f-function-block-confirm'>
|
|
5101
|
+
<div class='${styles$4["f-function-confirm"]}'>
|
|
5102
|
+
<div class='${styles$4["f-function-confirm-ico"]} ${styles$4.warning}'>
|
|
4798
5103
|
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
4799
5104
|
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
|
4800
5105
|
<path d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"/>
|
|
4801
5106
|
</svg>
|
|
4802
5107
|
</div>
|
|
4803
|
-
<div class='${styles$
|
|
4804
|
-
<div class='${styles$
|
|
4805
|
-
<h4>${
|
|
5108
|
+
<div class='${styles$4["f-function-confirm-inside"]}'>
|
|
5109
|
+
<div class='${styles$4["f-function-confirm-header"]}'>
|
|
5110
|
+
<h4>${title2 || ""}</h4>
|
|
4806
5111
|
</div>
|
|
4807
|
-
<div class='${styles$
|
|
5112
|
+
<div class='${styles$4["f-function-confirm-body"]}'>
|
|
4808
5113
|
<span>${body}</span>
|
|
4809
5114
|
</div>
|
|
4810
|
-
<div class='${styles$
|
|
5115
|
+
<div class='${styles$4["f-function-confirm-footer"]}'>
|
|
4811
5116
|
<FButton
|
|
4812
5117
|
id="f-function-confirm-ok"
|
|
4813
5118
|
class='${stylesBtn["btn"]} ${stylesBtn["btn-sm"]} ${stylesBtn["btn-success"]}'
|
|
@@ -4847,7 +5152,7 @@ const fConfirm = ({ title, body }) => {
|
|
|
4847
5152
|
});
|
|
4848
5153
|
};
|
|
4849
5154
|
const warning$1 = "_warning_1o5ku_31";
|
|
4850
|
-
const styles$
|
|
5155
|
+
const styles$3 = {
|
|
4851
5156
|
"f-function-block-prompt": "_f-function-block-prompt_1o5ku_1",
|
|
4852
5157
|
"f-function-prompt": "_f-function-prompt_1o5ku_16",
|
|
4853
5158
|
"f-function-prompt-ico": "_f-function-prompt-ico_1o5ku_24",
|
|
@@ -4864,32 +5169,32 @@ function getValue(element) {
|
|
|
4864
5169
|
return null;
|
|
4865
5170
|
}
|
|
4866
5171
|
}
|
|
4867
|
-
const fPrompt = ({ title, body }) => {
|
|
5172
|
+
const fPrompt = ({ title: title2, body }) => {
|
|
4868
5173
|
return new Promise((resolve) => {
|
|
4869
5174
|
window.document.body.insertAdjacentHTML(
|
|
4870
5175
|
"afterbegin",
|
|
4871
5176
|
`
|
|
4872
|
-
<div class='${styles$
|
|
4873
|
-
<div class='${styles$
|
|
4874
|
-
<div class='${styles$
|
|
5177
|
+
<div class='${styles$3["f-function-block-prompt"]}' id='f-function-block-prompt'>
|
|
5178
|
+
<div class='${styles$3["f-function-prompt"]}'>
|
|
5179
|
+
<div class='${styles$3["f-function-prompt-ico"]} ${styles$3.warning}'>
|
|
4875
5180
|
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
4876
5181
|
<path d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
|
4877
5182
|
<path d="M5 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
|
|
4878
5183
|
</svg>
|
|
4879
5184
|
</div>
|
|
4880
|
-
<div class='${styles$
|
|
4881
|
-
<div class='${styles$
|
|
4882
|
-
<h4>${
|
|
5185
|
+
<div class='${styles$3["f-function-prompt-inside"]}'>
|
|
5186
|
+
<div class='${styles$3["f-function-prompt-header"]}'>
|
|
5187
|
+
<h4>${title2 || ""}</h4>
|
|
4883
5188
|
</div>
|
|
4884
|
-
<div class='${styles$
|
|
5189
|
+
<div class='${styles$3["f-function-prompt-body"]}'>
|
|
4885
5190
|
<span>${body || ""}</span>
|
|
4886
5191
|
<input
|
|
4887
5192
|
type="text"
|
|
4888
5193
|
id="f-function-prompt-input"
|
|
4889
|
-
class="form-control ${styles$
|
|
5194
|
+
class="form-control ${styles$3["f-function-prompt-input"]}"
|
|
4890
5195
|
/>
|
|
4891
5196
|
</div>
|
|
4892
|
-
<div class='${styles$
|
|
5197
|
+
<div class='${styles$3["f-function-prompt-footer"]}'>
|
|
4893
5198
|
<button
|
|
4894
5199
|
id="f-function-prompt-ok"
|
|
4895
5200
|
class='${stylesBtn["btn"]} ${stylesBtn["btn-sm"]} ${stylesBtn["btn-success"]}'
|
|
@@ -7124,7 +7429,7 @@ const document$1 = (data, format = "A4", orientation = "vertical") => {
|
|
|
7124
7429
|
}
|
|
7125
7430
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?><w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body>${data}<w:sectPr><w:pgSz w:w="${width}" w:h="${height}" w:orient="${orientation}"/><w:pgMar w:top="${top}" w:right="${right2}" w:bottom="${bottom}" w:left="${left2}" w:header="${header}" w:footer="${footer}" w:gutter="0"/><w:cols w:space="708"/><w:docGrid w:linePitch="360"/></w:sectPr></w:body></w:document>`;
|
|
7126
7431
|
};
|
|
7127
|
-
const styles$
|
|
7432
|
+
const styles$2 = () => {
|
|
7128
7433
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
7129
7434
|
<w:styles xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
7130
7435
|
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
@@ -10047,7 +10352,7 @@ async function generateDocx({ data, format, orientation, fileName }) {
|
|
|
10047
10352
|
zip.file("word/document.xml", document$1(data, format, orientation));
|
|
10048
10353
|
zip.file("word/fontTable.xml", fontTable());
|
|
10049
10354
|
zip.file("word/settings.xml", settings());
|
|
10050
|
-
zip.file("word/styles.xml", styles$
|
|
10355
|
+
zip.file("word/styles.xml", styles$2());
|
|
10051
10356
|
zip.file("word/theme/theme1.xml", theme1());
|
|
10052
10357
|
zip.file("word/webSettings.xml", webSettings());
|
|
10053
10358
|
const content = await zip.generateAsync({ type: "blob" });
|
|
@@ -38326,7 +38631,7 @@ function requireReactDomServerLegacy_browser_development() {
|
|
|
38326
38631
|
}
|
|
38327
38632
|
return getServerSnapshot();
|
|
38328
38633
|
}
|
|
38329
|
-
function
|
|
38634
|
+
function useDeferredValue2(value) {
|
|
38330
38635
|
resolveCurrentlyRenderingComponent();
|
|
38331
38636
|
return value;
|
|
38332
38637
|
}
|
|
@@ -38365,7 +38670,7 @@ function requireReactDomServerLegacy_browser_development() {
|
|
|
38365
38670
|
useEffect: noop2,
|
|
38366
38671
|
// Debugging effect
|
|
38367
38672
|
useDebugValue: noop2,
|
|
38368
|
-
useDeferredValue,
|
|
38673
|
+
useDeferredValue: useDeferredValue2,
|
|
38369
38674
|
useTransition,
|
|
38370
38675
|
useId,
|
|
38371
38676
|
// Subscriptions are not setup in a server environment.
|
|
@@ -43709,7 +44014,7 @@ function requireReactDomServer_browser_development() {
|
|
|
43709
44014
|
}
|
|
43710
44015
|
return getServerSnapshot();
|
|
43711
44016
|
}
|
|
43712
|
-
function
|
|
44017
|
+
function useDeferredValue2(value) {
|
|
43713
44018
|
resolveCurrentlyRenderingComponent();
|
|
43714
44019
|
return value;
|
|
43715
44020
|
}
|
|
@@ -43748,7 +44053,7 @@ function requireReactDomServer_browser_development() {
|
|
|
43748
44053
|
useEffect: noop2,
|
|
43749
44054
|
// Debugging effect
|
|
43750
44055
|
useDebugValue: noop2,
|
|
43751
|
-
useDeferredValue,
|
|
44056
|
+
useDeferredValue: useDeferredValue2,
|
|
43752
44057
|
useTransition,
|
|
43753
44058
|
useId,
|
|
43754
44059
|
// Subscriptions are not setup in a server environment.
|
|
@@ -49847,7 +50152,7 @@ const info = "_info_1da8u_75";
|
|
|
49847
50152
|
const error = "_error_1da8u_80";
|
|
49848
50153
|
const success = "_success_1da8u_85";
|
|
49849
50154
|
const warning = "_warning_1da8u_90";
|
|
49850
|
-
const styles = {
|
|
50155
|
+
const styles$1 = {
|
|
49851
50156
|
"f-function-block-notification": "_f-function-block-notification_1da8u_51",
|
|
49852
50157
|
"f-function-notification": "_f-function-notification_1da8u_55",
|
|
49853
50158
|
"f-function-notification-ico": "_f-function-notification-ico_1da8u_67",
|
|
@@ -49873,7 +50178,7 @@ const styles = {
|
|
|
49873
50178
|
"notification-progress-animated": "_notification-progress-animated_1da8u_1"
|
|
49874
50179
|
};
|
|
49875
50180
|
const fNotification = ({
|
|
49876
|
-
title,
|
|
50181
|
+
title: title2,
|
|
49877
50182
|
body,
|
|
49878
50183
|
variant = "info",
|
|
49879
50184
|
timeSecClose,
|
|
@@ -49905,31 +50210,31 @@ const fNotification = ({
|
|
|
49905
50210
|
const randId = fGenerateUniqueId();
|
|
49906
50211
|
const idFuncBlockNot = "f-function-block-notification-" + randId;
|
|
49907
50212
|
const not = `
|
|
49908
|
-
<div class='${styles["f-function-block-notification"]}' id="${id === void 0 ? idFuncBlockNot : id}">
|
|
49909
|
-
<div class='${styles["f-function-notification"]}'>
|
|
49910
|
-
<div class='${styles["f-function-notification-ico"]} ${styles[variant + "-notification"]}'>
|
|
50213
|
+
<div class='${styles$1["f-function-block-notification"]}' id="${id === void 0 ? idFuncBlockNot : id}">
|
|
50214
|
+
<div class='${styles$1["f-function-notification"]}'>
|
|
50215
|
+
<div class='${styles$1["f-function-notification-ico"]} ${styles$1[variant + "-notification"]}'>
|
|
49911
50216
|
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
49912
50217
|
${ico}
|
|
49913
50218
|
</svg>
|
|
49914
50219
|
</div>
|
|
49915
|
-
<div class='${styles["f-function-notification-inside"]}'>
|
|
49916
|
-
<div class='${styles["f-function-notification-header"]}'>
|
|
49917
|
-
<h4>${
|
|
50220
|
+
<div class='${styles$1["f-function-notification-inside"]}'>
|
|
50221
|
+
<div class='${styles$1["f-function-notification-header"]}'>
|
|
50222
|
+
<h4>${title2 !== void 0 ? title2 : ""}</h4>
|
|
49918
50223
|
${buttonClose ? `<svg
|
|
49919
50224
|
width="25"
|
|
49920
|
-
class="bi bi-x-lg primary ${styles["close-not"]}"
|
|
50225
|
+
class="bi bi-x-lg primary ${styles$1["close-not"]}"
|
|
49921
50226
|
viewBox="0 0 16 16"
|
|
49922
50227
|
>
|
|
49923
50228
|
<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
|
|
49924
50229
|
</svg>` : ""}
|
|
49925
50230
|
</div>
|
|
49926
|
-
<div class='${styles["f-function-notification-body"]}'>
|
|
50231
|
+
<div class='${styles$1["f-function-notification-body"]}'>
|
|
49927
50232
|
${arrBody.join("")}
|
|
49928
50233
|
</div>
|
|
49929
50234
|
</div>
|
|
49930
|
-
${timeSecClose ? `<div class="${styles["f-notification-progress"]}">
|
|
49931
|
-
<div class="${styles["f-notification-progress-bar"]}">
|
|
49932
|
-
<div class="${styles["f-notification-progress-value"]} ${styles[variant]}" id="f-notification-progress-value-${randId}" style="animation: notification-progress-animated ${timeSecClose}s linear;"/>
|
|
50235
|
+
${timeSecClose ? `<div class="${styles$1["f-notification-progress"]}">
|
|
50236
|
+
<div class="${styles$1["f-notification-progress-bar"]}">
|
|
50237
|
+
<div class="${styles$1["f-notification-progress-value"]} ${styles$1[variant]}" id="f-notification-progress-value-${randId}" style="animation: notification-progress-animated ${timeSecClose}s linear;"/>
|
|
49933
50238
|
</div>
|
|
49934
50239
|
</div>` : ""}
|
|
49935
50240
|
</div>
|
|
@@ -49957,11 +50262,11 @@ const fNotification = ({
|
|
|
49957
50262
|
if (buttonClose) {
|
|
49958
50263
|
const el = window.document.querySelector(`#${idFuncBlockNot}`);
|
|
49959
50264
|
if (el !== null) {
|
|
49960
|
-
const svgElement = el.querySelector(`.${styles["close-not"]}`);
|
|
50265
|
+
const svgElement = el.querySelector(`.${styles$1["close-not"]}`);
|
|
49961
50266
|
if (svgElement !== null) {
|
|
49962
50267
|
svgElement.addEventListener("click", () => {
|
|
49963
|
-
el.classList.remove(styles["f-function-notification-visible"]);
|
|
49964
|
-
el.classList.add(styles["f-function-notification-hidden"]);
|
|
50268
|
+
el.classList.remove(styles$1["f-function-notification-visible"]);
|
|
50269
|
+
el.classList.add(styles$1["f-function-notification-hidden"]);
|
|
49965
50270
|
setTimeout(() => {
|
|
49966
50271
|
if (el.parentNode) {
|
|
49967
50272
|
el.parentNode.removeChild(el);
|
|
@@ -49975,14 +50280,14 @@ const fNotification = ({
|
|
|
49975
50280
|
setTimeout(() => {
|
|
49976
50281
|
const el = window.document.querySelector(`#${idFuncBlockNot}`);
|
|
49977
50282
|
if (el !== null && el !== void 0) {
|
|
49978
|
-
el.className += " " + styles["f-function-notification-visible"];
|
|
50283
|
+
el.className += " " + styles$1["f-function-notification-visible"];
|
|
49979
50284
|
}
|
|
49980
50285
|
});
|
|
49981
50286
|
if (timeSecClose !== void 0) {
|
|
49982
50287
|
const el = window.document.querySelector(`#${idFuncBlockNot}`);
|
|
49983
50288
|
if (el !== null) {
|
|
49984
50289
|
setTimeout(() => {
|
|
49985
|
-
el.className = styles["f-function-notification-hidden"];
|
|
50290
|
+
el.className = styles$1["f-function-notification-hidden"];
|
|
49986
50291
|
}, (timeSecClose - 1) * 1e3);
|
|
49987
50292
|
setTimeout(() => {
|
|
49988
50293
|
if (el.parentNode) {
|
|
@@ -50000,9 +50305,9 @@ const fNotificationDelete = (id) => {
|
|
|
50000
50305
|
if (!el) return;
|
|
50001
50306
|
const container2 = document.getElementById("block-notification");
|
|
50002
50307
|
if (!container2) return;
|
|
50003
|
-
el.className = styles["f-function-notification-hidden"];
|
|
50308
|
+
el.className = styles$1["f-function-notification-hidden"];
|
|
50004
50309
|
setTimeout(() => {
|
|
50005
|
-
el.classList.remove(styles["f-function-notification-visible"]);
|
|
50310
|
+
el.classList.remove(styles$1["f-function-notification-visible"]);
|
|
50006
50311
|
}, 1e3);
|
|
50007
50312
|
setTimeout(() => {
|
|
50008
50313
|
if (el.parentNode) el.parentNode.removeChild(el);
|
|
@@ -52641,6 +52946,102 @@ const useFApi = ({ doNotUseState = false, defaultState = null, getValueByPath =
|
|
|
52641
52946
|
};
|
|
52642
52947
|
return { data, loading, error: error2, execute, reset };
|
|
52643
52948
|
};
|
|
52949
|
+
const waterError = "_waterError_10t7p_1";
|
|
52950
|
+
const scene = "_scene_10t7p_12";
|
|
52951
|
+
const waves = "_waves_10t7p_18";
|
|
52952
|
+
const wave1 = "_wave1_10t7p_26";
|
|
52953
|
+
const wave2 = "_wave2_10t7p_27";
|
|
52954
|
+
const wave3 = "_wave3_10t7p_28";
|
|
52955
|
+
const bubbles = "_bubbles_10t7p_64";
|
|
52956
|
+
const bubble = "_bubble_10t7p_64";
|
|
52957
|
+
const container = "_container_10t7p_95";
|
|
52958
|
+
const card = "_card_10t7p_100";
|
|
52959
|
+
const drop = "_drop_10t7p_121";
|
|
52960
|
+
const dropSvg = "_dropSvg_10t7p_136";
|
|
52961
|
+
const title = "_title_10t7p_142";
|
|
52962
|
+
const subtitle = "_subtitle_10t7p_152";
|
|
52963
|
+
const actions = "_actions_10t7p_159";
|
|
52964
|
+
const btnPrimary = "_btnPrimary_10t7p_167";
|
|
52965
|
+
const btnSecondary = "_btnSecondary_10t7p_168";
|
|
52966
|
+
const ripple = "_ripple_10t7p_199";
|
|
52967
|
+
const styles = {
|
|
52968
|
+
waterError,
|
|
52969
|
+
scene,
|
|
52970
|
+
waves,
|
|
52971
|
+
wave1,
|
|
52972
|
+
wave2,
|
|
52973
|
+
wave3,
|
|
52974
|
+
bubbles,
|
|
52975
|
+
bubble,
|
|
52976
|
+
container,
|
|
52977
|
+
card,
|
|
52978
|
+
drop,
|
|
52979
|
+
dropSvg,
|
|
52980
|
+
title,
|
|
52981
|
+
subtitle,
|
|
52982
|
+
actions,
|
|
52983
|
+
btnPrimary,
|
|
52984
|
+
btnSecondary,
|
|
52985
|
+
ripple
|
|
52986
|
+
};
|
|
52987
|
+
const FWaterErrorBoundaryPage = () => {
|
|
52988
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.waterError, children: [
|
|
52989
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.scene, children: [
|
|
52990
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.waves, children: [
|
|
52991
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.wave1 }),
|
|
52992
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.wave2 }),
|
|
52993
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.wave3 })
|
|
52994
|
+
] }),
|
|
52995
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.bubbles, children: [...Array(15)].map((_, i) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
52996
|
+
"div",
|
|
52997
|
+
{
|
|
52998
|
+
className: styles.bubble,
|
|
52999
|
+
style: {
|
|
53000
|
+
left: `${Math.random() * 100}%`,
|
|
53001
|
+
animationDelay: `${Math.random() * 8}s`,
|
|
53002
|
+
animationDuration: `${10 + Math.random() * 10}s`
|
|
53003
|
+
}
|
|
53004
|
+
},
|
|
53005
|
+
i
|
|
53006
|
+
)) })
|
|
53007
|
+
] }),
|
|
53008
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.card, children: [
|
|
53009
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.drop, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { viewBox: "0 0 100 120", className: styles.dropSvg, children: [
|
|
53010
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("linearGradient", { id: "blueGradient", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
53011
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("stop", { offset: "0%", stopColor: "#00d4ff" }),
|
|
53012
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("stop", { offset: "100%", stopColor: "#0066ff" })
|
|
53013
|
+
] }) }),
|
|
53014
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M50 15 C25 55, 25 90, 50 115 C75 90, 75 55, 50 15", fill: "url(#blueGradient)" })
|
|
53015
|
+
] }) }),
|
|
53016
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h1", { className: styles.title, children: "Поток прерван" }),
|
|
53017
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: styles.subtitle, children: [
|
|
53018
|
+
"Произошла ошибка в системе водоучёта.",
|
|
53019
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
53020
|
+
"Мы уже направляем бригаду гидротехников.",
|
|
53021
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
53022
|
+
"Идёт восстановление данных…"
|
|
53023
|
+
] }),
|
|
53024
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles.actions, children: [
|
|
53025
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
53026
|
+
"button",
|
|
53027
|
+
{
|
|
53028
|
+
className: styles.btnPrimary,
|
|
53029
|
+
onClick: () => {
|
|
53030
|
+
const btn2 = document.querySelector(`.${styles.btnPrimary}`);
|
|
53031
|
+
const ripple2 = document.createElement("div");
|
|
53032
|
+
ripple2.className = styles.ripple;
|
|
53033
|
+
btn2.appendChild(ripple2);
|
|
53034
|
+
setTimeout(() => ripple2.remove(), 700);
|
|
53035
|
+
window.location.reload();
|
|
53036
|
+
},
|
|
53037
|
+
children: "Обновить страницу"
|
|
53038
|
+
}
|
|
53039
|
+
),
|
|
53040
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: styles.btnSecondary, onClick: () => window.location.href = "/", children: "На главную" })
|
|
53041
|
+
] })
|
|
53042
|
+
] }) })
|
|
53043
|
+
] });
|
|
53044
|
+
};
|
|
52644
53045
|
export {
|
|
52645
53046
|
FAccordion,
|
|
52646
53047
|
FAlert,
|
|
@@ -52688,6 +53089,7 @@ export {
|
|
|
52688
53089
|
FReloadIcon,
|
|
52689
53090
|
FSafeIcon,
|
|
52690
53091
|
FSearchBox,
|
|
53092
|
+
FSearchableSelect,
|
|
52691
53093
|
FSelect,
|
|
52692
53094
|
FSelectItem,
|
|
52693
53095
|
FSelectSearchDb,
|
|
@@ -52709,6 +53111,7 @@ export {
|
|
|
52709
53111
|
FTooltip,
|
|
52710
53112
|
FTrashIcon,
|
|
52711
53113
|
FUnlinkIcon,
|
|
53114
|
+
FWaterErrorBoundaryPage,
|
|
52712
53115
|
fAlert,
|
|
52713
53116
|
fBankRound,
|
|
52714
53117
|
fConfirm,
|