@bobbykim/manguito-theme 0.28.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -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 +1778 -627
- 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 +10 -44
- package/dist/useModalScrollLock-BXOUgsHr.js +54 -0
- package/dist/useModalScrollLock-BbvxlEaZ.cjs +1 -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-05e275d0]{transition:all .5s linear}.slide-prev-leave-active[data-v-05e275d0]{transition:all .5s}.slide-prev-enter-from[data-v-05e275d0]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-next-leave-active[data-v-05e275d0]{transition:all .5s}.slide-next-enter-from[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-05e275d0]{transform:translate(-100%);opacity:0}.collapse-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-05e275d0]{transition:all .5s linear}.slide-prev-leave-active[data-v-05e275d0]{transition:all .5s}.slide-prev-enter-from[data-v-05e275d0]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-next-leave-active[data-v-05e275d0]{transition:all .5s}.slide-next-enter-from[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-05e275d0]{transform:translate(-100%);opacity:0}.collapse-enter-active[data-v-76fb7aa1],.collapse-leave-active[data-v-76fb7aa1]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-4061b431]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-4061b431],.dropdown-content-leave-active[data-v-4061b431]{transition:all .3s}.dropdown-content-enter-from[data-v-4061b431],.dropdown-content-leave-to[data-v-4061b431]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-394abcb8]:before,.hamburger__icon[data-v-394abcb8]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-394abcb8]:before{top:-.5rem}.hamburger__icon[data-v-394abcb8]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-394abcb8],.hamburger__button:hover .hamburger__icon[data-v-394abcb8]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-394abcb8]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-394abcb8]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-394abcb8]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-03909cb0]{transition:height .5s ease-in}.collapse-leave-active[data-v-03909cb0]{transition:height .5s ease-out}.header-desktop[data-v-98ba0070]{width:100%}@media screen and (min-width:1024px){.header-desktop[data-v-98ba0070]{width:var(--header-width)}}.slide-down-enter-active[data-v-98ba0070]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-98ba0070]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-98ba0070],.slide-down-leave-to[data-v-98ba0070]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-4f8f0bf8]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-4f8f0bf8],.fade-leave-active[data-v-4f8f0bf8]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-4f8f0bf8],.fade-leave-to[data-v-4f8f0bf8]{opacity:0}.slide-down-enter-active[data-v-4f8f0bf8]{animation:slide-down-4f8f0bf8 .3s ease}.slide-down-leave-active[data-v-4f8f0bf8]{animation:slide-down-4f8f0bf8 reverse .3s ease}@keyframes slide-down-4f8f0bf8{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-b770513a]{width:100%}.sidebar-body-height[data-v-b770513a]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-b770513a],.fade-leave-active[data-v-b770513a]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-b770513a],.fade-leave-to[data-v-b770513a]{opacity:0}.sidebar-left-enter-active[data-v-b770513a],.sidebar-left-leave-active[data-v-b770513a],.sidebar-right-enter-active[data-v-b770513a],.sidebar-right-leave-active[data-v-b770513a]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-b770513a],.sidebar-left-leave-to[data-v-b770513a]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-b770513a],.sidebar-right-leave-to[data-v-b770513a]{transform:translate(100%)}@media screen and (min-width:768px){.sidebar-body[data-v-b770513a]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-b770513a],.sidebar-left-leave-to[data-v-b770513a]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-b770513a],.sidebar-right-leave-to[data-v-b770513a]{transform:translate(var(--sidebar-width))}}.container-hts[data-v-1014eb3f]{max-height:var(--container-hts)}.slide-prev-enter-active[data-v-1014eb3f]{transition:all .5s linear}.slide-prev-leave-active[data-v-1014eb3f]{transition:all .5s}.slide-prev-enter-from[data-v-1014eb3f]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-1014eb3f]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-1014eb3f]{transition:all .5s linear}.slide-next-leave-active[data-v-1014eb3f]{transition:all .5s}.slide-next-enter-from[data-v-1014eb3f]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-1014eb3f]{transform:translate(-100%);opacity:0}")),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
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-BXOUgsHr.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: "gap-2xs flex w-full justify-between" }, 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
196
|
class: "px-xs pt-xs pb-2xs flex-1"
|
|
67
|
-
},
|
|
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], "py-2xs px-xs 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(["py-2xs px-xs", [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-05e275d0"]]), 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,271 @@ 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-76fb7aa1"]]), 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 max-w-[14rem] w-max 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-4061b431"]]), 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(["p-3xs hamburger__button aspect-square rounded-md outline-none ring-offset-2 transition-all duration-300 ease-linear 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(["w-sm hamburger__icon before:w-sm after:w-sm relative h-[3px] transition-all duration-300 ease-linear before:h-[3px] after:h-[3px]", u(t.color)])
|
|
468
579
|
}, null, 2)
|
|
469
|
-
], 10,
|
|
580
|
+
], 10, Fa));
|
|
470
581
|
}
|
|
471
|
-
}),
|
|
582
|
+
}), Ue = /* @__PURE__ */ re(La, [["__scopeId", "data-v-394abcb8"]]), $a = { class: "py-xs md:py-2xs mx-xs md:mx-sm flex flex-wrap items-center justify-between align-middle sm:max-w-[640px] md:max-w-[768px] 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
|
-
return
|
|
502
|
-
}),
|
|
503
|
-
const { fadeInOnScroll:
|
|
504
|
-
return
|
|
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 = [A.bgColorVariant({ color: B })];
|
|
612
|
+
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(" "));
|
|
613
|
+
}), L = _(() => {
|
|
614
|
+
const { fadeInOnScroll: B, scrollDistance: $ } = o;
|
|
615
|
+
return B ? r.value >= $ ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
505
616
|
});
|
|
506
|
-
return
|
|
507
|
-
headerClose:
|
|
508
|
-
}), (
|
|
509
|
-
class:
|
|
617
|
+
return e({
|
|
618
|
+
headerClose: l
|
|
619
|
+
}), (B, $) => (p(), y("header", {
|
|
620
|
+
class: S(["z-50 w-full items-center transition delay-150 duration-500 ease-in", [L.value, g.value]])
|
|
510
621
|
}, [
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
622
|
+
E("nav", $a, [
|
|
623
|
+
E("div", Pa, [
|
|
624
|
+
V(B.$slots, "content", {}, void 0, !0)
|
|
514
625
|
]),
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
color:
|
|
518
|
-
"
|
|
626
|
+
E("div", ja, [
|
|
627
|
+
ee(Ue, {
|
|
628
|
+
color: t.drawerBtnColor,
|
|
629
|
+
"show-border": t.showDrawerBorder,
|
|
519
630
|
class: "block lg:hidden",
|
|
520
|
-
onHbgClick:
|
|
631
|
+
onHbgClick: d,
|
|
521
632
|
toggle: c.value,
|
|
522
|
-
"
|
|
523
|
-
}, null, 8, ["color", "
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
])) :
|
|
633
|
+
"bg-color": t.bgColor
|
|
634
|
+
}, null, 8, ["color", "show-border", "toggle", "bg-color"]),
|
|
635
|
+
n["content-right"] ? (p(), y("div", _a, [
|
|
636
|
+
V(B.$slots, "content-right", {}, void 0, !0)
|
|
637
|
+
])) : O("", !0)
|
|
527
638
|
])
|
|
528
639
|
]),
|
|
529
|
-
|
|
530
|
-
|
|
640
|
+
E("div", Ga, [
|
|
641
|
+
ee(te, {
|
|
531
642
|
name: "collapse",
|
|
532
|
-
onEnter:
|
|
533
|
-
onAfterEnter:
|
|
534
|
-
onLeave:
|
|
643
|
+
onEnter: v,
|
|
644
|
+
onAfterEnter: b,
|
|
645
|
+
onLeave: h
|
|
535
646
|
}, {
|
|
536
|
-
default:
|
|
537
|
-
c.value ? (
|
|
647
|
+
default: J(() => [
|
|
648
|
+
c.value ? (p(), y("div", {
|
|
538
649
|
key: 0,
|
|
539
|
-
class:
|
|
650
|
+
class: S(["my-2xs mx-xs overflow-hidden rounded-md bg-opacity-80", I(A).bgColorVariant({ color: t.mobileMenuBgColor })])
|
|
540
651
|
}, [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
])) :
|
|
544
|
-
], 2)) :
|
|
652
|
+
n["mobile-content"] ? (p(), y("div", Ha, [
|
|
653
|
+
V(B.$slots, "mobile-content", { headerClose: l }, void 0, !0)
|
|
654
|
+
])) : O("", !0)
|
|
655
|
+
], 2)) : O("", !0)
|
|
545
656
|
]),
|
|
546
657
|
_: 3
|
|
547
658
|
})
|
|
548
659
|
])
|
|
549
660
|
], 2));
|
|
550
661
|
}
|
|
551
|
-
}),
|
|
662
|
+
}), to = /* @__PURE__ */ re(Ma, [["__scopeId", "data-v-03909cb0"]]), Wa = { class: "flex h-full flex-col justify-between" }, za = { key: 0 }, Ka = { class: "relative z-40 block lg:hidden" }, Xa = {
|
|
552
663
|
key: 0,
|
|
553
664
|
class: "mr-xs mt-xs fixed right-0 top-0 z-50 block lg:hidden"
|
|
554
|
-
},
|
|
665
|
+
}, Ya = {
|
|
555
666
|
key: 0,
|
|
556
667
|
class: "h-full"
|
|
557
|
-
},
|
|
668
|
+
}, Ua = /* @__PURE__ */ Y({
|
|
558
669
|
__name: "HeaderVertical",
|
|
559
670
|
props: {
|
|
560
671
|
bgColor: { default: "light-1" },
|
|
561
672
|
drawerBtnColor: { default: "dark-1" },
|
|
562
|
-
|
|
673
|
+
showDrawerBorder: { type: Boolean, default: !0 },
|
|
563
674
|
headerWidth: { default: 160 }
|
|
564
675
|
},
|
|
565
676
|
emits: ["toggle-drawer"],
|
|
566
|
-
setup(
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
},
|
|
572
|
-
return
|
|
573
|
-
const
|
|
574
|
-
|
|
575
|
-
|
|
677
|
+
setup(t, { expose: e, emit: a }) {
|
|
678
|
+
const o = t, n = Z(), c = a, r = D(!1), u = (v) => {
|
|
679
|
+
r.value = !r.value, c("toggle-drawer", v, r.value);
|
|
680
|
+
}, l = () => {
|
|
681
|
+
r.value = !1;
|
|
682
|
+
}, d = _(() => ({ "--header-width": `${o.headerWidth}px` }));
|
|
683
|
+
return We(() => {
|
|
684
|
+
const v = pa(document);
|
|
685
|
+
Q(r, (b) => {
|
|
686
|
+
v.value = b;
|
|
576
687
|
});
|
|
577
|
-
}),
|
|
578
|
-
headerClose:
|
|
579
|
-
}), (
|
|
688
|
+
}), e({
|
|
689
|
+
headerClose: l
|
|
690
|
+
}), (v, b) => (p(), y("header", {
|
|
580
691
|
class: "relative",
|
|
581
|
-
style:
|
|
692
|
+
style: ge(d.value)
|
|
582
693
|
}, [
|
|
583
|
-
|
|
584
|
-
class:
|
|
694
|
+
E("nav", {
|
|
695
|
+
class: S(["py-sm header-desktop hidden overflow-y-scroll overscroll-contain lg:sticky lg:left-0 lg:top-0 lg:block lg:h-[100vh]", [I(A).bgColorVariant({ color: t.bgColor })]])
|
|
585
696
|
}, [
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
697
|
+
E("div", Wa, [
|
|
698
|
+
E("div", null, [
|
|
699
|
+
V(v.$slots, "content", {}, void 0, !0)
|
|
589
700
|
]),
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
])) :
|
|
701
|
+
n["content-bottom"] ? (p(), y("div", za, [
|
|
702
|
+
V(v.$slots, "content-bottom", {}, void 0, !0)
|
|
703
|
+
])) : O("", !0)
|
|
593
704
|
])
|
|
594
705
|
], 2),
|
|
595
|
-
(
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
color:
|
|
600
|
-
"
|
|
706
|
+
(p(), Se(va, { to: "body" }, [
|
|
707
|
+
E("div", Ka, [
|
|
708
|
+
n["mobile-content"] ? (p(), y("div", Xa, [
|
|
709
|
+
ee(Ue, {
|
|
710
|
+
color: t.drawerBtnColor,
|
|
711
|
+
"show-border": t.showDrawerBorder,
|
|
601
712
|
class: "relative block lg:hidden",
|
|
602
|
-
onHbgClick:
|
|
603
|
-
toggle:
|
|
604
|
-
"
|
|
605
|
-
}, null, 8, ["color", "
|
|
606
|
-
])) :
|
|
607
|
-
|
|
713
|
+
onHbgClick: u,
|
|
714
|
+
toggle: r.value,
|
|
715
|
+
"bg-color": t.bgColor
|
|
716
|
+
}, null, 8, ["color", "show-border", "toggle", "bg-color"])
|
|
717
|
+
])) : O("", !0),
|
|
718
|
+
ee(te, {
|
|
608
719
|
name: "slide-down",
|
|
609
720
|
appear: ""
|
|
610
721
|
}, {
|
|
611
|
-
default:
|
|
612
|
-
|
|
722
|
+
default: J(() => [
|
|
723
|
+
r.value ? (p(), y("nav", {
|
|
613
724
|
key: 0,
|
|
614
|
-
class:
|
|
725
|
+
class: S(["py-lg px-sm fixed inset-0 overflow-y-scroll overscroll-contain", I(A).bgColorVariant({ color: t.bgColor })])
|
|
615
726
|
}, [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
])) :
|
|
619
|
-
], 2)) :
|
|
727
|
+
n["mobile-content"] ? (p(), y("div", Ya, [
|
|
728
|
+
V(v.$slots, "mobile-content", { headerClose: l }, void 0, !0)
|
|
729
|
+
])) : O("", !0)
|
|
730
|
+
], 2)) : O("", !0)
|
|
620
731
|
]),
|
|
621
732
|
_: 3
|
|
622
733
|
})
|
|
@@ -624,369 +735,1407 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
624
735
|
]))
|
|
625
736
|
], 4));
|
|
626
737
|
}
|
|
627
|
-
}),
|
|
738
|
+
}), ao = /* @__PURE__ */ re(Ua, [["__scopeId", "data-v-98ba0070"]]);
|
|
739
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
740
|
+
const qa = (t) => t != null;
|
|
741
|
+
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() {
|
|
742
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, we = !Ze && Element.prototype.getRootNode ? function(t) {
|
|
743
|
+
var e;
|
|
744
|
+
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
745
|
+
} : function(t) {
|
|
746
|
+
return t?.ownerDocument;
|
|
747
|
+
}, Ce = function(e, a) {
|
|
748
|
+
var o;
|
|
749
|
+
a === void 0 && (a = !0);
|
|
750
|
+
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
|
|
751
|
+
// lookup upward, in case it is not defined.
|
|
752
|
+
(typeof e.closest == "function" ? e.closest("[inert]") : Ce(e.parentNode));
|
|
753
|
+
return r;
|
|
754
|
+
}, Za = function(e) {
|
|
755
|
+
var a, o = e == null || (a = e.getAttribute) === null || a === void 0 ? void 0 : a.call(e, "contenteditable");
|
|
756
|
+
return o === "" || o === "true";
|
|
757
|
+
}, Je = function(e, a, o) {
|
|
758
|
+
if (Ce(e))
|
|
759
|
+
return [];
|
|
760
|
+
var n = Array.prototype.slice.apply(e.querySelectorAll(ye));
|
|
761
|
+
return a && ue.call(e, ye) && n.unshift(e), n = n.filter(o), n;
|
|
762
|
+
}, ke = function(e, a, o) {
|
|
763
|
+
for (var n = [], c = Array.from(e); c.length; ) {
|
|
764
|
+
var r = c.shift();
|
|
765
|
+
if (!Ce(r, !1))
|
|
766
|
+
if (r.tagName === "SLOT") {
|
|
767
|
+
var u = r.assignedElements(), l = u.length ? u : r.children, d = ke(l, !0, o);
|
|
768
|
+
o.flatten ? n.push.apply(n, d) : n.push({
|
|
769
|
+
scopeParent: r,
|
|
770
|
+
candidates: d
|
|
771
|
+
});
|
|
772
|
+
} else {
|
|
773
|
+
var v = ue.call(r, ye);
|
|
774
|
+
v && o.filter(r) && (a || !e.includes(r)) && n.push(r);
|
|
775
|
+
var b = r.shadowRoot || // check for an undisclosed shadow
|
|
776
|
+
typeof o.getShadowRoot == "function" && o.getShadowRoot(r), h = !Ce(b, !1) && (!o.shadowRootFilter || o.shadowRootFilter(r));
|
|
777
|
+
if (b && h) {
|
|
778
|
+
var g = ke(b === !0 ? r.children : b.children, !0, o);
|
|
779
|
+
o.flatten ? n.push.apply(n, g) : n.push({
|
|
780
|
+
scopeParent: r,
|
|
781
|
+
candidates: g
|
|
782
|
+
});
|
|
783
|
+
} else
|
|
784
|
+
c.unshift.apply(c, r.children);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return n;
|
|
788
|
+
}, Qe = function(e) {
|
|
789
|
+
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
790
|
+
}, ce = function(e) {
|
|
791
|
+
if (!e)
|
|
792
|
+
throw new Error("No node provided");
|
|
793
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Za(e)) && !Qe(e) ? 0 : e.tabIndex;
|
|
794
|
+
}, Ja = function(e, a) {
|
|
795
|
+
var o = ce(e);
|
|
796
|
+
return o < 0 && a && !Qe(e) ? 0 : o;
|
|
797
|
+
}, Qa = function(e, a) {
|
|
798
|
+
return e.tabIndex === a.tabIndex ? e.documentOrder - a.documentOrder : e.tabIndex - a.tabIndex;
|
|
799
|
+
}, et = function(e) {
|
|
800
|
+
return e.tagName === "INPUT";
|
|
801
|
+
}, er = function(e) {
|
|
802
|
+
return et(e) && e.type === "hidden";
|
|
803
|
+
}, tr = function(e) {
|
|
804
|
+
var a = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(o) {
|
|
805
|
+
return o.tagName === "SUMMARY";
|
|
806
|
+
});
|
|
807
|
+
return a;
|
|
808
|
+
}, ar = function(e, a) {
|
|
809
|
+
for (var o = 0; o < e.length; o++)
|
|
810
|
+
if (e[o].checked && e[o].form === a)
|
|
811
|
+
return e[o];
|
|
812
|
+
}, rr = function(e) {
|
|
813
|
+
if (!e.name)
|
|
814
|
+
return !0;
|
|
815
|
+
var a = e.form || we(e), o = function(u) {
|
|
816
|
+
return a.querySelectorAll('input[type="radio"][name="' + u + '"]');
|
|
817
|
+
}, n;
|
|
818
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
819
|
+
n = o(window.CSS.escape(e.name));
|
|
820
|
+
else
|
|
821
|
+
try {
|
|
822
|
+
n = o(e.name);
|
|
823
|
+
} catch (r) {
|
|
824
|
+
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;
|
|
825
|
+
}
|
|
826
|
+
var c = ar(n, e.form);
|
|
827
|
+
return !c || c === e;
|
|
828
|
+
}, or = function(e) {
|
|
829
|
+
return et(e) && e.type === "radio";
|
|
830
|
+
}, nr = function(e) {
|
|
831
|
+
return or(e) && !rr(e);
|
|
832
|
+
}, ir = function(e) {
|
|
833
|
+
var a, o = e && we(e), n = (a = o) === null || a === void 0 ? void 0 : a.host, c = !1;
|
|
834
|
+
if (o && o !== e) {
|
|
835
|
+
var r, u, l;
|
|
836
|
+
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; ) {
|
|
837
|
+
var d, v, b;
|
|
838
|
+
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));
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return c;
|
|
842
|
+
}, $e = function(e) {
|
|
843
|
+
var a = e.getBoundingClientRect(), o = a.width, n = a.height;
|
|
844
|
+
return o === 0 && n === 0;
|
|
845
|
+
}, sr = function(e, a) {
|
|
846
|
+
var o = a.displayCheck, n = a.getShadowRoot;
|
|
847
|
+
if (o === "full-native" && "checkVisibility" in e) {
|
|
848
|
+
var c = e.checkVisibility({
|
|
849
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
850
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
851
|
+
checkOpacity: !1,
|
|
852
|
+
opacityProperty: !1,
|
|
853
|
+
contentVisibilityAuto: !0,
|
|
854
|
+
visibilityProperty: !0,
|
|
855
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
856
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
857
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
858
|
+
// we include it anyway.
|
|
859
|
+
checkVisibilityCSS: !0
|
|
860
|
+
});
|
|
861
|
+
return !c;
|
|
862
|
+
}
|
|
863
|
+
if (getComputedStyle(e).visibility === "hidden")
|
|
864
|
+
return !0;
|
|
865
|
+
var r = ue.call(e, "details>summary:first-of-type"), u = r ? e.parentElement : e;
|
|
866
|
+
if (ue.call(u, "details:not([open]) *"))
|
|
867
|
+
return !0;
|
|
868
|
+
if (!o || o === "full" || // full-native can run this branch when it falls through in case
|
|
869
|
+
// Element#checkVisibility is unsupported
|
|
870
|
+
o === "full-native" || o === "legacy-full") {
|
|
871
|
+
if (typeof n == "function") {
|
|
872
|
+
for (var l = e; e; ) {
|
|
873
|
+
var d = e.parentElement, v = we(e);
|
|
874
|
+
if (d && !d.shadowRoot && n(d) === !0)
|
|
875
|
+
return $e(e);
|
|
876
|
+
e.assignedSlot ? e = e.assignedSlot : !d && v !== e.ownerDocument ? e = v.host : e = d;
|
|
877
|
+
}
|
|
878
|
+
e = l;
|
|
879
|
+
}
|
|
880
|
+
if (ir(e))
|
|
881
|
+
return !e.getClientRects().length;
|
|
882
|
+
if (o !== "legacy-full")
|
|
883
|
+
return !0;
|
|
884
|
+
} else if (o === "non-zero-area")
|
|
885
|
+
return $e(e);
|
|
886
|
+
return !1;
|
|
887
|
+
}, lr = function(e) {
|
|
888
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
889
|
+
for (var a = e.parentElement; a; ) {
|
|
890
|
+
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
891
|
+
for (var o = 0; o < a.children.length; o++) {
|
|
892
|
+
var n = a.children.item(o);
|
|
893
|
+
if (n.tagName === "LEGEND")
|
|
894
|
+
return ue.call(a, "fieldset[disabled] *") ? !0 : !n.contains(e);
|
|
895
|
+
}
|
|
896
|
+
return !0;
|
|
897
|
+
}
|
|
898
|
+
a = a.parentElement;
|
|
899
|
+
}
|
|
900
|
+
return !1;
|
|
901
|
+
}, Te = function(e, a) {
|
|
902
|
+
return !(a.disabled || er(a) || sr(a, e) || // For a details element with a summary, the summary element gets the focus
|
|
903
|
+
tr(a) || lr(a));
|
|
904
|
+
}, Ne = function(e, a) {
|
|
905
|
+
return !(nr(a) || ce(a) < 0 || !Te(e, a));
|
|
906
|
+
}, cr = function(e) {
|
|
907
|
+
var a = parseInt(e.getAttribute("tabindex"), 10);
|
|
908
|
+
return !!(isNaN(a) || a >= 0);
|
|
909
|
+
}, tt = function(e) {
|
|
910
|
+
var a = [], o = [];
|
|
911
|
+
return e.forEach(function(n, c) {
|
|
912
|
+
var r = !!n.scopeParent, u = r ? n.scopeParent : n, l = Ja(u, r), d = r ? tt(n.candidates) : u;
|
|
913
|
+
l === 0 ? r ? a.push.apply(a, d) : a.push(u) : o.push({
|
|
914
|
+
documentOrder: c,
|
|
915
|
+
tabIndex: l,
|
|
916
|
+
item: n,
|
|
917
|
+
isScope: r,
|
|
918
|
+
content: d
|
|
919
|
+
});
|
|
920
|
+
}), o.sort(Qa).reduce(function(n, c) {
|
|
921
|
+
return c.isScope ? n.push.apply(n, c.content) : n.push(c.content), n;
|
|
922
|
+
}, []).concat(a);
|
|
923
|
+
}, ur = function(e, a) {
|
|
924
|
+
a = a || {};
|
|
925
|
+
var o;
|
|
926
|
+
return a.getShadowRoot ? o = ke([e], a.includeContainer, {
|
|
927
|
+
filter: Ne.bind(null, a),
|
|
928
|
+
flatten: !1,
|
|
929
|
+
getShadowRoot: a.getShadowRoot,
|
|
930
|
+
shadowRootFilter: cr
|
|
931
|
+
}) : o = Je(e, a.includeContainer, Ne.bind(null, a)), tt(o);
|
|
932
|
+
}, dr = function(e, a) {
|
|
933
|
+
a = a || {};
|
|
934
|
+
var o;
|
|
935
|
+
return a.getShadowRoot ? o = ke([e], a.includeContainer, {
|
|
936
|
+
filter: Te.bind(null, a),
|
|
937
|
+
flatten: !0,
|
|
938
|
+
getShadowRoot: a.getShadowRoot
|
|
939
|
+
}) : o = Je(e, a.includeContainer, Te.bind(null, a)), o;
|
|
940
|
+
}, fe = function(e, a) {
|
|
941
|
+
if (a = a || {}, !e)
|
|
942
|
+
throw new Error("No node provided");
|
|
943
|
+
return ue.call(e, ye) === !1 ? !1 : Ne(a, e);
|
|
944
|
+
}, fr = /* @__PURE__ */ qe.concat("iframe:not([inert]):not([inert] *)").join(","), Ee = function(e, a) {
|
|
945
|
+
if (a = a || {}, !e)
|
|
946
|
+
throw new Error("No node provided");
|
|
947
|
+
return ue.call(e, fr) === !1 ? !1 : Te(a, e);
|
|
948
|
+
};
|
|
949
|
+
function Oe(t, e) {
|
|
950
|
+
(e == null || e > t.length) && (e = t.length);
|
|
951
|
+
for (var a = 0, o = Array(e); a < e; a++) o[a] = t[a];
|
|
952
|
+
return o;
|
|
953
|
+
}
|
|
954
|
+
function vr(t) {
|
|
955
|
+
if (Array.isArray(t)) return Oe(t);
|
|
956
|
+
}
|
|
957
|
+
function Pe(t, e, a, o, n, c, r) {
|
|
958
|
+
try {
|
|
959
|
+
var u = t[c](r), l = u.value;
|
|
960
|
+
} catch (d) {
|
|
961
|
+
return void a(d);
|
|
962
|
+
}
|
|
963
|
+
u.done ? e(l) : Promise.resolve(l).then(o, n);
|
|
964
|
+
}
|
|
965
|
+
function je(t) {
|
|
966
|
+
return function() {
|
|
967
|
+
var e = this, a = arguments;
|
|
968
|
+
return new Promise(function(o, n) {
|
|
969
|
+
var c = t.apply(e, a);
|
|
970
|
+
function r(l) {
|
|
971
|
+
Pe(c, o, n, r, u, "next", l);
|
|
972
|
+
}
|
|
973
|
+
function u(l) {
|
|
974
|
+
Pe(c, o, n, r, u, "throw", l);
|
|
975
|
+
}
|
|
976
|
+
r(void 0);
|
|
977
|
+
});
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
function _e(t, e) {
|
|
981
|
+
var a = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
982
|
+
if (!a) {
|
|
983
|
+
if (Array.isArray(t) || (a = at(t)) || e) {
|
|
984
|
+
a && (t = a);
|
|
985
|
+
var o = 0, n = function() {
|
|
986
|
+
};
|
|
987
|
+
return {
|
|
988
|
+
s: n,
|
|
989
|
+
n: function() {
|
|
990
|
+
return o >= t.length ? {
|
|
991
|
+
done: !0
|
|
992
|
+
} : {
|
|
993
|
+
done: !1,
|
|
994
|
+
value: t[o++]
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
e: function(l) {
|
|
998
|
+
throw l;
|
|
999
|
+
},
|
|
1000
|
+
f: n
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1004
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1005
|
+
}
|
|
1006
|
+
var c, r = !0, u = !1;
|
|
1007
|
+
return {
|
|
1008
|
+
s: function() {
|
|
1009
|
+
a = a.call(t);
|
|
1010
|
+
},
|
|
1011
|
+
n: function() {
|
|
1012
|
+
var l = a.next();
|
|
1013
|
+
return r = l.done, l;
|
|
1014
|
+
},
|
|
1015
|
+
e: function(l) {
|
|
1016
|
+
u = !0, c = l;
|
|
1017
|
+
},
|
|
1018
|
+
f: function() {
|
|
1019
|
+
try {
|
|
1020
|
+
r || a.return == null || a.return();
|
|
1021
|
+
} finally {
|
|
1022
|
+
if (u) throw c;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
function br(t, e, a) {
|
|
1028
|
+
return (e = yr(e)) in t ? Object.defineProperty(t, e, {
|
|
1029
|
+
value: a,
|
|
1030
|
+
enumerable: !0,
|
|
1031
|
+
configurable: !0,
|
|
1032
|
+
writable: !0
|
|
1033
|
+
}) : t[e] = a, t;
|
|
1034
|
+
}
|
|
1035
|
+
function hr(t) {
|
|
1036
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1037
|
+
}
|
|
1038
|
+
function pr() {
|
|
1039
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1040
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1041
|
+
}
|
|
1042
|
+
function Ge(t, e) {
|
|
1043
|
+
var a = Object.keys(t);
|
|
1044
|
+
if (Object.getOwnPropertySymbols) {
|
|
1045
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
1046
|
+
e && (o = o.filter(function(n) {
|
|
1047
|
+
return Object.getOwnPropertyDescriptor(t, n).enumerable;
|
|
1048
|
+
})), a.push.apply(a, o);
|
|
1049
|
+
}
|
|
1050
|
+
return a;
|
|
1051
|
+
}
|
|
1052
|
+
function He(t) {
|
|
1053
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1054
|
+
var a = arguments[e] != null ? arguments[e] : {};
|
|
1055
|
+
e % 2 ? Ge(Object(a), !0).forEach(function(o) {
|
|
1056
|
+
br(t, o, a[o]);
|
|
1057
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : Ge(Object(a)).forEach(function(o) {
|
|
1058
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(a, o));
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
return t;
|
|
1062
|
+
}
|
|
1063
|
+
function be() {
|
|
1064
|
+
var t, e, a = typeof Symbol == "function" ? Symbol : {}, o = a.iterator || "@@iterator", n = a.toStringTag || "@@toStringTag";
|
|
1065
|
+
function c(g, L, B, $) {
|
|
1066
|
+
var G = L && L.prototype instanceof u ? L : u, M = Object.create(G.prototype);
|
|
1067
|
+
return q(M, "_invoke", (function(se, oe, ne) {
|
|
1068
|
+
var W, F, R, z = 0, j = ne || [], H = !1, K = {
|
|
1069
|
+
p: 0,
|
|
1070
|
+
n: 0,
|
|
1071
|
+
v: t,
|
|
1072
|
+
a: N,
|
|
1073
|
+
f: N.bind(t, 4),
|
|
1074
|
+
d: function(i, s) {
|
|
1075
|
+
return W = i, F = 0, R = t, K.n = s, r;
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
function N(i, s) {
|
|
1079
|
+
for (F = i, R = s, e = 0; !H && z && !f && e < j.length; e++) {
|
|
1080
|
+
var f, m = j[e], C = K.p, k = m[2];
|
|
1081
|
+
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));
|
|
1082
|
+
}
|
|
1083
|
+
if (f || i > 1) return r;
|
|
1084
|
+
throw H = !0, s;
|
|
1085
|
+
}
|
|
1086
|
+
return function(i, s, f) {
|
|
1087
|
+
if (z > 1) throw TypeError("Generator is already running");
|
|
1088
|
+
for (H && s === 1 && N(s, f), F = s, R = f; (e = F < 2 ? t : R) || !H; ) {
|
|
1089
|
+
W || (F ? F < 3 ? (F > 1 && (K.n = -1), N(F, R)) : K.n = R : K.v = R);
|
|
1090
|
+
try {
|
|
1091
|
+
if (z = 2, W) {
|
|
1092
|
+
if (F || (i = "next"), e = W[i]) {
|
|
1093
|
+
if (!(e = e.call(W, R))) throw TypeError("iterator result is not an object");
|
|
1094
|
+
if (!e.done) return e;
|
|
1095
|
+
R = e.value, F < 2 && (F = 0);
|
|
1096
|
+
} else F === 1 && (e = W.return) && e.call(W), F < 2 && (R = TypeError("The iterator does not provide a '" + i + "' method"), F = 1);
|
|
1097
|
+
W = t;
|
|
1098
|
+
} else if ((e = (H = K.n < 0) ? R : se.call(oe, K)) !== r) break;
|
|
1099
|
+
} catch (m) {
|
|
1100
|
+
W = t, F = 1, R = m;
|
|
1101
|
+
} finally {
|
|
1102
|
+
z = 1;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
return {
|
|
1106
|
+
value: e,
|
|
1107
|
+
done: H
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
})(g, B, $), !0), M;
|
|
1111
|
+
}
|
|
1112
|
+
var r = {};
|
|
1113
|
+
function u() {
|
|
1114
|
+
}
|
|
1115
|
+
function l() {
|
|
1116
|
+
}
|
|
1117
|
+
function d() {
|
|
1118
|
+
}
|
|
1119
|
+
e = Object.getPrototypeOf;
|
|
1120
|
+
var v = [][o] ? e(e([][o]())) : (q(e = {}, o, function() {
|
|
1121
|
+
return this;
|
|
1122
|
+
}), e), b = d.prototype = u.prototype = Object.create(v);
|
|
1123
|
+
function h(g) {
|
|
1124
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(g, d) : (g.__proto__ = d, q(g, n, "GeneratorFunction")), g.prototype = Object.create(b), g;
|
|
1125
|
+
}
|
|
1126
|
+
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() {
|
|
1127
|
+
return this;
|
|
1128
|
+
}), q(b, "toString", function() {
|
|
1129
|
+
return "[object Generator]";
|
|
1130
|
+
}), (be = function() {
|
|
1131
|
+
return {
|
|
1132
|
+
w: c,
|
|
1133
|
+
m: h
|
|
1134
|
+
};
|
|
1135
|
+
})();
|
|
1136
|
+
}
|
|
1137
|
+
function q(t, e, a, o) {
|
|
1138
|
+
var n = Object.defineProperty;
|
|
1139
|
+
try {
|
|
1140
|
+
n({}, "", {});
|
|
1141
|
+
} catch {
|
|
1142
|
+
n = 0;
|
|
1143
|
+
}
|
|
1144
|
+
q = function(c, r, u, l) {
|
|
1145
|
+
function d(v, b) {
|
|
1146
|
+
q(c, v, function(h) {
|
|
1147
|
+
return this._invoke(v, b, h);
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
r ? n ? n(c, r, {
|
|
1151
|
+
value: u,
|
|
1152
|
+
enumerable: !l,
|
|
1153
|
+
configurable: !l,
|
|
1154
|
+
writable: !l
|
|
1155
|
+
}) : c[r] = u : (d("next", 0), d("throw", 1), d("return", 2));
|
|
1156
|
+
}, q(t, e, a, o);
|
|
1157
|
+
}
|
|
1158
|
+
function gr(t) {
|
|
1159
|
+
return vr(t) || hr(t) || at(t) || pr();
|
|
1160
|
+
}
|
|
1161
|
+
function mr(t, e) {
|
|
1162
|
+
if (typeof t != "object" || !t) return t;
|
|
1163
|
+
var a = t[Symbol.toPrimitive];
|
|
1164
|
+
if (a !== void 0) {
|
|
1165
|
+
var o = a.call(t, e);
|
|
1166
|
+
if (typeof o != "object") return o;
|
|
1167
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1168
|
+
}
|
|
1169
|
+
return (e === "string" ? String : Number)(t);
|
|
1170
|
+
}
|
|
1171
|
+
function yr(t) {
|
|
1172
|
+
var e = mr(t, "string");
|
|
1173
|
+
return typeof e == "symbol" ? e : e + "";
|
|
1174
|
+
}
|
|
1175
|
+
function at(t, e) {
|
|
1176
|
+
if (t) {
|
|
1177
|
+
if (typeof t == "string") return Oe(t, e);
|
|
1178
|
+
var a = {}.toString.call(t).slice(8, -1);
|
|
1179
|
+
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;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
var ae = {
|
|
1183
|
+
// Returns the trap from the top of the stack.
|
|
1184
|
+
getActiveTrap: function(e) {
|
|
1185
|
+
return e?.length > 0 ? e[e.length - 1] : null;
|
|
1186
|
+
},
|
|
1187
|
+
// Pauses the currently active trap, then adds a new trap to the stack.
|
|
1188
|
+
activateTrap: function(e, a) {
|
|
1189
|
+
var o = ae.getActiveTrap(e);
|
|
1190
|
+
a !== o && ae.pauseTrap(e);
|
|
1191
|
+
var n = e.indexOf(a);
|
|
1192
|
+
n === -1 || e.splice(n, 1), e.push(a);
|
|
1193
|
+
},
|
|
1194
|
+
// Removes the trap from the top of the stack, then unpauses the next trap down.
|
|
1195
|
+
deactivateTrap: function(e, a) {
|
|
1196
|
+
var o = e.indexOf(a);
|
|
1197
|
+
o !== -1 && e.splice(o, 1), ae.unpauseTrap(e);
|
|
1198
|
+
},
|
|
1199
|
+
// Pauses the trap at the top of the stack.
|
|
1200
|
+
pauseTrap: function(e) {
|
|
1201
|
+
var a = ae.getActiveTrap(e);
|
|
1202
|
+
a?._setPausedState(!0);
|
|
1203
|
+
},
|
|
1204
|
+
// Unpauses the trap at the top of the stack.
|
|
1205
|
+
unpauseTrap: function(e) {
|
|
1206
|
+
var a = ae.getActiveTrap(e);
|
|
1207
|
+
a && !a._isManuallyPaused() && a._setPausedState(!1);
|
|
1208
|
+
}
|
|
1209
|
+
}, wr = function(e) {
|
|
1210
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
1211
|
+
}, Cr = function(e) {
|
|
1212
|
+
return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
|
|
1213
|
+
}, pe = function(e) {
|
|
1214
|
+
return e?.key === "Tab" || e?.keyCode === 9;
|
|
1215
|
+
}, kr = function(e) {
|
|
1216
|
+
return pe(e) && !e.shiftKey;
|
|
1217
|
+
}, Tr = function(e) {
|
|
1218
|
+
return pe(e) && e.shiftKey;
|
|
1219
|
+
}, Me = function(e) {
|
|
1220
|
+
return setTimeout(e, 0);
|
|
1221
|
+
}, ve = function(e) {
|
|
1222
|
+
for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++)
|
|
1223
|
+
o[n - 1] = arguments[n];
|
|
1224
|
+
return typeof e == "function" ? e.apply(void 0, o) : e;
|
|
1225
|
+
}, me = function(e) {
|
|
1226
|
+
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
1227
|
+
}, Sr = [], xr = function(e, a) {
|
|
1228
|
+
var o = a?.document || document, n = a?.trapStack || Sr, c = He({
|
|
1229
|
+
returnFocusOnDeactivate: !0,
|
|
1230
|
+
escapeDeactivates: !0,
|
|
1231
|
+
delayInitialFocus: !0,
|
|
1232
|
+
delayReturnFocus: !0,
|
|
1233
|
+
isolateSubtrees: !1,
|
|
1234
|
+
isKeyForward: kr,
|
|
1235
|
+
isKeyBackward: Tr
|
|
1236
|
+
}, a), r = {
|
|
1237
|
+
// containers given to createFocusTrap()
|
|
1238
|
+
/** @type {Array<HTMLElement>} */
|
|
1239
|
+
containers: [],
|
|
1240
|
+
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
1241
|
+
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
1242
|
+
// is active, but the trap should never get to a state where there isn't at least one group
|
|
1243
|
+
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
1244
|
+
// result in an error being thrown)
|
|
1245
|
+
/** @type {Array<{
|
|
1246
|
+
* container: HTMLElement,
|
|
1247
|
+
* tabbableNodes: Array<HTMLElement>, // empty if none
|
|
1248
|
+
* focusableNodes: Array<HTMLElement>, // empty if none
|
|
1249
|
+
* posTabIndexesFound: boolean,
|
|
1250
|
+
* firstTabbableNode: HTMLElement|undefined,
|
|
1251
|
+
* lastTabbableNode: HTMLElement|undefined,
|
|
1252
|
+
* firstDomTabbableNode: HTMLElement|undefined,
|
|
1253
|
+
* lastDomTabbableNode: HTMLElement|undefined,
|
|
1254
|
+
* nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
1255
|
+
* }>}
|
|
1256
|
+
*/
|
|
1257
|
+
containerGroups: [],
|
|
1258
|
+
// same order/length as `containers` list
|
|
1259
|
+
// references to objects in `containerGroups`, but only those that actually have
|
|
1260
|
+
// tabbable nodes in them
|
|
1261
|
+
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
1262
|
+
// the same length
|
|
1263
|
+
tabbableGroups: [],
|
|
1264
|
+
// references to nodes that are siblings to the ancestors of this trap's containers.
|
|
1265
|
+
/** @type {Set<HTMLElement>} */
|
|
1266
|
+
adjacentElements: /* @__PURE__ */ new Set(),
|
|
1267
|
+
// references to nodes that were inert or aria-hidden before the trap was activated.
|
|
1268
|
+
/** @type {Set<HTMLElement>} */
|
|
1269
|
+
alreadySilent: /* @__PURE__ */ new Set(),
|
|
1270
|
+
nodeFocusedBeforeActivation: null,
|
|
1271
|
+
mostRecentlyFocusedNode: null,
|
|
1272
|
+
active: !1,
|
|
1273
|
+
paused: !1,
|
|
1274
|
+
manuallyPaused: !1,
|
|
1275
|
+
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
1276
|
+
// has been delayed during activation
|
|
1277
|
+
delayInitialFocusTimer: void 0,
|
|
1278
|
+
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1279
|
+
recentNavEvent: void 0
|
|
1280
|
+
}, u, l = function(i, s, f) {
|
|
1281
|
+
return i && i[s] !== void 0 ? i[s] : c[f || s];
|
|
1282
|
+
}, d = function(i, s) {
|
|
1283
|
+
var f = typeof s?.composedPath == "function" ? s.composedPath() : void 0;
|
|
1284
|
+
return r.containerGroups.findIndex(function(m) {
|
|
1285
|
+
var C = m.container, k = m.tabbableNodes;
|
|
1286
|
+
return C.contains(i) || f?.includes(C) || k.find(function(w) {
|
|
1287
|
+
return w === i;
|
|
1288
|
+
});
|
|
1289
|
+
});
|
|
1290
|
+
}, v = function(i) {
|
|
1291
|
+
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];
|
|
1292
|
+
if (typeof w == "function" && (w = w.apply(void 0, gr(k))), w === !0 && (w = void 0), !w) {
|
|
1293
|
+
if (w === void 0 || w === !1)
|
|
1294
|
+
return w;
|
|
1295
|
+
throw new Error("`".concat(i, "` was specified but was not a node, or did not return a node"));
|
|
1296
|
+
}
|
|
1297
|
+
var x = w;
|
|
1298
|
+
if (typeof w == "string") {
|
|
1299
|
+
try {
|
|
1300
|
+
x = o.querySelector(w);
|
|
1301
|
+
} catch (T) {
|
|
1302
|
+
throw new Error("`".concat(i, '` appears to be an invalid selector; error="').concat(T.message, '"'));
|
|
1303
|
+
}
|
|
1304
|
+
if (!x && !m)
|
|
1305
|
+
throw new Error("`".concat(i, "` as selector refers to no known node"));
|
|
1306
|
+
}
|
|
1307
|
+
return x;
|
|
1308
|
+
}, b = function() {
|
|
1309
|
+
var i = v("initialFocus", {
|
|
1310
|
+
hasFallback: !0
|
|
1311
|
+
});
|
|
1312
|
+
if (i === !1)
|
|
1313
|
+
return !1;
|
|
1314
|
+
if (i === void 0 || i && !Ee(i, c.tabbableOptions))
|
|
1315
|
+
if (d(o.activeElement) >= 0)
|
|
1316
|
+
i = o.activeElement;
|
|
1317
|
+
else {
|
|
1318
|
+
var s = r.tabbableGroups[0], f = s && s.firstTabbableNode;
|
|
1319
|
+
i = f || v("fallbackFocus");
|
|
1320
|
+
}
|
|
1321
|
+
else i === null && (i = v("fallbackFocus"));
|
|
1322
|
+
if (!i)
|
|
1323
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1324
|
+
return i;
|
|
1325
|
+
}, h = function() {
|
|
1326
|
+
if (r.containerGroups = r.containers.map(function(i) {
|
|
1327
|
+
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) {
|
|
1328
|
+
return fe(T);
|
|
1329
|
+
}), w = f.slice().reverse().find(function(T) {
|
|
1330
|
+
return fe(T);
|
|
1331
|
+
}), x = !!s.find(function(T) {
|
|
1332
|
+
return ce(T) > 0;
|
|
1333
|
+
});
|
|
1334
|
+
return {
|
|
1335
|
+
container: i,
|
|
1336
|
+
tabbableNodes: s,
|
|
1337
|
+
focusableNodes: f,
|
|
1338
|
+
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1339
|
+
posTabIndexesFound: x,
|
|
1340
|
+
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1341
|
+
firstTabbableNode: m,
|
|
1342
|
+
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1343
|
+
lastTabbableNode: C,
|
|
1344
|
+
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
1345
|
+
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
1346
|
+
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
1347
|
+
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
|
1348
|
+
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
|
1349
|
+
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
1350
|
+
// be avoided anyway...
|
|
1351
|
+
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1352
|
+
firstDomTabbableNode: k,
|
|
1353
|
+
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
1354
|
+
lastDomTabbableNode: w,
|
|
1355
|
+
/**
|
|
1356
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
1357
|
+
* in this container, if any.
|
|
1358
|
+
* @param {HTMLElement} node
|
|
1359
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
1360
|
+
* in reverse.
|
|
1361
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1362
|
+
*/
|
|
1363
|
+
nextTabbableNode: function(P) {
|
|
1364
|
+
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, X = s.indexOf(P);
|
|
1365
|
+
return X < 0 ? U ? f.slice(f.indexOf(P) + 1).find(function(le) {
|
|
1366
|
+
return fe(le);
|
|
1367
|
+
}) : f.slice(0, f.indexOf(P)).reverse().find(function(le) {
|
|
1368
|
+
return fe(le);
|
|
1369
|
+
}) : s[X + (U ? 1 : -1)];
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
}), r.tabbableGroups = r.containerGroups.filter(function(i) {
|
|
1373
|
+
return i.tabbableNodes.length > 0;
|
|
1374
|
+
}), r.tabbableGroups.length <= 0 && !v("fallbackFocus"))
|
|
1375
|
+
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
1376
|
+
if (r.containerGroups.find(function(i) {
|
|
1377
|
+
return i.posTabIndexesFound;
|
|
1378
|
+
}) && r.containerGroups.length > 1)
|
|
1379
|
+
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.");
|
|
1380
|
+
}, g = function(i) {
|
|
1381
|
+
var s = i.activeElement;
|
|
1382
|
+
if (s)
|
|
1383
|
+
return s.shadowRoot && s.shadowRoot.activeElement !== null ? g(s.shadowRoot) : s;
|
|
1384
|
+
}, L = function(i) {
|
|
1385
|
+
if (i !== !1 && i !== g(document)) {
|
|
1386
|
+
if (!i || !i.focus) {
|
|
1387
|
+
L(b());
|
|
1388
|
+
return;
|
|
1389
|
+
}
|
|
1390
|
+
i.focus({
|
|
1391
|
+
preventScroll: !!c.preventScroll
|
|
1392
|
+
}), r.mostRecentlyFocusedNode = i, wr(i) && i.select();
|
|
1393
|
+
}
|
|
1394
|
+
}, B = function(i) {
|
|
1395
|
+
var s = v("setReturnFocus", {
|
|
1396
|
+
params: [i]
|
|
1397
|
+
});
|
|
1398
|
+
return s || (s === !1 ? !1 : i);
|
|
1399
|
+
}, $ = function(i) {
|
|
1400
|
+
var s = i.target, f = i.event, m = i.isBackward, C = m === void 0 ? !1 : m;
|
|
1401
|
+
s = s || me(f), h();
|
|
1402
|
+
var k = null;
|
|
1403
|
+
if (r.tabbableGroups.length > 0) {
|
|
1404
|
+
var w = d(s, f), x = w >= 0 ? r.containerGroups[w] : void 0;
|
|
1405
|
+
if (w < 0)
|
|
1406
|
+
C ? k = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : k = r.tabbableGroups[0].firstTabbableNode;
|
|
1407
|
+
else if (C) {
|
|
1408
|
+
var T = r.tabbableGroups.findIndex(function(xe) {
|
|
1409
|
+
var Re = xe.firstTabbableNode;
|
|
1410
|
+
return s === Re;
|
|
1411
|
+
});
|
|
1412
|
+
if (T < 0 && (x.container === s || Ee(s, c.tabbableOptions) && !fe(s, c.tabbableOptions) && !x.nextTabbableNode(s, !1)) && (T = w), T >= 0) {
|
|
1413
|
+
var P = T === 0 ? r.tabbableGroups.length - 1 : T - 1, U = r.tabbableGroups[P];
|
|
1414
|
+
k = ce(s) >= 0 ? U.lastTabbableNode : U.lastDomTabbableNode;
|
|
1415
|
+
} else pe(f) || (k = x.nextTabbableNode(s, !1));
|
|
1416
|
+
} else {
|
|
1417
|
+
var X = r.tabbableGroups.findIndex(function(xe) {
|
|
1418
|
+
var Re = xe.lastTabbableNode;
|
|
1419
|
+
return s === Re;
|
|
1420
|
+
});
|
|
1421
|
+
if (X < 0 && (x.container === s || Ee(s, c.tabbableOptions) && !fe(s, c.tabbableOptions) && !x.nextTabbableNode(s)) && (X = w), X >= 0) {
|
|
1422
|
+
var le = X === r.tabbableGroups.length - 1 ? 0 : X + 1, ie = r.tabbableGroups[le];
|
|
1423
|
+
k = ce(s) >= 0 ? ie.firstTabbableNode : ie.firstDomTabbableNode;
|
|
1424
|
+
} else pe(f) || (k = x.nextTabbableNode(s));
|
|
1425
|
+
}
|
|
1426
|
+
} else
|
|
1427
|
+
k = v("fallbackFocus");
|
|
1428
|
+
return k;
|
|
1429
|
+
}, G = function(i) {
|
|
1430
|
+
var s = me(i);
|
|
1431
|
+
if (!(d(s, i) >= 0)) {
|
|
1432
|
+
if (ve(c.clickOutsideDeactivates, i)) {
|
|
1433
|
+
u.deactivate({
|
|
1434
|
+
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
1435
|
+
// which will result in the outside click setting focus to the node
|
|
1436
|
+
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
1437
|
+
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
1438
|
+
// on activation (or the configured `setReturnFocus` node), whether the
|
|
1439
|
+
// outside click was on a focusable node or not
|
|
1440
|
+
returnFocus: c.returnFocusOnDeactivate
|
|
1441
|
+
});
|
|
1442
|
+
return;
|
|
1443
|
+
}
|
|
1444
|
+
ve(c.allowOutsideClick, i) || i.preventDefault();
|
|
1445
|
+
}
|
|
1446
|
+
}, M = function(i) {
|
|
1447
|
+
var s = me(i), f = d(s, i) >= 0;
|
|
1448
|
+
if (f || s instanceof Document)
|
|
1449
|
+
f && (r.mostRecentlyFocusedNode = s);
|
|
1450
|
+
else {
|
|
1451
|
+
i.stopImmediatePropagation();
|
|
1452
|
+
var m, C = !0;
|
|
1453
|
+
if (r.mostRecentlyFocusedNode)
|
|
1454
|
+
if (ce(r.mostRecentlyFocusedNode) > 0) {
|
|
1455
|
+
var k = d(r.mostRecentlyFocusedNode), w = r.containerGroups[k].tabbableNodes;
|
|
1456
|
+
if (w.length > 0) {
|
|
1457
|
+
var x = w.findIndex(function(T) {
|
|
1458
|
+
return T === r.mostRecentlyFocusedNode;
|
|
1459
|
+
});
|
|
1460
|
+
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));
|
|
1461
|
+
}
|
|
1462
|
+
} else
|
|
1463
|
+
r.containerGroups.some(function(T) {
|
|
1464
|
+
return T.tabbableNodes.some(function(P) {
|
|
1465
|
+
return ce(P) > 0;
|
|
1466
|
+
});
|
|
1467
|
+
}) || (C = !1);
|
|
1468
|
+
else
|
|
1469
|
+
C = !1;
|
|
1470
|
+
C && (m = $({
|
|
1471
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1472
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
1473
|
+
target: r.mostRecentlyFocusedNode,
|
|
1474
|
+
isBackward: c.isKeyBackward(r.recentNavEvent)
|
|
1475
|
+
})), L(m || r.mostRecentlyFocusedNode || b());
|
|
1476
|
+
}
|
|
1477
|
+
r.recentNavEvent = void 0;
|
|
1478
|
+
}, se = function(i) {
|
|
1479
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1480
|
+
r.recentNavEvent = i;
|
|
1481
|
+
var f = $({
|
|
1482
|
+
event: i,
|
|
1483
|
+
isBackward: s
|
|
1484
|
+
});
|
|
1485
|
+
f && (pe(i) && i.preventDefault(), L(f));
|
|
1486
|
+
}, oe = function(i) {
|
|
1487
|
+
(c.isKeyForward(i) || c.isKeyBackward(i)) && se(i, c.isKeyBackward(i));
|
|
1488
|
+
}, ne = function(i) {
|
|
1489
|
+
Cr(i) && ve(c.escapeDeactivates, i) !== !1 && (i.preventDefault(), u.deactivate());
|
|
1490
|
+
}, W = function(i) {
|
|
1491
|
+
var s = me(i);
|
|
1492
|
+
d(s, i) >= 0 || ve(c.clickOutsideDeactivates, i) || ve(c.allowOutsideClick, i) || (i.preventDefault(), i.stopImmediatePropagation());
|
|
1493
|
+
}, F = function() {
|
|
1494
|
+
if (!r.active)
|
|
1495
|
+
return Promise.resolve();
|
|
1496
|
+
ae.activateTrap(n, u);
|
|
1497
|
+
var i;
|
|
1498
|
+
return c.delayInitialFocus ? i = new Promise(function(s) {
|
|
1499
|
+
r.delayInitialFocusTimer = Me(function() {
|
|
1500
|
+
L(b()), s();
|
|
1501
|
+
});
|
|
1502
|
+
}) : (i = Promise.resolve(), L(b())), o.addEventListener("focusin", M, !0), o.addEventListener("mousedown", G, {
|
|
1503
|
+
capture: !0,
|
|
1504
|
+
passive: !1
|
|
1505
|
+
}), o.addEventListener("touchstart", G, {
|
|
1506
|
+
capture: !0,
|
|
1507
|
+
passive: !1
|
|
1508
|
+
}), o.addEventListener("click", W, {
|
|
1509
|
+
capture: !0,
|
|
1510
|
+
passive: !1
|
|
1511
|
+
}), o.addEventListener("keydown", oe, {
|
|
1512
|
+
capture: !0,
|
|
1513
|
+
passive: !1
|
|
1514
|
+
}), o.addEventListener("keydown", ne), i;
|
|
1515
|
+
}, R = function(i) {
|
|
1516
|
+
r.active && !r.paused && u._setSubtreeIsolation(!1), r.adjacentElements.clear(), r.alreadySilent.clear();
|
|
1517
|
+
var s = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), m = _e(i), C;
|
|
1518
|
+
try {
|
|
1519
|
+
for (m.s(); !(C = m.n()).done; ) {
|
|
1520
|
+
var k = C.value;
|
|
1521
|
+
s.add(k);
|
|
1522
|
+
for (var w = typeof ShadowRoot < "u" && k.getRootNode() instanceof ShadowRoot, x = k; x; ) {
|
|
1523
|
+
s.add(x);
|
|
1524
|
+
var T = x.parentElement, P = [];
|
|
1525
|
+
T ? P = T.children : !T && w && (P = x.getRootNode().children, T = x.getRootNode().host, w = typeof ShadowRoot < "u" && T.getRootNode() instanceof ShadowRoot);
|
|
1526
|
+
var U = _e(P), X;
|
|
1527
|
+
try {
|
|
1528
|
+
for (U.s(); !(X = U.n()).done; ) {
|
|
1529
|
+
var le = X.value;
|
|
1530
|
+
f.add(le);
|
|
1531
|
+
}
|
|
1532
|
+
} catch (ie) {
|
|
1533
|
+
U.e(ie);
|
|
1534
|
+
} finally {
|
|
1535
|
+
U.f();
|
|
1536
|
+
}
|
|
1537
|
+
x = T;
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
} catch (ie) {
|
|
1541
|
+
m.e(ie);
|
|
1542
|
+
} finally {
|
|
1543
|
+
m.f();
|
|
1544
|
+
}
|
|
1545
|
+
s.forEach(function(ie) {
|
|
1546
|
+
f.delete(ie);
|
|
1547
|
+
}), r.adjacentElements = f;
|
|
1548
|
+
}, z = function() {
|
|
1549
|
+
if (r.active)
|
|
1550
|
+
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;
|
|
1551
|
+
}, j = function(i) {
|
|
1552
|
+
var s = r.mostRecentlyFocusedNode;
|
|
1553
|
+
if (s) {
|
|
1554
|
+
var f = i.some(function(C) {
|
|
1555
|
+
var k = Array.from(C.removedNodes);
|
|
1556
|
+
return k.some(function(w) {
|
|
1557
|
+
return w === s || typeof w.contains == "function" && w.contains(s);
|
|
1558
|
+
});
|
|
1559
|
+
});
|
|
1560
|
+
if (f && r.containers.some(function(C) {
|
|
1561
|
+
return C?.isConnected;
|
|
1562
|
+
})) {
|
|
1563
|
+
h();
|
|
1564
|
+
var m = b();
|
|
1565
|
+
L(m);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}, H = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(j) : void 0, K = function() {
|
|
1569
|
+
H && (H.disconnect(), r.active && !r.paused && r.containers.map(function(i) {
|
|
1570
|
+
H.observe(i, {
|
|
1571
|
+
subtree: !0,
|
|
1572
|
+
childList: !0
|
|
1573
|
+
});
|
|
1574
|
+
}));
|
|
1575
|
+
};
|
|
1576
|
+
return u = {
|
|
1577
|
+
get active() {
|
|
1578
|
+
return r.active;
|
|
1579
|
+
},
|
|
1580
|
+
get paused() {
|
|
1581
|
+
return r.paused;
|
|
1582
|
+
},
|
|
1583
|
+
activate: function(i) {
|
|
1584
|
+
if (r.active)
|
|
1585
|
+
return this;
|
|
1586
|
+
var s = l(i, "onActivate"), f = l(i, "onPostActivate"), m = l(i, "checkCanFocusTrap"), C = ae.getActiveTrap(n), k = !1;
|
|
1587
|
+
if (C && !C.paused) {
|
|
1588
|
+
var w;
|
|
1589
|
+
(w = C._setSubtreeIsolation) === null || w === void 0 || w.call(C, !1), k = !0;
|
|
1590
|
+
}
|
|
1591
|
+
try {
|
|
1592
|
+
m || h(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = g(o), s?.({
|
|
1593
|
+
trap: u
|
|
1594
|
+
});
|
|
1595
|
+
var x = /* @__PURE__ */ (function() {
|
|
1596
|
+
var P = je(/* @__PURE__ */ be().m(function U() {
|
|
1597
|
+
return be().w(function(X) {
|
|
1598
|
+
for (; ; ) switch (X.n) {
|
|
1599
|
+
case 0:
|
|
1600
|
+
return m && h(), X.n = 1, F();
|
|
1601
|
+
case 1:
|
|
1602
|
+
u._setSubtreeIsolation(!0), K(), f?.({
|
|
1603
|
+
trap: u
|
|
1604
|
+
});
|
|
1605
|
+
case 2:
|
|
1606
|
+
return X.a(2);
|
|
1607
|
+
}
|
|
1608
|
+
}, U);
|
|
1609
|
+
}));
|
|
1610
|
+
return function() {
|
|
1611
|
+
return P.apply(this, arguments);
|
|
1612
|
+
};
|
|
1613
|
+
})();
|
|
1614
|
+
if (m)
|
|
1615
|
+
return m(r.containers.concat()).then(x, x), this;
|
|
1616
|
+
x();
|
|
1617
|
+
} catch (P) {
|
|
1618
|
+
if (C === ae.getActiveTrap(n) && k) {
|
|
1619
|
+
var T;
|
|
1620
|
+
(T = C._setSubtreeIsolation) === null || T === void 0 || T.call(C, !0);
|
|
1621
|
+
}
|
|
1622
|
+
throw P;
|
|
1623
|
+
}
|
|
1624
|
+
return this;
|
|
1625
|
+
},
|
|
1626
|
+
deactivate: function(i) {
|
|
1627
|
+
if (!r.active)
|
|
1628
|
+
return this;
|
|
1629
|
+
var s = He({
|
|
1630
|
+
onDeactivate: c.onDeactivate,
|
|
1631
|
+
onPostDeactivate: c.onPostDeactivate,
|
|
1632
|
+
checkCanReturnFocus: c.checkCanReturnFocus
|
|
1633
|
+
}, i);
|
|
1634
|
+
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);
|
|
1635
|
+
var f = l(s, "onDeactivate"), m = l(s, "onPostDeactivate"), C = l(s, "checkCanReturnFocus"), k = l(s, "delayReturnFocus"), w = l(s, "returnFocus", "returnFocusOnDeactivate");
|
|
1636
|
+
f?.({
|
|
1637
|
+
trap: u
|
|
1638
|
+
});
|
|
1639
|
+
var x = function() {
|
|
1640
|
+
w && L(B(r.nodeFocusedBeforeActivation)), m?.({
|
|
1641
|
+
trap: u
|
|
1642
|
+
});
|
|
1643
|
+
}, T = function() {
|
|
1644
|
+
k && w ? Me(x) : x();
|
|
1645
|
+
};
|
|
1646
|
+
return w && C ? (C(B(r.nodeFocusedBeforeActivation)).then(T, T), this) : (T(), this);
|
|
1647
|
+
},
|
|
1648
|
+
pause: function(i) {
|
|
1649
|
+
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0, i)) : this;
|
|
1650
|
+
},
|
|
1651
|
+
unpause: function(i) {
|
|
1652
|
+
return r.active ? (r.manuallyPaused = !1, n[n.length - 1] !== this ? this : this._setPausedState(!1, i)) : this;
|
|
1653
|
+
},
|
|
1654
|
+
updateContainerElements: function(i) {
|
|
1655
|
+
var s = [].concat(i).filter(Boolean);
|
|
1656
|
+
return r.containers = s.map(function(f) {
|
|
1657
|
+
return typeof f == "string" ? o.querySelector(f) : f;
|
|
1658
|
+
}), c.isolateSubtrees && R(r.containers), r.active && (h(), r.paused || u._setSubtreeIsolation(!0)), K(), this;
|
|
1659
|
+
}
|
|
1660
|
+
}, Object.defineProperties(u, {
|
|
1661
|
+
_isManuallyPaused: {
|
|
1662
|
+
value: function() {
|
|
1663
|
+
return r.manuallyPaused;
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
_setPausedState: {
|
|
1667
|
+
value: function(i, s) {
|
|
1668
|
+
if (r.paused === i)
|
|
1669
|
+
return this;
|
|
1670
|
+
if (r.paused = i, i) {
|
|
1671
|
+
var f = l(s, "onPause"), m = l(s, "onPostPause");
|
|
1672
|
+
f?.({
|
|
1673
|
+
trap: u
|
|
1674
|
+
}), z(), u._setSubtreeIsolation(!1), K(), m?.({
|
|
1675
|
+
trap: u
|
|
1676
|
+
});
|
|
1677
|
+
} else {
|
|
1678
|
+
var C = l(s, "onUnpause"), k = l(s, "onPostUnpause");
|
|
1679
|
+
C?.({
|
|
1680
|
+
trap: u
|
|
1681
|
+
});
|
|
1682
|
+
var w = /* @__PURE__ */ (function() {
|
|
1683
|
+
var x = je(/* @__PURE__ */ be().m(function T() {
|
|
1684
|
+
return be().w(function(P) {
|
|
1685
|
+
for (; ; ) switch (P.n) {
|
|
1686
|
+
case 0:
|
|
1687
|
+
return h(), P.n = 1, F();
|
|
1688
|
+
case 1:
|
|
1689
|
+
u._setSubtreeIsolation(!0), K(), k?.({
|
|
1690
|
+
trap: u
|
|
1691
|
+
});
|
|
1692
|
+
case 2:
|
|
1693
|
+
return P.a(2);
|
|
1694
|
+
}
|
|
1695
|
+
}, T);
|
|
1696
|
+
}));
|
|
1697
|
+
return function() {
|
|
1698
|
+
return x.apply(this, arguments);
|
|
1699
|
+
};
|
|
1700
|
+
})();
|
|
1701
|
+
w();
|
|
1702
|
+
}
|
|
1703
|
+
return this;
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
_setSubtreeIsolation: {
|
|
1707
|
+
value: function(i) {
|
|
1708
|
+
c.isolateSubtrees && r.adjacentElements.forEach(function(s) {
|
|
1709
|
+
var f;
|
|
1710
|
+
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"));
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
}), u.updateContainerElements(e), u;
|
|
1715
|
+
};
|
|
1716
|
+
function rt(t, e = {}) {
|
|
1717
|
+
let a;
|
|
1718
|
+
const { immediate: o, ...n } = e, c = Fe(!1), r = Fe(!1), u = (b) => a && a.activate(b), l = (b) => a && a.deactivate(b), d = () => {
|
|
1719
|
+
a && (a.pause(), r.value = !0);
|
|
1720
|
+
}, v = () => {
|
|
1721
|
+
a && (a.unpause(), r.value = !1);
|
|
1722
|
+
};
|
|
1723
|
+
return Q(_(() => ga(Le(t)).map((b) => {
|
|
1724
|
+
const h = Le(b);
|
|
1725
|
+
return typeof h == "string" ? h : ma(h);
|
|
1726
|
+
}).filter(qa)), (b) => {
|
|
1727
|
+
if (b.length)
|
|
1728
|
+
if (!a)
|
|
1729
|
+
a = xr(b, {
|
|
1730
|
+
...n,
|
|
1731
|
+
onActivate(h) {
|
|
1732
|
+
c.value = !0, e.onActivate && e.onActivate(h);
|
|
1733
|
+
},
|
|
1734
|
+
onDeactivate(h) {
|
|
1735
|
+
c.value = !1, e.onDeactivate && e.onDeactivate(h);
|
|
1736
|
+
}
|
|
1737
|
+
}), o && u();
|
|
1738
|
+
else {
|
|
1739
|
+
const h = a?.active;
|
|
1740
|
+
a?.updateContainerElements(b), !h && o && u();
|
|
1741
|
+
}
|
|
1742
|
+
}, { flush: "post" }), ya(() => l()), {
|
|
1743
|
+
hasFocus: c,
|
|
1744
|
+
isPaused: r,
|
|
1745
|
+
activate: u,
|
|
1746
|
+
deactivate: l,
|
|
1747
|
+
pause: d,
|
|
1748
|
+
unpause: v
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
const Rr = ["visible"], Er = ["aria-labelledby"], Nr = {
|
|
628
1752
|
key: 0,
|
|
629
1753
|
class: "sticky top-0"
|
|
630
|
-
},
|
|
1754
|
+
}, Or = ["id"], Br = {
|
|
631
1755
|
key: 1,
|
|
632
1756
|
class: "sticky bottom-0"
|
|
633
|
-
},
|
|
1757
|
+
}, Ar = /* @__PURE__ */ Y({
|
|
634
1758
|
__name: "Modal",
|
|
635
1759
|
props: {
|
|
636
1760
|
title: {},
|
|
637
1761
|
titleColor: { default: "dark-3" },
|
|
638
|
-
|
|
1762
|
+
customClass: { default: "" },
|
|
639
1763
|
visible: { type: Boolean, default: !1 },
|
|
640
|
-
|
|
641
|
-
|
|
1764
|
+
showBackdrop: { type: Boolean, default: !0 },
|
|
1765
|
+
showHeader: { type: Boolean, default: !0 },
|
|
642
1766
|
color: { default: "light-1" },
|
|
643
1767
|
backdropColor: { default: "dark-4" },
|
|
644
1768
|
placement: { default: "center" },
|
|
645
|
-
|
|
1769
|
+
width: { default: "small" }
|
|
646
1770
|
},
|
|
647
1771
|
emits: ["open", "close"],
|
|
648
|
-
setup(
|
|
649
|
-
const
|
|
1772
|
+
setup(t, { expose: e, emit: a }) {
|
|
1773
|
+
const o = t, n = Z(), c = a, r = D(), u = D(), l = D(o.visible), d = D(!1), v = Ie();
|
|
1774
|
+
let b = null;
|
|
1775
|
+
const { activate: h, deactivate: g } = rt(
|
|
1776
|
+
u,
|
|
1777
|
+
{ immediate: !1 }
|
|
1778
|
+
), L = () => {
|
|
650
1779
|
l.value = !l.value;
|
|
651
|
-
},
|
|
1780
|
+
}, B = () => {
|
|
652
1781
|
l.value = !0;
|
|
653
|
-
},
|
|
654
|
-
|
|
655
|
-
},
|
|
1782
|
+
}, $ = () => {
|
|
1783
|
+
d.value === !0 && (l.value = !1);
|
|
1784
|
+
}, G = () => {
|
|
656
1785
|
c("open", !0);
|
|
657
|
-
},
|
|
1786
|
+
}, M = () => {
|
|
658
1787
|
c("close", !1);
|
|
659
|
-
},
|
|
660
|
-
const
|
|
1788
|
+
}, se = _(() => {
|
|
1789
|
+
const R = {
|
|
661
1790
|
top: 25,
|
|
662
1791
|
center: 50,
|
|
663
1792
|
bottom: 75
|
|
664
|
-
}, { placement:
|
|
665
|
-
return { "--vertical-placement": (
|
|
666
|
-
}),
|
|
667
|
-
const {
|
|
1793
|
+
}, { placement: z } = o;
|
|
1794
|
+
return { "--vertical-placement": (R[z] ?? R.center) + "%" };
|
|
1795
|
+
}), oe = _(() => {
|
|
1796
|
+
const { width: R } = o, z = {
|
|
668
1797
|
small: "max-w-[28rem]",
|
|
669
1798
|
medium: "max-w-[28rem] md:max-w-[36rem]",
|
|
670
1799
|
large: "max-w-[28rem] md:max-w-[56rem]"
|
|
671
1800
|
};
|
|
672
|
-
return
|
|
673
|
-
}),
|
|
674
|
-
|
|
675
|
-
},
|
|
676
|
-
|
|
1801
|
+
return z[R] ?? z.small;
|
|
1802
|
+
}), ne = () => {
|
|
1803
|
+
d.value = !0, u.value && h();
|
|
1804
|
+
}, W = () => {
|
|
1805
|
+
d.value = !1;
|
|
677
1806
|
};
|
|
678
|
-
return
|
|
679
|
-
l.value =
|
|
680
|
-
}),
|
|
681
|
-
() =>
|
|
682
|
-
(
|
|
683
|
-
l.value =
|
|
1807
|
+
return ze(r, (R = !1) => {
|
|
1808
|
+
l.value = R;
|
|
1809
|
+
}), Q(
|
|
1810
|
+
() => o.visible,
|
|
1811
|
+
(R) => {
|
|
1812
|
+
l.value = R;
|
|
684
1813
|
}
|
|
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),
|
|
1814
|
+
), Q(l, (R) => {
|
|
1815
|
+
R === !0 ? (typeof document < "u" && (b = document.activeElement), G()) : R === !1 && (g(), b?.focus(), b = null, d.value === !0 && M());
|
|
1816
|
+
}), Ke(l), e({
|
|
1817
|
+
toggle: L,
|
|
1818
|
+
close: $,
|
|
1819
|
+
open: B
|
|
1820
|
+
}), (R, z) => (p(), y("div", {
|
|
1821
|
+
style: ge(se.value),
|
|
698
1822
|
visible: l.value,
|
|
699
1823
|
ref_key: "modalRef",
|
|
700
|
-
ref:
|
|
1824
|
+
ref: r
|
|
701
1825
|
}, [
|
|
702
|
-
|
|
1826
|
+
t.showBackdrop ? (p(), Se(te, {
|
|
703
1827
|
key: 0,
|
|
704
1828
|
name: "fade",
|
|
705
1829
|
appear: "",
|
|
706
1830
|
tag: "div"
|
|
707
1831
|
}, {
|
|
708
|
-
default:
|
|
709
|
-
l.value ? (
|
|
1832
|
+
default: J(() => [
|
|
1833
|
+
l.value ? (p(), y("section", {
|
|
710
1834
|
key: 0,
|
|
711
|
-
onClick:
|
|
712
|
-
|
|
713
|
-
|
|
1835
|
+
onClick: $,
|
|
1836
|
+
"aria-hidden": "true",
|
|
1837
|
+
class: S(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur", I(A).bgColorVariant({ color: t.backdropColor })])
|
|
1838
|
+
}, null, 2)) : O("", !0)
|
|
714
1839
|
]),
|
|
715
1840
|
_: 1
|
|
716
|
-
})),
|
|
717
|
-
|
|
1841
|
+
})) : O("", !0),
|
|
1842
|
+
ee(te, {
|
|
718
1843
|
name: "slide-down",
|
|
719
1844
|
tag: "div",
|
|
720
|
-
onAfterEnter:
|
|
721
|
-
onAfterLeave:
|
|
1845
|
+
onAfterEnter: ne,
|
|
1846
|
+
onAfterLeave: W,
|
|
722
1847
|
appear: ""
|
|
723
1848
|
}, {
|
|
724
|
-
default:
|
|
725
|
-
l.value ? (
|
|
1849
|
+
default: J(() => [
|
|
1850
|
+
l.value ? (p(), y("div", {
|
|
726
1851
|
key: 0,
|
|
727
|
-
class:
|
|
1852
|
+
class: S(["vertical-placement px-xs fixed z-[110] w-full", oe.value])
|
|
728
1853
|
}, [
|
|
729
|
-
|
|
730
|
-
|
|
1854
|
+
de((p(), y("div", {
|
|
1855
|
+
ref_key: "dialogRef",
|
|
1856
|
+
ref: u,
|
|
1857
|
+
role: "dialog",
|
|
1858
|
+
"aria-modal": "true",
|
|
1859
|
+
"aria-labelledby": t.title ? I(v) : void 0,
|
|
1860
|
+
class: S([[I(A).bgColorVariant({ color: t.color }), t.customClass], "relative max-h-[80vh] overflow-y-scroll overscroll-contain md:max-h-[60vh]"])
|
|
731
1861
|
}, [
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
close:
|
|
1862
|
+
t.showHeader ? (p(), y("div", Nr, [
|
|
1863
|
+
V(R.$slots, "header", {
|
|
1864
|
+
close: $,
|
|
735
1865
|
status: l.value
|
|
736
1866
|
}, () => [
|
|
737
|
-
|
|
738
|
-
class:
|
|
1867
|
+
E("div", {
|
|
1868
|
+
class: S(["p-xs border-b-light-4 flex items-center justify-between border-b-2", I(A).bgColorVariant({ color: t.color })])
|
|
739
1869
|
}, [
|
|
740
|
-
|
|
1870
|
+
t.title ? (p(), y("h3", {
|
|
741
1871
|
key: 0,
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
1872
|
+
id: I(v),
|
|
1873
|
+
class: S(["h3-md", I(A).textColorVariant({ color: t.titleColor })])
|
|
1874
|
+
}, he(t.title), 11, Or)) : O("", !0),
|
|
1875
|
+
E("button", {
|
|
1876
|
+
type: "button",
|
|
1877
|
+
"aria-label": "Close",
|
|
1878
|
+
onClick: $
|
|
1879
|
+
}, [
|
|
1880
|
+
(p(), y("svg", {
|
|
746
1881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
747
1882
|
height: "1em",
|
|
748
1883
|
viewBox: "0 0 384 512",
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
1884
|
+
"aria-hidden": "true",
|
|
1885
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [I(A).svgFillColorVariant({ color: t.titleColor })]])
|
|
1886
|
+
}, [...z[0] || (z[0] = [
|
|
1887
|
+
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
1888
|
])], 2))
|
|
753
1889
|
])
|
|
754
1890
|
], 2)
|
|
755
1891
|
], !0)
|
|
756
|
-
])),
|
|
757
|
-
|
|
758
|
-
close:
|
|
1892
|
+
])) : O("", !0),
|
|
1893
|
+
V(R.$slots, "body", {
|
|
1894
|
+
close: $,
|
|
759
1895
|
status: l.value
|
|
760
1896
|
}, void 0, !0),
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
close:
|
|
1897
|
+
n.footer ? (p(), y("div", Br, [
|
|
1898
|
+
V(R.$slots, "footer", {
|
|
1899
|
+
close: $,
|
|
764
1900
|
status: l.value
|
|
765
1901
|
}, void 0, !0)
|
|
766
|
-
])) :
|
|
767
|
-
],
|
|
768
|
-
[
|
|
1902
|
+
])) : O("", !0)
|
|
1903
|
+
], 10, Er)), [
|
|
1904
|
+
[I(De), $]
|
|
769
1905
|
])
|
|
770
|
-
], 2)) :
|
|
1906
|
+
], 2)) : O("", !0)
|
|
771
1907
|
]),
|
|
772
1908
|
_: 3
|
|
773
1909
|
})
|
|
774
|
-
], 12,
|
|
1910
|
+
], 12, Rr));
|
|
775
1911
|
}
|
|
776
|
-
}),
|
|
1912
|
+
}), ro = /* @__PURE__ */ re(Ar, [["__scopeId", "data-v-4f8f0bf8"]]), Vr = ["visible"], Ir = ["aria-labelledby"], Dr = ["id"], Fr = { class: "sidebar-body-height" }, Lr = /* @__PURE__ */ Y({
|
|
777
1913
|
__name: "Sidebar",
|
|
778
1914
|
props: {
|
|
779
1915
|
title: {},
|
|
780
1916
|
titleColor: { default: "dark-3" },
|
|
781
|
-
|
|
1917
|
+
customClass: { default: "" },
|
|
782
1918
|
visible: { type: Boolean, default: !1 },
|
|
783
|
-
|
|
784
|
-
|
|
1919
|
+
showBackdrop: { type: Boolean, default: !0 },
|
|
1920
|
+
showHeader: { type: Boolean, default: !0 },
|
|
785
1921
|
color: { default: "light-1" },
|
|
786
1922
|
backdropColor: { default: "dark-4" },
|
|
787
1923
|
placement: { default: "left" },
|
|
788
1924
|
width: { default: 300 }
|
|
789
1925
|
},
|
|
790
1926
|
emits: ["open", "close"],
|
|
791
|
-
setup(
|
|
792
|
-
const
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
1927
|
+
setup(t, { expose: e, emit: a }) {
|
|
1928
|
+
const o = t, n = Z(), c = a, r = D(o.visible), u = D(!1), l = D(), d = D(), v = D(), b = D(), h = Ie();
|
|
1929
|
+
let g = null;
|
|
1930
|
+
const { activate: L, deactivate: B } = rt(
|
|
1931
|
+
d,
|
|
1932
|
+
{ immediate: !1 }
|
|
1933
|
+
), $ = () => {
|
|
1934
|
+
r.value = !r.value;
|
|
1935
|
+
}, G = () => {
|
|
1936
|
+
r.value = !0;
|
|
1937
|
+
}, M = () => {
|
|
1938
|
+
u.value === !0 && (r.value = !1);
|
|
1939
|
+
}, se = () => {
|
|
799
1940
|
c("open", !0);
|
|
800
|
-
},
|
|
1941
|
+
}, oe = () => {
|
|
801
1942
|
c("close", !1);
|
|
802
|
-
},
|
|
803
|
-
const
|
|
1943
|
+
}, ne = _(() => {
|
|
1944
|
+
const j = (H) => H && r.value ? `${H.scrollHeight}px` : "0px";
|
|
804
1945
|
return {
|
|
805
|
-
"--sidebar-width": `${
|
|
806
|
-
"--header-height":
|
|
807
|
-
"--footer-height":
|
|
1946
|
+
"--sidebar-width": `${o.width}px`,
|
|
1947
|
+
"--header-height": j(v.value),
|
|
1948
|
+
"--footer-height": j(b.value)
|
|
808
1949
|
};
|
|
809
|
-
}),
|
|
810
|
-
|
|
811
|
-
},
|
|
812
|
-
|
|
1950
|
+
}), W = _(() => o.placement === "left" ? "sidebar-left" : "sidebar-right"), F = () => {
|
|
1951
|
+
u.value = !0, d.value && L();
|
|
1952
|
+
}, R = () => {
|
|
1953
|
+
u.value = !1;
|
|
813
1954
|
};
|
|
814
|
-
return
|
|
815
|
-
|
|
816
|
-
}),
|
|
817
|
-
() =>
|
|
818
|
-
(
|
|
819
|
-
|
|
1955
|
+
return ze(l, (j = !1) => {
|
|
1956
|
+
r.value = j;
|
|
1957
|
+
}), Q(
|
|
1958
|
+
() => o.visible,
|
|
1959
|
+
(j) => {
|
|
1960
|
+
r.value = j;
|
|
820
1961
|
}
|
|
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,
|
|
1962
|
+
), Q(r, (j) => {
|
|
1963
|
+
j === !0 ? (typeof document < "u" && (g = document.activeElement), se()) : j === !1 && (B(), g?.focus(), g = null, u.value === !0 && oe());
|
|
1964
|
+
}), Ke(r), e({
|
|
1965
|
+
toggle: $,
|
|
1966
|
+
open: G,
|
|
1967
|
+
close: M
|
|
1968
|
+
}), (j, H) => (p(), y("div", {
|
|
1969
|
+
style: ge(ne.value),
|
|
1970
|
+
visible: r.value,
|
|
835
1971
|
ref_key: "sidebarRef",
|
|
836
|
-
ref:
|
|
1972
|
+
ref: l
|
|
837
1973
|
}, [
|
|
838
|
-
|
|
1974
|
+
t.showBackdrop ? (p(), Se(te, {
|
|
839
1975
|
key: 0,
|
|
840
1976
|
name: "fade",
|
|
841
1977
|
appear: "",
|
|
842
1978
|
tag: "div"
|
|
843
1979
|
}, {
|
|
844
|
-
default:
|
|
845
|
-
|
|
1980
|
+
default: J(() => [
|
|
1981
|
+
r.value ? (p(), y("section", {
|
|
846
1982
|
key: 0,
|
|
847
|
-
onClick:
|
|
848
|
-
|
|
849
|
-
|
|
1983
|
+
onClick: M,
|
|
1984
|
+
"aria-hidden": "true",
|
|
1985
|
+
class: S(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur", I(A).bgColorVariant({ color: t.backdropColor })])
|
|
1986
|
+
}, null, 2)) : O("", !0)
|
|
850
1987
|
]),
|
|
851
1988
|
_: 1
|
|
852
|
-
})),
|
|
853
|
-
|
|
854
|
-
name:
|
|
855
|
-
onAfterEnter:
|
|
856
|
-
onAfterLeave:
|
|
1989
|
+
})) : O("", !0),
|
|
1990
|
+
ee(te, {
|
|
1991
|
+
name: W.value,
|
|
1992
|
+
onAfterEnter: F,
|
|
1993
|
+
onAfterLeave: R,
|
|
857
1994
|
appear: ""
|
|
858
1995
|
}, {
|
|
859
|
-
default:
|
|
860
|
-
|
|
1996
|
+
default: J(() => [
|
|
1997
|
+
r.value ? de((p(), y("div", {
|
|
861
1998
|
key: 0,
|
|
862
|
-
|
|
1999
|
+
ref_key: "dialogRef",
|
|
2000
|
+
ref: d,
|
|
2001
|
+
role: "dialog",
|
|
2002
|
+
"aria-modal": "true",
|
|
2003
|
+
"aria-labelledby": t.title ? I(h) : void 0,
|
|
2004
|
+
class: S(["sidebar-body fixed inset-y-0 z-[110] h-full overflow-hidden shadow", [t.placement === "left" ? "left-0" : "right-0"]])
|
|
863
2005
|
}, [
|
|
864
|
-
|
|
865
|
-
class:
|
|
2006
|
+
E("div", {
|
|
2007
|
+
class: S(["relative h-full overflow-y-scroll overscroll-contain", [I(A).bgColorVariant({ color: t.color }), t.customClass]])
|
|
866
2008
|
}, [
|
|
867
|
-
|
|
2009
|
+
t.showHeader ? (p(), y("div", {
|
|
868
2010
|
key: 0,
|
|
869
2011
|
class: "sticky top-0 z-10",
|
|
870
2012
|
ref_key: "headerRef",
|
|
871
|
-
ref:
|
|
2013
|
+
ref: v
|
|
872
2014
|
}, [
|
|
873
|
-
|
|
874
|
-
close:
|
|
875
|
-
status:
|
|
2015
|
+
V(j.$slots, "header", {
|
|
2016
|
+
close: M,
|
|
2017
|
+
status: r.value
|
|
876
2018
|
}, () => [
|
|
877
|
-
|
|
878
|
-
class:
|
|
2019
|
+
E("div", {
|
|
2020
|
+
class: S(["p-xs flex items-center justify-between", I(A).bgColorVariant({ color: t.color })])
|
|
879
2021
|
}, [
|
|
880
|
-
|
|
2022
|
+
t.placement === "right" ? (p(), y("button", {
|
|
881
2023
|
key: 0,
|
|
882
|
-
|
|
2024
|
+
type: "button",
|
|
2025
|
+
"aria-label": "Close",
|
|
2026
|
+
onClick: M
|
|
883
2027
|
}, [
|
|
884
|
-
(
|
|
2028
|
+
(p(), y("svg", {
|
|
885
2029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
886
2030
|
height: "1em",
|
|
887
2031
|
viewBox: "0 0 384 512",
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
2032
|
+
"aria-hidden": "true",
|
|
2033
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [I(A).svgFillColorVariant({ color: t.titleColor })]])
|
|
2034
|
+
}, [...H[0] || (H[0] = [
|
|
2035
|
+
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
2036
|
])], 2))
|
|
892
|
-
])) :
|
|
893
|
-
|
|
2037
|
+
])) : O("", !0),
|
|
2038
|
+
t.title ? (p(), y("h3", {
|
|
894
2039
|
key: 1,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
2040
|
+
id: I(h),
|
|
2041
|
+
class: S(["h3-md", I(A).textColorVariant({ color: t.titleColor })])
|
|
2042
|
+
}, he(t.title), 11, Dr)) : O("", !0),
|
|
2043
|
+
t.placement === "left" ? (p(), y("button", {
|
|
898
2044
|
key: 2,
|
|
899
|
-
|
|
2045
|
+
type: "button",
|
|
2046
|
+
"aria-label": "Close",
|
|
2047
|
+
onClick: M
|
|
900
2048
|
}, [
|
|
901
|
-
(
|
|
2049
|
+
(p(), y("svg", {
|
|
902
2050
|
xmlns: "http://www.w3.org/2000/svg",
|
|
903
2051
|
height: "1em",
|
|
904
2052
|
viewBox: "0 0 384 512",
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
2053
|
+
"aria-hidden": "true",
|
|
2054
|
+
class: S(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [I(A).svgFillColorVariant({ color: t.titleColor })]])
|
|
2055
|
+
}, [...H[1] || (H[1] = [
|
|
2056
|
+
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
2057
|
])], 2))
|
|
909
|
-
])) :
|
|
2058
|
+
])) : O("", !0)
|
|
910
2059
|
], 2)
|
|
911
2060
|
], !0)
|
|
912
|
-
], 512)),
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
close:
|
|
916
|
-
status:
|
|
2061
|
+
], 512)) : O("", !0),
|
|
2062
|
+
E("div", Fr, [
|
|
2063
|
+
V(j.$slots, "body", {
|
|
2064
|
+
close: M,
|
|
2065
|
+
status: r.value
|
|
917
2066
|
}, void 0, !0)
|
|
918
2067
|
]),
|
|
919
|
-
|
|
2068
|
+
n.footer ? (p(), y("div", {
|
|
920
2069
|
key: 1,
|
|
921
2070
|
class: "sticky bottom-0",
|
|
922
2071
|
ref_key: "footerRef",
|
|
923
|
-
ref:
|
|
2072
|
+
ref: b
|
|
924
2073
|
}, [
|
|
925
|
-
|
|
926
|
-
close:
|
|
927
|
-
status:
|
|
2074
|
+
V(j.$slots, "footer", {
|
|
2075
|
+
close: M,
|
|
2076
|
+
status: r.value
|
|
928
2077
|
}, void 0, !0)
|
|
929
|
-
], 512)) :
|
|
2078
|
+
], 512)) : O("", !0)
|
|
930
2079
|
], 2)
|
|
931
|
-
],
|
|
932
|
-
[
|
|
933
|
-
]) :
|
|
2080
|
+
], 10, Ir)), [
|
|
2081
|
+
[I(De), M]
|
|
2082
|
+
]) : O("", !0)
|
|
934
2083
|
]),
|
|
935
2084
|
_: 3
|
|
936
2085
|
}, 8, ["name"])
|
|
937
|
-
], 12,
|
|
2086
|
+
], 12, Vr));
|
|
938
2087
|
}
|
|
939
|
-
}),
|
|
2088
|
+
}), oo = /* @__PURE__ */ re(Lr, [["__scopeId", "data-v-b770513a"]]), ot = /* @__PURE__ */ Symbol(), $r = { class: "container-hts transition-[max-height] duration-300 grid grid-cols-1 grid-rows-1" }, Pr = /* @__PURE__ */ Y({
|
|
940
2089
|
__name: "TabContainer",
|
|
941
2090
|
props: {
|
|
942
2091
|
bodyClass: { default: "" },
|
|
943
2092
|
btnContainerClass: { default: "" },
|
|
944
2093
|
contentContainerClass: { default: "" }
|
|
945
2094
|
},
|
|
946
|
-
setup(
|
|
947
|
-
|
|
948
|
-
const
|
|
949
|
-
|
|
950
|
-
activeTabIdx:
|
|
951
|
-
containerHeight:
|
|
952
|
-
updateHeight: (
|
|
953
|
-
|
|
2095
|
+
setup(t, { expose: e }) {
|
|
2096
|
+
Z();
|
|
2097
|
+
const a = D(0), o = D(0), n = D("slide-next");
|
|
2098
|
+
Be(ot, {
|
|
2099
|
+
activeTabIdx: a,
|
|
2100
|
+
containerHeight: o,
|
|
2101
|
+
updateHeight: (l) => {
|
|
2102
|
+
o.value = l;
|
|
954
2103
|
}
|
|
955
2104
|
});
|
|
956
|
-
const
|
|
957
|
-
|
|
958
|
-
},
|
|
959
|
-
return
|
|
960
|
-
update:
|
|
961
|
-
}),
|
|
962
|
-
() =>
|
|
963
|
-
(
|
|
964
|
-
|
|
2105
|
+
const r = (l) => {
|
|
2106
|
+
a.value = l;
|
|
2107
|
+
}, u = _(() => ({ "--container-hts": `${o.value}px` }));
|
|
2108
|
+
return e({
|
|
2109
|
+
update: r
|
|
2110
|
+
}), Q(
|
|
2111
|
+
() => a.value,
|
|
2112
|
+
(l, d) => {
|
|
2113
|
+
l > d ? n.value = "slide-next" : n.value = "slide-prev";
|
|
965
2114
|
}
|
|
966
|
-
), (
|
|
967
|
-
class:
|
|
968
|
-
style:
|
|
2115
|
+
), (l, d) => (p(), y("div", {
|
|
2116
|
+
class: S(t.bodyClass),
|
|
2117
|
+
style: ge(u.value)
|
|
969
2118
|
}, [
|
|
970
|
-
|
|
971
|
-
class:
|
|
2119
|
+
E("div", {
|
|
2120
|
+
class: S(t.btnContainerClass),
|
|
972
2121
|
role: "tablist"
|
|
973
2122
|
}, [
|
|
974
|
-
|
|
975
|
-
update:
|
|
976
|
-
activeTab:
|
|
2123
|
+
V(l.$slots, "tab-button", {
|
|
2124
|
+
update: r,
|
|
2125
|
+
activeTab: a.value
|
|
977
2126
|
}, void 0, !0)
|
|
978
2127
|
], 2),
|
|
979
|
-
|
|
980
|
-
class:
|
|
2128
|
+
E("div", {
|
|
2129
|
+
class: S(t.contentContainerClass)
|
|
981
2130
|
}, [
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
default:
|
|
985
|
-
(
|
|
986
|
-
key:
|
|
2131
|
+
E("div", $r, [
|
|
2132
|
+
ee(te, { name: n.value }, {
|
|
2133
|
+
default: J(() => [
|
|
2134
|
+
(p(), y("div", {
|
|
2135
|
+
key: a.value,
|
|
987
2136
|
class: "col-start-1 col-end-1 row-start-1 row-end-1 relative"
|
|
988
2137
|
}, [
|
|
989
|
-
|
|
2138
|
+
V(l.$slots, "tab-content", {}, void 0, !0)
|
|
990
2139
|
]))
|
|
991
2140
|
]),
|
|
992
2141
|
_: 3
|
|
@@ -995,44 +2144,46 @@ const ce = { class: "gap-2xs flex w-full justify-between" }, de = { class: "w-fu
|
|
|
995
2144
|
], 2)
|
|
996
2145
|
], 6));
|
|
997
2146
|
}
|
|
998
|
-
}),
|
|
2147
|
+
}), no = /* @__PURE__ */ re(Pr, [["__scopeId", "data-v-1014eb3f"]]), jr = ["id"], io = /* @__PURE__ */ Y({
|
|
999
2148
|
__name: "TabContent",
|
|
1000
2149
|
props: {
|
|
1001
2150
|
tabNumber: {},
|
|
1002
2151
|
id: {},
|
|
1003
2152
|
tabClass: { default: "" }
|
|
1004
2153
|
},
|
|
1005
|
-
setup(
|
|
1006
|
-
const
|
|
1007
|
-
|
|
1008
|
-
),
|
|
1009
|
-
return (
|
|
2154
|
+
setup(t) {
|
|
2155
|
+
const e = t, { activeTabIdx: a, updateHeight: o } = Ae(
|
|
2156
|
+
ot
|
|
2157
|
+
), n = D(null), { height: c } = wa(n), r = _(() => a.value === e.tabNumber ? (o(c.value), !0) : !1);
|
|
2158
|
+
return (u, l) => de((p(), y("div", {
|
|
1010
2159
|
ref_key: "slotRef",
|
|
1011
|
-
ref:
|
|
1012
|
-
id:
|
|
1013
|
-
class:
|
|
2160
|
+
ref: n,
|
|
2161
|
+
id: t.id,
|
|
2162
|
+
class: S([t.tabClass, "w-full"]),
|
|
1014
2163
|
role: "tabpanel",
|
|
1015
2164
|
tabindex: "-1"
|
|
1016
2165
|
}, [
|
|
1017
|
-
|
|
1018
|
-
], 10,
|
|
1019
|
-
[
|
|
2166
|
+
V(u.$slots, "default")
|
|
2167
|
+
], 10, jr)), [
|
|
2168
|
+
[Ve, r.value]
|
|
1020
2169
|
]);
|
|
1021
2170
|
}
|
|
1022
2171
|
});
|
|
1023
2172
|
export {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
2173
|
+
Xr as AccordionGroup,
|
|
2174
|
+
Yr as Alert,
|
|
2175
|
+
Ur as Card,
|
|
2176
|
+
qr as CarouselContainer,
|
|
2177
|
+
Zr as CarouselContent,
|
|
2178
|
+
Jr as Collapse,
|
|
2179
|
+
Qr as DropdownContainer,
|
|
2180
|
+
eo as DropdownContent,
|
|
2181
|
+
to as HeaderHorizontal,
|
|
2182
|
+
ao as HeaderVertical,
|
|
2183
|
+
ro as Modal,
|
|
2184
|
+
oo as Sidebar,
|
|
2185
|
+
no as TabContainer,
|
|
2186
|
+
io as TabContent,
|
|
2187
|
+
Kr as default,
|
|
2188
|
+
A as generateClass
|
|
1038
2189
|
};
|