@dolanske/vui 1.15.3 → 1.15.4
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/vui.js
CHANGED
|
@@ -11307,23 +11307,50 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11307
11307
|
_: 3
|
|
11308
11308
|
}, 8, ["class"])) : u("", !0)]));
|
|
11309
11309
|
}
|
|
11310
|
-
}), [["__scopeId", "data-v-dc42db41"]]), uf = { class: "
|
|
11310
|
+
}), [["__scopeId", "data-v-dc42db41"]]), uf = { class: "overflow-track" }, df = {
|
|
11311
|
+
ref: "content",
|
|
11312
|
+
class: "overflow-content"
|
|
11313
|
+
}, ff = /* @__PURE__ */ v({
|
|
11314
|
+
__name: "Overflow",
|
|
11315
|
+
props: {
|
|
11316
|
+
horizontal: { type: Boolean },
|
|
11317
|
+
hideScrollbar: { type: Boolean },
|
|
11318
|
+
hideShadows: { type: Boolean },
|
|
11319
|
+
snap: { type: Boolean }
|
|
11320
|
+
},
|
|
11321
|
+
setup(e) {
|
|
11322
|
+
let t = J("content"), { x: n, y: r } = vn(t), i = c(() => e.horizontal && n.value > 0), a = c(() => !e.horizontal || !t.value ? !1 : n.value < t.value.scrollWidth - t.value.clientWidth - 1), o = c(() => !e.horizontal && r.value > 0), s = c(() => e.horizontal || !t.value ? !1 : r.value < t.value.scrollHeight - t.value.clientHeight - 1);
|
|
11323
|
+
return (t, n) => (R(), d("div", { class: M(["overflow", {
|
|
11324
|
+
"hide-scrollbar": e.hideScrollbar,
|
|
11325
|
+
"hide-shadows": e.hideShadows,
|
|
11326
|
+
"is-horizontal": e.horizontal,
|
|
11327
|
+
"is-vertical": !e.horizontal,
|
|
11328
|
+
"is-snap": e.snap
|
|
11329
|
+
}]) }, [f("div", uf, [
|
|
11330
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-left", { visible: i.value }]) }, null, 2),
|
|
11331
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-right", { visible: a.value }]) }, null, 2),
|
|
11332
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-top", { visible: o.value }]) }, null, 2),
|
|
11333
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-bottom", { visible: s.value }]) }, null, 2),
|
|
11334
|
+
f("div", df, [H(t.$slots, "default")], 512)
|
|
11335
|
+
])], 2));
|
|
11336
|
+
}
|
|
11337
|
+
}), pf = { class: "vui-commands-input" }, mf = ["placeholder"], hf = { class: "vui-commands-group-buttons" }, gf = ["onClick"], _f = {
|
|
11311
11338
|
key: 0,
|
|
11312
11339
|
class: "vui-commands-empty"
|
|
11313
|
-
},
|
|
11340
|
+
}, vf = {
|
|
11314
11341
|
key: 0,
|
|
11315
11342
|
class: "vui-commands-group-title"
|
|
11316
|
-
},
|
|
11343
|
+
}, yf = { class: "vui-commands-list" }, bf = ["data-index", "onClick"], xf = { class: "vui-commands-list-item" }, Sf = {
|
|
11317
11344
|
key: 0,
|
|
11318
11345
|
class: "vui-commands-list-item-icon"
|
|
11319
|
-
},
|
|
11346
|
+
}, Cf = { class: "vui-command-body" }, wf = {
|
|
11320
11347
|
key: 0,
|
|
11321
11348
|
class: "text-overflow-1"
|
|
11322
|
-
},
|
|
11349
|
+
}, Tf = "##ungrouped##", Ef = /* @__PURE__ */ v({
|
|
11323
11350
|
__name: "Commands",
|
|
11324
11351
|
props: /* @__PURE__ */ k({
|
|
11325
11352
|
open: { type: Boolean },
|
|
11326
|
-
placeholder: { default: "
|
|
11353
|
+
placeholder: { default: "Type a command.." },
|
|
11327
11354
|
commands: {},
|
|
11328
11355
|
loading: { type: Boolean },
|
|
11329
11356
|
compact: { type: Boolean }
|
|
@@ -11335,18 +11362,18 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11335
11362
|
}),
|
|
11336
11363
|
emits: /* @__PURE__ */ k(["close"], ["update:search", "update:group"]),
|
|
11337
11364
|
setup(e, { emit: t }) {
|
|
11338
|
-
let r = e, i = t, a = pe(e, "search"), o = pe(e, "group"), s = c(() => r.commands.filter((e) => o.value && o.value !== "All" ? (e.group ??
|
|
11365
|
+
let r = e, i = t, a = pe(e, "search"), o = pe(e, "group"), s = c(() => r.commands.filter((e) => o.value && o.value !== "All" ? (e.group ?? Tf) === o.value : !0).filter((e) => Hn([
|
|
11339
11366
|
e.title,
|
|
11340
11367
|
e.description,
|
|
11341
11368
|
...e.keywords ?? []
|
|
11342
11369
|
], a.value))), p = c(() => {
|
|
11343
11370
|
if (s.value.length === 0) return null;
|
|
11344
|
-
let e = Object.groupBy(s.value, (e) => e.group ??
|
|
11371
|
+
let e = Object.groupBy(s.value, (e) => e.group ?? Tf);
|
|
11345
11372
|
return Object.fromEntries(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)));
|
|
11346
11373
|
}), _ = c(() => {
|
|
11347
11374
|
let e = /* @__PURE__ */ new Set();
|
|
11348
|
-
for (let t of r.commands) e.add(t.group ??
|
|
11349
|
-
let t = [...e].toSorted((e, t) => e ===
|
|
11375
|
+
for (let t of r.commands) e.add(t.group ?? Tf);
|
|
11376
|
+
let t = [...e].toSorted((e, t) => e === Tf ? 1 : t === Tf ? -1 : e.localeCompare(t));
|
|
11350
11377
|
return t.unshift("All"), t;
|
|
11351
11378
|
}), v = c(() => {
|
|
11352
11379
|
if (!p.value) return [];
|
|
@@ -11398,38 +11425,34 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11398
11425
|
size: r.compact ? "s" : "m",
|
|
11399
11426
|
onClose: s[2] ||= (e) => i("close")
|
|
11400
11427
|
}, m({
|
|
11401
|
-
header: X(() => [f("div",
|
|
11402
|
-
|
|
11428
|
+
header: X(() => [f("div", pf, [Se(f("input", {
|
|
11429
|
+
ref: "searchRef",
|
|
11430
|
+
"onUpdate:modelValue": s[0] ||= (e) => a.value = e,
|
|
11431
|
+
type: "text",
|
|
11432
|
+
autofocus: "",
|
|
11433
|
+
placeholder: r.placeholder
|
|
11434
|
+
}, null, 8, mf), [[ve, a.value]]), g(sr, { gap: 2 }, {
|
|
11435
|
+
default: X(() => [e.loading ? (R(), l(gr, {
|
|
11403
11436
|
key: 0,
|
|
11404
11437
|
size: "s"
|
|
11405
|
-
})) : (R(), l(
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
}, null, 8, ff), [[ve, a.value]]),
|
|
11413
|
-
g(sr, { gap: 2 }, {
|
|
11414
|
-
default: X(() => [a.value ? (R(), l(_r, {
|
|
11415
|
-
key: 0,
|
|
11416
|
-
size: "s",
|
|
11417
|
-
square: "",
|
|
11418
|
-
onClick: w
|
|
11419
|
-
}, {
|
|
11420
|
-
default: X(() => [g(q(ft), { class: "text-color-light" })]),
|
|
11421
|
-
_: 1
|
|
11422
|
-
})) : u("", !0), q(zd).s ? (R(), l(_r, {
|
|
11423
|
-
key: 1,
|
|
11424
|
-
size: "s",
|
|
11425
|
-
onClick: s[1] ||= (e) => i("close")
|
|
11426
|
-
}, {
|
|
11427
|
-
default: X(() => [...s[3] ||= [h(" Close ", -1)]]),
|
|
11428
|
-
_: 1
|
|
11429
|
-
})) : u("", !0)]),
|
|
11438
|
+
})) : a.value ? (R(), l(_r, {
|
|
11439
|
+
key: 1,
|
|
11440
|
+
size: "s",
|
|
11441
|
+
square: "",
|
|
11442
|
+
onClick: w
|
|
11443
|
+
}, {
|
|
11444
|
+
default: X(() => [g(q(ft), { class: "text-color-light" })]),
|
|
11430
11445
|
_: 1
|
|
11431
|
-
})
|
|
11432
|
-
|
|
11446
|
+
})) : u("", !0), q(zd).s ? (R(), l(_r, {
|
|
11447
|
+
key: 2,
|
|
11448
|
+
size: "s",
|
|
11449
|
+
onClick: s[1] ||= (e) => i("close")
|
|
11450
|
+
}, {
|
|
11451
|
+
default: X(() => [...s[3] ||= [h(" Close ", -1)]]),
|
|
11452
|
+
_: 1
|
|
11453
|
+
})) : u("", !0)]),
|
|
11454
|
+
_: 1
|
|
11455
|
+
})]), f("div", hf, [g(Fd, {
|
|
11433
11456
|
gap: r.compact ? "xxs" : "xs",
|
|
11434
11457
|
"hide-scrollbar": "",
|
|
11435
11458
|
"hide-shadows": ""
|
|
@@ -11442,41 +11465,41 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11442
11465
|
variant: e === o.value ? "accent" : "neutral",
|
|
11443
11466
|
role: "button"
|
|
11444
11467
|
}, {
|
|
11445
|
-
default: X(() => [h(G(e ===
|
|
11468
|
+
default: X(() => [h(G(e === Tf ? "Other" : e), 1)]),
|
|
11446
11469
|
_: 2
|
|
11447
|
-
}, 1032, ["variant"])], 8,
|
|
11470
|
+
}, 1032, ["variant"])], 8, gf))), 128))]),
|
|
11448
11471
|
_: 1
|
|
11449
11472
|
}, 8, ["gap"])])]),
|
|
11450
|
-
default: X(() => [p.value ?
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
},
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11473
|
+
default: X(() => [p.value ? (R(), l(ff, { key: 1 }, {
|
|
11474
|
+
default: X(() => [H(t.$slots, "default", { commands: p.value }, () => [(R(!0), d(n, null, V(p.value, (e, r, i) => (R(), d("div", {
|
|
11475
|
+
key: r,
|
|
11476
|
+
class: "vui-commands-group",
|
|
11477
|
+
tabindex: "-1"
|
|
11478
|
+
}, [r !== Tf && o.value === "All" ? (R(), d("span", vf, G(r), 1)) : u("", !0), f("ul", yf, [(R(!0), d(n, null, V(e, (e, a) => (R(), d("li", {
|
|
11479
|
+
key: e.title,
|
|
11480
|
+
"data-index": v.value[i] + a,
|
|
11481
|
+
class: M({ "vui-commands-list-item-focused": x.value === v.value[i] + a }),
|
|
11482
|
+
onClick: (t) => S(e)
|
|
11483
|
+
}, [H(t.$slots, "command", {
|
|
11484
|
+
command: e,
|
|
11485
|
+
group: r
|
|
11486
|
+
}, () => [f("button", xf, [
|
|
11487
|
+
e.icon || t.$slots.icon ? (R(), d("div", Sf, [H(t.$slots, "icon", { command: e }, () => [(R(), l(U(e.icon)))])])) : u("", !0),
|
|
11488
|
+
f("div", Cf, [f("span", null, G(e.title), 1), e.description ? (R(), d("p", wf, G(e.description), 1)) : u("", !0)]),
|
|
11489
|
+
e.shortcut ? (R(), l(sr, {
|
|
11490
|
+
key: 1,
|
|
11491
|
+
gap: "xxs"
|
|
11492
|
+
}, {
|
|
11493
|
+
default: X(() => [(R(!0), d(n, null, V(e.shortcut.split("+"), (e) => (R(), l(sf, {
|
|
11494
|
+
key: e,
|
|
11495
|
+
class: "vui-commands-list-item-shortcut",
|
|
11496
|
+
keys: e
|
|
11497
|
+
}, null, 8, ["keys"]))), 128))]),
|
|
11498
|
+
_: 2
|
|
11499
|
+
}, 1024)) : u("", !0)
|
|
11500
|
+
])])], 10, bf))), 128))])]))), 128))])]),
|
|
11501
|
+
_: 3
|
|
11502
|
+
})) : (R(), d("div", _f, [...s[9] ||= [f("p", null, "No results found", -1)]]))]),
|
|
11480
11503
|
_: 2
|
|
11481
11504
|
}, [r.compact ? void 0 : {
|
|
11482
11505
|
name: "footer",
|
|
@@ -11515,10 +11538,10 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11515
11538
|
"size"
|
|
11516
11539
|
]));
|
|
11517
11540
|
}
|
|
11518
|
-
}),
|
|
11541
|
+
}), Df = {
|
|
11519
11542
|
ref: "contextEl",
|
|
11520
11543
|
class: "vui-context-menu"
|
|
11521
|
-
},
|
|
11544
|
+
}, Of = /* @__PURE__ */ v({
|
|
11522
11545
|
__name: "ContextMenu",
|
|
11523
11546
|
setup(e) {
|
|
11524
11547
|
let t = J("contextEl"), n = J("anchorEl"), r = J("popoutRef"), i = B(null);
|
|
@@ -11531,7 +11554,7 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11531
11554
|
});
|
|
11532
11555
|
}), Z(window, "keydown", (e) => {
|
|
11533
11556
|
e.key === "Escape" && Kd(r.value?.layerIndex() ?? -1) && (i.value = null);
|
|
11534
|
-
}), (e, t) => (R(), d("div",
|
|
11557
|
+
}), (e, t) => (R(), d("div", Df, [
|
|
11535
11558
|
f("div", {
|
|
11536
11559
|
ref: "anchorEl",
|
|
11537
11560
|
class: "vui-context-menu-anchor",
|
|
@@ -11556,7 +11579,7 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11556
11579
|
H(e.$slots, "default")
|
|
11557
11580
|
], 512));
|
|
11558
11581
|
}
|
|
11559
|
-
}),
|
|
11582
|
+
}), kf = { key: 1 }, Af = /* @__PURE__ */ v({
|
|
11560
11583
|
__name: "CopyClipboard",
|
|
11561
11584
|
props: {
|
|
11562
11585
|
text: {},
|
|
@@ -11585,7 +11608,7 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11585
11608
|
"transition-name": e.transitionName,
|
|
11586
11609
|
class: "vui-tooltip"
|
|
11587
11610
|
}, {
|
|
11588
|
-
default: X(() => [H(i.$slots, "confirm", {}, () => [typeof o.value == "string" ? (R(), d(n, { key: 0 }, [h(G(o.value), 1)], 64)) : (R(), d("p",
|
|
11611
|
+
default: X(() => [H(i.$slots, "confirm", {}, () => [typeof o.value == "string" ? (R(), d(n, { key: 0 }, [h(G(o.value), 1)], 64)) : (R(), d("p", kf, " Copied to clipboard "))])]),
|
|
11589
11612
|
_: 3
|
|
11590
11613
|
}, 8, [
|
|
11591
11614
|
"anchor",
|
|
@@ -11597,18 +11620,18 @@ var Jd = /* @__PURE__ */ v({
|
|
|
11597
11620
|
});
|
|
11598
11621
|
//#endregion
|
|
11599
11622
|
//#region node_modules/reka-ui/dist/shared/renderSlotFragments.js
|
|
11600
|
-
function
|
|
11601
|
-
return e ? e.flatMap((e) => e.type === n ?
|
|
11623
|
+
function jf(e) {
|
|
11624
|
+
return e ? e.flatMap((e) => e.type === n ? jf(e.children) : [e]) : [];
|
|
11602
11625
|
}
|
|
11603
11626
|
//#endregion
|
|
11604
11627
|
//#region node_modules/reka-ui/dist/Primitive/Slot.js
|
|
11605
|
-
var
|
|
11628
|
+
var Mf = v({
|
|
11606
11629
|
name: "PrimitiveSlot",
|
|
11607
11630
|
inheritAttrs: !1,
|
|
11608
11631
|
setup(e, { attrs: n, slots: r }) {
|
|
11609
11632
|
return () => {
|
|
11610
11633
|
if (!r.default) return null;
|
|
11611
|
-
let e =
|
|
11634
|
+
let e = jf(r.default()), i = e.findIndex((e) => e.type !== t);
|
|
11612
11635
|
if (i === -1) return e;
|
|
11613
11636
|
let a = e[i];
|
|
11614
11637
|
delete a.props?.ref;
|
|
@@ -11619,11 +11642,11 @@ var Af = v({
|
|
|
11619
11642
|
return e.length === 1 ? c : (e[i] = c, e);
|
|
11620
11643
|
};
|
|
11621
11644
|
}
|
|
11622
|
-
}),
|
|
11645
|
+
}), Nf = [
|
|
11623
11646
|
"area",
|
|
11624
11647
|
"img",
|
|
11625
11648
|
"input"
|
|
11626
|
-
],
|
|
11649
|
+
], Pf = v({
|
|
11627
11650
|
name: "Primitive",
|
|
11628
11651
|
inheritAttrs: !1,
|
|
11629
11652
|
props: {
|
|
@@ -11638,40 +11661,40 @@ var Af = v({
|
|
|
11638
11661
|
},
|
|
11639
11662
|
setup(e, { attrs: t, slots: n }) {
|
|
11640
11663
|
let r = e.asChild ? "template" : e.as;
|
|
11641
|
-
return typeof r == "string" &&
|
|
11664
|
+
return typeof r == "string" && Nf.includes(r) ? () => C(r, t) : r === "template" ? () => C(Mf, t, { default: n.default }) : () => C(e.as, t, { default: n.default });
|
|
11642
11665
|
}
|
|
11643
11666
|
});
|
|
11644
11667
|
//#endregion
|
|
11645
11668
|
//#region node_modules/reka-ui/node_modules/@vueuse/shared/index.mjs
|
|
11646
|
-
function
|
|
11669
|
+
function Ff(e) {
|
|
11647
11670
|
return x() ? (te(e), !0) : !1;
|
|
11648
11671
|
}
|
|
11649
|
-
function
|
|
11672
|
+
function If(e) {
|
|
11650
11673
|
let t = !1, n, r = y(!0);
|
|
11651
11674
|
return (...i) => (t ||= (n = r.run(() => e(...i)), !0), n);
|
|
11652
11675
|
}
|
|
11653
|
-
function
|
|
11676
|
+
function Lf(e) {
|
|
11654
11677
|
let t = 0, n, r, i = () => {
|
|
11655
11678
|
--t, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
|
|
11656
11679
|
};
|
|
11657
|
-
return (...a) => (t += 1, r || (r = y(!0), n = r.run(() => e(...a))),
|
|
11680
|
+
return (...a) => (t += 1, r || (r = y(!0), n = r.run(() => e(...a))), Ff(i), n);
|
|
11658
11681
|
}
|
|
11659
|
-
var
|
|
11682
|
+
var Rf = typeof window < "u" && typeof document < "u";
|
|
11660
11683
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
11661
|
-
var
|
|
11662
|
-
function
|
|
11663
|
-
return
|
|
11684
|
+
var zf = (e) => e !== void 0, Bf = Object.prototype.toString, Vf = (e) => Bf.call(e) === "[object Object]", Hf = /* @__PURE__ */ Uf();
|
|
11685
|
+
function Uf() {
|
|
11686
|
+
return Rf && (window == null ? void 0 : window.navigator)?.userAgent && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || (window == null ? void 0 : window.navigator)?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
11664
11687
|
}
|
|
11665
|
-
function
|
|
11688
|
+
function Wf(e) {
|
|
11666
11689
|
return e || b();
|
|
11667
11690
|
}
|
|
11668
|
-
function
|
|
11691
|
+
function Gf(e) {
|
|
11669
11692
|
return Array.isArray(e) ? e : [e];
|
|
11670
11693
|
}
|
|
11671
|
-
function
|
|
11672
|
-
|
|
11694
|
+
function Kf(e, t) {
|
|
11695
|
+
Wf(t) && I(e, t);
|
|
11673
11696
|
}
|
|
11674
|
-
function
|
|
11697
|
+
function qf(e, t, n) {
|
|
11675
11698
|
return Y(e, t, {
|
|
11676
11699
|
...n,
|
|
11677
11700
|
immediate: !0
|
|
@@ -11679,56 +11702,56 @@ function Gf(e, t, n) {
|
|
|
11679
11702
|
}
|
|
11680
11703
|
//#endregion
|
|
11681
11704
|
//#region node_modules/reka-ui/node_modules/@vueuse/core/index.mjs
|
|
11682
|
-
var
|
|
11683
|
-
|
|
11684
|
-
function
|
|
11705
|
+
var Jf = Rf ? window : void 0;
|
|
11706
|
+
Rf && window.document, Rf && window.navigator, Rf && window.location;
|
|
11707
|
+
function Yf(e) {
|
|
11685
11708
|
let t = K(e);
|
|
11686
11709
|
return t?.$el ?? t;
|
|
11687
11710
|
}
|
|
11688
|
-
function
|
|
11711
|
+
function Xf(...e) {
|
|
11689
11712
|
let t = [], n = () => {
|
|
11690
11713
|
t.forEach((e) => e()), t.length = 0;
|
|
11691
11714
|
}, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = c(() => {
|
|
11692
|
-
let t =
|
|
11715
|
+
let t = Gf(K(e[0])).filter((e) => e != null);
|
|
11693
11716
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
11694
|
-
}), a =
|
|
11695
|
-
i.value?.map((e) =>
|
|
11696
|
-
|
|
11697
|
-
|
|
11717
|
+
}), a = qf(() => [
|
|
11718
|
+
i.value?.map((e) => Yf(e)) ?? [Jf].filter((e) => e != null),
|
|
11719
|
+
Gf(K(i.value ? e[1] : e[0])),
|
|
11720
|
+
Gf(q(i.value ? e[2] : e[1])),
|
|
11698
11721
|
K(i.value ? e[3] : e[2])
|
|
11699
11722
|
], ([e, i, a, o]) => {
|
|
11700
11723
|
if (n(), !e?.length || !i?.length || !a?.length) return;
|
|
11701
|
-
let s =
|
|
11724
|
+
let s = Vf(o) ? { ...o } : o;
|
|
11702
11725
|
t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
|
|
11703
11726
|
}, { flush: "post" });
|
|
11704
|
-
return
|
|
11727
|
+
return Ff(n), () => {
|
|
11705
11728
|
a(), n();
|
|
11706
11729
|
};
|
|
11707
11730
|
}
|
|
11708
|
-
function
|
|
11731
|
+
function Zf() {
|
|
11709
11732
|
let e = W(!1), t = b();
|
|
11710
11733
|
return t && L(() => {
|
|
11711
11734
|
e.value = !0;
|
|
11712
11735
|
}, t), e;
|
|
11713
11736
|
}
|
|
11714
|
-
function
|
|
11737
|
+
function Qf(e) {
|
|
11715
11738
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
11716
11739
|
}
|
|
11717
|
-
function
|
|
11740
|
+
function $f(...e) {
|
|
11718
11741
|
let t, n, r = {};
|
|
11719
11742
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
11720
|
-
let { target: i =
|
|
11721
|
-
return
|
|
11743
|
+
let { target: i = Jf, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Qf(t);
|
|
11744
|
+
return Xf(i, a, (e) => {
|
|
11722
11745
|
e.repeat && K(s) || c(e) && n(e);
|
|
11723
11746
|
}, o);
|
|
11724
11747
|
}
|
|
11725
|
-
function
|
|
11748
|
+
function ep(e) {
|
|
11726
11749
|
return JSON.parse(JSON.stringify(e));
|
|
11727
11750
|
}
|
|
11728
|
-
function
|
|
11751
|
+
function tp(e, t, n, r = {}) {
|
|
11729
11752
|
let { clone: i = !1, passive: a = !1, eventName: o, deep: s = !1, defaultValue: l, shouldEmit: u } = r, d = b(), f = n || d?.emit || (d?.$emit)?.bind(d) || (d?.proxy?.$emit)?.bind(d?.proxy), p = o;
|
|
11730
11753
|
t ||= "modelValue", p ||= `update:${t.toString()}`;
|
|
11731
|
-
let m = (e) => i ? typeof i == "function" ? i(e) :
|
|
11754
|
+
let m = (e) => i ? typeof i == "function" ? i(e) : ep(e) : e, h = () => zf(e[t]) ? m(e[t]) : l, g = (e) => {
|
|
11732
11755
|
u ? u(e) && f(p, e) : f(p, e);
|
|
11733
11756
|
};
|
|
11734
11757
|
if (a) {
|
|
@@ -11749,7 +11772,7 @@ function $f(e, t, n, r = {}) {
|
|
|
11749
11772
|
}
|
|
11750
11773
|
//#endregion
|
|
11751
11774
|
//#region node_modules/reka-ui/dist/shared/createContext.js
|
|
11752
|
-
function
|
|
11775
|
+
function np(e, t) {
|
|
11753
11776
|
let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
11754
11777
|
return [(t) => {
|
|
11755
11778
|
let n = T(r, t);
|
|
@@ -11759,11 +11782,11 @@ function ep(e, t) {
|
|
|
11759
11782
|
}
|
|
11760
11783
|
//#endregion
|
|
11761
11784
|
//#region node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
11762
|
-
var [
|
|
11785
|
+
var [rp, ip] = np("ConfigProvider");
|
|
11763
11786
|
//#endregion
|
|
11764
11787
|
//#region node_modules/reka-ui/dist/shared/useForwardExpose.js
|
|
11765
|
-
function
|
|
11766
|
-
let e = b(), t = B(), n = c(() => ["#text", "#comment"].includes(t.value?.$el.nodeName) ? t.value?.$el.nextElementSibling :
|
|
11788
|
+
function ap() {
|
|
11789
|
+
let e = b(), t = B(), n = c(() => ["#text", "#comment"].includes(t.value?.$el.nodeName) ? t.value?.$el.nextElementSibling : Yf(t)), r = Object.assign({}, e.exposed), i = {};
|
|
11767
11790
|
for (let t in e.props) Object.defineProperty(i, t, {
|
|
11768
11791
|
enumerable: !0,
|
|
11769
11792
|
configurable: !0,
|
|
@@ -11794,15 +11817,15 @@ function rp() {
|
|
|
11794
11817
|
}
|
|
11795
11818
|
//#endregion
|
|
11796
11819
|
//#region node_modules/reka-ui/dist/shared/useId.js
|
|
11797
|
-
var
|
|
11798
|
-
function
|
|
11820
|
+
var op = 0;
|
|
11821
|
+
function sp(t, n = "reka") {
|
|
11799
11822
|
if (t) return t;
|
|
11800
|
-
let r =
|
|
11801
|
-
return e.useId ? `${n}-${e.useId()}` : r.useId ? `${n}-${r.useId()}` : `${n}-${++
|
|
11823
|
+
let r = rp({ useId: void 0 });
|
|
11824
|
+
return e.useId ? `${n}-${e.useId()}` : r.useId ? `${n}-${r.useId()}` : `${n}-${++op}`;
|
|
11802
11825
|
}
|
|
11803
11826
|
//#endregion
|
|
11804
11827
|
//#region node_modules/reka-ui/dist/shared/useStateMachine.js
|
|
11805
|
-
function
|
|
11828
|
+
function cp(e, t) {
|
|
11806
11829
|
let n = B(e);
|
|
11807
11830
|
function r(e) {
|
|
11808
11831
|
return t[n.value][e] ?? n.value;
|
|
@@ -11816,8 +11839,8 @@ function op(e, t) {
|
|
|
11816
11839
|
}
|
|
11817
11840
|
//#endregion
|
|
11818
11841
|
//#region node_modules/reka-ui/dist/Presence/usePresence.js
|
|
11819
|
-
function
|
|
11820
|
-
let n = B({}), r = B("none"), i = B(e), a = e.value ? "mounted" : "unmounted", o, s = t.value?.ownerDocument.defaultView ??
|
|
11842
|
+
function lp(e, t) {
|
|
11843
|
+
let n = B({}), r = B("none"), i = B(e), a = e.value ? "mounted" : "unmounted", o, s = t.value?.ownerDocument.defaultView ?? Jf, { state: l, dispatch: u } = cp(a, {
|
|
11821
11844
|
mounted: {
|
|
11822
11845
|
UNMOUNT: "unmounted",
|
|
11823
11846
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -11828,7 +11851,7 @@ function sp(e, t) {
|
|
|
11828
11851
|
},
|
|
11829
11852
|
unmounted: { MOUNT: "mounted" }
|
|
11830
11853
|
}), d = (e) => {
|
|
11831
|
-
if (
|
|
11854
|
+
if (Rf) {
|
|
11832
11855
|
let n = new CustomEvent(e, {
|
|
11833
11856
|
bubbles: !1,
|
|
11834
11857
|
cancelable: !1
|
|
@@ -11839,12 +11862,12 @@ function sp(e, t) {
|
|
|
11839
11862
|
Y(e, async (e, i) => {
|
|
11840
11863
|
let a = i !== e;
|
|
11841
11864
|
if (await j(), a) {
|
|
11842
|
-
let a = r.value, o =
|
|
11865
|
+
let a = r.value, o = up(t.value);
|
|
11843
11866
|
e ? (u("MOUNT"), d("enter"), o === "none" && d("after-enter")) : o === "none" || o === "undefined" || n.value?.display === "none" ? (u("UNMOUNT"), d("leave"), d("after-leave")) : i && a !== o ? (u("ANIMATION_OUT"), d("leave")) : (u("UNMOUNT"), d("after-leave"));
|
|
11844
11867
|
}
|
|
11845
11868
|
}, { immediate: !0 });
|
|
11846
11869
|
let f = (e) => {
|
|
11847
|
-
let n =
|
|
11870
|
+
let n = up(t.value), r = n.includes(e.animationName), a = l.value === "mounted" ? "enter" : "leave";
|
|
11848
11871
|
if (e.target === t.value && r && (d(`after-${a}`), u("ANIMATION_END"), !i.value)) {
|
|
11849
11872
|
let e = t.value.style.animationFillMode;
|
|
11850
11873
|
t.value.style.animationFillMode = "forwards", o = s?.setTimeout(() => {
|
|
@@ -11853,23 +11876,23 @@ function sp(e, t) {
|
|
|
11853
11876
|
}
|
|
11854
11877
|
e.target === t.value && n === "none" && u("ANIMATION_END");
|
|
11855
11878
|
}, p = (e) => {
|
|
11856
|
-
e.target === t.value && (r.value =
|
|
11879
|
+
e.target === t.value && (r.value = up(t.value));
|
|
11857
11880
|
}, m = Y(t, (e, t) => {
|
|
11858
11881
|
e ? (n.value = getComputedStyle(e), e.addEventListener("animationstart", p), e.addEventListener("animationcancel", f), e.addEventListener("animationend", f)) : (u("ANIMATION_END"), o !== void 0 && s?.clearTimeout(o), t?.removeEventListener("animationstart", p), t?.removeEventListener("animationcancel", f), t?.removeEventListener("animationend", f));
|
|
11859
11882
|
}, { immediate: !0 }), h = Y(l, () => {
|
|
11860
|
-
let e =
|
|
11883
|
+
let e = up(t.value);
|
|
11861
11884
|
r.value = l.value === "mounted" ? e : "none";
|
|
11862
11885
|
});
|
|
11863
11886
|
return ne(() => {
|
|
11864
11887
|
m(), h();
|
|
11865
11888
|
}), { isPresent: c(() => ["mounted", "unmountSuspended"].includes(l.value)) };
|
|
11866
11889
|
}
|
|
11867
|
-
function
|
|
11890
|
+
function up(e) {
|
|
11868
11891
|
return e && getComputedStyle(e).animationName || "none";
|
|
11869
11892
|
}
|
|
11870
11893
|
//#endregion
|
|
11871
11894
|
//#region node_modules/reka-ui/dist/Presence/Presence.js
|
|
11872
|
-
var
|
|
11895
|
+
var dp = v({
|
|
11873
11896
|
name: "Presence",
|
|
11874
11897
|
props: {
|
|
11875
11898
|
present: {
|
|
@@ -11880,10 +11903,10 @@ var lp = v({
|
|
|
11880
11903
|
},
|
|
11881
11904
|
slots: {},
|
|
11882
11905
|
setup(e, { slots: t, expose: n }) {
|
|
11883
|
-
let { present: r, forceMount: i } = le(e), a = B(), { isPresent: o } =
|
|
11906
|
+
let { present: r, forceMount: i } = le(e), a = B(), { isPresent: o } = lp(r, a);
|
|
11884
11907
|
n({ present: o });
|
|
11885
11908
|
let s = t.default({ present: o.value });
|
|
11886
|
-
s =
|
|
11909
|
+
s = jf(s || []);
|
|
11887
11910
|
let c = b();
|
|
11888
11911
|
if (s && s?.length > 1) {
|
|
11889
11912
|
let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
|
|
@@ -11896,14 +11919,14 @@ var lp = v({
|
|
|
11896
11919
|
].join("\n"));
|
|
11897
11920
|
}
|
|
11898
11921
|
return () => i.value || r.value || o.value ? C(t.default({ present: o.value })[0], { ref: (e) => {
|
|
11899
|
-
let t =
|
|
11922
|
+
let t = Yf(e);
|
|
11900
11923
|
return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
|
|
11901
11924
|
} }) : null;
|
|
11902
11925
|
}
|
|
11903
11926
|
});
|
|
11904
11927
|
//#endregion
|
|
11905
11928
|
//#region node_modules/reka-ui/dist/shared/useEmitAsProps.js
|
|
11906
|
-
function
|
|
11929
|
+
function fp(e) {
|
|
11907
11930
|
let t = b(), n = t?.type.emits, r = {};
|
|
11908
11931
|
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((t) => {
|
|
11909
11932
|
r[oe(o(t))] = (...n) => e(t, ...n);
|
|
@@ -11911,7 +11934,7 @@ function up(e) {
|
|
|
11911
11934
|
}
|
|
11912
11935
|
//#endregion
|
|
11913
11936
|
//#region node_modules/reka-ui/dist/shared/useForwardProps.js
|
|
11914
|
-
function
|
|
11937
|
+
function pp(e) {
|
|
11915
11938
|
let t = b(), n = Object.keys(t?.type.props ?? {}).reduce((e, n) => {
|
|
11916
11939
|
let r = (t?.type.props[n]).default;
|
|
11917
11940
|
return r !== void 0 && (e[n] = r), e;
|
|
@@ -11928,8 +11951,8 @@ function dp(e) {
|
|
|
11928
11951
|
}
|
|
11929
11952
|
//#endregion
|
|
11930
11953
|
//#region node_modules/reka-ui/dist/shared/useForwardPropsEmits.js
|
|
11931
|
-
function
|
|
11932
|
-
let n =
|
|
11954
|
+
function mp(e, t) {
|
|
11955
|
+
let n = pp(e), r = t ? fp(t) : {};
|
|
11933
11956
|
return c(() => ({
|
|
11934
11957
|
...n.value,
|
|
11935
11958
|
...r
|
|
@@ -11937,7 +11960,7 @@ function fp(e, t) {
|
|
|
11937
11960
|
}
|
|
11938
11961
|
//#endregion
|
|
11939
11962
|
//#region node_modules/reka-ui/dist/Dialog/DialogRoot.js
|
|
11940
|
-
var [
|
|
11963
|
+
var [hp, gp] = np("DialogRoot"), _p = /* @__PURE__ */ v({
|
|
11941
11964
|
inheritAttrs: !1,
|
|
11942
11965
|
__name: "DialogRoot",
|
|
11943
11966
|
props: {
|
|
@@ -11956,11 +11979,11 @@ var [pp, mp] = ep("DialogRoot"), hp = /* @__PURE__ */ v({
|
|
|
11956
11979
|
},
|
|
11957
11980
|
emits: ["update:open"],
|
|
11958
11981
|
setup(e, { emit: t }) {
|
|
11959
|
-
let n = e, r =
|
|
11982
|
+
let n = e, r = tp(n, "open", t, {
|
|
11960
11983
|
defaultValue: n.defaultOpen,
|
|
11961
11984
|
passive: n.open === void 0
|
|
11962
11985
|
}), i = B(), a = B(), { modal: o } = le(n);
|
|
11963
|
-
return
|
|
11986
|
+
return gp({
|
|
11964
11987
|
open: r,
|
|
11965
11988
|
modal: o,
|
|
11966
11989
|
openModal: () => {
|
|
@@ -11979,7 +12002,7 @@ var [pp, mp] = ep("DialogRoot"), hp = /* @__PURE__ */ v({
|
|
|
11979
12002
|
contentElement: a
|
|
11980
12003
|
}), (e, t) => H(e.$slots, "default", { open: q(r) });
|
|
11981
12004
|
}
|
|
11982
|
-
}),
|
|
12005
|
+
}), vp = /* @__PURE__ */ v({
|
|
11983
12006
|
__name: "Teleport",
|
|
11984
12007
|
props: {
|
|
11985
12008
|
to: { default: "body" },
|
|
@@ -11988,7 +12011,7 @@ var [pp, mp] = ep("DialogRoot"), hp = /* @__PURE__ */ v({
|
|
|
11988
12011
|
forceMount: { type: Boolean }
|
|
11989
12012
|
},
|
|
11990
12013
|
setup(e) {
|
|
11991
|
-
let t =
|
|
12014
|
+
let t = Zf();
|
|
11992
12015
|
return (e, n) => q(t) || e.forceMount ? (R(), l(r, {
|
|
11993
12016
|
key: 0,
|
|
11994
12017
|
to: e.to,
|
|
@@ -12003,7 +12026,7 @@ var [pp, mp] = ep("DialogRoot"), hp = /* @__PURE__ */ v({
|
|
|
12003
12026
|
});
|
|
12004
12027
|
//#endregion
|
|
12005
12028
|
//#region node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js
|
|
12006
|
-
function
|
|
12029
|
+
function yp(e, t, n) {
|
|
12007
12030
|
let r = n.originalEvent.target, i = new CustomEvent(e, {
|
|
12008
12031
|
bubbles: !1,
|
|
12009
12032
|
cancelable: !0,
|
|
@@ -12013,25 +12036,25 @@ function _p(e, t, n) {
|
|
|
12013
12036
|
}
|
|
12014
12037
|
//#endregion
|
|
12015
12038
|
//#region node_modules/reka-ui/dist/DismissableLayer/utils.js
|
|
12016
|
-
var
|
|
12017
|
-
function
|
|
12039
|
+
var bp = "dismissableLayer.pointerDownOutside", xp = "dismissableLayer.focusOutside";
|
|
12040
|
+
function Sp(e, t) {
|
|
12018
12041
|
let n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), i = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
12019
12042
|
return !!(n && r === n || i.indexOf(r) < i.indexOf(n));
|
|
12020
12043
|
}
|
|
12021
|
-
function
|
|
12044
|
+
function Cp(e, t) {
|
|
12022
12045
|
let n = t?.value?.ownerDocument ?? globalThis?.document, r = B(!1), i = B(() => {});
|
|
12023
12046
|
return be((a) => {
|
|
12024
|
-
if (!
|
|
12047
|
+
if (!Rf) return;
|
|
12025
12048
|
let o = async (a) => {
|
|
12026
12049
|
let o = a.target;
|
|
12027
12050
|
if (t?.value) {
|
|
12028
|
-
if (
|
|
12051
|
+
if (Sp(t.value, o)) {
|
|
12029
12052
|
r.value = !1;
|
|
12030
12053
|
return;
|
|
12031
12054
|
}
|
|
12032
12055
|
if (a.target && !r.value) {
|
|
12033
12056
|
let t = function() {
|
|
12034
|
-
|
|
12057
|
+
yp(bp, e, r);
|
|
12035
12058
|
}, r = { originalEvent: a };
|
|
12036
12059
|
a.pointerType === "touch" ? (n.removeEventListener("click", i.value), i.value = t, n.addEventListener("click", i.value, { once: !0 })) : t();
|
|
12037
12060
|
} else n.removeEventListener("click", i.value);
|
|
@@ -12045,12 +12068,12 @@ function xp(e, t) {
|
|
|
12045
12068
|
});
|
|
12046
12069
|
}), { onPointerDownCapture: () => r.value = !0 };
|
|
12047
12070
|
}
|
|
12048
|
-
function
|
|
12071
|
+
function wp(e, t) {
|
|
12049
12072
|
let n = t?.value?.ownerDocument ?? globalThis?.document, r = B(!1);
|
|
12050
12073
|
return be((i) => {
|
|
12051
|
-
if (!
|
|
12074
|
+
if (!Rf) return;
|
|
12052
12075
|
let a = async (n) => {
|
|
12053
|
-
t?.value && (await j(), await j(), !(!t.value ||
|
|
12076
|
+
t?.value && (await j(), await j(), !(!t.value || Sp(t.value, n.target)) && n.target && !r.value && yp(xp, e, { originalEvent: n }));
|
|
12054
12077
|
};
|
|
12055
12078
|
n.addEventListener("focusin", a), i(() => n.removeEventListener("focusin", a));
|
|
12056
12079
|
}), {
|
|
@@ -12060,11 +12083,11 @@ function Sp(e, t) {
|
|
|
12060
12083
|
}
|
|
12061
12084
|
//#endregion
|
|
12062
12085
|
//#region node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js
|
|
12063
|
-
var
|
|
12086
|
+
var Tp = ie({
|
|
12064
12087
|
layersRoot: /* @__PURE__ */ new Set(),
|
|
12065
12088
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12066
12089
|
branches: /* @__PURE__ */ new Set()
|
|
12067
|
-
}),
|
|
12090
|
+
}), Ep = /* @__PURE__ */ v({
|
|
12068
12091
|
__name: "DismissableLayer",
|
|
12069
12092
|
props: {
|
|
12070
12093
|
disableOutsidePointerEvents: {
|
|
@@ -12082,28 +12105,28 @@ var Cp = ie({
|
|
|
12082
12105
|
"dismiss"
|
|
12083
12106
|
],
|
|
12084
12107
|
setup(e, { emit: t }) {
|
|
12085
|
-
let n = e, r = t, { forwardRef: i, currentElement: a } =
|
|
12086
|
-
let e = Array.from(s.value), [t] = [...
|
|
12108
|
+
let n = e, r = t, { forwardRef: i, currentElement: a } = ap(), o = c(() => a.value?.ownerDocument ?? globalThis.document), s = c(() => Tp.layersRoot), u = c(() => a.value ? Array.from(s.value).indexOf(a.value) : -1), d = c(() => Tp.layersWithOutsidePointerEventsDisabled.size > 0), f = c(() => {
|
|
12109
|
+
let e = Array.from(s.value), [t] = [...Tp.layersWithOutsidePointerEventsDisabled].slice(-1), n = e.indexOf(t);
|
|
12087
12110
|
return u.value >= n;
|
|
12088
|
-
}), p =
|
|
12089
|
-
let t = [...
|
|
12111
|
+
}), p = Cp(async (e) => {
|
|
12112
|
+
let t = [...Tp.branches].some((t) => t?.contains(e.target));
|
|
12090
12113
|
!f.value || t || (r("pointerDownOutside", e), r("interactOutside", e), await j(), e.defaultPrevented || r("dismiss"));
|
|
12091
|
-
}, a), m =
|
|
12092
|
-
[...
|
|
12114
|
+
}, a), m = wp((e) => {
|
|
12115
|
+
[...Tp.branches].some((t) => t?.contains(e.target)) || (r("focusOutside", e), r("interactOutside", e), e.defaultPrevented || r("dismiss"));
|
|
12093
12116
|
}, a);
|
|
12094
|
-
|
|
12117
|
+
$f("Escape", (e) => {
|
|
12095
12118
|
u.value === s.value.size - 1 && (r("escapeKeyDown", e), e.defaultPrevented || r("dismiss"));
|
|
12096
12119
|
});
|
|
12097
12120
|
let h;
|
|
12098
12121
|
return be((e) => {
|
|
12099
|
-
a.value && (n.disableOutsidePointerEvents && (
|
|
12100
|
-
n.disableOutsidePointerEvents &&
|
|
12122
|
+
a.value && (n.disableOutsidePointerEvents && (Tp.layersWithOutsidePointerEventsDisabled.size === 0 && (h = o.value.body.style.pointerEvents, o.value.body.style.pointerEvents = "none"), Tp.layersWithOutsidePointerEventsDisabled.add(a.value)), s.value.add(a.value), e(() => {
|
|
12123
|
+
n.disableOutsidePointerEvents && Tp.layersWithOutsidePointerEventsDisabled.size === 1 && (o.value.body.style.pointerEvents = h);
|
|
12101
12124
|
}));
|
|
12102
12125
|
}), be((e) => {
|
|
12103
12126
|
e(() => {
|
|
12104
|
-
a.value && (s.value.delete(a.value),
|
|
12127
|
+
a.value && (s.value.delete(a.value), Tp.layersWithOutsidePointerEventsDisabled.delete(a.value));
|
|
12105
12128
|
});
|
|
12106
|
-
}), (e, t) => (R(), l(q(
|
|
12129
|
+
}), (e, t) => (R(), l(q(Pf), {
|
|
12107
12130
|
ref: q(i),
|
|
12108
12131
|
"as-child": e.asChild,
|
|
12109
12132
|
as: e.as,
|
|
@@ -12127,7 +12150,7 @@ var Cp = ie({
|
|
|
12127
12150
|
});
|
|
12128
12151
|
//#endregion
|
|
12129
12152
|
//#region node_modules/reka-ui/dist/shared/getActiveElement.js
|
|
12130
|
-
function
|
|
12153
|
+
function Dp() {
|
|
12131
12154
|
let e = document.activeElement;
|
|
12132
12155
|
if (e == null) return null;
|
|
12133
12156
|
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
|
|
@@ -12135,23 +12158,23 @@ function Tp() {
|
|
|
12135
12158
|
}
|
|
12136
12159
|
//#endregion
|
|
12137
12160
|
//#region node_modules/reka-ui/dist/Menu/utils.js
|
|
12138
|
-
var
|
|
12161
|
+
var Op = ["Enter", " "], kp = [
|
|
12139
12162
|
"ArrowDown",
|
|
12140
12163
|
"PageUp",
|
|
12141
12164
|
"Home"
|
|
12142
|
-
],
|
|
12165
|
+
], Ap = [
|
|
12143
12166
|
"ArrowUp",
|
|
12144
12167
|
"PageDown",
|
|
12145
12168
|
"End"
|
|
12146
12169
|
];
|
|
12147
|
-
[...
|
|
12148
|
-
function
|
|
12170
|
+
[...kp, ...Ap], [...Op], [...Op];
|
|
12171
|
+
function jp(e) {
|
|
12149
12172
|
return e ? "open" : "closed";
|
|
12150
12173
|
}
|
|
12151
12174
|
//#endregion
|
|
12152
12175
|
//#region node_modules/reka-ui/dist/Dialog/utils.js
|
|
12153
|
-
var
|
|
12154
|
-
function
|
|
12176
|
+
var Mp = "DialogTitle", Np = "DialogContent";
|
|
12177
|
+
function Pp({ titleName: e = Mp, contentName: t = Np, componentLink: n = "dialog.html#title", titleId: r, descriptionId: i, contentElement: a }) {
|
|
12155
12178
|
let o = `Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
12156
12179
|
|
|
12157
12180
|
If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -12165,19 +12188,19 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`, s = `Wa
|
|
|
12165
12188
|
}
|
|
12166
12189
|
//#endregion
|
|
12167
12190
|
//#region node_modules/reka-ui/dist/FocusScope/utils.js
|
|
12168
|
-
var
|
|
12191
|
+
var Fp = "focusScope.autoFocusOnMount", Ip = "focusScope.autoFocusOnUnmount", Lp = {
|
|
12169
12192
|
bubbles: !1,
|
|
12170
12193
|
cancelable: !0
|
|
12171
12194
|
};
|
|
12172
|
-
function
|
|
12173
|
-
let n =
|
|
12174
|
-
for (let r of e) if (
|
|
12195
|
+
function Rp(e, { select: t = !1 } = {}) {
|
|
12196
|
+
let n = Dp();
|
|
12197
|
+
for (let r of e) if (Wp(r, { select: t }), Dp() !== n) return !0;
|
|
12175
12198
|
}
|
|
12176
|
-
function
|
|
12177
|
-
let t =
|
|
12178
|
-
return [
|
|
12199
|
+
function zp(e) {
|
|
12200
|
+
let t = Bp(e);
|
|
12201
|
+
return [Vp(t, e), Vp(t.reverse(), e)];
|
|
12179
12202
|
}
|
|
12180
|
-
function
|
|
12203
|
+
function Bp(e) {
|
|
12181
12204
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
12182
12205
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
12183
12206
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -12185,10 +12208,10 @@ function Rp(e) {
|
|
|
12185
12208
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
12186
12209
|
return t;
|
|
12187
12210
|
}
|
|
12188
|
-
function
|
|
12189
|
-
for (let n of e) if (!
|
|
12211
|
+
function Vp(e, t) {
|
|
12212
|
+
for (let n of e) if (!Hp(n, { upTo: t })) return n;
|
|
12190
12213
|
}
|
|
12191
|
-
function
|
|
12214
|
+
function Hp(e, { upTo: t }) {
|
|
12192
12215
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
12193
12216
|
for (; e;) {
|
|
12194
12217
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -12197,40 +12220,40 @@ function Bp(e, { upTo: t }) {
|
|
|
12197
12220
|
}
|
|
12198
12221
|
return !1;
|
|
12199
12222
|
}
|
|
12200
|
-
function
|
|
12223
|
+
function Up(e) {
|
|
12201
12224
|
return e instanceof HTMLInputElement && "select" in e;
|
|
12202
12225
|
}
|
|
12203
|
-
function
|
|
12226
|
+
function Wp(e, { select: t = !1 } = {}) {
|
|
12204
12227
|
if (e && e.focus) {
|
|
12205
|
-
let n =
|
|
12206
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
12228
|
+
let n = Dp();
|
|
12229
|
+
e.focus({ preventScroll: !0 }), e !== n && Up(e) && t && e.select();
|
|
12207
12230
|
}
|
|
12208
12231
|
}
|
|
12209
12232
|
//#endregion
|
|
12210
12233
|
//#region node_modules/reka-ui/dist/FocusScope/stack.js
|
|
12211
|
-
var
|
|
12212
|
-
function
|
|
12213
|
-
let e =
|
|
12234
|
+
var Gp = If(() => B([]));
|
|
12235
|
+
function Kp() {
|
|
12236
|
+
let e = Gp();
|
|
12214
12237
|
return {
|
|
12215
12238
|
add(t) {
|
|
12216
12239
|
let n = e.value[0];
|
|
12217
|
-
t !== n && n?.pause(), e.value =
|
|
12240
|
+
t !== n && n?.pause(), e.value = qp(e.value, t), e.value.unshift(t);
|
|
12218
12241
|
},
|
|
12219
12242
|
remove(t) {
|
|
12220
|
-
e.value =
|
|
12243
|
+
e.value = qp(e.value, t), e.value[0]?.resume();
|
|
12221
12244
|
}
|
|
12222
12245
|
};
|
|
12223
12246
|
}
|
|
12224
|
-
function
|
|
12247
|
+
function qp(e, t) {
|
|
12225
12248
|
let n = [...e], r = n.indexOf(t);
|
|
12226
12249
|
return r !== -1 && n.splice(r, 1), n;
|
|
12227
12250
|
}
|
|
12228
|
-
function
|
|
12251
|
+
function Jp(e) {
|
|
12229
12252
|
return e.filter((e) => e.tagName !== "A");
|
|
12230
12253
|
}
|
|
12231
12254
|
//#endregion
|
|
12232
12255
|
//#region node_modules/reka-ui/dist/FocusScope/FocusScope.js
|
|
12233
|
-
var
|
|
12256
|
+
var Yp = /* @__PURE__ */ v({
|
|
12234
12257
|
__name: "FocusScope",
|
|
12235
12258
|
props: {
|
|
12236
12259
|
loop: {
|
|
@@ -12246,7 +12269,7 @@ var qp = /* @__PURE__ */ v({
|
|
|
12246
12269
|
},
|
|
12247
12270
|
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
12248
12271
|
setup(e, { emit: t }) {
|
|
12249
|
-
let n = e, r = t, { currentRef: i, currentElement: a } =
|
|
12272
|
+
let n = e, r = t, { currentRef: i, currentElement: a } = ap(), o = B(null), s = Kp(), c = ie({
|
|
12250
12273
|
paused: !1,
|
|
12251
12274
|
pause() {
|
|
12252
12275
|
this.paused = !0;
|
|
@@ -12256,21 +12279,21 @@ var qp = /* @__PURE__ */ v({
|
|
|
12256
12279
|
}
|
|
12257
12280
|
});
|
|
12258
12281
|
be((e) => {
|
|
12259
|
-
if (!
|
|
12282
|
+
if (!Rf) return;
|
|
12260
12283
|
let t = a.value;
|
|
12261
12284
|
if (!n.trapped) return;
|
|
12262
12285
|
function r(e) {
|
|
12263
12286
|
if (c.paused || !t) return;
|
|
12264
12287
|
let n = e.target;
|
|
12265
|
-
t.contains(n) ? o.value = n :
|
|
12288
|
+
t.contains(n) ? o.value = n : Wp(o.value, { select: !0 });
|
|
12266
12289
|
}
|
|
12267
12290
|
function i(e) {
|
|
12268
12291
|
if (c.paused || !t) return;
|
|
12269
12292
|
let n = e.relatedTarget;
|
|
12270
|
-
n !== null && (t.contains(n) ||
|
|
12293
|
+
n !== null && (t.contains(n) || Wp(o.value, { select: !0 }));
|
|
12271
12294
|
}
|
|
12272
12295
|
function s(e) {
|
|
12273
|
-
t.contains(o.value) ||
|
|
12296
|
+
t.contains(o.value) || Wp(t);
|
|
12274
12297
|
}
|
|
12275
12298
|
document.addEventListener("focusin", r), document.addEventListener("focusout", i);
|
|
12276
12299
|
let l = new MutationObserver(s);
|
|
@@ -12284,30 +12307,30 @@ var qp = /* @__PURE__ */ v({
|
|
|
12284
12307
|
let t = a.value;
|
|
12285
12308
|
if (await j(), !t) return;
|
|
12286
12309
|
s.add(c);
|
|
12287
|
-
let n =
|
|
12310
|
+
let n = Dp();
|
|
12288
12311
|
if (!t.contains(n)) {
|
|
12289
|
-
let e = new CustomEvent(
|
|
12290
|
-
t.addEventListener(
|
|
12312
|
+
let e = new CustomEvent(Fp, Lp);
|
|
12313
|
+
t.addEventListener(Fp, (e) => r("mountAutoFocus", e)), t.dispatchEvent(e), e.defaultPrevented || (Rp(Jp(Bp(t)), { select: !0 }), Dp() === n && Wp(t));
|
|
12291
12314
|
}
|
|
12292
12315
|
e(() => {
|
|
12293
|
-
t.removeEventListener(
|
|
12294
|
-
let e = new CustomEvent(
|
|
12316
|
+
t.removeEventListener(Fp, (e) => r("mountAutoFocus", e));
|
|
12317
|
+
let e = new CustomEvent(Ip, Lp), i = (e) => {
|
|
12295
12318
|
r("unmountAutoFocus", e);
|
|
12296
12319
|
};
|
|
12297
|
-
t.addEventListener(
|
|
12298
|
-
e.defaultPrevented ||
|
|
12320
|
+
t.addEventListener(Ip, i), t.dispatchEvent(e), setTimeout(() => {
|
|
12321
|
+
e.defaultPrevented || Wp(n ?? document.body, { select: !0 }), t.removeEventListener(Ip, i), s.remove(c);
|
|
12299
12322
|
}, 0);
|
|
12300
12323
|
});
|
|
12301
12324
|
});
|
|
12302
12325
|
function u(e) {
|
|
12303
12326
|
if (!n.loop && !n.trapped || c.paused) return;
|
|
12304
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r =
|
|
12327
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = Dp();
|
|
12305
12328
|
if (t && r) {
|
|
12306
|
-
let t = e.currentTarget, [i, a] =
|
|
12307
|
-
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop &&
|
|
12329
|
+
let t = e.currentTarget, [i, a] = zp(t);
|
|
12330
|
+
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop && Wp(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n.loop && Wp(a, { select: !0 })) : r === t && e.preventDefault();
|
|
12308
12331
|
}
|
|
12309
12332
|
}
|
|
12310
|
-
return (e, t) => (R(), l(q(
|
|
12333
|
+
return (e, t) => (R(), l(q(Pf), {
|
|
12311
12334
|
ref_key: "currentRef",
|
|
12312
12335
|
ref: i,
|
|
12313
12336
|
tabindex: "-1",
|
|
@@ -12319,7 +12342,7 @@ var qp = /* @__PURE__ */ v({
|
|
|
12319
12342
|
_: 3
|
|
12320
12343
|
}, 8, ["as-child", "as"]));
|
|
12321
12344
|
}
|
|
12322
|
-
}),
|
|
12345
|
+
}), Xp = /* @__PURE__ */ v({
|
|
12323
12346
|
__name: "DialogContentImpl",
|
|
12324
12347
|
props: {
|
|
12325
12348
|
forceMount: { type: Boolean },
|
|
@@ -12337,24 +12360,24 @@ var qp = /* @__PURE__ */ v({
|
|
|
12337
12360
|
"closeAutoFocus"
|
|
12338
12361
|
],
|
|
12339
12362
|
setup(e, { emit: t }) {
|
|
12340
|
-
let n = e, r = t, i =
|
|
12341
|
-
return i.titleId ||=
|
|
12342
|
-
i.contentElement = o,
|
|
12343
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
12363
|
+
let n = e, r = t, i = hp(), { forwardRef: a, currentElement: o } = ap();
|
|
12364
|
+
return i.titleId ||= sp(void 0, "reka-dialog-title"), i.descriptionId ||= sp(void 0, "reka-dialog-description"), L(() => {
|
|
12365
|
+
i.contentElement = o, Dp() !== document.body && (i.triggerElement.value = Dp());
|
|
12366
|
+
}), process.env.NODE_ENV !== "production" && Pp({
|
|
12344
12367
|
titleName: "DialogTitle",
|
|
12345
12368
|
contentName: "DialogContent",
|
|
12346
12369
|
componentLink: "dialog.html#title",
|
|
12347
12370
|
titleId: i.titleId,
|
|
12348
12371
|
descriptionId: i.descriptionId,
|
|
12349
12372
|
contentElement: o
|
|
12350
|
-
}), (e, t) => (R(), l(q(
|
|
12373
|
+
}), (e, t) => (R(), l(q(Yp), {
|
|
12351
12374
|
"as-child": "",
|
|
12352
12375
|
loop: "",
|
|
12353
12376
|
trapped: n.trapFocus,
|
|
12354
12377
|
onMountAutoFocus: t[5] ||= (e) => r("openAutoFocus", e),
|
|
12355
12378
|
onUnmountAutoFocus: t[6] ||= (e) => r("closeAutoFocus", e)
|
|
12356
12379
|
}, {
|
|
12357
|
-
default: X(() => [g(q(
|
|
12380
|
+
default: X(() => [g(q(Ep), A({
|
|
12358
12381
|
id: q(i).contentId,
|
|
12359
12382
|
ref: q(a),
|
|
12360
12383
|
as: e.as,
|
|
@@ -12363,7 +12386,7 @@ var qp = /* @__PURE__ */ v({
|
|
|
12363
12386
|
role: "dialog",
|
|
12364
12387
|
"aria-describedby": q(i).descriptionId,
|
|
12365
12388
|
"aria-labelledby": q(i).titleId,
|
|
12366
|
-
"data-state": q(
|
|
12389
|
+
"data-state": q(jp)(q(i).open.value)
|
|
12367
12390
|
}, e.$attrs, {
|
|
12368
12391
|
onDismiss: t[0] ||= (e) => q(i).onOpenChange(!1),
|
|
12369
12392
|
onEscapeKeyDown: t[1] ||= (e) => r("escapeKeyDown", e),
|
|
@@ -12385,22 +12408,22 @@ var qp = /* @__PURE__ */ v({
|
|
|
12385
12408
|
_: 3
|
|
12386
12409
|
}, 8, ["trapped"]));
|
|
12387
12410
|
}
|
|
12388
|
-
}),
|
|
12411
|
+
}), Zp = function(e) {
|
|
12389
12412
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
12390
|
-
},
|
|
12391
|
-
return e && (e.host ||
|
|
12392
|
-
},
|
|
12413
|
+
}, Qp = /* @__PURE__ */ new WeakMap(), $p = /* @__PURE__ */ new WeakMap(), em = {}, tm = 0, nm = function(e) {
|
|
12414
|
+
return e && (e.host || nm(e.parentNode));
|
|
12415
|
+
}, rm = function(e, t) {
|
|
12393
12416
|
return t.map(function(t) {
|
|
12394
12417
|
if (e.contains(t)) return t;
|
|
12395
|
-
var n =
|
|
12418
|
+
var n = nm(t);
|
|
12396
12419
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
12397
12420
|
}).filter(function(e) {
|
|
12398
12421
|
return !!e;
|
|
12399
12422
|
});
|
|
12400
|
-
},
|
|
12401
|
-
var i =
|
|
12402
|
-
|
|
12403
|
-
var a =
|
|
12423
|
+
}, im = function(e, t, n, r) {
|
|
12424
|
+
var i = rm(t, Array.isArray(e) ? e : [e]);
|
|
12425
|
+
em[n] || (em[n] = /* @__PURE__ */ new WeakMap());
|
|
12426
|
+
var a = em[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
12404
12427
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
12405
12428
|
};
|
|
12406
12429
|
i.forEach(l);
|
|
@@ -12408,39 +12431,39 @@ var qp = /* @__PURE__ */ v({
|
|
|
12408
12431
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
12409
12432
|
if (s.has(e)) u(e);
|
|
12410
12433
|
else try {
|
|
12411
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
12412
|
-
|
|
12434
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Qp.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
12435
|
+
Qp.set(e, c), a.set(e, l), o.push(e), c === 1 && i && $p.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
12413
12436
|
} catch (t) {
|
|
12414
12437
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
12415
12438
|
}
|
|
12416
12439
|
});
|
|
12417
12440
|
};
|
|
12418
|
-
return u(t), s.clear(),
|
|
12441
|
+
return u(t), s.clear(), tm++, function() {
|
|
12419
12442
|
o.forEach(function(e) {
|
|
12420
|
-
var t =
|
|
12421
|
-
|
|
12422
|
-
}),
|
|
12443
|
+
var t = Qp.get(e) - 1, i = a.get(e) - 1;
|
|
12444
|
+
Qp.set(e, t), a.set(e, i), t || ($p.has(e) || e.removeAttribute(r), $p.delete(e)), i || e.removeAttribute(n);
|
|
12445
|
+
}), tm--, tm || (Qp = /* @__PURE__ */ new WeakMap(), Qp = /* @__PURE__ */ new WeakMap(), $p = /* @__PURE__ */ new WeakMap(), em = {});
|
|
12423
12446
|
};
|
|
12424
|
-
},
|
|
12447
|
+
}, am = function(e, t, n) {
|
|
12425
12448
|
n === void 0 && (n = "data-aria-hidden");
|
|
12426
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
12427
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))),
|
|
12449
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Zp(e);
|
|
12450
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), im(r, i, n, "aria-hidden")) : function() {
|
|
12428
12451
|
return null;
|
|
12429
12452
|
};
|
|
12430
12453
|
};
|
|
12431
12454
|
//#endregion
|
|
12432
12455
|
//#region node_modules/reka-ui/dist/shared/useHideOthers.js
|
|
12433
|
-
function
|
|
12456
|
+
function om(e) {
|
|
12434
12457
|
let t;
|
|
12435
|
-
Y(() =>
|
|
12436
|
-
e ? t =
|
|
12458
|
+
Y(() => Yf(e), (e) => {
|
|
12459
|
+
e ? t = am(e) : t && t();
|
|
12437
12460
|
}), ne(() => {
|
|
12438
12461
|
t && t();
|
|
12439
12462
|
});
|
|
12440
12463
|
}
|
|
12441
12464
|
//#endregion
|
|
12442
12465
|
//#region node_modules/reka-ui/dist/Dialog/DialogContentModal.js
|
|
12443
|
-
var
|
|
12466
|
+
var sm = /* @__PURE__ */ v({
|
|
12444
12467
|
__name: "DialogContentModal",
|
|
12445
12468
|
props: {
|
|
12446
12469
|
forceMount: { type: Boolean },
|
|
@@ -12458,8 +12481,8 @@ var am = /* @__PURE__ */ v({
|
|
|
12458
12481
|
"closeAutoFocus"
|
|
12459
12482
|
],
|
|
12460
12483
|
setup(e, { emit: t }) {
|
|
12461
|
-
let n = e, r = t, i =
|
|
12462
|
-
return
|
|
12484
|
+
let n = e, r = t, i = hp(), a = fp(r), { forwardRef: o, currentElement: s } = ap();
|
|
12485
|
+
return om(s), (e, t) => (R(), l(Xp, A({
|
|
12463
12486
|
...n,
|
|
12464
12487
|
...q(a)
|
|
12465
12488
|
}, {
|
|
@@ -12481,7 +12504,7 @@ var am = /* @__PURE__ */ v({
|
|
|
12481
12504
|
_: 3
|
|
12482
12505
|
}, 16, ["trap-focus"]));
|
|
12483
12506
|
}
|
|
12484
|
-
}),
|
|
12507
|
+
}), cm = /* @__PURE__ */ v({
|
|
12485
12508
|
__name: "DialogContentNonModal",
|
|
12486
12509
|
props: {
|
|
12487
12510
|
forceMount: { type: Boolean },
|
|
@@ -12499,10 +12522,10 @@ var am = /* @__PURE__ */ v({
|
|
|
12499
12522
|
"closeAutoFocus"
|
|
12500
12523
|
],
|
|
12501
12524
|
setup(e, { emit: t }) {
|
|
12502
|
-
let n = e, r =
|
|
12503
|
-
|
|
12504
|
-
let i =
|
|
12505
|
-
return (e, t) => (R(), l(
|
|
12525
|
+
let n = e, r = fp(t);
|
|
12526
|
+
ap();
|
|
12527
|
+
let i = hp(), a = B(!1), o = B(!1);
|
|
12528
|
+
return (e, t) => (R(), l(Xp, A({
|
|
12506
12529
|
...n,
|
|
12507
12530
|
...q(r)
|
|
12508
12531
|
}, {
|
|
@@ -12521,7 +12544,7 @@ var am = /* @__PURE__ */ v({
|
|
|
12521
12544
|
_: 3
|
|
12522
12545
|
}, 16));
|
|
12523
12546
|
}
|
|
12524
|
-
}),
|
|
12547
|
+
}), lm = /* @__PURE__ */ v({
|
|
12525
12548
|
__name: "DialogContent",
|
|
12526
12549
|
props: {
|
|
12527
12550
|
forceMount: { type: Boolean },
|
|
@@ -12539,9 +12562,9 @@ var am = /* @__PURE__ */ v({
|
|
|
12539
12562
|
"closeAutoFocus"
|
|
12540
12563
|
],
|
|
12541
12564
|
setup(e, { emit: t }) {
|
|
12542
|
-
let n = e, r = t, i =
|
|
12543
|
-
return (e, t) => (R(), l(q(
|
|
12544
|
-
default: X(() => [q(i).modal.value ? (R(), l(
|
|
12565
|
+
let n = e, r = t, i = hp(), a = fp(r), { forwardRef: o } = ap();
|
|
12566
|
+
return (e, t) => (R(), l(q(dp), { present: e.forceMount || q(i).open.value }, {
|
|
12567
|
+
default: X(() => [q(i).modal.value ? (R(), l(sm, A({
|
|
12545
12568
|
key: 0,
|
|
12546
12569
|
ref: q(o)
|
|
12547
12570
|
}, {
|
|
@@ -12551,7 +12574,7 @@ var am = /* @__PURE__ */ v({
|
|
|
12551
12574
|
}), {
|
|
12552
12575
|
default: X(() => [H(e.$slots, "default")]),
|
|
12553
12576
|
_: 3
|
|
12554
|
-
}, 16)) : (R(), l(
|
|
12577
|
+
}, 16)) : (R(), l(cm, A({
|
|
12555
12578
|
key: 1,
|
|
12556
12579
|
ref: q(o)
|
|
12557
12580
|
}, {
|
|
@@ -12568,33 +12591,33 @@ var am = /* @__PURE__ */ v({
|
|
|
12568
12591
|
});
|
|
12569
12592
|
//#endregion
|
|
12570
12593
|
//#region node_modules/defu/dist/defu.mjs
|
|
12571
|
-
function
|
|
12594
|
+
function um(e) {
|
|
12572
12595
|
if (typeof e != "object" || !e) return !1;
|
|
12573
12596
|
let t = Object.getPrototypeOf(e);
|
|
12574
12597
|
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
12575
12598
|
}
|
|
12576
|
-
function
|
|
12577
|
-
if (!
|
|
12599
|
+
function dm(e, t, n = ".", r) {
|
|
12600
|
+
if (!um(t)) return dm(e, {}, n, r);
|
|
12578
12601
|
let i = Object.assign({}, t);
|
|
12579
12602
|
for (let t in e) {
|
|
12580
12603
|
if (t === "__proto__" || t === "constructor") continue;
|
|
12581
12604
|
let a = e[t];
|
|
12582
|
-
a != null && (r && r(i, t, a, n) || (Array.isArray(a) && Array.isArray(i[t]) ? i[t] = [...a, ...i[t]] :
|
|
12605
|
+
a != null && (r && r(i, t, a, n) || (Array.isArray(a) && Array.isArray(i[t]) ? i[t] = [...a, ...i[t]] : um(a) && um(i[t]) ? i[t] = dm(a, i[t], (n ? `${n}.` : "") + t.toString(), r) : i[t] = a));
|
|
12583
12606
|
}
|
|
12584
12607
|
return i;
|
|
12585
12608
|
}
|
|
12586
|
-
function
|
|
12587
|
-
return (...t) => t.reduce((t, n) =>
|
|
12609
|
+
function fm(e) {
|
|
12610
|
+
return (...t) => t.reduce((t, n) => dm(t, n, "", e), {});
|
|
12588
12611
|
}
|
|
12589
|
-
var
|
|
12612
|
+
var pm = fm(), mm = Lf(() => {
|
|
12590
12613
|
let e = B(/* @__PURE__ */ new Map()), t = B(), n = c(() => {
|
|
12591
12614
|
for (let t of e.value.values()) if (t) return !0;
|
|
12592
12615
|
return !1;
|
|
12593
|
-
}), r =
|
|
12594
|
-
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "",
|
|
12616
|
+
}), r = rp({ scrollBody: B(!0) }), i = null, a = () => {
|
|
12617
|
+
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", Hf && i?.(), t.value = void 0;
|
|
12595
12618
|
};
|
|
12596
12619
|
return Y(n, (e, n) => {
|
|
12597
|
-
if (!
|
|
12620
|
+
if (!Rf) return;
|
|
12598
12621
|
if (!e) {
|
|
12599
12622
|
n && a();
|
|
12600
12623
|
return;
|
|
@@ -12603,14 +12626,14 @@ var dm = um(), fm = Ff(() => {
|
|
|
12603
12626
|
let o = window.innerWidth - document.documentElement.clientWidth, s = {
|
|
12604
12627
|
padding: o,
|
|
12605
12628
|
margin: 0
|
|
12606
|
-
}, c = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ?
|
|
12629
|
+
}, c = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? pm({
|
|
12607
12630
|
padding: r.scrollBody.value.padding === !0 ? o : r.scrollBody.value.padding,
|
|
12608
12631
|
margin: r.scrollBody.value.margin === !0 ? o : r.scrollBody.value.margin
|
|
12609
12632
|
}, s) : s : {
|
|
12610
12633
|
padding: 0,
|
|
12611
12634
|
margin: 0
|
|
12612
12635
|
};
|
|
12613
|
-
o > 0 && (document.body.style.paddingRight = typeof c.padding == "number" ? `${c.padding}px` : String(c.padding), document.body.style.marginRight = typeof c.margin == "number" ? `${c.margin}px` : String(c.margin), document.body.style.setProperty("--scrollbar-width", `${o}px`), document.body.style.overflow = "hidden"),
|
|
12636
|
+
o > 0 && (document.body.style.paddingRight = typeof c.padding == "number" ? `${c.padding}px` : String(c.padding), document.body.style.marginRight = typeof c.margin == "number" ? `${c.margin}px` : String(c.margin), document.body.style.setProperty("--scrollbar-width", `${o}px`), document.body.style.overflow = "hidden"), Hf && (i = Xf(document, "touchmove", (e) => _m(e), { passive: !1 })), j(() => {
|
|
12614
12637
|
document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
|
|
12615
12638
|
});
|
|
12616
12639
|
}, {
|
|
@@ -12618,40 +12641,40 @@ var dm = um(), fm = Ff(() => {
|
|
|
12618
12641
|
flush: "sync"
|
|
12619
12642
|
}), e;
|
|
12620
12643
|
});
|
|
12621
|
-
function
|
|
12622
|
-
let t = Math.random().toString(36).substring(2, 7), n =
|
|
12644
|
+
function hm(e) {
|
|
12645
|
+
let t = Math.random().toString(36).substring(2, 7), n = mm();
|
|
12623
12646
|
n.value.set(t, e ?? !1);
|
|
12624
12647
|
let r = c({
|
|
12625
12648
|
get: () => n.value.get(t) ?? !1,
|
|
12626
12649
|
set: (e) => n.value.set(t, e)
|
|
12627
12650
|
});
|
|
12628
|
-
return
|
|
12651
|
+
return Kf(() => {
|
|
12629
12652
|
n.value.delete(t);
|
|
12630
12653
|
}), r;
|
|
12631
12654
|
}
|
|
12632
|
-
function
|
|
12655
|
+
function gm(e) {
|
|
12633
12656
|
let t = window.getComputedStyle(e);
|
|
12634
12657
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
12635
12658
|
{
|
|
12636
12659
|
let t = e.parentNode;
|
|
12637
|
-
return !(t instanceof Element) || t.tagName === "BODY" ? !1 :
|
|
12660
|
+
return !(t instanceof Element) || t.tagName === "BODY" ? !1 : gm(t);
|
|
12638
12661
|
}
|
|
12639
12662
|
}
|
|
12640
|
-
function
|
|
12663
|
+
function _m(e) {
|
|
12641
12664
|
let t = e || window.event, n = t.target;
|
|
12642
|
-
return n instanceof Element &&
|
|
12665
|
+
return n instanceof Element && gm(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
|
|
12643
12666
|
}
|
|
12644
12667
|
//#endregion
|
|
12645
12668
|
//#region node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js
|
|
12646
|
-
var
|
|
12669
|
+
var vm = /* @__PURE__ */ v({
|
|
12647
12670
|
__name: "DialogOverlayImpl",
|
|
12648
12671
|
props: {
|
|
12649
12672
|
asChild: { type: Boolean },
|
|
12650
12673
|
as: {}
|
|
12651
12674
|
},
|
|
12652
12675
|
setup(e) {
|
|
12653
|
-
let t =
|
|
12654
|
-
return
|
|
12676
|
+
let t = hp();
|
|
12677
|
+
return hm(!0), ap(), (e, n) => (R(), l(q(Pf), {
|
|
12655
12678
|
as: e.as,
|
|
12656
12679
|
"as-child": e.asChild,
|
|
12657
12680
|
"data-state": q(t).open.value ? "open" : "closed",
|
|
@@ -12665,7 +12688,7 @@ var gm = /* @__PURE__ */ v({
|
|
|
12665
12688
|
"data-state"
|
|
12666
12689
|
]));
|
|
12667
12690
|
}
|
|
12668
|
-
}),
|
|
12691
|
+
}), ym = /* @__PURE__ */ v({
|
|
12669
12692
|
__name: "DialogOverlay",
|
|
12670
12693
|
props: {
|
|
12671
12694
|
forceMount: { type: Boolean },
|
|
@@ -12673,12 +12696,12 @@ var gm = /* @__PURE__ */ v({
|
|
|
12673
12696
|
as: {}
|
|
12674
12697
|
},
|
|
12675
12698
|
setup(e) {
|
|
12676
|
-
let t =
|
|
12677
|
-
return (e, r) => q(t)?.modal.value ? (R(), l(q(
|
|
12699
|
+
let t = hp(), { forwardRef: n } = ap();
|
|
12700
|
+
return (e, r) => q(t)?.modal.value ? (R(), l(q(dp), {
|
|
12678
12701
|
key: 0,
|
|
12679
12702
|
present: e.forceMount || q(t).open.value
|
|
12680
12703
|
}, {
|
|
12681
|
-
default: X(() => [g(
|
|
12704
|
+
default: X(() => [g(vm, A(e.$attrs, {
|
|
12682
12705
|
ref: q(n),
|
|
12683
12706
|
as: e.as,
|
|
12684
12707
|
"as-child": e.asChild
|
|
@@ -12689,20 +12712,20 @@ var gm = /* @__PURE__ */ v({
|
|
|
12689
12712
|
_: 3
|
|
12690
12713
|
}, 8, ["present"])) : u("", !0);
|
|
12691
12714
|
}
|
|
12692
|
-
}),
|
|
12715
|
+
}), bm = /* @__PURE__ */ v({
|
|
12693
12716
|
__name: "DialogTitle",
|
|
12694
12717
|
props: {
|
|
12695
12718
|
asChild: { type: Boolean },
|
|
12696
12719
|
as: { default: "h2" }
|
|
12697
12720
|
},
|
|
12698
12721
|
setup(e) {
|
|
12699
|
-
let t = e, n =
|
|
12700
|
-
return
|
|
12722
|
+
let t = e, n = hp();
|
|
12723
|
+
return ap(), (e, r) => (R(), l(q(Pf), A(t, { id: q(n).titleId }), {
|
|
12701
12724
|
default: X(() => [H(e.$slots, "default")]),
|
|
12702
12725
|
_: 3
|
|
12703
12726
|
}, 16, ["id"]));
|
|
12704
12727
|
}
|
|
12705
|
-
}),
|
|
12728
|
+
}), xm = /* @__PURE__ */ v({
|
|
12706
12729
|
__name: "DialogPortal",
|
|
12707
12730
|
props: {
|
|
12708
12731
|
to: {},
|
|
@@ -12712,7 +12735,7 @@ var gm = /* @__PURE__ */ v({
|
|
|
12712
12735
|
},
|
|
12713
12736
|
setup(e) {
|
|
12714
12737
|
let t = e;
|
|
12715
|
-
return (e, n) => (R(), l(q(
|
|
12738
|
+
return (e, n) => (R(), l(q(vp), N(S(t)), {
|
|
12716
12739
|
default: X(() => [H(e.$slots, "default")]),
|
|
12717
12740
|
_: 3
|
|
12718
12741
|
}, 16));
|
|
@@ -12730,16 +12753,16 @@ var gm = /* @__PURE__ */ v({
|
|
|
12730
12753
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
12731
12754
|
}
|
|
12732
12755
|
})();
|
|
12733
|
-
var
|
|
12756
|
+
var Sm = typeof window < "u" && typeof document < "u";
|
|
12734
12757
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12735
|
-
var
|
|
12736
|
-
function
|
|
12758
|
+
var Cm = (e) => typeof e < "u";
|
|
12759
|
+
function wm(e) {
|
|
12737
12760
|
return JSON.parse(JSON.stringify(e));
|
|
12738
12761
|
}
|
|
12739
|
-
function
|
|
12762
|
+
function Tm(e, t, n, r = {}) {
|
|
12740
12763
|
let { clone: i = !1, passive: a = !1, eventName: o, deep: s = !1, defaultValue: l, shouldEmit: u } = r, d = b(), f = n || d?.emit || (d?.$emit)?.bind(d) || (d?.proxy?.$emit)?.bind(d?.proxy), p = o;
|
|
12741
12764
|
t ||= "modelValue", p ||= `update:${t.toString()}`;
|
|
12742
|
-
let m = (e) => i ? typeof i == "function" ? i(e) :
|
|
12765
|
+
let m = (e) => i ? typeof i == "function" ? i(e) : wm(e) : e, h = () => Cm(e[t]) ? m(e[t]) : l, g = (e) => {
|
|
12743
12766
|
u ? u(e) && f(p, e) : f(p, e);
|
|
12744
12767
|
};
|
|
12745
12768
|
if (a) {
|
|
@@ -12758,8 +12781,8 @@ function Cm(e, t, n, r = {}) {
|
|
|
12758
12781
|
}
|
|
12759
12782
|
});
|
|
12760
12783
|
}
|
|
12761
|
-
var [
|
|
12762
|
-
function
|
|
12784
|
+
var [Em, Dm] = np("DrawerRoot"), Om = /* @__PURE__ */ new WeakMap();
|
|
12785
|
+
function km(e, t, n = !1) {
|
|
12763
12786
|
if (!e || !(e instanceof HTMLElement) || !t) return;
|
|
12764
12787
|
let r = {};
|
|
12765
12788
|
Object.entries(t).forEach(([t, n]) => {
|
|
@@ -12768,23 +12791,23 @@ function Dm(e, t, n = !1) {
|
|
|
12768
12791
|
return;
|
|
12769
12792
|
}
|
|
12770
12793
|
r[t] = e.style[t], e.style[t] = n;
|
|
12771
|
-
}), !n &&
|
|
12794
|
+
}), !n && Om.set(e, r);
|
|
12772
12795
|
}
|
|
12773
|
-
function
|
|
12796
|
+
function Am(e, t) {
|
|
12774
12797
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
12775
|
-
let n =
|
|
12798
|
+
let n = Om.get(e);
|
|
12776
12799
|
n && Object.entries(n).forEach(([t, n]) => {
|
|
12777
12800
|
e.style[t] = n;
|
|
12778
12801
|
});
|
|
12779
12802
|
}
|
|
12780
|
-
function
|
|
12803
|
+
function jm(e, t) {
|
|
12781
12804
|
let n = window.getComputedStyle(e), r = n.transform || n.webkitTransform || n.mozTransform, i = r.match(/^matrix3d\((.+)\)$/);
|
|
12782
|
-
return i ? Number.parseFloat(i[1].split(", ")[
|
|
12805
|
+
return i ? Number.parseFloat(i[1].split(", ")[Nm(t) ? 13 : 12]) : (i = r.match(/^matrix\((.+)\)$/), i ? Number.parseFloat(i[1].split(", ")[Nm(t) ? 5 : 4]) : null);
|
|
12783
12806
|
}
|
|
12784
|
-
function
|
|
12807
|
+
function Mm(e) {
|
|
12785
12808
|
return 8 * (Math.log(e + 1) - 2);
|
|
12786
12809
|
}
|
|
12787
|
-
function
|
|
12810
|
+
function Nm(e) {
|
|
12788
12811
|
switch (e) {
|
|
12789
12812
|
case "top":
|
|
12790
12813
|
case "bottom": return !0;
|
|
@@ -12793,14 +12816,14 @@ function jm(e) {
|
|
|
12793
12816
|
default: return e;
|
|
12794
12817
|
}
|
|
12795
12818
|
}
|
|
12796
|
-
function
|
|
12819
|
+
function Pm(e, t) {
|
|
12797
12820
|
if (!e) return () => {};
|
|
12798
12821
|
let n = e.style.cssText;
|
|
12799
12822
|
return Object.assign(e.style, t), () => {
|
|
12800
12823
|
e.style.cssText = n;
|
|
12801
12824
|
};
|
|
12802
12825
|
}
|
|
12803
|
-
var
|
|
12826
|
+
var Fm = {
|
|
12804
12827
|
DURATION: .5,
|
|
12805
12828
|
EASE: [
|
|
12806
12829
|
.32,
|
|
@@ -12808,8 +12831,8 @@ var Nm = {
|
|
|
12808
12831
|
0,
|
|
12809
12832
|
1
|
|
12810
12833
|
]
|
|
12811
|
-
},
|
|
12812
|
-
function
|
|
12834
|
+
}, Im = .4, Lm = .25, Rm = 100, zm = 8, Bm = 16, Vm = 26, Hm = "vaul-dragging";
|
|
12835
|
+
function Um({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fadeFromIndex: i, onSnapPointChange: a, direction: o }) {
|
|
12813
12836
|
let s = B(typeof window < "u" ? {
|
|
12814
12837
|
innerWidth: window.innerWidth,
|
|
12815
12838
|
innerHeight: window.innerHeight
|
|
@@ -12827,7 +12850,7 @@ function Vm({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12827
12850
|
});
|
|
12828
12851
|
let u = c(() => (t.value && e.value === t.value[t.value.length - 1]) ?? null), d = c(() => t.value && t.value.length > 0 && (i?.value || i?.value === 0) && !Number.isNaN(i?.value) && t.value[i?.value ?? -1] === e.value || !t.value), f = c(() => t.value?.findIndex((t) => t === e.value) ?? null), p = c(() => t.value?.map((e) => {
|
|
12829
12852
|
let t = typeof e == "string", n = 0;
|
|
12830
|
-
if (t && (n = Number.parseInt(e, 10)),
|
|
12853
|
+
if (t && (n = Number.parseInt(e, 10)), Nm(o.value)) {
|
|
12831
12854
|
let r = t ? n : s.value ? e * s.value.innerHeight : 0;
|
|
12832
12855
|
return s.value ? o.value === "bottom" ? s.value.innerHeight - r : -s.value.innerHeight + r : r;
|
|
12833
12856
|
}
|
|
@@ -12836,15 +12859,15 @@ function Vm({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12836
12859
|
}) ?? []), m = c(() => f.value === null ? null : p.value?.[f.value]), h = (s) => {
|
|
12837
12860
|
let c = p.value?.findIndex((e) => e === s) ?? null;
|
|
12838
12861
|
j(() => {
|
|
12839
|
-
a(c, p.value),
|
|
12840
|
-
transition: `transform ${
|
|
12841
|
-
transform:
|
|
12862
|
+
a(c, p.value), km(n.value?.$el, {
|
|
12863
|
+
transition: `transform ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`,
|
|
12864
|
+
transform: Nm(o.value) ? `translate3d(0, ${s}px, 0)` : `translate3d(${s}px, 0, 0)`
|
|
12842
12865
|
});
|
|
12843
|
-
}), p.value && c !== p.value.length - 1 && c !== i?.value ?
|
|
12844
|
-
transition: `opacity ${
|
|
12866
|
+
}), p.value && c !== p.value.length - 1 && c !== i?.value ? km(r.value?.$el, {
|
|
12867
|
+
transition: `opacity ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`,
|
|
12845
12868
|
opacity: "0"
|
|
12846
|
-
}) :
|
|
12847
|
-
transition: `opacity ${
|
|
12869
|
+
}) : km(r.value?.$el, {
|
|
12870
|
+
transition: `opacity ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`,
|
|
12848
12871
|
opacity: "1"
|
|
12849
12872
|
}), e.value = c === null ? null : t.value?.[c] ?? null;
|
|
12850
12873
|
};
|
|
@@ -12861,7 +12884,7 @@ function Vm({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12861
12884
|
function g({ draggedDistance: e, closeDrawer: n, velocity: a, dismissible: s }) {
|
|
12862
12885
|
if (i.value === void 0) return;
|
|
12863
12886
|
let c = o.value === "bottom" || o.value === "right" ? (m.value ?? 0) - e : (m.value ?? 0) + e, l = f.value === i.value - 1, d = f.value === 0, g = e > 0;
|
|
12864
|
-
if (l &&
|
|
12887
|
+
if (l && km(r.value?.$el, { transition: `opacity ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})` }), a > 2 && !g) {
|
|
12865
12888
|
s ? n() : h(p.value[0]);
|
|
12866
12889
|
return;
|
|
12867
12890
|
}
|
|
@@ -12869,8 +12892,8 @@ function Vm({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12869
12892
|
h(p.value[t.value.length - 1]);
|
|
12870
12893
|
return;
|
|
12871
12894
|
}
|
|
12872
|
-
let _ = p.value?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), v =
|
|
12873
|
-
if (a >
|
|
12895
|
+
let _ = p.value?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), v = Nm(o.value) ? window.innerHeight : window.innerWidth;
|
|
12896
|
+
if (a > Im && Math.abs(e) < v * .4) {
|
|
12874
12897
|
let e = g ? 1 : -1;
|
|
12875
12898
|
if (e > 0 && u) {
|
|
12876
12899
|
h(p.value[(t.value?.length ?? 0) - 1]);
|
|
@@ -12885,7 +12908,7 @@ function Vm({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12885
12908
|
function _({ draggedDistance: e }) {
|
|
12886
12909
|
if (m.value === null) return;
|
|
12887
12910
|
let t = o.value === "bottom" || o.value === "right" ? m.value - e : m.value + e;
|
|
12888
|
-
(o.value === "bottom" || o.value === "right") && t < p.value[p.value.length - 1] || (o.value === "top" || o.value === "left") && t > p.value[p.value.length - 1] ||
|
|
12911
|
+
(o.value === "bottom" || o.value === "right") && t < p.value[p.value.length - 1] || (o.value === "top" || o.value === "left") && t > p.value[p.value.length - 1] || km(n.value?.$el, { transform: Nm(o.value) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
|
|
12889
12912
|
}
|
|
12890
12913
|
function v(e, n) {
|
|
12891
12914
|
if (!t.value || typeof f.value != "number" || !p.value || i.value === void 0) return null;
|
|
@@ -12906,15 +12929,15 @@ function Vm({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12906
12929
|
snapPointsOffset: p
|
|
12907
12930
|
};
|
|
12908
12931
|
}
|
|
12909
|
-
function
|
|
12932
|
+
function Wm() {
|
|
12910
12933
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
12911
12934
|
}
|
|
12912
|
-
var
|
|
12913
|
-
function
|
|
12935
|
+
var Gm = null;
|
|
12936
|
+
function Km(e) {
|
|
12914
12937
|
let { isOpen: t, modal: n, nested: r, hasBeenOpened: i, preventScrollRestoration: a, noBodyStyles: o } = e, s = B(typeof window < "u" ? window.location.href : ""), c = B(0);
|
|
12915
12938
|
function l() {
|
|
12916
|
-
if (
|
|
12917
|
-
|
|
12939
|
+
if (Wm() && Gm === null && t.value && !o.value) {
|
|
12940
|
+
Gm = {
|
|
12918
12941
|
position: document.body.style.position,
|
|
12919
12942
|
top: document.body.style.top,
|
|
12920
12943
|
left: document.body.style.left,
|
|
@@ -12935,15 +12958,15 @@ function Wm(e) {
|
|
|
12935
12958
|
}
|
|
12936
12959
|
}
|
|
12937
12960
|
function u() {
|
|
12938
|
-
if (
|
|
12961
|
+
if (Wm() && Gm !== null && !o.value) {
|
|
12939
12962
|
let e = -Number.parseInt(document.body.style.top, 10), t = -Number.parseInt(document.body.style.left, 10);
|
|
12940
|
-
Object.assign(document.body.style,
|
|
12963
|
+
Object.assign(document.body.style, Gm), window.requestAnimationFrame(() => {
|
|
12941
12964
|
if (a.value && s.value !== window.location.href) {
|
|
12942
12965
|
s.value = window.location.href;
|
|
12943
12966
|
return;
|
|
12944
12967
|
}
|
|
12945
12968
|
window.scrollTo(t, e);
|
|
12946
|
-
}),
|
|
12969
|
+
}), Gm = null;
|
|
12947
12970
|
}
|
|
12948
12971
|
}
|
|
12949
12972
|
return L(() => {
|
|
@@ -12963,15 +12986,15 @@ function Wm(e) {
|
|
|
12963
12986
|
}, 500)) : u());
|
|
12964
12987
|
}), { restorePositionSetting: u };
|
|
12965
12988
|
}
|
|
12966
|
-
function
|
|
12989
|
+
function qm(e, t) {
|
|
12967
12990
|
return e && e.value ? e : t;
|
|
12968
12991
|
}
|
|
12969
|
-
function
|
|
12992
|
+
function Jm(e) {
|
|
12970
12993
|
let { emitDrag: t, emitRelease: n, emitClose: r, emitOpenChange: i, open: a, dismissible: o, nested: s, modal: l, shouldScaleBackground: u, setBackgroundColorOnScale: d, scrollLockTimeout: f, closeThreshold: p, activeSnapPoint: m, fadeFromIndex: h, direction: g, noBodyStyles: _, handleOnly: v, preventScrollRestoration: y } = e, b = B(a.value ?? !1), x = B(!1), S = B(!1), C = B(!1), w = B(null), T = B(null), E = B(null), D = B(null), O = B(null), k = B(!1), A = B(null), j = B(0), M = B(!1);
|
|
12971
12994
|
B(0);
|
|
12972
12995
|
let N = B(null);
|
|
12973
12996
|
B(0);
|
|
12974
|
-
let P = c(() => N.value?.$el.getBoundingClientRect().height || 0), F =
|
|
12997
|
+
let P = c(() => N.value?.$el.getBoundingClientRect().height || 0), F = qm(e.snapPoints, B(void 0)), I = c(() => F && (F.value?.length ?? 0) > 0), ee = B(null), { activeSnapPointIndex: L, onRelease: te, snapPointsOffset: ne, onDrag: R, shouldFade: re, getPercentageDragged: ie } = Um({
|
|
12975
12998
|
snapPoints: F,
|
|
12976
12999
|
activeSnapPoint: m,
|
|
12977
13000
|
drawerRef: N,
|
|
@@ -12983,7 +13006,7 @@ function Km(e) {
|
|
|
12983
13006
|
function z(e, t) {
|
|
12984
13007
|
F.value && e === t.length - 1 && (T.value = /* @__PURE__ */ new Date());
|
|
12985
13008
|
}
|
|
12986
|
-
|
|
13009
|
+
Km({
|
|
12987
13010
|
isOpen: b,
|
|
12988
13011
|
modal: l,
|
|
12989
13012
|
nested: s,
|
|
@@ -12992,11 +13015,11 @@ function Km(e) {
|
|
|
12992
13015
|
preventScrollRestoration: y
|
|
12993
13016
|
});
|
|
12994
13017
|
function V() {
|
|
12995
|
-
return (window.innerWidth -
|
|
13018
|
+
return (window.innerWidth - Vm) / window.innerWidth;
|
|
12996
13019
|
}
|
|
12997
13020
|
function H(e, t) {
|
|
12998
13021
|
if (!e) return !1;
|
|
12999
|
-
let n = e, r = window.getSelection()?.toString(), i = N.value ?
|
|
13022
|
+
let n = e, r = window.getSelection()?.toString(), i = N.value ? jm(N.value.$el, g.value) : null, a = /* @__PURE__ */ new Date();
|
|
13000
13023
|
if (n.hasAttribute("data-vaul-no-drag") || n.closest("[data-vaul-no-drag]")) return !1;
|
|
13001
13024
|
if (g.value === "right" || g.value === "left") return !0;
|
|
13002
13025
|
if (T.value && a.getTime() - T.value.getTime() < 500) return !1;
|
|
@@ -13013,51 +13036,51 @@ function Km(e) {
|
|
|
13013
13036
|
return !0;
|
|
13014
13037
|
}
|
|
13015
13038
|
function U(e) {
|
|
13016
|
-
!o.value && !F.value || N.value && !N.value.$el.contains(e.target) || (S.value = !0, E.value = /* @__PURE__ */ new Date(), e.target.setPointerCapture(e.pointerId), j.value =
|
|
13039
|
+
!o.value && !F.value || N.value && !N.value.$el.contains(e.target) || (S.value = !0, E.value = /* @__PURE__ */ new Date(), e.target.setPointerCapture(e.pointerId), j.value = Nm(g.value) ? e.clientY : e.clientX);
|
|
13017
13040
|
}
|
|
13018
13041
|
function ae(e) {
|
|
13019
13042
|
var n;
|
|
13020
13043
|
if (N.value && S.value) {
|
|
13021
|
-
let r = g.value === "bottom" || g.value === "right" ? 1 : -1, i = (j.value - (
|
|
13044
|
+
let r = g.value === "bottom" || g.value === "right" ? 1 : -1, i = (j.value - (Nm(g.value) ? e.clientY : e.clientX)) * r, a = i > 0, s = F.value && !o.value && !a;
|
|
13022
13045
|
if (s && L.value === 0) return;
|
|
13023
13046
|
let c = Math.abs(i), l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]"), d = c / P.value, f = ie(c, a);
|
|
13024
13047
|
if (f !== null && (d = f), s && d >= 1 || !k.value && !H(e.target, a)) return;
|
|
13025
|
-
if ((n = N?.value) == null || n.$el.classList.add(
|
|
13026
|
-
let e =
|
|
13027
|
-
|
|
13048
|
+
if ((n = N?.value) == null || n.$el.classList.add(Hm), k.value = !0, km(N.value?.$el, { transition: "none" }), km(w.value?.$el, { transition: "none" }), F.value && R({ draggedDistance: i }), a && !F.value) {
|
|
13049
|
+
let e = Mm(i), t = Math.min(e * -1, 0) * r;
|
|
13050
|
+
km(N.value?.$el, { transform: Nm(g.value) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
|
|
13028
13051
|
return;
|
|
13029
13052
|
}
|
|
13030
13053
|
let p = 1 - d;
|
|
13031
|
-
if ((re.value || h.value && L.value === h.value - 1) && (t(d),
|
|
13054
|
+
if ((re.value || h.value && L.value === h.value - 1) && (t(d), km(w.value?.$el, {
|
|
13032
13055
|
opacity: `${p}`,
|
|
13033
13056
|
transition: "none"
|
|
13034
13057
|
}, !0)), l && w.value && u.value) {
|
|
13035
13058
|
let e = Math.min(V() + d * (1 - V()), 1), t = 8 - d * 8, n = Math.max(0, 14 - d * 14);
|
|
13036
|
-
|
|
13059
|
+
km(l, {
|
|
13037
13060
|
borderRadius: `${t}px`,
|
|
13038
|
-
transform:
|
|
13061
|
+
transform: Nm(g.value) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
|
|
13039
13062
|
transition: "none"
|
|
13040
13063
|
}, !0);
|
|
13041
13064
|
}
|
|
13042
13065
|
if (!F.value) {
|
|
13043
13066
|
let e = c * r;
|
|
13044
|
-
|
|
13067
|
+
km(N.value?.$el, { transform: Nm(g.value) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
|
|
13045
13068
|
}
|
|
13046
13069
|
}
|
|
13047
13070
|
}
|
|
13048
13071
|
function W() {
|
|
13049
13072
|
if (!N.value) return;
|
|
13050
|
-
let e = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]"), t =
|
|
13051
|
-
|
|
13073
|
+
let e = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]"), t = jm(N.value.$el, g.value);
|
|
13074
|
+
km(N.value.$el, {
|
|
13052
13075
|
transform: "translate3d(0, 0, 0)",
|
|
13053
|
-
transition: `transform ${
|
|
13054
|
-
}),
|
|
13055
|
-
transition: `opacity ${
|
|
13076
|
+
transition: `transform ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`
|
|
13077
|
+
}), km(w.value?.$el, {
|
|
13078
|
+
transition: `opacity ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`,
|
|
13056
13079
|
opacity: "1"
|
|
13057
|
-
}), u.value && t && t > 0 && b.value &&
|
|
13058
|
-
borderRadius: `${
|
|
13080
|
+
}), u.value && t && t > 0 && b.value && km(e, {
|
|
13081
|
+
borderRadius: `${zm}px`,
|
|
13059
13082
|
overflow: "hidden",
|
|
13060
|
-
...
|
|
13083
|
+
...Nm(g.value) ? {
|
|
13061
13084
|
transform: `scale(${V()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
13062
13085
|
transformOrigin: "top"
|
|
13063
13086
|
} : {
|
|
@@ -13065,19 +13088,19 @@ function Km(e) {
|
|
|
13065
13088
|
transformOrigin: "left"
|
|
13066
13089
|
},
|
|
13067
13090
|
transitionProperty: "transform, border-radius",
|
|
13068
|
-
transitionDuration: `${
|
|
13069
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
13091
|
+
transitionDuration: `${Fm.DURATION}s`,
|
|
13092
|
+
transitionTimingFunction: `cubic-bezier(${Fm.EASE.join(",")})`
|
|
13070
13093
|
}, !0);
|
|
13071
13094
|
}
|
|
13072
13095
|
function G(e) {
|
|
13073
13096
|
N.value && (r(), e || (b.value = !1), window.setTimeout(() => {
|
|
13074
13097
|
F.value && (m.value = F.value[0]);
|
|
13075
|
-
},
|
|
13098
|
+
}, Fm.DURATION * 1e3));
|
|
13076
13099
|
}
|
|
13077
13100
|
be(() => {
|
|
13078
|
-
if (!b.value && u.value &&
|
|
13101
|
+
if (!b.value && u.value && Sm) {
|
|
13079
13102
|
let e = setTimeout(() => {
|
|
13080
|
-
|
|
13103
|
+
Am(document.body);
|
|
13081
13104
|
}, 200);
|
|
13082
13105
|
return () => clearTimeout(e);
|
|
13083
13106
|
}
|
|
@@ -13086,10 +13109,10 @@ function Km(e) {
|
|
|
13086
13109
|
});
|
|
13087
13110
|
function oe(e) {
|
|
13088
13111
|
if (!S.value || !N.value) return;
|
|
13089
|
-
N.value.$el.classList.remove(
|
|
13090
|
-
let t =
|
|
13112
|
+
N.value.$el.classList.remove(Hm), k.value = !1, S.value = !1, D.value = /* @__PURE__ */ new Date();
|
|
13113
|
+
let t = jm(N.value.$el, g.value);
|
|
13091
13114
|
if (!H(e.target, !1) || !t || Number.isNaN(t) || E.value === null) return;
|
|
13092
|
-
let r = D.value.getTime() - E.value.getTime(), i = j.value - (
|
|
13115
|
+
let r = D.value.getTime() - E.value.getTime(), i = j.value - (Nm(g.value) ? e.clientY : e.clientX), a = Math.abs(i) / r;
|
|
13093
13116
|
if (a > .05 && (C.value = !0, window.setTimeout(() => {
|
|
13094
13117
|
C.value = !1;
|
|
13095
13118
|
}, 200)), F.value) {
|
|
@@ -13105,7 +13128,7 @@ function Km(e) {
|
|
|
13105
13128
|
W(), n(!0);
|
|
13106
13129
|
return;
|
|
13107
13130
|
}
|
|
13108
|
-
if (a >
|
|
13131
|
+
if (a > Im) {
|
|
13109
13132
|
G(), n(!1);
|
|
13110
13133
|
return;
|
|
13111
13134
|
}
|
|
@@ -13120,31 +13143,31 @@ function Km(e) {
|
|
|
13120
13143
|
}, { immediate: !0 });
|
|
13121
13144
|
function se(e) {
|
|
13122
13145
|
var t;
|
|
13123
|
-
let n = e ? (window.innerWidth -
|
|
13124
|
-
A.value && window.clearTimeout(A.value),
|
|
13125
|
-
transition: `transform ${
|
|
13146
|
+
let n = e ? (window.innerWidth - Bm) / window.innerWidth : 1, r = e ? -16 : 0;
|
|
13147
|
+
A.value && window.clearTimeout(A.value), km(N.value?.$el, {
|
|
13148
|
+
transition: `transform ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`,
|
|
13126
13149
|
transform: `scale(${n}) translate3d(0, ${r}px, 0)`
|
|
13127
13150
|
}), !e && (t = N.value) != null && t.$el && (A.value = window.setTimeout(() => {
|
|
13128
|
-
let e =
|
|
13129
|
-
|
|
13151
|
+
let e = jm(N.value?.$el, g.value);
|
|
13152
|
+
km(N.value?.$el, {
|
|
13130
13153
|
transition: "none",
|
|
13131
|
-
transform:
|
|
13154
|
+
transform: Nm(g.value) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
13132
13155
|
});
|
|
13133
13156
|
}, 500));
|
|
13134
13157
|
}
|
|
13135
13158
|
function ce(e) {
|
|
13136
13159
|
if (e < 0) return;
|
|
13137
|
-
let t =
|
|
13138
|
-
|
|
13139
|
-
transform:
|
|
13160
|
+
let t = Nm(g.value) ? window.innerHeight : window.innerWidth, n = (t - Bm) / t, r = n + e * (1 - n), i = -16 + e * Bm;
|
|
13161
|
+
km(N.value?.$el, {
|
|
13162
|
+
transform: Nm(g.value) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
|
|
13140
13163
|
transition: "none"
|
|
13141
13164
|
});
|
|
13142
13165
|
}
|
|
13143
13166
|
function le(e) {
|
|
13144
|
-
let t =
|
|
13145
|
-
e &&
|
|
13146
|
-
transition: `transform ${
|
|
13147
|
-
transform:
|
|
13167
|
+
let t = Nm(g.value) ? window.innerHeight : window.innerWidth, n = e ? (t - Bm) / t : 1, r = e ? -16 : 0;
|
|
13168
|
+
e && km(N.value?.$el, {
|
|
13169
|
+
transition: `transform ${Fm.DURATION}s cubic-bezier(${Fm.EASE.join(",")})`,
|
|
13170
|
+
transform: Nm(g.value) ? `scale(${n}) translate3d(0, ${r}px, 0)` : `scale(${n}) translate3d(${r}px, 0, 0)`
|
|
13148
13171
|
});
|
|
13149
13172
|
}
|
|
13150
13173
|
return {
|
|
@@ -13187,11 +13210,11 @@ function Km(e) {
|
|
|
13187
13210
|
noBodyStyles: _
|
|
13188
13211
|
};
|
|
13189
13212
|
}
|
|
13190
|
-
var
|
|
13213
|
+
var Ym = /* @__PURE__ */ v({
|
|
13191
13214
|
__name: "DrawerRoot",
|
|
13192
13215
|
props: {
|
|
13193
13216
|
activeSnapPoint: { default: void 0 },
|
|
13194
|
-
closeThreshold: { default:
|
|
13217
|
+
closeThreshold: { default: Lm },
|
|
13195
13218
|
shouldScaleBackground: {
|
|
13196
13219
|
type: Boolean,
|
|
13197
13220
|
default: void 0
|
|
@@ -13200,7 +13223,7 @@ var qm = /* @__PURE__ */ v({
|
|
|
13200
13223
|
type: Boolean,
|
|
13201
13224
|
default: !0
|
|
13202
13225
|
},
|
|
13203
|
-
scrollLockTimeout: { default:
|
|
13226
|
+
scrollLockTimeout: { default: Rm },
|
|
13204
13227
|
fixed: {
|
|
13205
13228
|
type: Boolean,
|
|
13206
13229
|
default: void 0
|
|
@@ -13246,19 +13269,19 @@ var qm = /* @__PURE__ */ v({
|
|
|
13246
13269
|
setup(e, { expose: t, emit: n }) {
|
|
13247
13270
|
let r = e, i = n;
|
|
13248
13271
|
me();
|
|
13249
|
-
let a = c(() => r.fadeFromIndex ?? (r.snapPoints && r.snapPoints.length - 1)), o =
|
|
13272
|
+
let a = c(() => r.fadeFromIndex ?? (r.snapPoints && r.snapPoints.length - 1)), o = Tm(r, "open", i, {
|
|
13250
13273
|
defaultValue: r.defaultOpen,
|
|
13251
13274
|
passive: r.open === void 0
|
|
13252
|
-
}), s =
|
|
13275
|
+
}), s = Tm(r, "activeSnapPoint", i, { passive: r.activeSnapPoint === void 0 }), u = {
|
|
13253
13276
|
emitDrag: (e) => i("drag", e),
|
|
13254
13277
|
emitRelease: (e) => i("release", e),
|
|
13255
13278
|
emitClose: () => i("close"),
|
|
13256
13279
|
emitOpenChange: (e) => {
|
|
13257
13280
|
i("update:open", e), setTimeout(() => {
|
|
13258
13281
|
i("animationEnd", e);
|
|
13259
|
-
},
|
|
13282
|
+
}, Fm.DURATION * 1e3);
|
|
13260
13283
|
}
|
|
13261
|
-
}, { closeDrawer: d, hasBeenOpened: f, modal: p, isOpen: m } =
|
|
13284
|
+
}, { closeDrawer: d, hasBeenOpened: f, modal: p, isOpen: m } = Dm(Jm({
|
|
13262
13285
|
...u,
|
|
13263
13286
|
...le(r),
|
|
13264
13287
|
activeSnapPoint: s,
|
|
@@ -13272,7 +13295,7 @@ var qm = /* @__PURE__ */ v({
|
|
|
13272
13295
|
}
|
|
13273
13296
|
m.value = e, e ? f.value = !0 : d();
|
|
13274
13297
|
}
|
|
13275
|
-
return t({ open: m }), (e, t) => (R(), l(q(
|
|
13298
|
+
return t({ open: m }), (e, t) => (R(), l(q(_p), {
|
|
13276
13299
|
open: q(m),
|
|
13277
13300
|
modal: q(p),
|
|
13278
13301
|
"onUpdate:open": h
|
|
@@ -13281,7 +13304,7 @@ var qm = /* @__PURE__ */ v({
|
|
|
13281
13304
|
_: 3
|
|
13282
13305
|
}, 8, ["open", "modal"]));
|
|
13283
13306
|
}
|
|
13284
|
-
}),
|
|
13307
|
+
}), Xm = /* @__PURE__ */ v({
|
|
13285
13308
|
__name: "DrawerRootNested",
|
|
13286
13309
|
props: {
|
|
13287
13310
|
activeSnapPoint: {},
|
|
@@ -13311,7 +13334,7 @@ var qm = /* @__PURE__ */ v({
|
|
|
13311
13334
|
"animationEnd"
|
|
13312
13335
|
],
|
|
13313
13336
|
setup(e, { emit: t }) {
|
|
13314
|
-
let n = e, r = t, { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } =
|
|
13337
|
+
let n = e, r = t, { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } = Em();
|
|
13315
13338
|
function s() {
|
|
13316
13339
|
a(!1);
|
|
13317
13340
|
}
|
|
@@ -13321,8 +13344,8 @@ var qm = /* @__PURE__ */ v({
|
|
|
13321
13344
|
function u(e) {
|
|
13322
13345
|
e && a(e), r("update:open", e);
|
|
13323
13346
|
}
|
|
13324
|
-
let d =
|
|
13325
|
-
return (e, t) => (R(), l(
|
|
13347
|
+
let d = mp(n, r);
|
|
13348
|
+
return (e, t) => (R(), l(Ym, A(q(d), {
|
|
13326
13349
|
nested: "",
|
|
13327
13350
|
onClose: s,
|
|
13328
13351
|
onDrag: c,
|
|
@@ -13333,11 +13356,11 @@ var qm = /* @__PURE__ */ v({
|
|
|
13333
13356
|
_: 3
|
|
13334
13357
|
}, 16, ["onRelease"]));
|
|
13335
13358
|
}
|
|
13336
|
-
}),
|
|
13359
|
+
}), Zm = /* @__PURE__ */ v({
|
|
13337
13360
|
__name: "DrawerOverlay",
|
|
13338
13361
|
setup(e) {
|
|
13339
|
-
let { overlayRef: t, hasSnapPoints: n, isOpen: r, shouldFade: i } =
|
|
13340
|
-
return (e, a) => (R(), l(q(
|
|
13362
|
+
let { overlayRef: t, hasSnapPoints: n, isOpen: r, shouldFade: i } = Em();
|
|
13363
|
+
return (e, a) => (R(), l(q(ym), {
|
|
13341
13364
|
ref_key: "overlayRef",
|
|
13342
13365
|
ref: t,
|
|
13343
13366
|
"data-vaul-overlay": "",
|
|
@@ -13346,40 +13369,40 @@ var qm = /* @__PURE__ */ v({
|
|
|
13346
13369
|
}, null, 8, ["data-vaul-snap-points", "data-vaul-snap-points-overlay"]));
|
|
13347
13370
|
}
|
|
13348
13371
|
});
|
|
13349
|
-
function
|
|
13350
|
-
let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } =
|
|
13372
|
+
function Qm() {
|
|
13373
|
+
let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = Em(), a = B(null), o = B(document.body.style.backgroundColor);
|
|
13351
13374
|
function s() {
|
|
13352
|
-
return (window.innerWidth -
|
|
13375
|
+
return (window.innerWidth - Vm) / window.innerWidth;
|
|
13353
13376
|
}
|
|
13354
13377
|
be((c) => {
|
|
13355
13378
|
if (t.value && n.value) {
|
|
13356
13379
|
a.value && clearTimeout(a.value);
|
|
13357
13380
|
let t = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
13358
13381
|
if (!t) return;
|
|
13359
|
-
r.value && !i.value &&
|
|
13360
|
-
transformOrigin:
|
|
13382
|
+
r.value && !i.value && Pm(document.body, { background: "black" }), Pm(t, {
|
|
13383
|
+
transformOrigin: Nm(e.value) ? "top" : "left",
|
|
13361
13384
|
transitionProperty: "transform, border-radius",
|
|
13362
|
-
transitionDuration: `${
|
|
13363
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
13385
|
+
transitionDuration: `${Fm.DURATION}s`,
|
|
13386
|
+
transitionTimingFunction: `cubic-bezier(${Fm.EASE.join(",")})`
|
|
13364
13387
|
});
|
|
13365
|
-
let n =
|
|
13366
|
-
borderRadius: `${
|
|
13388
|
+
let n = Pm(t, {
|
|
13389
|
+
borderRadius: `${zm}px`,
|
|
13367
13390
|
overflow: "hidden",
|
|
13368
|
-
...
|
|
13391
|
+
...Nm(e.value) ? { transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)` } : { transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)` }
|
|
13369
13392
|
});
|
|
13370
13393
|
c(() => {
|
|
13371
13394
|
n(), a.value = window.setTimeout(() => {
|
|
13372
13395
|
o.value ? document.body.style.background = o.value : document.body.style.removeProperty("background");
|
|
13373
|
-
},
|
|
13396
|
+
}, Fm.DURATION * 1e3);
|
|
13374
13397
|
});
|
|
13375
13398
|
}
|
|
13376
13399
|
}, { flush: "pre" });
|
|
13377
13400
|
}
|
|
13378
|
-
var
|
|
13401
|
+
var $m = /* @__PURE__ */ v({
|
|
13379
13402
|
__name: "DrawerContent",
|
|
13380
13403
|
setup(e) {
|
|
13381
|
-
let { open: t, isOpen: n, snapPointsOffset: r, hasSnapPoints: i, drawerRef: a, onPress: o, onDrag: s, onRelease: u, modal: d, emitOpenChange: f, dismissible: p, keyboardIsOpen: m, closeDrawer: h, direction: g, handleOnly: _ } =
|
|
13382
|
-
|
|
13404
|
+
let { open: t, isOpen: n, snapPointsOffset: r, hasSnapPoints: i, drawerRef: a, onPress: o, onDrag: s, onRelease: u, modal: d, emitOpenChange: f, dismissible: p, keyboardIsOpen: m, closeDrawer: h, direction: g, handleOnly: _ } = Em();
|
|
13405
|
+
Qm();
|
|
13383
13406
|
let v = B(!1), y = c(() => r.value && r.value.length > 0 ? `${r.value[0]}px` : "0");
|
|
13384
13407
|
function b(e) {
|
|
13385
13408
|
if (!d.value || e.defaultPrevented) {
|
|
@@ -13398,7 +13421,7 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13398
13421
|
i.value && window.requestAnimationFrame(() => {
|
|
13399
13422
|
v.value = !0;
|
|
13400
13423
|
});
|
|
13401
|
-
}), (e, t) => (R(), l(q(
|
|
13424
|
+
}), (e, t) => (R(), l(q(lm), {
|
|
13402
13425
|
ref_key: "drawerRef",
|
|
13403
13426
|
ref: a,
|
|
13404
13427
|
"data-vaul-drawer": "",
|
|
@@ -13425,10 +13448,10 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13425
13448
|
"onPointerup"
|
|
13426
13449
|
]));
|
|
13427
13450
|
}
|
|
13428
|
-
}),
|
|
13451
|
+
}), eh = {
|
|
13429
13452
|
key: 0,
|
|
13430
13453
|
class: "vui-drawer-header"
|
|
13431
|
-
},
|
|
13454
|
+
}, th = "var(--vui-drawer-top-offset, 28px)", nh = /* @__PURE__ */ v({
|
|
13432
13455
|
inheritAttrs: !1,
|
|
13433
13456
|
__name: "Drawer",
|
|
13434
13457
|
props: {
|
|
@@ -13482,9 +13505,9 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13482
13505
|
t && e.rootProps?.snapPoints?.length && e.activeSnapPoint === void 0 && e.rootProps.activeSnapPoint === void 0 && (o.value = e.rootProps.snapPoints[0]), !t && n && e.rootProps?.snapPoints?.length && (f.value = !0, m && clearTimeout(m), m = setTimeout(() => f.value = !1, 600));
|
|
13483
13506
|
});
|
|
13484
13507
|
let v = c(() => {
|
|
13485
|
-
if (!a.value) return `calc(95dvh - ${
|
|
13508
|
+
if (!a.value) return `calc(95dvh - ${th})`;
|
|
13486
13509
|
let t = o.value ?? e.rootProps?.snapPoints?.[0];
|
|
13487
|
-
return t == null ? `calc(100dvh - ${
|
|
13510
|
+
return t == null ? `calc(100dvh - ${th})` : typeof t == "number" ? `calc(${t * 100}dvh - ${th})` : typeof t == "string" && t.endsWith("px") ? `calc(${t} - ${th})` : `calc(100dvh - ${th})`;
|
|
13488
13511
|
});
|
|
13489
13512
|
function y(t) {
|
|
13490
13513
|
f.value && !s.value && t === (e.rootProps?.snapPoints?.[0] ?? null) || (o.value = t ?? null, n("update:activeSnapPoint", t));
|
|
@@ -13495,17 +13518,17 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13495
13518
|
let { layerIndex: b, openLayer: x, closeLayer: C } = qd();
|
|
13496
13519
|
return be(() => {
|
|
13497
13520
|
e.open ? x() : C();
|
|
13498
|
-
}), (t, o) => (R(), l(U(e.nested ? q(
|
|
13521
|
+
}), (t, o) => (R(), l(U(e.nested ? q(Xm) : q(Ym)), A({ open: e.open }, _.value, {
|
|
13499
13522
|
"aria-describedby": q(i),
|
|
13500
13523
|
onClose: o[0] ||= (e) => n("close"),
|
|
13501
13524
|
"onUpdate:open": o[1] ||= (e) => e === !1 && n("close"),
|
|
13502
13525
|
"onUpdate:activeSnapPoint": y
|
|
13503
13526
|
}), {
|
|
13504
|
-
default: X(() => [g(q(
|
|
13505
|
-
default: X(() => [e.overlay ? (R(), l(q(
|
|
13527
|
+
default: X(() => [g(q(xm), N(S(e.portalProps)), {
|
|
13528
|
+
default: X(() => [e.overlay ? (R(), l(q(Zm), {
|
|
13506
13529
|
key: 0,
|
|
13507
13530
|
class: "vui-drawer-overlay"
|
|
13508
|
-
})) : u("", !0), g(q(
|
|
13531
|
+
})) : u("", !0), g(q($m), A({ class: ["vui-drawer-content", {
|
|
13509
13532
|
"hide-handle": e.handle === !1,
|
|
13510
13533
|
"has-snap-points": a.value
|
|
13511
13534
|
}] }, q(r), {
|
|
@@ -13518,14 +13541,14 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13518
13541
|
style: P([{ "max-height": v.value }]),
|
|
13519
13542
|
"data-vaul-no-drag": ""
|
|
13520
13543
|
}, [
|
|
13521
|
-
g(q(
|
|
13544
|
+
g(q(bm), {
|
|
13522
13545
|
class: "visually-hidden",
|
|
13523
13546
|
name: q(i)
|
|
13524
13547
|
}, {
|
|
13525
13548
|
default: X(() => [h(G(e.title), 1)]),
|
|
13526
13549
|
_: 1
|
|
13527
13550
|
}, 8, ["name"]),
|
|
13528
|
-
t.$slots.header ? (R(), d("div",
|
|
13551
|
+
t.$slots.header ? (R(), d("div", eh, [H(t.$slots, "header")])) : u("", !0),
|
|
13529
13552
|
H(t.$slots, "default")
|
|
13530
13553
|
], 6))]),
|
|
13531
13554
|
_: 3
|
|
@@ -13535,7 +13558,7 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13535
13558
|
_: 3
|
|
13536
13559
|
}, 16, ["open", "aria-describedby"]));
|
|
13537
13560
|
}
|
|
13538
|
-
}),
|
|
13561
|
+
}), rh = ["aria-expanded"], ih = /* @__PURE__ */ v({
|
|
13539
13562
|
__name: "Dropdown",
|
|
13540
13563
|
props: {
|
|
13541
13564
|
placement: { default: "bottom-start" },
|
|
@@ -13594,7 +13617,7 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13594
13617
|
isOpen: u.value,
|
|
13595
13618
|
close: m,
|
|
13596
13619
|
toggle: h
|
|
13597
|
-
})], 40,
|
|
13620
|
+
})], 40, rh), q(zd).s && !e.noMobileDrawer ? (R(), l(nh, {
|
|
13598
13621
|
key: 0,
|
|
13599
13622
|
open: u.value,
|
|
13600
13623
|
onClose: m,
|
|
@@ -13638,13 +13661,13 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13638
13661
|
"transition-name"
|
|
13639
13662
|
]))], 64));
|
|
13640
13663
|
}
|
|
13641
|
-
}),
|
|
13664
|
+
}), ah = ["disabled"], oh = { class: "vui-dropdown-item-icon" }, sh = { class: "vui-dropdown-item-slot" }, ch = {
|
|
13642
13665
|
key: 0,
|
|
13643
13666
|
class: "vui-dropdown-item-hint"
|
|
13644
|
-
},
|
|
13667
|
+
}, lh = {
|
|
13645
13668
|
key: 1,
|
|
13646
13669
|
class: "vui-dropdown-item-icon-end"
|
|
13647
|
-
},
|
|
13670
|
+
}, uh = /* @__PURE__ */ v({
|
|
13648
13671
|
__name: "DropdownItem",
|
|
13649
13672
|
props: {
|
|
13650
13673
|
disabled: { type: Boolean },
|
|
@@ -13659,22 +13682,22 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13659
13682
|
}]),
|
|
13660
13683
|
disabled: t.disabled
|
|
13661
13684
|
}, [
|
|
13662
|
-
f("div",
|
|
13663
|
-
f("div",
|
|
13664
|
-
e.$slots.hint ? (R(), d("div",
|
|
13665
|
-
e.$slots.iconEnd ? (R(), d("div",
|
|
13666
|
-
], 10,
|
|
13685
|
+
f("div", oh, [H(e.$slots, "icon")]),
|
|
13686
|
+
f("div", sh, [H(e.$slots, "default")]),
|
|
13687
|
+
e.$slots.hint ? (R(), d("div", ch, [H(e.$slots, "hint")])) : u("", !0),
|
|
13688
|
+
e.$slots.iconEnd ? (R(), d("div", lh, [H(e.$slots, "iconEnd")])) : u("", !0)
|
|
13689
|
+
], 10, ah));
|
|
13667
13690
|
}
|
|
13668
|
-
}),
|
|
13691
|
+
}), dh = {
|
|
13669
13692
|
key: 0,
|
|
13670
13693
|
class: "vui-dropdown-title-end"
|
|
13671
|
-
},
|
|
13694
|
+
}, fh = /* @__PURE__ */ v({
|
|
13672
13695
|
__name: "DropdownTitle",
|
|
13673
13696
|
props: { sticky: { type: Boolean } },
|
|
13674
13697
|
setup(e) {
|
|
13675
|
-
return (t, n) => (R(), d("div", { class: M(["vui-dropdown-title", { sticky: e.sticky }]) }, [H(t.$slots, "default"), t.$slots.end ? (R(), d("div",
|
|
13698
|
+
return (t, n) => (R(), d("div", { class: M(["vui-dropdown-title", { sticky: e.sticky }]) }, [H(t.$slots, "default"), t.$slots.end ? (R(), d("div", dh, [H(t.$slots, "end")])) : u("", !0)], 2));
|
|
13676
13699
|
}
|
|
13677
|
-
}),
|
|
13700
|
+
}), ph = /* @__PURE__ */ v({
|
|
13678
13701
|
__name: "Grid",
|
|
13679
13702
|
props: {
|
|
13680
13703
|
inline: { type: Boolean },
|
|
@@ -13727,7 +13750,7 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13727
13750
|
})
|
|
13728
13751
|
}, [H(e.$slots, "default")], 4));
|
|
13729
13752
|
}
|
|
13730
|
-
}),
|
|
13753
|
+
}), mh = /* @__PURE__ */ v({
|
|
13731
13754
|
__name: "Indicator",
|
|
13732
13755
|
props: {
|
|
13733
13756
|
variant: {},
|
|
@@ -13763,11 +13786,11 @@ var Zm = /* @__PURE__ */ v({
|
|
|
13763
13786
|
})
|
|
13764
13787
|
}, [H(e.$slots, "default")], 6));
|
|
13765
13788
|
}
|
|
13766
|
-
}),
|
|
13767
|
-
function
|
|
13789
|
+
}), hh = /^#[0-9A-F]{0,6}$/i, gh = /^r(g(b(\(\s*(\d{1,3}(\s*,\s*(\d{1,3}(\s*,\s*(\d{1,3}\s*\)?)?)?)?)?)?)?)?)?$/;
|
|
13790
|
+
function _h(e) {
|
|
13768
13791
|
return `rgb(${Number.parseInt(e.slice(1, 3), 16)}, ${Number.parseInt(e.slice(3, 5), 16)}, ${Number.parseInt(e.slice(5, 7), 16)})`;
|
|
13769
13792
|
}
|
|
13770
|
-
function
|
|
13793
|
+
function vh(e, t = "#000000") {
|
|
13771
13794
|
if (!e) return t;
|
|
13772
13795
|
if (e.startsWith("#")) return e.length === 7 ? e : t;
|
|
13773
13796
|
let n = e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
@@ -13775,10 +13798,10 @@ function gh(e, t = "#000000") {
|
|
|
13775
13798
|
}
|
|
13776
13799
|
//#endregion
|
|
13777
13800
|
//#region src/components/Input/Input.vue?vue&type=script&setup=true&lang.ts
|
|
13778
|
-
var
|
|
13801
|
+
var yh = { class: "vui-input" }, bh = ["for"], xh = {
|
|
13779
13802
|
key: 1,
|
|
13780
13803
|
class: "vui-input-hint"
|
|
13781
|
-
},
|
|
13804
|
+
}, Sh = [
|
|
13782
13805
|
"id",
|
|
13783
13806
|
"readonly",
|
|
13784
13807
|
"type",
|
|
@@ -13789,13 +13812,13 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13789
13812
|
"multiple",
|
|
13790
13813
|
"min",
|
|
13791
13814
|
"disabled"
|
|
13792
|
-
],
|
|
13815
|
+
], Ch = {
|
|
13793
13816
|
key: 0,
|
|
13794
13817
|
class: "vui-input-limit"
|
|
13795
|
-
},
|
|
13818
|
+
}, wh = {
|
|
13796
13819
|
key: 1,
|
|
13797
13820
|
class: "vui-input-errors"
|
|
13798
|
-
},
|
|
13821
|
+
}, Th = /* @__PURE__ */ v({
|
|
13799
13822
|
__name: "Input",
|
|
13800
13823
|
props: /* @__PURE__ */ k({
|
|
13801
13824
|
type: { default: "text" },
|
|
@@ -13840,12 +13863,12 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13840
13863
|
"has-errors": e.errors.length > 0
|
|
13841
13864
|
}]) }, [
|
|
13842
13865
|
H(t.$slots, "before"),
|
|
13843
|
-
f("div",
|
|
13866
|
+
f("div", yh, [
|
|
13844
13867
|
e.label ? (R(), d("label", {
|
|
13845
13868
|
key: 0,
|
|
13846
13869
|
for: q(i)
|
|
13847
|
-
}, G(e.label), 9,
|
|
13848
|
-
e.hint ? (R(), d("p",
|
|
13870
|
+
}, G(e.label), 9, bh)) : u("", !0),
|
|
13871
|
+
e.hint ? (R(), d("p", xh, G(e.hint), 1)) : u("", !0),
|
|
13849
13872
|
g(sr, {
|
|
13850
13873
|
class: "vui-input-style",
|
|
13851
13874
|
gap: 5,
|
|
@@ -13869,18 +13892,18 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13869
13892
|
multiple: e.multiple,
|
|
13870
13893
|
min: e.min,
|
|
13871
13894
|
disabled: e.disabled
|
|
13872
|
-
}, null, 8,
|
|
13895
|
+
}, null, 8, Sh)), [[ge, r.value]]),
|
|
13873
13896
|
H(t.$slots, "end")
|
|
13874
13897
|
]),
|
|
13875
13898
|
_: 3
|
|
13876
13899
|
})
|
|
13877
13900
|
]),
|
|
13878
|
-
e.limit ? (R(), d("p",
|
|
13879
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
13901
|
+
e.limit ? (R(), d("p", Ch, G(o.value), 1)) : u("", !0),
|
|
13902
|
+
e.errors.length > 0 ? (R(), d("ul", wh, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0),
|
|
13880
13903
|
H(t.$slots, "after")
|
|
13881
13904
|
], 2));
|
|
13882
13905
|
}
|
|
13883
|
-
}),
|
|
13906
|
+
}), Eh = ["id"], Dh = ["for"], Oh = ["value", "placeholder"], kh = /* @__PURE__ */ v({
|
|
13884
13907
|
__name: "Color",
|
|
13885
13908
|
props: /* @__PURE__ */ k({
|
|
13886
13909
|
type: {},
|
|
@@ -13907,21 +13930,21 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13907
13930
|
setup(e) {
|
|
13908
13931
|
let t = e, n = ue(), r = fe(), [i, a] = pe(e, "modelValue"), o = c({
|
|
13909
13932
|
get() {
|
|
13910
|
-
return
|
|
13933
|
+
return vh(i.value ?? "", Cd.value === "dark" ? "#ffffff" : "#000000");
|
|
13911
13934
|
},
|
|
13912
13935
|
set(e) {
|
|
13913
|
-
i.value = a.rgb ?
|
|
13936
|
+
i.value = a.rgb ? _h(e) : e;
|
|
13914
13937
|
}
|
|
13915
13938
|
});
|
|
13916
13939
|
function s(e) {
|
|
13917
13940
|
let t = e.target, n = t.value;
|
|
13918
|
-
if (n && (a.rgb ? !
|
|
13941
|
+
if (n && (a.rgb ? !gh.test(n) : !hh.test(n))) {
|
|
13919
13942
|
t.value = i.value ?? "";
|
|
13920
13943
|
return;
|
|
13921
13944
|
}
|
|
13922
13945
|
i.value = n;
|
|
13923
13946
|
}
|
|
13924
|
-
return (e, a) => (R(), l(
|
|
13947
|
+
return (e, a) => (R(), l(Th, A({
|
|
13925
13948
|
...q(n),
|
|
13926
13949
|
...t
|
|
13927
13950
|
}, {
|
|
@@ -13933,7 +13956,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13933
13956
|
"onUpdate:modelValue": a[0] ||= (e) => o.value = e,
|
|
13934
13957
|
type: "color",
|
|
13935
13958
|
tabindex: "0"
|
|
13936
|
-
}, null, 8,
|
|
13959
|
+
}, null, 8, Eh), [[ve, o.value]]), f("label", { for: q(r) }, [f("div", {
|
|
13937
13960
|
class: "vui-input-color-indicator",
|
|
13938
13961
|
style: P({ backgroundColor: q(i) })
|
|
13939
13962
|
}, [q(i) ? u("", !0) : (R(), l(q(tt), { key: 0 }))], 4), f("input", {
|
|
@@ -13941,11 +13964,11 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13941
13964
|
type: "text",
|
|
13942
13965
|
placeholder: t.placeholder,
|
|
13943
13966
|
onInput: s
|
|
13944
|
-
}, null, 40,
|
|
13967
|
+
}, null, 40, Oh)], 8, Dh)]),
|
|
13945
13968
|
_: 1
|
|
13946
13969
|
}, 16));
|
|
13947
13970
|
}
|
|
13948
|
-
}),
|
|
13971
|
+
}), Ah = /* @__PURE__ */ Zd(/* @__PURE__ */ v({
|
|
13949
13972
|
__name: "Counter",
|
|
13950
13973
|
props: /* @__PURE__ */ k({
|
|
13951
13974
|
label: {},
|
|
@@ -13995,7 +14018,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
13995
14018
|
"decrementEnabled",
|
|
13996
14019
|
"hideDecrement"
|
|
13997
14020
|
]), n = pe(e, "modelValue");
|
|
13998
|
-
return (r, i) => (R(), l(
|
|
14021
|
+
return (r, i) => (R(), l(Th, A(t, {
|
|
13999
14022
|
modelValue: n.value,
|
|
14000
14023
|
"onUpdate:modelValue": i[2] ||= (e) => n.value = e,
|
|
14001
14024
|
modelModifiers: { number: !0 },
|
|
@@ -14026,7 +14049,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14026
14049
|
_: 1
|
|
14027
14050
|
}, 16, ["modelValue"]));
|
|
14028
14051
|
}
|
|
14029
|
-
}), [["__scopeId", "data-v-5059e818"]]),
|
|
14052
|
+
}), [["__scopeId", "data-v-5059e818"]]), jh = ["id"], Mh = ["for"], Nh = /* @__PURE__ */ v({
|
|
14030
14053
|
__name: "Dropzone",
|
|
14031
14054
|
props: {
|
|
14032
14055
|
label: {},
|
|
@@ -14052,7 +14075,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14052
14075
|
let s = J("dropzone");
|
|
14053
14076
|
return L(() => {
|
|
14054
14077
|
Z(s, "dragenter", o, !1), Z(s, "dragleave", o, !1), Z(s, "dragover", o, !1), Z(s, "drop", o, !1), Z(s, "input", (e) => o(e, !0), !1);
|
|
14055
|
-
}), (e, t) => (R(), l(
|
|
14078
|
+
}), (e, t) => (R(), l(Th, A(r, {
|
|
14056
14079
|
ref: "dropzone",
|
|
14057
14080
|
type: "file",
|
|
14058
14081
|
class: ["vui-dropzone", { dragging: a.value }],
|
|
@@ -14062,18 +14085,18 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14062
14085
|
__internal_replace_input: X(({ inputId: r }) => [f("input", {
|
|
14063
14086
|
id: r,
|
|
14064
14087
|
type: "file"
|
|
14065
|
-
}, null, 8,
|
|
14088
|
+
}, null, 8, jh), f("label", { for: r }, [H(e.$slots, "default", { dragging: a.value }, () => [g(sr, {
|
|
14066
14089
|
"x-center": "",
|
|
14067
14090
|
gap: "xs",
|
|
14068
14091
|
"y-center": ""
|
|
14069
14092
|
}, {
|
|
14070
14093
|
default: X(() => [a.value ? (R(), d(n, { key: 0 }, [g(q(ct)), t[2] ||= h(" Drop it ", -1)], 64)) : (R(), d(n, { key: 1 }, [g(q(Xe)), t[3] ||= h(" Click or drag files over here ", -1)], 64))]),
|
|
14071
14094
|
_: 1
|
|
14072
|
-
})])], 8,
|
|
14095
|
+
})])], 8, Mh)]),
|
|
14073
14096
|
_: 3
|
|
14074
14097
|
}, 16, ["class"]));
|
|
14075
14098
|
}
|
|
14076
|
-
}),
|
|
14099
|
+
}), Ph = /* @__PURE__ */ v({
|
|
14077
14100
|
__name: "File",
|
|
14078
14101
|
props: {
|
|
14079
14102
|
label: {},
|
|
@@ -14095,9 +14118,9 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14095
14118
|
emits: ["files"],
|
|
14096
14119
|
setup(e, { emit: t }) {
|
|
14097
14120
|
let n = e, r = t;
|
|
14098
|
-
return (e, t) => (R(), l(
|
|
14121
|
+
return (e, t) => (R(), l(Th, A({ type: "file" }, n, { onInput: t[0] ||= (e) => r("files", e.target.files) }), null, 16));
|
|
14099
14122
|
}
|
|
14100
|
-
}),
|
|
14123
|
+
}), Fh = /* @__PURE__ */ v({
|
|
14101
14124
|
__name: "Password",
|
|
14102
14125
|
props: {
|
|
14103
14126
|
label: {},
|
|
@@ -14122,7 +14145,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14122
14145
|
},
|
|
14123
14146
|
setup(e) {
|
|
14124
14147
|
let t = p(e, ["showPassword", "type"]), n = B(e.showPassword);
|
|
14125
|
-
return (e, r) => (R(), l(
|
|
14148
|
+
return (e, r) => (R(), l(Th, A(t, {
|
|
14126
14149
|
type: n.value ? "text" : "password",
|
|
14127
14150
|
autocomplete: "off"
|
|
14128
14151
|
}), {
|
|
@@ -14146,10 +14169,10 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14146
14169
|
_: 1
|
|
14147
14170
|
}, 16, ["type"]));
|
|
14148
14171
|
}
|
|
14149
|
-
}),
|
|
14172
|
+
}), Ih = { class: "vui-input" }, Lh = ["for"], Rh = {
|
|
14150
14173
|
key: 1,
|
|
14151
14174
|
class: "vui-input-hint"
|
|
14152
|
-
},
|
|
14175
|
+
}, zh = [
|
|
14153
14176
|
"id",
|
|
14154
14177
|
"readonly",
|
|
14155
14178
|
"placeholder",
|
|
@@ -14158,13 +14181,13 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14158
14181
|
"max",
|
|
14159
14182
|
"rows",
|
|
14160
14183
|
"cols"
|
|
14161
|
-
],
|
|
14184
|
+
], Bh = {
|
|
14162
14185
|
key: 0,
|
|
14163
14186
|
class: "vui-input-limit"
|
|
14164
|
-
},
|
|
14187
|
+
}, Vh = {
|
|
14165
14188
|
key: 1,
|
|
14166
14189
|
class: "vui-input-errors"
|
|
14167
|
-
},
|
|
14190
|
+
}, Hh = /* @__PURE__ */ v({
|
|
14168
14191
|
__name: "Textarea",
|
|
14169
14192
|
props: /* @__PURE__ */ k({
|
|
14170
14193
|
label: {},
|
|
@@ -14213,12 +14236,12 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14213
14236
|
disabled: e.disabled
|
|
14214
14237
|
}]) }, [
|
|
14215
14238
|
H(t.$slots, "before"),
|
|
14216
|
-
f("div",
|
|
14239
|
+
f("div", Ih, [
|
|
14217
14240
|
e.label ? (R(), d("label", {
|
|
14218
14241
|
key: 0,
|
|
14219
14242
|
for: q(i)
|
|
14220
|
-
}, G(e.label), 9,
|
|
14221
|
-
e.hint ? (R(), d("p",
|
|
14243
|
+
}, G(e.label), 9, Lh)) : u("", !0),
|
|
14244
|
+
e.hint ? (R(), d("p", Rh, G(e.hint), 1)) : u("", !0),
|
|
14222
14245
|
Se(f("textarea", {
|
|
14223
14246
|
id: q(i),
|
|
14224
14247
|
ref: "textarea",
|
|
@@ -14235,24 +14258,24 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14235
14258
|
resize: a.value,
|
|
14236
14259
|
...e.cols ? { width: `${e.cols + 1}ch` } : {}
|
|
14237
14260
|
})
|
|
14238
|
-
}, null, 12,
|
|
14261
|
+
}, null, 12, zh), [[ve, r.value]])
|
|
14239
14262
|
]),
|
|
14240
|
-
e.limit ? (R(), d("p",
|
|
14241
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
14263
|
+
e.limit ? (R(), d("p", Bh, G(`${r.value.length}/${e.limit}`), 1)) : u("", !0),
|
|
14264
|
+
e.errors.length > 0 ? (R(), d("ul", Vh, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0),
|
|
14242
14265
|
H(t.$slots, "after")
|
|
14243
14266
|
], 2));
|
|
14244
14267
|
}
|
|
14245
|
-
}),
|
|
14268
|
+
}), Uh = /* @__PURE__ */ v({
|
|
14246
14269
|
__name: "KbdGroup",
|
|
14247
14270
|
emits: ["trigger"],
|
|
14248
14271
|
setup(e, { emit: t }) {
|
|
14249
14272
|
let n = t, r = me(), i = bn(), a = kn(r.default);
|
|
14250
14273
|
return jn(a, "Kbd"), Vt(i[a.value.map((e) => e.props.keys).join("+")], () => n("trigger")), (e, t) => H(e.$slots, "default");
|
|
14251
14274
|
}
|
|
14252
|
-
}),
|
|
14275
|
+
}), Wh = { class: "marquee-wrap" }, Gh = { class: "marquee-content" }, Kh = {
|
|
14253
14276
|
class: "marquee-content",
|
|
14254
14277
|
"aria-hidden": "true"
|
|
14255
|
-
},
|
|
14278
|
+
}, qh = /* @__PURE__ */ v({
|
|
14256
14279
|
__name: "Marquee",
|
|
14257
14280
|
props: {
|
|
14258
14281
|
direction: { default: "right" },
|
|
@@ -14266,7 +14289,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14266
14289
|
t && (n.value = t.target.scrollWidth / 2);
|
|
14267
14290
|
});
|
|
14268
14291
|
let r = c(() => n.value > 0 ? n.value / e.speed : 0), i = c(() => !e.stagger || n.value === 0 ? "linear" : `steps(${Math.max(1, Math.round(n.value / 50))}, end)`);
|
|
14269
|
-
return (a, o) => (R(), d("div",
|
|
14292
|
+
return (a, o) => (R(), d("div", Wh, [f("div", {
|
|
14270
14293
|
ref_key: "trackRef",
|
|
14271
14294
|
ref: t,
|
|
14272
14295
|
class: "marquee-track",
|
|
@@ -14276,9 +14299,9 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14276
14299
|
animationTimingFunction: i.value,
|
|
14277
14300
|
visibility: n.value > 0 ? "visible" : "hidden"
|
|
14278
14301
|
})
|
|
14279
|
-
}, [f("div",
|
|
14302
|
+
}, [f("div", Gh, [H(a.$slots, "default")]), f("div", Kh, [H(a.$slots, "default")])], 4)]));
|
|
14280
14303
|
}
|
|
14281
|
-
}),
|
|
14304
|
+
}), Jh = Symbol("menubar"), Yh = /* @__PURE__ */ v({
|
|
14282
14305
|
__name: "Menubar",
|
|
14283
14306
|
props: {
|
|
14284
14307
|
inline: { type: Boolean },
|
|
@@ -14314,7 +14337,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14314
14337
|
function o() {
|
|
14315
14338
|
n.value = null;
|
|
14316
14339
|
}
|
|
14317
|
-
return re(
|
|
14340
|
+
return re(Jh, {
|
|
14318
14341
|
openIndex: n,
|
|
14319
14342
|
register: i,
|
|
14320
14343
|
open: a,
|
|
@@ -14324,10 +14347,10 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14324
14347
|
_: 3
|
|
14325
14348
|
}, 16));
|
|
14326
14349
|
}
|
|
14327
|
-
}),
|
|
14350
|
+
}), Xh = /* @__PURE__ */ v({
|
|
14328
14351
|
__name: "MenuItem",
|
|
14329
14352
|
setup(e) {
|
|
14330
|
-
let { openIndex: t, register: r, open: i, close: a } = T(
|
|
14353
|
+
let { openIndex: t, register: r, open: i, close: a } = T(Jh), o = r(), s = J("trigger"), c = () => t.value === o;
|
|
14331
14354
|
function l() {
|
|
14332
14355
|
c() ? a() : i(o);
|
|
14333
14356
|
}
|
|
@@ -14352,7 +14375,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14352
14375
|
"onClickOutside"
|
|
14353
14376
|
])], 64));
|
|
14354
14377
|
}
|
|
14355
|
-
}),
|
|
14378
|
+
}), Zh = { class: "typeset" }, Qh = /* @__PURE__ */ v({
|
|
14356
14379
|
__name: "Confirm",
|
|
14357
14380
|
props: {
|
|
14358
14381
|
title: {},
|
|
@@ -14391,7 +14414,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14391
14414
|
open: n.open,
|
|
14392
14415
|
onClose: t[2] ||= (e) => r("close")
|
|
14393
14416
|
}), {
|
|
14394
|
-
default: X(() => [f("div",
|
|
14417
|
+
default: X(() => [f("div", Zh, [H(e.$slots, "default")])]),
|
|
14395
14418
|
footer: X(() => [g(sr, { "x-end": "" }, {
|
|
14396
14419
|
default: X(() => [n.showCancel ? (R(), l(_r, {
|
|
14397
14420
|
key: 0,
|
|
@@ -14412,7 +14435,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14412
14435
|
_: 3
|
|
14413
14436
|
}, 16, ["open"]));
|
|
14414
14437
|
}
|
|
14415
|
-
}),
|
|
14438
|
+
}), $h = { class: "vui-otp" }, eg = ["inputmode", "maxlength"], tg = { class: "vui-otp-items" }, ng = /* @__PURE__ */ v({
|
|
14416
14439
|
__name: "OTP",
|
|
14417
14440
|
props: /* @__PURE__ */ k({
|
|
14418
14441
|
mode: { default: "both" },
|
|
@@ -14476,7 +14499,7 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14476
14499
|
let n = e.target.value;
|
|
14477
14500
|
n && g(n);
|
|
14478
14501
|
}
|
|
14479
|
-
return (t, n) => (R(), d("div",
|
|
14502
|
+
return (t, n) => (R(), d("div", $h, [f("input", {
|
|
14480
14503
|
ref: "inputRef",
|
|
14481
14504
|
type: "text",
|
|
14482
14505
|
inputmode: e.mode === "num" ? "numeric" : "text",
|
|
@@ -14491,9 +14514,9 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14491
14514
|
onPaste: v,
|
|
14492
14515
|
onBlur: n[0] ||= (e) => i.value = -1,
|
|
14493
14516
|
onFocus: n[1] ||= (e) => i.value = Math.min(r.value.length, l.value - 1)
|
|
14494
|
-
}, null, 40,
|
|
14517
|
+
}, null, 40, eg), f("div", tg, [H(t.$slots, "default")])]));
|
|
14495
14518
|
}
|
|
14496
|
-
}),
|
|
14519
|
+
}), rg = /* @__PURE__ */ v({
|
|
14497
14520
|
__name: "OTPItem",
|
|
14498
14521
|
props: { i: {} },
|
|
14499
14522
|
setup(e) {
|
|
@@ -14503,37 +14526,10 @@ var _h = { class: "vui-input" }, vh = ["for"], yh = {
|
|
|
14503
14526
|
"has-value": q(r).trim().at(t.i)
|
|
14504
14527
|
}]) }, [o[0] ||= f("div", { class: "blinker" }, null, -1), q(r).trim().at(t.i) ? (R(), d(n, { key: 0 }, [q(a) ? (R(), l(q(Fe), { key: 0 })) : (R(), d(n, { key: 1 }, [h(G(q(r).at(t.i)), 1)], 64))], 64)) : u("", !0)], 2));
|
|
14505
14528
|
}
|
|
14506
|
-
}), ng = { class: "overflow-track" }, rg = {
|
|
14507
|
-
ref: "content",
|
|
14508
|
-
class: "overflow-content"
|
|
14509
|
-
}, ig = /* @__PURE__ */ v({
|
|
14510
|
-
__name: "Overflow",
|
|
14511
|
-
props: {
|
|
14512
|
-
horizontal: { type: Boolean },
|
|
14513
|
-
hideScrollbar: { type: Boolean },
|
|
14514
|
-
hideShadows: { type: Boolean },
|
|
14515
|
-
snap: { type: Boolean }
|
|
14516
|
-
},
|
|
14517
|
-
setup(e) {
|
|
14518
|
-
let t = J("content"), { x: n, y: r } = vn(t), i = c(() => e.horizontal && n.value > 0), a = c(() => !e.horizontal || !t.value ? !1 : n.value < t.value.scrollWidth - t.value.clientWidth - 1), o = c(() => !e.horizontal && r.value > 0), s = c(() => e.horizontal || !t.value ? !1 : r.value < t.value.scrollHeight - t.value.clientHeight - 1);
|
|
14519
|
-
return (t, n) => (R(), d("div", { class: M(["overflow", {
|
|
14520
|
-
"hide-scrollbar": e.hideScrollbar,
|
|
14521
|
-
"hide-shadows": e.hideShadows,
|
|
14522
|
-
"is-horizontal": e.horizontal,
|
|
14523
|
-
"is-vertical": !e.horizontal,
|
|
14524
|
-
"is-snap": e.snap
|
|
14525
|
-
}]) }, [f("div", ng, [
|
|
14526
|
-
f("div", { class: M(["overflow-shadow overflow-shadow-left", { visible: i.value }]) }, null, 2),
|
|
14527
|
-
f("div", { class: M(["overflow-shadow overflow-shadow-right", { visible: a.value }]) }, null, 2),
|
|
14528
|
-
f("div", { class: M(["overflow-shadow overflow-shadow-top", { visible: o.value }]) }, null, 2),
|
|
14529
|
-
f("div", { class: M(["overflow-shadow overflow-shadow-bottom", { visible: s.value }]) }, null, 2),
|
|
14530
|
-
f("div", rg, [H(t.$slots, "default")], 512)
|
|
14531
|
-
])], 2));
|
|
14532
|
-
}
|
|
14533
14529
|
});
|
|
14534
14530
|
//#endregion
|
|
14535
14531
|
//#region src/components/Pagination/pagination.ts
|
|
14536
|
-
function
|
|
14532
|
+
function ig(e, t = 1, n = 15, r = 3) {
|
|
14537
14533
|
let i = Math.ceil(e / n);
|
|
14538
14534
|
t < 1 ? t = 1 : t > i && (t = i);
|
|
14539
14535
|
let a, o;
|
|
@@ -14557,7 +14553,7 @@ function ag(e, t = 1, n = 15, r = 3) {
|
|
|
14557
14553
|
}
|
|
14558
14554
|
//#endregion
|
|
14559
14555
|
//#region src/components/Pagination/Pagination.vue
|
|
14560
|
-
var
|
|
14556
|
+
var ag = /* @__PURE__ */ v({
|
|
14561
14557
|
__name: "Pagination",
|
|
14562
14558
|
props: {
|
|
14563
14559
|
numbers: {
|
|
@@ -14668,7 +14664,7 @@ var og = /* @__PURE__ */ v({
|
|
|
14668
14664
|
_: 3
|
|
14669
14665
|
}));
|
|
14670
14666
|
}
|
|
14671
|
-
}),
|
|
14667
|
+
}), og = ["aria-expanded", "aria-controls"], sg = /* @__PURE__ */ v({
|
|
14672
14668
|
inheritAttrs: !1,
|
|
14673
14669
|
__name: "PopoutHover",
|
|
14674
14670
|
props: {
|
|
@@ -14710,7 +14706,7 @@ var og = /* @__PURE__ */ v({
|
|
|
14710
14706
|
onMouseleave: a[1] ||= (e) => u(!1),
|
|
14711
14707
|
onFocusin: a[2] ||= (e) => u(!0),
|
|
14712
14708
|
onFocusout: l
|
|
14713
|
-
}, [H(i.$slots, "trigger")], 40,
|
|
14709
|
+
}, [H(i.$slots, "trigger")], 40, og), g(Jd, A({
|
|
14714
14710
|
id: q(o),
|
|
14715
14711
|
ref: "popoutRef"
|
|
14716
14712
|
}, {
|
|
@@ -14735,7 +14731,7 @@ var og = /* @__PURE__ */ v({
|
|
|
14735
14731
|
"leave-delay"
|
|
14736
14732
|
])], 64));
|
|
14737
14733
|
}
|
|
14738
|
-
}),
|
|
14734
|
+
}), cg = /* @__PURE__ */ v({
|
|
14739
14735
|
__name: "Progress",
|
|
14740
14736
|
props: /* @__PURE__ */ k({
|
|
14741
14737
|
fake: { type: Boolean },
|
|
@@ -14775,18 +14771,18 @@ var og = /* @__PURE__ */ v({
|
|
|
14775
14771
|
})
|
|
14776
14772
|
}, null, 4)], 2));
|
|
14777
14773
|
}
|
|
14778
|
-
}),
|
|
14774
|
+
}), lg = [
|
|
14779
14775
|
"id",
|
|
14780
14776
|
"value",
|
|
14781
14777
|
"checked",
|
|
14782
14778
|
"disabled"
|
|
14783
|
-
],
|
|
14779
|
+
], ug = ["for"], dg = { class: "vui-radio-icon" }, fg = {
|
|
14784
14780
|
key: 0,
|
|
14785
14781
|
class: "vui-radio-content"
|
|
14786
|
-
},
|
|
14782
|
+
}, pg = {
|
|
14787
14783
|
key: 1,
|
|
14788
14784
|
class: "vui-radio-content"
|
|
14789
|
-
},
|
|
14785
|
+
}, mg = /* @__PURE__ */ v({
|
|
14790
14786
|
__name: "Radio",
|
|
14791
14787
|
props: /* @__PURE__ */ k({
|
|
14792
14788
|
label: {},
|
|
@@ -14811,9 +14807,9 @@ var og = /* @__PURE__ */ v({
|
|
|
14811
14807
|
value: e.value,
|
|
14812
14808
|
checked: i.value,
|
|
14813
14809
|
disabled: e.disabled
|
|
14814
|
-
}, null, 8,
|
|
14810
|
+
}, null, 8, lg), [[_e, n.value]]), f("label", { for: q(r) }, [f("span", dg, [i.value ? (R(), l(q(rt), { key: 1 })) : (R(), l(q(Ke), { key: 0 }))]), t.default ? (R(), d("div", pg, [H(a.$slots, "default")])) : (R(), d("p", fg, G(e.label || e.value), 1))], 8, ug)], 2));
|
|
14815
14811
|
}
|
|
14816
|
-
}),
|
|
14812
|
+
}), hg = /* @__PURE__ */ v({
|
|
14817
14813
|
__name: "RadioGroup",
|
|
14818
14814
|
props: /* @__PURE__ */ k({
|
|
14819
14815
|
disabled: { type: Boolean },
|
|
@@ -14854,11 +14850,11 @@ var og = /* @__PURE__ */ v({
|
|
|
14854
14850
|
_: 1
|
|
14855
14851
|
}, 16)]));
|
|
14856
14852
|
}
|
|
14857
|
-
}),
|
|
14853
|
+
}), gg = [
|
|
14858
14854
|
"data-handle-index",
|
|
14859
14855
|
"onDblclick",
|
|
14860
14856
|
"onFocus"
|
|
14861
|
-
],
|
|
14857
|
+
], _g = /* @__PURE__ */ v({
|
|
14862
14858
|
__name: "Resizable",
|
|
14863
14859
|
props: {
|
|
14864
14860
|
vertical: { type: Boolean },
|
|
@@ -14922,9 +14918,9 @@ var og = /* @__PURE__ */ v({
|
|
|
14922
14918
|
onDblclick: (e) => C(t),
|
|
14923
14919
|
onFocus: (e) => o.value = t,
|
|
14924
14920
|
onBlur: r[0] ||= (e) => o.value = -1
|
|
14925
|
-
}, null, 40,
|
|
14921
|
+
}, null, 40, gg)) : u("", !0)], 64))), 128))], 2));
|
|
14926
14922
|
}
|
|
14927
|
-
}),
|
|
14923
|
+
}), vg = ["name"], yg = /* @__PURE__ */ v({
|
|
14928
14924
|
__name: "Tab",
|
|
14929
14925
|
props: {
|
|
14930
14926
|
disabled: { type: Boolean },
|
|
@@ -14936,16 +14932,16 @@ var og = /* @__PURE__ */ v({
|
|
|
14936
14932
|
class: M(["vui-tab", { disabled: t.disabled }]),
|
|
14937
14933
|
role: "tab",
|
|
14938
14934
|
name: e.value
|
|
14939
|
-
}, [H(n.$slots, "default", {}, () => [h(G(t.value), 1)])], 10,
|
|
14935
|
+
}, [H(n.$slots, "default", {}, () => [h(G(t.value), 1)])], 10, vg));
|
|
14940
14936
|
}
|
|
14941
|
-
}),
|
|
14937
|
+
}), bg = {
|
|
14942
14938
|
key: 0,
|
|
14943
14939
|
class: "flex-1"
|
|
14944
|
-
},
|
|
14940
|
+
}, xg = {
|
|
14945
14941
|
key: 0,
|
|
14946
14942
|
ref: "underline",
|
|
14947
14943
|
class: "vui-tab-underline"
|
|
14948
|
-
},
|
|
14944
|
+
}, Sg = /* @__PURE__ */ v({
|
|
14949
14945
|
__name: "Tabs",
|
|
14950
14946
|
props: /* @__PURE__ */ k({
|
|
14951
14947
|
variant: { default: "default" },
|
|
@@ -14991,18 +14987,18 @@ var og = /* @__PURE__ */ v({
|
|
|
14991
14987
|
class: M({ active: e.props.value === r.value }),
|
|
14992
14988
|
onClick: (t) => r.value = e.props.value
|
|
14993
14989
|
}, null, 8, ["class", "onClick"]))), 128)),
|
|
14994
|
-
t.$slots.end ? (R(), d(n, { key: 0 }, [e.expand ? u("", !0) : (R(), d("div",
|
|
14990
|
+
t.$slots.end ? (R(), d(n, { key: 0 }, [e.expand ? u("", !0) : (R(), d("div", bg)), H(t.$slots, "end")], 64)) : u("", !0),
|
|
14995
14991
|
g(i, {
|
|
14996
14992
|
name: e.transitionName === "none" ? void 0 : e.transitionName,
|
|
14997
14993
|
css: e.transitionName !== "none",
|
|
14998
14994
|
appear: ""
|
|
14999
14995
|
}, {
|
|
15000
|
-
default: X(() => [r.value ? (R(), d("div",
|
|
14996
|
+
default: X(() => [r.value ? (R(), d("div", xg, null, 512)) : u("", !0)]),
|
|
15001
14997
|
_: 1
|
|
15002
14998
|
}, 8, ["name", "css"])
|
|
15003
14999
|
], 2));
|
|
15004
15000
|
}
|
|
15005
|
-
}),
|
|
15001
|
+
}), Cg = { class: "view-wrap" }, wg = .33, Tg = /* @__PURE__ */ v({
|
|
15006
15002
|
__name: "ViewPanel",
|
|
15007
15003
|
props: { panel: {} },
|
|
15008
15004
|
setup(e) {
|
|
@@ -15018,7 +15014,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15018
15014
|
a.value = e.clientX > n.left + n.width / 2 ? t + 1 : t;
|
|
15019
15015
|
}
|
|
15020
15016
|
let m = B(0), _ = c(() => m.value > 0), { elementX: v, elementY: y, elementWidth: b, elementHeight: x } = Cn(J("contentRef"), { handleOutside: !1 }), S = c(() => {
|
|
15021
|
-
if (!(!v.value || !y.value || !b.value || !x.value)) return v.value < b.value *
|
|
15017
|
+
if (!(!v.value || !y.value || !b.value || !x.value)) return v.value < b.value * wg ? "left" : v.value > b.value * (1 - wg) ? "right" : y.value < x.value * wg ? "top" : y.value > x.value * (1 - wg) ? "bottom" : "center";
|
|
15022
15018
|
}), { startDrag: C, handleDrag: w, handleSplit: E, peekDragTab: D, isDragFromPanel: O } = T("$vrp");
|
|
15023
15019
|
function k(e, n) {
|
|
15024
15020
|
C(t.panel, n);
|
|
@@ -15033,11 +15029,11 @@ var og = /* @__PURE__ */ v({
|
|
|
15033
15029
|
!n || n === "center" ? w(t.panel, t.panel.tabs.length) : E(t.panel, n), e && (r.value = e.path);
|
|
15034
15030
|
}
|
|
15035
15031
|
let N = c(() => t.panel.tabs.find((e) => e.path === r.value));
|
|
15036
|
-
return (c, v) => (R(), d("div",
|
|
15032
|
+
return (c, v) => (R(), d("div", Cg, [g(Md, {
|
|
15037
15033
|
padding: !1,
|
|
15038
15034
|
"header-separator": ""
|
|
15039
15035
|
}, {
|
|
15040
|
-
header: X(() => [g(
|
|
15036
|
+
header: X(() => [g(Sg, {
|
|
15041
15037
|
modelValue: r.value,
|
|
15042
15038
|
"onUpdate:modelValue": v[0] ||= (e) => r.value = e,
|
|
15043
15039
|
variant: "filled",
|
|
@@ -15046,7 +15042,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15046
15042
|
onDragover: v[3] ||= we(() => {}, ["prevent"]),
|
|
15047
15043
|
onDrop: v[4] ||= we((e) => A(), ["prevent"])
|
|
15048
15044
|
}, {
|
|
15049
|
-
default: X(() => [(R(!0), d(n, null, V(e.panel.tabs, (t, n) => (R(), l(
|
|
15045
|
+
default: X(() => [(R(!0), d(n, null, V(e.panel.tabs, (t, n) => (R(), l(yg, {
|
|
15050
15046
|
key: t.path,
|
|
15051
15047
|
value: t.path,
|
|
15052
15048
|
draggable: !0,
|
|
@@ -15082,7 +15078,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15082
15078
|
_: 3
|
|
15083
15079
|
})]));
|
|
15084
15080
|
}
|
|
15085
|
-
}),
|
|
15081
|
+
}), Eg = /* @__PURE__ */ v({
|
|
15086
15082
|
__name: "ResizableView",
|
|
15087
15083
|
props: {
|
|
15088
15084
|
modelValue: { default: [] },
|
|
@@ -15169,22 +15165,22 @@ var og = /* @__PURE__ */ v({
|
|
|
15169
15165
|
handleSplit: g,
|
|
15170
15166
|
peekDragTab: _,
|
|
15171
15167
|
isDragFromPanel: v
|
|
15172
|
-
}), (e, r) => (R(), l(
|
|
15168
|
+
}), (e, r) => (R(), l(_g, {
|
|
15173
15169
|
"hide-handles": "",
|
|
15174
15170
|
class: "vui-resizable-view"
|
|
15175
15171
|
}, {
|
|
15176
|
-
default: X(() => [(R(!0), d(n, null, V(t.value, (t) => (R(), d(n, { key: o(t) }, [Array.isArray(t) ? (R(), l(
|
|
15172
|
+
default: X(() => [(R(!0), d(n, null, V(t.value, (t) => (R(), d(n, { key: o(t) }, [Array.isArray(t) ? (R(), l(_g, {
|
|
15177
15173
|
key: 0,
|
|
15178
15174
|
"hide-handles": "",
|
|
15179
15175
|
class: "nested-view",
|
|
15180
15176
|
vertical: ""
|
|
15181
15177
|
}, {
|
|
15182
|
-
default: X(() => [(R(!0), d(n, null, V(t, (t) => (R(), d(n, { key: o(t) }, [Array.isArray(t) ? (R(), l(
|
|
15178
|
+
default: X(() => [(R(!0), d(n, null, V(t, (t) => (R(), d(n, { key: o(t) }, [Array.isArray(t) ? (R(), l(_g, {
|
|
15183
15179
|
key: 0,
|
|
15184
15180
|
"hide-handles": "",
|
|
15185
15181
|
class: "nested-view"
|
|
15186
15182
|
}, {
|
|
15187
|
-
default: X(() => [(R(!0), d(n, null, V(t, (t) => (R(), l(
|
|
15183
|
+
default: X(() => [(R(!0), d(n, null, V(t, (t) => (R(), l(Tg, {
|
|
15188
15184
|
key: o(t),
|
|
15189
15185
|
panel: t
|
|
15190
15186
|
}, {
|
|
@@ -15192,7 +15188,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15192
15188
|
_: 3
|
|
15193
15189
|
}, 8, ["panel"]))), 128))]),
|
|
15194
15190
|
_: 2
|
|
15195
|
-
}, 1024)) : (R(), l(
|
|
15191
|
+
}, 1024)) : (R(), l(Tg, {
|
|
15196
15192
|
key: 1,
|
|
15197
15193
|
panel: t
|
|
15198
15194
|
}, {
|
|
@@ -15200,7 +15196,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15200
15196
|
_: 3
|
|
15201
15197
|
}, 8, ["panel"]))], 64))), 128))]),
|
|
15202
15198
|
_: 2
|
|
15203
|
-
}, 1024)) : (R(), l(
|
|
15199
|
+
}, 1024)) : (R(), l(Tg, {
|
|
15204
15200
|
key: 1,
|
|
15205
15201
|
panel: t
|
|
15206
15202
|
}, {
|
|
@@ -15210,23 +15206,23 @@ var og = /* @__PURE__ */ v({
|
|
|
15210
15206
|
_: 3
|
|
15211
15207
|
}));
|
|
15212
15208
|
}
|
|
15213
|
-
}),
|
|
15209
|
+
}), Dg = { class: "vui-input vui-select-trigger-content" }, Og = ["for"], kg = {
|
|
15214
15210
|
key: 1,
|
|
15215
15211
|
class: "vui-input-hint"
|
|
15216
|
-
},
|
|
15212
|
+
}, Ag = [
|
|
15217
15213
|
"id",
|
|
15218
15214
|
"disabled",
|
|
15219
15215
|
"onClick"
|
|
15220
|
-
],
|
|
15216
|
+
], jg = {
|
|
15221
15217
|
key: 1,
|
|
15222
15218
|
class: "vue-select-no-results"
|
|
15223
|
-
},
|
|
15219
|
+
}, Mg = {
|
|
15224
15220
|
key: 0,
|
|
15225
15221
|
class: "vui-input-limit"
|
|
15226
|
-
},
|
|
15222
|
+
}, Ng = {
|
|
15227
15223
|
key: 1,
|
|
15228
15224
|
class: "vui-input-errors"
|
|
15229
|
-
},
|
|
15225
|
+
}, Pg = /* @__PURE__ */ v({
|
|
15230
15226
|
__name: "Select",
|
|
15231
15227
|
props: /* @__PURE__ */ k({
|
|
15232
15228
|
single: {
|
|
@@ -15295,19 +15291,19 @@ var og = /* @__PURE__ */ v({
|
|
|
15295
15291
|
}]),
|
|
15296
15292
|
style: P(t.value)
|
|
15297
15293
|
}, [
|
|
15298
|
-
g(
|
|
15294
|
+
g(ih, {
|
|
15299
15295
|
ref: "dropdown",
|
|
15300
15296
|
"max-height": e.maxHeight,
|
|
15301
15297
|
"transition-name": e.transitionName,
|
|
15302
15298
|
"no-mobile-drawer": e.noMobileDrawer,
|
|
15303
15299
|
onClose: m[1] ||= (e) => i.value?.focus({ preventScroll: !0 })
|
|
15304
15300
|
}, {
|
|
15305
|
-
trigger: X(({ toggle: t, isOpen: i }) => [f("div",
|
|
15301
|
+
trigger: X(({ toggle: t, isOpen: i }) => [f("div", Dg, [
|
|
15306
15302
|
e.label ? (R(), d("label", {
|
|
15307
15303
|
key: 0,
|
|
15308
15304
|
for: q(v)
|
|
15309
|
-
}, G(e.label), 9,
|
|
15310
|
-
e.hint ? (R(), d("p",
|
|
15305
|
+
}, G(e.label), 9, Og)) : u("", !0),
|
|
15306
|
+
e.hint ? (R(), d("p", kg, G(e.hint), 1)) : u("", !0),
|
|
15311
15307
|
f("button", {
|
|
15312
15308
|
id: q(v),
|
|
15313
15309
|
ref: "trigger",
|
|
@@ -15326,14 +15322,14 @@ var og = /* @__PURE__ */ v({
|
|
|
15326
15322
|
_: 1
|
|
15327
15323
|
})], 64)) : u("", !0),
|
|
15328
15324
|
i ? (R(), l(q(He), { key: 1 })) : (R(), l(q(ze), { key: 2 }))
|
|
15329
|
-
], 10,
|
|
15325
|
+
], 10, Ag)
|
|
15330
15326
|
])]),
|
|
15331
15327
|
default: X(({ close: t, isOpen: i }) => [
|
|
15332
|
-
e.search ? (R(), l(
|
|
15328
|
+
e.search ? (R(), l(fh, {
|
|
15333
15329
|
key: 0,
|
|
15334
15330
|
sticky: ""
|
|
15335
15331
|
}, {
|
|
15336
|
-
default: X(() => [g(
|
|
15332
|
+
default: X(() => [g(Th, {
|
|
15337
15333
|
modelValue: o.value,
|
|
15338
15334
|
"onUpdate:modelValue": m[0] ||= (e) => o.value = e,
|
|
15339
15335
|
placeholder: "Search...",
|
|
@@ -15345,8 +15341,8 @@ var og = /* @__PURE__ */ v({
|
|
|
15345
15341
|
}, 8, ["modelValue", "focus"])]),
|
|
15346
15342
|
_: 2
|
|
15347
15343
|
}, 1024)) : u("", !0),
|
|
15348
|
-
s.value.length === 0 ? (R(), d("p",
|
|
15349
|
-
(R(!0), d(n, null, V(s.value, (n) => (R(), l(
|
|
15344
|
+
s.value.length === 0 ? (R(), d("p", jg, " No results... ")) : u("", !0),
|
|
15345
|
+
(R(!0), d(n, null, V(s.value, (n) => (R(), l(uh, {
|
|
15350
15346
|
key: n.value,
|
|
15351
15347
|
class: M({ selected: r.value?.find((e) => e.value === n.value) }),
|
|
15352
15348
|
onClick: () => {
|
|
@@ -15363,14 +15359,14 @@ var og = /* @__PURE__ */ v({
|
|
|
15363
15359
|
"transition-name",
|
|
15364
15360
|
"no-mobile-drawer"
|
|
15365
15361
|
]),
|
|
15366
|
-
e.maxActiveOptions && !e.single ? (R(), d("p",
|
|
15367
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
15362
|
+
e.maxActiveOptions && !e.single ? (R(), d("p", Mg, G(`${r.value ? r.value.length : 0}/${e.maxActiveOptions}`), 1)) : u("", !0),
|
|
15363
|
+
e.errors.length > 0 ? (R(), d("ul", Ng, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0)
|
|
15368
15364
|
], 6));
|
|
15369
15365
|
}
|
|
15370
|
-
}),
|
|
15366
|
+
}), Fg = {
|
|
15371
15367
|
key: 0,
|
|
15372
15368
|
class: "vui-sheet-shell"
|
|
15373
|
-
},
|
|
15369
|
+
}, Ig = 16, Lg = /* @__PURE__ */ Zd(/* @__PURE__ */ v({
|
|
15374
15370
|
inheritAttrs: !1,
|
|
15375
15371
|
__name: "Sheet",
|
|
15376
15372
|
props: {
|
|
@@ -15408,10 +15404,10 @@ var og = /* @__PURE__ */ v({
|
|
|
15408
15404
|
if (e.position === "left" || e.position === "right") return { maxWidth: Zn(e.size) };
|
|
15409
15405
|
}), h = c(() => {
|
|
15410
15406
|
switch (e.position) {
|
|
15411
|
-
case "left": return `translate(-${
|
|
15412
|
-
case "top": return `translate(0, -${
|
|
15413
|
-
case "bottom": return `translate(0, ${
|
|
15414
|
-
default: return `translate(${
|
|
15407
|
+
case "left": return `translate(-${Ig}px, 0)`;
|
|
15408
|
+
case "top": return `translate(0, -${Ig}px)`;
|
|
15409
|
+
case "bottom": return `translate(0, ${Ig}px)`;
|
|
15410
|
+
default: return `translate(${Ig}px, 0)`;
|
|
15415
15411
|
}
|
|
15416
15412
|
});
|
|
15417
15413
|
return (t, c) => (R(), l(r, { to: "body" }, [o.value ? (R(), l(cf, {
|
|
@@ -15424,7 +15420,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15424
15420
|
css: e.transitionName !== "none",
|
|
15425
15421
|
onAfterLeave: f
|
|
15426
15422
|
}, {
|
|
15427
|
-
default: X(() => [e.open ? (R(), d("div",
|
|
15423
|
+
default: X(() => [e.open ? (R(), d("div", Fg, [g(Md, A({
|
|
15428
15424
|
class: ["vui-sheet", [`vui-sheet-position-${e.position}`]],
|
|
15429
15425
|
style: p.value
|
|
15430
15426
|
}, {
|
|
@@ -15463,13 +15459,13 @@ var og = /* @__PURE__ */ v({
|
|
|
15463
15459
|
_: 3
|
|
15464
15460
|
})) : u("", !0)]));
|
|
15465
15461
|
}
|
|
15466
|
-
}), [["__scopeId", "data-v-d0fc93ff"]]),
|
|
15462
|
+
}), [["__scopeId", "data-v-d0fc93ff"]]), Rg = {
|
|
15467
15463
|
key: 0,
|
|
15468
15464
|
class: "vui-sidebar-header"
|
|
15469
|
-
},
|
|
15465
|
+
}, zg = { class: "vui-sidebar-content" }, Bg = { class: "vui-sidebar-content-wrap" }, Vg = {
|
|
15470
15466
|
key: 1,
|
|
15471
15467
|
class: "vui-sidebar-footer"
|
|
15472
|
-
},
|
|
15468
|
+
}, Hg = 32, Ug = /* @__PURE__ */ v({
|
|
15473
15469
|
__name: "Sidebar",
|
|
15474
15470
|
props: /* @__PURE__ */ k({
|
|
15475
15471
|
width: { default: 224 },
|
|
@@ -15501,7 +15497,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15501
15497
|
return F(() => {
|
|
15502
15498
|
t.appear && r.value && (r.value = !1);
|
|
15503
15499
|
}), Bt(h, (e) => {
|
|
15504
|
-
!t.appear || e <=
|
|
15500
|
+
!t.appear || e <= Hg && e >= 0 && m.value || (e <= Hg && e >= 0 && !r.value && !m.value ? l() : m.value && p(), (e > Hg + (t.mini ? 65 : t.floaty ? t.width : t.width - (Wn(a.value) ? 0 : Number(a.value?.replace("px", "")))) || e < 0) && r.value && (r.value = !1));
|
|
15505
15501
|
}, {
|
|
15506
15502
|
throttle: 100,
|
|
15507
15503
|
immediate: !0
|
|
@@ -15520,21 +15516,21 @@ var og = /* @__PURE__ */ v({
|
|
|
15520
15516
|
}]),
|
|
15521
15517
|
style: P({ "--vui-sidebar-width": `${t.mini ? 65 : t.width}px` })
|
|
15522
15518
|
}, [
|
|
15523
|
-
q(i).header ? (R(), d("div",
|
|
15524
|
-
f("div",
|
|
15525
|
-
q(i).footer ? (R(), d("div",
|
|
15519
|
+
q(i).header ? (R(), d("div", Rg, [H(e.$slots, "header", N(S(s.value)))])) : u("", !0),
|
|
15520
|
+
f("div", zg, [f("div", Bg, [H(e.$slots, "default", N(S(s.value)))])]),
|
|
15521
|
+
q(i).footer ? (R(), d("div", Vg, [H(e.$slots, "footer", N(S(s.value)))])) : u("", !0)
|
|
15526
15522
|
], 6)], 6));
|
|
15527
15523
|
}
|
|
15528
|
-
}),
|
|
15524
|
+
}), Wg = "var(--border-radius-s)", Gg = /* @__PURE__ */ v({
|
|
15529
15525
|
__name: "Skeleton",
|
|
15530
15526
|
props: {
|
|
15531
|
-
radius: { default: () =>
|
|
15527
|
+
radius: { default: () => Wg },
|
|
15532
15528
|
width: { default: "100%" },
|
|
15533
15529
|
height: { default: "32px" },
|
|
15534
15530
|
circle: { type: Boolean }
|
|
15535
15531
|
},
|
|
15536
15532
|
setup(e) {
|
|
15537
|
-
let t = c(() => Zn(e.circle && e.radius ===
|
|
15533
|
+
let t = c(() => Zn(e.circle && e.radius === Wg ? 9999 : e.radius)), n = c(() => Zn(e.circle ? e.width || e.height : e.width)), r = c(() => Zn(e.circle && e.width || e.height));
|
|
15538
15534
|
return (e, i) => (R(), d("div", {
|
|
15539
15535
|
class: "vui-skeleton",
|
|
15540
15536
|
style: P({
|
|
@@ -15544,25 +15540,25 @@ var og = /* @__PURE__ */ v({
|
|
|
15544
15540
|
})
|
|
15545
15541
|
}, null, 4));
|
|
15546
15542
|
}
|
|
15547
|
-
}),
|
|
15543
|
+
}), Kg = ["inert"], qg = [
|
|
15548
15544
|
"aria-label",
|
|
15549
15545
|
"aria-disabled",
|
|
15550
15546
|
"aria-valuemin",
|
|
15551
15547
|
"aria-valuemax",
|
|
15552
15548
|
"aria-valuenow"
|
|
15553
|
-
],
|
|
15549
|
+
], Jg = [
|
|
15554
15550
|
"aria-label",
|
|
15555
15551
|
"aria-disabled",
|
|
15556
15552
|
"aria-valuemin",
|
|
15557
15553
|
"aria-valuemax",
|
|
15558
15554
|
"aria-valuenow"
|
|
15559
|
-
],
|
|
15555
|
+
], Yg = [
|
|
15560
15556
|
"aria-label",
|
|
15561
15557
|
"aria-disabled",
|
|
15562
15558
|
"aria-valuemin",
|
|
15563
15559
|
"aria-valuemax",
|
|
15564
15560
|
"aria-valuenow"
|
|
15565
|
-
],
|
|
15561
|
+
], Xg = /* @__PURE__ */ v({
|
|
15566
15562
|
__name: "Slider",
|
|
15567
15563
|
props: /* @__PURE__ */ k({
|
|
15568
15564
|
min: { default: 0 },
|
|
@@ -15701,7 +15697,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15701
15697
|
onMousedown: s[0] ||= (e) => y(e, 0),
|
|
15702
15698
|
onTouchstart: s[1] ||= (e) => b(e, 0),
|
|
15703
15699
|
onKeydown: s[2] ||= (e) => C(e, 0)
|
|
15704
|
-
}, null, 44,
|
|
15700
|
+
}, null, 44, qg), f("span", {
|
|
15705
15701
|
class: "vui-slider-handle",
|
|
15706
15702
|
tabindex: "0",
|
|
15707
15703
|
role: "slider",
|
|
@@ -15715,7 +15711,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15715
15711
|
onMousedown: s[3] ||= (e) => y(e, 1),
|
|
15716
15712
|
onTouchstart: s[4] ||= (e) => b(e, 1),
|
|
15717
15713
|
onKeydown: s[5] ||= (e) => C(e, 1)
|
|
15718
|
-
}, null, 44,
|
|
15714
|
+
}, null, 44, Jg)], 64)) : (R(), d("span", {
|
|
15719
15715
|
key: 1,
|
|
15720
15716
|
class: "vui-slider-handle",
|
|
15721
15717
|
tabindex: "0",
|
|
@@ -15730,24 +15726,24 @@ var og = /* @__PURE__ */ v({
|
|
|
15730
15726
|
onMousedown: s[6] ||= (e) => y(e, 0),
|
|
15731
15727
|
onTouchstart: s[7] ||= (e) => b(e, 0),
|
|
15732
15728
|
onKeydown: s[8] ||= (e) => C(e)
|
|
15733
|
-
}, null, 44,
|
|
15729
|
+
}, null, 44, Yg)),
|
|
15734
15730
|
e.steps ? (R(!0), d(n, { key: 2 }, V(e.steps + 1, (t) => (R(), d("div", {
|
|
15735
15731
|
key: t,
|
|
15736
15732
|
class: "vui-slider-step-indicator",
|
|
15737
15733
|
style: P({ left: `${(t - 1) / e.steps * 100}%` })
|
|
15738
15734
|
}, null, 4))), 128)) : u("", !0)
|
|
15739
|
-
], 10,
|
|
15735
|
+
], 10, Kg));
|
|
15740
15736
|
}
|
|
15741
|
-
}),
|
|
15737
|
+
}), Zg = ["id", "disabled"], Qg = ["for"], $g = { class: "w-100" }, e_ = {
|
|
15742
15738
|
key: 0,
|
|
15743
15739
|
class: "vui-switch-content"
|
|
15744
|
-
},
|
|
15740
|
+
}, t_ = {
|
|
15745
15741
|
key: 1,
|
|
15746
15742
|
class: "vui-switch-content"
|
|
15747
|
-
},
|
|
15743
|
+
}, n_ = {
|
|
15748
15744
|
key: 2,
|
|
15749
15745
|
class: "vui-hint mt-xxs block"
|
|
15750
|
-
},
|
|
15746
|
+
}, r_ = /* @__PURE__ */ v({
|
|
15751
15747
|
__name: "Switch",
|
|
15752
15748
|
props: /* @__PURE__ */ k({
|
|
15753
15749
|
label: {},
|
|
@@ -15772,22 +15768,22 @@ var og = /* @__PURE__ */ v({
|
|
|
15772
15768
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
15773
15769
|
type: "checkbox",
|
|
15774
15770
|
disabled: e.disabled
|
|
15775
|
-
}, null, 8,
|
|
15771
|
+
}, null, 8, Zg), [[he, n.value]]), f("label", { for: q(r) }, [a[1] ||= f("div", { class: "vui-switch-icon" }, [f("span", { class: "vui-switch-indicator" })], -1), f("div", $g, [!t.default && e.label ? (R(), d("p", e_, G(e.label), 1)) : (R(), d("div", t_, [H(i.$slots, "default")])), e.hint ? (R(), d("p", n_, G(e.hint), 1)) : u("", !0)])], 8, Qg)], 2));
|
|
15776
15772
|
}
|
|
15777
|
-
}),
|
|
15773
|
+
}), i_ = {
|
|
15778
15774
|
key: 0,
|
|
15779
15775
|
ref: "context",
|
|
15780
15776
|
class: "vui-cell-context"
|
|
15781
|
-
},
|
|
15777
|
+
}, a_ = /* @__PURE__ */ v({
|
|
15782
15778
|
__name: "Cell",
|
|
15783
15779
|
setup(e) {
|
|
15784
15780
|
let t = me(), n = J("context"), r = c(() => !t.context || !window ? {} : { paddingRight: `${n.value?.getBoundingClientRect().width ?? 0}px` });
|
|
15785
|
-
return (e, t) => (R(), d("td", { style: P(r.value) }, [H(e.$slots, "default"), e.$slots.context ? (R(), d("div",
|
|
15781
|
+
return (e, t) => (R(), d("td", { style: P(r.value) }, [H(e.$slots, "default"), e.$slots.context ? (R(), d("div", i_, [H(e.$slots, "context")], 512)) : u("", !0)], 4));
|
|
15786
15782
|
}
|
|
15787
|
-
}),
|
|
15783
|
+
}), o_ = {
|
|
15788
15784
|
key: 0,
|
|
15789
15785
|
class: "vui-table-th-content"
|
|
15790
|
-
},
|
|
15786
|
+
}, s_ = /* @__PURE__ */ v({
|
|
15791
15787
|
__name: "Head",
|
|
15792
15788
|
props: {
|
|
15793
15789
|
header: {},
|
|
@@ -15810,7 +15806,7 @@ var og = /* @__PURE__ */ v({
|
|
|
15810
15806
|
};
|
|
15811
15807
|
}
|
|
15812
15808
|
});
|
|
15813
|
-
return (e, r) => (R(), d("th", null, [t.header || e.$slots.default ? (R(), d("div",
|
|
15809
|
+
return (e, r) => (R(), d("th", null, [t.header || e.$slots.default ? (R(), d("div", o_, [H(e.$slots, "default", {}, () => [h(G(t.header?.label), 1)]), t.sort && t.header ? (R(), l(Qd, {
|
|
15814
15810
|
key: 0,
|
|
15815
15811
|
placement: "top"
|
|
15816
15812
|
}, {
|
|
@@ -15829,8 +15825,8 @@ var og = /* @__PURE__ */ v({
|
|
|
15829
15825
|
_: 1
|
|
15830
15826
|
})) : u("", !0)])) : u("", !0)]));
|
|
15831
15827
|
}
|
|
15832
|
-
}),
|
|
15833
|
-
function
|
|
15828
|
+
}), c_ = Symbol("select-row-provide");
|
|
15829
|
+
function l_(e, t) {
|
|
15834
15830
|
let n = c(() => K(e)), r = B({
|
|
15835
15831
|
pagination: {
|
|
15836
15832
|
enabled: !1,
|
|
@@ -15839,7 +15835,7 @@ function u_(e, t) {
|
|
|
15839
15835
|
},
|
|
15840
15836
|
select: !1,
|
|
15841
15837
|
...t
|
|
15842
|
-
}), i = B(1), a = c(() =>
|
|
15838
|
+
}), i = B(1), a = c(() => ig(n.value.length, i.value, r.value.pagination?.perPage, r.value.pagination?.maxPages)), o = c(() => a.value.currentPage < a.value.endPage), s = c(() => a.value.currentPage > a.value.startPage), l = (e) => {
|
|
15843
15839
|
(e > i.value && o.value || e < i.value && s.value) && (i.value = e);
|
|
15844
15840
|
}, u = W({
|
|
15845
15841
|
key: void 0,
|
|
@@ -15878,7 +15874,7 @@ function u_(e, t) {
|
|
|
15878
15874
|
};
|
|
15879
15875
|
})), g = c(() => r.value.pagination?.enabled === !0 ? m.value.slice(a.value.startIndex, a.value.endIndex + 1) : m.value), _ = B(/* @__PURE__ */ new Set()), v = c(() => r.value.select);
|
|
15880
15876
|
function y(e) {
|
|
15881
|
-
_.value
|
|
15877
|
+
$n(_.value, e) ? _.value.delete(e) : _.value.add(e);
|
|
15882
15878
|
}
|
|
15883
15879
|
let b = c(() => n.value.length === _.value.size);
|
|
15884
15880
|
function x() {
|
|
@@ -15887,7 +15883,7 @@ function u_(e, t) {
|
|
|
15887
15883
|
function S() {
|
|
15888
15884
|
_.value = /* @__PURE__ */ new Set();
|
|
15889
15885
|
}
|
|
15890
|
-
return re(
|
|
15886
|
+
return re(c_, {
|
|
15891
15887
|
selectedRows: _,
|
|
15892
15888
|
selectRow: y,
|
|
15893
15889
|
selectAllRows: x,
|
|
@@ -15914,10 +15910,10 @@ function u_(e, t) {
|
|
|
15914
15910
|
}
|
|
15915
15911
|
//#endregion
|
|
15916
15912
|
//#region src/components/Table/Root.vue?vue&type=script&setup=true&lang.ts
|
|
15917
|
-
var
|
|
15913
|
+
var u_ = { key: 0 }, d_ = {
|
|
15918
15914
|
key: 0,
|
|
15919
15915
|
class: "vui-table-pagination-wrap"
|
|
15920
|
-
},
|
|
15916
|
+
}, f_ = /* @__PURE__ */ v({
|
|
15921
15917
|
__name: "Root",
|
|
15922
15918
|
props: {
|
|
15923
15919
|
fixed: { type: Boolean },
|
|
@@ -15936,7 +15932,7 @@ var d_ = { key: 0 }, f_ = {
|
|
|
15936
15932
|
}
|
|
15937
15933
|
},
|
|
15938
15934
|
setup(e) {
|
|
15939
|
-
let t = T(
|
|
15935
|
+
let t = T(c_);
|
|
15940
15936
|
return (n, r) => (R(), d("div", { class: M(["vui-table-container", {
|
|
15941
15937
|
fixed: e.fixed,
|
|
15942
15938
|
nowrap: e.nowrap,
|
|
@@ -15944,12 +15940,12 @@ var d_ = { key: 0 }, f_ = {
|
|
|
15944
15940
|
"separated-rows": e.separateRows,
|
|
15945
15941
|
"separated-cells": e.separateCells,
|
|
15946
15942
|
"outer-border": e.outerBorder
|
|
15947
|
-
}]) }, [f("table", null, [n.$slots.header ? (R(), d("thead",
|
|
15943
|
+
}]) }, [f("table", null, [n.$slots.header ? (R(), d("thead", u_, [f("tr", null, [H(n.$slots, "header")])])) : u("", !0), f("tbody", null, [H(n.$slots, "body")])]), n.$slots.pagination ? (R(), d("div", d_, [H(n.$slots, "pagination")])) : u("", !0)], 2));
|
|
15948
15944
|
}
|
|
15949
|
-
}),
|
|
15945
|
+
}), p_ = /* @__PURE__ */ v({
|
|
15950
15946
|
__name: "SelectAll",
|
|
15951
15947
|
setup(e) {
|
|
15952
|
-
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(
|
|
15948
|
+
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(c_);
|
|
15953
15949
|
return (e, i) => q(n) ? (R(), d("th", {
|
|
15954
15950
|
key: 0,
|
|
15955
15951
|
class: M(["vui-table-interactive-cell", { selected: q(t) }])
|
|
@@ -15962,11 +15958,11 @@ var d_ = { key: 0 }, f_ = {
|
|
|
15962
15958
|
_: 1
|
|
15963
15959
|
})], 2)) : u("", !0);
|
|
15964
15960
|
}
|
|
15965
|
-
}),
|
|
15961
|
+
}), m_ = /* @__PURE__ */ v({
|
|
15966
15962
|
__name: "SelectRow",
|
|
15967
15963
|
props: { row: {} },
|
|
15968
15964
|
setup(e) {
|
|
15969
|
-
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(
|
|
15965
|
+
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(c_), a = c(() => $n(i.value, t.row));
|
|
15970
15966
|
return (e, i) => q(n) ? (R(), d("td", {
|
|
15971
15967
|
key: 0,
|
|
15972
15968
|
class: M(["vui-table-interactive-cell", { selected: a.value }])
|
|
@@ -15979,20 +15975,20 @@ var d_ = { key: 0 }, f_ = {
|
|
|
15979
15975
|
_: 1
|
|
15980
15976
|
})], 2)) : u("", !0);
|
|
15981
15977
|
}
|
|
15982
|
-
}),
|
|
15983
|
-
Cell: () =>
|
|
15984
|
-
Head: () =>
|
|
15985
|
-
Root: () =>
|
|
15986
|
-
SelectAll: () =>
|
|
15987
|
-
SelectRow: () =>
|
|
15988
|
-
}),
|
|
15989
|
-
function
|
|
15978
|
+
}), h_ = /* @__PURE__ */ ke({
|
|
15979
|
+
Cell: () => a_,
|
|
15980
|
+
Head: () => s_,
|
|
15981
|
+
Root: () => f_,
|
|
15982
|
+
SelectAll: () => p_,
|
|
15983
|
+
SelectRow: () => m_
|
|
15984
|
+
}), g_ = B(/* @__PURE__ */ new Map()), __ = 0;
|
|
15985
|
+
function v_(e, t) {
|
|
15990
15986
|
let n = {
|
|
15991
15987
|
persist: !1,
|
|
15992
15988
|
timeout: 7e3,
|
|
15993
15989
|
...t
|
|
15994
15990
|
}, r = {
|
|
15995
|
-
id:
|
|
15991
|
+
id: __,
|
|
15996
15992
|
title: e,
|
|
15997
15993
|
persist: n.persist,
|
|
15998
15994
|
description: n.description,
|
|
@@ -16002,19 +15998,19 @@ function y_(e, t) {
|
|
|
16002
15998
|
body: n.body,
|
|
16003
15999
|
bodyProps: n.bodyProps ?? {}
|
|
16004
16000
|
};
|
|
16005
|
-
return
|
|
16006
|
-
|
|
16007
|
-
}, n.timeout,
|
|
16001
|
+
return g_.value.set(__, r), n.persist || setTimeout((e) => {
|
|
16002
|
+
g_.value.delete(e);
|
|
16003
|
+
}, n.timeout, __), __++, r;
|
|
16008
16004
|
}
|
|
16009
|
-
function
|
|
16010
|
-
|
|
16005
|
+
function y_(e) {
|
|
16006
|
+
g_.value.delete(e);
|
|
16011
16007
|
}
|
|
16012
16008
|
//#endregion
|
|
16013
16009
|
//#region src/components/Toast/Toasts.vue?vue&type=script&setup=true&lang.ts
|
|
16014
|
-
var
|
|
16010
|
+
var b_ = {
|
|
16015
16011
|
key: 1,
|
|
16016
16012
|
class: "vui-toast-item"
|
|
16017
|
-
},
|
|
16013
|
+
}, x_ = { class: "vui-toast-item-content" }, S_ = { key: 0 }, C_ = /* @__PURE__ */ Zd(/* @__PURE__ */ v({
|
|
16018
16014
|
__name: "Toasts",
|
|
16019
16015
|
props: { placement: { default: "bottom-end" } },
|
|
16020
16016
|
setup(e) {
|
|
@@ -16023,13 +16019,13 @@ var x_ = {
|
|
|
16023
16019
|
tag: "ul",
|
|
16024
16020
|
class: "vui-toast-list"
|
|
16025
16021
|
}, {
|
|
16026
|
-
default: X(() => [(R(!0), d(n, null, V(q(
|
|
16022
|
+
default: X(() => [(R(!0), d(n, null, V(q(g_), ([e, t]) => (R(), d(n, { key: e }, [t.body ? (R(), l(U(t.body), A({
|
|
16027
16023
|
key: 0,
|
|
16028
16024
|
ref_for: !0
|
|
16029
16025
|
}, {
|
|
16030
16026
|
data: t.bodyProps,
|
|
16031
16027
|
toastId: e
|
|
16032
|
-
}), null, 16)) : (R(), d("li",
|
|
16028
|
+
}), null, 16)) : (R(), d("li", b_, [f("div", x_, [f("strong", null, G(t.title), 1), t.description ? (R(), d("p", S_, G(t.description), 1)) : u("", !0)]), t.action ? (R(), l(_r, {
|
|
16033
16029
|
key: 0,
|
|
16034
16030
|
size: "s",
|
|
16035
16031
|
onClick: (e) => t.action.handler(t.id)
|
|
@@ -16043,7 +16039,7 @@ var x_ = {
|
|
|
16043
16039
|
}), [["__scopeId", "data-v-a0ee459a"]]);
|
|
16044
16040
|
//#endregion
|
|
16045
16041
|
//#region src/shared/viewTransition.ts
|
|
16046
|
-
function
|
|
16042
|
+
function w_() {
|
|
16047
16043
|
let e = B(!1);
|
|
16048
16044
|
async function t(t) {
|
|
16049
16045
|
if (!document.startViewTransition) {
|
|
@@ -16066,4 +16062,4 @@ function T_() {
|
|
|
16066
16062
|
};
|
|
16067
16063
|
}
|
|
16068
16064
|
//#endregion
|
|
16069
|
-
export { Dn as Accordion, Mn as AccordionGroup, Ln as Alert, zn as AspectRatio, or as Avatar, cr as AvatarGroup, cf as Backdrop, ur as Badge, dr as BadgeGroup, fr as BreadcrumbItem, hr as Breadcrumbs, _r as Button, vr as ButtonGroup, Td as Calendar, Md as Card, Fd as Carousel, of as Checkbox,
|
|
16065
|
+
export { Dn as Accordion, Mn as AccordionGroup, Ln as Alert, zn as AspectRatio, or as Avatar, cr as AvatarGroup, cf as Backdrop, ur as Badge, dr as BadgeGroup, fr as BreadcrumbItem, hr as Breadcrumbs, _r as Button, vr as ButtonGroup, Td as Calendar, Md as Card, Fd as Carousel, of as Checkbox, kh as Color, Ef as Commands, Qh as Confirm, Of as ContextMenu, Af as CopyClipboard, Ah as Counter, Dd as Divider, nh as Drawer, ih as Dropdown, uh as DropdownItem, fh as DropdownTitle, Nh as Dropzone, Ph as File, sr as Flex, ph as Grid, ef as Histogram, mh as Indicator, Th as Input, sf as Kbd, Uh as KbdGroup, qh as Marquee, Xh as MenuItem, Yh as Menubar, lf as Modal, ng as OTP, rg as OTPItem, ff as Overflow, ag as Pagination, Fh as Password, Jd as Popout, sg as PopoutHover, cg as Progress, mg as Radio, hg as RadioGroup, _g as Resizable, Eg as ResizableView, Pg as Select, Lg as Sheet, Ug as Sidebar, Gg as Skeleton, Xg as Slider, gr as Spinner, r_ as Switch, yg as Tab, h_ as Table, Sg as Tabs, Hh as Textarea, C_ as Toasts, Qd as Tooltip, Id as breakpoints, l_ as defineTable, ig as paginate, v_ as pushToast, y_ as removeToast, Hn as searchString, wd as setColorTheme, Cd as theme, w_ as useViewTransition, zd as viewport };
|