toku-ui 5.2.1 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/components/TDrawer/TDrawer.stories.d.ts +161 -0
  2. package/dist/components/TDrawer/TDrawer.stories.d.ts.map +1 -0
  3. package/dist/components/TDrawer/TDrawer.vue.d.ts +50 -0
  4. package/dist/components/TDrawer/TDrawer.vue.d.ts.map +1 -0
  5. package/dist/components/TDrawer/TDrawerFooter/TDrawerFooter.vue.d.ts +20 -0
  6. package/dist/components/TDrawer/TDrawerFooter/TDrawerFooter.vue.d.ts.map +1 -0
  7. package/dist/components/TDrawer/TDrawerFooter/index.d.ts +3 -0
  8. package/dist/components/TDrawer/TDrawerFooter/index.d.ts.map +1 -0
  9. package/dist/components/TDrawer/TDrawerHeader/TDrawerHeader.vue.d.ts +69 -0
  10. package/dist/components/TDrawer/TDrawerHeader/TDrawerHeader.vue.d.ts.map +1 -0
  11. package/dist/components/TDrawer/TDrawerHeader/index.d.ts +3 -0
  12. package/dist/components/TDrawer/TDrawerHeader/index.d.ts.map +1 -0
  13. package/dist/components/TDrawer/TDrawerLinkRow/TDrawerLinkRow.vue.d.ts +14 -0
  14. package/dist/components/TDrawer/TDrawerLinkRow/TDrawerLinkRow.vue.d.ts.map +1 -0
  15. package/dist/components/TDrawer/TDrawerLinkRow/index.d.ts +3 -0
  16. package/dist/components/TDrawer/TDrawerLinkRow/index.d.ts.map +1 -0
  17. package/dist/components/TDrawer/TDrawerRow/TDrawerRow.vue.d.ts +38 -0
  18. package/dist/components/TDrawer/TDrawerRow/TDrawerRow.vue.d.ts.map +1 -0
  19. package/dist/components/TDrawer/TDrawerRow/index.d.ts +3 -0
  20. package/dist/components/TDrawer/TDrawerRow/index.d.ts.map +1 -0
  21. package/dist/components/TDrawer/TDrawerSection/TDrawerSection.vue.d.ts +23 -0
  22. package/dist/components/TDrawer/TDrawerSection/TDrawerSection.vue.d.ts.map +1 -0
  23. package/dist/components/TDrawer/TDrawerSection/index.d.ts +3 -0
  24. package/dist/components/TDrawer/TDrawerSection/index.d.ts.map +1 -0
  25. package/dist/components/TDrawer/index.d.ts +8 -0
  26. package/dist/components/TDrawer/index.d.ts.map +1 -0
  27. package/dist/components/TDropdown/TDropdown.d.ts.map +1 -1
  28. package/dist/components/TDropdown/TDropdown.stories.d.ts.map +1 -1
  29. package/dist/components/TDropdown/TDropdown.styles.d.ts.map +1 -1
  30. package/dist/components/TDropdown/TDropdown.types.d.ts +1 -1
  31. package/dist/components/TDropdown/TDropdown.types.d.ts.map +1 -1
  32. package/dist/components/TIconButton/TIconButton.stories.d.ts.map +1 -1
  33. package/dist/components/TIconButton/TIconButton.styles.d.ts.map +1 -1
  34. package/dist/components/TIconButton/TIconButton.types.d.ts +1 -1
  35. package/dist/components/TIconButton/TIconButton.types.d.ts.map +1 -1
  36. package/dist/components/index.d.ts +1 -0
  37. package/dist/components/index.d.ts.map +1 -1
  38. package/dist/index.es.js +1293 -981
  39. package/dist/index.es.js.map +1 -1
  40. package/dist/stories/DesignTokens.stories.d.ts.map +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/tokens.css +3 -1
  43. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { Fragment as e, Teleport as t, Text as n, computed as r, createApp as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, inject as p, isVNode as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, toDisplayString as O, unref as k, useAttrs as ee, useCssVars as te, useId as ne, useModel as re, useSlots as A, watch as j, withCtx as M } from "vue";
2
- import { Icon as N } from "@iconify/vue";
3
- import { css as P } from "@emotion/css";
4
- import { Label as ie, Primitive as F, SwitchRoot as ae, SwitchThumb as oe } from "reka-ui";
1
+ import { Fragment as e, Teleport as t, Text as n, computed as r, createApp as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, h as f, inject as p, isVNode as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, toDisplayString as O, unref as k, useAttrs as ee, useCssVars as te, useId as ne, useModel as re, useSlots as A, useTemplateRef as j, watch as M, withCtx as N, withModifiers as ie } from "vue";
2
+ import { Icon as P } from "@iconify/vue";
3
+ import { css as F } from "@emotion/css";
4
+ import { DialogContent as ae, DialogPortal as oe, DialogRoot as se, Label as ce, Primitive as le, SwitchRoot as ue, SwitchThumb as de, injectDialogRootContext as fe } from "reka-ui";
5
5
  //#region src/theme/base.ts
6
- var se = {
6
+ var pe = {
7
7
  colors: {
8
8
  primary: {
9
9
  main: "#3C1053",
@@ -58,22 +58,22 @@ var se = {
58
58
  };
59
59
  //#endregion
60
60
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isLength.mjs
61
- function ce(e) {
61
+ function me(e) {
62
62
  return Number.isSafeInteger(e) && e >= 0;
63
63
  }
64
64
  //#endregion
65
65
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
66
- function le(e) {
67
- return e != null && typeof e != "function" && ce(e.length);
66
+ function he(e) {
67
+ return e != null && typeof e != "function" && me(e.length);
68
68
  }
69
69
  //#endregion
70
70
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
71
- function ue(e) {
71
+ function ge(e) {
72
72
  return e === "__proto__";
73
73
  }
74
74
  //#endregion
75
75
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
76
- function de(e) {
76
+ function _e(e) {
77
77
  switch (typeof e) {
78
78
  case "number":
79
79
  case "symbol": return !1;
@@ -82,24 +82,24 @@ function de(e) {
82
82
  }
83
83
  //#endregion
84
84
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
85
- function fe(e) {
85
+ function I(e) {
86
86
  return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
87
87
  }
88
88
  //#endregion
89
89
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/util/toString.mjs
90
- function pe(e) {
90
+ function ve(e) {
91
91
  if (e == null) return "";
92
92
  if (typeof e == "string") return e;
93
- if (Array.isArray(e)) return e.map(pe).join(",");
93
+ if (Array.isArray(e)) return e.map(ve).join(",");
94
94
  let t = String(e);
95
95
  return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
96
96
  }
97
97
  //#endregion
98
98
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/util/toPath.mjs
99
- function me(e) {
100
- if (Array.isArray(e)) return e.map(fe);
99
+ function L(e) {
100
+ if (Array.isArray(e)) return e.map(I);
101
101
  if (typeof e == "symbol") return [e];
102
- e = pe(e);
102
+ e = ve(e);
103
103
  let t = [], n = e.length;
104
104
  if (n === 0) return t;
105
105
  let r = 0, i = "", a = "", o = !1;
@@ -111,81 +111,81 @@ function me(e) {
111
111
  }
112
112
  //#endregion
113
113
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/get.mjs
114
- function he(e, t, n) {
114
+ function R(e, t, n) {
115
115
  if (e == null) return n;
116
116
  switch (typeof t) {
117
117
  case "string": {
118
- if (ue(t)) return n;
118
+ if (ge(t)) return n;
119
119
  let r = e[t];
120
- return r === void 0 ? de(t) ? he(e, me(t), n) : n : r;
120
+ return r === void 0 ? _e(t) ? R(e, L(t), n) : n : r;
121
121
  }
122
122
  case "number":
123
123
  case "symbol": {
124
- typeof t == "number" && (t = fe(t));
124
+ typeof t == "number" && (t = I(t));
125
125
  let r = e[t];
126
126
  return r === void 0 ? n : r;
127
127
  }
128
128
  default: {
129
- if (Array.isArray(t)) return ge(e, t, n);
130
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), ue(t)) return n;
129
+ if (Array.isArray(t)) return z(e, t, n);
130
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), ge(t)) return n;
131
131
  let r = e[t];
132
132
  return r === void 0 ? n : r;
133
133
  }
134
134
  }
135
135
  }
136
- function ge(e, t, n) {
136
+ function z(e, t, n) {
137
137
  if (t.length === 0) return n;
138
138
  let r = e;
139
139
  for (let e = 0; e < t.length; e++) {
140
- if (r == null || ue(t[e])) return n;
140
+ if (r == null || ge(t[e])) return n;
141
141
  r = r[t[e]];
142
142
  }
143
143
  return r === void 0 ? n : r;
144
144
  }
145
145
  //#endregion
146
146
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
147
- function _e(e) {
147
+ function ye(e) {
148
148
  return e == null || typeof e != "object" && typeof e != "function";
149
149
  }
150
150
  //#endregion
151
151
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
152
- function I(e) {
152
+ function B(e) {
153
153
  return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
154
154
  }
155
155
  //#endregion
156
156
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
157
- function L(e) {
157
+ function be(e) {
158
158
  return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
159
159
  }
160
160
  //#endregion
161
161
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
162
- var R = "[object RegExp]", z = "[object String]", B = "[object Number]", ve = "[object Boolean]", V = "[object Arguments]", ye = "[object Symbol]", be = "[object Date]", xe = "[object Map]", Se = "[object Set]", Ce = "[object Array]", we = "[object ArrayBuffer]", Te = "[object Object]", Ee = "[object DataView]", De = "[object Uint8Array]", Oe = "[object Uint8ClampedArray]", ke = "[object Uint16Array]", Ae = "[object Uint32Array]", je = "[object Int8Array]", Me = "[object Int16Array]", Ne = "[object Int32Array]", Pe = "[object Float32Array]", Fe = "[object Float64Array]", Ie = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
162
+ var xe = "[object RegExp]", Se = "[object String]", Ce = "[object Number]", we = "[object Boolean]", Te = "[object Arguments]", Ee = "[object Symbol]", De = "[object Date]", Oe = "[object Map]", ke = "[object Set]", Ae = "[object Array]", je = "[object ArrayBuffer]", Me = "[object Object]", Ne = "[object DataView]", Pe = "[object Uint8Array]", Fe = "[object Uint8ClampedArray]", Ie = "[object Uint16Array]", Le = "[object Uint32Array]", Re = "[object Int8Array]", ze = "[object Int16Array]", Be = "[object Int32Array]", Ve = "[object Float32Array]", He = "[object Float64Array]", Ue = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
163
163
  return this;
164
164
  })() || Function("return this")();
165
165
  //#endregion
166
166
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isBuffer.mjs
167
- function Le(e) {
168
- return Ie.Buffer !== void 0 && Ie.Buffer.isBuffer(e);
167
+ function We(e) {
168
+ return Ue.Buffer !== void 0 && Ue.Buffer.isBuffer(e);
169
169
  }
170
170
  //#endregion
171
171
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
172
- function Re(e) {
172
+ function Ge(e) {
173
173
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
174
174
  }
175
175
  //#endregion
176
176
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
177
- function ze(e, t) {
178
- return Be(e, void 0, e, /* @__PURE__ */ new Map(), t);
177
+ function Ke(e, t) {
178
+ return qe(e, void 0, e, /* @__PURE__ */ new Map(), t);
179
179
  }
180
- function Be(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
180
+ function qe(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
181
181
  let a = i?.(e, t, n, r);
182
182
  if (a !== void 0) return a;
183
- if (_e(e)) return e;
183
+ if (ye(e)) return e;
184
184
  if (r.has(e)) return r.get(e);
185
185
  if (Array.isArray(e)) {
186
186
  let t = Array(e.length);
187
187
  r.set(e, t);
188
- for (let a = 0; a < e.length; a++) t[a] = Be(e[a], a, n, r, i);
188
+ for (let a = 0; a < e.length; a++) t[a] = qe(e[a], a, n, r, i);
189
189
  return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
190
190
  }
191
191
  if (e instanceof Date) return new Date(e.getTime());
@@ -196,112 +196,112 @@ function Be(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
196
196
  if (e instanceof Map) {
197
197
  let t = /* @__PURE__ */ new Map();
198
198
  r.set(e, t);
199
- for (let [a, o] of e) t.set(a, Be(o, a, n, r, i));
199
+ for (let [a, o] of e) t.set(a, qe(o, a, n, r, i));
200
200
  return t;
201
201
  }
202
202
  if (e instanceof Set) {
203
203
  let t = /* @__PURE__ */ new Set();
204
204
  r.set(e, t);
205
- for (let a of e) t.add(Be(a, void 0, n, r, i));
205
+ for (let a of e) t.add(qe(a, void 0, n, r, i));
206
206
  return t;
207
207
  }
208
- if (Le(e)) return e.subarray();
209
- if (Re(e)) {
208
+ if (We(e)) return e.subarray();
209
+ if (Ge(e)) {
210
210
  let t = new (Object.getPrototypeOf(e)).constructor(e.length);
211
211
  r.set(e, t);
212
- for (let a = 0; a < e.length; a++) t[a] = Be(e[a], a, n, r, i);
212
+ for (let a = 0; a < e.length; a++) t[a] = qe(e[a], a, n, r, i);
213
213
  return t;
214
214
  }
215
215
  if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
216
216
  if (e instanceof DataView) {
217
217
  let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
218
- return r.set(e, t), H(t, e, n, r, i), t;
218
+ return r.set(e, t), V(t, e, n, r, i), t;
219
219
  }
220
220
  if (typeof File < "u" && e instanceof File) {
221
221
  let t = new File([e], e.name, { type: e.type });
222
- return r.set(e, t), H(t, e, n, r, i), t;
222
+ return r.set(e, t), V(t, e, n, r, i), t;
223
223
  }
224
224
  if (typeof Blob < "u" && e instanceof Blob) {
225
225
  let t = new Blob([e], { type: e.type });
226
- return r.set(e, t), H(t, e, n, r, i), t;
226
+ return r.set(e, t), V(t, e, n, r, i), t;
227
227
  }
228
228
  if (e instanceof Error) {
229
229
  let t = structuredClone(e);
230
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, H(t, e, n, r, i), t;
230
+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, V(t, e, n, r, i), t;
231
231
  }
232
232
  if (e instanceof Boolean) {
233
233
  let t = new Boolean(e.valueOf());
234
- return r.set(e, t), H(t, e, n, r, i), t;
234
+ return r.set(e, t), V(t, e, n, r, i), t;
235
235
  }
236
236
  if (e instanceof Number) {
237
237
  let t = new Number(e.valueOf());
238
- return r.set(e, t), H(t, e, n, r, i), t;
238
+ return r.set(e, t), V(t, e, n, r, i), t;
239
239
  }
240
240
  if (e instanceof String) {
241
241
  let t = new String(e.valueOf());
242
- return r.set(e, t), H(t, e, n, r, i), t;
242
+ return r.set(e, t), V(t, e, n, r, i), t;
243
243
  }
244
- if (typeof e == "object" && Ve(e)) {
244
+ if (typeof e == "object" && Je(e)) {
245
245
  let t = Object.create(Object.getPrototypeOf(e));
246
- return r.set(e, t), H(t, e, n, r, i), t;
246
+ return r.set(e, t), V(t, e, n, r, i), t;
247
247
  }
248
248
  return e;
249
249
  }
250
- function H(e, t, n = e, r, i) {
251
- let a = [...Object.keys(t), ...I(t)];
250
+ function V(e, t, n = e, r, i) {
251
+ let a = [...Object.keys(t), ...B(t)];
252
252
  for (let o = 0; o < a.length; o++) {
253
253
  let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
254
- (c == null || c.writable) && (e[s] = Be(t[s], s, n, r, i));
254
+ (c == null || c.writable) && (e[s] = qe(t[s], s, n, r, i));
255
255
  }
256
256
  }
257
- function Ve(e) {
258
- switch (L(e)) {
259
- case V:
260
- case Ce:
261
- case we:
262
- case Ee:
263
- case ve:
264
- case be:
265
- case Pe:
266
- case Fe:
257
+ function Je(e) {
258
+ switch (be(e)) {
259
+ case Te:
260
+ case Ae:
267
261
  case je:
268
- case Me:
269
262
  case Ne:
270
- case xe:
271
- case B:
272
- case Te:
273
- case R:
274
- case Se:
275
- case z:
276
- case ye:
263
+ case we:
277
264
  case De:
265
+ case Ve:
266
+ case He:
267
+ case Re:
268
+ case ze:
269
+ case Be:
278
270
  case Oe:
271
+ case Ce:
272
+ case Me:
273
+ case xe:
279
274
  case ke:
280
- case Ae: return !0;
275
+ case Se:
276
+ case Ee:
277
+ case Pe:
278
+ case Fe:
279
+ case Ie:
280
+ case Le: return !0;
281
281
  default: return !1;
282
282
  }
283
283
  }
284
284
  //#endregion
285
285
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
286
- function He(e, t) {
287
- return ze(e, (n, r, i, a) => {
286
+ function Ye(e, t) {
287
+ return Ke(e, (n, r, i, a) => {
288
288
  let o = t?.(n, r, i, a);
289
289
  if (o !== void 0) return o;
290
290
  if (typeof e == "object") {
291
- if (L(e) === "[object Object]" && typeof e.constructor != "function") {
291
+ if (be(e) === "[object Object]" && typeof e.constructor != "function") {
292
292
  let t = {};
293
- return a.set(e, t), H(t, e, i, a), t;
293
+ return a.set(e, t), V(t, e, i, a), t;
294
294
  }
295
295
  switch (Object.prototype.toString.call(e)) {
296
- case B:
297
- case z:
298
- case ve: {
296
+ case Ce:
297
+ case Se:
298
+ case we: {
299
299
  let t = new e.constructor(e?.valueOf());
300
- return H(t, e), t;
300
+ return V(t, e), t;
301
301
  }
302
- case V: {
302
+ case Te: {
303
303
  let t = {};
304
- return H(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
304
+ return V(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
305
305
  }
306
306
  default: return;
307
307
  }
@@ -310,35 +310,35 @@ function He(e, t) {
310
310
  }
311
311
  //#endregion
312
312
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
313
- function Ue(e) {
314
- return He(e);
313
+ function Xe(e) {
314
+ return Ye(e);
315
315
  }
316
316
  //#endregion
317
317
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
318
- function We(e) {
319
- return typeof e == "object" && !!e && L(e) === "[object Arguments]";
318
+ function Ze(e) {
319
+ return typeof e == "object" && !!e && be(e) === "[object Arguments]";
320
320
  }
321
321
  //#endregion
322
322
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
323
- function Ge(e) {
323
+ function Qe(e) {
324
324
  return typeof e == "object" && !!e;
325
325
  }
326
326
  //#endregion
327
327
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
328
- function Ke(e) {
329
- return Ge(e) && le(e);
328
+ function $e(e) {
329
+ return Qe(e) && he(e);
330
330
  }
331
331
  //#endregion
332
332
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/function/noop.mjs
333
- function qe() {}
333
+ function et() {}
334
334
  //#endregion
335
335
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
336
- function Je(e) {
337
- return Re(e);
336
+ function tt(e) {
337
+ return Ge(e);
338
338
  }
339
339
  //#endregion
340
340
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
341
- function Ye(e) {
341
+ function nt(e) {
342
342
  if (typeof e != "object" || !e) return !1;
343
343
  if (Object.getPrototypeOf(e) === null) return !0;
344
344
  if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -351,9 +351,9 @@ function Ye(e) {
351
351
  }
352
352
  //#endregion
353
353
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/object/clone.mjs
354
- function Xe(e) {
355
- if (_e(e)) return e;
356
- if (Array.isArray(e) || Re(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
354
+ function rt(e) {
355
+ if (ye(e)) return e;
356
+ if (Array.isArray(e) || Ge(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
357
357
  let t = Object.getPrototypeOf(e);
358
358
  if (t == null) return Object.assign(Object.create(t), e);
359
359
  let n = t.constructor;
@@ -374,106 +374,106 @@ function Xe(e) {
374
374
  }
375
375
  //#endregion
376
376
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
377
- function Ze(e, ...t) {
377
+ function it(e, ...t) {
378
378
  let n = t.slice(0, -1), r = t[t.length - 1], i = e;
379
379
  for (let e = 0; e < n.length; e++) {
380
380
  let t = n[e];
381
- i = Qe(i, t, r, /* @__PURE__ */ new Map());
381
+ i = at(i, t, r, /* @__PURE__ */ new Map());
382
382
  }
383
383
  return i;
384
384
  }
385
- function Qe(e, t, n, r) {
386
- if (_e(e) && (e = Object(e)), typeof t != "object" || !t) return e;
387
- if (r.has(t)) return Xe(r.get(t));
385
+ function at(e, t, n, r) {
386
+ if (ye(e) && (e = Object(e)), typeof t != "object" || !t) return e;
387
+ if (r.has(t)) return rt(r.get(t));
388
388
  if (r.set(t, e), Array.isArray(t)) {
389
389
  t = t.slice();
390
390
  for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
391
391
  }
392
- let i = [...Object.keys(t), ...I(t)];
392
+ let i = [...Object.keys(t), ...B(t)];
393
393
  for (let a = 0; a < i.length; a++) {
394
394
  let o = i[a];
395
- if (ue(o)) continue;
395
+ if (ge(o)) continue;
396
396
  let s = t[o], c = e[o];
397
- if (We(s) && (s = { ...s }), We(c) && (c = { ...c }), Le(s) && (s = Ue(s)), Array.isArray(s)) if (Array.isArray(c)) {
397
+ if (Ze(s) && (s = { ...s }), Ze(c) && (c = { ...c }), We(s) && (s = Xe(s)), Array.isArray(s)) if (Array.isArray(c)) {
398
398
  let e = [], t = Reflect.ownKeys(c);
399
399
  for (let n = 0; n < t.length; n++) {
400
400
  let r = t[n];
401
401
  e[r] = c[r];
402
402
  }
403
403
  c = e;
404
- } else if (Ke(c)) {
404
+ } else if ($e(c)) {
405
405
  let e = [];
406
406
  for (let t = 0; t < c.length; t++) e[t] = c[t];
407
407
  c = e;
408
408
  } else c = [];
409
409
  let l = n(c, s, o, e, t, r);
410
- l === void 0 ? Array.isArray(s) || Ge(c) && Ge(s) && (Ye(c) || Ye(s) || Je(c) || Je(s)) ? e[o] = Qe(c, s, n, r) : c == null && Ye(s) ? e[o] = Qe({}, s, n, r) : c == null && Je(s) ? e[o] = Ue(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
410
+ l === void 0 ? Array.isArray(s) || Qe(c) && Qe(s) && (nt(c) || nt(s) || tt(c) || tt(s)) ? e[o] = at(c, s, n, r) : c == null && nt(s) ? e[o] = at({}, s, n, r) : c == null && tt(s) ? e[o] = Xe(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
411
411
  }
412
412
  return e;
413
413
  }
414
414
  //#endregion
415
415
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/compat/object/merge.mjs
416
- function U(e, ...t) {
417
- return Ze(e, ...t, qe);
416
+ function H(e, ...t) {
417
+ return it(e, ...t, et);
418
418
  }
419
419
  //#endregion
420
420
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/string/capitalize.mjs
421
- function $e(e) {
421
+ function ot(e) {
422
422
  return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
423
423
  }
424
424
  //#endregion
425
425
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/string/words.mjs
426
- var et = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
427
- function tt(e) {
428
- return Array.from(e.match(et) ?? []);
426
+ var st = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
427
+ function ct(e) {
428
+ return Array.from(e.match(st) ?? []);
429
429
  }
430
430
  //#endregion
431
431
  //#region node_modules/.pnpm/es-toolkit@1.46.1/node_modules/es-toolkit/dist/string/camelCase.mjs
432
- function nt(e) {
433
- let t = tt(e);
432
+ function lt(e) {
433
+ let t = ct(e);
434
434
  if (t.length === 0) return "";
435
435
  let [n, ...r] = t;
436
- return `${n.toLowerCase()}${r.map((e) => $e(e)).join("")}`;
436
+ return `${n.toLowerCase()}${r.map((e) => ot(e)).join("")}`;
437
437
  }
438
438
  //#endregion
439
439
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/extends.js
440
- function W() {
441
- return W = Object.assign ? Object.assign.bind() : function(e) {
440
+ function U() {
441
+ return U = Object.assign ? Object.assign.bind() : function(e) {
442
442
  for (var t = 1; t < arguments.length; t++) {
443
443
  var n = arguments[t];
444
444
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
445
445
  }
446
446
  return e;
447
- }, W.apply(null, arguments);
447
+ }, U.apply(null, arguments);
448
448
  }
449
449
  //#endregion
450
450
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
451
- function rt(e) {
451
+ function ut(e) {
452
452
  if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
453
453
  return e;
454
454
  }
455
455
  //#endregion
456
456
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
457
- function it(e, t) {
458
- return it = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
457
+ function dt(e, t) {
458
+ return dt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
459
459
  return e.__proto__ = t, e;
460
- }, it(e, t);
460
+ }, dt(e, t);
461
461
  }
462
462
  //#endregion
463
463
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
464
- function at(e, t) {
465
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, it(e, t);
464
+ function ft(e, t) {
465
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, dt(e, t);
466
466
  }
467
467
  //#endregion
468
468
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
469
- function ot(e) {
470
- return ot = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
469
+ function pt(e) {
470
+ return pt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
471
471
  return e.__proto__ || Object.getPrototypeOf(e);
472
- }, ot(e);
472
+ }, pt(e);
473
473
  }
474
474
  //#endregion
475
475
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
476
- function st(e) {
476
+ function mt(e) {
477
477
  try {
478
478
  return Function.toString.call(e).indexOf("[native code]") !== -1;
479
479
  } catch {
@@ -482,48 +482,48 @@ function st(e) {
482
482
  }
483
483
  //#endregion
484
484
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
485
- function ct() {
485
+ function ht() {
486
486
  try {
487
487
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
488
488
  } catch {}
489
- return (ct = function() {
489
+ return (ht = function() {
490
490
  return !!e;
491
491
  })();
492
492
  }
493
493
  //#endregion
494
494
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/construct.js
495
- function lt(e, t, n) {
496
- if (ct()) return Reflect.construct.apply(null, arguments);
495
+ function gt(e, t, n) {
496
+ if (ht()) return Reflect.construct.apply(null, arguments);
497
497
  var r = [null];
498
498
  r.push.apply(r, t);
499
499
  var i = new (e.bind.apply(e, r))();
500
- return n && it(i, n.prototype), i;
500
+ return n && dt(i, n.prototype), i;
501
501
  }
502
502
  //#endregion
503
503
  //#region node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
504
- function ut(e) {
504
+ function _t(e) {
505
505
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
506
- return ut = function(e) {
507
- if (e === null || !st(e)) return e;
506
+ return _t = function(e) {
507
+ if (e === null || !mt(e)) return e;
508
508
  if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
509
509
  if (t !== void 0) {
510
510
  if (t.has(e)) return t.get(e);
511
511
  t.set(e, n);
512
512
  }
513
513
  function n() {
514
- return lt(e, arguments, ot(this).constructor);
514
+ return gt(e, arguments, pt(this).constructor);
515
515
  }
516
516
  return n.prototype = Object.create(e.prototype, { constructor: {
517
517
  value: n,
518
518
  enumerable: !1,
519
519
  writable: !0,
520
520
  configurable: !0
521
- } }), it(n, e);
522
- }, ut(e);
521
+ } }), dt(n, e);
522
+ }, _t(e);
523
523
  }
524
524
  //#endregion
525
525
  //#region node_modules/.pnpm/polished@4.3.1/node_modules/polished/dist/polished.esm.js
526
- var dt = {
526
+ var vt = {
527
527
  1: "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
528
528
  2: "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
529
529
  3: "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
@@ -603,40 +603,40 @@ var dt = {
603
603
  77: "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
604
604
  78: "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
605
605
  };
606
- function ft() {
606
+ function yt() {
607
607
  var e = [...arguments], t = e[0], n = [], r;
608
608
  for (r = 1; r < e.length; r += 1) n.push(e[r]);
609
609
  return n.forEach(function(e) {
610
610
  t = t.replace(/%[a-z]/, e);
611
611
  }), t;
612
612
  }
613
- var G = /* @__PURE__ */ function(e) {
614
- at(t, e);
613
+ var W = /* @__PURE__ */ function(e) {
614
+ ft(t, e);
615
615
  function t(t) {
616
616
  var n;
617
617
  if (process.env.NODE_ENV === "production") n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t + " for more information.") || this;
618
618
  else {
619
619
  var r = [...arguments].slice(1);
620
- n = e.call(this, ft.apply(void 0, [dt[t]].concat(r))) || this;
620
+ n = e.call(this, yt.apply(void 0, [vt[t]].concat(r))) || this;
621
621
  }
622
- return rt(n);
622
+ return ut(n);
623
623
  }
624
624
  return t;
625
- }(/* @__PURE__ */ ut(Error));
626
- function pt(e) {
625
+ }(/* @__PURE__ */ _t(Error));
626
+ function bt(e) {
627
627
  return Math.round(e * 255);
628
628
  }
629
- function mt(e, t, n) {
630
- return pt(e) + "," + pt(t) + "," + pt(n);
629
+ function xt(e, t, n) {
630
+ return bt(e) + "," + bt(t) + "," + bt(n);
631
631
  }
632
- function ht(e, t, n, r) {
633
- if (r === void 0 && (r = mt), t === 0) return r(n, n, n);
632
+ function St(e, t, n, r) {
633
+ if (r === void 0 && (r = xt), t === 0) return r(n, n, n);
634
634
  var i = (e % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * n - 1)) * t, o = a * (1 - Math.abs(i % 2 - 1)), s = 0, c = 0, l = 0;
635
635
  i >= 0 && i < 1 ? (s = a, c = o) : i >= 1 && i < 2 ? (s = o, c = a) : i >= 2 && i < 3 ? (c = a, l = o) : i >= 3 && i < 4 ? (c = o, l = a) : i >= 4 && i < 5 ? (s = o, l = a) : i >= 5 && i < 6 && (s = a, l = o);
636
636
  var u = n - a / 2, d = s + u, f = c + u, p = l + u;
637
637
  return r(d, f, p);
638
638
  }
639
- var gt = {
639
+ var Ct = {
640
640
  aliceblue: "f0f8ff",
641
641
  antiquewhite: "faebd7",
642
642
  aqua: "00ffff",
@@ -786,21 +786,21 @@ var gt = {
786
786
  yellow: "ff0",
787
787
  yellowgreen: "9acd32"
788
788
  };
789
- function _t(e) {
789
+ function wt(e) {
790
790
  if (typeof e != "string") return e;
791
791
  var t = e.toLowerCase();
792
- return gt[t] ? "#" + gt[t] : e;
792
+ return Ct[t] ? "#" + Ct[t] : e;
793
793
  }
794
- var vt = /^#[a-fA-F0-9]{6}$/, yt = /^#[a-fA-F0-9]{8}$/, bt = /^#[a-fA-F0-9]{3}$/, xt = /^#[a-fA-F0-9]{4}$/, St = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, Ct = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, wt = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, Tt = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
795
- function Et(e) {
796
- if (typeof e != "string") throw new G(3);
797
- var t = _t(e);
798
- if (t.match(vt)) return {
794
+ var Tt = /^#[a-fA-F0-9]{6}$/, Et = /^#[a-fA-F0-9]{8}$/, Dt = /^#[a-fA-F0-9]{3}$/, Ot = /^#[a-fA-F0-9]{4}$/, kt = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, At = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, jt = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, Mt = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
795
+ function Nt(e) {
796
+ if (typeof e != "string") throw new W(3);
797
+ var t = wt(e);
798
+ if (t.match(Tt)) return {
799
799
  red: parseInt("" + t[1] + t[2], 16),
800
800
  green: parseInt("" + t[3] + t[4], 16),
801
801
  blue: parseInt("" + t[5] + t[6], 16)
802
802
  };
803
- if (t.match(yt)) {
803
+ if (t.match(Et)) {
804
804
  var n = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2));
805
805
  return {
806
806
  red: parseInt("" + t[1] + t[2], 16),
@@ -809,12 +809,12 @@ function Et(e) {
809
809
  alpha: n
810
810
  };
811
811
  }
812
- if (t.match(bt)) return {
812
+ if (t.match(Dt)) return {
813
813
  red: parseInt("" + t[1] + t[1], 16),
814
814
  green: parseInt("" + t[2] + t[2], 16),
815
815
  blue: parseInt("" + t[3] + t[3], 16)
816
816
  };
817
- if (t.match(xt)) {
817
+ if (t.match(Ot)) {
818
818
  var r = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2));
819
819
  return {
820
820
  red: parseInt("" + t[1] + t[1], 16),
@@ -823,33 +823,33 @@ function Et(e) {
823
823
  alpha: r
824
824
  };
825
825
  }
826
- var i = St.exec(t);
826
+ var i = kt.exec(t);
827
827
  if (i) return {
828
828
  red: parseInt("" + i[1], 10),
829
829
  green: parseInt("" + i[2], 10),
830
830
  blue: parseInt("" + i[3], 10)
831
831
  };
832
- var a = Ct.exec(t.substring(0, 50));
832
+ var a = At.exec(t.substring(0, 50));
833
833
  if (a) return {
834
834
  red: parseInt("" + a[1], 10),
835
835
  green: parseInt("" + a[2], 10),
836
836
  blue: parseInt("" + a[3], 10),
837
837
  alpha: parseFloat("" + a[4]) > 1 ? parseFloat("" + a[4]) / 100 : parseFloat("" + a[4])
838
838
  };
839
- var o = wt.exec(t);
839
+ var o = jt.exec(t);
840
840
  if (o) {
841
- var s = "rgb(" + ht(parseInt("" + o[1], 10), parseInt("" + o[2], 10) / 100, parseInt("" + o[3], 10) / 100) + ")", c = St.exec(s);
842
- if (!c) throw new G(4, t, s);
841
+ var s = "rgb(" + St(parseInt("" + o[1], 10), parseInt("" + o[2], 10) / 100, parseInt("" + o[3], 10) / 100) + ")", c = kt.exec(s);
842
+ if (!c) throw new W(4, t, s);
843
843
  return {
844
844
  red: parseInt("" + c[1], 10),
845
845
  green: parseInt("" + c[2], 10),
846
846
  blue: parseInt("" + c[3], 10)
847
847
  };
848
848
  }
849
- var l = Tt.exec(t.substring(0, 50));
849
+ var l = Mt.exec(t.substring(0, 50));
850
850
  if (l) {
851
- var u = "rgb(" + ht(parseInt("" + l[1], 10), parseInt("" + l[2], 10) / 100, parseInt("" + l[3], 10) / 100) + ")", d = St.exec(u);
852
- if (!d) throw new G(4, t, u);
851
+ var u = "rgb(" + St(parseInt("" + l[1], 10), parseInt("" + l[2], 10) / 100, parseInt("" + l[3], 10) / 100) + ")", d = kt.exec(u);
852
+ if (!d) throw new W(4, t, u);
853
853
  return {
854
854
  red: parseInt("" + d[1], 10),
855
855
  green: parseInt("" + d[2], 10),
@@ -857,9 +857,9 @@ function Et(e) {
857
857
  alpha: parseFloat("" + l[4]) > 1 ? parseFloat("" + l[4]) / 100 : parseFloat("" + l[4])
858
858
  };
859
859
  }
860
- throw new G(5);
860
+ throw new W(5);
861
861
  }
862
- function Dt(e) {
862
+ function Pt(e) {
863
863
  var t = e.red / 255, n = e.green / 255, r = e.blue / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
864
864
  if (i === a) return e.alpha === void 0 ? {
865
865
  hue: 0,
@@ -894,171 +894,171 @@ function Dt(e) {
894
894
  alpha: e.alpha
895
895
  };
896
896
  }
897
- function K(e) {
898
- return Dt(Et(e));
897
+ function G(e) {
898
+ return Pt(Nt(e));
899
899
  }
900
- var Ot = function(e) {
900
+ var Ft = function(e) {
901
901
  return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] ? "#" + e[1] + e[3] + e[5] : e;
902
902
  };
903
- function kt(e) {
903
+ function It(e) {
904
904
  var t = e.toString(16);
905
905
  return t.length === 1 ? "0" + t : t;
906
906
  }
907
- function At(e) {
908
- return kt(Math.round(e * 255));
907
+ function Lt(e) {
908
+ return It(Math.round(e * 255));
909
909
  }
910
- function jt(e, t, n) {
911
- return Ot("#" + At(e) + At(t) + At(n));
910
+ function Rt(e, t, n) {
911
+ return Ft("#" + Lt(e) + Lt(t) + Lt(n));
912
912
  }
913
- function Mt(e, t, n) {
914
- return ht(e, t, n, jt);
913
+ function zt(e, t, n) {
914
+ return St(e, t, n, Rt);
915
915
  }
916
- function Nt(e, t, n) {
917
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Mt(e, t, n);
918
- if (typeof e == "object" && t === void 0 && n === void 0) return Mt(e.hue, e.saturation, e.lightness);
919
- throw new G(1);
916
+ function Bt(e, t, n) {
917
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return zt(e, t, n);
918
+ if (typeof e == "object" && t === void 0 && n === void 0) return zt(e.hue, e.saturation, e.lightness);
919
+ throw new W(1);
920
920
  }
921
- function Pt(e, t, n, r) {
922
- if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? Mt(e, t, n) : "rgba(" + ht(e, t, n) + "," + r + ")";
923
- if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? Mt(e.hue, e.saturation, e.lightness) : "rgba(" + ht(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
924
- throw new G(2);
921
+ function Vt(e, t, n, r) {
922
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? zt(e, t, n) : "rgba(" + St(e, t, n) + "," + r + ")";
923
+ if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? zt(e.hue, e.saturation, e.lightness) : "rgba(" + St(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
924
+ throw new W(2);
925
925
  }
926
- function Ft(e, t, n) {
927
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Ot("#" + kt(e) + kt(t) + kt(n));
928
- if (typeof e == "object" && t === void 0 && n === void 0) return Ot("#" + kt(e.red) + kt(e.green) + kt(e.blue));
929
- throw new G(6);
926
+ function Ht(e, t, n) {
927
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return Ft("#" + It(e) + It(t) + It(n));
928
+ if (typeof e == "object" && t === void 0 && n === void 0) return Ft("#" + It(e.red) + It(e.green) + It(e.blue));
929
+ throw new W(6);
930
930
  }
931
- function q(e, t, n, r) {
931
+ function K(e, t, n, r) {
932
932
  if (typeof e == "string" && typeof t == "number") {
933
- var i = Et(e);
933
+ var i = Nt(e);
934
934
  return "rgba(" + i.red + "," + i.green + "," + i.blue + "," + t + ")";
935
- } else if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? Ft(e, t, n) : "rgba(" + e + "," + t + "," + n + "," + r + ")";
936
- else if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? Ft(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
937
- throw new G(7);
935
+ } else if (typeof e == "number" && typeof t == "number" && typeof n == "number" && typeof r == "number") return r >= 1 ? Ht(e, t, n) : "rgba(" + e + "," + t + "," + n + "," + r + ")";
936
+ else if (typeof e == "object" && t === void 0 && n === void 0 && r === void 0) return e.alpha >= 1 ? Ht(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
937
+ throw new W(7);
938
938
  }
939
- var It = function(e) {
939
+ var Ut = function(e) {
940
940
  return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
941
- }, Lt = function(e) {
941
+ }, Wt = function(e) {
942
942
  return typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number" && typeof e.alpha == "number";
943
- }, Rt = function(e) {
943
+ }, Gt = function(e) {
944
944
  return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && (typeof e.alpha != "number" || e.alpha === void 0);
945
- }, zt = function(e) {
945
+ }, Kt = function(e) {
946
946
  return typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number" && typeof e.alpha == "number";
947
947
  };
948
- function J(e) {
949
- if (typeof e != "object") throw new G(8);
950
- if (Lt(e)) return q(e);
951
- if (It(e)) return Ft(e);
952
- if (zt(e)) return Pt(e);
953
- if (Rt(e)) return Nt(e);
954
- throw new G(8);
948
+ function q(e) {
949
+ if (typeof e != "object") throw new W(8);
950
+ if (Wt(e)) return K(e);
951
+ if (Ut(e)) return Ht(e);
952
+ if (Kt(e)) return Vt(e);
953
+ if (Gt(e)) return Bt(e);
954
+ throw new W(8);
955
955
  }
956
- function Bt(e, t, n) {
956
+ function qt(e, t, n) {
957
957
  return function() {
958
958
  var r = n.concat(Array.prototype.slice.call(arguments));
959
- return r.length >= t ? e.apply(this, r) : Bt(e, t, r);
959
+ return r.length >= t ? e.apply(this, r) : qt(e, t, r);
960
960
  };
961
961
  }
962
- function Y(e) {
963
- return Bt(e, e.length, []);
962
+ function J(e) {
963
+ return qt(e, e.length, []);
964
964
  }
965
- function Vt(e, t) {
965
+ function Jt(e, t) {
966
966
  if (t === "transparent") return t;
967
- var n = K(t);
968
- return J(W({}, n, { hue: n.hue + parseFloat(e) }));
967
+ var n = G(t);
968
+ return q(U({}, n, { hue: n.hue + parseFloat(e) }));
969
969
  }
970
- Y(Vt);
971
- function Ht(e, t, n) {
970
+ J(Jt);
971
+ function Yt(e, t, n) {
972
972
  return Math.max(e, Math.min(t, n));
973
973
  }
974
- function Ut(e, t) {
974
+ function Xt(e, t) {
975
975
  if (t === "transparent") return t;
976
- var n = K(t);
977
- return J(W({}, n, { lightness: Ht(0, 1, n.lightness - parseFloat(e)) }));
976
+ var n = G(t);
977
+ return q(U({}, n, { lightness: Yt(0, 1, n.lightness - parseFloat(e)) }));
978
978
  }
979
- var Wt = Y(Ut);
980
- function Gt(e, t) {
979
+ var Zt = J(Xt);
980
+ function Qt(e, t) {
981
981
  if (t === "transparent") return t;
982
- var n = K(t);
983
- return J(W({}, n, { saturation: Ht(0, 1, n.saturation - parseFloat(e)) }));
982
+ var n = G(t);
983
+ return q(U({}, n, { saturation: Yt(0, 1, n.saturation - parseFloat(e)) }));
984
984
  }
985
- Y(Gt);
986
- function Kt(e, t) {
985
+ J(Qt);
986
+ function $t(e, t) {
987
987
  if (t === "transparent") return t;
988
- var n = K(t);
989
- return J(W({}, n, { lightness: Ht(0, 1, n.lightness + parseFloat(e)) }));
988
+ var n = G(t);
989
+ return q(U({}, n, { lightness: Yt(0, 1, n.lightness + parseFloat(e)) }));
990
990
  }
991
- var X = Y(Kt);
992
- function qt(e, t, n) {
991
+ var Y = J($t);
992
+ function en(e, t, n) {
993
993
  if (t === "transparent") return n;
994
994
  if (n === "transparent") return t;
995
995
  if (e === 0) return n;
996
- var r = Et(t), i = W({}, r, { alpha: typeof r.alpha == "number" ? r.alpha : 1 }), a = Et(n), o = W({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), s = i.alpha - o.alpha, c = parseFloat(e) * 2 - 1, l = ((c * s === -1 ? c : c + s) / (1 + c * s) + 1) / 2, u = 1 - l;
997
- return q({
996
+ var r = Nt(t), i = U({}, r, { alpha: typeof r.alpha == "number" ? r.alpha : 1 }), a = Nt(n), o = U({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), s = i.alpha - o.alpha, c = parseFloat(e) * 2 - 1, l = ((c * s === -1 ? c : c + s) / (1 + c * s) + 1) / 2, u = 1 - l;
997
+ return K({
998
998
  red: Math.floor(i.red * l + o.red * u),
999
999
  green: Math.floor(i.green * l + o.green * u),
1000
1000
  blue: Math.floor(i.blue * l + o.blue * u),
1001
1001
  alpha: i.alpha * parseFloat(e) + o.alpha * (1 - parseFloat(e))
1002
1002
  });
1003
1003
  }
1004
- var Jt = Y(qt);
1005
- function Yt(e, t) {
1004
+ var tn = J(en);
1005
+ function nn(e, t) {
1006
1006
  if (t === "transparent") return t;
1007
- var n = Et(t);
1008
- return q(W({}, n, { alpha: Ht(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 + parseFloat(e) * 100) / 100) }));
1007
+ var n = Nt(t);
1008
+ return K(U({}, n, { alpha: Yt(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 + parseFloat(e) * 100) / 100) }));
1009
1009
  }
1010
- Y(Yt);
1011
- function Xt(e, t) {
1010
+ J(nn);
1011
+ function rn(e, t) {
1012
1012
  if (t === "transparent") return t;
1013
- var n = K(t);
1014
- return J(W({}, n, { saturation: Ht(0, 1, n.saturation + parseFloat(e)) }));
1013
+ var n = G(t);
1014
+ return q(U({}, n, { saturation: Yt(0, 1, n.saturation + parseFloat(e)) }));
1015
1015
  }
1016
- Y(Xt);
1017
- function Zt(e, t) {
1018
- return t === "transparent" ? t : J(W({}, K(t), { hue: parseFloat(e) }));
1016
+ J(rn);
1017
+ function an(e, t) {
1018
+ return t === "transparent" ? t : q(U({}, G(t), { hue: parseFloat(e) }));
1019
1019
  }
1020
- Y(Zt);
1021
- function Qt(e, t) {
1022
- return t === "transparent" ? t : J(W({}, K(t), { lightness: parseFloat(e) }));
1020
+ J(an);
1021
+ function on(e, t) {
1022
+ return t === "transparent" ? t : q(U({}, G(t), { lightness: parseFloat(e) }));
1023
1023
  }
1024
- Y(Qt);
1025
- function $t(e, t) {
1026
- return t === "transparent" ? t : J(W({}, K(t), { saturation: parseFloat(e) }));
1024
+ J(on);
1025
+ function sn(e, t) {
1026
+ return t === "transparent" ? t : q(U({}, G(t), { saturation: parseFloat(e) }));
1027
1027
  }
1028
- Y($t);
1029
- function en(e, t) {
1030
- return t === "transparent" ? t : Jt(parseFloat(e), "rgb(0, 0, 0)", t);
1028
+ J(sn);
1029
+ function cn(e, t) {
1030
+ return t === "transparent" ? t : tn(parseFloat(e), "rgb(0, 0, 0)", t);
1031
1031
  }
1032
- Y(en);
1033
- function tn(e, t) {
1034
- return t === "transparent" ? t : Jt(parseFloat(e), "rgb(255, 255, 255)", t);
1032
+ J(cn);
1033
+ function ln(e, t) {
1034
+ return t === "transparent" ? t : tn(parseFloat(e), "rgb(255, 255, 255)", t);
1035
1035
  }
1036
- Y(tn);
1037
- function nn(e, t) {
1036
+ J(ln);
1037
+ function un(e, t) {
1038
1038
  if (t === "transparent") return t;
1039
- var n = Et(t);
1040
- return q(W({}, n, { alpha: Ht(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 - parseFloat(e) * 100).toFixed(2) / 100) }));
1039
+ var n = Nt(t);
1040
+ return K(U({}, n, { alpha: Yt(0, 1, ((typeof n.alpha == "number" ? n.alpha : 1) * 100 - parseFloat(e) * 100).toFixed(2) / 100) }));
1041
1041
  }
1042
- var rn = Y(nn);
1042
+ var dn = J(un);
1043
1043
  //#endregion
1044
1044
  //#region src/theme/utils.ts
1045
- function an(e) {
1045
+ function fn(e) {
1046
1046
  return {
1047
- 1: X(.35, e),
1048
- 2: X(.3, e),
1049
- 3: X(.25, e),
1050
- 4: X(.2, e),
1051
- 5: X(.15, e),
1052
- 6: X(.12, e),
1053
- 7: X(.08, e),
1054
- 8: X(.04, e),
1047
+ 1: Y(.35, e),
1048
+ 2: Y(.3, e),
1049
+ 3: Y(.25, e),
1050
+ 4: Y(.2, e),
1051
+ 5: Y(.15, e),
1052
+ 6: Y(.12, e),
1053
+ 7: Y(.08, e),
1054
+ 8: Y(.04, e),
1055
1055
  9: e,
1056
- 10: Wt(.08, e),
1057
- 11: Wt(.1, e),
1058
- 12: Wt(.15, e)
1056
+ 10: Zt(.08, e),
1057
+ 11: Zt(.1, e),
1058
+ 12: Zt(.15, e)
1059
1059
  };
1060
1060
  }
1061
- var on = [
1061
+ var pn = [
1062
1062
  .03,
1063
1063
  .05,
1064
1064
  .1,
@@ -1072,14 +1072,14 @@ var on = [
1072
1072
  .8,
1073
1073
  .9
1074
1074
  ];
1075
- function sn(e = {}) {
1076
- let t = U({}, se, e), n = e.colors?.brand?.base ?? e.colors?.primary?.main, r;
1075
+ function mn(e = {}) {
1076
+ let t = H({}, pe, e), n = e.colors?.brand?.base ?? e.colors?.primary?.main, r;
1077
1077
  if (n) {
1078
- let e = an(n);
1078
+ let e = fn(n);
1079
1079
  t.colors.primary.main = n, t.colors.primary.ultraDark = e[12], t.colors.primary.dark = n, t.colors.primary.toku = e[10], t.colors.primary.light1 = e[7], t.colors.primary.light2 = e[4], t.colors.primary.light3 = e[3], t.colors.primary.light4 = e[2], t.colors.primary.light5 = e[1], r = {};
1080
1080
  for (let [t, n] of Object.entries(e)) r[`--color-primary-${t}`] = n, r[`--color-brand-${t}`] = n;
1081
1081
  for (let e = 1; e <= 12; e++) {
1082
- let t = rn(1 - on[e - 1], n);
1082
+ let t = dn(1 - pn[e - 1], n);
1083
1083
  r[`--color-primary-alpha-${e}`] = t, r[`--color-brand-a-${e}`] = t;
1084
1084
  }
1085
1085
  }
@@ -1087,10 +1087,10 @@ function sn(e = {}) {
1087
1087
  }
1088
1088
  //#endregion
1089
1089
  //#region src/composables/theme.ts
1090
- var cn = Symbol("theme"), Z = () => {
1091
- let e = p(cn, void 0);
1092
- return r(() => e?.value ?? se);
1093
- }, ln = /* @__PURE__ */ d({
1090
+ var hn = Symbol("theme"), X = () => {
1091
+ let e = p(hn, void 0);
1092
+ return r(() => e?.value ?? pe);
1093
+ }, gn = /* @__PURE__ */ d({
1094
1094
  __name: "TChip",
1095
1095
  props: { variant: { default: "default" } },
1096
1096
  setup(e) {
@@ -1100,16 +1100,16 @@ var cn = Symbol("theme"), Z = () => {
1100
1100
  v2d9fac57: k(n).colors.primary.main,
1101
1101
  v4320e4fd: k(n).colors.primary.light5
1102
1102
  }));
1103
- let t = e, n = Z();
1103
+ let t = e, n = X();
1104
1104
  return (e, n) => (C(), s("div", { class: v(["t-chip", [`t-chip--${t.variant}`]]) }, [D(e.$slots, "default", {}, void 0, !0)], 2));
1105
1105
  }
1106
- }), un = (e, t) => {
1106
+ }), Z = (e, t) => {
1107
1107
  let n = e.__vccOpts || e;
1108
1108
  for (let [e, r] of t) n[e] = r;
1109
1109
  return n;
1110
- }, dn = /* @__PURE__ */ un(ln, [["__scopeId", "data-v-519905d4"]]), fn = (e) => nt(e), pn = (e) => {
1111
- let t = Z(), n = r(() => fn(e.value)), i = r(() => n.value === "primary" ? t.value.colors.primary.toku : Wt(.15, t.value.colors[n.value])), a = r(() => n.value === "primary" ? t.value.colors.primary.main : t.value.colors[n.value]), o = r(() => n.value === "primary" ? t.value.colors.primary.light1 : X(.15, t.value.colors[n.value])), s = r(() => n.value === "primary" ? t.value.colors.primary.light2 : X(.2, t.value.colors[n.value])), c = r(() => n.value === "primary" ? t.value.colors.primary.light3 : X(.25, t.value.colors[n.value]));
1112
- return r(() => P({
1110
+ }, _n = /* @__PURE__ */ Z(gn, [["__scopeId", "data-v-519905d4"]]), vn = (e) => lt(e), yn = (e) => {
1111
+ let t = X(), n = r(() => vn(e.value)), i = r(() => n.value === "primary" ? t.value.colors.primary.toku : Zt(.15, t.value.colors[n.value])), a = r(() => n.value === "primary" ? t.value.colors.primary.main : t.value.colors[n.value]), o = r(() => n.value === "primary" ? t.value.colors.primary.light1 : Y(.15, t.value.colors[n.value])), s = r(() => n.value === "primary" ? t.value.colors.primary.light2 : Y(.2, t.value.colors[n.value])), c = r(() => n.value === "primary" ? t.value.colors.primary.light3 : Y(.25, t.value.colors[n.value]));
1112
+ return r(() => F({
1113
1113
  "&, *": {
1114
1114
  margin: 0,
1115
1115
  padding: 0,
@@ -1202,12 +1202,12 @@ var cn = Symbol("theme"), Z = () => {
1202
1202
  "&--tertiary:disabled &__spinner": { color: t.value.colors.gray.medium1 },
1203
1203
  "&--secondary &__spinner, &--tertiary &__spinner": { color: a.value }
1204
1204
  }));
1205
- }, mn = {
1205
+ }, bn = {
1206
1206
  variant: "primary",
1207
1207
  size: "medium",
1208
1208
  type: "button",
1209
1209
  color: "primary"
1210
- }, hn = /* @__PURE__ */ d({
1210
+ }, xn = /* @__PURE__ */ d({
1211
1211
  name: "TButton",
1212
1212
  props: {
1213
1213
  variant: String,
@@ -1222,7 +1222,7 @@ var cn = Symbol("theme"), Z = () => {
1222
1222
  },
1223
1223
  emits: ["click"],
1224
1224
  setup(e, { attrs: t, slots: n, emit: i }) {
1225
- let a = r(() => U({}, mn, e, t)), o = pn(r(() => a.value.color)), s = Z(), c = r(() => [
1225
+ let a = r(() => H({}, bn, e, t)), o = yn(r(() => a.value.color)), s = X(), c = r(() => [
1226
1226
  o.value,
1227
1227
  `${o.value}--${a.value.variant}`,
1228
1228
  `${o.value}--${a.value.size}`,
@@ -1239,16 +1239,16 @@ var cn = Symbol("theme"), Z = () => {
1239
1239
  disabled: a.value.disabled,
1240
1240
  onClick: l
1241
1241
  }, t), [
1242
- a.value.leftIcon && u(N, { icon: `${s.value.iconSet}:${a.value.leftIcon}` }, null),
1242
+ a.value.leftIcon && u(P, { icon: `${s.value.iconSet}:${a.value.leftIcon}` }, null),
1243
1243
  n.default?.(),
1244
- a.value.rightIcon && u(N, { icon: `${s.value.iconSet}:${a.value.rightIcon}` }, null),
1245
- a.value.loading && u(N, {
1244
+ a.value.rightIcon && u(P, { icon: `${s.value.iconSet}:${a.value.rightIcon}` }, null),
1245
+ a.value.loading && u(P, {
1246
1246
  class: `${o.value}__spinner`,
1247
1247
  icon: "svg-spinners:90-ring-with-bg"
1248
1248
  }, null)
1249
1249
  ]);
1250
1250
  }
1251
- }), gn = {
1251
+ }), Sn = {
1252
1252
  color: "#000",
1253
1253
  size: "medium",
1254
1254
  variant: "outline"
@@ -1264,7 +1264,7 @@ var cn = Symbol("theme"), Z = () => {
1264
1264
  variant: String
1265
1265
  },
1266
1266
  setup(e, { attrs: t }) {
1267
- let n = r(() => U({}, gn, e, t)), i = Z(), a = r(() => he(i.value.colors, n.value.color) || n.value.color), o = r(() => `${i.value.iconSet}:${n.value.icon}${n.value.variant === "solid" ? "-solid" : ""}`), s = {
1267
+ let n = r(() => H({}, Sn, e, t)), i = X(), a = r(() => R(i.value.colors, n.value.color) || n.value.color), o = r(() => `${i.value.iconSet}:${n.value.icon}${n.value.variant === "solid" ? "-solid" : ""}`), s = {
1268
1268
  miniature: "6px",
1269
1269
  "extra-small": "10px",
1270
1270
  small: "16px",
@@ -1273,16 +1273,16 @@ var cn = Symbol("theme"), Z = () => {
1273
1273
  "extra-large": "28px",
1274
1274
  huge: "44px"
1275
1275
  }, c = r(() => s[n.value.size]);
1276
- return () => u(N, g({
1276
+ return () => u(P, g({
1277
1277
  icon: o.value,
1278
1278
  color: a.value,
1279
1279
  height: c.value,
1280
1280
  width: c.value
1281
1281
  }, t), null);
1282
1282
  }
1283
- }), _n = () => {
1284
- let e = Z();
1285
- return r(() => P({
1283
+ }), Cn = () => {
1284
+ let e = X();
1285
+ return r(() => F({
1286
1286
  "&, *": {
1287
1287
  margin: 0,
1288
1288
  boxSizing: "border-box"
@@ -1341,37 +1341,37 @@ var cn = Symbol("theme"), Z = () => {
1341
1341
  "&--default > &__status-indicator": { background: e.value.colors.gray.medium1 },
1342
1342
  "&--success": {
1343
1343
  color: e.value.colors.success,
1344
- background: q(e.value.colors.success, .1)
1344
+ background: K(e.value.colors.success, .1)
1345
1345
  },
1346
1346
  "&--success > &__text": { color: e.value.colors.success },
1347
1347
  "&--success > &__status-indicator": { background: e.value.colors.success },
1348
- "&--in-process": { background: q(e.value.colors.inProcess, .1) },
1348
+ "&--in-process": { background: K(e.value.colors.inProcess, .1) },
1349
1349
  "&--in-process > &__text": { color: e.value.colors.inProcessDark },
1350
1350
  "&--in-process > &__status-indicator": { background: e.value.colors.inProcessDark },
1351
- "&--pending": { background: q(e.value.colors.info, .1) },
1351
+ "&--pending": { background: K(e.value.colors.info, .1) },
1352
1352
  "&--pending > &__text": { color: e.value.colors.info },
1353
1353
  "&--pending > &__status-indicator": { background: e.value.colors.info },
1354
- "&--toku": { background: q(e.value.colors.primary.light4, 1) },
1354
+ "&--toku": { background: K(e.value.colors.primary.light4, 1) },
1355
1355
  "&--toku > &__text": { color: e.value.colors.primary.main },
1356
1356
  "&--toku > &__status-indicator": { background: e.value.colors.primary.main },
1357
1357
  "&--error": {
1358
1358
  color: e.value.colors.error,
1359
- background: q(e.value.colors.error, .1)
1359
+ background: K(e.value.colors.error, .1)
1360
1360
  },
1361
1361
  "&--error > &__text": { color: e.value.colors.error },
1362
1362
  "&--error > &__status-indicator": { background: e.value.colors.error }
1363
1363
  }));
1364
- }, vn = {
1364
+ }, wn = {
1365
1365
  size: "medium",
1366
1366
  variant: "default"
1367
- }, yn = /* @__PURE__ */ d({
1367
+ }, Tn = /* @__PURE__ */ d({
1368
1368
  name: "TTag",
1369
1369
  props: {
1370
1370
  size: String,
1371
1371
  variant: String
1372
1372
  },
1373
1373
  setup(e, { slots: t }) {
1374
- let n = r(() => U({}, vn, e)), i = _n(), a = r(() => [
1374
+ let n = r(() => H({}, wn, e)), i = Cn(), a = r(() => [
1375
1375
  i.value,
1376
1376
  `${i.value}--${n.value.variant}`,
1377
1377
  `${i.value}--${n.value.size}`
@@ -1384,13 +1384,13 @@ var cn = Symbol("theme"), Z = () => {
1384
1384
  class: `${i.value}__text ${i.value}__text--${n.value.size}`
1385
1385
  }, [t.default?.()])]);
1386
1386
  }
1387
- }), bn = ["data-borderless", "disabled"], xn = ["data-media"], Sn = { class: "t-card-button__text" }, Cn = { class: "t-card-button__title" }, wn = {
1387
+ }), En = ["data-borderless", "disabled"], Dn = ["data-media"], On = { class: "t-card-button__text" }, kn = { class: "t-card-button__title" }, An = {
1388
1388
  key: 0,
1389
1389
  class: "t-card-button__subtitle"
1390
- }, Tn = {
1390
+ }, jn = {
1391
1391
  key: 1,
1392
1392
  class: "t-card-button__tag"
1393
- }, En = { class: "t-card-button__trailing" }, Dn = /* @__PURE__ */ un(/* @__PURE__ */ d({
1393
+ }, Mn = { class: "t-card-button__trailing" }, Nn = /* @__PURE__ */ Z(/* @__PURE__ */ d({
1394
1394
  name: "TCardButton",
1395
1395
  __name: "TCardButton",
1396
1396
  props: {
@@ -1412,24 +1412,24 @@ var cn = Symbol("theme"), Z = () => {
1412
1412
  key: 0,
1413
1413
  class: "t-card-button__media",
1414
1414
  "data-media": t.$slots.icon ? "icon" : "image"
1415
- }, [t.$slots.icon ? D(t.$slots, "icon", { key: 0 }, void 0, !0) : D(t.$slots, "image", { key: 1 }, void 0, !0)], 8, xn)) : o("", !0),
1416
- c("div", Sn, [D(t.$slots, "title", {}, () => [c("p", Cn, O(e.title), 1)], !0), e.subtitle ? (C(), s("p", wn, O(e.subtitle), 1)) : o("", !0)]),
1417
- e.tag || t.$slots.tag ? (C(), s("span", Tn, [D(t.$slots, "tag", {}, () => [u(k(yn), {
1415
+ }, [t.$slots.icon ? D(t.$slots, "icon", { key: 0 }, void 0, !0) : D(t.$slots, "image", { key: 1 }, void 0, !0)], 8, Dn)) : o("", !0),
1416
+ c("div", On, [D(t.$slots, "title", {}, () => [c("p", kn, O(e.title), 1)], !0), e.subtitle ? (C(), s("p", An, O(e.subtitle), 1)) : o("", !0)]),
1417
+ e.tag || t.$slots.tag ? (C(), s("span", jn, [D(t.$slots, "tag", {}, () => [u(k(Tn), {
1418
1418
  size: "small",
1419
1419
  variant: e.tagVariant
1420
1420
  }, {
1421
- default: M(() => [l(O(e.tag), 1)]),
1421
+ default: N(() => [l(O(e.tag), 1)]),
1422
1422
  _: 1
1423
1423
  }, 8, ["variant"])], !0)])) : o("", !0),
1424
- c("span", En, [D(t.$slots, "trailing", {}, () => [u(k(Q), {
1424
+ c("span", Mn, [D(t.$slots, "trailing", {}, () => [u(k(Q), {
1425
1425
  icon: "chevron-right",
1426
1426
  size: "small",
1427
1427
  color: "currentColor"
1428
1428
  })], !0)])
1429
- ], 8, bn));
1429
+ ], 8, En));
1430
1430
  }
1431
- }), [["__scopeId", "data-v-b2bdf7ca"]]), On = () => {
1432
- let e = Z(), t = e.value.colors.gray.light1, n = (e, t) => {
1431
+ }), [["__scopeId", "data-v-b2bdf7ca"]]), Pn = () => {
1432
+ let e = X(), t = e.value.colors.gray.light1, n = (e, t) => {
1433
1433
  switch (t) {
1434
1434
  case "large": return encodeURIComponent(`<svg width="10" height="9.5" viewBox="0 0 10 9.5" fill="none" xmlns="http://www.w3.org/2000/svg">
1435
1435
  <path d="M0.833344 3.79167L3.75001 6.70834L9.16668 1.29167" stroke="${e}" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/>
@@ -1440,7 +1440,7 @@ var cn = Symbol("theme"), Z = () => {
1440
1440
  default: return "";
1441
1441
  }
1442
1442
  };
1443
- return r(() => P({
1443
+ return r(() => F({
1444
1444
  "&, *": {
1445
1445
  margin: 0,
1446
1446
  padding: 0,
@@ -1525,10 +1525,10 @@ var cn = Symbol("theme"), Z = () => {
1525
1525
  }
1526
1526
  }
1527
1527
  }));
1528
- }, kn = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, An = {
1528
+ }, Fn = () => `checkbox-${Math.random().toString(36).substring(2, 9)}-${Date.now()}`, In = {
1529
1529
  size: "large",
1530
1530
  value: !1
1531
- }, jn = /* @__PURE__ */ d({
1531
+ }, Ln = /* @__PURE__ */ d({
1532
1532
  name: "TCheckbox",
1533
1533
  props: {
1534
1534
  labelPosition: String,
@@ -1544,12 +1544,12 @@ var cn = Symbol("theme"), Z = () => {
1544
1544
  "update:modelValue"
1545
1545
  ],
1546
1546
  setup(e, { attrs: t, slots: n, emit: i }) {
1547
- let a = kn(), o = r(() => U({}, An, e, t, { id: e.id ?? t.id ?? a })), s = On(), c = r(() => [s.value, `${s.value}--${o.value.size}`]), l = r(() => [
1547
+ let a = Fn(), o = r(() => H({}, In, e, t, { id: e.id ?? t.id ?? a })), s = Pn(), c = r(() => [s.value, `${s.value}--${o.value.size}`]), l = r(() => [
1548
1548
  s.value,
1549
1549
  `${s.value}--${o.value.size}`,
1550
1550
  { [`${s.value}--disabled`]: o.value.disabled }
1551
1551
  ]), d = T(o.value.modelValue || o.value.value);
1552
- j([() => o.value.modelValue, () => o.value.value], () => {
1552
+ M([() => o.value.modelValue, () => o.value.value], () => {
1553
1553
  d.value = o.value.modelValue || o.value.value;
1554
1554
  });
1555
1555
  let f = () => {
@@ -1574,9 +1574,9 @@ var cn = Symbol("theme"), Z = () => {
1574
1574
  }, [n.default()])
1575
1575
  ]);
1576
1576
  }
1577
- }), Mn = (e) => {
1578
- let t = Z();
1579
- return r(() => P({
1577
+ }), Rn = (e) => {
1578
+ let t = X();
1579
+ return r(() => F({
1580
1580
  "&, *": {
1581
1581
  margin: 0,
1582
1582
  boxSizing: "border-box"
@@ -1620,6 +1620,11 @@ var cn = Symbol("theme"), Z = () => {
1620
1620
  left: "100%",
1621
1621
  borderTopRightRadius: "0.5rem"
1622
1622
  },
1623
+ "&--bottom-end &__menu": {
1624
+ right: 0,
1625
+ borderTopLeftRadius: "0.5rem",
1626
+ borderTopRightRadius: "0.5rem"
1627
+ },
1623
1628
  "&--middle-left &__menu": { left: "-100%" },
1624
1629
  "&--middle-right &__menu": { right: "unset" },
1625
1630
  "&--small &__menu": { width: "240px" },
@@ -1637,7 +1642,7 @@ var cn = Symbol("theme"), Z = () => {
1637
1642
  marginBlock: "0.5rem"
1638
1643
  }
1639
1644
  }));
1640
- }, Nn = () => r(() => P({
1645
+ }, zn = () => r(() => F({
1641
1646
  position: "fixed",
1642
1647
  display: "none",
1643
1648
  padding: "0.625rem",
@@ -1666,21 +1671,21 @@ var cn = Symbol("theme"), Z = () => {
1666
1671
  borderTopRightRadius: "0.5rem",
1667
1672
  borderBottomLeftRadius: "0"
1668
1673
  }
1669
- })), Pn = (e) => {
1674
+ })), Bn = (e) => {
1670
1675
  let t = [];
1671
1676
  return e?.forEach((e) => {
1672
- e.type?.name === "TDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...Pn(e.children));
1677
+ e.type?.name === "TDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...Bn(e.children));
1673
1678
  }), t;
1674
1679
  };
1675
1680
  //#endregion
1676
1681
  //#region src/components/TDropdown/TDropdown.tsx
1677
- function Fn(e) {
1682
+ function Vn(e) {
1678
1683
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !m(e);
1679
1684
  }
1680
- var In = {
1685
+ var Hn = {
1681
1686
  size: "small",
1682
1687
  position: "center"
1683
- }, Ln = /* @__PURE__ */ d({
1688
+ }, Un = /* @__PURE__ */ d({
1684
1689
  name: "TDropdown",
1685
1690
  props: {
1686
1691
  open: Boolean,
@@ -1691,7 +1696,7 @@ var In = {
1691
1696
  },
1692
1697
  emits: ["cancel"],
1693
1698
  setup(e, { slots: n, attrs: i, emit: a }) {
1694
- let o = r(() => U({}, In, e, i)), s = T(null), c = T(null), l = T(null), d = T({
1699
+ let o = r(() => H({}, Hn, e, i)), s = T(null), c = T(null), l = T(null), d = T({
1695
1700
  top: 0,
1696
1701
  left: 0
1697
1702
  }), f = () => {
@@ -1708,6 +1713,7 @@ var In = {
1708
1713
  i = n - l.value.clientWidth;
1709
1714
  break;
1710
1715
  case "middle-left":
1716
+ case "bottom-end":
1711
1717
  i = n - l.value.clientWidth + c.value.clientWidth;
1712
1718
  break;
1713
1719
  case "middle-right":
@@ -1727,7 +1733,7 @@ var In = {
1727
1733
  top: r,
1728
1734
  left: i
1729
1735
  };
1730
- }, p = Nn(), m = r(() => [
1736
+ }, p = zn(), m = r(() => [
1731
1737
  p.value,
1732
1738
  `${p.value}--${o.value.size}`,
1733
1739
  `${p.value}--${o.value.position}`,
@@ -1736,7 +1742,7 @@ var In = {
1736
1742
  top: `${d.value.top}px`,
1737
1743
  left: `${d.value.left}px`,
1738
1744
  width: o.value.fullWidth ? `${c.value?.clientWidth}px` : void 0
1739
- })), g = Mn(r(() => l.value?.clientHeight ?? 0)), _ = r(() => [
1745
+ })), g = Rn(r(() => l.value?.clientHeight ?? 0)), _ = r(() => [
1740
1746
  g.value,
1741
1747
  `${g.value}--${o.value.size}`,
1742
1748
  `${g.value}--${o.value.position}`,
@@ -1755,7 +1761,7 @@ var In = {
1755
1761
  t && t.focus();
1756
1762
  }
1757
1763
  };
1758
- o.value.attachToBody && j([
1764
+ o.value.attachToBody && M([
1759
1765
  () => o.value.open,
1760
1766
  () => o.value.position,
1761
1767
  () => o.value.size,
@@ -1768,7 +1774,7 @@ var In = {
1768
1774
  }), S(() => {
1769
1775
  o.value.attachToBody && (window.removeEventListener("scroll", f), window.removeEventListener("resize", f)), document.removeEventListener("click", v), document.removeEventListener("keydown", y);
1770
1776
  });
1771
- let C = r(() => Pn(n.default?.() || [])), w = () => u("div", {
1777
+ let C = r(() => Bn(n.default?.() || [])), w = () => u("div", {
1772
1778
  ref: l,
1773
1779
  class: o.value.attachToBody ? m.value : `${g.value}__menu`,
1774
1780
  style: o.value.attachToBody ? h.value : void 0,
@@ -1780,12 +1786,12 @@ var In = {
1780
1786
  return u("div", {
1781
1787
  ref: s,
1782
1788
  class: _.value
1783
- }, [u("div", { ref: c }, [n.trigger?.()]), o.value.open && (o.value.attachToBody ? u(t, { to: "body" }, Fn(e = w()) ? e : { default: () => [e] }) : w())]);
1789
+ }, [u("div", { ref: c }, [n.trigger?.()]), o.value.open && (o.value.attachToBody ? u(t, { to: "body" }, Vn(e = w()) ? e : { default: () => [e] }) : w())]);
1784
1790
  };
1785
1791
  }
1786
- }), Rn = () => {
1787
- let e = Z();
1788
- return r(() => P({
1792
+ }), Wn = () => {
1793
+ let e = X();
1794
+ return r(() => F({
1789
1795
  "&, *": {
1790
1796
  margin: 0,
1791
1797
  boxSizing: "border-box"
@@ -1807,12 +1813,12 @@ var In = {
1807
1813
  cursor: "not-allowed"
1808
1814
  }
1809
1815
  }));
1810
- }, zn = /* @__PURE__ */ d({
1816
+ }, Gn = /* @__PURE__ */ d({
1811
1817
  name: "TDropdownItem",
1812
1818
  emits: ["click"],
1813
1819
  props: { disabled: Boolean },
1814
1820
  setup(e, { slots: t, emit: n, attrs: i }) {
1815
- let a = r(() => U({}, e, i)), o = Rn(), s = r(() => [o.value, { [`${o.value}--disabled`]: a.value.disabled }]), c = () => {
1821
+ let a = r(() => H({}, e, i)), o = Wn(), s = r(() => [o.value, { [`${o.value}--disabled`]: a.value.disabled }]), c = () => {
1816
1822
  a.value.disabled || n("click");
1817
1823
  }, l = (e) => {
1818
1824
  e.key === "Enter" && !a.value.disabled && (n("click"), e.preventDefault());
@@ -1826,9 +1832,9 @@ var In = {
1826
1832
  "aria-disabled": a.value.disabled
1827
1833
  }, [t.default?.()]);
1828
1834
  }
1829
- }), Bn = () => {
1830
- let e = Z();
1831
- return r(() => P({
1835
+ }), Kn = () => {
1836
+ let e = X();
1837
+ return r(() => F({
1832
1838
  "&, *": {
1833
1839
  margin: 0,
1834
1840
  padding: 0,
@@ -1902,7 +1908,7 @@ var In = {
1902
1908
  transform: "translateY(50%)"
1903
1909
  }
1904
1910
  }));
1905
- }, Vn = { type: "text" }, Hn = /* @__PURE__ */ d({
1911
+ }, qn = { type: "text" }, Jn = /* @__PURE__ */ d({
1906
1912
  name: "TTextInput",
1907
1913
  emits: [
1908
1914
  "input",
@@ -1938,7 +1944,7 @@ var In = {
1938
1944
  step: [String, Number]
1939
1945
  },
1940
1946
  setup(e, { attrs: t, emit: n, slots: i, expose: a }) {
1941
- let o = r(() => U({}, Vn, e, t)), s = Bn(), c = Z(), l = r({
1947
+ let o = r(() => H({}, qn, e, t)), s = Kn(), c = X(), l = r({
1942
1948
  get: () => o.value.modelValue === void 0 ? o.value.value : o.value.modelValue,
1943
1949
  set: (e) => {
1944
1950
  n("update:modelValue", e), n("input", e), n("change", e);
@@ -1971,7 +1977,7 @@ var In = {
1971
1977
  for: o.value.id
1972
1978
  }, [o.value.label]),
1973
1979
  u("div", { class: `${s.value}__input-wrapper` }, [
1974
- i.leftIcon?.() || o.value.leftIcon && u(N, {
1980
+ i.leftIcon?.() || o.value.leftIcon && u(P, {
1975
1981
  icon: `${c.value.iconSet}:${o.value.leftIcon}`,
1976
1982
  class: [`${s.value}__icon`, `${s.value}__icon--left`]
1977
1983
  }, null),
@@ -1994,7 +2000,7 @@ var In = {
1994
2000
  ref: m,
1995
2001
  step: o.value.step
1996
2002
  }), null),
1997
- i.rightIcon?.() || o.value.rightIcon && u(N, {
2003
+ i.rightIcon?.() || o.value.rightIcon && u(P, {
1998
2004
  icon: `${c.value.iconSet}:${o.value.rightIcon}`,
1999
2005
  class: [`${s.value}__icon`, `${s.value}__icon--right`]
2000
2006
  }, null)
@@ -2002,7 +2008,7 @@ var In = {
2002
2008
  i.helperText?.() || o.value.helperText && u("p", { class: `${s.value}__helper-text` }, [o.value.helperText])
2003
2009
  ]);
2004
2010
  }
2005
- }), Un = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""), Wn = /* @__PURE__ */ d({
2011
+ }), Yn = (e) => e.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, ""), Xn = /* @__PURE__ */ d({
2006
2012
  name: "TCombobox",
2007
2013
  emits: [
2008
2014
  "input",
@@ -2050,7 +2056,7 @@ var In = {
2050
2056
  }, y = (e) => {
2051
2057
  e.key === "Escape" && (f(), m(), p());
2052
2058
  }, b = r(() => i.value === "" ? e.options : e.options.filter((e) => {
2053
- let t = Un(e.label), n = Un(i.value);
2059
+ let t = Yn(e.label), n = Yn(i.value);
2054
2060
  return t.includes(n);
2055
2061
  }));
2056
2062
  x(() => {
@@ -2058,7 +2064,7 @@ var In = {
2058
2064
  }), S(() => {
2059
2065
  document.removeEventListener("click", _), s.value?.removeEventListener("keydown", y);
2060
2066
  });
2061
- let C = () => u(Hn, {
2067
+ let C = () => u(Jn, {
2062
2068
  ref: c,
2063
2069
  modelValue: i.value,
2064
2070
  label: e.label,
@@ -2068,22 +2074,22 @@ var In = {
2068
2074
  onChange: g,
2069
2075
  disabled: l.value
2070
2076
  }, null);
2071
- return j(() => e.modelValue, () => {
2077
+ return M(() => e.modelValue, () => {
2072
2078
  i.value = e.modelValue ?? "";
2073
2079
  }), () => u("div", {
2074
2080
  ref: s,
2075
2081
  role: "combobox",
2076
2082
  "aria-controls": "menu",
2077
2083
  "aria-expanded": o.value
2078
- }, [u(Ln, {
2084
+ }, [u(Un, {
2079
2085
  open: o.value,
2080
2086
  "full-width": !0
2081
2087
  }, {
2082
2088
  trigger: () => u(C, null, null),
2083
- default: () => b.value.map((e) => u(zn, { onClick: () => v(e) }, { default: () => [e.label] }))
2089
+ default: () => b.value.map((e) => u(Gn, { onClick: () => v(e) }, { default: () => [e.label] }))
2084
2090
  })]);
2085
2091
  }
2086
- }), Gn = () => {
2092
+ }), Zn = () => {
2087
2093
  let e = new Set(["class", "style"]), t = ([t]) => e.has(t), n = ([e]) => /^on[A-Z]/.test(e), i = ee(), a = r(() => Object.entries(i).filter(([e]) => e !== "data-state")), o = r(() => Object.fromEntries(a.value.filter(t))), s = r(() => Object.fromEntries(a.value.filter(n))), c = r(() => Object.fromEntries(a.value.filter((e) => !t(e) && !n(e))));
2088
2094
  return {
2089
2095
  wrapperAttrs: o,
@@ -2091,29 +2097,29 @@ var In = {
2091
2097
  staticAttrs: c,
2092
2098
  listenerAttrs: s
2093
2099
  };
2094
- }, Kn = ["data-loading", "data-empty"], qn = { class: "t-command-palette__panel" }, Jn = { class: "t-command-palette__search" }, Yn = [
2100
+ }, Qn = ["data-loading", "data-empty"], $n = { class: "t-command-palette__panel" }, er = { class: "t-command-palette__search" }, tr = [
2095
2101
  "aria-label",
2096
2102
  "aria-expanded",
2097
2103
  "aria-activedescendant",
2098
2104
  "placeholder",
2099
2105
  "value"
2100
- ], Xn = ["data-hidden", "aria-label"], Zn = {
2106
+ ], nr = ["data-hidden", "aria-label"], rr = {
2101
2107
  key: 0,
2102
2108
  role: "status",
2103
2109
  class: "t-command-palette__status"
2104
- }, Qn = [
2110
+ }, ir = [
2105
2111
  "role",
2106
2112
  "aria-labelledby",
2107
2113
  "aria-busy"
2108
- ], $n = {
2114
+ ], ar = {
2109
2115
  key: 0,
2110
2116
  class: "t-command-palette__skeleton",
2111
2117
  "aria-hidden": "true"
2112
- }, er = { class: "t-command-palette__skeleton-lines" }, tr = [
2118
+ }, or = { class: "t-command-palette__skeleton-lines" }, sr = [
2113
2119
  "role",
2114
2120
  "data-section",
2115
2121
  "aria-labelledby"
2116
- ], nr = ["id"], rr = ["data-group", "aria-labelledby"], ir = ["id"], ar = [
2122
+ ], cr = ["id"], lr = ["data-group", "aria-labelledby"], ur = ["id"], dr = [
2117
2123
  "id",
2118
2124
  "aria-label",
2119
2125
  "aria-selected",
@@ -2123,26 +2129,26 @@ var In = {
2123
2129
  "data-disabled",
2124
2130
  "onClick",
2125
2131
  "onPointermove"
2126
- ], or = ["data-icon-variant"], sr = { class: "t-command-palette__item-label" }, cr = { class: "t-command-palette__item-title" }, lr = {
2132
+ ], fr = ["data-icon-variant"], pr = { class: "t-command-palette__item-label" }, mr = { class: "t-command-palette__item-title" }, hr = {
2127
2133
  key: 0,
2128
2134
  class: "t-command-palette__item-prefix"
2129
- }, ur = { class: "t-command-palette__item-text" }, dr = {
2135
+ }, gr = { class: "t-command-palette__item-text" }, _r = {
2130
2136
  key: 0,
2131
2137
  class: "t-command-palette__item-suffix"
2132
- }, fr = { class: "t-command-palette__item-trailing" }, pr = {
2138
+ }, vr = { class: "t-command-palette__item-trailing" }, yr = {
2133
2139
  key: 0,
2134
2140
  class: "t-command-palette__item-chip"
2135
- }, mr = {
2141
+ }, br = {
2136
2142
  key: 1,
2137
2143
  class: "t-command-palette__item-enter",
2138
2144
  "aria-hidden": "true"
2139
- }, hr = {
2145
+ }, xr = {
2140
2146
  key: 1,
2141
2147
  class: "t-command-palette__empty"
2142
- }, gr = {
2148
+ }, Sr = {
2143
2149
  key: 1,
2144
2150
  class: "t-command-palette__footer"
2145
- }, _r = /* @__PURE__ */ un(/* @__PURE__ */ d({
2151
+ }, Cr = /* @__PURE__ */ Z(/* @__PURE__ */ d({
2146
2152
  name: "TCommandPalette",
2147
2153
  inheritAttrs: !1,
2148
2154
  __name: "TCommandPalette",
@@ -2167,8 +2173,8 @@ var In = {
2167
2173
  }),
2168
2174
  emits: /* @__PURE__ */ h(["highlight", "select"], ["update:open", "update:searchTerm"]),
2169
2175
  setup(t, { emit: n }) {
2170
- let i = n, d = re(t, "open"), f = re(t, "searchTerm"), p = r(() => t.autofocus ?? !0), m = Z(), { wrapperAttrs: h, controlAttrs: v } = Gn(), S = ne(), w = `${S}-input`, ee = `${S}-listbox`, te = (e) => `${S}-group-${e}`, A = (e, t) => `${S}-option-${e}-${t}`, M = T(), P = T(), ie = T(), F = T("");
2171
- j(f, (e) => {
2176
+ let i = n, d = re(t, "open"), f = re(t, "searchTerm"), p = r(() => t.autofocus ?? !0), m = X(), { wrapperAttrs: h, controlAttrs: v } = Zn(), S = ne(), w = `${S}-input`, ee = `${S}-listbox`, te = (e) => `${S}-group-${e}`, A = (e, t) => `${S}-option-${e}-${t}`, j = T(), N = T(), ie = T(), F = T("");
2177
+ M(f, (e) => {
2172
2178
  e !== F.value && (F.value = e);
2173
2179
  }, { immediate: !0 });
2174
2180
  let ae = (e) => {
@@ -2232,39 +2238,39 @@ var In = {
2232
2238
  group: e,
2233
2239
  groupIndex: t,
2234
2240
  itemIndex: r
2235
- })))), L = r(() => I.value.length === 0), R = T(-1), z = r(() => I.value[R.value]), B = r(() => z.value ? A(z.value.groupIndex, z.value.itemIndex) : void 0), ve = (e) => !!e && !e.item.disabled, V = (e, t) => {
2241
+ })))), ve = r(() => I.value.length === 0), L = T(-1), R = r(() => I.value[L.value]), z = r(() => R.value ? A(R.value.groupIndex, R.value.itemIndex) : void 0), ye = (e) => !!e && !e.item.disabled, B = (e, t) => {
2236
2242
  let n = I.value.length;
2237
2243
  if (n === 0) return -1;
2238
2244
  for (let r = 0; r < n; r += 1) {
2239
2245
  let i = ((e + t * r) % n + n) % n;
2240
- if (ve(I.value[i])) return i;
2246
+ if (ye(I.value[i])) return i;
2241
2247
  }
2242
2248
  return -1;
2243
- }, ye = async () => {
2244
- await _(), B.value && ie.value?.querySelector(`[id="${B.value}"]`)?.scrollIntoView({ block: "nearest" });
2245
- }, be = (e) => {
2246
- e !== R.value && (e !== -1 && !ve(I.value[e]) || (R.value = e, i("highlight", z.value?.item, z.value?.group), ye()));
2249
+ }, be = async () => {
2250
+ await _(), z.value && ie.value?.querySelector(`[id="${z.value}"]`)?.scrollIntoView({ block: "nearest" });
2247
2251
  }, xe = (e) => {
2248
- let t = V(R.value === -1 ? e > 0 ? 0 : I.value.length - 1 : R.value + e, e);
2249
- t !== -1 && be(t);
2252
+ e !== L.value && (e !== -1 && !ye(I.value[e]) || (L.value = e, i("highlight", R.value?.item, R.value?.group), be()));
2250
2253
  }, Se = (e) => {
2251
- e.item.disabled || (e.item.onSelect?.(), i("select", e.item, e.group), e.group?.keepOpenOnSelect || (d.value = !1));
2254
+ let t = B(L.value === -1 ? e > 0 ? 0 : I.value.length - 1 : L.value + e, e);
2255
+ t !== -1 && xe(t);
2252
2256
  }, Ce = (e) => {
2257
+ e.item.disabled || (e.item.onSelect?.(), i("select", e.item, e.group), e.group?.keepOpenOnSelect || (d.value = !1));
2258
+ }, we = (e) => {
2253
2259
  switch (e.key) {
2254
2260
  case "ArrowDown":
2255
- e.preventDefault(), xe(1);
2261
+ e.preventDefault(), Se(1);
2256
2262
  break;
2257
2263
  case "ArrowUp":
2258
- e.preventDefault(), xe(-1);
2264
+ e.preventDefault(), Se(-1);
2259
2265
  break;
2260
2266
  case "Home":
2261
- e.preventDefault(), be(V(0, 1));
2267
+ e.preventDefault(), xe(B(0, 1));
2262
2268
  break;
2263
2269
  case "End":
2264
- e.preventDefault(), be(V(I.value.length - 1, -1));
2270
+ e.preventDefault(), xe(B(I.value.length - 1, -1));
2265
2271
  break;
2266
2272
  case "Enter":
2267
- z.value && (e.preventDefault(), Se(z.value));
2273
+ R.value && (e.preventDefault(), Ce(R.value));
2268
2274
  break;
2269
2275
  case "Escape":
2270
2276
  d.value = !1;
@@ -2272,43 +2278,43 @@ var In = {
2272
2278
  default: break;
2273
2279
  }
2274
2280
  };
2275
- j(I, () => {
2276
- R.value = V(0, 1), i("highlight", z.value?.item, z.value?.group), ye();
2281
+ M(I, () => {
2282
+ L.value = B(0, 1), i("highlight", R.value?.item, R.value?.group), be();
2277
2283
  });
2278
- let we = async () => {
2279
- let e = M.value;
2280
- e && (d.value ? (e.open || e.showModal(), await _(), p.value && P.value?.focus(), ye()) : e.open && e.close());
2284
+ let Te = async () => {
2285
+ let e = j.value;
2286
+ e && (d.value ? (e.open || e.showModal(), await _(), p.value && N.value?.focus(), be()) : e.open && e.close());
2281
2287
  };
2282
- j(d, (e) => {
2283
- e && (R.value = V(0, 1)), we();
2284
- }, { immediate: !0 }), x(we);
2285
- let Te = () => {
2288
+ M(d, (e) => {
2289
+ e && (L.value = B(0, 1)), Te();
2290
+ }, { immediate: !0 }), x(Te);
2291
+ let Ee = () => {
2286
2292
  d.value = !1;
2287
- }, Ee = (e) => {
2288
- e.target === M.value && (d.value = !1);
2289
- }, De = () => {
2290
- F.value = "", ae(""), P.value?.focus();
2291
- }, Oe = (e) => `${m.value.iconSet}:${e}`, ke = (e) => typeof e == "string" ? e : void 0;
2293
+ }, De = (e) => {
2294
+ e.target === j.value && (d.value = !1);
2295
+ }, Oe = () => {
2296
+ F.value = "", ae(""), N.value?.focus();
2297
+ }, ke = (e) => `${m.value.iconSet}:${e}`, Ae = (e) => typeof e == "string" ? e : void 0;
2292
2298
  return (n, r) => (C(), s("dialog", g({
2293
2299
  ref_key: "dialogRef",
2294
- ref: M
2300
+ ref: j
2295
2301
  }, k(h), {
2296
2302
  class: "t-command-palette",
2297
2303
  "data-loading": t.loading || void 0,
2298
- "data-empty": L.value && !t.loading || void 0,
2299
- onClose: Te,
2300
- onClick: Ee
2301
- }), [c("div", qn, [
2302
- c("div", Jn, [
2303
- u(k(N), {
2304
- icon: Oe("magnifying-glass"),
2304
+ "data-empty": ve.value && !t.loading || void 0,
2305
+ onClose: Ee,
2306
+ onClick: De
2307
+ }), [c("div", $n, [
2308
+ c("div", er, [
2309
+ u(k(P), {
2310
+ icon: ke("magnifying-glass"),
2305
2311
  class: "t-command-palette__search-icon",
2306
2312
  "aria-hidden": "true"
2307
2313
  }, null, 8, ["icon"]),
2308
2314
  c("input", g({
2309
2315
  id: w,
2310
2316
  ref_key: "inputRef",
2311
- ref: P
2317
+ ref: N
2312
2318
  }, k(v), {
2313
2319
  class: "t-command-palette__input",
2314
2320
  type: "text",
@@ -2318,46 +2324,46 @@ var In = {
2318
2324
  spellcheck: "false",
2319
2325
  "aria-autocomplete": "list",
2320
2326
  "aria-label": n.$attrs["aria-label"] ?? t.placeholder ?? void 0,
2321
- "aria-expanded": d.value && !L.value,
2327
+ "aria-expanded": d.value && !ve.value,
2322
2328
  "aria-controls": ee,
2323
- "aria-activedescendant": B.value,
2329
+ "aria-activedescendant": z.value,
2324
2330
  placeholder: t.placeholder,
2325
2331
  value: F.value,
2326
2332
  onInput: ce,
2327
- onKeydown: Ce
2328
- }), null, 16, Yn),
2333
+ onKeydown: we
2334
+ }), null, 16, tr),
2329
2335
  c("button", {
2330
2336
  type: "button",
2331
2337
  class: "t-command-palette__clear",
2332
2338
  "data-hidden": !F.value || void 0,
2333
2339
  "aria-label": t.clearLabel,
2334
- onClick: De
2335
- }, [u(k(N), {
2336
- icon: Oe("x-mark"),
2340
+ onClick: Oe
2341
+ }, [u(k(P), {
2342
+ icon: ke("x-mark"),
2337
2343
  "aria-hidden": "true"
2338
- }, null, 8, ["icon"])], 8, Xn),
2344
+ }, null, 8, ["icon"])], 8, nr),
2339
2345
  c("kbd", {
2340
2346
  class: "t-command-palette__esc",
2341
2347
  "aria-hidden": "true"
2342
2348
  }, O("ESC"))
2343
2349
  ]),
2344
- t.loading ? (C(), s("p", Zn, O(t.loadingLabel), 1)) : o("", !0),
2350
+ t.loading ? (C(), s("p", rr, O(t.loadingLabel), 1)) : o("", !0),
2345
2351
  c("div", {
2346
2352
  id: ee,
2347
2353
  ref_key: "listRef",
2348
2354
  ref: ie,
2349
2355
  class: "t-command-palette__list",
2350
- role: L.value ? void 0 : "listbox",
2351
- "aria-labelledby": L.value ? void 0 : w,
2356
+ role: ve.value ? void 0 : "listbox",
2357
+ "aria-labelledby": ve.value ? void 0 : w,
2352
2358
  "aria-busy": t.loading || void 0
2353
2359
  }, [
2354
- t.loading ? (C(), s("div", $n, [(C(), s(e, null, E(pe, (t) => c("div", {
2360
+ t.loading ? (C(), s("div", ar, [(C(), s(e, null, E(pe, (t) => c("div", {
2355
2361
  key: t.id,
2356
2362
  class: "t-command-palette__group"
2357
2363
  }, [r[1] ||= c("div", { class: "t-command-palette__skeleton-label" }, null, -1), (C(!0), s(e, null, E(t.rows, (e) => (C(), s("div", {
2358
2364
  key: e,
2359
2365
  class: "t-command-palette__skeleton-row"
2360
- }, [r[0] ||= c("span", { class: "t-command-palette__skeleton-box" }, null, -1), c("span", er, [c("span", {
2366
+ }, [r[0] ||= c("span", { class: "t-command-palette__skeleton-box" }, null, -1), c("span", or, [c("span", {
2361
2367
  class: "t-command-palette__skeleton-title",
2362
2368
  style: y({ width: `${ge(e)}%` })
2363
2369
  }, null, 4), c("span", {
@@ -2377,7 +2383,7 @@ var In = {
2377
2383
  }, [D(n.$slots, "section-label", {
2378
2384
  section: t.section,
2379
2385
  groups: t.entries.map((e) => e.group)
2380
- }, () => [l(O(t.section.label), 1)], !0)], 8, nr)) : o("", !0), (C(!0), s(e, null, E(t.entries, ({ group: t, index: r }) => (C(), s("div", {
2386
+ }, () => [l(O(t.section.label), 1)], !0)], 8, cr)) : o("", !0), (C(!0), s(e, null, E(t.entries, ({ group: t, index: r }) => (C(), s("div", {
2381
2387
  key: t.id,
2382
2388
  class: "t-command-palette__group",
2383
2389
  role: "group",
@@ -2390,28 +2396,28 @@ var In = {
2390
2396
  }, [D(n.$slots, "group-label", {
2391
2397
  group: t,
2392
2398
  index: r
2393
- }, () => [l(O(t.label), 1)], !0)], 8, ir)) : o("", !0), (C(!0), s(e, null, E(t.items, (i, u) => (C(), s("div", {
2399
+ }, () => [l(O(t.label), 1)], !0)], 8, ur)) : o("", !0), (C(!0), s(e, null, E(t.items, (i, u) => (C(), s("div", {
2394
2400
  id: A(r, u),
2395
2401
  key: A(r, u),
2396
2402
  class: "t-command-palette__item",
2397
2403
  role: "option",
2398
2404
  "aria-label": i.label,
2399
- "aria-selected": A(r, u) === B.value,
2405
+ "aria-selected": A(r, u) === z.value,
2400
2406
  "aria-disabled": i.disabled || void 0,
2401
- "data-highlighted": A(r, u) === B.value || void 0,
2407
+ "data-highlighted": A(r, u) === z.value || void 0,
2402
2408
  "data-active": i.active || void 0,
2403
2409
  "data-disabled": i.disabled || void 0,
2404
- onClick: (e) => Se({
2410
+ onClick: (e) => Ce({
2405
2411
  item: i,
2406
2412
  group: t,
2407
2413
  groupIndex: r,
2408
2414
  itemIndex: u
2409
2415
  }),
2410
- onPointermove: (e) => be(I.value.findIndex((e) => e.groupIndex === r && e.itemIndex === u))
2416
+ onPointermove: (e) => xe(I.value.findIndex((e) => e.groupIndex === r && e.itemIndex === u))
2411
2417
  }, [D(n.$slots, "item", {
2412
2418
  item: i,
2413
2419
  group: t,
2414
- active: A(r, u) === B.value
2420
+ active: A(r, u) === z.value
2415
2421
  }, () => [
2416
2422
  c("span", {
2417
2423
  class: "t-command-palette__item-leading",
@@ -2419,46 +2425,46 @@ var In = {
2419
2425
  }, [D(n.$slots, "item-leading", {
2420
2426
  item: i,
2421
2427
  group: t,
2422
- active: A(r, u) === B.value
2423
- }, () => [i.icon ? (C(), a(k(N), {
2428
+ active: A(r, u) === z.value
2429
+ }, () => [i.icon ? (C(), a(k(P), {
2424
2430
  key: 0,
2425
- icon: Oe(i.icon),
2431
+ icon: ke(i.icon),
2426
2432
  "aria-hidden": "true"
2427
- }, null, 8, ["icon"])) : o("", !0)], !0)], 8, or),
2428
- c("span", sr, [D(n.$slots, "item-label", {
2433
+ }, null, 8, ["icon"])) : o("", !0)], !0)], 8, fr),
2434
+ c("span", pr, [D(n.$slots, "item-label", {
2429
2435
  item: i,
2430
2436
  group: t,
2431
- active: A(r, u) === B.value
2432
- }, () => [c("span", cr, [i.prefix ? (C(), s("span", lr, O(i.prefix), 1)) : o("", !0), c("span", ur, [D(n.$slots, "item-text", {
2437
+ active: A(r, u) === z.value
2438
+ }, () => [c("span", mr, [i.prefix ? (C(), s("span", hr, O(i.prefix), 1)) : o("", !0), c("span", gr, [D(n.$slots, "item-text", {
2433
2439
  item: i,
2434
2440
  group: t,
2435
- active: A(r, u) === B.value
2436
- }, () => [l(O(i.label), 1)], !0)])]), i.suffix || n.$slots["item-suffix"] ? (C(), s("span", dr, [D(n.$slots, "item-suffix", {
2441
+ active: A(r, u) === z.value
2442
+ }, () => [l(O(i.label), 1)], !0)])]), i.suffix || n.$slots["item-suffix"] ? (C(), s("span", _r, [D(n.$slots, "item-suffix", {
2437
2443
  item: i,
2438
2444
  group: t,
2439
- active: A(r, u) === B.value
2445
+ active: A(r, u) === z.value
2440
2446
  }, () => [l(O(i.suffix), 1)], !0)])) : o("", !0)], !0)]),
2441
- c("span", fr, [D(n.$slots, "item-trailing", {
2447
+ c("span", vr, [D(n.$slots, "item-trailing", {
2442
2448
  item: i,
2443
2449
  group: t,
2444
- active: A(r, u) === B.value
2450
+ active: A(r, u) === z.value
2445
2451
  }, () => [
2446
- ke(i.chip) ? (C(), s("span", pr, O(ke(i.chip)), 1)) : o("", !0),
2452
+ Ae(i.chip) ? (C(), s("span", yr, O(Ae(i.chip)), 1)) : o("", !0),
2447
2453
  (C(!0), s(e, null, E(i.kbds, (e) => (C(), s("kbd", {
2448
2454
  key: e,
2449
2455
  class: "t-command-palette__item-kbd"
2450
2456
  }, O(e), 1))), 128)),
2451
- A(r, u) === B.value && !i.kbds?.length ? (C(), s("span", mr, O("↵"))) : o("", !0)
2457
+ A(r, u) === z.value && !i.kbds?.length ? (C(), s("span", br, O("↵"))) : o("", !0)
2452
2458
  ], !0)])
2453
- ], !0)], 40, ar))), 128))], 8, rr))), 128))], 8, tr))), 128)),
2454
- L.value && !t.loading ? (C(), s("div", hr, [D(n.$slots, "empty", { searchTerm: f.value }, void 0, !0)])) : o("", !0)
2455
- ], 8, Qn),
2456
- n.$slots.footer ? (C(), s("div", gr, [D(n.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2457
- ])], 16, Kn));
2459
+ ], !0)], 40, dr))), 128))], 8, lr))), 128))], 8, sr))), 128)),
2460
+ ve.value && !t.loading ? (C(), s("div", xr, [D(n.$slots, "empty", { searchTerm: f.value }, void 0, !0)])) : o("", !0)
2461
+ ], 8, ir),
2462
+ n.$slots.footer ? (C(), s("div", Sr, [D(n.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2463
+ ])], 16, Qn));
2458
2464
  }
2459
- }), [["__scopeId", "data-v-e95fc3d0"]]), vr = () => {
2460
- let e = Z();
2461
- return r(() => P({
2465
+ }), [["__scopeId", "data-v-e95fc3d0"]]), wr = () => {
2466
+ let e = X();
2467
+ return r(() => F({
2462
2468
  "&, & > *": {
2463
2469
  margin: 0,
2464
2470
  padding: 0,
@@ -2529,7 +2535,7 @@ var In = {
2529
2535
  zIndex: 45
2530
2536
  }
2531
2537
  }));
2532
- }, yr = { size: "medium" }, br = /* @__PURE__ */ d({
2538
+ }, Tr = { size: "medium" }, Er = /* @__PURE__ */ d({
2533
2539
  name: "TModal",
2534
2540
  props: {
2535
2541
  open: Boolean,
@@ -2540,7 +2546,7 @@ var In = {
2540
2546
  },
2541
2547
  emits: ["close", "cancel"],
2542
2548
  setup(e, { slots: t, attrs: n, emit: i, expose: a }) {
2543
- let o = r(() => U({}, yr, e, n)), s = T(o.value.open), c = vr(), l = r(() => [
2549
+ let o = r(() => H({}, Tr, e, n)), s = T(o.value.open), c = wr(), l = r(() => [
2544
2550
  c.value,
2545
2551
  `${c.value}--${o.value.size}`,
2546
2552
  {
@@ -2553,7 +2559,7 @@ var In = {
2553
2559
  }, p = () => {
2554
2560
  s.value = !1, d.value?.close();
2555
2561
  };
2556
- j([() => o.value.open, d], () => {
2562
+ M([() => o.value.open, d], () => {
2557
2563
  d.value && o.value.open ? f() : p();
2558
2564
  }, { immediate: !0 });
2559
2565
  let m = (e) => {
@@ -2574,7 +2580,7 @@ var In = {
2574
2580
  close: p
2575
2581
  });
2576
2582
  let _ = T(0);
2577
- j(s, () => {
2583
+ M(s, () => {
2578
2584
  !s.value && o.value.destroyOnClose && (_.value += 1);
2579
2585
  });
2580
2586
  let v = () => u("dialog", {
@@ -2602,9 +2608,9 @@ var In = {
2602
2608
  ]);
2603
2609
  return o.value.nonBlocking ? () => u("div", null, [o.value.nonBlocking && s.value && u("div", { class: `${c.value}__backdrop` }, null), u(v, null, null)]) : () => u(v, null, null);
2604
2610
  }
2605
- }), xr = (e) => {
2606
- let t = Z();
2607
- return r(() => P({
2611
+ }), Dr = (e) => {
2612
+ let t = X();
2613
+ return r(() => F({
2608
2614
  margin: 0,
2609
2615
  padding: 0,
2610
2616
  boxSizing: "border-box",
@@ -2677,7 +2683,7 @@ var In = {
2677
2683
  "&--normal": { fontStyle: "normal" },
2678
2684
  "&--italic": { fontStyle: "italic" }
2679
2685
  }));
2680
- }, Sr = {
2686
+ }, Or = {
2681
2687
  h1: "h1",
2682
2688
  h2: "h2",
2683
2689
  h3: "h3",
@@ -2693,13 +2699,13 @@ var In = {
2693
2699
  b4: "p",
2694
2700
  b5: "p",
2695
2701
  b6: "p"
2696
- }, Cr = [
2702
+ }, kr = [
2697
2703
  "http:",
2698
2704
  "https:",
2699
2705
  "mailto:",
2700
2706
  "tel:",
2701
2707
  "ftp:"
2702
- ], wr = (e) => Cr.some((t) => e.trim().toLowerCase().startsWith(t)), Tr = (e) => {
2708
+ ], Ar = (e) => kr.some((t) => e.trim().toLowerCase().startsWith(t)), jr = (e) => {
2703
2709
  let t = [
2704
2710
  {
2705
2711
  regex: /\*\*([\s\S]+?)\*\*/g,
@@ -2723,59 +2729,59 @@ var In = {
2723
2729
  url: a ? t[2]?.trim() : void 0
2724
2730
  });
2725
2731
  return n;
2726
- }, Er = (e) => {
2732
+ }, Mr = (e) => {
2727
2733
  let t = [...e].sort((e, t) => e.start - t.start || t.end - e.end), n = [], r = 0;
2728
2734
  for (let e of t) e.start >= r && (n.push(e), r = e.end);
2729
2735
  return n;
2730
- }, Dr = (e) => {
2736
+ }, Nr = (e) => {
2731
2737
  if (!e) return [e];
2732
- let t = Tr(e);
2738
+ let t = jr(e);
2733
2739
  if (t.length === 0) return [e];
2734
- let n = Er(t), r = [], i = 0;
2740
+ let n = Mr(t), r = [], i = 0;
2735
2741
  for (let t of n) {
2736
2742
  t.start > i && r.push(e.substring(i, t.start));
2737
- let n = Dr(t.content);
2738
- t.tag === "a" ? t.url && wr(t.url) ? r.push(f("a", {
2743
+ let n = Nr(t.content);
2744
+ t.tag === "a" ? t.url && Ar(t.url) ? r.push(f("a", {
2739
2745
  href: t.url,
2740
2746
  target: "_blank",
2741
2747
  rel: "noopener noreferrer"
2742
2748
  }, n)) : r.push(...n) : r.push(f(t.tag, n)), i = t.end;
2743
2749
  }
2744
2750
  return i < e.length && r.push(e.substring(i)), r.length > 0 ? r : [e];
2745
- }, Or = (e) => typeof e == "object" && !!e && "type" in e && e.type !== void 0, kr = (e) => {
2746
- if (e.type === n) return Dr(typeof e.children == "string" ? e.children : "");
2751
+ }, Pr = (e) => typeof e == "object" && !!e && "type" in e && e.type !== void 0, Fr = (e) => {
2752
+ if (e.type === n) return Nr(typeof e.children == "string" ? e.children : "");
2747
2753
  if (!e.children) return e;
2748
2754
  let t;
2749
2755
  if (Array.isArray(e.children)) t = e.children.flatMap((e) => {
2750
- if (typeof e == "string") return Dr(e);
2751
- if (Or(e)) {
2752
- let t = kr(e);
2756
+ if (typeof e == "string") return Nr(e);
2757
+ if (Pr(e)) {
2758
+ let t = Fr(e);
2753
2759
  return Array.isArray(t) ? t : [t];
2754
2760
  }
2755
2761
  return [];
2756
2762
  });
2757
- else if (typeof e.children == "string") t = Dr(e.children);
2758
- else if (Or(e.children)) {
2759
- let n = kr(e.children);
2763
+ else if (typeof e.children == "string") t = Nr(e.children);
2764
+ else if (Pr(e.children)) {
2765
+ let n = Fr(e.children);
2760
2766
  t = Array.isArray(n) ? n : [n];
2761
2767
  } else return e;
2762
2768
  return f(e.type, { ...e.props }, t);
2763
- }, Ar = (e) => {
2764
- if (typeof e == "string") return Dr(e);
2769
+ }, Ir = (e) => {
2770
+ if (typeof e == "string") return Nr(e);
2765
2771
  if (Array.isArray(e)) return e.flatMap((e) => {
2766
- if (typeof e == "string") return Dr(e);
2767
- if (Or(e)) {
2768
- let t = kr(e);
2772
+ if (typeof e == "string") return Nr(e);
2773
+ if (Pr(e)) {
2774
+ let t = Fr(e);
2769
2775
  return Array.isArray(t) ? t : [t];
2770
2776
  }
2771
2777
  return [e];
2772
2778
  });
2773
- if (Or(e)) {
2774
- let t = kr(e);
2779
+ if (Pr(e)) {
2780
+ let t = Fr(e);
2775
2781
  return Array.isArray(t) ? t : [t];
2776
2782
  }
2777
2783
  return [e];
2778
- }, jr = {
2784
+ }, Lr = {
2779
2785
  fontStyle: "normal",
2780
2786
  fontWeight: "regular",
2781
2787
  variant: "b0",
@@ -2794,21 +2800,21 @@ var In = {
2794
2800
  }
2795
2801
  },
2796
2802
  setup(e, { attrs: t, slots: n }) {
2797
- let i = r(() => U({}, jr, e, t)), a = Z(), o = xr(r(() => he(a.value.colors, i.value.color) || a.value.typography.color).value), s = r(() => [
2803
+ let i = r(() => H({}, Lr, e, t)), a = X(), o = Dr(r(() => R(a.value.colors, i.value.color) || a.value.typography.color).value), s = r(() => [
2798
2804
  o.value,
2799
2805
  `${o.value}--${i.value.variant}`,
2800
2806
  `${o.value}--${i.value.fontWeight}`,
2801
2807
  `${o.value}--${i.value.fontStyle}`
2802
- ]), c = r(() => i.value.as || Sr[i.value.variant]), l = r(() => i.value.parseMarkdown ?? a.value.parseMarkdown);
2808
+ ]), c = r(() => i.value.as || Or[i.value.variant]), l = r(() => i.value.parseMarkdown ?? a.value.parseMarkdown);
2803
2809
  return () => {
2804
2810
  let e = n.default?.();
2805
2811
  if (!e) return f(c.value, { class: s.value });
2806
2812
  if (!l.value) return f(c.value, { class: s.value }, e);
2807
- let t = Ar(e);
2813
+ let t = Ir(e);
2808
2814
  return f(c.value, { class: s.value }, t);
2809
2815
  };
2810
2816
  }
2811
- }), Mr = () => r(() => P({
2817
+ }), Rr = () => r(() => F({
2812
2818
  "& > [class$=\"__body\"]": { paddingBlock: 0 },
2813
2819
  "&__body": {
2814
2820
  display: "flex",
@@ -2821,15 +2827,15 @@ var In = {
2821
2827
  width: "3.5rem",
2822
2828
  height: "auto"
2823
2829
  }
2824
- })), Nr = {
2830
+ })), zr = {
2825
2831
  cancelText: "Cancel",
2826
2832
  confirmText: "OK"
2827
- }, Pr = /* @__PURE__ */ d({
2833
+ }, Br = /* @__PURE__ */ d({
2828
2834
  name: "TDialog",
2829
2835
  components: {
2830
2836
  TTypography: $,
2831
- TModal: br,
2832
- TButton: hn,
2837
+ TModal: Er,
2838
+ TButton: xn,
2833
2839
  TIcon: Q
2834
2840
  },
2835
2841
  props: {
@@ -2854,10 +2860,10 @@ var In = {
2854
2860
  "close"
2855
2861
  ],
2856
2862
  setup(e, { emit: t }) {
2857
- let n = r(() => U({}, Nr, e)), i = Mr(), a = r(() => {
2858
- if (n.value.color) return n.value.color === "primary" ? "primary.main" : fn(n.value.color);
2863
+ let n = r(() => H({}, zr, e)), i = Rr(), a = r(() => {
2864
+ if (n.value.color) return n.value.color === "primary" ? "primary.main" : vn(n.value.color);
2859
2865
  });
2860
- return () => f(br, {
2866
+ return () => f(Er, {
2861
2867
  onClose: () => n.value.cancellable && t("close"),
2862
2868
  onCancel: () => n.value.cancellable && t("cancel"),
2863
2869
  onConfirm: () => t("confirm"),
@@ -2879,206 +2885,111 @@ var In = {
2879
2885
  variant: "b1",
2880
2886
  innerHTML: n.value.message
2881
2887
  })]),
2882
- footer: () => [n.value.cancellable ? f(hn, {
2888
+ footer: () => [n.value.cancellable ? f(xn, {
2883
2889
  onClick: () => t("cancel"),
2884
2890
  color: n.value.color,
2885
2891
  variant: "secondary"
2886
- }, () => n.value.cancelText) : void 0, f(hn, {
2892
+ }, () => n.value.cancelText) : void 0, f(xn, {
2887
2893
  onClick: () => t("confirm"),
2888
2894
  color: n.value.color
2889
2895
  }, () => n.value.confirmText)]
2890
2896
  });
2891
2897
  }
2892
- }), Fr = {
2898
+ }), Vr = {
2893
2899
  key: 0,
2894
- class: "t-file-upload__label"
2895
- }, Ir = ["for"], Lr = { class: "t-file-upload__filename" }, Rr = ["aria-label", "disabled"], zr = [
2896
- "id",
2897
- "name",
2898
- "required",
2899
- "disabled",
2900
- "form",
2901
- "accept"
2902
- ], Br = {
2903
- key: 4,
2904
- class: "t-file-upload__hints"
2905
- }, Vr = { key: 1 }, Hr = /* @__PURE__ */ un(/* @__PURE__ */ d({
2906
- name: "TFileUpload",
2907
- inheritAttrs: !1,
2908
- __name: "TFileUpload",
2900
+ class: "t-drawer__header"
2901
+ }, Hr = {
2902
+ key: 1,
2903
+ class: "t-drawer__footer"
2904
+ }, Ur = /* @__PURE__ */ Z(/* @__PURE__ */ d({
2905
+ name: "TDrawer",
2906
+ __name: "TDrawer",
2909
2907
  props: /* @__PURE__ */ h({
2910
- label: {},
2911
- ctaText: { default: "Subir archivo" },
2912
- loadingText: { default: "Cargando archivo" },
2913
- removeLabel: { default: "Quitar archivo" },
2914
- formatsHint: {},
2915
- maxSizeHint: {},
2916
- accept: {},
2917
- maxSizeBytes: {},
2918
- loading: { type: Boolean },
2919
- id: {},
2920
- name: {},
2921
- required: { type: Boolean },
2922
- disabled: { type: Boolean },
2923
- form: {},
2924
- as: { default: "div" }
2908
+ size: { default: "s" },
2909
+ contentKey: {}
2925
2910
  }, {
2926
- modelValue: { default: null },
2927
- modelModifiers: {}
2911
+ open: {
2912
+ type: Boolean,
2913
+ default: !1
2914
+ },
2915
+ openModifiers: {}
2928
2916
  }),
2929
- emits: /* @__PURE__ */ h(["error"], ["update:modelValue"]),
2930
- setup(e, { expose: t, emit: n }) {
2931
- let i = n, d = re(e, "modelValue"), f = T(null), p = ne(), m = r(() => e.id ?? p), { wrapperAttrs: h, staticAttrs: _, listenerAttrs: v } = Gn(), y = r(() => e.loading ? "loading" : d.value ? "loaded" : "empty"), b = r(() => {
2932
- if (!(!e.accept || e.accept.length === 0)) return e.accept.map((e) => `.${e}`).join(",");
2933
- }), S = r(() => y.value === "empty" && (!!e.formatsHint || !!e.maxSizeHint)), w = () => {
2934
- let e = f.value;
2935
- if (!e) return;
2936
- let t = d.value;
2937
- if (t !== (e.files?.[0] ?? null)) {
2938
- if (!t) {
2939
- e.value = "";
2940
- return;
2941
- }
2942
- try {
2943
- let n = new DataTransfer();
2944
- n.items.add(t), e.files = n.files;
2945
- } catch {}
2946
- }
2947
- }, E = () => {
2948
- let t = f.value;
2949
- if (!t) return;
2950
- let n = t.files?.[0];
2951
- if (n) {
2952
- if (e.accept?.length) {
2953
- let t = n.name.toLowerCase();
2954
- if (!e.accept.some((e) => t.endsWith(`.${e.toLowerCase()}`))) {
2955
- w(), i("error", "bad-format");
2956
- return;
2957
- }
2958
- }
2959
- if (e.maxSizeBytes !== void 0 && n.size > e.maxSizeBytes) {
2960
- w(), i("error", "too-large");
2961
- return;
2962
- }
2963
- d.value = n;
2964
- }
2965
- }, ee = () => {
2966
- e.disabled || (d.value = null);
2917
+ emits: ["update:open"],
2918
+ setup(e) {
2919
+ let t = re(e, "open"), n = j("content"), r = j("body"), i = null, l = () => {
2920
+ let e = document.activeElement;
2921
+ n.value?.$el.contains(e) || (i = e instanceof HTMLElement && e !== document.body ? e : null);
2922
+ }, d = () => {
2923
+ let e = n.value?.$el;
2924
+ (e?.querySelector("[data-t-drawer-title]") ?? e)?.focus({ preventScroll: !0 });
2967
2925
  };
2968
- return x(w), j(d, w), t({ inputRef: f }), (t, n) => (C(), a(k(F), g(k(h), {
2969
- as: e.as,
2970
- class: "t-file-upload",
2971
- "data-state": y.value,
2972
- "data-disabled": e.disabled || void 0
2973
- }), {
2974
- default: M(() => [
2975
- e.label || t.$slots.label ? (C(), s("div", Fr, [D(t.$slots, "label", {}, () => [u(k($), {
2976
- variant: "b3",
2977
- "font-weight": "semibold"
2978
- }, {
2979
- default: M(() => [l(O(e.label), 1)]),
2980
- _: 1
2981
- })], !0)])) : o("", !0),
2982
- y.value === "empty" ? (C(), s("label", g({ key: 1 }, k(v), {
2983
- class: "t-file-upload__box",
2984
- "data-state": "empty",
2985
- for: m.value
2986
- }), [u(k(Q), {
2987
- icon: "paper-clip",
2988
- size: "small",
2989
- color: "gray.main"
2990
- }), u(k($), {
2991
- variant: "b3",
2992
- class: "t-file-upload__cta-text"
2993
- }, {
2994
- default: M(() => [D(t.$slots, "cta", {}, () => [l(O(e.ctaText), 1)], !0)]),
2995
- _: 3
2996
- })], 16, Ir)) : y.value === "loading" ? (C(), s("div", g({ key: 2 }, k(v), {
2997
- class: "t-file-upload__box",
2998
- "data-state": "loading"
2999
- }), [u(k(Q), {
3000
- icon: "arrow-path",
3001
- size: "small",
3002
- color: "primary.main"
3003
- }), u(k($), {
3004
- variant: "b3",
3005
- class: "t-file-upload__cta-text",
3006
- color: "primary.main"
2926
+ M(t, (e) => {
2927
+ e && l();
2928
+ }, {
2929
+ immediate: !0,
2930
+ flush: "sync"
2931
+ }), M(() => e.contentKey, async (e) => {
2932
+ !t.value || e === void 0 || (l(), await _(), r.value?.scrollTo({ top: 0 }), d());
2933
+ }, { flush: "sync" });
2934
+ let f = (e) => {
2935
+ e.preventDefault(), d();
2936
+ }, p = (e) => {
2937
+ e.preventDefault(), i?.isConnected && i.focus({ preventScroll: !0 }), i = null;
2938
+ }, m = !1, h = (e) => {
2939
+ m = e.key === "Escape" && !!n.value?.$el.querySelector("[aria-expanded=\"true\"]:is([role=\"combobox\"], [aria-haspopup]:not([aria-haspopup=\"false\"]))");
2940
+ }, g = (e) => {
2941
+ (m || !n.value?.$el.contains(document.activeElement)) && e.preventDefault();
2942
+ };
2943
+ return (i, l) => (C(), a(k(se), {
2944
+ open: t.value,
2945
+ "onUpdate:open": l[1] ||= (e) => t.value = e,
2946
+ modal: !1
2947
+ }, {
2948
+ default: N(() => [u(k(oe), null, {
2949
+ default: N(() => [u(k(ae), {
2950
+ ref_key: "content",
2951
+ ref: n,
2952
+ as: "section",
2953
+ class: "t-drawer",
2954
+ role: "region",
2955
+ tabindex: "-1",
2956
+ "aria-describedby": void 0,
2957
+ "data-size": e.size,
2958
+ onOpenAutoFocus: f,
2959
+ onCloseAutoFocus: p,
2960
+ onEscapeKeyDown: g,
2961
+ onInteractOutside: l[0] ||= ie(() => {}, ["prevent"]),
2962
+ onKeydownCapture: h
3007
2963
  }, {
3008
- default: M(() => [D(t.$slots, "loading", {}, () => [l(O(e.loadingText), 1)], !0)]),
2964
+ default: N(() => [
2965
+ i.$slots.header ? (C(), s("div", Vr, [D(i.$slots, "header", {}, void 0, !0)])) : o("", !0),
2966
+ c("div", {
2967
+ ref_key: "body",
2968
+ ref: r,
2969
+ class: "t-drawer__body"
2970
+ }, [D(i.$slots, "default", {}, void 0, !0)], 512),
2971
+ i.$slots.footer ? (C(), s("div", Hr, [D(i.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2972
+ ]),
3009
2973
  _: 3
3010
- })], 16)) : (C(), s("div", g({ key: 3 }, k(v), {
3011
- class: "t-file-upload__box",
3012
- "data-state": "loaded"
3013
- }), [
3014
- u(k(Q), {
3015
- icon: "document",
3016
- size: "small",
3017
- color: "primary.main"
3018
- }),
3019
- c("div", Lr, [D(t.$slots, "file", { file: d.value }, () => [u(k($), {
3020
- variant: "b3",
3021
- color: "primary.main",
3022
- class: "t-file-upload__filename-text"
3023
- }, {
3024
- default: M(() => [l(O(d.value.name), 1)]),
3025
- _: 1
3026
- })], !0)]),
3027
- c("button", {
3028
- type: "button",
3029
- class: "t-file-upload__remove",
3030
- "aria-label": e.removeLabel,
3031
- disabled: e.disabled,
3032
- onClick: ee
3033
- }, [u(k(Q), {
3034
- icon: "x-circle",
3035
- color: "#FFFFFF",
3036
- width: 18,
3037
- height: 18
3038
- })], 8, Rr)
3039
- ], 16)),
3040
- c("input", g({
3041
- id: m.value,
3042
- ref_key: "inputRef",
3043
- ref: f
3044
- }, k(_), {
3045
- class: "t-file-upload__input",
3046
- type: "file",
3047
- title: "",
3048
- name: e.name,
3049
- required: e.required,
3050
- disabled: e.disabled || e.loading,
3051
- form: e.form,
3052
- accept: b.value,
3053
- onChange: E
3054
- }), null, 16, zr),
3055
- S.value ? (C(), s("div", Br, [e.formatsHint ? (C(), a(k($), {
3056
- key: 0,
3057
- variant: "b4",
3058
- color: "gray.medium1"
3059
- }, {
3060
- default: M(() => [l(O(e.formatsHint), 1)]),
3061
- _: 1
3062
- })) : (C(), s("span", Vr)), e.maxSizeHint ? (C(), a(k($), {
3063
- key: 2,
3064
- variant: "b4",
3065
- color: "gray.medium1"
3066
- }, {
3067
- default: M(() => [l(O(e.maxSizeHint), 1)]),
3068
- _: 1
3069
- })) : o("", !0)])) : o("", !0)
3070
- ]),
2974
+ }, 8, ["data-size"])]),
2975
+ _: 3
2976
+ })]),
3071
2977
  _: 3
3072
- }, 16, [
3073
- "as",
3074
- "data-state",
3075
- "data-disabled"
3076
- ]));
2978
+ }, 8, ["open"]));
2979
+ }
2980
+ }), [["__scopeId", "data-v-e9cbd098"]]), Wr = { class: "t-drawer-footer" }, Gr = {
2981
+ key: 0,
2982
+ class: "t-drawer-footer__start"
2983
+ }, Kr = /* @__PURE__ */ Z(/* @__PURE__ */ d({
2984
+ name: "TDrawerFooter",
2985
+ __name: "TDrawerFooter",
2986
+ setup(e) {
2987
+ return (e, t) => (C(), s("div", Wr, [e.$slots.start ? (C(), s("div", Gr, [D(e.$slots, "start", {}, void 0, !0)])) : o("", !0), D(e.$slots, "default", {}, void 0, !0)]));
3077
2988
  }
3078
- }), [["__scopeId", "data-v-1352af96"]]), Ur = (e) => {
3079
- let t = Z(), n = r(() => fn(e.value)), i = r(() => n.value === "primary" ? t.value.colors.primary.toku : Wt(.15, t.value.colors[n.value])), a = r(() => n.value === "primary" ? t.value.colors.primary.main : t.value.colors[n.value]), o = r(() => n.value === "primary" ? t.value.colors.primary.light1 : X(.15, t.value.colors[n.value])), s = r(() => n.value === "primary" ? t.value.colors.primary.light2 : X(.2, t.value.colors[n.value])), c = r(() => n.value === "primary" ? t.value.colors.primary.light3 : X(.25, t.value.colors[n.value]));
2989
+ }), [["__scopeId", "data-v-240938ba"]]), qr = (e) => {
2990
+ let t = X(), n = r(() => e.value === "neutral"), i = r(() => vn(e.value)), a = r(() => n.value ? "var(--neutral-solid-hover)" : i.value === "primary" ? t.value.colors.primary.toku : Zt(.15, t.value.colors[i.value])), o = r(() => n.value ? "var(--neutral-text-contrast)" : i.value === "primary" ? t.value.colors.primary.main : t.value.colors[i.value]), s = r(() => n.value ? "var(--neutral-border-hover)" : i.value === "primary" ? t.value.colors.primary.light1 : Y(.15, t.value.colors[i.value])), c = r(() => n.value ? "var(--neutral-text)" : i.value === "primary" ? t.value.colors.primary.light2 : Y(.2, t.value.colors[i.value])), l = r(() => n.value ? "var(--neutral-bg-subtle)" : i.value === "primary" ? t.value.colors.primary.light3 : Y(.25, t.value.colors[i.value]));
3080
2991
  return {
3081
- baseClass: r(() => P({
2992
+ baseClass: r(() => F({
3082
2993
  "&, *": {
3083
2994
  margin: 0,
3084
2995
  padding: 0,
@@ -3090,12 +3001,12 @@ var In = {
3090
3001
  cursor: "pointer",
3091
3002
  "&--primary": {
3092
3003
  borderRadius: t.value.button.borderRadius,
3093
- backgroundColor: a.value,
3004
+ backgroundColor: o.value,
3094
3005
  boxShadow: "0px 0px 8px 0px rgba(0, 0, 0, 0.1)",
3095
- border: `1px solid ${a.value}`,
3006
+ border: `1px solid ${o.value}`,
3096
3007
  color: "#FFFFFF",
3097
- "&:hover:not(&:disabled)": { backgroundColor: i.value },
3098
- "&:focus": { border: `1px solid ${o.value}` },
3008
+ "&:hover:not(&:disabled)": { backgroundColor: a.value },
3009
+ "&:focus": { border: `1px solid ${s.value}` },
3099
3010
  "&:disabled": {
3100
3011
  cursor: "not-allowed",
3101
3012
  border: `1px solid ${t.value.colors.gray.light2}`,
@@ -3106,11 +3017,11 @@ var In = {
3106
3017
  "&--secondary": {
3107
3018
  borderRadius: t.value.button.borderRadius,
3108
3019
  backgroundColor: "#FFFFFF",
3109
- border: `1px solid ${a.value}`,
3110
- boxShadow: "0px 0px 8px 0px rgba(0, 0, 0, 0.1)",
3111
- color: a.value,
3112
- "&:hover:not(&:disabled)": { backgroundColor: c.value },
3113
- "&:focus": { border: `1px solid ${o.value}` },
3020
+ border: `1px solid ${n.value ? "var(--neutral-border)" : o.value}`,
3021
+ boxShadow: n.value ? "none" : "0px 0px 8px 0px rgba(0, 0, 0, 0.1)",
3022
+ color: o.value,
3023
+ "&:hover:not(&:disabled)": { backgroundColor: l.value },
3024
+ "&:focus": { border: `1px solid ${s.value}` },
3114
3025
  "&:disabled": {
3115
3026
  cursor: "not-allowed",
3116
3027
  border: `1px solid ${t.value.colors.gray.light2}`,
@@ -3123,9 +3034,9 @@ var In = {
3123
3034
  border: "none",
3124
3035
  margin: 0,
3125
3036
  padding: 0,
3126
- color: a.value,
3127
- "&:hover:not(&:disabled)": { color: s.value },
3128
- "&:focus": { color: o.value },
3037
+ color: o.value,
3038
+ "&:hover:not(&:disabled)": { color: c.value },
3039
+ "&:focus": { color: s.value },
3129
3040
  "&:disabled": {
3130
3041
  cursor: "not-allowed",
3131
3042
  color: t.value.colors.gray.medium1
@@ -3151,7 +3062,7 @@ var In = {
3151
3062
  },
3152
3063
  "&--rounded": { borderRadius: "50%" }
3153
3064
  })),
3154
- iconClass: r(() => P({
3065
+ iconClass: r(() => F({
3155
3066
  margin: 0,
3156
3067
  padding: 0,
3157
3068
  "&--large": { height: "1.25rem" },
@@ -3159,13 +3070,13 @@ var In = {
3159
3070
  "&--small": { height: "1rem" }
3160
3071
  }))
3161
3072
  };
3162
- }, Wr = {
3073
+ }, Jr = {
3163
3074
  variant: "primary",
3164
3075
  size: "medium",
3165
3076
  icon: "academic-cap",
3166
3077
  type: "button",
3167
3078
  color: "primary"
3168
- }, Gr = /* @__PURE__ */ d({
3079
+ }, Yr = /* @__PURE__ */ d({
3169
3080
  name: "TIconButton",
3170
3081
  props: {
3171
3082
  variant: String,
@@ -3179,7 +3090,7 @@ var In = {
3179
3090
  },
3180
3091
  emits: ["click"],
3181
3092
  setup(e, { attrs: t, emit: n }) {
3182
- let i = r(() => U({}, Wr, e, t)), { baseClass: a, iconClass: o } = Ur(r(() => i.value.color)), s = Z(), c = r(() => [
3093
+ let i = r(() => H({}, Jr, e, t)), { baseClass: a, iconClass: o } = qr(r(() => i.value.color)), s = X(), c = r(() => [
3183
3094
  a.value,
3184
3095
  `${a.value}--${i.value.variant}`,
3185
3096
  `${a.value}--${i.value.size}`,
@@ -3197,21 +3108,579 @@ var In = {
3197
3108
  type: i.value.type,
3198
3109
  disabled: i.value.disabled,
3199
3110
  onClick: d
3200
- }, t), [i.value.loading ? u(N, {
3111
+ }, t), [i.value.loading ? u(P, {
3201
3112
  class: `${a.value}__spinner`,
3202
3113
  icon: "svg-spinners:90-ring-with-bg"
3203
- }, null) : u(N, {
3114
+ }, null) : u(P, {
3204
3115
  icon: `${s.value.iconSet}:${i.value.icon}`,
3205
3116
  class: l.value
3206
3117
  }, null)]);
3207
3118
  }
3208
- }), Kr = () => {
3209
- let e = Z();
3210
- return r(() => P({
3211
- margin: 0,
3212
- padding: 0,
3213
- width: "fit-content",
3214
- cursor: "pointer",
3119
+ });
3120
+ //#endregion
3121
+ //#region src/composables/click.ts
3122
+ function Xr(e, t) {
3123
+ let n = (n) => {
3124
+ let r = e();
3125
+ r && !r.contains(n.target) && t();
3126
+ };
3127
+ x(() => {
3128
+ document.addEventListener("click", n);
3129
+ }), b(() => {
3130
+ document.removeEventListener("click", n);
3131
+ });
3132
+ }
3133
+ //#endregion
3134
+ //#region src/composables/tooltip.ts
3135
+ var Zr = (e) => {
3136
+ let t = T(!1), n = null, i = () => {
3137
+ t.value = !0, n && clearTimeout(n);
3138
+ }, a = () => t.value = !1, o = {
3139
+ hover: {
3140
+ onMouseenter: i,
3141
+ onMouseleave: () => {
3142
+ n = setTimeout(a, .1 * 1e3);
3143
+ }
3144
+ },
3145
+ click: { onClick: () => t.value ? a() : i() }
3146
+ }, s = r(() => o[e.value ?? "hover"]), c = T(null);
3147
+ return Xr(() => c.value, a), {
3148
+ isVisible: t,
3149
+ triggerHandler: s,
3150
+ wrapperRef: c
3151
+ };
3152
+ }, Qr = () => {
3153
+ let e = X();
3154
+ return r(() => F({
3155
+ position: "relative",
3156
+ width: "fit-content",
3157
+ "&, *": {
3158
+ padding: 0,
3159
+ margin: 0,
3160
+ boxSizing: "border-box"
3161
+ },
3162
+ "&__tooltip": {
3163
+ display: "none",
3164
+ position: "absolute",
3165
+ width: "fit-content",
3166
+ background: "#fff",
3167
+ boxShadow: "3px 4px 25px 0px #26323826",
3168
+ borderRadius: "1rem",
3169
+ padding: "0.75rem 1rem",
3170
+ whiteSpace: "nowrap",
3171
+ fontSize: "0.75rem",
3172
+ weight: e.value.typography.fontWeight.regular,
3173
+ lineHeight: "1.125rem",
3174
+ "&:before": {
3175
+ content: "\"\"",
3176
+ width: 0,
3177
+ height: 0,
3178
+ position: "absolute",
3179
+ borderStyle: "solid"
3180
+ }
3181
+ },
3182
+ "&--visible &__tooltip": { display: "block" },
3183
+ "&--top &__tooltip": {
3184
+ marginBottom: "1.5rem",
3185
+ left: "50%",
3186
+ bottom: "100%",
3187
+ transform: "translateX(-50%)",
3188
+ background: "#fff",
3189
+ "&:before": {
3190
+ left: "50%",
3191
+ top: "99%",
3192
+ transform: "translateX(-50%)",
3193
+ borderWidth: "15px 7.5px 0px 7.5px",
3194
+ borderColor: "#fff transparent transparent transparent"
3195
+ }
3196
+ },
3197
+ "&--right &__tooltip": {
3198
+ marginLeft: "1.5rem",
3199
+ top: "50%",
3200
+ left: "100%",
3201
+ transform: "translateY(-50%)",
3202
+ "&:before": {
3203
+ top: "50%",
3204
+ right: "99%",
3205
+ transform: "translateY(-50%)",
3206
+ borderWidth: "7.5px 15px 7.5px 0",
3207
+ borderColor: "transparent #fff transparent transparent"
3208
+ }
3209
+ },
3210
+ "&--bottom &__tooltip": {
3211
+ marginTop: "1.5rem",
3212
+ left: "50%",
3213
+ top: "100%",
3214
+ transform: "translateX(-50%)",
3215
+ "&:before": {
3216
+ left: "50%",
3217
+ bottom: "99%",
3218
+ transform: "translateX(-50%)",
3219
+ borderWidth: "0 7.5px 15px 7.5px",
3220
+ borderColor: "transparent transparent #fff transparent"
3221
+ }
3222
+ },
3223
+ "&--left &__tooltip": {
3224
+ marginRight: "1.5rem",
3225
+ top: "50%",
3226
+ right: "100%",
3227
+ transform: "translateY(-50%)",
3228
+ "&:before": {
3229
+ top: "50%",
3230
+ left: "99%",
3231
+ transform: "translateY(-50%)",
3232
+ borderWidth: "7.5px 0px 7.5px 15px",
3233
+ borderColor: "transparent transparent transparent #fff"
3234
+ }
3235
+ },
3236
+ "&--multilined &__tooltip": {
3237
+ whiteSpace: "normal",
3238
+ width: "max-content"
3239
+ },
3240
+ "&--small &__tooltip": { maxWidth: "25ch" },
3241
+ "&--medium &__tooltip": { maxWidth: "30ch" },
3242
+ "&--large &__tooltip": { maxWidth: "35ch" }
3243
+ }));
3244
+ }, $r = {
3245
+ position: "right",
3246
+ size: "medium",
3247
+ trigger: "hover"
3248
+ }, ei = /* @__PURE__ */ d({
3249
+ name: "TTooltip",
3250
+ props: {
3251
+ label: String,
3252
+ position: String,
3253
+ multilined: Boolean,
3254
+ size: String,
3255
+ trigger: String
3256
+ },
3257
+ setup(e, { slots: t, attrs: n }) {
3258
+ let i = r(() => H({}, $r, e, n)), { isVisible: a, wrapperRef: o, triggerHandler: s } = Zr(r(() => i.value.trigger)), c = Qr(), l = r(() => [
3259
+ c.value,
3260
+ `${c.value}--${i.value.position}`,
3261
+ `${c.value}--${i.value.trigger}`,
3262
+ {
3263
+ [`${c.value}--visible`]: a.value,
3264
+ [`${c.value}--multilined`]: i.value.multilined,
3265
+ [`${c.value}--${i.value.size}`]: i.value.multilined
3266
+ }
3267
+ ]);
3268
+ return () => u("div", g({
3269
+ ref: o,
3270
+ class: l.value
3271
+ }, s.value), [t.default?.(), u("div", {
3272
+ role: "tooltip",
3273
+ class: `${c.value}__tooltip`
3274
+ }, [t.label?.() || i.value.label])]);
3275
+ }
3276
+ }), ti = { class: "t-drawer-header" }, ni = { class: "t-drawer-header__lead" }, ri = ["aria-label"], ii = { class: "t-drawer-header__heading" }, ai = ["id"], oi = {
3277
+ key: 0,
3278
+ class: "t-drawer-header__status"
3279
+ }, si = { class: "t-drawer-header__actions" }, ci = ["aria-label"], li = /* @__PURE__ */ Z(/* @__PURE__ */ d({
3280
+ name: "TDrawerHeader",
3281
+ __name: "TDrawerHeader",
3282
+ props: {
3283
+ title: {},
3284
+ status: {},
3285
+ statusVariant: { default: "default" },
3286
+ actions: { default: () => [] },
3287
+ back: { type: Boolean },
3288
+ closeLabel: { default: "Close" },
3289
+ backLabel: { default: "Back" },
3290
+ moreActionsLabel: { default: "More actions" }
3291
+ },
3292
+ emits: [
3293
+ "action",
3294
+ "back",
3295
+ "close"
3296
+ ],
3297
+ setup(t, { emit: n }) {
3298
+ let i = n, d = fe(null), f = (e) => e.edit ? 0 : e.destructive ? 2 : 1, p = r(() => [...t.actions].sort((e, t) => f(e) - f(t))), m = r(() => p.value.length <= 2 ? p.value : p.value.filter((e) => e.edit)), h = r(() => p.value.filter((e) => !m.value.includes(e))), g = T(!1), v = j("menu"), y = (e) => {
3299
+ g.value = !1, i("action", e.id);
3300
+ }, b = (e) => {
3301
+ e.key !== "Escape" || !g.value || (e.stopPropagation(), g.value = !1, _(() => v.value?.querySelector("button")?.focus()));
3302
+ }, x = () => {
3303
+ d?.onOpenChange(!1), i("close");
3304
+ };
3305
+ return (n, r) => (C(), s("div", ti, [c("div", ni, [t.back ? (C(), a(k(ei), {
3306
+ key: 0,
3307
+ label: t.backLabel,
3308
+ position: "bottom"
3309
+ }, {
3310
+ default: N(() => [c("button", {
3311
+ type: "button",
3312
+ class: "t-drawer-header__plain-button",
3313
+ "aria-label": t.backLabel,
3314
+ onClick: r[0] ||= (e) => i("back")
3315
+ }, [u(k(Q), {
3316
+ icon: "chevron-left",
3317
+ size: "small",
3318
+ color: "currentColor"
3319
+ })], 8, ri)]),
3320
+ _: 1
3321
+ }, 8, ["label"])) : o("", !0), c("div", ii, [c("h2", {
3322
+ id: k(d)?.titleId,
3323
+ class: "t-drawer-header__title",
3324
+ tabindex: "-1",
3325
+ "data-t-drawer-title": ""
3326
+ }, [D(n.$slots, "title", {}, () => [l(O(t.title), 1)], !0)], 8, ai), t.status || n.$slots.status ? (C(), s("span", oi, [D(n.$slots, "status", {}, () => [u(k(Tn), {
3327
+ size: "small",
3328
+ variant: t.statusVariant
3329
+ }, {
3330
+ default: N(() => [l(O(t.status), 1)]),
3331
+ _: 1
3332
+ }, 8, ["variant"])], !0)])) : o("", !0)])]), c("div", si, [
3333
+ (C(!0), s(e, null, E(m.value, (e) => (C(), a(k(ei), {
3334
+ key: e.id,
3335
+ label: e.label,
3336
+ position: "bottom"
3337
+ }, {
3338
+ default: N(() => [u(k(Yr), {
3339
+ variant: "secondary",
3340
+ color: "neutral",
3341
+ size: "small",
3342
+ icon: e.icon,
3343
+ "aria-label": e.label,
3344
+ disabled: e.disabled,
3345
+ onClick: (t) => i("action", e.id)
3346
+ }, null, 8, [
3347
+ "icon",
3348
+ "aria-label",
3349
+ "disabled",
3350
+ "onClick"
3351
+ ])]),
3352
+ _: 2
3353
+ }, 1032, ["label"]))), 128)),
3354
+ h.value.length ? (C(), s("div", {
3355
+ key: 0,
3356
+ ref_key: "menu",
3357
+ ref: v,
3358
+ class: "t-drawer-header__menu",
3359
+ onKeydown: b
3360
+ }, [u(k(Un), {
3361
+ open: g.value,
3362
+ position: "bottom-end",
3363
+ onCancel: r[2] ||= (e) => g.value = !1
3364
+ }, {
3365
+ trigger: N(() => [u(k(ei), {
3366
+ label: t.moreActionsLabel,
3367
+ position: "bottom"
3368
+ }, {
3369
+ default: N(() => [u(k(Yr), {
3370
+ variant: "secondary",
3371
+ color: "neutral",
3372
+ size: "small",
3373
+ icon: "ellipsis-vertical",
3374
+ "aria-label": t.moreActionsLabel,
3375
+ "aria-haspopup": "menu",
3376
+ "aria-expanded": g.value,
3377
+ onClick: r[1] ||= (e) => g.value = !g.value
3378
+ }, null, 8, ["aria-label", "aria-expanded"])]),
3379
+ _: 1
3380
+ }, 8, ["label"])]),
3381
+ default: N(() => [(C(!0), s(e, null, E(h.value, (e) => (C(), a(k(Gn), {
3382
+ key: e.id,
3383
+ disabled: e.disabled,
3384
+ onClick: (t) => y(e)
3385
+ }, {
3386
+ default: N(() => [l(O(e.label), 1)]),
3387
+ _: 2
3388
+ }, 1032, ["disabled", "onClick"]))), 128))]),
3389
+ _: 1
3390
+ }, 8, ["open"])], 544)) : o("", !0),
3391
+ u(k(ei), {
3392
+ label: t.closeLabel,
3393
+ position: "bottom"
3394
+ }, {
3395
+ default: N(() => [c("button", {
3396
+ type: "button",
3397
+ class: "t-drawer-header__plain-button",
3398
+ "aria-label": t.closeLabel,
3399
+ onClick: x
3400
+ }, [u(k(Q), {
3401
+ icon: "x-mark",
3402
+ size: "small",
3403
+ color: "currentColor"
3404
+ })], 8, ci)]),
3405
+ _: 1
3406
+ }, 8, ["label"])
3407
+ ])]));
3408
+ }
3409
+ }), [["__scopeId", "data-v-3a962786"]]), ui = {
3410
+ type: "button",
3411
+ class: "t-drawer-link-row"
3412
+ }, di = { class: "t-drawer-link-row__label" }, fi = /* @__PURE__ */ Z(/* @__PURE__ */ d({
3413
+ name: "TDrawerLinkRow",
3414
+ __name: "TDrawerLinkRow",
3415
+ props: {
3416
+ label: {},
3417
+ icon: {}
3418
+ },
3419
+ setup(e) {
3420
+ return (t, n) => (C(), s("button", ui, [
3421
+ e.icon ? (C(), a(k(Q), {
3422
+ key: 0,
3423
+ icon: e.icon,
3424
+ size: "small",
3425
+ color: "currentColor"
3426
+ }, null, 8, ["icon"])) : o("", !0),
3427
+ c("span", di, O(e.label), 1),
3428
+ u(k(Q), {
3429
+ icon: "chevron-right",
3430
+ size: "small",
3431
+ color: "currentColor"
3432
+ })
3433
+ ]));
3434
+ }
3435
+ }), [["__scopeId", "data-v-7f483dbb"]]), pi = { class: "t-drawer-row" }, mi = { class: "t-drawer-row__label-cell" }, hi = { class: "t-drawer-row__value" }, gi = ["href"], _i = /* @__PURE__ */ Z(/* @__PURE__ */ d({
3436
+ name: "TDrawerRow",
3437
+ __name: "TDrawerRow",
3438
+ props: {
3439
+ label: {},
3440
+ value: {},
3441
+ variant: { default: "text" },
3442
+ href: {}
3443
+ },
3444
+ emits: ["open"],
3445
+ setup(t, { emit: n }) {
3446
+ let i = n, o = r(() => t.value === null || t.value === void 0 || t.value === "" ? "—" : t.value), u = r(() => t.variant === "link" && o.value !== "—"), d = j("labelElement"), f = T(!1), p = () => {
3447
+ let e = d.value;
3448
+ e && (f.value = e.scrollHeight > e.clientHeight);
3449
+ };
3450
+ return x(() => {
3451
+ p(), document.fonts?.ready.then(p);
3452
+ }), M(() => t.label, () => _(p)), (n, r) => (C(), s("div", pi, [c("div", mi, [f.value ? (C(), a(k(ei), {
3453
+ key: 0,
3454
+ label: t.label,
3455
+ position: "top",
3456
+ multilined: "",
3457
+ size: "medium"
3458
+ }, {
3459
+ default: N(() => [c("p", {
3460
+ ref_key: "labelElement",
3461
+ ref: d,
3462
+ class: "t-drawer-row__label"
3463
+ }, O(t.label), 513)]),
3464
+ _: 1
3465
+ }, 8, ["label"])) : (C(), s("p", {
3466
+ key: 1,
3467
+ ref_key: "labelElement",
3468
+ ref: d,
3469
+ class: "t-drawer-row__label"
3470
+ }, O(t.label), 513))]), c("div", hi, [D(n.$slots, "default", {}, () => [u.value && t.href ? (C(), s("a", {
3471
+ key: 0,
3472
+ href: t.href,
3473
+ class: "t-drawer-row__link"
3474
+ }, O(o.value), 9, gi)) : u.value ? (C(), s("button", {
3475
+ key: 1,
3476
+ type: "button",
3477
+ class: "t-drawer-row__link",
3478
+ onClick: r[0] ||= (e) => i("open")
3479
+ }, O(o.value), 1)) : (C(), s(e, { key: 2 }, [l(O(o.value), 1)], 64))], !0)])]));
3480
+ }
3481
+ }), [["__scopeId", "data-v-7905f54b"]]), vi = { class: "t-drawer-section" }, yi = {
3482
+ key: 0,
3483
+ class: "t-drawer-section__title"
3484
+ }, bi = /* @__PURE__ */ Z(/* @__PURE__ */ d({
3485
+ name: "TDrawerSection",
3486
+ __name: "TDrawerSection",
3487
+ props: { title: {} },
3488
+ setup(e) {
3489
+ return (t, n) => (C(), s("div", vi, [e.title || t.$slots.title ? (C(), s("h3", yi, [D(t.$slots, "title", {}, () => [l(O(e.title), 1)], !0)])) : o("", !0), D(t.$slots, "default", {}, void 0, !0)]));
3490
+ }
3491
+ }), [["__scopeId", "data-v-400a57a7"]]), xi = {
3492
+ key: 0,
3493
+ class: "t-file-upload__label"
3494
+ }, Si = ["for"], Ci = { class: "t-file-upload__filename" }, wi = ["aria-label", "disabled"], Ti = [
3495
+ "id",
3496
+ "name",
3497
+ "required",
3498
+ "disabled",
3499
+ "form",
3500
+ "accept"
3501
+ ], Ei = {
3502
+ key: 4,
3503
+ class: "t-file-upload__hints"
3504
+ }, Di = { key: 1 }, Oi = /* @__PURE__ */ Z(/* @__PURE__ */ d({
3505
+ name: "TFileUpload",
3506
+ inheritAttrs: !1,
3507
+ __name: "TFileUpload",
3508
+ props: /* @__PURE__ */ h({
3509
+ label: {},
3510
+ ctaText: { default: "Subir archivo" },
3511
+ loadingText: { default: "Cargando archivo" },
3512
+ removeLabel: { default: "Quitar archivo" },
3513
+ formatsHint: {},
3514
+ maxSizeHint: {},
3515
+ accept: {},
3516
+ maxSizeBytes: {},
3517
+ loading: { type: Boolean },
3518
+ id: {},
3519
+ name: {},
3520
+ required: { type: Boolean },
3521
+ disabled: { type: Boolean },
3522
+ form: {},
3523
+ as: { default: "div" }
3524
+ }, {
3525
+ modelValue: { default: null },
3526
+ modelModifiers: {}
3527
+ }),
3528
+ emits: /* @__PURE__ */ h(["error"], ["update:modelValue"]),
3529
+ setup(e, { expose: t, emit: n }) {
3530
+ let i = n, d = re(e, "modelValue"), f = T(null), p = ne(), m = r(() => e.id ?? p), { wrapperAttrs: h, staticAttrs: _, listenerAttrs: v } = Zn(), y = r(() => e.loading ? "loading" : d.value ? "loaded" : "empty"), b = r(() => {
3531
+ if (!(!e.accept || e.accept.length === 0)) return e.accept.map((e) => `.${e}`).join(",");
3532
+ }), S = r(() => y.value === "empty" && (!!e.formatsHint || !!e.maxSizeHint)), w = () => {
3533
+ let e = f.value;
3534
+ if (!e) return;
3535
+ let t = d.value;
3536
+ if (t !== (e.files?.[0] ?? null)) {
3537
+ if (!t) {
3538
+ e.value = "";
3539
+ return;
3540
+ }
3541
+ try {
3542
+ let n = new DataTransfer();
3543
+ n.items.add(t), e.files = n.files;
3544
+ } catch {}
3545
+ }
3546
+ }, E = () => {
3547
+ let t = f.value;
3548
+ if (!t) return;
3549
+ let n = t.files?.[0];
3550
+ if (n) {
3551
+ if (e.accept?.length) {
3552
+ let t = n.name.toLowerCase();
3553
+ if (!e.accept.some((e) => t.endsWith(`.${e.toLowerCase()}`))) {
3554
+ w(), i("error", "bad-format");
3555
+ return;
3556
+ }
3557
+ }
3558
+ if (e.maxSizeBytes !== void 0 && n.size > e.maxSizeBytes) {
3559
+ w(), i("error", "too-large");
3560
+ return;
3561
+ }
3562
+ d.value = n;
3563
+ }
3564
+ }, ee = () => {
3565
+ e.disabled || (d.value = null);
3566
+ };
3567
+ return x(w), M(d, w), t({ inputRef: f }), (t, n) => (C(), a(k(le), g(k(h), {
3568
+ as: e.as,
3569
+ class: "t-file-upload",
3570
+ "data-state": y.value,
3571
+ "data-disabled": e.disabled || void 0
3572
+ }), {
3573
+ default: N(() => [
3574
+ e.label || t.$slots.label ? (C(), s("div", xi, [D(t.$slots, "label", {}, () => [u(k($), {
3575
+ variant: "b3",
3576
+ "font-weight": "semibold"
3577
+ }, {
3578
+ default: N(() => [l(O(e.label), 1)]),
3579
+ _: 1
3580
+ })], !0)])) : o("", !0),
3581
+ y.value === "empty" ? (C(), s("label", g({ key: 1 }, k(v), {
3582
+ class: "t-file-upload__box",
3583
+ "data-state": "empty",
3584
+ for: m.value
3585
+ }), [u(k(Q), {
3586
+ icon: "paper-clip",
3587
+ size: "small",
3588
+ color: "gray.main"
3589
+ }), u(k($), {
3590
+ variant: "b3",
3591
+ class: "t-file-upload__cta-text"
3592
+ }, {
3593
+ default: N(() => [D(t.$slots, "cta", {}, () => [l(O(e.ctaText), 1)], !0)]),
3594
+ _: 3
3595
+ })], 16, Si)) : y.value === "loading" ? (C(), s("div", g({ key: 2 }, k(v), {
3596
+ class: "t-file-upload__box",
3597
+ "data-state": "loading"
3598
+ }), [u(k(Q), {
3599
+ icon: "arrow-path",
3600
+ size: "small",
3601
+ color: "primary.main"
3602
+ }), u(k($), {
3603
+ variant: "b3",
3604
+ class: "t-file-upload__cta-text",
3605
+ color: "primary.main"
3606
+ }, {
3607
+ default: N(() => [D(t.$slots, "loading", {}, () => [l(O(e.loadingText), 1)], !0)]),
3608
+ _: 3
3609
+ })], 16)) : (C(), s("div", g({ key: 3 }, k(v), {
3610
+ class: "t-file-upload__box",
3611
+ "data-state": "loaded"
3612
+ }), [
3613
+ u(k(Q), {
3614
+ icon: "document",
3615
+ size: "small",
3616
+ color: "primary.main"
3617
+ }),
3618
+ c("div", Ci, [D(t.$slots, "file", { file: d.value }, () => [u(k($), {
3619
+ variant: "b3",
3620
+ color: "primary.main",
3621
+ class: "t-file-upload__filename-text"
3622
+ }, {
3623
+ default: N(() => [l(O(d.value.name), 1)]),
3624
+ _: 1
3625
+ })], !0)]),
3626
+ c("button", {
3627
+ type: "button",
3628
+ class: "t-file-upload__remove",
3629
+ "aria-label": e.removeLabel,
3630
+ disabled: e.disabled,
3631
+ onClick: ee
3632
+ }, [u(k(Q), {
3633
+ icon: "x-circle",
3634
+ color: "#FFFFFF",
3635
+ width: 18,
3636
+ height: 18
3637
+ })], 8, wi)
3638
+ ], 16)),
3639
+ c("input", g({
3640
+ id: m.value,
3641
+ ref_key: "inputRef",
3642
+ ref: f
3643
+ }, k(_), {
3644
+ class: "t-file-upload__input",
3645
+ type: "file",
3646
+ title: "",
3647
+ name: e.name,
3648
+ required: e.required,
3649
+ disabled: e.disabled || e.loading,
3650
+ form: e.form,
3651
+ accept: b.value,
3652
+ onChange: E
3653
+ }), null, 16, Ti),
3654
+ S.value ? (C(), s("div", Ei, [e.formatsHint ? (C(), a(k($), {
3655
+ key: 0,
3656
+ variant: "b4",
3657
+ color: "gray.medium1"
3658
+ }, {
3659
+ default: N(() => [l(O(e.formatsHint), 1)]),
3660
+ _: 1
3661
+ })) : (C(), s("span", Di)), e.maxSizeHint ? (C(), a(k($), {
3662
+ key: 2,
3663
+ variant: "b4",
3664
+ color: "gray.medium1"
3665
+ }, {
3666
+ default: N(() => [l(O(e.maxSizeHint), 1)]),
3667
+ _: 1
3668
+ })) : o("", !0)])) : o("", !0)
3669
+ ]),
3670
+ _: 3
3671
+ }, 16, [
3672
+ "as",
3673
+ "data-state",
3674
+ "data-disabled"
3675
+ ]));
3676
+ }
3677
+ }), [["__scopeId", "data-v-1352af96"]]), ki = () => {
3678
+ let e = X();
3679
+ return r(() => F({
3680
+ margin: 0,
3681
+ padding: 0,
3682
+ width: "fit-content",
3683
+ cursor: "pointer",
3215
3684
  display: "flex",
3216
3685
  flexDirection: "row",
3217
3686
  alignItems: "center",
@@ -3235,10 +3704,10 @@ var In = {
3235
3704
  fontSize: "0.875rem"
3236
3705
  }
3237
3706
  }));
3238
- }, qr = {
3707
+ }, Ai = {
3239
3708
  variant: "primary",
3240
3709
  size: "medium"
3241
- }, Jr = /* @__PURE__ */ d({
3710
+ }, ji = /* @__PURE__ */ d({
3242
3711
  name: "TButton",
3243
3712
  props: {
3244
3713
  variant: String,
@@ -3248,7 +3717,7 @@ var In = {
3248
3717
  rightIcon: String
3249
3718
  },
3250
3719
  setup(e, { attrs: t, slots: n }) {
3251
- let i = r(() => U({}, qr, e, t)), a = Kr(), o = Z(), s = r(() => [
3720
+ let i = r(() => H({}, Ai, e, t)), a = ki(), o = X(), s = r(() => [
3252
3721
  a.value,
3253
3722
  `${a.value}--${i.value.variant}`,
3254
3723
  `${a.value}--${i.value.size}`
@@ -3257,14 +3726,14 @@ var In = {
3257
3726
  class: s.value,
3258
3727
  href: i.value.href
3259
3728
  }, t), [
3260
- i.value.leftIcon ? u(N, { icon: `${o.value.iconSet}:${i.value.leftIcon}` }, null) : null,
3729
+ i.value.leftIcon ? u(P, { icon: `${o.value.iconSet}:${i.value.leftIcon}` }, null) : null,
3261
3730
  n.default ? n.default() : null,
3262
- i.value.rightIcon ? u(N, { icon: `${o.value.iconSet}:${i.value.rightIcon}` }, null) : null
3731
+ i.value.rightIcon ? u(P, { icon: `${o.value.iconSet}:${i.value.rightIcon}` }, null) : null
3263
3732
  ]);
3264
3733
  }
3265
- }), Yr = (e) => {
3266
- let t = r(() => e.color), n = Z();
3267
- return r(() => P({
3734
+ }), Mi = (e) => {
3735
+ let t = r(() => e.color), n = X();
3736
+ return r(() => F({
3268
3737
  margin: 0,
3269
3738
  padding: 0,
3270
3739
  width: "3.5rem",
@@ -3288,17 +3757,17 @@ var In = {
3288
3757
  "100%": { transform: "rotate(360deg)" }
3289
3758
  }
3290
3759
  }));
3291
- }, Xr = { size: "auto" }, Zr = /* @__PURE__ */ d({
3760
+ }, Ni = { size: "auto" }, Pi = /* @__PURE__ */ d({
3292
3761
  name: "TSpinner",
3293
3762
  props: {
3294
3763
  size: String,
3295
3764
  color: String
3296
3765
  },
3297
3766
  setup(e, { attrs: t }) {
3298
- let n = r(() => U({}, Xr, e, t)), i = Z(), a = Yr({ color: r(() => n.value.color && (he(i.value.colors, n.value.color) || n.value.color)).value }), o = r(() => [a.value, `${a.value}--${n.value.size}`]);
3767
+ let n = r(() => H({}, Ni, e, t)), i = X(), a = Mi({ color: r(() => n.value.color && (R(i.value.colors, n.value.color) || n.value.color)).value }), o = r(() => [a.value, `${a.value}--${n.value.size}`]);
3299
3768
  return () => u("div", { class: o.value }, null);
3300
3769
  }
3301
- }), Qr = () => r(() => P({
3770
+ }), Fi = () => r(() => F({
3302
3771
  bottom: 0,
3303
3772
  left: 0,
3304
3773
  position: "absolute",
@@ -3315,7 +3784,7 @@ var In = {
3315
3784
  position: "fixed",
3316
3785
  zIndex: 999
3317
3786
  }
3318
- })), $r = { size: "auto" }, ei = /* @__PURE__ */ d({
3787
+ })), Ii = { size: "auto" }, Li = /* @__PURE__ */ d({
3319
3788
  name: "TLoading",
3320
3789
  props: {
3321
3790
  active: Boolean,
@@ -3323,19 +3792,19 @@ var In = {
3323
3792
  size: String
3324
3793
  },
3325
3794
  setup(e, { attrs: t }) {
3326
- let n = r(() => U({}, $r, e, t)), i = Qr(), a = r(() => [i.value, {
3795
+ let n = r(() => H({}, Ii, e, t)), i = Fi(), a = r(() => [i.value, {
3327
3796
  [`${i.value}--active`]: n.value.active,
3328
3797
  [`${i.value}--full-page`]: n.value.fullPage
3329
3798
  }]);
3330
- return () => u("div", { class: a.value }, [u(Zr, { size: n.value.size }, null)]);
3799
+ return () => u("div", { class: a.value }, [u(Pi, { size: n.value.size }, null)]);
3331
3800
  }
3332
- }), ti = {
3801
+ }), Ri = {
3333
3802
  key: 0,
3334
3803
  class: "t-loading-dots__text"
3335
- }, ni = {
3804
+ }, zi = {
3336
3805
  key: 0,
3337
3806
  class: "t-loading-dots__message"
3338
- }, ri = ["data-pending", "aria-hidden"], ii = /* @__PURE__ */ un(/* @__PURE__ */ d({
3807
+ }, Bi = ["data-pending", "aria-hidden"], Vi = /* @__PURE__ */ Z(/* @__PURE__ */ d({
3339
3808
  name: "TLoadingDots",
3340
3809
  __name: "TLoadingDots",
3341
3810
  props: {
@@ -3355,35 +3824,35 @@ var In = {
3355
3824
  n.value = !0;
3356
3825
  }, e);
3357
3826
  };
3358
- S(u), j(() => e.hintDelay, (e) => {
3827
+ S(u), M(() => e.hintDelay, (e) => {
3359
3828
  u(), n.value = !1, e !== !1 && d(e);
3360
3829
  }, { immediate: !0 });
3361
3830
  let f = r(() => !!(e.hint || t.hint) && e.hintDelay !== !1), p = r(() => !!(e.message || t.message));
3362
- return (t, r) => (C(), a(k(F), {
3831
+ return (t, r) => (C(), a(k(le), {
3363
3832
  as: e.as,
3364
3833
  class: "t-loading-dots",
3365
3834
  role: "status",
3366
3835
  "aria-live": "polite"
3367
3836
  }, {
3368
- default: M(() => [r[0] ||= c("span", {
3837
+ default: N(() => [r[0] ||= c("span", {
3369
3838
  class: "t-loading-dots__dots",
3370
3839
  "aria-hidden": "true"
3371
3840
  }, [
3372
3841
  c("span", { class: "t-loading-dots__dot" }),
3373
3842
  c("span", { class: "t-loading-dots__dot" }),
3374
3843
  c("span", { class: "t-loading-dots__dot" })
3375
- ], -1), p.value || f.value ? (C(), s("span", ti, [p.value ? (C(), s("span", ni, [D(t.$slots, "message", {}, () => [l(O(e.message), 1)], !0)])) : o("", !0), f.value ? (C(), s("span", {
3844
+ ], -1), p.value || f.value ? (C(), s("span", Ri, [p.value ? (C(), s("span", zi, [D(t.$slots, "message", {}, () => [l(O(e.message), 1)], !0)])) : o("", !0), f.value ? (C(), s("span", {
3376
3845
  key: n.value ? "shown" : "pending",
3377
3846
  class: "t-loading-dots__hint",
3378
3847
  "data-pending": !n.value || void 0,
3379
3848
  "aria-hidden": !n.value || void 0
3380
- }, [D(t.$slots, "hint", {}, () => [l(O(e.hint), 1)], !0)], 8, ri)) : o("", !0)])) : o("", !0)]),
3849
+ }, [D(t.$slots, "hint", {}, () => [l(O(e.hint), 1)], !0)], 8, Bi)) : o("", !0)])) : o("", !0)]),
3381
3850
  _: 3
3382
3851
  }, 8, ["as"]));
3383
3852
  }
3384
- }), [["__scopeId", "data-v-9bc5da3b"]]), ai = () => {
3385
- let e = Z();
3386
- return r(() => P({
3853
+ }), [["__scopeId", "data-v-9bc5da3b"]]), Hi = () => {
3854
+ let e = X();
3855
+ return r(() => F({
3387
3856
  "&, *": {
3388
3857
  margin: 0,
3389
3858
  padding: 0,
@@ -3430,7 +3899,7 @@ var In = {
3430
3899
  "&--disabled &__radio::after": { background: e.value.colors.gray.medium2 },
3431
3900
  "&--disabled &__label": { color: e.value.colors.gray.medium2 }
3432
3901
  }));
3433
- }, oi = { labelPosition: "right" }, si = /* @__PURE__ */ d({
3902
+ }, Ui = { labelPosition: "right" }, Wi = /* @__PURE__ */ d({
3434
3903
  name: "TRadio",
3435
3904
  props: {
3436
3905
  id: String,
@@ -3468,11 +3937,11 @@ var In = {
3468
3937
  "update:modelValue"
3469
3938
  ],
3470
3939
  setup(e, { emit: t, attrs: n }) {
3471
- let i = r(() => U({}, oi, e, n)), a = T(i.value.modelValue === i.value.value);
3472
- j(() => [i.value.modelValue, i.value.value], () => {
3940
+ let i = r(() => H({}, Ui, e, n)), a = T(i.value.modelValue === i.value.value);
3941
+ M(() => [i.value.modelValue, i.value.value], () => {
3473
3942
  a.value = i.value.modelValue === i.value.value;
3474
3943
  });
3475
- let o = ai(), s = r(() => [
3944
+ let o = Hi(), s = r(() => [
3476
3945
  o.value,
3477
3946
  `${o.value}--label-${i.value.labelPosition}`,
3478
3947
  {
@@ -3498,15 +3967,15 @@ var In = {
3498
3967
  for: i.value.id
3499
3968
  }, [i.value.label])]);
3500
3969
  }
3501
- }), ci = {
3970
+ }), Gi = {
3502
3971
  railTopInset: 3,
3503
3972
  railBottomInset: 8,
3504
3973
  minThumbHeight: 6,
3505
3974
  thumbHeightFactor: .65
3506
3975
  };
3507
- function li(e, t = {}) {
3976
+ function Ki(e, t = {}) {
3508
3977
  let { railTopInset: n, railBottomInset: i, minThumbHeight: a, thumbHeightFactor: o, onDragStart: s, onDragEnd: c } = {
3509
- ...ci,
3978
+ ...Gi,
3510
3979
  ...t
3511
3980
  }, l = T(0), u = T(0), d = T(!1), f = T(0), p = T(0), m = r(() => l.value > 0);
3512
3981
  function h() {
@@ -3548,9 +4017,9 @@ function li(e, t = {}) {
3548
4017
  }
3549
4018
  //#endregion
3550
4019
  //#region src/components/TSelect/TSelect.styles.tsx
3551
- var ui = () => {
3552
- let e = Z();
3553
- return r(() => P({
4020
+ var qi = () => {
4021
+ let e = X();
4022
+ return r(() => F({
3554
4023
  "&, *": {
3555
4024
  margin: 0,
3556
4025
  padding: 0,
@@ -3678,31 +4147,31 @@ var ui = () => {
3678
4147
  "&--error &__helper-text": { color: e.value.colors.error },
3679
4148
  "&--full-width": { width: "100%" }
3680
4149
  }));
3681
- }, di = (e) => typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map((e) => di(e)).join("").trim() : e && typeof e == "object" && "children" in e ? di(e.children) : "", fi = (e, t = []) => (e?.forEach((e) => {
3682
- e.type === "option" ? t.push(e) : Array.isArray(e.children) && fi(e.children, t);
3683
- }), t), pi = (e) => fi(e).map((e) => ({
4150
+ }, Ji = (e) => typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map((e) => Ji(e)).join("").trim() : e && typeof e == "object" && "children" in e ? Ji(e.children) : "", Yi = (e, t = []) => (e?.forEach((e) => {
4151
+ e.type === "option" ? t.push(e) : Array.isArray(e.children) && Yi(e.children, t);
4152
+ }), t), Xi = (e) => Yi(e).map((e) => ({
3684
4153
  value: e.props?.value,
3685
4154
  disabled: !!e.props?.disabled,
3686
- label: di(e.children)
3687
- })), mi = (e, t) => {
4155
+ label: Ji(e.children)
4156
+ })), Zi = (e, t) => {
3688
4157
  if (e === t) return !0;
3689
4158
  if (e == null || t == null || typeof e != "object" || typeof t != "object") return !1;
3690
4159
  let n = Object.getPrototypeOf(e);
3691
4160
  if (n !== Object.prototype || Object.getPrototypeOf(t) !== n) return !1;
3692
4161
  let r = Object.keys(e), i = Object.keys(t);
3693
4162
  return r.length === i.length ? r.every((n) => e[n] === t[n]) : !1;
3694
- }, hi = (e, t) => {
3695
- let n = e.findIndex((e) => mi(e.value, t) && !e.disabled);
4163
+ }, Qi = (e, t) => {
4164
+ let n = e.findIndex((e) => Zi(e.value, t) && !e.disabled);
3696
4165
  if (n >= 0) return n;
3697
4166
  let r = e.findIndex((e) => !e.disabled);
3698
4167
  return r >= 0 ? r : -1;
3699
- }, gi = (e) => {
4168
+ }, $i = (e) => {
3700
4169
  if (typeof e.leftIcon == "string") return e.leftIcon;
3701
4170
  let t = e["left-icon"];
3702
4171
  return typeof t == "string" ? t : "";
3703
- }, _i = (e, t) => e ? e.includes(":") ? e : `${t}:${e}` : "", vi = () => {
3704
- let e = Z();
3705
- return r(() => P({
4172
+ }, ea = (e, t) => e ? e.includes(":") ? e : `${t}:${e}` : "", ta = () => {
4173
+ let e = X();
4174
+ return r(() => F({
3706
4175
  "&, *": { boxSizing: "border-box" },
3707
4176
  listStyle: "none",
3708
4177
  padding: "0.5rem 0.625rem",
@@ -3732,7 +4201,7 @@ var ui = () => {
3732
4201
  pointerEvents: "none"
3733
4202
  }
3734
4203
  }));
3735
- }, yi = /* @__PURE__ */ d({
4204
+ }, na = /* @__PURE__ */ d({
3736
4205
  name: "TSelectOption",
3737
4206
  emits: ["select", "hover"],
3738
4207
  props: {
@@ -3743,7 +4212,7 @@ var ui = () => {
3743
4212
  withSeparator: Boolean
3744
4213
  },
3745
4214
  setup(e, { slots: t, emit: n }) {
3746
- let i = vi(), a = r(() => [i.value, {
4215
+ let i = ta(), a = r(() => [i.value, {
3747
4216
  [`${i.value}--selected`]: e.selected,
3748
4217
  [`${i.value}--highlighted`]: e.highlighted,
3749
4218
  [`${i.value}--disabled`]: e.disabled,
@@ -3761,16 +4230,16 @@ var ui = () => {
3761
4230
  onMouseenter: o
3762
4231
  }, [t.default?.() || e.label]);
3763
4232
  }
3764
- }), bi = 36;
3765
- function xi(e, t, n) {
4233
+ }), ra = 36;
4234
+ function ia(e, t, n) {
3766
4235
  let r = T(!1), i = T(-1), a = T(null), o = T(null), s = T(null), c = T(!1), l = T(!1), u = () => {
3767
- n.value || !e.value.length || (r.value = !0, i.value = hi(e.value, t.value));
4236
+ n.value || !e.value.length || (r.value = !0, i.value = Qi(e.value, t.value));
3768
4237
  }, d = () => {
3769
4238
  r.value = !1, i.value = -1, c.value = !1, l.value = !1;
3770
4239
  }, f = (e) => {
3771
4240
  let t = s.value;
3772
4241
  t && t.scrollBy({
3773
- top: e * bi,
4242
+ top: e * ra,
3774
4243
  behavior: "smooth"
3775
4244
  });
3776
4245
  }, p = (e) => {
@@ -3825,7 +4294,7 @@ function xi(e, t, n) {
3825
4294
  }
3826
4295
  //#endregion
3827
4296
  //#region src/components/TSelect/TSelect.tsx
3828
- var Si = /* @__PURE__ */ d({
4297
+ var aa = /* @__PURE__ */ d({
3829
4298
  name: "TSelect",
3830
4299
  emits: [
3831
4300
  "input",
@@ -3869,7 +4338,7 @@ var Si = /* @__PURE__ */ d({
3869
4338
  id: String
3870
4339
  },
3871
4340
  setup(e, { attrs: t, emit: n, slots: i, expose: a }) {
3872
- let o = r(() => U({}, e, t)), s = Z(), c = T(null), l = ui(), d = r(() => [
4341
+ let o = r(() => H({}, e, t)), s = X(), c = T(null), l = qi(), d = r(() => [
3873
4342
  l.value,
3874
4343
  `${l.value}__container`,
3875
4344
  {
@@ -3877,7 +4346,7 @@ var Si = /* @__PURE__ */ d({
3877
4346
  [`${l.value}--full-width`]: o.value.fullWidth
3878
4347
  }
3879
4348
  ]);
3880
- j(() => [o.value.modelValue, o.value.value], ([e, t]) => {
4349
+ M(() => [o.value.modelValue, o.value.value], ([e, t]) => {
3881
4350
  c.value = e === null ? t : e;
3882
4351
  }, { immediate: !0 });
3883
4352
  let f = r({
@@ -3885,7 +4354,7 @@ var Si = /* @__PURE__ */ d({
3885
4354
  set: (e) => {
3886
4355
  c.value = e, n("update:modelValue", e), n("input", e), n("change", e);
3887
4356
  }
3888
- }), p = r(() => pi(i.default?.() ?? [])), m = r(() => p.value.find((e) => mi(e.value, f.value))), h = r(() => !!m.value), _ = r(() => m.value ? m.value.label : o.value.placeholder ? o.value.placeholder : ""), v = r(() => gi(o.value)), y = r(() => _i(v.value, s.value.iconSet)), b = xi(p, f, r(() => !!o.value.disabled)), x = li(b.menuRef, {
4357
+ }), p = r(() => Xi(i.default?.() ?? [])), m = r(() => p.value.find((e) => Zi(e.value, f.value))), h = r(() => !!m.value), _ = r(() => m.value ? m.value.label : o.value.placeholder ? o.value.placeholder : ""), v = r(() => $i(o.value)), y = r(() => ea(v.value, s.value.iconSet)), b = ia(p, f, r(() => !!o.value.disabled)), x = Ki(b.menuRef, {
3889
4358
  onDragStart: () => {
3890
4359
  b.isInteractingWithMenu.value = !0;
3891
4360
  },
@@ -3895,14 +4364,14 @@ var Si = /* @__PURE__ */ d({
3895
4364
  });
3896
4365
  }
3897
4366
  });
3898
- return j(() => [b.menuOpen.value, p.value.length], ([e]) => {
4367
+ return M(() => [b.menuOpen.value, p.value.length], ([e]) => {
3899
4368
  e && requestAnimationFrame(() => x.update());
3900
4369
  }), a({ focus: () => b.triggerRef.value?.focus() }), () => u("div", { class: d.value }, [
3901
4370
  i.label?.() || o.value.label && u("label", {
3902
4371
  class: `${l.value}__label`,
3903
4372
  for: o.value.id
3904
4373
  }, [o.value.label]),
3905
- u("div", { class: `${l.value}__wrapper` }, [v.value && u(N, {
4374
+ u("div", { class: `${l.value}__wrapper` }, [v.value && u(P, {
3906
4375
  icon: y.value,
3907
4376
  class: [`${l.value}__icon`, `${l.value}__icon--left`]
3908
4377
  }, null), u("div", {
@@ -3942,10 +4411,10 @@ var Si = /* @__PURE__ */ d({
3942
4411
  role: "listbox",
3943
4412
  ref: b.menuRef,
3944
4413
  onScroll: x.update
3945
- }, [p.value.map((e, t) => u(yi, {
4414
+ }, [p.value.map((e, t) => u(na, {
3946
4415
  key: `${String(e.value)}-${t}`,
3947
4416
  label: e.label,
3948
- selected: mi(e.value, f.value),
4417
+ selected: Zi(e.value, f.value),
3949
4418
  highlighted: t === b.highlightedIndex.value,
3950
4419
  disabled: e.disabled,
3951
4420
  withSeparator: t < p.value.length - 1,
@@ -3965,9 +4434,9 @@ var Si = /* @__PURE__ */ d({
3965
4434
  i.helperText?.() || o.value.helperText && u("p", { class: `${l.value}__helper-text` }, [o.value.helperText])
3966
4435
  ]);
3967
4436
  }
3968
- }), Ci = () => {
3969
- let e = Z();
3970
- return r(() => P({
4437
+ }), oa = () => {
4438
+ let e = X();
4439
+ return r(() => F({
3971
4440
  "&, *": {
3972
4441
  margin: 0,
3973
4442
  boxSizing: "border-box"
@@ -4048,12 +4517,12 @@ var Si = /* @__PURE__ */ d({
4048
4517
  "&--error &__select:not(:disabled), &--error &__select:focus": { borderColor: e.value.colors.error },
4049
4518
  "&--error + &__helper-text": { color: e.value.colors.error }
4050
4519
  }));
4051
- }, wi = (e) => {
4520
+ }, sa = (e) => {
4052
4521
  let t = [];
4053
4522
  return e?.forEach((e) => {
4054
- e.type?.name === "TSelectDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...wi(e.children));
4523
+ e.type?.name === "TSelectDropdownItem" ? t.push(e) : Array.isArray(e.children) && t.push(...sa(e.children));
4055
4524
  }), t;
4056
- }, Ti = /* @__PURE__ */ d({
4525
+ }, ca = /* @__PURE__ */ d({
4057
4526
  name: "TSelectDropdown",
4058
4527
  props: {
4059
4528
  open: Boolean,
@@ -4067,7 +4536,7 @@ var Si = /* @__PURE__ */ d({
4067
4536
  },
4068
4537
  emits: ["cancel", "click"],
4069
4538
  setup(e, { slots: t, attrs: n, emit: i }) {
4070
- let a = r(() => U({}, e, n)), o = Ci(), s = r(() => [
4539
+ let a = r(() => H({}, e, n)), o = oa(), s = r(() => [
4071
4540
  o.value,
4072
4541
  `${o.value}__menu_container`,
4073
4542
  {
@@ -4088,7 +4557,7 @@ var Si = /* @__PURE__ */ d({
4088
4557
  }), S(() => {
4089
4558
  document.removeEventListener("click", d), l.value?.removeEventListener("keydown", f);
4090
4559
  });
4091
- let p = r(() => wi(t.default?.() || [])), m = () => {
4560
+ let p = r(() => sa(t.default?.() || [])), m = () => {
4092
4561
  i("click");
4093
4562
  };
4094
4563
  return () => u("div", { class: c.value }, [
@@ -4111,9 +4580,9 @@ var Si = /* @__PURE__ */ d({
4111
4580
  t.helperText?.() || a.value.helperText && u("p", { class: `${o.value}__helper-text` }, [a.value.helperText])
4112
4581
  ]);
4113
4582
  }
4114
- }), Ei = () => {
4115
- let e = Z();
4116
- return r(() => P({
4583
+ }), la = () => {
4584
+ let e = X();
4585
+ return r(() => F({
4117
4586
  "&, *": {
4118
4587
  margin: 0,
4119
4588
  boxSizing: "border-box"
@@ -4140,12 +4609,12 @@ var Si = /* @__PURE__ */ d({
4140
4609
  float: "right"
4141
4610
  }
4142
4611
  }));
4143
- }, Di = /* @__PURE__ */ d({
4612
+ }, ua = /* @__PURE__ */ d({
4144
4613
  name: "TSelectDropdownItem",
4145
4614
  emits: ["click"],
4146
4615
  props: { label: String },
4147
4616
  setup(e, { slots: t, emit: n, attrs: i }) {
4148
- let a = r(() => U({}, e, i)), o = Ei(), s = () => {
4617
+ let a = r(() => H({}, e, i)), o = la(), s = () => {
4149
4618
  n("click");
4150
4619
  }, c = (e) => {
4151
4620
  e.key === "Enter" && !a.value.disabled && (n("click"), e.preventDefault());
@@ -4158,7 +4627,7 @@ var Si = /* @__PURE__ */ d({
4158
4627
  tabindex: 0
4159
4628
  }, [t.default?.(), t.label?.() || a.value.label && u("label", { class: `${o.value}__label` }, [a.value.label])]);
4160
4629
  }
4161
- }), Oi = /* @__PURE__ */ un(/* @__PURE__ */ d({
4630
+ }), da = /* @__PURE__ */ Z(/* @__PURE__ */ d({
4162
4631
  name: "TSwitch",
4163
4632
  inheritAttrs: !1,
4164
4633
  __name: "TSwitch",
@@ -4178,16 +4647,16 @@ var Si = /* @__PURE__ */ d({
4178
4647
  }),
4179
4648
  emits: /* @__PURE__ */ h(["change", "input"], ["update:modelValue"]),
4180
4649
  setup(e, { emit: t }) {
4181
- let n = t, i = re(e, "modelValue"), s = r(() => e.modelValue ?? e.value), c = ne(), d = r(() => e.id ?? c), { wrapperAttrs: f, controlAttrs: p } = Gn(), m = (e) => {
4650
+ let n = t, i = re(e, "modelValue"), s = r(() => e.modelValue ?? e.value), c = ne(), d = r(() => e.id ?? c), { wrapperAttrs: f, controlAttrs: p } = Zn(), m = (e) => {
4182
4651
  i.value = e, n("change", e), n("input", e);
4183
4652
  };
4184
- return (t, n) => (C(), a(k(F), g(k(f), {
4653
+ return (t, n) => (C(), a(k(le), g(k(f), {
4185
4654
  as: e.as,
4186
4655
  class: "t-switch",
4187
4656
  "data-label-position": e.labelPosition,
4188
4657
  "data-disabled": e.disabled || void 0
4189
4658
  }), {
4190
- default: M(() => [u(k(ae), g({ id: d.value }, k(p), {
4659
+ default: N(() => [u(k(ue), g({ id: d.value }, k(p), {
4191
4660
  "model-value": s.value,
4192
4661
  "true-value": e.trueValue,
4193
4662
  "false-value": e.falseValue,
@@ -4195,7 +4664,7 @@ var Si = /* @__PURE__ */ d({
4195
4664
  class: "t-switch-track",
4196
4665
  "onUpdate:modelValue": m
4197
4666
  }), {
4198
- default: M(() => [u(k(oe), { class: "t-switch-thumb" })]),
4667
+ default: N(() => [u(k(de), { class: "t-switch-thumb" })]),
4199
4668
  _: 1
4200
4669
  }, 16, [
4201
4670
  "id",
@@ -4203,13 +4672,13 @@ var Si = /* @__PURE__ */ d({
4203
4672
  "true-value",
4204
4673
  "false-value",
4205
4674
  "disabled"
4206
- ]), e.label || t.$slots.label ? (C(), a(k(ie), {
4675
+ ]), e.label || t.$slots.label ? (C(), a(k(ce), {
4207
4676
  key: 0,
4208
4677
  as: e.as === "label" ? "span" : "label",
4209
4678
  for: e.as === "label" ? void 0 : d.value,
4210
4679
  class: "t-switch-label"
4211
4680
  }, {
4212
- default: M(() => [D(t.$slots, "label", { label: e.label }, () => [l(O(e.label), 1)], !0)]),
4681
+ default: N(() => [D(t.$slots, "label", { label: e.label }, () => [l(O(e.label), 1)], !0)]),
4213
4682
  _: 3
4214
4683
  }, 8, ["as", "for"])) : o("", !0)]),
4215
4684
  _: 3
@@ -4219,9 +4688,9 @@ var Si = /* @__PURE__ */ d({
4219
4688
  "data-disabled"
4220
4689
  ]));
4221
4690
  }
4222
- }), [["__scopeId", "data-v-607c870f"]]), ki = () => {
4223
- let e = Z();
4224
- return r(() => P({
4691
+ }), [["__scopeId", "data-v-607c870f"]]), fa = () => {
4692
+ let e = X();
4693
+ return r(() => F({
4225
4694
  "&, *": {
4226
4695
  margin: 0,
4227
4696
  padding: 0,
@@ -4266,7 +4735,7 @@ var Si = /* @__PURE__ */ d({
4266
4735
  }
4267
4736
  }
4268
4737
  }));
4269
- }, Ai = /* @__PURE__ */ d({
4738
+ }, pa = /* @__PURE__ */ d({
4270
4739
  name: "TTabBar",
4271
4740
  emits: [
4272
4741
  "input",
@@ -4279,8 +4748,8 @@ var Si = /* @__PURE__ */ d({
4279
4748
  modelValue: String
4280
4749
  },
4281
4750
  setup(e, { attrs: t, emit: n }) {
4282
- let i = r(() => U({}, e, t)), a = ki(), o = T(i.value.modelValue === void 0 ? i.value.value : i.value.modelValue);
4283
- j([() => i.value.modelValue, () => i.value.value], () => {
4751
+ let i = r(() => H({}, e, t)), a = fa(), o = T(i.value.modelValue === void 0 ? i.value.value : i.value.modelValue);
4752
+ M([() => i.value.modelValue, () => i.value.value], () => {
4284
4753
  o.value = i.value.modelValue === void 0 ? i.value.value : i.value.modelValue;
4285
4754
  });
4286
4755
  let s = (e) => {
@@ -4301,9 +4770,9 @@ var Si = /* @__PURE__ */ d({
4301
4770
  onClick: () => s(e)
4302
4771
  }, [e])]))])]);
4303
4772
  }
4304
- }), ji = () => {
4305
- let e = Z();
4306
- return r(() => P({
4773
+ }), ma = () => {
4774
+ let e = X();
4775
+ return r(() => F({
4307
4776
  paddingBottom: "0.625rem",
4308
4777
  color: e.value.colors.gray.main,
4309
4778
  alignItems: "center",
@@ -4325,7 +4794,7 @@ var Si = /* @__PURE__ */ d({
4325
4794
  color: e.value.colors.primary.dark
4326
4795
  }
4327
4796
  }));
4328
- }, Mi = /* @__PURE__ */ d({
4797
+ }, ha = /* @__PURE__ */ d({
4329
4798
  name: "TTab",
4330
4799
  props: {
4331
4800
  id: {
@@ -4348,7 +4817,7 @@ var Si = /* @__PURE__ */ d({
4348
4817
  }
4349
4818
  },
4350
4819
  setup(e, { slots: t }) {
4351
- let n = ji(), i = p("tabSelection");
4820
+ let n = ma(), i = p("tabSelection");
4352
4821
  if (!i) throw Error("tabSelection provider missing.");
4353
4822
  let { selectTab: a } = i, o = () => {
4354
4823
  a(e.id);
@@ -4364,15 +4833,15 @@ var Si = /* @__PURE__ */ d({
4364
4833
  tabindex: 0
4365
4834
  }, [t.default?.()]);
4366
4835
  }
4367
- }), Ni = () => {
4368
- let e = Z();
4369
- return r(() => P({
4836
+ }), ga = () => {
4837
+ let e = X();
4838
+ return r(() => F({
4370
4839
  width: "100%",
4371
4840
  borderBottom: `0.125rem solid ${e.value.colors.gray.medium2}`,
4372
4841
  display: "flex",
4373
4842
  gap: "2.5rem"
4374
4843
  }));
4375
- }, Pi = /* @__PURE__ */ d({
4844
+ }, _a = /* @__PURE__ */ d({
4376
4845
  name: "TTabBarExtended",
4377
4846
  emits: ["select"],
4378
4847
  props: {
@@ -4389,7 +4858,7 @@ var Si = /* @__PURE__ */ d({
4389
4858
  ] }
4390
4859
  },
4391
4860
  setup(e, { emit: t }) {
4392
- let n = Ni(), i = ji(), a = r(() => e.tabs.map((e, t) => ({
4861
+ let n = ga(), i = ma(), a = r(() => e.tabs.map((e, t) => ({
4393
4862
  id: `${t}`,
4394
4863
  label: e.label,
4395
4864
  value: e.value
@@ -4413,7 +4882,7 @@ var Si = /* @__PURE__ */ d({
4413
4882
  e.preventDefault(), e.key === "Enter" && _();
4414
4883
  }, x = (e) => {
4415
4884
  f(e), v();
4416
- }, S = () => u(Ln, {
4885
+ }, S = () => u(Un, {
4417
4886
  open: d.value,
4418
4887
  position: "center",
4419
4888
  onCancel: _
@@ -4425,7 +4894,7 @@ var Si = /* @__PURE__ */ d({
4425
4894
  tabindex: 0,
4426
4895
  role: "button"
4427
4896
  }, [l(". . .")]),
4428
- default: () => a.value.map((e) => u(zn, {
4897
+ default: () => a.value.map((e) => u(Gn, {
4429
4898
  disabled: c.value.id === e.id,
4430
4899
  onClick: () => x(e.id)
4431
4900
  }, { default: () => [e.label] }))
@@ -4433,16 +4902,16 @@ var Si = /* @__PURE__ */ d({
4433
4902
  return () => u("nav", {
4434
4903
  role: "navigation",
4435
4904
  class: [n.value]
4436
- }, [h.value.map((e) => u(Mi, {
4905
+ }, [h.value.map((e) => u(ha, {
4437
4906
  key: `${e.label}-${e.id}`,
4438
4907
  id: e.id,
4439
4908
  selected: c.value.id === e.id,
4440
4909
  value: e.value
4441
4910
  }, { default: () => [e.label] })), g.value ? u(S, null, null) : null]);
4442
4911
  }
4443
- }), Fi = () => {
4444
- let e = Z();
4445
- return r(() => P({
4912
+ }), va = () => {
4913
+ let e = X();
4914
+ return r(() => F({
4446
4915
  "&, *": {
4447
4916
  margin: 0,
4448
4917
  padding: 0,
@@ -4500,7 +4969,7 @@ var Si = /* @__PURE__ */ d({
4500
4969
  "&--error &__helper-text": { color: e.value.colors.error },
4501
4970
  "&--full-width": { width: "100%" }
4502
4971
  }));
4503
- }, Ii = 1, Li = /* @__PURE__ */ d({
4972
+ }, ya = 1, ba = /* @__PURE__ */ d({
4504
4973
  name: "TTextArea",
4505
4974
  emits: [
4506
4975
  "input",
@@ -4527,7 +4996,7 @@ var Si = /* @__PURE__ */ d({
4527
4996
  }
4528
4997
  },
4529
4998
  setup(e, { attrs: t, emit: n, slots: i, expose: a }) {
4530
- let o = r(() => U({}, e, t)), s = Fi(), c = r({
4999
+ let o = r(() => H({}, e, t)), s = va(), c = r({
4531
5000
  get: () => o.value.modelValue === void 0 ? o.value.value : o.value.modelValue,
4532
5001
  set: (e) => {
4533
5002
  n("update:modelValue", e), n("input", e), n("change", e);
@@ -4551,7 +5020,7 @@ var Si = /* @__PURE__ */ d({
4551
5020
  }, m = T(null);
4552
5021
  return a({ focus: () => {
4553
5022
  m.value?.focus();
4554
- } }), j(() => c.value, async () => {
5023
+ } }), M(() => c.value, async () => {
4555
5024
  o.value.autoResize && (await _(), l());
4556
5025
  }), () => u("div", { class: [
4557
5026
  s.value,
@@ -4570,7 +5039,7 @@ var Si = /* @__PURE__ */ d({
4570
5039
  id: o.value.id,
4571
5040
  class: [`${s.value}__textarea`, { [`${s.value}__textarea--auto-resize`]: o.value.autoResize }],
4572
5041
  style: o.value.autoResize ? { height: "auto" } : void 0,
4573
- rows: o.value.autoResize ? Ii : void 0,
5042
+ rows: o.value.autoResize ? ya : void 0,
4574
5043
  placeholder: o.value.placeholder,
4575
5044
  value: c.value,
4576
5045
  onInput: d,
@@ -4583,7 +5052,7 @@ var Si = /* @__PURE__ */ d({
4583
5052
  i.helperText?.() || o.value.helperText && u("p", { class: `${s.value}__helper-text` }, [o.value.helperText])
4584
5053
  ]);
4585
5054
  }
4586
- }), Ri = /* @__PURE__ */ d({
5055
+ }), xa = /* @__PURE__ */ d({
4587
5056
  name: "TThemeProvider",
4588
5057
  inheritAttrs: !1,
4589
5058
  props: { theme: {
@@ -4591,8 +5060,8 @@ var Si = /* @__PURE__ */ d({
4591
5060
  default: () => ({})
4592
5061
  } },
4593
5062
  setup(e, { slots: t, attrs: n }) {
4594
- let i = r(() => sn(e.theme ?? {}));
4595
- return w(cn, i), () => {
5063
+ let i = r(() => mn(e.theme ?? {}));
5064
+ return w(hn, i), () => {
4596
5065
  let { cssVars: e } = i.value;
4597
5066
  return f("div", {
4598
5067
  ...n,
@@ -4601,166 +5070,9 @@ var Si = /* @__PURE__ */ d({
4601
5070
  }, t.default?.());
4602
5071
  };
4603
5072
  }
4604
- });
4605
- //#endregion
4606
- //#region src/composables/click.ts
4607
- function zi(e, t) {
4608
- let n = (n) => {
4609
- let r = e();
4610
- r && !r.contains(n.target) && t();
4611
- };
4612
- x(() => {
4613
- document.addEventListener("click", n);
4614
- }), b(() => {
4615
- document.removeEventListener("click", n);
4616
- });
4617
- }
4618
- //#endregion
4619
- //#region src/composables/tooltip.ts
4620
- var Bi = (e) => {
4621
- let t = T(!1), n = null, i = () => {
4622
- t.value = !0, n && clearTimeout(n);
4623
- }, a = () => t.value = !1, o = {
4624
- hover: {
4625
- onMouseenter: i,
4626
- onMouseleave: () => {
4627
- n = setTimeout(a, .1 * 1e3);
4628
- }
4629
- },
4630
- click: { onClick: () => t.value ? a() : i() }
4631
- }, s = r(() => o[e.value ?? "hover"]), c = T(null);
4632
- return zi(() => c.value, a), {
4633
- isVisible: t,
4634
- triggerHandler: s,
4635
- wrapperRef: c
4636
- };
4637
- }, Vi = () => {
4638
- let e = Z();
4639
- return r(() => P({
4640
- position: "relative",
4641
- width: "fit-content",
4642
- "&, *": {
4643
- padding: 0,
4644
- margin: 0,
4645
- boxSizing: "border-box"
4646
- },
4647
- "&__tooltip": {
4648
- display: "none",
4649
- position: "absolute",
4650
- width: "fit-content",
4651
- background: "#fff",
4652
- boxShadow: "3px 4px 25px 0px #26323826",
4653
- borderRadius: "1rem",
4654
- padding: "0.75rem 1rem",
4655
- whiteSpace: "nowrap",
4656
- fontSize: "0.75rem",
4657
- weight: e.value.typography.fontWeight.regular,
4658
- lineHeight: "1.125rem",
4659
- "&:before": {
4660
- content: "\"\"",
4661
- width: 0,
4662
- height: 0,
4663
- position: "absolute",
4664
- borderStyle: "solid"
4665
- }
4666
- },
4667
- "&--visible &__tooltip": { display: "block" },
4668
- "&--top &__tooltip": {
4669
- marginBottom: "1.5rem",
4670
- left: "50%",
4671
- bottom: "100%",
4672
- transform: "translateX(-50%)",
4673
- background: "#fff",
4674
- "&:before": {
4675
- left: "50%",
4676
- top: "99%",
4677
- transform: "translateX(-50%)",
4678
- borderWidth: "15px 7.5px 0px 7.5px",
4679
- borderColor: "#fff transparent transparent transparent"
4680
- }
4681
- },
4682
- "&--right &__tooltip": {
4683
- marginLeft: "1.5rem",
4684
- top: "50%",
4685
- left: "100%",
4686
- transform: "translateY(-50%)",
4687
- "&:before": {
4688
- top: "50%",
4689
- right: "99%",
4690
- transform: "translateY(-50%)",
4691
- borderWidth: "7.5px 15px 7.5px 0",
4692
- borderColor: "transparent #fff transparent transparent"
4693
- }
4694
- },
4695
- "&--bottom &__tooltip": {
4696
- marginTop: "1.5rem",
4697
- left: "50%",
4698
- top: "100%",
4699
- transform: "translateX(-50%)",
4700
- "&:before": {
4701
- left: "50%",
4702
- bottom: "99%",
4703
- transform: "translateX(-50%)",
4704
- borderWidth: "0 7.5px 15px 7.5px",
4705
- borderColor: "transparent transparent #fff transparent"
4706
- }
4707
- },
4708
- "&--left &__tooltip": {
4709
- marginRight: "1.5rem",
4710
- top: "50%",
4711
- right: "100%",
4712
- transform: "translateY(-50%)",
4713
- "&:before": {
4714
- top: "50%",
4715
- left: "99%",
4716
- transform: "translateY(-50%)",
4717
- borderWidth: "7.5px 0px 7.5px 15px",
4718
- borderColor: "transparent transparent transparent #fff"
4719
- }
4720
- },
4721
- "&--multilined &__tooltip": {
4722
- whiteSpace: "normal",
4723
- width: "max-content"
4724
- },
4725
- "&--small &__tooltip": { maxWidth: "25ch" },
4726
- "&--medium &__tooltip": { maxWidth: "30ch" },
4727
- "&--large &__tooltip": { maxWidth: "35ch" }
4728
- }));
4729
- }, Hi = {
4730
- position: "right",
4731
- size: "medium",
4732
- trigger: "hover"
4733
- }, Ui = /* @__PURE__ */ d({
4734
- name: "TTooltip",
4735
- props: {
4736
- label: String,
4737
- position: String,
4738
- multilined: Boolean,
4739
- size: String,
4740
- trigger: String
4741
- },
4742
- setup(e, { slots: t, attrs: n }) {
4743
- let i = r(() => U({}, Hi, e, n)), { isVisible: a, wrapperRef: o, triggerHandler: s } = Bi(r(() => i.value.trigger)), c = Vi(), l = r(() => [
4744
- c.value,
4745
- `${c.value}--${i.value.position}`,
4746
- `${c.value}--${i.value.trigger}`,
4747
- {
4748
- [`${c.value}--visible`]: a.value,
4749
- [`${c.value}--multilined`]: i.value.multilined,
4750
- [`${c.value}--${i.value.size}`]: i.value.multilined
4751
- }
4752
- ]);
4753
- return () => u("div", g({
4754
- ref: o,
4755
- class: l.value
4756
- }, s.value), [t.default?.(), u("div", {
4757
- role: "tooltip",
4758
- class: `${c.value}__tooltip`
4759
- }, [t.label?.() || i.value.label])]);
4760
- }
4761
- }), Wi = () => {
4762
- let e = Z();
4763
- return r(() => P({
5073
+ }), Sa = () => {
5074
+ let e = X();
5075
+ return r(() => F({
4764
5076
  "&, *": {
4765
5077
  margin: 0,
4766
5078
  boxSizing: "border-box",
@@ -4785,31 +5097,31 @@ var Bi = (e) => {
4785
5097
  "&--success": {
4786
5098
  borderColor: e.value.colors.success,
4787
5099
  color: e.value.colors.success,
4788
- background: q(e.value.colors.success, .2)
5100
+ background: K(e.value.colors.success, .2)
4789
5101
  },
4790
5102
  "&--success > &__text": { color: e.value.colors.success },
4791
5103
  "&--in-process": {
4792
5104
  borderColor: e.value.colors.inProcess,
4793
5105
  color: e.value.colors.inProcess,
4794
- background: q(e.value.colors.inProcess, .2)
5106
+ background: K(e.value.colors.inProcess, .2)
4795
5107
  },
4796
5108
  "&--in-process > &__text": { color: e.value.colors.inProcessDark },
4797
5109
  "&--warning": {
4798
5110
  borderColor: e.value.colors.warning,
4799
5111
  color: e.value.colors.warning,
4800
- background: q(e.value.colors.warning, .2)
5112
+ background: K(e.value.colors.warning, .2)
4801
5113
  },
4802
5114
  "&--warning > &__text": { color: e.value.colors.warning },
4803
5115
  "&--error": {
4804
5116
  borderColor: e.value.colors.error,
4805
5117
  color: e.value.colors.error,
4806
- background: q(e.value.colors.error, .2)
5118
+ background: K(e.value.colors.error, .2)
4807
5119
  },
4808
5120
  "&--error > &__text": { color: e.value.colors.error },
4809
5121
  "&--info": {
4810
5122
  borderColor: e.value.colors.info,
4811
5123
  color: e.value.colors.info,
4812
- background: q(e.value.colors.info, .2)
5124
+ background: K(e.value.colors.info, .2)
4813
5125
  },
4814
5126
  "&--info > &__text": { color: e.value.colors.info },
4815
5127
  "&__icon": {
@@ -4833,7 +5145,7 @@ var Bi = (e) => {
4833
5145
  }
4834
5146
  }
4835
5147
  }));
4836
- }, Gi = { variant: "default" }, Ki = /* @__PURE__ */ d({
5148
+ }, Ca = { variant: "default" }, wa = /* @__PURE__ */ d({
4837
5149
  name: "TWarning",
4838
5150
  props: {
4839
5151
  fullWidth: Boolean,
@@ -4841,7 +5153,7 @@ var Bi = (e) => {
4841
5153
  variant: String
4842
5154
  },
4843
5155
  setup(e, { slots: t }) {
4844
- let n = r(() => U({}, Gi, e)), i = Wi(), a = r(() => [
5156
+ let n = r(() => H({}, Ca, e)), i = Sa(), a = r(() => [
4845
5157
  i.value,
4846
5158
  `${i.value}--${n.value.variant}`,
4847
5159
  { [`${i.value}--full-width`]: n.value.fullWidth }
@@ -4869,11 +5181,11 @@ var Bi = (e) => {
4869
5181
  }, { default: () => [t.default?.()] })
4870
5182
  ]);
4871
5183
  }
4872
- }), qi = () => ({ open: ({ onCancel: e, onConfirm: t, ...n }) => {
5184
+ }), Ta = () => ({ open: ({ onCancel: e, onConfirm: t, ...n }) => {
4873
5185
  let r = document.createElement("div");
4874
5186
  document.body.appendChild(r);
4875
5187
  let a = i({ render() {
4876
- return f(Pr, {
5188
+ return f(Br, {
4877
5189
  ...n,
4878
5190
  onConfirm: () => {
4879
5191
  t?.(), a.unmount(), r.remove();
@@ -4889,6 +5201,6 @@ var Bi = (e) => {
4889
5201
  a.mount(r);
4890
5202
  } });
4891
5203
  //#endregion
4892
- export { hn as TButton, Dn as TCardButton, jn as TCheckbox, dn as TChip, Wn as TCombobox, _r as TCommandPalette, Pr as TDialog, Ln as TDropdown, zn as TDropdownItem, Hr as TFileUpload, Q as TIcon, Gr as TIconButton, Jr as TLink, ei as TLoading, ii as TLoadingDots, br as TModal, si as TRadio, Si as TSelect, Ti as TSelectDropdown, Di as TSelectDropdownItem, Zr as TSpinner, Oi as TSwitch, Ai as TTabBar, Pi as TTabBarExtended, yn as TTag, Li as TTextArea, Hn as TTextInput, Ri as TThemeProvider, Ui as TTooltip, $ as TTypography, Ki as TWarning, se as baseTheme, sn as createTheme, cn as injectionKey, qi as useDialog, li as useScrollbarThumb, Z as useTheme };
5204
+ export { xn as TButton, Nn as TCardButton, Ln as TCheckbox, _n as TChip, Xn as TCombobox, Cr as TCommandPalette, Br as TDialog, Ur as TDrawer, Kr as TDrawerFooter, li as TDrawerHeader, fi as TDrawerLinkRow, _i as TDrawerRow, bi as TDrawerSection, Un as TDropdown, Gn as TDropdownItem, Oi as TFileUpload, Q as TIcon, Yr as TIconButton, ji as TLink, Li as TLoading, Vi as TLoadingDots, Er as TModal, Wi as TRadio, aa as TSelect, ca as TSelectDropdown, ua as TSelectDropdownItem, Pi as TSpinner, da as TSwitch, pa as TTabBar, _a as TTabBarExtended, Tn as TTag, ba as TTextArea, Jn as TTextInput, xa as TThemeProvider, ei as TTooltip, $ as TTypography, wa as TWarning, pe as baseTheme, mn as createTheme, hn as injectionKey, Ta as useDialog, Ki as useScrollbarThumb, X as useTheme };
4893
5205
 
4894
5206
  //# sourceMappingURL=index.es.js.map