@rockfic.com/vue3-select-component 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assembled/Select.d.ts +33 -0
- package/dist/composables/useSelectCollection.d.ts +18 -0
- package/dist/composables/useSelectDismiss.d.ts +14 -0
- package/dist/composables/useSelectKeyboard.d.ts +8 -0
- package/dist/composables/useSelectState.d.ts +36 -0
- package/dist/eslint.config.d.ts +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +246 -0
- package/dist/lib/context.d.ts +51 -0
- package/dist/lib/create-item.d.ts +5 -0
- package/dist/lib/dom.d.ts +2 -0
- package/dist/lib/filter.d.ts +5 -0
- package/dist/lib/group-context.d.ts +15 -0
- package/dist/lib/ids.d.ts +5 -0
- package/dist/lib/normalize-options.d.ts +12 -0
- package/dist/primitives/SelectClear.d.ts +11 -0
- package/dist/primitives/SelectCreateItem.d.ts +11 -0
- package/dist/primitives/SelectGroup.d.ts +19 -0
- package/dist/primitives/SelectGroupLabel.d.ts +11 -0
- package/dist/primitives/SelectIcon.d.ts +11 -0
- package/dist/primitives/SelectInput.d.ts +4 -0
- package/dist/primitives/SelectListbox.d.ts +11 -0
- package/dist/primitives/SelectNoOptions.d.ts +11 -0
- package/dist/primitives/SelectOption.d.ts +20 -0
- package/dist/primitives/SelectPopover.d.ts +32 -0
- package/dist/primitives/SelectPopoverTriggerSync.d.ts +3 -0
- package/dist/primitives/SelectRoot.d.ts +31 -0
- package/dist/primitives/SelectSeparator.d.ts +3 -0
- package/dist/primitives/SelectTag.d.ts +22 -0
- package/dist/primitives/SelectTrailingIcon.d.ts +11 -0
- package/dist/primitives/SelectTrigger.d.ts +11 -0
- package/dist/primitives/SelectValue.d.ts +20 -0
- package/dist/primitives/index.d.ts +18 -0
- package/dist/primitives-B7jyuJ7a.js +3704 -0
- package/dist/primitives.js +1 -0
- package/dist/styles.css +1 -0
- package/dist/types/assembled.d.ts +31 -0
- package/dist/types/model.d.ts +1 -0
- package/dist/types/option.d.ts +6 -0
- package/dist/types/primitives.d.ts +37 -0
- package/dist/types/root.d.ts +27 -0
- package/dist/types/slots.d.ts +62 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/vite.styles.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +94 -6
- package/README.md +0 -3
|
@@ -0,0 +1,3704 @@
|
|
|
1
|
+
import * as e from "vue";
|
|
2
|
+
import { Comment as t, Fragment as n, Teleport as r, camelize as i, cloneVNode as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createTextVNode as f, createVNode as p, defineComponent as m, effectScope as h, getCurrentInstance as g, getCurrentScope as _, guardReactiveProps as v, h as y, inject as b, isRef as x, mergeDefaults as S, mergeModels as C, mergeProps as w, nextTick as T, normalizeProps as E, normalizeStyle as ee, onBeforeMount as D, onBeforeUnmount as O, onMounted as k, onScopeDispose as A, onUnmounted as j, onUpdated as te, openBlock as M, provide as ne, reactive as re, ref as N, renderList as ie, renderSlot as P, resolveDynamicComponent as ae, shallowReadonly as oe, shallowRef as se, toDisplayString as ce, toHandlerKey as le, toRef as F, toRefs as ue, toValue as I, triggerRef as de, unref as L, useModel as fe, vModelText as pe, vShow as me, watch as R, watchEffect as he, watchPostEffect as ge, withCtx as z, withDirectives as _e, withMemo as ve, withModifiers as ye } from "vue";
|
|
3
|
+
// lib/filter.ts
|
|
4
|
+
var be = (e, t) => e.label.toLowerCase().includes(t.toLowerCase());
|
|
5
|
+
function xe(e, t, n = be) {
|
|
6
|
+
let r = t.trim();
|
|
7
|
+
return r ? e.filter((e) => n(e, r)) : [...e];
|
|
8
|
+
}
|
|
9
|
+
// lib/context.ts
|
|
10
|
+
var Se = Symbol("select-context");
|
|
11
|
+
function Ce(e) {
|
|
12
|
+
ne(Se, e);
|
|
13
|
+
}
|
|
14
|
+
function B() {
|
|
15
|
+
return b(Se, () => {
|
|
16
|
+
throw Error("injectSelectContext must be used within SelectRoot");
|
|
17
|
+
}, !0);
|
|
18
|
+
}
|
|
19
|
+
// primitives/SelectClear.vue
|
|
20
|
+
var we = /* @__PURE__ */ m({
|
|
21
|
+
__name: "SelectClear",
|
|
22
|
+
setup(e) {
|
|
23
|
+
let t = B(), n = o(() => {
|
|
24
|
+
let { modelValue: e, multiple: n } = t;
|
|
25
|
+
return n.value ? Array.isArray(e.value) && e.value.length > 0 : e.value != null;
|
|
26
|
+
}), r = o(() => t.clearable.value && n.value && !t.disabled.value);
|
|
27
|
+
function i(e) {
|
|
28
|
+
e.stopPropagation(), t.clear();
|
|
29
|
+
}
|
|
30
|
+
return (e, t) => r.value ? (M(), l("button", {
|
|
31
|
+
key: 0,
|
|
32
|
+
type: "button",
|
|
33
|
+
"data-select-clear": "",
|
|
34
|
+
"aria-label": "Clear selection",
|
|
35
|
+
onClick: i
|
|
36
|
+
}, [P(e.$slots, "default", {}, () => [t[0] ||= u("svg", {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
viewBox: "0 0 20 20",
|
|
39
|
+
fill: "currentColor",
|
|
40
|
+
width: "1em",
|
|
41
|
+
height: "1em",
|
|
42
|
+
"aria-hidden": "true"
|
|
43
|
+
}, [u("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22z" })], -1)])])) : c("", !0);
|
|
44
|
+
}
|
|
45
|
+
}), Te = ["id", "data-active"], Ee = /* @__PURE__ */ m({
|
|
46
|
+
__name: "SelectCreateItem",
|
|
47
|
+
setup(e) {
|
|
48
|
+
let t = B(), n = o(() => t.showCreateItem.value), r = o(() => t.isCreateItemActive.value), i = o(() => t.createItemSearchValue.value), a = o(() => t.createItemElementId);
|
|
49
|
+
function s() {
|
|
50
|
+
t.selectCreateItem();
|
|
51
|
+
}
|
|
52
|
+
return (e, t) => n.value ? (M(), l("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
id: a.value,
|
|
55
|
+
role: "option",
|
|
56
|
+
"data-select-create-item": "",
|
|
57
|
+
"data-active": r.value,
|
|
58
|
+
"aria-selected": "false",
|
|
59
|
+
onClick: s
|
|
60
|
+
}, [P(e.$slots, "default", { searchValue: i.value }, () => [f(" Create \"" + ce(i.value) + "\" ", 1)])], 8, Te)) : c("", !0);
|
|
61
|
+
}
|
|
62
|
+
}), De = {
|
|
63
|
+
"data-select-icon": "",
|
|
64
|
+
"aria-hidden": "true"
|
|
65
|
+
}, Oe = /* @__PURE__ */ m({
|
|
66
|
+
__name: "SelectIcon",
|
|
67
|
+
setup(e) {
|
|
68
|
+
return (e, t) => (M(), l("span", De, [P(e.$slots, "default")]));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
// lib/dom.ts
|
|
72
|
+
function ke(e) {
|
|
73
|
+
return e instanceof HTMLElement ? e : e && "$el" in e && e.$el instanceof HTMLElement ? e.$el : null;
|
|
74
|
+
}
|
|
75
|
+
// primitives/SelectInput.vue?vue&type=script&setup=true&lang.ts
|
|
76
|
+
var Ae = [
|
|
77
|
+
"id",
|
|
78
|
+
"aria-expanded",
|
|
79
|
+
"aria-controls",
|
|
80
|
+
"aria-activedescendant",
|
|
81
|
+
"placeholder",
|
|
82
|
+
"disabled"
|
|
83
|
+
], je = /* @__PURE__ */ m({
|
|
84
|
+
__name: "SelectInput",
|
|
85
|
+
props: {
|
|
86
|
+
id: {},
|
|
87
|
+
placeholder: {}
|
|
88
|
+
},
|
|
89
|
+
setup(e) {
|
|
90
|
+
let t = e, n = B(), r = o(() => n.searchable.value), i = o(() => n.disabled.value), a = o(() => n.isOpen.value), s = o(() => t.id ?? n.inputId), u = o(() => {
|
|
91
|
+
if (a.value) return n.activeOptionElementId.value;
|
|
92
|
+
}), d = o({
|
|
93
|
+
get: () => n.searchValue.value,
|
|
94
|
+
set: (e) => {
|
|
95
|
+
n.searchValue.value = e;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
function f(e) {
|
|
99
|
+
let t = ke(e);
|
|
100
|
+
n.registerInputElement(t instanceof HTMLInputElement ? t : null);
|
|
101
|
+
}
|
|
102
|
+
function p() {
|
|
103
|
+
n.open();
|
|
104
|
+
}
|
|
105
|
+
function m() {
|
|
106
|
+
n.open();
|
|
107
|
+
}
|
|
108
|
+
function h(e) {
|
|
109
|
+
n.handleKeydown(e);
|
|
110
|
+
}
|
|
111
|
+
return (t, o) => r.value ? _e((M(), l("input", {
|
|
112
|
+
key: 0,
|
|
113
|
+
id: s.value,
|
|
114
|
+
ref: f,
|
|
115
|
+
"onUpdate:modelValue": o[0] ||= (e) => d.value = e,
|
|
116
|
+
type: "text",
|
|
117
|
+
"data-select-input": "",
|
|
118
|
+
role: "combobox",
|
|
119
|
+
"aria-autocomplete": "list",
|
|
120
|
+
"aria-haspopup": "listbox",
|
|
121
|
+
"aria-expanded": a.value,
|
|
122
|
+
"aria-controls": L(n).listboxId,
|
|
123
|
+
"aria-activedescendant": u.value,
|
|
124
|
+
placeholder: e.placeholder,
|
|
125
|
+
autocomplete: "off",
|
|
126
|
+
disabled: i.value,
|
|
127
|
+
onClick: ye(p, ["stop"]),
|
|
128
|
+
onFocus: m,
|
|
129
|
+
onKeydown: ye(h, ["stop"])
|
|
130
|
+
}, null, 40, Ae)), [[pe, d.value]]) : c("", !0);
|
|
131
|
+
}
|
|
132
|
+
}), Me = [
|
|
133
|
+
"id",
|
|
134
|
+
"aria-labelledby",
|
|
135
|
+
"aria-multiselectable"
|
|
136
|
+
], Ne = /* @__PURE__ */ m({
|
|
137
|
+
__name: "SelectListbox",
|
|
138
|
+
setup(e) {
|
|
139
|
+
let t = B(), n = N(null), r = o(() => t.multiple.value), i = o(() => t.searchable.value ? t.inputElement.value?.id ?? t.inputId : t.triggerId);
|
|
140
|
+
function a(e) {
|
|
141
|
+
t.handleKeydown(e);
|
|
142
|
+
}
|
|
143
|
+
return R(() => [t.activeOptionElementId.value, t.isOpen.value], ([e, t]) => {
|
|
144
|
+
e != null && t && n.value?.querySelector(`#${CSS.escape(e)}`)?.scrollIntoView({ block: "nearest" });
|
|
145
|
+
}, { flush: "post" }), (e, o) => (M(), l("div", {
|
|
146
|
+
id: L(t).listboxId,
|
|
147
|
+
ref_key: "listboxElement",
|
|
148
|
+
ref: n,
|
|
149
|
+
role: "listbox",
|
|
150
|
+
"data-select-listbox": "",
|
|
151
|
+
"aria-labelledby": i.value,
|
|
152
|
+
"aria-multiselectable": r.value,
|
|
153
|
+
tabindex: "-1",
|
|
154
|
+
onKeydown: a
|
|
155
|
+
}, [P(e.$slots, "default")], 40, Me));
|
|
156
|
+
}
|
|
157
|
+
}), Pe = {
|
|
158
|
+
key: 0,
|
|
159
|
+
role: "status",
|
|
160
|
+
"data-select-no-options": ""
|
|
161
|
+
}, Fe = /* @__PURE__ */ m({
|
|
162
|
+
__name: "SelectNoOptions",
|
|
163
|
+
setup(e) {
|
|
164
|
+
let t = B(), n = o(() => t.filteredOptions.value.length === 0 && !t.showCreateItem.value), r = o(() => t.searchValue.value);
|
|
165
|
+
return (e, t) => n.value ? (M(), l("div", Pe, [P(e.$slots, "default", { searchValue: r.value }, () => [t[0] ||= f(" No options ", -1)])])) : c("", !0);
|
|
166
|
+
}
|
|
167
|
+
}), Ie = Symbol("select-group-context");
|
|
168
|
+
function Le(e) {
|
|
169
|
+
ne(Ie, e);
|
|
170
|
+
}
|
|
171
|
+
function Re() {
|
|
172
|
+
let e = b(Ie);
|
|
173
|
+
if (!e) throw Error("injectSelectGroupContext must be used within SelectGroup");
|
|
174
|
+
return e;
|
|
175
|
+
}
|
|
176
|
+
function ze() {
|
|
177
|
+
return b(Ie, null);
|
|
178
|
+
}
|
|
179
|
+
// lib/ids.ts
|
|
180
|
+
var Be = 0, Ve = 0, He = 0, Ue = 0;
|
|
181
|
+
function We() {
|
|
182
|
+
return `v1-select-${++Ve}`;
|
|
183
|
+
}
|
|
184
|
+
function Ge() {
|
|
185
|
+
return `select-option-${++Be}`;
|
|
186
|
+
}
|
|
187
|
+
function Ke() {
|
|
188
|
+
return `select-group-${++He}`;
|
|
189
|
+
}
|
|
190
|
+
function qe() {
|
|
191
|
+
return `select-group-label-${++Ue}`;
|
|
192
|
+
}
|
|
193
|
+
function Je(e) {
|
|
194
|
+
return `prop:${String(e)}`;
|
|
195
|
+
}
|
|
196
|
+
// primitives/SelectOption.vue?vue&type=script&setup=true&lang.ts
|
|
197
|
+
var Ye = [
|
|
198
|
+
"id",
|
|
199
|
+
"data-value",
|
|
200
|
+
"data-active",
|
|
201
|
+
"aria-selected",
|
|
202
|
+
"aria-disabled"
|
|
203
|
+
], Xe = { "data-select-option-label": "" }, Ze = {
|
|
204
|
+
key: 0,
|
|
205
|
+
"data-select-option-checkmark": "",
|
|
206
|
+
"aria-hidden": "true"
|
|
207
|
+
}, Qe = /* @__PURE__ */ m({
|
|
208
|
+
__name: "SelectOption",
|
|
209
|
+
props: {
|
|
210
|
+
value: {},
|
|
211
|
+
label: {},
|
|
212
|
+
disabled: { type: Boolean }
|
|
213
|
+
},
|
|
214
|
+
setup(e) {
|
|
215
|
+
let t = e, n = B(), r = ze(), i = Ge(), a = o(() => {
|
|
216
|
+
let { modelValue: e, multiple: r } = n;
|
|
217
|
+
return r.value ? (Array.isArray(e.value) ? e.value : []).includes(t.value) : e.value === t.value;
|
|
218
|
+
}), s = o(() => n.activeOptionValue.value === t.value), d = o(() => n.isOptionVisible(t.value)), p = o(() => n.multiple.value && a.value), m = o(() => n.allOptions.value.find((e) => e.value === t.value)), h = o(() => m.value?.disabled ?? t.disabled ?? !1);
|
|
219
|
+
function g() {
|
|
220
|
+
h.value || n.select(t.value);
|
|
221
|
+
}
|
|
222
|
+
function _() {
|
|
223
|
+
n.registerOption({
|
|
224
|
+
id: i,
|
|
225
|
+
value: t.value,
|
|
226
|
+
label: t.label,
|
|
227
|
+
disabled: t.disabled ?? !1
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
return k(() => {
|
|
231
|
+
_(), r?.registerOptionValue(t.value);
|
|
232
|
+
}), R(() => [t.label, t.disabled], () => {
|
|
233
|
+
_();
|
|
234
|
+
}), j(() => {
|
|
235
|
+
n.unregisterOption(i), r?.unregisterOptionValue(t.value);
|
|
236
|
+
}), (t, n) => d.value ? (M(), l("div", {
|
|
237
|
+
key: 0,
|
|
238
|
+
id: L(i),
|
|
239
|
+
role: "option",
|
|
240
|
+
"data-select-option": "",
|
|
241
|
+
"data-value": String(e.value),
|
|
242
|
+
"data-active": s.value,
|
|
243
|
+
"aria-selected": a.value,
|
|
244
|
+
"aria-disabled": h.value,
|
|
245
|
+
onClick: g
|
|
246
|
+
}, [u("span", Xe, [P(t.$slots, "default", {}, () => [f(ce(e.label), 1)])]), p.value ? (M(), l("span", Ze, [P(t.$slots, "checkmark", {}, () => [n[0] ||= u("svg", {
|
|
247
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
248
|
+
fill: "none",
|
|
249
|
+
viewBox: "0 0 24 24",
|
|
250
|
+
"stroke-width": "1.5",
|
|
251
|
+
stroke: "currentColor",
|
|
252
|
+
width: "1em",
|
|
253
|
+
height: "1em"
|
|
254
|
+
}, [u("path", {
|
|
255
|
+
"stroke-linecap": "round",
|
|
256
|
+
"stroke-linejoin": "round",
|
|
257
|
+
d: "m4.5 12.75 6 6 9-13.5"
|
|
258
|
+
})], -1)])])) : c("", !0)], 8, Ye)) : c("", !0);
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
|
|
262
|
+
function $e(e, t) {
|
|
263
|
+
let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
264
|
+
return [(t) => {
|
|
265
|
+
let n = b(r, t);
|
|
266
|
+
if (n || n === null) return n;
|
|
267
|
+
throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
268
|
+
}, (e) => (ne(r, e), e)];
|
|
269
|
+
}
|
|
270
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/getActiveElement.js
|
|
271
|
+
function V() {
|
|
272
|
+
let e = document.activeElement;
|
|
273
|
+
if (e == null) return null;
|
|
274
|
+
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
|
|
275
|
+
return e;
|
|
276
|
+
}
|
|
277
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js
|
|
278
|
+
function et(e, t, n) {
|
|
279
|
+
let r = n.originalEvent.target, i = new CustomEvent(e, {
|
|
280
|
+
bubbles: !1,
|
|
281
|
+
cancelable: !0,
|
|
282
|
+
detail: n
|
|
283
|
+
});
|
|
284
|
+
t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(i);
|
|
285
|
+
}
|
|
286
|
+
// ../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.46_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
287
|
+
function tt(e, t) {
|
|
288
|
+
return _() ? (A(e, t), !0) : !1;
|
|
289
|
+
}
|
|
290
|
+
function nt(e) {
|
|
291
|
+
let t = !1, n, r = h(!0);
|
|
292
|
+
return ((...i) => (t ||= (n = r.run(() => e(...i)), !0), n));
|
|
293
|
+
}
|
|
294
|
+
var H = typeof window < "u" && typeof document < "u";
|
|
295
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
296
|
+
var rt = (e) => e !== void 0, it = Object.prototype.toString, at = (e) => it.call(e) === "[object Object]", ot = /* #__PURE__ */ st();
|
|
297
|
+
function st() {
|
|
298
|
+
var e, t;
|
|
299
|
+
return H && !!((e = window) != null && (e = e.navigator) != null && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
300
|
+
}
|
|
301
|
+
function ct(e) {
|
|
302
|
+
return Array.isArray(e) ? e : [e];
|
|
303
|
+
}
|
|
304
|
+
function lt(e) {
|
|
305
|
+
return e || g();
|
|
306
|
+
}
|
|
307
|
+
function ut(e) {
|
|
308
|
+
if (!H) return e;
|
|
309
|
+
let t = 0, n, r, i = () => {
|
|
310
|
+
--t, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
|
|
311
|
+
};
|
|
312
|
+
return ((...a) => (t += 1, r || (r = h(!0), n = r.run(() => e(...a))), tt(i), n));
|
|
313
|
+
}
|
|
314
|
+
function dt(e) {
|
|
315
|
+
return x(e) ? re(new Proxy({}, {
|
|
316
|
+
get(t, n, r) {
|
|
317
|
+
return L(Reflect.get(e.value, n, r));
|
|
318
|
+
},
|
|
319
|
+
set(t, n, r) {
|
|
320
|
+
return x(e.value[n]) && !x(r) ? e.value[n].value = r : e.value[n] = r, !0;
|
|
321
|
+
},
|
|
322
|
+
deleteProperty(t, n) {
|
|
323
|
+
return Reflect.deleteProperty(e.value, n);
|
|
324
|
+
},
|
|
325
|
+
has(t, n) {
|
|
326
|
+
return Reflect.has(e.value, n);
|
|
327
|
+
},
|
|
328
|
+
ownKeys() {
|
|
329
|
+
return Object.keys(e.value);
|
|
330
|
+
},
|
|
331
|
+
getOwnPropertyDescriptor() {
|
|
332
|
+
return {
|
|
333
|
+
enumerable: !0,
|
|
334
|
+
configurable: !0
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
})) : re(e);
|
|
338
|
+
}
|
|
339
|
+
function ft(e) {
|
|
340
|
+
return dt(o(e));
|
|
341
|
+
}
|
|
342
|
+
function pt(e, ...t) {
|
|
343
|
+
let n = t.flat(), r = n[0];
|
|
344
|
+
return ft(() => Object.fromEntries(typeof r == "function" ? Object.entries(ue(e)).filter(([e, t]) => !r(I(t), e)) : Object.entries(ue(e)).filter((e) => !n.includes(e[0]))));
|
|
345
|
+
}
|
|
346
|
+
function mt(e, t) {
|
|
347
|
+
lt(t) && O(e, t);
|
|
348
|
+
}
|
|
349
|
+
function ht(e, t, n) {
|
|
350
|
+
return R(e, t, {
|
|
351
|
+
...n,
|
|
352
|
+
immediate: !0
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
// ../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.46_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
356
|
+
var gt = H ? window : void 0;
|
|
357
|
+
H && window.document, H && window.navigator, H && window.location;
|
|
358
|
+
function _t(e) {
|
|
359
|
+
let t = I(e);
|
|
360
|
+
return t?.$el ?? t;
|
|
361
|
+
}
|
|
362
|
+
function vt(...e) {
|
|
363
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = o(() => {
|
|
364
|
+
let t = ct(I(e[0])).filter((e) => e != null);
|
|
365
|
+
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
366
|
+
});
|
|
367
|
+
return ht(() => [
|
|
368
|
+
n.value?.map((e) => _t(e)) ?? [gt].filter((e) => e != null),
|
|
369
|
+
ct(I(n.value ? e[1] : e[0])),
|
|
370
|
+
ct(L(n.value ? e[2] : e[1])),
|
|
371
|
+
I(n.value ? e[3] : e[2])
|
|
372
|
+
], ([e, n, r, i], a, o) => {
|
|
373
|
+
if (!e?.length || !n?.length || !r?.length) return;
|
|
374
|
+
let s = at(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
375
|
+
o(() => {
|
|
376
|
+
c.forEach((e) => e());
|
|
377
|
+
});
|
|
378
|
+
}, { flush: "post" });
|
|
379
|
+
}
|
|
380
|
+
function yt() {
|
|
381
|
+
let e = se(!1), t = g();
|
|
382
|
+
return t && k(() => {
|
|
383
|
+
e.value = !0;
|
|
384
|
+
}, t), e;
|
|
385
|
+
}
|
|
386
|
+
function bt(e) {
|
|
387
|
+
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
388
|
+
}
|
|
389
|
+
function xt(...e) {
|
|
390
|
+
let t, n, r = {};
|
|
391
|
+
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
392
|
+
let { target: i = gt, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = bt(t);
|
|
393
|
+
return vt(i, a, (e) => {
|
|
394
|
+
e.repeat && I(s) || c(e) && n(e);
|
|
395
|
+
}, o);
|
|
396
|
+
}
|
|
397
|
+
function St(e) {
|
|
398
|
+
return JSON.parse(JSON.stringify(e));
|
|
399
|
+
}
|
|
400
|
+
function Ct(e, t, n, r = {}) {
|
|
401
|
+
var i, a;
|
|
402
|
+
let { clone: s = !1, passive: c = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = g(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = l;
|
|
403
|
+
t ||= "modelValue", h ||= `update:${t.toString()}`;
|
|
404
|
+
let _ = (e) => s ? typeof s == "function" ? s(e) : St(e) : e, v = () => rt(e[t]) ? _(e[t]) : d, y = (e) => {
|
|
405
|
+
f ? f(e) && m(h, e) : m(h, e);
|
|
406
|
+
};
|
|
407
|
+
if (c) {
|
|
408
|
+
let n = N(v()), r = !1;
|
|
409
|
+
return R(() => e[t], (e) => {
|
|
410
|
+
r || (r = !0, n.value = _(e), T(() => r = !1));
|
|
411
|
+
}), R(n, (n) => {
|
|
412
|
+
!r && (n !== e[t] || u) && y(n);
|
|
413
|
+
}, { deep: u }), n;
|
|
414
|
+
}
|
|
415
|
+
return o({
|
|
416
|
+
get() {
|
|
417
|
+
return v();
|
|
418
|
+
},
|
|
419
|
+
set(e) {
|
|
420
|
+
y(e);
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/renderSlotFragments.js
|
|
425
|
+
function wt(e) {
|
|
426
|
+
return e ? e.flatMap((e) => e.type === n ? wt(e.children) : [e]) : [];
|
|
427
|
+
}
|
|
428
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
429
|
+
var [Tt, Et] = /*#__PURE__*/ $e("ConfigProvider"), Dt = /* @__PURE__ */ new WeakMap();
|
|
430
|
+
function Ot(e, t) {
|
|
431
|
+
let n = Dt.get(e);
|
|
432
|
+
n || (n = {
|
|
433
|
+
owners: /* @__PURE__ */ new Set(),
|
|
434
|
+
original: e.body.style.pointerEvents
|
|
435
|
+
}, Dt.set(e, n)), n.owners.add(t), e.body.style.pointerEvents = "none";
|
|
436
|
+
}
|
|
437
|
+
function kt(e, t) {
|
|
438
|
+
let n = Dt.get(e);
|
|
439
|
+
n?.owners.delete(t) && n.owners.size === 0 && (Dt.delete(e), e.body.style.pointerEvents = n.original);
|
|
440
|
+
}
|
|
441
|
+
// ../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
442
|
+
function At(e) {
|
|
443
|
+
if (typeof e != "object" || !e) return !1;
|
|
444
|
+
let t = Object.getPrototypeOf(e);
|
|
445
|
+
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
446
|
+
}
|
|
447
|
+
function jt(e, t, n = ".", r) {
|
|
448
|
+
if (!At(t)) return jt(e, {}, n, r);
|
|
449
|
+
let i = { ...t };
|
|
450
|
+
for (let t of Object.keys(e)) {
|
|
451
|
+
if (t === "__proto__" || t === "constructor") continue;
|
|
452
|
+
let a = e[t];
|
|
453
|
+
a != null && (r && r(i, t, a, n) || (i[t] = Array.isArray(a) && Array.isArray(i[t]) ? [...a, ...i[t]] : At(a) && At(i[t]) ? jt(a, i[t], (n ? `${n}.` : "") + t.toString(), r) : a));
|
|
454
|
+
}
|
|
455
|
+
return i;
|
|
456
|
+
}
|
|
457
|
+
function Mt(e) {
|
|
458
|
+
return (...t) => t.reduce((t, n) => jt(t, n, "", e), {});
|
|
459
|
+
}
|
|
460
|
+
var Nt = Mt(), Pt = Symbol("useBodyScrollLock"), Ft = ut(() => {
|
|
461
|
+
let e = N(/* @__PURE__ */ new Map()), t = N(), n = o(() => {
|
|
462
|
+
for (let t of e.value.values()) if (t) return !0;
|
|
463
|
+
return !1;
|
|
464
|
+
}), r = Tt({ scrollBody: N(!0) }), i = null, a = () => {
|
|
465
|
+
document.body.style.paddingRight = "", document.body.style.marginRight = "", kt(document, Pt), document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", ot && i?.(), t.value = void 0;
|
|
466
|
+
};
|
|
467
|
+
return R(n, (e, o) => {
|
|
468
|
+
if (!H) return;
|
|
469
|
+
if (!e) {
|
|
470
|
+
o && a();
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
t.value === void 0 && (t.value = document.body.style.overflow);
|
|
474
|
+
let s = window.innerWidth - document.documentElement.clientWidth, c = {
|
|
475
|
+
padding: s,
|
|
476
|
+
margin: 0
|
|
477
|
+
}, l = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? Nt({
|
|
478
|
+
padding: r.scrollBody.value.padding === !0 ? s : r.scrollBody.value.padding,
|
|
479
|
+
margin: r.scrollBody.value.margin === !0 ? s : r.scrollBody.value.margin
|
|
480
|
+
}, c) : c : {
|
|
481
|
+
padding: 0,
|
|
482
|
+
margin: 0
|
|
483
|
+
};
|
|
484
|
+
s > 0 && (document.body.style.paddingRight = typeof l.padding == "number" ? `${l.padding}px` : String(l.padding), document.body.style.marginRight = typeof l.margin == "number" ? `${l.margin}px` : String(l.margin), document.documentElement.style.setProperty("--scrollbar-width", `${s}px`), document.body.style.overflow = "hidden"), ot && (i = vt(document, "touchmove", (e) => Rt(e), { passive: !1 })), T(() => {
|
|
485
|
+
n.value && (Ot(document, Pt), document.body.style.overflow = "hidden");
|
|
486
|
+
});
|
|
487
|
+
}, {
|
|
488
|
+
immediate: !0,
|
|
489
|
+
flush: "sync"
|
|
490
|
+
}), e;
|
|
491
|
+
});
|
|
492
|
+
function It(e) {
|
|
493
|
+
let t = Math.random().toString(36).substring(2, 7), n = Ft();
|
|
494
|
+
n.value.set(t, e ?? !1);
|
|
495
|
+
let r = o({
|
|
496
|
+
get: () => n.value.get(t) ?? !1,
|
|
497
|
+
set: (e) => n.value.set(t, e)
|
|
498
|
+
});
|
|
499
|
+
return mt(() => {
|
|
500
|
+
n.value.delete(t);
|
|
501
|
+
}), r;
|
|
502
|
+
}
|
|
503
|
+
function Lt(e) {
|
|
504
|
+
let t = window.getComputedStyle(e);
|
|
505
|
+
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
506
|
+
{
|
|
507
|
+
let t = e.parentNode;
|
|
508
|
+
return !(t instanceof Element) || t.tagName === "BODY" ? !1 : Lt(t);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function Rt(e) {
|
|
512
|
+
let t = e || window.event, n = t.target;
|
|
513
|
+
return n instanceof Element && Lt(n) ? !1 : t.touches.length > 1 || (t.preventDefault && t.cancelable && t.preventDefault(), !1);
|
|
514
|
+
}
|
|
515
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useDirection.js
|
|
516
|
+
function zt(e) {
|
|
517
|
+
let t = Tt({ dir: N("ltr") });
|
|
518
|
+
return o(() => e?.value || t.dir?.value || "ltr");
|
|
519
|
+
}
|
|
520
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useEmitAsProps.js
|
|
521
|
+
function Bt(e) {
|
|
522
|
+
let t = g(), n = t?.type.emits, r = {};
|
|
523
|
+
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((t) => {
|
|
524
|
+
r[le(i(t))] = (...n) => e(t, ...n);
|
|
525
|
+
}), r;
|
|
526
|
+
}
|
|
527
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useFocusGuards.js
|
|
528
|
+
var Vt = 0;
|
|
529
|
+
function Ht() {
|
|
530
|
+
he((e) => {
|
|
531
|
+
if (!H) return;
|
|
532
|
+
let t = document.querySelectorAll("[data-reka-focus-guard]");
|
|
533
|
+
document.body.insertAdjacentElement("afterbegin", t[0] ?? Ut()), document.body.insertAdjacentElement("beforeend", t[1] ?? Ut()), Vt++, e(() => {
|
|
534
|
+
Vt === 1 && document.querySelectorAll("[data-reka-focus-guard]").forEach((e) => e.remove()), Vt--;
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
function Ut() {
|
|
539
|
+
let e = document.createElement("span");
|
|
540
|
+
return e.setAttribute("data-reka-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
541
|
+
}
|
|
542
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardExpose.js
|
|
543
|
+
function U() {
|
|
544
|
+
let e = g(), t = N(), n = o(() => r());
|
|
545
|
+
te(() => {
|
|
546
|
+
n.value !== r() && de(t);
|
|
547
|
+
});
|
|
548
|
+
function r() {
|
|
549
|
+
return t.value && "$el" in t.value && ["#text", "#comment"].includes(t.value.$el.nodeName) ? t.value.$el.nextElementSibling : _t(t);
|
|
550
|
+
}
|
|
551
|
+
let i = Object.assign({}, e.exposed), a = {};
|
|
552
|
+
for (let t in e.props) Object.defineProperty(a, t, {
|
|
553
|
+
enumerable: !0,
|
|
554
|
+
configurable: !0,
|
|
555
|
+
get: () => e.props[t]
|
|
556
|
+
});
|
|
557
|
+
if (Object.keys(i).length > 0) for (let e in i) Object.defineProperty(a, e, {
|
|
558
|
+
enumerable: !0,
|
|
559
|
+
configurable: !0,
|
|
560
|
+
get: () => i[e]
|
|
561
|
+
});
|
|
562
|
+
Object.defineProperty(a, "$el", {
|
|
563
|
+
enumerable: !0,
|
|
564
|
+
configurable: !0,
|
|
565
|
+
get: () => e.vnode.el
|
|
566
|
+
}), e.exposed = a;
|
|
567
|
+
function s(n) {
|
|
568
|
+
if (t.value = n, n && (Object.defineProperty(a, "$el", {
|
|
569
|
+
enumerable: !0,
|
|
570
|
+
configurable: !0,
|
|
571
|
+
get: () => n instanceof Element ? n : n.$el
|
|
572
|
+
}), !(n instanceof Element) && !Object.hasOwn(n, "$el"))) {
|
|
573
|
+
let t = n.$.exposed, r = Object.assign({}, a);
|
|
574
|
+
for (let e in t) Object.defineProperty(r, e, {
|
|
575
|
+
enumerable: !0,
|
|
576
|
+
configurable: !0,
|
|
577
|
+
get: () => t[e]
|
|
578
|
+
});
|
|
579
|
+
e.exposed = r;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
return {
|
|
583
|
+
forwardRef: s,
|
|
584
|
+
currentRef: t,
|
|
585
|
+
currentElement: n
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardProps.js
|
|
589
|
+
function Wt(e) {
|
|
590
|
+
let t = g(), n = Object.keys(t?.type.props ?? {}).reduce((e, n) => {
|
|
591
|
+
let r = (t?.type.props[n]).default;
|
|
592
|
+
return r !== void 0 && (e[n] = r), e;
|
|
593
|
+
}, {}), r = F(e);
|
|
594
|
+
return o(() => {
|
|
595
|
+
let e = {}, a = t?.vnode.props ?? {};
|
|
596
|
+
return Object.keys(a).forEach((t) => {
|
|
597
|
+
e[i(t)] = a[t];
|
|
598
|
+
}), Object.keys({
|
|
599
|
+
...n,
|
|
600
|
+
...e
|
|
601
|
+
}).reduce((e, t) => (r.value[t] !== void 0 && (e[t] = r.value[t]), e), {});
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js
|
|
605
|
+
function Gt(e, t) {
|
|
606
|
+
let n = Wt(e), r = t ? Bt(t) : {};
|
|
607
|
+
return o(() => ({
|
|
608
|
+
...n.value,
|
|
609
|
+
...r
|
|
610
|
+
}));
|
|
611
|
+
}
|
|
612
|
+
// ../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
613
|
+
var Kt = function(e) {
|
|
614
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
615
|
+
}, qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Yt = {}, Xt = 0, Zt = function(e) {
|
|
616
|
+
return e && (e.host || Zt(e.parentNode));
|
|
617
|
+
}, Qt = function(e, t) {
|
|
618
|
+
return t.map(function(t) {
|
|
619
|
+
if (e.contains(t)) return t;
|
|
620
|
+
var n = Zt(t);
|
|
621
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
622
|
+
}).filter(function(e) {
|
|
623
|
+
return !!e;
|
|
624
|
+
});
|
|
625
|
+
}, $t = function(e, t, n, r) {
|
|
626
|
+
var i = Qt(t, Array.isArray(e) ? e : [e]);
|
|
627
|
+
Yt[n] || (Yt[n] = /* @__PURE__ */ new WeakMap());
|
|
628
|
+
var a = Yt[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
629
|
+
e && !s.has(e) && (s.add(e), l(e.parentNode));
|
|
630
|
+
};
|
|
631
|
+
i.forEach(l);
|
|
632
|
+
var u = function(e) {
|
|
633
|
+
e && !c.has(e) && Array.prototype.forEach.call(e.children, function(e) {
|
|
634
|
+
if (s.has(e)) u(e);
|
|
635
|
+
else try {
|
|
636
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (qt.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
637
|
+
qt.set(e, c), a.set(e, l), o.push(e), c === 1 && i && Jt.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
638
|
+
} catch (t) {
|
|
639
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
};
|
|
643
|
+
return u(t), s.clear(), Xt++, function() {
|
|
644
|
+
o.forEach(function(e) {
|
|
645
|
+
var t = qt.get(e) - 1, i = a.get(e) - 1;
|
|
646
|
+
qt.set(e, t), a.set(e, i), t || (Jt.has(e) || e.removeAttribute(r), Jt.delete(e)), i || e.removeAttribute(n);
|
|
647
|
+
}), Xt--, Xt || (qt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Yt = {});
|
|
648
|
+
};
|
|
649
|
+
}, en = function(e, t, n) {
|
|
650
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
651
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Kt(e);
|
|
652
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), $t(r, i, n, "aria-hidden")) : function() {
|
|
653
|
+
return null;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useHideOthers.js
|
|
657
|
+
function tn(e) {
|
|
658
|
+
let t;
|
|
659
|
+
R(() => _t(e), (e) => {
|
|
660
|
+
let n = !1;
|
|
661
|
+
try {
|
|
662
|
+
n = !!e?.closest("[popover]:not(:popover-open)");
|
|
663
|
+
} catch {}
|
|
664
|
+
e && !n ? t = en(e) : t && t();
|
|
665
|
+
}), j(() => {
|
|
666
|
+
t && t();
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useId.js
|
|
670
|
+
var nn = 0;
|
|
671
|
+
function rn(t, n = "reka") {
|
|
672
|
+
if (t) return t;
|
|
673
|
+
let r, i = Tt({ useId: void 0 });
|
|
674
|
+
return r = i.useId ? i.useId() : "useId" in e ? e.useId?.() : `${++nn}`, n ? `${n}-${r}` : r;
|
|
675
|
+
}
|
|
676
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useSize.js
|
|
677
|
+
function an(e) {
|
|
678
|
+
let t = N(), n = o(() => t.value?.width ?? 0), r = o(() => t.value?.height ?? 0), i;
|
|
679
|
+
return k(() => {
|
|
680
|
+
let n = _t(e);
|
|
681
|
+
n ? (t.value = {
|
|
682
|
+
width: n.offsetWidth,
|
|
683
|
+
height: n.offsetHeight
|
|
684
|
+
}, i = new ResizeObserver((e) => {
|
|
685
|
+
if (!Array.isArray(e) || !e.length) return;
|
|
686
|
+
let r = e[0], i, a;
|
|
687
|
+
if ("borderBoxSize" in r) {
|
|
688
|
+
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
689
|
+
i = t.inlineSize, a = t.blockSize;
|
|
690
|
+
} else i = n.offsetWidth, a = n.offsetHeight;
|
|
691
|
+
t.value = {
|
|
692
|
+
width: i,
|
|
693
|
+
height: a
|
|
694
|
+
};
|
|
695
|
+
}), i.observe(n, { box: "border-box" })) : t.value = void 0;
|
|
696
|
+
}), j(() => {
|
|
697
|
+
i?.disconnect(), i = void 0;
|
|
698
|
+
}), {
|
|
699
|
+
width: n,
|
|
700
|
+
height: r
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useStateMachine.js
|
|
704
|
+
function on(e, t) {
|
|
705
|
+
let n = N(e);
|
|
706
|
+
function r(e) {
|
|
707
|
+
return t[n.value][e] ?? n.value;
|
|
708
|
+
}
|
|
709
|
+
return {
|
|
710
|
+
state: n,
|
|
711
|
+
dispatch: (e) => {
|
|
712
|
+
n.value = r(e);
|
|
713
|
+
}
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/Presence/usePresence.js
|
|
717
|
+
function sn(e, t) {
|
|
718
|
+
let n = N({}), r = N("none"), i = N(e), a = e.value ? "mounted" : "unmounted", s, c = t.value?.ownerDocument.defaultView ?? gt, { state: l, dispatch: u } = on(a, {
|
|
719
|
+
mounted: {
|
|
720
|
+
UNMOUNT: "unmounted",
|
|
721
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
722
|
+
},
|
|
723
|
+
unmountSuspended: {
|
|
724
|
+
MOUNT: "mounted",
|
|
725
|
+
ANIMATION_END: "unmounted"
|
|
726
|
+
},
|
|
727
|
+
unmounted: { MOUNT: "mounted" }
|
|
728
|
+
}), d = (e) => {
|
|
729
|
+
if (H) {
|
|
730
|
+
let n = new CustomEvent(e, {
|
|
731
|
+
bubbles: !1,
|
|
732
|
+
cancelable: !1
|
|
733
|
+
});
|
|
734
|
+
t.value?.dispatchEvent(n);
|
|
735
|
+
}
|
|
736
|
+
};
|
|
737
|
+
R(e, async (e, i) => {
|
|
738
|
+
let a = i !== e;
|
|
739
|
+
if (await T(), a) {
|
|
740
|
+
let a = r.value, o = cn(t.value);
|
|
741
|
+
e ? (u("MOUNT"), d("enter"), o === "none" && d("after-enter")) : o === "none" || o === "undefined" || n.value?.display === "none" ? (u("UNMOUNT"), d("leave"), d("after-leave")) : i && a !== o ? (u("ANIMATION_OUT"), d("leave")) : (u("UNMOUNT"), d("after-leave"));
|
|
742
|
+
}
|
|
743
|
+
}, { immediate: !0 });
|
|
744
|
+
let f = (e) => {
|
|
745
|
+
if (e.target !== t.value) return;
|
|
746
|
+
let n = cn(t.value), r = n.includes(CSS.escape(e.animationName)), a = l.value === "mounted" ? "enter" : "leave";
|
|
747
|
+
if (r && (d(`after-${a}`), u("ANIMATION_END"), !i.value)) {
|
|
748
|
+
let e = t.value.style.animationFillMode;
|
|
749
|
+
t.value.style.animationFillMode = "forwards", s = c?.setTimeout(() => {
|
|
750
|
+
t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = e);
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
n === "none" && u("ANIMATION_END");
|
|
754
|
+
}, p = (e) => {
|
|
755
|
+
e.target === t.value && (r.value = cn(t.value));
|
|
756
|
+
}, m = R(t, (e, t) => {
|
|
757
|
+
e ? (n.value = getComputedStyle(e), e.addEventListener("animationstart", p), e.addEventListener("animationcancel", f), e.addEventListener("animationend", f)) : (u("ANIMATION_END"), s !== void 0 && c?.clearTimeout(s), t?.removeEventListener("animationstart", p), t?.removeEventListener("animationcancel", f), t?.removeEventListener("animationend", f));
|
|
758
|
+
}, { immediate: !0 }), h = R(l, () => {
|
|
759
|
+
let e = cn(t.value);
|
|
760
|
+
r.value = l.value === "mounted" ? e : "none";
|
|
761
|
+
});
|
|
762
|
+
return j(() => {
|
|
763
|
+
m(), h(), t.value && (t.value.removeEventListener("animationstart", p), t.value.removeEventListener("animationcancel", f), t.value.removeEventListener("animationend", f)), s !== void 0 && c?.clearTimeout(s);
|
|
764
|
+
}), { isPresent: o(() => ["mounted", "unmountSuspended"].includes(l.value)) };
|
|
765
|
+
}
|
|
766
|
+
function cn(e) {
|
|
767
|
+
return e && getComputedStyle(e).animationName || "none";
|
|
768
|
+
}
|
|
769
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/Presence/Presence.js
|
|
770
|
+
var ln = /*#__PURE__*/ m({
|
|
771
|
+
name: "Presence",
|
|
772
|
+
props: {
|
|
773
|
+
present: {
|
|
774
|
+
type: Boolean,
|
|
775
|
+
required: !0
|
|
776
|
+
},
|
|
777
|
+
forceMount: { type: Boolean }
|
|
778
|
+
},
|
|
779
|
+
slots: {},
|
|
780
|
+
setup(e, { slots: t, expose: n }) {
|
|
781
|
+
let { present: r, forceMount: i } = ue(e), a = N(), { isPresent: o } = sn(r, a);
|
|
782
|
+
n({ present: o });
|
|
783
|
+
let s = t.default({ present: o.value });
|
|
784
|
+
s = wt(s || []);
|
|
785
|
+
let c = g();
|
|
786
|
+
if (s && s?.length > 1) {
|
|
787
|
+
let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
|
|
788
|
+
throw Error([
|
|
789
|
+
`Detected an invalid children for \`${e}\` for \`Presence\` component.`,
|
|
790
|
+
"",
|
|
791
|
+
"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
|
|
792
|
+
"You can apply a few solutions:",
|
|
793
|
+
["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((e) => ` - ${e}`).join("\n")
|
|
794
|
+
].join("\n"));
|
|
795
|
+
}
|
|
796
|
+
return () => i.value || r.value || o.value ? y(t.default({ present: o.value })[0], { ref: (e) => {
|
|
797
|
+
let t = _t(e);
|
|
798
|
+
return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
|
|
799
|
+
} }) : null;
|
|
800
|
+
}
|
|
801
|
+
}), un = /*#__PURE__*/ m({
|
|
802
|
+
name: "PrimitiveSlot",
|
|
803
|
+
inheritAttrs: !1,
|
|
804
|
+
setup(e, { attrs: n, slots: r }) {
|
|
805
|
+
return () => {
|
|
806
|
+
if (!r.default) return null;
|
|
807
|
+
let e = wt(r.default()), i = e.findIndex((e) => e.type !== t);
|
|
808
|
+
if (i === -1) return e;
|
|
809
|
+
let o = e[i];
|
|
810
|
+
delete o.props?.ref;
|
|
811
|
+
let s = o.props ? w(n, o.props) : n, c = a({
|
|
812
|
+
...o,
|
|
813
|
+
props: {}
|
|
814
|
+
}, s);
|
|
815
|
+
return e.length === 1 ? c : (e[i] = c, e);
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
}), dn = [
|
|
819
|
+
"area",
|
|
820
|
+
"img",
|
|
821
|
+
"input"
|
|
822
|
+
], fn = /*#__PURE__*/ m({
|
|
823
|
+
name: "Primitive",
|
|
824
|
+
inheritAttrs: !1,
|
|
825
|
+
props: {
|
|
826
|
+
asChild: {
|
|
827
|
+
type: Boolean,
|
|
828
|
+
default: !1
|
|
829
|
+
},
|
|
830
|
+
as: {
|
|
831
|
+
type: [String, Object],
|
|
832
|
+
default: "div"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
setup(e, { attrs: t, slots: n }) {
|
|
836
|
+
let r = e.asChild ? "template" : e.as;
|
|
837
|
+
return typeof r == "string" && dn.includes(r) ? () => y(r, t) : r === "template" ? () => y(un, t, { default: n.default }) : () => y(e.as, t, { default: n.default });
|
|
838
|
+
}
|
|
839
|
+
}), pn = "dismissableLayer.pointerDownOutside", mn = "dismissableLayer.focusOutside";
|
|
840
|
+
function hn(e) {
|
|
841
|
+
if (typeof e != "object" || !e) return !1;
|
|
842
|
+
let t = e.ownerDocument?.defaultView;
|
|
843
|
+
return typeof Element < "u" && e instanceof Element || !!t && e instanceof t.Element;
|
|
844
|
+
}
|
|
845
|
+
function gn(e, t) {
|
|
846
|
+
if (!hn(t)) return !1;
|
|
847
|
+
if (e.contains(t)) return !0;
|
|
848
|
+
let n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), i = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
849
|
+
return !!(n && (r === n || i.indexOf(r) < i.indexOf(n)));
|
|
850
|
+
}
|
|
851
|
+
function _n(e, t, n = !0) {
|
|
852
|
+
let r = N(!1), i = N(() => {});
|
|
853
|
+
return he((a) => {
|
|
854
|
+
if (!H || !I(n)) return;
|
|
855
|
+
let o = t?.value?.ownerDocument ?? globalThis.document, s = async (n) => {
|
|
856
|
+
let a = n.target;
|
|
857
|
+
if (t?.value && a) {
|
|
858
|
+
if (gn(t.value, a)) o.removeEventListener("click", i.value), r.value = !1;
|
|
859
|
+
else {
|
|
860
|
+
if (n.target && !r.value) {
|
|
861
|
+
let t = { originalEvent: n };
|
|
862
|
+
function r() {
|
|
863
|
+
et(pn, e, t);
|
|
864
|
+
}
|
|
865
|
+
n.pointerType === "touch" ? (o.removeEventListener("click", i.value), i.value = r, o.addEventListener("click", i.value, { once: !0 })) : r();
|
|
866
|
+
} else o.removeEventListener("click", i.value);
|
|
867
|
+
r.value = !1;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
}, c = window.setTimeout(() => {
|
|
871
|
+
o.addEventListener("pointerdown", s);
|
|
872
|
+
}, 0);
|
|
873
|
+
a(() => {
|
|
874
|
+
window.clearTimeout(c), o.removeEventListener("pointerdown", s), o.removeEventListener("click", i.value);
|
|
875
|
+
});
|
|
876
|
+
}), { onPointerDownCapture: () => {
|
|
877
|
+
I(n) && (r.value = !0);
|
|
878
|
+
} };
|
|
879
|
+
}
|
|
880
|
+
function vn(e, t, n = !0) {
|
|
881
|
+
let r = N(!1);
|
|
882
|
+
return he((i) => {
|
|
883
|
+
if (!H || !I(n)) return;
|
|
884
|
+
let a = t?.value?.ownerDocument ?? globalThis.document, o = async (n) => {
|
|
885
|
+
if (!t?.value) return;
|
|
886
|
+
await T(), await T();
|
|
887
|
+
let i = n.target;
|
|
888
|
+
t.value && i && !gn(t.value, i) && n.target && !r.value && et(mn, e, { originalEvent: n });
|
|
889
|
+
};
|
|
890
|
+
a.addEventListener("focusin", o), i(() => a.removeEventListener("focusin", o));
|
|
891
|
+
}), {
|
|
892
|
+
onFocusCapture: () => {
|
|
893
|
+
I(n) && (r.value = !0);
|
|
894
|
+
},
|
|
895
|
+
onBlurCapture: () => {
|
|
896
|
+
I(n) && (r.value = !1);
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/context.js
|
|
901
|
+
var W = /*#__PURE__*/ re({
|
|
902
|
+
layersRoot: /* @__PURE__ */ new Set(),
|
|
903
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
904
|
+
branches: /* @__PURE__ */ new Set()
|
|
905
|
+
}), yn = /* @__PURE__ */ m({
|
|
906
|
+
__name: "DismissableLayer",
|
|
907
|
+
props: {
|
|
908
|
+
disableOutsidePointerEvents: {
|
|
909
|
+
type: Boolean,
|
|
910
|
+
required: !1,
|
|
911
|
+
default: !1
|
|
912
|
+
},
|
|
913
|
+
asChild: {
|
|
914
|
+
type: Boolean,
|
|
915
|
+
required: !1
|
|
916
|
+
},
|
|
917
|
+
as: {
|
|
918
|
+
type: null,
|
|
919
|
+
required: !1
|
|
920
|
+
},
|
|
921
|
+
present: {
|
|
922
|
+
type: Boolean,
|
|
923
|
+
required: !1,
|
|
924
|
+
default: !0
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
emits: [
|
|
928
|
+
"escapeKeyDown",
|
|
929
|
+
"pointerDownOutside",
|
|
930
|
+
"focusOutside",
|
|
931
|
+
"interactOutside",
|
|
932
|
+
"dismiss"
|
|
933
|
+
],
|
|
934
|
+
setup(e, { emit: t }) {
|
|
935
|
+
let n = e, r = t, { forwardRef: i, currentElement: a } = U(), c = o(() => a.value?.ownerDocument ?? globalThis.document), l = o(() => W.layersRoot), u = o(() => a.value ? Array.from(l.value).indexOf(a.value) : -1), d = o(() => W.layersWithOutsidePointerEventsDisabled.size > 0), f = o(() => {
|
|
936
|
+
let e = Array.from(l.value), [t] = [...W.layersWithOutsidePointerEventsDisabled].slice(-1), n = e.indexOf(t);
|
|
937
|
+
return u.value >= n;
|
|
938
|
+
}), p = _n(async (e) => {
|
|
939
|
+
let t = [...W.branches].some((t) => t?.contains(e.target));
|
|
940
|
+
n.present && f.value && !t && (r("pointerDownOutside", e), r("interactOutside", e), await T(), e.defaultPrevented || r("dismiss"));
|
|
941
|
+
}, a, () => n.present), m = vn((e) => {
|
|
942
|
+
let t = [...W.branches].some((t) => t?.contains(e.target));
|
|
943
|
+
n.present && !t && (r("focusOutside", e), r("interactOutside", e), e.defaultPrevented || r("dismiss"));
|
|
944
|
+
}, a);
|
|
945
|
+
return xt("Escape", (e) => {
|
|
946
|
+
n.present && u.value === l.value.size - 1 && (r("escapeKeyDown", e), e.defaultPrevented || r("dismiss"));
|
|
947
|
+
}, { target: () => c.value?.defaultView ?? globalThis.window }), R([
|
|
948
|
+
a,
|
|
949
|
+
() => n.disableOutsidePointerEvents,
|
|
950
|
+
() => n.present
|
|
951
|
+
], ([e, t, n], r, i) => {
|
|
952
|
+
if (e && n && t) {
|
|
953
|
+
let t = e.ownerDocument;
|
|
954
|
+
Ot(t, e), W.layersWithOutsidePointerEventsDisabled.add(e), i(() => {
|
|
955
|
+
W.layersWithOutsidePointerEventsDisabled.delete(e), kt(t, e);
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
}, { immediate: !0 }), R([a, () => n.present], ([e, t], n, r) => {
|
|
959
|
+
e && t && (l.value.add(e), r(() => {
|
|
960
|
+
l.value.delete(e);
|
|
961
|
+
}));
|
|
962
|
+
}, { immediate: !0 }), he((e) => {
|
|
963
|
+
e(() => {
|
|
964
|
+
a.value && (l.value.delete(a.value), W.layersWithOutsidePointerEventsDisabled.delete(a.value));
|
|
965
|
+
});
|
|
966
|
+
}), (t, n) => (M(), s(L(fn), {
|
|
967
|
+
ref: L(i),
|
|
968
|
+
"as-child": e.asChild,
|
|
969
|
+
as: e.as,
|
|
970
|
+
"data-dismissable-layer": "",
|
|
971
|
+
style: ee({ pointerEvents: d.value ? f.value ? "auto" : "none" : void 0 }),
|
|
972
|
+
onFocusCapture: L(m).onFocusCapture,
|
|
973
|
+
onBlurCapture: L(m).onBlurCapture,
|
|
974
|
+
onPointerdownCapture: L(p).onPointerDownCapture
|
|
975
|
+
}, {
|
|
976
|
+
default: z(() => [P(t.$slots, "default")]),
|
|
977
|
+
_: 3
|
|
978
|
+
}, 8, [
|
|
979
|
+
"as-child",
|
|
980
|
+
"as",
|
|
981
|
+
"style",
|
|
982
|
+
"onFocusCapture",
|
|
983
|
+
"onBlurCapture",
|
|
984
|
+
"onPointerdownCapture"
|
|
985
|
+
]));
|
|
986
|
+
}
|
|
987
|
+
}), bn = nt(() => N([]));
|
|
988
|
+
function xn() {
|
|
989
|
+
let e = bn();
|
|
990
|
+
return {
|
|
991
|
+
add(t) {
|
|
992
|
+
let n = e.value[0];
|
|
993
|
+
t !== n && n?.pause(), e.value = Sn(e.value, t), e.value.unshift(t);
|
|
994
|
+
},
|
|
995
|
+
remove(t) {
|
|
996
|
+
e.value = Sn(e.value, t), e.value[0]?.resume();
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
function Sn(e, t) {
|
|
1001
|
+
let n = [...e], r = n.indexOf(t);
|
|
1002
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
1003
|
+
}
|
|
1004
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/FocusScope/utils.js
|
|
1005
|
+
var Cn = "focusScope.autoFocusOnMount", wn = "focusScope.autoFocusOnUnmount", Tn = {
|
|
1006
|
+
bubbles: !1,
|
|
1007
|
+
cancelable: !0
|
|
1008
|
+
};
|
|
1009
|
+
function En(e, t) {
|
|
1010
|
+
let n = t;
|
|
1011
|
+
for (; n;) {
|
|
1012
|
+
if (e.contains(n)) return !0;
|
|
1013
|
+
n = n.getRootNode().host ?? null;
|
|
1014
|
+
}
|
|
1015
|
+
return !1;
|
|
1016
|
+
}
|
|
1017
|
+
function Dn(e, { select: t = !1 } = {}) {
|
|
1018
|
+
let n = V();
|
|
1019
|
+
for (let r of e) if (G(r, { select: t }), V() !== n) return !0;
|
|
1020
|
+
}
|
|
1021
|
+
function On(e) {
|
|
1022
|
+
let t = kn(e);
|
|
1023
|
+
return [An(t, e), An(t.reverse(), e)];
|
|
1024
|
+
}
|
|
1025
|
+
function kn(e) {
|
|
1026
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
1027
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
1028
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1029
|
+
} });
|
|
1030
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
1031
|
+
return t.sort((e, t) => e.tabIndex === t.tabIndex ? 0 : e.tabIndex === 0 ? 1 : t.tabIndex === 0 ? -1 : e.tabIndex - t.tabIndex);
|
|
1032
|
+
}
|
|
1033
|
+
function An(e, t) {
|
|
1034
|
+
for (let n of e) if (!jn(n, { upTo: t })) return n;
|
|
1035
|
+
}
|
|
1036
|
+
function jn(e, { upTo: t }) {
|
|
1037
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1038
|
+
for (; e;) {
|
|
1039
|
+
if (t !== void 0 && e === t) return !1;
|
|
1040
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
1041
|
+
e = e.parentElement;
|
|
1042
|
+
}
|
|
1043
|
+
return !1;
|
|
1044
|
+
}
|
|
1045
|
+
function Mn(e) {
|
|
1046
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
1047
|
+
}
|
|
1048
|
+
function G(e, { select: t = !1 } = {}) {
|
|
1049
|
+
if (e && e.focus) {
|
|
1050
|
+
let n = V();
|
|
1051
|
+
e.focus({ preventScroll: !0 }), e !== n && Mn(e) && t && e.select();
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/FocusScope/FocusScope.js
|
|
1055
|
+
var Nn = /* @__PURE__ */ m({
|
|
1056
|
+
__name: "FocusScope",
|
|
1057
|
+
props: {
|
|
1058
|
+
loop: {
|
|
1059
|
+
type: Boolean,
|
|
1060
|
+
required: !1,
|
|
1061
|
+
default: !1
|
|
1062
|
+
},
|
|
1063
|
+
trapped: {
|
|
1064
|
+
type: Boolean,
|
|
1065
|
+
required: !1,
|
|
1066
|
+
default: !1
|
|
1067
|
+
},
|
|
1068
|
+
present: {
|
|
1069
|
+
type: Boolean,
|
|
1070
|
+
required: !1,
|
|
1071
|
+
default: !0
|
|
1072
|
+
},
|
|
1073
|
+
asChild: {
|
|
1074
|
+
type: Boolean,
|
|
1075
|
+
required: !1
|
|
1076
|
+
},
|
|
1077
|
+
as: {
|
|
1078
|
+
type: null,
|
|
1079
|
+
required: !1
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
1083
|
+
setup(e, { emit: t }) {
|
|
1084
|
+
let n = e, r = t, { currentRef: i, currentElement: a } = U(), o = N(null), c = xn(), l = /*#__PURE__*/ re({
|
|
1085
|
+
paused: !1,
|
|
1086
|
+
pause() {
|
|
1087
|
+
this.paused = !0;
|
|
1088
|
+
},
|
|
1089
|
+
resume() {
|
|
1090
|
+
this.paused = !1;
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
he((e) => {
|
|
1094
|
+
if (!H) return;
|
|
1095
|
+
let t = a.value;
|
|
1096
|
+
if (!n.trapped) return;
|
|
1097
|
+
let r = t?.ownerDocument ?? document, i = t ? t.getRootNode() : r;
|
|
1098
|
+
function s(e) {
|
|
1099
|
+
if (l.paused || !t) return;
|
|
1100
|
+
let n = e.target;
|
|
1101
|
+
t.contains(n) ? o.value = n : G(o.value, { select: !0 });
|
|
1102
|
+
}
|
|
1103
|
+
function c(e) {
|
|
1104
|
+
if (l.paused || !t) return;
|
|
1105
|
+
let n = e.relatedTarget;
|
|
1106
|
+
n !== null && (t.contains(n) || G(o.value, { select: !0 }));
|
|
1107
|
+
}
|
|
1108
|
+
function u(e) {
|
|
1109
|
+
let n = o.value;
|
|
1110
|
+
if (n === null || !e.some((e) => e.removedNodes.length > 0)) return;
|
|
1111
|
+
let r = V();
|
|
1112
|
+
r && t.contains(r) || t.contains(n) || G(t);
|
|
1113
|
+
}
|
|
1114
|
+
function d(e) {
|
|
1115
|
+
if (l.paused || !t) return;
|
|
1116
|
+
let n = e.composedPath()[0];
|
|
1117
|
+
En(t, n) || G(o.value, { select: !0 });
|
|
1118
|
+
}
|
|
1119
|
+
i.addEventListener("focusin", s), i.addEventListener("focusout", c), i !== r && r.addEventListener("focusin", d);
|
|
1120
|
+
let f = new MutationObserver(u);
|
|
1121
|
+
t && f.observe(t, {
|
|
1122
|
+
childList: !0,
|
|
1123
|
+
subtree: !0
|
|
1124
|
+
}), e(() => {
|
|
1125
|
+
i.removeEventListener("focusin", s), i.removeEventListener("focusout", c), i !== r && r.removeEventListener("focusin", d), f.disconnect();
|
|
1126
|
+
});
|
|
1127
|
+
});
|
|
1128
|
+
function u(e, t) {
|
|
1129
|
+
let n = new CustomEvent(Cn, Tn), i = (e) => r("mountAutoFocus", e);
|
|
1130
|
+
e.addEventListener(Cn, i), e.dispatchEvent(n), e.removeEventListener(Cn, i), n.defaultPrevented || (Dn(kn(e), { select: !0 }), V() === t && G(e));
|
|
1131
|
+
}
|
|
1132
|
+
he(async (e) => {
|
|
1133
|
+
let t = a.value;
|
|
1134
|
+
if (await T(), !t) return;
|
|
1135
|
+
n.present !== !1 && c.add(l);
|
|
1136
|
+
let i = V();
|
|
1137
|
+
!t.contains(i) && n.present !== !1 && u(t, i), e(() => {
|
|
1138
|
+
let e = new CustomEvent(wn, Tn), n = (e) => {
|
|
1139
|
+
r("unmountAutoFocus", e);
|
|
1140
|
+
};
|
|
1141
|
+
t.addEventListener(wn, n), t.dispatchEvent(e), t.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
1142
|
+
e.defaultPrevented || G(i ?? document.body, { select: !0 }), t.removeEventListener(wn, n), c.remove(l), t.removeAttribute("data-focus-scope-unmounting");
|
|
1143
|
+
}, 0);
|
|
1144
|
+
});
|
|
1145
|
+
}), R(() => n.present, async (e, t) => {
|
|
1146
|
+
if (!H) return;
|
|
1147
|
+
if (e === !1 && t === !0) {
|
|
1148
|
+
c.remove(l);
|
|
1149
|
+
return;
|
|
1150
|
+
}
|
|
1151
|
+
if (e !== !0 || t !== !1) return;
|
|
1152
|
+
c.add(l), await T();
|
|
1153
|
+
let n = a.value;
|
|
1154
|
+
if (!n) return;
|
|
1155
|
+
let r = V();
|
|
1156
|
+
n.contains(r) || u(n, r);
|
|
1157
|
+
});
|
|
1158
|
+
function d(e) {
|
|
1159
|
+
if (!n.loop && !n.trapped || l.paused) return;
|
|
1160
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = V();
|
|
1161
|
+
if (t && r) {
|
|
1162
|
+
let t = e.currentTarget, [i, a] = On(t);
|
|
1163
|
+
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop && G(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n.loop && G(a, { select: !0 })) : r === t && e.preventDefault();
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
return (t, n) => (M(), s(L(fn), {
|
|
1167
|
+
ref_key: "currentRef",
|
|
1168
|
+
ref: i,
|
|
1169
|
+
tabindex: "-1",
|
|
1170
|
+
"as-child": e.asChild,
|
|
1171
|
+
as: e.as,
|
|
1172
|
+
onKeydown: d
|
|
1173
|
+
}, {
|
|
1174
|
+
default: z(() => [P(t.$slots, "default")]),
|
|
1175
|
+
_: 3
|
|
1176
|
+
}, 8, ["as-child", "as"]));
|
|
1177
|
+
}
|
|
1178
|
+
}), Pn = /* @__PURE__ */ m({
|
|
1179
|
+
__name: "Teleport",
|
|
1180
|
+
props: {
|
|
1181
|
+
to: {
|
|
1182
|
+
type: null,
|
|
1183
|
+
required: !1
|
|
1184
|
+
},
|
|
1185
|
+
disabled: {
|
|
1186
|
+
type: Boolean,
|
|
1187
|
+
required: !1
|
|
1188
|
+
},
|
|
1189
|
+
defer: {
|
|
1190
|
+
type: Boolean,
|
|
1191
|
+
required: !1
|
|
1192
|
+
},
|
|
1193
|
+
forceMount: {
|
|
1194
|
+
type: Boolean,
|
|
1195
|
+
required: !1
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
setup(e) {
|
|
1199
|
+
let t = e, n = Tt({}), i = o(() => t.to ?? n.teleportTo?.value ?? "body"), a = yt();
|
|
1200
|
+
return (t, n) => L(a) || e.forceMount ? (M(), s(r, {
|
|
1201
|
+
key: 0,
|
|
1202
|
+
to: i.value,
|
|
1203
|
+
disabled: e.disabled,
|
|
1204
|
+
defer: e.defer
|
|
1205
|
+
}, [P(t.$slots, "default")], 8, [
|
|
1206
|
+
"to",
|
|
1207
|
+
"disabled",
|
|
1208
|
+
"defer"
|
|
1209
|
+
])) : c("v-if", !0);
|
|
1210
|
+
}
|
|
1211
|
+
}), [Fn, In] = /*#__PURE__*/ $e("PopperRoot"), Ln = /* @__PURE__ */ m({
|
|
1212
|
+
inheritAttrs: !1,
|
|
1213
|
+
__name: "PopperRoot",
|
|
1214
|
+
setup(e) {
|
|
1215
|
+
let t = N();
|
|
1216
|
+
return In({
|
|
1217
|
+
anchor: t,
|
|
1218
|
+
onAnchorChange: (e) => t.value = e
|
|
1219
|
+
}), (e, t) => P(e.$slots, "default");
|
|
1220
|
+
}
|
|
1221
|
+
}), Rn = /* @__PURE__ */ m({
|
|
1222
|
+
__name: "PopperAnchor",
|
|
1223
|
+
props: {
|
|
1224
|
+
reference: {
|
|
1225
|
+
type: null,
|
|
1226
|
+
required: !1
|
|
1227
|
+
},
|
|
1228
|
+
asChild: {
|
|
1229
|
+
type: Boolean,
|
|
1230
|
+
required: !1
|
|
1231
|
+
},
|
|
1232
|
+
as: {
|
|
1233
|
+
type: null,
|
|
1234
|
+
required: !1
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
setup(e) {
|
|
1238
|
+
let t = e, { forwardRef: n, currentElement: r } = U(), i = Fn();
|
|
1239
|
+
return ge(() => {
|
|
1240
|
+
i.onAnchorChange(t.reference ?? r.value);
|
|
1241
|
+
}), (t, r) => (M(), s(L(fn), {
|
|
1242
|
+
ref: L(n),
|
|
1243
|
+
as: e.as,
|
|
1244
|
+
"as-child": e.asChild
|
|
1245
|
+
}, {
|
|
1246
|
+
default: z(() => [P(t.$slots, "default")]),
|
|
1247
|
+
_: 3
|
|
1248
|
+
}, 8, ["as", "as-child"]));
|
|
1249
|
+
}
|
|
1250
|
+
});
|
|
1251
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/utils.js
|
|
1252
|
+
function zn(e) {
|
|
1253
|
+
return e !== null;
|
|
1254
|
+
}
|
|
1255
|
+
function Bn(e) {
|
|
1256
|
+
return {
|
|
1257
|
+
name: "transformOrigin",
|
|
1258
|
+
options: e,
|
|
1259
|
+
fn(t) {
|
|
1260
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Vn(n), u = {
|
|
1261
|
+
start: e.dir === "rtl" ? "100%" : "0%",
|
|
1262
|
+
center: "50%",
|
|
1263
|
+
end: e.dir === "rtl" ? "0%" : "100%"
|
|
1264
|
+
}[l], d = {
|
|
1265
|
+
start: "0%",
|
|
1266
|
+
center: "50%",
|
|
1267
|
+
end: "100%"
|
|
1268
|
+
}[l], f = (i.arrow?.x ?? 0) + o / 2, p = (i.arrow?.y ?? 0) + s / 2, m = "", h = "";
|
|
1269
|
+
return c === "bottom" ? (m = a ? u : `${f}px`, h = `${-s}px`) : c === "top" ? (m = a ? u : `${f}px`, h = `${r.floating.height + s}px`) : c === "right" ? (m = `${-s}px`, h = a ? d : `${p}px`) : c === "left" && (m = `${r.floating.width + s}px`, h = a ? d : `${p}px`), { data: {
|
|
1270
|
+
x: m,
|
|
1271
|
+
y: h
|
|
1272
|
+
} };
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
function Vn(e) {
|
|
1277
|
+
let [t, n = "center"] = e.split("-");
|
|
1278
|
+
return [t, n];
|
|
1279
|
+
}
|
|
1280
|
+
// ../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
1281
|
+
var Hn = [
|
|
1282
|
+
"top",
|
|
1283
|
+
"right",
|
|
1284
|
+
"bottom",
|
|
1285
|
+
"left"
|
|
1286
|
+
], Un = Math.min, K = Math.max, Wn = Math.round, Gn = Math.floor, q = (e) => ({
|
|
1287
|
+
x: e,
|
|
1288
|
+
y: e
|
|
1289
|
+
}), Kn = {
|
|
1290
|
+
left: "right",
|
|
1291
|
+
right: "left",
|
|
1292
|
+
bottom: "top",
|
|
1293
|
+
top: "bottom"
|
|
1294
|
+
};
|
|
1295
|
+
function qn(e, t, n) {
|
|
1296
|
+
return K(e, Un(t, n));
|
|
1297
|
+
}
|
|
1298
|
+
function J(e, t) {
|
|
1299
|
+
return typeof e == "function" ? e(t) : e;
|
|
1300
|
+
}
|
|
1301
|
+
function Jn(e) {
|
|
1302
|
+
return e.split("-")[0];
|
|
1303
|
+
}
|
|
1304
|
+
function Yn(e) {
|
|
1305
|
+
return e.split("-")[1];
|
|
1306
|
+
}
|
|
1307
|
+
function Xn(e) {
|
|
1308
|
+
return e === "x" ? "y" : "x";
|
|
1309
|
+
}
|
|
1310
|
+
function Zn(e) {
|
|
1311
|
+
return e === "y" ? "height" : "width";
|
|
1312
|
+
}
|
|
1313
|
+
function Y(e) {
|
|
1314
|
+
let t = e[0];
|
|
1315
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
1316
|
+
}
|
|
1317
|
+
function Qn(e) {
|
|
1318
|
+
return Xn(Y(e));
|
|
1319
|
+
}
|
|
1320
|
+
function $n(e, t, n) {
|
|
1321
|
+
n === void 0 && (n = !1);
|
|
1322
|
+
let r = Yn(e), i = Qn(e), a = Zn(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1323
|
+
return t.reference[a] > t.floating[a] && (o = cr(o)), [o, cr(o)];
|
|
1324
|
+
}
|
|
1325
|
+
function er(e) {
|
|
1326
|
+
let t = cr(e);
|
|
1327
|
+
return [
|
|
1328
|
+
tr(e),
|
|
1329
|
+
t,
|
|
1330
|
+
tr(t)
|
|
1331
|
+
];
|
|
1332
|
+
}
|
|
1333
|
+
function tr(e) {
|
|
1334
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1335
|
+
}
|
|
1336
|
+
var nr = ["left", "right"], rr = ["right", "left"], ir = ["top", "bottom"], ar = ["bottom", "top"];
|
|
1337
|
+
function or(e, t, n) {
|
|
1338
|
+
switch (e) {
|
|
1339
|
+
case "top":
|
|
1340
|
+
case "bottom": return n ? t ? rr : nr : t ? nr : rr;
|
|
1341
|
+
case "left":
|
|
1342
|
+
case "right": return t ? ir : ar;
|
|
1343
|
+
default: return [];
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
function sr(e, t, n, r) {
|
|
1347
|
+
let i = Yn(e), a = or(Jn(e), n === "start", r);
|
|
1348
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(tr)))), a;
|
|
1349
|
+
}
|
|
1350
|
+
function cr(e) {
|
|
1351
|
+
let t = Jn(e);
|
|
1352
|
+
return Kn[t] + e.slice(t.length);
|
|
1353
|
+
}
|
|
1354
|
+
function lr(e) {
|
|
1355
|
+
return {
|
|
1356
|
+
top: e.top ?? 0,
|
|
1357
|
+
right: e.right ?? 0,
|
|
1358
|
+
bottom: e.bottom ?? 0,
|
|
1359
|
+
left: e.left ?? 0
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
function ur(e) {
|
|
1363
|
+
return typeof e == "number" ? {
|
|
1364
|
+
top: e,
|
|
1365
|
+
right: e,
|
|
1366
|
+
bottom: e,
|
|
1367
|
+
left: e
|
|
1368
|
+
} : lr(e);
|
|
1369
|
+
}
|
|
1370
|
+
function dr(e) {
|
|
1371
|
+
let { x: t, y: n, width: r, height: i } = e;
|
|
1372
|
+
return {
|
|
1373
|
+
width: r,
|
|
1374
|
+
height: i,
|
|
1375
|
+
top: n,
|
|
1376
|
+
left: t,
|
|
1377
|
+
right: t + r,
|
|
1378
|
+
bottom: n + i,
|
|
1379
|
+
x: t,
|
|
1380
|
+
y: n
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
// ../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1384
|
+
function fr(e, t, n) {
|
|
1385
|
+
let { reference: r, floating: i } = e, a = Y(t), o = Qn(t), s = Zn(o), c = Jn(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1386
|
+
switch (c) {
|
|
1387
|
+
case "top":
|
|
1388
|
+
p = {
|
|
1389
|
+
x: u,
|
|
1390
|
+
y: r.y - i.height
|
|
1391
|
+
};
|
|
1392
|
+
break;
|
|
1393
|
+
case "bottom":
|
|
1394
|
+
p = {
|
|
1395
|
+
x: u,
|
|
1396
|
+
y: r.y + r.height
|
|
1397
|
+
};
|
|
1398
|
+
break;
|
|
1399
|
+
case "right":
|
|
1400
|
+
p = {
|
|
1401
|
+
x: r.x + r.width,
|
|
1402
|
+
y: d
|
|
1403
|
+
};
|
|
1404
|
+
break;
|
|
1405
|
+
case "left":
|
|
1406
|
+
p = {
|
|
1407
|
+
x: r.x - i.width,
|
|
1408
|
+
y: d
|
|
1409
|
+
};
|
|
1410
|
+
break;
|
|
1411
|
+
default: p = {
|
|
1412
|
+
x: r.x,
|
|
1413
|
+
y: r.y
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
let m = Yn(t);
|
|
1417
|
+
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
1418
|
+
}
|
|
1419
|
+
async function pr(e, t) {
|
|
1420
|
+
t === void 0 && (t = {});
|
|
1421
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = J(t, e), p = ur(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = dr(await i.getClippingRect({
|
|
1422
|
+
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
1423
|
+
boundary: c,
|
|
1424
|
+
rootBoundary: l,
|
|
1425
|
+
strategy: s
|
|
1426
|
+
})), g = u === "floating" ? {
|
|
1427
|
+
x: n,
|
|
1428
|
+
y: r,
|
|
1429
|
+
width: a.floating.width,
|
|
1430
|
+
height: a.floating.height
|
|
1431
|
+
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1432
|
+
x: 1,
|
|
1433
|
+
y: 1
|
|
1434
|
+
}, y = dr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1435
|
+
elements: o,
|
|
1436
|
+
rect: g,
|
|
1437
|
+
offsetParent: _,
|
|
1438
|
+
strategy: s
|
|
1439
|
+
}) : g);
|
|
1440
|
+
return {
|
|
1441
|
+
top: (h.top - y.top + p.top) / v.y,
|
|
1442
|
+
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
|
|
1443
|
+
left: (h.left - y.left + p.left) / v.x,
|
|
1444
|
+
right: (y.right - h.right + p.right) / v.x
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
var mr = 50, hr = async (e, t, n) => {
|
|
1448
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1449
|
+
...o,
|
|
1450
|
+
detectOverflow: pr
|
|
1451
|
+
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1452
|
+
reference: e,
|
|
1453
|
+
floating: t,
|
|
1454
|
+
strategy: i
|
|
1455
|
+
}), { x: u, y: d } = fr(l, r, c), f = r, p = 0, m = {};
|
|
1456
|
+
for (let n = 0; n < a.length; n++) {
|
|
1457
|
+
let h = a[n];
|
|
1458
|
+
if (!h) continue;
|
|
1459
|
+
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
|
|
1460
|
+
x: u,
|
|
1461
|
+
y: d,
|
|
1462
|
+
initialPlacement: r,
|
|
1463
|
+
placement: f,
|
|
1464
|
+
strategy: i,
|
|
1465
|
+
middlewareData: m,
|
|
1466
|
+
rects: l,
|
|
1467
|
+
platform: s,
|
|
1468
|
+
elements: {
|
|
1469
|
+
reference: e,
|
|
1470
|
+
floating: t
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
u = v ?? u, d = y ?? d, m[g] = {
|
|
1474
|
+
...m[g],
|
|
1475
|
+
...b
|
|
1476
|
+
}, x && p < mr && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1477
|
+
reference: e,
|
|
1478
|
+
floating: t,
|
|
1479
|
+
strategy: i
|
|
1480
|
+
}) : x.rects), {x: u, y: d} = fr(l, f, c)), n = -1);
|
|
1481
|
+
}
|
|
1482
|
+
return {
|
|
1483
|
+
x: u,
|
|
1484
|
+
y: d,
|
|
1485
|
+
placement: f,
|
|
1486
|
+
strategy: i,
|
|
1487
|
+
middlewareData: m
|
|
1488
|
+
};
|
|
1489
|
+
}, gr = (e) => ({
|
|
1490
|
+
name: "arrow",
|
|
1491
|
+
options: e,
|
|
1492
|
+
async fn(t) {
|
|
1493
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = J(e, t) || {};
|
|
1494
|
+
if (l == null) return {};
|
|
1495
|
+
let d = ur(u), f = {
|
|
1496
|
+
x: n,
|
|
1497
|
+
y: r
|
|
1498
|
+
}, p = Qn(i), m = Zn(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
1499
|
+
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
|
|
1500
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Un(d[_], T), ee = Un(d[v], T), D = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, k = qn(E, O, D), A = !c.arrow && Yn(i) != null && O !== k && a.reference[m] / 2 - (O < E ? E : ee) - h[m] / 2 < 0, j = A ? O < E ? O - E : O - D : 0;
|
|
1501
|
+
return {
|
|
1502
|
+
[p]: f[p] + j,
|
|
1503
|
+
data: {
|
|
1504
|
+
[p]: k,
|
|
1505
|
+
centerOffset: O - k - j,
|
|
1506
|
+
...A && { alignmentOffset: j }
|
|
1507
|
+
},
|
|
1508
|
+
reset: A
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
}), _r = function(e) {
|
|
1512
|
+
return e === void 0 && (e = {}), {
|
|
1513
|
+
name: "flip",
|
|
1514
|
+
options: e,
|
|
1515
|
+
async fn(t) {
|
|
1516
|
+
var n;
|
|
1517
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = J(e, t);
|
|
1518
|
+
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
1519
|
+
let g = Jn(r), _ = Y(o), v = Jn(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [cr(o)] : er(o)), x = p !== "none";
|
|
1520
|
+
!d && x && b.push(...sr(o, m, p, y));
|
|
1521
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
1522
|
+
if (l && w.push(C[g]), u) {
|
|
1523
|
+
let e = $n(r, a, y);
|
|
1524
|
+
w.push(C[e[0]], C[e[1]]);
|
|
1525
|
+
}
|
|
1526
|
+
if (T = [...T, {
|
|
1527
|
+
placement: r,
|
|
1528
|
+
overflows: w
|
|
1529
|
+
}], !w.every((e) => e <= 0)) {
|
|
1530
|
+
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
1531
|
+
if (t && (u !== "alignment" || _ === Y(t) || T.every((e) => Y(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
1532
|
+
data: {
|
|
1533
|
+
index: e,
|
|
1534
|
+
overflows: T
|
|
1535
|
+
},
|
|
1536
|
+
reset: { placement: t }
|
|
1537
|
+
};
|
|
1538
|
+
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
1539
|
+
if (!n) switch (f) {
|
|
1540
|
+
case "bestFit": {
|
|
1541
|
+
let e = T.filter((e) => {
|
|
1542
|
+
if (x) {
|
|
1543
|
+
let t = Y(e.placement);
|
|
1544
|
+
return t === _ || t === "y";
|
|
1545
|
+
}
|
|
1546
|
+
return !0;
|
|
1547
|
+
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
1548
|
+
e && (n = e);
|
|
1549
|
+
break;
|
|
1550
|
+
}
|
|
1551
|
+
case "initialPlacement": n = o;
|
|
1552
|
+
}
|
|
1553
|
+
if (r !== n) return { reset: { placement: n } };
|
|
1554
|
+
}
|
|
1555
|
+
return {};
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
function vr(e, t) {
|
|
1560
|
+
return {
|
|
1561
|
+
top: e.top - t.height,
|
|
1562
|
+
right: e.right - t.width,
|
|
1563
|
+
bottom: e.bottom - t.height,
|
|
1564
|
+
left: e.left - t.width
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
function yr(e) {
|
|
1568
|
+
return Hn.some((t) => e[t] >= 0);
|
|
1569
|
+
}
|
|
1570
|
+
var br = function(e) {
|
|
1571
|
+
return e === void 0 && (e = {}), {
|
|
1572
|
+
name: "hide",
|
|
1573
|
+
options: e,
|
|
1574
|
+
async fn(t) {
|
|
1575
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = J(e, t);
|
|
1576
|
+
switch (i) {
|
|
1577
|
+
case "referenceHidden": {
|
|
1578
|
+
let e = vr(await r.detectOverflow(t, {
|
|
1579
|
+
...a,
|
|
1580
|
+
elementContext: "reference"
|
|
1581
|
+
}), n.reference);
|
|
1582
|
+
return { data: {
|
|
1583
|
+
referenceHiddenOffsets: e,
|
|
1584
|
+
referenceHidden: yr(e)
|
|
1585
|
+
} };
|
|
1586
|
+
}
|
|
1587
|
+
case "escaped": {
|
|
1588
|
+
let e = vr(await r.detectOverflow(t, {
|
|
1589
|
+
...a,
|
|
1590
|
+
altBoundary: !0
|
|
1591
|
+
}), n.floating);
|
|
1592
|
+
return { data: {
|
|
1593
|
+
escapedOffsets: e,
|
|
1594
|
+
escaped: yr(e)
|
|
1595
|
+
} };
|
|
1596
|
+
}
|
|
1597
|
+
default: return {};
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
}, xr = /*#__PURE__*/ new Set(["left", "top"]);
|
|
1602
|
+
async function Sr(e, t) {
|
|
1603
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Jn(n), s = Yn(n), c = Y(n) === "y", l = xr.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = J(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
1604
|
+
mainAxis: d,
|
|
1605
|
+
crossAxis: 0,
|
|
1606
|
+
alignmentAxis: null
|
|
1607
|
+
} : {
|
|
1608
|
+
mainAxis: d.mainAxis || 0,
|
|
1609
|
+
crossAxis: d.crossAxis || 0,
|
|
1610
|
+
alignmentAxis: d.alignmentAxis
|
|
1611
|
+
};
|
|
1612
|
+
return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
|
|
1613
|
+
x: p * u,
|
|
1614
|
+
y: f * l
|
|
1615
|
+
} : {
|
|
1616
|
+
x: f * l,
|
|
1617
|
+
y: p * u
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
var Cr = function(e) {
|
|
1621
|
+
return e === void 0 && (e = 0), {
|
|
1622
|
+
name: "offset",
|
|
1623
|
+
options: e,
|
|
1624
|
+
async fn(t) {
|
|
1625
|
+
var n;
|
|
1626
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Sr(t, e);
|
|
1627
|
+
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
1628
|
+
x: r + s.x,
|
|
1629
|
+
y: i + s.y,
|
|
1630
|
+
data: {
|
|
1631
|
+
...s,
|
|
1632
|
+
placement: a
|
|
1633
|
+
}
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
}, wr = function(e) {
|
|
1638
|
+
return e === void 0 && (e = {}), {
|
|
1639
|
+
name: "shift",
|
|
1640
|
+
options: e,
|
|
1641
|
+
async fn(t) {
|
|
1642
|
+
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
|
|
1643
|
+
let { x: t, y: n } = e;
|
|
1644
|
+
return {
|
|
1645
|
+
x: t,
|
|
1646
|
+
y: n
|
|
1647
|
+
};
|
|
1648
|
+
} }, ...l } = J(e, t), u = {
|
|
1649
|
+
x: n,
|
|
1650
|
+
y: r
|
|
1651
|
+
}, d = await a.detectOverflow(t, l), f = Y(i), p = Xn(f), m = u[p], h = u[f], g = (e, t) => qn(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
1652
|
+
o && (m = g(p, m)), s && (h = g(f, h));
|
|
1653
|
+
let _ = c.fn({
|
|
1654
|
+
...t,
|
|
1655
|
+
[p]: m,
|
|
1656
|
+
[f]: h
|
|
1657
|
+
});
|
|
1658
|
+
return {
|
|
1659
|
+
..._,
|
|
1660
|
+
data: {
|
|
1661
|
+
x: _.x - n,
|
|
1662
|
+
y: _.y - r,
|
|
1663
|
+
enabled: {
|
|
1664
|
+
[p]: o,
|
|
1665
|
+
[f]: s
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
};
|
|
1671
|
+
}, Tr = function(e) {
|
|
1672
|
+
return e === void 0 && (e = {}), {
|
|
1673
|
+
options: e,
|
|
1674
|
+
fn(t) {
|
|
1675
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = J(e, t), u = {
|
|
1676
|
+
x: n,
|
|
1677
|
+
y: r
|
|
1678
|
+
}, d = Y(i), f = Xn(d), p = u[f], m = u[d], h = J(s, t), g = typeof h == "number" ? {
|
|
1679
|
+
mainAxis: h,
|
|
1680
|
+
crossAxis: 0
|
|
1681
|
+
} : {
|
|
1682
|
+
mainAxis: h.mainAxis ?? 0,
|
|
1683
|
+
crossAxis: h.crossAxis ?? 0
|
|
1684
|
+
};
|
|
1685
|
+
if (c) {
|
|
1686
|
+
let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
|
|
1687
|
+
p < t ? p = t : p > n && (p = n);
|
|
1688
|
+
}
|
|
1689
|
+
if (l) {
|
|
1690
|
+
let e = f === "y" ? "width" : "height", t = xr.has(Jn(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
1691
|
+
m < n ? m = n : m > r && (m = r);
|
|
1692
|
+
}
|
|
1693
|
+
return {
|
|
1694
|
+
[f]: p,
|
|
1695
|
+
[d]: m
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
}, Er = function(e) {
|
|
1700
|
+
return e === void 0 && (e = {}), {
|
|
1701
|
+
name: "size",
|
|
1702
|
+
options: e,
|
|
1703
|
+
async fn(t) {
|
|
1704
|
+
let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = J(e, t), c = await i.detectOverflow(t, s), l = Jn(n), u = Yn(n), d = Y(n) === "y", { width: f, height: p } = r.floating, m, h;
|
|
1705
|
+
l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
|
|
1706
|
+
let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = Un(p - c[m], g), y = Un(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
|
|
1707
|
+
b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * K(c.left, c.right) : S = p - 2 * K(c.top, c.bottom)), await o({
|
|
1708
|
+
...t,
|
|
1709
|
+
availableWidth: C,
|
|
1710
|
+
availableHeight: S
|
|
1711
|
+
});
|
|
1712
|
+
let w = await i.getDimensions(a.floating);
|
|
1713
|
+
return f !== w.width || p !== w.height ? { reset: { rects: !0 } } : {};
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
// ../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1718
|
+
function Dr() {
|
|
1719
|
+
return typeof window < "u";
|
|
1720
|
+
}
|
|
1721
|
+
function Or(e) {
|
|
1722
|
+
return kr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1723
|
+
}
|
|
1724
|
+
function X(e) {
|
|
1725
|
+
var t;
|
|
1726
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1727
|
+
}
|
|
1728
|
+
function Z(e) {
|
|
1729
|
+
return ((kr(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
1730
|
+
}
|
|
1731
|
+
function kr(e) {
|
|
1732
|
+
return Dr() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
1733
|
+
}
|
|
1734
|
+
function Q(e) {
|
|
1735
|
+
return Dr() ? e instanceof Element || e instanceof X(e).Element : !1;
|
|
1736
|
+
}
|
|
1737
|
+
function Ar(e) {
|
|
1738
|
+
return Dr() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
|
|
1739
|
+
}
|
|
1740
|
+
function jr(e) {
|
|
1741
|
+
return !Dr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
|
|
1742
|
+
}
|
|
1743
|
+
function Mr(e) {
|
|
1744
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
|
|
1745
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
1746
|
+
}
|
|
1747
|
+
function Nr(e) {
|
|
1748
|
+
return /^(table|td|th)$/.test(Or(e));
|
|
1749
|
+
}
|
|
1750
|
+
function Pr(e) {
|
|
1751
|
+
try {
|
|
1752
|
+
if (e.matches(":popover-open")) return !0;
|
|
1753
|
+
} catch {}
|
|
1754
|
+
try {
|
|
1755
|
+
return e.matches(":modal");
|
|
1756
|
+
} catch {
|
|
1757
|
+
return !1;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
var Fr = /transform|translate|scale|rotate|perspective|filter/, Ir = /paint|layout|strict|content/, Lr = (e) => !!e && e !== "none", Rr;
|
|
1761
|
+
function zr(e) {
|
|
1762
|
+
let t = Q(e) ? $(e) : e;
|
|
1763
|
+
return Lr(t.transform) || Lr(t.translate) || Lr(t.scale) || Lr(t.rotate) || Lr(t.perspective) || !Vr() && (Lr(t.backdropFilter) || Lr(t.filter)) || Fr.test(t.willChange || "") || Ir.test(t.contain || "");
|
|
1764
|
+
}
|
|
1765
|
+
function Br(e) {
|
|
1766
|
+
let t = Wr(e);
|
|
1767
|
+
for (; Ar(t) && !Hr(t);) {
|
|
1768
|
+
if (zr(t)) return t;
|
|
1769
|
+
if (Pr(t)) return null;
|
|
1770
|
+
t = Wr(t);
|
|
1771
|
+
}
|
|
1772
|
+
return null;
|
|
1773
|
+
}
|
|
1774
|
+
function Vr() {
|
|
1775
|
+
return Rr ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Rr;
|
|
1776
|
+
}
|
|
1777
|
+
function Hr(e) {
|
|
1778
|
+
return /^(html|body|#document)$/.test(Or(e));
|
|
1779
|
+
}
|
|
1780
|
+
function $(e) {
|
|
1781
|
+
return X(e).getComputedStyle(e);
|
|
1782
|
+
}
|
|
1783
|
+
function Ur(e) {
|
|
1784
|
+
return Q(e) ? {
|
|
1785
|
+
scrollLeft: e.scrollLeft,
|
|
1786
|
+
scrollTop: e.scrollTop
|
|
1787
|
+
} : {
|
|
1788
|
+
scrollLeft: e.scrollX,
|
|
1789
|
+
scrollTop: e.scrollY
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
function Wr(e) {
|
|
1793
|
+
if (Or(e) === "html") return e;
|
|
1794
|
+
let t = e.assignedSlot || e.parentNode || jr(e) && e.host || Z(e);
|
|
1795
|
+
return jr(t) ? t.host : t;
|
|
1796
|
+
}
|
|
1797
|
+
function Gr(e) {
|
|
1798
|
+
let t = Wr(e);
|
|
1799
|
+
return Hr(t) ? (e.ownerDocument || e).body : Ar(t) && Mr(t) ? t : Gr(t);
|
|
1800
|
+
}
|
|
1801
|
+
function Kr(e, t, n) {
|
|
1802
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1803
|
+
let r = Gr(e), i = r === e.ownerDocument?.body, a = X(r);
|
|
1804
|
+
if (i) {
|
|
1805
|
+
let e = qr(a);
|
|
1806
|
+
return t.concat(a, a.visualViewport || [], Mr(r) ? r : [], e && n ? Kr(e) : []);
|
|
1807
|
+
}
|
|
1808
|
+
return t.concat(r, Kr(r, [], n));
|
|
1809
|
+
}
|
|
1810
|
+
function qr(e) {
|
|
1811
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1812
|
+
}
|
|
1813
|
+
// ../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1814
|
+
function Jr(e) {
|
|
1815
|
+
let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ar(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Wn(n) !== a || Wn(r) !== o;
|
|
1816
|
+
return s && (n = a, r = o), {
|
|
1817
|
+
width: n,
|
|
1818
|
+
height: r,
|
|
1819
|
+
$: s
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
function Yr(e) {
|
|
1823
|
+
return Q(e) ? e : e.contextElement;
|
|
1824
|
+
}
|
|
1825
|
+
function Xr(e) {
|
|
1826
|
+
let t = Yr(e);
|
|
1827
|
+
if (!Ar(t)) return q(1);
|
|
1828
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Jr(t), o = (a ? Wn(n.width) : n.width) / r, s = (a ? Wn(n.height) : n.height) / i;
|
|
1829
|
+
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
|
|
1830
|
+
x: o,
|
|
1831
|
+
y: s
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
var Zr = /*#__PURE__*/ q(0);
|
|
1835
|
+
function Qr(e) {
|
|
1836
|
+
let t = X(e);
|
|
1837
|
+
return !Vr() || !t.visualViewport ? Zr : {
|
|
1838
|
+
x: t.visualViewport.offsetLeft,
|
|
1839
|
+
y: t.visualViewport.offsetTop
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
1842
|
+
function $r(e, t, n) {
|
|
1843
|
+
return t === void 0 && (t = !1), !!n && t && n === X(e);
|
|
1844
|
+
}
|
|
1845
|
+
function ei(e, t, n, r) {
|
|
1846
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1847
|
+
let i = e.getBoundingClientRect(), a = Yr(e), o = q(1);
|
|
1848
|
+
t && (r ? Q(r) && (o = Xr(r)) : o = Xr(e));
|
|
1849
|
+
let s = $r(a, n, r) ? Qr(a) : q(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1850
|
+
if (a && r) {
|
|
1851
|
+
let e = X(a), t = Q(r) ? X(r) : r, n = e, i = qr(n);
|
|
1852
|
+
for (; i && t !== n;) {
|
|
1853
|
+
let e = Xr(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1854
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = qr(n);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
return dr({
|
|
1858
|
+
width: u,
|
|
1859
|
+
height: d,
|
|
1860
|
+
x: c,
|
|
1861
|
+
y: l
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
function ti(e, t) {
|
|
1865
|
+
let n = Ur(e).scrollLeft;
|
|
1866
|
+
return t ? t.left + n : ei(Z(e)).left + n;
|
|
1867
|
+
}
|
|
1868
|
+
function ni(e, t) {
|
|
1869
|
+
let n = e.getBoundingClientRect();
|
|
1870
|
+
return {
|
|
1871
|
+
x: n.left + t.scrollLeft - ti(e, n),
|
|
1872
|
+
y: n.top + t.scrollTop
|
|
1873
|
+
};
|
|
1874
|
+
}
|
|
1875
|
+
function ri(e) {
|
|
1876
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ? Pr(t.floating) : !1;
|
|
1877
|
+
if (r === o || s && a) return n;
|
|
1878
|
+
let c = {
|
|
1879
|
+
scrollLeft: 0,
|
|
1880
|
+
scrollTop: 0
|
|
1881
|
+
}, l = q(1), u = q(0), d = Ar(r);
|
|
1882
|
+
if ((d || !a) && ((Or(r) !== "body" || Mr(o)) && (c = Ur(r)), d)) {
|
|
1883
|
+
let e = ei(r);
|
|
1884
|
+
l = Xr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1885
|
+
}
|
|
1886
|
+
let f = o && !d && !a ? ni(o, c) : q(0);
|
|
1887
|
+
return {
|
|
1888
|
+
width: n.width * l.x,
|
|
1889
|
+
height: n.height * l.y,
|
|
1890
|
+
x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
|
|
1891
|
+
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1894
|
+
function ii(e) {
|
|
1895
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
1896
|
+
}
|
|
1897
|
+
function ai(e) {
|
|
1898
|
+
let t = Ur(e), n = e.ownerDocument.body, r = K(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = K(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + ti(e), o = -t.scrollTop;
|
|
1899
|
+
return $(n).direction === "rtl" && (a += K(e.clientWidth, n.clientWidth) - r), {
|
|
1900
|
+
width: r,
|
|
1901
|
+
height: i,
|
|
1902
|
+
x: a,
|
|
1903
|
+
y: o
|
|
1904
|
+
};
|
|
1905
|
+
}
|
|
1906
|
+
var oi = 25;
|
|
1907
|
+
function si(e, t, n) {
|
|
1908
|
+
n === void 0 && (n = "viewport");
|
|
1909
|
+
let r = n === "layoutViewport", i = X(e), a = Z(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
1910
|
+
if (o) {
|
|
1911
|
+
let e = !Vr() || t === "fixed";
|
|
1912
|
+
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
1913
|
+
}
|
|
1914
|
+
if (ti(a) <= 0) {
|
|
1915
|
+
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
1916
|
+
o <= oi && (s -= o);
|
|
1917
|
+
}
|
|
1918
|
+
return {
|
|
1919
|
+
width: s,
|
|
1920
|
+
height: c,
|
|
1921
|
+
x: l,
|
|
1922
|
+
y: u
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
function ci(e, t) {
|
|
1926
|
+
let n = ei(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Xr(e);
|
|
1927
|
+
return {
|
|
1928
|
+
width: e.clientWidth * a.x,
|
|
1929
|
+
height: e.clientHeight * a.y,
|
|
1930
|
+
x: i * a.x,
|
|
1931
|
+
y: r * a.y
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
1934
|
+
function li(e, t, n) {
|
|
1935
|
+
let r;
|
|
1936
|
+
if (t === "viewport" || t === "layoutViewport") r = si(e, n, t);
|
|
1937
|
+
else if (t === "document") r = ai(Z(e));
|
|
1938
|
+
else if (Q(t)) r = ci(t, n);
|
|
1939
|
+
else {
|
|
1940
|
+
let n = Qr(e);
|
|
1941
|
+
r = {
|
|
1942
|
+
x: t.x - n.x,
|
|
1943
|
+
y: t.y - n.y,
|
|
1944
|
+
width: t.width,
|
|
1945
|
+
height: t.height
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1948
|
+
return dr(r);
|
|
1949
|
+
}
|
|
1950
|
+
function ui(e, t) {
|
|
1951
|
+
let n = t.get(e);
|
|
1952
|
+
if (n) return n;
|
|
1953
|
+
let r = Kr(e, [], !1).filter((e) => Q(e) && Or(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? Wr(e) : e;
|
|
1954
|
+
for (; Q(o) && !Hr(o);) {
|
|
1955
|
+
let e = $(o), t = zr(o), n = i ? i.position : a ? "fixed" : "";
|
|
1956
|
+
!t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Wr(o);
|
|
1957
|
+
}
|
|
1958
|
+
return t.set(e, r), r;
|
|
1959
|
+
}
|
|
1960
|
+
function di(e) {
|
|
1961
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Pr(t) ? [] : ui(t, this._c) : [].concat(n), r], o = li(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1962
|
+
for (let e = 1; e < a.length; e++) {
|
|
1963
|
+
let n = li(t, a[e], i);
|
|
1964
|
+
s = K(n.top, s), c = Un(n.right, c), l = Un(n.bottom, l), u = K(n.left, u);
|
|
1965
|
+
}
|
|
1966
|
+
return {
|
|
1967
|
+
width: c - u,
|
|
1968
|
+
height: l - s,
|
|
1969
|
+
x: u,
|
|
1970
|
+
y: s
|
|
1971
|
+
};
|
|
1972
|
+
}
|
|
1973
|
+
function fi(e) {
|
|
1974
|
+
let { width: t, height: n } = Jr(e);
|
|
1975
|
+
return {
|
|
1976
|
+
width: t,
|
|
1977
|
+
height: n
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
function pi(e, t, n) {
|
|
1981
|
+
let r = Ar(t), i = Z(t), a = n === "fixed", o = ei(e, !0, a, t), s = {
|
|
1982
|
+
scrollLeft: 0,
|
|
1983
|
+
scrollTop: 0
|
|
1984
|
+
}, c = q(0);
|
|
1985
|
+
if ((r || !a) && ((Or(t) !== "body" || Mr(i)) && (s = Ur(t)), r)) {
|
|
1986
|
+
let e = ei(t, !0, a, t);
|
|
1987
|
+
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1988
|
+
}
|
|
1989
|
+
!r && i && (c.x = ti(i));
|
|
1990
|
+
let l = i && !r && !a ? ni(i, s) : q(0);
|
|
1991
|
+
return {
|
|
1992
|
+
x: o.left + s.scrollLeft - c.x - l.x,
|
|
1993
|
+
y: o.top + s.scrollTop - c.y - l.y,
|
|
1994
|
+
width: o.width,
|
|
1995
|
+
height: o.height
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
function mi(e) {
|
|
1999
|
+
return $(e).position === "static";
|
|
2000
|
+
}
|
|
2001
|
+
function hi(e, t) {
|
|
2002
|
+
if (!Ar(e) || $(e).position === "fixed") return null;
|
|
2003
|
+
if (t) return t(e);
|
|
2004
|
+
let n = e.offsetParent;
|
|
2005
|
+
return Z(e) === n && (n = n.ownerDocument.body), n;
|
|
2006
|
+
}
|
|
2007
|
+
function gi(e, t) {
|
|
2008
|
+
let n = X(e);
|
|
2009
|
+
if (Pr(e)) return n;
|
|
2010
|
+
if (!Ar(e)) {
|
|
2011
|
+
let t = Wr(e);
|
|
2012
|
+
for (; t && !Hr(t);) {
|
|
2013
|
+
if (Q(t) && !mi(t)) return t;
|
|
2014
|
+
t = Wr(t);
|
|
2015
|
+
}
|
|
2016
|
+
return n;
|
|
2017
|
+
}
|
|
2018
|
+
let r = hi(e, t);
|
|
2019
|
+
for (; r && Nr(r) && mi(r);) r = hi(r, t);
|
|
2020
|
+
return r && Hr(r) && mi(r) && !zr(r) ? n : r || Br(e) || n;
|
|
2021
|
+
}
|
|
2022
|
+
var _i = async function(e) {
|
|
2023
|
+
let t = this.getOffsetParent || gi, n = this.getDimensions, r = await n(e.floating);
|
|
2024
|
+
return {
|
|
2025
|
+
reference: pi(e.reference, await t(e.floating), e.strategy),
|
|
2026
|
+
floating: {
|
|
2027
|
+
x: 0,
|
|
2028
|
+
y: 0,
|
|
2029
|
+
width: r.width,
|
|
2030
|
+
height: r.height
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
};
|
|
2034
|
+
function vi(e) {
|
|
2035
|
+
return $(e).direction === "rtl";
|
|
2036
|
+
}
|
|
2037
|
+
var yi = {
|
|
2038
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ri,
|
|
2039
|
+
getDocumentElement: Z,
|
|
2040
|
+
getClippingRect: di,
|
|
2041
|
+
getOffsetParent: gi,
|
|
2042
|
+
getElementRects: _i,
|
|
2043
|
+
getClientRects: ii,
|
|
2044
|
+
getDimensions: fi,
|
|
2045
|
+
getScale: Xr,
|
|
2046
|
+
isElement: Q,
|
|
2047
|
+
isRTL: vi
|
|
2048
|
+
};
|
|
2049
|
+
function bi(e, t) {
|
|
2050
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2051
|
+
}
|
|
2052
|
+
function xi(e, t, n) {
|
|
2053
|
+
let r = null, i, a = Z(e);
|
|
2054
|
+
function o() {
|
|
2055
|
+
var e;
|
|
2056
|
+
clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
|
|
2057
|
+
}
|
|
2058
|
+
function s(n, c) {
|
|
2059
|
+
n === void 0 && (n = !1), c === void 0 && (c = 1), o();
|
|
2060
|
+
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
2061
|
+
if (n || t(), !f || !p) return;
|
|
2062
|
+
let m = Gn(d), h = Gn(a.clientWidth - (u + f)), g = Gn(a.clientHeight - (d + p)), _ = Gn(u), v = {
|
|
2063
|
+
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
2064
|
+
threshold: K(0, Un(1, c)) || 1
|
|
2065
|
+
}, y = !0;
|
|
2066
|
+
function b(t) {
|
|
2067
|
+
let n = t[0].intersectionRatio;
|
|
2068
|
+
if (!bi(l, e.getBoundingClientRect())) return s();
|
|
2069
|
+
if (n !== c) {
|
|
2070
|
+
if (!y) return s();
|
|
2071
|
+
n ? s(!1, n) : i = setTimeout(() => {
|
|
2072
|
+
s(!1, 1e-7);
|
|
2073
|
+
}, 1e3);
|
|
2074
|
+
}
|
|
2075
|
+
y = !1;
|
|
2076
|
+
}
|
|
2077
|
+
try {
|
|
2078
|
+
r = new IntersectionObserver(b, {
|
|
2079
|
+
...v,
|
|
2080
|
+
root: a.ownerDocument
|
|
2081
|
+
});
|
|
2082
|
+
} catch {
|
|
2083
|
+
r = new IntersectionObserver(b, v);
|
|
2084
|
+
}
|
|
2085
|
+
r.observe(e);
|
|
2086
|
+
}
|
|
2087
|
+
let c = X(e), l = () => s(n);
|
|
2088
|
+
return c.addEventListener("resize", l), s(!0), () => {
|
|
2089
|
+
c.removeEventListener("resize", l), o();
|
|
2090
|
+
};
|
|
2091
|
+
}
|
|
2092
|
+
function Si(e, t, n, r) {
|
|
2093
|
+
r === void 0 && (r = {});
|
|
2094
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Yr(e), u = i || a ? [...l ? Kr(l) : [], ...t ? Kr(t) : []] : [];
|
|
2095
|
+
u.forEach((e) => {
|
|
2096
|
+
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
2097
|
+
});
|
|
2098
|
+
let d = l && s ? xi(l, n, a) : null, f = -1, p = null;
|
|
2099
|
+
o && (p = new ResizeObserver((e) => {
|
|
2100
|
+
let [r] = e;
|
|
2101
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
2102
|
+
var e;
|
|
2103
|
+
(e = p) == null || e.observe(t);
|
|
2104
|
+
})), n();
|
|
2105
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
2106
|
+
let m, h = c ? ei(e) : null;
|
|
2107
|
+
c && g();
|
|
2108
|
+
function g() {
|
|
2109
|
+
let t = ei(e);
|
|
2110
|
+
h && !bi(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
2111
|
+
}
|
|
2112
|
+
return n(), () => {
|
|
2113
|
+
var e;
|
|
2114
|
+
u.forEach((e) => {
|
|
2115
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
2116
|
+
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
var Ci = Cr, wi = wr, Ti = _r, Ei = Er, Di = br, Oi = gr, ki = Tr, Ai = (e, t, n) => {
|
|
2120
|
+
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
2121
|
+
...yi,
|
|
2122
|
+
...i.platform,
|
|
2123
|
+
_c: r
|
|
2124
|
+
};
|
|
2125
|
+
return hr(e, t, {
|
|
2126
|
+
...i,
|
|
2127
|
+
platform: a
|
|
2128
|
+
});
|
|
2129
|
+
};
|
|
2130
|
+
// ../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.46_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
2131
|
+
function ji(e) {
|
|
2132
|
+
return typeof e == "object" && !!e && "$el" in e;
|
|
2133
|
+
}
|
|
2134
|
+
function Mi(e) {
|
|
2135
|
+
if (ji(e)) {
|
|
2136
|
+
let t = e.$el;
|
|
2137
|
+
return kr(t) && Or(t) === "#comment" ? null : t;
|
|
2138
|
+
}
|
|
2139
|
+
return e;
|
|
2140
|
+
}
|
|
2141
|
+
function Ni(e) {
|
|
2142
|
+
return {
|
|
2143
|
+
name: "arrow",
|
|
2144
|
+
options: e,
|
|
2145
|
+
fn(t) {
|
|
2146
|
+
let n = Mi(I(e.element));
|
|
2147
|
+
return n == null ? {} : Oi({
|
|
2148
|
+
element: n,
|
|
2149
|
+
padding: e.padding
|
|
2150
|
+
}).fn(t);
|
|
2151
|
+
}
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
function Pi(e) {
|
|
2155
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2156
|
+
}
|
|
2157
|
+
function Fi(e, t) {
|
|
2158
|
+
let n = Pi(e);
|
|
2159
|
+
return Math.round(t * n) / n;
|
|
2160
|
+
}
|
|
2161
|
+
function Ii(e, t, n) {
|
|
2162
|
+
n === void 0 && (n = {});
|
|
2163
|
+
let r = n.whileElementsMounted, i = o(() => I(n.open) ?? !0), a = o(() => I(n.middleware)), s = o(() => I(n.placement) ?? "bottom"), c = o(() => I(n.strategy) ?? "absolute"), l = o(() => I(n.transform) ?? !0), u = o(() => Mi(e.value)), d = o(() => Mi(t.value)), f = N(0), p = N(0), m = N(c.value), h = N(s.value), g = se({}), v = N(!1), y = o(() => {
|
|
2164
|
+
let e = {
|
|
2165
|
+
position: m.value,
|
|
2166
|
+
left: "0",
|
|
2167
|
+
top: "0"
|
|
2168
|
+
};
|
|
2169
|
+
if (!d.value) return e;
|
|
2170
|
+
let t = Fi(d.value, f.value), n = Fi(d.value, p.value);
|
|
2171
|
+
return l.value ? {
|
|
2172
|
+
...e,
|
|
2173
|
+
transform: "translate(" + t + "px, " + n + "px)",
|
|
2174
|
+
...Pi(d.value) >= 1.5 && { willChange: "transform" }
|
|
2175
|
+
} : {
|
|
2176
|
+
position: m.value,
|
|
2177
|
+
left: t + "px",
|
|
2178
|
+
top: n + "px"
|
|
2179
|
+
};
|
|
2180
|
+
}), b;
|
|
2181
|
+
function x() {
|
|
2182
|
+
if (u.value == null || d.value == null) return;
|
|
2183
|
+
let e = i.value;
|
|
2184
|
+
Ai(u.value, d.value, {
|
|
2185
|
+
middleware: a.value,
|
|
2186
|
+
placement: s.value,
|
|
2187
|
+
strategy: c.value
|
|
2188
|
+
}).then((t) => {
|
|
2189
|
+
f.value = t.x, p.value = t.y, m.value = t.strategy, h.value = t.placement, g.value = t.middlewareData, v.value = e !== !1;
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
function S() {
|
|
2193
|
+
typeof b == "function" && (b(), b = void 0);
|
|
2194
|
+
}
|
|
2195
|
+
function C() {
|
|
2196
|
+
S(), r === void 0 ? x() : u.value != null && d.value != null && (b = r(u.value, d.value, x));
|
|
2197
|
+
}
|
|
2198
|
+
function w() {
|
|
2199
|
+
i.value || (v.value = !1);
|
|
2200
|
+
}
|
|
2201
|
+
return R([
|
|
2202
|
+
a,
|
|
2203
|
+
s,
|
|
2204
|
+
c,
|
|
2205
|
+
i
|
|
2206
|
+
], x, { flush: "sync" }), R([u, d], C, { flush: "sync" }), R(i, w, { flush: "sync" }), _() && A(S), {
|
|
2207
|
+
x: oe(f),
|
|
2208
|
+
y: oe(p),
|
|
2209
|
+
strategy: oe(m),
|
|
2210
|
+
placement: oe(h),
|
|
2211
|
+
middlewareData: oe(g),
|
|
2212
|
+
isPositioned: oe(v),
|
|
2213
|
+
floatingStyles: y,
|
|
2214
|
+
update: x
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
// ../node_modules/.pnpm/reka-ui@2.11.0_vue@3.5.46_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/PopperContent.js
|
|
2218
|
+
var Li = ["dir"], Ri = {
|
|
2219
|
+
side: "bottom",
|
|
2220
|
+
sideOffset: 0,
|
|
2221
|
+
sideFlip: !0,
|
|
2222
|
+
align: "center",
|
|
2223
|
+
alignOffset: 0,
|
|
2224
|
+
alignFlip: !0,
|
|
2225
|
+
arrowPadding: 0,
|
|
2226
|
+
hideShiftedArrow: !0,
|
|
2227
|
+
avoidCollisions: !0,
|
|
2228
|
+
collisionBoundary: () => [],
|
|
2229
|
+
collisionPadding: 0,
|
|
2230
|
+
sticky: "partial",
|
|
2231
|
+
hideWhenDetached: !1,
|
|
2232
|
+
positionStrategy: "fixed",
|
|
2233
|
+
updatePositionStrategy: "optimized",
|
|
2234
|
+
prioritizePosition: !1
|
|
2235
|
+
}, [zi, Bi] = /*#__PURE__*/ $e("PopperContent"), Vi = /* @__PURE__ */ m({
|
|
2236
|
+
inheritAttrs: !1,
|
|
2237
|
+
__name: "PopperContent",
|
|
2238
|
+
props: /* @__PURE__ */ S({
|
|
2239
|
+
memoDependencies: {
|
|
2240
|
+
type: Array,
|
|
2241
|
+
required: !1
|
|
2242
|
+
},
|
|
2243
|
+
side: {
|
|
2244
|
+
type: null,
|
|
2245
|
+
required: !1
|
|
2246
|
+
},
|
|
2247
|
+
sideOffset: {
|
|
2248
|
+
type: Number,
|
|
2249
|
+
required: !1
|
|
2250
|
+
},
|
|
2251
|
+
sideFlip: {
|
|
2252
|
+
type: Boolean,
|
|
2253
|
+
required: !1
|
|
2254
|
+
},
|
|
2255
|
+
align: {
|
|
2256
|
+
type: null,
|
|
2257
|
+
required: !1
|
|
2258
|
+
},
|
|
2259
|
+
alignOffset: {
|
|
2260
|
+
type: Number,
|
|
2261
|
+
required: !1
|
|
2262
|
+
},
|
|
2263
|
+
alignFlip: {
|
|
2264
|
+
type: Boolean,
|
|
2265
|
+
required: !1
|
|
2266
|
+
},
|
|
2267
|
+
avoidCollisions: {
|
|
2268
|
+
type: Boolean,
|
|
2269
|
+
required: !1
|
|
2270
|
+
},
|
|
2271
|
+
collisionBoundary: {
|
|
2272
|
+
type: null,
|
|
2273
|
+
required: !1
|
|
2274
|
+
},
|
|
2275
|
+
collisionPadding: {
|
|
2276
|
+
type: [Number, Object],
|
|
2277
|
+
required: !1
|
|
2278
|
+
},
|
|
2279
|
+
arrowPadding: {
|
|
2280
|
+
type: Number,
|
|
2281
|
+
required: !1
|
|
2282
|
+
},
|
|
2283
|
+
hideShiftedArrow: {
|
|
2284
|
+
type: Boolean,
|
|
2285
|
+
required: !1
|
|
2286
|
+
},
|
|
2287
|
+
sticky: {
|
|
2288
|
+
type: String,
|
|
2289
|
+
required: !1
|
|
2290
|
+
},
|
|
2291
|
+
hideWhenDetached: {
|
|
2292
|
+
type: Boolean,
|
|
2293
|
+
required: !1
|
|
2294
|
+
},
|
|
2295
|
+
positionStrategy: {
|
|
2296
|
+
type: String,
|
|
2297
|
+
required: !1
|
|
2298
|
+
},
|
|
2299
|
+
updatePositionStrategy: {
|
|
2300
|
+
type: String,
|
|
2301
|
+
required: !1
|
|
2302
|
+
},
|
|
2303
|
+
disableUpdateOnLayoutShift: {
|
|
2304
|
+
type: Boolean,
|
|
2305
|
+
required: !1
|
|
2306
|
+
},
|
|
2307
|
+
prioritizePosition: {
|
|
2308
|
+
type: Boolean,
|
|
2309
|
+
required: !1
|
|
2310
|
+
},
|
|
2311
|
+
reference: {
|
|
2312
|
+
type: null,
|
|
2313
|
+
required: !1
|
|
2314
|
+
},
|
|
2315
|
+
dir: {
|
|
2316
|
+
type: String,
|
|
2317
|
+
required: !1
|
|
2318
|
+
},
|
|
2319
|
+
asChild: {
|
|
2320
|
+
type: Boolean,
|
|
2321
|
+
required: !1
|
|
2322
|
+
},
|
|
2323
|
+
as: {
|
|
2324
|
+
type: null,
|
|
2325
|
+
required: !1
|
|
2326
|
+
}
|
|
2327
|
+
}, { ...Ri }),
|
|
2328
|
+
emits: ["placed"],
|
|
2329
|
+
setup(e, { emit: t }) {
|
|
2330
|
+
let n = e, r = t, i = Fn(), { forwardRef: a, currentElement: c } = U(), u = zt(o(() => n.dir)), d = N(), f = N(), { width: p, height: m } = an(f), h = o(() => n.side + (n.align === "center" ? "" : `-${n.align}`)), g = o(() => typeof n.collisionPadding == "number" ? n.collisionPadding : {
|
|
2331
|
+
top: 0,
|
|
2332
|
+
right: 0,
|
|
2333
|
+
bottom: 0,
|
|
2334
|
+
left: 0,
|
|
2335
|
+
...n.collisionPadding
|
|
2336
|
+
}), _ = o(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), v = o(() => ({
|
|
2337
|
+
padding: g.value,
|
|
2338
|
+
boundary: _.value.filter(zn),
|
|
2339
|
+
altBoundary: _.value.length > 0
|
|
2340
|
+
})), y = o(() => ({
|
|
2341
|
+
mainAxis: n.sideFlip,
|
|
2342
|
+
crossAxis: n.alignFlip
|
|
2343
|
+
})), b = o(() => [
|
|
2344
|
+
Ci({
|
|
2345
|
+
mainAxis: n.sideOffset + m.value,
|
|
2346
|
+
alignmentAxis: n.alignOffset
|
|
2347
|
+
}),
|
|
2348
|
+
n.prioritizePosition && n.avoidCollisions && Ti({
|
|
2349
|
+
...v.value,
|
|
2350
|
+
...y.value
|
|
2351
|
+
}),
|
|
2352
|
+
n.avoidCollisions && wi({
|
|
2353
|
+
mainAxis: !0,
|
|
2354
|
+
crossAxis: !!n.prioritizePosition,
|
|
2355
|
+
limiter: n.sticky === "partial" ? ki() : void 0,
|
|
2356
|
+
...v.value
|
|
2357
|
+
}),
|
|
2358
|
+
!n.prioritizePosition && n.avoidCollisions && Ti({
|
|
2359
|
+
...v.value,
|
|
2360
|
+
...y.value
|
|
2361
|
+
}),
|
|
2362
|
+
Ei({
|
|
2363
|
+
...v.value,
|
|
2364
|
+
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
2365
|
+
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
2366
|
+
o.setProperty("--reka-popper-available-width", `${n}px`), o.setProperty("--reka-popper-available-height", `${r}px`), o.setProperty("--reka-popper-anchor-width", `${i}px`), o.setProperty("--reka-popper-anchor-height", `${a}px`);
|
|
2367
|
+
}
|
|
2368
|
+
}),
|
|
2369
|
+
f.value && Ni({
|
|
2370
|
+
element: f.value,
|
|
2371
|
+
padding: n.arrowPadding
|
|
2372
|
+
}),
|
|
2373
|
+
Bn({
|
|
2374
|
+
arrowWidth: p.value,
|
|
2375
|
+
arrowHeight: m.value,
|
|
2376
|
+
dir: u.value
|
|
2377
|
+
}),
|
|
2378
|
+
n.hideWhenDetached && Di({
|
|
2379
|
+
strategy: "referenceHidden",
|
|
2380
|
+
...v.value
|
|
2381
|
+
})
|
|
2382
|
+
]), { floatingStyles: x, placement: S, isPositioned: C, middlewareData: T, update: E } = Ii(o(() => n.reference ?? i.anchor.value), d, {
|
|
2383
|
+
strategy: n.positionStrategy,
|
|
2384
|
+
placement: h,
|
|
2385
|
+
whileElementsMounted: (...e) => Si(...e, {
|
|
2386
|
+
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
2387
|
+
animationFrame: n.updatePositionStrategy === "always"
|
|
2388
|
+
}),
|
|
2389
|
+
middleware: b
|
|
2390
|
+
}), D = o(() => Vn(S.value)[0]), O = o(() => Vn(S.value)[1]);
|
|
2391
|
+
ge(() => {
|
|
2392
|
+
C.value && r("placed");
|
|
2393
|
+
});
|
|
2394
|
+
let k = o(() => {
|
|
2395
|
+
let e = T.value.arrow?.centerOffset !== 0;
|
|
2396
|
+
return n.hideShiftedArrow && e;
|
|
2397
|
+
}), A = N("");
|
|
2398
|
+
return he(() => {
|
|
2399
|
+
c.value && (A.value = window.getComputedStyle(c.value).zIndex);
|
|
2400
|
+
}), Bi({
|
|
2401
|
+
placedSide: D,
|
|
2402
|
+
onArrowChange: (e) => f.value = e,
|
|
2403
|
+
arrowX: o(() => T.value.arrow?.x ?? 0),
|
|
2404
|
+
arrowY: o(() => T.value.arrow?.y ?? 0),
|
|
2405
|
+
shouldHideArrow: k
|
|
2406
|
+
}), (e, t) => (M(), l("div", {
|
|
2407
|
+
ref_key: "floatingRef",
|
|
2408
|
+
ref: d,
|
|
2409
|
+
"data-reka-popper-content-wrapper": "",
|
|
2410
|
+
dir: L(u),
|
|
2411
|
+
style: ee({
|
|
2412
|
+
...L(x),
|
|
2413
|
+
transform: L(C) ? L(x).transform : "translate(0, -200%)",
|
|
2414
|
+
minWidth: "max-content",
|
|
2415
|
+
zIndex: A.value,
|
|
2416
|
+
"--reka-popper-transform-origin": [L(T).transformOrigin?.x, L(T).transformOrigin?.y].join(" "),
|
|
2417
|
+
...L(T).hide?.referenceHidden && {
|
|
2418
|
+
visibility: "hidden",
|
|
2419
|
+
pointerEvents: "none"
|
|
2420
|
+
}
|
|
2421
|
+
})
|
|
2422
|
+
}, [n.memoDependencies ? ve([
|
|
2423
|
+
n.asChild,
|
|
2424
|
+
n.as,
|
|
2425
|
+
D.value,
|
|
2426
|
+
O.value,
|
|
2427
|
+
L(C),
|
|
2428
|
+
...Object.values(e.$attrs),
|
|
2429
|
+
...n.memoDependencies
|
|
2430
|
+
], () => (M(), s(L(fn), w({
|
|
2431
|
+
key: 0,
|
|
2432
|
+
ref: L(a)
|
|
2433
|
+
}, e.$attrs, {
|
|
2434
|
+
"as-child": n.asChild,
|
|
2435
|
+
as: n.as,
|
|
2436
|
+
"data-side": D.value,
|
|
2437
|
+
"data-align": O.value,
|
|
2438
|
+
style: { animation: L(C) ? void 0 : "none" }
|
|
2439
|
+
}), {
|
|
2440
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
2441
|
+
_: 3
|
|
2442
|
+
}, 16, [
|
|
2443
|
+
"as-child",
|
|
2444
|
+
"as",
|
|
2445
|
+
"data-side",
|
|
2446
|
+
"data-align",
|
|
2447
|
+
"style"
|
|
2448
|
+
])), t, 0) : (M(), s(L(fn), w({
|
|
2449
|
+
key: 1,
|
|
2450
|
+
ref: L(a)
|
|
2451
|
+
}, e.$attrs, {
|
|
2452
|
+
"as-child": n.asChild,
|
|
2453
|
+
as: n.as,
|
|
2454
|
+
"data-side": D.value,
|
|
2455
|
+
"data-align": O.value,
|
|
2456
|
+
dir: L(u),
|
|
2457
|
+
style: { animation: L(C) ? void 0 : "none" }
|
|
2458
|
+
}), {
|
|
2459
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
2460
|
+
_: 3
|
|
2461
|
+
}, 16, [
|
|
2462
|
+
"as-child",
|
|
2463
|
+
"as",
|
|
2464
|
+
"data-side",
|
|
2465
|
+
"data-align",
|
|
2466
|
+
"dir",
|
|
2467
|
+
"style"
|
|
2468
|
+
]))], 12, Li));
|
|
2469
|
+
}
|
|
2470
|
+
}), [Hi, Ui] = /*#__PURE__*/ $e("PopoverRoot"), Wi = /* @__PURE__ */ m({
|
|
2471
|
+
__name: "PopoverRoot",
|
|
2472
|
+
props: {
|
|
2473
|
+
defaultOpen: {
|
|
2474
|
+
type: Boolean,
|
|
2475
|
+
required: !1,
|
|
2476
|
+
default: !1
|
|
2477
|
+
},
|
|
2478
|
+
open: {
|
|
2479
|
+
type: Boolean,
|
|
2480
|
+
required: !1,
|
|
2481
|
+
default: void 0
|
|
2482
|
+
},
|
|
2483
|
+
modal: {
|
|
2484
|
+
type: Boolean,
|
|
2485
|
+
required: !1,
|
|
2486
|
+
default: !1
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
emits: ["update:open"],
|
|
2490
|
+
setup(e, { emit: t }) {
|
|
2491
|
+
let n = e, r = t, { modal: i } = ue(n), a = Ct(n, "open", r, {
|
|
2492
|
+
defaultValue: n.defaultOpen,
|
|
2493
|
+
passive: n.open === void 0
|
|
2494
|
+
});
|
|
2495
|
+
return Ui({
|
|
2496
|
+
contentId: "",
|
|
2497
|
+
triggerId: "",
|
|
2498
|
+
modal: i,
|
|
2499
|
+
open: a,
|
|
2500
|
+
onOpenChange: (e) => {
|
|
2501
|
+
a.value = e;
|
|
2502
|
+
},
|
|
2503
|
+
onOpenToggle: () => {
|
|
2504
|
+
a.value = !a.value;
|
|
2505
|
+
},
|
|
2506
|
+
triggerElement: N(),
|
|
2507
|
+
hasCustomAnchor: N(!1)
|
|
2508
|
+
}), (e, t) => (M(), s(L(Ln), null, {
|
|
2509
|
+
default: z(() => [P(e.$slots, "default", {
|
|
2510
|
+
open: L(a),
|
|
2511
|
+
close: () => a.value = !1
|
|
2512
|
+
})]),
|
|
2513
|
+
_: 3
|
|
2514
|
+
}));
|
|
2515
|
+
}
|
|
2516
|
+
}), Gi = /* @__PURE__ */ m({
|
|
2517
|
+
__name: "PopoverAnchor",
|
|
2518
|
+
props: {
|
|
2519
|
+
reference: {
|
|
2520
|
+
type: null,
|
|
2521
|
+
required: !1
|
|
2522
|
+
},
|
|
2523
|
+
asChild: {
|
|
2524
|
+
type: Boolean,
|
|
2525
|
+
required: !1
|
|
2526
|
+
},
|
|
2527
|
+
as: {
|
|
2528
|
+
type: null,
|
|
2529
|
+
required: !1
|
|
2530
|
+
}
|
|
2531
|
+
},
|
|
2532
|
+
setup(e) {
|
|
2533
|
+
let t = e;
|
|
2534
|
+
U();
|
|
2535
|
+
let n = Hi();
|
|
2536
|
+
return D(() => {
|
|
2537
|
+
n.hasCustomAnchor.value = !0;
|
|
2538
|
+
}), j(() => {
|
|
2539
|
+
n.hasCustomAnchor.value = !1;
|
|
2540
|
+
}), (e, n) => (M(), s(L(Rn), E(v(t)), {
|
|
2541
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
2542
|
+
_: 3
|
|
2543
|
+
}, 16));
|
|
2544
|
+
}
|
|
2545
|
+
}), Ki = /* @__PURE__ */ m({
|
|
2546
|
+
__name: "PopoverContentImpl",
|
|
2547
|
+
props: {
|
|
2548
|
+
trapFocus: {
|
|
2549
|
+
type: Boolean,
|
|
2550
|
+
required: !1
|
|
2551
|
+
},
|
|
2552
|
+
memoDependencies: {
|
|
2553
|
+
type: Array,
|
|
2554
|
+
required: !1
|
|
2555
|
+
},
|
|
2556
|
+
side: {
|
|
2557
|
+
type: null,
|
|
2558
|
+
required: !1
|
|
2559
|
+
},
|
|
2560
|
+
sideOffset: {
|
|
2561
|
+
type: Number,
|
|
2562
|
+
required: !1
|
|
2563
|
+
},
|
|
2564
|
+
sideFlip: {
|
|
2565
|
+
type: Boolean,
|
|
2566
|
+
required: !1
|
|
2567
|
+
},
|
|
2568
|
+
align: {
|
|
2569
|
+
type: null,
|
|
2570
|
+
required: !1
|
|
2571
|
+
},
|
|
2572
|
+
alignOffset: {
|
|
2573
|
+
type: Number,
|
|
2574
|
+
required: !1
|
|
2575
|
+
},
|
|
2576
|
+
alignFlip: {
|
|
2577
|
+
type: Boolean,
|
|
2578
|
+
required: !1
|
|
2579
|
+
},
|
|
2580
|
+
avoidCollisions: {
|
|
2581
|
+
type: Boolean,
|
|
2582
|
+
required: !1
|
|
2583
|
+
},
|
|
2584
|
+
collisionBoundary: {
|
|
2585
|
+
type: null,
|
|
2586
|
+
required: !1
|
|
2587
|
+
},
|
|
2588
|
+
collisionPadding: {
|
|
2589
|
+
type: [Number, Object],
|
|
2590
|
+
required: !1
|
|
2591
|
+
},
|
|
2592
|
+
arrowPadding: {
|
|
2593
|
+
type: Number,
|
|
2594
|
+
required: !1
|
|
2595
|
+
},
|
|
2596
|
+
hideShiftedArrow: {
|
|
2597
|
+
type: Boolean,
|
|
2598
|
+
required: !1
|
|
2599
|
+
},
|
|
2600
|
+
sticky: {
|
|
2601
|
+
type: String,
|
|
2602
|
+
required: !1
|
|
2603
|
+
},
|
|
2604
|
+
hideWhenDetached: {
|
|
2605
|
+
type: Boolean,
|
|
2606
|
+
required: !1
|
|
2607
|
+
},
|
|
2608
|
+
positionStrategy: {
|
|
2609
|
+
type: String,
|
|
2610
|
+
required: !1
|
|
2611
|
+
},
|
|
2612
|
+
updatePositionStrategy: {
|
|
2613
|
+
type: String,
|
|
2614
|
+
required: !1
|
|
2615
|
+
},
|
|
2616
|
+
disableUpdateOnLayoutShift: {
|
|
2617
|
+
type: Boolean,
|
|
2618
|
+
required: !1
|
|
2619
|
+
},
|
|
2620
|
+
prioritizePosition: {
|
|
2621
|
+
type: Boolean,
|
|
2622
|
+
required: !1
|
|
2623
|
+
},
|
|
2624
|
+
reference: {
|
|
2625
|
+
type: null,
|
|
2626
|
+
required: !1
|
|
2627
|
+
},
|
|
2628
|
+
dir: {
|
|
2629
|
+
type: String,
|
|
2630
|
+
required: !1
|
|
2631
|
+
},
|
|
2632
|
+
asChild: {
|
|
2633
|
+
type: Boolean,
|
|
2634
|
+
required: !1
|
|
2635
|
+
},
|
|
2636
|
+
as: {
|
|
2637
|
+
type: null,
|
|
2638
|
+
required: !1
|
|
2639
|
+
},
|
|
2640
|
+
disableOutsidePointerEvents: {
|
|
2641
|
+
type: Boolean,
|
|
2642
|
+
required: !1
|
|
2643
|
+
}
|
|
2644
|
+
},
|
|
2645
|
+
emits: [
|
|
2646
|
+
"escapeKeyDown",
|
|
2647
|
+
"pointerDownOutside",
|
|
2648
|
+
"focusOutside",
|
|
2649
|
+
"interactOutside",
|
|
2650
|
+
"openAutoFocus",
|
|
2651
|
+
"closeAutoFocus"
|
|
2652
|
+
],
|
|
2653
|
+
setup(e, { emit: t }) {
|
|
2654
|
+
let n = e, r = t, i = Wt(pt(n, "trapFocus", "disableOutsidePointerEvents")), { forwardRef: a } = U(), o = Hi();
|
|
2655
|
+
return Ht(), (t, n) => (M(), s(L(Nn), {
|
|
2656
|
+
"as-child": "",
|
|
2657
|
+
loop: "",
|
|
2658
|
+
trapped: e.trapFocus,
|
|
2659
|
+
onMountAutoFocus: n[5] ||= (e) => r("openAutoFocus", e),
|
|
2660
|
+
onUnmountAutoFocus: n[6] ||= (e) => r("closeAutoFocus", e)
|
|
2661
|
+
}, {
|
|
2662
|
+
default: z(() => [p(L(yn), {
|
|
2663
|
+
"as-child": "",
|
|
2664
|
+
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
2665
|
+
onPointerDownOutside: n[0] ||= (e) => r("pointerDownOutside", e),
|
|
2666
|
+
onInteractOutside: n[1] ||= (e) => r("interactOutside", e),
|
|
2667
|
+
onEscapeKeyDown: n[2] ||= (e) => r("escapeKeyDown", e),
|
|
2668
|
+
onFocusOutside: n[3] ||= (e) => r("focusOutside", e),
|
|
2669
|
+
onDismiss: n[4] ||= (e) => L(o).onOpenChange(!1)
|
|
2670
|
+
}, {
|
|
2671
|
+
default: z(() => [p(L(Vi), w(L(i), {
|
|
2672
|
+
id: L(o).contentId,
|
|
2673
|
+
ref: L(a),
|
|
2674
|
+
"data-state": L(o).open.value ? "open" : "closed",
|
|
2675
|
+
"aria-labelledby": L(o).triggerId,
|
|
2676
|
+
style: {
|
|
2677
|
+
"--reka-popover-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
2678
|
+
"--reka-popover-content-available-width": "var(--reka-popper-available-width)",
|
|
2679
|
+
"--reka-popover-content-available-height": "var(--reka-popper-available-height)",
|
|
2680
|
+
"--reka-popover-trigger-width": "var(--reka-popper-anchor-width)",
|
|
2681
|
+
"--reka-popover-trigger-height": "var(--reka-popper-anchor-height)"
|
|
2682
|
+
},
|
|
2683
|
+
role: "dialog"
|
|
2684
|
+
}), {
|
|
2685
|
+
default: z(() => [P(t.$slots, "default")]),
|
|
2686
|
+
_: 3
|
|
2687
|
+
}, 16, [
|
|
2688
|
+
"id",
|
|
2689
|
+
"data-state",
|
|
2690
|
+
"aria-labelledby"
|
|
2691
|
+
])]),
|
|
2692
|
+
_: 3
|
|
2693
|
+
}, 8, ["disable-outside-pointer-events"])]),
|
|
2694
|
+
_: 3
|
|
2695
|
+
}, 8, ["trapped"]));
|
|
2696
|
+
}
|
|
2697
|
+
}), qi = /* @__PURE__ */ m({
|
|
2698
|
+
__name: "PopoverContentModal",
|
|
2699
|
+
props: {
|
|
2700
|
+
memoDependencies: {
|
|
2701
|
+
type: Array,
|
|
2702
|
+
required: !1
|
|
2703
|
+
},
|
|
2704
|
+
side: {
|
|
2705
|
+
type: null,
|
|
2706
|
+
required: !1
|
|
2707
|
+
},
|
|
2708
|
+
sideOffset: {
|
|
2709
|
+
type: Number,
|
|
2710
|
+
required: !1
|
|
2711
|
+
},
|
|
2712
|
+
sideFlip: {
|
|
2713
|
+
type: Boolean,
|
|
2714
|
+
required: !1
|
|
2715
|
+
},
|
|
2716
|
+
align: {
|
|
2717
|
+
type: null,
|
|
2718
|
+
required: !1
|
|
2719
|
+
},
|
|
2720
|
+
alignOffset: {
|
|
2721
|
+
type: Number,
|
|
2722
|
+
required: !1
|
|
2723
|
+
},
|
|
2724
|
+
alignFlip: {
|
|
2725
|
+
type: Boolean,
|
|
2726
|
+
required: !1
|
|
2727
|
+
},
|
|
2728
|
+
avoidCollisions: {
|
|
2729
|
+
type: Boolean,
|
|
2730
|
+
required: !1
|
|
2731
|
+
},
|
|
2732
|
+
collisionBoundary: {
|
|
2733
|
+
type: null,
|
|
2734
|
+
required: !1
|
|
2735
|
+
},
|
|
2736
|
+
collisionPadding: {
|
|
2737
|
+
type: [Number, Object],
|
|
2738
|
+
required: !1
|
|
2739
|
+
},
|
|
2740
|
+
arrowPadding: {
|
|
2741
|
+
type: Number,
|
|
2742
|
+
required: !1
|
|
2743
|
+
},
|
|
2744
|
+
hideShiftedArrow: {
|
|
2745
|
+
type: Boolean,
|
|
2746
|
+
required: !1
|
|
2747
|
+
},
|
|
2748
|
+
sticky: {
|
|
2749
|
+
type: String,
|
|
2750
|
+
required: !1
|
|
2751
|
+
},
|
|
2752
|
+
hideWhenDetached: {
|
|
2753
|
+
type: Boolean,
|
|
2754
|
+
required: !1
|
|
2755
|
+
},
|
|
2756
|
+
positionStrategy: {
|
|
2757
|
+
type: String,
|
|
2758
|
+
required: !1
|
|
2759
|
+
},
|
|
2760
|
+
updatePositionStrategy: {
|
|
2761
|
+
type: String,
|
|
2762
|
+
required: !1
|
|
2763
|
+
},
|
|
2764
|
+
disableUpdateOnLayoutShift: {
|
|
2765
|
+
type: Boolean,
|
|
2766
|
+
required: !1
|
|
2767
|
+
},
|
|
2768
|
+
prioritizePosition: {
|
|
2769
|
+
type: Boolean,
|
|
2770
|
+
required: !1
|
|
2771
|
+
},
|
|
2772
|
+
reference: {
|
|
2773
|
+
type: null,
|
|
2774
|
+
required: !1
|
|
2775
|
+
},
|
|
2776
|
+
dir: {
|
|
2777
|
+
type: String,
|
|
2778
|
+
required: !1
|
|
2779
|
+
},
|
|
2780
|
+
asChild: {
|
|
2781
|
+
type: Boolean,
|
|
2782
|
+
required: !1
|
|
2783
|
+
},
|
|
2784
|
+
as: {
|
|
2785
|
+
type: null,
|
|
2786
|
+
required: !1
|
|
2787
|
+
},
|
|
2788
|
+
disableOutsidePointerEvents: {
|
|
2789
|
+
type: Boolean,
|
|
2790
|
+
required: !1
|
|
2791
|
+
}
|
|
2792
|
+
},
|
|
2793
|
+
emits: [
|
|
2794
|
+
"escapeKeyDown",
|
|
2795
|
+
"pointerDownOutside",
|
|
2796
|
+
"focusOutside",
|
|
2797
|
+
"interactOutside",
|
|
2798
|
+
"openAutoFocus",
|
|
2799
|
+
"closeAutoFocus"
|
|
2800
|
+
],
|
|
2801
|
+
setup(e, { emit: t }) {
|
|
2802
|
+
let n = e, r = t, i = Hi(), a = N(!1);
|
|
2803
|
+
It(!0);
|
|
2804
|
+
let o = Gt(n, r), { forwardRef: c, currentElement: l } = U();
|
|
2805
|
+
return tn(l), (e, t) => (M(), s(Ki, w(L(o), {
|
|
2806
|
+
ref: L(c),
|
|
2807
|
+
"trap-focus": L(i).open.value,
|
|
2808
|
+
"disable-outside-pointer-events": "",
|
|
2809
|
+
onCloseAutoFocus: t[0] ||= ye((e) => {
|
|
2810
|
+
r("closeAutoFocus", e), a.value || L(i).triggerElement.value?.focus();
|
|
2811
|
+
}, ["prevent"]),
|
|
2812
|
+
onPointerDownOutside: t[1] ||= (e) => {
|
|
2813
|
+
r("pointerDownOutside", e);
|
|
2814
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, i = t.button === 2 || n;
|
|
2815
|
+
a.value = i;
|
|
2816
|
+
},
|
|
2817
|
+
onFocusOutside: t[2] ||= ye(() => {}, ["prevent"])
|
|
2818
|
+
}), {
|
|
2819
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
2820
|
+
_: 3
|
|
2821
|
+
}, 16, ["trap-focus"]));
|
|
2822
|
+
}
|
|
2823
|
+
}), Ji = /* @__PURE__ */ m({
|
|
2824
|
+
__name: "PopoverContentNonModal",
|
|
2825
|
+
props: {
|
|
2826
|
+
memoDependencies: {
|
|
2827
|
+
type: Array,
|
|
2828
|
+
required: !1
|
|
2829
|
+
},
|
|
2830
|
+
side: {
|
|
2831
|
+
type: null,
|
|
2832
|
+
required: !1
|
|
2833
|
+
},
|
|
2834
|
+
sideOffset: {
|
|
2835
|
+
type: Number,
|
|
2836
|
+
required: !1
|
|
2837
|
+
},
|
|
2838
|
+
sideFlip: {
|
|
2839
|
+
type: Boolean,
|
|
2840
|
+
required: !1
|
|
2841
|
+
},
|
|
2842
|
+
align: {
|
|
2843
|
+
type: null,
|
|
2844
|
+
required: !1
|
|
2845
|
+
},
|
|
2846
|
+
alignOffset: {
|
|
2847
|
+
type: Number,
|
|
2848
|
+
required: !1
|
|
2849
|
+
},
|
|
2850
|
+
alignFlip: {
|
|
2851
|
+
type: Boolean,
|
|
2852
|
+
required: !1
|
|
2853
|
+
},
|
|
2854
|
+
avoidCollisions: {
|
|
2855
|
+
type: Boolean,
|
|
2856
|
+
required: !1
|
|
2857
|
+
},
|
|
2858
|
+
collisionBoundary: {
|
|
2859
|
+
type: null,
|
|
2860
|
+
required: !1
|
|
2861
|
+
},
|
|
2862
|
+
collisionPadding: {
|
|
2863
|
+
type: [Number, Object],
|
|
2864
|
+
required: !1
|
|
2865
|
+
},
|
|
2866
|
+
arrowPadding: {
|
|
2867
|
+
type: Number,
|
|
2868
|
+
required: !1
|
|
2869
|
+
},
|
|
2870
|
+
hideShiftedArrow: {
|
|
2871
|
+
type: Boolean,
|
|
2872
|
+
required: !1
|
|
2873
|
+
},
|
|
2874
|
+
sticky: {
|
|
2875
|
+
type: String,
|
|
2876
|
+
required: !1
|
|
2877
|
+
},
|
|
2878
|
+
hideWhenDetached: {
|
|
2879
|
+
type: Boolean,
|
|
2880
|
+
required: !1
|
|
2881
|
+
},
|
|
2882
|
+
positionStrategy: {
|
|
2883
|
+
type: String,
|
|
2884
|
+
required: !1
|
|
2885
|
+
},
|
|
2886
|
+
updatePositionStrategy: {
|
|
2887
|
+
type: String,
|
|
2888
|
+
required: !1
|
|
2889
|
+
},
|
|
2890
|
+
disableUpdateOnLayoutShift: {
|
|
2891
|
+
type: Boolean,
|
|
2892
|
+
required: !1
|
|
2893
|
+
},
|
|
2894
|
+
prioritizePosition: {
|
|
2895
|
+
type: Boolean,
|
|
2896
|
+
required: !1
|
|
2897
|
+
},
|
|
2898
|
+
reference: {
|
|
2899
|
+
type: null,
|
|
2900
|
+
required: !1
|
|
2901
|
+
},
|
|
2902
|
+
dir: {
|
|
2903
|
+
type: String,
|
|
2904
|
+
required: !1
|
|
2905
|
+
},
|
|
2906
|
+
asChild: {
|
|
2907
|
+
type: Boolean,
|
|
2908
|
+
required: !1
|
|
2909
|
+
},
|
|
2910
|
+
as: {
|
|
2911
|
+
type: null,
|
|
2912
|
+
required: !1
|
|
2913
|
+
},
|
|
2914
|
+
disableOutsidePointerEvents: {
|
|
2915
|
+
type: Boolean,
|
|
2916
|
+
required: !1
|
|
2917
|
+
}
|
|
2918
|
+
},
|
|
2919
|
+
emits: [
|
|
2920
|
+
"escapeKeyDown",
|
|
2921
|
+
"pointerDownOutside",
|
|
2922
|
+
"focusOutside",
|
|
2923
|
+
"interactOutside",
|
|
2924
|
+
"openAutoFocus",
|
|
2925
|
+
"closeAutoFocus"
|
|
2926
|
+
],
|
|
2927
|
+
setup(e, { emit: t }) {
|
|
2928
|
+
let n = e, r = t, i = Hi(), a = N(!1), o = N(!1), c = Gt(n, r);
|
|
2929
|
+
return (e, t) => (M(), s(Ki, w(L(c), {
|
|
2930
|
+
"trap-focus": !1,
|
|
2931
|
+
"disable-outside-pointer-events": !1,
|
|
2932
|
+
onCloseAutoFocus: t[0] ||= (e) => {
|
|
2933
|
+
r("closeAutoFocus", e), e.defaultPrevented || (a.value || L(i).triggerElement.value?.focus(), e.preventDefault()), a.value = !1, o.value = !1;
|
|
2934
|
+
},
|
|
2935
|
+
onInteractOutside: t[1] ||= async (e) => {
|
|
2936
|
+
r("interactOutside", e), e.defaultPrevented || (a.value = !0, e.detail.originalEvent.type === "pointerdown" && (o.value = !0));
|
|
2937
|
+
let t = e.target;
|
|
2938
|
+
L(i).triggerElement.value?.contains(t) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && o.value && e.preventDefault();
|
|
2939
|
+
}
|
|
2940
|
+
}), {
|
|
2941
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
2942
|
+
_: 3
|
|
2943
|
+
}, 16));
|
|
2944
|
+
}
|
|
2945
|
+
}), Yi = /* @__PURE__ */ m({
|
|
2946
|
+
__name: "PopoverContent",
|
|
2947
|
+
props: {
|
|
2948
|
+
forceMount: {
|
|
2949
|
+
type: Boolean,
|
|
2950
|
+
required: !1
|
|
2951
|
+
},
|
|
2952
|
+
memoDependencies: {
|
|
2953
|
+
type: Array,
|
|
2954
|
+
required: !1
|
|
2955
|
+
},
|
|
2956
|
+
side: {
|
|
2957
|
+
type: null,
|
|
2958
|
+
required: !1
|
|
2959
|
+
},
|
|
2960
|
+
sideOffset: {
|
|
2961
|
+
type: Number,
|
|
2962
|
+
required: !1
|
|
2963
|
+
},
|
|
2964
|
+
sideFlip: {
|
|
2965
|
+
type: Boolean,
|
|
2966
|
+
required: !1
|
|
2967
|
+
},
|
|
2968
|
+
align: {
|
|
2969
|
+
type: null,
|
|
2970
|
+
required: !1
|
|
2971
|
+
},
|
|
2972
|
+
alignOffset: {
|
|
2973
|
+
type: Number,
|
|
2974
|
+
required: !1
|
|
2975
|
+
},
|
|
2976
|
+
alignFlip: {
|
|
2977
|
+
type: Boolean,
|
|
2978
|
+
required: !1
|
|
2979
|
+
},
|
|
2980
|
+
avoidCollisions: {
|
|
2981
|
+
type: Boolean,
|
|
2982
|
+
required: !1
|
|
2983
|
+
},
|
|
2984
|
+
collisionBoundary: {
|
|
2985
|
+
type: null,
|
|
2986
|
+
required: !1
|
|
2987
|
+
},
|
|
2988
|
+
collisionPadding: {
|
|
2989
|
+
type: [Number, Object],
|
|
2990
|
+
required: !1
|
|
2991
|
+
},
|
|
2992
|
+
arrowPadding: {
|
|
2993
|
+
type: Number,
|
|
2994
|
+
required: !1
|
|
2995
|
+
},
|
|
2996
|
+
hideShiftedArrow: {
|
|
2997
|
+
type: Boolean,
|
|
2998
|
+
required: !1
|
|
2999
|
+
},
|
|
3000
|
+
sticky: {
|
|
3001
|
+
type: String,
|
|
3002
|
+
required: !1
|
|
3003
|
+
},
|
|
3004
|
+
hideWhenDetached: {
|
|
3005
|
+
type: Boolean,
|
|
3006
|
+
required: !1
|
|
3007
|
+
},
|
|
3008
|
+
positionStrategy: {
|
|
3009
|
+
type: String,
|
|
3010
|
+
required: !1
|
|
3011
|
+
},
|
|
3012
|
+
updatePositionStrategy: {
|
|
3013
|
+
type: String,
|
|
3014
|
+
required: !1
|
|
3015
|
+
},
|
|
3016
|
+
disableUpdateOnLayoutShift: {
|
|
3017
|
+
type: Boolean,
|
|
3018
|
+
required: !1
|
|
3019
|
+
},
|
|
3020
|
+
prioritizePosition: {
|
|
3021
|
+
type: Boolean,
|
|
3022
|
+
required: !1
|
|
3023
|
+
},
|
|
3024
|
+
reference: {
|
|
3025
|
+
type: null,
|
|
3026
|
+
required: !1
|
|
3027
|
+
},
|
|
3028
|
+
dir: {
|
|
3029
|
+
type: String,
|
|
3030
|
+
required: !1
|
|
3031
|
+
},
|
|
3032
|
+
asChild: {
|
|
3033
|
+
type: Boolean,
|
|
3034
|
+
required: !1
|
|
3035
|
+
},
|
|
3036
|
+
as: {
|
|
3037
|
+
type: null,
|
|
3038
|
+
required: !1
|
|
3039
|
+
},
|
|
3040
|
+
disableOutsidePointerEvents: {
|
|
3041
|
+
type: Boolean,
|
|
3042
|
+
required: !1
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
emits: [
|
|
3046
|
+
"escapeKeyDown",
|
|
3047
|
+
"pointerDownOutside",
|
|
3048
|
+
"focusOutside",
|
|
3049
|
+
"interactOutside",
|
|
3050
|
+
"openAutoFocus",
|
|
3051
|
+
"closeAutoFocus"
|
|
3052
|
+
],
|
|
3053
|
+
setup(e, { emit: t }) {
|
|
3054
|
+
let n = e, r = t, i = Hi(), a = Gt(n, r), { forwardRef: o } = U();
|
|
3055
|
+
return i.contentId ||= rn(void 0, "reka-popover-content"), (t, n) => (M(), s(L(ln), { present: e.forceMount || L(i).open.value }, {
|
|
3056
|
+
default: z(() => [L(i).modal.value ? (M(), s(qi, w({ key: 0 }, L(a), { ref: L(o) }), {
|
|
3057
|
+
default: z(() => [P(t.$slots, "default")]),
|
|
3058
|
+
_: 3
|
|
3059
|
+
}, 16)) : (M(), s(Ji, w({ key: 1 }, L(a), { ref: L(o) }), {
|
|
3060
|
+
default: z(() => [P(t.$slots, "default")]),
|
|
3061
|
+
_: 3
|
|
3062
|
+
}, 16))]),
|
|
3063
|
+
_: 3
|
|
3064
|
+
}, 8, ["present"]));
|
|
3065
|
+
}
|
|
3066
|
+
}), Xi = /* @__PURE__ */ m({
|
|
3067
|
+
__name: "PopoverPortal",
|
|
3068
|
+
props: {
|
|
3069
|
+
to: {
|
|
3070
|
+
type: null,
|
|
3071
|
+
required: !1
|
|
3072
|
+
},
|
|
3073
|
+
disabled: {
|
|
3074
|
+
type: Boolean,
|
|
3075
|
+
required: !1
|
|
3076
|
+
},
|
|
3077
|
+
defer: {
|
|
3078
|
+
type: Boolean,
|
|
3079
|
+
required: !1
|
|
3080
|
+
},
|
|
3081
|
+
forceMount: {
|
|
3082
|
+
type: Boolean,
|
|
3083
|
+
required: !1
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3086
|
+
setup(e) {
|
|
3087
|
+
let t = e;
|
|
3088
|
+
return (e, n) => (M(), s(L(Pn), E(v(t)), {
|
|
3089
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
3090
|
+
_: 3
|
|
3091
|
+
}, 16));
|
|
3092
|
+
}
|
|
3093
|
+
}), Zi = {
|
|
3094
|
+
hidden: "",
|
|
3095
|
+
"aria-hidden": "true"
|
|
3096
|
+
}, Qi = /* @__PURE__ */ m({
|
|
3097
|
+
__name: "SelectPopoverTriggerSync",
|
|
3098
|
+
setup(e) {
|
|
3099
|
+
let t = B(), n = Hi();
|
|
3100
|
+
return R(() => t.triggerElement.value, (e) => {
|
|
3101
|
+
n.triggerElement.value = e ?? void 0;
|
|
3102
|
+
}, { immediate: !0 }), (e, t) => (M(), l("span", Zi));
|
|
3103
|
+
}
|
|
3104
|
+
}), $i = ["aria-hidden", "hidden"], ea = /* @__PURE__ */ m({
|
|
3105
|
+
__name: "SelectPopover",
|
|
3106
|
+
props: {
|
|
3107
|
+
memoDependencies: {},
|
|
3108
|
+
side: { default: "bottom" },
|
|
3109
|
+
sideOffset: { default: 4 },
|
|
3110
|
+
sideFlip: { type: Boolean },
|
|
3111
|
+
align: { default: "start" },
|
|
3112
|
+
alignOffset: {},
|
|
3113
|
+
alignFlip: { type: Boolean },
|
|
3114
|
+
avoidCollisions: {
|
|
3115
|
+
type: Boolean,
|
|
3116
|
+
default: !0
|
|
3117
|
+
},
|
|
3118
|
+
collisionBoundary: {},
|
|
3119
|
+
collisionPadding: {},
|
|
3120
|
+
arrowPadding: {},
|
|
3121
|
+
hideShiftedArrow: { type: Boolean },
|
|
3122
|
+
sticky: {},
|
|
3123
|
+
hideWhenDetached: { type: Boolean },
|
|
3124
|
+
positionStrategy: {},
|
|
3125
|
+
updatePositionStrategy: {},
|
|
3126
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
3127
|
+
prioritizePosition: { type: Boolean },
|
|
3128
|
+
dir: {},
|
|
3129
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
3130
|
+
modal: { type: Boolean },
|
|
3131
|
+
defer: { type: Boolean },
|
|
3132
|
+
teleport: {
|
|
3133
|
+
type: [Boolean, String],
|
|
3134
|
+
default: !0
|
|
3135
|
+
}
|
|
3136
|
+
},
|
|
3137
|
+
emits: [
|
|
3138
|
+
"escapeKeyDown",
|
|
3139
|
+
"pointerDownOutside",
|
|
3140
|
+
"focusOutside",
|
|
3141
|
+
"interactOutside",
|
|
3142
|
+
"openAutoFocus",
|
|
3143
|
+
"closeAutoFocus"
|
|
3144
|
+
],
|
|
3145
|
+
setup(e, { emit: t }) {
|
|
3146
|
+
let n = e, r = t, i = B(), a = o(() => i.isOpen.value), c = o(() => i.triggerElement.value ?? void 0), l = o(() => n.teleport !== !1), d = o(() => {
|
|
3147
|
+
if (n.teleport !== !1) return n.teleport === !0 ? "body" : typeof n.teleport == "string" || n.teleport instanceof HTMLElement ? n.teleport : "body";
|
|
3148
|
+
}), f = o(() => {
|
|
3149
|
+
let { modal: e } = n;
|
|
3150
|
+
return { modal: e };
|
|
3151
|
+
}), m = o(() => {
|
|
3152
|
+
let { defer: e } = n;
|
|
3153
|
+
return { defer: e };
|
|
3154
|
+
}), h = o(() => {
|
|
3155
|
+
let { teleport: e, modal: t, defer: r, ...i } = n;
|
|
3156
|
+
return i;
|
|
3157
|
+
}), g = Gt(f), _ = Gt(m), v = Gt(h, r);
|
|
3158
|
+
function y(e) {
|
|
3159
|
+
e ? i.open() : i.close();
|
|
3160
|
+
}
|
|
3161
|
+
function b(e) {
|
|
3162
|
+
i.registerPopoverElement(ke(e));
|
|
3163
|
+
}
|
|
3164
|
+
return (e, t) => (M(), s(L(Wi), w({ open: a.value }, L(g), { "onUpdate:open": y }), {
|
|
3165
|
+
default: z(() => [
|
|
3166
|
+
p(Qi),
|
|
3167
|
+
p(L(Gi), { reference: c.value }, null, 8, ["reference"]),
|
|
3168
|
+
p(L(Xi), w({
|
|
3169
|
+
to: d.value,
|
|
3170
|
+
disabled: !l.value
|
|
3171
|
+
}, L(_), { "force-mount": "" }), {
|
|
3172
|
+
default: z(() => [p(L(Yi), w({
|
|
3173
|
+
...L(v),
|
|
3174
|
+
...e.$attrs
|
|
3175
|
+
}, {
|
|
3176
|
+
"force-mount": "",
|
|
3177
|
+
"as-child": "",
|
|
3178
|
+
onOpenAutoFocus: t[0] ||= ye(() => {}, ["prevent"])
|
|
3179
|
+
}), {
|
|
3180
|
+
default: z(() => [u("div", {
|
|
3181
|
+
ref: b,
|
|
3182
|
+
"data-select-popover": "",
|
|
3183
|
+
"aria-hidden": !a.value,
|
|
3184
|
+
hidden: !a.value
|
|
3185
|
+
}, [P(e.$slots, "default")], 8, $i)]),
|
|
3186
|
+
_: 3
|
|
3187
|
+
}, 16)]),
|
|
3188
|
+
_: 3
|
|
3189
|
+
}, 16, ["to", "disabled"])
|
|
3190
|
+
]),
|
|
3191
|
+
_: 3
|
|
3192
|
+
}, 16, ["open"]));
|
|
3193
|
+
}
|
|
3194
|
+
});
|
|
3195
|
+
// composables/useSelectCollection.ts
|
|
3196
|
+
function ta(e) {
|
|
3197
|
+
return {
|
|
3198
|
+
id: Je(e.value),
|
|
3199
|
+
value: e.value,
|
|
3200
|
+
label: e.label,
|
|
3201
|
+
disabled: e.disabled ?? !1
|
|
3202
|
+
};
|
|
3203
|
+
}
|
|
3204
|
+
function na(e) {
|
|
3205
|
+
let t = se(/* @__PURE__ */ new Map()), n = (e) => {
|
|
3206
|
+
let n = new Map(t.value);
|
|
3207
|
+
n.set(e.id, e), t.value = n;
|
|
3208
|
+
}, r = (e) => {
|
|
3209
|
+
let n = new Map(t.value);
|
|
3210
|
+
n.delete(e), t.value = n;
|
|
3211
|
+
}, i = o(() => e.propOptions().map(ta));
|
|
3212
|
+
return {
|
|
3213
|
+
register: n,
|
|
3214
|
+
unregister: r,
|
|
3215
|
+
allOptions: o(() => {
|
|
3216
|
+
let e = new Map(i.value.map((e) => [String(e.value), e])), n = /* @__PURE__ */ new Map();
|
|
3217
|
+
for (let e of i.value) n.set(String(e.value), e);
|
|
3218
|
+
for (let r of t.value.values()) {
|
|
3219
|
+
let t = e.get(String(r.value)), i = t ? {
|
|
3220
|
+
...r,
|
|
3221
|
+
label: t.label,
|
|
3222
|
+
disabled: t.disabled
|
|
3223
|
+
} : r;
|
|
3224
|
+
n.set(String(r.value), i);
|
|
3225
|
+
}
|
|
3226
|
+
return [...n.values()];
|
|
3227
|
+
})
|
|
3228
|
+
};
|
|
3229
|
+
}
|
|
3230
|
+
function ra(e) {
|
|
3231
|
+
return e.filter((e) => !e.disabled);
|
|
3232
|
+
}
|
|
3233
|
+
// lib/create-item.ts
|
|
3234
|
+
function ia(e, t, n, r) {
|
|
3235
|
+
return !e || !t || !n.trim() ? !1 : e === "always" || r === 0;
|
|
3236
|
+
}
|
|
3237
|
+
// composables/useSelectDismiss.ts
|
|
3238
|
+
function aa(e) {
|
|
3239
|
+
return e instanceof HTMLElement && e.getAttribute("role") === "option";
|
|
3240
|
+
}
|
|
3241
|
+
function oa(e, t) {
|
|
3242
|
+
return t.some((t) => t?.contains(e));
|
|
3243
|
+
}
|
|
3244
|
+
function sa(e) {
|
|
3245
|
+
let t = se(null), n = se(null), r = se(null), i = (e) => {
|
|
3246
|
+
t.value = e;
|
|
3247
|
+
}, a = (e) => {
|
|
3248
|
+
n.value = e;
|
|
3249
|
+
}, o = (e) => {
|
|
3250
|
+
r.value = e;
|
|
3251
|
+
}, s = () => [
|
|
3252
|
+
t.value,
|
|
3253
|
+
n.value,
|
|
3254
|
+
r.value
|
|
3255
|
+
], c = (t) => {
|
|
3256
|
+
if (!e.isOpen.value) return;
|
|
3257
|
+
let { target: n } = t;
|
|
3258
|
+
n instanceof Node && (oa(n, s()) || aa(n) || e.close());
|
|
3259
|
+
}, l = (t) => {
|
|
3260
|
+
if (!e.isOpen.value) return;
|
|
3261
|
+
let { target: n } = t;
|
|
3262
|
+
n instanceof Node && (oa(n, s()) || e.close());
|
|
3263
|
+
}, u = !1, d = () => {
|
|
3264
|
+
u ||= (document.addEventListener("click", c), document.addEventListener("focusin", l), !0);
|
|
3265
|
+
}, f = () => {
|
|
3266
|
+
u &&= (document.removeEventListener("click", c), document.removeEventListener("focusin", l), !1);
|
|
3267
|
+
};
|
|
3268
|
+
return R(() => e.isOpen.value, (e) => {
|
|
3269
|
+
e ? d() : f();
|
|
3270
|
+
}, {
|
|
3271
|
+
flush: "sync",
|
|
3272
|
+
immediate: !0
|
|
3273
|
+
}), A(f), {
|
|
3274
|
+
registerRootElement: i,
|
|
3275
|
+
registerTriggerElement: a,
|
|
3276
|
+
registerPopoverElement: o,
|
|
3277
|
+
rootElement: t,
|
|
3278
|
+
triggerElement: n,
|
|
3279
|
+
popoverElement: r
|
|
3280
|
+
};
|
|
3281
|
+
}
|
|
3282
|
+
// composables/useSelectKeyboard.ts
|
|
3283
|
+
function ca(e) {
|
|
3284
|
+
let { context: t } = e;
|
|
3285
|
+
return { handleKeydown: (e) => {
|
|
3286
|
+
if (t.disabled.value) return;
|
|
3287
|
+
let n = t.isOpen.value, r = t.searchValue.value.length > 0, i = e.target instanceof HTMLInputElement && e.target.dataset.selectInput != null;
|
|
3288
|
+
if (e.key === "Tab") n && t.close();
|
|
3289
|
+
else if (n) e.key === "ArrowDown" ? (e.preventDefault(), t.moveActiveOption(1)) : e.key === "ArrowUp" ? (e.preventDefault(), t.moveActiveOption(-1)) : e.key === "Enter" || e.code === "Space" && !r && !i ? (e.preventDefault(), t.selectActiveOption()) : e.key === "Escape" ? (e.preventDefault(), t.close()) : e.key === "Backspace" && !r && t.multiple.value && t.selectedOptions.value.length > 0 && (e.preventDefault(), t.deselectLast());
|
|
3290
|
+
else {
|
|
3291
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
3292
|
+
e.preventDefault(), t.open();
|
|
3293
|
+
return;
|
|
3294
|
+
}
|
|
3295
|
+
e.code === "Space" && !r && !i && (e.preventDefault(), t.open());
|
|
3296
|
+
}
|
|
3297
|
+
} };
|
|
3298
|
+
}
|
|
3299
|
+
// composables/useSelectState.ts
|
|
3300
|
+
function la(e, t) {
|
|
3301
|
+
return t ? Array.isArray(e) ? e : [] : e == null ? [] : [e];
|
|
3302
|
+
}
|
|
3303
|
+
function ua(e) {
|
|
3304
|
+
let t = We(), n = `${t}-trigger`, r = `${t}-input`, i = `${t}-listbox`, a = `${t}-create-item`, s = N(!1), c = N(""), l = se(null), u = N(!1), d = N(null), f = o(() => {
|
|
3305
|
+
let t = e.searchable.value ? c.value : "", n = e.filterBy.value ?? be, r = xe(e.collection.allOptions.value, t, n);
|
|
3306
|
+
if (e.hideSelected?.value && e.multiple.value) {
|
|
3307
|
+
let t = la(e.modelValue.value, !0), n = new Set(t);
|
|
3308
|
+
r = r.filter((e) => !n.has(e.value));
|
|
3309
|
+
}
|
|
3310
|
+
return r;
|
|
3311
|
+
}), p = o(() => ra(f.value)), m = o(() => ia(e.createItem?.value, e.searchable.value, c.value, f.value.length)), h = o(() => c.value.trim()), g = o(() => {
|
|
3312
|
+
let t = la(e.modelValue.value, e.multiple.value), n = new Map(e.collection.allOptions.value.map((e) => [e.value, e]));
|
|
3313
|
+
return t.map((e) => n.get(e)).filter((e) => e != null);
|
|
3314
|
+
}), _ = o(() => {
|
|
3315
|
+
if (u.value) return a;
|
|
3316
|
+
if (l.value != null) return e.collection.allOptions.value.find((e) => e.value === l.value)?.id;
|
|
3317
|
+
}), v = (e) => {
|
|
3318
|
+
l.value = e;
|
|
3319
|
+
}, y = () => {
|
|
3320
|
+
l.value = p.value[0]?.value ?? null, u.value = l.value == null && m.value;
|
|
3321
|
+
}, b = () => {
|
|
3322
|
+
e.searchable.value && d.value?.focus();
|
|
3323
|
+
}, x = () => {
|
|
3324
|
+
e.searchable.value && c.value.length > 0 ? y() : u.value && m.value || (u.value = !1, l.value != null && p.value.some((e) => e.value === l.value) || (l.value = p.value[0]?.value ?? null, l.value == null && m.value && (u.value = !0)));
|
|
3325
|
+
}, S = (e) => {
|
|
3326
|
+
let t = p.value, n = m.value, r = t.length + +!!n;
|
|
3327
|
+
if (r === 0) {
|
|
3328
|
+
l.value = null, u.value = !1;
|
|
3329
|
+
return;
|
|
3330
|
+
}
|
|
3331
|
+
let i = u.value ? t.length : l.value == null ? -1 : t.findIndex((e) => e.value === l.value), a = i === -1 ? e === 1 ? 0 : r - 1 : (i + e + r) % r;
|
|
3332
|
+
n && a === t.length ? (u.value = !0, l.value = null) : (u.value = !1, l.value = t[a]?.value ?? null);
|
|
3333
|
+
}, C = () => {
|
|
3334
|
+
if (e.disabled.value) return;
|
|
3335
|
+
let t = s.value;
|
|
3336
|
+
s.value = !0, y(), b(), t || e.events?.onMenuOpened?.();
|
|
3337
|
+
}, w = () => {
|
|
3338
|
+
c.value = "";
|
|
3339
|
+
}, T = () => {
|
|
3340
|
+
let t = s.value;
|
|
3341
|
+
s.value = !1, (e.resetSearchOnBlur?.value ?? !0) && w(), l.value = null, t && e.events?.onMenuClosed?.();
|
|
3342
|
+
}, E = () => {
|
|
3343
|
+
s.value ? T() : C();
|
|
3344
|
+
}, ee = () => e.closeOnSelect?.value ?? !e.multiple.value, D = (t) => {
|
|
3345
|
+
if (!e.disabled.value && !e.collection.allOptions.value.find((e) => e.value === t)?.disabled) {
|
|
3346
|
+
if (e.multiple.value) {
|
|
3347
|
+
let n = Array.isArray(e.modelValue.value) ? e.modelValue.value : [];
|
|
3348
|
+
if (n.includes(t)) {
|
|
3349
|
+
e.modelValue.value = n.filter((e) => e !== t), e.events?.onOptionDeselected?.(t);
|
|
3350
|
+
return;
|
|
3351
|
+
}
|
|
3352
|
+
e.modelValue.value = [...n, t], e.events?.onOptionSelected?.(t), (e.resetSearchOnSelect?.value ?? !0) && w(), ee() && T();
|
|
3353
|
+
} else e.modelValue.value = t, e.events?.onOptionSelected?.(t), (e.resetSearchOnSelect?.value ?? !0) && w(), ee() && T();
|
|
3354
|
+
}
|
|
3355
|
+
}, O = () => {
|
|
3356
|
+
if (!m.value || e.disabled.value) return;
|
|
3357
|
+
let t = h.value;
|
|
3358
|
+
t && (e.events?.onCreate?.(t), (e.resetSearchOnSelect?.value ?? !0) && w(), u.value = !1, ee() && T());
|
|
3359
|
+
}, k = () => {
|
|
3360
|
+
u.value ? O() : l.value != null && D(l.value);
|
|
3361
|
+
}, A = (t) => {
|
|
3362
|
+
if (!e.multiple.value) return;
|
|
3363
|
+
let n = Array.isArray(e.modelValue.value) ? e.modelValue.value : [];
|
|
3364
|
+
e.modelValue.value = n.filter((e) => e !== t), e.events?.onOptionDeselected?.(t);
|
|
3365
|
+
}, j = () => {
|
|
3366
|
+
if (!e.multiple.value) return;
|
|
3367
|
+
let t = Array.isArray(e.modelValue.value) ? e.modelValue.value : [];
|
|
3368
|
+
t[t.length - 1] != null && (e.modelValue.value = t.slice(0, -1));
|
|
3369
|
+
}, te = () => {
|
|
3370
|
+
if (!e.clearable.value || e.disabled.value) return;
|
|
3371
|
+
if (e.multiple.value) {
|
|
3372
|
+
e.modelValue.value = [], e.events?.onOptionDeselected?.(null);
|
|
3373
|
+
return;
|
|
3374
|
+
}
|
|
3375
|
+
let t = e.modelValue.value;
|
|
3376
|
+
e.modelValue.value = null, t != null && e.events?.onOptionDeselected?.(t);
|
|
3377
|
+
}, M = (e) => f.value.some((t) => t.value === e), ne = (e) => {
|
|
3378
|
+
d.value = e;
|
|
3379
|
+
}, { registerRootElement: re, registerTriggerElement: ie, registerPopoverElement: P, rootElement: ae, triggerElement: oe, popoverElement: ce } = sa({
|
|
3380
|
+
isOpen: s,
|
|
3381
|
+
close: T
|
|
3382
|
+
}), le = {
|
|
3383
|
+
modelValue: e.modelValue,
|
|
3384
|
+
isOpen: s,
|
|
3385
|
+
searchValue: c,
|
|
3386
|
+
multiple: e.multiple,
|
|
3387
|
+
disabled: e.disabled,
|
|
3388
|
+
searchable: e.searchable,
|
|
3389
|
+
clearable: e.clearable,
|
|
3390
|
+
loading: e.loading,
|
|
3391
|
+
activeOptionValue: l,
|
|
3392
|
+
triggerId: n,
|
|
3393
|
+
inputId: r,
|
|
3394
|
+
listboxId: i,
|
|
3395
|
+
activeOptionElementId: _,
|
|
3396
|
+
allOptions: e.collection.allOptions,
|
|
3397
|
+
filteredOptions: f,
|
|
3398
|
+
selectedOptions: g,
|
|
3399
|
+
showCreateItem: m,
|
|
3400
|
+
createItemSearchValue: h,
|
|
3401
|
+
isCreateItemActive: o(() => u.value),
|
|
3402
|
+
createItemElementId: a,
|
|
3403
|
+
open: C,
|
|
3404
|
+
close: T,
|
|
3405
|
+
toggle: E,
|
|
3406
|
+
select: D,
|
|
3407
|
+
selectCreateItem: O,
|
|
3408
|
+
selectActiveOption: k,
|
|
3409
|
+
deselect: A,
|
|
3410
|
+
deselectLast: j,
|
|
3411
|
+
clear: te,
|
|
3412
|
+
registerOption: e.collection.register,
|
|
3413
|
+
unregisterOption: e.collection.unregister,
|
|
3414
|
+
setActiveOptionValue: v,
|
|
3415
|
+
moveActiveOption: S,
|
|
3416
|
+
focusFirstOption: y,
|
|
3417
|
+
isOptionVisible: M,
|
|
3418
|
+
handleKeydown: () => {},
|
|
3419
|
+
registerRootElement: re,
|
|
3420
|
+
registerTriggerElement: ie,
|
|
3421
|
+
registerInputElement: ne,
|
|
3422
|
+
registerPopoverElement: P,
|
|
3423
|
+
rootElement: ae,
|
|
3424
|
+
triggerElement: oe,
|
|
3425
|
+
inputElement: d,
|
|
3426
|
+
popoverElement: ce
|
|
3427
|
+
}, { handleKeydown: F } = ca({ context: le });
|
|
3428
|
+
return le.handleKeydown = F, R(c, (t, n) => {
|
|
3429
|
+
x(), e.searchable.value && t !== n && (t.length > 0 || n.length > 0) && e.events?.onSearch?.(t);
|
|
3430
|
+
}, { flush: "sync" }), R(() => [
|
|
3431
|
+
s.value,
|
|
3432
|
+
p.value,
|
|
3433
|
+
m.value
|
|
3434
|
+
], ([e, t, n]) => {
|
|
3435
|
+
e && (t.length !== 0 || n) && x();
|
|
3436
|
+
}, { flush: "sync" }), { context: le };
|
|
3437
|
+
}
|
|
3438
|
+
// primitives/SelectRoot.vue
|
|
3439
|
+
var da = /* @__PURE__ */ m({
|
|
3440
|
+
__name: "SelectRoot",
|
|
3441
|
+
props: /*@__PURE__*/ C({
|
|
3442
|
+
multiple: {
|
|
3443
|
+
type: Boolean,
|
|
3444
|
+
default: !1
|
|
3445
|
+
},
|
|
3446
|
+
searchable: {
|
|
3447
|
+
type: Boolean,
|
|
3448
|
+
default: !1
|
|
3449
|
+
},
|
|
3450
|
+
disabled: {
|
|
3451
|
+
type: Boolean,
|
|
3452
|
+
default: !1
|
|
3453
|
+
},
|
|
3454
|
+
clearable: {
|
|
3455
|
+
type: Boolean,
|
|
3456
|
+
default: !1
|
|
3457
|
+
},
|
|
3458
|
+
loading: {
|
|
3459
|
+
type: Boolean,
|
|
3460
|
+
default: !1
|
|
3461
|
+
},
|
|
3462
|
+
closeOnSelect: {
|
|
3463
|
+
type: [Boolean, null],
|
|
3464
|
+
default: null
|
|
3465
|
+
},
|
|
3466
|
+
resetSearchOnBlur: {
|
|
3467
|
+
type: Boolean,
|
|
3468
|
+
default: !0
|
|
3469
|
+
},
|
|
3470
|
+
resetSearchOnSelect: {
|
|
3471
|
+
type: Boolean,
|
|
3472
|
+
default: !0
|
|
3473
|
+
},
|
|
3474
|
+
hideSelected: {
|
|
3475
|
+
type: Boolean,
|
|
3476
|
+
default: !1
|
|
3477
|
+
},
|
|
3478
|
+
createItem: { type: [Boolean, String] },
|
|
3479
|
+
options: { default: () => [] },
|
|
3480
|
+
filterBy: {
|
|
3481
|
+
type: Function,
|
|
3482
|
+
default: be
|
|
3483
|
+
}
|
|
3484
|
+
}, {
|
|
3485
|
+
modelValue: { default: null },
|
|
3486
|
+
modelModifiers: {}
|
|
3487
|
+
}),
|
|
3488
|
+
emits: /*@__PURE__*/ C([
|
|
3489
|
+
"update:modelValue",
|
|
3490
|
+
"menuOpened",
|
|
3491
|
+
"menuClosed",
|
|
3492
|
+
"search",
|
|
3493
|
+
"create",
|
|
3494
|
+
"optionSelected",
|
|
3495
|
+
"optionDeselected"
|
|
3496
|
+
], ["update:modelValue"]),
|
|
3497
|
+
setup(e, { emit: t }) {
|
|
3498
|
+
let n = e, r = t, i = fe(e, "modelValue"), a = F(() => n.multiple), s = F(() => n.disabled), c = F(() => n.searchable), u = F(() => n.clearable), d = F(() => n.loading), f = F(() => n.closeOnSelect), p = F(() => n.resetSearchOnBlur), m = F(() => n.resetSearchOnSelect), h = F(() => n.hideSelected), g = F(() => n.createItem), _ = F(() => n.options), { context: v } = ua({
|
|
3499
|
+
modelValue: i,
|
|
3500
|
+
multiple: a,
|
|
3501
|
+
disabled: s,
|
|
3502
|
+
searchable: c,
|
|
3503
|
+
clearable: u,
|
|
3504
|
+
loading: d,
|
|
3505
|
+
closeOnSelect: f,
|
|
3506
|
+
resetSearchOnBlur: p,
|
|
3507
|
+
resetSearchOnSelect: m,
|
|
3508
|
+
hideSelected: h,
|
|
3509
|
+
createItem: g,
|
|
3510
|
+
propOptions: _,
|
|
3511
|
+
filterBy: o(() => n.filterBy),
|
|
3512
|
+
collection: na({ propOptions: () => _.value }),
|
|
3513
|
+
events: {
|
|
3514
|
+
onMenuOpened: () => r("menuOpened"),
|
|
3515
|
+
onMenuClosed: () => r("menuClosed"),
|
|
3516
|
+
onSearch: (e) => r("search", e),
|
|
3517
|
+
onCreate: (e) => r("create", e),
|
|
3518
|
+
onOptionSelected: (e) => r("optionSelected", e),
|
|
3519
|
+
onOptionDeselected: (e) => r("optionDeselected", e)
|
|
3520
|
+
}
|
|
3521
|
+
});
|
|
3522
|
+
Ce(v);
|
|
3523
|
+
function y(e) {
|
|
3524
|
+
v.registerRootElement(ke(e));
|
|
3525
|
+
}
|
|
3526
|
+
return (e, t) => (M(), l("div", {
|
|
3527
|
+
ref: y,
|
|
3528
|
+
"data-select-root": ""
|
|
3529
|
+
}, [P(e.$slots, "default")], 512));
|
|
3530
|
+
}
|
|
3531
|
+
}), fa = ["data-open", "data-loading"], pa = /* @__PURE__ */ m({
|
|
3532
|
+
__name: "SelectTrailingIcon",
|
|
3533
|
+
setup(e) {
|
|
3534
|
+
let t = B(), n = o(() => t.isOpen.value), r = o(() => t.loading.value);
|
|
3535
|
+
return (e, t) => (M(), l("span", {
|
|
3536
|
+
"data-select-trailing-icon": "",
|
|
3537
|
+
"data-open": n.value,
|
|
3538
|
+
"data-loading": r.value,
|
|
3539
|
+
"aria-hidden": "true"
|
|
3540
|
+
}, [P(e.$slots, "default", {
|
|
3541
|
+
open: n.value,
|
|
3542
|
+
loading: r.value
|
|
3543
|
+
}, () => [t[0] ||= u("svg", {
|
|
3544
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3545
|
+
fill: "none",
|
|
3546
|
+
viewBox: "0 0 24 24",
|
|
3547
|
+
"stroke-width": "1.5",
|
|
3548
|
+
stroke: "currentColor",
|
|
3549
|
+
width: "1em",
|
|
3550
|
+
height: "1em",
|
|
3551
|
+
"aria-hidden": "true"
|
|
3552
|
+
}, [u("path", {
|
|
3553
|
+
"stroke-linecap": "round",
|
|
3554
|
+
"stroke-linejoin": "round",
|
|
3555
|
+
d: "m19.5 8.25-7.5 7.5-7.5-7.5"
|
|
3556
|
+
})], -1)])], 8, fa));
|
|
3557
|
+
}
|
|
3558
|
+
}), ma = /* @__PURE__ */ m({
|
|
3559
|
+
__name: "SelectTrigger",
|
|
3560
|
+
setup(e) {
|
|
3561
|
+
let t = B(), n = o(() => t.isOpen.value), r = o(() => t.disabled.value), i = o(() => t.searchable.value), a = o(() => i.value ? "div" : "button");
|
|
3562
|
+
function c() {
|
|
3563
|
+
r.value || t.toggle();
|
|
3564
|
+
}
|
|
3565
|
+
function l(e) {
|
|
3566
|
+
t.handleKeydown(e);
|
|
3567
|
+
}
|
|
3568
|
+
function u(e) {
|
|
3569
|
+
t.registerTriggerElement(ke(e));
|
|
3570
|
+
}
|
|
3571
|
+
return (e, o) => (M(), s(ae(a.value), {
|
|
3572
|
+
id: L(t).triggerId,
|
|
3573
|
+
ref: u,
|
|
3574
|
+
type: i.value ? void 0 : "button",
|
|
3575
|
+
"data-select-trigger": "",
|
|
3576
|
+
"aria-expanded": i.value ? void 0 : n.value,
|
|
3577
|
+
"aria-haspopup": i.value ? void 0 : "listbox",
|
|
3578
|
+
"aria-controls": i.value ? void 0 : L(t).listboxId,
|
|
3579
|
+
disabled: i.value ? void 0 : r.value,
|
|
3580
|
+
"aria-disabled": i.value ? r.value : void 0,
|
|
3581
|
+
onClick: c,
|
|
3582
|
+
onKeydown: l
|
|
3583
|
+
}, {
|
|
3584
|
+
default: z(() => [P(e.$slots, "default")]),
|
|
3585
|
+
_: 3
|
|
3586
|
+
}, 40, [
|
|
3587
|
+
"id",
|
|
3588
|
+
"type",
|
|
3589
|
+
"aria-expanded",
|
|
3590
|
+
"aria-haspopup",
|
|
3591
|
+
"aria-controls",
|
|
3592
|
+
"disabled",
|
|
3593
|
+
"aria-disabled"
|
|
3594
|
+
]));
|
|
3595
|
+
}
|
|
3596
|
+
}), ha = { "data-select-tag": "" }, ga = /* @__PURE__ */ m({
|
|
3597
|
+
__name: "SelectTag",
|
|
3598
|
+
props: {
|
|
3599
|
+
value: {},
|
|
3600
|
+
label: {}
|
|
3601
|
+
},
|
|
3602
|
+
setup(e) {
|
|
3603
|
+
let t = e, n = B();
|
|
3604
|
+
function r(e) {
|
|
3605
|
+
e.stopPropagation(), n.deselect(t.value);
|
|
3606
|
+
}
|
|
3607
|
+
return (t, n) => (M(), l("span", ha, [P(t.$slots, "default", {
|
|
3608
|
+
label: e.label,
|
|
3609
|
+
value: e.value
|
|
3610
|
+
}, () => [f(ce(e.label), 1)]), u("button", {
|
|
3611
|
+
type: "button",
|
|
3612
|
+
"data-select-tag-remove": "",
|
|
3613
|
+
"aria-label": "Remove",
|
|
3614
|
+
onClick: r
|
|
3615
|
+
}, [P(t.$slots, "remove", {
|
|
3616
|
+
label: e.label,
|
|
3617
|
+
value: e.value
|
|
3618
|
+
}, () => [n[0] ||= u("svg", {
|
|
3619
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3620
|
+
viewBox: "0 0 20 20",
|
|
3621
|
+
fill: "currentColor",
|
|
3622
|
+
width: "1em",
|
|
3623
|
+
height: "1em",
|
|
3624
|
+
"aria-hidden": "true"
|
|
3625
|
+
}, [u("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22z" })], -1)])])]));
|
|
3626
|
+
}
|
|
3627
|
+
}), _a = ["data-empty", "data-searching"], va = /* @__PURE__ */ m({
|
|
3628
|
+
__name: "SelectValue",
|
|
3629
|
+
props: { placeholder: {} },
|
|
3630
|
+
setup(e) {
|
|
3631
|
+
let t = B(), r = o(() => t.multiple.value), i = o(() => t.selectedOptions.value), a = o(() => i.value.length === 0), u = o(() => t.searchable.value && t.searchValue.value.length > 0);
|
|
3632
|
+
return (t, o) => (M(), l("span", {
|
|
3633
|
+
"data-select-value": "",
|
|
3634
|
+
"data-empty": a.value,
|
|
3635
|
+
"data-searching": u.value
|
|
3636
|
+
}, [u.value ? c("", !0) : P(t.$slots, "default", { selectedOptions: i.value }, () => [r.value ? (M(), l(n, { key: 0 }, [(M(!0), l(n, null, ie(i.value, (e) => (M(), s(ga, {
|
|
3637
|
+
key: String(e.value),
|
|
3638
|
+
value: e.value,
|
|
3639
|
+
label: e.label
|
|
3640
|
+
}, d({ _: 2 }, [t.$slots["tag-remove"] ? {
|
|
3641
|
+
name: "remove",
|
|
3642
|
+
fn: z((e) => [P(t.$slots, "tag-remove", w({ ref_for: !0 }, e))]),
|
|
3643
|
+
key: "0"
|
|
3644
|
+
} : void 0]), 1032, ["value", "label"]))), 128)), i.value.length === 0 && e.placeholder ? (M(), l(n, { key: 0 }, [f(ce(e.placeholder), 1)], 64)) : c("", !0)], 64)) : (M(), l(n, { key: 1 }, [i.value[0] ? (M(), l(n, { key: 0 }, [f(ce(i.value[0].label), 1)], 64)) : e.placeholder ? (M(), l(n, { key: 1 }, [f(ce(e.placeholder), 1)], 64)) : c("", !0)], 64))], void 0, 0)], 8, _a));
|
|
3645
|
+
}
|
|
3646
|
+
}), ya = ["id", "aria-labelledby"], ba = /* @__PURE__ */ m({
|
|
3647
|
+
__name: "SelectGroup",
|
|
3648
|
+
setup(e) {
|
|
3649
|
+
let t = B(), n = Ke(), r = qe(), i = N(!1), a = se(/* @__PURE__ */ new Set()), s = o(() => i.value ? r : void 0), c = o(() => a.value.size === 0 || [...a.value].some((e) => t.isOptionVisible(e)));
|
|
3650
|
+
function u() {
|
|
3651
|
+
i.value = !0;
|
|
3652
|
+
}
|
|
3653
|
+
function d() {
|
|
3654
|
+
i.value = !1;
|
|
3655
|
+
}
|
|
3656
|
+
function f(e) {
|
|
3657
|
+
let t = new Set(a.value);
|
|
3658
|
+
t.add(e), a.value = t;
|
|
3659
|
+
}
|
|
3660
|
+
function p(e) {
|
|
3661
|
+
let t = new Set(a.value);
|
|
3662
|
+
t.delete(e), a.value = t;
|
|
3663
|
+
}
|
|
3664
|
+
return Le({
|
|
3665
|
+
groupId: n,
|
|
3666
|
+
labelId: r,
|
|
3667
|
+
labelledBy: s,
|
|
3668
|
+
isVisible: c,
|
|
3669
|
+
hasLabel: i,
|
|
3670
|
+
registerLabel: u,
|
|
3671
|
+
unregisterLabel: d,
|
|
3672
|
+
registerOptionValue: f,
|
|
3673
|
+
unregisterOptionValue: p
|
|
3674
|
+
}), (e, t) => _e((M(), l("div", {
|
|
3675
|
+
id: L(n),
|
|
3676
|
+
role: "group",
|
|
3677
|
+
"data-select-group": "",
|
|
3678
|
+
"aria-labelledby": s.value
|
|
3679
|
+
}, [P(e.$slots, "default")], 8, ya)), [[me, c.value]]);
|
|
3680
|
+
}
|
|
3681
|
+
}), xa = ["id"], Sa = /* @__PURE__ */ m({
|
|
3682
|
+
__name: "SelectGroupLabel",
|
|
3683
|
+
setup(e) {
|
|
3684
|
+
let t = Re(), n = t.labelId, r = t.isVisible;
|
|
3685
|
+
return k(() => {
|
|
3686
|
+
t.registerLabel();
|
|
3687
|
+
}), j(() => {
|
|
3688
|
+
t.unregisterLabel();
|
|
3689
|
+
}), (e, t) => _e((M(), l("div", {
|
|
3690
|
+
id: L(n),
|
|
3691
|
+
"data-select-group-label": ""
|
|
3692
|
+
}, [P(e.$slots, "default")], 8, xa)), [[me, L(r)]]);
|
|
3693
|
+
}
|
|
3694
|
+
}), Ca = {
|
|
3695
|
+
role: "separator",
|
|
3696
|
+
"aria-orientation": "horizontal",
|
|
3697
|
+
"data-select-separator": ""
|
|
3698
|
+
}, wa = /* @__PURE__ */ m({
|
|
3699
|
+
__name: "SelectSeparator",
|
|
3700
|
+
setup(e) {
|
|
3701
|
+
return B(), (e, t) => (M(), l("div", Ca));
|
|
3702
|
+
}
|
|
3703
|
+
});
|
|
3704
|
+
export { B as _, ga as a, da as c, Fe as d, Ne as f, we as g, Ee as h, va as i, ea as l, Oe as m, Sa as n, ma as o, je as p, ba as r, pa as s, wa as t, Qe as u, Ce as v, be as y };
|