@efficiency-point/design-system 0.9.2 → 0.10.1
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 +12 -4
- package/dist/components/DSAccordion/DSAccordion.d.ts +2 -1
- package/dist/components/DSAccordion/DSAccordion.d.ts.map +1 -1
- package/dist/components/DSIcon/source/IconServiceApps.d.ts +7 -0
- package/dist/components/DSIcon/source/IconServiceApps.d.ts.map +1 -0
- package/dist/components/DSIcon/source/index.d.ts +5 -0
- package/dist/components/DSIcon/source/index.d.ts.map +1 -1
- package/dist/components/DSOverlay/DSOverlay.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.es.js +698 -603
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -113,17 +113,17 @@ var C = "efficiency-point.design-system.theme", w = {
|
|
|
113
113
|
]
|
|
114
114
|
})
|
|
115
115
|
}), te = {
|
|
116
|
-
button: "
|
|
117
|
-
sm: "
|
|
118
|
-
md: "
|
|
119
|
-
lg: "
|
|
120
|
-
primary: "
|
|
121
|
-
secondary: "
|
|
122
|
-
outline: "
|
|
123
|
-
ghost: "
|
|
124
|
-
empty: "
|
|
125
|
-
destructive: "
|
|
126
|
-
destructiveOutline: "
|
|
116
|
+
button: "_button_1lavd_1",
|
|
117
|
+
sm: "_sm_1lavd_59",
|
|
118
|
+
md: "_md_1lavd_73",
|
|
119
|
+
lg: "_lg_1lavd_87",
|
|
120
|
+
primary: "_primary_1lavd_101",
|
|
121
|
+
secondary: "_secondary_1lavd_115",
|
|
122
|
+
outline: "_outline_1lavd_129",
|
|
123
|
+
ghost: "_ghost_1lavd_143",
|
|
124
|
+
empty: "_empty_1lavd_157",
|
|
125
|
+
destructive: "_destructive_1lavd_171",
|
|
126
|
+
destructiveOutline: "_destructiveOutline_1lavd_183"
|
|
127
127
|
}, B = s(({ children: e, variant: n = "primary", size: r = "md", isLoading: i = !1, disabled: a, type: o = "button", className: s = "", ...c }, l) => /* @__PURE__ */ t("button", {
|
|
128
128
|
ref: l,
|
|
129
129
|
className: `${te.button} ${te[n]} ${te[r]} ${s}`,
|
|
@@ -375,13 +375,80 @@ var V = {
|
|
|
375
375
|
y2: "17"
|
|
376
376
|
})
|
|
377
377
|
]
|
|
378
|
-
}), Le = (e) => /* @__PURE__ */
|
|
378
|
+
}), Le = (e) => /* @__PURE__ */ n(U, {
|
|
379
379
|
...e,
|
|
380
|
-
children:
|
|
380
|
+
children: [
|
|
381
|
+
/* @__PURE__ */ t("circle", {
|
|
382
|
+
cx: "8",
|
|
383
|
+
cy: "7",
|
|
384
|
+
r: "3"
|
|
385
|
+
}),
|
|
386
|
+
/* @__PURE__ */ t("path", { d: "M2.5 18.5c.5-3.4 2.3-5.5 5.5-5.5 2 0 3.5.8 4.4 2.2" }),
|
|
387
|
+
/* @__PURE__ */ t("rect", {
|
|
388
|
+
x: "13",
|
|
389
|
+
y: "11",
|
|
390
|
+
width: "8.5",
|
|
391
|
+
height: "8",
|
|
392
|
+
rx: "1.5"
|
|
393
|
+
}),
|
|
394
|
+
/* @__PURE__ */ t("path", { d: "M15.5 14h3.5M15.5 16.5h2.5" })
|
|
395
|
+
]
|
|
381
396
|
}), Re = (e) => /* @__PURE__ */ n(U, {
|
|
382
397
|
...e,
|
|
383
|
-
children: [
|
|
398
|
+
children: [
|
|
399
|
+
/* @__PURE__ */ t("circle", {
|
|
400
|
+
cx: "12",
|
|
401
|
+
cy: "12",
|
|
402
|
+
r: "8.5"
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ t("path", { d: "M12 7.5V12l3 2" }),
|
|
405
|
+
/* @__PURE__ */ t("path", { d: "m4.5 4.5 2 2M19.5 4.5l-2 2" }),
|
|
406
|
+
/* @__PURE__ */ t("path", { d: "m7.5 18.5 1.5 1.5 3-3" })
|
|
407
|
+
]
|
|
384
408
|
}), ze = (e) => /* @__PURE__ */ n(U, {
|
|
409
|
+
...e,
|
|
410
|
+
children: [
|
|
411
|
+
/* @__PURE__ */ t("path", { d: "m3 9 9-6 9 6v11H3V9Z" }),
|
|
412
|
+
/* @__PURE__ */ t("path", { d: "M6 17v-4.5h12V17M6 15h12" }),
|
|
413
|
+
/* @__PURE__ */ t("path", { d: "M8.5 12.5V11h3v1.5M12.5 12.5V11h3v1.5" })
|
|
414
|
+
]
|
|
415
|
+
}), Be = (e) => /* @__PURE__ */ n(U, {
|
|
416
|
+
...e,
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ t("path", { d: "M5 3.5h10a2 2 0 0 1 2 2V10M5 3.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h7" }),
|
|
419
|
+
/* @__PURE__ */ t("path", { d: "M7 8h6M7 11.5h4" }),
|
|
420
|
+
/* @__PURE__ */ t("circle", {
|
|
421
|
+
cx: "17",
|
|
422
|
+
cy: "16",
|
|
423
|
+
r: "4.5"
|
|
424
|
+
}),
|
|
425
|
+
/* @__PURE__ */ t("path", { d: "m15.2 16 1.2 1.2 2.5-2.7" })
|
|
426
|
+
]
|
|
427
|
+
}), Ve = (e) => /* @__PURE__ */ n(U, {
|
|
428
|
+
...e,
|
|
429
|
+
children: [
|
|
430
|
+
/* @__PURE__ */ t("rect", {
|
|
431
|
+
x: "2.5",
|
|
432
|
+
y: "5",
|
|
433
|
+
width: "13",
|
|
434
|
+
height: "11",
|
|
435
|
+
rx: "2"
|
|
436
|
+
}),
|
|
437
|
+
/* @__PURE__ */ t("circle", {
|
|
438
|
+
cx: "9",
|
|
439
|
+
cy: "10.5",
|
|
440
|
+
r: "3"
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ t("path", { d: "m15.5 9 6-2.5v8l-6-2.5" }),
|
|
443
|
+
/* @__PURE__ */ t("path", { d: "M5 20h3v-1.5M10.5 20h3v-3M16 20h3v-4.5" })
|
|
444
|
+
]
|
|
445
|
+
}), He = (e) => /* @__PURE__ */ t(U, {
|
|
446
|
+
...e,
|
|
447
|
+
children: /* @__PURE__ */ t("path", { d: "m21.4 11.6-8.9 8.9a6 6 0 0 1-8.5-8.5l9.6-9.6a4 4 0 0 1 5.7 5.7l-9.6 9.6a2 2 0 0 1-2.8-2.8l8.9-8.9" })
|
|
448
|
+
}), Ue = (e) => /* @__PURE__ */ n(U, {
|
|
449
|
+
...e,
|
|
450
|
+
children: [/* @__PURE__ */ t("path", { d: "m22 2-7 20-4-9-9-4Z" }), /* @__PURE__ */ t("path", { d: "M22 2 11 13" })]
|
|
451
|
+
}), We = (e) => /* @__PURE__ */ n(U, {
|
|
385
452
|
...e,
|
|
386
453
|
children: [
|
|
387
454
|
/* @__PURE__ */ t("circle", {
|
|
@@ -392,7 +459,7 @@ var V = {
|
|
|
392
459
|
/* @__PURE__ */ t("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }),
|
|
393
460
|
/* @__PURE__ */ t("path", { d: "M9 9h.01M15 9h.01" })
|
|
394
461
|
]
|
|
395
|
-
}),
|
|
462
|
+
}), Ge = (e) => /* @__PURE__ */ n(U, {
|
|
396
463
|
...e,
|
|
397
464
|
children: [
|
|
398
465
|
/* @__PURE__ */ t("circle", {
|
|
@@ -417,7 +484,7 @@ var V = {
|
|
|
417
484
|
stroke: "none"
|
|
418
485
|
})
|
|
419
486
|
]
|
|
420
|
-
}),
|
|
487
|
+
}), Ke = (e) => /* @__PURE__ */ t(U, {
|
|
421
488
|
...e,
|
|
422
489
|
children: [
|
|
423
490
|
5,
|
|
@@ -440,8 +507,8 @@ var V = {
|
|
|
440
507
|
...t,
|
|
441
508
|
key: t.key ?? `${e}-${n}`
|
|
442
509
|
}))
|
|
443
|
-
}),
|
|
444
|
-
IconAppsGrid:
|
|
510
|
+
}), qe = {
|
|
511
|
+
IconAppsGrid: Ke,
|
|
445
512
|
IconActivity: q([["path", {
|
|
446
513
|
d: "M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",
|
|
447
514
|
key: "169zse"
|
|
@@ -1111,19 +1178,24 @@ var V = {
|
|
|
1111
1178
|
IconInfo: pe,
|
|
1112
1179
|
IconInfoCircle: me,
|
|
1113
1180
|
IconMinus: ge,
|
|
1114
|
-
IconMoreVertical:
|
|
1181
|
+
IconMoreVertical: Ge,
|
|
1115
1182
|
IconList: K,
|
|
1116
1183
|
IconPanelsTopLeft: _e,
|
|
1117
1184
|
IconPause: ve,
|
|
1118
|
-
IconPaperclip:
|
|
1185
|
+
IconPaperclip: He,
|
|
1119
1186
|
IconPlus: ye,
|
|
1120
1187
|
IconPlug: be,
|
|
1121
1188
|
IconPictureInPicture: xe,
|
|
1122
1189
|
IconPlay: Se,
|
|
1123
1190
|
IconReplay: Ce,
|
|
1124
1191
|
IconSettings: we,
|
|
1125
|
-
|
|
1126
|
-
|
|
1192
|
+
IconServiceChronometry: Re,
|
|
1193
|
+
IconServiceFinances: Be,
|
|
1194
|
+
IconServiceAccommodation: ze,
|
|
1195
|
+
IconServicePersonnel: Le,
|
|
1196
|
+
IconServiceRegistrar: Ve,
|
|
1197
|
+
IconSend: Ue,
|
|
1198
|
+
IconSmile: We,
|
|
1127
1199
|
IconFullscreen: Te,
|
|
1128
1200
|
IconFullscreenExit: Ee,
|
|
1129
1201
|
IconCaptions: De,
|
|
@@ -1136,25 +1208,25 @@ var V = {
|
|
|
1136
1208
|
IconUpload: Pe,
|
|
1137
1209
|
IconWarning: Fe,
|
|
1138
1210
|
IconTrash2: Ie
|
|
1139
|
-
},
|
|
1140
|
-
let r =
|
|
1211
|
+
}, Je = Object.freeze(Object.keys(qe)), J = ({ name: e, ...n }) => {
|
|
1212
|
+
let r = qe[e];
|
|
1141
1213
|
return /* @__PURE__ */ t(r, { ...n });
|
|
1142
|
-
},
|
|
1214
|
+
}, Ye = {
|
|
1143
1215
|
wrapper: "_wrapper_1seon_1",
|
|
1144
1216
|
label: "_label_1seon_13",
|
|
1145
1217
|
input: "_input_1seon_35",
|
|
1146
1218
|
control: "_control_1seon_49",
|
|
1147
1219
|
disabled: "_disabled_1seon_95",
|
|
1148
1220
|
controlError: "_controlError_1seon_121"
|
|
1149
|
-
},
|
|
1221
|
+
}, Xe = ({ checked: e, onChange: r, label: i, hint: a, error: o, disabled: s = !1, readOnly: c = !1, className: l = "", name: u, id: p, indeterminate: m = !1, ariaLabel: g, ..._ }) => {
|
|
1150
1222
|
let v = f(), y = p ?? `ds-checkbox-${u ?? v}`, b = h(null), x = a ? `${y}-hint` : void 0, S = o ? `${y}-error` : void 0;
|
|
1151
1223
|
return d(() => {
|
|
1152
1224
|
b.current && (b.current.indeterminate = m && !e);
|
|
1153
1225
|
}, [e, m]), /* @__PURE__ */ n("div", {
|
|
1154
|
-
className: `${
|
|
1226
|
+
className: `${Ye.wrapper} ${l}`,
|
|
1155
1227
|
children: [
|
|
1156
1228
|
/* @__PURE__ */ n("label", {
|
|
1157
|
-
className: `${
|
|
1229
|
+
className: `${Ye.label} ${s ? Ye.disabled : ""}`,
|
|
1158
1230
|
htmlFor: y,
|
|
1159
1231
|
children: [
|
|
1160
1232
|
/* @__PURE__ */ t("input", {
|
|
@@ -1168,14 +1240,14 @@ var V = {
|
|
|
1168
1240
|
"aria-invalid": !!o,
|
|
1169
1241
|
"aria-describedby": [x, S].filter(Boolean).join(" ") || void 0,
|
|
1170
1242
|
"aria-label": g,
|
|
1171
|
-
className:
|
|
1243
|
+
className: Ye.input,
|
|
1172
1244
|
onChange: (e) => {
|
|
1173
1245
|
c || r?.(e.target.checked, e);
|
|
1174
1246
|
},
|
|
1175
1247
|
..._
|
|
1176
1248
|
}),
|
|
1177
1249
|
/* @__PURE__ */ n("span", {
|
|
1178
|
-
className: `${
|
|
1250
|
+
className: `${Ye.control} ${o ? Ye.controlError : ""}`,
|
|
1179
1251
|
"aria-hidden": "true",
|
|
1180
1252
|
children: [m && !e && /* @__PURE__ */ t(J, {
|
|
1181
1253
|
name: "IconMinus",
|
|
@@ -1232,7 +1304,7 @@ var V = {
|
|
|
1232
1304
|
timeLabel: "_timeLabel_su17c_533",
|
|
1233
1305
|
previousMonth: "_previousMonth_su17c_593",
|
|
1234
1306
|
nextMonth: "_nextMonth_su17c_601"
|
|
1235
|
-
},
|
|
1307
|
+
}, Ze = [
|
|
1236
1308
|
"Пн",
|
|
1237
1309
|
"Вт",
|
|
1238
1310
|
"Ср",
|
|
@@ -1240,7 +1312,7 @@ var V = {
|
|
|
1240
1312
|
"Пт",
|
|
1241
1313
|
"Сб",
|
|
1242
1314
|
"Вс"
|
|
1243
|
-
],
|
|
1315
|
+
], Qe = [
|
|
1244
1316
|
"Январь",
|
|
1245
1317
|
"Февраль",
|
|
1246
1318
|
"Март",
|
|
@@ -1253,33 +1325,33 @@ var V = {
|
|
|
1253
1325
|
"Октябрь",
|
|
1254
1326
|
"Ноябрь",
|
|
1255
1327
|
"Декабрь"
|
|
1256
|
-
],
|
|
1257
|
-
let t = e.replace(/\D/g, "").slice(0,
|
|
1328
|
+
], $e = (e) => String(e).padStart(2, "0"), et = 8, tt = "Некорректная дата", nt = (e) => e ? `${$e(e.getDate())}.${$e(e.getMonth() + 1)}.${e.getFullYear()}` : "", rt = (e) => {
|
|
1329
|
+
let t = e.replace(/\D/g, "").slice(0, et);
|
|
1258
1330
|
return [
|
|
1259
1331
|
t.slice(0, 2),
|
|
1260
1332
|
t.slice(2, 4),
|
|
1261
1333
|
t.slice(4, 8)
|
|
1262
1334
|
].filter(Boolean).join(".");
|
|
1263
|
-
},
|
|
1335
|
+
}, it = (e) => {
|
|
1264
1336
|
if (!e) return !0;
|
|
1265
1337
|
let t = Number(e.padEnd(4, "0"));
|
|
1266
1338
|
return Number(e.padEnd(4, "9")) >= 1800 && t <= 2500;
|
|
1267
|
-
},
|
|
1339
|
+
}, at = (e) => {
|
|
1268
1340
|
if (!/^\d{0,8}$/.test(e)) return !1;
|
|
1269
1341
|
let t = e.slice(0, 2), n = e.slice(2, 4), r = e.slice(4, 8);
|
|
1270
|
-
return t.length === 1 && Number(t) > 3 || t.length === 2 && (Number(t) < 1 || Number(t) > 31) || n.length === 1 && Number(n) > 1 || n.length === 2 && (Number(n) < 1 || Number(n) > 12) ? !1 :
|
|
1271
|
-
},
|
|
1342
|
+
return t.length === 1 && Number(t) > 3 || t.length === 2 && (Number(t) < 1 || Number(t) > 31) || n.length === 1 && Number(n) > 1 || n.length === 2 && (Number(n) < 1 || Number(n) > 12) ? !1 : it(r);
|
|
1343
|
+
}, ot = (e) => {
|
|
1272
1344
|
let t = /^(\d{2})\.(\d{2})\.(\d{4})$/.exec(e);
|
|
1273
1345
|
if (!t) return null;
|
|
1274
1346
|
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]);
|
|
1275
1347
|
if (i < 1800 || i > 2500) return null;
|
|
1276
1348
|
let a = new Date(i, r, n, 12);
|
|
1277
1349
|
return a.getFullYear() !== i || a.getMonth() !== r || a.getDate() !== n ? null : a;
|
|
1278
|
-
},
|
|
1350
|
+
}, st = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), ct = (e, t) => {
|
|
1279
1351
|
if (!e) return "";
|
|
1280
|
-
let n = `${e.getFullYear()}-${
|
|
1352
|
+
let n = `${e.getFullYear()}-${$e(e.getMonth() + 1)}-${$e(e.getDate())}`, r = `${$e(e.getHours())}:${$e(e.getMinutes())}`;
|
|
1281
1353
|
return t === "date" ? n : t === "time" ? r : `${n}T${r}`;
|
|
1282
|
-
},
|
|
1354
|
+
}, lt = (e, t) => {
|
|
1283
1355
|
if (!e) return null;
|
|
1284
1356
|
if (t === "time") {
|
|
1285
1357
|
let t = /^(\d{2}):(\d{2})$/.exec(e);
|
|
@@ -1297,33 +1369,33 @@ var V = {
|
|
|
1297
1369
|
}
|
|
1298
1370
|
let n = new Date(e);
|
|
1299
1371
|
return Number.isNaN(n.getTime()) ? null : n;
|
|
1300
|
-
},
|
|
1372
|
+
}, ut = (e, t) => {
|
|
1301
1373
|
if (!e) return "";
|
|
1302
|
-
let n = `${
|
|
1374
|
+
let n = `${$e(e.getDate())}.${$e(e.getMonth() + 1)}.${e.getFullYear()}`, r = `${$e(e.getHours())}:${$e(e.getMinutes())}`;
|
|
1303
1375
|
return t === "date" ? n : t === "time" ? r : `${n} ${r}`;
|
|
1304
|
-
},
|
|
1376
|
+
}, dt = (e) => {
|
|
1305
1377
|
let t = new Date(e.getFullYear(), e.getMonth(), 1), n = (t.getDay() + 6) % 7, r = new Date(t);
|
|
1306
1378
|
return r.setDate(t.getDate() - n), Array.from({ length: 42 }, (e, t) => {
|
|
1307
1379
|
let n = new Date(r);
|
|
1308
1380
|
return n.setDate(r.getDate() + t), n;
|
|
1309
1381
|
});
|
|
1310
|
-
},
|
|
1311
|
-
let r =
|
|
1312
|
-
return !!(t && r <
|
|
1313
|
-
},
|
|
1314
|
-
let D = f(), O = w ?? `ds-date-time-${T ?? D}`, k = c ? `${O}-hint` : void 0, A = u ? `${O}-error` : void 0, j = h(null), M = h(null), N = h(null), P = h(null), [F, I] = g(!1), [L, R] = g(r ?? /* @__PURE__ */ new Date()), [z, ee] = g(
|
|
1382
|
+
}, ft = (e, t) => !!(e && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate()), pt = (e, t, n) => {
|
|
1383
|
+
let r = st(e).getTime();
|
|
1384
|
+
return !!(t && r < st(t).getTime() || n && r > st(n).getTime());
|
|
1385
|
+
}, mt = 8, ht = 6, gt = ({ value: r, onChange: i, mode: a = "date", label: o, placeholder: s, hint: c, error: u, disabled: v = !1, readOnly: y = !1, required: b = !1, min: x, max: S, size: C = "md", id: w, name: T, className: E = "" }) => {
|
|
1386
|
+
let D = f(), O = w ?? `ds-date-time-${T ?? D}`, k = c ? `${O}-hint` : void 0, A = u ? `${O}-error` : void 0, j = h(null), M = h(null), N = h(null), P = h(null), [F, I] = g(!1), [L, R] = g(r ?? /* @__PURE__ */ new Date()), [z, ee] = g(ct(r, "time")), [te, B] = g(nt(r)), [V, U] = g(""), [W, re] = g(0), [ie, ae] = g(null), oe = m(() => dt(L), [L]), se = a !== "time", ce = a !== "date";
|
|
1315
1387
|
d(() => {
|
|
1316
|
-
r && R(r), ee(
|
|
1388
|
+
r && R(r), ee(ct(r, "time")), B(nt(r));
|
|
1317
1389
|
}, [r]), d(() => () => {
|
|
1318
1390
|
P.current && clearTimeout(P.current);
|
|
1319
1391
|
}, []);
|
|
1320
1392
|
let G = l(() => {
|
|
1321
1393
|
let e = M.current, t = N.current;
|
|
1322
1394
|
if (!e || !t) return;
|
|
1323
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight - n.bottom -
|
|
1395
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight - n.bottom - mt, o = n.top - mt, s = a < r.height && o > a, c = Math.max(120, s ? o : a), l = s ? Math.max(mt, n.top - r.height - ht) : n.bottom + ht, u = n.left, d = i - r.width - mt;
|
|
1324
1396
|
ae({
|
|
1325
1397
|
top: l,
|
|
1326
|
-
left: Math.max(
|
|
1398
|
+
left: Math.max(mt, Math.min(u, d)),
|
|
1327
1399
|
maxHeight: c
|
|
1328
1400
|
});
|
|
1329
1401
|
}, []);
|
|
@@ -1353,27 +1425,27 @@ var V = {
|
|
|
1353
1425
|
};
|
|
1354
1426
|
}, [F]);
|
|
1355
1427
|
let le = (e) => {
|
|
1356
|
-
if (
|
|
1357
|
-
let t = a === "date" ?
|
|
1358
|
-
t && (a !== "date" && t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), B(
|
|
1428
|
+
if (pt(e, x, S)) return;
|
|
1429
|
+
let t = a === "date" ? lt(ct(e, "date"), "date") : new Date(e);
|
|
1430
|
+
t && (a !== "date" && t.setHours(r?.getHours() ?? 0, r?.getMinutes() ?? 0, 0, 0), i?.(t), B(nt(t)), a === "date" && I(!1));
|
|
1359
1431
|
}, ue = () => {
|
|
1360
|
-
U(
|
|
1432
|
+
U(tt), re((e) => e + 1), P.current && clearTimeout(P.current), P.current = setTimeout(() => {
|
|
1361
1433
|
U(""), P.current = null;
|
|
1362
1434
|
}, 3e3);
|
|
1363
1435
|
}, de = (e) => {
|
|
1364
|
-
let t = e.replace(/\D/g, "").slice(0,
|
|
1365
|
-
if (!
|
|
1436
|
+
let t = e.replace(/\D/g, "").slice(0, et);
|
|
1437
|
+
if (!at(t)) {
|
|
1366
1438
|
ue();
|
|
1367
1439
|
return;
|
|
1368
1440
|
}
|
|
1369
|
-
let n =
|
|
1441
|
+
let n = rt(t);
|
|
1370
1442
|
if (B(n), !t) {
|
|
1371
1443
|
i?.(null);
|
|
1372
1444
|
return;
|
|
1373
1445
|
}
|
|
1374
|
-
if (t.length <
|
|
1375
|
-
let o =
|
|
1376
|
-
if (!o ||
|
|
1446
|
+
if (t.length < et) return;
|
|
1447
|
+
let o = ot(n);
|
|
1448
|
+
if (!o || pt(o, x, S)) {
|
|
1377
1449
|
ue();
|
|
1378
1450
|
return;
|
|
1379
1451
|
}
|
|
@@ -1383,7 +1455,7 @@ var V = {
|
|
|
1383
1455
|
i?.(null);
|
|
1384
1456
|
return;
|
|
1385
1457
|
}
|
|
1386
|
-
let t =
|
|
1458
|
+
let t = lt(e, "time");
|
|
1387
1459
|
if (!t) return;
|
|
1388
1460
|
let n = new Date(a === "datetime" ? r ?? L : /* @__PURE__ */ new Date());
|
|
1389
1461
|
n.setHours(t.getHours(), t.getMinutes(), 0, 0), !(x && n < x || S && n > S) && i?.(n);
|
|
@@ -1426,7 +1498,7 @@ var V = {
|
|
|
1426
1498
|
"aria-label": "Месяц",
|
|
1427
1499
|
value: L.getMonth(),
|
|
1428
1500
|
onChange: (e) => R(new Date(L.getFullYear(), Number(e.target.value), 1)),
|
|
1429
|
-
children:
|
|
1501
|
+
children: Qe.map((e, n) => /* @__PURE__ */ t("option", {
|
|
1430
1502
|
value: n,
|
|
1431
1503
|
children: e
|
|
1432
1504
|
}, e))
|
|
@@ -1454,16 +1526,16 @@ var V = {
|
|
|
1454
1526
|
}),
|
|
1455
1527
|
/* @__PURE__ */ t("div", {
|
|
1456
1528
|
className: Y.weekdays,
|
|
1457
|
-
children:
|
|
1529
|
+
children: Ze.map((e) => /* @__PURE__ */ t("span", { children: e }, e))
|
|
1458
1530
|
}),
|
|
1459
1531
|
/* @__PURE__ */ t("div", {
|
|
1460
1532
|
className: Y.days,
|
|
1461
1533
|
children: oe.map((e) => {
|
|
1462
|
-
let n =
|
|
1534
|
+
let n = ft(r, e);
|
|
1463
1535
|
return /* @__PURE__ */ t("button", {
|
|
1464
1536
|
type: "button",
|
|
1465
1537
|
className: `${Y.day} ${e.getMonth() === L.getMonth() ? "" : Y.outside} ${n ? Y.selected : ""}`,
|
|
1466
|
-
disabled:
|
|
1538
|
+
disabled: pt(e, x, S),
|
|
1467
1539
|
"aria-pressed": n,
|
|
1468
1540
|
onClick: () => le(e),
|
|
1469
1541
|
children: e.getDate()
|
|
@@ -1558,7 +1630,7 @@ var V = {
|
|
|
1558
1630
|
},
|
|
1559
1631
|
children: [/* @__PURE__ */ t("span", {
|
|
1560
1632
|
className: r ? Y.value : Y.placeholder,
|
|
1561
|
-
children:
|
|
1633
|
+
children: ut(r, a) || pe
|
|
1562
1634
|
}), /* @__PURE__ */ t("span", {
|
|
1563
1635
|
className: `${Y.chevron} ${ge ? Y.chevronOpen : ""}`,
|
|
1564
1636
|
"aria-hidden": "true",
|
|
@@ -1588,19 +1660,19 @@ var V = {
|
|
|
1588
1660
|
})
|
|
1589
1661
|
]
|
|
1590
1662
|
});
|
|
1591
|
-
},
|
|
1663
|
+
}, _t = {
|
|
1592
1664
|
root: "_root_19vq2_1",
|
|
1593
1665
|
range: "_range_19vq2_21"
|
|
1594
|
-
},
|
|
1666
|
+
}, vt = (e) => !!(e.from && e.to && e.from.getTime() <= e.to.getTime()), yt = ({ value: e, onChange: r, onDraftChange: i, mode: a = "date", fromLabel: o = "От", toLabel: s = "До", hint: c, error: l, min: u, max: d, disabled: f = !1, readOnly: p = !1, required: m = !1, className: h = "" }) => {
|
|
1595
1667
|
let g = l ?? (e.from && e.to && e.from > e.to ? "Дата «От» не может быть позже даты «До»" : void 0), _ = (e) => {
|
|
1596
|
-
i?.(e),
|
|
1668
|
+
i?.(e), vt(e) && r?.(e);
|
|
1597
1669
|
};
|
|
1598
1670
|
return /* @__PURE__ */ n("fieldset", {
|
|
1599
|
-
className: `${
|
|
1671
|
+
className: `${_t.root} ${h}`,
|
|
1600
1672
|
disabled: f,
|
|
1601
1673
|
children: [/* @__PURE__ */ n("div", {
|
|
1602
|
-
className:
|
|
1603
|
-
children: [/* @__PURE__ */ t(
|
|
1674
|
+
className: _t.range,
|
|
1675
|
+
children: [/* @__PURE__ */ t(gt, {
|
|
1604
1676
|
value: e.from,
|
|
1605
1677
|
mode: a === "datetime" ? "datetime" : a,
|
|
1606
1678
|
label: o,
|
|
@@ -1614,7 +1686,7 @@ var V = {
|
|
|
1614
1686
|
...e,
|
|
1615
1687
|
from: t
|
|
1616
1688
|
})
|
|
1617
|
-
}), /* @__PURE__ */ t(
|
|
1689
|
+
}), /* @__PURE__ */ t(gt, {
|
|
1618
1690
|
value: e.to,
|
|
1619
1691
|
mode: a === "datetime" ? "datetime" : a,
|
|
1620
1692
|
label: s,
|
|
@@ -1631,7 +1703,7 @@ var V = {
|
|
|
1631
1703
|
})]
|
|
1632
1704
|
}), c && !g && /* @__PURE__ */ t(H, { children: c })]
|
|
1633
1705
|
});
|
|
1634
|
-
},
|
|
1706
|
+
}, bt = {
|
|
1635
1707
|
group: "_group_ey6uk_1",
|
|
1636
1708
|
skeleton: "_skeleton_ey6uk_15",
|
|
1637
1709
|
text: "_text_ey6uk_27",
|
|
@@ -1639,11 +1711,11 @@ var V = {
|
|
|
1639
1711
|
circular: "_circular_ey6uk_47",
|
|
1640
1712
|
animated: "_animated_ey6uk_59",
|
|
1641
1713
|
"ds-skeleton": "_ds-skeleton_ey6uk_1"
|
|
1642
|
-
},
|
|
1643
|
-
className: `${
|
|
1714
|
+
}, xt = ({ variant: e = "text", width: n = "100%", height: r, lines: i = 1, animated: a = !0, className: o = "" }) => /* @__PURE__ */ t("span", {
|
|
1715
|
+
className: `${bt.group} ${o}`,
|
|
1644
1716
|
"aria-hidden": "true",
|
|
1645
1717
|
children: Array.from({ length: Math.max(1, i) }, (i, o) => /* @__PURE__ */ t("span", {
|
|
1646
|
-
className: `${
|
|
1718
|
+
className: `${bt.skeleton} ${bt[e]} ${a ? bt.animated : ""}`,
|
|
1647
1719
|
style: {
|
|
1648
1720
|
width: n,
|
|
1649
1721
|
height: r
|
|
@@ -1668,25 +1740,25 @@ var V = {
|
|
|
1668
1740
|
message: "_message_1l9o2_391",
|
|
1669
1741
|
error: "_error_1l9o2_393",
|
|
1670
1742
|
errorState: "_errorState_1l9o2_419"
|
|
1671
|
-
},
|
|
1743
|
+
}, St = 8, Ct = 6, wt = 120, Tt = (e, t, n) => {
|
|
1672
1744
|
if (!e.length) return -1;
|
|
1673
1745
|
for (let r = 0; r < e.length; r += 1) {
|
|
1674
1746
|
let i = (t + r * n + e.length) % e.length;
|
|
1675
1747
|
if (!e[i]?.disabled) return i;
|
|
1676
1748
|
}
|
|
1677
1749
|
return -1;
|
|
1678
|
-
},
|
|
1750
|
+
}, Et = (e) => {
|
|
1679
1751
|
if (typeof e == "number") return e;
|
|
1680
1752
|
if (typeof e == "string") {
|
|
1681
1753
|
let t = Number.parseFloat(e);
|
|
1682
1754
|
if (Number.isFinite(t)) return t;
|
|
1683
1755
|
}
|
|
1684
1756
|
return Infinity;
|
|
1685
|
-
},
|
|
1757
|
+
}, Dt = ({ options: e, value: r, onChange: i, placeholder: a = "Выберите опцию", disabled: o = !1, stringWhileDisabled: s = !1, label: c, error: u, size: v = "md", hint: y, className: b = "", required: x = !1, name: S, id: C, needMark: w = !0, maxMenuHeight: T }) => {
|
|
1686
1758
|
let E = f(), D = C ?? `ds-dropdown-${S ?? E}`, O = `${D}-listbox`, [k, A] = g(!1), [j, M] = g(null), N = h(null), P = h(null), F = h(null), I = h([]), L = m(() => e.find((e) => e.value === r), [e, r]), R = y ? `${D}-hint` : void 0, z = u ? `${D}-error` : void 0, ee = [R, z].filter(Boolean).join(" ") || void 0, te = o && s, B = l(() => {
|
|
1687
1759
|
let e = P.current, t = F.current;
|
|
1688
1760
|
if (!e || !t) return;
|
|
1689
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight - n.bottom -
|
|
1761
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight - n.bottom - St, o = n.top - St, s = a < r.height && o > a, c = Math.max(wt, s ? o : a), l = Et(T), u = Math.min(c, l), d = n.left, f = i - n.width - St, p = Math.max(St, Math.min(d, f)), m = s ? Math.max(St, n.top - r.height - Ct) : n.bottom + Ct;
|
|
1690
1762
|
M({
|
|
1691
1763
|
top: m,
|
|
1692
1764
|
left: p,
|
|
@@ -1719,7 +1791,7 @@ var V = {
|
|
|
1719
1791
|
};
|
|
1720
1792
|
}, [k]);
|
|
1721
1793
|
let V = (t, n) => {
|
|
1722
|
-
let r =
|
|
1794
|
+
let r = Tt(e, t, n);
|
|
1723
1795
|
if (r === -1) return;
|
|
1724
1796
|
let i = I.current[r];
|
|
1725
1797
|
i?.focus(), i?.scrollIntoView({ block: "nearest" });
|
|
@@ -1862,25 +1934,25 @@ var V = {
|
|
|
1862
1934
|
})
|
|
1863
1935
|
]
|
|
1864
1936
|
});
|
|
1865
|
-
},
|
|
1937
|
+
}, Ot = (e) => `${e.id}:${e.direction}`, kt = ({ options: e, value: n, onChange: r, label: i = "Сортировка", placeholder: a = "Выберите сортировку", disabled: o = !1, className: s }) => {
|
|
1866
1938
|
let c = e.flatMap((e) => [{
|
|
1867
|
-
value:
|
|
1939
|
+
value: Ot({
|
|
1868
1940
|
id: e.id,
|
|
1869
1941
|
direction: "asc"
|
|
1870
1942
|
}),
|
|
1871
1943
|
label: e.ascLabel ?? `${e.label} · по возрастанию`,
|
|
1872
1944
|
disabled: e.disabled
|
|
1873
1945
|
}, {
|
|
1874
|
-
value:
|
|
1946
|
+
value: Ot({
|
|
1875
1947
|
id: e.id,
|
|
1876
1948
|
direction: "desc"
|
|
1877
1949
|
}),
|
|
1878
1950
|
label: e.descLabel ?? `${e.label} · по убыванию`,
|
|
1879
1951
|
disabled: e.disabled
|
|
1880
1952
|
}]);
|
|
1881
|
-
return /* @__PURE__ */ t(
|
|
1953
|
+
return /* @__PURE__ */ t(Dt, {
|
|
1882
1954
|
options: c,
|
|
1883
|
-
value: n ?
|
|
1955
|
+
value: n ? Ot(n) : "",
|
|
1884
1956
|
label: i,
|
|
1885
1957
|
placeholder: a,
|
|
1886
1958
|
disabled: o,
|
|
@@ -1893,7 +1965,7 @@ var V = {
|
|
|
1893
1965
|
});
|
|
1894
1966
|
}
|
|
1895
1967
|
});
|
|
1896
|
-
},
|
|
1968
|
+
}, At = {
|
|
1897
1969
|
wrapper: "_wrapper_1qpd5_1",
|
|
1898
1970
|
control: "_control_1qpd5_15",
|
|
1899
1971
|
input: "_input_1qpd5_25",
|
|
@@ -1903,12 +1975,12 @@ var V = {
|
|
|
1903
1975
|
lg: "_lg_1qpd5_139",
|
|
1904
1976
|
inputError: "_inputError_1qpd5_155",
|
|
1905
1977
|
trailingAction: "_trailingAction_1qpd5_163"
|
|
1906
|
-
},
|
|
1978
|
+
}, jt = ({ value: e, onChange: r, type: i = "text", placeholder: a = "", disabled: o = !1, readOnly: s = !1, stringWhileDisabled: c = !1, label: l, error: u, hint: p, className: m = "", name: _, id: v, size: y = "md", clearable: b = !0, required: x = !1, selectTextOnFocus: S = !1, isPassword: C = !1, passwordVisibleLabel: w = "Скрыть пароль", passwordHiddenLabel: T = "Показать пароль", onFocus: E, ...D }) => {
|
|
1907
1979
|
let O = f(), k = v ?? `ds-input-${_ ?? O}`, A = h(null), [j, M] = g(!1), N = p ? `${k}-hint` : void 0, P = u ? `${k}-error` : void 0, F = String(e ?? ""), I = [N, P].filter(Boolean).join(" ") || void 0, L = C ? j ? "text" : "password" : i;
|
|
1908
1980
|
return d(() => {
|
|
1909
1981
|
C || M(!1);
|
|
1910
1982
|
}, [C]), /* @__PURE__ */ n("div", {
|
|
1911
|
-
className: `${
|
|
1983
|
+
className: `${At.wrapper} ${m}`,
|
|
1912
1984
|
children: [
|
|
1913
1985
|
l && /* @__PURE__ */ t(ne, {
|
|
1914
1986
|
htmlFor: k,
|
|
@@ -1918,11 +1990,11 @@ var V = {
|
|
|
1918
1990
|
}),
|
|
1919
1991
|
o && c ? /* @__PURE__ */ t("div", {
|
|
1920
1992
|
id: k,
|
|
1921
|
-
className:
|
|
1993
|
+
className: At.disabledText,
|
|
1922
1994
|
"aria-describedby": I,
|
|
1923
1995
|
children: F || a
|
|
1924
1996
|
}) : /* @__PURE__ */ n("div", {
|
|
1925
|
-
className:
|
|
1997
|
+
className: At.control,
|
|
1926
1998
|
children: [
|
|
1927
1999
|
/* @__PURE__ */ t("input", {
|
|
1928
2000
|
ref: A,
|
|
@@ -1936,7 +2008,7 @@ var V = {
|
|
|
1936
2008
|
required: x,
|
|
1937
2009
|
"aria-invalid": !!u,
|
|
1938
2010
|
"aria-describedby": I,
|
|
1939
|
-
className: `${
|
|
2011
|
+
className: `${At.input} ${At[y]} ${u ? At.inputError : ""}`,
|
|
1940
2012
|
onChange: (e) => {
|
|
1941
2013
|
if (i === "number" && !C) {
|
|
1942
2014
|
let t = e.target.value === "" ? "" : Number(e.target.value);
|
|
@@ -1952,7 +2024,7 @@ var V = {
|
|
|
1952
2024
|
}),
|
|
1953
2025
|
C && /* @__PURE__ */ t("button", {
|
|
1954
2026
|
type: "button",
|
|
1955
|
-
className:
|
|
2027
|
+
className: At.trailingAction,
|
|
1956
2028
|
disabled: o,
|
|
1957
2029
|
"aria-label": j ? w : T,
|
|
1958
2030
|
"aria-pressed": j,
|
|
@@ -1965,7 +2037,7 @@ var V = {
|
|
|
1965
2037
|
}),
|
|
1966
2038
|
!C && b && F && !o && !s && /* @__PURE__ */ t("button", {
|
|
1967
2039
|
type: "button",
|
|
1968
|
-
className:
|
|
2040
|
+
className: At.trailingAction,
|
|
1969
2041
|
"aria-label": "Очистить поле",
|
|
1970
2042
|
onClick: () => {
|
|
1971
2043
|
let e = A.current;
|
|
@@ -1990,23 +2062,23 @@ var V = {
|
|
|
1990
2062
|
})
|
|
1991
2063
|
]
|
|
1992
2064
|
});
|
|
1993
|
-
},
|
|
2065
|
+
}, Mt = 8, Nt = 6, Pt = 120, Ft = (e) => {
|
|
1994
2066
|
if (typeof e == "number") return e;
|
|
1995
2067
|
if (typeof e == "string") {
|
|
1996
2068
|
let t = Number.parseFloat(e);
|
|
1997
2069
|
if (Number.isFinite(t)) return t;
|
|
1998
2070
|
}
|
|
1999
2071
|
return Infinity;
|
|
2000
|
-
},
|
|
2072
|
+
}, It = ({ options: e, value: r, onChange: i, placeholder: a = "Выберите опции", disabled: o = !1, stringWhileDisabled: s = !1, label: c, error: u, size: v = "md", required: y = !1, hint: b, className: x = "", name: S, id: C, closeOnSelect: w = !1, needMark: T = !0, maxMenuHeight: E }) => {
|
|
2001
2073
|
let D = f(), O = C ?? `ds-dropdown-multiple-${S ?? D}`, k = `${O}-listbox`, [A, j] = g(!1), [M, N] = g(null), P = h(null), F = h(null), I = h(null), L = h([]), R = m(() => e.filter((e) => r.includes(e.value)), [e, r]).map((e) => e.label).join(", "), z = b ? `${O}-hint` : void 0, ee = u ? `${O}-error` : void 0, te = [z, ee].filter(Boolean).join(" ") || void 0, B = o && s, V = l(() => {
|
|
2002
2074
|
let e = F.current, t = I.current;
|
|
2003
2075
|
if (!e || !t) return;
|
|
2004
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight - n.bottom -
|
|
2076
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight - n.bottom - Mt, a = n.top - Mt, o = i < r.height && a > i, s = Math.max(Pt, o ? a : i), c = window.innerWidth - n.width - Mt;
|
|
2005
2077
|
N({
|
|
2006
|
-
top: o ? Math.max(
|
|
2007
|
-
left: Math.max(
|
|
2078
|
+
top: o ? Math.max(Mt, n.top - r.height - Nt) : n.bottom + Nt,
|
|
2079
|
+
left: Math.max(Mt, Math.min(n.left, c)),
|
|
2008
2080
|
width: n.width,
|
|
2009
|
-
maxHeight: Math.min(s,
|
|
2081
|
+
maxHeight: Math.min(s, Ft(E))
|
|
2010
2082
|
});
|
|
2011
2083
|
}, [E]);
|
|
2012
2084
|
p(() => {
|
|
@@ -2034,7 +2106,7 @@ var V = {
|
|
|
2034
2106
|
};
|
|
2035
2107
|
}, [A]);
|
|
2036
2108
|
let H = (t, n) => {
|
|
2037
|
-
let r =
|
|
2109
|
+
let r = Tt(e, t, n);
|
|
2038
2110
|
r !== -1 && (L.current[r]?.focus(), L.current[r]?.scrollIntoView({ block: "nearest" }));
|
|
2039
2111
|
}, U = (t) => {
|
|
2040
2112
|
if (t.disabled) return;
|
|
@@ -2170,22 +2242,22 @@ var V = {
|
|
|
2170
2242
|
})
|
|
2171
2243
|
]
|
|
2172
2244
|
});
|
|
2173
|
-
},
|
|
2245
|
+
}, Lt = {
|
|
2174
2246
|
wrapper: "_wrapper_1tjtn_1",
|
|
2175
2247
|
input: "_input_1tjtn_21",
|
|
2176
2248
|
switch: "_switch_1tjtn_35",
|
|
2177
2249
|
thumb: "_thumb_1tjtn_67",
|
|
2178
2250
|
label: "_label_1tjtn_113",
|
|
2179
2251
|
disabled: "_disabled_1tjtn_125"
|
|
2180
|
-
},
|
|
2252
|
+
}, Rt = ({ checked: e, onChange: r, label: i, disabled: a = !1, readOnly: o = !1, className: s = "", name: c, id: l, value: u }) => {
|
|
2181
2253
|
let d = f(), p = l ?? `ds-radio-button-${c ?? d}`;
|
|
2182
2254
|
return /* @__PURE__ */ n("label", {
|
|
2183
2255
|
htmlFor: p,
|
|
2184
|
-
className: `${
|
|
2256
|
+
className: `${Lt.wrapper} ${a ? Lt.disabled : ""} ${s}`,
|
|
2185
2257
|
children: [
|
|
2186
2258
|
/* @__PURE__ */ t("input", {
|
|
2187
2259
|
id: p,
|
|
2188
|
-
className:
|
|
2260
|
+
className: Lt.input,
|
|
2189
2261
|
type: "checkbox",
|
|
2190
2262
|
role: "switch",
|
|
2191
2263
|
name: c,
|
|
@@ -2198,27 +2270,28 @@ var V = {
|
|
|
2198
2270
|
}
|
|
2199
2271
|
}),
|
|
2200
2272
|
/* @__PURE__ */ t("span", {
|
|
2201
|
-
className:
|
|
2273
|
+
className: Lt.switch,
|
|
2202
2274
|
"aria-hidden": "true",
|
|
2203
|
-
children: /* @__PURE__ */ t("span", { className:
|
|
2275
|
+
children: /* @__PURE__ */ t("span", { className: Lt.thumb })
|
|
2204
2276
|
}),
|
|
2205
2277
|
i && /* @__PURE__ */ t("span", {
|
|
2206
|
-
className:
|
|
2278
|
+
className: Lt.label,
|
|
2207
2279
|
children: i
|
|
2208
2280
|
})
|
|
2209
2281
|
]
|
|
2210
2282
|
});
|
|
2211
|
-
},
|
|
2212
|
-
root: "
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2283
|
+
}, zt = {
|
|
2284
|
+
root: "_root_kg9nb_1",
|
|
2285
|
+
surface: "_surface_kg9nb_15",
|
|
2286
|
+
trigger: "_trigger_kg9nb_25",
|
|
2287
|
+
heading: "_heading_kg9nb_85",
|
|
2288
|
+
title: "_title_kg9nb_95",
|
|
2289
|
+
subtitle: "_subtitle_kg9nb_107",
|
|
2290
|
+
icon: "_icon_kg9nb_119",
|
|
2291
|
+
open: "_open_kg9nb_141",
|
|
2292
|
+
content: "_content_kg9nb_149",
|
|
2293
|
+
contentInner: "_contentInner_kg9nb_169"
|
|
2294
|
+
}, Bt = (e, t, n, r = 16) => {
|
|
2222
2295
|
if (t > Math.max(0, n - r * 2)) {
|
|
2223
2296
|
let t = e - r;
|
|
2224
2297
|
return Math.abs(t) <= 1 ? {
|
|
@@ -2240,17 +2313,17 @@ var V = {
|
|
|
2240
2313
|
alignment: "none",
|
|
2241
2314
|
delta: 0
|
|
2242
2315
|
};
|
|
2243
|
-
},
|
|
2244
|
-
let
|
|
2316
|
+
}, Vt = ({ title: e, subtitle: r, children: i, variant: a = "outlined", defaultOpen: o = !1, open: s, onOpenChange: c, autoScrollOnOpen: l = !0, scrollOffset: u = 16, className: p = "" }) => {
|
|
2317
|
+
let m = f(), [_, v] = g(o), y = s ?? _, b = h(null), x = h(null), S = h(y);
|
|
2245
2318
|
return d(() => {
|
|
2246
|
-
let e =
|
|
2247
|
-
if (
|
|
2248
|
-
let t =
|
|
2319
|
+
let e = S.current;
|
|
2320
|
+
if (S.current = y, !y || e || !l) return;
|
|
2321
|
+
let t = b.current, n = x.current;
|
|
2249
2322
|
if (!t || !n || typeof window > "u") return;
|
|
2250
2323
|
let r = !1, i = () => {
|
|
2251
2324
|
if (r) return;
|
|
2252
2325
|
r = !0;
|
|
2253
|
-
let e = t.getBoundingClientRect(), n =
|
|
2326
|
+
let e = t.getBoundingClientRect(), n = Bt(e.top, e.height, window.innerHeight, u);
|
|
2254
2327
|
if (n.alignment === "none") return;
|
|
2255
2328
|
let i = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
2256
2329
|
window.scrollBy({
|
|
@@ -2266,32 +2339,33 @@ var V = {
|
|
|
2266
2339
|
n.removeEventListener("transitionend", a), window.clearTimeout(o);
|
|
2267
2340
|
};
|
|
2268
2341
|
}, [
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2342
|
+
l,
|
|
2343
|
+
y,
|
|
2344
|
+
u
|
|
2272
2345
|
]), /* @__PURE__ */ n("section", {
|
|
2273
|
-
ref:
|
|
2274
|
-
className: `${
|
|
2346
|
+
ref: b,
|
|
2347
|
+
className: `${zt.root} ${zt[a]} ${y ? zt.open : ""} ${p}`,
|
|
2348
|
+
"data-variant": a,
|
|
2275
2349
|
children: [/* @__PURE__ */ n("button", {
|
|
2276
2350
|
type: "button",
|
|
2277
|
-
className:
|
|
2278
|
-
"aria-expanded":
|
|
2279
|
-
"aria-controls":
|
|
2351
|
+
className: zt.trigger,
|
|
2352
|
+
"aria-expanded": y,
|
|
2353
|
+
"aria-controls": m,
|
|
2280
2354
|
onClick: () => {
|
|
2281
|
-
let e = !
|
|
2282
|
-
|
|
2355
|
+
let e = !y;
|
|
2356
|
+
s === void 0 && v(e), c?.(e);
|
|
2283
2357
|
},
|
|
2284
2358
|
children: [/* @__PURE__ */ n("span", {
|
|
2285
|
-
className:
|
|
2359
|
+
className: zt.heading,
|
|
2286
2360
|
children: [/* @__PURE__ */ t("span", {
|
|
2287
|
-
className:
|
|
2361
|
+
className: zt.title,
|
|
2288
2362
|
children: e
|
|
2289
2363
|
}), r && /* @__PURE__ */ t("span", {
|
|
2290
|
-
className:
|
|
2364
|
+
className: zt.subtitle,
|
|
2291
2365
|
children: r
|
|
2292
2366
|
})]
|
|
2293
2367
|
}), /* @__PURE__ */ t("span", {
|
|
2294
|
-
className:
|
|
2368
|
+
className: zt.icon,
|
|
2295
2369
|
"aria-hidden": "true",
|
|
2296
2370
|
children: /* @__PURE__ */ t(J, {
|
|
2297
2371
|
name: "IconChevron",
|
|
@@ -2300,17 +2374,18 @@ var V = {
|
|
|
2300
2374
|
})
|
|
2301
2375
|
})]
|
|
2302
2376
|
}), /* @__PURE__ */ t("div", {
|
|
2303
|
-
ref:
|
|
2304
|
-
id:
|
|
2305
|
-
className:
|
|
2306
|
-
"aria-hidden": !
|
|
2377
|
+
ref: x,
|
|
2378
|
+
id: m,
|
|
2379
|
+
className: zt.content,
|
|
2380
|
+
"aria-hidden": !y,
|
|
2381
|
+
inert: !y,
|
|
2307
2382
|
children: /* @__PURE__ */ t("div", {
|
|
2308
|
-
className:
|
|
2383
|
+
className: zt.contentInner,
|
|
2309
2384
|
children: i
|
|
2310
2385
|
})
|
|
2311
2386
|
})]
|
|
2312
2387
|
});
|
|
2313
|
-
},
|
|
2388
|
+
}, Ht = ({ children: e, containerId: t = "overlay-root" }) => {
|
|
2314
2389
|
let [n, r] = g(null);
|
|
2315
2390
|
return d(() => {
|
|
2316
2391
|
let e = document.getElementById(t);
|
|
@@ -2323,35 +2398,35 @@ var V = {
|
|
|
2323
2398
|
n.childElementCount === 0 && n.parentElement && n.remove();
|
|
2324
2399
|
};
|
|
2325
2400
|
}, [t]), n ? _(e, n) : null;
|
|
2326
|
-
},
|
|
2401
|
+
}, Ut = 8, Wt = 16, Gt = 8, Kt = 8, qt = 16, Jt = {
|
|
2327
2402
|
top: "bottom",
|
|
2328
2403
|
right: "left",
|
|
2329
2404
|
bottom: "top",
|
|
2330
2405
|
left: "right"
|
|
2331
|
-
},
|
|
2332
|
-
top: t.y -
|
|
2333
|
-
right: t.x +
|
|
2334
|
-
bottom: t.y +
|
|
2335
|
-
left: t.x -
|
|
2406
|
+
}, Yt = (e, t, n, r) => e === "top" ? t.top >= n.height + Ut + Wt : e === "bottom" ? r.height - t.bottom >= n.height + Ut + Wt : e === "left" ? t.left >= n.width + Ut + Wt : r.width - t.right >= n.width + Ut + Wt, Xt = (e, t, n) => n && t ? {
|
|
2407
|
+
top: t.y - Kt,
|
|
2408
|
+
right: t.x + Gt,
|
|
2409
|
+
bottom: t.y + qt,
|
|
2410
|
+
left: t.x - Gt,
|
|
2336
2411
|
width: 16,
|
|
2337
2412
|
height: 24
|
|
2338
|
-
} : e,
|
|
2413
|
+
} : e, Zt = (e, t, n, r) => {
|
|
2339
2414
|
if (!(t.bottom > 0 && t.right > 0 && t.top < r.height && t.left < r.width)) return null;
|
|
2340
|
-
let i =
|
|
2341
|
-
return i === "top" && (o = t.top - n.height -
|
|
2415
|
+
let i = Yt(e, t, n, r) ? e : Yt(Jt[e], t, n, r) ? Jt[e] : e, a = t.left + (t.width - n.width) / 2, o = t.top + (t.height - n.height) / 2;
|
|
2416
|
+
return i === "top" && (o = t.top - n.height - Ut), i === "bottom" && (o = t.bottom + Ut), i === "left" && (a = t.left - n.width - Ut), i === "right" && (a = t.right + Ut), a = Math.min(Math.max(a, Wt), Math.max(Wt, r.width - n.width - Wt)), o = Math.min(Math.max(o, Wt), Math.max(Wt, r.height - n.height - Wt)), {
|
|
2342
2417
|
left: a,
|
|
2343
2418
|
top: o,
|
|
2344
2419
|
visibility: "visible"
|
|
2345
2420
|
};
|
|
2346
|
-
},
|
|
2421
|
+
}, Qt = {
|
|
2347
2422
|
root: "_root_1pa4z_1",
|
|
2348
2423
|
tooltip: "_tooltip_1pa4z_11",
|
|
2349
2424
|
"ds-tooltip-in": "_ds-tooltip-in_1pa4z_1"
|
|
2350
|
-
},
|
|
2425
|
+
}, $t = (e, t) => (n) => {
|
|
2351
2426
|
e?.(n), n.defaultPrevented || t(n);
|
|
2352
|
-
},
|
|
2427
|
+
}, en = (e, t) => {
|
|
2353
2428
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
2354
|
-
},
|
|
2429
|
+
}, tn = ({ content: e, children: a, placement: o = "top", followCursor: s = !1, delay: u = 450, disabled: p = !1, maxWidth: m = 280, className: _ = "", asChild: v = !1 }) => {
|
|
2355
2430
|
let y = f(), [b, x] = g(!1), [S, C] = g({ visibility: "hidden" }), [w, T] = g(null), E = h(null), D = h(null), O = h(null), k = h(() => void 0), A = l(() => {
|
|
2356
2431
|
E.current && clearTimeout(E.current), E.current = null, x(!1);
|
|
2357
2432
|
}, []), j = l(() => {
|
|
@@ -2375,7 +2450,7 @@ var V = {
|
|
|
2375
2450
|
let e = () => {
|
|
2376
2451
|
let e = D.current;
|
|
2377
2452
|
if (!e || !w) return;
|
|
2378
|
-
let t =
|
|
2453
|
+
let t = Zt(o, Xt(e.getBoundingClientRect(), O.current, s), w.getBoundingClientRect(), {
|
|
2379
2454
|
width: window.innerWidth,
|
|
2380
2455
|
height: window.innerHeight
|
|
2381
2456
|
});
|
|
@@ -2423,28 +2498,28 @@ var V = {
|
|
|
2423
2498
|
}, b && k.current());
|
|
2424
2499
|
}, R = i(a, {
|
|
2425
2500
|
"aria-describedby": b ? y : void 0,
|
|
2426
|
-
onMouseEnter:
|
|
2427
|
-
onMouseLeave:
|
|
2428
|
-
onFocus:
|
|
2429
|
-
onBlur:
|
|
2501
|
+
onMouseEnter: $t(N.onMouseEnter, P),
|
|
2502
|
+
onMouseLeave: $t(N.onMouseLeave, F),
|
|
2503
|
+
onFocus: $t(N.onFocus, I),
|
|
2504
|
+
onBlur: $t(N.onBlur, A),
|
|
2430
2505
|
...v ? {
|
|
2431
2506
|
ref: (e) => {
|
|
2432
|
-
D.current = e,
|
|
2507
|
+
D.current = e, en(N.ref, e);
|
|
2433
2508
|
},
|
|
2434
|
-
onPointerDown:
|
|
2435
|
-
onPointerMove:
|
|
2509
|
+
onPointerDown: $t(N.onPointerDown, b ? A : j),
|
|
2510
|
+
onPointerMove: $t(N.onPointerMove, L)
|
|
2436
2511
|
} : {}
|
|
2437
|
-
}), z = b && /* @__PURE__ */ t(
|
|
2512
|
+
}), z = b && /* @__PURE__ */ t(Ht, { children: /* @__PURE__ */ t("span", {
|
|
2438
2513
|
ref: T,
|
|
2439
2514
|
id: y,
|
|
2440
2515
|
role: "tooltip",
|
|
2441
|
-
className:
|
|
2516
|
+
className: Qt.tooltip,
|
|
2442
2517
|
style: M,
|
|
2443
2518
|
children: e
|
|
2444
2519
|
}) });
|
|
2445
2520
|
return v ? /* @__PURE__ */ n(r, { children: [R, z] }) : /* @__PURE__ */ n("span", {
|
|
2446
2521
|
ref: D,
|
|
2447
|
-
className: `${
|
|
2522
|
+
className: `${Qt.root} ${_}`,
|
|
2448
2523
|
onPointerDown: b ? A : j,
|
|
2449
2524
|
onPointerMove: L,
|
|
2450
2525
|
children: [R, z]
|
|
@@ -2513,25 +2588,25 @@ var V = {
|
|
|
2513
2588
|
default: "_default_h5fab_1183",
|
|
2514
2589
|
tableOnMobile: "_tableOnMobile_h5fab_1183",
|
|
2515
2590
|
wide: "_wide_h5fab_1213"
|
|
2516
|
-
},
|
|
2591
|
+
}, nn = b({
|
|
2517
2592
|
rowSortingFeature: y,
|
|
2518
2593
|
sortedRowModel: v()
|
|
2519
|
-
}),
|
|
2594
|
+
}), rn = [
|
|
2520
2595
|
10,
|
|
2521
2596
|
30,
|
|
2522
2597
|
50,
|
|
2523
2598
|
-1
|
|
2524
|
-
],
|
|
2525
|
-
function
|
|
2599
|
+
], an = 30, on = 8;
|
|
2600
|
+
function sn(e, t) {
|
|
2526
2601
|
return t.includes(e) ? e : t.includes(30) ? 30 : t.find((e) => Number.isSafeInteger(e) && e > 0) ?? 30;
|
|
2527
2602
|
}
|
|
2528
|
-
function
|
|
2529
|
-
return e === void 0 || !Number.isFinite(e) || e <= 0 ?
|
|
2603
|
+
function cn(e) {
|
|
2604
|
+
return e === void 0 || !Number.isFinite(e) || e <= 0 ? an : Math.max(1, Math.floor(e));
|
|
2530
2605
|
}
|
|
2531
|
-
var
|
|
2606
|
+
var ln = ({ config: e, row: n, children: r }) => {
|
|
2532
2607
|
if (!e) return r;
|
|
2533
2608
|
let i = e.content(n);
|
|
2534
|
-
return i ? /* @__PURE__ */ t(
|
|
2609
|
+
return i ? /* @__PURE__ */ t(tn, {
|
|
2535
2610
|
asChild: !0,
|
|
2536
2611
|
content: i,
|
|
2537
2612
|
placement: e.placement ?? "bottom",
|
|
@@ -2540,7 +2615,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2540
2615
|
maxWidth: e.maxWidth,
|
|
2541
2616
|
children: r
|
|
2542
2617
|
}) : r;
|
|
2543
|
-
},
|
|
2618
|
+
}, un = ({ field: e, value: n, setValue: r, disabled: i, error: a }) => {
|
|
2544
2619
|
let o = e.type === "multi-select" ? e.options : void 0, [s, c] = g(Array.isArray(o) ? o : []), [l, u] = g(!1);
|
|
2545
2620
|
return d(() => {
|
|
2546
2621
|
if (o === void 0) return;
|
|
@@ -2556,7 +2631,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2556
2631
|
}), () => {
|
|
2557
2632
|
e = !1;
|
|
2558
2633
|
};
|
|
2559
|
-
}, [o]), e.type === "multi-select" ? /* @__PURE__ */ t(
|
|
2634
|
+
}, [o]), e.type === "multi-select" ? /* @__PURE__ */ t(It, {
|
|
2560
2635
|
label: e.label,
|
|
2561
2636
|
options: s,
|
|
2562
2637
|
value: Array.isArray(n) ? n.map(String) : [],
|
|
@@ -2564,7 +2639,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2564
2639
|
placeholder: l ? "Загрузка…" : e.placeholder,
|
|
2565
2640
|
error: a,
|
|
2566
2641
|
onChange: (e) => r(e)
|
|
2567
|
-
}) : e.type === "switch" ? /* @__PURE__ */ t(
|
|
2642
|
+
}) : e.type === "switch" ? /* @__PURE__ */ t(Rt, {
|
|
2568
2643
|
label: e.label,
|
|
2569
2644
|
checked: !!n,
|
|
2570
2645
|
disabled: i,
|
|
@@ -2574,7 +2649,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2574
2649
|
setValue: r,
|
|
2575
2650
|
disabled: i,
|
|
2576
2651
|
error: a
|
|
2577
|
-
}) : /* @__PURE__ */ t(
|
|
2652
|
+
}) : /* @__PURE__ */ t(jt, {
|
|
2578
2653
|
label: e.label,
|
|
2579
2654
|
type: "text",
|
|
2580
2655
|
value: String(n ?? ""),
|
|
@@ -2583,20 +2658,20 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2583
2658
|
error: a,
|
|
2584
2659
|
onChange: (e) => r(e)
|
|
2585
2660
|
});
|
|
2586
|
-
},
|
|
2661
|
+
}, dn = (e, t, n) => {
|
|
2587
2662
|
let r = new Set(e);
|
|
2588
2663
|
return t.forEach((e) => {
|
|
2589
2664
|
n ? r.add(e) : r.delete(e);
|
|
2590
2665
|
}), Array.from(r);
|
|
2591
|
-
},
|
|
2666
|
+
}, fn = (e) => {
|
|
2592
2667
|
if (!(!e || e.width === void 0 && e.minWidth === void 0 && e.maxWidth === void 0)) return {
|
|
2593
2668
|
width: e.width,
|
|
2594
2669
|
minWidth: e.minWidth,
|
|
2595
2670
|
maxWidth: e.maxWidth
|
|
2596
2671
|
};
|
|
2597
|
-
},
|
|
2672
|
+
}, pn = (e) => {
|
|
2598
2673
|
if (e?.sticky) return e.sticky === "start" ? { insetInlineStart: e.stickyOffset ?? 0 } : { insetInlineEnd: e.stickyOffset ?? 0 };
|
|
2599
|
-
},
|
|
2674
|
+
}, mn = (e, t) => t <= 7 ? Array.from({ length: t }, (e, t) => t) : e <= 3 ? [
|
|
2600
2675
|
0,
|
|
2601
2676
|
1,
|
|
2602
2677
|
2,
|
|
@@ -2620,7 +2695,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2620
2695
|
e + 1,
|
|
2621
2696
|
"ellipsis-end",
|
|
2622
2697
|
t - 1
|
|
2623
|
-
],
|
|
2698
|
+
], hn = (e, t) => {
|
|
2624
2699
|
let n = /* @__PURE__ */ new Set();
|
|
2625
2700
|
for (let t of e) {
|
|
2626
2701
|
if (!t.id.trim()) return "Идентификатор колонки не может быть пустым";
|
|
@@ -2632,36 +2707,36 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2632
2707
|
for (let t of e) if (typeof t.accessor == "string" && !(t.accessor in r)) return `В строке ${n + 1} отсутствует колонка «${t.id}»`;
|
|
2633
2708
|
}
|
|
2634
2709
|
return null;
|
|
2635
|
-
},
|
|
2710
|
+
}, gn = (e, t) => typeof e == "function" ? e(t) : t[e], _n = (e) => {
|
|
2636
2711
|
if (e == null || e === "") return null;
|
|
2637
2712
|
let t = Date.parse(String(e));
|
|
2638
2713
|
return Number.isNaN(t) ? null : t;
|
|
2639
|
-
},
|
|
2640
|
-
let r =
|
|
2714
|
+
}, vn = (e, t, n) => {
|
|
2715
|
+
let r = _n(e.getValue(n)), i = _n(t.getValue(n));
|
|
2641
2716
|
return r === null && i === null ? 0 : r === null ? -1 : i === null ? 1 : r - i;
|
|
2642
|
-
},
|
|
2717
|
+
}, yn = (e, t, n) => {
|
|
2643
2718
|
let r = e.getValue(n), i = t.getValue(n);
|
|
2644
2719
|
return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : Number(r) - Number(i);
|
|
2645
|
-
},
|
|
2720
|
+
}, bn = (e, t, n) => {
|
|
2646
2721
|
let r = e.getValue(n), i = t.getValue(n);
|
|
2647
2722
|
return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : Number(!!r) - Number(!!i);
|
|
2648
|
-
},
|
|
2723
|
+
}, xn = (e, t, n) => {
|
|
2649
2724
|
let r = String(e.getValue(n) ?? ""), i = String(t.getValue(n) ?? "");
|
|
2650
2725
|
return r.localeCompare(i, void 0, {
|
|
2651
2726
|
numeric: !0,
|
|
2652
2727
|
sensitivity: "base"
|
|
2653
2728
|
});
|
|
2654
|
-
},
|
|
2729
|
+
}, Sn = (e) => {
|
|
2655
2730
|
switch (e) {
|
|
2656
|
-
case "date": return
|
|
2657
|
-
case "number": return
|
|
2658
|
-
case "boolean": return
|
|
2731
|
+
case "date": return vn;
|
|
2732
|
+
case "number": return yn;
|
|
2733
|
+
case "boolean": return bn;
|
|
2659
2734
|
case "text":
|
|
2660
|
-
case void 0: return
|
|
2735
|
+
case void 0: return xn;
|
|
2661
2736
|
case "custom": return;
|
|
2662
2737
|
}
|
|
2663
|
-
},
|
|
2664
|
-
let t = (t) =>
|
|
2738
|
+
}, Cn = (e) => {
|
|
2739
|
+
let t = (t) => gn(e.accessor, t), n = e.sortFn ?? Sn(e.dataType), r = e.enableSorting ?? (e.dataType !== "custom" && n !== void 0), i = {
|
|
2665
2740
|
id: e.id,
|
|
2666
2741
|
accessorFn: t,
|
|
2667
2742
|
header: () => e.header,
|
|
@@ -2673,13 +2748,13 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2673
2748
|
sortDescFirst: e.sortDescFirst
|
|
2674
2749
|
};
|
|
2675
2750
|
return n !== void 0 && (i.sortFn = n), i;
|
|
2676
|
-
},
|
|
2677
|
-
let [_e, ve] = g([]), [ye, be] = g([]), [xe, Se] = g([]), [Ce, we] = g(0), [Te, Ee] = g(() =>
|
|
2751
|
+
}, wn = ({ columns: i, data: a, virtualizationThreshold: o = an, tableOnMobile: s = !1, mobileView: c, breakpoint: l = "default", sorting: u, onSortingChange: f, renderMobileCard: p, getRowId: _, getRowClassName: v, getRowStyle: y, toolbarContent: b, totalCountVariant: S = "default", totalCountLabel: C = "Всего", caption: w, ariaLabel: T, loading: E = !1, error: D, emptyState: O = "Нет данных", stickyHeader: k = !1, maxHeight: A, className: j = "", onRowClick: M, selectable: N = !1, selectedRowIds: P, onSelectedRowIdsChange: F, onRowDoubleClick: I, getRowSelectionLabel: L, selectAllRowsLabel: R = "Выбрать все строки на этой странице", resetSelectionLabel: z = "Сбросить выбор", showResetSelectionControl: ee = !0, openRowLabel: te = "Открыть строку", rowTooltip: V, pagination: ne = !1, paginationMode: H = "client", page: U = 1, pageSize: W = 30, onPageSizeChange: re, pageSizeOptions: ie = rn, pageSizeDraft: ae, onPageSizeDraftChange: oe, pageSizeApplyMode: se = "table", totalCount: ce, onPageChange: G, visibleColumnIds: le, density: ue = "comfortable", renderBulkActions: de, renderExpandedRow: fe, expandedRowIds: pe, onExpandedRowIdsChange: me, getRowExpansionLabel: he, resultsAnnouncement: ge, filterBar: K }) => {
|
|
2752
|
+
let [_e, ve] = g([]), [ye, be] = g([]), [xe, Se] = g([]), [Ce, we] = g(0), [Te, Ee] = g(() => sn(W, ie)), De = cn(o), Oe = u ?? _e, ke = Oe.map((e) => `${e.id}:${e.desc ? "desc" : "asc"}`).join("|"), Ae = W === -1, je = Ae ? Math.max(1, (H === "server" ? Number(ce) : a.length) || a.length || 1) : Number.isFinite(W) && W > 0 ? Math.floor(W) : 30, Me = ne && H === "server", Ne = m(() => {
|
|
2678
2753
|
if (le === void 0) return i;
|
|
2679
2754
|
let e = new Set(le);
|
|
2680
2755
|
return i.filter((t) => e.has(t.id));
|
|
2681
|
-
}, [i, le]), Pe = m(() => Ne.length === 0 ? "Должна быть видима хотя бы одна колонка" :
|
|
2682
|
-
features:
|
|
2756
|
+
}, [i, le]), Pe = m(() => Ne.length === 0 ? "Должна быть видима хотя бы одна колонка" : hn(Ne, a), [a, Ne]), Fe = m(() => Ne.map(Cn), [Ne]), Ie = Ne.some((e) => fn(e) !== void 0), Le = x({
|
|
2757
|
+
features: nn,
|
|
2683
2758
|
columns: Fe,
|
|
2684
2759
|
data: a,
|
|
2685
2760
|
state: { sorting: Oe },
|
|
@@ -2688,16 +2763,16 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2688
2763
|
u === void 0 && ve(t), we(0), f?.(t);
|
|
2689
2764
|
},
|
|
2690
2765
|
getRowId: _
|
|
2691
|
-
}), Re = Le.getRowModel().rows, ze = Me && Number.isFinite(ce) && Number(ce) >= 0 ? Math.floor(Number(ce)) : Re.length, Be = ne ? Math.max(1, Math.ceil(ze / je)) : 1, Ve = Number.isFinite(U) && U > 0 ? Math.floor(U) - 1 : 0,
|
|
2766
|
+
}), Re = Le.getRowModel().rows, ze = Me && Number.isFinite(ce) && Number(ce) >= 0 ? Math.floor(Number(ce)) : Re.length, Be = ne ? Math.max(1, Math.ceil(ze / je)) : 1, Ve = Number.isFinite(U) && U > 0 ? Math.floor(U) - 1 : 0, He = Math.min(Me ? Ve : Ce, Be - 1), Ue = m(() => ne && !Me ? Re.slice(He * je, (He + 1) * je) : Re, [
|
|
2692
2767
|
Me,
|
|
2693
2768
|
je,
|
|
2694
2769
|
ne,
|
|
2695
|
-
|
|
2770
|
+
He,
|
|
2696
2771
|
Re
|
|
2697
|
-
]),
|
|
2772
|
+
]), We = Ue.length > De, Ge = m(() => ({
|
|
2698
2773
|
data: a,
|
|
2699
2774
|
sortingKey: ke,
|
|
2700
|
-
safePageIndex:
|
|
2775
|
+
safePageIndex: He,
|
|
2701
2776
|
normalizedPageSize: je,
|
|
2702
2777
|
pagination: ne,
|
|
2703
2778
|
isServerPagination: Me,
|
|
@@ -2705,26 +2780,26 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2705
2780
|
}), [
|
|
2706
2781
|
a,
|
|
2707
2782
|
ke,
|
|
2708
|
-
|
|
2783
|
+
He,
|
|
2709
2784
|
je,
|
|
2710
2785
|
ne,
|
|
2711
2786
|
Me,
|
|
2712
2787
|
De
|
|
2713
|
-
]), [
|
|
2714
|
-
context:
|
|
2788
|
+
]), [Ke, q] = g({
|
|
2789
|
+
context: Ge,
|
|
2715
2790
|
count: De
|
|
2716
|
-
}), qe =
|
|
2717
|
-
|
|
2718
|
-
context:
|
|
2791
|
+
}), qe = Ke.context === Ge ? Ke.count : De;
|
|
2792
|
+
Ke.context !== Ge && q({
|
|
2793
|
+
context: Ge,
|
|
2719
2794
|
count: De
|
|
2720
2795
|
});
|
|
2721
|
-
let Je = m(() =>
|
|
2796
|
+
let Je = m(() => Ue.slice(0, qe), [Ue, qe]), Ye = We && qe < Ue.length, Y = Ye ? Math.max(0, Je.length - on) : -1, Ze = h(/* @__PURE__ */ new Map()), Qe = h(/* @__PURE__ */ new Map());
|
|
2722
2797
|
d(() => {
|
|
2723
2798
|
if (!Ye || E || Pe || D) return;
|
|
2724
2799
|
let e = [...Ze.current.values(), ...Qe.current.values()], t = !0, n = new IntersectionObserver((e) => {
|
|
2725
|
-
!t || !e.some((e) => e.isIntersecting) || (t = !1, n.disconnect(),
|
|
2726
|
-
context:
|
|
2727
|
-
count: Math.min(e.count + De,
|
|
2800
|
+
!t || !e.some((e) => e.isIntersecting) || (t = !1, n.disconnect(), q((e) => e.context === Ge ? {
|
|
2801
|
+
context: Ge,
|
|
2802
|
+
count: Math.min(e.count + De, Ue.length)
|
|
2728
2803
|
} : e));
|
|
2729
2804
|
}, {
|
|
2730
2805
|
root: null,
|
|
@@ -2736,10 +2811,10 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2736
2811
|
t = !1, n.disconnect();
|
|
2737
2812
|
};
|
|
2738
2813
|
}, [
|
|
2739
|
-
|
|
2814
|
+
Ge,
|
|
2740
2815
|
qe,
|
|
2741
2816
|
De,
|
|
2742
|
-
|
|
2817
|
+
Ue.length,
|
|
2743
2818
|
Ye,
|
|
2744
2819
|
E,
|
|
2745
2820
|
Pe,
|
|
@@ -2748,19 +2823,19 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2748
2823
|
s,
|
|
2749
2824
|
p
|
|
2750
2825
|
]);
|
|
2751
|
-
let $e = P ?? ye, et = m(() => new Set($e), [$e]), tt = pe ?? xe, nt = m(() => new Set(tt), [tt]), rt = m(() =>
|
|
2826
|
+
let $e = P ?? ye, et = m(() => new Set($e), [$e]), tt = pe ?? xe, nt = m(() => new Set(tt), [tt]), rt = m(() => Ue.map((e) => e.id), [Ue]), it = rt.filter((e) => et.has(e)).length, at = rt.length > 0 && it === rt.length, ot = it > 0 && !at, st = m(() => Ne.filter((e) => e.enableSorting ?? e.dataType !== "custom").map((e) => ({
|
|
2752
2827
|
id: e.id,
|
|
2753
2828
|
label: typeof e.header == "string" ? e.header : e.id
|
|
2754
|
-
})), [Ne]), ct = m(() =>
|
|
2829
|
+
})), [Ne]), ct = m(() => mn(He, Be), [Be, He]), lt = c === void 0 ? s : c === "table", ut = [
|
|
2755
2830
|
Z.root,
|
|
2756
2831
|
l === "wide" ? Z.wide : Z.default,
|
|
2757
2832
|
lt ? Z.tableOnMobile : "",
|
|
2758
2833
|
ue === "compact" ? Z.compact : "",
|
|
2759
2834
|
N && !ee ? Z.singleSelectionControl : "",
|
|
2760
2835
|
j
|
|
2761
|
-
].filter(Boolean).join(" "), dt = Pe ?? D, ft = ne && !Ae && !dt && ze > je && (!E || Me), pt = ne && !!(re || oe || K), mt = ae ?? Te, ht = K ? (typeof K.validation == "function" ? K.validation(K.draftValues) : K.validation) ?? {} : {},
|
|
2836
|
+
].filter(Boolean).join(" "), dt = Pe ?? D, ft = ne && !Ae && !dt && ze > je && (!E || Me), pt = ne && !!(re || oe || K), mt = ae ?? Te, ht = K ? (typeof K.validation == "function" ? K.validation(K.draftValues) : K.validation) ?? {} : {}, gt = K ? JSON.stringify(K.draftValues) !== JSON.stringify(K.appliedValues) || mt !== W : !1, _t = Object.values(ht).some(Boolean), vt = ze === 0 ? 0 : He * je + 1, yt = Math.min((He + 1) * je, ze), bt = () => {
|
|
2762
2837
|
mt !== W && (we(0), G?.(1), re?.(mt));
|
|
2763
|
-
},
|
|
2838
|
+
}, X = (e, r = !1, i = !1) => {
|
|
2764
2839
|
let a = mt !== W, o = `ds-data-table-page-size-warning-${e}`;
|
|
2765
2840
|
return /* @__PURE__ */ n("div", {
|
|
2766
2841
|
className: `${Z.pageSizePanel} ${Z[e]} ${r ? Z.embedded : ""}`,
|
|
@@ -2807,7 +2882,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2807
2882
|
ze
|
|
2808
2883
|
]
|
|
2809
2884
|
}),
|
|
2810
|
-
|
|
2885
|
+
gt && e === "top" && /* @__PURE__ */ t("span", {
|
|
2811
2886
|
className: Z.pendingChanges,
|
|
2812
2887
|
role: "status",
|
|
2813
2888
|
children: "Есть неприменённые изменения"
|
|
@@ -2829,29 +2904,29 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2829
2904
|
}, St = (e) => {
|
|
2830
2905
|
let t = Math.max(0, Math.min(Be - 1, e));
|
|
2831
2906
|
if (Me) {
|
|
2832
|
-
t !==
|
|
2907
|
+
t !== He && G?.(t + 1);
|
|
2833
2908
|
return;
|
|
2834
2909
|
}
|
|
2835
2910
|
we(t);
|
|
2836
2911
|
}, Ct = (e) => {
|
|
2837
2912
|
let t = Array.from(e);
|
|
2838
2913
|
P === void 0 && be(t), F?.(t);
|
|
2839
|
-
},
|
|
2914
|
+
}, wt = (e) => {
|
|
2840
2915
|
let t = new Set(et);
|
|
2841
2916
|
t.has(e) ? t.delete(e) : t.add(e), Ct(t);
|
|
2842
|
-
},
|
|
2843
|
-
let e =
|
|
2917
|
+
}, Tt = () => {
|
|
2918
|
+
let e = dn(et, rt, !at);
|
|
2844
2919
|
P === void 0 && be(e), F?.(e);
|
|
2845
|
-
},
|
|
2920
|
+
}, Et = () => Ct(/* @__PURE__ */ new Set()), Dt = (e) => {
|
|
2846
2921
|
let t = new Set(nt);
|
|
2847
2922
|
t.has(e) ? t.delete(e) : t.add(e);
|
|
2848
2923
|
let n = Array.from(t);
|
|
2849
2924
|
pe === void 0 && Se(n), me?.(n);
|
|
2850
|
-
},
|
|
2851
|
-
visibleCount:
|
|
2925
|
+
}, Ot = a.filter((e, t) => et.has(_?.(e, t) ?? String(t))), At = ge?.({
|
|
2926
|
+
visibleCount: Ue.length,
|
|
2852
2927
|
totalCount: ze,
|
|
2853
2928
|
selectedCount: et.size
|
|
2854
|
-
}) ?? `Показано строк: ${
|
|
2929
|
+
}) ?? `Показано строк: ${Ue.length} из ${ze}. Выбрано: ${et.size}.`;
|
|
2855
2930
|
d(() => {
|
|
2856
2931
|
Me || we(0);
|
|
2857
2932
|
}, [
|
|
@@ -2867,9 +2942,9 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2867
2942
|
Be,
|
|
2868
2943
|
Ce
|
|
2869
2944
|
]), d(() => {
|
|
2870
|
-
Ee(
|
|
2945
|
+
Ee(sn(W, ie));
|
|
2871
2946
|
}, [W, ie]);
|
|
2872
|
-
let jt = K && pt ?
|
|
2947
|
+
let jt = K && pt ? X("top", !0, K.footerLayout === "inline") : null, Mt = K ? /* @__PURE__ */ n("div", {
|
|
2873
2948
|
className: Z.filterActions,
|
|
2874
2949
|
children: [/* @__PURE__ */ t(B, {
|
|
2875
2950
|
variant: "empty",
|
|
@@ -2887,7 +2962,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2887
2962
|
}), /* @__PURE__ */ t(B, {
|
|
2888
2963
|
type: "submit",
|
|
2889
2964
|
isLoading: K.applying,
|
|
2890
|
-
disabled: !
|
|
2965
|
+
disabled: !gt || _t || E,
|
|
2891
2966
|
children: K.applyLabel ?? "Применить"
|
|
2892
2967
|
})]
|
|
2893
2968
|
}) : null, Nt = K ? /* @__PURE__ */ n("form", {
|
|
@@ -2895,14 +2970,14 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2895
2970
|
role: "search",
|
|
2896
2971
|
"aria-label": "Фильтры таблицы",
|
|
2897
2972
|
onSubmit: (e) => {
|
|
2898
|
-
e.preventDefault(), !(!
|
|
2973
|
+
e.preventDefault(), !(!gt || _t || K.applying || E) && (we(0), G?.(1), K.onApply({
|
|
2899
2974
|
filters: K.draftValues,
|
|
2900
2975
|
pageSize: mt
|
|
2901
2976
|
}));
|
|
2902
2977
|
},
|
|
2903
2978
|
children: [/* @__PURE__ */ t("div", {
|
|
2904
2979
|
className: Z.filterFields,
|
|
2905
|
-
children: K.fields.map((e) => /* @__PURE__ */ t(
|
|
2980
|
+
children: K.fields.map((e) => /* @__PURE__ */ t(un, {
|
|
2906
2981
|
field: e,
|
|
2907
2982
|
value: K.draftValues[e.key],
|
|
2908
2983
|
disabled: !!(e.disabled || K.applying || E),
|
|
@@ -2916,7 +2991,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2916
2991
|
className: Z.filterFooter,
|
|
2917
2992
|
children: [jt, Mt]
|
|
2918
2993
|
}) : /* @__PURE__ */ n(e, { children: [jt, Mt] })]
|
|
2919
|
-
}) : null, Pt = K?.collapsible ? /* @__PURE__ */ t(
|
|
2994
|
+
}) : null, Pt = K?.collapsible ? /* @__PURE__ */ t(Vt, {
|
|
2920
2995
|
title: K.collapsible.title ?? "Фильтры",
|
|
2921
2996
|
defaultOpen: K.collapsible.defaultOpen,
|
|
2922
2997
|
autoScrollOnOpen: K.collapsible.autoScrollOnOpen,
|
|
@@ -2940,12 +3015,12 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2940
3015
|
"aria-label": "Действия с выбранными строками",
|
|
2941
3016
|
children: de({
|
|
2942
3017
|
selectedRowIds: Array.from(et),
|
|
2943
|
-
selectedRows:
|
|
2944
|
-
clearSelection:
|
|
3018
|
+
selectedRows: Ot,
|
|
3019
|
+
clearSelection: Et
|
|
2945
3020
|
})
|
|
2946
3021
|
}),
|
|
2947
3022
|
Pt,
|
|
2948
|
-
pt && !K &&
|
|
3023
|
+
pt && !K && X("top"),
|
|
2949
3024
|
(S === "highlighted" || b != null) && /* @__PURE__ */ n("div", {
|
|
2950
3025
|
className: Z.toolbar,
|
|
2951
3026
|
children: [S === "highlighted" && /* @__PURE__ */ n("div", {
|
|
@@ -2960,7 +3035,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2960
3035
|
})]
|
|
2961
3036
|
}), b]
|
|
2962
3037
|
}),
|
|
2963
|
-
!lt && !E && !dt &&
|
|
3038
|
+
!lt && !E && !dt && Ue.length > 0 && st.length > 0 && /* @__PURE__ */ t(kt, {
|
|
2964
3039
|
className: Z.mobileSort,
|
|
2965
3040
|
options: st,
|
|
2966
3041
|
value: Oe[0] ? {
|
|
@@ -2983,7 +3058,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
2983
3058
|
(Ie || N || !!fe) && /* @__PURE__ */ n("colgroup", { children: [
|
|
2984
3059
|
fe && /* @__PURE__ */ t("col", { className: Z.expansionColumn }),
|
|
2985
3060
|
N && /* @__PURE__ */ t("col", { className: Z.selectionColumn }),
|
|
2986
|
-
Ne.map((e) => /* @__PURE__ */ t("col", { style:
|
|
3061
|
+
Ne.map((e) => /* @__PURE__ */ t("col", { style: fn(e) }, e.id))
|
|
2987
3062
|
] }),
|
|
2988
3063
|
/* @__PURE__ */ t("thead", {
|
|
2989
3064
|
className: k ? Z.sticky : "",
|
|
@@ -3001,19 +3076,19 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3001
3076
|
scope: "col",
|
|
3002
3077
|
children: /* @__PURE__ */ n("div", {
|
|
3003
3078
|
className: Z.selectionHeaderControls,
|
|
3004
|
-
children: [/* @__PURE__ */ t(
|
|
3079
|
+
children: [/* @__PURE__ */ t(Xe, {
|
|
3005
3080
|
checked: at,
|
|
3006
3081
|
indeterminate: ot,
|
|
3007
3082
|
disabled: E || rt.length === 0,
|
|
3008
3083
|
ariaLabel: R,
|
|
3009
|
-
onChange:
|
|
3084
|
+
onChange: Tt
|
|
3010
3085
|
}), ee && /* @__PURE__ */ t(B, {
|
|
3011
3086
|
size: "sm",
|
|
3012
3087
|
variant: "empty",
|
|
3013
3088
|
disabled: et.size === 0,
|
|
3014
3089
|
"aria-label": z,
|
|
3015
3090
|
title: z,
|
|
3016
|
-
onClick:
|
|
3091
|
+
onClick: Et,
|
|
3017
3092
|
children: /* @__PURE__ */ t(J, {
|
|
3018
3093
|
name: "IconX",
|
|
3019
3094
|
width: 16,
|
|
@@ -3029,8 +3104,8 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3029
3104
|
"aria-sort": r === "asc" ? "ascending" : r === "desc" ? "descending" : "none",
|
|
3030
3105
|
className: o?.sticky ? Z.stickyColumn : void 0,
|
|
3031
3106
|
style: {
|
|
3032
|
-
...
|
|
3033
|
-
...
|
|
3107
|
+
...fn(o),
|
|
3108
|
+
...pn(o)
|
|
3034
3109
|
},
|
|
3035
3110
|
children: /* @__PURE__ */ n("button", {
|
|
3036
3111
|
type: "button",
|
|
@@ -3049,7 +3124,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3049
3124
|
}),
|
|
3050
3125
|
/* @__PURE__ */ t("tbody", { children: E ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
|
|
3051
3126
|
colSpan: Ne.length + +!!N + +!!fe,
|
|
3052
|
-
children: /* @__PURE__ */ t(
|
|
3127
|
+
children: /* @__PURE__ */ t(xt, {
|
|
3053
3128
|
lines: 3,
|
|
3054
3129
|
height: 65
|
|
3055
3130
|
})
|
|
@@ -3057,17 +3132,17 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3057
3132
|
className: Z.state,
|
|
3058
3133
|
colSpan: Ne.length + +!!N + +!!fe,
|
|
3059
3134
|
children: dt
|
|
3060
|
-
}) }) :
|
|
3135
|
+
}) }) : Ue.length === 0 ? /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", {
|
|
3061
3136
|
className: Z.state,
|
|
3062
3137
|
colSpan: Ne.length + +!!N + +!!fe,
|
|
3063
3138
|
children: O
|
|
3064
3139
|
}) }) : /* @__PURE__ */ t(e, { children: Je.map((e, i) => {
|
|
3065
3140
|
let a = et.has(e.id), o = L?.(e.original) ?? `Выбрать строку ${e.index + 1}`, s = nt.has(e.id);
|
|
3066
|
-
return /* @__PURE__ */ n(r, { children: [/* @__PURE__ */ t(
|
|
3141
|
+
return /* @__PURE__ */ n(r, { children: [/* @__PURE__ */ t(ln, {
|
|
3067
3142
|
config: V,
|
|
3068
3143
|
row: e.original,
|
|
3069
3144
|
children: /* @__PURE__ */ n("tr", {
|
|
3070
|
-
ref:
|
|
3145
|
+
ref: Y >= 0 && i >= Y ? (e) => {
|
|
3071
3146
|
e ? Ze.current.set(i, e) : Ze.current.delete(i);
|
|
3072
3147
|
} : void 0,
|
|
3073
3148
|
className: [
|
|
@@ -3078,13 +3153,13 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3078
3153
|
style: y?.(e.original),
|
|
3079
3154
|
"aria-selected": N ? a : void 0,
|
|
3080
3155
|
onClick: () => {
|
|
3081
|
-
N ?
|
|
3156
|
+
N ? wt(e.id) : M?.(e.original);
|
|
3082
3157
|
},
|
|
3083
3158
|
onDoubleClick: () => {
|
|
3084
3159
|
N && I?.(e.original);
|
|
3085
3160
|
},
|
|
3086
3161
|
onKeyDown: (t) => {
|
|
3087
|
-
t.key === "Enter" ? (t.preventDefault(), N ? I?.(e.original) : M?.(e.original)) : t.key === " " && N && (t.preventDefault(),
|
|
3162
|
+
t.key === "Enter" ? (t.preventDefault(), N ? I?.(e.original) : M?.(e.original)) : t.key === " " && N && (t.preventDefault(), wt(e.id));
|
|
3088
3163
|
},
|
|
3089
3164
|
tabIndex: M || N || I || V ? 0 : void 0,
|
|
3090
3165
|
role: !N && M ? "button" : void 0,
|
|
@@ -3097,7 +3172,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3097
3172
|
variant: "empty",
|
|
3098
3173
|
"aria-expanded": s,
|
|
3099
3174
|
"aria-label": he?.(e.original, s) ?? (s ? "Скрыть подробности строки" : "Показать подробности строки"),
|
|
3100
|
-
onClick: () =>
|
|
3175
|
+
onClick: () => Dt(e.id),
|
|
3101
3176
|
children: /* @__PURE__ */ t(J, {
|
|
3102
3177
|
name: "IconChevron",
|
|
3103
3178
|
width: 16,
|
|
@@ -3110,10 +3185,10 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3110
3185
|
className: Z.selectionCell,
|
|
3111
3186
|
children: /* @__PURE__ */ t("div", {
|
|
3112
3187
|
onClick: (e) => e.stopPropagation(),
|
|
3113
|
-
children: /* @__PURE__ */ t(
|
|
3188
|
+
children: /* @__PURE__ */ t(Xe, {
|
|
3114
3189
|
checked: a,
|
|
3115
3190
|
ariaLabel: o,
|
|
3116
|
-
onChange: () =>
|
|
3191
|
+
onChange: () => wt(e.id)
|
|
3117
3192
|
})
|
|
3118
3193
|
})
|
|
3119
3194
|
}),
|
|
@@ -3122,8 +3197,8 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3122
3197
|
return /* @__PURE__ */ t("td", {
|
|
3123
3198
|
className: n?.sticky ? Z.stickyColumn : void 0,
|
|
3124
3199
|
style: {
|
|
3125
|
-
...
|
|
3126
|
-
...
|
|
3200
|
+
...fn(n),
|
|
3201
|
+
...pn(n)
|
|
3127
3202
|
},
|
|
3128
3203
|
children: /* @__PURE__ */ t(Le.FlexRender, { cell: e })
|
|
3129
3204
|
}, e.id);
|
|
@@ -3137,7 +3212,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3137
3212
|
children: fe({
|
|
3138
3213
|
row: e.original,
|
|
3139
3214
|
rowId: e.id,
|
|
3140
|
-
collapse: () =>
|
|
3215
|
+
collapse: () => Dt(e.id)
|
|
3141
3216
|
})
|
|
3142
3217
|
})
|
|
3143
3218
|
})] }, e.id);
|
|
@@ -3149,38 +3224,38 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3149
3224
|
className: Z.cards,
|
|
3150
3225
|
role: "list",
|
|
3151
3226
|
"aria-label": T ?? w,
|
|
3152
|
-
children: [N && !E && !dt &&
|
|
3227
|
+
children: [N && !E && !dt && Ue.length > 0 && /* @__PURE__ */ n("div", {
|
|
3153
3228
|
className: Z.mobileSelectionControls,
|
|
3154
|
-
children: [/* @__PURE__ */ t(
|
|
3229
|
+
children: [/* @__PURE__ */ t(Xe, {
|
|
3155
3230
|
checked: at,
|
|
3156
3231
|
indeterminate: ot,
|
|
3157
3232
|
ariaLabel: R,
|
|
3158
3233
|
label: R,
|
|
3159
|
-
onChange:
|
|
3234
|
+
onChange: Tt
|
|
3160
3235
|
}), ee && /* @__PURE__ */ t(B, {
|
|
3161
3236
|
size: "sm",
|
|
3162
3237
|
variant: "empty",
|
|
3163
3238
|
disabled: et.size === 0,
|
|
3164
|
-
onClick:
|
|
3239
|
+
onClick: Et,
|
|
3165
3240
|
children: z
|
|
3166
3241
|
})]
|
|
3167
|
-
}), E ? /* @__PURE__ */ t(
|
|
3242
|
+
}), E ? /* @__PURE__ */ t(xt, {
|
|
3168
3243
|
lines: 4,
|
|
3169
3244
|
height: 65
|
|
3170
3245
|
}) : dt ? /* @__PURE__ */ t("div", {
|
|
3171
3246
|
className: Z.state,
|
|
3172
3247
|
children: dt
|
|
3173
|
-
}) :
|
|
3248
|
+
}) : Ue.length === 0 ? /* @__PURE__ */ t("div", {
|
|
3174
3249
|
className: Z.state,
|
|
3175
3250
|
children: O
|
|
3176
3251
|
}) : /* @__PURE__ */ t(e, { children: Je.map((e, r) => {
|
|
3177
3252
|
let i = et.has(e.id), a = nt.has(e.id), o = L?.(e.original) ?? `Выбрать строку ${e.index + 1}`, s = N && /* @__PURE__ */ n("div", {
|
|
3178
3253
|
className: Z.cardSelectionControls,
|
|
3179
3254
|
onClick: (e) => e.stopPropagation(),
|
|
3180
|
-
children: [/* @__PURE__ */ t(
|
|
3255
|
+
children: [/* @__PURE__ */ t(Xe, {
|
|
3181
3256
|
checked: i,
|
|
3182
3257
|
ariaLabel: o,
|
|
3183
|
-
onChange: () =>
|
|
3258
|
+
onChange: () => wt(e.id)
|
|
3184
3259
|
}), I && /* @__PURE__ */ t(B, {
|
|
3185
3260
|
size: "sm",
|
|
3186
3261
|
variant: "empty",
|
|
@@ -3193,7 +3268,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3193
3268
|
"aria-expanded": a,
|
|
3194
3269
|
"aria-label": he?.(e.original, a) ?? (a ? "Скрыть подробности строки" : "Показать подробности строки"),
|
|
3195
3270
|
onClick: (t) => {
|
|
3196
|
-
t.stopPropagation(),
|
|
3271
|
+
t.stopPropagation(), Dt(e.id);
|
|
3197
3272
|
},
|
|
3198
3273
|
children: /* @__PURE__ */ t(J, {
|
|
3199
3274
|
name: "IconChevron",
|
|
@@ -3203,7 +3278,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3203
3278
|
})
|
|
3204
3279
|
});
|
|
3205
3280
|
if (p) return /* @__PURE__ */ n("div", {
|
|
3206
|
-
ref:
|
|
3281
|
+
ref: Y >= 0 && r >= Y ? (e) => {
|
|
3207
3282
|
e ? Qe.current.set(r, e) : Qe.current.delete(r);
|
|
3208
3283
|
} : void 0,
|
|
3209
3284
|
role: "listitem",
|
|
@@ -3215,7 +3290,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3215
3290
|
style: y?.(e.original),
|
|
3216
3291
|
"aria-selected": N ? i : void 0,
|
|
3217
3292
|
onClick: () => {
|
|
3218
|
-
N &&
|
|
3293
|
+
N && wt(e.id);
|
|
3219
3294
|
},
|
|
3220
3295
|
children: [
|
|
3221
3296
|
s,
|
|
@@ -3229,14 +3304,14 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3229
3304
|
children: fe?.({
|
|
3230
3305
|
row: e.original,
|
|
3231
3306
|
rowId: e.id,
|
|
3232
|
-
collapse: () =>
|
|
3307
|
+
collapse: () => Dt(e.id)
|
|
3233
3308
|
})
|
|
3234
3309
|
})
|
|
3235
3310
|
]
|
|
3236
3311
|
}, e.id);
|
|
3237
|
-
let l = Ne.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), u = l.find((e) => e.mobile?.primary) ?? l.find((e) => e.mobile?.mobileVariant !== "actions"), d = (t) =>
|
|
3312
|
+
let l = Ne.filter((e) => !e.mobile?.hideOnMobile).sort((e, t) => (e.mobile?.mobileOrder ?? 0) - (t.mobile?.mobileOrder ?? 0)), u = l.find((e) => e.mobile?.primary) ?? l.find((e) => e.mobile?.mobileVariant !== "actions"), d = (t) => gn(t.accessor, e.original), f = (t) => t.mobile?.renderMobile?.(e.original, d(t)) ?? t.cell?.(e.original, d(t)) ?? String(d(t) ?? "");
|
|
3238
3313
|
return /* @__PURE__ */ n("article", {
|
|
3239
|
-
ref:
|
|
3314
|
+
ref: Y >= 0 && r >= Y ? (e) => {
|
|
3240
3315
|
e ? Qe.current.set(r, e) : Qe.current.delete(r);
|
|
3241
3316
|
} : void 0,
|
|
3242
3317
|
role: "listitem",
|
|
@@ -3248,7 +3323,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3248
3323
|
style: y?.(e.original),
|
|
3249
3324
|
"aria-selected": N ? i : void 0,
|
|
3250
3325
|
onClick: () => {
|
|
3251
|
-
N &&
|
|
3326
|
+
N && wt(e.id);
|
|
3252
3327
|
},
|
|
3253
3328
|
children: [
|
|
3254
3329
|
s,
|
|
@@ -3264,17 +3339,17 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3264
3339
|
children: fe?.({
|
|
3265
3340
|
row: e.original,
|
|
3266
3341
|
rowId: e.id,
|
|
3267
|
-
collapse: () =>
|
|
3342
|
+
collapse: () => Dt(e.id)
|
|
3268
3343
|
})
|
|
3269
3344
|
})
|
|
3270
3345
|
]
|
|
3271
3346
|
}, e.id);
|
|
3272
3347
|
}) })]
|
|
3273
3348
|
}),
|
|
3274
|
-
(ft || pt && !E && !dt &&
|
|
3349
|
+
(ft || pt && !E && !dt && Ue.length > 0) && /* @__PURE__ */ n("nav", {
|
|
3275
3350
|
className: Z.pagination,
|
|
3276
3351
|
"aria-label": "Пагинация таблицы",
|
|
3277
|
-
children: [pt ?
|
|
3352
|
+
children: [pt ? X("bottom") : /* @__PURE__ */ n("span", {
|
|
3278
3353
|
className: Z.paginationRange,
|
|
3279
3354
|
"aria-live": "polite",
|
|
3280
3355
|
children: [
|
|
@@ -3291,10 +3366,10 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3291
3366
|
/* @__PURE__ */ n(B, {
|
|
3292
3367
|
variant: "empty",
|
|
3293
3368
|
size: "md",
|
|
3294
|
-
disabled: E ||
|
|
3369
|
+
disabled: E || He === 0,
|
|
3295
3370
|
"aria-label": "Предыдущая страница",
|
|
3296
3371
|
onClick: () => {
|
|
3297
|
-
St(
|
|
3372
|
+
St(He - 1);
|
|
3298
3373
|
},
|
|
3299
3374
|
children: [/* @__PURE__ */ t(J, {
|
|
3300
3375
|
name: "IconChevron",
|
|
@@ -3309,11 +3384,11 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3309
3384
|
/* @__PURE__ */ t("div", {
|
|
3310
3385
|
className: Z.pageNumbers,
|
|
3311
3386
|
children: ct.map((e) => typeof e == "number" ? /* @__PURE__ */ t(B, {
|
|
3312
|
-
variant: e ===
|
|
3387
|
+
variant: e === He ? "secondary" : "empty",
|
|
3313
3388
|
size: "md",
|
|
3314
3389
|
className: Z.pageButton,
|
|
3315
3390
|
"aria-label": `Перейти на страницу ${e + 1}`,
|
|
3316
|
-
"aria-current": e ===
|
|
3391
|
+
"aria-current": e === He ? "page" : void 0,
|
|
3317
3392
|
disabled: E,
|
|
3318
3393
|
onClick: () => {
|
|
3319
3394
|
St(e);
|
|
@@ -3328,10 +3403,10 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3328
3403
|
/* @__PURE__ */ n(B, {
|
|
3329
3404
|
variant: "empty",
|
|
3330
3405
|
size: "md",
|
|
3331
|
-
disabled: E ||
|
|
3406
|
+
disabled: E || He === Be - 1,
|
|
3332
3407
|
"aria-label": "Следующая страница",
|
|
3333
3408
|
onClick: () => {
|
|
3334
|
-
St(
|
|
3409
|
+
St(He + 1);
|
|
3335
3410
|
},
|
|
3336
3411
|
children: [/* @__PURE__ */ t("span", {
|
|
3337
3412
|
className: Z.paginationButtonLabel,
|
|
@@ -3348,10 +3423,10 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3348
3423
|
})
|
|
3349
3424
|
]
|
|
3350
3425
|
});
|
|
3351
|
-
},
|
|
3426
|
+
}, Tn = (e, t) => {
|
|
3352
3427
|
let n = t.trim().toLocaleLowerCase();
|
|
3353
3428
|
return n ? e.filter((e) => e.label.toLocaleLowerCase().includes(n) || e.value.toLocaleLowerCase().includes(n)) : e;
|
|
3354
|
-
},
|
|
3429
|
+
}, En = (e, t, n) => {
|
|
3355
3430
|
if (!e.length) return -1;
|
|
3356
3431
|
for (let r = 0; r < e.length; r += 1) {
|
|
3357
3432
|
let i = (t + r * n + e.length) % e.length;
|
|
@@ -3377,23 +3452,23 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3377
3452
|
active: "_active_1os84_321",
|
|
3378
3453
|
actionOption: "_actionOption_1os84_341",
|
|
3379
3454
|
visuallyHidden: "_visuallyHidden_1os84_375"
|
|
3380
|
-
},
|
|
3455
|
+
}, Dn = 8, On = 6, kn = 5, An = 10, jn = {
|
|
3381
3456
|
sm: 30,
|
|
3382
3457
|
md: 40,
|
|
3383
3458
|
lg: 50
|
|
3384
|
-
},
|
|
3459
|
+
}, Mn = ({ 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 }) => {
|
|
3385
3460
|
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, N = [
|
|
3386
3461
|
A,
|
|
3387
3462
|
j,
|
|
3388
3463
|
M
|
|
3389
|
-
].filter(Boolean).join(" "), P = h(null), F = h(null), I = h([]), [L, R] = g(!1), [z, ee] = g(""), [te, B] = g(-1), [V, U] = g(null), W = m(() => e.find((e) => e.value === r), [e, r]), re = m(() =>
|
|
3464
|
+
].filter(Boolean).join(" "), P = h(null), F = h(null), I = h([]), [L, R] = g(!1), [z, ee] = g(""), [te, B] = g(-1), [V, U] = g(null), W = m(() => e.find((e) => e.value === r), [e, r]), re = m(() => Tn(e, z), [e, z]), ie = s && u, ae = te >= 0 ? re[te] : void 0;
|
|
3390
3465
|
d(() => ee(W?.label ?? ""), [W?.label, r]);
|
|
3391
|
-
let oe = l(() => P.current?.querySelector("input") ?? null, []), se = l((e, t) =>
|
|
3466
|
+
let oe = l(() => P.current?.querySelector("input") ?? null, []), se = l((e, t) => En(re, e, t), [re]), ce = l((e) => {
|
|
3392
3467
|
B(e), !(e < 0) && requestAnimationFrame(() => I.current[e]?.scrollIntoView({ block: "nearest" }));
|
|
3393
3468
|
}, []), G = l(() => {
|
|
3394
3469
|
let e = oe();
|
|
3395
3470
|
if (!e) return;
|
|
3396
|
-
let t = e.getBoundingClientRect(), n = Math.max(1, Math.min(re.length,
|
|
3471
|
+
let t = e.getBoundingClientRect(), n = Math.max(1, Math.min(re.length, kn)) * jn[x] + An, r = window.innerHeight - t.bottom - Dn, i = t.top - Dn, a = r < n && i > r, o = a ? i : r, s = Math.max(jn[x] + An, Math.min(n, o)), c = window.innerWidth - t.width - Dn, l = Math.max(Dn, Math.min(t.left, c)), u = a ? Math.max(Dn, t.top - s - On) : t.bottom + On;
|
|
3397
3472
|
U({
|
|
3398
3473
|
top: u,
|
|
3399
3474
|
left: l,
|
|
@@ -3500,7 +3575,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3500
3575
|
children: W?.label ?? a
|
|
3501
3576
|
}) : /* @__PURE__ */ n("div", {
|
|
3502
3577
|
className: Q.control,
|
|
3503
|
-
children: [/* @__PURE__ */ t(
|
|
3578
|
+
children: [/* @__PURE__ */ t(jt, {
|
|
3504
3579
|
id: O,
|
|
3505
3580
|
name: w,
|
|
3506
3581
|
value: z,
|
|
@@ -3514,8 +3589,8 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3514
3589
|
className: `${Q.inputHost} ${Q[x]}`,
|
|
3515
3590
|
onFocus: le,
|
|
3516
3591
|
onChange: (t) => {
|
|
3517
|
-
let n = String(t), r =
|
|
3518
|
-
ee(n), R(!0), B(
|
|
3592
|
+
let n = String(t), r = Tn(e, n);
|
|
3593
|
+
ee(n), R(!0), B(En(r, 0, 1));
|
|
3519
3594
|
},
|
|
3520
3595
|
role: "combobox",
|
|
3521
3596
|
"aria-autocomplete": "list",
|
|
@@ -3567,25 +3642,25 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3567
3642
|
})
|
|
3568
3643
|
]
|
|
3569
3644
|
});
|
|
3570
|
-
},
|
|
3645
|
+
}, Nn = {
|
|
3571
3646
|
root: "_root_11adi_1",
|
|
3572
3647
|
header: "_header_11adi_21",
|
|
3573
3648
|
title: "_title_11adi_41",
|
|
3574
3649
|
dismiss: "_dismiss_11adi_55",
|
|
3575
3650
|
content: "_content_11adi_65"
|
|
3576
|
-
},
|
|
3651
|
+
}, Pn = ({ title: e, children: r, dismissible: i = !1, onDismiss: a, dismissLabel: o = "Закрыть информационный блок", headingAs: s = "h3", className: c = "" }) => {
|
|
3577
3652
|
let l = `ds-info-block-${f()}`;
|
|
3578
3653
|
return /* @__PURE__ */ n("section", {
|
|
3579
|
-
className: `${
|
|
3654
|
+
className: `${Nn.root} ${c}`,
|
|
3580
3655
|
"aria-labelledby": l,
|
|
3581
3656
|
children: [/* @__PURE__ */ n("header", {
|
|
3582
|
-
className:
|
|
3657
|
+
className: Nn.header,
|
|
3583
3658
|
children: [/* @__PURE__ */ t(s, {
|
|
3584
3659
|
id: l,
|
|
3585
|
-
className:
|
|
3660
|
+
className: Nn.title,
|
|
3586
3661
|
children: e
|
|
3587
3662
|
}), i && /* @__PURE__ */ t(B, {
|
|
3588
|
-
className:
|
|
3663
|
+
className: Nn.dismiss,
|
|
3589
3664
|
variant: "empty",
|
|
3590
3665
|
onClick: a,
|
|
3591
3666
|
"aria-label": o,
|
|
@@ -3596,15 +3671,15 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3596
3671
|
})
|
|
3597
3672
|
})]
|
|
3598
3673
|
}), /* @__PURE__ */ t("div", {
|
|
3599
|
-
className:
|
|
3674
|
+
className: Nn.content,
|
|
3600
3675
|
children: r
|
|
3601
3676
|
})]
|
|
3602
3677
|
});
|
|
3603
|
-
},
|
|
3678
|
+
}, Fn = {
|
|
3604
3679
|
root: "_root_1ecm3_1",
|
|
3605
3680
|
grid: "_grid_1ecm3_13",
|
|
3606
3681
|
actions: "_actions_1ecm3_27"
|
|
3607
|
-
},
|
|
3682
|
+
}, In = ({ filters: e, values: r, onChange: i, onApply: a, onReset: o, applyMode: s = "instant", loading: c = !1, disabled: l = !1, className: u = "" }) => {
|
|
3608
3683
|
let d = (e, t) => {
|
|
3609
3684
|
let n = {
|
|
3610
3685
|
...r,
|
|
@@ -3613,11 +3688,11 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3613
3688
|
i?.(n, e), s === "instant" && a?.(n);
|
|
3614
3689
|
};
|
|
3615
3690
|
return /* @__PURE__ */ n("section", {
|
|
3616
|
-
className: `${
|
|
3691
|
+
className: `${Fn.root} ${u}`,
|
|
3617
3692
|
"aria-label": "Фильтры",
|
|
3618
3693
|
"aria-busy": c,
|
|
3619
3694
|
children: [/* @__PURE__ */ t("div", {
|
|
3620
|
-
className:
|
|
3695
|
+
className: Fn.grid,
|
|
3621
3696
|
children: e.filter((e) => !e.hidden).map((e) => {
|
|
3622
3697
|
let n = l || c || e.disabled, i = r[e.id];
|
|
3623
3698
|
if (e.type === "input") {
|
|
@@ -3627,19 +3702,19 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3627
3702
|
placeholder: e.placeholder,
|
|
3628
3703
|
disabled: n
|
|
3629
3704
|
};
|
|
3630
|
-
return e.inputType === "number" ? /* @__PURE__ */ t(
|
|
3705
|
+
return e.inputType === "number" ? /* @__PURE__ */ t(jt, {
|
|
3631
3706
|
...r,
|
|
3632
3707
|
type: "number",
|
|
3633
3708
|
value: i ?? "",
|
|
3634
3709
|
onChange: (t) => d(e.id, t)
|
|
3635
|
-
}, e.id) : /* @__PURE__ */ t(
|
|
3710
|
+
}, e.id) : /* @__PURE__ */ t(jt, {
|
|
3636
3711
|
...r,
|
|
3637
3712
|
type: "text",
|
|
3638
3713
|
value: String(i ?? ""),
|
|
3639
3714
|
onChange: (t) => d(e.id, t)
|
|
3640
3715
|
}, e.id);
|
|
3641
3716
|
}
|
|
3642
|
-
if (e.type === "dropdown") return /* @__PURE__ */ t(
|
|
3717
|
+
if (e.type === "dropdown") return /* @__PURE__ */ t(Dt, {
|
|
3643
3718
|
label: e.label,
|
|
3644
3719
|
hint: e.hint,
|
|
3645
3720
|
placeholder: e.placeholder,
|
|
@@ -3648,7 +3723,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3648
3723
|
disabled: n,
|
|
3649
3724
|
onChange: (t) => d(e.id, t)
|
|
3650
3725
|
}, e.id);
|
|
3651
|
-
if (e.type === "multiple") return /* @__PURE__ */ t(
|
|
3726
|
+
if (e.type === "multiple") return /* @__PURE__ */ t(It, {
|
|
3652
3727
|
label: e.label,
|
|
3653
3728
|
hint: e.hint,
|
|
3654
3729
|
placeholder: e.placeholder,
|
|
@@ -3657,14 +3732,14 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3657
3732
|
disabled: n,
|
|
3658
3733
|
onChange: (t) => d(e.id, t)
|
|
3659
3734
|
}, e.id);
|
|
3660
|
-
if (e.type === "checkbox") return /* @__PURE__ */ t(
|
|
3735
|
+
if (e.type === "checkbox") return /* @__PURE__ */ t(Xe, {
|
|
3661
3736
|
label: e.label,
|
|
3662
3737
|
hint: e.hint,
|
|
3663
3738
|
checked: !!i,
|
|
3664
3739
|
disabled: n,
|
|
3665
3740
|
onChange: (t) => d(e.id, t)
|
|
3666
3741
|
}, e.id);
|
|
3667
|
-
if (e.type === "radio") return /* @__PURE__ */ t(
|
|
3742
|
+
if (e.type === "radio") return /* @__PURE__ */ t(Rt, {
|
|
3668
3743
|
label: e.label,
|
|
3669
3744
|
checked: !!i,
|
|
3670
3745
|
disabled: n,
|
|
@@ -3674,7 +3749,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3674
3749
|
from: null,
|
|
3675
3750
|
to: null
|
|
3676
3751
|
};
|
|
3677
|
-
return /* @__PURE__ */ t(
|
|
3752
|
+
return /* @__PURE__ */ t(yt, {
|
|
3678
3753
|
hint: e.hint,
|
|
3679
3754
|
mode: e.mode,
|
|
3680
3755
|
min: e.min,
|
|
@@ -3685,7 +3760,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3685
3760
|
}, e.id);
|
|
3686
3761
|
})
|
|
3687
3762
|
}), (o || s === "manual") && /* @__PURE__ */ n("div", {
|
|
3688
|
-
className:
|
|
3763
|
+
className: Fn.actions,
|
|
3689
3764
|
children: [o && /* @__PURE__ */ t(B, {
|
|
3690
3765
|
variant: "destructiveOutline",
|
|
3691
3766
|
disabled: l || c,
|
|
@@ -3699,7 +3774,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3699
3774
|
})]
|
|
3700
3775
|
})]
|
|
3701
3776
|
});
|
|
3702
|
-
},
|
|
3777
|
+
}, Ln = {
|
|
3703
3778
|
grid: "_grid_1q540_1",
|
|
3704
3779
|
comfortable: "_comfortable_1q540_11",
|
|
3705
3780
|
compact: "_compact_1q540_19",
|
|
@@ -3716,23 +3791,23 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3716
3791
|
summary: "_summary_1q540_101",
|
|
3717
3792
|
summaryTitle: "_summaryTitle_1q540_137",
|
|
3718
3793
|
summaryList: "_summaryList_1q540_145"
|
|
3719
|
-
},
|
|
3794
|
+
}, Rn = ({ columns: e = 2, density: n = "comfortable", className: r = "", ...i }) => /* @__PURE__ */ t("div", {
|
|
3720
3795
|
...i,
|
|
3721
|
-
className: `${
|
|
3722
|
-
}),
|
|
3796
|
+
className: `${Ln.grid} ${Ln[`columns${e}`]} ${Ln[n]} ${r}`
|
|
3797
|
+
}), zn = ({ span: e = 1, className: n = "", ...r }) => /* @__PURE__ */ t("div", {
|
|
3723
3798
|
...r,
|
|
3724
|
-
className: `${
|
|
3725
|
-
}),
|
|
3799
|
+
className: `${Ln.item} ${Ln[`span${e}`]} ${n}`
|
|
3800
|
+
}), Bn = ({ title: e = "Проверьте заполнение формы", items: r, focusField: i, className: a = "", ...o }) => r.length === 0 ? null : /* @__PURE__ */ n("div", {
|
|
3726
3801
|
...o,
|
|
3727
|
-
className: `${
|
|
3802
|
+
className: `${Ln.summary} ${a}`,
|
|
3728
3803
|
role: "alert",
|
|
3729
3804
|
"aria-atomic": "true",
|
|
3730
3805
|
tabIndex: -1,
|
|
3731
3806
|
children: [/* @__PURE__ */ t("strong", {
|
|
3732
|
-
className:
|
|
3807
|
+
className: Ln.summaryTitle,
|
|
3733
3808
|
children: e
|
|
3734
3809
|
}), /* @__PURE__ */ t("ul", {
|
|
3735
|
-
className:
|
|
3810
|
+
className: Ln.summaryList,
|
|
3736
3811
|
children: r.map((e) => /* @__PURE__ */ t("li", { children: e.fieldId ? /* @__PURE__ */ t("a", {
|
|
3737
3812
|
href: `#${e.fieldId}`,
|
|
3738
3813
|
onClick: (t) => {
|
|
@@ -3741,7 +3816,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3741
3816
|
children: e.message
|
|
3742
3817
|
}) : e.message }, e.id))
|
|
3743
3818
|
})]
|
|
3744
|
-
}),
|
|
3819
|
+
}), Vn = {
|
|
3745
3820
|
wrapper: "_wrapper_yxnr3_1",
|
|
3746
3821
|
dropzone: "_dropzone_yxnr3_15",
|
|
3747
3822
|
dragActive: "_dragActive_yxnr3_45",
|
|
@@ -3754,12 +3829,12 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3754
3829
|
file: "_file_yxnr3_133",
|
|
3755
3830
|
fileName: "_fileName_yxnr3_175",
|
|
3756
3831
|
fileSize: "_fileSize_yxnr3_187"
|
|
3757
|
-
},
|
|
3832
|
+
}, Hn = (e) => `${e.name}:${e.size}:${e.lastModified}`, Un = (e) => e < 1024 ? `${e} Б` : e < 1048576 ? `${(e / 1024).toFixed(1)} КБ` : `${(e / 1024 / 1024).toFixed(1)} МБ`, Wn = (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), Gn = ({ 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 }) => {
|
|
3758
3833
|
let T = f(), E = y ?? `ds-file-input-${v ?? T}`, D = h(null), O = h(0), [k, A] = g(!1), j = u ? `${E}-hint` : void 0, M = d ? `${E}-error` : void 0, N = [j, M].filter(Boolean).join(" ") || void 0, P = !m && !_, F = (e) => {
|
|
3759
|
-
let t = [], n = new Set(r.map(
|
|
3834
|
+
let t = [], n = new Set(r.map(Hn)), l = e.filter((e) => Wn(e, o) ? s !== void 0 && e.size > s ? (t.push({
|
|
3760
3835
|
file: e,
|
|
3761
3836
|
reason: "maxSize"
|
|
3762
|
-
}), !1) : !n.has(
|
|
3837
|
+
}), !1) : !n.has(Hn(e)) && (n.add(Hn(e)), !0) : (t.push({
|
|
3763
3838
|
file: e,
|
|
3764
3839
|
reason: "accept"
|
|
3765
3840
|
}), !1)), u = a ? c : 1, d = a ? [...r, ...l] : l.slice(-1);
|
|
@@ -3769,7 +3844,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3769
3844
|
})), d = d.slice(0, u)), t.length && w?.(t), l.length && i?.(d), D.current && (D.current.value = "");
|
|
3770
3845
|
};
|
|
3771
3846
|
return /* @__PURE__ */ n("div", {
|
|
3772
|
-
className: `${
|
|
3847
|
+
className: `${Vn.wrapper} ${b}`,
|
|
3773
3848
|
children: [
|
|
3774
3849
|
l && /* @__PURE__ */ t(ne, {
|
|
3775
3850
|
htmlFor: E,
|
|
@@ -3778,7 +3853,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3778
3853
|
children: l
|
|
3779
3854
|
}),
|
|
3780
3855
|
/* @__PURE__ */ n("div", {
|
|
3781
|
-
className: `${
|
|
3856
|
+
className: `${Vn.dropzone} ${k ? Vn.dragActive : ""} ${m ? Vn.disabled : ""} ${d ? Vn.error : ""}`,
|
|
3782
3857
|
onDragEnter: (e) => {
|
|
3783
3858
|
e.preventDefault(), P && ++O.current === 1 && A(!0);
|
|
3784
3859
|
},
|
|
@@ -3793,7 +3868,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3793
3868
|
ref: D,
|
|
3794
3869
|
id: E,
|
|
3795
3870
|
name: v,
|
|
3796
|
-
className:
|
|
3871
|
+
className: Vn.nativeInput,
|
|
3797
3872
|
type: "file",
|
|
3798
3873
|
multiple: a,
|
|
3799
3874
|
accept: o,
|
|
@@ -3804,19 +3879,19 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3804
3879
|
onChange: (e) => F(Array.from(e.target.files ?? []))
|
|
3805
3880
|
}), r.length ? /* @__PURE__ */ n(e, { children: [
|
|
3806
3881
|
/* @__PURE__ */ t("ul", {
|
|
3807
|
-
className:
|
|
3882
|
+
className: Vn.files,
|
|
3808
3883
|
"aria-live": "polite",
|
|
3809
3884
|
children: r.map((e, a) => /* @__PURE__ */ n("li", {
|
|
3810
|
-
className:
|
|
3885
|
+
className: Vn.file,
|
|
3811
3886
|
children: [
|
|
3812
3887
|
/* @__PURE__ */ t("span", {
|
|
3813
|
-
className:
|
|
3888
|
+
className: Vn.fileName,
|
|
3814
3889
|
title: e.name,
|
|
3815
3890
|
children: e.name
|
|
3816
3891
|
}),
|
|
3817
3892
|
/* @__PURE__ */ t("span", {
|
|
3818
|
-
className:
|
|
3819
|
-
children:
|
|
3893
|
+
className: Vn.fileSize,
|
|
3894
|
+
children: Un(e.size)
|
|
3820
3895
|
}),
|
|
3821
3896
|
P && /* @__PURE__ */ t(B, {
|
|
3822
3897
|
variant: "empty",
|
|
@@ -3830,25 +3905,25 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3830
3905
|
})
|
|
3831
3906
|
})
|
|
3832
3907
|
]
|
|
3833
|
-
},
|
|
3908
|
+
}, Hn(e)))
|
|
3834
3909
|
}),
|
|
3835
3910
|
P && (a || r.length === 0) && /* @__PURE__ */ t(B, {
|
|
3836
|
-
className:
|
|
3911
|
+
className: Vn.browseButton,
|
|
3837
3912
|
size: "sm",
|
|
3838
3913
|
onClick: () => D.current?.click(),
|
|
3839
3914
|
children: C
|
|
3840
3915
|
}),
|
|
3841
3916
|
P && !a && /* @__PURE__ */ t(B, {
|
|
3842
|
-
className:
|
|
3917
|
+
className: Vn.browseButton,
|
|
3843
3918
|
size: "sm",
|
|
3844
3919
|
onClick: () => D.current?.click(),
|
|
3845
3920
|
children: S
|
|
3846
3921
|
})
|
|
3847
3922
|
] }) : /* @__PURE__ */ n("div", {
|
|
3848
|
-
className:
|
|
3923
|
+
className: Vn.empty,
|
|
3849
3924
|
children: [
|
|
3850
3925
|
/* @__PURE__ */ t("span", {
|
|
3851
|
-
className:
|
|
3926
|
+
className: Vn.uploadIcon,
|
|
3852
3927
|
"aria-hidden": "true",
|
|
3853
3928
|
children: /* @__PURE__ */ t(J, {
|
|
3854
3929
|
name: "IconUpload",
|
|
@@ -3876,7 +3951,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3876
3951
|
})
|
|
3877
3952
|
]
|
|
3878
3953
|
});
|
|
3879
|
-
},
|
|
3954
|
+
}, Kn = typeof window > "u" ? d : p, qn = ({ anchorRef: e, children: n, matchAnchorWidth: r = !1, offset: i = 4, className: a }) => {
|
|
3880
3955
|
let [o, s] = g(null), [c, u] = g({
|
|
3881
3956
|
position: "fixed",
|
|
3882
3957
|
visibility: "hidden",
|
|
@@ -3899,7 +3974,7 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3899
3974
|
o,
|
|
3900
3975
|
i
|
|
3901
3976
|
]);
|
|
3902
|
-
return
|
|
3977
|
+
return Kn(() => {
|
|
3903
3978
|
if (!o) return;
|
|
3904
3979
|
d(), window.addEventListener("resize", d), window.addEventListener("scroll", d, !0);
|
|
3905
3980
|
let t = typeof ResizeObserver > "u" ? null : new ResizeObserver(d);
|
|
@@ -3910,13 +3985,13 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3910
3985
|
e,
|
|
3911
3986
|
o,
|
|
3912
3987
|
d
|
|
3913
|
-
]), /* @__PURE__ */ t(
|
|
3988
|
+
]), /* @__PURE__ */ t(Ht, { children: /* @__PURE__ */ t("div", {
|
|
3914
3989
|
ref: s,
|
|
3915
3990
|
className: a,
|
|
3916
3991
|
style: c,
|
|
3917
3992
|
children: n
|
|
3918
3993
|
}) });
|
|
3919
|
-
},
|
|
3994
|
+
}, Jn = {
|
|
3920
3995
|
wrapper: "_wrapper_1tid7_1",
|
|
3921
3996
|
control: "_control_1tid7_15",
|
|
3922
3997
|
textarea: "_textarea_1tid7_25",
|
|
@@ -3930,12 +4005,12 @@ var rn = ({ config: e, row: n, children: r }) => {
|
|
|
3930
4005
|
clearAction: "_clearAction_1tid7_171",
|
|
3931
4006
|
messages: "_messages_1tid7_251",
|
|
3932
4007
|
counter: "_counter_1tid7_265"
|
|
3933
|
-
},
|
|
3934
|
-
function
|
|
4008
|
+
}, Yn = 2;
|
|
4009
|
+
function Xn(e) {
|
|
3935
4010
|
let t = window.getComputedStyle(e), n = Number.parseFloat(t.lineHeight);
|
|
3936
4011
|
return Number.isFinite(n) ? n : Number.parseFloat(t.fontSize) * 1.4;
|
|
3937
4012
|
}
|
|
3938
|
-
function
|
|
4013
|
+
function Zn({ 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 = Yn, maxRows: w, autoResize: T = !0, ...E }) {
|
|
3939
4014
|
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, N = [
|
|
3940
4015
|
A,
|
|
3941
4016
|
j,
|
|
@@ -3943,7 +4018,7 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3943
4018
|
].filter(Boolean).join(" ") || void 0, P = Math.max(1, C), F = w === void 0 ? void 0 : Math.max(P, w), I = l(() => {
|
|
3944
4019
|
let e = k.current;
|
|
3945
4020
|
if (!e || !T) return;
|
|
3946
|
-
let t = window.getComputedStyle(e), n =
|
|
4021
|
+
let t = window.getComputedStyle(e), n = Xn(e), r = Number.parseFloat(t.paddingTop) + Number.parseFloat(t.paddingBottom) + Number.parseFloat(t.borderTopWidth) + Number.parseFloat(t.borderBottomWidth), i = n * P + r, a = F === void 0 ? Infinity : n * F + r;
|
|
3947
4022
|
e.style.height = "auto";
|
|
3948
4023
|
let o = Math.min(Math.max(e.scrollHeight, i), a);
|
|
3949
4024
|
e.style.height = `${o}px`, e.style.overflowY = e.scrollHeight > a ? "auto" : "hidden";
|
|
@@ -3975,7 +4050,7 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3975
4050
|
e && ((Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus(), I());
|
|
3976
4051
|
}, z = { "--ds-textarea-min-rows": P };
|
|
3977
4052
|
return /* @__PURE__ */ n("div", {
|
|
3978
|
-
className: `${
|
|
4053
|
+
className: `${Jn.wrapper} ${m}`,
|
|
3979
4054
|
children: [
|
|
3980
4055
|
c && /* @__PURE__ */ t(ne, {
|
|
3981
4056
|
htmlFor: O,
|
|
@@ -3985,12 +4060,12 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
3985
4060
|
}),
|
|
3986
4061
|
a && s ? /* @__PURE__ */ t("div", {
|
|
3987
4062
|
id: O,
|
|
3988
|
-
className: `${
|
|
4063
|
+
className: `${Jn.disabledText} ${Jn[v]}`,
|
|
3989
4064
|
style: z,
|
|
3990
4065
|
"aria-describedby": N,
|
|
3991
4066
|
children: e || i
|
|
3992
4067
|
}) : /* @__PURE__ */ n("div", {
|
|
3993
|
-
className:
|
|
4068
|
+
className: Jn.control,
|
|
3994
4069
|
children: [/* @__PURE__ */ t("textarea", {
|
|
3995
4070
|
ref: k,
|
|
3996
4071
|
id: O,
|
|
@@ -4005,12 +4080,12 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
4005
4080
|
style: z,
|
|
4006
4081
|
"aria-invalid": !!u,
|
|
4007
4082
|
"aria-describedby": N,
|
|
4008
|
-
className: `${
|
|
4083
|
+
className: `${Jn.textarea} ${Jn[v]} ${T ? Jn.autoResize : Jn.manualResize} ${u ? Jn.textareaError : ""}`,
|
|
4009
4084
|
onChange: L,
|
|
4010
4085
|
...E
|
|
4011
4086
|
}), y && e && !a && !o && /* @__PURE__ */ t("button", {
|
|
4012
4087
|
type: "button",
|
|
4013
|
-
className:
|
|
4088
|
+
className: Jn.clearAction,
|
|
4014
4089
|
"aria-label": "Очистить поле",
|
|
4015
4090
|
onClick: R,
|
|
4016
4091
|
children: /* @__PURE__ */ t(J, {
|
|
@@ -4021,7 +4096,7 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
4021
4096
|
})]
|
|
4022
4097
|
}),
|
|
4023
4098
|
(p || u || M) && /* @__PURE__ */ n("div", {
|
|
4024
|
-
className:
|
|
4099
|
+
className: Jn.messages,
|
|
4025
4100
|
children: [
|
|
4026
4101
|
p && !u && /* @__PURE__ */ t(H, {
|
|
4027
4102
|
id: A,
|
|
@@ -4034,7 +4109,7 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
4034
4109
|
}),
|
|
4035
4110
|
M && /* @__PURE__ */ n("span", {
|
|
4036
4111
|
id: M,
|
|
4037
|
-
className:
|
|
4112
|
+
className: Jn.counter,
|
|
4038
4113
|
children: [
|
|
4039
4114
|
e.length,
|
|
4040
4115
|
" / ",
|
|
@@ -4048,11 +4123,11 @@ function Kn({ value: e, onChange: r, placeholder: i = "", disabled: a = !1, read
|
|
|
4048
4123
|
}
|
|
4049
4124
|
//#endregion
|
|
4050
4125
|
//#region src/components/DSModal/modal.store.ts
|
|
4051
|
-
var
|
|
4126
|
+
var Qn = 0, $n = S((e, t) => ({
|
|
4052
4127
|
modals: [],
|
|
4053
4128
|
openModal: (t, n = {}, r = {}) => {
|
|
4054
|
-
|
|
4055
|
-
let i = `ds-modal-${
|
|
4129
|
+
Qn += 1;
|
|
4130
|
+
let i = `ds-modal-${Qn}`;
|
|
4056
4131
|
return e((e) => ({ modals: [...e.modals, {
|
|
4057
4132
|
id: i,
|
|
4058
4133
|
name: t,
|
|
@@ -4076,10 +4151,10 @@ var qn = 0, Jn = S((e, t) => ({
|
|
|
4076
4151
|
let n = t().modals;
|
|
4077
4152
|
n.length && (e({ modals: [] }), n.forEach((e) => e.onClose?.()));
|
|
4078
4153
|
}
|
|
4079
|
-
})),
|
|
4080
|
-
|
|
4081
|
-
},
|
|
4082
|
-
function
|
|
4154
|
+
})), er = () => {
|
|
4155
|
+
$n.getState().closeAllModals(), Qn = 0;
|
|
4156
|
+
}, tr = 8, nr = 96, rr = .55;
|
|
4157
|
+
function ir(e, t, n) {
|
|
4083
4158
|
return {
|
|
4084
4159
|
startX: e,
|
|
4085
4160
|
startY: t,
|
|
@@ -4087,16 +4162,16 @@ function $n(e, t, n) {
|
|
|
4087
4162
|
intent: "pending"
|
|
4088
4163
|
};
|
|
4089
4164
|
}
|
|
4090
|
-
function
|
|
4165
|
+
function ar(e, t, n) {
|
|
4091
4166
|
let r = t - e.startX, i = n - e.startY;
|
|
4092
|
-
return e.intent === "pending" && Math.max(Math.abs(r), Math.abs(i)) >=
|
|
4167
|
+
return e.intent === "pending" && Math.max(Math.abs(r), Math.abs(i)) >= tr && (e.intent = Math.abs(i) > Math.abs(r) ? "vertical" : "horizontal"), e.intent === "vertical" ? Math.max(0, i) : 0;
|
|
4093
4168
|
}
|
|
4094
|
-
function
|
|
4169
|
+
function or(e, t, n) {
|
|
4095
4170
|
if (e.intent !== "vertical") return !1;
|
|
4096
4171
|
let r = Math.max(0, t - e.startY), i = Math.max(1, n - e.startTime);
|
|
4097
|
-
return r >=
|
|
4172
|
+
return r >= nr || r >= 32 && r / i >= rr;
|
|
4098
4173
|
}
|
|
4099
|
-
var
|
|
4174
|
+
var sr = {
|
|
4100
4175
|
layer: "_layer_tnds0_1",
|
|
4101
4176
|
backdrop: "_backdrop_tnds0_15",
|
|
4102
4177
|
"backdrop-enter": "_backdrop-enter_tnds0_1",
|
|
@@ -4109,10 +4184,10 @@ var nr = {
|
|
|
4109
4184
|
close: "_close_tnds0_141",
|
|
4110
4185
|
dragHandle: "_dragHandle_tnds0_149",
|
|
4111
4186
|
"sheet-enter": "_sheet-enter_tnds0_1"
|
|
4112
|
-
},
|
|
4113
|
-
function
|
|
4187
|
+
}, cr = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", lr = a({});
|
|
4188
|
+
function ur(e) {
|
|
4114
4189
|
if (e.key !== "Tab") return;
|
|
4115
|
-
let t = Array.from(e.currentTarget.querySelectorAll(
|
|
4190
|
+
let t = Array.from(e.currentTarget.querySelectorAll(cr));
|
|
4116
4191
|
if (!t.length) {
|
|
4117
4192
|
e.preventDefault();
|
|
4118
4193
|
return;
|
|
@@ -4120,18 +4195,18 @@ function ar(e) {
|
|
|
4120
4195
|
let n = t[0], r = t.at(-1);
|
|
4121
4196
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r?.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n?.focus());
|
|
4122
4197
|
}
|
|
4123
|
-
var
|
|
4124
|
-
let l = u(
|
|
4198
|
+
var dr = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "Закрыть модальное окно", className: s = "", role: c = "dialog" }) => {
|
|
4199
|
+
let l = u(lr), 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 = $n((e) => e.closeModal), D = l.requestClose ?? (() => E(a)), O = p != null, k = m != null;
|
|
4125
4200
|
d(() => {
|
|
4126
4201
|
let e = document.activeElement, t = y.current;
|
|
4127
|
-
return (t?.querySelector(
|
|
4202
|
+
return (t?.querySelector(cr) ?? t)?.focus(), () => e?.focus();
|
|
4128
4203
|
}, []);
|
|
4129
4204
|
let A = (e) => {
|
|
4130
4205
|
e && x.current !== null && e.hasPointerCapture(x.current) && e.releasePointerCapture(x.current), b.current = null, x.current = null, T(!1), C(0);
|
|
4131
4206
|
};
|
|
4132
4207
|
return /* @__PURE__ */ n("div", {
|
|
4133
4208
|
ref: y,
|
|
4134
|
-
className: `${
|
|
4209
|
+
className: `${sr.panel} ${s}`,
|
|
4135
4210
|
"data-closing": l.closing || void 0,
|
|
4136
4211
|
"data-dragging": w || void 0,
|
|
4137
4212
|
style: { "--ds-modal-drag-offset": `${S}px` },
|
|
@@ -4140,36 +4215,36 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4140
4215
|
"aria-labelledby": O ? _ : void 0,
|
|
4141
4216
|
"aria-describedby": k ? v : void 0,
|
|
4142
4217
|
tabIndex: -1,
|
|
4143
|
-
onKeyDown:
|
|
4218
|
+
onKeyDown: ur,
|
|
4144
4219
|
children: [
|
|
4145
4220
|
/* @__PURE__ */ t("button", {
|
|
4146
4221
|
type: "button",
|
|
4147
|
-
className:
|
|
4222
|
+
className: sr.dragHandle,
|
|
4148
4223
|
"aria-label": "Потяните вниз, чтобы закрыть модальное окно",
|
|
4149
4224
|
onPointerDown: (e) => {
|
|
4150
|
-
(e.pointerType !== "mouse" || e.button === 0) && (x.current = e.pointerId, b.current =
|
|
4225
|
+
(e.pointerType !== "mouse" || e.button === 0) && (x.current = e.pointerId, b.current = ir(e.clientX, e.clientY, e.timeStamp), e.currentTarget.setPointerCapture(e.pointerId));
|
|
4151
4226
|
},
|
|
4152
4227
|
onPointerMove: (e) => {
|
|
4153
4228
|
if (e.pointerId !== x.current || !b.current) return;
|
|
4154
|
-
let t =
|
|
4229
|
+
let t = ar(b.current, e.clientX, e.clientY);
|
|
4155
4230
|
b.current.intent === "vertical" && (e.preventDefault(), T(!0), C(t));
|
|
4156
4231
|
},
|
|
4157
4232
|
onPointerUp: (e) => {
|
|
4158
4233
|
if (e.pointerId !== x.current || !b.current) return;
|
|
4159
|
-
let t =
|
|
4234
|
+
let t = or(b.current, e.clientY, e.timeStamp);
|
|
4160
4235
|
A(e.currentTarget), t && D();
|
|
4161
4236
|
},
|
|
4162
4237
|
onPointerCancel: (e) => A(e.currentTarget),
|
|
4163
4238
|
children: /* @__PURE__ */ t("span", {})
|
|
4164
4239
|
}),
|
|
4165
4240
|
(O || o) && /* @__PURE__ */ n("header", {
|
|
4166
|
-
className:
|
|
4241
|
+
className: sr.header,
|
|
4167
4242
|
children: [O && /* @__PURE__ */ t("h2", {
|
|
4168
4243
|
id: _,
|
|
4169
|
-
className:
|
|
4244
|
+
className: sr.title,
|
|
4170
4245
|
children: p
|
|
4171
4246
|
}), /* @__PURE__ */ t(B, {
|
|
4172
|
-
className:
|
|
4247
|
+
className: sr.close,
|
|
4173
4248
|
variant: "empty",
|
|
4174
4249
|
size: "sm",
|
|
4175
4250
|
"aria-label": o,
|
|
@@ -4183,17 +4258,17 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4183
4258
|
}),
|
|
4184
4259
|
k && /* @__PURE__ */ t("p", {
|
|
4185
4260
|
id: v,
|
|
4186
|
-
className:
|
|
4261
|
+
className: sr.description,
|
|
4187
4262
|
children: m
|
|
4188
4263
|
}),
|
|
4189
4264
|
/* @__PURE__ */ t("div", {
|
|
4190
|
-
className:
|
|
4265
|
+
className: sr.content,
|
|
4191
4266
|
children: e
|
|
4192
4267
|
})
|
|
4193
4268
|
]
|
|
4194
4269
|
});
|
|
4195
|
-
},
|
|
4196
|
-
let n =
|
|
4270
|
+
}, fr = ({ registry: e }) => {
|
|
4271
|
+
let n = $n((e) => e.modals), r = $n((e) => e.closeModal), [i, a] = g(() => /* @__PURE__ */ new Set()), o = h(/* @__PURE__ */ new Map()), s = (e) => {
|
|
4197
4272
|
if (o.current.has(e)) return;
|
|
4198
4273
|
a((t) => new Set(t).add(e));
|
|
4199
4274
|
let t = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -4209,7 +4284,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4209
4284
|
return () => e.forEach((e) => window.clearTimeout(e));
|
|
4210
4285
|
}, []), d(() => {
|
|
4211
4286
|
let e = (e) => {
|
|
4212
|
-
let t =
|
|
4287
|
+
let t = $n.getState().modals.at(-1);
|
|
4213
4288
|
e.key === "Escape" && t?.closeOnEscape && s(t.id);
|
|
4214
4289
|
};
|
|
4215
4290
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
@@ -4222,21 +4297,21 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4222
4297
|
n,
|
|
4223
4298
|
e
|
|
4224
4299
|
]), !n.length || typeof document > "u" ? null : _(/* @__PURE__ */ t("div", {
|
|
4225
|
-
className:
|
|
4300
|
+
className: sr.layer,
|
|
4226
4301
|
"aria-label": "Модальные окна",
|
|
4227
4302
|
children: n.map((r, a) => {
|
|
4228
4303
|
let o = e[r.name];
|
|
4229
4304
|
if (!o) return null;
|
|
4230
4305
|
let c = i.has(r.id);
|
|
4231
4306
|
return /* @__PURE__ */ t("div", {
|
|
4232
|
-
className:
|
|
4307
|
+
className: sr.backdrop,
|
|
4233
4308
|
"data-closing": c || void 0,
|
|
4234
4309
|
"aria-hidden": a !== n.length - 1 || void 0,
|
|
4235
4310
|
inert: a !== n.length - 1 || void 0,
|
|
4236
4311
|
onMouseDown: (e) => {
|
|
4237
4312
|
e.target === e.currentTarget && r.closeOnBackdrop && s(r.id);
|
|
4238
4313
|
},
|
|
4239
|
-
children: /* @__PURE__ */ t(
|
|
4314
|
+
children: /* @__PURE__ */ t(lr.Provider, {
|
|
4240
4315
|
value: {
|
|
4241
4316
|
title: r.title ?? r.payload.title,
|
|
4242
4317
|
description: r.description ?? r.payload.description,
|
|
@@ -4253,31 +4328,31 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4253
4328
|
}, r.id);
|
|
4254
4329
|
})
|
|
4255
4330
|
}), document.body);
|
|
4256
|
-
},
|
|
4257
|
-
let o =
|
|
4331
|
+
}, pr = ({ registry: r, children: i, lockBodyScroll: a = !0 }) => {
|
|
4332
|
+
let o = $n((e) => e.modals.length);
|
|
4258
4333
|
return d(() => {
|
|
4259
4334
|
if (!a || o === 0) return;
|
|
4260
4335
|
let e = document.body.style.overflow;
|
|
4261
4336
|
return document.body.style.overflow = "hidden", () => {
|
|
4262
4337
|
document.body.style.overflow = e;
|
|
4263
4338
|
};
|
|
4264
|
-
}, [a, o]), /* @__PURE__ */ n(e, { children: [i, /* @__PURE__ */ t(
|
|
4265
|
-
},
|
|
4339
|
+
}, [a, o]), /* @__PURE__ */ n(e, { children: [i, /* @__PURE__ */ t(fr, { registry: r })] });
|
|
4340
|
+
}, mr = (e) => e, hr = {
|
|
4266
4341
|
message: "_message_c23ie_1",
|
|
4267
4342
|
actions: "_actions_c23ie_13"
|
|
4268
|
-
},
|
|
4343
|
+
}, gr = /* @__PURE__ */ new Map(), _r = 0, vr = ({ modalId: e, close: r, title: i = "Подтверждение", message: a = "Продолжить действие?", confirmLabel: o = "Подтвердить", cancelLabel: s = "Отмена", tone: c = "default", requestId: l }) => {
|
|
4269
4344
|
let u = (e) => {
|
|
4270
|
-
|
|
4345
|
+
gr.get(l)?.(e), gr.delete(l), r();
|
|
4271
4346
|
};
|
|
4272
|
-
return /* @__PURE__ */ n(
|
|
4347
|
+
return /* @__PURE__ */ n(dr, {
|
|
4273
4348
|
modalId: e,
|
|
4274
4349
|
title: i,
|
|
4275
4350
|
role: "alertdialog",
|
|
4276
4351
|
children: [/* @__PURE__ */ t("p", {
|
|
4277
|
-
className:
|
|
4352
|
+
className: hr.message,
|
|
4278
4353
|
children: a
|
|
4279
4354
|
}), /* @__PURE__ */ n("div", {
|
|
4280
|
-
className:
|
|
4355
|
+
className: hr.actions,
|
|
4281
4356
|
children: [/* @__PURE__ */ t(B, {
|
|
4282
4357
|
variant: "outline",
|
|
4283
4358
|
onClick: () => u(!1),
|
|
@@ -4289,46 +4364,46 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4289
4364
|
})]
|
|
4290
4365
|
})]
|
|
4291
4366
|
});
|
|
4292
|
-
},
|
|
4367
|
+
}, yr = ({ modalId: e, close: r, title: i = "Ошибка", message: a, closeLabel: o = "Закрыть" }) => /* @__PURE__ */ n(dr, {
|
|
4293
4368
|
modalId: e,
|
|
4294
4369
|
title: i,
|
|
4295
4370
|
role: "alertdialog",
|
|
4296
4371
|
children: [/* @__PURE__ */ t("p", {
|
|
4297
|
-
className:
|
|
4372
|
+
className: hr.message,
|
|
4298
4373
|
children: a
|
|
4299
4374
|
}), /* @__PURE__ */ t("div", {
|
|
4300
|
-
className:
|
|
4375
|
+
className: hr.actions,
|
|
4301
4376
|
children: /* @__PURE__ */ t(B, {
|
|
4302
4377
|
onClick: r,
|
|
4303
4378
|
children: o
|
|
4304
4379
|
})
|
|
4305
4380
|
})]
|
|
4306
|
-
}),
|
|
4307
|
-
ConfirmModal:
|
|
4308
|
-
ErrorModal:
|
|
4309
|
-
}),
|
|
4310
|
-
let e =
|
|
4381
|
+
}), br = mr({
|
|
4382
|
+
ConfirmModal: vr,
|
|
4383
|
+
ErrorModal: yr
|
|
4384
|
+
}), xr = () => {
|
|
4385
|
+
let e = $n((e) => e.openModal);
|
|
4311
4386
|
return (t = {}) => new Promise((n) => {
|
|
4312
|
-
|
|
4313
|
-
let r = `confirm-${
|
|
4314
|
-
|
|
4387
|
+
_r += 1;
|
|
4388
|
+
let r = `confirm-${_r}`;
|
|
4389
|
+
gr.set(r, n), e("ConfirmModal", {
|
|
4315
4390
|
...t,
|
|
4316
4391
|
requestId: r
|
|
4317
4392
|
}, {
|
|
4318
4393
|
closeOnEscape: !1,
|
|
4319
4394
|
onClose: () => {
|
|
4320
|
-
|
|
4395
|
+
gr.get(r)?.(!1), gr.delete(r);
|
|
4321
4396
|
}
|
|
4322
4397
|
});
|
|
4323
4398
|
});
|
|
4324
|
-
},
|
|
4325
|
-
let e =
|
|
4399
|
+
}, Sr = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e && typeof e.message == "string" ? e.message : "Произошла неизвестная ошибка", Cr = () => {
|
|
4400
|
+
let e = $n((e) => e.openModal);
|
|
4326
4401
|
return { showError: (t, n) => e("ErrorModal", {
|
|
4327
4402
|
title: n,
|
|
4328
|
-
message:
|
|
4403
|
+
message: Sr(t)
|
|
4329
4404
|
}) };
|
|
4330
|
-
},
|
|
4331
|
-
let e =
|
|
4405
|
+
}, wr = S(() => ({})), Tr = S(() => ({})), Er = () => {
|
|
4406
|
+
let e = $n((e) => e.modals), t = $n((e) => e.openModal), n = $n((e) => e.closeModal), r = $n((e) => e.closeTopModal), i = $n((e) => e.closeAllModals), a = l((e, n = {}, r) => t(e, n, r), [t]), o = l((t) => e.some((e) => e.name === t), [e]);
|
|
4332
4407
|
return m(() => ({
|
|
4333
4408
|
openModal: a,
|
|
4334
4409
|
closeModal: n,
|
|
@@ -4344,100 +4419,120 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4344
4419
|
e.length,
|
|
4345
4420
|
a
|
|
4346
4421
|
]);
|
|
4347
|
-
},
|
|
4348
|
-
layer: "
|
|
4349
|
-
backdrop: "
|
|
4350
|
-
panel: "
|
|
4351
|
-
right: "
|
|
4352
|
-
left: "
|
|
4353
|
-
bottom: "
|
|
4354
|
-
fullscreen: "
|
|
4355
|
-
sm: "
|
|
4356
|
-
md: "
|
|
4357
|
-
lg: "
|
|
4358
|
-
xl: "
|
|
4359
|
-
header: "
|
|
4360
|
-
heading: "
|
|
4361
|
-
headerActions: "
|
|
4362
|
-
content: "
|
|
4363
|
-
footer: "
|
|
4364
|
-
"enter-
|
|
4365
|
-
"enter-
|
|
4366
|
-
"enter-
|
|
4367
|
-
|
|
4422
|
+
}, Dr = {
|
|
4423
|
+
layer: "_layer_npyhl_1",
|
|
4424
|
+
backdrop: "_backdrop_npyhl_21",
|
|
4425
|
+
panel: "_panel_npyhl_47",
|
|
4426
|
+
right: "_right_npyhl_95",
|
|
4427
|
+
left: "_left_npyhl_117",
|
|
4428
|
+
bottom: "_bottom_npyhl_139",
|
|
4429
|
+
fullscreen: "_fullscreen_npyhl_161",
|
|
4430
|
+
sm: "_sm_npyhl_181",
|
|
4431
|
+
md: "_md_npyhl_189",
|
|
4432
|
+
lg: "_lg_npyhl_197",
|
|
4433
|
+
xl: "_xl_npyhl_205",
|
|
4434
|
+
header: "_header_npyhl_213",
|
|
4435
|
+
heading: "_heading_npyhl_231",
|
|
4436
|
+
headerActions: "_headerActions_npyhl_271",
|
|
4437
|
+
content: "_content_npyhl_283",
|
|
4438
|
+
footer: "_footer_npyhl_295",
|
|
4439
|
+
"enter-backdrop": "_enter-backdrop_npyhl_1",
|
|
4440
|
+
"enter-right": "_enter-right_npyhl_1",
|
|
4441
|
+
"enter-left": "_enter-left_npyhl_1",
|
|
4442
|
+
"enter-bottom": "_enter-bottom_npyhl_1",
|
|
4443
|
+
"enter-fullscreen": "_enter-fullscreen_npyhl_1"
|
|
4444
|
+
}, Or = "button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", kr = a(null), Ar = 200, jr = (e) => {
|
|
4368
4445
|
if (e.key !== "Tab") return;
|
|
4369
|
-
let t = Array.from(e.currentTarget.querySelectorAll(
|
|
4446
|
+
let t = Array.from(e.currentTarget.querySelectorAll(Or));
|
|
4370
4447
|
if (!t.length) {
|
|
4371
4448
|
e.preventDefault();
|
|
4372
4449
|
return;
|
|
4373
4450
|
}
|
|
4374
4451
|
let n = t[0], r = t.at(-1);
|
|
4375
4452
|
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r?.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
4376
|
-
},
|
|
4377
|
-
let
|
|
4378
|
-
|
|
4453
|
+
}, Mr = () => u(kr), Nr = ({ 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: v = !1, closeLabel: y = "Закрыть", initialFocusRef: b, returnFocusRef: x, className: S = "" }) => {
|
|
4454
|
+
let C = h(null), w = h(null), T = h(r), E = h(p), D = h(v), O = h(e), [k, A] = g(e), [j, M] = g(!1), N = f(), P = f();
|
|
4455
|
+
T.current = r, E.current = p, D.current = v, O.current = e;
|
|
4456
|
+
let F = (e) => {
|
|
4457
|
+
O.current && !D.current && T.current(e);
|
|
4379
4458
|
};
|
|
4380
4459
|
return d(() => {
|
|
4381
|
-
if (
|
|
4382
|
-
|
|
4460
|
+
if (w.current !== null && (window.clearTimeout(w.current), w.current = null), e) {
|
|
4461
|
+
A(!0), M(!1);
|
|
4462
|
+
return;
|
|
4463
|
+
}
|
|
4464
|
+
if (!k) return;
|
|
4465
|
+
let t = () => {
|
|
4466
|
+
w.current = null, A(!1), M(!1);
|
|
4467
|
+
}, n = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
4468
|
+
if (M(!0), n) {
|
|
4469
|
+
t();
|
|
4470
|
+
return;
|
|
4471
|
+
}
|
|
4472
|
+
return w.current = window.setTimeout(t, Ar), () => {
|
|
4473
|
+
w.current !== null && (window.clearTimeout(w.current), w.current = null);
|
|
4474
|
+
};
|
|
4475
|
+
}, [e, k]), d(() => {
|
|
4476
|
+
if (!k || typeof document > "u") return;
|
|
4477
|
+
let e = document.activeElement, t = x?.current, n = document.body.style.overflow;
|
|
4383
4478
|
document.body.style.overflow = "hidden";
|
|
4384
|
-
let
|
|
4385
|
-
(
|
|
4386
|
-
let
|
|
4387
|
-
e.key === "Escape" &&
|
|
4479
|
+
let r = C.current;
|
|
4480
|
+
(b?.current ?? r?.querySelector(Or) ?? r)?.focus();
|
|
4481
|
+
let i = (e) => {
|
|
4482
|
+
e.key === "Escape" && O.current && E.current && !D.current && T.current("escape");
|
|
4388
4483
|
};
|
|
4389
|
-
return document.addEventListener("keydown",
|
|
4390
|
-
document.removeEventListener("keydown",
|
|
4484
|
+
return document.addEventListener("keydown", i), () => {
|
|
4485
|
+
document.removeEventListener("keydown", i), document.body.style.overflow = n, (t ?? e)?.focus();
|
|
4391
4486
|
};
|
|
4392
4487
|
}, [
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
]), !e || typeof document > "u" ? null : _(/* @__PURE__ */ t("div", {
|
|
4400
|
-
className: Sr.layer,
|
|
4488
|
+
b,
|
|
4489
|
+
k,
|
|
4490
|
+
x
|
|
4491
|
+
]), !k || typeof document > "u" ? null : _(/* @__PURE__ */ t("div", {
|
|
4492
|
+
className: Dr.layer,
|
|
4493
|
+
"data-closing": j || void 0,
|
|
4401
4494
|
children: /* @__PURE__ */ t("div", {
|
|
4402
|
-
className:
|
|
4495
|
+
className: Dr.backdrop,
|
|
4496
|
+
"data-closing": j || void 0,
|
|
4403
4497
|
onMouseDown: (e) => {
|
|
4404
|
-
e.target === e.currentTarget && m &&
|
|
4498
|
+
e.target === e.currentTarget && m && F("backdrop");
|
|
4405
4499
|
},
|
|
4406
|
-
children: /* @__PURE__ */ t(
|
|
4407
|
-
value: { requestClose:
|
|
4500
|
+
children: /* @__PURE__ */ t(kr.Provider, {
|
|
4501
|
+
value: { requestClose: F },
|
|
4408
4502
|
children: /* @__PURE__ */ n("section", {
|
|
4409
|
-
ref:
|
|
4410
|
-
className: `${
|
|
4503
|
+
ref: C,
|
|
4504
|
+
className: `${Dr.panel} ${Dr[l]} ${Dr[u]} ${S}`,
|
|
4505
|
+
"data-closing": j || void 0,
|
|
4411
4506
|
role: "dialog",
|
|
4412
4507
|
"aria-modal": "true",
|
|
4413
|
-
"aria-labelledby": a ?
|
|
4414
|
-
"aria-describedby": o ?
|
|
4508
|
+
"aria-labelledby": a ? N : void 0,
|
|
4509
|
+
"aria-describedby": o ? P : void 0,
|
|
4415
4510
|
tabIndex: -1,
|
|
4416
|
-
onKeyDown:
|
|
4511
|
+
onKeyDown: jr,
|
|
4417
4512
|
children: [
|
|
4418
4513
|
/* @__PURE__ */ n("header", {
|
|
4419
|
-
className:
|
|
4514
|
+
className: Dr.header,
|
|
4420
4515
|
children: [
|
|
4421
4516
|
/* @__PURE__ */ n("div", {
|
|
4422
|
-
className:
|
|
4517
|
+
className: Dr.heading,
|
|
4423
4518
|
children: [a && /* @__PURE__ */ t("h2", {
|
|
4424
|
-
id:
|
|
4519
|
+
id: N,
|
|
4425
4520
|
children: a
|
|
4426
4521
|
}), o && /* @__PURE__ */ t("p", {
|
|
4427
|
-
id:
|
|
4522
|
+
id: P,
|
|
4428
4523
|
children: o
|
|
4429
4524
|
})]
|
|
4430
4525
|
}),
|
|
4431
4526
|
s && /* @__PURE__ */ t("div", {
|
|
4432
|
-
className:
|
|
4527
|
+
className: Dr.headerActions,
|
|
4433
4528
|
children: s
|
|
4434
4529
|
}),
|
|
4435
4530
|
/* @__PURE__ */ t(B, {
|
|
4436
4531
|
variant: "empty",
|
|
4437
4532
|
size: "sm",
|
|
4438
|
-
"aria-label":
|
|
4439
|
-
disabled:
|
|
4440
|
-
onClick: () =>
|
|
4533
|
+
"aria-label": y,
|
|
4534
|
+
disabled: v,
|
|
4535
|
+
onClick: () => F("close-button"),
|
|
4441
4536
|
children: /* @__PURE__ */ t(J, {
|
|
4442
4537
|
name: "IconCross",
|
|
4443
4538
|
width: 20,
|
|
@@ -4447,11 +4542,11 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4447
4542
|
]
|
|
4448
4543
|
}),
|
|
4449
4544
|
/* @__PURE__ */ t("div", {
|
|
4450
|
-
className:
|
|
4545
|
+
className: Dr.content,
|
|
4451
4546
|
children: i
|
|
4452
4547
|
}),
|
|
4453
4548
|
c && /* @__PURE__ */ t("footer", {
|
|
4454
|
-
className:
|
|
4549
|
+
className: Dr.footer,
|
|
4455
4550
|
children: c
|
|
4456
4551
|
})
|
|
4457
4552
|
]
|
|
@@ -4459,17 +4554,17 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4459
4554
|
})
|
|
4460
4555
|
})
|
|
4461
4556
|
}), document.body);
|
|
4462
|
-
},
|
|
4557
|
+
}, Pr = ({ placement: e = "right", ...n }) => /* @__PURE__ */ t(Nr, {
|
|
4463
4558
|
...n,
|
|
4464
4559
|
placement: e
|
|
4465
|
-
}),
|
|
4560
|
+
}), Fr = (e) => /* @__PURE__ */ t(Nr, {
|
|
4466
4561
|
...e,
|
|
4467
4562
|
placement: "bottom"
|
|
4468
|
-
}),
|
|
4563
|
+
}), Ir = (e) => /* @__PURE__ */ t(Nr, {
|
|
4469
4564
|
...e,
|
|
4470
4565
|
placement: "fullscreen",
|
|
4471
4566
|
size: "xl"
|
|
4472
|
-
}),
|
|
4567
|
+
}), Lr = {
|
|
4473
4568
|
wrapper: "_wrapper_hpk6i_1",
|
|
4474
4569
|
container: "_container_hpk6i_15",
|
|
4475
4570
|
inner: "_inner_hpk6i_35",
|
|
@@ -4484,29 +4579,29 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4484
4579
|
empty: "_empty_hpk6i_153",
|
|
4485
4580
|
destructive: "_destructive_hpk6i_161",
|
|
4486
4581
|
destructiveOutline: "_destructiveOutline_hpk6i_169"
|
|
4487
|
-
},
|
|
4488
|
-
className:
|
|
4582
|
+
}, Rr = ({ variant: e = "primary" }) => /* @__PURE__ */ t("div", {
|
|
4583
|
+
className: Lr.wrapper,
|
|
4489
4584
|
children: /* @__PURE__ */ t("div", {
|
|
4490
|
-
className:
|
|
4585
|
+
className: Lr.container,
|
|
4491
4586
|
children: /* @__PURE__ */ n("div", {
|
|
4492
|
-
className:
|
|
4587
|
+
className: Lr.inner,
|
|
4493
4588
|
children: [
|
|
4494
4589
|
/* @__PURE__ */ t("div", {
|
|
4495
|
-
className:
|
|
4496
|
-
children: /* @__PURE__ */ t("div", { className: `${
|
|
4590
|
+
className: Lr.cube,
|
|
4591
|
+
children: /* @__PURE__ */ t("div", { className: `${Lr.cube__inner} ${Lr[e]}` })
|
|
4497
4592
|
}),
|
|
4498
4593
|
/* @__PURE__ */ t("div", {
|
|
4499
|
-
className:
|
|
4500
|
-
children: /* @__PURE__ */ t("div", { className: `${
|
|
4594
|
+
className: Lr.cube,
|
|
4595
|
+
children: /* @__PURE__ */ t("div", { className: `${Lr.cube__inner} ${Lr[e]}` })
|
|
4501
4596
|
}),
|
|
4502
4597
|
/* @__PURE__ */ t("div", {
|
|
4503
|
-
className:
|
|
4504
|
-
children: /* @__PURE__ */ t("div", { className: `${
|
|
4598
|
+
className: Lr.cube,
|
|
4599
|
+
children: /* @__PURE__ */ t("div", { className: `${Lr.cube__inner} ${Lr[e]}` })
|
|
4505
4600
|
})
|
|
4506
4601
|
]
|
|
4507
4602
|
})
|
|
4508
4603
|
})
|
|
4509
|
-
}),
|
|
4604
|
+
}), zr = {
|
|
4510
4605
|
viewport: "_viewport_22b73_1",
|
|
4511
4606
|
"top-right": "_top-right_22b73_21",
|
|
4512
4607
|
"top-left": "_top-left_22b73_31",
|
|
@@ -4522,12 +4617,12 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4522
4617
|
success: "_success_22b73_195",
|
|
4523
4618
|
warning: "_warning_22b73_203",
|
|
4524
4619
|
error: "_error_22b73_211"
|
|
4525
|
-
},
|
|
4620
|
+
}, Br = {
|
|
4526
4621
|
info: "IconInfoCircle",
|
|
4527
4622
|
success: "IconSuccessCircle",
|
|
4528
4623
|
warning: "IconWarning",
|
|
4529
4624
|
error: "IconWarning"
|
|
4530
|
-
},
|
|
4625
|
+
}, Vr = ({ toast: e, onClose: r }) => {
|
|
4531
4626
|
let [i, a] = g(!1), [o, s] = g(() => typeof document < "u" && document.hidden), c = h(e.duration), l = h(Date.now());
|
|
4532
4627
|
return d(() => {
|
|
4533
4628
|
if (i || o || e.duration <= 0) return;
|
|
@@ -4547,7 +4642,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4547
4642
|
let e = () => s(document.hidden);
|
|
4548
4643
|
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
4549
4644
|
}, []), /* @__PURE__ */ n("article", {
|
|
4550
|
-
className: `${
|
|
4645
|
+
className: `${zr.toast} ${zr[e.variant]}`,
|
|
4551
4646
|
role: e.variant === "error" ? "alert" : "status",
|
|
4552
4647
|
"aria-live": e.variant === "error" ? "assertive" : "polite",
|
|
4553
4648
|
onMouseEnter: () => a(!0),
|
|
@@ -4556,24 +4651,24 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4556
4651
|
onBlur: () => a(!1),
|
|
4557
4652
|
children: [
|
|
4558
4653
|
/* @__PURE__ */ t("div", {
|
|
4559
|
-
className:
|
|
4654
|
+
className: zr.icon,
|
|
4560
4655
|
"aria-hidden": "true",
|
|
4561
4656
|
children: /* @__PURE__ */ t(J, {
|
|
4562
|
-
name:
|
|
4657
|
+
name: Br[e.variant],
|
|
4563
4658
|
color: "var(--ds-toast-accent)",
|
|
4564
4659
|
width: 20,
|
|
4565
4660
|
height: 20
|
|
4566
4661
|
})
|
|
4567
4662
|
}),
|
|
4568
4663
|
/* @__PURE__ */ n("div", {
|
|
4569
|
-
className:
|
|
4664
|
+
className: zr.body,
|
|
4570
4665
|
children: [
|
|
4571
4666
|
e.title && /* @__PURE__ */ t("strong", {
|
|
4572
|
-
className:
|
|
4667
|
+
className: zr.title,
|
|
4573
4668
|
children: e.title
|
|
4574
4669
|
}),
|
|
4575
4670
|
/* @__PURE__ */ t("div", {
|
|
4576
|
-
className:
|
|
4671
|
+
className: zr.message,
|
|
4577
4672
|
children: e.message
|
|
4578
4673
|
}),
|
|
4579
4674
|
e.action && /* @__PURE__ */ t(B, {
|
|
@@ -4599,15 +4694,15 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4599
4694
|
})
|
|
4600
4695
|
]
|
|
4601
4696
|
});
|
|
4602
|
-
},
|
|
4697
|
+
}, Hr = 0, Ur = S((e, t) => ({
|
|
4603
4698
|
toasts: [],
|
|
4604
4699
|
showToast: (n) => {
|
|
4605
4700
|
if (n.dedupeKey) {
|
|
4606
4701
|
let e = t().toasts.find((e) => e.dedupeKey === n.dedupeKey);
|
|
4607
4702
|
if (e) return e.id;
|
|
4608
4703
|
}
|
|
4609
|
-
|
|
4610
|
-
let r = `ds-toast-${
|
|
4704
|
+
Hr += 1;
|
|
4705
|
+
let r = `ds-toast-${Hr}`;
|
|
4611
4706
|
return e((e) => ({ toasts: [...e.toasts, {
|
|
4612
4707
|
variant: "info",
|
|
4613
4708
|
duration: 5e3,
|
|
@@ -4618,18 +4713,18 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4618
4713
|
},
|
|
4619
4714
|
removeToast: (t) => e((e) => ({ toasts: e.toasts.filter((e) => e.id !== t) })),
|
|
4620
4715
|
clearToasts: () => e({ toasts: [] })
|
|
4621
|
-
})),
|
|
4622
|
-
let r =
|
|
4716
|
+
})), Wr = () => Ur.setState({ toasts: [] }), Gr = ({ position: e = "top-right", maxVisible: n }) => {
|
|
4717
|
+
let r = Ur((e) => e.toasts), i = Ur((e) => e.removeToast), a = n === void 0 ? r : r.slice(0, Math.max(0, Math.floor(n)));
|
|
4623
4718
|
return /* @__PURE__ */ t("div", {
|
|
4624
|
-
className: `${
|
|
4719
|
+
className: `${zr.viewport} ${zr[e]}`,
|
|
4625
4720
|
"aria-label": "Уведомления",
|
|
4626
|
-
children: a.map((e) => /* @__PURE__ */ t(
|
|
4721
|
+
children: a.map((e) => /* @__PURE__ */ t(Vr, {
|
|
4627
4722
|
toast: e,
|
|
4628
4723
|
onClose: i
|
|
4629
4724
|
}, e.id))
|
|
4630
4725
|
});
|
|
4631
|
-
},
|
|
4632
|
-
let e =
|
|
4726
|
+
}, Kr = () => {
|
|
4727
|
+
let e = Ur((e) => e.showToast), t = Ur((e) => e.removeToast), n = Ur((e) => e.clearToasts), r = l((t) => e({
|
|
4633
4728
|
...t,
|
|
4634
4729
|
variant: "info"
|
|
4635
4730
|
}), [e]), i = l((t) => e({
|
|
@@ -4659,13 +4754,13 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4659
4754
|
i,
|
|
4660
4755
|
a
|
|
4661
4756
|
]);
|
|
4662
|
-
},
|
|
4757
|
+
}, qr = {
|
|
4663
4758
|
root: "_root_bs28m_1",
|
|
4664
4759
|
tabList: "_tabList_bs28m_11",
|
|
4665
4760
|
tab: "_tab_bs28m_11",
|
|
4666
4761
|
panels: "_panels_bs28m_127",
|
|
4667
4762
|
panel: "_panel_bs28m_127"
|
|
4668
|
-
},
|
|
4763
|
+
}, Jr = ({ items: e, value: r, onChange: i, ariaLabel: a = "Вкладки", disabled: o = !1, loading: s = !1, className: c = "" }) => {
|
|
4669
4764
|
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) => {
|
|
4670
4765
|
let n = e[t];
|
|
4671
4766
|
!n || n.disabled || d || (i(n.id), u.current[t]?.focus(), u.current[t]?.scrollIntoView({
|
|
@@ -4695,10 +4790,10 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4695
4790
|
t.preventDefault(), _(a);
|
|
4696
4791
|
};
|
|
4697
4792
|
return /* @__PURE__ */ n("div", {
|
|
4698
|
-
className: `${
|
|
4793
|
+
className: `${qr.root} ${c}`,
|
|
4699
4794
|
"aria-busy": s || void 0,
|
|
4700
4795
|
children: [/* @__PURE__ */ t("div", {
|
|
4701
|
-
className:
|
|
4796
|
+
className: qr.tabList,
|
|
4702
4797
|
role: "tablist",
|
|
4703
4798
|
"aria-label": a,
|
|
4704
4799
|
"aria-orientation": "horizontal",
|
|
@@ -4710,7 +4805,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4710
4805
|
u.current[n] = e;
|
|
4711
4806
|
},
|
|
4712
4807
|
id: a,
|
|
4713
|
-
className:
|
|
4808
|
+
className: qr.tab,
|
|
4714
4809
|
type: "button",
|
|
4715
4810
|
role: "tab",
|
|
4716
4811
|
"aria-selected": i,
|
|
@@ -4723,12 +4818,12 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4723
4818
|
}, e.id);
|
|
4724
4819
|
})
|
|
4725
4820
|
}), /* @__PURE__ */ t("div", {
|
|
4726
|
-
className:
|
|
4821
|
+
className: qr.panels,
|
|
4727
4822
|
children: e.map((e, n) => {
|
|
4728
4823
|
let i = e.id === r;
|
|
4729
4824
|
return /* @__PURE__ */ t("div", {
|
|
4730
4825
|
id: `${l}-panel-${n}`,
|
|
4731
|
-
className:
|
|
4826
|
+
className: qr.panel,
|
|
4732
4827
|
role: "tabpanel",
|
|
4733
4828
|
"aria-labelledby": `${l}-tab-${n}`,
|
|
4734
4829
|
tabIndex: 0,
|
|
@@ -4738,7 +4833,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4738
4833
|
})
|
|
4739
4834
|
})]
|
|
4740
4835
|
});
|
|
4741
|
-
},
|
|
4836
|
+
}, Yr = (e) => {
|
|
4742
4837
|
if (!Number.isFinite(e) || e < 0) return "00:00";
|
|
4743
4838
|
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")}`;
|
|
4744
4839
|
return n ? `${n}:${a}` : a;
|
|
@@ -4771,19 +4866,19 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4771
4866
|
settingsActionLabel: "_settingsActionLabel_m0ykf_693",
|
|
4772
4867
|
caption: "_caption_m0ykf_705",
|
|
4773
4868
|
fullscreen: "_fullscreen_m0ykf_719"
|
|
4774
|
-
},
|
|
4869
|
+
}, Xr = 2500, Zr = 5, Qr = .05, $r = [
|
|
4775
4870
|
.5,
|
|
4776
4871
|
.75,
|
|
4777
4872
|
1,
|
|
4778
4873
|
1.25,
|
|
4779
4874
|
1.5,
|
|
4780
4875
|
2
|
|
4781
|
-
],
|
|
4876
|
+
], ei = ({ 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 }) => {
|
|
4782
4877
|
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), [k, A] = g(!1), [j, M] = g(!1), [N, P] = g(0), [F, I] = g(0), [L, R] = g(0), [z, te] = g(1), [V, ne] = g(!!v.muted), [H, U] = g(1), [W, re] = g(!!v.loop), [ie, ae] = g(-1), [oe, se] = g(!1), [ce, G] = g(!0), [le, ue] = g(!1), [de, fe] = g(!1), pe = r.map(({ src: e, type: t }) => `${e}:${t ?? ""}`).join("|"), me = i.map((e, t) => ({
|
|
4783
4878
|
track: e,
|
|
4784
4879
|
index: t
|
|
4785
4880
|
})).filter(({ track: e }) => e.kind === "captions" || e.kind === "subtitles"), he = u ?? (C ? "Не удалось воспроизвести видео" : void 0), ge = c || T && !he && r.length > 0, K = !ge && !he && r.length === 0, _e = typeof document < "u" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled, ve = l(() => {
|
|
4786
|
-
G(!0), window.clearTimeout(S.current), k && !oe && (S.current = window.setTimeout(() => G(!1),
|
|
4881
|
+
G(!0), window.clearTimeout(S.current), k && !oe && (S.current = window.setTimeout(() => G(!1), Xr));
|
|
4787
4882
|
}, [k, oe]);
|
|
4788
4883
|
d(() => {
|
|
4789
4884
|
w(!1), E(r.length > 0), O(!1), A(!1), M(!1), P(0), I(0), R(0);
|
|
@@ -4842,7 +4937,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4842
4937
|
let t = e.target;
|
|
4843
4938
|
if (/^(INPUT|SELECT|BUTTON)$/.test(t.tagName)) return;
|
|
4844
4939
|
let n = e.key.toLowerCase();
|
|
4845
|
-
n === " " || n === "k" ? (e.preventDefault(), ye()) : n === "m" ? (e.preventDefault(), be()) : n === "f" ? (e.preventDefault(), Ce()) : n === "c" && me.length ? (e.preventDefault(), Te(ie === -1 ? me[0].index : -1)) : e.key === "ArrowLeft" || e.key === "ArrowRight" ? (e.preventDefault(), Se(N + (e.key === "ArrowRight" ?
|
|
4940
|
+
n === " " || n === "k" ? (e.preventDefault(), ye()) : n === "m" ? (e.preventDefault(), be()) : n === "f" ? (e.preventDefault(), Ce()) : n === "c" && me.length ? (e.preventDefault(), Te(ie === -1 ? me[0].index : -1)) : e.key === "ArrowLeft" || e.key === "ArrowRight" ? (e.preventDefault(), Se(N + (e.key === "ArrowRight" ? Zr : -5))) : e.key === "ArrowUp" || e.key === "ArrowDown" ? (e.preventDefault(), xe(z + (e.key === "ArrowUp" ? Qr : -.05))) : e.key === "Escape" && se(!1), ve();
|
|
4846
4941
|
}, De = () => {
|
|
4847
4942
|
let e = x.current;
|
|
4848
4943
|
w(!1), E(!0), e?.load();
|
|
@@ -4941,7 +5036,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
4941
5036
|
"aria-hidden": "true",
|
|
4942
5037
|
children: /* @__PURE__ */ t("div", {
|
|
4943
5038
|
className: $.loaderScale,
|
|
4944
|
-
children: /* @__PURE__ */ t(
|
|
5039
|
+
children: /* @__PURE__ */ t(Rr, {})
|
|
4945
5040
|
})
|
|
4946
5041
|
}), /* @__PURE__ */ t("span", { children: "Загрузка видео" })]
|
|
4947
5042
|
}),
|
|
@@ -5009,7 +5104,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5009
5104
|
let t = Number(e.target.value);
|
|
5010
5105
|
x.current && (x.current.playbackRate = t);
|
|
5011
5106
|
},
|
|
5012
|
-
children:
|
|
5107
|
+
children: $r.map((e) => /* @__PURE__ */ n("option", {
|
|
5013
5108
|
value: e,
|
|
5014
5109
|
children: [e, "×"]
|
|
5015
5110
|
}, e))
|
|
@@ -5096,7 +5191,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5096
5191
|
children: [
|
|
5097
5192
|
/* @__PURE__ */ t("span", {
|
|
5098
5193
|
className: $.time,
|
|
5099
|
-
children:
|
|
5194
|
+
children: Yr(N)
|
|
5100
5195
|
}),
|
|
5101
5196
|
/* @__PURE__ */ t("input", {
|
|
5102
5197
|
className: $.timeline,
|
|
@@ -5107,12 +5202,12 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5107
5202
|
step: .01,
|
|
5108
5203
|
value: Math.min(N, F || 0),
|
|
5109
5204
|
"aria-label": "Позиция воспроизведения",
|
|
5110
|
-
"aria-valuetext": `${
|
|
5205
|
+
"aria-valuetext": `${Yr(N)} из ${Yr(F)}`,
|
|
5111
5206
|
onChange: (e) => Se(Number(e.target.value))
|
|
5112
5207
|
}),
|
|
5113
5208
|
/* @__PURE__ */ t("span", {
|
|
5114
5209
|
className: $.time,
|
|
5115
|
-
children:
|
|
5210
|
+
children: Yr(F)
|
|
5116
5211
|
})
|
|
5117
5212
|
]
|
|
5118
5213
|
}),
|
|
@@ -5152,7 +5247,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5152
5247
|
children: a
|
|
5153
5248
|
})]
|
|
5154
5249
|
});
|
|
5155
|
-
},
|
|
5250
|
+
}, ti = {
|
|
5156
5251
|
root: "_root_14ewt_1",
|
|
5157
5252
|
topSlot: "_topSlot_14ewt_29",
|
|
5158
5253
|
searchSlot: "_searchSlot_14ewt_31",
|
|
@@ -5170,14 +5265,14 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5170
5265
|
description: "_description_14ewt_235",
|
|
5171
5266
|
badge: "_badge_14ewt_269",
|
|
5172
5267
|
empty: "_empty_14ewt_281"
|
|
5173
|
-
},
|
|
5268
|
+
}, ni = (e, t, n) => {
|
|
5174
5269
|
if (e.length === 0) return -1;
|
|
5175
5270
|
for (let r = 1; r <= e.length; r += 1) {
|
|
5176
5271
|
let i = (t + n * r + e.length) % e.length;
|
|
5177
5272
|
if (!e[i]?.disabled) return i;
|
|
5178
5273
|
}
|
|
5179
5274
|
return -1;
|
|
5180
|
-
},
|
|
5275
|
+
}, ri = ({ groups: r, currentItemId: i, ariaLabel: a = "Основная навигация", searchSlot: o, topSlot: s, bottomSlot: c, emptyState: l, renderLink: u, onItemSelect: d, className: p = "" }) => {
|
|
5181
5276
|
let m = f(), g = h(null), _ = h({
|
|
5182
5277
|
value: "",
|
|
5183
5278
|
time: 0
|
|
@@ -5189,7 +5284,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5189
5284
|
let n = v.findIndex((e) => e.id === t.id);
|
|
5190
5285
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
5191
5286
|
e.preventDefault();
|
|
5192
|
-
let t =
|
|
5287
|
+
let t = ni(v, n, e.key === "ArrowDown" ? 1 : -1);
|
|
5193
5288
|
x(v[t]);
|
|
5194
5289
|
return;
|
|
5195
5290
|
}
|
|
@@ -5209,26 +5304,26 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5209
5304
|
let a = r.id === i, o = {
|
|
5210
5305
|
children: /* @__PURE__ */ n(e, { children: [
|
|
5211
5306
|
r.icon && /* @__PURE__ */ t("span", {
|
|
5212
|
-
className:
|
|
5307
|
+
className: ti.icon,
|
|
5213
5308
|
"aria-hidden": "true",
|
|
5214
5309
|
children: r.icon
|
|
5215
5310
|
}),
|
|
5216
5311
|
/* @__PURE__ */ n("span", {
|
|
5217
|
-
className:
|
|
5312
|
+
className: ti.copy,
|
|
5218
5313
|
children: [/* @__PURE__ */ t("span", {
|
|
5219
|
-
className:
|
|
5314
|
+
className: ti.label,
|
|
5220
5315
|
children: r.label
|
|
5221
5316
|
}), r.description && /* @__PURE__ */ t("span", {
|
|
5222
|
-
className:
|
|
5317
|
+
className: ti.description,
|
|
5223
5318
|
children: r.description
|
|
5224
5319
|
})]
|
|
5225
5320
|
}),
|
|
5226
5321
|
r.badge && /* @__PURE__ */ t("span", {
|
|
5227
|
-
className:
|
|
5322
|
+
className: ti.badge,
|
|
5228
5323
|
children: r.badge
|
|
5229
5324
|
})
|
|
5230
5325
|
] }),
|
|
5231
|
-
className: `${
|
|
5326
|
+
className: `${ti.link} ${a ? ti.current : ""}`,
|
|
5232
5327
|
tabIndex: r.id === b ? 0 : -1,
|
|
5233
5328
|
"aria-current": a ? "page" : void 0,
|
|
5234
5329
|
"aria-disabled": r.disabled ? !0 : void 0,
|
|
@@ -5244,7 +5339,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5244
5339
|
onKeyDown: (e) => S(e, r)
|
|
5245
5340
|
};
|
|
5246
5341
|
return /* @__PURE__ */ t("li", {
|
|
5247
|
-
className:
|
|
5342
|
+
className: ti.item,
|
|
5248
5343
|
children: u ? u(r, o) : r.href ? /* @__PURE__ */ t("a", {
|
|
5249
5344
|
href: r.href,
|
|
5250
5345
|
...o,
|
|
@@ -5259,45 +5354,45 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5259
5354
|
};
|
|
5260
5355
|
return /* @__PURE__ */ n("nav", {
|
|
5261
5356
|
ref: g,
|
|
5262
|
-
className: `${
|
|
5357
|
+
className: `${ti.root} ${p}`,
|
|
5263
5358
|
"aria-label": a,
|
|
5264
5359
|
children: [
|
|
5265
5360
|
s && /* @__PURE__ */ t("div", {
|
|
5266
|
-
className:
|
|
5361
|
+
className: ti.topSlot,
|
|
5267
5362
|
children: s
|
|
5268
5363
|
}),
|
|
5269
5364
|
o && /* @__PURE__ */ t("div", {
|
|
5270
|
-
className:
|
|
5365
|
+
className: ti.searchSlot,
|
|
5271
5366
|
children: o
|
|
5272
5367
|
}),
|
|
5273
5368
|
/* @__PURE__ */ n("div", {
|
|
5274
|
-
className:
|
|
5369
|
+
className: ti.groups,
|
|
5275
5370
|
children: [r.map((e) => {
|
|
5276
5371
|
let r = `${m}-${e.id}`;
|
|
5277
5372
|
return /* @__PURE__ */ n("section", {
|
|
5278
|
-
className:
|
|
5373
|
+
className: ti.group,
|
|
5279
5374
|
"aria-labelledby": e.label ? r : void 0,
|
|
5280
5375
|
children: [e.label && /* @__PURE__ */ t("div", {
|
|
5281
5376
|
id: r,
|
|
5282
|
-
className:
|
|
5377
|
+
className: ti.groupLabel,
|
|
5283
5378
|
children: e.label
|
|
5284
5379
|
}), /* @__PURE__ */ t("ul", {
|
|
5285
|
-
className:
|
|
5380
|
+
className: ti.list,
|
|
5286
5381
|
children: e.items.map(C)
|
|
5287
5382
|
})]
|
|
5288
5383
|
}, e.id);
|
|
5289
5384
|
}), v.length === 0 && l && /* @__PURE__ */ t("div", {
|
|
5290
|
-
className:
|
|
5385
|
+
className: ti.empty,
|
|
5291
5386
|
children: l
|
|
5292
5387
|
})]
|
|
5293
5388
|
}),
|
|
5294
5389
|
c && /* @__PURE__ */ t("div", {
|
|
5295
|
-
className:
|
|
5390
|
+
className: ti.bottomSlot,
|
|
5296
5391
|
children: c
|
|
5297
5392
|
})
|
|
5298
5393
|
]
|
|
5299
5394
|
});
|
|
5300
|
-
},
|
|
5395
|
+
}, ii = {
|
|
5301
5396
|
root: "_root_2mdgb_1",
|
|
5302
5397
|
list: "_list_2mdgb_19",
|
|
5303
5398
|
item: "_item_2mdgb_37",
|
|
@@ -5307,7 +5402,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5307
5402
|
icon: "_icon_2mdgb_141",
|
|
5308
5403
|
badge: "_badge_2mdgb_149",
|
|
5309
5404
|
label: "_label_2mdgb_163"
|
|
5310
|
-
},
|
|
5405
|
+
}, ai = ({ items: r, currentItemId: i, ariaLabel: a = "Мобильная навигация", renderLink: o, onItemSelect: s, className: c = "" }) => {
|
|
5311
5406
|
let l = h(null), u = r.filter((e) => !e.disabled), d = u.some((e) => e.id === i) ? i : u[0]?.id, f = (e) => {
|
|
5312
5407
|
l.current?.querySelectorAll("[data-ds-navigation-item]")[e]?.focus();
|
|
5313
5408
|
}, p = (e, t) => {
|
|
@@ -5324,27 +5419,27 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5324
5419
|
};
|
|
5325
5420
|
return /* @__PURE__ */ t("nav", {
|
|
5326
5421
|
ref: l,
|
|
5327
|
-
className: `${
|
|
5422
|
+
className: `${ii.root} ${c}`,
|
|
5328
5423
|
"aria-label": a,
|
|
5329
5424
|
children: /* @__PURE__ */ t("ul", {
|
|
5330
|
-
className:
|
|
5425
|
+
className: ii.list,
|
|
5331
5426
|
children: r.map((r) => {
|
|
5332
5427
|
let a = r.id === i, c = {
|
|
5333
5428
|
children: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("span", {
|
|
5334
|
-
className:
|
|
5429
|
+
className: ii.visual,
|
|
5335
5430
|
children: [r.icon && /* @__PURE__ */ t("span", {
|
|
5336
|
-
className:
|
|
5431
|
+
className: ii.icon,
|
|
5337
5432
|
"aria-hidden": "true",
|
|
5338
5433
|
children: r.icon
|
|
5339
5434
|
}), r.badge && /* @__PURE__ */ t("span", {
|
|
5340
|
-
className:
|
|
5435
|
+
className: ii.badge,
|
|
5341
5436
|
children: r.badge
|
|
5342
5437
|
})]
|
|
5343
5438
|
}), /* @__PURE__ */ t("span", {
|
|
5344
|
-
className:
|
|
5439
|
+
className: ii.label,
|
|
5345
5440
|
children: r.label
|
|
5346
5441
|
})] }),
|
|
5347
|
-
className: `${
|
|
5442
|
+
className: `${ii.link} ${a ? ii.current : ""}`,
|
|
5348
5443
|
tabIndex: r.id === d ? 0 : -1,
|
|
5349
5444
|
"aria-current": a ? "page" : void 0,
|
|
5350
5445
|
"aria-disabled": r.disabled ? !0 : void 0,
|
|
@@ -5360,7 +5455,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5360
5455
|
onKeyDown: (e) => p(e, r)
|
|
5361
5456
|
};
|
|
5362
5457
|
return /* @__PURE__ */ t("li", {
|
|
5363
|
-
className:
|
|
5458
|
+
className: ii.item,
|
|
5364
5459
|
children: o ? o(r, c) : r.href ? /* @__PURE__ */ t("a", {
|
|
5365
5460
|
href: r.href,
|
|
5366
5461
|
...c,
|
|
@@ -5375,7 +5470,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5375
5470
|
})
|
|
5376
5471
|
})
|
|
5377
5472
|
});
|
|
5378
|
-
},
|
|
5473
|
+
}, oi = {
|
|
5379
5474
|
logo: "_logo_1kw5e_17",
|
|
5380
5475
|
edgeStart: "_edgeStart_1kw5e_33",
|
|
5381
5476
|
edgeMiddle: "_edgeMiddle_1kw5e_41",
|
|
@@ -5390,19 +5485,19 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5390
5485
|
wordmark: "_wordmark_1kw5e_127",
|
|
5391
5486
|
edge: "_edge_1kw5e_33",
|
|
5392
5487
|
pane: "_pane_1kw5e_57"
|
|
5393
|
-
},
|
|
5488
|
+
}, si = {
|
|
5394
5489
|
sm: 24,
|
|
5395
5490
|
md: 40,
|
|
5396
5491
|
lg: 56
|
|
5397
|
-
},
|
|
5492
|
+
}, ci = {
|
|
5398
5493
|
icon: "0 0 128 224",
|
|
5399
5494
|
wordmark: "0 0 600 160",
|
|
5400
5495
|
lockup: "0 0 675 200"
|
|
5401
|
-
},
|
|
5496
|
+
}, li = {
|
|
5402
5497
|
icon: 128 / 224,
|
|
5403
5498
|
wordmark: 600 / 160,
|
|
5404
5499
|
lockup: 675 / 200
|
|
5405
|
-
},
|
|
5500
|
+
}, ui = ({ id: e, transform: r }) => /* @__PURE__ */ n("g", {
|
|
5406
5501
|
transform: r,
|
|
5407
5502
|
children: [
|
|
5408
5503
|
/* @__PURE__ */ n("defs", { children: [
|
|
@@ -5414,14 +5509,14 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5414
5509
|
y2: "216",
|
|
5415
5510
|
gradientUnits: "userSpaceOnUse",
|
|
5416
5511
|
children: [
|
|
5417
|
-
/* @__PURE__ */ t("stop", { className:
|
|
5512
|
+
/* @__PURE__ */ t("stop", { className: oi.edgeStart }),
|
|
5418
5513
|
/* @__PURE__ */ t("stop", {
|
|
5419
5514
|
offset: "0.52",
|
|
5420
|
-
className:
|
|
5515
|
+
className: oi.edgeMiddle
|
|
5421
5516
|
}),
|
|
5422
5517
|
/* @__PURE__ */ t("stop", {
|
|
5423
5518
|
offset: "1",
|
|
5424
|
-
className:
|
|
5519
|
+
className: oi.edgeEnd
|
|
5425
5520
|
})
|
|
5426
5521
|
]
|
|
5427
5522
|
}),
|
|
@@ -5433,14 +5528,14 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5433
5528
|
y2: "199",
|
|
5434
5529
|
gradientUnits: "userSpaceOnUse",
|
|
5435
5530
|
children: [
|
|
5436
|
-
/* @__PURE__ */ t("stop", { className:
|
|
5531
|
+
/* @__PURE__ */ t("stop", { className: oi.paneStart }),
|
|
5437
5532
|
/* @__PURE__ */ t("stop", {
|
|
5438
5533
|
offset: "0.52",
|
|
5439
|
-
className:
|
|
5534
|
+
className: oi.paneMiddle
|
|
5440
5535
|
}),
|
|
5441
5536
|
/* @__PURE__ */ t("stop", {
|
|
5442
5537
|
offset: "1",
|
|
5443
|
-
className:
|
|
5538
|
+
className: oi.paneEnd
|
|
5444
5539
|
})
|
|
5445
5540
|
]
|
|
5446
5541
|
}),
|
|
@@ -5452,25 +5547,25 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5452
5547
|
y2: "176",
|
|
5453
5548
|
gradientUnits: "userSpaceOnUse",
|
|
5454
5549
|
children: [
|
|
5455
|
-
/* @__PURE__ */ t("stop", { className:
|
|
5550
|
+
/* @__PURE__ */ t("stop", { className: oi.sheenStart }),
|
|
5456
5551
|
/* @__PURE__ */ t("stop", {
|
|
5457
5552
|
offset: "0.42",
|
|
5458
|
-
className:
|
|
5553
|
+
className: oi.sheenMiddle
|
|
5459
5554
|
}),
|
|
5460
5555
|
/* @__PURE__ */ t("stop", {
|
|
5461
5556
|
offset: "1",
|
|
5462
|
-
className:
|
|
5557
|
+
className: oi.sheenEnd
|
|
5463
5558
|
})
|
|
5464
5559
|
]
|
|
5465
5560
|
})
|
|
5466
5561
|
] }),
|
|
5467
5562
|
/* @__PURE__ */ t("path", {
|
|
5468
|
-
className:
|
|
5563
|
+
className: oi.edge,
|
|
5469
5564
|
d: "M12 13.5 28 8v208l-16-5.5z",
|
|
5470
5565
|
fill: `url(#${e}-edge)`
|
|
5471
5566
|
}),
|
|
5472
5567
|
/* @__PURE__ */ t("path", {
|
|
5473
|
-
className:
|
|
5568
|
+
className: oi.pane,
|
|
5474
5569
|
d: "M28 8 116 51.5v121L28 216z",
|
|
5475
5570
|
fill: `url(#${e}-pane)`
|
|
5476
5571
|
}),
|
|
@@ -5479,22 +5574,22 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5479
5574
|
fill: `url(#${e}-sheen)`
|
|
5480
5575
|
}),
|
|
5481
5576
|
/* @__PURE__ */ t("path", {
|
|
5482
|
-
className:
|
|
5577
|
+
className: oi.rim,
|
|
5483
5578
|
d: "M115 53v118.5l-4.5 2.5V55.2z"
|
|
5484
5579
|
})
|
|
5485
5580
|
]
|
|
5486
|
-
}),
|
|
5487
|
-
className:
|
|
5581
|
+
}), di = ({ transform: e }) => /* @__PURE__ */ t("text", {
|
|
5582
|
+
className: oi.wordmark,
|
|
5488
5583
|
x: "8",
|
|
5489
5584
|
y: "128",
|
|
5490
5585
|
transform: e,
|
|
5491
5586
|
children: "Стекло"
|
|
5492
|
-
}),
|
|
5493
|
-
let p = `ds-logo-${f().replaceAll(":", "")}`, m = l ?? (typeof i == "number" ? Math.max(1, i) :
|
|
5587
|
+
}), fi = ({ variant: r = "lockup", size: i = "md", decorative: a = !1, className: o = "", title: s = "Стекло", width: c, height: l, "aria-label": u, ...d }) => {
|
|
5588
|
+
let p = `ds-logo-${f().replaceAll(":", "")}`, m = l ?? (typeof i == "number" ? Math.max(1, i) : si[i]), h = typeof m == "number" ? m : si.md, g = c ?? Number((h * li[r]).toFixed(2)), _ = `${p}-title`;
|
|
5494
5589
|
return /* @__PURE__ */ n("svg", {
|
|
5495
5590
|
...d,
|
|
5496
|
-
className: `${
|
|
5497
|
-
viewBox:
|
|
5591
|
+
className: `${oi.logo} ${o}`,
|
|
5592
|
+
viewBox: ci[r],
|
|
5498
5593
|
width: g,
|
|
5499
5594
|
height: m,
|
|
5500
5595
|
role: a ? void 0 : "img",
|
|
@@ -5507,56 +5602,56 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5507
5602
|
id: _,
|
|
5508
5603
|
children: s
|
|
5509
5604
|
}),
|
|
5510
|
-
r === "icon" && /* @__PURE__ */ t(
|
|
5511
|
-
r === "wordmark" && /* @__PURE__ */ t(
|
|
5512
|
-
r === "lockup" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(
|
|
5605
|
+
r === "icon" && /* @__PURE__ */ t(ui, { id: p }),
|
|
5606
|
+
r === "wordmark" && /* @__PURE__ */ t(di, {}),
|
|
5607
|
+
r === "lockup" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(ui, {
|
|
5513
5608
|
id: p,
|
|
5514
5609
|
transform: "translate(16 0) scale(.86)"
|
|
5515
|
-
}), /* @__PURE__ */ t(
|
|
5610
|
+
}), /* @__PURE__ */ t(di, { transform: "translate(156 36) scale(.84)" })] })
|
|
5516
5611
|
]
|
|
5517
5612
|
});
|
|
5518
|
-
},
|
|
5613
|
+
}, pi = {
|
|
5519
5614
|
brand: "_brand_uueok_1",
|
|
5520
5615
|
symbol: "_symbol_uueok_25",
|
|
5521
5616
|
identity: "_identity_uueok_33",
|
|
5522
5617
|
collapsed: "_collapsed_uueok_55",
|
|
5523
5618
|
wordmark: "_wordmark_uueok_63",
|
|
5524
5619
|
serviceName: "_serviceName_uueok_71"
|
|
5525
|
-
},
|
|
5620
|
+
}, mi = ({ serviceName: e, collapsed: r = !1, logoSize: i, className: a = "", "aria-label": o, ...s }) => {
|
|
5526
5621
|
let c = o ?? `Стекло. ${e}`;
|
|
5527
5622
|
return /* @__PURE__ */ n("div", {
|
|
5528
5623
|
...s,
|
|
5529
|
-
className: `${
|
|
5624
|
+
className: `${pi.brand} ${r ? pi.collapsed : ""} ${a}`,
|
|
5530
5625
|
"data-collapsed": r || void 0,
|
|
5531
5626
|
"aria-label": c,
|
|
5532
5627
|
title: r ? c : s.title,
|
|
5533
|
-
children: [/* @__PURE__ */ t(
|
|
5534
|
-
className:
|
|
5628
|
+
children: [/* @__PURE__ */ t(fi, {
|
|
5629
|
+
className: pi.symbol,
|
|
5535
5630
|
variant: "icon",
|
|
5536
5631
|
size: i ?? 44,
|
|
5537
5632
|
decorative: !0
|
|
5538
5633
|
}), /* @__PURE__ */ n("span", {
|
|
5539
|
-
className:
|
|
5634
|
+
className: pi.identity,
|
|
5540
5635
|
"aria-hidden": "true",
|
|
5541
|
-
children: [/* @__PURE__ */ t(
|
|
5542
|
-
className:
|
|
5636
|
+
children: [/* @__PURE__ */ t(fi, {
|
|
5637
|
+
className: pi.wordmark,
|
|
5543
5638
|
variant: "wordmark",
|
|
5544
5639
|
size: 32,
|
|
5545
5640
|
decorative: !0
|
|
5546
5641
|
}), /* @__PURE__ */ t("span", {
|
|
5547
|
-
className:
|
|
5642
|
+
className: pi.serviceName,
|
|
5548
5643
|
title: e,
|
|
5549
5644
|
children: e
|
|
5550
5645
|
})]
|
|
5551
5646
|
})]
|
|
5552
5647
|
});
|
|
5553
|
-
},
|
|
5648
|
+
}, hi = {
|
|
5554
5649
|
sample: "_sample_3woga_1",
|
|
5555
5650
|
menu: "_menu_3woga_59",
|
|
5556
5651
|
options: "_options_3woga_81",
|
|
5557
5652
|
legend: "_legend_3woga_93",
|
|
5558
5653
|
option: "_option_3woga_81"
|
|
5559
|
-
},
|
|
5654
|
+
}, gi = ({ value: r, onChange: i, compact: a = !1, disabled: o = !1 }) => {
|
|
5560
5655
|
let [s, c] = g(!1), l = h(null), [u, p] = g(null), m = f();
|
|
5561
5656
|
return d(() => {
|
|
5562
5657
|
if (!s) return;
|
|
@@ -5584,7 +5679,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5584
5679
|
children: [
|
|
5585
5680
|
/* @__PURE__ */ t("span", {
|
|
5586
5681
|
"data-ds-theme": r,
|
|
5587
|
-
className:
|
|
5682
|
+
className: hi.sample,
|
|
5588
5683
|
"aria-hidden": "true"
|
|
5589
5684
|
}),
|
|
5590
5685
|
!a && w[r],
|
|
@@ -5595,22 +5690,22 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5595
5690
|
"aria-hidden": "true"
|
|
5596
5691
|
})
|
|
5597
5692
|
]
|
|
5598
|
-
}), s && !o && /* @__PURE__ */ t(
|
|
5693
|
+
}), s && !o && /* @__PURE__ */ t(qn, {
|
|
5599
5694
|
anchorRef: l,
|
|
5600
5695
|
children: /* @__PURE__ */ t("div", {
|
|
5601
5696
|
ref: p,
|
|
5602
5697
|
id: m,
|
|
5603
|
-
className:
|
|
5698
|
+
className: hi.menu,
|
|
5604
5699
|
onBlur: (e) => {
|
|
5605
5700
|
e.relatedTarget instanceof Node && !e.currentTarget.contains(e.relatedTarget) && !l.current?.contains(e.relatedTarget) && c(!1);
|
|
5606
5701
|
},
|
|
5607
5702
|
children: /* @__PURE__ */ n("fieldset", {
|
|
5608
|
-
className:
|
|
5703
|
+
className: hi.options,
|
|
5609
5704
|
children: [/* @__PURE__ */ t("legend", {
|
|
5610
|
-
className:
|
|
5705
|
+
className: hi.legend,
|
|
5611
5706
|
children: "Цветовая тема"
|
|
5612
5707
|
}), ["teal", "signal"].map((e) => /* @__PURE__ */ n("label", {
|
|
5613
|
-
className:
|
|
5708
|
+
className: hi.option,
|
|
5614
5709
|
children: [
|
|
5615
5710
|
/* @__PURE__ */ t("input", {
|
|
5616
5711
|
type: "radio",
|
|
@@ -5621,7 +5716,7 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5621
5716
|
}),
|
|
5622
5717
|
/* @__PURE__ */ t("span", {
|
|
5623
5718
|
"data-ds-theme": e,
|
|
5624
|
-
className:
|
|
5719
|
+
className: hi.sample,
|
|
5625
5720
|
"aria-hidden": "true"
|
|
5626
5721
|
}),
|
|
5627
5722
|
/* @__PURE__ */ t("span", { children: w[e] }),
|
|
@@ -5638,4 +5733,4 @@ var or = ({ children: e, title: r, description: i, modalId: a, closeLabel: o = "
|
|
|
5638
5733
|
})] });
|
|
5639
5734
|
};
|
|
5640
5735
|
//#endregion
|
|
5641
|
-
export {
|
|
5736
|
+
export { vr as ConfirmModal, O as DEFAULT_DS_FAVICON_THEME, Vt as DSAccordion, F as DSBadge, ai as DSBottomNavigation, Fr as DSBottomSheet, B as DSButton, Xe as DSCheckbox, R as DSCounterBadge, wn as DSDataTable, yt as DSDateRange, gt as DSDateTimePicker, Pr as DSDrawer, Dt as DSDropDown, It as DSDropDownMultiple, ne as DSFieldLabel, H as DSFieldMessage, Gn as DSFileInput, In as DSFilters, qn as DSFloatingMenu, Rn as DSFormGrid, zn as DSFormGridItem, Ir as DSFullscreenDialog, J as DSIcon, Je as DSIconNames, Pn as DSInfoBlock, jt as DSInput, ee as DSLoader, fi as DSLogo, fr as DSModal, dr as DSModalFrame, ri as DSNavigationSurface, Nr as DSOverlay, Rr as DSPageLoader, Ht as DSPortal, Rt as DSRadioButton, Mn as DSSearchDropDown, mi as DSServiceBrand, xt as DSSkeleton, kt as DSSort, Jr as DSTabs, Zn as DSTextarea, gi as DSThemeSwitcher, Vr as DSToast, Gr as DSToastProvider, tn as DSTooltip, Bn as DSValidationSummary, ei as DSVideoPlayerFrame, k as DS_FAVICON_THEMES, w as DS_THEME_NAMES, C as DS_THEME_STORAGE_KEY, yr as ErrorModal, pr as ModalSystemProvider, N as applyDSBrandTheme, M as applyDSFavicon, D as applyDSTheme, br as builtInModalRegistry, mr as defineModalRegistry, L as formatDSCounterValue, nt as formatDateInputValue, ct as formatDateTimeLocalValue, Bt as getDSAccordionScrollTarget, fn as getDSDataTableColumnStyle, mn as getDSDataTablePaginationItems, pn as getDSDataTableStickyColumnStyle, j as getDSFaviconHref, Sr as getErrorMessage, dn as getNextDSDataTablePageSelection, Tt as getNextEnabledOptionIndex, E as getStoredDSTheme, T as isDSTheme, at as isValidDateInputPrefix, vt as isValidDateRange, rt as maskDateInputValue, ot as parseDateInputValue, lt as parseDateTimeLocalValue, er as resetModalStore, Wr as resetToastStore, xr as useConfirmModal, wr as useConfirmModalStore, Mr as useDSOverlay, Cr as useErrorModal, Tr as useErrorModalStore, Er as useModals, $n as useModalsStore, Kr as useToast, Ur as useToastStore, hn as validateDSDataTableData };
|