@roku-ui/vue 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SchemeSwitch.vue.d.ts +10 -1
- package/dist/index.js +364 -332
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as W, openBlock as w, createElementBlock as k, normalizeStyle as O, renderSlot as D, computed as h, ref as _, watch as K, getCurrentScope as Nt, onScopeDispose as Lt, unref as p, onMounted as oe, nextTick as at, customRef as br, isRef as jt, getCurrentInstance as Ue, readonly as Xt, shallowRef as ht, reactive as Be, watchEffect as Ce, onUpdated as yr, inject as Me, Fragment as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as W, openBlock as w, createElementBlock as k, normalizeStyle as O, renderSlot as D, computed as h, ref as _, watch as K, getCurrentScope as Nt, onScopeDispose as Lt, unref as p, onMounted as oe, nextTick as at, customRef as br, isRef as jt, getCurrentInstance as Ue, readonly as Xt, shallowRef as ht, reactive as Be, watchEffect as Ce, onUpdated as yr, inject as Me, Fragment as ne, createBlock as q, resolveDynamicComponent as we, mergeProps as Z, createCommentVNode as L, createTextVNode as We, toDisplayString as ve, withCtx as re, mergeModels as ee, useModel as se, normalizeClass as B, renderList as Se, createElementVNode as F, useAttrs as Ut, withDirectives as lt, vModelText as xr, createVNode as me, provide as Ee, Teleport as Gt, Transition as Yt, useSlots as ot, TransitionGroup as wr, vModelDynamic as Sr, withModifiers as qt, withKeys as ct, vModelCheckbox as _r, vShow as kr } from "vue";
|
|
2
|
+
const _l = /* @__PURE__ */ W({
|
|
3
3
|
__name: "AspectRatio",
|
|
4
4
|
props: {
|
|
5
5
|
ratio: { default: 1 },
|
|
@@ -32,15 +32,15 @@ function et(e) {
|
|
|
32
32
|
}, et(e);
|
|
33
33
|
}
|
|
34
34
|
var $r = /^\s+/, Cr = /\s+$/;
|
|
35
|
-
function
|
|
36
|
-
if (e = e || "", t = t || {}, e instanceof
|
|
35
|
+
function E(e, t) {
|
|
36
|
+
if (e = e || "", t = t || {}, e instanceof E)
|
|
37
37
|
return e;
|
|
38
|
-
if (!(this instanceof
|
|
39
|
-
return new
|
|
38
|
+
if (!(this instanceof E))
|
|
39
|
+
return new E(e, t);
|
|
40
40
|
var r = Ar(e);
|
|
41
41
|
this._originalInput = e, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = t.format || r.format, this._gradientType = t.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
E.prototype = {
|
|
44
44
|
isDark: function() {
|
|
45
45
|
return this.getBrightness() < 128;
|
|
46
46
|
},
|
|
@@ -71,7 +71,7 @@ R.prototype = {
|
|
|
71
71
|
return this._a = Kt(t), this._roundA = Math.round(100 * this._a) / 100, this;
|
|
72
72
|
},
|
|
73
73
|
toHsv: function() {
|
|
74
|
-
var t =
|
|
74
|
+
var t = Et(this._r, this._g, this._b);
|
|
75
75
|
return {
|
|
76
76
|
h: t.h * 360,
|
|
77
77
|
s: t.s,
|
|
@@ -80,7 +80,7 @@ R.prototype = {
|
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
toHsvString: function() {
|
|
83
|
-
var t =
|
|
83
|
+
var t = Et(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
|
|
84
84
|
return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
|
|
85
85
|
},
|
|
86
86
|
toHsl: function() {
|
|
@@ -97,13 +97,13 @@ R.prototype = {
|
|
|
97
97
|
return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
|
|
98
98
|
},
|
|
99
99
|
toHex: function(t) {
|
|
100
|
-
return
|
|
100
|
+
return Rt(this._r, this._g, this._b, t);
|
|
101
101
|
},
|
|
102
102
|
toHexString: function(t) {
|
|
103
103
|
return "#" + this.toHex(t);
|
|
104
104
|
},
|
|
105
105
|
toHex8: function(t) {
|
|
106
|
-
return
|
|
106
|
+
return Er(this._r, this._g, this._b, this._a, t);
|
|
107
107
|
},
|
|
108
108
|
toHex8String: function(t) {
|
|
109
109
|
return "#" + this.toHex8(t);
|
|
@@ -131,12 +131,12 @@ R.prototype = {
|
|
|
131
131
|
return this._a == 1 ? "rgb(" + Math.round(U(this._r, 255) * 100) + "%, " + Math.round(U(this._g, 255) * 100) + "%, " + Math.round(U(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(U(this._r, 255) * 100) + "%, " + Math.round(U(this._g, 255) * 100) + "%, " + Math.round(U(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
132
132
|
},
|
|
133
133
|
toName: function() {
|
|
134
|
-
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : Lr[
|
|
134
|
+
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : Lr[Rt(this._r, this._g, this._b, !0)] || !1;
|
|
135
135
|
},
|
|
136
136
|
toFilter: function(t) {
|
|
137
137
|
var r = "#" + zt(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
|
|
138
138
|
if (t) {
|
|
139
|
-
var l =
|
|
139
|
+
var l = E(t);
|
|
140
140
|
n = "#" + zt(l._r, l._g, l._b, l._a);
|
|
141
141
|
}
|
|
142
142
|
return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
|
|
@@ -148,7 +148,7 @@ R.prototype = {
|
|
|
148
148
|
return l ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
|
|
149
149
|
},
|
|
150
150
|
clone: function() {
|
|
151
|
-
return
|
|
151
|
+
return E(this.toString());
|
|
152
152
|
},
|
|
153
153
|
_applyModification: function(t, r) {
|
|
154
154
|
var n = t.apply(null, [this].concat([].slice.call(r)));
|
|
@@ -164,7 +164,7 @@ R.prototype = {
|
|
|
164
164
|
return this._applyModification(Or, arguments);
|
|
165
165
|
},
|
|
166
166
|
desaturate: function() {
|
|
167
|
-
return this._applyModification(
|
|
167
|
+
return this._applyModification(Rr, arguments);
|
|
168
168
|
},
|
|
169
169
|
saturate: function() {
|
|
170
170
|
return this._applyModification(zr, arguments);
|
|
@@ -201,14 +201,14 @@ R.prototype = {
|
|
|
201
201
|
return this._applyCombination(It, [4]);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
E.fromRatio = function(e, t) {
|
|
205
205
|
if (et(e) == "object") {
|
|
206
206
|
var r = {};
|
|
207
207
|
for (var n in e)
|
|
208
208
|
e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = Fe(e[n]));
|
|
209
209
|
e = r;
|
|
210
210
|
}
|
|
211
|
-
return
|
|
211
|
+
return E(e, t);
|
|
212
212
|
};
|
|
213
213
|
function Ar(e) {
|
|
214
214
|
var t = {
|
|
@@ -276,7 +276,7 @@ function Hr(e, t, r) {
|
|
|
276
276
|
b: l * 255
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Et(e, t, r) {
|
|
280
280
|
e = U(e, 255), t = U(t, 255), r = U(r, 255);
|
|
281
281
|
var n = Math.max(e, t, r), a = Math.min(e, t, r), l, i, o = n, s = n - a;
|
|
282
282
|
if (i = n === 0 ? 0 : s / n, n == a)
|
|
@@ -310,11 +310,11 @@ function Tr(e, t, r) {
|
|
|
310
310
|
b: d * 255
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Rt(e, t, r, n) {
|
|
314
314
|
var a = [fe(Math.round(e).toString(16)), fe(Math.round(t).toString(16)), fe(Math.round(r).toString(16))];
|
|
315
315
|
return n && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Er(e, t, r, n, a) {
|
|
318
318
|
var l = [fe(Math.round(e).toString(16)), fe(Math.round(t).toString(16)), fe(Math.round(r).toString(16)), fe(Jt(n))];
|
|
319
319
|
return a && l[0].charAt(0) == l[0].charAt(1) && l[1].charAt(0) == l[1].charAt(1) && l[2].charAt(0) == l[2].charAt(1) && l[3].charAt(0) == l[3].charAt(1) ? l[0].charAt(0) + l[1].charAt(0) + l[2].charAt(0) + l[3].charAt(0) : l.join("");
|
|
320
320
|
}
|
|
@@ -322,57 +322,57 @@ function zt(e, t, r, n) {
|
|
|
322
322
|
var a = [fe(Jt(n)), fe(Math.round(e).toString(16)), fe(Math.round(t).toString(16)), fe(Math.round(r).toString(16))];
|
|
323
323
|
return a.join("");
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
return !e || !t ? !1 :
|
|
325
|
+
E.equals = function(e, t) {
|
|
326
|
+
return !e || !t ? !1 : E(e).toRgbString() == E(t).toRgbString();
|
|
327
327
|
};
|
|
328
|
-
|
|
329
|
-
return
|
|
328
|
+
E.random = function() {
|
|
329
|
+
return E.fromRatio({
|
|
330
330
|
r: Math.random(),
|
|
331
331
|
g: Math.random(),
|
|
332
332
|
b: Math.random()
|
|
333
333
|
});
|
|
334
334
|
};
|
|
335
|
-
function
|
|
335
|
+
function Rr(e, t) {
|
|
336
336
|
t = t === 0 ? 0 : t || 10;
|
|
337
|
-
var r =
|
|
338
|
-
return r.s -= t / 100, r.s = st(r.s),
|
|
337
|
+
var r = E(e).toHsl();
|
|
338
|
+
return r.s -= t / 100, r.s = st(r.s), E(r);
|
|
339
339
|
}
|
|
340
340
|
function zr(e, t) {
|
|
341
341
|
t = t === 0 ? 0 : t || 10;
|
|
342
|
-
var r =
|
|
343
|
-
return r.s += t / 100, r.s = st(r.s),
|
|
342
|
+
var r = E(e).toHsl();
|
|
343
|
+
return r.s += t / 100, r.s = st(r.s), E(r);
|
|
344
344
|
}
|
|
345
345
|
function Ir(e) {
|
|
346
|
-
return
|
|
346
|
+
return E(e).desaturate(100);
|
|
347
347
|
}
|
|
348
348
|
function Vr(e, t) {
|
|
349
349
|
t = t === 0 ? 0 : t || 10;
|
|
350
|
-
var r =
|
|
351
|
-
return r.l += t / 100, r.l = st(r.l),
|
|
350
|
+
var r = E(e).toHsl();
|
|
351
|
+
return r.l += t / 100, r.l = st(r.l), E(r);
|
|
352
352
|
}
|
|
353
353
|
function Br(e, t) {
|
|
354
354
|
t = t === 0 ? 0 : t || 10;
|
|
355
|
-
var r =
|
|
356
|
-
return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))),
|
|
355
|
+
var r = E(e).toRgb();
|
|
356
|
+
return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), E(r);
|
|
357
357
|
}
|
|
358
358
|
function Or(e, t) {
|
|
359
359
|
t = t === 0 ? 0 : t || 10;
|
|
360
|
-
var r =
|
|
361
|
-
return r.l -= t / 100, r.l = st(r.l),
|
|
360
|
+
var r = E(e).toHsl();
|
|
361
|
+
return r.l -= t / 100, r.l = st(r.l), E(r);
|
|
362
362
|
}
|
|
363
363
|
function Pr(e, t) {
|
|
364
|
-
var r =
|
|
365
|
-
return r.h = n < 0 ? 360 + n : n,
|
|
364
|
+
var r = E(e).toHsl(), n = (r.h + t) % 360;
|
|
365
|
+
return r.h = n < 0 ? 360 + n : n, E(r);
|
|
366
366
|
}
|
|
367
367
|
function Dr(e) {
|
|
368
|
-
var t =
|
|
369
|
-
return t.h = (t.h + 180) % 360,
|
|
368
|
+
var t = E(e).toHsl();
|
|
369
|
+
return t.h = (t.h + 180) % 360, E(t);
|
|
370
370
|
}
|
|
371
371
|
function It(e, t) {
|
|
372
372
|
if (isNaN(t) || t <= 0)
|
|
373
373
|
throw new Error("Argument to polyad must be a positive number");
|
|
374
|
-
for (var r =
|
|
375
|
-
n.push(
|
|
374
|
+
for (var r = E(e).toHsl(), n = [E(e)], a = 360 / t, l = 1; l < t; l++)
|
|
375
|
+
n.push(E({
|
|
376
376
|
h: (r.h + l * a) % 360,
|
|
377
377
|
s: r.s,
|
|
378
378
|
l: r.l
|
|
@@ -380,12 +380,12 @@ function It(e, t) {
|
|
|
380
380
|
return n;
|
|
381
381
|
}
|
|
382
382
|
function Fr(e) {
|
|
383
|
-
var t =
|
|
384
|
-
return [
|
|
383
|
+
var t = E(e).toHsl(), r = t.h;
|
|
384
|
+
return [E(e), E({
|
|
385
385
|
h: (r + 72) % 360,
|
|
386
386
|
s: t.s,
|
|
387
387
|
l: t.l
|
|
388
|
-
}),
|
|
388
|
+
}), E({
|
|
389
389
|
h: (r + 216) % 360,
|
|
390
390
|
s: t.s,
|
|
391
391
|
l: t.l
|
|
@@ -393,37 +393,37 @@ function Fr(e) {
|
|
|
393
393
|
}
|
|
394
394
|
function Wr(e, t, r) {
|
|
395
395
|
t = t || 6, r = r || 30;
|
|
396
|
-
var n =
|
|
396
|
+
var n = E(e).toHsl(), a = 360 / r, l = [E(e)];
|
|
397
397
|
for (n.h = (n.h - (a * t >> 1) + 720) % 360; --t; )
|
|
398
|
-
n.h = (n.h + a) % 360, l.push(
|
|
398
|
+
n.h = (n.h + a) % 360, l.push(E(n));
|
|
399
399
|
return l;
|
|
400
400
|
}
|
|
401
401
|
function Nr(e, t) {
|
|
402
402
|
t = t || 6;
|
|
403
|
-
for (var r =
|
|
404
|
-
i.push(
|
|
403
|
+
for (var r = E(e).toHsv(), n = r.h, a = r.s, l = r.v, i = [], o = 1 / t; t--; )
|
|
404
|
+
i.push(E({
|
|
405
405
|
h: n,
|
|
406
406
|
s: a,
|
|
407
407
|
v: l
|
|
408
408
|
})), l = (l + o) % 1;
|
|
409
409
|
return i;
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
E.mix = function(e, t, r) {
|
|
412
412
|
r = r === 0 ? 0 : r || 50;
|
|
413
|
-
var n =
|
|
413
|
+
var n = E(e).toRgb(), a = E(t).toRgb(), l = r / 100, i = {
|
|
414
414
|
r: (a.r - n.r) * l + n.r,
|
|
415
415
|
g: (a.g - n.g) * l + n.g,
|
|
416
416
|
b: (a.b - n.b) * l + n.b,
|
|
417
417
|
a: (a.a - n.a) * l + n.a
|
|
418
418
|
};
|
|
419
|
-
return
|
|
419
|
+
return E(i);
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
var r =
|
|
421
|
+
E.readability = function(e, t) {
|
|
422
|
+
var r = E(e), n = E(t);
|
|
423
423
|
return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
|
|
424
424
|
};
|
|
425
|
-
|
|
426
|
-
var n =
|
|
425
|
+
E.isReadable = function(e, t, r) {
|
|
426
|
+
var n = E.readability(e, t), a, l;
|
|
427
427
|
switch (l = !1, a = Yr(r), a.level + a.size) {
|
|
428
428
|
case "AAsmall":
|
|
429
429
|
case "AAAlarge":
|
|
@@ -438,17 +438,17 @@ R.isReadable = function(e, t, r) {
|
|
|
438
438
|
}
|
|
439
439
|
return l;
|
|
440
440
|
};
|
|
441
|
-
|
|
441
|
+
E.mostReadable = function(e, t, r) {
|
|
442
442
|
var n = null, a = 0, l, i, o, s;
|
|
443
443
|
r = r || {}, i = r.includeFallbackColors, o = r.level, s = r.size;
|
|
444
444
|
for (var u = 0; u < t.length; u++)
|
|
445
|
-
l =
|
|
446
|
-
return
|
|
445
|
+
l = E.readability(e, t[u]), l > a && (a = l, n = E(t[u]));
|
|
446
|
+
return E.isReadable(e, n, {
|
|
447
447
|
level: o,
|
|
448
448
|
size: s
|
|
449
|
-
}) || !i ? n : (r.includeFallbackColors = !1,
|
|
449
|
+
}) || !i ? n : (r.includeFallbackColors = !1, E.mostReadable(e, ["#fff", "#000"], r));
|
|
450
450
|
};
|
|
451
|
-
var ft =
|
|
451
|
+
var ft = E.names = {
|
|
452
452
|
aliceblue: "f0f8ff",
|
|
453
453
|
antiquewhite: "faebd7",
|
|
454
454
|
aqua: "0ff",
|
|
@@ -598,7 +598,7 @@ var ft = R.names = {
|
|
|
598
598
|
whitesmoke: "f5f5f5",
|
|
599
599
|
yellow: "ff0",
|
|
600
600
|
yellowgreen: "9acd32"
|
|
601
|
-
}, Lr =
|
|
601
|
+
}, Lr = E.hexNames = jr(ft);
|
|
602
602
|
function jr(e) {
|
|
603
603
|
var t = {};
|
|
604
604
|
for (var r in e)
|
|
@@ -616,7 +616,7 @@ function U(e, t) {
|
|
|
616
616
|
function st(e) {
|
|
617
617
|
return Math.min(1, Math.max(0, e));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function te(e) {
|
|
620
620
|
return parseInt(e, 16);
|
|
621
621
|
}
|
|
622
622
|
function Xr(e) {
|
|
@@ -635,7 +635,7 @@ function Jt(e) {
|
|
|
635
635
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
636
636
|
}
|
|
637
637
|
function Vt(e) {
|
|
638
|
-
return
|
|
638
|
+
return te(e) / 255;
|
|
639
639
|
}
|
|
640
640
|
var de = function() {
|
|
641
641
|
var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
|
|
@@ -698,26 +698,26 @@ function Gr(e) {
|
|
|
698
698
|
v: r[3],
|
|
699
699
|
a: r[4]
|
|
700
700
|
} : (r = de.hex8.exec(e)) ? {
|
|
701
|
-
r:
|
|
702
|
-
g:
|
|
703
|
-
b:
|
|
701
|
+
r: te(r[1]),
|
|
702
|
+
g: te(r[2]),
|
|
703
|
+
b: te(r[3]),
|
|
704
704
|
a: Vt(r[4]),
|
|
705
705
|
format: t ? "name" : "hex8"
|
|
706
706
|
} : (r = de.hex6.exec(e)) ? {
|
|
707
|
-
r:
|
|
708
|
-
g:
|
|
709
|
-
b:
|
|
707
|
+
r: te(r[1]),
|
|
708
|
+
g: te(r[2]),
|
|
709
|
+
b: te(r[3]),
|
|
710
710
|
format: t ? "name" : "hex"
|
|
711
711
|
} : (r = de.hex4.exec(e)) ? {
|
|
712
|
-
r:
|
|
713
|
-
g:
|
|
714
|
-
b:
|
|
712
|
+
r: te(r[1] + "" + r[1]),
|
|
713
|
+
g: te(r[2] + "" + r[2]),
|
|
714
|
+
b: te(r[3] + "" + r[3]),
|
|
715
715
|
a: Vt(r[4] + "" + r[4]),
|
|
716
716
|
format: t ? "name" : "hex8"
|
|
717
717
|
} : (r = de.hex3.exec(e)) ? {
|
|
718
|
-
r:
|
|
719
|
-
g:
|
|
720
|
-
b:
|
|
718
|
+
r: te(r[1] + "" + r[1]),
|
|
719
|
+
g: te(r[2] + "" + r[2]),
|
|
720
|
+
b: te(r[3] + "" + r[3]),
|
|
721
721
|
format: t ? "name" : "hex"
|
|
722
722
|
} : !1;
|
|
723
723
|
}
|
|
@@ -757,14 +757,14 @@ const vt = _([]);
|
|
|
757
757
|
function Kr() {
|
|
758
758
|
return vt;
|
|
759
759
|
}
|
|
760
|
-
class
|
|
760
|
+
class kl {
|
|
761
761
|
static show(t) {
|
|
762
762
|
t.hash = Math.random().toString(36), vt.value = [t, ...vt.value];
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
const Zt = Symbol("tabCurrent"), Qt = Symbol("direction"),
|
|
765
|
+
const Zt = Symbol("tabCurrent"), Qt = Symbol("direction"), $l = Symbol("tabValueList"), er = Symbol("childrenElementMapSymbol");
|
|
766
766
|
function Jr(e) {
|
|
767
|
-
const t =
|
|
767
|
+
const t = E(e).toHsl().l;
|
|
768
768
|
return ue.reduce(
|
|
769
769
|
(r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
|
|
770
770
|
);
|
|
@@ -774,8 +774,8 @@ function Zr(e, t = ue) {
|
|
|
774
774
|
return { ...r, colors: r.colors.map((n) => n.toHexString()) };
|
|
775
775
|
}
|
|
776
776
|
function ge(e, t = ue) {
|
|
777
|
-
const r =
|
|
778
|
-
const o =
|
|
777
|
+
const r = E(e), n = Jr(r), a = t.findIndex((i) => i === n), l = t.map((i) => {
|
|
778
|
+
const o = E({ h: r.toHsl().h, s: r.toHsl().s, l: i }), s = 0;
|
|
779
779
|
return r.toHsl().h >= 20 && r.toHsl().h <= 200 && o.darken(2), o.saturate(s * 100), o;
|
|
780
780
|
});
|
|
781
781
|
return { baseColorIndex: a, colors: l.map((i) => i) };
|
|
@@ -1150,12 +1150,12 @@ function kn(e, t, r, n = {}) {
|
|
|
1150
1150
|
d && o && Oe(() => {
|
|
1151
1151
|
r instanceof Storage ? N(d, "storage", H) : N(d, Pt, z), g && H();
|
|
1152
1152
|
}), g || H();
|
|
1153
|
-
function C(x,
|
|
1153
|
+
function C(x, R) {
|
|
1154
1154
|
if (d) {
|
|
1155
1155
|
const V = {
|
|
1156
1156
|
key: e,
|
|
1157
1157
|
oldValue: x,
|
|
1158
|
-
newValue:
|
|
1158
|
+
newValue: R,
|
|
1159
1159
|
storageArea: r
|
|
1160
1160
|
};
|
|
1161
1161
|
d.dispatchEvent(r instanceof Storage ? new StorageEvent("storage", V) : new CustomEvent(Pt, {
|
|
@@ -1165,25 +1165,25 @@ function kn(e, t, r, n = {}) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
function M(x) {
|
|
1167
1167
|
try {
|
|
1168
|
-
const
|
|
1168
|
+
const R = r.getItem(e);
|
|
1169
1169
|
if (x == null)
|
|
1170
|
-
C(
|
|
1170
|
+
C(R, null), r.removeItem(e);
|
|
1171
1171
|
else {
|
|
1172
1172
|
const V = b.write(x);
|
|
1173
|
-
|
|
1173
|
+
R !== V && (r.setItem(e, V), C(R, V));
|
|
1174
1174
|
}
|
|
1175
|
-
} catch (
|
|
1176
|
-
v(
|
|
1175
|
+
} catch (R) {
|
|
1176
|
+
v(R);
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
1179
|
function y(x) {
|
|
1180
|
-
const
|
|
1181
|
-
if (
|
|
1180
|
+
const R = x ? x.newValue : r.getItem(e);
|
|
1181
|
+
if (R == null)
|
|
1182
1182
|
return s && S != null && r.setItem(e, b.write(S)), S;
|
|
1183
1183
|
if (!x && u) {
|
|
1184
|
-
const V = b.read(
|
|
1184
|
+
const V = b.read(R);
|
|
1185
1185
|
return typeof u == "function" ? u(V, S) : $ === "object" && !Array.isArray(V) ? { ...S, ...V } : V;
|
|
1186
|
-
} else return typeof
|
|
1186
|
+
} else return typeof R != "string" ? R : b.read(R);
|
|
1187
1187
|
}
|
|
1188
1188
|
function H(x) {
|
|
1189
1189
|
if (!(x && x.storageArea !== r)) {
|
|
@@ -1195,8 +1195,8 @@ function kn(e, t, r, n = {}) {
|
|
|
1195
1195
|
A();
|
|
1196
1196
|
try {
|
|
1197
1197
|
(x == null ? void 0 : x.newValue) !== b.write(m.value) && (m.value = y(x));
|
|
1198
|
-
} catch (
|
|
1199
|
-
v(
|
|
1198
|
+
} catch (R) {
|
|
1199
|
+
v(R);
|
|
1200
1200
|
} finally {
|
|
1201
1201
|
x ? at(T) : T();
|
|
1202
1202
|
}
|
|
@@ -1414,13 +1414,13 @@ function Hn(e, t = {}) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
1416
|
function m(y, H) {
|
|
1417
|
-
var z, x,
|
|
1417
|
+
var z, x, R, V;
|
|
1418
1418
|
if (!u)
|
|
1419
1419
|
return;
|
|
1420
1420
|
const P = Y(e);
|
|
1421
1421
|
if (!P)
|
|
1422
1422
|
return;
|
|
1423
|
-
(
|
|
1423
|
+
(R = P instanceof Document ? u.document.body : P) == null || R.scrollTo({
|
|
1424
1424
|
top: (z = Y(H)) != null ? z : g.value,
|
|
1425
1425
|
left: (x = Y(y)) != null ? x : v.value,
|
|
1426
1426
|
behavior: Y(s)
|
|
@@ -1444,14 +1444,14 @@ function Hn(e, t = {}) {
|
|
|
1444
1444
|
var H;
|
|
1445
1445
|
if (!u)
|
|
1446
1446
|
return;
|
|
1447
|
-
const z = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || Q(y), { display: x, flexDirection:
|
|
1447
|
+
const z = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || Q(y), { display: x, flexDirection: R } = getComputedStyle(z), V = z.scrollLeft;
|
|
1448
1448
|
b.left = V < d.value, b.right = V > d.value;
|
|
1449
1449
|
const P = Math.abs(V) <= (i.left || 0), X = Math.abs(V) + z.clientWidth >= z.scrollWidth - (i.right || 0) - Dt;
|
|
1450
|
-
x === "flex" &&
|
|
1450
|
+
x === "flex" && R === "row-reverse" ? ($.left = X, $.right = P) : ($.left = P, $.right = X), d.value = V;
|
|
1451
1451
|
let j = z.scrollTop;
|
|
1452
1452
|
y === u.document && !j && (j = u.document.body.scrollTop), b.top = j < f.value, b.bottom = j > f.value;
|
|
1453
1453
|
const he = Math.abs(j) <= (i.top || 0), I = Math.abs(j) + z.clientHeight >= z.scrollHeight - (i.bottom || 0) - Dt;
|
|
1454
|
-
x === "flex" &&
|
|
1454
|
+
x === "flex" && R === "column-reverse" ? ($.top = I, $.bottom = he) : ($.top = he, $.bottom = I), f.value = j;
|
|
1455
1455
|
}, M = (y) => {
|
|
1456
1456
|
var H;
|
|
1457
1457
|
if (!u)
|
|
@@ -1504,7 +1504,7 @@ const Tn = {
|
|
|
1504
1504
|
left: "arrowleft",
|
|
1505
1505
|
right: "arrowright"
|
|
1506
1506
|
};
|
|
1507
|
-
function
|
|
1507
|
+
function En(e = {}) {
|
|
1508
1508
|
const {
|
|
1509
1509
|
reactive: t = !1,
|
|
1510
1510
|
target: r = ae,
|
|
@@ -1555,7 +1555,7 @@ function Rn(e = {}) {
|
|
|
1555
1555
|
);
|
|
1556
1556
|
return g;
|
|
1557
1557
|
}
|
|
1558
|
-
const
|
|
1558
|
+
const Rn = {
|
|
1559
1559
|
page: (e) => [e.pageX, e.pageY],
|
|
1560
1560
|
client: (e) => [e.clientX, e.clientY],
|
|
1561
1561
|
screen: (e) => [e.screenX, e.screenY],
|
|
@@ -1573,7 +1573,7 @@ function it(e = {}) {
|
|
|
1573
1573
|
eventFilter: s
|
|
1574
1574
|
} = e;
|
|
1575
1575
|
let u = null;
|
|
1576
|
-
const c = _(a.x), d = _(a.y), f = _(null), v = typeof t == "function" ? t :
|
|
1576
|
+
const c = _(a.x), d = _(a.y), f = _(null), v = typeof t == "function" ? t : Rn[t], g = (C) => {
|
|
1577
1577
|
const M = v(C);
|
|
1578
1578
|
u = C, M && ([c.value, d.value] = M, f.value = "mouse");
|
|
1579
1579
|
}, m = (C) => {
|
|
@@ -1652,13 +1652,13 @@ const ue = [
|
|
|
1652
1652
|
0.9,
|
|
1653
1653
|
0.7,
|
|
1654
1654
|
0.5,
|
|
1655
|
-
0.
|
|
1655
|
+
0.4,
|
|
1656
1656
|
0.2,
|
|
1657
1657
|
0.1,
|
|
1658
1658
|
0.075,
|
|
1659
1659
|
0.05
|
|
1660
1660
|
];
|
|
1661
|
-
function
|
|
1661
|
+
function Cl() {
|
|
1662
1662
|
if (!_e)
|
|
1663
1663
|
return _("dark");
|
|
1664
1664
|
const e = _(document.documentElement.dataset.scheme);
|
|
@@ -1671,13 +1671,13 @@ function $l() {
|
|
|
1671
1671
|
attributeFilter: ["data-scheme"]
|
|
1672
1672
|
}), e;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Al() {
|
|
1675
1675
|
return Me("currentThemeScheme", null);
|
|
1676
1676
|
}
|
|
1677
1677
|
function Vn() {
|
|
1678
1678
|
return Me("currentThemeData", _(ur));
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function Ml() {
|
|
1681
1681
|
return Me("currentThemeName", _("default"));
|
|
1682
1682
|
}
|
|
1683
1683
|
function Bn(e, t, r = {}) {
|
|
@@ -1706,7 +1706,7 @@ function or(e) {
|
|
|
1706
1706
|
...Object.keys(t.value.colors).map((l) => {
|
|
1707
1707
|
const i = l, o = t.value.colors[i];
|
|
1708
1708
|
return On(o, i === "surface" ? Pe : ue).value.reduce((c, d, f) => {
|
|
1709
|
-
const v =
|
|
1709
|
+
const v = E(d).toRgb();
|
|
1710
1710
|
return c[`--r-color-${i}-${f}`] = `${v.r} ${v.g} ${v.b}`, c;
|
|
1711
1711
|
}, {});
|
|
1712
1712
|
}).reduce((l, i) => ({
|
|
@@ -1736,16 +1736,16 @@ function Dn() {
|
|
|
1736
1736
|
attributeFilter: ["data-scheme"]
|
|
1737
1737
|
}), e;
|
|
1738
1738
|
}
|
|
1739
|
-
const wt = 9, Fn = 7, St = 7, Wn = 7, Le = 3, Nn = 6, tt = 5, sr = 6, _t = 3, Ln = 4, kt = 0.25, jn = 0.3, $t = 1, Xn = 2, je = 7, Un = 5, pt = 4, ir = 5, Ct = 0.08, Gn = 0.15,
|
|
1739
|
+
const wt = 9, Fn = 7, St = 7, Wn = 7, Le = 3, Nn = 6, tt = 5, sr = 6, _t = 3, Ln = 4, kt = 0.25, jn = 0.3, $t = 1, Xn = 2, je = 7, Un = 5, pt = 4, ir = 5, Ct = 0.08, Gn = 0.15, Re = _("#0067cc"), ze = _("#5999A6"), Ie = _("#F76C22"), Ve = _("#F95858"), xe = _("#121212"), Yn = h(() => J({
|
|
1740
1740
|
color: "surface",
|
|
1741
1741
|
type: "border",
|
|
1742
1742
|
index: { dark: St, light: _t }
|
|
1743
1743
|
}).value);
|
|
1744
|
-
function
|
|
1744
|
+
function Hl(e) {
|
|
1745
1745
|
return nt(e, "text", { dark: Le, light: je });
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1748
|
-
primary:
|
|
1747
|
+
const Tl = h(() => ge(p(Re), ue).colors), El = h(() => ge(p(ze), ue).colors), Rl = h(() => ge(p(Ie), ue).colors), zl = h(() => ge(p(Ve), ue).colors), Il = h(() => ge(p(xe), Pe).colors), ur = Bn("default", {
|
|
1748
|
+
primary: Re,
|
|
1749
1749
|
secondary: ze,
|
|
1750
1750
|
tertiary: Ie,
|
|
1751
1751
|
error: Ve,
|
|
@@ -1768,17 +1768,17 @@ function qn(e) {
|
|
|
1768
1768
|
const t = p(e);
|
|
1769
1769
|
switch (t) {
|
|
1770
1770
|
case "surface":
|
|
1771
|
-
return
|
|
1771
|
+
return E(p(xe));
|
|
1772
1772
|
case "primary":
|
|
1773
|
-
return
|
|
1773
|
+
return E(p(Re));
|
|
1774
1774
|
case "secondary":
|
|
1775
|
-
return
|
|
1775
|
+
return E(p(ze));
|
|
1776
1776
|
case "tertiary":
|
|
1777
|
-
return
|
|
1777
|
+
return E(p(Ie));
|
|
1778
1778
|
case "error":
|
|
1779
|
-
return
|
|
1779
|
+
return E(p(Ve));
|
|
1780
1780
|
default:
|
|
1781
|
-
return
|
|
1781
|
+
return E(t);
|
|
1782
1782
|
}
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
@@ -2189,7 +2189,7 @@ const sa = {
|
|
|
2189
2189
|
return d.split(" ").map((f) => f[0]).join("").toUpperCase().slice(0, 2);
|
|
2190
2190
|
}
|
|
2191
2191
|
const u = h(() => t.color), c = Ye(t.variant, u);
|
|
2192
|
-
return (d, f) => (w(), k(
|
|
2192
|
+
return (d, f) => (w(), k(ne, null, [
|
|
2193
2193
|
d.src ? (w(), q(we(d.is), Z({
|
|
2194
2194
|
key: 0,
|
|
2195
2195
|
ref_key: "img",
|
|
@@ -2204,7 +2204,7 @@ const sa = {
|
|
|
2204
2204
|
class: ["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]", [p(r).class, p(c).class]],
|
|
2205
2205
|
style: [p(r).style, p(c).style, a.value]
|
|
2206
2206
|
}, d.$attrs), [
|
|
2207
|
-
d.$slots.default ? D(d.$slots, "default", { key: 0 }) : n.value ? (w(), k(
|
|
2207
|
+
d.$slots.default ? D(d.$slots, "default", { key: 0 }) : n.value ? (w(), k(ne, { key: 1 }, [
|
|
2208
2208
|
We(ve(s(n.value)), 1)
|
|
2209
2209
|
], 64)) : (w(), k("i", sa))
|
|
2210
2210
|
], 16)) : L("", !0)
|
|
@@ -2265,7 +2265,7 @@ const sa = {
|
|
|
2265
2265
|
],
|
|
2266
2266
|
disabled: u.disabled
|
|
2267
2267
|
}, u.$attrs), {
|
|
2268
|
-
default:
|
|
2268
|
+
default: re(() => [
|
|
2269
2269
|
u.$slots.leftSection ? D(u.$slots, "leftSection", { key: 0 }) : L("", !0),
|
|
2270
2270
|
D(u.$slots, "default"),
|
|
2271
2271
|
u.$slots.rightSection ? D(u.$slots, "rightSection", { key: 1 }) : L("", !0)
|
|
@@ -2273,9 +2273,9 @@ const sa = {
|
|
|
2273
2273
|
_: 3
|
|
2274
2274
|
}, 16, ["data-size", "type", "style", "class", "disabled"]));
|
|
2275
2275
|
}
|
|
2276
|
-
}),
|
|
2276
|
+
}), Vl = /* @__PURE__ */ W({
|
|
2277
2277
|
__name: "BtnGroup",
|
|
2278
|
-
props: /* @__PURE__ */
|
|
2278
|
+
props: /* @__PURE__ */ ee({
|
|
2279
2279
|
selections: {},
|
|
2280
2280
|
default: {},
|
|
2281
2281
|
color: { default: "primary" },
|
|
@@ -2306,7 +2306,7 @@ const sa = {
|
|
|
2306
2306
|
return w(), k("div", {
|
|
2307
2307
|
class: B(["w-auto inline-flex container", [u.value]])
|
|
2308
2308
|
}, [
|
|
2309
|
-
(w(!0), k(
|
|
2309
|
+
(w(!0), k(ne, null, Se(t.selections, (v, g) => (w(), q(f, {
|
|
2310
2310
|
key: a(v),
|
|
2311
2311
|
model: i.value,
|
|
2312
2312
|
variant: a(v) === i.value ? "filled" : void 0,
|
|
@@ -2316,7 +2316,7 @@ const sa = {
|
|
|
2316
2316
|
}),
|
|
2317
2317
|
onClick: (m) => o(v)
|
|
2318
2318
|
}, {
|
|
2319
|
-
default:
|
|
2319
|
+
default: re(() => [
|
|
2320
2320
|
l(v) ? (w(), k("i", {
|
|
2321
2321
|
key: 0,
|
|
2322
2322
|
class: B(l(v))
|
|
@@ -2339,7 +2339,7 @@ function fa(e, t) {
|
|
|
2339
2339
|
D(e.$slots, "default")
|
|
2340
2340
|
]);
|
|
2341
2341
|
}
|
|
2342
|
-
const
|
|
2342
|
+
const Bl = /* @__PURE__ */ ua(ca, [["render", fa]]), Ol = /* @__PURE__ */ W({
|
|
2343
2343
|
__name: "ChatMessage",
|
|
2344
2344
|
props: {
|
|
2345
2345
|
avatar: {},
|
|
@@ -2381,7 +2381,7 @@ const Vl = /* @__PURE__ */ ua(ca, [["render", fa]]), Bl = /* @__PURE__ */ W({
|
|
|
2381
2381
|
], 2);
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
|
-
}), va = { class: "w-full flex self-center gap-2 text-center" },
|
|
2384
|
+
}), va = { class: "w-full flex self-center gap-2 text-center" }, Pl = /* @__PURE__ */ W({
|
|
2385
2385
|
__name: "ChatSystem",
|
|
2386
2386
|
props: {
|
|
2387
2387
|
position: {},
|
|
@@ -2402,7 +2402,7 @@ const Vl = /* @__PURE__ */ ua(ca, [["render", fa]]), Bl = /* @__PURE__ */ W({
|
|
|
2402
2402
|
], 6)
|
|
2403
2403
|
]));
|
|
2404
2404
|
}
|
|
2405
|
-
}),
|
|
2405
|
+
}), Dl = /* @__PURE__ */ W({
|
|
2406
2406
|
__name: "Chip",
|
|
2407
2407
|
props: {
|
|
2408
2408
|
is: { default: "img" },
|
|
@@ -2452,9 +2452,9 @@ const Vl = /* @__PURE__ */ ua(ca, [["render", fa]]), Bl = /* @__PURE__ */ W({
|
|
|
2452
2452
|
}
|
|
2453
2453
|
}), null, 16, ["class", "style"]));
|
|
2454
2454
|
}
|
|
2455
|
-
}), ha = ["id", "alt"], ma = ["for"], ga = { key: 0 },
|
|
2455
|
+
}), ha = ["id", "alt"], ma = ["for"], ga = { key: 0 }, Fl = /* @__PURE__ */ W({
|
|
2456
2456
|
__name: "ColorInput",
|
|
2457
|
-
props: /* @__PURE__ */
|
|
2457
|
+
props: /* @__PURE__ */ ee({
|
|
2458
2458
|
label: {},
|
|
2459
2459
|
withBorder: { type: Boolean, default: !1 }
|
|
2460
2460
|
}, {
|
|
@@ -2497,11 +2497,11 @@ function ba() {
|
|
|
2497
2497
|
return Me(fr, _(null));
|
|
2498
2498
|
}
|
|
2499
2499
|
function ya(e) {
|
|
2500
|
-
return
|
|
2500
|
+
return Ee(fr, e);
|
|
2501
2501
|
}
|
|
2502
2502
|
const vr = /* @__PURE__ */ W({
|
|
2503
2503
|
__name: "FullscreenOverlay",
|
|
2504
|
-
props: /* @__PURE__ */
|
|
2504
|
+
props: /* @__PURE__ */ ee({
|
|
2505
2505
|
persistent: { type: Boolean, default: !1 },
|
|
2506
2506
|
blur: { type: [String, Boolean], default: !1 },
|
|
2507
2507
|
wrapperClass: {}
|
|
@@ -2553,9 +2553,9 @@ const vr = /* @__PURE__ */ W({
|
|
|
2553
2553
|
], 2)
|
|
2554
2554
|
], 8, ["to"]));
|
|
2555
2555
|
}
|
|
2556
|
-
}), xa = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, wa = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" },
|
|
2556
|
+
}), xa = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, wa = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, Wl = /* @__PURE__ */ W({
|
|
2557
2557
|
__name: "Drawer",
|
|
2558
|
-
props: /* @__PURE__ */
|
|
2558
|
+
props: /* @__PURE__ */ ee({
|
|
2559
2559
|
persistent: { type: Boolean, default: !1 },
|
|
2560
2560
|
blur: { type: [String, Boolean], default: !1 },
|
|
2561
2561
|
position: { default: "left" }
|
|
@@ -2574,7 +2574,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2574
2574
|
blur: t.blur,
|
|
2575
2575
|
persistent: t.persistent
|
|
2576
2576
|
}, {
|
|
2577
|
-
default:
|
|
2577
|
+
default: re(() => [
|
|
2578
2578
|
me(Yt, {
|
|
2579
2579
|
"enter-from-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
|
|
2580
2580
|
"enter-to-class": (n.position === "left", "translate-x-0"),
|
|
@@ -2583,7 +2583,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2583
2583
|
"enter-active-class": "transition ease-out duration-300",
|
|
2584
2584
|
"leave-active-class": "transition ease-in duration-200"
|
|
2585
2585
|
}, {
|
|
2586
|
-
default:
|
|
2586
|
+
default: re(() => [
|
|
2587
2587
|
r.value ? (w(), k("div", {
|
|
2588
2588
|
key: 0,
|
|
2589
2589
|
class: B(["bg-surface-low fixed h-full w-full md:w-md", n.position === "left" ? "left-0" : "right-0"])
|
|
@@ -2595,7 +2595,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2595
2595
|
class: "text-surface-on hover:text-surface-on",
|
|
2596
2596
|
onPointerup: a[0] || (a[0] = (o) => r.value = !1)
|
|
2597
2597
|
}, {
|
|
2598
|
-
default:
|
|
2598
|
+
default: re(() => a[2] || (a[2] = [
|
|
2599
2599
|
F("i", { class: "i-fluent-dismiss-12-filled" }, null, -1)
|
|
2600
2600
|
])),
|
|
2601
2601
|
_: 1
|
|
@@ -2613,7 +2613,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2613
2613
|
}, 8, ["modelValue", "blur", "persistent"]);
|
|
2614
2614
|
};
|
|
2615
2615
|
}
|
|
2616
|
-
}),
|
|
2616
|
+
}), Nl = /* @__PURE__ */ W({
|
|
2617
2617
|
__name: "Dropzone",
|
|
2618
2618
|
props: {
|
|
2619
2619
|
dashed: { type: Boolean, default: !0 },
|
|
@@ -2649,7 +2649,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2649
2649
|
D(c.$slots, "default")
|
|
2650
2650
|
], 38));
|
|
2651
2651
|
}
|
|
2652
|
-
}),
|
|
2652
|
+
}), Ll = /* @__PURE__ */ W({
|
|
2653
2653
|
__name: "Image",
|
|
2654
2654
|
props: {
|
|
2655
2655
|
is: { default: "img" },
|
|
@@ -2710,7 +2710,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2710
2710
|
}, null, 6))
|
|
2711
2711
|
], 4));
|
|
2712
2712
|
}
|
|
2713
|
-
}), Sa = { class: "relative" },
|
|
2713
|
+
}), Sa = { class: "relative" }, jl = /* @__PURE__ */ W({
|
|
2714
2714
|
__name: "Indicator",
|
|
2715
2715
|
props: {
|
|
2716
2716
|
color: { default: "primary" },
|
|
@@ -2786,9 +2786,9 @@ const vr = /* @__PURE__ */ W({
|
|
|
2786
2786
|
D(s.$slots, "default")
|
|
2787
2787
|
]));
|
|
2788
2788
|
}
|
|
2789
|
-
}),
|
|
2789
|
+
}), Xl = /* @__PURE__ */ W({
|
|
2790
2790
|
__name: "Modal",
|
|
2791
|
-
props: /* @__PURE__ */
|
|
2791
|
+
props: /* @__PURE__ */ ee({
|
|
2792
2792
|
persistent: { type: Boolean, default: !1 },
|
|
2793
2793
|
blur: { type: [String, Boolean], default: !1 }
|
|
2794
2794
|
}, {
|
|
@@ -2807,7 +2807,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2807
2807
|
persistent: t.persistent,
|
|
2808
2808
|
"wrapper-class": "flex items-end justify-center"
|
|
2809
2809
|
}, {
|
|
2810
|
-
default:
|
|
2810
|
+
default: re(() => [
|
|
2811
2811
|
me(Yt, {
|
|
2812
2812
|
"enter-from-class": "translate-y-1/2",
|
|
2813
2813
|
"enter-to-class": "translate-y-0",
|
|
@@ -2816,7 +2816,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2816
2816
|
"enter-active-class": "transition ease-out duration-100",
|
|
2817
2817
|
"leave-active-class": "transition ease-in duration-100"
|
|
2818
2818
|
}, {
|
|
2819
|
-
default:
|
|
2819
|
+
default: re(() => [
|
|
2820
2820
|
r.value ? D(n.$slots, "default", { key: 0 }) : L("", !0)
|
|
2821
2821
|
]),
|
|
2822
2822
|
_: 3
|
|
@@ -2911,7 +2911,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2911
2911
|
variant: "transparent",
|
|
2912
2912
|
onClick: s[0] || (s[0] = (c) => o.$emit("close"))
|
|
2913
2913
|
}, {
|
|
2914
|
-
default:
|
|
2914
|
+
default: re(() => [
|
|
2915
2915
|
o.$slots.closeIcon ? D(o.$slots, "close-icon", { key: 0 }) : (w(), k("i", Aa))
|
|
2916
2916
|
]),
|
|
2917
2917
|
_: 3
|
|
@@ -2919,7 +2919,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
2919
2919
|
], 16);
|
|
2920
2920
|
};
|
|
2921
2921
|
}
|
|
2922
|
-
}), Ha = { class: "pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto" },
|
|
2922
|
+
}), Ha = { class: "pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto" }, Ul = /* @__PURE__ */ W({
|
|
2923
2923
|
__name: "NotificationSystem",
|
|
2924
2924
|
props: {
|
|
2925
2925
|
position: { default: "top-right" },
|
|
@@ -2993,8 +2993,8 @@ const vr = /* @__PURE__ */ W({
|
|
|
2993
2993
|
"leave-from-class": "op100",
|
|
2994
2994
|
"leave-to-class": "op0"
|
|
2995
2995
|
}, {
|
|
2996
|
-
default:
|
|
2997
|
-
(w(!0), k(
|
|
2996
|
+
default: re(() => [
|
|
2997
|
+
(w(!0), k(ne, null, Se(p(r), (d, f) => (w(), k("div", {
|
|
2998
2998
|
key: d.hash,
|
|
2999
2999
|
ref_for: !0,
|
|
3000
3000
|
ref_key: "notificationRefs",
|
|
@@ -3019,7 +3019,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3019
3019
|
]);
|
|
3020
3020
|
};
|
|
3021
3021
|
}
|
|
3022
|
-
}), Ta = { class: "relative" },
|
|
3022
|
+
}), Ta = { class: "relative" }, Ea = /* @__PURE__ */ W({
|
|
3023
3023
|
__name: "Overlay",
|
|
3024
3024
|
props: {
|
|
3025
3025
|
blur: { type: [Boolean, String], default: !1 },
|
|
@@ -3040,7 +3040,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3040
3040
|
default:
|
|
3041
3041
|
return "";
|
|
3042
3042
|
}
|
|
3043
|
-
}), n = ie(t), a = _(null), l =
|
|
3043
|
+
}), n = ie(t), a = _(null), l = E(t.color).toRgb(), i = h(() => ({
|
|
3044
3044
|
backgroundColor: `rgba(${l.r}, ${l.g}, ${l.b}, ${t.opacity / 100})`
|
|
3045
3045
|
}));
|
|
3046
3046
|
return (o, s) => (w(), k("div", Ta, [
|
|
@@ -3055,7 +3055,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3055
3055
|
], 16)
|
|
3056
3056
|
]));
|
|
3057
3057
|
}
|
|
3058
|
-
}),
|
|
3058
|
+
}), Ra = /* @__PURE__ */ W({
|
|
3059
3059
|
__name: "Paper",
|
|
3060
3060
|
props: {
|
|
3061
3061
|
rounded: { default: "md" },
|
|
@@ -3153,7 +3153,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3153
3153
|
} : {
|
|
3154
3154
|
class: "border-transparent"
|
|
3155
3155
|
}), {
|
|
3156
|
-
default:
|
|
3156
|
+
default: re(() => [
|
|
3157
3157
|
D(b.$slots, "default")
|
|
3158
3158
|
]),
|
|
3159
3159
|
_: 3
|
|
@@ -3161,7 +3161,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3161
3161
|
}
|
|
3162
3162
|
}), za = ["for"], Ia = { key: 1 }, Va = ["id", "placeholder", "type"], Ba = /* @__PURE__ */ W({
|
|
3163
3163
|
__name: "TextField",
|
|
3164
|
-
props: /* @__PURE__ */
|
|
3164
|
+
props: /* @__PURE__ */ ee({
|
|
3165
3165
|
onChange: {},
|
|
3166
3166
|
color: { default: "primary" },
|
|
3167
3167
|
error: { type: Boolean },
|
|
@@ -3231,7 +3231,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3231
3231
|
])
|
|
3232
3232
|
], 4));
|
|
3233
3233
|
}
|
|
3234
|
-
}), Oa = { class: "flex gap-2" },
|
|
3234
|
+
}), Oa = { class: "flex gap-2" }, Gl = /* @__PURE__ */ W({
|
|
3235
3235
|
__name: "PinInput",
|
|
3236
3236
|
props: {
|
|
3237
3237
|
modelValue: {},
|
|
@@ -3266,7 +3266,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3266
3266
|
s < r.value.length - 1 && (r.value[s + 1].el.focus(), r.value[s + 1].el.select());
|
|
3267
3267
|
}
|
|
3268
3268
|
return (o, s) => (w(), k("div", Oa, [
|
|
3269
|
-
(w(!0), k(
|
|
3269
|
+
(w(!0), k(ne, null, Se(t.length, (u) => (w(), q(Ba, {
|
|
3270
3270
|
ref_for: !0,
|
|
3271
3271
|
ref_key: "inputs",
|
|
3272
3272
|
ref: r,
|
|
@@ -3284,9 +3284,9 @@ const vr = /* @__PURE__ */ W({
|
|
|
3284
3284
|
}, null, 8, ["password"]))), 128))
|
|
3285
3285
|
]));
|
|
3286
3286
|
}
|
|
3287
|
-
}),
|
|
3287
|
+
}), Yl = /* @__PURE__ */ W({
|
|
3288
3288
|
__name: "Popover",
|
|
3289
|
-
props: /* @__PURE__ */
|
|
3289
|
+
props: /* @__PURE__ */ ee({
|
|
3290
3290
|
trigger: { default: "click" },
|
|
3291
3291
|
position: { default: "bottom" },
|
|
3292
3292
|
zIndex: { default: 1e4 },
|
|
@@ -3379,7 +3379,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3379
3379
|
var v;
|
|
3380
3380
|
(v = r.value) != null && v.contains(f.target) ? u.value = !0 : u.value = !1;
|
|
3381
3381
|
}), (f, v) => {
|
|
3382
|
-
const g =
|
|
3382
|
+
const g = Ea;
|
|
3383
3383
|
return w(), k("div", {
|
|
3384
3384
|
ref_key: "wrapperRef",
|
|
3385
3385
|
ref: r,
|
|
@@ -3409,7 +3409,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3409
3409
|
], 512);
|
|
3410
3410
|
};
|
|
3411
3411
|
}
|
|
3412
|
-
}),
|
|
3412
|
+
}), ql = /* @__PURE__ */ W({
|
|
3413
3413
|
__name: "Progress",
|
|
3414
3414
|
props: {
|
|
3415
3415
|
value: { default: 0 },
|
|
@@ -3450,9 +3450,9 @@ const vr = /* @__PURE__ */ W({
|
|
|
3450
3450
|
}), null, 16))
|
|
3451
3451
|
], 16));
|
|
3452
3452
|
}
|
|
3453
|
-
}), Pa = ["onMouseover", "onPointerdown"], Da = "#ffeb91", Fa = "text-[var(--d-text)]", Wa = "text-surface-on-low", Na = "text-[var(--d-text-h)]", La = "i-fluent-star-12-filled", ja = "i-fluent-star-12-filled",
|
|
3453
|
+
}), Pa = ["onMouseover", "onPointerdown"], Da = "#ffeb91", Fa = "text-[var(--d-text)]", Wa = "text-surface-on-low", Na = "text-[var(--d-text-h)]", La = "i-fluent-star-12-filled", ja = "i-fluent-star-12-filled", Kl = /* @__PURE__ */ W({
|
|
3454
3454
|
__name: "Rating",
|
|
3455
|
-
props: /* @__PURE__ */
|
|
3455
|
+
props: /* @__PURE__ */ ee({
|
|
3456
3456
|
count: {},
|
|
3457
3457
|
icons: {},
|
|
3458
3458
|
color: { default: "#ffeb91" },
|
|
@@ -3465,7 +3465,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3465
3465
|
},
|
|
3466
3466
|
modelModifiers: {}
|
|
3467
3467
|
}),
|
|
3468
|
-
emits: /* @__PURE__ */
|
|
3468
|
+
emits: /* @__PURE__ */ ee(["select"], ["update:modelValue"]),
|
|
3469
3469
|
setup(e, { emit: t }) {
|
|
3470
3470
|
const r = e, n = t, a = h(() => r.count ?? 5), l = se(e, "modelValue"), i = h(() => r.highlightSelectedOnly ?? !1), o = h(() => r.unselectable ?? !1), s = _(-1), u = h(() => c(r.icons, a.value, La, ja));
|
|
3471
3471
|
function c(b, A, T, C) {
|
|
@@ -3529,7 +3529,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3529
3529
|
return (b, A) => (w(), k("div", {
|
|
3530
3530
|
class: B(["flex cursor-pointer", $.value])
|
|
3531
3531
|
}, [
|
|
3532
|
-
(w(!0), k(
|
|
3532
|
+
(w(!0), k(ne, null, Se(a.value, (T, C) => (w(), k("div", {
|
|
3533
3533
|
key: C,
|
|
3534
3534
|
class: "pr-1",
|
|
3535
3535
|
onMouseover: (M) => s.value = C + 1,
|
|
@@ -3542,7 +3542,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3542
3542
|
], 40, Pa))), 128))
|
|
3543
3543
|
], 2));
|
|
3544
3544
|
}
|
|
3545
|
-
}),
|
|
3545
|
+
}), Jl = /* @__PURE__ */ W({
|
|
3546
3546
|
__name: "RokuProvider",
|
|
3547
3547
|
props: {
|
|
3548
3548
|
is: { default: "div" },
|
|
@@ -3554,26 +3554,26 @@ const vr = /* @__PURE__ */ W({
|
|
|
3554
3554
|
setup(e) {
|
|
3555
3555
|
const t = e, r = Dn(), n = h(() => t.themes[t.theme]);
|
|
3556
3556
|
Ce(() => {
|
|
3557
|
-
xe.value = typeof n.value.colors.surface == "string" ? n.value.colors.surface : xe.value,
|
|
3557
|
+
xe.value = typeof n.value.colors.surface == "string" ? n.value.colors.surface : xe.value, Re.value = typeof n.value.colors.primary == "string" ? n.value.colors.primary : Re.value, ze.value = typeof n.value.colors.secondary == "string" ? n.value.colors.secondary : ze.value, Ie.value = typeof n.value.colors.tertiary == "string" ? n.value.colors.tertiary : Ie.value, Ve.value = typeof n.value.colors.error == "string" ? n.value.colors.error : Ve.value;
|
|
3558
3558
|
});
|
|
3559
3559
|
const a = _(null), l = h(() => or({
|
|
3560
3560
|
colors: {
|
|
3561
3561
|
surface: xe.value,
|
|
3562
|
-
primary:
|
|
3562
|
+
primary: Re.value,
|
|
3563
3563
|
secondary: ze.value,
|
|
3564
3564
|
tertiary: Ie.value,
|
|
3565
3565
|
error: Ve.value
|
|
3566
3566
|
},
|
|
3567
3567
|
name: n.value.name
|
|
3568
3568
|
}));
|
|
3569
|
-
return
|
|
3569
|
+
return Ee(Pn, r), Ee("currentThemeData", h(() => n.value)), ya(a), (i, o) => (w(), q(we(i.is), {
|
|
3570
3570
|
ref_key: "wrapperRef",
|
|
3571
3571
|
ref: a,
|
|
3572
3572
|
style: O([
|
|
3573
3573
|
l.value
|
|
3574
3574
|
])
|
|
3575
3575
|
}, {
|
|
3576
|
-
default:
|
|
3576
|
+
default: re(() => [
|
|
3577
3577
|
D(i.$slots, "default")
|
|
3578
3578
|
]),
|
|
3579
3579
|
_: 3
|
|
@@ -3582,7 +3582,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3582
3582
|
}), Xa = ["id"], Ua = ["for"], Ga = ["for"], Ya = /* @__PURE__ */ W({
|
|
3583
3583
|
inheritAttrs: !1,
|
|
3584
3584
|
__name: "Switch",
|
|
3585
|
-
props: /* @__PURE__ */
|
|
3585
|
+
props: /* @__PURE__ */ ee({
|
|
3586
3586
|
size: { default: "md" },
|
|
3587
3587
|
animate: { type: Boolean, default: !0 },
|
|
3588
3588
|
options: {},
|
|
@@ -3716,33 +3716,65 @@ const vr = /* @__PURE__ */ W({
|
|
|
3716
3716
|
}, ve(g.label), 9, Ga)) : L("", !0)
|
|
3717
3717
|
], 2));
|
|
3718
3718
|
}
|
|
3719
|
-
}), qa = { class: "dark:hidden" },
|
|
3719
|
+
}), qa = { class: "scheme-switch inline-block" }, Ka = { class: "dark:hidden" }, Ja = { class: "light:hidden" }, Zl = /* @__PURE__ */ W({
|
|
3720
3720
|
__name: "SchemeSwitch",
|
|
3721
|
+
props: {
|
|
3722
|
+
disableViewTranslation: { type: Boolean, default: !1 },
|
|
3723
|
+
circleTranslation: { type: Boolean, default: !1 }
|
|
3724
|
+
},
|
|
3721
3725
|
setup(e) {
|
|
3722
|
-
const t = _(!1);
|
|
3723
|
-
|
|
3724
|
-
|
|
3726
|
+
const t = e, r = _(!1);
|
|
3727
|
+
let n;
|
|
3728
|
+
addEventListener("click", (i) => n = i), K([r], () => {
|
|
3729
|
+
if (_e) {
|
|
3730
|
+
const i = (n == null ? void 0 : n.clientX) ?? innerWidth / 2, o = (n == null ? void 0 : n.clientY) ?? innerHeight / 2, s = Math.hypot(
|
|
3731
|
+
Math.max(i, innerWidth - i),
|
|
3732
|
+
Math.max(o, innerHeight - o)
|
|
3733
|
+
);
|
|
3734
|
+
if (t.disableViewTranslation)
|
|
3735
|
+
document.documentElement.setAttribute("data-scheme", r.value ? "dark" : "light"), localStorage.setItem("scheme", r.value ? "dark" : "light");
|
|
3736
|
+
else {
|
|
3737
|
+
const u = document.startViewTransition(() => {
|
|
3738
|
+
r.value ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light"));
|
|
3739
|
+
});
|
|
3740
|
+
t.circleTranslation && u.ready.then(() => {
|
|
3741
|
+
document.documentElement.animate(
|
|
3742
|
+
{
|
|
3743
|
+
clipPath: [
|
|
3744
|
+
`circle(0 at ${i}px ${o}px)`,
|
|
3745
|
+
`circle(${s}px at ${i}px ${o}px)`
|
|
3746
|
+
]
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
duration: 500,
|
|
3750
|
+
easing: "ease-in",
|
|
3751
|
+
pseudoElement: "::view-transition-new(root)"
|
|
3752
|
+
}
|
|
3753
|
+
);
|
|
3754
|
+
});
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3725
3757
|
});
|
|
3726
|
-
const
|
|
3758
|
+
const a = _(!0), l = _(!1);
|
|
3727
3759
|
return oe(() => {
|
|
3728
|
-
_e && (
|
|
3760
|
+
_e && (r.value = localStorage.getItem("scheme") === "dark"), a.value = !1;
|
|
3729
3761
|
}), at(() => {
|
|
3730
|
-
|
|
3731
|
-
}), (
|
|
3732
|
-
const
|
|
3733
|
-
return w(), k(
|
|
3762
|
+
l.value = !0;
|
|
3763
|
+
}), (i, o) => {
|
|
3764
|
+
const s = Ya;
|
|
3765
|
+
return w(), k("div", qa, [
|
|
3734
3766
|
F("div", {
|
|
3735
|
-
class: B({ hidden: !
|
|
3767
|
+
class: B({ hidden: !a.value })
|
|
3736
3768
|
}, [
|
|
3737
|
-
F("div",
|
|
3738
|
-
me(
|
|
3769
|
+
F("div", Ka, [
|
|
3770
|
+
me(s, {
|
|
3739
3771
|
value: !1,
|
|
3740
3772
|
"on-icon": "i-line-md-moon-twotone-alt-loop",
|
|
3741
3773
|
"off-icon": "i-line-md-sunny-outline-twotone-loop"
|
|
3742
3774
|
})
|
|
3743
3775
|
]),
|
|
3744
|
-
F("div",
|
|
3745
|
-
me(
|
|
3776
|
+
F("div", Ja, [
|
|
3777
|
+
me(s, {
|
|
3746
3778
|
value: !0,
|
|
3747
3779
|
color: "secondary",
|
|
3748
3780
|
"on-icon": "i-line-md-moon-twotone-alt-loop",
|
|
@@ -3751,21 +3783,21 @@ const vr = /* @__PURE__ */ W({
|
|
|
3751
3783
|
])
|
|
3752
3784
|
], 2),
|
|
3753
3785
|
F("div", {
|
|
3754
|
-
class: B({ hidden:
|
|
3786
|
+
class: B({ hidden: a.value })
|
|
3755
3787
|
}, [
|
|
3756
|
-
me(
|
|
3757
|
-
modelValue:
|
|
3758
|
-
"onUpdate:modelValue":
|
|
3759
|
-
animate:
|
|
3788
|
+
me(s, {
|
|
3789
|
+
modelValue: r.value,
|
|
3790
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => r.value = u),
|
|
3791
|
+
animate: l.value,
|
|
3760
3792
|
color: "secondary",
|
|
3761
3793
|
"on-icon": "i-line-md-moon-twotone-alt-loop",
|
|
3762
3794
|
"off-icon": "i-line-md-sunny-outline-twotone-loop"
|
|
3763
3795
|
}, null, 8, ["modelValue", "animate"])
|
|
3764
3796
|
], 2)
|
|
3765
|
-
]
|
|
3797
|
+
]);
|
|
3766
3798
|
};
|
|
3767
3799
|
}
|
|
3768
|
-
}),
|
|
3800
|
+
}), Ql = /* @__PURE__ */ W({
|
|
3769
3801
|
__name: "ScrollArea",
|
|
3770
3802
|
props: {
|
|
3771
3803
|
height: {},
|
|
@@ -3776,8 +3808,8 @@ const vr = /* @__PURE__ */ W({
|
|
|
3776
3808
|
const r = e, n = lr(), a = ke(n), l = _(), i = ke(() => l.value), o = h(() => {
|
|
3777
3809
|
if (r.height)
|
|
3778
3810
|
return r.height;
|
|
3779
|
-
const x = n.value ? Number.parseFloat(getComputedStyle(n.value).paddingTop) + Number.parseFloat(getComputedStyle(n.value).paddingBottom) : 0,
|
|
3780
|
-
return a.height.value - x -
|
|
3811
|
+
const x = n.value ? Number.parseFloat(getComputedStyle(n.value).paddingTop) + Number.parseFloat(getComputedStyle(n.value).paddingBottom) : 0, R = n.value ? Number.parseFloat(getComputedStyle(n.value).marginTop) + Number.parseFloat(getComputedStyle(n.value).marginBottom) : 0;
|
|
3812
|
+
return a.height.value - x - R;
|
|
3781
3813
|
}), s = _(), u = In(() => s.value), { x: c, y: d } = Hn(() => s.value), f = h(() => {
|
|
3782
3814
|
var x;
|
|
3783
3815
|
return (((x = s.value) == null ? void 0 : x.scrollHeight) ?? 0) - (u.value ?? 0);
|
|
@@ -3801,15 +3833,15 @@ const vr = /* @__PURE__ */ W({
|
|
|
3801
3833
|
d.value = C.value;
|
|
3802
3834
|
return;
|
|
3803
3835
|
}
|
|
3804
|
-
const
|
|
3805
|
-
d.value = C.value +
|
|
3836
|
+
const R = (M.y.value - A.value) / S.value;
|
|
3837
|
+
d.value = C.value + R * f.value;
|
|
3806
3838
|
}), N(() => document, "pointerup", () => {
|
|
3807
3839
|
b.value = !1, document.body.style.userSelect = T.value;
|
|
3808
3840
|
}), t({
|
|
3809
3841
|
$el: s
|
|
3810
3842
|
});
|
|
3811
3843
|
const y = Ne(() => l.value), H = Xe("bg", { dark: 5, light: 6 }, 0.5), z = Xe("bg", { dark: 2, light: 9 }, 0.5);
|
|
3812
|
-
return (x,
|
|
3844
|
+
return (x, R) => (w(), k("div", {
|
|
3813
3845
|
style: O([{
|
|
3814
3846
|
height: `${o.value}px`
|
|
3815
3847
|
}, { overflow: "hidden", "max-height": "fit-content", position: "relative" }])
|
|
@@ -3853,15 +3885,15 @@ const vr = /* @__PURE__ */ W({
|
|
|
3853
3885
|
], 4)
|
|
3854
3886
|
], 4));
|
|
3855
3887
|
}
|
|
3856
|
-
}),
|
|
3888
|
+
}), Za = { class: "w-full flex items-center" }, Qa = ["placeholder", "readonly", "value", "aria-label"], el = {
|
|
3857
3889
|
key: 0,
|
|
3858
3890
|
class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
|
|
3859
|
-
},
|
|
3891
|
+
}, tl = ["onPointerdown", "onMousemove"], rl = { key: 0 }, nl = {
|
|
3860
3892
|
key: 0,
|
|
3861
3893
|
class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
|
|
3862
|
-
},
|
|
3894
|
+
}, eo = /* @__PURE__ */ W({
|
|
3863
3895
|
__name: "Select",
|
|
3864
|
-
props: /* @__PURE__ */
|
|
3896
|
+
props: /* @__PURE__ */ ee({
|
|
3865
3897
|
ariaLabel: {},
|
|
3866
3898
|
options: { default() {
|
|
3867
3899
|
return [];
|
|
@@ -3878,7 +3910,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3878
3910
|
modelValue: {},
|
|
3879
3911
|
modelModifiers: {}
|
|
3880
3912
|
}),
|
|
3881
|
-
emits: /* @__PURE__ */
|
|
3913
|
+
emits: /* @__PURE__ */ ee(["change", "input"], ["update:modelValue"]),
|
|
3882
3914
|
setup(e, { emit: t }) {
|
|
3883
3915
|
const r = e, n = t, a = ie(r), l = se(e, "modelValue"), i = _(null), o = _(null), s = _(!1);
|
|
3884
3916
|
nr(o, () => {
|
|
@@ -3890,7 +3922,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3890
3922
|
}), K(l, () => {
|
|
3891
3923
|
n("change", l.value);
|
|
3892
3924
|
});
|
|
3893
|
-
const d = h(() => l.value), f = h(() => m(d.value)), v = h(() => r.options.findIndex((I) =>
|
|
3925
|
+
const d = h(() => l.value), f = h(() => m(d.value)), v = h(() => r.options.findIndex((I) => R(I, d.value))), g = _(f.value);
|
|
3894
3926
|
K(f, () => {
|
|
3895
3927
|
g.value = f.value;
|
|
3896
3928
|
});
|
|
@@ -3944,7 +3976,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3944
3976
|
c.value = -1, u.value = -1;
|
|
3945
3977
|
});
|
|
3946
3978
|
const x = h(() => s.value && _e ? H.value === 0 ? !1 : document.documentElement.clientHeight - z.value > H.value : !1);
|
|
3947
|
-
function
|
|
3979
|
+
function R(I, G) {
|
|
3948
3980
|
return G ? typeof I == "string" || typeof I == "symbol" || typeof I == "number" ? I === G : typeof G == "string" || typeof G == "symbol" || typeof G == "number" ? !1 : I.id === G.id : !1;
|
|
3949
3981
|
}
|
|
3950
3982
|
const V = h(() => r.searchable ? "cursor-text" : "cursor-pointer"), P = At(), X = cr(), j = Ke(T);
|
|
@@ -3957,7 +3989,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3957
3989
|
class: "relative",
|
|
3958
3990
|
style: O(p(C))
|
|
3959
3991
|
}, [
|
|
3960
|
-
F("div",
|
|
3992
|
+
F("div", Za, [
|
|
3961
3993
|
F("input", {
|
|
3962
3994
|
ref_key: "inputRef",
|
|
3963
3995
|
ref: i,
|
|
@@ -3971,7 +4003,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
3971
4003
|
autocomplete: "off",
|
|
3972
4004
|
onInput: $,
|
|
3973
4005
|
onClick: G[0] || (G[0] = (ce) => s.value = !0)
|
|
3974
|
-
}, null, 46,
|
|
4006
|
+
}, null, 46, Qa),
|
|
3975
4007
|
G[2] || (G[2] = F("i", { class: "i-fluent-chevron-down-12-filled pointer-events-none absolute right-2" }, null, -1))
|
|
3976
4008
|
]),
|
|
3977
4009
|
s.value ? (w(), k("div", {
|
|
@@ -3983,12 +4015,12 @@ const vr = /* @__PURE__ */ W({
|
|
|
3983
4015
|
}]]),
|
|
3984
4016
|
style: O([p(P).style])
|
|
3985
4017
|
}, [
|
|
3986
|
-
I.options.length === 0 ? (w(), k("div",
|
|
4018
|
+
I.options.length === 0 ? (w(), k("div", el, [
|
|
3987
4019
|
D(I.$slots, "none", {}, () => [
|
|
3988
4020
|
We(ve(I.noneText), 1)
|
|
3989
4021
|
])
|
|
3990
|
-
])) : (w(), k(
|
|
3991
|
-
(w(!0), k(
|
|
4022
|
+
])) : (w(), k(ne, { key: 1 }, [
|
|
4023
|
+
(w(!0), k(ne, null, Se(b.value, (ce, be) => (w(), k("div", {
|
|
3992
4024
|
key: S(ce),
|
|
3993
4025
|
class: B([[
|
|
3994
4026
|
c.value === be && p(j).class,
|
|
@@ -4004,15 +4036,15 @@ const vr = /* @__PURE__ */ W({
|
|
|
4004
4036
|
}, [
|
|
4005
4037
|
D(I.$slots, "item", {
|
|
4006
4038
|
data: ce,
|
|
4007
|
-
selected:
|
|
4039
|
+
selected: R(ce, d.value)
|
|
4008
4040
|
}, () => [
|
|
4009
4041
|
We(ve(m(ce)), 1)
|
|
4010
4042
|
]),
|
|
4011
|
-
|
|
4043
|
+
R(ce, d.value) ? (w(), k("div", rl, G[3] || (G[3] = [
|
|
4012
4044
|
F("i", { class: "i-fluent-checkmark-12-filled h-3 w-3" }, null, -1)
|
|
4013
4045
|
]))) : L("", !0)
|
|
4014
|
-
], 46,
|
|
4015
|
-
I.searchable && b.value.length === 0 ? (w(), k("div",
|
|
4046
|
+
], 46, tl))), 128)),
|
|
4047
|
+
I.searchable && b.value.length === 0 ? (w(), k("div", nl, [
|
|
4016
4048
|
D(I.$slots, "not-found", {}, () => [
|
|
4017
4049
|
We(ve(I.notFoundText), 1)
|
|
4018
4050
|
])
|
|
@@ -4021,7 +4053,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4021
4053
|
], 6)) : L("", !0)
|
|
4022
4054
|
], 4));
|
|
4023
4055
|
}
|
|
4024
|
-
}),
|
|
4056
|
+
}), to = /* @__PURE__ */ W({
|
|
4025
4057
|
__name: "SelectArea",
|
|
4026
4058
|
props: {
|
|
4027
4059
|
target: {},
|
|
@@ -4035,7 +4067,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4035
4067
|
"--border-color": $,
|
|
4036
4068
|
"--fill-color": b
|
|
4037
4069
|
};
|
|
4038
|
-
}), { shift: o, control: s } =
|
|
4070
|
+
}), { shift: o, control: s } = En(), u = lr(), c = h(() => r.target ?? u.value), d = it(), f = _({ x: 0, y: 0 }), v = _({ x: 0, y: 0 }), g = _(!1), m = ke(c);
|
|
4039
4071
|
N(c, "pointerdown", ($) => {
|
|
4040
4072
|
if ($.button !== 0)
|
|
4041
4073
|
return;
|
|
@@ -4095,9 +4127,9 @@ const vr = /* @__PURE__ */ W({
|
|
|
4095
4127
|
}, null, 4)) : L("", !0)
|
|
4096
4128
|
], 8, ["to"])) : L("", !0);
|
|
4097
4129
|
}
|
|
4098
|
-
}),
|
|
4130
|
+
}), al = { class: "relative w-full" }, ll = "dark:bg-white bg-[var(--i-bg)]", ol = "dark:bg-[var(--i-bg)] bg-white", ro = /* @__PURE__ */ W({
|
|
4099
4131
|
__name: "Slider",
|
|
4100
|
-
props: /* @__PURE__ */
|
|
4132
|
+
props: /* @__PURE__ */ ee({
|
|
4101
4133
|
size: { default: "md" },
|
|
4102
4134
|
animate: { type: Boolean, default: !1 },
|
|
4103
4135
|
width: {},
|
|
@@ -4223,7 +4255,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4223
4255
|
indicator: "",
|
|
4224
4256
|
progress: ""
|
|
4225
4257
|
});
|
|
4226
|
-
return (M, y) => (w(), k("div",
|
|
4258
|
+
return (M, y) => (w(), k("div", al, [
|
|
4227
4259
|
F("div", {
|
|
4228
4260
|
ref_key: "wrapper",
|
|
4229
4261
|
ref: m,
|
|
@@ -4242,7 +4274,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4242
4274
|
minWidth: `${t.minWidth}rem`
|
|
4243
4275
|
})
|
|
4244
4276
|
}, [
|
|
4245
|
-
(w(!0), k(
|
|
4277
|
+
(w(!0), k(ne, null, Se(i.value, (H) => (w(), k("div", {
|
|
4246
4278
|
key: H,
|
|
4247
4279
|
style: O({
|
|
4248
4280
|
left: `${c(H) / (s.value - 1) * 100}%`
|
|
@@ -4253,7 +4285,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4253
4285
|
key: 0,
|
|
4254
4286
|
ref_key: "indicator",
|
|
4255
4287
|
ref: S,
|
|
4256
|
-
class: B(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [T.value.indicator, C.value.indicator,
|
|
4288
|
+
class: B(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [T.value.indicator, C.value.indicator, ll]]),
|
|
4257
4289
|
style: O([
|
|
4258
4290
|
`--i-bg: ${v.value}`,
|
|
4259
4291
|
{
|
|
@@ -4262,7 +4294,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4262
4294
|
])
|
|
4263
4295
|
}, [
|
|
4264
4296
|
F("div", {
|
|
4265
|
-
class: B(["pointer-events-none absolute left-50% top-50% rounded-full", [T.value.indicatorInner,
|
|
4297
|
+
class: B(["pointer-events-none absolute left-50% top-50% rounded-full", [T.value.indicatorInner, ol]])
|
|
4266
4298
|
}, null, 2)
|
|
4267
4299
|
], 6)) : L("", !0),
|
|
4268
4300
|
F("div", {
|
|
@@ -4288,7 +4320,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4288
4320
|
width: `${t.width}rem`
|
|
4289
4321
|
})
|
|
4290
4322
|
}, [
|
|
4291
|
-
(w(!0), k(
|
|
4323
|
+
(w(!0), k(ne, null, Se(i.value, (H, z) => (w(), k("div", {
|
|
4292
4324
|
key: z,
|
|
4293
4325
|
style: O({
|
|
4294
4326
|
left: `${c(H) / (s.value - 1) * 100}%`
|
|
@@ -4298,7 +4330,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4298
4330
|
], 4)) : L("", !0)
|
|
4299
4331
|
]));
|
|
4300
4332
|
}
|
|
4301
|
-
}),
|
|
4333
|
+
}), sl = { class: "h-full py-2" }, no = /* @__PURE__ */ W({
|
|
4302
4334
|
__name: "TabItem",
|
|
4303
4335
|
props: {
|
|
4304
4336
|
value: {},
|
|
@@ -4352,14 +4384,14 @@ const vr = /* @__PURE__ */ W({
|
|
|
4352
4384
|
key: 1,
|
|
4353
4385
|
class: B([c.value])
|
|
4354
4386
|
}, null, 2)),
|
|
4355
|
-
F("div",
|
|
4387
|
+
F("div", sl, [
|
|
4356
4388
|
D(v.$slots, "default")
|
|
4357
4389
|
])
|
|
4358
4390
|
], 16));
|
|
4359
4391
|
}
|
|
4360
|
-
}),
|
|
4392
|
+
}), ao = /* @__PURE__ */ W({
|
|
4361
4393
|
__name: "Tabs",
|
|
4362
|
-
props: /* @__PURE__ */
|
|
4394
|
+
props: /* @__PURE__ */ ee({
|
|
4363
4395
|
defaultValue: {},
|
|
4364
4396
|
direction: { default: "horizontal" }
|
|
4365
4397
|
}, {
|
|
@@ -4371,7 +4403,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4371
4403
|
const t = e, r = ot(), n = h(() => {
|
|
4372
4404
|
var d;
|
|
4373
4405
|
const u = (d = r.default) == null ? void 0 : d.call(r);
|
|
4374
|
-
return (u == null ? void 0 : u.flatMap((f) => f.type ===
|
|
4406
|
+
return (u == null ? void 0 : u.flatMap((f) => f.type === ne ? f.children : f).filter((f) => {
|
|
4375
4407
|
var v;
|
|
4376
4408
|
return ((v = f == null ? void 0 : f.props) == null ? void 0 : v.value) !== void 0;
|
|
4377
4409
|
}).map((f) => f.props.value)) ?? [];
|
|
@@ -4380,11 +4412,11 @@ const vr = /* @__PURE__ */ W({
|
|
|
4380
4412
|
const l = _(null);
|
|
4381
4413
|
oe(() => {
|
|
4382
4414
|
t.defaultValue && (a.value = t.defaultValue);
|
|
4383
|
-
}),
|
|
4415
|
+
}), Ee(Zt, a);
|
|
4384
4416
|
const i = h(() => t.direction);
|
|
4385
|
-
|
|
4417
|
+
Ee(Qt, i);
|
|
4386
4418
|
const o = /* @__PURE__ */ new Map();
|
|
4387
|
-
|
|
4419
|
+
Ee(er, o), Ae("ArrowLeft", (u) => {
|
|
4388
4420
|
var v;
|
|
4389
4421
|
if (!((v = l.value) != null && v.contains(document.activeElement)) || (u.preventDefault(), t.direction !== "horizontal"))
|
|
4390
4422
|
return;
|
|
@@ -4447,7 +4479,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4447
4479
|
D(u.$slots, "default")
|
|
4448
4480
|
], 2));
|
|
4449
4481
|
}
|
|
4450
|
-
}),
|
|
4482
|
+
}), lo = /* @__PURE__ */ W({
|
|
4451
4483
|
__name: "Tag",
|
|
4452
4484
|
props: {
|
|
4453
4485
|
color: {},
|
|
@@ -4485,7 +4517,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4485
4517
|
}, null, 2)) : o.$slots.rightIcon ? D(o.$slots, "right-icon", { key: 3 }) : L("", !0)
|
|
4486
4518
|
], 6));
|
|
4487
4519
|
}
|
|
4488
|
-
}),
|
|
4520
|
+
}), il = ["data-scheme", "data-theme"], oo = /* @__PURE__ */ W({
|
|
4489
4521
|
__name: "ThemeProvider",
|
|
4490
4522
|
props: {
|
|
4491
4523
|
theme: {},
|
|
@@ -4499,9 +4531,9 @@ const vr = /* @__PURE__ */ W({
|
|
|
4499
4531
|
"data-theme": p(r).name
|
|
4500
4532
|
}, [
|
|
4501
4533
|
D(i.$slots, "default")
|
|
4502
|
-
], 12,
|
|
4534
|
+
], 12, il));
|
|
4503
4535
|
}
|
|
4504
|
-
}),
|
|
4536
|
+
}), so = /* @__PURE__ */ W({
|
|
4505
4537
|
__name: "Tooltip",
|
|
4506
4538
|
props: {
|
|
4507
4539
|
timeout: { default: 200 }
|
|
@@ -4511,7 +4543,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4511
4543
|
return K(l, (c, d) => {
|
|
4512
4544
|
l.value && c !== d && (i.value = r.x.value, o.value = r.y.value);
|
|
4513
4545
|
}), (c, d) => {
|
|
4514
|
-
const f =
|
|
4546
|
+
const f = Ra;
|
|
4515
4547
|
return w(), k("div", null, [
|
|
4516
4548
|
F("div", {
|
|
4517
4549
|
ref_key: "hoverableRef",
|
|
@@ -4530,7 +4562,7 @@ const vr = /* @__PURE__ */ W({
|
|
|
4530
4562
|
})
|
|
4531
4563
|
}, [
|
|
4532
4564
|
me(f, { "with-border": "" }, {
|
|
4533
|
-
default:
|
|
4565
|
+
default: re(() => [
|
|
4534
4566
|
D(c.$slots, "content")
|
|
4535
4567
|
]),
|
|
4536
4568
|
_: 3
|
|
@@ -4546,9 +4578,9 @@ function pr(e) {
|
|
|
4546
4578
|
function le(e) {
|
|
4547
4579
|
return typeof e == "function" ? e() : p(e);
|
|
4548
4580
|
}
|
|
4549
|
-
const
|
|
4581
|
+
const ul = typeof window < "u" && typeof document < "u";
|
|
4550
4582
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4551
|
-
const
|
|
4583
|
+
const cl = Object.prototype.toString, dl = (e) => cl.call(e) === "[object Object]", He = () => {
|
|
4552
4584
|
};
|
|
4553
4585
|
function hr(e, t) {
|
|
4554
4586
|
function r(...n) {
|
|
@@ -4558,7 +4590,7 @@ function hr(e, t) {
|
|
|
4558
4590
|
}
|
|
4559
4591
|
return r;
|
|
4560
4592
|
}
|
|
4561
|
-
function
|
|
4593
|
+
function fl(e, t = {}) {
|
|
4562
4594
|
let r, n, a = He;
|
|
4563
4595
|
const l = (i) => {
|
|
4564
4596
|
clearTimeout(i), a(), a = He;
|
|
@@ -4574,7 +4606,7 @@ function dl(e, t = {}) {
|
|
|
4574
4606
|
});
|
|
4575
4607
|
};
|
|
4576
4608
|
}
|
|
4577
|
-
function
|
|
4609
|
+
function vl(...e) {
|
|
4578
4610
|
let t = 0, r, n = !0, a = He, l, i, o, s, u;
|
|
4579
4611
|
!jt(e[0]) && typeof e[0] == "object" ? { delay: i, trailing: o = !0, leading: s = !0, rejectOnCancel: u = !1 } = e[0] : [i, o = !0, s = !0, u = !1] = e;
|
|
4580
4612
|
const c = () => {
|
|
@@ -4589,30 +4621,30 @@ function fl(...e) {
|
|
|
4589
4621
|
})), !s && !r && (r = setTimeout(() => n = !0, f)), n = !1, l);
|
|
4590
4622
|
};
|
|
4591
4623
|
}
|
|
4592
|
-
function
|
|
4624
|
+
function pl(e) {
|
|
4593
4625
|
return Ue();
|
|
4594
4626
|
}
|
|
4595
|
-
function
|
|
4627
|
+
function hl(e, t = 200, r = {}) {
|
|
4596
4628
|
return hr(
|
|
4597
|
-
|
|
4629
|
+
fl(t, r),
|
|
4598
4630
|
e
|
|
4599
4631
|
);
|
|
4600
4632
|
}
|
|
4601
|
-
function
|
|
4633
|
+
function ml(e, t = 200, r = !1, n = !0, a = !1) {
|
|
4602
4634
|
return hr(
|
|
4603
|
-
|
|
4635
|
+
vl(t, r, n, a),
|
|
4604
4636
|
e
|
|
4605
4637
|
);
|
|
4606
4638
|
}
|
|
4607
4639
|
function mr(e, t = !0, r) {
|
|
4608
|
-
|
|
4640
|
+
pl() ? oe(e, r) : t ? e() : at(e);
|
|
4609
4641
|
}
|
|
4610
4642
|
function $e(e) {
|
|
4611
4643
|
var t;
|
|
4612
4644
|
const r = le(e);
|
|
4613
4645
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
4614
4646
|
}
|
|
4615
|
-
const ut =
|
|
4647
|
+
const ut = ul ? window : void 0;
|
|
4616
4648
|
function Ft(...e) {
|
|
4617
4649
|
let t, r, n, a;
|
|
4618
4650
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = ut) : [t, r, n, a] = e, !t)
|
|
@@ -4625,7 +4657,7 @@ function Ft(...e) {
|
|
|
4625
4657
|
([c, d]) => {
|
|
4626
4658
|
if (i(), !c)
|
|
4627
4659
|
return;
|
|
4628
|
-
const f =
|
|
4660
|
+
const f = dl(d) ? { ...d } : d;
|
|
4629
4661
|
l.push(
|
|
4630
4662
|
...r.flatMap((v) => n.map((g) => o(c, v, g, f)))
|
|
4631
4663
|
);
|
|
@@ -4636,20 +4668,20 @@ function Ft(...e) {
|
|
|
4636
4668
|
};
|
|
4637
4669
|
return pr(u), u;
|
|
4638
4670
|
}
|
|
4639
|
-
function
|
|
4671
|
+
function gl() {
|
|
4640
4672
|
const e = _(!1), t = Ue();
|
|
4641
4673
|
return t && oe(() => {
|
|
4642
4674
|
e.value = !0;
|
|
4643
4675
|
}, t), e;
|
|
4644
4676
|
}
|
|
4645
|
-
function
|
|
4646
|
-
const t =
|
|
4677
|
+
function bl(e) {
|
|
4678
|
+
const t = gl();
|
|
4647
4679
|
return h(() => (t.value, !!e()));
|
|
4648
4680
|
}
|
|
4649
|
-
function
|
|
4681
|
+
function yl(e, t, r = {}) {
|
|
4650
4682
|
const { window: n = ut, ...a } = r;
|
|
4651
4683
|
let l;
|
|
4652
|
-
const i =
|
|
4684
|
+
const i = bl(() => n && "ResizeObserver" in n), o = () => {
|
|
4653
4685
|
l && (l.disconnect(), l = void 0);
|
|
4654
4686
|
}, s = h(() => {
|
|
4655
4687
|
const d = le(e);
|
|
@@ -4672,11 +4704,11 @@ function bl(e, t, r = {}) {
|
|
|
4672
4704
|
stop: c
|
|
4673
4705
|
};
|
|
4674
4706
|
}
|
|
4675
|
-
function
|
|
4707
|
+
function xl(e, t = { width: 0, height: 0 }, r = {}) {
|
|
4676
4708
|
const { window: n = ut, box: a = "content-box" } = r, l = h(() => {
|
|
4677
4709
|
var d, f;
|
|
4678
4710
|
return (f = (d = $e(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
4679
|
-
}), i = _(t.width), o = _(t.height), { stop: s } =
|
|
4711
|
+
}), i = _(t.width), o = _(t.height), { stop: s } = yl(
|
|
4680
4712
|
e,
|
|
4681
4713
|
([d]) => {
|
|
4682
4714
|
const f = a === "border-box" ? d.borderBoxSize : a === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
|
|
@@ -4714,7 +4746,7 @@ function yl(e, t = { width: 0, height: 0 }, r = {}) {
|
|
|
4714
4746
|
};
|
|
4715
4747
|
}
|
|
4716
4748
|
const Wt = 1;
|
|
4717
|
-
function
|
|
4749
|
+
function wl(e, t = {}) {
|
|
4718
4750
|
const {
|
|
4719
4751
|
throttle: r = 0,
|
|
4720
4752
|
idle: n = 200,
|
|
@@ -4751,13 +4783,13 @@ function xl(e, t = {}) {
|
|
|
4751
4783
|
}
|
|
4752
4784
|
});
|
|
4753
4785
|
function m(y, H) {
|
|
4754
|
-
var z, x,
|
|
4786
|
+
var z, x, R, V;
|
|
4755
4787
|
if (!u)
|
|
4756
4788
|
return;
|
|
4757
4789
|
const P = le(e);
|
|
4758
4790
|
if (!P)
|
|
4759
4791
|
return;
|
|
4760
|
-
(
|
|
4792
|
+
(R = P instanceof Document ? u.document.body : P) == null || R.scrollTo({
|
|
4761
4793
|
top: (z = le(H)) != null ? z : g.value,
|
|
4762
4794
|
left: (x = le(y)) != null ? x : v.value,
|
|
4763
4795
|
behavior: le(s)
|
|
@@ -4777,18 +4809,18 @@ function xl(e, t = {}) {
|
|
|
4777
4809
|
bottom: !1
|
|
4778
4810
|
}), A = (y) => {
|
|
4779
4811
|
S.value && (S.value = !1, b.left = !1, b.right = !1, b.top = !1, b.bottom = !1, a(y));
|
|
4780
|
-
}, T =
|
|
4812
|
+
}, T = hl(A, r + n), C = (y) => {
|
|
4781
4813
|
var H;
|
|
4782
4814
|
if (!u)
|
|
4783
4815
|
return;
|
|
4784
|
-
const z = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || $e(y), { display: x, flexDirection:
|
|
4816
|
+
const z = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || $e(y), { display: x, flexDirection: R } = getComputedStyle(z), V = z.scrollLeft;
|
|
4785
4817
|
b.left = V < d.value, b.right = V > d.value;
|
|
4786
4818
|
const P = Math.abs(V) <= (i.left || 0), X = Math.abs(V) + z.clientWidth >= z.scrollWidth - (i.right || 0) - Wt;
|
|
4787
|
-
x === "flex" &&
|
|
4819
|
+
x === "flex" && R === "row-reverse" ? ($.left = X, $.right = P) : ($.left = P, $.right = X), d.value = V;
|
|
4788
4820
|
let j = z.scrollTop;
|
|
4789
4821
|
y === u.document && !j && (j = u.document.body.scrollTop), b.top = j < f.value, b.bottom = j > f.value;
|
|
4790
4822
|
const he = Math.abs(j) <= (i.top || 0), I = Math.abs(j) + z.clientHeight >= z.scrollHeight - (i.bottom || 0) - Wt;
|
|
4791
|
-
x === "flex" &&
|
|
4823
|
+
x === "flex" && R === "column-reverse" ? ($.top = I, $.bottom = he) : ($.top = he, $.bottom = I), f.value = j;
|
|
4792
4824
|
}, M = (y) => {
|
|
4793
4825
|
var H;
|
|
4794
4826
|
if (!u)
|
|
@@ -4799,7 +4831,7 @@ function xl(e, t = {}) {
|
|
|
4799
4831
|
return Ft(
|
|
4800
4832
|
e,
|
|
4801
4833
|
"scroll",
|
|
4802
|
-
r ?
|
|
4834
|
+
r ? ml(M, r, !0, !1) : M,
|
|
4803
4835
|
o
|
|
4804
4836
|
), mr(() => {
|
|
4805
4837
|
try {
|
|
@@ -4827,7 +4859,7 @@ function xl(e, t = {}) {
|
|
|
4827
4859
|
}
|
|
4828
4860
|
};
|
|
4829
4861
|
}
|
|
4830
|
-
const
|
|
4862
|
+
const io = /* @__PURE__ */ W({
|
|
4831
4863
|
__name: "Waterfall",
|
|
4832
4864
|
props: {
|
|
4833
4865
|
gap: {},
|
|
@@ -4843,15 +4875,15 @@ const so = /* @__PURE__ */ W({
|
|
|
4843
4875
|
}
|
|
4844
4876
|
const u = _([]), c = h(() => {
|
|
4845
4877
|
const A = u.value;
|
|
4846
|
-
return Array.from(A).map((T) =>
|
|
4878
|
+
return Array.from(A).map((T) => xl(T));
|
|
4847
4879
|
}), d = h(() => {
|
|
4848
4880
|
var A, T;
|
|
4849
4881
|
return r.itemWidth ? p(r.itemWidth) * l.value + a.value * (l.value - 1) + i.value * 2 : r.wrapperWidth ? p(r.wrapperWidth) : ((T = (A = o.value) == null ? void 0 : A.parentElement) == null ? void 0 : T.clientWidth) ?? 0;
|
|
4850
4882
|
}), f = h(() => r.itemWidth ? p(r.itemWidth) : (d.value - i.value * 2 - a.value * (l.value - 1)) / l.value);
|
|
4851
4883
|
function v(A, T, C, M) {
|
|
4852
4884
|
const y = p(A), H = Array.from({ length: p(T) }).fill(0), z = [], x = Math.max(0, d.value - p(M) * 2 - f.value * y.length - p(C) * y.length) / 2;
|
|
4853
|
-
for (let
|
|
4854
|
-
const V = y[
|
|
4885
|
+
for (let R = 0; R < y.length; R++) {
|
|
4886
|
+
const V = y[R], P = H.indexOf(Math.min(...H)), X = P * (f.value + p(C)) + p(M) + x, j = H[P];
|
|
4855
4887
|
z.push({ x: X, y: j, width: V.width.value, height: V.height.value }), H[P] += V.height.value + p(C);
|
|
4856
4888
|
}
|
|
4857
4889
|
return z;
|
|
@@ -4890,7 +4922,7 @@ const so = /* @__PURE__ */ W({
|
|
|
4890
4922
|
overflow: "scroll"
|
|
4891
4923
|
})
|
|
4892
4924
|
}, [
|
|
4893
|
-
(w(!0), k(
|
|
4925
|
+
(w(!0), k(ne, null, Se($.value, (C, M) => (w(), k("div", {
|
|
4894
4926
|
key: M,
|
|
4895
4927
|
ref_for: !0,
|
|
4896
4928
|
ref_key: "itemsRef",
|
|
@@ -4905,7 +4937,7 @@ const so = /* @__PURE__ */ W({
|
|
|
4905
4937
|
], 4))), 128))
|
|
4906
4938
|
], 4));
|
|
4907
4939
|
}
|
|
4908
|
-
}),
|
|
4940
|
+
}), uo = /* @__PURE__ */ W({
|
|
4909
4941
|
__name: "VirtualWaterfall",
|
|
4910
4942
|
props: {
|
|
4911
4943
|
gap: {},
|
|
@@ -4923,17 +4955,17 @@ const so = /* @__PURE__ */ W({
|
|
|
4923
4955
|
return Array.isArray(x);
|
|
4924
4956
|
}
|
|
4925
4957
|
const d = h(() => {
|
|
4926
|
-
var x,
|
|
4927
|
-
return r.itemWidth ? p(r.itemWidth) * i.value + l.value * (i.value - 1) + o.value * 2 : r.wrapperWidth ? p(r.wrapperWidth) : ((
|
|
4958
|
+
var x, R;
|
|
4959
|
+
return r.itemWidth ? p(r.itemWidth) * i.value + l.value * (i.value - 1) + o.value * 2 : r.wrapperWidth ? p(r.wrapperWidth) : ((R = (x = u.value) == null ? void 0 : x.parentElement) == null ? void 0 : R.clientWidth) ?? 0;
|
|
4928
4960
|
}), f = h(() => r.itemWidth ? p(r.itemWidth) : (d.value - o.value * 2 - l.value * (i.value - 1)) / i.value), v = h(() => p(r.items).map((x) => {
|
|
4929
|
-
const
|
|
4961
|
+
const R = f.value / x.width;
|
|
4930
4962
|
return {
|
|
4931
4963
|
width: f.value,
|
|
4932
|
-
height: x.height *
|
|
4964
|
+
height: x.height * R
|
|
4933
4965
|
};
|
|
4934
4966
|
}));
|
|
4935
|
-
function g(x,
|
|
4936
|
-
const X = p(x), j = Array.from({ length: p(
|
|
4967
|
+
function g(x, R, V, P) {
|
|
4968
|
+
const X = p(x), j = Array.from({ length: p(R) }).fill(0), he = [], I = Math.max(0, d.value - p(P) * 2 - f.value * X.length - p(V) * X.length) / 2;
|
|
4937
4969
|
for (let G = 0; G < X.length; G++) {
|
|
4938
4970
|
const ce = X[G], be = j.indexOf(Math.min(...j)), Je = be * (f.value + p(V)) + p(P) + I, gr = j[be];
|
|
4939
4971
|
he.push({ x: Je, y: gr, width: ce.width, height: ce.height }), j[be] += ce.height + p(V);
|
|
@@ -4947,14 +4979,14 @@ const so = /* @__PURE__ */ W({
|
|
|
4947
4979
|
function b(x) {
|
|
4948
4980
|
if (!c(m.value))
|
|
4949
4981
|
return {};
|
|
4950
|
-
const
|
|
4951
|
-
return
|
|
4952
|
-
left: `${
|
|
4953
|
-
top: `${
|
|
4982
|
+
const R = m.value[x];
|
|
4983
|
+
return R ? {
|
|
4984
|
+
left: `${R.x ?? 0}px`,
|
|
4985
|
+
top: `${R.y ?? 0}px`,
|
|
4954
4986
|
maxWidth: `${f.value}px`
|
|
4955
4987
|
} : {};
|
|
4956
4988
|
}
|
|
4957
|
-
const A = _(!1), T = h(() => A.value ? "smooth" : "auto"), C =
|
|
4989
|
+
const A = _(!1), T = h(() => A.value ? "smooth" : "auto"), C = wl(u, {
|
|
4958
4990
|
behavior: T
|
|
4959
4991
|
}), M = h(() => {
|
|
4960
4992
|
var x;
|
|
@@ -4963,38 +4995,38 @@ const so = /* @__PURE__ */ W({
|
|
|
4963
4995
|
C.y.value + (((x = u.value) == null ? void 0 : x.clientHeight) ?? 0) + n.value
|
|
4964
4996
|
];
|
|
4965
4997
|
}), y = h(() => m.value.map((x) => {
|
|
4966
|
-
const
|
|
4967
|
-
return
|
|
4998
|
+
const R = x.y, V = x.y + x.height;
|
|
4999
|
+
return R >= M.value[0] && R <= M.value[1] || V >= M.value[0] && V <= M.value[1] || R <= M.value[0] && V >= M.value[1];
|
|
4968
5000
|
})), H = h(() => {
|
|
4969
5001
|
const x = [];
|
|
4970
|
-
return $.value.forEach((
|
|
4971
|
-
if (c(
|
|
4972
|
-
|
|
5002
|
+
return $.value.forEach((R, V) => {
|
|
5003
|
+
if (c(R.children))
|
|
5004
|
+
R.children.forEach((P, X) => {
|
|
4973
5005
|
y.value[X] && x.push([P, X]);
|
|
4974
5006
|
});
|
|
4975
5007
|
else {
|
|
4976
5008
|
if (!y.value[V])
|
|
4977
5009
|
return;
|
|
4978
|
-
x.push([
|
|
5010
|
+
x.push([R, V]);
|
|
4979
5011
|
}
|
|
4980
5012
|
}), x;
|
|
4981
5013
|
});
|
|
4982
5014
|
t({
|
|
4983
5015
|
scroll: C,
|
|
4984
|
-
scrollTo: (x,
|
|
5016
|
+
scrollTo: (x, R = !1) => {
|
|
4985
5017
|
const V = A.value;
|
|
4986
|
-
A.value =
|
|
5018
|
+
A.value = R, C.y.value = x, A.value = V;
|
|
4987
5019
|
}
|
|
4988
5020
|
});
|
|
4989
5021
|
const z = h(() => r.is ?? "div");
|
|
4990
|
-
return (x,
|
|
5022
|
+
return (x, R) => (w(), q(we(z.value), {
|
|
4991
5023
|
ref_key: "wrapper",
|
|
4992
5024
|
ref: s,
|
|
4993
5025
|
style: {
|
|
4994
5026
|
position: "relative"
|
|
4995
5027
|
}
|
|
4996
5028
|
}, {
|
|
4997
|
-
default:
|
|
5029
|
+
default: re(() => [
|
|
4998
5030
|
F("div", {
|
|
4999
5031
|
style: O({
|
|
5000
5032
|
height: `${S.value}px`,
|
|
@@ -5003,7 +5035,7 @@ const so = /* @__PURE__ */ W({
|
|
|
5003
5035
|
position: "relative"
|
|
5004
5036
|
})
|
|
5005
5037
|
}, [
|
|
5006
|
-
(w(!0), k(
|
|
5038
|
+
(w(!0), k(ne, null, Se(H.value, ([V, P]) => (w(), k("div", {
|
|
5007
5039
|
key: V,
|
|
5008
5040
|
style: O([b(P), { position: "absolute" }])
|
|
5009
5041
|
}, [
|
|
@@ -5020,67 +5052,67 @@ const so = /* @__PURE__ */ W({
|
|
|
5020
5052
|
}
|
|
5021
5053
|
});
|
|
5022
5054
|
export {
|
|
5023
|
-
|
|
5055
|
+
_l as AspectRatio,
|
|
5024
5056
|
ia as Avatar,
|
|
5025
5057
|
Ht as Btn,
|
|
5026
|
-
|
|
5058
|
+
Vl as BtnGroup,
|
|
5027
5059
|
ue as COLOR_LIGHTNESS_MAP,
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5060
|
+
Bl as ChatContainer,
|
|
5061
|
+
Ol as ChatMessage,
|
|
5062
|
+
Pl as ChatSystem,
|
|
5063
|
+
Dl as Chip,
|
|
5064
|
+
Fl as ColorInput,
|
|
5033
5065
|
pa as ColorSwatch,
|
|
5034
|
-
|
|
5035
|
-
|
|
5066
|
+
Wl as Drawer,
|
|
5067
|
+
Nl as Dropzone,
|
|
5036
5068
|
vr as FullscreenOverlay,
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5069
|
+
Ll as Image,
|
|
5070
|
+
jl as Indicator,
|
|
5071
|
+
Xl as Modal,
|
|
5040
5072
|
Ma as Notification,
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5073
|
+
Ul as NotificationSystem,
|
|
5074
|
+
kl as Notifications,
|
|
5075
|
+
Ea as Overlay,
|
|
5076
|
+
Ra as Paper,
|
|
5077
|
+
Gl as PinInput,
|
|
5078
|
+
Yl as Popover,
|
|
5079
|
+
ql as Progress,
|
|
5080
|
+
Kl as Rating,
|
|
5081
|
+
Jl as RokuProvider,
|
|
5050
5082
|
Pe as SURFACE_LIGHTNESS_MAP,
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5083
|
+
Zl as SchemeSwitch,
|
|
5084
|
+
Ql as ScrollArea,
|
|
5085
|
+
eo as Select,
|
|
5086
|
+
to as SelectArea,
|
|
5087
|
+
ro as Slider,
|
|
5056
5088
|
Ya as Switch,
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5089
|
+
no as TabItem,
|
|
5090
|
+
ao as Tabs,
|
|
5091
|
+
lo as Tag,
|
|
5060
5092
|
Ba as TextField,
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5093
|
+
oo as ThemeProvider,
|
|
5094
|
+
so as Tooltip,
|
|
5095
|
+
uo as VirtualWaterfall,
|
|
5096
|
+
io as Waterfall,
|
|
5065
5097
|
Yn as borderCS,
|
|
5066
5098
|
er as childrenElementMapSymbol,
|
|
5067
5099
|
ur as defaultTheme,
|
|
5068
5100
|
Qt as directionSymbol,
|
|
5069
5101
|
Ve as errorColor,
|
|
5070
|
-
|
|
5102
|
+
zl as errorColors,
|
|
5071
5103
|
De as generateColors,
|
|
5072
5104
|
Zr as generateColorsMap,
|
|
5073
5105
|
ge as generateColorsObjMap,
|
|
5074
5106
|
rt as getCSInner,
|
|
5075
|
-
|
|
5076
|
-
|
|
5107
|
+
Re as primaryColor,
|
|
5108
|
+
Tl as primaryColors,
|
|
5077
5109
|
Pn as schemeSymbol,
|
|
5078
5110
|
ze as secondaryColor,
|
|
5079
|
-
|
|
5111
|
+
El as secondaryColors,
|
|
5080
5112
|
xe as surfaceColor,
|
|
5081
|
-
|
|
5113
|
+
Il as surfaceColors,
|
|
5082
5114
|
Zt as tabCurrentSymbol,
|
|
5083
|
-
|
|
5115
|
+
$l as tabValueListSymbol,
|
|
5084
5116
|
Ie as tertiaryColor,
|
|
5085
5117
|
Rl as tertiaryColors,
|
|
5086
5118
|
Mt as useButtonCS,
|
|
@@ -5094,20 +5126,20 @@ export {
|
|
|
5094
5126
|
Ke as useContainerFilledCS,
|
|
5095
5127
|
Zn as useContainerLightCS,
|
|
5096
5128
|
Vn as useCurrentThemeData,
|
|
5097
|
-
|
|
5098
|
-
|
|
5129
|
+
Ml as useCurrentThemeName,
|
|
5130
|
+
Al as useCurrentThemeScheme,
|
|
5099
5131
|
xt as useId,
|
|
5100
5132
|
Jn as useIndicatorFilledCS,
|
|
5101
5133
|
dr as useInputColorStyle,
|
|
5102
5134
|
qe as useMergedCS,
|
|
5103
5135
|
Kr as useNotifications,
|
|
5104
|
-
|
|
5136
|
+
Cl as useRootTheme,
|
|
5105
5137
|
ie as useRounded,
|
|
5106
5138
|
Dn as useSchemeString,
|
|
5107
5139
|
zn as useScrollHeight,
|
|
5108
5140
|
Xe as useSurfaceCS,
|
|
5109
5141
|
Kn as useSurfaceColors,
|
|
5110
|
-
|
|
5142
|
+
Hl as useTextCS,
|
|
5111
5143
|
Bn as useThemeData,
|
|
5112
5144
|
or as useThemeStyles
|
|
5113
5145
|
};
|