@deck9/ui 0.9.16 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
2
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as D9Textarea } from "./Textarea.vue";
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./Input/index";
|
|
|
5
5
|
export * from "./Label/index";
|
|
6
6
|
export * from "./Menu/index";
|
|
7
7
|
export * from "./Select/index";
|
|
8
|
-
export * from "./Switch/index";
|
|
9
8
|
export * from "./Skeleton/index";
|
|
10
9
|
export * from "./Spinner/index";
|
|
10
|
+
export * from "./Switch/index";
|
|
11
|
+
export * from "./Textarea/index";
|
package/dist/src/index.es.js
CHANGED
|
@@ -20,7 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { defineComponent, computed as computed$2, unref as unref$1, openBlock, createBlock, mergeProps, createCommentVNode, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, ref, cloneVNode, h, watchEffect, inject, provide, onMounted, toRaw as toRaw$1, onUnmounted, watch, nextTick as nextTick$1, withCtx, renderSlot, Teleport, Transition, normalizeProps, guardReactiveProps, isRef as isRef$1, Fragment, renderList, createTextVNode } from "vue";
|
|
21
21
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
22
22
|
import { library } from "@fortawesome/fontawesome-svg-core";
|
|
23
|
-
import
|
|
23
|
+
import { fas } from "@fortawesome/free-solid-svg-icons";
|
|
24
24
|
/*!
|
|
25
25
|
* Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
|
|
26
26
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -51,10 +51,11 @@ var faTwitter = {
|
|
|
51
51
|
iconName: "twitter",
|
|
52
52
|
icon: [512, 512, [], "f099", "M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]
|
|
53
53
|
};
|
|
54
|
-
library.add(
|
|
54
|
+
library.add(fas);
|
|
55
|
+
library.add(faTwitter, faInstagram, faGithub, faLinkedin, faFacebook);
|
|
55
56
|
var icons = [...Object.keys(library.definitions.fas)].sort();
|
|
56
57
|
const brands = [...Object.keys(library.definitions.fab)].sort();
|
|
57
|
-
const _sfc_main$
|
|
58
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
58
59
|
props: {
|
|
59
60
|
name: { default: "user" }
|
|
60
61
|
},
|
|
@@ -82,12 +83,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
|
-
const _hoisted_1$
|
|
86
|
-
const _hoisted_2$
|
|
86
|
+
const _hoisted_1$8 = ["aria-label", "tabindex"];
|
|
87
|
+
const _hoisted_2$6 = {
|
|
87
88
|
key: 0,
|
|
88
89
|
class: "absolute inset-0 flex items-center justify-center"
|
|
89
90
|
};
|
|
90
|
-
const _sfc_main$
|
|
91
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
91
92
|
props: {
|
|
92
93
|
label: null,
|
|
93
94
|
size: { default: "medium" },
|
|
@@ -149,25 +150,25 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
149
150
|
createElementVNode("div", {
|
|
150
151
|
class: normalizeClass(!__props.isLoading || "invisible")
|
|
151
152
|
}, [
|
|
152
|
-
__props.icon && __props.iconPosition === "left" ? (openBlock(), createBlock(_sfc_main$
|
|
153
|
+
__props.icon && __props.iconPosition === "left" ? (openBlock(), createBlock(_sfc_main$b, {
|
|
153
154
|
key: 0,
|
|
154
155
|
name: __props.icon,
|
|
155
156
|
class: normalizeClass(unref$1(iconClasses))
|
|
156
157
|
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
157
158
|
createElementVNode("span", null, toDisplayString(__props.label), 1),
|
|
158
|
-
__props.icon && __props.iconPosition === "right" ? (openBlock(), createBlock(_sfc_main$
|
|
159
|
+
__props.icon && __props.iconPosition === "right" ? (openBlock(), createBlock(_sfc_main$b, {
|
|
159
160
|
key: 1,
|
|
160
161
|
name: __props.icon,
|
|
161
162
|
class: normalizeClass(unref$1(iconClasses))
|
|
162
163
|
}, null, 8, ["name", "class"])) : createCommentVNode("", true)
|
|
163
164
|
], 2),
|
|
164
|
-
__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
165
|
-
createVNode(_sfc_main$
|
|
165
|
+
__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$6, [
|
|
166
|
+
createVNode(_sfc_main$b, {
|
|
166
167
|
class: "animate-spin",
|
|
167
168
|
name: "circle-notch"
|
|
168
169
|
})
|
|
169
170
|
])) : createCommentVNode("", true)
|
|
170
|
-
], 10, _hoisted_1$
|
|
171
|
+
], 10, _hoisted_1$8);
|
|
171
172
|
};
|
|
172
173
|
}
|
|
173
174
|
});
|
|
@@ -212,8 +213,8 @@ function v4(options, buf, offset) {
|
|
|
212
213
|
}
|
|
213
214
|
return stringify(rnds);
|
|
214
215
|
}
|
|
215
|
-
const _hoisted_1$
|
|
216
|
-
const _hoisted_2$
|
|
216
|
+
const _hoisted_1$7 = { class: "relative flex items-start" };
|
|
217
|
+
const _hoisted_2$5 = { class: "flex items-center h-5" };
|
|
217
218
|
const _hoisted_3$3 = ["checked", "id"];
|
|
218
219
|
const _hoisted_4$2 = { class: "ml-2 text-sm leading-5" };
|
|
219
220
|
const _hoisted_5$2 = ["for"];
|
|
@@ -221,7 +222,7 @@ const _hoisted_6$1 = {
|
|
|
221
222
|
key: 0,
|
|
222
223
|
class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
|
|
223
224
|
};
|
|
224
|
-
const _sfc_main$
|
|
225
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
225
226
|
props: {
|
|
226
227
|
id: { default: v4() },
|
|
227
228
|
label: null,
|
|
@@ -234,8 +235,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
234
235
|
emits("update:modelValue", value.target.checked);
|
|
235
236
|
};
|
|
236
237
|
return (_ctx, _cache) => {
|
|
237
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
238
|
-
createElementVNode("div", _hoisted_2$
|
|
238
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
239
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
239
240
|
createElementVNode("input", {
|
|
240
241
|
class: "h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",
|
|
241
242
|
type: "checkbox",
|
|
@@ -1054,12 +1055,12 @@ function useFormClasses(props) {
|
|
|
1054
1055
|
textSizeClasses
|
|
1055
1056
|
};
|
|
1056
1057
|
}
|
|
1057
|
-
const _hoisted_1$
|
|
1058
|
-
const _hoisted_2$
|
|
1059
|
-
const __default__ = {
|
|
1058
|
+
const _hoisted_1$6 = { class: "relative" };
|
|
1059
|
+
const _hoisted_2$4 = ["placeholder", "type", "tabindex", "value"];
|
|
1060
|
+
const __default__$1 = {
|
|
1060
1061
|
inheritAttrs: false
|
|
1061
1062
|
};
|
|
1062
|
-
const _sfc_main$
|
|
1063
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
|
|
1063
1064
|
props: {
|
|
1064
1065
|
modelValue: null,
|
|
1065
1066
|
type: { default: "text" },
|
|
@@ -1086,7 +1087,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1086
1087
|
focus
|
|
1087
1088
|
});
|
|
1088
1089
|
return (_ctx, _cache) => {
|
|
1089
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1090
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1090
1091
|
createElementVNode("input", mergeProps({
|
|
1091
1092
|
class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [unref$1(inputClasses), unref$1(textSizeClasses), unref$1(disabledClasses)]],
|
|
1092
1093
|
placeholder: __props.placeholder,
|
|
@@ -1097,24 +1098,24 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
1097
1098
|
ref_key: "input",
|
|
1098
1099
|
ref: input,
|
|
1099
1100
|
onInput
|
|
1100
|
-
}), null, 16, _hoisted_2$
|
|
1101
|
+
}), null, 16, _hoisted_2$4),
|
|
1101
1102
|
__props.icon ? (openBlock(), createElementBlock("span", {
|
|
1102
1103
|
key: 0,
|
|
1103
1104
|
class: normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4", unref$1(textSizeClasses)])
|
|
1104
1105
|
}, [
|
|
1105
|
-
createVNode(_sfc_main$
|
|
1106
|
+
createVNode(_sfc_main$b, { name: __props.icon }, null, 8, ["name"])
|
|
1106
1107
|
], 2)) : createCommentVNode("", true)
|
|
1107
1108
|
]);
|
|
1108
1109
|
};
|
|
1109
1110
|
}
|
|
1110
1111
|
}));
|
|
1111
|
-
const _hoisted_1$
|
|
1112
|
-
const _hoisted_2$
|
|
1112
|
+
const _hoisted_1$5 = { class: "inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20" };
|
|
1113
|
+
const _hoisted_2$3 = ["for"];
|
|
1113
1114
|
const _hoisted_3$2 = {
|
|
1114
1115
|
key: 0,
|
|
1115
1116
|
class: "block text-xs text-grey-400 font-normal mono-0 casual-60"
|
|
1116
1117
|
};
|
|
1117
|
-
const _sfc_main$
|
|
1118
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1118
1119
|
props: {
|
|
1119
1120
|
id: null,
|
|
1120
1121
|
label: null,
|
|
@@ -1122,8 +1123,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1122
1123
|
},
|
|
1123
1124
|
setup(__props) {
|
|
1124
1125
|
return (_ctx, _cache) => {
|
|
1125
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
1126
|
-
createElementVNode("label", { for: __props.id }, toDisplayString(__props.label), 9, _hoisted_2$
|
|
1126
|
+
return openBlock(), createElementBlock("span", _hoisted_1$5, [
|
|
1127
|
+
createElementVNode("label", { for: __props.id }, toDisplayString(__props.label), 9, _hoisted_2$3),
|
|
1127
1128
|
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
1128
1129
|
]);
|
|
1129
1130
|
};
|
|
@@ -3387,7 +3388,7 @@ function usePopper(options) {
|
|
|
3387
3388
|
});
|
|
3388
3389
|
return [reference, popper];
|
|
3389
3390
|
}
|
|
3390
|
-
const _sfc_main$
|
|
3391
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
3391
3392
|
props: {
|
|
3392
3393
|
position: { default: "left" },
|
|
3393
3394
|
usePortal: { type: [Boolean, String], default: false }
|
|
@@ -3409,7 +3410,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3409
3410
|
}, {
|
|
3410
3411
|
default: withCtx(() => [
|
|
3411
3412
|
renderSlot(_ctx.$slots, "button", {}, () => [
|
|
3412
|
-
createVNode(unref$1(_sfc_main$
|
|
3413
|
+
createVNode(unref$1(_sfc_main$b), {
|
|
3413
3414
|
class: "fill-current",
|
|
3414
3415
|
name: "ellipsis-h"
|
|
3415
3416
|
})
|
|
@@ -3460,11 +3461,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3460
3461
|
};
|
|
3461
3462
|
}
|
|
3462
3463
|
});
|
|
3463
|
-
const _hoisted_1$
|
|
3464
|
+
const _hoisted_1$4 = {
|
|
3464
3465
|
key: 0,
|
|
3465
3466
|
class: "bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"
|
|
3466
3467
|
};
|
|
3467
|
-
const _sfc_main$
|
|
3468
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3468
3469
|
props: {
|
|
3469
3470
|
label: null,
|
|
3470
3471
|
meta: null,
|
|
@@ -3481,7 +3482,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3481
3482
|
]]
|
|
3482
3483
|
}, _ctx.$attrs), [
|
|
3483
3484
|
createElementVNode("span", null, toDisplayString(__props.label), 1),
|
|
3484
|
-
__props.meta ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3485
|
+
__props.meta ? (openBlock(), createElementBlock("span", _hoisted_1$4, toDisplayString(__props.meta), 1)) : createCommentVNode("", true)
|
|
3485
3486
|
], 16)
|
|
3486
3487
|
]),
|
|
3487
3488
|
_: 1
|
|
@@ -3489,8 +3490,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3489
3490
|
};
|
|
3490
3491
|
}
|
|
3491
3492
|
});
|
|
3492
|
-
const _hoisted_1$
|
|
3493
|
-
const _hoisted_2$
|
|
3493
|
+
const _hoisted_1$3 = { class: "relative" };
|
|
3494
|
+
const _hoisted_2$2 = {
|
|
3494
3495
|
key: 0,
|
|
3495
3496
|
class: "absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"
|
|
3496
3497
|
};
|
|
@@ -3503,7 +3504,7 @@ const _hoisted_4$1 = {
|
|
|
3503
3504
|
class: "text-grey-500 truncate"
|
|
3504
3505
|
};
|
|
3505
3506
|
const _hoisted_5$1 = { class: "absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none" };
|
|
3506
|
-
const _sfc_main$
|
|
3507
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3507
3508
|
props: {
|
|
3508
3509
|
modelValue: null,
|
|
3509
3510
|
size: { default: "medium" },
|
|
@@ -3538,21 +3539,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3538
3539
|
disabled: __props.isDisabled
|
|
3539
3540
|
}, {
|
|
3540
3541
|
default: withCtx(() => [
|
|
3541
|
-
createElementVNode("div", _hoisted_1$
|
|
3542
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
3542
3543
|
createVNode(unref$1(ListboxButton), {
|
|
3543
3544
|
class: normalizeClass(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left", [unref$1(inputClasses), unref$1(textSizeClasses), unref$1(disabledClasses)]])
|
|
3544
3545
|
}, {
|
|
3545
3546
|
default: withCtx(() => {
|
|
3546
3547
|
var _a, _b;
|
|
3547
3548
|
return [
|
|
3548
|
-
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3549
|
-
createVNode(_sfc_main$
|
|
3549
|
+
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_2$2, [
|
|
3550
|
+
createVNode(_sfc_main$b, {
|
|
3550
3551
|
name: (_b = (_a = unref$1(selected)) == null ? void 0 : _a.icon) != null ? _b : __props.icon
|
|
3551
3552
|
}, null, 8, ["name"])
|
|
3552
3553
|
])) : createCommentVNode("", true),
|
|
3553
3554
|
unref$1(selected) ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(unref$1(selected).label), 1)) : (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(__props.placeholder), 1)),
|
|
3554
3555
|
createElementVNode("span", _hoisted_5$1, [
|
|
3555
|
-
createVNode(_sfc_main$
|
|
3556
|
+
createVNode(_sfc_main$b, {
|
|
3556
3557
|
class: "text-grey-400",
|
|
3557
3558
|
name: "chevron-down",
|
|
3558
3559
|
"aria-hidden": "true"
|
|
@@ -3589,7 +3590,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3589
3590
|
"block truncate"
|
|
3590
3591
|
])
|
|
3591
3592
|
}, [
|
|
3592
|
-
item.icon ? (openBlock(), createBlock(_sfc_main$
|
|
3593
|
+
item.icon ? (openBlock(), createBlock(_sfc_main$b, {
|
|
3593
3594
|
key: 0,
|
|
3594
3595
|
class: "inline-block mr-1",
|
|
3595
3596
|
name: item.icon
|
|
@@ -3603,7 +3604,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3603
3604
|
"absolute inset-y-0 right-0 flex items-center pr-4"
|
|
3604
3605
|
])
|
|
3605
3606
|
}, [
|
|
3606
|
-
createVNode(_sfc_main$
|
|
3607
|
+
createVNode(_sfc_main$b, {
|
|
3607
3608
|
name: "check",
|
|
3608
3609
|
class: "h-5 w-5",
|
|
3609
3610
|
"aria-hidden": "true"
|
|
@@ -3627,45 +3628,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3627
3628
|
};
|
|
3628
3629
|
}
|
|
3629
3630
|
});
|
|
3630
|
-
const _hoisted_1$
|
|
3631
|
-
const
|
|
3632
|
-
props: {
|
|
3633
|
-
id: { default: v4() },
|
|
3634
|
-
label: null,
|
|
3635
|
-
modelValue: { type: Boolean },
|
|
3636
|
-
description: null,
|
|
3637
|
-
onLabel: { default: "on" },
|
|
3638
|
-
offLabel: { default: "off" }
|
|
3639
|
-
},
|
|
3640
|
-
emits: ["update:modelValue", "change"],
|
|
3641
|
-
setup(__props, { emit: emits }) {
|
|
3642
|
-
const update = (newValue) => {
|
|
3643
|
-
emits("update:modelValue", newValue);
|
|
3644
|
-
emits("change", newValue);
|
|
3645
|
-
};
|
|
3646
|
-
return (_ctx, _cache) => {
|
|
3647
|
-
return openBlock(), createBlock(unref$1(Switch), {
|
|
3648
|
-
modelValue: __props.modelValue,
|
|
3649
|
-
label: __props.label,
|
|
3650
|
-
class: normalizeClass([__props.modelValue ? "bg-blue-700" : "bg-grey-700", "relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),
|
|
3651
|
-
"onUpdate:modelValue": update
|
|
3652
|
-
}, {
|
|
3653
|
-
default: withCtx(() => [
|
|
3654
|
-
createElementVNode("span", {
|
|
3655
|
-
class: normalizeClass(["absolute text-xs text-center text-white inset-x-2", __props.modelValue ? "pr-3" : "pl-3"])
|
|
3656
|
-
}, toDisplayString(__props.modelValue === true ? __props.onLabel : __props.offLabel), 3),
|
|
3657
|
-
createElementVNode("span", _hoisted_1$1, toDisplayString(__props.label), 1),
|
|
3658
|
-
createElementVNode("span", {
|
|
3659
|
-
class: normalizeClass([__props.modelValue ? "translate-x-9" : "translate-x-1", "inline-block w-4 h-4 transition bg-white rounded-full"])
|
|
3660
|
-
}, null, 2)
|
|
3661
|
-
]),
|
|
3662
|
-
_: 1
|
|
3663
|
-
}, 8, ["modelValue", "label", "class"]);
|
|
3664
|
-
};
|
|
3665
|
-
}
|
|
3666
|
-
});
|
|
3667
|
-
const _hoisted_1 = { class: "animate-pulse" };
|
|
3668
|
-
const _hoisted_2 = { class: "flex items-center justify-between space-x-4" };
|
|
3631
|
+
const _hoisted_1$2 = { class: "animate-pulse" };
|
|
3632
|
+
const _hoisted_2$1 = { class: "flex items-center justify-between space-x-4" };
|
|
3669
3633
|
const _hoisted_3 = {
|
|
3670
3634
|
key: 0,
|
|
3671
3635
|
class: "w-12 h-12 bg-current rounded-full shrink-0"
|
|
@@ -3682,7 +3646,7 @@ const _hoisted_6 = {
|
|
|
3682
3646
|
key: 1,
|
|
3683
3647
|
class: "w-1/3 h-10 mt-6 bg-current rounded-lg"
|
|
3684
3648
|
};
|
|
3685
|
-
const _sfc_main$
|
|
3649
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3686
3650
|
props: {
|
|
3687
3651
|
avatar: { type: Boolean, default: false },
|
|
3688
3652
|
title: { type: Boolean, default: true },
|
|
@@ -3699,8 +3663,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3699
3663
|
};
|
|
3700
3664
|
});
|
|
3701
3665
|
return (_ctx, _cache) => {
|
|
3702
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3703
|
-
createElementVNode("div", _hoisted_2, [
|
|
3666
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
3667
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
3704
3668
|
__props.avatar ? (openBlock(), createElementBlock("div", _hoisted_3)) : createCommentVNode("", true),
|
|
3705
3669
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("", true)
|
|
3706
3670
|
]),
|
|
@@ -3717,14 +3681,97 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3717
3681
|
};
|
|
3718
3682
|
}
|
|
3719
3683
|
});
|
|
3720
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3684
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3721
3685
|
setup(__props) {
|
|
3722
3686
|
return (_ctx, _cache) => {
|
|
3723
|
-
return openBlock(), createBlock(unref$1(_sfc_main$
|
|
3687
|
+
return openBlock(), createBlock(unref$1(_sfc_main$b), {
|
|
3724
3688
|
class: "animate-spin",
|
|
3725
3689
|
name: "circle-notch"
|
|
3726
3690
|
});
|
|
3727
3691
|
};
|
|
3728
3692
|
}
|
|
3729
3693
|
});
|
|
3730
|
-
|
|
3694
|
+
const _hoisted_1$1 = { class: "sr-only" };
|
|
3695
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3696
|
+
props: {
|
|
3697
|
+
id: { default: v4() },
|
|
3698
|
+
label: null,
|
|
3699
|
+
modelValue: { type: Boolean },
|
|
3700
|
+
description: null,
|
|
3701
|
+
onLabel: { default: "on" },
|
|
3702
|
+
offLabel: { default: "off" }
|
|
3703
|
+
},
|
|
3704
|
+
emits: ["update:modelValue", "change"],
|
|
3705
|
+
setup(__props, { emit: emits }) {
|
|
3706
|
+
const update = (newValue) => {
|
|
3707
|
+
emits("update:modelValue", newValue);
|
|
3708
|
+
emits("change", newValue);
|
|
3709
|
+
};
|
|
3710
|
+
return (_ctx, _cache) => {
|
|
3711
|
+
return openBlock(), createBlock(unref$1(Switch), {
|
|
3712
|
+
modelValue: __props.modelValue,
|
|
3713
|
+
label: __props.label,
|
|
3714
|
+
class: normalizeClass([__props.modelValue ? "bg-blue-700" : "bg-grey-700", "relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),
|
|
3715
|
+
"onUpdate:modelValue": update
|
|
3716
|
+
}, {
|
|
3717
|
+
default: withCtx(() => [
|
|
3718
|
+
createElementVNode("span", {
|
|
3719
|
+
class: normalizeClass(["absolute text-xs text-center text-white inset-x-2", __props.modelValue ? "pr-3" : "pl-3"])
|
|
3720
|
+
}, toDisplayString(__props.modelValue === true ? __props.onLabel : __props.offLabel), 3),
|
|
3721
|
+
createElementVNode("span", _hoisted_1$1, toDisplayString(__props.label), 1),
|
|
3722
|
+
createElementVNode("span", {
|
|
3723
|
+
class: normalizeClass([__props.modelValue ? "translate-x-9" : "translate-x-1", "inline-block w-4 h-4 transition bg-white rounded-full"])
|
|
3724
|
+
}, null, 2)
|
|
3725
|
+
]),
|
|
3726
|
+
_: 1
|
|
3727
|
+
}, 8, ["modelValue", "label", "class"]);
|
|
3728
|
+
};
|
|
3729
|
+
}
|
|
3730
|
+
});
|
|
3731
|
+
const _hoisted_1 = { class: "relative" };
|
|
3732
|
+
const _hoisted_2 = ["tabindex", "value"];
|
|
3733
|
+
const __default__ = {
|
|
3734
|
+
inheritAttrs: false
|
|
3735
|
+
};
|
|
3736
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
|
|
3737
|
+
props: {
|
|
3738
|
+
modelValue: null,
|
|
3739
|
+
size: { default: "medium" },
|
|
3740
|
+
isDisabled: { type: Boolean, default: false },
|
|
3741
|
+
block: { type: Boolean }
|
|
3742
|
+
},
|
|
3743
|
+
emits: ["update:modelValue"],
|
|
3744
|
+
setup(__props, { expose, emit }) {
|
|
3745
|
+
const props = __props;
|
|
3746
|
+
const { inputClasses, disabledClasses, textSizeClasses } = useFormClasses(props);
|
|
3747
|
+
const onInput = function(payload) {
|
|
3748
|
+
emit("update:modelValue", (payload == null ? void 0 : payload.target).value);
|
|
3749
|
+
};
|
|
3750
|
+
const input = ref(null);
|
|
3751
|
+
const focus = () => {
|
|
3752
|
+
if (!props.isDisabled) {
|
|
3753
|
+
input.value.focus();
|
|
3754
|
+
}
|
|
3755
|
+
};
|
|
3756
|
+
expose({
|
|
3757
|
+
focus
|
|
3758
|
+
});
|
|
3759
|
+
return (_ctx, _cache) => {
|
|
3760
|
+
var _a;
|
|
3761
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3762
|
+
createElementVNode("textarea", mergeProps({
|
|
3763
|
+
class: ["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded", [unref$1(inputClasses), unref$1(textSizeClasses), unref$1(disabledClasses)]],
|
|
3764
|
+
tabindex: __props.isDisabled ? "-1" : void 0,
|
|
3765
|
+
value: (_a = __props.modelValue) != null ? _a : ""
|
|
3766
|
+
}, _ctx.$attrs, {
|
|
3767
|
+
ref_key: "input",
|
|
3768
|
+
ref: input,
|
|
3769
|
+
cols: "56",
|
|
3770
|
+
rows: "8",
|
|
3771
|
+
onInput
|
|
3772
|
+
}), "\n ", 16, _hoisted_2)
|
|
3773
|
+
]);
|
|
3774
|
+
};
|
|
3775
|
+
}
|
|
3776
|
+
}));
|
|
3777
|
+
export { _sfc_main$a as D9Button, _sfc_main$9 as D9Checkbox, _sfc_main$b as D9Icon, _sfc_main$8 as D9Input, _sfc_main$7 as D9Label, _sfc_main$6 as D9Menu, _sfc_main$5 as D9MenuLink, _sfc_main$4 as D9Select, _sfc_main$3 as D9Skeleton, _sfc_main$2 as D9Spinner, _sfc_main$1 as D9Switch, _sfc_main as D9Textarea, brands, icons };
|
package/dist/src/index.umd.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Uo=Object.defineProperty,Fo=Object.defineProperties;var Ho=Object.getOwnPropertyDescriptors;var Ut=Object.getOwnPropertySymbols;var Wo=Object.prototype.hasOwnProperty,Ko=Object.prototype.propertyIsEnumerable;var Ft=(x,r,D)=>r in x?Uo(x,r,{enumerable:!0,configurable:!0,writable:!0,value:D}):x[r]=D,F=(x,r)=>{for(var D in r||(r={}))Wo.call(r,D)&&Ft(x,D,r[D]);if(Ut)for(var D of Ut(r))Ko.call(r,D)&&Ft(x,D,r[D]);return x},Qe=(x,r)=>Fo(x,Ho(r));(function(x,r){typeof exports=="object"&&typeof module!="undefined"?r(exports,require("vue"),require("@fortawesome/vue-fontawesome"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/free-solid-svg-icons")):typeof define=="function"&&define.amd?define(["exports","vue","@fortawesome/vue-fontawesome","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons"],r):(x=typeof globalThis!="undefined"?globalThis:x||self,r(x.ui={},x.Vue,x.vueFontawesome,x.fontawesomeSvgCore,x.freeSolidSvgIcons))})(this,function(x,r,D,ve,Ht){"use strict";/*!
|
|
2
2
|
* Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com
|
|
3
3
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
4
4
|
* Copyright 2022 Fonticons, Inc.
|
|
5
|
-
*/var qt={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.8 90.69 226.4 209.3 245V327.7h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.3 482.4 504 379.8 504 256z"]},Gt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},Xt={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},Yt={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Jt={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]};De.library.add(g.faAt,g.faBold,g.faCalendar,g.faChartPie,g.faCheck,g.faCheckCircle,g.faChevronDown,g.faChevronLeft,g.faChevronRight,g.faChevronUp,g.faCircleCheck,g.faCircleNotch,g.faClipboard,g.faCog,g.faDoorOpen,g.faDotCircle,g.faEllipsis,g.faEllipsisVertical,g.faEnvelope,g.faExclamationTriangle,g.faFileLines,g.faFileUpload,g.faFingerprint,g.faGlobe,g.faGripHorizontal,g.faGripVertical,g.faHandPointRight,g.faHashtag,g.faInfoCircle,g.faItalic,g.faLink,g.faMedal,g.faPencilAlt,g.faPenToSquare,g.faPhone,g.faPlayCircle,g.faPlus,g.faPlusCircle,g.faReply,g.faReplyAll,g.faRobot,g.faSave,g.faShield,g.faSignature,g.faSquareCheck,g.faStar,g.faTimes,g.faTrash,g.faTrophy,g.faTurnDown,g.faUpload,g.faUser,g.faUserShield,Jt,Xt,Gt,Yt,qt);var Qe=[...Object.keys(De.library.definitions.fas)].sort();const Me=[...Object.keys(De.library.definitions.fab)].sort(),D=r.defineComponent({props:{name:{default:"user"}},setup(e){const t=e,n=r.computed(()=>Me.includes(t.name)?"fab":"fas"),o=r.computed(()=>Qe.includes(t.name)||Me.includes(t.name)?!0:(console.warn("could not load icon, because it is not available",t.name),!1));return(a,i)=>r.unref(o)?(r.openBlock(),r.createBlock(r.unref(R.FontAwesomeIcon),r.mergeProps({key:0,icon:[r.unref(n),e.name]},a.$attrs),null,16,["icon"])):r.createCommentVNode("",!0)}}),Qt=["aria-label","tabindex"],Zt={key:0,class:"absolute inset-0 flex items-center justify-center"},en=r.defineComponent({props:{label:null,size:{default:"medium"},color:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},icon:null,iconPosition:{default:"right"}},emits:["onClick"],setup(e,{emit:t}){const n=e,o=r.computed(()=>{const c={"text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900":n.color==="primary","text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900":n.color==="light","text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900":n.color==="dark"},s={"pointer-events-none opacity-75 cursor-not-allowed":n.isDisabled},l={"px-4 py-1 text-xs leading-5 mono-100 rounded-lg":n.size==="small","px-5 py-2 text-sm leading-4 font-medium rounded-lg":n.size==="medium","px-8 py-3 text-base leading-6 font-medium rounded-lg":n.size==="large"};return G(G(G({},c),s),l)}),a=r.computed(()=>{const c={"mr-2 -ml-1":["small","medium"].includes(n.size)&&n.iconPosition==="left","mr-4 -ml-2":["large"].includes(n.size)&&n.iconPosition==="left"},s={"ml-3 -mr-1":["small","medium"].includes(n.size)&&n.iconPosition==="right","ml-3 -mr-3":["large"].includes(n.size)&&n.iconPosition==="right"},l={"text-white":n.color==="primary","text-blue-600":n.color==="light","text-grey-50":n.color==="dark"};return G(G(G({},c),s),l)});function i(){n.isDisabled||t("onClick")}return(c,s)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out",r.unref(o)]),type:"button","aria-label":e.label,tabindex:e.isDisabled?"-1":void 0,onClick:i},[r.createElementVNode("div",{class:r.normalizeClass(!e.isLoading||"invisible")},[e.icon&&e.iconPosition==="left"?(r.openBlock(),r.createBlock(D,{key:0,name:e.icon,class:r.normalizeClass(r.unref(a))},null,8,["name","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",null,r.toDisplayString(e.label),1),e.icon&&e.iconPosition==="right"?(r.openBlock(),r.createBlock(D,{key:1,name:e.icon,class:r.normalizeClass(r.unref(a))},null,8,["name","class"])):r.createCommentVNode("",!0)],2),e.isLoading?(r.openBlock(),r.createElementBlock("span",Zt,[r.createVNode(D,{class:"animate-spin",name:"circle-notch"})])):r.createCommentVNode("",!0)],10,Qt))}});var ye,tn=new Uint8Array(16);function nn(){if(!ye&&(ye=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ye))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(tn)}var rn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function on(e){return typeof e=="string"&&rn.test(e)}for(var V=[],$e=0;$e<256;++$e)V.push(($e+256).toString(16).substr(1));function an(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(V[e[t+0]]+V[e[t+1]]+V[e[t+2]]+V[e[t+3]]+"-"+V[e[t+4]]+V[e[t+5]]+"-"+V[e[t+6]]+V[e[t+7]]+"-"+V[e[t+8]]+V[e[t+9]]+"-"+V[e[t+10]]+V[e[t+11]]+V[e[t+12]]+V[e[t+13]]+V[e[t+14]]+V[e[t+15]]).toLowerCase();if(!on(n))throw TypeError("Stringified UUID is invalid");return n}function Ze(e,t,n){e=e||{};var o=e.random||(e.rng||nn)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return an(o)}const ln={class:"relative flex items-start"},sn={class:"flex items-center h-5"},cn=["checked","id"],un={class:"ml-2 text-sm leading-5"},fn=["for"],dn={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},pn=r.defineComponent({props:{id:{default:Ze()},label:null,modelValue:{type:Boolean},description:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=o=>{t("update:modelValue",o.target.checked)};return(o,a)=>(r.openBlock(),r.createElementBlock("div",ln,[r.createElementVNode("div",sn,[r.createElementVNode("input",{class:"h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",type:"checkbox",checked:e.modelValue,onChange:n,id:e.id},null,40,cn)]),r.createElementVNode("div",un,[r.createElementVNode("label",{for:e.id,class:"font-medium text-grey-700 dark:text-grey-200 casual-25"},r.toDisplayString(e.label),9,fn),e.description?(r.openBlock(),r.createElementBlock("p",dn,r.toDisplayString(e.description),1)):r.createCommentVNode("",!0)])]))}}),mn={},Le=()=>{},fe=Object.assign,hn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Q=Array.isArray,bn=e=>Ne(e)==="[object Map]",gn=e=>Ne(e)==="[object Set]",A=e=>typeof e=="function",vn=e=>typeof e=="string",yn=e=>typeof e=="symbol",et=e=>e!==null&&typeof e=="object",xn=e=>et(e)&&A(e.then)&&A(e.catch),wn=Object.prototype.toString,Ne=e=>wn.call(e),kn=e=>Ne(e)==="[object Object]",tt=(e,t)=>!Object.is(e,t),Cn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let Sn;function On(e,t=Sn){t&&t.active&&t.effects.push(e)}const En=e=>{const t=new Set(e);return t.w=0,t.n=0,t},nt=e=>(e.w&H)>0,rt=e=>(e.n&H)>0,In=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=H},Vn=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];nt(a)&&!rt(a)?a.delete(e):t[n++]=a,a.w&=~H,a.n&=~H}t.length=n}};let de=0,H=1;const je=30;let z;class ot{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,On(this,o)}run(){if(!this.active)return this.fn();let t=z,n=xe;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=z,z=this,xe=!0,H=1<<++de,de<=je?In(this):at(this),this.fn()}finally{de<=je&&Vn(this),H=1<<--de,z=this.parent,xe=n,this.parent=void 0}}stop(){this.active&&(at(this),this.onStop&&this.onStop(),this.active=!1)}}function at(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xe=!0;function Bn(e,t){let n=!1;de<=je?rt(e)||(e.n|=H,n=!nt(e)):n=!e.has(z),n&&(e.add(z),z.deps.push(e))}function Pn(e,t){for(const n of Q(e)?e:[...e])(n!==z||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(yn));function pe(e){return Rn(e)?pe(e.__v_raw):!!(e&&e.__v_isReactive)}function Rn(e){return!!(e&&e.__v_isReadonly)}function Tn(e){return!!(e&&e.__v_isShallow)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function Dn(e){return Cn(e,"__v_skip",!0),e}function Mn(e){xe&&z&&(e=we(e),Bn(e.dep||(e.dep=En())))}function $n(e,t){e=we(e),e.dep&&Pn(e.dep)}function Z(e){return!!(e&&e.__v_isRef===!0)}function Ln(e){return Z(e)?e.value:e}const Nn={get:(e,t,n)=>Ln(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const a=e[t];return Z(a)&&!Z(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};function jn(e){return pe(e)?e:new Proxy(e,Nn)}class An{constructor(t,n,o,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ot(t,()=>{this._dirty||(this._dirty=!0,$n(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const t=we(this);return Mn(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function zn(e,t,n=!1){let o,a;const i=A(e);return i?(o=e,a=Le):(o=e.get,a=e.set),new An(o,a,i||!a,n)}Promise.resolve();function ee(e,t,n,o){let a;try{a=o?e(...o):e()}catch(i){it(i,t,n)}return a}function Ae(e,t,n,o){if(A(e)){const i=ee(e,t,n,o);return i&&xn(i)&&i.catch(c=>{it(c,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Ae(e[i],t,n,o));return a}function it(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const c=t.proxy,s=n;for(;i;){const f=i.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,c,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){ee(l,null,10,[e,c,s]);return}}_n(e,n,a,o)}function _n(e,t,n,o=!0){console.error(e)}let ke=!1,ze=!1;const M=[];let W=0;const me=[];let he=null,te=0;const be=[];let K=null,ne=0;const lt=Promise.resolve();let _e=null,Ue=null;function Un(e){const t=_e||lt;return e?t.then(this?e.bind(this):e):t}function Fn(e){let t=W+1,n=M.length;for(;t<n;){const o=t+n>>>1;ge(M[o])<e?t=o+1:n=o}return t}function Hn(e){(!M.length||!M.includes(e,ke&&e.allowRecurse?W+1:W))&&e!==Ue&&(e.id==null?M.push(e):M.splice(Fn(e.id),0,e),st())}function st(){!ke&&!ze&&(ze=!0,_e=lt.then(ft))}function ct(e,t,n,o){Q(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&n.push(e),st()}function Wn(e){ct(e,he,me,te)}function Kn(e){ct(e,K,be,ne)}function ut(e,t=null){if(me.length){for(Ue=t,he=[...new Set(me)],me.length=0,te=0;te<he.length;te++)he[te]();he=null,te=0,Ue=null,ut(e,t)}}function qn(e){if(be.length){const t=[...new Set(be)];if(be.length=0,K){K.push(...t);return}for(K=t,K.sort((n,o)=>ge(n)-ge(o)),ne=0;ne<K.length;ne++)K[ne]();K=null,ne=0}}const ge=e=>e.id==null?1/0:e.id;function ft(e){ze=!1,ke=!0,ut(e),M.sort((n,o)=>ge(n)-ge(o));const t=Le;try{for(W=0;W<M.length;W++){const n=M[W];n&&n.active!==!1&&ee(n,null,14)}}finally{W=0,M.length=0,qn(),ke=!1,_e=null,(M.length||me.length||be.length)&&ft(e)}}function Gn(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Kn(e)}const dt={};function Xn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:c}=mn){const s=oe;let l,f=!1,u=!1;if(Z(e)?(l=()=>e.value,f=Tn(e)):pe(e)?(l=()=>e,o=!0):Q(e)?(u=!0,f=e.some(pe),l=()=>e.map(b=>{if(Z(b))return b.value;if(pe(b))return re(b);if(A(b))return ee(b,s,2)})):A(e)?t?l=()=>ee(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return v&&v(),Ae(e,s,3,[y])}:l=Le,t&&o){const b=l;l=()=>re(b())}let v,y=b=>{v=m.onStop=()=>{ee(b,s,4)}},p=u?[]:dt;const h=()=>{if(!!m.active)if(t){const b=m.run();(o||f||(u?b.some((O,S)=>tt(O,p[S])):tt(b,p)))&&(v&&v(),Ae(t,s,3,[b,p===dt?void 0:p,y]),p=b)}else m.run()};h.allowRecurse=!!t;let d;a==="sync"?d=h:a==="post"?d=()=>ht(h,s&&s.suspense):d=()=>{!s||s.isMounted?Wn(h):h()};const m=new ot(l,d);return t?n?h():p=m.run():a==="post"?ht(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&hn(s.scope.effects,m)}}function Yn(e,t,n){const o=this.proxy,a=vn(e)?e.includes(".")?Jn(o,e):()=>o[e]:e.bind(o,o);let i;A(t)?i=t:(i=t.handler,n=t);const c=oe;gt(this);const s=Xn(a,i.bind(o),n);return c?gt(c):nr(),s}function Jn(e,t){const n=t.split(".");return()=>{let o=e;for(let a=0;a<n.length&&o;a++)o=o[n[a]];return o}}function re(e,t){if(!et(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Z(e))re(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)re(e[n],t);else if(gn(e)||bn(e))e.forEach(n=>{re(n,t)});else if(kn(e))for(const n in e)re(e[n],t);return e}function Qn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:c}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!o?l=t:(l={},a.length&&a.forEach(f=>Ce(l,f,c,!0)),Ce(l,t,c)),i.set(t,l),l}function Ce(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&Ce(e,i,n,!0),a&&a.forEach(c=>Ce(e,c,n,!0));for(const c in t)if(!(o&&c==="expose")){const s=Zn[c]||n&&n[c];e[c]=s?s(e[c],t[c]):t[c]}return e}const Zn={data:pt,props:X,emits:X,methods:X,computed:X,beforeCreate:P,created:P,beforeMount:P,mounted:P,beforeUpdate:P,updated:P,beforeDestroy:P,beforeUnmount:P,destroyed:P,unmounted:P,activated:P,deactivated:P,errorCaptured:P,serverPrefetch:P,components:X,directives:X,watch:tr,provide:pt,inject:er};function pt(e,t){return t?e?function(){return fe(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function er(e,t){return X(mt(e),mt(t))}function mt(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function P(e,t){return e?[...new Set([].concat(e,t))]:t}function X(e,t){return e?fe(fe(Object.create(null),e),t):t}function tr(e,t){if(!e)return t;if(!t)return e;const n=fe(Object.create(null),e);for(const o in t)n[o]=P(e[o],t[o]);return n}const ht=Gn,Fe=e=>e?rr(e)?ar(e)||e.proxy:Fe(e.parent):null,bt=fe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fe(e.parent),$root:e=>Fe(e.root),$emit:e=>e.emit,$options:e=>Qn(e),$forceUpdate:e=>()=>Hn(e.update),$nextTick:e=>Un.bind(e.proxy),$watch:e=>Yn.bind(e)});let oe=null;const gt=e=>{oe=e,e.scope.on()},nr=()=>{oe&&oe.scope.off(),oe=null};function rr(e){return e.vnode.shapeFlag&4}let or=!1;function ar(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(jn(Dn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bt)return bt[n](e)}}))}const He=(e,t)=>zn(e,t,or);function vt(e){const t=He(()=>({"pl-3 pr-10 py-1":!e.icon&&e.size==="small","pl-4 pr-10 py-3":!e.icon&&e.size==="medium","pl-6 pr-10 py-3":!e.icon&&e.size==="large","pl-10 pr-10 py-1":e.icon&&e.size==="small","pl-12 pr-10 py-3":e.icon&&(e.size==="medium"||e.size==="large"),"w-full block":e.block===!0})),n=He(()=>({"pointer-events-none opacity-50 cursor-not-allowed":e.isDisabled})),o=He(()=>({"text-xs leading-4":e.size==="small","text-sm leading-4":e.size==="medium","text-base leading-5":e.size==="large"}));return{inputClasses:t,disabledClasses:n,textSizeClasses:o}}const ir={class:"relative"},lr=["placeholder","type","tabindex","value"],sr={inheritAttrs:!1},cr=r.defineComponent(Ht(G({},sr),{props:{modelValue:null,type:{default:"text"},placeholder:null,size:{default:"medium"},icon:null,isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,{inputClasses:a,disabledClasses:i,textSizeClasses:c}=vt(o),s=function(u){n("update:modelValue",(u==null?void 0:u.target).value)},l=r.ref(null);return t({focus:()=>{o.isDisabled||l.value.focus()}}),(u,v)=>(r.openBlock(),r.createElementBlock("div",ir,[r.createElementVNode("input",r.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[r.unref(a),r.unref(c),r.unref(i)]],placeholder:e.placeholder,type:e.type,tabindex:e.isDisabled?"-1":void 0,value:e.modelValue},u.$attrs,{ref_key:"input",ref:l,onInput:s}),null,16,lr),e.icon?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4",r.unref(c)])},[r.createVNode(D,{name:e.icon},null,8,["name"])],2)):r.createCommentVNode("",!0)]))}})),ur={class:"inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20"},fr=["for"],dr={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},pr=r.defineComponent({props:{id:null,label:null,description:null},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",ur,[r.createElementVNode("label",{for:e.id},r.toDisplayString(e.label),9,fr),e.description?(r.openBlock(),r.createElementBlock("span",dr,r.toDisplayString(e.description),1)):r.createCommentVNode("",!0)]))}});function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$.apply(this,arguments)}function yt(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function mr(e,t){if(!!e){if(typeof e=="string")return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(e,t)}}function xt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function hr(e,t){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=mr(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function
|
|
5
|
+
*/var Wt={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.8 90.69 226.4 209.3 245V327.7h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.3 482.4 504 379.8 504 256z"]},Kt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},qt={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},Xt={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Yt={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.4 151.7c.325 4.548 .325 9.097 .325 13.65 0 138.7-105.6 298.6-298.6 298.6-59.45 0-114.7-17.22-161.1-47.11 8.447 .974 16.57 1.299 25.34 1.299 49.06 0 94.21-16.57 130.3-44.83-46.13-.975-84.79-31.19-98.11-72.77 6.498 .974 12.99 1.624 19.82 1.624 9.421 0 18.84-1.3 27.61-3.573-48.08-9.747-84.14-51.98-84.14-102.1v-1.299c13.97 7.797 30.21 12.67 47.43 13.32-28.26-18.84-46.78-51.01-46.78-87.39 0-19.49 5.197-37.36 14.29-52.95 51.65 63.67 129.3 105.3 216.4 109.8-1.624-7.797-2.599-15.92-2.599-24.04 0-57.83 46.78-104.9 104.9-104.9 30.21 0 57.5 12.67 76.67 33.14 23.72-4.548 46.46-13.32 66.6-25.34-7.798 24.37-24.37 44.83-46.13 57.83 21.12-2.273 41.58-8.122 60.43-16.24-14.29 20.79-32.16 39.31-52.63 54.25z"]};ve.library.add(Ht.fas),ve.library.add(Yt,qt,Kt,Xt,Wt);var Ze=[...Object.keys(ve.library.definitions.fas)].sort();const Pe=[...Object.keys(ve.library.definitions.fab)].sort(),T=r.defineComponent({props:{name:{default:"user"}},setup(e){const t=e,n=r.computed(()=>Pe.includes(t.name)?"fab":"fas"),o=r.computed(()=>Ze.includes(t.name)||Pe.includes(t.name)?!0:(console.warn("could not load icon, because it is not available",t.name),!1));return(a,i)=>r.unref(o)?(r.openBlock(),r.createBlock(r.unref(D.FontAwesomeIcon),r.mergeProps({key:0,icon:[r.unref(n),e.name]},a.$attrs),null,16,["icon"])):r.createCommentVNode("",!0)}}),Gt=["aria-label","tabindex"],Jt={key:0,class:"absolute inset-0 flex items-center justify-center"},Qt=r.defineComponent({props:{label:null,size:{default:"medium"},color:{default:"primary"},isLoading:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},icon:null,iconPosition:{default:"right"}},emits:["onClick"],setup(e,{emit:t}){const n=e,o=r.computed(()=>{const c={"text-white bg-blue-600 border-transparent hover:bg-blue-700 active:bg-blue-700 dark:ring-blue-800 ring-offset-2 dark:ring-offset-grey-900":n.color==="primary","text-blue-600 bg-grey-100 border-transparent hover:bg-blue-100 hover:text-blue-700 active:bg-grey-100 ring-blue-300 ring-offset-2 dark:ring-offset-grey-900":n.color==="light","text-grey-50 bg-grey-700 border-transparent hover:bg-grey-800 active:bg-grey-700 ring-grey-500 dark:ring-grey-400 dark:ring-opacity-50 ring-offset-2 dark:ring-offset-grey-900":n.color==="dark"},s={"pointer-events-none opacity-75 cursor-not-allowed":n.isDisabled},l={"px-4 py-1 text-xs leading-5 mono-100 rounded-lg":n.size==="small","px-5 py-2 text-sm leading-4 font-medium rounded-lg":n.size==="medium","px-8 py-3 text-base leading-6 font-medium rounded-lg":n.size==="large"};return F(F(F({},c),s),l)}),a=r.computed(()=>{const c={"mr-2 -ml-1":["small","medium"].includes(n.size)&&n.iconPosition==="left","mr-4 -ml-2":["large"].includes(n.size)&&n.iconPosition==="left"},s={"ml-3 -mr-1":["small","medium"].includes(n.size)&&n.iconPosition==="right","ml-3 -mr-3":["large"].includes(n.size)&&n.iconPosition==="right"},l={"text-white":n.color==="primary","text-blue-600":n.color==="light","text-grey-50":n.color==="dark"};return F(F(F({},c),s),l)});function i(){n.isDisabled||t("onClick")}return(c,s)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["relative inline-flex items-center focus:outline-none focus:ring active:ring transition duration-150 ease-in-out",r.unref(o)]),type:"button","aria-label":e.label,tabindex:e.isDisabled?"-1":void 0,onClick:i},[r.createElementVNode("div",{class:r.normalizeClass(!e.isLoading||"invisible")},[e.icon&&e.iconPosition==="left"?(r.openBlock(),r.createBlock(T,{key:0,name:e.icon,class:r.normalizeClass(r.unref(a))},null,8,["name","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",null,r.toDisplayString(e.label),1),e.icon&&e.iconPosition==="right"?(r.openBlock(),r.createBlock(T,{key:1,name:e.icon,class:r.normalizeClass(r.unref(a))},null,8,["name","class"])):r.createCommentVNode("",!0)],2),e.isLoading?(r.openBlock(),r.createElementBlock("span",Jt,[r.createVNode(T,{class:"animate-spin",name:"circle-notch"})])):r.createCommentVNode("",!0)],10,Gt))}});var ye,Zt=new Uint8Array(16);function en(){if(!ye&&(ye=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ye))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(Zt)}var tn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function nn(e){return typeof e=="string"&&tn.test(e)}for(var I=[],$e=0;$e<256;++$e)I.push(($e+256).toString(16).substr(1));function rn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(I[e[t+0]]+I[e[t+1]]+I[e[t+2]]+I[e[t+3]]+"-"+I[e[t+4]]+I[e[t+5]]+"-"+I[e[t+6]]+I[e[t+7]]+"-"+I[e[t+8]]+I[e[t+9]]+"-"+I[e[t+10]]+I[e[t+11]]+I[e[t+12]]+I[e[t+13]]+I[e[t+14]]+I[e[t+15]]).toLowerCase();if(!nn(n))throw TypeError("Stringified UUID is invalid");return n}function et(e,t,n){e=e||{};var o=e.random||(e.rng||en)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return rn(o)}const on={class:"relative flex items-start"},an={class:"flex items-center h-5"},ln=["checked","id"],sn={class:"ml-2 text-sm leading-5"},cn=["for"],un={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},fn=r.defineComponent({props:{id:{default:et()},label:null,modelValue:{type:Boolean},description:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=o=>{t("update:modelValue",o.target.checked)};return(o,a)=>(r.openBlock(),r.createElementBlock("div",on,[r.createElementVNode("div",an,[r.createElementVNode("input",{class:"h-4 w-4 border-grey-600 dark:text-blue-500 dark:border-grey-300 dark:checked:border-blue-500 dark:focus:ring-blue-900 dark:focus:ring-offset-grey-800 rounded-sm",type:"checkbox",checked:e.modelValue,onChange:n,id:e.id},null,40,ln)]),r.createElementVNode("div",sn,[r.createElementVNode("label",{for:e.id,class:"font-medium text-grey-700 dark:text-grey-200 casual-25"},r.toDisplayString(e.label),9,cn),e.description?(r.openBlock(),r.createElementBlock("p",un,r.toDisplayString(e.description),1)):r.createCommentVNode("",!0)])]))}}),dn={},Me=()=>{},ue=Object.assign,pn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},J=Array.isArray,mn=e=>Le(e)==="[object Map]",hn=e=>Le(e)==="[object Set]",j=e=>typeof e=="function",bn=e=>typeof e=="string",gn=e=>typeof e=="symbol",tt=e=>e!==null&&typeof e=="object",vn=e=>tt(e)&&j(e.then)&&j(e.catch),yn=Object.prototype.toString,Le=e=>yn.call(e),xn=e=>Le(e)==="[object Object]",nt=(e,t)=>!Object.is(e,t),wn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let kn;function Cn(e,t=kn){t&&t.active&&t.effects.push(e)}const Sn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},rt=e=>(e.w&H)>0,ot=e=>(e.n&H)>0,On=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=H},En=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];rt(a)&&!ot(a)?a.delete(e):t[n++]=a,a.w&=~H,a.n&=~H}t.length=n}};let fe=0,H=1;const Ne=30;let A;class at{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Cn(this,o)}run(){if(!this.active)return this.fn();let t=A,n=xe;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=A,A=this,xe=!0,H=1<<++fe,fe<=Ne?On(this):it(this),this.fn()}finally{fe<=Ne&&En(this),H=1<<--fe,A=this.parent,xe=n,this.parent=void 0}}stop(){this.active&&(it(this),this.onStop&&this.onStop(),this.active=!1)}}function it(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xe=!0;function In(e,t){let n=!1;fe<=Ne?ot(e)||(e.n|=H,n=!rt(e)):n=!e.has(A),n&&(e.add(A),A.deps.push(e))}function Vn(e,t){for(const n of J(e)?e:[...e])(n!==A||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(gn));function de(e){return Bn(e)?de(e.__v_raw):!!(e&&e.__v_isReactive)}function Bn(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function Rn(e){return wn(e,"__v_skip",!0),e}function Tn(e){xe&&A&&(e=we(e),In(e.dep||(e.dep=Sn())))}function Pn(e,t){e=we(e),e.dep&&Vn(e.dep)}function Q(e){return!!(e&&e.__v_isRef===!0)}function $n(e){return Q(e)?e.value:e}const Mn={get:(e,t,n)=>$n(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const a=e[t];return Q(a)&&!Q(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};function Ln(e){return de(e)?e:new Proxy(e,Mn)}class Nn{constructor(t,n,o,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new at(t,()=>{this._dirty||(this._dirty=!0,Pn(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const t=we(this);return Tn(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function jn(e,t,n=!1){let o,a;const i=j(e);return i?(o=e,a=Me):(o=e.get,a=e.set),new Nn(o,a,i||!a,n)}Promise.resolve();function Z(e,t,n,o){let a;try{a=o?e(...o):e()}catch(i){lt(i,t,n)}return a}function je(e,t,n,o){if(j(e)){const i=Z(e,t,n,o);return i&&vn(i)&&i.catch(c=>{lt(c,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(je(e[i],t,n,o));return a}function lt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const c=t.proxy,s=n;for(;i;){const f=i.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](e,c,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Z(l,null,10,[e,c,s]);return}}An(e,n,a,o)}function An(e,t,n,o=!0){console.error(e)}let ke=!1,Ae=!1;const P=[];let W=0;const pe=[];let me=null,ee=0;const he=[];let K=null,te=0;const st=Promise.resolve();let ze=null,_e=null;function zn(e){const t=ze||st;return e?t.then(this?e.bind(this):e):t}function _n(e){let t=W+1,n=P.length;for(;t<n;){const o=t+n>>>1;be(P[o])<e?t=o+1:n=o}return t}function Un(e){(!P.length||!P.includes(e,ke&&e.allowRecurse?W+1:W))&&e!==_e&&(e.id==null?P.push(e):P.splice(_n(e.id),0,e),ct())}function ct(){!ke&&!Ae&&(Ae=!0,ze=st.then(dt))}function ut(e,t,n,o){J(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&n.push(e),ct()}function Fn(e){ut(e,me,pe,ee)}function Hn(e){ut(e,K,he,te)}function ft(e,t=null){if(pe.length){for(_e=t,me=[...new Set(pe)],pe.length=0,ee=0;ee<me.length;ee++)me[ee]();me=null,ee=0,_e=null,ft(e,t)}}function Wn(e){if(he.length){const t=[...new Set(he)];if(he.length=0,K){K.push(...t);return}for(K=t,K.sort((n,o)=>be(n)-be(o)),te=0;te<K.length;te++)K[te]();K=null,te=0}}const be=e=>e.id==null?1/0:e.id;function dt(e){Ae=!1,ke=!0,ft(e),P.sort((n,o)=>be(n)-be(o));const t=Me;try{for(W=0;W<P.length;W++){const n=P[W];n&&n.active!==!1&&Z(n,null,14)}}finally{W=0,P.length=0,Wn(),ke=!1,ze=null,(P.length||pe.length||he.length)&&dt(e)}}function Kn(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Hn(e)}const pt={};function qn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:c}=dn){const s=re;let l,f=!1,u=!1;if(Q(e)?(l=()=>e.value,f=Dn(e)):de(e)?(l=()=>e,o=!0):J(e)?(u=!0,f=e.some(de),l=()=>e.map(b=>{if(Q(b))return b.value;if(de(b))return ne(b);if(j(b))return Z(b,s,2)})):j(e)?t?l=()=>Z(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return g&&g(),je(e,s,3,[v])}:l=Me,t&&o){const b=l;l=()=>ne(b())}let g,v=b=>{g=m.onStop=()=>{Z(b,s,4)}},p=u?[]:pt;const h=()=>{if(!!m.active)if(t){const b=m.run();(o||f||(u?b.some((S,C)=>nt(S,p[C])):nt(b,p)))&&(g&&g(),je(t,s,3,[b,p===pt?void 0:p,v]),p=b)}else m.run()};h.allowRecurse=!!t;let d;a==="sync"?d=h:a==="post"?d=()=>bt(h,s&&s.suspense):d=()=>{!s||s.isMounted?Fn(h):h()};const m=new at(l,d);return t?n?h():p=m.run():a==="post"?bt(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&pn(s.scope.effects,m)}}function Xn(e,t,n){const o=this.proxy,a=bn(e)?e.includes(".")?Yn(o,e):()=>o[e]:e.bind(o,o);let i;j(t)?i=t:(i=t.handler,n=t);const c=re;vt(this);const s=qn(a,i.bind(o),n);return c?vt(c):er(),s}function Yn(e,t){const n=t.split(".");return()=>{let o=e;for(let a=0;a<n.length&&o;a++)o=o[n[a]];return o}}function ne(e,t){if(!tt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Q(e))ne(e.value,t);else if(J(e))for(let n=0;n<e.length;n++)ne(e[n],t);else if(hn(e)||mn(e))e.forEach(n=>{ne(n,t)});else if(xn(e))for(const n in e)ne(e[n],t);return e}function Gn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:c}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!o?l=t:(l={},a.length&&a.forEach(f=>Ce(l,f,c,!0)),Ce(l,t,c)),i.set(t,l),l}function Ce(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&Ce(e,i,n,!0),a&&a.forEach(c=>Ce(e,c,n,!0));for(const c in t)if(!(o&&c==="expose")){const s=Jn[c]||n&&n[c];e[c]=s?s(e[c],t[c]):t[c]}return e}const Jn={data:mt,props:X,emits:X,methods:X,computed:X,beforeCreate:B,created:B,beforeMount:B,mounted:B,beforeUpdate:B,updated:B,beforeDestroy:B,beforeUnmount:B,destroyed:B,unmounted:B,activated:B,deactivated:B,errorCaptured:B,serverPrefetch:B,components:X,directives:X,watch:Zn,provide:mt,inject:Qn};function mt(e,t){return t?e?function(){return ue(j(e)?e.call(this,this):e,j(t)?t.call(this,this):t)}:t:e}function Qn(e,t){return X(ht(e),ht(t))}function ht(e){if(J(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function B(e,t){return e?[...new Set([].concat(e,t))]:t}function X(e,t){return e?ue(ue(Object.create(null),e),t):t}function Zn(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const o in t)n[o]=B(e[o],t[o]);return n}const bt=Kn,Ue=e=>e?tr(e)?rr(e)||e.proxy:Ue(e.parent):null,gt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ue(e.parent),$root:e=>Ue(e.root),$emit:e=>e.emit,$options:e=>Gn(e),$forceUpdate:e=>()=>Un(e.update),$nextTick:e=>zn.bind(e.proxy),$watch:e=>Xn.bind(e)});let re=null;const vt=e=>{re=e,e.scope.on()},er=()=>{re&&re.scope.off(),re=null};function tr(e){return e.vnode.shapeFlag&4}let nr=!1;function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ln(Rn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gt)return gt[n](e)}}))}const Fe=(e,t)=>jn(e,t,nr);function He(e){const t=Fe(()=>({"pl-3 pr-10 py-1":!e.icon&&e.size==="small","pl-4 pr-10 py-3":!e.icon&&e.size==="medium","pl-6 pr-10 py-3":!e.icon&&e.size==="large","pl-10 pr-10 py-1":e.icon&&e.size==="small","pl-12 pr-10 py-3":e.icon&&(e.size==="medium"||e.size==="large"),"w-full block":e.block===!0})),n=Fe(()=>({"pointer-events-none opacity-50 cursor-not-allowed":e.isDisabled})),o=Fe(()=>({"text-xs leading-4":e.size==="small","text-sm leading-4":e.size==="medium","text-base leading-5":e.size==="large"}));return{inputClasses:t,disabledClasses:n,textSizeClasses:o}}const or={class:"relative"},ar=["placeholder","type","tabindex","value"],ir={inheritAttrs:!1},lr=r.defineComponent(Qe(F({},ir),{props:{modelValue:null,type:{default:"text"},placeholder:null,size:{default:"medium"},icon:null,isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,{inputClasses:a,disabledClasses:i,textSizeClasses:c}=He(o),s=function(u){n("update:modelValue",(u==null?void 0:u.target).value)},l=r.ref(null);return t({focus:()=>{o.isDisabled||l.value.focus()}}),(u,g)=>(r.openBlock(),r.createElementBlock("div",or,[r.createElementVNode("input",r.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[r.unref(a),r.unref(c),r.unref(i)]],placeholder:e.placeholder,type:e.type,tabindex:e.isDisabled?"-1":void 0,value:e.modelValue},u.$attrs,{ref_key:"input",ref:l,onInput:s}),null,16,ar),e.icon?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4",r.unref(c)])},[r.createVNode(T,{name:e.icon},null,8,["name"])],2)):r.createCommentVNode("",!0)]))}})),sr={class:"inline-block text-grey-700 dark:text-grey-200 text-sm font-medium casual-20"},cr=["for"],ur={key:0,class:"block text-xs text-grey-400 font-normal mono-0 casual-60"},fr=r.defineComponent({props:{id:null,label:null,description:null},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("span",sr,[r.createElementVNode("label",{for:e.id},r.toDisplayString(e.label),9,cr),e.description?(r.openBlock(),r.createElementBlock("span",ur,r.toDisplayString(e.description),1)):r.createCommentVNode("",!0)]))}});function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$.apply(this,arguments)}function yt(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function dr(e,t){if(!!e){if(typeof e=="string")return xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(e,t)}}function xt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function pr(e,t){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=dr(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}function oe(e,t){if(e in t){for(var n=t[e],o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];return typeof n=="function"?n.apply(void 0,a):n}var c=new Error('Tried to handle "'+e+'" but there is no handler defined. Only defined handlers are: '+Object.keys(t).map(function(s){return'"'+s+'"'}).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(c,oe),c}var z;(function(e){e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static"})(z||(z={}));var ae;(function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"})(ae||(ae={}));function _(e){var t=e.visible,n=t===void 0?!0:t,o=e.features,a=o===void 0?z.None:o,i=yt(e,["visible","features"]);if(n||a&z.Static&&i.props.static)return Se(i);if(a&z.RenderStrategy){var c,s,l=((c=i.props.unmount)!=null?c:!0)?ae.Unmount:ae.Hidden;return oe(l,(s={},s[ae.Unmount]=function(){return null},s[ae.Hidden]=function(){return Se($({},i,{props:$({},i.props,{hidden:!0,style:{display:"none"}})}))},s))}return Se(i)}function Se(e){var t=e.props,n=e.attrs,o=e.slots,a=e.slot,i=e.name,c=wt(t,["unmount","static"]),s=c.as,l=yt(c,["as"]),f=o.default==null?void 0:o.default(a);if(s==="template"){if(Object.keys(l).length>0||Object.keys(n).length>0){var u=f!=null?f:[],g=u[0],v=u.slice(1);if(!mr(g)||v.length>0)throw new Error(['Passing props on "template"!',"","The current component <"+i+' /> is rendering a "template".',"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(n)).map(function(p){return" - "+p}).join(`
|
|
7
7
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(function(p){return" - "+p}).join(`
|
|
8
8
|
`)].join(`
|
|
9
|
-
`));return r.cloneVNode(v,l)}return Array.isArray(f)&&f.length===1?f[0]:f}return r.h(s,l,f)}function wt(e,t){t===void 0&&(t=[]);for(var n=Object.assign({},e),o=hr(t),a;!(a=o()).done;){var i=a.value;i in n&&delete n[i]}return n}function br(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var x;(function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"})(x||(x={}));var gr=0;function vr(){return++gr}function Y(){return vr()}function kt(e,t,n){typeof window!="undefined"&&r.watchEffect(function(o){window.addEventListener(e,t,n),o(function(){window.removeEventListener(e,t,n)})})}function C(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}var Ct=Symbol("Context"),q;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(q||(q={}));function St(){return r.inject(Ct,null)}function Ot(e){r.provide(Ct,e)}function Et(e,t){if(e)return e;var n=t!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function We(e,t){var n=r.ref(Et(e.value.type,e.value.as));return r.onMounted(function(){n.value=Et(e.value.type,e.value.as)}),r.watchEffect(function(){var o;n.value||!C(t)||C(t)instanceof HTMLButtonElement&&!((o=C(t))==null?void 0:o.hasAttribute("type"))&&(n.value="button")}),n}function yr(e){throw new Error("Unexpected object: "+e)}var k;(function(e){e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing"})(k||(k={}));function It(e,t){var n=t.resolveItems();if(n.length<=0)return null;var o=t.resolveActiveIndex(),a=o!=null?o:-1,i=function(){switch(e.focus){case k.First:return n.findIndex(function(l){return!t.resolveDisabled(l)});case k.Previous:{var c=n.slice().reverse().findIndex(function(l,f,u){return a!==-1&&u.length-f-1>=a?!1:!t.resolveDisabled(l)});return c===-1?c:n.length-1-c}case k.Next:return n.findIndex(function(l,f){return f<=a?!1:!t.resolveDisabled(l)});case k.Last:{var s=n.slice().reverse().findIndex(function(l){return!t.resolveDisabled(l)});return s===-1?s:n.length-1-s}case k.Specific:return n.findIndex(function(l){return t.resolveId(l)===e.id});case k.Nothing:return null;default:yr(e)}}();return i===-1?o:i}var I;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(I||(I={}));function xr(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})}var Vt=Symbol("ListboxContext");function le(e){var t=r.inject(Vt,null);if(t===null){var n=new Error("<"+e+" /> is missing a parent <Listbox /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,le),n}return t}var wr=r.defineComponent({name:"Listbox",emits:{"update:modelValue":function(t){return!0}},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},setup:function(t,n){var o=n.slots,a=n.attrs,i=n.emit,c=r.ref(I.Closed),s=r.ref(null),l=r.ref(null),f=r.ref(null),u=r.ref([]),v=r.ref(""),y=r.ref(null),p=r.computed(function(){return t.modelValue}),h={listboxState:c,value:p,orientation:r.computed(function(){return t.horizontal?"horizontal":"vertical"}),labelRef:s,buttonRef:l,optionsRef:f,disabled:r.computed(function(){return t.disabled}),options:u,searchQuery:v,activeOptionIndex:y,closeListbox:function(){t.disabled||c.value!==I.Closed&&(c.value=I.Closed,y.value=null)},openListbox:function(){t.disabled||c.value!==I.Open&&(c.value=I.Open)},goToOption:function(m,b){if(!t.disabled&&c.value!==I.Closed){var O=It(m===k.Specific?{focus:k.Specific,id:b}:{focus:m},{resolveItems:function(){return u.value},resolveActiveIndex:function(){return y.value},resolveId:function(E){return E.id},resolveDisabled:function(E){return E.dataRef.disabled}});v.value===""&&y.value===O||(v.value="",y.value=O)}},search:function(m){if(!t.disabled&&c.value!==I.Closed){v.value+=m.toLowerCase();var b=u.value.findIndex(function(O){return!O.dataRef.disabled&&O.dataRef.textValue.startsWith(v.value)});b===-1||b===y.value||(y.value=b)}},clearSearch:function(){t.disabled||c.value!==I.Closed&&v.value!==""&&(v.value="")},registerOption:function(m,b){u.value.push({id:m,dataRef:b})},unregisterOption:function(m){var b=u.value.slice(),O=y.value!==null?b[y.value]:null,S=b.findIndex(function(E){return E.id===m});S!==-1&&b.splice(S,1),u.value=b,y.value=function(){return S===y.value||O===null?null:b.indexOf(O)}()},select:function(m){t.disabled||i("update:modelValue",m)}};return kt("mousedown",function(d){var m,b,O,S=d.target,E=document.activeElement;c.value===I.Open&&(((m=C(l))==null?void 0:m.contains(S))||(((b=C(f))==null?void 0:b.contains(S))||h.closeListbox(),!(E!==document.body&&(E==null?void 0:E.contains(S)))&&(d.defaultPrevented||(O=C(l))==null||O.focus({preventScroll:!0}))))}),r.provide(Vt,h),Ot(r.computed(function(){var d;return ae(c.value,(d={},d[I.Open]=q.Open,d[I.Closed]=q.Closed,d))})),function(){var d={open:c.value===I.Open,disabled:t.disabled};return U({props:wt(t,["modelValue","onUpdate:modelValue","disabled","horizontal"]),slot:d,slots:o,attrs:a,name:"Listbox"})}}}),kr=r.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"}},render:function(){var t,n,o=le("ListboxButton"),a={open:o.listboxState.value===I.Open,disabled:o.disabled.value},i={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(t=C(o.optionsRef))==null?void 0:t.id,"aria-expanded":o.disabled.value?void 0:o.listboxState.value===I.Open,"aria-labelledby":o.labelRef.value?[(n=C(o.labelRef))==null?void 0:n.id,this.id].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return U({props:$({},this.$props,i),slot:a,attrs:this.$attrs,slots:this.$slots,name:"ListboxButton"})},setup:function(t,n){var o=n.attrs,a=le("ListboxButton"),i="headlessui-listbox-button-"+Y();function c(f){switch(f.key){case x.Space:case x.Enter:case x.ArrowDown:f.preventDefault(),a.openListbox(),r.nextTick(function(){var u;(u=C(a.optionsRef))==null||u.focus({preventScroll:!0}),a.value.value||a.goToOption(k.First)});break;case x.ArrowUp:f.preventDefault(),a.openListbox(),r.nextTick(function(){var u;(u=C(a.optionsRef))==null||u.focus({preventScroll:!0}),a.value.value||a.goToOption(k.Last)});break}}function s(f){switch(f.key){case x.Space:f.preventDefault();break}}function l(f){a.disabled.value||(a.listboxState.value===I.Open?(a.closeListbox(),r.nextTick(function(){var u;return(u=C(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(f.preventDefault(),a.openListbox(),xr(function(){var u;return(u=C(a.optionsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:We(r.computed(function(){return{as:t.as,type:o.type}}),a.buttonRef),handleKeyDown:c,handleKeyUp:s,handleClick:l}}}),Cr=r.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var t,n,o,a,i=le("ListboxOptions"),c={open:i.listboxState.value===I.Open},s={"aria-activedescendant":i.activeOptionIndex.value===null||(t=i.options.value[i.activeOptionIndex.value])==null?void 0:t.id,"aria-labelledby":(n=(o=C(i.labelRef))==null?void 0:o.id)!=null?n:(a=C(i.buttonRef))==null?void 0:a.id,"aria-orientation":i.orientation.value,id:this.id,onKeydown:this.handleKeyDown,role:"listbox",tabIndex:0,ref:"el"},l=this.$props;return U({props:$({},l,s),slot:c,attrs:this.$attrs,slots:this.$slots,features:_.RenderStrategy|_.Static,visible:this.visible,name:"ListboxOptions"})},setup:function(){var t=le("ListboxOptions"),n="headlessui-listbox-options-"+Y(),o=r.ref(null);function a(s){switch(o.value&&clearTimeout(o.value),s.key){case x.Space:if(t.searchQuery.value!=="")return s.preventDefault(),s.stopPropagation(),t.search(s.key);case x.Enter:if(s.preventDefault(),s.stopPropagation(),t.activeOptionIndex.value!==null){var l=t.options.value[t.activeOptionIndex.value].dataRef;t.select(l.value)}t.closeListbox(),r.nextTick(function(){var f;return(f=C(t.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case ae(t.orientation.value,{vertical:x.ArrowDown,horizontal:x.ArrowRight}):return s.preventDefault(),s.stopPropagation(),t.goToOption(k.Next);case ae(t.orientation.value,{vertical:x.ArrowUp,horizontal:x.ArrowLeft}):return s.preventDefault(),s.stopPropagation(),t.goToOption(k.Previous);case x.Home:case x.PageUp:return s.preventDefault(),s.stopPropagation(),t.goToOption(k.First);case x.End:case x.PageDown:return s.preventDefault(),s.stopPropagation(),t.goToOption(k.Last);case x.Escape:s.preventDefault(),s.stopPropagation(),t.closeListbox(),r.nextTick(function(){var f;return(f=C(t.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case x.Tab:s.preventDefault(),s.stopPropagation();break;default:s.key.length===1&&(t.search(s.key),o.value=setTimeout(function(){return t.clearSearch()},350));break}}var i=St(),c=r.computed(function(){return i!==null?i.value===q.Open:t.listboxState.value===I.Open});return{id:n,el:t.optionsRef,handleKeyDown:a,visible:c}}}),Sr=r.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup:function(t,n){var o=n.slots,a=n.attrs,i=le("ListboxOption"),c="headlessui-listbox-option-"+Y(),s=r.computed(function(){return i.activeOptionIndex.value!==null?i.options.value[i.activeOptionIndex.value].id===c:!1}),l=r.computed(function(){return r.toRaw(i.value.value)===r.toRaw(t.value)}),f=r.ref({disabled:t.disabled,value:t.value,textValue:""});r.onMounted(function(){var h,d,m=(h=document.getElementById(c))==null||(d=h.textContent)==null?void 0:d.toLowerCase().trim();m!==void 0&&(f.value.textValue=m)}),r.onMounted(function(){return i.registerOption(c,f)}),r.onUnmounted(function(){return i.unregisterOption(c)}),r.onMounted(function(){r.watch([i.listboxState,l],function(){var h;i.listboxState.value===I.Open&&(!l.value||(i.goToOption(k.Specific,c),(h=document.getElementById(c))==null||h.focus==null||h.focus()))},{immediate:!0})}),r.watchEffect(function(){i.listboxState.value===I.Open&&(!s.value||r.nextTick(function(){var h;return(h=document.getElementById(c))==null||h.scrollIntoView==null?void 0:h.scrollIntoView({block:"nearest"})}))});function u(h){if(t.disabled)return h.preventDefault();i.select(t.value),i.closeListbox(),r.nextTick(function(){var d;return(d=C(i.buttonRef))==null?void 0:d.focus({preventScroll:!0})})}function v(){if(t.disabled)return i.goToOption(k.Nothing);i.goToOption(k.Specific,c)}function y(){t.disabled||s.value||i.goToOption(k.Specific,c)}function p(){t.disabled||!s.value||i.goToOption(k.Nothing)}return function(){var h=t.disabled,d={active:s.value,selected:l.value,disabled:h},m={id:c,role:"option",tabIndex:h===!0?void 0:-1,"aria-disabled":h===!0?!0:void 0,"aria-selected":l.value===!0?l.value:void 0,disabled:void 0,onClick:u,onFocus:v,onPointermove:y,onMousemove:y,onPointerleave:p,onMouseleave:p};return U({props:$({},t,m),slot:d,attrs:a,slots:o,name:"ListboxOption"})}}});function Or(e){var t=e.container,n=e.accept,o=e.walk,a=e.enabled;r.watchEffect(function(){var i=t.value;if(!!i&&!(a!==void 0&&!a.value))for(var c=Object.assign(function(l){return n(l)},{acceptNode:n}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,c,!1);s.nextNode();)o(s.currentNode)})}var B;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(B||(B={}));function Er(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})}var Bt=Symbol("MenuContext");function se(e){var t=r.inject(Bt,null);if(t===null){var n=new Error("<"+e+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,se),n}return t}var Ir=r.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(t,n){var o=n.slots,a=n.attrs,i=r.ref(B.Closed),c=r.ref(null),s=r.ref(null),l=r.ref([]),f=r.ref(""),u=r.ref(null),v={menuState:i,buttonRef:c,itemsRef:s,items:l,searchQuery:f,activeItemIndex:u,closeMenu:function(){i.value=B.Closed,u.value=null},openMenu:function(){return i.value=B.Open},goToItem:function(p,h){var d=It(p===k.Specific?{focus:k.Specific,id:h}:{focus:p},{resolveItems:function(){return l.value},resolveActiveIndex:function(){return u.value},resolveId:function(b){return b.id},resolveDisabled:function(b){return b.dataRef.disabled}});f.value===""&&u.value===d||(f.value="",u.value=d)},search:function(p){f.value+=p.toLowerCase();var h=l.value.findIndex(function(d){return d.dataRef.textValue.startsWith(f.value)&&!d.dataRef.disabled});h===-1||h===u.value||(u.value=h)},clearSearch:function(){f.value=""},registerItem:function(p,h){l.value.push({id:p,dataRef:h})},unregisterItem:function(p){var h=l.value.slice(),d=u.value!==null?h[u.value]:null,m=h.findIndex(function(b){return b.id===p});m!==-1&&h.splice(m,1),l.value=h,u.value=function(){return m===u.value||d===null?null:h.indexOf(d)}()}};return kt("mousedown",function(y){var p,h,d,m=y.target,b=document.activeElement;i.value===B.Open&&(((p=C(c))==null?void 0:p.contains(m))||(((h=C(s))==null?void 0:h.contains(m))||v.closeMenu(),!(b!==document.body&&(b==null?void 0:b.contains(m)))&&(y.defaultPrevented||(d=C(c))==null||d.focus({preventScroll:!0}))))}),r.provide(Bt,v),Ot(r.computed(function(){var y;return ae(i.value,(y={},y[B.Open]=q.Open,y[B.Closed]=q.Closed,y))})),function(){var y={open:i.value===B.Open};return U({props:t,slot:y,slots:o,attrs:a,name:"Menu"})}}}),Vr=r.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var t,n=se("MenuButton"),o={open:n.menuState.value===B.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(t=C(n.itemsRef))==null?void 0:t.id,"aria-expanded":this.$props.disabled?void 0:n.menuState.value===B.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return U({props:$({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(t,n){var o=n.attrs,a=se("MenuButton"),i="headlessui-menu-button-"+Y();function c(f){switch(f.key){case x.Space:case x.Enter:case x.ArrowDown:f.preventDefault(),f.stopPropagation(),a.openMenu(),r.nextTick(function(){var u;(u=C(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(k.First)});break;case x.ArrowUp:f.preventDefault(),f.stopPropagation(),a.openMenu(),r.nextTick(function(){var u;(u=C(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(k.Last)});break}}function s(f){switch(f.key){case x.Space:f.preventDefault();break}}function l(f){t.disabled||(a.menuState.value===B.Open?(a.closeMenu(),r.nextTick(function(){var u;return(u=C(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(f.preventDefault(),f.stopPropagation(),a.openMenu(),Er(function(){var u;return(u=C(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:We(r.computed(function(){return{as:t.as,type:o.type}}),a.buttonRef),handleKeyDown:c,handleKeyUp:s,handleClick:l}}}),Br=r.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var t,n,o=se("MenuItems"),a={open:o.menuState.value===B.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(t=o.items.value[o.activeItemIndex.value])==null?void 0:t.id,"aria-labelledby":(n=C(o.buttonRef))==null?void 0:n.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},c=this.$props;return U({props:$({},c,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:_.RenderStrategy|_.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var t=se("MenuItems"),n="headlessui-menu-items-"+Y(),o=r.ref(null);Or({container:r.computed(function(){return C(t.itemsRef)}),enabled:r.computed(function(){return t.menuState.value===B.Open}),accept:function(f){return f.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(f){f.setAttribute("role","none")}});function a(l){switch(o.value&&clearTimeout(o.value),l.key){case x.Space:if(t.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),t.search(l.key);case x.Enter:if(l.preventDefault(),l.stopPropagation(),t.activeItemIndex.value!==null){var f,u=t.items.value[t.activeItemIndex.value].id;(f=document.getElementById(u))==null||f.click()}t.closeMenu(),r.nextTick(function(){var v;return(v=C(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case x.ArrowDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.Next);case x.ArrowUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.Previous);case x.Home:case x.PageUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.First);case x.End:case x.PageDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(k.Last);case x.Escape:l.preventDefault(),l.stopPropagation(),t.closeMenu(),r.nextTick(function(){var v;return(v=C(t.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case x.Tab:l.preventDefault(),l.stopPropagation();break;default:l.key.length===1&&(t.search(l.key),o.value=setTimeout(function(){return t.clearSearch()},350));break}}function i(l){switch(l.key){case x.Space:l.preventDefault();break}}var c=St(),s=r.computed(function(){return c!==null?c.value===q.Open:t.menuState.value===B.Open});return{id:n,el:t.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Pr=r.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(t,n){var o=n.slots,a=n.attrs,i=se("MenuItem"),c="headlessui-menu-item-"+Y(),s=r.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===c:!1}),l=r.ref({disabled:t.disabled,textValue:""});r.onMounted(function(){var p,h,d=(p=document.getElementById(c))==null||(h=p.textContent)==null?void 0:h.toLowerCase().trim();d!==void 0&&(l.value.textValue=d)}),r.onMounted(function(){return i.registerItem(c,l)}),r.onUnmounted(function(){return i.unregisterItem(c)}),r.watchEffect(function(){i.menuState.value===B.Open&&(!s.value||r.nextTick(function(){var p;return(p=document.getElementById(c))==null||p.scrollIntoView==null?void 0:p.scrollIntoView({block:"nearest"})}))});function f(p){if(t.disabled)return p.preventDefault();i.closeMenu(),r.nextTick(function(){var h;return(h=C(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function u(){if(t.disabled)return i.goToItem(k.Nothing);i.goToItem(k.Specific,c)}function v(){t.disabled||s.value||i.goToItem(k.Specific,c)}function y(){t.disabled||!s.value||i.goToItem(k.Nothing)}return function(){var p=t.disabled,h={active:s.value,disabled:p},d={id:c,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,onClick:f,onFocus:u,onPointermove:v,onMousemove:v,onPointerleave:y,onMouseleave:y};return U({props:$({},t,d),slot:h,attrs:a,slots:o,name:"MenuItem"})}}}),Rr=Symbol("GroupContext"),Tr=r.defineComponent({name:"Switch",emits:{"update:modelValue":function(t){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var t={checked:this.$props.modelValue},n={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return U({props:$({},this.$props,n),slot:t,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(t,n){var o=n.emit,a=n.attrs,i=r.inject(Rr,null),c="headlessui-switch-"+Y();function s(){o("update:modelValue",!t.modelValue)}var l=r.ref(null),f=i===null?l:i.switchRef;return{id:c,el:f,type:We(r.computed(function(){return{as:t.as,type:a.type}}),f),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(v){v.preventDefault(),s()},handleKeyUp:function(v){v.key!==x.Tab&&v.preventDefault(),v.key===x.Space&&s()},handleKeyPress:function(v){v.preventDefault()}}}});function j(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){var t=j(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=j(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dr(e){if(typeof ShadowRoot=="undefined")return!1;var t=j(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ce=Math.round;function Oe(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(L(e)&&t){var i=e.offsetHeight,c=e.offsetWidth;c>0&&(o=ce(n.width)/c||1),i>0&&(a=ce(n.height)/i||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Rt(e){var t=j(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Mr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $r(e){return e===j(e)||!L(e)?Rt(e):Mr(e)}function F(e){return e?(e.nodeName||"").toLowerCase():null}function Ee(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lr(e){return Oe(Ee(e)).left+Rt(e).scrollLeft}function J(e){return j(e).getComputedStyle(e)}function Ke(e){var t=J(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Nr(e){var t=e.getBoundingClientRect(),n=ce(t.width)/e.offsetWidth||1,o=ce(t.height)/e.offsetHeight||1;return n!==1||o!==1}function jr(e,t,n){n===void 0&&(n=!1);var o=L(t),a=L(t)&&Nr(t),i=Ee(t),c=Oe(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((F(t)!=="body"||Ke(i))&&(s=$r(t)),L(t)?(l=Oe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Lr(i))),{x:c.left+s.scrollLeft-l.x,y:c.top+s.scrollTop-l.y,width:c.width,height:c.height}}function Ar(e){var t=Oe(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function qe(e){return F(e)==="html"?e:e.assignedSlot||e.parentNode||(Dr(e)?e.host:null)||Ee(e)}function Tt(e){return["html","body","#document"].indexOf(F(e))>=0?e.ownerDocument.body:L(e)&&Ke(e)?e:Tt(qe(e))}function Ie(e,t){var n;t===void 0&&(t=[]);var o=Tt(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=j(o),c=a?[i].concat(i.visualViewport||[],Ke(o)?o:[]):o,s=t.concat(c);return a?s:s.concat(Ie(qe(c)))}function zr(e){return["table","td","th"].indexOf(F(e))>=0}function Dt(e){return!L(e)||J(e).position==="fixed"?null:e.offsetParent}function _r(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&L(e)){var o=J(e);if(o.position==="fixed")return null}for(var a=qe(e);L(a)&&["html","body"].indexOf(F(a))<0;){var i=J(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Mt(e){for(var t=j(e),n=Dt(e);n&&zr(n)&&J(n).position==="static";)n=Dt(n);return n&&(F(n)==="html"||F(n)==="body"&&J(n).position==="static")?t:n||_r(e)||t}var Ve="top",Ge="bottom",Xe="right",Be="left",Ur="start",Ye="end",Fr="beforeRead",Hr="read",Wr="afterRead",Kr="beforeMain",qr="main",Gr="afterMain",Xr="beforeWrite",Yr="write",Jr="afterWrite",Qr=[Fr,Hr,Wr,Kr,qr,Gr,Xr,Yr,Jr];function Zr(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),o}function eo(e){var t=Zr(e);return Qr.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function to(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $t(e){return e.split("-")[0]}function no(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}function Lt(e){return e.split("-")[1]}function ro(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oo(e){var t=e.reference,n=e.element,o=e.placement,a=o?$t(o):null,i=o?Lt(o):null,c=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Ve:l={x:c,y:t.y-n.height};break;case Ge:l={x:c,y:t.y+t.height};break;case Xe:l={x:t.x+t.width,y:s};break;case Be:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var f=a?ro(a):null;if(f!=null){var u=f==="y"?"height":"width";switch(i){case Ur:l[f]=l[f]-(t[u]/2-n[u]/2);break;case Ye:l[f]=l[f]+(t[u]/2-n[u]/2);break}}return l}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ao(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Nt:a;return function(s,l,f){f===void 0&&(f=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},v=[],y=!1,p={state:u,setOptions:function(b){var O=typeof b=="function"?b(u.options):b;d(),u.options=Object.assign({},i,u.options,O),u.scrollParents={reference:Pt(s)?Ie(s):s.contextElement?Ie(s.contextElement):[],popper:Ie(l)};var S=eo(no([].concat(o,u.options.modifiers)));return u.orderedModifiers=S.filter(function(E){return E.enabled}),h(),p.update()},forceUpdate:function(){if(!y){var b=u.elements,O=b.reference,S=b.popper;if(!!jt(O,S)){u.rects={reference:jr(O,Mt(S),u.options.strategy==="fixed"),popper:Ar(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Te){return u.modifiersData[Te.name]=Object.assign({},Te.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var N=u.orderedModifiers[E],T=N.fn,ue=N.options,Re=ue===void 0?{}:ue,Je=N.name;typeof T=="function"&&(u=T({state:u,options:Re,name:Je,instance:p})||u)}}}},update:to(function(){return new Promise(function(m){p.forceUpdate(),m(u)})}),destroy:function(){d(),y=!0}};if(!jt(s,l))return p;p.setOptions(f).then(function(m){!y&&f.onFirstUpdate&&f.onFirstUpdate(m)});function h(){u.orderedModifiers.forEach(function(m){var b=m.name,O=m.options,S=O===void 0?{}:O,E=m.effect;if(typeof E=="function"){var N=E({state:u,name:b,instance:p,options:S}),T=function(){};v.push(N||T)}})}function d(){v.forEach(function(m){return m()}),v=[]}return p}}var Pe={passive:!0};function io(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,c=o.resize,s=c===void 0?!0:c,l=j(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(u){u.addEventListener("scroll",n.update,Pe)}),s&&l.addEventListener("resize",n.update,Pe),function(){i&&f.forEach(function(u){u.removeEventListener("scroll",n.update,Pe)}),s&&l.removeEventListener("resize",n.update,Pe)}}var lo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:io,data:{}};function so(e){var t=e.state,n=e.name;t.modifiersData[n]=oo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var co={name:"popperOffsets",enabled:!0,phase:"read",fn:so,data:{}},uo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fo(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:ce(t*a)/a||0,y:ce(n*a)/a||0}}function At(e){var t,n=e.popper,o=e.popperRect,a=e.placement,i=e.variation,c=e.offsets,s=e.position,l=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,v=e.isFixed,y=c.x,p=y===void 0?0:y,h=c.y,d=h===void 0?0:h,m=typeof u=="function"?u({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var b=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),S=Be,E=Ve,N=window;if(f){var T=Mt(n),ue="clientHeight",Re="clientWidth";if(T===j(n)&&(T=Ee(n),J(T).position!=="static"&&s==="absolute"&&(ue="scrollHeight",Re="scrollWidth")),T=T,a===Ve||(a===Be||a===Xe)&&i===Ye){E=Ge;var Je=v&&N.visualViewport?N.visualViewport.height:T[ue];d-=Je-o.height,d*=l?1:-1}if(a===Be||(a===Ve||a===Ge)&&i===Ye){S=Xe;var Te=v&&N.visualViewport?N.visualViewport.width:T[Re];p-=Te-o.width,p*=l?1:-1}}var zt=Object.assign({position:s},f&&uo),_t=u===!0?fo({x:p,y:d}):{x:p,y:d};if(p=_t.x,d=_t.y,l){var ve;return Object.assign({},zt,(ve={},ve[E]=O?"0":"",ve[S]=b?"0":"",ve.transform=(N.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",ve))}return Object.assign({},zt,(t={},t[E]=O?d+"px":"",t[S]=b?p+"px":"",t.transform="",t))}function po(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,i=n.adaptive,c=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,f={placement:$t(t.placement),variation:Lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,At(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,At(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var mo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:po,data:{}};function ho(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!L(i)||!F(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(c){var s=a[c];s===!1?i.removeAttribute(c):i.setAttribute(c,s===!0?"":s)}))})}function bo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],i=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=c.reduce(function(l,f){return l[f]="",l},{});!L(a)||!F(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var go={name:"applyStyles",enabled:!0,phase:"write",fn:ho,effect:bo,requires:["computeStyles"]},vo=[lo,co,mo,go],yo=ao({defaultModifiers:vo});function xo(e){const t=r.ref(null),n=r.ref(null);return r.onMounted(()=>{r.watchEffect(o=>{if(!n.value||!t.value)return;const a=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(a instanceof HTMLElement))return;const{destroy:c}=yo(i,a,e);o(c)})}),[t,n]}const wo=r.defineComponent({props:{position:{default:"left"},usePortal:{type:[Boolean,String],default:!1}},setup(e){const n=e.position==="left"?"bottom-end":"bottom-start",[o,a]=xo({placement:n});return(i,c)=>(r.openBlock(),r.createBlock(r.unref(Ir),{as:"div",class:"relative inline-block text-left"},{default:r.withCtx(()=>[r.createVNode(r.unref(Vr),{class:"focus:outline-none",ref_key:"button",ref:o},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"button",{},()=>[r.createVNode(r.unref(D),{class:"fill-current",name:"ellipsis-h"})])]),_:3},512),(r.openBlock(),r.createBlock(r.Teleport,{to:typeof e.usePortal=="string"?e.usePortal:"body",disabled:!e.usePortal},[r.createElementVNode("div",{ref_key:"container",ref:a,class:"w-56"},[r.createVNode(r.Transition,{"enter-active-class":"transition duration-200 ease-in-out","enter-from-class":"transform -translate-y-4 opacity-0","enter-to-class":"transform opacity-100","leave-active-class":"transition duration-100 ease-in-out","leave-from-class":"transform opacity-100","leave-to-class":"transform -translate-y-2 opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(Br),{class:r.normalizeClass([{"absolute left-0 origin-top-left":!e.usePortal&&e.position==="right","absolute right-0 origin-top-right":!e.usePortal&&e.position==="left"},"z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"])},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["class"])]),_:3})],512)],8,["to","disabled"]))]),_:3}))}}),ko={key:0,class:"bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"},Co=r.defineComponent({props:{label:null,meta:null,disabled:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(Pr),r.normalizeProps(r.guardReactiveProps({disabled:e.disabled})),{default:r.withCtx(({active:o})=>[r.createElementVNode("span",r.mergeProps({class:["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg",[o?"bg-grey-200":"",e.disabled?"opacity-50 pointer-events-none":"hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"]]},t.$attrs),[r.createElementVNode("span",null,r.toDisplayString(e.label),1),e.meta?(r.openBlock(),r.createElementBlock("span",ko,r.toDisplayString(e.meta),1)):r.createCommentVNode("",!0)],16)]),_:1},16))}}),So={class:"relative"},Oo={key:0,class:"absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Eo={key:1,class:"block truncate"},Io={key:2,class:"text-grey-500 truncate"},Vo={class:"absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Bo=r.defineComponent({props:{modelValue:null,size:{default:"medium"},icon:null,placeholder:null,isDisabled:{type:Boolean,default:!1},options:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=n.modelValue?r.ref(n.modelValue):r.ref(null),{inputClasses:a,disabledClasses:i,textSizeClasses:c}=vt(n);return r.watch(()=>n.modelValue,s=>{var l;!s||s.id!==((l=o.value)==null?void 0:l.id)&&(o.value=s)}),r.watch(o,s=>{s&&t("update:modelValue",s)}),(s,l)=>(r.openBlock(),r.createBlock(r.unref(wr),{as:"div",modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=f=>r.isRef(o)?o.value=f:null),disabled:e.isDisabled},{default:r.withCtx(()=>[r.createElementVNode("div",So,[r.createVNode(r.unref(kr),{class:r.normalizeClass(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left",[r.unref(a),r.unref(c),r.unref(i)]])},{default:r.withCtx(()=>{var f,u;return[e.icon?(r.openBlock(),r.createElementBlock("span",Oo,[r.createVNode(D,{name:(u=(f=r.unref(o))==null?void 0:f.icon)!=null?u:e.icon},null,8,["name"])])):r.createCommentVNode("",!0),r.unref(o)?(r.openBlock(),r.createElementBlock("span",Eo,r.toDisplayString(r.unref(o).label),1)):(r.openBlock(),r.createElementBlock("span",Io,r.toDisplayString(e.placeholder),1)),r.createElementVNode("span",Vo,[r.createVNode(D,{class:"text-grey-400",name:"chevron-down","aria-hidden":"true"})])]}),_:1},8,["class"]),r.createVNode(r.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(Cr),{class:"absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,f=>(r.openBlock(),r.createBlock(r.unref(Sr),{as:"template",key:f.id,value:f},{default:r.withCtx(({active:u,selected:v})=>[r.createElementVNode("li",{class:r.normalizeClass([u?"text-white bg-blue-500":"text-grey-900 dark:text-grey-50","cursor-default select-none relative py-2 pl-3 pr-9"])},[r.createElementVNode("span",{class:r.normalizeClass([v?"font-semibold":"font-normal","block truncate"])},[f.icon?(r.openBlock(),r.createBlock(D,{key:0,class:"inline-block mr-1",name:f.icon},null,8,["name"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(f.label),1)],2),v?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([u?"text-blue-100":"text-blue-500","absolute inset-y-0 right-0 flex items-center pr-4"])},[r.createVNode(D,{name:"check",class:"h-5 w-5","aria-hidden":"true"})],2)):r.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue","disabled"]))}}),Po={class:"sr-only"},Ro=r.defineComponent({props:{id:{default:Ze()},label:null,modelValue:{type:Boolean},description:null,onLabel:{default:"on"},offLabel:{default:"off"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=o=>{t("update:modelValue",o),t("change",o)};return(o,a)=>(r.openBlock(),r.createBlock(r.unref(Tr),{modelValue:e.modelValue,label:e.label,class:r.normalizeClass([e.modelValue?"bg-blue-700":"bg-grey-700","relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),"onUpdate:modelValue":n},{default:r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(["absolute text-xs text-center text-white inset-x-2",e.modelValue?"pr-3":"pl-3"])},r.toDisplayString(e.modelValue===!0?e.onLabel:e.offLabel),3),r.createElementVNode("span",Po,r.toDisplayString(e.label),1),r.createElementVNode("span",{class:r.normalizeClass([e.modelValue?"translate-x-9":"translate-x-1","inline-block w-4 h-4 transition bg-white rounded-full"])},null,2)]),_:1},8,["modelValue","label","class"]))}}),To={class:"animate-pulse"},Do={class:"flex items-center justify-between space-x-4"},Mo={key:0,class:"w-12 h-12 bg-current rounded-full shrink-0"},$o={key:1,class:"w-full h-8 bg-current rounded-lg"},Lo={key:0,class:"mt-6 space-y-2"},No={key:1,class:"w-1/3 h-10 mt-6 bg-current rounded-lg"},jo=r.defineComponent({props:{avatar:{type:Boolean,default:!1},title:{type:Boolean,default:!0},lines:{default:3},footer:{type:Boolean,default:!1}},setup(e){const t=e,n=new Array(t.lines).fill(void 0).map(()=>{const o=[4,5,6,8,10,16,24,32];return{margin:`mr-${o[Math.floor(Math.random()*o.length)]}`}});return(o,a)=>(r.openBlock(),r.createElementBlock("div",To,[r.createElementVNode("div",Do,[e.avatar?(r.openBlock(),r.createElementBlock("div",Mo)):r.createCommentVNode("",!0),e.title?(r.openBlock(),r.createElementBlock("div",$o)):r.createCommentVNode("",!0)]),e.lines>0?(r.openBlock(),r.createElementBlock("div",Lo,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n),(i,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["h-4 bg-current rounded-lg",i.margin]),key:c},null,2))),128))])):r.createCommentVNode("",!0),e.footer?(r.openBlock(),r.createElementBlock("div",No)):r.createCommentVNode("",!0)]))}}),Ao=r.defineComponent({setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(D),{class:"animate-spin",name:"circle-notch"}))}});w.D9Button=en,w.D9Checkbox=pn,w.D9Icon=D,w.D9Input=cr,w.D9Label=pr,w.D9Menu=wo,w.D9MenuLink=Co,w.D9Select=Bo,w.D9Skeleton=jo,w.D9Spinner=Ao,w.D9Switch=Ro,w.brands=Me,w.icons=Qe,Object.defineProperty(w,"__esModule",{value:!0}),w[Symbol.toStringTag]="Module"});
|
|
9
|
+
`));return r.cloneVNode(g,l)}return Array.isArray(f)&&f.length===1?f[0]:f}return r.h(s,l,f)}function wt(e,t){t===void 0&&(t=[]);for(var n=Object.assign({},e),o=pr(t),a;!(a=o()).done;){var i=a.value;i in n&&delete n[i]}return n}function mr(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var y;(function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"})(y||(y={}));var hr=0;function br(){return++hr}function Y(){return br()}function kt(e,t,n){typeof window!="undefined"&&r.watchEffect(function(o){window.addEventListener(e,t,n),o(function(){window.removeEventListener(e,t,n)})})}function k(e){var t;return e==null||e.value==null?null:(t=e.value.$el)!=null?t:e.value}var Ct=Symbol("Context"),q;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(q||(q={}));function St(){return r.inject(Ct,null)}function Ot(e){r.provide(Ct,e)}function Et(e,t){if(e)return e;var n=t!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function We(e,t){var n=r.ref(Et(e.value.type,e.value.as));return r.onMounted(function(){n.value=Et(e.value.type,e.value.as)}),r.watchEffect(function(){var o;n.value||!k(t)||k(t)instanceof HTMLButtonElement&&!((o=k(t))==null?void 0:o.hasAttribute("type"))&&(n.value="button")}),n}function gr(e){throw new Error("Unexpected object: "+e)}var w;(function(e){e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing"})(w||(w={}));function It(e,t){var n=t.resolveItems();if(n.length<=0)return null;var o=t.resolveActiveIndex(),a=o!=null?o:-1,i=function(){switch(e.focus){case w.First:return n.findIndex(function(l){return!t.resolveDisabled(l)});case w.Previous:{var c=n.slice().reverse().findIndex(function(l,f,u){return a!==-1&&u.length-f-1>=a?!1:!t.resolveDisabled(l)});return c===-1?c:n.length-1-c}case w.Next:return n.findIndex(function(l,f){return f<=a?!1:!t.resolveDisabled(l)});case w.Last:{var s=n.slice().reverse().findIndex(function(l){return!t.resolveDisabled(l)});return s===-1?s:n.length-1-s}case w.Specific:return n.findIndex(function(l){return t.resolveId(l)===e.id});case w.Nothing:return null;default:gr(e)}}();return i===-1?o:i}var E;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(E||(E={}));function vr(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})}var Vt=Symbol("ListboxContext");function ie(e){var t=r.inject(Vt,null);if(t===null){var n=new Error("<"+e+" /> is missing a parent <Listbox /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,ie),n}return t}var yr=r.defineComponent({name:"Listbox",emits:{"update:modelValue":function(t){return!0}},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean]}},setup:function(t,n){var o=n.slots,a=n.attrs,i=n.emit,c=r.ref(E.Closed),s=r.ref(null),l=r.ref(null),f=r.ref(null),u=r.ref([]),g=r.ref(""),v=r.ref(null),p=r.computed(function(){return t.modelValue}),h={listboxState:c,value:p,orientation:r.computed(function(){return t.horizontal?"horizontal":"vertical"}),labelRef:s,buttonRef:l,optionsRef:f,disabled:r.computed(function(){return t.disabled}),options:u,searchQuery:g,activeOptionIndex:v,closeListbox:function(){t.disabled||c.value!==E.Closed&&(c.value=E.Closed,v.value=null)},openListbox:function(){t.disabled||c.value!==E.Open&&(c.value=E.Open)},goToOption:function(m,b){if(!t.disabled&&c.value!==E.Closed){var S=It(m===w.Specific?{focus:w.Specific,id:b}:{focus:m},{resolveItems:function(){return u.value},resolveActiveIndex:function(){return v.value},resolveId:function(O){return O.id},resolveDisabled:function(O){return O.dataRef.disabled}});g.value===""&&v.value===S||(g.value="",v.value=S)}},search:function(m){if(!t.disabled&&c.value!==E.Closed){g.value+=m.toLowerCase();var b=u.value.findIndex(function(S){return!S.dataRef.disabled&&S.dataRef.textValue.startsWith(g.value)});b===-1||b===v.value||(v.value=b)}},clearSearch:function(){t.disabled||c.value!==E.Closed&&g.value!==""&&(g.value="")},registerOption:function(m,b){u.value.push({id:m,dataRef:b})},unregisterOption:function(m){var b=u.value.slice(),S=v.value!==null?b[v.value]:null,C=b.findIndex(function(O){return O.id===m});C!==-1&&b.splice(C,1),u.value=b,v.value=function(){return C===v.value||S===null?null:b.indexOf(S)}()},select:function(m){t.disabled||i("update:modelValue",m)}};return kt("mousedown",function(d){var m,b,S,C=d.target,O=document.activeElement;c.value===E.Open&&(((m=k(l))==null?void 0:m.contains(C))||(((b=k(f))==null?void 0:b.contains(C))||h.closeListbox(),!(O!==document.body&&(O==null?void 0:O.contains(C)))&&(d.defaultPrevented||(S=k(l))==null||S.focus({preventScroll:!0}))))}),r.provide(Vt,h),Ot(r.computed(function(){var d;return oe(c.value,(d={},d[E.Open]=q.Open,d[E.Closed]=q.Closed,d))})),function(){var d={open:c.value===E.Open,disabled:t.disabled};return _({props:wt(t,["modelValue","onUpdate:modelValue","disabled","horizontal"]),slot:d,slots:o,attrs:a,name:"Listbox"})}}}),xr=r.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"}},render:function(){var t,n,o=ie("ListboxButton"),a={open:o.listboxState.value===E.Open,disabled:o.disabled.value},i={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(t=k(o.optionsRef))==null?void 0:t.id,"aria-expanded":o.disabled.value?void 0:o.listboxState.value===E.Open,"aria-labelledby":o.labelRef.value?[(n=k(o.labelRef))==null?void 0:n.id,this.id].join(" "):void 0,disabled:o.disabled.value===!0?!0:void 0,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return _({props:$({},this.$props,i),slot:a,attrs:this.$attrs,slots:this.$slots,name:"ListboxButton"})},setup:function(t,n){var o=n.attrs,a=ie("ListboxButton"),i="headlessui-listbox-button-"+Y();function c(f){switch(f.key){case y.Space:case y.Enter:case y.ArrowDown:f.preventDefault(),a.openListbox(),r.nextTick(function(){var u;(u=k(a.optionsRef))==null||u.focus({preventScroll:!0}),a.value.value||a.goToOption(w.First)});break;case y.ArrowUp:f.preventDefault(),a.openListbox(),r.nextTick(function(){var u;(u=k(a.optionsRef))==null||u.focus({preventScroll:!0}),a.value.value||a.goToOption(w.Last)});break}}function s(f){switch(f.key){case y.Space:f.preventDefault();break}}function l(f){a.disabled.value||(a.listboxState.value===E.Open?(a.closeListbox(),r.nextTick(function(){var u;return(u=k(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(f.preventDefault(),a.openListbox(),vr(function(){var u;return(u=k(a.optionsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:We(r.computed(function(){return{as:t.as,type:o.type}}),a.buttonRef),handleKeyDown:c,handleKeyUp:s,handleClick:l}}}),wr=r.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var t,n,o,a,i=ie("ListboxOptions"),c={open:i.listboxState.value===E.Open},s={"aria-activedescendant":i.activeOptionIndex.value===null||(t=i.options.value[i.activeOptionIndex.value])==null?void 0:t.id,"aria-labelledby":(n=(o=k(i.labelRef))==null?void 0:o.id)!=null?n:(a=k(i.buttonRef))==null?void 0:a.id,"aria-orientation":i.orientation.value,id:this.id,onKeydown:this.handleKeyDown,role:"listbox",tabIndex:0,ref:"el"},l=this.$props;return _({props:$({},l,s),slot:c,attrs:this.$attrs,slots:this.$slots,features:z.RenderStrategy|z.Static,visible:this.visible,name:"ListboxOptions"})},setup:function(){var t=ie("ListboxOptions"),n="headlessui-listbox-options-"+Y(),o=r.ref(null);function a(s){switch(o.value&&clearTimeout(o.value),s.key){case y.Space:if(t.searchQuery.value!=="")return s.preventDefault(),s.stopPropagation(),t.search(s.key);case y.Enter:if(s.preventDefault(),s.stopPropagation(),t.activeOptionIndex.value!==null){var l=t.options.value[t.activeOptionIndex.value].dataRef;t.select(l.value)}t.closeListbox(),r.nextTick(function(){var f;return(f=k(t.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case oe(t.orientation.value,{vertical:y.ArrowDown,horizontal:y.ArrowRight}):return s.preventDefault(),s.stopPropagation(),t.goToOption(w.Next);case oe(t.orientation.value,{vertical:y.ArrowUp,horizontal:y.ArrowLeft}):return s.preventDefault(),s.stopPropagation(),t.goToOption(w.Previous);case y.Home:case y.PageUp:return s.preventDefault(),s.stopPropagation(),t.goToOption(w.First);case y.End:case y.PageDown:return s.preventDefault(),s.stopPropagation(),t.goToOption(w.Last);case y.Escape:s.preventDefault(),s.stopPropagation(),t.closeListbox(),r.nextTick(function(){var f;return(f=k(t.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case y.Tab:s.preventDefault(),s.stopPropagation();break;default:s.key.length===1&&(t.search(s.key),o.value=setTimeout(function(){return t.clearSearch()},350));break}}var i=St(),c=r.computed(function(){return i!==null?i.value===q.Open:t.listboxState.value===E.Open});return{id:n,el:t.optionsRef,handleKeyDown:a,visible:c}}}),kr=r.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1}},setup:function(t,n){var o=n.slots,a=n.attrs,i=ie("ListboxOption"),c="headlessui-listbox-option-"+Y(),s=r.computed(function(){return i.activeOptionIndex.value!==null?i.options.value[i.activeOptionIndex.value].id===c:!1}),l=r.computed(function(){return r.toRaw(i.value.value)===r.toRaw(t.value)}),f=r.ref({disabled:t.disabled,value:t.value,textValue:""});r.onMounted(function(){var h,d,m=(h=document.getElementById(c))==null||(d=h.textContent)==null?void 0:d.toLowerCase().trim();m!==void 0&&(f.value.textValue=m)}),r.onMounted(function(){return i.registerOption(c,f)}),r.onUnmounted(function(){return i.unregisterOption(c)}),r.onMounted(function(){r.watch([i.listboxState,l],function(){var h;i.listboxState.value===E.Open&&(!l.value||(i.goToOption(w.Specific,c),(h=document.getElementById(c))==null||h.focus==null||h.focus()))},{immediate:!0})}),r.watchEffect(function(){i.listboxState.value===E.Open&&(!s.value||r.nextTick(function(){var h;return(h=document.getElementById(c))==null||h.scrollIntoView==null?void 0:h.scrollIntoView({block:"nearest"})}))});function u(h){if(t.disabled)return h.preventDefault();i.select(t.value),i.closeListbox(),r.nextTick(function(){var d;return(d=k(i.buttonRef))==null?void 0:d.focus({preventScroll:!0})})}function g(){if(t.disabled)return i.goToOption(w.Nothing);i.goToOption(w.Specific,c)}function v(){t.disabled||s.value||i.goToOption(w.Specific,c)}function p(){t.disabled||!s.value||i.goToOption(w.Nothing)}return function(){var h=t.disabled,d={active:s.value,selected:l.value,disabled:h},m={id:c,role:"option",tabIndex:h===!0?void 0:-1,"aria-disabled":h===!0?!0:void 0,"aria-selected":l.value===!0?l.value:void 0,disabled:void 0,onClick:u,onFocus:g,onPointermove:v,onMousemove:v,onPointerleave:p,onMouseleave:p};return _({props:$({},t,m),slot:d,attrs:a,slots:o,name:"ListboxOption"})}}});function Cr(e){var t=e.container,n=e.accept,o=e.walk,a=e.enabled;r.watchEffect(function(){var i=t.value;if(!!i&&!(a!==void 0&&!a.value))for(var c=Object.assign(function(l){return n(l)},{acceptNode:n}),s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,c,!1);s.nextNode();)o(s.currentNode)})}var V;(function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"})(V||(V={}));function Sr(e){requestAnimationFrame(function(){return requestAnimationFrame(e)})}var Bt=Symbol("MenuContext");function le(e){var t=r.inject(Bt,null);if(t===null){var n=new Error("<"+e+" /> is missing a parent <Menu /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,le),n}return t}var Or=r.defineComponent({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup:function(t,n){var o=n.slots,a=n.attrs,i=r.ref(V.Closed),c=r.ref(null),s=r.ref(null),l=r.ref([]),f=r.ref(""),u=r.ref(null),g={menuState:i,buttonRef:c,itemsRef:s,items:l,searchQuery:f,activeItemIndex:u,closeMenu:function(){i.value=V.Closed,u.value=null},openMenu:function(){return i.value=V.Open},goToItem:function(p,h){var d=It(p===w.Specific?{focus:w.Specific,id:h}:{focus:p},{resolveItems:function(){return l.value},resolveActiveIndex:function(){return u.value},resolveId:function(b){return b.id},resolveDisabled:function(b){return b.dataRef.disabled}});f.value===""&&u.value===d||(f.value="",u.value=d)},search:function(p){f.value+=p.toLowerCase();var h=l.value.findIndex(function(d){return d.dataRef.textValue.startsWith(f.value)&&!d.dataRef.disabled});h===-1||h===u.value||(u.value=h)},clearSearch:function(){f.value=""},registerItem:function(p,h){l.value.push({id:p,dataRef:h})},unregisterItem:function(p){var h=l.value.slice(),d=u.value!==null?h[u.value]:null,m=h.findIndex(function(b){return b.id===p});m!==-1&&h.splice(m,1),l.value=h,u.value=function(){return m===u.value||d===null?null:h.indexOf(d)}()}};return kt("mousedown",function(v){var p,h,d,m=v.target,b=document.activeElement;i.value===V.Open&&(((p=k(c))==null?void 0:p.contains(m))||(((h=k(s))==null?void 0:h.contains(m))||g.closeMenu(),!(b!==document.body&&(b==null?void 0:b.contains(m)))&&(v.defaultPrevented||(d=k(c))==null||d.focus({preventScroll:!0}))))}),r.provide(Bt,g),Ot(r.computed(function(){var v;return oe(i.value,(v={},v[V.Open]=q.Open,v[V.Closed]=q.Closed,v))})),function(){var v={open:i.value===V.Open};return _({props:t,slot:v,slots:o,attrs:a,name:"Menu"})}}}),Er=r.defineComponent({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"}},render:function(){var t,n=le("MenuButton"),o={open:n.menuState.value===V.Open},a={ref:"el",id:this.id,type:this.type,"aria-haspopup":!0,"aria-controls":(t=k(n.itemsRef))==null?void 0:t.id,"aria-expanded":this.$props.disabled?void 0:n.menuState.value===V.Open,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onClick:this.handleClick};return _({props:$({},this.$props,a),slot:o,attrs:this.$attrs,slots:this.$slots,name:"MenuButton"})},setup:function(t,n){var o=n.attrs,a=le("MenuButton"),i="headlessui-menu-button-"+Y();function c(f){switch(f.key){case y.Space:case y.Enter:case y.ArrowDown:f.preventDefault(),f.stopPropagation(),a.openMenu(),r.nextTick(function(){var u;(u=k(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(w.First)});break;case y.ArrowUp:f.preventDefault(),f.stopPropagation(),a.openMenu(),r.nextTick(function(){var u;(u=k(a.itemsRef))==null||u.focus({preventScroll:!0}),a.goToItem(w.Last)});break}}function s(f){switch(f.key){case y.Space:f.preventDefault();break}}function l(f){t.disabled||(a.menuState.value===V.Open?(a.closeMenu(),r.nextTick(function(){var u;return(u=k(a.buttonRef))==null?void 0:u.focus({preventScroll:!0})})):(f.preventDefault(),f.stopPropagation(),a.openMenu(),Sr(function(){var u;return(u=k(a.itemsRef))==null?void 0:u.focus({preventScroll:!0})})))}return{id:i,el:a.buttonRef,type:We(r.computed(function(){return{as:t.as,type:o.type}}),a.buttonRef),handleKeyDown:c,handleKeyUp:s,handleClick:l}}}),Ir=r.defineComponent({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},render:function(){var t,n,o=le("MenuItems"),a={open:o.menuState.value===V.Open},i={"aria-activedescendant":o.activeItemIndex.value===null||(t=o.items.value[o.activeItemIndex.value])==null?void 0:t.id,"aria-labelledby":(n=k(o.buttonRef))==null?void 0:n.id,id:this.id,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,role:"menu",tabIndex:0,ref:"el"},c=this.$props;return _({props:$({},c,i),slot:a,attrs:this.$attrs,slots:this.$slots,features:z.RenderStrategy|z.Static,visible:this.visible,name:"MenuItems"})},setup:function(){var t=le("MenuItems"),n="headlessui-menu-items-"+Y(),o=r.ref(null);Cr({container:r.computed(function(){return k(t.itemsRef)}),enabled:r.computed(function(){return t.menuState.value===V.Open}),accept:function(f){return f.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk:function(f){f.setAttribute("role","none")}});function a(l){switch(o.value&&clearTimeout(o.value),l.key){case y.Space:if(t.searchQuery.value!=="")return l.preventDefault(),l.stopPropagation(),t.search(l.key);case y.Enter:if(l.preventDefault(),l.stopPropagation(),t.activeItemIndex.value!==null){var f,u=t.items.value[t.activeItemIndex.value].id;(f=document.getElementById(u))==null||f.click()}t.closeMenu(),r.nextTick(function(){var g;return(g=k(t.buttonRef))==null?void 0:g.focus({preventScroll:!0})});break;case y.ArrowDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(w.Next);case y.ArrowUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(w.Previous);case y.Home:case y.PageUp:return l.preventDefault(),l.stopPropagation(),t.goToItem(w.First);case y.End:case y.PageDown:return l.preventDefault(),l.stopPropagation(),t.goToItem(w.Last);case y.Escape:l.preventDefault(),l.stopPropagation(),t.closeMenu(),r.nextTick(function(){var g;return(g=k(t.buttonRef))==null?void 0:g.focus({preventScroll:!0})});break;case y.Tab:l.preventDefault(),l.stopPropagation();break;default:l.key.length===1&&(t.search(l.key),o.value=setTimeout(function(){return t.clearSearch()},350));break}}function i(l){switch(l.key){case y.Space:l.preventDefault();break}}var c=St(),s=r.computed(function(){return c!==null?c.value===q.Open:t.menuState.value===V.Open});return{id:n,el:t.itemsRef,handleKeyDown:a,handleKeyUp:i,visible:s}}}),Vr=r.defineComponent({name:"MenuItem",props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1}},setup:function(t,n){var o=n.slots,a=n.attrs,i=le("MenuItem"),c="headlessui-menu-item-"+Y(),s=r.computed(function(){return i.activeItemIndex.value!==null?i.items.value[i.activeItemIndex.value].id===c:!1}),l=r.ref({disabled:t.disabled,textValue:""});r.onMounted(function(){var p,h,d=(p=document.getElementById(c))==null||(h=p.textContent)==null?void 0:h.toLowerCase().trim();d!==void 0&&(l.value.textValue=d)}),r.onMounted(function(){return i.registerItem(c,l)}),r.onUnmounted(function(){return i.unregisterItem(c)}),r.watchEffect(function(){i.menuState.value===V.Open&&(!s.value||r.nextTick(function(){var p;return(p=document.getElementById(c))==null||p.scrollIntoView==null?void 0:p.scrollIntoView({block:"nearest"})}))});function f(p){if(t.disabled)return p.preventDefault();i.closeMenu(),r.nextTick(function(){var h;return(h=k(i.buttonRef))==null?void 0:h.focus({preventScroll:!0})})}function u(){if(t.disabled)return i.goToItem(w.Nothing);i.goToItem(w.Specific,c)}function g(){t.disabled||s.value||i.goToItem(w.Specific,c)}function v(){t.disabled||!s.value||i.goToItem(w.Nothing)}return function(){var p=t.disabled,h={active:s.value,disabled:p},d={id:c,role:"menuitem",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,onClick:f,onFocus:u,onPointermove:g,onMousemove:g,onPointerleave:v,onMouseleave:v};return _({props:$({},t,d),slot:h,attrs:a,slots:o,name:"MenuItem"})}}}),Br=Symbol("GroupContext"),Dr=r.defineComponent({name:"Switch",emits:{"update:modelValue":function(t){return!0}},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:!1}},render:function(){var t={checked:this.$props.modelValue},n={id:this.id,ref:"el",role:"switch",type:this.type,tabIndex:0,"aria-checked":this.$props.modelValue,"aria-labelledby":this.labelledby,"aria-describedby":this.describedby,onClick:this.handleClick,onKeyup:this.handleKeyUp,onKeypress:this.handleKeyPress};return _({props:$({},this.$props,n),slot:t,attrs:this.$attrs,slots:this.$slots,name:"Switch"})},setup:function(t,n){var o=n.emit,a=n.attrs,i=r.inject(Br,null),c="headlessui-switch-"+Y();function s(){o("update:modelValue",!t.modelValue)}var l=r.ref(null),f=i===null?l:i.switchRef;return{id:c,el:f,type:We(r.computed(function(){return{as:t.as,type:a.type}}),f),labelledby:i==null?void 0:i.labelledby,describedby:i==null?void 0:i.describedby,handleClick:function(g){g.preventDefault(),s()},handleKeyUp:function(g){g.key!==y.Tab&&g.preventDefault(),g.key===y.Space&&s()},handleKeyPress:function(g){g.preventDefault()}}}});function N(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dt(e){var t=N(e).Element;return e instanceof t||e instanceof Element}function M(e){var t=N(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Rr(e){if(typeof ShadowRoot=="undefined")return!1;var t=N(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var se=Math.round;function Oe(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(M(e)&&t){var i=e.offsetHeight,c=e.offsetWidth;c>0&&(o=se(n.width)/c||1),i>0&&(a=se(n.height)/i||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Rt(e){var t=N(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Tr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pr(e){return e===N(e)||!M(e)?Rt(e):Tr(e)}function U(e){return e?(e.nodeName||"").toLowerCase():null}function Ee(e){return((Dt(e)?e.ownerDocument:e.document)||window.document).documentElement}function $r(e){return Oe(Ee(e)).left+Rt(e).scrollLeft}function G(e){return N(e).getComputedStyle(e)}function Ke(e){var t=G(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Mr(e){var t=e.getBoundingClientRect(),n=se(t.width)/e.offsetWidth||1,o=se(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Lr(e,t,n){n===void 0&&(n=!1);var o=M(t),a=M(t)&&Mr(t),i=Ee(t),c=Oe(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((U(t)!=="body"||Ke(i))&&(s=Pr(t)),M(t)?(l=Oe(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=$r(i))),{x:c.left+s.scrollLeft-l.x,y:c.top+s.scrollTop-l.y,width:c.width,height:c.height}}function Nr(e){var t=Oe(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function qe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(Rr(e)?e.host:null)||Ee(e)}function Tt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:M(e)&&Ke(e)?e:Tt(qe(e))}function Ie(e,t){var n;t===void 0&&(t=[]);var o=Tt(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=N(o),c=a?[i].concat(i.visualViewport||[],Ke(o)?o:[]):o,s=t.concat(c);return a?s:s.concat(Ie(qe(c)))}function jr(e){return["table","td","th"].indexOf(U(e))>=0}function Pt(e){return!M(e)||G(e).position==="fixed"?null:e.offsetParent}function Ar(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&M(e)){var o=G(e);if(o.position==="fixed")return null}for(var a=qe(e);M(a)&&["html","body"].indexOf(U(a))<0;){var i=G(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function $t(e){for(var t=N(e),n=Pt(e);n&&jr(n)&&G(n).position==="static";)n=Pt(n);return n&&(U(n)==="html"||U(n)==="body"&&G(n).position==="static")?t:n||Ar(e)||t}var Ve="top",Xe="bottom",Ye="right",Be="left",zr="start",Ge="end",_r="beforeRead",Ur="read",Fr="afterRead",Hr="beforeMain",Wr="main",Kr="afterMain",qr="beforeWrite",Xr="write",Yr="afterWrite",Gr=[_r,Ur,Fr,Hr,Wr,Kr,qr,Xr,Yr];function Jr(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var c=[].concat(i.requires||[],i.requiresIfExists||[]);c.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),o}function Qr(e){var t=Jr(e);return Gr.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function Zr(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Mt(e){return e.split("-")[0]}function eo(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}function Lt(e){return e.split("-")[1]}function to(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function no(e){var t=e.reference,n=e.element,o=e.placement,a=o?Mt(o):null,i=o?Lt(o):null,c=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Ve:l={x:c,y:t.y-n.height};break;case Xe:l={x:c,y:t.y+t.height};break;case Ye:l={x:t.x+t.width,y:s};break;case Be:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var f=a?to(a):null;if(f!=null){var u=f==="y"?"height":"width";switch(i){case zr:l[f]=l[f]-(t[u]/2-n[u]/2);break;case Ge:l[f]=l[f]+(t[u]/2-n[u]/2);break}}return l}var Nt={placement:"bottom",modifiers:[],strategy:"absolute"};function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ro(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Nt:a;return function(s,l,f){f===void 0&&(f=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nt,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},g=[],v=!1,p={state:u,setOptions:function(b){var S=typeof b=="function"?b(u.options):b;d(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:Dt(s)?Ie(s):s.contextElement?Ie(s.contextElement):[],popper:Ie(l)};var C=Qr(eo([].concat(o,u.options.modifiers)));return u.orderedModifiers=C.filter(function(O){return O.enabled}),h(),p.update()},forceUpdate:function(){if(!v){var b=u.elements,S=b.reference,C=b.popper;if(!!jt(S,C)){u.rects={reference:Lr(S,$t(C),u.options.strategy==="fixed"),popper:Nr(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Te){return u.modifiersData[Te.name]=Object.assign({},Te.data)});for(var O=0;O<u.orderedModifiers.length;O++){if(u.reset===!0){u.reset=!1,O=-1;continue}var L=u.orderedModifiers[O],R=L.fn,ce=L.options,Re=ce===void 0?{}:ce,Je=L.name;typeof R=="function"&&(u=R({state:u,options:Re,name:Je,instance:p})||u)}}}},update:Zr(function(){return new Promise(function(m){p.forceUpdate(),m(u)})}),destroy:function(){d(),v=!0}};if(!jt(s,l))return p;p.setOptions(f).then(function(m){!v&&f.onFirstUpdate&&f.onFirstUpdate(m)});function h(){u.orderedModifiers.forEach(function(m){var b=m.name,S=m.options,C=S===void 0?{}:S,O=m.effect;if(typeof O=="function"){var L=O({state:u,name:b,instance:p,options:C}),R=function(){};g.push(L||R)}})}function d(){g.forEach(function(m){return m()}),g=[]}return p}}var De={passive:!0};function oo(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,i=a===void 0?!0:a,c=o.resize,s=c===void 0?!0:c,l=N(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(u){u.addEventListener("scroll",n.update,De)}),s&&l.addEventListener("resize",n.update,De),function(){i&&f.forEach(function(u){u.removeEventListener("scroll",n.update,De)}),s&&l.removeEventListener("resize",n.update,De)}}var ao={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oo,data:{}};function io(e){var t=e.state,n=e.name;t.modifiersData[n]=no({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var lo={name:"popperOffsets",enabled:!0,phase:"read",fn:io,data:{}},so={top:"auto",right:"auto",bottom:"auto",left:"auto"};function co(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:se(t*a)/a||0,y:se(n*a)/a||0}}function At(e){var t,n=e.popper,o=e.popperRect,a=e.placement,i=e.variation,c=e.offsets,s=e.position,l=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,g=e.isFixed,v=c.x,p=v===void 0?0:v,h=c.y,d=h===void 0?0:h,m=typeof u=="function"?u({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var b=c.hasOwnProperty("x"),S=c.hasOwnProperty("y"),C=Be,O=Ve,L=window;if(f){var R=$t(n),ce="clientHeight",Re="clientWidth";if(R===N(n)&&(R=Ee(n),G(R).position!=="static"&&s==="absolute"&&(ce="scrollHeight",Re="scrollWidth")),R=R,a===Ve||(a===Be||a===Ye)&&i===Ge){O=Xe;var Je=g&&L.visualViewport?L.visualViewport.height:R[ce];d-=Je-o.height,d*=l?1:-1}if(a===Be||(a===Ve||a===Xe)&&i===Ge){C=Ye;var Te=g&&L.visualViewport?L.visualViewport.width:R[Re];p-=Te-o.width,p*=l?1:-1}}var zt=Object.assign({position:s},f&&so),_t=u===!0?co({x:p,y:d}):{x:p,y:d};if(p=_t.x,d=_t.y,l){var ge;return Object.assign({},zt,(ge={},ge[O]=S?"0":"",ge[C]=b?"0":"",ge.transform=(L.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",ge))}return Object.assign({},zt,(t={},t[O]=S?d+"px":"",t[C]=b?p+"px":"",t.transform="",t))}function uo(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,i=n.adaptive,c=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,f={placement:Mt(t.placement),variation:Lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,At(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,At(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uo,data:{}};function po(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!M(i)||!U(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(c){var s=a[c];s===!1?i.removeAttribute(c):i.setAttribute(c,s===!0?"":s)}))})}function mo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],i=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=c.reduce(function(l,f){return l[f]="",l},{});!M(a)||!U(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var ho={name:"applyStyles",enabled:!0,phase:"write",fn:po,effect:mo,requires:["computeStyles"]},bo=[ao,lo,fo,ho],go=ro({defaultModifiers:bo});function vo(e){const t=r.ref(null),n=r.ref(null);return r.onMounted(()=>{r.watchEffect(o=>{if(!n.value||!t.value)return;const a=n.value.el||n.value,i=t.value.el||t.value;if(!(i instanceof HTMLElement)||!(a instanceof HTMLElement))return;const{destroy:c}=go(i,a,e);o(c)})}),[t,n]}const yo=r.defineComponent({props:{position:{default:"left"},usePortal:{type:[Boolean,String],default:!1}},setup(e){const n=e.position==="left"?"bottom-end":"bottom-start",[o,a]=vo({placement:n});return(i,c)=>(r.openBlock(),r.createBlock(r.unref(Or),{as:"div",class:"relative inline-block text-left"},{default:r.withCtx(()=>[r.createVNode(r.unref(Er),{class:"focus:outline-none",ref_key:"button",ref:o},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"button",{},()=>[r.createVNode(r.unref(T),{class:"fill-current",name:"ellipsis-h"})])]),_:3},512),(r.openBlock(),r.createBlock(r.Teleport,{to:typeof e.usePortal=="string"?e.usePortal:"body",disabled:!e.usePortal},[r.createElementVNode("div",{ref_key:"container",ref:a,class:"w-56"},[r.createVNode(r.Transition,{"enter-active-class":"transition duration-200 ease-in-out","enter-from-class":"transform -translate-y-4 opacity-0","enter-to-class":"transform opacity-100","leave-active-class":"transition duration-100 ease-in-out","leave-from-class":"transform opacity-100","leave-to-class":"transform -translate-y-2 opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ir),{class:r.normalizeClass([{"absolute left-0 origin-top-left":!e.usePortal&&e.position==="right","absolute right-0 origin-top-right":!e.usePortal&&e.position==="left"},"z-40 mt-1 p-1 bg-white rounded shadow-lg text-grey-700 focus:outline-none w-full"])},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["class"])]),_:3})],512)],8,["to","disabled"]))]),_:3}))}}),xo={key:0,class:"bg-grey-300 px-2 rounded-lg max-w-[66px] truncate"},wo=r.defineComponent({props:{label:null,meta:null,disabled:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(Vr),r.normalizeProps(r.guardReactiveProps({disabled:e.disabled})),{default:r.withCtx(({active:o})=>[r.createElementVNode("span",r.mergeProps({class:["flex items-center justify-between px-4 py-2 text-xs leading-5 transition-colors duration-100 rounded-lg",[o?"bg-grey-200":"",e.disabled?"opacity-50 pointer-events-none":"hover:bg-grey-200 focus:bg-grey-200 focus:outline-none"]]},t.$attrs),[r.createElementVNode("span",null,r.toDisplayString(e.label),1),e.meta?(r.openBlock(),r.createElementBlock("span",xo,r.toDisplayString(e.meta),1)):r.createCommentVNode("",!0)],16)]),_:1},16))}}),ko={class:"relative"},Co={key:0,class:"absolute left-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},So={key:1,class:"block truncate"},Oo={key:2,class:"text-grey-500 truncate"},Eo={class:"absolute right-0 inset-y-0 inline-flex items-center justify-center text-grey-700 dark:text-grey-100 px-4 pointer-events-none"},Io=r.defineComponent({props:{modelValue:null,size:{default:"medium"},icon:null,placeholder:null,isDisabled:{type:Boolean,default:!1},options:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=n.modelValue?r.ref(n.modelValue):r.ref(null),{inputClasses:a,disabledClasses:i,textSizeClasses:c}=He(n);return r.watch(()=>n.modelValue,s=>{var l;!s||s.id!==((l=o.value)==null?void 0:l.id)&&(o.value=s)}),r.watch(o,s=>{s&&t("update:modelValue",s)}),(s,l)=>(r.openBlock(),r.createBlock(r.unref(yr),{as:"div",modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=f=>r.isRef(o)?o.value=f:null),disabled:e.isDisabled},{default:r.withCtx(()=>[r.createElementVNode("div",ko,[r.createVNode(r.unref(xr),{class:r.normalizeClass(["w-full mono-50 bg-white text-grey-800 placeholder-grey-600 border border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder-grey-400 dark:border-grey-700 focus:ring-2 focus:border-blue-400 focus:ring-blue-400 focus:outline-none dark:focus:border-blue-800 dark:focus:ring-blue-800 cursor-default rounded font-normal text-left",[r.unref(a),r.unref(c),r.unref(i)]])},{default:r.withCtx(()=>{var f,u;return[e.icon?(r.openBlock(),r.createElementBlock("span",Co,[r.createVNode(T,{name:(u=(f=r.unref(o))==null?void 0:f.icon)!=null?u:e.icon},null,8,["name"])])):r.createCommentVNode("",!0),r.unref(o)?(r.openBlock(),r.createElementBlock("span",So,r.toDisplayString(r.unref(o).label),1)):(r.openBlock(),r.createElementBlock("span",Oo,r.toDisplayString(e.placeholder),1)),r.createElementVNode("span",Eo,[r.createVNode(T,{class:"text-grey-400",name:"chevron-down","aria-hidden":"true"})])]}),_:1},8,["class"]),r.createVNode(r.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:r.withCtx(()=>[r.createVNode(r.unref(wr),{class:"absolute z-10 mt-1 w-full bg-white dark:bg-grey-700 dark:text-grey-50 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,f=>(r.openBlock(),r.createBlock(r.unref(kr),{as:"template",key:f.id,value:f},{default:r.withCtx(({active:u,selected:g})=>[r.createElementVNode("li",{class:r.normalizeClass([u?"text-white bg-blue-500":"text-grey-900 dark:text-grey-50","cursor-default select-none relative py-2 pl-3 pr-9"])},[r.createElementVNode("span",{class:r.normalizeClass([g?"font-semibold":"font-normal","block truncate"])},[f.icon?(r.openBlock(),r.createBlock(T,{key:0,class:"inline-block mr-1",name:f.icon},null,8,["name"])):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(f.label),1)],2),g?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass([u?"text-blue-100":"text-blue-500","absolute inset-y-0 right-0 flex items-center pr-4"])},[r.createVNode(T,{name:"check",class:"h-5 w-5","aria-hidden":"true"})],2)):r.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue","disabled"]))}}),Vo={class:"animate-pulse"},Bo={class:"flex items-center justify-between space-x-4"},Do={key:0,class:"w-12 h-12 bg-current rounded-full shrink-0"},Ro={key:1,class:"w-full h-8 bg-current rounded-lg"},To={key:0,class:"mt-6 space-y-2"},Po={key:1,class:"w-1/3 h-10 mt-6 bg-current rounded-lg"},$o=r.defineComponent({props:{avatar:{type:Boolean,default:!1},title:{type:Boolean,default:!0},lines:{default:3},footer:{type:Boolean,default:!1}},setup(e){const t=e,n=new Array(t.lines).fill(void 0).map(()=>{const o=[4,5,6,8,10,16,24,32];return{margin:`mr-${o[Math.floor(Math.random()*o.length)]}`}});return(o,a)=>(r.openBlock(),r.createElementBlock("div",Vo,[r.createElementVNode("div",Bo,[e.avatar?(r.openBlock(),r.createElementBlock("div",Do)):r.createCommentVNode("",!0),e.title?(r.openBlock(),r.createElementBlock("div",Ro)):r.createCommentVNode("",!0)]),e.lines>0?(r.openBlock(),r.createElementBlock("div",To,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n),(i,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["h-4 bg-current rounded-lg",i.margin]),key:c},null,2))),128))])):r.createCommentVNode("",!0),e.footer?(r.openBlock(),r.createElementBlock("div",Po)):r.createCommentVNode("",!0)]))}}),Mo=r.defineComponent({setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(T),{class:"animate-spin",name:"circle-notch"}))}}),Lo={class:"sr-only"},No=r.defineComponent({props:{id:{default:et()},label:null,modelValue:{type:Boolean},description:null,onLabel:{default:"on"},offLabel:{default:"off"}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=o=>{t("update:modelValue",o),t("change",o)};return(o,a)=>(r.openBlock(),r.createBlock(r.unref(Dr),{modelValue:e.modelValue,label:e.label,class:r.normalizeClass([e.modelValue?"bg-blue-700":"bg-grey-700","relative inline-flex items-center h-6 transition rounded-full w-14 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-grey-900 focus:ring-blue-300"]),"onUpdate:modelValue":n},{default:r.withCtx(()=>[r.createElementVNode("span",{class:r.normalizeClass(["absolute text-xs text-center text-white inset-x-2",e.modelValue?"pr-3":"pl-3"])},r.toDisplayString(e.modelValue===!0?e.onLabel:e.offLabel),3),r.createElementVNode("span",Lo,r.toDisplayString(e.label),1),r.createElementVNode("span",{class:r.normalizeClass([e.modelValue?"translate-x-9":"translate-x-1","inline-block w-4 h-4 transition bg-white rounded-full"])},null,2)]),_:1},8,["modelValue","label","class"]))}}),jo={class:"relative"},Ao=["tabindex","value"],zo={inheritAttrs:!1},_o=r.defineComponent(Qe(F({},zo),{props:{modelValue:null,size:{default:"medium"},isDisabled:{type:Boolean,default:!1},block:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const o=e,{inputClasses:a,disabledClasses:i,textSizeClasses:c}=He(o),s=function(u){n("update:modelValue",(u==null?void 0:u.target).value)},l=r.ref(null);return t({focus:()=>{o.isDisabled||l.value.focus()}}),(u,g)=>{var v;return r.openBlock(),r.createElementBlock("div",jo,[r.createElementVNode("textarea",r.mergeProps({class:["mono-50 bg-white text-grey-800 placeholder:text-grey-400 placeholder:font-normal border-grey-300 dark:bg-grey-800 dark:text-grey-100 dark:placeholder:text-grey-500 dark:border-grey-700 focus:border-blue-400 focus:ring-blue-400 dark:focus:border-blue-800 dark:focus:ring-blue-800 rounded",[r.unref(a),r.unref(c),r.unref(i)]],tabindex:e.isDisabled?"-1":void 0,value:(v=e.modelValue)!=null?v:""},u.$attrs,{ref_key:"input",ref:l,cols:"56",rows:"8",onInput:s}),`
|
|
10
|
+
`,16,Ao)])}}}));x.D9Button=Qt,x.D9Checkbox=fn,x.D9Icon=T,x.D9Input=lr,x.D9Label=fr,x.D9Menu=yo,x.D9MenuLink=wo,x.D9Select=Io,x.D9Skeleton=$o,x.D9Spinner=Mo,x.D9Switch=No,x.D9Textarea=_o,x.brands=Pe,x.icons=Ze,Object.defineProperty(x,"__esModule",{value:!0}),x[Symbol.toStringTag]="Module"});
|