@dskripchenko/ui 0.2.0 → 0.4.0

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.
Files changed (31) hide show
  1. package/dist/components/Affix/UidAffix.vue.d.ts +33 -0
  2. package/dist/components/Affix/index.d.ts +2 -0
  3. package/dist/components/Anchor/UidAnchor.vue.d.ts +30 -0
  4. package/dist/components/Anchor/index.d.ts +2 -0
  5. package/dist/components/BackTop/UidBackTop.vue.d.ts +34 -0
  6. package/dist/components/BackTop/index.d.ts +2 -0
  7. package/dist/components/DescriptionList/UidDescriptionItem.vue.d.ts +34 -0
  8. package/dist/components/DescriptionList/UidDescriptionList.vue.d.ts +36 -0
  9. package/dist/components/DescriptionList/context.d.ts +6 -0
  10. package/dist/components/DescriptionList/index.d.ts +4 -0
  11. package/dist/components/Mention/UidMention.vue.d.ts +34 -0
  12. package/dist/components/Mention/index.d.ts +2 -0
  13. package/dist/components/Rating/UidRating.vue.d.ts +34 -0
  14. package/dist/components/Rating/index.d.ts +2 -0
  15. package/dist/components/Splitter/UidSplitter.vue.d.ts +50 -0
  16. package/dist/components/Splitter/index.d.ts +2 -0
  17. package/dist/components/Stat/UidStat.vue.d.ts +48 -0
  18. package/dist/components/Stat/index.d.ts +2 -0
  19. package/dist/components/Tour/UidTour.vue.d.ts +44 -0
  20. package/dist/components/Tour/index.d.ts +2 -0
  21. package/dist/components/TreeSelect/UidTreeSelect.vue.d.ts +42 -0
  22. package/dist/components/TreeSelect/index.d.ts +2 -0
  23. package/dist/components/Watermark/UidWatermark.vue.d.ts +34 -0
  24. package/dist/components/Watermark/index.d.ts +2 -0
  25. package/dist/index.cjs +2 -2
  26. package/dist/index.d.ts +24 -0
  27. package/dist/index.mjs +1758 -670
  28. package/dist/patterns/Result/UidResult.vue.d.ts +37 -0
  29. package/dist/patterns/Result/index.d.ts +2 -0
  30. package/dist/styles/index.css +1 -1
  31. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,19 +1,19 @@
1
1
  import { t as e } from "./UidIcon-5947kXOj.js";
2
- import { Fragment as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, readonly as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, toDisplayString as k, toValue as A, unref as j, useId as M, useModel as N, useSlots as P, vModelDynamic as F, vModelText as I, watch as L, withCtx as R, withDirectives as z, withModifiers as B } from "vue";
3
- import { AlertCircle as V, AlertTriangle as H, ArrowDown as U, ArrowLeft as W, ArrowUp as G, ArrowUpDown as ee, Calendar as K, Check as q, CheckCircle2 as J, ChevronDown as te, ChevronLeft as Y, ChevronRight as X, Clock as ne, Copy as re, FileText as ie, FolderOpen as ae, Info as oe, Minus as se, Plus as ce, Search as le, ServerCrash as ue, Upload as de, WifiOff as fe, X as Z } from "lucide-vue-next";
2
+ import { Fragment as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, readonly as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, toDisplayString as k, toValue as A, unref as j, useId as M, useModel as N, useSlots as P, vModelDynamic as F, vModelText as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withModifiers as V } from "vue";
3
+ import { AlertCircle as H, AlertTriangle as U, ArrowDown as W, ArrowLeft as G, ArrowUp as K, ArrowUpDown as ee, Calendar as te, Check as q, CheckCircle2 as J, ChevronDown as Y, ChevronLeft as X, ChevronRight as ne, Clock as re, Copy as ie, FileText as ae, FolderOpen as oe, Info as se, Minus as ce, Plus as le, Search as ue, ServerCrash as de, Star as fe, Upload as pe, WifiOff as me, X as Z, XCircle as he } from "lucide-vue-next";
4
4
  //#region src/components/Button/UidButton.vue?vue&type=script&setup=true&lang.ts
5
- var pe = [
5
+ var ge = [
6
6
  "type",
7
7
  "disabled",
8
8
  "aria-disabled",
9
9
  "data-loading"
10
- ], me = {
10
+ ], _e = {
11
11
  key: 0,
12
12
  class: "uid-button__prepend"
13
- }, he = {
13
+ }, ve = {
14
14
  key: 1,
15
15
  class: "uid-button__append"
16
- }, ge = /* @__PURE__ */ f({
16
+ }, ye = /* @__PURE__ */ f({
17
17
  __name: "UidButton",
18
18
  props: {
19
19
  variant: { default: "primary" },
@@ -42,12 +42,12 @@ var pe = [
42
42
  "data-loading": e.loading ? "true" : void 0,
43
43
  onClick: i
44
44
  }, [
45
- t.$slots.prepend ? (x(), c("span", me, [E(t.$slots, "prepend")])) : s("", !0),
45
+ t.$slots.prepend ? (x(), c("span", _e, [E(t.$slots, "prepend")])) : s("", !0),
46
46
  E(t.$slots, "default"),
47
- t.$slots.append ? (x(), c("span", he, [E(t.$slots, "append")])) : s("", !0)
48
- ], 10, pe));
47
+ t.$slots.append ? (x(), c("span", ve, [E(t.$slots, "append")])) : s("", !0)
48
+ ], 10, ge));
49
49
  }
50
- }), _e = {
50
+ }), be = {
51
51
  required: ({ label: e }) => `Поле «${e ?? "значение"}» обязательно`,
52
52
  email: () => "Введите корректный email",
53
53
  url: () => "Введите корректный URL",
@@ -62,59 +62,59 @@ var pe = [
62
62
  same_as: () => "Значения не совпадают",
63
63
  required_if: ({ label: e }) => `Поле «${e ?? "значение"}» обязательно`,
64
64
  required_unless: ({ label: e }) => `Поле «${e ?? "значение"}» обязательно`
65
- }, ve = {};
66
- function ye(e) {
67
- ve = {
68
- ...ve,
65
+ }, xe = {};
66
+ function Se(e) {
67
+ xe = {
68
+ ...xe,
69
69
  ...e
70
70
  };
71
71
  }
72
72
  function Q(e, t) {
73
- let n = ve[e];
74
- return n ? typeof n == "function" ? n(t) : n : _e[e]?.(t) ?? `Ошибка валидации: ${e}`;
73
+ let n = xe[e];
74
+ return n ? typeof n == "function" ? n(t) : n : be[e]?.(t) ?? `Ошибка валидации: ${e}`;
75
75
  }
76
76
  //#endregion
77
77
  //#region src/utils/validation/rules.ts
78
- var be = "__uid_nullable__";
78
+ var Ce = "__uid_nullable__";
79
79
  function $(e) {
80
80
  return e == null || String(e).trim() === "";
81
81
  }
82
- function xe(e, t) {
82
+ function we(e, t) {
83
83
  return t ? {
84
84
  ...e,
85
85
  params: t
86
86
  } : e;
87
87
  }
88
- var Se = (e) => (t, n) => !$(t) || (e ?? Q("required", n)), Ce = () => (e) => $(e) ? be : !0, we = (e) => (t, n) => $(t) || /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(String(t)) || (e ?? Q("email", n)), Te = (e) => (t, n) => {
88
+ var Te = (e) => (t, n) => !$(t) || (e ?? Q("required", n)), Ee = () => (e) => $(e) ? Ce : !0, De = (e) => (t, n) => $(t) || /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(String(t)) || (e ?? Q("email", n)), Oe = (e) => (t, n) => {
89
89
  if ($(t)) return !0;
90
90
  try {
91
91
  return new URL(String(t)), !0;
92
92
  } catch {
93
93
  return e ?? Q("url", n);
94
94
  }
95
- }, Ee = (e) => (t, n) => $(t) || !isNaN(Number(t)) || (e ?? Q("numeric", n)), De = (e) => (t, n) => $(t) || Number.isInteger(Number(t)) || (e ?? Q("integer", n)), Oe = (e, t) => (n, r) => $(n) || String(n).length >= e || (t ?? Q("min", xe(r, [String(e)]))), ke = (e, t) => (n, r) => $(n) || String(n).length <= e || (t ?? Q("max", xe(r, [String(e)]))), Ae = (e, t) => (n, r) => $(n) || Number(n) >= e || (t ?? Q("min_value", xe(r, [String(e)]))), je = (e, t) => (n, r) => $(n) || Number(n) <= e || (t ?? Q("max_value", xe(r, [String(e)]))), Me = (e, t) => (n, r) => $(n) ? !0 : (typeof e == "string" ? new RegExp(e) : e).test(String(n)) || (t ?? Q("regex", r)), Ne = (e, t) => (n, r) => $(n) || e.includes(String(n)) || (t ?? Q("in", r)), Pe = (e, t) => (n, r) => r.form ? n === r.form[e] || (t ?? Q("same_as", r)) : !0, Fe = (e, t, n) => (r, i) => !i.form || i.form[e] !== t ? !0 : !$(r) || (n ?? Q("required_if", i)), Ie = (e, t, n) => (r, i) => !i.form || i.form[e] === t ? !0 : !$(r) || (n ?? Q("required_unless", i)), Le = {
96
- required: () => Se(),
97
- nullable: () => Ce(),
98
- email: () => we(),
99
- url: () => Te(),
100
- numeric: () => Ee(),
101
- integer: () => De(),
102
- min: ([e]) => Oe(Number(e)),
103
- max: ([e]) => ke(Number(e)),
104
- min_value: ([e]) => Ae(Number(e)),
105
- max_value: ([e]) => je(Number(e)),
106
- regex: ([e]) => Me(e),
107
- in: (e) => Ne(e),
108
- same_as: ([e]) => Pe(e)
95
+ }, ke = (e) => (t, n) => $(t) || !isNaN(Number(t)) || (e ?? Q("numeric", n)), Ae = (e) => (t, n) => $(t) || Number.isInteger(Number(t)) || (e ?? Q("integer", n)), je = (e, t) => (n, r) => $(n) || String(n).length >= e || (t ?? Q("min", we(r, [String(e)]))), Me = (e, t) => (n, r) => $(n) || String(n).length <= e || (t ?? Q("max", we(r, [String(e)]))), Ne = (e, t) => (n, r) => $(n) || Number(n) >= e || (t ?? Q("min_value", we(r, [String(e)]))), Pe = (e, t) => (n, r) => $(n) || Number(n) <= e || (t ?? Q("max_value", we(r, [String(e)]))), Fe = (e, t) => (n, r) => $(n) ? !0 : (typeof e == "string" ? new RegExp(e) : e).test(String(n)) || (t ?? Q("regex", r)), Ie = (e, t) => (n, r) => $(n) || e.includes(String(n)) || (t ?? Q("in", r)), Le = (e, t) => (n, r) => r.form ? n === r.form[e] || (t ?? Q("same_as", r)) : !0, Re = (e, t, n) => (r, i) => !i.form || i.form[e] !== t ? !0 : !$(r) || (n ?? Q("required_if", i)), ze = (e, t, n) => (r, i) => !i.form || i.form[e] === t ? !0 : !$(r) || (n ?? Q("required_unless", i)), Be = {
96
+ required: () => Te(),
97
+ nullable: () => Ee(),
98
+ email: () => De(),
99
+ url: () => Oe(),
100
+ numeric: () => ke(),
101
+ integer: () => Ae(),
102
+ min: ([e]) => je(Number(e)),
103
+ max: ([e]) => Me(Number(e)),
104
+ min_value: ([e]) => Ne(Number(e)),
105
+ max_value: ([e]) => Pe(Number(e)),
106
+ regex: ([e]) => Fe(e),
107
+ in: (e) => Ie(e),
108
+ same_as: ([e]) => Le(e)
109
109
  };
110
- function Re(e) {
110
+ function Ve(e) {
111
111
  return e ? (Array.isArray(e) ? e : [e]).flatMap((e) => typeof e == "function" ? [e] : e.split("|").map((e) => {
112
- let t = e.indexOf(":"), n = t === -1 ? e.trim() : e.slice(0, t).trim(), r = t === -1 ? "" : e.slice(t + 1), i = r ? r.split(",") : [], a = Le[n];
112
+ let t = e.indexOf(":"), n = t === -1 ? e.trim() : e.slice(0, t).trim(), r = t === -1 ? "" : e.slice(t + 1), i = r ? r.split(",") : [], a = Be[n];
113
113
  if (!a) throw Error(`Unknown validation rule: "${n}"`);
114
114
  return a(i);
115
115
  })) : [];
116
116
  }
117
- function ze(e, t, n) {
117
+ function He(e, t, n) {
118
118
  for (let r of t) {
119
119
  let t = r(e, n);
120
120
  if (t === "__uid_nullable__") return "";
@@ -124,15 +124,15 @@ function ze(e, t, n) {
124
124
  }
125
125
  //#endregion
126
126
  //#region src/composables/useField.ts
127
- function Be(e, t, n) {
127
+ function Ue(e, t, n) {
128
128
  let r = w(""), i = w(!1);
129
129
  function a() {
130
- let i = Re(t && "value" in t ? t.value : t), a = {
130
+ let i = Ve(t && "value" in t ? t.value : t), a = {
131
131
  field: n?.name ?? "",
132
132
  label: n?.label,
133
133
  form: n?.form?.value
134
134
  };
135
- return r.value = ze(e.value, i, a), !r.value;
135
+ return r.value = He(e.value, i, a), !r.value;
136
136
  }
137
137
  function o() {
138
138
  i.value = !0, a();
@@ -140,7 +140,7 @@ function Be(e, t, n) {
140
140
  function s() {
141
141
  r.value = "", i.value = !1;
142
142
  }
143
- return L(e, () => {
143
+ return R(e, () => {
144
144
  i.value && a();
145
145
  }), {
146
146
  error: r,
@@ -152,14 +152,14 @@ function Be(e, t, n) {
152
152
  }
153
153
  //#endregion
154
154
  //#region src/components/Input/UidInput.vue?vue&type=script&setup=true&lang.ts
155
- var Ve = ["for"], He = {
155
+ var We = ["for"], Ge = {
156
156
  key: 0,
157
157
  class: "uid-input-field__required",
158
158
  "aria-hidden": "true"
159
- }, Ue = { class: "uid-input-field__control" }, We = {
159
+ }, Ke = { class: "uid-input-field__control" }, qe = {
160
160
  key: 0,
161
161
  class: "uid-input-field__prepend"
162
- }, Ge = [
162
+ }, Je = [
163
163
  "id",
164
164
  "type",
165
165
  "name",
@@ -170,10 +170,10 @@ var Ve = ["for"], He = {
170
170
  "autocomplete",
171
171
  "aria-invalid",
172
172
  "aria-describedby"
173
- ], Ke = {
173
+ ], Ye = {
174
174
  key: 1,
175
175
  class: "uid-input-field__append"
176
- }, qe = ["id"], Je = /* @__PURE__ */ f({
176
+ }, Xe = ["id"], Ze = /* @__PURE__ */ f({
177
177
  __name: "UidInput",
178
178
  props: /* @__PURE__ */ m({
179
179
  type: { default: "text" },
@@ -204,7 +204,7 @@ var Ve = ["for"], He = {
204
204
  }),
205
205
  emits: /* @__PURE__ */ m(["blur", "focus"], ["update:modelValue"]),
206
206
  setup(e, { expose: t, emit: n }) {
207
- let r = e, i = n, o = N(e, "modelValue"), d = r.id ?? M(), { error: f, validate: p, onBlur: m } = Be(o, a(() => r.rules), {
207
+ let r = e, i = n, o = N(e, "modelValue"), d = r.id ?? M(), { error: f, validate: p, onBlur: m } = Ue(o, a(() => r.rules), {
208
208
  name: r.name,
209
209
  label: r.label
210
210
  }), h = a(() => r.error || f.value), g = a(() => !!h.value), v = a(() => h.value || r.hint);
@@ -221,10 +221,10 @@ var Ve = ["for"], He = {
221
221
  key: 0,
222
222
  for: j(d),
223
223
  class: "uid-input-field__label"
224
- }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", He, "*")) : s("", !0)], 8, Ve)) : s("", !0),
225
- l("div", Ue, [
226
- t.$slots.prepend ? (x(), c("span", We, [E(t.$slots, "prepend")])) : s("", !0),
227
- z(l("input", {
224
+ }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", Ge, "*")) : s("", !0)], 8, We)) : s("", !0),
225
+ l("div", Ke, [
226
+ t.$slots.prepend ? (x(), c("span", qe, [E(t.$slots, "prepend")])) : s("", !0),
227
+ B(l("input", {
228
228
  id: j(d),
229
229
  "onUpdate:modelValue": n[0] ||= (e) => o.value = e,
230
230
  class: "uid-input-field__input",
@@ -239,21 +239,21 @@ var Ve = ["for"], He = {
239
239
  "aria-describedby": v.value ? `${j(d)}-hint` : void 0,
240
240
  onBlur: y,
241
241
  onFocus: n[1] ||= (e) => i("focus", e)
242
- }, null, 40, Ge), [[F, o.value]]),
243
- t.$slots.append ? (x(), c("span", Ke, [E(t.$slots, "append")])) : s("", !0)
242
+ }, null, 40, Je), [[F, o.value]]),
243
+ t.$slots.append ? (x(), c("span", Ye, [E(t.$slots, "append")])) : s("", !0)
244
244
  ]),
245
245
  v.value ? (x(), c("p", {
246
246
  key: 1,
247
247
  id: `${j(d)}-hint`,
248
248
  class: _(["uid-input-field__hint", g.value && "uid-input-field__hint--error"])
249
- }, k(v.value), 11, qe)) : s("", !0)
249
+ }, k(v.value), 11, Xe)) : s("", !0)
250
250
  ], 2));
251
251
  }
252
- }), Ye = ["for"], Xe = {
252
+ }), Qe = ["for"], $e = {
253
253
  key: 0,
254
254
  class: "uid-textarea-field__required",
255
255
  "aria-hidden": "true"
256
- }, Ze = [
256
+ }, et = [
257
257
  "id",
258
258
  "name",
259
259
  "placeholder",
@@ -263,7 +263,7 @@ var Ve = ["for"], He = {
263
263
  "rows",
264
264
  "aria-invalid",
265
265
  "aria-describedby"
266
- ], Qe = ["id"], $e = /* @__PURE__ */ f({
266
+ ], tt = ["id"], nt = /* @__PURE__ */ f({
267
267
  __name: "UidTextarea",
268
268
  props: /* @__PURE__ */ m({
269
269
  placeholder: { default: void 0 },
@@ -306,7 +306,7 @@ var Ve = ["for"], He = {
306
306
  }),
307
307
  emits: /* @__PURE__ */ m(["blur", "focus"], ["update:modelValue"]),
308
308
  setup(e, { expose: t, emit: n }) {
309
- let r = e, i = n, o = N(e, "modelValue"), d = w(null), f = M(), p = r.id ?? f, { error: m, validate: h, onBlur: b } = Be(o, a(() => r.rules), {
309
+ let r = e, i = n, o = N(e, "modelValue"), d = w(null), f = M(), p = r.id ?? f, { error: m, validate: h, onBlur: b } = Ue(o, a(() => r.rules), {
310
310
  name: r.name,
311
311
  label: r.label
312
312
  }), S = a(() => r.error || m.value), C = a(() => !!S.value), T = a(() => S.value || r.hint);
@@ -324,7 +324,7 @@ var Ve = ["for"], He = {
324
324
  }
325
325
  y(() => {
326
326
  r.autoGrow && E();
327
- }), L(o, async () => {
327
+ }), R(o, async () => {
328
328
  r.autoGrow && (await g(), E());
329
329
  });
330
330
  function D(e) {
@@ -340,8 +340,8 @@ var Ve = ["for"], He = {
340
340
  key: 0,
341
341
  for: j(p),
342
342
  class: "uid-textarea-field__label"
343
- }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", Xe, "*")) : s("", !0)], 8, Ye)) : s("", !0),
344
- z(l("textarea", {
343
+ }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", $e, "*")) : s("", !0)], 8, Qe)) : s("", !0),
344
+ B(l("textarea", {
345
345
  id: j(p),
346
346
  ref_key: "textareaRef",
347
347
  ref: d,
@@ -361,15 +361,15 @@ var Ve = ["for"], He = {
361
361
  } : { resize: e.resize }),
362
362
  onBlur: D,
363
363
  onFocus: n[1] ||= (e) => i("focus", e)
364
- }, null, 44, Ze), [[I, o.value]]),
364
+ }, null, 44, et), [[I, o.value]]),
365
365
  T.value ? (x(), c("p", {
366
366
  key: 1,
367
367
  id: `${j(p)}-hint`,
368
368
  class: _(["uid-textarea-field__hint", C.value && "uid-textarea-field__hint--error"])
369
- }, k(T.value), 11, Qe)) : s("", !0)
369
+ }, k(T.value), 11, tt)) : s("", !0)
370
370
  ], 2));
371
371
  }
372
- }), et = { class: "uid-checkbox__label" }, tt = [
372
+ }), rt = { class: "uid-checkbox__label" }, it = [
373
373
  "id",
374
374
  "name",
375
375
  "checked",
@@ -377,14 +377,14 @@ var Ve = ["for"], He = {
377
377
  "required",
378
378
  "aria-describedby",
379
379
  "aria-invalid"
380
- ], nt = {
380
+ ], at = {
381
381
  key: 0,
382
382
  class: "uid-checkbox__text"
383
- }, rt = {
383
+ }, ot = {
384
384
  key: 0,
385
385
  class: "uid-checkbox__required",
386
386
  "aria-hidden": "true"
387
- }, it = /* @__PURE__ */ f({
387
+ }, st = /* @__PURE__ */ f({
388
388
  __name: "UidCheckbox",
389
389
  props: /* @__PURE__ */ m({
390
390
  label: { default: void 0 },
@@ -417,12 +417,12 @@ var Ve = ["for"], He = {
417
417
  function g(e) {
418
418
  o.value && (o.value.indeterminate = e);
419
419
  }
420
- y(() => g(n.indeterminate)), L(() => n.indeterminate, g);
420
+ y(() => g(n.indeterminate)), R(() => n.indeterminate, g);
421
421
  function v(e) {
422
422
  let t = e.target.checked;
423
423
  i.value = t, r("change", t);
424
424
  }
425
- return (t, n) => (x(), c("div", { class: _(["uid-checkbox", [m.value && "uid-checkbox--error", e.disabled && "uid-checkbox--disabled"]]) }, [l("label", et, [
425
+ return (t, n) => (x(), c("div", { class: _(["uid-checkbox", [m.value && "uid-checkbox--error", e.disabled && "uid-checkbox--disabled"]]) }, [l("label", rt, [
426
426
  l("input", {
427
427
  id: j(f),
428
428
  ref_key: "inputRef",
@@ -436,27 +436,27 @@ var Ve = ["for"], He = {
436
436
  "aria-describedby": h.value ? p : void 0,
437
437
  "aria-invalid": m.value ? "true" : void 0,
438
438
  onChange: v
439
- }, null, 40, tt),
439
+ }, null, 40, it),
440
440
  n[0] ||= l("span", {
441
441
  class: "uid-checkbox__box",
442
442
  "aria-hidden": "true"
443
443
  }, null, -1),
444
- e.label ? (x(), c("span", nt, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", rt, "*")) : s("", !0)])) : s("", !0)
444
+ e.label ? (x(), c("span", at, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", ot, "*")) : s("", !0)])) : s("", !0)
445
445
  ]), h.value ? (x(), c("p", {
446
446
  key: 0,
447
447
  id: p,
448
448
  class: _(["uid-checkbox__hint", m.value && "uid-checkbox__hint--error"])
449
449
  }, k(h.value), 3)) : s("", !0)], 2));
450
450
  }
451
- }), at = Symbol("uid-radio-group"), ot = [
451
+ }), ct = Symbol("uid-radio-group"), lt = [
452
452
  "id",
453
453
  "name",
454
454
  "checked",
455
455
  "disabled"
456
- ], st = {
456
+ ], ut = {
457
457
  key: 0,
458
458
  class: "uid-radio__text"
459
- }, ct = /* @__PURE__ */ f({
459
+ }, dt = /* @__PURE__ */ f({
460
460
  __name: "UidRadio",
461
461
  props: /* @__PURE__ */ m({
462
462
  value: { type: [
@@ -483,7 +483,7 @@ var Ve = ["for"], He = {
483
483
  }),
484
484
  emits: ["update:modelValue"],
485
485
  setup(e) {
486
- let t = e, n = N(e, "modelValue"), r = p(at, null), i = M(), o = t.id ?? i, u = a(() => r ? r.modelValue.value === t.value : n.value === t.value), d = a(() => r?.name ?? t.name ?? ""), f = a(() => (r?.disabled.value ?? !1) || (t.disabled ?? !1));
486
+ let t = e, n = N(e, "modelValue"), r = p(ct, null), i = M(), o = t.id ?? i, u = a(() => r ? r.modelValue.value === t.value : n.value === t.value), d = a(() => r?.name ?? t.name ?? ""), f = a(() => (r?.disabled.value ?? !1) || (t.disabled ?? !1));
487
487
  function m() {
488
488
  r ? r.update(t.value) : n.value = t.value;
489
489
  }
@@ -496,25 +496,25 @@ var Ve = ["for"], He = {
496
496
  checked: u.value,
497
497
  disabled: f.value,
498
498
  onChange: m
499
- }, null, 40, ot),
499
+ }, null, 40, lt),
500
500
  n[0] ||= l("span", {
501
501
  class: "uid-radio__circle",
502
502
  "aria-hidden": "true"
503
503
  }, null, -1),
504
- e.label ? (x(), c("span", st, k(e.label), 1)) : s("", !0)
504
+ e.label ? (x(), c("span", ut, k(e.label), 1)) : s("", !0)
505
505
  ], 2));
506
506
  }
507
- }), lt = [
507
+ }), ft = [
508
508
  "aria-labelledby",
509
509
  "aria-describedby",
510
510
  "aria-required",
511
511
  "aria-invalid",
512
512
  "aria-disabled"
513
- ], ut = ["id"], dt = {
513
+ ], pt = ["id"], mt = {
514
514
  key: 0,
515
515
  class: "uid-radio-group__required",
516
516
  "aria-hidden": "true"
517
- }, ft = { class: "uid-radio-group__options" }, pt = ["id"], mt = /* @__PURE__ */ f({
517
+ }, ht = { class: "uid-radio-group__options" }, gt = ["id"], _t = /* @__PURE__ */ f({
518
518
  __name: "UidRadioGroup",
519
519
  props: /* @__PURE__ */ m({
520
520
  name: { default: void 0 },
@@ -542,7 +542,7 @@ var Ve = ["for"], He = {
542
542
  emits: ["update:modelValue"],
543
543
  setup(e) {
544
544
  let t = e, n = N(e, "modelValue"), r = M(), i = t.name ?? r, o = M(), d = M(), f = a(() => !!t.error), p = a(() => t.error || t.hint);
545
- return S(at, {
545
+ return S(ct, {
546
546
  modelValue: n,
547
547
  update: (e) => {
548
548
  n.value = e;
@@ -566,16 +566,16 @@ var Ve = ["for"], He = {
566
566
  key: 0,
567
567
  id: j(o),
568
568
  class: "uid-radio-group__legend"
569
- }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", dt, "*")) : s("", !0)], 8, ut)) : s("", !0),
570
- l("div", ft, [E(t.$slots, "default")]),
569
+ }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", mt, "*")) : s("", !0)], 8, pt)) : s("", !0),
570
+ l("div", ht, [E(t.$slots, "default")]),
571
571
  p.value ? (x(), c("p", {
572
572
  key: 1,
573
573
  id: j(d),
574
574
  class: _(["uid-radio-group__hint", f.value && "uid-radio-group__hint--error"])
575
- }, k(p.value), 11, pt)) : s("", !0)
576
- ], 10, lt));
575
+ }, k(p.value), 11, gt)) : s("", !0)
576
+ ], 10, ft));
577
577
  }
578
- }), ht = { class: "uid-switch__label" }, gt = [
578
+ }), vt = { class: "uid-switch__label" }, yt = [
579
579
  "id",
580
580
  "name",
581
581
  "checked",
@@ -583,14 +583,14 @@ var Ve = ["for"], He = {
583
583
  "required",
584
584
  "aria-describedby",
585
585
  "aria-invalid"
586
- ], _t = {
586
+ ], bt = {
587
587
  key: 0,
588
588
  class: "uid-switch__text"
589
- }, vt = {
589
+ }, xt = {
590
590
  key: 0,
591
591
  class: "uid-switch__required",
592
592
  "aria-hidden": "true"
593
- }, yt = /* @__PURE__ */ f({
593
+ }, St = /* @__PURE__ */ f({
594
594
  __name: "UidSwitch",
595
595
  props: /* @__PURE__ */ m({
596
596
  label: { default: void 0 },
@@ -625,7 +625,7 @@ var Ve = ["for"], He = {
625
625
  `uid-switch--${e.size}`,
626
626
  p.value && "uid-switch--error",
627
627
  e.disabled && "uid-switch--disabled"
628
- ]]) }, [l("label", ht, [
628
+ ]]) }, [l("label", vt, [
629
629
  l("input", {
630
630
  id: j(d),
631
631
  type: "checkbox",
@@ -638,23 +638,23 @@ var Ve = ["for"], He = {
638
638
  "aria-describedby": m.value ? f : void 0,
639
639
  "aria-invalid": p.value ? "true" : void 0,
640
640
  onChange: h
641
- }, null, 40, gt),
641
+ }, null, 40, yt),
642
642
  n[0] ||= l("span", {
643
643
  class: "uid-switch__track",
644
644
  "aria-hidden": "true"
645
645
  }, [l("span", { class: "uid-switch__thumb" })], -1),
646
- e.label ? (x(), c("span", _t, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", vt, "*")) : s("", !0)])) : s("", !0)
646
+ e.label ? (x(), c("span", bt, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", xt, "*")) : s("", !0)])) : s("", !0)
647
647
  ]), m.value ? (x(), c("p", {
648
648
  key: 0,
649
649
  id: f,
650
650
  class: _(["uid-switch__hint", p.value && "uid-switch__hint--error"])
651
651
  }, k(m.value), 3)) : s("", !0)], 2));
652
652
  }
653
- }), bt = ["for"], xt = {
653
+ }), Ct = ["for"], wt = {
654
654
  key: 0,
655
655
  class: "uid-label__required",
656
656
  "aria-hidden": "true"
657
- }, St = /* @__PURE__ */ f({
657
+ }, Tt = /* @__PURE__ */ f({
658
658
  __name: "UidLabel",
659
659
  props: {
660
660
  for: { default: void 0 },
@@ -671,13 +671,13 @@ var Ve = ["for"], He = {
671
671
  return (t, n) => (x(), c("label", {
672
672
  class: _(["uid-label", e.disabled && "uid-label--disabled"]),
673
673
  for: t.$props.for
674
- }, [E(t.$slots, "default"), e.required ? (x(), c("span", xt, "*")) : s("", !0)], 10, bt));
674
+ }, [E(t.$slots, "default"), e.required ? (x(), c("span", wt, "*")) : s("", !0)], 10, Ct));
675
675
  }
676
- }), Ct = ["for"], wt = {
676
+ }), Et = ["for"], Dt = {
677
677
  key: 0,
678
678
  class: "uid-form-field__required",
679
679
  "aria-hidden": "true"
680
- }, Tt = { class: "uid-form-field__content" }, Et = ["id"], Dt = /* @__PURE__ */ f({
680
+ }, Ot = { class: "uid-form-field__content" }, kt = ["id"], At = /* @__PURE__ */ f({
681
681
  __name: "UidFormField",
682
682
  props: {
683
683
  label: { default: void 0 },
@@ -700,16 +700,16 @@ var Ve = ["for"], He = {
700
700
  key: 0,
701
701
  class: "uid-form-field__label",
702
702
  for: e.labelFor
703
- }, [E(t.$slots, "label", {}, () => [u(k(e.label), 1)]), e.required ? (x(), c("span", wt, "*")) : s("", !0)], 8, Ct)) : s("", !0),
704
- l("div", Tt, [E(t.$slots, "default")]),
703
+ }, [E(t.$slots, "label", {}, () => [u(k(e.label), 1)]), e.required ? (x(), c("span", Dt, "*")) : s("", !0)], 8, Et)) : s("", !0),
704
+ l("div", Ot, [E(t.$slots, "default")]),
705
705
  r.value ? (x(), c("p", {
706
706
  key: 1,
707
707
  id: j(n),
708
708
  class: _(["uid-form-field__hint", o.value && "uid-form-field__hint--error"])
709
- }, k(i.value), 11, Et)) : s("", !0)
709
+ }, k(i.value), 11, kt)) : s("", !0)
710
710
  ], 2));
711
711
  }
712
- }), Ot = ["aria-label"], kt = /* @__PURE__ */ f({
712
+ }), jt = ["aria-label"], Mt = /* @__PURE__ */ f({
713
713
  __name: "UidSpinner",
714
714
  props: {
715
715
  size: { default: "md" },
@@ -720,13 +720,13 @@ var Ve = ["for"], He = {
720
720
  class: _(["uid-spinner", `uid-spinner--${e.size}`]),
721
721
  role: "status",
722
722
  "aria-label": e.label
723
- }, null, 10, Ot));
723
+ }, null, 10, jt));
724
724
  }
725
- }), At = {
725
+ }), Nt = {
726
726
  key: 0,
727
727
  class: "uid-skeleton-lines",
728
728
  "aria-hidden": "true"
729
- }, jt = /* @__PURE__ */ f({
729
+ }, Pt = /* @__PURE__ */ f({
730
730
  __name: "UidSkeleton",
731
731
  props: {
732
732
  width: { default: "100%" },
@@ -738,7 +738,7 @@ var Ve = ["for"], He = {
738
738
  lines: { default: 1 }
739
739
  },
740
740
  setup(e) {
741
- return (n, r) => e.lines > 1 ? (x(), c("div", At, [(x(!0), c(t, null, T(e.lines, (t) => (x(), c("span", {
741
+ return (n, r) => e.lines > 1 ? (x(), c("div", Nt, [(x(!0), c(t, null, T(e.lines, (t) => (x(), c("span", {
742
742
  key: t,
743
743
  class: _(["uid-skeleton", [e.rounded === !0 && "uid-skeleton--rounded", e.rounded === "full" && "uid-skeleton--full"]]),
744
744
  style: v({
@@ -755,7 +755,7 @@ var Ve = ["for"], He = {
755
755
  "aria-hidden": "true"
756
756
  }, null, 6));
757
757
  }
758
- }), Mt = /* @__PURE__ */ f({
758
+ }), Ft = /* @__PURE__ */ f({
759
759
  __name: "UidBadge",
760
760
  props: {
761
761
  variant: { default: "default" },
@@ -772,10 +772,10 @@ var Ve = ["for"], He = {
772
772
  e.dot && "uid-badge--dot"
773
773
  ]]) }, [e.dot ? s("", !0) : E(t.$slots, "default", { key: 0 })], 2));
774
774
  }
775
- }), Nt = { class: "uid-alert__icon" }, Pt = { class: "uid-alert__content" }, Ft = {
775
+ }), It = { class: "uid-alert__icon" }, Lt = { class: "uid-alert__content" }, Rt = {
776
776
  key: 0,
777
777
  class: "uid-alert__title"
778
- }, It = { class: "uid-alert__body" }, Lt = /* @__PURE__ */ f({
778
+ }, zt = { class: "uid-alert__body" }, Bt = /* @__PURE__ */ f({
779
779
  __name: "UidAlert",
780
780
  props: {
781
781
  variant: { default: "info" },
@@ -789,20 +789,20 @@ var Ve = ["for"], He = {
789
789
  emits: ["dismiss"],
790
790
  setup(t, { emit: n }) {
791
791
  let r = t, i = n, o = {
792
- info: oe,
792
+ info: se,
793
793
  success: J,
794
- warning: H,
795
- danger: V
794
+ warning: U,
795
+ danger: H
796
796
  }, u = a(() => o[r.variant ?? "info"]);
797
797
  return (n, r) => (x(), c("div", {
798
798
  class: _(["uid-alert", `uid-alert--${t.variant}`]),
799
799
  role: "alert"
800
800
  }, [
801
- l("span", Nt, [E(n.$slots, "icon", {}, () => [d(e, {
801
+ l("span", It, [E(n.$slots, "icon", {}, () => [d(e, {
802
802
  icon: t.icon ?? u.value,
803
803
  size: 18
804
804
  }, null, 8, ["icon"])])]),
805
- l("div", Pt, [t.title ? (x(), c("p", Ft, k(t.title), 1)) : s("", !0), l("div", It, [E(n.$slots, "default")])]),
805
+ l("div", Lt, [t.title ? (x(), c("p", Rt, k(t.title), 1)) : s("", !0), l("div", zt, [E(n.$slots, "default")])]),
806
806
  t.dismissible ? (x(), c("button", {
807
807
  key: 0,
808
808
  type: "button",
@@ -815,10 +815,10 @@ var Ve = ["for"], He = {
815
815
  }, null, 8, ["icon"])])) : s("", !0)
816
816
  ], 2));
817
817
  }
818
- }), Rt = { class: "uid-toast__icon" }, zt = { class: "uid-toast__content" }, Bt = {
818
+ }), Vt = { class: "uid-toast__icon" }, Ht = { class: "uid-toast__content" }, Ut = {
819
819
  key: 0,
820
820
  class: "uid-toast__title"
821
- }, Vt = { class: "uid-toast__message" }, Ht = /* @__PURE__ */ f({
821
+ }, Wt = { class: "uid-toast__message" }, Gt = /* @__PURE__ */ f({
822
822
  __name: "UidToast",
823
823
  props: {
824
824
  id: {},
@@ -829,10 +829,10 @@ var Ve = ["for"], He = {
829
829
  emits: ["dismiss"],
830
830
  setup(t, { emit: n }) {
831
831
  let r = t, i = n, o = {
832
- info: oe,
832
+ info: se,
833
833
  success: J,
834
- warning: H,
835
- danger: V
834
+ warning: U,
835
+ danger: H
836
836
  }, u = a(() => o[r.variant ?? "info"]);
837
837
  return (n, r) => (x(), c("div", {
838
838
  class: _(["uid-toast", `uid-toast--${t.variant}`]),
@@ -840,11 +840,11 @@ var Ve = ["for"], He = {
840
840
  "aria-live": "polite",
841
841
  "aria-atomic": "true"
842
842
  }, [
843
- l("span", Rt, [d(e, {
843
+ l("span", Vt, [d(e, {
844
844
  icon: u.value,
845
845
  size: 18
846
846
  }, null, 8, ["icon"])]),
847
- l("div", zt, [t.title ? (x(), c("p", Bt, k(t.title), 1)) : s("", !0), l("p", Vt, k(t.message), 1)]),
847
+ l("div", Ht, [t.title ? (x(), c("p", Ut, k(t.title), 1)) : s("", !0), l("p", Wt, k(t.message), 1)]),
848
848
  l("button", {
849
849
  type: "button",
850
850
  class: "uid-toast__close",
@@ -856,23 +856,23 @@ var Ve = ["for"], He = {
856
856
  }, null, 8, ["icon"])])
857
857
  ], 2));
858
858
  }
859
- }), Ut = w([]), Wt = 0;
860
- function Gt() {
859
+ }), Kt = w([]), qt = 0;
860
+ function Jt() {
861
861
  function e(e) {
862
862
  let n = typeof e == "string" ? { message: e } : e, r = {
863
- id: ++Wt,
863
+ id: ++qt,
864
864
  variant: "info",
865
865
  duration: 4e3,
866
866
  ...n
867
867
  };
868
- return Ut.value.push(r), r.duration > 0 && setTimeout(() => t(r.id), r.duration), r.id;
868
+ return Kt.value.push(r), r.duration > 0 && setTimeout(() => t(r.id), r.duration), r.id;
869
869
  }
870
870
  function t(e) {
871
- let t = Ut.value.findIndex((t) => t.id === e);
872
- t !== -1 && Ut.value.splice(t, 1);
871
+ let t = Kt.value.findIndex((t) => t.id === e);
872
+ t !== -1 && Kt.value.splice(t, 1);
873
873
  }
874
874
  function n() {
875
- Ut.value = [];
875
+ Kt.value = [];
876
876
  }
877
877
  function r(t) {
878
878
  return e(typeof t == "string" ? {
@@ -911,7 +911,7 @@ function Gt() {
911
911
  });
912
912
  }
913
913
  return {
914
- toasts: C(Ut),
914
+ toasts: C(Kt),
915
915
  add: e,
916
916
  dismiss: t,
917
917
  clear: n,
@@ -923,33 +923,33 @@ function Gt() {
923
923
  }
924
924
  //#endregion
925
925
  //#region src/components/Toast/UidToastProvider.vue
926
- var Kt = /* @__PURE__ */ f({
926
+ var Yt = /* @__PURE__ */ f({
927
927
  __name: "UidToastProvider",
928
928
  setup(e) {
929
- let { toasts: r, dismiss: a } = Gt();
929
+ let { toasts: r, dismiss: a } = Jt();
930
930
  return (e, s) => (x(), o(n, { to: "body" }, [d(i, {
931
931
  tag: "div",
932
932
  name: "uid-toast",
933
933
  class: "uid-toast-list"
934
934
  }, {
935
- default: R(() => [(x(!0), c(t, null, T(j(r), (e) => (x(), o(Ht, h({ key: e.id }, { ref_for: !0 }, e, { onDismiss: j(a) }), null, 16, ["onDismiss"]))), 128))]),
935
+ default: z(() => [(x(!0), c(t, null, T(j(r), (e) => (x(), o(Gt, h({ key: e.id }, { ref_for: !0 }, e, { onDismiss: j(a) }), null, 16, ["onDismiss"]))), 128))]),
936
936
  _: 1
937
937
  })]));
938
938
  }
939
- }), qt = { class: "uid-progress-wrapper" }, Jt = {
939
+ }), Xt = { class: "uid-progress-wrapper" }, Zt = {
940
940
  key: 0,
941
941
  class: "uid-progress-header"
942
- }, Yt = {
942
+ }, Qt = {
943
943
  key: 0,
944
944
  class: "uid-progress-label"
945
- }, Xt = {
945
+ }, $t = {
946
946
  key: 1,
947
947
  class: "uid-progress-value"
948
- }, Zt = [
948
+ }, en = [
949
949
  "aria-valuemax",
950
950
  "aria-valuenow",
951
951
  "aria-label"
952
- ], Qt = /* @__PURE__ */ f({
952
+ ], tn = /* @__PURE__ */ f({
953
953
  __name: "UidProgress",
954
954
  props: {
955
955
  value: { default: void 0 },
@@ -966,7 +966,7 @@ var Kt = /* @__PURE__ */ f({
966
966
  let t = e, n = a(() => {
967
967
  if (t.value !== void 0) return Math.min(100, Math.max(0, t.value / (t.max ?? 100) * 100));
968
968
  }), r = a(() => t.value === void 0), i = a(() => n.value === void 0 ? void 0 : `${Math.round(n.value)}%`);
969
- return (t, a) => (x(), c("div", qt, [e.label || e.showValue && i.value ? (x(), c("div", Jt, [e.label ? (x(), c("span", Yt, k(e.label), 1)) : s("", !0), e.showValue && i.value ? (x(), c("span", Xt, k(i.value), 1)) : s("", !0)])) : s("", !0), l("div", {
969
+ return (t, a) => (x(), c("div", Xt, [e.label || e.showValue && i.value ? (x(), c("div", Zt, [e.label ? (x(), c("span", Qt, k(e.label), 1)) : s("", !0), e.showValue && i.value ? (x(), c("span", $t, k(i.value), 1)) : s("", !0)])) : s("", !0), l("div", {
970
970
  class: _(["uid-progress", [
971
971
  `uid-progress--${e.size}`,
972
972
  `uid-progress--${e.variant}`,
@@ -981,9 +981,9 @@ var Kt = /* @__PURE__ */ f({
981
981
  key: 0,
982
982
  class: "uid-progress__bar",
983
983
  style: v({ width: `${n.value}%` })
984
- }, null, 4))], 10, Zt)]));
984
+ }, null, 4))], 10, en)]));
985
985
  }
986
- }), $t = [
986
+ }), nn = [
987
987
  "a[href]",
988
988
  "button:not([disabled])",
989
989
  "input:not([disabled])",
@@ -991,10 +991,10 @@ var Kt = /* @__PURE__ */ f({
991
991
  "textarea:not([disabled])",
992
992
  "[tabindex]:not([tabindex=\"-1\"])"
993
993
  ].join(", ");
994
- function en(e) {
994
+ function rn(e) {
995
995
  let t = w(null);
996
996
  function n() {
997
- return e.value ? Array.from(e.value.querySelectorAll($t)).filter((e) => !e.closest("[aria-hidden=\"true\"]")) : [];
997
+ return e.value ? Array.from(e.value.querySelectorAll(nn)).filter((e) => !e.closest("[aria-hidden=\"true\"]")) : [];
998
998
  }
999
999
  function r(e) {
1000
1000
  if (e.key !== "Tab") return;
@@ -1019,17 +1019,17 @@ function en(e) {
1019
1019
  }
1020
1020
  //#endregion
1021
1021
  //#region src/composables/useScrollLock.ts
1022
- var tn = 0;
1023
- function nn() {
1022
+ var an = 0;
1023
+ function on() {
1024
1024
  let e = !1;
1025
1025
  function t() {
1026
- if (!e && (e = !0, tn++, tn === 1)) {
1026
+ if (!e && (e = !0, an++, an === 1)) {
1027
1027
  let e = window.innerWidth - document.documentElement.clientWidth;
1028
1028
  document.body.style.overflow = "hidden", e > 0 && (document.body.style.paddingRight = `${e}px`);
1029
1029
  }
1030
1030
  }
1031
1031
  function n() {
1032
- e && (e = !1, tn--, tn === 0 && (document.body.style.overflow = "", document.body.style.paddingRight = ""));
1032
+ e && (e = !1, an--, an === 0 && (document.body.style.overflow = "", document.body.style.paddingRight = ""));
1033
1033
  }
1034
1034
  return {
1035
1035
  lock: t,
@@ -1038,10 +1038,10 @@ function nn() {
1038
1038
  }
1039
1039
  //#endregion
1040
1040
  //#region src/components/Modal/UidModal.vue?vue&type=script&setup=true&lang.ts
1041
- var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"], sn = { class: "uid-modal__body" }, cn = {
1041
+ var sn = ["aria-labelledby"], cn = { class: "uid-modal__header" }, ln = ["id"], un = { class: "uid-modal__body" }, dn = {
1042
1042
  key: 0,
1043
1043
  class: "uid-modal__footer"
1044
- }, ln = /* @__PURE__ */ f({
1044
+ }, fn = /* @__PURE__ */ f({
1045
1045
  __name: "UidModal",
1046
1046
  props: /* @__PURE__ */ m({
1047
1047
  title: { default: void 0 },
@@ -1063,24 +1063,24 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1063
1063
  }),
1064
1064
  emits: /* @__PURE__ */ m(["close"], ["update:modelValue"]),
1065
1065
  setup(t, { emit: i }) {
1066
- let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: v } = en(m), { lock: y, unlock: b } = nn();
1066
+ let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: v } = rn(m), { lock: y, unlock: b } = on();
1067
1067
  function S() {
1068
1068
  a.value = !1, f("close");
1069
1069
  }
1070
1070
  function C() {
1071
1071
  u.closeOnOverlay && S();
1072
1072
  }
1073
- L(a, async (e) => {
1073
+ R(a, async (e) => {
1074
1074
  e ? (y(), await g(), h(), document.addEventListener("keydown", T)) : (b(), v(), document.removeEventListener("keydown", T));
1075
1075
  });
1076
1076
  function T(e) {
1077
1077
  e.key === "Escape" && S();
1078
1078
  }
1079
1079
  return (i, u) => (x(), o(n, { to: "body" }, [d(r, { name: "uid-modal" }, {
1080
- default: R(() => [a.value ? (x(), c("div", {
1080
+ default: z(() => [a.value ? (x(), c("div", {
1081
1081
  key: 0,
1082
1082
  class: "uid-modal-overlay",
1083
- onClick: B(C, ["self"])
1083
+ onClick: V(C, ["self"])
1084
1084
  }, [l("div", {
1085
1085
  ref_key: "dialogRef",
1086
1086
  ref: m,
@@ -1090,11 +1090,11 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1090
1090
  "aria-labelledby": t.title ? j(p) : void 0,
1091
1091
  tabindex: "-1"
1092
1092
  }, [
1093
- l("div", an, [E(i.$slots, "header", {}, () => [t.title ? (x(), c("p", {
1093
+ l("div", cn, [E(i.$slots, "header", {}, () => [t.title ? (x(), c("p", {
1094
1094
  key: 0,
1095
1095
  id: j(p),
1096
1096
  class: "uid-modal__title"
1097
- }, k(t.title), 9, on)) : s("", !0)]), t.hideClose ? s("", !0) : (x(), c("button", {
1097
+ }, k(t.title), 9, ln)) : s("", !0)]), t.hideClose ? s("", !0) : (x(), c("button", {
1098
1098
  key: 0,
1099
1099
  type: "button",
1100
1100
  class: "uid-modal__close",
@@ -1104,16 +1104,16 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1104
1104
  icon: j(Z),
1105
1105
  size: 18
1106
1106
  }, null, 8, ["icon"])]))]),
1107
- l("div", sn, [E(i.$slots, "default")]),
1108
- i.$slots.footer ? (x(), c("div", cn, [E(i.$slots, "footer")])) : s("", !0)
1109
- ], 10, rn)])) : s("", !0)]),
1107
+ l("div", un, [E(i.$slots, "default")]),
1108
+ i.$slots.footer ? (x(), c("div", dn, [E(i.$slots, "footer")])) : s("", !0)
1109
+ ], 10, sn)])) : s("", !0)]),
1110
1110
  _: 3
1111
1111
  })]));
1112
1112
  }
1113
- }), un = ["aria-labelledby"], dn = { class: "uid-drawer__header" }, fn = ["id"], pn = { class: "uid-drawer__body" }, mn = {
1113
+ }), pn = ["aria-labelledby"], mn = { class: "uid-drawer__header" }, hn = ["id"], gn = { class: "uid-drawer__body" }, _n = {
1114
1114
  key: 0,
1115
1115
  class: "uid-drawer__footer"
1116
- }, hn = /* @__PURE__ */ f({
1116
+ }, vn = /* @__PURE__ */ f({
1117
1117
  __name: "UidDrawer",
1118
1118
  props: /* @__PURE__ */ m({
1119
1119
  title: { default: void 0 },
@@ -1137,7 +1137,7 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1137
1137
  }),
1138
1138
  emits: /* @__PURE__ */ m(["close"], ["update:modelValue"]),
1139
1139
  setup(t, { emit: i }) {
1140
- let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: y } = en(m), { lock: b, unlock: S } = nn();
1140
+ let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: y } = rn(m), { lock: b, unlock: S } = on();
1141
1141
  function C() {
1142
1142
  a.value = !1, f("close");
1143
1143
  }
@@ -1147,13 +1147,13 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1147
1147
  function D(e) {
1148
1148
  e.key === "Escape" && C();
1149
1149
  }
1150
- return L(a, async (e) => {
1150
+ return R(a, async (e) => {
1151
1151
  e ? (b(), await g(), h(), document.addEventListener("keydown", D)) : (S(), y(), document.removeEventListener("keydown", D));
1152
1152
  }), (i, u) => (x(), o(n, { to: "body" }, [d(r, { name: `uid-drawer-${t.side}` }, {
1153
- default: R(() => [a.value ? (x(), c("div", {
1153
+ default: z(() => [a.value ? (x(), c("div", {
1154
1154
  key: 0,
1155
1155
  class: "uid-drawer-overlay",
1156
- onClick: B(T, ["self"])
1156
+ onClick: V(T, ["self"])
1157
1157
  }, [l("div", {
1158
1158
  ref_key: "panelRef",
1159
1159
  ref: m,
@@ -1167,11 +1167,11 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1167
1167
  "aria-labelledby": t.title ? j(p) : void 0,
1168
1168
  tabindex: "-1"
1169
1169
  }, [
1170
- l("div", dn, [E(i.$slots, "header", {}, () => [t.title ? (x(), c("p", {
1170
+ l("div", mn, [E(i.$slots, "header", {}, () => [t.title ? (x(), c("p", {
1171
1171
  key: 0,
1172
1172
  id: j(p),
1173
1173
  class: "uid-drawer__title"
1174
- }, k(t.title), 9, fn)) : s("", !0)]), t.hideClose ? s("", !0) : (x(), c("button", {
1174
+ }, k(t.title), 9, hn)) : s("", !0)]), t.hideClose ? s("", !0) : (x(), c("button", {
1175
1175
  key: 0,
1176
1176
  type: "button",
1177
1177
  class: "uid-drawer__close",
@@ -1181,14 +1181,14 @@ var rn = ["aria-labelledby"], an = { class: "uid-modal__header" }, on = ["id"],
1181
1181
  icon: j(Z),
1182
1182
  size: 18
1183
1183
  }, null, 8, ["icon"])]))]),
1184
- l("div", pn, [E(i.$slots, "default")]),
1185
- i.$slots.footer ? (x(), c("div", mn, [E(i.$slots, "footer")])) : s("", !0)
1186
- ], 14, un)])) : s("", !0)]),
1184
+ l("div", gn, [E(i.$slots, "default")]),
1185
+ i.$slots.footer ? (x(), c("div", _n, [E(i.$slots, "footer")])) : s("", !0)
1186
+ ], 14, pn)])) : s("", !0)]),
1187
1187
  _: 3
1188
1188
  }, 8, ["name"])]));
1189
1189
  }
1190
- }), gn = 8, _n = 8;
1191
- function vn(e, t, n = {}) {
1190
+ }), yn = 8, bn = 8;
1191
+ function xn(e, t, n = {}) {
1192
1192
  let r = w(0), i = w(0), o = w(A(n.placement) ?? "bottom"), s = a(() => ({
1193
1193
  position: "fixed",
1194
1194
  left: `${r.value}px`,
@@ -1197,7 +1197,7 @@ function vn(e, t, n = {}) {
1197
1197
  function c() {
1198
1198
  let a = e.value, s = t.value;
1199
1199
  if (!a || !s) return;
1200
- let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = n.offset ?? gn, d = window.innerWidth, f = window.innerHeight, p = A(n.placement) ?? "bottom";
1200
+ let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = n.offset ?? yn, d = window.innerWidth, f = window.innerHeight, p = A(n.placement) ?? "bottom";
1201
1201
  if (p.startsWith("bottom")) {
1202
1202
  let e = f - c.bottom, t = c.top;
1203
1203
  e < l.height + u && t > e && (p = p.replace("bottom", "top"));
@@ -1207,7 +1207,7 @@ function vn(e, t, n = {}) {
1207
1207
  }
1208
1208
  o.value = p;
1209
1209
  let m = 0, h = 0;
1210
- p.startsWith("bottom") ? (h = c.bottom + u, m = p === "bottom" ? c.left + c.width / 2 - l.width / 2 : p === "bottom-start" ? c.left : c.right - l.width) : p.startsWith("top") ? (h = c.top - l.height - u, m = p === "top" ? c.left + c.width / 2 - l.width / 2 : p === "top-start" ? c.left : c.right - l.width) : p === "left" ? (m = c.left - l.width - u, h = c.top + c.height / 2 - l.height / 2) : (m = c.right + u, h = c.top + c.height / 2 - l.height / 2), r.value = Math.max(_n, Math.min(m, d - l.width - _n)), i.value = Math.max(_n, Math.min(h, f - l.height - _n));
1210
+ p.startsWith("bottom") ? (h = c.bottom + u, m = p === "bottom" ? c.left + c.width / 2 - l.width / 2 : p === "bottom-start" ? c.left : c.right - l.width) : p.startsWith("top") ? (h = c.top - l.height - u, m = p === "top" ? c.left + c.width / 2 - l.width / 2 : p === "top-start" ? c.left : c.right - l.width) : p === "left" ? (m = c.left - l.width - u, h = c.top + c.height / 2 - l.height / 2) : (m = c.right + u, h = c.top + c.height / 2 - l.height / 2), r.value = Math.max(bn, Math.min(m, d - l.width - bn)), i.value = Math.max(bn, Math.min(h, f - l.height - bn));
1211
1211
  }
1212
1212
  return {
1213
1213
  x: r,
@@ -1219,7 +1219,7 @@ function vn(e, t, n = {}) {
1219
1219
  }
1220
1220
  //#endregion
1221
1221
  //#region src/components/Tooltip/UidTooltip.vue?vue&type=script&setup=true&lang.ts
1222
- var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1222
+ var Sn = ["aria-describedby"], Cn = ["id"], wn = /* @__PURE__ */ f({
1223
1223
  __name: "UidTooltip",
1224
1224
  props: {
1225
1225
  content: {},
@@ -1230,7 +1230,7 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1230
1230
  }
1231
1231
  },
1232
1232
  setup(e) {
1233
- let i = e, u = M(), f = w(null), p = w(null), m = w(!1), { floatingStyle: h, update: _ } = vn(f, p, { placement: a(() => i.placement) });
1233
+ let i = e, u = M(), f = w(null), p = w(null), m = w(!1), { floatingStyle: h, update: _ } = xn(f, p, { placement: a(() => i.placement) });
1234
1234
  async function y() {
1235
1235
  i.disabled || (m.value = !0, await g(), _());
1236
1236
  }
@@ -1246,8 +1246,8 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1246
1246
  onMouseleave: b,
1247
1247
  onFocusin: y,
1248
1248
  onFocusout: b
1249
- }, [E(i.$slots, "default")], 40, yn), (x(), o(n, { to: "body" }, [d(r, { name: "uid-tooltip" }, {
1250
- default: R(() => [m.value ? (x(), c("div", {
1249
+ }, [E(i.$slots, "default")], 40, Sn), (x(), o(n, { to: "body" }, [d(r, { name: "uid-tooltip" }, {
1250
+ default: z(() => [m.value ? (x(), c("div", {
1251
1251
  key: 0,
1252
1252
  id: j(u),
1253
1253
  ref_key: "floatingRef",
@@ -1255,15 +1255,15 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1255
1255
  class: "uid-tooltip",
1256
1256
  role: "tooltip",
1257
1257
  style: v(j(h))
1258
- }, k(e.content), 13, bn)) : s("", !0)]),
1258
+ }, k(e.content), 13, Cn)) : s("", !0)]),
1259
1259
  _: 1
1260
1260
  })]))], 64));
1261
1261
  }
1262
- }), Sn = /* @__PURE__ */ f({
1262
+ }), Tn = /* @__PURE__ */ f({
1263
1263
  __name: "UidPopover",
1264
1264
  props: { placement: { default: "bottom" } },
1265
1265
  setup(e) {
1266
- let i = e, u = w(null), f = w(null), p = w(!1), { floatingStyle: m, update: h } = vn(u, f, { placement: a(() => i.placement) });
1266
+ let i = e, u = w(null), f = w(null), p = w(!1), { floatingStyle: m, update: h } = xn(u, f, { placement: a(() => i.placement) });
1267
1267
  async function _() {
1268
1268
  p.value = !p.value, p.value && (await g(), h());
1269
1269
  }
@@ -1287,7 +1287,7 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1287
1287
  class: "uid-popover-trigger",
1288
1288
  onClick: _
1289
1289
  }, [E(e.$slots, "trigger")], 512), (x(), o(n, { to: "body" }, [d(r, { name: "uid-popover" }, {
1290
- default: R(() => [p.value ? (x(), c("div", {
1290
+ default: z(() => [p.value ? (x(), c("div", {
1291
1291
  key: 0,
1292
1292
  ref_key: "floatingRef",
1293
1293
  ref: f,
@@ -1297,17 +1297,17 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1297
1297
  _: 3
1298
1298
  })]))], 64));
1299
1299
  }
1300
- }), Cn = Symbol("uid-menu-close"), wn = /* @__PURE__ */ f({
1300
+ }), En = Symbol("uid-menu-close"), Dn = /* @__PURE__ */ f({
1301
1301
  __name: "UidMenu",
1302
1302
  setup(e) {
1303
- let i = w(null), a = w(null), u = w(!1), { floatingStyle: f, update: p } = vn(i, a, { placement: "bottom-start" });
1303
+ let i = w(null), a = w(null), u = w(!1), { floatingStyle: f, update: p } = xn(i, a, { placement: "bottom-start" });
1304
1304
  function m() {
1305
1305
  return Array.from(a.value?.querySelectorAll("[role=\"menuitem\"]:not([disabled])") ?? []);
1306
1306
  }
1307
1307
  function h() {
1308
1308
  u.value = !1, i.value?.querySelector("button, [tabindex]")?.focus();
1309
1309
  }
1310
- S(Cn, h);
1310
+ S(En, h);
1311
1311
  async function _() {
1312
1312
  u.value = !u.value, u.value && (await g(), p(), m()[0]?.focus());
1313
1313
  }
@@ -1322,7 +1322,7 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1322
1322
  let t = e.target;
1323
1323
  i.value?.contains(t) || a.value?.contains(t) || (u.value = !1);
1324
1324
  }
1325
- return L(u, (e) => {
1325
+ return R(u, (e) => {
1326
1326
  e ? document.addEventListener("mousedown", T) : document.removeEventListener("mousedown", T);
1327
1327
  }), b(() => {
1328
1328
  document.removeEventListener("mousedown", T);
@@ -1333,7 +1333,7 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1333
1333
  onClick: _,
1334
1334
  onKeydown: y
1335
1335
  }, [E(e.$slots, "trigger")], 544), (x(), o(n, { to: "body" }, [d(r, { name: "uid-menu" }, {
1336
- default: R(() => [u.value ? (x(), c("div", {
1336
+ default: z(() => [u.value ? (x(), c("div", {
1337
1337
  key: 0,
1338
1338
  ref_key: "menuRef",
1339
1339
  ref: a,
@@ -1345,7 +1345,7 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1345
1345
  _: 3
1346
1346
  })]))], 64));
1347
1347
  }
1348
- }), Tn = ["disabled"], En = /* @__PURE__ */ f({
1348
+ }), On = ["disabled"], kn = /* @__PURE__ */ f({
1349
1349
  __name: "UidMenuItem",
1350
1350
  props: {
1351
1351
  icon: { default: void 0 },
@@ -1357,7 +1357,7 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1357
1357
  },
1358
1358
  emits: ["click"],
1359
1359
  setup(e, { emit: t }) {
1360
- let n = e, r = t, i = p(Cn, () => {});
1360
+ let n = e, r = t, i = p(En, () => {});
1361
1361
  function a(e) {
1362
1362
  n.disabled || (r("click", e), i());
1363
1363
  }
@@ -1367,21 +1367,21 @@ var yn = ["aria-describedby"], bn = ["id"], xn = /* @__PURE__ */ f({
1367
1367
  role: "menuitem",
1368
1368
  disabled: e.disabled,
1369
1369
  onClick: a
1370
- }, [E(t.$slots, "default")], 10, Tn));
1370
+ }, [E(t.$slots, "default")], 10, On));
1371
1371
  }
1372
- }), Dn = (e, t) => {
1372
+ }), An = (e, t) => {
1373
1373
  let n = e.__vccOpts || e;
1374
1374
  for (let [e, r] of t) n[e] = r;
1375
1375
  return n;
1376
- }, On = {}, kn = {
1376
+ }, jn = {}, Mn = {
1377
1377
  class: "uid-menu-separator",
1378
1378
  role: "separator",
1379
1379
  "aria-hidden": "true"
1380
1380
  };
1381
- function An(e, t) {
1382
- return x(), c("div", kn);
1381
+ function Nn(e, t) {
1382
+ return x(), c("div", Mn);
1383
1383
  }
1384
- var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn = ["aria-orientation"], Pn = { class: "uid-tabs__panels" }, Fn = /* @__PURE__ */ f({
1384
+ var Pn = /* @__PURE__ */ An(jn, [["render", Nn]]), Fn = Symbol("uid-tabs"), In = ["aria-orientation"], Ln = { class: "uid-tabs__panels" }, Rn = /* @__PURE__ */ f({
1385
1385
  __name: "UidTabs",
1386
1386
  props: /* @__PURE__ */ m({ orientation: { default: "horizontal" } }, {
1387
1387
  modelValue: { required: !0 },
@@ -1390,7 +1390,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1390
1390
  emits: ["update:modelValue"],
1391
1391
  setup(e) {
1392
1392
  let t = N(e, "modelValue");
1393
- return S(Mn, {
1393
+ return S(Fn, {
1394
1394
  activeTab: t,
1395
1395
  setTab: (e) => {
1396
1396
  t.value = e;
@@ -1400,15 +1400,15 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1400
1400
  class: "uid-tabs__list",
1401
1401
  role: "tablist",
1402
1402
  "aria-orientation": e.orientation
1403
- }, [E(t.$slots, "list")], 8, Nn), l("div", Pn, [E(t.$slots, "default")])], 2));
1403
+ }, [E(t.$slots, "list")], 8, In), l("div", Ln, [E(t.$slots, "default")])], 2));
1404
1404
  }
1405
- }), In = [
1405
+ }), zn = [
1406
1406
  "id",
1407
1407
  "aria-selected",
1408
1408
  "aria-controls",
1409
1409
  "disabled",
1410
1410
  "tabindex"
1411
- ], Ln = /* @__PURE__ */ f({
1411
+ ], Bn = /* @__PURE__ */ f({
1412
1412
  __name: "UidTab",
1413
1413
  props: {
1414
1414
  value: {},
@@ -1418,7 +1418,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1418
1418
  }
1419
1419
  },
1420
1420
  setup(e) {
1421
- let t = e, n = p(Mn), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-tab-${t.value}`), o = a(() => `${n.idPrefix}-panel-${t.value}`);
1421
+ let t = e, n = p(Fn), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-tab-${t.value}`), o = a(() => `${n.idPrefix}-panel-${t.value}`);
1422
1422
  function s() {
1423
1423
  t.disabled || n.setTab(t.value);
1424
1424
  }
@@ -1447,13 +1447,13 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1447
1447
  tabindex: r.value ? 0 : -1,
1448
1448
  onClick: s,
1449
1449
  onKeydown: l
1450
- }, [E(t.$slots, "default")], 42, In));
1450
+ }, [E(t.$slots, "default")], 42, zn));
1451
1451
  }
1452
- }), Rn = ["id", "aria-labelledby"], zn = /* @__PURE__ */ f({
1452
+ }), Vn = ["id", "aria-labelledby"], Hn = /* @__PURE__ */ f({
1453
1453
  __name: "UidTabPanel",
1454
1454
  props: { value: {} },
1455
1455
  setup(e) {
1456
- let t = e, n = p(Mn), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-panel-${t.value}`), o = a(() => `${n.idPrefix}-tab-${t.value}`);
1456
+ let t = e, n = p(Fn), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-panel-${t.value}`), o = a(() => `${n.idPrefix}-tab-${t.value}`);
1457
1457
  return (e, t) => r.value ? (x(), c("div", {
1458
1458
  key: 0,
1459
1459
  id: i.value,
@@ -1461,9 +1461,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1461
1461
  role: "tabpanel",
1462
1462
  "aria-labelledby": o.value,
1463
1463
  tabindex: "0"
1464
- }, [E(e.$slots, "default")], 8, Rn)) : s("", !0);
1464
+ }, [E(e.$slots, "default")], 8, Vn)) : s("", !0);
1465
1465
  }
1466
- }), Bn = ["aria-label"], Vn = /* @__PURE__ */ f({
1466
+ }), Un = ["aria-label"], Wn = /* @__PURE__ */ f({
1467
1467
  __name: "UidBreadcrumb",
1468
1468
  props: {
1469
1469
  label: { default: "Навигация" },
@@ -1476,9 +1476,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1476
1476
  }, [l("ol", {
1477
1477
  class: "uid-breadcrumb__list",
1478
1478
  style: v({ "--uid-breadcrumb-sep": `'${e.separator}'` })
1479
- }, [E(t.$slots, "default")], 4)], 8, Bn));
1479
+ }, [E(t.$slots, "default")], 4)], 8, Un));
1480
1480
  }
1481
- }), Hn = { class: "uid-breadcrumb__item" }, Un = ["href"], Wn = ["aria-current"], Gn = /* @__PURE__ */ f({
1481
+ }), Gn = { class: "uid-breadcrumb__item" }, Kn = ["href"], qn = ["aria-current"], Jn = /* @__PURE__ */ f({
1482
1482
  __name: "UidBreadcrumbItem",
1483
1483
  props: {
1484
1484
  href: { default: void 0 },
@@ -1488,17 +1488,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1488
1488
  }
1489
1489
  },
1490
1490
  setup(e) {
1491
- return (t, n) => (x(), c("li", Hn, [e.href && !e.current ? (x(), c("a", {
1491
+ return (t, n) => (x(), c("li", Gn, [e.href && !e.current ? (x(), c("a", {
1492
1492
  key: 0,
1493
1493
  class: "uid-breadcrumb__link",
1494
1494
  href: e.href
1495
- }, [E(t.$slots, "default")], 8, Un)) : (x(), c("span", {
1495
+ }, [E(t.$slots, "default")], 8, Kn)) : (x(), c("span", {
1496
1496
  key: 1,
1497
1497
  class: "uid-breadcrumb__current",
1498
1498
  "aria-current": e.current ? "page" : void 0
1499
- }, [E(t.$slots, "default")], 8, Wn))]));
1499
+ }, [E(t.$slots, "default")], 8, qn))]));
1500
1500
  }
1501
- }), Kn = /* @__PURE__ */ f({
1501
+ }), Yn = /* @__PURE__ */ f({
1502
1502
  __name: "UidLink",
1503
1503
  props: {
1504
1504
  href: { default: void 0 },
@@ -1531,7 +1531,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1531
1531
  "aria-disabled": e.disabled || void 0,
1532
1532
  tabindex: e.disabled ? -1 : void 0
1533
1533
  }), {
1534
- default: R(() => [E(t.$slots, "default")]),
1534
+ default: z(() => [E(t.$slots, "default")]),
1535
1535
  _: 3
1536
1536
  }, 16, [
1537
1537
  "class",
@@ -1539,18 +1539,18 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1539
1539
  "tabindex"
1540
1540
  ]));
1541
1541
  }
1542
- }), qn = {
1542
+ }), Xn = {
1543
1543
  class: "uid-pagination",
1544
1544
  "aria-label": "Пагинация"
1545
- }, Jn = ["disabled"], Yn = {
1545
+ }, Zn = ["disabled"], Qn = {
1546
1546
  key: 0,
1547
1547
  class: "uid-pagination__ellipsis",
1548
1548
  "aria-hidden": "true"
1549
- }, Xn = [
1549
+ }, $n = [
1550
1550
  "aria-label",
1551
1551
  "aria-current",
1552
1552
  "onClick"
1553
- ], Zn = ["disabled"], Qn = /* @__PURE__ */ f({
1553
+ ], er = ["disabled"], tr = /* @__PURE__ */ f({
1554
1554
  __name: "UidPagination",
1555
1555
  props: /* @__PURE__ */ m({
1556
1556
  total: {},
@@ -1579,7 +1579,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1579
1579
  function f(e) {
1580
1580
  e < 1 || e > o.value || e === r.value || (r.value = e);
1581
1581
  }
1582
- return (n, i) => (x(), c("nav", qn, [
1582
+ return (n, i) => (x(), c("nav", Xn, [
1583
1583
  l("button", {
1584
1584
  type: "button",
1585
1585
  class: "uid-pagination__btn uid-pagination__btn--nav",
@@ -1587,17 +1587,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1587
1587
  "aria-label": "Предыдущая страница",
1588
1588
  onClick: i[0] ||= (e) => f(r.value - 1)
1589
1589
  }, [d(e, {
1590
- icon: j(Y),
1590
+ icon: j(X),
1591
1591
  size: 16
1592
- }, null, 8, ["icon"])], 8, Jn),
1593
- (x(!0), c(t, null, T(u.value, (e, n) => (x(), c(t, { key: `${n}-${e}` }, [e === "..." ? (x(), c("span", Yn, " … ")) : (x(), c("button", {
1592
+ }, null, 8, ["icon"])], 8, Zn),
1593
+ (x(!0), c(t, null, T(u.value, (e, n) => (x(), c(t, { key: `${n}-${e}` }, [e === "..." ? (x(), c("span", Qn, " … ")) : (x(), c("button", {
1594
1594
  key: 1,
1595
1595
  type: "button",
1596
1596
  class: _(["uid-pagination__btn", { "uid-pagination__btn--active": e === r.value }]),
1597
1597
  "aria-label": `Страница ${e}`,
1598
1598
  "aria-current": e === r.value ? "page" : void 0,
1599
1599
  onClick: (t) => f(e)
1600
- }, k(e), 11, Xn))], 64))), 128)),
1600
+ }, k(e), 11, $n))], 64))), 128)),
1601
1601
  l("button", {
1602
1602
  type: "button",
1603
1603
  class: "uid-pagination__btn uid-pagination__btn--nav",
@@ -1605,15 +1605,15 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1605
1605
  "aria-label": "Следующая страница",
1606
1606
  onClick: i[1] ||= (e) => f(r.value + 1)
1607
1607
  }, [d(e, {
1608
- icon: j(X),
1608
+ icon: j(ne),
1609
1609
  size: 16
1610
- }, null, 8, ["icon"])], 8, Zn)
1610
+ }, null, 8, ["icon"])], 8, er)
1611
1611
  ]));
1612
1612
  }
1613
- }), $n = {
1613
+ }), nr = {
1614
1614
  class: "uid-pagination uid-pagination--cursor",
1615
1615
  "aria-label": "Навигация по страницам"
1616
- }, er = ["disabled", "aria-label"], tr = ["disabled", "aria-label"], nr = /* @__PURE__ */ f({
1616
+ }, rr = ["disabled", "aria-label"], ir = ["disabled", "aria-label"], ar = /* @__PURE__ */ f({
1617
1617
  __name: "UidPaginationCursor",
1618
1618
  props: {
1619
1619
  hasPrev: {
@@ -1630,27 +1630,27 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1630
1630
  emits: ["prev", "next"],
1631
1631
  setup(t, { emit: n }) {
1632
1632
  let r = n;
1633
- return (n, i) => (x(), c("nav", $n, [l("button", {
1633
+ return (n, i) => (x(), c("nav", nr, [l("button", {
1634
1634
  type: "button",
1635
1635
  class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
1636
1636
  disabled: !t.hasPrev,
1637
1637
  "aria-label": t.prevLabel,
1638
1638
  onClick: i[0] ||= (e) => r("prev")
1639
1639
  }, [d(e, {
1640
- icon: j(Y),
1640
+ icon: j(X),
1641
1641
  size: 16
1642
- }, null, 8, ["icon"]), u(" " + k(t.prevLabel), 1)], 8, er), l("button", {
1642
+ }, null, 8, ["icon"]), u(" " + k(t.prevLabel), 1)], 8, rr), l("button", {
1643
1643
  type: "button",
1644
1644
  class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
1645
1645
  disabled: !t.hasNext,
1646
1646
  "aria-label": t.nextLabel,
1647
1647
  onClick: i[1] ||= (e) => r("next")
1648
1648
  }, [u(k(t.nextLabel) + " ", 1), d(e, {
1649
- icon: j(X),
1649
+ icon: j(ne),
1650
1650
  size: 16
1651
- }, null, 8, ["icon"])], 8, tr)]));
1651
+ }, null, 8, ["icon"])], 8, ir)]));
1652
1652
  }
1653
- }), rr = { class: "uid-load-more" }, ir = ["disabled"], ar = /* @__PURE__ */ f({
1653
+ }), or = { class: "uid-load-more" }, sr = ["disabled"], cr = /* @__PURE__ */ f({
1654
1654
  __name: "UidLoadMore",
1655
1655
  props: {
1656
1656
  loading: {
@@ -1666,20 +1666,20 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1666
1666
  emits: ["load"],
1667
1667
  setup(e, { emit: t }) {
1668
1668
  let n = t;
1669
- return (t, r) => (x(), c("div", rr, [l("button", {
1669
+ return (t, r) => (x(), c("div", or, [l("button", {
1670
1670
  type: "button",
1671
1671
  class: "uid-load-more__btn",
1672
1672
  disabled: e.disabled || e.loading,
1673
1673
  onClick: r[0] ||= (e) => n("load")
1674
- }, [e.loading ? (x(), o(kt, {
1674
+ }, [e.loading ? (x(), o(Mt, {
1675
1675
  key: 0,
1676
1676
  size: "sm"
1677
- })) : s("", !0), l("span", null, k(e.label), 1)], 8, ir)]));
1677
+ })) : s("", !0), l("span", null, k(e.label), 1)], 8, sr)]));
1678
1678
  }
1679
- }), or = { class: "uid-infinite-scroll" }, sr = {
1679
+ }), lr = { class: "uid-infinite-scroll" }, ur = {
1680
1680
  key: 0,
1681
1681
  class: "uid-infinite-scroll__loader"
1682
- }, cr = /* @__PURE__ */ f({
1682
+ }, dr = /* @__PURE__ */ f({
1683
1683
  __name: "UidInfiniteScroll",
1684
1684
  props: {
1685
1685
  loading: {
@@ -1703,18 +1703,18 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1703
1703
  e.isIntersecting && !n.loading && !n.disabled && r("load");
1704
1704
  }, { rootMargin: n.rootMargin }), a.observe(i.value));
1705
1705
  }
1706
- return L(i, (e) => {
1706
+ return R(i, (e) => {
1707
1707
  e && u();
1708
- }, { immediate: !0 }), L(() => n.disabled, (e) => {
1708
+ }, { immediate: !0 }), R(() => n.disabled, (e) => {
1709
1709
  e ? o() : u();
1710
- }), b(o), (t, n) => (x(), c("div", or, [e.loading ? (x(), c("div", sr, [d(kt, { size: "sm" })])) : s("", !0), l("div", {
1710
+ }), b(o), (t, n) => (x(), c("div", lr, [e.loading ? (x(), c("div", ur, [d(Mt, { size: "sm" })])) : s("", !0), l("div", {
1711
1711
  ref_key: "sentinelRef",
1712
1712
  ref: i,
1713
1713
  class: "uid-infinite-scroll__sentinel",
1714
1714
  "aria-hidden": "true"
1715
1715
  }, null, 512)]));
1716
1716
  }
1717
- }), lr = { class: "uid-page-size" }, ur = { class: "uid-page-size__label" }, dr = ["value"], fr = ["value"], pr = /* @__PURE__ */ f({
1717
+ }), fr = { class: "uid-page-size" }, pr = { class: "uid-page-size__label" }, mr = ["value"], hr = ["value"], gr = /* @__PURE__ */ f({
1718
1718
  __name: "UidPageSize",
1719
1719
  props: /* @__PURE__ */ m({
1720
1720
  options: { default: () => [
@@ -1731,25 +1731,25 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1731
1731
  emits: ["update:modelValue"],
1732
1732
  setup(e) {
1733
1733
  let n = N(e, "modelValue");
1734
- return (r, i) => (x(), c("div", lr, [l("span", ur, k(e.label), 1), l("select", {
1734
+ return (r, i) => (x(), c("div", fr, [l("span", pr, k(e.label), 1), l("select", {
1735
1735
  class: "uid-page-size__select",
1736
1736
  value: n.value,
1737
1737
  onChange: i[0] ||= (e) => n.value = Number(e.target.value)
1738
1738
  }, [(x(!0), c(t, null, T(e.options, (e) => (x(), c("option", {
1739
1739
  key: e,
1740
1740
  value: e
1741
- }, k(e), 9, fr))), 128))], 40, dr)]));
1741
+ }, k(e), 9, hr))), 128))], 40, mr)]));
1742
1742
  }
1743
- }), mr = {
1743
+ }), _r = {
1744
1744
  key: 0,
1745
1745
  class: "uid-card__media"
1746
- }, hr = {
1746
+ }, vr = {
1747
1747
  key: 1,
1748
1748
  class: "uid-card__header"
1749
- }, gr = { class: "uid-card__body" }, _r = {
1749
+ }, yr = { class: "uid-card__body" }, br = {
1750
1750
  key: 2,
1751
1751
  class: "uid-card__footer"
1752
- }, vr = /* @__PURE__ */ f({
1752
+ }, xr = /* @__PURE__ */ f({
1753
1753
  __name: "UidCard",
1754
1754
  props: {
1755
1755
  padding: { default: "md" },
@@ -1760,13 +1760,13 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1760
1760
  },
1761
1761
  setup(e) {
1762
1762
  return (t, n) => (x(), c("div", { class: _(["uid-card", [`uid-card--pad-${e.padding}`, { "uid-card--clickable": e.clickable }]]) }, [
1763
- t.$slots.media ? (x(), c("div", mr, [E(t.$slots, "media")])) : s("", !0),
1764
- t.$slots.header ? (x(), c("div", hr, [E(t.$slots, "header")])) : s("", !0),
1765
- l("div", gr, [E(t.$slots, "default")]),
1766
- t.$slots.footer ? (x(), c("div", _r, [E(t.$slots, "footer")])) : s("", !0)
1763
+ t.$slots.media ? (x(), c("div", _r, [E(t.$slots, "media")])) : s("", !0),
1764
+ t.$slots.header ? (x(), c("div", vr, [E(t.$slots, "header")])) : s("", !0),
1765
+ l("div", yr, [E(t.$slots, "default")]),
1766
+ t.$slots.footer ? (x(), c("div", br, [E(t.$slots, "footer")])) : s("", !0)
1767
1767
  ], 2));
1768
1768
  }
1769
- }), yr = ["title", "aria-label"], br = ["src", "alt"], xr = /* @__PURE__ */ f({
1769
+ }), Sr = ["title", "aria-label"], Cr = ["src", "alt"], wr = /* @__PURE__ */ f({
1770
1770
  __name: "UidAvatar",
1771
1771
  props: {
1772
1772
  src: { default: void 0 },
@@ -1804,26 +1804,26 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1804
1804
  alt: e.alt ?? e.name,
1805
1805
  class: "uid-avatar__img",
1806
1806
  onError: l
1807
- }, null, 40, br)) : (x(), c("span", {
1807
+ }, null, 40, Cr)) : (x(), c("span", {
1808
1808
  key: 1,
1809
1809
  class: "uid-avatar__initials",
1810
1810
  style: v({ background: s.value }),
1811
1811
  "aria-hidden": "true"
1812
- }, k(r.value), 5))], 10, yr));
1812
+ }, k(r.value), 5))], 10, Sr));
1813
1813
  }
1814
- }), Sr = { class: "uid-avatar-group" }, Cr = ["aria-label"], wr = /* @__PURE__ */ f({
1814
+ }), Tr = { class: "uid-avatar-group" }, Er = ["aria-label"], Dr = /* @__PURE__ */ f({
1815
1815
  __name: "UidAvatarGroup",
1816
1816
  props: { max: { default: void 0 } },
1817
1817
  setup(e) {
1818
1818
  let n = e, r = P(), i = a(() => r.default?.()?.flatMap((e) => e.type === Symbol.for("v-fgt") ? e.children : [e]) ?? []), l = a(() => n.max === void 0 ? i.value : i.value.slice(0, n.max)), u = a(() => n.max === void 0 ? 0 : Math.max(0, i.value.length - n.max));
1819
- return (e, n) => (x(), c("div", Sr, [(x(!0), c(t, null, T(l.value, (e, t) => (x(), o(O(e), { key: t }))), 128)), u.value > 0 ? (x(), c("span", {
1819
+ return (e, n) => (x(), c("div", Tr, [(x(!0), c(t, null, T(l.value, (e, t) => (x(), o(O(e), { key: t }))), 128)), u.value > 0 ? (x(), c("span", {
1820
1820
  key: 0,
1821
1821
  class: "uid-avatar uid-avatar--md uid-avatar--circle uid-avatar-group__overflow",
1822
1822
  "aria-label": `Ещё ${u.value}`,
1823
1823
  role: "img"
1824
- }, " +" + k(u.value), 9, Cr)) : s("", !0)]));
1824
+ }, " +" + k(u.value), 9, Er)) : s("", !0)]));
1825
1825
  }
1826
- }), Tr = /* @__PURE__ */ f({
1826
+ }), Or = /* @__PURE__ */ f({
1827
1827
  __name: "UidTag",
1828
1828
  props: {
1829
1829
  variant: { default: "default" },
@@ -1841,16 +1841,16 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1841
1841
  type: "button",
1842
1842
  class: "uid-tag__dismiss",
1843
1843
  "aria-label": "Удалить",
1844
- onClick: i[0] ||= B((e) => r("dismiss"), ["stop"])
1844
+ onClick: i[0] ||= V((e) => r("dismiss"), ["stop"])
1845
1845
  }, [d(e, {
1846
1846
  icon: j(Z),
1847
1847
  size: 10
1848
1848
  }, null, 8, ["icon"])])) : s("", !0)], 2));
1849
1849
  }
1850
- }), Er = {
1850
+ }), kr = {
1851
1851
  key: 0,
1852
1852
  class: "uid-divider__label"
1853
- }, Dr = /* @__PURE__ */ f({
1853
+ }, Ar = /* @__PURE__ */ f({
1854
1854
  __name: "UidDivider",
1855
1855
  props: {
1856
1856
  label: { default: void 0 },
@@ -1860,9 +1860,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1860
1860
  return (t, n) => (x(), c("div", {
1861
1861
  class: _(["uid-divider", `uid-divider--${e.orientation}`]),
1862
1862
  role: "separator"
1863
- }, [e.label && e.orientation === "horizontal" ? (x(), c("span", Er, k(e.label), 1)) : s("", !0)], 2));
1863
+ }, [e.label && e.orientation === "horizontal" ? (x(), c("span", kr, k(e.label), 1)) : s("", !0)], 2));
1864
1864
  }
1865
- }), Or = Symbol("uid-accordion"), kr = { class: "uid-accordion" }, Ar = /* @__PURE__ */ f({
1865
+ }), jr = Symbol("uid-accordion"), Mr = { class: "uid-accordion" }, Nr = /* @__PURE__ */ f({
1866
1866
  __name: "UidAccordion",
1867
1867
  props: /* @__PURE__ */ m({ multiple: {
1868
1868
  type: Boolean,
@@ -1887,15 +1887,15 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1887
1887
  r.has(e) ? r.delete(e) : r.add(e), t.value = [...r];
1888
1888
  } else t.value = n === e ? "" : e;
1889
1889
  }
1890
- return S(Or, {
1890
+ return S(jr, {
1891
1891
  isOpen: r,
1892
1892
  toggle: i
1893
- }), (e, t) => (x(), c("div", kr, [E(e.$slots, "default")]));
1893
+ }), (e, t) => (x(), c("div", Mr, [E(e.$slots, "default")]));
1894
1894
  }
1895
- }), jr = ["aria-expanded", "disabled"], Mr = { class: "uid-accordion-item__title" }, Nr = {
1895
+ }), Pr = ["aria-expanded", "disabled"], Fr = { class: "uid-accordion-item__title" }, Ir = {
1896
1896
  class: "uid-accordion-item__chevron",
1897
1897
  "aria-hidden": "true"
1898
- }, Pr = ["hidden"], Fr = { class: "uid-accordion-item__body-inner" }, Ir = /* @__PURE__ */ f({
1898
+ }, Lr = ["hidden"], Rr = { class: "uid-accordion-item__body-inner" }, zr = /* @__PURE__ */ f({
1899
1899
  __name: "UidAccordionItem",
1900
1900
  props: {
1901
1901
  value: {},
@@ -1906,7 +1906,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1906
1906
  }
1907
1907
  },
1908
1908
  setup(t) {
1909
- let n = t, r = M(), i = `${r}-header`, o = `${r}-panel`, s = p(Or), f = a(() => s.isOpen(n.value));
1909
+ let n = t, r = M(), i = `${r}-header`, o = `${r}-panel`, s = p(jr), f = a(() => s.isOpen(n.value));
1910
1910
  function m() {
1911
1911
  n.disabled || s.toggle(n.value);
1912
1912
  }
@@ -1921,18 +1921,18 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1921
1921
  "aria-controls": o,
1922
1922
  disabled: t.disabled || void 0,
1923
1923
  onClick: m
1924
- }, [l("span", Mr, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), l("span", Nr, [d(e, {
1925
- icon: j(te),
1924
+ }, [l("span", Fr, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), l("span", Ir, [d(e, {
1925
+ icon: j(Y),
1926
1926
  size: 16
1927
- }, null, 8, ["icon"])])], 8, jr), l("div", {
1927
+ }, null, 8, ["icon"])])], 8, Pr), l("div", {
1928
1928
  id: o,
1929
1929
  class: "uid-accordion-item__body",
1930
1930
  role: "region",
1931
1931
  "aria-labelledby": i,
1932
1932
  hidden: !f.value
1933
- }, [l("div", Fr, [E(n.$slots, "default")])], 8, Pr)], 2));
1933
+ }, [l("div", Rr, [E(n.$slots, "default")])], 8, Lr)], 2));
1934
1934
  }
1935
- }), Lr = { class: "uid-table-scroll" }, Rr = { class: "uid-table__head" }, zr = ["aria-sort", "onClick"], Br = { class: "uid-table__th-content" }, Vr = { class: "uid-table__body" }, Hr = { key: 0 }, Ur = ["colspan"], Wr = { key: 1 }, Gr = ["colspan"], Kr = /* @__PURE__ */ f({
1935
+ }), Br = { class: "uid-table-scroll" }, Vr = { class: "uid-table__head" }, Hr = ["aria-sort", "onClick"], Ur = { class: "uid-table__th-content" }, Wr = { class: "uid-table__body" }, Gr = { key: 0 }, Kr = ["colspan"], qr = { key: 1 }, Jr = ["colspan"], Yr = /* @__PURE__ */ f({
1936
1936
  __name: "UidTable",
1937
1937
  props: {
1938
1938
  columns: {},
@@ -1960,10 +1960,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1960
1960
  e.sortable && (i.sortKey === e.key ? f("update:sortDirection", i.sortDirection === "asc" ? "desc" : "asc") : (f("update:sortKey", e.key), f("update:sortDirection", "asc")));
1961
1961
  }
1962
1962
  function m(e) {
1963
- return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ? G : U : ee : null;
1963
+ return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ? K : W : ee : null;
1964
1964
  }
1965
1965
  let h = a(() => !i.loading && i.data.length === 0);
1966
- return (r, i) => (x(), c("div", { class: _(["uid-table-wrap", { "uid-table-wrap--bordered": n.bordered }]) }, [l("div", Lr, [l("table", { class: _(["uid-table", { "uid-table--striped": n.striped }]) }, [l("thead", Rr, [l("tr", null, [(x(!0), c(t, null, T(n.columns, (t) => (x(), c("th", {
1966
+ return (r, i) => (x(), c("div", { class: _(["uid-table-wrap", { "uid-table-wrap--bordered": n.bordered }]) }, [l("div", Br, [l("table", { class: _(["uid-table", { "uid-table--striped": n.striped }]) }, [l("thead", Vr, [l("tr", null, [(x(!0), c(t, null, T(n.columns, (t) => (x(), c("th", {
1967
1967
  key: t.key,
1968
1968
  class: _(["uid-table__th", [
1969
1969
  `uid-table__th--${t.align ?? "left"}`,
@@ -1973,18 +1973,18 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1973
1973
  style: v(t.width ? { width: t.width } : void 0),
1974
1974
  "aria-sort": n.sortKey === t.key ? n.sortDirection === "asc" ? "ascending" : "descending" : t.sortable ? "none" : void 0,
1975
1975
  onClick: (e) => p(t)
1976
- }, [l("span", Br, [u(k(t.label) + " ", 1), t.sortable ? (x(), o(e, {
1976
+ }, [l("span", Ur, [u(k(t.label) + " ", 1), t.sortable ? (x(), o(e, {
1977
1977
  key: 0,
1978
1978
  icon: m(t),
1979
1979
  size: 14,
1980
1980
  class: "uid-table__sort-icon"
1981
- }, null, 8, ["icon"])) : s("", !0)])], 14, zr))), 128))])]), l("tbody", Vr, [n.loading ? (x(), c("tr", Hr, [l("td", {
1981
+ }, null, 8, ["icon"])) : s("", !0)])], 14, Hr))), 128))])]), l("tbody", Wr, [n.loading ? (x(), c("tr", Gr, [l("td", {
1982
1982
  colspan: n.columns.length,
1983
1983
  class: "uid-table__td uid-table__td--center"
1984
- }, [d(kt, { size: "md" })], 8, Ur)])) : h.value ? (x(), c("tr", Wr, [l("td", {
1984
+ }, [d(Mt, { size: "md" })], 8, Kr)])) : h.value ? (x(), c("tr", qr, [l("td", {
1985
1985
  colspan: n.columns.length,
1986
1986
  class: "uid-table__td uid-table__td--empty"
1987
- }, [E(r.$slots, "empty", {}, () => [u(k(n.emptyText), 1)])], 8, Gr)])) : (x(!0), c(t, { key: 2 }, T(n.data, (e, i) => (x(), c("tr", {
1987
+ }, [E(r.$slots, "empty", {}, () => [u(k(n.emptyText), 1)])], 8, Jr)])) : (x(!0), c(t, { key: 2 }, T(n.data, (e, i) => (x(), c("tr", {
1988
1988
  key: i,
1989
1989
  class: "uid-table__row"
1990
1990
  }, [(x(!0), c(t, null, T(n.columns, (t) => (x(), c("td", {
@@ -1992,29 +1992,29 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
1992
1992
  class: _(["uid-table__td", `uid-table__td--${t.align ?? "left"}`])
1993
1993
  }, [E(r.$slots, t.key, { row: e }, () => [u(k(e[t.key]), 1)])], 2))), 128))]))), 128))])], 2)])], 2));
1994
1994
  }
1995
- }), qr = [
1995
+ }), Xr = [
1996
1996
  "aria-expanded",
1997
1997
  "aria-controls",
1998
1998
  "aria-disabled"
1999
- ], Jr = { class: "uid-select__suffix" }, Yr = {
1999
+ ], Zr = { class: "uid-select__suffix" }, Qr = {
2000
2000
  key: 0,
2001
2001
  class: "uid-select__dropdown"
2002
- }, Xr = {
2002
+ }, $r = {
2003
2003
  key: 0,
2004
2004
  class: "uid-select__search"
2005
- }, Zr = ["id"], Qr = {
2005
+ }, ei = ["id"], ti = {
2006
2006
  key: 0,
2007
2007
  class: "uid-select__group-label"
2008
- }, $r = [
2008
+ }, ni = [
2009
2009
  "data-active",
2010
2010
  "aria-selected",
2011
2011
  "aria-disabled",
2012
2012
  "onClick",
2013
2013
  "onMouseenter"
2014
- ], ei = {
2014
+ ], ri = {
2015
2015
  key: 1,
2016
2016
  class: "uid-select__empty"
2017
- }, ti = /* @__PURE__ */ f({
2017
+ }, ii = /* @__PURE__ */ f({
2018
2018
  __name: "UidSelect",
2019
2019
  props: /* @__PURE__ */ m({
2020
2020
  options: {},
@@ -2050,47 +2050,47 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2050
2050
  }
2051
2051
  return e;
2052
2052
  });
2053
- L(m, async (e) => {
2053
+ R(m, async (e) => {
2054
2054
  if (e) {
2055
2055
  h.value = "";
2056
2056
  let e = A.value.findIndex((e) => e.value === p.value);
2057
2057
  v.value = e >= 0 ? e : 0, await g(), u.searchable && E.value?.focus(), X(), document.addEventListener("pointerdown", W);
2058
2058
  } else document.removeEventListener("pointerdown", W);
2059
- }), L(h, () => {
2059
+ }), R(h, () => {
2060
2060
  v.value = 0;
2061
2061
  });
2062
2062
  function F() {
2063
2063
  u.disabled || (m.value = !0);
2064
2064
  }
2065
- function B() {
2065
+ function L() {
2066
2066
  m.value = !1;
2067
2067
  }
2068
2068
  function V() {
2069
- m.value ? B() : F();
2069
+ m.value ? L() : F();
2070
2070
  }
2071
2071
  function H(e) {
2072
- e.disabled || (p.value = e.value, f("change", e.value), B(), S.value?.focus());
2072
+ e.disabled || (p.value = e.value, f("change", e.value), L(), S.value?.focus());
2073
2073
  }
2074
2074
  function U(e) {
2075
2075
  e.stopPropagation(), p.value = null, f("change", null);
2076
2076
  }
2077
2077
  function W(e) {
2078
2078
  let t = e.target;
2079
- y.value?.contains(t) || B();
2079
+ y.value?.contains(t) || L();
2080
2080
  }
2081
2081
  function G(e) {
2082
- e.key === "ArrowDown" ? (e.preventDefault(), m.value ? K() : F()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value && J()) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), m.value ? Y() : F()) : e.key === "Escape" && B();
2082
+ e.key === "ArrowDown" ? (e.preventDefault(), m.value ? ee() : F()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value && te()) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), m.value ? J() : F()) : e.key === "Escape" && L();
2083
2083
  }
2084
- function ee(e) {
2085
- e.key === "ArrowDown" ? (e.preventDefault(), K()) : e.key === "ArrowUp" ? (e.preventDefault(), J()) : e.key === "Enter" ? (e.preventDefault(), Y()) : e.key === "Escape" && (B(), S.value?.focus());
2084
+ function K(e) {
2085
+ e.key === "ArrowDown" ? (e.preventDefault(), ee()) : e.key === "ArrowUp" ? (e.preventDefault(), te()) : e.key === "Enter" ? (e.preventDefault(), J()) : e.key === "Escape" && (L(), S.value?.focus());
2086
2086
  }
2087
- function K() {
2087
+ function ee() {
2088
2088
  v.value = Math.min(v.value + 1, A.value.length - 1), X();
2089
2089
  }
2090
- function J() {
2090
+ function te() {
2091
2091
  v.value = Math.max(v.value - 1, 0), X();
2092
2092
  }
2093
- function Y() {
2093
+ function J() {
2094
2094
  let e = A.value[v.value];
2095
2095
  e && H(e);
2096
2096
  }
@@ -2118,7 +2118,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2118
2118
  "aria-disabled": n.disabled,
2119
2119
  onClick: V,
2120
2120
  onKeydown: G
2121
- }, [l("span", { class: _(["uid-select__value", { "uid-select__value--placeholder": !O.value }]) }, k(O.value?.label ?? n.placeholder), 3), l("div", Jr, [n.clearable && p.value !== null ? (x(), c("button", {
2121
+ }, [l("span", { class: _(["uid-select__value", { "uid-select__value--placeholder": !O.value }]) }, k(O.value?.label ?? n.placeholder), 3), l("div", Zr, [n.clearable && p.value !== null ? (x(), c("button", {
2122
2122
  key: 0,
2123
2123
  type: "button",
2124
2124
  class: "uid-select__clear",
@@ -2128,12 +2128,12 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2128
2128
  icon: j(Z),
2129
2129
  size: 12
2130
2130
  }, null, 8, ["icon"])])) : s("", !0), d(e, {
2131
- icon: j(te),
2131
+ icon: j(Y),
2132
2132
  size: 16,
2133
2133
  class: _(["uid-select__chevron", { "uid-select__chevron--open": m.value }]),
2134
2134
  "aria-hidden": "true"
2135
- }, null, 8, ["icon", "class"])])], 40, qr), d(r, { name: "uid-select-dropdown" }, {
2136
- default: R(() => [m.value ? (x(), c("div", Yr, [n.searchable ? (x(), c("div", Xr, [z(l("input", {
2135
+ }, null, 8, ["icon", "class"])])], 40, Xr), d(r, { name: "uid-select-dropdown" }, {
2136
+ default: z(() => [m.value ? (x(), c("div", Qr, [n.searchable ? (x(), c("div", $r, [B(l("input", {
2137
2137
  ref_key: "searchRef",
2138
2138
  ref: E,
2139
2139
  "onUpdate:modelValue": a[0] ||= (e) => h.value = e,
@@ -2141,15 +2141,15 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2141
2141
  type: "text",
2142
2142
  placeholder: "Поиск...",
2143
2143
  autocomplete: "off",
2144
- onKeydown: ee
2144
+ onKeydown: K
2145
2145
  }, null, 544), [[I, h.value]])])) : s("", !0), l("div", {
2146
2146
  id: j(D),
2147
2147
  ref_key: "listRef",
2148
2148
  ref: C,
2149
2149
  class: "uid-select__list",
2150
2150
  role: "listbox",
2151
- onKeydown: ee
2152
- }, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(P.value, ([n, r]) => (x(), c(t, { key: n }, [n ? (x(), c("div", Qr, k(n), 1)) : s("", !0), (x(!0), c(t, null, T(r, (t) => (x(), c("button", {
2151
+ onKeydown: K
2152
+ }, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(P.value, ([n, r]) => (x(), c(t, { key: n }, [n ? (x(), c("div", ti, k(n), 1)) : s("", !0), (x(!0), c(t, null, T(r, (t) => (x(), c("button", {
2153
2153
  key: t.value,
2154
2154
  type: "button",
2155
2155
  class: _(["uid-select__option", {
@@ -2169,21 +2169,21 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2169
2169
  size: 14,
2170
2170
  "aria-hidden": "true",
2171
2171
  class: "uid-select__check"
2172
- }, null, 8, ["icon"])) : s("", !0)], 42, $r))), 128))], 64))), 128)) : (x(), c("div", ei, " Ничего не найдено "))], 40, Zr)])) : s("", !0)]),
2172
+ }, null, 8, ["icon"])) : s("", !0)], 42, ni))), 128))], 64))), 128)) : (x(), c("div", ri, " Ничего не найдено "))], 40, ei)])) : s("", !0)]),
2173
2173
  _: 1
2174
2174
  })], 2));
2175
2175
  }
2176
- }), ni = ["aria-expanded", "aria-disabled"], ri = { class: "uid-datepicker__suffix" }, ii = {
2176
+ }), ai = ["aria-expanded", "aria-disabled"], oi = { class: "uid-datepicker__suffix" }, si = {
2177
2177
  key: 0,
2178
2178
  class: "uid-datepicker__panel",
2179
2179
  role: "dialog",
2180
2180
  "aria-label": "Выбор даты"
2181
- }, ai = { class: "uid-datepicker__nav" }, oi = { class: "uid-datepicker__month-label" }, si = { class: "uid-datepicker__grid" }, ci = [
2181
+ }, ci = { class: "uid-datepicker__nav" }, li = { class: "uid-datepicker__month-label" }, ui = { class: "uid-datepicker__grid" }, di = [
2182
2182
  "disabled",
2183
2183
  "aria-current",
2184
2184
  "aria-selected",
2185
2185
  "onClick"
2186
- ], li = /* @__PURE__ */ f({
2186
+ ], fi = /* @__PURE__ */ f({
2187
2187
  __name: "UidDatePicker",
2188
2188
  props: /* @__PURE__ */ m({
2189
2189
  min: { default: void 0 },
@@ -2283,7 +2283,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2283
2283
  function I() {
2284
2284
  u.value ? F() : P();
2285
2285
  }
2286
- function z(e) {
2286
+ function L(e) {
2287
2287
  M(e.iso) || (o.value = e.iso, F(), p.value?.focus());
2288
2288
  }
2289
2289
  function B() {
@@ -2299,7 +2299,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2299
2299
  let t = e.target;
2300
2300
  f.value?.contains(t) || F();
2301
2301
  }
2302
- L(u, (e) => {
2302
+ R(u, (e) => {
2303
2303
  e ? document.addEventListener("pointerdown", U) : document.removeEventListener("pointerdown", U);
2304
2304
  });
2305
2305
  function W(e) {
@@ -2321,39 +2321,39 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2321
2321
  "aria-disabled": n.disabled,
2322
2322
  onClick: I,
2323
2323
  onKeydown: W
2324
- }, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !o.value }]) }, k(o.value ? D.value : n.placeholder), 3), l("div", ri, [o.value ? (x(), c("button", {
2324
+ }, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !o.value }]) }, k(o.value ? D.value : n.placeholder), 3), l("div", oi, [o.value ? (x(), c("button", {
2325
2325
  key: 0,
2326
2326
  type: "button",
2327
2327
  class: "uid-datepicker__clear",
2328
2328
  "aria-label": "Очистить",
2329
2329
  onClick: H
2330
2330
  }, " × ")) : s("", !0), d(e, {
2331
- icon: j(te),
2331
+ icon: j(Y),
2332
2332
  size: 16,
2333
2333
  class: _(["uid-datepicker__chevron", { "uid-datepicker__chevron--open": u.value }]),
2334
2334
  "aria-hidden": "true"
2335
- }, null, 8, ["icon", "class"])])], 40, ni), d(r, { name: "uid-datepicker-panel" }, {
2336
- default: R(() => [u.value ? (x(), c("div", ii, [l("div", ai, [
2335
+ }, null, 8, ["icon", "class"])])], 40, ai), d(r, { name: "uid-datepicker-panel" }, {
2336
+ default: z(() => [u.value ? (x(), c("div", si, [l("div", ci, [
2337
2337
  l("button", {
2338
2338
  type: "button",
2339
2339
  class: "uid-datepicker__nav-btn",
2340
2340
  "aria-label": "Предыдущий месяц",
2341
2341
  onClick: B
2342
2342
  }, [d(e, {
2343
- icon: j(Y),
2343
+ icon: j(X),
2344
2344
  size: 16
2345
2345
  }, null, 8, ["icon"])]),
2346
- l("span", oi, k(v[g.value]) + " " + k(h.value), 1),
2346
+ l("span", li, k(v[g.value]) + " " + k(h.value), 1),
2347
2347
  l("button", {
2348
2348
  type: "button",
2349
2349
  class: "uid-datepicker__nav-btn",
2350
2350
  "aria-label": "Следующий месяц",
2351
2351
  onClick: V
2352
2352
  }, [d(e, {
2353
- icon: j(X),
2353
+ icon: j(ne),
2354
2354
  size: 16
2355
2355
  }, null, 8, ["icon"])])
2356
- ]), l("div", si, [(x(), c(t, null, T(y, (e) => l("span", {
2356
+ ]), l("div", ui, [(x(), c(t, null, T(y, (e) => l("span", {
2357
2357
  key: e,
2358
2358
  class: "uid-datepicker__weekday"
2359
2359
  }, k(e), 1)), 64)), (x(!0), c(t, null, T(O.value, (e) => (x(), c("button", {
@@ -2368,12 +2368,12 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2368
2368
  disabled: M(e.iso),
2369
2369
  "aria-current": e.iso === A.value ? "date" : void 0,
2370
2370
  "aria-selected": e.iso === o.value,
2371
- onClick: (t) => z(e)
2372
- }, k(e.date.getDate()), 11, ci))), 128))])])) : s("", !0)]),
2371
+ onClick: (t) => L(e)
2372
+ }, k(e.date.getDate()), 11, di))), 128))])])) : s("", !0)]),
2373
2373
  _: 1
2374
2374
  })], 2));
2375
2375
  }
2376
- }), ui = /* @__PURE__ */ f({
2376
+ }), pi = /* @__PURE__ */ f({
2377
2377
  __name: "UidVirtualList",
2378
2378
  props: {
2379
2379
  items: {},
@@ -2415,17 +2415,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2415
2415
  index: r
2416
2416
  })], 4))), 128))], 4)], 4)], 36));
2417
2417
  }
2418
- }), di = {
2418
+ }), mi = {
2419
2419
  key: 0,
2420
2420
  class: "uid-slider__header"
2421
- }, fi = {
2421
+ }, hi = {
2422
2422
  key: 0,
2423
2423
  class: "uid-slider__label"
2424
- }, pi = {
2424
+ }, gi = {
2425
2425
  key: 1,
2426
2426
  class: "uid-slider__value",
2427
2427
  "aria-live": "polite"
2428
- }, mi = [
2428
+ }, _i = [
2429
2429
  "min",
2430
2430
  "max",
2431
2431
  "step",
@@ -2434,7 +2434,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2434
2434
  "aria-valuemin",
2435
2435
  "aria-valuemax",
2436
2436
  "aria-valuenow"
2437
- ], hi = /* @__PURE__ */ f({
2437
+ ], vi = /* @__PURE__ */ f({
2438
2438
  __name: "UidSlider",
2439
2439
  props: /* @__PURE__ */ m({
2440
2440
  min: { default: 0 },
@@ -2460,7 +2460,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2460
2460
  emits: ["update:modelValue"],
2461
2461
  setup(e) {
2462
2462
  let t = e, n = N(e, "modelValue"), r = a(() => (n.value - t.min) / (t.max - t.min) * 100), i = a(() => t.formatValue ? t.formatValue(n.value) : String(n.value));
2463
- return (t, a) => (x(), c("div", { class: _(["uid-slider", { "uid-slider--disabled": e.disabled }]) }, [e.label || e.showValue ? (x(), c("div", di, [e.label ? (x(), c("label", fi, k(e.label), 1)) : s("", !0), e.showValue ? (x(), c("span", pi, k(i.value), 1)) : s("", !0)])) : s("", !0), z(l("input", {
2463
+ return (t, a) => (x(), c("div", { class: _(["uid-slider", { "uid-slider--disabled": e.disabled }]) }, [e.label || e.showValue ? (x(), c("div", mi, [e.label ? (x(), c("label", hi, k(e.label), 1)) : s("", !0), e.showValue ? (x(), c("span", gi, k(i.value), 1)) : s("", !0)])) : s("", !0), B(l("input", {
2464
2464
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
2465
2465
  class: "uid-slider__input",
2466
2466
  type: "range",
@@ -2473,22 +2473,22 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2473
2473
  "aria-valuemax": e.max,
2474
2474
  "aria-valuenow": n.value,
2475
2475
  style: v({ "--_fill": `${r.value}%` })
2476
- }, null, 12, mi), [[
2476
+ }, null, 12, _i), [[
2477
2477
  I,
2478
2478
  n.value,
2479
2479
  void 0,
2480
2480
  { number: !0 }
2481
2481
  ]])], 2));
2482
2482
  }
2483
- }), gi = ["aria-expanded", "aria-disabled"], _i = {
2483
+ }), yi = ["aria-expanded", "aria-disabled"], bi = {
2484
2484
  key: 0,
2485
2485
  class: "uid-colorpicker__panel",
2486
2486
  role: "dialog",
2487
2487
  "aria-label": "Выбор цвета"
2488
- }, vi = { class: "uid-colorpicker__controls" }, yi = { class: "uid-colorpicker__sliders" }, bi = { class: "uid-colorpicker__inputs" }, xi = ["value"], Si = {
2488
+ }, xi = { class: "uid-colorpicker__controls" }, Si = { class: "uid-colorpicker__sliders" }, Ci = { class: "uid-colorpicker__inputs" }, wi = ["value"], Ti = {
2489
2489
  key: 0,
2490
2490
  class: "uid-colorpicker__presets"
2491
- }, Ci = ["aria-label", "onClick"], wi = /* @__PURE__ */ f({
2491
+ }, Ei = ["aria-label", "onClick"], Di = /* @__PURE__ */ f({
2492
2492
  __name: "UidColorPicker",
2493
2493
  props: /* @__PURE__ */ m({
2494
2494
  disabled: {
@@ -2530,7 +2530,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2530
2530
  let [e, t, n] = M(f.value, p.value, m.value);
2531
2531
  return i.alpha && h.value < 100 ? `#${F(e)}${F(t)}${F(n)}${F(h.value / 100 * 255)}` : `#${F(e)}${F(t)}${F(n)}`;
2532
2532
  }
2533
- function z(e) {
2533
+ function L(e) {
2534
2534
  let t = e.replace("#", "").toLowerCase();
2535
2535
  if (t.length === 6) {
2536
2536
  let e = parseInt(t.slice(0, 2), 16), n = parseInt(t.slice(2, 4), 16), r = parseInt(t.slice(4, 6), 16);
@@ -2554,7 +2554,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2554
2554
  }
2555
2555
  function B() {
2556
2556
  if (!u.value) return;
2557
- let e = z(u.value);
2557
+ let e = L(u.value);
2558
2558
  if (!e) return;
2559
2559
  let [t, n, r, i] = e, [a, o, s] = P(t, n, r);
2560
2560
  f.value = a, p.value = o, m.value = s, h.value = i, D.value = I().toUpperCase();
@@ -2563,11 +2563,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2563
2563
  let e = I();
2564
2564
  u.value = e, o("change", e), D.value = e.toUpperCase();
2565
2565
  }
2566
- let H = a(() => `hsl(${f.value}, 100%, 50%)`), U = a(() => `${p.value}%`), W = a(() => `${100 - m.value}%`), G = a(() => `${f.value / 360 * 100}%`), ee = a(() => `${h.value}%`), [K, q, J] = [
2566
+ let H = a(() => `hsl(${f.value}, 100%, 50%)`), U = a(() => `${p.value}%`), W = a(() => `${100 - m.value}%`), G = a(() => `${f.value / 360 * 100}%`), K = a(() => `${h.value}%`), [ee, te, q] = [
2567
2567
  a(() => M(f.value, p.value, m.value)[0]),
2568
2568
  a(() => M(f.value, p.value, m.value)[1]),
2569
2569
  a(() => M(f.value, p.value, m.value)[2])
2570
- ], te = a(() => `rgb(${K.value}, ${q.value}, ${J.value})`);
2570
+ ], J = a(() => `rgb(${ee.value}, ${te.value}, ${q.value})`);
2571
2571
  function Y(e, t) {
2572
2572
  if (!e) return null;
2573
2573
  let n = e.getBoundingClientRect();
@@ -2619,7 +2619,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2619
2619
  D.value = e.target.value;
2620
2620
  }
2621
2621
  function de() {
2622
- let e = z(D.value);
2622
+ let e = L(D.value);
2623
2623
  if (e) {
2624
2624
  let [t, n, r, a] = e, [o, s, c] = P(t, n, r);
2625
2625
  f.value = o, p.value = s, m.value = c, i.alpha && (h.value = a), V();
@@ -2628,25 +2628,25 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2628
2628
  function fe(e) {
2629
2629
  e.key === "Enter" && de();
2630
2630
  }
2631
- function Z(e) {
2632
- let t = z(e);
2631
+ function pe(e) {
2632
+ let t = L(e);
2633
2633
  if (!t) return;
2634
2634
  let [n, r, a, o] = t, [s, c, l] = P(n, r, a);
2635
2635
  f.value = s, p.value = c, m.value = l, i.alpha && (h.value = o), V();
2636
2636
  }
2637
- function pe() {
2637
+ function me() {
2638
2638
  i.disabled || (B(), u.value || (D.value = ""), g.value = !0);
2639
2639
  }
2640
- function me() {
2640
+ function Z() {
2641
2641
  g.value = !1;
2642
2642
  }
2643
2643
  function he() {
2644
- g.value ? me() : pe();
2644
+ g.value ? Z() : me();
2645
2645
  }
2646
2646
  function ge(e) {
2647
- y.value?.contains(e.target) || me();
2647
+ y.value?.contains(e.target) || Z();
2648
2648
  }
2649
- return L(g, (e) => {
2649
+ return R(g, (e) => {
2650
2650
  e ? document.addEventListener("pointerdown", ge) : document.removeEventListener("pointerdown", ge);
2651
2651
  }), b(() => document.removeEventListener("pointerdown", ge)), (n, i) => (x(), c("div", {
2652
2652
  ref_key: "containerRef",
@@ -2664,8 +2664,8 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2664
2664
  }, [l("span", {
2665
2665
  class: "uid-colorpicker__swatch",
2666
2666
  style: v(u.value ? { background: u.value } : {})
2667
- }, null, 4), l("span", { class: _(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, k(u.value ? u.value.toUpperCase() : "Выберите цвет"), 3)], 8, gi), d(r, { name: "uid-colorpicker-panel" }, {
2668
- default: R(() => [g.value ? (x(), c("div", _i, [
2667
+ }, null, 4), l("span", { class: _(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, k(u.value ? u.value.toUpperCase() : "Выберите цвет"), 3)], 8, yi), d(r, { name: "uid-colorpicker-panel" }, {
2668
+ default: z(() => [g.value ? (x(), c("div", bi, [
2669
2669
  l("div", {
2670
2670
  ref_key: "gradientRef",
2671
2671
  ref: S,
@@ -2681,7 +2681,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2681
2681
  top: W.value
2682
2682
  })
2683
2683
  }, null, 4)], 36),
2684
- l("div", vi, [l("div", yi, [l("div", {
2684
+ l("div", xi, [l("div", Si, [l("div", {
2685
2685
  ref_key: "hueSliderRef",
2686
2686
  ref: C,
2687
2687
  class: "uid-colorpicker__hue-track",
@@ -2696,18 +2696,18 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2696
2696
  ref_key: "alphaSliderRef",
2697
2697
  ref: E,
2698
2698
  class: "uid-colorpicker__alpha-track",
2699
- style: v({ "--_color": te.value }),
2699
+ style: v({ "--_color": J.value }),
2700
2700
  onPointerdown: se,
2701
2701
  onPointermove: ce,
2702
2702
  onPointerup: le
2703
2703
  }, [l("div", {
2704
2704
  class: "uid-colorpicker__track-thumb",
2705
- style: v({ left: ee.value })
2705
+ style: v({ left: K.value })
2706
2706
  }, null, 4)], 36)) : s("", !0)]), l("span", {
2707
2707
  class: "uid-colorpicker__preview",
2708
- style: v({ background: te.value })
2708
+ style: v({ background: J.value })
2709
2709
  }, null, 4)]),
2710
- l("div", bi, [i[0] ||= l("label", { class: "uid-colorpicker__input-label" }, "HEX", -1), l("input", {
2710
+ l("div", Ci, [i[0] ||= l("label", { class: "uid-colorpicker__input-label" }, "HEX", -1), l("input", {
2711
2711
  class: "uid-colorpicker__hex-input",
2712
2712
  type: "text",
2713
2713
  value: D.value,
@@ -2716,37 +2716,37 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2716
2716
  onInput: ue,
2717
2717
  onBlur: de,
2718
2718
  onKeydown: fe
2719
- }, null, 40, xi)]),
2720
- e.presets && e.presets.length ? (x(), c("div", Si, [(x(!0), c(t, null, T(e.presets, (e) => (x(), c("button", {
2719
+ }, null, 40, wi)]),
2720
+ e.presets && e.presets.length ? (x(), c("div", Ti, [(x(!0), c(t, null, T(e.presets, (e) => (x(), c("button", {
2721
2721
  key: e,
2722
2722
  type: "button",
2723
2723
  class: _(["uid-colorpicker__preset", { "uid-colorpicker__preset--active": u.value === e || u.value === e.toLowerCase() || u.value?.toUpperCase() === e.toUpperCase() }]),
2724
2724
  style: v({ background: e }),
2725
2725
  "aria-label": e,
2726
- onClick: (t) => Z(e)
2727
- }, null, 14, Ci))), 128))])) : s("", !0)
2726
+ onClick: (t) => pe(e)
2727
+ }, null, 14, Ei))), 128))])) : s("", !0)
2728
2728
  ])) : s("", !0)]),
2729
2729
  _: 1
2730
2730
  })], 2));
2731
2731
  }
2732
- }), Ti = { class: "uid-command__search" }, Ei = ["placeholder"], Di = {
2732
+ }), Oi = { class: "uid-command__search" }, ki = ["placeholder"], Ai = {
2733
2733
  key: 0,
2734
2734
  class: "uid-command__group-label"
2735
- }, Oi = [
2735
+ }, ji = [
2736
2736
  "data-active",
2737
2737
  "aria-selected",
2738
2738
  "onClick",
2739
2739
  "onMouseenter"
2740
- ], ki = { class: "uid-command__item-text" }, Ai = { class: "uid-command__item-label" }, ji = {
2740
+ ], Mi = { class: "uid-command__item-text" }, Ni = { class: "uid-command__item-label" }, Pi = {
2741
2741
  key: 0,
2742
2742
  class: "uid-command__item-desc"
2743
- }, Mi = {
2743
+ }, Fi = {
2744
2744
  key: 0,
2745
2745
  class: "uid-command__item-shortcut"
2746
- }, Ni = {
2746
+ }, Ii = {
2747
2747
  key: 1,
2748
2748
  class: "uid-command__empty"
2749
- }, Pi = /* @__PURE__ */ f({
2749
+ }, Li = /* @__PURE__ */ f({
2750
2750
  __name: "UidCommand",
2751
2751
  props: /* @__PURE__ */ m({
2752
2752
  commands: {},
@@ -2761,7 +2761,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2761
2761
  }),
2762
2762
  emits: ["update:modelValue"],
2763
2763
  setup(i) {
2764
- let u = i, f = N(i, "modelValue"), p = w(""), m = w(0), h = w(null), v = w(null), S = w(null), { activate: C, deactivate: E } = en(h), { lock: D, unlock: O } = nn(), A = a(() => {
2764
+ let u = i, f = N(i, "modelValue"), p = w(""), m = w(0), h = w(null), v = w(null), S = w(null), { activate: C, deactivate: E } = rn(h), { lock: D, unlock: O } = on(), A = a(() => {
2765
2765
  let e = p.value.trim().toLowerCase();
2766
2766
  return e ? u.commands.filter((t) => t.label.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e)) : u.commands;
2767
2767
  }), M = a(() => {
@@ -2772,9 +2772,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2772
2772
  }
2773
2773
  return e;
2774
2774
  });
2775
- L(f, async (e) => {
2775
+ R(f, async (e) => {
2776
2776
  e ? (p.value = "", m.value = 0, D(), await g(), C(), v.value?.focus(), document.addEventListener("keydown", U)) : (O(), E(), document.removeEventListener("keydown", U));
2777
- }), L(p, () => {
2777
+ }), R(p, () => {
2778
2778
  m.value = 0;
2779
2779
  });
2780
2780
  function P() {
@@ -2783,12 +2783,12 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2783
2783
  function F(e) {
2784
2784
  e.action(), P();
2785
2785
  }
2786
- function V() {
2786
+ function L() {
2787
2787
  let e = A.value[m.value];
2788
2788
  e && F(e);
2789
2789
  }
2790
2790
  function H(e) {
2791
- e.key === "ArrowDown" ? (e.preventDefault(), m.value = Math.min(m.value + 1, A.value.length - 1), W()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = Math.max(m.value - 1, 0), W()) : e.key === "Enter" && (e.preventDefault(), V());
2791
+ e.key === "ArrowDown" ? (e.preventDefault(), m.value = Math.min(m.value + 1, A.value.length - 1), W()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = Math.max(m.value - 1, 0), W()) : e.key === "Enter" && (e.preventDefault(), L());
2792
2792
  }
2793
2793
  function U(e) {
2794
2794
  e.key === "Escape" && P();
@@ -2804,10 +2804,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2804
2804
  return y(() => document.addEventListener("keydown", G)), b(() => {
2805
2805
  document.removeEventListener("keydown", G), document.removeEventListener("keydown", U), O(), E();
2806
2806
  }), (a, u) => (x(), o(n, { to: "body" }, [d(r, { name: "uid-command" }, {
2807
- default: R(() => [f.value ? (x(), c("div", {
2807
+ default: z(() => [f.value ? (x(), c("div", {
2808
2808
  key: 0,
2809
2809
  class: "uid-command-overlay",
2810
- onClick: B(P, ["self"])
2810
+ onClick: V(P, ["self"])
2811
2811
  }, [l("div", {
2812
2812
  ref_key: "panelRef",
2813
2813
  ref: h,
@@ -2816,12 +2816,12 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2816
2816
  "aria-modal": "true",
2817
2817
  "aria-label": "Палитра команд",
2818
2818
  onKeydown: H
2819
- }, [l("div", Ti, [d(e, {
2820
- icon: j(le),
2819
+ }, [l("div", Oi, [d(e, {
2820
+ icon: j(ue),
2821
2821
  size: 16,
2822
2822
  class: "uid-command__search-icon",
2823
2823
  "aria-hidden": "true"
2824
- }, null, 8, ["icon"]), z(l("input", {
2824
+ }, null, 8, ["icon"]), B(l("input", {
2825
2825
  ref_key: "inputRef",
2826
2826
  ref: v,
2827
2827
  "onUpdate:modelValue": u[0] ||= (e) => p.value = e,
@@ -2831,12 +2831,12 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2831
2831
  autocomplete: "off",
2832
2832
  spellcheck: "false",
2833
2833
  "aria-autocomplete": "list"
2834
- }, null, 8, Ei), [[I, p.value]])]), l("div", {
2834
+ }, null, 8, ki), [[I, p.value]])]), l("div", {
2835
2835
  ref_key: "listRef",
2836
2836
  ref: S,
2837
2837
  class: "uid-command__list",
2838
2838
  role: "listbox"
2839
- }, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div", Di, k(e), 1)) : s("", !0), (x(!0), c(t, null, T(n, (e) => (x(), c("button", {
2839
+ }, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div", Ai, k(e), 1)) : s("", !0), (x(!0), c(t, null, T(n, (e) => (x(), c("button", {
2840
2840
  key: e.id,
2841
2841
  class: _(["uid-command__item", { "uid-command__item--active": A.value.indexOf(e) === m.value }]),
2842
2842
  "data-active": A.value.indexOf(e) === m.value ? "true" : void 0,
@@ -2845,18 +2845,18 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2845
2845
  type: "button",
2846
2846
  onClick: (t) => F(e),
2847
2847
  onMouseenter: (t) => m.value = A.value.indexOf(e)
2848
- }, [l("div", ki, [l("span", Ai, k(e.label), 1), e.description ? (x(), c("span", ji, k(e.description), 1)) : s("", !0)]), e.shortcut ? (x(), c("div", Mi, [(x(!0), c(t, null, T(e.shortcut, (e) => (x(), c("kbd", {
2848
+ }, [l("div", Mi, [l("span", Ni, k(e.label), 1), e.description ? (x(), c("span", Pi, k(e.description), 1)) : s("", !0)]), e.shortcut ? (x(), c("div", Fi, [(x(!0), c(t, null, T(e.shortcut, (e) => (x(), c("kbd", {
2849
2849
  key: e,
2850
2850
  class: "uid-command__kbd"
2851
- }, k(e), 1))), 128))])) : s("", !0)], 42, Oi))), 128))], 64))), 128)) : (x(), c("div", Ni, k(i.emptyText), 1))], 512)], 544)])) : s("", !0)]),
2851
+ }, k(e), 1))), 128))])) : s("", !0)], 42, ji))), 128))], 64))), 128)) : (x(), c("div", Ii, k(i.emptyText), 1))], 512)], 544)])) : s("", !0)]),
2852
2852
  _: 1
2853
2853
  })]));
2854
2854
  }
2855
- }), Fi = ["for"], Ii = {
2855
+ }), Ri = ["for"], zi = {
2856
2856
  key: 0,
2857
2857
  class: "uid-number-input__required",
2858
2858
  "aria-hidden": "true"
2859
- }, Li = { class: "uid-number-input__control" }, Ri = ["disabled", "aria-label"], zi = [
2859
+ }, Bi = { class: "uid-number-input__control" }, Vi = ["disabled", "aria-label"], Hi = [
2860
2860
  "id",
2861
2861
  "name",
2862
2862
  "placeholder",
@@ -2869,7 +2869,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2869
2869
  "value",
2870
2870
  "aria-invalid",
2871
2871
  "aria-describedby"
2872
- ], Bi = ["disabled", "aria-label"], Vi = ["id"], Hi = /* @__PURE__ */ f({
2872
+ ], Ui = ["disabled", "aria-label"], Wi = ["id"], Gi = /* @__PURE__ */ f({
2873
2873
  __name: "UidNumberInput",
2874
2874
  props: /* @__PURE__ */ m({
2875
2875
  min: { default: void 0 },
@@ -2962,8 +2962,8 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2962
2962
  key: 0,
2963
2963
  for: j(f),
2964
2964
  class: "uid-number-input__label"
2965
- }, [u(k(t.label) + " ", 1), t.required ? (x(), c("span", Ii, "*")) : s("", !0)], 8, Fi)) : s("", !0),
2966
- l("div", Li, [
2965
+ }, [u(k(t.label) + " ", 1), t.required ? (x(), c("span", zi, "*")) : s("", !0)], 8, Ri)) : s("", !0),
2966
+ l("div", Bi, [
2967
2967
  t.controls ? (x(), c("button", {
2968
2968
  key: 0,
2969
2969
  type: "button",
@@ -2973,9 +2973,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2973
2973
  tabindex: "-1",
2974
2974
  onClick: C
2975
2975
  }, [d(e, {
2976
- icon: j(se),
2976
+ icon: j(ce),
2977
2977
  size: 14
2978
- }, null, 8, ["icon"])], 8, Ri)) : s("", !0),
2978
+ }, null, 8, ["icon"])], 8, Vi)) : s("", !0),
2979
2979
  l("input", {
2980
2980
  id: j(f),
2981
2981
  class: "uid-number-input__input",
@@ -2996,7 +2996,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
2996
2996
  onBlur: T,
2997
2997
  onFocus: r[0] ||= (e) => i("focus", e),
2998
2998
  onKeydown: E
2999
- }, null, 40, zi),
2999
+ }, null, 40, Hi),
3000
3000
  t.controls ? (x(), c("button", {
3001
3001
  key: 1,
3002
3002
  type: "button",
@@ -3006,23 +3006,23 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3006
3006
  tabindex: "-1",
3007
3007
  onClick: S
3008
3008
  }, [d(e, {
3009
- icon: j(ce),
3009
+ icon: j(le),
3010
3010
  size: 14
3011
- }, null, 8, ["icon"])], 8, Bi)) : s("", !0)
3011
+ }, null, 8, ["icon"])], 8, Ui)) : s("", !0)
3012
3012
  ]),
3013
3013
  m.value ? (x(), c("p", {
3014
3014
  key: 1,
3015
3015
  id: `${j(f)}-hint`,
3016
3016
  class: _(["uid-number-input__hint", p.value && "uid-number-input__hint--error"])
3017
- }, k(m.value), 11, Vi)) : s("", !0)
3017
+ }, k(m.value), 11, Wi)) : s("", !0)
3018
3018
  ], 2));
3019
3019
  }
3020
- }), Ui = ["aria-expanded", "aria-disabled"], Wi = {
3020
+ }), Ki = ["aria-expanded", "aria-disabled"], qi = {
3021
3021
  key: 0,
3022
3022
  class: "uid-timepicker__panel",
3023
3023
  role: "dialog",
3024
3024
  "aria-label": "Выбор времени"
3025
- }, Gi = { class: "uid-timepicker__columns" }, Ki = ["onClick"], qi = ["onClick"], Ji = ["onClick"], Yi = /* @__PURE__ */ f({
3025
+ }, Ji = { class: "uid-timepicker__columns" }, Yi = ["onClick"], Xi = ["onClick"], Zi = ["onClick"], Qi = /* @__PURE__ */ f({
3026
3026
  __name: "UidTimePicker",
3027
3027
  props: /* @__PURE__ */ m({
3028
3028
  step: { default: 5 },
@@ -3068,7 +3068,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3068
3068
  return o.withSeconds ? `${t(e.h)}:${t(e.m)}:${t(e.s)}` : `${t(e.h)}:${t(e.m)}`;
3069
3069
  }
3070
3070
  let D = w(C(f.value));
3071
- L(() => f.value, (e) => {
3071
+ R(() => f.value, (e) => {
3072
3072
  D.value = C(e);
3073
3073
  });
3074
3074
  let O = a(() => o.hour12 ? Array.from({ length: 12 }, (e, t) => t + 1) : Array.from({ length: 24 }, (e, t) => t)), A = a(() => Array.from({ length: Math.ceil(60 / o.step) }, (e, t) => t * o.step)), M = a(() => Array.from({ length: Math.ceil(60 / o.step) }, (e, t) => t * o.step)), P = a(() => {
@@ -3084,11 +3084,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3084
3084
  function I() {
3085
3085
  o.disabled || (D.value = C(f.value), p.value = !0);
3086
3086
  }
3087
- function z() {
3087
+ function L() {
3088
3088
  p.value = !1;
3089
3089
  }
3090
3090
  function B() {
3091
- p.value ? z() : I();
3091
+ p.value ? L() : I();
3092
3092
  }
3093
3093
  function V(e) {
3094
3094
  D.value = {
@@ -3110,7 +3110,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3110
3110
  }
3111
3111
  function W() {
3112
3112
  let e = E(D.value);
3113
- f.value = e, u("change", e), z(), h.value?.focus();
3113
+ f.value = e, u("change", e), L(), h.value?.focus();
3114
3114
  }
3115
3115
  function G() {
3116
3116
  let e = /* @__PURE__ */ new Date(), t = o.step;
@@ -3120,17 +3120,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3120
3120
  s: o.withSeconds ? Math.floor(e.getSeconds() / t) * t : 0
3121
3121
  };
3122
3122
  }
3123
- function ee(e) {
3123
+ function K(e) {
3124
3124
  e.stopPropagation(), f.value = null, u("change", null);
3125
3125
  }
3126
- function K(e) {
3126
+ function ee(e) {
3127
3127
  let t = e.target;
3128
- m.value?.contains(t) || z();
3128
+ m.value?.contains(t) || L();
3129
3129
  }
3130
- function q(e) {
3131
- e.key === "Enter" || e.key === " " ? (e.preventDefault(), B()) : e.key === "Escape" && z();
3130
+ function te(e) {
3131
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), B()) : e.key === "Escape" && L();
3132
3132
  }
3133
- function J() {
3133
+ function q() {
3134
3134
  g(() => {
3135
3135
  let e = (e, t, n) => {
3136
3136
  if (!e) return;
@@ -3142,9 +3142,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3142
3142
  e(v.value, D.value.h, O.value), e(y.value, D.value.m, A.value), o.withSeconds && e(S.value, D.value.s, M.value);
3143
3143
  });
3144
3144
  }
3145
- return L(p, (e) => {
3146
- e ? (document.addEventListener("pointerdown", K), J()) : document.removeEventListener("pointerdown", K);
3147
- }), b(() => document.removeEventListener("pointerdown", K)), (i, a) => (x(), c("div", {
3145
+ return R(p, (e) => {
3146
+ e ? (document.addEventListener("pointerdown", ee), q()) : document.removeEventListener("pointerdown", ee);
3147
+ }), b(() => document.removeEventListener("pointerdown", ee)), (i, a) => (x(), c("div", {
3148
3148
  ref_key: "containerRef",
3149
3149
  ref: m,
3150
3150
  class: _(["uid-timepicker", {
@@ -3159,10 +3159,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3159
3159
  "aria-expanded": p.value,
3160
3160
  "aria-disabled": n.disabled,
3161
3161
  onClick: B,
3162
- onKeydown: q
3162
+ onKeydown: te
3163
3163
  }, [
3164
3164
  d(e, {
3165
- icon: j(ne),
3165
+ icon: j(re),
3166
3166
  size: 16,
3167
3167
  class: "uid-timepicker__icon",
3168
3168
  "aria-hidden": "true"
@@ -3173,10 +3173,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3173
3173
  type: "button",
3174
3174
  class: "uid-timepicker__clear",
3175
3175
  "aria-label": "Очистить",
3176
- onClick: ee
3176
+ onClick: K
3177
3177
  }, " × ")) : s("", !0)
3178
- ], 40, Ui), d(r, { name: "uid-timepicker-panel" }, {
3179
- default: R(() => [p.value ? (x(), c("div", Wi, [l("div", Gi, [
3178
+ ], 40, Ki), d(r, { name: "uid-timepicker-panel" }, {
3179
+ default: z(() => [p.value ? (x(), c("div", qi, [l("div", Ji, [
3180
3180
  l("div", {
3181
3181
  ref_key: "hourColRef",
3182
3182
  ref: v,
@@ -3186,7 +3186,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3186
3186
  type: "button",
3187
3187
  class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": D.value.h === e }]),
3188
3188
  onClick: (t) => V(e)
3189
- }, k(F(e)), 11, Ki))), 128))], 512),
3189
+ }, k(F(e)), 11, Yi))), 128))], 512),
3190
3190
  l("div", {
3191
3191
  ref_key: "minuteColRef",
3192
3192
  ref: y,
@@ -3196,7 +3196,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3196
3196
  type: "button",
3197
3197
  class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": D.value.m === e }]),
3198
3198
  onClick: (t) => H(e)
3199
- }, k(F(e)), 11, qi))), 128))], 512),
3199
+ }, k(F(e)), 11, Xi))), 128))], 512),
3200
3200
  n.withSeconds ? (x(), c("div", {
3201
3201
  key: 0,
3202
3202
  ref_key: "secondColRef",
@@ -3207,7 +3207,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3207
3207
  type: "button",
3208
3208
  class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": D.value.s === e }]),
3209
3209
  onClick: (t) => U(e)
3210
- }, k(F(e)), 11, Ji))), 128))], 512)) : s("", !0)
3210
+ }, k(F(e)), 11, Zi))), 128))], 512)) : s("", !0)
3211
3211
  ]), l("div", { class: "uid-timepicker__footer" }, [l("button", {
3212
3212
  type: "button",
3213
3213
  class: "uid-timepicker__btn",
@@ -3220,20 +3220,20 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3220
3220
  _: 1
3221
3221
  })], 2));
3222
3222
  }
3223
- }), Xi = ["aria-expanded", "aria-disabled"], Zi = {
3223
+ }), $i = ["aria-expanded", "aria-disabled"], ea = {
3224
3224
  key: 0,
3225
3225
  class: "uid-daterange__panel",
3226
3226
  role: "dialog",
3227
3227
  "aria-label": "Выбор диапазона дат"
3228
- }, Qi = { class: "uid-daterange__months" }, $i = { class: "uid-daterange__month" }, ea = { class: "uid-daterange__nav" }, ta = { class: "uid-daterange__month-label" }, na = { class: "uid-daterange__grid" }, ra = [
3228
+ }, ta = { class: "uid-daterange__months" }, na = { class: "uid-daterange__month" }, ra = { class: "uid-daterange__nav" }, ia = { class: "uid-daterange__month-label" }, aa = { class: "uid-daterange__grid" }, oa = [
3229
3229
  "disabled",
3230
3230
  "onClick",
3231
3231
  "onMouseenter"
3232
- ], ia = { class: "uid-daterange__month" }, aa = { class: "uid-daterange__nav" }, oa = { class: "uid-daterange__month-label" }, sa = { class: "uid-daterange__grid" }, ca = [
3232
+ ], sa = { class: "uid-daterange__month" }, ca = { class: "uid-daterange__nav" }, la = { class: "uid-daterange__month-label" }, ua = { class: "uid-daterange__grid" }, da = [
3233
3233
  "disabled",
3234
3234
  "onClick",
3235
3235
  "onMouseenter"
3236
- ], la = { class: "uid-daterange__footer" }, ua = /* @__PURE__ */ f({
3236
+ ], fa = { class: "uid-daterange__footer" }, pa = /* @__PURE__ */ f({
3237
3237
  __name: "UidDateRangePicker",
3238
3238
  props: /* @__PURE__ */ m({
3239
3239
  min: { default: void 0 },
@@ -3326,7 +3326,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3326
3326
  }
3327
3327
  return o;
3328
3328
  }
3329
- let I = a(() => F(v.value, y.value, 0)), z = a(() => {
3329
+ let I = a(() => F(v.value, y.value, 0)), L = a(() => {
3330
3330
  let e = y.value === 11 ? 0 : y.value + 1;
3331
3331
  return F(y.value === 11 ? v.value + 1 : v.value, e, 1);
3332
3332
  }), B = a(() => `${E[y.value]} ${v.value}`), V = a(() => {
@@ -3346,14 +3346,14 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3346
3346
  let t = S.value ?? f.value.start;
3347
3347
  return t ? S.value && C.value ? e === (t <= C.value ? t : C.value) : e === t : !1;
3348
3348
  }
3349
- function ee(e) {
3349
+ function K(e) {
3350
3350
  if (S.value && C.value) {
3351
3351
  let t = S.value;
3352
3352
  return e === (t <= C.value ? C.value : t);
3353
3353
  }
3354
3354
  return e === f.value.end;
3355
3355
  }
3356
- function q() {
3356
+ function ee() {
3357
3357
  if (!o.disabled) {
3358
3358
  if (S.value = null, C.value = null, f.value.start) {
3359
3359
  let e = O(f.value.start);
@@ -3362,13 +3362,13 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3362
3362
  p.value = !0;
3363
3363
  }
3364
3364
  }
3365
- function J() {
3365
+ function q() {
3366
3366
  p.value = !1, S.value = null, C.value = null;
3367
3367
  }
3368
- function te() {
3369
- p.value ? J() : q();
3368
+ function J() {
3369
+ p.value ? q() : ee();
3370
3370
  }
3371
- function ne(e) {
3371
+ function Y(e) {
3372
3372
  if (U(e.iso) || !e.current) return;
3373
3373
  if (!S.value) {
3374
3374
  S.value = e.iso;
@@ -3378,7 +3378,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3378
3378
  start: t,
3379
3379
  end: n
3380
3380
  };
3381
- f.value = r, u("change", r), J(), h.value?.focus();
3381
+ f.value = r, u("change", r), q(), h.value?.focus();
3382
3382
  }
3383
3383
  function re(e) {
3384
3384
  S.value && (C.value = e);
@@ -3404,17 +3404,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3404
3404
  start: A(n),
3405
3405
  end: A(t)
3406
3406
  };
3407
- f.value = r, u("change", r), J();
3407
+ f.value = r, u("change", r), q();
3408
3408
  }
3409
3409
  function ce(e) {
3410
3410
  let t = e.target;
3411
- m.value?.contains(t) || J();
3411
+ m.value?.contains(t) || q();
3412
3412
  }
3413
- L(p, (e) => {
3413
+ R(p, (e) => {
3414
3414
  e ? document.addEventListener("pointerdown", ce) : document.removeEventListener("pointerdown", ce);
3415
3415
  });
3416
3416
  function le(e) {
3417
- e.key === "Enter" || e.key === " " ? (e.preventDefault(), te()) : e.key === "Escape" && J();
3417
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), J()) : e.key === "Escape" && q();
3418
3418
  }
3419
3419
  return b(() => document.removeEventListener("pointerdown", ce)), (i, a) => (x(), c("div", {
3420
3420
  ref_key: "containerRef",
@@ -3430,11 +3430,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3430
3430
  tabindex: "0",
3431
3431
  "aria-expanded": p.value,
3432
3432
  "aria-disabled": n.disabled,
3433
- onClick: te,
3433
+ onClick: J,
3434
3434
  onKeydown: le
3435
3435
  }, [
3436
3436
  d(e, {
3437
- icon: j(K),
3437
+ icon: j(te),
3438
3438
  size: 16,
3439
3439
  class: "uid-daterange__icon",
3440
3440
  "aria-hidden": "true"
@@ -3447,28 +3447,28 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3447
3447
  "aria-label": "Очистить",
3448
3448
  onClick: oe
3449
3449
  }, " × ")) : s("", !0)
3450
- ], 40, Xi), d(r, { name: "uid-daterange-panel" }, {
3451
- default: R(() => [p.value ? (x(), c("div", Zi, [l("div", Qi, [l("div", $i, [l("div", ea, [
3450
+ ], 40, $i), d(r, { name: "uid-daterange-panel" }, {
3451
+ default: z(() => [p.value ? (x(), c("div", ea, [l("div", ta, [l("div", na, [l("div", ra, [
3452
3452
  l("button", {
3453
3453
  type: "button",
3454
3454
  class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
3455
3455
  "aria-label": "Предыдущий месяц",
3456
3456
  onClick: ie
3457
3457
  }, [d(e, {
3458
- icon: j(Y),
3458
+ icon: j(X),
3459
3459
  size: 16
3460
3460
  }, null, 8, ["icon"])]),
3461
- l("span", ta, k(B.value), 1),
3461
+ l("span", ia, k(B.value), 1),
3462
3462
  l("button", {
3463
3463
  type: "button",
3464
3464
  class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
3465
3465
  "aria-label": "Следующий месяц",
3466
3466
  onClick: ae
3467
3467
  }, [d(e, {
3468
- icon: j(X),
3468
+ icon: j(ne),
3469
3469
  size: 16
3470
3470
  }, null, 8, ["icon"])])
3471
- ]), l("div", na, [(x(), c(t, null, T(D, (e) => l("span", {
3471
+ ]), l("div", aa, [(x(), c(t, null, T(D, (e) => l("span", {
3472
3472
  key: e,
3473
3473
  class: "uid-daterange__weekday"
3474
3474
  }, k(e), 1)), 64)), (x(!0), c(t, null, T(I.value, (e) => (x(), c("button", {
@@ -3478,51 +3478,51 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3478
3478
  "uid-daterange__day--other": !e.current,
3479
3479
  "uid-daterange__day--today": e.iso === H.value,
3480
3480
  "uid-daterange__day--start": G(e.iso),
3481
- "uid-daterange__day--end": ee(e.iso),
3481
+ "uid-daterange__day--end": K(e.iso),
3482
3482
  "uid-daterange__day--in-range": W(e.iso),
3483
3483
  "uid-daterange__day--disabled": U(e.iso)
3484
3484
  }]),
3485
3485
  disabled: U(e.iso) || !e.current,
3486
- onClick: (t) => ne(e),
3486
+ onClick: (t) => Y(e),
3487
3487
  onMouseenter: (t) => re(e.iso)
3488
- }, k(e.date.getDate()), 43, ra))), 128))])]), l("div", ia, [l("div", aa, [
3488
+ }, k(e.date.getDate()), 43, oa))), 128))])]), l("div", sa, [l("div", ca, [
3489
3489
  l("button", {
3490
3490
  type: "button",
3491
3491
  class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
3492
3492
  "aria-label": "Предыдущий месяц",
3493
3493
  onClick: ie
3494
3494
  }, [d(e, {
3495
- icon: j(Y),
3495
+ icon: j(X),
3496
3496
  size: 16
3497
3497
  }, null, 8, ["icon"])]),
3498
- l("span", oa, k(V.value), 1),
3498
+ l("span", la, k(V.value), 1),
3499
3499
  l("button", {
3500
3500
  type: "button",
3501
3501
  class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
3502
3502
  "aria-label": "Следующий месяц",
3503
3503
  onClick: ae
3504
3504
  }, [d(e, {
3505
- icon: j(X),
3505
+ icon: j(ne),
3506
3506
  size: 16
3507
3507
  }, null, 8, ["icon"])])
3508
- ]), l("div", sa, [(x(), c(t, null, T(D, (e) => l("span", {
3508
+ ]), l("div", ua, [(x(), c(t, null, T(D, (e) => l("span", {
3509
3509
  key: e,
3510
3510
  class: "uid-daterange__weekday"
3511
- }, k(e), 1)), 64)), (x(!0), c(t, null, T(z.value, (e) => (x(), c("button", {
3511
+ }, k(e), 1)), 64)), (x(!0), c(t, null, T(L.value, (e) => (x(), c("button", {
3512
3512
  key: e.iso,
3513
3513
  type: "button",
3514
3514
  class: _(["uid-daterange__day", {
3515
3515
  "uid-daterange__day--other": !e.current,
3516
3516
  "uid-daterange__day--today": e.iso === H.value,
3517
3517
  "uid-daterange__day--start": G(e.iso),
3518
- "uid-daterange__day--end": ee(e.iso),
3518
+ "uid-daterange__day--end": K(e.iso),
3519
3519
  "uid-daterange__day--in-range": W(e.iso),
3520
3520
  "uid-daterange__day--disabled": U(e.iso)
3521
3521
  }]),
3522
3522
  disabled: U(e.iso) || !e.current,
3523
- onClick: (t) => ne(e),
3523
+ onClick: (t) => Y(e),
3524
3524
  onMouseenter: (t) => re(e.iso)
3525
- }, k(e.date.getDate()), 43, ca))), 128))])])]), l("div", la, [
3525
+ }, k(e.date.getDate()), 43, da))), 128))])])]), l("div", fa, [
3526
3526
  l("button", {
3527
3527
  type: "button",
3528
3528
  class: "uid-daterange__btn",
@@ -3542,11 +3542,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3542
3542
  _: 1
3543
3543
  })], 2));
3544
3544
  }
3545
- }), da = ["for"], fa = {
3545
+ }), ma = ["for"], ha = {
3546
3546
  key: 0,
3547
3547
  class: "uid-tags-input__required",
3548
3548
  "aria-hidden": "true"
3549
- }, pa = ["aria-label", "onClick"], ma = [
3549
+ }, ga = ["aria-label", "onClick"], _a = [
3550
3550
  "id",
3551
3551
  "placeholder",
3552
3552
  "disabled",
@@ -3554,7 +3554,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3554
3554
  "value",
3555
3555
  "aria-invalid",
3556
3556
  "aria-describedby"
3557
- ], ha = ["id"], ga = /* @__PURE__ */ f({
3557
+ ], va = ["id"], ya = /* @__PURE__ */ f({
3558
3558
  __name: "UidTagsInput",
3559
3559
  props: /* @__PURE__ */ m({
3560
3560
  separators: { default: () => [",", "Enter"] },
@@ -3655,7 +3655,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3655
3655
  key: 0,
3656
3656
  for: j(p),
3657
3657
  class: "uid-tags-input__label"
3658
- }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", fa, "*")) : s("", !0)], 8, da)) : s("", !0),
3658
+ }, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", ha, "*")) : s("", !0)], 8, ma)) : s("", !0),
3659
3659
  l("div", {
3660
3660
  class: "uid-tags-input__control",
3661
3661
  role: "list",
@@ -3669,8 +3669,8 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3669
3669
  type: "button",
3670
3670
  class: "uid-tags-input__chip-remove",
3671
3671
  "aria-label": `Удалить ${t}`,
3672
- onClick: B((e) => b(n), ["stop"])
3673
- }, "×", 8, pa))], 2))), 128)), l("input", {
3672
+ onClick: V((e) => b(n), ["stop"])
3673
+ }, "×", 8, ga))], 2))), 128)), l("input", {
3674
3674
  id: j(p),
3675
3675
  ref_key: "inputRef",
3676
3676
  ref: f,
@@ -3686,19 +3686,19 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3686
3686
  onKeydown: S,
3687
3687
  onPaste: E,
3688
3688
  onBlur: y
3689
- }, null, 40, ma)]),
3689
+ }, null, 40, _a)]),
3690
3690
  h.value ? (x(), c("p", {
3691
3691
  key: 1,
3692
3692
  id: `${j(p)}-hint`,
3693
3693
  class: _(["uid-tags-input__hint", m.value && "uid-tags-input__hint--error"])
3694
- }, k(h.value), 11, ha)) : s("", !0)
3694
+ }, k(h.value), 11, va)) : s("", !0)
3695
3695
  ], 2));
3696
3696
  }
3697
- }), _a = ["for"], va = {
3697
+ }), ba = ["for"], xa = {
3698
3698
  key: 0,
3699
3699
  class: "uid-combobox__required",
3700
3700
  "aria-hidden": "true"
3701
- }, ya = ["aria-expanded", "aria-controls"], ba = [
3701
+ }, Sa = ["aria-expanded", "aria-controls"], Ca = [
3702
3702
  "id",
3703
3703
  "placeholder",
3704
3704
  "disabled",
@@ -3706,20 +3706,20 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3706
3706
  "value",
3707
3707
  "aria-activedescendant",
3708
3708
  "aria-invalid"
3709
- ], xa = { class: "uid-combobox__suffix" }, Sa = ["id"], Ca = [
3709
+ ], wa = { class: "uid-combobox__suffix" }, Ta = ["id"], Ea = [
3710
3710
  "id",
3711
3711
  "data-active",
3712
3712
  "aria-selected",
3713
3713
  "aria-disabled",
3714
3714
  "onClick",
3715
3715
  "onMouseenter"
3716
- ], wa = { class: "uid-combobox__option-label" }, Ta = {
3716
+ ], Da = { class: "uid-combobox__option-label" }, Oa = {
3717
3717
  key: 0,
3718
3718
  class: "uid-combobox__option-hint"
3719
- }, Ea = ["id", "data-active"], Da = { class: "uid-combobox__option-label" }, Oa = {
3719
+ }, ka = ["id", "data-active"], Aa = { class: "uid-combobox__option-label" }, ja = {
3720
3720
  key: 2,
3721
3721
  class: "uid-combobox__empty"
3722
- }, ka = /* @__PURE__ */ f({
3722
+ }, Ma = /* @__PURE__ */ f({
3723
3723
  __name: "UidCombobox",
3724
3724
  props: /* @__PURE__ */ m({
3725
3725
  options: {},
@@ -3757,17 +3757,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3757
3757
  emits: /* @__PURE__ */ m(["change", "create"], ["update:modelValue"]),
3758
3758
  setup(n, { emit: r }) {
3759
3759
  let i = n, f = r, p = N(n, "modelValue"), m = w(!1), h = w(""), v = w(0), y = w(null), S = w(null), C = w(null), E = i.id ?? M(), D = M(), O = a(() => i.options.find((e) => e.value === p.value) ?? null);
3760
- L(O, (e) => {
3760
+ R(O, (e) => {
3761
3761
  m.value || (h.value = e?.label ?? "");
3762
3762
  }, { immediate: !0 });
3763
3763
  let A = a(() => {
3764
3764
  let e = h.value.trim().toLowerCase();
3765
3765
  return e ? i.filter ? i.options.filter((e) => i.filter(e, h.value)) : i.options.filter((t) => t.label.toLowerCase().includes(e)) : i.options;
3766
3766
  }), P = a(() => i.allowCreate && h.value.trim().length > 0 && !A.value.some((e) => e.label.toLowerCase() === h.value.trim().toLowerCase())), F = a(() => !!i.error), I = a(() => i.error || i.hint);
3767
- L(h, () => {
3767
+ R(h, () => {
3768
3768
  v.value = 0;
3769
3769
  });
3770
- function R() {
3770
+ function L() {
3771
3771
  i.disabled || (m.value = !0);
3772
3772
  }
3773
3773
  function z() {
@@ -3784,35 +3784,35 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3784
3784
  e.stopPropagation(), p.value = null, f("change", null), h.value = "", S.value?.focus();
3785
3785
  }
3786
3786
  function U(e) {
3787
- h.value = e.target.value, m.value || R();
3787
+ h.value = e.target.value, m.value || L();
3788
3788
  }
3789
3789
  function W() {
3790
- R();
3790
+ L();
3791
3791
  }
3792
3792
  function G(e) {
3793
3793
  if (e.key === "ArrowDown") {
3794
3794
  if (e.preventDefault(), !m.value) {
3795
- R();
3795
+ L();
3796
3796
  return;
3797
3797
  }
3798
- ee();
3799
- } else if (e.key === "ArrowUp") e.preventDefault(), m.value && K();
3798
+ K();
3799
+ } else if (e.key === "ArrowUp") e.preventDefault(), m.value && ee();
3800
3800
  else if (e.key === "Enter") {
3801
3801
  if (e.preventDefault(), !m.value) {
3802
- R();
3802
+ L();
3803
3803
  return;
3804
3804
  }
3805
- J();
3805
+ te();
3806
3806
  } else e.key === "Escape" ? m.value ? z() : S.value?.blur() : e.key === "Tab" && z();
3807
3807
  }
3808
- function ee() {
3808
+ function K() {
3809
3809
  let e = A.value.length + +!!P.value;
3810
- e !== 0 && (v.value = Math.min(v.value + 1, e - 1), Y());
3810
+ e !== 0 && (v.value = Math.min(v.value + 1, e - 1), J());
3811
3811
  }
3812
- function K() {
3813
- v.value = Math.max(v.value - 1, 0), Y();
3812
+ function ee() {
3813
+ v.value = Math.max(v.value - 1, 0), J();
3814
3814
  }
3815
- function J() {
3815
+ function te() {
3816
3816
  if (P.value && v.value === A.value.length) {
3817
3817
  V();
3818
3818
  return;
@@ -3820,7 +3820,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3820
3820
  let e = A.value[v.value];
3821
3821
  e && B(e);
3822
3822
  }
3823
- function Y() {
3823
+ function J() {
3824
3824
  g(() => {
3825
3825
  (C.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
3826
3826
  });
@@ -3829,7 +3829,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3829
3829
  let t = e.target;
3830
3830
  y.value?.contains(t) || z();
3831
3831
  }
3832
- return L(m, (e) => {
3832
+ return R(m, (e) => {
3833
3833
  e ? (v.value = Math.max(0, A.value.findIndex((e) => e.value === p.value)), document.addEventListener("pointerdown", X)) : document.removeEventListener("pointerdown", X);
3834
3834
  }), b(() => document.removeEventListener("pointerdown", X)), (r, i) => (x(), c("div", {
3835
3835
  ref_key: "containerRef",
@@ -3845,7 +3845,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3845
3845
  key: 0,
3846
3846
  for: j(E),
3847
3847
  class: "uid-combobox__label"
3848
- }, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", va, "*")) : s("", !0)], 8, _a)) : s("", !0),
3848
+ }, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", xa, "*")) : s("", !0)], 8, ba)) : s("", !0),
3849
3849
  l("div", {
3850
3850
  class: "uid-combobox__control",
3851
3851
  role: "combobox",
@@ -3869,7 +3869,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3869
3869
  onInput: U,
3870
3870
  onFocus: W,
3871
3871
  onKeydown: G
3872
- }, null, 40, ba), l("div", xa, [n.clearable && p.value !== null ? (x(), c("button", {
3872
+ }, null, 40, Ca), l("div", wa, [n.clearable && p.value !== null ? (x(), c("button", {
3873
3873
  key: 0,
3874
3874
  type: "button",
3875
3875
  class: "uid-combobox__clear",
@@ -3879,12 +3879,12 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3879
3879
  icon: j(Z),
3880
3880
  size: 12
3881
3881
  }, null, 8, ["icon"])])) : s("", !0), d(e, {
3882
- icon: j(te),
3882
+ icon: j(Y),
3883
3883
  size: 16,
3884
3884
  class: _(["uid-combobox__chevron", { "uid-combobox__chevron--open": m.value }]),
3885
3885
  "aria-hidden": "true",
3886
- onClick: R
3887
- }, null, 8, ["icon", "class"])])], 8, ya),
3886
+ onClick: L
3887
+ }, null, 8, ["icon", "class"])])], 8, Sa),
3888
3888
  m.value ? (x(), c("div", {
3889
3889
  key: 1,
3890
3890
  id: j(D),
@@ -3909,8 +3909,8 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3909
3909
  onClick: (e) => B(t),
3910
3910
  onMouseenter: (e) => !t.disabled && (v.value = n)
3911
3911
  }, [
3912
- l("span", wa, k(t.label), 1),
3913
- t.hint ? (x(), c("span", Ta, k(t.hint), 1)) : s("", !0),
3912
+ l("span", Da, k(t.label), 1),
3913
+ t.hint ? (x(), c("span", Oa, k(t.hint), 1)) : s("", !0),
3914
3914
  t.value === p.value ? (x(), o(e, {
3915
3915
  key: 1,
3916
3916
  icon: j(q),
@@ -3918,7 +3918,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3918
3918
  class: "uid-combobox__check",
3919
3919
  "aria-hidden": "true"
3920
3920
  }, null, 8, ["icon"])) : s("", !0)
3921
- ], 42, Ca))), 128)) : s("", !0),
3921
+ ], 42, Ea))), 128)) : s("", !0),
3922
3922
  P.value ? (x(), c("button", {
3923
3923
  key: 1,
3924
3924
  id: `${j(D)}-${A.value.length}`,
@@ -3928,38 +3928,38 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
3928
3928
  "data-active": v.value === A.value.length ? "true" : void 0,
3929
3929
  onClick: V,
3930
3930
  onMouseenter: i[0] ||= (e) => v.value = A.value.length
3931
- }, [l("span", Da, "+ Создать «" + k(h.value) + "»", 1)], 42, Ea)) : s("", !0),
3932
- A.value.length === 0 && !P.value ? (x(), c("div", Oa, k(n.emptyText), 1)) : s("", !0)
3933
- ], 8, Sa)) : s("", !0),
3931
+ }, [l("span", Aa, "+ Создать «" + k(h.value) + "»", 1)], 42, ka)) : s("", !0),
3932
+ A.value.length === 0 && !P.value ? (x(), c("div", ja, k(n.emptyText), 1)) : s("", !0)
3933
+ ], 8, Ta)) : s("", !0),
3934
3934
  I.value ? (x(), c("p", {
3935
3935
  key: 2,
3936
3936
  class: _(["uid-combobox__hint", F.value && "uid-combobox__hint--error"])
3937
3937
  }, k(I.value), 3)) : s("", !0)
3938
3938
  ], 2));
3939
3939
  }
3940
- }), Aa = Symbol("UidTree"), ja = [
3940
+ }), Na = Symbol("UidTree"), Pa = [
3941
3941
  "aria-expanded",
3942
3942
  "aria-selected",
3943
3943
  "aria-disabled"
3944
- ], Ma = ["tabindex"], Na = ["aria-label"], Pa = {
3944
+ ], Fa = ["tabindex"], Ia = ["aria-label"], La = {
3945
3945
  key: 1,
3946
3946
  class: "uid-tree-item__chevron uid-tree-item__chevron--placeholder",
3947
3947
  "aria-hidden": "true"
3948
- }, Fa = ["aria-checked"], Ia = {
3948
+ }, Ra = ["aria-checked"], za = {
3949
3949
  key: 3,
3950
3950
  class: "uid-tree-item__icon"
3951
- }, La = { class: "uid-tree-item__label" }, Ra = {
3951
+ }, Ba = { class: "uid-tree-item__label" }, Va = {
3952
3952
  key: 0,
3953
3953
  class: "uid-tree-item__children",
3954
3954
  role: "group"
3955
- }, za = /* @__PURE__ */ f({
3955
+ }, Ha = /* @__PURE__ */ f({
3956
3956
  __name: "UidTreeItem",
3957
3957
  props: {
3958
3958
  node: {},
3959
3959
  level: {}
3960
3960
  },
3961
3961
  setup(n) {
3962
- let r = n, i = p(Aa);
3962
+ let r = n, i = p(Na);
3963
3963
  if (!i) throw Error("UidTreeItem must be used inside UidTree");
3964
3964
  let u = i, f = a(() => !!r.node.children && r.node.children.length > 0), m = a(() => u.isExpanded(r.node.key)), h = a(() => u.isSelected(r.node.key)), g = a(() => u.isChecked(r.node.key)), y = a(() => u.isIndeterminate(r.node.key)), b = a(() => u.disabled.value || !!r.node.disabled);
3965
3965
  function S() {
@@ -4001,9 +4001,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4001
4001
  tabindex: "-1",
4002
4002
  onClick: C
4003
4003
  }, [d(e, {
4004
- icon: j(X),
4004
+ icon: j(ne),
4005
4005
  size: 14
4006
- }, null, 8, ["icon"])], 10, Na)) : (x(), c("span", Pa)),
4006
+ }, null, 8, ["icon"])], 10, Ia)) : (x(), c("span", La)),
4007
4007
  j(u).checkable.value ? (x(), c("span", {
4008
4008
  key: 2,
4009
4009
  class: _(["uid-tree-item__check", {
@@ -4017,20 +4017,20 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4017
4017
  key: 0,
4018
4018
  icon: j(q),
4019
4019
  size: 12
4020
- }, null, 8, ["icon"])) : s("", !0)], 10, Fa)) : s("", !0),
4021
- n.node.icon ? (x(), c("span", Ia, [d(e, {
4020
+ }, null, 8, ["icon"])) : s("", !0)], 10, Ra)) : s("", !0),
4021
+ n.node.icon ? (x(), c("span", za, [d(e, {
4022
4022
  icon: n.node.icon,
4023
4023
  size: 16
4024
4024
  }, null, 8, ["icon"])])) : s("", !0),
4025
- l("span", La, k(n.node.label), 1)
4026
- ], 44, Ma), f.value && m.value ? (x(), c("ul", Ra, [(x(!0), c(t, null, T(n.node.children, (e) => (x(), o(a, {
4025
+ l("span", Ba, k(n.node.label), 1)
4026
+ ], 44, Fa), f.value && m.value ? (x(), c("ul", Va, [(x(!0), c(t, null, T(n.node.children, (e) => (x(), o(a, {
4027
4027
  key: e.key,
4028
4028
  node: e,
4029
4029
  level: n.level + 1
4030
- }, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10, ja);
4030
+ }, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10, Pa);
4031
4031
  };
4032
4032
  }
4033
- }), Ba = /* @__PURE__ */ f({
4033
+ }), Ua = /* @__PURE__ */ f({
4034
4034
  __name: "UidTreeView",
4035
4035
  props: /* @__PURE__ */ m({
4036
4036
  nodes: {},
@@ -4087,7 +4087,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4087
4087
  l.value = [...e];
4088
4088
  }
4089
4089
  }), m = w(new Set(u.value));
4090
- L(u, (e) => {
4090
+ R(u, (e) => {
4091
4091
  m.value = new Set(e);
4092
4092
  });
4093
4093
  let h = w(/* @__PURE__ */ new Set());
@@ -4119,10 +4119,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4119
4119
  for (let e of r.nodes) n(e);
4120
4120
  m.value = t, h.value = e, u.value = [...t];
4121
4121
  }
4122
- L(() => r.nodes, v, {
4122
+ R(() => r.nodes, v, {
4123
4123
  immediate: !0,
4124
4124
  deep: !0
4125
- }), L(u, () => {
4125
+ }), R(u, () => {
4126
4126
  [...m.value].sort().join(",") !== [...u.value].sort().join(",") && (m.value = new Set(u.value), v());
4127
4127
  });
4128
4128
  function y(e) {
@@ -4145,7 +4145,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4145
4145
  }
4146
4146
  m.value = n, u.value = [...n], v(), i("check", e, !t);
4147
4147
  }
4148
- return S(Aa, {
4148
+ return S(Na, {
4149
4149
  selectable: a(() => r.selectable),
4150
4150
  checkable: a(() => r.checkable),
4151
4151
  disabled: a(() => r.disabled),
@@ -4162,13 +4162,13 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4162
4162
  }), (n, r) => (x(), c("ul", {
4163
4163
  class: _(["uid-tree", { "uid-tree--guides": e.showGuides }]),
4164
4164
  role: "tree"
4165
- }, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(za, {
4165
+ }, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(Ha, {
4166
4166
  key: e.key,
4167
4167
  node: e,
4168
4168
  level: 0
4169
4169
  }, null, 8, ["node"]))), 128))], 2));
4170
4170
  }
4171
- }), Va = /* @__PURE__ */ f({
4171
+ }), Wa = /* @__PURE__ */ f({
4172
4172
  __name: "UidTimeline",
4173
4173
  props: { alternate: {
4174
4174
  type: Boolean,
@@ -4177,19 +4177,19 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4177
4177
  setup(e) {
4178
4178
  return (t, n) => (x(), c("ol", { class: _(["uid-timeline", { "uid-timeline--alternate": e.alternate }]) }, [E(t.$slots, "default")], 2));
4179
4179
  }
4180
- }), Ha = { class: "uid-timeline-item__rail" }, Ua = { class: "uid-timeline-item__marker" }, Wa = { class: "uid-timeline-item__content" }, Ga = {
4180
+ }), Ga = { class: "uid-timeline-item__rail" }, Ka = { class: "uid-timeline-item__marker" }, qa = { class: "uid-timeline-item__content" }, Ja = {
4181
4181
  key: 0,
4182
4182
  class: "uid-timeline-item__time"
4183
- }, Ka = {
4183
+ }, Ya = {
4184
4184
  key: 1,
4185
4185
  class: "uid-timeline-item__title"
4186
- }, qa = {
4186
+ }, Xa = {
4187
4187
  key: 2,
4188
4188
  class: "uid-timeline-item__description"
4189
- }, Ja = {
4189
+ }, Za = {
4190
4190
  key: 3,
4191
4191
  class: "uid-timeline-item__description"
4192
- }, Ya = /* @__PURE__ */ f({
4192
+ }, Qa = /* @__PURE__ */ f({
4193
4193
  __name: "UidTimelineItem",
4194
4194
  props: {
4195
4195
  title: {},
@@ -4199,37 +4199,37 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4199
4199
  icon: {}
4200
4200
  },
4201
4201
  setup(t) {
4202
- return (n, r) => (x(), c("li", { class: _(["uid-timeline-item", [t.tone !== "neutral" && `uid-timeline-item--${t.tone}`, (t.icon || n.$slots.icon) && "uid-timeline-item--with-icon"]]) }, [l("div", Ha, [l("div", Ua, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
4202
+ return (n, r) => (x(), c("li", { class: _(["uid-timeline-item", [t.tone !== "neutral" && `uid-timeline-item--${t.tone}`, (t.icon || n.$slots.icon) && "uid-timeline-item--with-icon"]]) }, [l("div", Ga, [l("div", Ka, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
4203
4203
  key: 0,
4204
4204
  icon: t.icon,
4205
4205
  size: 14
4206
4206
  }, null, 8, ["icon"])) : s("", !0)])]), r[0] ||= l("div", {
4207
4207
  class: "uid-timeline-item__line",
4208
4208
  "aria-hidden": "true"
4209
- }, null, -1)]), l("div", Wa, [
4210
- t.time || n.$slots.time ? (x(), c("p", Ga, [E(n.$slots, "time", {}, () => [u(k(t.time), 1)])])) : s("", !0),
4211
- t.title ? (x(), c("h4", Ka, k(t.title), 1)) : s("", !0),
4212
- t.description && !n.$slots.default ? (x(), c("p", qa, k(t.description), 1)) : s("", !0),
4213
- n.$slots.default ? (x(), c("div", Ja, [E(n.$slots, "default")])) : s("", !0)
4209
+ }, null, -1)]), l("div", qa, [
4210
+ t.time || n.$slots.time ? (x(), c("p", Ja, [E(n.$slots, "time", {}, () => [u(k(t.time), 1)])])) : s("", !0),
4211
+ t.title ? (x(), c("h4", Ya, k(t.title), 1)) : s("", !0),
4212
+ t.description && !n.$slots.default ? (x(), c("p", Xa, k(t.description), 1)) : s("", !0),
4213
+ n.$slots.default ? (x(), c("div", Za, [E(n.$slots, "default")])) : s("", !0)
4214
4214
  ])], 2));
4215
4215
  }
4216
- }), Xa = ["for"], Za = {
4216
+ }), $a = ["for"], eo = {
4217
4217
  key: 0,
4218
4218
  class: "uid-file-upload__required",
4219
4219
  "aria-hidden": "true"
4220
- }, Qa = ["aria-disabled", "aria-invalid"], $a = { class: "uid-file-upload__primary-text" }, eo = ["innerHTML"], to = { class: "uid-file-upload__secondary-text" }, no = [
4220
+ }, to = ["aria-disabled", "aria-invalid"], no = { class: "uid-file-upload__primary-text" }, ro = ["innerHTML"], io = { class: "uid-file-upload__secondary-text" }, ao = [
4221
4221
  "id",
4222
4222
  "multiple",
4223
4223
  "accept",
4224
4224
  "disabled",
4225
4225
  "required"
4226
- ], ro = {
4226
+ ], oo = {
4227
4227
  key: 1,
4228
4228
  class: "uid-file-upload__list"
4229
- }, io = { class: "uid-file-upload__file-info" }, ao = { class: "uid-file-upload__file-name" }, oo = { class: "uid-file-upload__file-meta" }, so = { key: 0 }, co = { key: 1 }, lo = {
4229
+ }, so = { class: "uid-file-upload__file-info" }, co = { class: "uid-file-upload__file-name" }, lo = { class: "uid-file-upload__file-meta" }, uo = { key: 0 }, fo = { key: 1 }, po = {
4230
4230
  key: 0,
4231
4231
  class: "uid-file-upload__progress"
4232
- }, uo = ["aria-label", "onClick"], fo = /* @__PURE__ */ f({
4232
+ }, mo = ["aria-label", "onClick"], ho = /* @__PURE__ */ f({
4233
4233
  __name: "UidFileUpload",
4234
4234
  props: /* @__PURE__ */ m({
4235
4235
  multiple: {
@@ -4322,7 +4322,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4322
4322
  key: 0,
4323
4323
  for: j(h),
4324
4324
  class: "uid-file-upload__label"
4325
- }, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", Za, "*")) : s("", !0)], 8, Xa)) : s("", !0),
4325
+ }, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", eo, "*")) : s("", !0)], 8, $a)) : s("", !0),
4326
4326
  l("div", {
4327
4327
  class: _(["uid-file-upload__dropzone", { "uid-file-upload__dropzone--active": m.value }]),
4328
4328
  role: "button",
@@ -4336,13 +4336,13 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4336
4336
  onDragleave: F
4337
4337
  }, [
4338
4338
  d(e, {
4339
- icon: j(de),
4339
+ icon: j(pe),
4340
4340
  size: 32,
4341
4341
  class: "uid-file-upload__icon",
4342
4342
  "aria-hidden": "true"
4343
4343
  }, null, 8, ["icon"]),
4344
- l("p", $a, [l("span", { innerHTML: n.primaryText }, null, 8, eo)]),
4345
- l("p", to, k(n.secondaryText), 1),
4344
+ l("p", no, [l("span", { innerHTML: n.primaryText }, null, 8, ro)]),
4345
+ l("p", io, k(n.secondaryText), 1),
4346
4346
  l("input", {
4347
4347
  id: j(h),
4348
4348
  ref_key: "inputRef",
@@ -4354,22 +4354,22 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4354
4354
  disabled: n.disabled,
4355
4355
  required: n.required,
4356
4356
  onChange: E
4357
- }, null, 40, no)
4358
- ], 42, Qa),
4359
- f.value.length > 0 ? (x(), c("ul", ro, [(x(!0), c(t, null, T(f.value, (t) => (x(), c("li", {
4357
+ }, null, 40, ao)
4358
+ ], 42, to),
4359
+ f.value.length > 0 ? (x(), c("ul", oo, [(x(!0), c(t, null, T(f.value, (t) => (x(), c("li", {
4360
4360
  key: t.id,
4361
4361
  class: _(["uid-file-upload__item", { "uid-file-upload__item--error": t.error }])
4362
4362
  }, [
4363
4363
  d(e, {
4364
- icon: j(ie),
4364
+ icon: j(ae),
4365
4365
  size: 20,
4366
4366
  class: "uid-file-upload__file-icon",
4367
4367
  "aria-hidden": "true"
4368
4368
  }, null, 8, ["icon"]),
4369
- l("div", io, [
4370
- l("div", ao, k(t.file.name), 1),
4371
- l("div", oo, [l("span", null, k(b(t.file.size)), 1), t.error ? (x(), c("span", so, "— " + k(t.error), 1)) : t.progress === void 0 ? s("", !0) : (x(), c("span", co, "— " + k(t.progress) + "%", 1))]),
4372
- t.progress !== void 0 && !t.error ? (x(), c("div", lo, [l("div", {
4369
+ l("div", so, [
4370
+ l("div", co, k(t.file.name), 1),
4371
+ l("div", lo, [l("span", null, k(b(t.file.size)), 1), t.error ? (x(), c("span", uo, "— " + k(t.error), 1)) : t.progress === void 0 ? s("", !0) : (x(), c("span", fo, "— " + k(t.progress) + "%", 1))]),
4372
+ t.progress !== void 0 && !t.error ? (x(), c("div", po, [l("div", {
4373
4373
  class: "uid-file-upload__progress-bar",
4374
4374
  style: v({ width: `${t.progress}%` })
4375
4375
  }, null, 4)])) : s("", !0)
@@ -4382,7 +4382,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4382
4382
  }, [d(e, {
4383
4383
  icon: j(Z),
4384
4384
  size: 16
4385
- }, null, 8, ["icon"])], 8, uo)
4385
+ }, null, 8, ["icon"])], 8, mo)
4386
4386
  ], 2))), 128))])) : s("", !0),
4387
4387
  y.value ? (x(), c("p", {
4388
4388
  key: 2,
@@ -4390,17 +4390,17 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4390
4390
  }, k(y.value), 3)) : s("", !0)
4391
4391
  ], 2));
4392
4392
  }
4393
- }), po = {
4393
+ }), go = {
4394
4394
  key: 0,
4395
4395
  class: "uid-code uid-code--inline"
4396
- }, mo = {
4396
+ }, _o = {
4397
4397
  key: 0,
4398
4398
  class: "uid-code__header"
4399
- }, ho = { class: "uid-code__lang" }, go = ["aria-label"], _o = { class: "uid-code__body" }, vo = {
4399
+ }, vo = { class: "uid-code__lang" }, yo = ["aria-label"], bo = { class: "uid-code__body" }, xo = {
4400
4400
  key: 0,
4401
4401
  class: "uid-code__line-numbers",
4402
4402
  "aria-hidden": "true"
4403
- }, yo = { class: "uid-code__pre" }, bo = /* @__PURE__ */ f({
4403
+ }, So = { class: "uid-code__pre" }, Co = /* @__PURE__ */ f({
4404
4404
  __name: "UidCode",
4405
4405
  props: {
4406
4406
  code: { default: "" },
@@ -4432,35 +4432,1123 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4432
4432
  }, 1500);
4433
4433
  } catch {}
4434
4434
  }
4435
- return (r, a) => n.inline ? (x(), c("code", po, [E(r.$slots, "default", {}, () => [u(k(n.code), 1)])])) : (x(), c("div", {
4435
+ return (r, a) => n.inline ? (x(), c("code", go, [E(r.$slots, "default", {}, () => [u(k(n.code), 1)])])) : (x(), c("div", {
4436
4436
  key: 1,
4437
4437
  class: _(["uid-code", {
4438
4438
  "uid-code--minimal": !f.value,
4439
4439
  "uid-code--wrap": n.wrap
4440
4440
  }]),
4441
4441
  style: v(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
4442
- }, [f.value ? (x(), c("div", mo, [l("span", ho, k(n.language || ""), 1), n.copy ? (x(), c("button", {
4442
+ }, [f.value ? (x(), c("div", _o, [l("span", vo, k(n.language || ""), 1), n.copy ? (x(), c("button", {
4443
4443
  key: 0,
4444
4444
  type: "button",
4445
4445
  class: _(["uid-code__copy", { "uid-code__copy--copied": i.value }]),
4446
4446
  "aria-label": i.value ? "Скопировано" : "Скопировать",
4447
4447
  onClick: p
4448
4448
  }, [d(e, {
4449
- icon: i.value ? j(q) : j(re),
4449
+ icon: i.value ? j(q) : j(ie),
4450
4450
  size: 12,
4451
4451
  "aria-hidden": "true"
4452
- }, null, 8, ["icon"]), l("span", null, k(i.value ? "Скопировано" : "Копировать"), 1)], 10, go)) : s("", !0)])) : s("", !0), l("div", _o, [n.lineNumbers ? (x(), c("div", vo, [(x(!0), c(t, null, T(o.value, (e, t) => (x(), c("span", {
4452
+ }, null, 8, ["icon"]), l("span", null, k(i.value ? "Скопировано" : "Копировать"), 1)], 10, yo)) : s("", !0)])) : s("", !0), l("div", bo, [n.lineNumbers ? (x(), c("div", xo, [(x(!0), c(t, null, T(o.value, (e, t) => (x(), c("span", {
4453
4453
  key: t,
4454
4454
  class: "uid-code__line-number"
4455
- }, k(t + 1), 1))), 128))])) : s("", !0), l("pre", yo, [l("code", null, [E(r.$slots, "default", {}, () => [u(k(n.code), 1)])])])])], 6));
4455
+ }, k(t + 1), 1))), 128))])) : s("", !0), l("pre", So, [l("code", null, [E(r.$slots, "default", {}, () => [u(k(n.code), 1)])])])])], 6));
4456
+ }
4457
+ }), wo = [
4458
+ "aria-valuemax",
4459
+ "aria-valuenow",
4460
+ "aria-readonly",
4461
+ "aria-disabled",
4462
+ "aria-label"
4463
+ ], To = [
4464
+ "tabindex",
4465
+ "aria-label",
4466
+ "onClick",
4467
+ "onMousemove",
4468
+ "onKeydown"
4469
+ ], Eo = {
4470
+ class: "uid-rating__icon",
4471
+ "aria-hidden": "true"
4472
+ }, Do = ["data-half"], Oo = {
4473
+ key: 0,
4474
+ class: "uid-rating__label"
4475
+ }, ko = /* @__PURE__ */ f({
4476
+ __name: "UidRating",
4477
+ props: /* @__PURE__ */ m({
4478
+ max: { default: 5 },
4479
+ allowHalf: {
4480
+ type: Boolean,
4481
+ default: !1
4482
+ },
4483
+ readonly: {
4484
+ type: Boolean,
4485
+ default: !1
4486
+ },
4487
+ disabled: {
4488
+ type: Boolean,
4489
+ default: !1
4490
+ },
4491
+ showLabel: {
4492
+ type: Boolean,
4493
+ default: !1
4494
+ },
4495
+ size: { default: "md" },
4496
+ tone: { default: "warning" },
4497
+ icon: { default: void 0 },
4498
+ label: {}
4499
+ }, {
4500
+ modelValue: { default: 0 },
4501
+ modelModifiers: {}
4502
+ }),
4503
+ emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
4504
+ setup(n, { emit: r }) {
4505
+ let i = n, o = r, u = N(n, "modelValue"), f = w(null), p = a(() => Array.from({ length: i.max }, (e, t) => t + 1)), m = a(() => f.value ?? u.value), h = a(() => i.icon ?? fe);
4506
+ function g(e) {
4507
+ let t = m.value;
4508
+ return t >= e ? {
4509
+ full: !0,
4510
+ half: !1
4511
+ } : i.allowHalf && t >= e - .5 ? {
4512
+ full: !0,
4513
+ half: !0
4514
+ } : {
4515
+ full: !1,
4516
+ half: !1
4517
+ };
4518
+ }
4519
+ function v(e) {
4520
+ if (i.readonly || i.disabled) return;
4521
+ let t = e === u.value ? 0 : e;
4522
+ u.value = t, o("change", t);
4523
+ }
4524
+ function y(e, t) {
4525
+ if (!i.allowHalf) {
4526
+ v(t);
4527
+ return;
4528
+ }
4529
+ let n = e.currentTarget.getBoundingClientRect();
4530
+ v(e.clientX - n.left < n.width / 2 ? t - .5 : t);
4531
+ }
4532
+ function b(e, t) {
4533
+ if (i.readonly || i.disabled) return;
4534
+ if (!i.allowHalf) {
4535
+ f.value = t;
4536
+ return;
4537
+ }
4538
+ let n = e.currentTarget.getBoundingClientRect();
4539
+ f.value = e.clientX - n.left < n.width / 2 ? t - .5 : t;
4540
+ }
4541
+ function S() {
4542
+ f.value = null;
4543
+ }
4544
+ function C(e, t) {
4545
+ if (!(i.readonly || i.disabled)) if (e.key === "ArrowRight" || e.key === "ArrowUp") {
4546
+ e.preventDefault();
4547
+ let t = i.allowHalf ? .5 : 1, n = Math.min(u.value + t, i.max);
4548
+ u.value = n, o("change", n);
4549
+ } else if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
4550
+ e.preventDefault();
4551
+ let t = i.allowHalf ? .5 : 1, n = Math.max(u.value - t, 0);
4552
+ u.value = n, o("change", n);
4553
+ } else (e.key === "Enter" || e.key === " ") && (e.preventDefault(), v(t));
4554
+ }
4555
+ return (r, i) => (x(), c("div", {
4556
+ class: _(["uid-rating", [
4557
+ `uid-rating--${n.size}`,
4558
+ n.tone !== "warning" && `uid-rating--${n.tone}`,
4559
+ n.readonly && "uid-rating--readonly",
4560
+ n.disabled && "uid-rating--disabled"
4561
+ ]]),
4562
+ role: "slider",
4563
+ "aria-valuemin": 0,
4564
+ "aria-valuemax": n.max,
4565
+ "aria-valuenow": u.value,
4566
+ "aria-readonly": n.readonly,
4567
+ "aria-disabled": n.disabled,
4568
+ "aria-label": n.label || `Оценка ${u.value} из ${n.max}`,
4569
+ onMouseleave: S
4570
+ }, [(x(!0), c(t, null, T(p.value, (t) => (x(), c("button", {
4571
+ key: t,
4572
+ type: "button",
4573
+ class: "uid-rating__star",
4574
+ tabindex: n.readonly || n.disabled ? -1 : 0,
4575
+ "aria-label": `${t} ${t === 1 ? "звезда" : "звёзды"}`,
4576
+ onClick: (e) => y(e, t),
4577
+ onMousemove: (e) => b(e, t),
4578
+ onKeydown: (e) => C(e, t)
4579
+ }, [l("span", Eo, [d(e, { icon: h.value }, null, 8, ["icon"])]), g(t).full ? (x(), c("span", {
4580
+ key: 0,
4581
+ class: "uid-rating__icon uid-rating__icon--filled",
4582
+ "data-half": g(t).half ? "true" : "false",
4583
+ "aria-hidden": "true"
4584
+ }, [d(e, { icon: h.value }, null, 8, ["icon"])], 8, Do)) : s("", !0)], 40, To))), 128)), n.showLabel ? (x(), c("span", Oo, k(u.value.toFixed(+!!n.allowHalf)) + " / " + k(n.max), 1)) : s("", !0)], 42, wo));
4585
+ }
4586
+ }), Ao = [
4587
+ "tabindex",
4588
+ "aria-orientation",
4589
+ "aria-valuemin",
4590
+ "aria-valuemax",
4591
+ "aria-valuenow",
4592
+ "aria-disabled"
4593
+ ], jo = { class: "uid-splitter__pane uid-splitter__pane--end" }, Mo = /* @__PURE__ */ f({
4594
+ __name: "UidSplitter",
4595
+ props: /* @__PURE__ */ m({
4596
+ direction: { default: "horizontal" },
4597
+ min: { default: 10 },
4598
+ max: { default: 90 },
4599
+ step: { default: 5 },
4600
+ disabled: {
4601
+ type: Boolean,
4602
+ default: !1
4603
+ }
4604
+ }, {
4605
+ modelValue: { default: 50 },
4606
+ modelModifiers: {}
4607
+ }),
4608
+ emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
4609
+ setup(e, { emit: t }) {
4610
+ let n = e, r = t, i = N(e, "modelValue"), o = w(null), s = w(null), u = w(!1), d = a(() => Math.min(Math.max(i.value, n.min), n.max));
4611
+ function f(e) {
4612
+ return Math.min(Math.max(e, n.min), n.max);
4613
+ }
4614
+ function p(e) {
4615
+ let t = f(e);
4616
+ t !== i.value && (i.value = t, r("change", t));
4617
+ }
4618
+ function m(e) {
4619
+ n.disabled || (e.preventDefault(), u.value = !0, s.value?.setPointerCapture(e.pointerId));
4620
+ }
4621
+ function h(e) {
4622
+ if (!u.value || !o.value) return;
4623
+ let t = o.value.getBoundingClientRect(), r = n.direction === "horizontal" ? t.width : t.height;
4624
+ r !== 0 && p((n.direction === "horizontal" ? e.clientX - t.left : e.clientY - t.top) / r * 100);
4625
+ }
4626
+ function g(e) {
4627
+ u.value && (u.value = !1, s.value?.releasePointerCapture(e.pointerId));
4628
+ }
4629
+ function y(e) {
4630
+ if (n.disabled) return;
4631
+ let t = n.direction === "horizontal" ? ["ArrowLeft", "ArrowUp"] : ["ArrowUp", "ArrowLeft"], r = n.direction === "horizontal" ? ["ArrowRight", "ArrowDown"] : ["ArrowDown", "ArrowRight"];
4632
+ t.includes(e.key) ? (e.preventDefault(), p(i.value - n.step)) : r.includes(e.key) ? (e.preventDefault(), p(i.value + n.step)) : e.key === "Home" ? (e.preventDefault(), p(n.min)) : e.key === "End" && (e.preventDefault(), p(n.max));
4633
+ }
4634
+ let b = a(() => ({ [n.direction === "horizontal" ? "width" : "height"]: `${d.value}%` }));
4635
+ return (t, n) => (x(), c("div", {
4636
+ ref_key: "containerRef",
4637
+ ref: o,
4638
+ class: _(["uid-splitter", [
4639
+ `uid-splitter--${e.direction}`,
4640
+ u.value && "uid-splitter--dragging",
4641
+ e.disabled && "uid-splitter--disabled"
4642
+ ]])
4643
+ }, [
4644
+ l("div", {
4645
+ class: "uid-splitter__pane uid-splitter__pane--start",
4646
+ style: v(b.value)
4647
+ }, [E(t.$slots, "start")], 4),
4648
+ l("div", {
4649
+ ref_key: "handleRef",
4650
+ ref: s,
4651
+ class: "uid-splitter__handle",
4652
+ role: "separator",
4653
+ tabindex: e.disabled ? -1 : 0,
4654
+ "aria-orientation": e.direction === "horizontal" ? "vertical" : "horizontal",
4655
+ "aria-valuemin": e.min,
4656
+ "aria-valuemax": e.max,
4657
+ "aria-valuenow": Math.round(d.value),
4658
+ "aria-disabled": e.disabled,
4659
+ onPointerdown: m,
4660
+ onPointermove: h,
4661
+ onPointerup: g,
4662
+ onPointercancel: g,
4663
+ onKeydown: y
4664
+ }, [...n[0] ||= [l("span", {
4665
+ class: "uid-splitter__grip",
4666
+ "aria-hidden": "true"
4667
+ }, [
4668
+ l("span", { class: "uid-splitter__grip-dot" }),
4669
+ l("span", { class: "uid-splitter__grip-dot" }),
4670
+ l("span", { class: "uid-splitter__grip-dot" })
4671
+ ], -1)]], 40, Ao),
4672
+ l("div", jo, [E(t.$slots, "end")])
4673
+ ], 2));
4674
+ }
4675
+ }), No = {
4676
+ key: 0,
4677
+ class: "uid-stat__icon",
4678
+ "aria-hidden": "true"
4679
+ }, Po = { class: "uid-stat__body" }, Fo = {
4680
+ key: 0,
4681
+ class: "uid-stat__title"
4682
+ }, Io = { class: "uid-stat__value-row" }, Lo = { class: "uid-stat__value" }, Ro = {
4683
+ key: 0,
4684
+ class: "uid-stat__prefix"
4685
+ }, zo = {
4686
+ key: 1,
4687
+ class: "uid-stat__suffix"
4688
+ }, Bo = {
4689
+ key: 1,
4690
+ class: "uid-stat__footer"
4691
+ }, Vo = /* @__PURE__ */ f({
4692
+ __name: "UidStat",
4693
+ props: {
4694
+ title: {},
4695
+ value: {},
4696
+ prefix: {},
4697
+ suffix: {},
4698
+ trend: {},
4699
+ trendSuffix: { default: "%" },
4700
+ precision: { default: 0 },
4701
+ formatter: {},
4702
+ tone: { default: "primary" },
4703
+ variant: { default: "card" },
4704
+ icon: {},
4705
+ loading: { type: Boolean },
4706
+ footer: {}
4707
+ },
4708
+ setup(t) {
4709
+ let n = t, r = a(() => n.value === void 0 ? "" : n.formatter ? n.formatter(n.value) : typeof n.value == "number" ? n.value.toLocaleString("ru-RU", {
4710
+ minimumFractionDigits: n.precision,
4711
+ maximumFractionDigits: n.precision
4712
+ }) : String(n.value)), i = a(() => n.trend === void 0 ? null : n.trend > 0 ? "up" : n.trend < 0 ? "down" : "flat"), d = a(() => i.value === "up" ? K : i.value === "down" ? W : null), f = a(() => n.trend === void 0 ? "" : `${Math.abs(n.trend).toLocaleString("ru-RU", { maximumFractionDigits: 2 })}${n.trendSuffix}`);
4713
+ return (n, a) => (x(), c("div", { class: _(["uid-stat", [
4714
+ `uid-stat--${t.tone}`,
4715
+ t.variant === "ghost" && "uid-stat--ghost",
4716
+ t.loading && "uid-stat--loading"
4717
+ ]]) }, [t.icon || n.$slots.icon ? (x(), c("span", No, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
4718
+ key: 0,
4719
+ icon: t.icon,
4720
+ size: 20
4721
+ }, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", Po, [
4722
+ t.title ? (x(), c("p", Fo, k(t.title), 1)) : s("", !0),
4723
+ l("div", Io, [l("span", Lo, [E(n.$slots, "value", {}, () => [
4724
+ t.prefix ? (x(), c("span", Ro, k(t.prefix), 1)) : s("", !0),
4725
+ l("span", null, k(r.value), 1),
4726
+ t.suffix ? (x(), c("span", zo, k(t.suffix), 1)) : s("", !0)
4727
+ ])]), t.trend !== void 0 || n.$slots.trend ? (x(), c("span", {
4728
+ key: 0,
4729
+ class: _(["uid-stat__trend", i.value && `uid-stat__trend--${i.value}`])
4730
+ }, [E(n.$slots, "trend", {}, () => [d.value ? (x(), o(e, {
4731
+ key: 0,
4732
+ icon: d.value,
4733
+ size: 12
4734
+ }, null, 8, ["icon"])) : s("", !0), l("span", null, k(f.value), 1)])], 2)) : s("", !0)]),
4735
+ t.footer || n.$slots.footer ? (x(), c("p", Bo, [E(n.$slots, "footer", {}, () => [u(k(t.footer), 1)])])) : s("", !0)
4736
+ ])], 2));
4737
+ }
4738
+ }), Ho = Symbol("UidDescriptionList"), Uo = {
4739
+ key: 0,
4740
+ class: "uid-description-list__title"
4741
+ }, Wo = /* @__PURE__ */ f({
4742
+ __name: "UidDescriptionList",
4743
+ props: {
4744
+ title: {},
4745
+ direction: { default: "horizontal" },
4746
+ columns: { default: 1 },
4747
+ bordered: {
4748
+ type: Boolean,
4749
+ default: !1
4750
+ },
4751
+ size: { default: "md" },
4752
+ labelWidth: { default: void 0 }
4753
+ },
4754
+ setup(e) {
4755
+ let t = e;
4756
+ S(Ho, {
4757
+ direction: a(() => t.direction),
4758
+ bordered: a(() => t.bordered)
4759
+ });
4760
+ let n = a(() => ({
4761
+ "--uid-desc-cols": t.columns,
4762
+ ...t.labelWidth ? { "--uid-desc-label-width": t.labelWidth } : {}
4763
+ }));
4764
+ return (t, r) => (x(), c("div", { class: _(["uid-description-list", [
4765
+ `uid-description-list--${e.direction}`,
4766
+ `uid-description-list--${e.size}`,
4767
+ e.bordered && "uid-description-list--bordered"
4768
+ ]]) }, [e.title || t.$slots.title ? (x(), c("h3", Uo, [E(t.$slots, "title", {}, () => [u(k(e.title), 1)])])) : s("", !0), l("dl", {
4769
+ class: "uid-description-list__grid",
4770
+ style: v(n.value)
4771
+ }, [E(t.$slots, "default")], 4)], 2));
4772
+ }
4773
+ }), Go = { class: "uid-description-item__label" }, Ko = { class: "uid-description-item__value" }, qo = ["aria-label"], Jo = /* @__PURE__ */ f({
4774
+ __name: "UidDescriptionItem",
4775
+ props: {
4776
+ label: {},
4777
+ span: { default: 1 },
4778
+ copyable: {
4779
+ type: Boolean,
4780
+ default: !1
4781
+ },
4782
+ copyValue: {}
4783
+ },
4784
+ setup(t) {
4785
+ let n = t;
4786
+ P(), p(Ho, null);
4787
+ let r = w(null), i = w(!1), o = a(() => ({ "--uid-desc-span": n.span }));
4788
+ async function f() {
4789
+ let e = n.copyValue ?? r.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
4790
+ if (!(!e || !navigator?.clipboard)) try {
4791
+ await navigator.clipboard.writeText(e), i.value = !0, setTimeout(() => {
4792
+ i.value = !1;
4793
+ }, 1500);
4794
+ } catch {}
4795
+ }
4796
+ return (n, a) => (x(), c("div", {
4797
+ ref_key: "itemRef",
4798
+ ref: r,
4799
+ class: "uid-description-item",
4800
+ style: v(o.value)
4801
+ }, [l("dt", Go, [E(n.$slots, "label", {}, () => [u(k(t.label), 1)])]), l("dd", Ko, [E(n.$slots, "default"), t.copyable ? (x(), c("button", {
4802
+ key: 0,
4803
+ type: "button",
4804
+ class: _(["uid-description-item__copy", { "uid-description-item__copy--copied": i.value }]),
4805
+ "aria-label": i.value ? "Скопировано" : "Скопировать",
4806
+ onClick: f
4807
+ }, [d(e, {
4808
+ icon: i.value ? j(q) : j(ie),
4809
+ size: 12
4810
+ }, null, 8, ["icon"])], 10, qo)) : s("", !0)])], 4));
4811
+ }
4812
+ }), Yo = {
4813
+ class: "uid-pattern-result__icon",
4814
+ "aria-hidden": "true"
4815
+ }, Xo = {
4816
+ key: 0,
4817
+ class: "uid-pattern-result__title"
4818
+ }, Zo = {
4819
+ key: 1,
4820
+ class: "uid-pattern-result__description"
4821
+ }, Qo = {
4822
+ key: 2,
4823
+ class: "uid-pattern-result__content"
4824
+ }, $o = {
4825
+ key: 3,
4826
+ class: "uid-pattern-result__actions"
4827
+ }, es = /* @__PURE__ */ f({
4828
+ __name: "UidResult",
4829
+ props: {
4830
+ status: { default: "success" },
4831
+ title: {},
4832
+ description: {},
4833
+ compact: {
4834
+ type: Boolean,
4835
+ default: !1
4836
+ }
4837
+ },
4838
+ setup(t) {
4839
+ let n = t, r = {
4840
+ success: J,
4841
+ info: se,
4842
+ warning: U,
4843
+ error: he
4844
+ }, i = a(() => r[n.status]);
4845
+ return (n, r) => (x(), c("div", {
4846
+ class: _(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
4847
+ role: "status"
4848
+ }, [
4849
+ l("div", Yo, [E(n.$slots, "icon", {}, () => [d(e, {
4850
+ icon: i.value,
4851
+ size: t.compact ? 32 : 40
4852
+ }, null, 8, ["icon", "size"])])]),
4853
+ t.title || n.$slots.title ? (x(), c("h2", Xo, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])])) : s("", !0),
4854
+ t.description || n.$slots.description ? (x(), c("p", Zo, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0),
4855
+ n.$slots.default ? (x(), c("div", Qo, [E(n.$slots, "default")])) : s("", !0),
4856
+ n.$slots.actions ? (x(), c("div", $o, [E(n.$slots, "actions")])) : s("", !0)
4857
+ ], 2));
4858
+ }
4859
+ }), ts = ["aria-label"], ns = /* @__PURE__ */ f({
4860
+ __name: "UidBackTop",
4861
+ props: {
4862
+ visibleAfter: { default: 200 },
4863
+ target: {
4864
+ type: [String, Function],
4865
+ default: void 0
4866
+ },
4867
+ smooth: {
4868
+ type: Boolean,
4869
+ default: !0
4870
+ },
4871
+ ariaLabel: { default: "Наверх" }
4872
+ },
4873
+ emits: ["click"],
4874
+ setup(t, { emit: n }) {
4875
+ let i = t, a = n, s = w(!1), c = window;
4876
+ function u() {
4877
+ return i.target ? typeof i.target == "function" ? i.target() ?? window : typeof i.target == "string" ? document.querySelector(i.target) ?? window : i.target : window;
4878
+ }
4879
+ function f() {
4880
+ return c === window ? window.scrollY ?? document.documentElement.scrollTop : c.scrollTop;
4881
+ }
4882
+ function p() {
4883
+ s.value = f() >= i.visibleAfter;
4884
+ }
4885
+ function m() {
4886
+ a("click"), c === window ? window.scrollTo({
4887
+ top: 0,
4888
+ behavior: i.smooth ? "smooth" : "auto"
4889
+ }) : c.scrollTo({
4890
+ top: 0,
4891
+ behavior: i.smooth ? "smooth" : "auto"
4892
+ });
4893
+ }
4894
+ return y(() => {
4895
+ c = u(), c.addEventListener("scroll", p, { passive: !0 }), p();
4896
+ }), b(() => {
4897
+ c.removeEventListener("scroll", p);
4898
+ }), (n, i) => (x(), o(r, { name: "uid-back-top" }, {
4899
+ default: z(() => [B(l("button", {
4900
+ type: "button",
4901
+ class: "uid-back-top",
4902
+ "aria-label": t.ariaLabel,
4903
+ onClick: m
4904
+ }, [E(n.$slots, "default", {}, () => [d(e, {
4905
+ icon: j(K),
4906
+ size: 20
4907
+ }, null, 8, ["icon"])])], 8, ts), [[L, s.value]])]),
4908
+ _: 3
4909
+ }));
4910
+ }
4911
+ }), rs = { class: "uid-affix__content" }, is = /* @__PURE__ */ f({
4912
+ __name: "UidAffix",
4913
+ props: {
4914
+ offsetTop: {},
4915
+ offsetBottom: {}
4916
+ },
4917
+ emits: ["change"],
4918
+ setup(e, { emit: t }) {
4919
+ let n = e, r = t, i = w(null), o = w(null), s = w(!1), u = a(() => n.offsetBottom === void 0 ? "top" : "bottom"), d = a(() => u.value === "bottom" ? n.offsetBottom ?? 0 : n.offsetTop ?? 0), f = a(() => ({ "--uid-affix-offset": `${d.value}px` })), p = null;
4920
+ return R(s, (e) => r("change", e)), y(() => {
4921
+ if (!o.value) return;
4922
+ let e = u.value === "top" ? `-${d.value + 1}px 0px 0px 0px` : `0px 0px -${d.value + 1}px 0px`;
4923
+ p = new IntersectionObserver((e) => {
4924
+ s.value = !e[0].isIntersecting;
4925
+ }, {
4926
+ threshold: [0, 1],
4927
+ rootMargin: e
4928
+ }), p.observe(o.value);
4929
+ }), b(() => {
4930
+ p?.disconnect();
4931
+ }), (e, t) => (x(), c("div", {
4932
+ ref_key: "rootRef",
4933
+ ref: i,
4934
+ class: _(["uid-affix", [`uid-affix--${u.value}`, s.value && "uid-affix--affixed"]]),
4935
+ style: v(f.value)
4936
+ }, [l("div", {
4937
+ ref_key: "sentinelRef",
4938
+ ref: o,
4939
+ class: "uid-affix__sentinel",
4940
+ "aria-hidden": "true"
4941
+ }, null, 512), l("div", rs, [E(e.$slots, "default")])], 6));
4942
+ }
4943
+ }), as = { class: "uid-watermark" }, os = { class: "uid-watermark__content" }, ss = /* @__PURE__ */ f({
4944
+ __name: "UidWatermark",
4945
+ props: {
4946
+ content: { default: "" },
4947
+ font: { default: "600 16px system-ui, -apple-system, sans-serif" },
4948
+ color: { default: "rgba(0, 0, 0, 0.12)" },
4949
+ rotate: { default: -22 },
4950
+ gap: { default: () => [120, 120] },
4951
+ zIndex: { default: 9 }
4952
+ },
4953
+ setup(e) {
4954
+ let t = e, n = w(""), r = w([0, 0]);
4955
+ function i() {
4956
+ if (typeof document > "u") return;
4957
+ let e = Array.isArray(t.content) ? t.content : [t.content];
4958
+ if (e.length === 0 || e.every((e) => !e)) {
4959
+ n.value = "";
4960
+ return;
4961
+ }
4962
+ let i = document.createElement("canvas"), a = i.getContext("2d");
4963
+ if (!a) return;
4964
+ let o = typeof window < "u" && window.devicePixelRatio || 1;
4965
+ a.font = t.font;
4966
+ let s = parseInt(t.font, 10) * 1.4 || 24, c = 0;
4967
+ for (let t of e) c = Math.max(c, a.measureText(t).width);
4968
+ let l = s * e.length, u = t.rotate * Math.PI / 180, d = Math.abs(Math.sin(u)), f = Math.abs(Math.cos(u)), p = c * f + l * d, m = c * d + l * f, h = p + t.gap[0], g = m + t.gap[1];
4969
+ i.width = h * o, i.height = g * o, i.style.width = `${h}px`, i.style.height = `${g}px`, a.scale(o, o), a.translate(h / 2, g / 2), a.rotate(u), a.font = t.font, a.fillStyle = t.color, a.textAlign = "center", a.textBaseline = "middle";
4970
+ let _ = -((e.length - 1) * s) / 2;
4971
+ e.forEach((e, t) => {
4972
+ a.fillText(e, 0, _ + t * s);
4973
+ }), n.value = i.toDataURL("image/png"), r.value = [h, g];
4974
+ }
4975
+ let o = a(() => ({
4976
+ "--uid-watermark-image": n.value ? `url(${n.value})` : "none",
4977
+ "--uid-watermark-size": `${r.value[0]}px ${r.value[1]}px`,
4978
+ "--uid-watermark-z": t.zIndex
4979
+ }));
4980
+ return R(() => [
4981
+ t.content,
4982
+ t.font,
4983
+ t.color,
4984
+ t.rotate,
4985
+ t.gap
4986
+ ], () => i(), { deep: !0 }), y(() => {
4987
+ i();
4988
+ }), b(() => {
4989
+ n.value = "";
4990
+ }), (e, t) => (x(), c("div", as, [l("div", {
4991
+ class: "uid-watermark__overlay",
4992
+ style: v(o.value),
4993
+ "aria-hidden": "true"
4994
+ }, null, 4), l("div", os, [E(e.$slots, "default")])]));
4456
4995
  }
4457
- }), xo = ["aria-label"], So = ["aria-current"], Co = { class: "uid-stepper__indicator" }, wo = {
4996
+ }), cs = {
4997
+ class: "uid-anchor",
4998
+ "aria-label": "Содержание"
4999
+ }, ls = { class: "uid-anchor__list" }, us = ["href", "onClick"], ds = {
5000
+ key: 0,
5001
+ class: "uid-anchor__sublist"
5002
+ }, fs = ["href", "onClick"], ps = /* @__PURE__ */ f({
5003
+ __name: "UidAnchor",
5004
+ props: /* @__PURE__ */ m({
5005
+ items: {},
5006
+ offsetTop: { default: 0 },
5007
+ target: {
5008
+ type: Function,
5009
+ default: void 0
5010
+ },
5011
+ smooth: {
5012
+ type: Boolean,
5013
+ default: !0
5014
+ }
5015
+ }, {
5016
+ modelValue: { default: "" },
5017
+ modelModifiers: {}
5018
+ }),
5019
+ emits: /* @__PURE__ */ m(["click", "change"], ["update:modelValue"]),
5020
+ setup(e, { emit: n }) {
5021
+ let r = e, i = n, a = N(e, "modelValue"), o = w([]);
5022
+ function u(e) {
5023
+ return e.flatMap((e) => [e, ...e.children ? u(e.children) : []]);
5024
+ }
5025
+ R(() => r.items, (e) => {
5026
+ o.value = u(e);
5027
+ }, { immediate: !0 });
5028
+ let d = null, f = w(/* @__PURE__ */ new Set());
5029
+ function p() {
5030
+ if (d?.disconnect(), !(typeof window > "u")) {
5031
+ d = new IntersectionObserver((e) => {
5032
+ let t = new Set(f.value);
5033
+ for (let n of e) {
5034
+ let e = n.target.id;
5035
+ n.isIntersecting ? t.add(e) : t.delete(e);
5036
+ }
5037
+ f.value = t;
5038
+ let n = o.value.find((e) => t.has(e.href.replace(/^#/, "")));
5039
+ n && n.key !== a.value && (a.value = n.key, i("change", n.key));
5040
+ }, {
5041
+ rootMargin: `-${r.offsetTop}px 0px -60% 0px`,
5042
+ threshold: 0
5043
+ });
5044
+ for (let e of o.value) {
5045
+ let t = e.href.replace(/^#/, ""), n = document.getElementById(t);
5046
+ n && d.observe(n);
5047
+ }
5048
+ }
5049
+ }
5050
+ y(() => {
5051
+ setTimeout(p, 0);
5052
+ }), R(o, () => p()), b(() => {
5053
+ d?.disconnect();
5054
+ });
5055
+ function m(e, t) {
5056
+ if (i("click", t, e), e.defaultPrevented) return;
5057
+ let n = t.href.replace(/^#/, ""), o = document.getElementById(n);
5058
+ if (!o) return;
5059
+ e.preventDefault(), a.value = t.key, i("change", t.key);
5060
+ let s = o.getBoundingClientRect().top + window.scrollY - r.offsetTop;
5061
+ window.scrollTo({
5062
+ top: s,
5063
+ behavior: r.smooth ? "smooth" : "auto"
5064
+ });
5065
+ }
5066
+ return (n, r) => (x(), c("nav", cs, [l("ul", ls, [(x(!0), c(t, null, T(e.items, (e) => (x(), c("li", {
5067
+ key: e.key,
5068
+ class: "uid-anchor__item"
5069
+ }, [l("a", {
5070
+ href: e.href,
5071
+ class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
5072
+ onClick: (t) => m(t, e)
5073
+ }, k(e.title), 11, us), e.children?.length ? (x(), c("ul", ds, [(x(!0), c(t, null, T(e.children, (e) => (x(), c("li", {
5074
+ key: e.key,
5075
+ class: "uid-anchor__item"
5076
+ }, [l("a", {
5077
+ href: e.href,
5078
+ class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
5079
+ onClick: (t) => m(t, e)
5080
+ }, k(e.title), 11, fs)]))), 128))])) : s("", !0)]))), 128))])]));
5081
+ }
5082
+ }), ms = ["aria-label"], hs = {
5083
+ key: 0,
5084
+ class: "uid-tour__title"
5085
+ }, gs = {
5086
+ key: 1,
5087
+ class: "uid-tour__description"
5088
+ }, _s = { class: "uid-tour__footer" }, vs = {
5089
+ key: 0,
5090
+ class: "uid-tour__progress"
5091
+ }, ys = { key: 1 }, bs = { class: "uid-tour__actions" }, xs = /* @__PURE__ */ f({
5092
+ __name: "UidTour",
5093
+ props: /* @__PURE__ */ m({
5094
+ steps: {},
5095
+ maskClosable: {
5096
+ type: Boolean,
5097
+ default: !1
5098
+ },
5099
+ showSkip: {
5100
+ type: Boolean,
5101
+ default: !0
5102
+ },
5103
+ showProgress: {
5104
+ type: Boolean,
5105
+ default: !0
5106
+ },
5107
+ nextText: { default: "Далее" },
5108
+ prevText: { default: "Назад" },
5109
+ finishText: { default: "Готово" },
5110
+ skipText: { default: "Пропустить" }
5111
+ }, {
5112
+ modelValue: {
5113
+ type: Boolean,
5114
+ default: !1
5115
+ },
5116
+ modelModifiers: {},
5117
+ current: { default: 0 },
5118
+ currentModifiers: {}
5119
+ }),
5120
+ emits: /* @__PURE__ */ m([
5121
+ "finish",
5122
+ "close",
5123
+ "change"
5124
+ ], ["update:modelValue", "update:current"]),
5125
+ setup(e, { emit: t }) {
5126
+ let r = e, i = t, u = N(e, "modelValue"), d = N(e, "current"), f = w(null), p = w(null), m = a(() => r.steps[d.value]);
5127
+ function h(e) {
5128
+ return e ? typeof e == "string" ? document.querySelector(e) : typeof e == "function" ? e() : e instanceof HTMLElement ? e : null : null;
5129
+ }
5130
+ function y() {
5131
+ if (!m.value) return;
5132
+ let e = h(m.value.target);
5133
+ f.value = e?.getBoundingClientRect() ?? null, e && e.scrollIntoView({
5134
+ block: "center",
5135
+ inline: "center",
5136
+ behavior: "smooth"
5137
+ }), S();
5138
+ }
5139
+ function S() {
5140
+ if (!f.value) {
5141
+ p.value = null;
5142
+ return;
5143
+ }
5144
+ let e = m.value?.placement ?? "bottom", t = f.value, n = 0, r = 0;
5145
+ switch (e) {
5146
+ case "top":
5147
+ n = t.top - 12 - 8, r = t.left + t.width / 2 - 320 / 2;
5148
+ break;
5149
+ case "bottom":
5150
+ n = t.bottom + 12, r = t.left + t.width / 2 - 320 / 2;
5151
+ break;
5152
+ case "left":
5153
+ n = t.top + t.height / 2 - 60, r = t.left - 12 - 320;
5154
+ break;
5155
+ case "right":
5156
+ n = t.top + t.height / 2 - 60, r = t.right + 12;
5157
+ break;
5158
+ default: n = t.bottom + 12, r = t.left + t.width / 2 - 320 / 2;
5159
+ }
5160
+ let i = window.innerWidth;
5161
+ r < 16 && (r = 16), r + 320 > i - 16 && (r = i - 320 - 16), p.value = {
5162
+ top: n,
5163
+ left: r
5164
+ };
5165
+ }
5166
+ let C = a(() => {
5167
+ if (!f.value) return null;
5168
+ let e = f.value;
5169
+ return {
5170
+ top: `${e.top - 4}px`,
5171
+ left: `${e.left - 4}px`,
5172
+ width: `${e.width + 8}px`,
5173
+ height: `${e.height + 8}px`
5174
+ };
5175
+ }), T = a(() => p.value ? {
5176
+ top: `${p.value.top}px`,
5177
+ left: `${p.value.left}px`
5178
+ } : null), E = a(() => !m.value?.target || m.value?.placement === "center");
5179
+ function D() {
5180
+ d.value > 0 && (d.value--, i("change", d.value));
5181
+ }
5182
+ function O() {
5183
+ d.value < r.steps.length - 1 ? (d.value++, i("change", d.value)) : A();
5184
+ }
5185
+ function A() {
5186
+ i("finish"), u.value = !1;
5187
+ }
5188
+ function j() {
5189
+ i("close"), u.value = !1;
5190
+ }
5191
+ function M() {
5192
+ r.maskClosable && j();
5193
+ }
5194
+ R([u, d], async () => {
5195
+ u.value && (await g(), y());
5196
+ });
5197
+ let P = 0;
5198
+ function F() {
5199
+ P && cancelAnimationFrame(P), P = requestAnimationFrame(y);
5200
+ }
5201
+ return R(u, (e) => {
5202
+ e && typeof window < "u" ? (window.addEventListener("resize", F), window.addEventListener("scroll", F, !0)) : (window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0));
5203
+ }, { immediate: !0 }), b(() => {
5204
+ typeof window > "u" || (window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0));
5205
+ }), (t, r) => (x(), o(n, { to: "body" }, [u.value && m.value ? (x(), c("div", {
5206
+ key: 0,
5207
+ class: "uid-tour",
5208
+ role: "dialog",
5209
+ "aria-modal": "true",
5210
+ "aria-label": m.value.title
5211
+ }, [
5212
+ l("div", {
5213
+ class: "uid-tour__mask",
5214
+ onClick: M
5215
+ }),
5216
+ C.value ? (x(), c("div", {
5217
+ key: 0,
5218
+ class: "uid-tour__spotlight",
5219
+ style: v(C.value)
5220
+ }, null, 4)) : s("", !0),
5221
+ l("div", {
5222
+ class: _(["uid-tour__popover", { "uid-tour__popover--center": E.value }]),
5223
+ style: v(E.value ? void 0 : T.value)
5224
+ }, [
5225
+ m.value.title ? (x(), c("h3", hs, k(m.value.title), 1)) : s("", !0),
5226
+ m.value.description ? (x(), c("p", gs, k(m.value.description), 1)) : s("", !0),
5227
+ l("div", _s, [e.showProgress ? (x(), c("span", vs, k(d.value + 1) + " / " + k(e.steps.length), 1)) : (x(), c("span", ys)), l("div", bs, [
5228
+ e.showSkip && d.value < e.steps.length - 1 ? (x(), c("button", {
5229
+ key: 0,
5230
+ type: "button",
5231
+ class: "uid-tour__btn uid-tour__btn--ghost",
5232
+ onClick: j
5233
+ }, k(e.skipText), 1)) : s("", !0),
5234
+ d.value > 0 ? (x(), c("button", {
5235
+ key: 1,
5236
+ type: "button",
5237
+ class: "uid-tour__btn",
5238
+ onClick: D
5239
+ }, k(e.prevText), 1)) : s("", !0),
5240
+ l("button", {
5241
+ type: "button",
5242
+ class: "uid-tour__btn uid-tour__btn--primary",
5243
+ onClick: O
5244
+ }, k(d.value === e.steps.length - 1 ? e.finishText : e.nextText), 1)
5245
+ ])])
5246
+ ], 6)
5247
+ ], 8, ms)) : s("", !0)]));
5248
+ }
5249
+ }), Ss = ["for"], Cs = [
5250
+ "id",
5251
+ "value",
5252
+ "placeholder",
5253
+ "rows",
5254
+ "disabled"
5255
+ ], ws = ["onMousedown", "onMouseenter"], Ts = { class: "uid-mention__option-label" }, Es = {
5256
+ key: 0,
5257
+ class: "uid-mention__option-hint"
5258
+ }, Ds = {
5259
+ key: 0,
5260
+ class: "uid-mention__empty"
5261
+ }, Os = /* @__PURE__ */ f({
5262
+ __name: "UidMention",
5263
+ props: /* @__PURE__ */ m({
5264
+ options: {},
5265
+ prefix: { default: "@" },
5266
+ placeholder: {},
5267
+ disabled: { type: Boolean },
5268
+ rows: { default: 4 },
5269
+ label: {},
5270
+ emptyText: { default: "Никого не найдено" },
5271
+ filter: {
5272
+ type: Function,
5273
+ default: void 0
5274
+ }
5275
+ }, {
5276
+ modelValue: { default: "" },
5277
+ modelModifiers: {}
5278
+ }),
5279
+ emits: /* @__PURE__ */ m(["select"], ["update:modelValue"]),
5280
+ setup(e, { emit: n }) {
5281
+ let r = e, i = n, o = N(e, "modelValue"), u = w(null), d = M(), f = w(!1), p = w(""), m = w(0), h = w(-1), y = w(""), b = w({
5282
+ top: 0,
5283
+ left: 0
5284
+ }), S = a(() => Array.isArray(r.prefix) ? r.prefix : [r.prefix]), C = a(() => {
5285
+ let e = p.value.toLowerCase();
5286
+ return r.filter ? r.options.filter((e) => r.filter(e, p.value)) : e ? r.options.filter((t) => t.label.toLowerCase().includes(e) || t.value.toLowerCase().includes(e)) : r.options;
5287
+ });
5288
+ function E() {
5289
+ let e = u.value;
5290
+ if (!e) return;
5291
+ let t = e.selectionStart ?? 0, n = o.value.slice(0, t), r = -1, i = "";
5292
+ for (let e of S.value) {
5293
+ let t = n.lastIndexOf(e);
5294
+ if (t > r) {
5295
+ let a = n[t - 1];
5296
+ if (t === 0 || /\s/.test(a ?? "")) {
5297
+ let a = n.slice(t + e.length);
5298
+ /\s/.test(a) || (r = t, i = e);
5299
+ }
5300
+ }
5301
+ }
5302
+ r >= 0 ? (h.value = r, y.value = i, p.value = n.slice(r + i.length), m.value = 0, f.value || (f.value = !0, g(D))) : (f.value = !1, p.value = "", h.value = -1);
5303
+ }
5304
+ function D() {
5305
+ let e = u.value;
5306
+ e && (b.value = {
5307
+ top: e.getBoundingClientRect().height + 4,
5308
+ left: 0
5309
+ });
5310
+ }
5311
+ function O(e) {
5312
+ if (h.value < 0) return;
5313
+ let t = u.value;
5314
+ if (!t) return;
5315
+ let n = t.selectionStart ?? 0, r = o.value.slice(0, h.value), a = o.value.slice(n), s = `${y.value}${e.value} `;
5316
+ o.value = r + s + a, i("select", e, y.value), f.value = !1, h.value = -1, p.value = "", g(() => {
5317
+ let e = r.length + s.length;
5318
+ t.focus(), t.setSelectionRange(e, e);
5319
+ });
5320
+ }
5321
+ function A(e) {
5322
+ o.value = e.target.value, E();
5323
+ }
5324
+ function P() {
5325
+ E();
5326
+ }
5327
+ function F(e) {
5328
+ f.value && (e.key === "ArrowDown" ? (e.preventDefault(), m.value = Math.min(m.value + 1, C.value.length - 1)) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = Math.max(m.value - 1, 0)) : e.key === "Enter" || e.key === "Tab" ? C.value.length > 0 && (e.preventDefault(), O(C.value[m.value])) : e.key === "Escape" && (f.value = !1));
5329
+ }
5330
+ let I = a(() => ({
5331
+ top: `${b.value.top}px`,
5332
+ left: `${b.value.left}px`
5333
+ }));
5334
+ return (n, r) => (x(), c("div", { class: _(["uid-mention", { "uid-mention--disabled": e.disabled }]) }, [
5335
+ e.label ? (x(), c("label", {
5336
+ key: 0,
5337
+ for: j(d),
5338
+ class: "uid-mention__label"
5339
+ }, k(e.label), 9, Ss)) : s("", !0),
5340
+ l("textarea", {
5341
+ id: j(d),
5342
+ ref_key: "fieldRef",
5343
+ ref: u,
5344
+ class: "uid-mention__field",
5345
+ value: o.value,
5346
+ placeholder: e.placeholder,
5347
+ rows: e.rows,
5348
+ disabled: e.disabled,
5349
+ onInput: A,
5350
+ onClick: P,
5351
+ onKeydown: F,
5352
+ onKeyup: E,
5353
+ onBlur: r[0] ||= (e) => f.value = !1
5354
+ }, null, 40, Cs),
5355
+ f.value ? (x(), c("div", {
5356
+ key: 1,
5357
+ class: "uid-mention__dropdown",
5358
+ style: v(I.value)
5359
+ }, [(x(!0), c(t, null, T(C.value, (e, t) => (x(), c("button", {
5360
+ key: e.value,
5361
+ type: "button",
5362
+ class: _(["uid-mention__option", { "uid-mention__option--active": t === m.value }]),
5363
+ onMousedown: V((t) => O(e), ["prevent"]),
5364
+ onMouseenter: (e) => m.value = t
5365
+ }, [l("span", Ts, k(e.label), 1), e.hint ? (x(), c("span", Es, k(e.hint), 1)) : s("", !0)], 42, ws))), 128)), C.value.length === 0 ? (x(), c("div", Ds, k(e.emptyText), 1)) : s("", !0)], 4)) : s("", !0)
5366
+ ], 2));
5367
+ }
5368
+ }), ks = ["for"], As = {
5369
+ key: 0,
5370
+ class: "uid-tree-select__required",
5371
+ "aria-hidden": "true"
5372
+ }, js = [
5373
+ "id",
5374
+ "aria-expanded",
5375
+ "aria-disabled",
5376
+ "aria-invalid"
5377
+ ], Ms = { class: "uid-tree-select__value" }, Ns = ["aria-label", "onClick"], Ps = {
5378
+ key: 0,
5379
+ class: "uid-tree-select__chip"
5380
+ }, Fs = {
5381
+ key: 1,
5382
+ class: "uid-tree-select__placeholder"
5383
+ }, Is = { key: 0 }, Ls = {
5384
+ key: 1,
5385
+ class: "uid-tree-select__placeholder"
5386
+ }, Rs = { class: "uid-tree-select__suffix" }, zs = {
5387
+ key: 1,
5388
+ class: "uid-tree-select__dropdown"
5389
+ }, Bs = /* @__PURE__ */ f({
5390
+ __name: "UidTreeSelect",
5391
+ props: /* @__PURE__ */ m({
5392
+ nodes: {},
5393
+ multiple: {
5394
+ type: Boolean,
5395
+ default: !1
5396
+ },
5397
+ placeholder: { default: "Выберите..." },
5398
+ disabled: {
5399
+ type: Boolean,
5400
+ default: !1
5401
+ },
5402
+ clearable: {
5403
+ type: Boolean,
5404
+ default: !0
5405
+ },
5406
+ defaultExpandAll: {
5407
+ type: Boolean,
5408
+ default: !1
5409
+ },
5410
+ showGuides: {
5411
+ type: Boolean,
5412
+ default: !1
5413
+ },
5414
+ label: {},
5415
+ hint: {},
5416
+ error: {},
5417
+ required: {
5418
+ type: Boolean,
5419
+ default: !1
5420
+ },
5421
+ maxTagCount: { default: void 0 }
5422
+ }, {
5423
+ modelValue: { default: null },
5424
+ modelModifiers: {},
5425
+ expandedKeys: { default: () => [] },
5426
+ expandedKeysModifiers: {}
5427
+ }),
5428
+ emits: /* @__PURE__ */ m(["change"], ["update:modelValue", "update:expandedKeys"]),
5429
+ setup(n, { emit: r }) {
5430
+ let i = n, o = r, f = N(n, "modelValue"), p = N(n, "expandedKeys"), m = w(!1), h = w(null), g = w(null), v = M(), y = a(() => !!i.error), S = a(() => i.error || i.hint);
5431
+ function C(e) {
5432
+ return e.flatMap((e) => [e, ...e.children ? C(e.children) : []]);
5433
+ }
5434
+ let E = a(() => C(i.nodes)), D = a(() => f.value === null || f.value === void 0 ? [] : Array.isArray(f.value) ? f.value : [f.value]), O = a(() => D.value.map((e) => E.value.find((t) => t.key === e)).filter((e) => !!e)), A = a(() => i.maxTagCount ? O.value.slice(0, i.maxTagCount) : O.value), P = a(() => i.maxTagCount ? Math.max(0, O.value.length - i.maxTagCount) : 0);
5435
+ function F() {
5436
+ i.disabled || (m.value = !0);
5437
+ }
5438
+ function I() {
5439
+ m.value = !1;
5440
+ }
5441
+ function L() {
5442
+ m.value ? I() : F();
5443
+ }
5444
+ function z(e) {
5445
+ if (i.multiple) {
5446
+ let t = Array.isArray(f.value) ? [...f.value] : [], n = t.indexOf(e.key);
5447
+ n >= 0 ? t.splice(n, 1) : t.push(e.key), f.value = t, o("change", t);
5448
+ } else f.value = e.key, o("change", e.key), I();
5449
+ }
5450
+ function B(e) {
5451
+ e.stopPropagation();
5452
+ let t = i.multiple ? [] : null;
5453
+ f.value = t, o("change", t);
5454
+ }
5455
+ function H(e, t) {
5456
+ if (e.stopPropagation(), !Array.isArray(f.value)) return;
5457
+ let n = f.value.filter((e) => e !== t);
5458
+ f.value = n, o("change", n);
5459
+ }
5460
+ function U(e) {
5461
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), L()) : e.key === "Escape" && I();
5462
+ }
5463
+ function W(e) {
5464
+ let t = e.target;
5465
+ h.value?.contains(t) || I();
5466
+ }
5467
+ return R(m, (e) => {
5468
+ e ? document.addEventListener("pointerdown", W) : document.removeEventListener("pointerdown", W);
5469
+ }), b(() => document.removeEventListener("pointerdown", W)), (r, i) => (x(), c("div", {
5470
+ ref_key: "containerRef",
5471
+ ref: h,
5472
+ class: _(["uid-tree-select", {
5473
+ "uid-tree-select--open": m.value,
5474
+ "uid-tree-select--disabled": n.disabled,
5475
+ "uid-tree-select--error": y.value
5476
+ }])
5477
+ }, [
5478
+ n.label ? (x(), c("label", {
5479
+ key: 0,
5480
+ for: j(v),
5481
+ class: "uid-tree-select__label"
5482
+ }, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", As, "*")) : s("", !0)], 8, ks)) : s("", !0),
5483
+ l("div", {
5484
+ id: j(v),
5485
+ ref_key: "triggerRef",
5486
+ ref: g,
5487
+ class: "uid-tree-select__trigger",
5488
+ tabindex: "0",
5489
+ role: "combobox",
5490
+ "aria-expanded": m.value,
5491
+ "aria-disabled": n.disabled,
5492
+ "aria-invalid": y.value ? "true" : void 0,
5493
+ onClick: L,
5494
+ onKeydown: U
5495
+ }, [l("div", Ms, [n.multiple ? (x(), c(t, { key: 0 }, [
5496
+ (x(!0), c(t, null, T(A.value, (e) => (x(), c("span", {
5497
+ key: e.key,
5498
+ class: "uid-tree-select__chip"
5499
+ }, [l("span", null, k(e.label), 1), l("button", {
5500
+ type: "button",
5501
+ class: "uid-tree-select__chip-remove",
5502
+ "aria-label": `Удалить ${e.label}`,
5503
+ onClick: V((t) => H(t, e.key), ["stop"])
5504
+ }, "×", 8, Ns)]))), 128)),
5505
+ P.value > 0 ? (x(), c("span", Ps, "+" + k(P.value), 1)) : s("", !0),
5506
+ O.value.length === 0 ? (x(), c("span", Fs, k(n.placeholder), 1)) : s("", !0)
5507
+ ], 64)) : (x(), c(t, { key: 1 }, [O.value.length > 0 ? (x(), c("span", Is, k(O.value[0].label), 1)) : (x(), c("span", Ls, k(n.placeholder), 1))], 64))]), l("div", Rs, [n.clearable && D.value.length > 0 ? (x(), c("button", {
5508
+ key: 0,
5509
+ type: "button",
5510
+ class: "uid-tree-select__clear",
5511
+ "aria-label": "Очистить",
5512
+ onClick: B
5513
+ }, [d(e, {
5514
+ icon: j(Z),
5515
+ size: 14
5516
+ }, null, 8, ["icon"])])) : s("", !0), d(e, {
5517
+ icon: j(Y),
5518
+ size: 16,
5519
+ class: _(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": m.value }]),
5520
+ "aria-hidden": "true"
5521
+ }, null, 8, ["icon", "class"])])], 40, js),
5522
+ m.value ? (x(), c("div", zs, [d(Ua, {
5523
+ nodes: n.nodes,
5524
+ "expanded-keys": p.value,
5525
+ "onUpdate:expandedKeys": i[0] ||= (e) => p.value = e,
5526
+ "selected-keys": D.value,
5527
+ selectable: n.multiple ? "multiple" : "single",
5528
+ "default-expand-all": n.defaultExpandAll,
5529
+ "show-guides": n.showGuides,
5530
+ onSelect: z
5531
+ }, null, 8, [
5532
+ "nodes",
5533
+ "expanded-keys",
5534
+ "selected-keys",
5535
+ "selectable",
5536
+ "default-expand-all",
5537
+ "show-guides"
5538
+ ])])) : s("", !0),
5539
+ S.value ? (x(), c("p", {
5540
+ key: 2,
5541
+ class: _(["uid-tree-select__hint", y.value && "uid-tree-select__hint--error"])
5542
+ }, k(S.value), 3)) : s("", !0)
5543
+ ], 2));
5544
+ }
5545
+ }), Vs = ["aria-label"], Hs = ["aria-current"], Us = { class: "uid-stepper__indicator" }, Ws = {
4458
5546
  key: 1,
4459
5547
  "aria-hidden": "true"
4460
- }, To = { class: "uid-stepper__content" }, Eo = { class: "uid-stepper__label" }, Do = {
5548
+ }, Gs = { class: "uid-stepper__content" }, Ks = { class: "uid-stepper__label" }, qs = {
4461
5549
  key: 0,
4462
5550
  class: "uid-stepper__description"
4463
- }, Oo = /* @__PURE__ */ f({
5551
+ }, Js = /* @__PURE__ */ f({
4464
5552
  __name: "UidStepper",
4465
5553
  props: {
4466
5554
  steps: {},
@@ -4478,14 +5566,14 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4478
5566
  key: i,
4479
5567
  class: _(["uid-stepper__step", [`uid-stepper__step--${r(i, n.current)}`]]),
4480
5568
  "aria-current": i === n.current ? "step" : void 0
4481
- }, [l("div", Co, [r(i, n.current) === "completed" ? (x(), o(e, {
5569
+ }, [l("div", Us, [r(i, n.current) === "completed" ? (x(), o(e, {
4482
5570
  key: 0,
4483
5571
  icon: j(q),
4484
5572
  size: 16,
4485
5573
  "aria-hidden": "true"
4486
- }, null, 8, ["icon"])) : (x(), c("span", wo, k(i + 1), 1))]), l("div", To, [l("span", Eo, k(t.label), 1), t.description ? (x(), c("span", Do, k(t.description), 1)) : s("", !0)])], 10, So))), 128))], 10, xo));
5574
+ }, null, 8, ["icon"])) : (x(), c("span", Ws, k(i + 1), 1))]), l("div", Gs, [l("span", Ks, k(t.label), 1), t.description ? (x(), c("span", qs, k(t.description), 1)) : s("", !0)])], 10, Hs))), 128))], 10, Vs));
4487
5575
  }
4488
- }), ko = /* @__PURE__ */ f({
5576
+ }), Ys = /* @__PURE__ */ f({
4489
5577
  __name: "UidStack",
4490
5578
  props: {
4491
5579
  direction: { default: "column" },
@@ -4527,11 +5615,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4527
5615
  class: _(["uid-stack", { "uid-stack--inline": e.inline }]),
4528
5616
  style: v(i.value)
4529
5617
  }, {
4530
- default: R(() => [E(t.$slots, "default")]),
5618
+ default: z(() => [E(t.$slots, "default")]),
4531
5619
  _: 3
4532
5620
  }, 8, ["class", "style"]));
4533
5621
  }
4534
- }), Ao = /* @__PURE__ */ f({
5622
+ }), Xs = /* @__PURE__ */ f({
4535
5623
  __name: "UidGrid",
4536
5624
  props: {
4537
5625
  cols: { default: 12 },
@@ -4560,11 +5648,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4560
5648
  class: "uid-grid",
4561
5649
  style: v(r.value)
4562
5650
  }, {
4563
- default: R(() => [E(t.$slots, "default")]),
5651
+ default: z(() => [E(t.$slots, "default")]),
4564
5652
  _: 3
4565
5653
  }, 8, ["style"]));
4566
5654
  }
4567
- }), jo = /* @__PURE__ */ f({
5655
+ }), Zs = /* @__PURE__ */ f({
4568
5656
  __name: "UidContainer",
4569
5657
  props: {
4570
5658
  size: { default: "lg" },
@@ -4576,11 +5664,11 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4576
5664
  },
4577
5665
  setup(e) {
4578
5666
  return (t, n) => (x(), o(O(e.as), { class: _(["uid-container", [`uid-container--${e.size}`, { "uid-container--padded": e.padding }]]) }, {
4579
- default: R(() => [E(t.$slots, "default")]),
5667
+ default: z(() => [E(t.$slots, "default")]),
4580
5668
  _: 3
4581
5669
  }, 8, ["class"]));
4582
5670
  }
4583
- }), Mo = Symbol("uid-wizard"), No = { class: "uid-wizard" }, Po = /* @__PURE__ */ f({
5671
+ }), Qs = Symbol("uid-wizard"), $s = { class: "uid-wizard" }, ec = /* @__PURE__ */ f({
4584
5672
  __name: "UidWizard",
4585
5673
  props: /* @__PURE__ */ m({ steps: {} }, {
4586
5674
  modelValue: { default: 0 },
@@ -4605,7 +5693,7 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4605
5693
  function m(e) {
4606
5694
  i.delete(e);
4607
5695
  }
4608
- return S(Mo, {
5696
+ return S(Qs, {
4609
5697
  current: r,
4610
5698
  steps: o,
4611
5699
  isFirst: s,
@@ -4622,9 +5710,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4622
5710
  goTo: f,
4623
5711
  isFirst: s,
4624
5712
  isLast: l
4625
- }), (e, t) => (x(), c("div", No, [E(e.$slots, "default")]));
5713
+ }), (e, t) => (x(), c("div", $s, [E(e.$slots, "default")]));
4626
5714
  }
4627
- }), Fo = ["aria-label"], Io = /* @__PURE__ */ f({
5715
+ }), tc = ["aria-label"], nc = /* @__PURE__ */ f({
4628
5716
  __name: "UidWizardStep",
4629
5717
  props: {
4630
5718
  index: {},
@@ -4634,9 +5722,9 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4634
5722
  }
4635
5723
  },
4636
5724
  setup(e) {
4637
- let t = e, n = p(Mo);
5725
+ let t = e, n = p(Qs);
4638
5726
  if (!n) throw Error("UidWizardStep must be inside UidWizard");
4639
- L(() => t.validate, (e, r) => {
5727
+ R(() => t.validate, (e, r) => {
4640
5728
  r !== void 0 && n.unregisterValidator(t.index), e !== void 0 && n.registerValidator(t.index, e);
4641
5729
  }, { immediate: !0 }), b(() => n.unregisterValidator(t.index));
4642
5730
  let r = a(() => n.current.value === t.index);
@@ -4645,22 +5733,22 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4645
5733
  class: "uid-wizard-step",
4646
5734
  role: "tabpanel",
4647
5735
  "aria-label": `Шаг ${e.index + 1}`
4648
- }, [E(t.$slots, "default")], 8, Fo)) : s("", !0);
5736
+ }, [E(t.$slots, "default")], 8, tc)) : s("", !0);
4649
5737
  }
4650
- }), Lo = { class: "uid-pattern-header__inner" }, Ro = {
5738
+ }), rc = { class: "uid-pattern-header__inner" }, ic = {
4651
5739
  key: 0,
4652
5740
  class: "uid-pattern-header__logo"
4653
- }, zo = {
5741
+ }, ac = {
4654
5742
  key: 1,
4655
5743
  class: "uid-pattern-header__nav",
4656
5744
  "aria-label": "Основная навигация"
4657
- }, Bo = {
5745
+ }, oc = {
4658
5746
  key: 2,
4659
5747
  class: "uid-pattern-header__actions"
4660
- }, Vo = {
5748
+ }, sc = {
4661
5749
  key: 3,
4662
5750
  class: "uid-pattern-header__mobile"
4663
- }, Ho = /* @__PURE__ */ f({
5751
+ }, cc = /* @__PURE__ */ f({
4664
5752
  __name: "UidHeader",
4665
5753
  props: {
4666
5754
  sticky: {
@@ -4681,38 +5769,38 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4681
5769
  "uid-pattern-header--sticky": e.sticky,
4682
5770
  "uid-pattern-header--bordered": e.bordered,
4683
5771
  "uid-pattern-header--transparent": e.transparent
4684
- }]) }, [l("div", Lo, [
4685
- t.$slots.logo ? (x(), c("div", Ro, [E(t.$slots, "logo")])) : s("", !0),
4686
- t.$slots.nav ? (x(), c("nav", zo, [E(t.$slots, "nav")])) : s("", !0),
4687
- t.$slots.actions ? (x(), c("div", Bo, [E(t.$slots, "actions")])) : s("", !0),
4688
- t.$slots.mobile ? (x(), c("div", Vo, [E(t.$slots, "mobile")])) : s("", !0)
5772
+ }]) }, [l("div", rc, [
5773
+ t.$slots.logo ? (x(), c("div", ic, [E(t.$slots, "logo")])) : s("", !0),
5774
+ t.$slots.nav ? (x(), c("nav", ac, [E(t.$slots, "nav")])) : s("", !0),
5775
+ t.$slots.actions ? (x(), c("div", oc, [E(t.$slots, "actions")])) : s("", !0),
5776
+ t.$slots.mobile ? (x(), c("div", sc, [E(t.$slots, "mobile")])) : s("", !0)
4689
5777
  ])], 2));
4690
5778
  }
4691
- }), Uo = { class: "uid-pattern-footer__inner" }, Wo = {
5779
+ }), lc = { class: "uid-pattern-footer__inner" }, uc = {
4692
5780
  key: 0,
4693
5781
  class: "uid-pattern-footer__columns"
4694
- }, Go = {
5782
+ }, dc = {
4695
5783
  key: 1,
4696
5784
  class: "uid-pattern-footer__content"
4697
- }, Ko = {
5785
+ }, fc = {
4698
5786
  key: 2,
4699
5787
  class: "uid-pattern-footer__bottom"
4700
- }, qo = /* @__PURE__ */ f({
5788
+ }, pc = /* @__PURE__ */ f({
4701
5789
  __name: "UidFooter",
4702
5790
  props: { variant: { default: "minimal" } },
4703
5791
  setup(e) {
4704
- return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", Uo, [t.$slots.columns ? (x(), c("div", Wo, [E(t.$slots, "columns")])) : t.$slots.default ? (x(), c("div", Go, [E(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (x(), c("div", Ko, [E(t.$slots, "bottom")])) : s("", !0)])], 2));
5792
+ return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", lc, [t.$slots.columns ? (x(), c("div", uc, [E(t.$slots, "columns")])) : t.$slots.default ? (x(), c("div", dc, [E(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (x(), c("div", fc, [E(t.$slots, "bottom")])) : s("", !0)])], 2));
4705
5793
  }
4706
- }), Jo = {
5794
+ }), mc = {
4707
5795
  key: 0,
4708
5796
  class: "uid-pattern-sidebar__header"
4709
- }, Yo = {
5797
+ }, hc = {
4710
5798
  class: "uid-pattern-sidebar__nav",
4711
5799
  "aria-label": "Навигация"
4712
- }, Xo = {
5800
+ }, gc = {
4713
5801
  key: 1,
4714
5802
  class: "uid-pattern-sidebar__footer"
4715
- }, Zo = /* @__PURE__ */ f({
5803
+ }, _c = /* @__PURE__ */ f({
4716
5804
  __name: "UidSidebar",
4717
5805
  props: {
4718
5806
  collapsed: {
@@ -4728,19 +5816,19 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4728
5816
  style: v(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
4729
5817
  "aria-label": "Боковая навигация"
4730
5818
  }, [
4731
- t.$slots.header ? (x(), c("div", Jo, [E(t.$slots, "header")])) : s("", !0),
4732
- l("nav", Yo, [E(t.$slots, "nav")]),
4733
- t.$slots.footer ? (x(), c("div", Xo, [E(t.$slots, "footer")])) : s("", !0)
5819
+ t.$slots.header ? (x(), c("div", mc, [E(t.$slots, "header")])) : s("", !0),
5820
+ l("nav", hc, [E(t.$slots, "nav")]),
5821
+ t.$slots.footer ? (x(), c("div", gc, [E(t.$slots, "footer")])) : s("", !0)
4734
5822
  ], 6));
4735
5823
  }
4736
- }), Qo = {
5824
+ }), vc = {
4737
5825
  key: 0,
4738
5826
  class: "uid-sidebar-item__icon",
4739
5827
  "aria-hidden": "true"
4740
- }, $o = { class: "uid-sidebar-item__label" }, es = {
5828
+ }, yc = { class: "uid-sidebar-item__label" }, bc = {
4741
5829
  key: 1,
4742
5830
  class: "uid-sidebar-item__badge"
4743
- }, ts = /* @__PURE__ */ f({
5831
+ }, xc = /* @__PURE__ */ f({
4744
5832
  __name: "UidSidebarItem",
4745
5833
  props: {
4746
5834
  href: { default: void 0 },
@@ -4774,10 +5862,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4774
5862
  "aria-disabled": e.disabled || void 0,
4775
5863
  tabindex: e.disabled ? -1 : void 0
4776
5864
  }), {
4777
- default: R(() => [
4778
- t.$slots.icon ? (x(), c("span", Qo, [E(t.$slots, "icon")])) : s("", !0),
4779
- l("span", $o, [E(t.$slots, "default")]),
4780
- e.badge === void 0 ? s("", !0) : (x(), c("span", es, k(e.badge), 1))
5865
+ default: z(() => [
5866
+ t.$slots.icon ? (x(), c("span", vc, [E(t.$slots, "icon")])) : s("", !0),
5867
+ l("span", yc, [E(t.$slots, "default")]),
5868
+ e.badge === void 0 ? s("", !0) : (x(), c("span", bc, k(e.badge), 1))
4781
5869
  ]),
4782
5870
  _: 3
4783
5871
  }, 16, [
@@ -4787,10 +5875,10 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4787
5875
  "tabindex"
4788
5876
  ]));
4789
5877
  }
4790
- }), ns = { class: "uid-sidebar-group" }, rs = {
5878
+ }), Sc = { class: "uid-sidebar-group" }, Cc = {
4791
5879
  key: 0,
4792
5880
  class: "uid-sidebar-group__title"
4793
- }, is = /* @__PURE__ */ f({
5881
+ }, wc = /* @__PURE__ */ f({
4794
5882
  __name: "UidSidebarGroup",
4795
5883
  props: {
4796
5884
  title: { default: void 0 },
@@ -4800,29 +5888,29 @@ var jn = /* @__PURE__ */ Dn(On, [["render", An]]), Mn = Symbol("uid-tabs"), Nn =
4800
5888
  }
4801
5889
  },
4802
5890
  setup(e) {
4803
- return (t, n) => (x(), c("div", ns, [e.title ? (x(), c("p", rs, k(e.title), 1)) : s("", !0), E(t.$slots, "default")]));
5891
+ return (t, n) => (x(), c("div", Sc, [e.title ? (x(), c("p", Cc, k(e.title), 1)) : s("", !0), E(t.$slots, "default")]));
4804
5892
  }
4805
- }), as = {}, os = {
5893
+ }), Tc = {}, Ec = {
4806
5894
  class: "uid-sidebar-divider",
4807
5895
  role: "separator",
4808
5896
  "aria-hidden": "true"
4809
5897
  };
4810
- function ss(e, t) {
4811
- return x(), c("div", os);
5898
+ function Dc(e, t) {
5899
+ return x(), c("div", Ec);
4812
5900
  }
4813
- var cs = /* @__PURE__ */ Dn(as, [["render", ss]]), ls = { class: "uid-pattern-page-header" }, us = {
5901
+ var Oc = /* @__PURE__ */ An(Tc, [["render", Dc]]), kc = { class: "uid-pattern-page-header" }, Ac = {
4814
5902
  key: 0,
4815
5903
  class: "uid-pattern-page-header__breadcrumb"
4816
- }, ds = { class: "uid-pattern-page-header__row" }, fs = { class: "uid-pattern-page-header__heading" }, ps = { class: "uid-pattern-page-header__title" }, ms = {
5904
+ }, jc = { class: "uid-pattern-page-header__row" }, Mc = { class: "uid-pattern-page-header__heading" }, Nc = { class: "uid-pattern-page-header__title" }, Pc = {
4817
5905
  key: 0,
4818
5906
  class: "uid-pattern-page-header__description"
4819
- }, hs = {
5907
+ }, Fc = {
4820
5908
  key: 0,
4821
5909
  class: "uid-pattern-page-header__actions"
4822
- }, gs = {
5910
+ }, Ic = {
4823
5911
  key: 1,
4824
5912
  class: "uid-pattern-page-header__tabs"
4825
- }, _s = /* @__PURE__ */ f({
5913
+ }, Lc = /* @__PURE__ */ f({
4826
5914
  __name: "UidPageHeader",
4827
5915
  props: {
4828
5916
  title: { default: void 0 },
@@ -4835,53 +5923,53 @@ var cs = /* @__PURE__ */ Dn(as, [["render", ss]]), ls = { class: "uid-pattern-pa
4835
5923
  emits: ["back"],
4836
5924
  setup(t, { emit: n }) {
4837
5925
  let r = n;
4838
- return (n, i) => (x(), c("div", ls, [
4839
- n.$slots.breadcrumb ? (x(), c("div", us, [E(n.$slots, "breadcrumb")])) : s("", !0),
4840
- l("div", ds, [l("div", fs, [t.back ? (x(), c("button", {
5926
+ return (n, i) => (x(), c("div", kc, [
5927
+ n.$slots.breadcrumb ? (x(), c("div", Ac, [E(n.$slots, "breadcrumb")])) : s("", !0),
5928
+ l("div", jc, [l("div", Mc, [t.back ? (x(), c("button", {
4841
5929
  key: 0,
4842
5930
  type: "button",
4843
5931
  class: "uid-pattern-page-header__back",
4844
5932
  "aria-label": "Назад",
4845
5933
  onClick: i[0] ||= (e) => r("back")
4846
5934
  }, [d(e, {
4847
- icon: j(W),
5935
+ icon: j(G),
4848
5936
  size: 20
4849
- }, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1", ps, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", ms, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (x(), c("div", hs, [E(n.$slots, "actions")])) : s("", !0)]),
4850
- n.$slots.tabs ? (x(), c("div", gs, [E(n.$slots, "tabs")])) : s("", !0)
5937
+ }, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1", Nc, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", Pc, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (x(), c("div", Fc, [E(n.$slots, "actions")])) : s("", !0)]),
5938
+ n.$slots.tabs ? (x(), c("div", Ic, [E(n.$slots, "tabs")])) : s("", !0)
4851
5939
  ]));
4852
5940
  }
4853
- }), vs = { class: "uid-pattern-empty-state" }, ys = { class: "uid-pattern-empty-state__illustration" }, bs = { class: "uid-pattern-empty-state__content" }, xs = { class: "uid-pattern-empty-state__title" }, Ss = {
5941
+ }), Rc = { class: "uid-pattern-empty-state" }, zc = { class: "uid-pattern-empty-state__illustration" }, Bc = { class: "uid-pattern-empty-state__content" }, Vc = { class: "uid-pattern-empty-state__title" }, Hc = {
4854
5942
  key: 0,
4855
5943
  class: "uid-pattern-empty-state__description"
4856
- }, Cs = {
5944
+ }, Uc = {
4857
5945
  key: 0,
4858
5946
  class: "uid-pattern-empty-state__actions"
4859
- }, ws = /* @__PURE__ */ f({
5947
+ }, Wc = /* @__PURE__ */ f({
4860
5948
  __name: "UidEmptyState",
4861
5949
  props: {
4862
5950
  title: { default: "Ничего не найдено" },
4863
5951
  description: { default: void 0 }
4864
5952
  },
4865
5953
  setup(t) {
4866
- return (n, r) => (x(), c("div", vs, [
4867
- l("div", ys, [E(n.$slots, "illustration", {}, () => [d(e, {
4868
- icon: j(ae),
5954
+ return (n, r) => (x(), c("div", Rc, [
5955
+ l("div", zc, [E(n.$slots, "illustration", {}, () => [d(e, {
5956
+ icon: j(oe),
4869
5957
  size: 48
4870
5958
  }, null, 8, ["icon"])])]),
4871
- l("div", bs, [l("h2", xs, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", Ss, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)]),
4872
- n.$slots.actions ? (x(), c("div", Cs, [E(n.$slots, "actions")])) : s("", !0)
5959
+ l("div", Bc, [l("h2", Vc, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", Hc, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)]),
5960
+ n.$slots.actions ? (x(), c("div", Uc, [E(n.$slots, "actions")])) : s("", !0)
4873
5961
  ]));
4874
5962
  }
4875
- }), Ts = { class: "uid-pattern-error-state" }, Es = { class: "uid-pattern-error-state__illustration" }, Ds = {
5963
+ }), Gc = { class: "uid-pattern-error-state" }, Kc = { class: "uid-pattern-error-state__illustration" }, qc = {
4876
5964
  key: 0,
4877
5965
  class: "uid-pattern-error-state__code"
4878
- }, Os = { class: "uid-pattern-error-state__content" }, ks = { class: "uid-pattern-error-state__title" }, As = {
5966
+ }, Jc = { class: "uid-pattern-error-state__content" }, Yc = { class: "uid-pattern-error-state__title" }, Xc = {
4879
5967
  key: 0,
4880
5968
  class: "uid-pattern-error-state__description"
4881
- }, js = {
5969
+ }, Zc = {
4882
5970
  key: 1,
4883
5971
  class: "uid-pattern-error-state__actions"
4884
- }, Ms = /* @__PURE__ */ f({
5972
+ }, Qc = /* @__PURE__ */ f({
4885
5973
  __name: "UidErrorState",
4886
5974
  props: {
4887
5975
  code: { default: void 0 },
@@ -4891,38 +5979,38 @@ var cs = /* @__PURE__ */ Dn(as, [["render", ss]]), ls = { class: "uid-pattern-pa
4891
5979
  setup(t) {
4892
5980
  let n = t, r = {
4893
5981
  404: {
4894
- icon: V,
5982
+ icon: H,
4895
5983
  title: "Страница не найдена",
4896
5984
  description: "Запрашиваемая страница не существует или была перемещена."
4897
5985
  },
4898
5986
  500: {
4899
- icon: ue,
5987
+ icon: de,
4900
5988
  title: "Ошибка сервера",
4901
5989
  description: "На сервере произошла ошибка. Мы уже работаем над исправлением."
4902
5990
  },
4903
5991
  network: {
4904
- icon: fe,
5992
+ icon: me,
4905
5993
  title: "Нет соединения",
4906
5994
  description: "Проверьте подключение к интернету и попробуйте снова."
4907
5995
  }
4908
- }, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ?? V), f = a(() => n.title ?? i.value?.title ?? "Что-то пошло не так"), p = a(() => n.description ?? i.value?.description);
4909
- return (n, r) => (x(), c("div", Ts, [
4910
- l("div", Es, [E(n.$slots, "illustration", {}, () => [d(e, {
5996
+ }, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ?? H), f = a(() => n.title ?? i.value?.title ?? "Что-то пошло не так"), p = a(() => n.description ?? i.value?.description);
5997
+ return (n, r) => (x(), c("div", Gc, [
5998
+ l("div", Kc, [E(n.$slots, "illustration", {}, () => [d(e, {
4911
5999
  icon: o.value,
4912
6000
  size: 48
4913
6001
  }, null, 8, ["icon"])])]),
4914
- t.code ? (x(), c("div", Ds, k(t.code), 1)) : s("", !0),
4915
- l("div", Os, [l("h2", ks, [E(n.$slots, "title", {}, () => [u(k(f.value), 1)])]), p.value || n.$slots.description ? (x(), c("p", As, [E(n.$slots, "description", {}, () => [u(k(p.value), 1)])])) : s("", !0)]),
4916
- n.$slots.actions ? (x(), c("div", js, [E(n.$slots, "actions")])) : s("", !0)
6002
+ t.code ? (x(), c("div", qc, k(t.code), 1)) : s("", !0),
6003
+ l("div", Jc, [l("h2", Yc, [E(n.$slots, "title", {}, () => [u(k(f.value), 1)])]), p.value || n.$slots.description ? (x(), c("p", Xc, [E(n.$slots, "description", {}, () => [u(k(p.value), 1)])])) : s("", !0)]),
6004
+ n.$slots.actions ? (x(), c("div", Zc, [E(n.$slots, "actions")])) : s("", !0)
4917
6005
  ]));
4918
6006
  }
4919
- }), Ns = {
6007
+ }), $c = {
4920
6008
  key: 0,
4921
6009
  class: "uid-layout-simple__header"
4922
- }, Ps = { class: "uid-layout-simple__content" }, Fs = {
6010
+ }, el = { class: "uid-layout-simple__content" }, tl = {
4923
6011
  key: 1,
4924
6012
  class: "uid-layout-simple__footer"
4925
- }, Is = /* @__PURE__ */ f({
6013
+ }, nl = /* @__PURE__ */ f({
4926
6014
  __name: "UidSimpleLayout",
4927
6015
  props: { full: {
4928
6016
  type: Boolean,
@@ -4930,26 +6018,26 @@ var cs = /* @__PURE__ */ Dn(as, [["render", ss]]), ls = { class: "uid-pattern-pa
4930
6018
  } },
4931
6019
  setup(e) {
4932
6020
  return (t, n) => (x(), c("div", { class: _(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
4933
- t.$slots.header ? (x(), c("div", Ns, [E(t.$slots, "header")])) : s("", !0),
4934
- l("main", Ps, [E(t.$slots, "default")]),
4935
- t.$slots.footer ? (x(), c("div", Fs, [E(t.$slots, "footer")])) : s("", !0)
6021
+ t.$slots.header ? (x(), c("div", $c, [E(t.$slots, "header")])) : s("", !0),
6022
+ l("main", el, [E(t.$slots, "default")]),
6023
+ t.$slots.footer ? (x(), c("div", tl, [E(t.$slots, "footer")])) : s("", !0)
4936
6024
  ], 2));
4937
6025
  }
4938
- }), Ls = Symbol("uid-sidebar-layout");
4939
- function Rs() {
4940
- let e = p(Ls);
6026
+ }), rl = Symbol("uid-sidebar-layout");
6027
+ function il() {
6028
+ let e = p(rl);
4941
6029
  if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
4942
6030
  return e;
4943
6031
  }
4944
6032
  //#endregion
4945
6033
  //#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
4946
- var zs = { class: "uid-layout-sidebar__sidebar" }, Bs = { class: "uid-layout-sidebar__main" }, Vs = {
6034
+ var al = { class: "uid-layout-sidebar__sidebar" }, ol = { class: "uid-layout-sidebar__main" }, sl = {
4947
6035
  key: 0,
4948
6036
  class: "uid-layout-sidebar__main-header"
4949
- }, Hs = { class: "uid-layout-sidebar__main-content" }, Us = {
6037
+ }, cl = { class: "uid-layout-sidebar__main-content" }, ll = {
4950
6038
  key: 1,
4951
6039
  class: "uid-layout-sidebar__main-footer"
4952
- }, Ws = /* @__PURE__ */ f({
6040
+ }, ul = /* @__PURE__ */ f({
4953
6041
  __name: "UidSidebarLayout",
4954
6042
  props: /* @__PURE__ */ m({ sidebarWidth: { default: void 0 } }, {
4955
6043
  modelValue: {
@@ -4967,7 +6055,7 @@ var zs = { class: "uid-layout-sidebar__sidebar" }, Bs = { class: "uid-layout-sid
4967
6055
  }, o = () => {
4968
6056
  n.value = !0;
4969
6057
  };
4970
- S(Ls, {
6058
+ S(rl, {
4971
6059
  collapsed: n,
4972
6060
  toggle: r,
4973
6061
  open: i,
@@ -4978,63 +6066,63 @@ var zs = { class: "uid-layout-sidebar__sidebar" }, Bs = { class: "uid-layout-sid
4978
6066
  class: _(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
4979
6067
  style: v(u.value)
4980
6068
  }, [
4981
- l("aside", zs, [E(e.$slots, "sidebar")]),
6069
+ l("aside", al, [E(e.$slots, "sidebar")]),
4982
6070
  l("div", {
4983
6071
  class: "uid-layout-sidebar__backdrop",
4984
6072
  "aria-hidden": "true",
4985
6073
  onClick: o
4986
6074
  }),
4987
- l("div", Bs, [
4988
- e.$slots.header ? (x(), c("div", Vs, [E(e.$slots, "header")])) : s("", !0),
4989
- l("main", Hs, [E(e.$slots, "default")]),
4990
- e.$slots.footer ? (x(), c("div", Us, [E(e.$slots, "footer")])) : s("", !0)
6075
+ l("div", ol, [
6076
+ e.$slots.header ? (x(), c("div", sl, [E(e.$slots, "header")])) : s("", !0),
6077
+ l("main", cl, [E(e.$slots, "default")]),
6078
+ e.$slots.footer ? (x(), c("div", ll, [E(e.$slots, "footer")])) : s("", !0)
4991
6079
  ])
4992
6080
  ], 6));
4993
6081
  }
4994
- }), Gs = {
6082
+ }), dl = {
4995
6083
  key: 0,
4996
6084
  class: "uid-layout-auth__brand"
4997
- }, Ks = { class: "uid-layout-auth__main" }, qs = { class: "uid-layout-auth__card" }, Js = {
6085
+ }, fl = { class: "uid-layout-auth__main" }, pl = { class: "uid-layout-auth__card" }, ml = {
4998
6086
  key: 0,
4999
6087
  class: "uid-layout-auth__footer"
5000
- }, Ys = /* @__PURE__ */ f({
6088
+ }, hl = /* @__PURE__ */ f({
5001
6089
  __name: "UidAuthLayout",
5002
6090
  props: { variant: { default: "centered" } },
5003
6091
  setup(e) {
5004
- return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div", Gs, [E(t.$slots, "brand")])) : s("", !0), l("div", Ks, [l("div", qs, [E(t.$slots, "default")]), t.$slots.footer ? (x(), c("div", Js, [E(t.$slots, "footer")])) : s("", !0)])], 2));
6092
+ return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div", dl, [E(t.$slots, "brand")])) : s("", !0), l("div", fl, [l("div", pl, [E(t.$slots, "default")]), t.$slots.footer ? (x(), c("div", ml, [E(t.$slots, "footer")])) : s("", !0)])], 2));
5005
6093
  }
5006
- }), Xs = { class: "uid-layout-wizard" }, Zs = {
6094
+ }), gl = { class: "uid-layout-wizard" }, _l = {
5007
6095
  key: 0,
5008
6096
  class: "uid-layout-wizard__header"
5009
- }, Qs = {
6097
+ }, vl = {
5010
6098
  key: 1,
5011
6099
  class: "uid-layout-wizard__stepper"
5012
- }, $s = { class: "uid-layout-wizard__content" }, ec = {
6100
+ }, yl = { class: "uid-layout-wizard__content" }, bl = {
5013
6101
  key: 2,
5014
6102
  class: "uid-layout-wizard__nav"
5015
- }, tc = /* @__PURE__ */ f({
6103
+ }, xl = /* @__PURE__ */ f({
5016
6104
  __name: "UidWizardLayout",
5017
6105
  setup(e) {
5018
- return (e, t) => (x(), c("div", Xs, [
5019
- e.$slots.header ? (x(), c("div", Zs, [E(e.$slots, "header")])) : s("", !0),
5020
- e.$slots.stepper ? (x(), c("div", Qs, [E(e.$slots, "stepper")])) : s("", !0),
5021
- l("main", $s, [E(e.$slots, "default")]),
5022
- e.$slots.nav ? (x(), c("div", ec, [E(e.$slots, "nav")])) : s("", !0)
6106
+ return (e, t) => (x(), c("div", gl, [
6107
+ e.$slots.header ? (x(), c("div", _l, [E(e.$slots, "header")])) : s("", !0),
6108
+ e.$slots.stepper ? (x(), c("div", vl, [E(e.$slots, "stepper")])) : s("", !0),
6109
+ l("main", yl, [E(e.$slots, "default")]),
6110
+ e.$slots.nav ? (x(), c("div", bl, [E(e.$slots, "nav")])) : s("", !0)
5023
6111
  ]));
5024
6112
  }
5025
- }), nc = w("light");
5026
- function rc() {
6113
+ }), Sl = w("light");
6114
+ function Cl() {
5027
6115
  let e = null;
5028
6116
  function t(e) {
5029
- nc.value = e, document.documentElement.dataset.theme = e;
6117
+ Sl.value = e, document.documentElement.dataset.theme = e;
5030
6118
  }
5031
6119
  function n() {
5032
- t(nc.value === "light" ? "dark" : "light");
6120
+ t(Sl.value === "light" ? "dark" : "light");
5033
6121
  }
5034
6122
  function r() {
5035
6123
  let e = document.documentElement.dataset.theme;
5036
6124
  if (e === "light" || e === "dark") {
5037
- nc.value = e;
6125
+ Sl.value = e;
5038
6126
  return;
5039
6127
  }
5040
6128
  let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -5046,7 +6134,7 @@ function rc() {
5046
6134
  e.addEventListener("change", n), b(() => e?.removeEventListener("change", n));
5047
6135
  }
5048
6136
  return {
5049
- theme: nc,
6137
+ theme: Sl,
5050
6138
  setTheme: t,
5051
6139
  toggle: n,
5052
6140
  initFromSystem: r,
@@ -5055,27 +6143,27 @@ function rc() {
5055
6143
  }
5056
6144
  //#endregion
5057
6145
  //#region src/composables/useWizard.ts
5058
- function ic() {
5059
- let e = p(Mo);
6146
+ function wl() {
6147
+ let e = p(Qs);
5060
6148
  if (!e) throw Error("useWizard() must be used inside UidWizard");
5061
6149
  return e;
5062
6150
  }
5063
6151
  //#endregion
5064
6152
  //#region src/composables/useCommandPalette.ts
5065
- var ac = w(!1);
5066
- function oc() {
6153
+ var Tl = w(!1);
6154
+ function El() {
5067
6155
  return {
5068
- open: ac,
6156
+ open: Tl,
5069
6157
  show: () => {
5070
- ac.value = !0;
6158
+ Tl.value = !0;
5071
6159
  },
5072
6160
  hide: () => {
5073
- ac.value = !1;
6161
+ Tl.value = !1;
5074
6162
  },
5075
6163
  toggle: () => {
5076
- ac.value = !ac.value;
6164
+ Tl.value = !Tl.value;
5077
6165
  }
5078
6166
  };
5079
6167
  }
5080
6168
  //#endregion
5081
- export { Ar as UidAccordion, Ir as UidAccordionItem, Lt as UidAlert, Ys as UidAuthLayout, xr as UidAvatar, wr as UidAvatarGroup, Mt as UidBadge, Vn as UidBreadcrumb, Gn as UidBreadcrumbItem, ge as UidButton, vr as UidCard, it as UidCheckbox, bo as UidCode, wi as UidColorPicker, ka as UidCombobox, Pi as UidCommand, jo as UidContainer, li as UidDatePicker, ua as UidDateRangePicker, Dr as UidDivider, hn as UidDrawer, ws as UidEmptyState, Ms as UidErrorState, fo as UidFileUpload, qo as UidFooter, Dt as UidFormField, Ao as UidGrid, Ho as UidHeader, e as UidIcon, cr as UidInfiniteScroll, Je as UidInput, St as UidLabel, Kn as UidLink, ar as UidLoadMore, wn as UidMenu, En as UidMenuItem, jn as UidMenuSeparator, ln as UidModal, Hi as UidNumberInput, _s as UidPageHeader, pr as UidPageSize, Qn as UidPagination, nr as UidPaginationCursor, Sn as UidPopover, Qt as UidProgress, ct as UidRadio, mt as UidRadioGroup, ti as UidSelect, Zo as UidSidebar, cs as UidSidebarDivider, is as UidSidebarGroup, ts as UidSidebarItem, Ws as UidSidebarLayout, Is as UidSimpleLayout, jt as UidSkeleton, hi as UidSlider, kt as UidSpinner, ko as UidStack, Oo as UidStepper, yt as UidSwitch, Ln as UidTab, zn as UidTabPanel, Kr as UidTable, Fn as UidTabs, Tr as UidTag, ga as UidTagsInput, $e as UidTextarea, Yi as UidTimePicker, Va as UidTimeline, Ya as UidTimelineItem, Ht as UidToast, Kt as UidToastProvider, xn as UidTooltip, za as UidTreeItem, Ba as UidTreeView, ui as UidVirtualList, Po as UidWizard, tc as UidWizardLayout, Io as UidWizardStep, we as email, Q as getMessage, Ne as inList, De as integer, ke as max, je as maxValue, Oe as min, Ae as minValue, Ce as nullable, Ee as numeric, Re as parseRules, Me as regex, Se as required, Fe as requiredIf, Ie as requiredUnless, ze as runRules, Pe as sameAs, ye as setMessages, Te as url, oc as useCommandPalette, Be as useField, en as useFocusTrap, vn as usePopover, nn as useScrollLock, Rs as useSidebar, rc as useTheme, Gt as useToast, ic as useWizard };
6169
+ export { Nr as UidAccordion, zr as UidAccordionItem, is as UidAffix, Bt as UidAlert, ps as UidAnchor, hl as UidAuthLayout, wr as UidAvatar, Dr as UidAvatarGroup, ns as UidBackTop, Ft as UidBadge, Wn as UidBreadcrumb, Jn as UidBreadcrumbItem, ye as UidButton, xr as UidCard, st as UidCheckbox, Co as UidCode, Di as UidColorPicker, Ma as UidCombobox, Li as UidCommand, Zs as UidContainer, fi as UidDatePicker, pa as UidDateRangePicker, Jo as UidDescriptionItem, Wo as UidDescriptionList, Ar as UidDivider, vn as UidDrawer, Wc as UidEmptyState, Qc as UidErrorState, ho as UidFileUpload, pc as UidFooter, At as UidFormField, Xs as UidGrid, cc as UidHeader, e as UidIcon, dr as UidInfiniteScroll, Ze as UidInput, Tt as UidLabel, Yn as UidLink, cr as UidLoadMore, Os as UidMention, Dn as UidMenu, kn as UidMenuItem, Pn as UidMenuSeparator, fn as UidModal, Gi as UidNumberInput, Lc as UidPageHeader, gr as UidPageSize, tr as UidPagination, ar as UidPaginationCursor, Tn as UidPopover, tn as UidProgress, dt as UidRadio, _t as UidRadioGroup, ko as UidRating, es as UidResult, ii as UidSelect, _c as UidSidebar, Oc as UidSidebarDivider, wc as UidSidebarGroup, xc as UidSidebarItem, ul as UidSidebarLayout, nl as UidSimpleLayout, Pt as UidSkeleton, vi as UidSlider, Mt as UidSpinner, Mo as UidSplitter, Ys as UidStack, Vo as UidStat, Js as UidStepper, St as UidSwitch, Bn as UidTab, Hn as UidTabPanel, Yr as UidTable, Rn as UidTabs, Or as UidTag, ya as UidTagsInput, nt as UidTextarea, Qi as UidTimePicker, Wa as UidTimeline, Qa as UidTimelineItem, Gt as UidToast, Yt as UidToastProvider, wn as UidTooltip, xs as UidTour, Ha as UidTreeItem, Bs as UidTreeSelect, Ua as UidTreeView, pi as UidVirtualList, ss as UidWatermark, ec as UidWizard, xl as UidWizardLayout, nc as UidWizardStep, De as email, Q as getMessage, Ie as inList, Ae as integer, Me as max, Pe as maxValue, je as min, Ne as minValue, Ee as nullable, ke as numeric, Ve as parseRules, Fe as regex, Te as required, Re as requiredIf, ze as requiredUnless, He as runRules, Le as sameAs, Se as setMessages, Oe as url, El as useCommandPalette, Ue as useField, rn as useFocusTrap, xn as usePopover, on as useScrollLock, il as useSidebar, Cl as useTheme, Jt as useToast, wl as useWizard };