prlg-ui 1.8.108 → 1.8.109

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 Y, computed as P, resolveComponent as ul, createBlock as U, openBlock as v, resolveDynamicComponent as Pe, normalizeClass as z, withCtx as oe, createCommentVNode as A, createElementBlock as p, renderSlot as J, Fragment as re, createTextVNode as ve, toDisplayString as j, ref as I, useTemplateRef as Ze, onMounted as he, createElementVNode as b, createVNode as K, renderList as ge, unref as k, mergeModels as ae, useModel as ie, withDirectives as be, vModelCheckbox as Mt, shallowRef as Oe, watch as ee, getCurrentScope as Ml, onScopeDispose as Al, shallowReadonly as Ye, toRefs as Ol, useId as nt, onUnmounted as Ve, Transition as Te, normalizeStyle as le, nextTick as fe, withModifiers as pe, vModelRadio as Bl, vModelText as ze, provide as _e, toRef as Ke, useSlots as cl, inject as ye, vModelDynamic as El, toValue as je, isRef as Ll, vModelSelect as Dl, createStaticVNode as zl, Teleport as Le, reactive as At, TransitionGroup as Hl, vShow as dl, createApp as Fl } from "vue";
1
+ import { defineComponent as Y, computed as R, resolveComponent as ul, createBlock as U, openBlock as v, resolveDynamicComponent as Pe, normalizeClass as z, withCtx as oe, createCommentVNode as A, createElementBlock as p, renderSlot as J, Fragment as re, createTextVNode as ve, toDisplayString as j, ref as P, useTemplateRef as Ze, onMounted as he, createElementVNode as w, createVNode as K, renderList as ge, unref as k, mergeModels as ae, useModel as ie, withDirectives as be, vModelCheckbox as Mt, shallowRef as Oe, watch as ee, getCurrentScope as Ml, onScopeDispose as Al, shallowReadonly as Ye, toRefs as Ol, useId as nt, onUnmounted as Ve, Transition as Te, normalizeStyle as le, nextTick as fe, withModifiers as pe, vModelRadio as Bl, vModelText as ze, provide as _e, toRef as Ke, useSlots as cl, inject as ye, vModelDynamic as El, toValue as je, isRef as Ll, vModelSelect as Dl, createStaticVNode as zl, Teleport as Le, reactive as At, TransitionGroup as Hl, vShow as dl, createApp as Fl } from "vue";
2
2
  import { P as fl, h as ql, i as Nl, I as vl, e as ct, C as bt, A as Wl, a as ml, f as Yl, M as jl, S as Kl, g as Ul, b as Zl, c as Ql, E as Xl, B as Gl, d as Jl, Q as en, W as Wt } from "./QuestionIcon-tK1kUB_h.js";
3
3
  import { o as tn, d as se } from "./parseFileSize.util-CxVk4CvB.js";
4
4
  import { _ as ue, C as et, a as ln } from "./FileIcon-maHE2Nhr.js";
@@ -24,7 +24,7 @@ const on = {
24
24
  full: { type: Boolean }
25
25
  },
26
26
  setup(e) {
27
- const l = P(() => e.variant === "link" && e.url || e.url ? ul("RouterLink") : "button"), t = P(() => [
27
+ const l = R(() => e.variant === "link" && e.url || e.url ? ul("RouterLink") : "button"), t = R(() => [
28
28
  "button",
29
29
  `button--${e.size}`,
30
30
  `button--${e.variant}`,
@@ -65,7 +65,7 @@ const on = {
65
65
  size: { default: "default" }
66
66
  },
67
67
  setup(e) {
68
- const l = I(!1), t = Ze("menuRef"), a = Ze("targetRef"), n = () => {
68
+ const l = P(!1), t = Ze("menuRef"), a = Ze("targetRef"), n = () => {
69
69
  l.value = !l.value;
70
70
  }, i = (o) => {
71
71
  o.command && o.command(), l.value = !1;
@@ -75,7 +75,7 @@ const on = {
75
75
  l.value = !1;
76
76
  }, { ignore: [a.value?.$el] });
77
77
  }), (o, s) => (v(), p("div", an, [
78
- b("div", {
78
+ w("div", {
79
79
  ref_key: "menuRef",
80
80
  ref: t,
81
81
  class: z(["sleed-deal-menu sleed-deal__items", { "sleed-deal-menu--open": l.value }])
@@ -89,7 +89,7 @@ const on = {
89
89
  key: 0,
90
90
  class: "sleed-deal-menu__item-icon"
91
91
  })) : A("", !0),
92
- b("span", rn, j(r.label), 1)
92
+ w("span", rn, j(r.label), 1)
93
93
  ], 8, sn))), 128))
94
94
  ], 2),
95
95
  K(k(Se), {
@@ -143,7 +143,7 @@ const on = {
143
143
  }),
144
144
  emits: /* @__PURE__ */ ae(["change"], ["update:modelValue"]),
145
145
  setup(e, { emit: l }) {
146
- const t = l, a = P({
146
+ const t = l, a = R({
147
147
  get() {
148
148
  if (!e.indeterminate) {
149
149
  if (e.trueValue && e.falseValue)
@@ -173,7 +173,7 @@ const on = {
173
173
  else
174
174
  n.value = s;
175
175
  }
176
- }), n = ie(e, "modelValue"), i = P(() => Math.random().toString(36).substr(2, 9)), o = P(() => [
176
+ }), n = ie(e, "modelValue"), i = R(() => Math.random().toString(36).substr(2, 9)), o = R(() => [
177
177
  "checkbox",
178
178
  `checkbox--${e.size}`,
179
179
  {
@@ -185,7 +185,7 @@ const on = {
185
185
  for: i.value,
186
186
  class: z(o.value)
187
187
  }, [
188
- be(b("input", {
188
+ be(w("input", {
189
189
  "onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u),
190
190
  id: i.value,
191
191
  type: "checkbox",
@@ -199,15 +199,15 @@ const on = {
199
199
  }, null, 40, cn), [
200
200
  [Mt, a.value]
201
201
  ]),
202
- b("div", dn, [
203
- b("div", fn, [
202
+ w("div", dn, [
203
+ w("div", fn, [
204
204
  a.value || s.checked ? (v(), p("svg", vn, [...r[2] || (r[2] = [
205
- b("path", {
205
+ w("path", {
206
206
  d: "M4.50746 9.32454L1.40518 5.87678L0.371094 7.02603L4.50746 11.623L13.3711 1.7723L12.337 0.623047L4.50746 9.32454Z",
207
207
  fill: "white"
208
208
  }, null, -1)
209
209
  ])])) : a.value === null ? (v(), p("svg", mn, [...r[3] || (r[3] = [
210
- b("path", {
210
+ w("path", {
211
211
  d: "M0.371094 1.62305L12.3711 1.62305",
212
212
  stroke: "white",
213
213
  "stroke-width": "2"
@@ -229,7 +229,7 @@ const on = {
229
229
  },
230
230
  emits: ["updateSort"],
231
231
  setup(e, { emit: l }) {
232
- const t = I({
232
+ const t = P({
233
233
  field: "",
234
234
  order: null
235
235
  }), a = l, n = () => {
@@ -423,7 +423,7 @@ const Pn = async (e, l, t) => {
423
423
  } = s[$], {
424
424
  x: _,
425
425
  y: B,
426
- data: R,
426
+ data: M,
427
427
  reset: x
428
428
  } = await O({
429
429
  x: f,
@@ -443,7 +443,7 @@ const Pn = async (e, l, t) => {
443
443
  ...y,
444
444
  [S]: {
445
445
  ...y[S],
446
- ...R
446
+ ...M
447
447
  }
448
448
  }, x && g <= 50 && (g++, typeof x == "object" && (x.placement && (h = x.placement), x.rects && (u = x.rects === !0 ? await o.getElementRects({
449
449
  reference: e,
@@ -488,7 +488,7 @@ async function mt(e, l) {
488
488
  y: n,
489
489
  width: o.floating.width,
490
490
  height: o.floating.height
491
- } : o.reference, B = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), R = await (i.isElement == null ? void 0 : i.isElement(B)) ? await (i.getScale == null ? void 0 : i.getScale(B)) || {
491
+ } : o.reference, B = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), M = await (i.isElement == null ? void 0 : i.isElement(B)) ? await (i.getScale == null ? void 0 : i.getScale(B)) || {
492
492
  x: 1,
493
493
  y: 1
494
494
  } : {
@@ -501,10 +501,10 @@ async function mt(e, l) {
501
501
  strategy: r
502
502
  }) : _);
503
503
  return {
504
- top: (O.top - x.top + g.top) / R.y,
505
- bottom: (x.bottom - O.bottom + g.bottom) / R.y,
506
- left: (O.left - x.left + g.left) / R.x,
507
- right: (x.right - O.right + g.right) / R.x
504
+ top: (O.top - x.top + g.top) / M.y,
505
+ bottom: (x.bottom - O.bottom + g.bottom) / M.y,
506
+ left: (O.left - x.left + g.left) / M.x,
507
+ right: (x.right - O.right + g.right) / M.x
508
508
  };
509
509
  }
510
510
  const Rn = (e) => ({
@@ -528,10 +528,10 @@ const Rn = (e) => ({
528
528
  const m = gl(f), h = {
529
529
  x: t,
530
530
  y: a
531
- }, y = Bt(n), g = Ot(y), $ = await o.getDimensions(u), S = y === "y", O = S ? "top" : "left", _ = S ? "bottom" : "right", B = S ? "clientHeight" : "clientWidth", R = i.reference[g] + i.reference[y] - h[y] - i.floating[g], x = h[y] - i.reference[y], d = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
531
+ }, y = Bt(n), g = Ot(y), $ = await o.getDimensions(u), S = y === "y", O = S ? "top" : "left", _ = S ? "bottom" : "right", B = S ? "clientHeight" : "clientWidth", M = i.reference[g] + i.reference[y] - h[y] - i.floating[g], x = h[y] - i.reference[y], d = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
532
532
  let c = d ? d[B] : 0;
533
533
  (!c || !await (o.isElement == null ? void 0 : o.isElement(d))) && (c = s.floating[B] || i.floating[g]);
534
- const w = R / 2 - x / 2, M = c / 2 - $[g] / 2 - 1, D = Ge(m[O], M), L = Ge(m[_], M), N = D, q = c - $[g] - L, F = c / 2 - $[g] / 2 + w, V = Tt(N, F, q), T = !r.arrow && st(n) != null && F !== V && i.reference[g] / 2 - (F < N ? D : L) - $[g] / 2 < 0, H = T ? F < N ? F - N : F - q : 0;
534
+ const b = M / 2 - x / 2, I = c / 2 - $[g] / 2 - 1, L = Ge(m[O], I), D = Ge(m[_], I), N = L, q = c - $[g] - D, F = c / 2 - $[g] / 2 + b, V = Tt(N, F, q), T = !r.arrow && st(n) != null && F !== V && i.reference[g] / 2 - (F < N ? L : D) - $[g] / 2 < 0, H = T ? F < N ? F - N : F - q : 0;
535
535
  return {
536
536
  [y]: h[y] + H,
537
537
  data: {
@@ -568,38 +568,38 @@ const Rn = (e) => ({
568
568
  } = tt(e, l);
569
569
  if ((t = i.arrow) != null && t.alignmentOffset)
570
570
  return {};
571
- const O = He(n), _ = Be(s), B = He(s) === s, R = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), x = h || (B || !$ ? [ft(s)] : Sn(s)), d = g !== "none";
572
- !h && d && x.push(...Tn(s, $, g, R));
573
- const c = [s, ...x], w = await mt(l, S), M = [];
574
- let D = ((a = i.flip) == null ? void 0 : a.overflows) || [];
575
- if (f && M.push(w[O]), m) {
576
- const F = $n(n, o, R);
577
- M.push(w[F[0]], w[F[1]]);
571
+ const O = He(n), _ = Be(s), B = He(s) === s, M = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), x = h || (B || !$ ? [ft(s)] : Sn(s)), d = g !== "none";
572
+ !h && d && x.push(...Tn(s, $, g, M));
573
+ const c = [s, ...x], b = await mt(l, S), I = [];
574
+ let L = ((a = i.flip) == null ? void 0 : a.overflows) || [];
575
+ if (f && I.push(b[O]), m) {
576
+ const F = $n(n, o, M);
577
+ I.push(b[F[0]], b[F[1]]);
578
578
  }
579
- if (D = [...D, {
579
+ if (L = [...L, {
580
580
  placement: n,
581
- overflows: M
582
- }], !M.every((F) => F <= 0)) {
583
- var L, N;
584
- const F = (((L = i.flip) == null ? void 0 : L.index) || 0) + 1, V = c[F];
581
+ overflows: I
582
+ }], !I.every((F) => F <= 0)) {
583
+ var D, N;
584
+ const F = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, V = c[F];
585
585
  if (V && (!(m === "alignment" ? _ !== Be(V) : !1) || // We leave the current main axis only if every placement on that axis
586
586
  // overflows the main axis.
587
- D.every((Z) => Be(Z.placement) === _ ? Z.overflows[0] > 0 : !0)))
587
+ L.every((Z) => Be(Z.placement) === _ ? Z.overflows[0] > 0 : !0)))
588
588
  return {
589
589
  data: {
590
590
  index: F,
591
- overflows: D
591
+ overflows: L
592
592
  },
593
593
  reset: {
594
594
  placement: V
595
595
  }
596
596
  };
597
- let T = (N = D.filter((H) => H.overflows[0] <= 0).sort((H, Z) => H.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : N.placement;
597
+ let T = (N = L.filter((H) => H.overflows[0] <= 0).sort((H, Z) => H.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : N.placement;
598
598
  if (!T)
599
599
  switch (y) {
600
600
  case "bestFit": {
601
601
  var q;
602
- const H = (q = D.filter((Z) => {
602
+ const H = (q = L.filter((Z) => {
603
603
  if (d) {
604
604
  const X = Be(Z.placement);
605
605
  return X === _ || // Create a bias to the `y` side axis due to horizontal
@@ -949,8 +949,8 @@ function Fe(e, l, t, a) {
949
949
  const h = we(i), y = a && Ce(a) ? we(a) : a;
950
950
  let g = h, $ = Pt(g);
951
951
  for (; $ && a && y !== g; ) {
952
- const S = Qe($), O = $.getBoundingClientRect(), _ = xe($), B = O.left + ($.clientLeft + parseFloat(_.paddingLeft)) * S.x, R = O.top + ($.clientTop + parseFloat(_.paddingTop)) * S.y;
953
- r *= S.x, u *= S.y, f *= S.x, m *= S.y, r += B, u += R, g = we($), $ = Pt(g);
952
+ const S = Qe($), O = $.getBoundingClientRect(), _ = xe($), B = O.left + ($.clientLeft + parseFloat(_.paddingLeft)) * S.x, M = O.top + ($.clientTop + parseFloat(_.paddingTop)) * S.y;
953
+ r *= S.x, u *= S.y, f *= S.x, m *= S.y, r += B, u += M, g = we($), $ = Pt(g);
954
954
  }
955
955
  }
956
956
  return vt({
@@ -1211,17 +1211,17 @@ function io(e, l) {
1211
1211
  rootMargin: -g + "px " + -$ + "px " + -S + "px " + -O + "px",
1212
1212
  threshold: De(0, Ge(1, r)) || 1
1213
1213
  };
1214
- let R = !0;
1214
+ let M = !0;
1215
1215
  function x(d) {
1216
1216
  const c = d[0].intersectionRatio;
1217
1217
  if (c !== r) {
1218
- if (!R)
1218
+ if (!M)
1219
1219
  return o();
1220
1220
  c ? o(!1, c) : a = setTimeout(() => {
1221
1221
  o(!1, 1e-7);
1222
1222
  }, 1e3);
1223
1223
  }
1224
- c === 1 && !$l(u, e.getBoundingClientRect()) && o(), R = !1;
1224
+ c === 1 && !$l(u, e.getBoundingClientRect()) && o(), M = !1;
1225
1225
  }
1226
1226
  try {
1227
1227
  t = new IntersectionObserver(x, {
@@ -1320,19 +1320,19 @@ function tl(e, l) {
1320
1320
  }
1321
1321
  function ll(e, l, t) {
1322
1322
  t === void 0 && (t = {});
1323
- const a = t.whileElementsMounted, n = P(() => {
1323
+ const a = t.whileElementsMounted, n = R(() => {
1324
1324
  var c;
1325
1325
  return (c = Ue(t.open)) != null ? c : !0;
1326
- }), i = P(() => Ue(t.middleware)), o = P(() => {
1326
+ }), i = R(() => Ue(t.middleware)), o = R(() => {
1327
1327
  var c;
1328
1328
  return (c = Ue(t.placement)) != null ? c : "bottom";
1329
- }), s = P(() => {
1329
+ }), s = R(() => {
1330
1330
  var c;
1331
1331
  return (c = Ue(t.strategy)) != null ? c : "absolute";
1332
- }), r = P(() => {
1332
+ }), r = R(() => {
1333
1333
  var c;
1334
1334
  return (c = Ue(t.transform)) != null ? c : !0;
1335
- }), u = P(() => Rt(e.value)), f = P(() => Rt(l.value)), m = I(0), h = I(0), y = I(s.value), g = I(o.value), $ = Oe({}), S = I(!1), O = P(() => {
1335
+ }), u = R(() => Rt(e.value)), f = R(() => Rt(l.value)), m = P(0), h = P(0), y = P(s.value), g = P(o.value), $ = Oe({}), S = P(!1), O = R(() => {
1336
1336
  const c = {
1337
1337
  position: y.value,
1338
1338
  left: "0",
@@ -1340,17 +1340,17 @@ function ll(e, l, t) {
1340
1340
  };
1341
1341
  if (!f.value)
1342
1342
  return c;
1343
- const w = tl(f.value, m.value), M = tl(f.value, h.value);
1343
+ const b = tl(f.value, m.value), I = tl(f.value, h.value);
1344
1344
  return r.value ? {
1345
1345
  ...c,
1346
- transform: "translate(" + w + "px, " + M + "px)",
1346
+ transform: "translate(" + b + "px, " + I + "px)",
1347
1347
  ...xl(f.value) >= 1.5 && {
1348
1348
  willChange: "transform"
1349
1349
  }
1350
1350
  } : {
1351
1351
  position: y.value,
1352
- left: w + "px",
1353
- top: M + "px"
1352
+ left: b + "px",
1353
+ top: I + "px"
1354
1354
  };
1355
1355
  });
1356
1356
  let _;
@@ -1362,15 +1362,15 @@ function ll(e, l, t) {
1362
1362
  middleware: i.value,
1363
1363
  placement: o.value,
1364
1364
  strategy: s.value
1365
- }).then((w) => {
1366
- m.value = w.x, h.value = w.y, y.value = w.strategy, g.value = w.placement, $.value = w.middlewareData, S.value = c !== !1;
1365
+ }).then((b) => {
1366
+ m.value = b.x, h.value = b.y, y.value = b.strategy, g.value = b.placement, $.value = b.middlewareData, S.value = c !== !1;
1367
1367
  });
1368
1368
  }
1369
- function R() {
1369
+ function M() {
1370
1370
  typeof _ == "function" && (_(), _ = void 0);
1371
1371
  }
1372
1372
  function x() {
1373
- if (R(), a === void 0) {
1373
+ if (M(), a === void 0) {
1374
1374
  B();
1375
1375
  return;
1376
1376
  }
@@ -1388,7 +1388,7 @@ function ll(e, l, t) {
1388
1388
  flush: "sync"
1389
1389
  }), ee(n, d, {
1390
1390
  flush: "sync"
1391
- }), Ml() && Al(R), {
1391
+ }), Ml() && Al(M), {
1392
1392
  x: Ye(m),
1393
1393
  y: Ye(h),
1394
1394
  strategy: Ye(y),
@@ -1434,14 +1434,14 @@ const vo = {
1434
1434
  },
1435
1435
  emits: ["update:modelValue"],
1436
1436
  setup(e, { expose: l, emit: t }) {
1437
- const a = e, { placement: n, offset: i, arrowVisible: o, closeMode: s, modelValue: r } = Ol(a), u = t, f = Ze("reference"), m = Ze("floating"), h = Ze("arrow-block"), y = Ze("second-screen"), g = P(() => "23px"), $ = P(() => i ? typeof i.value == "number" ? i.value + Number(g.value.split("px")[0]) : {
1437
+ const a = e, { placement: n, offset: i, arrowVisible: o, closeMode: s, modelValue: r } = Ol(a), u = t, f = Ze("reference"), m = Ze("floating"), h = Ze("arrow-block"), y = Ze("second-screen"), g = R(() => "23px"), $ = R(() => i ? typeof i.value == "number" ? i.value + Number(g.value.split("px")[0]) : {
1438
1438
  mainAxis: i.value?.mainAxis ? i.value?.mainAxis + Number(g.value.split("px")[0]) / 2 : Number(g.value.split("px")[0]) / 2,
1439
1439
  crossAxis: i.value?.crossAxis ? n.value?.includes("start") ? i.value?.crossAxis - Number(g.value.split("px")[0]) : n.value?.includes("end") ? i.value?.crossAxis + Number(g.value.split("px")[0]) : i.value?.crossAxis : n.value?.includes("start") ? -Number(g.value.split("px")[0]) : n.value?.includes("end") ? Number(g.value.split("px")[0]) : void 0,
1440
1440
  alignmentAxis: i.value?.alignmentAxis
1441
1441
  } : {
1442
1442
  mainAxis: Number(g.value.split("px")[0]) / 2,
1443
1443
  crossAxis: n.value?.includes("start") ? -Number(g.value.split("px")[0]) : n.value?.includes("end") ? Number(g.value.split("px")[0]) : void 0
1444
- }), S = I([
1444
+ }), S = P([
1445
1445
  el(),
1446
1446
  gt({ padding: 8, crossAxis: !1, mainAxis: !0 }),
1447
1447
  pt($.value),
@@ -1450,19 +1450,19 @@ const vo = {
1450
1450
  floatingStyles: O,
1451
1451
  middlewareData: _,
1452
1452
  update: B,
1453
- placement: R
1453
+ placement: M
1454
1454
  } = ll(f, m, {
1455
1455
  placement: n.value,
1456
1456
  middleware: S
1457
- }), x = I("left-start"), { floatingStyles: d, update: c } = ll(m, y, {
1457
+ }), x = P("left-start"), { floatingStyles: d, update: c } = ll(m, y, {
1458
1458
  placement: x,
1459
1459
  middleware: [el(), gt({ padding: 8 }), pt(8)]
1460
- }), w = nt(), M = I(!1), D = I(!1), L = I(!1), { lockScroll: N, unlockScroll: q } = ot(), F = I(null), V = I(null), T = () => {
1461
- B(), D.value && c();
1462
- }, H = P(() => r && r.value !== void 0), Z = P({
1463
- get: () => H.value ? r?.value : M.value,
1460
+ }), b = nt(), I = P(!1), L = P(!1), D = P(!1), { lockScroll: N, unlockScroll: q } = ot(), F = P(null), V = P(null), T = () => {
1461
+ B(), L.value && c();
1462
+ }, H = R(() => r && r.value !== void 0), Z = R({
1463
+ get: () => H.value ? r?.value : I.value,
1464
1464
  set: (te) => {
1465
- H.value ? u("update:modelValue", te) : M.value = te;
1465
+ H.value ? u("update:modelValue", te) : I.value = te;
1466
1466
  }
1467
1467
  }), X = () => {
1468
1468
  Z.value = !0;
@@ -1473,25 +1473,25 @@ const vo = {
1473
1473
  }, W = () => {
1474
1474
  H.value ? X() : E();
1475
1475
  }, G = async (te) => {
1476
- te && te.stopPropagation(), m.value && (D.value = !0);
1476
+ te && te.stopPropagation(), m.value && (L.value = !0);
1477
1477
  }, Q = () => {
1478
- D.value = !1;
1478
+ L.value = !1;
1479
1479
  }, ne = (te) => {
1480
1480
  if (s.value === "button-only") return;
1481
1481
  const me = te.composedPath();
1482
1482
  if (!(y.value && me.includes(y.value))) {
1483
1483
  if (m.value && me.includes(m.value) || f.value && me.includes(f.value)) {
1484
1484
  setTimeout(() => {
1485
- D.value && Q();
1485
+ L.value && Q();
1486
1486
  }, 0);
1487
1487
  return;
1488
1488
  }
1489
1489
  C();
1490
1490
  }
1491
- }, Ae = P(() => {
1491
+ }, Ae = R(() => {
1492
1492
  if (!_.value.arrow) return {};
1493
1493
  const { x: te, y: me } = _.value.arrow;
1494
- switch (R.value) {
1494
+ switch (M.value) {
1495
1495
  case "top":
1496
1496
  return {
1497
1497
  left: te ? `${te}px` : "-9px",
@@ -1510,12 +1510,12 @@ const vo = {
1510
1510
  }), ee(
1511
1511
  Z,
1512
1512
  async (te) => {
1513
- te || (Q(), L.value = !1), te && s.value === "button-only" ? (N(), setTimeout(() => {
1514
- T(), L.value = !0;
1513
+ te || (Q(), D.value = !1), te && s.value === "button-only" ? (N(), setTimeout(() => {
1514
+ T(), D.value = !0;
1515
1515
  }, 0)) : !te && s.value === "button-only" ? (q(), setTimeout(() => {
1516
1516
  T();
1517
1517
  }, 0)) : te && setTimeout(() => {
1518
- T(), L.value = !0;
1518
+ T(), D.value = !0;
1519
1519
  }, 0);
1520
1520
  },
1521
1521
  { immediate: !0 }
@@ -1563,18 +1563,18 @@ const vo = {
1563
1563
  T();
1564
1564
  },
1565
1565
  isOpen: Z,
1566
- isSecondScreenOpen: D
1566
+ isSecondScreenOpen: L
1567
1567
  }), (te, me) => (v(), p("div", {
1568
1568
  class: z(["popover", { "popover--with-arrow": k(o) }])
1569
1569
  }, [
1570
- b("div", {
1571
- class: z(["popover__trigger", `popover__trigger--${k(w)}`]),
1570
+ w("div", {
1571
+ class: z(["popover__trigger", `popover__trigger--${k(b)}`]),
1572
1572
  ref: "reference",
1573
1573
  onClick: W
1574
1574
  }, [
1575
1575
  J(te.$slots, "trigger", {}, void 0, !0)
1576
1576
  ], 2),
1577
- b("div", null, [
1577
+ w("div", null, [
1578
1578
  K(Te, { name: "fade" }, {
1579
1579
  default: oe(() => [
1580
1580
  Z.value && k(s) === "button-only" ? (v(), p("div", vo)) : A("", !0)
@@ -1586,14 +1586,14 @@ const vo = {
1586
1586
  Z.value ? (v(), p("div", {
1587
1587
  key: 0,
1588
1588
  class: z(["popover__wrapper", [
1589
- `popover__wrapper--${k(w)}`,
1589
+ `popover__wrapper--${k(b)}`,
1590
1590
  { "popover__wrapper--no-style": e.withoutStyle },
1591
- { "popover__wrapper--positioning": !L.value }
1591
+ { "popover__wrapper--positioning": !D.value }
1592
1592
  ]]),
1593
1593
  style: le({ ...k(O) }),
1594
1594
  ref: "floating"
1595
1595
  }, [
1596
- b("div", mo, [
1596
+ w("div", mo, [
1597
1597
  k(o) ? (v(), p("div", po, [
1598
1598
  J(te.$slots, "default", {
1599
1599
  openSecondScreen: G,
@@ -1619,7 +1619,7 @@ const vo = {
1619
1619
  }),
1620
1620
  K(Te, { name: "slide" }, {
1621
1621
  default: oe(() => [
1622
- D.value ? (v(), p("div", {
1622
+ L.value ? (v(), p("div", {
1623
1623
  key: 0,
1624
1624
  class: "popover__second-screen",
1625
1625
  ref: "second-screen",
@@ -1646,12 +1646,12 @@ const vo = {
1646
1646
  offset: { alignmentAxis: -20, mainAxis: 13 }
1647
1647
  }, {
1648
1648
  trigger: oe(() => [
1649
- b("div", yo, [
1649
+ w("div", yo, [
1650
1650
  K(k(vl))
1651
1651
  ])
1652
1652
  ]),
1653
1653
  default: oe(() => [
1654
- b("span", bo, j(l.description), 1)
1654
+ w("span", bo, j(l.description), 1)
1655
1655
  ]),
1656
1656
  _: 1
1657
1657
  }));
@@ -1673,7 +1673,7 @@ const vo = {
1673
1673
  },
1674
1674
  emits: ["update:sort", "selectAllRow"],
1675
1675
  setup(e, { emit: l }) {
1676
- const t = l, a = P(() => [
1676
+ const t = l, a = R(() => [
1677
1677
  "table-header",
1678
1678
  `table-header--${e.size}`
1679
1679
  ]), n = (o) => [
@@ -1686,13 +1686,13 @@ const vo = {
1686
1686
  return (o, s) => (v(), p("thead", {
1687
1687
  class: z(a.value)
1688
1688
  }, [
1689
- b("tr", _o, [
1689
+ w("tr", _o, [
1690
1690
  (v(!0), p(re, null, ge(o.columns, (r, u) => (v(), p("th", {
1691
1691
  class: z(n(r)),
1692
1692
  key: u,
1693
1693
  style: le(i(r))
1694
1694
  }, [
1695
- b("div", {
1695
+ w("div", {
1696
1696
  class: z(["table-header__cell-body", { "table-header__cell-body--center": r.selectionMode }])
1697
1697
  }, [
1698
1698
  r.selectionMode && r.selectionMode === "multiple" ? (v(), U(k(at), {
@@ -1730,7 +1730,7 @@ const vo = {
1730
1730
  },
1731
1731
  emits: ["toggleRow"],
1732
1732
  setup(e, { emit: l }) {
1733
- const t = l, a = P(() => Array.isArray(e.selectedRows) ? e.selectedRows.includes(e.item) : e.selectedRows === e.item), n = P(() => [
1733
+ const t = l, a = R(() => Array.isArray(e.selectedRows) ? e.selectedRows.includes(e.item) : e.selectedRows === e.item), n = R(() => [
1734
1734
  "table-cell",
1735
1735
  `table-cell--vertical-${e.column.alignVertical || "top"}`,
1736
1736
  `table-cell--${e.column.selectionMode ? "center" : e.column.align || "left"}`,
@@ -1772,7 +1772,7 @@ const vo = {
1772
1772
  },
1773
1773
  emits: ["rowClickHandler", "toggleRow"],
1774
1774
  setup(e, { emit: l }) {
1775
- const t = l, a = P(() => e.rowStyle ? e.rowStyle(e.item) : {});
1775
+ const t = l, a = R(() => e.rowStyle ? e.rowStyle(e.item) : {});
1776
1776
  return (n, i) => (v(), p("tr", {
1777
1777
  class: z(["table-row", { "table-row--hovered-color": n.colorHovered }]),
1778
1778
  style: le(a.value),
@@ -1803,11 +1803,11 @@ const vo = {
1803
1803
  },
1804
1804
  emits: ["rowClickHandler", "toggleRow"],
1805
1805
  setup(e, { expose: l, emit: t }) {
1806
- const a = t, n = I(), i = I(0), o = I(0), s = P(() => !e.virtualScroll || !e.virtualScroll.enable ? 0 : Math.floor(i.value / e.virtualScroll.itemHeight)), r = P(() => {
1806
+ const a = t, n = P(), i = P(0), o = P(0), s = R(() => !e.virtualScroll || !e.virtualScroll.enable ? 0 : Math.floor(i.value / e.virtualScroll.itemHeight)), r = R(() => {
1807
1807
  if (!e.virtualScroll || !e.virtualScroll.enable) return e.data.length;
1808
1808
  const h = Math.ceil(o.value / e.virtualScroll.itemHeight);
1809
1809
  return Math.min(s.value + h + 5, e.data.length);
1810
- }), u = P(() => !e.virtualScroll || !e.virtualScroll.enable ? e.data : e.data.slice(s.value, r.value)), f = (h) => {
1810
+ }), u = R(() => !e.virtualScroll || !e.virtualScroll.enable ? e.data : e.data.slice(s.value, r.value)), f = (h) => {
1811
1811
  h ? i.value = h.scrollTop : n.value && (i.value = n.value.scrollTop);
1812
1812
  };
1813
1813
  he(async () => {
@@ -1829,7 +1829,7 @@ const vo = {
1829
1829
  key: 0,
1830
1830
  style: le({ height: `${s.value * h.virtualScroll.itemHeight}px` })
1831
1831
  }, [
1832
- b("td", {
1832
+ w("td", {
1833
1833
  colspan: h.columns.length
1834
1834
  }, null, 8, Po)
1835
1835
  ], 4)) : A("", !0),
@@ -1849,7 +1849,7 @@ const vo = {
1849
1849
  key: 1,
1850
1850
  style: le({ height: `${(h.data.length - r.value) * h.virtualScroll.itemHeight}px` })
1851
1851
  }, [
1852
- b("td", {
1852
+ w("td", {
1853
1853
  colspan: h.columns.length
1854
1854
  }, null, 8, Ro)
1855
1855
  ], 4)) : A("", !0)
@@ -1887,7 +1887,7 @@ const vo = {
1887
1887
  },
1888
1888
  emits: ["remove"],
1889
1889
  setup(e, { emit: l }) {
1890
- const t = l, a = P(() => [
1890
+ const t = l, a = R(() => [
1891
1891
  "tag",
1892
1892
  `tag--${e.variant}`,
1893
1893
  {
@@ -1901,11 +1901,11 @@ const vo = {
1901
1901
  return (n, i) => (v(), p("div", {
1902
1902
  class: z(a.value)
1903
1903
  }, [
1904
- b("div", Ao, [
1904
+ w("div", Ao, [
1905
1905
  n.icon ? (v(), p("div", Oo, [
1906
1906
  (v(), U(Pe(n.icon)))
1907
1907
  ])) : A("", !0),
1908
- b("div", Bo, [
1908
+ w("div", Bo, [
1909
1909
  J(n.$slots, "default")
1910
1910
  ])
1911
1911
  ]),
@@ -1932,11 +1932,11 @@ const vo = {
1932
1932
  }),
1933
1933
  emits: /* @__PURE__ */ ae(["change"], ["update:modelValue"]),
1934
1934
  setup(e, { emit: l }) {
1935
- const t = ie(e, "modelValue"), a = nt(), n = l, i = P(() => ["radio", `radio--${e.size}`]);
1935
+ const t = ie(e, "modelValue"), a = nt(), n = l, i = R(() => ["radio", `radio--${e.size}`]);
1936
1936
  return (o, s) => (v(), p("div", {
1937
1937
  class: z(i.value)
1938
1938
  }, [
1939
- be(b("input", {
1939
+ be(w("input", {
1940
1940
  "onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
1941
1941
  type: "radio",
1942
1942
  name: o.name,
@@ -1948,10 +1948,10 @@ const vo = {
1948
1948
  }, null, 40, Eo), [
1949
1949
  [Bl, t.value]
1950
1950
  ]),
1951
- s[2] || (s[2] = b("div", { class: "radio__track" }, [
1952
- b("div", { class: "radio__thumb" })
1951
+ s[2] || (s[2] = w("div", { class: "radio__track" }, [
1952
+ w("div", { class: "radio__thumb" })
1953
1953
  ], -1)),
1954
- b("label", {
1954
+ w("label", {
1955
1955
  for: k(a),
1956
1956
  class: "radio__label"
1957
1957
  }, [
@@ -2003,7 +2003,7 @@ const vo = {
2003
2003
  },
2004
2004
  emits: ["update:modelValue", "search", "change", "clear", "remove-tag"],
2005
2005
  setup(e, { emit: l }) {
2006
- const t = e, a = l, n = I(!1), i = I(""), o = I(), s = I(), r = I(), u = I({});
2006
+ const t = e, a = l, n = P(!1), i = P(""), o = P(), s = P(), r = P(), u = P({});
2007
2007
  function f(V) {
2008
2008
  let T = 1e3, H = V;
2009
2009
  for (; H && H !== document.body; ) {
@@ -2012,25 +2012,25 @@ const vo = {
2012
2012
  }
2013
2013
  return T;
2014
2014
  }
2015
- const m = I(9999), h = P(() => {
2015
+ const m = P(9999), h = R(() => {
2016
2016
  if (!t.modelValue) return [];
2017
2017
  if (t.multiple)
2018
2018
  return (Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]).map((T) => {
2019
2019
  if (typeof T == "object" && T !== null)
2020
2020
  return T;
2021
- const H = t.options?.find((X) => R(X) === T);
2021
+ const H = t.options?.find((X) => M(X) === T);
2022
2022
  return H || { value: T, label: String(T) };
2023
2023
  }).filter((T) => T !== void 0);
2024
2024
  {
2025
2025
  if (typeof t.modelValue == "object" && t.modelValue !== null)
2026
2026
  return [t.modelValue];
2027
- const V = t.options?.find((T) => R(T) === t.modelValue);
2027
+ const V = t.options?.find((T) => M(T) === t.modelValue);
2028
2028
  return V ? [V] : [];
2029
2029
  }
2030
- }), y = P(() => t.multiple || !h.value.length ? "" : x(h.value[0])), g = P(() => t.multiple ? h.value.length > 0 : !!t.modelValue), $ = P(() => h.value.slice(0, t.maxTags)), S = P(() => Math.max(0, h.value.length - t.maxTags)), O = P(() => i.value ? (t.options || []).filter(
2030
+ }), y = R(() => t.multiple || !h.value.length ? "" : x(h.value[0])), g = R(() => t.multiple ? h.value.length > 0 : !!t.modelValue), $ = R(() => h.value.slice(0, t.maxTags)), S = R(() => Math.max(0, h.value.length - t.maxTags)), O = R(() => i.value ? (t.options || []).filter(
2031
2031
  (V) => x(V).toLowerCase().includes(i.value.toLowerCase())
2032
- ) : t.options || []), _ = P(() => t.multiple ? h.value.map((V) => R(V)) : []), B = P(() => t.multiple || !h.value.length ? null : R(h.value[0]));
2033
- function R(V) {
2032
+ ) : t.options || []), _ = R(() => t.multiple ? h.value.map((V) => M(V)) : []), B = R(() => t.multiple || !h.value.length ? null : M(h.value[0]));
2033
+ function M(V) {
2034
2034
  return t.valueKey && t.valueKey in V ? V[t.valueKey] : V.value || "";
2035
2035
  }
2036
2036
  function x(V) {
@@ -2042,27 +2042,27 @@ const vo = {
2042
2042
  function c(V) {
2043
2043
  if (!V.disabled)
2044
2044
  if (t.multiple) {
2045
- const T = R(V), H = Array.isArray(t.modelValue) ? [...t.modelValue] : [], Z = H.some((C) => typeof C == "object" && C !== null ? R(C) === T : C === T);
2045
+ const T = M(V), H = Array.isArray(t.modelValue) ? [...t.modelValue] : [], Z = H.some((C) => typeof C == "object" && C !== null ? M(C) === T : C === T);
2046
2046
  let X;
2047
- Z ? X = H.filter((C) => typeof C == "object" && C !== null ? R(C) !== T : C !== T) : X = [...H, t.valueKey && t.valueKey !== "" ? R(V) : V], a("update:modelValue", X), a("change", X);
2047
+ Z ? X = H.filter((C) => typeof C == "object" && C !== null ? M(C) !== T : C !== T) : X = [...H, t.valueKey && t.valueKey !== "" ? M(V) : V], a("update:modelValue", X), a("change", X);
2048
2048
  } else {
2049
- const T = t.valueKey && t.valueKey !== "" ? R(V) : V;
2049
+ const T = t.valueKey && t.valueKey !== "" ? M(V) : V;
2050
2050
  a("update:modelValue", T), a("change", T), n.value = !1;
2051
2051
  }
2052
2052
  }
2053
- function w(V) {
2053
+ function b(V) {
2054
2054
  if (!t.multiple) return;
2055
- const T = R(V), Z = (Array.isArray(t.modelValue) ? [...t.modelValue] : []).filter((X) => typeof X == "object" && X !== null ? R(X) !== T : X !== T);
2056
- a("update:modelValue", Z), a("change", Z), a("remove-tag", t.valueKey && t.valueKey !== "" ? R(V) : V);
2055
+ const T = M(V), Z = (Array.isArray(t.modelValue) ? [...t.modelValue] : []).filter((X) => typeof X == "object" && X !== null ? M(X) !== T : X !== T);
2056
+ a("update:modelValue", Z), a("change", Z), a("remove-tag", t.valueKey && t.valueKey !== "" ? M(V) : V);
2057
2057
  }
2058
- function M() {
2058
+ function I() {
2059
2059
  const V = t.multiple ? [] : void 0;
2060
2060
  a("update:modelValue", V), a("change", V), a("clear");
2061
2061
  }
2062
- function D(V) {
2062
+ function L(V) {
2063
2063
  V.disabled || !t.multiple || c(V);
2064
2064
  }
2065
- function L(V) {
2065
+ function D(V) {
2066
2066
  V.disabled || t.multiple || c(V);
2067
2067
  }
2068
2068
  function N() {
@@ -2104,19 +2104,19 @@ const vo = {
2104
2104
  V.required ? (v(), p("sup", zo, "*")) : A("", !0),
2105
2105
  ve(" " + j(V.label), 1)
2106
2106
  ])) : A("", !0),
2107
- b("div", {
2107
+ w("div", {
2108
2108
  ref_key: "dropdownTrigger",
2109
2109
  ref: o,
2110
2110
  class: z(["dropdown__trigger", { "dropdown__trigger--active": n.value, "dropdown__trigger--multiple": V.multiple, "dropdown__trigger--error": V.error }]),
2111
2111
  onClick: d
2112
2112
  }, [
2113
- b("div", Ho, [
2113
+ w("div", Ho, [
2114
2114
  V.multiple && h.value.length ? (v(), p("div", Fo, [
2115
2115
  (v(!0), p(re, null, ge($.value, (H) => (v(), U(k(ht), {
2116
- key: R(H),
2116
+ key: M(H),
2117
2117
  removable: "",
2118
2118
  variant: "secondary",
2119
- onRemove: (Z) => w(H)
2119
+ onRemove: (Z) => b(H)
2120
2120
  }, {
2121
2121
  default: oe(() => [
2122
2122
  ve(j(x(H)), 1)
@@ -2138,11 +2138,11 @@ const vo = {
2138
2138
  value: y.value,
2139
2139
  selectedOption: h.value[0]
2140
2140
  }, () => [
2141
- b("span", qo, j(y.value), 1)
2141
+ w("span", qo, j(y.value), 1)
2142
2142
  ], !0) : (v(), p("span", No, j(V.placeholder), 1))
2143
2143
  ], 64))
2144
2144
  ]),
2145
- b("div", {
2145
+ w("div", {
2146
2146
  class: z(["dropdown__arrow", { "dropdown__arrow--rotated": n.value }])
2147
2147
  }, [
2148
2148
  K(k(bt))
@@ -2150,7 +2150,7 @@ const vo = {
2150
2150
  V.clearable && g.value ? (v(), p("button", {
2151
2151
  key: 0,
2152
2152
  class: "dropdown__clear",
2153
- onClick: pe(M, ["stop"])
2153
+ onClick: pe(I, ["stop"])
2154
2154
  }, [
2155
2155
  K(k(et))
2156
2156
  ])) : A("", !0)
@@ -2160,7 +2160,7 @@ const vo = {
2160
2160
  "z-index": m.value
2161
2161
  }, {
2162
2162
  default: oe(() => [
2163
- b("div", {
2163
+ w("div", {
2164
2164
  ref_key: "dropdownOverlay",
2165
2165
  ref: s,
2166
2166
  class: "dropdown__overlay",
@@ -2169,7 +2169,7 @@ const vo = {
2169
2169
  }, ["stop"]))
2170
2170
  }, [
2171
2171
  V.searchable ? (v(), p("div", Wo, [
2172
- be(b("input", {
2172
+ be(w("input", {
2173
2173
  ref_key: "searchInput",
2174
2174
  ref: r,
2175
2175
  "onUpdate:modelValue": T[0] || (T[0] = (H) => i.value = H),
@@ -2180,35 +2180,35 @@ const vo = {
2180
2180
  [ze, i.value]
2181
2181
  ])
2182
2182
  ])) : A("", !0),
2183
- b("div", Yo, [
2183
+ w("div", Yo, [
2184
2184
  V.loading ? (v(), p("div", jo, " Загрузка... ")) : (v(), p(re, { key: 1 }, [
2185
2185
  (v(!0), p(re, null, ge(O.value, (H) => (v(), p("div", {
2186
- key: R(H),
2186
+ key: M(H),
2187
2187
  class: z(["dropdown__option", {
2188
2188
  "dropdown__option--disabled": H.disabled
2189
2189
  }])
2190
2190
  }, [
2191
- b("div", Ko, [
2191
+ w("div", Ko, [
2192
2192
  V.multiple ? (v(), U(at, {
2193
2193
  key: 0,
2194
2194
  "model-value": _.value,
2195
- value: R(H),
2195
+ value: M(H),
2196
2196
  label: x(H),
2197
2197
  disabled: H.disabled,
2198
- onChange: (Z) => D(H)
2198
+ onChange: (Z) => L(H)
2199
2199
  }, null, 8, ["model-value", "value", "label", "disabled", "onChange"])) : (v(), U(Ft, {
2200
2200
  key: 1,
2201
2201
  "model-value": B.value,
2202
- value: R(H),
2202
+ value: M(H),
2203
2203
  label: x(H),
2204
2204
  disabled: H.disabled,
2205
- onChange: (Z) => L(H)
2205
+ onChange: (Z) => D(H)
2206
2206
  }, null, 8, ["model-value", "value", "label", "disabled", "onChange"])),
2207
2207
  J(V.$slots, "option", {
2208
2208
  option: H,
2209
- selected: V.multiple ? _.value.includes(R(H)) : B.value === R(H),
2209
+ selected: V.multiple ? _.value.includes(M(H)) : B.value === M(H),
2210
2210
  multiple: V.multiple,
2211
- handleSelect: V.multiple ? () => D(H) : () => L(H)
2211
+ handleSelect: V.multiple ? () => L(H) : () => D(H)
2212
2212
  }, void 0, !0)
2213
2213
  ])
2214
2214
  ], 2))), 128)),
@@ -2242,10 +2242,10 @@ const vo = {
2242
2242
  }),
2243
2243
  emits: ["update:currentPage", "update:perPage"],
2244
2244
  setup(e) {
2245
- const l = ie(e, "currentPage"), t = ie(e, "perPage"), a = P(() => Math.ceil(e.totals / (t.value ?? 25))), n = P(() => e.perPageOptions.map((o) => ({
2245
+ const l = ie(e, "currentPage"), t = ie(e, "perPage"), a = R(() => Math.ceil(e.totals / (t.value ?? 25))), n = R(() => e.perPageOptions.map((o) => ({
2246
2246
  label: o,
2247
2247
  value: o
2248
- }))), i = P(() => {
2248
+ }))), i = R(() => {
2249
2249
  const o = a.value, s = l.value;
2250
2250
  if (o <= 7)
2251
2251
  return Array.from({ length: o }, (u, f) => f + 1);
@@ -2253,21 +2253,21 @@ const vo = {
2253
2253
  return r.push(1), s <= 4 ? r.push(2, 3, 4, 5, "...", o) : s >= o - 3 ? r.push("...", o - 4, o - 3, o - 2, o - 1, o) : r.push("...", s - 1, s, s + 1, "...", o), r;
2254
2254
  });
2255
2255
  return (o, s) => o.totals ? (v(), p("div", Go, [
2256
- b("button", {
2256
+ w("button", {
2257
2257
  class: "paginator-button paginator__prev",
2258
2258
  disabled: l.value === 1,
2259
2259
  onClick: s[0] || (s[0] = (r) => l.value--)
2260
2260
  }, [
2261
2261
  K(k(Wl))
2262
2262
  ], 8, Jo),
2263
- b("div", ea, [
2263
+ w("div", ea, [
2264
2264
  (v(!0), p(re, null, ge(i.value, (r) => (v(), p("button", {
2265
2265
  class: z(["paginator-button paginator__page", { "paginator-button--active": l.value === r }]),
2266
2266
  key: r,
2267
2267
  onClick: (u) => l.value = Number(r)
2268
2268
  }, j(r), 11, ta))), 128))
2269
2269
  ]),
2270
- b("button", {
2270
+ w("button", {
2271
2271
  class: "paginator-button paginator__next",
2272
2272
  disabled: l.value === a.value,
2273
2273
  onClick: s[1] || (s[1] = (r) => l.value++)
@@ -2275,7 +2275,7 @@ const vo = {
2275
2275
  K(k(ml))
2276
2276
  ], 8, la),
2277
2277
  o.viewPerPage && t.value ? (v(), p("div", na, [
2278
- s[3] || (s[3] = b("span", null, "Показывать по", -1)),
2278
+ s[3] || (s[3] = w("span", null, "Показывать по", -1)),
2279
2279
  K(k(Xo), {
2280
2280
  modelValue: t.value,
2281
2281
  "onUpdate:modelValue": s[2] || (s[2] = (r) => t.value = r),
@@ -2307,10 +2307,10 @@ const vo = {
2307
2307
  }),
2308
2308
  emits: ["update:currentPage", "update:perPage"],
2309
2309
  setup(e) {
2310
- const l = ie(e, "currentPage"), t = ie(e, "perPage"), a = P(() => e.paginator && l.value);
2310
+ const l = ie(e, "currentPage"), t = ie(e, "perPage"), a = R(() => e.paginator && l.value);
2311
2311
  return (n, i) => a.value ? (v(), p("tfoot", sa, [
2312
- b("tr", null, [
2313
- b("td", ra, [
2312
+ w("tr", null, [
2313
+ w("td", ra, [
2314
2314
  n.paginator && l.value ? (v(), U(k(aa), {
2315
2315
  key: 0,
2316
2316
  "current-page": l.value,
@@ -2333,10 +2333,10 @@ const vo = {
2333
2333
  size: { default: "default" }
2334
2334
  },
2335
2335
  setup(e) {
2336
- const l = P(() => typeof e.strokeWidth == "string" ? `${e.strokeWidth.split("px")[0]}px` : `${e.strokeWidth}px`), t = P(() => ({
2336
+ const l = R(() => typeof e.strokeWidth == "string" ? `${e.strokeWidth.split("px")[0]}px` : `${e.strokeWidth}px`), t = R(() => ({
2337
2337
  "--spinner-stroke-width": l.value,
2338
2338
  ...e.style
2339
- })), a = P(() => [
2339
+ })), a = R(() => [
2340
2340
  "spinner",
2341
2341
  `spinner--${e.size}`
2342
2342
  ]);
@@ -2345,11 +2345,11 @@ const vo = {
2345
2345
  "aria-label": "Loading",
2346
2346
  style: le(t.value)
2347
2347
  }, [...i[0] || (i[0] = [
2348
- b("span", { class: "spinner__circle" }, null, -1)
2348
+ w("span", { class: "spinner__circle" }, null, -1)
2349
2349
  ])], 6));
2350
2350
  }
2351
2351
  }), ua = () => {
2352
- const e = I([]), l = I([]), t = I({
2352
+ const e = P([]), l = P([]), t = P({
2353
2353
  selectedMode: null
2354
2354
  }), a = (o) => {
2355
2355
  const s = e.value.findIndex((r) => r.id === o.id);
@@ -2407,16 +2407,16 @@ const vo = {
2407
2407
  }),
2408
2408
  emits: /* @__PURE__ */ ae(["rowClickHandler"], ["update:currentPage", "update:perPage", "update:selectedRows"]),
2409
2409
  setup(e, { emit: l }) {
2410
- const t = l, { columns: a, options: n } = ua(), i = P(() => n.value.selectedMode), o = I(null), s = I(), r = I(), u = ie(e, "currentPage"), f = ie(e, "perPage"), m = (d) => {
2410
+ const t = l, { columns: a, options: n } = ua(), i = R(() => n.value.selectedMode), o = P(null), s = P(), r = P(), u = ie(e, "currentPage"), f = ie(e, "perPage"), m = (d) => {
2411
2411
  if (e.virtualScroll && e.virtualScroll.enable && s.value) {
2412
2412
  const c = d.target;
2413
2413
  s.value.handleScroll(c);
2414
2414
  }
2415
2415
  }, h = () => {
2416
2416
  if (r.value) {
2417
- const c = r.value.getBoundingClientRect(), M = (window.pageYOffset || document.documentElement.scrollTop) + c.top - 80;
2417
+ const c = r.value.getBoundingClientRect(), I = (window.pageYOffset || document.documentElement.scrollTop) + c.top - 80;
2418
2418
  window.scrollTo({
2419
- top: M,
2419
+ top: I,
2420
2420
  behavior: "smooth"
2421
2421
  });
2422
2422
  }
@@ -2430,17 +2430,17 @@ const vo = {
2430
2430
  d && s.value.updateContainerHeight(d);
2431
2431
  }
2432
2432
  });
2433
- const y = P(() => {
2433
+ const y = R(() => {
2434
2434
  let d = [...e.data];
2435
2435
  if (o.value) {
2436
- const { field: c, order: w } = o.value;
2437
- d.sort((M, D) => {
2438
- const L = M[c], N = D[c];
2439
- return L === N ? 0 : w === 1 ? L > N ? 1 : -1 : L < N ? 1 : -1;
2436
+ const { field: c, order: b } = o.value;
2437
+ d.sort((I, L) => {
2438
+ const D = I[c], N = L[c];
2439
+ return D === N ? 0 : b === 1 ? D > N ? 1 : -1 : D < N ? 1 : -1;
2440
2440
  });
2441
2441
  }
2442
2442
  return d;
2443
- }), g = P(() => e.scroller && e.scroller.enable || e.virtualScroll && e.virtualScroll.enable || e.maxHeight), $ = P(() => [
2443
+ }), g = R(() => e.scroller && e.scroller.enable || e.virtualScroll && e.virtualScroll.enable || e.maxHeight), $ = R(() => [
2444
2444
  "table",
2445
2445
  {
2446
2446
  [`table--theme-${e.theme}`]: e.theme,
@@ -2449,32 +2449,46 @@ const vo = {
2449
2449
  "table--scrollable": g.value,
2450
2450
  "table--empty": e.data.length === 0
2451
2451
  }
2452
- ]), S = P(() => [
2452
+ ]), S = R(() => [
2453
2453
  "table-wrapper",
2454
2454
  {
2455
2455
  "table-wrapper--scrollable": g.value
2456
2456
  }
2457
- ]), O = P(() => {
2457
+ ]), O = R(() => {
2458
2458
  const d = {};
2459
2459
  return e.maxHeight ? (d.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight, d.overflow = "auto") : e.scroller && e.scroller.enable && (d.maxHeight = `${e.scroller.height}px`, d.overflow = "auto"), d;
2460
- }), _ = ie(e, "selectedRows"), B = P(
2460
+ }), _ = ie(e, "selectedRows"), B = R(
2461
2461
  () => {
2462
2462
  if (!_.value || !Array.isArray(_.value) || e.data.length === 0)
2463
2463
  return !1;
2464
2464
  const d = _.value.filter(
2465
- (c) => e.data.some((w) => w === c)
2465
+ (c) => e.data.some((b) => b === c)
2466
2466
  );
2467
2467
  return e.data.length === d.length;
2468
2468
  }
2469
- ), R = (d) => {
2469
+ ), M = (d) => {
2470
2470
  if (i.value)
2471
2471
  if (_.value || (_.value = []), i.value === "multiple") {
2472
- const c = Array.isArray(_.value) ? _.value.findIndex((w) => w === d) : -1;
2472
+ const c = Array.isArray(_.value) ? _.value.findIndex((b) => b === d) : -1;
2473
2473
  c === -1 ? Array.isArray(_.value) ? _.value.push(d) : _.value = [d] : Array.isArray(_.value) && _.value.splice(c, 1);
2474
2474
  } else
2475
2475
  _.value = d;
2476
2476
  }, x = () => {
2477
- _.value || (_.value = []), i.value === "multiple" && Array.isArray(_.value) && (_.value.length === e.data.length ? _.value = [] : _.value = [...e.data]);
2477
+ if (!i.value || i.value !== "multiple") return;
2478
+ (!_.value || !Array.isArray(_.value)) && (_.value = []);
2479
+ const d = _.value;
2480
+ if (d.filter(
2481
+ (b) => e.data.some((I) => I === b)
2482
+ ).length === e.data.length)
2483
+ _.value = d.filter(
2484
+ (b) => !e.data.some((I) => I === b)
2485
+ );
2486
+ else {
2487
+ const b = e.data.filter(
2488
+ (I) => !d.some((L) => L === I)
2489
+ );
2490
+ _.value = [...d, ...b];
2491
+ }
2478
2492
  };
2479
2493
  return ee(u, (d, c) => {
2480
2494
  d !== c && d !== void 0 && c !== void 0 && fe(() => {
@@ -2486,7 +2500,7 @@ const vo = {
2486
2500
  style: le(O.value),
2487
2501
  onScroll: m
2488
2502
  }, [
2489
- b("table", {
2503
+ w("table", {
2490
2504
  ref_key: "tableRef",
2491
2505
  ref: r,
2492
2506
  class: z($.value)
@@ -2499,7 +2513,7 @@ const vo = {
2499
2513
  sortMode: d.sortMode,
2500
2514
  sortField: d.sortField,
2501
2515
  onSelectAllRow: x,
2502
- "onUpdate:sort": c[0] || (c[0] = (w) => o.value = w)
2516
+ "onUpdate:sort": c[0] || (c[0] = (b) => o.value = b)
2503
2517
  }, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField"]),
2504
2518
  y.value.length > 0 && !d.loading ? (v(), U(al, {
2505
2519
  key: 0,
@@ -2513,23 +2527,23 @@ const vo = {
2513
2527
  scroller: d.scroller || void 0,
2514
2528
  virtualScroll: d.virtualScroll || void 0,
2515
2529
  rowStyle: d.rowStyle,
2516
- onRowClickHandler: c[1] || (c[1] = (w) => t("rowClickHandler", w)),
2517
- onToggleRow: c[2] || (c[2] = (w) => R(w))
2530
+ onRowClickHandler: c[1] || (c[1] = (b) => t("rowClickHandler", b)),
2531
+ onToggleRow: c[2] || (c[2] = (b) => M(b))
2518
2532
  }, null, 8, ["size", "selectedRows", "columns", "data", "colorHovered", "scroller", "virtualScroll", "rowStyle"])) : d.loading ? (v(), p("tbody", ca, [
2519
- b("tr", null, [
2520
- b("td", {
2533
+ w("tr", null, [
2534
+ w("td", {
2521
2535
  colspan: k(a).length,
2522
2536
  class: "table-loading__cell"
2523
2537
  }, [
2524
- b("div", fa, [
2538
+ w("div", fa, [
2525
2539
  K(rl),
2526
- c[10] || (c[10] = b("span", null, "Загрузка...", -1))
2540
+ c[10] || (c[10] = w("span", null, "Загрузка...", -1))
2527
2541
  ])
2528
2542
  ], 8, da)
2529
2543
  ])
2530
2544
  ])) : (v(), p("tbody", va, [
2531
- b("tr", null, [
2532
- b("td", {
2545
+ w("tr", null, [
2546
+ w("td", {
2533
2547
  colspan: k(a).length,
2534
2548
  class: "table-empty__cell"
2535
2549
  }, [
@@ -2540,9 +2554,9 @@ const vo = {
2540
2554
  ], 2),
2541
2555
  K(sl, {
2542
2556
  currentPage: u.value,
2543
- "onUpdate:currentPage": c[3] || (c[3] = (w) => u.value = w),
2557
+ "onUpdate:currentPage": c[3] || (c[3] = (b) => u.value = b),
2544
2558
  "per-page": f.value,
2545
- "onUpdate:perPage": c[4] || (c[4] = (w) => f.value = w),
2559
+ "onUpdate:perPage": c[4] || (c[4] = (b) => f.value = b),
2546
2560
  data: y.value,
2547
2561
  "per-page-options": d.perPageOptions,
2548
2562
  "totals-row": d.totals,
@@ -2563,7 +2577,7 @@ const vo = {
2563
2577
  sortMode: d.sortMode,
2564
2578
  sortField: d.sortField,
2565
2579
  onSelectAllRow: x,
2566
- "onUpdate:sort": c[5] || (c[5] = (w) => o.value = w)
2580
+ "onUpdate:sort": c[5] || (c[5] = (b) => o.value = b)
2567
2581
  }, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField"]),
2568
2582
  y.value.length > 0 && !d.loading ? (v(), U(al, {
2569
2583
  key: 0,
@@ -2577,23 +2591,23 @@ const vo = {
2577
2591
  scroller: d.scroller || void 0,
2578
2592
  virtualScroll: d.virtualScroll || void 0,
2579
2593
  rowStyle: d.rowStyle,
2580
- onRowClickHandler: c[6] || (c[6] = (w) => t("rowClickHandler", w)),
2581
- onToggleRow: c[7] || (c[7] = (w) => R(w))
2594
+ onRowClickHandler: c[6] || (c[6] = (b) => t("rowClickHandler", b)),
2595
+ onToggleRow: c[7] || (c[7] = (b) => M(b))
2582
2596
  }, null, 8, ["size", "selectedRows", "columns", "data", "colorHovered", "scroller", "virtualScroll", "rowStyle"])) : d.loading ? (v(), p("tbody", pa, [
2583
- b("tr", null, [
2584
- b("td", {
2597
+ w("tr", null, [
2598
+ w("td", {
2585
2599
  colspan: k(a).length,
2586
2600
  class: "table-loading__cell"
2587
2601
  }, [
2588
- b("div", ha, [
2602
+ w("div", ha, [
2589
2603
  K(rl),
2590
- c[11] || (c[11] = b("span", null, "Загрузка...", -1))
2604
+ c[11] || (c[11] = w("span", null, "Загрузка...", -1))
2591
2605
  ])
2592
2606
  ], 8, ga)
2593
2607
  ])
2594
2608
  ])) : (v(), p("tbody", ya, [
2595
- b("tr", null, [
2596
- b("td", {
2609
+ w("tr", null, [
2610
+ w("td", {
2597
2611
  colspan: k(a).length,
2598
2612
  class: "table-empty__cell"
2599
2613
  }, [
@@ -2603,9 +2617,9 @@ const vo = {
2603
2617
  ])),
2604
2618
  K(sl, {
2605
2619
  currentPage: u.value,
2606
- "onUpdate:currentPage": c[8] || (c[8] = (w) => u.value = w),
2620
+ "onUpdate:currentPage": c[8] || (c[8] = (b) => u.value = b),
2607
2621
  "per-page": f.value,
2608
- "onUpdate:perPage": c[9] || (c[9] = (w) => f.value = w),
2622
+ "onUpdate:perPage": c[9] || (c[9] = (b) => f.value = b),
2609
2623
  data: y.value,
2610
2624
  "per-page-options": d.perPageOptions,
2611
2625
  "totals-row": d.totals,
@@ -2614,7 +2628,7 @@ const vo = {
2614
2628
  }, null, 8, ["currentPage", "per-page", "data", "per-page-options", "totals-row", "paginator", "viewPerPage"])
2615
2629
  ], 2));
2616
2630
  }
2617
- }), ai = /* @__PURE__ */ ue(wa, [["__scopeId", "data-v-14c61cd0"]]), si = /* @__PURE__ */ Y({
2631
+ }), ai = /* @__PURE__ */ ue(wa, [["__scopeId", "data-v-0c6555e5"]]), si = /* @__PURE__ */ Y({
2618
2632
  __name: "Column",
2619
2633
  props: {
2620
2634
  field: {},
@@ -2628,7 +2642,7 @@ const vo = {
2628
2642
  visible: { type: Boolean, default: !0 }
2629
2643
  },
2630
2644
  setup(e) {
2631
- const l = e, t = Ke(l, "visible"), a = cl(), n = l.field || `column-${Math.random().toString(36).substring(2, 11)}`, i = ye("registerColumn"), o = P(() => ({
2645
+ const l = e, t = Ke(l, "visible"), a = cl(), n = l.field || `column-${Math.random().toString(36).substring(2, 11)}`, i = ye("registerColumn"), o = R(() => ({
2632
2646
  id: n,
2633
2647
  header: l.header,
2634
2648
  field: l.field,
@@ -2664,7 +2678,7 @@ const vo = {
2664
2678
  setup(e) {
2665
2679
  const l = ie(e, "modelValue"), t = nt();
2666
2680
  return (a, n) => (v(), p("div", ka, [
2667
- be(b("input", {
2681
+ be(w("input", {
2668
2682
  "onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
2669
2683
  type: "checkbox",
2670
2684
  name: k(t),
@@ -2673,20 +2687,20 @@ const vo = {
2673
2687
  }, null, 8, _a), [
2674
2688
  [Mt, l.value]
2675
2689
  ]),
2676
- n[1] || (n[1] = b("div", { class: "chip-checkbox__icon" }, [
2677
- b("svg", {
2690
+ n[1] || (n[1] = w("div", { class: "chip-checkbox__icon" }, [
2691
+ w("svg", {
2678
2692
  width: "14",
2679
2693
  height: "11",
2680
2694
  viewBox: "0 0 14 11",
2681
2695
  xmlns: "http://www.w3.org/2000/svg"
2682
2696
  }, [
2683
- b("path", {
2697
+ w("path", {
2684
2698
  d: "M4.75012 8.13031L1.62262 5.00281L0.557617 6.06031L4.75012 10.2528L13.7501 1.25281L12.6926 0.195312L4.75012 8.13031Z",
2685
2699
  fill: "#00AB2E"
2686
2700
  })
2687
2701
  ])
2688
2702
  ], -1)),
2689
- b("span", $a, j(a.label), 1)
2703
+ w("span", $a, j(a.label), 1)
2690
2704
  ]));
2691
2705
  }
2692
2706
  }), Sa = {
@@ -2726,7 +2740,7 @@ const vo = {
2726
2740
  },
2727
2741
  emits: ["update:modelValue", "search", "change", "clear", "remove-tag"],
2728
2742
  setup(e, { emit: l }) {
2729
- const t = e, a = l, n = I(!1), i = I(!1), o = I(""), s = I(-1), r = I(), u = I(), f = I(), m = I({});
2743
+ const t = e, a = l, n = P(!1), i = P(!1), o = P(""), s = P(-1), r = P(), u = P(), f = P(), m = P({});
2730
2744
  function h(C) {
2731
2745
  let E = 1e3, W = C;
2732
2746
  for (; W && W !== document.body; ) {
@@ -2735,7 +2749,7 @@ const vo = {
2735
2749
  }
2736
2750
  return E;
2737
2751
  }
2738
- const y = I(9999), g = P(() => {
2752
+ const y = P(9999), g = R(() => {
2739
2753
  if (!t.modelValue) return [];
2740
2754
  if (t.multiple)
2741
2755
  return (Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]).map((E) => {
@@ -2750,25 +2764,25 @@ const vo = {
2750
2764
  const C = t.options?.find((E) => d(E) === t.modelValue);
2751
2765
  return C ? [C] : [];
2752
2766
  }
2753
- }), $ = P(() => t.multiple ? g.value.length > 0 : !!t.modelValue), S = P(() => t.multiple && g.value.length > 0 ? "" : t.placeholder), O = P(() => g.value.slice(0, t.maxTags)), _ = P(() => Math.max(0, g.value.length - t.maxTags)), B = P(() => t.options || []), R = P(() => t.multiple ? g.value.map((C) => d(C)) : []), x = P(() => t.multiple || !g.value.length ? null : d(g.value[0]));
2767
+ }), $ = R(() => t.multiple ? g.value.length > 0 : !!t.modelValue), S = R(() => t.multiple && g.value.length > 0 ? "" : t.placeholder), O = R(() => g.value.slice(0, t.maxTags)), _ = R(() => Math.max(0, g.value.length - t.maxTags)), B = R(() => t.options || []), M = R(() => t.multiple ? g.value.map((C) => d(C)) : []), x = R(() => t.multiple || !g.value.length ? null : d(g.value[0]));
2754
2768
  function d(C) {
2755
2769
  return t.valueKey && t.valueKey in C ? C[t.valueKey] : C.value || "";
2756
2770
  }
2757
2771
  function c(C) {
2758
2772
  return t.labelKey && t.labelKey in C ? String(C[t.labelKey]) : String(C.label);
2759
2773
  }
2760
- function w() {
2774
+ function b() {
2761
2775
  a("search", o.value), o.value.length >= t.minQueryLength && ((t.options?.length || 0) > 0 || t.loading) ? (n.value = !0, s.value = -1) : n.value = !1;
2762
2776
  }
2763
- function M() {
2777
+ function I() {
2764
2778
  i.value = !0, o.value.length >= t.minQueryLength && ((t.options?.length || 0) > 0 || t.loading) && (n.value = !0);
2765
2779
  }
2766
- function D() {
2780
+ function L() {
2767
2781
  i.value = !1, t.multiple || setTimeout(() => {
2768
2782
  n.value = !1;
2769
2783
  }, 150);
2770
2784
  }
2771
- function L(C) {
2785
+ function D(C) {
2772
2786
  C.key === "ArrowDown" ? (C.preventDefault(), n.value && B.value.length > 0 && (s.value = Math.min(s.value + 1, B.value.length - 1))) : C.key === "ArrowUp" ? (C.preventDefault(), n.value && B.value.length > 0 && (s.value = Math.max(s.value - 1, 0))) : C.key === "Enter" ? (C.preventDefault(), n.value && s.value >= 0 && N(B.value[s.value])) : C.key === "Escape" ? (n.value = !1, f.value?.blur()) : C.key === "Tab" && (n.value = !1);
2773
2787
  }
2774
2788
  function N(C) {
@@ -2853,7 +2867,7 @@ const vo = {
2853
2867
  C.required ? (v(), p("sup", Ca)) : A("", !0),
2854
2868
  ve(" " + j(C.label), 1)
2855
2869
  ])) : A("", !0),
2856
- b("div", {
2870
+ w("div", {
2857
2871
  ref_key: "autocompleteTrigger",
2858
2872
  ref: r,
2859
2873
  class: z(["autocomplete__trigger", {
@@ -2863,7 +2877,7 @@ const vo = {
2863
2877
  "autocomplete__trigger--error": C.error
2864
2878
  }])
2865
2879
  }, [
2866
- b("div", xa, [
2880
+ w("div", xa, [
2867
2881
  C.multiple && g.value.length ? (v(), p("div", Va, [
2868
2882
  (v(!0), p(re, null, ge(O.value, (W) => (v(), U(k(ht), {
2869
2883
  key: d(W),
@@ -2886,22 +2900,22 @@ const vo = {
2886
2900
  _: 1
2887
2901
  })) : A("", !0)
2888
2902
  ])) : A("", !0),
2889
- be(b("input", {
2903
+ be(w("input", {
2890
2904
  ref_key: "inputElement",
2891
2905
  ref: f,
2892
2906
  "onUpdate:modelValue": E[0] || (E[0] = (W) => o.value = W),
2893
2907
  class: "autocomplete__text-input",
2894
2908
  placeholder: S.value,
2895
2909
  disabled: C.disabled,
2896
- onInput: w,
2897
- onFocus: M,
2898
- onBlur: D,
2899
- onKeydown: L
2910
+ onInput: b,
2911
+ onFocus: I,
2912
+ onBlur: L,
2913
+ onKeydown: D
2900
2914
  }, null, 40, Ta), [
2901
2915
  [ze, o.value]
2902
2916
  ])
2903
2917
  ]),
2904
- b("div", {
2918
+ w("div", {
2905
2919
  class: z(["autocomplete__arrow", { "autocomplete__arrow--rotated": n.value }])
2906
2920
  }, [
2907
2921
  K(k(bt))
@@ -2919,7 +2933,7 @@ const vo = {
2919
2933
  "z-index": y.value
2920
2934
  }, {
2921
2935
  default: oe(() => [
2922
- b("div", {
2936
+ w("div", {
2923
2937
  ref_key: "autocompleteOverlay",
2924
2938
  ref: u,
2925
2939
  class: "autocomplete__overlay",
@@ -2927,7 +2941,7 @@ const vo = {
2927
2941
  onClick: E[2] || (E[2] = pe(() => {
2928
2942
  }, ["stop"]))
2929
2943
  }, [
2930
- b("div", Ia, [
2944
+ w("div", Ia, [
2931
2945
  C.loading ? (v(), p("div", Pa, " Загрузка... ")) : (v(), p(re, { key: 1 }, [
2932
2946
  (v(!0), p(re, null, ge(B.value, (W, G) => (v(), p("div", {
2933
2947
  key: d(W),
@@ -2945,7 +2959,7 @@ const vo = {
2945
2959
  onClick: pe((Q) => T(W), ["stop"])
2946
2960
  }, [
2947
2961
  K(at, {
2948
- "model-value": R.value,
2962
+ "model-value": M.value,
2949
2963
  value: d(W),
2950
2964
  label: c(W),
2951
2965
  disabled: W.disabled,
@@ -2997,7 +3011,7 @@ const vo = {
2997
3011
  }),
2998
3012
  emits: /* @__PURE__ */ ae(["blur", "input", "paste", "focus", "clear"], ["update:modelValue"]),
2999
3013
  setup(e, { emit: l }) {
3000
- const t = l, a = ie(e, "modelValue"), n = P(() => (/* @__PURE__ */ new Date()).getTime().toString()), i = I(!1), o = P(() => [
3014
+ const t = l, a = ie(e, "modelValue"), n = R(() => (/* @__PURE__ */ new Date()).getTime().toString()), i = P(!1), o = R(() => [
3001
3015
  "input",
3002
3016
  `input--${e.size}`,
3003
3017
  `input--${e.variant}`,
@@ -3006,7 +3020,7 @@ const vo = {
3006
3020
  "input--disabled": e.disabled,
3007
3021
  "input--error": e.error
3008
3022
  }
3009
- ]), s = P(() => e.type === "password" ? i.value ? "text" : "password" : e.type), r = () => {
3023
+ ]), s = R(() => e.type === "password" ? i.value ? "text" : "password" : e.type), r = () => {
3010
3024
  a.value = "", t("clear");
3011
3025
  };
3012
3026
  return ee(
@@ -3025,8 +3039,8 @@ const vo = {
3025
3039
  u.required ? (v(), p("sup", La, "*")) : A("", !0),
3026
3040
  ve(" " + j(u.label), 1)
3027
3041
  ], 8, Ea)) : A("", !0),
3028
- b("div", Da, [
3029
- be(b("input", {
3042
+ w("div", Da, [
3043
+ be(w("input", {
3030
3044
  "onUpdate:modelValue": f[0] || (f[0] = (m) => a.value = m),
3031
3045
  id: u.inputId ?? n.value,
3032
3046
  placeholder: u.placeholder,
@@ -3045,7 +3059,7 @@ const vo = {
3045
3059
  }, null, 40, za), [
3046
3060
  [El, a.value]
3047
3061
  ]),
3048
- b("div", Ha, [
3062
+ w("div", Ha, [
3049
3063
  u.type === "text" && u.allowClear && a.value && a.value.length > 0 ? (v(), p("button", {
3050
3064
  key: 0,
3051
3065
  class: "input__clear",
@@ -3067,7 +3081,7 @@ const vo = {
3067
3081
  }
3068
3082
  });
3069
3083
  function qa(e, l) {
3070
- const { mask: t, slotChar: a = "_", autoClear: n = !0, definitions: i } = l, o = I(""), s = I(!1), r = {
3084
+ const { mask: t, slotChar: a = "_", autoClear: n = !0, definitions: i } = l, o = P(""), s = P(!1), r = {
3071
3085
  9: /[0-9]/,
3072
3086
  // только цифры
3073
3087
  a: /[a-zA-Z]/,
@@ -3091,131 +3105,131 @@ function qa(e, l) {
3091
3105
  return f(c) ? r[c].test(d) : !1;
3092
3106
  }
3093
3107
  function h(d) {
3094
- const { required: c, optional: w } = u(t), M = c + w;
3095
- let D = "", L = 0, N = 0;
3096
- for (; N < M.length; ) {
3097
- const q = M[N];
3108
+ const { required: c, optional: b } = u(t), I = c + b;
3109
+ let L = "", D = 0, N = 0;
3110
+ for (; N < I.length; ) {
3111
+ const q = I[N];
3098
3112
  if (f(q))
3099
- if (L < d.length) {
3100
- const F = d[L];
3113
+ if (D < d.length) {
3114
+ const F = d[D];
3101
3115
  if (m(F, q))
3102
- D += F, L++;
3116
+ L += F, D++;
3103
3117
  else {
3104
- L++;
3118
+ D++;
3105
3119
  continue;
3106
3120
  }
3107
3121
  } else
3108
- D += a;
3122
+ L += a;
3109
3123
  else
3110
- D += q;
3124
+ L += q;
3111
3125
  N++;
3112
3126
  }
3113
- return D;
3127
+ return L;
3114
3128
  }
3115
3129
  function y() {
3116
3130
  const { required: d, optional: c } = u(t);
3117
3131
  return (d + c).replace(/[9a*]/g, a);
3118
3132
  }
3119
3133
  function g(d) {
3120
- const { required: c, optional: w } = u(t), M = c + w;
3121
- let D = "", L = 0, N = 0;
3122
- for (; L < d.length && N < M.length; ) {
3123
- const q = d[L], F = M[N];
3134
+ const { required: c, optional: b } = u(t), I = c + b;
3135
+ let L = "", D = 0, N = 0;
3136
+ for (; D < d.length && N < I.length; ) {
3137
+ const q = d[D], F = I[N];
3124
3138
  if (q === a) {
3125
- L++;
3139
+ D++;
3126
3140
  continue;
3127
3141
  }
3128
- f(F) ? m(q, F) ? (D += q, L++, N++) : L++ : (q === F && L++, N++);
3142
+ f(F) ? m(q, F) ? (L += q, D++, N++) : D++ : (q === F && D++, N++);
3129
3143
  }
3130
- for (; L < d.length; ) {
3131
- const q = d[L];
3144
+ for (; D < d.length; ) {
3145
+ const q = d[D];
3132
3146
  if (q === a) {
3133
- L++;
3147
+ D++;
3134
3148
  continue;
3135
3149
  }
3136
3150
  let F = !1, V = 0;
3137
- for (let T = 0; T < M.length; T++)
3138
- if (f(M[T])) {
3139
- if (V === D.length) {
3140
- m(q, M[T]) && (D += q, F = !0);
3151
+ for (let T = 0; T < I.length; T++)
3152
+ if (f(I[T])) {
3153
+ if (V === L.length) {
3154
+ m(q, I[T]) && (L += q, F = !0);
3141
3155
  break;
3142
3156
  }
3143
3157
  V++;
3144
3158
  }
3145
- if (L++, !F)
3159
+ if (D++, !F)
3146
3160
  break;
3147
3161
  }
3148
- return D;
3162
+ return L;
3149
3163
  }
3150
3164
  function $(d) {
3151
- const { required: c } = u(t), w = c.replace(/[^9a*]/g, "").length;
3152
- return g(d).length >= w;
3165
+ const { required: c } = u(t), b = c.replace(/[^9a*]/g, "").length;
3166
+ return g(d).length >= b;
3153
3167
  }
3154
3168
  function S() {
3155
3169
  const d = je(e) || "";
3156
3170
  if (s.value || d)
3157
3171
  o.value = h(d);
3158
3172
  else {
3159
- const { required: c, optional: w } = u(t), M = c + w;
3160
- let D = "";
3161
- for (let L = 0; L < M.length && !f(M[L]); L++)
3162
- D += M[L];
3163
- o.value = D;
3173
+ const { required: c, optional: b } = u(t), I = c + b;
3174
+ let L = "";
3175
+ for (let D = 0; D < I.length && !f(I[D]); D++)
3176
+ L += I[D];
3177
+ o.value = L;
3164
3178
  }
3165
3179
  }
3166
3180
  function O(d) {
3167
3181
  if (!d.isTrusted) return;
3168
- const c = d.target, w = c.value, M = g(w), D = h(M);
3169
- o.value = D, e.value = M, fe(() => {
3170
- const { required: L, optional: N } = u(t), q = L + N;
3182
+ const c = d.target, b = c.value, I = g(b), L = h(I);
3183
+ o.value = L, e.value = I, fe(() => {
3184
+ const { required: D, optional: N } = u(t), q = D + N;
3171
3185
  let F = 0, V = 0;
3172
3186
  for (let T = 0; T < q.length; T++)
3173
3187
  if (f(q[T]))
3174
- if (V < M.length)
3188
+ if (V < I.length)
3175
3189
  V++;
3176
3190
  else {
3177
3191
  F = T;
3178
3192
  break;
3179
3193
  }
3180
- if (V === M.length && M.length > 0) {
3194
+ if (V === I.length && I.length > 0) {
3181
3195
  V = 0;
3182
3196
  for (let T = 0; T < q.length; T++)
3183
- if (f(q[T]) && (V++, V === M.length)) {
3197
+ if (f(q[T]) && (V++, V === I.length)) {
3184
3198
  F = T + 1;
3185
3199
  break;
3186
3200
  }
3187
3201
  }
3188
- F = Math.min(F, D.length), c.setSelectionRange(F, F);
3202
+ F = Math.min(F, L.length), c.setSelectionRange(F, F);
3189
3203
  });
3190
3204
  }
3191
3205
  function _(d) {
3192
3206
  const c = d.target;
3193
3207
  setTimeout(() => {
3194
- const w = c.value, M = g(w), D = h(M);
3195
- o.value = D, e.value = M;
3196
- const { required: L, optional: N } = u(t), q = L + N;
3208
+ const b = c.value, I = g(b), L = h(I);
3209
+ o.value = L, e.value = I;
3210
+ const { required: D, optional: N } = u(t), q = D + N;
3197
3211
  let F = 0, V = 0;
3198
3212
  for (let T = 0; T < q.length; T++)
3199
3213
  if (f(q[T]))
3200
- if (V < M.length)
3214
+ if (V < I.length)
3201
3215
  V++;
3202
3216
  else {
3203
3217
  F = T;
3204
3218
  break;
3205
3219
  }
3206
- if (V === M.length && M.length > 0) {
3220
+ if (V === I.length && I.length > 0) {
3207
3221
  V = 0;
3208
3222
  for (let T = 0; T < q.length; T++)
3209
- if (f(q[T]) && (V++, V === M.length)) {
3223
+ if (f(q[T]) && (V++, V === I.length)) {
3210
3224
  F = T + 1;
3211
3225
  break;
3212
3226
  }
3213
3227
  }
3214
- F = Math.min(F, D.length), c.setSelectionRange(F, F);
3228
+ F = Math.min(F, L.length), c.setSelectionRange(F, F);
3215
3229
  }, 0);
3216
3230
  }
3217
3231
  function B(d) {
3218
- const c = d.target, w = c.selectionStart || 0;
3232
+ const c = d.target, b = c.selectionStart || 0;
3219
3233
  if (d.key === "Backspace") {
3220
3234
  if (d.metaKey || d.ctrlKey)
3221
3235
  return;
@@ -3234,11 +3248,11 @@ function qa(e, l) {
3234
3248
  });
3235
3249
  return;
3236
3250
  }
3237
- if (w > 0 && o.value.length > 0) {
3251
+ if (b > 0 && o.value.length > 0) {
3238
3252
  const X = o.value;
3239
3253
  let C = "", E = -1;
3240
3254
  const { required: W, optional: G } = u(t), Q = W + G;
3241
- for (let ne = w - 1; ne >= 0; ne--)
3255
+ for (let ne = b - 1; ne >= 0; ne--)
3242
3256
  if (ne < Q.length && f(Q[ne])) {
3243
3257
  E = ne;
3244
3258
  break;
@@ -3277,10 +3291,10 @@ function qa(e, l) {
3277
3291
  });
3278
3292
  return;
3279
3293
  }
3280
- if (w < o.value.length) {
3294
+ if (b < o.value.length) {
3281
3295
  const X = o.value;
3282
3296
  let C = -1;
3283
- for (let E = w; E < X.length; E++) {
3297
+ for (let E = b; E < X.length; E++) {
3284
3298
  const { required: W, optional: G } = u(t), Q = W + G;
3285
3299
  if (E < Q.length && f(Q[E])) {
3286
3300
  C = E;
@@ -3299,7 +3313,7 @@ function qa(e, l) {
3299
3313
  E = E.slice(0, W) + E.slice(W + 1);
3300
3314
  const G = h(E);
3301
3315
  o.value = G, e.value = E, fe(() => {
3302
- c.setSelectionRange(w, w);
3316
+ c.setSelectionRange(b, b);
3303
3317
  });
3304
3318
  }
3305
3319
  }
@@ -3307,44 +3321,44 @@ function qa(e, l) {
3307
3321
  }
3308
3322
  if (d.metaKey || d.ctrlKey || ["ArrowLeft", "ArrowRight", "Tab", "Home", "End", "Escape"].includes(d.key))
3309
3323
  return;
3310
- const { required: M, optional: D } = u(t), L = M + D, N = g(o.value), q = L.split("").filter((T) => f(T)).length;
3324
+ const { required: I, optional: L } = u(t), D = I + L, N = g(o.value), q = D.split("").filter((T) => f(T)).length;
3311
3325
  if (N.length >= q) {
3312
3326
  d.preventDefault();
3313
3327
  return;
3314
3328
  }
3315
3329
  let F = -1, V = 0;
3316
- for (let T = 0; T < L.length; T++)
3317
- if (f(L[T])) {
3330
+ for (let T = 0; T < D.length; T++)
3331
+ if (f(D[T])) {
3318
3332
  if (V === N.length) {
3319
3333
  F = T;
3320
3334
  break;
3321
3335
  }
3322
3336
  V++;
3323
3337
  }
3324
- F >= 0 && !m(d.key, L[F]) && d.preventDefault();
3338
+ F >= 0 && !m(d.key, D[F]) && d.preventDefault();
3325
3339
  }
3326
- function R(d) {
3340
+ function M(d) {
3327
3341
  s.value = !0, fe(() => {
3328
- const c = d.target, { required: w, optional: M } = u(t), D = w + M;
3329
- let L = 0;
3330
- for (let N = 0; N < D.length; N++)
3331
- if (f(D[N])) {
3332
- L = N;
3342
+ const c = d.target, { required: b, optional: I } = u(t), L = b + I;
3343
+ let D = 0;
3344
+ for (let N = 0; N < L.length; N++)
3345
+ if (f(L[N])) {
3346
+ D = N;
3333
3347
  break;
3334
3348
  }
3335
3349
  if (je(e)) {
3336
3350
  let N = 0;
3337
- for (let q = 0; q < D.length; q++)
3338
- if (f(D[q])) {
3351
+ for (let q = 0; q < L.length; q++)
3352
+ if (f(L[q])) {
3339
3353
  if (N >= je(e).length) {
3340
- L = q;
3354
+ D = q;
3341
3355
  break;
3342
3356
  }
3343
3357
  N++;
3344
3358
  }
3345
- N === je(e).length && (L = o.value.length);
3359
+ N === je(e).length && (D = o.value.length);
3346
3360
  }
3347
- c.setSelectionRange(L, L);
3361
+ c.setSelectionRange(D, D);
3348
3362
  });
3349
3363
  }
3350
3364
  function x() {
@@ -3359,7 +3373,7 @@ function qa(e, l) {
3359
3373
  handleInput: O,
3360
3374
  handlePaste: _,
3361
3375
  handleKeydown: B,
3362
- handleFocus: R,
3376
+ handleFocus: M,
3363
3377
  handleBlur: x,
3364
3378
  placeholder: y()
3365
3379
  };
@@ -3416,7 +3430,7 @@ const ui = /* @__PURE__ */ Y({
3416
3430
  disabled: { type: Boolean }
3417
3431
  },
3418
3432
  setup(e) {
3419
- const l = P(() => [
3433
+ const l = R(() => [
3420
3434
  "icon-field",
3421
3435
  {
3422
3436
  [`icon-field--${e.position}`]: e.position,
@@ -3427,7 +3441,7 @@ const ui = /* @__PURE__ */ Y({
3427
3441
  class: z(l.value)
3428
3442
  }, [
3429
3443
  (v(), U(Pe(t.icon), { class: "icon-field__icon" })),
3430
- b("div", Na, [
3444
+ w("div", Na, [
3431
3445
  J(t.$slots, "default")
3432
3446
  ])
3433
3447
  ], 2));
@@ -3448,7 +3462,7 @@ const ui = /* @__PURE__ */ Y({
3448
3462
  }),
3449
3463
  emits: ["update:modelValue"],
3450
3464
  setup(e) {
3451
- const l = ie(e, "modelValue"), t = I(
3465
+ const l = ie(e, "modelValue"), t = P(
3452
3466
  e.formatter ? e.formatter(l.value) : l.value
3453
3467
  );
3454
3468
  ee(l, (s) => {
@@ -3471,7 +3485,7 @@ const ui = /* @__PURE__ */ Y({
3471
3485
  if (l.value === 1) return;
3472
3486
  let s = e.countInPackage ? l.value - e.countInPackage : l.value - 1;
3473
3487
  s < e.min && (s = e.min), l.value = s;
3474
- }, o = P(() => [
3488
+ }, o = R(() => [
3475
3489
  "input-number",
3476
3490
  {
3477
3491
  "input-number--view-buttons": e.viewButtons,
@@ -3493,9 +3507,9 @@ const ui = /* @__PURE__ */ Y({
3493
3507
  disabled: s.countInPackage ? l.value === s.countInPackage : l.value === s.min,
3494
3508
  onClick: pe(i, ["stop"])
3495
3509
  }, null, 8, ["icon", "disabled"])) : A("", !0),
3496
- b("div", Wa, [
3510
+ w("div", Wa, [
3497
3511
  (v(), U(Pe(s.icon))),
3498
- be(b("input", {
3512
+ be(w("input", {
3499
3513
  "onUpdate:modelValue": r[0] || (r[0] = (u) => t.value = u),
3500
3514
  type: "number",
3501
3515
  name: "input-number",
@@ -3529,7 +3543,7 @@ const ui = /* @__PURE__ */ Y({
3529
3543
  },
3530
3544
  emits: ["update:modelValue"],
3531
3545
  setup(e) {
3532
- const l = ie(e, "modelValue"), t = P({
3546
+ const l = ie(e, "modelValue"), t = R({
3533
3547
  get() {
3534
3548
  return a(l.value);
3535
3549
  },
@@ -3599,7 +3613,7 @@ const ui = /* @__PURE__ */ Y({
3599
3613
  setup(e, { emit: l }) {
3600
3614
  const t = ie(e, "modelValue"), a = l, n = nt();
3601
3615
  return (i, o) => (v(), p("div", Za, [
3602
- b("div", {
3616
+ w("div", {
3603
3617
  class: z([
3604
3618
  "switch",
3605
3619
  {
@@ -3607,7 +3621,7 @@ const ui = /* @__PURE__ */ Y({
3607
3621
  }
3608
3622
  ])
3609
3623
  }, [
3610
- be(b("input", {
3624
+ be(w("input", {
3611
3625
  "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
3612
3626
  type: "checkbox",
3613
3627
  name: "switch",
@@ -3618,8 +3632,8 @@ const ui = /* @__PURE__ */ Y({
3618
3632
  }, null, 40, Qa), [
3619
3633
  [Mt, t.value]
3620
3634
  ]),
3621
- o[2] || (o[2] = b("div", { class: "switch__track" }, [
3622
- b("div", { class: "switch__thumb" })
3635
+ o[2] || (o[2] = w("div", { class: "switch__track" }, [
3636
+ w("div", { class: "switch__thumb" })
3623
3637
  ], -1))
3624
3638
  ], 2),
3625
3639
  i.label ? (v(), p("label", {
@@ -3641,14 +3655,14 @@ const ui = /* @__PURE__ */ Y({
3641
3655
  }),
3642
3656
  emits: ["update:modelValue"],
3643
3657
  setup(e) {
3644
- const l = ie(e, "modelValue"), t = P({
3658
+ const l = ie(e, "modelValue"), t = R({
3645
3659
  get() {
3646
3660
  return l.value ?? 0;
3647
3661
  },
3648
3662
  set(u) {
3649
3663
  l.value = u;
3650
3664
  }
3651
- }), a = e, n = I(null), i = P(() => {
3665
+ }), a = e, n = P(null), i = R(() => {
3652
3666
  let u;
3653
3667
  if (typeof a.size == "number")
3654
3668
  u = a.size;
@@ -3725,7 +3739,7 @@ const ui = /* @__PURE__ */ Y({
3725
3739
  }),
3726
3740
  emits: /* @__PURE__ */ ae(["focusIn", "focusOut", "blur"], ["update:modelValue"]),
3727
3741
  setup(e, { emit: l }) {
3728
- const t = l, a = ie(e, "modelValue"), n = I(null), i = nt(), o = () => {
3742
+ const t = l, a = ie(e, "modelValue"), n = P(null), i = nt(), o = () => {
3729
3743
  const r = n.value;
3730
3744
  if (!r) return;
3731
3745
  const u = {
@@ -3740,7 +3754,7 @@ const ui = /* @__PURE__ */ Y({
3740
3754
  }), ee(() => [e.rows, e.maxHeight], () => {
3741
3755
  o();
3742
3756
  });
3743
- const s = P(() => [
3757
+ const s = R(() => [
3744
3758
  "textarea",
3745
3759
  `textarea--${e.size}`,
3746
3760
  {
@@ -3760,7 +3774,7 @@ const ui = /* @__PURE__ */ Y({
3760
3774
  r.required ? (v(), p("sup", ls, "*")) : A("", !0),
3761
3775
  ve(" " + j(r.label), 1)
3762
3776
  ], 8, ts)) : A("", !0),
3763
- be(b("textarea", {
3777
+ be(w("textarea", {
3764
3778
  "onUpdate:modelValue": u[0] || (u[0] = (f) => a.value = f),
3765
3779
  ref_key: "textareaRef",
3766
3780
  ref: n,
@@ -3780,7 +3794,7 @@ const ui = /* @__PURE__ */ Y({
3780
3794
  }, null, 40, ns), [
3781
3795
  [ze, a.value]
3782
3796
  ]),
3783
- b("div", os, [
3797
+ w("div", os, [
3784
3798
  r.smallText || r.error && r.errorText ? (v(), p("div", {
3785
3799
  key: 0,
3786
3800
  class: z(["textarea__small", { "textarea__small--error": r.error }])
@@ -3809,15 +3823,15 @@ const ui = /* @__PURE__ */ Y({
3809
3823
  o.push({ value: h, label: y });
3810
3824
  }
3811
3825
  return o;
3812
- }, n = P(() => l.options || a()), i = () => {
3826
+ }, n = R(() => l.options || a()), i = () => {
3813
3827
  };
3814
3828
  return (o, s) => (v(), p("div", ss, [
3815
- be(b("select", {
3829
+ be(w("select", {
3816
3830
  "onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
3817
3831
  class: "time-picker__select",
3818
3832
  onChange: i
3819
3833
  }, [
3820
- s[1] || (s[1] = b("option", {
3834
+ s[1] || (s[1] = w("option", {
3821
3835
  value: "",
3822
3836
  disabled: ""
3823
3837
  }, "Выберите время", -1)),
@@ -4017,8 +4031,8 @@ function ms(e, l = "dd.mm.yyyy", t = null, a = null) {
4017
4031
  }
4018
4032
  return i;
4019
4033
  }
4020
- function ps(e, l, t = I(se().format("DD.MM.YYYY")), a = I(null), n = I(null), i = I(!1)) {
4021
- const o = I(se()), s = () => {
4034
+ function ps(e, l, t = P(se().format("DD.MM.YYYY")), a = P(null), n = P(null), i = P(!1)) {
4035
+ const o = P(se()), s = () => {
4022
4036
  switch (e.value) {
4023
4037
  case "day":
4024
4038
  o.value = o.value.subtract(1, "month");
@@ -4044,7 +4058,7 @@ function ps(e, l, t = I(se().format("DD.MM.YYYY")), a = I(null), n = I(null), i
4044
4058
  }
4045
4059
  }, u = () => {
4046
4060
  o.value = se();
4047
- }, f = P(() => {
4061
+ }, f = R(() => {
4048
4062
  const h = se(), y = o.value.year(), g = o.value.month(), $ = l.value || "dd.mm.yy";
4049
4063
  switch (e.value) {
4050
4064
  case "day":
@@ -4056,7 +4070,7 @@ function ps(e, l, t = I(se().format("DD.MM.YYYY")), a = I(null), n = I(null), i
4056
4070
  default:
4057
4071
  return [];
4058
4072
  }
4059
- }), m = P(() => {
4073
+ }), m = R(() => {
4060
4074
  const h = [
4061
4075
  "Январь",
4062
4076
  "Февраль",
@@ -4111,25 +4125,25 @@ const gs = {
4111
4125
  }),
4112
4126
  emits: ["update:modelValue"],
4113
4127
  setup(e) {
4114
- const l = e, t = Ke(l, "type"), a = Ke(l, "format"), n = Ke(l, "range"), i = Ke(l, "minDate"), o = Ke(l, "maxDate"), s = ie(e, "modelValue"), r = I(!1), u = I(""), f = I(m());
4128
+ const l = e, t = Ke(l, "type"), a = Ke(l, "format"), n = Ke(l, "range"), i = Ke(l, "minDate"), o = Ke(l, "maxDate"), s = ie(e, "modelValue"), r = P(!1), u = P(""), f = P(m());
4115
4129
  function m() {
4116
4130
  return t.value === "time" ? "time" : t.value || "day";
4117
4131
  }
4118
- const h = P(() => ["day", "month", "year", "date", "datetime"].includes(t.value || "day")), y = P(() => ["time", "datetime"].includes(t.value || "day")), { calendarCells: g, activeDateInfo: $, goToPreviousPage: S, goToNextPage: O } = ps(f, a, s, i, o, n);
4132
+ const h = R(() => ["day", "month", "year", "date", "datetime"].includes(t.value || "day")), y = R(() => ["time", "datetime"].includes(t.value || "day")), { calendarCells: g, activeDateInfo: $, goToPreviousPage: S, goToNextPage: O } = ps(f, a, s, i, o, n);
4119
4133
  ee([u, s], () => {
4120
4134
  t.value === "datetime" && s.value && u.value ? typeof s.value == "string" && (s.value = `${s.value} ${u.value}`) : t.value === "time" && (s.value = u.value);
4121
4135
  });
4122
- const _ = P({
4136
+ const _ = R({
4123
4137
  get() {
4124
4138
  return f.value;
4125
4139
  },
4126
4140
  set(d) {
4127
4141
  ["date", "datetime"].includes(t.value || "") ? ["day", "month", "year"].includes(d) && (f.value = d) : t.value === "time" ? f.value = "time" : t.value === "day" ? f.value = d : t.value === "month" ? (d === "month" || d === "year") && (f.value = d) : f.value = d;
4128
4142
  }
4129
- }), B = P(() => [
4143
+ }), B = R(() => [
4130
4144
  "calendar",
4131
4145
  `calendar--${f.value}`
4132
- ]), R = (d) => [
4146
+ ]), M = (d) => [
4133
4147
  "calendar__body-item",
4134
4148
  {
4135
4149
  "calendar__body-item--current": d.current,
@@ -4152,8 +4166,8 @@ const gs = {
4152
4166
  if (s.value.from === d.value)
4153
4167
  s.value = null, r.value = !1;
4154
4168
  else if (r.value) {
4155
- const c = yt(s.value.from, l.format || "dd/mm/yy"), w = yt(d.value, l.format || "dd/mm/yy");
4156
- c && w ? c.isBefore(w) || c.isSame(w) ? s.value = { from: s.value.from, to: d.value } : s.value = { from: d.value, to: s.value.from } : s.value = { from: s.value.from, to: d.value }, r.value = !1;
4169
+ const c = yt(s.value.from, l.format || "dd/mm/yy"), b = yt(d.value, l.format || "dd/mm/yy");
4170
+ c && b ? c.isBefore(b) || c.isSame(b) ? s.value = { from: s.value.from, to: d.value } : s.value = { from: d.value, to: s.value.from } : s.value = { from: s.value.from, to: d.value }, r.value = !1;
4157
4171
  } else
4158
4172
  s.value = { from: d.value, to: "" }, r.value = !0;
4159
4173
  else
@@ -4163,7 +4177,7 @@ const gs = {
4163
4177
  class: z(B.value)
4164
4178
  }, [
4165
4179
  h.value ? (v(), p("div", gs, [
4166
- b("div", hs, [
4180
+ w("div", hs, [
4167
4181
  K(k(Se), {
4168
4182
  size: "small",
4169
4183
  "icon-only": "",
@@ -4173,11 +4187,11 @@ const gs = {
4173
4187
  disabled: _.value === "month",
4174
4188
  onClick: k(S)
4175
4189
  }, null, 8, ["icon", "disabled", "onClick"]),
4176
- b("div", ys, [
4190
+ w("div", ys, [
4177
4191
  _.value === "day" ? (v(), U(k(Se), {
4178
4192
  key: 0,
4179
4193
  variant: "link",
4180
- onClick: c[0] || (c[0] = (w) => _.value = "month")
4194
+ onClick: c[0] || (c[0] = (b) => _.value = "month")
4181
4195
  }, {
4182
4196
  default: oe(() => [
4183
4197
  ve(j(k($).month), 1)
@@ -4187,7 +4201,7 @@ const gs = {
4187
4201
  _.value !== "year" ? (v(), U(k(Se), {
4188
4202
  key: 1,
4189
4203
  variant: "link",
4190
- onClick: c[1] || (c[1] = (w) => _.value = "year")
4204
+ onClick: c[1] || (c[1] = (b) => _.value = "year")
4191
4205
  }, {
4192
4206
  default: oe(() => [
4193
4207
  ve(j(k($).year), 1)
@@ -4206,18 +4220,18 @@ const gs = {
4206
4220
  onClick: k(O)
4207
4221
  }, null, 8, ["icon", "disabled", "onClick"])
4208
4222
  ]),
4209
- b("div", ws, [
4223
+ w("div", ws, [
4210
4224
  _.value === "day" ? (v(), p("div", ks, [...c[3] || (c[3] = [
4211
4225
  zl('<div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Пн</span></div><div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Вт</span></div><div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Ср</span></div><div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Чт</span></div><div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Пт</span></div><div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Сб</span></div><div class="calendar__body-header__item" data-v-b8e6b40b><span data-v-b8e6b40b>Вс</span></div>', 7)
4212
4226
  ])])) : A("", !0),
4213
- b("div", _s, [
4214
- (v(!0), p(re, null, ge(k(g), (w) => (v(), p("button", {
4215
- key: w.value,
4216
- class: z(R(w)),
4217
- disabled: w.disabled,
4218
- onClick: (M) => x(w)
4227
+ w("div", _s, [
4228
+ (v(!0), p(re, null, ge(k(g), (b) => (v(), p("button", {
4229
+ key: b.value,
4230
+ class: z(M(b)),
4231
+ disabled: b.disabled,
4232
+ onClick: (I) => x(b)
4219
4233
  }, [
4220
- b("span", null, j(w.label), 1)
4234
+ w("span", null, j(b.label), 1)
4221
4235
  ], 10, $s))), 128))
4222
4236
  ])
4223
4237
  ])
@@ -4225,7 +4239,7 @@ const gs = {
4225
4239
  y.value ? (v(), p("div", Ss, [
4226
4240
  K(us, {
4227
4241
  modelValue: u.value,
4228
- "onUpdate:modelValue": c[2] || (c[2] = (w) => u.value = w)
4242
+ "onUpdate:modelValue": c[2] || (c[2] = (b) => u.value = b)
4229
4243
  }, null, 8, ["modelValue"])
4230
4244
  ])) : A("", !0)
4231
4245
  ], 2));
@@ -4353,18 +4367,18 @@ const Ts = /* @__PURE__ */ Y({
4353
4367
  }),
4354
4368
  emits: /* @__PURE__ */ ae(["update:modelValue", "select", "clear", "focus", "blur", "input"], ["update:modelValue"]),
4355
4369
  setup(e, { emit: l }) {
4356
- function t(c, w) {
4357
- let M = w;
4358
- const D = c.dayOfYear(), L = [
4370
+ function t(c, b) {
4371
+ let I = b;
4372
+ const L = c.dayOfYear(), D = [
4359
4373
  // День месяца
4360
4374
  [/dd/g, c.format("DD")],
4361
4375
  // два знака
4362
4376
  [/d/g, c.format("D")],
4363
4377
  // без ведущего нуля
4364
4378
  // День года
4365
- [/oo/g, String(D).padStart(3, "0")],
4379
+ [/oo/g, String(L).padStart(3, "0")],
4366
4380
  // три знака
4367
- [/o/g, String(D)],
4381
+ [/o/g, String(L)],
4368
4382
  // без ведущих нулей
4369
4383
  // Название дня
4370
4384
  [/DD/g, c.format("dddd")],
@@ -4392,29 +4406,29 @@ const Ts = /* @__PURE__ */ Y({
4392
4406
  // Windows ticks
4393
4407
  ], N = [];
4394
4408
  let q = 0;
4395
- return M = M.replace(/'([^']*)'/g, (F, V) => {
4409
+ return I = I.replace(/'([^']*)'/g, (F, V) => {
4396
4410
  const T = `__LITERAL_${q}__`;
4397
4411
  return N[q] = V, q++, T;
4398
- }), M = M.replace(/''/g, "'"), L.forEach(([F, V]) => {
4399
- M = M.replace(F, V);
4412
+ }), I = I.replace(/''/g, "'"), D.forEach(([F, V]) => {
4413
+ I = I.replace(F, V);
4400
4414
  }), N.forEach((F, V) => {
4401
- M = M.replace(`__LITERAL_${V}__`, F);
4402
- }), M;
4415
+ I = I.replace(`__LITERAL_${V}__`, F);
4416
+ }), I;
4403
4417
  }
4404
- function a(c, w) {
4418
+ function a(c, b) {
4405
4419
  try {
4406
- const M = se(c, w, !0);
4407
- if (M.isValid())
4408
- return M;
4409
- const D = se(c);
4410
- return D.isValid() ? D : null;
4420
+ const I = se(c, b, !0);
4421
+ if (I.isValid())
4422
+ return I;
4423
+ const L = se(c);
4424
+ return L.isValid() ? L : null;
4411
4425
  } catch {
4412
4426
  return null;
4413
4427
  }
4414
4428
  }
4415
- const n = new Vs(), i = e, o = l, s = ie(e, "modelValue"), r = I(), u = I(), f = I(), m = I(!1), h = I({});
4429
+ const n = new Vs(), i = e, o = l, s = ie(e, "modelValue"), r = P(), u = P(), f = P(), m = P(!1), h = P({});
4416
4430
  let y = null;
4417
- const g = I(s.value), { zIndex: $ } = qe("popover"), S = P(() => {
4431
+ const g = P(s.value), { zIndex: $ } = qe("popover"), S = R(() => {
4418
4432
  if (!s.value) return "";
4419
4433
  if (typeof s.value == "string")
4420
4434
  return s.value;
@@ -4433,14 +4447,14 @@ const Ts = /* @__PURE__ */ Y({
4433
4447
  return "";
4434
4448
  }), O = (c) => {
4435
4449
  n.getDateMask(c, i.format);
4436
- const w = c.target;
4437
- if (!w.value) {
4450
+ const b = c.target;
4451
+ if (!b.value) {
4438
4452
  s.value = null;
4439
4453
  return;
4440
4454
  }
4441
- if (w.value.length === i.format.length) {
4442
- const M = a(w.value, i.format);
4443
- M && M.isValid() ? (s.value = w.value, o("select", M.toDate())) : s.value = null;
4455
+ if (b.value.length === i.format.length) {
4456
+ const I = a(b.value, i.format);
4457
+ I && I.isValid() ? (s.value = b.value, o("select", I.toDate())) : s.value = null;
4444
4458
  }
4445
4459
  o("input", c);
4446
4460
  }, _ = () => {
@@ -4453,11 +4467,11 @@ const Ts = /* @__PURE__ */ Y({
4453
4467
  x
4454
4468
  ));
4455
4469
  });
4456
- }, R = (c) => {
4470
+ }, M = (c) => {
4457
4471
  c && (g.value = c, typeof c == "string" ? (s.value = c, c.length === i.format.length && !i.range && (m.value = !1)) : c instanceof Date ? (s.value = t(se(c), i.format), i.range || (m.value = !1)) : typeof c == "object" && (i.range ? s.value = c : (s.value = c.from || c.to || null, typeof s.value == "string" && s.value.length === i.format.length && (m.value = !1))), o("select", c));
4458
4472
  }, x = async () => {
4459
4473
  if (!u.value || !f.value) return;
4460
- const { x: c, y: w } = await Ht(
4474
+ const { x: c, y: b } = await Ht(
4461
4475
  u.value,
4462
4476
  f.value,
4463
4477
  {
@@ -4472,12 +4486,12 @@ const Ts = /* @__PURE__ */ Y({
4472
4486
  );
4473
4487
  h.value = {
4474
4488
  left: `${c}px`,
4475
- top: `${w}px`
4489
+ top: `${b}px`
4476
4490
  };
4477
4491
  }, d = (c) => {
4478
4492
  if (!r.value || !f.value) return;
4479
- const w = c.target;
4480
- !r.value.contains(w) && !f.value.contains(w) && (m.value = !1, y && (y(), y = null));
4493
+ const b = c.target;
4494
+ !r.value.contains(b) && !f.value.contains(b) && (m.value = !1, y && (y(), y = null));
4481
4495
  };
4482
4496
  return ee(
4483
4497
  s,
@@ -4491,12 +4505,12 @@ const Ts = /* @__PURE__ */ Y({
4491
4505
  document.removeEventListener("mousedown", d), y && (y(), y = null);
4492
4506
  }), ee(m, (c) => {
4493
4507
  !c && y && (y(), y = null);
4494
- }), (c, w) => (v(), p("div", {
4508
+ }), (c, b) => (v(), p("div", {
4495
4509
  class: "date-picker",
4496
4510
  ref_key: "datePickerRef",
4497
4511
  ref: r
4498
4512
  }, [
4499
- b("div", {
4513
+ w("div", {
4500
4514
  ref_key: "inputRef",
4501
4515
  ref: u,
4502
4516
  class: "date-picker__input"
@@ -4526,15 +4540,15 @@ const Ts = /* @__PURE__ */ Y({
4526
4540
  class: "date-picker__popover",
4527
4541
  style: le({ ...h.value, zIndex: Math.max(k($)?.zIndex || 1100, 9999) })
4528
4542
  }, [
4529
- b("div", {
4530
- onMousedown: w[1] || (w[1] = pe(() => {
4543
+ w("div", {
4544
+ onMousedown: b[1] || (b[1] = pe(() => {
4531
4545
  }, ["stop"]))
4532
4546
  }, [
4533
4547
  K(k(xs), {
4534
4548
  modelValue: g.value,
4535
4549
  "onUpdate:modelValue": [
4536
- w[0] || (w[0] = (M) => g.value = M),
4537
- R
4550
+ b[0] || (b[0] = (I) => g.value = I),
4551
+ M
4538
4552
  ],
4539
4553
  format: c.format,
4540
4554
  range: c.range,
@@ -4571,14 +4585,14 @@ const Ts = /* @__PURE__ */ Y({
4571
4585
  }),
4572
4586
  emits: /* @__PURE__ */ ae(["change", "complete", "focus", "blur"], ["update:modelValue"]),
4573
4587
  setup(e, { emit: l }) {
4574
- const t = e, a = l, n = ie(e, "modelValue"), i = I([]), o = I([]), s = P(() => t.length);
4588
+ const t = e, a = l, n = ie(e, "modelValue"), i = P([]), o = P([]), s = R(() => t.length);
4575
4589
  ee(() => n.value, (g) => {
4576
4590
  o.value = g.split("").concat(Array(Math.max(0, s.value - g.length)).fill(""));
4577
4591
  }, { immediate: !0 }), ee(o, (g) => {
4578
4592
  const $ = g.join("").slice(0, s.value);
4579
4593
  $ !== n.value && (n.value = $, a("change", $), $.length === s.value && $.replace(/\s/g, "").length === s.value && a("complete", $));
4580
4594
  }, { deep: !0 });
4581
- const r = P(() => [
4595
+ const r = R(() => [
4582
4596
  "otp",
4583
4597
  `otp--${t.size}`,
4584
4598
  `otp--${t.variant}`,
@@ -4598,8 +4612,8 @@ const Ts = /* @__PURE__ */ Y({
4598
4612
  }, m = (g, $) => {
4599
4613
  $.preventDefault();
4600
4614
  const O = ($.clipboardData?.getData("text") || "").slice(0, s.value - g).split("");
4601
- O.forEach((B, R) => {
4602
- g + R < s.value && (o.value[g + R] = B);
4615
+ O.forEach((B, M) => {
4616
+ g + M < s.value && (o.value[g + M] = B);
4603
4617
  });
4604
4618
  const _ = Math.min(g + O.length, s.value - 1);
4605
4619
  fe(() => {
@@ -4617,7 +4631,7 @@ const Ts = /* @__PURE__ */ Y({
4617
4631
  g.required ? (v(), p("sup", Ps, "*")) : A("", !0),
4618
4632
  ve(" " + j(g.label), 1)
4619
4633
  ])) : A("", !0),
4620
- b("div", Rs, [
4634
+ w("div", Rs, [
4621
4635
  (v(!0), p(re, null, ge(s.value, (S, O) => be((v(), p("input", {
4622
4636
  key: O,
4623
4637
  ref_for: !0,
@@ -4684,7 +4698,7 @@ const Ts = /* @__PURE__ */ Y({
4684
4698
  error: Oe(Gl),
4685
4699
  warn: Oe(Xl),
4686
4700
  info: Oe(vl)
4687
- }), n = P(() => e.msg.severity ? e.msg.icon ? e.msg.icon : a[e.msg.severity] : a.info), i = P(() => ["toast-message", `toast-message--${e.msg.severity}`]), o = I(null), s = I(void 0), r = () => {
4701
+ }), n = R(() => e.msg.severity ? e.msg.icon ? e.msg.icon : a[e.msg.severity] : a.info), i = R(() => ["toast-message", `toast-message--${e.msg.severity}`]), o = P(null), s = P(void 0), r = () => {
4688
4702
  o.value = setTimeout(() => {
4689
4703
  u({ message: e.msg, type: "life-end" });
4690
4704
  }, s.value);
@@ -4700,18 +4714,18 @@ const Ts = /* @__PURE__ */ Y({
4700
4714
  }), (h, y) => (v(), p("div", {
4701
4715
  class: z(i.value)
4702
4716
  }, [
4703
- b("div", Ls, [
4717
+ w("div", Ls, [
4704
4718
  (v(), U(Pe(n.value)))
4705
4719
  ]),
4706
- b("div", Ds, [
4707
- b("div", zs, j(h.msg.summary), 1),
4720
+ w("div", Ds, [
4721
+ w("div", zs, j(h.msg.summary), 1),
4708
4722
  h.msg.detail ? (v(), p("div", {
4709
4723
  key: 0,
4710
4724
  class: "toast-message__text",
4711
4725
  innerHTML: h.msg.detail
4712
4726
  }, null, 8, Hs)) : A("", !0)
4713
4727
  ]),
4714
- b("button", {
4728
+ w("button", {
4715
4729
  class: "toast-message__close",
4716
4730
  onClick: f
4717
4731
  }, [
@@ -4728,7 +4742,7 @@ const Ts = /* @__PURE__ */ Y({
4728
4742
  },
4729
4743
  setup(e) {
4730
4744
  let l = 0;
4731
- const t = I([]), a = (u) => {
4745
+ const t = P([]), a = (u) => {
4732
4746
  u.id == null && (u.id = l++), t.value = [...t.value, u];
4733
4747
  }, n = (u) => {
4734
4748
  const f = t.value.findIndex((m) => m.id === u.message.id);
@@ -4747,7 +4761,7 @@ const Ts = /* @__PURE__ */ Y({
4747
4761
  }), Ve(() => {
4748
4762
  ke.off("add", i), ke.off("remove", o), ke.off("remove-group", s), ke.off("remove-all-groups", r);
4749
4763
  }), (u, f) => (v(), U(Le, { to: "body" }, [
4750
- b("div", qs, [
4764
+ w("div", qs, [
4751
4765
  K(Hl, {
4752
4766
  name: "toast-fade",
4753
4767
  tag: "div",
@@ -4801,7 +4815,7 @@ const _i = {
4801
4815
  outlined: Boolean
4802
4816
  },
4803
4817
  setup(e) {
4804
- const l = e, t = P(() => [
4818
+ const l = e, t = R(() => [
4805
4819
  "message",
4806
4820
  `message--${l.type}`,
4807
4821
  { "message--outlined": l.outlined }
@@ -4813,10 +4827,10 @@ const _i = {
4813
4827
  return (n, i) => (v(), p("div", {
4814
4828
  class: z(t.value)
4815
4829
  }, [
4816
- b("div", Ns, [
4830
+ w("div", Ns, [
4817
4831
  (v(), U(Pe(a[l.type])))
4818
4832
  ]),
4819
- b("p", Ws, [
4833
+ w("p", Ws, [
4820
4834
  n.$slots.default ? J(n.$slots, "default", { key: 0 }, void 0, !0) : (v(), p(re, { key: 1 }, [
4821
4835
  ve(j(l.message), 1)
4822
4836
  ], 64))
@@ -4834,7 +4848,7 @@ const _i = {
4834
4848
  strong: { type: Boolean }
4835
4849
  },
4836
4850
  setup(e) {
4837
- const l = P(() => [
4851
+ const l = R(() => [
4838
4852
  "badge",
4839
4853
  {
4840
4854
  "badge--strong": e.strong,
@@ -4858,7 +4872,7 @@ const _i = {
4858
4872
  offset: { default: () => ({ x: -5, y: -7 }) }
4859
4873
  },
4860
4874
  setup(e) {
4861
- const l = P(() => typeof e.offset == "number" ? {
4875
+ const l = R(() => typeof e.offset == "number" ? {
4862
4876
  left: `calc(100% + ${e.offset}px)`,
4863
4877
  top: `${e.offset}px`
4864
4878
  } : {
@@ -4888,13 +4902,13 @@ const _i = {
4888
4902
  size: {}
4889
4903
  },
4890
4904
  setup(e) {
4891
- const l = P(() => [
4905
+ const l = R(() => [
4892
4906
  "skeleton",
4893
4907
  `skeleton--${e.shape}`,
4894
4908
  {
4895
4909
  "skeleton--square": e.size
4896
4910
  }
4897
- ]), t = P(() => ({
4911
+ ]), t = R(() => ({
4898
4912
  "--size": e.size,
4899
4913
  width: typeof e.width == "string" ? e.width : `${e.width}px`,
4900
4914
  height: typeof e.height == "string" ? e.height : `${e.height}px`,
@@ -4915,7 +4929,7 @@ const _i = {
4915
4929
  if (!e)
4916
4930
  throw new Error("useConfirmDialog() должен использоваться внутри приложения с DialogService");
4917
4931
  return e;
4918
- }, ce = I(null), de = I(null), Us = {
4932
+ }, ce = P(null), de = P(null), Us = {
4919
4933
  require: (e) => {
4920
4934
  ce.value = {
4921
4935
  modal: !0,
@@ -4980,7 +4994,7 @@ const _i = {
4980
4994
  onClick: o,
4981
4995
  style: le({ zIndex: k(a)?.zIndex })
4982
4996
  }, [
4983
- b("div", {
4997
+ w("div", {
4984
4998
  ref: "popupRef",
4985
4999
  class: z(["confirm-dialog", [`confirm-dialog--${k(ce).position}`, k(ce).class]]),
4986
5000
  onClick: u[2] || (u[2] = pe(() => {
@@ -4988,10 +5002,10 @@ const _i = {
4988
5002
  style: le(k(ce).style)
4989
5003
  }, [
4990
5004
  k(ce).header ? (v(), p("div", Qs, [
4991
- b("h4", Xs, j(k(ce).header), 1)
5005
+ w("h4", Xs, j(k(ce).header), 1)
4992
5006
  ])) : A("", !0),
4993
5007
  k(ce).message ? (v(), p("p", Gs, j(k(ce).message), 1)) : A("", !0),
4994
- b("div", Js, [
5008
+ w("div", Js, [
4995
5009
  K(k(Se), {
4996
5010
  size: "small",
4997
5011
  variant: "danger",
@@ -5029,7 +5043,7 @@ const _i = {
5029
5043
  }, or = { class: "confirm-popup__actions" }, ar = /* @__PURE__ */ Y({
5030
5044
  __name: "ConfirmPopup",
5031
5045
  setup(e) {
5032
- const l = I(), t = I({}), a = I("bottom"), { zIndex: n } = qe("popover"), i = P(() => `confirm-popup--${a.value}`), o = P(() => `confirm-popup__arrow--${a.value}`), s = () => {
5046
+ const l = P(), t = P({}), a = P("bottom"), { zIndex: n } = qe("popover"), i = R(() => `confirm-popup--${a.value}`), o = R(() => `confirm-popup__arrow--${a.value}`), s = () => {
5033
5047
  if (!de.value?.target || !l.value) return;
5034
5048
  const y = de.value.target, g = l.value, $ = de.value.position || "bottom";
5035
5049
  if (!document.contains(y)) {
@@ -5041,68 +5055,68 @@ const _i = {
5041
5055
  u();
5042
5056
  return;
5043
5057
  }
5044
- const _ = g.getBoundingClientRect(), B = 8, R = 8, x = (L) => {
5045
- switch (L) {
5058
+ const _ = g.getBoundingClientRect(), B = 8, M = 8, x = (D) => {
5059
+ switch (D) {
5046
5060
  case "top":
5047
5061
  return {
5048
- top: S.top - _.height - R,
5062
+ top: S.top - _.height - M,
5049
5063
  left: S.left + S.width / 2 - _.width / 2
5050
5064
  };
5051
5065
  case "bottom":
5052
5066
  return {
5053
- top: S.bottom + R,
5067
+ top: S.bottom + M,
5054
5068
  left: S.left + S.width / 2 - _.width / 2
5055
5069
  };
5056
5070
  case "left":
5057
5071
  return {
5058
5072
  top: S.top + S.height / 2 - _.height / 2,
5059
- left: S.left - _.width - R
5073
+ left: S.left - _.width - M
5060
5074
  };
5061
5075
  case "right":
5062
5076
  return {
5063
5077
  top: S.top + S.height / 2 - _.height / 2,
5064
- left: S.right + R
5078
+ left: S.right + M
5065
5079
  };
5066
5080
  case "topleft":
5067
5081
  return {
5068
- top: S.top - _.height - R,
5082
+ top: S.top - _.height - M,
5069
5083
  left: S.left
5070
5084
  };
5071
5085
  case "topright":
5072
5086
  return {
5073
- top: S.top - _.height - R,
5087
+ top: S.top - _.height - M,
5074
5088
  left: S.right - _.width
5075
5089
  };
5076
5090
  case "bottomleft":
5077
5091
  return {
5078
- top: S.bottom + R,
5092
+ top: S.bottom + M,
5079
5093
  left: S.left
5080
5094
  };
5081
5095
  case "bottomright":
5082
5096
  return {
5083
- top: S.bottom + R,
5097
+ top: S.bottom + M,
5084
5098
  left: S.right - _.width
5085
5099
  };
5086
5100
  default:
5087
5101
  return { top: 0, left: 0 };
5088
5102
  }
5089
- }, d = (L) => {
5090
- const N = x(L);
5103
+ }, d = (D) => {
5104
+ const N = x(D);
5091
5105
  return N.top >= B && N.left >= B && N.top + _.height <= window.innerHeight - B && N.left + _.width <= window.innerWidth - B;
5092
5106
  }, c = [$];
5093
- ["bottomright", "bottom", "top", "right", "left", "bottomleft", "topright", "topleft"].forEach((L) => {
5094
- c.includes(L) || c.push(L);
5107
+ ["bottomright", "bottom", "top", "right", "left", "bottomleft", "topright", "topleft"].forEach((D) => {
5108
+ c.includes(D) || c.push(D);
5095
5109
  });
5096
- let M = $, D = x($);
5097
- for (const L of c)
5098
- if (d(L)) {
5099
- M = L, D = x(L);
5110
+ let I = $, L = x($);
5111
+ for (const D of c)
5112
+ if (d(D)) {
5113
+ I = D, L = x(D);
5100
5114
  break;
5101
5115
  }
5102
- D.top = Math.max(B, Math.min(D.top, window.innerHeight - _.height - B)), D.left = Math.max(B, Math.min(D.left, window.innerWidth - _.width - B)), a.value = M, t.value = {
5116
+ L.top = Math.max(B, Math.min(L.top, window.innerHeight - _.height - B)), L.left = Math.max(B, Math.min(L.left, window.innerWidth - _.width - B)), a.value = I, t.value = {
5103
5117
  position: "fixed",
5104
- top: `${D.top}px`,
5105
- left: `${D.left}px`,
5118
+ top: `${L.top}px`,
5119
+ left: `${L.left}px`,
5106
5120
  zIndex: 1e3
5107
5121
  };
5108
5122
  }, r = () => {
@@ -5131,7 +5145,7 @@ const _i = {
5131
5145
  onClick: u,
5132
5146
  style: le({ zIndex: k(n)?.zIndex })
5133
5147
  }, [
5134
- b("div", {
5148
+ w("div", {
5135
5149
  ref_key: "popupRef",
5136
5150
  ref: l,
5137
5151
  class: z(["confirm-popup", i.value]),
@@ -5139,14 +5153,14 @@ const _i = {
5139
5153
  }, ["stop"])),
5140
5154
  style: le(t.value)
5141
5155
  }, [
5142
- b("div", {
5156
+ w("div", {
5143
5157
  class: z(["confirm-popup__arrow", o.value])
5144
5158
  }, null, 2),
5145
5159
  k(de).header ? (v(), p("div", tr, [
5146
- b("h4", lr, j(k(de).header), 1)
5160
+ w("h4", lr, j(k(de).header), 1)
5147
5161
  ])) : A("", !0),
5148
5162
  k(de).message ? (v(), p("p", nr, j(k(de).message), 1)) : A("", !0),
5149
- b("div", or, [
5163
+ w("div", or, [
5150
5164
  K(k(Se), {
5151
5165
  size: "small",
5152
5166
  variant: "danger",
@@ -5188,7 +5202,7 @@ const _i = {
5188
5202
  }),
5189
5203
  emits: /* @__PURE__ */ ae(["close"], ["update:open"]),
5190
5204
  setup(e, { expose: l, emit: t }) {
5191
- const { lockScroll: a, unlockScroll: n } = ot(), i = ie(e, "open"), { zIndex: o } = qe("drawer"), s = P(() => {
5205
+ const { lockScroll: a, unlockScroll: n } = ot(), i = ie(e, "open"), { zIndex: o } = qe("drawer"), s = R(() => {
5192
5206
  let h = {};
5193
5207
  return e.styleWrapper ? h = {
5194
5208
  ...h,
@@ -5219,27 +5233,27 @@ const _i = {
5219
5233
  class: z(["drawer", { [`drawer--${h.position}`]: h.position }]),
5220
5234
  style: le({ zIndex: k(o)?.zIndex })
5221
5235
  }, [
5222
- b("div", {
5236
+ w("div", {
5223
5237
  class: "drawer-overlay",
5224
5238
  onClick: y[0] || (y[0] = (g) => f())
5225
5239
  }),
5226
- b("div", {
5240
+ w("div", {
5227
5241
  class: z(["drawer-wrapper", { "drawer-wrapper--no-style": h.wrapperNoStyle }]),
5228
5242
  style: le(s.value)
5229
5243
  }, [
5230
- b("div", sr, [
5231
- b("button", {
5244
+ w("div", sr, [
5245
+ w("button", {
5232
5246
  onClick: y[1] || (y[1] = (g) => f())
5233
5247
  }, [
5234
5248
  K(k(ct))
5235
5249
  ])
5236
5250
  ]),
5237
- b("div", rr, [
5238
- b("div", ir, [
5251
+ w("div", rr, [
5252
+ w("div", ir, [
5239
5253
  J(h.$slots, "mobile-header")
5240
5254
  ]),
5241
- b("div", ur, [
5242
- b("button", {
5255
+ w("div", ur, [
5256
+ w("button", {
5243
5257
  onClick: y[2] || (y[2] = (g) => f())
5244
5258
  }, [
5245
5259
  K(k(ct))
@@ -5269,7 +5283,7 @@ const _i = {
5269
5283
  }),
5270
5284
  emits: ["update:open"],
5271
5285
  setup(e) {
5272
- const { zIndex: l } = qe("modal"), t = I(e.title), a = ie(e, "open"), n = cl(), { unlockScroll: i, lockScroll: o } = ot(), s = P(() => ["modal", `modal--${e.position}`]), r = (u) => {
5286
+ const { zIndex: l } = qe("modal"), t = P(e.title), a = ie(e, "open"), n = cl(), { unlockScroll: i, lockScroll: o } = ot(), s = R(() => ["modal", `modal--${e.position}`]), r = (u) => {
5273
5287
  t.value = u;
5274
5288
  };
5275
5289
  return ee(
@@ -5286,18 +5300,18 @@ const _i = {
5286
5300
  class: z(s.value),
5287
5301
  style: le({ zIndex: k(l)?.zIndex })
5288
5302
  }, [
5289
- b("div", {
5303
+ w("div", {
5290
5304
  class: "modal__overlay",
5291
5305
  onClick: f[0] || (f[0] = (m) => a.value = !1)
5292
5306
  }),
5293
- b("div", {
5307
+ w("div", {
5294
5308
  class: "modal__content",
5295
5309
  style: le(u.style)
5296
5310
  }, [
5297
- b("div", cr, [
5311
+ w("div", cr, [
5298
5312
  J(u.$slots, "header"),
5299
5313
  t.value && !n.header ? (v(), p("h2", dr, j(t.value), 1)) : A("", !0),
5300
- b("button", {
5314
+ w("button", {
5301
5315
  text: "",
5302
5316
  class: "modal__header-close",
5303
5317
  onClick: f[1] || (f[1] = (m) => a.value = !1)
@@ -5305,7 +5319,7 @@ const _i = {
5305
5319
  K(k(et))
5306
5320
  ])
5307
5321
  ]),
5308
- b("div", fr, [
5322
+ w("div", fr, [
5309
5323
  J(u.$slots, "default", { setTitle: r })
5310
5324
  ])
5311
5325
  ], 4)
@@ -5323,13 +5337,13 @@ const _i = {
5323
5337
  },
5324
5338
  emits: ["update:open"],
5325
5339
  setup(e) {
5326
- const l = ie(e, "open"), { zIndex: t } = qe("modal"), a = I(), n = I(), i = I(0), o = I(!1), s = I(0), r = I(0), u = I(0), f = I(0), m = I(!1), { unlockScroll: h, lockScroll: y } = ot(), g = () => {
5340
+ const l = ie(e, "open"), { zIndex: t } = qe("modal"), a = P(), n = P(), i = P(0), o = P(!1), s = P(0), r = P(0), u = P(0), f = P(0), m = P(!1), { unlockScroll: h, lockScroll: y } = ot(), g = () => {
5327
5341
  l.value = !1;
5328
5342
  }, $ = (d) => {
5329
5343
  if (!n.value) return;
5330
5344
  s.value = d.touches[0].clientY, r.value = s.value, f.value = n.value.scrollTop;
5331
- const w = d.target.closest(".bottom-sheet__handle"), M = n.value.scrollTop === 0;
5332
- m.value = !!(w || M), m.value && (o.value = !0);
5345
+ const b = d.target.closest(".bottom-sheet__handle"), I = n.value.scrollTop === 0;
5346
+ m.value = !!(b || I), m.value && (o.value = !0);
5333
5347
  }, S = (d) => {
5334
5348
  if (!o.value || !m.value || !n.value) return;
5335
5349
  r.value = d.touches[0].clientY;
@@ -5347,18 +5361,18 @@ const _i = {
5347
5361
  s.value = d.touches[0].clientY, r.value = s.value, m.value = !0, o.value = !0;
5348
5362
  }, B = (d) => {
5349
5363
  o.value = !0, m.value = !0, s.value = d.clientY, r.value = s.value;
5350
- const c = (M) => {
5364
+ const c = (I) => {
5351
5365
  if (!o.value || !m.value) return;
5352
- r.value = M.clientY;
5353
- const D = r.value - s.value;
5354
- D > 0 && (M.preventDefault(), i.value = D);
5355
- }, w = () => {
5366
+ r.value = I.clientY;
5367
+ const L = r.value - s.value;
5368
+ L > 0 && (I.preventDefault(), i.value = L);
5369
+ }, b = () => {
5356
5370
  if (!o.value || !m.value) return;
5357
- const M = u.value * 0.3;
5358
- i.value > M && g(), i.value = 0, o.value = !1, m.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", w);
5371
+ const I = u.value * 0.3;
5372
+ i.value > I && g(), i.value = 0, o.value = !1, m.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", b);
5359
5373
  };
5360
- document.addEventListener("mousemove", c), document.addEventListener("mouseup", w);
5361
- }, R = () => {
5374
+ document.addEventListener("mousemove", c), document.addEventListener("mouseup", b);
5375
+ }, M = () => {
5362
5376
  a.value && (a.value.addEventListener("touchstart", $, {
5363
5377
  passive: !0
5364
5378
  }), a.value.addEventListener("touchmove", S, {
@@ -5368,9 +5382,9 @@ const _i = {
5368
5382
  a.value && (a.value.removeEventListener("touchstart", $), a.value.removeEventListener("touchmove", S));
5369
5383
  };
5370
5384
  return ee(l, async (d) => {
5371
- d ? (y(), await fe(), a.value && (u.value = a.value.offsetHeight, R())) : (h(), x(), i.value = 0);
5385
+ d ? (y(), await fe(), a.value && (u.value = a.value.offsetHeight, M())) : (h(), x(), i.value = 0);
5372
5386
  }), he(() => {
5373
- l.value && a.value && (u.value = a.value.offsetHeight, R());
5387
+ l.value && a.value && (u.value = a.value.offsetHeight, M());
5374
5388
  }), Ve(() => {
5375
5389
  h(), x();
5376
5390
  }), (d, c) => (v(), U(Le, { to: "body" }, [
@@ -5381,9 +5395,9 @@ const _i = {
5381
5395
  class: "bottom-sheet",
5382
5396
  style: le({ zIndex: k(t)?.zIndex })
5383
5397
  }, [
5384
- b("div", {
5398
+ w("div", {
5385
5399
  class: "bottom-sheet__overlay",
5386
- onClick: c[0] || (c[0] = (w) => g())
5400
+ onClick: c[0] || (c[0] = (b) => g())
5387
5401
  }),
5388
5402
  K(Te, { name: "bottom-sheet-slide" }, {
5389
5403
  default: oe(() => [
@@ -5395,14 +5409,14 @@ const _i = {
5395
5409
  style: le({ transform: `translateY(${i.value}px)` }),
5396
5410
  onTouchend: O
5397
5411
  }, [
5398
- b("div", {
5412
+ w("div", {
5399
5413
  class: "bottom-sheet__handle",
5400
5414
  onMousedown: B,
5401
5415
  onTouchstart: pe(_, ["stop"])
5402
5416
  }, [...c[1] || (c[1] = [
5403
- b("div", { class: "dot" }, null, -1)
5417
+ w("div", { class: "dot" }, null, -1)
5404
5418
  ])], 32),
5405
- b("div", {
5419
+ w("div", {
5406
5420
  class: "bottom-sheet__body",
5407
5421
  ref_key: "bodyRef",
5408
5422
  ref: n
@@ -5427,7 +5441,7 @@ const _i = {
5427
5441
  styleView: { default: "fill" }
5428
5442
  },
5429
5443
  setup(e) {
5430
- const l = P(() => e.styleView), t = I(
5444
+ const l = R(() => e.styleView), t = P(
5431
5445
  Array.isArray(e.value) ? e.value : e.value !== void 0 ? [e.value] : []
5432
5446
  );
5433
5447
  ee(() => e.value, (n) => {
@@ -5443,7 +5457,7 @@ const _i = {
5443
5457
  }), Bi = /* @__PURE__ */ Y({
5444
5458
  __name: "AccordionContent",
5445
5459
  setup(e) {
5446
- const l = ye("panelIsOpen"), t = I(null), a = I("0px"), n = I(l.value);
5460
+ const l = ye("panelIsOpen"), t = P(null), a = P("0px"), n = P(l.value);
5447
5461
  return ee(l, async (i) => {
5448
5462
  i ? (n.value = !0, await fe(), a.value = t.value?.scrollHeight + "px") : (a.value = t.value?.scrollHeight + "px", await fe(), a.value = "0px", setTimeout(() => n.value = !1, 300));
5449
5463
  }), he(() => {
@@ -5452,7 +5466,7 @@ const _i = {
5452
5466
  class: "accordion-content-wrapper",
5453
5467
  style: le({ height: k(l) ? a.value : "0px" })
5454
5468
  }, [
5455
- be(b("div", {
5469
+ be(w("div", {
5456
5470
  ref_key: "contentRef",
5457
5471
  ref: t,
5458
5472
  class: "accordion-content"
@@ -5472,10 +5486,10 @@ const _i = {
5472
5486
  onClick: i[0] || (i[0] = //@ts-ignore
5473
5487
  (...o) => k(t) && k(t)(...o))
5474
5488
  }, [
5475
- b("span", mr, [
5489
+ w("span", mr, [
5476
5490
  J(n.$slots, "default")
5477
5491
  ]),
5478
- b("span", pr, [
5492
+ w("span", pr, [
5479
5493
  K(k(ml))
5480
5494
  ])
5481
5495
  ], 2));
@@ -5486,7 +5500,7 @@ const _i = {
5486
5500
  value: {}
5487
5501
  },
5488
5502
  setup(e) {
5489
- const l = e, t = ye("accordionOpenValues"), a = ye("accordionToggle"), n = ye("accordionStyle"), i = P(() => t?.value.includes(l.value));
5503
+ const l = e, t = ye("accordionOpenValues"), a = ye("accordionToggle"), n = ye("accordionStyle"), i = R(() => t?.value.includes(l.value));
5490
5504
  return _e("panelValue", l.value), _e("panelIsOpen", i), _e("panelToggle", () => a?.(l.value)), (o, s) => (v(), p("div", {
5491
5505
  class: z(["accordion-panel", `accordion-panel--${k(n)}`])
5492
5506
  }, [
@@ -5504,7 +5518,7 @@ const _i = {
5504
5518
  align: { default: "center" }
5505
5519
  },
5506
5520
  setup(e) {
5507
- const l = P(() => ["divider", `divider--${e.layouts}`, `divider--${e.type}`, `divider--${e.align}`]);
5521
+ const l = R(() => ["divider", `divider--${e.layouts}`, `divider--${e.type}`, `divider--${e.align}`]);
5508
5522
  return (t, a) => (v(), p("div", {
5509
5523
  class: z(l.value)
5510
5524
  }, [
@@ -5522,19 +5536,19 @@ const _i = {
5522
5536
  disabled: { type: Boolean }
5523
5537
  },
5524
5538
  setup(e) {
5525
- const l = ye("stepper"), t = P(() => l?.isStepDisabled() || e.disabled), a = () => {
5539
+ const l = ye("stepper"), t = R(() => l?.isStepDisabled() || e.disabled), a = () => {
5526
5540
  l?.updateValue(e.value ?? e.index);
5527
5541
  };
5528
5542
  return (n, i) => (v(), p("div", {
5529
5543
  class: z(["step", { "step--active": k(l)?.isStepActive(n.value ?? n.index), "step--passed": k(l)?.isStepPassed(n.index) }])
5530
5544
  }, [
5531
- b("button", {
5545
+ w("button", {
5532
5546
  class: "step__button",
5533
5547
  disabled: t.value,
5534
5548
  onClick: a
5535
5549
  }, [
5536
- b("div", yr, j(n.index + 1), 1),
5537
- b("div", br, j(n.label), 1)
5550
+ w("div", yr, j(n.index + 1), 1),
5551
+ w("div", br, j(n.label), 1)
5538
5552
  ], 8, hr),
5539
5553
  k(l)?.isLastItem(n.index) ? A("", !0) : (v(), p("div", {
5540
5554
  key: 0,
@@ -5554,7 +5568,7 @@ const _i = {
5554
5568
  },
5555
5569
  emits: ["update:value"],
5556
5570
  setup(e, { emit: l }) {
5557
- const t = l, a = I(e.value ?? 0);
5571
+ const t = l, a = P(e.value ?? 0);
5558
5572
  return _e("stepper", {
5559
5573
  isStepActive: (u) => a.value === u,
5560
5574
  isStepDisabled: () => e.linear,
@@ -5567,7 +5581,7 @@ const _i = {
5567
5581
  return f === -1 ? a.value > u : f > u;
5568
5582
  }
5569
5583
  }), (u, f) => (v(), p("div", _r, [
5570
- b("div", $r, [
5584
+ w("div", $r, [
5571
5585
  (v(!0), p(re, null, ge(u.steps, (m, h) => (v(), U(kr, {
5572
5586
  key: m.value,
5573
5587
  index: h,
@@ -5583,7 +5597,7 @@ const _i = {
5583
5597
  value: {}
5584
5598
  },
5585
5599
  setup(e) {
5586
- const l = e, t = ye("tabsValue"), a = ye("setTabsValue"), n = P(() => t?.value === l.value);
5600
+ const l = e, t = ye("tabsValue"), a = ye("setTabsValue"), n = R(() => t?.value === l.value);
5587
5601
  return (i, o) => (v(), p("button", {
5588
5602
  class: z(["tab", { "tab--active": n.value }]),
5589
5603
  onClick: o[0] || (o[0] = () => k(a)?.(i.value)),
@@ -5600,7 +5614,7 @@ const _i = {
5600
5614
  },
5601
5615
  emits: ["update:value"],
5602
5616
  setup(e, { emit: l }) {
5603
- const t = e, a = l, n = I(t.value);
5617
+ const t = e, a = l, n = P(t.value);
5604
5618
  ee(() => t.value, (o) => {
5605
5619
  n.value = o;
5606
5620
  });
@@ -5620,7 +5634,7 @@ const _i = {
5620
5634
  value: {}
5621
5635
  },
5622
5636
  setup(e) {
5623
- const l = e, t = ye("tabsValue"), a = P(() => t?.value === l.value);
5637
+ const l = e, t = ye("tabsValue"), a = R(() => t?.value === l.value);
5624
5638
  return (n, i) => be((v(), p("div", Vr, [
5625
5639
  J(n.$slots, "default")
5626
5640
  ], 512)), [
@@ -5634,7 +5648,7 @@ const _i = {
5634
5648
  __name: "TabList",
5635
5649
  setup(e) {
5636
5650
  return (l, t) => (v(), p("div", Tr, [
5637
- b("div", Ir, [
5651
+ w("div", Ir, [
5638
5652
  J(l.$slots, "default")
5639
5653
  ])
5640
5654
  ]));
@@ -5658,7 +5672,7 @@ const _i = {
5658
5672
  maxWidth: { default: 300 }
5659
5673
  },
5660
5674
  setup(e, { expose: l }) {
5661
- const t = e, a = I(), n = I(!1), i = I("top"), o = I({}), s = I({}), { zIndex: r } = qe("tooltip");
5675
+ const t = e, a = P(), n = P(!1), i = P("top"), o = P({}), s = P({}), { zIndex: r } = qe("tooltip");
5662
5676
  let u = null, f = null, m = null;
5663
5677
  const h = async () => {
5664
5678
  if (!u || !a.value) return;
@@ -5681,14 +5695,14 @@ const _i = {
5681
5695
  left: `${S}px`,
5682
5696
  top: `${O}px`
5683
5697
  }, t.showArrow && B.arrow && $) {
5684
- const { x: R, y: x } = B.arrow, d = _.split("-")[0], c = {
5698
+ const { x: M, y: x } = B.arrow, d = _.split("-")[0], c = {
5685
5699
  top: "bottom",
5686
5700
  right: "left",
5687
5701
  bottom: "top",
5688
5702
  left: "right"
5689
5703
  }[d];
5690
5704
  s.value = {
5691
- left: R != null ? `${R}px` : "",
5705
+ left: M != null ? `${M}px` : "",
5692
5706
  top: x != null ? `${x}px` : "",
5693
5707
  right: "",
5694
5708
  bottom: "",
@@ -5718,7 +5732,7 @@ const _i = {
5718
5732
  style: le({ ...o.value, zIndex: k(r)?.zIndex }),
5719
5733
  role: "tooltip"
5720
5734
  }, [
5721
- b("div", {
5735
+ w("div", {
5722
5736
  class: "tooltip__content",
5723
5737
  style: le({ maxWidth: `${$.maxWidth}px` })
5724
5738
  }, j($.content), 5),
@@ -5774,19 +5788,19 @@ const _i = {
5774
5788
  },
5775
5789
  emits: ["update:modelValue", "change", "clear"],
5776
5790
  setup(e, { emit: l }) {
5777
- const t = e, a = l, n = I(!1), i = I(), o = I(), s = I({}), r = At({
5791
+ const t = e, a = l, n = P(!1), i = P(), o = P(), s = P({}), r = At({
5778
5792
  from: t.modelValue?.from || "",
5779
5793
  to: t.modelValue?.to || ""
5780
5794
  });
5781
- function u(R) {
5782
- let x = 1e3, d = R;
5795
+ function u(M) {
5796
+ let x = 1e3, d = M;
5783
5797
  for (; d && d !== document.body; ) {
5784
- const c = window.getComputedStyle(d), w = parseInt(c.zIndex);
5785
- !isNaN(w) && w > x && (x = w), d = d.parentElement;
5798
+ const c = window.getComputedStyle(d), b = parseInt(c.zIndex);
5799
+ !isNaN(b) && b > x && (x = b), d = d.parentElement;
5786
5800
  }
5787
5801
  return x;
5788
5802
  }
5789
- const f = I(9999), m = P(() => !r.from && !r.to ? "" : r.from && r.to ? `${r.from} - ${r.to}` : r.from ? `с ${r.from}` : r.to ? `до ${r.to}` : ""), h = P(() => !!(r.from || r.to));
5803
+ const f = P(9999), m = R(() => !r.from && !r.to ? "" : r.from && r.to ? `${r.from} - ${r.to}` : r.from ? `с ${r.from}` : r.to ? `до ${r.to}` : ""), h = R(() => !!(r.from || r.to));
5790
5804
  function y() {
5791
5805
  t.disabled || (n.value = !n.value);
5792
5806
  }
@@ -5794,70 +5808,70 @@ const _i = {
5794
5808
  n.value = !1;
5795
5809
  }
5796
5810
  function $() {
5797
- const R = {
5811
+ const M = {
5798
5812
  from: r.from,
5799
5813
  to: r.to
5800
5814
  };
5801
- a("update:modelValue", R), a("change", R);
5815
+ a("update:modelValue", M), a("change", M);
5802
5816
  }
5803
- function S(R) {
5804
- r.from = R.from, r.to = R.to, $();
5817
+ function S(M) {
5818
+ r.from = M.from, r.to = M.to, $();
5805
5819
  }
5806
5820
  function O() {
5807
5821
  r.from = "", r.to = "", a("update:modelValue", void 0), a("change", void 0), a("clear");
5808
5822
  }
5809
5823
  function _() {
5810
5824
  !i.value || !n.value || fe(() => {
5811
- const R = u(i.value);
5812
- f.value = R + 10;
5813
- const x = i.value.getBoundingClientRect(), d = window.innerHeight, c = window.innerWidth, w = d - x.bottom, M = x.top, L = w < 200 && M > w, N = Math.max(100, x.width);
5825
+ const M = u(i.value);
5826
+ f.value = M + 10;
5827
+ const x = i.value.getBoundingClientRect(), d = window.innerHeight, c = window.innerWidth, b = d - x.bottom, I = x.top, D = b < 200 && I > b, N = Math.max(100, x.width);
5814
5828
  let q = x.left;
5815
5829
  q + N > c && (q = Math.max(0, c - N - 10)), s.value = {
5816
5830
  position: "fixed",
5817
5831
  left: `${q}px`,
5818
5832
  width: `${N}px`,
5819
5833
  maxHeight: "200px"
5820
- }, L ? s.value.bottom = `${d - x.top + 4}px` : s.value.top = `${x.bottom + 4}px`;
5834
+ }, D ? s.value.bottom = `${d - x.top + 4}px` : s.value.top = `${x.bottom + 4}px`;
5821
5835
  });
5822
5836
  }
5823
- function B(R) {
5837
+ function B(M) {
5824
5838
  if (!n.value) return;
5825
- const x = R.target, d = i.value, c = o.value;
5839
+ const x = M.target, d = i.value, c = o.value;
5826
5840
  if (!d) return;
5827
- const w = d.contains(x), M = c && c.contains(x);
5828
- !w && !M && (n.value = !1);
5841
+ const b = d.contains(x), I = c && c.contains(x);
5842
+ !b && !I && (n.value = !1);
5829
5843
  }
5830
- return ee(() => t.modelValue, (R) => {
5831
- R ? (r.from = R.from || "", r.to = R.to || "") : (r.from = "", r.to = "");
5832
- }, { deep: !0 }), ee(n, (R) => {
5833
- R && _();
5844
+ return ee(() => t.modelValue, (M) => {
5845
+ M ? (r.from = M.from || "", r.to = M.to || "") : (r.from = "", r.to = "");
5846
+ }, { deep: !0 }), ee(n, (M) => {
5847
+ M && _();
5834
5848
  }), he(() => {
5835
5849
  document.addEventListener("click", B, !0), window.addEventListener("resize", _), window.addEventListener("scroll", _);
5836
5850
  }), Ve(() => {
5837
5851
  document.removeEventListener("click", B, !0), window.removeEventListener("resize", _), window.removeEventListener("scroll", _);
5838
- }), (R, x) => (v(), p("div", {
5839
- class: z(["time-picker", { "time-picker--disabled": R.disabled }])
5852
+ }), (M, x) => (v(), p("div", {
5853
+ class: z(["time-picker", { "time-picker--disabled": M.disabled }])
5840
5854
  }, [
5841
- b("div", {
5855
+ w("div", {
5842
5856
  ref_key: "timePickerTrigger",
5843
5857
  ref: i,
5844
5858
  class: z(["time-picker__trigger", { "time-picker__trigger--active": n.value }]),
5845
5859
  onClick: y
5846
5860
  }, [
5847
- b("div", Ar, [
5848
- m.value ? J(R.$slots, "input", {
5861
+ w("div", Ar, [
5862
+ m.value ? J(M.$slots, "input", {
5849
5863
  key: 0,
5850
5864
  value: m.value
5851
5865
  }, () => [
5852
- b("span", Or, j(m.value), 1)
5853
- ], !0) : (v(), p("span", Br, j(R.placeholder), 1))
5866
+ w("span", Or, j(m.value), 1)
5867
+ ], !0) : (v(), p("span", Br, j(M.placeholder), 1))
5854
5868
  ]),
5855
- b("div", {
5869
+ w("div", {
5856
5870
  class: z(["time-picker__arrow", { "time-picker__arrow--rotated": n.value }])
5857
5871
  }, [
5858
5872
  K(k(bt))
5859
5873
  ], 2),
5860
- R.clearable && h.value ? (v(), p("button", {
5874
+ M.clearable && h.value ? (v(), p("button", {
5861
5875
  key: 0,
5862
5876
  class: "time-picker__clear",
5863
5877
  onClick: pe(O, ["stop"])
@@ -5870,7 +5884,7 @@ const _i = {
5870
5884
  "z-index": f.value
5871
5885
  }, {
5872
5886
  default: oe(() => [
5873
- b("div", {
5887
+ w("div", {
5874
5888
  ref_key: "timePickerOverlay",
5875
5889
  ref: o,
5876
5890
  class: "time-picker__overlay",
@@ -5878,16 +5892,16 @@ const _i = {
5878
5892
  onClick: x[2] || (x[2] = pe(() => {
5879
5893
  }, ["stop"]))
5880
5894
  }, [
5881
- b("div", Er, [
5882
- J(R.$slots, "content", {
5895
+ w("div", Er, [
5896
+ J(M.$slots, "content", {
5883
5897
  close: g,
5884
5898
  updateTime: S,
5885
5899
  timeRange: r
5886
5900
  }, () => [
5887
- b("div", Lr, [
5888
- b("div", Dr, [
5889
- x[3] || (x[3] = b("label", { class: "time-picker__label" }, "С", -1)),
5890
- be(b("input", {
5901
+ w("div", Lr, [
5902
+ w("div", Dr, [
5903
+ x[3] || (x[3] = w("label", { class: "time-picker__label" }, "С", -1)),
5904
+ be(w("input", {
5891
5905
  "onUpdate:modelValue": x[0] || (x[0] = (d) => r.from = d),
5892
5906
  type: "time",
5893
5907
  class: "time-picker__time-input",
@@ -5896,9 +5910,9 @@ const _i = {
5896
5910
  [ze, r.from]
5897
5911
  ])
5898
5912
  ]),
5899
- b("div", zr, [
5900
- x[4] || (x[4] = b("label", { class: "time-picker__label" }, "По", -1)),
5901
- be(b("input", {
5913
+ w("div", zr, [
5914
+ x[4] || (x[4] = w("label", { class: "time-picker__label" }, "По", -1)),
5915
+ be(w("input", {
5902
5916
  "onUpdate:modelValue": x[1] || (x[1] = (d) => r.to = d),
5903
5917
  type: "time",
5904
5918
  class: "time-picker__time-input",
@@ -5941,7 +5955,7 @@ const _i = {
5941
5955
  },
5942
5956
  emits: ["update:modelValue", "change", "clear"],
5943
5957
  setup(e, { emit: l }) {
5944
- const t = e, a = l, n = I(!1), i = I(), o = I(), s = I({}), r = [
5958
+ const t = e, a = l, n = P(!1), i = P(), o = P(), s = P({}), r = [
5945
5959
  { key: "monday", label: "Понедельник", enabled: !1 },
5946
5960
  { key: "tuesday", label: "Вторник", enabled: !1 },
5947
5961
  { key: "wednesday", label: "Среда", enabled: !1 },
@@ -5949,22 +5963,22 @@ const _i = {
5949
5963
  { key: "friday", label: "Пятница", enabled: !1 },
5950
5964
  { key: "saturday", label: "Суббота", enabled: !1 },
5951
5965
  { key: "sunday", label: "Воскресенье", enabled: !1 }
5952
- ], u = P(() => t.modelValue && t.modelValue.length > 0 ? t.modelValue : r);
5966
+ ], u = R(() => t.modelValue && t.modelValue.length > 0 ? t.modelValue : r);
5953
5967
  he(() => {
5954
5968
  (!t.modelValue || t.modelValue.length === 0) && a("update:modelValue", r);
5955
5969
  });
5956
5970
  function f(x) {
5957
5971
  let d = 1e3, c = x;
5958
5972
  for (; c && c !== document.body; ) {
5959
- const w = window.getComputedStyle(c), M = parseInt(w.zIndex);
5960
- !isNaN(M) && M > d && (d = M), c = c.parentElement;
5973
+ const b = window.getComputedStyle(c), I = parseInt(b.zIndex);
5974
+ !isNaN(I) && I > d && (d = I), c = c.parentElement;
5961
5975
  }
5962
5976
  return d;
5963
5977
  }
5964
- const m = I(9999), h = P(() => {
5978
+ const m = P(9999), h = R(() => {
5965
5979
  const x = u.value.filter((d) => d.enabled);
5966
5980
  return x.length === 0 ? "" : x.length === 7 ? "Все дни недели" : x.map((d) => d.label).join(", ");
5967
- }), y = P(() => u.value.some((x) => x.enabled));
5981
+ }), y = R(() => u.value.some((x) => x.enabled));
5968
5982
  function g() {
5969
5983
  t.disabled || (n.value = !n.value);
5970
5984
  }
@@ -5973,13 +5987,13 @@ const _i = {
5973
5987
  }
5974
5988
  function S(x) {
5975
5989
  const c = u.value.map(
5976
- (w) => w.key === x ? { ...w, enabled: !w.enabled } : w
5990
+ (b) => b.key === x ? { ...b, enabled: !b.enabled } : b
5977
5991
  );
5978
5992
  a("update:modelValue", c), a("change", c);
5979
5993
  }
5980
5994
  function O(x, d) {
5981
5995
  const c = u.value.map(
5982
- (w) => w.key === x ? { ...w, time: d } : w
5996
+ (b) => b.key === x ? { ...b, time: d } : b
5983
5997
  );
5984
5998
  a("update:modelValue", c), a("change", c);
5985
5999
  }
@@ -5991,9 +6005,9 @@ const _i = {
5991
6005
  !i.value || !n.value || fe(() => {
5992
6006
  const x = f(i.value);
5993
6007
  m.value = x + 10;
5994
- const d = i.value.getBoundingClientRect(), c = window.innerHeight, w = window.innerWidth, M = c - d.bottom, D = d.top, N = M < 400 && D > M, q = Math.max(300, d.width);
6008
+ const d = i.value.getBoundingClientRect(), c = window.innerHeight, b = window.innerWidth, I = c - d.bottom, L = d.top, N = I < 400 && L > I, q = Math.max(300, d.width);
5995
6009
  let F = d.left;
5996
- F + q > w && (F = Math.max(0, w - q - 10)), s.value = {
6010
+ F + q > b && (F = Math.max(0, b - q - 10)), s.value = {
5997
6011
  position: "fixed",
5998
6012
  left: `${F}px`,
5999
6013
  width: `${q}px`,
@@ -6001,22 +6015,22 @@ const _i = {
6001
6015
  }, N ? s.value.bottom = `${c - d.top + 4}px` : s.value.top = `${d.bottom + 4}px`;
6002
6016
  });
6003
6017
  }
6004
- function R(x) {
6018
+ function M(x) {
6005
6019
  if (!i.value || !n.value) return;
6006
- const d = x.target, c = o.value, w = i.value.contains(d), M = c && c.contains(d);
6007
- !w && !M && (n.value = !1);
6020
+ const d = x.target, c = o.value, b = i.value.contains(d), I = c && c.contains(d);
6021
+ !b && !I && (n.value = !1);
6008
6022
  }
6009
6023
  return ee(n, (x) => {
6010
6024
  x && B();
6011
6025
  }), he(() => {
6012
- document.addEventListener("click", R), window.addEventListener("resize", B), window.addEventListener("scroll", B);
6026
+ document.addEventListener("click", M), window.addEventListener("resize", B), window.addEventListener("scroll", B);
6013
6027
  }), Ve(() => {
6014
- document.removeEventListener("click", R), window.removeEventListener("resize", B), window.removeEventListener("scroll", B);
6028
+ document.removeEventListener("click", M), window.removeEventListener("resize", B), window.removeEventListener("scroll", B);
6015
6029
  }), (x, d) => (v(), p("div", {
6016
6030
  class: z(["schedule", { "schedule--disabled": x.disabled }])
6017
6031
  }, [
6018
6032
  x.label ? (v(), p("label", qr, j(x.label), 1)) : A("", !0),
6019
- b("div", {
6033
+ w("div", {
6020
6034
  ref_key: "scheduleTrigger",
6021
6035
  ref: i,
6022
6036
  class: z(["schedule__trigger", {
@@ -6025,15 +6039,15 @@ const _i = {
6025
6039
  }]),
6026
6040
  onClick: g
6027
6041
  }, [
6028
- b("div", Nr, [
6042
+ w("div", Nr, [
6029
6043
  h.value ? J(x.$slots, "input", {
6030
6044
  key: 0,
6031
6045
  value: h.value
6032
6046
  }, () => [
6033
- b("span", Wr, j(h.value), 1)
6047
+ w("span", Wr, j(h.value), 1)
6034
6048
  ], !0) : (v(), p("span", Yr, j(x.placeholder), 1))
6035
6049
  ]),
6036
- b("div", {
6050
+ w("div", {
6037
6051
  class: z(["schedule__arrow", { "schedule__arrow--rotated": n.value }])
6038
6052
  }, [
6039
6053
  K(k(bt))
@@ -6051,7 +6065,7 @@ const _i = {
6051
6065
  "z-index": m.value
6052
6066
  }, {
6053
6067
  default: oe(() => [
6054
- b("div", {
6068
+ w("div", {
6055
6069
  ref_key: "scheduleOverlay",
6056
6070
  ref: o,
6057
6071
  class: "schedule__overlay",
@@ -6059,23 +6073,23 @@ const _i = {
6059
6073
  onClick: d[0] || (d[0] = pe(() => {
6060
6074
  }, ["stop"]))
6061
6075
  }, [
6062
- b("div", jr, [
6076
+ w("div", jr, [
6063
6077
  J(x.$slots, "content", {
6064
6078
  close: $,
6065
6079
  days: u.value,
6066
6080
  toggleDay: S,
6067
6081
  updateDayTime: O
6068
6082
  }, () => [
6069
- b("div", Kr, [
6083
+ w("div", Kr, [
6070
6084
  (v(!0), p(re, null, ge(u.value, (c) => (v(), p("div", {
6071
6085
  key: c.key,
6072
6086
  class: "schedule__day"
6073
6087
  }, [
6074
- b("div", Ur, [
6088
+ w("div", Ur, [
6075
6089
  K(at, {
6076
6090
  "model-value": c.enabled,
6077
6091
  label: c.label,
6078
- onChange: (w) => S(c.key)
6092
+ onChange: (b) => S(c.key)
6079
6093
  }, null, 8, ["model-value", "label", "onChange"])
6080
6094
  ]),
6081
6095
  c.enabled ? (v(), p("div", Zr, [
@@ -6083,7 +6097,7 @@ const _i = {
6083
6097
  "model-value": c.time,
6084
6098
  placeholder: "Время работы",
6085
6099
  clearable: "",
6086
- "onUpdate:modelValue": (w) => O(c.key, w)
6100
+ "onUpdate:modelValue": (b) => O(c.key, b)
6087
6101
  }, null, 8, ["model-value", "onUpdate:modelValue"])
6088
6102
  ])) : A("", !0)
6089
6103
  ]))), 128))