prlg-ui 1.8.109 → 1.8.110

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 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";
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 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";
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";
@@ -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
- w("div", {
78
+ b("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
- w("span", rn, j(r.label), 1)
92
+ b("span", rn, j(r.label), 1)
93
93
  ], 8, sn))), 128))
94
94
  ], 2),
95
95
  K(k(Se), {
@@ -185,7 +185,7 @@ const on = {
185
185
  for: i.value,
186
186
  class: z(o.value)
187
187
  }, [
188
- be(w("input", {
188
+ be(b("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
- w("div", dn, [
203
- w("div", fn, [
202
+ b("div", dn, [
203
+ b("div", fn, [
204
204
  a.value || s.checked ? (v(), p("svg", vn, [...r[2] || (r[2] = [
205
- w("path", {
205
+ b("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
- w("path", {
210
+ b("path", {
211
211
  d: "M0.371094 1.62305L12.3711 1.62305",
212
212
  stroke: "white",
213
213
  "stroke-width": "2"
@@ -531,7 +531,7 @@ const Rn = (e) => ({
531
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 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;
534
+ const w = 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 + w, 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: {
@@ -570,11 +570,11 @@ const Rn = (e) => ({
570
570
  return {};
571
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
572
  !h && d && x.push(...Tn(s, $, g, M));
573
- const c = [s, ...x], b = await mt(l, S), I = [];
573
+ const c = [s, ...x], w = await mt(l, S), I = [];
574
574
  let L = ((a = i.flip) == null ? void 0 : a.overflows) || [];
575
- if (f && I.push(b[O]), m) {
575
+ if (f && I.push(w[O]), m) {
576
576
  const F = $n(n, o, M);
577
- I.push(b[F[0]], b[F[1]]);
577
+ I.push(w[F[0]], w[F[1]]);
578
578
  }
579
579
  if (L = [...L, {
580
580
  placement: n,
@@ -1340,16 +1340,16 @@ function ll(e, l, t) {
1340
1340
  };
1341
1341
  if (!f.value)
1342
1342
  return c;
1343
- const b = tl(f.value, m.value), I = tl(f.value, h.value);
1343
+ const w = tl(f.value, m.value), I = tl(f.value, h.value);
1344
1344
  return r.value ? {
1345
1345
  ...c,
1346
- transform: "translate(" + b + "px, " + I + "px)",
1346
+ transform: "translate(" + w + "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: b + "px",
1352
+ left: w + "px",
1353
1353
  top: I + "px"
1354
1354
  };
1355
1355
  });
@@ -1362,8 +1362,8 @@ function ll(e, l, t) {
1362
1362
  middleware: i.value,
1363
1363
  placement: o.value,
1364
1364
  strategy: s.value
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;
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;
1367
1367
  });
1368
1368
  }
1369
1369
  function M() {
@@ -1457,7 +1457,7 @@ const vo = {
1457
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
- }), b = nt(), I = P(!1), L = P(!1), D = P(!1), { lockScroll: N, unlockScroll: q } = ot(), F = P(null), V = P(null), T = () => {
1460
+ }), w = nt(), I = P(!1), L = P(!1), D = P(!1), { lockScroll: N, unlockScroll: q } = ot(), F = P(null), V = P(null), T = () => {
1461
1461
  B(), L.value && c();
1462
1462
  }, H = R(() => r && r.value !== void 0), Z = R({
1463
1463
  get: () => H.value ? r?.value : I.value,
@@ -1567,14 +1567,14 @@ const vo = {
1567
1567
  }), (te, me) => (v(), p("div", {
1568
1568
  class: z(["popover", { "popover--with-arrow": k(o) }])
1569
1569
  }, [
1570
- w("div", {
1571
- class: z(["popover__trigger", `popover__trigger--${k(b)}`]),
1570
+ b("div", {
1571
+ class: z(["popover__trigger", `popover__trigger--${k(w)}`]),
1572
1572
  ref: "reference",
1573
1573
  onClick: W
1574
1574
  }, [
1575
1575
  J(te.$slots, "trigger", {}, void 0, !0)
1576
1576
  ], 2),
1577
- w("div", null, [
1577
+ b("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(b)}`,
1589
+ `popover__wrapper--${k(w)}`,
1590
1590
  { "popover__wrapper--no-style": e.withoutStyle },
1591
1591
  { "popover__wrapper--positioning": !D.value }
1592
1592
  ]]),
1593
1593
  style: le({ ...k(O) }),
1594
1594
  ref: "floating"
1595
1595
  }, [
1596
- w("div", mo, [
1596
+ b("div", mo, [
1597
1597
  k(o) ? (v(), p("div", po, [
1598
1598
  J(te.$slots, "default", {
1599
1599
  openSecondScreen: G,
@@ -1646,12 +1646,12 @@ const vo = {
1646
1646
  offset: { alignmentAxis: -20, mainAxis: 13 }
1647
1647
  }, {
1648
1648
  trigger: oe(() => [
1649
- w("div", yo, [
1649
+ b("div", yo, [
1650
1650
  K(k(vl))
1651
1651
  ])
1652
1652
  ]),
1653
1653
  default: oe(() => [
1654
- w("span", bo, j(l.description), 1)
1654
+ b("span", bo, j(l.description), 1)
1655
1655
  ]),
1656
1656
  _: 1
1657
1657
  }));
@@ -1686,13 +1686,13 @@ const vo = {
1686
1686
  return (o, s) => (v(), p("thead", {
1687
1687
  class: z(a.value)
1688
1688
  }, [
1689
- w("tr", _o, [
1689
+ b("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
- w("div", {
1695
+ b("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), {
@@ -1829,7 +1829,7 @@ const vo = {
1829
1829
  key: 0,
1830
1830
  style: le({ height: `${s.value * h.virtualScroll.itemHeight}px` })
1831
1831
  }, [
1832
- w("td", {
1832
+ b("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
- w("td", {
1852
+ b("td", {
1853
1853
  colspan: h.columns.length
1854
1854
  }, null, 8, Ro)
1855
1855
  ], 4)) : A("", !0)
@@ -1901,11 +1901,11 @@ const vo = {
1901
1901
  return (n, i) => (v(), p("div", {
1902
1902
  class: z(a.value)
1903
1903
  }, [
1904
- w("div", Ao, [
1904
+ b("div", Ao, [
1905
1905
  n.icon ? (v(), p("div", Oo, [
1906
1906
  (v(), U(Pe(n.icon)))
1907
1907
  ])) : A("", !0),
1908
- w("div", Bo, [
1908
+ b("div", Bo, [
1909
1909
  J(n.$slots, "default")
1910
1910
  ])
1911
1911
  ]),
@@ -1936,7 +1936,7 @@ const vo = {
1936
1936
  return (o, s) => (v(), p("div", {
1937
1937
  class: z(i.value)
1938
1938
  }, [
1939
- be(w("input", {
1939
+ be(b("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] = w("div", { class: "radio__track" }, [
1952
- w("div", { class: "radio__thumb" })
1951
+ s[2] || (s[2] = b("div", { class: "radio__track" }, [
1952
+ b("div", { class: "radio__thumb" })
1953
1953
  ], -1)),
1954
- w("label", {
1954
+ b("label", {
1955
1955
  for: k(a),
1956
1956
  class: "radio__label"
1957
1957
  }, [
@@ -2050,7 +2050,7 @@ const vo = {
2050
2050
  a("update:modelValue", T), a("change", T), n.value = !1;
2051
2051
  }
2052
2052
  }
2053
- function b(V) {
2053
+ function w(V) {
2054
2054
  if (!t.multiple) return;
2055
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
2056
  a("update:modelValue", Z), a("change", Z), a("remove-tag", t.valueKey && t.valueKey !== "" ? M(V) : V);
@@ -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
- w("div", {
2107
+ b("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
- w("div", Ho, [
2113
+ b("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
2116
  key: M(H),
2117
2117
  removable: "",
2118
2118
  variant: "secondary",
2119
- onRemove: (Z) => b(H)
2119
+ onRemove: (Z) => w(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
- w("span", qo, j(y.value), 1)
2141
+ b("span", qo, j(y.value), 1)
2142
2142
  ], !0) : (v(), p("span", No, j(V.placeholder), 1))
2143
2143
  ], 64))
2144
2144
  ]),
2145
- w("div", {
2145
+ b("div", {
2146
2146
  class: z(["dropdown__arrow", { "dropdown__arrow--rotated": n.value }])
2147
2147
  }, [
2148
2148
  K(k(bt))
@@ -2160,7 +2160,7 @@ const vo = {
2160
2160
  "z-index": m.value
2161
2161
  }, {
2162
2162
  default: oe(() => [
2163
- w("div", {
2163
+ b("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(w("input", {
2172
+ be(b("input", {
2173
2173
  ref_key: "searchInput",
2174
2174
  ref: r,
2175
2175
  "onUpdate:modelValue": T[0] || (T[0] = (H) => i.value = H),
@@ -2180,7 +2180,7 @@ const vo = {
2180
2180
  [ze, i.value]
2181
2181
  ])
2182
2182
  ])) : A("", !0),
2183
- w("div", Yo, [
2183
+ b("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
2186
  key: M(H),
@@ -2188,29 +2188,29 @@ const vo = {
2188
2188
  "dropdown__option--disabled": H.disabled
2189
2189
  }])
2190
2190
  }, [
2191
- w("div", Ko, [
2191
+ b("div", Ko, [
2192
2192
  V.multiple ? (v(), U(at, {
2193
2193
  key: 0,
2194
2194
  "model-value": _.value,
2195
2195
  value: M(H),
2196
- label: x(H),
2197
2196
  disabled: H.disabled,
2198
2197
  onChange: (Z) => L(H)
2199
- }, null, 8, ["model-value", "value", "label", "disabled", "onChange"])) : (v(), U(Ft, {
2198
+ }, null, 8, ["model-value", "value", "disabled", "onChange"])) : (v(), U(Ft, {
2200
2199
  key: 1,
2201
2200
  "model-value": B.value,
2202
2201
  value: M(H),
2203
- label: x(H),
2204
2202
  disabled: H.disabled,
2205
2203
  onChange: (Z) => D(H)
2206
- }, null, 8, ["model-value", "value", "label", "disabled", "onChange"])),
2207
- J(V.$slots, "option", {
2208
- option: H,
2209
- selected: V.multiple ? _.value.includes(M(H)) : B.value === M(H),
2210
- multiple: V.multiple,
2211
- handleSelect: V.multiple ? () => L(H) : () => D(H)
2212
- }, void 0, !0)
2213
- ])
2204
+ }, null, 8, ["model-value", "value", "disabled", "onChange"]))
2205
+ ]),
2206
+ J(V.$slots, "option", {
2207
+ option: H,
2208
+ selected: V.multiple ? _.value.includes(M(H)) : B.value === M(H),
2209
+ multiple: V.multiple,
2210
+ handleSelect: V.multiple ? () => L(H) : () => D(H)
2211
+ }, () => [
2212
+ b("span", null, j(x(H)), 1)
2213
+ ], !0)
2214
2214
  ], 2))), 128)),
2215
2215
  O.value.length ? A("", !0) : (v(), p("div", Uo, " Ничего не найдено "))
2216
2216
  ], 64))
@@ -2222,7 +2222,7 @@ const vo = {
2222
2222
  V.error && V.errorText ? (v(), p("small", Zo, j(V.errorText), 1)) : A("", !0)
2223
2223
  ], 2));
2224
2224
  }
2225
- }), Xo = /* @__PURE__ */ ue(Qo, [["__scopeId", "data-v-b96720f9"]]), Go = {
2225
+ }), Xo = /* @__PURE__ */ ue(Qo, [["__scopeId", "data-v-9b2f8a98"]]), Go = {
2226
2226
  key: 0,
2227
2227
  class: "paginator"
2228
2228
  }, Jo = ["disabled"], ea = { class: "paginator__pages" }, ta = ["onClick"], la = ["disabled"], na = {
@@ -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
- w("button", {
2256
+ b("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
- w("div", ea, [
2263
+ b("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
- w("button", {
2270
+ b("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] = w("span", null, "Показывать по", -1)),
2278
+ s[3] || (s[3] = b("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),
@@ -2309,8 +2309,8 @@ const vo = {
2309
2309
  setup(e) {
2310
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
- w("tr", null, [
2313
- w("td", ra, [
2312
+ b("tr", null, [
2313
+ b("td", ra, [
2314
2314
  n.paginator && l.value ? (v(), U(k(aa), {
2315
2315
  key: 0,
2316
2316
  "current-page": l.value,
@@ -2345,7 +2345,7 @@ const vo = {
2345
2345
  "aria-label": "Loading",
2346
2346
  style: le(t.value)
2347
2347
  }, [...i[0] || (i[0] = [
2348
- w("span", { class: "spinner__circle" }, null, -1)
2348
+ b("span", { class: "spinner__circle" }, null, -1)
2349
2349
  ])], 6));
2350
2350
  }
2351
2351
  }), ua = () => {
@@ -2433,10 +2433,10 @@ const vo = {
2433
2433
  const y = R(() => {
2434
2434
  let d = [...e.data];
2435
2435
  if (o.value) {
2436
- const { field: c, order: b } = o.value;
2436
+ const { field: c, order: w } = o.value;
2437
2437
  d.sort((I, L) => {
2438
2438
  const D = I[c], N = L[c];
2439
- return D === N ? 0 : b === 1 ? D > N ? 1 : -1 : D < N ? 1 : -1;
2439
+ return D === N ? 0 : w === 1 ? D > N ? 1 : -1 : D < N ? 1 : -1;
2440
2440
  });
2441
2441
  }
2442
2442
  return d;
@@ -2462,14 +2462,14 @@ const vo = {
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((b) => b === c)
2465
+ (c) => e.data.some((w) => w === c)
2466
2466
  );
2467
2467
  return e.data.length === d.length;
2468
2468
  }
2469
2469
  ), M = (d) => {
2470
2470
  if (i.value)
2471
2471
  if (_.value || (_.value = []), i.value === "multiple") {
2472
- const c = Array.isArray(_.value) ? _.value.findIndex((b) => b === d) : -1;
2472
+ const c = Array.isArray(_.value) ? _.value.findIndex((w) => w === 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;
@@ -2478,16 +2478,16 @@ const vo = {
2478
2478
  (!_.value || !Array.isArray(_.value)) && (_.value = []);
2479
2479
  const d = _.value;
2480
2480
  if (d.filter(
2481
- (b) => e.data.some((I) => I === b)
2481
+ (w) => e.data.some((I) => I === w)
2482
2482
  ).length === e.data.length)
2483
2483
  _.value = d.filter(
2484
- (b) => !e.data.some((I) => I === b)
2484
+ (w) => !e.data.some((I) => I === w)
2485
2485
  );
2486
2486
  else {
2487
- const b = e.data.filter(
2487
+ const w = e.data.filter(
2488
2488
  (I) => !d.some((L) => L === I)
2489
2489
  );
2490
- _.value = [...d, ...b];
2490
+ _.value = [...d, ...w];
2491
2491
  }
2492
2492
  };
2493
2493
  return ee(u, (d, c) => {
@@ -2500,7 +2500,7 @@ const vo = {
2500
2500
  style: le(O.value),
2501
2501
  onScroll: m
2502
2502
  }, [
2503
- w("table", {
2503
+ b("table", {
2504
2504
  ref_key: "tableRef",
2505
2505
  ref: r,
2506
2506
  class: z($.value)
@@ -2513,7 +2513,7 @@ const vo = {
2513
2513
  sortMode: d.sortMode,
2514
2514
  sortField: d.sortField,
2515
2515
  onSelectAllRow: x,
2516
- "onUpdate:sort": c[0] || (c[0] = (b) => o.value = b)
2516
+ "onUpdate:sort": c[0] || (c[0] = (w) => o.value = w)
2517
2517
  }, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField"]),
2518
2518
  y.value.length > 0 && !d.loading ? (v(), U(al, {
2519
2519
  key: 0,
@@ -2527,23 +2527,23 @@ const vo = {
2527
2527
  scroller: d.scroller || void 0,
2528
2528
  virtualScroll: d.virtualScroll || void 0,
2529
2529
  rowStyle: d.rowStyle,
2530
- onRowClickHandler: c[1] || (c[1] = (b) => t("rowClickHandler", b)),
2531
- onToggleRow: c[2] || (c[2] = (b) => M(b))
2530
+ onRowClickHandler: c[1] || (c[1] = (w) => t("rowClickHandler", w)),
2531
+ onToggleRow: c[2] || (c[2] = (w) => M(w))
2532
2532
  }, null, 8, ["size", "selectedRows", "columns", "data", "colorHovered", "scroller", "virtualScroll", "rowStyle"])) : d.loading ? (v(), p("tbody", ca, [
2533
- w("tr", null, [
2534
- w("td", {
2533
+ b("tr", null, [
2534
+ b("td", {
2535
2535
  colspan: k(a).length,
2536
2536
  class: "table-loading__cell"
2537
2537
  }, [
2538
- w("div", fa, [
2538
+ b("div", fa, [
2539
2539
  K(rl),
2540
- c[10] || (c[10] = w("span", null, "Загрузка...", -1))
2540
+ c[10] || (c[10] = b("span", null, "Загрузка...", -1))
2541
2541
  ])
2542
2542
  ], 8, da)
2543
2543
  ])
2544
2544
  ])) : (v(), p("tbody", va, [
2545
- w("tr", null, [
2546
- w("td", {
2545
+ b("tr", null, [
2546
+ b("td", {
2547
2547
  colspan: k(a).length,
2548
2548
  class: "table-empty__cell"
2549
2549
  }, [
@@ -2554,9 +2554,9 @@ const vo = {
2554
2554
  ], 2),
2555
2555
  K(sl, {
2556
2556
  currentPage: u.value,
2557
- "onUpdate:currentPage": c[3] || (c[3] = (b) => u.value = b),
2557
+ "onUpdate:currentPage": c[3] || (c[3] = (w) => u.value = w),
2558
2558
  "per-page": f.value,
2559
- "onUpdate:perPage": c[4] || (c[4] = (b) => f.value = b),
2559
+ "onUpdate:perPage": c[4] || (c[4] = (w) => f.value = w),
2560
2560
  data: y.value,
2561
2561
  "per-page-options": d.perPageOptions,
2562
2562
  "totals-row": d.totals,
@@ -2577,7 +2577,7 @@ const vo = {
2577
2577
  sortMode: d.sortMode,
2578
2578
  sortField: d.sortField,
2579
2579
  onSelectAllRow: x,
2580
- "onUpdate:sort": c[5] || (c[5] = (b) => o.value = b)
2580
+ "onUpdate:sort": c[5] || (c[5] = (w) => o.value = w)
2581
2581
  }, null, 8, ["size", "columns", "isSelectedAll", "sortMode", "sortField"]),
2582
2582
  y.value.length > 0 && !d.loading ? (v(), U(al, {
2583
2583
  key: 0,
@@ -2591,23 +2591,23 @@ const vo = {
2591
2591
  scroller: d.scroller || void 0,
2592
2592
  virtualScroll: d.virtualScroll || void 0,
2593
2593
  rowStyle: d.rowStyle,
2594
- onRowClickHandler: c[6] || (c[6] = (b) => t("rowClickHandler", b)),
2595
- onToggleRow: c[7] || (c[7] = (b) => M(b))
2594
+ onRowClickHandler: c[6] || (c[6] = (w) => t("rowClickHandler", w)),
2595
+ onToggleRow: c[7] || (c[7] = (w) => M(w))
2596
2596
  }, null, 8, ["size", "selectedRows", "columns", "data", "colorHovered", "scroller", "virtualScroll", "rowStyle"])) : d.loading ? (v(), p("tbody", pa, [
2597
- w("tr", null, [
2598
- w("td", {
2597
+ b("tr", null, [
2598
+ b("td", {
2599
2599
  colspan: k(a).length,
2600
2600
  class: "table-loading__cell"
2601
2601
  }, [
2602
- w("div", ha, [
2602
+ b("div", ha, [
2603
2603
  K(rl),
2604
- c[11] || (c[11] = w("span", null, "Загрузка...", -1))
2604
+ c[11] || (c[11] = b("span", null, "Загрузка...", -1))
2605
2605
  ])
2606
2606
  ], 8, ga)
2607
2607
  ])
2608
2608
  ])) : (v(), p("tbody", ya, [
2609
- w("tr", null, [
2610
- w("td", {
2609
+ b("tr", null, [
2610
+ b("td", {
2611
2611
  colspan: k(a).length,
2612
2612
  class: "table-empty__cell"
2613
2613
  }, [
@@ -2617,9 +2617,9 @@ const vo = {
2617
2617
  ])),
2618
2618
  K(sl, {
2619
2619
  currentPage: u.value,
2620
- "onUpdate:currentPage": c[8] || (c[8] = (b) => u.value = b),
2620
+ "onUpdate:currentPage": c[8] || (c[8] = (w) => u.value = w),
2621
2621
  "per-page": f.value,
2622
- "onUpdate:perPage": c[9] || (c[9] = (b) => f.value = b),
2622
+ "onUpdate:perPage": c[9] || (c[9] = (w) => f.value = w),
2623
2623
  data: y.value,
2624
2624
  "per-page-options": d.perPageOptions,
2625
2625
  "totals-row": d.totals,
@@ -2678,7 +2678,7 @@ const vo = {
2678
2678
  setup(e) {
2679
2679
  const l = ie(e, "modelValue"), t = nt();
2680
2680
  return (a, n) => (v(), p("div", ka, [
2681
- be(w("input", {
2681
+ be(b("input", {
2682
2682
  "onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
2683
2683
  type: "checkbox",
2684
2684
  name: k(t),
@@ -2687,20 +2687,20 @@ const vo = {
2687
2687
  }, null, 8, _a), [
2688
2688
  [Mt, l.value]
2689
2689
  ]),
2690
- n[1] || (n[1] = w("div", { class: "chip-checkbox__icon" }, [
2691
- w("svg", {
2690
+ n[1] || (n[1] = b("div", { class: "chip-checkbox__icon" }, [
2691
+ b("svg", {
2692
2692
  width: "14",
2693
2693
  height: "11",
2694
2694
  viewBox: "0 0 14 11",
2695
2695
  xmlns: "http://www.w3.org/2000/svg"
2696
2696
  }, [
2697
- w("path", {
2697
+ b("path", {
2698
2698
  d: "M4.75012 8.13031L1.62262 5.00281L0.557617 6.06031L4.75012 10.2528L13.7501 1.25281L12.6926 0.195312L4.75012 8.13031Z",
2699
2699
  fill: "#00AB2E"
2700
2700
  })
2701
2701
  ])
2702
2702
  ], -1)),
2703
- w("span", $a, j(a.label), 1)
2703
+ b("span", $a, j(a.label), 1)
2704
2704
  ]));
2705
2705
  }
2706
2706
  }), Sa = {
@@ -2771,7 +2771,7 @@ const vo = {
2771
2771
  function c(C) {
2772
2772
  return t.labelKey && t.labelKey in C ? String(C[t.labelKey]) : String(C.label);
2773
2773
  }
2774
- function b() {
2774
+ function w() {
2775
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;
2776
2776
  }
2777
2777
  function I() {
@@ -2867,7 +2867,7 @@ const vo = {
2867
2867
  C.required ? (v(), p("sup", Ca)) : A("", !0),
2868
2868
  ve(" " + j(C.label), 1)
2869
2869
  ])) : A("", !0),
2870
- w("div", {
2870
+ b("div", {
2871
2871
  ref_key: "autocompleteTrigger",
2872
2872
  ref: r,
2873
2873
  class: z(["autocomplete__trigger", {
@@ -2877,7 +2877,7 @@ const vo = {
2877
2877
  "autocomplete__trigger--error": C.error
2878
2878
  }])
2879
2879
  }, [
2880
- w("div", xa, [
2880
+ b("div", xa, [
2881
2881
  C.multiple && g.value.length ? (v(), p("div", Va, [
2882
2882
  (v(!0), p(re, null, ge(O.value, (W) => (v(), U(k(ht), {
2883
2883
  key: d(W),
@@ -2900,14 +2900,14 @@ const vo = {
2900
2900
  _: 1
2901
2901
  })) : A("", !0)
2902
2902
  ])) : A("", !0),
2903
- be(w("input", {
2903
+ be(b("input", {
2904
2904
  ref_key: "inputElement",
2905
2905
  ref: f,
2906
2906
  "onUpdate:modelValue": E[0] || (E[0] = (W) => o.value = W),
2907
2907
  class: "autocomplete__text-input",
2908
2908
  placeholder: S.value,
2909
2909
  disabled: C.disabled,
2910
- onInput: b,
2910
+ onInput: w,
2911
2911
  onFocus: I,
2912
2912
  onBlur: L,
2913
2913
  onKeydown: D
@@ -2915,7 +2915,7 @@ const vo = {
2915
2915
  [ze, o.value]
2916
2916
  ])
2917
2917
  ]),
2918
- w("div", {
2918
+ b("div", {
2919
2919
  class: z(["autocomplete__arrow", { "autocomplete__arrow--rotated": n.value }])
2920
2920
  }, [
2921
2921
  K(k(bt))
@@ -2933,7 +2933,7 @@ const vo = {
2933
2933
  "z-index": y.value
2934
2934
  }, {
2935
2935
  default: oe(() => [
2936
- w("div", {
2936
+ b("div", {
2937
2937
  ref_key: "autocompleteOverlay",
2938
2938
  ref: u,
2939
2939
  class: "autocomplete__overlay",
@@ -2941,7 +2941,7 @@ const vo = {
2941
2941
  onClick: E[2] || (E[2] = pe(() => {
2942
2942
  }, ["stop"]))
2943
2943
  }, [
2944
- w("div", Ia, [
2944
+ b("div", Ia, [
2945
2945
  C.loading ? (v(), p("div", Pa, " Загрузка... ")) : (v(), p(re, { key: 1 }, [
2946
2946
  (v(!0), p(re, null, ge(B.value, (W, G) => (v(), p("div", {
2947
2947
  key: d(W),
@@ -3039,8 +3039,8 @@ const vo = {
3039
3039
  u.required ? (v(), p("sup", La, "*")) : A("", !0),
3040
3040
  ve(" " + j(u.label), 1)
3041
3041
  ], 8, Ea)) : A("", !0),
3042
- w("div", Da, [
3043
- be(w("input", {
3042
+ b("div", Da, [
3043
+ be(b("input", {
3044
3044
  "onUpdate:modelValue": f[0] || (f[0] = (m) => a.value = m),
3045
3045
  id: u.inputId ?? n.value,
3046
3046
  placeholder: u.placeholder,
@@ -3059,7 +3059,7 @@ const vo = {
3059
3059
  }, null, 40, za), [
3060
3060
  [El, a.value]
3061
3061
  ]),
3062
- w("div", Ha, [
3062
+ b("div", Ha, [
3063
3063
  u.type === "text" && u.allowClear && a.value && a.value.length > 0 ? (v(), p("button", {
3064
3064
  key: 0,
3065
3065
  class: "input__clear",
@@ -3105,7 +3105,7 @@ function qa(e, l) {
3105
3105
  return f(c) ? r[c].test(d) : !1;
3106
3106
  }
3107
3107
  function h(d) {
3108
- const { required: c, optional: b } = u(t), I = c + b;
3108
+ const { required: c, optional: w } = u(t), I = c + w;
3109
3109
  let L = "", D = 0, N = 0;
3110
3110
  for (; N < I.length; ) {
3111
3111
  const q = I[N];
@@ -3131,7 +3131,7 @@ function qa(e, l) {
3131
3131
  return (d + c).replace(/[9a*]/g, a);
3132
3132
  }
3133
3133
  function g(d) {
3134
- const { required: c, optional: b } = u(t), I = c + b;
3134
+ const { required: c, optional: w } = u(t), I = c + w;
3135
3135
  let L = "", D = 0, N = 0;
3136
3136
  for (; D < d.length && N < I.length; ) {
3137
3137
  const q = d[D], F = I[N];
@@ -3162,15 +3162,15 @@ function qa(e, l) {
3162
3162
  return L;
3163
3163
  }
3164
3164
  function $(d) {
3165
- const { required: c } = u(t), b = c.replace(/[^9a*]/g, "").length;
3166
- return g(d).length >= b;
3165
+ const { required: c } = u(t), w = c.replace(/[^9a*]/g, "").length;
3166
+ return g(d).length >= w;
3167
3167
  }
3168
3168
  function S() {
3169
3169
  const d = je(e) || "";
3170
3170
  if (s.value || d)
3171
3171
  o.value = h(d);
3172
3172
  else {
3173
- const { required: c, optional: b } = u(t), I = c + b;
3173
+ const { required: c, optional: w } = u(t), I = c + w;
3174
3174
  let L = "";
3175
3175
  for (let D = 0; D < I.length && !f(I[D]); D++)
3176
3176
  L += I[D];
@@ -3179,7 +3179,7 @@ function qa(e, l) {
3179
3179
  }
3180
3180
  function O(d) {
3181
3181
  if (!d.isTrusted) return;
3182
- const c = d.target, b = c.value, I = g(b), L = h(I);
3182
+ const c = d.target, w = c.value, I = g(w), L = h(I);
3183
3183
  o.value = L, e.value = I, fe(() => {
3184
3184
  const { required: D, optional: N } = u(t), q = D + N;
3185
3185
  let F = 0, V = 0;
@@ -3205,7 +3205,7 @@ function qa(e, l) {
3205
3205
  function _(d) {
3206
3206
  const c = d.target;
3207
3207
  setTimeout(() => {
3208
- const b = c.value, I = g(b), L = h(I);
3208
+ const w = c.value, I = g(w), L = h(I);
3209
3209
  o.value = L, e.value = I;
3210
3210
  const { required: D, optional: N } = u(t), q = D + N;
3211
3211
  let F = 0, V = 0;
@@ -3229,7 +3229,7 @@ function qa(e, l) {
3229
3229
  }, 0);
3230
3230
  }
3231
3231
  function B(d) {
3232
- const c = d.target, b = c.selectionStart || 0;
3232
+ const c = d.target, w = c.selectionStart || 0;
3233
3233
  if (d.key === "Backspace") {
3234
3234
  if (d.metaKey || d.ctrlKey)
3235
3235
  return;
@@ -3248,11 +3248,11 @@ function qa(e, l) {
3248
3248
  });
3249
3249
  return;
3250
3250
  }
3251
- if (b > 0 && o.value.length > 0) {
3251
+ if (w > 0 && o.value.length > 0) {
3252
3252
  const X = o.value;
3253
3253
  let C = "", E = -1;
3254
3254
  const { required: W, optional: G } = u(t), Q = W + G;
3255
- for (let ne = b - 1; ne >= 0; ne--)
3255
+ for (let ne = w - 1; ne >= 0; ne--)
3256
3256
  if (ne < Q.length && f(Q[ne])) {
3257
3257
  E = ne;
3258
3258
  break;
@@ -3291,10 +3291,10 @@ function qa(e, l) {
3291
3291
  });
3292
3292
  return;
3293
3293
  }
3294
- if (b < o.value.length) {
3294
+ if (w < o.value.length) {
3295
3295
  const X = o.value;
3296
3296
  let C = -1;
3297
- for (let E = b; E < X.length; E++) {
3297
+ for (let E = w; E < X.length; E++) {
3298
3298
  const { required: W, optional: G } = u(t), Q = W + G;
3299
3299
  if (E < Q.length && f(Q[E])) {
3300
3300
  C = E;
@@ -3313,7 +3313,7 @@ function qa(e, l) {
3313
3313
  E = E.slice(0, W) + E.slice(W + 1);
3314
3314
  const G = h(E);
3315
3315
  o.value = G, e.value = E, fe(() => {
3316
- c.setSelectionRange(b, b);
3316
+ c.setSelectionRange(w, w);
3317
3317
  });
3318
3318
  }
3319
3319
  }
@@ -3339,7 +3339,7 @@ function qa(e, l) {
3339
3339
  }
3340
3340
  function M(d) {
3341
3341
  s.value = !0, fe(() => {
3342
- const c = d.target, { required: b, optional: I } = u(t), L = b + I;
3342
+ const c = d.target, { required: w, optional: I } = u(t), L = w + I;
3343
3343
  let D = 0;
3344
3344
  for (let N = 0; N < L.length; N++)
3345
3345
  if (f(L[N])) {
@@ -3441,7 +3441,7 @@ const ui = /* @__PURE__ */ Y({
3441
3441
  class: z(l.value)
3442
3442
  }, [
3443
3443
  (v(), U(Pe(t.icon), { class: "icon-field__icon" })),
3444
- w("div", Na, [
3444
+ b("div", Na, [
3445
3445
  J(t.$slots, "default")
3446
3446
  ])
3447
3447
  ], 2));
@@ -3507,9 +3507,9 @@ const ui = /* @__PURE__ */ Y({
3507
3507
  disabled: s.countInPackage ? l.value === s.countInPackage : l.value === s.min,
3508
3508
  onClick: pe(i, ["stop"])
3509
3509
  }, null, 8, ["icon", "disabled"])) : A("", !0),
3510
- w("div", Wa, [
3510
+ b("div", Wa, [
3511
3511
  (v(), U(Pe(s.icon))),
3512
- be(w("input", {
3512
+ be(b("input", {
3513
3513
  "onUpdate:modelValue": r[0] || (r[0] = (u) => t.value = u),
3514
3514
  type: "number",
3515
3515
  name: "input-number",
@@ -3613,7 +3613,7 @@ const ui = /* @__PURE__ */ Y({
3613
3613
  setup(e, { emit: l }) {
3614
3614
  const t = ie(e, "modelValue"), a = l, n = nt();
3615
3615
  return (i, o) => (v(), p("div", Za, [
3616
- w("div", {
3616
+ b("div", {
3617
3617
  class: z([
3618
3618
  "switch",
3619
3619
  {
@@ -3621,7 +3621,7 @@ const ui = /* @__PURE__ */ Y({
3621
3621
  }
3622
3622
  ])
3623
3623
  }, [
3624
- be(w("input", {
3624
+ be(b("input", {
3625
3625
  "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
3626
3626
  type: "checkbox",
3627
3627
  name: "switch",
@@ -3632,8 +3632,8 @@ const ui = /* @__PURE__ */ Y({
3632
3632
  }, null, 40, Qa), [
3633
3633
  [Mt, t.value]
3634
3634
  ]),
3635
- o[2] || (o[2] = w("div", { class: "switch__track" }, [
3636
- w("div", { class: "switch__thumb" })
3635
+ o[2] || (o[2] = b("div", { class: "switch__track" }, [
3636
+ b("div", { class: "switch__thumb" })
3637
3637
  ], -1))
3638
3638
  ], 2),
3639
3639
  i.label ? (v(), p("label", {
@@ -3774,7 +3774,7 @@ const ui = /* @__PURE__ */ Y({
3774
3774
  r.required ? (v(), p("sup", ls, "*")) : A("", !0),
3775
3775
  ve(" " + j(r.label), 1)
3776
3776
  ], 8, ts)) : A("", !0),
3777
- be(w("textarea", {
3777
+ be(b("textarea", {
3778
3778
  "onUpdate:modelValue": u[0] || (u[0] = (f) => a.value = f),
3779
3779
  ref_key: "textareaRef",
3780
3780
  ref: n,
@@ -3794,7 +3794,7 @@ const ui = /* @__PURE__ */ Y({
3794
3794
  }, null, 40, ns), [
3795
3795
  [ze, a.value]
3796
3796
  ]),
3797
- w("div", os, [
3797
+ b("div", os, [
3798
3798
  r.smallText || r.error && r.errorText ? (v(), p("div", {
3799
3799
  key: 0,
3800
3800
  class: z(["textarea__small", { "textarea__small--error": r.error }])
@@ -3826,12 +3826,12 @@ const ui = /* @__PURE__ */ Y({
3826
3826
  }, n = R(() => l.options || a()), i = () => {
3827
3827
  };
3828
3828
  return (o, s) => (v(), p("div", ss, [
3829
- be(w("select", {
3829
+ be(b("select", {
3830
3830
  "onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
3831
3831
  class: "time-picker__select",
3832
3832
  onChange: i
3833
3833
  }, [
3834
- s[1] || (s[1] = w("option", {
3834
+ s[1] || (s[1] = b("option", {
3835
3835
  value: "",
3836
3836
  disabled: ""
3837
3837
  }, "Выберите время", -1)),
@@ -4166,8 +4166,8 @@ const gs = {
4166
4166
  if (s.value.from === d.value)
4167
4167
  s.value = null, r.value = !1;
4168
4168
  else if (r.value) {
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;
4169
+ const c = yt(s.value.from, l.format || "dd/mm/yy"), w = yt(d.value, l.format || "dd/mm/yy");
4170
+ 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;
4171
4171
  } else
4172
4172
  s.value = { from: d.value, to: "" }, r.value = !0;
4173
4173
  else
@@ -4177,7 +4177,7 @@ const gs = {
4177
4177
  class: z(B.value)
4178
4178
  }, [
4179
4179
  h.value ? (v(), p("div", gs, [
4180
- w("div", hs, [
4180
+ b("div", hs, [
4181
4181
  K(k(Se), {
4182
4182
  size: "small",
4183
4183
  "icon-only": "",
@@ -4187,11 +4187,11 @@ const gs = {
4187
4187
  disabled: _.value === "month",
4188
4188
  onClick: k(S)
4189
4189
  }, null, 8, ["icon", "disabled", "onClick"]),
4190
- w("div", ys, [
4190
+ b("div", ys, [
4191
4191
  _.value === "day" ? (v(), U(k(Se), {
4192
4192
  key: 0,
4193
4193
  variant: "link",
4194
- onClick: c[0] || (c[0] = (b) => _.value = "month")
4194
+ onClick: c[0] || (c[0] = (w) => _.value = "month")
4195
4195
  }, {
4196
4196
  default: oe(() => [
4197
4197
  ve(j(k($).month), 1)
@@ -4201,7 +4201,7 @@ const gs = {
4201
4201
  _.value !== "year" ? (v(), U(k(Se), {
4202
4202
  key: 1,
4203
4203
  variant: "link",
4204
- onClick: c[1] || (c[1] = (b) => _.value = "year")
4204
+ onClick: c[1] || (c[1] = (w) => _.value = "year")
4205
4205
  }, {
4206
4206
  default: oe(() => [
4207
4207
  ve(j(k($).year), 1)
@@ -4220,18 +4220,18 @@ const gs = {
4220
4220
  onClick: k(O)
4221
4221
  }, null, 8, ["icon", "disabled", "onClick"])
4222
4222
  ]),
4223
- w("div", ws, [
4223
+ b("div", ws, [
4224
4224
  _.value === "day" ? (v(), p("div", ks, [...c[3] || (c[3] = [
4225
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)
4226
4226
  ])])) : A("", !0),
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)
4227
+ b("div", _s, [
4228
+ (v(!0), p(re, null, ge(k(g), (w) => (v(), p("button", {
4229
+ key: w.value,
4230
+ class: z(M(w)),
4231
+ disabled: w.disabled,
4232
+ onClick: (I) => x(w)
4233
4233
  }, [
4234
- w("span", null, j(b.label), 1)
4234
+ b("span", null, j(w.label), 1)
4235
4235
  ], 10, $s))), 128))
4236
4236
  ])
4237
4237
  ])
@@ -4239,7 +4239,7 @@ const gs = {
4239
4239
  y.value ? (v(), p("div", Ss, [
4240
4240
  K(us, {
4241
4241
  modelValue: u.value,
4242
- "onUpdate:modelValue": c[2] || (c[2] = (b) => u.value = b)
4242
+ "onUpdate:modelValue": c[2] || (c[2] = (w) => u.value = w)
4243
4243
  }, null, 8, ["modelValue"])
4244
4244
  ])) : A("", !0)
4245
4245
  ], 2));
@@ -4367,8 +4367,8 @@ const Ts = /* @__PURE__ */ Y({
4367
4367
  }),
4368
4368
  emits: /* @__PURE__ */ ae(["update:modelValue", "select", "clear", "focus", "blur", "input"], ["update:modelValue"]),
4369
4369
  setup(e, { emit: l }) {
4370
- function t(c, b) {
4371
- let I = b;
4370
+ function t(c, w) {
4371
+ let I = w;
4372
4372
  const L = c.dayOfYear(), D = [
4373
4373
  // День месяца
4374
4374
  [/dd/g, c.format("DD")],
@@ -4415,9 +4415,9 @@ const Ts = /* @__PURE__ */ Y({
4415
4415
  I = I.replace(`__LITERAL_${V}__`, F);
4416
4416
  }), I;
4417
4417
  }
4418
- function a(c, b) {
4418
+ function a(c, w) {
4419
4419
  try {
4420
- const I = se(c, b, !0);
4420
+ const I = se(c, w, !0);
4421
4421
  if (I.isValid())
4422
4422
  return I;
4423
4423
  const L = se(c);
@@ -4447,14 +4447,14 @@ const Ts = /* @__PURE__ */ Y({
4447
4447
  return "";
4448
4448
  }), O = (c) => {
4449
4449
  n.getDateMask(c, i.format);
4450
- const b = c.target;
4451
- if (!b.value) {
4450
+ const w = c.target;
4451
+ if (!w.value) {
4452
4452
  s.value = null;
4453
4453
  return;
4454
4454
  }
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;
4455
+ if (w.value.length === i.format.length) {
4456
+ const I = a(w.value, i.format);
4457
+ I && I.isValid() ? (s.value = w.value, o("select", I.toDate())) : s.value = null;
4458
4458
  }
4459
4459
  o("input", c);
4460
4460
  }, _ = () => {
@@ -4471,7 +4471,7 @@ const Ts = /* @__PURE__ */ Y({
4471
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));
4472
4472
  }, x = async () => {
4473
4473
  if (!u.value || !f.value) return;
4474
- const { x: c, y: b } = await Ht(
4474
+ const { x: c, y: w } = await Ht(
4475
4475
  u.value,
4476
4476
  f.value,
4477
4477
  {
@@ -4486,12 +4486,12 @@ const Ts = /* @__PURE__ */ Y({
4486
4486
  );
4487
4487
  h.value = {
4488
4488
  left: `${c}px`,
4489
- top: `${b}px`
4489
+ top: `${w}px`
4490
4490
  };
4491
4491
  }, d = (c) => {
4492
4492
  if (!r.value || !f.value) return;
4493
- const b = c.target;
4494
- !r.value.contains(b) && !f.value.contains(b) && (m.value = !1, y && (y(), y = null));
4493
+ const w = c.target;
4494
+ !r.value.contains(w) && !f.value.contains(w) && (m.value = !1, y && (y(), y = null));
4495
4495
  };
4496
4496
  return ee(
4497
4497
  s,
@@ -4505,12 +4505,12 @@ const Ts = /* @__PURE__ */ Y({
4505
4505
  document.removeEventListener("mousedown", d), y && (y(), y = null);
4506
4506
  }), ee(m, (c) => {
4507
4507
  !c && y && (y(), y = null);
4508
- }), (c, b) => (v(), p("div", {
4508
+ }), (c, w) => (v(), p("div", {
4509
4509
  class: "date-picker",
4510
4510
  ref_key: "datePickerRef",
4511
4511
  ref: r
4512
4512
  }, [
4513
- w("div", {
4513
+ b("div", {
4514
4514
  ref_key: "inputRef",
4515
4515
  ref: u,
4516
4516
  class: "date-picker__input"
@@ -4540,14 +4540,14 @@ const Ts = /* @__PURE__ */ Y({
4540
4540
  class: "date-picker__popover",
4541
4541
  style: le({ ...h.value, zIndex: Math.max(k($)?.zIndex || 1100, 9999) })
4542
4542
  }, [
4543
- w("div", {
4544
- onMousedown: b[1] || (b[1] = pe(() => {
4543
+ b("div", {
4544
+ onMousedown: w[1] || (w[1] = pe(() => {
4545
4545
  }, ["stop"]))
4546
4546
  }, [
4547
4547
  K(k(xs), {
4548
4548
  modelValue: g.value,
4549
4549
  "onUpdate:modelValue": [
4550
- b[0] || (b[0] = (I) => g.value = I),
4550
+ w[0] || (w[0] = (I) => g.value = I),
4551
4551
  M
4552
4552
  ],
4553
4553
  format: c.format,
@@ -4631,7 +4631,7 @@ const Ts = /* @__PURE__ */ Y({
4631
4631
  g.required ? (v(), p("sup", Ps, "*")) : A("", !0),
4632
4632
  ve(" " + j(g.label), 1)
4633
4633
  ])) : A("", !0),
4634
- w("div", Rs, [
4634
+ b("div", Rs, [
4635
4635
  (v(!0), p(re, null, ge(s.value, (S, O) => be((v(), p("input", {
4636
4636
  key: O,
4637
4637
  ref_for: !0,
@@ -4714,18 +4714,18 @@ const Ts = /* @__PURE__ */ Y({
4714
4714
  }), (h, y) => (v(), p("div", {
4715
4715
  class: z(i.value)
4716
4716
  }, [
4717
- w("div", Ls, [
4717
+ b("div", Ls, [
4718
4718
  (v(), U(Pe(n.value)))
4719
4719
  ]),
4720
- w("div", Ds, [
4721
- w("div", zs, j(h.msg.summary), 1),
4720
+ b("div", Ds, [
4721
+ b("div", zs, j(h.msg.summary), 1),
4722
4722
  h.msg.detail ? (v(), p("div", {
4723
4723
  key: 0,
4724
4724
  class: "toast-message__text",
4725
4725
  innerHTML: h.msg.detail
4726
4726
  }, null, 8, Hs)) : A("", !0)
4727
4727
  ]),
4728
- w("button", {
4728
+ b("button", {
4729
4729
  class: "toast-message__close",
4730
4730
  onClick: f
4731
4731
  }, [
@@ -4761,7 +4761,7 @@ const Ts = /* @__PURE__ */ Y({
4761
4761
  }), Ve(() => {
4762
4762
  ke.off("add", i), ke.off("remove", o), ke.off("remove-group", s), ke.off("remove-all-groups", r);
4763
4763
  }), (u, f) => (v(), U(Le, { to: "body" }, [
4764
- w("div", qs, [
4764
+ b("div", qs, [
4765
4765
  K(Hl, {
4766
4766
  name: "toast-fade",
4767
4767
  tag: "div",
@@ -4827,10 +4827,10 @@ const _i = {
4827
4827
  return (n, i) => (v(), p("div", {
4828
4828
  class: z(t.value)
4829
4829
  }, [
4830
- w("div", Ns, [
4830
+ b("div", Ns, [
4831
4831
  (v(), U(Pe(a[l.type])))
4832
4832
  ]),
4833
- w("p", Ws, [
4833
+ b("p", Ws, [
4834
4834
  n.$slots.default ? J(n.$slots, "default", { key: 0 }, void 0, !0) : (v(), p(re, { key: 1 }, [
4835
4835
  ve(j(l.message), 1)
4836
4836
  ], 64))
@@ -4994,7 +4994,7 @@ const _i = {
4994
4994
  onClick: o,
4995
4995
  style: le({ zIndex: k(a)?.zIndex })
4996
4996
  }, [
4997
- w("div", {
4997
+ b("div", {
4998
4998
  ref: "popupRef",
4999
4999
  class: z(["confirm-dialog", [`confirm-dialog--${k(ce).position}`, k(ce).class]]),
5000
5000
  onClick: u[2] || (u[2] = pe(() => {
@@ -5002,10 +5002,10 @@ const _i = {
5002
5002
  style: le(k(ce).style)
5003
5003
  }, [
5004
5004
  k(ce).header ? (v(), p("div", Qs, [
5005
- w("h4", Xs, j(k(ce).header), 1)
5005
+ b("h4", Xs, j(k(ce).header), 1)
5006
5006
  ])) : A("", !0),
5007
5007
  k(ce).message ? (v(), p("p", Gs, j(k(ce).message), 1)) : A("", !0),
5008
- w("div", Js, [
5008
+ b("div", Js, [
5009
5009
  K(k(Se), {
5010
5010
  size: "small",
5011
5011
  variant: "danger",
@@ -5145,7 +5145,7 @@ const _i = {
5145
5145
  onClick: u,
5146
5146
  style: le({ zIndex: k(n)?.zIndex })
5147
5147
  }, [
5148
- w("div", {
5148
+ b("div", {
5149
5149
  ref_key: "popupRef",
5150
5150
  ref: l,
5151
5151
  class: z(["confirm-popup", i.value]),
@@ -5153,14 +5153,14 @@ const _i = {
5153
5153
  }, ["stop"])),
5154
5154
  style: le(t.value)
5155
5155
  }, [
5156
- w("div", {
5156
+ b("div", {
5157
5157
  class: z(["confirm-popup__arrow", o.value])
5158
5158
  }, null, 2),
5159
5159
  k(de).header ? (v(), p("div", tr, [
5160
- w("h4", lr, j(k(de).header), 1)
5160
+ b("h4", lr, j(k(de).header), 1)
5161
5161
  ])) : A("", !0),
5162
5162
  k(de).message ? (v(), p("p", nr, j(k(de).message), 1)) : A("", !0),
5163
- w("div", or, [
5163
+ b("div", or, [
5164
5164
  K(k(Se), {
5165
5165
  size: "small",
5166
5166
  variant: "danger",
@@ -5233,27 +5233,27 @@ const _i = {
5233
5233
  class: z(["drawer", { [`drawer--${h.position}`]: h.position }]),
5234
5234
  style: le({ zIndex: k(o)?.zIndex })
5235
5235
  }, [
5236
- w("div", {
5236
+ b("div", {
5237
5237
  class: "drawer-overlay",
5238
5238
  onClick: y[0] || (y[0] = (g) => f())
5239
5239
  }),
5240
- w("div", {
5240
+ b("div", {
5241
5241
  class: z(["drawer-wrapper", { "drawer-wrapper--no-style": h.wrapperNoStyle }]),
5242
5242
  style: le(s.value)
5243
5243
  }, [
5244
- w("div", sr, [
5245
- w("button", {
5244
+ b("div", sr, [
5245
+ b("button", {
5246
5246
  onClick: y[1] || (y[1] = (g) => f())
5247
5247
  }, [
5248
5248
  K(k(ct))
5249
5249
  ])
5250
5250
  ]),
5251
- w("div", rr, [
5252
- w("div", ir, [
5251
+ b("div", rr, [
5252
+ b("div", ir, [
5253
5253
  J(h.$slots, "mobile-header")
5254
5254
  ]),
5255
- w("div", ur, [
5256
- w("button", {
5255
+ b("div", ur, [
5256
+ b("button", {
5257
5257
  onClick: y[2] || (y[2] = (g) => f())
5258
5258
  }, [
5259
5259
  K(k(ct))
@@ -5300,18 +5300,18 @@ const _i = {
5300
5300
  class: z(s.value),
5301
5301
  style: le({ zIndex: k(l)?.zIndex })
5302
5302
  }, [
5303
- w("div", {
5303
+ b("div", {
5304
5304
  class: "modal__overlay",
5305
5305
  onClick: f[0] || (f[0] = (m) => a.value = !1)
5306
5306
  }),
5307
- w("div", {
5307
+ b("div", {
5308
5308
  class: "modal__content",
5309
5309
  style: le(u.style)
5310
5310
  }, [
5311
- w("div", cr, [
5311
+ b("div", cr, [
5312
5312
  J(u.$slots, "header"),
5313
5313
  t.value && !n.header ? (v(), p("h2", dr, j(t.value), 1)) : A("", !0),
5314
- w("button", {
5314
+ b("button", {
5315
5315
  text: "",
5316
5316
  class: "modal__header-close",
5317
5317
  onClick: f[1] || (f[1] = (m) => a.value = !1)
@@ -5319,7 +5319,7 @@ const _i = {
5319
5319
  K(k(et))
5320
5320
  ])
5321
5321
  ]),
5322
- w("div", fr, [
5322
+ b("div", fr, [
5323
5323
  J(u.$slots, "default", { setTitle: r })
5324
5324
  ])
5325
5325
  ], 4)
@@ -5342,8 +5342,8 @@ const _i = {
5342
5342
  }, $ = (d) => {
5343
5343
  if (!n.value) return;
5344
5344
  s.value = d.touches[0].clientY, r.value = s.value, f.value = n.value.scrollTop;
5345
- const b = d.target.closest(".bottom-sheet__handle"), I = n.value.scrollTop === 0;
5346
- m.value = !!(b || I), m.value && (o.value = !0);
5345
+ const w = d.target.closest(".bottom-sheet__handle"), I = n.value.scrollTop === 0;
5346
+ m.value = !!(w || I), m.value && (o.value = !0);
5347
5347
  }, S = (d) => {
5348
5348
  if (!o.value || !m.value || !n.value) return;
5349
5349
  r.value = d.touches[0].clientY;
@@ -5366,12 +5366,12 @@ const _i = {
5366
5366
  r.value = I.clientY;
5367
5367
  const L = r.value - s.value;
5368
5368
  L > 0 && (I.preventDefault(), i.value = L);
5369
- }, b = () => {
5369
+ }, w = () => {
5370
5370
  if (!o.value || !m.value) return;
5371
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);
5372
+ i.value > I && g(), i.value = 0, o.value = !1, m.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", w);
5373
5373
  };
5374
- document.addEventListener("mousemove", c), document.addEventListener("mouseup", b);
5374
+ document.addEventListener("mousemove", c), document.addEventListener("mouseup", w);
5375
5375
  }, M = () => {
5376
5376
  a.value && (a.value.addEventListener("touchstart", $, {
5377
5377
  passive: !0
@@ -5395,9 +5395,9 @@ const _i = {
5395
5395
  class: "bottom-sheet",
5396
5396
  style: le({ zIndex: k(t)?.zIndex })
5397
5397
  }, [
5398
- w("div", {
5398
+ b("div", {
5399
5399
  class: "bottom-sheet__overlay",
5400
- onClick: c[0] || (c[0] = (b) => g())
5400
+ onClick: c[0] || (c[0] = (w) => g())
5401
5401
  }),
5402
5402
  K(Te, { name: "bottom-sheet-slide" }, {
5403
5403
  default: oe(() => [
@@ -5409,14 +5409,14 @@ const _i = {
5409
5409
  style: le({ transform: `translateY(${i.value}px)` }),
5410
5410
  onTouchend: O
5411
5411
  }, [
5412
- w("div", {
5412
+ b("div", {
5413
5413
  class: "bottom-sheet__handle",
5414
5414
  onMousedown: B,
5415
5415
  onTouchstart: pe(_, ["stop"])
5416
5416
  }, [...c[1] || (c[1] = [
5417
- w("div", { class: "dot" }, null, -1)
5417
+ b("div", { class: "dot" }, null, -1)
5418
5418
  ])], 32),
5419
- w("div", {
5419
+ b("div", {
5420
5420
  class: "bottom-sheet__body",
5421
5421
  ref_key: "bodyRef",
5422
5422
  ref: n
@@ -5466,7 +5466,7 @@ const _i = {
5466
5466
  class: "accordion-content-wrapper",
5467
5467
  style: le({ height: k(l) ? a.value : "0px" })
5468
5468
  }, [
5469
- be(w("div", {
5469
+ be(b("div", {
5470
5470
  ref_key: "contentRef",
5471
5471
  ref: t,
5472
5472
  class: "accordion-content"
@@ -5486,10 +5486,10 @@ const _i = {
5486
5486
  onClick: i[0] || (i[0] = //@ts-ignore
5487
5487
  (...o) => k(t) && k(t)(...o))
5488
5488
  }, [
5489
- w("span", mr, [
5489
+ b("span", mr, [
5490
5490
  J(n.$slots, "default")
5491
5491
  ]),
5492
- w("span", pr, [
5492
+ b("span", pr, [
5493
5493
  K(k(ml))
5494
5494
  ])
5495
5495
  ], 2));
@@ -5542,13 +5542,13 @@ const _i = {
5542
5542
  return (n, i) => (v(), p("div", {
5543
5543
  class: z(["step", { "step--active": k(l)?.isStepActive(n.value ?? n.index), "step--passed": k(l)?.isStepPassed(n.index) }])
5544
5544
  }, [
5545
- w("button", {
5545
+ b("button", {
5546
5546
  class: "step__button",
5547
5547
  disabled: t.value,
5548
5548
  onClick: a
5549
5549
  }, [
5550
- w("div", yr, j(n.index + 1), 1),
5551
- w("div", br, j(n.label), 1)
5550
+ b("div", yr, j(n.index + 1), 1),
5551
+ b("div", br, j(n.label), 1)
5552
5552
  ], 8, hr),
5553
5553
  k(l)?.isLastItem(n.index) ? A("", !0) : (v(), p("div", {
5554
5554
  key: 0,
@@ -5581,7 +5581,7 @@ const _i = {
5581
5581
  return f === -1 ? a.value > u : f > u;
5582
5582
  }
5583
5583
  }), (u, f) => (v(), p("div", _r, [
5584
- w("div", $r, [
5584
+ b("div", $r, [
5585
5585
  (v(!0), p(re, null, ge(u.steps, (m, h) => (v(), U(kr, {
5586
5586
  key: m.value,
5587
5587
  index: h,
@@ -5648,7 +5648,7 @@ const _i = {
5648
5648
  __name: "TabList",
5649
5649
  setup(e) {
5650
5650
  return (l, t) => (v(), p("div", Tr, [
5651
- w("div", Ir, [
5651
+ b("div", Ir, [
5652
5652
  J(l.$slots, "default")
5653
5653
  ])
5654
5654
  ]));
@@ -5732,7 +5732,7 @@ const _i = {
5732
5732
  style: le({ ...o.value, zIndex: k(r)?.zIndex }),
5733
5733
  role: "tooltip"
5734
5734
  }, [
5735
- w("div", {
5735
+ b("div", {
5736
5736
  class: "tooltip__content",
5737
5737
  style: le({ maxWidth: `${$.maxWidth}px` })
5738
5738
  }, j($.content), 5),
@@ -5795,8 +5795,8 @@ const _i = {
5795
5795
  function u(M) {
5796
5796
  let x = 1e3, d = M;
5797
5797
  for (; d && d !== document.body; ) {
5798
- const c = window.getComputedStyle(d), b = parseInt(c.zIndex);
5799
- !isNaN(b) && b > x && (x = b), d = d.parentElement;
5798
+ const c = window.getComputedStyle(d), w = parseInt(c.zIndex);
5799
+ !isNaN(w) && w > x && (x = w), d = d.parentElement;
5800
5800
  }
5801
5801
  return x;
5802
5802
  }
@@ -5824,7 +5824,7 @@ const _i = {
5824
5824
  !i.value || !n.value || fe(() => {
5825
5825
  const M = u(i.value);
5826
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);
5827
+ const x = i.value.getBoundingClientRect(), d = window.innerHeight, c = window.innerWidth, w = d - x.bottom, I = x.top, D = w < 200 && I > w, N = Math.max(100, x.width);
5828
5828
  let q = x.left;
5829
5829
  q + N > c && (q = Math.max(0, c - N - 10)), s.value = {
5830
5830
  position: "fixed",
@@ -5838,8 +5838,8 @@ const _i = {
5838
5838
  if (!n.value) return;
5839
5839
  const x = M.target, d = i.value, c = o.value;
5840
5840
  if (!d) return;
5841
- const b = d.contains(x), I = c && c.contains(x);
5842
- !b && !I && (n.value = !1);
5841
+ const w = d.contains(x), I = c && c.contains(x);
5842
+ !w && !I && (n.value = !1);
5843
5843
  }
5844
5844
  return ee(() => t.modelValue, (M) => {
5845
5845
  M ? (r.from = M.from || "", r.to = M.to || "") : (r.from = "", r.to = "");
@@ -5852,21 +5852,21 @@ const _i = {
5852
5852
  }), (M, x) => (v(), p("div", {
5853
5853
  class: z(["time-picker", { "time-picker--disabled": M.disabled }])
5854
5854
  }, [
5855
- w("div", {
5855
+ b("div", {
5856
5856
  ref_key: "timePickerTrigger",
5857
5857
  ref: i,
5858
5858
  class: z(["time-picker__trigger", { "time-picker__trigger--active": n.value }]),
5859
5859
  onClick: y
5860
5860
  }, [
5861
- w("div", Ar, [
5861
+ b("div", Ar, [
5862
5862
  m.value ? J(M.$slots, "input", {
5863
5863
  key: 0,
5864
5864
  value: m.value
5865
5865
  }, () => [
5866
- w("span", Or, j(m.value), 1)
5866
+ b("span", Or, j(m.value), 1)
5867
5867
  ], !0) : (v(), p("span", Br, j(M.placeholder), 1))
5868
5868
  ]),
5869
- w("div", {
5869
+ b("div", {
5870
5870
  class: z(["time-picker__arrow", { "time-picker__arrow--rotated": n.value }])
5871
5871
  }, [
5872
5872
  K(k(bt))
@@ -5884,7 +5884,7 @@ const _i = {
5884
5884
  "z-index": f.value
5885
5885
  }, {
5886
5886
  default: oe(() => [
5887
- w("div", {
5887
+ b("div", {
5888
5888
  ref_key: "timePickerOverlay",
5889
5889
  ref: o,
5890
5890
  class: "time-picker__overlay",
@@ -5892,16 +5892,16 @@ const _i = {
5892
5892
  onClick: x[2] || (x[2] = pe(() => {
5893
5893
  }, ["stop"]))
5894
5894
  }, [
5895
- w("div", Er, [
5895
+ b("div", Er, [
5896
5896
  J(M.$slots, "content", {
5897
5897
  close: g,
5898
5898
  updateTime: S,
5899
5899
  timeRange: r
5900
5900
  }, () => [
5901
- w("div", Lr, [
5902
- w("div", Dr, [
5903
- x[3] || (x[3] = w("label", { class: "time-picker__label" }, "С", -1)),
5904
- be(w("input", {
5901
+ b("div", Lr, [
5902
+ b("div", Dr, [
5903
+ x[3] || (x[3] = b("label", { class: "time-picker__label" }, "С", -1)),
5904
+ be(b("input", {
5905
5905
  "onUpdate:modelValue": x[0] || (x[0] = (d) => r.from = d),
5906
5906
  type: "time",
5907
5907
  class: "time-picker__time-input",
@@ -5910,9 +5910,9 @@ const _i = {
5910
5910
  [ze, r.from]
5911
5911
  ])
5912
5912
  ]),
5913
- w("div", zr, [
5914
- x[4] || (x[4] = w("label", { class: "time-picker__label" }, "По", -1)),
5915
- be(w("input", {
5913
+ b("div", zr, [
5914
+ x[4] || (x[4] = b("label", { class: "time-picker__label" }, "По", -1)),
5915
+ be(b("input", {
5916
5916
  "onUpdate:modelValue": x[1] || (x[1] = (d) => r.to = d),
5917
5917
  type: "time",
5918
5918
  class: "time-picker__time-input",
@@ -5970,7 +5970,7 @@ const _i = {
5970
5970
  function f(x) {
5971
5971
  let d = 1e3, c = x;
5972
5972
  for (; c && c !== document.body; ) {
5973
- const b = window.getComputedStyle(c), I = parseInt(b.zIndex);
5973
+ const w = window.getComputedStyle(c), I = parseInt(w.zIndex);
5974
5974
  !isNaN(I) && I > d && (d = I), c = c.parentElement;
5975
5975
  }
5976
5976
  return d;
@@ -5987,13 +5987,13 @@ const _i = {
5987
5987
  }
5988
5988
  function S(x) {
5989
5989
  const c = u.value.map(
5990
- (b) => b.key === x ? { ...b, enabled: !b.enabled } : b
5990
+ (w) => w.key === x ? { ...w, enabled: !w.enabled } : w
5991
5991
  );
5992
5992
  a("update:modelValue", c), a("change", c);
5993
5993
  }
5994
5994
  function O(x, d) {
5995
5995
  const c = u.value.map(
5996
- (b) => b.key === x ? { ...b, time: d } : b
5996
+ (w) => w.key === x ? { ...w, time: d } : w
5997
5997
  );
5998
5998
  a("update:modelValue", c), a("change", c);
5999
5999
  }
@@ -6005,9 +6005,9 @@ const _i = {
6005
6005
  !i.value || !n.value || fe(() => {
6006
6006
  const x = f(i.value);
6007
6007
  m.value = x + 10;
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);
6008
+ const d = i.value.getBoundingClientRect(), c = window.innerHeight, w = window.innerWidth, I = c - d.bottom, L = d.top, N = I < 400 && L > I, q = Math.max(300, d.width);
6009
6009
  let F = d.left;
6010
- F + q > b && (F = Math.max(0, b - q - 10)), s.value = {
6010
+ F + q > w && (F = Math.max(0, w - q - 10)), s.value = {
6011
6011
  position: "fixed",
6012
6012
  left: `${F}px`,
6013
6013
  width: `${q}px`,
@@ -6017,8 +6017,8 @@ const _i = {
6017
6017
  }
6018
6018
  function M(x) {
6019
6019
  if (!i.value || !n.value) return;
6020
- const d = x.target, c = o.value, b = i.value.contains(d), I = c && c.contains(d);
6021
- !b && !I && (n.value = !1);
6020
+ const d = x.target, c = o.value, w = i.value.contains(d), I = c && c.contains(d);
6021
+ !w && !I && (n.value = !1);
6022
6022
  }
6023
6023
  return ee(n, (x) => {
6024
6024
  x && B();
@@ -6030,7 +6030,7 @@ const _i = {
6030
6030
  class: z(["schedule", { "schedule--disabled": x.disabled }])
6031
6031
  }, [
6032
6032
  x.label ? (v(), p("label", qr, j(x.label), 1)) : A("", !0),
6033
- w("div", {
6033
+ b("div", {
6034
6034
  ref_key: "scheduleTrigger",
6035
6035
  ref: i,
6036
6036
  class: z(["schedule__trigger", {
@@ -6039,15 +6039,15 @@ const _i = {
6039
6039
  }]),
6040
6040
  onClick: g
6041
6041
  }, [
6042
- w("div", Nr, [
6042
+ b("div", Nr, [
6043
6043
  h.value ? J(x.$slots, "input", {
6044
6044
  key: 0,
6045
6045
  value: h.value
6046
6046
  }, () => [
6047
- w("span", Wr, j(h.value), 1)
6047
+ b("span", Wr, j(h.value), 1)
6048
6048
  ], !0) : (v(), p("span", Yr, j(x.placeholder), 1))
6049
6049
  ]),
6050
- w("div", {
6050
+ b("div", {
6051
6051
  class: z(["schedule__arrow", { "schedule__arrow--rotated": n.value }])
6052
6052
  }, [
6053
6053
  K(k(bt))
@@ -6065,7 +6065,7 @@ const _i = {
6065
6065
  "z-index": m.value
6066
6066
  }, {
6067
6067
  default: oe(() => [
6068
- w("div", {
6068
+ b("div", {
6069
6069
  ref_key: "scheduleOverlay",
6070
6070
  ref: o,
6071
6071
  class: "schedule__overlay",
@@ -6073,23 +6073,23 @@ const _i = {
6073
6073
  onClick: d[0] || (d[0] = pe(() => {
6074
6074
  }, ["stop"]))
6075
6075
  }, [
6076
- w("div", jr, [
6076
+ b("div", jr, [
6077
6077
  J(x.$slots, "content", {
6078
6078
  close: $,
6079
6079
  days: u.value,
6080
6080
  toggleDay: S,
6081
6081
  updateDayTime: O
6082
6082
  }, () => [
6083
- w("div", Kr, [
6083
+ b("div", Kr, [
6084
6084
  (v(!0), p(re, null, ge(u.value, (c) => (v(), p("div", {
6085
6085
  key: c.key,
6086
6086
  class: "schedule__day"
6087
6087
  }, [
6088
- w("div", Ur, [
6088
+ b("div", Ur, [
6089
6089
  K(at, {
6090
6090
  "model-value": c.enabled,
6091
6091
  label: c.label,
6092
- onChange: (b) => S(c.key)
6092
+ onChange: (w) => S(c.key)
6093
6093
  }, null, 8, ["model-value", "label", "onChange"])
6094
6094
  ]),
6095
6095
  c.enabled ? (v(), p("div", Zr, [
@@ -6097,7 +6097,7 @@ const _i = {
6097
6097
  "model-value": c.time,
6098
6098
  placeholder: "Время работы",
6099
6099
  clearable: "",
6100
- "onUpdate:modelValue": (b) => O(c.key, b)
6100
+ "onUpdate:modelValue": (w) => O(c.key, w)
6101
6101
  }, null, 8, ["model-value", "onUpdate:modelValue"])
6102
6102
  ])) : A("", !0)
6103
6103
  ]))), 128))