sinde-ui 1.0.0 → 1.1.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.
package/dist/index.mjs CHANGED
@@ -1,27 +1,26 @@
1
1
  import { n as e, t } from "./chunks/use-ui-config-Ckaon2pR.mjs";
2
- import { Fragment as n, Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as ee, openBlock as S, provide as C, reactive as w, readonly as T, ref as E, renderList as D, renderSlot as O, resolveComponent as k, resolveDynamicComponent as A, toDisplayString as j, toValue as M, unref as N, useId as P, useModel as F, vModelCheckbox as I, vModelText as L, vShow as te, watch as R, withCtx as z, withDirectives as ne, withKeys as B, withModifiers as re } from "vue";
3
- import { autoUpdate as V, flip as ie, offset as ae, shift as H, size as U, useFloating as W } from "@floating-ui/vue";
4
- import oe from "cropperjs";
2
+ import { Fragment as n, Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, provide as w, reactive as T, readonly as E, ref as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, toDisplayString as M, toValue as N, unref as P, useId as F, useModel as I, vModelCheckbox as L, vModelText as R, vShow as ee, watch as z, withCtx as B, withDirectives as te, withKeys as V, withModifiers as ne } from "vue";
3
+ import { autoUpdate as re, flip as ie, offset as ae, shift as H, size as U, useFloating as W } from "@floating-ui/vue";
5
4
  // \0rolldown/runtime.js
6
- var G = Object.defineProperty, K = (e, t) => {
5
+ var oe = Object.defineProperty, G = (e, t) => {
7
6
  let n = {};
8
- for (var r in e) G(n, r, {
7
+ for (var r in e) oe(n, r, {
9
8
  get: e[r],
10
9
  enumerable: !0
11
10
  });
12
- return t || G(n, Symbol.toStringTag, { value: "Module" }), n;
13
- }, q = { class: "flex min-h-dvh w-full flex-col gap-2 p-2 sm:p-4" }, se = { class: "flex min-w-0 flex-1 gap-3 lg:flex-row lg:items-start" }, ce = { class: "flex min-w-0 flex-1 flex-col gap-3" }, le = /* @__PURE__ */ f({
11
+ return t || oe(n, Symbol.toStringTag, { value: "Module" }), n;
12
+ }, se = { class: "flex min-h-dvh w-full flex-col gap-2 p-2 sm:p-4" }, K = { class: "flex min-w-0 flex-1 gap-3 lg:flex-row lg:items-start" }, ce = { class: "flex min-w-0 flex-1 flex-col gap-3" }, le = /* @__PURE__ */ f({
14
13
  __name: "SAppShell",
15
14
  emits: ["ready", "dispose"],
16
15
  setup(e, { emit: t }) {
17
16
  let n = t;
18
- return ee(() => n("ready")), x(() => n("dispose")), (e, t) => (S(), s("div", q, [c("div", se, [O(e.$slots, "nav"), c("div", ce, [O(e.$slots, "default")])])]));
17
+ return S(() => n("ready")), x(() => n("dispose")), (e, t) => (C(), s("div", se, [c("div", K, [k(e.$slots, "nav"), c("div", ce, [k(e.$slots, "default")])])]));
19
18
  }
20
- }), J = (e, t) => {
19
+ }), q = (e, t) => {
21
20
  let n = e.__vccOpts || e;
22
21
  for (let [e, r] of t) n[e] = r;
23
22
  return n;
24
- }, ue = /* @__PURE__ */ K({ default: () => me }), de = {}, fe = {
23
+ }, ue = /* @__PURE__ */ G({ default: () => me }), de = {}, fe = {
25
24
  xmlns: "http://www.w3.org/2000/svg",
26
25
  viewBox: "0 0 24 24",
27
26
  fill: "none",
@@ -31,9 +30,9 @@ var G = Object.defineProperty, K = (e, t) => {
31
30
  "stroke-linejoin": "round"
32
31
  };
33
32
  function pe(e, t) {
34
- return S(), s("svg", fe, [...t[0] ||= [c("path", { d: "M3 4h6a3 3 0 0 1 3 3v13a2.5 2.5 0 0 0-2.5-2.5H3V4Z" }, null, -1), c("path", { d: "M21 4h-6a3 3 0 0 0-3 3v13a2.5 2.5 0 0 1 2.5-2.5H21V4Z" }, null, -1)]]);
33
+ return C(), s("svg", fe, [...t[0] ||= [c("path", { d: "M3 4h6a3 3 0 0 1 3 3v13a2.5 2.5 0 0 0-2.5-2.5H3V4Z" }, null, -1), c("path", { d: "M21 4h-6a3 3 0 0 0-3 3v13a2.5 2.5 0 0 1 2.5-2.5H21V4Z" }, null, -1)]]);
35
34
  }
36
- var me = /*#__PURE__*/ J(de, [["render", pe]]), he = /* @__PURE__ */ K({ default: () => ve }), ge = {}, _e = {
35
+ var me = /*#__PURE__*/ q(de, [["render", pe]]), he = /* @__PURE__ */ G({ default: () => J }), ge = {}, _e = {
37
36
  xmlns: "http://www.w3.org/2000/svg",
38
37
  viewBox: "0 0 24 24",
39
38
  fill: "none",
@@ -42,59 +41,59 @@ var me = /*#__PURE__*/ J(de, [["render", pe]]), he = /* @__PURE__ */ K({ default
42
41
  "stroke-linecap": "round",
43
42
  "stroke-linejoin": "round"
44
43
  };
45
- function Y(e, t) {
46
- return S(), s("svg", _e, [...t[0] ||= [c("path", { d: "M8 3H7a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1" }, null, -1), c("path", { d: "M16 3h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-1" }, null, -1)]]);
44
+ function ve(e, t) {
45
+ return C(), s("svg", _e, [...t[0] ||= [c("path", { d: "M8 3H7a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1" }, null, -1), c("path", { d: "M16 3h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-1" }, null, -1)]]);
47
46
  }
48
- var ve = /*#__PURE__*/ J(ge, [["render", Y]]), ye = /* @__PURE__ */ K({ default: () => Ce }), be = {}, xe = {
47
+ var J = /*#__PURE__*/ q(ge, [["render", ve]]), ye = /* @__PURE__ */ G({ default: () => Ce }), be = {}, xe = {
49
48
  viewBox: "0 0 24 24",
50
49
  fill: "currentColor"
51
50
  };
52
51
  function Se(e, t) {
53
- return S(), s("svg", xe, [...t[0] ||= [c("path", { d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z" }, null, -1)]]);
52
+ return C(), s("svg", xe, [...t[0] ||= [c("path", { d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z" }, null, -1)]]);
54
53
  }
55
- var Ce = /*#__PURE__*/ J(be, [["render", Se]]), we = /* @__PURE__ */ K({ default: () => Oe }), Te = {}, Ee = {
54
+ var Ce = /*#__PURE__*/ q(be, [["render", Se]]), we = /* @__PURE__ */ G({ default: () => Oe }), Te = {}, Ee = {
56
55
  viewBox: "0 0 24 24",
57
56
  fill: "currentColor"
58
57
  };
59
58
  function De(e, t) {
60
- return S(), s("svg", Ee, [...t[0] ||= [c("path", { d: "M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z" }, null, -1)]]);
59
+ return C(), s("svg", Ee, [...t[0] ||= [c("path", { d: "M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z" }, null, -1)]]);
61
60
  }
62
- var Oe = /*#__PURE__*/ J(Te, [["render", De]]), ke = /* @__PURE__ */ K({ default: () => Ne }), Ae = {}, je = {
61
+ var Oe = /*#__PURE__*/ q(Te, [["render", De]]), ke = /* @__PURE__ */ G({ default: () => Ne }), Ae = {}, je = {
63
62
  viewBox: "0 0 24 24",
64
63
  fill: "currentColor"
65
64
  };
66
65
  function Me(e, t) {
67
- return S(), s("svg", je, [...t[0] ||= [c("path", { d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, null, -1)]]);
66
+ return C(), s("svg", je, [...t[0] ||= [c("path", { d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, null, -1)]]);
68
67
  }
69
- var Ne = /*#__PURE__*/ J(Ae, [["render", Me]]), Pe = /* @__PURE__ */ K({ default: () => Re }), Fe = {}, Ie = {
68
+ var Ne = /*#__PURE__*/ q(Ae, [["render", Me]]), Pe = /* @__PURE__ */ G({ default: () => Re }), Fe = {}, Ie = {
70
69
  viewBox: "0 0 24 24",
71
70
  fill: "currentColor"
72
71
  };
73
72
  function Le(e, t) {
74
- return S(), s("svg", Ie, [...t[0] ||= [c("g", { transform: "translate(12 12) scale(1.25) translate(-12 -12)" }, [c("path", { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" })], -1)]]);
73
+ return C(), s("svg", Ie, [...t[0] ||= [c("g", { transform: "translate(12 12) scale(1.25) translate(-12 -12)" }, [c("path", { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" })], -1)]]);
75
74
  }
76
- var Re = /*#__PURE__*/ J(Fe, [["render", Le]]), ze = /* @__PURE__ */ K({ default: () => Ue }), Be = {}, Ve = {
75
+ var Re = /*#__PURE__*/ q(Fe, [["render", Le]]), ze = /* @__PURE__ */ G({ default: () => Ue }), Be = {}, Ve = {
77
76
  viewBox: "0 0 24 24",
78
77
  fill: "currentColor"
79
78
  };
80
79
  function He(e, t) {
81
- return S(), s("svg", Ve, [...t[0] ||= [c("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }, null, -1), c("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" }, null, -1)]]);
80
+ return C(), s("svg", Ve, [...t[0] ||= [c("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }, null, -1), c("path", { d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z" }, null, -1)]]);
82
81
  }
83
- var Ue = /*#__PURE__*/ J(Be, [["render", He]]), We = /* @__PURE__ */ K({ default: () => Je }), Ge = {}, Ke = {
82
+ var Ue = /*#__PURE__*/ q(Be, [["render", He]]), We = /* @__PURE__ */ G({ default: () => Je }), Ge = {}, Ke = {
84
83
  viewBox: "0 0 24 24",
85
84
  fill: "currentColor"
86
85
  };
87
86
  function qe(e, t) {
88
- return S(), s("svg", Ke, [...t[0] ||= [c("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)]]);
87
+ return C(), s("svg", Ke, [...t[0] ||= [c("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, null, -1)]]);
89
88
  }
90
- var Je = /*#__PURE__*/ J(Ge, [["render", qe]]), Ye = /* @__PURE__ */ K({ default: () => $e }), Xe = {}, Ze = {
89
+ var Je = /*#__PURE__*/ q(Ge, [["render", qe]]), Ye = /* @__PURE__ */ G({ default: () => $e }), Xe = {}, Ze = {
91
90
  viewBox: "0 0 24 24",
92
91
  fill: "currentColor"
93
92
  };
94
93
  function Qe(e, t) {
95
- return S(), s("svg", Ze, [...t[0] ||= [c("g", { transform: "translate(12 12) scale(0.9) translate(-12 -12)" }, [c("path", { d: "M7.41 3.41 12 8l4.59-4.59L18 4.83l-6 6-6-6zM7.41 20.59 12 16l4.59 4.59L18 19.17l-6-6-6 6z" })], -1)]]);
94
+ return C(), s("svg", Ze, [...t[0] ||= [c("g", { transform: "translate(12 12) scale(0.9) translate(-12 -12)" }, [c("path", { d: "M7.41 3.41 12 8l4.59-4.59L18 4.83l-6 6-6-6zM7.41 20.59 12 16l4.59 4.59L18 19.17l-6-6-6 6z" })], -1)]]);
96
95
  }
97
- var $e = /*#__PURE__*/ J(Xe, [["render", Qe]]), et = /* @__PURE__ */ K({ default: () => it }), tt = {}, nt = {
96
+ var $e = /*#__PURE__*/ q(Xe, [["render", Qe]]), et = /* @__PURE__ */ G({ default: () => it }), tt = {}, nt = {
98
97
  xmlns: "http://www.w3.org/2000/svg",
99
98
  viewBox: "0 0 24 24",
100
99
  fill: "none",
@@ -104,7 +103,7 @@ var $e = /*#__PURE__*/ J(Xe, [["render", Qe]]), et = /* @__PURE__ */ K({ default
104
103
  "stroke-linejoin": "round"
105
104
  };
106
105
  function rt(e, t) {
107
- return S(), s("svg", nt, [...t[0] ||= [
106
+ return C(), s("svg", nt, [...t[0] ||= [
108
107
  c("circle", {
109
108
  cx: "12",
110
109
  cy: "12",
@@ -118,21 +117,21 @@ function rt(e, t) {
118
117
  c("path", { d: "M6.5 19a6 6 0 0 1 11 0" }, null, -1)
119
118
  ]]);
120
119
  }
121
- var it = /*#__PURE__*/ J(tt, [["render", rt]]), at = /* @__PURE__ */ K({ default: () => lt }), ot = {}, st = {
120
+ var it = /*#__PURE__*/ q(tt, [["render", rt]]), at = /* @__PURE__ */ G({ default: () => lt }), ot = {}, st = {
122
121
  viewBox: "0 0 24 24",
123
122
  fill: "currentColor"
124
123
  };
125
124
  function ct(e, t) {
126
- return S(), s("svg", st, [...t[0] ||= [c("path", { d: "M5 16l-1-9 5 4 3-6 3 6 5-4-1 9H5zm1 2h12v2H6v-2z" }, null, -1)]]);
125
+ return C(), s("svg", st, [...t[0] ||= [c("path", { d: "M5 16l-1-9 5 4 3-6 3 6 5-4-1 9H5zm1 2h12v2H6v-2z" }, null, -1)]]);
127
126
  }
128
- var lt = /*#__PURE__*/ J(ot, [["render", ct]]), ut = /* @__PURE__ */ K({ default: () => mt }), dt = {}, ft = {
127
+ var lt = /*#__PURE__*/ q(ot, [["render", ct]]), ut = /* @__PURE__ */ G({ default: () => mt }), dt = {}, ft = {
129
128
  viewBox: "0 0 24 24",
130
129
  fill: "currentColor"
131
130
  };
132
131
  function pt(e, t) {
133
- return S(), s("svg", ft, [...t[0] ||= [c("g", { transform: "translate(12 12) scale(0.9) translate(-12 -12)" }, [c("path", { d: "M12 5.83 16.59 10.41 18 9l-6-6-6 6 1.41 1.41zM12 18.17 7.41 13.59 6 15l6 6 6-6-1.41-1.41z" })], -1)]]);
132
+ return C(), s("svg", ft, [...t[0] ||= [c("g", { transform: "translate(12 12) scale(0.9) translate(-12 -12)" }, [c("path", { d: "M12 5.83 16.59 10.41 18 9l-6-6-6 6 1.41 1.41zM12 18.17 7.41 13.59 6 15l6 6 6-6-1.41-1.41z" })], -1)]]);
134
133
  }
135
- var mt = /*#__PURE__*/ J(dt, [["render", pt]]), ht = /* @__PURE__ */ K({ default: () => yt }), gt = {}, _t = {
134
+ var mt = /*#__PURE__*/ q(dt, [["render", pt]]), ht = /* @__PURE__ */ G({ default: () => yt }), gt = {}, _t = {
136
135
  xmlns: "http://www.w3.org/2000/svg",
137
136
  viewBox: "0 0 24 24",
138
137
  fill: "none",
@@ -142,35 +141,35 @@ var mt = /*#__PURE__*/ J(dt, [["render", pt]]), ht = /* @__PURE__ */ K({ default
142
141
  "stroke-linejoin": "round"
143
142
  };
144
143
  function vt(e, t) {
145
- return S(), s("svg", _t, [...t[0] ||= [
144
+ return C(), s("svg", _t, [...t[0] ||= [
146
145
  c("path", { d: "M12 20H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v3" }, null, -1),
147
146
  c("path", { d: "M16 3v5h5" }, null, -1),
148
147
  c("path", { d: "m18 14 3 3" }, null, -1),
149
148
  c("path", { d: "m13 19 6.5-6.5a2.12 2.12 0 0 1 3 3L16 22l-4 1Z" }, null, -1)
150
149
  ]]);
151
150
  }
152
- var yt = /*#__PURE__*/ J(gt, [["render", vt]]), bt = /* @__PURE__ */ K({ default: () => wt }), xt = {}, St = {
151
+ var yt = /*#__PURE__*/ q(gt, [["render", vt]]), bt = /* @__PURE__ */ G({ default: () => wt }), xt = {}, St = {
153
152
  viewBox: "0 0 24 24",
154
153
  fill: "currentColor"
155
154
  };
156
155
  function Ct(e, t) {
157
- return S(), s("svg", St, [...t[0] ||= [c("path", { d: "M6 16h12V8H6v8zm2-6h8v4H8v-4zM4 4h4v2H6v2H4V4zm12 0h4v4h-2V6h-2V4zM4 20v-4h2v2h2v2H4zm12 0v-2h2v-2h2v4h-4z" }, null, -1)]]);
156
+ return C(), s("svg", St, [...t[0] ||= [c("path", { d: "M6 16h12V8H6v8zm2-6h8v4H8v-4zM4 4h4v2H6v2H4V4zm12 0h4v4h-2V6h-2V4zM4 20v-4h2v2h2v2H4zm12 0v-2h2v-2h2v4h-4z" }, null, -1)]]);
158
157
  }
159
- var wt = /*#__PURE__*/ J(xt, [["render", Ct]]), Tt = /* @__PURE__ */ K({ default: () => kt }), Et = {}, Dt = {
158
+ var wt = /*#__PURE__*/ q(xt, [["render", Ct]]), Tt = /* @__PURE__ */ G({ default: () => kt }), Et = {}, Dt = {
160
159
  viewBox: "0 0 24 24",
161
160
  fill: "currentColor"
162
161
  };
163
162
  function Ot(e, t) {
164
- return S(), s("svg", Dt, [...t[0] ||= [c("path", { d: "M6.99 11 3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z" }, null, -1)]]);
163
+ return C(), s("svg", Dt, [...t[0] ||= [c("path", { d: "M6.99 11 3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z" }, null, -1)]]);
165
164
  }
166
- var kt = /*#__PURE__*/ J(Et, [["render", Ot]]), At = /* @__PURE__ */ K({ default: () => Pt }), jt = {}, Mt = {
165
+ var kt = /*#__PURE__*/ q(Et, [["render", Ot]]), At = /* @__PURE__ */ G({ default: () => Pt }), jt = {}, Mt = {
167
166
  viewBox: "0 0 24 24",
168
167
  fill: "currentColor"
169
168
  };
170
169
  function Nt(e, t) {
171
- return S(), s("svg", Mt, [...t[0] ||= [c("path", { d: "M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z" }, null, -1)]]);
170
+ return C(), s("svg", Mt, [...t[0] ||= [c("path", { d: "M9 3 5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z" }, null, -1)]]);
172
171
  }
173
- var Pt = /*#__PURE__*/ J(jt, [["render", Nt]]), Ft = /* @__PURE__ */ K({ default: () => zt }), It = {}, Lt = {
172
+ var Pt = /*#__PURE__*/ q(jt, [["render", Nt]]), Ft = /* @__PURE__ */ G({ default: () => zt }), It = {}, Lt = {
174
173
  xmlns: "http://www.w3.org/2000/svg",
175
174
  viewBox: "0 0 24 24",
176
175
  fill: "none",
@@ -180,9 +179,9 @@ var Pt = /*#__PURE__*/ J(jt, [["render", Nt]]), Ft = /* @__PURE__ */ K({ default
180
179
  "stroke-linejoin": "round"
181
180
  };
182
181
  function Rt(e, t) {
183
- return S(), s("svg", Lt, [...t[0] ||= [c("path", { d: "M3 10.5 12 3l9 7.5" }, null, -1), c("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" }, null, -1)]]);
182
+ return C(), s("svg", Lt, [...t[0] ||= [c("path", { d: "M3 10.5 12 3l9 7.5" }, null, -1), c("path", { d: "M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5" }, null, -1)]]);
184
183
  }
185
- var zt = /*#__PURE__*/ J(It, [["render", Rt]]), Bt = /* @__PURE__ */ K({ default: () => Wt }), Vt = {}, Ht = {
184
+ var zt = /*#__PURE__*/ q(It, [["render", Rt]]), Bt = /* @__PURE__ */ G({ default: () => Wt }), Vt = {}, Ht = {
186
185
  xmlns: "http://www.w3.org/2000/svg",
187
186
  viewBox: "0 0 24 24",
188
187
  fill: "none",
@@ -192,9 +191,9 @@ var zt = /*#__PURE__*/ J(It, [["render", Rt]]), Bt = /* @__PURE__ */ K({ default
192
191
  "stroke-linejoin": "round"
193
192
  };
194
193
  function Ut(e, t) {
195
- return S(), s("svg", Ht, [...t[0] ||= [c("path", { d: "M4 4h16l2 11v4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-4L4 4Z" }, null, -1), c("path", { d: "M2 15h6l2 3h4l2-3h6" }, null, -1)]]);
194
+ return C(), s("svg", Ht, [...t[0] ||= [c("path", { d: "M4 4h16l2 11v4a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-4L4 4Z" }, null, -1), c("path", { d: "M2 15h6l2 3h4l2-3h6" }, null, -1)]]);
196
195
  }
197
- var Wt = /*#__PURE__*/ J(Vt, [["render", Ut]]), Gt = /* @__PURE__ */ K({ default: () => Yt }), Kt = {}, qt = {
196
+ var Wt = /*#__PURE__*/ q(Vt, [["render", Ut]]), Gt = /* @__PURE__ */ G({ default: () => Yt }), Kt = {}, qt = {
198
197
  xmlns: "http://www.w3.org/2000/svg",
199
198
  viewBox: "0 0 24 24",
200
199
  fill: "none",
@@ -204,7 +203,7 @@ var Wt = /*#__PURE__*/ J(Vt, [["render", Ut]]), Gt = /* @__PURE__ */ K({ default
204
203
  "stroke-linejoin": "round"
205
204
  };
206
205
  function Jt(e, t) {
207
- return S(), s("svg", qt, [...t[0] ||= [
206
+ return C(), s("svg", qt, [...t[0] ||= [
208
207
  c("rect", {
209
208
  x: "3",
210
209
  y: "3",
@@ -216,7 +215,7 @@ function Jt(e, t) {
216
215
  c("path", { d: "M9 21V9" }, null, -1)
217
216
  ]]);
218
217
  }
219
- var Yt = /*#__PURE__*/ J(Kt, [["render", Jt]]), Xt = /* @__PURE__ */ K({ default: () => en }), Zt = {}, Qt = {
218
+ var Yt = /*#__PURE__*/ q(Kt, [["render", Jt]]), Xt = /* @__PURE__ */ G({ default: () => en }), Zt = {}, Qt = {
220
219
  xmlns: "http://www.w3.org/2000/svg",
221
220
  viewBox: "0 0 24 24",
222
221
  fill: "none",
@@ -226,13 +225,13 @@ var Yt = /*#__PURE__*/ J(Kt, [["render", Jt]]), Xt = /* @__PURE__ */ K({ default
226
225
  "stroke-linejoin": "round"
227
226
  };
228
227
  function $t(e, t) {
229
- return S(), s("svg", Qt, [...t[0] ||= [
228
+ return C(), s("svg", Qt, [...t[0] ||= [
230
229
  c("path", { d: "M21 8.5 12 3 3 8.5v7L12 21l9-5.5v-7Z" }, null, -1),
231
230
  c("path", { d: "m3 8.5 9 5.5 9-5.5" }, null, -1),
232
231
  c("path", { d: "M12 14v7" }, null, -1)
233
232
  ]]);
234
233
  }
235
- var en = /*#__PURE__*/ J(Zt, [["render", $t]]), tn = /* @__PURE__ */ K({ default: () => on }), nn = {}, rn = {
234
+ var en = /*#__PURE__*/ q(Zt, [["render", $t]]), tn = /* @__PURE__ */ G({ default: () => on }), nn = {}, rn = {
236
235
  xmlns: "http://www.w3.org/2000/svg",
237
236
  viewBox: "0 0 24 24",
238
237
  fill: "none",
@@ -242,35 +241,35 @@ var en = /*#__PURE__*/ J(Zt, [["render", $t]]), tn = /* @__PURE__ */ K({ default
242
241
  "stroke-linejoin": "round"
243
242
  };
244
243
  function an(e, t) {
245
- return S(), s("svg", rn, [...t[0] ||= [
244
+ return C(), s("svg", rn, [...t[0] ||= [
246
245
  c("path", { d: "M5 3h14v18l-2.5-1.5L14 21l-2-1.5L10 21l-2.5-1.5L5 21V3Z" }, null, -1),
247
246
  c("path", { d: "M9 8h6" }, null, -1),
248
247
  c("path", { d: "M9 12h6" }, null, -1),
249
248
  c("path", { d: "M9 16h4" }, null, -1)
250
249
  ]]);
251
250
  }
252
- var on = /*#__PURE__*/ J(nn, [["render", an]]), sn = /* @__PURE__ */ K({ default: () => dn }), cn = {}, ln = {
251
+ var on = /*#__PURE__*/ q(nn, [["render", an]]), sn = /* @__PURE__ */ G({ default: () => dn }), cn = {}, ln = {
253
252
  viewBox: "0 0 24 24",
254
253
  fill: "currentColor"
255
254
  };
256
255
  function un(e, t) {
257
- return S(), s("svg", ln, [...t[0] ||= [c("path", { d: "M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-8 8s3.58 8 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }, null, -1)]]);
256
+ return C(), s("svg", ln, [...t[0] ||= [c("path", { d: "M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-8 8s3.58 8 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }, null, -1)]]);
258
257
  }
259
- var dn = /*#__PURE__*/ J(cn, [["render", un]]), fn = /* @__PURE__ */ K({ default: () => gn }), pn = {}, mn = {
258
+ var dn = /*#__PURE__*/ q(cn, [["render", un]]), fn = /* @__PURE__ */ G({ default: () => gn }), pn = {}, mn = {
260
259
  viewBox: "0 0 24 24",
261
260
  fill: "currentColor"
262
261
  };
263
262
  function hn(e, t) {
264
- return S(), s("svg", mn, [...t[0] ||= [c("path", { d: "M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z" }, null, -1)]]);
263
+ return C(), s("svg", mn, [...t[0] ||= [c("path", { d: "M7.11 8.53 5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47zm1.01 5.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32zM13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93z" }, null, -1)]]);
265
264
  }
266
- var gn = /*#__PURE__*/ J(pn, [["render", hn]]), _n = /* @__PURE__ */ K({ default: () => xn }), vn = {}, yn = {
265
+ var gn = /*#__PURE__*/ q(pn, [["render", hn]]), _n = /* @__PURE__ */ G({ default: () => xn }), vn = {}, yn = {
267
266
  viewBox: "0 0 24 24",
268
267
  fill: "currentColor"
269
268
  };
270
269
  function bn(e, t) {
271
- return S(), s("svg", yn, [...t[0] ||= [c("path", { d: "M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11a7.906 7.906 0 0 0-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z" }, null, -1)]]);
270
+ return C(), s("svg", yn, [...t[0] ||= [c("path", { d: "M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11a7.906 7.906 0 0 0-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47h2.02zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03zm3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48z" }, null, -1)]]);
272
271
  }
273
- var xn = /*#__PURE__*/ J(vn, [["render", bn]]), Sn = /* @__PURE__ */ K({ default: () => En }), Cn = {}, wn = {
272
+ var xn = /*#__PURE__*/ q(vn, [["render", bn]]), Sn = /* @__PURE__ */ G({ default: () => En }), Cn = {}, wn = {
274
273
  xmlns: "http://www.w3.org/2000/svg",
275
274
  viewBox: "0 0 24 24",
276
275
  fill: "none",
@@ -280,9 +279,9 @@ var xn = /*#__PURE__*/ J(vn, [["render", bn]]), Sn = /* @__PURE__ */ K({ default
280
279
  "stroke-linejoin": "round"
281
280
  };
282
281
  function Tn(e, t) {
283
- return S(), s("svg", wn, [...t[0] ||= [c("path", { d: "m22 2-7 20-4-9-9-4Z" }, null, -1), c("path", { d: "M22 2 11 13" }, null, -1)]]);
282
+ return C(), s("svg", wn, [...t[0] ||= [c("path", { d: "m22 2-7 20-4-9-9-4Z" }, null, -1), c("path", { d: "M22 2 11 13" }, null, -1)]]);
284
283
  }
285
- var En = /*#__PURE__*/ J(Cn, [["render", Tn]]), Dn = /* @__PURE__ */ K({ default: () => jn }), On = {}, kn = {
284
+ var En = /*#__PURE__*/ q(Cn, [["render", Tn]]), Dn = /* @__PURE__ */ G({ default: () => jn }), On = {}, kn = {
286
285
  xmlns: "http://www.w3.org/2000/svg",
287
286
  viewBox: "0 0 24 24",
288
287
  fill: "none",
@@ -292,13 +291,13 @@ var En = /*#__PURE__*/ J(Cn, [["render", Tn]]), Dn = /* @__PURE__ */ K({ default
292
291
  "stroke-linejoin": "round"
293
292
  };
294
293
  function An(e, t) {
295
- return S(), s("svg", kn, [...t[0] ||= [
294
+ return C(), s("svg", kn, [...t[0] ||= [
296
295
  c("path", { d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }, null, -1),
297
296
  c("path", { d: "M12 8v4" }, null, -1),
298
297
  c("path", { d: "M12 16h.01" }, null, -1)
299
298
  ]]);
300
299
  }
301
- var jn = /*#__PURE__*/ J(On, [["render", An]]), Mn = /* @__PURE__ */ K({ default: () => In }), Nn = {}, Pn = {
300
+ var jn = /*#__PURE__*/ q(On, [["render", An]]), Mn = /* @__PURE__ */ G({ default: () => In }), Nn = {}, Pn = {
302
301
  xmlns: "http://www.w3.org/2000/svg",
303
302
  viewBox: "0 0 24 24",
304
303
  fill: "none",
@@ -308,14 +307,14 @@ var jn = /*#__PURE__*/ J(On, [["render", An]]), Mn = /* @__PURE__ */ K({ default
308
307
  "stroke-linejoin": "round"
309
308
  };
310
309
  function Fn(e, t) {
311
- return S(), s("svg", Pn, [...t[0] ||= [
310
+ return C(), s("svg", Pn, [...t[0] ||= [
312
311
  c("path", { d: "M3 6h18" }, null, -1),
313
312
  c("path", { d: "M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2" }, null, -1),
314
313
  c("path", { d: "m19 6-1 14H6L5 6" }, null, -1),
315
314
  c("path", { d: "M10 11v5M14 11v5" }, null, -1)
316
315
  ]]);
317
316
  }
318
- var In = /*#__PURE__*/ J(Nn, [["render", Fn]]), Ln = /* @__PURE__ */ K({ default: () => Vn }), Rn = {}, zn = {
317
+ var In = /*#__PURE__*/ q(Nn, [["render", Fn]]), Ln = /* @__PURE__ */ G({ default: () => Vn }), Rn = {}, zn = {
319
318
  xmlns: "http://www.w3.org/2000/svg",
320
319
  viewBox: "0 0 24 24",
321
320
  fill: "none",
@@ -325,7 +324,7 @@ var In = /*#__PURE__*/ J(Nn, [["render", Fn]]), Ln = /* @__PURE__ */ K({ default
325
324
  "stroke-linejoin": "round"
326
325
  };
327
326
  function Bn(e, t) {
328
- return S(), s("svg", zn, [...t[0] ||= [
327
+ return C(), s("svg", zn, [...t[0] ||= [
329
328
  c("circle", {
330
329
  cx: "9",
331
330
  cy: "8",
@@ -336,7 +335,7 @@ function Bn(e, t) {
336
335
  c("path", { d: "M17.5 14.2A6.5 6.5 0 0 1 21.5 20" }, null, -1)
337
336
  ]]);
338
337
  }
339
- var Vn = /*#__PURE__*/ J(Rn, [["render", Bn]]), Hn = /* @__PURE__ */ K({ default: () => Kn }), Un = {}, Wn = {
338
+ var Vn = /*#__PURE__*/ q(Rn, [["render", Bn]]), Hn = /* @__PURE__ */ G({ default: () => Kn }), Un = {}, Wn = {
340
339
  xmlns: "http://www.w3.org/2000/svg",
341
340
  viewBox: "0 0 24 24",
342
341
  fill: "currentColor",
@@ -344,7 +343,7 @@ var Vn = /*#__PURE__*/ J(Rn, [["render", Bn]]), Hn = /* @__PURE__ */ K({ default
344
343
  focusable: "false"
345
344
  };
346
345
  function Gn(e, t) {
347
- return S(), s("svg", Wn, [...t[0] ||= [
346
+ return C(), s("svg", Wn, [...t[0] ||= [
348
347
  c("circle", {
349
348
  cx: "12",
350
349
  cy: "5",
@@ -362,21 +361,21 @@ function Gn(e, t) {
362
361
  }, null, -1)
363
362
  ]]);
364
363
  }
365
- var Kn = /*#__PURE__*/ J(Un, [["render", Gn]]), qn = /* @__PURE__ */ K({ default: () => Zn }), Jn = {}, Yn = {
364
+ var Kn = /*#__PURE__*/ q(Un, [["render", Gn]]), qn = /* @__PURE__ */ G({ default: () => Zn }), Jn = {}, Yn = {
366
365
  viewBox: "0 0 24 24",
367
366
  fill: "currentColor"
368
367
  };
369
368
  function Xn(e, t) {
370
- return S(), s("svg", Yn, [...t[0] ||= [c("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm-.5-7h1v2h2v1h-2v2H9v-2H7V9h2V7z" }, null, -1)]]);
369
+ return C(), s("svg", Yn, [...t[0] ||= [c("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm-.5-7h1v2h2v1h-2v2H9v-2H7V9h2V7z" }, null, -1)]]);
371
370
  }
372
- var Zn = /*#__PURE__*/ J(Jn, [["render", Xn]]), Qn = /* @__PURE__ */ K({ default: () => nr }), $n = {}, er = {
371
+ var Zn = /*#__PURE__*/ q(Jn, [["render", Xn]]), Qn = /* @__PURE__ */ G({ default: () => nr }), $n = {}, er = {
373
372
  viewBox: "0 0 24 24",
374
373
  fill: "currentColor"
375
374
  };
376
375
  function tr(e, t) {
377
- return S(), s("svg", er, [...t[0] ||= [c("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7V9z" }, null, -1)]]);
376
+ return C(), s("svg", er, [...t[0] ||= [c("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7V9z" }, null, -1)]]);
378
377
  }
379
- var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
378
+ var nr = /*#__PURE__*/ q($n, [["render", tr]]), rr = Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({
380
379
  "./components/icons/book-open.vue": ue,
381
380
  "./components/icons/braces.vue": he,
382
381
  "./components/icons/calendar.vue": ye,
@@ -408,17 +407,57 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
408
407
  "./components/icons/vertical-dots.vue": Hn,
409
408
  "./components/icons/zoom-in.vue": qn,
410
409
  "./components/icons/zoom-out.vue": Qn
411
- })).map(([e, t]) => [e.split("/").pop()?.replace(/\.vue$/, "").toLowerCase() ?? "", t.default])), ir = Object.keys(rr).sort(), ar = { icon: "inline-block shrink-0 align-middle" }, X = /* @__PURE__ */ f({
410
+ })).map(([e, t]) => [e.split("/").pop()?.replace(/\.vue$/, "").toLowerCase() ?? "", t.default])), ir = Object.keys(rr).sort(), ar = { icon: "inline-block shrink-0 align-middle" }, Y = /* @__PURE__ */ f({
412
411
  __name: "SIcon",
413
412
  props: { name: {} },
414
413
  setup(e) {
415
414
  let t = i(() => rr[e.name]);
416
- return (e, n) => (S(), a(A(N(t)), { class: y(ar.icon) }, null, 8, ["class"]));
415
+ return (e, n) => (C(), a(j(P(t)), { class: y(ar.icon) }, null, 8, ["class"]));
417
416
  }
418
- }), or = () => (p()?.appContext.app)?.component("NuxtLink") ? k("NuxtLink") : "a", sr = () => p()?.appContext.config.globalProperties?.$router, cr = () => {
419
- let e = sr();
417
+ }), or = {
418
+ container: "inline-block w-fit",
419
+ containerBlock: "block",
420
+ tooltip: "pointer-events-none z-50 rounded-full bg-(--bg-default) px-3 py-1 text-xs text-white border border-white"
421
+ }, X = /* @__PURE__ */ f({
422
+ __name: "STooltip",
423
+ props: {
424
+ tooltip: {},
425
+ block: {
426
+ type: Boolean,
427
+ default: !1
428
+ }
429
+ },
430
+ setup(e, { slots: t }) {
431
+ let n = D(null), r = D(null), i = D(!1), { floatingStyles: a } = W(n, r, {
432
+ placement: "top",
433
+ middleware: [
434
+ ae(4),
435
+ ie(),
436
+ H()
437
+ ],
438
+ whileElementsMounted: re
439
+ });
440
+ return (c, l) => (C(), s("div", {
441
+ ref_key: "reference",
442
+ ref: n,
443
+ class: y(e.block ? or.containerBlock : or.container),
444
+ onMouseenter: l[0] ||= (e) => i.value = !0,
445
+ onMouseleave: l[1] ||= (e) => i.value = !1,
446
+ onFocus: l[2] ||= (e) => i.value = !0,
447
+ onBlur: l[3] ||= (e) => i.value = !1
448
+ }, [k(c.$slots, "default"), (e.tooltip || t.tooltip) && P(i) ? (C(), s("div", {
449
+ key: 0,
450
+ ref_key: "floating",
451
+ ref: r,
452
+ role: "tooltip",
453
+ style: b(P(a)),
454
+ class: y(or.tooltip)
455
+ }, [k(c.$slots, "tooltip", {}, () => [u(M(e.tooltip), 1)])], 6)) : o("", !0)], 34));
456
+ }
457
+ }), sr = () => (p()?.appContext.app)?.component("NuxtLink") ? A("NuxtLink") : "a", cr = () => p()?.appContext.config.globalProperties?.$router, lr = () => {
458
+ let e = cr();
420
459
  return i(() => e?.currentRoute?.value?.path ?? "/");
421
- }, lr = ["aria-label"], ur = { key: 1 }, dr = {
460
+ }, ur = ["aria-label"], dr = { key: 1 }, fr = {
422
461
  root: "flex min-w-0 flex-col gap-1",
423
462
  heading: "px-3 text-[10px] font-medium tracking-wider uppercase opacity-40",
424
463
  link: "flex items-center gap-2 rounded-lg text-left text-xs font-medium tracking-wider whitespace-nowrap uppercase transition-colors focus-visible:ring-2 focus-visible:ring-(--accent) focus-visible:outline-none",
@@ -428,7 +467,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
428
467
  compact: "justify-center px-2 py-2",
429
468
  icon: "size-4 shrink-0",
430
469
  initial: "text-[10px] leading-none"
431
- }, fr = /* @__PURE__ */ f({
470
+ }, pr = /* @__PURE__ */ f({
432
471
  __name: "SAsideNav",
433
472
  props: {
434
473
  items: { default: () => [] },
@@ -440,84 +479,55 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
440
479
  ariaLabel: { default: "Боковая навигация" }
441
480
  },
442
481
  setup(e) {
443
- let t = cr(), r = or(), i = (e) => t.value === e || t.value.startsWith(`${e}/`), c = (e) => e.exact ? t.value === e.to : i(e.to) || (e.activePrefixes ?? []).some(i);
444
- return (t, i) => (S(), s("nav", {
482
+ let t = lr(), r = sr(), i = (e) => t.value === e || t.value.startsWith(`${e}/`), c = (e) => e.exact ? t.value === e.to : i(e.to) || (e.activePrefixes ?? []).some(i);
483
+ return (t, i) => (C(), s("nav", {
445
484
  "aria-label": e.ariaLabel,
446
- class: y(dr.root)
447
- }, [e.heading && !e.collapsed ? (S(), s("span", {
485
+ class: y(fr.root)
486
+ }, [e.heading && !e.collapsed ? (C(), s("span", {
448
487
  key: 0,
449
- class: y(dr.heading)
450
- }, j(e.heading), 3)) : o("", !0), (S(!0), s(n, null, D(e.items, (t) => (S(), a(A(N(r)), {
488
+ class: y(fr.heading)
489
+ }, M(e.heading), 3)) : o("", !0), (C(!0), s(n, null, O(e.items, (t) => (C(), a(X, {
451
490
  key: t.to,
452
- to: t.to,
453
- href: N(r) === "a" ? t.to : void 0,
454
- class: y([
455
- dr.link,
456
- c(t) ? dr.active : dr.idle,
457
- e.collapsed ? dr.compact : dr.expanded
458
- ]),
459
- "aria-current": c(t) ? "page" : void 0,
460
- "aria-label": e.collapsed ? t.label : void 0,
461
- title: e.collapsed ? t.label : void 0
491
+ tooltip: e.collapsed ? t.label : void 0,
492
+ block: ""
462
493
  }, {
463
- default: z(() => [t.icon ? (S(), a(X, {
464
- key: 0,
465
- name: t.icon,
466
- class: y(dr.icon)
467
- }, null, 8, ["name", "class"])) : o("", !0), e.collapsed ? t.icon ? o("", !0) : (S(), s("span", {
468
- key: 2,
469
- class: y(dr.initial)
470
- }, j(t.label.slice(0, 1)), 3)) : (S(), s("span", ur, j(t.label), 1))]),
494
+ default: B(() => [(C(), a(j(P(r)), {
495
+ to: t.to,
496
+ href: P(r) === "a" ? t.to : void 0,
497
+ class: y([
498
+ fr.link,
499
+ c(t) ? fr.active : fr.idle,
500
+ e.collapsed ? fr.compact : fr.expanded
501
+ ]),
502
+ "aria-current": c(t) ? "page" : void 0,
503
+ "aria-label": e.collapsed ? t.label : void 0
504
+ }, {
505
+ default: B(() => [t.icon ? (C(), a(Y, {
506
+ key: 0,
507
+ name: t.icon,
508
+ class: y(fr.icon)
509
+ }, null, 8, ["name", "class"])) : o("", !0), e.collapsed ? t.icon ? o("", !0) : (C(), s("span", {
510
+ key: 2,
511
+ class: y(fr.initial)
512
+ }, M(t.label.slice(0, 1)), 3)) : (C(), s("span", dr, M(t.label), 1))]),
513
+ _: 2
514
+ }, 1032, [
515
+ "to",
516
+ "href",
517
+ "class",
518
+ "aria-current",
519
+ "aria-label"
520
+ ]))]),
471
521
  _: 2
472
- }, 1032, [
473
- "to",
474
- "href",
475
- "class",
476
- "aria-current",
477
- "aria-label",
478
- "title"
479
- ]))), 128))], 10, lr));
480
- }
481
- }), pr = {
482
- container: "inline-block w-fit",
483
- tooltip: "pointer-events-none z-50 rounded-full bg-(--bg-default) px-3 py-1 text-xs text-white border border-white"
484
- }, mr = /* @__PURE__ */ f({
485
- __name: "STooltip",
486
- props: { tooltip: {} },
487
- setup(e, { slots: t }) {
488
- let n = E(null), r = E(null), i = E(!1), { floatingStyles: a } = W(n, r, {
489
- placement: "top",
490
- middleware: [
491
- ae(4),
492
- ie(),
493
- H()
494
- ],
495
- whileElementsMounted: V
496
- });
497
- return (c, l) => (S(), s("div", {
498
- ref_key: "reference",
499
- ref: n,
500
- class: y(pr.container),
501
- onMouseenter: l[0] ||= (e) => i.value = !0,
502
- onMouseleave: l[1] ||= (e) => i.value = !1,
503
- onFocus: l[2] ||= (e) => i.value = !0,
504
- onBlur: l[3] ||= (e) => i.value = !1
505
- }, [O(c.$slots, "default"), (e.tooltip || t.tooltip) && N(i) ? (S(), s("div", {
506
- key: 0,
507
- ref_key: "floating",
508
- ref: r,
509
- role: "tooltip",
510
- style: b(N(a)),
511
- class: y(pr.tooltip)
512
- }, [O(c.$slots, "tooltip", {}, () => [u(j(e.tooltip), 1)])], 6)) : o("", !0)], 34));
522
+ }, 1032, ["tooltip"]))), 128))], 10, ur));
513
523
  }
514
- }), hr = Symbol.for("sinde-ui:user"), gr = (e) => {
515
- C(hr, i(() => e() ?? null));
516
- }, _r = () => m(hr, i(() => null)), vr = ["src", "alt"], yr = {
524
+ }), mr = Symbol.for("sinde-ui:user"), hr = (e) => {
525
+ w(mr, i(() => e() ?? null));
526
+ }, gr = () => m(mr, i(() => null)), _r = ["src", "alt"], vr = {
517
527
  link: "block size-8 shrink-0 cursor-pointer overflow-hidden rounded-full border border-current/10 bg-(--default) outline-none select-none focus-visible:ring-2 focus-visible:ring-(--accent)",
518
528
  image: "size-full object-cover",
519
529
  fallback: "flex size-full items-center justify-center text-[10px] leading-none font-semibold text-(--accent)"
520
- }, br = /* @__PURE__ */ f({
530
+ }, yr = /* @__PURE__ */ f({
521
531
  __name: "SAvatar",
522
532
  props: {
523
533
  src: { default: "" },
@@ -526,23 +536,23 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
526
536
  label: { default: "" }
527
537
  },
528
538
  setup(e) {
529
- let t = or(), n = _r(), r = i(() => e.name || n.value?.name || ""), o = i(() => e.src || n.value?.src || ""), c = i(() => e.to || n.value?.to || "/profile"), l = i(() => r.value || e.label || "Профиль"), u = i(() => (r.value || "?").slice(0, 2).toUpperCase());
530
- return (e, n) => (S(), a(mr, { tooltip: N(l) }, {
531
- default: z(() => [(S(), a(A(N(t)), {
532
- to: N(c),
533
- href: N(t) === "a" ? N(c) : void 0,
534
- class: y(yr.link),
535
- "aria-label": `Профиль: ${N(l)}`
539
+ let t = sr(), n = gr(), r = i(() => e.name || n.value?.name || ""), o = i(() => e.src || n.value?.src || ""), c = i(() => e.to || n.value?.to || "/profile"), l = i(() => r.value || e.label || "Профиль"), u = i(() => (r.value || "?").slice(0, 2).toUpperCase());
540
+ return (e, n) => (C(), a(X, { tooltip: P(l) }, {
541
+ default: B(() => [(C(), a(j(P(t)), {
542
+ to: P(c),
543
+ href: P(t) === "a" ? P(c) : void 0,
544
+ class: y(vr.link),
545
+ "aria-label": `Профиль: ${P(l)}`
536
546
  }, {
537
- default: z(() => [N(o) ? (S(), s("img", {
547
+ default: B(() => [P(o) ? (C(), s("img", {
538
548
  key: 0,
539
- src: N(o),
540
- alt: N(l),
541
- class: y(yr.image)
542
- }, null, 10, vr)) : (S(), s("span", {
549
+ src: P(o),
550
+ alt: P(l),
551
+ class: y(vr.image)
552
+ }, null, 10, _r)) : (C(), s("span", {
543
553
  key: 1,
544
- class: y(yr.fallback)
545
- }, j(N(u)), 3))]),
554
+ class: y(vr.fallback)
555
+ }, M(P(u)), 3))]),
546
556
  _: 1
547
557
  }, 8, [
548
558
  "to",
@@ -553,36 +563,36 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
553
563
  _: 1
554
564
  }, 8, ["tooltip"]));
555
565
  }
556
- }), xr = {
566
+ }), br = {
557
567
  Idle: "idle",
558
568
  Active: "active",
559
569
  Load: "load",
560
570
  Disabled: "disabled"
561
- }, Sr = {
571
+ }, xr = {
562
572
  base: "inline-flex items-center justify-center whitespace-nowrap rounded-full px-2 py-1 text-xs font-medium transition-all select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-black m-1",
563
573
  states: {
564
- [xr.Idle]: "bg-(--text-default) text-(--bg-default) hover:bg-zinc-200 active:bg-zinc-300 focus-visible:ring-white",
565
- [xr.Active]: "bg-(--accent) text-white hover:bg-(--accent)/90 active:bg-(--accent)/70 focus-visible:ring-(--accent)/50",
566
- [xr.Load]: "cursor-wait! bg-zinc-800 text-zinc-400 focus-visible:ring-zinc-600",
567
- [xr.Disabled]: "cursor-not-allowed! bg-(--elevated) text-zinc-600 focus-visible:ring-zinc-800"
574
+ [br.Idle]: "bg-(--text-default) text-(--bg-default) hover:bg-zinc-200 active:bg-zinc-300 focus-visible:ring-white",
575
+ [br.Active]: "bg-(--accent) text-white hover:bg-(--accent)/90 active:bg-(--accent)/70 focus-visible:ring-(--accent)/50",
576
+ [br.Load]: "cursor-wait! bg-zinc-800 text-zinc-400 focus-visible:ring-zinc-600",
577
+ [br.Disabled]: "cursor-not-allowed! bg-(--elevated) text-zinc-600 focus-visible:ring-zinc-800"
568
578
  }
569
- }, Cr = /* @__PURE__ */ f({
579
+ }, Sr = /* @__PURE__ */ f({
570
580
  __name: "SBtn",
571
581
  props: {
572
582
  to: {},
573
583
  label: { default: "" },
574
- state: { default: () => xr.Idle }
584
+ state: { default: () => br.Idle }
575
585
  },
576
586
  setup(e) {
577
- let t = or(), n = i(() => e.state === xr.Disabled || e.state === xr.Load), r = i(() => n.value || !e.to ? "button" : t), o = i(() => e.to ? void 0 : "button"), s = i(() => r.value === "button" ? void 0 : e.to), l = i(() => r.value === "a" ? e.to : void 0), u = i(() => [Sr.base, Sr.states[e.state]]), d = i(() => ({ "animate-pulse tracking-wide": e.state === xr.Load }));
578
- return (t, i) => (S(), a(A(N(r)), {
579
- to: N(s),
580
- href: N(l),
581
- type: N(o),
582
- disabled: N(n),
583
- class: y(N(u))
587
+ let t = sr(), n = i(() => e.state === br.Disabled || e.state === br.Load), r = i(() => n.value || !e.to ? "button" : t), o = i(() => e.to ? void 0 : "button"), s = i(() => r.value === "button" ? void 0 : e.to), l = i(() => r.value === "a" ? e.to : void 0), u = i(() => [xr.base, xr.states[e.state]]), d = i(() => ({ "animate-pulse tracking-wide": e.state === br.Load }));
588
+ return (t, i) => (C(), a(j(P(r)), {
589
+ to: P(s),
590
+ href: P(l),
591
+ type: P(o),
592
+ disabled: P(n),
593
+ class: y(P(u))
584
594
  }, {
585
- default: z(() => [c("span", { class: y(N(d)) }, j(e.label), 3)]),
595
+ default: B(() => [c("span", { class: y(P(d)) }, M(e.label), 3)]),
586
596
  _: 1
587
597
  }, 8, [
588
598
  "to",
@@ -592,19 +602,19 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
592
602
  "class"
593
603
  ]));
594
604
  }
595
- }), wr = ["for"], Tr = [
605
+ }), Cr = ["for"], wr = [
596
606
  "id",
597
607
  "checked",
598
608
  "disabled",
599
609
  "aria-checked"
600
- ], Er = { key: 0 }, Dr = {
610
+ ], Tr = { key: 0 }, Er = {
601
611
  labelBase: "inline-flex w-fit items-center gap-2 select-none",
602
612
  labelDisabled: "cursor-not-allowed opacity-50",
603
613
  labelEnabled: "cursor-pointer",
604
614
  box: "m-1 flex size-3 shrink-0 items-center justify-center bg-(--default) hover:bg-(--default-hover) ring-1 ring-(--border) peer-focus-visible:ring-2 peer-focus-visible:ring-(--accent)",
605
615
  icon: "size-4 text-(--accent)",
606
616
  partial: "size-1.5 bg-(--accent)"
607
- }, Or = /* @__PURE__ */ f({
617
+ }, Dr = /* @__PURE__ */ f({
608
618
  __name: "SCheckbox",
609
619
  props: /*@__PURE__*/ g({
610
620
  id: {},
@@ -626,45 +636,45 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
626
636
  }),
627
637
  emits: ["update:modelValue"],
628
638
  setup(e, { slots: t }) {
629
- let n = F(e, "modelValue"), r = m("field-id", void 0), l = i(() => e.id || r || `checkbox-${P()}`), d = i(() => n.value === !0), f = i(() => n.value === "partial"), p = E(null), h = i(() => [Dr.labelBase, e.disabled ? Dr.labelDisabled : Dr.labelEnabled]);
630
- R(f, (e) => {
639
+ let n = I(e, "modelValue"), r = m("field-id", void 0), l = i(() => e.id || r || `checkbox-${F()}`), d = i(() => n.value === !0), f = i(() => n.value === "partial"), p = D(null), h = i(() => [Er.labelBase, e.disabled ? Er.labelDisabled : Er.labelEnabled]);
640
+ z(f, (e) => {
631
641
  p.value && (p.value.indeterminate = e);
632
642
  }, {
633
643
  flush: "post",
634
644
  immediate: !0
635
645
  });
636
646
  let g = () => n.value = e.partial ? n.value === !1 || n.value === !0 && "partial" : !d.value;
637
- return (n, r) => (S(), s("label", {
638
- for: N(l),
639
- class: y(N(h))
647
+ return (n, r) => (C(), s("label", {
648
+ for: P(l),
649
+ class: y(P(h))
640
650
  }, [
641
651
  c("input", {
642
- id: N(l),
652
+ id: P(l),
643
653
  ref_key: "inputRef",
644
654
  ref: p,
645
655
  type: "checkbox",
646
- checked: N(d),
656
+ checked: P(d),
647
657
  disabled: e.disabled,
648
- "aria-checked": N(f) ? "mixed" : N(d),
658
+ "aria-checked": P(f) ? "mixed" : P(d),
649
659
  class: "peer sr-only",
650
660
  onChange: g
651
- }, null, 40, Tr),
661
+ }, null, 40, wr),
652
662
  c("span", {
653
- class: y(Dr.box),
663
+ class: y(Er.box),
654
664
  "aria-hidden": "true"
655
- }, [N(d) ? (S(), a(X, {
665
+ }, [P(d) ? (C(), a(Y, {
656
666
  key: 0,
657
667
  name: "check",
658
- class: y(Dr.icon)
659
- }, null, 8, ["class"])) : N(f) ? (S(), s("span", {
668
+ class: y(Er.icon)
669
+ }, null, 8, ["class"])) : P(f) ? (C(), s("span", {
660
670
  key: 1,
661
- class: y(Dr.partial)
671
+ class: y(Er.partial)
662
672
  }, null, 2)) : o("", !0)], 2),
663
- e.label || t.default ? (S(), s("span", Er, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])])) : o("", !0)
664
- ], 10, wr));
673
+ e.label || t.default ? (C(), s("span", Tr, [k(n.$slots, "default", {}, () => [u(M(e.label), 1)])])) : o("", !0)
674
+ ], 10, Cr));
665
675
  }
666
- }), kr = (e = 1500) => {
667
- let t = E(!1), n = E(!1), r = i(() => typeof window < "u" && !!navigator?.clipboard), a = i(() => r.value && !n.value), o, s = () => {
676
+ }), Or = (e = 1500) => {
677
+ let t = D(!1), n = D(!1), r = i(() => typeof window < "u" && !!navigator?.clipboard), a = i(() => r.value && !n.value), o, s = () => {
668
678
  clearTimeout(o), t.value = !0, o = setTimeout(() => {
669
679
  t.value = !1;
670
680
  }, e);
@@ -673,11 +683,11 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
673
683
  clearTimeout(o);
674
684
  }), {
675
685
  isSupported: r,
676
- copied: T(t),
677
- copying: T(n),
686
+ copied: E(t),
687
+ copying: E(n),
678
688
  isIdle: a,
679
689
  copyFrom: async (e) => {
680
- let t = M(e);
690
+ let t = N(e);
681
691
  if (!t || !a.value) return !1;
682
692
  n.value = !0;
683
693
  try {
@@ -698,15 +708,15 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
698
708
  }
699
709
  }
700
710
  };
701
- }, Ar = [
711
+ }, kr = [
702
712
  "data-state",
703
713
  "aria-disabled",
704
714
  "onKeydown"
705
- ], jr = {
715
+ ], Ar = {
706
716
  base: "text-nowrap",
707
717
  tooltipContent: "flex items-center gap-1.5",
708
718
  checkIcon: "size-4 text-emerald-500"
709
- }, Mr = /* @__PURE__ */ f({
719
+ }, jr = /* @__PURE__ */ f({
710
720
  __name: "SCopy",
711
721
  props: {
712
722
  value: { default: "" },
@@ -719,52 +729,52 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
719
729
  },
720
730
  emits: ["copied"],
721
731
  setup(e, { emit: t }) {
722
- let n = t, { copied: r, copying: s, isSupported: d, copyFrom: f } = kr(1500), p = i(() => e.value ?? ""), m = i(() => e.disabled || !p.value), h = i(() => m.value ? "" : r.value ? e.done : e.hover), g = i(() => m.value || s.value ? "disabled" : "idle"), _ = async () => {
732
+ let n = t, { copied: r, copying: s, isSupported: d, copyFrom: f } = Or(1500), p = i(() => e.value ?? ""), m = i(() => e.disabled || !p.value), h = i(() => m.value ? "" : r.value ? e.done : e.hover), g = i(() => m.value || s.value ? "disabled" : "idle"), _ = async () => {
723
733
  m.value || s.value || !d.value || await f(p.value) && n("copied", p.value);
724
734
  };
725
- return (e, t) => (S(), a(mr, {
735
+ return (e, t) => (C(), a(X, {
726
736
  class: "w-fit",
727
- tooltip: N(h)
737
+ tooltip: P(h)
728
738
  }, l({
729
- default: z(() => [c("span", {
730
- class: y(jr.base),
731
- "data-state": N(g),
732
- "aria-disabled": N(m) || void 0,
739
+ default: B(() => [c("span", {
740
+ class: y(Ar.base),
741
+ "data-state": P(g),
742
+ "aria-disabled": P(m) || void 0,
733
743
  role: "button",
734
744
  tabindex: "0",
735
745
  onClick: _,
736
- onKeydown: [B(re(_, ["prevent"]), ["enter"]), B(re(_, ["prevent"]), ["space"])]
737
- }, [O(e.$slots, "default", {
738
- copied: N(r),
739
- copying: N(s),
740
- state: N(g),
741
- disabled: N(m),
746
+ onKeydown: [V(ne(_, ["prevent"]), ["enter"]), V(ne(_, ["prevent"]), ["space"])]
747
+ }, [k(e.$slots, "default", {
748
+ copied: P(r),
749
+ copying: P(s),
750
+ state: P(g),
751
+ disabled: P(m),
742
752
  copy: _
743
- }, () => [u(j(N(p)), 1)])], 42, Ar)]),
753
+ }, () => [u(M(P(p)), 1)])], 42, kr)]),
744
754
  _: 2
745
- }, [N(h) ? {
755
+ }, [P(h) ? {
746
756
  name: "tooltip",
747
- fn: z(() => [c("span", { class: y(jr.tooltipContent) }, [N(r) ? (S(), a(X, {
757
+ fn: B(() => [c("span", { class: y(Ar.tooltipContent) }, [P(r) ? (C(), a(Y, {
748
758
  key: 0,
749
759
  name: "check",
750
- class: y(jr.checkIcon)
751
- }, null, 8, ["class"])) : o("", !0), c("span", null, j(N(h)), 1)], 2)]),
760
+ class: y(Ar.checkIcon)
761
+ }, null, 8, ["class"])) : o("", !0), c("span", null, M(P(h)), 1)], 2)]),
752
762
  key: "0"
753
763
  } : void 0]), 1032, ["tooltip"]));
754
764
  }
755
- }), Nr = ["for"], Pr = [
765
+ }), Mr = ["for"], Nr = [
756
766
  "id",
757
767
  "min",
758
768
  "max",
759
769
  "step",
760
770
  "disabled"
761
- ], Fr = {
771
+ ], Pr = {
762
772
  wrapper: "flex w-full max-w-[300px] flex-col gap-1.5",
763
773
  header: "flex items-center justify-between text-sm",
764
774
  label: "font-medium text-(--text-default)",
765
775
  value: "text-(--text-default) tabular-nums opacity-60",
766
776
  slider: "h-2 w-full cursor-pointer appearance-none rounded-full transition focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) disabled:cursor-not-allowed disabled:opacity-50 [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-(--bg-default) [&::-moz-range-thumb]:bg-(--accent) [&::-moz-range-thumb]:shadow-sm [&::-moz-range-thumb]:transition [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-(--bg-default) [&::-webkit-slider-thumb]:bg-(--accent) [&::-webkit-slider-thumb]:shadow-sm [&::-webkit-slider-thumb]:transition"
767
- }, Ir = /* @__PURE__ */ f({
777
+ }, Fr = /* @__PURE__ */ f({
768
778
  __name: "SRange",
769
779
  props: /*@__PURE__*/ g({
770
780
  label: { default: "" },
@@ -785,35 +795,35 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
785
795
  }),
786
796
  emits: ["update:modelValue"],
787
797
  setup(e) {
788
- let t = F(e, "modelValue"), n = P(), r = i(() => (Math.min(Math.max(t.value, e.min), e.max) - e.min) / (e.max - e.min) * 100);
789
- return (i, a) => (S(), s("div", { class: y(Fr.wrapper) }, [e.label || e.showValue ? (S(), s("div", {
798
+ let t = I(e, "modelValue"), n = F(), r = i(() => (Math.min(Math.max(t.value, e.min), e.max) - e.min) / (e.max - e.min) * 100);
799
+ return (i, a) => (C(), s("div", { class: y(Pr.wrapper) }, [e.label || e.showValue ? (C(), s("div", {
790
800
  key: 0,
791
- class: y(Fr.header)
792
- }, [e.label ? (S(), s("label", {
801
+ class: y(Pr.header)
802
+ }, [e.label ? (C(), s("label", {
793
803
  key: 0,
794
- for: N(n),
795
- class: y(Fr.label)
796
- }, j(e.label), 11, Nr)) : o("", !0), e.showValue ? (S(), s("span", {
804
+ for: P(n),
805
+ class: y(Pr.label)
806
+ }, M(e.label), 11, Mr)) : o("", !0), e.showValue ? (C(), s("span", {
797
807
  key: 1,
798
- class: y(Fr.value)
799
- }, j(t.value), 3)) : o("", !0)], 2)) : o("", !0), ne(c("input", {
800
- id: N(n),
808
+ class: y(Pr.value)
809
+ }, M(t.value), 3)) : o("", !0)], 2)) : o("", !0), te(c("input", {
810
+ id: P(n),
801
811
  "onUpdate:modelValue": a[0] ||= (e) => t.value = e,
802
812
  type: "range",
803
813
  min: e.min,
804
814
  max: e.max,
805
815
  step: e.step,
806
816
  disabled: e.disabled,
807
- class: y(Fr.slider),
808
- style: b({ background: `linear-gradient(to right, var(--accent) ${N(r)}%, var(--default) ${N(r)}%)` })
809
- }, null, 14, Pr), [[
810
- L,
817
+ class: y(Pr.slider),
818
+ style: b({ background: `linear-gradient(to right, var(--accent) ${P(r)}%, var(--default) ${P(r)}%)` })
819
+ }, null, 14, Nr), [[
820
+ R,
811
821
  t.value,
812
822
  void 0,
813
823
  { number: !0 }
814
824
  ]])], 2));
815
825
  }
816
- }), Lr = {
826
+ }), Ir = {
817
827
  root: "relative min-w-0 overflow-hidden",
818
828
  edge: "pointer-events-none absolute opacity-0 transition-opacity",
819
829
  edgeActive: "opacity-100",
@@ -825,7 +835,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
825
835
  bottom: "inset-x-0 bottom-0 h-16 shadow-[inset_0_-40px_40px_-40px_var(--scroll-edge-shadow)]",
826
836
  leftTrim: "top-0 bottom-2 left-0 w-16 shadow-[inset_40px_0_40px_-40px_var(--scroll-edge-shadow)]",
827
837
  rightTrim: "top-0 right-0 bottom-2 w-16 shadow-[inset_-40px_0_40px_-40px_var(--scroll-edge-shadow)]"
828
- }, Rr = /* @__PURE__ */ f({
838
+ }, Lr = /* @__PURE__ */ f({
829
839
  __name: "SScrollableEdges",
830
840
  props: {
831
841
  edges: { default: () => ({}) },
@@ -844,7 +854,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
844
854
  "right",
845
855
  "top",
846
856
  "bottom"
847
- ], a = E(null), o = (e) => r.axis === "both" ? !0 : r.axis === "x" ? e === "left" || e === "right" : e === "top" || e === "bottom", l = (e) => o(e) && !!(r.active?.[e] ?? r.edges?.[e]), u = (e) => e === "left" ? r.area === "trim-bottom" ? Lr.leftTrim : Lr.left : e === "right" ? r.area === "trim-bottom" ? Lr.rightTrim : Lr.right : e === "top" ? Lr.top : Lr.bottom, d = (e) => {
857
+ ], a = D(null), o = (e) => r.axis === "both" ? !0 : r.axis === "x" ? e === "left" || e === "right" : e === "top" || e === "bottom", l = (e) => o(e) && !!(r.active?.[e] ?? r.edges?.[e]), u = (e) => e === "left" ? r.area === "trim-bottom" ? Ir.leftTrim : Ir.left : e === "right" ? r.area === "trim-bottom" ? Ir.rightTrim : Ir.right : e === "top" ? Ir.top : Ir.bottom, d = (e) => {
848
858
  let t = getComputedStyle(e).overflowX;
849
859
  return (t === "auto" || t === "scroll") && e.scrollWidth > e.clientWidth;
850
860
  }, f = null, p = (e) => {
@@ -865,34 +875,34 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
865
875
  let n = t.scrollWidth - t.clientWidth, i = Math.min(Math.max(t.scrollLeft + e.deltaY, 0), n);
866
876
  i !== t.scrollLeft && (e.preventDefault(), t.scrollLeft = i);
867
877
  };
868
- return (o, d) => (S(), s("div", _({
878
+ return (o, d) => (C(), s("div", _({
869
879
  ref_key: "rootRef",
870
880
  ref: a,
871
- class: [Lr.root, e.hideScrollbar && "hide-scrollbar"]
872
- }, t, { onWheel: m }), [O(o.$slots, "default"), (S(), s(n, null, D(i, (e) => c("span", {
881
+ class: [Ir.root, e.hideScrollbar && "hide-scrollbar"]
882
+ }, t, { onWheel: m }), [k(o.$slots, "default"), (C(), s(n, null, O(i, (e) => c("span", {
873
883
  key: e,
874
884
  class: y([
875
- Lr.edge,
885
+ Ir.edge,
876
886
  u(e),
877
- r.layer === "raised" ? Lr.layerRaised : Lr.layerDefault,
878
- l(e) && Lr.edgeActive
887
+ r.layer === "raised" ? Ir.layerRaised : Ir.layerDefault,
888
+ l(e) && Ir.edgeActive
879
889
  ]),
880
890
  "aria-hidden": "true"
881
891
  }, null, 2)), 64))], 16));
882
892
  }
883
- }), zr = E(null), Br = () => zr, Vr = [
893
+ }), Rr = D(null), zr = () => Rr, Br = [
884
894
  "id",
885
895
  "tabindex",
886
896
  "aria-expanded",
887
897
  "aria-controls",
888
898
  "aria-activedescendant"
889
- ], Hr = ["placeholder"], Ur = ["name", "value"], Wr = ["id"], Gr = [
899
+ ], Vr = ["placeholder"], Hr = ["name", "value"], Ur = ["id"], Wr = [
890
900
  "id",
891
901
  "aria-selected",
892
902
  "aria-disabled",
893
903
  "onMouseenter",
894
904
  "onMousedown"
895
- ], Kr = {
905
+ ], Gr = {
896
906
  wrapper: "relative m-1",
897
907
  trigger: "relative flex h-9 w-full items-center justify-between gap-2 px-3 text-sm text-(--text-default) bg-(--default) hover:bg-(--default-hover) outline-none select-none focus:ring-2 focus:ring-(--accent) focus-within:ring-2 focus-within:ring-(--accent)",
898
908
  input: "w-full bg-transparent outline-none text-sm text-(--text-default)",
@@ -906,7 +916,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
906
916
  optionEnabled: "cursor-pointer",
907
917
  optionActive: "bg-(--default-hover)",
908
918
  optionSelected: "text-(--accent)"
909
- }, qr = /* @__PURE__ */ f({
919
+ }, Kr = /* @__PURE__ */ f({
910
920
  __name: "SSelect",
911
921
  props: /*@__PURE__*/ g({
912
922
  options: { default: () => [] },
@@ -939,172 +949,171 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
939
949
  }),
940
950
  emits: ["update:modelValue"],
941
951
  setup(e) {
942
- let t = F(e, "modelValue"), l = P(), u = i(() => e.id || m("field-id", void 0) || `select-${l}`), f = i(() => `${u.value}-listbox`), p = E(null), g = E(null), _ = E(null), C = Br(), w = i(() => C.value === l), T = E(-1), O = E(""), k = E("bottom-start"), { floatingStyles: A } = W(p, g, {
943
- open: w,
944
- whileElementsMounted: V,
945
- placement: k,
952
+ let t = I(e, "modelValue"), l = F(), u = i(() => e.id || m("field-id", void 0) || `select-${l}`), f = i(() => `${u.value}-listbox`), p = D(null), g = D(null), _ = D(null), w = zr(), T = i(() => w.value === l), E = D(-1), k = D(""), A = D("bottom-start"), { floatingStyles: j } = W(p, g, {
953
+ open: T,
954
+ whileElementsMounted: re,
955
+ placement: A,
946
956
  middleware: [ae(4), U({ apply({ rects: e, availableHeight: t, elements: n }) {
947
957
  Object.assign(n.floating.style, {
948
958
  width: `${e.reference.width}px`,
949
959
  maxHeight: `${Math.min(240, Math.max(48, t))}px`
950
960
  });
951
961
  } })]
952
- }), M = () => {
962
+ }), N = () => {
953
963
  let e = p.value;
954
964
  if (!e) return;
955
- let t = e.getBoundingClientRect(), n = g.value?.scrollHeight || I.value.length * 32 + 8, r = Math.min(n, 240), i = window.innerHeight - t.bottom - 4, a = t.top - 4, o;
956
- o = i >= r ? "bottom-start" : a >= r || a > i ? "top-start" : "bottom-start", k.value !== o && (k.value = o);
957
- }, I = i(() => {
958
- if (!e.filter || !O.value.trim()) return e.options;
959
- let t = O.value.toLowerCase().trim(), n = e.options.filter((e) => e.label.toLowerCase().includes(t) || String(e.value).toLowerCase().includes(t));
965
+ let t = e.getBoundingClientRect(), n = g.value?.scrollHeight || L.value.length * 32 + 8, r = Math.min(n, 240), i = window.innerHeight - t.bottom - 4, a = t.top - 4, o;
966
+ o = i >= r ? "bottom-start" : a >= r || a > i ? "top-start" : "bottom-start", A.value !== o && (A.value = o);
967
+ }, L = i(() => {
968
+ if (!e.filter || !k.value.trim()) return e.options;
969
+ let t = k.value.toLowerCase().trim(), n = e.options.filter((e) => e.label.toLowerCase().includes(t) || String(e.value).toLowerCase().includes(t));
960
970
  return e.allowCustom && t && !e.options.some((e) => String(e.value).toLowerCase() === t) ? [{
961
- value: O.value.trim(),
962
- label: `Использовать: ${O.value.trim()}`
971
+ value: k.value.trim(),
972
+ label: `Использовать: ${k.value.trim()}`
963
973
  }, ...n] : n;
964
- }), te = i(() => e.options.find((e) => e.value === t.value)), z = i(() => te.value?.label || String(t.value ?? e.placeholder)), B = () => {
965
- if (T.value < 0 || !g.value) return;
966
- let e = document.getElementById(`${u.value}-opt-${T.value}`);
974
+ }), ee = i(() => e.options.find((e) => e.value === t.value)), B = i(() => ee.value?.label || String(t.value ?? e.placeholder)), V = () => {
975
+ if (E.value < 0 || !g.value) return;
976
+ let e = document.getElementById(`${u.value}-opt-${E.value}`);
967
977
  e && (e.offsetTop < g.value.scrollTop ? g.value.scrollTop = e.offsetTop : e.offsetTop + e.offsetHeight > g.value.scrollTop + g.value.clientHeight && (g.value.scrollTop = e.offsetTop + e.offsetHeight - g.value.clientHeight));
968
978
  }, ie = (e, t) => {
969
- let n = I.value.length;
979
+ let n = L.value.length;
970
980
  if (!n) return -1;
971
981
  let r = e;
972
- for (let e = 0; e < n; e++) if (r = (r + t + n) % n, !I.value[r]?.disabled) return r;
982
+ for (let e = 0; e < n; e++) if (r = (r + t + n) % n, !L.value[r]?.disabled) return r;
973
983
  return -1;
974
984
  }, H = () => {
975
- let e = I.value.findIndex((e) => e.value === t.value);
976
- T.value = e >= 0 && !I.value[e]?.disabled ? e : I.value.findIndex((e) => !e.disabled);
985
+ let e = L.value.findIndex((e) => e.value === t.value);
986
+ E.value = e >= 0 && !L.value[e]?.disabled ? e : L.value.findIndex((e) => !e.disabled);
977
987
  }, oe = async () => {
978
- e.disabled || (C.value = l, H(), M(), await v(), M(), e.filter && _.value && _.value.focus({ preventScroll: !0 }), B());
988
+ e.disabled || (w.value = l, H(), N(), await v(), N(), e.filter && _.value && _.value.focus({ preventScroll: !0 }), V());
979
989
  }, G = () => {
980
- C.value === l && (C.value = null), O.value = "";
981
- }, K = () => w.value ? G() : oe(), q = (n) => {
990
+ w.value === l && (w.value = null), k.value = "";
991
+ }, se = () => T.value ? G() : oe(), K = (n) => {
982
992
  n.disabled || e.disabled || (t.value = n.value, G(), p.value?.focus({ preventScroll: !0 }));
983
- }, se = (e) => {
993
+ }, ce = (e) => {
984
994
  e.stopPropagation(), t.value = null, G(), p.value?.focus({ preventScroll: !0 });
985
- }, ce = (n) => {
995
+ }, le = (n) => {
986
996
  if (n.key === "ArrowDown" || n.key === "ArrowUp") {
987
- if (n.preventDefault(), !w.value) return oe();
988
- let e = ie(T.value, n.key === "ArrowDown" ? 1 : -1);
989
- e !== -1 && (T.value = e, B());
997
+ if (n.preventDefault(), !T.value) return oe();
998
+ let e = ie(E.value, n.key === "ArrowDown" ? 1 : -1);
999
+ e !== -1 && (E.value = e, V());
990
1000
  } else if (n.key === "Enter") {
991
1001
  n.preventDefault();
992
- let e = I.value[T.value];
993
- w.value && e ? q(e) : oe();
994
- } else n.key === "Escape" ? w.value && (n.preventDefault(), n.stopPropagation(), G(), p.value?.focus({ preventScroll: !0 })) : n.key === "Tab" ? G() : n.key !== "Backspace" && n.key !== "Delete" || w.value || !e.clearable && !e.allowCustom || e.disabled || (t.value = null);
995
- }, le = (e) => {
996
- w.value && !p.value?.contains(e.target) && !g.value?.contains(e.target) && G();
1002
+ let e = L.value[E.value];
1003
+ T.value && e ? K(e) : oe();
1004
+ } else n.key === "Escape" ? T.value && (n.preventDefault(), n.stopPropagation(), G(), p.value?.focus({ preventScroll: !0 })) : n.key === "Tab" ? G() : n.key !== "Backspace" && n.key !== "Delete" || T.value || !e.clearable && !e.allowCustom || e.disabled || (t.value = null);
1005
+ }, q = (e) => {
1006
+ T.value && !p.value?.contains(e.target) && !g.value?.contains(e.target) && G();
997
1007
  };
998
- R(I, () => {
999
- w.value && H();
1000
- }), R(() => e.disabled, (e) => {
1008
+ z(L, () => {
1009
+ T.value && H();
1010
+ }), z(() => e.disabled, (e) => {
1001
1011
  e && G();
1002
1012
  });
1003
- let J = () => {
1004
- w.value && M();
1013
+ let ue = () => {
1014
+ T.value && N();
1005
1015
  };
1006
- ee(() => {
1007
- document.addEventListener("click", le), window.addEventListener("resize", J);
1016
+ S(() => {
1017
+ document.addEventListener("click", q), window.addEventListener("resize", ue);
1008
1018
  }), x(() => {
1009
- G(), document.removeEventListener("click", le), window.removeEventListener("resize", J);
1019
+ G(), document.removeEventListener("click", q), window.removeEventListener("resize", ue);
1010
1020
  });
1011
- let ue = i(() => [
1012
- Kr.trigger,
1021
+ let de = i(() => [
1022
+ Gr.trigger,
1013
1023
  e.invalid ? "ring-2 ring-(--danger) focus:ring-(--danger) focus-within:ring-(--danger)" : "ring-1 ring-(--border)",
1014
1024
  e.disabled && "cursor-not-allowed opacity-50"
1015
- ]), de = i(() => [Kr.label, !t.value && "opacity-60"]), fe = i(() => [Kr.arrow, w.value && "rotate-90"]), pe = (e, n) => [
1016
- Kr.option,
1017
- e.disabled ? Kr.optionDisabled : Kr.optionEnabled,
1018
- n === T.value && !e.disabled && Kr.optionActive,
1019
- e.value === t.value && Kr.optionSelected
1025
+ ]), fe = i(() => [Gr.label, !t.value && "opacity-60"]), pe = i(() => [Gr.arrow, T.value && "rotate-90"]), me = (e, n) => [
1026
+ Gr.option,
1027
+ e.disabled ? Gr.optionDisabled : Gr.optionEnabled,
1028
+ n === E.value && !e.disabled && Gr.optionActive,
1029
+ e.value === t.value && Gr.optionSelected
1020
1030
  ];
1021
- return (i, l) => (S(), s("div", { class: y(Kr.wrapper) }, [
1031
+ return (i, l) => (C(), s("div", { class: y(Gr.wrapper) }, [
1022
1032
  c("div", {
1023
1033
  ref_key: "controlRef",
1024
1034
  ref: p,
1025
- id: N(u),
1026
- class: y(N(ue)),
1035
+ id: P(u),
1036
+ class: y(P(de)),
1027
1037
  tabindex: e.disabled ? -1 : 0,
1028
1038
  role: "combobox",
1029
- "aria-expanded": N(w),
1030
- "aria-controls": N(f),
1031
- "aria-activedescendant": N(w) && N(T) >= 0 ? `${N(u)}-opt-${N(T)}` : void 0,
1032
- onClick: K,
1033
- onKeydown: ce
1039
+ "aria-expanded": P(T),
1040
+ "aria-controls": P(f),
1041
+ "aria-activedescendant": P(T) && P(E) >= 0 ? `${P(u)}-opt-${P(E)}` : void 0,
1042
+ onClick: se,
1043
+ onKeydown: le
1034
1044
  }, [
1035
- e.filter && N(w) ? ne((S(), s("input", {
1045
+ e.filter && P(T) ? te((C(), s("input", {
1036
1046
  key: 0,
1037
1047
  ref_key: "inputRef",
1038
1048
  ref: _,
1039
- "onUpdate:modelValue": l[0] ||= (e) => h(O) ? O.value = e : null,
1049
+ "onUpdate:modelValue": l[0] ||= (e) => h(k) ? k.value = e : null,
1040
1050
  type: "text",
1041
- class: y(Kr.input),
1042
- placeholder: N(z),
1043
- onClick: l[1] ||= re(() => {}, ["stop"])
1044
- }, null, 10, Hr)), [[L, N(O)]]) : (S(), s("span", {
1051
+ class: y(Gr.input),
1052
+ placeholder: P(B),
1053
+ onClick: l[1] ||= ne(() => {}, ["stop"])
1054
+ }, null, 10, Vr)), [[R, P(k)]]) : (C(), s("span", {
1045
1055
  key: 1,
1046
- class: y(N(de))
1047
- }, j(N(z)), 3)),
1048
- (e.clearable || e.allowCustom) && t.value && !e.disabled ? (S(), s("button", {
1056
+ class: y(P(fe))
1057
+ }, M(P(B)), 3)),
1058
+ (e.clearable || e.allowCustom) && t.value && !e.disabled ? (C(), s("button", {
1049
1059
  key: 2,
1050
1060
  type: "button",
1051
- class: y(Kr.clearButton),
1061
+ class: y(Gr.clearButton),
1052
1062
  tabindex: "-1",
1053
- onClick: se
1054
- }, [d(X, { name: "close" })], 2)) : o("", !0),
1055
- d(X, {
1063
+ onClick: ce
1064
+ }, [d(Y, { name: "close" })], 2)) : o("", !0),
1065
+ d(Y, {
1056
1066
  name: "chevron",
1057
- class: y(N(fe))
1067
+ class: y(P(pe))
1058
1068
  }, null, 8, ["class"])
1059
- ], 42, Vr),
1060
- e.name ? (S(), s("input", {
1069
+ ], 42, Br),
1070
+ e.name ? (C(), s("input", {
1061
1071
  key: 0,
1062
1072
  type: "hidden",
1063
1073
  name: e.name,
1064
1074
  value: String(t.value ?? "")
1065
- }, null, 8, Ur)) : o("", !0),
1066
- N(w) ? (S(), a(r, {
1075
+ }, null, 8, Hr)) : o("", !0),
1076
+ P(T) ? (C(), a(r, {
1067
1077
  key: 1,
1068
1078
  to: "body"
1069
1079
  }, [c("div", {
1070
- id: N(f),
1080
+ id: P(f),
1071
1081
  ref_key: "listRef",
1072
1082
  ref: g,
1073
- class: y(Kr.dropdown),
1074
- style: b(N(A)),
1083
+ class: y(Gr.dropdown),
1084
+ style: b(P(j)),
1075
1085
  role: "listbox",
1076
1086
  "data-select-list": ""
1077
- }, [N(I).length ? o("", !0) : (S(), s("div", {
1087
+ }, [P(L).length ? o("", !0) : (C(), s("div", {
1078
1088
  key: 0,
1079
- class: y(Kr.noResults)
1080
- }, "Ничего не найдено", 2)), (S(!0), s(n, null, D(N(I), (e, n) => (S(), s("div", {
1081
- id: `${N(u)}-opt-${n}`,
1089
+ class: y(Gr.noResults)
1090
+ }, "Ничего не найдено", 2)), (C(!0), s(n, null, O(P(L), (e, n) => (C(), s("div", {
1091
+ id: `${P(u)}-opt-${n}`,
1082
1092
  key: String(e.value ?? n),
1083
- class: y(pe(e, n)),
1093
+ class: y(me(e, n)),
1084
1094
  role: "option",
1085
1095
  "aria-selected": e.value === t.value,
1086
1096
  "aria-disabled": e.disabled,
1087
- onMouseenter: (t) => !e.disabled && (T.value = n),
1088
- onMousedown: re((t) => q(e), ["prevent"])
1089
- }, j(e.label), 43, Gr))), 128))], 14, Wr)])) : o("", !0)
1097
+ onMouseenter: (t) => !e.disabled && (E.value = n),
1098
+ onMousedown: ne((t) => K(e), ["prevent"])
1099
+ }, M(e.label), 43, Wr))), 128))], 14, Ur)])) : o("", !0)
1090
1100
  ], 2));
1091
1101
  }
1092
- }), Jr = ["aria-label"], Yr = { class: "min-w-0 truncate text-sm font-semibold" }, Xr = { class: "flex shrink-0 items-center gap-2" }, Zr = ["src"], Qr = { class: "w-36 shrink-0" }, Z = {
1102
+ }), qr = ["aria-label"], Jr = { class: "min-w-0 truncate text-sm font-semibold" }, Yr = { class: "flex shrink-0 items-center gap-2" }, Xr = ["src"], Zr = { class: "w-36 shrink-0" }, Z = {
1093
1103
  overlay: "fixed inset-0 z-60 flex touch-none flex-col overscroll-contain bg-(--bg-default) text-(--text-default)",
1094
1104
  header: "flex shrink-0 items-center justify-between gap-3 px-3 py-1",
1095
1105
  meta: "text-xs whitespace-nowrap tabular-nums opacity-60",
1096
1106
  iconButton: "inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-(--text-default) transition-colors select-none hover:bg-(--default-hover) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--accent)",
1097
1107
  closeButton: "inline-flex h-8 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-2 text-xs font-medium text-(--text-default) transition-colors select-none hover:bg-(--default-hover) focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--accent)",
1098
1108
  viewport: "min-h-0 flex-1",
1099
- canvas: "ui-image-grid h-full w-full overflow-hidden",
1100
- image: "block h-full max-h-full w-full max-w-full object-contain",
1109
+ canvas: "ui-image-grid block size-full",
1101
1110
  footer: "shrink-0 px-3 py-2",
1102
1111
  controls: "overflow-x-auto overflow-y-hidden",
1103
1112
  controlsRow: "flex min-w-max items-center gap-2",
1104
1113
  actions: "ml-2 flex shrink-0 items-center gap-2",
1105
1114
  zoomField: "w-40 shrink-0 sm:w-64",
1106
1115
  error: "mt-2 text-sm text-(--danger)"
1107
- }, $r = /*#__PURE__*/ J(/* @__PURE__ */ f({
1116
+ }, Qr = /* @__PURE__ */ f({
1108
1117
  __name: "SCropper",
1109
1118
  props: {
1110
1119
  file: {},
@@ -1157,217 +1166,281 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1157
1166
  ["3:4", 3 / 4],
1158
1167
  ["16:9", 16 / 9],
1159
1168
  ["9:16", 9 / 16]
1160
- ].find(([, t]) => Math.abs(t - e) < 1e-4)?.[0] || "free", f = (e) => e === "free" ? NaN : e, p = E(u(f(e.aspectRatio))), m = i(() => l(p.value)), g = t, _ = E(null), b = E(null), C = E(""), T = E(""), D = E(1), O = E(.1), k = E(3), A = (e) => Math.round(e * 100) / 100, M = (e, t = !1) => {
1161
- e > 0 && Number.isFinite(e) && (O.value = A(t ? e : Math.min(O.value, e)), k.value = Math.max(3, A(O.value * 3)));
1162
- }, P = E(0), F = E(1), I = E(1), L = E(""), te = E(null), ne = w({
1169
+ ].find(([, t]) => Math.abs(t - e) < 1e-4)?.[0] || "free", f = (e) => e === "free" ? NaN : e, p = D(u(f(e.aspectRatio))), m = i(() => l(p.value)), g = t, _ = D(null), b = D(null), w = D(null), E = D(null), O = D(""), k = D(""), A = D(1), j = D(.1), N = D(3), F = (e) => Math.round(e * 100) / 100, I = (e = b.value) => {
1170
+ let t = e?.$getTransform(), n = t ? Math.hypot(t[0], t[1]) : 0;
1171
+ return n > 0 && Number.isFinite(n) ? n : 0;
1172
+ }, L = () => {
1173
+ let e = I();
1174
+ e > 0 && (A.value = e, e > N.value && (N.value = F(e)));
1175
+ }, R = (e = !1) => {
1176
+ let t = I();
1177
+ t > 0 && (A.value = F(t), j.value = F(e ? t : Math.min(j.value, t)), N.value = Math.max(3, F(j.value * 3)));
1178
+ }, ee = D(""), te = D(null), V = T({
1163
1179
  left: !1,
1164
1180
  right: !1,
1165
1181
  top: !1,
1166
1182
  bottom: !1
1167
- }), B = () => {
1183
+ }), ne = () => {
1168
1184
  let e = te.value;
1169
- e && (ne.left = e.scrollLeft > 2, ne.right = e.scrollLeft < Math.max(0, e.scrollWidth - e.clientWidth) - 2);
1170
- }, re = i(() => e.title || "Кадрирование"), V = null, ie = null, ae = () => "image/webp", H = (e) => {
1185
+ e && (V.left = e.scrollLeft > 2, V.right = e.scrollLeft < Math.max(0, e.scrollWidth - e.clientWidth) - 2);
1186
+ }, re = i(() => e.title || "Кадрирование"), ie = null, ae = () => ie ??= import("cropperjs"), H = null, U = () => "image/webp", W = (e) => {
1171
1187
  let t = String(e || "").trim(), n = t.lastIndexOf(".");
1172
1188
  return n > 0 ? t.slice(0, n) : t || "image";
1173
- }, U = () => {
1174
- C.value &&= (URL.revokeObjectURL(C.value), "");
1175
- }, W = () => {
1176
- V?.destroy(), V = null;
1189
+ }, oe = () => {
1190
+ O.value &&= (URL.revokeObjectURL(O.value), "");
1177
1191
  }, G = () => {
1178
- let e = V?.getImageData(), t = Number(e?.naturalWidth || 0), n = Number(e?.width || 0);
1179
- return t > 0 && n > 0 ? n / t : 1;
1180
- }, K = (e) => {
1181
- let t = e % 360;
1182
- return t < 0 ? t + 360 : t;
1183
- }, q = () => {
1184
- if (!V) return;
1185
- let e = V.getContainerData(), t = V.getImageData(), n = Number(e.width || 0), r = Number(e.height || 0), i = Number(t.naturalWidth || 0), a = Number(t.naturalHeight || 0);
1186
- if (!(n > 0 && r > 0 && i > 0 && a > 0)) return;
1187
- let o = K(P.value) * Math.PI / 180, s = Math.abs(i * Math.cos(o)) + Math.abs(a * Math.sin(o)), c = Math.abs(i * Math.sin(o)) + Math.abs(a * Math.cos(o)), l = Math.min(n * .96 / s, r * .96 / c);
1188
- if (!(l > 0 && Number.isFinite(l))) return;
1189
- V.zoomTo(l), D.value = l, M(l);
1190
- let u = V.getImageData();
1191
- V.moveTo((n - u.width) / 2, (r - u.height) / 2);
1192
- }, se = () => {
1193
- W(), e.file && _.value?.complete && _.value.naturalWidth && (V = new oe(_.value, {
1194
- viewMode: 1,
1195
- dragMode: "move",
1196
- aspectRatio: m.value,
1197
- autoCropArea: .92,
1198
- background: !1,
1199
- center: !0,
1200
- guides: !0,
1201
- highlight: !1,
1202
- movable: !0,
1203
- responsive: !0,
1204
- rotatable: !0,
1205
- scalable: !0,
1206
- toggleDragModeOnDblclick: !1,
1207
- zoomable: !0,
1208
- zoom: (e) => {
1209
- let t = Number(e.detail.ratio || 0);
1210
- t > 0 && Number.isFinite(t) && (D.value = t);
1211
- },
1212
- ready: () => {
1213
- V?.setAspectRatio(m.value), V?.scaleX(1), V?.scaleY(1), D.value = G(), M(D.value, !0), D.value = O.value;
1214
- }
1215
- }));
1216
- }, ce = async () => {
1217
- await v(), se();
1192
+ let e = _.value, t = b.value, n = w.value;
1193
+ if (!e || !t || !n) return;
1194
+ let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = Math.max(i.left, r.left), o = Math.max(i.top, r.top), s = Math.min(i.right, r.right), c = Math.min(i.bottom, r.bottom), l = s - a, u = c - o;
1195
+ if (!(r.width > 0 && l > 0 && u > 0)) return;
1196
+ let d = .04, f = l * (1 - d * 2), p = u * (1 - d * 2), m = n.aspectRatio;
1197
+ Number.isFinite(m) && m > 0 && (f / p > m ? f = p * m : p = f / m), n.$change(a - r.left + (l - f) / 2, o - r.top + (u - p) / 2, f, p, m);
1198
+ }, se = async () => {
1199
+ let e = b.value;
1200
+ if (!e) return;
1201
+ try {
1202
+ await e.$ready();
1203
+ } catch {
1204
+ k.value = "Не удалось прочитать изображение.";
1205
+ return;
1206
+ }
1207
+ await v();
1208
+ let t = w.value;
1209
+ t && (t.aspectRatio = m.value), G(), R(!0);
1210
+ }, K = async () => {
1211
+ typeof window < "u" && e.file && (await ae(), await v(), await se());
1212
+ }, ce = () => {
1213
+ let e = b.value;
1214
+ e && (e.$center(e.initialFit || "contain"), G(), R());
1218
1215
  }, le = () => {
1219
- V && (V.reset(), P.value = 0, F.value = 1, I.value = 1, V.setAspectRatio(m.value), D.value = G(), M(D.value));
1220
- }, J = (e) => {
1221
- V && (P.value = K(P.value + e), V.rotateTo(P.value), q());
1216
+ let e = b.value;
1217
+ e && (e.$resetTransform(), e.$center(e.initialFit || "contain"), G(), R(!0));
1218
+ }, q = (e) => {
1219
+ let t = b.value;
1220
+ t && (t.$rotate(`${e}deg`), ce());
1222
1221
  }, ue = () => {
1223
- F.value = F.value === 1 ? -1 : 1, V?.scaleX(F.value);
1222
+ b.value?.$scale(-1, 1);
1224
1223
  }, de = () => {
1225
- I.value = I.value === 1 ? -1 : 1, V?.scaleY(I.value);
1226
- }, fe = () => {
1227
- V && V.zoomTo(Math.min(k.value, G() * 1.1));
1228
- }, pe = () => {
1229
- V && V.zoomTo(Math.max(O.value, G() / 1.1));
1230
- }, me = (e) => {
1231
- D.value = e, V && e > 0 && Number.isFinite(e) && V.zoomTo(e);
1232
- }, he = async () => {
1233
- if (!V || !e.file || e.loading) return;
1234
- T.value = "";
1235
- let t = V.getCroppedCanvas({
1236
- imageSmoothingEnabled: !0,
1237
- imageSmoothingQuality: "high"
1238
- });
1239
- if (!t) {
1240
- T.value = "Не удалось получить область кадрирования.";
1241
- return;
1224
+ b.value?.$scale(1, -1);
1225
+ }, fe = (e) => {
1226
+ e > 0 && Number.isFinite(e) && e !== 1 && (b.value?.$zoom(e >= 1 ? e - 1 : 1 - 1 / e), L());
1227
+ }, pe = (e) => {
1228
+ let t = I();
1229
+ if (!(t > 0) || !(e > 0) || !Number.isFinite(e)) return;
1230
+ let n = Math.min(N.value, Math.max(j.value, e));
1231
+ fe(n / t);
1232
+ }, me = () => fe(1.1), he = () => fe(1 / 1.1), ge = () => pe(Number(A.value)), _e = async () => {
1233
+ let t = b.value, n = w.value;
1234
+ if (!t || !n || !e.file || e.loading) return;
1235
+ k.value = "";
1236
+ let r = I(t);
1237
+ if (!(r > 0) || !(n.width > 0) || !(n.height > 0)) k.value = "Не удалось получить область кадрирования.";
1238
+ else try {
1239
+ let t = await n.$toCanvas({
1240
+ width: Math.max(1, Math.round(n.width / r)),
1241
+ height: Math.max(1, Math.round(n.height / r)),
1242
+ beforeDraw: (e) => {
1243
+ e.imageSmoothingEnabled = !0, e.imageSmoothingQuality = "high";
1244
+ }
1245
+ }), i = U(), a = await new Promise((e) => t.toBlob(e, i, .92));
1246
+ if (!a) {
1247
+ k.value = "Не удалось подготовить изображение к загрузке.";
1248
+ return;
1249
+ }
1250
+ g("confirm", new File([a], `${W(e.file.name)}-cropped.webp`, {
1251
+ type: i,
1252
+ lastModified: Date.now()
1253
+ }));
1254
+ } catch {
1255
+ k.value = "Не удалось подготовить изображение к загрузке.";
1242
1256
  }
1243
- let n = ae(), r = await new Promise((e) => t.toBlob(e, n, .92));
1244
- r ? g("confirm", new File([r], `${H(e.file.name)}-cropped.webp`, {
1245
- type: n,
1246
- lastModified: Date.now()
1247
- })) : T.value = "Не удалось подготовить изображение к загрузке.";
1248
- }, ge = () => {
1257
+ }, ve = () => {
1249
1258
  e.loading || g("cancel");
1250
- }, _e = (e) => {
1251
- e.key === "Escape" && ge();
1252
- }, Y = () => {
1253
- requestAnimationFrame(q), requestAnimationFrame(B);
1259
+ }, J = (e) => {
1260
+ e.key === "Escape" && ve();
1261
+ }, ye = () => {
1262
+ requestAnimationFrame(ce), requestAnimationFrame(ne);
1254
1263
  };
1255
- return R(() => e.file, async (e) => {
1256
- W(), U(), T.value = "", D.value = 1, P.value = 0, F.value = 1, I.value = 1, e && typeof window < "u" && (C.value = URL.createObjectURL(e));
1257
- }, { immediate: !0 }), R(() => e.aspectRatio, (e) => {
1258
- p.value = u(f(e)), V?.setAspectRatio(l(p.value));
1259
- }), R(p, (e) => {
1260
- V?.setAspectRatio(l(e));
1261
- }), ee(() => {
1262
- typeof window < "u" && (L.value = document.body.style.overflow, document.body.style.overflow = "hidden", window.addEventListener("keydown", _e), ie = new ResizeObserver(Y), b.value && ie.observe(b.value), _.value?.complete && ce(), v(B));
1264
+ return z(() => e.file, async (e) => {
1265
+ k.value = "", A.value = 1, j.value = .1, N.value = 3, oe(), e && typeof window < "u" && (O.value = URL.createObjectURL(e), await K());
1266
+ }, { immediate: !0 }), z(() => e.aspectRatio, (e) => {
1267
+ p.value = u(f(e));
1268
+ }), z(p, (e) => {
1269
+ let t = w.value;
1270
+ t && (t.aspectRatio = l(e));
1271
+ }), S(async () => {
1272
+ typeof window < "u" && (ee.value = document.body.style.overflow, document.body.style.overflow = "hidden", window.addEventListener("keydown", J), H = new ResizeObserver(ye), E.value && H.observe(E.value), v(ne), await K());
1263
1273
  }), x(() => {
1264
- W(), U(), ie?.disconnect(), typeof window < "u" && (window.removeEventListener("keydown", _e), document.body.style.overflow = L.value);
1265
- }), (t, i) => e.file ? (S(), a(r, {
1274
+ oe(), H?.disconnect(), typeof window < "u" && (window.removeEventListener("keydown", J), document.body.style.overflow = ee.value);
1275
+ }), (t, i) => e.file ? (C(), a(r, {
1266
1276
  key: 0,
1267
1277
  to: "body"
1268
1278
  }, [c("div", {
1269
1279
  class: y(Z.overlay),
1270
1280
  role: "dialog",
1271
1281
  "aria-modal": "true",
1272
- "aria-label": N(re)
1282
+ "aria-label": P(re)
1273
1283
  }, [
1274
- c("header", { class: y(Z.header) }, [c("h2", Yr, j(N(re)), 1), c("div", Xr, [c("span", { class: y(Z.meta) }, j(Math.round(Math.max(0, N(D)) * 100)) + "%", 3), c("button", {
1284
+ c("header", { class: y(Z.header) }, [c("h2", Jr, M(P(re)), 1), c("div", Yr, [c("span", { class: y(Z.meta) }, M(Math.round(Math.max(0, P(A)) * 100)) + "%", 3), c("button", {
1275
1285
  type: "button",
1276
1286
  class: y(Z.closeButton),
1277
1287
  "aria-label": "Закрыть окно",
1278
- onClick: ge
1279
- }, [d(X, {
1288
+ onClick: ve
1289
+ }, [d(Y, {
1280
1290
  name: "close",
1281
1291
  class: "size-4"
1282
1292
  }), i[4] ||= c("span", { class: "hidden sm:inline" }, "Закрыть", -1)], 2)])], 2),
1283
1293
  c("div", {
1284
1294
  ref_key: "viewportRef",
1285
- ref: b,
1295
+ ref: E,
1286
1296
  class: y(Z.viewport)
1287
- }, [c("div", { class: y(Z.canvas) }, [c("img", {
1288
- ref_key: "imageRef",
1297
+ }, [c("cropper-canvas", {
1298
+ ref_key: "canvasRef",
1289
1299
  ref: _,
1290
- src: N(C),
1291
- alt: "Изображение для кадрирования",
1292
- class: y(Z.image),
1293
- onLoad: ce
1294
- }, null, 42, Zr)], 2)], 2),
1295
- c("footer", { class: y(Z.footer) }, [d(Rr, {
1296
- active: N(ne),
1300
+ class: y(Z.canvas),
1301
+ onTransform: L
1302
+ }, [
1303
+ c("cropper-image", {
1304
+ ref_key: "imageRef",
1305
+ ref: b,
1306
+ src: P(O),
1307
+ alt: "Изображение для кадрирования",
1308
+ rotatable: "",
1309
+ scalable: "",
1310
+ translatable: ""
1311
+ }, null, 8, Xr),
1312
+ i[6] ||= c("cropper-handle", {
1313
+ action: "move",
1314
+ "theme-color": "transparent"
1315
+ }, null, -1),
1316
+ c("cropper-selection", {
1317
+ ref_key: "selectionRef",
1318
+ ref: w,
1319
+ "initial-coverage": .92,
1320
+ movable: "",
1321
+ resizable: "",
1322
+ "theme-color": "var(--accent)"
1323
+ }, [...i[5] ||= [
1324
+ c("cropper-grid", {
1325
+ role: "grid",
1326
+ bordered: "",
1327
+ covered: ""
1328
+ }, null, -1),
1329
+ c("cropper-crosshair", { centered: "" }, null, -1),
1330
+ c("cropper-handle", {
1331
+ action: "move",
1332
+ "theme-color": "transparent"
1333
+ }, null, -1),
1334
+ c("cropper-handle", {
1335
+ action: "n-resize",
1336
+ "theme-color": "var(--accent)"
1337
+ }, null, -1),
1338
+ c("cropper-handle", {
1339
+ action: "e-resize",
1340
+ "theme-color": "var(--accent)"
1341
+ }, null, -1),
1342
+ c("cropper-handle", {
1343
+ action: "s-resize",
1344
+ "theme-color": "var(--accent)"
1345
+ }, null, -1),
1346
+ c("cropper-handle", {
1347
+ action: "w-resize",
1348
+ "theme-color": "var(--accent)"
1349
+ }, null, -1),
1350
+ c("cropper-handle", {
1351
+ action: "ne-resize",
1352
+ "theme-color": "var(--accent)"
1353
+ }, null, -1),
1354
+ c("cropper-handle", {
1355
+ action: "nw-resize",
1356
+ "theme-color": "var(--accent)"
1357
+ }, null, -1),
1358
+ c("cropper-handle", {
1359
+ action: "se-resize",
1360
+ "theme-color": "var(--accent)"
1361
+ }, null, -1),
1362
+ c("cropper-handle", {
1363
+ action: "sw-resize",
1364
+ "theme-color": "var(--accent)"
1365
+ }, null, -1)
1366
+ ]], 512)
1367
+ ], 34)], 2),
1368
+ c("footer", { class: y(Z.footer) }, [d(Lr, {
1369
+ active: P(V),
1297
1370
  axis: "x"
1298
1371
  }, {
1299
- default: z(() => [c("div", {
1372
+ default: B(() => [c("div", {
1300
1373
  ref_key: "controlsRef",
1301
1374
  ref: te,
1302
1375
  class: y(Z.controls),
1303
- onScrollPassive: B
1376
+ onScrollPassive: ne
1304
1377
  }, [c("div", { class: y(Z.controlsRow) }, [
1305
- d(mr, { tooltip: "Повернуть против часовой стрелки на 90 градусов" }, {
1306
- default: z(() => [c("button", {
1378
+ d(X, { tooltip: "Повернуть против часовой стрелки на 90 градусов" }, {
1379
+ default: B(() => [c("button", {
1307
1380
  type: "button",
1308
1381
  class: y(Z.iconButton),
1309
1382
  "aria-label": "Повернуть против часовой стрелки на 90 градусов",
1310
- onClick: i[0] ||= (e) => J(-90)
1311
- }, [d(X, {
1383
+ onClick: i[0] ||= (e) => q(-90)
1384
+ }, [d(Y, {
1312
1385
  name: "rotate-left",
1313
1386
  class: "size-5"
1314
1387
  })], 2)]),
1315
1388
  _: 1
1316
1389
  }),
1317
- d(mr, { tooltip: "Повернуть по часовой стрелке на 90 градусов" }, {
1318
- default: z(() => [c("button", {
1390
+ d(X, { tooltip: "Повернуть по часовой стрелке на 90 градусов" }, {
1391
+ default: B(() => [c("button", {
1319
1392
  type: "button",
1320
1393
  class: y(Z.iconButton),
1321
1394
  "aria-label": "Повернуть по часовой стрелке на 90 градусов",
1322
- onClick: i[1] ||= (e) => J(90)
1323
- }, [d(X, {
1395
+ onClick: i[1] ||= (e) => q(90)
1396
+ }, [d(Y, {
1324
1397
  name: "rotate-right",
1325
1398
  class: "size-5"
1326
1399
  })], 2)]),
1327
1400
  _: 1
1328
1401
  }),
1329
- d(mr, { tooltip: "Отразить по горизонтали" }, {
1330
- default: z(() => [c("button", {
1402
+ d(X, { tooltip: "Отразить по горизонтали" }, {
1403
+ default: B(() => [c("button", {
1331
1404
  type: "button",
1332
1405
  class: y(Z.iconButton),
1333
1406
  "aria-label": "Отразить по горизонтали",
1334
1407
  onClick: ue
1335
- }, [d(X, {
1408
+ }, [d(Y, {
1336
1409
  name: "flip-x",
1337
1410
  class: "size-5"
1338
1411
  })], 2)]),
1339
1412
  _: 1
1340
1413
  }),
1341
- d(mr, { tooltip: "Отразить по вертикали" }, {
1342
- default: z(() => [c("button", {
1414
+ d(X, { tooltip: "Отразить по вертикали" }, {
1415
+ default: B(() => [c("button", {
1343
1416
  type: "button",
1344
1417
  class: y(Z.iconButton),
1345
1418
  "aria-label": "Отразить по вертикали",
1346
1419
  onClick: de
1347
- }, [d(X, {
1420
+ }, [d(Y, {
1348
1421
  name: "flip-y",
1349
1422
  class: "size-5"
1350
1423
  })], 2)]),
1351
1424
  _: 1
1352
1425
  }),
1353
- d(mr, { tooltip: "Уменьшить" }, {
1354
- default: z(() => [c("button", {
1426
+ d(X, { tooltip: "Уменьшить" }, {
1427
+ default: B(() => [c("button", {
1355
1428
  type: "button",
1356
1429
  class: y(Z.iconButton),
1357
1430
  "aria-label": "Уменьшить",
1358
- onClick: pe
1359
- }, [d(X, {
1431
+ onClick: he
1432
+ }, [d(Y, {
1360
1433
  name: "zoom-out",
1361
1434
  class: "size-5"
1362
1435
  })], 2)]),
1363
1436
  _: 1
1364
1437
  }),
1365
- c("div", { class: y(Z.zoomField) }, [d(Ir, {
1366
- modelValue: N(D),
1367
- "onUpdate:modelValue": [i[2] ||= (e) => h(D) ? D.value = e : null, me],
1438
+ c("div", { class: y(Z.zoomField) }, [d(Fr, {
1439
+ modelValue: P(A),
1440
+ "onUpdate:modelValue": [i[2] ||= (e) => h(A) ? A.value = e : null, ge],
1368
1441
  modelModifiers: { number: !0 },
1369
- min: N(O),
1370
- max: N(k),
1442
+ min: P(j),
1443
+ max: P(N),
1371
1444
  step: .01,
1372
1445
  "show-value": !1
1373
1446
  }, null, 8, [
@@ -1375,82 +1448,82 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1375
1448
  "min",
1376
1449
  "max"
1377
1450
  ])], 2),
1378
- d(mr, { tooltip: "Увеличить" }, {
1379
- default: z(() => [c("button", {
1451
+ d(X, { tooltip: "Увеличить" }, {
1452
+ default: B(() => [c("button", {
1380
1453
  type: "button",
1381
1454
  class: y(Z.iconButton),
1382
1455
  "aria-label": "Увеличить",
1383
- onClick: fe
1384
- }, [d(X, {
1456
+ onClick: me
1457
+ }, [d(Y, {
1385
1458
  name: "zoom-in",
1386
1459
  class: "size-5"
1387
1460
  })], 2)]),
1388
1461
  _: 1
1389
1462
  }),
1390
- d(mr, { tooltip: "Вместить" }, {
1391
- default: z(() => [c("button", {
1463
+ d(X, { tooltip: "Вместить" }, {
1464
+ default: B(() => [c("button", {
1392
1465
  type: "button",
1393
1466
  class: y(Z.iconButton),
1394
1467
  "aria-label": "Вместить",
1395
- onClick: q
1396
- }, [d(X, {
1468
+ onClick: ce
1469
+ }, [d(Y, {
1397
1470
  name: "fit-screen",
1398
1471
  class: "size-5"
1399
1472
  })], 2)]),
1400
1473
  _: 1
1401
1474
  }),
1402
- d(mr, { tooltip: "Сбросить" }, {
1403
- default: z(() => [c("button", {
1475
+ d(X, { tooltip: "Сбросить" }, {
1476
+ default: B(() => [c("button", {
1404
1477
  type: "button",
1405
1478
  class: y(Z.iconButton),
1406
1479
  "aria-label": "Сбросить",
1407
1480
  onClick: le
1408
- }, [d(X, {
1481
+ }, [d(Y, {
1409
1482
  name: "refresh",
1410
1483
  class: "size-5"
1411
1484
  })], 2)]),
1412
1485
  _: 1
1413
1486
  }),
1414
- c("div", Qr, [d(qr, {
1415
- modelValue: N(p),
1487
+ c("div", Zr, [d(Kr, {
1488
+ modelValue: P(p),
1416
1489
  "onUpdate:modelValue": i[3] ||= (e) => h(p) ? p.value = e : null,
1417
1490
  options: n
1418
1491
  }, null, 8, ["modelValue"])]),
1419
- c("div", { class: y(Z.actions) }, [d(Cr, {
1492
+ c("div", { class: y(Z.actions) }, [d(Sr, {
1420
1493
  label: "Отмена",
1421
1494
  state: e.loading ? "disabled" : "idle",
1422
- onClick: ge
1423
- }, null, 8, ["state"]), d(Cr, {
1495
+ onClick: ve
1496
+ }, null, 8, ["state"]), d(Sr, {
1424
1497
  label: "Загрузить",
1425
1498
  state: e.loading ? "load" : "idle",
1426
- onClick: he
1499
+ onClick: _e
1427
1500
  }, null, 8, ["state"])], 2)
1428
1501
  ], 2)], 34)]),
1429
1502
  _: 1
1430
- }, 8, ["active"]), N(T) ? (S(), s("p", {
1503
+ }, 8, ["active"]), P(k) ? (C(), s("p", {
1431
1504
  key: 0,
1432
1505
  class: y(Z.error)
1433
- }, j(N(T)), 3)) : o("", !0)], 2)
1434
- ], 10, Jr)])) : o("", !0);
1506
+ }, M(P(k)), 3)) : o("", !0)], 2)
1507
+ ], 10, qr)])) : o("", !0);
1435
1508
  }
1436
- }), [["__scopeId", "data-v-ea37f216"]]), ei = {
1509
+ }), $r = {
1437
1510
  wrapper: "inline-flex items-center gap-1.5",
1438
1511
  spinner: "inline-block size-3 animate-spin rounded-full border-2 border-(--accent) border-t-transparent",
1439
1512
  label: "text-xs"
1440
- }, ti = /* @__PURE__ */ f({
1513
+ }, ei = /* @__PURE__ */ f({
1441
1514
  __name: "SLoad",
1442
1515
  props: { label: {} },
1443
1516
  setup(e) {
1444
- return (t, n) => (S(), s("span", { class: y(ei.wrapper) }, [c("span", {
1517
+ return (t, n) => (C(), s("span", { class: y($r.wrapper) }, [c("span", {
1445
1518
  role: "status",
1446
1519
  "aria-label": "Загрузка",
1447
- class: y(ei.spinner)
1448
- }, null, 2), e.label ? (S(), s("span", {
1520
+ class: y($r.spinner)
1521
+ }, null, 2), e.label ? (C(), s("span", {
1449
1522
  key: 0,
1450
- class: y(ei.label)
1451
- }, j(e.label), 3)) : o("", !0)], 2));
1523
+ class: y($r.label)
1524
+ }, M(e.label), 3)) : o("", !0)], 2));
1452
1525
  }
1453
- }), ni = { class: "contents" }, ri = ["aria-sort"], ii = ["onClick"], ai = { class: "contents" }, oi = {
1526
+ }), ti = { class: "contents" }, ni = ["aria-sort"], ri = ["onClick"], ii = { class: "contents" }, ai = {
1454
1527
  wrapper: "relative w-full max-w-full overflow-x-auto min-w-0",
1455
1528
  loading: "pointer-events-none absolute top-1 right-1 z-10 flex items-center gap-1 rounded-full bg-(--bg-default) px-2 py-1",
1456
1529
  leadHead: "w-7 py-2 pr-2 text-left align-top",
@@ -1462,7 +1535,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1462
1535
  dividerLine: "h-px flex-1 bg-(--border)",
1463
1536
  headBase: "py-2 pr-4 text-left align-top text-xs font-medium opacity-70",
1464
1537
  cellBase: "py-2 pr-4 align-top"
1465
- }, si = /* @__PURE__ */ f({
1538
+ }, oi = /* @__PURE__ */ f({
1466
1539
  __name: "SDataTable",
1467
1540
  props: {
1468
1541
  columns: { default: () => [] },
@@ -1504,18 +1577,18 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1504
1577
  e.fixedLayout ? "w-full" : "w-max",
1505
1578
  e.nowrap && "whitespace-nowrap"
1506
1579
  ]), p = i(() => ({ gridTemplateColumns: e.fixedLayout ? `repeat(${t.value}, minmax(0, 1fr))` : `${e.rowNumbers ? "max-content " : ""}repeat(${e.columns.length}, max-content)` })), m = (t) => [
1507
- oi.headBase,
1580
+ ai.headBase,
1508
1581
  t.widthClass,
1509
1582
  t.headerClass,
1510
1583
  (e.nowrap || t.nowrap) && "whitespace-nowrap"
1511
1584
  ], h = (t) => [
1512
- oi.cellBase,
1585
+ ai.cellBase,
1513
1586
  t.widthClass,
1514
1587
  t.cellClass,
1515
1588
  (e.nowrap || t.nowrap) && "whitespace-nowrap"
1516
- ], g = E(""), _ = E("asc"), v = (e) => !!e.sortable && g.value === e.key, x = (e) => v(e) ? _.value === "asc" ? "ascending" : "descending" : "none", ee = (e) => {
1589
+ ], g = D(""), _ = D("asc"), v = (e) => !!e.sortable && g.value === e.key, x = (e) => v(e) ? _.value === "asc" ? "ascending" : "descending" : "none", S = (e) => {
1517
1590
  e.sortable && (g.value === e.key ? _.value === "asc" ? _.value = "desc" : (g.value = "", _.value = "asc") : (g.value = e.key, _.value = "asc"));
1518
- }, C = (e) => e == null || e === "", w = (e, t) => {
1591
+ }, w = (e) => e == null || e === "", T = (e, t) => {
1519
1592
  if (typeof e == "number" && typeof t == "number") return e - t;
1520
1593
  if (typeof e == "boolean" && typeof t == "boolean") return Number(e) - Number(t);
1521
1594
  let n = String(e), r = String(t), i = /^\d{4}-\d{2}-\d{2}/;
@@ -1523,118 +1596,118 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1523
1596
  numeric: !0,
1524
1597
  sensitivity: "base"
1525
1598
  });
1526
- }, T = i(() => {
1599
+ }, E = i(() => {
1527
1600
  let t = g.value;
1528
1601
  if (!t) return e.rows;
1529
1602
  let n = _.value === "asc" ? 1 : -1;
1530
1603
  return [...e.rows].sort((e, r) => {
1531
- let i = e[t], a = r[t], o = C(i), s = C(a);
1532
- return o || s ? o === s ? 0 : o ? 1 : -1 : n * w(i, a);
1604
+ let i = e[t], a = r[t], o = w(i), s = w(a);
1605
+ return o || s ? o === s ? 0 : o ? 1 : -1 : n * T(i, a);
1533
1606
  });
1534
1607
  });
1535
- return (t, i) => (S(), s("div", { class: y(oi.wrapper) }, [e.loading ? (S(), s("div", {
1608
+ return (t, i) => (C(), s("div", { class: y(ai.wrapper) }, [e.loading ? (C(), s("div", {
1536
1609
  key: 0,
1537
- class: y(oi.loading)
1538
- }, [d(ti)], 2)) : o("", !0), c("div", {
1539
- class: y(N(f)),
1540
- style: b(N(p))
1610
+ class: y(ai.loading)
1611
+ }, [d(ei)], 2)) : o("", !0), c("div", {
1612
+ class: y(P(f)),
1613
+ style: b(P(p))
1541
1614
  }, [
1542
- c("div", ni, [e.rowNumbers ? (S(), s("div", {
1615
+ c("div", ti, [e.rowNumbers ? (C(), s("div", {
1543
1616
  key: 0,
1544
- class: y(oi.leadHead)
1545
- }, null, 2)) : o("", !0), (S(!0), s(n, null, D(e.columns, (e) => (S(), s("div", {
1617
+ class: y(ai.leadHead)
1618
+ }, null, 2)) : o("", !0), (C(!0), s(n, null, O(e.columns, (e) => (C(), s("div", {
1546
1619
  key: e.key,
1547
1620
  role: "columnheader",
1548
1621
  "aria-sort": e.sortable ? x(e) : void 0,
1549
1622
  class: y(m(e))
1550
- }, [e.sortable ? (S(), s("button", {
1623
+ }, [e.sortable ? (C(), s("button", {
1551
1624
  key: 0,
1552
1625
  type: "button",
1553
1626
  class: "flex w-full items-center gap-1 text-left",
1554
- onClick: (t) => ee(e)
1555
- }, [O(t.$slots, `header-${e.key}`, {
1627
+ onClick: (t) => S(e)
1628
+ }, [k(t.$slots, `header-${e.key}`, {
1556
1629
  column: e,
1557
1630
  sortable: !0,
1558
1631
  sorted: v(e)
1559
- }, () => [u(j(e.label), 1)]), d(X, {
1632
+ }, () => [u(M(e.label), 1)]), d(Y, {
1560
1633
  name: "chevron",
1561
- class: y(["size-3 transition", v(e) ? N(_) === "asc" ? "-rotate-90 opacity-100" : "rotate-90 opacity-100" : "rotate-90 opacity-0"])
1562
- }, null, 8, ["class"])], 8, ii)) : O(t.$slots, `header-${e.key}`, {
1634
+ class: y(["size-3 transition", v(e) ? P(_) === "asc" ? "-rotate-90 opacity-100" : "rotate-90 opacity-100" : "rotate-90 opacity-0"])
1635
+ }, null, 8, ["class"])], 8, ri)) : k(t.$slots, `header-${e.key}`, {
1563
1636
  column: e,
1564
1637
  sortable: !1,
1565
1638
  sorted: !1
1566
- }, () => [u(j(e.label), 1)], void 0, 1)], 10, ri))), 128))]),
1567
- e.rows.length ? o("", !0) : (S(), s("div", {
1639
+ }, () => [u(M(e.label), 1)], void 0, 1)], 10, ni))), 128))]),
1640
+ e.rows.length ? o("", !0) : (C(), s("div", {
1568
1641
  key: 0,
1569
- class: y(oi.emptyRow)
1570
- }, [O(t.$slots, "empty", {}, () => [u(j(N(r)), 1)])], 2)),
1571
- (S(!0), s(n, null, D(N(T), (r, i) => (S(), s(n, { key: a(r, i) }, [e.divider?.(r, i) ? (S(), s("div", {
1642
+ class: y(ai.emptyRow)
1643
+ }, [k(t.$slots, "empty", {}, () => [u(M(P(r)), 1)])], 2)),
1644
+ (C(!0), s(n, null, O(P(E), (r, i) => (C(), s(n, { key: a(r, i) }, [e.divider?.(r, i) ? (C(), s("div", {
1572
1645
  key: 0,
1573
- class: y(oi.dividerRow)
1646
+ class: y(ai.dividerRow)
1574
1647
  }, [c("div", {
1575
- class: y(oi.dividerContent),
1648
+ class: y(ai.dividerContent),
1576
1649
  role: "separator"
1577
- }, [c("span", { class: y(oi.dividerText) }, j(e.divider(r, i)), 3), c("span", { class: y(oi.dividerLine) }, null, 2)], 2)], 2)) : o("", !0), c("div", ai, [e.rowNumbers ? (S(), s("div", {
1650
+ }, [c("span", { class: y(ai.dividerText) }, M(e.divider(r, i)), 3), c("span", { class: y(ai.dividerLine) }, null, 2)], 2)], 2)) : o("", !0), c("div", ii, [e.rowNumbers ? (C(), s("div", {
1578
1651
  key: 0,
1579
- class: y(oi.leadCell)
1580
- }, j(i + 1), 3)) : o("", !0), (S(!0), s(n, null, D(e.columns, (e) => (S(), s("div", {
1652
+ class: y(ai.leadCell)
1653
+ }, M(i + 1), 3)) : o("", !0), (C(!0), s(n, null, O(e.columns, (e) => (C(), s("div", {
1581
1654
  key: `${String(a(r, i))}:${e.key}`,
1582
1655
  class: y(h(e))
1583
- }, [O(t.$slots, `cell-${e.key}`, {
1656
+ }, [k(t.$slots, `cell-${e.key}`, {
1584
1657
  row: r,
1585
1658
  column: e,
1586
1659
  value: r[e.key],
1587
1660
  index: i
1588
- }, () => [O(t.$slots, "cell", {
1661
+ }, () => [k(t.$slots, "cell", {
1589
1662
  row: r,
1590
1663
  column: e,
1591
1664
  value: r[e.key],
1592
1665
  index: i
1593
- }, () => [u(j(l(r[e.key])), 1)])])], 2))), 128))])], 64))), 128))
1666
+ }, () => [u(M(l(r[e.key])), 1)])])], 2))), 128))])], 64))), 128))
1594
1667
  ], 6)], 2));
1595
1668
  }
1596
- }), ci = /* @__PURE__ */ new Map(), li = (e, t) => {
1597
- let n = `${e}-${JSON.stringify(t)}`, r = ci.get(n);
1598
- return r || (r = new Intl.DateTimeFormat(e, t), ci.set(n, r)), r;
1599
- }, ui = {
1669
+ }), si = /* @__PURE__ */ new Map(), ci = (e, t) => {
1670
+ let n = `${e}-${JSON.stringify(t)}`, r = si.get(n);
1671
+ return r || (r = new Intl.DateTimeFormat(e, t), si.set(n, r)), r;
1672
+ }, li = {
1600
1673
  Short: "short",
1601
1674
  Full: "full"
1602
- }, di = (e, t = {}, n) => {
1675
+ }, ui = (e, t = {}, n) => {
1603
1676
  if (!e) return "";
1604
1677
  let r = new Date(e);
1605
1678
  if (Number.isNaN(r.getTime())) return "";
1606
- let i = (e) => li("en-US", {
1679
+ let i = (e) => ci("en-US", {
1607
1680
  timeZone: n,
1608
1681
  year: "numeric"
1609
1682
  }).format(e), a = t.fullYear || i(r) !== i(/* @__PURE__ */ new Date());
1610
- return li("ru-RU", {
1683
+ return ci("ru-RU", {
1611
1684
  timeZone: n,
1612
- month: t.view === ui.Full ? "long" : "short",
1685
+ month: t.view === li.Full ? "long" : "short",
1613
1686
  day: "numeric",
1614
1687
  year: a ? "numeric" : void 0,
1615
1688
  hour: "2-digit",
1616
1689
  minute: "2-digit",
1617
1690
  hour12: !1
1618
1691
  }).format(r);
1619
- }, fi = /* @__PURE__ */ f({
1692
+ }, di = /* @__PURE__ */ f({
1620
1693
  __name: "SDatetime",
1621
1694
  props: {
1622
1695
  value: {},
1623
1696
  timeZone: {},
1624
- view: { default: () => ui.Short },
1697
+ view: { default: () => li.Short },
1625
1698
  fullYear: {
1626
1699
  type: Boolean,
1627
1700
  default: !1
1628
1701
  }
1629
1702
  },
1630
1703
  setup(t) {
1631
- let n = e(), r = i(() => String(t.timeZone ?? n.timeZone ?? "").trim() || void 0), a = i(() => di(t.value, {
1704
+ let n = e(), r = i(() => String(t.timeZone ?? n.timeZone ?? "").trim() || void 0), a = i(() => ui(t.value, {
1632
1705
  view: t.view,
1633
1706
  fullYear: t.fullYear
1634
1707
  }, r.value));
1635
- return (e, t) => (S(), s("span", null, j(N(a)), 1));
1708
+ return (e, t) => (C(), s("span", null, M(P(a)), 1));
1636
1709
  }
1637
- }), pi = ["id", "aria-label"], mi = /* @__PURE__ */ f({
1710
+ }), fi = ["id", "aria-label"], pi = /* @__PURE__ */ f({
1638
1711
  __name: "Popover",
1639
1712
  props: {
1640
1713
  open: { type: Boolean },
@@ -1644,7 +1717,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1644
1717
  },
1645
1718
  emits: ["close", "confirm"],
1646
1719
  setup(e, { emit: t }) {
1647
- let n = t, i = E(null), s = E({}), l = () => {
1720
+ let n = t, i = D(null), s = D({}), l = () => {
1648
1721
  let t = e.trigger?.getBoundingClientRect(), n = i.value;
1649
1722
  if (!t || !n) return;
1650
1723
  let r = Math.min(n.offsetWidth, window.innerWidth - 16), a = window.innerHeight - t.bottom - 4 - 8, o = t.top - 4 - 8, c = a >= n.offsetHeight || a >= o, l = Math.min(Math.max(8, t.left), window.innerWidth - r - 8);
@@ -1669,13 +1742,13 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1669
1742
  }
1670
1743
  }
1671
1744
  };
1672
- return R(() => e.open, async (e) => {
1745
+ return z(() => e.open, async (e) => {
1673
1746
  e && (await v(), l(), i.value?.focus());
1674
- }), ee(() => {
1747
+ }), S(() => {
1675
1748
  document.addEventListener("pointerdown", u), window.addEventListener("resize", l), window.addEventListener("scroll", l, !0), e.open && l();
1676
1749
  }), x(() => {
1677
1750
  document.removeEventListener("pointerdown", u), window.removeEventListener("resize", l), window.removeEventListener("scroll", l, !0);
1678
- }), (t, n) => e.open ? (S(), a(r, {
1751
+ }), (t, n) => e.open ? (C(), a(r, {
1679
1752
  key: 0,
1680
1753
  to: "body"
1681
1754
  }, [c("div", {
@@ -1683,23 +1756,23 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1683
1756
  ref_key: "panelRef",
1684
1757
  ref: i,
1685
1758
  class: "fixed z-50 flex flex-col gap-2 overflow-auto bg-(--elevated) p-3 text-(--text-default) ring-1 ring-(--border) outline-none",
1686
- style: b(N(s)),
1759
+ style: b(P(s)),
1687
1760
  role: "dialog",
1688
1761
  "aria-label": e.ariaLabel,
1689
1762
  tabindex: "-1",
1690
1763
  onKeydown: d
1691
- }, [O(t.$slots, "default")], 44, pi)])) : o("", !0);
1764
+ }, [k(t.$slots, "default")], 44, fi)])) : o("", !0);
1692
1765
  }
1693
- }), hi = (e, t = 2) => String(e).padStart(t, "0"), gi = (e, t, n) => {
1766
+ }), mi = (e, t = 2) => String(e).padStart(t, "0"), hi = (e, t, n) => {
1694
1767
  let r = new Date(e, t - 1, n);
1695
1768
  return r.getFullYear() === e && r.getMonth() === t - 1 && r.getDate() === n;
1696
- }, _i = (e) => {
1769
+ }, gi = (e) => {
1697
1770
  let t = String(e || "").trim();
1698
1771
  if (!t) return null;
1699
1772
  let n = t.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?/);
1700
1773
  if (n) {
1701
1774
  let [, e, t, r, i, a, o] = n;
1702
- return gi(Number(e), Number(t), Number(r)) ? {
1775
+ return hi(Number(e), Number(t), Number(r)) ? {
1703
1776
  year: Number(e),
1704
1777
  month: Number(t),
1705
1778
  day: Number(r),
@@ -1719,42 +1792,42 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1719
1792
  minute: Math.min(Number(r[2]), 59),
1720
1793
  second: Math.min(Number(r[3] || 0), 59)
1721
1794
  };
1722
- }, vi = (e, t) => {
1723
- let n = `${hi(e.year, 4)}-${hi(e.month)}-${hi(e.day)}`, r = `${hi(e.hour)}:${hi(e.minute)}${t.showSeconds ? `:${hi(e.second)}` : ""}`;
1795
+ }, _i = (e, t) => {
1796
+ let n = `${mi(e.year, 4)}-${mi(e.month)}-${mi(e.day)}`, r = `${mi(e.hour)}:${mi(e.minute)}${t.showSeconds ? `:${mi(e.second)}` : ""}`;
1724
1797
  return t.showDate ? t.showTime ? `${n}T${r}` : n : r;
1725
- }, yi = (e) => ({
1798
+ }, vi = (e) => ({
1726
1799
  year: e.getFullYear(),
1727
1800
  month: e.getMonth() + 1,
1728
1801
  day: e.getDate(),
1729
1802
  hour: e.getHours(),
1730
1803
  minute: e.getMinutes(),
1731
1804
  second: e.getSeconds()
1732
- }), bi = (e) => new Date(e.year, e.month - 1, e.day, e.hour, e.minute, e.second), xi = (e, t) => bi(e).getTime() - bi(t).getTime(), Si = (e, t) => e.year === t.year ? e.month === t.month ? e.day - t.day : e.month - t.month : e.year - t.year, Ci = (e, t, n) => t && xi(e, t) < 0 ? { ...t } : n && xi(e, n) > 0 ? { ...n } : e, wi = (e, t, n) => li(t, {
1805
+ }), yi = (e) => new Date(e.year, e.month - 1, e.day, e.hour, e.minute, e.second), bi = (e, t) => yi(e).getTime() - yi(t).getTime(), xi = (e, t) => e.year === t.year ? e.month === t.month ? e.day - t.day : e.month - t.month : e.year - t.year, Si = (e, t, n) => t && bi(e, t) < 0 ? { ...t } : n && bi(e, n) > 0 ? { ...n } : e, Ci = (e, t, n) => ci(t, {
1733
1806
  dateStyle: n.showDate ? "medium" : void 0,
1734
1807
  timeStyle: n.showTime ? n.showSeconds ? "medium" : "short" : void 0,
1735
1808
  hour12: !1
1736
- }).format(bi(e)), Ti = /* @__PURE__ */ new Map(), Ei = (e) => {
1737
- let t = li(e, {
1809
+ }).format(yi(e)), wi = /* @__PURE__ */ new Map(), Ti = (e) => {
1810
+ let t = ci(e, {
1738
1811
  month: "long",
1739
1812
  timeZone: "UTC"
1740
1813
  });
1741
1814
  return Array.from({ length: 12 }, (e, n) => t.format(new Date(Date.UTC(2024, n, 15))));
1742
- }, Di = (e, t) => {
1743
- let n = li(e, {
1815
+ }, Ei = (e, t) => {
1816
+ let n = ci(e, {
1744
1817
  weekday: t,
1745
1818
  timeZone: "UTC"
1746
1819
  });
1747
1820
  return Array.from({ length: 7 }, (e, t) => n.format(new Date(Date.UTC(2024, 0, 1 + t))));
1748
- }, Oi = (e) => {
1749
- let t = Ti.get(e);
1821
+ }, Di = (e) => {
1822
+ let t = wi.get(e);
1750
1823
  if (t) return t;
1751
1824
  let n = {
1752
- monthNames: Ei(e),
1753
- weekdayNamesShort: Di(e, "short"),
1754
- weekdayNamesLong: Di(e, "long")
1825
+ monthNames: Ti(e),
1826
+ weekdayNamesShort: Ei(e, "short"),
1827
+ weekdayNamesLong: Ei(e, "long")
1755
1828
  };
1756
- return Ti.set(e, n), n;
1757
- }, ki = (e) => {
1829
+ return wi.set(e, n), n;
1830
+ }, Oi = (e) => {
1758
1831
  let t = String(e || "").trim();
1759
1832
  if (!t) return "UTC";
1760
1833
  try {
@@ -1762,13 +1835,13 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1762
1835
  } catch {
1763
1836
  return "UTC";
1764
1837
  }
1765
- }, Ai = () => {
1838
+ }, ki = () => {
1766
1839
  try {
1767
- return ki(Intl.DateTimeFormat().resolvedOptions().timeZone);
1840
+ return Oi(Intl.DateTimeFormat().resolvedOptions().timeZone);
1768
1841
  } catch {
1769
1842
  return "UTC";
1770
1843
  }
1771
- }, ji = () => {
1844
+ }, Ai = () => {
1772
1845
  try {
1773
1846
  let e = Intl.supportedValuesOf("timeZone");
1774
1847
  if (e.length) return (e.includes("UTC") ? e : ["UTC", ...e]).map((e) => ({
@@ -1780,10 +1853,10 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1780
1853
  value: e,
1781
1854
  label: e
1782
1855
  }));
1783
- }, Mi = { class: "flex flex-col gap-2" }, Ni = { class: "flex items-center gap-1" }, Pi = ["aria-label", "disabled"], Fi = ["aria-label", "disabled"], Ii = ["aria-label"], Li = {
1856
+ }, ji = { class: "flex flex-col gap-2" }, Mi = { class: "flex items-center gap-1" }, Ni = ["aria-label", "disabled"], Pi = ["aria-label", "disabled"], Fi = ["aria-label"], Ii = {
1784
1857
  role: "row",
1785
1858
  class: "flex"
1786
- }, Ri = ["abbr"], zi = [
1859
+ }, Li = ["abbr"], Ri = [
1787
1860
  "data-day",
1788
1861
  "tabindex",
1789
1862
  "aria-selected",
@@ -1792,7 +1865,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1792
1865
  "aria-label",
1793
1866
  "onClick",
1794
1867
  "onKeydown"
1795
- ], Bi = /* @__PURE__ */ f({
1868
+ ], zi = /* @__PURE__ */ f({
1796
1869
  __name: "Calendar",
1797
1870
  props: {
1798
1871
  selected: {},
@@ -1807,7 +1880,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1807
1880
  year: a.getFullYear(),
1808
1881
  month: a.getMonth() + 1,
1809
1882
  day: 1
1810
- }, l = E(o.year), u = E(o.month), f = E(""), p = E(null), m = i(() => e.min?.year ?? a.getFullYear() - 100), h = i(() => e.max?.year ?? a.getFullYear() + 100), g = i(() => !(l.value <= m.value && u.value === 1)), _ = i(() => !(l.value >= h.value && u.value === 12)), b = i(() => e.localeInfo.monthNames.map((e, t) => ({
1883
+ }, l = D(o.year), u = D(o.month), f = D(""), p = D(null), m = i(() => e.min?.year ?? a.getFullYear() - 100), h = i(() => e.max?.year ?? a.getFullYear() + 100), g = i(() => !(l.value <= m.value && u.value === 1)), _ = i(() => !(l.value >= h.value && u.value === 12)), b = i(() => e.localeInfo.monthNames.map((e, t) => ({
1811
1884
  value: String(t + 1),
1812
1885
  label: e
1813
1886
  }))), x = i(() => Array.from({ length: h.value - m.value + 1 }, (e, t) => {
@@ -1816,19 +1889,19 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1816
1889
  value: String(n),
1817
1890
  label: String(n)
1818
1891
  };
1819
- })), ee = (e, t) => new Date(e, t, 0).getDate(), C = () => {
1892
+ })), S = (e, t) => new Date(e, t, 0).getDate(), w = () => {
1820
1893
  if (!e.selected) return;
1821
- let t = Math.min(e.selected.day, ee(l.value, u.value));
1894
+ let t = Math.min(e.selected.day, S(l.value, u.value));
1822
1895
  r("commit", {
1823
1896
  year: l.value,
1824
1897
  month: u.value,
1825
1898
  day: t
1826
1899
  });
1827
- }, w = (e) => {
1828
- u.value = Number(e) || u.value, C();
1829
1900
  }, T = (e) => {
1830
- l.value = Number(e) || l.value, C();
1831
- }, O = (e) => {
1901
+ u.value = Number(e) || u.value, w();
1902
+ }, E = (e) => {
1903
+ l.value = Number(e) || l.value, w();
1904
+ }, k = (e) => {
1832
1905
  let t = u.value + e;
1833
1906
  if (t < 1) {
1834
1907
  if (l.value <= m.value) return;
@@ -1838,10 +1911,10 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1838
1911
  l.value += 1, u.value = 1;
1839
1912
  } else u.value = t;
1840
1913
  };
1841
- R(() => e.selected && `${e.selected.year}-${e.selected.month}`, () => {
1914
+ z(() => e.selected && `${e.selected.year}-${e.selected.month}`, () => {
1842
1915
  e.selected && (l.value = e.selected.year, u.value = e.selected.month);
1843
1916
  });
1844
- let k = (e, t, n) => `${e}-${t}-${n}`, A = k(a.getFullYear(), a.getMonth() + 1, a.getDate()), M = i(() => e.selected ? k(e.selected.year, e.selected.month, e.selected.day) : ""), P = [
1917
+ let A = (e, t, n) => `${e}-${t}-${n}`, j = A(a.getFullYear(), a.getMonth() + 1, a.getDate()), N = i(() => e.selected ? A(e.selected.year, e.selected.month, e.selected.day) : ""), F = [
1845
1918
  1,
1846
1919
  2,
1847
1920
  3,
@@ -1849,7 +1922,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1849
1922
  5,
1850
1923
  6,
1851
1924
  7
1852
- ], F = i(() => {
1925
+ ], I = i(() => {
1853
1926
  let e = new Date(l.value, u.value - 1, 1), t = (e.getDay() === 0 ? 7 : e.getDay()) - 1, n = new Date(l.value, u.value - 1, 1 - t);
1854
1927
  return Array.from({ length: 6 }, (e, t) => Array.from({ length: 7 }, (e, r) => {
1855
1928
  let i = new Date(n.getFullYear(), n.getMonth(), n.getDate() + t * 7 + r), a = {
@@ -1860,71 +1933,71 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1860
1933
  return {
1861
1934
  ...a,
1862
1935
  inMonth: a.month === u.value && a.year === l.value,
1863
- key: k(a.year, a.month, a.day)
1936
+ key: A(a.year, a.month, a.day)
1864
1937
  };
1865
1938
  }));
1866
- }), I = (t) => {
1939
+ }), L = (t) => {
1867
1940
  let n = {
1868
1941
  ...t,
1869
1942
  hour: 0,
1870
1943
  minute: 0,
1871
1944
  second: 0
1872
1945
  };
1873
- return e.min && Si(n, e.min) < 0 ? !0 : !!(e.max && Si(n, e.max) > 0);
1874
- }, L = i(() => {
1875
- let e = F.value.flat();
1876
- return e.some((e) => e.key === f.value) ? f.value : e.some((e) => e.key === M.value) ? M.value : e.some((e) => e.key === A && e.inMonth) ? A : e.find((e) => e.inMonth)?.key || "";
1877
- }), te = (e) => {
1878
- I(e) || (f.value = e.key, r("select", {
1946
+ return e.min && xi(n, e.min) < 0 ? !0 : !!(e.max && xi(n, e.max) > 0);
1947
+ }, R = i(() => {
1948
+ let e = I.value.flat();
1949
+ return e.some((e) => e.key === f.value) ? f.value : e.some((e) => e.key === N.value) ? N.value : e.some((e) => e.key === j && e.inMonth) ? j : e.find((e) => e.inMonth)?.key || "";
1950
+ }), ee = (e) => {
1951
+ L(e) || (f.value = e.key, r("select", {
1879
1952
  year: e.year,
1880
1953
  month: e.month,
1881
1954
  day: e.day
1882
1955
  }));
1883
- }, z = async (e) => {
1956
+ }, B = async (e) => {
1884
1957
  let t = e.getFullYear(), n = e.getMonth() + 1;
1885
- f.value = k(t, n, e.getDate()), (t !== l.value || n !== u.value) && (l.value = t, u.value = n), await v(), p.value?.querySelector(`[data-day="${f.value}"]`)?.focus();
1886
- }, ne = (e, t) => {
1887
- let n = new Date(e.year, e.month - 1, e.day), r = (t) => z(new Date(e.year, e.month - 1, e.day + t));
1958
+ f.value = A(t, n, e.getDate()), (t !== l.value || n !== u.value) && (l.value = t, u.value = n), await v(), p.value?.querySelector(`[data-day="${f.value}"]`)?.focus();
1959
+ }, te = (e, t) => {
1960
+ let n = new Date(e.year, e.month - 1, e.day), r = (t) => B(new Date(e.year, e.month - 1, e.day + t));
1888
1961
  if (t.key === "ArrowLeft") r(-1);
1889
1962
  else if (t.key === "ArrowRight") r(1);
1890
1963
  else if (t.key === "ArrowUp") r(-7);
1891
1964
  else if (t.key === "ArrowDown") r(7);
1892
- else if (t.key === "PageUp") z(new Date(e.year - +!!t.shiftKey, e.month - 1 - !t.shiftKey, e.day));
1893
- else if (t.key === "PageDown") z(new Date(e.year + +!!t.shiftKey, e.month - 1 + +!t.shiftKey, e.day));
1965
+ else if (t.key === "PageUp") B(new Date(e.year - +!!t.shiftKey, e.month - 1 - !t.shiftKey, e.day));
1966
+ else if (t.key === "PageDown") B(new Date(e.year + +!!t.shiftKey, e.month - 1 + +!t.shiftKey, e.day));
1894
1967
  else if (t.key === "Home") r(-(((n.getDay() === 0 ? 7 : n.getDay()) - 1 + 7) % 7));
1895
1968
  else if (t.key === "End") r(6 - ((n.getDay() === 0 ? 7 : n.getDay()) - 1 + 7) % 7);
1896
- else if (t.key === "Enter" || t.key === " ") te(e);
1969
+ else if (t.key === "Enter" || t.key === " ") ee(e);
1897
1970
  else return;
1898
1971
  t.preventDefault();
1899
1972
  };
1900
- return (t, r) => (S(), s("div", Mi, [c("div", Ni, [
1973
+ return (t, r) => (C(), s("div", ji, [c("div", Mi, [
1901
1974
  c("button", {
1902
1975
  type: "button",
1903
1976
  class: "ui-focus inline-flex items-center justify-center rounded-full p-1 text-(--text-default) transition hover:bg-(--accent)/10 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent",
1904
1977
  "aria-label": e.labels.prevMonth,
1905
- disabled: !N(g),
1906
- onClick: r[0] ||= (e) => O(-1)
1907
- }, [d(X, {
1978
+ disabled: !P(g),
1979
+ onClick: r[0] ||= (e) => k(-1)
1980
+ }, [d(Y, {
1908
1981
  name: "chevron",
1909
1982
  class: "size-5 rotate-180"
1910
- })], 8, Pi),
1911
- d(qr, {
1983
+ })], 8, Ni),
1984
+ d(Kr, {
1912
1985
  class: "min-w-32 flex-1",
1913
- "model-value": String(N(u)),
1914
- options: N(b),
1986
+ "model-value": String(P(u)),
1987
+ options: P(b),
1915
1988
  "aria-label": e.labels.month,
1916
- "onUpdate:modelValue": r[1] ||= (e) => w(String(e ?? ""))
1989
+ "onUpdate:modelValue": r[1] ||= (e) => T(String(e ?? ""))
1917
1990
  }, null, 8, [
1918
1991
  "model-value",
1919
1992
  "options",
1920
1993
  "aria-label"
1921
1994
  ]),
1922
- d(qr, {
1995
+ d(Kr, {
1923
1996
  class: "min-w-20",
1924
- "model-value": String(N(l)),
1925
- options: N(x),
1997
+ "model-value": String(P(l)),
1998
+ options: P(x),
1926
1999
  "aria-label": e.labels.year,
1927
- "onUpdate:modelValue": r[2] ||= (e) => T(String(e ?? ""))
2000
+ "onUpdate:modelValue": r[2] ||= (e) => E(String(e ?? ""))
1928
2001
  }, null, 8, [
1929
2002
  "model-value",
1930
2003
  "options",
@@ -1934,53 +2007,53 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1934
2007
  type: "button",
1935
2008
  class: "ui-focus inline-flex items-center justify-center rounded-full p-1 text-(--text-default) transition hover:bg-(--accent)/10 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent",
1936
2009
  "aria-label": e.labels.nextMonth,
1937
- disabled: !N(_),
1938
- onClick: r[3] ||= (e) => O(1)
1939
- }, [d(X, {
2010
+ disabled: !P(_),
2011
+ onClick: r[3] ||= (e) => k(1)
2012
+ }, [d(Y, {
1940
2013
  name: "chevron",
1941
2014
  class: "size-5"
1942
- })], 8, Fi)
2015
+ })], 8, Pi)
1943
2016
  ]), c("div", {
1944
2017
  ref_key: "gridRef",
1945
2018
  ref: p,
1946
2019
  role: "grid",
1947
2020
  "aria-label": e.labels.grid,
1948
2021
  class: "flex flex-col gap-0.5 select-none"
1949
- }, [c("div", Li, [(S(), s(n, null, D(P, (t) => c("span", {
2022
+ }, [c("div", Ii, [(C(), s(n, null, O(F, (t) => c("span", {
1950
2023
  key: t,
1951
2024
  role: "columnheader",
1952
2025
  class: "w-9 py-1 text-center text-xs opacity-60",
1953
2026
  abbr: e.localeInfo.weekdayNamesLong[t - 1]
1954
- }, j(e.localeInfo.weekdayNamesShort[t - 1]), 9, Ri)), 64))]), (S(!0), s(n, null, D(N(F), (t, r) => (S(), s("div", {
2027
+ }, M(e.localeInfo.weekdayNamesShort[t - 1]), 9, Li)), 64))]), (C(!0), s(n, null, O(P(I), (t, r) => (C(), s("div", {
1955
2028
  key: r,
1956
2029
  role: "row",
1957
2030
  class: "flex"
1958
- }, [(S(!0), s(n, null, D(t, (t) => (S(), s("button", {
2031
+ }, [(C(!0), s(n, null, O(t, (t) => (C(), s("button", {
1959
2032
  key: t.key,
1960
2033
  type: "button",
1961
2034
  role: "gridcell",
1962
2035
  "data-day": t.key,
1963
2036
  class: y(["ui-focus flex size-9 items-center justify-center text-sm", [
1964
- t.key === N(M) ? "bg-(--accent) text-(--bg-default)" : t.key === N(A) ? "ring-1 ring-(--accent) ring-inset" : "hover:bg-(--accent)/10",
2037
+ t.key === P(N) ? "bg-(--accent) text-(--bg-default)" : t.key === P(j) ? "ring-1 ring-(--accent) ring-inset" : "hover:bg-(--accent)/10",
1965
2038
  !t.inMonth && "opacity-40",
1966
- I(t) && "cursor-not-allowed opacity-25 hover:bg-transparent"
2039
+ L(t) && "cursor-not-allowed opacity-25 hover:bg-transparent"
1967
2040
  ]]),
1968
- tabindex: t.key === N(L) ? 0 : -1,
1969
- "aria-selected": t.key === N(M) ? "true" : "false",
1970
- "aria-current": t.key === N(A) ? "date" : void 0,
1971
- "aria-disabled": I(t) || void 0,
2041
+ tabindex: t.key === P(R) ? 0 : -1,
2042
+ "aria-selected": t.key === P(N) ? "true" : "false",
2043
+ "aria-current": t.key === P(j) ? "date" : void 0,
2044
+ "aria-disabled": L(t) || void 0,
1972
2045
  "aria-label": `${t.day} ${e.localeInfo.monthNames[t.month - 1]} ${t.year}`,
1973
- onClick: (e) => te(t),
1974
- onKeydown: (e) => ne(t, e)
1975
- }, j(t.day), 43, zi))), 128))]))), 128))], 8, Ii)]));
2046
+ onClick: (e) => ee(t),
2047
+ onKeydown: (e) => te(t, e)
2048
+ }, M(t.day), 43, Ri))), 128))]))), 128))], 8, Fi)]));
1976
2049
  }
1977
- }), Vi = [
2050
+ }), Bi = [
1978
2051
  "aria-label",
1979
2052
  "aria-valuemin",
1980
2053
  "aria-valuemax",
1981
2054
  "aria-valuenow",
1982
2055
  "aria-valuetext"
1983
- ], Hi = ["onClick"], Ui = /* @__PURE__ */ f({
2056
+ ], Vi = ["onClick"], Hi = /* @__PURE__ */ f({
1984
2057
  __name: "TimeWheel",
1985
2058
  props: {
1986
2059
  modelValue: {},
@@ -1995,7 +2068,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
1995
2068
  },
1996
2069
  emits: ["update:modelValue"],
1997
2070
  setup(e, { emit: t }) {
1998
- let r = t, a = i(() => e.values.length), o = i(() => new Set(e.disabledValues)), l = i(() => Math.max(0, e.values.indexOf(e.modelValue))), u = E(l.value), d = E(!1), f = (e) => (e % a.value + a.value) % a.value, p = (t) => o.value.has(e.values[f(t)] ?? -1), m = (t, n) => {
2071
+ let r = t, a = i(() => e.values.length), o = i(() => new Set(e.disabledValues)), l = i(() => Math.max(0, e.values.indexOf(e.modelValue))), u = D(l.value), d = D(!1), f = (e) => (e % a.value + a.value) % a.value, p = (t) => o.value.has(e.values[f(t)] ?? -1), m = (t, n) => {
1999
2072
  if (!a.value) return 0;
2000
2073
  for (let r = 0; r < a.value; r += 1) {
2001
2074
  let i = n ? [t + r * n] : [t + r, t - r];
@@ -2007,22 +2080,22 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2007
2080
  u.value = m(i, n);
2008
2081
  let o = e.values[f(u.value)];
2009
2082
  o !== void 0 && o !== e.modelValue && r("update:modelValue", o);
2010
- }, g = (e) => h(Math.round(u.value) + e, Math.sign(e)), _ = i(() => String(Math.max(...e.values, 0)).length), v = "", ee = null, C = () => {
2011
- ee && clearTimeout(ee), ee = setTimeout(() => v = "", 900);
2012
- }, w = (t) => {
2083
+ }, g = (e) => h(Math.round(u.value) + e, Math.sign(e)), _ = i(() => String(Math.max(...e.values, 0)).length), v = "", S = null, w = () => {
2084
+ S && clearTimeout(S), S = setTimeout(() => v = "", 900);
2085
+ }, T = (t) => {
2013
2086
  let n = Math.max(...e.values), r = Number(v + t);
2014
2087
  !Number.isFinite(r) || r > n ? (r = Number(t), v = t) : v += t;
2015
2088
  let i = e.values.indexOf(r);
2016
- i !== -1 && h(i), v.length >= _.value && (v = ""), C();
2089
+ i !== -1 && h(i), v.length >= _.value && (v = ""), w();
2017
2090
  };
2018
2091
  x(() => {
2019
- ee && clearTimeout(ee);
2020
- }), R(l, (e) => {
2092
+ S && clearTimeout(S);
2093
+ }), z(l, (e) => {
2021
2094
  !d.value && f(Math.round(u.value)) !== e && (u.value = e);
2022
- }), R(a, () => {
2095
+ }), z(a, () => {
2023
2096
  u.value = l.value;
2024
2097
  });
2025
- let T = i(() => {
2098
+ let E = i(() => {
2026
2099
  let t = Math.round(u.value);
2027
2100
  return Array.from({ length: 7 }, (n, r) => {
2028
2101
  let i = t - 2 - 1 + r, o = !e.loop && (i < 0 || i >= a.value), s = f(i);
@@ -2033,34 +2106,34 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2033
2106
  offset: (i - u.value) * 32
2034
2107
  };
2035
2108
  });
2036
- }), O = 0, k = 0, A = 0, M = (e) => {
2109
+ }), k = 0, A = 0, j = 0, N = (e) => {
2037
2110
  e.preventDefault();
2038
2111
  let t = performance.now();
2039
- if (t - A < 80) return;
2040
- A = t;
2112
+ if (t - j < 80) return;
2113
+ j = t;
2041
2114
  let n = Math.sign(e.deltaY);
2042
2115
  n !== 0 && g(n);
2043
- }, P = (e) => {
2044
- (e.button === 0 || e.pointerType !== "mouse") && (d.value = !0, O = e.clientY, k = u.value, e.currentTarget.setPointerCapture(e.pointerId));
2045
- }, F = (t) => {
2116
+ }, F = (e) => {
2117
+ (e.button === 0 || e.pointerType !== "mouse") && (d.value = !0, k = e.clientY, A = u.value, e.currentTarget.setPointerCapture(e.pointerId));
2118
+ }, I = (t) => {
2046
2119
  if (!d.value) return;
2047
- let n = k + (O - t.clientY) / 32;
2120
+ let n = A + (k - t.clientY) / 32;
2048
2121
  u.value = e.loop ? n : Math.min(Math.max(n, -.4), a.value - .6);
2049
- }, I = () => {
2122
+ }, L = () => {
2050
2123
  d.value && (d.value = !1, h(Math.round(u.value)));
2051
- }, L = (e) => {
2124
+ }, R = (e) => {
2052
2125
  if (e.key === "ArrowUp") g(-1);
2053
2126
  else if (e.key === "ArrowDown") g(1);
2054
2127
  else if (e.key === "PageUp") g(-5);
2055
2128
  else if (e.key === "PageDown") g(5);
2056
2129
  else if (e.key === "Home") h(0, 1);
2057
2130
  else if (e.key === "End") h(a.value - 1, -1);
2058
- else if (/^[0-9]$/.test(e.key)) w(e.key);
2131
+ else if (/^[0-9]$/.test(e.key)) T(e.key);
2059
2132
  else if (e.key === "Backspace") v = "";
2060
2133
  else return;
2061
2134
  e.preventDefault();
2062
- }, te = i(() => Math.min(...e.values)), z = i(() => Math.max(...e.values)), ne = i(() => e.labels[l.value] || "");
2063
- return (t, r) => (S(), s("div", {
2135
+ }, ee = i(() => Math.min(...e.values)), B = i(() => Math.max(...e.values)), te = i(() => e.labels[l.value] || "");
2136
+ return (t, r) => (C(), s("div", {
2064
2137
  class: "ui-focus relative touch-none overflow-hidden text-(--text-default) select-none",
2065
2138
  style: b({
2066
2139
  height: "160px",
@@ -2069,38 +2142,38 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2069
2142
  role: "spinbutton",
2070
2143
  tabindex: "0",
2071
2144
  "aria-label": e.ariaLabel,
2072
- "aria-valuemin": N(te),
2073
- "aria-valuemax": N(z),
2145
+ "aria-valuemin": P(ee),
2146
+ "aria-valuemax": P(B),
2074
2147
  "aria-valuenow": e.modelValue,
2075
- "aria-valuetext": N(ne),
2076
- onPointerdown: P,
2077
- onPointermove: F,
2078
- onPointerup: I,
2079
- onPointercancel: I,
2080
- onWheel: M,
2081
- onKeydown: L
2148
+ "aria-valuetext": P(te),
2149
+ onPointerdown: F,
2150
+ onPointermove: I,
2151
+ onPointerup: L,
2152
+ onPointercancel: L,
2153
+ onWheel: N,
2154
+ onKeydown: R
2082
2155
  }, [c("div", {
2083
2156
  class: "pointer-events-none absolute inset-x-0 border-y border-(--accent)/40 bg-(--accent)/10",
2084
2157
  style: b({
2085
- top: `${32 * N(2)}px`,
2158
+ top: `${32 * P(2)}px`,
2086
2159
  height: "32px"
2087
2160
  })
2088
- }, null, 4), (S(!0), s(n, null, D(N(T), (e) => (S(), s("div", {
2161
+ }, null, 4), (C(!0), s(n, null, O(P(E), (e) => (C(), s("div", {
2089
2162
  key: e.index,
2090
- class: y(["absolute inset-x-0 flex cursor-pointer items-center justify-center text-sm tabular-nums", [!N(d) && "transition-transform duration-100", e.disabled ? "cursor-not-allowed opacity-25" : Math.abs(e.offset) < 2 ? "" : "opacity-55"]]),
2163
+ class: y(["absolute inset-x-0 flex cursor-pointer items-center justify-center text-sm tabular-nums", [!P(d) && "transition-transform duration-100", e.disabled ? "cursor-not-allowed opacity-25" : Math.abs(e.offset) < 2 ? "" : "opacity-55"]]),
2091
2164
  style: b({
2092
2165
  height: "32px",
2093
- transform: `translateY(${e.offset + 32 * N(2)}px)`
2166
+ transform: `translateY(${e.offset + 32 * P(2)}px)`
2094
2167
  }),
2095
2168
  "aria-hidden": "true",
2096
2169
  onClick: (t) => h(e.index)
2097
- }, j(e.label), 15, Hi))), 128))], 44, Vi));
2170
+ }, M(e.label), 15, Vi))), 128))], 44, Bi));
2098
2171
  }
2099
- }), Wi = { class: "flex items-start justify-center gap-1 text-(--text-default)" }, Gi = {
2172
+ }), Ui = { class: "flex items-start justify-center gap-1 text-(--text-default)" }, Wi = {
2100
2173
  key: 0,
2101
2174
  class: "flex h-40 items-center text-sm opacity-60",
2102
2175
  "aria-hidden": "true"
2103
- }, Ki = /* @__PURE__ */ f({
2176
+ }, Gi = /* @__PURE__ */ f({
2104
2177
  __name: "Time",
2105
2178
  props: {
2106
2179
  hour: {},
@@ -2118,11 +2191,11 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2118
2191
  emits: ["change"],
2119
2192
  setup(e, { emit: t }) {
2120
2193
  let n = t, r = Array.from({ length: 60 }, (e, t) => t), i = r.map((e) => String(e).padStart(2, "0")), l = Array.from({ length: 24 }, (e, t) => t), u = i.slice(0, 24);
2121
- return (t, f) => (S(), s("div", Wi, [
2122
- d(Ui, {
2194
+ return (t, f) => (C(), s("div", Ui, [
2195
+ d(Hi, {
2123
2196
  "model-value": e.hour,
2124
- values: N(l),
2125
- labels: N(u),
2197
+ values: P(l),
2198
+ labels: P(u),
2126
2199
  "aria-label": e.labels.hours,
2127
2200
  "disabled-values": e.disabledHours,
2128
2201
  "onUpdate:modelValue": f[0] ||= (e) => n("change", { hour: e })
@@ -2137,10 +2210,10 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2137
2210
  class: "flex h-40 items-center text-sm opacity-60",
2138
2211
  "aria-hidden": "true"
2139
2212
  }, ":", -1),
2140
- d(Ui, {
2213
+ d(Hi, {
2141
2214
  "model-value": e.minute,
2142
- values: N(r),
2143
- labels: N(i),
2215
+ values: P(r),
2216
+ labels: P(i),
2144
2217
  "aria-label": e.labels.minutes,
2145
2218
  "disabled-values": e.disabledMinutes,
2146
2219
  "onUpdate:modelValue": f[1] ||= (e) => n("change", { minute: e })
@@ -2151,12 +2224,12 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2151
2224
  "aria-label",
2152
2225
  "disabled-values"
2153
2226
  ]),
2154
- e.showSeconds ? (S(), s("span", Gi, ":")) : o("", !0),
2155
- e.showSeconds ? (S(), a(Ui, {
2227
+ e.showSeconds ? (C(), s("span", Wi, ":")) : o("", !0),
2228
+ e.showSeconds ? (C(), a(Hi, {
2156
2229
  key: 1,
2157
2230
  "model-value": e.second,
2158
- values: N(r),
2159
- labels: N(i),
2231
+ values: P(r),
2232
+ labels: P(i),
2160
2233
  "aria-label": e.labels.seconds,
2161
2234
  "disabled-values": e.disabledSeconds,
2162
2235
  "onUpdate:modelValue": f[2] ||= (e) => n("change", { second: e })
@@ -2169,17 +2242,17 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2169
2242
  ])) : o("", !0)
2170
2243
  ]));
2171
2244
  }
2172
- }), qi = { class: "flex flex-wrap items-center gap-2" }, Ji = {
2245
+ }), Ki = { class: "flex flex-wrap items-center gap-2" }, qi = {
2173
2246
  key: 0,
2174
2247
  class: "flex flex-wrap gap-1"
2175
- }, Yi = {
2248
+ }, Ji = {
2176
2249
  key: 1,
2177
2250
  class: "h-4 w-px bg-(--border)",
2178
2251
  "aria-hidden": "true"
2179
- }, Xi = {
2252
+ }, Yi = {
2180
2253
  key: 2,
2181
2254
  class: "flex flex-wrap gap-1"
2182
- }, Zi = /* @__PURE__ */ f({
2255
+ }, Xi = /* @__PURE__ */ f({
2183
2256
  __name: "QuickActions",
2184
2257
  props: {
2185
2258
  showDate: { type: Boolean },
@@ -2197,21 +2270,21 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2197
2270
  "now",
2198
2271
  "endOfDay"
2199
2272
  ] : []);
2200
- return (t, i) => (S(), s("div", qi, [
2201
- N(c).length ? (S(), s("div", Ji, [(S(!0), s(n, null, D(N(c), (t) => (S(), a(Cr, {
2273
+ return (t, i) => (C(), s("div", Ki, [
2274
+ P(c).length ? (C(), s("div", qi, [(C(!0), s(n, null, O(P(c), (t) => (C(), a(Sr, {
2202
2275
  key: t,
2203
2276
  label: e.labels[t],
2204
2277
  onClick: (e) => r("action", t)
2205
2278
  }, null, 8, ["label", "onClick"]))), 128))])) : o("", !0),
2206
- N(c).length && N(l).length ? (S(), s("span", Yi)) : o("", !0),
2207
- N(l).length ? (S(), s("div", Xi, [(S(!0), s(n, null, D(N(l), (t) => (S(), a(Cr, {
2279
+ P(c).length && P(l).length ? (C(), s("span", Ji)) : o("", !0),
2280
+ P(l).length ? (C(), s("div", Yi, [(C(!0), s(n, null, O(P(l), (t) => (C(), a(Sr, {
2208
2281
  key: t,
2209
2282
  label: e.labels[t],
2210
2283
  onClick: (e) => r("action", t)
2211
2284
  }, null, 8, ["label", "onClick"]))), 128))])) : o("", !0)
2212
2285
  ]));
2213
2286
  }
2214
- }), Qi = { class: "inline-block" }, $i = [
2287
+ }), Zi = { class: "inline-block" }, Qi = [
2215
2288
  "id",
2216
2289
  "tabindex",
2217
2290
  "aria-label",
@@ -2219,7 +2292,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2219
2292
  "aria-controls",
2220
2293
  "aria-invalid",
2221
2294
  "aria-disabled"
2222
- ], ea = ["aria-hidden", "disabled"], ta = ["name", "value"], na = { class: "flex flex-wrap items-start gap-4" }, ra = /* @__PURE__ */ f({
2295
+ ], $i = ["aria-hidden", "disabled"], ea = ["name", "value"], ta = { class: "flex flex-wrap items-start gap-4" }, na = /* @__PURE__ */ f({
2223
2296
  __name: "index",
2224
2297
  props: /*@__PURE__*/ g({
2225
2298
  disabled: {
@@ -2265,89 +2338,89 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2265
2338
  }),
2266
2339
  emits: ["update:modelValue", "update:timezone"],
2267
2340
  setup(e, { expose: t }) {
2268
- let n = F(e, "modelValue"), r = F(e, "timezone"), l = E(null);
2341
+ let n = I(e, "modelValue"), r = I(e, "timezone"), l = D(null);
2269
2342
  t({ focus: () => l.value?.focus() });
2270
- let u = m("field-id", void 0), f = m("field-context", null), p = m("fieldset-disabled", E(!1)), g = P(), _ = i(() => e.id || f?.id.value || u || `datetime-${g}`), v = i(() => `${_.value}-panel`), b = i(() => !!(e.disabled || f?.disabled?.value || p.value)), x = i(() => e.locale || "ru-RU"), C = i(() => Oi(x.value)), w = i(() => ({
2343
+ let u = m("field-id", void 0), f = m("field-context", null), p = m("fieldset-disabled", D(!1)), g = F(), _ = i(() => e.id || f?.id.value || u || `datetime-${g}`), v = i(() => `${_.value}-panel`), b = i(() => !!(e.disabled || f?.disabled?.value || p.value)), x = i(() => e.locale || "ru-RU"), w = i(() => Di(x.value)), T = i(() => ({
2271
2344
  showDate: e.showDate,
2272
2345
  showTime: e.showTime,
2273
2346
  showSeconds: e.showTime && e.showSeconds
2274
- })), T = i(() => _i(n.value)), D = i(() => !!T.value && !b.value && !e.readonly), O = i(() => _i(e.min)), k = i(() => _i(e.max)), A = i(() => T.value ? wi(T.value, x.value, w.value) : ""), M = i(() => e.showDate ? e.showTime ? "Выберите дату и время" : "Выберите дату" : "Выберите время"), I = E(!1), L = i(() => e.closeOnSelect ?? !e.showTime), te = () => {
2275
- b.value || e.readonly || (I.value = !I.value);
2276
- }, R = () => I.value = !1, ne = () => {
2347
+ })), E = i(() => gi(n.value)), O = i(() => !!E.value && !b.value && !e.readonly), k = i(() => gi(e.min)), A = i(() => gi(e.max)), j = i(() => E.value ? Ci(E.value, x.value, T.value) : ""), N = i(() => e.showDate ? e.showTime ? "Выберите дату и время" : "Выберите дату" : "Выберите время"), L = D(!1), R = i(() => e.closeOnSelect ?? !e.showTime), ee = () => {
2348
+ b.value || e.readonly || (L.value = !L.value);
2349
+ }, z = () => L.value = !1, te = () => {
2277
2350
  b.value || e.readonly || (n.value = "", l.value?.focus());
2278
- }, B = (e) => {
2279
- e.key === "Enter" || e.key === " " ? (e.preventDefault(), te()) : e.key === "Escape" && I.value && (e.preventDefault(), e.stopPropagation(), R(), l.value?.focus());
2280
- }, V = () => {
2351
+ }, V = (e) => {
2352
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), ee()) : e.key === "Escape" && L.value && (e.preventDefault(), e.stopPropagation(), z(), l.value?.focus());
2353
+ }, re = () => {
2281
2354
  let e = l.value?.closest("fieldset");
2282
2355
  if (!l.value || !e) return !1;
2283
2356
  let t = Array.from(e.querySelectorAll("[data-datetime-trigger]")), n = t[t.indexOf(l.value) + 1];
2284
2357
  return n ? (n.focus(), !0) : !1;
2285
2358
  }, ie = () => {
2286
2359
  let t = /* @__PURE__ */ new Date();
2287
- return e.showTime ? yi(t) : {
2288
- ...yi(t),
2360
+ return e.showTime ? vi(t) : {
2361
+ ...vi(t),
2289
2362
  hour: 0,
2290
2363
  minute: 0,
2291
2364
  second: 0
2292
2365
  };
2293
2366
  }, ae = (t) => {
2294
- let r = Ci(e.showSeconds ? t : {
2367
+ let r = Si(e.showSeconds ? t : {
2295
2368
  ...t,
2296
2369
  second: 0
2297
- }, O.value, k.value);
2298
- n.value = vi(r, w.value);
2370
+ }, k.value, A.value);
2371
+ n.value = _i(r, T.value);
2299
2372
  }, H = (e) => {
2300
2373
  ae({
2301
- ...T.value || ie(),
2374
+ ...E.value || ie(),
2302
2375
  ...e
2303
- }), L.value && (R(), V() || l.value?.focus());
2376
+ }), R.value && (z(), re() || l.value?.focus());
2304
2377
  }, U = (e) => ae({
2305
- ...T.value || ie(),
2378
+ ...E.value || ie(),
2306
2379
  ...e
2307
2380
  }), W = () => {
2308
- R(), V() || l.value?.focus();
2381
+ z(), re() || l.value?.focus();
2309
2382
  }, oe = (e) => ae({
2310
- ...T.value || ie(),
2383
+ ...E.value || ie(),
2311
2384
  ...e
2312
- }), G = (e, t) => !!(e && t && Si(e, t) === 0), K = i(() => {
2313
- let e = [], t = T.value;
2314
- if (G(t, O.value)) for (let t = 0; t < (O.value?.hour || 0); t += 1) e.push(t);
2315
- if (G(t, k.value)) for (let t = (k.value?.hour ?? 23) + 1; t < 24; t += 1) e.push(t);
2385
+ }), G = (e, t) => !!(e && t && xi(e, t) === 0), se = i(() => {
2386
+ let e = [], t = E.value;
2387
+ if (G(t, k.value)) for (let t = 0; t < (k.value?.hour || 0); t += 1) e.push(t);
2388
+ if (G(t, A.value)) for (let t = (A.value?.hour ?? 23) + 1; t < 24; t += 1) e.push(t);
2316
2389
  return e;
2317
- }), q = i(() => {
2318
- let e = [], t = T.value;
2319
- if (G(t, O.value) && t?.hour === O.value?.hour) for (let t = 0; t < (O.value?.minute || 0); t += 1) e.push(t);
2320
- if (G(t, k.value) && t?.hour === k.value?.hour) for (let t = (k.value?.minute ?? 59) + 1; t < 60; t += 1) e.push(t);
2390
+ }), K = i(() => {
2391
+ let e = [], t = E.value;
2392
+ if (G(t, k.value) && t?.hour === k.value?.hour) for (let t = 0; t < (k.value?.minute || 0); t += 1) e.push(t);
2393
+ if (G(t, A.value) && t?.hour === A.value?.hour) for (let t = (A.value?.minute ?? 59) + 1; t < 60; t += 1) e.push(t);
2321
2394
  return e;
2322
- }), se = E("");
2323
- ee(() => {
2324
- se.value = Ai();
2395
+ }), ce = D("");
2396
+ S(() => {
2397
+ ce.value = ki();
2325
2398
  });
2326
- let ce = i({
2327
- get: () => r.value || se.value,
2399
+ let le = i({
2400
+ get: () => r.value || ce.value,
2328
2401
  set: (e) => {
2329
2402
  r.value = e;
2330
2403
  }
2331
- }), le = i(() => e.showTimezone ? ji() : []), J = i(() => ({
2404
+ }), q = i(() => e.showTimezone ? Ai() : []), ue = i(() => ({
2332
2405
  today: "Сегодня",
2333
2406
  now: "Сейчас",
2334
2407
  tomorrow: "Завтра",
2335
2408
  yesterday: "Вчера",
2336
2409
  startOfDay: "Начало дня",
2337
2410
  endOfDay: "Конец дня"
2338
- })), ue = i(() => ({
2411
+ })), de = i(() => ({
2339
2412
  grid: "Календарь",
2340
2413
  prevMonth: "Предыдущий месяц",
2341
2414
  nextMonth: "Следующий месяц",
2342
2415
  month: "Месяц",
2343
2416
  year: "Год"
2344
- })), de = i(() => ({
2417
+ })), fe = i(() => ({
2345
2418
  hours: "Часы",
2346
2419
  minutes: "Минуты",
2347
2420
  seconds: "Секунды"
2348
- })), fe = (t) => {
2349
- let n = /* @__PURE__ */ new Date(), r = T.value || ie();
2350
- if (t === "now") return ae(yi(n));
2421
+ })), pe = (t) => {
2422
+ let n = /* @__PURE__ */ new Date(), r = E.value || ie();
2423
+ if (t === "now") return ae(vi(n));
2351
2424
  if (t === "startOfDay") return ae({
2352
2425
  ...r,
2353
2426
  hour: 0,
@@ -2367,66 +2440,66 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2367
2440
  month: a.getMonth() + 1,
2368
2441
  day: a.getDate()
2369
2442
  });
2370
- }, pe = i(() => [
2443
+ }, me = i(() => [
2371
2444
  "relative flex h-9 w-full min-w-44 items-center justify-between gap-2 px-3 text-sm text-(--text-default) bg-(--default) hover:bg-(--default-hover) outline-none select-none focus:ring-2 focus:ring-(--accent) focus-within:ring-2 focus-within:ring-(--accent)",
2372
2445
  e.invalid ? "ring-2 ring-(--danger) focus:ring-(--danger) focus-within:ring-(--danger)" : "ring-1 ring-(--border)",
2373
2446
  b.value && "cursor-not-allowed opacity-50"
2374
2447
  ]);
2375
- return (t, r) => (S(), s("div", Qi, [
2448
+ return (t, r) => (C(), s("div", Zi, [
2376
2449
  c("div", {
2377
- id: N(_),
2450
+ id: P(_),
2378
2451
  ref_key: "triggerRef",
2379
2452
  ref: l,
2380
2453
  role: "combobox",
2381
- tabindex: N(b) ? -1 : 0,
2382
- class: y(N(pe)),
2454
+ tabindex: P(b) ? -1 : 0,
2455
+ class: y(P(me)),
2383
2456
  "data-datetime-trigger": "",
2384
- "aria-label": e.ariaLabel || N(M),
2457
+ "aria-label": e.ariaLabel || P(N),
2385
2458
  "aria-haspopup": "dialog",
2386
- "aria-expanded": N(I) ? "true" : "false",
2387
- "aria-controls": N(I) ? N(v) : void 0,
2459
+ "aria-expanded": P(L) ? "true" : "false",
2460
+ "aria-controls": P(L) ? P(v) : void 0,
2388
2461
  "aria-invalid": e.invalid || void 0,
2389
- "aria-disabled": N(b) || void 0,
2390
- onClick: te,
2391
- onKeydown: B
2462
+ "aria-disabled": P(b) || void 0,
2463
+ onClick: ee,
2464
+ onKeydown: V
2392
2465
  }, [
2393
- d(X, {
2466
+ d(Y, {
2394
2467
  name: e.showDate ? "calendar" : "clock",
2395
2468
  class: "size-4 shrink-0 opacity-60"
2396
2469
  }, null, 8, ["name"]),
2397
- c("span", { class: y(["flex-1 truncate", !N(A) && "opacity-60"]) }, j(N(A) || N(M)), 3),
2470
+ c("span", { class: y(["flex-1 truncate", !P(j) && "opacity-60"]) }, M(P(j) || P(N)), 3),
2398
2471
  c("button", {
2399
2472
  type: "button",
2400
2473
  tabindex: "-1",
2401
2474
  "aria-label": "Очистить",
2402
- "aria-hidden": !N(D) || void 0,
2403
- disabled: !N(D),
2475
+ "aria-hidden": !P(O) || void 0,
2476
+ disabled: !P(O),
2404
2477
  class: "flex size-4 shrink-0 cursor-pointer items-center justify-center opacity-60 outline-none hover:opacity-100 disabled:pointer-events-none disabled:opacity-0",
2405
- onClick: re(ne, ["stop"])
2406
- }, [d(X, { name: "close" })], 8, ea)
2407
- ], 42, $i),
2408
- e.name ? (S(), s("input", {
2478
+ onClick: ne(te, ["stop"])
2479
+ }, [d(Y, { name: "close" })], 8, $i)
2480
+ ], 42, Qi),
2481
+ e.name ? (C(), s("input", {
2409
2482
  key: 0,
2410
2483
  type: "hidden",
2411
2484
  name: e.name,
2412
2485
  value: n.value || ""
2413
- }, null, 8, ta)) : o("", !0),
2414
- d(mi, {
2415
- open: N(I),
2416
- trigger: N(l),
2417
- "panel-id": N(v),
2418
- "aria-label": e.ariaLabel || N(M),
2419
- onClose: R,
2486
+ }, null, 8, ea)) : o("", !0),
2487
+ d(pi, {
2488
+ open: P(L),
2489
+ trigger: P(l),
2490
+ "panel-id": P(v),
2491
+ "aria-label": e.ariaLabel || P(N),
2492
+ onClose: z,
2420
2493
  onConfirm: W
2421
2494
  }, {
2422
- default: z(() => [
2423
- c("div", na, [e.showDate ? (S(), a(Bi, {
2495
+ default: B(() => [
2496
+ c("div", ta, [e.showDate ? (C(), a(zi, {
2424
2497
  key: 0,
2425
- selected: N(T),
2426
- min: N(O),
2427
- max: N(k),
2428
- "locale-info": N(C),
2429
- labels: N(ue),
2498
+ selected: P(E),
2499
+ min: P(k),
2500
+ max: P(A),
2501
+ "locale-info": P(w),
2502
+ labels: P(de),
2430
2503
  onSelect: H,
2431
2504
  onCommit: U
2432
2505
  }, null, 8, [
@@ -2435,15 +2508,15 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2435
2508
  "max",
2436
2509
  "locale-info",
2437
2510
  "labels"
2438
- ])) : o("", !0), e.showTime ? (S(), a(Ki, {
2511
+ ])) : o("", !0), e.showTime ? (C(), a(Gi, {
2439
2512
  key: 1,
2440
- hour: N(T)?.hour ?? 0,
2441
- minute: N(T)?.minute ?? 0,
2442
- second: N(T)?.second ?? 0,
2513
+ hour: P(E)?.hour ?? 0,
2514
+ minute: P(E)?.minute ?? 0,
2515
+ second: P(E)?.second ?? 0,
2443
2516
  "show-seconds": e.showSeconds,
2444
- "disabled-hours": N(K),
2445
- "disabled-minutes": N(q),
2446
- labels: N(de),
2517
+ "disabled-hours": P(se),
2518
+ "disabled-minutes": P(K),
2519
+ labels: P(fe),
2447
2520
  onChange: oe
2448
2521
  }, null, 8, [
2449
2522
  "hour",
@@ -2454,20 +2527,20 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2454
2527
  "disabled-minutes",
2455
2528
  "labels"
2456
2529
  ])) : o("", !0)]),
2457
- e.showTimezone ? (S(), a(qr, {
2530
+ e.showTimezone ? (C(), a(Kr, {
2458
2531
  key: 0,
2459
- modelValue: N(ce),
2460
- "onUpdate:modelValue": r[0] ||= (e) => h(ce) ? ce.value = e : null,
2532
+ modelValue: P(le),
2533
+ "onUpdate:modelValue": r[0] ||= (e) => h(le) ? le.value = e : null,
2461
2534
  class: "w-full",
2462
2535
  filter: "",
2463
- options: N(le),
2536
+ options: P(q),
2464
2537
  "aria-label": "Часовой пояс"
2465
2538
  }, null, 8, ["modelValue", "options"])) : o("", !0),
2466
- d(Zi, {
2539
+ d(Xi, {
2467
2540
  "show-date": e.showDate,
2468
2541
  "show-time": e.showTime,
2469
- labels: N(J),
2470
- onAction: fe
2542
+ labels: P(ue),
2543
+ onAction: pe
2471
2544
  }, null, 8, [
2472
2545
  "show-date",
2473
2546
  "show-time",
@@ -2483,11 +2556,11 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2483
2556
  ])
2484
2557
  ]));
2485
2558
  }
2486
- }), ia = ["innerHTML"], aa = /*#__PURE__*/ J(/* @__PURE__ */ f({
2559
+ }), ra = ["innerHTML"], ia = /*#__PURE__*/ q(/* @__PURE__ */ f({
2487
2560
  __name: "SDocMarkdown",
2488
2561
  props: { html: {} },
2489
2562
  setup(e) {
2490
- let t = E(null), n = {
2563
+ let t = D(null), n = {
2491
2564
  javascript: "js",
2492
2565
  js: "js",
2493
2566
  typescript: "ts",
@@ -2553,45 +2626,45 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2553
2626
  }, 1500);
2554
2627
  }
2555
2628
  }, d = null;
2556
- return ee(() => {
2629
+ return S(() => {
2557
2630
  l();
2558
2631
  let e = (e) => void u(e);
2559
2632
  t.value?.addEventListener("click", e), d = () => t.value?.removeEventListener("click", e);
2560
- }), x(() => d?.()), (n, r) => (S(), s("div", {
2633
+ }), x(() => d?.()), (n, r) => (C(), s("div", {
2561
2634
  ref_key: "root",
2562
2635
  ref: t,
2563
2636
  innerHTML: e.html
2564
- }, null, 8, ia));
2637
+ }, null, 8, ra));
2565
2638
  }
2566
- }), [["__scopeId", "data-v-71a37e31"]]), oa = {
2639
+ }), [["__scopeId", "data-v-71a37e31"]]), aa = {
2567
2640
  wrapper: "space-y-2",
2568
2641
  label: "text-xs text-(--accent)"
2569
- }, sa = /* @__PURE__ */ f({
2642
+ }, oa = /* @__PURE__ */ f({
2570
2643
  __name: "SField",
2571
2644
  props: { label: {} },
2572
2645
  setup(e) {
2573
- return (t, n) => (S(), s("div", { class: y(oa.wrapper) }, [e.label ? (S(), s("div", {
2646
+ return (t, n) => (C(), s("div", { class: y(aa.wrapper) }, [e.label ? (C(), s("div", {
2574
2647
  key: 0,
2575
- class: y(oa.label)
2576
- }, j(e.label), 3)) : o("", !0), O(t.$slots, "default")], 2));
2648
+ class: y(aa.label)
2649
+ }, M(e.label), 3)) : o("", !0), k(t.$slots, "default")], 2));
2577
2650
  }
2578
- }), ca = (e, t) => {
2651
+ }), sa = (e, t) => {
2579
2652
  if (!Number.isFinite(e) || !Array.isArray(t) || t.length !== 3 || t.some((e) => typeof e != "string")) throw TypeError("Invalid arguments");
2580
2653
  let n = Math.abs(e), r = n % 10, i = n % 100;
2581
2654
  return n % 1 == 0 ? i >= 11 && i <= 19 ? t[2] : r === 1 ? t[0] : r >= 2 && r <= 4 ? t[1] : t[2] : t[1];
2582
- }, la = [
2655
+ }, ca = [
2583
2656
  "id",
2584
2657
  "name",
2585
2658
  "accept",
2586
2659
  "multiple",
2587
2660
  "disabled"
2588
- ], ua = {
2661
+ ], la = {
2589
2662
  wrapper: "flex flex-col items-start gap-2",
2590
2663
  list: "flex max-h-32 flex-col gap-1 overflow-auto",
2591
2664
  item: "flex items-center justify-between gap-2 bg-(--elevated) px-2 py-1 text-sm text-(--text-default)",
2592
2665
  fileName: "min-w-0 wrap-break-word",
2593
2666
  removeBtn: "cursor-pointer hover:bg-(--danger)"
2594
- }, da = /* @__PURE__ */ f({
2667
+ }, ua = /* @__PURE__ */ f({
2595
2668
  __name: "SFile",
2596
2669
  props: /*@__PURE__*/ g({
2597
2670
  id: {},
@@ -2621,9 +2694,9 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2621
2694
  }),
2622
2695
  emits: /*@__PURE__*/ g(["change"], ["update:modelValue"]),
2623
2696
  setup(e, { expose: t, emit: r }) {
2624
- let a = F(e, "modelValue"), l = r, u = m("field-id", void 0), f = P(), p = i(() => e.id || u || `file-${f}`), h = E(null), g = i(() => e.buttonLabel || (e.multiple ? "Выбрать файлы" : "Выбрать файл")), _ = i(() => {
2697
+ let a = I(e, "modelValue"), l = r, u = m("field-id", void 0), f = F(), p = i(() => e.id || u || `file-${f}`), h = D(null), g = i(() => e.buttonLabel || (e.multiple ? "Выбрать файлы" : "Выбрать файл")), _ = i(() => {
2625
2698
  let t = e.loading && a.value.length ? a.value.length : Number(e.count || 0) || a.value.length;
2626
- return t ? e.multiple ? `${t} ${ca(t, [
2699
+ return t ? e.multiple ? `${t} ${sa(t, [
2627
2700
  "файл",
2628
2701
  "файла",
2629
2702
  "файлов"
@@ -2633,19 +2706,19 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2633
2706
  }, x = (e) => {
2634
2707
  let t = e.target, n = Array.from(t.files ?? []);
2635
2708
  a.value = n, l("change", e, n), t.value = "";
2636
- }, ee = (e) => {
2709
+ }, S = (e) => {
2637
2710
  a.value = a.value.filter((t, n) => n !== e);
2638
- }, C = () => {
2711
+ }, w = () => {
2639
2712
  a.value = [], h.value && (h.value.value = "");
2640
2713
  };
2641
2714
  return t({
2642
- reset: C,
2715
+ reset: w,
2643
2716
  files: a
2644
- }), R(() => e.loading, (t) => {
2645
- !t && !e.showList && C();
2646
- }), (t, r) => (S(), s("div", { class: y(ua.wrapper) }, [
2717
+ }), z(() => e.loading, (t) => {
2718
+ !t && !e.showList && w();
2719
+ }), (t, r) => (C(), s("div", { class: y(la.wrapper) }, [
2647
2720
  c("input", {
2648
- id: N(p),
2721
+ id: P(p),
2649
2722
  ref_key: "inputRef",
2650
2723
  ref: h,
2651
2724
  name: e.name,
@@ -2657,23 +2730,23 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2657
2730
  tabindex: "-1",
2658
2731
  "aria-hidden": "true",
2659
2732
  onChange: x
2660
- }, null, 40, la),
2661
- d(Cr, {
2662
- label: N(_),
2663
- state: N(v),
2733
+ }, null, 40, ca),
2734
+ d(Sr, {
2735
+ label: P(_),
2736
+ state: P(v),
2664
2737
  onClick: b
2665
2738
  }, null, 8, ["label", "state"]),
2666
- e.showList && a.value.length && e.multiple ? (S(), s("div", {
2739
+ e.showList && a.value.length && e.multiple ? (C(), s("div", {
2667
2740
  key: 0,
2668
- class: y(ua.list)
2669
- }, [(S(!0), s(n, null, D(a.value, (e, t) => (S(), s("div", {
2741
+ class: y(la.list)
2742
+ }, [(C(!0), s(n, null, O(a.value, (e, t) => (C(), s("div", {
2670
2743
  key: e.name + t,
2671
- class: y(ua.item)
2672
- }, [c("span", { class: y(ua.fileName) }, j(e.name), 3), d(Cr, {
2673
- class: y(ua.removeBtn),
2674
- state: N(v),
2744
+ class: y(la.item)
2745
+ }, [c("span", { class: y(la.fileName) }, M(e.name), 3), d(Sr, {
2746
+ class: y(la.removeBtn),
2747
+ state: P(v),
2675
2748
  label: "Удалить",
2676
- onClick: (e) => ee(t)
2749
+ onClick: (e) => S(t)
2677
2750
  }, null, 8, [
2678
2751
  "class",
2679
2752
  "state",
@@ -2681,13 +2754,13 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2681
2754
  ])], 2))), 128))], 2)) : o("", !0)
2682
2755
  ], 2));
2683
2756
  }
2684
- }), fa = ["id", "aria-disabled"], pa = [
2757
+ }), da = ["id", "aria-disabled"], fa = [
2685
2758
  "aria-checked",
2686
2759
  "aria-label",
2687
2760
  "disabled",
2688
2761
  "title",
2689
2762
  "onClick"
2690
- ], ma = ["name", "value"], ha = {
2763
+ ], pa = ["name", "value"], ma = {
2691
2764
  wrapper: "inline-flex flex-col gap-1 w-fit",
2692
2765
  wrapperDisabled: "opacity-50",
2693
2766
  grid: "grid gap-1",
@@ -2701,7 +2774,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2701
2774
  optionLabel: "truncate text-center text-xs",
2702
2775
  optionLabelActive: "text-(--accent)",
2703
2776
  optionLabelInactive: "opacity-70"
2704
- }, ga = /* @__PURE__ */ f({
2777
+ }, ha = /* @__PURE__ */ f({
2705
2778
  __name: "SGradation",
2706
2779
  props: /*@__PURE__*/ g({
2707
2780
  options: { default: () => [] },
@@ -2718,54 +2791,54 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2718
2791
  }),
2719
2792
  emits: /*@__PURE__*/ g(["change"], ["update:modelValue"]),
2720
2793
  setup(e, { emit: t }) {
2721
- let r = F(e, "modelValue"), a = t, l = P(), u = i(() => e.id || `gradation-${l}`), d = i(() => String(r.value ?? "").trim()), f = i(() => e.options.map((e, t) => ({
2794
+ let r = I(e, "modelValue"), a = t, l = F(), u = i(() => e.id || `gradation-${l}`), d = i(() => String(r.value ?? "").trim()), f = i(() => e.options.map((e, t) => ({
2722
2795
  value: String(e.value).trim(),
2723
2796
  label: e.label?.trim() || `Уровень ${t + 1}`
2724
2797
  })).filter((e) => e.value)), p = i(() => f.value.findIndex((e) => e.value === d.value)), m = i(() => ({ gridTemplateColumns: `repeat(${f.value.length}, minmax(1.5rem, 1fr))` })), h = (t) => {
2725
2798
  if (e.disabled) return;
2726
2799
  let n = t === d.value ? e.clearValue : t;
2727
2800
  r.value = n, a("change", n);
2728
- }, g = i(() => [ha.wrapper, e.disabled && ha.wrapperDisabled]), _ = i(() => [ha.button, e.disabled ? ha.buttonDisabled : ha.buttonEnabled]), v = (e) => [ha.bar, p.value >= 0 && e <= p.value ? ha.barActive : ha.barInactive], x = (e) => [ha.optionLabel, e.value === d.value ? ha.optionLabelActive : ha.optionLabelInactive];
2729
- return (t, r) => (S(), s("div", { class: y(N(g)) }, [
2801
+ }, g = i(() => [ma.wrapper, e.disabled && ma.wrapperDisabled]), _ = i(() => [ma.button, e.disabled ? ma.buttonDisabled : ma.buttonEnabled]), v = (e) => [ma.bar, p.value >= 0 && e <= p.value ? ma.barActive : ma.barInactive], x = (e) => [ma.optionLabel, e.value === d.value ? ma.optionLabelActive : ma.optionLabelInactive];
2802
+ return (t, r) => (C(), s("div", { class: y(P(g)) }, [
2730
2803
  c("div", {
2731
- id: N(u),
2804
+ id: P(u),
2732
2805
  "aria-disabled": e.disabled ? "true" : "false",
2733
2806
  "aria-label": "Градация",
2734
- class: y(ha.grid),
2735
- style: b(N(m)),
2807
+ class: y(ma.grid),
2808
+ style: b(P(m)),
2736
2809
  role: "radiogroup"
2737
- }, [(S(!0), s(n, null, D(N(f), (t, n) => (S(), s("button", {
2810
+ }, [(C(!0), s(n, null, O(P(f), (t, n) => (C(), s("button", {
2738
2811
  key: t.value,
2739
- "aria-checked": t.value === N(d) ? "true" : "false",
2812
+ "aria-checked": t.value === P(d) ? "true" : "false",
2740
2813
  "aria-label": t.label,
2741
2814
  disabled: e.disabled,
2742
2815
  title: t.label,
2743
- class: y(N(_)),
2816
+ class: y(P(_)),
2744
2817
  role: "radio",
2745
2818
  type: "button",
2746
2819
  onClick: (e) => h(t.value)
2747
- }, [c("span", { class: y(v(n)) }, null, 2), c("span", { class: y(ha.srOnly) }, j(t.label), 3)], 10, pa))), 128))], 14, fa),
2820
+ }, [c("span", { class: y(v(n)) }, null, 2), c("span", { class: y(ma.srOnly) }, M(t.label), 3)], 10, fa))), 128))], 14, da),
2748
2821
  c("div", {
2749
- class: y(ha.grid),
2750
- style: b(N(m))
2751
- }, [(S(!0), s(n, null, D(N(f), (e) => (S(), s("span", {
2822
+ class: y(ma.grid),
2823
+ style: b(P(m))
2824
+ }, [(C(!0), s(n, null, O(P(f), (e) => (C(), s("span", {
2752
2825
  key: `label-${e.value}`,
2753
2826
  class: y(x(e))
2754
- }, j(e.label), 3))), 128))], 6),
2755
- e.name ? (S(), s("input", {
2827
+ }, M(e.label), 3))), 128))], 6),
2828
+ e.name ? (C(), s("input", {
2756
2829
  key: 0,
2757
2830
  type: "hidden",
2758
2831
  name: e.name,
2759
- value: N(d)
2760
- }, null, 8, ma)) : o("", !0)
2832
+ value: P(d)
2833
+ }, null, 8, pa)) : o("", !0)
2761
2834
  ], 2));
2762
2835
  }
2763
- }), _a = ["aria-label"], va = ["src", "alt"], ya = { class: "truncate" }, ba = ["aria-label"], xa = { class: "relative min-h-0 flex-1" }, Sa = ["src", "alt"], Ca = [
2836
+ }), ga = ["aria-label"], _a = ["src", "alt"], va = { class: "truncate" }, ya = ["aria-label"], ba = { class: "relative min-h-0 flex-1" }, xa = ["src", "alt"], Sa = [
2764
2837
  "data-thumb-index",
2765
2838
  "aria-label",
2766
2839
  "aria-current",
2767
2840
  "onClick"
2768
- ], wa = ["src", "alt"], Q = {
2841
+ ], Ca = ["src", "alt"], Q = {
2769
2842
  trigger: "group relative block w-full max-w-full cursor-pointer overflow-hidden bg-(--elevated) p-0 text-left outline-none focus-visible:ring-2 focus-visible:ring-(--accent)",
2770
2843
  triggerImage: "aspect-4/3 w-full object-cover transition-transform duration-200 group-hover:scale-105",
2771
2844
  badge: "pointer-events-none absolute top-0 right-0 z-1 flex size-7 items-center justify-center bg-zinc-950/70 text-white opacity-80 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",
@@ -2786,7 +2859,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2786
2859
  thumb: "relative size-16 shrink-0 cursor-pointer overflow-hidden bg-(--elevated) p-0 opacity-70 transition-opacity select-none hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--accent)",
2787
2860
  thumbImage: "size-full object-cover",
2788
2861
  spinner: "pointer-events-none absolute inset-0 flex items-center justify-center"
2789
- }, Ta = /* @__PURE__ */ f({
2862
+ }, wa = /* @__PURE__ */ f({
2790
2863
  __name: "SImage",
2791
2864
  props: /*@__PURE__*/ g({
2792
2865
  src: { default: "" },
@@ -2829,22 +2902,22 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2829
2902
  "close"
2830
2903
  ], ["update:modelValue"]),
2831
2904
  setup(e, { expose: t, emit: l }) {
2832
- let u = F(e, "modelValue"), f = i(() => N(e.items) ?? []), p = i(() => N(e.groups) ?? []), m = cr(), h = sr(), g = E(!1), _ = l, C = E(Math.max(0, Math.trunc(e.initialIndex))), T = E(0), k = E("fit"), A = E(!1), M = E(0), P = w({
2905
+ let u = I(e, "modelValue"), f = i(() => P(e.items) ?? []), p = i(() => P(e.groups) ?? []), m = lr(), h = cr(), g = D(!1), _ = l, w = D(Math.max(0, Math.trunc(e.initialIndex))), E = D(0), A = D("fit"), j = D(!1), N = D(0), F = T({
2833
2906
  x: 1,
2834
2907
  y: 1
2835
- }), I = w({
2908
+ }), L = T({
2836
2909
  width: 0,
2837
2910
  height: 0
2838
- }), L = w({}), B = w({
2911
+ }), R = T({}), V = T({
2839
2912
  width: 0,
2840
2913
  height: 0
2841
- }), V = (e) => !Number.isFinite(e) || e <= 0 ? "" : e > 1022976 ? `${(e / 1024 / 1024).toFixed(1)}мб` : `${(e / 1024).toFixed(1)}кб`, ie = i(() => {
2842
- let e = Y.value;
2914
+ }), re = (e) => !Number.isFinite(e) || e <= 0 ? "" : e > 1022976 ? `${(e / 1024 / 1024).toFixed(1)}мб` : `${(e / 1024).toFixed(1)}кб`, ie = i(() => {
2915
+ let e = J.value;
2843
2916
  if (!e) return null;
2844
- let t = e.fileSize ?? e.size ?? L[e.src];
2917
+ let t = e.fileSize ?? e.size ?? R[e.src];
2845
2918
  return typeof t == "number" && t > 0 ? t : null;
2846
2919
  }), ae = async (e) => {
2847
- if (typeof window > "u" || !e || L[e] && L[e] > 0) return;
2920
+ if (typeof window > "u" || !e || R[e] && R[e] > 0) return;
2848
2921
  let t = (() => {
2849
2922
  try {
2850
2923
  return new URL(e, window.location.href).href;
@@ -2855,62 +2928,62 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2855
2928
  for (let n of [t, e]) {
2856
2929
  let t = performance.getEntriesByName(n, "resource").at(-1), r = t?.decodedBodySize || t?.encodedBodySize || 0;
2857
2930
  if (r > 0) {
2858
- L[e] = r;
2931
+ R[e] = r;
2859
2932
  return;
2860
2933
  }
2861
2934
  }
2862
2935
  try {
2863
2936
  let t = await fetch(e, { method: "HEAD" }), n = Number(t.headers.get("content-length"));
2864
2937
  if (Number.isFinite(n) && n > 0) {
2865
- L[e] = n;
2938
+ R[e] = n;
2866
2939
  return;
2867
2940
  }
2868
2941
  } catch {}
2869
2942
  try {
2870
2943
  let t = await fetch(e, { headers: { Range: "bytes=0-0" } }), n = t.headers.get("content-range")?.match(/\/(\d+)\s*$/), r = n ? Number(n[1]) : NaN;
2871
2944
  if (Number.isFinite(r) && r > 0) {
2872
- L[e] = r;
2945
+ R[e] = r;
2873
2946
  return;
2874
2947
  }
2875
2948
  let i = Number(t.headers.get("content-length"));
2876
2949
  if (Number.isFinite(i) && i > 0) {
2877
- L[e] = i;
2950
+ R[e] = i;
2878
2951
  return;
2879
2952
  }
2880
2953
  } catch {}
2881
- L[e] = 0;
2882
- }, H = w({
2954
+ R[e] = 0;
2955
+ }, H = T({
2883
2956
  startX: 0,
2884
2957
  startY: 0,
2885
2958
  left: 0,
2886
2959
  top: 0,
2887
2960
  tracking: !1
2888
- }), U = w({
2961
+ }), U = T({
2889
2962
  startX: 0,
2890
2963
  startY: 0,
2891
2964
  deltaX: 0,
2892
2965
  deltaY: 0,
2893
2966
  tracking: !1
2894
- }), W = w({
2967
+ }), W = T({
2895
2968
  active: !1,
2896
2969
  startDistance: 0,
2897
2970
  startScale: 1
2898
- }), oe = E(1), G = E(!1), K = E(null), q = E(null), se = E(null), ce = E(null), le = w({
2971
+ }), oe = D(1), G = D(!1), se = D(null), K = D(null), ce = D(null), le = D(null), q = T({
2899
2972
  left: !1,
2900
2973
  right: !1,
2901
2974
  top: !1,
2902
2975
  bottom: !1
2903
- }), J = w({
2976
+ }), ue = T({
2904
2977
  left: !1,
2905
2978
  right: !1,
2906
2979
  top: !1,
2907
2980
  bottom: !1
2908
- }), ue = w({
2981
+ }), de = T({
2909
2982
  left: !1,
2910
2983
  right: !1,
2911
2984
  top: !1,
2912
2985
  bottom: !1
2913
- }), de = E(""), fe = null, pe = null, me = (e) => {
2986
+ }), fe = D(""), pe = null, me = null, he = (e) => {
2914
2987
  let t = [];
2915
2988
  return (e ?? []).forEach((e, n) => {
2916
2989
  let r = String(e?.src ?? "").trim();
@@ -2923,10 +2996,10 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2923
2996
  thumbnailSrc: o || void 0
2924
2997
  });
2925
2998
  }), t;
2926
- }, he = i(() => {
2927
- let t = (p.value ?? []).map(me).filter((e) => e.length);
2999
+ }, ge = i(() => {
3000
+ let t = (p.value ?? []).map(he).filter((e) => e.length);
2928
3001
  if (t.length) return t;
2929
- let n = me(f.value ?? []);
3002
+ let n = he(f.value ?? []);
2930
3003
  if (n.length) return [n];
2931
3004
  let r = String(e.src ?? "").trim();
2932
3005
  return r ? [[{
@@ -2934,30 +3007,30 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2934
3007
  title: e.title || void 0,
2935
3008
  alt: String(e.alt ?? "").trim() || e.title || "Изображение"
2936
3009
  }]] : [];
2937
- }), ge = i(() => he.value[T.value] ?? []), _e = i(() => he.value.length), Y = i(() => ge.value[C.value] || null), ve = (e) => {
3010
+ }), _e = i(() => ge.value[E.value] ?? []), ve = i(() => ge.value.length), J = i(() => _e.value[w.value] || null), ye = (e) => {
2938
3011
  let t = (String(e.src ?? "").split("?")[0] || "").split("/").pop() || "", n = t;
2939
3012
  try {
2940
3013
  n = decodeURIComponent(t);
2941
3014
  } catch {}
2942
3015
  return n.replace(/\.[a-z0-9]+$/i, "");
2943
- }, ye = i(() => {
3016
+ }, be = i(() => {
2944
3017
  let e = m.value.match(/\/g\/([^/]+)\/([^/]+)$/);
2945
3018
  return !e?.[1] || !e[2] ? null : {
2946
3019
  name: decodeURIComponent(e[1]),
2947
3020
  image: decodeURIComponent(e[2])
2948
3021
  };
2949
- }), be = i(() => {
2950
- if (!e.routeSync || !ge.value.length || !ye.value || ye.value.name !== e.galleryName.trim()) return null;
2951
- let t = ge.value.findIndex((e) => ve(e) === ye.value?.image);
3022
+ }), xe = i(() => {
3023
+ if (!e.routeSync || !_e.value.length || !be.value || be.value.name !== e.galleryName.trim()) return null;
3024
+ let t = _e.value.findIndex((e) => ye(e) === be.value?.image);
2952
3025
  return t >= 0 ? t : null;
2953
- }), xe = i(() => !(!u.value && be.value === null || !Y.value?.src)), Se = i(() => {
2954
- let e = Y.value;
2955
- return e ? k.value === "original" || B.width >= 532 && B.height >= 532 ? e.src : e.thumbnailSrc || e.src : "";
2956
- }), Ce = async (t) => {
3026
+ }), Se = i(() => !(!u.value && xe.value === null || !J.value?.src)), Ce = i(() => {
3027
+ let e = J.value;
3028
+ return e ? A.value === "original" || V.width >= 532 && V.height >= 532 ? e.src : e.thumbnailSrc || e.src : "";
3029
+ }), we = async (t) => {
2957
3030
  if (!e.routeSync || typeof window > "u") return;
2958
3031
  let n = e.galleryName.trim();
2959
3032
  if (!n) return;
2960
- let r = t === null ? null : ge.value[t], i = r ? ve(r) : null, a = m.value.replace(/\/g\/[^/]+\/[^/]+$/, ""), o = i ? `${a}/g/${encodeURIComponent(n)}/${encodeURIComponent(i)}` : a;
3033
+ let r = t === null ? null : _e.value[t], i = r ? ye(r) : null, a = m.value.replace(/\/g\/[^/]+\/[^/]+$/, ""), o = i ? `${a}/g/${encodeURIComponent(n)}/${encodeURIComponent(i)}` : a;
2961
3034
  if (h && m.value !== o) {
2962
3035
  g.value = !0;
2963
3036
  try {
@@ -2966,33 +3039,33 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
2966
3039
  g.value = !1;
2967
3040
  }
2968
3041
  }
2969
- }, we = i(() => ge.value.length > 1), Te = i(() => Y.value?.title || e.title), Ee = i(() => I.width > 0 && I.height > 0), De = i(() => Math.abs(M.value) / 90 % 2 == 1), Oe = i(() => ({
2970
- width: De.value ? I.height : I.width,
2971
- height: De.value ? I.width : I.height
2972
- })), ke = i(() => !Oe.value.width || !Oe.value.height || !B.width || !B.height ? 1 : Math.min(1, Math.max(0, B.width - 20) / Oe.value.width, Math.max(0, B.height - 20) / Oe.value.height)), Ae = i(() => k.value === "fit" ? ke.value : oe.value), je = i(() => !!(A.value && Oe.value.width && Oe.value.height && B.width && B.height && (Oe.value.width > B.width - 20 || Oe.value.height > B.height - 20))), Me = i(() => k.value === "original" && je.value), Ne = i(() => !Me.value), Pe = i(() => U.tracking && U.deltaX ? { transform: `translate3d(${U.deltaX}px, 0, 0)` } : void 0), Fe = i(() => A.value ? `${Math.round(Ae.value * 100)}%` : "…"), Ie = i(() => {
2973
- if (!Ee.value) return "";
2974
- let e = [`${I.width}x${I.height}`], t = ie.value;
3042
+ }, Te = i(() => _e.value.length > 1), Ee = i(() => J.value?.title || e.title), De = i(() => L.width > 0 && L.height > 0), Oe = i(() => Math.abs(N.value) / 90 % 2 == 1), ke = i(() => ({
3043
+ width: Oe.value ? L.height : L.width,
3044
+ height: Oe.value ? L.width : L.height
3045
+ })), Ae = i(() => !ke.value.width || !ke.value.height || !V.width || !V.height ? 1 : Math.min(1, Math.max(0, V.width - 20) / ke.value.width, Math.max(0, V.height - 20) / ke.value.height)), je = i(() => A.value === "fit" ? Ae.value : oe.value), Me = i(() => !!(j.value && ke.value.width && ke.value.height && V.width && V.height && (ke.value.width > V.width - 20 || ke.value.height > V.height - 20))), Ne = i(() => A.value === "original" && Me.value), Pe = i(() => !Ne.value), Fe = i(() => U.tracking && U.deltaX ? { transform: `translate3d(${U.deltaX}px, 0, 0)` } : void 0), Ie = i(() => j.value ? `${Math.round(je.value * 100)}%` : "…"), Le = i(() => {
3046
+ if (!De.value) return "";
3047
+ let e = [`${L.width}x${L.height}`], t = ie.value;
2975
3048
  if (t) {
2976
- let n = V(t);
3049
+ let n = re(t);
2977
3050
  n && e.push(n);
2978
3051
  }
2979
3052
  return e.join(" ");
2980
- }), Le = i(() => Ee.value ? {
2981
- width: `${Math.max(1, Math.round(Oe.value.width * Ae.value))}px`,
2982
- height: `${Math.max(1, Math.round(Oe.value.height * Ae.value))}px`,
3053
+ }), Re = i(() => De.value ? {
3054
+ width: `${Math.max(1, Math.round(ke.value.width * je.value))}px`,
3055
+ height: `${Math.max(1, Math.round(ke.value.height * je.value))}px`,
2983
3056
  flex: "0 0 auto"
2984
3057
  } : {
2985
3058
  width: "100%",
2986
3059
  height: "100%"
2987
- }), Re = i(() => Ee.value ? {
3060
+ }), ze = i(() => De.value ? {
2988
3061
  position: "absolute",
2989
3062
  left: "50%",
2990
3063
  top: "50%",
2991
- width: `${Math.max(1, Math.round(I.width * Ae.value))}px`,
2992
- height: `${Math.max(1, Math.round(I.height * Ae.value))}px`,
3064
+ width: `${Math.max(1, Math.round(L.width * je.value))}px`,
3065
+ height: `${Math.max(1, Math.round(L.height * je.value))}px`,
2993
3066
  maxWidth: "none",
2994
3067
  maxHeight: "none",
2995
- transform: `translate(-50%, -50%) rotate(${M.value}deg) scale(${P.x}, ${P.y})`,
3068
+ transform: `translate(-50%, -50%) rotate(${N.value}deg) scale(${F.x}, ${F.y})`,
2996
3069
  transformOrigin: "center center"
2997
3070
  } : {
2998
3071
  position: "absolute",
@@ -3000,395 +3073,395 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3000
3073
  width: "100%",
3001
3074
  height: "100%",
3002
3075
  objectFit: "contain"
3003
- }), ze = (e) => {
3076
+ }), Be = (e) => {
3004
3077
  let t = e % 360;
3005
3078
  return t < 0 ? t + 360 : t;
3006
- }, Be = () => {
3007
- let e = q.value;
3008
- e && (B.width = e.clientWidth, B.height = e.clientHeight);
3009
- }, Ve = (e) => {
3079
+ }, Ve = () => {
3080
+ let e = K.value;
3081
+ e && (V.width = e.clientWidth, V.height = e.clientHeight);
3082
+ }, He = (e) => {
3010
3083
  e.left = !1, e.right = !1, e.top = !1, e.bottom = !1;
3011
- }, He = (e, t, n) => {
3012
- if (!e) return Ve(t);
3084
+ }, Ue = (e, t, n) => {
3085
+ if (!e) return He(t);
3013
3086
  let r = n === "x" || n === "both", i = n === "y" || n === "both";
3014
3087
  t.left = r && e.scrollLeft > 2, t.right = r && e.scrollLeft < Math.max(0, e.scrollWidth - e.clientWidth) - 2, t.top = i && e.scrollTop > 2, t.bottom = i && e.scrollTop < Math.max(0, e.scrollHeight - e.clientHeight) - 2;
3015
- }, Ue = () => {
3016
- He(se.value, le, "x"), He(q.value, J, "both"), He(ce.value, ue, "x");
3017
3088
  }, We = () => {
3018
- typeof window < "u" && (fe?.disconnect(), q.value && fe?.observe(q.value), Be());
3089
+ Ue(ce.value, q, "x"), Ue(K.value, ue, "both"), Ue(le.value, de, "x");
3019
3090
  }, Ge = () => {
3020
- let e = K.value;
3021
- e?.complete && e.naturalWidth && (I.width = e.naturalWidth, I.height = e.naturalHeight, A.value = !0, Be());
3091
+ typeof window < "u" && (pe?.disconnect(), K.value && pe?.observe(K.value), Ve());
3022
3092
  }, Ke = () => {
3023
3093
  let e = se.value;
3024
- if (!e || !we.value) return;
3025
- let t = e.querySelector(`[data-thumb-index="${C.value}"]`);
3094
+ e?.complete && e.naturalWidth && (L.width = e.naturalWidth, L.height = e.naturalHeight, j.value = !0, Ve());
3095
+ }, qe = () => {
3096
+ let e = ce.value;
3097
+ if (!e || !Te.value) return;
3098
+ let t = e.querySelector(`[data-thumb-index="${w.value}"]`);
3026
3099
  t && e.scrollTo({
3027
3100
  left: Math.max(0, t.offsetLeft - Math.max(0, (e.clientWidth - t.offsetWidth) / 2)),
3028
3101
  behavior: "smooth"
3029
3102
  });
3030
- }, qe = () => {
3031
- let e = q.value;
3032
- e && k.value === "original" && (e.scrollLeft = Math.max(0, Math.round((e.scrollWidth - e.clientWidth) / 2)), e.scrollTop = Math.max(0, Math.round((e.scrollHeight - e.clientHeight) / 2)));
3033
- }, Je = (e) => {
3034
- let t = ge.value.length;
3035
- if (!t) return;
3036
- let n = (Math.trunc(e) % t + t) % t;
3037
- n !== C.value && (C.value = n, _("change", n), u.value && Ce(n));
3103
+ }, Je = () => {
3104
+ let e = K.value;
3105
+ e && A.value === "original" && (e.scrollLeft = Math.max(0, Math.round((e.scrollWidth - e.clientWidth) / 2)), e.scrollTop = Math.max(0, Math.round((e.scrollHeight - e.clientHeight) / 2)));
3038
3106
  }, Ye = (e) => {
3039
- let t = ge.value.length;
3107
+ let t = _e.value.length;
3040
3108
  if (!t) return;
3041
3109
  let n = (Math.trunc(e) % t + t) % t;
3042
- C.value = n, _("change", n), u.value && Ce(n);
3110
+ n !== w.value && (w.value = n, _("change", n), u.value && we(n));
3043
3111
  }, Xe = (e) => {
3044
- ge.value.length && (typeof e == "number" && Je(e), u.value = !0, Ce(C.value));
3045
- }, Ze = () => {
3046
- u.value = !1, Ce(null);
3112
+ let t = _e.value.length;
3113
+ if (!t) return;
3114
+ let n = (Math.trunc(e) % t + t) % t;
3115
+ w.value = n, _("change", n), u.value && we(n);
3116
+ }, Ze = (e) => {
3117
+ _e.value.length && (typeof e == "number" && Ye(e), u.value = !0, we(w.value));
3047
3118
  }, Qe = () => {
3048
- we.value && Je(C.value - 1);
3119
+ u.value = !1, we(null);
3049
3120
  }, $e = () => {
3050
- we.value && Je(C.value + 1);
3051
- }, et = (e) => {
3052
- let t = _e.value;
3053
- t > 1 && (T.value = ((T.value + e) % t + t) % t, C.value = 0, tt(), _("change", 0), _("group-change", T.value)), _(e > 0 ? "group-next" : "group-previous");
3054
- }, tt = () => {
3055
- k.value = "fit", M.value = 0, P.x = 1, P.y = 1, oe.value = 1, W.active = !1;
3121
+ Te.value && Ye(w.value - 1);
3122
+ }, et = () => {
3123
+ Te.value && Ye(w.value + 1);
3124
+ }, tt = (e) => {
3125
+ let t = ve.value;
3126
+ t > 1 && (E.value = ((E.value + e) % t + t) % t, w.value = 0, nt(), _("change", 0), _("group-change", E.value)), _(e > 0 ? "group-next" : "group-previous");
3056
3127
  }, nt = () => {
3057
- je.value && (k.value === "original" && (oe.value = 1), k.value = k.value === "fit" ? "original" : "fit", v(() => k.value === "original" ? qe() : q.value?.scrollTo({
3128
+ A.value = "fit", N.value = 0, F.x = 1, F.y = 1, oe.value = 1, W.active = !1;
3129
+ }, rt = () => {
3130
+ Me.value && (A.value === "original" && (oe.value = 1), A.value = A.value === "fit" ? "original" : "fit", v(() => A.value === "original" ? Je() : K.value?.scrollTo({
3058
3131
  top: 0,
3059
3132
  left: 0
3060
3133
  })));
3061
- }, rt = (e) => {
3062
- M.value = ze(M.value + e), v(qe);
3063
3134
  }, it = (e) => {
3064
- P[e] *= -1;
3135
+ N.value = Be(N.value + e), v(Je);
3065
3136
  }, at = (e) => {
3137
+ F[e] *= -1;
3138
+ }, ot = (e) => {
3066
3139
  let t = e.target;
3067
- t && (I.width = t.naturalWidth || 0, I.height = t.naturalHeight || 0, A.value = !0, k.value = "fit", Be(), Ke());
3068
- }, ot = () => {
3069
- typeof window < "u" && (window.removeEventListener("mousemove", st), window.removeEventListener("mouseup", ct)), H.tracking = !1;
3070
- }, st = (e) => {
3071
- let t = q.value;
3072
- if (!H.tracking || !t || k.value !== "original" || !(e.buttons & 1)) return ot();
3140
+ t && (L.width = t.naturalWidth || 0, L.height = t.naturalHeight || 0, j.value = !0, A.value = "fit", Ve(), qe());
3141
+ }, st = () => {
3142
+ typeof window < "u" && (window.removeEventListener("mousemove", ct), window.removeEventListener("mouseup", lt)), H.tracking = !1;
3143
+ }, ct = (e) => {
3144
+ let t = K.value;
3145
+ if (!H.tracking || !t || A.value !== "original" || !(e.buttons & 1)) return st();
3073
3146
  let n = e.clientX - H.startX, r = e.clientY - H.startY;
3074
3147
  !G.value && Math.abs(n) + Math.abs(r) > 4 && (G.value = !0, e.preventDefault()), t.scrollLeft = H.left - n, t.scrollTop = H.top - r;
3075
- }, ct = () => {
3148
+ }, lt = () => {
3076
3149
  let e = G.value;
3077
- ot(), e && typeof window < "u" && (pe !== null && window.clearTimeout(pe), pe = window.setTimeout(() => {
3078
- G.value = !1, pe = null;
3150
+ st(), e && typeof window < "u" && (me !== null && window.clearTimeout(me), me = window.setTimeout(() => {
3151
+ G.value = !1, me = null;
3079
3152
  }, 0));
3080
- }, lt = (e) => {
3081
- let t = q.value;
3082
- k.value === "original" && je.value && t && e.button === 0 && (H.startX = e.clientX, H.startY = e.clientY, H.left = t.scrollLeft, H.top = t.scrollTop, H.tracking = !0, typeof window < "u" && (window.addEventListener("mousemove", st), window.addEventListener("mouseup", ct)));
3083
- }, ut = () => {
3084
- G.value || nt();
3085
- }, dt = (e) => {
3153
+ }, ut = (e) => {
3154
+ let t = K.value;
3155
+ A.value === "original" && Me.value && t && e.button === 0 && (H.startX = e.clientX, H.startY = e.clientY, H.left = t.scrollLeft, H.top = t.scrollTop, H.tracking = !0, typeof window < "u" && (window.addEventListener("mousemove", ct), window.addEventListener("mouseup", lt)));
3156
+ }, dt = () => {
3157
+ G.value || rt();
3158
+ }, ft = (e) => {
3086
3159
  let t = e[0], n = e[1];
3087
3160
  return !t || !n ? 0 : Math.hypot(n.clientX - t.clientX, n.clientY - t.clientY);
3088
- }, ft = () => {
3161
+ }, pt = () => {
3089
3162
  U.startX = 0, U.startY = 0, U.deltaX = 0, U.deltaY = 0, U.tracking = !1, W.active = !1;
3090
- }, pt = (e) => {
3163
+ }, mt = (e) => {
3091
3164
  if (e.touches.length >= 2) {
3092
- if (ft(), k.value !== "original" || !je.value) return;
3093
- W.active = !0, W.startDistance = dt(e.touches), W.startScale = oe.value;
3165
+ if (pt(), A.value !== "original" || !Me.value) return;
3166
+ W.active = !0, W.startDistance = ft(e.touches), W.startScale = oe.value;
3094
3167
  return;
3095
3168
  }
3096
3169
  let t = e.touches[0];
3097
- if (!t || !Ne.value) return ft();
3170
+ if (!t || !Pe.value) return pt();
3098
3171
  U.startX = t.clientX, U.startY = t.clientY, U.deltaX = 0, U.deltaY = 0, U.tracking = !0;
3099
- }, mt = (e) => {
3172
+ }, ht = (e) => {
3100
3173
  if (W.active) {
3101
3174
  if (e.touches.length < 2 || !W.startDistance) return;
3102
- let t = dt(e.touches);
3175
+ let t = ft(e.touches);
3103
3176
  oe.value = Math.min(4, Math.max(1, W.startScale * t / W.startDistance)), e.cancelable && e.preventDefault();
3104
3177
  return;
3105
3178
  }
3106
- if (Me.value) return;
3179
+ if (Ne.value) return;
3107
3180
  let t = e.touches[0];
3108
- t && U.tracking && Ne.value && (U.deltaX = t.clientX - U.startX, U.deltaY = t.clientY - U.startY, Math.abs(U.deltaX) > Math.abs(U.deltaY) && Math.abs(U.deltaX) > 12 && e.cancelable && e.preventDefault());
3109
- }, ht = () => {
3181
+ t && U.tracking && Pe.value && (U.deltaX = t.clientX - U.startX, U.deltaY = t.clientY - U.startY, Math.abs(U.deltaX) > Math.abs(U.deltaY) && Math.abs(U.deltaX) > 12 && e.cancelable && e.preventDefault());
3182
+ }, gt = () => {
3110
3183
  if (W.active) {
3111
3184
  W.active = !1, oe.value <= 1.02 && (oe.value = 1);
3112
3185
  return;
3113
3186
  }
3114
- if (!U.tracking || !Ne.value) return ft();
3115
- let e = Math.abs(U.deltaX) > Math.abs(U.deltaY), t = we.value && e && Math.abs(U.deltaX) >= 56, n = !e && Math.abs(U.deltaY) >= 56, r = U.deltaX < 0 ? 1 : -1, i = U.deltaY < 0 ? 1 : -1;
3116
- ft(), n ? et(i) : t && (r > 0 ? $e() : Qe());
3117
- }, gt = (e) => {
3187
+ if (!U.tracking || !Pe.value) return pt();
3188
+ let e = Math.abs(U.deltaX) > Math.abs(U.deltaY), t = Te.value && e && Math.abs(U.deltaX) >= 56, n = !e && Math.abs(U.deltaY) >= 56, r = U.deltaX < 0 ? 1 : -1, i = U.deltaY < 0 ? 1 : -1;
3189
+ pt(), n ? tt(i) : t && (r > 0 ? et() : $e());
3190
+ }, _t = (e) => {
3118
3191
  if (G.value) return;
3119
3192
  let t = e.target;
3120
- t && (t.closest("img, button, a, [data-no-close]") || Ze());
3121
- }, _t = (e) => {
3193
+ t && (t.closest("img, button, a, [data-no-close]") || Qe());
3194
+ }, vt = (e) => {
3122
3195
  if (u.value) {
3123
- if (e.key === "Escape") return Ze();
3124
- if (e.key === "ArrowLeft") return Qe();
3125
- if (e.key === "ArrowRight") return $e();
3126
- if (e.key === "ArrowUp") return et(-1);
3127
- if (e.key === "ArrowDown") return et(1);
3196
+ if (e.key === "Escape") return Qe();
3197
+ if (e.key === "ArrowLeft") return $e();
3198
+ if (e.key === "ArrowRight") return et();
3199
+ if (e.key === "ArrowUp") return tt(-1);
3200
+ if (e.key === "ArrowDown") return tt(1);
3128
3201
  }
3129
3202
  };
3130
- R(u, async (e) => {
3131
- typeof window < "u" && (e ? (de.value = document.body.style.overflow, document.body.style.overflow = "hidden", _("open"), await v(), We(), vt(), Ue(), Ge(), Ke(), Ce(C.value)) : (document.body.style.overflow = de.value, ot(), ft(), tt(), Ce(null), _("close")));
3132
- }), R(be, (t) => {
3203
+ z(u, async (e) => {
3204
+ typeof window < "u" && (e ? (fe.value = document.body.style.overflow, document.body.style.overflow = "hidden", _("open"), await v(), Ge(), yt(), We(), Ke(), qe(), we(w.value)) : (document.body.style.overflow = fe.value, st(), pt(), nt(), we(null), _("close")));
3205
+ }), z(xe, (t) => {
3133
3206
  if (!g.value) {
3134
3207
  if (t === null) {
3135
3208
  if (e.groupSwitching) return;
3136
- if (u.value && ge.value.length > 0) {
3137
- Ce(C.value);
3209
+ if (u.value && _e.value.length > 0) {
3210
+ we(w.value);
3138
3211
  return;
3139
3212
  }
3140
3213
  u.value &&= !1;
3141
- } else C.value !== t && (C.value = t), u.value ||= !0, Ce(t);
3214
+ } else w.value !== t && (w.value = t), u.value ||= !0, we(t);
3142
3215
  }
3143
- }, { immediate: !0 }), R(() => Y.value?.src, (e) => {
3144
- A.value = !1, tt(), e && ae(e), v(() => {
3145
- Ge(), Ke(), Ue();
3216
+ }, { immediate: !0 }), z(() => J.value?.src, (e) => {
3217
+ j.value = !1, nt(), e && ae(e), v(() => {
3218
+ Ke(), qe(), We();
3146
3219
  });
3147
- }), R(Se, (e) => {
3148
- e && (A.value = !1, v(() => {
3149
- Ge(), Ue();
3220
+ }), z(Ce, (e) => {
3221
+ e && (j.value = !1, v(() => {
3222
+ Ke(), We();
3150
3223
  }));
3151
- }), R(Ie, () => v(Ue)), R(() => ge.value, (e) => {
3152
- e.length ? C.value >= e.length && (C.value = 0) : u.value && Ze();
3153
- }), R(_e, (e) => {
3154
- T.value > e - 1 && (T.value = Math.max(0, e - 1));
3155
- }), R(() => e.initialIndex, (e) => {
3156
- u.value || (C.value = Math.max(0, Math.trunc(e)));
3157
- }), ee(() => {
3158
- typeof window < "u" && (window.addEventListener("keydown", _t), fe = new ResizeObserver(() => {
3159
- Be(), Ue();
3160
- }), u.value && We(), Ue(), Ge(), Y.value?.src && ae(Y.value.src), v(() => {
3161
- Ge(), Ke();
3224
+ }), z(Le, () => v(We)), z(() => _e.value, (e) => {
3225
+ e.length ? w.value >= e.length && (w.value = 0) : u.value && Qe();
3226
+ }), z(ve, (e) => {
3227
+ E.value > e - 1 && (E.value = Math.max(0, e - 1));
3228
+ }), z(() => e.initialIndex, (e) => {
3229
+ u.value || (w.value = Math.max(0, Math.trunc(e)));
3230
+ }), S(() => {
3231
+ typeof window < "u" && (window.addEventListener("keydown", vt), pe = new ResizeObserver(() => {
3232
+ Ve(), We();
3233
+ }), u.value && Ge(), We(), Ke(), J.value?.src && ae(J.value.src), v(() => {
3234
+ Ke(), qe();
3162
3235
  }));
3163
3236
  });
3164
- let vt = () => {
3237
+ let yt = () => {
3165
3238
  typeof window < "u" && [
3166
- se.value,
3167
- q.value,
3168
- ce.value
3239
+ ce.value,
3240
+ K.value,
3241
+ le.value
3169
3242
  ].forEach((e) => {
3170
- e && e.addEventListener("scroll", Ue, { passive: !0 });
3243
+ e && e.addEventListener("scroll", We, { passive: !0 });
3171
3244
  });
3172
3245
  };
3173
3246
  return x(() => {
3174
- typeof window < "u" && (window.removeEventListener("keydown", _t), fe?.disconnect(), ot(), ft(), pe !== null && window.clearTimeout(pe), u.value && (document.body.style.overflow = de.value));
3247
+ typeof window < "u" && (window.removeEventListener("keydown", vt), pe?.disconnect(), st(), pt(), me !== null && window.clearTimeout(me), u.value && (document.body.style.overflow = fe.value));
3175
3248
  }), t({
3176
- open: Xe,
3177
- close: Ze,
3178
- goTo: Ye
3179
- }), (t, i) => (S(), s(n, null, [e.trigger && N(Y) ? (S(), s("button", {
3249
+ open: Ze,
3250
+ close: Qe,
3251
+ goTo: Xe
3252
+ }), (t, i) => (C(), s(n, null, [e.trigger && P(J) ? (C(), s("button", {
3180
3253
  key: 0,
3181
3254
  type: "button",
3182
3255
  class: y(Q.trigger),
3183
- "aria-label": `${e.triggerLabel}: ${N(Y).alt || ""}`,
3184
- onClick: i[0] ||= (e) => Xe()
3256
+ "aria-label": `${e.triggerLabel}: ${P(J).alt || ""}`,
3257
+ onClick: i[0] ||= (e) => Ze()
3185
3258
  }, [
3186
3259
  c("img", {
3187
- src: N(Y).thumbnailSrc || N(Y).src,
3188
- alt: N(Y).alt,
3260
+ src: P(J).thumbnailSrc || P(J).src,
3261
+ alt: P(J).alt,
3189
3262
  class: y(Q.triggerImage),
3190
3263
  loading: "lazy",
3191
3264
  decoding: "async"
3192
- }, null, 10, va),
3265
+ }, null, 10, _a),
3193
3266
  c("span", {
3194
3267
  class: y(Q.badge),
3195
3268
  "aria-hidden": "true"
3196
- }, [d(X, {
3269
+ }, [d(Y, {
3197
3270
  name: "expand",
3198
3271
  class: "size-4"
3199
3272
  })], 2),
3200
- c("span", { class: y(Q.triggerLabel) }, [d(X, {
3273
+ c("span", { class: y(Q.triggerLabel) }, [d(Y, {
3201
3274
  name: "expand",
3202
3275
  class: "size-4"
3203
- }), c("span", ya, j(e.triggerLabel), 1)], 2)
3204
- ], 10, _a)) : o("", !0), N(xe) ? (S(), a(r, {
3276
+ }), c("span", va, M(e.triggerLabel), 1)], 2)
3277
+ ], 10, ga)) : o("", !0), P(Se) ? (C(), a(r, {
3205
3278
  key: 1,
3206
3279
  to: "body"
3207
3280
  }, [c("div", {
3208
3281
  class: y(Q.overlay),
3209
3282
  role: "dialog",
3210
3283
  "aria-modal": "true",
3211
- "aria-label": N(Te) || N(Y)?.alt || "Изображение"
3284
+ "aria-label": P(Ee) || P(J)?.alt || "Изображение"
3212
3285
  }, [
3213
- d(Rr, {
3214
- active: N(ue),
3286
+ d(Lr, {
3287
+ active: P(de),
3215
3288
  axis: "x",
3216
3289
  class: "shrink-0"
3217
3290
  }, {
3218
- default: z(() => [c("div", {
3291
+ default: B(() => [c("div", {
3219
3292
  ref_key: "toolbarRef",
3220
- ref: ce,
3293
+ ref: le,
3221
3294
  class: y(Q.toolbar)
3222
3295
  }, [
3223
3296
  i[7] ||= c("div", { class: "flex-1" }, null, -1),
3224
- N(Te) ? (S(), s("span", {
3297
+ P(Ee) ? (C(), s("span", {
3225
3298
  key: 0,
3226
3299
  class: y([Q.meta, "hidden max-w-40 truncate sm:block"])
3227
- }, j(N(Te)), 3)) : o("", !0),
3228
- N(_e) > 1 ? (S(), s("span", {
3300
+ }, M(P(Ee)), 3)) : o("", !0),
3301
+ P(ve) > 1 ? (C(), s("span", {
3229
3302
  key: 1,
3230
3303
  class: y(Q.meta)
3231
- }, j(N(T) + 1) + " / " + j(N(_e)), 3)) : o("", !0),
3232
- N(Ie) ? (S(), s("span", {
3304
+ }, M(P(E) + 1) + " / " + M(P(ve)), 3)) : o("", !0),
3305
+ P(Le) ? (C(), s("span", {
3233
3306
  key: 2,
3234
3307
  class: y(Q.meta)
3235
- }, j(N(Ie)), 3)) : o("", !0),
3236
- c("span", { class: y(Q.meta) }, j(N(Fe)), 3),
3237
- O(t.$slots, "toolbar-start", {
3238
- index: N(C),
3239
- item: N(Y)
3308
+ }, M(P(Le)), 3)) : o("", !0),
3309
+ c("span", { class: y(Q.meta) }, M(P(Ie)), 3),
3310
+ k(t.$slots, "toolbar-start", {
3311
+ index: P(w),
3312
+ item: P(J)
3240
3313
  }),
3241
3314
  c("button", {
3242
3315
  type: "button",
3243
3316
  class: y(Q.closeButton),
3244
3317
  "aria-label": "Закрыть",
3245
- onClick: Ze
3246
- }, [d(X, {
3318
+ onClick: Qe
3319
+ }, [d(Y, {
3247
3320
  name: "close",
3248
3321
  class: "size-4"
3249
3322
  }), i[6] ||= c("span", { class: "hidden sm:inline" }, "Закрыть", -1)], 2)
3250
3323
  ], 2)]),
3251
3324
  _: 3
3252
3325
  }, 8, ["active"]),
3253
- c("div", xa, [
3254
- d(Rr, {
3255
- active: N(J),
3326
+ c("div", ba, [
3327
+ d(Lr, {
3328
+ active: P(ue),
3256
3329
  axis: "both",
3257
3330
  class: "h-full"
3258
3331
  }, {
3259
- default: z(() => [c("div", {
3332
+ default: B(() => [c("div", {
3260
3333
  ref_key: "stageRef",
3261
- ref: q,
3334
+ ref: K,
3262
3335
  class: y([
3263
3336
  Q.stage,
3264
3337
  "ui-image-grid",
3265
- N(k) === "original" ? "touch-pan-x touch-pan-y overflow-auto select-none" : "touch-pan-y overflow-hidden"
3338
+ P(A) === "original" ? "touch-pan-x touch-pan-y overflow-auto select-none" : "touch-pan-y overflow-hidden"
3266
3339
  ]),
3267
- onClick: gt,
3268
- onMousedown: lt,
3269
- onTouchstart: pt,
3270
- onTouchmove: mt,
3271
- onTouchend: ht,
3272
- onTouchcancel: ft
3340
+ onClick: _t,
3341
+ onMousedown: ut,
3342
+ onTouchstart: mt,
3343
+ onTouchmove: ht,
3344
+ onTouchend: gt,
3345
+ onTouchcancel: pt
3273
3346
  }, [c("div", {
3274
- class: y([N(k) === "original" ? Q.originalWrapper : Q.fitWrapper, "relative z-1"]),
3275
- style: b(N(Pe)),
3276
- onClick: gt
3347
+ class: y([P(A) === "original" ? Q.originalWrapper : Q.fitWrapper, "relative z-1"]),
3348
+ style: b(P(Fe)),
3349
+ onClick: _t
3277
3350
  }, [c("div", {
3278
- style: b(N(Le)),
3351
+ style: b(P(Re)),
3279
3352
  class: "relative shrink-0"
3280
- }, [N(Y) ? ne((S(), s("img", {
3353
+ }, [P(J) ? te((C(), s("img", {
3281
3354
  ref_key: "imageRef",
3282
- ref: K,
3283
- key: N(Y).src,
3284
- src: N(Se),
3285
- alt: N(Y).alt,
3286
- style: b(N(Re)),
3355
+ ref: se,
3356
+ key: P(J).src,
3357
+ src: P(Ce),
3358
+ alt: P(J).alt,
3359
+ style: b(P(ze)),
3287
3360
  class: y([
3288
3361
  "block select-none",
3289
- N(k) === "original" ? N(Me) ? N(H).tracking ? "cursor-grabbing" : "cursor-grab" : "cursor-zoom-out" : N(je) ? "cursor-zoom-in" : "cursor-default",
3290
- N(H).tracking ? "cursor-grabbing" : ""
3362
+ P(A) === "original" ? P(Ne) ? P(H).tracking ? "cursor-grabbing" : "cursor-grab" : "cursor-zoom-out" : P(Me) ? "cursor-zoom-in" : "cursor-default",
3363
+ P(H).tracking ? "cursor-grabbing" : ""
3291
3364
  ]),
3292
3365
  decoding: "async",
3293
3366
  draggable: "false",
3294
- onDragstart: i[1] ||= re(() => {}, ["prevent"]),
3295
- onLoad: at,
3296
- onClick: ut
3297
- }, null, 46, Sa)), [[te, N(A)]]) : o("", !0)], 4), N(A) ? o("", !0) : (S(), s("div", {
3367
+ onDragstart: i[1] ||= ne(() => {}, ["prevent"]),
3368
+ onLoad: ot,
3369
+ onClick: dt
3370
+ }, null, 46, xa)), [[ee, P(j)]]) : o("", !0)], 4), P(j) ? o("", !0) : (C(), s("div", {
3298
3371
  key: 0,
3299
3372
  class: y(Q.spinner)
3300
- }, [d(ti)], 2))], 6)], 34)]),
3373
+ }, [d(ei)], 2))], 6)], 34)]),
3301
3374
  _: 1
3302
3375
  }, 8, ["active"]),
3303
- N(we) ? (S(), s("button", {
3376
+ P(Te) ? (C(), s("button", {
3304
3377
  key: 0,
3305
3378
  type: "button",
3306
3379
  class: y([Q.nav, "left-0"]),
3307
3380
  "aria-label": "Предыдущее изображение",
3308
- onClick: Qe
3309
- }, [d(X, {
3381
+ onClick: $e
3382
+ }, [d(Y, {
3310
3383
  name: "chevron",
3311
3384
  class: "size-6 rotate-180"
3312
3385
  })], 2)) : o("", !0),
3313
- N(we) ? (S(), s("button", {
3386
+ P(Te) ? (C(), s("button", {
3314
3387
  key: 1,
3315
3388
  type: "button",
3316
3389
  class: y([Q.nav, "right-0"]),
3317
3390
  "aria-label": "Следующее изображение",
3318
- onClick: $e
3319
- }, [d(X, {
3391
+ onClick: et
3392
+ }, [d(Y, {
3320
3393
  name: "chevron",
3321
3394
  class: "size-6"
3322
3395
  })], 2)) : o("", !0)
3323
3396
  ]),
3324
3397
  c("div", { class: y(Q.bottom) }, [c("div", { class: y(Q.tools) }, [
3325
- d(mr, { tooltip: "Отразить горизонтально" }, {
3326
- default: z(() => [c("button", {
3398
+ d(X, { tooltip: "Отразить горизонтально" }, {
3399
+ default: B(() => [c("button", {
3327
3400
  type: "button",
3328
3401
  class: y(Q.iconButton),
3329
3402
  "aria-label": "Отразить горизонтально",
3330
- onClick: i[2] ||= (e) => it("x")
3331
- }, [d(X, {
3403
+ onClick: i[2] ||= (e) => at("x")
3404
+ }, [d(Y, {
3332
3405
  name: "flip-x",
3333
3406
  class: "size-4"
3334
3407
  })], 2)]),
3335
3408
  _: 1
3336
3409
  }),
3337
- d(mr, { tooltip: "Отразить вертикально" }, {
3338
- default: z(() => [c("button", {
3410
+ d(X, { tooltip: "Отразить вертикально" }, {
3411
+ default: B(() => [c("button", {
3339
3412
  type: "button",
3340
3413
  class: y(Q.iconButton),
3341
3414
  "aria-label": "Отразить вертикально",
3342
- onClick: i[3] ||= (e) => it("y")
3343
- }, [d(X, {
3415
+ onClick: i[3] ||= (e) => at("y")
3416
+ }, [d(Y, {
3344
3417
  name: "flip-y",
3345
3418
  class: "size-4"
3346
3419
  })], 2)]),
3347
3420
  _: 1
3348
3421
  }),
3349
- d(mr, { tooltip: "Повернуть влево" }, {
3350
- default: z(() => [c("button", {
3422
+ d(X, { tooltip: "Повернуть влево" }, {
3423
+ default: B(() => [c("button", {
3351
3424
  type: "button",
3352
3425
  class: y(Q.iconButton),
3353
3426
  "aria-label": "Повернуть влево",
3354
- onClick: i[4] ||= (e) => rt(-90)
3355
- }, [d(X, {
3427
+ onClick: i[4] ||= (e) => it(-90)
3428
+ }, [d(Y, {
3356
3429
  name: "rotate-left",
3357
3430
  class: "size-4"
3358
3431
  })], 2)]),
3359
3432
  _: 1
3360
3433
  }),
3361
- d(mr, { tooltip: "Повернуть вправо" }, {
3362
- default: z(() => [c("button", {
3434
+ d(X, { tooltip: "Повернуть вправо" }, {
3435
+ default: B(() => [c("button", {
3363
3436
  type: "button",
3364
3437
  class: y(Q.iconButton),
3365
3438
  "aria-label": "Повернуть вправо",
3366
- onClick: i[5] ||= (e) => rt(90)
3367
- }, [d(X, {
3439
+ onClick: i[5] ||= (e) => it(90)
3440
+ }, [d(Y, {
3368
3441
  name: "rotate-right",
3369
3442
  class: "size-4"
3370
3443
  })], 2)]),
3371
3444
  _: 1
3372
3445
  })
3373
- ], 2), N(we) ? (S(), a(Rr, {
3446
+ ], 2), P(Te) ? (C(), a(Lr, {
3374
3447
  key: 0,
3375
- active: N(le),
3448
+ active: P(q),
3376
3449
  axis: "x"
3377
3450
  }, {
3378
- default: z(() => [c("div", {
3451
+ default: B(() => [c("div", {
3379
3452
  ref_key: "thumbsRef",
3380
- ref: se,
3453
+ ref: ce,
3381
3454
  class: y(Q.thumbs)
3382
- }, [c("div", { class: y(Q.thumbsRow) }, [(S(!0), s(n, null, D(N(ge), (e, t) => (S(), s("button", {
3455
+ }, [c("div", { class: y(Q.thumbsRow) }, [(C(!0), s(n, null, O(P(_e), (e, t) => (C(), s("button", {
3383
3456
  key: `${e.src}:${t}`,
3384
3457
  type: "button",
3385
3458
  "data-thumb-index": t,
3386
3459
  "aria-label": `Открыть изображение ${t + 1}`,
3387
- "aria-current": t === N(C) ? "true" : void 0,
3388
- class: y([Q.thumb, t === N(C) ? "opacity-100" : ""]),
3389
- onClick: (e) => Je(t)
3460
+ "aria-current": t === P(w) ? "true" : void 0,
3461
+ class: y([Q.thumb, t === P(w) ? "opacity-100" : ""]),
3462
+ onClick: (e) => Ye(t)
3390
3463
  }, [c("span", {
3391
- class: y(["absolute inset-x-0 top-0 z-1 h-1", t === N(C) ? "bg-(--accent)" : "bg-transparent"]),
3464
+ class: y(["absolute inset-x-0 top-0 z-1 h-1", t === P(w) ? "bg-(--accent)" : "bg-transparent"]),
3392
3465
  "aria-hidden": "true"
3393
3466
  }, null, 2), c("img", {
3394
3467
  src: e.thumbnailSrc || e.src,
@@ -3396,16 +3469,16 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3396
3469
  class: y(Q.thumbImage),
3397
3470
  loading: "lazy",
3398
3471
  decoding: "async"
3399
- }, null, 10, wa)], 10, Ca))), 128))], 2)], 2)]),
3472
+ }, null, 10, Ca)], 10, Sa))), 128))], 2)], 2)]),
3400
3473
  _: 1
3401
3474
  }, 8, ["active"])) : o("", !0)], 2)
3402
- ], 10, ba)])) : o("", !0)], 64));
3475
+ ], 10, ya)])) : o("", !0)], 64));
3403
3476
  }
3404
- }), Ea = [
3477
+ }), Ta = [
3405
3478
  "id",
3406
3479
  "disabled",
3407
3480
  "aria-invalid"
3408
- ], Da = { base: "box-border h-9 py-1 px-2 m-1 text-sm text-(--text-default) bg-(--default) hover:bg-(--default-hover)" }, Oa = /* @__PURE__ */ f({
3481
+ ], Ea = { base: "box-border h-9 py-1 px-2 m-1 text-sm text-(--text-default) bg-(--default) hover:bg-(--default-hover)" }, Da = /* @__PURE__ */ f({
3409
3482
  __name: "SInput",
3410
3483
  props: /*@__PURE__*/ g({
3411
3484
  id: {},
@@ -3423,35 +3496,35 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3423
3496
  }),
3424
3497
  emits: ["update:modelValue"],
3425
3498
  setup(e, { expose: t }) {
3426
- let n = F(e, "modelValue"), r = m("field-context", null), a = m("fieldset-disabled", E(!1)), o = i(() => e.id || r?.id?.value || `input-${P()}`), c = i(() => !!(e.disabled || r?.disabled?.value || a.value)), l = i(() => [
3427
- Da.base,
3499
+ let n = I(e, "modelValue"), r = m("field-context", null), a = m("fieldset-disabled", D(!1)), o = i(() => e.id || r?.id?.value || `input-${F()}`), c = i(() => !!(e.disabled || r?.disabled?.value || a.value)), l = i(() => [
3500
+ Ea.base,
3428
3501
  e.invalid ? "ring-2 ring-(--danger) focus:ring-(--danger)" : "ring-1 ring-(--border) focus:ring-2 focus:ring-(--accent)",
3429
3502
  c.value && "cursor-not-allowed opacity-50"
3430
- ]), u = E(null);
3431
- return t({ focus: () => u.value?.focus() }), (t, r) => ne((S(), s("input", {
3432
- id: N(o),
3503
+ ]), u = D(null);
3504
+ return t({ focus: () => u.value?.focus() }), (t, r) => te((C(), s("input", {
3505
+ id: P(o),
3433
3506
  ref_key: "inputRef",
3434
3507
  ref: u,
3435
3508
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
3436
- disabled: N(c),
3509
+ disabled: P(c),
3437
3510
  "aria-invalid": e.invalid || void 0,
3438
- class: y(N(l))
3439
- }, null, 10, Ea)), [[L, n.value]]);
3511
+ class: y(P(l))
3512
+ }, null, 10, Ta)), [[R, n.value]]);
3440
3513
  }
3441
- }), ka = { link: "text-(--link) hover:text-(--link-hover)" }, Aa = /* @__PURE__ */ f({
3514
+ }), Oa = { link: "text-(--link) hover:text-(--link-hover)" }, ka = /* @__PURE__ */ f({
3442
3515
  __name: "SLink",
3443
3516
  props: {
3444
3517
  to: {},
3445
3518
  label: { default: "" }
3446
3519
  },
3447
3520
  setup(e) {
3448
- let t = or();
3449
- return (n, r) => (S(), a(A(N(t)), {
3450
- class: y(ka.link),
3521
+ let t = sr();
3522
+ return (n, r) => (C(), a(j(P(t)), {
3523
+ class: y(Oa.link),
3451
3524
  to: e.to,
3452
- href: N(t) === "a" ? e.to : void 0
3525
+ href: P(t) === "a" ? e.to : void 0
3453
3526
  }, {
3454
- default: z(() => [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
3527
+ default: B(() => [k(n.$slots, "default", {}, () => [u(M(e.label), 1)])]),
3455
3528
  _: 3
3456
3529
  }, 8, [
3457
3530
  "class",
@@ -3459,45 +3532,45 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3459
3532
  "href"
3460
3533
  ]));
3461
3534
  }
3462
- }), ja = {
3535
+ }), Aa = {
3463
3536
  list: "flex flex-col gap-1 pl-4 text-sm text-(--text-default)",
3464
3537
  listOl: "list-decimal",
3465
3538
  listUl: "list-disc",
3466
3539
  item: "leading-snug"
3467
- }, Ma = /* @__PURE__ */ f({
3540
+ }, ja = /* @__PURE__ */ f({
3468
3541
  __name: "SList",
3469
3542
  props: {
3470
3543
  items: {},
3471
3544
  tag: { default: "ul" }
3472
3545
  },
3473
3546
  setup(e) {
3474
- let t = i(() => [ja.list, e.tag === "ol" ? ja.listOl : ja.listUl]);
3475
- return (r, i) => (S(), a(A(e.tag), { class: y(N(t)) }, {
3476
- default: z(() => [(S(!0), s(n, null, D(e.items, (e, t) => (S(), s("li", {
3547
+ let t = i(() => [Aa.list, e.tag === "ol" ? Aa.listOl : Aa.listUl]);
3548
+ return (r, i) => (C(), a(j(e.tag), { class: y(P(t)) }, {
3549
+ default: B(() => [(C(!0), s(n, null, O(e.items, (e, t) => (C(), s("li", {
3477
3550
  key: t,
3478
- class: y(ja.item)
3479
- }, [O(r.$slots, "item", {
3551
+ class: y(Aa.item)
3552
+ }, [k(r.$slots, "item", {
3480
3553
  item: e,
3481
3554
  index: t
3482
- }, () => [u(j(e), 1)])], 2))), 128))]),
3555
+ }, () => [u(M(e), 1)])], 2))), 128))]),
3483
3556
  _: 3
3484
3557
  }, 8, ["class"]));
3485
3558
  }
3486
- }), Na = { class: "mx-auto flex w-full max-w-4xl [scrollbar-width:none] items-center gap-1 overflow-x-auto px-4 sm:flex-wrap sm:overflow-visible sm:px-6 [&::-webkit-scrollbar]:hidden" }, Pa = /* @__PURE__ */ f({
3559
+ }), Ma = { class: "mx-auto flex w-full max-w-4xl [scrollbar-width:none] items-center gap-1 overflow-x-auto px-4 sm:flex-wrap sm:overflow-visible sm:px-6 [&::-webkit-scrollbar]:hidden" }, Na = /* @__PURE__ */ f({
3487
3560
  __name: "SNav",
3488
3561
  props: { items: { default: () => [{
3489
3562
  to: "/",
3490
3563
  label: "начальная"
3491
3564
  }] } },
3492
3565
  setup(e) {
3493
- let t = cr(), r = or(), i = (e) => t.value === e || t.value.startsWith(`${e}/`), o = (e) => e.to === "/" ? t.value === "/" : i(e.to) ? !0 : (e.activePrefixes ?? []).some(i);
3494
- return (t, i) => (S(), s("nav", Na, [(S(!0), s(n, null, D(e.items, (e) => (S(), a(A(N(r)), {
3566
+ let t = lr(), r = sr(), i = (e) => t.value === e || t.value.startsWith(`${e}/`), o = (e) => e.to === "/" ? t.value === "/" : i(e.to) ? !0 : (e.activePrefixes ?? []).some(i);
3567
+ return (t, i) => (C(), s("nav", Ma, [(C(!0), s(n, null, O(e.items, (e) => (C(), a(j(P(r)), {
3495
3568
  key: e.to,
3496
3569
  to: e.to,
3497
- href: N(r) === "a" ? e.to : void 0,
3570
+ href: P(r) === "a" ? e.to : void 0,
3498
3571
  class: y(["shrink-0 rounded-full px-3 py-1 text-xs font-medium tracking-wider whitespace-nowrap uppercase transition-colors", o(e) ? "bg-current/5 text-(--text-default)" : "opacity-50 hover:bg-current/5 hover:opacity-90"])
3499
3572
  }, {
3500
- default: z(() => [u(j(e.label), 1)]),
3573
+ default: B(() => [u(M(e.label), 1)]),
3501
3574
  _: 2
3502
3575
  }, 1032, [
3503
3576
  "to",
@@ -3505,7 +3578,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3505
3578
  "class"
3506
3579
  ]))), 128))]));
3507
3580
  }
3508
- }), Fa = { class: "flex items-start justify-between gap-3" }, Ia = { class: "min-w-0" }, La = {
3581
+ }), Pa = { class: "flex items-start justify-between gap-3" }, Fa = { class: "min-w-0" }, Ia = {
3509
3582
  root: "fixed top-4 right-4 z-70 flex w-full max-w-sm flex-col gap-2",
3510
3583
  stack: "flex w-full flex-col gap-2",
3511
3584
  card: "rounded border border-(--border) bg-(--default) p-4 shadow-lg",
@@ -3514,7 +3587,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3514
3587
  success: "border-l-4 border-l-(--accent)",
3515
3588
  error: "border-l-4 border-l-(--danger)",
3516
3589
  info: "border-l-4 border-l-(--text-default)"
3517
- }, Ra = /* @__PURE__ */ f({
3590
+ }, La = /* @__PURE__ */ f({
3518
3591
  __name: "SNotification",
3519
3592
  props: {
3520
3593
  modelValue: {
@@ -3540,40 +3613,40 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3540
3613
  }, p = () => {
3541
3614
  d !== null && window.clearTimeout(d), n.duration > 0 && (d = window.setTimeout(f, n.duration));
3542
3615
  };
3543
- return R(() => n.modelValue, (e) => {
3616
+ return z(() => n.modelValue, (e) => {
3544
3617
  e ? p() : d !== null && (window.clearTimeout(d), d = null);
3545
3618
  }, { immediate: !0 }), x(() => {
3546
3619
  d !== null && window.clearTimeout(d);
3547
- }), (t, i) => N(u) ? (S(), a(r, {
3620
+ }), (t, i) => P(u) ? (C(), a(r, {
3548
3621
  key: 0,
3549
3622
  to: "body",
3550
3623
  disabled: !n.floating
3551
- }, [c("div", { class: y(n.floating ? La.root : La.stack) }, [c("div", { class: y([La.card, La[n.type]]) }, [c("div", Fa, [c("div", Ia, [e.title ? (S(), s("p", {
3624
+ }, [c("div", { class: y(n.floating ? Ia.root : Ia.stack) }, [c("div", { class: y([Ia.card, Ia[n.type]]) }, [c("div", Pa, [c("div", Fa, [e.title ? (C(), s("p", {
3552
3625
  key: 0,
3553
- class: y(La.title)
3554
- }, j(e.title), 3)) : o("", !0), e.message ? (S(), s("p", {
3626
+ class: y(Ia.title)
3627
+ }, M(e.title), 3)) : o("", !0), e.message ? (C(), s("p", {
3555
3628
  key: 1,
3556
- class: y(La.message)
3557
- }, j(e.message), 3)) : o("", !0)]), c("button", {
3629
+ class: y(Ia.message)
3630
+ }, M(e.message), 3)) : o("", !0)]), c("button", {
3558
3631
  type: "button",
3559
3632
  class: "shrink-0 opacity-60 hover:opacity-100",
3560
3633
  "aria-label": "Закрыть",
3561
3634
  onClick: f
3562
3635
  }, " × ")])], 2)], 2)], 8, ["disabled"])) : o("", !0);
3563
3636
  }
3564
- }), za = 4e3, Ba = 0, Va = E([]), Ha = () => {
3637
+ }), Ra = 4e3, za = 0, Ba = D([]), Va = () => {
3565
3638
  let e = (e) => {
3566
- Va.value = Va.value.filter((t) => t.id !== e);
3639
+ Ba.value = Ba.value.filter((t) => t.id !== e);
3567
3640
  }, t = (e) => {
3568
- let t = ++Ba;
3569
- return Va.value = [...Va.value, {
3570
- duration: za,
3641
+ let t = ++za;
3642
+ return Ba.value = [...Ba.value, {
3643
+ duration: Ra,
3571
3644
  ...e,
3572
3645
  id: t
3573
3646
  }], t;
3574
3647
  };
3575
3648
  return {
3576
- items: i(() => Va.value),
3649
+ items: i(() => Ba.value),
3577
3650
  push: t,
3578
3651
  dismiss: e,
3579
3652
  success: (e, n) => t({
@@ -3593,21 +3666,21 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3593
3666
  message: n
3594
3667
  })
3595
3668
  };
3596
- }, Ua = { class: "pointer-events-none fixed top-4 right-4 z-70 flex w-[calc(100%-2rem)] max-w-sm flex-col gap-2" }, Wa = /* @__PURE__ */ f({
3669
+ }, Ha = { class: "pointer-events-none fixed top-4 right-4 z-70 flex w-[calc(100%-2rem)] max-w-sm flex-col gap-2" }, Ua = /* @__PURE__ */ f({
3597
3670
  __name: "SNotificationHost",
3598
3671
  setup(e) {
3599
- let { items: t, dismiss: i } = Ha();
3600
- return (e, o) => (S(), a(r, { to: "body" }, [c("div", Ua, [(S(!0), s(n, null, D(N(t), (e) => (S(), s("div", {
3672
+ let { items: t, dismiss: i } = Va();
3673
+ return (e, o) => (C(), a(r, { to: "body" }, [c("div", Ha, [(C(!0), s(n, null, O(P(t), (e) => (C(), s("div", {
3601
3674
  key: e.id,
3602
3675
  class: "pointer-events-auto"
3603
- }, [d(Ra, {
3676
+ }, [d(La, {
3604
3677
  "model-value": !0,
3605
3678
  title: e.title,
3606
3679
  message: e.message,
3607
3680
  type: e.type,
3608
3681
  duration: e.duration,
3609
3682
  floating: !1,
3610
- "onUpdate:modelValue": (t) => N(i)(e.id)
3683
+ "onUpdate:modelValue": (t) => P(i)(e.id)
3611
3684
  }, null, 8, [
3612
3685
  "title",
3613
3686
  "message",
@@ -3616,7 +3689,7 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3616
3689
  "onUpdate:modelValue"
3617
3690
  ])]))), 128))])]));
3618
3691
  }
3619
- }), Ga = /* @__PURE__ */ f({
3692
+ }), Wa = /* @__PURE__ */ f({
3620
3693
  __name: "SSpoiler",
3621
3694
  props: /*@__PURE__*/ g({ label: { default: "Подробнее" } }, {
3622
3695
  modelValue: {
@@ -3627,61 +3700,61 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3627
3700
  }),
3628
3701
  emits: ["update:modelValue"],
3629
3702
  setup(e) {
3630
- let t = F(e, "modelValue");
3631
- return (n, r) => (S(), s("div", null, [c("button", {
3703
+ let t = I(e, "modelValue");
3704
+ return (n, r) => (C(), s("div", null, [c("button", {
3632
3705
  type: "button",
3633
3706
  class: "flex items-center gap-1 text-left text-(--link) hover:text-(--link-hover)",
3634
3707
  onClick: r[0] ||= (e) => t.value = !t.value
3635
- }, [d(X, {
3708
+ }, [d(Y, {
3636
3709
  name: "chevron",
3637
3710
  class: y(["size-4 transition-transform duration-100", t.value && "rotate-90"])
3638
- }, null, 8, ["class"]), c("span", null, j(e.label), 1)]), ne(c("div", null, [O(n.$slots, "default")], 512), [[te, t.value]])]));
3711
+ }, null, 8, ["class"]), c("span", null, M(e.label), 1)]), te(c("div", null, [k(n.$slots, "default")], 512), [[ee, t.value]])]));
3639
3712
  }
3640
- }), Ka = {
3713
+ }), Ga = {
3641
3714
  Tightest: "tightest",
3642
3715
  Tight: "tight",
3643
3716
  Normal: "normal",
3644
3717
  Wide: "wide",
3645
3718
  Widest: "widest"
3646
- }, qa = {
3719
+ }, Ka = {
3647
3720
  Xs: "text-xs",
3648
3721
  Sm: "text-sm",
3649
3722
  Base: "text-base",
3650
3723
  Lg: "text-lg",
3651
3724
  Xl: "text-xl"
3652
- }, Ja = {
3725
+ }, qa = {
3653
3726
  Inherit: "text-inherit",
3654
3727
  Default: "text-(--text-default)",
3655
3728
  Accent: "text-(--accent)",
3656
3729
  Muted: "opacity-60"
3657
- }, Ya = { container: "text-shadow-xs/80 font-light font-mono uppercase flex w-full justify-center" }, Xa = /* @__PURE__ */ f({
3730
+ }, Ja = { container: "text-shadow-xs/80 font-light font-mono uppercase flex w-full justify-center" }, Ya = /* @__PURE__ */ f({
3658
3731
  __name: "STextSpans",
3659
3732
  props: {
3660
3733
  text: {},
3661
- gap: { default: () => Ka.Wide },
3662
- textSize: { default: () => qa.Xs },
3663
- textColor: { default: () => Ja.Inherit }
3734
+ gap: { default: () => Ga.Wide },
3735
+ textSize: { default: () => Ka.Xs },
3736
+ textColor: { default: () => qa.Inherit }
3664
3737
  },
3665
3738
  setup(e) {
3666
3739
  let t = i(() => e.text.trim()), r = {
3667
- [Ka.Tightest]: "gap-1",
3668
- [Ka.Tight]: "gap-2",
3669
- [Ka.Normal]: "gap-3",
3670
- [Ka.Wide]: "gap-6",
3671
- [Ka.Widest]: "gap-8"
3740
+ [Ga.Tightest]: "gap-1",
3741
+ [Ga.Tight]: "gap-2",
3742
+ [Ga.Normal]: "gap-3",
3743
+ [Ga.Wide]: "gap-6",
3744
+ [Ga.Widest]: "gap-8"
3672
3745
  }, a = i(() => [
3673
- Ya.container,
3746
+ Ja.container,
3674
3747
  e.textSize,
3675
3748
  e.textColor,
3676
3749
  r[e.gap]
3677
3750
  ]);
3678
- return (e, r) => (S(), s("div", { class: y(N(a)) }, [(S(!0), s(n, null, D(N(t), (e, t) => (S(), s("span", { key: t }, j(e), 1))), 128))], 2));
3751
+ return (e, r) => (C(), s("div", { class: y(P(a)) }, [(C(!0), s(n, null, O(P(t), (e, t) => (C(), s("span", { key: t }, M(e), 1))), 128))], 2));
3679
3752
  }
3680
- }), Za = [
3753
+ }), Xa = [
3681
3754
  "id",
3682
3755
  "rows",
3683
3756
  "aria-invalid"
3684
- ], Qa = { textarea: "max-w-full resize bg-(--default) m-1 p-2 px-3 text-sm text-(--text-default) disabled:cursor-not-allowed disabled:opacity-50" }, $a = /* @__PURE__ */ f({
3757
+ ], Za = { textarea: "max-w-full resize bg-(--default) m-1 p-2 px-3 text-sm text-(--text-default) disabled:cursor-not-allowed disabled:opacity-50" }, Qa = /* @__PURE__ */ f({
3685
3758
  __name: "STextarea",
3686
3759
  props: /*@__PURE__*/ g({
3687
3760
  id: {},
@@ -3696,25 +3769,25 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3696
3769
  }),
3697
3770
  emits: ["update:modelValue"],
3698
3771
  setup(e) {
3699
- let t = m("field-id", void 0), n = i(() => e.id || t || `textarea-${P()}`), r = F(e, "modelValue"), a = i(() => [Qa.textarea, e.invalid ? "ring-2 ring-(--danger) focus:ring-(--danger)" : "ring-1 ring-(--border) focus:ring-2 focus:ring-(--accent)"]);
3700
- return (t, i) => ne((S(), s("textarea", {
3701
- id: N(n),
3772
+ let t = m("field-id", void 0), n = i(() => e.id || t || `textarea-${F()}`), r = I(e, "modelValue"), a = i(() => [Za.textarea, e.invalid ? "ring-2 ring-(--danger) focus:ring-(--danger)" : "ring-1 ring-(--border) focus:ring-2 focus:ring-(--accent)"]);
3773
+ return (t, i) => te((C(), s("textarea", {
3774
+ id: P(n),
3702
3775
  "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
3703
3776
  rows: e.rows,
3704
3777
  "aria-invalid": e.invalid || void 0,
3705
- class: y(N(a))
3706
- }, null, 10, Za)), [[L, r.value]]);
3778
+ class: y(P(a))
3779
+ }, null, 10, Xa)), [[R, r.value]]);
3707
3780
  }
3708
- }), eo = ["for"], to = [
3781
+ }), $a = ["for"], eo = [
3709
3782
  "id",
3710
3783
  "name",
3711
3784
  "disabled"
3712
- ], no = {
3785
+ ], to = {
3713
3786
  label: "relative inline-flex w-fit items-center gap-2 text-sm select-none",
3714
3787
  track: "ui-focus-peer relative h-4 w-7 shrink-0 rounded-full border-2 transition-colors duration-200",
3715
3788
  thumb: "absolute -top-0.5 -left-0.5 size-4 rounded-full border-2 transition-transform duration-200",
3716
3789
  text: "text-nowrap text-(--text-default)"
3717
- }, ro = /* @__PURE__ */ f({
3790
+ }, no = /* @__PURE__ */ f({
3718
3791
  __name: "SToggle",
3719
3792
  props: /*@__PURE__*/ g({
3720
3793
  id: {},
@@ -3733,37 +3806,37 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3733
3806
  }),
3734
3807
  emits: /*@__PURE__*/ g(["change"], ["update:modelValue"]),
3735
3808
  setup(e, { emit: t, slots: n }) {
3736
- let r = F(e, "modelValue"), a = t, l = m("field-id", void 0), d = i(() => e.id || l || `toggle-${P()}`), f = (e) => {
3809
+ let r = I(e, "modelValue"), a = t, l = m("field-id", void 0), d = i(() => e.id || l || `toggle-${F()}`), f = (e) => {
3737
3810
  a("change", e);
3738
- }, p = i(() => [no.label, e.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"]), h = i(() => [no.track, r.value ? "border-(--accent) bg-(--accent)" : "border-white/40 bg-(--toggle-off-bg)"]), g = i(() => [no.thumb, r.value ? "translate-x-3 border-(--accent) bg-(--bg-default)" : "translate-x-0 border-transparent bg-white"]);
3739
- return (t, i) => (S(), s("label", {
3740
- for: N(d),
3741
- class: y(N(p))
3811
+ }, p = i(() => [to.label, e.disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer"]), h = i(() => [to.track, r.value ? "border-(--accent) bg-(--accent)" : "border-white/40 bg-(--toggle-off-bg)"]), g = i(() => [to.thumb, r.value ? "translate-x-3 border-(--accent) bg-(--bg-default)" : "translate-x-0 border-transparent bg-white"]);
3812
+ return (t, i) => (C(), s("label", {
3813
+ for: P(d),
3814
+ class: y(P(p))
3742
3815
  }, [
3743
- ne(c("input", {
3744
- id: N(d),
3816
+ te(c("input", {
3817
+ id: P(d),
3745
3818
  name: e.name,
3746
3819
  type: "checkbox",
3747
3820
  class: "peer sr-only",
3748
3821
  "onUpdate:modelValue": i[0] ||= (e) => r.value = e,
3749
3822
  disabled: e.disabled,
3750
3823
  onChange: f
3751
- }, null, 40, to), [[I, r.value]]),
3824
+ }, null, 40, eo), [[L, r.value]]),
3752
3825
  c("span", {
3753
3826
  "aria-hidden": "true",
3754
- class: y(N(h))
3755
- }, [c("span", { class: y(N(g)) }, null, 2)], 2),
3756
- e.label || n.default ? (S(), s("span", {
3827
+ class: y(P(h))
3828
+ }, [c("span", { class: y(P(g)) }, null, 2)], 2),
3829
+ e.label || n.default ? (C(), s("span", {
3757
3830
  key: 0,
3758
- class: y(no.text)
3759
- }, [O(t.$slots, "default", {}, () => [u(j(e.label), 1)])], 2)) : o("", !0)
3760
- ], 10, eo));
3831
+ class: y(to.text)
3832
+ }, [k(t.$slots, "default", {}, () => [u(M(e.label), 1)])], 2)) : o("", !0)
3833
+ ], 10, $a));
3761
3834
  }
3762
- }), io = ["aria-label"], ao = [
3835
+ }), ro = ["aria-label"], io = [
3763
3836
  "aria-label",
3764
3837
  "aria-expanded",
3765
3838
  "onClick"
3766
- ], oo = {
3839
+ ], ao = {
3767
3840
  key: 1,
3768
3841
  class: "size-4 shrink-0"
3769
3842
  }, $ = {
@@ -3785,14 +3858,14 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3785
3858
  depthLine: "h-4 w-px bg-(--text-default)",
3786
3859
  depthLineHover: "group-hover:bg-(--accent)",
3787
3860
  text: "text-sm h-4 self-start overflow-hidden leading-4 wrap-break-word"
3788
- }, so = /* @__PURE__ */ f({
3861
+ }, oo = /* @__PURE__ */ f({
3789
3862
  __name: "STree",
3790
3863
  props: {
3791
3864
  items: { default: () => [] },
3792
3865
  h: { default: "" }
3793
3866
  },
3794
3867
  setup(e) {
3795
- let t = E(/* @__PURE__ */ new Set()), r = (e) => typeof e == "string" ? e : e.text, l = (e) => typeof e == "string" ? [] : e.children || [], u = i(() => {
3868
+ let t = D(/* @__PURE__ */ new Set()), r = (e) => typeof e == "string" ? e : e.text, l = (e) => typeof e == "string" ? [] : e.children || [], u = i(() => {
3796
3869
  let n = [], i = 0, a = (e, o = 0, s = "", c = !0) => {
3797
3870
  e.forEach((e, u) => {
3798
3871
  let d = s ? `${s}.${u}` : String(u), f = l(e);
@@ -3823,58 +3896,58 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3823
3896
  return n(e.items), t;
3824
3897
  }), m = i(() => `${Math.max(2, String(p.value).length)}ch`), h = i(() => f.value.length > 0), g = i(() => h.value && f.value.every((e) => t.value.has(e))), _ = i(() => g.value ? "Свернуть всё" : "Развернуть всё"), v = (e) => t.value.has(e), x = (e) => {
3825
3898
  e.children.length && (t.value.has(e.id) ? t.value.delete(e.id) : t.value.add(e.id));
3826
- }, ee = () => {
3899
+ }, S = () => {
3827
3900
  t.value = g.value ? /* @__PURE__ */ new Set() : new Set(f.value);
3828
3901
  };
3829
- return (r, i) => (S(), s("div", { class: y($.root) }, [e.h || N(h) ? (S(), s("div", {
3902
+ return (r, i) => (C(), s("div", { class: y($.root) }, [e.h || P(h) ? (C(), s("div", {
3830
3903
  key: 0,
3831
3904
  class: y($.header)
3832
- }, [e.h ? (S(), s("h2", {
3905
+ }, [e.h ? (C(), s("h2", {
3833
3906
  key: 0,
3834
3907
  class: y($.title)
3835
- }, j(e.h), 3)) : o("", !0), N(h) ? (S(), a(mr, {
3908
+ }, M(e.h), 3)) : o("", !0), P(h) ? (C(), a(X, {
3836
3909
  key: 1,
3837
- tooltip: N(_)
3910
+ tooltip: P(_)
3838
3911
  }, {
3839
- default: z(() => [c("button", {
3912
+ default: B(() => [c("button", {
3840
3913
  type: "button",
3841
- "aria-label": N(_),
3914
+ "aria-label": P(_),
3842
3915
  class: y($.collapseBtn),
3843
- onClick: ee
3844
- }, [d(X, {
3845
- name: N(g) ? "collapse" : "expand",
3916
+ onClick: S
3917
+ }, [d(Y, {
3918
+ name: P(g) ? "collapse" : "expand",
3846
3919
  class: y($.collapseIcon)
3847
- }, null, 8, ["name", "class"])], 10, io)]),
3920
+ }, null, 8, ["name", "class"])], 10, ro)]),
3848
3921
  _: 1
3849
- }, 8, ["tooltip"])) : o("", !0)], 2)) : o("", !0), c("div", { class: y($.list) }, [(S(!0), s(n, null, D(N(u), (e) => (S(), s("div", {
3922
+ }, 8, ["tooltip"])) : o("", !0)], 2)) : o("", !0), c("div", { class: y($.list) }, [(C(!0), s(n, null, O(P(u), (e) => (C(), s("div", {
3850
3923
  key: e.id,
3851
3924
  class: y($.row)
3852
3925
  }, [
3853
3926
  c("span", {
3854
3927
  class: y($.number),
3855
- style: b({ width: N(m) })
3856
- }, j(e.number), 7),
3857
- N(h) ? (S(), s(n, { key: 0 }, [e.children.length ? (S(), s("button", {
3928
+ style: b({ width: P(m) })
3929
+ }, M(e.number), 7),
3930
+ P(h) ? (C(), s(n, { key: 0 }, [e.children.length ? (C(), s("button", {
3858
3931
  key: 0,
3859
3932
  type: "button",
3860
3933
  tabindex: "-1",
3861
3934
  class: y($.toggleBtn),
3862
- "aria-label": N(t).has(e.id) ? "Свернуть" : "Раскрыть",
3863
- "aria-expanded": N(t).has(e.id),
3935
+ "aria-label": P(t).has(e.id) ? "Свернуть" : "Раскрыть",
3936
+ "aria-expanded": P(t).has(e.id),
3864
3937
  onClick: (t) => x(e)
3865
- }, [d(X, {
3938
+ }, [d(Y, {
3866
3939
  name: "chevron",
3867
3940
  class: y([$.toggleIcon, v(e.id) && $.toggleIconActive])
3868
- }, null, 8, ["class"])], 10, ao)) : (S(), s("span", oo))], 64)) : o("", !0),
3869
- (S(), a(A(e.children.length ? "button" : "div"), {
3941
+ }, null, 8, ["class"])], 10, io)) : (C(), s("span", ao))], 64)) : o("", !0),
3942
+ (C(), a(j(e.children.length ? "button" : "div"), {
3870
3943
  type: e.children.length ? "button" : void 0,
3871
3944
  class: y(e.children.length ? $.itemBtn : $.itemLeaf),
3872
3945
  onClick: (t) => e.children.length && x(e)
3873
3946
  }, {
3874
- default: z(() => [(S(!0), s(n, null, D(e.depth, (t) => (S(), s("span", {
3947
+ default: B(() => [(C(!0), s(n, null, O(e.depth, (t) => (C(), s("span", {
3875
3948
  key: t,
3876
3949
  class: y($.depth)
3877
- }, [c("span", { class: y([$.depthLine, t === e.depth && $.depthLineHover]) }, null, 2)], 2))), 128)), c("span", { class: y($.text) }, j(e.text), 3)]),
3950
+ }, [c("span", { class: y([$.depthLine, t === e.depth && $.depthLineHover]) }, null, 2)], 2))), 128)), c("span", { class: y($.text) }, M(e.text), 3)]),
3878
3951
  _: 2
3879
3952
  }, 1032, [
3880
3953
  "type",
@@ -3883,10 +3956,10 @@ var nr = /*#__PURE__*/ J($n, [["render", tr]]), rr = Object.fromEntries(Object.e
3883
3956
  ]))
3884
3957
  ], 2))), 128))], 2)], 2));
3885
3958
  }
3886
- }), co = (e) => typeof e == "string" ? e.trim().replace(/^\/+/, "").replace(/\\/g, "/") : "", lo = (t) => {
3887
- let n = co(t);
3959
+ }), so = (e) => typeof e == "string" ? e.trim().replace(/^\/+/, "").replace(/\\/g, "/") : "", co = (t) => {
3960
+ let n = so(t);
3888
3961
  if (!n) return "";
3889
3962
  let r = e().mediaBasePath || "/api/media/files", i = n.split("/").map((e) => encodeURIComponent(e)).join("/");
3890
3963
  return `${r.replace(/\/+$/, "")}/${i}`;
3891
- }, uo = co;
3892
- export { xr as BtnState, le as SAppShell, fr as SAsideNav, br as SAvatar, Cr as SBtn, Or as SCheckbox, Mr as SCopy, $r as SCropper, si as SDataTable, ra as SDateTimePicker, fi as SDatetime, ui as SDatetimeView, aa as SDocMarkdown, sa as SField, da as SFile, ga as SGradation, X as SIcon, Ta as SImage, Oa as SInput, Aa as SLink, Ma as SList, ti as SLoad, Pa as SNav, Ra as SNotification, Wa as SNotificationHost, Ir as SRange, Rr as SScrollableEdges, qr as SSelect, Ga as SSpoiler, Xa as STextSpans, $a as STextarea, ro as SToggle, mr as STooltip, so as STree, Ja as TextColor, Ka as TextGap, qa as TextSize, ji as allTimeZoneOptions, Ci as clampDateTimePickerParts, Si as compareDateOnly, ca as countForm, yi as dateToPickerParts, wi as formatDateTimePickerDisplay, li as getFormatter, ir as iconNames, rr as icons, Ai as localTimeZone, lo as mediaFileSrc, uo as normalizeMediaKey, _i as parseDateTimePickerModel, gr as provideSindeUser, Oi as resolveDateTimePickerLocale, vi as serializeDateTimePickerModel, t as setSindeUiConfig, kr as useClipboard, or as useLinkComponent, Ha as useNotifications, Br as useOpenSelect, cr as useOptionalRoutePath, sr as useOptionalRouter, e as useSindeUiConfig, _r as useSindeUser };
3964
+ }, lo = so;
3965
+ export { br as BtnState, le as SAppShell, pr as SAsideNav, yr as SAvatar, Sr as SBtn, Dr as SCheckbox, jr as SCopy, Qr as SCropper, oi as SDataTable, na as SDateTimePicker, di as SDatetime, li as SDatetimeView, ia as SDocMarkdown, oa as SField, ua as SFile, ha as SGradation, Y as SIcon, wa as SImage, Da as SInput, ka as SLink, ja as SList, ei as SLoad, Na as SNav, La as SNotification, Ua as SNotificationHost, Fr as SRange, Lr as SScrollableEdges, Kr as SSelect, Wa as SSpoiler, Ya as STextSpans, Qa as STextarea, no as SToggle, X as STooltip, oo as STree, qa as TextColor, Ga as TextGap, Ka as TextSize, Ai as allTimeZoneOptions, Si as clampDateTimePickerParts, xi as compareDateOnly, sa as countForm, vi as dateToPickerParts, Ci as formatDateTimePickerDisplay, ci as getFormatter, ir as iconNames, rr as icons, ki as localTimeZone, co as mediaFileSrc, lo as normalizeMediaKey, gi as parseDateTimePickerModel, hr as provideSindeUser, Di as resolveDateTimePickerLocale, _i as serializeDateTimePickerModel, t as setSindeUiConfig, Or as useClipboard, sr as useLinkComponent, Va as useNotifications, zr as useOpenSelect, lr as useOptionalRoutePath, cr as useOptionalRouter, e as useSindeUiConfig, gr as useSindeUser };