test-stpr-ui-kit 0.4.70 → 0.4.71

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.
@@ -1,4 +1,4 @@
1
- import { jsxs as z, jsx as c, Fragment as jt } from "react/jsx-runtime";
1
+ import { jsxs as W, jsx as c, Fragment as jt } from "react/jsx-runtime";
2
2
  import * as R from "react";
3
3
  import $e, { useState as Q, useEffect as oe, useRef as me, useCallback as xe, createContext as vo, useContext as Yo, useMemo as Pe, useReducer as Go, forwardRef as Ko, useImperativeHandle as Xo, Fragment as Zo, useLayoutEffect as Qo } from "react";
4
4
  import Jo from "react-dom";
@@ -108,8 +108,8 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
108
108
  [de.spAccordion__content]: !0,
109
109
  [de.spAccordion__content_open]: w
110
110
  });
111
- return /* @__PURE__ */ z("div", { className: P, children: [
112
- /* @__PURE__ */ z("div", { className: M, children: [
111
+ return /* @__PURE__ */ W("div", { className: P, children: [
112
+ /* @__PURE__ */ W("div", { className: M, children: [
113
113
  /* @__PURE__ */ c("div", { className: A, children: /* @__PURE__ */ c("span", { onClick: N, children: t }) }),
114
114
  /* @__PURE__ */ c(ve, { onClick: N, className: b, name: ae.ChevronDown })
115
115
  ] }),
@@ -135,12 +135,12 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
135
135
  children: /* @__PURE__ */ c("div", { className: mt.spinner__inner })
136
136
  }
137
137
  );
138
- }, Pn = "_spButton_7ic3z_43", Bn = "_spButton_noPadding_7ic3z_62", On = "_spButton_onlyIcon_7ic3z_65", Wn = "_spButton__iconContainer_7ic3z_73", zn = "_spButton_link_7ic3z_76", Mn = "_spButton__text_7ic3z_80", Un = "_spButton_white_7ic3z_92", $n = "_spButton_primary_7ic3z_95", qn = "_spButton_blue_7ic3z_95", Hn = "_spButton_secondary_7ic3z_115", Vn = "_spButton_fullWidth_7ic3z_135", Yn = "_spButton_disabled_7ic3z_138", Gn = "_spButton__spinner_7ic3z_147", we = {
138
+ }, Pn = "_spButton_7ic3z_43", Bn = "_spButton_noPadding_7ic3z_62", On = "_spButton_onlyIcon_7ic3z_65", zn = "_spButton__iconContainer_7ic3z_73", Wn = "_spButton_link_7ic3z_76", Mn = "_spButton__text_7ic3z_80", Un = "_spButton_white_7ic3z_92", $n = "_spButton_primary_7ic3z_95", qn = "_spButton_blue_7ic3z_95", Hn = "_spButton_secondary_7ic3z_115", Vn = "_spButton_fullWidth_7ic3z_135", Yn = "_spButton_disabled_7ic3z_138", Gn = "_spButton__spinner_7ic3z_147", we = {
139
139
  spButton: Pn,
140
140
  spButton_noPadding: Bn,
141
141
  spButton_onlyIcon: On,
142
- spButton__iconContainer: Wn,
143
- spButton_link: zn,
142
+ spButton__iconContainer: zn,
143
+ spButton_link: Wn,
144
144
  spButton__text: Mn,
145
145
  spButton_white: Un,
146
146
  spButton_primary: $n,
@@ -177,7 +177,7 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
177
177
  [we.spButton__iconContainer]: !0,
178
178
  ...P && { [P]: !0 }
179
179
  });
180
- return /* @__PURE__ */ z(jt, { children: [
180
+ return /* @__PURE__ */ W(jt, { children: [
181
181
  (r || i || g) && /* @__PURE__ */ c("div", { className: T, children: g ? /* @__PURE__ */ c(Lt, { classNameRoot: we.spButton__spinner }) : i ? /* @__PURE__ */ c(ve, { name: i, rotate: s }) : r || null }),
182
182
  !w && _ && /* @__PURE__ */ c("div", { className: d, children: _ })
183
183
  ] });
@@ -204,7 +204,7 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
204
204
  children: A()
205
205
  }
206
206
  );
207
- }, Kn = "_spApplyButtons_1l9jg_43", Xn = "_spApplyButtons__cancel_1l9jg_73", Zn = "_spApplyButtons__submit_1l9jg_76", ze = {
207
+ }, Kn = "_spApplyButtons_1l9jg_43", Xn = "_spApplyButtons__cancel_1l9jg_73", Zn = "_spApplyButtons__submit_1l9jg_76", We = {
208
208
  spApplyButtons: Kn,
209
209
  "spApplyButtons_align-right": "_spApplyButtons_align-right_1l9jg_48",
210
210
  "spApplyButtons_align-left": "_spApplyButtons_align-left_1l9jg_51",
@@ -228,15 +228,15 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
228
228
  submit: _,
229
229
  loading: g
230
230
  } = e, h = f({
231
- [ze.spApplyButtons]: !0,
232
- [ze[`spApplyButtons_mobile-${t}`]]: t,
233
- [ze[`spApplyButtons_align-${o}`]]: o
231
+ [We.spApplyButtons]: !0,
232
+ [We[`spApplyButtons_mobile-${t}`]]: t,
233
+ [We[`spApplyButtons_align-${o}`]]: o
234
234
  }), w = f({
235
- [ze.spApplyButtons__submit]: !0
235
+ [We.spApplyButtons__submit]: !0
236
236
  }), C = f({
237
- [ze.spApplyButtons__cancel]: !0
237
+ [We.spApplyButtons__cancel]: !0
238
238
  });
239
- return /* @__PURE__ */ z("div", { className: h, children: [
239
+ return /* @__PURE__ */ W("div", { className: h, children: [
240
240
  n && /* @__PURE__ */ c(
241
241
  Qe,
242
242
  {
@@ -264,11 +264,265 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
264
264
  }
265
265
  )
266
266
  ] });
267
- }, Jn = "_spBaseTooltip_5usel_43", ea = "_spBaseTooltip_noPadding_5usel_70", ta = "_spBaseTooltip__content_5usel_96", ut = {
268
- spBaseTooltip: Jn,
269
- spBaseTooltip_noPadding: ea,
270
- spBaseTooltip__content: ta
271
- }, xo = $e.forwardRef((e, t) => {
267
+ }, Rp = (e = {}) => {
268
+ const { initialValue: t = null } = e, [o, n] = Q(t);
269
+ return {
270
+ isOpen: !!o,
271
+ modalData: o,
272
+ onOpenModal: (r) => {
273
+ n(r);
274
+ },
275
+ onCloseModal: () => {
276
+ n(null);
277
+ }
278
+ };
279
+ }, xo = ({ children: e, node: t, classNameRoot: o }) => {
280
+ const [n, a] = Q(null);
281
+ return oe(() => {
282
+ if (t) {
283
+ a(t);
284
+ return;
285
+ }
286
+ const i = document.createElement("div");
287
+ return o && (i.className = o), document.body.appendChild(i), a(i), () => {
288
+ t || document.body.removeChild(i);
289
+ };
290
+ }, [t, o]), n ? Jo.createPortal(e, n) : null;
291
+ }, Jn = "_layer_14g8d_43", ea = "_layer_hidden_14g8d_65", Wt = {
292
+ layer: Jn,
293
+ layer_hidden: ea
294
+ }, ho = (e) => {
295
+ const {
296
+ children: t,
297
+ zIndex: o = 999,
298
+ isHiddenModal: n = !1,
299
+ classNameRoot: a
300
+ } = e, i = document.body, r = f({
301
+ [Wt.layer]: !0,
302
+ [Wt.layer_hidden]: n,
303
+ ...a && { [a]: !0 }
304
+ });
305
+ return oe(() => {
306
+ const s = window.scrollY, p = document.body;
307
+ return p.style.position = "fixed", p.style.top = `-${s}px`, p.style.left = "0", p.style.right = "0", p.style.overflow = "hidden", () => {
308
+ p.style.position = "", p.style.top = "", p.style.left = "", p.style.right = "", p.style.overflow = "", window.scrollTo(0, s);
309
+ };
310
+ }, []), /* @__PURE__ */ c(xo, { node: i, children: /* @__PURE__ */ c("div", { style: { zIndex: o }, className: r, children: t }) });
311
+ }, ta = "_spText_1gech_43", oa = "_spText_ellipsis_1gech_56", na = "_spText_cursorPointer_1gech_113", Ye = {
312
+ spText: ta,
313
+ spText_ellipsis: oa,
314
+ "spText_type-h1": "_spText_type-h1_1gech_62",
315
+ "spText_type-h3": "_spText_type-h3_1gech_72",
316
+ "spText_type-p1": "_spText_type-p1_1gech_83",
317
+ "spText_type-p2": "_spText_type-p2_1gech_88",
318
+ "spText_type-description": "_spText_type-description_1gech_92",
319
+ "spText_type-link": "_spText_type-link_1gech_100",
320
+ spText_cursorPointer: na
321
+ }, Te = $e.forwardRef((e, t) => {
322
+ const {
323
+ type: o,
324
+ children: n,
325
+ color: a,
326
+ title: i,
327
+ style: r,
328
+ onClick: s,
329
+ isEllipsis: p = !1,
330
+ isCursorPointer: l = !1,
331
+ isCursorPointerByOnClick: u = !0,
332
+ classNameRoot: _
333
+ } = e, g = () => s && u ? !0 : l, h = f({
334
+ [Ye.spText]: !0,
335
+ [Ye.spText_ellipsis]: p,
336
+ [Ye.spText_cursorPointer]: g(),
337
+ [Ye[`spText_type-${o}`]]: o,
338
+ ..._ && { [_]: !0 }
339
+ });
340
+ return /* @__PURE__ */ c(
341
+ "span",
342
+ {
343
+ style: { ...r, color: a },
344
+ title: i,
345
+ onClick: s,
346
+ className: h,
347
+ ref: t,
348
+ children: n
349
+ }
350
+ );
351
+ });
352
+ Te.displayName = "Text";
353
+ const aa = "_modalWrapper_1pg9r_43", ia = "_modalWrapper__modal_1pg9r_63", ra = "_modalWrapper__content_1pg9r_106", sa = "_modalWrapper__header_1pg9r_109", pa = "_modalWrapper__subHeader_1pg9r_117", la = "_modalWrapper__subHeader_onlySubHeader_1pg9r_125", ca = "_modalWrapper__footer_1pg9r_128", da = "_modalWrapper__closeButton_1pg9r_131", ge = {
354
+ modalWrapper: aa,
355
+ "modalWrapper--modalVerticalAlign-top": "_modalWrapper--modalVerticalAlign-top_1pg9r_48",
356
+ "modalWrapper--modalVerticalAlign-center": "_modalWrapper--modalVerticalAlign-center_1pg9r_51",
357
+ "modalWrapper--textAlign-left": "_modalWrapper--textAlign-left_1pg9r_54",
358
+ "modalWrapper--textAlign-center": "_modalWrapper--textAlign-center_1pg9r_57",
359
+ "modalWrapper--textAlign-right": "_modalWrapper--textAlign-right_1pg9r_60",
360
+ modalWrapper__modal: ia,
361
+ "modalWrapper__modal--size-lg": "_modalWrapper__modal--size-lg_1pg9r_95",
362
+ "modalWrapper__modal--size-md": "_modalWrapper__modal--size-md_1pg9r_101",
363
+ modalWrapper__content: ra,
364
+ modalWrapper__header: sa,
365
+ modalWrapper__subHeader: pa,
366
+ modalWrapper__subHeader_onlySubHeader: la,
367
+ modalWrapper__footer: ca,
368
+ modalWrapper__closeButton: da,
369
+ "modalWrapper__closeButton--size-lg": "_modalWrapper__closeButton--size-lg_1pg9r_140",
370
+ "modalWrapper__closeButton--size-md": "_modalWrapper__closeButton--size-md_1pg9r_144",
371
+ "modalWrapper__closeButtonIconContainer--size-lg": "_modalWrapper__closeButtonIconContainer--size-lg_1pg9r_149",
372
+ "modalWrapper__closeButtonIconContainer--size-md": "_modalWrapper__closeButtonIconContainer--size-md_1pg9r_153"
373
+ }, ma = (e) => {
374
+ const {
375
+ zIndex: t = 999,
376
+ isHiddenModal: o = !1,
377
+ isVisibleCloseButton: n = !0,
378
+ children: a,
379
+ classNameLayerRoot: i,
380
+ classNameRoot: r,
381
+ style: s,
382
+ modalVerticalAlign: p = "top",
383
+ textAlign: l = "left",
384
+ onClose: u,
385
+ header: _,
386
+ subHeader: g,
387
+ footer: h,
388
+ size: w = "lg"
389
+ } = e, C = f({
390
+ [ge.modalWrapper]: !0,
391
+ [ge[`modalWrapper--modalVerticalAlign-${p}`]]: p,
392
+ [ge[`modalWrapper--textAlign-${l}`]]: l
393
+ }), N = f({
394
+ [ge.modalWrapper__modal]: !0,
395
+ [ge[`modalWrapper__modal--size-${w}`]]: w,
396
+ ...r && { [r]: !0 }
397
+ }), P = f({
398
+ [ge.modalWrapper__closeButton]: !0,
399
+ [ge[`modalWrapper__closeButton--size-${w}`]]: w
400
+ }), M = f({
401
+ [ge.modalWrapper__closeButtonIconContainer]: !0,
402
+ [ge[`modalWrapper__closeButtonIconContainer--size-${w}`]]: w
403
+ }), A = f({
404
+ [ge.modalWrapper__content]: !0
405
+ }), b = f({
406
+ [ge.modalWrapper__header]: !0
407
+ }), d = f({
408
+ [ge.modalWrapper__subHeader]: !0,
409
+ [ge.modalWrapper__subHeader_onlySubHeader]: !_
410
+ }), T = f({
411
+ [ge.modalWrapper__footer]: !0
412
+ });
413
+ return /* @__PURE__ */ c(ho, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: C, children: /* @__PURE__ */ W("div", { className: N, style: s, children: [
414
+ (_ || g) && /* @__PURE__ */ W("div", { className: b, children: [
415
+ typeof _ == "string" ? /* @__PURE__ */ c(Te, { type: "h3", children: _ }) : _,
416
+ g && /* @__PURE__ */ c("div", { className: d, children: typeof g == "string" ? /* @__PURE__ */ c(Te, { children: g }) : g })
417
+ ] }),
418
+ a && /* @__PURE__ */ c("div", { className: A, children: a }),
419
+ h && /* @__PURE__ */ c("div", { className: T, children: h }),
420
+ n && u && /* @__PURE__ */ c(
421
+ Qe,
422
+ {
423
+ classNameRoot: P,
424
+ classNameIconContainerRoot: M,
425
+ onClick: u,
426
+ iconName: ae.Close,
427
+ variant: "link",
428
+ noPadding: !0,
429
+ isOnlyIcon: !0
430
+ }
431
+ )
432
+ ] }) }) });
433
+ }, ua = (e) => {
434
+ const {
435
+ zIndex: t,
436
+ header: o,
437
+ subHeader: n,
438
+ cancelBtnContent: a,
439
+ cancelBtnDisabled: i,
440
+ cancelBtnIconName: r,
441
+ submitBtnContent: s,
442
+ submitBtnIconName: p,
443
+ submit: l,
444
+ disabled: u,
445
+ formId: _,
446
+ onClose: g,
447
+ applyButtonsMobileDirection: h = "column",
448
+ applyButtonsAlign: w = "right",
449
+ modalVerticalAlign: C = "top",
450
+ textAlign: N = "left",
451
+ loading: P,
452
+ isVisibleCloseButton: M,
453
+ isHiddenModal: A,
454
+ size: b,
455
+ classNameRoot: d,
456
+ classNameLayerRoot: T
457
+ } = e;
458
+ return /* @__PURE__ */ c(
459
+ ma,
460
+ {
461
+ zIndex: t,
462
+ header: o,
463
+ onClose: g,
464
+ modalVerticalAlign: C,
465
+ textAlign: N,
466
+ subHeader: n,
467
+ isVisibleCloseButton: M,
468
+ isHiddenModal: A,
469
+ size: b,
470
+ classNameRoot: d,
471
+ classNameLayerRoot: T,
472
+ footer: a || r || s || p ? /* @__PURE__ */ c(
473
+ Qn,
474
+ {
475
+ applyButtonsMobileDirection: h,
476
+ applyButtonsAlign: w,
477
+ cancelBtnContent: a,
478
+ cancelBtnIconName: r,
479
+ cancelBtnDisabled: i,
480
+ submitBtnContent: s,
481
+ submitBtnIconName: p,
482
+ formId: _,
483
+ disabled: u,
484
+ onClose: g,
485
+ submit: l,
486
+ loading: P
487
+ }
488
+ ) : null
489
+ }
490
+ );
491
+ }, Fp = (e) => {
492
+ const {
493
+ children: t,
494
+ isNeedAuthorized: o,
495
+ onClickAuthorization: n,
496
+ unauthorizedMessage: a = "Необходимо авторизоваться",
497
+ authButtonText: i = "Авторизоваться",
498
+ confirmSize: r = "md",
499
+ zIndex: s = 999
500
+ } = e, [p, l] = Q(o);
501
+ return oe(() => {
502
+ l(o);
503
+ }, [o]), /* @__PURE__ */ W(jt, { children: [
504
+ t,
505
+ p && /* @__PURE__ */ c(
506
+ ua,
507
+ {
508
+ zIndex: s,
509
+ isVisibleCloseButton: !1,
510
+ textAlign: "center",
511
+ applyButtonsAlign: "center",
512
+ header: a,
513
+ submitBtnContent: i,
514
+ size: r,
515
+ submit: () => {
516
+ l(!1), n && n();
517
+ }
518
+ }
519
+ )
520
+ ] });
521
+ }, _a = "_spBaseTooltip_5usel_43", fa = "_spBaseTooltip_noPadding_5usel_70", va = "_spBaseTooltip__content_5usel_96", ut = {
522
+ spBaseTooltip: _a,
523
+ spBaseTooltip_noPadding: fa,
524
+ spBaseTooltip__content: va
525
+ }, bo = $e.forwardRef((e, t) => {
272
526
  const {
273
527
  text: o,
274
528
  noPadding: n = !1,
@@ -285,8 +539,8 @@ const hn = "_spAccordion_14avc_43", bn = "_spAccordion_noBorder_14avc_60", yn =
285
539
  });
286
540
  return /* @__PURE__ */ c("div", { className: s, ref: t, style: a, children: /* @__PURE__ */ c("div", { className: p, children: o }) });
287
541
  });
288
- xo.displayName = "BaseTooltip";
289
- function ho(e, t, o = !0) {
542
+ bo.displayName = "BaseTooltip";
543
+ function yo(e, t, o = !0) {
290
544
  oe(() => {
291
545
  if (!o) return;
292
546
  const n = (a) => {
@@ -297,21 +551,9 @@ function ho(e, t, o = !0) {
297
551
  };
298
552
  }, [e, t, o]);
299
553
  }
300
- const bo = ({ children: e, node: t, classNameRoot: o }) => {
301
- const [n, a] = Q(null);
302
- return oe(() => {
303
- if (t) {
304
- a(t);
305
- return;
306
- }
307
- const i = document.createElement("div");
308
- return o && (i.className = o), document.body.appendChild(i), a(i), () => {
309
- t || document.body.removeChild(i);
310
- };
311
- }, [t, o]), n ? Jo.createPortal(e, n) : null;
312
- }, oa = "_spTooltip_9ogwj_43", na = "_spTooltip__trigger_9ogwj_46", zt = {
313
- spTooltip: oa,
314
- spTooltip__trigger: na
554
+ const ga = "_spTooltip_9ogwj_43", xa = "_spTooltip__trigger_9ogwj_46", Mt = {
555
+ spTooltip: ga,
556
+ spTooltip__trigger: xa
315
557
  };
316
558
  var le = /* @__PURE__ */ ((e) => (e.Top = "top", e.TopLeft = "top-left", e.TopRight = "top-right", e.Bottom = "bottom", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.Left = "left", e.LeftTop = "left-top", e.LeftBottom = "left-bottom", e.Right = "right", e.RightTop = "right-top", e.RightBottom = "right-bottom", e))(le || {});
317
559
  const ot = (e) => {
@@ -332,7 +574,7 @@ const ot = (e) => {
332
574
  classNameBaseTooltipContentRoot: w,
333
575
  styleTooltip: C
334
576
  } = e, [N, P] = Q(!1), M = me(null), A = me(null), [b, d] = Q(!1);
335
- ho(
577
+ yo(
336
578
  [M, A],
337
579
  () => {
338
580
  s && s(), P(!1);
@@ -348,50 +590,50 @@ const ot = (e) => {
348
590
  }), [Z, re] = Q(!1), se = xe(() => {
349
591
  if (!M.current || !A.current) return;
350
592
  const k = M.current.getBoundingClientRect(), $ = A.current.getBoundingClientRect();
351
- let W = 0, m = 0;
593
+ let z = 0, m = 0;
352
594
  switch (l) {
353
595
  case le.Right:
354
- W = k.top + window.scrollY - ($.height - k.height) / 2, m = k.right + window.scrollX;
596
+ z = k.top + window.scrollY - ($.height - k.height) / 2, m = k.right + window.scrollX;
355
597
  break;
356
598
  case le.RightTop:
357
- W = k.top + window.scrollY, m = k.right + window.scrollX;
599
+ z = k.top + window.scrollY, m = k.right + window.scrollX;
358
600
  break;
359
601
  case le.RightBottom:
360
- W = k.bottom + window.scrollY - $.height, m = k.right + window.scrollX;
602
+ z = k.bottom + window.scrollY - $.height, m = k.right + window.scrollX;
361
603
  break;
362
604
  case le.Left:
363
- W = k.top + window.scrollY - ($.height - k.height) / 2, m = k.left + window.scrollX - $.width;
605
+ z = k.top + window.scrollY - ($.height - k.height) / 2, m = k.left + window.scrollX - $.width;
364
606
  break;
365
607
  case le.LeftTop:
366
- W = k.top + window.scrollY, m = k.left + window.scrollX - $.width;
608
+ z = k.top + window.scrollY, m = k.left + window.scrollX - $.width;
367
609
  break;
368
610
  case le.LeftBottom:
369
- W = k.bottom + window.scrollY - $.height, m = k.left + window.scrollX - $.width;
611
+ z = k.bottom + window.scrollY - $.height, m = k.left + window.scrollX - $.width;
370
612
  break;
371
613
  case le.Bottom:
372
- W = k.bottom + window.scrollY, m = k.left + window.scrollX - ($.width - k.width) / 2;
614
+ z = k.bottom + window.scrollY, m = k.left + window.scrollX - ($.width - k.width) / 2;
373
615
  break;
374
616
  case le.BottomLeft:
375
- W = k.bottom + window.scrollY, m = k.left + window.scrollX;
617
+ z = k.bottom + window.scrollY, m = k.left + window.scrollX;
376
618
  break;
377
619
  case le.BottomRight:
378
- W = k.bottom + window.scrollY, m = k.right + window.scrollX - $.width;
620
+ z = k.bottom + window.scrollY, m = k.right + window.scrollX - $.width;
379
621
  break;
380
622
  case le.Top:
381
- W = k.top + window.scrollY - $.height, m = k.left + window.scrollX - ($.width - k.width) / 2;
623
+ z = k.top + window.scrollY - $.height, m = k.left + window.scrollX - ($.width - k.width) / 2;
382
624
  break;
383
625
  case le.TopLeft:
384
- W = k.top + window.scrollY - $.height, m = k.left + window.scrollX;
626
+ z = k.top + window.scrollY - $.height, m = k.left + window.scrollX;
385
627
  break;
386
628
  case le.TopRight:
387
- W = k.top + window.scrollY - $.height, m = k.right + window.scrollX - $.width;
629
+ z = k.top + window.scrollY - $.height, m = k.right + window.scrollX - $.width;
388
630
  break;
389
631
  default:
390
- W = k.bottom + window.scrollY, m = k.left + window.scrollX;
632
+ z = k.bottom + window.scrollY, m = k.left + window.scrollX;
391
633
  }
392
- W + $.height > window.innerHeight + window.scrollY && l.includes("bottom") ? W = k.top + window.scrollY - $.height : W < window.scrollY && l.includes("top") && (W = k.bottom + window.scrollY), m + $.width > window.innerWidth + window.scrollX && l.includes("left") ? m = k.left + window.scrollX - $.width + k.width : m < window.scrollX && l.includes("right") && (m = k.right + window.scrollX - k.width), Y((v) => ({
634
+ z + $.height > window.innerHeight + window.scrollY && l.includes("bottom") ? z = k.top + window.scrollY - $.height : z < window.scrollY && l.includes("top") && (z = k.bottom + window.scrollY), m + $.width > window.innerWidth + window.scrollX && l.includes("left") ? m = k.left + window.scrollX - $.width + k.width : m < window.scrollX && l.includes("right") && (m = k.right + window.scrollX - k.width), Y((v) => ({
393
635
  ...v,
394
- top: `${W}px`,
636
+ top: `${z}px`,
395
637
  left: `${m}px`,
396
638
  visibility: N || Z ? "visible" : "hidden",
397
639
  opacity: N || Z ? 1 : 0
@@ -407,17 +649,17 @@ const ot = (e) => {
407
649
  };
408
650
  }, [b, se]);
409
651
  const ue = f({
410
- [zt.spTooltip]: !0,
652
+ [Mt.spTooltip]: !0,
411
653
  ...g && { [g]: !0 }
412
654
  }), ce = f({
413
655
  ...h && { [h]: !0 }
414
656
  }), G = f({
415
657
  ...w && { [w]: !0 }
416
658
  }), ee = f({
417
- [zt.spTooltip__trigger]: !0,
659
+ [Mt.spTooltip__trigger]: !0,
418
660
  ...p && { [p]: !0 }
419
661
  }), J = document.body;
420
- return /* @__PURE__ */ z(
662
+ return /* @__PURE__ */ W(
421
663
  "div",
422
664
  {
423
665
  className: ue,
@@ -427,8 +669,8 @@ const ot = (e) => {
427
669
  style: C,
428
670
  children: [
429
671
  /* @__PURE__ */ c("div", { ref: M, className: ee, children: i }),
430
- a && /* @__PURE__ */ c(bo, { node: J, children: /* @__PURE__ */ c(
431
- xo,
672
+ a && /* @__PURE__ */ c(xo, { node: J, children: /* @__PURE__ */ c(
673
+ bo,
432
674
  {
433
675
  style: B,
434
676
  ref: A,
@@ -441,20 +683,20 @@ const ot = (e) => {
441
683
  ]
442
684
  }
443
685
  );
444
- }, nt = (e) => /* @__PURE__ */ c(ot, { ...e, hover: !0, trigger: /* @__PURE__ */ c(ve, { name: ae.Info }) }), aa = "_spCheckbox_1ypiv_43", ia = "_spCheckbox__control_1ypiv_49", ra = "_spCheckbox__label_1ypiv_52", sa = "_spCheckbox__box_1ypiv_63", pa = "_spCheckbox__box_checked_1ypiv_90", la = "_spCheckbox__box_disabled_1ypiv_100", ca = "_spCheckbox__box_error_1ypiv_111", da = "_spCheckbox__tooltip_1ypiv_114", ma = "_spCheckbox__required_1ypiv_119", ua = "_spCheckbox__error_1ypiv_125", Ce = {
445
- spCheckbox: aa,
446
- spCheckbox__control: ia,
447
- spCheckbox__label: ra,
448
- spCheckbox__box: sa,
686
+ }, nt = (e) => /* @__PURE__ */ c(ot, { ...e, hover: !0, trigger: /* @__PURE__ */ c(ve, { name: ae.Info }) }), ha = "_spCheckbox_1ypiv_43", ba = "_spCheckbox__control_1ypiv_49", ya = "_spCheckbox__label_1ypiv_52", wa = "_spCheckbox__box_1ypiv_63", Ca = "_spCheckbox__box_checked_1ypiv_90", ka = "_spCheckbox__box_disabled_1ypiv_100", Ta = "_spCheckbox__box_error_1ypiv_111", Na = "_spCheckbox__tooltip_1ypiv_114", Ea = "_spCheckbox__required_1ypiv_119", Ia = "_spCheckbox__error_1ypiv_125", Ce = {
687
+ spCheckbox: ha,
688
+ spCheckbox__control: ba,
689
+ spCheckbox__label: ya,
690
+ spCheckbox__box: wa,
449
691
  "spCheckbox__box--size-lg": "_spCheckbox__box--size-lg_1ypiv_68",
450
692
  "spCheckbox__box--size-md": "_spCheckbox__box--size-md_1ypiv_73",
451
- spCheckbox__box_checked: pa,
452
- spCheckbox__box_disabled: la,
453
- spCheckbox__box_error: ca,
454
- spCheckbox__tooltip: da,
455
- spCheckbox__required: ma,
456
- spCheckbox__error: ua
457
- }, Rp = (e) => {
693
+ spCheckbox__box_checked: Ca,
694
+ spCheckbox__box_disabled: ka,
695
+ spCheckbox__box_error: Ta,
696
+ spCheckbox__tooltip: Na,
697
+ spCheckbox__required: Ea,
698
+ spCheckbox__error: Ia
699
+ }, Ap = (e) => {
458
700
  const {
459
701
  size: t = "lg",
460
702
  checked: o,
@@ -491,8 +733,8 @@ const ot = (e) => {
491
733
  }), d = f({
492
734
  [Ce.spCheckbox__tooltip]: !0
493
735
  });
494
- return /* @__PURE__ */ z("div", { className: C, onMouseEnter: g, children: [
495
- /* @__PURE__ */ z("label", { className: N, children: [
736
+ return /* @__PURE__ */ W("div", { className: C, onMouseEnter: g, children: [
737
+ /* @__PURE__ */ W("label", { className: N, children: [
496
738
  /* @__PURE__ */ c(
497
739
  "input",
498
740
  {
@@ -510,230 +752,18 @@ const ot = (e) => {
510
752
  ] }),
511
753
  s && /* @__PURE__ */ c("div", { className: b, children: s })
512
754
  ] });
513
- }, Fp = (e = {}) => {
514
- const { initialValue: t = null } = e, [o, n] = Q(t);
515
- return {
516
- isOpen: !!o,
517
- modalData: o,
518
- onOpenModal: (r) => {
519
- n(r);
520
- },
521
- onCloseModal: () => {
522
- n(null);
523
- }
524
- };
525
- }, _a = "_layer_14g8d_43", fa = "_layer_hidden_14g8d_65", Mt = {
526
- layer: _a,
527
- layer_hidden: fa
528
- }, yo = (e) => {
529
- const {
530
- children: t,
531
- zIndex: o = 999,
532
- isHiddenModal: n = !1,
533
- classNameRoot: a
534
- } = e, i = document.body, r = f({
535
- [Mt.layer]: !0,
536
- [Mt.layer_hidden]: n,
537
- ...a && { [a]: !0 }
538
- });
539
- return oe(() => {
540
- const s = window.scrollY, p = document.body;
541
- return p.style.position = "fixed", p.style.top = `-${s}px`, p.style.left = "0", p.style.right = "0", p.style.overflow = "hidden", () => {
542
- p.style.position = "", p.style.top = "", p.style.left = "", p.style.right = "", p.style.overflow = "", window.scrollTo(0, s);
543
- };
544
- }, []), /* @__PURE__ */ c(bo, { node: i, children: /* @__PURE__ */ c("div", { style: { zIndex: o }, className: r, children: t }) });
545
- }, va = "_spText_1gech_43", ga = "_spText_ellipsis_1gech_56", xa = "_spText_cursorPointer_1gech_113", Ye = {
546
- spText: va,
547
- spText_ellipsis: ga,
548
- "spText_type-h1": "_spText_type-h1_1gech_62",
549
- "spText_type-h3": "_spText_type-h3_1gech_72",
550
- "spText_type-p1": "_spText_type-p1_1gech_83",
551
- "spText_type-p2": "_spText_type-p2_1gech_88",
552
- "spText_type-description": "_spText_type-description_1gech_92",
553
- "spText_type-link": "_spText_type-link_1gech_100",
554
- spText_cursorPointer: xa
555
- }, Te = $e.forwardRef((e, t) => {
556
- const {
557
- type: o,
558
- children: n,
559
- color: a,
560
- title: i,
561
- style: r,
562
- onClick: s,
563
- isEllipsis: p = !1,
564
- isCursorPointer: l = !1,
565
- isCursorPointerByOnClick: u = !0,
566
- classNameRoot: _
567
- } = e, g = () => s && u ? !0 : l, h = f({
568
- [Ye.spText]: !0,
569
- [Ye.spText_ellipsis]: p,
570
- [Ye.spText_cursorPointer]: g(),
571
- [Ye[`spText_type-${o}`]]: o,
572
- ..._ && { [_]: !0 }
573
- });
574
- return /* @__PURE__ */ c(
575
- "span",
576
- {
577
- style: { ...r, color: a },
578
- title: i,
579
- onClick: s,
580
- className: h,
581
- ref: t,
582
- children: n
583
- }
584
- );
585
- });
586
- Te.displayName = "Text";
587
- const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya = "_modalWrapper__content_1pg9r_106", wa = "_modalWrapper__header_1pg9r_109", Ca = "_modalWrapper__subHeader_1pg9r_117", ka = "_modalWrapper__subHeader_onlySubHeader_1pg9r_125", Ta = "_modalWrapper__footer_1pg9r_128", Na = "_modalWrapper__closeButton_1pg9r_131", ge = {
588
- modalWrapper: ha,
589
- "modalWrapper--modalVerticalAlign-top": "_modalWrapper--modalVerticalAlign-top_1pg9r_48",
590
- "modalWrapper--modalVerticalAlign-center": "_modalWrapper--modalVerticalAlign-center_1pg9r_51",
591
- "modalWrapper--textAlign-left": "_modalWrapper--textAlign-left_1pg9r_54",
592
- "modalWrapper--textAlign-center": "_modalWrapper--textAlign-center_1pg9r_57",
593
- "modalWrapper--textAlign-right": "_modalWrapper--textAlign-right_1pg9r_60",
594
- modalWrapper__modal: ba,
595
- "modalWrapper__modal--size-lg": "_modalWrapper__modal--size-lg_1pg9r_95",
596
- "modalWrapper__modal--size-md": "_modalWrapper__modal--size-md_1pg9r_101",
597
- modalWrapper__content: ya,
598
- modalWrapper__header: wa,
599
- modalWrapper__subHeader: Ca,
600
- modalWrapper__subHeader_onlySubHeader: ka,
601
- modalWrapper__footer: Ta,
602
- modalWrapper__closeButton: Na,
603
- "modalWrapper__closeButton--size-lg": "_modalWrapper__closeButton--size-lg_1pg9r_140",
604
- "modalWrapper__closeButton--size-md": "_modalWrapper__closeButton--size-md_1pg9r_144",
605
- "modalWrapper__closeButtonIconContainer--size-lg": "_modalWrapper__closeButtonIconContainer--size-lg_1pg9r_149",
606
- "modalWrapper__closeButtonIconContainer--size-md": "_modalWrapper__closeButtonIconContainer--size-md_1pg9r_153"
607
- }, Ea = (e) => {
608
- const {
609
- zIndex: t = 999,
610
- isHiddenModal: o = !1,
611
- isVisibleCloseButton: n = !0,
612
- children: a,
613
- classNameLayerRoot: i,
614
- classNameRoot: r,
615
- style: s,
616
- modalVerticalAlign: p = "top",
617
- textAlign: l = "left",
618
- onClose: u,
619
- header: _,
620
- subHeader: g,
621
- footer: h,
622
- size: w = "lg"
623
- } = e, C = f({
624
- [ge.modalWrapper]: !0,
625
- [ge[`modalWrapper--modalVerticalAlign-${p}`]]: p,
626
- [ge[`modalWrapper--textAlign-${l}`]]: l
627
- }), N = f({
628
- [ge.modalWrapper__modal]: !0,
629
- [ge[`modalWrapper__modal--size-${w}`]]: w,
630
- ...r && { [r]: !0 }
631
- }), P = f({
632
- [ge.modalWrapper__closeButton]: !0,
633
- [ge[`modalWrapper__closeButton--size-${w}`]]: w
634
- }), M = f({
635
- [ge.modalWrapper__closeButtonIconContainer]: !0,
636
- [ge[`modalWrapper__closeButtonIconContainer--size-${w}`]]: w
637
- }), A = f({
638
- [ge.modalWrapper__content]: !0
639
- }), b = f({
640
- [ge.modalWrapper__header]: !0
641
- }), d = f({
642
- [ge.modalWrapper__subHeader]: !0,
643
- [ge.modalWrapper__subHeader_onlySubHeader]: !_
644
- }), T = f({
645
- [ge.modalWrapper__footer]: !0
646
- });
647
- return /* @__PURE__ */ c(yo, { zIndex: t, isHiddenModal: o, classNameRoot: i, children: /* @__PURE__ */ c("div", { className: C, children: /* @__PURE__ */ z("div", { className: N, style: s, children: [
648
- (_ || g) && /* @__PURE__ */ z("div", { className: b, children: [
649
- typeof _ == "string" ? /* @__PURE__ */ c(Te, { type: "h3", children: _ }) : _,
650
- g && /* @__PURE__ */ c("div", { className: d, children: typeof g == "string" ? /* @__PURE__ */ c(Te, { children: g }) : g })
651
- ] }),
652
- a && /* @__PURE__ */ c("div", { className: A, children: a }),
653
- h && /* @__PURE__ */ c("div", { className: T, children: h }),
654
- n && u && /* @__PURE__ */ c(
655
- Qe,
656
- {
657
- classNameRoot: P,
658
- classNameIconContainerRoot: M,
659
- onClick: u,
660
- iconName: ae.Close,
661
- variant: "link",
662
- noPadding: !0,
663
- isOnlyIcon: !0
664
- }
665
- )
666
- ] }) }) });
667
- }, Ia = (e) => {
668
- const {
669
- zIndex: t,
670
- header: o,
671
- subHeader: n,
672
- cancelBtnContent: a,
673
- cancelBtnDisabled: i,
674
- cancelBtnIconName: r,
675
- submitBtnContent: s,
676
- submitBtnIconName: p,
677
- submit: l,
678
- disabled: u,
679
- formId: _,
680
- onClose: g,
681
- applyButtonsMobileDirection: h = "column",
682
- applyButtonsAlign: w = "right",
683
- modalVerticalAlign: C = "top",
684
- textAlign: N = "left",
685
- loading: P,
686
- isVisibleCloseButton: M,
687
- isHiddenModal: A,
688
- size: b,
689
- classNameRoot: d,
690
- classNameLayerRoot: T
691
- } = e;
692
- return /* @__PURE__ */ c(
693
- Ea,
694
- {
695
- zIndex: t,
696
- header: o,
697
- onClose: g,
698
- modalVerticalAlign: C,
699
- textAlign: N,
700
- subHeader: n,
701
- isVisibleCloseButton: M,
702
- isHiddenModal: A,
703
- size: b,
704
- classNameRoot: d,
705
- classNameLayerRoot: T,
706
- footer: a || r || s || p ? /* @__PURE__ */ c(
707
- Qn,
708
- {
709
- applyButtonsMobileDirection: h,
710
- applyButtonsAlign: w,
711
- cancelBtnContent: a,
712
- cancelBtnIconName: r,
713
- cancelBtnDisabled: i,
714
- submitBtnContent: s,
715
- submitBtnIconName: p,
716
- formId: _,
717
- disabled: u,
718
- onClose: g,
719
- submit: l,
720
- loading: P
721
- }
722
- ) : null
723
- }
724
- );
725
755
  }, Sa = "_spContextMenu_1cza9_43", Ra = "_spContextMenu__item_1cza9_55", Fa = "_spContextMenu__item_deleteItem_1cza9_74", _t = {
726
756
  spContextMenu: Sa,
727
757
  spContextMenu__item: Ra,
728
758
  spContextMenu__item_deleteItem: Fa
729
- }, Ap = (e) => {
759
+ }, jp = (e) => {
730
760
  const { onClickItem: t, options: o, classNameRoot: n } = e, a = f({
731
761
  [_t.spContextMenu]: !0,
732
762
  ...n && { [n]: !0 }
733
763
  });
734
764
  return /* @__PURE__ */ c("ul", { className: a, children: o == null ? void 0 : o.map((i) => {
735
765
  const r = i.key === "delete";
736
- return /* @__PURE__ */ z(
766
+ return /* @__PURE__ */ W(
737
767
  "li",
738
768
  {
739
769
  className: f({
@@ -753,20 +783,20 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
753
783
  }) });
754
784
  }, Aa = (e) => {
755
785
  const { getRootProps: t, children: o, disabled: n, name: a, getInputProps: i } = e;
756
- return /* @__PURE__ */ z("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
786
+ return /* @__PURE__ */ W("div", { ...t({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
757
787
  /* @__PURE__ */ c("input", { ...i({}), disabled: n, name: a }),
758
788
  o
759
789
  ] });
760
- }, ja = "_spDropdown_miycs_43", La = "_spDropdown__labelText_miycs_55", Da = "_spDropdown__tooltipContainer_miycs_63", Pa = "_spDropdown__dropdownList_miycs_68", Ba = "_spDropdown__dropdownListHeader_miycs_74", Oa = "_spDropdown__dopdownListItem_miycs_81", Wa = "_spDropdown__dopdownListItem_textCenter_miycs_93", za = "_spDropdown__downloadListItemDescription_miycs_97", Ie = {
790
+ }, ja = "_spDropdown_miycs_43", La = "_spDropdown__labelText_miycs_55", Da = "_spDropdown__tooltipContainer_miycs_63", Pa = "_spDropdown__dropdownList_miycs_68", Ba = "_spDropdown__dropdownListHeader_miycs_74", Oa = "_spDropdown__dopdownListItem_miycs_81", za = "_spDropdown__dopdownListItem_textCenter_miycs_93", Wa = "_spDropdown__downloadListItemDescription_miycs_97", Ie = {
761
791
  spDropdown: ja,
762
792
  spDropdown__labelText: La,
763
793
  spDropdown__tooltipContainer: Da,
764
794
  spDropdown__dropdownList: Pa,
765
795
  spDropdown__dropdownListHeader: Ba,
766
796
  spDropdown__dopdownListItem: Oa,
767
- spDropdown__dopdownListItem_textCenter: Wa,
768
- spDropdown__downloadListItemDescription: za
769
- }, jp = (e) => {
797
+ spDropdown__dopdownListItem_textCenter: za,
798
+ spDropdown__downloadListItemDescription: Wa
799
+ }, Lp = (e) => {
770
800
  const {
771
801
  labelText: t = "Выпадающий список",
772
802
  listName: o,
@@ -793,9 +823,9 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
793
823
  hover: !1,
794
824
  triggerAction: () => h(!0),
795
825
  actionOnClose: () => h(!1),
796
- text: /* @__PURE__ */ z("div", { className: l, children: [
826
+ text: /* @__PURE__ */ W("div", { className: l, children: [
797
827
  o && /* @__PURE__ */ c("div", { className: u, children: o }),
798
- n.map((C, N) => /* @__PURE__ */ z(
828
+ n.map((C, N) => /* @__PURE__ */ W(
799
829
  "div",
800
830
  {
801
831
  className: f({
@@ -815,7 +845,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
815
845
  noPadding: !0,
816
846
  isToggleClick: !0,
817
847
  isStopPropagationClickOnTrigger: !0,
818
- trigger: /* @__PURE__ */ z("div", { className: r, children: [
848
+ trigger: /* @__PURE__ */ W("div", { className: r, children: [
819
849
  /* @__PURE__ */ c("div", { className: s, children: t }),
820
850
  /* @__PURE__ */ c("div", { className: p, children: /* @__PURE__ */ c(ve, { name: ae.SelectChevronDown, rotate: g ? 180 : void 0 }) })
821
851
  ] })
@@ -864,7 +894,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
864
894
  spForm_withSeparator: Ha,
865
895
  "spForm_addMargin--size-lg": "_spForm_addMargin--size-lg_zefbj_67",
866
896
  "spForm_addMargin--size-md": "_spForm_addMargin--size-md_zefbj_75"
867
- }, Lp = (e) => {
897
+ }, Dp = (e) => {
868
898
  const {
869
899
  size: t = "lg",
870
900
  children: o,
@@ -908,7 +938,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
908
938
  }), u = f({
909
939
  [Ke.spLabel__tooltip]: !0
910
940
  });
911
- return /* @__PURE__ */ z("div", { className: s, children: [
941
+ return /* @__PURE__ */ W("div", { className: s, children: [
912
942
  /* @__PURE__ */ c("label", { className: p, children: o }),
913
943
  t && /* @__PURE__ */ c("div", { className: l, children: "*" }),
914
944
  n && /* @__PURE__ */ c("div", { className: u, children: /* @__PURE__ */ c(
@@ -982,7 +1012,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
982
1012
  const { value: k, name: $ } = J.target;
983
1013
  g && k && !new RegExp(g).test(k) || n(J, { value: k, name: $ });
984
1014
  };
985
- return /* @__PURE__ */ z("div", { className: B, children: [
1015
+ return /* @__PURE__ */ W("div", { className: B, children: [
986
1016
  a && /* @__PURE__ */ c(
987
1017
  Dt,
988
1018
  {
@@ -994,7 +1024,7 @@ const ha = "_modalWrapper_1pg9r_43", ba = "_modalWrapper__modal_1pg9r_63", ya =
994
1024
  classNameBaseTooltipRoot: d
995
1025
  }
996
1026
  ),
997
- /* @__PURE__ */ z("div", { className: Y, onMouseEnter: h, children: [
1027
+ /* @__PURE__ */ W("div", { className: Y, onMouseEnter: h, children: [
998
1028
  /* @__PURE__ */ c(
999
1029
  "input",
1000
1030
  {
@@ -1298,7 +1328,7 @@ function Ni() {
1298
1328
  }
1299
1329
  }
1300
1330
  var d = p, T = l, B = s, Y = r, Z = t, re = u, se = n, ue = w, ce = h, G = o, ee = i, J = a, k = _, $ = !1;
1301
- function W(x) {
1331
+ function z(x) {
1302
1332
  return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(x) || b(x) === p;
1303
1333
  }
1304
1334
  function m(x) {
@@ -1337,7 +1367,7 @@ function Ni() {
1337
1367
  function ie(x) {
1338
1368
  return b(x) === _;
1339
1369
  }
1340
- X.AsyncMode = d, X.ConcurrentMode = T, X.ContextConsumer = B, X.ContextProvider = Y, X.Element = Z, X.ForwardRef = re, X.Fragment = se, X.Lazy = ue, X.Memo = ce, X.Portal = G, X.Profiler = ee, X.StrictMode = J, X.Suspense = k, X.isAsyncMode = W, X.isConcurrentMode = m, X.isContextConsumer = v, X.isContextProvider = E, X.isElement = j, X.isForwardRef = I, X.isFragment = D, X.isLazy = F, X.isMemo = O, X.isPortal = q, X.isProfiler = V, X.isStrictMode = U, X.isSuspense = ie, X.isValidElementType = A, X.typeOf = b;
1370
+ X.AsyncMode = d, X.ConcurrentMode = T, X.ContextConsumer = B, X.ContextProvider = Y, X.Element = Z, X.ForwardRef = re, X.Fragment = se, X.Lazy = ue, X.Memo = ce, X.Portal = G, X.Profiler = ee, X.StrictMode = J, X.Suspense = k, X.isAsyncMode = z, X.isConcurrentMode = m, X.isContextConsumer = v, X.isContextProvider = E, X.isElement = j, X.isForwardRef = I, X.isFragment = D, X.isLazy = F, X.isMemo = O, X.isPortal = q, X.isProfiler = V, X.isStrictMode = U, X.isSuspense = ie, X.isValidElementType = A, X.typeOf = b;
1341
1371
  }()), X;
1342
1372
  }
1343
1373
  var Kt;
@@ -1590,7 +1620,7 @@ function Si() {
1590
1620
  function T(m) {
1591
1621
  function v(E, j, I, D, F) {
1592
1622
  if (!(E[j] instanceof m)) {
1593
- var O = m.name || g, q = W(E[j]);
1623
+ var O = m.name || g, q = z(E[j]);
1594
1624
  return new C("Invalid " + D + " `" + F + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("instance of `" + O + "`."));
1595
1625
  }
1596
1626
  return null;
@@ -1770,7 +1800,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
1770
1800
  return v;
1771
1801
  }
1772
1802
  }
1773
- function W(m) {
1803
+ function z(m) {
1774
1804
  return !m.constructor || !m.constructor.name ? g : m.constructor.name;
1775
1805
  }
1776
1806
  return h.checkPropTypes = a, h.resetWarningCache = a.resetWarningCache, h.PropTypes = h, h;
@@ -1856,7 +1886,7 @@ const S = /* @__PURE__ */ wo(ji), fe = S.oneOfType([S.string, S.number]), Eo = {
1856
1886
  monochrome: S.bool,
1857
1887
  resolution: fe,
1858
1888
  type: Object.keys(Eo)
1859
- }, { type: Dp, ...Di } = Li, Pi = {
1889
+ }, { type: Pp, ...Di } = Li, Pi = {
1860
1890
  minAspectRatio: S.string,
1861
1891
  maxAspectRatio: S.string,
1862
1892
  minDeviceAspectRatio: S.string,
@@ -1882,14 +1912,14 @@ const S = /* @__PURE__ */ wo(ji), fe = S.oneOfType([S.string, S.number]), Eo = {
1882
1912
  var Oi = {
1883
1913
  all: Bi
1884
1914
  };
1885
- const Wi = (e) => `not ${e}`, zi = (e, t) => {
1915
+ const zi = (e) => `not ${e}`, Wi = (e, t) => {
1886
1916
  const o = ko(e);
1887
- return typeof t == "number" && (t = `${t}px`), t === !0 ? o : t === !1 ? Wi(o) : `(${o}: ${t})`;
1917
+ return typeof t == "number" && (t = `${t}px`), t === !0 ? o : t === !1 ? zi(o) : `(${o}: ${t})`;
1888
1918
  }, Mi = (e) => e.join(" and "), Ui = (e) => {
1889
1919
  const t = [];
1890
1920
  return Object.keys(Oi.all).forEach((o) => {
1891
1921
  const n = e[o];
1892
- n != null && t.push(zi(o, n));
1922
+ n != null && t.push(Wi(o, n));
1893
1923
  }), Mi(t);
1894
1924
  }, $i = vo(void 0), qi = (e) => e.query || Ui(e), oo = (e) => e ? Object.keys(e).reduce((o, n) => (o[ko(n)] = e[n], o), {}) : void 0, Io = () => {
1895
1925
  const e = me(!1);
@@ -1946,7 +1976,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
1946
1976
  isMobile: r
1947
1977
  }
1948
1978
  };
1949
- }, Pp = (e) => {
1979
+ }, Bp = (e) => {
1950
1980
  const { breakpoints: t, children: o } = e, { device: n } = Ki(t);
1951
1981
  return /* @__PURE__ */ c(
1952
1982
  li.Provider,
@@ -1992,7 +2022,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
1992
2022
  "progressWrapper__childrenWrapper--animated-backgroundProgress": "_progressWrapper__childrenWrapper--animated-backgroundProgress_xn9s0_61",
1993
2023
  progressWrapper__progressBadge: nr,
1994
2024
  progressWrapper__progressBadge_loading: ar
1995
- }, Bp = (e) => {
2025
+ }, Op = (e) => {
1996
2026
  const {
1997
2027
  value: t,
1998
2028
  classNameRoot: o,
@@ -2020,7 +2050,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2020
2050
  }), h = {
2021
2051
  "--progress": `${p / r * 100}%`
2022
2052
  };
2023
- return /* @__PURE__ */ z("div", { className: u, children: [
2053
+ return /* @__PURE__ */ W("div", { className: u, children: [
2024
2054
  /* @__PURE__ */ c(
2025
2055
  "div",
2026
2056
  {
@@ -2029,41 +2059,11 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2029
2059
  children: i
2030
2060
  }
2031
2061
  ),
2032
- l && /* @__PURE__ */ z(Te, { classNameRoot: _, children: [
2062
+ l && /* @__PURE__ */ W(Te, { classNameRoot: _, children: [
2033
2063
  p,
2034
2064
  "%"
2035
2065
  ] })
2036
2066
  ] });
2037
- }, Op = (e) => {
2038
- const {
2039
- children: t,
2040
- isNeedAuthorized: o,
2041
- onAuthRedirect: n,
2042
- unauthorizedMessage: a = "Необходимо авторизоваться",
2043
- authButtonText: i = "Авторизоваться",
2044
- confirmSize: r = "md",
2045
- zIndex: s = 999
2046
- } = e, [p, l] = Q(o);
2047
- return oe(() => {
2048
- l(o);
2049
- }, [o]), /* @__PURE__ */ z(jt, { children: [
2050
- t,
2051
- p && /* @__PURE__ */ c(
2052
- Ia,
2053
- {
2054
- zIndex: s,
2055
- isVisibleCloseButton: !1,
2056
- textAlign: "center",
2057
- applyButtonsAlign: "center",
2058
- header: a,
2059
- submitBtnContent: i,
2060
- size: r,
2061
- submit: () => {
2062
- l(!1), n && n();
2063
- }
2064
- }
2065
- )
2066
- ] });
2067
2067
  }, ir = 180, rr = "_spSelect_1l6hu_43", sr = "_spSelect_error_1l6hu_48", pr = "_spSelect__control_1l6hu_48", lr = "_spSelect__value_empty_1l6hu_52", cr = "_spSelect__icon_1l6hu_55", dr = "_spSelect_absolutePositionError_1l6hu_58", mr = "_spSelect__container_1l6hu_61", ur = "_spSelect__control_filled_1l6hu_81", _r = "_spSelect__control_outlined_1l6hu_85", fr = "_spSelect__control_disabled_1l6hu_110", vr = "_spSelect__value_1l6hu_52", gr = "_spSelect__list_1l6hu_141", xr = "_spSelect__list_scrollable_1l6hu_148", hr = "_spSelect__option_1l6hu_164", br = "_spSelect__error_1l6hu_182", yr = "_spSelect__error_absolutePosition_1l6hu_189", _e = {
2068
2068
  spSelect: rr,
2069
2069
  spSelect_error: sr,
@@ -2081,7 +2081,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2081
2081
  spSelect__option: hr,
2082
2082
  spSelect__error: br,
2083
2083
  spSelect__error_absolutePosition: yr
2084
- }, Wp = (e) => {
2084
+ }, zp = (e) => {
2085
2085
  const {
2086
2086
  options: t,
2087
2087
  placeholder: o = "Выберите из списка...",
@@ -2105,7 +2105,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2105
2105
  classNameLabel: b,
2106
2106
  classNameBaseTooltipRoot: d
2107
2107
  } = e, [T, B] = Q(!1), Y = me(null);
2108
- ho(
2108
+ yo(
2109
2109
  [Y],
2110
2110
  () => {
2111
2111
  B(!1);
@@ -2137,12 +2137,12 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2137
2137
  [_e.spSelect__list_scrollable]: N
2138
2138
  }), $ = f({
2139
2139
  ...b && { [b]: !0 }
2140
- }), W = f({
2140
+ }), z = f({
2141
2141
  [_e.spSelect__error]: !0,
2142
2142
  [_e.spSelect__error_absolutePosition]: P,
2143
2143
  ...A && { [A]: !0 }
2144
2144
  });
2145
- return /* @__PURE__ */ z("div", { className: ue, ref: Y, children: [
2145
+ return /* @__PURE__ */ W("div", { className: ue, ref: Y, children: [
2146
2146
  l && /* @__PURE__ */ c(
2147
2147
  Dt,
2148
2148
  {
@@ -2154,8 +2154,8 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2154
2154
  classNameBaseTooltipRoot: d
2155
2155
  }
2156
2156
  ),
2157
- /* @__PURE__ */ z("div", { className: ce, onMouseEnter: s, children: [
2158
- /* @__PURE__ */ z(
2157
+ /* @__PURE__ */ W("div", { className: ce, onMouseEnter: s, children: [
2158
+ /* @__PURE__ */ W(
2159
2159
  "div",
2160
2160
  {
2161
2161
  tabIndex: g ? -1 : 0,
@@ -2182,7 +2182,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2182
2182
  style: N ? { maxHeight: `${w}px` } : {},
2183
2183
  children: t.map((v) => {
2184
2184
  const E = v.value === n;
2185
- return /* @__PURE__ */ z(
2185
+ return /* @__PURE__ */ W(
2186
2186
  "div",
2187
2187
  {
2188
2188
  className: f({
@@ -2200,11 +2200,11 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2200
2200
  }
2201
2201
  )
2202
2202
  ] }),
2203
- p && /* @__PURE__ */ c("div", { className: W, children: p })
2203
+ p && /* @__PURE__ */ c("div", { className: z, children: p })
2204
2204
  ] });
2205
2205
  }, wr = "_skeleton_1u7gu_43", Cr = {
2206
2206
  skeleton: wr
2207
- }, zp = (e) => {
2207
+ }, Wp = (e) => {
2208
2208
  const { width: t = "100%", height: o = "1rem", circle: n = !1, classNameRoot: a = "", style: i = {} } = e, r = {
2209
2209
  width: t,
2210
2210
  height: o,
@@ -2260,11 +2260,11 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2260
2260
  const T = b[d.key];
2261
2261
  if (!T) return null;
2262
2262
  const [B, Y] = T.split(/\s*\{\{|}}\s*/).filter(Boolean);
2263
- return /* @__PURE__ */ z("span", { children: [
2263
+ return /* @__PURE__ */ W("span", { children: [
2264
2264
  B,
2265
2265
  Y && /* @__PURE__ */ c("span", { className: l, children: ` ${Y}` })
2266
2266
  ] });
2267
- }, P = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ z("table", { className: s, children: [
2267
+ }, P = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ W("table", { className: s, children: [
2268
2268
  /* @__PURE__ */ c("colgroup", { children: r.map((b, d, T) => /* @__PURE__ */ c(
2269
2269
  "col",
2270
2270
  {
@@ -2281,7 +2281,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2281
2281
  "td",
2282
2282
  {
2283
2283
  onMouseLeave: Y ? w : void 0,
2284
- children: /* @__PURE__ */ z("div", { className: p, children: [
2284
+ children: /* @__PURE__ */ W("div", { className: p, children: [
2285
2285
  /* @__PURE__ */ c("span", { children: T.isColorContentsCurlyBrackets ? N({ row: b, col: T }) : b[T.key] }),
2286
2286
  !Et(b[T.key]) && T.isBeCopiedValue && /* @__PURE__ */ c(
2287
2287
  ve,
@@ -2317,7 +2317,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2317
2317
  if (Et(b[T.key]))
2318
2318
  return null;
2319
2319
  const Y = (_ == null ? void 0 : _.rowIndex) === d && (_ == null ? void 0 : _.colIndex) === B;
2320
- return /* @__PURE__ */ z(
2320
+ return /* @__PURE__ */ W(
2321
2321
  "div",
2322
2322
  {
2323
2323
  className: f({
@@ -2334,7 +2334,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2334
2334
  children: T.title
2335
2335
  }
2336
2336
  ),
2337
- /* @__PURE__ */ z(
2337
+ /* @__PURE__ */ W(
2338
2338
  "div",
2339
2339
  {
2340
2340
  className: f({
@@ -2372,15 +2372,15 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2372
2372
  }
2373
2373
  ) : C();
2374
2374
  return n ? a ? P() : M() : P();
2375
- }, Pr = "_spTabs_loi7t_43", Br = "_spTabs_separated_loi7t_48", Or = "_spTabs__tabElement_loi7t_48", Wr = "_spTabs__tabElement_active_loi7t_83", zr = "_spTabs__triggerTooltip_loi7t_90", Fe = {
2375
+ }, Pr = "_spTabs_loi7t_43", Br = "_spTabs_separated_loi7t_48", Or = "_spTabs__tabElement_loi7t_48", zr = "_spTabs__tabElement_active_loi7t_83", Wr = "_spTabs__triggerTooltip_loi7t_90", Fe = {
2376
2376
  spTabs: Pr,
2377
2377
  spTabs_separated: Br,
2378
2378
  "spTabs--size-md": "_spTabs--size-md_loi7t_48",
2379
2379
  spTabs__tabElement: Or,
2380
2380
  "spTabs--size-lg": "_spTabs--size-lg_loi7t_51",
2381
2381
  "spTabs--variant-contained": "_spTabs--variant-contained_loi7t_54",
2382
- spTabs__tabElement_active: Wr,
2383
- spTabs__triggerTooltip: zr,
2382
+ spTabs__tabElement_active: zr,
2383
+ spTabs__triggerTooltip: Wr,
2384
2384
  "spTabs--variant-filled": "_spTabs--variant-filled_loi7t_93"
2385
2385
  }, Up = (e) => {
2386
2386
  const {
@@ -2408,7 +2408,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2408
2408
  };
2409
2409
  return /* @__PURE__ */ c("div", { className: s, children: t.map((u, _) => {
2410
2410
  const { name: g, active: h, onClick: w, infoTooltipText: C } = u;
2411
- return /* @__PURE__ */ z(
2411
+ return /* @__PURE__ */ W(
2412
2412
  "div",
2413
2413
  {
2414
2414
  className: f({
@@ -2435,7 +2435,7 @@ const Wi = (e) => `not ${e}`, zi = (e, t) => {
2435
2435
  spTextWithLabel: Mr
2436
2436
  }, $p = (e) => {
2437
2437
  const { children: t, label: o, style: n, ...a } = e;
2438
- return /* @__PURE__ */ z("div", { className: Ur.spTextWithLabel, style: { ...n }, children: [
2438
+ return /* @__PURE__ */ W("div", { className: Ur.spTextWithLabel, style: { ...n }, children: [
2439
2439
  /* @__PURE__ */ c(Dt, { label: o }),
2440
2440
  /* @__PURE__ */ c(Te, { ...a, children: t })
2441
2441
  ] });
@@ -4000,7 +4000,7 @@ function vs(e) {
4000
4000
  if (Ae(e)) {
4001
4001
  var t = Object.entries(e).filter(function(o) {
4002
4002
  var n = Ue(o, 2), a = n[0], i = n[1], r = !0;
4003
- return Oo(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(Wo)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
4003
+ return Oo(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(i) || !i.every(zo)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
4004
4004
  }).reduce(function(o, n) {
4005
4005
  var a = Ue(n, 2), i = a[0], r = a[1];
4006
4006
  return po(po({}, o), {}, Fo({}, i, r));
@@ -4019,7 +4019,7 @@ function gs(e) {
4019
4019
  var n = Ue(o, 2), a = n[0], i = n[1];
4020
4020
  return [].concat(ro(t), [a], ro(i));
4021
4021
  }, []).filter(function(t) {
4022
- return Oo(t) || Wo(t);
4022
+ return Oo(t) || zo(t);
4023
4023
  }).join(",");
4024
4024
  }
4025
4025
  function xs(e) {
@@ -4031,12 +4031,12 @@ function hs(e) {
4031
4031
  function Oo(e) {
4032
4032
  return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
4033
4033
  }
4034
- function Wo(e) {
4034
+ function zo(e) {
4035
4035
  return /^.*\.[\w]+$/.test(e);
4036
4036
  }
4037
4037
  var bs = ["children"], ys = ["open"], ws = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Cs = ["refKey", "onChange", "onClick"];
4038
4038
  function ks(e) {
4039
- return Es(e) || Ns(e) || zo(e) || Ts();
4039
+ return Es(e) || Ns(e) || Wo(e) || Ts();
4040
4040
  }
4041
4041
  function Ts() {
4042
4042
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -4049,13 +4049,13 @@ function Es(e) {
4049
4049
  if (Array.isArray(e)) return Rt(e);
4050
4050
  }
4051
4051
  function Tt(e, t) {
4052
- return Rs(e) || Ss(e, t) || zo(e, t) || Is();
4052
+ return Rs(e) || Ss(e, t) || Wo(e, t) || Is();
4053
4053
  }
4054
4054
  function Is() {
4055
4055
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4056
4056
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4057
4057
  }
4058
- function zo(e, t) {
4058
+ function Wo(e, t) {
4059
4059
  if (e) {
4060
4060
  if (typeof e == "string") return Rt(e, t);
4061
4061
  var o = Object.prototype.toString.call(e).slice(8, -1);
@@ -4346,11 +4346,11 @@ function Uo() {
4346
4346
  return typeof N == "function" ? N : _o;
4347
4347
  }, [N]), ce = Pe(function() {
4348
4348
  return typeof C == "function" ? C : _o;
4349
- }, [C]), G = me(null), ee = me(null), J = Go(As, At), k = Tt(J, 2), $ = k[0], W = k[1], m = $.isFocused, v = $.isFileDialogActive, E = me(typeof window < "u" && window.isSecureContext && P && fs()), j = function() {
4349
+ }, [C]), G = me(null), ee = me(null), J = Go(As, At), k = Tt(J, 2), $ = k[0], z = k[1], m = $.isFocused, v = $.isFileDialogActive, E = me(typeof window < "u" && window.isSecureContext && P && fs()), j = function() {
4350
4350
  !E.current && v && setTimeout(function() {
4351
4351
  if (ee.current) {
4352
4352
  var L = ee.current.files;
4353
- L.length || (W({
4353
+ L.length || (z({
4354
4354
  type: "closeDialog"
4355
4355
  }), ce());
4356
4356
  }
@@ -4386,7 +4386,7 @@ function Uo() {
4386
4386
  maxFiles: p,
4387
4387
  validator: Z
4388
4388
  }), be = ne > 0 && !pe;
4389
- W({
4389
+ z({
4390
4390
  isDragAccept: pe,
4391
4391
  isDragReject: be,
4392
4392
  isDragActive: !0,
@@ -4410,7 +4410,7 @@ function Uo() {
4410
4410
  var L = I.current.filter(function(pe) {
4411
4411
  return G.current && G.current.contains(pe);
4412
4412
  }), ne = L.indexOf(y.target);
4413
- ne !== -1 && L.splice(ne, 1), I.current = L, !(L.length > 0) && (W({
4413
+ ne !== -1 && L.splice(ne, 1), I.current = L, !(L.length > 0) && (z({
4414
4414
  type: "setDraggedFiles",
4415
4415
  isDragActive: !1,
4416
4416
  isDragAccept: !1,
@@ -4419,7 +4419,7 @@ function Uo() {
4419
4419
  }, [G, u, B]), U = xe(function(y, L) {
4420
4420
  var ne = [], pe = [];
4421
4421
  y.forEach(function(be) {
4422
- var We = Po(be, re), De = Tt(We, 2), it = De[0], rt = De[1], st = Bo(be, r, i), Ve = Tt(st, 2), pt = Ve[0], lt = Ve[1], ct = Z ? Z(be) : null;
4422
+ var ze = Po(be, re), De = Tt(ze, 2), it = De[0], rt = De[1], st = Bo(be, r, i), Ve = Tt(st, 2), pt = Ve[0], lt = Ve[1], ct = Z ? Z(be) : null;
4423
4423
  if (it && pt && !ct)
4424
4424
  ne.push(be);
4425
4425
  else {
@@ -4436,23 +4436,23 @@ function Uo() {
4436
4436
  file: be,
4437
4437
  errors: [cs]
4438
4438
  });
4439
- }), ne.splice(0)), W({
4439
+ }), ne.splice(0)), z({
4440
4440
  acceptedFiles: ne,
4441
4441
  fileRejections: pe,
4442
4442
  isDragReject: pe.length > 0,
4443
4443
  type: "setFiles"
4444
4444
  }), g && g(ne, pe, L), pe.length > 0 && w && w(pe, L), ne.length > 0 && h && h(ne, L);
4445
- }, [W, s, re, r, i, p, g, h, w, Z]), ie = xe(function(y) {
4445
+ }, [z, s, re, r, i, p, g, h, w, Z]), ie = xe(function(y) {
4446
4446
  y.preventDefault(), y.persist(), He(y), I.current = [], Ze(y) && Promise.resolve(a(y)).then(function(L) {
4447
4447
  et(y) && !B || U(L, y);
4448
4448
  }).catch(function(L) {
4449
4449
  return F(L);
4450
- }), W({
4450
+ }), z({
4451
4451
  type: "reset"
4452
4452
  });
4453
4453
  }, [a, U, F, B]), x = xe(function() {
4454
4454
  if (E.current) {
4455
- W({
4455
+ z({
4456
4456
  type: "openDialog"
4457
4457
  }), ue();
4458
4458
  var y = {
@@ -4462,30 +4462,30 @@ function Uo() {
4462
4462
  window.showOpenFilePicker(y).then(function(L) {
4463
4463
  return a(L);
4464
4464
  }).then(function(L) {
4465
- U(L, null), W({
4465
+ U(L, null), z({
4466
4466
  type: "closeDialog"
4467
4467
  });
4468
4468
  }).catch(function(L) {
4469
- xs(L) ? (ce(L), W({
4469
+ xs(L) ? (ce(L), z({
4470
4470
  type: "closeDialog"
4471
4471
  })) : hs(L) ? (E.current = !1, ee.current ? (ee.current.value = null, ee.current.click()) : F(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : F(L);
4472
4472
  });
4473
4473
  return;
4474
4474
  }
4475
- ee.current && (W({
4475
+ ee.current && (z({
4476
4476
  type: "openDialog"
4477
4477
  }), ue(), ee.current.value = null, ee.current.click());
4478
- }, [W, ue, ce, P, U, F, se, s]), he = xe(function(y) {
4478
+ }, [z, ue, ce, P, U, F, se, s]), he = xe(function(y) {
4479
4479
  !G.current || !G.current.isEqualNode(y.target) || (y.key === " " || y.key === "Enter" || y.keyCode === 32 || y.keyCode === 13) && (y.preventDefault(), x());
4480
4480
  }, [G, x]), Se = xe(function() {
4481
- W({
4481
+ z({
4482
4482
  type: "focus"
4483
4483
  });
4484
4484
  }, []), Oe = xe(function() {
4485
- W({
4485
+ z({
4486
4486
  type: "blur"
4487
4487
  });
4488
- }, []), Wt = xe(function() {
4488
+ }, []), zt = xe(function() {
4489
4489
  b || (_s() ? setTimeout(x, 0) : x());
4490
4490
  }, [b, x]), Le = function(L) {
4491
4491
  return n ? null : L;
@@ -4497,12 +4497,12 @@ function Uo() {
4497
4497
  B && L.stopPropagation();
4498
4498
  }, $o = Pe(function() {
4499
4499
  return function() {
4500
- var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, ne = L === void 0 ? "ref" : L, pe = y.role, be = y.onKeyDown, We = y.onFocus, De = y.onBlur, it = y.onClick, rt = y.onDragEnter, st = y.onDragOver, Ve = y.onDragLeave, pt = y.onDrop, lt = tt(y, ws);
4500
+ var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, ne = L === void 0 ? "ref" : L, pe = y.role, be = y.onKeyDown, ze = y.onFocus, De = y.onBlur, it = y.onClick, rt = y.onDragEnter, st = y.onDragOver, Ve = y.onDragLeave, pt = y.onDrop, lt = tt(y, ws);
4501
4501
  return te(te(Ft({
4502
4502
  onKeyDown: at(Ne(be, he)),
4503
- onFocus: at(Ne(We, Se)),
4503
+ onFocus: at(Ne(ze, Se)),
4504
4504
  onBlur: at(Ne(De, Oe)),
4505
- onClick: Le(Ne(it, Wt)),
4505
+ onClick: Le(Ne(it, zt)),
4506
4506
  onDragEnter: qe(Ne(rt, O)),
4507
4507
  onDragOver: qe(Ne(st, q)),
4508
4508
  onDragLeave: qe(Ne(Ve, V)),
@@ -4512,11 +4512,11 @@ function Uo() {
4512
4512
  tabIndex: 0
4513
4513
  } : {}), lt);
4514
4514
  };
4515
- }, [G, he, Se, Oe, Wt, O, q, V, ie, d, T, n]), qo = xe(function(y) {
4515
+ }, [G, he, Se, Oe, zt, O, q, V, ie, d, T, n]), qo = xe(function(y) {
4516
4516
  y.stopPropagation();
4517
4517
  }, []), Ho = Pe(function() {
4518
4518
  return function() {
4519
- var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, ne = L === void 0 ? "ref" : L, pe = y.onChange, be = y.onClick, We = tt(y, Cs), De = Ft({
4519
+ var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, L = y.refKey, ne = L === void 0 ? "ref" : L, pe = y.onChange, be = y.onClick, ze = tt(y, Cs), De = Ft({
4520
4520
  accept: re,
4521
4521
  multiple: s,
4522
4522
  type: "file",
@@ -4536,7 +4536,7 @@ function Uo() {
4536
4536
  onClick: Le(Ne(be, qo)),
4537
4537
  tabIndex: -1
4538
4538
  }, ne, ee);
4539
- return te(te({}, De), We);
4539
+ return te(te({}, De), ze);
4540
4540
  };
4541
4541
  }, [ee, o, s, ie, n]);
4542
4542
  return te(te({}, $), {}, {
@@ -4607,7 +4607,7 @@ const js = (e) => Uo(e), Ls = (e) => {
4607
4607
  }, Bs = "_ellipsisFileName_qx34h_1", Os = "_tooltipContent_qx34h_7", fo = {
4608
4608
  ellipsisFileName: Bs,
4609
4609
  tooltipContent: Os
4610
- }, Ws = (e) => {
4610
+ }, zs = (e) => {
4611
4611
  const {
4612
4612
  fileName: t,
4613
4613
  classNameRoot: o,
@@ -4621,7 +4621,7 @@ const js = (e) => Uo(e), Ls = (e) => {
4621
4621
  window.removeEventListener("resize", g);
4622
4622
  }), [t]);
4623
4623
  const h = Ds(t);
4624
- return /* @__PURE__ */ z(
4624
+ return /* @__PURE__ */ W(
4625
4625
  "div",
4626
4626
  {
4627
4627
  className: f(
@@ -4658,8 +4658,8 @@ const js = (e) => Uo(e), Ls = (e) => {
4658
4658
  ]
4659
4659
  }
4660
4660
  );
4661
- }, zs = "_spUploadFiles_1i7hm_43", Ms = "_spUploadFiles_error_1i7hm_50", Us = "_spUploadFiles__control_1i7hm_50", $s = "_spUploadFiles__fileNameContainer_1i7hm_54", qs = "_spUploadFiles__fileName_dragError_1i7hm_58", Hs = "_spUploadFiles__placeholderContainer_1i7hm_61", Vs = "_spUploadFiles__placeholderContainer_withUloadTooltip_1i7hm_71", Ys = "_spUploadFiles__placeholder_1i7hm_61", Gs = "_spUploadFiles__control_loading_1i7hm_103", Ks = "_shimmer_1i7hm_1", Xs = "_spUploadFiles__fileName_1i7hm_54", Zs = "_spUploadFiles_fileUploaded_1i7hm_150", Qs = "_spUploadFiles_disabled_1i7hm_150", Js = "_spUploadFiles__fileNamesList_1i7hm_161", ep = "_spUploadFiles__fileNamesList_loading_1i7hm_172", tp = "_spUploadFiles__fileNamesListItem_1i7hm_177", op = "_spUploadFiles__fileNamesListItem__iconContainer_1i7hm_204", np = "_spUploadFiles__fileNamesListItem__iconContainer_error_1i7hm_213", ap = "_spUploadFiles__fileNamesListItem__mainContent_1i7hm_218", ip = "_spUploadFiles__fileNamesListItem__fileNameWrapper_1i7hm_225", rp = "_spUploadFiles__fileNamesListItem__fileName_1i7hm_225", sp = "_spUploadFiles__fileNamesListItem__description_1i7hm_232", pp = "_spUploadFiles__fileNamesListItem__description__tooltipContent_1i7hm_237", lp = "_spUploadFiles__fileNamesListItem__description_error_1i7hm_240", cp = "_spUploadFiles__fileNamesListItemDelete_1i7hm_243", dp = "_spUploadFiles__fileNamesListItemDelete_error_1i7hm_260", mp = "_spUploadFiles__tooltipWrapper_1i7hm_270", up = "_spUploadFiles__tooltip_1i7hm_270", _p = "_spUploadFiles__delete_1i7hm_276", fp = "_spUploadFiles__delete_loading_1i7hm_280", vp = "_spUploadFiles__error_1i7hm_289", H = {
4662
- spUploadFiles: zs,
4661
+ }, Ws = "_spUploadFiles_1i7hm_43", Ms = "_spUploadFiles_error_1i7hm_50", Us = "_spUploadFiles__control_1i7hm_50", $s = "_spUploadFiles__fileNameContainer_1i7hm_54", qs = "_spUploadFiles__fileName_dragError_1i7hm_58", Hs = "_spUploadFiles__placeholderContainer_1i7hm_61", Vs = "_spUploadFiles__placeholderContainer_withUloadTooltip_1i7hm_71", Ys = "_spUploadFiles__placeholder_1i7hm_61", Gs = "_spUploadFiles__control_loading_1i7hm_103", Ks = "_shimmer_1i7hm_1", Xs = "_spUploadFiles__fileName_1i7hm_54", Zs = "_spUploadFiles_fileUploaded_1i7hm_150", Qs = "_spUploadFiles_disabled_1i7hm_150", Js = "_spUploadFiles__fileNamesList_1i7hm_161", ep = "_spUploadFiles__fileNamesList_loading_1i7hm_172", tp = "_spUploadFiles__fileNamesListItem_1i7hm_177", op = "_spUploadFiles__fileNamesListItem__iconContainer_1i7hm_204", np = "_spUploadFiles__fileNamesListItem__iconContainer_error_1i7hm_213", ap = "_spUploadFiles__fileNamesListItem__mainContent_1i7hm_218", ip = "_spUploadFiles__fileNamesListItem__fileNameWrapper_1i7hm_225", rp = "_spUploadFiles__fileNamesListItem__fileName_1i7hm_225", sp = "_spUploadFiles__fileNamesListItem__description_1i7hm_232", pp = "_spUploadFiles__fileNamesListItem__description__tooltipContent_1i7hm_237", lp = "_spUploadFiles__fileNamesListItem__description_error_1i7hm_240", cp = "_spUploadFiles__fileNamesListItemDelete_1i7hm_243", dp = "_spUploadFiles__fileNamesListItemDelete_error_1i7hm_260", mp = "_spUploadFiles__tooltipWrapper_1i7hm_270", up = "_spUploadFiles__tooltip_1i7hm_270", _p = "_spUploadFiles__delete_1i7hm_276", fp = "_spUploadFiles__delete_loading_1i7hm_280", vp = "_spUploadFiles__error_1i7hm_289", H = {
4662
+ spUploadFiles: Ws,
4663
4663
  spUploadFiles_error: Ms,
4664
4664
  spUploadFiles__control: Us,
4665
4665
  spUploadFiles__fileNameContainer: $s,
@@ -4783,7 +4783,7 @@ const js = (e) => Uo(e), Ls = (e) => {
4783
4783
  );
4784
4784
  }, k = () => /* @__PURE__ */ c("ul", { className: se, children: T.map(({ file: v, errors: E }, j) => {
4785
4785
  const I = E ? (E == null ? void 0 : E.length) > 0 : void 0, D = () => E ? E == null ? void 0 : E.map(Ls).join(", ") : "";
4786
- return /* @__PURE__ */ z(
4786
+ return /* @__PURE__ */ W(
4787
4787
  "li",
4788
4788
  {
4789
4789
  className: f(
@@ -4804,9 +4804,9 @@ const js = (e) => Uo(e), Ls = (e) => {
4804
4804
  children: /* @__PURE__ */ c(ve, { name: I ? ae.InfoError : ae.File })
4805
4805
  }
4806
4806
  ),
4807
- /* @__PURE__ */ z("div", { className: H.spUploadFiles__fileNamesListItem__mainContent, children: [
4807
+ /* @__PURE__ */ W("div", { className: H.spUploadFiles__fileNamesListItem__mainContent, children: [
4808
4808
  /* @__PURE__ */ c(
4809
- Ws,
4809
+ zs,
4810
4810
  {
4811
4811
  fileName: v.name,
4812
4812
  classNameEllipsisFileNameRoot: H.spUploadFiles__fileNamesListItem__fileNameWrapper,
@@ -4839,7 +4839,7 @@ const js = (e) => Uo(e), Ls = (e) => {
4839
4839
  },
4840
4840
  j
4841
4841
  );
4842
- }) }), $ = () => s ? k() : J(), W = () => /* @__PURE__ */ c(
4842
+ }) }), $ = () => s ? k() : J(), z = () => /* @__PURE__ */ c(
4843
4843
  Ge,
4844
4844
  {
4845
4845
  classNameRoot: H.spUploadFiles__placeholder,
@@ -4849,8 +4849,8 @@ const js = (e) => Uo(e), Ls = (e) => {
4849
4849
  ),
4850
4850
  text: t
4851
4851
  }
4852
- ), m = () => /* @__PURE__ */ z(jt, { children: [
4853
- B ? $() : W(),
4852
+ ), m = () => /* @__PURE__ */ W(jt, { children: [
4853
+ B ? $() : z(),
4854
4854
  B && Y ? /* @__PURE__ */ c("div", { className: ue, onClick: G, children: /* @__PURE__ */ c(ve, { name: ae.Close }) }) : Y && l && /* @__PURE__ */ c(
4855
4855
  nt,
4856
4856
  {
@@ -4868,8 +4868,8 @@ const js = (e) => Uo(e), Ls = (e) => {
4868
4868
  getInputProps: M,
4869
4869
  disabled: r,
4870
4870
  name: n,
4871
- children: /* @__PURE__ */ z("div", { className: Z, children: [
4872
- /* @__PURE__ */ z("div", { className: re, children: [
4871
+ children: /* @__PURE__ */ W("div", { className: Z, children: [
4872
+ /* @__PURE__ */ W("div", { className: re, children: [
4873
4873
  Y && (g ? /* @__PURE__ */ c(Lt, {}) : /* @__PURE__ */ c(
4874
4874
  ve,
4875
4875
  {
@@ -4917,9 +4917,9 @@ const js = (e) => Uo(e), Ls = (e) => {
4917
4917
  [Ee.viewImage__img_error]: _,
4918
4918
  ...o && { [o]: !0 }
4919
4919
  });
4920
- return /* @__PURE__ */ z(yo, { classNameRoot: N, children: [
4920
+ return /* @__PURE__ */ W(ho, { classNameRoot: N, children: [
4921
4921
  s && l && /* @__PURE__ */ c(Lt, { classNameRoot: M, size: "xl" }),
4922
- /* @__PURE__ */ z("div", { className: C, children: [
4922
+ /* @__PURE__ */ W("div", { className: C, children: [
4923
4923
  /* @__PURE__ */ c(
4924
4924
  "img",
4925
4925
  {
@@ -4934,7 +4934,7 @@ const js = (e) => Uo(e), Ls = (e) => {
4934
4934
  }
4935
4935
  }
4936
4936
  ),
4937
- _ && /* @__PURE__ */ z("div", { className: Ee.viewImage__errorWrapper, children: [
4937
+ _ && /* @__PURE__ */ W("div", { className: Ee.viewImage__errorWrapper, children: [
4938
4938
  /* @__PURE__ */ c(ve, { name: ae.InfoError, className: Ee.viewImage__errorIcon }),
4939
4939
  /* @__PURE__ */ c(Te, { children: "Не удалось загрузить изображение" })
4940
4940
  ] })
@@ -4955,30 +4955,30 @@ const js = (e) => Uo(e), Ls = (e) => {
4955
4955
  export {
4956
4956
  Sp as Accordion,
4957
4957
  Qn as ApplyButtons,
4958
- xo as BaseTooltip,
4958
+ Fp as AuthProtected,
4959
+ bo as BaseTooltip,
4959
4960
  Qe as Button,
4960
- Rp as Checkbox,
4961
- Ia as Confirm,
4962
- Ap as ContextMenu,
4961
+ Ap as Checkbox,
4962
+ ua as Confirm,
4963
+ jp as ContextMenu,
4963
4964
  Aa as DefaultDropzone,
4964
- jp as Dropdown,
4965
+ Lp as Dropdown,
4965
4966
  ae as EIconName,
4966
4967
  le as ETooltipPosition,
4967
4968
  Ge as EllipsisTextWithTooltip,
4968
- Lp as Form,
4969
+ Dp as Form,
4969
4970
  ve as Icon,
4970
4971
  nt as InfoTooltip,
4971
4972
  pi as Input,
4972
4973
  Dt as Label,
4973
- yo as Layer,
4974
+ ho as Layer,
4974
4975
  li as MediaContext,
4975
- Pp as MediaContextProvider,
4976
- Ea as Modal,
4977
- bo as Portal,
4978
- Bp as ProgressWrapper,
4979
- Op as ProtectedRoute,
4980
- Wp as Select,
4981
- zp as Skeleton,
4976
+ Bp as MediaContextProvider,
4977
+ ma as Modal,
4978
+ xo as Portal,
4979
+ Op as ProgressWrapper,
4980
+ zp as Select,
4981
+ Wp as Skeleton,
4982
4982
  Lt as Spinner,
4983
4983
  Mp as Table,
4984
4984
  Up as Tabs,
@@ -4988,5 +4988,5 @@ export {
4988
4988
  qp as UploadFiles,
4989
4989
  Hp as ViewImageModal,
4990
4990
  Zi as useAnimatedValue,
4991
- Fp as useModal
4991
+ Rp as useModal
4992
4992
  };