urfu-ui-kit-react 1.11.2 → 1.11.3

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 +1 @@
1
- {"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,cAAc;IACtB,eAAe,EAAE,GAAG,EAAE,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,GAAG,CAAC;IACd,WAAW,EAAE,GAAG,CAAC;IACjB,eAAe,EAAE,GAAG,CAAC;IACrB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3C,kBAAkB,EAAE,GAAG,CAAC;IACxB,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3C,mBAAmB,EAAE,GAAG,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM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reeView.d.ts","sourceRoot":"","sources":["../../../src/components/TreeView/TreeView.tsx"],"names":[],"mappings":"AACA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,0BAA0B,CAAA;AACjC,OAAO,yBAAyB,CAAA;AAahC,eAAO,MAAM,QAAQ,GAAI,uRAyBtB,gBAAgB,4CA2XlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectEngine.d.ts","sourceRoot":"","sources":["../../src/hooks/useSelectEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzD,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErE,KAAK,MAAM,GAAG;IACV,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAC;IACtB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,IAAI,EAAE;QACtB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,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EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEjE,mEAAmE;IACnE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAAI,gIAW7B,MAAM,KAAG,YA+HX,CAAC"}
@@ -2978,12 +2978,12 @@ function Yr(n, r, t, e) {
2978
2978
  if (S) {
2979
2979
  const { incompatibleTokens: M } = S;
2980
2980
  if (Array.isArray(M)) {
2981
- const A = d.find(
2981
+ const F = d.find(
2982
2982
  (W) => M.includes(W.token) || W.token === g
2983
2983
  );
2984
- if (A)
2984
+ if (F)
2985
2985
  throw new RangeError(
2986
- `The format string mustn't contain \`${A.fullToken}\` and \`${k}\` at the same time`
2986
+ `The format string mustn't contain \`${F.fullToken}\` and \`${k}\` at the same time`
2987
2987
  );
2988
2988
  } else if (S.incompatibleTokens === "*" && d.length > 0)
2989
2989
  throw new RangeError(
@@ -3607,7 +3607,7 @@ const yc = (n) => ({
3607
3607
  }, h = pa(a), m = da(h), v = await i.getDimensions(u), w = h === "y", b = w ? "top" : "left", y = w ? "bottom" : "right", D = w ? "clientHeight" : "clientWidth", C = o.reference[m] + o.reference[h] - p[h] - o.floating[m], _ = p[h] - o.reference[h], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
3608
3608
  let k = T ? T[D] : 0;
3609
3609
  (!k || !await (i.isElement == null ? void 0 : i.isElement(T))) && (k = s.floating[D] || o.floating[m]);
3610
- const g = C / 2 - _ / 2, S = k / 2 - v[m] / 2 - 1, M = bn(d[b], S), I = bn(d[y], S), A = M, W = k - v[m] - I, Q = k / 2 - v[m] / 2 + g, G = dc(A, Q, W), H = !l.arrow && An(a) != null && Q !== G && o.reference[m] / 2 - (Q < A ? M : I) - v[m] / 2 < 0, x = H ? Q < A ? Q - A : Q - W : 0;
3610
+ const g = C / 2 - _ / 2, S = k / 2 - v[m] / 2 - 1, M = bn(d[b], S), I = bn(d[y], S), F = M, W = k - v[m] - I, Q = k / 2 - v[m] / 2 + g, G = dc(F, Q, W), H = !l.arrow && An(a) != null && Q !== G && o.reference[m] / 2 - (Q < F ? M : I) - v[m] / 2 < 0, x = H ? Q < F ? Q - F : Q - W : 0;
3611
3611
  return {
3612
3612
  [h]: p[h] + x,
3613
3613
  data: {
@@ -3656,7 +3656,7 @@ const yc = (n) => ({
3656
3656
  placement: a,
3657
3657
  overflows: S
3658
3658
  }], !S.every((Q) => Q <= 0)) {
3659
- var I, A;
3659
+ var I, F;
3660
3660
  const Q = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, G = k[Q];
3661
3661
  if (G)
3662
3662
  return {
@@ -3668,7 +3668,7 @@ const yc = (n) => ({
3668
3668
  placement: G
3669
3669
  }
3670
3670
  };
3671
- let H = (A = M.filter((x) => x.overflows[0] <= 0).sort((x, E) => x.overflows[1] - E.overflows[1])[0]) == null ? void 0 : A.placement;
3671
+ let H = (F = M.filter((x) => x.overflows[0] <= 0).sort((x, E) => x.overflows[1] - E.overflows[1])[0]) == null ? void 0 : F.placement;
3672
3672
  if (!H)
3673
3673
  switch (h) {
3674
3674
  case "bestFit": {
@@ -3681,7 +3681,7 @@ const yc = (n) => ({
3681
3681
  N === "y";
3682
3682
  }
3683
3683
  return !0;
3684
- }).map((E) => [E.placement, E.overflows.filter((N) => N > 0).reduce((N, F) => N + F, 0)]).sort((E, N) => E[1] - N[1])[0]) == null ? void 0 : W[0];
3684
+ }).map((E) => [E.placement, E.overflows.filter((N) => N > 0).reduce((N, A) => N + A, 0)]).sort((E, N) => E[1] - N[1])[0]) == null ? void 0 : W[0];
3685
3685
  x && (H = x);
3686
3686
  break;
3687
3687
  }
@@ -4200,7 +4200,7 @@ function Gc(n) {
4200
4200
  E !== T.current && (T.current = E, v(E));
4201
4201
  }, []), D = fe.useCallback((E) => {
4202
4202
  E !== k.current && (k.current = E, b(E));
4203
- }, []), C = o || m, _ = i || w, T = fe.useRef(null), k = fe.useRef(null), g = fe.useRef(c), S = l != null, M = Wr(l), I = Wr(a), A = Wr(u), W = fe.useCallback(() => {
4203
+ }, []), C = o || m, _ = i || w, T = fe.useRef(null), k = fe.useRef(null), g = fe.useRef(c), S = l != null, M = Wr(l), I = Wr(a), F = Wr(u), W = fe.useCallback(() => {
4204
4204
  if (!T.current || !k.current)
4205
4205
  return;
4206
4206
  const E = {
@@ -4209,19 +4209,19 @@ function Gc(n) {
4209
4209
  middleware: p
4210
4210
  };
4211
4211
  I.current && (E.platform = I.current), Bc(T.current, k.current, E).then((N) => {
4212
- const F = {
4212
+ const A = {
4213
4213
  ...N,
4214
4214
  // The floating element's position may be recomputed while it's closed
4215
4215
  // but still mounted (such as when transitioning out). To ensure
4216
4216
  // `isPositioned` will be `false` initially on the next open, avoid
4217
4217
  // setting it to `true` when `open === false` (must be specified).
4218
- isPositioned: A.current !== !1
4218
+ isPositioned: F.current !== !1
4219
4219
  };
4220
- Q.current && !mr(g.current, F) && (g.current = F, Wi.flushSync(() => {
4221
- d(F);
4220
+ Q.current && !mr(g.current, A) && (g.current = A, Wi.flushSync(() => {
4221
+ d(A);
4222
4222
  }));
4223
4223
  });
4224
- }, [p, r, t, I, A]);
4224
+ }, [p, r, t, I, F]);
4225
4225
  tr(() => {
4226
4226
  u === !1 && g.current.isPositioned && (g.current.isPositioned = !1, d((E) => ({
4227
4227
  ...E,
@@ -4254,17 +4254,17 @@ function Gc(n) {
4254
4254
  };
4255
4255
  if (!H.floating)
4256
4256
  return E;
4257
- const N = qa(H.floating, c.x), F = qa(H.floating, c.y);
4257
+ const N = qa(H.floating, c.x), A = qa(H.floating, c.y);
4258
4258
  return s ? {
4259
4259
  ...E,
4260
- transform: "translate(" + N + "px, " + F + "px)",
4260
+ transform: "translate(" + N + "px, " + A + "px)",
4261
4261
  ...ti(H.floating) >= 1.5 && {
4262
4262
  willChange: "transform"
4263
4263
  }
4264
4264
  } : {
4265
4265
  position: t,
4266
4266
  left: N,
4267
- top: F
4267
+ top: A
4268
4268
  };
4269
4269
  }, [t, s, H.floating, c.x, c.y]);
4270
4270
  return fe.useMemo(() => ({
@@ -4392,20 +4392,20 @@ const nu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
4392
4392
  const [C, _] = e.split("-"), T = C === "top" || C === "bottom";
4393
4393
  let k = d;
4394
4394
  (T && i != null && i.x || !T && i != null && i.y) && (k = null);
4395
- const g = c * 2, S = g / 2, M = s / 2 * (u / -8 + 1), I = l / 2 * u / 4, A = !!h, W = k && _ === "end" ? "bottom" : "top";
4395
+ const g = c * 2, S = g / 2, M = s / 2 * (u / -8 + 1), I = l / 2 * u / 4, F = !!h, W = k && _ === "end" ? "bottom" : "top";
4396
4396
  let Q = k && _ === "end" ? "right" : "left";
4397
4397
  k && y && (Q = _ === "end" ? "left" : "right");
4398
4398
  const G = (o == null ? void 0 : o.x) != null ? k || o.x : "", H = (o == null ? void 0 : o.y) != null ? k || o.y : "", x = h || "M0,0" + (" H" + s) + (" L" + (s - M) + "," + (l - I)) + (" Q" + s / 2 + "," + l + " " + M + "," + (l - I)) + " Z", E = {
4399
- top: A ? "rotate(180deg)" : "",
4400
- left: A ? "rotate(90deg)" : "rotate(-90deg)",
4401
- bottom: A ? "" : "rotate(180deg)",
4402
- right: A ? "rotate(-90deg)" : "rotate(90deg)"
4399
+ top: F ? "rotate(180deg)" : "",
4400
+ left: F ? "rotate(90deg)" : "rotate(-90deg)",
4401
+ bottom: F ? "" : "rotate(180deg)",
4402
+ right: F ? "rotate(-90deg)" : "rotate(90deg)"
4403
4403
  }[C];
4404
4404
  return /* @__PURE__ */ O("svg", {
4405
4405
  ...w,
4406
4406
  "aria-hidden": !0,
4407
4407
  ref: t,
4408
- width: A ? s : s + g,
4408
+ width: F ? s : s + g,
4409
4409
  height: s,
4410
4410
  viewBox: "0 0 " + s + " " + (l > s ? l : s),
4411
4411
  style: {
@@ -4413,7 +4413,7 @@ const nu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
4413
4413
  pointerEvents: "none",
4414
4414
  [Q]: G,
4415
4415
  [W]: H,
4416
- [C]: T || A ? "100%" : "calc(100% - " + g / 2 + "px)",
4416
+ [C]: T || F ? "100%" : "calc(100% - " + g / 2 + "px)",
4417
4417
  transform: [E, m].filter((N) => !!N).join(" "),
4418
4418
  ...v
4419
4419
  },
@@ -4430,7 +4430,7 @@ const nu = /* @__PURE__ */ fe.forwardRef(function(r, t) {
4430
4430
  id: b,
4431
4431
  children: /* @__PURE__ */ f("rect", {
4432
4432
  x: -S,
4433
- y: S * (A ? -1 : 1),
4433
+ y: S * (F ? -1 : 1),
4434
4434
  width: s + g,
4435
4435
  height: s
4436
4436
  })
@@ -5510,24 +5510,24 @@ var Wu = (
5510
5510
  var i, s = t.props, l = s.selected, u = s.preSelection, c = s.setPreSelection, d = s.minDate, p = s.maxDate, h = s.showFourColumnMonthYearPicker, m = s.showTwoColumnMonthYearPicker;
5511
5511
  if (u) {
5512
5512
  var v = uo(h, m), w = t.getVerticalOffset(v), b = (i = Br[v]) === null || i === void 0 ? void 0 : i.grid, y = function(k, g, S) {
5513
- var M, I, A = g, W = S;
5513
+ var M, I, F = g, W = S;
5514
5514
  switch (k) {
5515
5515
  case U.ArrowRight:
5516
- A = lt(g, Vn), W = S === 11 ? 0 : S + Vn;
5516
+ F = lt(g, Vn), W = S === 11 ? 0 : S + Vn;
5517
5517
  break;
5518
5518
  case U.ArrowLeft:
5519
- A = Ut(g, Vn), W = S === 0 ? 11 : S - Vn;
5519
+ F = Ut(g, Vn), W = S === 0 ? 11 : S - Vn;
5520
5520
  break;
5521
5521
  case U.ArrowUp:
5522
- A = Ut(g, w), W = !((M = b == null ? void 0 : b[0]) === null || M === void 0) && M.includes(S) ? S + 12 - w : S - w;
5522
+ F = Ut(g, w), W = !((M = b == null ? void 0 : b[0]) === null || M === void 0) && M.includes(S) ? S + 12 - w : S - w;
5523
5523
  break;
5524
5524
  case U.ArrowDown:
5525
- A = lt(g, w), W = !((I = b == null ? void 0 : b[b.length - 1]) === null || I === void 0) && I.includes(S) ? S - 12 + w : S + w;
5525
+ F = lt(g, w), W = !((I = b == null ? void 0 : b[b.length - 1]) === null || I === void 0) && I.includes(S) ? S - 12 + w : S + w;
5526
5526
  break;
5527
5527
  }
5528
- return { newCalculatedDate: A, newCalculatedMonth: W };
5528
+ return { newCalculatedDate: F, newCalculatedMonth: W };
5529
5529
  }, D = function(k, g, S) {
5530
- for (var M = 40, I = k, A = !1, W = 0, Q = y(I, g, S), G = Q.newCalculatedDate, H = Q.newCalculatedMonth; !A; ) {
5530
+ for (var M = 40, I = k, F = !1, W = 0, Q = y(I, g, S), G = Q.newCalculatedDate, H = Q.newCalculatedMonth; !F; ) {
5531
5531
  if (W >= M) {
5532
5532
  G = g, H = S;
5533
5533
  break;
@@ -5546,7 +5546,7 @@ var Wu = (
5546
5546
  var x = y(I, G, H);
5547
5547
  G = x.newCalculatedDate, H = x.newCalculatedMonth;
5548
5548
  } else
5549
- A = !0;
5549
+ F = !0;
5550
5550
  W++;
5551
5551
  }
5552
5552
  return { newCalculatedDate: G, newCalculatedMonth: H };
@@ -7003,12 +7003,12 @@ var Gr = "Date input not valid.", id = (
7003
7003
  }
7004
7004
  return x;
7005
7005
  }, S = function(G, H) {
7006
- for (var x = 40, E = G, N = !1, F = 0, X = g(G, H); !N; ) {
7007
- if (F >= x) {
7006
+ for (var x = 40, E = G, N = !1, A = 0, X = g(G, H); !N; ) {
7007
+ if (A >= x) {
7008
7008
  X = H;
7009
7009
  break;
7010
7010
  }
7011
- p && X < p && (E = U.ArrowRight, X = rt(p, e.props) ? g(E, X) : p), h && X > h && (E = U.ArrowLeft, X = rt(h, e.props) ? g(E, X) : h), rt(X, e.props) ? ((E === U.PageUp || E === U.Home) && (E = U.ArrowRight), (E === U.PageDown || E === U.End) && (E = U.ArrowLeft), X = g(E, X)) : N = !0, F++;
7011
+ p && X < p && (E = U.ArrowRight, X = rt(p, e.props) ? g(E, X) : p), h && X > h && (E = U.ArrowLeft, X = rt(h, e.props) ? g(E, X) : h), rt(X, e.props) ? ((E === U.PageUp || E === U.Home) && (E = U.ArrowRight), (E === U.PageDown || E === U.End) && (E = U.ArrowLeft), X = g(E, X)) : N = !0, A++;
7012
7012
  }
7013
7013
  return X;
7014
7014
  };
@@ -7037,8 +7037,8 @@ var Gr = "Date input not valid.", id = (
7037
7037
  return;
7038
7038
  }
7039
7039
  if (a.preventDefault(), e.setState({ lastPreSelectChange: Qr }), D && e.setSelected(M), e.setPreSelection(M), C) {
7040
- var I = qe(k), A = qe(M), W = he(k), Q = he(M);
7041
- I !== A || W !== Q ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
7040
+ var I = qe(k), F = qe(M), W = he(k), Q = he(M);
7041
+ I !== F || W !== Q ? e.setState({ shouldFocusDayInline: !0 }) : e.setState({ shouldFocusDayInline: !1 });
7042
7042
  }
7043
7043
  }
7044
7044
  }, e.onPopperKeyDown = function(a) {
@@ -7225,8 +7225,8 @@ const ld = (n) => {
7225
7225
  ), g = Oe((x) => {
7226
7226
  const E = h.current;
7227
7227
  if (!E) return;
7228
- const [N, F] = cd(x);
7229
- E.setSelectionRange(N, F);
7228
+ const [N, A] = cd(x);
7229
+ E.setSelectionRange(N, A);
7230
7230
  }, []), S = Oe(
7231
7231
  (x) => {
7232
7232
  requestAnimationFrame(() => {
@@ -7255,7 +7255,7 @@ const ld = (n) => {
7255
7255
  }
7256
7256
  const E = x.currentTarget.selectionStart ?? 0;
7257
7257
  v(Un(E)), D((N) => N + 1);
7258
- }, A = (x) => {
7258
+ }, F = (x) => {
7259
7259
  var N;
7260
7260
  t == null || t(x), l == null || l(!0);
7261
7261
  const E = ((N = h.current) == null ? void 0 : N.value) ?? "";
@@ -7268,9 +7268,9 @@ const ld = (n) => {
7268
7268
  C.current = E, _.current = E;
7269
7269
  return;
7270
7270
  }
7271
- const N = u && E.trim() === "", F = _.current;
7272
- if (!N && It.test(F)) {
7273
- C.current = F;
7271
+ const N = u && E.trim() === "", A = _.current;
7272
+ if (!N && It.test(A)) {
7273
+ C.current = A;
7274
7274
  const J = h.current;
7275
7275
  setTimeout(() => {
7276
7276
  var Y;
@@ -7279,7 +7279,7 @@ const ld = (n) => {
7279
7279
  window.HTMLInputElement.prototype,
7280
7280
  "value"
7281
7281
  )) == null ? void 0 : Y.set;
7282
- B == null || B.call(J, F), J.dispatchEvent(new Event("input", { bubbles: !0 }));
7282
+ B == null || B.call(J, A), J.dispatchEvent(new Event("input", { bubbles: !0 }));
7283
7283
  }, 0);
7284
7284
  return;
7285
7285
  }
@@ -7288,7 +7288,7 @@ const ld = (n) => {
7288
7288
  (x, E) => {
7289
7289
  var B;
7290
7290
  T.current = !0;
7291
- const N = h.current, F = (N == null ? void 0 : N.value) ?? "", X = It.test(C.current) ? C.current : It.test(F) ? F : "", J = dd(X, x, E);
7291
+ const N = h.current, A = (N == null ? void 0 : N.value) ?? "", X = It.test(C.current) ? C.current : It.test(A) ? A : "", J = dd(X, x, E);
7292
7292
  if (C.current = J, _.current = J, s == null || s(), N) {
7293
7293
  const Y = (B = Object.getOwnPropertyDescriptor(
7294
7294
  window.HTMLInputElement.prototype,
@@ -7310,8 +7310,8 @@ const ld = (n) => {
7310
7310
  const E = h.current;
7311
7311
  if (!E || document.activeElement !== E) return;
7312
7312
  x.cancelable && x.preventDefault(), x.stopPropagation();
7313
- const N = E.selectionStart ?? 0, F = m ?? Un(N);
7314
- Q(F, x.deltaY < 0 ? 1 : -1);
7313
+ const N = E.selectionStart ?? 0, A = m ?? Un(N);
7314
+ Q(A, x.deltaY < 0 ? 1 : -1);
7315
7315
  },
7316
7316
  [m, Q]
7317
7317
  ), H = Oe(
@@ -7324,15 +7324,15 @@ const ld = (n) => {
7324
7324
  x.preventDefault();
7325
7325
  const E = h.current;
7326
7326
  if (!E) return;
7327
- const N = E.selectionStart ?? 0, F = m ?? Un(N);
7328
- Q(F, x.key === "ArrowUp" ? 1 : -1);
7327
+ const N = E.selectionStart ?? 0, A = m ?? Un(N);
7328
+ Q(A, x.key === "ArrowUp" ? 1 : -1);
7329
7329
  return;
7330
7330
  }
7331
7331
  if (x.key === "Enter") {
7332
- const E = h.current, N = (E == null ? void 0 : E.selectionStart) ?? 0, F = m ?? Un(N);
7333
- if (F !== "year") {
7332
+ const E = h.current, N = (E == null ? void 0 : E.selectionStart) ?? 0, A = m ?? Un(N);
7333
+ if (A !== "year") {
7334
7334
  x.preventDefault();
7335
- const X = F === "day" ? "month" : "year";
7335
+ const X = A === "day" ? "month" : "year";
7336
7336
  v(X), S(X);
7337
7337
  return;
7338
7338
  }
@@ -7357,7 +7357,7 @@ const ld = (n) => {
7357
7357
  onChange: M,
7358
7358
  onKeyDown: H,
7359
7359
  onMouseUp: I,
7360
- onFocus: A,
7360
+ onFocus: F,
7361
7361
  onBlur: W
7362
7362
  }
7363
7363
  );
@@ -7414,14 +7414,14 @@ const fd = 100, hd = (n, r, t, e) => {
7414
7414
  k(), m(!1), w(null), y(null), T(!1), C(s);
7415
7415
  }, [s]), S = Oe((M) => {
7416
7416
  k();
7417
- const { x: I, y: A, width: W, height: Q } = M.getBoundingClientRect();
7418
- w({ x: I, y: A, width: W, height: Q, scrollY: window.scrollY }), m(!0);
7417
+ const { x: I, y: F, width: W, height: Q } = M.getBoundingClientRect();
7418
+ w({ x: I, y: F, width: W, height: Q, scrollY: window.scrollY }), m(!0);
7419
7419
  }, []);
7420
7420
  return Ft(() => {
7421
7421
  if (!t || !h || !v) return;
7422
7422
  const M = d.current;
7423
7423
  if (!M) return;
7424
- const { width: I, height: A } = M.getBoundingClientRect(), W = vd(s, v, I, A);
7424
+ const { width: I, height: F } = M.getBoundingClientRect(), W = vd(s, v, I, F);
7425
7425
  C(W.placement), y({ x: W.x, y: W.y });
7426
7426
  }, [t, h, v, s, a]), ae(() => {
7427
7427
  if (b)
@@ -8254,16 +8254,16 @@ const qr = [
8254
8254
  wheelEdit: S = !1,
8255
8255
  showHint: M = !1,
8256
8256
  hintText: I = "Используйте колесо мыши или стрелки ↑↓ для изменения значения",
8257
- tooltipMaxWidth: A = 300
8257
+ tooltipMaxWidth: F = 300
8258
8258
  }) => {
8259
8259
  const W = rn(d, c), Q = Dt({ error: w, validationOn: v, validationOnWithoutText: b, validationText: m }), G = et(p, "u-calendar"), [H, x] = j(!1), E = 160, {
8260
8260
  shouldRender: N,
8261
- status: F,
8261
+ status: A,
8262
8262
  isAnimated: X
8263
8263
  } = yn({
8264
8264
  isOpen: !!(i || H),
8265
8265
  duration: E
8266
- }), J = X && F === "exiting", [B, Y] = j(null), [ne, pe] = j(!1), [ue, $] = j(!1);
8266
+ }), J = X && A === "exiting", [B, Y] = j(null), [ne, pe] = j(!1), [ue, $] = j(!1);
8267
8267
  ae(() => {
8268
8268
  const V = () => {
8269
8269
  $(window.innerWidth <= 900);
@@ -8447,7 +8447,7 @@ const qr = [
8447
8447
  isActive: ne && !g && !ue,
8448
8448
  showWhenActive: !0,
8449
8449
  tooltipStyle: {
8450
- maxWidth: se(A),
8450
+ maxWidth: se(F),
8451
8451
  width: "auto",
8452
8452
  whiteSpace: "normal",
8453
8453
  overflowWrap: "anywhere"
@@ -8550,13 +8550,13 @@ const qr = [
8550
8550
  maxLength: _,
8551
8551
  disabled: T
8552
8552
  }) => {
8553
- const k = Dt({ error: w, validationOn: v, validationText: m }), g = rn(h, p), S = et(t, "u-input-expand"), [M, I] = j(null), A = re(null), W = (B) => typeof B == "number" ? `${B}px` : String(B), Q = (B) => {
8553
+ const k = Dt({ error: w, validationOn: v, validationText: m }), g = rn(h, p), S = et(t, "u-input-expand"), [M, I] = j(null), F = re(null), W = (B) => typeof B == "number" ? `${B}px` : String(B), Q = (B) => {
8554
8554
  if (B == null || B === "") return;
8555
8555
  if (typeof B == "number") return `calc(${B} * var(--u-unit, 1px))`;
8556
8556
  const ne = String(B).trim().match(/^(-?\d+(?:\.\d+)?)px$/);
8557
8557
  return ne ? `calc(${ne[1]} * var(--u-unit, 1px))` : B;
8558
8558
  }, G = Oe(() => {
8559
- const B = A.current;
8559
+ const B = F.current;
8560
8560
  if (B) {
8561
8561
  if (D === void 0 && C === void 0) {
8562
8562
  B.style.height = "5px", B.style.height = B.scrollHeight + 2 + "px";
@@ -8566,16 +8566,16 @@ const qr = [
8566
8566
  }
8567
8567
  }, [C, D]);
8568
8568
  ae(() => {
8569
- const B = A.current;
8569
+ const B = F.current;
8570
8570
  B && B.setSelectionRange(M, M);
8571
- }, [A, M, y]);
8571
+ }, [F, M, y]);
8572
8572
  const H = (B) => {
8573
8573
  G(), I(B.target.selectionStart), e && e(B);
8574
8574
  };
8575
8575
  ae(() => {
8576
8576
  G();
8577
8577
  }, [G, y]);
8578
- const x = y || "", E = x.length, N = typeof _ == "number" && Number.isFinite(_) && _ >= 0, F = N && E >= _, X = Q(D), J = Q(C);
8578
+ const x = y || "", E = x.length, N = typeof _ == "number" && Number.isFinite(_) && _ >= 0, A = N && E >= _, X = Q(D), J = Q(C);
8579
8579
  return /* @__PURE__ */ O("div", { className: `${d}`, style: { position: "relative" }, children: [
8580
8580
  /* @__PURE__ */ O(
8581
8581
  "div",
@@ -8629,13 +8629,13 @@ const qr = [
8629
8629
  ),
8630
8630
  maxLength: N ? _ : void 0,
8631
8631
  placeholder: r,
8632
- ref: A,
8632
+ ref: F,
8633
8633
  value: x,
8634
8634
  onChange: H,
8635
8635
  id: `input_expand${S}`
8636
8636
  }
8637
8637
  ),
8638
- N && /* @__PURE__ */ O("div", { className: "u-input-expand-textarea-counter", style: F ? { color: "#ef302b" } : void 0, children: [
8638
+ N && /* @__PURE__ */ O("div", { className: "u-input-expand-textarea-counter", style: A ? { color: "#ef302b" } : void 0, children: [
8639
8639
  E,
8640
8640
  "/",
8641
8641
  _
@@ -8675,7 +8675,7 @@ const qr = [
8675
8675
  }) => {
8676
8676
  const S = et(e, "u-input-file"), M = re(null), I = (Y) => {
8677
8677
  Y.preventDefault(), Y.stopPropagation();
8678
- }, A = (Y) => {
8678
+ }, F = (Y) => {
8679
8679
  Y.preventDefault(), Y.stopPropagation();
8680
8680
  }, W = (Y) => {
8681
8681
  Y.preventDefault(), Y.stopPropagation();
@@ -8683,7 +8683,7 @@ const qr = [
8683
8683
  var pe;
8684
8684
  Y.preventDefault(), Y.stopPropagation();
8685
8685
  const ne = (pe = Y.dataTransfer) == null ? void 0 : pe.files;
8686
- (ne == null ? void 0 : ne.length) > 0 && F(Y, !0);
8686
+ (ne == null ? void 0 : ne.length) > 0 && A(Y, !0);
8687
8687
  }, G = (Y) => typeof Y == "number" ? `${Y}px` : String(Y), H = (Y) => {
8688
8688
  const ne = Y == null ? void 0 : Y.toLocaleString("ru", { day: "numeric", month: "numeric", year: "numeric" });
8689
8689
  if (!ne) return "";
@@ -8728,7 +8728,7 @@ const qr = [
8728
8728
  default:
8729
8729
  return "other";
8730
8730
  }
8731
- }, N = () => _.length === 0 ? "Неверный формат файла" : _.length === 1 ? `Файл должен быть в формате ${_[0]}` : `Разрешенные форматы файлов: ${_.join(", ")}`, F = (Y, ne) => {
8731
+ }, N = () => _.length === 0 ? "Неверный формат файла" : _.length === 1 ? `Файл должен быть в формате ${_[0]}` : `Разрешенные форматы файлов: ${_.join(", ")}`, A = (Y, ne) => {
8732
8732
  D ? X(Y, ne) : J(Y, ne);
8733
8733
  }, X = (Y, ne) => {
8734
8734
  const ue = (ne ? Array.from(Y.dataTransfer.files) : Array.from(Y.target.files)).filter(($) => _.length > 0 && !_.includes($.name.split(".").pop().toLowerCase()) ? (g == null || g(N(), $), !1) : T && $.size > T ? (g == null || g("Файл слишком большой", $), !1) : k && !k.test($.name) ? (g == null || g("Имя файла не соответствует шаблону", $), !1) : !b.some((ce) => ce.name === $.name));
@@ -8786,11 +8786,11 @@ const qr = [
8786
8786
  id: S,
8787
8787
  className: "u-file",
8788
8788
  onDragEnter: I,
8789
- onDragLeave: A,
8789
+ onDragLeave: F,
8790
8790
  onDragOver: W,
8791
8791
  onDrop: Q,
8792
8792
  children: [
8793
- /* @__PURE__ */ f("input", { ref: M, type: "file", id: S, name: a, value: t, defaultValue: r, disabled: i, onChange: (Y) => F(Y), multiple: D, accept: _.length > 0 ? _.map((Y) => "." + Y).join(",") : void 0 }),
8793
+ /* @__PURE__ */ f("input", { ref: M, type: "file", id: S, name: a, value: t, defaultValue: r, disabled: i, onChange: (Y) => A(Y), multiple: D, accept: _.length > 0 ? _.map((Y) => "." + Y).join(",") : void 0 }),
8794
8794
  /* @__PURE__ */ f("i", { className: "u-file-icon" }),
8795
8795
  !w && /* @__PURE__ */ O(Re, { children: [
8796
8796
  /* @__PURE__ */ f("p", { className: "u-file-title", children: m }),
@@ -8867,7 +8867,7 @@ const qr = [
8867
8867
  validationOnWithoutText: k,
8868
8868
  absoluteValidationText: g
8869
8869
  }) => {
8870
- const S = Dt({ error: T, validationOn: _, validationOnWithoutText: k, validationText: C }), M = et(a, "u-input-number"), I = re(null), A = re(null), [W, Q] = j(!1), [G, H] = j(!1), [x, E] = j(String(e ?? t ?? "")), N = re(String(e ?? t ?? "")), F = (P) => typeof P == "number" ? `${P}px` : String(P), X = (P) => typeof P == "number" ? `calc(${P} * var(--u-unit, 1px))` : String(P);
8870
+ const S = Dt({ error: T, validationOn: _, validationOnWithoutText: k, validationText: C }), M = et(a, "u-input-number"), I = re(null), F = re(null), [W, Q] = j(!1), [G, H] = j(!1), [x, E] = j(String(e ?? t ?? "")), N = re(String(e ?? t ?? "")), A = (P) => typeof P == "number" ? `${P}px` : String(P), X = (P) => typeof P == "number" ? `calc(${P} * var(--u-unit, 1px))` : String(P);
8871
8871
  ae(() => {
8872
8872
  const P = () => {
8873
8873
  H(window.innerWidth <= 900);
@@ -8913,7 +8913,7 @@ const qr = [
8913
8913
  }, [l, B, b, w]);
8914
8914
  ae(() => {
8915
8915
  if (l) return;
8916
- const P = A.current;
8916
+ const P = F.current;
8917
8917
  if (!P) return;
8918
8918
  const z = (se) => ne(se);
8919
8919
  return P.addEventListener("wheel", z, { passive: !1 }), () => {
@@ -8940,7 +8940,7 @@ const qr = [
8940
8940
  if (Q(!1), !y) return;
8941
8941
  const P = String(((xe = I.current) == null ? void 0 : xe.value) ?? x ?? "").trim(), z = P !== "" ? P : N.current || String(e ?? ""), se = J(z);
8942
8942
  E(se), se.trim() !== "" && (N.current = se), se !== String(e ?? "") && B(se);
8943
- }, ce = /* @__PURE__ */ O("div", { ref: A, className: `u-number ${l ? "u-number-disabled" : ""}`, children: [
8943
+ }, ce = /* @__PURE__ */ O("div", { ref: F, className: `u-number ${l ? "u-number-disabled" : ""}`, children: [
8944
8944
  /* @__PURE__ */ f(
8945
8945
  "button",
8946
8946
  {
@@ -8993,8 +8993,8 @@ const qr = [
8993
8993
  {
8994
8994
  display: "flex",
8995
8995
  flexDirection: u ? "row" : "column",
8996
- rowGap: u ? null : F(c),
8997
- columnGap: u ? F(d) : null
8996
+ rowGap: u ? null : A(c),
8997
+ columnGap: u ? A(d) : null
8998
8998
  },
8999
8999
  p
9000
9000
  ),
@@ -9060,13 +9060,13 @@ const qr = [
9060
9060
  validationOnWithoutText: _,
9061
9061
  absoluteValidationText: T
9062
9062
  }) => {
9063
- const k = Dt({ error: C, validationOn: D, validationOnWithoutText: _, validationText: y }), g = rn(b, w), S = et(a, "u-input-text"), [M, I] = j(null), A = re(null), W = (G) => {
9063
+ const k = Dt({ error: C, validationOn: D, validationOnWithoutText: _, validationText: y }), g = rn(b, w), S = et(a, "u-input-text"), [M, I] = j(null), F = re(null), W = (G) => {
9064
9064
  I(G.target.selectionStart), i && i(G);
9065
9065
  };
9066
9066
  ae(() => {
9067
- const G = A.current;
9067
+ const G = F.current;
9068
9068
  G && G.setSelectionRange(M, M);
9069
- }, [A, M, e]);
9069
+ }, [F, M, e]);
9070
9070
  const Q = (G) => typeof G == "number" ? `${G}px` : String(G);
9071
9071
  return /* @__PURE__ */ O("div", { className: `u-react-input-container ${v}`, style: { position: "relative" }, children: [
9072
9072
  /* @__PURE__ */ O(
@@ -9101,7 +9101,7 @@ const qr = [
9101
9101
  {
9102
9102
  className: `u-react-input u-input ${k.hasError ? "u-input-required" : ""}`,
9103
9103
  id: S,
9104
- ref: A,
9104
+ ref: F,
9105
9105
  name: o,
9106
9106
  style: Object.assign(
9107
9107
  g && {
@@ -9192,8 +9192,8 @@ const qr = [
9192
9192
  ]);
9193
9193
  if (n.key === "Enter") {
9194
9194
  n.preventDefault(), l(), o === "minute" ? (p(null), h(0), requestAnimationFrame(() => {
9195
- var A;
9196
- (A = e.current) == null || A.blur();
9195
+ var F;
9196
+ (F = e.current) == null || F.blur();
9197
9197
  })) : (p("minute"), h(0), requestAnimationFrame(() => c("minute")));
9198
9198
  return;
9199
9199
  }
@@ -9209,9 +9209,9 @@ const qr = [
9209
9209
  n.preventDefault(), l();
9210
9210
  const b = /^\d{2}:\d{2}$/.test(m || ""), y = b ? m : "00:00", [D, C] = y.split(":"), _ = n.currentTarget.selectionStart ?? 0, T = b ? o ?? (_ <= 2 ? "hour" : "minute") : "hour", k = b ? Math.min(i + 1, 2) : 1, g = k - 1;
9211
9211
  if (T === "hour") {
9212
- const A = D.split("");
9213
- A[g] = n.key;
9214
- const W = A.join("");
9212
+ const F = D.split("");
9213
+ F[g] = n.key;
9214
+ const W = F.join("");
9215
9215
  if (Number(W) > 23) return;
9216
9216
  d(`${W}:${C}`), k === 2 ? (p("minute"), h(0), requestAnimationFrame(() => c("minute"))) : (p("hour"), h(k), requestAnimationFrame(() => c("hour")));
9217
9217
  return;
@@ -9220,8 +9220,8 @@ const qr = [
9220
9220
  S[g] = n.key;
9221
9221
  const M = S.join("");
9222
9222
  Number(M) > 59 || (d(`${D}:${M}`), k === 2 ? (p(null), h(0), requestAnimationFrame(() => {
9223
- var A;
9224
- (A = e.current) == null || A.blur();
9223
+ var F;
9224
+ (F = e.current) == null || F.blur();
9225
9225
  })) : (p("minute"), h(k), requestAnimationFrame(() => c("minute"))));
9226
9226
  }, ap = (n) => {
9227
9227
  const {
@@ -9293,7 +9293,7 @@ const qr = [
9293
9293
  validationOnWithoutText: g,
9294
9294
  absoluteValidationText: S
9295
9295
  }) => {
9296
- const M = Dt({ error: k, validationOn: T, validationOnWithoutText: g, validationText: _ }), I = et(a, "u-input-time"), A = re(null), W = re(null), Q = re(!1), G = re(null), H = re(null), [x, E] = j(!1), { shouldRender: N, status: F, isAnimated: X } = yn({
9296
+ const M = Dt({ error: k, validationOn: T, validationOnWithoutText: g, validationText: _ }), I = et(a, "u-input-time"), F = re(null), W = re(null), Q = re(!1), G = re(null), H = re(null), [x, E] = j(!1), { shouldRender: N, status: A, isAnimated: X } = yn({
9297
9297
  isOpen: x && !l,
9298
9298
  duration: xn
9299
9299
  }), [J, B] = j(null), [Y, ne] = j(0), [pe, ue] = j(0), [$, ce] = j(0), [P, z] = j(!1), [se, xe] = j(() => String(e ?? t ?? "")), Ne = re(e), [V, be] = j(!1);
@@ -9314,9 +9314,9 @@ const qr = [
9314
9314
  return K(), window.addEventListener("resize", K), () => window.removeEventListener("resize", K);
9315
9315
  }, []), ae(() => {
9316
9316
  const K = (ge) => {
9317
- if (!A.current) return;
9317
+ if (!F.current) return;
9318
9318
  const He = ge.target;
9319
- He && !A.current.contains(He) && E(!1);
9319
+ He && !F.current.contains(He) && E(!1);
9320
9320
  };
9321
9321
  return document.addEventListener("pointerdown", K), () => document.removeEventListener("pointerdown", K);
9322
9322
  }, []), ae(() => {
@@ -9420,7 +9420,7 @@ const qr = [
9420
9420
  "div",
9421
9421
  {
9422
9422
  className: `u-react-input-time-field ${x ? "u-react-input-time-field--open" : ""}`,
9423
- ref: A,
9423
+ ref: F,
9424
9424
  children: [
9425
9425
  /* @__PURE__ */ f(
9426
9426
  "input",
@@ -9483,7 +9483,7 @@ const qr = [
9483
9483
  minutesColumnRef: H,
9484
9484
  onSelectHour: Qt,
9485
9485
  onSelectMinute: le,
9486
- style: Bt(F, X)
9486
+ style: Bt(A, X)
9487
9487
  }
9488
9488
  )
9489
9489
  ]
@@ -9871,7 +9871,7 @@ const qr = [
9871
9871
  getPortalPosition: u
9872
9872
  }) => {
9873
9873
  const [c, d] = j(!1), [p, h] = j(null), [m, v] = j(null), [w, b] = j(!1), y = a === "auto" ? w : a === !0, D = re(null), C = re(null), _ = re(null), T = et(s, l), k = `${T}-listbox`, g = (B) => `${k}-option-${B}`, S = () => {
9874
- d(!1), v(null);
9874
+ d(!1);
9875
9875
  }, M = (B) => {
9876
9876
  if (e) return;
9877
9877
  const Y = B ?? D.current, ne = up(a, Y);
@@ -9890,10 +9890,10 @@ const qr = [
9890
9890
  onDismiss: S,
9891
9891
  enabled: c
9892
9892
  });
9893
- const { rect: A } = fi({
9893
+ const { rect: F } = fi({
9894
9894
  anchor: m,
9895
9895
  enabled: c && y
9896
- }), W = A ? u(A) : null, Q = (A == null ? void 0 : A.width) ?? null, { activeIndex: G, handleKeyDown: H } = hi({
9896
+ }), W = F ? u(F) : null, Q = (F == null ? void 0 : F.width) ?? null, { activeIndex: G, handleKeyDown: H } = hi({
9897
9897
  isOpen: c,
9898
9898
  disabled: e,
9899
9899
  optionsLength: n,
@@ -9904,7 +9904,7 @@ const qr = [
9904
9904
  }), { shouldRender: x, status: E, isAnimated: N } = yn({
9905
9905
  isOpen: c && y,
9906
9906
  duration: xn
9907
- }), { shouldRender: F, status: X } = yn({
9907
+ }), { shouldRender: A, status: X } = yn({
9908
9908
  isOpen: c && !y && !o,
9909
9909
  duration: xn
9910
9910
  }), J = G >= 0 ? G : t;
@@ -9914,7 +9914,7 @@ const qr = [
9914
9914
  portalOn: y,
9915
9915
  portalRef: C,
9916
9916
  localRef: _,
9917
- mounted: y ? x : F
9917
+ mounted: y ? x : A
9918
9918
  }), {
9919
9919
  isOpen: c,
9920
9920
  usePortal: y,
@@ -9937,7 +9937,7 @@ const qr = [
9937
9937
  handleKeyDown: H,
9938
9938
  shouldRenderPortal: x,
9939
9939
  portalStatus: E,
9940
- shouldRenderLocal: F,
9940
+ shouldRenderLocal: A,
9941
9941
  localStatus: X,
9942
9942
  isAnimated: N
9943
9943
  };
@@ -9976,12 +9976,12 @@ const qr = [
9976
9976
  onInputValueChange: D,
9977
9977
  id: C
9978
9978
  }) => {
9979
- const _ = rn(u, l), T = Dt({ error: p, validationOn: d, validationText: c }), [k, g] = j(""), S = re(null), M = pi(k, 300), I = Xe(() => t.filter((oe) => (oe.label ?? "").toLowerCase().includes((M || "").toLowerCase())), [M, t]), A = I.findIndex(
9979
+ const _ = rn(u, l), T = Dt({ error: p, validationOn: d, validationText: c }), [k, g] = j(""), S = re(null), M = pi(k, 300), I = Xe(() => t.filter((oe) => (oe.label ?? "").toLowerCase().includes((M || "").toLowerCase())), [M, t]), F = I.findIndex(
9980
9980
  (oe) => o.some((de) => St(de == null ? void 0 : de.value, oe == null ? void 0 : oe.value))
9981
9981
  ), W = wa({
9982
9982
  optionsLength: I.length,
9983
- initialIndex: Math.max(0, A),
9984
- selectedIndex: A,
9983
+ initialIndex: Math.max(0, F),
9984
+ selectedIndex: F,
9985
9985
  portalOn: m,
9986
9986
  loading: b,
9987
9987
  id: C,
@@ -9998,7 +9998,7 @@ const qr = [
9998
9998
  optionsListRef: x,
9999
9999
  listboxId: E,
10000
10000
  activeDescendantId: N,
10001
- activeIndex: F,
10001
+ activeIndex: A,
10002
10002
  hoveredIndex: X,
10003
10003
  setHoveredIndex: J,
10004
10004
  handleKeyDown: B,
@@ -10019,7 +10019,7 @@ const qr = [
10019
10019
  }, V = typeof y == "string" && typeof D == "function", be = V ? y : k, me = (oe) => {
10020
10020
  V ? D && D(oe.target.value) : g(oe.target.value), w && w(oe.target.value);
10021
10021
  }, De = Xe(() => ya(I), [I]), we = (oe, de) => {
10022
- const q = o.some((Z) => St(Z.value, oe.value)), L = X === de || F === de;
10022
+ const q = o.some((Z) => St(Z.value, oe.value)), L = X === de || A === de;
10023
10023
  return /* @__PURE__ */ f(
10024
10024
  "div",
10025
10025
  {
@@ -10551,7 +10551,7 @@ const qr = [
10551
10551
  emptyOptionsText: M = "Ничего не найдено",
10552
10552
  id: I
10553
10553
  }) => {
10554
- const A = rn(v, m), W = Dt({ error: y, validationOn: b, validationText: w }), [Q, G] = j(""), H = re(!1), x = typeof g == "string" && typeof S == "function", E = Q && !x ? t.filter((le) => (le.label ?? "").toLowerCase().includes((x ? g : Q).toLowerCase())) : t, N = E.findIndex((le) => St(le == null ? void 0 : le.value, c == null ? void 0 : c.value)), F = wa({
10554
+ const F = rn(v, m), W = Dt({ error: y, validationOn: b, validationText: w }), [Q, G] = j(""), H = re(!1), x = typeof g == "string" && typeof S == "function", E = Q && !x ? t.filter((le) => (le.label ?? "").toLowerCase().includes((x ? g : Q).toLowerCase())) : t, N = E.findIndex((le) => St(le == null ? void 0 : le.value, c == null ? void 0 : c.value)), A = wa({
10555
10555
  optionsLength: E.length,
10556
10556
  initialIndex: Math.max(0, N),
10557
10557
  selectedIndex: N,
@@ -10586,7 +10586,7 @@ const qr = [
10586
10586
  portalWidth: be,
10587
10587
  anchor: me,
10588
10588
  usePortal: De
10589
- } = F, we = F.portalPosition, oe = F.close, de = (le) => typeof le == "number" ? `${le}px` : String(le), q = re(() => {
10589
+ } = A, we = A.portalPosition, oe = A.close, de = (le) => typeof le == "number" ? `${le}px` : String(le), q = re(() => {
10590
10590
  }), { flippedTop: L, flippedUp: Z } = fp({
10591
10591
  isOpen: X,
10592
10592
  portalOn: De,
@@ -10602,7 +10602,7 @@ const qr = [
10602
10602
  c != null && c.label && Object.keys(c).length && !X && G(c.label);
10603
10603
  }, [X, c]);
10604
10604
  const ie = x ? g : Q, Te = (le) => {
10605
- C || (X || F.open(le.currentTarget), x ? S && S(le.target.value) : G(le.target.value), T && T(le.target.value));
10605
+ C || (X || A.open(le.currentTarget), x ? S && S(le.target.value) : G(le.target.value), T && T(le.target.value));
10606
10606
  }, $e = !!(c && typeof c == "object" && c.value !== void 0 && String(c.value).length > 0);
10607
10607
  ae(() => {
10608
10608
  const le = H.current;
@@ -10624,7 +10624,7 @@ const qr = [
10624
10624
  listboxId: ne,
10625
10625
  selectedValue: c == null ? void 0 : c.value,
10626
10626
  isActive: $ === ze || ue === ze,
10627
- tableView: A,
10627
+ tableView: F,
10628
10628
  onSelect: kt,
10629
10629
  onHover: ce
10630
10630
  },
@@ -10640,10 +10640,10 @@ const qr = [
10640
10640
  "aria-autocomplete": "list",
10641
10641
  "aria-activedescendant": pe,
10642
10642
  onClick: (le) => {
10643
- ie.length > 0 && (x ? S && S("") : G("")), !C && X && le.currentTarget.blur(), F.toggle(le.currentTarget);
10643
+ ie.length > 0 && (x ? S && S("") : G("")), !C && X && le.currentTarget.blur(), A.toggle(le.currentTarget);
10644
10644
  },
10645
10645
  style: Object.assign(
10646
- A ? {
10646
+ F ? {
10647
10647
  height: "30px",
10648
10648
  fontSize: "12px",
10649
10649
  lineHeight: "12px",
@@ -10717,7 +10717,7 @@ const qr = [
10717
10717
  style: {
10718
10718
  position: "absolute",
10719
10719
  zIndex: 2,
10720
- right: A ? 8 : 14,
10720
+ right: F ? 8 : 14,
10721
10721
  top: "50%",
10722
10722
  transform: "translateY(-50%)",
10723
10723
  marginLeft: 0,
@@ -10831,10 +10831,10 @@ const qr = [
10831
10831
  onSelectByIndex: (V) => {
10832
10832
  var me;
10833
10833
  const be = t[V];
10834
- be && (p(be), (me = A.current) == null || me.close());
10834
+ be && (p(be), (me = F.current) == null || me.close());
10835
10835
  }
10836
- }), A = re(I);
10837
- A.current = I;
10836
+ }), F = re(I);
10837
+ F.current = I;
10838
10838
  const {
10839
10839
  isOpen: W,
10840
10840
  blockRef: Q,
@@ -10843,7 +10843,7 @@ const qr = [
10843
10843
  listboxId: x,
10844
10844
  activeDescendantId: E,
10845
10845
  activeIndex: N,
10846
- hoveredIndex: F,
10846
+ hoveredIndex: A,
10847
10847
  setHoveredIndex: X,
10848
10848
  handleKeyDown: J,
10849
10849
  shouldRenderPortal: B,
@@ -10854,7 +10854,7 @@ const qr = [
10854
10854
  portalWidth: $,
10855
10855
  usePortal: ce
10856
10856
  } = I, P = I.portalPosition, z = I.close, se = (V) => typeof V == "number" ? `${V}px` : String(V), xe = Xe(() => ya(t), [t]), Ne = (V, be, me) => {
10857
- const De = St(c == null ? void 0 : c.value, V == null ? void 0 : V.value), we = F === be || N === be;
10857
+ const De = St(c == null ? void 0 : c.value, V == null ? void 0 : V.value), we = A === be || N === be;
10858
10858
  return /* @__PURE__ */ f(
10859
10859
  "div",
10860
10860
  {
@@ -11200,13 +11200,13 @@ function wp({
11200
11200
  style: d,
11201
11201
  marginTop: p
11202
11202
  }) {
11203
- const h = s ?? [10, 20, ...n > 20 ? [50] : []], m = h.length > 0 ? h : [t], v = m[0] ?? t, w = m.filter((I, A) => {
11204
- if (A === 0) return !0;
11205
- const W = m[A - 1];
11203
+ const h = s ?? [10, 20, ...n > 20 ? [50] : []], m = h.length > 0 ? h : [t], v = m[0] ?? t, w = m.filter((I, F) => {
11204
+ if (F === 0) return !0;
11205
+ const W = m[F - 1];
11206
11206
  return n > W;
11207
11207
  }), b = n > v && w.length > 1, y = Math.ceil(n / t), D = y > 1;
11208
11208
  if ((o ?? Math.max(0, Math.min(t, n - (r - 1) * t))) === 0 || !D && !b) return null;
11209
- const _ = (r - 1) * t + 1, T = Math.min(r * t, n), k = () => vp(y, r, i).map((I, A) => I === "dots" ? /* @__PURE__ */ f(gp, {}, `dots-${A}`) : /* @__PURE__ */ f(
11209
+ const _ = (r - 1) * t + 1, T = Math.min(r * t, n), k = () => vp(y, r, i).map((I, F) => I === "dots" ? /* @__PURE__ */ f(gp, {}, `dots-${F}`) : /* @__PURE__ */ f(
11210
11210
  "button",
11211
11211
  {
11212
11212
  type: "button",
@@ -11239,7 +11239,7 @@ function wp({
11239
11239
  onClick: () => a(I),
11240
11240
  role: "button",
11241
11241
  tabIndex: 0,
11242
- onKeyDown: (A) => A.key === "Enter" && a(I),
11242
+ onKeyDown: (F) => F.key === "Enter" && a(I),
11243
11243
  children: I
11244
11244
  },
11245
11245
  I
@@ -11531,7 +11531,7 @@ const yp = (n, r, t, e) => {
11531
11531
  mobileCardDivider: k,
11532
11532
  mobileCardFlat: g
11533
11533
  }) => {
11534
- const S = re(null), [M, I] = j({ atStart: !0, atEnd: !0 }), A = () => {
11534
+ const S = re(null), [M, I] = j({ atStart: !0, atEnd: !0 }), F = () => {
11535
11535
  const $ = S.current;
11536
11536
  if (!$) return;
11537
11537
  const ce = $.scrollWidth > $.clientWidth + 1;
@@ -11544,8 +11544,8 @@ const yp = (n, r, t, e) => {
11544
11544
  if (!a || v !== "segments") return;
11545
11545
  const $ = S.current;
11546
11546
  if (!$ || typeof ResizeObserver > "u") return;
11547
- A();
11548
- const ce = new ResizeObserver(A);
11547
+ F();
11548
+ const ce = new ResizeObserver(F);
11549
11549
  return ce.observe($), () => ce.disconnect();
11550
11550
  }, [a, v, e]);
11551
11551
  const W = re(null), [Q, G] = j(!1);
@@ -11558,9 +11558,9 @@ const yp = (n, r, t, e) => {
11558
11558
  }, [Q]);
11559
11559
  const H = ($, ce, P) => $.render ? $.render(ce, P) : ce[$.field], x = n.find(($) => $.mobilePrimary) ?? n[0], E = n.filter(
11560
11560
  ($) => $ !== x && $.mobileHidden !== !0
11561
- ), N = E.find(($) => $.mobileSubtitle), F = E.filter(($) => $ !== N), X = F.filter(($) => $.mobileInline), J = F.filter(
11561
+ ), N = E.find(($) => $.mobileSubtitle), A = E.filter(($) => $ !== N), X = A.filter(($) => $.mobileInline), J = A.filter(
11562
11562
  ($) => $.mobileSecondary && !$.mobileInline
11563
- ), B = F.filter(
11563
+ ), B = A.filter(
11564
11564
  ($) => !$.mobileInline && !$.mobileSecondary
11565
11565
  ), Y = C != null ? B.slice(0, Math.max(0, C)) : B, ne = [
11566
11566
  ...J,
@@ -11616,7 +11616,7 @@ const yp = (n, r, t, e) => {
11616
11616
  "div",
11617
11617
  {
11618
11618
  ref: S,
11619
- onScroll: A,
11619
+ onScroll: F,
11620
11620
  className: `u-table-mobile-sortseg${M.atStart ? "" : " u-table-mobile-sortseg--clip-start"}${M.atEnd ? "" : " u-table-mobile-sortseg--clip-end"}`,
11621
11621
  role: "group",
11622
11622
  "aria-label": m,
@@ -12085,21 +12085,21 @@ const Pp = ({
12085
12085
  (x) => {
12086
12086
  let E = 0, N = k.length - 1;
12087
12087
  for (; E < N; ) {
12088
- const F = Math.floor((E + N) / 2);
12089
- k[F] <= x ? E = F + 1 : N = F;
12088
+ const A = Math.floor((E + N) / 2);
12089
+ k[A] <= x ? E = A + 1 : N = A;
12090
12090
  }
12091
12091
  return Math.max(0, Math.min(n.length - 1, E - 1));
12092
12092
  },
12093
12093
  [k, n.length]
12094
- ), I = typeof s == "number" && typeof l == "number" && l > 0, A = I ? n.slice((s - 1) * l, s * l) : n, W = r && !I && n.length > t, Q = W ? k[c] : 0, G = W ? Math.max(
12094
+ ), I = typeof s == "number" && typeof l == "number" && l > 0, F = I ? n.slice((s - 1) * l, s * l) : n, W = r && !I && n.length > t, Q = W ? k[c] : 0, G = W ? Math.max(
12095
12095
  0,
12096
12096
  g - k[Math.min(n.length, c + S)]
12097
12097
  ) : 0, H = Oe(
12098
12098
  (x) => {
12099
12099
  if (!W)
12100
12100
  return;
12101
- const E = x.target, N = Math.max(0, n.length - S), F = Math.min(N, M(E.scrollTop));
12102
- d(F);
12101
+ const E = x.target, N = Math.max(0, n.length - S), A = Math.min(N, M(E.scrollTop));
12102
+ d(A);
12103
12103
  },
12104
12104
  [n.length, M, W, S]
12105
12105
  );
@@ -12117,23 +12117,23 @@ const Pp = ({
12117
12117
  return;
12118
12118
  const x = W ? c : 0, E = W ? Math.min(n.length, c + S) : n.length;
12119
12119
  let N = !1;
12120
- for (let F = x; F < E; F++) {
12121
- const X = D.current[F];
12120
+ for (let A = x; A < E; A++) {
12121
+ const X = D.current[A];
12122
12122
  if (!X) continue;
12123
12123
  const J = X.getBoundingClientRect().height;
12124
- (!m.current[F] || Math.abs(m.current[F] - J) > 0.5) && (m.current[F] = J, N = !0);
12124
+ (!m.current[A] || Math.abs(m.current[A] - J) > 0.5) && (m.current[A] = J, N = !0);
12125
12125
  }
12126
- N && h((F) => F + 1);
12126
+ N && h((A) => A + 1);
12127
12127
  }, [r, W, c, S, n.length]), ae(() => {
12128
12128
  !a && n.length > 0 && setTimeout(() => {
12129
- const x = Array.from(document.querySelectorAll(`#${i} .table tbody tr[data-virtual-index]`)), E = new Array(n.length).fill(void 0), N = new Array(n.length).fill(void 0), F = new Array(n.length).fill(void 0), X = new Array(n.length).fill(void 0), J = new Array(n.length).fill(void 0);
12129
+ const x = Array.from(document.querySelectorAll(`#${i} .table tbody tr[data-virtual-index]`)), E = new Array(n.length).fill(void 0), N = new Array(n.length).fill(void 0), A = new Array(n.length).fill(void 0), X = new Array(n.length).fill(void 0), J = new Array(n.length).fill(void 0);
12130
12130
  x.forEach((B) => {
12131
12131
  const Y = Number(B.dataset.virtualIndex);
12132
12132
  if (isNaN(Y)) return;
12133
12133
  const ne = B.getBoundingClientRect().height;
12134
12134
  E[Y] = ne;
12135
12135
  const pe = Array.from(B.children);
12136
- N[Y] = pe.map((ue) => ue.getBoundingClientRect().height), F[Y] = pe.map((ue) => {
12136
+ N[Y] = pe.map((ue) => ue.getBoundingClientRect().height), A[Y] = pe.map((ue) => {
12137
12137
  const $ = ue.firstElementChild;
12138
12138
  return $ ? $.getBoundingClientRect().height : 0;
12139
12139
  }), X[Y] = pe.map((ue) => {
@@ -12147,7 +12147,7 @@ const Pp = ({
12147
12147
  background: $.background
12148
12148
  };
12149
12149
  });
12150
- }), m.current = m.current.map((B, Y) => E[Y] ?? B), v.current = v.current.map((B, Y) => N[Y] ?? B), w.current = w.current.map((B, Y) => F[Y] ?? B), b.current = b.current.map((B, Y) => X[Y] ?? B), y.current = y.current.map((B, Y) => J[Y] ?? B);
12150
+ }), m.current = m.current.map((B, Y) => E[Y] ?? B), v.current = v.current.map((B, Y) => N[Y] ?? B), w.current = w.current.map((B, Y) => A[Y] ?? B), b.current = b.current.map((B, Y) => X[Y] ?? B), y.current = y.current.map((B, Y) => J[Y] ?? B);
12151
12151
  }, 0);
12152
12152
  }, [a, n, i]), ae(() => {
12153
12153
  !o && n.length > 0 && setTimeout(() => {
@@ -12158,7 +12158,7 @@ const Pp = ({
12158
12158
  rootRef: u,
12159
12159
  start: c,
12160
12160
  visibleCount: S,
12161
- pagedData: A,
12161
+ pagedData: F,
12162
12162
  hasOverflow: W,
12163
12163
  topPadding: Q,
12164
12164
  bottomPadding: G,
@@ -12990,7 +12990,7 @@ const Fp = (n, r, t, e) => {
12990
12990
  isParentDataField: T,
12991
12991
  filterResetParam: k
12992
12992
  }) => {
12993
- const g = `${n}th${r}`, S = "auto", [M, I] = j(), [A, W] = j(), [Q, G] = j(), [H, x] = j(), [E, N] = j(0), [F, X] = j(""), [J, B] = j(), [Y, ne] = j(!1), [pe, ue] = j(), $ = re(null), ce = Ap(() => {
12993
+ const g = `${n}th${r}`, S = "auto", [M, I] = j(), [F, W] = j(), [Q, G] = j(), [H, x] = j(), [E, N] = j(0), [A, X] = j(""), [J, B] = j(), [Y, ne] = j(!1), [pe, ue] = j(), $ = re(null), ce = Ap(() => {
12994
12994
  var q;
12995
12995
  l === g && !(s.filterType === "date" && ((q = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : q.id) === "between" && Q && !H) && u(void 0);
12996
12996
  }), P = c && (s == null ? void 0 : s.field) in c && c[s.field] && c[s.field].length !== 0, z = Array.isArray(_) && _.some((q) => q.id === s.field && (q.begin != null || q.end != null)), se = P || z, xe = (q) => {
@@ -13036,7 +13036,7 @@ const Fp = (n, r, t, e) => {
13036
13036
  L in c ? c[L].every((Z) => q.includes(Z)) ? Object.keys(c).filter((Z) => Z !== String(L)).reduce(
13037
13037
  (Z, ie) => ({ ...Z, [ie]: c[ie] }),
13038
13038
  {}
13039
- ) : F.length > 0 ? {
13039
+ ) : A.length > 0 ? {
13040
13040
  ...c,
13041
13041
  [L]: q.every((Z) => c[L].includes(Z)) ? c[L].filter((Z) => !q.includes(Z)) : q.every((Z) => !c[L].includes(Z)) ? c[L].concat(q) : c[L].filter(
13042
13042
  (Z) => !q.some((ie) => ie === Z)
@@ -13044,8 +13044,8 @@ const Fp = (n, r, t, e) => {
13044
13044
  } : {
13045
13045
  ...c,
13046
13046
  [L]: c[L].filter((Z) => !q.some((ie) => ie === Z)).concat(q)
13047
- } : F.length > 0 && !Y ? { ...c, [L]: J } : { ...c, [L]: q }
13048
- ), F.length > 0 && ne(!0);
13047
+ } : A.length > 0 && !Y ? { ...c, [L]: J } : { ...c, [L]: q }
13048
+ ), A.length > 0 && ne(!0);
13049
13049
  };
13050
13050
  ae(() => {
13051
13051
  B(
@@ -13060,8 +13060,8 @@ const Fp = (n, r, t, e) => {
13060
13060
  (L = (q = $ == null ? void 0 : $.current) == null ? void 0 : q.getBoundingClientRect()) == null ? void 0 : L.height
13061
13061
  ), D(Object.assign(y, { [s.field]: (ie = (Z = $ == null ? void 0 : $.current) == null ? void 0 : Z.getBoundingClientRect()) == null ? void 0 : ie.width }));
13062
13062
  }, []), ae(() => {
13063
- F.length > 0 && s.field in c && c[s.field].length !== 0 && ne(!0), F.length === 0 && ne(!1);
13064
- }, [F]), ae(() => {
13063
+ A.length > 0 && s.field in c && c[s.field].length !== 0 && ne(!0), A.length === 0 && ne(!1);
13064
+ }, [A]), ae(() => {
13065
13065
  X(""), I(void 0);
13066
13066
  }, [k]), ae(() => {
13067
13067
  l && $.current && ue($.current.getBoundingClientRect().left);
@@ -13090,22 +13090,22 @@ const Fp = (n, r, t, e) => {
13090
13090
  });
13091
13091
  }, [Q, H, M]), ae(() => {
13092
13092
  var q, L;
13093
- s.filterType === "string" && (!M && F.length > 0 && I({ typeFilterSearch: Di[0] }), F ? M ? Fp(
13093
+ s.filterType === "string" && (!M && A.length > 0 && I({ typeFilterSearch: Di[0] }), A ? M ? Fp(
13094
13094
  (q = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : q.id,
13095
- F,
13095
+ A,
13096
13096
  W,
13097
13097
  J
13098
- ) : wi(F, W, J) : W(
13098
+ ) : wi(A, W, J) : W(
13099
13099
  Kr(
13100
13100
  Vr(s.filterOptions),
13101
13101
  h
13102
13102
  )
13103
- )), s.filterType === "number" && (!M && F.length > 0 && I({ typeFilterSearch: ki[0] }), F ? M ? Wp(
13103
+ )), s.filterType === "number" && (!M && A.length > 0 && I({ typeFilterSearch: ki[0] }), A ? M ? Wp(
13104
13104
  (L = M == null ? void 0 : M.typeFilterSearch) == null ? void 0 : L.id,
13105
- F,
13105
+ A,
13106
13106
  W,
13107
13107
  J
13108
- ) : yi(F, W, J) : W(
13108
+ ) : yi(A, W, J) : W(
13109
13109
  Kr(
13110
13110
  Vr(s.filterOptions),
13111
13111
  h
@@ -13114,7 +13114,7 @@ const Fp = (n, r, t, e) => {
13114
13114
  ...c,
13115
13115
  [s.field]: [!1, null, void 0]
13116
13116
  }), (M == null ? void 0 : M.typeFilterSearch.id) === "2" && d({ ...c, [s.field]: [!0] }));
13117
- }, [F, s.filterOptions, M]);
13117
+ }, [A, s.filterOptions, M]);
13118
13118
  const we = l === g && pe, oe = {
13119
13119
  column: s,
13120
13120
  thLeft: pe,
@@ -13126,9 +13126,9 @@ const Fp = (n, r, t, e) => {
13126
13126
  handleSort: Ne,
13127
13127
  sort: m
13128
13128
  }, de = {
13129
- textSearch: F,
13129
+ textSearch: A,
13130
13130
  setTextSearch: X,
13131
- searched: A,
13131
+ searched: F,
13132
13132
  uncheckedValues: c,
13133
13133
  selectAll: De,
13134
13134
  checkBox: be,
@@ -13265,14 +13265,14 @@ const Fp = (n, r, t, e) => {
13265
13265
  thStyle: S,
13266
13266
  cellContentStyle: M,
13267
13267
  thContentStyle: I,
13268
- effectiveSortField: A,
13268
+ effectiveSortField: F,
13269
13269
  effectiveSortDir: W,
13270
13270
  hoveredSortCol: Q,
13271
13271
  setHoveredSortCol: G,
13272
13272
  handleSortToggle: H
13273
13273
  }) => {
13274
13274
  const x = (N) => {
13275
- const F = A === N.field, X = Q === N.field, J = /* @__PURE__ */ O(
13275
+ const A = F === N.field, X = Q === N.field, J = /* @__PURE__ */ O(
13276
13276
  "span",
13277
13277
  {
13278
13278
  className: "u-table-th-sortable",
@@ -13296,9 +13296,9 @@ const Fp = (n, r, t, e) => {
13296
13296
  /* @__PURE__ */ f("i", { style: { display: "flex" }, children: /* @__PURE__ */ f(
13297
13297
  Ct,
13298
13298
  {
13299
- name: F ? W === "desc" ? "down-arrow" : "up-arrow" : "sorting",
13299
+ name: A ? W === "desc" ? "down-arrow" : "up-arrow" : "sorting",
13300
13300
  size: "14px",
13301
- color: F || X ? "#1E4391" : "#9FAECD"
13301
+ color: A || X ? "#1E4391" : "#9FAECD"
13302
13302
  }
13303
13303
  ) })
13304
13304
  ]
@@ -13307,14 +13307,14 @@ const Fp = (n, r, t, e) => {
13307
13307
  return N.headerTooltip ? /* @__PURE__ */ f(In, { tooltipText: N.headerTooltip, portalOn: !0, children: J }) : J;
13308
13308
  }, E = (N) => {
13309
13309
  if (!N.headerIcon && !N.headerTooltip) return N.title;
13310
- const F = /* @__PURE__ */ O("span", { style: { display: "inline-flex", alignItems: "center" }, children: [
13310
+ const A = /* @__PURE__ */ O("span", { style: { display: "inline-flex", alignItems: "center" }, children: [
13311
13311
  N.title,
13312
13312
  N.headerIcon && /* @__PURE__ */ f("span", { style: { marginLeft: 4 }, children: N.headerIcon })
13313
13313
  ] });
13314
- return N.headerTooltip ? /* @__PURE__ */ f(In, { tooltipText: N.headerTooltip, portalOn: !0, children: F }) : F;
13314
+ return N.headerTooltip ? /* @__PURE__ */ f(In, { tooltipText: N.headerTooltip, portalOn: !0, children: A }) : A;
13315
13315
  };
13316
13316
  return /* @__PURE__ */ f("thead", { style: { zIndex: "2" }, children: /* @__PURE__ */ f("tr", { children: n == null ? void 0 : n.map(
13317
- (N, F) => {
13317
+ (N, A) => {
13318
13318
  var X;
13319
13319
  return N.filterOn ? /* @__PURE__ */ f(
13320
13320
  Xp,
@@ -13326,7 +13326,7 @@ const Fp = (n, r, t, e) => {
13326
13326
  thStyle: S,
13327
13327
  cellContentStyle: M,
13328
13328
  thContentStyle: I,
13329
- index: F,
13329
+ index: A,
13330
13330
  selected: e,
13331
13331
  setSelected: a,
13332
13332
  options: t.map((J) => J[N.field]),
@@ -13347,17 +13347,18 @@ const Fp = (n, r, t, e) => {
13347
13347
  tableRight: (X = y.current) == null ? void 0 : X.getBoundingClientRect().right,
13348
13348
  isParentDataField: !!D,
13349
13349
  filterResetParam: C
13350
- }
13350
+ },
13351
+ A
13351
13352
  ) : /* @__PURE__ */ f(
13352
13353
  "th",
13353
13354
  {
13354
13355
  ref: (J) => _.current[N.field] = J,
13355
- id: `${r}th${F}`,
13356
+ id: `${r}th${A}`,
13356
13357
  className: `${N.sticky ? "sticky" : ""} ${m && !N.resizeOff ? "resize" : ""}`,
13357
13358
  style: wr(
13358
13359
  Object.assign(
13359
13360
  {
13360
- left: N.sticky ? k(F) : "",
13361
+ left: N.sticky ? k(A) : "",
13361
13362
  padding: 0,
13362
13363
  cursor: m && !N.resizeOff ? "col-resize" : ""
13363
13364
  },
@@ -13406,7 +13407,7 @@ const Fp = (n, r, t, e) => {
13406
13407
  }
13407
13408
  )
13408
13409
  },
13409
- F
13410
+ A
13410
13411
  );
13411
13412
  }
13412
13413
  ) }) });
@@ -13439,7 +13440,7 @@ const Fp = (n, r, t, e) => {
13439
13440
  filterEmptyLabel: S = "Не указано",
13440
13441
  virtualizationOn: M,
13441
13442
  parentDataField: I,
13442
- rowHeight: A = 160,
13443
+ rowHeight: F = 160,
13443
13444
  visibleRows: W = 20,
13444
13445
  setFilteredTableData: Q,
13445
13446
  withoutHeader: G,
@@ -13447,7 +13448,7 @@ const Fp = (n, r, t, e) => {
13447
13448
  pagination: x,
13448
13449
  isLoading: E,
13449
13450
  isLoadingPreloader: N,
13450
- initialSkeletonRows: F = 10,
13451
+ initialSkeletonRows: A = 10,
13451
13452
  initialSkeletonRowHeight: X = 32,
13452
13453
  preloaderHeight: J = 750,
13453
13454
  sort: B,
@@ -13517,7 +13518,7 @@ const Fp = (n, r, t, e) => {
13517
13518
  filteredData: Ke,
13518
13519
  virtualizationOn: M,
13519
13520
  visibleRows: W,
13520
- rowHeight: A,
13521
+ rowHeight: F,
13521
13522
  isLoading: E,
13522
13523
  isLoadingPreloader: N,
13523
13524
  id: y,
@@ -13686,7 +13687,7 @@ const Fp = (n, r, t, e) => {
13686
13687
  tdContentHeights: Da.current.length > 0 ? Da.current : void 0,
13687
13688
  tdContentWidths: ka.current.length > 0 ? ka.current : void 0,
13688
13689
  tdStyles: _a.current.length > 0 ? _a.current : void 0,
13689
- rows: F,
13690
+ rows: A,
13690
13691
  rowHeight: X
13691
13692
  }
13692
13693
  ) : /* @__PURE__ */ O(Re, { children: [
@@ -13840,8 +13841,8 @@ const Fp = (n, r, t, e) => {
13840
13841
  isSearchable: k
13841
13842
  }) => {
13842
13843
  var q;
13843
- const g = rn(m, h), S = Dt({ error: b, validationOn: w, validationText: v }), M = et(_, "u-tree"), [I, A] = j(""), [W, Q] = j(null), [G, H] = j([]), [x, E] = j(!1), [N, F] = j(null), X = re(null), J = re(null), B = re(), Y = pi(I, 300), ne = Xe(() => D.filter((L) => L.title.toLowerCase().includes((Y || "").toLowerCase())), [Y, D]), pe = () => {
13844
- E(!1), Q(null);
13844
+ const g = rn(m, h), S = Dt({ error: b, validationOn: w, validationText: v }), M = et(_, "u-tree"), [I, F] = j(""), [W, Q] = j(null), [G, H] = j([]), [x, E] = j(!1), [N, A] = j(null), X = re(null), J = re(null), B = re(), Y = pi(I, 300), ne = Xe(() => D.filter((L) => L.title.toLowerCase().includes((Y || "").toLowerCase())), [Y, D]), pe = () => {
13845
+ E(!1);
13845
13846
  };
13846
13847
  Mr({
13847
13848
  refs: [X, J],
@@ -13862,7 +13863,7 @@ const Fp = (n, r, t, e) => {
13862
13863
  }, P = ({ node: L, counter: Z }) => {
13863
13864
  const ie = D.filter((Le) => Le.parentId === L.id), Te = Z + 1, $e = G == null ? void 0 : G.includes(L.id), We = ce(L), ot = V === L.id, kt = l == (L == null ? void 0 : L.title), Ke = N === L.id, it = () => {
13864
13865
  var Le;
13865
- d(L), pe(), k && (A(""), (Le = B == null ? void 0 : B.current) == null || Le.focus());
13866
+ d(L), pe(), k && (F(""), (Le = B == null ? void 0 : B.current) == null || Le.focus());
13866
13867
  };
13867
13868
  return /* @__PURE__ */ O("ul", { className: "treeview-list", children: [
13868
13869
  /* @__PURE__ */ O(
@@ -13874,8 +13875,8 @@ const Fp = (n, r, t, e) => {
13874
13875
  { paddingLeft: `calc(${Z} * 16px)` },
13875
13876
  kt ? { backgroundColor: Gt.selectedBackground, borderRadius: "20px" } : Ke || ot ? { backgroundColor: Gt.hoveredBackground, borderRadius: "20px" } : null
13876
13877
  ),
13877
- onMouseEnter: () => F(L.id),
13878
- onMouseLeave: () => F(null),
13878
+ onMouseEnter: () => A(L.id),
13879
+ onMouseLeave: () => A(null),
13879
13880
  children: [
13880
13881
  We.id !== L.id && /* @__PURE__ */ f("div", { onClick: (Le) => $(Le, L.id), children: $e ? /* @__PURE__ */ f("i", { style: { cursor: "pointer", width: "20px", height: "20px" }, className: "u-icon icon-down clr-blue-main" }) : /* @__PURE__ */ f("i", { style: { cursor: "pointer", transform: "rotate(-90 0 0)" }, className: "u-icon icon-right clr-blue-main" }) }),
13881
13882
  We.id !== L.id && /* @__PURE__ */ f("i", { className: "u-icon icon-folder clr-orange" }),
@@ -13929,7 +13930,7 @@ const Fp = (n, r, t, e) => {
13929
13930
  });
13930
13931
  const be = (L) => {
13931
13932
  var Z;
13932
- L && (d(L), pe(), k && (A(""), (Z = B == null ? void 0 : B.current) == null || Z.focus()));
13933
+ L && (d(L), pe(), k && (F(""), (Z = B == null ? void 0 : B.current) == null || Z.focus()));
13933
13934
  }, { rect: me } = fi({
13934
13935
  anchor: W,
13935
13936
  enabled: x && !!C
@@ -13979,7 +13980,7 @@ const Fp = (n, r, t, e) => {
13979
13980
  onKeyDown: k ? void 0 : Ne,
13980
13981
  onClick: (L) => {
13981
13982
  var Z;
13982
- x ? Q(null) : (k && ((Z = B == null ? void 0 : B.current) == null || Z.focus(), A("")), C && Q(L.currentTarget)), E(!x);
13983
+ x || (k && ((Z = B == null ? void 0 : B.current) == null || Z.focus(), F("")), C && Q(L.currentTarget)), E(!x);
13983
13984
  },
13984
13985
  className: `u-selectbox-select ${x ? "u-selectbox-select-open" : ""}`,
13985
13986
  id: `u-selectbox-select${M}`,
@@ -14022,7 +14023,7 @@ const Fp = (n, r, t, e) => {
14022
14023
  className: x ? "treeview__search" : "treeview__search_disabled",
14023
14024
  placeholder: l || "Введите значение",
14024
14025
  value: I,
14025
- onChange: (L) => A(L.target.value),
14026
+ onChange: (L) => F(L.target.value),
14026
14027
  onClick: (L) => {
14027
14028
  x && L.stopPropagation();
14028
14029
  },
@@ -14034,7 +14035,7 @@ const Fp = (n, r, t, e) => {
14034
14035
  "i",
14035
14036
  {
14036
14037
  onClick: (L) => {
14037
- Q(null), c(L), E(!1);
14038
+ c(L), E(!1);
14038
14039
  },
14039
14040
  className: "u-selectbox-select-icon-cross",
14040
14041
  style: Object.assign(
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UrFU UI-Kit for React Web",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
- "version": "1.11.2",
6
+ "version": "1.11.3",
7
7
  "type": "module",
8
8
  "main": "dist/urfu-ui-kit-react",
9
9
  "types": "dist/index.d.ts",