prlg-ui 1.8.185 → 1.8.186

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 { defineComponent as q, computed as T, resolveComponent as jn, createBlock as W, openBlock as m, resolveDynamicComponent as Fe, normalizeClass as H, withCtx as ie, createCommentVNode as F, createElementBlock as y, renderSlot as ne, Fragment as le, createTextVNode as ve, toDisplayString as K, ref as D, useTemplateRef as lt, onMounted as ye, createElementVNode as k, createVNode as j, renderList as ce, unref as $, mergeModels as se, useModel as ue, watch as ee, shallowRef as ze, getCurrentScope as Ml, onScopeDispose as Dl, shallowReadonly as Je, toRefs as Tl, useId as ht, onUnmounted as De, Transition as Te, normalizeStyle as re, nextTick as pe, withModifiers as he, withDirectives as Ce, vModelRadio as Al, vModelText as ut, provide as _e, watchEffect as Un, toRef as tt, useSlots as Wn, inject as Se, isRef as Yn, h as Qt, resolveDirective as Fl, vModelCheckbox as Xn, vModelDynamic as El, toValue as et, vModelSelect as Ll, createStaticVNode as Ol, Teleport as Ne, reactive as Zn, TransitionGroup as zl, vShow as Qn, useCssVars as Hl, createApp as Bl } from "vue";
1
+ import { defineComponent as q, computed as T, resolveComponent as jn, createBlock as W, openBlock as m, resolveDynamicComponent as Fe, normalizeClass as H, withCtx as ie, createCommentVNode as F, createElementBlock as y, renderSlot as ne, Fragment as le, createTextVNode as ve, toDisplayString as K, ref as D, useTemplateRef as lt, onMounted as ye, createElementVNode as k, createVNode as j, renderList as ce, unref as $, mergeModels as se, useModel as ue, watch as ee, shallowRef as ze, getCurrentScope as Ml, onScopeDispose as Dl, shallowReadonly as Je, toRefs as Tl, useId as ht, onUnmounted as De, Transition as Te, normalizeStyle as oe, nextTick as pe, withModifiers as he, withDirectives as Ce, vModelRadio as Al, vModelText as ut, provide as _e, watchEffect as Un, toRef as tt, useSlots as Wn, inject as Se, isRef as Yn, h as Qt, resolveDirective as Fl, vModelCheckbox as Xn, vModelDynamic as El, toValue as et, vModelSelect as Ll, createStaticVNode as Ol, Teleport as Ne, reactive as Zn, TransitionGroup as zl, vShow as Qn, useCssVars as Hl, createApp as Bl } from "vue";
2
2
  import { P as Jn, h as el, i as tl, I as nl, e as mt, C as Tt, A as Gl, a as ll, f as Kl, M as ql, S as Nl, g as jl, b as Ul, c as Wl, E as Yl, B as Xl, d as Zl, Q as Ql, W as $n } from "./QuestionIcon-tK1kUB_h.js";
3
3
  import { o as Jl, d as fe } from "./parseFileSize.util-CxVk4CvB.js";
4
4
  import { _ as de, C as dt, a as eo } from "./FileIcon-maHE2Nhr.js";
@@ -147,8 +147,8 @@ const no = {
147
147
  const t = n, l = ue(e, "modelValue"), o = D(e.indeterminate);
148
148
  e.checked !== void 0 && (e.value !== void 0 && l.value === void 0 ? l.value = e.checked ? [e.value] : [] : e.value === void 0 && (e.checked ? l.value = e.trueValue !== !0 ? e.trueValue : !0 : l.value = e.falseValue !== !1 ? e.falseValue : !1)), ee(
149
149
  () => e.checked,
150
- (f) => {
151
- f !== void 0 && (f ? l.value = e.trueValue !== !0 ? e.trueValue : !0 : l.value = e.falseValue !== !1 ? e.falseValue : !1);
150
+ (g) => {
151
+ g !== void 0 && (g ? l.value = e.trueValue !== !0 ? e.trueValue : !0 : l.value = e.falseValue !== !1 ? e.falseValue : !1);
152
152
  }
153
153
  );
154
154
  const r = T(() => Math.random().toString(36).substring(2, 9)), a = T(() => o.value), s = T(() => Array.isArray(l.value) || l.value === null && e.value !== void 0 || l.value === void 0 && e.value !== void 0), i = T(() => s.value ? e.value === void 0 || !Array.isArray(l.value) ? !1 : l.value.includes(e.value) : l.value !== void 0 && l.value !== null ? e.trueValue !== !0 || e.falseValue !== !1 ? l.value === e.trueValue : !!l.value : !1), u = T(() => [
@@ -158,23 +158,23 @@ const no = {
158
158
  "checkbox--disabled": e.disabled,
159
159
  "checkbox--error": e.error
160
160
  }
161
- ]), d = (f) => {
161
+ ]), d = (g) => {
162
162
  if (e.disabled) return;
163
- const g = f.target.checked;
163
+ const f = g.target.checked;
164
164
  let h;
165
165
  if (s.value) {
166
166
  if (e.value === void 0)
167
167
  return;
168
168
  const b = Array.isArray(l.value) ? [...l.value] : [];
169
- if (g)
169
+ if (f)
170
170
  b.includes(e.value) || b.push(e.value);
171
171
  else {
172
172
  const S = b.indexOf(e.value);
173
173
  S > -1 && b.splice(S, 1);
174
174
  }
175
175
  h = b;
176
- } else e.trueValue !== !0 || e.falseValue !== !1 ? h = g ? e.trueValue : e.falseValue : e.value !== void 0 ? h = g ? e.value : null : h = g;
177
- l.value = h, t("update:modelValue", h), t("change", h, f), t("update:checked", g), o.value && (o.value = !1, t("update:indeterminate", !1));
176
+ } else e.trueValue !== !0 || e.falseValue !== !1 ? h = f ? e.trueValue : e.falseValue : e.value !== void 0 ? h = f ? e.value : null : h = f;
177
+ l.value = h, t("update:modelValue", h), t("change", h, g), t("update:checked", f), o.value && (o.value = !1, t("update:indeterminate", !1));
178
178
  };
179
179
  return ee(
180
180
  l,
@@ -183,21 +183,21 @@ const no = {
183
183
  { immediate: !0 }
184
184
  ), ee(
185
185
  () => e.indeterminate,
186
- (f) => {
187
- o.value = f;
186
+ (g) => {
187
+ o.value = g;
188
188
  }
189
- ), (f, v) => (m(), y("label", {
189
+ ), (g, v) => (m(), y("label", {
190
190
  for: r.value,
191
191
  class: H(u.value)
192
192
  }, [
193
193
  k("input", {
194
- id: f.customId ?? r.value,
194
+ id: g.customId ?? r.value,
195
195
  type: "checkbox",
196
- value: f.value,
196
+ value: g.value,
197
197
  indeterminate: a.value,
198
198
  class: "checkbox__input",
199
- name: f.name,
200
- disabled: f.disabled,
199
+ name: g.name,
200
+ disabled: g.disabled,
201
201
  checked: i.value,
202
202
  onChange: d
203
203
  }, null, 40, so),
@@ -217,11 +217,11 @@ const no = {
217
217
  ])])) : F("", !0)
218
218
  ])
219
219
  ]),
220
- f.label || f.$slots.label ? (m(), y("span", go, [
221
- ve(K(f.label) + " ", 1),
222
- ne(f.$slots, "label")
220
+ g.label || g.$slots.label ? (m(), y("span", go, [
221
+ ve(K(g.label) + " ", 1),
222
+ ne(g.$slots, "label")
223
223
  ])) : F("", !0),
224
- f.error && f.errorText ? (m(), y("span", vo, K(f.errorText), 1)) : F("", !0)
224
+ g.error && g.errorText ? (m(), y("span", vo, K(g.errorText), 1)) : F("", !0)
225
225
  ], 10, ro));
226
226
  }
227
227
  }), mo = /* @__PURE__ */ q({
@@ -360,48 +360,48 @@ function _n(e, n, t) {
360
360
  reference: l,
361
361
  floating: o
362
362
  } = e;
363
- const r = Be(n), a = dn(n), s = un(a), i = We(n), u = r === "y", d = l.x + l.width / 2 - o.width / 2, f = l.y + l.height / 2 - o.height / 2, v = l[s] / 2 - o[s] / 2;
364
- let g;
363
+ const r = Be(n), a = dn(n), s = un(a), i = We(n), u = r === "y", d = l.x + l.width / 2 - o.width / 2, g = l.y + l.height / 2 - o.height / 2, v = l[s] / 2 - o[s] / 2;
364
+ let f;
365
365
  switch (i) {
366
366
  case "top":
367
- g = {
367
+ f = {
368
368
  x: d,
369
369
  y: l.y - o.height
370
370
  };
371
371
  break;
372
372
  case "bottom":
373
- g = {
373
+ f = {
374
374
  x: d,
375
375
  y: l.y + l.height
376
376
  };
377
377
  break;
378
378
  case "right":
379
- g = {
379
+ f = {
380
380
  x: l.x + l.width,
381
- y: f
381
+ y: g
382
382
  };
383
383
  break;
384
384
  case "left":
385
- g = {
385
+ f = {
386
386
  x: l.x - o.width,
387
- y: f
387
+ y: g
388
388
  };
389
389
  break;
390
390
  default:
391
- g = {
391
+ f = {
392
392
  x: l.x,
393
393
  y: l.y
394
394
  };
395
395
  }
396
396
  switch (wt(n)) {
397
397
  case "start":
398
- g[a] -= v * (t && u ? -1 : 1);
398
+ f[a] -= v * (t && u ? -1 : 1);
399
399
  break;
400
400
  case "end":
401
- g[a] += v * (t && u ? -1 : 1);
401
+ f[a] += v * (t && u ? -1 : 1);
402
402
  break;
403
403
  }
404
- return g;
404
+ return f;
405
405
  }
406
406
  const Vo = async (e, n, t) => {
407
407
  const {
@@ -416,8 +416,8 @@ const Vo = async (e, n, t) => {
416
416
  strategy: o
417
417
  }), {
418
418
  x: d,
419
- y: f
420
- } = _n(u, l, i), v = l, g = {}, h = 0;
419
+ y: g
420
+ } = _n(u, l, i), v = l, f = {}, h = 0;
421
421
  for (let b = 0; b < s.length; b++) {
422
422
  const {
423
423
  name: S,
@@ -429,11 +429,11 @@ const Vo = async (e, n, t) => {
429
429
  reset: I
430
430
  } = await M({
431
431
  x: d,
432
- y: f,
432
+ y: g,
433
433
  initialPlacement: l,
434
434
  placement: v,
435
435
  strategy: o,
436
- middlewareData: g,
436
+ middlewareData: f,
437
437
  rects: u,
438
438
  platform: a,
439
439
  elements: {
@@ -441,10 +441,10 @@ const Vo = async (e, n, t) => {
441
441
  floating: n
442
442
  }
443
443
  });
444
- d = _ ?? d, f = P ?? f, g = {
445
- ...g,
444
+ d = _ ?? d, g = P ?? g, f = {
445
+ ...f,
446
446
  [S]: {
447
- ...g[S],
447
+ ...f[S],
448
448
  ...O
449
449
  }
450
450
  }, I && h <= 50 && (h++, typeof I == "object" && (I.placement && (v = I.placement), I.rects && (u = I.rects === !0 ? await a.getElementRects({
@@ -453,15 +453,15 @@ const Vo = async (e, n, t) => {
453
453
  strategy: o
454
454
  }) : I.rects), {
455
455
  x: d,
456
- y: f
456
+ y: g
457
457
  } = _n(u, v, i)), b = -1);
458
458
  }
459
459
  return {
460
460
  x: d,
461
- y: f,
461
+ y: g,
462
462
  placement: v,
463
463
  strategy: o,
464
- middlewareData: g
464
+ middlewareData: f
465
465
  };
466
466
  };
467
467
  async function It(e, n) {
@@ -477,15 +477,15 @@ async function It(e, n) {
477
477
  } = e, {
478
478
  boundary: u = "clippingAncestors",
479
479
  rootBoundary: d = "viewport",
480
- elementContext: f = "floating",
480
+ elementContext: g = "floating",
481
481
  altBoundary: v = !1,
482
- padding: g = 0
483
- } = ct(n, e), h = al(g), S = s[v ? f === "floating" ? "reference" : "floating" : f], M = Pt(await r.getClippingRect({
482
+ padding: f = 0
483
+ } = ct(n, e), h = al(f), S = s[v ? g === "floating" ? "reference" : "floating" : g], M = Pt(await r.getClippingRect({
484
484
  element: (t = await (r.isElement == null ? void 0 : r.isElement(S))) == null || t ? S : S.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
485
485
  boundary: u,
486
486
  rootBoundary: d,
487
487
  strategy: i
488
- })), _ = f === "floating" ? {
488
+ })), _ = g === "floating" ? {
489
489
  x: l,
490
490
  y: o,
491
491
  width: a.floating.width,
@@ -527,17 +527,17 @@ const Po = (e) => ({
527
527
  } = ct(e, n) || {};
528
528
  if (u == null)
529
529
  return {};
530
- const f = al(d), v = {
530
+ const g = al(d), v = {
531
531
  x: t,
532
532
  y: l
533
- }, g = dn(o), h = un(g), b = await a.getDimensions(u), S = g === "y", M = S ? "top" : "left", _ = S ? "bottom" : "right", P = S ? "clientHeight" : "clientWidth", O = r.reference[h] + r.reference[g] - v[g] - r.floating[h], I = v[g] - r.reference[g], C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
533
+ }, f = dn(o), h = un(f), b = await a.getDimensions(u), S = f === "y", M = S ? "top" : "left", _ = S ? "bottom" : "right", P = S ? "clientHeight" : "clientWidth", O = r.reference[h] + r.reference[f] - v[f] - r.floating[h], I = v[f] - r.reference[f], C = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
534
534
  let c = C ? C[P] : 0;
535
535
  (!c || !await (a.isElement == null ? void 0 : a.isElement(C))) && (c = s.floating[P] || r.floating[h]);
536
- const p = O / 2 - I / 2, w = c / 2 - b[h] / 2 - 1, x = st(f[M], w), A = st(f[_], w), z = x, N = c - b[h] - A, B = c / 2 - b[h] / 2 + p, X = Jt(z, B, N), R = !i.arrow && wt(o) != null && B !== X && r.reference[h] / 2 - (B < z ? x : A) - b[h] / 2 < 0, G = R ? B < z ? B - z : B - N : 0;
536
+ const p = O / 2 - I / 2, w = c / 2 - b[h] / 2 - 1, x = st(g[M], w), A = st(g[_], w), z = x, N = c - b[h] - A, B = c / 2 - b[h] / 2 + p, X = Jt(z, B, N), R = !i.arrow && wt(o) != null && B !== X && r.reference[h] / 2 - (B < z ? x : A) - b[h] / 2 < 0, G = R ? B < z ? B - z : B - N : 0;
537
537
  return {
538
- [g]: v[g] + G,
538
+ [f]: v[f] + G,
539
539
  data: {
540
- [g]: X,
540
+ [f]: X,
541
541
  centerOffset: B - X - G,
542
542
  ...R && {
543
543
  alignmentOffset: G
@@ -561,9 +561,9 @@ const Po = (e) => ({
561
561
  elements: u
562
562
  } = n, {
563
563
  mainAxis: d = !0,
564
- crossAxis: f = !0,
564
+ crossAxis: g = !0,
565
565
  fallbackPlacements: v,
566
- fallbackStrategy: g = "bestFit",
566
+ fallbackStrategy: f = "bestFit",
567
567
  fallbackAxisSideDirection: h = "none",
568
568
  flipAlignment: b = !0,
569
569
  ...S
@@ -574,7 +574,7 @@ const Po = (e) => ({
574
574
  !v && C && I.push(..._o(s, b, h, O));
575
575
  const c = [s, ...I], p = await It(n, S), w = [];
576
576
  let x = ((l = r.flip) == null ? void 0 : l.overflows) || [];
577
- if (d && w.push(p[M]), f) {
577
+ if (d && w.push(p[M]), g) {
578
578
  const B = So(o, a, O);
579
579
  w.push(p[B[0]], p[B[1]]);
580
580
  }
@@ -584,7 +584,7 @@ const Po = (e) => ({
584
584
  }], !w.every((B) => B <= 0)) {
585
585
  var A, z;
586
586
  const B = (((A = r.flip) == null ? void 0 : A.index) || 0) + 1, X = c[B];
587
- if (X && (!(f === "alignment" ? _ !== Be(X) : !1) || // We leave the current main axis only if every placement on that axis
587
+ if (X && (!(g === "alignment" ? _ !== Be(X) : !1) || // We leave the current main axis only if every placement on that axis
588
588
  // overflows the main axis.
589
589
  x.every((L) => Be(L.placement) === _ ? L.overflows[0] > 0 : !0)))
590
590
  return {
@@ -598,7 +598,7 @@ const Po = (e) => ({
598
598
  };
599
599
  let R = (z = x.filter((G) => G.overflows[0] <= 0).sort((G, L) => G.overflows[1] - L.overflows[1])[0]) == null ? void 0 : z.placement;
600
600
  if (!R)
601
- switch (g) {
601
+ switch (f) {
602
602
  case "bestFit": {
603
603
  var N;
604
604
  const G = (N = x.filter((L) => {
@@ -686,26 +686,26 @@ async function To(e, n) {
686
686
  placement: t,
687
687
  platform: l,
688
688
  elements: o
689
- } = e, r = await (l.isRTL == null ? void 0 : l.isRTL(o.floating)), a = We(t), s = wt(t), i = Be(t) === "y", u = Do.has(a) ? -1 : 1, d = r && i ? -1 : 1, f = ct(n, e);
689
+ } = e, r = await (l.isRTL == null ? void 0 : l.isRTL(o.floating)), a = We(t), s = wt(t), i = Be(t) === "y", u = Do.has(a) ? -1 : 1, d = r && i ? -1 : 1, g = ct(n, e);
690
690
  let {
691
691
  mainAxis: v,
692
- crossAxis: g,
692
+ crossAxis: f,
693
693
  alignmentAxis: h
694
- } = typeof f == "number" ? {
695
- mainAxis: f,
694
+ } = typeof g == "number" ? {
695
+ mainAxis: g,
696
696
  crossAxis: 0,
697
697
  alignmentAxis: null
698
698
  } : {
699
- mainAxis: f.mainAxis || 0,
700
- crossAxis: f.crossAxis || 0,
701
- alignmentAxis: f.alignmentAxis
699
+ mainAxis: g.mainAxis || 0,
700
+ crossAxis: g.crossAxis || 0,
701
+ alignmentAxis: g.alignmentAxis
702
702
  };
703
- return s && typeof h == "number" && (g = s === "end" ? h * -1 : h), i ? {
704
- x: g * d,
703
+ return s && typeof h == "number" && (f = s === "end" ? h * -1 : h), i ? {
704
+ x: f * d,
705
705
  y: v * u
706
706
  } : {
707
707
  x: v * u,
708
- y: g * d
708
+ y: f * d
709
709
  };
710
710
  }
711
711
  const Ao = function(e) {
@@ -758,20 +758,20 @@ const Ao = function(e) {
758
758
  } = ct(e, n), u = {
759
759
  x: t,
760
760
  y: l
761
- }, d = await It(n, i), f = Be(We(o)), v = ol(f);
762
- let g = u[v], h = u[f];
761
+ }, d = await It(n, i), g = Be(We(o)), v = ol(g);
762
+ let f = u[v], h = u[g];
763
763
  if (r) {
764
- const S = v === "y" ? "top" : "left", M = v === "y" ? "bottom" : "right", _ = g + d[S], P = g - d[M];
765
- g = Jt(_, g, P);
764
+ const S = v === "y" ? "top" : "left", M = v === "y" ? "bottom" : "right", _ = f + d[S], P = f - d[M];
765
+ f = Jt(_, f, P);
766
766
  }
767
767
  if (a) {
768
- const S = f === "y" ? "top" : "left", M = f === "y" ? "bottom" : "right", _ = h + d[S], P = h - d[M];
768
+ const S = g === "y" ? "top" : "left", M = g === "y" ? "bottom" : "right", _ = h + d[S], P = h - d[M];
769
769
  h = Jt(_, h, P);
770
770
  }
771
771
  const b = s.fn({
772
772
  ...n,
773
- [v]: g,
774
- [f]: h
773
+ [v]: f,
774
+ [g]: h
775
775
  });
776
776
  return {
777
777
  ...b,
@@ -780,7 +780,7 @@ const Ao = function(e) {
780
780
  y: b.y - l,
781
781
  enabled: {
782
782
  [v]: r,
783
- [f]: a
783
+ [g]: a
784
784
  }
785
785
  }
786
786
  };
@@ -946,18 +946,18 @@ function Ye(e, n, t, l) {
946
946
  let a = Ae(1);
947
947
  n && (l ? Ie(l) && (a = at(l)) : a = at(e));
948
948
  const s = jo(r, t, l) ? il(r) : Ae(0);
949
- let i = (o.left + s.x) / a.x, u = (o.top + s.y) / a.y, d = o.width / a.x, f = o.height / a.y;
949
+ let i = (o.left + s.x) / a.x, u = (o.top + s.y) / a.y, d = o.width / a.x, g = o.height / a.y;
950
950
  if (r) {
951
- const v = $e(r), g = l && Ie(l) ? $e(l) : l;
951
+ const v = $e(r), f = l && Ie(l) ? $e(l) : l;
952
952
  let h = v, b = tn(h);
953
- for (; b && l && g !== h; ) {
953
+ for (; b && l && f !== h; ) {
954
954
  const S = at(b), M = b.getBoundingClientRect(), _ = Me(b), P = M.left + (b.clientLeft + parseFloat(_.paddingLeft)) * S.x, O = M.top + (b.clientTop + parseFloat(_.paddingTop)) * S.y;
955
- i *= S.x, u *= S.y, d *= S.x, f *= S.y, i += P, u += O, h = $e(b), b = tn(h);
955
+ i *= S.x, u *= S.y, d *= S.x, g *= S.y, i += P, u += O, h = $e(b), b = tn(h);
956
956
  }
957
957
  }
958
958
  return Pt({
959
959
  width: d,
960
- height: f,
960
+ height: g,
961
961
  x: i,
962
962
  y: u
963
963
  });
@@ -987,12 +987,12 @@ function Uo(e) {
987
987
  scrollLeft: 0,
988
988
  scrollTop: 0
989
989
  }, u = Ae(1);
990
- const d = Ae(0), f = Ee(l);
991
- if ((f || !f && !r) && ((Ze(l) !== "body" || bt(a)) && (i = Lt(l)), Ee(l))) {
992
- const g = Ye(l);
993
- u = at(l), d.x = g.x + l.clientLeft, d.y = g.y + l.clientTop;
990
+ const d = Ae(0), g = Ee(l);
991
+ if ((g || !g && !r) && ((Ze(l) !== "body" || bt(a)) && (i = Lt(l)), Ee(l))) {
992
+ const f = Ye(l);
993
+ u = at(l), d.x = f.x + l.clientLeft, d.y = f.y + l.clientTop;
994
994
  }
995
- const v = a && !f && !r ? ul(a, i) : Ae(0);
995
+ const v = a && !g && !r ? ul(a, i) : Ae(0);
996
996
  return {
997
997
  width: t.width * u.x,
998
998
  height: t.height * u.y,
@@ -1025,7 +1025,7 @@ function Xo(e, n) {
1025
1025
  }
1026
1026
  const u = Ot(l);
1027
1027
  if (u <= 0) {
1028
- const d = l.ownerDocument, f = d.body, v = getComputedStyle(f), g = d.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, h = Math.abs(l.clientWidth - f.clientWidth - g);
1028
+ const d = l.ownerDocument, g = d.body, v = getComputedStyle(g), f = d.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, h = Math.abs(l.clientWidth - g.clientWidth - f);
1029
1029
  h <= In && (r -= h);
1030
1030
  } else u <= In && (r += u);
1031
1031
  return {
@@ -1089,8 +1089,8 @@ function ea(e) {
1089
1089
  strategy: o
1090
1090
  } = e;
1091
1091
  const a = [...t === "clippingAncestors" ? Et(n) ? [] : Jo(n, this._c) : [].concat(t), l], s = a[0], i = a.reduce((u, d) => {
1092
- const f = Mn(n, d, o);
1093
- return u.top = je(f.top, u.top), u.right = st(f.right, u.right), u.bottom = st(f.bottom, u.bottom), u.left = je(f.left, u.left), u;
1092
+ const g = Mn(n, d, o);
1093
+ return u.top = je(g.top, u.top), u.right = st(g.right, u.right), u.bottom = st(g.bottom, u.bottom), u.left = je(g.left, u.left), u;
1094
1094
  }, Mn(n, s, o));
1095
1095
  return {
1096
1096
  width: i.right - i.left,
@@ -1121,13 +1121,13 @@ function na(e, n, t) {
1121
1121
  }
1122
1122
  if (l || !l && !r)
1123
1123
  if ((Ze(n) !== "body" || bt(o)) && (s = Lt(n)), l) {
1124
- const g = Ye(n, !0, r, n);
1125
- i.x = g.x + n.clientLeft, i.y = g.y + n.clientTop;
1124
+ const f = Ye(n, !0, r, n);
1125
+ i.x = f.x + n.clientLeft, i.y = f.y + n.clientTop;
1126
1126
  } else o && u();
1127
1127
  r && !l && o && u();
1128
- const d = o && !l && !r ? ul(o, s) : Ae(0), f = a.left + s.scrollLeft - i.x - d.x, v = a.top + s.scrollTop - i.y - d.y;
1128
+ const d = o && !l && !r ? ul(o, s) : Ae(0), g = a.left + s.scrollLeft - i.x - d.x, v = a.top + s.scrollTop - i.y - d.y;
1129
1129
  return {
1130
- x: f,
1130
+ x: g,
1131
1131
  y: v,
1132
1132
  width: a.width,
1133
1133
  height: a.height
@@ -1203,13 +1203,13 @@ function ra(e, n) {
1203
1203
  s === void 0 && (s = !1), i === void 0 && (i = 1), r();
1204
1204
  const u = e.getBoundingClientRect(), {
1205
1205
  left: d,
1206
- top: f,
1206
+ top: g,
1207
1207
  width: v,
1208
- height: g
1208
+ height: f
1209
1209
  } = u;
1210
- if (s || n(), !v || !g)
1210
+ if (s || n(), !v || !f)
1211
1211
  return;
1212
- const h = Ct(f), b = Ct(o.clientWidth - (d + v)), S = Ct(o.clientHeight - (f + g)), M = Ct(d), P = {
1212
+ const h = Ct(g), b = Ct(o.clientWidth - (d + v)), S = Ct(o.clientHeight - (g + f)), M = Ct(d), P = {
1213
1213
  rootMargin: -h + "px " + -b + "px " + -S + "px " + -M + "px",
1214
1214
  threshold: je(0, st(1, i)) || 1
1215
1215
  };
@@ -1252,15 +1252,15 @@ function sa(e, n, t, l) {
1252
1252
  passive: !0
1253
1253
  }), r && M.addEventListener("resize", t);
1254
1254
  });
1255
- const f = u && s ? ra(u, t) : null;
1256
- let v = -1, g = null;
1257
- a && (g = new ResizeObserver((M) => {
1255
+ const g = u && s ? ra(u, t) : null;
1256
+ let v = -1, f = null;
1257
+ a && (f = new ResizeObserver((M) => {
1258
1258
  let [_] = M;
1259
- _ && _.target === u && g && (g.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1259
+ _ && _.target === u && f && (f.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1260
1260
  var P;
1261
- (P = g) == null || P.observe(n);
1261
+ (P = f) == null || P.observe(n);
1262
1262
  })), t();
1263
- }), u && !i && g.observe(u), g.observe(n));
1263
+ }), u && !i && f.observe(u), f.observe(n));
1264
1264
  let h, b = i ? Ye(e) : null;
1265
1265
  i && S();
1266
1266
  function S() {
@@ -1271,7 +1271,7 @@ function sa(e, n, t, l) {
1271
1271
  var M;
1272
1272
  d.forEach((_) => {
1273
1273
  o && _.removeEventListener("scroll", t), r && _.removeEventListener("resize", t);
1274
- }), f?.(), (M = g) == null || M.disconnect(), g = null, i && cancelAnimationFrame(h);
1274
+ }), g?.(), (M = f) == null || M.disconnect(), f = null, i && cancelAnimationFrame(h);
1275
1275
  };
1276
1276
  }
1277
1277
  const Mt = Ao, mn = Fo, gl = Io, Tn = Mo, vl = Po, pn = (e, n, t) => {
@@ -1334,15 +1334,15 @@ function Fn(e, n, t) {
1334
1334
  }), i = T(() => {
1335
1335
  var c;
1336
1336
  return (c = nt(t.transform)) != null ? c : !0;
1337
- }), u = T(() => nn(e.value)), d = T(() => nn(n.value)), f = D(0), v = D(0), g = D(s.value), h = D(a.value), b = ze({}), S = D(!1), M = T(() => {
1337
+ }), u = T(() => nn(e.value)), d = T(() => nn(n.value)), g = D(0), v = D(0), f = D(s.value), h = D(a.value), b = ze({}), S = D(!1), M = T(() => {
1338
1338
  const c = {
1339
- position: g.value,
1339
+ position: f.value,
1340
1340
  left: "0",
1341
1341
  top: "0"
1342
1342
  };
1343
1343
  if (!d.value)
1344
1344
  return c;
1345
- const p = An(d.value, f.value), w = An(d.value, v.value);
1345
+ const p = An(d.value, g.value), w = An(d.value, v.value);
1346
1346
  return i.value ? {
1347
1347
  ...c,
1348
1348
  transform: "translate(" + p + "px, " + w + "px)",
@@ -1350,7 +1350,7 @@ function Fn(e, n, t) {
1350
1350
  willChange: "transform"
1351
1351
  }
1352
1352
  } : {
1353
- position: g.value,
1353
+ position: f.value,
1354
1354
  left: p + "px",
1355
1355
  top: w + "px"
1356
1356
  };
@@ -1365,7 +1365,7 @@ function Fn(e, n, t) {
1365
1365
  placement: a.value,
1366
1366
  strategy: s.value
1367
1367
  }).then((p) => {
1368
- f.value = p.x, v.value = p.y, g.value = p.strategy, h.value = p.placement, b.value = p.middlewareData, S.value = c !== !1;
1368
+ g.value = p.x, v.value = p.y, f.value = p.strategy, h.value = p.placement, b.value = p.middlewareData, S.value = c !== !1;
1369
1369
  });
1370
1370
  }
1371
1371
  function O() {
@@ -1391,9 +1391,9 @@ function Fn(e, n, t) {
1391
1391
  }), ee(o, C, {
1392
1392
  flush: "sync"
1393
1393
  }), Ml() && Dl(O), {
1394
- x: Je(f),
1394
+ x: Je(g),
1395
1395
  y: Je(v),
1396
- strategy: Je(g),
1396
+ strategy: Je(f),
1397
1397
  placement: Je(h),
1398
1398
  middlewareData: Je(b),
1399
1399
  isPositioned: Je(S),
@@ -1436,7 +1436,7 @@ const da = {
1436
1436
  },
1437
1437
  emits: ["update:modelValue"],
1438
1438
  setup(e, { expose: n, emit: t }) {
1439
- const l = e, { placement: o, offset: r, arrowVisible: a, closeMode: s, modelValue: i } = Tl(l), u = t, d = lt("reference"), f = lt("floating"), v = lt("arrow-block"), g = lt("second-screen"), h = T(() => "23px"), b = T(() => r ? typeof r.value == "number" ? r.value + Number(h.value.split("px")[0]) : {
1439
+ const l = e, { placement: o, offset: r, arrowVisible: a, closeMode: s, modelValue: i } = Tl(l), u = t, d = lt("reference"), g = lt("floating"), v = lt("arrow-block"), f = lt("second-screen"), h = T(() => "23px"), b = T(() => r ? typeof r.value == "number" ? r.value + Number(h.value.split("px")[0]) : {
1440
1440
  mainAxis: r.value?.mainAxis ? r.value?.mainAxis + Number(h.value.split("px")[0]) / 2 : Number(h.value.split("px")[0]) / 2,
1441
1441
  crossAxis: r.value?.crossAxis ? o.value?.includes("start") ? r.value?.crossAxis - Number(h.value.split("px")[0]) : o.value?.includes("end") ? r.value?.crossAxis + Number(h.value.split("px")[0]) : r.value?.crossAxis : o.value?.includes("start") ? -Number(h.value.split("px")[0]) : o.value?.includes("end") ? Number(h.value.split("px")[0]) : void 0,
1442
1442
  alignmentAxis: r.value?.alignmentAxis
@@ -1456,18 +1456,18 @@ const da = {
1456
1456
  middlewareData: _,
1457
1457
  update: P,
1458
1458
  placement: O
1459
- } = Fn(d, f, {
1459
+ } = Fn(d, g, {
1460
1460
  placement: o.value,
1461
1461
  middleware: S
1462
- }), I = D("left-start"), { floatingStyles: C, update: c } = Fn(f, g, {
1462
+ }), I = D("left-start"), { floatingStyles: C, update: c } = Fn(g, f, {
1463
1463
  placement: I,
1464
1464
  middleware: [Tn(), Mt(8)]
1465
1465
  }), p = ht(), w = D(!1), x = D(!1), A = D(!1), { lockScroll: z, unlockScroll: N } = yt(), B = D(null), X = D(null), R = () => {
1466
1466
  P(), x.value && c();
1467
1467
  }, G = T(() => i && i.value !== void 0), L = T({
1468
1468
  get: () => G.value ? i?.value : w.value,
1469
- set: (ae) => {
1470
- G.value ? u("update:modelValue", ae) : w.value = ae;
1469
+ set: (re) => {
1470
+ G.value ? u("update:modelValue", re) : w.value = re;
1471
1471
  }
1472
1472
  }), J = () => {
1473
1473
  L.value = !0;
@@ -1477,15 +1477,15 @@ const da = {
1477
1477
  L.value = !L.value;
1478
1478
  }, U = () => {
1479
1479
  G.value ? L.value ? V() : J() : E();
1480
- }, te = async (ae) => {
1481
- ae && ae.stopPropagation(), f.value && (x.value = !0);
1480
+ }, te = async (re) => {
1481
+ re && re.stopPropagation(), g.value && (x.value = !0);
1482
1482
  }, Y = () => {
1483
1483
  x.value = !1;
1484
- }, oe = (ae) => {
1484
+ }, ae = (re) => {
1485
1485
  if (s.value === "button-only") return;
1486
- const we = ae.composedPath();
1487
- if (!(g.value && we.includes(g.value))) {
1488
- if (f.value && we.includes(f.value) || d.value && we.includes(d.value)) {
1486
+ const we = re.composedPath();
1487
+ if (!(f.value && we.includes(f.value))) {
1488
+ if (g.value && we.includes(g.value) || d.value && we.includes(d.value)) {
1489
1489
  setTimeout(() => {
1490
1490
  x.value && Y();
1491
1491
  }, 0);
@@ -1495,31 +1495,31 @@ const da = {
1495
1495
  }
1496
1496
  }, He = T(() => {
1497
1497
  if (!_.value.arrow) return {};
1498
- const { x: ae, y: we } = _.value.arrow;
1498
+ const { x: re, y: we } = _.value.arrow;
1499
1499
  switch (O.value) {
1500
1500
  case "top":
1501
1501
  return {
1502
- left: ae ? `${ae}px` : "-9px",
1502
+ left: re ? `${re}px` : "-9px",
1503
1503
  bottom: we ? `${we}px` : "-9px"
1504
1504
  };
1505
1505
  case "bottom":
1506
1506
  default:
1507
1507
  return {
1508
- left: ae ? `${ae}px` : "-9px",
1508
+ left: re ? `${re}px` : "-9px",
1509
1509
  top: we ? `${we}px` : "-9px"
1510
1510
  };
1511
1511
  }
1512
1512
  });
1513
- return ee(_, (ae) => {
1514
- G.value || (L.value = ae.hide?.referenceHidden === !1);
1513
+ return ee(_, (re) => {
1514
+ G.value || (L.value = re.hide?.referenceHidden === !1);
1515
1515
  }), ee(
1516
1516
  L,
1517
- async (ae) => {
1518
- ae || (Y(), A.value = !1), ae && s.value === "button-only" ? (z(), setTimeout(() => {
1517
+ async (re) => {
1518
+ re || (Y(), A.value = !1), re && s.value === "button-only" ? (z(), setTimeout(() => {
1519
1519
  R(), A.value = !0;
1520
- }, 0)) : !ae && s.value === "button-only" ? (N(), setTimeout(() => {
1520
+ }, 0)) : !re && s.value === "button-only" ? (N(), setTimeout(() => {
1521
1521
  R();
1522
- }, 0)) : ae && setTimeout(() => {
1522
+ }, 0)) : re && setTimeout(() => {
1523
1523
  R(), A.value = !0;
1524
1524
  }, 0);
1525
1525
  },
@@ -1531,10 +1531,10 @@ const da = {
1531
1531
  },
1532
1532
  { deep: !0 }
1533
1533
  ), ye(() => {
1534
- document.addEventListener("click", oe);
1535
- let ae = null, we = null;
1534
+ document.addEventListener("click", ae);
1535
+ let re = null, we = null;
1536
1536
  const St = () => {
1537
- ae && clearTimeout(ae), ae = setTimeout(R, 16);
1537
+ re && clearTimeout(re), re = setTimeout(R, 16);
1538
1538
  }, Il = () => {
1539
1539
  we && clearTimeout(we), we = setTimeout(R, 100);
1540
1540
  };
@@ -1558,7 +1558,7 @@ const da = {
1558
1558
  attributeFilter: ["style", "class"]
1559
1559
  });
1560
1560
  }), De(() => {
1561
- document.removeEventListener("click", oe), window.removeEventListener("resize", R), window.removeEventListener("scroll", R), window.removeEventListener("orientationchange", R), B.value && B.value.disconnect(), X.value && X.value.disconnect(), s.value === "button-only" && L.value && N();
1561
+ document.removeEventListener("click", ae), window.removeEventListener("resize", R), window.removeEventListener("scroll", R), window.removeEventListener("orientationchange", R), B.value && B.value.disconnect(), X.value && X.value.disconnect(), s.value === "button-only" && L.value && N();
1562
1562
  }), n({
1563
1563
  open: J,
1564
1564
  close: V,
@@ -1569,7 +1569,7 @@ const da = {
1569
1569
  },
1570
1570
  isOpen: L,
1571
1571
  isSecondScreenOpen: x
1572
- }), (ae, we) => (m(), y("div", {
1572
+ }), (re, we) => (m(), y("div", {
1573
1573
  class: H(["popover", { "popover--with-arrow": $(a) }])
1574
1574
  }, [
1575
1575
  k("div", {
@@ -1577,7 +1577,7 @@ const da = {
1577
1577
  ref: "reference",
1578
1578
  onClick: U
1579
1579
  }, [
1580
- ne(ae.$slots, "trigger", {}, void 0, !0)
1580
+ ne(re.$slots, "trigger", {}, void 0, !0)
1581
1581
  ], 2),
1582
1582
  k("div", null, [
1583
1583
  j(Te, { name: "fade" }, {
@@ -1595,17 +1595,17 @@ const da = {
1595
1595
  { "popover__wrapper--no-style": e.withoutStyle },
1596
1596
  { "popover__wrapper--positioning": !A.value }
1597
1597
  ]]),
1598
- style: re({ ...$(M) }),
1598
+ style: oe({ ...$(M) }),
1599
1599
  ref: "floating"
1600
1600
  }, [
1601
1601
  k("div", ca, [
1602
1602
  $(a) ? (m(), y("div", fa, [
1603
- ne(ae.$slots, "default", {
1603
+ ne(re.$slots, "default", {
1604
1604
  openSecondScreen: te,
1605
1605
  closeSecondScreen: Y,
1606
1606
  close: V
1607
1607
  }, void 0, !0)
1608
- ])) : ne(ae.$slots, "default", {
1608
+ ])) : ne(re.$slots, "default", {
1609
1609
  key: 1,
1610
1610
  openSecondScreen: te,
1611
1611
  closeSecondScreen: Y,
@@ -1616,7 +1616,7 @@ const da = {
1616
1616
  key: 0,
1617
1617
  class: "popover__arrow",
1618
1618
  ref: "arrow-block",
1619
- style: re(He.value)
1619
+ style: oe(He.value)
1620
1620
  }, null, 4)) : F("", !0)
1621
1621
  ], 6)) : F("", !0)
1622
1622
  ]),
@@ -1628,9 +1628,9 @@ const da = {
1628
1628
  key: 0,
1629
1629
  class: "popover__second-screen",
1630
1630
  ref: "second-screen",
1631
- style: re({ ...$(C) })
1631
+ style: oe({ ...$(C) })
1632
1632
  }, [
1633
- ne(ae.$slots, "second-screen", { closeSecondScreen: Y }, void 0, !0)
1633
+ ne(re.$slots, "second-screen", { closeSecondScreen: Y }, void 0, !0)
1634
1634
  ], 4)) : F("", !0)
1635
1635
  ]),
1636
1636
  _: 3
@@ -1696,7 +1696,7 @@ const da = {
1696
1696
  (m(!0), y(le, null, ce(a.columns, (i, u) => (m(), y("th", {
1697
1697
  class: H(o(i)),
1698
1698
  key: u,
1699
- style: re(r(i))
1699
+ style: oe(r(i))
1700
1700
  }, [
1701
1701
  k("div", {
1702
1702
  class: H(["table-header__cell-body", { "table-header__cell-body--center": i.selectionMode }])
@@ -1789,7 +1789,7 @@ const da = {
1789
1789
  const t = n, l = T(() => e.rowStyle ? e.rowStyle(e.item) : {});
1790
1790
  return (o, r) => (m(), y("tr", {
1791
1791
  class: H(["table-row", { "table-row--hovered-color": o.colorHovered }]),
1792
- style: re(l.value),
1792
+ style: oe(l.value),
1793
1793
  onClick: r[1] || (r[1] = (a) => t("rowClickHandler", { data: o.item, index: o.rowIndex }))
1794
1794
  }, [
1795
1795
  (m(!0), y(le, null, ce(o.columns, (a) => (m(), W(Ra, {
@@ -1835,13 +1835,13 @@ const da = {
1835
1835
  ye(async () => {
1836
1836
  e.virtualScroll && e.virtualScroll.enable && o.value && (await pe(), a.value = o.value.clientHeight);
1837
1837
  });
1838
- const f = (v, g) => e.dataKey && v[e.dataKey] !== void 0 ? `row-${v[e.dataKey]}` : v.id ? `row-${v.id}` : `row-${g}`;
1838
+ const g = (v, f) => e.dataKey && v[e.dataKey] !== void 0 ? `row-${v[e.dataKey]}` : v.id ? `row-${v.id}` : `row-${f}`;
1839
1839
  return n({
1840
1840
  handleScroll: d,
1841
1841
  updateContainerHeight: (v) => {
1842
1842
  v ? a.value = v.clientHeight : o.value && (a.value = o.value.clientHeight);
1843
1843
  }
1844
- }), (v, g) => v.virtualScroll && v.virtualScroll.enable ? (m(), y("tbody", {
1844
+ }), (v, f) => v.virtualScroll && v.virtualScroll.enable ? (m(), y("tbody", {
1845
1845
  key: 0,
1846
1846
  ref_key: "virtualScrollBody",
1847
1847
  ref: o,
@@ -1849,14 +1849,14 @@ const da = {
1849
1849
  }, [
1850
1850
  s.value > 0 ? (m(), y("tr", {
1851
1851
  key: 0,
1852
- style: re({ height: `${s.value * v.virtualScroll.itemHeight}px` })
1852
+ style: oe({ height: `${s.value * v.virtualScroll.itemHeight}px` })
1853
1853
  }, [
1854
1854
  k("td", {
1855
1855
  colspan: v.columns.length
1856
1856
  }, null, 8, xa)
1857
1857
  ], 4)) : F("", !0),
1858
1858
  (m(!0), y(le, null, ce(u.value, (h, b) => (m(), W(Ln, {
1859
- key: f(h, s.value + b),
1859
+ key: g(h, s.value + b),
1860
1860
  rowIndex: s.value + b,
1861
1861
  item: h,
1862
1862
  columns: v.columns,
@@ -1867,12 +1867,12 @@ const da = {
1867
1867
  size: v.size,
1868
1868
  colorHovered: v.colorHovered,
1869
1869
  rowStyle: v.rowStyle,
1870
- onRowClickHandler: g[0] || (g[0] = (S) => l("rowClickHandler", S)),
1871
- onToggleRow: g[1] || (g[1] = (S) => l("toggleRow", S))
1870
+ onRowClickHandler: f[0] || (f[0] = (S) => l("rowClickHandler", S)),
1871
+ onToggleRow: f[1] || (f[1] = (S) => l("toggleRow", S))
1872
1872
  }, null, 8, ["rowIndex", "item", "columns", "selectedRows", "dataKey", "checkboxKey", "checkboxDisabled", "size", "colorHovered", "rowStyle"]))), 128)),
1873
1873
  i.value < v.data.length ? (m(), y("tr", {
1874
1874
  key: 1,
1875
- style: re({
1875
+ style: oe({
1876
1876
  height: `${(v.data.length - i.value) * v.virtualScroll.itemHeight}px`
1877
1877
  })
1878
1878
  }, [
@@ -1886,10 +1886,10 @@ const da = {
1886
1886
  "table-body",
1887
1887
  { "table-body--scroller": v.scroller && v.scroller.enable }
1888
1888
  ]),
1889
- style: re({ maxHeight: `${v.scroller && v.scroller.height}px` })
1889
+ style: oe({ maxHeight: `${v.scroller && v.scroller.height}px` })
1890
1890
  }, [
1891
1891
  (m(!0), y(le, null, ce(v.data, (h, b) => (m(), W(Ln, {
1892
- key: f(h, b),
1892
+ key: g(h, b),
1893
1893
  rowIndex: b,
1894
1894
  item: h,
1895
1895
  columns: v.columns,
@@ -1900,8 +1900,8 @@ const da = {
1900
1900
  size: v.size,
1901
1901
  colorHovered: v.colorHovered,
1902
1902
  rowStyle: v.rowStyle,
1903
- onRowClickHandler: g[2] || (g[2] = (S) => l("rowClickHandler", S)),
1904
- onToggleRow: g[3] || (g[3] = (S) => l("toggleRow", S))
1903
+ onRowClickHandler: f[2] || (f[2] = (S) => l("rowClickHandler", S)),
1904
+ onToggleRow: f[3] || (f[3] = (S) => l("toggleRow", S))
1905
1905
  }, null, 8, ["rowIndex", "item", "columns", "selectedRows", "dataKey", "checkboxKey", "checkboxDisabled", "size", "colorHovered", "rowStyle"]))), 128))
1906
1906
  ], 6));
1907
1907
  }
@@ -2052,7 +2052,7 @@ const da = {
2052
2052
  }
2053
2053
  return G;
2054
2054
  }
2055
- const f = D(9999), v = T(() => {
2055
+ const g = D(9999), v = T(() => {
2056
2056
  if (!t.modelValue) return [];
2057
2057
  if (t.multiple)
2058
2058
  return (Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]).map((G) => {
@@ -2074,7 +2074,7 @@ const da = {
2074
2074
  );
2075
2075
  return R ? [R] : [];
2076
2076
  }
2077
- }), g = T(() => t.multiple || !v.value.length ? "" : C(v.value[0])), h = T(() => t.multiple ? v.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null), b = T(() => v.value.slice(0, t.maxTags)), S = T(() => Math.max(0, v.value.length - t.maxTags)), M = T(() => r.value ? (t.options || []).filter(
2077
+ }), f = T(() => t.multiple || !v.value.length ? "" : C(v.value[0])), h = T(() => t.multiple ? v.value.length > 0 : t.modelValue !== void 0 && t.modelValue !== null), b = T(() => v.value.slice(0, t.maxTags)), S = T(() => Math.max(0, v.value.length - t.maxTags)), M = T(() => r.value ? (t.options || []).filter(
2078
2078
  (R) => C(R).toLowerCase().includes(r.value.toLowerCase())
2079
2079
  ) : t.options || []), _ = T(() => t.multiple ? v.value.map((R) => O(R)) : []), P = T(() => t.multiple || !v.value.length ? null : O(v.value[0]));
2080
2080
  function O(R) {
@@ -2129,12 +2129,12 @@ const da = {
2129
2129
  function B() {
2130
2130
  !a.value || !o.value || pe(() => {
2131
2131
  const R = d(a.value);
2132
- f.value = R + 10;
2132
+ g.value = R + 10;
2133
2133
  const G = a.value.getBoundingClientRect(), L = window.innerHeight, J = window.innerWidth, V = L - G.bottom, E = G.top, te = V < 300 && E > V, Y = Math.max(300, G.width);
2134
- let oe = G.left;
2135
- oe + Y > J && (oe = Math.max(0, J - Y - 10)), u.value = {
2134
+ let ae = G.left;
2135
+ ae + Y > J && (ae = Math.max(0, J - Y - 10)), u.value = {
2136
2136
  position: "fixed",
2137
- left: `${oe}px`,
2137
+ left: `${ae}px`,
2138
2138
  width: `${Y}px`,
2139
2139
  maxHeight: "300px"
2140
2140
  }, te ? u.value.bottom = `${L - G.top + 4}px` : u.value.top = `${G.bottom + 4}px`;
@@ -2198,12 +2198,12 @@ const da = {
2198
2198
  _: 1
2199
2199
  })) : F("", !0)
2200
2200
  ])) : (m(), y(le, { key: 1 }, [
2201
- g.value ? ne(R.$slots, "input", {
2201
+ f.value ? ne(R.$slots, "input", {
2202
2202
  key: 0,
2203
- value: g.value,
2203
+ value: f.value,
2204
2204
  selectedOption: v.value[0]
2205
2205
  }, () => [
2206
- k("span", za, K(g.value), 1)
2206
+ k("span", za, K(f.value), 1)
2207
2207
  ], !0) : (m(), y("span", Ha, K(R.placeholder), 1))
2208
2208
  ], 64))
2209
2209
  ]),
@@ -2222,14 +2222,14 @@ const da = {
2222
2222
  ], 2),
2223
2223
  j($(At), {
2224
2224
  show: o.value,
2225
- "z-index": f.value
2225
+ "z-index": g.value
2226
2226
  }, {
2227
2227
  default: ie(() => [
2228
2228
  k("div", {
2229
2229
  ref_key: "dropdownOverlay",
2230
2230
  ref: s,
2231
2231
  class: "dropdown__overlay",
2232
- style: re(u.value),
2232
+ style: oe(u.value),
2233
2233
  onClick: G[1] || (G[1] = he(() => {
2234
2234
  }, ["stop"]))
2235
2235
  }, [
@@ -2417,7 +2417,7 @@ const da = {
2417
2417
  return (o, r) => (m(), y("div", {
2418
2418
  class: H(l.value),
2419
2419
  "aria-label": "Loading",
2420
- style: re(t.value)
2420
+ style: oe(t.value)
2421
2421
  }, [...r[0] || (r[0] = [
2422
2422
  k("span", { class: "spinner__circle" }, null, -1)
2423
2423
  ])], 6));
@@ -2486,7 +2486,7 @@ const da = {
2486
2486
  }),
2487
2487
  emits: /* @__PURE__ */ se(["rowClickHandler"], ["update:currentPage", "update:perPage", "update:selectedRows"]),
2488
2488
  setup(e, { emit: n }) {
2489
- const t = n, { columns: l, options: o } = ir(), r = T(() => o.value.selectedMode), a = D(null), s = D(), i = D(), u = ue(e, "currentPage"), d = ue(e, "perPage"), f = (p) => {
2489
+ const t = n, { columns: l, options: o } = ir(), r = T(() => o.value.selectedMode), a = D(null), s = D(), i = D(), u = ue(e, "currentPage"), d = ue(e, "perPage"), g = (p) => {
2490
2490
  if (e.virtualScroll && e.virtualScroll.enable && s.value) {
2491
2491
  const w = p.target;
2492
2492
  s.value.handleScroll(w);
@@ -2509,7 +2509,7 @@ const da = {
2509
2509
  p && s.value.updateContainerHeight(p);
2510
2510
  }
2511
2511
  });
2512
- const g = D([...e.data]);
2512
+ const f = D([...e.data]);
2513
2513
  Un(() => {
2514
2514
  let p = [...e.data];
2515
2515
  if (a.value) {
@@ -2519,7 +2519,7 @@ const da = {
2519
2519
  return N === B ? 0 : x === 1 ? N > B ? 1 : -1 : N < B ? 1 : -1;
2520
2520
  });
2521
2521
  }
2522
- g.value = p;
2522
+ f.value = p;
2523
2523
  });
2524
2524
  const h = T(() => e.scroller && e.scroller.enable || e.virtualScroll && e.virtualScroll.enable || e.maxHeight), b = T(() => [
2525
2525
  "table",
@@ -2604,8 +2604,8 @@ const da = {
2604
2604
  }), (p, w) => h.value ? (m(), y("div", {
2605
2605
  key: 0,
2606
2606
  class: H(S.value),
2607
- style: re(M.value),
2608
- onScroll: f
2607
+ style: oe(M.value),
2608
+ onScroll: g
2609
2609
  }, [
2610
2610
  k("table", {
2611
2611
  ref_key: "tableRef",
@@ -2623,7 +2623,7 @@ const da = {
2623
2623
  onSelectAllRow: c,
2624
2624
  "onUpdate:sort": w[0] || (w[0] = (x) => a.value = x)
2625
2625
  }, null, 8, ["size", "columns", "isSelectedAll", "isIndeterminate", "sortMode", "sortField"]),
2626
- g.value.length > 0 && !p.loading ? (m(), W(On, {
2626
+ f.value.length > 0 && !p.loading ? (m(), W(On, {
2627
2627
  key: 0,
2628
2628
  ref_key: "tableBodyRef",
2629
2629
  ref: s,
@@ -2633,7 +2633,7 @@ const da = {
2633
2633
  checkboxKey: p.checkboxKey,
2634
2634
  checkboxDisabled: p.checkboxDisabled,
2635
2635
  columns: $(l),
2636
- data: g.value,
2636
+ data: f.value,
2637
2637
  colorHovered: p.rowColorHovered,
2638
2638
  scroller: p.scroller || void 0,
2639
2639
  virtualScroll: p.virtualScroll || void 0,
@@ -2691,7 +2691,7 @@ const da = {
2691
2691
  onSelectAllRow: c,
2692
2692
  "onUpdate:sort": w[5] || (w[5] = (x) => a.value = x)
2693
2693
  }, null, 8, ["size", "columns", "isSelectedAll", "isIndeterminate", "sortMode", "sortField"]),
2694
- g.value.length > 0 && !p.loading ? (m(), W(On, {
2694
+ f.value.length > 0 && !p.loading ? (m(), W(On, {
2695
2695
  key: 0,
2696
2696
  ref_key: "tableBodyRef",
2697
2697
  ref: s,
@@ -2701,7 +2701,7 @@ const da = {
2701
2701
  checkboxKey: p.checkboxKey,
2702
2702
  checkboxDisabled: p.checkboxDisabled,
2703
2703
  columns: $(l),
2704
- data: g.value,
2704
+ data: f.value,
2705
2705
  colorHovered: p.rowColorHovered,
2706
2706
  scroller: p.scroller || void 0,
2707
2707
  virtualScroll: p.virtualScroll || void 0,
@@ -2836,17 +2836,17 @@ function Z(e, n, t) {
2836
2836
  let a;
2837
2837
  t.key && t.debug && (a = Date.now());
2838
2838
  const s = e(r);
2839
- if (!(s.length !== l.length || s.some((d, f) => l[f] !== d)))
2839
+ if (!(s.length !== l.length || s.some((d, g) => l[g] !== d)))
2840
2840
  return o;
2841
2841
  l = s;
2842
2842
  let u;
2843
2843
  if (t.key && t.debug && (u = Date.now()), o = n(...s), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
2844
- const d = Math.round((Date.now() - a) * 100) / 100, f = Math.round((Date.now() - u) * 100) / 100, v = f / 16, g = (h, b) => {
2844
+ const d = Math.round((Date.now() - a) * 100) / 100, g = Math.round((Date.now() - u) * 100) / 100, v = g / 16, f = (h, b) => {
2845
2845
  for (h = String(h); h.length < b; )
2846
2846
  h = " " + h;
2847
2847
  return h;
2848
2848
  };
2849
- console.info(`%c⏱ ${g(f, 5)} /${g(d, 5)} ms`, `
2849
+ console.info(`%c⏱ ${f(g, 5)} /${f(d, 5)} ms`, `
2850
2850
  font-size: .6rem;
2851
2851
  font-weight: bold;
2852
2852
  color: hsl(${Math.max(0, Math.min(120 - 120 * v, 120))}deg 100% 31%);`, t?.key);
@@ -2895,15 +2895,15 @@ function kr(e, n, t, l) {
2895
2895
  }, i = s.accessorKey;
2896
2896
  let u = (o = (r = s.id) != null ? r : i ? typeof String.prototype.replaceAll == "function" ? i.replaceAll(".", "_") : i.replace(/\./g, "_") : void 0) != null ? o : typeof s.header == "string" ? s.header : void 0, d;
2897
2897
  if (s.accessorFn ? d = s.accessorFn : i && (i.includes(".") ? d = (v) => {
2898
- let g = v;
2898
+ let f = v;
2899
2899
  for (const b of i.split(".")) {
2900
2900
  var h;
2901
- g = (h = g) == null ? void 0 : h[b], process.env.NODE_ENV !== "production" && g === void 0 && console.warn(`"${b}" in deeply nested key "${i}" returned undefined.`);
2901
+ f = (h = f) == null ? void 0 : h[b], process.env.NODE_ENV !== "production" && f === void 0 && console.warn(`"${b}" in deeply nested key "${i}" returned undefined.`);
2902
2902
  }
2903
- return g;
2903
+ return f;
2904
2904
  } : d = (v) => v[s.accessorKey]), !u)
2905
2905
  throw process.env.NODE_ENV !== "production" ? new Error(s.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
2906
- let f = {
2906
+ let g = {
2907
2907
  id: `${String(u)}`,
2908
2908
  accessorFn: d,
2909
2909
  parent: l,
@@ -2912,20 +2912,20 @@ function kr(e, n, t, l) {
2912
2912
  columns: [],
2913
2913
  getFlatColumns: Z(() => [!0], () => {
2914
2914
  var v;
2915
- return [f, ...(v = f.columns) == null ? void 0 : v.flatMap((g) => g.getFlatColumns())];
2915
+ return [g, ...(v = g.columns) == null ? void 0 : v.flatMap((f) => f.getFlatColumns())];
2916
2916
  }, Q(e.options, "debugColumns", "column.getFlatColumns")),
2917
2917
  getLeafColumns: Z(() => [e._getOrderColumnsFn()], (v) => {
2918
- var g;
2919
- if ((g = f.columns) != null && g.length) {
2920
- let h = f.columns.flatMap((b) => b.getLeafColumns());
2918
+ var f;
2919
+ if ((f = g.columns) != null && f.length) {
2920
+ let h = g.columns.flatMap((b) => b.getLeafColumns());
2921
2921
  return v(h);
2922
2922
  }
2923
- return [f];
2923
+ return [g];
2924
2924
  }, Q(e.options, "debugColumns", "column.getLeafColumns"))
2925
2925
  };
2926
2926
  for (const v of e._features)
2927
- v.createColumn == null || v.createColumn(f, e);
2928
- return f;
2927
+ v.createColumn == null || v.createColumn(g, e);
2928
+ return g;
2929
2929
  }
2930
2930
  const be = "debugHeaders";
2931
2931
  function Bn(e, n, t) {
@@ -2961,7 +2961,7 @@ const Rr = {
2961
2961
  createTable: (e) => {
2962
2962
  e.getHeaderGroups = Z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, l, o) => {
2963
2963
  var r, a;
2964
- const s = (r = l?.map((f) => t.find((v) => v.id === f)).filter(Boolean)) != null ? r : [], i = (a = o?.map((f) => t.find((v) => v.id === f)).filter(Boolean)) != null ? a : [], u = t.filter((f) => !(l != null && l.includes(f.id)) && !(o != null && o.includes(f.id)));
2964
+ const s = (r = l?.map((g) => t.find((v) => v.id === g)).filter(Boolean)) != null ? r : [], i = (a = o?.map((g) => t.find((v) => v.id === g)).filter(Boolean)) != null ? a : [], u = t.filter((g) => !(l != null && l.includes(g.id)) && !(o != null && o.includes(g.id)));
2965
2965
  return $t(n, [...s, ...u, ...i], e);
2966
2966
  }, Q(e.options, be, "getHeaderGroups")), e.getCenterHeaderGroups = Z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, l, o) => (t = t.filter((r) => !(l != null && l.includes(r.id)) && !(o != null && o.includes(r.id))), $t(n, t, e, "center")), Q(e.options, be, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, l) => {
2967
2967
  var o;
@@ -2989,18 +2989,18 @@ const Rr = {
2989
2989
  function $t(e, n, t, l) {
2990
2990
  var o, r;
2991
2991
  let a = 0;
2992
- const s = function(v, g) {
2993
- g === void 0 && (g = 1), a = Math.max(a, g), v.filter((h) => h.getIsVisible()).forEach((h) => {
2992
+ const s = function(v, f) {
2993
+ f === void 0 && (f = 1), a = Math.max(a, f), v.filter((h) => h.getIsVisible()).forEach((h) => {
2994
2994
  var b;
2995
- (b = h.columns) != null && b.length && s(h.columns, g + 1);
2995
+ (b = h.columns) != null && b.length && s(h.columns, f + 1);
2996
2996
  }, 0);
2997
2997
  };
2998
2998
  s(e);
2999
2999
  let i = [];
3000
- const u = (v, g) => {
3000
+ const u = (v, f) => {
3001
3001
  const h = {
3002
- depth: g,
3003
- id: [l, `${g}`].filter(Boolean).join("_"),
3002
+ depth: f,
3003
+ id: [l, `${f}`].filter(Boolean).join("_"),
3004
3004
  headers: []
3005
3005
  }, b = [];
3006
3006
  v.forEach((S) => {
@@ -3010,24 +3010,24 @@ function $t(e, n, t, l) {
3010
3010
  M.subHeaders.push(S);
3011
3011
  else {
3012
3012
  const I = Bn(t, P, {
3013
- id: [l, g, P.id, S?.id].filter(Boolean).join("_"),
3013
+ id: [l, f, P.id, S?.id].filter(Boolean).join("_"),
3014
3014
  isPlaceholder: O,
3015
3015
  placeholderId: O ? `${b.filter((C) => C.column === P).length}` : void 0,
3016
- depth: g,
3016
+ depth: f,
3017
3017
  index: b.length
3018
3018
  });
3019
3019
  I.subHeaders.push(S), b.push(I);
3020
3020
  }
3021
3021
  h.headers.push(S), S.headerGroup = h;
3022
- }), i.push(h), g > 0 && u(b, g - 1);
3023
- }, d = n.map((v, g) => Bn(t, v, {
3022
+ }), i.push(h), f > 0 && u(b, f - 1);
3023
+ }, d = n.map((v, f) => Bn(t, v, {
3024
3024
  depth: a,
3025
- index: g
3025
+ index: f
3026
3026
  }));
3027
3027
  u(d, a - 1), i.reverse();
3028
- const f = (v) => v.filter((h) => h.column.getIsVisible()).map((h) => {
3028
+ const g = (v) => v.filter((h) => h.column.getIsVisible()).map((h) => {
3029
3029
  let b = 0, S = 0, M = [0];
3030
- h.subHeaders && h.subHeaders.length ? (M = [], f(h.subHeaders).forEach((P) => {
3030
+ h.subHeaders && h.subHeaders.length ? (M = [], g(h.subHeaders).forEach((P) => {
3031
3031
  let {
3032
3032
  colSpan: O,
3033
3033
  rowSpan: I
@@ -3040,7 +3040,7 @@ function $t(e, n, t, l) {
3040
3040
  rowSpan: S
3041
3041
  };
3042
3042
  });
3043
- return f((o = (r = i[0]) == null ? void 0 : r.headers) != null ? o : []), i;
3043
+ return g((o = (r = i[0]) == null ? void 0 : r.headers) != null ? o : []), i;
3044
3044
  }
3045
3045
  const _r = (e, n, t, l, o, r, a) => {
3046
3046
  let s = {
@@ -3413,20 +3413,20 @@ const Hr = {
3413
3413
  if (t === "right") {
3414
3414
  var s, i;
3415
3415
  return {
3416
- left: ((s = o?.left) != null ? s : []).filter((f) => !(l != null && l.includes(f))),
3417
- right: [...((i = o?.right) != null ? i : []).filter((f) => !(l != null && l.includes(f))), ...l]
3416
+ left: ((s = o?.left) != null ? s : []).filter((g) => !(l != null && l.includes(g))),
3417
+ right: [...((i = o?.right) != null ? i : []).filter((g) => !(l != null && l.includes(g))), ...l]
3418
3418
  };
3419
3419
  }
3420
3420
  if (t === "left") {
3421
3421
  var u, d;
3422
3422
  return {
3423
- left: [...((u = o?.left) != null ? u : []).filter((f) => !(l != null && l.includes(f))), ...l],
3424
- right: ((d = o?.right) != null ? d : []).filter((f) => !(l != null && l.includes(f)))
3423
+ left: [...((u = o?.left) != null ? u : []).filter((g) => !(l != null && l.includes(g))), ...l],
3424
+ right: ((d = o?.right) != null ? d : []).filter((g) => !(l != null && l.includes(g)))
3425
3425
  };
3426
3426
  }
3427
3427
  return {
3428
- left: ((r = o?.left) != null ? r : []).filter((f) => !(l != null && l.includes(f))),
3429
- right: ((a = o?.right) != null ? a : []).filter((f) => !(l != null && l.includes(f)))
3428
+ left: ((r = o?.left) != null ? r : []).filter((g) => !(l != null && l.includes(g))),
3429
+ right: ((a = o?.right) != null ? a : []).filter((g) => !(l != null && l.includes(g)))
3430
3430
  };
3431
3431
  });
3432
3432
  }, e.getCanPin = () => e.getLeafColumns().some((l) => {
@@ -3558,7 +3558,7 @@ const kt = {
3558
3558
  ...P,
3559
3559
  ...u
3560
3560
  })));
3561
- }, f = (M) => d("move", M), v = (M) => {
3561
+ }, g = (M) => d("move", M), v = (M) => {
3562
3562
  d("end", M), n.setColumnSizingInfo((_) => ({
3563
3563
  ..._,
3564
3564
  isResizingColumn: !1,
@@ -3568,21 +3568,21 @@ const kt = {
3568
3568
  deltaPercentage: null,
3569
3569
  columnSizingStart: []
3570
3570
  }));
3571
- }, g = Gr(t), h = {
3572
- moveHandler: (M) => f(M.clientX),
3571
+ }, f = Gr(t), h = {
3572
+ moveHandler: (M) => g(M.clientX),
3573
3573
  upHandler: (M) => {
3574
- g?.removeEventListener("mousemove", h.moveHandler), g?.removeEventListener("mouseup", h.upHandler), v(M.clientX);
3574
+ f?.removeEventListener("mousemove", h.moveHandler), f?.removeEventListener("mouseup", h.upHandler), v(M.clientX);
3575
3575
  }
3576
3576
  }, b = {
3577
- moveHandler: (M) => (M.cancelable && (M.preventDefault(), M.stopPropagation()), f(M.touches[0].clientX), !1),
3577
+ moveHandler: (M) => (M.cancelable && (M.preventDefault(), M.stopPropagation()), g(M.touches[0].clientX), !1),
3578
3578
  upHandler: (M) => {
3579
3579
  var _;
3580
- g?.removeEventListener("touchmove", b.moveHandler), g?.removeEventListener("touchend", b.upHandler), M.cancelable && (M.preventDefault(), M.stopPropagation()), v((_ = M.touches[0]) == null ? void 0 : _.clientX);
3580
+ f?.removeEventListener("touchmove", b.moveHandler), f?.removeEventListener("touchend", b.upHandler), M.cancelable && (M.preventDefault(), M.stopPropagation()), v((_ = M.touches[0]) == null ? void 0 : _.clientX);
3581
3581
  }
3582
3582
  }, S = qr() ? {
3583
3583
  passive: !1
3584
3584
  } : !1;
3585
- Nt(r) ? (g?.addEventListener("touchmove", b.moveHandler, S), g?.addEventListener("touchend", b.upHandler, S)) : (g?.addEventListener("mousemove", h.moveHandler, S), g?.addEventListener("mouseup", h.upHandler, S)), n.setColumnSizingInfo((M) => ({
3585
+ Nt(r) ? (f?.addEventListener("touchmove", b.moveHandler, S), f?.addEventListener("touchend", b.upHandler, S)) : (f?.addEventListener("mousemove", h.moveHandler, S), f?.addEventListener("mouseup", h.upHandler, S)), n.setColumnSizingInfo((M) => ({
3586
3586
  ...M,
3587
3587
  startOffset: i,
3588
3588
  startSize: a,
@@ -3921,16 +3921,16 @@ const jr = {
3921
3921
  n.setRowPinning((i) => {
3922
3922
  var u, d;
3923
3923
  if (t === "bottom") {
3924
- var f, v;
3924
+ var g, v;
3925
3925
  return {
3926
- top: ((f = i?.top) != null ? f : []).filter((b) => !(s != null && s.has(b))),
3926
+ top: ((g = i?.top) != null ? g : []).filter((b) => !(s != null && s.has(b))),
3927
3927
  bottom: [...((v = i?.bottom) != null ? v : []).filter((b) => !(s != null && s.has(b))), ...Array.from(s)]
3928
3928
  };
3929
3929
  }
3930
3930
  if (t === "top") {
3931
- var g, h;
3931
+ var f, h;
3932
3932
  return {
3933
- top: [...((g = i?.top) != null ? g : []).filter((b) => !(s != null && s.has(b))), ...Array.from(s)],
3933
+ top: [...((f = i?.top) != null ? f : []).filter((b) => !(s != null && s.has(b))), ...Array.from(s)],
3934
3934
  bottom: ((h = i?.bottom) != null ? h : []).filter((b) => !(s != null && s.has(b)))
3935
3935
  };
3936
3936
  }
@@ -4227,20 +4227,20 @@ const ft = {
4227
4227
  }, e.toggleSorting = (t, l) => {
4228
4228
  const o = e.getNextSortingOrder(), r = typeof t < "u" && t !== null;
4229
4229
  n.setSorting((a) => {
4230
- const s = a?.find((g) => g.id === e.id), i = a?.findIndex((g) => g.id === e.id);
4231
- let u = [], d, f = r ? t : o === "desc";
4230
+ const s = a?.find((f) => f.id === e.id), i = a?.findIndex((f) => f.id === e.id);
4231
+ let u = [], d, g = r ? t : o === "desc";
4232
4232
  if (a != null && a.length && e.getCanMultiSort() && l ? s ? d = "toggle" : d = "add" : a != null && a.length && i !== a.length - 1 ? d = "replace" : s ? d = "toggle" : d = "replace", d === "toggle" && (r || o || (d = "remove")), d === "add") {
4233
4233
  var v;
4234
4234
  u = [...a, {
4235
4235
  id: e.id,
4236
- desc: f
4236
+ desc: g
4237
4237
  }], u.splice(0, u.length - ((v = n.options.maxMultiSortColCount) != null ? v : Number.MAX_SAFE_INTEGER));
4238
- } else d === "toggle" ? u = a.map((g) => g.id === e.id ? {
4239
- ...g,
4240
- desc: f
4241
- } : g) : d === "remove" ? u = a.filter((g) => g.id !== e.id) : u = [{
4238
+ } else d === "toggle" ? u = a.map((f) => f.id === e.id ? {
4239
+ ...f,
4240
+ desc: g
4241
+ } : f) : d === "remove" ? u = a.filter((f) => f.id !== e.id) : u = [{
4242
4242
  id: e.id,
4243
- desc: f
4243
+ desc: g
4244
4244
  }];
4245
4245
  return u;
4246
4246
  });
@@ -4307,7 +4307,7 @@ function rs(e) {
4307
4307
  let o = {
4308
4308
  _features: l
4309
4309
  };
4310
- const r = o._features.reduce((v, g) => Object.assign(v, g.getDefaultOptions == null ? void 0 : g.getDefaultOptions(o)), {}), a = (v) => o.options.mergeOptions ? o.options.mergeOptions(r, v) : {
4310
+ const r = o._features.reduce((v, f) => Object.assign(v, f.getDefaultOptions == null ? void 0 : f.getDefaultOptions(o)), {}), a = (v) => o.options.mergeOptions ? o.options.mergeOptions(r, v) : {
4311
4311
  ...r,
4312
4312
  ...v
4313
4313
  };
@@ -4316,12 +4316,12 @@ function rs(e) {
4316
4316
  ...(t = e.initialState) != null ? t : {}
4317
4317
  };
4318
4318
  o._features.forEach((v) => {
4319
- var g;
4320
- i = (g = v.getInitialState == null ? void 0 : v.getInitialState(i)) != null ? g : i;
4319
+ var f;
4320
+ i = (f = v.getInitialState == null ? void 0 : v.getInitialState(i)) != null ? f : i;
4321
4321
  });
4322
4322
  const u = [];
4323
4323
  let d = !1;
4324
- const f = {
4324
+ const g = {
4325
4325
  _features: l,
4326
4326
  options: {
4327
4327
  ...r,
@@ -4333,39 +4333,39 @@ function rs(e) {
4333
4333
  for (; u.length; )
4334
4334
  u.shift()();
4335
4335
  d = !1;
4336
- }).catch((g) => setTimeout(() => {
4337
- throw g;
4336
+ }).catch((f) => setTimeout(() => {
4337
+ throw f;
4338
4338
  })));
4339
4339
  },
4340
4340
  reset: () => {
4341
4341
  o.setState(o.initialState);
4342
4342
  },
4343
4343
  setOptions: (v) => {
4344
- const g = Ge(v, o.options);
4345
- o.options = a(g);
4344
+ const f = Ge(v, o.options);
4345
+ o.options = a(f);
4346
4346
  },
4347
4347
  getState: () => o.options.state,
4348
4348
  setState: (v) => {
4349
4349
  o.options.onStateChange == null || o.options.onStateChange(v);
4350
4350
  },
4351
- _getRowId: (v, g, h) => {
4351
+ _getRowId: (v, f, h) => {
4352
4352
  var b;
4353
- return (b = o.options.getRowId == null ? void 0 : o.options.getRowId(v, g, h)) != null ? b : `${h ? [h.id, g].join(".") : g}`;
4353
+ return (b = o.options.getRowId == null ? void 0 : o.options.getRowId(v, f, h)) != null ? b : `${h ? [h.id, f].join(".") : f}`;
4354
4354
  },
4355
4355
  getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
4356
4356
  // The final calls start at the bottom of the model,
4357
4357
  // expanded rows, which then work their way up
4358
4358
  getRowModel: () => o.getPaginationRowModel(),
4359
4359
  //in next version, we should just pass in the row model as the optional 2nd arg
4360
- getRow: (v, g) => {
4361
- let h = (g ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[v];
4360
+ getRow: (v, f) => {
4361
+ let h = (f ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[v];
4362
4362
  if (!h && (h = o.getCoreRowModel().rowsById[v], !h))
4363
4363
  throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${v}`) : new Error();
4364
4364
  return h;
4365
4365
  },
4366
4366
  _getDefaultColumnDef: Z(() => [o.options.defaultColumn], (v) => {
4367
- var g;
4368
- return v = (g = v) != null ? g : {}, {
4367
+ var f;
4368
+ return v = (f = v) != null ? f : {}, {
4369
4369
  header: (h) => {
4370
4370
  const b = h.header.column.columnDef;
4371
4371
  return b.accessorKey ? b.accessorKey : b.accessorFn ? b.id : null;
@@ -4381,29 +4381,29 @@ function rs(e) {
4381
4381
  }, Q(e, "debugColumns", "_getDefaultColumnDef")),
4382
4382
  _getColumnDefs: () => o.options.columns,
4383
4383
  getAllColumns: Z(() => [o._getColumnDefs()], (v) => {
4384
- const g = function(h, b, S) {
4384
+ const f = function(h, b, S) {
4385
4385
  return S === void 0 && (S = 0), h.map((M) => {
4386
4386
  const _ = kr(o, M, S, b), P = M;
4387
- return _.columns = P.columns ? g(P.columns, _, S + 1) : [], _;
4387
+ return _.columns = P.columns ? f(P.columns, _, S + 1) : [], _;
4388
4388
  });
4389
4389
  };
4390
- return g(v);
4390
+ return f(v);
4391
4391
  }, Q(e, "debugColumns", "getAllColumns")),
4392
- getAllFlatColumns: Z(() => [o.getAllColumns()], (v) => v.flatMap((g) => g.getFlatColumns()), Q(e, "debugColumns", "getAllFlatColumns")),
4393
- _getAllFlatColumnsById: Z(() => [o.getAllFlatColumns()], (v) => v.reduce((g, h) => (g[h.id] = h, g), {}), Q(e, "debugColumns", "getAllFlatColumnsById")),
4394
- getAllLeafColumns: Z(() => [o.getAllColumns(), o._getOrderColumnsFn()], (v, g) => {
4392
+ getAllFlatColumns: Z(() => [o.getAllColumns()], (v) => v.flatMap((f) => f.getFlatColumns()), Q(e, "debugColumns", "getAllFlatColumns")),
4393
+ _getAllFlatColumnsById: Z(() => [o.getAllFlatColumns()], (v) => v.reduce((f, h) => (f[h.id] = h, f), {}), Q(e, "debugColumns", "getAllFlatColumnsById")),
4394
+ getAllLeafColumns: Z(() => [o.getAllColumns(), o._getOrderColumnsFn()], (v, f) => {
4395
4395
  let h = v.flatMap((b) => b.getLeafColumns());
4396
- return g(h);
4396
+ return f(h);
4397
4397
  }, Q(e, "debugColumns", "getAllLeafColumns")),
4398
4398
  getColumn: (v) => {
4399
- const g = o._getAllFlatColumnsById()[v];
4400
- return process.env.NODE_ENV !== "production" && !g && console.error(`[Table] Column with id '${v}' does not exist.`), g;
4399
+ const f = o._getAllFlatColumnsById()[v];
4400
+ return process.env.NODE_ENV !== "production" && !f && console.error(`[Table] Column with id '${v}' does not exist.`), f;
4401
4401
  }
4402
4402
  };
4403
- Object.assign(o, f);
4403
+ Object.assign(o, g);
4404
4404
  for (let v = 0; v < o._features.length; v++) {
4405
- const g = o._features[v];
4406
- g == null || g.createTable == null || g.createTable(o);
4405
+ const f = o._features[v];
4406
+ f == null || f.createTable == null || f.createTable(o);
4407
4407
  }
4408
4408
  return o;
4409
4409
  }
@@ -4574,17 +4574,17 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4574
4574
  return e.enableRowSelection && (d = [
4575
4575
  l.display({
4576
4576
  id: "checkbox",
4577
- header: ({ table: f }) => Qt(Ue, {
4577
+ header: ({ table: g }) => Qt(Ue, {
4578
4578
  size: "small",
4579
- checked: f.getIsAllRowsSelected(),
4580
- indeterminate: f.getIsSomeRowsSelected(),
4581
- onChange: (v, g) => f.getToggleAllRowsSelectedHandler()(g)
4579
+ checked: g.getIsAllRowsSelected(),
4580
+ indeterminate: g.getIsSomeRowsSelected(),
4581
+ onChange: (v, f) => g.getToggleAllRowsSelectedHandler()(f)
4582
4582
  }),
4583
- cell: ({ row: f }) => f.original.isViewCheckbox || f.original.isViewCheckbox === void 0 ? Qt(Ue, {
4583
+ cell: ({ row: g }) => g.original.isViewCheckbox || g.original.isViewCheckbox === void 0 ? Qt(Ue, {
4584
4584
  size: "small",
4585
- checked: f.getIsSelected(),
4586
- disabled: !f.getCanSelect(),
4587
- onChange: (v) => f.getToggleSelectedHandler()(v)
4585
+ checked: g.getIsSelected(),
4586
+ disabled: !g.getCanSelect(),
4587
+ onChange: (v) => g.getToggleSelectedHandler()(v)
4588
4588
  }) : null
4589
4589
  }),
4590
4590
  ...e.columns
@@ -4602,7 +4602,7 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4602
4602
  return s.value;
4603
4603
  }
4604
4604
  },
4605
- getRowId: (d, f) => e.rowId ? d.data[e.rowId] : f,
4605
+ getRowId: (d, g) => e.rowId ? d.data[e.rowId] : g,
4606
4606
  getCoreRowModel: ss(),
4607
4607
  //sorting
4608
4608
  enableSorting: e.enableSorting,
@@ -4616,18 +4616,18 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4616
4616
  },
4617
4617
  debugTable: !1
4618
4618
  });
4619
- return (d, f) => {
4619
+ return (d, g) => {
4620
4620
  const v = Fl("loading");
4621
4621
  return m(), y("div", cs, [
4622
4622
  Ce((m(), y("table", {
4623
4623
  class: H(["table", `table--${d.size}`])
4624
4624
  }, [
4625
4625
  k("thead", fs, [
4626
- (m(!0), y(le, null, ce($(u).getHeaderGroups(), (g) => (m(), y("tr", {
4627
- key: g.id,
4626
+ (m(!0), y(le, null, ce($(u).getHeaderGroups(), (f) => (m(), y("tr", {
4627
+ key: f.id,
4628
4628
  class: "table__row table__row--header"
4629
4629
  }, [
4630
- (m(!0), y(le, null, ce(g.headers, (h) => (m(), y("th", {
4630
+ (m(!0), y(le, null, ce(f.headers, (h) => (m(), y("th", {
4631
4631
  key: h.id,
4632
4632
  colspan: h.colSpan,
4633
4633
  scope: "col",
@@ -4656,11 +4656,12 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4656
4656
  ]))), 128))
4657
4657
  ]),
4658
4658
  d.data.length > 0 ? (m(), y("tbody", ps, [
4659
- (m(!0), y(le, null, ce($(u).getRowModel().rows, (g) => Ce((m(), y("tr", {
4660
- key: g.id,
4661
- class: "table__row"
4659
+ (m(!0), y(le, null, ce($(u).getRowModel().rows, (f) => Ce((m(), y("tr", {
4660
+ key: f.id,
4661
+ class: "table__row",
4662
+ style: oe({ background: f.original.bgColor && f.original.viewBgColor ? f.original.bgColor : "transparent" })
4662
4663
  }, [
4663
- (m(!0), y(le, null, ce(g.getVisibleCells(), (h) => (m(), y("td", {
4664
+ (m(!0), y(le, null, ce(f.getVisibleCells(), (h) => (m(), y("td", {
4664
4665
  key: h.id,
4665
4666
  class: H(["table__cell", { "table__cell--selected": h.id.includes("checkbox") }])
4666
4667
  }, [
@@ -4669,10 +4670,10 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4669
4670
  props: h.getContext()
4670
4671
  }, null, 8, ["render", "props"])
4671
4672
  ], 2))), 128))
4672
- ])), [
4673
+ ], 4)), [
4673
4674
  [
4674
4675
  v,
4675
- g.original.isLoading,
4676
+ f.original.isLoading,
4676
4677
  void 0,
4677
4678
  { xl: !0 }
4678
4679
  ]
@@ -4683,16 +4684,16 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4683
4684
  k("td", {
4684
4685
  colspan: $(u).getAllColumns().length,
4685
4686
  class: "table__empty"
4686
- }, [...f[2] || (f[2] = [
4687
+ }, [...g[2] || (g[2] = [
4687
4688
  k("span", { class: "table__empty-text" }, "Данные отсутствуют", -1)
4688
4689
  ])], 8, ws)
4689
4690
  ])
4690
4691
  ])) : F("", !0),
4691
4692
  k("tfoot", bs, [
4692
- (m(!0), y(le, null, ce($(u).getFooterGroups(), (g) => (m(), y("tr", {
4693
- key: g.id
4693
+ (m(!0), y(le, null, ce($(u).getFooterGroups(), (f) => (m(), y("tr", {
4694
+ key: f.id
4694
4695
  }, [
4695
- (m(!0), y(le, null, ce(g.headers, (h) => (m(), y("th", {
4696
+ (m(!0), y(le, null, ce(f.headers, (h) => (m(), y("th", {
4696
4697
  key: h.id,
4697
4698
  colspan: h.colSpan,
4698
4699
  scope: "row"
@@ -4717,9 +4718,9 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4717
4718
  d.paginator && d.paginator.enabled ? (m(), W($(pl), {
4718
4719
  key: 0,
4719
4720
  "current-page": o.value,
4720
- "onUpdate:currentPage": f[0] || (f[0] = (g) => o.value = g),
4721
+ "onUpdate:currentPage": g[0] || (g[0] = (f) => o.value = f),
4721
4722
  "per-page": r.value,
4722
- "onUpdate:perPage": f[1] || (f[1] = (g) => r.value = g),
4723
+ "onUpdate:perPage": g[1] || (g[1] = (f) => r.value = f),
4723
4724
  totals: d.paginator.totals ?? d.data.length,
4724
4725
  "view-per-page": d.paginator.viewPerPage
4725
4726
  }, null, 8, ["current-page", "per-page", "totals", "view-per-page"])) : F("", !0)
@@ -4727,7 +4728,7 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4727
4728
  ]);
4728
4729
  };
4729
4730
  }
4730
- }), md = /* @__PURE__ */ de($s, [["__scopeId", "data-v-55744b44"]]), ks = { class: "chip-checkbox" }, Rs = ["name", "id", "value"], _s = { class: "chip-checkbox__text" }, pd = /* @__PURE__ */ q({
4731
+ }), md = /* @__PURE__ */ de($s, [["__scopeId", "data-v-07ea2160"]]), ks = { class: "chip-checkbox" }, Rs = ["name", "id", "value"], _s = { class: "chip-checkbox__text" }, pd = /* @__PURE__ */ q({
4731
4732
  __name: "ChipCheckbox",
4732
4733
  props: /* @__PURE__ */ se({
4733
4734
  value: {},
@@ -4803,7 +4804,7 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4803
4804
  },
4804
4805
  emits: ["update:modelValue", "search", "change", "clear", "remove-tag"],
4805
4806
  setup(e, { emit: n }) {
4806
- const t = e, l = n, o = D(!1), r = D(!1), a = D(""), s = D(-1), i = D(), u = D(), d = D(), f = D({});
4807
+ const t = e, l = n, o = D(!1), r = D(!1), a = D(""), s = D(-1), i = D(), u = D(), d = D(), g = D({});
4807
4808
  function v(V) {
4808
4809
  let E = 1e3, U = V;
4809
4810
  for (; U && U !== document.body; ) {
@@ -4812,7 +4813,7 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4812
4813
  }
4813
4814
  return E;
4814
4815
  }
4815
- const g = D(9999), h = T(() => {
4816
+ const f = D(9999), h = T(() => {
4816
4817
  if (!t.modelValue) return [];
4817
4818
  if (t.multiple)
4818
4819
  return (Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]).map((E) => {
@@ -4861,13 +4862,13 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4861
4862
  function z(V) {
4862
4863
  if (!V.disabled) {
4863
4864
  if (t.multiple) {
4864
- const E = C(V), U = Array.isArray(t.modelValue) ? [...t.modelValue] : [], te = U.some((oe) => typeof oe == "object" && oe !== null ? C(oe) === E : oe === E);
4865
+ const E = C(V), U = Array.isArray(t.modelValue) ? [...t.modelValue] : [], te = U.some((ae) => typeof ae == "object" && ae !== null ? C(ae) === E : ae === E);
4865
4866
  let Y;
4866
4867
  if (te)
4867
- Y = U.filter((oe) => typeof oe == "object" && oe !== null ? C(oe) !== E : oe !== E);
4868
+ Y = U.filter((ae) => typeof ae == "object" && ae !== null ? C(ae) !== E : ae !== E);
4868
4869
  else {
4869
- const oe = t.valueKey ? C(V) : V;
4870
- Y = [...U, oe];
4870
+ const ae = t.valueKey ? C(V) : V;
4871
+ Y = [...U, ae];
4871
4872
  }
4872
4873
  l("update:modelValue", Y), l("change", Y), a.value = "";
4873
4874
  } else {
@@ -4898,15 +4899,15 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
4898
4899
  function L() {
4899
4900
  !i.value || !o.value || pe(() => {
4900
4901
  const V = v(i.value);
4901
- g.value = V + 10;
4902
- const E = i.value.getBoundingClientRect(), U = window.innerHeight, te = window.innerWidth, Y = U - E.bottom, oe = E.top, xe = Y < 300 && oe > Y, ae = Math.max(300, E.width);
4902
+ f.value = V + 10;
4903
+ const E = i.value.getBoundingClientRect(), U = window.innerHeight, te = window.innerWidth, Y = U - E.bottom, ae = E.top, xe = Y < 300 && ae > Y, re = Math.max(300, E.width);
4903
4904
  let we = E.left;
4904
- we + ae > te && (we = Math.max(0, te - ae - 10)), f.value = {
4905
+ we + re > te && (we = Math.max(0, te - re - 10)), g.value = {
4905
4906
  position: "fixed",
4906
4907
  left: `${we}px`,
4907
- width: `${ae}px`,
4908
+ width: `${re}px`,
4908
4909
  maxHeight: "300px"
4909
- }, xe ? f.value.bottom = `${U - E.top + 4}px` : f.value.top = `${E.bottom + 4}px`;
4910
+ }, xe ? g.value.bottom = `${U - E.top + 4}px` : g.value.top = `${E.bottom + 4}px`;
4910
4911
  });
4911
4912
  }
4912
4913
  function J(V) {
@@ -5018,14 +5019,14 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
5018
5019
  ], 2),
5019
5020
  j($(At), {
5020
5021
  show: o.value,
5021
- "z-index": g.value
5022
+ "z-index": f.value
5022
5023
  }, {
5023
5024
  default: ie(() => [
5024
5025
  k("div", {
5025
5026
  ref_key: "autocompleteOverlay",
5026
5027
  ref: u,
5027
5028
  class: "autocomplete__overlay",
5028
- style: re(f.value),
5029
+ style: oe(g.value),
5029
5030
  onClick: E[2] || (E[2] = he(() => {
5030
5031
  }, ["stop"]))
5031
5032
  }, [
@@ -5134,7 +5135,7 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
5134
5135
  ], 8, zs)) : F("", !0),
5135
5136
  k("div", Bs, [
5136
5137
  Ce(k("input", {
5137
- "onUpdate:modelValue": d[0] || (d[0] = (f) => l.value = f),
5138
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => l.value = g),
5138
5139
  id: u.inputId ?? o.value,
5139
5140
  placeholder: u.placeholder,
5140
5141
  name: u.name,
@@ -5145,10 +5146,10 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
5145
5146
  required: u.required,
5146
5147
  readonly: u.readonly,
5147
5148
  maxlength: u.maxlength,
5148
- onBlur: d[1] || (d[1] = (f) => t("blur", f)),
5149
- onInput: d[2] || (d[2] = (f) => t("input", f)),
5150
- onPaste: d[3] || (d[3] = (f) => t("paste", f)),
5151
- onFocus: d[4] || (d[4] = (f) => t("focus", f))
5149
+ onBlur: d[1] || (d[1] = (g) => t("blur", g)),
5150
+ onInput: d[2] || (d[2] = (g) => t("input", g)),
5151
+ onPaste: d[3] || (d[3] = (g) => t("paste", g)),
5152
+ onFocus: d[4] || (d[4] = (g) => t("focus", g))
5152
5153
  }, null, 40, Gs), [
5153
5154
  [El, l.value]
5154
5155
  ]),
@@ -5164,7 +5165,7 @@ const cs = { class: "table-wrapper" }, fs = { class: "table__header" }, gs = ["c
5164
5165
  key: 1,
5165
5166
  type: "button",
5166
5167
  class: "input__eye",
5167
- onClick: d[5] || (d[5] = he((f) => r.value = !r.value, ["prevent"]))
5168
+ onClick: d[5] || (d[5] = he((g) => r.value = !r.value, ["prevent"]))
5168
5169
  }, [
5169
5170
  r.value ? (m(), W($(eo), { key: 0 })) : (m(), W($(Kl), { key: 1 }))
5170
5171
  ])) : F("", !0)
@@ -5196,7 +5197,7 @@ function js(e, n) {
5196
5197
  function d(C) {
5197
5198
  return C in i;
5198
5199
  }
5199
- function f(C, c) {
5200
+ function g(C, c) {
5200
5201
  return d(c) ? i[c].test(C) : !1;
5201
5202
  }
5202
5203
  function v(C) {
@@ -5207,7 +5208,7 @@ function js(e, n) {
5207
5208
  if (d(N))
5208
5209
  if (A < C.length) {
5209
5210
  const B = C[A];
5210
- if (f(B, N))
5211
+ if (g(B, N))
5211
5212
  x += B, A++;
5212
5213
  else {
5213
5214
  A++;
@@ -5221,7 +5222,7 @@ function js(e, n) {
5221
5222
  }
5222
5223
  return x;
5223
5224
  }
5224
- function g() {
5225
+ function f() {
5225
5226
  const { required: C, optional: c } = u(t);
5226
5227
  return (C + c).replace(/[9a*]/g, l);
5227
5228
  }
@@ -5234,7 +5235,7 @@ function js(e, n) {
5234
5235
  A++;
5235
5236
  continue;
5236
5237
  }
5237
- d(B) ? f(N, B) ? (x += N, A++, z++) : A++ : (N === B && A++, z++);
5238
+ d(B) ? g(N, B) ? (x += N, A++, z++) : A++ : (N === B && A++, z++);
5238
5239
  }
5239
5240
  for (; A < C.length; ) {
5240
5241
  const N = C[A];
@@ -5246,7 +5247,7 @@ function js(e, n) {
5246
5247
  for (let R = 0; R < w.length; R++)
5247
5248
  if (d(w[R])) {
5248
5249
  if (X === x.length) {
5249
- f(N, w[R]) && (x += N, B = !0);
5250
+ g(N, w[R]) && (x += N, B = !0);
5250
5251
  break;
5251
5252
  }
5252
5253
  X++;
@@ -5347,21 +5348,21 @@ function js(e, n) {
5347
5348
  const J = a.value;
5348
5349
  let V = "", E = -1;
5349
5350
  const { required: U, optional: te } = u(t), Y = U + te;
5350
- for (let oe = p - 1; oe >= 0; oe--)
5351
- if (oe < Y.length && d(Y[oe])) {
5352
- E = oe;
5351
+ for (let ae = p - 1; ae >= 0; ae--)
5352
+ if (ae < Y.length && d(Y[ae])) {
5353
+ E = ae;
5353
5354
  break;
5354
5355
  }
5355
5356
  if (E >= 0) {
5356
- let oe = h(J), He = 0;
5357
+ let ae = h(J), He = 0;
5357
5358
  for (let xe = 0; xe <= E; xe++) {
5358
- const { required: ae, optional: we } = u(t), St = ae + we;
5359
+ const { required: re, optional: we } = u(t), St = re + we;
5359
5360
  if (xe < St.length && d(St[xe])) {
5360
5361
  if (xe === E) break;
5361
5362
  He++;
5362
5363
  }
5363
5364
  }
5364
- oe = oe.slice(0, He) + oe.slice(He + 1), V = v(oe), a.value = V, e.value = oe, pe(() => {
5365
+ ae = ae.slice(0, He) + ae.slice(He + 1), V = v(ae), a.value = V, e.value = ae, pe(() => {
5365
5366
  c.setSelectionRange(E, E);
5366
5367
  });
5367
5368
  }
@@ -5399,7 +5400,7 @@ function js(e, n) {
5399
5400
  if (V >= 0) {
5400
5401
  let E = h(J), U = 0;
5401
5402
  for (let Y = 0; Y <= V; Y++) {
5402
- const { required: oe, optional: He } = u(t), xe = oe + He;
5403
+ const { required: ae, optional: He } = u(t), xe = ae + He;
5403
5404
  if (Y < xe.length && d(xe[Y])) {
5404
5405
  if (Y === V) break;
5405
5406
  U++;
@@ -5430,7 +5431,7 @@ function js(e, n) {
5430
5431
  }
5431
5432
  X++;
5432
5433
  }
5433
- B >= 0 && !f(C.key, A[B]) && C.preventDefault();
5434
+ B >= 0 && !g(C.key, A[B]) && C.preventDefault();
5434
5435
  }
5435
5436
  function O(C) {
5436
5437
  s.value = !0, pe(() => {
@@ -5470,7 +5471,7 @@ function js(e, n) {
5470
5471
  handleKeydown: P,
5471
5472
  handleFocus: O,
5472
5473
  handleBlur: I,
5473
- placeholder: g()
5474
+ placeholder: f()
5474
5475
  };
5475
5476
  }
5476
5477
  const yd = /* @__PURE__ */ q({
@@ -5503,9 +5504,9 @@ const yd = /* @__PURE__ */ q({
5503
5504
  autoClear: n.autoClear,
5504
5505
  definitions: n.definitions
5505
5506
  });
5506
- return (d, f) => (m(), W($(Sn), {
5507
+ return (d, g) => (m(), W($(Sn), {
5507
5508
  modelValue: $(l),
5508
- "onUpdate:modelValue": f[0] || (f[0] = (v) => Yn(l) ? l.value = v : null),
5509
+ "onUpdate:modelValue": g[0] || (g[0] = (v) => Yn(l) ? l.value = v : null),
5509
5510
  label: d.label,
5510
5511
  placeholder: $(u),
5511
5512
  error: d.error,
@@ -5564,16 +5565,16 @@ const yd = /* @__PURE__ */ q({
5564
5565
  o.value = e.formatter ? e.formatter(u) : u;
5565
5566
  });
5566
5567
  const r = (u) => {
5567
- let f = u.target.value;
5568
- if (console.log(f), f.length === 0) {
5568
+ let g = u.target.value;
5569
+ if (console.log(g), g.length === 0) {
5569
5570
  const h = e.countInPackage || e.min;
5570
5571
  t.value = h, l("change", h);
5571
5572
  return;
5572
5573
  }
5573
- f = f.replace(/(?!^)-|[^\d-]/g, "");
5574
- let v = parseInt(f);
5575
- const g = e.countInPackage || e.min;
5576
- v < g && (v = g), e.max && v > e.max && (v = e.max), e.countInPackage && v % e.countInPackage !== 0 && (v = Math.floor(v / e.countInPackage) * e.countInPackage + e.countInPackage), o.value = e.formatter ? e.formatter(v) : v, t.value = v, l("change", v);
5574
+ g = g.replace(/(?!^)-|[^\d-]/g, "");
5575
+ let v = parseInt(g);
5576
+ const f = e.countInPackage || e.min;
5577
+ v < f && (v = f), e.max && v > e.max && (v = e.max), e.countInPackage && v % e.countInPackage !== 0 && (v = Math.floor(v / e.countInPackage) * e.countInPackage + e.countInPackage), o.value = e.formatter ? e.formatter(v) : v, t.value = v, l("change", v);
5577
5578
  }, a = () => {
5578
5579
  if (e.max && t.value === e.max) return;
5579
5580
  let u = e.countInPackage ? t.value + e.countInPackage : t.value + 1;
@@ -5610,7 +5611,7 @@ const yd = /* @__PURE__ */ q({
5610
5611
  k("div", Ws, [
5611
5612
  (m(), W(Fe(u.icon))),
5612
5613
  Ce(k("input", {
5613
- "onUpdate:modelValue": d[0] || (d[0] = (f) => o.value = f),
5614
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => o.value = g),
5614
5615
  type: "number",
5615
5616
  name: "input-number",
5616
5617
  id: "input-number",
@@ -5812,23 +5813,23 @@ const yd = /* @__PURE__ */ q({
5812
5813
  o.value = null;
5813
5814
  };
5814
5815
  return (u, d) => (m(), y("div", ni, [
5815
- (m(!0), y(le, null, ce(u.maxStars, (f) => (m(), y("button", {
5816
- key: f,
5816
+ (m(!0), y(le, null, ce(u.maxStars, (g) => (m(), y("button", {
5817
+ key: g,
5817
5818
  type: "button",
5818
- class: H(["star-button", { "star-button--active": f <= t.value }]),
5819
- onClick: (v) => a(f),
5820
- onMouseenter: (v) => s(f),
5819
+ class: H(["star-button", { "star-button--active": g <= t.value }]),
5820
+ onClick: (v) => a(g),
5821
+ onMouseenter: (v) => s(g),
5821
5822
  onMouseleave: i,
5822
5823
  disabled: u.disabled
5823
5824
  }, [
5824
- f <= (o.value ?? t.value) ? (m(), W(Nl, {
5825
+ g <= (o.value ?? t.value) ? (m(), W(Nl, {
5825
5826
  key: 0,
5826
5827
  class: "star-icon star-icon--filled",
5827
- style: re(r.value)
5828
+ style: oe(r.value)
5828
5829
  }, null, 8, ["style"])) : (m(), W(jl, {
5829
5830
  key: 1,
5830
5831
  class: "star-icon star-icon--empty",
5831
- style: re(r.value)
5832
+ style: oe(r.value)
5832
5833
  }, null, 8, ["style"]))
5833
5834
  ], 42, li))), 128))
5834
5835
  ]));
@@ -5911,7 +5912,7 @@ const yd = /* @__PURE__ */ q({
5911
5912
  rows: i.rows,
5912
5913
  resizable: i.resizable,
5913
5914
  cols: i.cols,
5914
- style: re({ minHeight: i.minHeight }),
5915
+ style: oe({ minHeight: i.minHeight }),
5915
5916
  onInput: a,
5916
5917
  onFocusIn: u[1] || (u[1] = (d) => t("focusIn", d)),
5917
5918
  onFocusOut: u[2] || (u[2] = (d) => t("focusOut", d)),
@@ -5952,8 +5953,8 @@ const yd = /* @__PURE__ */ q({
5952
5953
  const a = [], s = n.interval;
5953
5954
  for (let i = 0; i < 24; i++)
5954
5955
  for (let u = 0; u < 60; u += s) {
5955
- const d = i.toString().padStart(2, "0"), f = u.toString().padStart(2, "0"), v = `${d}:${f}`, g = `${d}:${f}`;
5956
- a.push({ value: v, label: g });
5956
+ const d = i.toString().padStart(2, "0"), g = u.toString().padStart(2, "0"), v = `${d}:${g}`, f = `${d}:${g}`;
5957
+ a.push({ value: v, label: f });
5957
5958
  }
5958
5959
  return a;
5959
5960
  }, o = T(() => n.options || l()), r = () => {
@@ -6077,9 +6078,9 @@ function Zt(e, n, t, l) {
6077
6078
  return o;
6078
6079
  }
6079
6080
  function hi(e, n, t, l = null, o = "dd/mm/yy", r = null, a = null, s = !1) {
6080
- const i = [], u = fe().year(e).month(n).date(1), d = u.endOf("month"), f = (u.day() + 6) % 7;
6081
- for (let g = f - 1; g >= 0; g--) {
6082
- const h = u.subtract(g + 1, "day"), b = Zt(h, l, o, s);
6081
+ const i = [], u = fe().year(e).month(n).date(1), d = u.endOf("month"), g = (u.day() + 6) % 7;
6082
+ for (let f = g - 1; f >= 0; f--) {
6083
+ const h = u.subtract(f + 1, "day"), b = Zt(h, l, o, s);
6083
6084
  i.push({
6084
6085
  value: rt(h, o),
6085
6086
  label: h.format("D"),
@@ -6092,11 +6093,11 @@ function hi(e, n, t, l = null, o = "dd/mm/yy", r = null, a = null, s = !1) {
6092
6093
  inRange: b.inRange
6093
6094
  });
6094
6095
  }
6095
- for (let g = 1; g <= d.date(); g++) {
6096
- const h = fe().year(e).month(n).date(g), b = h.isSame(t, "day"), S = Zt(h, l, o, s), M = mi(h, r, a);
6096
+ for (let f = 1; f <= d.date(); f++) {
6097
+ const h = fe().year(e).month(n).date(f), b = h.isSame(t, "day"), S = Zt(h, l, o, s), M = mi(h, r, a);
6097
6098
  i.push({
6098
6099
  value: rt(h, o),
6099
- label: String(g),
6100
+ label: String(f),
6100
6101
  disabled: !M,
6101
6102
  // Отключаем даты вне разрешенного диапазона
6102
6103
  current: b,
@@ -6108,8 +6109,8 @@ function hi(e, n, t, l = null, o = "dd/mm/yy", r = null, a = null, s = !1) {
6108
6109
  }
6109
6110
  const v = d.day();
6110
6111
  if (v !== 0) {
6111
- const g = 7 - v;
6112
- for (let h = 1; h <= g; h++) {
6112
+ const f = 7 - v;
6113
+ for (let h = 1; h <= f; h++) {
6113
6114
  const b = d.add(h, "day"), S = Zt(b, l, o, s);
6114
6115
  i.push({
6115
6116
  value: rt(b, o),
@@ -6165,8 +6166,8 @@ function wi(e, n = "dd.mm.yyyy", t = null, l = null) {
6165
6166
  return r;
6166
6167
  }
6167
6168
  function bi(e, n, t = D(fe().format("DD.MM.YYYY")), l = D(null), o = D(null), r = D(!1)) {
6168
- const a = D(fe()), s = (g) => {
6169
- a.value = g;
6169
+ const a = D(fe()), s = (f) => {
6170
+ a.value = f;
6170
6171
  }, i = () => {
6171
6172
  switch (e.value) {
6172
6173
  case "day":
@@ -6193,20 +6194,20 @@ function bi(e, n, t = D(fe().format("DD.MM.YYYY")), l = D(null), o = D(null), r
6193
6194
  }
6194
6195
  }, d = () => {
6195
6196
  a.value = fe();
6196
- }, f = T(() => {
6197
- const g = fe(), h = a.value.year(), b = a.value.month(), S = n.value || "dd.mm.yy";
6197
+ }, g = T(() => {
6198
+ const f = fe(), h = a.value.year(), b = a.value.month(), S = n.value || "dd.mm.yy";
6198
6199
  switch (e.value) {
6199
6200
  case "day":
6200
- return hi(h, b, g, t.value, S, l.value, o.value, r.value);
6201
+ return hi(h, b, f, t.value, S, l.value, o.value, r.value);
6201
6202
  case "month":
6202
- return yi(h, g, S, l.value, o.value);
6203
+ return yi(h, f, S, l.value, o.value);
6203
6204
  case "year":
6204
6205
  return wi(a.value, S, l.value, o.value);
6205
6206
  default:
6206
6207
  return [];
6207
6208
  }
6208
6209
  }), v = T(() => {
6209
- const g = [
6210
+ const f = [
6210
6211
  "Январь",
6211
6212
  "Февраль",
6212
6213
  "Март",
@@ -6221,13 +6222,13 @@ function bi(e, n, t = D(fe().format("DD.MM.YYYY")), l = D(null), o = D(null), r
6221
6222
  "Декабрь"
6222
6223
  ], h = a.value, b = h.year(), S = h.month(), M = b - 10, _ = M + 19;
6223
6224
  return {
6224
- month: g[S],
6225
+ month: f[S],
6225
6226
  year: String(b),
6226
6227
  year_range: `${M}-${_}`
6227
6228
  };
6228
6229
  });
6229
6230
  return {
6230
- calendarCells: f,
6231
+ calendarCells: g,
6231
6232
  activeDateInfo: v,
6232
6233
  // Функции навигации
6233
6234
  goToPreviousPage: i,
@@ -6259,11 +6260,11 @@ const Si = {
6259
6260
  }),
6260
6261
  emits: ["update:modelValue"],
6261
6262
  setup(e) {
6262
- const n = e, t = tt(n, "type"), l = tt(n, "format"), o = tt(n, "range"), r = tt(n, "minDate"), a = tt(n, "maxDate"), s = ue(e, "modelValue"), i = D(!1), u = D(""), d = D(f());
6263
- function f() {
6263
+ const n = e, t = tt(n, "type"), l = tt(n, "format"), o = tt(n, "range"), r = tt(n, "minDate"), a = tt(n, "maxDate"), s = ue(e, "modelValue"), i = D(!1), u = D(""), d = D(g());
6264
+ function g() {
6264
6265
  return t.value === "time" ? "time" : t.value || "day";
6265
6266
  }
6266
- const v = T(() => ["day", "month", "year", "date", "datetime"].includes(t.value || "day")), g = T(() => ["time", "datetime"].includes(t.value || "day")), { calendarCells: h, activeDateInfo: b, goToPreviousPage: S, goToNextPage: M, setCurrentDate: _ } = bi(d, l, s, r, a, o);
6267
+ const v = T(() => ["day", "month", "year", "date", "datetime"].includes(t.value || "day")), f = T(() => ["time", "datetime"].includes(t.value || "day")), { calendarCells: h, activeDateInfo: b, goToPreviousPage: S, goToNextPage: M, setCurrentDate: _ } = bi(d, l, s, r, a, o);
6267
6268
  ee([u, s], () => {
6268
6269
  t.value === "datetime" && s.value && u.value ? typeof s.value == "string" && (s.value = `${s.value} ${u.value}`) : t.value === "time" && (s.value = u.value);
6269
6270
  });
@@ -6376,7 +6377,7 @@ const Si = {
6376
6377
  ])
6377
6378
  ])
6378
6379
  ])) : F("", !0),
6379
- g.value ? (m(), y("div", Pi, [
6380
+ f.value ? (m(), y("div", Pi, [
6380
6381
  j(vi, {
6381
6382
  modelValue: u.value,
6382
6383
  "onUpdate:modelValue": p[2] || (p[2] = (w) => u.value = w)
@@ -6398,14 +6399,14 @@ class Di {
6398
6399
  a.length > s && (a = a.slice(0, s)), a = this.correctDateValues(a, t);
6399
6400
  let i = "", u = 0;
6400
6401
  for (let d = 0; d < t.length && u < a.length; d++) {
6401
- const f = t[d];
6402
- f === "d" || f === "m" || f === "y" ? (i += a[u], u++) : i += f;
6402
+ const g = t[d];
6403
+ g === "d" || g === "m" || g === "y" ? (i += a[u], u++) : i += g;
6403
6404
  }
6404
6405
  if (i.length >= t.length) {
6405
6406
  const d = this.parseDate(i, t);
6406
6407
  if (d && d.isValid()) {
6407
- const f = this.applyDateLimits(i, t, l, o);
6408
- f && (i = f);
6408
+ const g = this.applyDateLimits(i, t, l, o);
6409
+ g && (i = g);
6409
6410
  }
6410
6411
  }
6411
6412
  r.value = i;
@@ -6457,8 +6458,8 @@ class Di {
6457
6458
  if (!i || !u) return n;
6458
6459
  const d = this.getDaysInMonth(u);
6459
6460
  if (i > d) {
6460
- const f = d.toString().padStart(2, "0");
6461
- return n.substring(0, a) + f + n.substring(a + 2);
6461
+ const g = d.toString().padStart(2, "0");
6462
+ return n.substring(0, a) + g + n.substring(a + 2);
6462
6463
  }
6463
6464
  return n;
6464
6465
  }
@@ -6566,8 +6567,8 @@ const Ti = /* @__PURE__ */ q({
6566
6567
  return null;
6567
6568
  }
6568
6569
  }
6569
- const o = new Di(), r = e, a = n, s = ue(e, "modelValue"), i = D(), u = D(), d = D(), f = D(!1), v = D({});
6570
- let g = null;
6570
+ const o = new Di(), r = e, a = n, s = ue(e, "modelValue"), i = D(), u = D(), d = D(), g = D(!1), v = D({});
6571
+ let f = null;
6571
6572
  const h = D(s.value), { zIndex: b } = Xe("popover"), S = T(() => {
6572
6573
  if (!s.value) return "";
6573
6574
  if (typeof s.value == "string")
@@ -6600,15 +6601,15 @@ const Ti = /* @__PURE__ */ q({
6600
6601
  }, _ = () => {
6601
6602
  s.value = null, h.value = null, a("clear");
6602
6603
  }, P = () => {
6603
- h.value = s.value, f.value = !0, pe(() => {
6604
- u.value && d.value && (g = sa(
6604
+ h.value = s.value, g.value = !0, pe(() => {
6605
+ u.value && d.value && (f = sa(
6605
6606
  u.value,
6606
6607
  d.value,
6607
6608
  I
6608
6609
  ));
6609
6610
  });
6610
6611
  }, O = (c) => {
6611
- c && (h.value = c, typeof c == "string" ? (s.value = c, c.length === r.format.length && !r.range && (f.value = !1)) : c instanceof Date ? (s.value = t(fe(c), r.format), r.range || (f.value = !1)) : typeof c == "object" && (r.range ? s.value = c : (s.value = c.from || c.to || null, typeof s.value == "string" && s.value.length === r.format.length && (f.value = !1))), a("select", c));
6612
+ c && (h.value = c, typeof c == "string" ? (s.value = c, c.length === r.format.length && !r.range && (g.value = !1)) : c instanceof Date ? (s.value = t(fe(c), r.format), r.range || (g.value = !1)) : typeof c == "object" && (r.range ? s.value = c : (s.value = c.from || c.to || null, typeof s.value == "string" && s.value.length === r.format.length && (g.value = !1))), a("select", c));
6612
6613
  }, I = async () => {
6613
6614
  if (!u.value || !d.value) return;
6614
6615
  const { x: c, y: p } = await pn(
@@ -6631,7 +6632,7 @@ const Ti = /* @__PURE__ */ q({
6631
6632
  }, C = (c) => {
6632
6633
  if (!i.value || !d.value) return;
6633
6634
  const p = c.target;
6634
- !i.value.contains(p) && !d.value.contains(p) && (f.value = !1, g && (g(), g = null));
6635
+ !i.value.contains(p) && !d.value.contains(p) && (g.value = !1, f && (f(), f = null));
6635
6636
  };
6636
6637
  return ee(
6637
6638
  s,
@@ -6642,9 +6643,9 @@ const Ti = /* @__PURE__ */ q({
6642
6643
  ), ye(() => {
6643
6644
  document.addEventListener("mousedown", C);
6644
6645
  }), De(() => {
6645
- document.removeEventListener("mousedown", C), g && (g(), g = null);
6646
- }), ee(f, (c) => {
6647
- !c && g && (g(), g = null);
6646
+ document.removeEventListener("mousedown", C), f && (f(), f = null);
6647
+ }), ee(g, (c) => {
6648
+ !c && f && (f(), f = null);
6648
6649
  }), (c, p) => (m(), y("div", {
6649
6650
  class: "date-picker",
6650
6651
  ref_key: "datePickerRef",
@@ -6673,12 +6674,12 @@ const Ti = /* @__PURE__ */ q({
6673
6674
  }, null, 8, ["label", "placeholder", "error", "error-text", "required", "disabled", "name", "allow-clear", "model-value", "readonly"])
6674
6675
  ], 512),
6675
6676
  (m(), W(Ne, { to: "body" }, [
6676
- f.value ? (m(), y("div", {
6677
+ g.value ? (m(), y("div", {
6677
6678
  key: 0,
6678
6679
  ref_key: "popoverRef",
6679
6680
  ref: d,
6680
6681
  class: "date-picker__popover",
6681
- style: re({ ...v.value, zIndex: Math.max($(b)?.zIndex || 1100, 9999) })
6682
+ style: oe({ ...v.value, zIndex: Math.max($(b)?.zIndex || 1100, 9999) })
6682
6683
  }, [
6683
6684
  k("div", {
6684
6685
  onMousedown: p[1] || (p[1] = he(() => {
@@ -6756,7 +6757,7 @@ const Ti = /* @__PURE__ */ q({
6756
6757
  _.length > 1 && (M.value = _.slice(0, 1)), s.value[b] = M.value, M.value && b < i.value - 1 && pe(() => {
6757
6758
  a.value[b + 1]?.focus();
6758
6759
  });
6759
- }, f = (b, S) => {
6760
+ }, g = (b, S) => {
6760
6761
  S.key === "Backspace" && !s.value[b] && b > 0 && pe(() => {
6761
6762
  a.value[b - 1]?.focus();
6762
6763
  }), S.key === "ArrowLeft" && b > 0 && (S.preventDefault(), a.value[b - 1]?.focus()), S.key === "ArrowRight" && b < i.value - 1 && (S.preventDefault(), a.value[b + 1]?.focus());
@@ -6773,7 +6774,7 @@ const Ti = /* @__PURE__ */ q({
6773
6774
  pe(() => {
6774
6775
  a.value[P]?.focus();
6775
6776
  });
6776
- }, g = (b) => {
6777
+ }, f = (b) => {
6777
6778
  o("focus", b);
6778
6779
  }, h = (b) => {
6779
6780
  o("blur", b);
@@ -6803,9 +6804,9 @@ const Ti = /* @__PURE__ */ q({
6803
6804
  inputmode: b.inputmode,
6804
6805
  pattern: "[0-9]*",
6805
6806
  onInput: (P) => d(_, P),
6806
- onKeydown: (P) => f(_, P),
6807
+ onKeydown: (P) => g(_, P),
6807
6808
  onPaste: (P) => v(_, P),
6808
- onFocus: (P) => g(_),
6809
+ onFocus: (P) => f(_),
6809
6810
  onBlur: (P) => h(_)
6810
6811
  }, null, 40, Li)), [
6811
6812
  [ut, s.value[_]]
@@ -6863,13 +6864,13 @@ const Ti = /* @__PURE__ */ q({
6863
6864
  }, u = (v) => {
6864
6865
  t("close", v);
6865
6866
  }, d = () => {
6866
- f(), u({ message: e.msg, type: "close" });
6867
- }, f = () => {
6867
+ g(), u({ message: e.msg, type: "close" });
6868
+ }, g = () => {
6868
6869
  a.value && (clearTimeout(a.value), a.value = null);
6869
6870
  };
6870
6871
  return ye(() => {
6871
6872
  e.msg.life && (s.value = e.msg.life, i());
6872
- }), (v, g) => (m(), y("div", {
6873
+ }), (v, f) => (m(), y("div", {
6873
6874
  class: H(r.value)
6874
6875
  }, [
6875
6876
  k("div", Gi, [
@@ -6903,7 +6904,7 @@ const Ti = /* @__PURE__ */ q({
6903
6904
  const t = D([]), l = (u) => {
6904
6905
  u.id == null && (u.id = n++), t.value = [...t.value, u];
6905
6906
  }, o = (u) => {
6906
- const d = t.value.findIndex((f) => f.id === u.message.id);
6907
+ const d = t.value.findIndex((g) => g.id === u.message.id);
6907
6908
  d !== -1 && t.value.splice(d, 1);
6908
6909
  }, r = (u) => {
6909
6910
  e.group == u.group && l(u);
@@ -6926,9 +6927,9 @@ const Ti = /* @__PURE__ */ q({
6926
6927
  class: "toast-messages"
6927
6928
  }, {
6928
6929
  default: ie(() => [
6929
- (m(!0), y(le, null, ce(t.value, (f) => (m(), W(ji, {
6930
- key: f.id,
6931
- msg: f,
6930
+ (m(!0), y(le, null, ce(t.value, (g) => (m(), W(ji, {
6931
+ key: g.id,
6932
+ msg: g,
6932
6933
  onClose: d[0] || (d[0] = (v) => o(v))
6933
6934
  }, null, 8, ["msg"]))), 128))
6934
6935
  ]),
@@ -7045,7 +7046,7 @@ const Md = {
7045
7046
  value: t.value,
7046
7047
  variant: t.variant,
7047
7048
  class: "overlay-badge__badge",
7048
- style: re(n.value)
7049
+ style: oe(n.value)
7049
7050
  }, null, 8, ["value", "variant", "style"])) : F("", !0),
7050
7051
  ne(t.$slots, "default")
7051
7052
  ], 2));
@@ -7074,7 +7075,7 @@ const Md = {
7074
7075
  }));
7075
7076
  return (l, o) => (m(), y("div", {
7076
7077
  class: H(n.value),
7077
- style: re(t.value)
7078
+ style: oe(t.value)
7078
7079
  }, null, 6));
7079
7080
  }
7080
7081
  }), xl = Symbol("DialogService"), Fd = () => {
@@ -7150,14 +7151,14 @@ const Md = {
7150
7151
  key: 0,
7151
7152
  class: H(["confirm-dialog-overlay", { "confirm-dialog-overlay--modal": !0 }]),
7152
7153
  onClick: a,
7153
- style: re({ zIndex: $(l)?.zIndex })
7154
+ style: oe({ zIndex: $(l)?.zIndex })
7154
7155
  }, [
7155
7156
  k("div", {
7156
7157
  ref: "popupRef",
7157
7158
  class: H(["confirm-dialog", [`confirm-dialog--${$(ge).position}`, $(ge).class]]),
7158
7159
  onClick: u[2] || (u[2] = he(() => {
7159
7160
  }, ["stop"])),
7160
- style: re($(ge).style)
7161
+ style: oe($(ge).style)
7161
7162
  }, [
7162
7163
  $(ge).header ? (m(), y("div", tu, [
7163
7164
  k("h4", nu, K($(ge).header), 1)
@@ -7203,12 +7204,12 @@ const Md = {
7203
7204
  setup(e) {
7204
7205
  const n = D(), t = D({}), l = D("bottom"), { zIndex: o } = Xe("popover"), r = T(() => `confirm-popup--${l.value}`), a = T(() => `confirm-popup__arrow--${l.value}`), s = () => {
7205
7206
  if (!me.value?.target || !n.value) return;
7206
- const g = me.value.target, h = n.value, b = me.value.position || "bottom";
7207
- if (!document.contains(g)) {
7207
+ const f = me.value.target, h = n.value, b = me.value.position || "bottom";
7208
+ if (!document.contains(f)) {
7208
7209
  u();
7209
7210
  return;
7210
7211
  }
7211
- const S = g.getBoundingClientRect();
7212
+ const S = f.getBoundingClientRect();
7212
7213
  if (!(S.bottom > 0 && S.right > 0 && S.top < window.innerHeight && S.left < window.innerWidth && S.width > 0 && S.height > 0)) {
7213
7214
  u();
7214
7215
  return;
@@ -7281,27 +7282,27 @@ const Md = {
7281
7282
  me.value?.accept?.(), me.value = null;
7282
7283
  }, u = () => {
7283
7284
  me.value?.reject?.(), me.value = null;
7284
- }, d = (g) => {
7285
- g.key === "Escape" && me.value && u();
7286
- }, f = () => {
7285
+ }, d = (f) => {
7286
+ f.key === "Escape" && me.value && u();
7287
+ }, g = () => {
7287
7288
  me.value?.target && s();
7288
7289
  }, v = () => {
7289
7290
  me.value?.target && s();
7290
7291
  };
7291
- return ee(me, async (g) => {
7292
- g?.target && (await pe(), s());
7292
+ return ee(me, async (f) => {
7293
+ f?.target && (await pe(), s());
7293
7294
  }, { immediate: !0 }), ye(() => {
7294
- document.addEventListener("keydown", d), window.addEventListener("scroll", f, !0), window.addEventListener("resize", v);
7295
+ document.addEventListener("keydown", d), window.addEventListener("scroll", g, !0), window.addEventListener("resize", v);
7295
7296
  }), De(() => {
7296
- document.removeEventListener("keydown", d), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", v);
7297
- }), (g, h) => (m(), W(Ne, { to: "body" }, [
7297
+ document.removeEventListener("keydown", d), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", v);
7298
+ }), (f, h) => (m(), W(Ne, { to: "body" }, [
7298
7299
  j(Te, { name: "confirm" }, {
7299
7300
  default: ie(() => [
7300
7301
  $(me) ? (m(), y("div", {
7301
7302
  key: 0,
7302
7303
  class: "confirm-overlay",
7303
7304
  onClick: u,
7304
- style: re({ zIndex: $(o)?.zIndex })
7305
+ style: oe({ zIndex: $(o)?.zIndex })
7305
7306
  }, [
7306
7307
  k("div", {
7307
7308
  ref_key: "popupRef",
@@ -7309,7 +7310,7 @@ const Md = {
7309
7310
  class: H(["confirm-popup", r.value]),
7310
7311
  onClick: h[0] || (h[0] = he(() => {
7311
7312
  }, ["stop"])),
7312
- style: re(t.value)
7313
+ style: oe(t.value)
7313
7314
  }, [
7314
7315
  k("div", {
7315
7316
  class: H(["confirm-popup__arrow", a.value])
@@ -7371,8 +7372,8 @@ const Md = {
7371
7372
  }), i = t, u = () => {
7372
7373
  r.value = !0;
7373
7374
  }, d = () => {
7374
- e.beforeClose ? e.beforeClose(f) : f();
7375
- }, f = () => {
7375
+ e.beforeClose ? e.beforeClose(g) : g();
7376
+ }, g = () => {
7376
7377
  r.value = !1, i("close");
7377
7378
  };
7378
7379
  return ee(r, () => {
@@ -7382,26 +7383,26 @@ const Md = {
7382
7383
  }), n({
7383
7384
  isOpen: r,
7384
7385
  open: u,
7385
- close: f
7386
- }), (v, g) => (m(), W(Ne, { to: "body" }, [
7386
+ close: g
7387
+ }), (v, f) => (m(), W(Ne, { to: "body" }, [
7387
7388
  j(Te, { name: "drawer-animate" }, {
7388
7389
  default: ie(() => [
7389
7390
  r.value ? (m(), y("div", {
7390
7391
  key: 0,
7391
7392
  class: H(["drawer", { [`drawer--${v.position}`]: v.position }]),
7392
- style: re({ zIndex: $(a)?.zIndex })
7393
+ style: oe({ zIndex: $(a)?.zIndex })
7393
7394
  }, [
7394
7395
  k("div", {
7395
7396
  class: "drawer-overlay",
7396
- onClick: g[0] || (g[0] = (h) => d())
7397
+ onClick: f[0] || (f[0] = (h) => d())
7397
7398
  }),
7398
7399
  k("div", {
7399
7400
  class: H(["drawer-wrapper", { "drawer-wrapper--no-style": v.wrapperNoStyle }]),
7400
- style: re(s.value)
7401
+ style: oe(s.value)
7401
7402
  }, [
7402
7403
  k("div", {
7403
7404
  class: "drawer-close",
7404
- onClick: g[1] || (g[1] = (h) => d())
7405
+ onClick: f[1] || (f[1] = (h) => d())
7405
7406
  }, [
7406
7407
  k("button", null, [
7407
7408
  j($(mt))
@@ -7413,7 +7414,7 @@ const Md = {
7413
7414
  ]),
7414
7415
  k("div", gu, [
7415
7416
  k("button", {
7416
- onClick: g[2] || (g[2] = (h) => d())
7417
+ onClick: f[2] || (f[2] = (h) => d())
7417
7418
  }, [
7418
7419
  j($(mt))
7419
7420
  ])
@@ -7458,15 +7459,15 @@ const Md = {
7458
7459
  l.value ? (m(), y("div", {
7459
7460
  key: 0,
7460
7461
  class: H(s.value),
7461
- style: re({ zIndex: $(n)?.zIndex })
7462
+ style: oe({ zIndex: $(n)?.zIndex })
7462
7463
  }, [
7463
7464
  k("div", {
7464
7465
  class: "modal__overlay",
7465
- onClick: d[0] || (d[0] = (f) => u.closeOnClickModal ? l.value = !1 : void 0)
7466
+ onClick: d[0] || (d[0] = (g) => u.closeOnClickModal ? l.value = !1 : void 0)
7466
7467
  }),
7467
7468
  k("div", {
7468
7469
  class: "modal__content",
7469
- style: re(u.style)
7470
+ style: oe(u.style)
7470
7471
  }, [
7471
7472
  k("div", vu, [
7472
7473
  ne(u.$slots, "header"),
@@ -7474,7 +7475,7 @@ const Md = {
7474
7475
  k("button", {
7475
7476
  text: "",
7476
7477
  class: "modal__header-close",
7477
- onClick: d[1] || (d[1] = (f) => l.value = !1)
7478
+ onClick: d[1] || (d[1] = (g) => l.value = !1)
7478
7479
  }, [
7479
7480
  j($(dt))
7480
7481
  ])
@@ -7497,39 +7498,39 @@ const Md = {
7497
7498
  },
7498
7499
  emits: ["update:open"],
7499
7500
  setup(e) {
7500
- const n = ue(e, "open"), { zIndex: t } = Xe("modal"), l = D(), o = D(), r = D(0), a = D(!1), s = D(0), i = D(0), u = D(0), d = D(0), f = D(!1), { unlockScroll: v, lockScroll: g } = yt(), h = () => {
7501
+ const n = ue(e, "open"), { zIndex: t } = Xe("modal"), l = D(), o = D(), r = D(0), a = D(!1), s = D(0), i = D(0), u = D(0), d = D(0), g = D(!1), { unlockScroll: v, lockScroll: f } = yt(), h = () => {
7501
7502
  n.value = !1;
7502
7503
  }, b = (C) => {
7503
7504
  if (!o.value) return;
7504
7505
  s.value = C.touches[0].clientY, i.value = s.value, d.value = o.value.scrollTop;
7505
7506
  const p = C.target.closest(".bottom-sheet__handle"), w = o.value.scrollTop === 0;
7506
- f.value = !!(p || w), f.value && (a.value = !0);
7507
+ g.value = !!(p || w), g.value && (a.value = !0);
7507
7508
  }, S = (C) => {
7508
- if (!a.value || !f.value || !o.value) return;
7509
+ if (!a.value || !g.value || !o.value) return;
7509
7510
  i.value = C.touches[0].clientY;
7510
7511
  const c = i.value - s.value;
7511
7512
  if (o.value.scrollTop > 0 && c < 0) {
7512
- a.value = !1, f.value = !1, r.value = 0;
7513
+ a.value = !1, g.value = !1, r.value = 0;
7513
7514
  return;
7514
7515
  }
7515
7516
  o.value.scrollTop === 0 && c < 0 || c > 0 && (C.preventDefault(), r.value = c);
7516
7517
  }, M = () => {
7517
- if (!a.value || !f.value) return;
7518
+ if (!a.value || !g.value) return;
7518
7519
  const C = u.value * 0.3;
7519
- r.value > C && h(), r.value = 0, a.value = !1, f.value = !1;
7520
+ r.value > C && h(), r.value = 0, a.value = !1, g.value = !1;
7520
7521
  }, _ = (C) => {
7521
- s.value = C.touches[0].clientY, i.value = s.value, f.value = !0, a.value = !0;
7522
+ s.value = C.touches[0].clientY, i.value = s.value, g.value = !0, a.value = !0;
7522
7523
  }, P = (C) => {
7523
- a.value = !0, f.value = !0, s.value = C.clientY, i.value = s.value;
7524
+ a.value = !0, g.value = !0, s.value = C.clientY, i.value = s.value;
7524
7525
  const c = (w) => {
7525
- if (!a.value || !f.value) return;
7526
+ if (!a.value || !g.value) return;
7526
7527
  i.value = w.clientY;
7527
7528
  const x = i.value - s.value;
7528
7529
  x > 0 && (w.preventDefault(), r.value = x);
7529
7530
  }, p = () => {
7530
- if (!a.value || !f.value) return;
7531
+ if (!a.value || !g.value) return;
7531
7532
  const w = u.value * 0.3;
7532
- r.value > w && h(), r.value = 0, a.value = !1, f.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", p);
7533
+ r.value > w && h(), r.value = 0, a.value = !1, g.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", p);
7533
7534
  };
7534
7535
  document.addEventListener("mousemove", c), document.addEventListener("mouseup", p);
7535
7536
  }, O = () => {
@@ -7542,7 +7543,7 @@ const Md = {
7542
7543
  l.value && (l.value.removeEventListener("touchstart", b), l.value.removeEventListener("touchmove", S));
7543
7544
  };
7544
7545
  return ee(n, async (C) => {
7545
- C ? (g(), await pe(), l.value && (u.value = l.value.offsetHeight, O())) : (v(), I(), r.value = 0);
7546
+ C ? (f(), await pe(), l.value && (u.value = l.value.offsetHeight, O())) : (v(), I(), r.value = 0);
7546
7547
  }), ye(() => {
7547
7548
  n.value && l.value && (u.value = l.value.offsetHeight, O());
7548
7549
  }), De(() => {
@@ -7553,7 +7554,7 @@ const Md = {
7553
7554
  n.value ? (m(), y("div", {
7554
7555
  key: 0,
7555
7556
  class: "bottom-sheet",
7556
- style: re({ zIndex: $(t)?.zIndex })
7557
+ style: oe({ zIndex: $(t)?.zIndex })
7557
7558
  }, [
7558
7559
  k("div", {
7559
7560
  class: "bottom-sheet__overlay",
@@ -7566,7 +7567,7 @@ const Md = {
7566
7567
  class: "bottom-sheet__content",
7567
7568
  ref_key: "contentRef",
7568
7569
  ref: l,
7569
- style: re({ transform: `translateY(${r.value}px)` }),
7570
+ style: oe({ transform: `translateY(${r.value}px)` }),
7570
7571
  onTouchend: M
7571
7572
  }, [
7572
7573
  k("div", {
@@ -7627,7 +7628,7 @@ const Md = {
7627
7628
  }).observe(t.value);
7628
7629
  }), (r, a) => (m(), y("div", {
7629
7630
  class: "accordion-content-wrapper",
7630
- style: re({ height: $(n) ? l.value : "0px" })
7631
+ style: oe({ height: $(n) ? l.value : "0px" })
7631
7632
  }, [
7632
7633
  Ce(k("div", {
7633
7634
  ref_key: "contentRef",
@@ -7744,16 +7745,16 @@ const Md = {
7744
7745
  },
7745
7746
  isLastItem: (u) => u === e.steps.length - 1,
7746
7747
  isStepPassed: (u) => {
7747
- const d = e.steps.findIndex((f) => f.value === l.value);
7748
+ const d = e.steps.findIndex((g) => g.value === l.value);
7748
7749
  return d === -1 ? l.value > u : d > u;
7749
7750
  }
7750
7751
  }), (u, d) => (m(), y("div", _u, [
7751
7752
  k("div", xu, [
7752
- (m(!0), y(le, null, ce(u.steps, (f, v) => (m(), W(Ru, {
7753
- key: f.value,
7753
+ (m(!0), y(le, null, ce(u.steps, (g, v) => (m(), W(Ru, {
7754
+ key: g.value,
7754
7755
  index: v,
7755
- value: f.value,
7756
- label: f.label
7756
+ value: g.value,
7757
+ label: g.label
7757
7758
  }, null, 8, ["index", "value", "label"]))), 128))
7758
7759
  ])
7759
7760
  ]));
@@ -7840,7 +7841,7 @@ const Md = {
7840
7841
  },
7841
7842
  setup(e, { expose: n }) {
7842
7843
  const t = e, l = D(), o = D(!1), r = D("top"), a = D({}), s = D({}), { zIndex: i } = Xe("tooltip");
7843
- let u = null, d = null, f = null;
7844
+ let u = null, d = null, g = null;
7844
7845
  const v = async () => {
7845
7846
  if (!u || !l.value) return;
7846
7847
  const b = l.value.querySelector(
@@ -7879,12 +7880,12 @@ const Md = {
7879
7880
  };
7880
7881
  return n({
7881
7882
  show: (b) => {
7882
- f && (clearTimeout(f), f = null), u = b, d = setTimeout(async () => {
7883
+ g && (clearTimeout(g), g = null), u = b, d = setTimeout(async () => {
7883
7884
  o.value = !0, await pe(), await v();
7884
7885
  }, t.delay);
7885
7886
  },
7886
7887
  hide: () => {
7887
- d && (clearTimeout(d), d = null), f = setTimeout(() => {
7888
+ d && (clearTimeout(d), d = null), g = setTimeout(() => {
7888
7889
  o.value = !1, u = null;
7889
7890
  }, 50);
7890
7891
  }
@@ -7896,17 +7897,17 @@ const Md = {
7896
7897
  ref_key: "tooltipRef",
7897
7898
  ref: l,
7898
7899
  class: H(["tooltip", [`tooltip--${r.value}`, b.tooltipClass]]),
7899
- style: re({ ...a.value, zIndex: $(i)?.zIndex }),
7900
+ style: oe({ ...a.value, zIndex: $(i)?.zIndex }),
7900
7901
  role: "tooltip"
7901
7902
  }, [
7902
7903
  k("div", {
7903
7904
  class: "tooltip__content",
7904
- style: re({ maxWidth: `${b.maxWidth}px` })
7905
+ style: oe({ maxWidth: `${b.maxWidth}px` })
7905
7906
  }, K(b.content), 5),
7906
7907
  b.showArrow ? (m(), y("div", {
7907
7908
  key: 0,
7908
7909
  class: "tooltip__arrow",
7909
- style: re(s.value)
7910
+ style: oe(s.value)
7910
7911
  }, null, 4)) : F("", !0)
7911
7912
  ], 6)) : F("", !0)
7912
7913
  ]),
@@ -8003,13 +8004,13 @@ const Md = {
8003
8004
  function d() {
8004
8005
  e.disabled || (t.value = !0);
8005
8006
  }
8006
- function f() {
8007
+ function g() {
8007
8008
  e.disabled || (t.value = !t.value);
8008
8009
  }
8009
8010
  function v(I) {
8010
8011
  n.value = I, a.value = I, t.value = !1;
8011
8012
  }
8012
- function g(I) {
8013
+ function f(I) {
8013
8014
  let c = I.target.value;
8014
8015
  c.endsWith(":") && c.length === 3 && (c = c.replace(":", ""));
8015
8016
  const p = c.replace(/\D/g, "");
@@ -8123,7 +8124,7 @@ const Md = {
8123
8124
  class: "time-select__input",
8124
8125
  placeholder: I.placeholder,
8125
8126
  onClick: d,
8126
- onInput: g,
8127
+ onInput: f,
8127
8128
  onFocus: d,
8128
8129
  onKeydown: M,
8129
8130
  onBlur: h,
@@ -8135,7 +8136,7 @@ const Md = {
8135
8136
  I.showCevron ? (m(), y("div", {
8136
8137
  key: 0,
8137
8138
  class: H(["time-select__arrow", { "time-select__arrow--rotated": t.value }]),
8138
- onClick: f
8139
+ onClick: g
8139
8140
  }, [
8140
8141
  j($(Tt))
8141
8142
  ], 2)) : F("", !0),
@@ -8158,7 +8159,7 @@ const Md = {
8158
8159
  ref_key: "timePickerOverlay",
8159
8160
  ref: l,
8160
8161
  class: "time-select__overlay",
8161
- style: re(o.value),
8162
+ style: oe(o.value),
8162
8163
  onClick: C[2] || (C[2] = he(() => {
8163
8164
  }, ["stop"]))
8164
8165
  }, [
@@ -8299,7 +8300,7 @@ const Md = {
8299
8300
  enabled: !1,
8300
8301
  time: { from: "", to: "" }
8301
8302
  }
8302
- ], f = T(() => l.modelValue && l.modelValue.length > 0 ? l.modelValue : d);
8303
+ ], g = T(() => l.modelValue && l.modelValue.length > 0 ? l.modelValue : d);
8303
8304
  ye(() => {
8304
8305
  (!l.modelValue || l.modelValue.length === 0) && o("update:modelValue", d);
8305
8306
  });
@@ -8311,10 +8312,10 @@ const Md = {
8311
8312
  }
8312
8313
  return p;
8313
8314
  }
8314
- const g = D(9999), h = T(() => {
8315
- const c = f.value.filter((p) => p.enabled);
8315
+ const f = D(9999), h = T(() => {
8316
+ const c = g.value.filter((p) => p.enabled);
8316
8317
  return c.length === 0 ? "" : c.length === 7 ? "Все дни недели" : c.map((p) => p.label).join(", ");
8317
- }), b = T(() => f.value.some((c) => c.enabled));
8318
+ }), b = T(() => g.value.some((c) => c.enabled));
8318
8319
  function S() {
8319
8320
  l.disabled || (r.value = !r.value);
8320
8321
  }
@@ -8322,19 +8323,19 @@ const Md = {
8322
8323
  r.value = !1;
8323
8324
  }
8324
8325
  function _(c) {
8325
- const w = f.value.map(
8326
+ const w = g.value.map(
8326
8327
  (x) => x.key === c ? { ...x, enabled: !x.enabled } : x
8327
8328
  );
8328
8329
  o("update:modelValue", w), o("change", w);
8329
8330
  }
8330
8331
  function P(c, p) {
8331
- const w = f.value.map(
8332
+ const w = g.value.map(
8332
8333
  (x) => x.key === c ? { ...x, time: p ?? { from: "", to: "" } } : x
8333
8334
  );
8334
8335
  o("update:modelValue", w), o("change", w);
8335
8336
  }
8336
8337
  function O() {
8337
- const c = f.value.map((p) => ({
8338
+ const c = g.value.map((p) => ({
8338
8339
  ...p,
8339
8340
  enabled: !1,
8340
8341
  time: { from: "", to: "" }
@@ -8344,7 +8345,7 @@ const Md = {
8344
8345
  function I() {
8345
8346
  !a.value || !r.value || pe(() => {
8346
8347
  const c = v(a.value);
8347
- g.value = c + 10;
8348
+ f.value = c + 10;
8348
8349
  const p = a.value.getBoundingClientRect(), w = window.innerHeight, x = window.innerWidth, A = w - p.bottom, z = p.top, B = A < 400 && z > A, X = Math.max(300, p.width);
8349
8350
  let R = p.left;
8350
8351
  R + X > x && (R = Math.max(0, x - X - 10)), i.value = {
@@ -8402,26 +8403,26 @@ const Md = {
8402
8403
  ], 2),
8403
8404
  j($(At), {
8404
8405
  show: r.value,
8405
- "z-index": g.value
8406
+ "z-index": f.value
8406
8407
  }, {
8407
8408
  default: ie(() => [
8408
8409
  k("div", {
8409
8410
  ref_key: "scheduleOverlay",
8410
8411
  ref: s,
8411
8412
  class: "schedule__overlay",
8412
- style: re(i.value),
8413
+ style: oe(i.value),
8413
8414
  onClick: p[0] || (p[0] = he(() => {
8414
8415
  }, ["stop"]))
8415
8416
  }, [
8416
8417
  k("div", ed, [
8417
8418
  ne(c.$slots, "content", {
8418
8419
  close: M,
8419
- days: f.value,
8420
+ days: g.value,
8420
8421
  toggleDay: _,
8421
8422
  updateDayTime: P
8422
8423
  }, () => [
8423
8424
  k("div", td, [
8424
- (m(!0), y(le, null, ce(f.value, (w) => (m(), y("div", {
8425
+ (m(!0), y(le, null, ce(g.value, (w) => (m(), y("div", {
8425
8426
  key: w.key,
8426
8427
  class: "schedule__day"
8427
8428
  }, [