@bobbykim/manguito-theme 0.28.3 → 1.0.1
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/CHANGELOG.md +72 -0
- package/README.md +175 -1
- package/dist/composable.cjs +1 -1
- package/dist/composable.d.ts +12 -0
- package/dist/composable.js +5 -2
- package/dist/core.cjs +4 -2
- package/dist/core.d.ts +328 -144
- package/dist/core.js +1789 -630
- package/dist/directives.cjs +1 -1
- package/dist/directives.d.ts +27 -24
- package/dist/directives.js +55 -57
- package/dist/{getGlassmorphismClass-CKSrH9Jg.cjs → getGlassmorphismClass-CVLAjoa8.cjs} +1 -1
- package/dist/{getGlassmorphismClass-C-7frTJB.js → getGlassmorphismClass-MdsD9yII.js} +2 -2
- package/dist/index-CYEzkRix.js +703 -0
- package/dist/index-CaGu958U.js +1175 -0
- package/dist/index-D9hDl4no.cjs +2 -0
- package/dist/index-DPCdWvOi.cjs +1 -0
- package/dist/mcl-theme-v4.css +11 -44
- package/dist/useModalScrollLock-BbvxlEaZ.cjs +1 -0
- package/dist/useModalScrollLock-CPlcveJr.js +58 -0
- package/dist/util.cjs +1 -1
- package/dist/util.js +1 -1
- package/package.json +13 -7
- package/dist/index-CU3f0thH.cjs +0 -1
- package/dist/index-DHpsV8uC.js +0 -95
- package/dist/index-DoK_iF2I.js +0 -1368
- package/dist/index-M2bUcfcK.cjs +0 -1
- package/dist/observeVisible-CPssysCl.cjs +0 -1
- package/dist/observeVisible-CnnM-J1f.js +0 -19
package/dist/core.js
CHANGED
|
@@ -1,11 +1,141 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-
|
|
2
|
-
import {
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import {
|
|
5
|
-
import { o as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-e9caba8a]{transition:all .5s linear}.slide-prev-leave-active[data-v-e9caba8a]{transition:all .5s}.slide-prev-enter-from[data-v-e9caba8a]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-e9caba8a]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-e9caba8a]{transition:all .5s linear}.slide-next-leave-active[data-v-e9caba8a]{transition:all .5s}.slide-next-enter-from[data-v-e9caba8a]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-e9caba8a]{transform:translate(-100%);opacity:0}.collapse-enter-active[data-v-6576e563],.collapse-leave-active[data-v-6576e563]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-0cb1bffb]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-0cb1bffb],.dropdown-content-leave-active[data-v-0cb1bffb]{transition:all .3s}.dropdown-content-enter-from[data-v-0cb1bffb],.dropdown-content-leave-to[data-v-0cb1bffb]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-b0ec6d90]:before,.hamburger__icon[data-v-b0ec6d90]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-b0ec6d90]:before{top:-.5rem}.hamburger__icon[data-v-b0ec6d90]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-b0ec6d90],.hamburger__button:hover .hamburger__icon[data-v-b0ec6d90]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-b0ec6d90]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-2ba87e4a]{transition:height .5s ease-in}.collapse-leave-active[data-v-2ba87e4a]{transition:height .5s ease-out}.header-desktop[data-v-91814bc1]{width:100%}@media screen and (min-width:1024px){.header-desktop[data-v-91814bc1]{width:var(--header-width)}}.slide-down-enter-active[data-v-91814bc1]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-91814bc1]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-91814bc1],.slide-down-leave-to[data-v-91814bc1]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-c65cb87e]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-c65cb87e],.fade-leave-active[data-v-c65cb87e]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-c65cb87e],.fade-leave-to[data-v-c65cb87e]{opacity:0}.slide-down-enter-active[data-v-c65cb87e]{animation:slide-down-c65cb87e .3s ease}.slide-down-leave-active[data-v-c65cb87e]{animation:slide-down-c65cb87e reverse .3s ease}@keyframes slide-down-c65cb87e{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-77b578df]{width:100%}.sidebar-body-height[data-v-77b578df]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-77b578df],.fade-leave-active[data-v-77b578df]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-77b578df],.fade-leave-to[data-v-77b578df]{opacity:0}.sidebar-left-enter-active[data-v-77b578df],.sidebar-left-leave-active[data-v-77b578df],.sidebar-right-enter-active[data-v-77b578df],.sidebar-right-leave-active[data-v-77b578df]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-77b578df],.sidebar-left-leave-to[data-v-77b578df]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-77b578df],.sidebar-right-leave-to[data-v-77b578df]{transform:translate(100%)}@media screen and (min-width:768px){.sidebar-body[data-v-77b578df]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-77b578df],.sidebar-left-leave-to[data-v-77b578df]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-77b578df],.sidebar-right-leave-to[data-v-77b578df]{transform:translate(var(--sidebar-width))}}.container-hts[data-v-553ab4ac]{max-height:var(--container-hts)}.slide-prev-enter-active[data-v-553ab4ac]{transition:all .5s linear}.slide-prev-leave-active[data-v-553ab4ac]{transition:all .5s}.slide-prev-enter-from[data-v-553ab4ac]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-553ab4ac]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-553ab4ac]{transition:all .5s linear}.slide-next-leave-active[data-v-553ab4ac]{transition:all .5s}.slide-next-enter-from[data-v-553ab4ac]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-553ab4ac]{transform:translate(-100%);opacity:0}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { a as nt, p as it, b as st, c as lt, d as ct, e as ut, f as dt, h as ft, m as vt, i as bt, j as ht, k as pt, l as gt, n as mt, o as yt, q as wt, r as Ct, s as kt, t as Tt, u as St, v as xt, w as Rt, x as Et, y as Nt, z as Ot, A as Bt, B as At, C as Vt, D as It, E as Dt, F as Ft, G as Lt, H as $t, I as Pt, J as jt, K as _t, L as Gt, M as Ht, N as Mt, O as Wt, P as zt, Q as Kt, R as Xt, S as Yt, T as Ut, U as qt, V as Zt, W as Jt, X as Qt, Y as ea, Z as ta, _ as aa, $ as ra, a0 as oa, a1 as na, a2 as ia, a3 as sa, a4 as la, a5 as ca, g as A } from "./index-CaGu958U.js";
|
|
3
|
+
import { defineComponent as Y, openBlock as p, createElementBlock as y, renderSlot as V, useSlots as Z, ref as D, computed as _, watch as Q, normalizeClass as S, createElementVNode as E, createCommentVNode as O, toDisplayString as he, provide as Be, createVNode as ee, Transition as te, withCtx as J, inject as Ae, withDirectives as de, vShow as Ve, useId as Ie, toRef as ua, unref as I, onMounted as We, withKeys as da, createBlock as Se, normalizeStyle as ge, vModelCheckbox as fa, Teleport as va, shallowRef as Fe, toValue as Le } from "vue";
|
|
4
|
+
import { useWindowSize as ba, useWindowScroll as ha, useScrollLock as pa, toArray as ga, unrefElement as ma, tryOnScopeDispose as ya, useElementSize as wa } from "@vueuse/core";
|
|
5
|
+
import { p as Ca, u as ka, o as ze, a as Ke } from "./useModalScrollLock-CPlcveJr.js";
|
|
6
|
+
import { g as Ta, C as Sa } from "./getGlassmorphismClass-MdsD9yII.js";
|
|
7
|
+
import { v as De } from "./index-CYEzkRix.js";
|
|
8
|
+
const Kr = (t, e) => {
|
|
9
|
+
switch (t) {
|
|
10
|
+
case "BGCOLOR":
|
|
11
|
+
return ca({ color: e });
|
|
12
|
+
case "HVBGCOLOR":
|
|
13
|
+
return la({ color: e });
|
|
14
|
+
case "FCBGCOLOR":
|
|
15
|
+
return sa({ color: e });
|
|
16
|
+
case "BEFOREBG":
|
|
17
|
+
return ia({ color: e });
|
|
18
|
+
case "AFTERBG":
|
|
19
|
+
return na({ color: e });
|
|
20
|
+
case "ACTIVEBG":
|
|
21
|
+
return oa({ color: e });
|
|
22
|
+
case "TEXTCOLOR":
|
|
23
|
+
return ra({ color: e });
|
|
24
|
+
case "HVTEXTCOLOR":
|
|
25
|
+
return aa({ color: e });
|
|
26
|
+
case "FCTEXTCOLOR":
|
|
27
|
+
return ta({ color: e });
|
|
28
|
+
case "DISABLEDTEXTCOLOR":
|
|
29
|
+
return ea({ color: e });
|
|
30
|
+
case "SVGFILL":
|
|
31
|
+
return Qt({ color: e });
|
|
32
|
+
case "RINGCOLOR":
|
|
33
|
+
return Jt({ color: e });
|
|
34
|
+
case "FOCUSRING":
|
|
35
|
+
return Zt({ color: e });
|
|
36
|
+
case "ACTIVERING":
|
|
37
|
+
return qt({ color: e });
|
|
38
|
+
case "OFFSETRING":
|
|
39
|
+
return Ut({ color: e });
|
|
40
|
+
case "OUTLINE":
|
|
41
|
+
return Yt({ color: e });
|
|
42
|
+
case "FOCUSOUTLINE":
|
|
43
|
+
return Xt({ color: e });
|
|
44
|
+
case "ACTIVEOUTLINE":
|
|
45
|
+
return Kt({ color: e });
|
|
46
|
+
case "BTNCOLOR":
|
|
47
|
+
return zt({ color: e });
|
|
48
|
+
case "LISTCOLOR":
|
|
49
|
+
return Wt({ color: e });
|
|
50
|
+
case "BORDER":
|
|
51
|
+
return Mt({ color: e });
|
|
52
|
+
case "BORDERX":
|
|
53
|
+
return Ht({ color: e });
|
|
54
|
+
case "BORDERY":
|
|
55
|
+
return Gt({ color: e });
|
|
56
|
+
case "BORDERT":
|
|
57
|
+
return _t({ color: e });
|
|
58
|
+
case "BORDERB":
|
|
59
|
+
return jt({ color: e });
|
|
60
|
+
case "BORDERL":
|
|
61
|
+
return Pt({ color: e });
|
|
62
|
+
case "BORDERR":
|
|
63
|
+
return $t({ color: e });
|
|
64
|
+
case "H1":
|
|
65
|
+
return Lt({ size: e });
|
|
66
|
+
case "H2":
|
|
67
|
+
return Ft({ size: e });
|
|
68
|
+
case "H3":
|
|
69
|
+
return Dt({ size: e });
|
|
70
|
+
case "H4":
|
|
71
|
+
return It({ size: e });
|
|
72
|
+
case "BODYTEXT":
|
|
73
|
+
return Vt({ size: e });
|
|
74
|
+
case "FONTWEIGHT":
|
|
75
|
+
return At({ weight: e });
|
|
76
|
+
case "TEXTALIGN":
|
|
77
|
+
return Bt({ align: e });
|
|
78
|
+
case "BORDERW":
|
|
79
|
+
return Ot({ width: e });
|
|
80
|
+
case "BORDERXW":
|
|
81
|
+
return Nt({ width: e });
|
|
82
|
+
case "BORDERYW":
|
|
83
|
+
return Et({ width: e });
|
|
84
|
+
case "BORDERTW":
|
|
85
|
+
return Rt({ width: e });
|
|
86
|
+
case "BORDERBW":
|
|
87
|
+
return xt({ width: e });
|
|
88
|
+
case "BORDERLW":
|
|
89
|
+
return St({ width: e });
|
|
90
|
+
case "BORDERRW":
|
|
91
|
+
return Tt({ width: e });
|
|
92
|
+
case "OPACITY":
|
|
93
|
+
return kt({ opacity: e });
|
|
94
|
+
case "BGOPACITY":
|
|
95
|
+
return Ct({ opacity: e });
|
|
96
|
+
case "OUTLINEOPACITY":
|
|
97
|
+
return wt({ opacity: e });
|
|
98
|
+
case "MARGIN":
|
|
99
|
+
return yt({ spacing: e });
|
|
100
|
+
case "MARGINX":
|
|
101
|
+
return mt({ spacing: e });
|
|
102
|
+
case "MARGINY":
|
|
103
|
+
return gt({ spacing: e });
|
|
104
|
+
case "MARGINT":
|
|
105
|
+
return pt({ spacing: e });
|
|
106
|
+
case "MARGINB":
|
|
107
|
+
return ht({ spacing: e });
|
|
108
|
+
case "MARGINL":
|
|
109
|
+
return bt({ spacing: e });
|
|
110
|
+
case "MARGINR":
|
|
111
|
+
return vt({ spacing: e });
|
|
112
|
+
case "PADDING":
|
|
113
|
+
return ft({ spacing: e });
|
|
114
|
+
case "PADDINGX":
|
|
115
|
+
return dt({ spacing: e });
|
|
116
|
+
case "PADDINGY":
|
|
117
|
+
return ut({ spacing: e });
|
|
118
|
+
case "PADDINGT":
|
|
119
|
+
return ct({ spacing: e });
|
|
120
|
+
case "PADDINGB":
|
|
121
|
+
return lt({ spacing: e });
|
|
122
|
+
case "PADDINGL":
|
|
123
|
+
return st({ spacing: e });
|
|
124
|
+
case "PADDINGR":
|
|
125
|
+
return it({ spacing: e });
|
|
126
|
+
case "GAP":
|
|
127
|
+
return nt({ spacing: e });
|
|
128
|
+
default:
|
|
129
|
+
return "";
|
|
130
|
+
}
|
|
131
|
+
}, Xr = /* @__PURE__ */ Y({
|
|
132
|
+
__name: "AccordionGroup",
|
|
133
|
+
setup(t) {
|
|
134
|
+
return Ca(), (e, a) => (p(), y("div", null, [
|
|
135
|
+
V(e.$slots, "default")
|
|
136
|
+
]));
|
|
137
|
+
}
|
|
138
|
+
}), xa = { class: "flex w-full justify-between gap-2xs" }, Ra = { class: "w-full" }, Yr = /* @__PURE__ */ Y({
|
|
9
139
|
__name: "Alert",
|
|
10
140
|
props: {
|
|
11
141
|
color: { default: "danger" },
|
|
@@ -15,59 +145,59 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
15
145
|
dismissible: { type: Boolean, default: !1 }
|
|
16
146
|
},
|
|
17
147
|
emits: ["close"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
const { color:
|
|
23
|
-
return
|
|
24
|
-
}),
|
|
25
|
-
c.value = !1,
|
|
26
|
-
},
|
|
148
|
+
setup(t, { expose: e, emit: a }) {
|
|
149
|
+
const o = t;
|
|
150
|
+
Z();
|
|
151
|
+
const n = a, c = D(o.show), r = _(() => {
|
|
152
|
+
const { color: d, rounded: v, shadow: b } = o, h = [A.bgColorVariant({ color: d })];
|
|
153
|
+
return v && h.push("rounded-md"), b && h.push("drop-shadow-md"), h.join(" ");
|
|
154
|
+
}), u = (d) => {
|
|
155
|
+
c.value = !1, n("close", d);
|
|
156
|
+
}, l = () => {
|
|
27
157
|
c.value = !1;
|
|
28
158
|
};
|
|
29
|
-
return
|
|
30
|
-
() =>
|
|
31
|
-
(
|
|
32
|
-
c.value =
|
|
159
|
+
return Q(
|
|
160
|
+
() => o.show,
|
|
161
|
+
(d) => {
|
|
162
|
+
c.value = d;
|
|
33
163
|
}
|
|
34
|
-
),
|
|
35
|
-
close:
|
|
36
|
-
}), (
|
|
164
|
+
), e({
|
|
165
|
+
close: l
|
|
166
|
+
}), (d, v) => c.value ? (p(), y("div", {
|
|
37
167
|
key: 0,
|
|
38
168
|
role: "alert",
|
|
39
169
|
"aria-live": "polite",
|
|
40
170
|
"aria-atomic": "true",
|
|
41
|
-
class:
|
|
171
|
+
class: S(["relative px-[1.25rem] py-[0.75rem]", [r.value]])
|
|
42
172
|
}, [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
173
|
+
E("div", xa, [
|
|
174
|
+
E("div", Ra, [
|
|
175
|
+
V(d.$slots, "default")
|
|
46
176
|
]),
|
|
47
|
-
|
|
177
|
+
t.dismissible ? (p(), y("button", {
|
|
48
178
|
key: 0,
|
|
49
|
-
onClick:
|
|
179
|
+
onClick: u,
|
|
50
180
|
class: "flex items-center opacity-60 transition-opacity duration-300 ease-linear hover:opacity-40"
|
|
51
|
-
}, [...
|
|
52
|
-
|
|
181
|
+
}, [...v[0] || (v[0] = [
|
|
182
|
+
E("svg", {
|
|
53
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
54
184
|
viewBox: "0 0 384 512",
|
|
55
185
|
fill: "currentColor",
|
|
56
186
|
class: "h-xs"
|
|
57
187
|
}, [
|
|
58
|
-
|
|
188
|
+
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" })
|
|
59
189
|
], -1)
|
|
60
|
-
])])) :
|
|
190
|
+
])])) : O("", !0)
|
|
61
191
|
])
|
|
62
|
-
], 2)) :
|
|
192
|
+
], 2)) : O("", !0);
|
|
63
193
|
}
|
|
64
|
-
}),
|
|
194
|
+
}), Ea = ["src", "alt"], Na = {
|
|
65
195
|
key: 2,
|
|
66
|
-
class: "px-xs pt-xs pb-2xs
|
|
67
|
-
},
|
|
196
|
+
class: "flex-1 px-xs pt-xs pb-2xs"
|
|
197
|
+
}, Oa = {
|
|
68
198
|
key: 3,
|
|
69
199
|
class: "flex-1"
|
|
70
|
-
},
|
|
200
|
+
}, Ur = /* @__PURE__ */ Y({
|
|
71
201
|
__name: "Card",
|
|
72
202
|
props: {
|
|
73
203
|
variant: { default: "light-1" },
|
|
@@ -89,81 +219,81 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
89
219
|
titleSize: { default: "md" },
|
|
90
220
|
cardClass: { default: "" }
|
|
91
221
|
},
|
|
92
|
-
setup(
|
|
93
|
-
const
|
|
222
|
+
setup(t) {
|
|
223
|
+
const e = t, a = Z(), o = _(() => {
|
|
94
224
|
const {
|
|
95
|
-
variant:
|
|
96
|
-
rounded:
|
|
97
|
-
shadow:
|
|
98
|
-
border:
|
|
99
|
-
borderVariant:
|
|
100
|
-
glass:
|
|
101
|
-
glassBlur:
|
|
102
|
-
glassOpacity:
|
|
103
|
-
} =
|
|
225
|
+
variant: u,
|
|
226
|
+
rounded: l,
|
|
227
|
+
shadow: d,
|
|
228
|
+
border: v,
|
|
229
|
+
borderVariant: b,
|
|
230
|
+
glass: h,
|
|
231
|
+
glassBlur: g,
|
|
232
|
+
glassOpacity: L
|
|
233
|
+
} = e;
|
|
104
234
|
return [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
235
|
+
A.bgColorVariant({ color: u }),
|
|
236
|
+
l ? "rounded-lg" : "rounded-sm",
|
|
237
|
+
d && "drop-shadow-md",
|
|
238
|
+
v && "border",
|
|
239
|
+
v && A.borderColorVariant({ color: b }),
|
|
240
|
+
h && Ta(u, g, L)
|
|
111
241
|
].filter(Boolean).join(" ");
|
|
112
|
-
}),
|
|
113
|
-
const { titleVariant:
|
|
242
|
+
}), n = _(() => {
|
|
243
|
+
const { titleVariant: u, titleSize: l } = e;
|
|
114
244
|
return [
|
|
115
|
-
|
|
116
|
-
|
|
245
|
+
A.textColorVariant({ color: u }),
|
|
246
|
+
A.h3Variant({ size: l })
|
|
117
247
|
].join(" ");
|
|
118
|
-
}), c =
|
|
119
|
-
const { border:
|
|
248
|
+
}), c = _(() => {
|
|
249
|
+
const { border: u, borderVariant: l, titleVariant: d } = e;
|
|
120
250
|
return [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
251
|
+
A.textColorVariant({ color: d }),
|
|
252
|
+
u && "border-b",
|
|
253
|
+
A.borderColorVariant({ color: l })
|
|
124
254
|
].filter(Boolean).join(" ");
|
|
125
|
-
}),
|
|
126
|
-
const { border:
|
|
255
|
+
}), r = _(() => {
|
|
256
|
+
const { border: u, borderVariant: l } = e;
|
|
127
257
|
return [
|
|
128
|
-
|
|
129
|
-
|
|
258
|
+
u && "border-t",
|
|
259
|
+
u && A.borderColorVariant({ color: l })
|
|
130
260
|
].filter(Boolean).join(" ");
|
|
131
261
|
});
|
|
132
|
-
return (
|
|
133
|
-
class:
|
|
262
|
+
return (u, l) => (p(), y("div", {
|
|
263
|
+
class: S(["flex h-full w-full flex-col overflow-hidden", [o.value, t.cardClass]])
|
|
134
264
|
}, [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
class:
|
|
265
|
+
t.header || a.header ? V(u.$slots, "header", { key: 0 }, () => [
|
|
266
|
+
E("div", {
|
|
267
|
+
class: S([[c.value], "px-xs py-2xs font-bold"])
|
|
138
268
|
}, [
|
|
139
|
-
|
|
269
|
+
E("p", null, he(t.header), 1)
|
|
140
270
|
], 2)
|
|
141
|
-
]) :
|
|
142
|
-
|
|
271
|
+
]) : O("", !0),
|
|
272
|
+
t.imageSrc && !t.noImage ? (p(), y("img", {
|
|
143
273
|
key: 1,
|
|
144
|
-
src:
|
|
145
|
-
alt:
|
|
274
|
+
src: t.imageSrc,
|
|
275
|
+
alt: t.imageAlt,
|
|
146
276
|
class: "aspect-video min-w-full object-cover object-top"
|
|
147
|
-
}, null, 8,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
class:
|
|
151
|
-
},
|
|
152
|
-
|
|
277
|
+
}, null, 8, Ea)) : O("", !0),
|
|
278
|
+
t.noBody ? O("", !0) : (p(), y("div", Na, [
|
|
279
|
+
E("h3", {
|
|
280
|
+
class: S([[n.value], "mb-xs"])
|
|
281
|
+
}, he(t.title), 3),
|
|
282
|
+
a.body ? V(u.$slots, "body", { key: 0 }) : O("", !0)
|
|
153
283
|
])),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
])) :
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
class:
|
|
284
|
+
t.noBody && a.default ? (p(), y("div", Oa, [
|
|
285
|
+
V(u.$slots, "default")
|
|
286
|
+
])) : O("", !0),
|
|
287
|
+
t.footer || a.footer ? V(u.$slots, "footer", { key: 4 }, () => [
|
|
288
|
+
E("div", {
|
|
289
|
+
class: S(["px-xs py-2xs", [r.value]])
|
|
160
290
|
}, [
|
|
161
|
-
|
|
291
|
+
E("p", null, he(t.footer), 1)
|
|
162
292
|
], 2)
|
|
163
|
-
]) :
|
|
293
|
+
]) : O("", !0)
|
|
164
294
|
], 2));
|
|
165
295
|
}
|
|
166
|
-
}),
|
|
296
|
+
}), Xe = /* @__PURE__ */ Symbol(), Ba = /* @__PURE__ */ Y({
|
|
167
297
|
__name: "CarouselContainer",
|
|
168
298
|
props: {
|
|
169
299
|
bodyClass: { default: "" },
|
|
@@ -172,179 +302,160 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
172
302
|
controllerBottomClass: { default: "" },
|
|
173
303
|
loop: { type: Boolean, default: !1 }
|
|
174
304
|
},
|
|
175
|
-
setup(
|
|
176
|
-
const
|
|
177
|
-
c.value.push(
|
|
178
|
-
},
|
|
179
|
-
|
|
305
|
+
setup(t, { expose: e }) {
|
|
306
|
+
const a = t, o = Z(), n = D(0), c = D([]), r = D(0), u = D("slide-next"), l = (h) => {
|
|
307
|
+
c.value.push(h), r.value = [...new Set(c.value)].length;
|
|
308
|
+
}, d = (h) => {
|
|
309
|
+
n.value = h;
|
|
180
310
|
};
|
|
181
|
-
|
|
182
|
-
activeIdx:
|
|
183
|
-
setSlide:
|
|
311
|
+
Be(Xe, {
|
|
312
|
+
activeIdx: n,
|
|
313
|
+
setSlide: l
|
|
184
314
|
});
|
|
185
|
-
const
|
|
186
|
-
const { loop:
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
const { loop:
|
|
190
|
-
|
|
315
|
+
const v = () => {
|
|
316
|
+
const { loop: h } = a;
|
|
317
|
+
h && n.value === r.value - 1 ? n.value = 0 : n.value < r.value - 1 && (n.value = n.value + 1);
|
|
318
|
+
}, b = () => {
|
|
319
|
+
const { loop: h } = a;
|
|
320
|
+
h && n.value === 0 ? n.value = r.value - 1 : n.value > 0 && (n.value = n.value - 1);
|
|
191
321
|
};
|
|
192
|
-
return
|
|
193
|
-
() =>
|
|
194
|
-
(
|
|
195
|
-
|
|
322
|
+
return Q(
|
|
323
|
+
() => n.value,
|
|
324
|
+
(h, g) => {
|
|
325
|
+
h > g || h === 0 && g === r.value - 1 ? u.value = "slide-next" : u.value = "slide-prev";
|
|
196
326
|
}
|
|
197
|
-
),
|
|
198
|
-
numberOfSlides:
|
|
199
|
-
prev:
|
|
200
|
-
next:
|
|
201
|
-
setActive:
|
|
202
|
-
}), (
|
|
203
|
-
class:
|
|
327
|
+
), e({
|
|
328
|
+
numberOfSlides: r,
|
|
329
|
+
prev: b,
|
|
330
|
+
next: v,
|
|
331
|
+
setActive: d
|
|
332
|
+
}), (h, g) => (p(), y("div", {
|
|
333
|
+
class: S([t.bodyClass, "relative overflow-x-hidden"])
|
|
204
334
|
}, [
|
|
205
|
-
|
|
335
|
+
o["controller-top"] ? (p(), y("div", {
|
|
206
336
|
key: 0,
|
|
207
|
-
class:
|
|
337
|
+
class: S(t.controllerTopClass)
|
|
208
338
|
}, [
|
|
209
|
-
|
|
210
|
-
next:
|
|
211
|
-
prev:
|
|
212
|
-
setActive:
|
|
213
|
-
activeSlide:
|
|
214
|
-
numberOfSlides:
|
|
339
|
+
V(h.$slots, "controller-top", {
|
|
340
|
+
next: v,
|
|
341
|
+
prev: b,
|
|
342
|
+
setActive: d,
|
|
343
|
+
activeSlide: n.value,
|
|
344
|
+
numberOfSlides: r.value
|
|
215
345
|
}, void 0, !0)
|
|
216
|
-
], 2)) :
|
|
217
|
-
|
|
218
|
-
class:
|
|
346
|
+
], 2)) : O("", !0),
|
|
347
|
+
E("div", {
|
|
348
|
+
class: S(["grid grid-cols-1 grid-rows-1", t.contentContainerClass])
|
|
219
349
|
}, [
|
|
220
|
-
|
|
221
|
-
default:
|
|
222
|
-
(
|
|
223
|
-
key:
|
|
350
|
+
ee(te, { name: u.value }, {
|
|
351
|
+
default: J(() => [
|
|
352
|
+
(p(), y("div", {
|
|
353
|
+
key: n.value,
|
|
224
354
|
class: "col-start-1 col-end-1 row-start-1 row-end-1"
|
|
225
355
|
}, [
|
|
226
|
-
|
|
356
|
+
V(h.$slots, "content", {}, void 0, !0)
|
|
227
357
|
]))
|
|
228
358
|
]),
|
|
229
359
|
_: 3
|
|
230
360
|
}, 8, ["name"])
|
|
231
361
|
], 2),
|
|
232
|
-
|
|
362
|
+
o["controller-bottom"] ? (p(), y("div", {
|
|
233
363
|
key: 1,
|
|
234
|
-
class:
|
|
364
|
+
class: S(t.controllerBottomClass)
|
|
235
365
|
}, [
|
|
236
|
-
|
|
237
|
-
next:
|
|
238
|
-
prev:
|
|
239
|
-
setActive:
|
|
240
|
-
activeSlide:
|
|
241
|
-
numberOfSlides:
|
|
366
|
+
V(h.$slots, "controller-bottom", {
|
|
367
|
+
next: v,
|
|
368
|
+
prev: b,
|
|
369
|
+
setActive: d,
|
|
370
|
+
activeSlide: n.value,
|
|
371
|
+
numberOfSlides: r.value
|
|
242
372
|
}, void 0, !0)
|
|
243
|
-
], 2)) :
|
|
373
|
+
], 2)) : O("", !0)
|
|
244
374
|
], 2));
|
|
245
375
|
}
|
|
246
|
-
}),
|
|
247
|
-
const
|
|
248
|
-
for (const [
|
|
249
|
-
|
|
250
|
-
return
|
|
251
|
-
},
|
|
376
|
+
}), re = (t, e) => {
|
|
377
|
+
const a = t.__vccOpts || t;
|
|
378
|
+
for (const [o, n] of e)
|
|
379
|
+
a[o] = n;
|
|
380
|
+
return a;
|
|
381
|
+
}, qr = /* @__PURE__ */ re(Ba, [["__scopeId", "data-v-e9caba8a"]]), Aa = ["id"], Zr = /* @__PURE__ */ Y({
|
|
252
382
|
__name: "CarouselContent",
|
|
253
383
|
props: {
|
|
254
384
|
slideNumber: {},
|
|
255
385
|
id: {},
|
|
256
386
|
slideClass: { default: "" }
|
|
257
387
|
},
|
|
258
|
-
setup(
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
),
|
|
262
|
-
|
|
263
|
-
const c =
|
|
264
|
-
const { slideNumber:
|
|
265
|
-
return
|
|
388
|
+
setup(t) {
|
|
389
|
+
const e = t, { activeIdx: a, setSlide: o } = Ae(
|
|
390
|
+
Xe
|
|
391
|
+
), n = D(null);
|
|
392
|
+
o(e.slideNumber), Z();
|
|
393
|
+
const c = _(() => {
|
|
394
|
+
const { slideNumber: r } = e;
|
|
395
|
+
return a.value === r;
|
|
266
396
|
});
|
|
267
|
-
return (
|
|
397
|
+
return (r, u) => de((p(), y("div", {
|
|
268
398
|
ref_key: "slideRef",
|
|
269
|
-
ref:
|
|
270
|
-
id:
|
|
271
|
-
class:
|
|
399
|
+
ref: n,
|
|
400
|
+
id: t.id,
|
|
401
|
+
class: S([t.slideClass, "w-full"]),
|
|
272
402
|
role: "tabpanel",
|
|
273
403
|
tabindex: "-1"
|
|
274
404
|
}, [
|
|
275
|
-
|
|
276
|
-
], 10,
|
|
277
|
-
[
|
|
405
|
+
V(r.$slots, "default")
|
|
406
|
+
], 10, Aa)), [
|
|
407
|
+
[Ve, c.value]
|
|
278
408
|
]);
|
|
279
409
|
}
|
|
280
|
-
}),
|
|
410
|
+
}), Va = ["id"], Ia = /* @__PURE__ */ Y({
|
|
281
411
|
__name: "Collapse",
|
|
282
412
|
props: {
|
|
283
|
-
|
|
284
|
-
|
|
413
|
+
id: {},
|
|
414
|
+
customClass: { default: "" },
|
|
285
415
|
visible: { type: Boolean, default: !1 }
|
|
286
416
|
},
|
|
287
417
|
emits: ["open", "close"],
|
|
288
|
-
setup(
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
v.style.height = "auto", v.style.opacity = "0";
|
|
303
|
-
const R = getComputedStyle(v).height;
|
|
304
|
-
v.style.height = "0px", v.offsetHeight, v.style.height = R, v.style.opacity = "1";
|
|
305
|
-
}, k = (v) => {
|
|
306
|
-
v.style.height = "auto", v.style.opacity = "1";
|
|
307
|
-
}, A = (v) => {
|
|
308
|
-
v.style.height = getComputedStyle(v).height, v.offsetHeight, v.style.height = "0px", v.style.opacity = "0";
|
|
418
|
+
setup(t, { expose: e, emit: a }) {
|
|
419
|
+
const o = t;
|
|
420
|
+
Z();
|
|
421
|
+
const n = a, c = o.id ?? Ie(), { isOpen: r, toggle: u, open: l, close: d } = ka(
|
|
422
|
+
c,
|
|
423
|
+
ua(o, "visible")
|
|
424
|
+
), v = (g) => {
|
|
425
|
+
g.style.height = "auto", g.style.opacity = "0";
|
|
426
|
+
const L = getComputedStyle(g).height;
|
|
427
|
+
g.style.height = "0px", g.offsetHeight, g.style.height = L, g.style.opacity = "1";
|
|
428
|
+
}, b = (g) => {
|
|
429
|
+
g.style.height = "auto", g.style.opacity = "1";
|
|
430
|
+
}, h = (g) => {
|
|
431
|
+
g.style.height = getComputedStyle(g).height, g.offsetHeight, g.style.height = "0px", g.style.opacity = "0";
|
|
309
432
|
};
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
}),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
toggle: l,
|
|
321
|
-
close: u,
|
|
322
|
-
open: s
|
|
323
|
-
}), (v, R) => (a(), n("div", {
|
|
324
|
-
accordion: e.accordion,
|
|
325
|
-
visible: t.value,
|
|
326
|
-
ref_key: "collapseRef",
|
|
327
|
-
ref: c
|
|
328
|
-
}, [
|
|
329
|
-
T(B(ae), null, {
|
|
330
|
-
default: I(() => [
|
|
331
|
-
T(j, {
|
|
433
|
+
return Q(r, (g) => {
|
|
434
|
+
g ? n("open", !0) : n("close", !1);
|
|
435
|
+
}), e({
|
|
436
|
+
toggle: u,
|
|
437
|
+
open: l,
|
|
438
|
+
close: d
|
|
439
|
+
}), (g, L) => (p(), y("div", { id: I(c) }, [
|
|
440
|
+
ee(I(Sa), null, {
|
|
441
|
+
default: J(() => [
|
|
442
|
+
ee(te, {
|
|
332
443
|
name: "collapse",
|
|
333
444
|
tag: "div",
|
|
334
|
-
onEnter:
|
|
335
|
-
onAfterEnter:
|
|
336
|
-
onLeave:
|
|
445
|
+
onEnter: v,
|
|
446
|
+
onAfterEnter: b,
|
|
447
|
+
onLeave: h,
|
|
337
448
|
class: "overflow-y-clip"
|
|
338
449
|
}, {
|
|
339
|
-
default:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
class:
|
|
450
|
+
default: J(() => [
|
|
451
|
+
de(E("div", null, [
|
|
452
|
+
E("div", {
|
|
453
|
+
class: S(t.customClass)
|
|
343
454
|
}, [
|
|
344
|
-
|
|
455
|
+
V(g.$slots, "default", {}, void 0, !0)
|
|
345
456
|
], 2)
|
|
346
457
|
], 512), [
|
|
347
|
-
[
|
|
458
|
+
[Ve, I(r)]
|
|
348
459
|
])
|
|
349
460
|
]),
|
|
350
461
|
_: 3
|
|
@@ -352,271 +463,273 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
352
463
|
]),
|
|
353
464
|
_: 3
|
|
354
465
|
})
|
|
355
|
-
], 8,
|
|
466
|
+
], 8, Va));
|
|
356
467
|
}
|
|
357
|
-
}),
|
|
468
|
+
}), Jr = /* @__PURE__ */ re(Ia, [["__scopeId", "data-v-6576e563"]]), Ye = /* @__PURE__ */ Symbol(), Qr = /* @__PURE__ */ Y({
|
|
358
469
|
__name: "DropdownContainer",
|
|
359
470
|
emits: ["click-outside", "toggle"],
|
|
360
|
-
setup(
|
|
361
|
-
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
active:
|
|
471
|
+
setup(t, { emit: e }) {
|
|
472
|
+
Z();
|
|
473
|
+
const a = e, o = D(), n = D(!1), c = D(0);
|
|
474
|
+
Be(Ye, {
|
|
475
|
+
active: n,
|
|
365
476
|
buttonHeight: c,
|
|
366
477
|
closeDropdown: () => {
|
|
367
|
-
|
|
478
|
+
n.value = !1;
|
|
368
479
|
}
|
|
369
480
|
});
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
|
|
481
|
+
const u = (v) => {
|
|
482
|
+
n.value = !n.value, a("toggle", v);
|
|
483
|
+
}, l = (v) => {
|
|
484
|
+
n.value = !1, a("click-outside", v);
|
|
485
|
+
}, d = () => {
|
|
486
|
+
n.value = !1;
|
|
376
487
|
};
|
|
377
|
-
return
|
|
378
|
-
c.value =
|
|
379
|
-
}), (
|
|
488
|
+
return We(() => {
|
|
489
|
+
c.value = o.value.scrollHeight;
|
|
490
|
+
}), (v, b) => de((p(), y("div", {
|
|
380
491
|
class: "relative",
|
|
381
492
|
ref_key: "dropdownTarget",
|
|
382
|
-
ref:
|
|
383
|
-
onKeyup:
|
|
493
|
+
ref: o,
|
|
494
|
+
onKeyup: da(d, ["esc"])
|
|
384
495
|
}, [
|
|
385
|
-
|
|
386
|
-
toggle:
|
|
387
|
-
dropdownState:
|
|
496
|
+
V(v.$slots, "toggler", {
|
|
497
|
+
toggle: u,
|
|
498
|
+
dropdownState: n.value
|
|
388
499
|
}),
|
|
389
|
-
|
|
500
|
+
V(v.$slots, "default")
|
|
390
501
|
], 32)), [
|
|
391
|
-
[
|
|
502
|
+
[I(De), l]
|
|
392
503
|
]);
|
|
393
504
|
}
|
|
394
|
-
}),
|
|
505
|
+
}), Da = /* @__PURE__ */ Y({
|
|
395
506
|
__name: "DropdownContent",
|
|
396
507
|
props: {
|
|
397
|
-
|
|
508
|
+
customClass: { default: "" }
|
|
398
509
|
},
|
|
399
|
-
setup(
|
|
400
|
-
const { height:
|
|
401
|
-
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
),
|
|
405
|
-
if (!(!
|
|
510
|
+
setup(t) {
|
|
511
|
+
const { height: e } = ba();
|
|
512
|
+
Z();
|
|
513
|
+
const a = D(), { active: o, buttonHeight: n, closeDropdown: c } = Ae(
|
|
514
|
+
Ye
|
|
515
|
+
), r = _(() => ({ "--button-height": `${n}px` })), u = _(() => {
|
|
516
|
+
if (!(!o || !a.value) && e.value - a.value.getBoundingClientRect().bottom < 0)
|
|
406
517
|
return "dropup-bottom";
|
|
407
518
|
});
|
|
408
|
-
return (
|
|
409
|
-
default:
|
|
410
|
-
|
|
519
|
+
return (l, d) => (p(), Se(te, { name: "dropdown-content" }, {
|
|
520
|
+
default: J(() => [
|
|
521
|
+
I(o) ? (p(), y("div", {
|
|
411
522
|
key: 0,
|
|
412
523
|
ref_key: "contentRef",
|
|
413
|
-
ref:
|
|
414
|
-
class:
|
|
415
|
-
style:
|
|
524
|
+
ref: a,
|
|
525
|
+
class: S(["absolute my-2xs w-max max-w-[14rem] overflow-hidden", [u.value, t.customClass]]),
|
|
526
|
+
style: ge(r.value)
|
|
416
527
|
}, [
|
|
417
|
-
|
|
418
|
-
], 6)) :
|
|
528
|
+
V(l.$slots, "default", { itemClick: I(c) }, void 0, !0)
|
|
529
|
+
], 6)) : O("", !0)
|
|
419
530
|
]),
|
|
420
531
|
_: 3
|
|
421
532
|
}));
|
|
422
533
|
}
|
|
423
|
-
}),
|
|
534
|
+
}), eo = /* @__PURE__ */ re(Da, [["__scopeId", "data-v-0cb1bffb"]]), Fa = ["aria-label", "aria-expanded"], La = /* @__PURE__ */ Y({
|
|
424
535
|
__name: "NavDrawer",
|
|
425
536
|
props: {
|
|
426
537
|
color: { default: "dark-2" },
|
|
427
|
-
|
|
538
|
+
showBorder: { type: Boolean, default: !0 },
|
|
428
539
|
toggle: { type: Boolean },
|
|
429
|
-
|
|
540
|
+
bgColor: {}
|
|
430
541
|
},
|
|
431
542
|
emits: ["hbg-click"],
|
|
432
|
-
setup(
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
}, c =
|
|
543
|
+
setup(t, { emit: e }) {
|
|
544
|
+
const a = t, o = e, n = (l) => {
|
|
545
|
+
o("hbg-click", l);
|
|
546
|
+
}, c = _({
|
|
436
547
|
get() {
|
|
437
|
-
return
|
|
548
|
+
return a.toggle;
|
|
438
549
|
},
|
|
439
|
-
set(
|
|
440
|
-
return
|
|
550
|
+
set(l) {
|
|
551
|
+
return l;
|
|
441
552
|
}
|
|
442
|
-
}),
|
|
443
|
-
const
|
|
444
|
-
|
|
445
|
-
|
|
553
|
+
}), r = (l, d, v) => {
|
|
554
|
+
const b = [
|
|
555
|
+
A.ringColorVariant({ color: l }),
|
|
556
|
+
A.ringOffsetColorVariant({ color: v })
|
|
446
557
|
];
|
|
447
|
-
return
|
|
448
|
-
},
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
558
|
+
return d && (b.push(A.borderColorVariant({ color: l })), b.push("border")), b.join(" ");
|
|
559
|
+
}, u = (l) => [
|
|
560
|
+
A.bgColorVariant({ color: l }),
|
|
561
|
+
A.beforeBgColorVariant({ color: l }),
|
|
562
|
+
A.afterBgColorVariant({ color: l })
|
|
452
563
|
].join(" ");
|
|
453
|
-
return (
|
|
454
|
-
class:
|
|
455
|
-
onClick:
|
|
456
|
-
"aria-label":
|
|
457
|
-
"aria-expanded":
|
|
564
|
+
return (l, d) => (p(), y("button", {
|
|
565
|
+
class: S(["hamburger__button aspect-square rounded-md p-3xs ring-offset-2 transition-all duration-300 ease-linear outline-none hover:opacity-70 focus:opacity-70 focus:ring-4", r(t.color, t.showBorder, t.bgColor)]),
|
|
566
|
+
onClick: n,
|
|
567
|
+
"aria-label": t.toggle ? "Close" : "Open",
|
|
568
|
+
"aria-expanded": t.toggle
|
|
458
569
|
}, [
|
|
459
|
-
|
|
570
|
+
de(E("input", {
|
|
460
571
|
type: "checkbox",
|
|
461
|
-
"onUpdate:modelValue":
|
|
572
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => c.value = v),
|
|
462
573
|
class: "hamburger__checkbox hidden"
|
|
463
574
|
}, null, 512), [
|
|
464
|
-
[
|
|
575
|
+
[fa, c.value]
|
|
465
576
|
]),
|
|
466
|
-
|
|
467
|
-
class:
|
|
577
|
+
E("div", {
|
|
578
|
+
class: S(["hamburger__icon relative h-[3px] w-sm transition-all duration-300 ease-linear before:h-[3px] before:w-sm after:h-[3px] after:w-sm", u(t.color)])
|
|
468
579
|
}, null, 2)
|
|
469
|
-
], 10,
|
|
580
|
+
], 10, Fa));
|
|
470
581
|
}
|
|
471
|
-
}),
|
|
582
|
+
}), Ue = /* @__PURE__ */ re(La, [["__scopeId", "data-v-b0ec6d90"]]), $a = { class: "mx-xs flex flex-wrap items-center justify-between py-xs align-middle sm:max-w-[640px] md:mx-sm md:max-w-[768px] md:py-2xs lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]" }, Pa = { class: "min-h-[24px]" }, ja = { class: "ml-auto" }, _a = {
|
|
472
583
|
key: 0,
|
|
473
584
|
class: "hidden lg:block"
|
|
474
|
-
},
|
|
585
|
+
}, Ga = { class: "overflow-hidden lg:hidden" }, Ha = { key: 0 }, Ma = /* @__PURE__ */ Y({
|
|
475
586
|
__name: "HeaderHorizontal",
|
|
476
587
|
props: {
|
|
477
588
|
bgColor: { default: "light-1" },
|
|
478
589
|
mobileMenuBgColor: { default: "light-2" },
|
|
479
590
|
drawerBtnColor: { default: "dark-1" },
|
|
480
|
-
|
|
591
|
+
showDrawerBorder: { type: Boolean, default: !0 },
|
|
481
592
|
fadeInOnScroll: { type: Boolean, default: !0 },
|
|
482
593
|
scrollDistance: { default: 50 },
|
|
483
594
|
sticky: { default: "all" }
|
|
484
595
|
},
|
|
485
596
|
emits: ["toggle-drawer"],
|
|
486
|
-
setup(
|
|
487
|
-
const
|
|
597
|
+
setup(t, { expose: e, emit: a }) {
|
|
598
|
+
const o = t, n = Z(), c = D(!1), { y: r } = ha(), u = a, l = () => {
|
|
488
599
|
c.value = !1;
|
|
489
|
-
},
|
|
490
|
-
c.value = !c.value,
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
},
|
|
496
|
-
|
|
497
|
-
},
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
const { bgColor:
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
600
|
+
}, d = (B) => {
|
|
601
|
+
c.value = !c.value, u("toggle-drawer", B, c.value);
|
|
602
|
+
}, v = (B) => {
|
|
603
|
+
B.style.height = "auto";
|
|
604
|
+
const $ = getComputedStyle(B).height;
|
|
605
|
+
B.style.height = "0px", B.offsetHeight, B.style.height = $;
|
|
606
|
+
}, b = (B) => {
|
|
607
|
+
B.style.height = "auto";
|
|
608
|
+
}, h = (B) => {
|
|
609
|
+
B.style.height = getComputedStyle(B).height, B.offsetHeight, B.style.height = "0px";
|
|
610
|
+
}, g = _(() => {
|
|
611
|
+
const { bgColor: B, sticky: $ } = o, G = [
|
|
612
|
+
A.bgColorVariant({ color: B })
|
|
613
|
+
];
|
|
614
|
+
return $ === "all" ? (G.push("sticky top-0"), G.join(" ")) : $ === "tablet" ? (G.push("md:sticky top-0"), G.join(" ")) : ($ === "pc" && G.push("lg:sticky top-0"), G.join(" "));
|
|
615
|
+
}), L = _(() => {
|
|
616
|
+
const { fadeInOnScroll: B, scrollDistance: $ } = o;
|
|
617
|
+
return B ? r.value >= $ ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
505
618
|
});
|
|
506
|
-
return
|
|
507
|
-
headerClose:
|
|
508
|
-
}), (
|
|
509
|
-
class:
|
|
619
|
+
return e({
|
|
620
|
+
headerClose: l
|
|
621
|
+
}), (B, $) => (p(), y("header", {
|
|
622
|
+
class: S(["z-50 w-full items-center transition delay-150 duration-500 ease-in", [L.value, g.value]])
|
|
510
623
|
}, [
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
624
|
+
E("nav", $a, [
|
|
625
|
+
E("div", Pa, [
|
|
626
|
+
V(B.$slots, "content", {}, void 0, !0)
|
|
514
627
|
]),
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
color:
|
|
518
|
-
"
|
|
628
|
+
E("div", ja, [
|
|
629
|
+
ee(Ue, {
|
|
630
|
+
color: t.drawerBtnColor,
|
|
631
|
+
"show-border": t.showDrawerBorder,
|
|
519
632
|
class: "block lg:hidden",
|
|
520
|
-
onHbgClick:
|
|
633
|
+
onHbgClick: d,
|
|
521
634
|
toggle: c.value,
|
|
522
|
-
"
|
|
523
|
-
}, null, 8, ["color", "
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
])) :
|
|
635
|
+
"bg-color": t.bgColor
|
|
636
|
+
}, null, 8, ["color", "show-border", "toggle", "bg-color"]),
|
|
637
|
+
n["content-right"] ? (p(), y("div", _a, [
|
|
638
|
+
V(B.$slots, "content-right", {}, void 0, !0)
|
|
639
|
+
])) : O("", !0)
|
|
527
640
|
])
|
|
528
641
|
]),
|
|
529
|
-
|
|
530
|
-
|
|
642
|
+
E("div", Ga, [
|
|
643
|
+
ee(te, {
|
|
531
644
|
name: "collapse",
|
|
532
|
-
onEnter:
|
|
533
|
-
onAfterEnter:
|
|
534
|
-
onLeave:
|
|
645
|
+
onEnter: v,
|
|
646
|
+
onAfterEnter: b,
|
|
647
|
+
onLeave: h
|
|
535
648
|
}, {
|
|
536
|
-
default:
|
|
537
|
-
c.value ? (
|
|
649
|
+
default: J(() => [
|
|
650
|
+
c.value ? (p(), y("div", {
|
|
538
651
|
key: 0,
|
|
539
|
-
class:
|
|
652
|
+
class: S(["mx-xs my-2xs overflow-hidden rounded-md bg-opacity-80", I(A).bgColorVariant({ color: t.mobileMenuBgColor })])
|
|
540
653
|
}, [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
])) :
|
|
544
|
-
], 2)) :
|
|
654
|
+
n["mobile-content"] ? (p(), y("div", Ha, [
|
|
655
|
+
V(B.$slots, "mobile-content", { headerClose: l }, void 0, !0)
|
|
656
|
+
])) : O("", !0)
|
|
657
|
+
], 2)) : O("", !0)
|
|
545
658
|
]),
|
|
546
659
|
_: 3
|
|
547
660
|
})
|
|
548
661
|
])
|
|
549
662
|
], 2));
|
|
550
663
|
}
|
|
551
|
-
}),
|
|
664
|
+
}), to = /* @__PURE__ */ re(Ma, [["__scopeId", "data-v-2ba87e4a"]]), Wa = { class: "flex h-full flex-col justify-between" }, za = { key: 0 }, Ka = { class: "relative z-40 block lg:hidden" }, Xa = {
|
|
552
665
|
key: 0,
|
|
553
|
-
class: "
|
|
554
|
-
},
|
|
666
|
+
class: "fixed top-0 right-0 z-50 mt-xs mr-xs block lg:hidden"
|
|
667
|
+
}, Ya = {
|
|
555
668
|
key: 0,
|
|
556
669
|
class: "h-full"
|
|
557
|
-
},
|
|
670
|
+
}, Ua = /* @__PURE__ */ Y({
|
|
558
671
|
__name: "HeaderVertical",
|
|
559
672
|
props: {
|
|
560
673
|
bgColor: { default: "light-1" },
|
|
561
674
|
drawerBtnColor: { default: "dark-1" },
|
|
562
|
-
|
|
675
|
+
showDrawerBorder: { type: Boolean, default: !0 },
|
|
563
676
|
headerWidth: { default: 160 }
|
|
564
677
|
},
|
|
565
678
|
emits: ["toggle-drawer"],
|
|
566
|
-
setup(
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
},
|
|
572
|
-
return
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
|
|
679
|
+
setup(t, { expose: e, emit: a }) {
|
|
680
|
+
const o = t, n = Z(), c = a, r = D(!1), u = (v) => {
|
|
681
|
+
r.value = !r.value, c("toggle-drawer", v, r.value);
|
|
682
|
+
}, l = () => {
|
|
683
|
+
r.value = !1;
|
|
684
|
+
}, d = _(() => ({ "--header-width": `${o.headerWidth}px` }));
|
|
685
|
+
return We(() => {
|
|
686
|
+
const v = pa(document);
|
|
687
|
+
Q(r, (b) => {
|
|
688
|
+
v.value = b;
|
|
576
689
|
});
|
|
577
|
-
}),
|
|
578
|
-
headerClose:
|
|
579
|
-
}), (
|
|
690
|
+
}), e({
|
|
691
|
+
headerClose: l
|
|
692
|
+
}), (v, b) => (p(), y("header", {
|
|
580
693
|
class: "relative",
|
|
581
|
-
style:
|
|
694
|
+
style: ge(d.value)
|
|
582
695
|
}, [
|
|
583
|
-
|
|
584
|
-
class:
|
|
696
|
+
E("nav", {
|
|
697
|
+
class: S(["header-desktop hidden overflow-y-scroll overscroll-contain py-sm lg:sticky lg:top-0 lg:left-0 lg:block lg:h-[100vh]", [I(A).bgColorVariant({ color: t.bgColor })]])
|
|
585
698
|
}, [
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
699
|
+
E("div", Wa, [
|
|
700
|
+
E("div", null, [
|
|
701
|
+
V(v.$slots, "content", {}, void 0, !0)
|
|
589
702
|
]),
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
])) :
|
|
703
|
+
n["content-bottom"] ? (p(), y("div", za, [
|
|
704
|
+
V(v.$slots, "content-bottom", {}, void 0, !0)
|
|
705
|
+
])) : O("", !0)
|
|
593
706
|
])
|
|
594
707
|
], 2),
|
|
595
|
-
(
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
color:
|
|
600
|
-
"
|
|
708
|
+
(p(), Se(va, { to: "body" }, [
|
|
709
|
+
E("div", Ka, [
|
|
710
|
+
n["mobile-content"] ? (p(), y("div", Xa, [
|
|
711
|
+
ee(Ue, {
|
|
712
|
+
color: t.drawerBtnColor,
|
|
713
|
+
"show-border": t.showDrawerBorder,
|
|
601
714
|
class: "relative block lg:hidden",
|
|
602
|
-
onHbgClick:
|
|
603
|
-
toggle:
|
|
604
|
-
"
|
|
605
|
-
}, null, 8, ["color", "
|
|
606
|
-
])) :
|
|
607
|
-
|
|
715
|
+
onHbgClick: u,
|
|
716
|
+
toggle: r.value,
|
|
717
|
+
"bg-color": t.bgColor
|
|
718
|
+
}, null, 8, ["color", "show-border", "toggle", "bg-color"])
|
|
719
|
+
])) : O("", !0),
|
|
720
|
+
ee(te, {
|
|
608
721
|
name: "slide-down",
|
|
609
722
|
appear: ""
|
|
610
723
|
}, {
|
|
611
|
-
default:
|
|
612
|
-
|
|
724
|
+
default: J(() => [
|
|
725
|
+
r.value ? (p(), y("nav", {
|
|
613
726
|
key: 0,
|
|
614
|
-
class:
|
|
727
|
+
class: S(["fixed inset-0 overflow-y-scroll overscroll-contain px-sm py-lg", I(A).bgColorVariant({ color: t.bgColor })])
|
|
615
728
|
}, [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
])) :
|
|
619
|
-
], 2)) :
|
|
729
|
+
n["mobile-content"] ? (p(), y("div", Ya, [
|
|
730
|
+
V(v.$slots, "mobile-content", { headerClose: l }, void 0, !0)
|
|
731
|
+
])) : O("", !0)
|
|
732
|
+
], 2)) : O("", !0)
|
|
620
733
|
]),
|
|
621
734
|
_: 3
|
|
622
735
|
})
|
|
@@ -624,369 +737,1413 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
624
737
|
]))
|
|
625
738
|
], 4));
|
|
626
739
|
}
|
|
627
|
-
}),
|
|
740
|
+
}), ao = /* @__PURE__ */ re(Ua, [["__scopeId", "data-v-91814bc1"]]);
|
|
741
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
742
|
+
const qa = (t) => t != null;
|
|
743
|
+
var qe = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], ye = /* @__PURE__ */ qe.join(","), Ze = typeof Element > "u", ue = Ze ? function() {
|
|
744
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, we = !Ze && Element.prototype.getRootNode ? function(t) {
|
|
745
|
+
var e;
|
|
746
|
+
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
747
|
+
} : function(t) {
|
|
748
|
+
return t?.ownerDocument;
|
|
749
|
+
}, Ce = function(e, a) {
|
|
750
|
+
var o;
|
|
751
|
+
a === void 0 && (a = !0);
|
|
752
|
+
var n = e == null || (o = e.getAttribute) === null || o === void 0 ? void 0 : o.call(e, "inert"), c = n === "" || n === "true", r = c || a && e && // closest does not exist on shadow roots, so we fall back to a manual
|
|
753
|
+
// lookup upward, in case it is not defined.
|
|
754
|
+
(typeof e.closest == "function" ? e.closest("[inert]") : Ce(e.parentNode));
|
|
755
|
+
return r;
|
|
756
|
+
}, Za = function(e) {
|
|
757
|
+
var a, o = e == null || (a = e.getAttribute) === null || a === void 0 ? void 0 : a.call(e, "contenteditable");
|
|
758
|
+
return o === "" || o === "true";
|
|
759
|
+
}, Je = function(e, a, o) {
|
|
760
|
+
if (Ce(e))
|
|
761
|
+
return [];
|
|
762
|
+
var n = Array.prototype.slice.apply(e.querySelectorAll(ye));
|
|
763
|
+
return a && ue.call(e, ye) && n.unshift(e), n = n.filter(o), n;
|
|
764
|
+
}, ke = function(e, a, o) {
|
|
765
|
+
for (var n = [], c = Array.from(e); c.length; ) {
|
|
766
|
+
var r = c.shift();
|
|
767
|
+
if (!Ce(r, !1))
|
|
768
|
+
if (r.tagName === "SLOT") {
|
|
769
|
+
var u = r.assignedElements(), l = u.length ? u : r.children, d = ke(l, !0, o);
|
|
770
|
+
o.flatten ? n.push.apply(n, d) : n.push({
|
|
771
|
+
scopeParent: r,
|
|
772
|
+
candidates: d
|
|
773
|
+
});
|
|
774
|
+
} else {
|
|
775
|
+
var v = ue.call(r, ye);
|
|
776
|
+
v && o.filter(r) && (a || !e.includes(r)) && n.push(r);
|
|
777
|
+
var b = r.shadowRoot || // check for an undisclosed shadow
|
|
778
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(r), h = !Ce(b, !1) && (!o.shadowRootFilter || o.shadowRootFilter(r));
|
|
779
|
+
if (b && h) {
|
|
780
|
+
var g = ke(b === !0 ? r.children : b.children, !0, o);
|
|
781
|
+
o.flatten ? n.push.apply(n, g) : n.push({
|
|
782
|
+
scopeParent: r,
|
|
783
|
+
candidates: g
|
|
784
|
+
});
|
|
785
|
+
} else
|
|
786
|
+
c.unshift.apply(c, r.children);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
return n;
|
|
790
|
+
}, Qe = function(e) {
|
|
791
|
+
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
792
|
+
}, ce = function(e) {
|
|
793
|
+
if (!e)
|
|
794
|
+
throw new Error("No node provided");
|
|
795
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Za(e)) && !Qe(e) ? 0 : e.tabIndex;
|
|
796
|
+
}, Ja = function(e, a) {
|
|
797
|
+
var o = ce(e);
|
|
798
|
+
return o < 0 && a && !Qe(e) ? 0 : o;
|
|
799
|
+
}, Qa = function(e, a) {
|
|
800
|
+
return e.tabIndex === a.tabIndex ? e.documentOrder - a.documentOrder : e.tabIndex - a.tabIndex;
|
|
801
|
+
}, et = function(e) {
|
|
802
|
+
return e.tagName === "INPUT";
|
|
803
|
+
}, er = function(e) {
|
|
804
|
+
return et(e) && e.type === "hidden";
|
|
805
|
+
}, tr = function(e) {
|
|
806
|
+
var a = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(o) {
|
|
807
|
+
return o.tagName === "SUMMARY";
|
|
808
|
+
});
|
|
809
|
+
return a;
|
|
810
|
+
}, ar = function(e, a) {
|
|
811
|
+
for (var o = 0; o < e.length; o++)
|
|
812
|
+
if (e[o].checked && e[o].form === a)
|
|
813
|
+
return e[o];
|
|
814
|
+
}, rr = function(e) {
|
|
815
|
+
if (!e.name)
|
|
816
|
+
return !0;
|
|
817
|
+
var a = e.form || we(e), o = function(u) {
|
|
818
|
+
return a.querySelectorAll('input[type="radio"][name="' + u + '"]');
|
|
819
|
+
}, n;
|
|
820
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
821
|
+
n = o(window.CSS.escape(e.name));
|
|
822
|
+
else
|
|
823
|
+
try {
|
|
824
|
+
n = o(e.name);
|
|
825
|
+
} catch (r) {
|
|
826
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", r.message), !1;
|
|
827
|
+
}
|
|
828
|
+
var c = ar(n, e.form);
|
|
829
|
+
return !c || c === e;
|
|
830
|
+
}, or = function(e) {
|
|
831
|
+
return et(e) && e.type === "radio";
|
|
832
|
+
}, nr = function(e) {
|
|
833
|
+
return or(e) && !rr(e);
|
|
834
|
+
}, ir = function(e) {
|
|
835
|
+
var a, o = e && we(e), n = (a = o) === null || a === void 0 ? void 0 : a.host, c = !1;
|
|
836
|
+
if (o && o !== e) {
|
|
837
|
+
var r, u, l;
|
|
838
|
+
for (c = !!((r = n) !== null && r !== void 0 && (u = r.ownerDocument) !== null && u !== void 0 && u.contains(n) || e != null && (l = e.ownerDocument) !== null && l !== void 0 && l.contains(e)); !c && n; ) {
|
|
839
|
+
var d, v, b;
|
|
840
|
+
o = we(n), n = (d = o) === null || d === void 0 ? void 0 : d.host, c = !!((v = n) !== null && v !== void 0 && (b = v.ownerDocument) !== null && b !== void 0 && b.contains(n));
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
return c;
|
|
844
|
+
}, $e = function(e) {
|
|
845
|
+
var a = e.getBoundingClientRect(), o = a.width, n = a.height;
|
|
846
|
+
return o === 0 && n === 0;
|
|
847
|
+
}, sr = function(e, a) {
|
|
848
|
+
var o = a.displayCheck, n = a.getShadowRoot;
|
|
849
|
+
if (o === "full-native" && "checkVisibility" in e) {
|
|
850
|
+
var c = e.checkVisibility({
|
|
851
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
852
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
853
|
+
checkOpacity: !1,
|
|
854
|
+
opacityProperty: !1,
|
|
855
|
+
contentVisibilityAuto: !0,
|
|
856
|
+
visibilityProperty: !0,
|
|
857
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
858
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
859
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
860
|
+
// we include it anyway.
|
|
861
|
+
checkVisibilityCSS: !0
|
|
862
|
+
});
|
|
863
|
+
return !c;
|
|
864
|
+
}
|
|
865
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
866
|
+
return !0;
|
|
867
|
+
var r = ue.call(e, "details>summary:first-of-type"), u = r ? e.parentElement : e;
|
|
868
|
+
if (ue.call(u, "details:not([open]) *"))
|
|
869
|
+
return !0;
|
|
870
|
+
if (!o || o === "full" || // full-native can run this branch when it falls through in case
|
|
871
|
+
// Element#checkVisibility is unsupported
|
|
872
|
+
o === "full-native" || o === "legacy-full") {
|
|
873
|
+
if (typeof n == "function") {
|
|
874
|
+
for (var l = e; e; ) {
|
|
875
|
+
var d = e.parentElement, v = we(e);
|
|
876
|
+
if (d && !d.shadowRoot && n(d) === !0)
|
|
877
|
+
return $e(e);
|
|
878
|
+
e.assignedSlot ? e = e.assignedSlot : !d && v !== e.ownerDocument ? e = v.host : e = d;
|
|
879
|
+
}
|
|
880
|
+
e = l;
|
|
881
|
+
}
|
|
882
|
+
if (ir(e))
|
|
883
|
+
return !e.getClientRects().length;
|
|
884
|
+
if (o !== "legacy-full")
|
|
885
|
+
return !0;
|
|
886
|
+
} else if (o === "non-zero-area")
|
|
887
|
+
return $e(e);
|
|
888
|
+
return !1;
|
|
889
|
+
}, lr = function(e) {
|
|
890
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
891
|
+
for (var a = e.parentElement; a; ) {
|
|
892
|
+
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
893
|
+
for (var o = 0; o < a.children.length; o++) {
|
|
894
|
+
var n = a.children.item(o);
|
|
895
|
+
if (n.tagName === "LEGEND")
|
|
896
|
+
return ue.call(a, "fieldset[disabled] *") ? !0 : !n.contains(e);
|
|
897
|
+
}
|
|
898
|
+
return !0;
|
|
899
|
+
}
|
|
900
|
+
a = a.parentElement;
|
|
901
|
+
}
|
|
902
|
+
return !1;
|
|
903
|
+
}, Te = function(e, a) {
|
|
904
|
+
return !(a.disabled || er(a) || sr(a, e) || // For a details element with a summary, the summary element gets the focus
|
|
905
|
+
tr(a) || lr(a));
|
|
906
|
+
}, Ne = function(e, a) {
|
|
907
|
+
return !(nr(a) || ce(a) < 0 || !Te(e, a));
|
|
908
|
+
}, cr = function(e) {
|
|
909
|
+
var a = parseInt(e.getAttribute("tabindex"), 10);
|
|
910
|
+
return !!(isNaN(a) || a >= 0);
|
|
911
|
+
}, tt = function(e) {
|
|
912
|
+
var a = [], o = [];
|
|
913
|
+
return e.forEach(function(n, c) {
|
|
914
|
+
var r = !!n.scopeParent, u = r ? n.scopeParent : n, l = Ja(u, r), d = r ? tt(n.candidates) : u;
|
|
915
|
+
l === 0 ? r ? a.push.apply(a, d) : a.push(u) : o.push({
|
|
916
|
+
documentOrder: c,
|
|
917
|
+
tabIndex: l,
|
|
918
|
+
item: n,
|
|
919
|
+
isScope: r,
|
|
920
|
+
content: d
|
|
921
|
+
});
|
|
922
|
+
}), o.sort(Qa).reduce(function(n, c) {
|
|
923
|
+
return c.isScope ? n.push.apply(n, c.content) : n.push(c.content), n;
|
|
924
|
+
}, []).concat(a);
|
|
925
|
+
}, ur = function(e, a) {
|
|
926
|
+
a = a || {};
|
|
927
|
+
var o;
|
|
928
|
+
return a.getShadowRoot ? o = ke([e], a.includeContainer, {
|
|
929
|
+
filter: Ne.bind(null, a),
|
|
930
|
+
flatten: !1,
|
|
931
|
+
getShadowRoot: a.getShadowRoot,
|
|
932
|
+
shadowRootFilter: cr
|
|
933
|
+
}) : o = Je(e, a.includeContainer, Ne.bind(null, a)), tt(o);
|
|
934
|
+
}, dr = function(e, a) {
|
|
935
|
+
a = a || {};
|
|
936
|
+
var o;
|
|
937
|
+
return a.getShadowRoot ? o = ke([e], a.includeContainer, {
|
|
938
|
+
filter: Te.bind(null, a),
|
|
939
|
+
flatten: !0,
|
|
940
|
+
getShadowRoot: a.getShadowRoot
|
|
941
|
+
}) : o = Je(e, a.includeContainer, Te.bind(null, a)), o;
|
|
942
|
+
}, fe = function(e, a) {
|
|
943
|
+
if (a = a || {}, !e)
|
|
944
|
+
throw new Error("No node provided");
|
|
945
|
+
return ue.call(e, ye) === !1 ? !1 : Ne(a, e);
|
|
946
|
+
}, fr = /* @__PURE__ */ qe.concat("iframe:not([inert]):not([inert] *)").join(","), Ee = function(e, a) {
|
|
947
|
+
if (a = a || {}, !e)
|
|
948
|
+
throw new Error("No node provided");
|
|
949
|
+
return ue.call(e, fr) === !1 ? !1 : Te(a, e);
|
|
950
|
+
};
|
|
951
|
+
function Oe(t, e) {
|
|
952
|
+
(e == null || e > t.length) && (e = t.length);
|
|
953
|
+
for (var a = 0, o = Array(e); a < e; a++) o[a] = t[a];
|
|
954
|
+
return o;
|
|
955
|
+
}
|
|
956
|
+
function vr(t) {
|
|
957
|
+
if (Array.isArray(t)) return Oe(t);
|
|
958
|
+
}
|
|
959
|
+
function Pe(t, e, a, o, n, c, r) {
|
|
960
|
+
try {
|
|
961
|
+
var u = t[c](r), l = u.value;
|
|
962
|
+
} catch (d) {
|
|
963
|
+
return void a(d);
|
|
964
|
+
}
|
|
965
|
+
u.done ? e(l) : Promise.resolve(l).then(o, n);
|
|
966
|
+
}
|
|
967
|
+
function je(t) {
|
|
968
|
+
return function() {
|
|
969
|
+
var e = this, a = arguments;
|
|
970
|
+
return new Promise(function(o, n) {
|
|
971
|
+
var c = t.apply(e, a);
|
|
972
|
+
function r(l) {
|
|
973
|
+
Pe(c, o, n, r, u, "next", l);
|
|
974
|
+
}
|
|
975
|
+
function u(l) {
|
|
976
|
+
Pe(c, o, n, r, u, "throw", l);
|
|
977
|
+
}
|
|
978
|
+
r(void 0);
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
function _e(t, e) {
|
|
983
|
+
var a = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
984
|
+
if (!a) {
|
|
985
|
+
if (Array.isArray(t) || (a = at(t)) || e) {
|
|
986
|
+
a && (t = a);
|
|
987
|
+
var o = 0, n = function() {
|
|
988
|
+
};
|
|
989
|
+
return {
|
|
990
|
+
s: n,
|
|
991
|
+
n: function() {
|
|
992
|
+
return o >= t.length ? {
|
|
993
|
+
done: !0
|
|
994
|
+
} : {
|
|
995
|
+
done: !1,
|
|
996
|
+
value: t[o++]
|
|
997
|
+
};
|
|
998
|
+
},
|
|
999
|
+
e: function(l) {
|
|
1000
|
+
throw l;
|
|
1001
|
+
},
|
|
1002
|
+
f: n
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1006
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1007
|
+
}
|
|
1008
|
+
var c, r = !0, u = !1;
|
|
1009
|
+
return {
|
|
1010
|
+
s: function() {
|
|
1011
|
+
a = a.call(t);
|
|
1012
|
+
},
|
|
1013
|
+
n: function() {
|
|
1014
|
+
var l = a.next();
|
|
1015
|
+
return r = l.done, l;
|
|
1016
|
+
},
|
|
1017
|
+
e: function(l) {
|
|
1018
|
+
u = !0, c = l;
|
|
1019
|
+
},
|
|
1020
|
+
f: function() {
|
|
1021
|
+
try {
|
|
1022
|
+
r || a.return == null || a.return();
|
|
1023
|
+
} finally {
|
|
1024
|
+
if (u) throw c;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
function br(t, e, a) {
|
|
1030
|
+
return (e = yr(e)) in t ? Object.defineProperty(t, e, {
|
|
1031
|
+
value: a,
|
|
1032
|
+
enumerable: !0,
|
|
1033
|
+
configurable: !0,
|
|
1034
|
+
writable: !0
|
|
1035
|
+
}) : t[e] = a, t;
|
|
1036
|
+
}
|
|
1037
|
+
function hr(t) {
|
|
1038
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1039
|
+
}
|
|
1040
|
+
function pr() {
|
|
1041
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1042
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1043
|
+
}
|
|
1044
|
+
function Ge(t, e) {
|
|
1045
|
+
var a = Object.keys(t);
|
|
1046
|
+
if (Object.getOwnPropertySymbols) {
|
|
1047
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
1048
|
+
e && (o = o.filter(function(n) {
|
|
1049
|
+
return Object.getOwnPropertyDescriptor(t, n).enumerable;
|
|
1050
|
+
})), a.push.apply(a, o);
|
|
1051
|
+
}
|
|
1052
|
+
return a;
|
|
1053
|
+
}
|
|
1054
|
+
function He(t) {
|
|
1055
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1056
|
+
var a = arguments[e] != null ? arguments[e] : {};
|
|
1057
|
+
e % 2 ? Ge(Object(a), !0).forEach(function(o) {
|
|
1058
|
+
br(t, o, a[o]);
|
|
1059
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : Ge(Object(a)).forEach(function(o) {
|
|
1060
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(a, o));
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
return t;
|
|
1064
|
+
}
|
|
1065
|
+
function be() {
|
|
1066
|
+
var t, e, a = typeof Symbol == "function" ? Symbol : {}, o = a.iterator || "@@iterator", n = a.toStringTag || "@@toStringTag";
|
|
1067
|
+
function c(g, L, B, $) {
|
|
1068
|
+
var G = L && L.prototype instanceof u ? L : u, M = Object.create(G.prototype);
|
|
1069
|
+
return q(M, "_invoke", (function(se, oe, ne) {
|
|
1070
|
+
var W, F, R, z = 0, j = ne || [], H = !1, K = {
|
|
1071
|
+
p: 0,
|
|
1072
|
+
n: 0,
|
|
1073
|
+
v: t,
|
|
1074
|
+
a: N,
|
|
1075
|
+
f: N.bind(t, 4),
|
|
1076
|
+
d: function(i, s) {
|
|
1077
|
+
return W = i, F = 0, R = t, K.n = s, r;
|
|
1078
|
+
}
|
|
1079
|
+
};
|
|
1080
|
+
function N(i, s) {
|
|
1081
|
+
for (F = i, R = s, e = 0; !H && z && !f && e < j.length; e++) {
|
|
1082
|
+
var f, m = j[e], C = K.p, k = m[2];
|
|
1083
|
+
i > 3 ? (f = k === s) && (R = m[(F = m[4]) ? 5 : (F = 3, 3)], m[4] = m[5] = t) : m[0] <= C && ((f = i < 2 && C < m[1]) ? (F = 0, K.v = s, K.n = m[1]) : C < k && (f = i < 3 || m[0] > s || s > k) && (m[4] = i, m[5] = s, K.n = k, F = 0));
|
|
1084
|
+
}
|
|
1085
|
+
if (f || i > 1) return r;
|
|
1086
|
+
throw H = !0, s;
|
|
1087
|
+
}
|
|
1088
|
+
return function(i, s, f) {
|
|
1089
|
+
if (z > 1) throw TypeError("Generator is already running");
|
|
1090
|
+
for (H && s === 1 && N(s, f), F = s, R = f; (e = F < 2 ? t : R) || !H; ) {
|
|
1091
|
+
W || (F ? F < 3 ? (F > 1 && (K.n = -1), N(F, R)) : K.n = R : K.v = R);
|
|
1092
|
+
try {
|
|
1093
|
+
if (z = 2, W) {
|
|
1094
|
+
if (F || (i = "next"), e = W[i]) {
|
|
1095
|
+
if (!(e = e.call(W, R))) throw TypeError("iterator result is not an object");
|
|
1096
|
+
if (!e.done) return e;
|
|
1097
|
+
R = e.value, F < 2 && (F = 0);
|
|
1098
|
+
} else F === 1 && (e = W.return) && e.call(W), F < 2 && (R = TypeError("The iterator does not provide a '" + i + "' method"), F = 1);
|
|
1099
|
+
W = t;
|
|
1100
|
+
} else if ((e = (H = K.n < 0) ? R : se.call(oe, K)) !== r) break;
|
|
1101
|
+
} catch (m) {
|
|
1102
|
+
W = t, F = 1, R = m;
|
|
1103
|
+
} finally {
|
|
1104
|
+
z = 1;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return {
|
|
1108
|
+
value: e,
|
|
1109
|
+
done: H
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
})(g, B, $), !0), M;
|
|
1113
|
+
}
|
|
1114
|
+
var r = {};
|
|
1115
|
+
function u() {
|
|
1116
|
+
}
|
|
1117
|
+
function l() {
|
|
1118
|
+
}
|
|
1119
|
+
function d() {
|
|
1120
|
+
}
|
|
1121
|
+
e = Object.getPrototypeOf;
|
|
1122
|
+
var v = [][o] ? e(e([][o]())) : (q(e = {}, o, function() {
|
|
1123
|
+
return this;
|
|
1124
|
+
}), e), b = d.prototype = u.prototype = Object.create(v);
|
|
1125
|
+
function h(g) {
|
|
1126
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(g, d) : (g.__proto__ = d, q(g, n, "GeneratorFunction")), g.prototype = Object.create(b), g;
|
|
1127
|
+
}
|
|
1128
|
+
return l.prototype = d, q(b, "constructor", d), q(d, "constructor", l), l.displayName = "GeneratorFunction", q(d, n, "GeneratorFunction"), q(b), q(b, n, "Generator"), q(b, o, function() {
|
|
1129
|
+
return this;
|
|
1130
|
+
}), q(b, "toString", function() {
|
|
1131
|
+
return "[object Generator]";
|
|
1132
|
+
}), (be = function() {
|
|
1133
|
+
return {
|
|
1134
|
+
w: c,
|
|
1135
|
+
m: h
|
|
1136
|
+
};
|
|
1137
|
+
})();
|
|
1138
|
+
}
|
|
1139
|
+
function q(t, e, a, o) {
|
|
1140
|
+
var n = Object.defineProperty;
|
|
1141
|
+
try {
|
|
1142
|
+
n({}, "", {});
|
|
1143
|
+
} catch {
|
|
1144
|
+
n = 0;
|
|
1145
|
+
}
|
|
1146
|
+
q = function(c, r, u, l) {
|
|
1147
|
+
function d(v, b) {
|
|
1148
|
+
q(c, v, function(h) {
|
|
1149
|
+
return this._invoke(v, b, h);
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
r ? n ? n(c, r, {
|
|
1153
|
+
value: u,
|
|
1154
|
+
enumerable: !l,
|
|
1155
|
+
configurable: !l,
|
|
1156
|
+
writable: !l
|
|
1157
|
+
}) : c[r] = u : (d("next", 0), d("throw", 1), d("return", 2));
|
|
1158
|
+
}, q(t, e, a, o);
|
|
1159
|
+
}
|
|
1160
|
+
function gr(t) {
|
|
1161
|
+
return vr(t) || hr(t) || at(t) || pr();
|
|
1162
|
+
}
|
|
1163
|
+
function mr(t, e) {
|
|
1164
|
+
if (typeof t != "object" || !t) return t;
|
|
1165
|
+
var a = t[Symbol.toPrimitive];
|
|
1166
|
+
if (a !== void 0) {
|
|
1167
|
+
var o = a.call(t, e);
|
|
1168
|
+
if (typeof o != "object") return o;
|
|
1169
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1170
|
+
}
|
|
1171
|
+
return (e === "string" ? String : Number)(t);
|
|
1172
|
+
}
|
|
1173
|
+
function yr(t) {
|
|
1174
|
+
var e = mr(t, "string");
|
|
1175
|
+
return typeof e == "symbol" ? e : e + "";
|
|
1176
|
+
}
|
|
1177
|
+
function at(t, e) {
|
|
1178
|
+
if (t) {
|
|
1179
|
+
if (typeof t == "string") return Oe(t, e);
|
|
1180
|
+
var a = {}.toString.call(t).slice(8, -1);
|
|
1181
|
+
return a === "Object" && t.constructor && (a = t.constructor.name), a === "Map" || a === "Set" ? Array.from(t) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? Oe(t, e) : void 0;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
var ae = {
|
|
1185
|
+
// Returns the trap from the top of the stack.
|
|
1186
|
+
getActiveTrap: function(e) {
|
|
1187
|
+
return e?.length > 0 ? e[e.length - 1] : null;
|
|
1188
|
+
},
|
|
1189
|
+
// Pauses the currently active trap, then adds a new trap to the stack.
|
|
1190
|
+
activateTrap: function(e, a) {
|
|
1191
|
+
var o = ae.getActiveTrap(e);
|
|
1192
|
+
a !== o && ae.pauseTrap(e);
|
|
1193
|
+
var n = e.indexOf(a);
|
|
1194
|
+
n === -1 || e.splice(n, 1), e.push(a);
|
|
1195
|
+
},
|
|
1196
|
+
// Removes the trap from the top of the stack, then unpauses the next trap down.
|
|
1197
|
+
deactivateTrap: function(e, a) {
|
|
1198
|
+
var o = e.indexOf(a);
|
|
1199
|
+
o !== -1 && e.splice(o, 1), ae.unpauseTrap(e);
|
|
1200
|
+
},
|
|
1201
|
+
// Pauses the trap at the top of the stack.
|
|
1202
|
+
pauseTrap: function(e) {
|
|
1203
|
+
var a = ae.getActiveTrap(e);
|
|
1204
|
+
a?._setPausedState(!0);
|
|
1205
|
+
},
|
|
1206
|
+
// Unpauses the trap at the top of the stack.
|
|
1207
|
+
unpauseTrap: function(e) {
|
|
1208
|
+
var a = ae.getActiveTrap(e);
|
|
1209
|
+
a && !a._isManuallyPaused() && a._setPausedState(!1);
|
|
1210
|
+
}
|
|
1211
|
+
}, wr = function(e) {
|
|
1212
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
1213
|
+
}, Cr = function(e) {
|
|
1214
|
+
return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
|
|
1215
|
+
}, pe = function(e) {
|
|
1216
|
+
return e?.key === "Tab" || e?.keyCode === 9;
|
|
1217
|
+
}, kr = function(e) {
|
|
1218
|
+
return pe(e) && !e.shiftKey;
|
|
1219
|
+
}, Tr = function(e) {
|
|
1220
|
+
return pe(e) && e.shiftKey;
|
|
1221
|
+
}, Me = function(e) {
|
|
1222
|
+
return setTimeout(e, 0);
|
|
1223
|
+
}, ve = function(e) {
|
|
1224
|
+
for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++)
|
|
1225
|
+
o[n - 1] = arguments[n];
|
|
1226
|
+
return typeof e == "function" ? e.apply(void 0, o) : e;
|
|
1227
|
+
}, me = function(e) {
|
|
1228
|
+
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
1229
|
+
}, Sr = [], xr = function(e, a) {
|
|
1230
|
+
var o = a?.document || document, n = a?.trapStack || Sr, c = He({
|
|
1231
|
+
returnFocusOnDeactivate: !0,
|
|
1232
|
+
escapeDeactivates: !0,
|
|
1233
|
+
delayInitialFocus: !0,
|
|
1234
|
+
delayReturnFocus: !0,
|
|
1235
|
+
isolateSubtrees: !1,
|
|
1236
|
+
isKeyForward: kr,
|
|
1237
|
+
isKeyBackward: Tr
|
|
1238
|
+
}, a), r = {
|
|
1239
|
+
// containers given to createFocusTrap()
|
|
1240
|
+
/** @type {Array<HTMLElement>} */
|
|
1241
|
+
containers: [],
|
|
1242
|
+
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
1243
|
+
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
1244
|
+
// is active, but the trap should never get to a state where there isn't at least one group
|
|
1245
|
+
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
1246
|
+
// result in an error being thrown)
|
|
1247
|
+
/** @type {Array<{
|
|
1248
|
+
* container: HTMLElement,
|
|
1249
|
+
* tabbableNodes: Array<HTMLElement>, // empty if none
|
|
1250
|
+
* focusableNodes: Array<HTMLElement>, // empty if none
|
|
1251
|
+
* posTabIndexesFound: boolean,
|
|
1252
|
+
* firstTabbableNode: HTMLElement|undefined,
|
|
1253
|
+
* lastTabbableNode: HTMLElement|undefined,
|
|
1254
|
+
* firstDomTabbableNode: HTMLElement|undefined,
|
|
1255
|
+
* lastDomTabbableNode: HTMLElement|undefined,
|
|
1256
|
+
* nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
1257
|
+
* }>}
|
|
1258
|
+
*/
|
|
1259
|
+
containerGroups: [],
|
|
1260
|
+
// same order/length as `containers` list
|
|
1261
|
+
// references to objects in `containerGroups`, but only those that actually have
|
|
1262
|
+
// tabbable nodes in them
|
|
1263
|
+
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
1264
|
+
// the same length
|
|
1265
|
+
tabbableGroups: [],
|
|
1266
|
+
// references to nodes that are siblings to the ancestors of this trap's containers.
|
|
1267
|
+
/** @type {Set<HTMLElement>} */
|
|
1268
|
+
adjacentElements: /* @__PURE__ */ new Set(),
|
|
1269
|
+
// references to nodes that were inert or aria-hidden before the trap was activated.
|
|
1270
|
+
/** @type {Set<HTMLElement>} */
|
|
1271
|
+
alreadySilent: /* @__PURE__ */ new Set(),
|
|
1272
|
+
nodeFocusedBeforeActivation: null,
|
|
1273
|
+
mostRecentlyFocusedNode: null,
|
|
1274
|
+
active: !1,
|
|
1275
|
+
paused: !1,
|
|
1276
|
+
manuallyPaused: !1,
|
|
1277
|
+
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
1278
|
+
// has been delayed during activation
|
|
1279
|
+
delayInitialFocusTimer: void 0,
|
|
1280
|
+
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1281
|
+
recentNavEvent: void 0
|
|
1282
|
+
}, u, l = function(i, s, f) {
|
|
1283
|
+
return i && i[s] !== void 0 ? i[s] : c[f || s];
|
|
1284
|
+
}, d = function(i, s) {
|
|
1285
|
+
var f = typeof s?.composedPath == "function" ? s.composedPath() : void 0;
|
|
1286
|
+
return r.containerGroups.findIndex(function(m) {
|
|
1287
|
+
var C = m.container, k = m.tabbableNodes;
|
|
1288
|
+
return C.contains(i) || f?.includes(C) || k.find(function(w) {
|
|
1289
|
+
return w === i;
|
|
1290
|
+
});
|
|
1291
|
+
});
|
|
1292
|
+
}, v = function(i) {
|
|
1293
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = s.hasFallback, m = f === void 0 ? !1 : f, C = s.params, k = C === void 0 ? [] : C, w = c[i];
|
|
1294
|
+
if (typeof w == "function" && (w = w.apply(void 0, gr(k))), w === !0 && (w = void 0), !w) {
|
|
1295
|
+
if (w === void 0 || w === !1)
|
|
1296
|
+
return w;
|
|
1297
|
+
throw new Error("`".concat(i, "` was specified but was not a node, or did not return a node"));
|
|
1298
|
+
}
|
|
1299
|
+
var x = w;
|
|
1300
|
+
if (typeof w == "string") {
|
|
1301
|
+
try {
|
|
1302
|
+
x = o.querySelector(w);
|
|
1303
|
+
} catch (T) {
|
|
1304
|
+
throw new Error("`".concat(i, '` appears to be an invalid selector; error="').concat(T.message, '"'));
|
|
1305
|
+
}
|
|
1306
|
+
if (!x && !m)
|
|
1307
|
+
throw new Error("`".concat(i, "` as selector refers to no known node"));
|
|
1308
|
+
}
|
|
1309
|
+
return x;
|
|
1310
|
+
}, b = function() {
|
|
1311
|
+
var i = v("initialFocus", {
|
|
1312
|
+
hasFallback: !0
|
|
1313
|
+
});
|
|
1314
|
+
if (i === !1)
|
|
1315
|
+
return !1;
|
|
1316
|
+
if (i === void 0 || i && !Ee(i, c.tabbableOptions))
|
|
1317
|
+
if (d(o.activeElement) >= 0)
|
|
1318
|
+
i = o.activeElement;
|
|
1319
|
+
else {
|
|
1320
|
+
var s = r.tabbableGroups[0], f = s && s.firstTabbableNode;
|
|
1321
|
+
i = f || v("fallbackFocus");
|
|
1322
|
+
}
|
|
1323
|
+
else i === null && (i = v("fallbackFocus"));
|
|
1324
|
+
if (!i)
|
|
1325
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1326
|
+
return i;
|
|
1327
|
+
}, h = function() {
|
|
1328
|
+
if (r.containerGroups = r.containers.map(function(i) {
|
|
1329
|
+
var s = ur(i, c.tabbableOptions), f = dr(i, c.tabbableOptions), m = s.length > 0 ? s[0] : void 0, C = s.length > 0 ? s[s.length - 1] : void 0, k = f.find(function(T) {
|
|
1330
|
+
return fe(T);
|
|
1331
|
+
}), w = f.slice().reverse().find(function(T) {
|
|
1332
|
+
return fe(T);
|
|
1333
|
+
}), x = !!s.find(function(T) {
|
|
1334
|
+
return ce(T) > 0;
|
|
1335
|
+
});
|
|
1336
|
+
return {
|
|
1337
|
+
container: i,
|
|
1338
|
+
tabbableNodes: s,
|
|
1339
|
+
focusableNodes: f,
|
|
1340
|
+
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1341
|
+
posTabIndexesFound: x,
|
|
1342
|
+
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1343
|
+
firstTabbableNode: m,
|
|
1344
|
+
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1345
|
+
lastTabbableNode: C,
|
|
1346
|
+
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
1347
|
+
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
1348
|
+
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
1349
|
+
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
|
1350
|
+
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
|
1351
|
+
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
1352
|
+
// be avoided anyway...
|
|
1353
|
+
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1354
|
+
firstDomTabbableNode: k,
|
|
1355
|
+
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1356
|
+
lastDomTabbableNode: w,
|
|
1357
|
+
/**
|
|
1358
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
1359
|
+
* in this container, if any.
|
|
1360
|
+
* @param {HTMLElement} node
|
|
1361
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
1362
|
+
* in reverse.
|
|
1363
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1364
|
+
*/
|
|
1365
|
+
nextTabbableNode: function(P) {
|
|
1366
|
+
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, X = s.indexOf(P);
|
|
1367
|
+
return X < 0 ? U ? f.slice(f.indexOf(P) + 1).find(function(le) {
|
|
1368
|
+
return fe(le);
|
|
1369
|
+
}) : f.slice(0, f.indexOf(P)).reverse().find(function(le) {
|
|
1370
|
+
return fe(le);
|
|
1371
|
+
}) : s[X + (U ? 1 : -1)];
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(i) {
|
|
1375
|
+
return i.tabbableNodes.length > 0;
|
|
1376
|
+
}), r.tabbableGroups.length <= 0 && !v("fallbackFocus"))
|
|
1377
|
+
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
1378
|
+
if (r.containerGroups.find(function(i) {
|
|
1379
|
+
return i.posTabIndexesFound;
|
|
1380
|
+
}) && r.containerGroups.length > 1)
|
|
1381
|
+
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
1382
|
+
}, g = function(i) {
|
|
1383
|
+
var s = i.activeElement;
|
|
1384
|
+
if (s)
|
|
1385
|
+
return s.shadowRoot && s.shadowRoot.activeElement !== null ? g(s.shadowRoot) : s;
|
|
1386
|
+
}, L = function(i) {
|
|
1387
|
+
if (i !== !1 && i !== g(document)) {
|
|
1388
|
+
if (!i || !i.focus) {
|
|
1389
|
+
L(b());
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
i.focus({
|
|
1393
|
+
preventScroll: !!c.preventScroll
|
|
1394
|
+
}), r.mostRecentlyFocusedNode = i, wr(i) && i.select();
|
|
1395
|
+
}
|
|
1396
|
+
}, B = function(i) {
|
|
1397
|
+
var s = v("setReturnFocus", {
|
|
1398
|
+
params: [i]
|
|
1399
|
+
});
|
|
1400
|
+
return s || (s === !1 ? !1 : i);
|
|
1401
|
+
}, $ = function(i) {
|
|
1402
|
+
var s = i.target, f = i.event, m = i.isBackward, C = m === void 0 ? !1 : m;
|
|
1403
|
+
s = s || me(f), h();
|
|
1404
|
+
var k = null;
|
|
1405
|
+
if (r.tabbableGroups.length > 0) {
|
|
1406
|
+
var w = d(s, f), x = w >= 0 ? r.containerGroups[w] : void 0;
|
|
1407
|
+
if (w < 0)
|
|
1408
|
+
C ? k = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : k = r.tabbableGroups[0].firstTabbableNode;
|
|
1409
|
+
else if (C) {
|
|
1410
|
+
var T = r.tabbableGroups.findIndex(function(xe) {
|
|
1411
|
+
var Re = xe.firstTabbableNode;
|
|
1412
|
+
return s === Re;
|
|
1413
|
+
});
|
|
1414
|
+
if (T < 0 && (x.container === s || Ee(s, c.tabbableOptions) && !fe(s, c.tabbableOptions) && !x.nextTabbableNode(s, !1)) && (T = w), T >= 0) {
|
|
1415
|
+
var P = T === 0 ? r.tabbableGroups.length - 1 : T - 1, U = r.tabbableGroups[P];
|
|
1416
|
+
k = ce(s) >= 0 ? U.lastTabbableNode : U.lastDomTabbableNode;
|
|
1417
|
+
} else pe(f) || (k = x.nextTabbableNode(s, !1));
|
|
1418
|
+
} else {
|
|
1419
|
+
var X = r.tabbableGroups.findIndex(function(xe) {
|
|
1420
|
+
var Re = xe.lastTabbableNode;
|
|
1421
|
+
return s === Re;
|
|
1422
|
+
});
|
|
1423
|
+
if (X < 0 && (x.container === s || Ee(s, c.tabbableOptions) && !fe(s, c.tabbableOptions) && !x.nextTabbableNode(s)) && (X = w), X >= 0) {
|
|
1424
|
+
var le = X === r.tabbableGroups.length - 1 ? 0 : X + 1, ie = r.tabbableGroups[le];
|
|
1425
|
+
k = ce(s) >= 0 ? ie.firstTabbableNode : ie.firstDomTabbableNode;
|
|
1426
|
+
} else pe(f) || (k = x.nextTabbableNode(s));
|
|
1427
|
+
}
|
|
1428
|
+
} else
|
|
1429
|
+
k = v("fallbackFocus");
|
|
1430
|
+
return k;
|
|
1431
|
+
}, G = function(i) {
|
|
1432
|
+
var s = me(i);
|
|
1433
|
+
if (!(d(s, i) >= 0)) {
|
|
1434
|
+
if (ve(c.clickOutsideDeactivates, i)) {
|
|
1435
|
+
u.deactivate({
|
|
1436
|
+
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
1437
|
+
// which will result in the outside click setting focus to the node
|
|
1438
|
+
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
1439
|
+
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
1440
|
+
// on activation (or the configured `setReturnFocus` node), whether the
|
|
1441
|
+
// outside click was on a focusable node or not
|
|
1442
|
+
returnFocus: c.returnFocusOnDeactivate
|
|
1443
|
+
});
|
|
1444
|
+
return;
|
|
1445
|
+
}
|
|
1446
|
+
ve(c.allowOutsideClick, i) || i.preventDefault();
|
|
1447
|
+
}
|
|
1448
|
+
}, M = function(i) {
|
|
1449
|
+
var s = me(i), f = d(s, i) >= 0;
|
|
1450
|
+
if (f || s instanceof Document)
|
|
1451
|
+
f && (r.mostRecentlyFocusedNode = s);
|
|
1452
|
+
else {
|
|
1453
|
+
i.stopImmediatePropagation();
|
|
1454
|
+
var m, C = !0;
|
|
1455
|
+
if (r.mostRecentlyFocusedNode)
|
|
1456
|
+
if (ce(r.mostRecentlyFocusedNode) > 0) {
|
|
1457
|
+
var k = d(r.mostRecentlyFocusedNode), w = r.containerGroups[k].tabbableNodes;
|
|
1458
|
+
if (w.length > 0) {
|
|
1459
|
+
var x = w.findIndex(function(T) {
|
|
1460
|
+
return T === r.mostRecentlyFocusedNode;
|
|
1461
|
+
});
|
|
1462
|
+
x >= 0 && (c.isKeyForward(r.recentNavEvent) ? x + 1 < w.length && (m = w[x + 1], C = !1) : x - 1 >= 0 && (m = w[x - 1], C = !1));
|
|
1463
|
+
}
|
|
1464
|
+
} else
|
|
1465
|
+
r.containerGroups.some(function(T) {
|
|
1466
|
+
return T.tabbableNodes.some(function(P) {
|
|
1467
|
+
return ce(P) > 0;
|
|
1468
|
+
});
|
|
1469
|
+
}) || (C = !1);
|
|
1470
|
+
else
|
|
1471
|
+
C = !1;
|
|
1472
|
+
C && (m = $({
|
|
1473
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1474
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
1475
|
+
target: r.mostRecentlyFocusedNode,
|
|
1476
|
+
isBackward: c.isKeyBackward(r.recentNavEvent)
|
|
1477
|
+
})), L(m || r.mostRecentlyFocusedNode || b());
|
|
1478
|
+
}
|
|
1479
|
+
r.recentNavEvent = void 0;
|
|
1480
|
+
}, se = function(i) {
|
|
1481
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1482
|
+
r.recentNavEvent = i;
|
|
1483
|
+
var f = $({
|
|
1484
|
+
event: i,
|
|
1485
|
+
isBackward: s
|
|
1486
|
+
});
|
|
1487
|
+
f && (pe(i) && i.preventDefault(), L(f));
|
|
1488
|
+
}, oe = function(i) {
|
|
1489
|
+
(c.isKeyForward(i) || c.isKeyBackward(i)) && se(i, c.isKeyBackward(i));
|
|
1490
|
+
}, ne = function(i) {
|
|
1491
|
+
Cr(i) && ve(c.escapeDeactivates, i) !== !1 && (i.preventDefault(), u.deactivate());
|
|
1492
|
+
}, W = function(i) {
|
|
1493
|
+
var s = me(i);
|
|
1494
|
+
d(s, i) >= 0 || ve(c.clickOutsideDeactivates, i) || ve(c.allowOutsideClick, i) || (i.preventDefault(), i.stopImmediatePropagation());
|
|
1495
|
+
}, F = function() {
|
|
1496
|
+
if (!r.active)
|
|
1497
|
+
return Promise.resolve();
|
|
1498
|
+
ae.activateTrap(n, u);
|
|
1499
|
+
var i;
|
|
1500
|
+
return c.delayInitialFocus ? i = new Promise(function(s) {
|
|
1501
|
+
r.delayInitialFocusTimer = Me(function() {
|
|
1502
|
+
L(b()), s();
|
|
1503
|
+
});
|
|
1504
|
+
}) : (i = Promise.resolve(), L(b())), o.addEventListener("focusin", M, !0), o.addEventListener("mousedown", G, {
|
|
1505
|
+
capture: !0,
|
|
1506
|
+
passive: !1
|
|
1507
|
+
}), o.addEventListener("touchstart", G, {
|
|
1508
|
+
capture: !0,
|
|
1509
|
+
passive: !1
|
|
1510
|
+
}), o.addEventListener("click", W, {
|
|
1511
|
+
capture: !0,
|
|
1512
|
+
passive: !1
|
|
1513
|
+
}), o.addEventListener("keydown", oe, {
|
|
1514
|
+
capture: !0,
|
|
1515
|
+
passive: !1
|
|
1516
|
+
}), o.addEventListener("keydown", ne), i;
|
|
1517
|
+
}, R = function(i) {
|
|
1518
|
+
r.active && !r.paused && u._setSubtreeIsolation(!1), r.adjacentElements.clear(), r.alreadySilent.clear();
|
|
1519
|
+
var s = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), m = _e(i), C;
|
|
1520
|
+
try {
|
|
1521
|
+
for (m.s(); !(C = m.n()).done; ) {
|
|
1522
|
+
var k = C.value;
|
|
1523
|
+
s.add(k);
|
|
1524
|
+
for (var w = typeof ShadowRoot < "u" && k.getRootNode() instanceof ShadowRoot, x = k; x; ) {
|
|
1525
|
+
s.add(x);
|
|
1526
|
+
var T = x.parentElement, P = [];
|
|
1527
|
+
T ? P = T.children : !T && w && (P = x.getRootNode().children, T = x.getRootNode().host, w = typeof ShadowRoot < "u" && T.getRootNode() instanceof ShadowRoot);
|
|
1528
|
+
var U = _e(P), X;
|
|
1529
|
+
try {
|
|
1530
|
+
for (U.s(); !(X = U.n()).done; ) {
|
|
1531
|
+
var le = X.value;
|
|
1532
|
+
f.add(le);
|
|
1533
|
+
}
|
|
1534
|
+
} catch (ie) {
|
|
1535
|
+
U.e(ie);
|
|
1536
|
+
} finally {
|
|
1537
|
+
U.f();
|
|
1538
|
+
}
|
|
1539
|
+
x = T;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
} catch (ie) {
|
|
1543
|
+
m.e(ie);
|
|
1544
|
+
} finally {
|
|
1545
|
+
m.f();
|
|
1546
|
+
}
|
|
1547
|
+
s.forEach(function(ie) {
|
|
1548
|
+
f.delete(ie);
|
|
1549
|
+
}), r.adjacentElements = f;
|
|
1550
|
+
}, z = function() {
|
|
1551
|
+
if (r.active)
|
|
1552
|
+
return o.removeEventListener("focusin", M, !0), o.removeEventListener("mousedown", G, !0), o.removeEventListener("touchstart", G, !0), o.removeEventListener("click", W, !0), o.removeEventListener("keydown", oe, !0), o.removeEventListener("keydown", ne), u;
|
|
1553
|
+
}, j = function(i) {
|
|
1554
|
+
var s = r.mostRecentlyFocusedNode;
|
|
1555
|
+
if (s) {
|
|
1556
|
+
var f = i.some(function(C) {
|
|
1557
|
+
var k = Array.from(C.removedNodes);
|
|
1558
|
+
return k.some(function(w) {
|
|
1559
|
+
return w === s || typeof w.contains == "function" && w.contains(s);
|
|
1560
|
+
});
|
|
1561
|
+
});
|
|
1562
|
+
if (f && r.containers.some(function(C) {
|
|
1563
|
+
return C?.isConnected;
|
|
1564
|
+
})) {
|
|
1565
|
+
h();
|
|
1566
|
+
var m = b();
|
|
1567
|
+
L(m);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
}, H = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(j) : void 0, K = function() {
|
|
1571
|
+
H && (H.disconnect(), r.active && !r.paused && r.containers.map(function(i) {
|
|
1572
|
+
H.observe(i, {
|
|
1573
|
+
subtree: !0,
|
|
1574
|
+
childList: !0
|
|
1575
|
+
});
|
|
1576
|
+
}));
|
|
1577
|
+
};
|
|
1578
|
+
return u = {
|
|
1579
|
+
get active() {
|
|
1580
|
+
return r.active;
|
|
1581
|
+
},
|
|
1582
|
+
get paused() {
|
|
1583
|
+
return r.paused;
|
|
1584
|
+
},
|
|
1585
|
+
activate: function(i) {
|
|
1586
|
+
if (r.active)
|
|
1587
|
+
return this;
|
|
1588
|
+
var s = l(i, "onActivate"), f = l(i, "onPostActivate"), m = l(i, "checkCanFocusTrap"), C = ae.getActiveTrap(n), k = !1;
|
|
1589
|
+
if (C && !C.paused) {
|
|
1590
|
+
var w;
|
|
1591
|
+
(w = C._setSubtreeIsolation) === null || w === void 0 || w.call(C, !1), k = !0;
|
|
1592
|
+
}
|
|
1593
|
+
try {
|
|
1594
|
+
m || h(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = g(o), s?.({
|
|
1595
|
+
trap: u
|
|
1596
|
+
});
|
|
1597
|
+
var x = /* @__PURE__ */ (function() {
|
|
1598
|
+
var P = je(/* @__PURE__ */ be().m(function U() {
|
|
1599
|
+
return be().w(function(X) {
|
|
1600
|
+
for (; ; ) switch (X.n) {
|
|
1601
|
+
case 0:
|
|
1602
|
+
return m && h(), X.n = 1, F();
|
|
1603
|
+
case 1:
|
|
1604
|
+
u._setSubtreeIsolation(!0), K(), f?.({
|
|
1605
|
+
trap: u
|
|
1606
|
+
});
|
|
1607
|
+
case 2:
|
|
1608
|
+
return X.a(2);
|
|
1609
|
+
}
|
|
1610
|
+
}, U);
|
|
1611
|
+
}));
|
|
1612
|
+
return function() {
|
|
1613
|
+
return P.apply(this, arguments);
|
|
1614
|
+
};
|
|
1615
|
+
})();
|
|
1616
|
+
if (m)
|
|
1617
|
+
return m(r.containers.concat()).then(x, x), this;
|
|
1618
|
+
x();
|
|
1619
|
+
} catch (P) {
|
|
1620
|
+
if (C === ae.getActiveTrap(n) && k) {
|
|
1621
|
+
var T;
|
|
1622
|
+
(T = C._setSubtreeIsolation) === null || T === void 0 || T.call(C, !0);
|
|
1623
|
+
}
|
|
1624
|
+
throw P;
|
|
1625
|
+
}
|
|
1626
|
+
return this;
|
|
1627
|
+
},
|
|
1628
|
+
deactivate: function(i) {
|
|
1629
|
+
if (!r.active)
|
|
1630
|
+
return this;
|
|
1631
|
+
var s = He({
|
|
1632
|
+
onDeactivate: c.onDeactivate,
|
|
1633
|
+
onPostDeactivate: c.onPostDeactivate,
|
|
1634
|
+
checkCanReturnFocus: c.checkCanReturnFocus
|
|
1635
|
+
}, i);
|
|
1636
|
+
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, r.paused || u._setSubtreeIsolation(!1), r.alreadySilent.clear(), z(), r.active = !1, r.paused = !1, K(), ae.deactivateTrap(n, u);
|
|
1637
|
+
var f = l(s, "onDeactivate"), m = l(s, "onPostDeactivate"), C = l(s, "checkCanReturnFocus"), k = l(s, "delayReturnFocus"), w = l(s, "returnFocus", "returnFocusOnDeactivate");
|
|
1638
|
+
f?.({
|
|
1639
|
+
trap: u
|
|
1640
|
+
});
|
|
1641
|
+
var x = function() {
|
|
1642
|
+
w && L(B(r.nodeFocusedBeforeActivation)), m?.({
|
|
1643
|
+
trap: u
|
|
1644
|
+
});
|
|
1645
|
+
}, T = function() {
|
|
1646
|
+
k && w ? Me(x) : x();
|
|
1647
|
+
};
|
|
1648
|
+
return w && C ? (C(B(r.nodeFocusedBeforeActivation)).then(T, T), this) : (T(), this);
|
|
1649
|
+
},
|
|
1650
|
+
pause: function(i) {
|
|
1651
|
+
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0, i)) : this;
|
|
1652
|
+
},
|
|
1653
|
+
unpause: function(i) {
|
|
1654
|
+
return r.active ? (r.manuallyPaused = !1, n[n.length - 1] !== this ? this : this._setPausedState(!1, i)) : this;
|
|
1655
|
+
},
|
|
1656
|
+
updateContainerElements: function(i) {
|
|
1657
|
+
var s = [].concat(i).filter(Boolean);
|
|
1658
|
+
return r.containers = s.map(function(f) {
|
|
1659
|
+
return typeof f == "string" ? o.querySelector(f) : f;
|
|
1660
|
+
}), c.isolateSubtrees && R(r.containers), r.active && (h(), r.paused || u._setSubtreeIsolation(!0)), K(), this;
|
|
1661
|
+
}
|
|
1662
|
+
}, Object.defineProperties(u, {
|
|
1663
|
+
_isManuallyPaused: {
|
|
1664
|
+
value: function() {
|
|
1665
|
+
return r.manuallyPaused;
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
_setPausedState: {
|
|
1669
|
+
value: function(i, s) {
|
|
1670
|
+
if (r.paused === i)
|
|
1671
|
+
return this;
|
|
1672
|
+
if (r.paused = i, i) {
|
|
1673
|
+
var f = l(s, "onPause"), m = l(s, "onPostPause");
|
|
1674
|
+
f?.({
|
|
1675
|
+
trap: u
|
|
1676
|
+
}), z(), u._setSubtreeIsolation(!1), K(), m?.({
|
|
1677
|
+
trap: u
|
|
1678
|
+
});
|
|
1679
|
+
} else {
|
|
1680
|
+
var C = l(s, "onUnpause"), k = l(s, "onPostUnpause");
|
|
1681
|
+
C?.({
|
|
1682
|
+
trap: u
|
|
1683
|
+
});
|
|
1684
|
+
var w = /* @__PURE__ */ (function() {
|
|
1685
|
+
var x = je(/* @__PURE__ */ be().m(function T() {
|
|
1686
|
+
return be().w(function(P) {
|
|
1687
|
+
for (; ; ) switch (P.n) {
|
|
1688
|
+
case 0:
|
|
1689
|
+
return h(), P.n = 1, F();
|
|
1690
|
+
case 1:
|
|
1691
|
+
u._setSubtreeIsolation(!0), K(), k?.({
|
|
1692
|
+
trap: u
|
|
1693
|
+
});
|
|
1694
|
+
case 2:
|
|
1695
|
+
return P.a(2);
|
|
1696
|
+
}
|
|
1697
|
+
}, T);
|
|
1698
|
+
}));
|
|
1699
|
+
return function() {
|
|
1700
|
+
return x.apply(this, arguments);
|
|
1701
|
+
};
|
|
1702
|
+
})();
|
|
1703
|
+
w();
|
|
1704
|
+
}
|
|
1705
|
+
return this;
|
|
1706
|
+
}
|
|
1707
|
+
},
|
|
1708
|
+
_setSubtreeIsolation: {
|
|
1709
|
+
value: function(i) {
|
|
1710
|
+
c.isolateSubtrees && r.adjacentElements.forEach(function(s) {
|
|
1711
|
+
var f;
|
|
1712
|
+
i ? c.isolateSubtrees === "aria-hidden" ? ((s.ariaHidden === "true" || ((f = s.getAttribute("aria-hidden")) === null || f === void 0 ? void 0 : f.toLowerCase()) === "true") && r.alreadySilent.add(s), s.setAttribute("aria-hidden", "true")) : ((s.inert || s.hasAttribute("inert")) && r.alreadySilent.add(s), s.setAttribute("inert", !0)) : r.alreadySilent.has(s) || (c.isolateSubtrees === "aria-hidden" ? s.removeAttribute("aria-hidden") : s.removeAttribute("inert"));
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
}), u.updateContainerElements(e), u;
|
|
1717
|
+
};
|
|
1718
|
+
function rt(t, e = {}) {
|
|
1719
|
+
let a;
|
|
1720
|
+
const { immediate: o, ...n } = e, c = Fe(!1), r = Fe(!1), u = (b) => a && a.activate(b), l = (b) => a && a.deactivate(b), d = () => {
|
|
1721
|
+
a && (a.pause(), r.value = !0);
|
|
1722
|
+
}, v = () => {
|
|
1723
|
+
a && (a.unpause(), r.value = !1);
|
|
1724
|
+
};
|
|
1725
|
+
return Q(_(() => ga(Le(t)).map((b) => {
|
|
1726
|
+
const h = Le(b);
|
|
1727
|
+
return typeof h == "string" ? h : ma(h);
|
|
1728
|
+
}).filter(qa)), (b) => {
|
|
1729
|
+
if (b.length)
|
|
1730
|
+
if (!a)
|
|
1731
|
+
a = xr(b, {
|
|
1732
|
+
...n,
|
|
1733
|
+
onActivate(h) {
|
|
1734
|
+
c.value = !0, e.onActivate && e.onActivate(h);
|
|
1735
|
+
},
|
|
1736
|
+
onDeactivate(h) {
|
|
1737
|
+
c.value = !1, e.onDeactivate && e.onDeactivate(h);
|
|
1738
|
+
}
|
|
1739
|
+
}), o && u();
|
|
1740
|
+
else {
|
|
1741
|
+
const h = a?.active;
|
|
1742
|
+
a?.updateContainerElements(b), !h && o && u();
|
|
1743
|
+
}
|
|
1744
|
+
}, { flush: "post" }), ya(() => l()), {
|
|
1745
|
+
hasFocus: c,
|
|
1746
|
+
isPaused: r,
|
|
1747
|
+
activate: u,
|
|
1748
|
+
deactivate: l,
|
|
1749
|
+
pause: d,
|
|
1750
|
+
unpause: v
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
628
1754
|
key: 0,
|
|
629
1755
|
class: "sticky top-0"
|
|
630
|
-
},
|
|
1756
|
+
}, Or = ["id"], Br = {
|
|
631
1757
|
key: 1,
|
|
632
1758
|
class: "sticky bottom-0"
|
|
633
|
-
},
|
|
1759
|
+
}, Ar = /* @__PURE__ */ Y({
|
|
634
1760
|
__name: "Modal",
|
|
635
1761
|
props: {
|
|
636
1762
|
title: {},
|
|
637
1763
|
titleColor: { default: "dark-3" },
|
|
638
|
-
|
|
1764
|
+
customClass: { default: "" },
|
|
639
1765
|
visible: { type: Boolean, default: !1 },
|
|
640
|
-
|
|
641
|
-
|
|
1766
|
+
showBackdrop: { type: Boolean, default: !0 },
|
|
1767
|
+
showHeader: { type: Boolean, default: !0 },
|
|
642
1768
|
color: { default: "light-1" },
|
|
643
1769
|
backdropColor: { default: "dark-4" },
|
|
644
1770
|
placement: { default: "center" },
|
|
645
|
-
|
|
1771
|
+
width: { default: "small" }
|
|
646
1772
|
},
|
|
647
1773
|
emits: ["open", "close"],
|
|
648
|
-
setup(
|
|
649
|
-
const
|
|
1774
|
+
setup(t, { expose: e, emit: a }) {
|
|
1775
|
+
const o = t, n = Z(), c = a, r = D(), u = D(), l = D(o.visible), d = D(!1), v = Ie();
|
|
1776
|
+
let b = null;
|
|
1777
|
+
const { activate: h, deactivate: g } = rt(
|
|
1778
|
+
u,
|
|
1779
|
+
{ immediate: !1 }
|
|
1780
|
+
), L = () => {
|
|
650
1781
|
l.value = !l.value;
|
|
651
|
-
},
|
|
1782
|
+
}, B = () => {
|
|
652
1783
|
l.value = !0;
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
},
|
|
1784
|
+
}, $ = () => {
|
|
1785
|
+
d.value === !0 && (l.value = !1);
|
|
1786
|
+
}, G = () => {
|
|
656
1787
|
c("open", !0);
|
|
657
|
-
},
|
|
1788
|
+
}, M = () => {
|
|
658
1789
|
c("close", !1);
|
|
659
|
-
},
|
|
660
|
-
const
|
|
1790
|
+
}, se = _(() => {
|
|
1791
|
+
const R = {
|
|
661
1792
|
top: 25,
|
|
662
1793
|
center: 50,
|
|
663
1794
|
bottom: 75
|
|
664
|
-
}, { placement:
|
|
665
|
-
return { "--vertical-placement": (
|
|
666
|
-
}),
|
|
667
|
-
const {
|
|
1795
|
+
}, { placement: z } = o;
|
|
1796
|
+
return { "--vertical-placement": (R[z] ?? R.center) + "%" };
|
|
1797
|
+
}), oe = _(() => {
|
|
1798
|
+
const { width: R } = o, z = {
|
|
668
1799
|
small: "max-w-[28rem]",
|
|
669
1800
|
medium: "max-w-[28rem] md:max-w-[36rem]",
|
|
670
1801
|
large: "max-w-[28rem] md:max-w-[56rem]"
|
|
671
1802
|
};
|
|
672
|
-
return
|
|
673
|
-
}),
|
|
674
|
-
|
|
675
|
-
},
|
|
676
|
-
|
|
1803
|
+
return z[R] ?? z.small;
|
|
1804
|
+
}), ne = () => {
|
|
1805
|
+
d.value = !0, u.value && h();
|
|
1806
|
+
}, W = () => {
|
|
1807
|
+
d.value = !1;
|
|
677
1808
|
};
|
|
678
|
-
return
|
|
679
|
-
l.value =
|
|
680
|
-
}),
|
|
681
|
-
() =>
|
|
682
|
-
(
|
|
683
|
-
l.value =
|
|
1809
|
+
return ze(r, (R = !1) => {
|
|
1810
|
+
l.value = R;
|
|
1811
|
+
}), Q(
|
|
1812
|
+
() => o.visible,
|
|
1813
|
+
(R) => {
|
|
1814
|
+
l.value = R;
|
|
684
1815
|
}
|
|
685
|
-
),
|
|
686
|
-
|
|
687
|
-
}),
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
toggle: u,
|
|
694
|
-
close: p,
|
|
695
|
-
open: d
|
|
696
|
-
}), ($, N) => (a(), n("div", {
|
|
697
|
-
style: _(A.value),
|
|
1816
|
+
), Q(l, (R) => {
|
|
1817
|
+
R === !0 ? (typeof document < "u" && (b = document.activeElement), G()) : R === !1 && (g(), b?.focus(), b = null, d.value === !0 && M());
|
|
1818
|
+
}), Ke(l), e({
|
|
1819
|
+
toggle: L,
|
|
1820
|
+
close: $,
|
|
1821
|
+
open: B
|
|
1822
|
+
}), (R, z) => (p(), y("div", {
|
|
1823
|
+
style: ge(se.value),
|
|
698
1824
|
visible: l.value,
|
|
699
1825
|
ref_key: "modalRef",
|
|
700
|
-
ref:
|
|
1826
|
+
ref: r
|
|
701
1827
|
}, [
|
|
702
|
-
|
|
1828
|
+
t.showBackdrop ? (p(), Se(te, {
|
|
703
1829
|
key: 0,
|
|
704
1830
|
name: "fade",
|
|
705
1831
|
appear: "",
|
|
706
1832
|
tag: "div"
|
|
707
1833
|
}, {
|
|
708
|
-
default:
|
|
709
|
-
l.value ? (
|
|
1834
|
+
default: J(() => [
|
|
1835
|
+
l.value ? (p(), y("section", {
|
|
710
1836
|
key: 0,
|
|
711
|
-
onClick:
|
|
712
|
-
|
|
713
|
-
|
|
1837
|
+
onClick: $,
|
|
1838
|
+
"aria-hidden": "true",
|
|
1839
|
+
class: S(["fixed inset-0 z-[100] overflow-y-auto backdrop-blur bg-opacity-70", I(A).bgColorVariant({ color: t.backdropColor })])
|
|
1840
|
+
}, null, 2)) : O("", !0)
|
|
714
1841
|
]),
|
|
715
1842
|
_: 1
|
|
716
|
-
})),
|
|
717
|
-
|
|
1843
|
+
})) : O("", !0),
|
|
1844
|
+
ee(te, {
|
|
718
1845
|
name: "slide-down",
|
|
719
1846
|
tag: "div",
|
|
720
|
-
onAfterEnter:
|
|
721
|
-
onAfterLeave:
|
|
1847
|
+
onAfterEnter: ne,
|
|
1848
|
+
onAfterLeave: W,
|
|
722
1849
|
appear: ""
|
|
723
1850
|
}, {
|
|
724
|
-
default:
|
|
725
|
-
l.value ? (
|
|
1851
|
+
default: J(() => [
|
|
1852
|
+
l.value ? (p(), y("div", {
|
|
726
1853
|
key: 0,
|
|
727
|
-
class:
|
|
1854
|
+
class: S(["vertical-placement fixed z-[110] w-full px-xs", oe.value])
|
|
728
1855
|
}, [
|
|
729
|
-
|
|
730
|
-
|
|
1856
|
+
de((p(), y("div", {
|
|
1857
|
+
ref_key: "dialogRef",
|
|
1858
|
+
ref: u,
|
|
1859
|
+
role: "dialog",
|
|
1860
|
+
"aria-modal": "true",
|
|
1861
|
+
"aria-labelledby": t.title ? I(v) : void 0,
|
|
1862
|
+
class: S([[I(A).bgColorVariant({ color: t.color }), t.customClass], "relative max-h-[80vh] overflow-y-scroll overscroll-contain md:max-h-[60vh]"])
|
|
731
1863
|
}, [
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
close:
|
|
1864
|
+
t.showHeader ? (p(), y("div", Nr, [
|
|
1865
|
+
V(R.$slots, "header", {
|
|
1866
|
+
close: $,
|
|
735
1867
|
status: l.value
|
|
736
1868
|
}, () => [
|
|
737
|
-
|
|
738
|
-
class:
|
|
1869
|
+
E("div", {
|
|
1870
|
+
class: S(["flex items-center justify-between border-b-2 border-b-light-4 p-xs", I(A).bgColorVariant({ color: t.color })])
|
|
739
1871
|
}, [
|
|
740
|
-
|
|
1872
|
+
t.title ? (p(), y("h3", {
|
|
741
1873
|
key: 0,
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
1874
|
+
id: I(v),
|
|
1875
|
+
class: S(["h3-md", I(A).textColorVariant({ color: t.titleColor })])
|
|
1876
|
+
}, he(t.title), 11, Or)) : O("", !0),
|
|
1877
|
+
E("button", {
|
|
1878
|
+
type: "button",
|
|
1879
|
+
"aria-label": "Close",
|
|
1880
|
+
onClick: $
|
|
1881
|
+
}, [
|
|
1882
|
+
(p(), y("svg", {
|
|
746
1883
|
xmlns: "http://www.w3.org/2000/svg",
|
|
747
1884
|
height: "1em",
|
|
748
1885
|
viewBox: "0 0 384 512",
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
1886
|
+
"aria-hidden": "true",
|
|
1887
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
1888
|
+
I(A).svgFillColorVariant({ color: t.titleColor })
|
|
1889
|
+
]])
|
|
1890
|
+
}, [...z[0] || (z[0] = [
|
|
1891
|
+
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
752
1892
|
])], 2))
|
|
753
1893
|
])
|
|
754
1894
|
], 2)
|
|
755
1895
|
], !0)
|
|
756
|
-
])),
|
|
757
|
-
|
|
758
|
-
close:
|
|
1896
|
+
])) : O("", !0),
|
|
1897
|
+
V(R.$slots, "body", {
|
|
1898
|
+
close: $,
|
|
759
1899
|
status: l.value
|
|
760
1900
|
}, void 0, !0),
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
close:
|
|
1901
|
+
n.footer ? (p(), y("div", Br, [
|
|
1902
|
+
V(R.$slots, "footer", {
|
|
1903
|
+
close: $,
|
|
764
1904
|
status: l.value
|
|
765
1905
|
}, void 0, !0)
|
|
766
|
-
])) :
|
|
767
|
-
],
|
|
768
|
-
[
|
|
1906
|
+
])) : O("", !0)
|
|
1907
|
+
], 10, Er)), [
|
|
1908
|
+
[I(De), $]
|
|
769
1909
|
])
|
|
770
|
-
], 2)) :
|
|
1910
|
+
], 2)) : O("", !0)
|
|
771
1911
|
]),
|
|
772
1912
|
_: 3
|
|
773
1913
|
})
|
|
774
|
-
], 12,
|
|
1914
|
+
], 12, Rr));
|
|
775
1915
|
}
|
|
776
|
-
}),
|
|
1916
|
+
}), ro = /* @__PURE__ */ re(Ar, [["__scopeId", "data-v-c65cb87e"]]), Vr = ["visible"], Ir = ["aria-labelledby"], Dr = ["id"], Fr = { class: "sidebar-body-height" }, Lr = /* @__PURE__ */ Y({
|
|
777
1917
|
__name: "Sidebar",
|
|
778
1918
|
props: {
|
|
779
1919
|
title: {},
|
|
780
1920
|
titleColor: { default: "dark-3" },
|
|
781
|
-
|
|
1921
|
+
customClass: { default: "" },
|
|
782
1922
|
visible: { type: Boolean, default: !1 },
|
|
783
|
-
|
|
784
|
-
|
|
1923
|
+
showBackdrop: { type: Boolean, default: !0 },
|
|
1924
|
+
showHeader: { type: Boolean, default: !0 },
|
|
785
1925
|
color: { default: "light-1" },
|
|
786
1926
|
backdropColor: { default: "dark-4" },
|
|
787
1927
|
placement: { default: "left" },
|
|
788
1928
|
width: { default: 300 }
|
|
789
1929
|
},
|
|
790
1930
|
emits: ["open", "close"],
|
|
791
|
-
setup(
|
|
792
|
-
const
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
1931
|
+
setup(t, { expose: e, emit: a }) {
|
|
1932
|
+
const o = t, n = Z(), c = a, r = D(o.visible), u = D(!1), l = D(), d = D(), v = D(), b = D(), h = Ie();
|
|
1933
|
+
let g = null;
|
|
1934
|
+
const { activate: L, deactivate: B } = rt(
|
|
1935
|
+
d,
|
|
1936
|
+
{ immediate: !1 }
|
|
1937
|
+
), $ = () => {
|
|
1938
|
+
r.value = !r.value;
|
|
1939
|
+
}, G = () => {
|
|
1940
|
+
r.value = !0;
|
|
1941
|
+
}, M = () => {
|
|
1942
|
+
u.value === !0 && (r.value = !1);
|
|
1943
|
+
}, se = () => {
|
|
799
1944
|
c("open", !0);
|
|
800
|
-
},
|
|
1945
|
+
}, oe = () => {
|
|
801
1946
|
c("close", !1);
|
|
802
|
-
},
|
|
803
|
-
const
|
|
1947
|
+
}, ne = _(() => {
|
|
1948
|
+
const j = (H) => H && r.value ? `${H.scrollHeight}px` : "0px";
|
|
804
1949
|
return {
|
|
805
|
-
"--sidebar-width": `${
|
|
806
|
-
"--header-height":
|
|
807
|
-
"--footer-height":
|
|
1950
|
+
"--sidebar-width": `${o.width}px`,
|
|
1951
|
+
"--header-height": j(v.value),
|
|
1952
|
+
"--footer-height": j(b.value)
|
|
808
1953
|
};
|
|
809
|
-
}),
|
|
810
|
-
|
|
811
|
-
},
|
|
812
|
-
|
|
1954
|
+
}), W = _(() => o.placement === "left" ? "sidebar-left" : "sidebar-right"), F = () => {
|
|
1955
|
+
u.value = !0, d.value && L();
|
|
1956
|
+
}, R = () => {
|
|
1957
|
+
u.value = !1;
|
|
813
1958
|
};
|
|
814
|
-
return
|
|
815
|
-
|
|
816
|
-
}),
|
|
817
|
-
() =>
|
|
818
|
-
(
|
|
819
|
-
|
|
1959
|
+
return ze(l, (j = !1) => {
|
|
1960
|
+
r.value = j;
|
|
1961
|
+
}), Q(
|
|
1962
|
+
() => o.visible,
|
|
1963
|
+
(j) => {
|
|
1964
|
+
r.value = j;
|
|
820
1965
|
}
|
|
821
|
-
),
|
|
822
|
-
|
|
823
|
-
}),
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
open: b,
|
|
831
|
-
close: k
|
|
832
|
-
}), (L, G) => (a(), n("div", {
|
|
833
|
-
style: _(v.value),
|
|
834
|
-
visible: t.value,
|
|
1966
|
+
), Q(r, (j) => {
|
|
1967
|
+
j === !0 ? (typeof document < "u" && (g = document.activeElement), se()) : j === !1 && (B(), g?.focus(), g = null, u.value === !0 && oe());
|
|
1968
|
+
}), Ke(r), e({
|
|
1969
|
+
toggle: $,
|
|
1970
|
+
open: G,
|
|
1971
|
+
close: M
|
|
1972
|
+
}), (j, H) => (p(), y("div", {
|
|
1973
|
+
style: ge(ne.value),
|
|
1974
|
+
visible: r.value,
|
|
835
1975
|
ref_key: "sidebarRef",
|
|
836
|
-
ref:
|
|
1976
|
+
ref: l
|
|
837
1977
|
}, [
|
|
838
|
-
|
|
1978
|
+
t.showBackdrop ? (p(), Se(te, {
|
|
839
1979
|
key: 0,
|
|
840
1980
|
name: "fade",
|
|
841
1981
|
appear: "",
|
|
842
1982
|
tag: "div"
|
|
843
1983
|
}, {
|
|
844
|
-
default:
|
|
845
|
-
|
|
1984
|
+
default: J(() => [
|
|
1985
|
+
r.value ? (p(), y("section", {
|
|
846
1986
|
key: 0,
|
|
847
|
-
onClick:
|
|
848
|
-
|
|
849
|
-
|
|
1987
|
+
onClick: M,
|
|
1988
|
+
"aria-hidden": "true",
|
|
1989
|
+
class: S(["fixed inset-0 z-[100] overflow-y-auto backdrop-blur bg-opacity-70", I(A).bgColorVariant({ color: t.backdropColor })])
|
|
1990
|
+
}, null, 2)) : O("", !0)
|
|
850
1991
|
]),
|
|
851
1992
|
_: 1
|
|
852
|
-
})),
|
|
853
|
-
|
|
854
|
-
name:
|
|
855
|
-
onAfterEnter:
|
|
856
|
-
onAfterLeave:
|
|
1993
|
+
})) : O("", !0),
|
|
1994
|
+
ee(te, {
|
|
1995
|
+
name: W.value,
|
|
1996
|
+
onAfterEnter: F,
|
|
1997
|
+
onAfterLeave: R,
|
|
857
1998
|
appear: ""
|
|
858
1999
|
}, {
|
|
859
|
-
default:
|
|
860
|
-
|
|
2000
|
+
default: J(() => [
|
|
2001
|
+
r.value ? de((p(), y("div", {
|
|
861
2002
|
key: 0,
|
|
862
|
-
|
|
2003
|
+
ref_key: "dialogRef",
|
|
2004
|
+
ref: d,
|
|
2005
|
+
role: "dialog",
|
|
2006
|
+
"aria-modal": "true",
|
|
2007
|
+
"aria-labelledby": t.title ? I(h) : void 0,
|
|
2008
|
+
class: S(["sidebar-body fixed inset-y-0 z-[110] h-full overflow-hidden shadow", [t.placement === "left" ? "left-0" : "right-0"]])
|
|
863
2009
|
}, [
|
|
864
|
-
|
|
865
|
-
class:
|
|
2010
|
+
E("div", {
|
|
2011
|
+
class: S(["relative h-full overflow-y-scroll overscroll-contain", [I(A).bgColorVariant({ color: t.color }), t.customClass]])
|
|
866
2012
|
}, [
|
|
867
|
-
|
|
2013
|
+
t.showHeader ? (p(), y("div", {
|
|
868
2014
|
key: 0,
|
|
869
2015
|
class: "sticky top-0 z-10",
|
|
870
2016
|
ref_key: "headerRef",
|
|
871
|
-
ref:
|
|
2017
|
+
ref: v
|
|
872
2018
|
}, [
|
|
873
|
-
|
|
874
|
-
close:
|
|
875
|
-
status:
|
|
2019
|
+
V(j.$slots, "header", {
|
|
2020
|
+
close: M,
|
|
2021
|
+
status: r.value
|
|
876
2022
|
}, () => [
|
|
877
|
-
|
|
878
|
-
class:
|
|
2023
|
+
E("div", {
|
|
2024
|
+
class: S(["flex items-center justify-between p-xs", I(A).bgColorVariant({ color: t.color })])
|
|
879
2025
|
}, [
|
|
880
|
-
|
|
2026
|
+
t.placement === "right" ? (p(), y("button", {
|
|
881
2027
|
key: 0,
|
|
882
|
-
|
|
2028
|
+
type: "button",
|
|
2029
|
+
"aria-label": "Close",
|
|
2030
|
+
onClick: M
|
|
883
2031
|
}, [
|
|
884
|
-
(
|
|
2032
|
+
(p(), y("svg", {
|
|
885
2033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
886
2034
|
height: "1em",
|
|
887
2035
|
viewBox: "0 0 384 512",
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
2036
|
+
"aria-hidden": "true",
|
|
2037
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
2038
|
+
I(A).svgFillColorVariant({ color: t.titleColor })
|
|
2039
|
+
]])
|
|
2040
|
+
}, [...H[0] || (H[0] = [
|
|
2041
|
+
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
891
2042
|
])], 2))
|
|
892
|
-
])) :
|
|
893
|
-
|
|
2043
|
+
])) : O("", !0),
|
|
2044
|
+
t.title ? (p(), y("h3", {
|
|
894
2045
|
key: 1,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
2046
|
+
id: I(h),
|
|
2047
|
+
class: S(["h3-md", I(A).textColorVariant({ color: t.titleColor })])
|
|
2048
|
+
}, he(t.title), 11, Dr)) : O("", !0),
|
|
2049
|
+
t.placement === "left" ? (p(), y("button", {
|
|
898
2050
|
key: 2,
|
|
899
|
-
|
|
2051
|
+
type: "button",
|
|
2052
|
+
"aria-label": "Close",
|
|
2053
|
+
onClick: M
|
|
900
2054
|
}, [
|
|
901
|
-
(
|
|
2055
|
+
(p(), y("svg", {
|
|
902
2056
|
xmlns: "http://www.w3.org/2000/svg",
|
|
903
2057
|
height: "1em",
|
|
904
2058
|
viewBox: "0 0 384 512",
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
2059
|
+
"aria-hidden": "true",
|
|
2060
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [
|
|
2061
|
+
I(A).svgFillColorVariant({ color: t.titleColor })
|
|
2062
|
+
]])
|
|
2063
|
+
}, [...H[1] || (H[1] = [
|
|
2064
|
+
E("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
908
2065
|
])], 2))
|
|
909
|
-
])) :
|
|
2066
|
+
])) : O("", !0)
|
|
910
2067
|
], 2)
|
|
911
2068
|
], !0)
|
|
912
|
-
], 512)),
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
close:
|
|
916
|
-
status:
|
|
2069
|
+
], 512)) : O("", !0),
|
|
2070
|
+
E("div", Fr, [
|
|
2071
|
+
V(j.$slots, "body", {
|
|
2072
|
+
close: M,
|
|
2073
|
+
status: r.value
|
|
917
2074
|
}, void 0, !0)
|
|
918
2075
|
]),
|
|
919
|
-
|
|
2076
|
+
n.footer ? (p(), y("div", {
|
|
920
2077
|
key: 1,
|
|
921
2078
|
class: "sticky bottom-0",
|
|
922
2079
|
ref_key: "footerRef",
|
|
923
|
-
ref:
|
|
2080
|
+
ref: b
|
|
924
2081
|
}, [
|
|
925
|
-
|
|
926
|
-
close:
|
|
927
|
-
status:
|
|
2082
|
+
V(j.$slots, "footer", {
|
|
2083
|
+
close: M,
|
|
2084
|
+
status: r.value
|
|
928
2085
|
}, void 0, !0)
|
|
929
|
-
], 512)) :
|
|
2086
|
+
], 512)) : O("", !0)
|
|
930
2087
|
], 2)
|
|
931
|
-
],
|
|
932
|
-
[
|
|
933
|
-
]) :
|
|
2088
|
+
], 10, Ir)), [
|
|
2089
|
+
[I(De), M]
|
|
2090
|
+
]) : O("", !0)
|
|
934
2091
|
]),
|
|
935
2092
|
_: 3
|
|
936
2093
|
}, 8, ["name"])
|
|
937
|
-
], 12,
|
|
2094
|
+
], 12, Vr));
|
|
938
2095
|
}
|
|
939
|
-
}),
|
|
2096
|
+
}), oo = /* @__PURE__ */ re(Lr, [["__scopeId", "data-v-77b578df"]]), ot = /* @__PURE__ */ Symbol(), $r = { class: "container-hts grid grid-cols-1 grid-rows-1 transition-[max-height] duration-300" }, Pr = /* @__PURE__ */ Y({
|
|
940
2097
|
__name: "TabContainer",
|
|
941
2098
|
props: {
|
|
942
2099
|
bodyClass: { default: "" },
|
|
943
2100
|
btnContainerClass: { default: "" },
|
|
944
2101
|
contentContainerClass: { default: "" }
|
|
945
2102
|
},
|
|
946
|
-
setup(
|
|
947
|
-
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
activeTabIdx:
|
|
951
|
-
containerHeight:
|
|
952
|
-
updateHeight: (
|
|
953
|
-
|
|
2103
|
+
setup(t, { expose: e }) {
|
|
2104
|
+
Z();
|
|
2105
|
+
const a = D(0), o = D(0), n = D("slide-next");
|
|
2106
|
+
Be(ot, {
|
|
2107
|
+
activeTabIdx: a,
|
|
2108
|
+
containerHeight: o,
|
|
2109
|
+
updateHeight: (l) => {
|
|
2110
|
+
o.value = l;
|
|
954
2111
|
}
|
|
955
2112
|
});
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
},
|
|
959
|
-
return
|
|
960
|
-
update:
|
|
961
|
-
}),
|
|
962
|
-
() =>
|
|
963
|
-
(
|
|
964
|
-
|
|
2113
|
+
const r = (l) => {
|
|
2114
|
+
a.value = l;
|
|
2115
|
+
}, u = _(() => ({ "--container-hts": `${o.value}px` }));
|
|
2116
|
+
return e({
|
|
2117
|
+
update: r
|
|
2118
|
+
}), Q(
|
|
2119
|
+
() => a.value,
|
|
2120
|
+
(l, d) => {
|
|
2121
|
+
l > d ? n.value = "slide-next" : n.value = "slide-prev";
|
|
965
2122
|
}
|
|
966
|
-
), (
|
|
967
|
-
class:
|
|
968
|
-
style:
|
|
2123
|
+
), (l, d) => (p(), y("div", {
|
|
2124
|
+
class: S(t.bodyClass),
|
|
2125
|
+
style: ge(u.value)
|
|
969
2126
|
}, [
|
|
970
|
-
|
|
971
|
-
class:
|
|
2127
|
+
E("div", {
|
|
2128
|
+
class: S(t.btnContainerClass),
|
|
972
2129
|
role: "tablist"
|
|
973
2130
|
}, [
|
|
974
|
-
|
|
975
|
-
update:
|
|
976
|
-
activeTab:
|
|
2131
|
+
V(l.$slots, "tab-button", {
|
|
2132
|
+
update: r,
|
|
2133
|
+
activeTab: a.value
|
|
977
2134
|
}, void 0, !0)
|
|
978
2135
|
], 2),
|
|
979
|
-
|
|
980
|
-
class:
|
|
2136
|
+
E("div", {
|
|
2137
|
+
class: S(t.contentContainerClass)
|
|
981
2138
|
}, [
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
default:
|
|
985
|
-
(
|
|
986
|
-
key:
|
|
987
|
-
class: "col-start-1 col-end-1 row-start-1 row-end-1
|
|
2139
|
+
E("div", $r, [
|
|
2140
|
+
ee(te, { name: n.value }, {
|
|
2141
|
+
default: J(() => [
|
|
2142
|
+
(p(), y("div", {
|
|
2143
|
+
key: a.value,
|
|
2144
|
+
class: "relative col-start-1 col-end-1 row-start-1 row-end-1"
|
|
988
2145
|
}, [
|
|
989
|
-
|
|
2146
|
+
V(l.$slots, "tab-content", {}, void 0, !0)
|
|
990
2147
|
]))
|
|
991
2148
|
]),
|
|
992
2149
|
_: 3
|
|
@@ -995,44 +2152,46 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
995
2152
|
], 2)
|
|
996
2153
|
], 6));
|
|
997
2154
|
}
|
|
998
|
-
}),
|
|
2155
|
+
}), no = /* @__PURE__ */ re(Pr, [["__scopeId", "data-v-553ab4ac"]]), jr = ["id"], io = /* @__PURE__ */ Y({
|
|
999
2156
|
__name: "TabContent",
|
|
1000
2157
|
props: {
|
|
1001
2158
|
tabNumber: {},
|
|
1002
2159
|
id: {},
|
|
1003
2160
|
tabClass: { default: "" }
|
|
1004
2161
|
},
|
|
1005
|
-
setup(
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
),
|
|
1009
|
-
return (
|
|
2162
|
+
setup(t) {
|
|
2163
|
+
const e = t, { activeTabIdx: a, updateHeight: o } = Ae(
|
|
2164
|
+
ot
|
|
2165
|
+
), n = D(null), { height: c } = wa(n), r = _(() => a.value === e.tabNumber ? (o(c.value), !0) : !1);
|
|
2166
|
+
return (u, l) => de((p(), y("div", {
|
|
1010
2167
|
ref_key: "slotRef",
|
|
1011
|
-
ref:
|
|
1012
|
-
id:
|
|
1013
|
-
class:
|
|
2168
|
+
ref: n,
|
|
2169
|
+
id: t.id,
|
|
2170
|
+
class: S([t.tabClass, "w-full"]),
|
|
1014
2171
|
role: "tabpanel",
|
|
1015
2172
|
tabindex: "-1"
|
|
1016
2173
|
}, [
|
|
1017
|
-
|
|
1018
|
-
], 10,
|
|
1019
|
-
[
|
|
2174
|
+
V(u.$slots, "default")
|
|
2175
|
+
], 10, jr)), [
|
|
2176
|
+
[Ve, r.value]
|
|
1020
2177
|
]);
|
|
1021
2178
|
}
|
|
1022
2179
|
});
|
|
1023
2180
|
export {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
2181
|
+
Xr as AccordionGroup,
|
|
2182
|
+
Yr as Alert,
|
|
2183
|
+
Ur as Card,
|
|
2184
|
+
qr as CarouselContainer,
|
|
2185
|
+
Zr as CarouselContent,
|
|
2186
|
+
Jr as Collapse,
|
|
2187
|
+
Qr as DropdownContainer,
|
|
2188
|
+
eo as DropdownContent,
|
|
2189
|
+
to as HeaderHorizontal,
|
|
2190
|
+
ao as HeaderVertical,
|
|
2191
|
+
ro as Modal,
|
|
2192
|
+
oo as Sidebar,
|
|
2193
|
+
no as TabContainer,
|
|
2194
|
+
io as TabContent,
|
|
2195
|
+
Kr as default,
|
|
2196
|
+
A as generateClass
|
|
1038
2197
|
};
|