@bobbykim/manguito-theme 0.28.3 → 1.0.1

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