@dolanske/vui 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +673 -673
- package/README.md +12 -12
- package/dist/src/components/Carousel/Carousel.vue.d.ts +4 -0
- package/dist/src/components/Overflow/Overflow.vue.d.ts +39 -0
- package/dist/src/components/Table/table.d.ts +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/shared/slots.d.ts +1 -1
- package/dist/vui.css +1 -1
- package/dist/vui.js +630 -601
- package/package.json +78 -78
package/dist/vui.js
CHANGED
|
@@ -10823,59 +10823,62 @@ var Sd = /* @__PURE__ */ v({
|
|
|
10823
10823
|
t.$slots.footer ? (z(), d("div", Od, [U(t.$slots, "footer")])) : u("", !0)
|
|
10824
10824
|
], 6));
|
|
10825
10825
|
}
|
|
10826
|
-
}), Ad =
|
|
10826
|
+
}), Ad = { class: "overflow-track" }, jd = 6, Md = /* @__PURE__ */ v({
|
|
10827
10827
|
__name: "Carousel",
|
|
10828
10828
|
props: {
|
|
10829
10829
|
gap: { default: "s" },
|
|
10830
10830
|
hideScrollbar: { type: Boolean },
|
|
10831
|
-
hideShadows: { type: Boolean }
|
|
10831
|
+
hideShadows: { type: Boolean },
|
|
10832
|
+
snap: { type: Boolean }
|
|
10832
10833
|
},
|
|
10833
10834
|
setup(e) {
|
|
10834
|
-
let t = Y("carouselWrap"), n = c(() => t.value?.$el), r =
|
|
10835
|
+
let t = Y("carouselWrap"), n = c(() => t.value?.$el), { x: r } = gn(n), i = V(!1), a = V(!1), o = V(0), s = V(0);
|
|
10835
10836
|
return Ut(n, "pointerdown", (e) => {
|
|
10836
10837
|
if (e.button !== 0 && e.pointerType === "mouse") return;
|
|
10837
10838
|
let t = n.value;
|
|
10838
|
-
t && (
|
|
10839
|
+
t && (a.value = !1, i.value = !0, o.value = e.clientX, s.value = t.scrollLeft);
|
|
10839
10840
|
}), Ut(n, "pointermove", (e) => {
|
|
10840
|
-
if (!
|
|
10841
|
-
let t =
|
|
10842
|
-
if (!
|
|
10843
|
-
|
|
10844
|
-
let
|
|
10845
|
-
|
|
10841
|
+
if (!i.value) return;
|
|
10842
|
+
let t = o.value - e.clientX;
|
|
10843
|
+
if (!a.value && Math.abs(t) < jd) return;
|
|
10844
|
+
a.value || n.value?.setPointerCapture(e.pointerId), a.value = !0;
|
|
10845
|
+
let r = n.value;
|
|
10846
|
+
r && (r.scrollLeft = s.value + t);
|
|
10846
10847
|
}), Ut(n, "pointerup", () => {
|
|
10847
|
-
|
|
10848
|
+
i.value = !1;
|
|
10848
10849
|
}), Ut(n, "pointercancel", () => {
|
|
10849
|
-
|
|
10850
|
+
i.value = !1, a.value = !1;
|
|
10850
10851
|
}), Ut(n, "click", (e) => {
|
|
10851
|
-
|
|
10852
|
+
a.value &&= (e.preventDefault(), e.stopPropagation(), !1);
|
|
10852
10853
|
}, { capture: !0 }), L(() => {
|
|
10853
10854
|
Ut(n.value, "wheel", (e) => {
|
|
10854
10855
|
e.deltaX === 0 && (e.preventDefault(), n.value.scrollLeft += e.deltaY);
|
|
10855
10856
|
}, { passive: !1 });
|
|
10856
|
-
}), (t,
|
|
10857
|
+
}), (t, a) => (z(), d("div", { class: M(["overflow is-horizontal carousel", {
|
|
10857
10858
|
"hide-scrollbar": e.hideScrollbar,
|
|
10858
|
-
"hide-shadows": e.hideShadows
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
"shadow-
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10859
|
+
"hide-shadows": e.hideShadows,
|
|
10860
|
+
"is-snap": e.snap
|
|
10861
|
+
}]) }, [f("div", Ad, [
|
|
10862
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-left", { visible: J(r) > 0 }]) }, null, 2),
|
|
10863
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-right", { visible: n.value && J(r) < n.value.scrollWidth - n.value.clientWidth }]) }, null, 2),
|
|
10864
|
+
g(ir, {
|
|
10865
|
+
ref: "carouselWrap",
|
|
10866
|
+
class: M(["overflow-content", { "is-dragging": i.value }]),
|
|
10867
|
+
gap: e.gap
|
|
10868
|
+
}, {
|
|
10869
|
+
default: Z(() => [U(t.$slots, "default")]),
|
|
10870
|
+
_: 3
|
|
10871
|
+
}, 8, ["class", "gap"])
|
|
10872
|
+
])], 2));
|
|
10870
10873
|
}
|
|
10871
|
-
}),
|
|
10874
|
+
}), Nd = [
|
|
10872
10875
|
"id",
|
|
10873
10876
|
"disabled",
|
|
10874
10877
|
"checked"
|
|
10875
|
-
],
|
|
10878
|
+
], Pd = ["for"], Fd = { class: "vui-checkbox-icon" }, Id = {
|
|
10876
10879
|
key: 0,
|
|
10877
10880
|
class: "vui-checkbox-content"
|
|
10878
|
-
},
|
|
10881
|
+
}, Ld = /* @__PURE__ */ v({
|
|
10879
10882
|
__name: "Checkbox",
|
|
10880
10883
|
props: /* @__PURE__ */ k({
|
|
10881
10884
|
label: {},
|
|
@@ -10902,23 +10905,23 @@ var Sd = /* @__PURE__ */ v({
|
|
|
10902
10905
|
onChange: o[1] ||= (t) => {
|
|
10903
10906
|
e.disabled || n("change", t.target.checked);
|
|
10904
10907
|
}
|
|
10905
|
-
}, null, 40,
|
|
10908
|
+
}, null, 40, Nd), [[me, i.value]]), f("label", { for: J(a) }, [f("span", Fd, [i.value ? U(t.$slots, "icon-on", { key: 0 }, () => [g(J(Ge))]) : U(t.$slots, "icon-off", { key: 1 }, () => [g(J(at))])]), e.label || r.default ? (z(), d("p", Id, [U(t.$slots, "default", {}, () => [h(K(e.label), 1)])])) : u("", !0)], 8, Pd)], 2));
|
|
10906
10909
|
}
|
|
10907
|
-
}),
|
|
10910
|
+
}), Rd = /* @__PURE__ */ function(e) {
|
|
10908
10911
|
return e.Mobile = "mobile", e.Tablet = "tablet", e;
|
|
10909
|
-
}({}),
|
|
10912
|
+
}({}), zd = V({
|
|
10910
10913
|
mobile: 572,
|
|
10911
10914
|
tablet: 768
|
|
10912
|
-
}), { width:
|
|
10913
|
-
function
|
|
10915
|
+
}), { width: Bd } = Cn();
|
|
10916
|
+
function Vd(e) {
|
|
10914
10917
|
return c(() => {
|
|
10915
|
-
let t =
|
|
10916
|
-
return t ?
|
|
10918
|
+
let t = zd.value[e];
|
|
10919
|
+
return t ? Bd.value <= t : (console.warn(`Breakpoint ${e} is not defined in vuiBreakpoints.`), !1);
|
|
10917
10920
|
});
|
|
10918
10921
|
}
|
|
10919
10922
|
//#endregion
|
|
10920
10923
|
//#region src/components/Kbd/Kbd.vue
|
|
10921
|
-
var
|
|
10924
|
+
var Hd = /* @__PURE__ */ v({
|
|
10922
10925
|
__name: "Kbd",
|
|
10923
10926
|
props: {
|
|
10924
10927
|
keys: {},
|
|
@@ -10936,24 +10939,24 @@ var Vd = /* @__PURE__ */ v({
|
|
|
10936
10939
|
let a = c(() => !n.highlight || !n.keys ? !1 : n.keys.split("+").every((e) => i.current.has(e.toLowerCase())));
|
|
10937
10940
|
return (e, t) => (z(), d("kbd", { class: M(["vui-kbd", { active: a.value }]) }, [U(e.$slots, "default", {}, () => [h(K(n.label ?? n.keys?.replaceAll("+", " + ")), 1)])], 2));
|
|
10938
10941
|
}
|
|
10939
|
-
}),
|
|
10940
|
-
function
|
|
10941
|
-
return
|
|
10942
|
-
}
|
|
10943
|
-
function qd(e) {
|
|
10944
|
-
let t = Wd.lastIndexOf(e);
|
|
10945
|
-
t !== -1 && Wd.splice(t, 1), Wd.length === 0 && (Gd = Hd);
|
|
10942
|
+
}), Ud = 600, Wd = 10, Gd = [], Kd = Ud;
|
|
10943
|
+
function qd() {
|
|
10944
|
+
return Kd += Wd, Gd.push(Kd), Kd;
|
|
10946
10945
|
}
|
|
10947
10946
|
function Jd(e) {
|
|
10948
|
-
|
|
10947
|
+
let t = Gd.lastIndexOf(e);
|
|
10948
|
+
t !== -1 && Gd.splice(t, 1), Gd.length === 0 && (Kd = Ud);
|
|
10949
|
+
}
|
|
10950
|
+
function Yd(e) {
|
|
10951
|
+
return Gd.length > 0 && Gd.at(-1) === e;
|
|
10949
10952
|
}
|
|
10950
|
-
function
|
|
10951
|
-
let e = V(
|
|
10953
|
+
function Xd() {
|
|
10954
|
+
let e = V(Ud), t = null;
|
|
10952
10955
|
function n() {
|
|
10953
|
-
t === null && (t =
|
|
10956
|
+
t === null && (t = qd(), e.value = t);
|
|
10954
10957
|
}
|
|
10955
10958
|
function r() {
|
|
10956
|
-
t !== null && (
|
|
10959
|
+
t !== null && (Jd(t), t = null);
|
|
10957
10960
|
}
|
|
10958
10961
|
return te(() => {
|
|
10959
10962
|
r();
|
|
@@ -10965,11 +10968,11 @@ function Yd() {
|
|
|
10965
10968
|
}
|
|
10966
10969
|
//#endregion
|
|
10967
10970
|
//#region src/internal/Backdrop/Backdrop.vue
|
|
10968
|
-
var
|
|
10971
|
+
var Zd = /* @__PURE__ */ v({
|
|
10969
10972
|
__name: "Backdrop",
|
|
10970
10973
|
emits: ["close"],
|
|
10971
10974
|
setup(e, { emit: t }) {
|
|
10972
|
-
let n = t, { layerIndex: r, openLayer: i, closeLayer: a } =
|
|
10975
|
+
let n = t, { layerIndex: r, openLayer: i, closeLayer: a } = Xd(), o = V(!1);
|
|
10973
10976
|
function s(e) {
|
|
10974
10977
|
o.value = e.target === e.currentTarget;
|
|
10975
10978
|
}
|
|
@@ -10977,7 +10980,7 @@ var Xd = /* @__PURE__ */ v({
|
|
|
10977
10980
|
e.target === e.currentTarget && o.value && n("close"), o.value = !1;
|
|
10978
10981
|
}
|
|
10979
10982
|
function l(e) {
|
|
10980
|
-
e.key === "Escape" &&
|
|
10983
|
+
e.key === "Escape" && Yd(r.value) && n("close");
|
|
10981
10984
|
}
|
|
10982
10985
|
return L(() => {
|
|
10983
10986
|
i(), window.addEventListener("keydown", l);
|
|
@@ -10990,7 +10993,7 @@ var Xd = /* @__PURE__ */ v({
|
|
|
10990
10993
|
onClick: c
|
|
10991
10994
|
}, [U(e.$slots, "default")], 36));
|
|
10992
10995
|
}
|
|
10993
|
-
}),
|
|
10996
|
+
}), Qd = /* @__PURE__ */ v({
|
|
10994
10997
|
inheritAttrs: !1,
|
|
10995
10998
|
__name: "Modal",
|
|
10996
10999
|
props: {
|
|
@@ -11028,8 +11031,8 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11028
11031
|
X(() => e.open, (e) => {
|
|
11029
11032
|
e && (o.value = !0);
|
|
11030
11033
|
});
|
|
11031
|
-
let h =
|
|
11032
|
-
return (t, c) => (z(), l(r, { to: "body" }, [o.value ? (z(), l(
|
|
11034
|
+
let h = Vd(Rd.Mobile), _ = c(() => h.value && !e.disableMobileFs ? "screen" : e.size);
|
|
11035
|
+
return (t, c) => (z(), l(r, { to: "body" }, [o.value ? (z(), l(Zd, {
|
|
11033
11036
|
key: 0,
|
|
11034
11037
|
class: M({ "p-0": _.value === "screen" }),
|
|
11035
11038
|
onClose: s
|
|
@@ -11082,26 +11085,26 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11082
11085
|
_: 3
|
|
11083
11086
|
}, 8, ["class"])) : u("", !0)]));
|
|
11084
11087
|
}
|
|
11085
|
-
}),
|
|
11088
|
+
}), $d = (e, t) => {
|
|
11086
11089
|
let n = e.__vccOpts || e;
|
|
11087
11090
|
for (let [e, r] of t) n[e] = r;
|
|
11088
11091
|
return n;
|
|
11089
|
-
},
|
|
11092
|
+
}, ef = /* @__PURE__ */ $d(Qd, [["__scopeId", "data-v-0de3c0b1"]]), tf = { class: "vui-commands-input" }, nf = { class: "vui-commands-input-icon" }, rf = ["placeholder"], af = { class: "vui-commands-group-buttons" }, of = ["onClick"], sf = {
|
|
11090
11093
|
key: 0,
|
|
11091
11094
|
class: "vui-commands-empty"
|
|
11092
|
-
},
|
|
11095
|
+
}, cf = {
|
|
11093
11096
|
key: 0,
|
|
11094
11097
|
class: "vui-commands-group-title"
|
|
11095
|
-
},
|
|
11098
|
+
}, lf = {
|
|
11096
11099
|
class: "vui-commands-list",
|
|
11097
11100
|
tabindex: "-1"
|
|
11098
|
-
},
|
|
11101
|
+
}, uf = ["data-index", "onClick"], df = { class: "vui-commands-list-item" }, ff = {
|
|
11099
11102
|
key: 0,
|
|
11100
11103
|
class: "vui-commands-list-item-icon"
|
|
11101
|
-
},
|
|
11104
|
+
}, pf = { class: "vui-command-body" }, mf = {
|
|
11102
11105
|
key: 0,
|
|
11103
11106
|
class: "text-overflow-1"
|
|
11104
|
-
},
|
|
11107
|
+
}, hf = "##ungrouped##", gf = /* @__PURE__ */ v({
|
|
11105
11108
|
__name: "Commands",
|
|
11106
11109
|
props: /* @__PURE__ */ k({
|
|
11107
11110
|
open: { type: Boolean },
|
|
@@ -11116,18 +11119,18 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11116
11119
|
}),
|
|
11117
11120
|
emits: /* @__PURE__ */ k(["close"], ["update:search", "update:group"]),
|
|
11118
11121
|
setup(e, { emit: t }) {
|
|
11119
|
-
let r = e, i = t, a = fe(e, "search"), o = fe(e, "group"), s = c(() => r.commands.filter((e) => o.value && o.value !== "All" ? (e.group ??
|
|
11122
|
+
let r = e, i = t, a = fe(e, "search"), o = fe(e, "group"), s = c(() => r.commands.filter((e) => o.value && o.value !== "All" ? (e.group ?? hf) === o.value : !0).filter((e) => zn([
|
|
11120
11123
|
e.title,
|
|
11121
11124
|
e.description,
|
|
11122
11125
|
...e.keywords ?? []
|
|
11123
11126
|
], a.value))), p = c(() => {
|
|
11124
11127
|
if (s.value.length === 0) return null;
|
|
11125
|
-
let e = Object.groupBy(s.value, (e) => e.group ??
|
|
11128
|
+
let e = Object.groupBy(s.value, (e) => e.group ?? hf);
|
|
11126
11129
|
return Object.fromEntries(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)));
|
|
11127
11130
|
}), m = c(() => {
|
|
11128
11131
|
let e = /* @__PURE__ */ new Set();
|
|
11129
|
-
for (let t of r.commands) e.add(t.group ??
|
|
11130
|
-
let t = [...e].toSorted((e, t) => e ===
|
|
11132
|
+
for (let t of r.commands) e.add(t.group ?? hf);
|
|
11133
|
+
let t = [...e].toSorted((e, t) => e === hf ? 1 : t === hf ? -1 : e.localeCompare(t));
|
|
11131
11134
|
return t.unshift("All"), t;
|
|
11132
11135
|
}), _ = c(() => {
|
|
11133
11136
|
if (!p.value) return [];
|
|
@@ -11169,8 +11172,8 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11169
11172
|
X(() => r.open, async (e) => {
|
|
11170
11173
|
e && (await j(), requestAnimationFrame(C));
|
|
11171
11174
|
}, { flush: "post" });
|
|
11172
|
-
let w =
|
|
11173
|
-
return (t, s) => (z(), l(
|
|
11175
|
+
let w = Vd(Rd.Mobile);
|
|
11176
|
+
return (t, s) => (z(), l(ef, {
|
|
11174
11177
|
open: r.open,
|
|
11175
11178
|
"hide-close-button": "",
|
|
11176
11179
|
card: {
|
|
@@ -11180,8 +11183,8 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11180
11183
|
class: "vui-commands",
|
|
11181
11184
|
onClose: s[2] ||= (e) => i("close")
|
|
11182
11185
|
}, {
|
|
11183
|
-
header: Z(() => [f("div",
|
|
11184
|
-
f("div",
|
|
11186
|
+
header: Z(() => [f("div", tf, [
|
|
11187
|
+
f("div", nf, [e.loading ? (z(), l(pr, {
|
|
11185
11188
|
key: 0,
|
|
11186
11189
|
size: "s"
|
|
11187
11190
|
})) : (z(), l(J(Qe), { key: 1 }))]),
|
|
@@ -11191,7 +11194,7 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11191
11194
|
type: "text",
|
|
11192
11195
|
autofocus: "",
|
|
11193
11196
|
placeholder: r.placeholder
|
|
11194
|
-
}, null, 8,
|
|
11197
|
+
}, null, 8, rf), [[_e, a.value]]),
|
|
11195
11198
|
g(ir, { gap: 2 }, {
|
|
11196
11199
|
default: Z(() => [a.value ? (z(), l(mr, {
|
|
11197
11200
|
key: 0,
|
|
@@ -11211,7 +11214,7 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11211
11214
|
})) : u("", !0)]),
|
|
11212
11215
|
_: 1
|
|
11213
11216
|
})
|
|
11214
|
-
]), f("div",
|
|
11217
|
+
]), f("div", af, [g(Md, { gap: "xs" }, {
|
|
11215
11218
|
default: Z(() => [(z(!0), d(n, null, H(m.value, (e) => (z(), d("button", {
|
|
11216
11219
|
key: e,
|
|
11217
11220
|
tabindex: 0,
|
|
@@ -11220,9 +11223,9 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11220
11223
|
variant: e === o.value ? "accent" : "neutral",
|
|
11221
11224
|
role: "button"
|
|
11222
11225
|
}, {
|
|
11223
|
-
default: Z(() => [h(K(e ===
|
|
11226
|
+
default: Z(() => [h(K(e === hf ? "Other" : e), 1)]),
|
|
11224
11227
|
_: 2
|
|
11225
|
-
}, 1032, ["variant"])], 8,
|
|
11228
|
+
}, 1032, ["variant"])], 8, of))), 128))]),
|
|
11226
11229
|
_: 1
|
|
11227
11230
|
})])]),
|
|
11228
11231
|
footer: Z(() => [g(ir, {
|
|
@@ -11230,21 +11233,21 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11230
11233
|
"y-center": ""
|
|
11231
11234
|
}, {
|
|
11232
11235
|
default: Z(() => [
|
|
11233
|
-
g(
|
|
11236
|
+
g(Hd, null, {
|
|
11234
11237
|
default: Z(() => [g(J(Me))]),
|
|
11235
11238
|
_: 1
|
|
11236
11239
|
}),
|
|
11237
|
-
g(
|
|
11240
|
+
g(Hd, null, {
|
|
11238
11241
|
default: Z(() => [g(J(je))]),
|
|
11239
11242
|
_: 1
|
|
11240
11243
|
}),
|
|
11241
11244
|
s[6] ||= f("span", { class: "text-color-lighter mr-s" }, "Move", -1),
|
|
11242
|
-
g(
|
|
11245
|
+
g(Hd, null, {
|
|
11243
11246
|
default: Z(() => [...s[4] ||= [h(" Enter ", -1)]]),
|
|
11244
11247
|
_: 1
|
|
11245
11248
|
}),
|
|
11246
11249
|
s[7] ||= f("span", { class: "text-color-lighter mr-s" }, "Select", -1),
|
|
11247
|
-
g(
|
|
11250
|
+
g(Hd, null, {
|
|
11248
11251
|
default: Z(() => [...s[5] ||= [h(" Esc ", -1)]]),
|
|
11249
11252
|
_: 1
|
|
11250
11253
|
}),
|
|
@@ -11258,7 +11261,7 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11258
11261
|
}, () => [(z(!0), d(n, null, H(p.value, (e, r, i) => (z(), d("div", {
|
|
11259
11262
|
key: r,
|
|
11260
11263
|
class: "vui-commands-group"
|
|
11261
|
-
}, [r !==
|
|
11264
|
+
}, [r !== hf && o.value === "All" ? (z(), d("span", cf, K(r), 1)) : u("", !0), f("ul", lf, [(z(!0), d(n, null, H(e, (e, a) => (z(), d("li", {
|
|
11262
11265
|
key: e.title,
|
|
11263
11266
|
"data-index": _.value[i] + a,
|
|
11264
11267
|
class: M({ "vui-commands-list-item-focused": b.value === _.value[i] + a }),
|
|
@@ -11266,25 +11269,25 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11266
11269
|
}, [U(t.$slots, "command", {
|
|
11267
11270
|
command: e,
|
|
11268
11271
|
group: r
|
|
11269
|
-
}, () => [f("button",
|
|
11270
|
-
e.icon || t.$slots.icon ? (z(), d("div",
|
|
11271
|
-
f("div",
|
|
11272
|
+
}, () => [f("button", df, [
|
|
11273
|
+
e.icon || t.$slots.icon ? (z(), d("div", ff, [U(t.$slots, "icon", { command: e }, () => [(z(), l(W(e.icon)))])])) : u("", !0),
|
|
11274
|
+
f("div", pf, [f("span", null, K(e.title), 1), e.description ? (z(), d("p", mf, K(e.description), 1)) : u("", !0)]),
|
|
11272
11275
|
e.shortcut ? (z(), l(ir, {
|
|
11273
11276
|
key: 1,
|
|
11274
11277
|
gap: "xxs"
|
|
11275
11278
|
}, {
|
|
11276
|
-
default: Z(() => [(z(!0), d(n, null, H(e.shortcut.split("+"), (e) => (z(), l(
|
|
11279
|
+
default: Z(() => [(z(!0), d(n, null, H(e.shortcut.split("+"), (e) => (z(), l(Hd, {
|
|
11277
11280
|
key: e,
|
|
11278
11281
|
class: "vui-commands-list-item-shortcut",
|
|
11279
11282
|
keys: e
|
|
11280
11283
|
}, null, 8, ["keys"]))), 128))]),
|
|
11281
11284
|
_: 2
|
|
11282
11285
|
}, 1024)) : u("", !0)
|
|
11283
|
-
])])], 10,
|
|
11286
|
+
])])], 10, uf))), 128))])]))), 128))]) : (z(), d("div", sf, [...s[9] ||= [f("p", null, "No results found", -1)]]))]),
|
|
11284
11287
|
_: 3
|
|
11285
11288
|
}, 8, ["open"]));
|
|
11286
11289
|
}
|
|
11287
|
-
}),
|
|
11290
|
+
}), _f = /* @__PURE__ */ v({
|
|
11288
11291
|
__name: "CopyClipboard",
|
|
11289
11292
|
props: {
|
|
11290
11293
|
text: {},
|
|
@@ -11344,18 +11347,18 @@ var Xd = /* @__PURE__ */ v({
|
|
|
11344
11347
|
});
|
|
11345
11348
|
//#endregion
|
|
11346
11349
|
//#region node_modules/reka-ui/dist/shared/renderSlotFragments.js
|
|
11347
|
-
function
|
|
11348
|
-
return e ? e.flatMap((e) => e.type === n ?
|
|
11350
|
+
function vf(e) {
|
|
11351
|
+
return e ? e.flatMap((e) => e.type === n ? vf(e.children) : [e]) : [];
|
|
11349
11352
|
}
|
|
11350
11353
|
//#endregion
|
|
11351
11354
|
//#region node_modules/reka-ui/dist/Primitive/Slot.js
|
|
11352
|
-
var
|
|
11355
|
+
var yf = v({
|
|
11353
11356
|
name: "PrimitiveSlot",
|
|
11354
11357
|
inheritAttrs: !1,
|
|
11355
11358
|
setup(e, { attrs: n, slots: r }) {
|
|
11356
11359
|
return () => {
|
|
11357
11360
|
if (!r.default) return null;
|
|
11358
|
-
let e =
|
|
11361
|
+
let e = vf(r.default()), i = e.findIndex((e) => e.type !== t);
|
|
11359
11362
|
if (i === -1) return e;
|
|
11360
11363
|
let a = e[i];
|
|
11361
11364
|
delete a.props?.ref;
|
|
@@ -11366,11 +11369,11 @@ var vf = v({
|
|
|
11366
11369
|
return e.length === 1 ? c : (e[i] = c, e);
|
|
11367
11370
|
};
|
|
11368
11371
|
}
|
|
11369
|
-
}),
|
|
11372
|
+
}), bf = [
|
|
11370
11373
|
"area",
|
|
11371
11374
|
"img",
|
|
11372
11375
|
"input"
|
|
11373
|
-
],
|
|
11376
|
+
], xf = v({
|
|
11374
11377
|
name: "Primitive",
|
|
11375
11378
|
inheritAttrs: !1,
|
|
11376
11379
|
props: {
|
|
@@ -11385,40 +11388,40 @@ var vf = v({
|
|
|
11385
11388
|
},
|
|
11386
11389
|
setup(e, { attrs: t, slots: n }) {
|
|
11387
11390
|
let r = e.asChild ? "template" : e.as;
|
|
11388
|
-
return typeof r == "string" &&
|
|
11391
|
+
return typeof r == "string" && bf.includes(r) ? () => C(r, t) : r === "template" ? () => C(yf, t, { default: n.default }) : () => C(e.as, t, { default: n.default });
|
|
11389
11392
|
}
|
|
11390
11393
|
});
|
|
11391
11394
|
//#endregion
|
|
11392
11395
|
//#region node_modules/reka-ui/node_modules/@vueuse/shared/index.mjs
|
|
11393
|
-
function
|
|
11396
|
+
function Sf(e) {
|
|
11394
11397
|
return x() ? (R(e), !0) : !1;
|
|
11395
11398
|
}
|
|
11396
|
-
function
|
|
11399
|
+
function Cf(e) {
|
|
11397
11400
|
let t = !1, n, r = y(!0);
|
|
11398
11401
|
return (...i) => (t ||= (n = r.run(() => e(...i)), !0), n);
|
|
11399
11402
|
}
|
|
11400
|
-
function
|
|
11403
|
+
function wf(e) {
|
|
11401
11404
|
let t = 0, n, r, i = () => {
|
|
11402
11405
|
--t, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
|
|
11403
11406
|
};
|
|
11404
|
-
return (...a) => (t += 1, r || (r = y(!0), n = r.run(() => e(...a))),
|
|
11407
|
+
return (...a) => (t += 1, r || (r = y(!0), n = r.run(() => e(...a))), Sf(i), n);
|
|
11405
11408
|
}
|
|
11406
|
-
var
|
|
11409
|
+
var Tf = typeof window < "u" && typeof document < "u";
|
|
11407
11410
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
11408
|
-
var
|
|
11409
|
-
function
|
|
11410
|
-
return
|
|
11411
|
+
var Ef = (e) => e !== void 0, Df = Object.prototype.toString, Of = (e) => Df.call(e) === "[object Object]", kf = /* @__PURE__ */ Af();
|
|
11412
|
+
function Af() {
|
|
11413
|
+
return Tf && (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));
|
|
11411
11414
|
}
|
|
11412
|
-
function
|
|
11415
|
+
function jf(e) {
|
|
11413
11416
|
return e || b();
|
|
11414
11417
|
}
|
|
11415
|
-
function
|
|
11418
|
+
function Mf(e) {
|
|
11416
11419
|
return Array.isArray(e) ? e : [e];
|
|
11417
11420
|
}
|
|
11418
|
-
function
|
|
11419
|
-
|
|
11421
|
+
function Nf(e, t) {
|
|
11422
|
+
jf(t) && I(e, t);
|
|
11420
11423
|
}
|
|
11421
|
-
function
|
|
11424
|
+
function Pf(e, t, n) {
|
|
11422
11425
|
return X(e, t, {
|
|
11423
11426
|
...n,
|
|
11424
11427
|
immediate: !0
|
|
@@ -11426,56 +11429,56 @@ function Nf(e, t, n) {
|
|
|
11426
11429
|
}
|
|
11427
11430
|
//#endregion
|
|
11428
11431
|
//#region node_modules/reka-ui/node_modules/@vueuse/core/index.mjs
|
|
11429
|
-
var
|
|
11430
|
-
|
|
11431
|
-
function
|
|
11432
|
+
var Ff = Tf ? window : void 0;
|
|
11433
|
+
Tf && window.document, Tf && window.navigator, Tf && window.location;
|
|
11434
|
+
function If(e) {
|
|
11432
11435
|
let t = q(e);
|
|
11433
11436
|
return t?.$el ?? t;
|
|
11434
11437
|
}
|
|
11435
|
-
function
|
|
11438
|
+
function Lf(...e) {
|
|
11436
11439
|
let t = [], n = () => {
|
|
11437
11440
|
t.forEach((e) => e()), t.length = 0;
|
|
11438
11441
|
}, r = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), i = c(() => {
|
|
11439
|
-
let t =
|
|
11442
|
+
let t = Mf(q(e[0])).filter((e) => e != null);
|
|
11440
11443
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
11441
|
-
}), a =
|
|
11442
|
-
i.value?.map((e) =>
|
|
11443
|
-
|
|
11444
|
-
|
|
11444
|
+
}), a = Pf(() => [
|
|
11445
|
+
i.value?.map((e) => If(e)) ?? [Ff].filter((e) => e != null),
|
|
11446
|
+
Mf(q(i.value ? e[1] : e[0])),
|
|
11447
|
+
Mf(J(i.value ? e[2] : e[1])),
|
|
11445
11448
|
q(i.value ? e[3] : e[2])
|
|
11446
11449
|
], ([e, i, a, o]) => {
|
|
11447
11450
|
if (n(), !e?.length || !i?.length || !a?.length) return;
|
|
11448
|
-
let s =
|
|
11451
|
+
let s = Of(o) ? { ...o } : o;
|
|
11449
11452
|
t.push(...e.flatMap((e) => i.flatMap((t) => a.map((n) => r(e, t, n, s)))));
|
|
11450
11453
|
}, { flush: "post" });
|
|
11451
|
-
return
|
|
11454
|
+
return Sf(n), () => {
|
|
11452
11455
|
a(), n();
|
|
11453
11456
|
};
|
|
11454
11457
|
}
|
|
11455
|
-
function
|
|
11458
|
+
function Rf() {
|
|
11456
11459
|
let e = G(!1), t = b();
|
|
11457
11460
|
return t && L(() => {
|
|
11458
11461
|
e.value = !0;
|
|
11459
11462
|
}, t), e;
|
|
11460
11463
|
}
|
|
11461
|
-
function
|
|
11464
|
+
function zf(e) {
|
|
11462
11465
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
11463
11466
|
}
|
|
11464
|
-
function
|
|
11467
|
+
function Bf(...e) {
|
|
11465
11468
|
let t, n, r = {};
|
|
11466
11469
|
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]);
|
|
11467
|
-
let { target: i =
|
|
11468
|
-
return
|
|
11470
|
+
let { target: i = Ff, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = zf(t);
|
|
11471
|
+
return Lf(i, a, (e) => {
|
|
11469
11472
|
e.repeat && q(s) || c(e) && n(e);
|
|
11470
11473
|
}, o);
|
|
11471
11474
|
}
|
|
11472
|
-
function
|
|
11475
|
+
function Vf(e) {
|
|
11473
11476
|
return JSON.parse(JSON.stringify(e));
|
|
11474
11477
|
}
|
|
11475
|
-
function
|
|
11478
|
+
function Hf(e, t, n, r = {}) {
|
|
11476
11479
|
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;
|
|
11477
11480
|
t ||= "modelValue", p ||= `update:${t.toString()}`;
|
|
11478
|
-
let m = (e) => i ? typeof i == "function" ? i(e) :
|
|
11481
|
+
let m = (e) => i ? typeof i == "function" ? i(e) : Vf(e) : e, h = () => Ef(e[t]) ? m(e[t]) : l, g = (e) => {
|
|
11479
11482
|
u ? u(e) && f(p, e) : f(p, e);
|
|
11480
11483
|
};
|
|
11481
11484
|
if (a) {
|
|
@@ -11496,7 +11499,7 @@ function Vf(e, t, n, r = {}) {
|
|
|
11496
11499
|
}
|
|
11497
11500
|
//#endregion
|
|
11498
11501
|
//#region node_modules/reka-ui/dist/shared/createContext.js
|
|
11499
|
-
function
|
|
11502
|
+
function Uf(e, t) {
|
|
11500
11503
|
let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
11501
11504
|
return [(t) => {
|
|
11502
11505
|
let n = T(r, t);
|
|
@@ -11506,11 +11509,11 @@ function Hf(e, t) {
|
|
|
11506
11509
|
}
|
|
11507
11510
|
//#endregion
|
|
11508
11511
|
//#region node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
11509
|
-
var [
|
|
11512
|
+
var [Wf, Gf] = Uf("ConfigProvider");
|
|
11510
11513
|
//#endregion
|
|
11511
11514
|
//#region node_modules/reka-ui/dist/shared/useForwardExpose.js
|
|
11512
|
-
function
|
|
11513
|
-
let e = b(), t = V(), n = c(() => ["#text", "#comment"].includes(t.value?.$el.nodeName) ? t.value?.$el.nextElementSibling :
|
|
11515
|
+
function Kf() {
|
|
11516
|
+
let e = b(), t = V(), n = c(() => ["#text", "#comment"].includes(t.value?.$el.nodeName) ? t.value?.$el.nextElementSibling : If(t)), r = Object.assign({}, e.exposed), i = {};
|
|
11514
11517
|
for (let t in e.props) Object.defineProperty(i, t, {
|
|
11515
11518
|
enumerable: !0,
|
|
11516
11519
|
configurable: !0,
|
|
@@ -11541,15 +11544,15 @@ function Gf() {
|
|
|
11541
11544
|
}
|
|
11542
11545
|
//#endregion
|
|
11543
11546
|
//#region node_modules/reka-ui/dist/shared/useId.js
|
|
11544
|
-
var
|
|
11545
|
-
function
|
|
11547
|
+
var qf = 0;
|
|
11548
|
+
function Jf(t, n = "reka") {
|
|
11546
11549
|
if (t) return t;
|
|
11547
|
-
let r =
|
|
11548
|
-
return e.useId ? `${n}-${e.useId()}` : r.useId ? `${n}-${r.useId()}` : `${n}-${++
|
|
11550
|
+
let r = Wf({ useId: void 0 });
|
|
11551
|
+
return e.useId ? `${n}-${e.useId()}` : r.useId ? `${n}-${r.useId()}` : `${n}-${++qf}`;
|
|
11549
11552
|
}
|
|
11550
11553
|
//#endregion
|
|
11551
11554
|
//#region node_modules/reka-ui/dist/shared/useStateMachine.js
|
|
11552
|
-
function
|
|
11555
|
+
function Yf(e, t) {
|
|
11553
11556
|
let n = V(e);
|
|
11554
11557
|
function r(e) {
|
|
11555
11558
|
return t[n.value][e] ?? n.value;
|
|
@@ -11563,8 +11566,8 @@ function Jf(e, t) {
|
|
|
11563
11566
|
}
|
|
11564
11567
|
//#endregion
|
|
11565
11568
|
//#region node_modules/reka-ui/dist/Presence/usePresence.js
|
|
11566
|
-
function
|
|
11567
|
-
let n = V({}), r = V("none"), i = V(e), a = e.value ? "mounted" : "unmounted", o, s = t.value?.ownerDocument.defaultView ??
|
|
11569
|
+
function Xf(e, t) {
|
|
11570
|
+
let n = V({}), r = V("none"), i = V(e), a = e.value ? "mounted" : "unmounted", o, s = t.value?.ownerDocument.defaultView ?? Ff, { state: l, dispatch: u } = Yf(a, {
|
|
11568
11571
|
mounted: {
|
|
11569
11572
|
UNMOUNT: "unmounted",
|
|
11570
11573
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -11575,7 +11578,7 @@ function Yf(e, t) {
|
|
|
11575
11578
|
},
|
|
11576
11579
|
unmounted: { MOUNT: "mounted" }
|
|
11577
11580
|
}), d = (e) => {
|
|
11578
|
-
if (
|
|
11581
|
+
if (Tf) {
|
|
11579
11582
|
let n = new CustomEvent(e, {
|
|
11580
11583
|
bubbles: !1,
|
|
11581
11584
|
cancelable: !1
|
|
@@ -11586,12 +11589,12 @@ function Yf(e, t) {
|
|
|
11586
11589
|
X(e, async (e, i) => {
|
|
11587
11590
|
let a = i !== e;
|
|
11588
11591
|
if (await j(), a) {
|
|
11589
|
-
let a = r.value, o =
|
|
11592
|
+
let a = r.value, o = Zf(t.value);
|
|
11590
11593
|
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"));
|
|
11591
11594
|
}
|
|
11592
11595
|
}, { immediate: !0 });
|
|
11593
11596
|
let f = (e) => {
|
|
11594
|
-
let n =
|
|
11597
|
+
let n = Zf(t.value), r = n.includes(e.animationName), a = l.value === "mounted" ? "enter" : "leave";
|
|
11595
11598
|
if (e.target === t.value && r && (d(`after-${a}`), u("ANIMATION_END"), !i.value)) {
|
|
11596
11599
|
let e = t.value.style.animationFillMode;
|
|
11597
11600
|
t.value.style.animationFillMode = "forwards", o = s?.setTimeout(() => {
|
|
@@ -11600,23 +11603,23 @@ function Yf(e, t) {
|
|
|
11600
11603
|
}
|
|
11601
11604
|
e.target === t.value && n === "none" && u("ANIMATION_END");
|
|
11602
11605
|
}, p = (e) => {
|
|
11603
|
-
e.target === t.value && (r.value =
|
|
11606
|
+
e.target === t.value && (r.value = Zf(t.value));
|
|
11604
11607
|
}, m = X(t, (e, t) => {
|
|
11605
11608
|
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));
|
|
11606
11609
|
}, { immediate: !0 }), h = X(l, () => {
|
|
11607
|
-
let e =
|
|
11610
|
+
let e = Zf(t.value);
|
|
11608
11611
|
r.value = l.value === "mounted" ? e : "none";
|
|
11609
11612
|
});
|
|
11610
11613
|
return te(() => {
|
|
11611
11614
|
m(), h();
|
|
11612
11615
|
}), { isPresent: c(() => ["mounted", "unmountSuspended"].includes(l.value)) };
|
|
11613
11616
|
}
|
|
11614
|
-
function
|
|
11617
|
+
function Zf(e) {
|
|
11615
11618
|
return e && getComputedStyle(e).animationName || "none";
|
|
11616
11619
|
}
|
|
11617
11620
|
//#endregion
|
|
11618
11621
|
//#region node_modules/reka-ui/dist/Presence/Presence.js
|
|
11619
|
-
var
|
|
11622
|
+
var Qf = v({
|
|
11620
11623
|
name: "Presence",
|
|
11621
11624
|
props: {
|
|
11622
11625
|
present: {
|
|
@@ -11627,10 +11630,10 @@ var Zf = v({
|
|
|
11627
11630
|
},
|
|
11628
11631
|
slots: {},
|
|
11629
11632
|
setup(e, { slots: t, expose: n }) {
|
|
11630
|
-
let { present: r, forceMount: i } = ce(e), a = V(), { isPresent: o } =
|
|
11633
|
+
let { present: r, forceMount: i } = ce(e), a = V(), { isPresent: o } = Xf(r, a);
|
|
11631
11634
|
n({ present: o });
|
|
11632
11635
|
let s = t.default({ present: o.value });
|
|
11633
|
-
s =
|
|
11636
|
+
s = vf(s || []);
|
|
11634
11637
|
let c = b();
|
|
11635
11638
|
if (s && s?.length > 1) {
|
|
11636
11639
|
let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
|
|
@@ -11643,14 +11646,14 @@ var Zf = v({
|
|
|
11643
11646
|
].join("\n"));
|
|
11644
11647
|
}
|
|
11645
11648
|
return () => i.value || r.value || o.value ? C(t.default({ present: o.value })[0], { ref: (e) => {
|
|
11646
|
-
let t =
|
|
11649
|
+
let t = If(e);
|
|
11647
11650
|
return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
|
|
11648
11651
|
} }) : null;
|
|
11649
11652
|
}
|
|
11650
11653
|
});
|
|
11651
11654
|
//#endregion
|
|
11652
11655
|
//#region node_modules/reka-ui/dist/shared/useEmitAsProps.js
|
|
11653
|
-
function
|
|
11656
|
+
function $f(e) {
|
|
11654
11657
|
let t = b(), n = t?.type.emits, r = {};
|
|
11655
11658
|
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((t) => {
|
|
11656
11659
|
r[ae(o(t))] = (...n) => e(t, ...n);
|
|
@@ -11658,7 +11661,7 @@ function Qf(e) {
|
|
|
11658
11661
|
}
|
|
11659
11662
|
//#endregion
|
|
11660
11663
|
//#region node_modules/reka-ui/dist/shared/useForwardProps.js
|
|
11661
|
-
function
|
|
11664
|
+
function ep(e) {
|
|
11662
11665
|
let t = b(), n = Object.keys(t?.type.props ?? {}).reduce((e, n) => {
|
|
11663
11666
|
let r = (t?.type.props[n]).default;
|
|
11664
11667
|
return r !== void 0 && (e[n] = r), e;
|
|
@@ -11675,8 +11678,8 @@ function $f(e) {
|
|
|
11675
11678
|
}
|
|
11676
11679
|
//#endregion
|
|
11677
11680
|
//#region node_modules/reka-ui/dist/shared/useForwardPropsEmits.js
|
|
11678
|
-
function
|
|
11679
|
-
let n =
|
|
11681
|
+
function tp(e, t) {
|
|
11682
|
+
let n = ep(e), r = t ? $f(t) : {};
|
|
11680
11683
|
return c(() => ({
|
|
11681
11684
|
...n.value,
|
|
11682
11685
|
...r
|
|
@@ -11684,7 +11687,7 @@ function ep(e, t) {
|
|
|
11684
11687
|
}
|
|
11685
11688
|
//#endregion
|
|
11686
11689
|
//#region node_modules/reka-ui/dist/Dialog/DialogRoot.js
|
|
11687
|
-
var [
|
|
11690
|
+
var [np, rp] = Uf("DialogRoot"), ip = /* @__PURE__ */ v({
|
|
11688
11691
|
inheritAttrs: !1,
|
|
11689
11692
|
__name: "DialogRoot",
|
|
11690
11693
|
props: {
|
|
@@ -11703,11 +11706,11 @@ var [tp, np] = Hf("DialogRoot"), rp = /* @__PURE__ */ v({
|
|
|
11703
11706
|
},
|
|
11704
11707
|
emits: ["update:open"],
|
|
11705
11708
|
setup(e, { emit: t }) {
|
|
11706
|
-
let n = e, r =
|
|
11709
|
+
let n = e, r = Hf(n, "open", t, {
|
|
11707
11710
|
defaultValue: n.defaultOpen,
|
|
11708
11711
|
passive: n.open === void 0
|
|
11709
11712
|
}), i = V(), a = V(), { modal: o } = ce(n);
|
|
11710
|
-
return
|
|
11713
|
+
return rp({
|
|
11711
11714
|
open: r,
|
|
11712
11715
|
modal: o,
|
|
11713
11716
|
openModal: () => {
|
|
@@ -11726,7 +11729,7 @@ var [tp, np] = Hf("DialogRoot"), rp = /* @__PURE__ */ v({
|
|
|
11726
11729
|
contentElement: a
|
|
11727
11730
|
}), (e, t) => U(e.$slots, "default", { open: J(r) });
|
|
11728
11731
|
}
|
|
11729
|
-
}),
|
|
11732
|
+
}), ap = /* @__PURE__ */ v({
|
|
11730
11733
|
__name: "Teleport",
|
|
11731
11734
|
props: {
|
|
11732
11735
|
to: { default: "body" },
|
|
@@ -11735,7 +11738,7 @@ var [tp, np] = Hf("DialogRoot"), rp = /* @__PURE__ */ v({
|
|
|
11735
11738
|
forceMount: { type: Boolean }
|
|
11736
11739
|
},
|
|
11737
11740
|
setup(e) {
|
|
11738
|
-
let t =
|
|
11741
|
+
let t = Rf();
|
|
11739
11742
|
return (e, n) => J(t) || e.forceMount ? (z(), l(r, {
|
|
11740
11743
|
key: 0,
|
|
11741
11744
|
to: e.to,
|
|
@@ -11750,7 +11753,7 @@ var [tp, np] = Hf("DialogRoot"), rp = /* @__PURE__ */ v({
|
|
|
11750
11753
|
});
|
|
11751
11754
|
//#endregion
|
|
11752
11755
|
//#region node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js
|
|
11753
|
-
function
|
|
11756
|
+
function op(e, t, n) {
|
|
11754
11757
|
let r = n.originalEvent.target, i = new CustomEvent(e, {
|
|
11755
11758
|
bubbles: !1,
|
|
11756
11759
|
cancelable: !0,
|
|
@@ -11760,25 +11763,25 @@ function ap(e, t, n) {
|
|
|
11760
11763
|
}
|
|
11761
11764
|
//#endregion
|
|
11762
11765
|
//#region node_modules/reka-ui/dist/DismissableLayer/utils.js
|
|
11763
|
-
var
|
|
11764
|
-
function
|
|
11766
|
+
var sp = "dismissableLayer.pointerDownOutside", cp = "dismissableLayer.focusOutside";
|
|
11767
|
+
function lp(e, t) {
|
|
11765
11768
|
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]"));
|
|
11766
11769
|
return !!(n && r === n || i.indexOf(r) < i.indexOf(n));
|
|
11767
11770
|
}
|
|
11768
|
-
function
|
|
11771
|
+
function up(e, t) {
|
|
11769
11772
|
let n = t?.value?.ownerDocument ?? globalThis?.document, r = V(!1), i = V(() => {});
|
|
11770
11773
|
return ye((a) => {
|
|
11771
|
-
if (!
|
|
11774
|
+
if (!Tf) return;
|
|
11772
11775
|
let o = async (a) => {
|
|
11773
11776
|
let o = a.target;
|
|
11774
11777
|
if (t?.value) {
|
|
11775
|
-
if (
|
|
11778
|
+
if (lp(t.value, o)) {
|
|
11776
11779
|
r.value = !1;
|
|
11777
11780
|
return;
|
|
11778
11781
|
}
|
|
11779
11782
|
if (a.target && !r.value) {
|
|
11780
11783
|
let t = function() {
|
|
11781
|
-
|
|
11784
|
+
op(sp, e, r);
|
|
11782
11785
|
}, r = { originalEvent: a };
|
|
11783
11786
|
a.pointerType === "touch" ? (n.removeEventListener("click", i.value), i.value = t, n.addEventListener("click", i.value, { once: !0 })) : t();
|
|
11784
11787
|
} else n.removeEventListener("click", i.value);
|
|
@@ -11792,12 +11795,12 @@ function lp(e, t) {
|
|
|
11792
11795
|
});
|
|
11793
11796
|
}), { onPointerDownCapture: () => r.value = !0 };
|
|
11794
11797
|
}
|
|
11795
|
-
function
|
|
11798
|
+
function dp(e, t) {
|
|
11796
11799
|
let n = t?.value?.ownerDocument ?? globalThis?.document, r = V(!1);
|
|
11797
11800
|
return ye((i) => {
|
|
11798
|
-
if (!
|
|
11801
|
+
if (!Tf) return;
|
|
11799
11802
|
let a = async (n) => {
|
|
11800
|
-
t?.value && (await j(), await j(), !(!t.value ||
|
|
11803
|
+
t?.value && (await j(), await j(), !(!t.value || lp(t.value, n.target)) && n.target && !r.value && op(cp, e, { originalEvent: n }));
|
|
11801
11804
|
};
|
|
11802
11805
|
n.addEventListener("focusin", a), i(() => n.removeEventListener("focusin", a));
|
|
11803
11806
|
}), {
|
|
@@ -11807,11 +11810,11 @@ function up(e, t) {
|
|
|
11807
11810
|
}
|
|
11808
11811
|
//#endregion
|
|
11809
11812
|
//#region node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js
|
|
11810
|
-
var
|
|
11813
|
+
var fp = re({
|
|
11811
11814
|
layersRoot: /* @__PURE__ */ new Set(),
|
|
11812
11815
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
11813
11816
|
branches: /* @__PURE__ */ new Set()
|
|
11814
|
-
}),
|
|
11817
|
+
}), pp = /* @__PURE__ */ v({
|
|
11815
11818
|
__name: "DismissableLayer",
|
|
11816
11819
|
props: {
|
|
11817
11820
|
disableOutsidePointerEvents: {
|
|
@@ -11829,28 +11832,28 @@ var dp = re({
|
|
|
11829
11832
|
"dismiss"
|
|
11830
11833
|
],
|
|
11831
11834
|
setup(e, { emit: t }) {
|
|
11832
|
-
let n = e, r = t, { forwardRef: i, currentElement: a } =
|
|
11833
|
-
let e = Array.from(s.value), [t] = [...
|
|
11835
|
+
let n = e, r = t, { forwardRef: i, currentElement: a } = Kf(), o = c(() => a.value?.ownerDocument ?? globalThis.document), s = c(() => fp.layersRoot), u = c(() => a.value ? Array.from(s.value).indexOf(a.value) : -1), d = c(() => fp.layersWithOutsidePointerEventsDisabled.size > 0), f = c(() => {
|
|
11836
|
+
let e = Array.from(s.value), [t] = [...fp.layersWithOutsidePointerEventsDisabled].slice(-1), n = e.indexOf(t);
|
|
11834
11837
|
return u.value >= n;
|
|
11835
|
-
}), p =
|
|
11836
|
-
let t = [...
|
|
11838
|
+
}), p = up(async (e) => {
|
|
11839
|
+
let t = [...fp.branches].some((t) => t?.contains(e.target));
|
|
11837
11840
|
!f.value || t || (r("pointerDownOutside", e), r("interactOutside", e), await j(), e.defaultPrevented || r("dismiss"));
|
|
11838
|
-
}, a), m =
|
|
11839
|
-
[...
|
|
11841
|
+
}, a), m = dp((e) => {
|
|
11842
|
+
[...fp.branches].some((t) => t?.contains(e.target)) || (r("focusOutside", e), r("interactOutside", e), e.defaultPrevented || r("dismiss"));
|
|
11840
11843
|
}, a);
|
|
11841
|
-
|
|
11844
|
+
Bf("Escape", (e) => {
|
|
11842
11845
|
u.value === s.value.size - 1 && (r("escapeKeyDown", e), e.defaultPrevented || r("dismiss"));
|
|
11843
11846
|
});
|
|
11844
11847
|
let h;
|
|
11845
11848
|
return ye((e) => {
|
|
11846
|
-
a.value && (n.disableOutsidePointerEvents && (
|
|
11847
|
-
n.disableOutsidePointerEvents &&
|
|
11849
|
+
a.value && (n.disableOutsidePointerEvents && (fp.layersWithOutsidePointerEventsDisabled.size === 0 && (h = o.value.body.style.pointerEvents, o.value.body.style.pointerEvents = "none"), fp.layersWithOutsidePointerEventsDisabled.add(a.value)), s.value.add(a.value), e(() => {
|
|
11850
|
+
n.disableOutsidePointerEvents && fp.layersWithOutsidePointerEventsDisabled.size === 1 && (o.value.body.style.pointerEvents = h);
|
|
11848
11851
|
}));
|
|
11849
11852
|
}), ye((e) => {
|
|
11850
11853
|
e(() => {
|
|
11851
|
-
a.value && (s.value.delete(a.value),
|
|
11854
|
+
a.value && (s.value.delete(a.value), fp.layersWithOutsidePointerEventsDisabled.delete(a.value));
|
|
11852
11855
|
});
|
|
11853
|
-
}), (e, t) => (z(), l(J(
|
|
11856
|
+
}), (e, t) => (z(), l(J(xf), {
|
|
11854
11857
|
ref: J(i),
|
|
11855
11858
|
"as-child": e.asChild,
|
|
11856
11859
|
as: e.as,
|
|
@@ -11874,7 +11877,7 @@ var dp = re({
|
|
|
11874
11877
|
});
|
|
11875
11878
|
//#endregion
|
|
11876
11879
|
//#region node_modules/reka-ui/dist/shared/getActiveElement.js
|
|
11877
|
-
function
|
|
11880
|
+
function mp() {
|
|
11878
11881
|
let e = document.activeElement;
|
|
11879
11882
|
if (e == null) return null;
|
|
11880
11883
|
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
|
|
@@ -11882,23 +11885,23 @@ function pp() {
|
|
|
11882
11885
|
}
|
|
11883
11886
|
//#endregion
|
|
11884
11887
|
//#region node_modules/reka-ui/dist/Menu/utils.js
|
|
11885
|
-
var
|
|
11888
|
+
var hp = ["Enter", " "], gp = [
|
|
11886
11889
|
"ArrowDown",
|
|
11887
11890
|
"PageUp",
|
|
11888
11891
|
"Home"
|
|
11889
|
-
],
|
|
11892
|
+
], _p = [
|
|
11890
11893
|
"ArrowUp",
|
|
11891
11894
|
"PageDown",
|
|
11892
11895
|
"End"
|
|
11893
11896
|
];
|
|
11894
|
-
[...
|
|
11895
|
-
function
|
|
11897
|
+
[...gp, ..._p], [...hp], [...hp];
|
|
11898
|
+
function vp(e) {
|
|
11896
11899
|
return e ? "open" : "closed";
|
|
11897
11900
|
}
|
|
11898
11901
|
//#endregion
|
|
11899
11902
|
//#region node_modules/reka-ui/dist/Dialog/utils.js
|
|
11900
|
-
var
|
|
11901
|
-
function
|
|
11903
|
+
var yp = "DialogTitle", bp = "DialogContent";
|
|
11904
|
+
function xp({ titleName: e = yp, contentName: t = bp, componentLink: n = "dialog.html#title", titleId: r, descriptionId: i, contentElement: a }) {
|
|
11902
11905
|
let o = `Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
11903
11906
|
|
|
11904
11907
|
If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -11912,19 +11915,19 @@ For more information, see https://www.reka-ui.com/docs/components/${n}`, s = `Wa
|
|
|
11912
11915
|
}
|
|
11913
11916
|
//#endregion
|
|
11914
11917
|
//#region node_modules/reka-ui/dist/FocusScope/utils.js
|
|
11915
|
-
var
|
|
11918
|
+
var Sp = "focusScope.autoFocusOnMount", Cp = "focusScope.autoFocusOnUnmount", wp = {
|
|
11916
11919
|
bubbles: !1,
|
|
11917
11920
|
cancelable: !0
|
|
11918
11921
|
};
|
|
11919
|
-
function
|
|
11920
|
-
let n =
|
|
11921
|
-
for (let r of e) if (
|
|
11922
|
-
}
|
|
11923
|
-
function Tp(e) {
|
|
11924
|
-
let t = Ep(e);
|
|
11925
|
-
return [Dp(t, e), Dp(t.reverse(), e)];
|
|
11922
|
+
function Tp(e, { select: t = !1 } = {}) {
|
|
11923
|
+
let n = mp();
|
|
11924
|
+
for (let r of e) if (jp(r, { select: t }), mp() !== n) return !0;
|
|
11926
11925
|
}
|
|
11927
11926
|
function Ep(e) {
|
|
11927
|
+
let t = Dp(e);
|
|
11928
|
+
return [Op(t, e), Op(t.reverse(), e)];
|
|
11929
|
+
}
|
|
11930
|
+
function Dp(e) {
|
|
11928
11931
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
11929
11932
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
11930
11933
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -11932,10 +11935,10 @@ function Ep(e) {
|
|
|
11932
11935
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
11933
11936
|
return t;
|
|
11934
11937
|
}
|
|
11935
|
-
function
|
|
11936
|
-
for (let n of e) if (!
|
|
11938
|
+
function Op(e, t) {
|
|
11939
|
+
for (let n of e) if (!kp(n, { upTo: t })) return n;
|
|
11937
11940
|
}
|
|
11938
|
-
function
|
|
11941
|
+
function kp(e, { upTo: t }) {
|
|
11939
11942
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
11940
11943
|
for (; e;) {
|
|
11941
11944
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -11944,40 +11947,40 @@ function Op(e, { upTo: t }) {
|
|
|
11944
11947
|
}
|
|
11945
11948
|
return !1;
|
|
11946
11949
|
}
|
|
11947
|
-
function
|
|
11950
|
+
function Ap(e) {
|
|
11948
11951
|
return e instanceof HTMLInputElement && "select" in e;
|
|
11949
11952
|
}
|
|
11950
|
-
function
|
|
11953
|
+
function jp(e, { select: t = !1 } = {}) {
|
|
11951
11954
|
if (e && e.focus) {
|
|
11952
|
-
let n =
|
|
11953
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
11955
|
+
let n = mp();
|
|
11956
|
+
e.focus({ preventScroll: !0 }), e !== n && Ap(e) && t && e.select();
|
|
11954
11957
|
}
|
|
11955
11958
|
}
|
|
11956
11959
|
//#endregion
|
|
11957
11960
|
//#region node_modules/reka-ui/dist/FocusScope/stack.js
|
|
11958
|
-
var
|
|
11959
|
-
function
|
|
11960
|
-
let e =
|
|
11961
|
+
var Mp = Cf(() => V([]));
|
|
11962
|
+
function Np() {
|
|
11963
|
+
let e = Mp();
|
|
11961
11964
|
return {
|
|
11962
11965
|
add(t) {
|
|
11963
11966
|
let n = e.value[0];
|
|
11964
|
-
t !== n && n?.pause(), e.value =
|
|
11967
|
+
t !== n && n?.pause(), e.value = Pp(e.value, t), e.value.unshift(t);
|
|
11965
11968
|
},
|
|
11966
11969
|
remove(t) {
|
|
11967
|
-
e.value =
|
|
11970
|
+
e.value = Pp(e.value, t), e.value[0]?.resume();
|
|
11968
11971
|
}
|
|
11969
11972
|
};
|
|
11970
11973
|
}
|
|
11971
|
-
function
|
|
11974
|
+
function Pp(e, t) {
|
|
11972
11975
|
let n = [...e], r = n.indexOf(t);
|
|
11973
11976
|
return r !== -1 && n.splice(r, 1), n;
|
|
11974
11977
|
}
|
|
11975
|
-
function
|
|
11978
|
+
function Fp(e) {
|
|
11976
11979
|
return e.filter((e) => e.tagName !== "A");
|
|
11977
11980
|
}
|
|
11978
11981
|
//#endregion
|
|
11979
11982
|
//#region node_modules/reka-ui/dist/FocusScope/FocusScope.js
|
|
11980
|
-
var
|
|
11983
|
+
var Ip = /* @__PURE__ */ v({
|
|
11981
11984
|
__name: "FocusScope",
|
|
11982
11985
|
props: {
|
|
11983
11986
|
loop: {
|
|
@@ -11993,7 +11996,7 @@ var Fp = /* @__PURE__ */ v({
|
|
|
11993
11996
|
},
|
|
11994
11997
|
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
11995
11998
|
setup(e, { emit: t }) {
|
|
11996
|
-
let n = e, r = t, { currentRef: i, currentElement: a } =
|
|
11999
|
+
let n = e, r = t, { currentRef: i, currentElement: a } = Kf(), o = V(null), s = Np(), c = re({
|
|
11997
12000
|
paused: !1,
|
|
11998
12001
|
pause() {
|
|
11999
12002
|
this.paused = !0;
|
|
@@ -12003,21 +12006,21 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12003
12006
|
}
|
|
12004
12007
|
});
|
|
12005
12008
|
ye((e) => {
|
|
12006
|
-
if (!
|
|
12009
|
+
if (!Tf) return;
|
|
12007
12010
|
let t = a.value;
|
|
12008
12011
|
if (!n.trapped) return;
|
|
12009
12012
|
function r(e) {
|
|
12010
12013
|
if (c.paused || !t) return;
|
|
12011
12014
|
let n = e.target;
|
|
12012
|
-
t.contains(n) ? o.value = n :
|
|
12015
|
+
t.contains(n) ? o.value = n : jp(o.value, { select: !0 });
|
|
12013
12016
|
}
|
|
12014
12017
|
function i(e) {
|
|
12015
12018
|
if (c.paused || !t) return;
|
|
12016
12019
|
let n = e.relatedTarget;
|
|
12017
|
-
n !== null && (t.contains(n) ||
|
|
12020
|
+
n !== null && (t.contains(n) || jp(o.value, { select: !0 }));
|
|
12018
12021
|
}
|
|
12019
12022
|
function s(e) {
|
|
12020
|
-
t.contains(o.value) ||
|
|
12023
|
+
t.contains(o.value) || jp(t);
|
|
12021
12024
|
}
|
|
12022
12025
|
document.addEventListener("focusin", r), document.addEventListener("focusout", i);
|
|
12023
12026
|
let l = new MutationObserver(s);
|
|
@@ -12031,30 +12034,30 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12031
12034
|
let t = a.value;
|
|
12032
12035
|
if (await j(), !t) return;
|
|
12033
12036
|
s.add(c);
|
|
12034
|
-
let n =
|
|
12037
|
+
let n = mp();
|
|
12035
12038
|
if (!t.contains(n)) {
|
|
12036
|
-
let e = new CustomEvent(
|
|
12037
|
-
t.addEventListener(
|
|
12039
|
+
let e = new CustomEvent(Sp, wp);
|
|
12040
|
+
t.addEventListener(Sp, (e) => r("mountAutoFocus", e)), t.dispatchEvent(e), e.defaultPrevented || (Tp(Fp(Dp(t)), { select: !0 }), mp() === n && jp(t));
|
|
12038
12041
|
}
|
|
12039
12042
|
e(() => {
|
|
12040
|
-
t.removeEventListener(
|
|
12041
|
-
let e = new CustomEvent(
|
|
12043
|
+
t.removeEventListener(Sp, (e) => r("mountAutoFocus", e));
|
|
12044
|
+
let e = new CustomEvent(Cp, wp), i = (e) => {
|
|
12042
12045
|
r("unmountAutoFocus", e);
|
|
12043
12046
|
};
|
|
12044
|
-
t.addEventListener(
|
|
12045
|
-
e.defaultPrevented ||
|
|
12047
|
+
t.addEventListener(Cp, i), t.dispatchEvent(e), setTimeout(() => {
|
|
12048
|
+
e.defaultPrevented || jp(n ?? document.body, { select: !0 }), t.removeEventListener(Cp, i), s.remove(c);
|
|
12046
12049
|
}, 0);
|
|
12047
12050
|
});
|
|
12048
12051
|
});
|
|
12049
12052
|
function u(e) {
|
|
12050
12053
|
if (!n.loop && !n.trapped || c.paused) return;
|
|
12051
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r =
|
|
12054
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = mp();
|
|
12052
12055
|
if (t && r) {
|
|
12053
|
-
let t = e.currentTarget, [i, a] =
|
|
12054
|
-
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop &&
|
|
12056
|
+
let t = e.currentTarget, [i, a] = Ep(t);
|
|
12057
|
+
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop && jp(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n.loop && jp(a, { select: !0 })) : r === t && e.preventDefault();
|
|
12055
12058
|
}
|
|
12056
12059
|
}
|
|
12057
|
-
return (e, t) => (z(), l(J(
|
|
12060
|
+
return (e, t) => (z(), l(J(xf), {
|
|
12058
12061
|
ref_key: "currentRef",
|
|
12059
12062
|
ref: i,
|
|
12060
12063
|
tabindex: "-1",
|
|
@@ -12066,7 +12069,7 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12066
12069
|
_: 3
|
|
12067
12070
|
}, 8, ["as-child", "as"]));
|
|
12068
12071
|
}
|
|
12069
|
-
}),
|
|
12072
|
+
}), Lp = /* @__PURE__ */ v({
|
|
12070
12073
|
__name: "DialogContentImpl",
|
|
12071
12074
|
props: {
|
|
12072
12075
|
forceMount: { type: Boolean },
|
|
@@ -12084,24 +12087,24 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12084
12087
|
"closeAutoFocus"
|
|
12085
12088
|
],
|
|
12086
12089
|
setup(e, { emit: t }) {
|
|
12087
|
-
let n = e, r = t, i =
|
|
12088
|
-
return i.titleId ||=
|
|
12089
|
-
i.contentElement = o,
|
|
12090
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
12090
|
+
let n = e, r = t, i = np(), { forwardRef: a, currentElement: o } = Kf();
|
|
12091
|
+
return i.titleId ||= Jf(void 0, "reka-dialog-title"), i.descriptionId ||= Jf(void 0, "reka-dialog-description"), L(() => {
|
|
12092
|
+
i.contentElement = o, mp() !== document.body && (i.triggerElement.value = mp());
|
|
12093
|
+
}), process.env.NODE_ENV !== "production" && xp({
|
|
12091
12094
|
titleName: "DialogTitle",
|
|
12092
12095
|
contentName: "DialogContent",
|
|
12093
12096
|
componentLink: "dialog.html#title",
|
|
12094
12097
|
titleId: i.titleId,
|
|
12095
12098
|
descriptionId: i.descriptionId,
|
|
12096
12099
|
contentElement: o
|
|
12097
|
-
}), (e, t) => (z(), l(J(
|
|
12100
|
+
}), (e, t) => (z(), l(J(Ip), {
|
|
12098
12101
|
"as-child": "",
|
|
12099
12102
|
loop: "",
|
|
12100
12103
|
trapped: n.trapFocus,
|
|
12101
12104
|
onMountAutoFocus: t[5] ||= (e) => r("openAutoFocus", e),
|
|
12102
12105
|
onUnmountAutoFocus: t[6] ||= (e) => r("closeAutoFocus", e)
|
|
12103
12106
|
}, {
|
|
12104
|
-
default: Z(() => [g(J(
|
|
12107
|
+
default: Z(() => [g(J(pp), A({
|
|
12105
12108
|
id: J(i).contentId,
|
|
12106
12109
|
ref: J(a),
|
|
12107
12110
|
as: e.as,
|
|
@@ -12110,7 +12113,7 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12110
12113
|
role: "dialog",
|
|
12111
12114
|
"aria-describedby": J(i).descriptionId,
|
|
12112
12115
|
"aria-labelledby": J(i).titleId,
|
|
12113
|
-
"data-state": J(
|
|
12116
|
+
"data-state": J(vp)(J(i).open.value)
|
|
12114
12117
|
}, e.$attrs, {
|
|
12115
12118
|
onDismiss: t[0] ||= (e) => J(i).onOpenChange(!1),
|
|
12116
12119
|
onEscapeKeyDown: t[1] ||= (e) => r("escapeKeyDown", e),
|
|
@@ -12132,22 +12135,22 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12132
12135
|
_: 3
|
|
12133
12136
|
}, 8, ["trapped"]));
|
|
12134
12137
|
}
|
|
12135
|
-
}),
|
|
12138
|
+
}), Rp = function(e) {
|
|
12136
12139
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
12137
|
-
},
|
|
12138
|
-
return e && (e.host ||
|
|
12139
|
-
},
|
|
12140
|
+
}, zp = /* @__PURE__ */ new WeakMap(), Bp = /* @__PURE__ */ new WeakMap(), Vp = {}, Hp = 0, Up = function(e) {
|
|
12141
|
+
return e && (e.host || Up(e.parentNode));
|
|
12142
|
+
}, Wp = function(e, t) {
|
|
12140
12143
|
return t.map(function(t) {
|
|
12141
12144
|
if (e.contains(t)) return t;
|
|
12142
|
-
var n =
|
|
12145
|
+
var n = Up(t);
|
|
12143
12146
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
12144
12147
|
}).filter(function(e) {
|
|
12145
12148
|
return !!e;
|
|
12146
12149
|
});
|
|
12147
|
-
},
|
|
12148
|
-
var i =
|
|
12149
|
-
|
|
12150
|
-
var a =
|
|
12150
|
+
}, Gp = function(e, t, n, r) {
|
|
12151
|
+
var i = Wp(t, Array.isArray(e) ? e : [e]);
|
|
12152
|
+
Vp[n] || (Vp[n] = /* @__PURE__ */ new WeakMap());
|
|
12153
|
+
var a = Vp[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
12151
12154
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
12152
12155
|
};
|
|
12153
12156
|
i.forEach(l);
|
|
@@ -12155,39 +12158,39 @@ var Fp = /* @__PURE__ */ v({
|
|
|
12155
12158
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
12156
12159
|
if (s.has(e)) u(e);
|
|
12157
12160
|
else try {
|
|
12158
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
12159
|
-
|
|
12161
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (zp.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
12162
|
+
zp.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Bp.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
12160
12163
|
} catch (t) {
|
|
12161
12164
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
12162
12165
|
}
|
|
12163
12166
|
});
|
|
12164
12167
|
};
|
|
12165
|
-
return u(t), s.clear(),
|
|
12168
|
+
return u(t), s.clear(), Hp++, function() {
|
|
12166
12169
|
o.forEach(function(e) {
|
|
12167
|
-
var t =
|
|
12168
|
-
|
|
12169
|
-
}),
|
|
12170
|
+
var t = zp.get(e) - 1, i = a.get(e) - 1;
|
|
12171
|
+
zp.set(e, t), a.set(e, i), t || (Bp.has(e) || e.removeAttribute(r), Bp.delete(e)), i || e.removeAttribute(n);
|
|
12172
|
+
}), Hp--, Hp || (zp = /* @__PURE__ */ new WeakMap(), zp = /* @__PURE__ */ new WeakMap(), Bp = /* @__PURE__ */ new WeakMap(), Vp = {});
|
|
12170
12173
|
};
|
|
12171
|
-
},
|
|
12174
|
+
}, Kp = function(e, t, n) {
|
|
12172
12175
|
n === void 0 && (n = "data-aria-hidden");
|
|
12173
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
12174
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))),
|
|
12176
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Rp(e);
|
|
12177
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), Gp(r, i, n, "aria-hidden")) : function() {
|
|
12175
12178
|
return null;
|
|
12176
12179
|
};
|
|
12177
12180
|
};
|
|
12178
12181
|
//#endregion
|
|
12179
12182
|
//#region node_modules/reka-ui/dist/shared/useHideOthers.js
|
|
12180
|
-
function
|
|
12183
|
+
function qp(e) {
|
|
12181
12184
|
let t;
|
|
12182
|
-
X(() =>
|
|
12183
|
-
e ? t =
|
|
12185
|
+
X(() => If(e), (e) => {
|
|
12186
|
+
e ? t = Kp(e) : t && t();
|
|
12184
12187
|
}), te(() => {
|
|
12185
12188
|
t && t();
|
|
12186
12189
|
});
|
|
12187
12190
|
}
|
|
12188
12191
|
//#endregion
|
|
12189
12192
|
//#region node_modules/reka-ui/dist/Dialog/DialogContentModal.js
|
|
12190
|
-
var
|
|
12193
|
+
var Jp = /* @__PURE__ */ v({
|
|
12191
12194
|
__name: "DialogContentModal",
|
|
12192
12195
|
props: {
|
|
12193
12196
|
forceMount: { type: Boolean },
|
|
@@ -12205,8 +12208,8 @@ var qp = /* @__PURE__ */ v({
|
|
|
12205
12208
|
"closeAutoFocus"
|
|
12206
12209
|
],
|
|
12207
12210
|
setup(e, { emit: t }) {
|
|
12208
|
-
let n = e, r = t, i =
|
|
12209
|
-
return
|
|
12211
|
+
let n = e, r = t, i = np(), a = $f(r), { forwardRef: o, currentElement: s } = Kf();
|
|
12212
|
+
return qp(s), (e, t) => (z(), l(Lp, A({
|
|
12210
12213
|
...n,
|
|
12211
12214
|
...J(a)
|
|
12212
12215
|
}, {
|
|
@@ -12228,7 +12231,7 @@ var qp = /* @__PURE__ */ v({
|
|
|
12228
12231
|
_: 3
|
|
12229
12232
|
}, 16, ["trap-focus"]));
|
|
12230
12233
|
}
|
|
12231
|
-
}),
|
|
12234
|
+
}), Yp = /* @__PURE__ */ v({
|
|
12232
12235
|
__name: "DialogContentNonModal",
|
|
12233
12236
|
props: {
|
|
12234
12237
|
forceMount: { type: Boolean },
|
|
@@ -12246,10 +12249,10 @@ var qp = /* @__PURE__ */ v({
|
|
|
12246
12249
|
"closeAutoFocus"
|
|
12247
12250
|
],
|
|
12248
12251
|
setup(e, { emit: t }) {
|
|
12249
|
-
let n = e, r =
|
|
12250
|
-
|
|
12251
|
-
let i =
|
|
12252
|
-
return (e, t) => (z(), l(
|
|
12252
|
+
let n = e, r = $f(t);
|
|
12253
|
+
Kf();
|
|
12254
|
+
let i = np(), a = V(!1), o = V(!1);
|
|
12255
|
+
return (e, t) => (z(), l(Lp, A({
|
|
12253
12256
|
...n,
|
|
12254
12257
|
...J(r)
|
|
12255
12258
|
}, {
|
|
@@ -12268,7 +12271,7 @@ var qp = /* @__PURE__ */ v({
|
|
|
12268
12271
|
_: 3
|
|
12269
12272
|
}, 16));
|
|
12270
12273
|
}
|
|
12271
|
-
}),
|
|
12274
|
+
}), Xp = /* @__PURE__ */ v({
|
|
12272
12275
|
__name: "DialogContent",
|
|
12273
12276
|
props: {
|
|
12274
12277
|
forceMount: { type: Boolean },
|
|
@@ -12286,9 +12289,9 @@ var qp = /* @__PURE__ */ v({
|
|
|
12286
12289
|
"closeAutoFocus"
|
|
12287
12290
|
],
|
|
12288
12291
|
setup(e, { emit: t }) {
|
|
12289
|
-
let n = e, r = t, i =
|
|
12290
|
-
return (e, t) => (z(), l(J(
|
|
12291
|
-
default: Z(() => [J(i).modal.value ? (z(), l(
|
|
12292
|
+
let n = e, r = t, i = np(), a = $f(r), { forwardRef: o } = Kf();
|
|
12293
|
+
return (e, t) => (z(), l(J(Qf), { present: e.forceMount || J(i).open.value }, {
|
|
12294
|
+
default: Z(() => [J(i).modal.value ? (z(), l(Jp, A({
|
|
12292
12295
|
key: 0,
|
|
12293
12296
|
ref: J(o)
|
|
12294
12297
|
}, {
|
|
@@ -12298,7 +12301,7 @@ var qp = /* @__PURE__ */ v({
|
|
|
12298
12301
|
}), {
|
|
12299
12302
|
default: Z(() => [U(e.$slots, "default")]),
|
|
12300
12303
|
_: 3
|
|
12301
|
-
}, 16)) : (z(), l(
|
|
12304
|
+
}, 16)) : (z(), l(Yp, A({
|
|
12302
12305
|
key: 1,
|
|
12303
12306
|
ref: J(o)
|
|
12304
12307
|
}, {
|
|
@@ -12315,33 +12318,33 @@ var qp = /* @__PURE__ */ v({
|
|
|
12315
12318
|
});
|
|
12316
12319
|
//#endregion
|
|
12317
12320
|
//#region node_modules/defu/dist/defu.mjs
|
|
12318
|
-
function
|
|
12321
|
+
function Zp(e) {
|
|
12319
12322
|
if (typeof e != "object" || !e) return !1;
|
|
12320
12323
|
let t = Object.getPrototypeOf(e);
|
|
12321
12324
|
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;
|
|
12322
12325
|
}
|
|
12323
|
-
function
|
|
12324
|
-
if (!
|
|
12326
|
+
function Qp(e, t, n = ".", r) {
|
|
12327
|
+
if (!Zp(t)) return Qp(e, {}, n, r);
|
|
12325
12328
|
let i = Object.assign({}, t);
|
|
12326
12329
|
for (let t in e) {
|
|
12327
12330
|
if (t === "__proto__" || t === "constructor") continue;
|
|
12328
12331
|
let a = e[t];
|
|
12329
|
-
a != null && (r && r(i, t, a, n) || (Array.isArray(a) && Array.isArray(i[t]) ? i[t] = [...a, ...i[t]] :
|
|
12332
|
+
a != null && (r && r(i, t, a, n) || (Array.isArray(a) && Array.isArray(i[t]) ? i[t] = [...a, ...i[t]] : Zp(a) && Zp(i[t]) ? i[t] = Qp(a, i[t], (n ? `${n}.` : "") + t.toString(), r) : i[t] = a));
|
|
12330
12333
|
}
|
|
12331
12334
|
return i;
|
|
12332
12335
|
}
|
|
12333
|
-
function
|
|
12334
|
-
return (...t) => t.reduce((t, n) =>
|
|
12336
|
+
function $p(e) {
|
|
12337
|
+
return (...t) => t.reduce((t, n) => Qp(t, n, "", e), {});
|
|
12335
12338
|
}
|
|
12336
|
-
var
|
|
12339
|
+
var em = $p(), tm = wf(() => {
|
|
12337
12340
|
let e = V(/* @__PURE__ */ new Map()), t = V(), n = c(() => {
|
|
12338
12341
|
for (let t of e.value.values()) if (t) return !0;
|
|
12339
12342
|
return !1;
|
|
12340
|
-
}), r =
|
|
12341
|
-
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "",
|
|
12343
|
+
}), r = Wf({ scrollBody: V(!0) }), i = null, a = () => {
|
|
12344
|
+
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.body.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", kf && i?.(), t.value = void 0;
|
|
12342
12345
|
};
|
|
12343
12346
|
return X(n, (e, n) => {
|
|
12344
|
-
if (!
|
|
12347
|
+
if (!Tf) return;
|
|
12345
12348
|
if (!e) {
|
|
12346
12349
|
n && a();
|
|
12347
12350
|
return;
|
|
@@ -12350,14 +12353,14 @@ var $p = Qp(), em = Cf(() => {
|
|
|
12350
12353
|
let o = window.innerWidth - document.documentElement.clientWidth, s = {
|
|
12351
12354
|
padding: o,
|
|
12352
12355
|
margin: 0
|
|
12353
|
-
}, c = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ?
|
|
12356
|
+
}, c = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? em({
|
|
12354
12357
|
padding: r.scrollBody.value.padding === !0 ? o : r.scrollBody.value.padding,
|
|
12355
12358
|
margin: r.scrollBody.value.margin === !0 ? o : r.scrollBody.value.margin
|
|
12356
12359
|
}, s) : s : {
|
|
12357
12360
|
padding: 0,
|
|
12358
12361
|
margin: 0
|
|
12359
12362
|
};
|
|
12360
|
-
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"),
|
|
12363
|
+
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"), kf && (i = Lf(document, "touchmove", (e) => im(e), { passive: !1 })), j(() => {
|
|
12361
12364
|
document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
|
|
12362
12365
|
});
|
|
12363
12366
|
}, {
|
|
@@ -12365,40 +12368,40 @@ var $p = Qp(), em = Cf(() => {
|
|
|
12365
12368
|
flush: "sync"
|
|
12366
12369
|
}), e;
|
|
12367
12370
|
});
|
|
12368
|
-
function
|
|
12369
|
-
let t = Math.random().toString(36).substring(2, 7), n =
|
|
12371
|
+
function nm(e) {
|
|
12372
|
+
let t = Math.random().toString(36).substring(2, 7), n = tm();
|
|
12370
12373
|
n.value.set(t, e ?? !1);
|
|
12371
12374
|
let r = c({
|
|
12372
12375
|
get: () => n.value.get(t) ?? !1,
|
|
12373
12376
|
set: (e) => n.value.set(t, e)
|
|
12374
12377
|
});
|
|
12375
|
-
return
|
|
12378
|
+
return Nf(() => {
|
|
12376
12379
|
n.value.delete(t);
|
|
12377
12380
|
}), r;
|
|
12378
12381
|
}
|
|
12379
|
-
function
|
|
12382
|
+
function rm(e) {
|
|
12380
12383
|
let t = window.getComputedStyle(e);
|
|
12381
12384
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
12382
12385
|
{
|
|
12383
12386
|
let t = e.parentNode;
|
|
12384
|
-
return !(t instanceof Element) || t.tagName === "BODY" ? !1 :
|
|
12387
|
+
return !(t instanceof Element) || t.tagName === "BODY" ? !1 : rm(t);
|
|
12385
12388
|
}
|
|
12386
12389
|
}
|
|
12387
|
-
function
|
|
12390
|
+
function im(e) {
|
|
12388
12391
|
let t = e || window.event, n = t.target;
|
|
12389
|
-
return n instanceof Element &&
|
|
12392
|
+
return n instanceof Element && rm(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
|
|
12390
12393
|
}
|
|
12391
12394
|
//#endregion
|
|
12392
12395
|
//#region node_modules/reka-ui/dist/Dialog/DialogOverlayImpl.js
|
|
12393
|
-
var
|
|
12396
|
+
var am = /* @__PURE__ */ v({
|
|
12394
12397
|
__name: "DialogOverlayImpl",
|
|
12395
12398
|
props: {
|
|
12396
12399
|
asChild: { type: Boolean },
|
|
12397
12400
|
as: {}
|
|
12398
12401
|
},
|
|
12399
12402
|
setup(e) {
|
|
12400
|
-
let t =
|
|
12401
|
-
return
|
|
12403
|
+
let t = np();
|
|
12404
|
+
return nm(!0), Kf(), (e, n) => (z(), l(J(xf), {
|
|
12402
12405
|
as: e.as,
|
|
12403
12406
|
"as-child": e.asChild,
|
|
12404
12407
|
"data-state": J(t).open.value ? "open" : "closed",
|
|
@@ -12412,7 +12415,7 @@ var im = /* @__PURE__ */ v({
|
|
|
12412
12415
|
"data-state"
|
|
12413
12416
|
]));
|
|
12414
12417
|
}
|
|
12415
|
-
}),
|
|
12418
|
+
}), om = /* @__PURE__ */ v({
|
|
12416
12419
|
__name: "DialogOverlay",
|
|
12417
12420
|
props: {
|
|
12418
12421
|
forceMount: { type: Boolean },
|
|
@@ -12420,12 +12423,12 @@ var im = /* @__PURE__ */ v({
|
|
|
12420
12423
|
as: {}
|
|
12421
12424
|
},
|
|
12422
12425
|
setup(e) {
|
|
12423
|
-
let t =
|
|
12424
|
-
return (e, r) => J(t)?.modal.value ? (z(), l(J(
|
|
12426
|
+
let t = np(), { forwardRef: n } = Kf();
|
|
12427
|
+
return (e, r) => J(t)?.modal.value ? (z(), l(J(Qf), {
|
|
12425
12428
|
key: 0,
|
|
12426
12429
|
present: e.forceMount || J(t).open.value
|
|
12427
12430
|
}, {
|
|
12428
|
-
default: Z(() => [g(
|
|
12431
|
+
default: Z(() => [g(am, A(e.$attrs, {
|
|
12429
12432
|
ref: J(n),
|
|
12430
12433
|
as: e.as,
|
|
12431
12434
|
"as-child": e.asChild
|
|
@@ -12436,20 +12439,20 @@ var im = /* @__PURE__ */ v({
|
|
|
12436
12439
|
_: 3
|
|
12437
12440
|
}, 8, ["present"])) : u("", !0);
|
|
12438
12441
|
}
|
|
12439
|
-
}),
|
|
12442
|
+
}), sm = /* @__PURE__ */ v({
|
|
12440
12443
|
__name: "DialogTitle",
|
|
12441
12444
|
props: {
|
|
12442
12445
|
asChild: { type: Boolean },
|
|
12443
12446
|
as: { default: "h2" }
|
|
12444
12447
|
},
|
|
12445
12448
|
setup(e) {
|
|
12446
|
-
let t = e, n =
|
|
12447
|
-
return
|
|
12449
|
+
let t = e, n = np();
|
|
12450
|
+
return Kf(), (e, r) => (z(), l(J(xf), A(t, { id: J(n).titleId }), {
|
|
12448
12451
|
default: Z(() => [U(e.$slots, "default")]),
|
|
12449
12452
|
_: 3
|
|
12450
12453
|
}, 16, ["id"]));
|
|
12451
12454
|
}
|
|
12452
|
-
}),
|
|
12455
|
+
}), cm = /* @__PURE__ */ v({
|
|
12453
12456
|
__name: "DialogPortal",
|
|
12454
12457
|
props: {
|
|
12455
12458
|
to: {},
|
|
@@ -12459,7 +12462,7 @@ var im = /* @__PURE__ */ v({
|
|
|
12459
12462
|
},
|
|
12460
12463
|
setup(e) {
|
|
12461
12464
|
let t = e;
|
|
12462
|
-
return (e, n) => (z(), l(J(
|
|
12465
|
+
return (e, n) => (z(), l(J(ap), N(S(t)), {
|
|
12463
12466
|
default: Z(() => [U(e.$slots, "default")]),
|
|
12464
12467
|
_: 3
|
|
12465
12468
|
}, 16));
|
|
@@ -12477,16 +12480,16 @@ var im = /* @__PURE__ */ v({
|
|
|
12477
12480
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
12478
12481
|
}
|
|
12479
12482
|
})();
|
|
12480
|
-
var
|
|
12483
|
+
var lm = typeof window < "u" && typeof document < "u";
|
|
12481
12484
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12482
|
-
var
|
|
12483
|
-
function
|
|
12485
|
+
var um = (e) => typeof e < "u";
|
|
12486
|
+
function dm(e) {
|
|
12484
12487
|
return JSON.parse(JSON.stringify(e));
|
|
12485
12488
|
}
|
|
12486
|
-
function
|
|
12489
|
+
function fm(e, t, n, r = {}) {
|
|
12487
12490
|
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;
|
|
12488
12491
|
t ||= "modelValue", p ||= `update:${t.toString()}`;
|
|
12489
|
-
let m = (e) => i ? typeof i == "function" ? i(e) :
|
|
12492
|
+
let m = (e) => i ? typeof i == "function" ? i(e) : dm(e) : e, h = () => um(e[t]) ? m(e[t]) : l, g = (e) => {
|
|
12490
12493
|
u ? u(e) && f(p, e) : f(p, e);
|
|
12491
12494
|
};
|
|
12492
12495
|
if (a) {
|
|
@@ -12505,8 +12508,8 @@ function dm(e, t, n, r = {}) {
|
|
|
12505
12508
|
}
|
|
12506
12509
|
});
|
|
12507
12510
|
}
|
|
12508
|
-
var [
|
|
12509
|
-
function
|
|
12511
|
+
var [pm, mm] = Uf("DrawerRoot"), hm = /* @__PURE__ */ new WeakMap();
|
|
12512
|
+
function gm(e, t, n = !1) {
|
|
12510
12513
|
if (!e || !(e instanceof HTMLElement) || !t) return;
|
|
12511
12514
|
let r = {};
|
|
12512
12515
|
Object.entries(t).forEach(([t, n]) => {
|
|
@@ -12515,23 +12518,23 @@ function hm(e, t, n = !1) {
|
|
|
12515
12518
|
return;
|
|
12516
12519
|
}
|
|
12517
12520
|
r[t] = e.style[t], e.style[t] = n;
|
|
12518
|
-
}), !n &&
|
|
12521
|
+
}), !n && hm.set(e, r);
|
|
12519
12522
|
}
|
|
12520
|
-
function
|
|
12523
|
+
function _m(e, t) {
|
|
12521
12524
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
12522
|
-
let n =
|
|
12525
|
+
let n = hm.get(e);
|
|
12523
12526
|
n && Object.entries(n).forEach(([t, n]) => {
|
|
12524
12527
|
e.style[t] = n;
|
|
12525
12528
|
});
|
|
12526
12529
|
}
|
|
12527
|
-
function
|
|
12530
|
+
function vm(e, t) {
|
|
12528
12531
|
let n = window.getComputedStyle(e), r = n.transform || n.webkitTransform || n.mozTransform, i = r.match(/^matrix3d\((.+)\)$/);
|
|
12529
|
-
return i ? Number.parseFloat(i[1].split(", ")[
|
|
12532
|
+
return i ? Number.parseFloat(i[1].split(", ")[bm(t) ? 13 : 12]) : (i = r.match(/^matrix\((.+)\)$/), i ? Number.parseFloat(i[1].split(", ")[bm(t) ? 5 : 4]) : null);
|
|
12530
12533
|
}
|
|
12531
|
-
function
|
|
12534
|
+
function ym(e) {
|
|
12532
12535
|
return 8 * (Math.log(e + 1) - 2);
|
|
12533
12536
|
}
|
|
12534
|
-
function
|
|
12537
|
+
function bm(e) {
|
|
12535
12538
|
switch (e) {
|
|
12536
12539
|
case "top":
|
|
12537
12540
|
case "bottom": return !0;
|
|
@@ -12540,14 +12543,14 @@ function ym(e) {
|
|
|
12540
12543
|
default: return e;
|
|
12541
12544
|
}
|
|
12542
12545
|
}
|
|
12543
|
-
function
|
|
12546
|
+
function xm(e, t) {
|
|
12544
12547
|
if (!e) return () => {};
|
|
12545
12548
|
let n = e.style.cssText;
|
|
12546
12549
|
return Object.assign(e.style, t), () => {
|
|
12547
12550
|
e.style.cssText = n;
|
|
12548
12551
|
};
|
|
12549
12552
|
}
|
|
12550
|
-
var
|
|
12553
|
+
var Sm = {
|
|
12551
12554
|
DURATION: .5,
|
|
12552
12555
|
EASE: [
|
|
12553
12556
|
.32,
|
|
@@ -12555,8 +12558,8 @@ var xm = {
|
|
|
12555
12558
|
0,
|
|
12556
12559
|
1
|
|
12557
12560
|
]
|
|
12558
|
-
},
|
|
12559
|
-
function
|
|
12561
|
+
}, Cm = .4, wm = .25, Tm = 100, Em = 8, Dm = 16, Om = 26, km = "vaul-dragging";
|
|
12562
|
+
function Am({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fadeFromIndex: i, onSnapPointChange: a, direction: o }) {
|
|
12560
12563
|
let s = V(typeof window < "u" ? {
|
|
12561
12564
|
innerWidth: window.innerWidth,
|
|
12562
12565
|
innerHeight: window.innerHeight
|
|
@@ -12574,7 +12577,7 @@ function km({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12574
12577
|
});
|
|
12575
12578
|
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) => {
|
|
12576
12579
|
let t = typeof e == "string", n = 0;
|
|
12577
|
-
if (t && (n = Number.parseInt(e, 10)),
|
|
12580
|
+
if (t && (n = Number.parseInt(e, 10)), bm(o.value)) {
|
|
12578
12581
|
let r = t ? n : s.value ? e * s.value.innerHeight : 0;
|
|
12579
12582
|
return s.value ? o.value === "bottom" ? s.value.innerHeight - r : -s.value.innerHeight + r : r;
|
|
12580
12583
|
}
|
|
@@ -12583,15 +12586,15 @@ function km({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12583
12586
|
}) ?? []), m = c(() => f.value === null ? null : p.value?.[f.value]), h = (s) => {
|
|
12584
12587
|
let c = p.value?.findIndex((e) => e === s) ?? null;
|
|
12585
12588
|
j(() => {
|
|
12586
|
-
a(c, p.value),
|
|
12587
|
-
transition: `transform ${
|
|
12588
|
-
transform:
|
|
12589
|
+
a(c, p.value), gm(n.value?.$el, {
|
|
12590
|
+
transition: `transform ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`,
|
|
12591
|
+
transform: bm(o.value) ? `translate3d(0, ${s}px, 0)` : `translate3d(${s}px, 0, 0)`
|
|
12589
12592
|
});
|
|
12590
|
-
}), p.value && c !== p.value.length - 1 && c !== i?.value ?
|
|
12591
|
-
transition: `opacity ${
|
|
12593
|
+
}), p.value && c !== p.value.length - 1 && c !== i?.value ? gm(r.value?.$el, {
|
|
12594
|
+
transition: `opacity ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`,
|
|
12592
12595
|
opacity: "0"
|
|
12593
|
-
}) :
|
|
12594
|
-
transition: `opacity ${
|
|
12596
|
+
}) : gm(r.value?.$el, {
|
|
12597
|
+
transition: `opacity ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`,
|
|
12595
12598
|
opacity: "1"
|
|
12596
12599
|
}), e.value = c === null ? null : t.value?.[c] ?? null;
|
|
12597
12600
|
};
|
|
@@ -12608,7 +12611,7 @@ function km({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12608
12611
|
function g({ draggedDistance: e, closeDrawer: n, velocity: a, dismissible: s }) {
|
|
12609
12612
|
if (i.value === void 0) return;
|
|
12610
12613
|
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;
|
|
12611
|
-
if (l &&
|
|
12614
|
+
if (l && gm(r.value?.$el, { transition: `opacity ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})` }), a > 2 && !g) {
|
|
12612
12615
|
s ? n() : h(p.value[0]);
|
|
12613
12616
|
return;
|
|
12614
12617
|
}
|
|
@@ -12616,8 +12619,8 @@ function km({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12616
12619
|
h(p.value[t.value.length - 1]);
|
|
12617
12620
|
return;
|
|
12618
12621
|
}
|
|
12619
|
-
let _ = p.value?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), v =
|
|
12620
|
-
if (a >
|
|
12622
|
+
let _ = p.value?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), v = bm(o.value) ? window.innerHeight : window.innerWidth;
|
|
12623
|
+
if (a > Cm && Math.abs(e) < v * .4) {
|
|
12621
12624
|
let e = g ? 1 : -1;
|
|
12622
12625
|
if (e > 0 && u) {
|
|
12623
12626
|
h(p.value[(t.value?.length ?? 0) - 1]);
|
|
@@ -12632,7 +12635,7 @@ function km({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12632
12635
|
function _({ draggedDistance: e }) {
|
|
12633
12636
|
if (m.value === null) return;
|
|
12634
12637
|
let t = o.value === "bottom" || o.value === "right" ? m.value - e : m.value + e;
|
|
12635
|
-
(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] ||
|
|
12638
|
+
(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] || gm(n.value?.$el, { transform: bm(o.value) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
|
|
12636
12639
|
}
|
|
12637
12640
|
function v(e, n) {
|
|
12638
12641
|
if (!t.value || typeof f.value != "number" || !p.value || i.value === void 0) return null;
|
|
@@ -12653,15 +12656,15 @@ function km({ activeSnapPoint: e, snapPoints: t, drawerRef: n, overlayRef: r, fa
|
|
|
12653
12656
|
snapPointsOffset: p
|
|
12654
12657
|
};
|
|
12655
12658
|
}
|
|
12656
|
-
function
|
|
12659
|
+
function jm() {
|
|
12657
12660
|
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
12658
12661
|
}
|
|
12659
|
-
var
|
|
12660
|
-
function
|
|
12662
|
+
var Mm = null;
|
|
12663
|
+
function Nm(e) {
|
|
12661
12664
|
let { isOpen: t, modal: n, nested: r, hasBeenOpened: i, preventScrollRestoration: a, noBodyStyles: o } = e, s = V(typeof window < "u" ? window.location.href : ""), c = V(0);
|
|
12662
12665
|
function l() {
|
|
12663
|
-
if (
|
|
12664
|
-
|
|
12666
|
+
if (jm() && Mm === null && t.value && !o.value) {
|
|
12667
|
+
Mm = {
|
|
12665
12668
|
position: document.body.style.position,
|
|
12666
12669
|
top: document.body.style.top,
|
|
12667
12670
|
left: document.body.style.left,
|
|
@@ -12682,15 +12685,15 @@ function Mm(e) {
|
|
|
12682
12685
|
}
|
|
12683
12686
|
}
|
|
12684
12687
|
function u() {
|
|
12685
|
-
if (
|
|
12688
|
+
if (jm() && Mm !== null && !o.value) {
|
|
12686
12689
|
let e = -Number.parseInt(document.body.style.top, 10), t = -Number.parseInt(document.body.style.left, 10);
|
|
12687
|
-
Object.assign(document.body.style,
|
|
12690
|
+
Object.assign(document.body.style, Mm), window.requestAnimationFrame(() => {
|
|
12688
12691
|
if (a.value && s.value !== window.location.href) {
|
|
12689
12692
|
s.value = window.location.href;
|
|
12690
12693
|
return;
|
|
12691
12694
|
}
|
|
12692
12695
|
window.scrollTo(t, e);
|
|
12693
|
-
}),
|
|
12696
|
+
}), Mm = null;
|
|
12694
12697
|
}
|
|
12695
12698
|
}
|
|
12696
12699
|
return L(() => {
|
|
@@ -12710,15 +12713,15 @@ function Mm(e) {
|
|
|
12710
12713
|
}, 500)) : u());
|
|
12711
12714
|
}), { restorePositionSetting: u };
|
|
12712
12715
|
}
|
|
12713
|
-
function
|
|
12716
|
+
function Pm(e, t) {
|
|
12714
12717
|
return e && e.value ? e : t;
|
|
12715
12718
|
}
|
|
12716
|
-
function
|
|
12719
|
+
function Fm(e) {
|
|
12717
12720
|
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 = V(a.value ?? !1), x = V(!1), S = V(!1), C = V(!1), w = V(null), T = V(null), E = V(null), D = V(null), O = V(null), k = V(!1), A = V(null), j = V(0), M = V(!1);
|
|
12718
12721
|
V(0);
|
|
12719
12722
|
let N = V(null);
|
|
12720
12723
|
V(0);
|
|
12721
|
-
let P = c(() => N.value?.$el.getBoundingClientRect().height || 0), F =
|
|
12724
|
+
let P = c(() => N.value?.$el.getBoundingClientRect().height || 0), F = Pm(e.snapPoints, V(void 0)), I = c(() => F && (F.value?.length ?? 0) > 0), ee = V(null), { activeSnapPointIndex: L, onRelease: R, snapPointsOffset: te, onDrag: z, shouldFade: ne, getPercentageDragged: re } = Am({
|
|
12722
12725
|
snapPoints: F,
|
|
12723
12726
|
activeSnapPoint: m,
|
|
12724
12727
|
drawerRef: N,
|
|
@@ -12730,7 +12733,7 @@ function Pm(e) {
|
|
|
12730
12733
|
function B(e, t) {
|
|
12731
12734
|
F.value && e === t.length - 1 && (T.value = /* @__PURE__ */ new Date());
|
|
12732
12735
|
}
|
|
12733
|
-
|
|
12736
|
+
Nm({
|
|
12734
12737
|
isOpen: b,
|
|
12735
12738
|
modal: l,
|
|
12736
12739
|
nested: s,
|
|
@@ -12739,11 +12742,11 @@ function Pm(e) {
|
|
|
12739
12742
|
preventScrollRestoration: y
|
|
12740
12743
|
});
|
|
12741
12744
|
function H() {
|
|
12742
|
-
return (window.innerWidth -
|
|
12745
|
+
return (window.innerWidth - Om) / window.innerWidth;
|
|
12743
12746
|
}
|
|
12744
12747
|
function U(e, t) {
|
|
12745
12748
|
if (!e) return !1;
|
|
12746
|
-
let n = e, r = window.getSelection()?.toString(), i = N.value ?
|
|
12749
|
+
let n = e, r = window.getSelection()?.toString(), i = N.value ? vm(N.value.$el, g.value) : null, a = /* @__PURE__ */ new Date();
|
|
12747
12750
|
if (n.hasAttribute("data-vaul-no-drag") || n.closest("[data-vaul-no-drag]")) return !1;
|
|
12748
12751
|
if (g.value === "right" || g.value === "left") return !0;
|
|
12749
12752
|
if (T.value && a.getTime() - T.value.getTime() < 500) return !1;
|
|
@@ -12760,51 +12763,51 @@ function Pm(e) {
|
|
|
12760
12763
|
return !0;
|
|
12761
12764
|
}
|
|
12762
12765
|
function W(e) {
|
|
12763
|
-
!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 =
|
|
12766
|
+
!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 = bm(g.value) ? e.clientY : e.clientX);
|
|
12764
12767
|
}
|
|
12765
12768
|
function ie(e) {
|
|
12766
12769
|
var n;
|
|
12767
12770
|
if (N.value && S.value) {
|
|
12768
|
-
let r = g.value === "bottom" || g.value === "right" ? 1 : -1, i = (j.value - (
|
|
12771
|
+
let r = g.value === "bottom" || g.value === "right" ? 1 : -1, i = (j.value - (bm(g.value) ? e.clientY : e.clientX)) * r, a = i > 0, s = F.value && !o.value && !a;
|
|
12769
12772
|
if (s && L.value === 0) return;
|
|
12770
12773
|
let c = Math.abs(i), l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]"), d = c / P.value, f = re(c, a);
|
|
12771
12774
|
if (f !== null && (d = f), s && d >= 1 || !k.value && !U(e.target, a)) return;
|
|
12772
|
-
if ((n = N?.value) == null || n.$el.classList.add(
|
|
12773
|
-
let e =
|
|
12774
|
-
|
|
12775
|
+
if ((n = N?.value) == null || n.$el.classList.add(km), k.value = !0, gm(N.value?.$el, { transition: "none" }), gm(w.value?.$el, { transition: "none" }), F.value && z({ draggedDistance: i }), a && !F.value) {
|
|
12776
|
+
let e = ym(i), t = Math.min(e * -1, 0) * r;
|
|
12777
|
+
gm(N.value?.$el, { transform: bm(g.value) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
|
|
12775
12778
|
return;
|
|
12776
12779
|
}
|
|
12777
12780
|
let p = 1 - d;
|
|
12778
|
-
if ((ne.value || h.value && L.value === h.value - 1) && (t(d),
|
|
12781
|
+
if ((ne.value || h.value && L.value === h.value - 1) && (t(d), gm(w.value?.$el, {
|
|
12779
12782
|
opacity: `${p}`,
|
|
12780
12783
|
transition: "none"
|
|
12781
12784
|
}, !0)), l && w.value && u.value) {
|
|
12782
12785
|
let e = Math.min(H() + d * (1 - H()), 1), t = 8 - d * 8, n = Math.max(0, 14 - d * 14);
|
|
12783
|
-
|
|
12786
|
+
gm(l, {
|
|
12784
12787
|
borderRadius: `${t}px`,
|
|
12785
|
-
transform:
|
|
12788
|
+
transform: bm(g.value) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
|
|
12786
12789
|
transition: "none"
|
|
12787
12790
|
}, !0);
|
|
12788
12791
|
}
|
|
12789
12792
|
if (!F.value) {
|
|
12790
12793
|
let e = c * r;
|
|
12791
|
-
|
|
12794
|
+
gm(N.value?.$el, { transform: bm(g.value) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
|
|
12792
12795
|
}
|
|
12793
12796
|
}
|
|
12794
12797
|
}
|
|
12795
12798
|
function G() {
|
|
12796
12799
|
if (!N.value) return;
|
|
12797
|
-
let e = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]"), t =
|
|
12798
|
-
|
|
12800
|
+
let e = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]"), t = vm(N.value.$el, g.value);
|
|
12801
|
+
gm(N.value.$el, {
|
|
12799
12802
|
transform: "translate3d(0, 0, 0)",
|
|
12800
|
-
transition: `transform ${
|
|
12801
|
-
}),
|
|
12802
|
-
transition: `opacity ${
|
|
12803
|
+
transition: `transform ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`
|
|
12804
|
+
}), gm(w.value?.$el, {
|
|
12805
|
+
transition: `opacity ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`,
|
|
12803
12806
|
opacity: "1"
|
|
12804
|
-
}), u.value && t && t > 0 && b.value &&
|
|
12805
|
-
borderRadius: `${
|
|
12807
|
+
}), u.value && t && t > 0 && b.value && gm(e, {
|
|
12808
|
+
borderRadius: `${Em}px`,
|
|
12806
12809
|
overflow: "hidden",
|
|
12807
|
-
...
|
|
12810
|
+
...bm(g.value) ? {
|
|
12808
12811
|
transform: `scale(${H()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
|
|
12809
12812
|
transformOrigin: "top"
|
|
12810
12813
|
} : {
|
|
@@ -12812,19 +12815,19 @@ function Pm(e) {
|
|
|
12812
12815
|
transformOrigin: "left"
|
|
12813
12816
|
},
|
|
12814
12817
|
transitionProperty: "transform, border-radius",
|
|
12815
|
-
transitionDuration: `${
|
|
12816
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
12818
|
+
transitionDuration: `${Sm.DURATION}s`,
|
|
12819
|
+
transitionTimingFunction: `cubic-bezier(${Sm.EASE.join(",")})`
|
|
12817
12820
|
}, !0);
|
|
12818
12821
|
}
|
|
12819
12822
|
function K(e) {
|
|
12820
12823
|
N.value && (r(), e || (b.value = !1), window.setTimeout(() => {
|
|
12821
12824
|
F.value && (m.value = F.value[0]);
|
|
12822
|
-
},
|
|
12825
|
+
}, Sm.DURATION * 1e3));
|
|
12823
12826
|
}
|
|
12824
12827
|
ye(() => {
|
|
12825
|
-
if (!b.value && u.value &&
|
|
12828
|
+
if (!b.value && u.value && lm) {
|
|
12826
12829
|
let e = setTimeout(() => {
|
|
12827
|
-
|
|
12830
|
+
_m(document.body);
|
|
12828
12831
|
}, 200);
|
|
12829
12832
|
return () => clearTimeout(e);
|
|
12830
12833
|
}
|
|
@@ -12833,10 +12836,10 @@ function Pm(e) {
|
|
|
12833
12836
|
});
|
|
12834
12837
|
function ae(e) {
|
|
12835
12838
|
if (!S.value || !N.value) return;
|
|
12836
|
-
N.value.$el.classList.remove(
|
|
12837
|
-
let t =
|
|
12839
|
+
N.value.$el.classList.remove(km), k.value = !1, S.value = !1, D.value = /* @__PURE__ */ new Date();
|
|
12840
|
+
let t = vm(N.value.$el, g.value);
|
|
12838
12841
|
if (!U(e.target, !1) || !t || Number.isNaN(t) || E.value === null) return;
|
|
12839
|
-
let r = D.value.getTime() - E.value.getTime(), i = j.value - (
|
|
12842
|
+
let r = D.value.getTime() - E.value.getTime(), i = j.value - (bm(g.value) ? e.clientY : e.clientX), a = Math.abs(i) / r;
|
|
12840
12843
|
if (a > .05 && (C.value = !0, window.setTimeout(() => {
|
|
12841
12844
|
C.value = !1;
|
|
12842
12845
|
}, 200)), F.value) {
|
|
@@ -12852,7 +12855,7 @@ function Pm(e) {
|
|
|
12852
12855
|
G(), n(!0);
|
|
12853
12856
|
return;
|
|
12854
12857
|
}
|
|
12855
|
-
if (a >
|
|
12858
|
+
if (a > Cm) {
|
|
12856
12859
|
K(), n(!1);
|
|
12857
12860
|
return;
|
|
12858
12861
|
}
|
|
@@ -12867,31 +12870,31 @@ function Pm(e) {
|
|
|
12867
12870
|
}, { immediate: !0 });
|
|
12868
12871
|
function oe(e) {
|
|
12869
12872
|
var t;
|
|
12870
|
-
let n = e ? (window.innerWidth -
|
|
12871
|
-
A.value && window.clearTimeout(A.value),
|
|
12872
|
-
transition: `transform ${
|
|
12873
|
+
let n = e ? (window.innerWidth - Dm) / window.innerWidth : 1, r = e ? -16 : 0;
|
|
12874
|
+
A.value && window.clearTimeout(A.value), gm(N.value?.$el, {
|
|
12875
|
+
transition: `transform ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`,
|
|
12873
12876
|
transform: `scale(${n}) translate3d(0, ${r}px, 0)`
|
|
12874
12877
|
}), !e && (t = N.value) != null && t.$el && (A.value = window.setTimeout(() => {
|
|
12875
|
-
let e =
|
|
12876
|
-
|
|
12878
|
+
let e = vm(N.value?.$el, g.value);
|
|
12879
|
+
gm(N.value?.$el, {
|
|
12877
12880
|
transition: "none",
|
|
12878
|
-
transform:
|
|
12881
|
+
transform: bm(g.value) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
|
|
12879
12882
|
});
|
|
12880
12883
|
}, 500));
|
|
12881
12884
|
}
|
|
12882
12885
|
function se(e) {
|
|
12883
12886
|
if (e < 0) return;
|
|
12884
|
-
let t =
|
|
12885
|
-
|
|
12886
|
-
transform:
|
|
12887
|
+
let t = bm(g.value) ? window.innerHeight : window.innerWidth, n = (t - Dm) / t, r = n + e * (1 - n), i = -16 + e * Dm;
|
|
12888
|
+
gm(N.value?.$el, {
|
|
12889
|
+
transform: bm(g.value) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
|
|
12887
12890
|
transition: "none"
|
|
12888
12891
|
});
|
|
12889
12892
|
}
|
|
12890
12893
|
function ce(e) {
|
|
12891
|
-
let t =
|
|
12892
|
-
e &&
|
|
12893
|
-
transition: `transform ${
|
|
12894
|
-
transform:
|
|
12894
|
+
let t = bm(g.value) ? window.innerHeight : window.innerWidth, n = e ? (t - Dm) / t : 1, r = e ? -16 : 0;
|
|
12895
|
+
e && gm(N.value?.$el, {
|
|
12896
|
+
transition: `transform ${Sm.DURATION}s cubic-bezier(${Sm.EASE.join(",")})`,
|
|
12897
|
+
transform: bm(g.value) ? `scale(${n}) translate3d(0, ${r}px, 0)` : `scale(${n}) translate3d(${r}px, 0, 0)`
|
|
12895
12898
|
});
|
|
12896
12899
|
}
|
|
12897
12900
|
return {
|
|
@@ -12934,11 +12937,11 @@ function Pm(e) {
|
|
|
12934
12937
|
noBodyStyles: _
|
|
12935
12938
|
};
|
|
12936
12939
|
}
|
|
12937
|
-
var
|
|
12940
|
+
var Im = /* @__PURE__ */ v({
|
|
12938
12941
|
__name: "DrawerRoot",
|
|
12939
12942
|
props: {
|
|
12940
12943
|
activeSnapPoint: { default: void 0 },
|
|
12941
|
-
closeThreshold: { default:
|
|
12944
|
+
closeThreshold: { default: wm },
|
|
12942
12945
|
shouldScaleBackground: {
|
|
12943
12946
|
type: Boolean,
|
|
12944
12947
|
default: void 0
|
|
@@ -12947,7 +12950,7 @@ var Fm = /* @__PURE__ */ v({
|
|
|
12947
12950
|
type: Boolean,
|
|
12948
12951
|
default: !0
|
|
12949
12952
|
},
|
|
12950
|
-
scrollLockTimeout: { default:
|
|
12953
|
+
scrollLockTimeout: { default: Tm },
|
|
12951
12954
|
fixed: {
|
|
12952
12955
|
type: Boolean,
|
|
12953
12956
|
default: void 0
|
|
@@ -12993,19 +12996,19 @@ var Fm = /* @__PURE__ */ v({
|
|
|
12993
12996
|
setup(e, { expose: t, emit: n }) {
|
|
12994
12997
|
let r = e, i = n;
|
|
12995
12998
|
pe();
|
|
12996
|
-
let a = c(() => r.fadeFromIndex ?? (r.snapPoints && r.snapPoints.length - 1)), o =
|
|
12999
|
+
let a = c(() => r.fadeFromIndex ?? (r.snapPoints && r.snapPoints.length - 1)), o = fm(r, "open", i, {
|
|
12997
13000
|
defaultValue: r.defaultOpen,
|
|
12998
13001
|
passive: r.open === void 0
|
|
12999
|
-
}), s =
|
|
13002
|
+
}), s = fm(r, "activeSnapPoint", i, { passive: r.activeSnapPoint === void 0 }), u = {
|
|
13000
13003
|
emitDrag: (e) => i("drag", e),
|
|
13001
13004
|
emitRelease: (e) => i("release", e),
|
|
13002
13005
|
emitClose: () => i("close"),
|
|
13003
13006
|
emitOpenChange: (e) => {
|
|
13004
13007
|
i("update:open", e), setTimeout(() => {
|
|
13005
13008
|
i("animationEnd", e);
|
|
13006
|
-
},
|
|
13009
|
+
}, Sm.DURATION * 1e3);
|
|
13007
13010
|
}
|
|
13008
|
-
}, { closeDrawer: d, hasBeenOpened: f, modal: p, isOpen: m } =
|
|
13011
|
+
}, { closeDrawer: d, hasBeenOpened: f, modal: p, isOpen: m } = mm(Fm({
|
|
13009
13012
|
...u,
|
|
13010
13013
|
...ce(r),
|
|
13011
13014
|
activeSnapPoint: s,
|
|
@@ -13019,7 +13022,7 @@ var Fm = /* @__PURE__ */ v({
|
|
|
13019
13022
|
}
|
|
13020
13023
|
m.value = e, e ? f.value = !0 : d();
|
|
13021
13024
|
}
|
|
13022
|
-
return t({ open: m }), (e, t) => (z(), l(J(
|
|
13025
|
+
return t({ open: m }), (e, t) => (z(), l(J(ip), {
|
|
13023
13026
|
open: J(m),
|
|
13024
13027
|
modal: J(p),
|
|
13025
13028
|
"onUpdate:open": h
|
|
@@ -13028,7 +13031,7 @@ var Fm = /* @__PURE__ */ v({
|
|
|
13028
13031
|
_: 3
|
|
13029
13032
|
}, 8, ["open", "modal"]));
|
|
13030
13033
|
}
|
|
13031
|
-
}),
|
|
13034
|
+
}), Lm = /* @__PURE__ */ v({
|
|
13032
13035
|
__name: "DrawerRootNested",
|
|
13033
13036
|
props: {
|
|
13034
13037
|
activeSnapPoint: {},
|
|
@@ -13058,7 +13061,7 @@ var Fm = /* @__PURE__ */ v({
|
|
|
13058
13061
|
"animationEnd"
|
|
13059
13062
|
],
|
|
13060
13063
|
setup(e, { emit: t }) {
|
|
13061
|
-
let n = e, r = t, { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } =
|
|
13064
|
+
let n = e, r = t, { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } = pm();
|
|
13062
13065
|
function s() {
|
|
13063
13066
|
a(!1);
|
|
13064
13067
|
}
|
|
@@ -13068,8 +13071,8 @@ var Fm = /* @__PURE__ */ v({
|
|
|
13068
13071
|
function u(e) {
|
|
13069
13072
|
e && a(e), r("update:open", e);
|
|
13070
13073
|
}
|
|
13071
|
-
let d =
|
|
13072
|
-
return (e, t) => (z(), l(
|
|
13074
|
+
let d = tp(n, r);
|
|
13075
|
+
return (e, t) => (z(), l(Im, A(J(d), {
|
|
13073
13076
|
nested: "",
|
|
13074
13077
|
onClose: s,
|
|
13075
13078
|
onDrag: c,
|
|
@@ -13080,11 +13083,11 @@ var Fm = /* @__PURE__ */ v({
|
|
|
13080
13083
|
_: 3
|
|
13081
13084
|
}, 16, ["onRelease"]));
|
|
13082
13085
|
}
|
|
13083
|
-
}),
|
|
13086
|
+
}), Rm = /* @__PURE__ */ v({
|
|
13084
13087
|
__name: "DrawerOverlay",
|
|
13085
13088
|
setup(e) {
|
|
13086
|
-
let { overlayRef: t, hasSnapPoints: n, isOpen: r, shouldFade: i } =
|
|
13087
|
-
return (e, a) => (z(), l(J(
|
|
13089
|
+
let { overlayRef: t, hasSnapPoints: n, isOpen: r, shouldFade: i } = pm();
|
|
13090
|
+
return (e, a) => (z(), l(J(om), {
|
|
13088
13091
|
ref_key: "overlayRef",
|
|
13089
13092
|
ref: t,
|
|
13090
13093
|
"data-vaul-overlay": "",
|
|
@@ -13093,40 +13096,40 @@ var Fm = /* @__PURE__ */ v({
|
|
|
13093
13096
|
}, null, 8, ["data-vaul-snap-points", "data-vaul-snap-points-overlay"]));
|
|
13094
13097
|
}
|
|
13095
13098
|
});
|
|
13096
|
-
function
|
|
13097
|
-
let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } =
|
|
13099
|
+
function zm() {
|
|
13100
|
+
let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = pm(), a = V(null), o = V(document.body.style.backgroundColor);
|
|
13098
13101
|
function s() {
|
|
13099
|
-
return (window.innerWidth -
|
|
13102
|
+
return (window.innerWidth - Om) / window.innerWidth;
|
|
13100
13103
|
}
|
|
13101
13104
|
ye((c) => {
|
|
13102
13105
|
if (t.value && n.value) {
|
|
13103
13106
|
a.value && clearTimeout(a.value);
|
|
13104
13107
|
let t = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
13105
13108
|
if (!t) return;
|
|
13106
|
-
r.value && !i.value &&
|
|
13107
|
-
transformOrigin:
|
|
13109
|
+
r.value && !i.value && xm(document.body, { background: "black" }), xm(t, {
|
|
13110
|
+
transformOrigin: bm(e.value) ? "top" : "left",
|
|
13108
13111
|
transitionProperty: "transform, border-radius",
|
|
13109
|
-
transitionDuration: `${
|
|
13110
|
-
transitionTimingFunction: `cubic-bezier(${
|
|
13112
|
+
transitionDuration: `${Sm.DURATION}s`,
|
|
13113
|
+
transitionTimingFunction: `cubic-bezier(${Sm.EASE.join(",")})`
|
|
13111
13114
|
});
|
|
13112
|
-
let n =
|
|
13113
|
-
borderRadius: `${
|
|
13115
|
+
let n = xm(t, {
|
|
13116
|
+
borderRadius: `${Em}px`,
|
|
13114
13117
|
overflow: "hidden",
|
|
13115
|
-
...
|
|
13118
|
+
...bm(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)` }
|
|
13116
13119
|
});
|
|
13117
13120
|
c(() => {
|
|
13118
13121
|
n(), a.value = window.setTimeout(() => {
|
|
13119
13122
|
o.value ? document.body.style.background = o.value : document.body.style.removeProperty("background");
|
|
13120
|
-
},
|
|
13123
|
+
}, Sm.DURATION * 1e3);
|
|
13121
13124
|
});
|
|
13122
13125
|
}
|
|
13123
13126
|
}, { flush: "pre" });
|
|
13124
13127
|
}
|
|
13125
|
-
var
|
|
13128
|
+
var Bm = /* @__PURE__ */ v({
|
|
13126
13129
|
__name: "DrawerContent",
|
|
13127
13130
|
setup(e) {
|
|
13128
|
-
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: _ } =
|
|
13129
|
-
|
|
13131
|
+
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: _ } = pm();
|
|
13132
|
+
zm();
|
|
13130
13133
|
let v = V(!1), y = c(() => r.value && r.value.length > 0 ? `${r.value[0]}px` : "0");
|
|
13131
13134
|
function b(e) {
|
|
13132
13135
|
if (!d.value || e.defaultPrevented) {
|
|
@@ -13145,7 +13148,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13145
13148
|
i.value && window.requestAnimationFrame(() => {
|
|
13146
13149
|
v.value = !0;
|
|
13147
13150
|
});
|
|
13148
|
-
}), (e, t) => (z(), l(J(
|
|
13151
|
+
}), (e, t) => (z(), l(J(Xp), {
|
|
13149
13152
|
ref_key: "drawerRef",
|
|
13150
13153
|
ref: a,
|
|
13151
13154
|
"data-vaul-drawer": "",
|
|
@@ -13172,10 +13175,10 @@ var zm = /* @__PURE__ */ v({
|
|
|
13172
13175
|
"onPointerup"
|
|
13173
13176
|
]));
|
|
13174
13177
|
}
|
|
13175
|
-
}),
|
|
13178
|
+
}), Vm = {
|
|
13176
13179
|
key: 0,
|
|
13177
13180
|
class: "vui-drawer-header"
|
|
13178
|
-
},
|
|
13181
|
+
}, Hm = "var(--vui-drawer-top-offset, 28px)", Um = /* @__PURE__ */ v({
|
|
13179
13182
|
inheritAttrs: !1,
|
|
13180
13183
|
__name: "Drawer",
|
|
13181
13184
|
props: {
|
|
@@ -13229,9 +13232,9 @@ var zm = /* @__PURE__ */ v({
|
|
|
13229
13232
|
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));
|
|
13230
13233
|
});
|
|
13231
13234
|
let v = c(() => {
|
|
13232
|
-
if (!a.value) return `calc(95dvh - ${
|
|
13235
|
+
if (!a.value) return `calc(95dvh - ${Hm})`;
|
|
13233
13236
|
let t = o.value ?? e.rootProps?.snapPoints?.[0];
|
|
13234
|
-
return t == null ? `calc(100dvh - ${
|
|
13237
|
+
return t == null ? `calc(100dvh - ${Hm})` : typeof t == "number" ? `calc(${t * 100}dvh - ${Hm})` : typeof t == "string" && t.endsWith("px") ? `calc(${t} - ${Hm})` : `calc(100dvh - ${Hm})`;
|
|
13235
13238
|
});
|
|
13236
13239
|
function y(t) {
|
|
13237
13240
|
f.value && !s.value && t === (e.rootProps?.snapPoints?.[0] ?? null) || (o.value = t ?? null, n("update:activeSnapPoint", t));
|
|
@@ -13239,20 +13242,20 @@ var zm = /* @__PURE__ */ v({
|
|
|
13239
13242
|
L(() => {
|
|
13240
13243
|
e.rootProps?.shouldScaleBackground && !document.querySelector("[vaul-drawer-wrapper]") && console.error("Your root component is missing 'vaul-drawer-wrapper' attribute. \n Without it the background scaling effect will not work.");
|
|
13241
13244
|
});
|
|
13242
|
-
let { layerIndex: b, openLayer: x, closeLayer: C } =
|
|
13245
|
+
let { layerIndex: b, openLayer: x, closeLayer: C } = Xd();
|
|
13243
13246
|
return ye(() => {
|
|
13244
13247
|
e.open ? x() : C();
|
|
13245
|
-
}), (t, o) => (z(), l(W(e.nested ? J(
|
|
13248
|
+
}), (t, o) => (z(), l(W(e.nested ? J(Lm) : J(Im)), A({ open: e.open }, _.value, {
|
|
13246
13249
|
"aria-describedby": J(i),
|
|
13247
13250
|
onClose: o[0] ||= (e) => n("close"),
|
|
13248
13251
|
"onUpdate:open": o[1] ||= (e) => e === !1 && n("close"),
|
|
13249
13252
|
"onUpdate:activeSnapPoint": y
|
|
13250
13253
|
}), {
|
|
13251
|
-
default: Z(() => [g(J(
|
|
13252
|
-
default: Z(() => [e.overlay ? (z(), l(J(
|
|
13254
|
+
default: Z(() => [g(J(cm), N(S(e.portalProps)), {
|
|
13255
|
+
default: Z(() => [e.overlay ? (z(), l(J(Rm), {
|
|
13253
13256
|
key: 0,
|
|
13254
13257
|
class: "vui-drawer-overlay"
|
|
13255
|
-
})) : u("", !0), g(J(
|
|
13258
|
+
})) : u("", !0), g(J(Bm), A({ class: ["vui-drawer-content", {
|
|
13256
13259
|
"hide-handle": e.handle === !1,
|
|
13257
13260
|
"has-snap-points": a.value
|
|
13258
13261
|
}] }, J(r), {
|
|
@@ -13265,14 +13268,14 @@ var zm = /* @__PURE__ */ v({
|
|
|
13265
13268
|
style: P([{ "max-height": v.value }]),
|
|
13266
13269
|
"data-vaul-no-drag": ""
|
|
13267
13270
|
}, [
|
|
13268
|
-
g(J(
|
|
13271
|
+
g(J(sm), {
|
|
13269
13272
|
class: "visually-hidden",
|
|
13270
13273
|
name: J(i)
|
|
13271
13274
|
}, {
|
|
13272
13275
|
default: Z(() => [h(K(e.title), 1)]),
|
|
13273
13276
|
_: 1
|
|
13274
13277
|
}, 8, ["name"]),
|
|
13275
|
-
t.$slots.header ? (z(), d("div",
|
|
13278
|
+
t.$slots.header ? (z(), d("div", Vm, [U(t.$slots, "header")])) : u("", !0),
|
|
13276
13279
|
U(t.$slots, "default")
|
|
13277
13280
|
], 6))]),
|
|
13278
13281
|
_: 3
|
|
@@ -13282,7 +13285,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13282
13285
|
_: 3
|
|
13283
13286
|
}, 16, ["open", "aria-describedby"]));
|
|
13284
13287
|
}
|
|
13285
|
-
}),
|
|
13288
|
+
}), Wm = /* @__PURE__ */ v({
|
|
13286
13289
|
inheritAttrs: !1,
|
|
13287
13290
|
__name: "Popout",
|
|
13288
13291
|
props: {
|
|
@@ -13316,7 +13319,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13316
13319
|
}, { ignore: [p] });
|
|
13317
13320
|
let h = c(() => {
|
|
13318
13321
|
if (a.transitionName !== "none") return a.transitionName ? a.transitionName : Zn(a.placement);
|
|
13319
|
-
}), { layerIndex: _, openLayer: v, closeLayer: y } =
|
|
13322
|
+
}), { layerIndex: _, openLayer: v, closeLayer: y } = Xd(), b = V(a.visible), x, S;
|
|
13320
13323
|
return X(b, (e) => {
|
|
13321
13324
|
e ? v() : y();
|
|
13322
13325
|
}, { immediate: !0 }), t({ get el() {
|
|
@@ -13355,7 +13358,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13355
13358
|
_: 3
|
|
13356
13359
|
}, 8, ["name", "css"])], 8, ["disabled"]));
|
|
13357
13360
|
}
|
|
13358
|
-
}),
|
|
13361
|
+
}), Gm = ["aria-expanded"], Km = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", qm = /* @__PURE__ */ v({
|
|
13359
13362
|
__name: "Dropdown",
|
|
13360
13363
|
props: {
|
|
13361
13364
|
placement: { default: "bottom-start" },
|
|
@@ -13387,10 +13390,10 @@ var zm = /* @__PURE__ */ v({
|
|
|
13387
13390
|
toggle: m,
|
|
13388
13391
|
isOpen: s
|
|
13389
13392
|
});
|
|
13390
|
-
let g = c(() => Jn(e.minWidth)), _ = c(() => e.expand ? `${h.value}px` : "initial"), v =
|
|
13393
|
+
let g = c(() => Jn(e.minWidth)), _ = c(() => e.expand ? `${h.value}px` : "initial"), v = Vd(Rd.Mobile), { escape: y } = vn();
|
|
13391
13394
|
zt(y, p), X(s, (e) => {
|
|
13392
13395
|
e ? j(() => {
|
|
13393
|
-
o.value?.el?.querySelector(
|
|
13396
|
+
o.value?.el?.querySelector(Km)?.focus();
|
|
13394
13397
|
}) : i("close");
|
|
13395
13398
|
});
|
|
13396
13399
|
function b(e) {
|
|
@@ -13419,7 +13422,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13419
13422
|
isOpen: s.value,
|
|
13420
13423
|
close: p,
|
|
13421
13424
|
toggle: m
|
|
13422
|
-
})], 40,
|
|
13425
|
+
})], 40, Gm), J(v) && !e.noMobileDrawer ? (z(), l(Um, {
|
|
13423
13426
|
key: 0,
|
|
13424
13427
|
open: s.value,
|
|
13425
13428
|
onClose: p,
|
|
@@ -13432,7 +13435,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13432
13435
|
isOpen: s.value
|
|
13433
13436
|
})]),
|
|
13434
13437
|
_: 3
|
|
13435
|
-
}, 8, ["open"])) : (z(), l(
|
|
13438
|
+
}, 8, ["open"])) : (z(), l(Wm, {
|
|
13436
13439
|
key: 1,
|
|
13437
13440
|
ref: "popoutEl",
|
|
13438
13441
|
visible: s.value,
|
|
@@ -13463,16 +13466,16 @@ var zm = /* @__PURE__ */ v({
|
|
|
13463
13466
|
"transition-name"
|
|
13464
13467
|
]))], 64));
|
|
13465
13468
|
}
|
|
13466
|
-
}),
|
|
13469
|
+
}), Jm = ["disabled"], Ym = {
|
|
13467
13470
|
key: 0,
|
|
13468
13471
|
class: "vui-dropdown-item-icon"
|
|
13469
|
-
},
|
|
13472
|
+
}, Xm = { class: "vui-dropdown-item-slot" }, Zm = {
|
|
13470
13473
|
key: 1,
|
|
13471
13474
|
class: "vui-dropdown-item-hint"
|
|
13472
|
-
},
|
|
13475
|
+
}, Qm = {
|
|
13473
13476
|
key: 2,
|
|
13474
13477
|
class: "vui-dropdown-item-icon"
|
|
13475
|
-
},
|
|
13478
|
+
}, $m = /* @__PURE__ */ v({
|
|
13476
13479
|
__name: "DropdownItem",
|
|
13477
13480
|
props: { disabled: { type: Boolean } },
|
|
13478
13481
|
setup(e) {
|
|
@@ -13481,22 +13484,22 @@ var zm = /* @__PURE__ */ v({
|
|
|
13481
13484
|
class: M(["vui-dropdown-item", { disabled: t.disabled }]),
|
|
13482
13485
|
disabled: t.disabled
|
|
13483
13486
|
}, [
|
|
13484
|
-
e.$slots.icon ? (z(), d("div",
|
|
13485
|
-
f("div",
|
|
13486
|
-
e.$slots.hint ? (z(), d("div",
|
|
13487
|
-
e.$slots.iconEnd ? (z(), d("div",
|
|
13488
|
-
], 10,
|
|
13487
|
+
e.$slots.icon ? (z(), d("div", Ym, [U(e.$slots, "icon")])) : u("", !0),
|
|
13488
|
+
f("div", Xm, [U(e.$slots, "default")]),
|
|
13489
|
+
e.$slots.hint ? (z(), d("div", Zm, [U(e.$slots, "hint")])) : u("", !0),
|
|
13490
|
+
e.$slots.iconEnd ? (z(), d("div", Qm, [U(e.$slots, "iconEnd")])) : u("", !0)
|
|
13491
|
+
], 10, Jm));
|
|
13489
13492
|
}
|
|
13490
|
-
}),
|
|
13493
|
+
}), eh = {
|
|
13491
13494
|
key: 0,
|
|
13492
13495
|
class: "vui-dropdown-title-end"
|
|
13493
|
-
},
|
|
13496
|
+
}, th = /* @__PURE__ */ v({
|
|
13494
13497
|
__name: "DropdownTitle",
|
|
13495
13498
|
props: { sticky: { type: Boolean } },
|
|
13496
13499
|
setup(e) {
|
|
13497
|
-
return (t, n) => (z(), d("div", { class: M(["vui-dropdown-title", { sticky: e.sticky }]) }, [U(t.$slots, "default"), t.$slots.end ? (z(), d("div",
|
|
13500
|
+
return (t, n) => (z(), d("div", { class: M(["vui-dropdown-title", { sticky: e.sticky }]) }, [U(t.$slots, "default"), t.$slots.end ? (z(), d("div", eh, [U(t.$slots, "end")])) : u("", !0)], 2));
|
|
13498
13501
|
}
|
|
13499
|
-
}),
|
|
13502
|
+
}), nh = /* @__PURE__ */ v({
|
|
13500
13503
|
__name: "Grid",
|
|
13501
13504
|
props: {
|
|
13502
13505
|
inline: { type: Boolean },
|
|
@@ -13549,7 +13552,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13549
13552
|
})
|
|
13550
13553
|
}, [U(e.$slots, "default")], 4));
|
|
13551
13554
|
}
|
|
13552
|
-
}),
|
|
13555
|
+
}), rh = /* @__PURE__ */ v({
|
|
13553
13556
|
__name: "Indicator",
|
|
13554
13557
|
props: {
|
|
13555
13558
|
variant: {},
|
|
@@ -13585,10 +13588,10 @@ var zm = /* @__PURE__ */ v({
|
|
|
13585
13588
|
})
|
|
13586
13589
|
}, [U(e.$slots, "default")], 6));
|
|
13587
13590
|
}
|
|
13588
|
-
}),
|
|
13591
|
+
}), ih = { class: "vui-input" }, ah = ["for"], oh = {
|
|
13589
13592
|
key: 1,
|
|
13590
13593
|
class: "vui-input-hint"
|
|
13591
|
-
},
|
|
13594
|
+
}, sh = [
|
|
13592
13595
|
"id",
|
|
13593
13596
|
"readonly",
|
|
13594
13597
|
"type",
|
|
@@ -13599,13 +13602,13 @@ var zm = /* @__PURE__ */ v({
|
|
|
13599
13602
|
"multiple",
|
|
13600
13603
|
"min",
|
|
13601
13604
|
"disabled"
|
|
13602
|
-
],
|
|
13605
|
+
], ch = {
|
|
13603
13606
|
key: 0,
|
|
13604
13607
|
class: "vui-input-limit"
|
|
13605
|
-
},
|
|
13608
|
+
}, lh = {
|
|
13606
13609
|
key: 1,
|
|
13607
13610
|
class: "vui-input-errors"
|
|
13608
|
-
},
|
|
13611
|
+
}, uh = /* @__PURE__ */ v({
|
|
13609
13612
|
__name: "Input",
|
|
13610
13613
|
props: /* @__PURE__ */ k({
|
|
13611
13614
|
type: { default: "text" },
|
|
@@ -13650,12 +13653,12 @@ var zm = /* @__PURE__ */ v({
|
|
|
13650
13653
|
"has-errors": e.errors.length > 0
|
|
13651
13654
|
}]) }, [
|
|
13652
13655
|
U(t.$slots, "before"),
|
|
13653
|
-
f("div",
|
|
13656
|
+
f("div", ih, [
|
|
13654
13657
|
e.label ? (z(), d("label", {
|
|
13655
13658
|
key: 0,
|
|
13656
13659
|
for: J(i)
|
|
13657
|
-
}, K(e.label), 9,
|
|
13658
|
-
e.hint ? (z(), d("p",
|
|
13660
|
+
}, K(e.label), 9, ah)) : u("", !0),
|
|
13661
|
+
e.hint ? (z(), d("p", oh, K(e.hint), 1)) : u("", !0),
|
|
13659
13662
|
g(ir, {
|
|
13660
13663
|
class: "vui-input-style",
|
|
13661
13664
|
gap: 5,
|
|
@@ -13679,18 +13682,18 @@ var zm = /* @__PURE__ */ v({
|
|
|
13679
13682
|
multiple: e.multiple,
|
|
13680
13683
|
min: e.min,
|
|
13681
13684
|
disabled: e.disabled
|
|
13682
|
-
}, null, 8,
|
|
13685
|
+
}, null, 8, sh)), [[he, r.value]]),
|
|
13683
13686
|
U(t.$slots, "end")
|
|
13684
13687
|
]),
|
|
13685
13688
|
_: 3
|
|
13686
13689
|
})
|
|
13687
13690
|
]),
|
|
13688
|
-
e.limit ? (z(), d("p",
|
|
13689
|
-
e.errors.length > 0 ? (z(), d("ul",
|
|
13691
|
+
e.limit ? (z(), d("p", ch, K(o.value), 1)) : u("", !0),
|
|
13692
|
+
e.errors.length > 0 ? (z(), d("ul", lh, [(z(!0), d(n, null, H(e.errors, (e) => (z(), d("li", { key: e }, K(e), 1))), 128))])) : u("", !0),
|
|
13690
13693
|
U(t.$slots, "after")
|
|
13691
13694
|
], 2));
|
|
13692
13695
|
}
|
|
13693
|
-
}),
|
|
13696
|
+
}), dh = ["id"], fh = ["for"], ph = ["placeholder"], mh = /* @__PURE__ */ v({
|
|
13694
13697
|
__name: "Color",
|
|
13695
13698
|
props: /* @__PURE__ */ k({
|
|
13696
13699
|
type: {},
|
|
@@ -13716,7 +13719,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13716
13719
|
emits: ["update:modelValue"],
|
|
13717
13720
|
setup(e) {
|
|
13718
13721
|
let t = e, n = le(), r = fe(e, "modelValue"), i = de();
|
|
13719
|
-
return (e, a) => (z(), l(
|
|
13722
|
+
return (e, a) => (z(), l(uh, A({
|
|
13720
13723
|
...J(n),
|
|
13721
13724
|
...t
|
|
13722
13725
|
}, {
|
|
@@ -13728,18 +13731,18 @@ var zm = /* @__PURE__ */ v({
|
|
|
13728
13731
|
"onUpdate:modelValue": a[0] ||= (e) => r.value = e,
|
|
13729
13732
|
type: "color",
|
|
13730
13733
|
tabindex: "0"
|
|
13731
|
-
}, null, 8,
|
|
13734
|
+
}, null, 8, dh), [[_e, r.value]]), f("label", { for: J(i) }, [f("div", {
|
|
13732
13735
|
class: "vui-input-color-indicator",
|
|
13733
13736
|
style: P({ backgroundColor: r.value })
|
|
13734
13737
|
}, [r.value ? u("", !0) : (z(), l(J(et), { key: 0 }))], 4), xe(f("input", {
|
|
13735
13738
|
"onUpdate:modelValue": a[1] ||= (e) => r.value = e,
|
|
13736
13739
|
type: "text",
|
|
13737
13740
|
placeholder: t.placeholder
|
|
13738
|
-
}, null, 8,
|
|
13741
|
+
}, null, 8, ph), [[_e, r.value]])], 8, fh)]),
|
|
13739
13742
|
_: 1
|
|
13740
13743
|
}, 16));
|
|
13741
13744
|
}
|
|
13742
|
-
}),
|
|
13745
|
+
}), hh = /* @__PURE__ */ $d(/* @__PURE__ */ v({
|
|
13743
13746
|
__name: "Counter",
|
|
13744
13747
|
props: /* @__PURE__ */ k({
|
|
13745
13748
|
label: {},
|
|
@@ -13789,7 +13792,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13789
13792
|
"decrementEnabled",
|
|
13790
13793
|
"hideDecrement"
|
|
13791
13794
|
]), n = fe(e, "modelValue");
|
|
13792
|
-
return (r, i) => (z(), l(
|
|
13795
|
+
return (r, i) => (z(), l(uh, A(t, {
|
|
13793
13796
|
modelValue: n.value,
|
|
13794
13797
|
"onUpdate:modelValue": i[2] ||= (e) => n.value = e,
|
|
13795
13798
|
modelModifiers: { number: !0 },
|
|
@@ -13820,7 +13823,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13820
13823
|
_: 1
|
|
13821
13824
|
}, 16, ["modelValue"]));
|
|
13822
13825
|
}
|
|
13823
|
-
}), [["__scopeId", "data-v-
|
|
13826
|
+
}), [["__scopeId", "data-v-5059e818"]]), gh = ["id"], _h = ["for"], vh = /* @__PURE__ */ v({
|
|
13824
13827
|
__name: "Dropzone",
|
|
13825
13828
|
props: {
|
|
13826
13829
|
label: {},
|
|
@@ -13846,7 +13849,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13846
13849
|
let s = Y("dropzone");
|
|
13847
13850
|
return L(() => {
|
|
13848
13851
|
Ut(s, "dragenter", o, !1), Ut(s, "dragleave", o, !1), Ut(s, "dragover", o, !1), Ut(s, "drop", o, !1), Ut(s, "input", (e) => o(e, !0), !1);
|
|
13849
|
-
}), (e, t) => (z(), l(
|
|
13852
|
+
}), (e, t) => (z(), l(uh, A(r, {
|
|
13850
13853
|
ref: "dropzone",
|
|
13851
13854
|
type: "file",
|
|
13852
13855
|
class: ["vui-dropzone", { dragging: a.value }],
|
|
@@ -13856,18 +13859,18 @@ var zm = /* @__PURE__ */ v({
|
|
|
13856
13859
|
__internal_replace_input: Z(({ inputId: r }) => [f("input", {
|
|
13857
13860
|
id: r,
|
|
13858
13861
|
type: "file"
|
|
13859
|
-
}, null, 8,
|
|
13862
|
+
}, null, 8, gh), f("label", { for: r }, [U(e.$slots, "default", { dragging: a.value }, () => [g(ir, {
|
|
13860
13863
|
"x-center": "",
|
|
13861
13864
|
gap: "xs",
|
|
13862
13865
|
"y-center": ""
|
|
13863
13866
|
}, {
|
|
13864
13867
|
default: Z(() => [a.value ? (z(), d(n, { key: 0 }, [g(J(ot)), t[2] ||= h(" Drop it ", -1)], 64)) : (z(), d(n, { key: 1 }, [g(J(Xe)), t[3] ||= h(" Click or drag files over here ", -1)], 64))]),
|
|
13865
13868
|
_: 1
|
|
13866
|
-
})])], 8,
|
|
13869
|
+
})])], 8, _h)]),
|
|
13867
13870
|
_: 3
|
|
13868
13871
|
}, 16, ["class"]));
|
|
13869
13872
|
}
|
|
13870
|
-
}),
|
|
13873
|
+
}), yh = /* @__PURE__ */ v({
|
|
13871
13874
|
__name: "File",
|
|
13872
13875
|
props: {
|
|
13873
13876
|
label: {},
|
|
@@ -13889,9 +13892,9 @@ var zm = /* @__PURE__ */ v({
|
|
|
13889
13892
|
emits: ["files"],
|
|
13890
13893
|
setup(e, { emit: t }) {
|
|
13891
13894
|
let n = e, r = t;
|
|
13892
|
-
return (e, t) => (z(), l(
|
|
13895
|
+
return (e, t) => (z(), l(uh, A({ type: "file" }, n, { onInput: t[0] ||= (e) => r("files", e.target.files) }), null, 16));
|
|
13893
13896
|
}
|
|
13894
|
-
}),
|
|
13897
|
+
}), bh = /* @__PURE__ */ v({
|
|
13895
13898
|
__name: "Password",
|
|
13896
13899
|
props: {
|
|
13897
13900
|
label: {},
|
|
@@ -13916,7 +13919,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
13916
13919
|
},
|
|
13917
13920
|
setup(e) {
|
|
13918
13921
|
let t = p(e, ["showPassword", "type"]), n = V(e.showPassword);
|
|
13919
|
-
return (e, r) => (z(), l(
|
|
13922
|
+
return (e, r) => (z(), l(uh, A(t, {
|
|
13920
13923
|
type: n.value ? "text" : "password",
|
|
13921
13924
|
autocomplete: "off"
|
|
13922
13925
|
}), {
|
|
@@ -13940,10 +13943,10 @@ var zm = /* @__PURE__ */ v({
|
|
|
13940
13943
|
_: 1
|
|
13941
13944
|
}, 16, ["type"]));
|
|
13942
13945
|
}
|
|
13943
|
-
}),
|
|
13946
|
+
}), xh = { class: "vui-input" }, Sh = ["for"], Ch = {
|
|
13944
13947
|
key: 1,
|
|
13945
13948
|
class: "vui-input-hint"
|
|
13946
|
-
},
|
|
13949
|
+
}, wh = [
|
|
13947
13950
|
"id",
|
|
13948
13951
|
"readonly",
|
|
13949
13952
|
"placeholder",
|
|
@@ -13952,13 +13955,13 @@ var zm = /* @__PURE__ */ v({
|
|
|
13952
13955
|
"max",
|
|
13953
13956
|
"rows",
|
|
13954
13957
|
"cols"
|
|
13955
|
-
],
|
|
13958
|
+
], Th = {
|
|
13956
13959
|
key: 0,
|
|
13957
13960
|
class: "vui-input-limit"
|
|
13958
|
-
},
|
|
13961
|
+
}, Eh = {
|
|
13959
13962
|
key: 1,
|
|
13960
13963
|
class: "vui-input-errors"
|
|
13961
|
-
},
|
|
13964
|
+
}, Dh = /* @__PURE__ */ v({
|
|
13962
13965
|
__name: "Textarea",
|
|
13963
13966
|
props: /* @__PURE__ */ k({
|
|
13964
13967
|
label: {},
|
|
@@ -14007,12 +14010,12 @@ var zm = /* @__PURE__ */ v({
|
|
|
14007
14010
|
disabled: e.disabled
|
|
14008
14011
|
}]) }, [
|
|
14009
14012
|
U(t.$slots, "before"),
|
|
14010
|
-
f("div",
|
|
14013
|
+
f("div", xh, [
|
|
14011
14014
|
e.label ? (z(), d("label", {
|
|
14012
14015
|
key: 0,
|
|
14013
14016
|
for: J(i)
|
|
14014
|
-
}, K(e.label), 9,
|
|
14015
|
-
e.hint ? (z(), d("p",
|
|
14017
|
+
}, K(e.label), 9, Sh)) : u("", !0),
|
|
14018
|
+
e.hint ? (z(), d("p", Ch, K(e.hint), 1)) : u("", !0),
|
|
14016
14019
|
xe(f("textarea", {
|
|
14017
14020
|
id: J(i),
|
|
14018
14021
|
ref: "textarea",
|
|
@@ -14029,24 +14032,24 @@ var zm = /* @__PURE__ */ v({
|
|
|
14029
14032
|
resize: a.value,
|
|
14030
14033
|
...e.cols ? { width: `${e.cols + 1}ch` } : {}
|
|
14031
14034
|
})
|
|
14032
|
-
}, null, 12,
|
|
14035
|
+
}, null, 12, wh), [[_e, r.value]])
|
|
14033
14036
|
]),
|
|
14034
|
-
e.limit ? (z(), d("p",
|
|
14035
|
-
e.errors.length > 0 ? (z(), d("ul",
|
|
14037
|
+
e.limit ? (z(), d("p", Th, K(`${r.value.length}/${e.limit}`), 1)) : u("", !0),
|
|
14038
|
+
e.errors.length > 0 ? (z(), d("ul", Eh, [(z(!0), d(n, null, H(e.errors, (e) => (z(), d("li", { key: e }, K(e), 1))), 128))])) : u("", !0),
|
|
14036
14039
|
U(t.$slots, "after")
|
|
14037
14040
|
], 2));
|
|
14038
14041
|
}
|
|
14039
|
-
}),
|
|
14042
|
+
}), Oh = /* @__PURE__ */ v({
|
|
14040
14043
|
__name: "KbdGroup",
|
|
14041
14044
|
emits: ["trigger"],
|
|
14042
14045
|
setup(e, { emit: t }) {
|
|
14043
14046
|
let n = t, r = pe(), i = vn(), a = On(r.default);
|
|
14044
14047
|
return An(a, "Kbd"), zt(i[a.value.map((e) => e.props.keys).join("+")], () => n("trigger")), (e, t) => U(e.$slots, "default");
|
|
14045
14048
|
}
|
|
14046
|
-
}),
|
|
14049
|
+
}), kh = { class: "marquee-wrap" }, Ah = { class: "marquee-content" }, jh = {
|
|
14047
14050
|
class: "marquee-content",
|
|
14048
14051
|
"aria-hidden": "true"
|
|
14049
|
-
},
|
|
14052
|
+
}, Mh = /* @__PURE__ */ v({
|
|
14050
14053
|
__name: "Marquee",
|
|
14051
14054
|
props: {
|
|
14052
14055
|
direction: { default: "right" },
|
|
@@ -14060,7 +14063,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
14060
14063
|
t && (n.value = t.target.scrollWidth / 2);
|
|
14061
14064
|
});
|
|
14062
14065
|
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)`);
|
|
14063
|
-
return (a, o) => (z(), d("div",
|
|
14066
|
+
return (a, o) => (z(), d("div", kh, [f("div", {
|
|
14064
14067
|
ref_key: "trackRef",
|
|
14065
14068
|
ref: t,
|
|
14066
14069
|
class: "marquee-track",
|
|
@@ -14070,9 +14073,9 @@ var zm = /* @__PURE__ */ v({
|
|
|
14070
14073
|
animationTimingFunction: i.value,
|
|
14071
14074
|
visibility: n.value > 0 ? "visible" : "hidden"
|
|
14072
14075
|
})
|
|
14073
|
-
}, [f("div",
|
|
14076
|
+
}, [f("div", Ah, [U(a.$slots, "default")]), f("div", jh, [U(a.$slots, "default")])], 4)]));
|
|
14074
14077
|
}
|
|
14075
|
-
}),
|
|
14078
|
+
}), Nh = { class: "typeset" }, Ph = /* @__PURE__ */ v({
|
|
14076
14079
|
__name: "Confirm",
|
|
14077
14080
|
props: {
|
|
14078
14081
|
title: {},
|
|
@@ -14107,11 +14110,11 @@ var zm = /* @__PURE__ */ v({
|
|
|
14107
14110
|
],
|
|
14108
14111
|
setup(e, { emit: t }) {
|
|
14109
14112
|
let n = e, r = t;
|
|
14110
|
-
return (e, t) => (z(), l(
|
|
14113
|
+
return (e, t) => (z(), l(ef, A(n, {
|
|
14111
14114
|
open: n.open,
|
|
14112
14115
|
onClose: t[2] ||= (e) => r("close")
|
|
14113
14116
|
}), {
|
|
14114
|
-
default: Z(() => [f("div",
|
|
14117
|
+
default: Z(() => [f("div", Nh, [U(e.$slots, "default")])]),
|
|
14115
14118
|
footer: Z(() => [g(ir, { "x-end": "" }, {
|
|
14116
14119
|
default: Z(() => [n.showCancel ? (z(), l(mr, {
|
|
14117
14120
|
key: 0,
|
|
@@ -14132,7 +14135,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
14132
14135
|
_: 3
|
|
14133
14136
|
}, 16, ["open"]));
|
|
14134
14137
|
}
|
|
14135
|
-
}),
|
|
14138
|
+
}), Fh = { class: "vui-otp" }, Ih = ["inputmode", "maxlength"], Lh = { class: "vui-otp-items" }, Rh = /* @__PURE__ */ v({
|
|
14136
14139
|
__name: "OTP",
|
|
14137
14140
|
props: /* @__PURE__ */ k({
|
|
14138
14141
|
mode: { default: "both" },
|
|
@@ -14196,7 +14199,7 @@ var zm = /* @__PURE__ */ v({
|
|
|
14196
14199
|
let n = e.target.value;
|
|
14197
14200
|
n && g(n);
|
|
14198
14201
|
}
|
|
14199
|
-
return (t, n) => (z(), d("div",
|
|
14202
|
+
return (t, n) => (z(), d("div", Fh, [f("input", {
|
|
14200
14203
|
ref: "inputRef",
|
|
14201
14204
|
type: "text",
|
|
14202
14205
|
inputmode: e.mode === "num" ? "numeric" : "text",
|
|
@@ -14211,9 +14214,9 @@ var zm = /* @__PURE__ */ v({
|
|
|
14211
14214
|
onPaste: v,
|
|
14212
14215
|
onBlur: n[0] ||= (e) => i.value = -1,
|
|
14213
14216
|
onFocus: n[1] ||= (e) => i.value = Math.min(r.value.length, l.value - 1)
|
|
14214
|
-
}, null, 40,
|
|
14217
|
+
}, null, 40, Ih), f("div", Lh, [U(t.$slots, "default")])]));
|
|
14215
14218
|
}
|
|
14216
|
-
}),
|
|
14219
|
+
}), zh = /* @__PURE__ */ v({
|
|
14217
14220
|
__name: "OTPItem",
|
|
14218
14221
|
props: { i: {} },
|
|
14219
14222
|
setup(e) {
|
|
@@ -14223,10 +14226,37 @@ var zm = /* @__PURE__ */ v({
|
|
|
14223
14226
|
"has-value": J(r).trim().at(t.i)
|
|
14224
14227
|
}]) }, [o[0] ||= f("div", { class: "blinker" }, null, -1), J(r).trim().at(t.i) ? (z(), d(n, { key: 0 }, [J(a) ? (z(), l(J(Pe), { key: 0 })) : (z(), d(n, { key: 1 }, [h(K(J(r).at(t.i)), 1)], 64))], 64)) : u("", !0)], 2));
|
|
14225
14228
|
}
|
|
14229
|
+
}), Bh = { class: "overflow-track" }, Vh = {
|
|
14230
|
+
ref: "content",
|
|
14231
|
+
class: "overflow-content"
|
|
14232
|
+
}, Hh = /* @__PURE__ */ v({
|
|
14233
|
+
__name: "Overflow",
|
|
14234
|
+
props: {
|
|
14235
|
+
horizontal: { type: Boolean },
|
|
14236
|
+
hideScrollbar: { type: Boolean },
|
|
14237
|
+
hideShadows: { type: Boolean },
|
|
14238
|
+
snap: { type: Boolean }
|
|
14239
|
+
},
|
|
14240
|
+
setup(e) {
|
|
14241
|
+
let t = Y("content"), { x: n, y: r } = gn(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);
|
|
14242
|
+
return (t, n) => (z(), d("div", { class: M(["overflow", {
|
|
14243
|
+
"hide-scrollbar": e.hideScrollbar,
|
|
14244
|
+
"hide-shadows": e.hideShadows,
|
|
14245
|
+
"is-horizontal": e.horizontal,
|
|
14246
|
+
"is-vertical": !e.horizontal,
|
|
14247
|
+
"is-snap": e.snap
|
|
14248
|
+
}]) }, [f("div", Bh, [
|
|
14249
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-left", { visible: i.value }]) }, null, 2),
|
|
14250
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-right", { visible: a.value }]) }, null, 2),
|
|
14251
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-top", { visible: o.value }]) }, null, 2),
|
|
14252
|
+
f("div", { class: M(["overflow-shadow overflow-shadow-bottom", { visible: s.value }]) }, null, 2),
|
|
14253
|
+
f("div", Vh, [U(t.$slots, "default")], 512)
|
|
14254
|
+
])], 2));
|
|
14255
|
+
}
|
|
14226
14256
|
});
|
|
14227
14257
|
//#endregion
|
|
14228
14258
|
//#region src/components/Pagination/pagination.ts
|
|
14229
|
-
function
|
|
14259
|
+
function Uh(e, t = 1, n = 15, r = 5) {
|
|
14230
14260
|
let i = Math.ceil(e / n);
|
|
14231
14261
|
t < 1 ? t = 1 : t > i && (t = i);
|
|
14232
14262
|
let a, o;
|
|
@@ -14250,7 +14280,7 @@ function zh(e, t = 1, n = 15, r = 5) {
|
|
|
14250
14280
|
}
|
|
14251
14281
|
//#endregion
|
|
14252
14282
|
//#region src/components/Tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
14253
|
-
var
|
|
14283
|
+
var Wh = ["aria-describedby"], Gh = /* @__PURE__ */ $d(/* @__PURE__ */ v({
|
|
14254
14284
|
inheritAttrs: !1,
|
|
14255
14285
|
__name: "Tooltip",
|
|
14256
14286
|
props: {
|
|
@@ -14260,7 +14290,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14260
14290
|
disabled: { type: Boolean }
|
|
14261
14291
|
},
|
|
14262
14292
|
setup(e) {
|
|
14263
|
-
let t = le(), r = Y("popoutAnchor"), i = V(!1), a = de(), o = c(() => r.value?.children[0]), s =
|
|
14293
|
+
let t = le(), r = Y("popoutAnchor"), i = V(!1), a = de(), o = c(() => r.value?.children[0]), s = Vd(Rd.Tablet);
|
|
14264
14294
|
function l(t) {
|
|
14265
14295
|
e.disabled || s.value || (i.value = t);
|
|
14266
14296
|
}
|
|
@@ -14270,7 +14300,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14270
14300
|
"aria-describedby": J(a),
|
|
14271
14301
|
onMouseenter: s[0] ||= (e) => l(!0),
|
|
14272
14302
|
onMouseleave: s[1] ||= (e) => l(!1)
|
|
14273
|
-
}, [U(r.$slots, "default", {}, void 0, !0)], 40,
|
|
14303
|
+
}, [U(r.$slots, "default", {}, void 0, !0)], 40, Wh), g(Wm, A({
|
|
14274
14304
|
id: J(a),
|
|
14275
14305
|
visible: i.value,
|
|
14276
14306
|
anchor: o.value,
|
|
@@ -14289,7 +14319,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14289
14319
|
"placement"
|
|
14290
14320
|
])], 64));
|
|
14291
14321
|
}
|
|
14292
|
-
}), [["__scopeId", "data-v-
|
|
14322
|
+
}), [["__scopeId", "data-v-865326ff"]]), Kh = /* @__PURE__ */ v({
|
|
14293
14323
|
__name: "Pagination",
|
|
14294
14324
|
props: {
|
|
14295
14325
|
numbers: {
|
|
@@ -14322,7 +14352,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14322
14352
|
gap: "xxs"
|
|
14323
14353
|
}, {
|
|
14324
14354
|
default: Z(() => [
|
|
14325
|
-
U(e.$slots, "start", {}, () => [r.firstLast ? (z(), l(
|
|
14355
|
+
U(e.$slots, "start", {}, () => [r.firstLast ? (z(), l(Gh, { key: 0 }, {
|
|
14326
14356
|
tooltip: Z(() => [...t[2] ||= [f("p", null, "First page", -1)]]),
|
|
14327
14357
|
default: Z(() => [g(mr, {
|
|
14328
14358
|
plain: "",
|
|
@@ -14338,7 +14368,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14338
14368
|
U(e.$slots, "prev", {
|
|
14339
14369
|
disabled: o.value,
|
|
14340
14370
|
setPage: p
|
|
14341
|
-
}, () => [r.prevNext ? (z(), l(
|
|
14371
|
+
}, () => [r.prevNext ? (z(), l(Gh, { key: 0 }, {
|
|
14342
14372
|
tooltip: Z(() => [...t[3] ||= [f("p", null, "Previous page", -1)]]),
|
|
14343
14373
|
default: Z(() => [g(mr, {
|
|
14344
14374
|
plain: "",
|
|
@@ -14370,7 +14400,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14370
14400
|
U(e.$slots, "next", {
|
|
14371
14401
|
disabled: a.value,
|
|
14372
14402
|
setPage: s
|
|
14373
|
-
}, () => [r.prevNext ? (z(), l(
|
|
14403
|
+
}, () => [r.prevNext ? (z(), l(Gh, { key: 0 }, {
|
|
14374
14404
|
tooltip: Z(() => [...t[4] ||= [f("p", null, "Next page", -1)]]),
|
|
14375
14405
|
default: Z(() => [g(mr, {
|
|
14376
14406
|
plain: "",
|
|
@@ -14383,7 +14413,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14383
14413
|
}, 8, ["disabled"])]),
|
|
14384
14414
|
_: 1
|
|
14385
14415
|
})) : u("", !0)]),
|
|
14386
|
-
U(e.$slots, "end", {}, () => [r.firstLast ? (z(), l(
|
|
14416
|
+
U(e.$slots, "end", {}, () => [r.firstLast ? (z(), l(Gh, { key: 0 }, {
|
|
14387
14417
|
tooltip: Z(() => [...t[5] ||= [f("p", null, "Last page", -1)]]),
|
|
14388
14418
|
default: Z(() => [g(mr, {
|
|
14389
14419
|
plain: "",
|
|
@@ -14400,7 +14430,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14400
14430
|
_: 3
|
|
14401
14431
|
}));
|
|
14402
14432
|
}
|
|
14403
|
-
}),
|
|
14433
|
+
}), qh = ["aria-expanded", "aria-controls"], Jh = /* @__PURE__ */ $d(/* @__PURE__ */ v({
|
|
14404
14434
|
inheritAttrs: !1,
|
|
14405
14435
|
__name: "PopoutHover",
|
|
14406
14436
|
props: {
|
|
@@ -14436,7 +14466,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14436
14466
|
onMouseleave: u[1] ||= (e) => l(!1),
|
|
14437
14467
|
onFocusin: u[2] ||= (e) => l(!0),
|
|
14438
14468
|
onFocusout: c
|
|
14439
|
-
}, [U(a.$slots, "trigger", {}, void 0, !0)], 40,
|
|
14469
|
+
}, [U(a.$slots, "trigger", {}, void 0, !0)], 40, qh), g(Wm, A({
|
|
14440
14470
|
id: J(o),
|
|
14441
14471
|
ref: "popoutRef"
|
|
14442
14472
|
}, {
|
|
@@ -14460,7 +14490,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14460
14490
|
"leave-delay"
|
|
14461
14491
|
])], 64));
|
|
14462
14492
|
}
|
|
14463
|
-
}), [["__scopeId", "data-v-
|
|
14493
|
+
}), [["__scopeId", "data-v-7deb6600"]]), Yh = /* @__PURE__ */ v({
|
|
14464
14494
|
__name: "Progress",
|
|
14465
14495
|
props: /* @__PURE__ */ k({
|
|
14466
14496
|
fake: { type: Boolean },
|
|
@@ -14500,18 +14530,18 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14500
14530
|
})
|
|
14501
14531
|
}, null, 4)], 2));
|
|
14502
14532
|
}
|
|
14503
|
-
}),
|
|
14533
|
+
}), Xh = [
|
|
14504
14534
|
"id",
|
|
14505
14535
|
"value",
|
|
14506
14536
|
"checked",
|
|
14507
14537
|
"disabled"
|
|
14508
|
-
],
|
|
14538
|
+
], Zh = ["for"], Qh = { class: "vui-radio-icon" }, $h = {
|
|
14509
14539
|
key: 0,
|
|
14510
14540
|
class: "vui-radio-content"
|
|
14511
|
-
},
|
|
14541
|
+
}, eg = {
|
|
14512
14542
|
key: 1,
|
|
14513
14543
|
class: "vui-radio-content"
|
|
14514
|
-
},
|
|
14544
|
+
}, tg = /* @__PURE__ */ v({
|
|
14515
14545
|
__name: "Radio",
|
|
14516
14546
|
props: /* @__PURE__ */ k({
|
|
14517
14547
|
label: {},
|
|
@@ -14536,9 +14566,9 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14536
14566
|
value: e.value,
|
|
14537
14567
|
checked: i.value,
|
|
14538
14568
|
disabled: e.disabled
|
|
14539
|
-
}, null, 8,
|
|
14569
|
+
}, null, 8, Xh), [[ge, n.value]]), f("label", { for: J(r) }, [f("span", Qh, [i.value ? (z(), l(J(nt), { key: 1 })) : (z(), l(J(Ke), { key: 0 }))]), t.default ? (z(), d("div", eg, [U(a.$slots, "default")])) : (z(), d("p", $h, K(e.label || e.value), 1))], 8, Zh)], 2));
|
|
14540
14570
|
}
|
|
14541
|
-
}),
|
|
14571
|
+
}), ng = /* @__PURE__ */ v({
|
|
14542
14572
|
__name: "RadioGroup",
|
|
14543
14573
|
props: /* @__PURE__ */ k({
|
|
14544
14574
|
disabled: { type: Boolean },
|
|
@@ -14579,23 +14609,23 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14579
14609
|
_: 1
|
|
14580
14610
|
}, 16)]));
|
|
14581
14611
|
}
|
|
14582
|
-
}),
|
|
14612
|
+
}), rg = { class: "vui-input vui-select-trigger-content" }, ig = ["for"], ag = {
|
|
14583
14613
|
key: 1,
|
|
14584
14614
|
class: "vui-input-hint"
|
|
14585
|
-
},
|
|
14615
|
+
}, og = [
|
|
14586
14616
|
"id",
|
|
14587
14617
|
"disabled",
|
|
14588
14618
|
"onClick"
|
|
14589
|
-
],
|
|
14619
|
+
], sg = {
|
|
14590
14620
|
key: 1,
|
|
14591
14621
|
class: "vue-select-no-results"
|
|
14592
|
-
},
|
|
14622
|
+
}, cg = {
|
|
14593
14623
|
key: 0,
|
|
14594
14624
|
class: "vui-input-limit"
|
|
14595
|
-
},
|
|
14625
|
+
}, lg = {
|
|
14596
14626
|
key: 1,
|
|
14597
14627
|
class: "vui-input-errors"
|
|
14598
|
-
},
|
|
14628
|
+
}, ug = /* @__PURE__ */ v({
|
|
14599
14629
|
__name: "Select",
|
|
14600
14630
|
props: /* @__PURE__ */ k({
|
|
14601
14631
|
single: {
|
|
@@ -14666,7 +14696,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14666
14696
|
}]),
|
|
14667
14697
|
style: P(t.value)
|
|
14668
14698
|
}, [
|
|
14669
|
-
g(
|
|
14699
|
+
g(qm, {
|
|
14670
14700
|
ref: "dropdown",
|
|
14671
14701
|
expand: e.expand,
|
|
14672
14702
|
"max-height": e.maxHeight,
|
|
@@ -14674,12 +14704,12 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14674
14704
|
"no-mobile-drawer": e.noMobileDrawer,
|
|
14675
14705
|
onClose: m[1] ||= (e) => i.value?.focus({ preventScroll: !0 })
|
|
14676
14706
|
}, {
|
|
14677
|
-
trigger: Z(({ toggle: t, isOpen: i }) => [f("div",
|
|
14707
|
+
trigger: Z(({ toggle: t, isOpen: i }) => [f("div", rg, [
|
|
14678
14708
|
e.label ? (z(), d("label", {
|
|
14679
14709
|
key: 0,
|
|
14680
14710
|
for: J(v)
|
|
14681
|
-
}, K(e.label), 9,
|
|
14682
|
-
e.hint ? (z(), d("p",
|
|
14711
|
+
}, K(e.label), 9, ig)) : u("", !0),
|
|
14712
|
+
e.hint ? (z(), d("p", ag, K(e.hint), 1)) : u("", !0),
|
|
14683
14713
|
f("button", {
|
|
14684
14714
|
id: J(v),
|
|
14685
14715
|
ref: "trigger",
|
|
@@ -14698,14 +14728,14 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14698
14728
|
_: 1
|
|
14699
14729
|
})], 64)) : u("", !0),
|
|
14700
14730
|
i ? (z(), l(J(Ve), { key: 1 })) : (z(), l(J(Re), { key: 2 }))
|
|
14701
|
-
], 10,
|
|
14731
|
+
], 10, og)
|
|
14702
14732
|
])]),
|
|
14703
14733
|
default: Z(({ close: t, isOpen: i }) => [
|
|
14704
|
-
e.search ? (z(), l(
|
|
14734
|
+
e.search ? (z(), l(th, {
|
|
14705
14735
|
key: 0,
|
|
14706
14736
|
sticky: ""
|
|
14707
14737
|
}, {
|
|
14708
|
-
default: Z(() => [g(
|
|
14738
|
+
default: Z(() => [g(uh, {
|
|
14709
14739
|
modelValue: o.value,
|
|
14710
14740
|
"onUpdate:modelValue": m[0] ||= (e) => o.value = e,
|
|
14711
14741
|
placeholder: "Search...",
|
|
@@ -14717,8 +14747,8 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14717
14747
|
}, 8, ["modelValue", "focus"])]),
|
|
14718
14748
|
_: 2
|
|
14719
14749
|
}, 1024)) : u("", !0),
|
|
14720
|
-
s.value.length === 0 ? (z(), d("p",
|
|
14721
|
-
(z(!0), d(n, null, H(s.value, (n) => (z(), l(
|
|
14750
|
+
s.value.length === 0 ? (z(), d("p", sg, " No results... ")) : u("", !0),
|
|
14751
|
+
(z(!0), d(n, null, H(s.value, (n) => (z(), l($m, {
|
|
14722
14752
|
key: n.value,
|
|
14723
14753
|
class: M({ selected: r.value?.find((e) => e.value === n.value) }),
|
|
14724
14754
|
onClick: () => {
|
|
@@ -14736,14 +14766,14 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14736
14766
|
"transition-name",
|
|
14737
14767
|
"no-mobile-drawer"
|
|
14738
14768
|
]),
|
|
14739
|
-
e.maxActiveOptions && !e.single ? (z(), d("p",
|
|
14740
|
-
e.errors.length > 0 ? (z(), d("ul",
|
|
14769
|
+
e.maxActiveOptions && !e.single ? (z(), d("p", cg, K(`${r.value ? r.value.length : 0}/${e.maxActiveOptions}`), 1)) : u("", !0),
|
|
14770
|
+
e.errors.length > 0 ? (z(), d("ul", lg, [(z(!0), d(n, null, H(e.errors, (e) => (z(), d("li", { key: e }, K(e), 1))), 128))])) : u("", !0)
|
|
14741
14771
|
], 6));
|
|
14742
14772
|
}
|
|
14743
|
-
}),
|
|
14773
|
+
}), dg = {
|
|
14744
14774
|
key: 0,
|
|
14745
14775
|
class: "vui-sheet-shell"
|
|
14746
|
-
},
|
|
14776
|
+
}, fg = 16, pg = /* @__PURE__ */ $d(/* @__PURE__ */ v({
|
|
14747
14777
|
inheritAttrs: !1,
|
|
14748
14778
|
__name: "Sheet",
|
|
14749
14779
|
props: {
|
|
@@ -14766,7 +14796,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14766
14796
|
},
|
|
14767
14797
|
emits: ["close"],
|
|
14768
14798
|
setup(e, { emit: t }) {
|
|
14769
|
-
ue((e) => ({
|
|
14799
|
+
ue((e) => ({ v3d601362: h.value }));
|
|
14770
14800
|
let n = t, a = le(), o = V(e.open);
|
|
14771
14801
|
function s() {
|
|
14772
14802
|
e.canDismiss && n("close");
|
|
@@ -14781,13 +14811,13 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14781
14811
|
if (e.position === "left" || e.position === "right") return { maxWidth: Jn(e.size) };
|
|
14782
14812
|
}), h = c(() => {
|
|
14783
14813
|
switch (e.position) {
|
|
14784
|
-
case "left": return `translate(-${
|
|
14785
|
-
case "top": return `translate(0, -${
|
|
14786
|
-
case "bottom": return `translate(0, ${
|
|
14787
|
-
default: return `translate(${
|
|
14814
|
+
case "left": return `translate(-${fg}px, 0)`;
|
|
14815
|
+
case "top": return `translate(0, -${fg}px)`;
|
|
14816
|
+
case "bottom": return `translate(0, ${fg}px)`;
|
|
14817
|
+
default: return `translate(${fg}px, 0)`;
|
|
14788
14818
|
}
|
|
14789
14819
|
});
|
|
14790
|
-
return (t, c) => (z(), l(r, { to: "body" }, [o.value ? (z(), l(
|
|
14820
|
+
return (t, c) => (z(), l(r, { to: "body" }, [o.value ? (z(), l(Zd, {
|
|
14791
14821
|
key: 0,
|
|
14792
14822
|
onClose: s
|
|
14793
14823
|
}, {
|
|
@@ -14797,7 +14827,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14797
14827
|
css: e.transitionName !== "none",
|
|
14798
14828
|
onAfterLeave: f
|
|
14799
14829
|
}, {
|
|
14800
|
-
default: Z(() => [e.open ? (z(), d("div",
|
|
14830
|
+
default: Z(() => [e.open ? (z(), d("div", dg, [g(kd, A({
|
|
14801
14831
|
class: ["vui-sheet", [`vui-sheet-position-${e.position}`]],
|
|
14802
14832
|
style: p.value
|
|
14803
14833
|
}, {
|
|
@@ -14836,13 +14866,13 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14836
14866
|
_: 3
|
|
14837
14867
|
})) : u("", !0)]));
|
|
14838
14868
|
}
|
|
14839
|
-
}), [["__scopeId", "data-v-
|
|
14869
|
+
}), [["__scopeId", "data-v-d0fc93ff"]]), mg = {
|
|
14840
14870
|
key: 0,
|
|
14841
14871
|
class: "vui-sidebar-header"
|
|
14842
|
-
},
|
|
14872
|
+
}, hg = { class: "vui-sidebar-content" }, gg = { class: "vui-sidebar-content-wrap" }, _g = {
|
|
14843
14873
|
key: 1,
|
|
14844
14874
|
class: "vui-sidebar-footer"
|
|
14845
|
-
},
|
|
14875
|
+
}, vg = 32, yg = /* @__PURE__ */ v({
|
|
14846
14876
|
__name: "Sidebar",
|
|
14847
14877
|
props: /* @__PURE__ */ k({
|
|
14848
14878
|
width: { default: 224 },
|
|
@@ -14873,7 +14903,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14873
14903
|
return F(() => {
|
|
14874
14904
|
t.appear && r.value && (r.value = !1);
|
|
14875
14905
|
}), Rt(h, (e) => {
|
|
14876
|
-
!t.appear || e <=
|
|
14906
|
+
!t.appear || e <= vg && e >= 0 && m.value || (e <= vg && e >= 0 && !r.value && !m.value ? l() : m.value && p(), (e > vg + (t.mini ? 65 : t.floaty ? t.width : t.width - (Vn(a.value) ? 0 : Number(a.value?.replace("px", "")))) || e < 0) && r.value && (r.value = !1));
|
|
14877
14907
|
}, {
|
|
14878
14908
|
throttle: 100,
|
|
14879
14909
|
immediate: !0
|
|
@@ -14890,21 +14920,21 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14890
14920
|
}]),
|
|
14891
14921
|
style: P({ width: `${t.mini ? 65 : t.width}px` })
|
|
14892
14922
|
}, [
|
|
14893
|
-
J(i).header ? (z(), d("div",
|
|
14894
|
-
f("div",
|
|
14895
|
-
J(i).footer ? (z(), d("div",
|
|
14923
|
+
J(i).header ? (z(), d("div", mg, [U(e.$slots, "header", N(S(s.value)))])) : u("", !0),
|
|
14924
|
+
f("div", hg, [f("div", gg, [U(e.$slots, "default", N(S(s.value)))])]),
|
|
14925
|
+
J(i).footer ? (z(), d("div", _g, [U(e.$slots, "footer", N(S(s.value)))])) : u("", !0)
|
|
14896
14926
|
], 6)], 6));
|
|
14897
14927
|
}
|
|
14898
|
-
}),
|
|
14928
|
+
}), bg = "var(--border-radius-s)", xg = /* @__PURE__ */ v({
|
|
14899
14929
|
__name: "Skeleton",
|
|
14900
14930
|
props: {
|
|
14901
|
-
radius: { default: () =>
|
|
14931
|
+
radius: { default: () => bg },
|
|
14902
14932
|
width: { default: "100%" },
|
|
14903
14933
|
height: { default: "32px" },
|
|
14904
14934
|
circle: { type: Boolean }
|
|
14905
14935
|
},
|
|
14906
14936
|
setup(e) {
|
|
14907
|
-
let t = c(() => Jn(e.circle && e.radius ===
|
|
14937
|
+
let t = c(() => Jn(e.circle && e.radius === bg ? 9999 : e.radius)), n = c(() => Jn(e.circle ? e.width || e.height : e.width)), r = c(() => Jn(e.circle && e.width || e.height));
|
|
14908
14938
|
return (e, i) => (z(), d("div", {
|
|
14909
14939
|
class: "vui-skeleton",
|
|
14910
14940
|
style: P({
|
|
@@ -14914,16 +14944,16 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14914
14944
|
})
|
|
14915
14945
|
}, null, 4));
|
|
14916
14946
|
}
|
|
14917
|
-
}),
|
|
14947
|
+
}), Sg = ["id", "disabled"], Cg = ["for"], wg = { class: "w-100" }, Tg = {
|
|
14918
14948
|
key: 0,
|
|
14919
14949
|
class: "vui-switch-content"
|
|
14920
|
-
},
|
|
14950
|
+
}, Eg = {
|
|
14921
14951
|
key: 1,
|
|
14922
14952
|
class: "vui-switch-content"
|
|
14923
|
-
},
|
|
14953
|
+
}, Dg = {
|
|
14924
14954
|
key: 2,
|
|
14925
14955
|
class: "vui-hint mt-xxs block"
|
|
14926
|
-
},
|
|
14956
|
+
}, Og = /* @__PURE__ */ v({
|
|
14927
14957
|
__name: "Switch",
|
|
14928
14958
|
props: /* @__PURE__ */ k({
|
|
14929
14959
|
label: {},
|
|
@@ -14948,22 +14978,22 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14948
14978
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
14949
14979
|
type: "checkbox",
|
|
14950
14980
|
disabled: e.disabled
|
|
14951
|
-
}, null, 8,
|
|
14981
|
+
}, null, 8, Sg), [[me, n.value]]), f("label", { for: J(r) }, [a[1] ||= f("div", { class: "vui-switch-icon" }, [f("span", { class: "vui-switch-indicator" })], -1), f("div", wg, [!t.default && e.label ? (z(), d("p", Tg, K(e.label), 1)) : (z(), d("div", Eg, [U(i.$slots, "default")])), e.hint ? (z(), d("p", Dg, K(e.hint), 1)) : u("", !0)])], 8, Cg)], 2));
|
|
14952
14982
|
}
|
|
14953
|
-
}),
|
|
14983
|
+
}), kg = {
|
|
14954
14984
|
key: 0,
|
|
14955
14985
|
ref: "context",
|
|
14956
14986
|
class: "vui-cell-context"
|
|
14957
|
-
},
|
|
14987
|
+
}, Ag = /* @__PURE__ */ v({
|
|
14958
14988
|
__name: "Cell",
|
|
14959
14989
|
setup(e) {
|
|
14960
14990
|
let t = pe(), n = Y("context"), r = c(() => !t.context || !window ? {} : { paddingRight: `${n.value?.getBoundingClientRect().width ?? 0}px` });
|
|
14961
|
-
return (e, t) => (z(), d("td", { style: P(r.value) }, [U(e.$slots, "default"), e.$slots.context ? (z(), d("div",
|
|
14991
|
+
return (e, t) => (z(), d("td", { style: P(r.value) }, [U(e.$slots, "default"), e.$slots.context ? (z(), d("div", kg, [U(e.$slots, "context")], 512)) : u("", !0)], 4));
|
|
14962
14992
|
}
|
|
14963
|
-
}),
|
|
14993
|
+
}), jg = {
|
|
14964
14994
|
key: 0,
|
|
14965
14995
|
class: "vui-table-th-content"
|
|
14966
|
-
},
|
|
14996
|
+
}, Mg = /* @__PURE__ */ v({
|
|
14967
14997
|
__name: "Head",
|
|
14968
14998
|
props: {
|
|
14969
14999
|
header: {},
|
|
@@ -14986,7 +15016,7 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
14986
15016
|
};
|
|
14987
15017
|
}
|
|
14988
15018
|
});
|
|
14989
|
-
return (e, r) => (z(), d("th", null, [t.header || e.$slots.default ? (z(), d("div",
|
|
15019
|
+
return (e, r) => (z(), d("th", null, [t.header || e.$slots.default ? (z(), d("div", jg, [U(e.$slots, "default", {}, () => [h(K(t.header?.label), 1)]), t.sort && t.header ? (z(), l(Gh, {
|
|
14990
15020
|
key: 0,
|
|
14991
15021
|
placement: "top"
|
|
14992
15022
|
}, {
|
|
@@ -15005,8 +15035,8 @@ var Bh = ["aria-describedby"], Vh = /* @__PURE__ */ Qd(/* @__PURE__ */ v({
|
|
|
15005
15035
|
_: 1
|
|
15006
15036
|
})) : u("", !0)])) : u("", !0)]));
|
|
15007
15037
|
}
|
|
15008
|
-
}),
|
|
15009
|
-
function
|
|
15038
|
+
}), Ng = Symbol("select-row-provide");
|
|
15039
|
+
function Pg(e, t) {
|
|
15010
15040
|
let n = c(() => q(e)), r = V({
|
|
15011
15041
|
pagination: {
|
|
15012
15042
|
enabled: !1,
|
|
@@ -15015,7 +15045,7 @@ function Ag(e, t) {
|
|
|
15015
15045
|
},
|
|
15016
15046
|
select: !1,
|
|
15017
15047
|
...t
|
|
15018
|
-
}), i = V(1), a = c(() =>
|
|
15048
|
+
}), i = V(1), a = c(() => Uh(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) => {
|
|
15019
15049
|
(e > i.value && o.value || e < i.value && s.value) && (i.value = e);
|
|
15020
15050
|
}, u = V({
|
|
15021
15051
|
key: void 0,
|
|
@@ -15055,14 +15085,12 @@ function Ag(e, t) {
|
|
|
15055
15085
|
}
|
|
15056
15086
|
let b = c(() => n.value.length === _.value.size);
|
|
15057
15087
|
function x() {
|
|
15058
|
-
|
|
15059
|
-
else {
|
|
15060
|
-
let e = /* @__PURE__ */ new Set();
|
|
15061
|
-
for (let t of n.value) e.add(t);
|
|
15062
|
-
_.value = new Set(e);
|
|
15063
|
-
}
|
|
15088
|
+
b.value ? _.value = /* @__PURE__ */ new Set() : _.value = new Set(...n.value);
|
|
15064
15089
|
}
|
|
15065
|
-
|
|
15090
|
+
function S() {
|
|
15091
|
+
_.value = /* @__PURE__ */ new Set();
|
|
15092
|
+
}
|
|
15093
|
+
return ne(Ng, {
|
|
15066
15094
|
selectedRows: _,
|
|
15067
15095
|
selectRow: y,
|
|
15068
15096
|
selectAllRows: x,
|
|
@@ -15083,15 +15111,16 @@ function Ag(e, t) {
|
|
|
15083
15111
|
options: r,
|
|
15084
15112
|
selectRow: y,
|
|
15085
15113
|
selectAllRows: x,
|
|
15086
|
-
isSelectedAll: b
|
|
15114
|
+
isSelectedAll: b,
|
|
15115
|
+
deselectAllRows: S
|
|
15087
15116
|
};
|
|
15088
15117
|
}
|
|
15089
15118
|
//#endregion
|
|
15090
15119
|
//#region src/components/Table/Root.vue?vue&type=script&setup=true&lang.ts
|
|
15091
|
-
var
|
|
15120
|
+
var Fg = { key: 0 }, Ig = {
|
|
15092
15121
|
key: 0,
|
|
15093
15122
|
class: "vui-table-pagination-wrap"
|
|
15094
|
-
},
|
|
15123
|
+
}, Lg = /* @__PURE__ */ v({
|
|
15095
15124
|
__name: "Root",
|
|
15096
15125
|
props: {
|
|
15097
15126
|
fixed: { type: Boolean },
|
|
@@ -15110,7 +15139,7 @@ var jg = { key: 0 }, Mg = {
|
|
|
15110
15139
|
}
|
|
15111
15140
|
},
|
|
15112
15141
|
setup(e) {
|
|
15113
|
-
let t = T(
|
|
15142
|
+
let t = T(Ng);
|
|
15114
15143
|
return (n, r) => (z(), d("div", { class: M(["vui-table-container", {
|
|
15115
15144
|
fixed: e.fixed,
|
|
15116
15145
|
nowrap: e.nowrap,
|
|
@@ -15118,12 +15147,12 @@ var jg = { key: 0 }, Mg = {
|
|
|
15118
15147
|
"separated-rows": e.separateRows,
|
|
15119
15148
|
"separated-cells": e.separateCells,
|
|
15120
15149
|
"outer-border": e.outerBorder
|
|
15121
|
-
}]) }, [f("table", null, [n.$slots.header ? (z(), d("thead",
|
|
15150
|
+
}]) }, [f("table", null, [n.$slots.header ? (z(), d("thead", Fg, [f("tr", null, [U(n.$slots, "header")])])) : u("", !0), f("tbody", null, [U(n.$slots, "body")])]), n.$slots.pagination ? (z(), d("div", Ig, [U(n.$slots, "pagination")])) : u("", !0)], 2));
|
|
15122
15151
|
}
|
|
15123
|
-
}),
|
|
15152
|
+
}), Rg = /* @__PURE__ */ v({
|
|
15124
15153
|
__name: "SelectAll",
|
|
15125
15154
|
setup(e) {
|
|
15126
|
-
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(
|
|
15155
|
+
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(Ng);
|
|
15127
15156
|
return (e, i) => J(n) ? (z(), d("th", {
|
|
15128
15157
|
key: 0,
|
|
15129
15158
|
class: M(["vui-table-interactive-cell", { selected: J(t) }])
|
|
@@ -15136,11 +15165,11 @@ var jg = { key: 0 }, Mg = {
|
|
|
15136
15165
|
_: 1
|
|
15137
15166
|
})], 2)) : u("", !0);
|
|
15138
15167
|
}
|
|
15139
|
-
}),
|
|
15168
|
+
}), zg = /* @__PURE__ */ v({
|
|
15140
15169
|
__name: "SelectRow",
|
|
15141
15170
|
props: { row: {} },
|
|
15142
15171
|
setup(e) {
|
|
15143
|
-
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(
|
|
15172
|
+
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(Ng), a = c(() => Xn(i.value, t.row));
|
|
15144
15173
|
return (e, i) => J(n) ? (z(), d("td", {
|
|
15145
15174
|
key: 0,
|
|
15146
15175
|
class: M(["vui-table-interactive-cell", { selected: a.value }])
|
|
@@ -15153,13 +15182,13 @@ var jg = { key: 0 }, Mg = {
|
|
|
15153
15182
|
_: 1
|
|
15154
15183
|
})], 2)) : u("", !0);
|
|
15155
15184
|
}
|
|
15156
|
-
}),
|
|
15157
|
-
Cell: () =>
|
|
15158
|
-
Head: () =>
|
|
15159
|
-
Root: () =>
|
|
15160
|
-
SelectAll: () =>
|
|
15161
|
-
SelectRow: () =>
|
|
15162
|
-
}),
|
|
15185
|
+
}), Bg = /* @__PURE__ */ Oe({
|
|
15186
|
+
Cell: () => Ag,
|
|
15187
|
+
Head: () => Mg,
|
|
15188
|
+
Root: () => Lg,
|
|
15189
|
+
SelectAll: () => Rg,
|
|
15190
|
+
SelectRow: () => zg
|
|
15191
|
+
}), Vg = ["name"], Hg = /* @__PURE__ */ v({
|
|
15163
15192
|
__name: "Tab",
|
|
15164
15193
|
props: {
|
|
15165
15194
|
disabled: { type: Boolean },
|
|
@@ -15171,16 +15200,16 @@ var jg = { key: 0 }, Mg = {
|
|
|
15171
15200
|
class: M(["vui-tab", { disabled: t.disabled }]),
|
|
15172
15201
|
role: "tab",
|
|
15173
15202
|
name: e.value
|
|
15174
|
-
}, [U(n.$slots, "default", {}, () => [h(K(t.value), 1)])], 10,
|
|
15203
|
+
}, [U(n.$slots, "default", {}, () => [h(K(t.value), 1)])], 10, Vg));
|
|
15175
15204
|
}
|
|
15176
|
-
}),
|
|
15205
|
+
}), Ug = {
|
|
15177
15206
|
key: 0,
|
|
15178
15207
|
class: "flex-1"
|
|
15179
|
-
},
|
|
15208
|
+
}, Wg = {
|
|
15180
15209
|
key: 0,
|
|
15181
15210
|
ref: "underline",
|
|
15182
15211
|
class: "vui-tab-underline"
|
|
15183
|
-
},
|
|
15212
|
+
}, Gg = /* @__PURE__ */ v({
|
|
15184
15213
|
__name: "Tabs",
|
|
15185
15214
|
props: /* @__PURE__ */ k({
|
|
15186
15215
|
variant: { default: "default" },
|
|
@@ -15224,25 +15253,25 @@ var jg = { key: 0 }, Mg = {
|
|
|
15224
15253
|
class: M({ active: e.props.value === r.value }),
|
|
15225
15254
|
onClick: (t) => r.value = e.props.value
|
|
15226
15255
|
}, null, 8, ["class", "onClick"]))), 128)),
|
|
15227
|
-
t.$slots.end ? (z(), d(n, { key: 0 }, [e.expand ? u("", !0) : (z(), d("div",
|
|
15256
|
+
t.$slots.end ? (z(), d(n, { key: 0 }, [e.expand ? u("", !0) : (z(), d("div", Ug)), U(t.$slots, "end")], 64)) : u("", !0),
|
|
15228
15257
|
g(i, {
|
|
15229
15258
|
name: e.transitionName === "none" ? void 0 : e.transitionName,
|
|
15230
15259
|
css: e.transitionName !== "none",
|
|
15231
15260
|
appear: ""
|
|
15232
15261
|
}, {
|
|
15233
|
-
default: Z(() => [r.value ? (z(), d("div",
|
|
15262
|
+
default: Z(() => [r.value ? (z(), d("div", Wg, null, 512)) : u("", !0)]),
|
|
15234
15263
|
_: 1
|
|
15235
15264
|
}, 8, ["name", "css"])
|
|
15236
15265
|
], 2));
|
|
15237
15266
|
}
|
|
15238
|
-
}),
|
|
15239
|
-
function
|
|
15267
|
+
}), Kg = V(/* @__PURE__ */ new Map()), qg = 0;
|
|
15268
|
+
function Jg(e, t) {
|
|
15240
15269
|
let n = {
|
|
15241
15270
|
persist: !1,
|
|
15242
15271
|
timeout: 7e3,
|
|
15243
15272
|
...t
|
|
15244
15273
|
}, r = {
|
|
15245
|
-
id:
|
|
15274
|
+
id: qg,
|
|
15246
15275
|
title: e,
|
|
15247
15276
|
persist: n.persist,
|
|
15248
15277
|
description: n.description,
|
|
@@ -15252,19 +15281,19 @@ function Wg(e, t) {
|
|
|
15252
15281
|
body: n.body,
|
|
15253
15282
|
bodyProps: n.bodyProps ?? {}
|
|
15254
15283
|
};
|
|
15255
|
-
return
|
|
15256
|
-
|
|
15257
|
-
}, n.timeout,
|
|
15284
|
+
return Kg.value.set(qg, r), n.persist || setTimeout((e) => {
|
|
15285
|
+
Kg.value.delete(e);
|
|
15286
|
+
}, n.timeout, qg), qg++, r;
|
|
15258
15287
|
}
|
|
15259
|
-
function
|
|
15260
|
-
|
|
15288
|
+
function Yg(e) {
|
|
15289
|
+
Kg.value.delete(e);
|
|
15261
15290
|
}
|
|
15262
15291
|
//#endregion
|
|
15263
15292
|
//#region src/components/Toast/Toasts.vue?vue&type=script&setup=true&lang.ts
|
|
15264
|
-
var
|
|
15293
|
+
var Xg = {
|
|
15265
15294
|
key: 1,
|
|
15266
15295
|
class: "vui-toast-item"
|
|
15267
|
-
},
|
|
15296
|
+
}, Zg = { class: "vui-toast-item-content" }, Qg = { key: 0 }, $g = /* @__PURE__ */ $d(/* @__PURE__ */ v({
|
|
15268
15297
|
__name: "Toasts",
|
|
15269
15298
|
props: { placement: { default: "bottom-end" } },
|
|
15270
15299
|
setup(e) {
|
|
@@ -15273,13 +15302,13 @@ var Kg = {
|
|
|
15273
15302
|
tag: "ul",
|
|
15274
15303
|
class: "vui-toast-list"
|
|
15275
15304
|
}, {
|
|
15276
|
-
default: Z(() => [(z(!0), d(n, null, H(J(
|
|
15305
|
+
default: Z(() => [(z(!0), d(n, null, H(J(Kg), ([e, t]) => (z(), d(n, { key: e }, [t.body ? (z(), l(W(t.body), A({
|
|
15277
15306
|
key: 0,
|
|
15278
15307
|
ref_for: !0
|
|
15279
15308
|
}, {
|
|
15280
15309
|
data: t.bodyProps,
|
|
15281
15310
|
toastId: e
|
|
15282
|
-
}), null, 16)) : (z(), d("li",
|
|
15311
|
+
}), null, 16)) : (z(), d("li", Xg, [f("div", Zg, [f("strong", null, K(t.title), 1), t.description ? (z(), d("p", Qg, K(t.description), 1)) : u("", !0)]), t.action ? (z(), l(mr, {
|
|
15283
15312
|
key: 0,
|
|
15284
15313
|
size: "s",
|
|
15285
15314
|
onClick: (e) => t.action.handler(t.id)
|
|
@@ -15290,10 +15319,10 @@ var Kg = {
|
|
|
15290
15319
|
_: 1
|
|
15291
15320
|
})], 2)]));
|
|
15292
15321
|
}
|
|
15293
|
-
}), [["__scopeId", "data-v-
|
|
15322
|
+
}), [["__scopeId", "data-v-a0ee459a"]]);
|
|
15294
15323
|
//#endregion
|
|
15295
15324
|
//#region src/shared/viewTransition.ts
|
|
15296
|
-
function
|
|
15325
|
+
function e_() {
|
|
15297
15326
|
let e = V(!1);
|
|
15298
15327
|
async function t(t) {
|
|
15299
15328
|
if (!document.startViewTransition) {
|
|
@@ -15316,4 +15345,4 @@ function Xg() {
|
|
|
15316
15345
|
};
|
|
15317
15346
|
}
|
|
15318
15347
|
//#endregion
|
|
15319
|
-
export { En as Accordion, jn as AccordionGroup, In as Alert, rr as Avatar, ar as AvatarGroup,
|
|
15348
|
+
export { En as Accordion, jn as AccordionGroup, In as Alert, rr as Avatar, ar as AvatarGroup, Zd as Backdrop, sr as Badge, cr as BadgeGroup, lr as BreadcrumbItem, fr as Breadcrumbs, mr as Button, hr as ButtonGroup, Sd as Calendar, kd as Card, Md as Carousel, Ld as Checkbox, mh as Color, gf as Commands, Ph as Confirm, _f as CopyClipboard, hh as Counter, wd as Divider, Um as Drawer, qm as Dropdown, $m as DropdownItem, th as DropdownTitle, vh as Dropzone, yh as File, ir as Flex, nh as Grid, rh as Indicator, uh as Input, Hd as Kbd, Oh as KbdGroup, Mh as Marquee, ef as Modal, Rh as OTP, zh as OTPItem, Hh as Overflow, Kh as Pagination, bh as Password, Wm as Popout, Jh as PopoutHover, Yh as Progress, tg as Radio, ng as RadioGroup, ug as Select, pg as Sheet, yg as Sidebar, xg as Skeleton, pr as Spinner, Og as Switch, Hg as Tab, Bg as Table, Gg as Tabs, Dh as Textarea, $g as Toasts, Gh as Tooltip, Pg as defineTable, Uh as paginate, Jg as pushToast, Yg as removeToast, zn as searchString, xd as setColorTheme, bd as theme, Vd as useBreakpoint, e_ as useViewTransition, zd as vuiBreakpoints };
|