urfu-ui-kit-react 2.1.7-next.3 → 2.1.7-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +16 -15
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +23 -22
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +51 -50
- package/dist/components/Button/ButtonRefreshIcon.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +9 -8
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +237 -216
- package/dist/components/Calendar/Calendar.types.d.ts +19 -0
- package/dist/components/Calendar/Calendar.types.d.ts.map +1 -1
- package/dist/components/Calendar/CalendarSelect.d.ts.map +1 -1
- package/dist/components/Calendar/CalendarSelect.js +41 -40
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +59 -58
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +20 -19
- package/dist/components/ColumnSettings/ColumnSettings.d.ts.map +1 -1
- package/dist/components/ColumnSettings/ColumnSettings.js +112 -111
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +30 -29
- package/dist/components/Drawer/Drawer.js +57 -57
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +151 -150
- package/dist/components/ErrorScreen/ErrorScreenIllustration.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +35 -34
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +30 -29
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +17 -16
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.js +23 -22
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +88 -87
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +99 -98
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +112 -111
- package/dist/components/InputText/InputAffix.d.ts.map +1 -1
- package/dist/components/InputText/InputAffix.js +69 -68
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +108 -107
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +202 -201
- package/dist/components/InputTime/InputTimeDropdown.d.ts.map +1 -1
- package/dist/components/InputTime/InputTimeDropdown.js +21 -20
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +58 -57
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.js +19 -18
- package/dist/components/Modal/Modal.js +66 -66
- package/dist/components/Modal/useModalTitleClearance.d.ts.map +1 -1
- package/dist/components/Modal/useModalTitleClearance.js +34 -33
- package/dist/components/Multiselect/Multiselect.js +222 -222
- package/dist/components/Notification/Notification.js +90 -90
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -37
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +59 -58
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +28 -27
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +21 -20
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +33 -32
- package/dist/components/SearchSelect/SearchSelect.d.ts.map +1 -1
- package/dist/components/SearchSelect/SearchSelect.js +176 -166
- package/dist/components/SearchSelect/SearchSelectOption.d.ts.map +1 -1
- package/dist/components/SearchSelect/SearchSelectOption.js +21 -20
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +65 -64
- package/dist/components/Select/Select.js +184 -184
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +26 -25
- package/dist/components/Status/Status.d.ts.map +1 -1
- package/dist/components/Status/Status.js +36 -35
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +36 -35
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +19 -18
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +12 -11
- package/dist/components/Table/Filter/Filter.d.ts.map +1 -1
- package/dist/components/Table/Filter/Filter.js +99 -98
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +7 -6
- package/dist/components/Table/Filter/FilterBoxShell.js +48 -48
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +65 -64
- package/dist/components/Table/Filter/FilterSortIndicator.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterSortIndicator.js +8 -7
- package/dist/components/Table/Filter/SelectFilter.js +53 -53
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +141 -140
- package/dist/components/Table/Filter/TableFilterSortButton.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterSortButton.js +10 -9
- package/dist/components/Table/Filter/useVirtualOptionWindow.d.ts.map +1 -1
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +9 -8
- package/dist/components/Table/Skeleton/createSkeletonColumns.d.ts.map +1 -1
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -8
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +31 -30
- package/dist/components/Table/Table.js +253 -252
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +92 -91
- package/dist/components/Table/TableMobileCard.d.ts.map +1 -1
- package/dist/components/Table/TableMobileCard.js +121 -120
- package/dist/components/Table/TableMobileFilters.d.ts.map +1 -1
- package/dist/components/Table/TableMobileFilters.js +28 -27
- package/dist/components/Table/TableMobileView.d.ts.map +1 -1
- package/dist/components/Table/TableMobileView.js +178 -177
- package/dist/components/Table/TableRow.d.ts.map +1 -1
- package/dist/components/Table/TableRow.js +59 -58
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -917
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +21 -20
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +101 -99
- package/dist/components/Tabs/distributeTabs.d.ts +7 -3
- package/dist/components/Tabs/distributeTabs.d.ts.map +1 -1
- package/dist/components/Tabs/useTabsOverflow.d.ts +4 -0
- package/dist/components/Tabs/useTabsOverflow.d.ts.map +1 -1
- package/dist/components/Tabs/useTabsOverflow.js +40 -41
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +70 -69
- package/dist/components/Tooltip/Tooltip.js +106 -106
- package/dist/components/TreeView/TreeView.js +183 -183
- package/dist/components/VirtualList/VirtualList.d.ts.map +1 -1
- package/dist/components/VirtualList/VirtualList.js +42 -41
- package/dist/dev/index.js +2 -2
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -6
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +31 -30
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.d.ts +6 -0
- package/dist/responsive/uiKitResponsive.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +27 -26
- package/dist/shared/kitCopy.js +1 -1
- package/dist/shared/optionStateColors.d.ts +3 -2
- package/dist/shared/optionStateColors.d.ts.map +1 -1
- package/dist/shared/optionStateColors.js +9 -4
- package/dist/shared/popupTransition.d.ts.map +1 -1
- package/dist/shared/popupTransition.js +7 -6
- package/dist/shared/sheetTitle.d.ts +2 -1
- package/dist/shared/sheetTitle.d.ts.map +1 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +3 -2
- package/dist/shared/uiKitDefaults.d.ts +21 -0
- package/dist/shared/uiKitDefaults.d.ts.map +1 -1
- package/dist/shared/uiKitDefaults.js +32 -18
- package/dist/style-no-fonts.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layer.css +2 -2
- package/dist/style.shell.css +2 -2
- package/dist/style.shell.lk.css +53 -0
- package/dist/urfu-ui-kit-react.js +29 -27
- package/dist/vanilla/core/dateLimits.js +21 -0
- package/dist/vanilla/core/describeError.js +1 -1
- package/dist/vanilla/core/distributeTabs.js +36 -23
- package/dist/vanilla/core/sheetTitle.js +7 -7
- package/package.json +3 -1
|
@@ -1,176 +1,177 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsxs as d, jsx as n, Fragment as le } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as $, useState as S, useEffect as ie, useLayoutEffect as Ce, useMemo as ge } from "react";
|
|
3
3
|
import { useAutoId$u as we } from "../../hooks/useAutoId.js";
|
|
4
|
-
import { Button$u as
|
|
5
|
-
import { Card$u as
|
|
6
|
-
import { Message$u as
|
|
7
|
-
import { Modal$u as
|
|
8
|
-
import { ErrorScreenIllustration$u as
|
|
4
|
+
import { Button$u as L } from "../Button/Button.js";
|
|
5
|
+
import { Card$u as ye } from "../Card/Card.js";
|
|
6
|
+
import { Message$u as Ne } from "../Message/Message.js";
|
|
7
|
+
import { Modal$u as Se } from "../Modal/Modal.js";
|
|
8
|
+
import { ErrorScreenIllustration$u as Le, ErrorScreenDecor$u as q } from "./ErrorScreenIllustration.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import {
|
|
12
|
-
|
|
11
|
+
import { kitCls$u as l, getUiKitPrefix$u as C } from "../../shared/uiKitDefaults.js";
|
|
12
|
+
import { describeError$u as Re, DEFAULT_SUPPORT_EMAIL$u as Ae, DEFAULT_SUPPORT_LABEL$u as ke, supportMailto$u as ce, formatErrorDetails$u as _e, getErrorReportConfig$u as Te } from "../../vanilla/core/describeError.js";
|
|
13
|
+
const Oe = {
|
|
13
14
|
notFound: { code: "404", title: "Страница не найдена", text: "Возможно, страница была удалена или адрес введён с ошибкой." },
|
|
14
15
|
forbidden: { code: "403", title: "Нет доступа к странице", text: "Права вашей роли не позволяют открыть этот раздел." },
|
|
15
16
|
serverError: { code: "500", title: "Ошибка в работе сервиса", text: "Попробуйте обновить страницу. Если ошибка повторится, обратитесь в техническую поддержку." },
|
|
16
17
|
maintenance: { code: "503", title: "Сервис на обслуживании", text: "Сейчас идут плановые работы — сервис скоро вернётся к работе. Всё, что вы успели сделать до этого, сохранено." }
|
|
17
|
-
},
|
|
18
|
+
}, xe = {
|
|
18
19
|
notFound: "none",
|
|
19
20
|
forbidden: "forbidden",
|
|
20
21
|
serverError: "error",
|
|
21
22
|
maintenance: "maintenance"
|
|
22
|
-
},
|
|
23
|
-
function
|
|
23
|
+
}, De = '[id^="__qiankun_microapp_wrapper_for_"]';
|
|
24
|
+
function Ie() {
|
|
24
25
|
return typeof window < "u" && !!window.__POWERED_BY_QIANKUN__;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function Pe(r) {
|
|
27
28
|
for (let e = r.parentElement; e && e !== document.body; e = e.parentElement) {
|
|
28
29
|
const { overflowY: o } = getComputedStyle(e);
|
|
29
30
|
if (o === "auto" || o === "scroll") return e;
|
|
30
31
|
}
|
|
31
32
|
return r;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function $e(r, e) {
|
|
34
35
|
const o = [];
|
|
35
36
|
for (let t = r; t && t !== e; t = t.parentElement) {
|
|
36
|
-
const
|
|
37
|
-
if (!
|
|
38
|
-
for (const
|
|
39
|
-
|
|
37
|
+
const u = t.parentElement;
|
|
38
|
+
if (!u) break;
|
|
39
|
+
for (const s of Array.from(u.children))
|
|
40
|
+
s !== t && s instanceof HTMLElement && !s.inert && (s.inert = !0, o.push(s));
|
|
40
41
|
}
|
|
41
42
|
return () => o.forEach((t) => {
|
|
42
43
|
t.inert = !1;
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function er({
|
|
46
47
|
variant: r,
|
|
47
48
|
error: e,
|
|
48
49
|
subject: o,
|
|
49
50
|
operation: t,
|
|
50
|
-
notFoundIsPage:
|
|
51
|
-
onRetry:
|
|
52
|
-
onLogin:
|
|
53
|
-
onHome:
|
|
54
|
-
showDetails:
|
|
51
|
+
notFoundIsPage: u,
|
|
52
|
+
onRetry: s,
|
|
53
|
+
onLogin: m,
|
|
54
|
+
onHome: f,
|
|
55
|
+
showDetails: g,
|
|
55
56
|
supportEmail: w,
|
|
56
|
-
supportLabel:
|
|
57
|
-
onSupport:
|
|
58
|
-
title:
|
|
59
|
-
text:
|
|
60
|
-
code:
|
|
61
|
-
illustration:
|
|
62
|
-
reasons:
|
|
63
|
-
reasonsTitle:
|
|
64
|
-
onAction:
|
|
65
|
-
actionLabel:
|
|
66
|
-
secondaryActionLabel:
|
|
67
|
-
onSecondaryAction:
|
|
68
|
-
loading:
|
|
69
|
-
className:
|
|
70
|
-
fullScreen:
|
|
57
|
+
supportLabel: R,
|
|
58
|
+
onSupport: A,
|
|
59
|
+
title: z,
|
|
60
|
+
text: k,
|
|
61
|
+
code: h,
|
|
62
|
+
illustration: _,
|
|
63
|
+
reasons: v,
|
|
64
|
+
reasonsTitle: Y,
|
|
65
|
+
onAction: a,
|
|
66
|
+
actionLabel: T,
|
|
67
|
+
secondaryActionLabel: V,
|
|
68
|
+
onSecondaryAction: G,
|
|
69
|
+
loading: J = !1,
|
|
70
|
+
className: B = "",
|
|
71
|
+
fullScreen: y = !1
|
|
71
72
|
}) {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
const c =
|
|
75
|
-
if (!
|
|
76
|
-
const
|
|
77
|
-
return c.setAttribute("closedby", "none"), c.addEventListener("cancel",
|
|
78
|
-
c.removeEventListener("cancel",
|
|
73
|
+
const X = $(null), Z = $(null), U = $(null), [se] = S(Ie), [ae, de] = S(null), [ue, me] = S(!1), E = y && se && !ue;
|
|
74
|
+
ie(() => {
|
|
75
|
+
const c = X.current;
|
|
76
|
+
if (!y || E || !c) return;
|
|
77
|
+
const p = (D) => D.preventDefault();
|
|
78
|
+
return c.setAttribute("closedby", "none"), c.addEventListener("cancel", p), c.showModal(), oe(U.current), () => {
|
|
79
|
+
c.removeEventListener("cancel", p), c.close();
|
|
79
80
|
};
|
|
80
|
-
}, [
|
|
81
|
-
const c =
|
|
82
|
-
if (!
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
85
|
-
|
|
81
|
+
}, [y, E]), Ce(() => {
|
|
82
|
+
const c = Z.current;
|
|
83
|
+
if (!E || !c) return;
|
|
84
|
+
const p = c.closest(De);
|
|
85
|
+
if (!p) {
|
|
86
|
+
me(!0);
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
const D = Pe(p), I = () => {
|
|
90
|
+
const P = D.getBoundingClientRect();
|
|
91
|
+
de({ top: P.top, left: P.left, width: P.width, height: P.height });
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
-
|
|
93
|
+
I();
|
|
94
|
+
const b = typeof ResizeObserver > "u" ? null : new ResizeObserver(I);
|
|
95
|
+
b == null || b.observe(D), window.addEventListener("resize", I);
|
|
96
|
+
const be = $e(c, p), j = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
97
|
+
return oe(U.current), () => {
|
|
98
|
+
b == null || b.disconnect(), window.removeEventListener("resize", I), be(), j == null || j.focus();
|
|
98
99
|
};
|
|
99
|
-
}, [
|
|
100
|
-
const
|
|
100
|
+
}, [E]);
|
|
101
|
+
const i = ge(() => {
|
|
101
102
|
if (e == null) return;
|
|
102
|
-
const c =
|
|
103
|
+
const c = Re(e, { subject: o, operation: t, notFoundIsPage: u });
|
|
103
104
|
return c.group === "aborted" ? void 0 : c;
|
|
104
|
-
}, [e, o, t,
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
].filter(Boolean).join(" "),
|
|
109
|
-
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */ n("p", { className: "
|
|
112
|
-
(
|
|
113
|
-
|
|
114
|
-
/* @__PURE__ */ n("p", { className: "
|
|
115
|
-
/* @__PURE__ */ n("ul", { className: "
|
|
105
|
+
}, [e, o, t, u]), ee = r ?? (i == null ? void 0 : i.variant) ?? "serverError", O = Oe[ee], M = h !== void 0 ? h : i ? i.code : O.code, H = _ ?? (h != null ? "none" : xe[ee]), N = v != null && v.length ? v : null, K = M ?? void 0, Q = z ?? (i == null ? void 0 : i.title) ?? O.title, x = typeof Q == "string" ? Q : O.title, fe = !!(V && G), re = ze(i, { onAction: a, actionLabel: T, onRetry: s, onLogin: m, onHome: f }), te = Me({ supportEmail: w, supportLabel: R, onSupport: A }), pe = !!i && g !== !1, [he, ve] = S(!1), Ee = [
|
|
106
|
+
l("error-screen-card"),
|
|
107
|
+
H !== "none" && l("error-screen-card--illustrated"),
|
|
108
|
+
N && l("error-screen-card--reasons")
|
|
109
|
+
].filter(Boolean).join(" "), W = /* @__PURE__ */ d(ye, { className: Ee, children: [
|
|
110
|
+
H !== "none" ? /* @__PURE__ */ n(Le, { name: H }) : M !== null && /* @__PURE__ */ n("span", { className: l("error-screen-code"), "aria-hidden": "true", children: M }),
|
|
111
|
+
/* @__PURE__ */ d("div", { className: l("error-screen-message"), children: [
|
|
112
|
+
/* @__PURE__ */ n("p", { className: l("error-screen-title"), children: Q }),
|
|
113
|
+
(k !== void 0 || i || !N) && /* @__PURE__ */ n("p", { className: l("error-screen-description"), children: Ue(k ?? (i == null ? void 0 : i.text) ?? O.text, te.email, i ? { ...i, title: x } : void 0) }),
|
|
114
|
+
N && /* @__PURE__ */ d("div", { className: l("error-screen-reasons"), children: [
|
|
115
|
+
/* @__PURE__ */ n("p", { className: l("error-screen-reasons-title"), children: Y ?? (N.length > 1 ? "Причины" : "Причина") }),
|
|
116
|
+
/* @__PURE__ */ n("ul", { className: l("error-screen-reasons-list"), children: N.map((c, p) => /* @__PURE__ */ n("li", { children: c }, p)) })
|
|
116
117
|
] })
|
|
117
118
|
] }),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
|
|
120
|
-
/* @__PURE__ */ n(
|
|
119
|
+
/* @__PURE__ */ d("div", { className: l("error-screen-actions"), ref: U, children: [
|
|
120
|
+
fe && /* @__PURE__ */ n(L, { size: "small", variant: "simple", disabled: J, onClick: G, children: V }),
|
|
121
|
+
/* @__PURE__ */ n(L, { size: "small", loading: J, onClick: re.onClick, children: re.label })
|
|
121
122
|
] }),
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
i && pe && /* @__PURE__ */ n(
|
|
124
|
+
He,
|
|
124
125
|
{
|
|
125
|
-
description: { ...
|
|
126
|
-
inDialog:
|
|
127
|
-
support:
|
|
128
|
-
open:
|
|
129
|
-
onOpenChange:
|
|
126
|
+
description: { ...i, title: x },
|
|
127
|
+
inDialog: y && !E,
|
|
128
|
+
support: te,
|
|
129
|
+
open: he,
|
|
130
|
+
onOpenChange: ve
|
|
130
131
|
}
|
|
131
132
|
)
|
|
132
133
|
] });
|
|
133
|
-
return
|
|
134
|
+
return E ? /* @__PURE__ */ d(
|
|
134
135
|
"div",
|
|
135
136
|
{
|
|
136
|
-
ref:
|
|
137
|
+
ref: Z,
|
|
137
138
|
role: "dialog",
|
|
138
|
-
"aria-label":
|
|
139
|
-
style:
|
|
140
|
-
"data-error-code":
|
|
141
|
-
className:
|
|
139
|
+
"aria-label": x,
|
|
140
|
+
style: ae ?? void 0,
|
|
141
|
+
"data-error-code": K,
|
|
142
|
+
className: `${C()}-error-screen ${C()}-error-screen-fullscreen ${C()}-error-screen-area ${B}`,
|
|
142
143
|
children: [
|
|
143
|
-
/* @__PURE__ */ n(
|
|
144
|
-
|
|
144
|
+
/* @__PURE__ */ n(q, {}),
|
|
145
|
+
W
|
|
145
146
|
]
|
|
146
147
|
}
|
|
147
|
-
) :
|
|
148
|
+
) : y ? /* @__PURE__ */ d(
|
|
148
149
|
"dialog",
|
|
149
150
|
{
|
|
150
|
-
ref:
|
|
151
|
-
className:
|
|
152
|
-
"aria-label":
|
|
153
|
-
"data-error-code":
|
|
151
|
+
ref: X,
|
|
152
|
+
className: `${C()}-error-screen ${C()}-error-screen-fullscreen ${B}`,
|
|
153
|
+
"aria-label": x,
|
|
154
|
+
"data-error-code": K,
|
|
154
155
|
children: [
|
|
155
|
-
/* @__PURE__ */ n(
|
|
156
|
-
|
|
156
|
+
/* @__PURE__ */ n(q, {}),
|
|
157
|
+
W
|
|
157
158
|
]
|
|
158
159
|
}
|
|
159
|
-
) : /* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */ n(
|
|
161
|
-
|
|
160
|
+
) : /* @__PURE__ */ d("div", { className: `${C()}-error-screen ${B}`, role: "alert", "data-error-code": K, children: [
|
|
161
|
+
/* @__PURE__ */ n(q, {}),
|
|
162
|
+
W
|
|
162
163
|
] });
|
|
163
164
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
165
|
+
const ne = () => window.location.reload();
|
|
166
|
+
function oe(r) {
|
|
166
167
|
var e;
|
|
167
168
|
(e = r == null ? void 0 : r.querySelector("button:last-of-type")) == null || e.focus();
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function ze(r, e) {
|
|
170
171
|
const o = e.actionLabel;
|
|
171
172
|
if (e.onAction) return { label: o ?? (r ? "Повторить" : "Обновить страницу"), onClick: e.onAction };
|
|
172
|
-
if (!r) return { label: o ?? "Обновить страницу", onClick: e.onRetry ??
|
|
173
|
-
const t = { label: o ?? "Обновить страницу", onClick:
|
|
173
|
+
if (!r) return { label: o ?? "Обновить страницу", onClick: e.onRetry ?? ne };
|
|
174
|
+
const t = { label: o ?? "Обновить страницу", onClick: ne };
|
|
174
175
|
switch (r.action) {
|
|
175
176
|
case "login":
|
|
176
177
|
return e.onLogin ? { label: o ?? r.actionLabel, onClick: e.onLogin } : t;
|
|
@@ -184,74 +185,74 @@ function Pe(r, e) {
|
|
|
184
185
|
return t;
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
188
|
+
const Be = 2e3, F = "техническую поддержку";
|
|
189
|
+
function Ue(r, e, o) {
|
|
189
190
|
if (typeof r != "string" || !e) return r;
|
|
190
|
-
const t = r.indexOf(
|
|
191
|
-
if (t <
|
|
192
|
-
const
|
|
193
|
-
return /* @__PURE__ */
|
|
191
|
+
const t = r.indexOf(F) + F.length;
|
|
192
|
+
if (t < F.length) return r;
|
|
193
|
+
const u = o ? ce(o, e) : `mailto:${e}`;
|
|
194
|
+
return /* @__PURE__ */ d(le, { children: [
|
|
194
195
|
r.slice(0, t),
|
|
195
196
|
": ",
|
|
196
|
-
/* @__PURE__ */ n("a", { className: "
|
|
197
|
+
/* @__PURE__ */ n("a", { className: l("link"), href: u, children: e }),
|
|
197
198
|
r.slice(t)
|
|
198
199
|
] });
|
|
199
200
|
}
|
|
200
201
|
function Me(r) {
|
|
201
|
-
const e =
|
|
202
|
-
return { email: r.supportEmail !== void 0 ? r.supportEmail : e.supportEmail !== void 0 ? e.supportEmail :
|
|
202
|
+
const e = Te();
|
|
203
|
+
return { email: r.supportEmail !== void 0 ? r.supportEmail : e.supportEmail !== void 0 ? e.supportEmail : Ae, label: r.supportLabel ?? e.supportLabel ?? ke, onSupport: r.onSupport ?? e.onSupport };
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
-
const
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
},
|
|
205
|
+
function He({ description: r, support: e, inDialog: o, open: t, onOpenChange: u }) {
|
|
206
|
+
const s = e.email, [m, f] = S("idle"), g = $(null), w = _e(r), R = () => {
|
|
207
|
+
const a = window.getSelection();
|
|
208
|
+
a && g.current && a.selectAllChildren(g.current);
|
|
209
|
+
}, A = (a, T) => {
|
|
209
210
|
if (!navigator.clipboard) {
|
|
210
|
-
|
|
211
|
+
R(), T();
|
|
211
212
|
return;
|
|
212
213
|
}
|
|
213
|
-
navigator.clipboard.writeText(w).then(
|
|
214
|
-
|
|
214
|
+
navigator.clipboard.writeText(w).then(a, () => {
|
|
215
|
+
R(), T();
|
|
215
216
|
});
|
|
216
|
-
},
|
|
217
|
-
const
|
|
217
|
+
}, z = () => A(() => f("copied"), () => f("selected")), k = () => {
|
|
218
|
+
const a = s ? ce(r, s) : null;
|
|
218
219
|
if (e.onSupport) {
|
|
219
|
-
e.onSupport({ report: w, description: r, mailto:
|
|
220
|
+
e.onSupport({ report: w, description: r, mailto: a });
|
|
220
221
|
return;
|
|
221
222
|
}
|
|
222
|
-
|
|
223
|
+
a && (A(() => f("mailCopied"), () => f("mailSelected")), window.open(a, "_self"));
|
|
223
224
|
};
|
|
224
|
-
|
|
225
|
-
if (
|
|
226
|
-
const
|
|
227
|
-
return () => clearTimeout(
|
|
228
|
-
}, [
|
|
229
|
-
const
|
|
230
|
-
return /* @__PURE__ */
|
|
231
|
-
/* @__PURE__ */ n(
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
|
|
225
|
+
ie(() => {
|
|
226
|
+
if (m !== "copied") return;
|
|
227
|
+
const a = setTimeout(() => f("idle"), Be);
|
|
228
|
+
return () => clearTimeout(a);
|
|
229
|
+
}, [m]);
|
|
230
|
+
const h = m === "copied" ? "Скопировано" : m === "selected" ? "Выделено — нажмите Ctrl+C" : "Скопировать", _ = m === "mailCopied" ? `Открываем письмо. Если почта не открылась — текст скопирован, вставьте его в письмо на ${s}` : m === "mailSelected" ? `Открываем письмо. Если почта не открылась — текст выделен: нажмите Ctrl+C и вставьте его в письмо на ${s}` : "", v = we(void 0, l("error-screen-details-title"));
|
|
231
|
+
return /* @__PURE__ */ d(le, { children: [
|
|
232
|
+
/* @__PURE__ */ n(L, { size: "small", variant: "text", onClick: () => u(!0), children: "Подробности для технической поддержки" }),
|
|
233
|
+
/* @__PURE__ */ d(
|
|
234
|
+
Se,
|
|
234
235
|
{
|
|
235
236
|
active: t,
|
|
236
237
|
onCancel: () => {
|
|
237
|
-
|
|
238
|
+
u(!1), f("idle");
|
|
238
239
|
},
|
|
239
240
|
unmountOnClose: !0,
|
|
240
241
|
portalOn: !o,
|
|
241
|
-
ariaLabelledBy:
|
|
242
|
+
ariaLabelledBy: v,
|
|
242
243
|
maxWidth: "640px",
|
|
243
|
-
className: "
|
|
244
|
+
className: l("error-screen-details-modal"),
|
|
244
245
|
children: [
|
|
245
|
-
/* @__PURE__ */ n("h3", { id:
|
|
246
|
-
/* @__PURE__ */ n("pre", { ref:
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */ n(
|
|
249
|
-
(
|
|
246
|
+
/* @__PURE__ */ n("h3", { id: v, className: l("error-screen-details-title"), children: "Подробности для технической поддержки" }),
|
|
247
|
+
/* @__PURE__ */ n("pre", { ref: g, className: l("error-screen-report"), children: w }),
|
|
248
|
+
/* @__PURE__ */ d("div", { className: l("error-screen-copy"), children: [
|
|
249
|
+
/* @__PURE__ */ n(L, { size: "small", variant: "text", onClick: z, children: h }),
|
|
250
|
+
(s || e.onSupport) && /* @__PURE__ */ n(L, { size: "small", onClick: k, children: e.label })
|
|
250
251
|
] }),
|
|
251
|
-
/* @__PURE__ */ n("div", { className: "
|
|
252
|
+
/* @__PURE__ */ n("div", { className: l("error-screen-copy-status"), role: "status", "aria-live": "polite", children: _ ? /* @__PURE__ */ n(Ne, { size: "small", children: _ }) : m !== "idle" && /* @__PURE__ */ n("span", { className: l("error-screen-sr-only"), children: h }) })
|
|
252
253
|
]
|
|
253
254
|
}
|
|
254
255
|
)
|
|
255
256
|
] });
|
|
256
257
|
}
|
|
257
|
-
export {
|
|
258
|
+
export { er as ErrorScreen$u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorScreenIllustration.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorScreen/ErrorScreenIllustration.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorScreenIllustration.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorScreen/ErrorScreenIllustration.tsx"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,WAAW,GAAG,OAAO,GAAG,aAAa,CAAC;AAuEhF,wBAAgB,uBAAuB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,2BAA2B,CAAA;CAAE,2CAItF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,4CAgB/B"}
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { getUiKitPrefix$u as c, kitClasses$u as n, kitCls$u as i, kitVarRef$u as l } from "../../shared/uiKitDefaults.js";
|
|
3
|
+
const s = () => l("color-text", "#222222"), h = () => l("color-primary", "#1E4391");
|
|
4
|
+
function a({ y: e, gapFrom: L, gapTo: d }) {
|
|
4
5
|
const t = e + 72;
|
|
5
|
-
return /* @__PURE__ */ o("g", { style: { stroke: s }, strokeWidth: "3", strokeLinecap: "round", fill: "none", children: [
|
|
6
|
-
/* @__PURE__ */ r("path", { d: `M${
|
|
6
|
+
return /* @__PURE__ */ o("g", { style: { stroke: s() }, strokeWidth: "3", strokeLinecap: "round", fill: "none", children: [
|
|
7
|
+
/* @__PURE__ */ r("path", { d: `M${L} ${t}H8C4.686 ${t} 2 ${t - 2.686} 2 ${t - 6}V${e + 6}C2 ${e + 2.686} 4.686 ${e} 8 ${e}H102C105.314 ${e} 108 ${e + 2.686} 108 ${e + 6}V${t - 6}C108 ${t - 2.686} 105.314 ${t} 102 ${t}H${d}` }),
|
|
7
8
|
/* @__PURE__ */ r("path", { d: `M8.5 ${e + 15}H101.5` }),
|
|
8
9
|
/* @__PURE__ */ r("path", { d: `M95.5 ${e + 5}L99.5 ${e + 9}M99.5 ${e + 5}L95.5 ${e + 9}` }),
|
|
9
10
|
/* @__PURE__ */ r("path", { d: `M84.5 ${e + 9}H88.5` })
|
|
10
11
|
] });
|
|
11
12
|
}
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */ o("g", { style: { stroke: s }, strokeWidth: "3", children: [
|
|
15
|
-
/* @__PURE__ */ r("path", { d:
|
|
13
|
+
const f = "M32.274 64.071C33.354 61.036 37.646 61.036 38.726 64.071C39.406 65.983 41.589 66.887 43.422 66.016C46.331 64.633 49.367 67.669 47.984 70.578C47.113 72.411 48.017 74.594 49.929 75.274C52.964 76.354 52.964 80.646 49.929 81.726C48.017 82.406 47.113 84.589 47.984 86.422C49.367 89.331 46.331 92.367 43.422 90.984C41.589 90.113 39.406 91.017 38.726 92.929C37.646 95.964 33.354 95.964 32.274 92.929C31.594 91.017 29.411 90.113 27.578 90.984C24.669 92.367 21.633 89.331 23.016 86.422C23.887 84.589 22.983 82.406 21.071 81.726C18.036 80.646 18.036 76.354 21.071 75.274C22.983 74.594 23.887 72.411 23.016 70.578C21.633 67.669 24.669 64.633 27.578 66.016C29.411 66.887 31.594 65.983 32.274 64.071Z", u = "M25.235 29.369C25.993 27.238 29.007 27.238 29.765 29.369C30.242 30.711 31.775 31.346 33.062 30.735C35.105 29.764 37.236 31.895 36.265 33.938C35.654 35.225 36.289 36.758 37.631 37.235C39.762 37.993 39.762 41.007 37.631 41.765C36.289 42.242 35.654 43.775 36.265 45.062C37.236 47.105 35.105 49.236 33.062 48.265C31.775 47.654 30.242 48.289 29.765 49.631C29.007 51.762 25.993 51.762 25.235 49.631C24.758 48.289 23.225 47.654 21.938 48.265C19.895 49.236 17.764 47.105 18.735 45.062C19.346 43.775 18.711 42.242 17.369 41.765C15.238 41.007 15.238 37.993 17.369 37.235C18.711 36.758 19.346 35.225 18.735 33.938C17.764 31.895 19.895 29.764 21.938 30.735C23.225 31.346 24.758 30.711 25.235 29.369Z";
|
|
14
|
+
function C() {
|
|
15
|
+
return /* @__PURE__ */ o("g", { style: { stroke: s() }, strokeWidth: "3", children: [
|
|
16
|
+
/* @__PURE__ */ r("path", { d: f }),
|
|
16
17
|
/* @__PURE__ */ r("circle", { cx: "35.5", cy: "78.5", r: "7" }),
|
|
17
|
-
/* @__PURE__ */ r("path", { d:
|
|
18
|
+
/* @__PURE__ */ r("path", { d: u }),
|
|
18
19
|
/* @__PURE__ */ r("circle", { cx: "27.5", cy: "39.5", r: "4" })
|
|
19
20
|
] });
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */ o("svg", { className: "
|
|
23
|
-
/* @__PURE__ */ r(
|
|
24
|
-
/* @__PURE__ */ r("rect", { x: "23.5", y: "36.5", width: "73", height: "96", rx: "4.5", style: { fill:
|
|
25
|
-
/* @__PURE__ */ r("g", { style: { stroke: s }, strokeWidth: "3", strokeLinecap: "round", children: /* @__PURE__ */ r("path", { d: "M36.5 49.5H83.5M36.5 60.5H83.5M36.5 71.5H83.5" }) }),
|
|
26
|
-
/* @__PURE__ */ o("g", { style: { stroke:
|
|
22
|
+
function p() {
|
|
23
|
+
return /* @__PURE__ */ o("svg", { className: i("error-screen-illustration"), width: "110", height: "134", viewBox: "0 0 110 134", fill: "none", "aria-hidden": "true", focusable: "false", children: [
|
|
24
|
+
/* @__PURE__ */ r(a, { y: 7, gapFrom: 10.894, gapTo: 31.11 }),
|
|
25
|
+
/* @__PURE__ */ r("rect", { x: "23.5", y: "36.5", width: "73", height: "96", rx: "4.5", style: { fill: `var(--${c()}-color-surface, #FFFFFF)`, stroke: s() }, strokeWidth: "3" }),
|
|
26
|
+
/* @__PURE__ */ r("g", { style: { stroke: s() }, strokeWidth: "3", strokeLinecap: "round", children: /* @__PURE__ */ r("path", { d: "M36.5 49.5H83.5M36.5 60.5H83.5M36.5 71.5H83.5" }) }),
|
|
27
|
+
/* @__PURE__ */ o("g", { style: { stroke: h() }, strokeWidth: "3", fill: "none", children: [
|
|
27
28
|
/* @__PURE__ */ r("circle", { cx: "59.5", cy: "104.5", r: "14" }),
|
|
28
29
|
/* @__PURE__ */ r("path", { d: "M50.7 95.7L67.6 113.9" })
|
|
29
30
|
] })
|
|
30
31
|
] });
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
return /* @__PURE__ */ o("svg", { className: "
|
|
34
|
-
/* @__PURE__ */ r(
|
|
35
|
-
/* @__PURE__ */ r(
|
|
36
|
-
/* @__PURE__ */ r("path", { d: "M79.286 27.85C80.063 26.558 81.937 26.558 82.714 27.85L100.828 57.969C101.63 59.302 100.67 61 99.114 61H62.886C61.331 61 60.37 59.302 61.172 57.969Z", style: { stroke: s }, strokeWidth: "3" }),
|
|
37
|
-
/* @__PURE__ */ r("path", { d: "M80.312 49.752L79.976 43.2H82.048L81.698 49.752H80.312ZM81.012 53.098C80.685 53.098 80.414 52.991 80.2 52.776C79.985 52.561 79.878 52.305 79.878 52.006C79.878 51.707 79.985 51.455 80.2 51.25C80.414 51.035 80.685 50.928 81.012 50.928C81.338 50.928 81.604 51.035 81.81 51.25C82.015 51.455 82.118 51.707 82.118 52.006C82.118 52.305 82.015 52.561 81.81 52.776C81.604 52.991 81.338 53.098 81.012 53.098Z", style: { fill: s } })
|
|
33
|
+
function $() {
|
|
34
|
+
return /* @__PURE__ */ o("svg", { className: i("error-screen-illustration"), width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
|
|
35
|
+
/* @__PURE__ */ r(a, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
|
|
36
|
+
/* @__PURE__ */ r(C, {}),
|
|
37
|
+
/* @__PURE__ */ r("path", { d: "M79.286 27.85C80.063 26.558 81.937 26.558 82.714 27.85L100.828 57.969C101.63 59.302 100.67 61 99.114 61H62.886C61.331 61 60.37 59.302 61.172 57.969Z", style: { stroke: s() }, strokeWidth: "3" }),
|
|
38
|
+
/* @__PURE__ */ r("path", { d: "M80.312 49.752L79.976 43.2H82.048L81.698 49.752H80.312ZM81.012 53.098C80.685 53.098 80.414 52.991 80.2 52.776C79.985 52.561 79.878 52.305 79.878 52.006C79.878 51.707 79.985 51.455 80.2 51.25C80.414 51.035 80.685 50.928 81.012 50.928C81.338 50.928 81.604 51.035 81.81 51.25C82.015 51.455 82.118 51.707 82.118 52.006C82.118 52.305 82.015 52.561 81.81 52.776C81.604 52.991 81.338 53.098 81.012 53.098Z", style: { fill: s() } })
|
|
38
39
|
] });
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return /* @__PURE__ */ o("svg", { className: "
|
|
42
|
-
/* @__PURE__ */ r(
|
|
43
|
-
/* @__PURE__ */ r(
|
|
44
|
-
/* @__PURE__ */ r("path", { d: "M89.309 64.31L73.681 54.994C73.555 54.919 73.404 54.9 73.265 54.943L68.076 56.518C67.8 56.602 67.5 56.563 67.256 56.41L61.932 53.085C61.768 52.982 61.637 52.834 61.555 52.658L58.125 45.281C57.705 44.379 58.717 43.484 59.561 44.011L67.65 49.063C68.118 49.355 68.735 49.213 69.028 48.744L73.329 41.857C73.622 41.389 73.479 40.772 73.011 40.479L64.922 35.428C64.078 34.9 64.438 33.598 65.433 33.58L73.567 33.425C73.761 33.422 73.952 33.474 74.116 33.577L79.495 36.937C79.707 37.069 79.862 37.276 79.929 37.517L81.228 42.199C81.263 42.322 81.343 42.428 81.453 42.493L96.845 51.668C100.387 53.78 101.502 58.389 99.318 61.887C97.197 65.283 92.749 66.36 89.309 64.31Z", style: { stroke: s }, strokeWidth: "3" })
|
|
41
|
+
function g() {
|
|
42
|
+
return /* @__PURE__ */ o("svg", { className: i("error-screen-illustration"), width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
|
|
43
|
+
/* @__PURE__ */ r(a, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
|
|
44
|
+
/* @__PURE__ */ r(C, {}),
|
|
45
|
+
/* @__PURE__ */ r("path", { d: "M89.309 64.31L73.681 54.994C73.555 54.919 73.404 54.9 73.265 54.943L68.076 56.518C67.8 56.602 67.5 56.563 67.256 56.41L61.932 53.085C61.768 52.982 61.637 52.834 61.555 52.658L58.125 45.281C57.705 44.379 58.717 43.484 59.561 44.011L67.65 49.063C68.118 49.355 68.735 49.213 69.028 48.744L73.329 41.857C73.622 41.389 73.479 40.772 73.011 40.479L64.922 35.428C64.078 34.9 64.438 33.598 65.433 33.58L73.567 33.425C73.761 33.422 73.952 33.474 74.116 33.577L79.495 36.937C79.707 37.069 79.862 37.276 79.929 37.517L81.228 42.199C81.263 42.322 81.343 42.428 81.453 42.493L96.845 51.668C100.387 53.78 101.502 58.389 99.318 61.887C97.197 65.283 92.749 66.36 89.309 64.31Z", style: { stroke: s() }, strokeWidth: "3" })
|
|
45
46
|
] });
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
-
return e === "forbidden" ? /* @__PURE__ */ r(
|
|
48
|
+
function m({ name: e }) {
|
|
49
|
+
return e === "forbidden" ? /* @__PURE__ */ r(p, {}) : e === "maintenance" ? /* @__PURE__ */ r(g, {}) : /* @__PURE__ */ r($, {});
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
return /* @__PURE__ */ r("span", { className: "
|
|
52
|
-
/* @__PURE__ */ r("svg", { className: "
|
|
53
|
-
/* @__PURE__ */ r("svg", { className: "
|
|
54
|
-
/* @__PURE__ */ r("svg", { className: "
|
|
51
|
+
function v() {
|
|
52
|
+
return /* @__PURE__ */ r("span", { className: i("error-screen-decor"), "aria-hidden": "true", children: /* @__PURE__ */ o("span", { className: i("error-screen-decor-stars"), children: [
|
|
53
|
+
/* @__PURE__ */ r("svg", { className: n("error-screen-decor-star", "error-screen-decor-star--big"), width: "85", height: "85", viewBox: "0 0 85 85", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M42.503 0L43.621 39.794L72.552 12.449L45.202 41.383L85 42.5L45.202 43.624L72.552 72.551L43.621 45.206L42.503 85L41.38 45.206L12.448 72.551L39.798 43.624L0 42.5L39.798 41.383L12.448 12.449L41.38 39.794Z", style: { fill: `var(--${c()}-error-screen-decor-color, #003DA6)` } }) }),
|
|
54
|
+
/* @__PURE__ */ r("svg", { className: n("error-screen-decor-star", "error-screen-decor-star--small"), width: "37", height: "37", viewBox: "0 0 37 37", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M37 18.5C26.784 18.5 18.5 10.216 18.5 0C18.5 10.216 10.216 18.5 0 18.5C10.216 18.5 18.5 26.784 18.5 37C18.5 26.784 26.784 18.5 37 18.5Z", style: { fill: `var(--${c()}-error-screen-decor-color, #003DA6)` } }) }),
|
|
55
|
+
/* @__PURE__ */ r("svg", { className: n("error-screen-decor-star", "error-screen-decor-star--ring"), width: "65", height: "65", viewBox: "0 0 65 65", fill: "none", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M32.212 0.032L32.722 7.962C33.012 12.442 39.042 13.642 41.022 9.612L44.522 2.482L41.962 10.002C40.512 14.252 45.632 17.662 48.992 14.702L54.962 9.452L49.712 15.422C46.752 18.792 50.162 23.902 54.412 22.462L61.932 19.902L54.802 23.412C50.782 25.392 51.982 31.422 56.452 31.712L64.382 32.222L56.452 32.732C51.972 33.022 50.772 39.052 54.802 41.032L61.932 44.542L54.412 41.982C50.162 40.532 46.752 45.652 49.712 49.022L54.962 54.992L48.992 49.742C45.622 46.782 40.512 50.192 41.962 54.442L44.522 61.962L41.022 54.832C39.042 50.802 33.012 52.002 32.722 56.482L32.212 64.412L31.702 56.482C31.412 52.002 25.382 50.802 23.402 54.832L19.902 61.962L22.462 54.442C23.912 50.192 18.792 46.782 15.422 49.742L9.452 54.992L14.702 49.022C17.662 45.652 14.252 40.542 10.002 41.982L2.482 44.542L9.612 41.032C13.642 39.052 12.442 33.022 7.962 32.732L0.032 32.222L7.962 31.712C12.442 31.422 13.642 25.392 9.612 23.412L2.482 19.902L10.002 22.462C14.242 23.912 17.662 18.792 14.702 15.422L9.452 9.452L15.422 14.702C18.792 17.662 23.902 14.252 22.462 10.002L19.902 2.482L23.402 9.612C25.382 13.642 31.412 12.442 31.702 7.962Z", style: { stroke: `var(--${c()}-error-screen-decor-color, #174496)` } }) })
|
|
55
56
|
] }) });
|
|
56
57
|
}
|
|
57
|
-
export {
|
|
58
|
+
export { v as ErrorScreenDecor$u, m as ErrorScreenIllustration$u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAM7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,GAAI,8FAYvB,mBAAmB,4CA+CrB,CAAC"}
|