prlg-ui 1.8.118 → 1.8.119

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.
@@ -136,7 +136,8 @@ const on = {
136
136
  size: { default: "default" },
137
137
  error: { type: Boolean, default: !1 },
138
138
  errorText: {},
139
- checked: { type: Boolean }
139
+ checked: { type: Boolean },
140
+ customId: {}
140
141
  }, {
141
142
  modelValue: { type: [String, Boolean, null, Array] },
142
143
  modelModifiers: {}
@@ -190,7 +191,7 @@ const on = {
190
191
  class: z(r.value)
191
192
  }, [
192
193
  w("input", {
193
- id: u.value,
194
+ id: v.customId ?? u.value,
194
195
  type: "checkbox",
195
196
  value: v.value,
196
197
  indeterminate: a.value,
@@ -532,14 +533,14 @@ const Rn = (e) => ({
532
533
  }, b = Ot(n), h = At(b), S = await a.getDimensions(r), C = b === "y", L = C ? "top" : "left", _ = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", A = u.reference[h] + u.reference[b] - m[b] - u.floating[h], x = m[b] - u.reference[b], g = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(r));
533
534
  let f = g ? g[E] : 0;
534
535
  (!f || !await (a.isElement == null ? void 0 : a.isElement(g))) && (f = s.floating[E] || u.floating[h]);
535
- const p = A / 2 - x / 2, k = f / 2 - S[h] / 2 - 1, R = Ge(v[L], k), B = Ge(v[_], k), q = R, K = f - S[h] - B, H = f / 2 - S[h] / 2 + p, I = It(q, H, K), T = !i.arrow && st(n) != null && H !== I && u.reference[h] / 2 - (H < q ? R : B) - S[h] / 2 < 0, F = T ? H < q ? H - q : H - K : 0;
536
+ const p = A / 2 - x / 2, k = f / 2 - S[h] / 2 - 1, R = Ge(v[L], k), B = Ge(v[_], k), q = R, F = f - S[h] - B, K = f / 2 - S[h] / 2 + p, I = It(q, K, F), T = !i.arrow && st(n) != null && K !== I && u.reference[h] / 2 - (K < q ? R : B) - S[h] / 2 < 0, H = T ? K < q ? K - q : K - F : 0;
536
537
  return {
537
- [b]: m[b] + F,
538
+ [b]: m[b] + H,
538
539
  data: {
539
540
  [b]: I,
540
- centerOffset: H - I - F,
541
+ centerOffset: K - I - H,
541
542
  ...T && {
542
- alignmentOffset: F
543
+ alignmentOffset: H
543
544
  }
544
545
  },
545
546
  reset: T
@@ -574,33 +575,33 @@ const Rn = (e) => ({
574
575
  const f = [s, ...x], p = await mt(l, C), k = [];
575
576
  let R = ((o = u.flip) == null ? void 0 : o.overflows) || [];
576
577
  if (c && k.push(p[L]), v) {
577
- const H = Sn(n, a, A);
578
- k.push(p[H[0]], p[H[1]]);
578
+ const K = Sn(n, a, A);
579
+ k.push(p[K[0]], p[K[1]]);
579
580
  }
580
581
  if (R = [...R, {
581
582
  placement: n,
582
583
  overflows: k
583
- }], !k.every((H) => H <= 0)) {
584
+ }], !k.every((K) => K <= 0)) {
584
585
  var B, q;
585
- const H = (((B = u.flip) == null ? void 0 : B.index) || 0) + 1, I = f[H];
586
+ const K = (((B = u.flip) == null ? void 0 : B.index) || 0) + 1, I = f[K];
586
587
  if (I && (!(v === "alignment" ? _ !== Be(I) : !1) || // We leave the current main axis only if every placement on that axis
587
588
  // overflows the main axis.
588
589
  R.every((Z) => Be(Z.placement) === _ ? Z.overflows[0] > 0 : !0)))
589
590
  return {
590
591
  data: {
591
- index: H,
592
+ index: K,
592
593
  overflows: R
593
594
  },
594
595
  reset: {
595
596
  placement: I
596
597
  }
597
598
  };
598
- let T = (q = R.filter((F) => F.overflows[0] <= 0).sort((F, Z) => F.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : q.placement;
599
+ let T = (q = R.filter((H) => H.overflows[0] <= 0).sort((H, Z) => H.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : q.placement;
599
600
  if (!T)
600
601
  switch (b) {
601
602
  case "bestFit": {
602
- var K;
603
- const F = (K = R.filter((Z) => {
603
+ var F;
604
+ const H = (F = R.filter((Z) => {
604
605
  if (g) {
605
606
  const X = Be(Z.placement);
606
607
  return X === _ || // Create a bias to the `y` side axis due to horizontal
@@ -608,8 +609,8 @@ const Rn = (e) => ({
608
609
  X === "y";
609
610
  }
610
611
  return !0;
611
- }).map((Z) => [Z.placement, Z.overflows.filter((X) => X > 0).reduce((X, V) => X + V, 0)]).sort((Z, X) => Z[1] - X[1])[0]) == null ? void 0 : K[0];
612
- F && (T = F);
612
+ }).map((Z) => [Z.placement, Z.overflows.filter((X) => X > 0).reduce((X, V) => X + V, 0)]).sort((Z, X) => Z[1] - X[1])[0]) == null ? void 0 : F[0];
613
+ H && (T = H);
613
614
  break;
614
615
  }
615
616
  case "initialPlacement":
@@ -1458,12 +1459,12 @@ const vo = {
1458
1459
  }), x = M("left-start"), { floatingStyles: g, update: f } = tl(v, b, {
1459
1460
  placement: x,
1460
1461
  middleware: [Jt(), gt({ padding: 8 }), pt(8)]
1461
- }), p = nt(), k = M(!1), R = M(!1), B = M(!1), { lockScroll: q, unlockScroll: K } = ot(), H = M(null), I = M(null), T = () => {
1462
+ }), p = nt(), k = M(!1), R = M(!1), B = M(!1), { lockScroll: q, unlockScroll: F } = ot(), K = M(null), I = M(null), T = () => {
1462
1463
  E(), R.value && f();
1463
- }, F = P(() => i && i.value !== void 0), Z = P({
1464
- get: () => F.value ? i?.value : k.value,
1464
+ }, H = P(() => i && i.value !== void 0), Z = P({
1465
+ get: () => H.value ? i?.value : k.value,
1465
1466
  set: (te) => {
1466
- F.value ? r("update:modelValue", te) : k.value = te;
1467
+ H.value ? r("update:modelValue", te) : k.value = te;
1467
1468
  }
1468
1469
  }), X = () => {
1469
1470
  Z.value = !0;
@@ -1472,7 +1473,7 @@ const vo = {
1472
1473
  }, D = () => {
1473
1474
  Z.value = !Z.value;
1474
1475
  }, N = () => {
1475
- F.value ? X() : D();
1476
+ H.value ? X() : D();
1476
1477
  }, G = async (te) => {
1477
1478
  te && te.stopPropagation(), v.value && (R.value = !0);
1478
1479
  }, Q = () => {
@@ -1507,13 +1508,13 @@ const vo = {
1507
1508
  }
1508
1509
  });
1509
1510
  return J(_, (te) => {
1510
- F.value || (Z.value = te.hide?.referenceHidden === !1);
1511
+ H.value || (Z.value = te.hide?.referenceHidden === !1);
1511
1512
  }), J(
1512
1513
  Z,
1513
1514
  async (te) => {
1514
1515
  te || (Q(), B.value = !1), te && s.value === "button-only" ? (q(), setTimeout(() => {
1515
1516
  T(), B.value = !0;
1516
- }, 0)) : !te && s.value === "button-only" ? (K(), setTimeout(() => {
1517
+ }, 0)) : !te && s.value === "button-only" ? (F(), setTimeout(() => {
1517
1518
  T();
1518
1519
  }, 0)) : te && setTimeout(() => {
1519
1520
  T(), B.value = !0;
@@ -1536,11 +1537,11 @@ const vo = {
1536
1537
  };
1537
1538
  if (window.addEventListener("scroll", it, { passive: !0 }), window.addEventListener("resize", Rl), window.addEventListener("orientationchange", T), c.value) {
1538
1539
  let Ne = null;
1539
- H.value = new ResizeObserver(() => {
1540
+ K.value = new ResizeObserver(() => {
1540
1541
  Z.value && (Ne && clearTimeout(Ne), Ne = setTimeout(() => {
1541
1542
  T(), Ne = null;
1542
1543
  }, 100));
1543
- }), H.value.observe(c.value);
1544
+ }), K.value.observe(c.value);
1544
1545
  }
1545
1546
  I.value = new MutationObserver((Ne) => {
1546
1547
  let Ft = !1;
@@ -1554,7 +1555,7 @@ const vo = {
1554
1555
  attributeFilter: ["style", "class"]
1555
1556
  });
1556
1557
  }), xe(() => {
1557
- document.removeEventListener("click", ne), window.removeEventListener("resize", T), window.removeEventListener("scroll", T), window.removeEventListener("orientationchange", T), H.value && H.value.disconnect(), I.value && I.value.disconnect(), s.value === "button-only" && Z.value && K();
1558
+ document.removeEventListener("click", ne), window.removeEventListener("resize", T), window.removeEventListener("scroll", T), window.removeEventListener("orientationchange", T), K.value && K.value.disconnect(), I.value && I.value.disconnect(), s.value === "button-only" && Z.value && F();
1558
1559
  }), l({
1559
1560
  open: X,
1560
1561
  close: V,
@@ -1954,7 +1955,7 @@ const vo = {
1954
1955
  id: a.customId ?? $(o),
1955
1956
  class: "radio__input",
1956
1957
  value: a.value,
1957
- checked: a.checked,
1958
+ checked: a.checked || t.value === a.value,
1958
1959
  disabled: a.disabled,
1959
1960
  onChange: s[1] || (s[1] = (i) => n("change", a.value))
1960
1961
  }, null, 40, Eo), [
@@ -1989,7 +1990,7 @@ const vo = {
1989
1990
  }, Wo = { class: "dropdown__list" }, Yo = {
1990
1991
  key: 0,
1991
1992
  class: "dropdown__loading"
1992
- }, jo = { class: "dropdown__option-content" }, Uo = { class: "dropdown__option-label" }, Zo = { key: 0 }, Qo = {
1993
+ }, jo = { class: "dropdown__option-content" }, Uo = ["for"], Zo = { key: 0 }, Qo = {
1993
1994
  key: 0,
1994
1995
  class: "dropdown__empty"
1995
1996
  }, Xo = {
@@ -2018,10 +2019,10 @@ const vo = {
2018
2019
  setup(e, { emit: l }) {
2019
2020
  const t = e, o = l, n = M(!1), u = M(""), a = M(), s = M(), i = M(), r = M({});
2020
2021
  function c(I) {
2021
- let T = 1e3, F = I;
2022
- for (; F && F !== document.body; ) {
2023
- const Z = window.getComputedStyle(F), X = parseInt(Z.zIndex);
2024
- !isNaN(X) && X > T && (T = X), F = F.parentElement;
2022
+ let T = 1e3, H = I;
2023
+ for (; H && H !== document.body; ) {
2024
+ const Z = window.getComputedStyle(H), X = parseInt(Z.zIndex);
2025
+ !isNaN(X) && X > T && (T = X), H = H.parentElement;
2025
2026
  }
2026
2027
  return T;
2027
2028
  }
@@ -2031,10 +2032,10 @@ const vo = {
2031
2032
  return (Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]).map((T) => {
2032
2033
  if (typeof T == "object" && T !== null)
2033
2034
  return T;
2034
- const F = t.options?.find(
2035
+ const H = t.options?.find(
2035
2036
  (X) => A(X) === T
2036
2037
  );
2037
- return F || {
2038
+ return H || {
2038
2039
  value: T,
2039
2040
  label: String(T)
2040
2041
  };
@@ -2062,10 +2063,10 @@ const vo = {
2062
2063
  function f(I) {
2063
2064
  if (!I.disabled)
2064
2065
  if (t.multiple) {
2065
- const T = A(I), F = Array.isArray(t.modelValue) ? [...t.modelValue] : [], Z = F.some((V) => typeof V == "object" && V !== null ? A(V) === T : V === T);
2066
+ const T = A(I), H = Array.isArray(t.modelValue) ? [...t.modelValue] : [], Z = H.some((V) => typeof V == "object" && V !== null ? A(V) === T : V === T);
2066
2067
  let X;
2067
- Z ? X = F.filter((V) => typeof V == "object" && V !== null ? A(V) !== T : V !== T) : X = [
2068
- ...F,
2068
+ Z ? X = H.filter((V) => typeof V == "object" && V !== null ? A(V) !== T : V !== T) : X = [
2069
+ ...H,
2069
2070
  t.valueKey && t.valueKey !== "" ? A(I) : I
2070
2071
  ], o("update:modelValue", X), o("change", X);
2071
2072
  } else {
@@ -2094,38 +2095,38 @@ const vo = {
2094
2095
  function q() {
2095
2096
  o("search", u.value);
2096
2097
  }
2097
- function K() {
2098
+ function F() {
2098
2099
  !a.value || !n.value || fe(() => {
2099
2100
  const I = c(a.value);
2100
2101
  v.value = I + 10;
2101
- const T = a.value.getBoundingClientRect(), F = window.innerHeight, Z = window.innerWidth, X = F - T.bottom, V = T.top, N = X < 300 && V > X, G = Math.max(300, T.width);
2102
+ const T = a.value.getBoundingClientRect(), H = window.innerHeight, Z = window.innerWidth, X = H - T.bottom, V = T.top, N = X < 300 && V > X, G = Math.max(300, T.width);
2102
2103
  let Q = T.left;
2103
2104
  Q + G > Z && (Q = Math.max(0, Z - G - 10)), r.value = {
2104
2105
  position: "fixed",
2105
2106
  left: `${Q}px`,
2106
2107
  width: `${G}px`,
2107
2108
  maxHeight: "300px"
2108
- }, N ? r.value.bottom = `${F - T.top + 4}px` : r.value.top = `${T.bottom + 4}px`;
2109
+ }, N ? r.value.bottom = `${H - T.top + 4}px` : r.value.top = `${T.bottom + 4}px`;
2109
2110
  });
2110
2111
  }
2111
- function H(I) {
2112
+ function K(I) {
2112
2113
  if (!a.value || !n.value) return;
2113
- const T = I.target, F = s.value, Z = a.value.contains(T), X = F && F.contains(T);
2114
+ const T = I.target, H = s.value, Z = a.value.contains(T), X = H && H.contains(T);
2114
2115
  !Z && !X && (n.value = !1);
2115
2116
  }
2116
2117
  return J(n, (I) => {
2117
- I ? (K(), t.searchable && fe(() => {
2118
+ I ? (F(), t.searchable && fe(() => {
2118
2119
  i.value?.focus();
2119
2120
  })) : u.value = "";
2120
2121
  }), J(
2121
2122
  () => t.options,
2122
2123
  () => {
2123
- n.value && K();
2124
+ n.value && F();
2124
2125
  }
2125
2126
  ), he(() => {
2126
- document.addEventListener("click", H), window.addEventListener("resize", K), window.addEventListener("scroll", K);
2127
+ document.addEventListener("click", K), window.addEventListener("resize", F), window.addEventListener("scroll", F);
2127
2128
  }), xe(() => {
2128
- document.removeEventListener("click", H), window.removeEventListener("resize", K), window.removeEventListener("scroll", K);
2129
+ document.removeEventListener("click", K), window.removeEventListener("resize", F), window.removeEventListener("scroll", F);
2129
2130
  }), (I, T) => (d(), y("div", {
2130
2131
  class: z(["dropdown", { "dropdown--disabled": I.disabled, "dropdown--error": I.error }])
2131
2132
  }, [
@@ -2145,14 +2146,14 @@ const vo = {
2145
2146
  }, [
2146
2147
  w("div", Ho, [
2147
2148
  I.multiple && m.value.length ? (d(), y("div", Ko, [
2148
- (d(!0), y(re, null, ge(S.value, (F) => (d(), U($(ht), {
2149
- key: A(F),
2149
+ (d(!0), y(re, null, ge(S.value, (H) => (d(), U($(ht), {
2150
+ key: A(H),
2150
2151
  removable: "",
2151
2152
  variant: "secondary",
2152
- onRemove: (Z) => p(F)
2153
+ onRemove: (Z) => p(H)
2153
2154
  }, {
2154
2155
  default: oe(() => [
2155
- ve(Y(x(F)), 1)
2156
+ ve(Y(x(H)), 1)
2156
2157
  ]),
2157
2158
  _: 2
2158
2159
  }, 1032, ["onRemove"]))), 128)),
@@ -2205,7 +2206,7 @@ const vo = {
2205
2206
  be(w("input", {
2206
2207
  ref_key: "searchInput",
2207
2208
  ref: i,
2208
- "onUpdate:modelValue": T[0] || (T[0] = (F) => u.value = F),
2209
+ "onUpdate:modelValue": T[0] || (T[0] = (H) => u.value = H),
2209
2210
  class: "dropdown__search-input",
2210
2211
  placeholder: "Поиск...",
2211
2212
  onInput: q
@@ -2215,35 +2216,40 @@ const vo = {
2215
2216
  ])) : O("", !0),
2216
2217
  w("div", Wo, [
2217
2218
  I.loading ? (d(), y("div", Yo, "Загрузка...")) : (d(), y(re, { key: 1 }, [
2218
- (d(!0), y(re, null, ge(L.value, (F) => (d(), y("div", {
2219
- key: A(F),
2219
+ (d(!0), y(re, null, ge(L.value, (H) => (d(), y("div", {
2220
+ key: A(H),
2220
2221
  class: z(["dropdown__option", {
2221
- "dropdown__option--disabled": F.disabled
2222
+ "dropdown__option--disabled": H.disabled
2222
2223
  }])
2223
2224
  }, [
2224
2225
  w("div", jo, [
2225
2226
  I.multiple ? (d(), U(at, {
2226
2227
  key: 0,
2228
+ customId: `dropdown-checkbox-${A(H)}`,
2227
2229
  "model-value": _.value,
2228
- value: A(F),
2229
- disabled: F.disabled,
2230
- onChange: (Z) => R(F)
2231
- }, null, 8, ["model-value", "value", "disabled", "onChange"])) : (d(), U(Ht, {
2230
+ value: A(H),
2231
+ disabled: H.disabled,
2232
+ onChange: (Z) => R(H)
2233
+ }, null, 8, ["customId", "model-value", "value", "disabled", "onChange"])) : (d(), U(Ht, {
2232
2234
  key: 1,
2235
+ customId: `dropdown-radio-${A(H)}`,
2233
2236
  "model-value": E.value,
2234
- value: A(F),
2235
- disabled: F.disabled,
2236
- onChange: (Z) => B(F)
2237
- }, null, 8, ["model-value", "value", "disabled", "onChange"])),
2238
- w("div", Uo, [
2239
- I.$slots.option ? O("", !0) : (d(), y("span", Zo, Y(x(F)), 1)),
2237
+ value: A(H),
2238
+ disabled: H.disabled,
2239
+ onChange: (Z) => B(H)
2240
+ }, null, 8, ["customId", "model-value", "value", "disabled", "onChange"])),
2241
+ w("label", {
2242
+ class: "dropdown__option-label",
2243
+ for: I.multiple ? `dropdown-checkbox-${A(H)}` : `dropdown-radio-${A(H)}`
2244
+ }, [
2245
+ I.$slots.option ? O("", !0) : (d(), y("span", Zo, Y(x(H)), 1)),
2240
2246
  ee(I.$slots, "option", {
2241
- option: F,
2242
- selected: I.multiple ? _.value.includes(A(F)) : E.value === A(F),
2247
+ option: H,
2248
+ selected: I.multiple ? _.value.includes(A(H)) : E.value === A(H),
2243
2249
  multiple: I.multiple,
2244
- handleSelect: I.multiple ? () => R(F) : () => B(F)
2250
+ handleSelect: I.multiple ? () => R(H) : () => B(H)
2245
2251
  }, void 0, !0)
2246
- ])
2252
+ ], 8, Uo)
2247
2253
  ])
2248
2254
  ], 2))), 128)),
2249
2255
  L.value.length ? O("", !0) : (d(), y("div", Qo, " Ничего не найдено "))
@@ -2256,7 +2262,7 @@ const vo = {
2256
2262
  I.error && I.errorText ? (d(), y("small", Xo, Y(I.errorText), 1)) : O("", !0)
2257
2263
  ], 2));
2258
2264
  }
2259
- }), Jo = /* @__PURE__ */ ue(Go, [["__scopeId", "data-v-c2428721"]]), ea = {
2265
+ }), Jo = /* @__PURE__ */ ue(Go, [["__scopeId", "data-v-3ce69c49"]]), ea = {
2260
2266
  key: 0,
2261
2267
  class: "paginator"
2262
2268
  }, ta = ["disabled"], la = { class: "paginator__pages" }, na = ["onClick"], oa = ["disabled"], aa = {
@@ -2472,8 +2478,8 @@ const vo = {
2472
2478
  if (a.value) {
2473
2479
  const { field: k, order: R } = a.value;
2474
2480
  p.sort((B, q) => {
2475
- const K = B[k], H = q[k];
2476
- return K === H ? 0 : R === 1 ? K > H ? 1 : -1 : K < H ? 1 : -1;
2481
+ const F = B[k], K = q[k];
2482
+ return F === K ? 0 : R === 1 ? F > K ? 1 : -1 : F < K ? 1 : -1;
2477
2483
  });
2478
2484
  }
2479
2485
  return p;
@@ -2834,15 +2840,15 @@ const vo = {
2834
2840
  o("update:modelValue", Q), o("change", Q), a.value = "";
2835
2841
  } else {
2836
2842
  const D = t.valueKey ? g(V) : V;
2837
- o("update:modelValue", D), o("change", D), a.value = K(V), n.value = !1;
2843
+ o("update:modelValue", D), o("change", D), a.value = F(V), n.value = !1;
2838
2844
  }
2839
2845
  s.value = -1;
2840
2846
  }
2841
2847
  }
2842
- function K(V) {
2848
+ function F(V) {
2843
2849
  return t.inputKey && t.inputKey in V ? String(V[t.inputKey]) : f(V);
2844
2850
  }
2845
- function H(V) {
2851
+ function K(V) {
2846
2852
  if (!t.multiple) return;
2847
2853
  const D = g(V), G = (Array.isArray(t.modelValue) ? [...t.modelValue] : []).filter((Q) => typeof Q == "object" && Q !== null ? g(Q) !== D : Q !== D);
2848
2854
  o("update:modelValue", G), o("change", G), o("remove-tag", V);
@@ -2854,7 +2860,7 @@ const vo = {
2854
2860
  function T(V) {
2855
2861
  V.disabled || !t.multiple || q(V);
2856
2862
  }
2857
- function F(V) {
2863
+ function H(V) {
2858
2864
  V.disabled || t.multiple || q(V);
2859
2865
  }
2860
2866
  function Z() {
@@ -2879,10 +2885,10 @@ const vo = {
2879
2885
  return J(() => t.modelValue, (V) => {
2880
2886
  if (!t.multiple && V)
2881
2887
  if (typeof V == "object")
2882
- a.value = K(V);
2888
+ a.value = F(V);
2883
2889
  else {
2884
2890
  const D = t.options?.find((N) => g(N) === V);
2885
- a.value = D ? K(D) : String(V);
2891
+ a.value = D ? F(D) : String(V);
2886
2892
  }
2887
2893
  else !t.multiple && !V && (a.value = "");
2888
2894
  }, { immediate: !0 }), J(n, (V) => {
@@ -2918,7 +2924,7 @@ const vo = {
2918
2924
  key: g(N),
2919
2925
  removable: "",
2920
2926
  variant: "secondary",
2921
- onRemove: (G) => H(N)
2927
+ onRemove: (G) => K(N)
2922
2928
  }, {
2923
2929
  default: oe(() => [
2924
2930
  ve(Y(f(N)), 1)
@@ -3006,7 +3012,7 @@ const vo = {
3006
3012
  value: g(N),
3007
3013
  label: f(N),
3008
3014
  disabled: N.disabled,
3009
- onChange: (Q) => F(N)
3015
+ onChange: (Q) => H(N)
3010
3016
  }, null, 8, ["model-value", "value", "label", "disabled", "onChange"]))
3011
3017
  ], 42, Aa))), 128)),
3012
3018
  !E.value.length && a.value.length >= V.minQueryLength ? (d(), y("div", Ba, " Ничего не найдено ")) : O("", !0)
@@ -3143,12 +3149,12 @@ function Na(e, l) {
3143
3149
  const { required: f, optional: p } = r(t), k = f + p;
3144
3150
  let R = "", B = 0, q = 0;
3145
3151
  for (; q < k.length; ) {
3146
- const K = k[q];
3147
- if (c(K))
3152
+ const F = k[q];
3153
+ if (c(F))
3148
3154
  if (B < g.length) {
3149
- const H = g[B];
3150
- if (v(H, K))
3151
- R += H, B++;
3155
+ const K = g[B];
3156
+ if (v(K, F))
3157
+ R += K, B++;
3152
3158
  else {
3153
3159
  B++;
3154
3160
  continue;
@@ -3156,7 +3162,7 @@ function Na(e, l) {
3156
3162
  } else
3157
3163
  R += o;
3158
3164
  else
3159
- R += K;
3165
+ R += F;
3160
3166
  q++;
3161
3167
  }
3162
3168
  return R;
@@ -3169,29 +3175,29 @@ function Na(e, l) {
3169
3175
  const { required: f, optional: p } = r(t), k = f + p;
3170
3176
  let R = "", B = 0, q = 0;
3171
3177
  for (; B < g.length && q < k.length; ) {
3172
- const K = g[B], H = k[q];
3173
- if (K === o) {
3178
+ const F = g[B], K = k[q];
3179
+ if (F === o) {
3174
3180
  B++;
3175
3181
  continue;
3176
3182
  }
3177
- c(H) ? v(K, H) ? (R += K, B++, q++) : B++ : (K === H && B++, q++);
3183
+ c(K) ? v(F, K) ? (R += F, B++, q++) : B++ : (F === K && B++, q++);
3178
3184
  }
3179
3185
  for (; B < g.length; ) {
3180
- const K = g[B];
3181
- if (K === o) {
3186
+ const F = g[B];
3187
+ if (F === o) {
3182
3188
  B++;
3183
3189
  continue;
3184
3190
  }
3185
- let H = !1, I = 0;
3191
+ let K = !1, I = 0;
3186
3192
  for (let T = 0; T < k.length; T++)
3187
3193
  if (c(k[T])) {
3188
3194
  if (I === R.length) {
3189
- v(K, k[T]) && (R += K, H = !0);
3195
+ v(F, k[T]) && (R += F, K = !0);
3190
3196
  break;
3191
3197
  }
3192
3198
  I++;
3193
3199
  }
3194
- if (B++, !H)
3200
+ if (B++, !K)
3195
3201
  break;
3196
3202
  }
3197
3203
  return R;
@@ -3216,25 +3222,25 @@ function Na(e, l) {
3216
3222
  if (!g.isTrusted) return;
3217
3223
  const f = g.target, p = f.value, k = h(p), R = m(k);
3218
3224
  a.value = R, e.value = k, fe(() => {
3219
- const { required: B, optional: q } = r(t), K = B + q;
3220
- let H = 0, I = 0;
3221
- for (let T = 0; T < K.length; T++)
3222
- if (c(K[T]))
3225
+ const { required: B, optional: q } = r(t), F = B + q;
3226
+ let K = 0, I = 0;
3227
+ for (let T = 0; T < F.length; T++)
3228
+ if (c(F[T]))
3223
3229
  if (I < k.length)
3224
3230
  I++;
3225
3231
  else {
3226
- H = T;
3232
+ K = T;
3227
3233
  break;
3228
3234
  }
3229
3235
  if (I === k.length && k.length > 0) {
3230
3236
  I = 0;
3231
- for (let T = 0; T < K.length; T++)
3232
- if (c(K[T]) && (I++, I === k.length)) {
3233
- H = T + 1;
3237
+ for (let T = 0; T < F.length; T++)
3238
+ if (c(F[T]) && (I++, I === k.length)) {
3239
+ K = T + 1;
3234
3240
  break;
3235
3241
  }
3236
3242
  }
3237
- H = Math.min(H, R.length), f.setSelectionRange(H, H);
3243
+ K = Math.min(K, R.length), f.setSelectionRange(K, K);
3238
3244
  });
3239
3245
  }
3240
3246
  function _(g) {
@@ -3242,25 +3248,25 @@ function Na(e, l) {
3242
3248
  setTimeout(() => {
3243
3249
  const p = f.value, k = h(p), R = m(k);
3244
3250
  a.value = R, e.value = k;
3245
- const { required: B, optional: q } = r(t), K = B + q;
3246
- let H = 0, I = 0;
3247
- for (let T = 0; T < K.length; T++)
3248
- if (c(K[T]))
3251
+ const { required: B, optional: q } = r(t), F = B + q;
3252
+ let K = 0, I = 0;
3253
+ for (let T = 0; T < F.length; T++)
3254
+ if (c(F[T]))
3249
3255
  if (I < k.length)
3250
3256
  I++;
3251
3257
  else {
3252
- H = T;
3258
+ K = T;
3253
3259
  break;
3254
3260
  }
3255
3261
  if (I === k.length && k.length > 0) {
3256
3262
  I = 0;
3257
- for (let T = 0; T < K.length; T++)
3258
- if (c(K[T]) && (I++, I === k.length)) {
3259
- H = T + 1;
3263
+ for (let T = 0; T < F.length; T++)
3264
+ if (c(F[T]) && (I++, I === k.length)) {
3265
+ K = T + 1;
3260
3266
  break;
3261
3267
  }
3262
3268
  }
3263
- H = Math.min(H, R.length), f.setSelectionRange(H, H);
3269
+ K = Math.min(K, R.length), f.setSelectionRange(K, K);
3264
3270
  }, 0);
3265
3271
  }
3266
3272
  function E(g) {
@@ -3269,8 +3275,8 @@ function Na(e, l) {
3269
3275
  if (g.metaKey || g.ctrlKey)
3270
3276
  return;
3271
3277
  g.preventDefault();
3272
- const T = f.selectionStart || 0, F = f.selectionEnd || 0;
3273
- if (T !== F) {
3278
+ const T = f.selectionStart || 0, H = f.selectionEnd || 0;
3279
+ if (T !== H) {
3274
3280
  a.value = m(""), e.value = "", fe(() => {
3275
3281
  const { required: X, optional: V } = r(t), D = X + V;
3276
3282
  let N = 0;
@@ -3312,8 +3318,8 @@ function Na(e, l) {
3312
3318
  if (g.metaKey || g.ctrlKey)
3313
3319
  return;
3314
3320
  g.preventDefault();
3315
- const T = f.selectionStart || 0, F = f.selectionEnd || 0;
3316
- if (T !== F) {
3321
+ const T = f.selectionStart || 0, H = f.selectionEnd || 0;
3322
+ if (T !== H) {
3317
3323
  a.value = m(""), e.value = "", fe(() => {
3318
3324
  const { required: X, optional: V } = r(t), D = X + V;
3319
3325
  let N = 0;
@@ -3356,21 +3362,21 @@ function Na(e, l) {
3356
3362
  }
3357
3363
  if (g.metaKey || g.ctrlKey || ["ArrowLeft", "ArrowRight", "Tab", "Home", "End", "Escape"].includes(g.key))
3358
3364
  return;
3359
- const { required: k, optional: R } = r(t), B = k + R, q = h(a.value), K = B.split("").filter((T) => c(T)).length;
3360
- if (q.length >= K) {
3365
+ const { required: k, optional: R } = r(t), B = k + R, q = h(a.value), F = B.split("").filter((T) => c(T)).length;
3366
+ if (q.length >= F) {
3361
3367
  g.preventDefault();
3362
3368
  return;
3363
3369
  }
3364
- let H = -1, I = 0;
3370
+ let K = -1, I = 0;
3365
3371
  for (let T = 0; T < B.length; T++)
3366
3372
  if (c(B[T])) {
3367
3373
  if (I === q.length) {
3368
- H = T;
3374
+ K = T;
3369
3375
  break;
3370
3376
  }
3371
3377
  I++;
3372
3378
  }
3373
- H >= 0 && !v(g.key, B[H]) && g.preventDefault();
3379
+ K >= 0 && !v(g.key, B[K]) && g.preventDefault();
3374
3380
  }
3375
3381
  function A(g) {
3376
3382
  s.value = !0, fe(() => {
@@ -3383,10 +3389,10 @@ function Na(e, l) {
3383
3389
  }
3384
3390
  if (Ye(e)) {
3385
3391
  let q = 0;
3386
- for (let K = 0; K < R.length; K++)
3387
- if (c(R[K])) {
3392
+ for (let F = 0; F < R.length; F++)
3393
+ if (c(R[F])) {
3388
3394
  if (q >= Ye(e).length) {
3389
- B = K;
3395
+ B = F;
3390
3396
  break;
3391
3397
  }
3392
3398
  q++;
@@ -4445,14 +4451,14 @@ const Ps = /* @__PURE__ */ W({
4445
4451
  [/!/g, String((f.valueOf() + 621355968e9) * 1e4)]
4446
4452
  // Windows ticks
4447
4453
  ], q = [];
4448
- let K = 0;
4449
- return k = k.replace(/'([^']*)'/g, (H, I) => {
4450
- const T = `__LITERAL_${K}__`;
4451
- return q[K] = I, K++, T;
4452
- }), k = k.replace(/''/g, "'"), B.forEach(([H, I]) => {
4453
- k = k.replace(H, I);
4454
- }), q.forEach((H, I) => {
4455
- k = k.replace(`__LITERAL_${I}__`, H);
4454
+ let F = 0;
4455
+ return k = k.replace(/'([^']*)'/g, (K, I) => {
4456
+ const T = `__LITERAL_${F}__`;
4457
+ return q[F] = I, F++, T;
4458
+ }), k = k.replace(/''/g, "'"), B.forEach(([K, I]) => {
4459
+ k = k.replace(K, I);
4460
+ }), q.forEach((K, I) => {
4461
+ k = k.replace(`__LITERAL_${I}__`, K);
4456
4462
  }), k;
4457
4463
  }
4458
4464
  function o(f, p) {
@@ -5865,10 +5871,10 @@ const _i = {
5865
5871
  const A = r(u.value);
5866
5872
  c.value = A + 10;
5867
5873
  const x = u.value.getBoundingClientRect(), g = window.innerHeight, f = window.innerWidth, p = g - x.bottom, k = x.top, B = p < 200 && k > p, q = Math.max(100, x.width);
5868
- let K = x.left;
5869
- K + q > f && (K = Math.max(0, f - q - 10)), s.value = {
5874
+ let F = x.left;
5875
+ F + q > f && (F = Math.max(0, f - q - 10)), s.value = {
5870
5876
  position: "fixed",
5871
- left: `${K}px`,
5877
+ left: `${F}px`,
5872
5878
  width: `${q}px`,
5873
5879
  maxHeight: "200px"
5874
5880
  }, B ? s.value.bottom = `${g - x.top + 4}px` : s.value.top = `${x.bottom + 4}px`;
@@ -6045,12 +6051,12 @@ const _i = {
6045
6051
  !u.value || !n.value || fe(() => {
6046
6052
  const x = c(u.value);
6047
6053
  v.value = x + 10;
6048
- const g = u.value.getBoundingClientRect(), f = window.innerHeight, p = window.innerWidth, k = f - g.bottom, R = g.top, q = k < 400 && R > k, K = Math.max(300, g.width);
6049
- let H = g.left;
6050
- H + K > p && (H = Math.max(0, p - K - 10)), s.value = {
6054
+ const g = u.value.getBoundingClientRect(), f = window.innerHeight, p = window.innerWidth, k = f - g.bottom, R = g.top, q = k < 400 && R > k, F = Math.max(300, g.width);
6055
+ let K = g.left;
6056
+ K + F > p && (K = Math.max(0, p - F - 10)), s.value = {
6051
6057
  position: "fixed",
6052
- left: `${H}px`,
6053
- width: `${K}px`,
6058
+ left: `${K}px`,
6059
+ width: `${F}px`,
6054
6060
  maxHeight: "400px"
6055
6061
  }, q ? s.value.bottom = `${f - g.top + 4}px` : s.value.top = `${g.bottom + 4}px`;
6056
6062
  });