@roku-ui/vue 0.1.1 → 0.1.2
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/Avatar.vue.d.ts +4 -3
- package/dist/components/Btn.vue.d.ts +4 -6
- package/dist/components/Chip.vue.d.ts +3 -3
- package/dist/components/Paper.vue.d.ts +51 -0
- package/dist/components/RokuProvider.vue.d.ts +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +788 -783
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/test.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const St = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as $, computed as m, useAttrs as ht, openBlock as g, createBlock as D, resolveDynamicComponent as _e, mergeProps as Pe, unref as l, withCtx as J, renderSlot as H, createCommentVNode as z, getCurrentScope as pt, onScopeDispose as mt, onMounted as se, nextTick as gt, getCurrentInstance as Qe, watch as ie, ref as v, mergeModels as ee, useModel as me, watchEffect as X, createElementBlock as y, createElementVNode as M, normalizeClass as w, withModifiers as Ze, normalizeStyle as T, Fragment as te, renderList as fe, toDisplayString as re, withDirectives as Je, vModelCheckbox as bt, reactive as vt, inject as et, provide as Fe, createTextVNode as yt, Teleport as wt, createVNode as We, Transition as _t, withKeys as xt, useSlots as kt, isRef as Mt } from "vue";
|
|
2
|
+
const St = /* @__PURE__ */ $({
|
|
3
3
|
__name: "Btn",
|
|
4
4
|
props: {
|
|
5
5
|
type: { default: "button" },
|
|
@@ -9,7 +9,6 @@ const St = /* @__PURE__ */ z({
|
|
|
9
9
|
pressEffect: { default: "translate" },
|
|
10
10
|
variant: {},
|
|
11
11
|
color: {},
|
|
12
|
-
disabled: { type: Boolean },
|
|
13
12
|
animate: { type: Boolean },
|
|
14
13
|
rounded: { default: "md" }
|
|
15
14
|
},
|
|
@@ -45,7 +44,7 @@ const St = /* @__PURE__ */ z({
|
|
|
45
44
|
iconContent: "h-10 w-10 p-3"
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
|
-
}),
|
|
47
|
+
}), o = m(() => {
|
|
49
48
|
switch (t.variant) {
|
|
50
49
|
case "filled":
|
|
51
50
|
switch (t.color) {
|
|
@@ -117,96 +116,95 @@ const St = /* @__PURE__ */ z({
|
|
|
117
116
|
default:
|
|
118
117
|
return "btn-default";
|
|
119
118
|
}
|
|
120
|
-
});
|
|
121
|
-
return (
|
|
122
|
-
"data-size":
|
|
123
|
-
type:
|
|
124
|
-
class:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
}), a = ht();
|
|
120
|
+
return (s, i) => (g(), D(_e(s.is), Pe({
|
|
121
|
+
"data-size": s.size,
|
|
122
|
+
type: s.type,
|
|
123
|
+
class: ["flex items-center justify-center gap-1 decoration-none", [
|
|
124
|
+
l(o),
|
|
125
|
+
l(r),
|
|
126
|
+
s.icon ? l(n).iconContent : l(n).normalContent,
|
|
128
127
|
{
|
|
129
|
-
"filter-grayscale":
|
|
130
|
-
"active:translate-y-0.25": !
|
|
131
|
-
"active:scale-98": !
|
|
132
|
-
"transition-all":
|
|
128
|
+
"filter-grayscale": l(a).disabled,
|
|
129
|
+
"active:translate-y-0.25": !l(a).disabled && s.pressEffect === "translate",
|
|
130
|
+
"active:scale-98": !l(a).disabled && s.pressEffect === "scale",
|
|
131
|
+
"transition-all": s.animate
|
|
133
132
|
}
|
|
134
|
-
]]
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
o.$slots.rightSection ? I(o.$slots, "rightSection", { key: 1 }) : T("", !0)
|
|
133
|
+
]]
|
|
134
|
+
}, s.$attrs), {
|
|
135
|
+
default: J(() => [
|
|
136
|
+
s.$slots.leftSection ? H(s.$slots, "leftSection", { key: 0 }) : z("", !0),
|
|
137
|
+
H(s.$slots, "default"),
|
|
138
|
+
s.$slots.rightSection ? H(s.$slots, "rightSection", { key: 1 }) : z("", !0)
|
|
141
139
|
]),
|
|
142
140
|
_: 3
|
|
143
|
-
},
|
|
141
|
+
}, 16, ["data-size", "type", "class"]));
|
|
144
142
|
}
|
|
145
143
|
});
|
|
146
144
|
function Ne(e) {
|
|
147
|
-
return
|
|
145
|
+
return pt() ? (mt(e), !0) : !1;
|
|
148
146
|
}
|
|
149
|
-
function
|
|
150
|
-
return typeof e == "function" ? e() :
|
|
147
|
+
function He(e) {
|
|
148
|
+
return typeof e == "function" ? e() : l(e);
|
|
151
149
|
}
|
|
152
|
-
const
|
|
150
|
+
const be = typeof window < "u" && typeof document < "u";
|
|
153
151
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
154
|
-
const
|
|
152
|
+
const At = Object.prototype.toString, Ct = (e) => At.call(e) === "[object Object]", $t = () => {
|
|
155
153
|
};
|
|
156
154
|
function Tt(e) {
|
|
157
155
|
return e || Qe();
|
|
158
156
|
}
|
|
159
157
|
function zt(e, t = !0, r) {
|
|
160
|
-
Tt() ?
|
|
158
|
+
Tt() ? se(e, r) : t ? e() : gt(e);
|
|
161
159
|
}
|
|
162
160
|
function q(e) {
|
|
163
161
|
var t;
|
|
164
|
-
const r =
|
|
162
|
+
const r = He(e);
|
|
165
163
|
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
166
164
|
}
|
|
167
|
-
const
|
|
165
|
+
const xe = be ? window : void 0;
|
|
168
166
|
function Y(...e) {
|
|
169
|
-
let t, r, n,
|
|
170
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n,
|
|
171
|
-
return
|
|
167
|
+
let t, r, n, o;
|
|
168
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, o] = e, t = xe) : [t, r, n, o] = e, !t)
|
|
169
|
+
return $t;
|
|
172
170
|
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
() => [q(t),
|
|
171
|
+
const a = [], s = () => {
|
|
172
|
+
a.forEach((f) => f()), a.length = 0;
|
|
173
|
+
}, i = (f, u, p, b) => (f.addEventListener(u, p, b), () => f.removeEventListener(u, p, b)), c = ie(
|
|
174
|
+
() => [q(t), He(o)],
|
|
177
175
|
([f, u]) => {
|
|
178
|
-
if (
|
|
176
|
+
if (s(), !f)
|
|
179
177
|
return;
|
|
180
|
-
const p =
|
|
181
|
-
|
|
182
|
-
...r.flatMap((b) => n.map((
|
|
178
|
+
const p = Ct(u) ? { ...u } : u;
|
|
179
|
+
a.push(
|
|
180
|
+
...r.flatMap((b) => n.map((k) => i(f, b, k, p)))
|
|
183
181
|
);
|
|
184
182
|
},
|
|
185
183
|
{ immediate: !0, flush: "post" }
|
|
186
184
|
), d = () => {
|
|
187
|
-
|
|
185
|
+
c(), s();
|
|
188
186
|
};
|
|
189
187
|
return Ne(d), d;
|
|
190
188
|
}
|
|
191
189
|
function Rt(e) {
|
|
192
190
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
193
191
|
}
|
|
194
|
-
function
|
|
192
|
+
function Ae(...e) {
|
|
195
193
|
let t, r, n = {};
|
|
196
194
|
e.length === 3 ? (t = e[0], r = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, r = e[0], n = e[1]) : (t = e[0], r = e[1]) : (t = !0, r = e[0]);
|
|
197
195
|
const {
|
|
198
|
-
target:
|
|
199
|
-
eventName:
|
|
200
|
-
passive:
|
|
201
|
-
dedupe:
|
|
202
|
-
} = n,
|
|
203
|
-
return Y(
|
|
204
|
-
f.repeat &&
|
|
205
|
-
},
|
|
196
|
+
target: o = xe,
|
|
197
|
+
eventName: a = "keydown",
|
|
198
|
+
passive: s = !1,
|
|
199
|
+
dedupe: i = !1
|
|
200
|
+
} = n, c = Rt(t);
|
|
201
|
+
return Y(o, a, (f) => {
|
|
202
|
+
f.repeat && He(i) || c(f) && r(f);
|
|
203
|
+
}, s);
|
|
206
204
|
}
|
|
207
205
|
function Et() {
|
|
208
|
-
const e =
|
|
209
|
-
return Qe() &&
|
|
206
|
+
const e = v(!1);
|
|
207
|
+
return Qe() && se(() => {
|
|
210
208
|
e.value = !0;
|
|
211
209
|
}), e;
|
|
212
210
|
}
|
|
@@ -214,46 +212,46 @@ function tt(e) {
|
|
|
214
212
|
const t = Et();
|
|
215
213
|
return m(() => (t.value, !!e()));
|
|
216
214
|
}
|
|
217
|
-
function
|
|
218
|
-
const { window: n =
|
|
219
|
-
let
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
},
|
|
215
|
+
function Pt(e, t, r = {}) {
|
|
216
|
+
const { window: n = xe, ...o } = r;
|
|
217
|
+
let a;
|
|
218
|
+
const s = tt(() => n && "MutationObserver" in n), i = () => {
|
|
219
|
+
a && (a.disconnect(), a = void 0);
|
|
220
|
+
}, c = ie(
|
|
223
221
|
() => q(e),
|
|
224
222
|
(u) => {
|
|
225
|
-
|
|
223
|
+
i(), s.value && n && u && (a = new MutationObserver(t), a.observe(u, o));
|
|
226
224
|
},
|
|
227
225
|
{ immediate: !0 }
|
|
228
|
-
), d = () =>
|
|
229
|
-
|
|
226
|
+
), d = () => a == null ? void 0 : a.takeRecords(), f = () => {
|
|
227
|
+
i(), c();
|
|
230
228
|
};
|
|
231
229
|
return Ne(f), {
|
|
232
|
-
isSupported:
|
|
230
|
+
isSupported: s,
|
|
233
231
|
stop: f,
|
|
234
232
|
takeRecords: d
|
|
235
233
|
};
|
|
236
234
|
}
|
|
237
|
-
function
|
|
238
|
-
const { window: n =
|
|
239
|
-
let
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
},
|
|
243
|
-
|
|
235
|
+
function Nt(e, t, r = {}) {
|
|
236
|
+
const { window: n = xe, ...o } = r;
|
|
237
|
+
let a;
|
|
238
|
+
const s = tt(() => n && "ResizeObserver" in n), i = () => {
|
|
239
|
+
a && (a.disconnect(), a = void 0);
|
|
240
|
+
}, c = m(() => Array.isArray(e) ? e.map((u) => q(u)) : [q(e)]), d = ie(
|
|
241
|
+
c,
|
|
244
242
|
(u) => {
|
|
245
|
-
if (
|
|
246
|
-
|
|
243
|
+
if (i(), s.value && n) {
|
|
244
|
+
a = new ResizeObserver(t);
|
|
247
245
|
for (const p of u)
|
|
248
|
-
p &&
|
|
246
|
+
p && a.observe(p, o);
|
|
249
247
|
}
|
|
250
248
|
},
|
|
251
249
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
252
250
|
), f = () => {
|
|
253
|
-
|
|
251
|
+
i(), d();
|
|
254
252
|
};
|
|
255
253
|
return Ne(f), {
|
|
256
|
-
isSupported:
|
|
254
|
+
isSupported: s,
|
|
257
255
|
stop: f
|
|
258
256
|
};
|
|
259
257
|
}
|
|
@@ -261,58 +259,58 @@ function Ht(e, t = {}) {
|
|
|
261
259
|
const {
|
|
262
260
|
reset: r = !0,
|
|
263
261
|
windowResize: n = !0,
|
|
264
|
-
windowScroll:
|
|
265
|
-
immediate:
|
|
266
|
-
} = t,
|
|
267
|
-
function
|
|
262
|
+
windowScroll: o = !0,
|
|
263
|
+
immediate: a = !0
|
|
264
|
+
} = t, s = v(0), i = v(0), c = v(0), d = v(0), f = v(0), u = v(0), p = v(0), b = v(0);
|
|
265
|
+
function k() {
|
|
268
266
|
const S = q(e);
|
|
269
267
|
if (!S) {
|
|
270
|
-
r && (
|
|
268
|
+
r && (s.value = 0, i.value = 0, c.value = 0, d.value = 0, f.value = 0, u.value = 0, p.value = 0, b.value = 0);
|
|
271
269
|
return;
|
|
272
270
|
}
|
|
273
|
-
const
|
|
274
|
-
|
|
271
|
+
const C = S.getBoundingClientRect();
|
|
272
|
+
s.value = C.height, i.value = C.bottom, c.value = C.left, d.value = C.right, f.value = C.top, u.value = C.width, p.value = C.x, b.value = C.y;
|
|
275
273
|
}
|
|
276
|
-
return
|
|
274
|
+
return Nt(e, k), ie(() => q(e), (S) => !S && k()), Pt(e, k, {
|
|
277
275
|
attributeFilter: ["style", "class"]
|
|
278
|
-
}),
|
|
279
|
-
|
|
276
|
+
}), o && Y("scroll", k, { capture: !0, passive: !0 }), n && Y("resize", k, { passive: !0 }), zt(() => {
|
|
277
|
+
a && k();
|
|
280
278
|
}), {
|
|
281
|
-
height:
|
|
282
|
-
bottom:
|
|
283
|
-
left:
|
|
279
|
+
height: s,
|
|
280
|
+
bottom: i,
|
|
281
|
+
left: c,
|
|
284
282
|
right: d,
|
|
285
283
|
top: f,
|
|
286
284
|
width: u,
|
|
287
285
|
x: p,
|
|
288
286
|
y: b,
|
|
289
|
-
update:
|
|
287
|
+
update: k
|
|
290
288
|
};
|
|
291
289
|
}
|
|
292
290
|
function It(e, t = {}) {
|
|
293
|
-
const { initialValue: r = !1, focusVisible: n = !1 } = t,
|
|
294
|
-
Y(
|
|
295
|
-
var
|
|
296
|
-
(!n || (d = (
|
|
297
|
-
}), Y(
|
|
298
|
-
const
|
|
299
|
-
get: () =>
|
|
300
|
-
set(
|
|
301
|
-
var
|
|
302
|
-
!
|
|
291
|
+
const { initialValue: r = !1, focusVisible: n = !1 } = t, o = v(!1), a = m(() => q(e));
|
|
292
|
+
Y(a, "focus", (i) => {
|
|
293
|
+
var c, d;
|
|
294
|
+
(!n || (d = (c = i.target).matches) != null && d.call(c, ":focus-visible")) && (o.value = !0);
|
|
295
|
+
}), Y(a, "blur", () => o.value = !1);
|
|
296
|
+
const s = m({
|
|
297
|
+
get: () => o.value,
|
|
298
|
+
set(i) {
|
|
299
|
+
var c, d;
|
|
300
|
+
!i && o.value ? (c = a.value) == null || c.blur() : i && !o.value && ((d = a.value) == null || d.focus());
|
|
303
301
|
}
|
|
304
302
|
});
|
|
305
|
-
return
|
|
306
|
-
|
|
303
|
+
return ie(
|
|
304
|
+
a,
|
|
307
305
|
() => {
|
|
308
|
-
|
|
306
|
+
s.value = r;
|
|
309
307
|
},
|
|
310
308
|
{ immediate: !0, flush: "post" }
|
|
311
|
-
), { focused:
|
|
309
|
+
), { focused: s };
|
|
312
310
|
}
|
|
313
|
-
const Ot = { class: "relative inline-block" },
|
|
311
|
+
const Ot = { class: "relative inline-block" }, rn = /* @__PURE__ */ $({
|
|
314
312
|
__name: "Slider",
|
|
315
|
-
props: /* @__PURE__ */
|
|
313
|
+
props: /* @__PURE__ */ ee({
|
|
316
314
|
size: { default: "md" },
|
|
317
315
|
animate: { type: Boolean, default: !1 },
|
|
318
316
|
width: { default: 12 },
|
|
@@ -331,23 +329,23 @@ const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
|
|
|
331
329
|
emits: ["update:modelValue"],
|
|
332
330
|
setup(e) {
|
|
333
331
|
const t = e;
|
|
334
|
-
function r(
|
|
335
|
-
const
|
|
336
|
-
for (let
|
|
337
|
-
|
|
338
|
-
return
|
|
332
|
+
function r(A, R, E) {
|
|
333
|
+
const I = [];
|
|
334
|
+
for (let G = A; G <= R; G += E)
|
|
335
|
+
I.push(G);
|
|
336
|
+
return I[I.length - 1] !== R && I.push(R), I;
|
|
339
337
|
}
|
|
340
|
-
function n(
|
|
338
|
+
function n(A, R) {
|
|
341
339
|
const E = [];
|
|
342
340
|
E.push(R[0]);
|
|
343
|
-
const
|
|
344
|
-
for (let
|
|
345
|
-
E.push(R[Math.round(
|
|
341
|
+
const I = (R.length - 1) / (A - 1);
|
|
342
|
+
for (let G = 1; G < A - 1; G++)
|
|
343
|
+
E.push(R[Math.round(G * I)]);
|
|
346
344
|
return E.push(R[R.length - 1]), E;
|
|
347
345
|
}
|
|
348
|
-
const
|
|
349
|
-
function f(
|
|
350
|
-
return
|
|
346
|
+
const o = m(() => t.options ? t.options.length : t.tickNum ?? 0), a = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = m(() => n(o.value, a.value)), i = me(e, "modelValue"), c = m(() => a.value.length ?? 0), d = v(a.value.includes(i.value) ? a.value.indexOf(i.value) : 0);
|
|
347
|
+
function f(A) {
|
|
348
|
+
return a.value.indexOf(A);
|
|
351
349
|
}
|
|
352
350
|
const u = m(() => {
|
|
353
351
|
switch (t.color) {
|
|
@@ -373,28 +371,28 @@ const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
|
|
|
373
371
|
}
|
|
374
372
|
});
|
|
375
373
|
X(() => {
|
|
376
|
-
|
|
374
|
+
i.value = a.value[d.value];
|
|
377
375
|
});
|
|
378
|
-
const
|
|
379
|
-
function
|
|
380
|
-
if (!
|
|
376
|
+
const k = v(), S = v(), C = Ht(k), le = v(!1);
|
|
377
|
+
function ce(A) {
|
|
378
|
+
if (!le.value)
|
|
381
379
|
return;
|
|
382
|
-
if (!(
|
|
383
|
-
|
|
380
|
+
if (!(A.buttons === 1)) {
|
|
381
|
+
le.value = !1;
|
|
384
382
|
return;
|
|
385
383
|
}
|
|
386
|
-
|
|
387
|
-
const { clientX: E } =
|
|
388
|
-
|
|
384
|
+
A.preventDefault(), A.stopPropagation();
|
|
385
|
+
const { clientX: E } = A, I = C.left.value, ft = C.right.value - I, Se = Math.round((E - I) / ft * (c.value - 1));
|
|
386
|
+
Se < 0 || Se > c.value - 1 || (d.value = Se);
|
|
389
387
|
}
|
|
390
388
|
X(() => {
|
|
391
|
-
d.value = f(
|
|
389
|
+
d.value = f(i.value);
|
|
392
390
|
});
|
|
393
|
-
function
|
|
394
|
-
|
|
391
|
+
function _(A) {
|
|
392
|
+
A.preventDefault(), A.stopPropagation(), le.value = !0, ce(A);
|
|
395
393
|
}
|
|
396
|
-
Y(
|
|
397
|
-
Y(document, "pointermove",
|
|
394
|
+
Y(k, "pointerdown", _), se(() => {
|
|
395
|
+
Y(document, "pointermove", ce), d.value = Math.max(0, f(i.value));
|
|
398
396
|
});
|
|
399
397
|
const O = m(() => {
|
|
400
398
|
switch (t.size) {
|
|
@@ -429,82 +427,83 @@ const Ot = { class: "relative inline-block" }, nn = /* @__PURE__ */ z({
|
|
|
429
427
|
progress: "-mx-1.5"
|
|
430
428
|
};
|
|
431
429
|
}
|
|
432
|
-
}),
|
|
430
|
+
}), j = m(() => t.animate ? {
|
|
433
431
|
indicator: "transition-left",
|
|
434
432
|
progress: "transition-width"
|
|
435
433
|
} : {
|
|
436
434
|
indicator: "",
|
|
437
435
|
progress: ""
|
|
438
436
|
});
|
|
439
|
-
return (
|
|
440
|
-
|
|
437
|
+
return (A, R) => (g(), y("div", Ot, [
|
|
438
|
+
M("div", {
|
|
441
439
|
ref_key: "wrapper",
|
|
442
|
-
ref:
|
|
440
|
+
ref: k,
|
|
443
441
|
type: "size",
|
|
444
|
-
class: w(["flex cursor-pointer items-center",
|
|
442
|
+
class: w(["flex cursor-pointer items-center", l(O).wrapper]),
|
|
445
443
|
onTouchmove: R[0] || (R[0] = Ze(() => {
|
|
446
444
|
}, ["prevent"]))
|
|
447
445
|
}, [
|
|
448
|
-
|
|
449
|
-
class: w(["rounded-full bg-surface-
|
|
446
|
+
M("div", {
|
|
447
|
+
class: w(["rounded-full bg-surface-lowest transition-background-color,border-color,color", l(O).innerWrapper])
|
|
450
448
|
}, [
|
|
451
|
-
|
|
452
|
-
class: w(["relative flex",
|
|
453
|
-
style:
|
|
449
|
+
M("div", {
|
|
450
|
+
class: w(["relative flex", l(O).content]),
|
|
451
|
+
style: T({
|
|
454
452
|
width: `${t.width}rem`
|
|
455
453
|
})
|
|
456
454
|
}, [
|
|
457
|
-
(g(!0),
|
|
455
|
+
(g(!0), y(te, null, fe(l(s), (E) => (g(), y("div", {
|
|
458
456
|
key: E,
|
|
459
|
-
style:
|
|
460
|
-
left: `${f(E) / (c
|
|
457
|
+
style: T({
|
|
458
|
+
left: `${f(E) / (l(c) - 1) * 100}%`
|
|
461
459
|
}),
|
|
462
|
-
class: w(["absolute top-50% rounded-full bg-white",
|
|
460
|
+
class: w(["absolute top-50% rounded-full bg-white", l(O).tick])
|
|
463
461
|
}, null, 6))), 128)),
|
|
464
|
-
|
|
462
|
+
M("div", {
|
|
465
463
|
ref_key: "indicator",
|
|
466
464
|
ref: S,
|
|
467
|
-
class: w(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [
|
|
468
|
-
style:
|
|
469
|
-
left: `${
|
|
465
|
+
class: w(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [l(O).indicator, l(j).indicator, l(p)]]),
|
|
466
|
+
style: T({
|
|
467
|
+
left: `${l(d) / (l(c) - 1) * 100}%`
|
|
470
468
|
})
|
|
471
469
|
}, [
|
|
472
|
-
|
|
473
|
-
class: w(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [
|
|
470
|
+
M("div", {
|
|
471
|
+
class: w(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [l(O).indicatorInner, l(b)]])
|
|
474
472
|
}, null, 2)
|
|
475
473
|
], 6),
|
|
476
|
-
|
|
477
|
-
class: w(["pointer-events-none h-full rounded-full", [
|
|
478
|
-
style:
|
|
479
|
-
width: `${
|
|
474
|
+
M("div", {
|
|
475
|
+
class: w(["pointer-events-none h-full rounded-full", [l(O).progress, l(j).progress, l(u)]]),
|
|
476
|
+
style: T({
|
|
477
|
+
width: `${l(d) / (l(c) - 1) * 100}%`
|
|
480
478
|
})
|
|
481
479
|
}, null, 6)
|
|
482
480
|
], 6)
|
|
483
481
|
], 2)
|
|
484
482
|
], 34),
|
|
485
|
-
|
|
483
|
+
M("div", {
|
|
486
484
|
class: "relative mx-1 h-1em text-xs text-surface-onlow",
|
|
487
|
-
style:
|
|
485
|
+
style: T({
|
|
488
486
|
width: `${t.width}rem`
|
|
489
487
|
})
|
|
490
488
|
}, [
|
|
491
|
-
(g(!0),
|
|
492
|
-
key:
|
|
493
|
-
style:
|
|
494
|
-
left: `${f(E) / (c
|
|
489
|
+
(g(!0), y(te, null, fe(l(s), (E, I) => (g(), y("div", {
|
|
490
|
+
key: I,
|
|
491
|
+
style: T({
|
|
492
|
+
left: `${f(E) / (l(c) - 1) * 100}%`
|
|
495
493
|
}),
|
|
496
|
-
class: w(["absolute w-auto flex rounded-full -translate-x-50%",
|
|
497
|
-
},
|
|
494
|
+
class: w(["absolute w-auto flex rounded-full -translate-x-50%", l(O).tick])
|
|
495
|
+
}, re(E), 7))), 128))
|
|
498
496
|
], 4)
|
|
499
497
|
]));
|
|
500
498
|
}
|
|
501
499
|
});
|
|
502
|
-
function
|
|
500
|
+
function ge(e) {
|
|
503
501
|
return m(
|
|
504
502
|
() => ({ style: Bt(e.rounded), class: "rounded-[var(--r-rounded)]" })
|
|
505
503
|
);
|
|
506
504
|
}
|
|
507
505
|
function Bt(e) {
|
|
506
|
+
const t = /^-?\d*\.?\d+(px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;
|
|
508
507
|
switch (e) {
|
|
509
508
|
case "none":
|
|
510
509
|
return "--r-rounded: 0";
|
|
@@ -517,13 +516,13 @@ function Bt(e) {
|
|
|
517
516
|
case "full":
|
|
518
517
|
return "--r-rounded: 9999px";
|
|
519
518
|
default:
|
|
520
|
-
return typeof e == "number" || !Number.isNaN(Number(e)) ? `--r-rounded: ${e}rem;` : "rounded-[var(--r-rounded)]";
|
|
519
|
+
return typeof e == "string" && t.test(e) ? `--r-rounded: ${e};` : typeof e == "number" || !Number.isNaN(Number(e)) ? `--r-rounded: ${e}rem;` : "rounded-[var(--r-rounded)]";
|
|
521
520
|
}
|
|
522
521
|
}
|
|
523
|
-
const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */
|
|
522
|
+
const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ $({
|
|
524
523
|
inheritAttrs: !1,
|
|
525
524
|
__name: "Switch",
|
|
526
|
-
props: /* @__PURE__ */
|
|
525
|
+
props: /* @__PURE__ */ ee({
|
|
527
526
|
size: { default: "md" },
|
|
528
527
|
animate: { type: Boolean, default: !0 },
|
|
529
528
|
options: {},
|
|
@@ -540,47 +539,47 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
|
|
|
540
539
|
}),
|
|
541
540
|
emits: ["update:modelValue"],
|
|
542
541
|
setup(e) {
|
|
543
|
-
const t = e, r = me(e, "modelValue"), n =
|
|
542
|
+
const t = e, r = me(e, "modelValue"), n = v(null), o = v(!1), a = m(() => {
|
|
544
543
|
switch (t.size) {
|
|
545
544
|
case "sm":
|
|
546
545
|
return {
|
|
547
546
|
icon: "text-xs mx-0.5",
|
|
548
547
|
wrapper: "h-4 w-8",
|
|
549
|
-
indicator:
|
|
548
|
+
indicator: o.value ? "h-3 w-4" : "h-3 w-3",
|
|
550
549
|
inactive: "left-[calc(0.125rem-1px)]",
|
|
551
|
-
active:
|
|
550
|
+
active: o.value ? "left-[calc(0.875rem-1px)]" : "left-[calc(1.125rem-1px)]"
|
|
552
551
|
};
|
|
553
552
|
case "md":
|
|
554
553
|
return {
|
|
555
554
|
icon: "text-sm mx-1",
|
|
556
555
|
wrapper: "h-6 w-12",
|
|
557
|
-
indicator:
|
|
556
|
+
indicator: o.value ? "h-4 w-5" : "h-4 w-4",
|
|
558
557
|
inactive: "left-[calc(0.25rem-1px)]",
|
|
559
|
-
active:
|
|
558
|
+
active: o.value ? "left-[calc(1.5rem-1px)]" : "left-[calc(1.75rem-1px)]"
|
|
560
559
|
};
|
|
561
560
|
case "lg":
|
|
562
561
|
return {
|
|
563
562
|
icon: "text-lg mx-2",
|
|
564
563
|
wrapper: "h-8 w-16",
|
|
565
|
-
indicator:
|
|
564
|
+
indicator: o.value ? "h-6 w-8" : "h-6 w-6",
|
|
566
565
|
inactive: "left-[calc(0.25rem-1px)]",
|
|
567
|
-
active:
|
|
566
|
+
active: o.value ? "left-[calc(1.75rem-1px)]" : "left-[calc(2.25rem-1px)]"
|
|
568
567
|
};
|
|
569
568
|
}
|
|
570
|
-
}),
|
|
569
|
+
}), s = m(() => t.animate ? {
|
|
571
570
|
indicator: "transition-all",
|
|
572
571
|
progress: "transition-width"
|
|
573
572
|
} : {
|
|
574
573
|
indicator: "",
|
|
575
574
|
progress: ""
|
|
576
575
|
});
|
|
577
|
-
function
|
|
578
|
-
const u =
|
|
579
|
-
return
|
|
576
|
+
function i() {
|
|
577
|
+
const u = v("");
|
|
578
|
+
return se(() => {
|
|
580
579
|
t.id ? u.value = t.id : u.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
|
|
581
580
|
}), u;
|
|
582
581
|
}
|
|
583
|
-
const
|
|
582
|
+
const c = i(), d = m(() => {
|
|
584
583
|
let u = "bg-primary-container";
|
|
585
584
|
switch (t.color) {
|
|
586
585
|
case "secondary":
|
|
@@ -594,18 +593,18 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
|
|
|
594
593
|
break;
|
|
595
594
|
}
|
|
596
595
|
return {
|
|
597
|
-
wrapper: r.value ? `border border-transparent ${u}` : "bg-surface-lowest border border-surface-border",
|
|
596
|
+
wrapper: r.value ? `border border-transparent ${u}` : "bg-surface-lowest border border-surface-border-low",
|
|
598
597
|
indicator: t.disabled ? "bg-surface-high" : "bg-white text-primary-container"
|
|
599
598
|
};
|
|
600
|
-
}), f =
|
|
601
|
-
return (u, p) => (g(),
|
|
599
|
+
}), f = ge(t);
|
|
600
|
+
return (u, p) => (g(), y("div", {
|
|
602
601
|
role: "switch",
|
|
603
602
|
class: w(["relative flex items-center gap-2", {
|
|
604
603
|
"pointer-events-none filter-grayscale op60": t.disabled
|
|
605
604
|
}])
|
|
606
605
|
}, [
|
|
607
|
-
Je(
|
|
608
|
-
id: c
|
|
606
|
+
Je(M("input", Pe({
|
|
607
|
+
id: l(c),
|
|
609
608
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => r.value = b)
|
|
610
609
|
}, u.$attrs, {
|
|
611
610
|
class: "hidden",
|
|
@@ -613,26 +612,26 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
|
|
|
613
612
|
}), null, 16, Vt), [
|
|
614
613
|
[bt, r.value]
|
|
615
614
|
]),
|
|
616
|
-
|
|
615
|
+
M("label", {
|
|
617
616
|
class: "leading-0 cursor-pointer!",
|
|
618
|
-
for: c
|
|
617
|
+
for: l(c)
|
|
619
618
|
}, [
|
|
620
|
-
|
|
619
|
+
M("div", {
|
|
621
620
|
ref_key: "wrapper",
|
|
622
621
|
ref: n,
|
|
623
|
-
class: w([[
|
|
624
|
-
style:
|
|
625
|
-
onPointerdown: p[1] || (p[1] = (b) =>
|
|
626
|
-
onPointerup: p[2] || (p[2] = (b) =>
|
|
627
|
-
onPointerleave: p[3] || (p[3] = (b) =>
|
|
628
|
-
onPointerenter: p[4] || (p[4] = (b) => b.buttons === 1 && (
|
|
622
|
+
class: w([[l(a).wrapper, l(d).wrapper, l(f).class], "relative inline-block transition-all"]),
|
|
623
|
+
style: T([l(f).style]),
|
|
624
|
+
onPointerdown: p[1] || (p[1] = (b) => o.value = !0),
|
|
625
|
+
onPointerup: p[2] || (p[2] = (b) => o.value = !1),
|
|
626
|
+
onPointerleave: p[3] || (p[3] = (b) => o.value = !1),
|
|
627
|
+
onPointerenter: p[4] || (p[4] = (b) => b.buttons === 1 && (o.value = !0))
|
|
629
628
|
}, [
|
|
630
|
-
|
|
631
|
-
class: w(["absolute top-50% -translate-y-50%", [
|
|
632
|
-
style:
|
|
629
|
+
M("div", {
|
|
630
|
+
class: w(["absolute top-50% -translate-y-50%", [l(a).indicator, l(d).indicator, l(s).indicator, r.value ? l(a).active : l(a).inactive, l(f).class]]),
|
|
631
|
+
style: T([l(f).style])
|
|
633
632
|
}, null, 6),
|
|
634
|
-
|
|
635
|
-
class: w(["absolute top-1/2 -translate-y-50%", [
|
|
633
|
+
M("i", {
|
|
634
|
+
class: w(["absolute top-1/2 -translate-y-50%", [l(a).icon, {
|
|
636
635
|
[`left-0 text-${u.color}-on`]: r.value,
|
|
637
636
|
"right-0 text-surface-on ": !r.value,
|
|
638
637
|
[u.onIcon ?? ""]: r.value && u.onIcon,
|
|
@@ -641,20 +640,20 @@ const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ z({
|
|
|
641
640
|
}, null, 2)
|
|
642
641
|
], 38)
|
|
643
642
|
], 8, Ft),
|
|
644
|
-
u.label ? (g(),
|
|
643
|
+
u.label ? (g(), y("label", {
|
|
645
644
|
key: 0,
|
|
646
|
-
for: c
|
|
647
|
-
},
|
|
645
|
+
for: l(c)
|
|
646
|
+
}, re(u.label), 9, Wt)) : z("", !0)
|
|
648
647
|
], 2));
|
|
649
648
|
}
|
|
650
649
|
});
|
|
651
|
-
function
|
|
650
|
+
function ve(e) {
|
|
652
651
|
"@babel/helpers - typeof";
|
|
653
|
-
return
|
|
652
|
+
return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
654
653
|
return typeof t;
|
|
655
654
|
} : function(t) {
|
|
656
655
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
657
|
-
},
|
|
656
|
+
}, ve(e);
|
|
658
657
|
}
|
|
659
658
|
var Dt = /^\s+/, jt = /\s+$/;
|
|
660
659
|
function h(e, t) {
|
|
@@ -689,8 +688,8 @@ h.prototype = {
|
|
|
689
688
|
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
690
689
|
},
|
|
691
690
|
getLuminance: function() {
|
|
692
|
-
var t = this.toRgb(), r, n, a,
|
|
693
|
-
return r = t.r / 255, n = t.g / 255,
|
|
691
|
+
var t = this.toRgb(), r, n, o, a, s, i;
|
|
692
|
+
return r = t.r / 255, n = t.g / 255, o = t.b / 255, r <= 0.03928 ? a = r / 12.92 : a = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? s = n / 12.92 : s = Math.pow((n + 0.055) / 1.055, 2.4), o <= 0.03928 ? i = o / 12.92 : i = Math.pow((o + 0.055) / 1.055, 2.4), 0.2126 * a + 0.7152 * s + 0.0722 * i;
|
|
694
693
|
},
|
|
695
694
|
setAlpha: function(t) {
|
|
696
695
|
return this._a = rt(t), this._roundA = Math.round(100 * this._a) / 100, this;
|
|
@@ -705,8 +704,8 @@ h.prototype = {
|
|
|
705
704
|
};
|
|
706
705
|
},
|
|
707
706
|
toHsvString: function() {
|
|
708
|
-
var t = De(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100),
|
|
709
|
-
return this._a == 1 ? "hsv(" + r + ", " + n + "%, " +
|
|
707
|
+
var t = De(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
|
|
708
|
+
return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + o + "%)" : "hsva(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
|
|
710
709
|
},
|
|
711
710
|
toHsl: function() {
|
|
712
711
|
var t = Le(this._r, this._g, this._b);
|
|
@@ -718,8 +717,8 @@ h.prototype = {
|
|
|
718
717
|
};
|
|
719
718
|
},
|
|
720
719
|
toHslString: function() {
|
|
721
|
-
var t = Le(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100),
|
|
722
|
-
return this._a == 1 ? "hsl(" + r + ", " + n + "%, " +
|
|
720
|
+
var t = Le(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
|
|
721
|
+
return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + o + "%)" : "hsla(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
|
|
723
722
|
},
|
|
724
723
|
toHex: function(t) {
|
|
725
724
|
return je(this._r, this._g, this._b, t);
|
|
@@ -746,31 +745,31 @@ h.prototype = {
|
|
|
746
745
|
},
|
|
747
746
|
toPercentageRgb: function() {
|
|
748
747
|
return {
|
|
749
|
-
r: Math.round(
|
|
750
|
-
g: Math.round(
|
|
751
|
-
b: Math.round(
|
|
748
|
+
r: Math.round(x(this._r, 255) * 100) + "%",
|
|
749
|
+
g: Math.round(x(this._g, 255) * 100) + "%",
|
|
750
|
+
b: Math.round(x(this._b, 255) * 100) + "%",
|
|
752
751
|
a: this._a
|
|
753
752
|
};
|
|
754
753
|
},
|
|
755
754
|
toPercentageRgbString: function() {
|
|
756
|
-
return this._a == 1 ? "rgb(" + Math.round(
|
|
755
|
+
return this._a == 1 ? "rgb(" + Math.round(x(this._r, 255) * 100) + "%, " + Math.round(x(this._g, 255) * 100) + "%, " + Math.round(x(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(x(this._r, 255) * 100) + "%, " + Math.round(x(this._g, 255) * 100) + "%, " + Math.round(x(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
757
756
|
},
|
|
758
757
|
toName: function() {
|
|
759
758
|
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ir[je(this._r, this._g, this._b, !0)] || !1;
|
|
760
759
|
},
|
|
761
760
|
toFilter: function(t) {
|
|
762
|
-
var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r,
|
|
761
|
+
var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r, o = this._gradientType ? "GradientType = 1, " : "";
|
|
763
762
|
if (t) {
|
|
764
|
-
var
|
|
765
|
-
n = "#" + Ge(
|
|
763
|
+
var a = h(t);
|
|
764
|
+
n = "#" + Ge(a._r, a._g, a._b, a._a);
|
|
766
765
|
}
|
|
767
|
-
return "progid:DXImageTransform.Microsoft.gradient(" +
|
|
766
|
+
return "progid:DXImageTransform.Microsoft.gradient(" + o + "startColorstr=" + r + ",endColorstr=" + n + ")";
|
|
768
767
|
},
|
|
769
768
|
toString: function(t) {
|
|
770
769
|
var r = !!t;
|
|
771
770
|
t = t || this._format;
|
|
772
|
-
var n = !1,
|
|
773
|
-
return
|
|
771
|
+
var n = !1, o = this._a < 1 && this._a >= 0, a = !r && o && (t === "hex" || t === "hex6" || t === "hex3" || t === "hex4" || t === "hex8" || t === "name");
|
|
772
|
+
return a ? 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());
|
|
774
773
|
},
|
|
775
774
|
clone: function() {
|
|
776
775
|
return h(this.toString());
|
|
@@ -827,10 +826,10 @@ h.prototype = {
|
|
|
827
826
|
}
|
|
828
827
|
};
|
|
829
828
|
h.fromRatio = function(e, t) {
|
|
830
|
-
if (
|
|
829
|
+
if (ve(e) == "object") {
|
|
831
830
|
var r = {};
|
|
832
831
|
for (var n in e)
|
|
833
|
-
e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] =
|
|
832
|
+
e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = ue(e[n]));
|
|
834
833
|
e = r;
|
|
835
834
|
}
|
|
836
835
|
return h(e, t);
|
|
@@ -840,10 +839,10 @@ function Gt(e) {
|
|
|
840
839
|
r: 0,
|
|
841
840
|
g: 0,
|
|
842
841
|
b: 0
|
|
843
|
-
}, r = 1, n = null,
|
|
844
|
-
return typeof e == "string" && (e = dr(e)),
|
|
845
|
-
ok:
|
|
846
|
-
format: e.format ||
|
|
842
|
+
}, r = 1, n = null, o = null, a = null, s = !1, i = !1;
|
|
843
|
+
return typeof e == "string" && (e = dr(e)), ve(e) == "object" && (W(e.r) && W(e.g) && W(e.b) ? (t = Ut(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : W(e.h) && W(e.s) && W(e.v) ? (n = ue(e.s), o = ue(e.v), t = qt(e.h, n, o), s = !0, i = "hsv") : W(e.h) && W(e.s) && W(e.l) && (n = ue(e.s), a = ue(e.l), t = Xt(e.h, n, a), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = rt(r), {
|
|
844
|
+
ok: s,
|
|
845
|
+
format: e.format || i,
|
|
847
846
|
r: Math.min(255, Math.max(t.r, 0)),
|
|
848
847
|
g: Math.min(255, Math.max(t.g, 0)),
|
|
849
848
|
b: Math.min(255, Math.max(t.b, 0)),
|
|
@@ -852,83 +851,83 @@ function Gt(e) {
|
|
|
852
851
|
}
|
|
853
852
|
function Ut(e, t, r) {
|
|
854
853
|
return {
|
|
855
|
-
r:
|
|
856
|
-
g:
|
|
857
|
-
b:
|
|
854
|
+
r: x(e, 255) * 255,
|
|
855
|
+
g: x(t, 255) * 255,
|
|
856
|
+
b: x(r, 255) * 255
|
|
858
857
|
};
|
|
859
858
|
}
|
|
860
859
|
function Le(e, t, r) {
|
|
861
|
-
e =
|
|
862
|
-
var n = Math.max(e, t, r),
|
|
863
|
-
if (n ==
|
|
864
|
-
|
|
860
|
+
e = x(e, 255), t = x(t, 255), r = x(r, 255);
|
|
861
|
+
var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = (n + o) / 2;
|
|
862
|
+
if (n == o)
|
|
863
|
+
a = s = 0;
|
|
865
864
|
else {
|
|
866
|
-
var
|
|
867
|
-
switch (
|
|
865
|
+
var c = n - o;
|
|
866
|
+
switch (s = i > 0.5 ? c / (2 - n - o) : c / (n + o), n) {
|
|
868
867
|
case e:
|
|
869
|
-
|
|
868
|
+
a = (t - r) / c + (t < r ? 6 : 0);
|
|
870
869
|
break;
|
|
871
870
|
case t:
|
|
872
|
-
|
|
871
|
+
a = (r - e) / c + 2;
|
|
873
872
|
break;
|
|
874
873
|
case r:
|
|
875
|
-
|
|
874
|
+
a = (e - t) / c + 4;
|
|
876
875
|
break;
|
|
877
876
|
}
|
|
878
|
-
|
|
877
|
+
a /= 6;
|
|
879
878
|
}
|
|
880
879
|
return {
|
|
881
|
-
h:
|
|
882
|
-
s
|
|
883
|
-
l:
|
|
880
|
+
h: a,
|
|
881
|
+
s,
|
|
882
|
+
l: i
|
|
884
883
|
};
|
|
885
884
|
}
|
|
886
885
|
function Xt(e, t, r) {
|
|
887
|
-
var n,
|
|
888
|
-
e =
|
|
889
|
-
function
|
|
886
|
+
var n, o, a;
|
|
887
|
+
e = x(e, 360), t = x(t, 100), r = x(r, 100);
|
|
888
|
+
function s(d, f, u) {
|
|
890
889
|
return u < 0 && (u += 1), u > 1 && (u -= 1), u < 1 / 6 ? d + (f - d) * 6 * u : u < 1 / 2 ? f : u < 2 / 3 ? d + (f - d) * (2 / 3 - u) * 6 : d;
|
|
891
890
|
}
|
|
892
891
|
if (t === 0)
|
|
893
|
-
n =
|
|
892
|
+
n = o = a = r;
|
|
894
893
|
else {
|
|
895
|
-
var
|
|
896
|
-
n =
|
|
894
|
+
var i = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - i;
|
|
895
|
+
n = s(c, i, e + 1 / 3), o = s(c, i, e), a = s(c, i, e - 1 / 3);
|
|
897
896
|
}
|
|
898
897
|
return {
|
|
899
898
|
r: n * 255,
|
|
900
|
-
g:
|
|
901
|
-
b:
|
|
899
|
+
g: o * 255,
|
|
900
|
+
b: a * 255
|
|
902
901
|
};
|
|
903
902
|
}
|
|
904
903
|
function De(e, t, r) {
|
|
905
|
-
e =
|
|
906
|
-
var n = Math.max(e, t, r),
|
|
907
|
-
if (
|
|
908
|
-
|
|
904
|
+
e = x(e, 255), t = x(t, 255), r = x(r, 255);
|
|
905
|
+
var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = n, c = n - o;
|
|
906
|
+
if (s = n === 0 ? 0 : c / n, n == o)
|
|
907
|
+
a = 0;
|
|
909
908
|
else {
|
|
910
909
|
switch (n) {
|
|
911
910
|
case e:
|
|
912
|
-
|
|
911
|
+
a = (t - r) / c + (t < r ? 6 : 0);
|
|
913
912
|
break;
|
|
914
913
|
case t:
|
|
915
|
-
|
|
914
|
+
a = (r - e) / c + 2;
|
|
916
915
|
break;
|
|
917
916
|
case r:
|
|
918
|
-
|
|
917
|
+
a = (e - t) / c + 4;
|
|
919
918
|
break;
|
|
920
919
|
}
|
|
921
|
-
|
|
920
|
+
a /= 6;
|
|
922
921
|
}
|
|
923
922
|
return {
|
|
924
|
-
h:
|
|
925
|
-
s
|
|
926
|
-
v:
|
|
923
|
+
h: a,
|
|
924
|
+
s,
|
|
925
|
+
v: i
|
|
927
926
|
};
|
|
928
927
|
}
|
|
929
928
|
function qt(e, t, r) {
|
|
930
|
-
e =
|
|
931
|
-
var n = Math.floor(e),
|
|
929
|
+
e = x(e, 360) * 6, t = x(t, 100), r = x(r, 100);
|
|
930
|
+
var n = Math.floor(e), o = e - n, a = r * (1 - t), s = r * (1 - o * t), i = r * (1 - (1 - o) * t), c = n % 6, d = [r, s, a, a, i, r][c], f = [i, r, r, s, a, a][c], u = [a, a, i, r, r, s][c];
|
|
932
931
|
return {
|
|
933
932
|
r: d * 255,
|
|
934
933
|
g: f * 255,
|
|
@@ -936,16 +935,16 @@ function qt(e, t, r) {
|
|
|
936
935
|
};
|
|
937
936
|
}
|
|
938
937
|
function je(e, t, r, n) {
|
|
939
|
-
var
|
|
940
|
-
return n &&
|
|
938
|
+
var o = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
|
|
939
|
+
return n && o[0].charAt(0) == o[0].charAt(1) && o[1].charAt(0) == o[1].charAt(1) && o[2].charAt(0) == o[2].charAt(1) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
941
940
|
}
|
|
942
|
-
function Yt(e, t, r, n,
|
|
943
|
-
var
|
|
944
|
-
return
|
|
941
|
+
function Yt(e, t, r, n, o) {
|
|
942
|
+
var a = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16)), V(nt(n))];
|
|
943
|
+
return o && 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[3].charAt(0) == a[3].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
|
|
945
944
|
}
|
|
946
945
|
function Ge(e, t, r, n) {
|
|
947
|
-
var
|
|
948
|
-
return
|
|
946
|
+
var o = [V(nt(n)), V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
|
|
947
|
+
return o.join("");
|
|
949
948
|
}
|
|
950
949
|
h.equals = function(e, t) {
|
|
951
950
|
return !e || !t ? !1 : h(e).toRgbString() == h(t).toRgbString();
|
|
@@ -960,12 +959,12 @@ h.random = function() {
|
|
|
960
959
|
function Kt(e, t) {
|
|
961
960
|
t = t === 0 ? 0 : t || 10;
|
|
962
961
|
var r = h(e).toHsl();
|
|
963
|
-
return r.s -= t / 100, r.s =
|
|
962
|
+
return r.s -= t / 100, r.s = ke(r.s), h(r);
|
|
964
963
|
}
|
|
965
964
|
function Qt(e, t) {
|
|
966
965
|
t = t === 0 ? 0 : t || 10;
|
|
967
966
|
var r = h(e).toHsl();
|
|
968
|
-
return r.s += t / 100, r.s =
|
|
967
|
+
return r.s += t / 100, r.s = ke(r.s), h(r);
|
|
969
968
|
}
|
|
970
969
|
function Zt(e) {
|
|
971
970
|
return h(e).desaturate(100);
|
|
@@ -973,7 +972,7 @@ function Zt(e) {
|
|
|
973
972
|
function Jt(e, t) {
|
|
974
973
|
t = t === 0 ? 0 : t || 10;
|
|
975
974
|
var r = h(e).toHsl();
|
|
976
|
-
return r.l += t / 100, r.l =
|
|
975
|
+
return r.l += t / 100, r.l = ke(r.l), h(r);
|
|
977
976
|
}
|
|
978
977
|
function er(e, t) {
|
|
979
978
|
t = t === 0 ? 0 : t || 10;
|
|
@@ -983,7 +982,7 @@ function er(e, t) {
|
|
|
983
982
|
function tr(e, t) {
|
|
984
983
|
t = t === 0 ? 0 : t || 10;
|
|
985
984
|
var r = h(e).toHsl();
|
|
986
|
-
return r.l -= t / 100, r.l =
|
|
985
|
+
return r.l -= t / 100, r.l = ke(r.l), h(r);
|
|
987
986
|
}
|
|
988
987
|
function rr(e, t) {
|
|
989
988
|
var r = h(e).toHsl(), n = (r.h + t) % 360;
|
|
@@ -996,9 +995,9 @@ function nr(e) {
|
|
|
996
995
|
function Ue(e, t) {
|
|
997
996
|
if (isNaN(t) || t <= 0)
|
|
998
997
|
throw new Error("Argument to polyad must be a positive number");
|
|
999
|
-
for (var r = h(e).toHsl(), n = [h(e)],
|
|
998
|
+
for (var r = h(e).toHsl(), n = [h(e)], o = 360 / t, a = 1; a < t; a++)
|
|
1000
999
|
n.push(h({
|
|
1001
|
-
h: (r.h +
|
|
1000
|
+
h: (r.h + a * o) % 360,
|
|
1002
1001
|
s: r.s,
|
|
1003
1002
|
l: r.l
|
|
1004
1003
|
}));
|
|
@@ -1018,62 +1017,62 @@ function or(e) {
|
|
|
1018
1017
|
}
|
|
1019
1018
|
function ar(e, t, r) {
|
|
1020
1019
|
t = t || 6, r = r || 30;
|
|
1021
|
-
var n = h(e).toHsl(),
|
|
1022
|
-
for (n.h = (n.h - (
|
|
1023
|
-
n.h = (n.h +
|
|
1024
|
-
return
|
|
1020
|
+
var n = h(e).toHsl(), o = 360 / r, a = [h(e)];
|
|
1021
|
+
for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
|
|
1022
|
+
n.h = (n.h + o) % 360, a.push(h(n));
|
|
1023
|
+
return a;
|
|
1025
1024
|
}
|
|
1026
1025
|
function sr(e, t) {
|
|
1027
1026
|
t = t || 6;
|
|
1028
|
-
for (var r = h(e).toHsv(), n = r.h,
|
|
1029
|
-
|
|
1027
|
+
for (var r = h(e).toHsv(), n = r.h, o = r.s, a = r.v, s = [], i = 1 / t; t--; )
|
|
1028
|
+
s.push(h({
|
|
1030
1029
|
h: n,
|
|
1031
|
-
s:
|
|
1032
|
-
v:
|
|
1033
|
-
})),
|
|
1034
|
-
return
|
|
1030
|
+
s: o,
|
|
1031
|
+
v: a
|
|
1032
|
+
})), a = (a + i) % 1;
|
|
1033
|
+
return s;
|
|
1035
1034
|
}
|
|
1036
1035
|
h.mix = function(e, t, r) {
|
|
1037
1036
|
r = r === 0 ? 0 : r || 50;
|
|
1038
|
-
var n = h(e).toRgb(),
|
|
1039
|
-
r: (
|
|
1040
|
-
g: (
|
|
1041
|
-
b: (
|
|
1042
|
-
a: (
|
|
1037
|
+
var n = h(e).toRgb(), o = h(t).toRgb(), a = r / 100, s = {
|
|
1038
|
+
r: (o.r - n.r) * a + n.r,
|
|
1039
|
+
g: (o.g - n.g) * a + n.g,
|
|
1040
|
+
b: (o.b - n.b) * a + n.b,
|
|
1041
|
+
a: (o.a - n.a) * a + n.a
|
|
1043
1042
|
};
|
|
1044
|
-
return h(
|
|
1043
|
+
return h(s);
|
|
1045
1044
|
};
|
|
1046
1045
|
h.readability = function(e, t) {
|
|
1047
1046
|
var r = h(e), n = h(t);
|
|
1048
1047
|
return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
|
|
1049
1048
|
};
|
|
1050
1049
|
h.isReadable = function(e, t, r) {
|
|
1051
|
-
var n = h.readability(e, t),
|
|
1052
|
-
switch (
|
|
1050
|
+
var n = h.readability(e, t), o, a;
|
|
1051
|
+
switch (a = !1, o = fr(r), o.level + o.size) {
|
|
1053
1052
|
case "AAsmall":
|
|
1054
1053
|
case "AAAlarge":
|
|
1055
|
-
|
|
1054
|
+
a = n >= 4.5;
|
|
1056
1055
|
break;
|
|
1057
1056
|
case "AAlarge":
|
|
1058
|
-
|
|
1057
|
+
a = n >= 3;
|
|
1059
1058
|
break;
|
|
1060
1059
|
case "AAAsmall":
|
|
1061
|
-
|
|
1060
|
+
a = n >= 7;
|
|
1062
1061
|
break;
|
|
1063
1062
|
}
|
|
1064
|
-
return
|
|
1063
|
+
return a;
|
|
1065
1064
|
};
|
|
1066
1065
|
h.mostReadable = function(e, t, r) {
|
|
1067
|
-
var n = null,
|
|
1068
|
-
r = r || {},
|
|
1066
|
+
var n = null, o = 0, a, s, i, c;
|
|
1067
|
+
r = r || {}, s = r.includeFallbackColors, i = r.level, c = r.size;
|
|
1069
1068
|
for (var d = 0; d < t.length; d++)
|
|
1070
|
-
|
|
1069
|
+
a = h.readability(e, t[d]), a > o && (o = a, n = h(t[d]));
|
|
1071
1070
|
return h.isReadable(e, n, {
|
|
1072
|
-
level:
|
|
1073
|
-
size:
|
|
1074
|
-
}) || !
|
|
1071
|
+
level: i,
|
|
1072
|
+
size: c
|
|
1073
|
+
}) || !s ? n : (r.includeFallbackColors = !1, h.mostReadable(e, ["#fff", "#000"], r));
|
|
1075
1074
|
};
|
|
1076
|
-
var
|
|
1075
|
+
var $e = h.names = {
|
|
1077
1076
|
aliceblue: "f0f8ff",
|
|
1078
1077
|
antiquewhite: "faebd7",
|
|
1079
1078
|
aqua: "0ff",
|
|
@@ -1223,7 +1222,7 @@ var Ae = h.names = {
|
|
|
1223
1222
|
whitesmoke: "f5f5f5",
|
|
1224
1223
|
yellow: "ff0",
|
|
1225
1224
|
yellowgreen: "9acd32"
|
|
1226
|
-
}, ir = h.hexNames = lr(
|
|
1225
|
+
}, ir = h.hexNames = lr($e);
|
|
1227
1226
|
function lr(e) {
|
|
1228
1227
|
var t = {};
|
|
1229
1228
|
for (var r in e)
|
|
@@ -1233,15 +1232,15 @@ function lr(e) {
|
|
|
1233
1232
|
function rt(e) {
|
|
1234
1233
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
1235
1234
|
}
|
|
1236
|
-
function
|
|
1235
|
+
function x(e, t) {
|
|
1237
1236
|
cr(e) && (e = "100%");
|
|
1238
1237
|
var r = ur(e);
|
|
1239
1238
|
return e = Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(e * t, 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : e % t / parseFloat(t);
|
|
1240
1239
|
}
|
|
1241
|
-
function
|
|
1240
|
+
function ke(e) {
|
|
1242
1241
|
return Math.min(1, Math.max(0, e));
|
|
1243
1242
|
}
|
|
1244
|
-
function
|
|
1243
|
+
function N(e) {
|
|
1245
1244
|
return parseInt(e, 16);
|
|
1246
1245
|
}
|
|
1247
1246
|
function cr(e) {
|
|
@@ -1253,25 +1252,25 @@ function ur(e) {
|
|
|
1253
1252
|
function V(e) {
|
|
1254
1253
|
return e.length == 1 ? "0" + e : "" + e;
|
|
1255
1254
|
}
|
|
1256
|
-
function
|
|
1255
|
+
function ue(e) {
|
|
1257
1256
|
return e <= 1 && (e = e * 100 + "%"), e;
|
|
1258
1257
|
}
|
|
1259
1258
|
function nt(e) {
|
|
1260
1259
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1261
1260
|
}
|
|
1262
1261
|
function Xe(e) {
|
|
1263
|
-
return
|
|
1262
|
+
return N(e) / 255;
|
|
1264
1263
|
}
|
|
1265
1264
|
var B = function() {
|
|
1266
|
-
var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?",
|
|
1265
|
+
var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", o = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
|
|
1267
1266
|
return {
|
|
1268
1267
|
CSS_UNIT: new RegExp(r),
|
|
1269
1268
|
rgb: new RegExp("rgb" + n),
|
|
1270
|
-
rgba: new RegExp("rgba" +
|
|
1269
|
+
rgba: new RegExp("rgba" + o),
|
|
1271
1270
|
hsl: new RegExp("hsl" + n),
|
|
1272
|
-
hsla: new RegExp("hsla" +
|
|
1271
|
+
hsla: new RegExp("hsla" + o),
|
|
1273
1272
|
hsv: new RegExp("hsv" + n),
|
|
1274
|
-
hsva: new RegExp("hsva" +
|
|
1273
|
+
hsva: new RegExp("hsva" + o),
|
|
1275
1274
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1276
1275
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
1277
1276
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
@@ -1284,8 +1283,8 @@ function W(e) {
|
|
|
1284
1283
|
function dr(e) {
|
|
1285
1284
|
e = e.replace(Dt, "").replace(jt, "").toLowerCase();
|
|
1286
1285
|
var t = !1;
|
|
1287
|
-
if (
|
|
1288
|
-
e =
|
|
1286
|
+
if ($e[e])
|
|
1287
|
+
e = $e[e], t = !0;
|
|
1289
1288
|
else if (e == "transparent")
|
|
1290
1289
|
return {
|
|
1291
1290
|
r: 0,
|
|
@@ -1323,26 +1322,26 @@ function dr(e) {
|
|
|
1323
1322
|
v: r[3],
|
|
1324
1323
|
a: r[4]
|
|
1325
1324
|
} : (r = B.hex8.exec(e)) ? {
|
|
1326
|
-
r:
|
|
1327
|
-
g:
|
|
1328
|
-
b:
|
|
1325
|
+
r: N(r[1]),
|
|
1326
|
+
g: N(r[2]),
|
|
1327
|
+
b: N(r[3]),
|
|
1329
1328
|
a: Xe(r[4]),
|
|
1330
1329
|
format: t ? "name" : "hex8"
|
|
1331
1330
|
} : (r = B.hex6.exec(e)) ? {
|
|
1332
|
-
r:
|
|
1333
|
-
g:
|
|
1334
|
-
b:
|
|
1331
|
+
r: N(r[1]),
|
|
1332
|
+
g: N(r[2]),
|
|
1333
|
+
b: N(r[3]),
|
|
1335
1334
|
format: t ? "name" : "hex"
|
|
1336
1335
|
} : (r = B.hex4.exec(e)) ? {
|
|
1337
|
-
r:
|
|
1338
|
-
g:
|
|
1339
|
-
b:
|
|
1336
|
+
r: N(r[1] + "" + r[1]),
|
|
1337
|
+
g: N(r[2] + "" + r[2]),
|
|
1338
|
+
b: N(r[3] + "" + r[3]),
|
|
1340
1339
|
a: Xe(r[4] + "" + r[4]),
|
|
1341
1340
|
format: t ? "name" : "hex8"
|
|
1342
1341
|
} : (r = B.hex3.exec(e)) ? {
|
|
1343
|
-
r:
|
|
1344
|
-
g:
|
|
1345
|
-
b:
|
|
1342
|
+
r: N(r[1] + "" + r[1]),
|
|
1343
|
+
g: N(r[2] + "" + r[2]),
|
|
1344
|
+
b: N(r[3] + "" + r[3]),
|
|
1346
1345
|
format: t ? "name" : "hex"
|
|
1347
1346
|
} : !1;
|
|
1348
1347
|
}
|
|
@@ -1356,87 +1355,87 @@ function fr(e) {
|
|
|
1356
1355
|
size: r
|
|
1357
1356
|
};
|
|
1358
1357
|
}
|
|
1359
|
-
const
|
|
1358
|
+
const ot = {
|
|
1360
1359
|
primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
|
|
1361
1360
|
secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
|
|
1362
1361
|
tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
|
|
1363
1362
|
error: ["#ffeaea", "#fcd5d5", "#f2a8a9", "#ea7a7a", "#e25353", "#de3939", "#dd2b2b", "#c41e1f", "#af171a", "#9a0913", "#450a0a"],
|
|
1364
|
-
surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#
|
|
1365
|
-
},
|
|
1363
|
+
surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#121212"]
|
|
1364
|
+
}, Te = {
|
|
1366
1365
|
name: "dark",
|
|
1367
1366
|
scheme: "dark",
|
|
1368
|
-
colors:
|
|
1367
|
+
colors: ot
|
|
1369
1368
|
}, hr = {
|
|
1370
1369
|
name: "light",
|
|
1371
1370
|
scheme: "light",
|
|
1372
|
-
colors:
|
|
1373
|
-
},
|
|
1371
|
+
colors: ot
|
|
1372
|
+
}, nn = Symbol("Notifications"), at = vt([]);
|
|
1374
1373
|
function pr() {
|
|
1375
|
-
return
|
|
1374
|
+
return at;
|
|
1376
1375
|
}
|
|
1377
|
-
class
|
|
1376
|
+
class on {
|
|
1378
1377
|
static show(t) {
|
|
1379
|
-
t.hash = Math.random().toString(36),
|
|
1378
|
+
t.hash = Math.random().toString(36), at.push(t);
|
|
1380
1379
|
}
|
|
1381
1380
|
}
|
|
1382
|
-
const
|
|
1381
|
+
const ze = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28], qe = [0.32, 0.16, 0.08, 0.04, 0, 0, 0.04, 0.08, 0.16, 0.32, 0.64];
|
|
1383
1382
|
function mr(e) {
|
|
1384
1383
|
const t = h(e).toHsl().l;
|
|
1385
|
-
return
|
|
1384
|
+
return ze.reduce(
|
|
1386
1385
|
(r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
|
|
1387
1386
|
);
|
|
1388
1387
|
}
|
|
1389
1388
|
function gr(e) {
|
|
1390
|
-
const t = h(e), r = mr(t), n =
|
|
1391
|
-
const
|
|
1392
|
-
return
|
|
1389
|
+
const t = h(e), r = mr(t), n = ze.findIndex((a) => a === r), o = ze.map((a) => {
|
|
1390
|
+
const s = h({ h: t.toHsl().h, s: t.toHsl().s, l: a }), i = qe[n] - qe[n];
|
|
1391
|
+
return i >= 0 ? s.saturate(i * 100) : s.desaturate(i * -100), s;
|
|
1393
1392
|
});
|
|
1394
|
-
return { baseColorIndex: n, colors:
|
|
1393
|
+
return { baseColorIndex: n, colors: o.map((a) => a.toHexString()) };
|
|
1395
1394
|
}
|
|
1396
|
-
function
|
|
1395
|
+
function an(e) {
|
|
1397
1396
|
return gr(e).colors;
|
|
1398
1397
|
}
|
|
1399
1398
|
function br() {
|
|
1400
1399
|
if (typeof window > "u")
|
|
1401
|
-
return
|
|
1402
|
-
const e =
|
|
1400
|
+
return v("dark");
|
|
1401
|
+
const e = v(document.documentElement.dataset.scheme);
|
|
1403
1402
|
return new MutationObserver((r) => {
|
|
1404
1403
|
r.forEach((n) => {
|
|
1405
|
-
n.type === "attributes" && n.attributeName === "data-
|
|
1404
|
+
n.type === "attributes" && n.attributeName === "data-scheme" && (e.value = document.documentElement.dataset.scheme);
|
|
1406
1405
|
});
|
|
1407
1406
|
}).observe(document.documentElement, {
|
|
1408
1407
|
attributes: !0,
|
|
1409
|
-
attributeFilter: ["data-
|
|
1408
|
+
attributeFilter: ["data-scheme"]
|
|
1410
1409
|
}), e;
|
|
1411
1410
|
}
|
|
1412
|
-
function
|
|
1411
|
+
function sn() {
|
|
1413
1412
|
return et("currentThemeScheme", null);
|
|
1414
1413
|
}
|
|
1415
1414
|
function vr() {
|
|
1416
|
-
return et("currentTheme",
|
|
1415
|
+
return et("currentTheme", v(Te));
|
|
1417
1416
|
}
|
|
1418
|
-
function
|
|
1419
|
-
const r =
|
|
1417
|
+
function st(e, t = !0) {
|
|
1418
|
+
const r = v(e), n = v(e.scheme), o = br();
|
|
1420
1419
|
X(() => {
|
|
1421
|
-
|
|
1420
|
+
o.value && (n.value = o.value);
|
|
1422
1421
|
}), Fe("currentTheme", r), Fe("currentThemeScheme", n);
|
|
1423
|
-
const
|
|
1422
|
+
const s = {
|
|
1424
1423
|
...Object.keys(r.value.colors).map((f) => {
|
|
1425
1424
|
const u = f;
|
|
1426
|
-
return r.value.colors[u].reduce((b,
|
|
1427
|
-
const
|
|
1428
|
-
return b[`--r-color-${u}-${S}`] = `${
|
|
1425
|
+
return r.value.colors[u].reduce((b, k, S) => {
|
|
1426
|
+
const C = h(k).toRgb();
|
|
1427
|
+
return b[`--r-color-${u}-${S}`] = `${C.r} ${C.g} ${C.b}`, b;
|
|
1429
1428
|
}, {});
|
|
1430
1429
|
}).reduce((f, u) => ({
|
|
1431
1430
|
...f,
|
|
1432
1431
|
...u
|
|
1433
1432
|
}), {})
|
|
1434
|
-
},
|
|
1433
|
+
}, i = {
|
|
1435
1434
|
"color-scheme": n.value,
|
|
1436
1435
|
"font-family": "'Roboto', sans-serif",
|
|
1437
|
-
"background-color": "rgb(var(--r-color-surface-
|
|
1436
|
+
"background-color": "rgb(var(--r-color-surface-lowest))",
|
|
1438
1437
|
color: "rgb(var(--r-color-surface-on))"
|
|
1439
|
-
},
|
|
1438
|
+
}, c = m(() => {
|
|
1440
1439
|
if (t)
|
|
1441
1440
|
return {};
|
|
1442
1441
|
switch (e.scheme) {
|
|
@@ -1447,7 +1446,7 @@ function at(e, t = !0) {
|
|
|
1447
1446
|
"--r-color-surface-oninverted": "var(--r-color-surface-8)",
|
|
1448
1447
|
"--r-color-surface-onlow": "var(--r-color-surface-4)",
|
|
1449
1448
|
"--r-color-surface-onlowinverted": "var(--r-color-surface-7)",
|
|
1450
|
-
"--r-color-surface-lowest": "var(--r-color-surface-
|
|
1449
|
+
"--r-color-surface-lowest": "var(--r-color-surface-10)",
|
|
1451
1450
|
"--r-color-surface-low": "var(--r-color-surface-9)",
|
|
1452
1451
|
"--r-color-surface-base": "var(--r-color-surface-8)",
|
|
1453
1452
|
"--r-color-surface-high": "var(--r-color-surface-7)",
|
|
@@ -1495,47 +1494,47 @@ function at(e, t = !0) {
|
|
|
1495
1494
|
}
|
|
1496
1495
|
});
|
|
1497
1496
|
return {
|
|
1498
|
-
...i,
|
|
1499
1497
|
...s,
|
|
1500
|
-
...
|
|
1498
|
+
...i,
|
|
1499
|
+
...c.value
|
|
1501
1500
|
};
|
|
1502
1501
|
}
|
|
1503
|
-
const
|
|
1502
|
+
const ln = /* @__PURE__ */ $({
|
|
1504
1503
|
__name: "RokuProvider",
|
|
1505
1504
|
props: {
|
|
1506
1505
|
is: { default: "div" },
|
|
1507
1506
|
theme: { default() {
|
|
1508
|
-
return typeof window > "u" || document.documentElement.dataset.
|
|
1507
|
+
return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Te : hr;
|
|
1509
1508
|
} }
|
|
1510
1509
|
},
|
|
1511
1510
|
setup(e) {
|
|
1512
|
-
const t = e, r =
|
|
1513
|
-
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1511
|
+
const t = e, r = v(0), n = v(0);
|
|
1512
|
+
be && new ResizeObserver(() => {
|
|
1513
|
+
const i = window.innerWidth - document.body.clientWidth;
|
|
1514
|
+
i !== 0 && (r.value = i), n.value = i;
|
|
1516
1515
|
}).observe(document.body);
|
|
1517
|
-
const
|
|
1518
|
-
return (
|
|
1519
|
-
style:
|
|
1520
|
-
|
|
1521
|
-
{ paddingRight:
|
|
1516
|
+
const o = m(() => n.value === r.value ? "0px" : `${r.value}px`), a = st(t.theme);
|
|
1517
|
+
return (s, i) => (g(), D(_e(s.is), {
|
|
1518
|
+
style: T([
|
|
1519
|
+
l(a),
|
|
1520
|
+
{ paddingRight: l(o) }
|
|
1522
1521
|
]),
|
|
1523
1522
|
class: "text-surface-on transition-background-color,border-color,color"
|
|
1524
1523
|
}, {
|
|
1525
|
-
default:
|
|
1526
|
-
|
|
1524
|
+
default: J(() => [
|
|
1525
|
+
H(s.$slots, "default")
|
|
1527
1526
|
]),
|
|
1528
1527
|
_: 3
|
|
1529
1528
|
}, 8, ["style"]));
|
|
1530
1529
|
}
|
|
1531
|
-
}), yr = { class: "w-full flex items-center" }, wr = ["placeholder", "value"],
|
|
1530
|
+
}), yr = { class: "w-full flex items-center" }, wr = ["placeholder", "value"], _r = /* @__PURE__ */ M("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), xr = {
|
|
1532
1531
|
key: 0,
|
|
1533
1532
|
class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
|
|
1534
|
-
},
|
|
1533
|
+
}, kr = ["onPointerdown", "onHover"], Mr = { key: 0 }, Sr = /* @__PURE__ */ M("i", { class: "i-tabler-check h-3 w-3" }, null, -1), Ar = [
|
|
1535
1534
|
Sr
|
|
1536
|
-
],
|
|
1535
|
+
], cn = /* @__PURE__ */ $({
|
|
1537
1536
|
__name: "Select",
|
|
1538
|
-
props: /* @__PURE__ */
|
|
1537
|
+
props: /* @__PURE__ */ ee({
|
|
1539
1538
|
options: { default() {
|
|
1540
1539
|
return [];
|
|
1541
1540
|
} },
|
|
@@ -1546,42 +1545,42 @@ const cn = /* @__PURE__ */ z({
|
|
|
1546
1545
|
modelValue: { default: void 0 },
|
|
1547
1546
|
modelModifiers: {}
|
|
1548
1547
|
}),
|
|
1549
|
-
emits: /* @__PURE__ */
|
|
1548
|
+
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
1550
1549
|
setup(e, { emit: t }) {
|
|
1551
|
-
const r = e, n = t,
|
|
1550
|
+
const r = e, n = t, o = me(e, "modelValue"), a = v(null), s = v(null), { focused: i } = It(a), c = m(() => r.options.map((_) => S(_)).indexOf(o.value)), d = v(-1), f = v(-1);
|
|
1552
1551
|
X(() => {
|
|
1553
|
-
|
|
1552
|
+
i.value || (f.value = -1);
|
|
1554
1553
|
}), X(() => {
|
|
1555
|
-
|
|
1556
|
-
}),
|
|
1557
|
-
n("change",
|
|
1554
|
+
o.value = S(r.options[c.value]);
|
|
1555
|
+
}), ie(o, () => {
|
|
1556
|
+
n("change", o.value);
|
|
1558
1557
|
});
|
|
1559
|
-
const u = r.options, p = m(() => u[
|
|
1560
|
-
function
|
|
1561
|
-
if (
|
|
1562
|
-
return typeof
|
|
1558
|
+
const u = r.options, p = m(() => u[c.value]), b = m(() => k(p.value));
|
|
1559
|
+
function k(_) {
|
|
1560
|
+
if (_)
|
|
1561
|
+
return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.label;
|
|
1563
1562
|
}
|
|
1564
|
-
function S(
|
|
1565
|
-
if (
|
|
1566
|
-
return typeof
|
|
1563
|
+
function S(_) {
|
|
1564
|
+
if (_)
|
|
1565
|
+
return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.id;
|
|
1567
1566
|
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}),
|
|
1571
|
-
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1567
|
+
Ae("ArrowDown", (_) => {
|
|
1568
|
+
i.value && (_.preventDefault(), f.value = (f.value + 1) % u.length);
|
|
1569
|
+
}), Ae("ArrowUp", (_) => {
|
|
1570
|
+
i.value && (_.preventDefault(), f.value = (f.value - 1 + u.length) % u.length);
|
|
1571
|
+
}), Ae("Enter", () => {
|
|
1572
|
+
i.value && f.value !== -1 && (o.value = S(u[f.value]), i.value = !1);
|
|
1574
1573
|
});
|
|
1575
|
-
function
|
|
1576
|
-
if (!
|
|
1577
|
-
|
|
1574
|
+
function C(_) {
|
|
1575
|
+
if (!i.value) {
|
|
1576
|
+
i.value = !0;
|
|
1578
1577
|
return;
|
|
1579
1578
|
}
|
|
1580
|
-
|
|
1579
|
+
o.value = S(_), i.value = !1;
|
|
1581
1580
|
}
|
|
1582
|
-
const
|
|
1583
|
-
input: "container-
|
|
1584
|
-
})),
|
|
1581
|
+
const le = m(() => ({
|
|
1582
|
+
input: "container-base focus:border-primary-container"
|
|
1583
|
+
})), ce = m(() => {
|
|
1585
1584
|
switch (r.size) {
|
|
1586
1585
|
case "sm":
|
|
1587
1586
|
return {
|
|
@@ -1600,45 +1599,45 @@ const cn = /* @__PURE__ */ z({
|
|
|
1600
1599
|
};
|
|
1601
1600
|
}
|
|
1602
1601
|
});
|
|
1603
|
-
return (
|
|
1602
|
+
return (_, O) => (g(), y("div", {
|
|
1604
1603
|
ref_key: "wrapperRef",
|
|
1605
|
-
ref:
|
|
1604
|
+
ref: s,
|
|
1606
1605
|
class: "r-select-wrapper relative"
|
|
1607
1606
|
}, [
|
|
1608
|
-
|
|
1609
|
-
|
|
1607
|
+
M("div", yr, [
|
|
1608
|
+
M("input", {
|
|
1610
1609
|
ref_key: "inputRef",
|
|
1611
|
-
ref:
|
|
1612
|
-
class: w([[
|
|
1613
|
-
placeholder:
|
|
1610
|
+
ref: a,
|
|
1611
|
+
class: w([[l(le).input, l(ce).wrapper], "r-select-input cursor-pointer border rounded outline-none"]),
|
|
1612
|
+
placeholder: _.placeholder,
|
|
1614
1613
|
readonly: "",
|
|
1615
|
-
value:
|
|
1614
|
+
value: l(b),
|
|
1616
1615
|
"aria-haspopup": "listbox",
|
|
1617
1616
|
autocomplete: "off",
|
|
1618
|
-
onFocus: O[0] || (O[0] = (
|
|
1617
|
+
onFocus: O[0] || (O[0] = (j) => i.value = !0)
|
|
1619
1618
|
}, null, 42, wr),
|
|
1620
|
-
|
|
1619
|
+
_r
|
|
1621
1620
|
]),
|
|
1622
|
-
|
|
1621
|
+
l(i) ? (g(), y("div", {
|
|
1623
1622
|
key: 0,
|
|
1624
|
-
class: w([
|
|
1623
|
+
class: w([l(ce).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
|
|
1625
1624
|
}, [
|
|
1626
|
-
|
|
1627
|
-
key: S(
|
|
1625
|
+
l(u).length === 0 ? (g(), y("div", xr, re(_.noneText), 1)) : (g(!0), y(te, { key: 1 }, fe(l(u), (j, A) => (g(), y("div", {
|
|
1626
|
+
key: S(j),
|
|
1628
1627
|
class: w([{
|
|
1629
|
-
"hover:bg-surface-high":
|
|
1630
|
-
"container-filled-primary":
|
|
1628
|
+
"hover:bg-surface-high": l(f) !== A,
|
|
1629
|
+
"container-filled-primary": l(f) === A
|
|
1631
1630
|
}, "flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),
|
|
1632
|
-
onPointerdown: (R) =>
|
|
1633
|
-
onHover: (R) => d.value =
|
|
1631
|
+
onPointerdown: (R) => C(j),
|
|
1632
|
+
onHover: (R) => d.value = A
|
|
1634
1633
|
}, [
|
|
1635
|
-
yt(
|
|
1636
|
-
|
|
1637
|
-
], 42,
|
|
1638
|
-
], 2)) :
|
|
1634
|
+
yt(re(k(j)) + " ", 1),
|
|
1635
|
+
j === l(p) ? (g(), y("div", Mr, Ar)) : z("", !0)
|
|
1636
|
+
], 42, kr))), 128))
|
|
1637
|
+
], 2)) : z("", !0)
|
|
1639
1638
|
], 512));
|
|
1640
1639
|
}
|
|
1641
|
-
}),
|
|
1640
|
+
}), Cr = ["value", "placeholder", "type"], $r = /* @__PURE__ */ $({
|
|
1642
1641
|
__name: "TextField",
|
|
1643
1642
|
props: {
|
|
1644
1643
|
modelValue: {},
|
|
@@ -1653,7 +1652,7 @@ const cn = /* @__PURE__ */ z({
|
|
|
1653
1652
|
},
|
|
1654
1653
|
emits: ["change", "update:modelValue", "input", "click", "pointerdown", "pointerup"],
|
|
1655
1654
|
setup(e, { expose: t, emit: r }) {
|
|
1656
|
-
const n = e,
|
|
1655
|
+
const n = e, o = r, a = m(() => {
|
|
1657
1656
|
switch (n.size) {
|
|
1658
1657
|
case "sm":
|
|
1659
1658
|
return {
|
|
@@ -1668,33 +1667,33 @@ const cn = /* @__PURE__ */ z({
|
|
|
1668
1667
|
base: "h-10 px-4 py-2 text-base"
|
|
1669
1668
|
};
|
|
1670
1669
|
}
|
|
1671
|
-
}),
|
|
1670
|
+
}), s = m(() => {
|
|
1672
1671
|
if (n.error)
|
|
1673
|
-
return "text-error-container bg-surface-base border-error-
|
|
1672
|
+
return "text-error-container bg-surface-base border-error-container focus:border-error-container";
|
|
1674
1673
|
switch (n.color) {
|
|
1675
1674
|
case "secondary":
|
|
1676
|
-
return "text-surface-on bg-surface-base border-surface-border focus:border-secondary-
|
|
1675
|
+
return "text-surface-on bg-surface-base border-surface-border-base focus:border-secondary-container";
|
|
1677
1676
|
case "tertiary":
|
|
1678
|
-
return "text-surface-on bg-surface-base border-surface-border focus:border-tertiary-
|
|
1677
|
+
return "text-surface-on bg-surface-base border-surface-border-base focus:border-tertiary-container";
|
|
1679
1678
|
case "error":
|
|
1680
|
-
return "text-surface-on bg-surface-base border-surface-border focus:border-error-
|
|
1679
|
+
return "text-surface-on bg-surface-base border-surface-border-base focus:border-error-container";
|
|
1681
1680
|
case "primary":
|
|
1682
1681
|
default:
|
|
1683
|
-
return "text-surface-on bg-surface-base border-surface-border focus:border-primary-
|
|
1682
|
+
return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
|
|
1684
1683
|
}
|
|
1685
|
-
}),
|
|
1684
|
+
}), i = m(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), c = ge(n), d = v(null);
|
|
1686
1685
|
function f(u) {
|
|
1687
1686
|
var p;
|
|
1688
|
-
|
|
1687
|
+
o("update:modelValue", ((p = u.target) == null ? void 0 : p.value) ?? ""), o("input", u);
|
|
1689
1688
|
}
|
|
1690
1689
|
return t({
|
|
1691
1690
|
el: d
|
|
1692
|
-
}), (u, p) => (g(),
|
|
1691
|
+
}), (u, p) => (g(), y("input", {
|
|
1693
1692
|
ref_key: "input",
|
|
1694
1693
|
ref: d,
|
|
1695
1694
|
value: u.modelValue,
|
|
1696
|
-
class: w(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [
|
|
1697
|
-
style:
|
|
1695
|
+
class: w(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [l(s), l(i), l(c).class, l(a).base]]),
|
|
1696
|
+
style: T([l(c).style]),
|
|
1698
1697
|
placeholder: u.placeholder,
|
|
1699
1698
|
type: n.password ? "password" : "text",
|
|
1700
1699
|
onChange: p[0] || (p[0] = (b) => u.$emit("change", b)),
|
|
@@ -1702,15 +1701,15 @@ const cn = /* @__PURE__ */ z({
|
|
|
1702
1701
|
onClick: p[1] || (p[1] = (b) => u.$emit("click", b)),
|
|
1703
1702
|
onPointerdown: p[2] || (p[2] = (b) => u.$emit("pointerdown", b)),
|
|
1704
1703
|
onPointerup: p[3] || (p[3] = (b) => u.$emit("pointerup", b))
|
|
1705
|
-
}, null, 46,
|
|
1704
|
+
}, null, 46, Cr));
|
|
1706
1705
|
}
|
|
1707
1706
|
}), Tr = {
|
|
1708
1707
|
key: 0,
|
|
1709
|
-
class: "i-tabler-loader-2 h-
|
|
1708
|
+
class: "i-tabler-loader-2 h-container w-container shrink-0 animate-spin"
|
|
1710
1709
|
}, zr = { key: 1 }, Rr = { class: "grow-1" }, Er = {
|
|
1711
1710
|
key: 1,
|
|
1712
|
-
class: "text-sm text-surface-
|
|
1713
|
-
},
|
|
1711
|
+
class: "text-sm text-surface-container"
|
|
1712
|
+
}, Pr = /* @__PURE__ */ M("i", { class: "i-tabler-x" }, null, -1), Nr = /* @__PURE__ */ $({
|
|
1714
1713
|
__name: "Notification",
|
|
1715
1714
|
props: {
|
|
1716
1715
|
title: {},
|
|
@@ -1726,86 +1725,88 @@ const cn = /* @__PURE__ */ z({
|
|
|
1726
1725
|
const t = e, r = m(() => {
|
|
1727
1726
|
switch (t.color) {
|
|
1728
1727
|
case "secondary":
|
|
1729
|
-
return "bg-secondary-
|
|
1728
|
+
return "bg-secondary-container";
|
|
1730
1729
|
case "tertiary":
|
|
1731
|
-
return "bg-tertiary-
|
|
1730
|
+
return "bg-tertiary-container";
|
|
1732
1731
|
case "error":
|
|
1733
|
-
return "bg-error-
|
|
1732
|
+
return "bg-error-container";
|
|
1734
1733
|
default:
|
|
1735
1734
|
return "bg-primary-container";
|
|
1736
1735
|
}
|
|
1737
1736
|
}), n = m(() => {
|
|
1738
1737
|
switch (t.color) {
|
|
1739
1738
|
case "secondary":
|
|
1740
|
-
return "text-secondary-
|
|
1739
|
+
return "text-secondary-container";
|
|
1741
1740
|
case "tertiary":
|
|
1742
|
-
return "text-tertiary-
|
|
1741
|
+
return "text-tertiary-container";
|
|
1743
1742
|
case "error":
|
|
1744
|
-
return "text-error-
|
|
1743
|
+
return "text-error-container";
|
|
1745
1744
|
default:
|
|
1746
|
-
return "text-primary-
|
|
1745
|
+
return "text-primary-container";
|
|
1747
1746
|
}
|
|
1748
1747
|
});
|
|
1749
|
-
return (
|
|
1750
|
-
const
|
|
1751
|
-
return g(),
|
|
1752
|
-
class: w(["relative max-w-100 min-h-16 min-w-80 w-full flex items-center gap-2 container-
|
|
1753
|
-
{ "border-0": !
|
|
1748
|
+
return (o, a) => {
|
|
1749
|
+
const s = St;
|
|
1750
|
+
return g(), y("div", {
|
|
1751
|
+
class: w(["relative max-w-100 min-h-16 min-w-80 w-full flex items-center gap-2 container-low rounded p-3", [
|
|
1752
|
+
{ "border-0": !o.withBorder }
|
|
1754
1753
|
]])
|
|
1755
1754
|
}, [
|
|
1756
|
-
|
|
1755
|
+
o.icon ? (g(), y("div", {
|
|
1757
1756
|
key: 0,
|
|
1758
|
-
class: w(["leading-0",
|
|
1757
|
+
class: w(["leading-0", l(n)])
|
|
1759
1758
|
}, [
|
|
1760
|
-
|
|
1759
|
+
o.loading ? (g(), y("i", Tr)) : (g(), y("i", {
|
|
1761
1760
|
key: 1,
|
|
1762
|
-
class: w(["h-
|
|
1761
|
+
class: w(["h-container w-container shrink-0", o.icon])
|
|
1763
1762
|
}, null, 2))
|
|
1764
|
-
], 2)) : (g(),
|
|
1765
|
-
|
|
1763
|
+
], 2)) : (g(), y("div", zr, [
|
|
1764
|
+
M("div", {
|
|
1766
1765
|
class: w(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
|
|
1767
|
-
"animate-pulse":
|
|
1768
|
-
},
|
|
1766
|
+
"animate-pulse": o.loading
|
|
1767
|
+
}, l(r)]])
|
|
1769
1768
|
}, null, 2)
|
|
1770
1769
|
])),
|
|
1771
|
-
|
|
1772
|
-
|
|
1770
|
+
M("div", Rr, [
|
|
1771
|
+
o.title ? (g(), y("div", {
|
|
1773
1772
|
key: 0,
|
|
1774
|
-
class: w([
|
|
1775
|
-
},
|
|
1776
|
-
|
|
1773
|
+
class: w([l(n), "text-base"])
|
|
1774
|
+
}, re(o.title), 3)) : z("", !0),
|
|
1775
|
+
o.message ? (g(), y("div", Er, re(o.message), 1)) : z("", !0)
|
|
1777
1776
|
]),
|
|
1778
|
-
|
|
1777
|
+
o.closeable ? (g(), D(s, {
|
|
1779
1778
|
key: 2,
|
|
1780
1779
|
icon: "",
|
|
1781
1780
|
variant: "transparent",
|
|
1782
1781
|
class: "text-surface-on hover:text-surface-on",
|
|
1783
|
-
onClick:
|
|
1782
|
+
onClick: a[0] || (a[0] = (i) => o.$emit("close"))
|
|
1784
1783
|
}, {
|
|
1785
|
-
default:
|
|
1786
|
-
|
|
1784
|
+
default: J(() => [
|
|
1785
|
+
Pr
|
|
1787
1786
|
]),
|
|
1788
1787
|
_: 1
|
|
1789
|
-
})) :
|
|
1788
|
+
})) : z("", !0)
|
|
1790
1789
|
], 2);
|
|
1791
1790
|
};
|
|
1792
1791
|
}
|
|
1793
|
-
}), Hr = /* @__PURE__ */
|
|
1792
|
+
}), Hr = ["data-scheme", "data-theme"], Ir = /* @__PURE__ */ $({
|
|
1794
1793
|
__name: "ThemeProvider",
|
|
1795
1794
|
props: {
|
|
1796
1795
|
theme: {}
|
|
1797
1796
|
},
|
|
1798
1797
|
setup(e) {
|
|
1799
|
-
const r =
|
|
1800
|
-
return (n,
|
|
1801
|
-
style:
|
|
1798
|
+
const r = st(e.theme, !1);
|
|
1799
|
+
return (n, o) => (g(), y("div", {
|
|
1800
|
+
style: T([l(r)]),
|
|
1801
|
+
"data-scheme": n.theme.scheme,
|
|
1802
|
+
"data-theme": n.theme.name
|
|
1802
1803
|
}, [
|
|
1803
|
-
|
|
1804
|
-
],
|
|
1804
|
+
H(n.$slots, "default")
|
|
1805
|
+
], 12, Hr));
|
|
1805
1806
|
}
|
|
1806
|
-
}),
|
|
1807
|
+
}), un = /* @__PURE__ */ $({
|
|
1807
1808
|
__name: "Modal",
|
|
1808
|
-
props: /* @__PURE__ */
|
|
1809
|
+
props: /* @__PURE__ */ ee({
|
|
1809
1810
|
persistent: { type: Boolean, default: !1 },
|
|
1810
1811
|
blur: { type: [String, Boolean] }
|
|
1811
1812
|
}, {
|
|
@@ -1814,11 +1815,11 @@ const cn = /* @__PURE__ */ z({
|
|
|
1814
1815
|
}),
|
|
1815
1816
|
emits: ["update:modelValue"],
|
|
1816
1817
|
setup(e) {
|
|
1817
|
-
const t = e, r = me(e, "modelValue"), n =
|
|
1818
|
-
function
|
|
1819
|
-
t.persistent ||
|
|
1818
|
+
const t = e, r = me(e, "modelValue"), n = v(null);
|
|
1819
|
+
function o(i) {
|
|
1820
|
+
t.persistent || i.target === n.value && (r.value = !1);
|
|
1820
1821
|
}
|
|
1821
|
-
const
|
|
1822
|
+
const a = m(() => {
|
|
1822
1823
|
switch (t.blur) {
|
|
1823
1824
|
case "sm":
|
|
1824
1825
|
return "backdrop-blur-sm";
|
|
@@ -1836,22 +1837,22 @@ const cn = /* @__PURE__ */ z({
|
|
|
1836
1837
|
document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
|
|
1837
1838
|
}, 300);
|
|
1838
1839
|
});
|
|
1839
|
-
const
|
|
1840
|
-
return (
|
|
1841
|
-
const d =
|
|
1842
|
-
return g(),
|
|
1843
|
-
We(d, { theme:
|
|
1844
|
-
default:
|
|
1845
|
-
|
|
1840
|
+
const s = vr();
|
|
1841
|
+
return (i, c) => {
|
|
1842
|
+
const d = Ir;
|
|
1843
|
+
return g(), D(wt, { to: "body" }, [
|
|
1844
|
+
We(d, { theme: l(s) }, {
|
|
1845
|
+
default: J(() => [
|
|
1846
|
+
M("div", {
|
|
1846
1847
|
ref_key: "wrapperRef",
|
|
1847
1848
|
ref: n,
|
|
1848
|
-
class: w(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full flex items-end justify-center bg-surface-lowest/50 transition-all duration-300 md:items-center", [
|
|
1849
|
+
class: w(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full flex items-end justify-center bg-surface-lowest/50 transition-all duration-300 md:items-center", [a.value, {
|
|
1849
1850
|
"op0 pointer-events-none": !r.value,
|
|
1850
1851
|
op100: r.value
|
|
1851
1852
|
}]]),
|
|
1852
|
-
onClick:
|
|
1853
|
+
onClick: o
|
|
1853
1854
|
}, [
|
|
1854
|
-
We(
|
|
1855
|
+
We(_t, {
|
|
1855
1856
|
"enter-from-class": "translate-y-1/2",
|
|
1856
1857
|
"enter-to-class": "translate-y-0",
|
|
1857
1858
|
"leave-from-class": "translate-y-0",
|
|
@@ -1859,8 +1860,8 @@ const cn = /* @__PURE__ */ z({
|
|
|
1859
1860
|
"enter-active-class": "transition ease-out duration-300",
|
|
1860
1861
|
"leave-active-class": "transition ease-in duration-200"
|
|
1861
1862
|
}, {
|
|
1862
|
-
default:
|
|
1863
|
-
r.value ?
|
|
1863
|
+
default: J(() => [
|
|
1864
|
+
r.value ? H(i.$slots, "default", { key: 0 }) : z("", !0)
|
|
1864
1865
|
]),
|
|
1865
1866
|
_: 3
|
|
1866
1867
|
})
|
|
@@ -1871,110 +1872,110 @@ const cn = /* @__PURE__ */ z({
|
|
|
1871
1872
|
]);
|
|
1872
1873
|
};
|
|
1873
1874
|
}
|
|
1874
|
-
}),
|
|
1875
|
-
let
|
|
1876
|
-
const L = "__aa_tgt",
|
|
1877
|
-
const t =
|
|
1878
|
-
t && t.forEach((r) =>
|
|
1879
|
-
},
|
|
1875
|
+
}), it = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakSet();
|
|
1876
|
+
let U, Ie = 0, Oe = 0;
|
|
1877
|
+
const L = "__aa_tgt", he = "__aa_del", we = "__aa_new", Br = (e) => {
|
|
1878
|
+
const t = Dr(e);
|
|
1879
|
+
t && t.forEach((r) => jr(r));
|
|
1880
|
+
}, Vr = (e) => {
|
|
1880
1881
|
e.forEach((t) => {
|
|
1881
|
-
t.target ===
|
|
1882
|
+
t.target === U && Wr(), P.has(t.target) && Q(t.target);
|
|
1882
1883
|
});
|
|
1883
1884
|
};
|
|
1884
|
-
function
|
|
1885
|
-
const t =
|
|
1885
|
+
function Fr(e) {
|
|
1886
|
+
const t = Re.get(e);
|
|
1886
1887
|
t == null || t.disconnect();
|
|
1887
|
-
let r =
|
|
1888
|
-
const
|
|
1889
|
-
r || (r =
|
|
1890
|
-
const { offsetWidth:
|
|
1891
|
-
r.top -
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
r.left -
|
|
1888
|
+
let r = P.get(e), n = 0;
|
|
1889
|
+
const o = 5;
|
|
1890
|
+
r || (r = ae(e), P.set(e, r));
|
|
1891
|
+
const { offsetWidth: a, offsetHeight: s } = U, c = [
|
|
1892
|
+
r.top - o,
|
|
1893
|
+
a - (r.left + o + r.width),
|
|
1894
|
+
s - (r.top + o + r.height),
|
|
1895
|
+
r.left - o
|
|
1895
1896
|
].map((f) => `${-1 * Math.floor(f)}px`).join(" "), d = new IntersectionObserver(() => {
|
|
1896
1897
|
++n > 1 && Q(e);
|
|
1897
1898
|
}, {
|
|
1898
|
-
root:
|
|
1899
|
+
root: U,
|
|
1899
1900
|
threshold: 1,
|
|
1900
|
-
rootMargin:
|
|
1901
|
+
rootMargin: c
|
|
1901
1902
|
});
|
|
1902
|
-
d.observe(e),
|
|
1903
|
+
d.observe(e), Re.set(e, d);
|
|
1903
1904
|
}
|
|
1904
1905
|
function Q(e) {
|
|
1905
|
-
clearTimeout(
|
|
1906
|
-
const t = Me(e), r =
|
|
1907
|
-
|
|
1906
|
+
clearTimeout(ye.get(e));
|
|
1907
|
+
const t = Me(e), r = pe(t) ? 500 : t.duration;
|
|
1908
|
+
ye.set(e, setTimeout(async () => {
|
|
1908
1909
|
const n = K.get(e);
|
|
1909
1910
|
try {
|
|
1910
|
-
await (n == null ? void 0 : n.finished),
|
|
1911
|
+
await (n == null ? void 0 : n.finished), P.set(e, ae(e)), Fr(e);
|
|
1911
1912
|
} catch {
|
|
1912
1913
|
}
|
|
1913
1914
|
}, r));
|
|
1914
1915
|
}
|
|
1915
|
-
function
|
|
1916
|
-
clearTimeout(
|
|
1917
|
-
|
|
1916
|
+
function Wr() {
|
|
1917
|
+
clearTimeout(ye.get(U)), ye.set(U, setTimeout(() => {
|
|
1918
|
+
it.forEach((e) => dt(e, (t) => lt(() => Q(t))));
|
|
1918
1919
|
}, 100));
|
|
1919
1920
|
}
|
|
1920
|
-
function
|
|
1921
|
+
function Lr(e) {
|
|
1921
1922
|
setTimeout(() => {
|
|
1922
|
-
|
|
1923
|
+
Or.set(e, setInterval(() => lt(Q.bind(null, e)), 2e3));
|
|
1923
1924
|
}, Math.round(2e3 * Math.random()));
|
|
1924
1925
|
}
|
|
1925
|
-
function
|
|
1926
|
+
function lt(e) {
|
|
1926
1927
|
typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
|
|
1927
1928
|
}
|
|
1928
|
-
let
|
|
1929
|
-
typeof window < "u" && (
|
|
1929
|
+
let Ee, Z;
|
|
1930
|
+
typeof window < "u" && (U = document.documentElement, Ee = new MutationObserver(Br), Z = new ResizeObserver(Vr), window.addEventListener("scroll", () => {
|
|
1930
1931
|
Oe = window.scrollY, Ie = window.scrollX;
|
|
1931
|
-
}), Z.observe(
|
|
1932
|
-
function
|
|
1933
|
-
return e.reduce((n,
|
|
1932
|
+
}), Z.observe(U));
|
|
1933
|
+
function Dr(e) {
|
|
1934
|
+
return e.reduce((n, o) => [
|
|
1934
1935
|
...n,
|
|
1935
|
-
...Array.from(
|
|
1936
|
-
...Array.from(
|
|
1937
|
-
], []).every((n) => n.nodeName === "#comment") ? !1 : e.reduce((n,
|
|
1936
|
+
...Array.from(o.addedNodes),
|
|
1937
|
+
...Array.from(o.removedNodes)
|
|
1938
|
+
], []).every((n) => n.nodeName === "#comment") ? !1 : e.reduce((n, o) => {
|
|
1938
1939
|
if (n === !1)
|
|
1939
1940
|
return !1;
|
|
1940
|
-
if (
|
|
1941
|
-
if (
|
|
1942
|
-
n.add(
|
|
1943
|
-
for (let
|
|
1944
|
-
const
|
|
1945
|
-
if (
|
|
1946
|
-
if (
|
|
1941
|
+
if (o.target instanceof Element) {
|
|
1942
|
+
if (Ce(o.target), !n.has(o.target)) {
|
|
1943
|
+
n.add(o.target);
|
|
1944
|
+
for (let a = 0; a < o.target.children.length; a++) {
|
|
1945
|
+
const s = o.target.children.item(a);
|
|
1946
|
+
if (s) {
|
|
1947
|
+
if (he in s)
|
|
1947
1948
|
return !1;
|
|
1948
|
-
|
|
1949
|
+
Ce(o.target, s), n.add(s);
|
|
1949
1950
|
}
|
|
1950
1951
|
}
|
|
1951
1952
|
}
|
|
1952
|
-
if (
|
|
1953
|
-
for (let
|
|
1954
|
-
const
|
|
1955
|
-
if (
|
|
1953
|
+
if (o.removedNodes.length)
|
|
1954
|
+
for (let a = 0; a < o.removedNodes.length; a++) {
|
|
1955
|
+
const s = o.removedNodes[a];
|
|
1956
|
+
if (he in s)
|
|
1956
1957
|
return !1;
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1958
|
+
s instanceof Element && (n.add(s), Ce(o.target, s), ne.set(s, [
|
|
1959
|
+
o.previousSibling,
|
|
1960
|
+
o.nextSibling
|
|
1960
1961
|
]));
|
|
1961
1962
|
}
|
|
1962
1963
|
}
|
|
1963
1964
|
return n;
|
|
1964
1965
|
}, /* @__PURE__ */ new Set());
|
|
1965
1966
|
}
|
|
1966
|
-
function
|
|
1967
|
+
function Ce(e, t) {
|
|
1967
1968
|
!t && !(L in e) ? Object.defineProperty(e, L, { value: e }) : t && !(L in t) && Object.defineProperty(t, L, { value: e });
|
|
1968
1969
|
}
|
|
1969
|
-
function
|
|
1970
|
+
function jr(e) {
|
|
1970
1971
|
var t;
|
|
1971
|
-
const r = e.isConnected, n =
|
|
1972
|
-
r &&
|
|
1972
|
+
const r = e.isConnected, n = P.has(e);
|
|
1973
|
+
r && ne.has(e) && ne.delete(e), K.has(e) && ((t = K.get(e)) === null || t === void 0 || t.cancel()), we in e ? Ye(e) : n && r ? Ur(e) : n && !r ? Xr(e) : Ye(e);
|
|
1973
1974
|
}
|
|
1974
1975
|
function F(e) {
|
|
1975
1976
|
return Number(e.replace(/[^0-9.\-]/g, ""));
|
|
1976
1977
|
}
|
|
1977
|
-
function
|
|
1978
|
+
function Gr(e) {
|
|
1978
1979
|
let t = e.parentElement;
|
|
1979
1980
|
for (; t; ) {
|
|
1980
1981
|
if (t.scrollLeft || t.scrollTop)
|
|
@@ -1983,8 +1984,8 @@ function jr(e) {
|
|
|
1983
1984
|
}
|
|
1984
1985
|
return { x: 0, y: 0 };
|
|
1985
1986
|
}
|
|
1986
|
-
function
|
|
1987
|
-
const t = e.getBoundingClientRect(), { x: r, y: n } =
|
|
1987
|
+
function ae(e) {
|
|
1988
|
+
const t = e.getBoundingClientRect(), { x: r, y: n } = Gr(e);
|
|
1988
1989
|
return {
|
|
1989
1990
|
top: t.top + n,
|
|
1990
1991
|
left: t.left + r,
|
|
@@ -1992,67 +1993,67 @@ function oe(e) {
|
|
|
1992
1993
|
height: t.height
|
|
1993
1994
|
};
|
|
1994
1995
|
}
|
|
1995
|
-
function
|
|
1996
|
-
let n = t.width,
|
|
1997
|
-
const
|
|
1998
|
-
if (
|
|
1999
|
-
const d = F(
|
|
2000
|
-
n -= f,
|
|
1996
|
+
function ct(e, t, r) {
|
|
1997
|
+
let n = t.width, o = t.height, a = r.width, s = r.height;
|
|
1998
|
+
const i = getComputedStyle(e);
|
|
1999
|
+
if (i.getPropertyValue("box-sizing") === "content-box") {
|
|
2000
|
+
const d = F(i.paddingTop) + F(i.paddingBottom) + F(i.borderTopWidth) + F(i.borderBottomWidth), f = F(i.paddingLeft) + F(i.paddingRight) + F(i.borderRightWidth) + F(i.borderLeftWidth);
|
|
2001
|
+
n -= f, a -= f, o -= d, s -= d;
|
|
2001
2002
|
}
|
|
2002
|
-
return [n,
|
|
2003
|
+
return [n, a, o, s].map(Math.round);
|
|
2003
2004
|
}
|
|
2004
2005
|
function Me(e) {
|
|
2005
|
-
return L in e &&
|
|
2006
|
+
return L in e && oe.has(e[L]) ? oe.get(e[L]) : { duration: 250, easing: "ease-in-out" };
|
|
2006
2007
|
}
|
|
2007
|
-
function
|
|
2008
|
+
function ut(e) {
|
|
2008
2009
|
if (L in e)
|
|
2009
2010
|
return e[L];
|
|
2010
2011
|
}
|
|
2011
2012
|
function Be(e) {
|
|
2012
|
-
const t =
|
|
2013
|
-
return t ?
|
|
2013
|
+
const t = ut(e);
|
|
2014
|
+
return t ? de.has(t) : !1;
|
|
2014
2015
|
}
|
|
2015
|
-
function
|
|
2016
|
-
t.forEach((r) => r(e,
|
|
2016
|
+
function dt(e, ...t) {
|
|
2017
|
+
t.forEach((r) => r(e, oe.has(e)));
|
|
2017
2018
|
for (let r = 0; r < e.children.length; r++) {
|
|
2018
2019
|
const n = e.children.item(r);
|
|
2019
|
-
n && t.forEach((
|
|
2020
|
+
n && t.forEach((o) => o(n, oe.has(n)));
|
|
2020
2021
|
}
|
|
2021
2022
|
}
|
|
2022
2023
|
function Ve(e) {
|
|
2023
2024
|
return Array.isArray(e) ? e : [e];
|
|
2024
2025
|
}
|
|
2025
|
-
function
|
|
2026
|
+
function pe(e) {
|
|
2026
2027
|
return typeof e == "function";
|
|
2027
2028
|
}
|
|
2028
|
-
function
|
|
2029
|
-
const t =
|
|
2029
|
+
function Ur(e) {
|
|
2030
|
+
const t = P.get(e), r = ae(e);
|
|
2030
2031
|
if (!Be(e))
|
|
2031
|
-
return
|
|
2032
|
+
return P.set(e, r);
|
|
2032
2033
|
let n;
|
|
2033
2034
|
if (!t)
|
|
2034
2035
|
return;
|
|
2035
|
-
const
|
|
2036
|
-
if (typeof
|
|
2037
|
-
const
|
|
2038
|
-
transform: `translate(${
|
|
2036
|
+
const o = Me(e);
|
|
2037
|
+
if (typeof o != "function") {
|
|
2038
|
+
const a = t.left - r.left, s = t.top - r.top, [i, c, d, f] = ct(e, t, r), u = {
|
|
2039
|
+
transform: `translate(${a}px, ${s}px)`
|
|
2039
2040
|
}, p = {
|
|
2040
2041
|
transform: "translate(0, 0)"
|
|
2041
2042
|
};
|
|
2042
|
-
|
|
2043
|
-
duration:
|
|
2044
|
-
easing:
|
|
2043
|
+
i !== c && (u.width = `${i}px`, p.width = `${c}px`), d !== f && (u.height = `${d}px`, p.height = `${f}px`), n = e.animate([u, p], {
|
|
2044
|
+
duration: o.duration,
|
|
2045
|
+
easing: o.easing
|
|
2045
2046
|
});
|
|
2046
2047
|
} else {
|
|
2047
|
-
const [
|
|
2048
|
-
n = new Animation(
|
|
2048
|
+
const [a] = Ve(o(e, "remain", t, r));
|
|
2049
|
+
n = new Animation(a), n.play();
|
|
2049
2050
|
}
|
|
2050
|
-
K.set(e, n),
|
|
2051
|
+
K.set(e, n), P.set(e, r), n.addEventListener("finish", Q.bind(null, e));
|
|
2051
2052
|
}
|
|
2052
2053
|
function Ye(e) {
|
|
2053
|
-
|
|
2054
|
-
const t =
|
|
2055
|
-
|
|
2054
|
+
we in e && delete e[we];
|
|
2055
|
+
const t = ae(e);
|
|
2056
|
+
P.set(e, t);
|
|
2056
2057
|
const r = Me(e);
|
|
2057
2058
|
if (!Be(e))
|
|
2058
2059
|
return;
|
|
@@ -2067,42 +2068,42 @@ function Ye(e) {
|
|
|
2067
2068
|
easing: "ease-in"
|
|
2068
2069
|
});
|
|
2069
2070
|
else {
|
|
2070
|
-
const [
|
|
2071
|
-
n = new Animation(
|
|
2071
|
+
const [o] = Ve(r(e, "add", t));
|
|
2072
|
+
n = new Animation(o), n.play();
|
|
2072
2073
|
}
|
|
2073
2074
|
K.set(e, n), n.addEventListener("finish", Q.bind(null, e));
|
|
2074
2075
|
}
|
|
2075
2076
|
function Ke(e, t) {
|
|
2076
2077
|
var r;
|
|
2077
|
-
e.remove(),
|
|
2078
|
-
if (
|
|
2078
|
+
e.remove(), P.delete(e), ne.delete(e), K.delete(e), (r = Re.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
|
|
2079
|
+
if (he in e && delete e[he], Object.defineProperty(e, we, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
|
|
2079
2080
|
for (const n in t)
|
|
2080
2081
|
e.style[n] = "";
|
|
2081
2082
|
}, 0);
|
|
2082
2083
|
}
|
|
2083
|
-
function
|
|
2084
|
+
function Xr(e) {
|
|
2084
2085
|
var t;
|
|
2085
|
-
if (!
|
|
2086
|
+
if (!ne.has(e) || !P.has(e))
|
|
2086
2087
|
return;
|
|
2087
|
-
const [r, n] =
|
|
2088
|
-
Object.defineProperty(e,
|
|
2089
|
-
const
|
|
2090
|
-
if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t =
|
|
2088
|
+
const [r, n] = ne.get(e);
|
|
2089
|
+
Object.defineProperty(e, he, { value: !0, configurable: !0 });
|
|
2090
|
+
const o = window.scrollX, a = window.scrollY;
|
|
2091
|
+
if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = ut(e)) === null || t === void 0 || t.appendChild(e), !Be(e))
|
|
2091
2092
|
return Ke(e);
|
|
2092
|
-
const [
|
|
2093
|
-
(
|
|
2093
|
+
const [s, i, c, d] = Yr(e), f = Me(e), u = P.get(e);
|
|
2094
|
+
(o !== Ie || a !== Oe) && qr(e, o, a, f);
|
|
2094
2095
|
let p, b = {
|
|
2095
2096
|
position: "absolute",
|
|
2096
|
-
top: `${
|
|
2097
|
-
left: `${
|
|
2098
|
-
width: `${
|
|
2097
|
+
top: `${s}px`,
|
|
2098
|
+
left: `${i}px`,
|
|
2099
|
+
width: `${c}px`,
|
|
2099
2100
|
height: `${d}px`,
|
|
2100
2101
|
margin: "0",
|
|
2101
2102
|
pointerEvents: "none",
|
|
2102
2103
|
transformOrigin: "center",
|
|
2103
2104
|
zIndex: "100"
|
|
2104
2105
|
};
|
|
2105
|
-
if (!
|
|
2106
|
+
if (!pe(f))
|
|
2106
2107
|
Object.assign(e.style, b), p = e.animate([
|
|
2107
2108
|
{
|
|
2108
2109
|
transform: "scale(1)",
|
|
@@ -2114,82 +2115,82 @@ function Ur(e) {
|
|
|
2114
2115
|
}
|
|
2115
2116
|
], { duration: f.duration, easing: "ease-out" });
|
|
2116
2117
|
else {
|
|
2117
|
-
const [
|
|
2118
|
-
(S == null ? void 0 : S.styleReset) !== !1 && (b = (S == null ? void 0 : S.styleReset) || b, Object.assign(e.style, b)), p = new Animation(
|
|
2118
|
+
const [k, S] = Ve(f(e, "remove", u));
|
|
2119
|
+
(S == null ? void 0 : S.styleReset) !== !1 && (b = (S == null ? void 0 : S.styleReset) || b, Object.assign(e.style, b)), p = new Animation(k), p.play();
|
|
2119
2120
|
}
|
|
2120
2121
|
K.set(e, p), p.addEventListener("finish", Ke.bind(null, e, b));
|
|
2121
2122
|
}
|
|
2122
|
-
function
|
|
2123
|
-
const
|
|
2124
|
-
if (getComputedStyle(
|
|
2123
|
+
function qr(e, t, r, n) {
|
|
2124
|
+
const o = Ie - t, a = Oe - r, s = document.documentElement.style.scrollBehavior;
|
|
2125
|
+
if (getComputedStyle(U).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + o, window.scrollY + a), !e.parentElement)
|
|
2125
2126
|
return;
|
|
2126
|
-
const
|
|
2127
|
-
let d =
|
|
2127
|
+
const c = e.parentElement;
|
|
2128
|
+
let d = c.clientHeight, f = c.clientWidth;
|
|
2128
2129
|
const u = performance.now();
|
|
2129
2130
|
function p() {
|
|
2130
2131
|
requestAnimationFrame(() => {
|
|
2131
|
-
if (!
|
|
2132
|
-
const b = d -
|
|
2132
|
+
if (!pe(n)) {
|
|
2133
|
+
const b = d - c.clientHeight, k = f - c.clientWidth;
|
|
2133
2134
|
u + n.duration > performance.now() ? (window.scrollTo({
|
|
2134
|
-
left: window.scrollX -
|
|
2135
|
+
left: window.scrollX - k,
|
|
2135
2136
|
top: window.scrollY - b
|
|
2136
|
-
}), d =
|
|
2137
|
+
}), d = c.clientHeight, f = c.clientWidth, p()) : document.documentElement.style.scrollBehavior = s;
|
|
2137
2138
|
}
|
|
2138
2139
|
});
|
|
2139
2140
|
}
|
|
2140
2141
|
p();
|
|
2141
2142
|
}
|
|
2142
|
-
function
|
|
2143
|
-
const t =
|
|
2144
|
-
let
|
|
2145
|
-
for (;
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
const
|
|
2149
|
-
return [
|
|
2150
|
-
}
|
|
2151
|
-
function
|
|
2152
|
-
return
|
|
2143
|
+
function Yr(e) {
|
|
2144
|
+
const t = P.get(e), [r, , n] = ct(e, t, ae(e));
|
|
2145
|
+
let o = e.parentElement;
|
|
2146
|
+
for (; o && (getComputedStyle(o).position === "static" || o instanceof HTMLBodyElement); )
|
|
2147
|
+
o = o.parentElement;
|
|
2148
|
+
o || (o = document.body);
|
|
2149
|
+
const a = getComputedStyle(o), s = P.get(o) || ae(o), i = Math.round(t.top - s.top) - F(a.borderTopWidth), c = Math.round(t.left - s.left) - F(a.borderLeftWidth);
|
|
2150
|
+
return [i, c, r, n];
|
|
2151
|
+
}
|
|
2152
|
+
function Kr(e, t = {}) {
|
|
2153
|
+
return Ee && Z && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !pe(t) && !t.disrespectUserMotionPreference || (de.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), dt(e, Q, Lr, (o) => Z == null ? void 0 : Z.observe(o)), pe(t) ? oe.set(e, t) : oe.set(e, { duration: 250, easing: "ease-in-out", ...t }), Ee.observe(e, { childList: !0 }), it.add(e))), Object.freeze({
|
|
2153
2154
|
parent: e,
|
|
2154
2155
|
enable: () => {
|
|
2155
|
-
|
|
2156
|
+
de.add(e);
|
|
2156
2157
|
},
|
|
2157
2158
|
disable: () => {
|
|
2158
|
-
|
|
2159
|
+
de.delete(e);
|
|
2159
2160
|
},
|
|
2160
|
-
isEnabled: () =>
|
|
2161
|
+
isEnabled: () => de.has(e)
|
|
2161
2162
|
});
|
|
2162
2163
|
}
|
|
2163
|
-
const
|
|
2164
|
+
const Qr = {
|
|
2164
2165
|
mounted: (e, t) => {
|
|
2165
|
-
|
|
2166
|
+
Kr(e, t.value || {});
|
|
2166
2167
|
},
|
|
2167
2168
|
// ignore ssr see #96:
|
|
2168
2169
|
getSSRProps: () => ({})
|
|
2169
|
-
},
|
|
2170
|
+
}, Zr = { class: "fixed z-20 flex flex-col gap-2 p-2" }, dn = /* @__PURE__ */ $({
|
|
2170
2171
|
__name: "NotificationSystem",
|
|
2171
2172
|
setup(e) {
|
|
2172
2173
|
const t = pr();
|
|
2173
2174
|
return (r, n) => {
|
|
2174
|
-
const
|
|
2175
|
-
return Je((g(),
|
|
2176
|
-
(g(!0),
|
|
2177
|
-
key:
|
|
2175
|
+
const o = Nr;
|
|
2176
|
+
return Je((g(), y("div", Zr, [
|
|
2177
|
+
(g(!0), y(te, null, fe(l(t), (a) => (g(), D(o, {
|
|
2178
|
+
key: a.hash,
|
|
2178
2179
|
closeable: "",
|
|
2179
2180
|
"with-border": "",
|
|
2180
|
-
title:
|
|
2181
|
-
message:
|
|
2182
|
-
icon:
|
|
2183
|
-
loading:
|
|
2184
|
-
color:
|
|
2185
|
-
onClose: (
|
|
2181
|
+
title: a.title,
|
|
2182
|
+
message: a.message,
|
|
2183
|
+
icon: a.icon,
|
|
2184
|
+
loading: a.loading,
|
|
2185
|
+
color: a.color,
|
|
2186
|
+
onClose: (s) => l(t).splice(l(t).indexOf(a), 1)
|
|
2186
2187
|
}, null, 8, ["title", "message", "icon", "loading", "color", "onClose"]))), 128))
|
|
2187
2188
|
])), [
|
|
2188
|
-
[
|
|
2189
|
+
[l(Qr)]
|
|
2189
2190
|
]);
|
|
2190
2191
|
};
|
|
2191
2192
|
}
|
|
2192
|
-
}),
|
|
2193
|
+
}), Jr = { class: "flex gap-2" }, fn = /* @__PURE__ */ $({
|
|
2193
2194
|
__name: "PinInput",
|
|
2194
2195
|
props: {
|
|
2195
2196
|
modelValue: {},
|
|
@@ -2198,36 +2199,36 @@ const Kr = {
|
|
|
2198
2199
|
password: { type: Boolean }
|
|
2199
2200
|
},
|
|
2200
2201
|
setup(e) {
|
|
2201
|
-
const t = e, r =
|
|
2202
|
-
function n(
|
|
2203
|
-
|
|
2204
|
-
const
|
|
2205
|
-
|
|
2206
|
-
|
|
2202
|
+
const t = e, r = v([]);
|
|
2203
|
+
function n(a) {
|
|
2204
|
+
a.preventDefault(), a.stopPropagation();
|
|
2205
|
+
const s = r.value.findIndex((c) => c.el === a.target), i = a.target.value ?? "";
|
|
2206
|
+
a.target.value = "", Array.from(i).forEach((c, d) => {
|
|
2207
|
+
s + d >= r.value.length || (r.value[s + d].el.value = c, s + d + 1 < r.value.length ? (r.value[s + d + 1].el.focus(), r.value[s + d + 1].el.select()) : r.value[s + d].el.blur());
|
|
2207
2208
|
});
|
|
2208
2209
|
}
|
|
2209
|
-
function a
|
|
2210
|
-
|
|
2211
|
-
const
|
|
2212
|
-
|
|
2213
|
-
const
|
|
2214
|
-
|
|
2210
|
+
function o(a) {
|
|
2211
|
+
a.preventDefault(), a.stopPropagation();
|
|
2212
|
+
const s = a.target.value !== "";
|
|
2213
|
+
a.target.value = "";
|
|
2214
|
+
const i = r.value.findIndex((c) => c.el === a.target);
|
|
2215
|
+
i !== 0 && (r.value[i - 1].el.focus(), r.value[i - 1].el.select(), s || (r.value[i - 1].el.value = ""));
|
|
2215
2216
|
}
|
|
2216
|
-
return (
|
|
2217
|
-
(g(!0),
|
|
2217
|
+
return (a, s) => (g(), y("div", Jr, [
|
|
2218
|
+
(g(!0), y(te, null, fe(t.length, (i) => (g(), D(l($r), {
|
|
2218
2219
|
ref_for: !0,
|
|
2219
2220
|
ref_key: "inputs",
|
|
2220
2221
|
ref: r,
|
|
2221
|
-
key:
|
|
2222
|
+
key: i,
|
|
2222
2223
|
class: "h-8 w-8 text-center",
|
|
2223
2224
|
password: t.password,
|
|
2224
|
-
onPointerup:
|
|
2225
|
+
onPointerup: s[0] || (s[0] = (c) => c.target.select()),
|
|
2225
2226
|
onInput: Ze(n, ["stop", "prevent"]),
|
|
2226
|
-
onKeydown:
|
|
2227
|
+
onKeydown: xt(o, ["backspace"])
|
|
2227
2228
|
}, null, 8, ["password"]))), 128))
|
|
2228
2229
|
]));
|
|
2229
2230
|
}
|
|
2230
|
-
}),
|
|
2231
|
+
}), hn = /* @__PURE__ */ $({
|
|
2231
2232
|
__name: "Progress",
|
|
2232
2233
|
props: {
|
|
2233
2234
|
value: { default: 0 },
|
|
@@ -2242,11 +2243,11 @@ const Kr = {
|
|
|
2242
2243
|
const t = e, r = m(() => {
|
|
2243
2244
|
switch (t.size) {
|
|
2244
2245
|
case "sm":
|
|
2245
|
-
return "h-0.
|
|
2246
|
+
return "h-0.25";
|
|
2246
2247
|
case "md":
|
|
2247
|
-
return "h-
|
|
2248
|
+
return "h-0.5";
|
|
2248
2249
|
case "lg":
|
|
2249
|
-
return "h-
|
|
2250
|
+
return "h-1";
|
|
2250
2251
|
}
|
|
2251
2252
|
}), n = m(() => {
|
|
2252
2253
|
switch (t.color) {
|
|
@@ -2259,24 +2260,24 @@ const Kr = {
|
|
|
2259
2260
|
case "error":
|
|
2260
2261
|
return "bg-error-7";
|
|
2261
2262
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
return (
|
|
2264
|
-
class: w(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [
|
|
2265
|
-
style:
|
|
2263
|
+
}), o = ge(t);
|
|
2264
|
+
return (a, s) => (g(), y("div", {
|
|
2265
|
+
class: w(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [l(r), l(o).class]]),
|
|
2266
|
+
style: T([l(o).style])
|
|
2266
2267
|
}, [
|
|
2267
|
-
|
|
2268
|
+
a.loading ? (g(), y("div", {
|
|
2268
2269
|
key: 1,
|
|
2269
|
-
class: w(["loading-progress h-full", [
|
|
2270
|
-
}, null, 2)) : (g(),
|
|
2270
|
+
class: w(["loading-progress h-full", [l(n)]])
|
|
2271
|
+
}, null, 2)) : (g(), y("div", {
|
|
2271
2272
|
key: 0,
|
|
2272
|
-
class: w(["h-full", [
|
|
2273
|
-
style:
|
|
2274
|
-
width: `${(
|
|
2273
|
+
class: w(["h-full", [l(n)]]),
|
|
2274
|
+
style: T([{
|
|
2275
|
+
width: `${(a.value - a.min) / (a.max - a.min) * 100}%`
|
|
2275
2276
|
}])
|
|
2276
2277
|
}, null, 6))
|
|
2277
2278
|
], 6));
|
|
2278
2279
|
}
|
|
2279
|
-
}),
|
|
2280
|
+
}), en = { class: "relative" }, pn = /* @__PURE__ */ $({
|
|
2280
2281
|
__name: "Indicator",
|
|
2281
2282
|
props: {
|
|
2282
2283
|
color: { default: "primary" },
|
|
@@ -2296,7 +2297,7 @@ const Kr = {
|
|
|
2296
2297
|
default:
|
|
2297
2298
|
return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
|
|
2298
2299
|
}
|
|
2299
|
-
}), n =
|
|
2300
|
+
}), n = kt(), o = m(() => {
|
|
2300
2301
|
if (!n.label)
|
|
2301
2302
|
return "";
|
|
2302
2303
|
switch (t.size) {
|
|
@@ -2307,7 +2308,7 @@ const Kr = {
|
|
|
2307
2308
|
case "lg":
|
|
2308
2309
|
return "text-lg children:px-2.5";
|
|
2309
2310
|
}
|
|
2310
|
-
}),
|
|
2311
|
+
}), a = m(() => {
|
|
2311
2312
|
switch (t.position) {
|
|
2312
2313
|
case "top-left":
|
|
2313
2314
|
return "top-0 left-0 -translate-x-1/2 -translate-y-1/2";
|
|
@@ -2318,7 +2319,7 @@ const Kr = {
|
|
|
2318
2319
|
case "bottom-right":
|
|
2319
2320
|
return "bottom-0 right-0 translate-x-1/2 translate-y-1/2";
|
|
2320
2321
|
}
|
|
2321
|
-
}),
|
|
2322
|
+
}), s = m(() => {
|
|
2322
2323
|
switch (t.color) {
|
|
2323
2324
|
case "primary":
|
|
2324
2325
|
return "bg-primary-container text-primary-on";
|
|
@@ -2330,38 +2331,38 @@ const Kr = {
|
|
|
2330
2331
|
return "bg-error-container text-error-on";
|
|
2331
2332
|
}
|
|
2332
2333
|
});
|
|
2333
|
-
return (
|
|
2334
|
-
|
|
2335
|
-
class: w([[
|
|
2334
|
+
return (i, c) => (g(), y("div", en, [
|
|
2335
|
+
M("div", {
|
|
2336
|
+
class: w([[l(a), l(o)], "absolute z-1"])
|
|
2336
2337
|
}, [
|
|
2337
|
-
t.ping ? (g(),
|
|
2338
|
+
t.ping ? (g(), y("div", {
|
|
2338
2339
|
key: 0,
|
|
2339
|
-
class: w(["absolute animate-ping rounded-full", [
|
|
2340
|
+
class: w(["absolute animate-ping rounded-full border-2 border-transparent box-content", [
|
|
2340
2341
|
{
|
|
2341
|
-
[
|
|
2342
|
+
[l(r)]: !i.$slots.label
|
|
2342
2343
|
},
|
|
2343
|
-
|
|
2344
|
+
l(s)
|
|
2344
2345
|
]])
|
|
2345
2346
|
}, [
|
|
2346
|
-
|
|
2347
|
-
], 2)) :
|
|
2348
|
-
|
|
2349
|
-
class: w(["top-0 rounded-full", [
|
|
2347
|
+
i.$slots.label ? H(i.$slots, "label", { key: 0 }) : z("", !0)
|
|
2348
|
+
], 2)) : z("", !0),
|
|
2349
|
+
M("div", {
|
|
2350
|
+
class: w(["top-0 rounded-full border-2 border-surface-low box-content", [
|
|
2350
2351
|
{
|
|
2351
|
-
[
|
|
2352
|
+
[l(r)]: !i.$slots.label
|
|
2352
2353
|
},
|
|
2353
|
-
|
|
2354
|
+
l(s)
|
|
2354
2355
|
]])
|
|
2355
2356
|
}, [
|
|
2356
|
-
|
|
2357
|
+
i.$slots.label ? H(i.$slots, "label", { key: 0 }) : z("", !0)
|
|
2357
2358
|
], 2)
|
|
2358
2359
|
], 2),
|
|
2359
|
-
|
|
2360
|
+
H(i.$slots, "default")
|
|
2360
2361
|
]));
|
|
2361
2362
|
}
|
|
2362
|
-
}),
|
|
2363
|
+
}), mn = /* @__PURE__ */ $({
|
|
2363
2364
|
__name: "Chip",
|
|
2364
|
-
props: /* @__PURE__ */
|
|
2365
|
+
props: /* @__PURE__ */ ee({
|
|
2365
2366
|
is: { default: "img" },
|
|
2366
2367
|
src: {},
|
|
2367
2368
|
size: { default: "md" },
|
|
@@ -2374,7 +2375,7 @@ const Kr = {
|
|
|
2374
2375
|
}),
|
|
2375
2376
|
emits: ["update:modelValue"],
|
|
2376
2377
|
setup(e) {
|
|
2377
|
-
const t = e, r = me(e, "modelValue"), n =
|
|
2378
|
+
const t = e, r = me(e, "modelValue"), n = ge(t), o = m(() => {
|
|
2378
2379
|
switch (t.size) {
|
|
2379
2380
|
case "sm":
|
|
2380
2381
|
return "px-3 text-sm h-6";
|
|
@@ -2383,18 +2384,18 @@ const Kr = {
|
|
|
2383
2384
|
case "lg":
|
|
2384
2385
|
return "px-8 h-10 text-lg";
|
|
2385
2386
|
}
|
|
2386
|
-
}),
|
|
2387
|
-
return (
|
|
2388
|
-
class: w(["inline-flex items-center gap-1", [
|
|
2389
|
-
style:
|
|
2390
|
-
onPointerup: d[0] || (d[0] = (f) =>
|
|
2387
|
+
}), a = m(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = m(() => r.value !== void 0), i = m(() => s.value ? "cursor-pointer" : "");
|
|
2388
|
+
return (c, d) => (g(), y("span", {
|
|
2389
|
+
class: w(["inline-flex items-center gap-1", [l(n).class, l(o), l(a), l(i)]]),
|
|
2390
|
+
style: T([l(n).style]),
|
|
2391
|
+
onPointerup: d[0] || (d[0] = (f) => l(s) && (r.value = !r.value))
|
|
2391
2392
|
}, [
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2393
|
+
c.$slots.leftSection ? H(c.$slots, "leftSection", { key: 0 }) : z("", !0),
|
|
2394
|
+
H(c.$slots, "default"),
|
|
2395
|
+
c.$slots.rightSection ? H(c.$slots, "rightSection", { key: 1 }) : z("", !0)
|
|
2395
2396
|
], 38));
|
|
2396
2397
|
}
|
|
2397
|
-
}),
|
|
2398
|
+
}), gn = /* @__PURE__ */ $({
|
|
2398
2399
|
__name: "Avatar",
|
|
2399
2400
|
props: {
|
|
2400
2401
|
is: { default: "img" },
|
|
@@ -2415,102 +2416,106 @@ const Kr = {
|
|
|
2415
2416
|
default:
|
|
2416
2417
|
return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `--size: ${t.size}rem;` : `--size: ${t.size};`;
|
|
2417
2418
|
}
|
|
2418
|
-
}), n =
|
|
2419
|
-
|
|
2420
|
-
|
|
2419
|
+
}), n = v(!1), o = v(null);
|
|
2420
|
+
function a() {
|
|
2421
|
+
n.value = !0;
|
|
2422
|
+
}
|
|
2423
|
+
return se(() => {
|
|
2424
|
+
var s;
|
|
2425
|
+
(s = o.value) != null && s.complete && a();
|
|
2426
|
+
}), (s, i) => (g(), y(te, null, [
|
|
2427
|
+
s.src ? (g(), D(_e(s.is), Pe({
|
|
2421
2428
|
key: 0,
|
|
2422
|
-
|
|
2429
|
+
ref_key: "img",
|
|
2430
|
+
ref: o,
|
|
2431
|
+
style: [s.style, l(r)],
|
|
2423
2432
|
placeholder: "",
|
|
2424
|
-
src:
|
|
2425
|
-
class:
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
c(n) ? T("", !0) : (g(), v("img", {
|
|
2433
|
+
src: s.src,
|
|
2434
|
+
class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !l(n) }, t.class]]
|
|
2435
|
+
}, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : z("", !0),
|
|
2436
|
+
l(n) ? z("", !0) : (g(), y("div", {
|
|
2429
2437
|
key: 1,
|
|
2430
|
-
class: "h-[var(--size)] w-[var(--size)] animate-pulse rounded-full bg-surface-
|
|
2431
|
-
style:
|
|
2438
|
+
class: "h-[var(--size)] w-[var(--size)] animate-pulse rounded-full bg-surface-high object-cover border-transparent",
|
|
2439
|
+
style: T([s.style, l(r)])
|
|
2432
2440
|
}, null, 4))
|
|
2433
2441
|
], 64));
|
|
2434
2442
|
}
|
|
2435
|
-
}),
|
|
2443
|
+
}), bn = /* @__PURE__ */ $({
|
|
2436
2444
|
__name: "ThemeSwitch",
|
|
2437
2445
|
setup(e) {
|
|
2438
|
-
const t =
|
|
2446
|
+
const t = v(void 0);
|
|
2439
2447
|
return X(() => {
|
|
2440
|
-
|
|
2441
|
-
}),
|
|
2442
|
-
if (
|
|
2443
|
-
const r = localStorage.getItem("
|
|
2448
|
+
be && (t.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
|
|
2449
|
+
}), se(() => {
|
|
2450
|
+
if (be) {
|
|
2451
|
+
const r = localStorage.getItem("scheme");
|
|
2444
2452
|
r === "dark" ? t.value = !0 : r === "light" ? t.value = !1 : t.value = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
2445
2453
|
}
|
|
2446
2454
|
}), (r, n) => {
|
|
2447
|
-
const
|
|
2448
|
-
return g(),
|
|
2449
|
-
modelValue:
|
|
2450
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2455
|
+
const o = Lt;
|
|
2456
|
+
return g(), D(o, {
|
|
2457
|
+
modelValue: l(t),
|
|
2458
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => Mt(t) ? t.value = a : null),
|
|
2451
2459
|
color: "secondary",
|
|
2452
2460
|
"on-icon": "i-tabler-moon",
|
|
2453
2461
|
"off-icon": "i-tabler-sun"
|
|
2454
2462
|
}, null, 8, ["modelValue"]);
|
|
2455
2463
|
};
|
|
2456
2464
|
}
|
|
2457
|
-
}),
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
}
|
|
2484
|
-
};
|
|
2485
|
-
}
|
|
2465
|
+
}), vn = /* @__PURE__ */ $({
|
|
2466
|
+
__name: "Paper",
|
|
2467
|
+
props: {
|
|
2468
|
+
size: { default: "md" },
|
|
2469
|
+
rounded: { default: "md" },
|
|
2470
|
+
withBorder: { type: Boolean, default: !1 },
|
|
2471
|
+
is: { default: "div" }
|
|
2472
|
+
},
|
|
2473
|
+
setup(e) {
|
|
2474
|
+
const r = ge(e);
|
|
2475
|
+
return (n, o) => (g(), D(_e(n.is), {
|
|
2476
|
+
class: w(["container-low rounded-lg p-4", [
|
|
2477
|
+
{
|
|
2478
|
+
"border-transparent": !n.withBorder
|
|
2479
|
+
},
|
|
2480
|
+
l(r).class
|
|
2481
|
+
]]),
|
|
2482
|
+
style: T([l(r).style])
|
|
2483
|
+
}, {
|
|
2484
|
+
default: J(() => [
|
|
2485
|
+
H(n.$slots, "default")
|
|
2486
|
+
]),
|
|
2487
|
+
_: 3
|
|
2488
|
+
}, 8, ["class", "style"]));
|
|
2489
|
+
}
|
|
2490
|
+
});
|
|
2486
2491
|
export {
|
|
2487
|
-
|
|
2492
|
+
gn as Avatar,
|
|
2488
2493
|
St as Btn,
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2494
|
+
mn as Chip,
|
|
2495
|
+
pn as Indicator,
|
|
2496
|
+
un as Modal,
|
|
2497
|
+
Nr as Notification,
|
|
2498
|
+
dn as NotificationSystem,
|
|
2499
|
+
on as Notifications,
|
|
2500
|
+
vn as Paper,
|
|
2501
|
+
fn as PinInput,
|
|
2502
|
+
hn as Progress,
|
|
2503
|
+
ln as RokuProvider,
|
|
2504
|
+
cn as Select,
|
|
2505
|
+
rn as Slider,
|
|
2500
2506
|
Lt as Switch,
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2507
|
+
$r as TextField,
|
|
2508
|
+
Ir as ThemeProvider,
|
|
2509
|
+
bn as ThemeSwitch,
|
|
2510
|
+
Te as darkTheme,
|
|
2511
|
+
an as generateColors,
|
|
2506
2512
|
gr as generateColorsMap,
|
|
2507
2513
|
hr as lightTheme,
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
He as themeColors,
|
|
2514
|
+
nn as notificationsSymbol,
|
|
2515
|
+
ot as themeColors,
|
|
2511
2516
|
vr as useCurrentTheme,
|
|
2512
|
-
|
|
2517
|
+
sn as useCurrentThemeScheme,
|
|
2513
2518
|
pr as useNotifications,
|
|
2514
2519
|
br as useRootTheme,
|
|
2515
|
-
|
|
2520
|
+
st as useThemeStyles
|
|
2516
2521
|
};
|