@efficiency-point/design-system 0.1.43 → 0.1.45
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 +7 -4
- package/dist/components/DSBadge/DSBadge.d.ts +1 -1
- package/dist/components/DSBadge/DSBadge.d.ts.map +1 -1
- package/dist/components/DSCounterBadge/DSCounterBadge.d.ts +1 -1
- package/dist/components/DSCounterBadge/DSCounterBadge.d.ts.map +1 -1
- package/dist/components/DSDataTable/DSDataTable.d.ts +2 -1
- package/dist/components/DSDataTable/DSDataTable.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.es.js +340 -342
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4,17 +4,18 @@ import { createPortal as _ } from "react-dom";
|
|
|
4
4
|
import { createSortedRowModel as v, rowSortingFeature as y, tableFeatures as b, useTable as x } from "@tanstack/react-table";
|
|
5
5
|
import { create as S } from "zustand";
|
|
6
6
|
var C = {
|
|
7
|
-
badge: "
|
|
8
|
-
sm: "
|
|
9
|
-
md: "
|
|
10
|
-
neutral: "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
badge: "_badge_1tup7_1",
|
|
8
|
+
sm: "_sm_1tup7_29",
|
|
9
|
+
md: "_md_1tup7_39",
|
|
10
|
+
neutral: "_neutral_1tup7_49",
|
|
11
|
+
brand: "_brand_1tup7_61",
|
|
12
|
+
info: "_info_1tup7_73",
|
|
13
|
+
success: "_success_1tup7_85",
|
|
14
|
+
warning: "_warning_1tup7_97",
|
|
15
|
+
error: "_error_1tup7_109",
|
|
16
|
+
dot: "_dot_1tup7_121",
|
|
17
|
+
icon: "_icon_1tup7_137",
|
|
18
|
+
label: "_label_1tup7_147"
|
|
18
19
|
}, w = ({ children: e, variant: r = "neutral", size: i = "md", dot: a = !1, icon: o, className: s = "" }) => /* @__PURE__ */ n("span", {
|
|
19
20
|
className: `${C.badge} ${C[r]} ${C[i]} ${s}`,
|
|
20
21
|
children: [
|
|
@@ -33,14 +34,15 @@ var C = {
|
|
|
33
34
|
})
|
|
34
35
|
]
|
|
35
36
|
}), T = {
|
|
36
|
-
badge: "
|
|
37
|
-
sm: "
|
|
38
|
-
md: "
|
|
39
|
-
neutral: "
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
badge: "_badge_1qsds_1",
|
|
38
|
+
sm: "_sm_1qsds_25",
|
|
39
|
+
md: "_md_1qsds_37",
|
|
40
|
+
neutral: "_neutral_1qsds_51",
|
|
41
|
+
brand: "_brand_1qsds_63",
|
|
42
|
+
info: "_info_1qsds_75",
|
|
43
|
+
success: "_success_1qsds_87",
|
|
44
|
+
warning: "_warning_1qsds_99",
|
|
45
|
+
error: "_error_1qsds_111"
|
|
44
46
|
}, E = (e, t = 99) => {
|
|
45
47
|
let n = Math.max(0, Math.floor(e)), r = Math.max(0, Math.floor(t));
|
|
46
48
|
return n > r ? `${r}+` : String(n);
|
|
@@ -53,17 +55,17 @@ var C = {
|
|
|
53
55
|
children: E(l, n)
|
|
54
56
|
});
|
|
55
57
|
}, O = {
|
|
56
|
-
container: "
|
|
57
|
-
inner: "
|
|
58
|
-
line: "
|
|
59
|
-
primary: "
|
|
60
|
-
secondary: "
|
|
61
|
-
outline: "
|
|
62
|
-
ghost: "
|
|
63
|
-
empty: "
|
|
64
|
-
destructive: "
|
|
65
|
-
destructiveOutline: "
|
|
66
|
-
grow: "
|
|
58
|
+
container: "_container_bvxhv_1",
|
|
59
|
+
inner: "_inner_bvxhv_21",
|
|
60
|
+
line: "_line_bvxhv_39",
|
|
61
|
+
primary: "_primary_bvxhv_57",
|
|
62
|
+
secondary: "_secondary_bvxhv_65",
|
|
63
|
+
outline: "_outline_bvxhv_73",
|
|
64
|
+
ghost: "_ghost_bvxhv_81",
|
|
65
|
+
empty: "_empty_bvxhv_89",
|
|
66
|
+
destructive: "_destructive_bvxhv_97",
|
|
67
|
+
destructiveOutline: "_destructiveOutline_bvxhv_105",
|
|
68
|
+
grow: "_grow_bvxhv_1"
|
|
67
69
|
}, k = ({ variant: e = "primary" }) => /* @__PURE__ */ t("div", {
|
|
68
70
|
className: `${O.container} ${O[e]}`,
|
|
69
71
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -76,17 +78,17 @@ var C = {
|
|
|
76
78
|
]
|
|
77
79
|
})
|
|
78
80
|
}), A = {
|
|
79
|
-
button: "
|
|
80
|
-
sm: "
|
|
81
|
-
md: "
|
|
82
|
-
lg: "
|
|
83
|
-
primary: "
|
|
84
|
-
secondary: "
|
|
85
|
-
outline: "
|
|
86
|
-
ghost: "
|
|
87
|
-
empty: "
|
|
88
|
-
destructive: "
|
|
89
|
-
destructiveOutline: "
|
|
81
|
+
button: "_button_1fayv_1",
|
|
82
|
+
sm: "_sm_1fayv_59",
|
|
83
|
+
md: "_md_1fayv_73",
|
|
84
|
+
lg: "_lg_1fayv_87",
|
|
85
|
+
primary: "_primary_1fayv_101",
|
|
86
|
+
secondary: "_secondary_1fayv_115",
|
|
87
|
+
outline: "_outline_1fayv_129",
|
|
88
|
+
ghost: "_ghost_1fayv_143",
|
|
89
|
+
empty: "_empty_1fayv_157",
|
|
90
|
+
destructive: "_destructive_1fayv_171",
|
|
91
|
+
destructiveOutline: "_destructiveOutline_1fayv_183"
|
|
90
92
|
}, j = s(({ children: e, variant: n = "primary", size: r = "md", isLoading: i = !1, disabled: a, type: o = "button", className: s = "", ...c }, l) => /* @__PURE__ */ t("button", {
|
|
91
93
|
ref: l,
|
|
92
94
|
className: `${A.button} ${A[n]} ${A[r]} ${s}`,
|
|
@@ -2233,7 +2235,16 @@ var M = {
|
|
|
2233
2235
|
}, St = b({
|
|
2234
2236
|
rowSortingFeature: y,
|
|
2235
2237
|
sortedRowModel: v()
|
|
2236
|
-
}), Ct =
|
|
2238
|
+
}), Ct = [
|
|
2239
|
+
10,
|
|
2240
|
+
30,
|
|
2241
|
+
50,
|
|
2242
|
+
-1
|
|
2243
|
+
];
|
|
2244
|
+
function wt(e, t) {
|
|
2245
|
+
return t.includes(e) ? e : t.includes(30) ? 30 : t.find((e) => Number.isSafeInteger(e) && e > 0) ?? 30;
|
|
2246
|
+
}
|
|
2247
|
+
var Tt = ({ field: e, value: n, setValue: r, disabled: i, error: a }) => {
|
|
2237
2248
|
let o = e.type === "multi-select" ? e.options : void 0, [s, c] = g(Array.isArray(o) ? o : []), [l, u] = g(!1);
|
|
2238
2249
|
return d(() => {
|
|
2239
2250
|
if (o === void 0) return;
|
|
@@ -2276,20 +2287,20 @@ var M = {
|
|
|
2276
2287
|
error: a,
|
|
2277
2288
|
onChange: (e) => r(e)
|
|
2278
2289
|
});
|
|
2279
|
-
},
|
|
2290
|
+
}, Et = (e, t, n) => {
|
|
2280
2291
|
let r = new Set(e);
|
|
2281
2292
|
return t.forEach((e) => {
|
|
2282
2293
|
n ? r.add(e) : r.delete(e);
|
|
2283
2294
|
}), Array.from(r);
|
|
2284
|
-
},
|
|
2295
|
+
}, Dt = (e) => {
|
|
2285
2296
|
if (!(!e || e.width === void 0 && e.minWidth === void 0 && e.maxWidth === void 0)) return {
|
|
2286
2297
|
width: e.width,
|
|
2287
2298
|
minWidth: e.minWidth,
|
|
2288
2299
|
maxWidth: e.maxWidth
|
|
2289
2300
|
};
|
|
2290
|
-
},
|
|
2301
|
+
}, Ot = (e) => {
|
|
2291
2302
|
if (e?.sticky) return e.sticky === "start" ? { insetInlineStart: e.stickyOffset ?? 0 } : { insetInlineEnd: e.stickyOffset ?? 0 };
|
|
2292
|
-
},
|
|
2303
|
+
}, kt = (e, t) => t <= 7 ? Array.from({ length: t }, (e, t) => t) : e <= 3 ? [
|
|
2293
2304
|
0,
|
|
2294
2305
|
1,
|
|
2295
2306
|
2,
|
|
@@ -2313,7 +2324,7 @@ var M = {
|
|
|
2313
2324
|
e + 1,
|
|
2314
2325
|
"ellipsis-end",
|
|
2315
2326
|
t - 1
|
|
2316
|
-
],
|
|
2327
|
+
], At = (e, t) => {
|
|
2317
2328
|
let n = /* @__PURE__ */ new Set();
|
|
2318
2329
|
for (let t of e) {
|
|
2319
2330
|
if (!t.id.trim()) return "Идентификатор колонки не может быть пустым";
|
|
@@ -2325,36 +2336,36 @@ var M = {
|
|
|
2325
2336
|
for (let t of e) if (typeof t.accessor == "string" && !(t.accessor in r)) return `В строке ${n + 1} отсутствует колонка «${t.id}»`;
|
|
2326
2337
|
}
|
|
2327
2338
|
return null;
|
|
2328
|
-
},
|
|
2339
|
+
}, jt = (e, t) => typeof e == "function" ? e(t) : t[e], Mt = (e) => {
|
|
2329
2340
|
if (e == null || e === "") return null;
|
|
2330
2341
|
let t = Date.parse(String(e));
|
|
2331
2342
|
return Number.isNaN(t) ? null : t;
|
|
2332
|
-
},
|
|
2333
|
-
let r =
|
|
2343
|
+
}, Nt = (e, t, n) => {
|
|
2344
|
+
let r = Mt(e.getValue(n)), i = Mt(t.getValue(n));
|
|
2334
2345
|
return r === null && i === null ? 0 : r === null ? -1 : i === null ? 1 : r - i;
|
|
2335
|
-
},
|
|
2346
|
+
}, Pt = (e, t, n) => {
|
|
2336
2347
|
let r = e.getValue(n), i = t.getValue(n);
|
|
2337
2348
|
return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : Number(r) - Number(i);
|
|
2338
|
-
},
|
|
2349
|
+
}, Ft = (e, t, n) => {
|
|
2339
2350
|
let r = e.getValue(n), i = t.getValue(n);
|
|
2340
2351
|
return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : Number(!!r) - Number(!!i);
|
|
2341
|
-
},
|
|
2352
|
+
}, It = (e, t, n) => {
|
|
2342
2353
|
let r = String(e.getValue(n) ?? ""), i = String(t.getValue(n) ?? "");
|
|
2343
2354
|
return r.localeCompare(i, void 0, {
|
|
2344
2355
|
numeric: !0,
|
|
2345
2356
|
sensitivity: "base"
|
|
2346
2357
|
});
|
|
2347
|
-
},
|
|
2358
|
+
}, Lt = (e) => {
|
|
2348
2359
|
switch (e) {
|
|
2349
|
-
case "date": return
|
|
2350
|
-
case "number": return
|
|
2351
|
-
case "boolean": return
|
|
2360
|
+
case "date": return Nt;
|
|
2361
|
+
case "number": return Pt;
|
|
2362
|
+
case "boolean": return Ft;
|
|
2352
2363
|
case "text":
|
|
2353
|
-
case void 0: return
|
|
2364
|
+
case void 0: return It;
|
|
2354
2365
|
case "custom": return;
|
|
2355
2366
|
}
|
|
2356
|
-
},
|
|
2357
|
-
let t = (t) =>
|
|
2367
|
+
}, Rt = (e) => {
|
|
2368
|
+
let t = (t) => jt(e.accessor, t), n = e.sortFn ?? Lt(e.dataType), r = e.enableSorting ?? (e.dataType !== "custom" && n !== void 0), i = {
|
|
2358
2369
|
id: e.id,
|
|
2359
2370
|
accessorFn: t,
|
|
2360
2371
|
header: () => e.header,
|
|
@@ -2366,21 +2377,12 @@ var M = {
|
|
|
2366
2377
|
sortDescFirst: e.sortDescFirst
|
|
2367
2378
|
};
|
|
2368
2379
|
return n !== void 0 && (i.sortFn = n), i;
|
|
2369
|
-
},
|
|
2370
|
-
|
|
2371
|
-
30,
|
|
2372
|
-
50,
|
|
2373
|
-
-1
|
|
2374
|
-
], pageSizeDraft: W, onPageSizeDraftChange: te, pageSizeApplyMode: ne = "table", totalCount: re, onPageChange: ie, visibleColumnIds: ae, density: oe = "comfortable", renderBulkActions: se, renderExpandedRow: ce, expandedRowIds: G, onExpandedRowIdsChange: le, getRowExpansionLabel: ue, resultsAnnouncement: de, filterBar: K }) => {
|
|
2375
|
-
let [fe, pe] = g([]), [me, he] = g([]), [ge, _e] = g([]), [ve, ye] = g(0), [be, xe] = g(V === -1 ? -1 : [
|
|
2376
|
-
10,
|
|
2377
|
-
30,
|
|
2378
|
-
50
|
|
2379
|
-
].includes(V) ? V : 30), Se = c ?? fe, Ce = Se.map((e) => `${e.id}:${e.desc ? "desc" : "asc"}`).join("|"), we = V === -1, Te = we ? Math.max(1, (z === "server" ? Number(re) : i.length) || i.length || 1) : Number.isFinite(V) && V > 0 ? Math.floor(V) : 30, Ee = R && z === "server", q = m(() => {
|
|
2380
|
+
}, zt = ({ columns: e, data: i, tableOnMobile: a = !1, mobileView: o, breakpoint: s = "default", sorting: c, onSortingChange: l, renderMobileCard: u, getRowId: f, getRowClassName: p, getRowStyle: h, toolbarContent: _, totalCountVariant: v = "default", totalCountLabel: y = "Всего", caption: b, ariaLabel: S, loading: C = !1, error: w, emptyState: T = "Нет данных", stickyHeader: E = !1, maxHeight: D, className: O = "", onRowClick: k, selectable: A = !1, selectedRowIds: M, onSelectedRowIdsChange: ee, onRowDoubleClick: N, getRowSelectionLabel: P, selectAllRowsLabel: F = "Выбрать все строки на этой странице", resetSelectionLabel: I = "Сбросить выбор", openRowLabel: L = "Открыть строку", pagination: R = !1, paginationMode: z = "client", page: B = 1, pageSize: V = 30, onPageSizeChange: H, pageSizeOptions: U = Ct, pageSizeDraft: W, onPageSizeDraftChange: te, pageSizeApplyMode: ne = "table", totalCount: re, onPageChange: ie, visibleColumnIds: ae, density: oe = "comfortable", renderBulkActions: se, renderExpandedRow: ce, expandedRowIds: G, onExpandedRowIdsChange: le, getRowExpansionLabel: ue, resultsAnnouncement: de, filterBar: K }) => {
|
|
2381
|
+
let [fe, pe] = g([]), [me, he] = g([]), [ge, _e] = g([]), [ve, ye] = g(0), [be, xe] = g(() => wt(V, U)), Se = c ?? fe, Ce = Se.map((e) => `${e.id}:${e.desc ? "desc" : "asc"}`).join("|"), we = V === -1, Te = we ? Math.max(1, (z === "server" ? Number(re) : i.length) || i.length || 1) : Number.isFinite(V) && V > 0 ? Math.floor(V) : 30, Ee = R && z === "server", q = m(() => {
|
|
2380
2382
|
if (ae === void 0) return e;
|
|
2381
2383
|
let t = new Set(ae);
|
|
2382
2384
|
return e.filter((e) => t.has(e.id));
|
|
2383
|
-
}, [e, ae]), De = m(() => q.length === 0 ? "Должна быть видима хотя бы одна колонка" :
|
|
2385
|
+
}, [e, ae]), De = m(() => q.length === 0 ? "Должна быть видима хотя бы одна колонка" : At(q, i), [i, q]), Oe = m(() => q.map(Rt), [q]), ke = q.some((e) => Dt(e) !== void 0), J = x({
|
|
2384
2386
|
features: St,
|
|
2385
2387
|
columns: Oe,
|
|
2386
2388
|
data: i,
|
|
@@ -2399,7 +2401,7 @@ var M = {
|
|
|
2399
2401
|
]), Ie = M ?? me, Le = m(() => new Set(Ie), [Ie]), Re = G ?? ge, ze = m(() => new Set(Re), [Re]), Be = m(() => Fe.map((e) => e.id), [Fe]), Ve = Be.filter((e) => Le.has(e)).length, He = Be.length > 0 && Ve === Be.length, Ue = Ve > 0 && !He, We = m(() => q.filter((e) => e.enableSorting ?? e.dataType !== "custom").map((e) => ({
|
|
2400
2402
|
id: e.id,
|
|
2401
2403
|
label: typeof e.header == "string" ? e.header : e.id
|
|
2402
|
-
})), [q]), Ge = m(() =>
|
|
2404
|
+
})), [q]), Ge = m(() => kt(Pe, Me), [Me, Pe]), Ke = o === void 0 ? a : o === "table", qe = [
|
|
2403
2405
|
Q.root,
|
|
2404
2406
|
s === "wide" ? Q.wide : Q.default,
|
|
2405
2407
|
Ke ? Q.tableOnMobile : "",
|
|
@@ -2479,7 +2481,7 @@ var M = {
|
|
|
2479
2481
|
let t = new Set(Le);
|
|
2480
2482
|
t.has(e) ? t.delete(e) : t.add(e), ot(t);
|
|
2481
2483
|
}, ct = () => {
|
|
2482
|
-
let e =
|
|
2484
|
+
let e = Et(Le, Be, !He);
|
|
2483
2485
|
M === void 0 && he(e), ee?.(e);
|
|
2484
2486
|
}, lt = () => ot(/* @__PURE__ */ new Set()), ut = (e) => {
|
|
2485
2487
|
let t = new Set(ze);
|
|
@@ -2506,12 +2508,8 @@ var M = {
|
|
|
2506
2508
|
Me,
|
|
2507
2509
|
ve
|
|
2508
2510
|
]), d(() => {
|
|
2509
|
-
xe(V
|
|
2510
|
-
|
|
2511
|
-
30,
|
|
2512
|
-
50
|
|
2513
|
-
].includes(V) ? V : 30);
|
|
2514
|
-
}, [V]), /* @__PURE__ */ n("section", {
|
|
2511
|
+
xe(wt(V, U));
|
|
2512
|
+
}, [V, U]), /* @__PURE__ */ n("section", {
|
|
2515
2513
|
className: qe,
|
|
2516
2514
|
"aria-busy": C,
|
|
2517
2515
|
children: [
|
|
@@ -2544,7 +2542,7 @@ var M = {
|
|
|
2544
2542
|
children: [
|
|
2545
2543
|
/* @__PURE__ */ t("div", {
|
|
2546
2544
|
className: Q.filterFields,
|
|
2547
|
-
children: K.fields.map((e) => /* @__PURE__ */ t(
|
|
2545
|
+
children: K.fields.map((e) => /* @__PURE__ */ t(Tt, {
|
|
2548
2546
|
field: e,
|
|
2549
2547
|
value: K.draftValues[e.key],
|
|
2550
2548
|
disabled: !!(e.disabled || K.applying || C),
|
|
@@ -2618,7 +2616,7 @@ var M = {
|
|
|
2618
2616
|
(ke || A || !!ce) && /* @__PURE__ */ n("colgroup", { children: [
|
|
2619
2617
|
ce && /* @__PURE__ */ t("col", { className: Q.expansionColumn }),
|
|
2620
2618
|
A && /* @__PURE__ */ t("col", { className: Q.selectionColumn }),
|
|
2621
|
-
q.map((e) => /* @__PURE__ */ t("col", { style:
|
|
2619
|
+
q.map((e) => /* @__PURE__ */ t("col", { style: Dt(e) }, e.id))
|
|
2622
2620
|
] }),
|
|
2623
2621
|
/* @__PURE__ */ t("thead", {
|
|
2624
2622
|
className: E ? Q.sticky : "",
|
|
@@ -2664,8 +2662,8 @@ var M = {
|
|
|
2664
2662
|
"aria-sort": r === "asc" ? "ascending" : r === "desc" ? "descending" : "none",
|
|
2665
2663
|
className: q.find((t) => t.id === e.column.id)?.sticky ? Q.stickyColumn : void 0,
|
|
2666
2664
|
style: {
|
|
2667
|
-
...
|
|
2668
|
-
...
|
|
2665
|
+
...Dt(q.find((t) => t.id === e.column.id)),
|
|
2666
|
+
...Ot(q.find((t) => t.id === e.column.id))
|
|
2669
2667
|
},
|
|
2670
2668
|
children: /* @__PURE__ */ n("button", {
|
|
2671
2669
|
type: "button",
|
|
@@ -2749,8 +2747,8 @@ var M = {
|
|
|
2749
2747
|
e.getAllCells().map((e) => /* @__PURE__ */ t("td", {
|
|
2750
2748
|
className: q.find((t) => t.id === e.column.id)?.sticky ? Q.stickyColumn : void 0,
|
|
2751
2749
|
style: {
|
|
2752
|
-
...
|
|
2753
|
-
...
|
|
2750
|
+
...Dt(q.find((t) => t.id === e.column.id)),
|
|
2751
|
+
...Ot(q.find((t) => t.id === e.column.id))
|
|
2754
2752
|
},
|
|
2755
2753
|
children: /* @__PURE__ */ t(J.FlexRender, { cell: e })
|
|
2756
2754
|
}, e.id))
|
|
@@ -2856,7 +2854,7 @@ var M = {
|
|
|
2856
2854
|
})
|
|
2857
2855
|
]
|
|
2858
2856
|
}, e.id);
|
|
2859
|
-
let c = q.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), l = c.find((e) => e.mobile?.primary) ?? c.find((e) => e.mobile?.mobileVariant !== "actions"), d = (t) =>
|
|
2857
|
+
let c = q.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), l = c.find((e) => e.mobile?.primary) ?? c.find((e) => e.mobile?.mobileVariant !== "actions"), d = (t) => jt(t.accessor, e.original), f = (t) => t.mobile?.renderMobile?.(e.original, d(t)) ?? t.cell?.(e.original, d(t)) ?? String(d(t) ?? "");
|
|
2860
2858
|
return /* @__PURE__ */ n("article", {
|
|
2861
2859
|
role: "listitem",
|
|
2862
2860
|
className: [
|
|
@@ -2966,17 +2964,17 @@ var M = {
|
|
|
2966
2964
|
})
|
|
2967
2965
|
]
|
|
2968
2966
|
});
|
|
2969
|
-
},
|
|
2967
|
+
}, Bt = (e, t) => {
|
|
2970
2968
|
let n = t.trim().toLocaleLowerCase();
|
|
2971
2969
|
return n ? e.filter((e) => e.label.toLocaleLowerCase().includes(n) || e.value.toLocaleLowerCase().includes(n)) : e;
|
|
2972
|
-
},
|
|
2970
|
+
}, Vt = (e, t, n) => {
|
|
2973
2971
|
if (!e.length) return -1;
|
|
2974
2972
|
for (let r = 0; r < e.length; r += 1) {
|
|
2975
2973
|
let i = (t + r * n + e.length) % e.length;
|
|
2976
2974
|
if (!e[i]?.disabled) return i;
|
|
2977
2975
|
}
|
|
2978
2976
|
return -1;
|
|
2979
|
-
},
|
|
2977
|
+
}, Ht = {
|
|
2980
2978
|
wrapper: "_wrapper_1os84_1",
|
|
2981
2979
|
control: "_control_1os84_17",
|
|
2982
2980
|
inputHost: "_inputHost_1os84_25",
|
|
@@ -2995,23 +2993,23 @@ var M = {
|
|
|
2995
2993
|
active: "_active_1os84_321",
|
|
2996
2994
|
actionOption: "_actionOption_1os84_341",
|
|
2997
2995
|
visuallyHidden: "_visuallyHidden_1os84_375"
|
|
2998
|
-
},
|
|
2996
|
+
}, Ut = 8, Wt = 6, Gt = 5, Kt = 10, qt = {
|
|
2999
2997
|
sm: 30,
|
|
3000
2998
|
md: 40,
|
|
3001
2999
|
lg: 50
|
|
3002
|
-
},
|
|
3000
|
+
}, Jt = ({ options: e, value: r, onChange: i, placeholder: a = "Начните вводить", noResultsText: o = "Ничего не найдено", disabled: s = !1, readOnly: c = !1, stringWhileDisabled: u = !1, label: v, error: y, hint: b, size: x = "md", required: S = !1, className: C = "", name: w, id: T, needMark: E = !0 }) => {
|
|
3003
3001
|
let D = f(), O = T ?? `ds-search-dropdown-${w ?? D}`, k = `${O}-listbox`, A = `${O}-status`, j = b ? `${O}-hint` : void 0, M = y ? `${O}-error` : void 0, P = [
|
|
3004
3002
|
A,
|
|
3005
3003
|
j,
|
|
3006
3004
|
M
|
|
3007
|
-
].filter(Boolean).join(" "), F = h(null), I = h(null), L = h([]), [R, z] = g(!1), [B, V] = g(""), [H, U] = g(-1), [W, te] = g(null), ne = m(() => e.find((e) => e.value === r), [e, r]), re = m(() =>
|
|
3005
|
+
].filter(Boolean).join(" "), F = h(null), I = h(null), L = h([]), [R, z] = g(!1), [B, V] = g(""), [H, U] = g(-1), [W, te] = g(null), ne = m(() => e.find((e) => e.value === r), [e, r]), re = m(() => Bt(e, B), [e, B]), ie = s && u, ae = H >= 0 ? re[H] : void 0;
|
|
3008
3006
|
d(() => V(ne?.label ?? ""), [ne?.label, r]);
|
|
3009
|
-
let oe = l(() => F.current?.querySelector("input") ?? null, []), se = l((e, t) =>
|
|
3007
|
+
let oe = l(() => F.current?.querySelector("input") ?? null, []), se = l((e, t) => Vt(re, e, t), [re]), ce = l((e) => {
|
|
3010
3008
|
U(e), !(e < 0) && requestAnimationFrame(() => L.current[e]?.scrollIntoView({ block: "nearest" }));
|
|
3011
3009
|
}, []), G = l(() => {
|
|
3012
3010
|
let e = oe();
|
|
3013
3011
|
if (!e) return;
|
|
3014
|
-
let t = e.getBoundingClientRect(), n = Math.max(1, Math.min(re.length,
|
|
3012
|
+
let t = e.getBoundingClientRect(), n = Math.max(1, Math.min(re.length, Gt)) * qt[x] + Kt, r = window.innerHeight - t.bottom - Ut, i = t.top - Ut, a = r < n && i > r, o = a ? i : r, s = Math.max(qt[x] + Kt, Math.min(n, o)), c = window.innerWidth - t.width - Ut, l = Math.max(Ut, Math.min(t.left, c)), u = a ? Math.max(Ut, t.top - s - Wt) : t.bottom + Wt;
|
|
3015
3013
|
te({
|
|
3016
3014
|
top: u,
|
|
3017
3015
|
left: l,
|
|
@@ -3046,7 +3044,7 @@ var M = {
|
|
|
3046
3044
|
}, de = R ? /* @__PURE__ */ t("ul", {
|
|
3047
3045
|
ref: I,
|
|
3048
3046
|
id: k,
|
|
3049
|
-
className: `${
|
|
3047
|
+
className: `${Ht.menu} ${re.length === 0 ? Ht.menuEmpty : ""}`,
|
|
3050
3048
|
role: "listbox",
|
|
3051
3049
|
"aria-label": v,
|
|
3052
3050
|
style: W ? {
|
|
@@ -3061,7 +3059,7 @@ var M = {
|
|
|
3061
3059
|
maxHeight: 0
|
|
3062
3060
|
},
|
|
3063
3061
|
children: re.length === 0 ? /* @__PURE__ */ t("li", {
|
|
3064
|
-
className: `${
|
|
3062
|
+
className: `${Ht.empty} ${Ht[x]}`,
|
|
3065
3063
|
children: o
|
|
3066
3064
|
}) : re.map((e, i) => {
|
|
3067
3065
|
let a = e.value === r, o = i === H;
|
|
@@ -3080,11 +3078,11 @@ var M = {
|
|
|
3080
3078
|
"aria-selected": a,
|
|
3081
3079
|
"data-option-variant": e.variant ?? "default",
|
|
3082
3080
|
className: [
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
e.variant === "action" ?
|
|
3086
|
-
a ?
|
|
3087
|
-
o ?
|
|
3081
|
+
Ht.option,
|
|
3082
|
+
Ht[x],
|
|
3083
|
+
e.variant === "action" ? Ht.actionOption : "",
|
|
3084
|
+
a ? Ht.selected : "",
|
|
3085
|
+
o ? Ht.active : ""
|
|
3088
3086
|
].filter(Boolean).join(" "),
|
|
3089
3087
|
onPointerMove: () => {
|
|
3090
3088
|
e.disabled || U(i);
|
|
@@ -3102,8 +3100,8 @@ var M = {
|
|
|
3102
3100
|
return /* @__PURE__ */ n("div", {
|
|
3103
3101
|
ref: F,
|
|
3104
3102
|
className: [
|
|
3105
|
-
|
|
3106
|
-
y ?
|
|
3103
|
+
Ht.wrapper,
|
|
3104
|
+
y ? Ht.errorState : "",
|
|
3107
3105
|
C
|
|
3108
3106
|
].filter(Boolean).join(" "),
|
|
3109
3107
|
children: [
|
|
@@ -3114,10 +3112,10 @@ var M = {
|
|
|
3114
3112
|
children: v
|
|
3115
3113
|
}),
|
|
3116
3114
|
ie ? /* @__PURE__ */ t("div", {
|
|
3117
|
-
className: `${
|
|
3115
|
+
className: `${Ht.disabledText} ${Ht[x]}`,
|
|
3118
3116
|
children: ne?.label ?? a
|
|
3119
3117
|
}) : /* @__PURE__ */ n("div", {
|
|
3120
|
-
className:
|
|
3118
|
+
className: Ht.control,
|
|
3121
3119
|
children: [/* @__PURE__ */ t(mt, {
|
|
3122
3120
|
id: O,
|
|
3123
3121
|
name: w,
|
|
@@ -3129,11 +3127,11 @@ var M = {
|
|
|
3129
3127
|
size: x,
|
|
3130
3128
|
clearable: !1,
|
|
3131
3129
|
autoComplete: "off",
|
|
3132
|
-
className: `${
|
|
3130
|
+
className: `${Ht.inputHost} ${Ht[x]}`,
|
|
3133
3131
|
onFocus: le,
|
|
3134
3132
|
onChange: (t) => {
|
|
3135
|
-
let n = String(t), r =
|
|
3136
|
-
V(n), z(!0), U(
|
|
3133
|
+
let n = String(t), r = Bt(e, n);
|
|
3134
|
+
V(n), z(!0), U(Vt(r, 0, 1));
|
|
3137
3135
|
},
|
|
3138
3136
|
role: "combobox",
|
|
3139
3137
|
"aria-autocomplete": "list",
|
|
@@ -3158,7 +3156,7 @@ var M = {
|
|
|
3158
3156
|
}
|
|
3159
3157
|
}
|
|
3160
3158
|
}), /* @__PURE__ */ t("span", {
|
|
3161
|
-
className: `${
|
|
3159
|
+
className: `${Ht.chevron} ${R ? Ht.chevronOpen : ""}`,
|
|
3162
3160
|
"aria-hidden": "true",
|
|
3163
3161
|
children: /* @__PURE__ */ t(Y, {
|
|
3164
3162
|
name: "IconChevron",
|
|
@@ -3170,7 +3168,7 @@ var M = {
|
|
|
3170
3168
|
R && typeof document < "u" && _(de, document.body),
|
|
3171
3169
|
/* @__PURE__ */ n("span", {
|
|
3172
3170
|
id: A,
|
|
3173
|
-
className:
|
|
3171
|
+
className: Ht.visuallyHidden,
|
|
3174
3172
|
"aria-live": "polite",
|
|
3175
3173
|
children: ["Найдено вариантов: ", re.length]
|
|
3176
3174
|
}),
|
|
@@ -3185,25 +3183,25 @@ var M = {
|
|
|
3185
3183
|
})
|
|
3186
3184
|
]
|
|
3187
3185
|
});
|
|
3188
|
-
},
|
|
3186
|
+
}, Yt = {
|
|
3189
3187
|
root: "_root_11adi_1",
|
|
3190
3188
|
header: "_header_11adi_21",
|
|
3191
3189
|
title: "_title_11adi_41",
|
|
3192
3190
|
dismiss: "_dismiss_11adi_55",
|
|
3193
3191
|
content: "_content_11adi_65"
|
|
3194
|
-
},
|
|
3192
|
+
}, Xt = ({ title: e, children: r, dismissible: i = !1, onDismiss: a, dismissLabel: o = "Закрыть информационный блок", headingAs: s = "h3", className: c = "" }) => {
|
|
3195
3193
|
let l = `ds-info-block-${f()}`;
|
|
3196
3194
|
return /* @__PURE__ */ n("section", {
|
|
3197
|
-
className: `${
|
|
3195
|
+
className: `${Yt.root} ${c}`,
|
|
3198
3196
|
"aria-labelledby": l,
|
|
3199
3197
|
children: [/* @__PURE__ */ n("header", {
|
|
3200
|
-
className:
|
|
3198
|
+
className: Yt.header,
|
|
3201
3199
|
children: [/* @__PURE__ */ t(s, {
|
|
3202
3200
|
id: l,
|
|
3203
|
-
className:
|
|
3201
|
+
className: Yt.title,
|
|
3204
3202
|
children: e
|
|
3205
3203
|
}), i && /* @__PURE__ */ t(j, {
|
|
3206
|
-
className:
|
|
3204
|
+
className: Yt.dismiss,
|
|
3207
3205
|
variant: "empty",
|
|
3208
3206
|
onClick: a,
|
|
3209
3207
|
"aria-label": o,
|
|
@@ -3214,15 +3212,15 @@ var M = {
|
|
|
3214
3212
|
})
|
|
3215
3213
|
})]
|
|
3216
3214
|
}), /* @__PURE__ */ t("div", {
|
|
3217
|
-
className:
|
|
3215
|
+
className: Yt.content,
|
|
3218
3216
|
children: r
|
|
3219
3217
|
})]
|
|
3220
3218
|
});
|
|
3221
|
-
},
|
|
3219
|
+
}, Zt = {
|
|
3222
3220
|
root: "_root_1ecm3_1",
|
|
3223
3221
|
grid: "_grid_1ecm3_13",
|
|
3224
3222
|
actions: "_actions_1ecm3_27"
|
|
3225
|
-
},
|
|
3223
|
+
}, Qt = ({ filters: e, values: r, onChange: i, onApply: a, onReset: o, applyMode: s = "instant", loading: c = !1, disabled: l = !1, className: u = "" }) => {
|
|
3226
3224
|
let d = (e, t) => {
|
|
3227
3225
|
let n = {
|
|
3228
3226
|
...r,
|
|
@@ -3231,11 +3229,11 @@ var M = {
|
|
|
3231
3229
|
i?.(n, e), s === "instant" && a?.(n);
|
|
3232
3230
|
};
|
|
3233
3231
|
return /* @__PURE__ */ n("section", {
|
|
3234
|
-
className: `${
|
|
3232
|
+
className: `${Zt.root} ${u}`,
|
|
3235
3233
|
"aria-label": "Фильтры",
|
|
3236
3234
|
"aria-busy": c,
|
|
3237
3235
|
children: [/* @__PURE__ */ t("div", {
|
|
3238
|
-
className:
|
|
3236
|
+
className: Zt.grid,
|
|
3239
3237
|
children: e.filter((e) => !e.hidden).map((e) => {
|
|
3240
3238
|
let n = l || c || e.disabled, i = r[e.id];
|
|
3241
3239
|
if (e.type === "input") {
|
|
@@ -3303,7 +3301,7 @@ var M = {
|
|
|
3303
3301
|
}, e.id);
|
|
3304
3302
|
})
|
|
3305
3303
|
}), (o || s === "manual") && /* @__PURE__ */ n("div", {
|
|
3306
|
-
className:
|
|
3304
|
+
className: Zt.actions,
|
|
3307
3305
|
children: [o && /* @__PURE__ */ t(j, {
|
|
3308
3306
|
variant: "destructiveOutline",
|
|
3309
3307
|
disabled: l || c,
|
|
@@ -3317,7 +3315,7 @@ var M = {
|
|
|
3317
3315
|
})]
|
|
3318
3316
|
})]
|
|
3319
3317
|
});
|
|
3320
|
-
},
|
|
3318
|
+
}, $t = {
|
|
3321
3319
|
grid: "_grid_1q540_1",
|
|
3322
3320
|
comfortable: "_comfortable_1q540_11",
|
|
3323
3321
|
compact: "_compact_1q540_19",
|
|
@@ -3334,23 +3332,23 @@ var M = {
|
|
|
3334
3332
|
summary: "_summary_1q540_101",
|
|
3335
3333
|
summaryTitle: "_summaryTitle_1q540_137",
|
|
3336
3334
|
summaryList: "_summaryList_1q540_145"
|
|
3337
|
-
},
|
|
3335
|
+
}, en = ({ columns: e = 2, density: n = "comfortable", className: r = "", ...i }) => /* @__PURE__ */ t("div", {
|
|
3338
3336
|
...i,
|
|
3339
|
-
className: `${
|
|
3340
|
-
}),
|
|
3337
|
+
className: `${$t.grid} ${$t[`columns${e}`]} ${$t[n]} ${r}`
|
|
3338
|
+
}), tn = ({ span: e = 1, className: n = "", ...r }) => /* @__PURE__ */ t("div", {
|
|
3341
3339
|
...r,
|
|
3342
|
-
className: `${
|
|
3343
|
-
}),
|
|
3340
|
+
className: `${$t.item} ${$t[`span${e}`]} ${n}`
|
|
3341
|
+
}), nn = ({ title: e = "Проверьте заполнение формы", items: r, focusField: i, className: a = "", ...o }) => r.length === 0 ? null : /* @__PURE__ */ n("div", {
|
|
3344
3342
|
...o,
|
|
3345
|
-
className: `${
|
|
3343
|
+
className: `${$t.summary} ${a}`,
|
|
3346
3344
|
role: "alert",
|
|
3347
3345
|
"aria-atomic": "true",
|
|
3348
3346
|
tabIndex: -1,
|
|
3349
3347
|
children: [/* @__PURE__ */ t("strong", {
|
|
3350
|
-
className:
|
|
3348
|
+
className: $t.summaryTitle,
|
|
3351
3349
|
children: e
|
|
3352
3350
|
}), /* @__PURE__ */ t("ul", {
|
|
3353
|
-
className:
|
|
3351
|
+
className: $t.summaryList,
|
|
3354
3352
|
children: r.map((e) => /* @__PURE__ */ t("li", { children: e.fieldId ? /* @__PURE__ */ t("a", {
|
|
3355
3353
|
href: `#${e.fieldId}`,
|
|
3356
3354
|
onClick: (t) => {
|
|
@@ -3359,7 +3357,7 @@ var M = {
|
|
|
3359
3357
|
children: e.message
|
|
3360
3358
|
}) : e.message }, e.id))
|
|
3361
3359
|
})]
|
|
3362
|
-
}),
|
|
3360
|
+
}), rn = {
|
|
3363
3361
|
wrapper: "_wrapper_i20hz_1",
|
|
3364
3362
|
dropzone: "_dropzone_i20hz_15",
|
|
3365
3363
|
dragActive: "_dragActive_i20hz_45",
|
|
@@ -3372,12 +3370,12 @@ var M = {
|
|
|
3372
3370
|
file: "_file_i20hz_133",
|
|
3373
3371
|
fileName: "_fileName_i20hz_175",
|
|
3374
3372
|
fileSize: "_fileSize_i20hz_187"
|
|
3375
|
-
},
|
|
3373
|
+
}, an = (e) => `${e.name}:${e.size}:${e.lastModified}`, on = (e) => e < 1024 ? `${e} Б` : e < 1048576 ? `${(e / 1024).toFixed(1)} КБ` : `${(e / 1024 / 1024).toFixed(1)} МБ`, sn = (e, t) => !t || t.split(",").map((e) => e.trim().toLowerCase()).some((t) => t.startsWith(".") ? e.name.toLowerCase().endsWith(t) : t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : e.type.toLowerCase() === t), cn = ({ value: r, onChange: i, multiple: a = !1, accept: o, maxSize: s, maxFiles: c, label: l, hint: u, error: d, required: p = !1, disabled: m = !1, readOnly: _ = !1, name: v, id: y, className: b = "", dropLabel: x = "Перетащите файлы в эту область", browseLabel: S = "Выбрать файлы", addMoreLabel: C = "Добавить ещё", onReject: w }) => {
|
|
3376
3374
|
let T = f(), E = y ?? `ds-file-input-${v ?? T}`, D = h(null), O = h(0), [k, A] = g(!1), M = u ? `${E}-hint` : void 0, P = d ? `${E}-error` : void 0, F = [M, P].filter(Boolean).join(" ") || void 0, I = !m && !_, L = (e) => {
|
|
3377
|
-
let t = [], n = new Set(r.map(
|
|
3375
|
+
let t = [], n = new Set(r.map(an)), l = e.filter((e) => sn(e, o) ? s !== void 0 && e.size > s ? (t.push({
|
|
3378
3376
|
file: e,
|
|
3379
3377
|
reason: "maxSize"
|
|
3380
|
-
}), !1) : !n.has(
|
|
3378
|
+
}), !1) : !n.has(an(e)) && (n.add(an(e)), !0) : (t.push({
|
|
3381
3379
|
file: e,
|
|
3382
3380
|
reason: "accept"
|
|
3383
3381
|
}), !1)), u = a ? c : 1, d = a ? [...r, ...l] : l.slice(-1);
|
|
@@ -3387,7 +3385,7 @@ var M = {
|
|
|
3387
3385
|
})), d = d.slice(0, u)), t.length && w?.(t), l.length && i?.(d), D.current && (D.current.value = "");
|
|
3388
3386
|
};
|
|
3389
3387
|
return /* @__PURE__ */ n("div", {
|
|
3390
|
-
className: `${
|
|
3388
|
+
className: `${rn.wrapper} ${b}`,
|
|
3391
3389
|
children: [
|
|
3392
3390
|
l && /* @__PURE__ */ t(ee, {
|
|
3393
3391
|
htmlFor: E,
|
|
@@ -3396,7 +3394,7 @@ var M = {
|
|
|
3396
3394
|
children: l
|
|
3397
3395
|
}),
|
|
3398
3396
|
/* @__PURE__ */ n("div", {
|
|
3399
|
-
className: `${
|
|
3397
|
+
className: `${rn.dropzone} ${k ? rn.dragActive : ""} ${m ? rn.disabled : ""} ${d ? rn.error : ""}`,
|
|
3400
3398
|
onDragEnter: (e) => {
|
|
3401
3399
|
e.preventDefault(), I && ++O.current === 1 && A(!0);
|
|
3402
3400
|
},
|
|
@@ -3411,7 +3409,7 @@ var M = {
|
|
|
3411
3409
|
ref: D,
|
|
3412
3410
|
id: E,
|
|
3413
3411
|
name: v,
|
|
3414
|
-
className:
|
|
3412
|
+
className: rn.nativeInput,
|
|
3415
3413
|
type: "file",
|
|
3416
3414
|
multiple: a,
|
|
3417
3415
|
accept: o,
|
|
@@ -3422,19 +3420,19 @@ var M = {
|
|
|
3422
3420
|
onChange: (e) => L(Array.from(e.target.files ?? []))
|
|
3423
3421
|
}), r.length ? /* @__PURE__ */ n(e, { children: [
|
|
3424
3422
|
/* @__PURE__ */ t("ul", {
|
|
3425
|
-
className:
|
|
3423
|
+
className: rn.files,
|
|
3426
3424
|
"aria-live": "polite",
|
|
3427
3425
|
children: r.map((e, a) => /* @__PURE__ */ n("li", {
|
|
3428
|
-
className:
|
|
3426
|
+
className: rn.file,
|
|
3429
3427
|
children: [
|
|
3430
3428
|
/* @__PURE__ */ t("span", {
|
|
3431
|
-
className:
|
|
3429
|
+
className: rn.fileName,
|
|
3432
3430
|
title: e.name,
|
|
3433
3431
|
children: e.name
|
|
3434
3432
|
}),
|
|
3435
3433
|
/* @__PURE__ */ t("span", {
|
|
3436
|
-
className:
|
|
3437
|
-
children:
|
|
3434
|
+
className: rn.fileSize,
|
|
3435
|
+
children: on(e.size)
|
|
3438
3436
|
}),
|
|
3439
3437
|
I && /* @__PURE__ */ t(j, {
|
|
3440
3438
|
variant: "empty",
|
|
@@ -3448,25 +3446,25 @@ var M = {
|
|
|
3448
3446
|
})
|
|
3449
3447
|
})
|
|
3450
3448
|
]
|
|
3451
|
-
},
|
|
3449
|
+
}, an(e)))
|
|
3452
3450
|
}),
|
|
3453
3451
|
I && (a || r.length === 0) && /* @__PURE__ */ t(j, {
|
|
3454
|
-
className:
|
|
3452
|
+
className: rn.browseButton,
|
|
3455
3453
|
size: "sm",
|
|
3456
3454
|
onClick: () => D.current?.click(),
|
|
3457
3455
|
children: C
|
|
3458
3456
|
}),
|
|
3459
3457
|
I && !a && /* @__PURE__ */ t(j, {
|
|
3460
|
-
className:
|
|
3458
|
+
className: rn.browseButton,
|
|
3461
3459
|
size: "sm",
|
|
3462
3460
|
onClick: () => D.current?.click(),
|
|
3463
3461
|
children: S
|
|
3464
3462
|
})
|
|
3465
3463
|
] }) : /* @__PURE__ */ n("div", {
|
|
3466
|
-
className:
|
|
3464
|
+
className: rn.empty,
|
|
3467
3465
|
children: [
|
|
3468
3466
|
/* @__PURE__ */ t("span", {
|
|
3469
|
-
className:
|
|
3467
|
+
className: rn.uploadIcon,
|
|
3470
3468
|
"aria-hidden": "true",
|
|
3471
3469
|
children: /* @__PURE__ */ t(Y, {
|
|
3472
3470
|
name: "IconUpload",
|
|
@@ -3494,7 +3492,7 @@ var M = {
|
|
|
3494
3492
|
})
|
|
3495
3493
|
]
|
|
3496
3494
|
});
|
|
3497
|
-
},
|
|
3495
|
+
}, ln = ({ children: e, containerId: t = "overlay-root" }) => {
|
|
3498
3496
|
let [n, r] = g(null);
|
|
3499
3497
|
return d(() => {
|
|
3500
3498
|
let e = document.getElementById(t);
|
|
@@ -3507,7 +3505,7 @@ var M = {
|
|
|
3507
3505
|
n.childElementCount === 0 && n.parentElement && n.remove();
|
|
3508
3506
|
};
|
|
3509
3507
|
}, [t]), n ? _(e, n) : null;
|
|
3510
|
-
},
|
|
3508
|
+
}, un = ({ anchorRef: e, children: n, matchAnchorWidth: r = !1, offset: i = 4, className: a }) => {
|
|
3511
3509
|
let o = h(null), [s, c] = g({
|
|
3512
3510
|
position: "fixed",
|
|
3513
3511
|
visibility: "hidden",
|
|
@@ -3531,13 +3529,13 @@ var M = {
|
|
|
3531
3529
|
]);
|
|
3532
3530
|
return p(() => (u(), window.addEventListener("resize", u), window.addEventListener("scroll", u, !0), () => {
|
|
3533
3531
|
window.removeEventListener("resize", u), window.removeEventListener("scroll", u, !0);
|
|
3534
|
-
}), [u]), /* @__PURE__ */ t(
|
|
3532
|
+
}), [u]), /* @__PURE__ */ t(ln, { children: /* @__PURE__ */ t("div", {
|
|
3535
3533
|
ref: o,
|
|
3536
3534
|
className: a,
|
|
3537
3535
|
style: s,
|
|
3538
3536
|
children: n
|
|
3539
3537
|
}) });
|
|
3540
|
-
},
|
|
3538
|
+
}, dn = {
|
|
3541
3539
|
wrapper: "_wrapper_x2gki_1",
|
|
3542
3540
|
control: "_control_x2gki_15",
|
|
3543
3541
|
textarea: "_textarea_x2gki_25",
|
|
@@ -3551,12 +3549,12 @@ var M = {
|
|
|
3551
3549
|
clearAction: "_clearAction_x2gki_171",
|
|
3552
3550
|
messages: "_messages_x2gki_251",
|
|
3553
3551
|
counter: "_counter_x2gki_265"
|
|
3554
|
-
},
|
|
3555
|
-
function
|
|
3552
|
+
}, fn = 2;
|
|
3553
|
+
function pn(e) {
|
|
3556
3554
|
let t = window.getComputedStyle(e), n = Number.parseFloat(t.lineHeight);
|
|
3557
3555
|
return Number.isFinite(n) ? n : Number.parseFloat(t.fontSize) * 1.4;
|
|
3558
3556
|
}
|
|
3559
|
-
function
|
|
3557
|
+
function mn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, readOnly: o = !1, stringWhileDisabled: s = !1, label: c, error: u, hint: p, className: m = "", name: g, id: _, size: v = "md", clearable: y = !1, required: b = !1, maxLength: x, showCount: S = !1, minRows: C = fn, maxRows: w, autoResize: T = !0, ...E }) {
|
|
3560
3558
|
let D = f(), O = _ ?? `ds-textarea-${g ?? D}`, k = h(null), A = p ? `${O}-hint` : void 0, j = u ? `${O}-error` : void 0, M = S && x ? `${O}-count` : void 0, P = [
|
|
3561
3559
|
A,
|
|
3562
3560
|
j,
|
|
@@ -3564,7 +3562,7 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3564
3562
|
].filter(Boolean).join(" ") || void 0, F = Math.max(1, C), I = w === void 0 ? void 0 : Math.max(F, w), L = l(() => {
|
|
3565
3563
|
let e = k.current;
|
|
3566
3564
|
if (!e || !T) return;
|
|
3567
|
-
let t = window.getComputedStyle(e), n =
|
|
3565
|
+
let t = window.getComputedStyle(e), n = pn(e), r = Number.parseFloat(t.paddingTop) + Number.parseFloat(t.paddingBottom) + Number.parseFloat(t.borderTopWidth) + Number.parseFloat(t.borderBottomWidth), i = n * F + r, a = I === void 0 ? Infinity : n * I + r;
|
|
3568
3566
|
e.style.height = "auto";
|
|
3569
3567
|
let o = Math.min(Math.max(e.scrollHeight, i), a);
|
|
3570
3568
|
e.style.height = `${o}px`, e.style.overflowY = e.scrollHeight > a ? "auto" : "hidden";
|
|
@@ -3596,7 +3594,7 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3596
3594
|
e && ((Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus(), L());
|
|
3597
3595
|
}, B = { "--ds-textarea-min-rows": F };
|
|
3598
3596
|
return /* @__PURE__ */ n("div", {
|
|
3599
|
-
className: `${
|
|
3597
|
+
className: `${dn.wrapper} ${m}`,
|
|
3600
3598
|
children: [
|
|
3601
3599
|
c && /* @__PURE__ */ t(ee, {
|
|
3602
3600
|
htmlFor: O,
|
|
@@ -3606,12 +3604,12 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3606
3604
|
}),
|
|
3607
3605
|
a && s ? /* @__PURE__ */ t("div", {
|
|
3608
3606
|
id: O,
|
|
3609
|
-
className: `${
|
|
3607
|
+
className: `${dn.disabledText} ${dn[v]}`,
|
|
3610
3608
|
style: B,
|
|
3611
3609
|
"aria-describedby": P,
|
|
3612
3610
|
children: e || i
|
|
3613
3611
|
}) : /* @__PURE__ */ n("div", {
|
|
3614
|
-
className:
|
|
3612
|
+
className: dn.control,
|
|
3615
3613
|
children: [/* @__PURE__ */ t("textarea", {
|
|
3616
3614
|
ref: k,
|
|
3617
3615
|
id: O,
|
|
@@ -3626,12 +3624,12 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3626
3624
|
style: B,
|
|
3627
3625
|
"aria-invalid": !!u,
|
|
3628
3626
|
"aria-describedby": P,
|
|
3629
|
-
className: `${
|
|
3627
|
+
className: `${dn.textarea} ${dn[v]} ${T ? dn.autoResize : dn.manualResize} ${u ? dn.textareaError : ""}`,
|
|
3630
3628
|
onChange: R,
|
|
3631
3629
|
...E
|
|
3632
3630
|
}), y && e && !a && !o && /* @__PURE__ */ t("button", {
|
|
3633
3631
|
type: "button",
|
|
3634
|
-
className:
|
|
3632
|
+
className: dn.clearAction,
|
|
3635
3633
|
"aria-label": "Очистить поле",
|
|
3636
3634
|
onClick: z,
|
|
3637
3635
|
children: /* @__PURE__ */ t(Y, {
|
|
@@ -3642,7 +3640,7 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3642
3640
|
})]
|
|
3643
3641
|
}),
|
|
3644
3642
|
(p || u || M) && /* @__PURE__ */ n("div", {
|
|
3645
|
-
className:
|
|
3643
|
+
className: dn.messages,
|
|
3646
3644
|
children: [
|
|
3647
3645
|
p && !u && /* @__PURE__ */ t(N, {
|
|
3648
3646
|
id: A,
|
|
@@ -3655,7 +3653,7 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3655
3653
|
}),
|
|
3656
3654
|
M && /* @__PURE__ */ n("span", {
|
|
3657
3655
|
id: M,
|
|
3658
|
-
className:
|
|
3656
|
+
className: dn.counter,
|
|
3659
3657
|
children: [
|
|
3660
3658
|
e.length,
|
|
3661
3659
|
" / ",
|
|
@@ -3669,11 +3667,11 @@ function fn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3669
3667
|
}
|
|
3670
3668
|
//#endregion
|
|
3671
3669
|
//#region src/components/DSModal/modal.store.ts
|
|
3672
|
-
var
|
|
3670
|
+
var hn = 0, gn = S((e, t) => ({
|
|
3673
3671
|
modals: [],
|
|
3674
3672
|
openModal: (t, n = {}, r = {}) => {
|
|
3675
|
-
|
|
3676
|
-
let i = `ds-modal-${
|
|
3673
|
+
hn += 1;
|
|
3674
|
+
let i = `ds-modal-${hn}`;
|
|
3677
3675
|
return e((e) => ({ modals: [...e.modals, {
|
|
3678
3676
|
id: i,
|
|
3679
3677
|
name: t,
|
|
@@ -3697,10 +3695,10 @@ var pn = 0, mn = S((e, t) => ({
|
|
|
3697
3695
|
let n = t().modals;
|
|
3698
3696
|
n.length && (e({ modals: [] }), n.forEach((e) => e.onClose?.()));
|
|
3699
3697
|
}
|
|
3700
|
-
})),
|
|
3701
|
-
|
|
3702
|
-
},
|
|
3703
|
-
function
|
|
3698
|
+
})), _n = () => {
|
|
3699
|
+
gn.getState().closeAllModals(), hn = 0;
|
|
3700
|
+
}, vn = 8, yn = 96, bn = .55;
|
|
3701
|
+
function xn(e, t, n) {
|
|
3704
3702
|
return {
|
|
3705
3703
|
startX: e,
|
|
3706
3704
|
startY: t,
|
|
@@ -3708,16 +3706,16 @@ function yn(e, t, n) {
|
|
|
3708
3706
|
intent: "pending"
|
|
3709
3707
|
};
|
|
3710
3708
|
}
|
|
3711
|
-
function
|
|
3709
|
+
function Sn(e, t, n) {
|
|
3712
3710
|
let r = t - e.startX, i = n - e.startY;
|
|
3713
|
-
return e.intent === "pending" && Math.max(Math.abs(r), Math.abs(i)) >=
|
|
3711
|
+
return e.intent === "pending" && Math.max(Math.abs(r), Math.abs(i)) >= vn && (e.intent = Math.abs(i) > Math.abs(r) ? "vertical" : "horizontal"), e.intent === "vertical" ? Math.max(0, i) : 0;
|
|
3714
3712
|
}
|
|
3715
|
-
function
|
|
3713
|
+
function Cn(e, t, n) {
|
|
3716
3714
|
if (e.intent !== "vertical") return !1;
|
|
3717
3715
|
let r = Math.max(0, t - e.startY), i = Math.max(1, n - e.startTime);
|
|
3718
|
-
return r >=
|
|
3716
|
+
return r >= yn || r >= 32 && r / i >= bn;
|
|
3719
3717
|
}
|
|
3720
|
-
var
|
|
3718
|
+
var wn = {
|
|
3721
3719
|
layer: "_layer_w9isk_1",
|
|
3722
3720
|
backdrop: "_backdrop_w9isk_15",
|
|
3723
3721
|
"backdrop-enter": "_backdrop-enter_w9isk_1",
|
|
@@ -3730,10 +3728,10 @@ var Sn = {
|
|
|
3730
3728
|
close: "_close_w9isk_141",
|
|
3731
3729
|
dragHandle: "_dragHandle_w9isk_149",
|
|
3732
3730
|
"sheet-enter": "_sheet-enter_w9isk_1"
|
|
3733
|
-
},
|
|
3734
|
-
function
|
|
3731
|
+
}, Tn = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", En = a({});
|
|
3732
|
+
function Dn(e) {
|
|
3735
3733
|
if (e.key !== "Tab") return;
|
|
3736
|
-
let t = Array.from(e.currentTarget.querySelectorAll(
|
|
3734
|
+
let t = Array.from(e.currentTarget.querySelectorAll(Tn));
|
|
3737
3735
|
if (!t.length) {
|
|
3738
3736
|
e.preventDefault();
|
|
3739
3737
|
return;
|
|
@@ -3741,18 +3739,18 @@ function Tn(e) {
|
|
|
3741
3739
|
let n = t[0], r = t.at(-1);
|
|
3742
3740
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r?.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n?.focus());
|
|
3743
3741
|
}
|
|
3744
|
-
var
|
|
3745
|
-
let l = u(
|
|
3742
|
+
var On = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "Закрыть модальное окно", className: s = "", role: c = "dialog" }) => {
|
|
3743
|
+
let l = u(En), p = r ?? l.title, m = i ?? l.description, _ = f(), v = f(), y = h(null), b = h(null), x = h(null), [S, C] = g(0), [w, T] = g(!1), E = gn((e) => e.closeModal), D = l.requestClose ?? (() => E(a)), O = p != null, k = m != null;
|
|
3746
3744
|
d(() => {
|
|
3747
3745
|
let e = document.activeElement, t = y.current;
|
|
3748
|
-
return (t?.querySelector(
|
|
3746
|
+
return (t?.querySelector(Tn) ?? t)?.focus(), () => e?.focus();
|
|
3749
3747
|
}, []);
|
|
3750
3748
|
let A = (e) => {
|
|
3751
3749
|
e && x.current !== null && e.hasPointerCapture(x.current) && e.releasePointerCapture(x.current), b.current = null, x.current = null, T(!1), C(0);
|
|
3752
3750
|
};
|
|
3753
3751
|
return /* @__PURE__ */ n("div", {
|
|
3754
3752
|
ref: y,
|
|
3755
|
-
className: `${
|
|
3753
|
+
className: `${wn.panel} ${s}`,
|
|
3756
3754
|
"data-closing": l.closing || void 0,
|
|
3757
3755
|
"data-dragging": w || void 0,
|
|
3758
3756
|
style: { "--ds-modal-drag-offset": `${S}px` },
|
|
@@ -3761,36 +3759,36 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3761
3759
|
"aria-labelledby": O ? _ : void 0,
|
|
3762
3760
|
"aria-describedby": k ? v : void 0,
|
|
3763
3761
|
tabIndex: -1,
|
|
3764
|
-
onKeyDown:
|
|
3762
|
+
onKeyDown: Dn,
|
|
3765
3763
|
children: [
|
|
3766
3764
|
/* @__PURE__ */ t("button", {
|
|
3767
3765
|
type: "button",
|
|
3768
|
-
className:
|
|
3766
|
+
className: wn.dragHandle,
|
|
3769
3767
|
"aria-label": "Потяните вниз, чтобы закрыть модальное окно",
|
|
3770
3768
|
onPointerDown: (e) => {
|
|
3771
|
-
(e.pointerType !== "mouse" || e.button === 0) && (x.current = e.pointerId, b.current =
|
|
3769
|
+
(e.pointerType !== "mouse" || e.button === 0) && (x.current = e.pointerId, b.current = xn(e.clientX, e.clientY, e.timeStamp), e.currentTarget.setPointerCapture(e.pointerId));
|
|
3772
3770
|
},
|
|
3773
3771
|
onPointerMove: (e) => {
|
|
3774
3772
|
if (e.pointerId !== x.current || !b.current) return;
|
|
3775
|
-
let t =
|
|
3773
|
+
let t = Sn(b.current, e.clientX, e.clientY);
|
|
3776
3774
|
b.current.intent === "vertical" && (e.preventDefault(), T(!0), C(t));
|
|
3777
3775
|
},
|
|
3778
3776
|
onPointerUp: (e) => {
|
|
3779
3777
|
if (e.pointerId !== x.current || !b.current) return;
|
|
3780
|
-
let t =
|
|
3778
|
+
let t = Cn(b.current, e.clientY, e.timeStamp);
|
|
3781
3779
|
A(e.currentTarget), t && D();
|
|
3782
3780
|
},
|
|
3783
3781
|
onPointerCancel: (e) => A(e.currentTarget),
|
|
3784
3782
|
children: /* @__PURE__ */ t("span", {})
|
|
3785
3783
|
}),
|
|
3786
3784
|
(O || o) && /* @__PURE__ */ n("header", {
|
|
3787
|
-
className:
|
|
3785
|
+
className: wn.header,
|
|
3788
3786
|
children: [O && /* @__PURE__ */ t("h2", {
|
|
3789
3787
|
id: _,
|
|
3790
|
-
className:
|
|
3788
|
+
className: wn.title,
|
|
3791
3789
|
children: p
|
|
3792
3790
|
}), /* @__PURE__ */ t(j, {
|
|
3793
|
-
className:
|
|
3791
|
+
className: wn.close,
|
|
3794
3792
|
variant: "empty",
|
|
3795
3793
|
size: "sm",
|
|
3796
3794
|
"aria-label": o,
|
|
@@ -3804,17 +3802,17 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3804
3802
|
}),
|
|
3805
3803
|
k && /* @__PURE__ */ t("p", {
|
|
3806
3804
|
id: v,
|
|
3807
|
-
className:
|
|
3805
|
+
className: wn.description,
|
|
3808
3806
|
children: m
|
|
3809
3807
|
}),
|
|
3810
3808
|
/* @__PURE__ */ t("div", {
|
|
3811
|
-
className:
|
|
3809
|
+
className: wn.content,
|
|
3812
3810
|
children: e
|
|
3813
3811
|
})
|
|
3814
3812
|
]
|
|
3815
3813
|
});
|
|
3816
|
-
},
|
|
3817
|
-
let n =
|
|
3814
|
+
}, kn = ({ registry: e }) => {
|
|
3815
|
+
let n = gn((e) => e.modals), r = gn((e) => e.closeModal), [i, a] = g(() => /* @__PURE__ */ new Set()), o = h(/* @__PURE__ */ new Map()), s = (e) => {
|
|
3818
3816
|
if (o.current.has(e)) return;
|
|
3819
3817
|
a((t) => new Set(t).add(e));
|
|
3820
3818
|
let t = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -3830,7 +3828,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3830
3828
|
return () => e.forEach((e) => window.clearTimeout(e));
|
|
3831
3829
|
}, []), d(() => {
|
|
3832
3830
|
let e = (e) => {
|
|
3833
|
-
let t =
|
|
3831
|
+
let t = gn.getState().modals.at(-1);
|
|
3834
3832
|
e.key === "Escape" && t?.closeOnEscape && s(t.id);
|
|
3835
3833
|
};
|
|
3836
3834
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
@@ -3843,21 +3841,21 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3843
3841
|
n,
|
|
3844
3842
|
e
|
|
3845
3843
|
]), !n.length || typeof document > "u" ? null : _(/* @__PURE__ */ t("div", {
|
|
3846
|
-
className:
|
|
3844
|
+
className: wn.layer,
|
|
3847
3845
|
"aria-label": "Модальные окна",
|
|
3848
3846
|
children: n.map((r, a) => {
|
|
3849
3847
|
let o = e[r.name];
|
|
3850
3848
|
if (!o) return null;
|
|
3851
3849
|
let c = i.has(r.id);
|
|
3852
3850
|
return /* @__PURE__ */ t("div", {
|
|
3853
|
-
className:
|
|
3851
|
+
className: wn.backdrop,
|
|
3854
3852
|
"data-closing": c || void 0,
|
|
3855
3853
|
"aria-hidden": a !== n.length - 1 || void 0,
|
|
3856
3854
|
inert: a !== n.length - 1 || void 0,
|
|
3857
3855
|
onMouseDown: (e) => {
|
|
3858
3856
|
e.target === e.currentTarget && r.closeOnBackdrop && s(r.id);
|
|
3859
3857
|
},
|
|
3860
|
-
children: /* @__PURE__ */ t(
|
|
3858
|
+
children: /* @__PURE__ */ t(En.Provider, {
|
|
3861
3859
|
value: {
|
|
3862
3860
|
title: r.title ?? r.payload.title,
|
|
3863
3861
|
description: r.description ?? r.payload.description,
|
|
@@ -3874,31 +3872,31 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3874
3872
|
}, r.id);
|
|
3875
3873
|
})
|
|
3876
3874
|
}), document.body);
|
|
3877
|
-
},
|
|
3878
|
-
let o =
|
|
3875
|
+
}, An = ({ registry: r, children: i, lockBodyScroll: a = !0 }) => {
|
|
3876
|
+
let o = gn((e) => e.modals.length);
|
|
3879
3877
|
return d(() => {
|
|
3880
3878
|
if (!a || o === 0) return;
|
|
3881
3879
|
let e = document.body.style.overflow;
|
|
3882
3880
|
return document.body.style.overflow = "hidden", () => {
|
|
3883
3881
|
document.body.style.overflow = e;
|
|
3884
3882
|
};
|
|
3885
|
-
}, [a, o]), /* @__PURE__ */ n(e, { children: [i, /* @__PURE__ */ t(
|
|
3886
|
-
},
|
|
3883
|
+
}, [a, o]), /* @__PURE__ */ n(e, { children: [i, /* @__PURE__ */ t(kn, { registry: r })] });
|
|
3884
|
+
}, jn = (e) => e, Mn = {
|
|
3887
3885
|
message: "_message_c23ie_1",
|
|
3888
3886
|
actions: "_actions_c23ie_13"
|
|
3889
|
-
},
|
|
3887
|
+
}, Nn = /* @__PURE__ */ new Map(), Pn = 0, Fn = ({ modalId: e, close: r, title: i = "Подтверждение", message: a = "Продолжить действие?", confirmLabel: o = "Подтвердить", cancelLabel: s = "Отмена", tone: c = "default", requestId: l }) => {
|
|
3890
3888
|
let u = (e) => {
|
|
3891
|
-
|
|
3889
|
+
Nn.get(l)?.(e), Nn.delete(l), r();
|
|
3892
3890
|
};
|
|
3893
|
-
return /* @__PURE__ */ n(
|
|
3891
|
+
return /* @__PURE__ */ n(On, {
|
|
3894
3892
|
modalId: e,
|
|
3895
3893
|
title: i,
|
|
3896
3894
|
role: "alertdialog",
|
|
3897
3895
|
children: [/* @__PURE__ */ t("p", {
|
|
3898
|
-
className:
|
|
3896
|
+
className: Mn.message,
|
|
3899
3897
|
children: a
|
|
3900
3898
|
}), /* @__PURE__ */ n("div", {
|
|
3901
|
-
className:
|
|
3899
|
+
className: Mn.actions,
|
|
3902
3900
|
children: [/* @__PURE__ */ t(j, {
|
|
3903
3901
|
variant: "outline",
|
|
3904
3902
|
onClick: () => u(!1),
|
|
@@ -3910,46 +3908,46 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3910
3908
|
})]
|
|
3911
3909
|
})]
|
|
3912
3910
|
});
|
|
3913
|
-
},
|
|
3911
|
+
}, In = ({ modalId: e, close: r, title: i = "Ошибка", message: a, closeLabel: o = "Закрыть" }) => /* @__PURE__ */ n(On, {
|
|
3914
3912
|
modalId: e,
|
|
3915
3913
|
title: i,
|
|
3916
3914
|
role: "alertdialog",
|
|
3917
3915
|
children: [/* @__PURE__ */ t("p", {
|
|
3918
|
-
className:
|
|
3916
|
+
className: Mn.message,
|
|
3919
3917
|
children: a
|
|
3920
3918
|
}), /* @__PURE__ */ t("div", {
|
|
3921
|
-
className:
|
|
3919
|
+
className: Mn.actions,
|
|
3922
3920
|
children: /* @__PURE__ */ t(j, {
|
|
3923
3921
|
onClick: r,
|
|
3924
3922
|
children: o
|
|
3925
3923
|
})
|
|
3926
3924
|
})]
|
|
3927
|
-
}),
|
|
3928
|
-
ConfirmModal:
|
|
3929
|
-
ErrorModal:
|
|
3930
|
-
}),
|
|
3931
|
-
let e =
|
|
3925
|
+
}), Ln = jn({
|
|
3926
|
+
ConfirmModal: Fn,
|
|
3927
|
+
ErrorModal: In
|
|
3928
|
+
}), Rn = () => {
|
|
3929
|
+
let e = gn((e) => e.openModal);
|
|
3932
3930
|
return (t = {}) => new Promise((n) => {
|
|
3933
|
-
|
|
3934
|
-
let r = `confirm-${
|
|
3935
|
-
|
|
3931
|
+
Pn += 1;
|
|
3932
|
+
let r = `confirm-${Pn}`;
|
|
3933
|
+
Nn.set(r, n), e("ConfirmModal", {
|
|
3936
3934
|
...t,
|
|
3937
3935
|
requestId: r
|
|
3938
3936
|
}, {
|
|
3939
3937
|
closeOnEscape: !1,
|
|
3940
3938
|
onClose: () => {
|
|
3941
|
-
|
|
3939
|
+
Nn.get(r)?.(!1), Nn.delete(r);
|
|
3942
3940
|
}
|
|
3943
3941
|
});
|
|
3944
3942
|
});
|
|
3945
|
-
},
|
|
3946
|
-
let e =
|
|
3943
|
+
}, zn = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : "Произошла неизвестная ошибка", Bn = () => {
|
|
3944
|
+
let e = gn((e) => e.openModal);
|
|
3947
3945
|
return { showError: (t, n) => e("ErrorModal", {
|
|
3948
3946
|
title: n,
|
|
3949
|
-
message:
|
|
3947
|
+
message: zn(t)
|
|
3950
3948
|
}) };
|
|
3951
|
-
},
|
|
3952
|
-
let e =
|
|
3949
|
+
}, Vn = S(() => ({})), Hn = S(() => ({})), Un = () => {
|
|
3950
|
+
let e = gn((e) => e.modals), t = gn((e) => e.openModal), n = gn((e) => e.closeModal), r = gn((e) => e.closeTopModal), i = gn((e) => e.closeAllModals), a = l((e, n = {}, r) => t(e, n, r), [t]), o = l((t) => e.some((e) => e.name === t), [e]);
|
|
3953
3951
|
return m(() => ({
|
|
3954
3952
|
openModal: a,
|
|
3955
3953
|
closeModal: n,
|
|
@@ -3965,7 +3963,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3965
3963
|
e.length,
|
|
3966
3964
|
a
|
|
3967
3965
|
]);
|
|
3968
|
-
},
|
|
3966
|
+
}, Wn = {
|
|
3969
3967
|
layer: "_layer_ct7yp_1",
|
|
3970
3968
|
backdrop: "_backdrop_ct7yp_13",
|
|
3971
3969
|
panel: "_panel_ct7yp_27",
|
|
@@ -3985,16 +3983,16 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
3985
3983
|
"enter-right": "_enter-right_ct7yp_1",
|
|
3986
3984
|
"enter-left": "_enter-left_ct7yp_1",
|
|
3987
3985
|
"enter-bottom": "_enter-bottom_ct7yp_1"
|
|
3988
|
-
},
|
|
3986
|
+
}, Gn = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Kn = a(null), qn = (e) => {
|
|
3989
3987
|
if (e.key !== "Tab") return;
|
|
3990
|
-
let t = Array.from(e.currentTarget.querySelectorAll(
|
|
3988
|
+
let t = Array.from(e.currentTarget.querySelectorAll(Gn));
|
|
3991
3989
|
if (!t.length) {
|
|
3992
3990
|
e.preventDefault();
|
|
3993
3991
|
return;
|
|
3994
3992
|
}
|
|
3995
3993
|
let n = t[0], r = t.at(-1);
|
|
3996
3994
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r?.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3997
|
-
},
|
|
3995
|
+
}, Jn = () => u(Kn), Yn = ({ open: e, onCloseRequest: r, children: i, title: a, description: o, headerActions: s, footer: c, placement: l = "right", size: u = "md", closeOnEscape: p = !0, closeOnBackdrop: m = !0, preventClose: g = !1, closeLabel: v = "Закрыть", initialFocusRef: y, returnFocusRef: b, className: x = "" }) => {
|
|
3998
3996
|
let S = h(null), C = f(), w = f(), T = (e) => {
|
|
3999
3997
|
g || r(e);
|
|
4000
3998
|
};
|
|
@@ -4003,7 +4001,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4003
4001
|
let t = document.activeElement, n = b?.current, i = document.body.style.overflow;
|
|
4004
4002
|
document.body.style.overflow = "hidden";
|
|
4005
4003
|
let a = S.current;
|
|
4006
|
-
(y?.current ?? a?.querySelector(
|
|
4004
|
+
(y?.current ?? a?.querySelector(Gn) ?? a)?.focus();
|
|
4007
4005
|
let o = (e) => {
|
|
4008
4006
|
e.key === "Escape" && p && !g && r("escape");
|
|
4009
4007
|
};
|
|
@@ -4018,29 +4016,29 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4018
4016
|
g,
|
|
4019
4017
|
b
|
|
4020
4018
|
]), !e || typeof document > "u" ? null : _(/* @__PURE__ */ t("div", {
|
|
4021
|
-
className:
|
|
4019
|
+
className: Wn.layer,
|
|
4022
4020
|
children: /* @__PURE__ */ t("div", {
|
|
4023
|
-
className:
|
|
4021
|
+
className: Wn.backdrop,
|
|
4024
4022
|
onMouseDown: (e) => {
|
|
4025
4023
|
e.target === e.currentTarget && m && T("backdrop");
|
|
4026
4024
|
},
|
|
4027
|
-
children: /* @__PURE__ */ t(
|
|
4025
|
+
children: /* @__PURE__ */ t(Kn.Provider, {
|
|
4028
4026
|
value: { requestClose: T },
|
|
4029
4027
|
children: /* @__PURE__ */ n("section", {
|
|
4030
4028
|
ref: S,
|
|
4031
|
-
className: `${
|
|
4029
|
+
className: `${Wn.panel} ${Wn[l]} ${Wn[u]} ${x}`,
|
|
4032
4030
|
role: "dialog",
|
|
4033
4031
|
"aria-modal": "true",
|
|
4034
4032
|
"aria-labelledby": a ? C : void 0,
|
|
4035
4033
|
"aria-describedby": o ? w : void 0,
|
|
4036
4034
|
tabIndex: -1,
|
|
4037
|
-
onKeyDown:
|
|
4035
|
+
onKeyDown: qn,
|
|
4038
4036
|
children: [
|
|
4039
4037
|
/* @__PURE__ */ n("header", {
|
|
4040
|
-
className:
|
|
4038
|
+
className: Wn.header,
|
|
4041
4039
|
children: [
|
|
4042
4040
|
/* @__PURE__ */ n("div", {
|
|
4043
|
-
className:
|
|
4041
|
+
className: Wn.heading,
|
|
4044
4042
|
children: [a && /* @__PURE__ */ t("h2", {
|
|
4045
4043
|
id: C,
|
|
4046
4044
|
children: a
|
|
@@ -4050,7 +4048,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4050
4048
|
})]
|
|
4051
4049
|
}),
|
|
4052
4050
|
s && /* @__PURE__ */ t("div", {
|
|
4053
|
-
className:
|
|
4051
|
+
className: Wn.headerActions,
|
|
4054
4052
|
children: s
|
|
4055
4053
|
}),
|
|
4056
4054
|
/* @__PURE__ */ t(j, {
|
|
@@ -4068,11 +4066,11 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4068
4066
|
]
|
|
4069
4067
|
}),
|
|
4070
4068
|
/* @__PURE__ */ t("div", {
|
|
4071
|
-
className:
|
|
4069
|
+
className: Wn.content,
|
|
4072
4070
|
children: i
|
|
4073
4071
|
}),
|
|
4074
4072
|
c && /* @__PURE__ */ t("footer", {
|
|
4075
|
-
className:
|
|
4073
|
+
className: Wn.footer,
|
|
4076
4074
|
children: c
|
|
4077
4075
|
})
|
|
4078
4076
|
]
|
|
@@ -4080,17 +4078,17 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4080
4078
|
})
|
|
4081
4079
|
})
|
|
4082
4080
|
}), document.body);
|
|
4083
|
-
},
|
|
4081
|
+
}, Xn = ({ placement: e = "right", ...n }) => /* @__PURE__ */ t(Yn, {
|
|
4084
4082
|
...n,
|
|
4085
4083
|
placement: e
|
|
4086
|
-
}),
|
|
4084
|
+
}), Zn = (e) => /* @__PURE__ */ t(Yn, {
|
|
4087
4085
|
...e,
|
|
4088
4086
|
placement: "bottom"
|
|
4089
|
-
}),
|
|
4087
|
+
}), Qn = (e) => /* @__PURE__ */ t(Yn, {
|
|
4090
4088
|
...e,
|
|
4091
4089
|
placement: "fullscreen",
|
|
4092
4090
|
size: "xl"
|
|
4093
|
-
}),
|
|
4091
|
+
}), $n = {
|
|
4094
4092
|
wrapper: "_wrapper_1hyyy_1",
|
|
4095
4093
|
container: "_container_1hyyy_15",
|
|
4096
4094
|
inner: "_inner_1hyyy_35",
|
|
@@ -4105,29 +4103,29 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4105
4103
|
empty: "_empty_1hyyy_153",
|
|
4106
4104
|
destructive: "_destructive_1hyyy_161",
|
|
4107
4105
|
destructiveOutline: "_destructiveOutline_1hyyy_169"
|
|
4108
|
-
},
|
|
4109
|
-
className:
|
|
4106
|
+
}, er = ({ variant: e = "primary" }) => /* @__PURE__ */ t("div", {
|
|
4107
|
+
className: $n.wrapper,
|
|
4110
4108
|
children: /* @__PURE__ */ t("div", {
|
|
4111
|
-
className:
|
|
4109
|
+
className: $n.container,
|
|
4112
4110
|
children: /* @__PURE__ */ n("div", {
|
|
4113
|
-
className:
|
|
4111
|
+
className: $n.inner,
|
|
4114
4112
|
children: [
|
|
4115
4113
|
/* @__PURE__ */ t("div", {
|
|
4116
|
-
className:
|
|
4117
|
-
children: /* @__PURE__ */ t("div", { className: `${
|
|
4114
|
+
className: $n.cube,
|
|
4115
|
+
children: /* @__PURE__ */ t("div", { className: `${$n.cube__inner} ${$n[e]}` })
|
|
4118
4116
|
}),
|
|
4119
4117
|
/* @__PURE__ */ t("div", {
|
|
4120
|
-
className:
|
|
4121
|
-
children: /* @__PURE__ */ t("div", { className: `${
|
|
4118
|
+
className: $n.cube,
|
|
4119
|
+
children: /* @__PURE__ */ t("div", { className: `${$n.cube__inner} ${$n[e]}` })
|
|
4122
4120
|
}),
|
|
4123
4121
|
/* @__PURE__ */ t("div", {
|
|
4124
|
-
className:
|
|
4125
|
-
children: /* @__PURE__ */ t("div", { className: `${
|
|
4122
|
+
className: $n.cube,
|
|
4123
|
+
children: /* @__PURE__ */ t("div", { className: `${$n.cube__inner} ${$n[e]}` })
|
|
4126
4124
|
})
|
|
4127
4125
|
]
|
|
4128
4126
|
})
|
|
4129
4127
|
})
|
|
4130
|
-
}),
|
|
4128
|
+
}), tr = {
|
|
4131
4129
|
viewport: "_viewport_bu4eh_1",
|
|
4132
4130
|
"top-right": "_top-right_bu4eh_21",
|
|
4133
4131
|
"top-left": "_top-left_bu4eh_31",
|
|
@@ -4143,12 +4141,12 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4143
4141
|
success: "_success_bu4eh_195",
|
|
4144
4142
|
warning: "_warning_bu4eh_203",
|
|
4145
4143
|
error: "_error_bu4eh_211"
|
|
4146
|
-
},
|
|
4144
|
+
}, nr = {
|
|
4147
4145
|
info: "IconInfoCircle",
|
|
4148
4146
|
success: "IconSuccessCircle",
|
|
4149
4147
|
warning: "IconWarning",
|
|
4150
4148
|
error: "IconWarning"
|
|
4151
|
-
},
|
|
4149
|
+
}, rr = ({ toast: e, onClose: r }) => {
|
|
4152
4150
|
let [i, a] = g(!1), [o, s] = g(() => typeof document < "u" && document.hidden), c = h(e.duration), l = h(Date.now());
|
|
4153
4151
|
return d(() => {
|
|
4154
4152
|
if (i || o || e.duration <= 0) return;
|
|
@@ -4168,7 +4166,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4168
4166
|
let e = () => s(document.hidden);
|
|
4169
4167
|
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
4170
4168
|
}, []), /* @__PURE__ */ n("article", {
|
|
4171
|
-
className: `${
|
|
4169
|
+
className: `${tr.toast} ${tr[e.variant]}`,
|
|
4172
4170
|
role: e.variant === "error" ? "alert" : "status",
|
|
4173
4171
|
"aria-live": e.variant === "error" ? "assertive" : "polite",
|
|
4174
4172
|
onMouseEnter: () => a(!0),
|
|
@@ -4177,24 +4175,24 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4177
4175
|
onBlur: () => a(!1),
|
|
4178
4176
|
children: [
|
|
4179
4177
|
/* @__PURE__ */ t("div", {
|
|
4180
|
-
className:
|
|
4178
|
+
className: tr.icon,
|
|
4181
4179
|
"aria-hidden": "true",
|
|
4182
4180
|
children: /* @__PURE__ */ t(Y, {
|
|
4183
|
-
name:
|
|
4181
|
+
name: nr[e.variant],
|
|
4184
4182
|
color: "var(--ds-toast-accent)",
|
|
4185
4183
|
width: 20,
|
|
4186
4184
|
height: 20
|
|
4187
4185
|
})
|
|
4188
4186
|
}),
|
|
4189
4187
|
/* @__PURE__ */ n("div", {
|
|
4190
|
-
className:
|
|
4188
|
+
className: tr.body,
|
|
4191
4189
|
children: [
|
|
4192
4190
|
e.title && /* @__PURE__ */ t("strong", {
|
|
4193
|
-
className:
|
|
4191
|
+
className: tr.title,
|
|
4194
4192
|
children: e.title
|
|
4195
4193
|
}),
|
|
4196
4194
|
/* @__PURE__ */ t("div", {
|
|
4197
|
-
className:
|
|
4195
|
+
className: tr.message,
|
|
4198
4196
|
children: e.message
|
|
4199
4197
|
}),
|
|
4200
4198
|
e.action && /* @__PURE__ */ t(j, {
|
|
@@ -4220,15 +4218,15 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4220
4218
|
})
|
|
4221
4219
|
]
|
|
4222
4220
|
});
|
|
4223
|
-
},
|
|
4221
|
+
}, ir = 0, ar = S((e, t) => ({
|
|
4224
4222
|
toasts: [],
|
|
4225
4223
|
showToast: (n) => {
|
|
4226
4224
|
if (n.dedupeKey) {
|
|
4227
4225
|
let e = t().toasts.find((e) => e.dedupeKey === n.dedupeKey);
|
|
4228
4226
|
if (e) return e.id;
|
|
4229
4227
|
}
|
|
4230
|
-
|
|
4231
|
-
let r = `ds-toast-${
|
|
4228
|
+
ir += 1;
|
|
4229
|
+
let r = `ds-toast-${ir}`;
|
|
4232
4230
|
return e((e) => ({ toasts: [...e.toasts, {
|
|
4233
4231
|
variant: "info",
|
|
4234
4232
|
duration: 5e3,
|
|
@@ -4239,18 +4237,18 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4239
4237
|
},
|
|
4240
4238
|
removeToast: (t) => e((e) => ({ toasts: e.toasts.filter((e) => e.id !== t) })),
|
|
4241
4239
|
clearToasts: () => e({ toasts: [] })
|
|
4242
|
-
})),
|
|
4243
|
-
let r =
|
|
4240
|
+
})), or = () => ar.setState({ toasts: [] }), sr = ({ position: e = "top-right", maxVisible: n }) => {
|
|
4241
|
+
let r = ar((e) => e.toasts), i = ar((e) => e.removeToast), a = n === void 0 ? r : r.slice(0, Math.max(0, Math.floor(n)));
|
|
4244
4242
|
return /* @__PURE__ */ t("div", {
|
|
4245
|
-
className: `${
|
|
4243
|
+
className: `${tr.viewport} ${tr[e]}`,
|
|
4246
4244
|
"aria-label": "Уведомления",
|
|
4247
|
-
children: a.map((e) => /* @__PURE__ */ t(
|
|
4245
|
+
children: a.map((e) => /* @__PURE__ */ t(rr, {
|
|
4248
4246
|
toast: e,
|
|
4249
4247
|
onClose: i
|
|
4250
4248
|
}, e.id))
|
|
4251
4249
|
});
|
|
4252
|
-
},
|
|
4253
|
-
let e =
|
|
4250
|
+
}, cr = () => {
|
|
4251
|
+
let e = ar((e) => e.showToast), t = ar((e) => e.removeToast), n = ar((e) => e.clearToasts), r = l((t) => e({
|
|
4254
4252
|
...t,
|
|
4255
4253
|
variant: "info"
|
|
4256
4254
|
}), [e]), i = l((t) => e({
|
|
@@ -4280,24 +4278,24 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4280
4278
|
i,
|
|
4281
4279
|
a
|
|
4282
4280
|
]);
|
|
4283
|
-
},
|
|
4281
|
+
}, lr = {
|
|
4284
4282
|
root: "_root_ncmxp_1",
|
|
4285
4283
|
tooltip: "_tooltip_ncmxp_11",
|
|
4286
4284
|
"ds-tooltip-in": "_ds-tooltip-in_ncmxp_1"
|
|
4287
|
-
},
|
|
4285
|
+
}, ur = 8, dr = 16, fr = {
|
|
4288
4286
|
top: "bottom",
|
|
4289
4287
|
right: "left",
|
|
4290
4288
|
bottom: "top",
|
|
4291
4289
|
left: "right"
|
|
4292
|
-
},
|
|
4290
|
+
}, pr = (e, t, n) => e === "top" ? t.top >= n.height + ur + dr : e === "bottom" ? window.innerHeight - t.bottom >= n.height + ur + dr : e === "left" ? t.left >= n.width + ur + dr : window.innerWidth - t.right >= n.width + ur + dr, mr = (e, t, n) => {
|
|
4293
4291
|
if (!(t.bottom > 0 && t.right > 0 && t.top < window.innerHeight && t.left < window.innerWidth)) return null;
|
|
4294
|
-
let r =
|
|
4295
|
-
return r === "top" && (a = t.top - n.height -
|
|
4292
|
+
let r = pr(e, t, n) ? e : pr(fr[e], t, n) ? fr[e] : e, i = t.left + (t.width - n.width) / 2, a = t.top + (t.height - n.height) / 2;
|
|
4293
|
+
return r === "top" && (a = t.top - n.height - ur), r === "bottom" && (a = t.bottom + ur), r === "left" && (i = t.left - n.width - ur), r === "right" && (i = t.right + ur), i = Math.min(Math.max(i, dr), Math.max(dr, window.innerWidth - n.width - dr)), a = Math.min(Math.max(a, dr), Math.max(dr, window.innerHeight - n.height - dr)), {
|
|
4296
4294
|
left: i,
|
|
4297
4295
|
top: a,
|
|
4298
4296
|
visibility: "visible"
|
|
4299
4297
|
};
|
|
4300
|
-
},
|
|
4298
|
+
}, hr = ({ content: e, children: r, placement: a = "top", delay: o = 450, disabled: s = !1, maxWidth: u = 280, className: p = "" }) => {
|
|
4301
4299
|
let m = f(), [_, v] = g(!1), [y, b] = g({ visibility: "hidden" }), [x, S] = g(null), C = h(null), w = h(null), T = l(() => {
|
|
4302
4300
|
C.current && clearTimeout(C.current), C.current = null, v(!1);
|
|
4303
4301
|
}, []), E = l(() => {
|
|
@@ -4315,7 +4313,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4315
4313
|
let e = () => {
|
|
4316
4314
|
let e = w.current;
|
|
4317
4315
|
if (!e || !x) return;
|
|
4318
|
-
let t =
|
|
4316
|
+
let t = mr(a, e.getBoundingClientRect(), x.getBoundingClientRect());
|
|
4319
4317
|
if (!t) {
|
|
4320
4318
|
T();
|
|
4321
4319
|
return;
|
|
@@ -4352,24 +4350,24 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4352
4350
|
});
|
|
4353
4351
|
return /* @__PURE__ */ n("span", {
|
|
4354
4352
|
ref: w,
|
|
4355
|
-
className: `${
|
|
4353
|
+
className: `${lr.root} ${p}`,
|
|
4356
4354
|
onPointerDown: _ ? T : E,
|
|
4357
|
-
children: [O, _ && /* @__PURE__ */ t(
|
|
4355
|
+
children: [O, _ && /* @__PURE__ */ t(ln, { children: /* @__PURE__ */ t("span", {
|
|
4358
4356
|
ref: S,
|
|
4359
4357
|
id: m,
|
|
4360
4358
|
role: "tooltip",
|
|
4361
|
-
className:
|
|
4359
|
+
className: lr.tooltip,
|
|
4362
4360
|
style: D,
|
|
4363
4361
|
children: e
|
|
4364
4362
|
}) })]
|
|
4365
4363
|
});
|
|
4366
|
-
},
|
|
4364
|
+
}, gr = {
|
|
4367
4365
|
root: "_root_bs28m_1",
|
|
4368
4366
|
tabList: "_tabList_bs28m_11",
|
|
4369
4367
|
tab: "_tab_bs28m_11",
|
|
4370
4368
|
panels: "_panels_bs28m_127",
|
|
4371
4369
|
panel: "_panel_bs28m_127"
|
|
4372
|
-
},
|
|
4370
|
+
}, _r = ({ items: e, value: r, onChange: i, ariaLabel: a = "Вкладки", disabled: o = !1, loading: s = !1, className: c = "" }) => {
|
|
4373
4371
|
let l = `ds-tabs-${f().replace(/:/g, "")}`, u = h([]), d = o || s, p = e.findIndex((e) => e.id === r), m = e.findIndex((e) => !e.disabled), g = p >= 0 && !e[p]?.disabled ? p : m, _ = (t) => {
|
|
4374
4372
|
let n = e[t];
|
|
4375
4373
|
!n || n.disabled || d || (i(n.id), u.current[t]?.focus(), u.current[t]?.scrollIntoView({
|
|
@@ -4399,10 +4397,10 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4399
4397
|
t.preventDefault(), _(a);
|
|
4400
4398
|
};
|
|
4401
4399
|
return /* @__PURE__ */ n("div", {
|
|
4402
|
-
className: `${
|
|
4400
|
+
className: `${gr.root} ${c}`,
|
|
4403
4401
|
"aria-busy": s || void 0,
|
|
4404
4402
|
children: [/* @__PURE__ */ t("div", {
|
|
4405
|
-
className:
|
|
4403
|
+
className: gr.tabList,
|
|
4406
4404
|
role: "tablist",
|
|
4407
4405
|
"aria-label": a,
|
|
4408
4406
|
"aria-orientation": "horizontal",
|
|
@@ -4414,7 +4412,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4414
4412
|
u.current[n] = e;
|
|
4415
4413
|
},
|
|
4416
4414
|
id: a,
|
|
4417
|
-
className:
|
|
4415
|
+
className: gr.tab,
|
|
4418
4416
|
type: "button",
|
|
4419
4417
|
role: "tab",
|
|
4420
4418
|
"aria-selected": i,
|
|
@@ -4427,12 +4425,12 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4427
4425
|
}, e.id);
|
|
4428
4426
|
})
|
|
4429
4427
|
}), /* @__PURE__ */ t("div", {
|
|
4430
|
-
className:
|
|
4428
|
+
className: gr.panels,
|
|
4431
4429
|
children: e.map((e, n) => {
|
|
4432
4430
|
let i = e.id === r;
|
|
4433
4431
|
return /* @__PURE__ */ t("div", {
|
|
4434
4432
|
id: `${l}-panel-${n}`,
|
|
4435
|
-
className:
|
|
4433
|
+
className: gr.panel,
|
|
4436
4434
|
role: "tabpanel",
|
|
4437
4435
|
"aria-labelledby": `${l}-tab-${n}`,
|
|
4438
4436
|
tabIndex: 0,
|
|
@@ -4442,7 +4440,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4442
4440
|
})
|
|
4443
4441
|
})]
|
|
4444
4442
|
});
|
|
4445
|
-
},
|
|
4443
|
+
}, vr = (e) => {
|
|
4446
4444
|
if (!Number.isFinite(e) || e < 0) return "00:00";
|
|
4447
4445
|
let t = Math.floor(e), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, a = `${String(r).padStart(2, "0")}:${String(i).padStart(2, "0")}`;
|
|
4448
4446
|
return n ? `${n}:${a}` : a;
|
|
@@ -4475,19 +4473,19 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4475
4473
|
settingsActionLabel: "_settingsActionLabel_14cqp_693",
|
|
4476
4474
|
caption: "_caption_14cqp_705",
|
|
4477
4475
|
fullscreen: "_fullscreen_14cqp_719"
|
|
4478
|
-
},
|
|
4476
|
+
}, yr = 2500, br = 5, xr = .05, Sr = [
|
|
4479
4477
|
.5,
|
|
4480
4478
|
.75,
|
|
4481
4479
|
1,
|
|
4482
4480
|
1.25,
|
|
4483
4481
|
1.5,
|
|
4484
4482
|
2
|
|
4485
|
-
],
|
|
4483
|
+
], Cr = ({ sources: r, tracks: i = [], title: a, aspectRatio: o = "16 / 9", objectFit: s = "contain", loading: c = !1, error: u, fallback: f, className: p = "", controls: m = !0, playsInline: _ = !0, ...v }) => {
|
|
4486
4484
|
let y = h(null), b = h(null), x = h(null), S = h(void 0), [C, w] = g(!1), [T, E] = g(r.length > 0), [D, O] = g(!1), [A, M] = g(!1), [ee, N] = g(!1), [P, F] = g(0), [I, L] = g(0), [R, z] = g(0), [B, V] = g(1), [H, U] = g(!!v.muted), [W, te] = g(1), [ne, re] = g(!!v.loop), [ie, ae] = g(-1), [oe, se] = g(!1), [ce, G] = g(!0), [le, ue] = g(!1), [de, K] = g(!1), fe = r.map(({ src: e, type: t }) => `${e}:${t ?? ""}`).join("|"), pe = i.map((e, t) => ({
|
|
4487
4485
|
track: e,
|
|
4488
4486
|
index: t
|
|
4489
4487
|
})).filter(({ track: e }) => e.kind === "captions" || e.kind === "subtitles"), me = u ?? (C ? "Не удалось воспроизвести видео" : void 0), he = c || T && !me && r.length > 0, ge = !he && !me && r.length === 0, _e = typeof document < "u" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled, ve = l(() => {
|
|
4490
|
-
G(!0), window.clearTimeout(S.current), A && !oe && (S.current = window.setTimeout(() => G(!1),
|
|
4488
|
+
G(!0), window.clearTimeout(S.current), A && !oe && (S.current = window.setTimeout(() => G(!1), yr));
|
|
4491
4489
|
}, [A, oe]);
|
|
4492
4490
|
d(() => {
|
|
4493
4491
|
w(!1), E(r.length > 0), O(!1), M(!1), N(!1), F(0), L(0), z(0);
|
|
@@ -4546,7 +4544,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4546
4544
|
let t = e.target;
|
|
4547
4545
|
if (/^(INPUT|SELECT|BUTTON)$/.test(t.tagName)) return;
|
|
4548
4546
|
let n = e.key.toLowerCase();
|
|
4549
|
-
n === " " || n === "k" ? (e.preventDefault(), ye()) : n === "m" ? (e.preventDefault(), be()) : n === "f" ? (e.preventDefault(), Ce()) : n === "c" && pe.length ? (e.preventDefault(), Te(ie === -1 ? pe[0].index : -1)) : e.key === "ArrowLeft" || e.key === "ArrowRight" ? (e.preventDefault(), Se(P + (e.key === "ArrowRight" ?
|
|
4547
|
+
n === " " || n === "k" ? (e.preventDefault(), ye()) : n === "m" ? (e.preventDefault(), be()) : n === "f" ? (e.preventDefault(), Ce()) : n === "c" && pe.length ? (e.preventDefault(), Te(ie === -1 ? pe[0].index : -1)) : e.key === "ArrowLeft" || e.key === "ArrowRight" ? (e.preventDefault(), Se(P + (e.key === "ArrowRight" ? br : -5))) : e.key === "ArrowUp" || e.key === "ArrowDown" ? (e.preventDefault(), xe(B + (e.key === "ArrowUp" ? xr : -.05))) : e.key === "Escape" && se(!1), ve();
|
|
4550
4548
|
}, q = () => {
|
|
4551
4549
|
let e = x.current;
|
|
4552
4550
|
w(!1), E(!0), e?.load();
|
|
@@ -4645,7 +4643,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4645
4643
|
"aria-hidden": "true",
|
|
4646
4644
|
children: /* @__PURE__ */ t("div", {
|
|
4647
4645
|
className: $.loaderScale,
|
|
4648
|
-
children: /* @__PURE__ */ t(
|
|
4646
|
+
children: /* @__PURE__ */ t(er, {})
|
|
4649
4647
|
})
|
|
4650
4648
|
}), /* @__PURE__ */ t("span", { children: "Загрузка видео" })]
|
|
4651
4649
|
}),
|
|
@@ -4713,7 +4711,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4713
4711
|
let t = Number(e.target.value);
|
|
4714
4712
|
x.current && (x.current.playbackRate = t);
|
|
4715
4713
|
},
|
|
4716
|
-
children:
|
|
4714
|
+
children: Sr.map((e) => /* @__PURE__ */ n("option", {
|
|
4717
4715
|
value: e,
|
|
4718
4716
|
children: [e, "×"]
|
|
4719
4717
|
}, e))
|
|
@@ -4800,7 +4798,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4800
4798
|
children: [
|
|
4801
4799
|
/* @__PURE__ */ t("span", {
|
|
4802
4800
|
className: $.time,
|
|
4803
|
-
children:
|
|
4801
|
+
children: vr(P)
|
|
4804
4802
|
}),
|
|
4805
4803
|
/* @__PURE__ */ t("input", {
|
|
4806
4804
|
className: $.timeline,
|
|
@@ -4811,12 +4809,12 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4811
4809
|
step: .01,
|
|
4812
4810
|
value: Math.min(P, I || 0),
|
|
4813
4811
|
"aria-label": "Позиция воспроизведения",
|
|
4814
|
-
"aria-valuetext": `${
|
|
4812
|
+
"aria-valuetext": `${vr(P)} из ${vr(I)}`,
|
|
4815
4813
|
onChange: (e) => Se(Number(e.target.value))
|
|
4816
4814
|
}),
|
|
4817
4815
|
/* @__PURE__ */ t("span", {
|
|
4818
4816
|
className: $.time,
|
|
4819
|
-
children:
|
|
4817
|
+
children: vr(I)
|
|
4820
4818
|
})
|
|
4821
4819
|
]
|
|
4822
4820
|
}),
|
|
@@ -4856,7 +4854,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4856
4854
|
children: a
|
|
4857
4855
|
})]
|
|
4858
4856
|
});
|
|
4859
|
-
},
|
|
4857
|
+
}, wr = {
|
|
4860
4858
|
root: "_root_ymidq_1",
|
|
4861
4859
|
trigger: "_trigger_ymidq_15",
|
|
4862
4860
|
heading: "_heading_ymidq_41",
|
|
@@ -4866,7 +4864,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4866
4864
|
open: "_open_ymidq_91",
|
|
4867
4865
|
content: "_content_ymidq_99",
|
|
4868
4866
|
contentInner: "_contentInner_ymidq_119"
|
|
4869
|
-
},
|
|
4867
|
+
}, Tr = (e, t, n, r = 16) => {
|
|
4870
4868
|
if (t > Math.max(0, n - r * 2)) {
|
|
4871
4869
|
let t = e - r;
|
|
4872
4870
|
return Math.abs(t) <= 1 ? {
|
|
@@ -4888,7 +4886,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4888
4886
|
alignment: "none",
|
|
4889
4887
|
delta: 0
|
|
4890
4888
|
};
|
|
4891
|
-
},
|
|
4889
|
+
}, Er = ({ title: e, subtitle: r, children: i, defaultOpen: a = !1, open: o, onOpenChange: s, autoScrollOnOpen: c = !0, scrollOffset: l = 16, className: u = "" }) => {
|
|
4892
4890
|
let p = f(), [m, _] = g(a), v = o ?? m, y = h(null), b = h(null), x = h(v);
|
|
4893
4891
|
return d(() => {
|
|
4894
4892
|
let e = x.current;
|
|
@@ -4898,7 +4896,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4898
4896
|
let r = !1, i = () => {
|
|
4899
4897
|
if (r) return;
|
|
4900
4898
|
r = !0;
|
|
4901
|
-
let e = t.getBoundingClientRect(), n =
|
|
4899
|
+
let e = t.getBoundingClientRect(), n = Tr(e.top, e.height, window.innerHeight, l);
|
|
4902
4900
|
if (n.alignment === "none") return;
|
|
4903
4901
|
let i = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
4904
4902
|
window.scrollBy({
|
|
@@ -4919,10 +4917,10 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4919
4917
|
l
|
|
4920
4918
|
]), /* @__PURE__ */ n("section", {
|
|
4921
4919
|
ref: y,
|
|
4922
|
-
className: `${
|
|
4920
|
+
className: `${wr.root} ${v ? wr.open : ""} ${u}`,
|
|
4923
4921
|
children: [/* @__PURE__ */ n("button", {
|
|
4924
4922
|
type: "button",
|
|
4925
|
-
className:
|
|
4923
|
+
className: wr.trigger,
|
|
4926
4924
|
"aria-expanded": v,
|
|
4927
4925
|
"aria-controls": p,
|
|
4928
4926
|
onClick: () => {
|
|
@@ -4930,16 +4928,16 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4930
4928
|
o === void 0 && _(e), s?.(e);
|
|
4931
4929
|
},
|
|
4932
4930
|
children: [/* @__PURE__ */ n("span", {
|
|
4933
|
-
className:
|
|
4931
|
+
className: wr.heading,
|
|
4934
4932
|
children: [/* @__PURE__ */ t("span", {
|
|
4935
|
-
className:
|
|
4933
|
+
className: wr.title,
|
|
4936
4934
|
children: e
|
|
4937
4935
|
}), r && /* @__PURE__ */ t("span", {
|
|
4938
|
-
className:
|
|
4936
|
+
className: wr.subtitle,
|
|
4939
4937
|
children: r
|
|
4940
4938
|
})]
|
|
4941
4939
|
}), /* @__PURE__ */ t("span", {
|
|
4942
|
-
className:
|
|
4940
|
+
className: wr.icon,
|
|
4943
4941
|
"aria-hidden": "true",
|
|
4944
4942
|
children: /* @__PURE__ */ t(Y, {
|
|
4945
4943
|
name: "IconChevron",
|
|
@@ -4950,15 +4948,15 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4950
4948
|
}), /* @__PURE__ */ t("div", {
|
|
4951
4949
|
ref: b,
|
|
4952
4950
|
id: p,
|
|
4953
|
-
className:
|
|
4951
|
+
className: wr.content,
|
|
4954
4952
|
"aria-hidden": !v,
|
|
4955
4953
|
children: /* @__PURE__ */ t("div", {
|
|
4956
|
-
className:
|
|
4954
|
+
className: wr.contentInner,
|
|
4957
4955
|
children: i
|
|
4958
4956
|
})
|
|
4959
4957
|
})]
|
|
4960
4958
|
});
|
|
4961
|
-
},
|
|
4959
|
+
}, Dr = {
|
|
4962
4960
|
root: "_root_14ewt_1",
|
|
4963
4961
|
topSlot: "_topSlot_14ewt_29",
|
|
4964
4962
|
searchSlot: "_searchSlot_14ewt_31",
|
|
@@ -4976,14 +4974,14 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4976
4974
|
description: "_description_14ewt_235",
|
|
4977
4975
|
badge: "_badge_14ewt_269",
|
|
4978
4976
|
empty: "_empty_14ewt_281"
|
|
4979
|
-
},
|
|
4977
|
+
}, Or = (e, t, n) => {
|
|
4980
4978
|
if (e.length === 0) return -1;
|
|
4981
4979
|
for (let r = 1; r <= e.length; r += 1) {
|
|
4982
4980
|
let i = (t + n * r + e.length) % e.length;
|
|
4983
4981
|
if (!e[i]?.disabled) return i;
|
|
4984
4982
|
}
|
|
4985
4983
|
return -1;
|
|
4986
|
-
},
|
|
4984
|
+
}, kr = ({ groups: r, currentItemId: i, ariaLabel: a = "Основная навигация", searchSlot: o, topSlot: s, bottomSlot: c, emptyState: l, renderLink: u, onItemSelect: d, className: p = "" }) => {
|
|
4987
4985
|
let m = f(), g = h(null), _ = h({
|
|
4988
4986
|
value: "",
|
|
4989
4987
|
time: 0
|
|
@@ -4995,7 +4993,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4995
4993
|
let n = v.findIndex((e) => e.id === t.id);
|
|
4996
4994
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
4997
4995
|
e.preventDefault();
|
|
4998
|
-
let t =
|
|
4996
|
+
let t = Or(v, n, e.key === "ArrowDown" ? 1 : -1);
|
|
4999
4997
|
x(v[t]);
|
|
5000
4998
|
return;
|
|
5001
4999
|
}
|
|
@@ -5015,26 +5013,26 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5015
5013
|
let a = r.id === i, o = {
|
|
5016
5014
|
children: /* @__PURE__ */ n(e, { children: [
|
|
5017
5015
|
r.icon && /* @__PURE__ */ t("span", {
|
|
5018
|
-
className:
|
|
5016
|
+
className: Dr.icon,
|
|
5019
5017
|
"aria-hidden": "true",
|
|
5020
5018
|
children: r.icon
|
|
5021
5019
|
}),
|
|
5022
5020
|
/* @__PURE__ */ n("span", {
|
|
5023
|
-
className:
|
|
5021
|
+
className: Dr.copy,
|
|
5024
5022
|
children: [/* @__PURE__ */ t("span", {
|
|
5025
|
-
className:
|
|
5023
|
+
className: Dr.label,
|
|
5026
5024
|
children: r.label
|
|
5027
5025
|
}), r.description && /* @__PURE__ */ t("span", {
|
|
5028
|
-
className:
|
|
5026
|
+
className: Dr.description,
|
|
5029
5027
|
children: r.description
|
|
5030
5028
|
})]
|
|
5031
5029
|
}),
|
|
5032
5030
|
r.badge && /* @__PURE__ */ t("span", {
|
|
5033
|
-
className:
|
|
5031
|
+
className: Dr.badge,
|
|
5034
5032
|
children: r.badge
|
|
5035
5033
|
})
|
|
5036
5034
|
] }),
|
|
5037
|
-
className: `${
|
|
5035
|
+
className: `${Dr.link} ${a ? Dr.current : ""}`,
|
|
5038
5036
|
tabIndex: r.id === b ? 0 : -1,
|
|
5039
5037
|
"aria-current": a ? "page" : void 0,
|
|
5040
5038
|
"aria-disabled": r.disabled ? !0 : void 0,
|
|
@@ -5050,7 +5048,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5050
5048
|
onKeyDown: (e) => S(e, r)
|
|
5051
5049
|
};
|
|
5052
5050
|
return /* @__PURE__ */ t("li", {
|
|
5053
|
-
className:
|
|
5051
|
+
className: Dr.item,
|
|
5054
5052
|
children: u ? u(r, o) : r.href ? /* @__PURE__ */ t("a", {
|
|
5055
5053
|
href: r.href,
|
|
5056
5054
|
...o,
|
|
@@ -5065,45 +5063,45 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5065
5063
|
};
|
|
5066
5064
|
return /* @__PURE__ */ n("nav", {
|
|
5067
5065
|
ref: g,
|
|
5068
|
-
className: `${
|
|
5066
|
+
className: `${Dr.root} ${p}`,
|
|
5069
5067
|
"aria-label": a,
|
|
5070
5068
|
children: [
|
|
5071
5069
|
s && /* @__PURE__ */ t("div", {
|
|
5072
|
-
className:
|
|
5070
|
+
className: Dr.topSlot,
|
|
5073
5071
|
children: s
|
|
5074
5072
|
}),
|
|
5075
5073
|
o && /* @__PURE__ */ t("div", {
|
|
5076
|
-
className:
|
|
5074
|
+
className: Dr.searchSlot,
|
|
5077
5075
|
children: o
|
|
5078
5076
|
}),
|
|
5079
5077
|
/* @__PURE__ */ n("div", {
|
|
5080
|
-
className:
|
|
5078
|
+
className: Dr.groups,
|
|
5081
5079
|
children: [r.map((e) => {
|
|
5082
5080
|
let r = `${m}-${e.id}`;
|
|
5083
5081
|
return /* @__PURE__ */ n("section", {
|
|
5084
|
-
className:
|
|
5082
|
+
className: Dr.group,
|
|
5085
5083
|
"aria-labelledby": e.label ? r : void 0,
|
|
5086
5084
|
children: [e.label && /* @__PURE__ */ t("div", {
|
|
5087
5085
|
id: r,
|
|
5088
|
-
className:
|
|
5086
|
+
className: Dr.groupLabel,
|
|
5089
5087
|
children: e.label
|
|
5090
5088
|
}), /* @__PURE__ */ t("ul", {
|
|
5091
|
-
className:
|
|
5089
|
+
className: Dr.list,
|
|
5092
5090
|
children: e.items.map(C)
|
|
5093
5091
|
})]
|
|
5094
5092
|
}, e.id);
|
|
5095
5093
|
}), v.length === 0 && l && /* @__PURE__ */ t("div", {
|
|
5096
|
-
className:
|
|
5094
|
+
className: Dr.empty,
|
|
5097
5095
|
children: l
|
|
5098
5096
|
})]
|
|
5099
5097
|
}),
|
|
5100
5098
|
c && /* @__PURE__ */ t("div", {
|
|
5101
|
-
className:
|
|
5099
|
+
className: Dr.bottomSlot,
|
|
5102
5100
|
children: c
|
|
5103
5101
|
})
|
|
5104
5102
|
]
|
|
5105
5103
|
});
|
|
5106
|
-
},
|
|
5104
|
+
}, Ar = {
|
|
5107
5105
|
root: "_root_2mdgb_1",
|
|
5108
5106
|
list: "_list_2mdgb_19",
|
|
5109
5107
|
item: "_item_2mdgb_37",
|
|
@@ -5113,7 +5111,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5113
5111
|
icon: "_icon_2mdgb_141",
|
|
5114
5112
|
badge: "_badge_2mdgb_149",
|
|
5115
5113
|
label: "_label_2mdgb_163"
|
|
5116
|
-
},
|
|
5114
|
+
}, jr = ({ items: r, currentItemId: i, ariaLabel: a = "Мобильная навигация", renderLink: o, onItemSelect: s, className: c = "" }) => {
|
|
5117
5115
|
let l = h(null), u = r.filter((e) => !e.disabled), d = u.some((e) => e.id === i) ? i : u[0]?.id, f = (e) => {
|
|
5118
5116
|
l.current?.querySelectorAll("[data-ds-navigation-item]")[e]?.focus();
|
|
5119
5117
|
}, p = (e, t) => {
|
|
@@ -5130,27 +5128,27 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5130
5128
|
};
|
|
5131
5129
|
return /* @__PURE__ */ t("nav", {
|
|
5132
5130
|
ref: l,
|
|
5133
|
-
className: `${
|
|
5131
|
+
className: `${Ar.root} ${c}`,
|
|
5134
5132
|
"aria-label": a,
|
|
5135
5133
|
children: /* @__PURE__ */ t("ul", {
|
|
5136
|
-
className:
|
|
5134
|
+
className: Ar.list,
|
|
5137
5135
|
children: r.map((r) => {
|
|
5138
5136
|
let a = r.id === i, c = {
|
|
5139
5137
|
children: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("span", {
|
|
5140
|
-
className:
|
|
5138
|
+
className: Ar.visual,
|
|
5141
5139
|
children: [r.icon && /* @__PURE__ */ t("span", {
|
|
5142
|
-
className:
|
|
5140
|
+
className: Ar.icon,
|
|
5143
5141
|
"aria-hidden": "true",
|
|
5144
5142
|
children: r.icon
|
|
5145
5143
|
}), r.badge && /* @__PURE__ */ t("span", {
|
|
5146
|
-
className:
|
|
5144
|
+
className: Ar.badge,
|
|
5147
5145
|
children: r.badge
|
|
5148
5146
|
})]
|
|
5149
5147
|
}), /* @__PURE__ */ t("span", {
|
|
5150
|
-
className:
|
|
5148
|
+
className: Ar.label,
|
|
5151
5149
|
children: r.label
|
|
5152
5150
|
})] }),
|
|
5153
|
-
className: `${
|
|
5151
|
+
className: `${Ar.link} ${a ? Ar.current : ""}`,
|
|
5154
5152
|
tabIndex: r.id === d ? 0 : -1,
|
|
5155
5153
|
"aria-current": a ? "page" : void 0,
|
|
5156
5154
|
"aria-disabled": r.disabled ? !0 : void 0,
|
|
@@ -5166,7 +5164,7 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5166
5164
|
onKeyDown: (e) => p(e, r)
|
|
5167
5165
|
};
|
|
5168
5166
|
return /* @__PURE__ */ t("li", {
|
|
5169
|
-
className:
|
|
5167
|
+
className: Ar.item,
|
|
5170
5168
|
children: o ? o(r, c) : r.href ? /* @__PURE__ */ t("a", {
|
|
5171
5169
|
href: r.href,
|
|
5172
5170
|
...c,
|
|
@@ -5183,4 +5181,4 @@ var En = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5183
5181
|
});
|
|
5184
5182
|
};
|
|
5185
5183
|
//#endregion
|
|
5186
|
-
export {
|
|
5184
|
+
export { Fn as ConfirmModal, Er as DSAccordion, w as DSBadge, jr as DSBottomNavigation, Zn as DSBottomSheet, j as DSButton, Ne as DSCheckbox, D as DSCounterBadge, zt as DSDataTable, nt as DSDateRange, $e as DSDateTimePicker, Xn as DSDrawer, ut as DSDropDown, yt as DSDropDownMultiple, ee as DSFieldLabel, N as DSFieldMessage, cn as DSFileInput, Qt as DSFilters, un as DSFloatingMenu, en as DSFormGrid, tn as DSFormGridItem, Qn as DSFullscreenDialog, Y as DSIcon, je as DSIconNames, Xt as DSInfoBlock, mt as DSInput, k as DSLoader, kn as DSModal, On as DSModalFrame, kr as DSNavigationSurface, Yn as DSOverlay, er as DSPageLoader, ln as DSPortal, xt as DSRadioButton, Jt as DSSearchDropDown, it as DSSkeleton, ft as DSSort, _r as DSTabs, mn as DSTextarea, rr as DSToast, sr as DSToastProvider, hr as DSTooltip, nn as DSValidationSummary, Cr as DSVideoPlayerFrame, In as ErrorModal, An as ModalSystemProvider, Ln as builtInModalRegistry, jn as defineModalRegistry, E as formatDSCounterValue, ze as formatDateInputValue, Ge as formatDateTimeLocalValue, Tr as getDSAccordionScrollTarget, Dt as getDSDataTableColumnStyle, kt as getDSDataTablePaginationItems, Ot as getDSDataTableStickyColumnStyle, zn as getErrorMessage, Et as getNextDSDataTablePageSelection, ct as getNextEnabledOptionIndex, He as isValidDateInputPrefix, tt as isValidDateRange, Be as maskDateInputValue, Ue as parseDateInputValue, Ke as parseDateTimeLocalValue, _n as resetModalStore, or as resetToastStore, Rn as useConfirmModal, Vn as useConfirmModalStore, Jn as useDSOverlay, Bn as useErrorModal, Hn as useErrorModalStore, Un as useModals, gn as useModalsStore, cr as useToast, ar as useToastStore, At as validateDSDataTableData };
|