@vergelijkdirect/comparison-forms 2.0.0-rc.14 → 2.0.0-rc.15
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/wc-forms/VdInput-BaZx7lM7.js +1 -0
- package/dist/wc-forms/VdPopover-B_0EwmOm.js +1 -0
- package/dist/wc-forms/VdRadioGroup-BAy4077M.js +1 -0
- package/dist/wc-forms/VdSearchableSelect-BYsNA8so.js +9 -0
- package/dist/wc-forms/VdSelect-DS5ijaBw.js +1 -0
- package/dist/wc-forms/bike.js +1 -1647
- package/dist/wc-forms/birthdate.schema-B2IfhcT0.js +1 -0
- package/dist/wc-forms/business-car.js +1 -109
- package/dist/wc-forms/business-liability.js +1 -71
- package/dist/wc-forms/car.js +1 -112
- package/dist/wc-forms/caravan.js +1 -144
- package/dist/wc-forms/company.schema-D_-KvPAl.js +1 -0
- package/dist/wc-forms/date.util-Dn_Fq_ZZ.js +1 -0
- package/dist/wc-forms/familyComposition.schema-BckaOvgV.js +1 -0
- package/dist/wc-forms/floating-ui.dom-CZdxKWz5.js +1 -0
- package/dist/wc-forms/house.js +1 -101
- package/dist/wc-forms/houseOwnedBuilding.model-RQzmveyS.js +1 -0
- package/dist/wc-forms/legal.js +1 -153
- package/dist/wc-forms/liability.js +1 -89
- package/dist/wc-forms/loan.js +1 -173
- package/dist/wc-forms/messages-Da6go1uu.js +1 -0
- package/dist/wc-forms/moped.js +1 -115
- package/dist/wc-forms/motor.js +1 -112
- package/dist/wc-forms/package.js +1 -119
- package/dist/wc-forms/pet.js +1 -158
- package/dist/wc-forms/rolldown-runtime-Bm1jhNxk.js +1 -0
- package/dist/wc-forms/rules-4erM_5MW.js +1 -0
- package/dist/wc-forms/services-D6FlwWWO.js +1 -0
- package/dist/wc-forms/travel.js +1 -99
- package/dist/wc-forms/useAddress-mxYJ2B9-.js +1 -0
- package/dist/wc-forms/useLicensePlate-BK5GSqI6.js +1 -0
- package/dist/wc-forms/useValidator-BXvfnDwv.js +27 -0
- package/dist/wc-forms/yesNo-Dat_jmcx.js +1 -0
- package/package.json +1 -1
- package/dist/wc-forms/VdInput-PLH7DZsc.js +0 -331
- package/dist/wc-forms/VdPopover-CcRVedXS.js +0 -285
- package/dist/wc-forms/VdRadioGroup-BsMaGEuY.js +0 -166
- package/dist/wc-forms/VdSearchableSelect-CY7qBcIO.js +0 -4516
- package/dist/wc-forms/VdSelect-BPB3Jh_f.js +0 -108
- package/dist/wc-forms/birthdate.schema-DGsq2GQR.js +0 -89
- package/dist/wc-forms/company.schema-CUG4hnMP.js +0 -239
- package/dist/wc-forms/date.util-D9xNHiuY.js +0 -474
- package/dist/wc-forms/familyComposition.schema-fY4w6P1J.js +0 -74
- package/dist/wc-forms/floating-ui.dom-B6uyM6oK.js +0 -856
- package/dist/wc-forms/houseOwnedBuilding.model-CPULUrWv.js +0 -14
- package/dist/wc-forms/messages-kbFdNTrA.js +0 -40
- package/dist/wc-forms/rolldown-runtime-Dqa2HsxW.js +0 -20
- package/dist/wc-forms/rules-Cj1sWDmF.js +0 -13
- package/dist/wc-forms/services-CG6XsnRT.js +0 -16
- package/dist/wc-forms/useAddress-LSZ7sQk9.js +0 -243
- package/dist/wc-forms/useLicensePlate-KLwykzxF.js +0 -187
- package/dist/wc-forms/useValidator-DdXn8soU.js +0 -7197
- package/dist/wc-forms/yesNo-BvJlCm7Y.js +0 -6
|
@@ -1,4516 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
-
import { $ as t, $n as n, $r as r, $t as i, A as a, An as o, Ar as s, At as c, B as l, Bn as u, Br as d, Bt as f, C as p, Cn as m, Cr as h, Ct as g, D as _, Dn as v, Dr as y, Dt as b, E as x, En as S, Er as ee, Et as C, F as te, Fn as w, Fr as ne, Ft as T, G as re, Gn as E, Gr as ie, Gt as D, H as ae, Hn as oe, Hr as se, Ht as ce, I as le, In as ue, Ir as de, It as fe, J as pe, Jn as me, Jr as he, Jt as O, K as ge, Kn as _e, Kr as ve, Kt as k, L as ye, Ln as A, Lr as be, Lt as xe, M as Se, Mn as Ce, Mr as we, Mt as Te, N as Ee, Nn as De, Nr as Oe, Nt as ke, O as Ae, On as je, Or as Me, Ot as Ne, P as Pe, Pn as Fe, Pr as Ie, Pt as Le, Q as Re, Qn as ze, Qr as Be, Qt as Ve, R as He, Rn as Ue, Rr as We, Rt as Ge, S as Ke, Sn as qe, Sr as j, St as Je, T as Ye, Tn as Xe, Tr as Ze, Tt as Qe, U as $e, Un as M, Ur as et, Ut as tt, V as nt, Vn as rt, Vr as it, Vt as at, W as ot, Wn as st, Wr as ct, Wt as lt, X as ut, Xn as N, Xr as dt, Xt as ft, Y as pt, Yn as mt, Yr as ht, Yt as P, Z as gt, Zn as _t, Zr as vt, Zt as yt, _ as bt, _n as xt, _r as F, _t as St, ai as Ct, an as wt, ar as Tt, at as Et, b as Dt, bn as Ot, br as kt, bt as At, ci as jt, cn as Mt, cr as Nt, ct as Pt, dn as Ft, dr as It, dt as Lt, ei as Rt, en as zt, er as Bt, et as Vt, f as Ht, fn as Ut, fr as Wt, ft as Gt, g as I, gn as Kt, gr as qt, gt as Jt, h as Yt, hn as Xt, hr as Zt, ht as Qt, ii as $t, in as L, ir as en, it as tn, j as nn, jn as rn, jr as an, jt as on, k as sn, kn as R, kr as cn, kt as ln, li as z, ln as un, lr as dn, lt as fn, m as pn, mn, mr as hn, mt as gn, ni as _n, nn as B, nr as vn, nt as yn, oi as bn, on as xn, or as Sn, ot as Cn, p as wn, pn as Tn, pr as En, pt as Dn, q as On, qn as kn, qr as V, qt as H, ri as U, rn as An, rr as jn, rt as Mn, si as Nn, sn as Pn, sr as Fn, st as In, ti as W, tn as G, tr as Ln, tt as Rn, ui as zn, un as Bn, ur as Vn, ut as Hn, v as Un, vn as Wn, vr as K, vt as Gn, wn as Kn, wr as qn, wt as Jn, x as Yn, xn as Xn, xr as Zn, xt as Qn, y as $n, yn as er, yr as tr, yt as nr, z as rr, zn as ir, zr as ar, zt as or } from "./useValidator-DdXn8soU.js";
|
|
3
|
-
import { a as sr, c as cr, d as lr, i as ur, l as dr, n as fr, o as pr, r as mr, s as hr, t as gr, u as _r } from "./floating-ui.dom-B6uyM6oK.js";
|
|
4
|
-
//#region node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
5
|
-
var vr = /* @__PURE__ */ e({
|
|
6
|
-
BaseTransition: () => c,
|
|
7
|
-
BaseTransitionPropsValidators: () => on,
|
|
8
|
-
Comment: () => Te,
|
|
9
|
-
DeprecationTypes: () => null,
|
|
10
|
-
EffectScope: () => y,
|
|
11
|
-
ErrorCodes: () => ke,
|
|
12
|
-
ErrorTypeStrings: () => Le,
|
|
13
|
-
Fragment: () => T,
|
|
14
|
-
KeepAlive: () => fe,
|
|
15
|
-
ReactiveEffect: () => Me,
|
|
16
|
-
Static: () => xe,
|
|
17
|
-
Suspense: () => Ge,
|
|
18
|
-
Teleport: () => or,
|
|
19
|
-
Text: () => f,
|
|
20
|
-
TrackOpTypes: () => cn,
|
|
21
|
-
Transition: () => Cn,
|
|
22
|
-
TransitionGroup: () => In,
|
|
23
|
-
TriggerOpTypes: () => s,
|
|
24
|
-
VueElement: () => Pt,
|
|
25
|
-
assertNumber: () => at,
|
|
26
|
-
callWithAsyncErrorHandling: () => ce,
|
|
27
|
-
callWithErrorHandling: () => tt,
|
|
28
|
-
camelize: () => $t,
|
|
29
|
-
capitalize: () => Ct,
|
|
30
|
-
cloneVNode: () => lt,
|
|
31
|
-
compatUtils: () => null,
|
|
32
|
-
compile: () => yr,
|
|
33
|
-
computed: () => D,
|
|
34
|
-
createApp: () => fn,
|
|
35
|
-
createBlock: () => H,
|
|
36
|
-
createCommentVNode: () => O,
|
|
37
|
-
createElementBlock: () => P,
|
|
38
|
-
createElementVNode: () => k,
|
|
39
|
-
createHydrationRenderer: () => ft,
|
|
40
|
-
createPropsRestProxy: () => yt,
|
|
41
|
-
createRenderer: () => Ve,
|
|
42
|
-
createSSRApp: () => Hn,
|
|
43
|
-
createSlots: () => i,
|
|
44
|
-
createStaticVNode: () => zt,
|
|
45
|
-
createTextVNode: () => G,
|
|
46
|
-
createVNode: () => B,
|
|
47
|
-
customRef: () => an,
|
|
48
|
-
defineAsyncComponent: () => An,
|
|
49
|
-
defineComponent: () => L,
|
|
50
|
-
defineCustomElement: () => Lt,
|
|
51
|
-
defineEmits: () => wt,
|
|
52
|
-
defineExpose: () => xn,
|
|
53
|
-
defineModel: () => Pn,
|
|
54
|
-
defineOptions: () => Mt,
|
|
55
|
-
defineProps: () => un,
|
|
56
|
-
defineSSRCustomElement: () => Gt,
|
|
57
|
-
defineSlots: () => Bn,
|
|
58
|
-
devtools: () => Ft,
|
|
59
|
-
effect: () => we,
|
|
60
|
-
effectScope: () => Oe,
|
|
61
|
-
getCurrentInstance: () => Ut,
|
|
62
|
-
getCurrentScope: () => Ie,
|
|
63
|
-
getCurrentWatcher: () => ne,
|
|
64
|
-
getTransitionRawChildren: () => Tn,
|
|
65
|
-
guardReactiveProps: () => mn,
|
|
66
|
-
h: () => Xt,
|
|
67
|
-
handleError: () => Kt,
|
|
68
|
-
hasInjectionContext: () => xt,
|
|
69
|
-
hydrate: () => Dn,
|
|
70
|
-
hydrateOnIdle: () => Wn,
|
|
71
|
-
hydrateOnInteraction: () => er,
|
|
72
|
-
hydrateOnMediaQuery: () => Ot,
|
|
73
|
-
hydrateOnVisible: () => Xn,
|
|
74
|
-
initCustomFormatter: () => qe,
|
|
75
|
-
initDirectivesForSSR: () => gn,
|
|
76
|
-
inject: () => m,
|
|
77
|
-
isMemoSame: () => Kn,
|
|
78
|
-
isProxy: () => de,
|
|
79
|
-
isReactive: () => be,
|
|
80
|
-
isReadonly: () => We,
|
|
81
|
-
isRef: () => ar,
|
|
82
|
-
isRuntimeOnly: () => Xe,
|
|
83
|
-
isShallow: () => d,
|
|
84
|
-
isVNode: () => S,
|
|
85
|
-
markRaw: () => it,
|
|
86
|
-
mergeDefaults: () => v,
|
|
87
|
-
mergeModels: () => je,
|
|
88
|
-
mergeProps: () => R,
|
|
89
|
-
nextTick: () => o,
|
|
90
|
-
nodeOps: () => Qt,
|
|
91
|
-
normalizeClass: () => bn,
|
|
92
|
-
normalizeProps: () => Nn,
|
|
93
|
-
normalizeStyle: () => jt,
|
|
94
|
-
onActivated: () => rn,
|
|
95
|
-
onBeforeMount: () => Ce,
|
|
96
|
-
onBeforeUnmount: () => De,
|
|
97
|
-
onBeforeUpdate: () => Fe,
|
|
98
|
-
onDeactivated: () => w,
|
|
99
|
-
onErrorCaptured: () => ue,
|
|
100
|
-
onMounted: () => A,
|
|
101
|
-
onRenderTracked: () => Ue,
|
|
102
|
-
onRenderTriggered: () => ir,
|
|
103
|
-
onScopeDispose: () => se,
|
|
104
|
-
onServerPrefetch: () => u,
|
|
105
|
-
onUnmounted: () => rt,
|
|
106
|
-
onUpdated: () => oe,
|
|
107
|
-
onWatcherCleanup: () => et,
|
|
108
|
-
openBlock: () => M,
|
|
109
|
-
patchProp: () => Jt,
|
|
110
|
-
popScopeId: () => st,
|
|
111
|
-
provide: () => E,
|
|
112
|
-
proxyRefs: () => ct,
|
|
113
|
-
pushScopeId: () => _e,
|
|
114
|
-
queuePostFlushCb: () => kn,
|
|
115
|
-
reactive: () => ie,
|
|
116
|
-
readonly: () => ve,
|
|
117
|
-
ref: () => V,
|
|
118
|
-
registerRuntimeCompiler: () => me,
|
|
119
|
-
render: () => St,
|
|
120
|
-
renderList: () => mt,
|
|
121
|
-
renderSlot: () => N,
|
|
122
|
-
resolveComponent: () => _t,
|
|
123
|
-
resolveDirective: () => ze,
|
|
124
|
-
resolveDynamicComponent: () => n,
|
|
125
|
-
resolveFilter: () => null,
|
|
126
|
-
resolveTransitionHooks: () => Bt,
|
|
127
|
-
setBlockTracking: () => Ln,
|
|
128
|
-
setDevtoolsHook: () => vn,
|
|
129
|
-
setTransitionHooks: () => jn,
|
|
130
|
-
shallowReactive: () => he,
|
|
131
|
-
shallowReadonly: () => ht,
|
|
132
|
-
shallowRef: () => dt,
|
|
133
|
-
ssrContextKey: () => en,
|
|
134
|
-
ssrUtils: () => Tt,
|
|
135
|
-
stop: () => vt,
|
|
136
|
-
toDisplayString: () => z,
|
|
137
|
-
toHandlerKey: () => zn,
|
|
138
|
-
toHandlers: () => Sn,
|
|
139
|
-
toRaw: () => Be,
|
|
140
|
-
toRef: () => r,
|
|
141
|
-
toRefs: () => Rt,
|
|
142
|
-
toValue: () => W,
|
|
143
|
-
transformVNodeArgs: () => Fn,
|
|
144
|
-
triggerRef: () => _n,
|
|
145
|
-
unref: () => U,
|
|
146
|
-
useAttrs: () => Nt,
|
|
147
|
-
useCssModule: () => Gn,
|
|
148
|
-
useCssVars: () => nr,
|
|
149
|
-
useHost: () => At,
|
|
150
|
-
useId: () => dn,
|
|
151
|
-
useModel: () => Vn,
|
|
152
|
-
useSSRContext: () => It,
|
|
153
|
-
useShadowRoot: () => Qn,
|
|
154
|
-
useSlots: () => Wt,
|
|
155
|
-
useTemplateRef: () => En,
|
|
156
|
-
useTransitionState: () => hn,
|
|
157
|
-
vModelCheckbox: () => Je,
|
|
158
|
-
vModelDynamic: () => g,
|
|
159
|
-
vModelRadio: () => Jn,
|
|
160
|
-
vModelSelect: () => Qe,
|
|
161
|
-
vModelText: () => C,
|
|
162
|
-
vShow: () => b,
|
|
163
|
-
version: () => Zt,
|
|
164
|
-
warn: () => qt,
|
|
165
|
-
watch: () => F,
|
|
166
|
-
watchEffect: () => K,
|
|
167
|
-
watchPostEffect: () => tr,
|
|
168
|
-
watchSyncEffect: () => kt,
|
|
169
|
-
withAsyncContext: () => Zn,
|
|
170
|
-
withCtx: () => j,
|
|
171
|
-
withDefaults: () => h,
|
|
172
|
-
withDirectives: () => qn,
|
|
173
|
-
withKeys: () => Ne,
|
|
174
|
-
withMemo: () => Ze,
|
|
175
|
-
withModifiers: () => ln,
|
|
176
|
-
withScopeId: () => ee
|
|
177
|
-
}), yr = () => {};
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region node_modules/es-toolkit/dist/function/noop.mjs
|
|
180
|
-
function br() {}
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
183
|
-
function xr(e) {
|
|
184
|
-
if (!e || typeof e != "object") return !1;
|
|
185
|
-
let t = Object.getPrototypeOf(e);
|
|
186
|
-
return t === null || t === Object.prototype || Object.getPrototypeOf(t) === null ? Object.prototype.toString.call(e) === "[object Object]" : !1;
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
|
|
190
|
-
function Sr(e, t, n) {
|
|
191
|
-
return Cr(e, t, void 0, void 0, void 0, void 0, n);
|
|
192
|
-
}
|
|
193
|
-
function Cr(e, t, n, r, i, a, o) {
|
|
194
|
-
let s = o(e, t, n, r, i, a);
|
|
195
|
-
if (s !== void 0) return s;
|
|
196
|
-
if (typeof e == typeof t) switch (typeof e) {
|
|
197
|
-
case "bigint":
|
|
198
|
-
case "string":
|
|
199
|
-
case "boolean":
|
|
200
|
-
case "symbol":
|
|
201
|
-
case "undefined": return e === t;
|
|
202
|
-
case "number": return e === t || Object.is(e, t);
|
|
203
|
-
case "function": return e === t;
|
|
204
|
-
case "object": return wr(e, t, a, o);
|
|
205
|
-
}
|
|
206
|
-
return wr(e, t, a, o);
|
|
207
|
-
}
|
|
208
|
-
function wr(e, n, r, i) {
|
|
209
|
-
if (Object.is(e, n)) return !0;
|
|
210
|
-
let a = Mn(e), o = Mn(n);
|
|
211
|
-
if (a === "[object Arguments]" && (a = pe), o === "[object Arguments]" && (o = pe), a !== o) return !1;
|
|
212
|
-
switch (a) {
|
|
213
|
-
case gt: return e.toString() === n.toString();
|
|
214
|
-
case On: return nn(e.valueOf(), n.valueOf());
|
|
215
|
-
case le:
|
|
216
|
-
case He:
|
|
217
|
-
case Re: return Object.is(e.valueOf(), n.valueOf());
|
|
218
|
-
case pt: return e.source === n.source && e.flags === n.flags;
|
|
219
|
-
case ae: return e === n;
|
|
220
|
-
}
|
|
221
|
-
r ??= /* @__PURE__ */ new Map();
|
|
222
|
-
let s = r.get(e), c = r.get(n);
|
|
223
|
-
if (s != null && c != null) return s === n;
|
|
224
|
-
r.set(e, n), r.set(n, e);
|
|
225
|
-
try {
|
|
226
|
-
switch (a) {
|
|
227
|
-
case ge:
|
|
228
|
-
if (e.size !== n.size) return !1;
|
|
229
|
-
for (let [t, a] of e.entries()) if (!n.has(t) || !Cr(a, n.get(t), t, e, n, r, i)) return !1;
|
|
230
|
-
return !0;
|
|
231
|
-
case ut: {
|
|
232
|
-
if (e.size !== n.size) return !1;
|
|
233
|
-
let t = Array.from(e.values()), a = Array.from(n.values());
|
|
234
|
-
for (let o = 0; o < t.length; o++) {
|
|
235
|
-
let s = t[o], c = a.findIndex((t) => Cr(s, t, void 0, e, n, r, i));
|
|
236
|
-
if (c === -1) return !1;
|
|
237
|
-
a.splice(c, 1);
|
|
238
|
-
}
|
|
239
|
-
return !0;
|
|
240
|
-
}
|
|
241
|
-
case Ee:
|
|
242
|
-
case Rn:
|
|
243
|
-
case yn:
|
|
244
|
-
case t:
|
|
245
|
-
case Vt:
|
|
246
|
-
case te:
|
|
247
|
-
case re:
|
|
248
|
-
case $e:
|
|
249
|
-
case ot:
|
|
250
|
-
case Pe:
|
|
251
|
-
case l:
|
|
252
|
-
case nt:
|
|
253
|
-
if (Et(e) !== Et(n) || e.length !== n.length) return !1;
|
|
254
|
-
for (let t = 0; t < e.length; t++) if (!Cr(e[t], n[t], t, e, n, r, i)) return !1;
|
|
255
|
-
return !0;
|
|
256
|
-
case Se: return e.byteLength === n.byteLength && wr(new Uint8Array(e), new Uint8Array(n), r, i);
|
|
257
|
-
case ye: return e.byteLength !== n.byteLength || e.byteOffset !== n.byteOffset ? !1 : wr(new Uint8Array(e), new Uint8Array(n), r, i);
|
|
258
|
-
case rr: return e.name === n.name && e.message === n.message;
|
|
259
|
-
case pe: {
|
|
260
|
-
if (!(wr(e.constructor, n.constructor, r, i) || xr(e) && xr(n))) return !1;
|
|
261
|
-
let t = [...Object.keys(e), ...tn(e)], a = [...Object.keys(n), ...tn(n)];
|
|
262
|
-
if (t.length !== a.length) return !1;
|
|
263
|
-
for (let a = 0; a < t.length; a++) {
|
|
264
|
-
let o = t[a], s = e[o];
|
|
265
|
-
if (!Object.hasOwn(n, o)) return !1;
|
|
266
|
-
let c = n[o];
|
|
267
|
-
if (!Cr(s, c, o, e, n, r, i)) return !1;
|
|
268
|
-
}
|
|
269
|
-
return !0;
|
|
270
|
-
}
|
|
271
|
-
default: return !1;
|
|
272
|
-
}
|
|
273
|
-
} finally {
|
|
274
|
-
r.delete(e), r.delete(n);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
//#endregion
|
|
278
|
-
//#region node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
279
|
-
function Tr(e, t) {
|
|
280
|
-
return Sr(e, t, br);
|
|
281
|
-
}
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region node_modules/@vueuse/core/dist/index.js
|
|
284
|
-
var Er = I ? window : void 0;
|
|
285
|
-
I && window.document, I && window.navigator, I && window.location;
|
|
286
|
-
function q(e) {
|
|
287
|
-
let t = W(e);
|
|
288
|
-
return t?.$el ?? t;
|
|
289
|
-
}
|
|
290
|
-
function Dr(...e) {
|
|
291
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = D(() => {
|
|
292
|
-
let t = Ye(W(e[0])).filter((e) => e != null);
|
|
293
|
-
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
294
|
-
});
|
|
295
|
-
return sn(() => [
|
|
296
|
-
n.value?.map((e) => q(e)) ?? [Er].filter((e) => e != null),
|
|
297
|
-
Ye(W(n.value ? e[1] : e[0])),
|
|
298
|
-
Ye(U(n.value ? e[2] : e[1])),
|
|
299
|
-
W(n.value ? e[3] : e[2])
|
|
300
|
-
], ([e, n, r, i], a, o) => {
|
|
301
|
-
if (!e?.length || !n?.length || !r?.length) return;
|
|
302
|
-
let s = $n(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
303
|
-
o(() => {
|
|
304
|
-
c.forEach((e) => e());
|
|
305
|
-
});
|
|
306
|
-
}, { flush: "post" });
|
|
307
|
-
}
|
|
308
|
-
function Or(e) {
|
|
309
|
-
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
310
|
-
}
|
|
311
|
-
function kr(...e) {
|
|
312
|
-
let t, n, r = {};
|
|
313
|
-
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]);
|
|
314
|
-
let { target: i = Er, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Or(t);
|
|
315
|
-
return Dr(i, a, (e) => {
|
|
316
|
-
e.repeat && W(s) || c(e) && n(e);
|
|
317
|
-
}, o);
|
|
318
|
-
}
|
|
319
|
-
function Ar(e, t, n) {
|
|
320
|
-
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? Dt, onSuccess: o = Dt, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? dt(t) : V(t), d = dt(!1), f = dt(!1), p = dt(void 0), m = 0;
|
|
321
|
-
async function h(n = 0, ...r) {
|
|
322
|
-
let i = m += 1;
|
|
323
|
-
s && (u.value = W(t)), p.value = void 0, d.value = !1, f.value = !0, n > 0 && await Yn(n);
|
|
324
|
-
let c = typeof e == "function" ? e(...r) : e;
|
|
325
|
-
try {
|
|
326
|
-
let e = await c;
|
|
327
|
-
return i === m && (u.value = e, d.value = !0), o(e), e;
|
|
328
|
-
} catch (e) {
|
|
329
|
-
if (i === m && (p.value = e), a(e), l) throw e;
|
|
330
|
-
} finally {
|
|
331
|
-
i === m && (f.value = !1);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
r && h(i);
|
|
335
|
-
let g = {
|
|
336
|
-
state: u,
|
|
337
|
-
isReady: d,
|
|
338
|
-
isLoading: f,
|
|
339
|
-
error: p,
|
|
340
|
-
execute: h,
|
|
341
|
-
executeImmediate: (...e) => h(0, ...e)
|
|
342
|
-
};
|
|
343
|
-
function _() {
|
|
344
|
-
return new Promise((e, t) => {
|
|
345
|
-
Ae(f).toBe(!1).then(() => e(g)).catch(t);
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
return {
|
|
349
|
-
...g,
|
|
350
|
-
then(e, t) {
|
|
351
|
-
return _().then(e, t);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
}
|
|
355
|
-
function jr(e) {
|
|
356
|
-
return JSON.parse(JSON.stringify(e));
|
|
357
|
-
}
|
|
358
|
-
function Mr(e) {
|
|
359
|
-
let t = Ut(), n = Ht(() => null, () => e ? q(e) : t.proxy.$el);
|
|
360
|
-
return oe(n.trigger), A(n.trigger), n;
|
|
361
|
-
}
|
|
362
|
-
function Nr(e = Mr()) {
|
|
363
|
-
let t = dt(), n = () => {
|
|
364
|
-
let n = q(e);
|
|
365
|
-
n && (t.value = n.parentElement);
|
|
366
|
-
};
|
|
367
|
-
return _(n), F(() => W(e), n), t;
|
|
368
|
-
}
|
|
369
|
-
function Pr(e, t, n, r = {}) {
|
|
370
|
-
var i, a;
|
|
371
|
-
let { clone: s = !1, passive: c = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = Ut(), 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;
|
|
372
|
-
t ||= "modelValue", h ||= `update:${t.toString()}`;
|
|
373
|
-
let g = (e) => s ? typeof s == "function" ? s(e) : jr(e) : e, _ = () => bt(e[t]) ? g(e[t]) : d, v = (e) => {
|
|
374
|
-
f ? f(e) && m(h, e) : m(h, e);
|
|
375
|
-
};
|
|
376
|
-
if (c) {
|
|
377
|
-
let n = V(_()), r = !1;
|
|
378
|
-
return F(() => e[t], (e) => {
|
|
379
|
-
r || (r = !0, n.value = g(e), o(() => r = !1));
|
|
380
|
-
}), F(n, (n) => {
|
|
381
|
-
!r && (n !== e[t] || u) && v(n);
|
|
382
|
-
}, { deep: u }), n;
|
|
383
|
-
} else return D({
|
|
384
|
-
get() {
|
|
385
|
-
return _();
|
|
386
|
-
},
|
|
387
|
-
set(e) {
|
|
388
|
-
v(e);
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
//#endregion
|
|
393
|
-
//#region node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs
|
|
394
|
-
function Fr(e) {
|
|
395
|
-
return typeof e == "string" ? `'${e}'` : new Ir().serialize(e);
|
|
396
|
-
}
|
|
397
|
-
var Ir = /*@__PURE__*/ function() {
|
|
398
|
-
class e {
|
|
399
|
-
#e = /* @__PURE__ */ new Map();
|
|
400
|
-
compare(e, t) {
|
|
401
|
-
let n = typeof e, r = typeof t;
|
|
402
|
-
return n === "string" && r === "string" ? e.localeCompare(t) : n === "number" && r === "number" ? e - t : String.prototype.localeCompare.call(this.serialize(e, !0), this.serialize(t, !0));
|
|
403
|
-
}
|
|
404
|
-
serialize(e, t) {
|
|
405
|
-
if (e === null) return "null";
|
|
406
|
-
switch (typeof e) {
|
|
407
|
-
case "string": return t ? e : `'${e}'`;
|
|
408
|
-
case "bigint": return `${e}n`;
|
|
409
|
-
case "object": return this.$object(e);
|
|
410
|
-
case "function": return this.$function(e);
|
|
411
|
-
}
|
|
412
|
-
return String(e);
|
|
413
|
-
}
|
|
414
|
-
serializeObject(e) {
|
|
415
|
-
let t = Object.prototype.toString.call(e);
|
|
416
|
-
if (t !== "[object Object]") return this.serializeBuiltInType(t.length < 10 ? `unknown:${t}` : t.slice(8, -1), e);
|
|
417
|
-
let n = e.constructor, r = n === Object || n === void 0 ? "" : n.name;
|
|
418
|
-
if (r !== "" && globalThis[r] === n) return this.serializeBuiltInType(r, e);
|
|
419
|
-
if (typeof e.toJSON == "function") {
|
|
420
|
-
let t = e.toJSON();
|
|
421
|
-
return r + (typeof t == "object" && t ? this.$object(t) : `(${this.serialize(t)})`);
|
|
422
|
-
}
|
|
423
|
-
return this.serializeObjectEntries(r, Object.entries(e));
|
|
424
|
-
}
|
|
425
|
-
serializeBuiltInType(e, t) {
|
|
426
|
-
let n = this["$" + e];
|
|
427
|
-
if (n) return n.call(this, t);
|
|
428
|
-
if (typeof t?.entries == "function") return this.serializeObjectEntries(e, t.entries());
|
|
429
|
-
throw Error(`Cannot serialize ${e}`);
|
|
430
|
-
}
|
|
431
|
-
serializeObjectEntries(e, t) {
|
|
432
|
-
let n = Array.from(t).sort((e, t) => this.compare(e[0], t[0])), r = `${e}{`;
|
|
433
|
-
for (let e = 0; e < n.length; e++) {
|
|
434
|
-
let [t, i] = n[e];
|
|
435
|
-
r += `${this.serialize(t, !0)}:${this.serialize(i)}`, e < n.length - 1 && (r += ",");
|
|
436
|
-
}
|
|
437
|
-
return r + "}";
|
|
438
|
-
}
|
|
439
|
-
$object(e) {
|
|
440
|
-
let t = this.#e.get(e);
|
|
441
|
-
return t === void 0 && (this.#e.set(e, `#${this.#e.size}`), t = this.serializeObject(e), this.#e.set(e, t)), t;
|
|
442
|
-
}
|
|
443
|
-
$function(e) {
|
|
444
|
-
let t = Function.prototype.toString.call(e);
|
|
445
|
-
return t.slice(-15) === "[native code] }" ? `${e.name || ""}()[native]` : `${e.name}(${e.length})${t.replace(/\s*\n\s*/g, "")}`;
|
|
446
|
-
}
|
|
447
|
-
$Array(e) {
|
|
448
|
-
let t = "[";
|
|
449
|
-
for (let n = 0; n < e.length; n++) t += this.serialize(e[n]), n < e.length - 1 && (t += ",");
|
|
450
|
-
return t + "]";
|
|
451
|
-
}
|
|
452
|
-
$Date(e) {
|
|
453
|
-
try {
|
|
454
|
-
return `Date(${e.toISOString()})`;
|
|
455
|
-
} catch {
|
|
456
|
-
return "Date(null)";
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
$ArrayBuffer(e) {
|
|
460
|
-
return `ArrayBuffer[${new Uint8Array(e).join(",")}]`;
|
|
461
|
-
}
|
|
462
|
-
$Set(e) {
|
|
463
|
-
return `Set${this.$Array(Array.from(e).sort((e, t) => this.compare(e, t)))}`;
|
|
464
|
-
}
|
|
465
|
-
$Map(e) {
|
|
466
|
-
return this.serializeObjectEntries("Map", e.entries());
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
for (let t of [
|
|
470
|
-
"Error",
|
|
471
|
-
"RegExp",
|
|
472
|
-
"URL"
|
|
473
|
-
]) e.prototype["$" + t] = function(e) {
|
|
474
|
-
return `${t}(${e})`;
|
|
475
|
-
};
|
|
476
|
-
for (let t of [
|
|
477
|
-
"Int8Array",
|
|
478
|
-
"Uint8Array",
|
|
479
|
-
"Uint8ClampedArray",
|
|
480
|
-
"Int16Array",
|
|
481
|
-
"Uint16Array",
|
|
482
|
-
"Int32Array",
|
|
483
|
-
"Uint32Array",
|
|
484
|
-
"Float32Array",
|
|
485
|
-
"Float64Array"
|
|
486
|
-
]) e.prototype["$" + t] = function(e) {
|
|
487
|
-
return `${t}[${e.join(",")}]`;
|
|
488
|
-
};
|
|
489
|
-
for (let t of ["BigInt64Array", "BigUint64Array"]) e.prototype["$" + t] = function(e) {
|
|
490
|
-
return `${t}[${e.join("n,")}${e.length > 0 ? "n" : ""}]`;
|
|
491
|
-
};
|
|
492
|
-
return e;
|
|
493
|
-
}();
|
|
494
|
-
function Lr(e, t) {
|
|
495
|
-
return e === t || Fr(e) === Fr(t);
|
|
496
|
-
}
|
|
497
|
-
//#endregion
|
|
498
|
-
//#region node_modules/reka-ui/dist/shared/arrays.js
|
|
499
|
-
function Rr(e, t, n) {
|
|
500
|
-
let r = e.findIndex((e) => Lr(e, t)), i = e.findIndex((e) => Lr(e, n));
|
|
501
|
-
if (r === -1 || i === -1) return [];
|
|
502
|
-
let [a, o] = [r, i].sort((e, t) => e - t);
|
|
503
|
-
return e.slice(a, o + 1);
|
|
504
|
-
}
|
|
505
|
-
//#endregion
|
|
506
|
-
//#region node_modules/reka-ui/dist/shared/createContext.js
|
|
507
|
-
function zr(e, t) {
|
|
508
|
-
let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
509
|
-
return [(t) => {
|
|
510
|
-
let n = m(r, t);
|
|
511
|
-
if (n || n === null) return n;
|
|
512
|
-
throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
513
|
-
}, (e) => (E(r, e), e)];
|
|
514
|
-
}
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region node_modules/reka-ui/dist/shared/getActiveElement.js
|
|
517
|
-
function J() {
|
|
518
|
-
let e = document.activeElement;
|
|
519
|
-
if (e == null) return null;
|
|
520
|
-
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
|
|
521
|
-
return e;
|
|
522
|
-
}
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js
|
|
525
|
-
function Br(e, t, n) {
|
|
526
|
-
let r = n.originalEvent.target, i = new CustomEvent(e, {
|
|
527
|
-
bubbles: !1,
|
|
528
|
-
cancelable: !0,
|
|
529
|
-
detail: n
|
|
530
|
-
});
|
|
531
|
-
t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(i);
|
|
532
|
-
}
|
|
533
|
-
//#endregion
|
|
534
|
-
//#region node_modules/reka-ui/dist/shared/nullish.js
|
|
535
|
-
function Vr(e) {
|
|
536
|
-
return e == null;
|
|
537
|
-
}
|
|
538
|
-
//#endregion
|
|
539
|
-
//#region node_modules/reka-ui/dist/shared/renderSlotFragments.js
|
|
540
|
-
function Hr(e) {
|
|
541
|
-
return e ? e.flatMap((e) => e.type === T ? Hr(e.children) : [e]) : [];
|
|
542
|
-
}
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
545
|
-
var [Ur, Wr] = /*#__PURE__*/ zr("ConfigProvider");
|
|
546
|
-
//#endregion
|
|
547
|
-
//#region node_modules/defu/dist/defu.mjs
|
|
548
|
-
function Gr(e) {
|
|
549
|
-
if (typeof e != "object" || !e) return !1;
|
|
550
|
-
let t = Object.getPrototypeOf(e);
|
|
551
|
-
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;
|
|
552
|
-
}
|
|
553
|
-
function Kr(e, t, n = ".", r) {
|
|
554
|
-
if (!Gr(t)) return Kr(e, {}, n, r);
|
|
555
|
-
let i = { ...t };
|
|
556
|
-
for (let t of Object.keys(e)) {
|
|
557
|
-
if (t === "__proto__" || t === "constructor") continue;
|
|
558
|
-
let a = e[t];
|
|
559
|
-
a != null && (r && r(i, t, a, n) || (Array.isArray(a) && Array.isArray(i[t]) ? i[t] = [...a, ...i[t]] : Gr(a) && Gr(i[t]) ? i[t] = Kr(a, i[t], (n ? `${n}.` : "") + t.toString(), r) : i[t] = a));
|
|
560
|
-
}
|
|
561
|
-
return i;
|
|
562
|
-
}
|
|
563
|
-
function qr(e) {
|
|
564
|
-
return (...t) => t.reduce((t, n) => Kr(t, n, "", e), {});
|
|
565
|
-
}
|
|
566
|
-
var Jr = qr(), Yr = Yt(() => {
|
|
567
|
-
let e = V(/* @__PURE__ */ new Map()), t = V(), n = D(() => {
|
|
568
|
-
for (let t of e.value.values()) if (t) return !0;
|
|
569
|
-
return !1;
|
|
570
|
-
}), r = Ur({ scrollBody: V(!0) }), i = null, a = () => {
|
|
571
|
-
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", Un && i?.(), t.value = void 0;
|
|
572
|
-
};
|
|
573
|
-
return F(n, (e, s) => {
|
|
574
|
-
if (!I) return;
|
|
575
|
-
if (!e) {
|
|
576
|
-
s && a();
|
|
577
|
-
return;
|
|
578
|
-
}
|
|
579
|
-
t.value === void 0 && (t.value = document.body.style.overflow);
|
|
580
|
-
let c = window.innerWidth - document.documentElement.clientWidth, l = {
|
|
581
|
-
padding: c,
|
|
582
|
-
margin: 0
|
|
583
|
-
}, u = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? Jr({
|
|
584
|
-
padding: r.scrollBody.value.padding === !0 ? c : r.scrollBody.value.padding,
|
|
585
|
-
margin: r.scrollBody.value.margin === !0 ? c : r.scrollBody.value.margin
|
|
586
|
-
}, l) : l : {
|
|
587
|
-
padding: 0,
|
|
588
|
-
margin: 0
|
|
589
|
-
};
|
|
590
|
-
c > 0 && (document.body.style.paddingRight = typeof u.padding == "number" ? `${u.padding}px` : String(u.padding), document.body.style.marginRight = typeof u.margin == "number" ? `${u.margin}px` : String(u.margin), document.documentElement.style.setProperty("--scrollbar-width", `${c}px`), document.body.style.overflow = "hidden"), Un && (i = Dr(document, "touchmove", (e) => Qr(e), { passive: !1 })), o(() => {
|
|
591
|
-
n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
|
|
592
|
-
});
|
|
593
|
-
}, {
|
|
594
|
-
immediate: !0,
|
|
595
|
-
flush: "sync"
|
|
596
|
-
}), e;
|
|
597
|
-
});
|
|
598
|
-
function Xr(e) {
|
|
599
|
-
let t = Math.random().toString(36).substring(2, 7), n = Yr();
|
|
600
|
-
n.value.set(t, e ?? !1);
|
|
601
|
-
let r = D({
|
|
602
|
-
get: () => n.value.get(t) ?? !1,
|
|
603
|
-
set: (e) => n.value.set(t, e)
|
|
604
|
-
});
|
|
605
|
-
return x(() => {
|
|
606
|
-
n.value.delete(t);
|
|
607
|
-
}), r;
|
|
608
|
-
}
|
|
609
|
-
function Zr(e) {
|
|
610
|
-
let t = window.getComputedStyle(e);
|
|
611
|
-
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
612
|
-
{
|
|
613
|
-
let t = e.parentNode;
|
|
614
|
-
return !(t instanceof Element) || t.tagName === "BODY" ? !1 : Zr(t);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
function Qr(e) {
|
|
618
|
-
let t = e || window.event, n = t.target;
|
|
619
|
-
return n instanceof Element && Zr(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
|
|
620
|
-
}
|
|
621
|
-
//#endregion
|
|
622
|
-
//#region node_modules/reka-ui/dist/shared/useComposing.js
|
|
623
|
-
function $r(e) {
|
|
624
|
-
let t = V(!1);
|
|
625
|
-
function n() {
|
|
626
|
-
t.value = !0;
|
|
627
|
-
}
|
|
628
|
-
function r(n) {
|
|
629
|
-
o(() => {
|
|
630
|
-
t.value = !1, e?.(n);
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
return {
|
|
634
|
-
isComposing: t,
|
|
635
|
-
handleCompositionStart: n,
|
|
636
|
-
handleCompositionEnd: r
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
//#endregion
|
|
640
|
-
//#region node_modules/reka-ui/dist/shared/useDirection.js
|
|
641
|
-
function ei(e) {
|
|
642
|
-
let t = Ur({ dir: V("ltr") });
|
|
643
|
-
return D(() => e?.value || t.dir?.value || "ltr");
|
|
644
|
-
}
|
|
645
|
-
//#endregion
|
|
646
|
-
//#region node_modules/reka-ui/dist/shared/useEmitAsProps.js
|
|
647
|
-
function ti(e) {
|
|
648
|
-
let t = Ut(), n = t?.type.emits, r = {};
|
|
649
|
-
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((t) => {
|
|
650
|
-
r[zn($t(t))] = (...n) => e(t, ...n);
|
|
651
|
-
}), r;
|
|
652
|
-
}
|
|
653
|
-
//#endregion
|
|
654
|
-
//#region node_modules/reka-ui/dist/shared/useFilter.js
|
|
655
|
-
function ni(e) {
|
|
656
|
-
let t = D(() => U(e)), n = D(() => new Intl.Collator("en", {
|
|
657
|
-
usage: "search",
|
|
658
|
-
...t.value
|
|
659
|
-
}));
|
|
660
|
-
return {
|
|
661
|
-
startsWith: (e, t) => t.length === 0 ? !0 : (e = e.normalize("NFC"), t = t.normalize("NFC"), n.value.compare(e.slice(0, t.length), t) === 0),
|
|
662
|
-
endsWith: (e, t) => t.length === 0 ? !0 : (e = e.normalize("NFC"), t = t.normalize("NFC"), n.value.compare(e.slice(-t.length), t) === 0),
|
|
663
|
-
contains: (e, t) => {
|
|
664
|
-
if (t.length === 0) return !0;
|
|
665
|
-
e = e.normalize("NFC"), t = t.normalize("NFC");
|
|
666
|
-
let r = 0, i = t.length;
|
|
667
|
-
for (; r + i <= e.length; r++) {
|
|
668
|
-
let a = e.slice(r, r + i);
|
|
669
|
-
if (n.value.compare(t, a) === 0) return !0;
|
|
670
|
-
}
|
|
671
|
-
return !1;
|
|
672
|
-
}
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
//#endregion
|
|
676
|
-
//#region node_modules/reka-ui/dist/shared/useFocusGuards.js
|
|
677
|
-
var ri = 0;
|
|
678
|
-
function ii() {
|
|
679
|
-
K((e) => {
|
|
680
|
-
if (!I) return;
|
|
681
|
-
let t = document.querySelectorAll("[data-reka-focus-guard]");
|
|
682
|
-
document.body.insertAdjacentElement("afterbegin", t[0] ?? ai()), document.body.insertAdjacentElement("beforeend", t[1] ?? ai()), ri++, e(() => {
|
|
683
|
-
ri === 1 && document.querySelectorAll("[data-reka-focus-guard]").forEach((e) => e.remove()), ri--;
|
|
684
|
-
});
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
function ai() {
|
|
688
|
-
let e = document.createElement("span");
|
|
689
|
-
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;
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region node_modules/reka-ui/dist/shared/useFormControl.js
|
|
693
|
-
function oi(e) {
|
|
694
|
-
return D(() => !W(e) || !!q(e)?.closest("form"));
|
|
695
|
-
}
|
|
696
|
-
//#endregion
|
|
697
|
-
//#region node_modules/reka-ui/dist/shared/useForwardExpose.js
|
|
698
|
-
function Y() {
|
|
699
|
-
let e = Ut(), t = V(), n = D(() => r());
|
|
700
|
-
oe(() => {
|
|
701
|
-
n.value !== r() && _n(t);
|
|
702
|
-
});
|
|
703
|
-
function r() {
|
|
704
|
-
return t.value && "$el" in t.value && ["#text", "#comment"].includes(t.value.$el.nodeName) ? t.value.$el.nextElementSibling : q(t);
|
|
705
|
-
}
|
|
706
|
-
let i = Object.assign({}, e.exposed), a = {};
|
|
707
|
-
for (let t in e.props) Object.defineProperty(a, t, {
|
|
708
|
-
enumerable: !0,
|
|
709
|
-
configurable: !0,
|
|
710
|
-
get: () => e.props[t]
|
|
711
|
-
});
|
|
712
|
-
if (Object.keys(i).length > 0) for (let e in i) Object.defineProperty(a, e, {
|
|
713
|
-
enumerable: !0,
|
|
714
|
-
configurable: !0,
|
|
715
|
-
get: () => i[e]
|
|
716
|
-
});
|
|
717
|
-
Object.defineProperty(a, "$el", {
|
|
718
|
-
enumerable: !0,
|
|
719
|
-
configurable: !0,
|
|
720
|
-
get: () => e.vnode.el
|
|
721
|
-
}), e.exposed = a;
|
|
722
|
-
function o(n) {
|
|
723
|
-
if (t.value = n, n && (Object.defineProperty(a, "$el", {
|
|
724
|
-
enumerable: !0,
|
|
725
|
-
configurable: !0,
|
|
726
|
-
get: () => n instanceof Element ? n : n.$el
|
|
727
|
-
}), !(n instanceof Element) && !Object.hasOwn(n, "$el"))) {
|
|
728
|
-
let t = n.$.exposed, r = Object.assign({}, a);
|
|
729
|
-
for (let e in t) Object.defineProperty(r, e, {
|
|
730
|
-
enumerable: !0,
|
|
731
|
-
configurable: !0,
|
|
732
|
-
get: () => t[e]
|
|
733
|
-
});
|
|
734
|
-
e.exposed = r;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
return {
|
|
738
|
-
forwardRef: o,
|
|
739
|
-
currentRef: t,
|
|
740
|
-
currentElement: n
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
//#endregion
|
|
744
|
-
//#region node_modules/reka-ui/dist/shared/useForwardProps.js
|
|
745
|
-
function si(e) {
|
|
746
|
-
let t = Ut(), n = Object.keys(t?.type.props ?? {}).reduce((e, n) => {
|
|
747
|
-
let r = (t?.type.props[n]).default;
|
|
748
|
-
return r !== void 0 && (e[n] = r), e;
|
|
749
|
-
}, {}), i = r(e);
|
|
750
|
-
return D(() => {
|
|
751
|
-
let e = {}, r = t?.vnode.props ?? {};
|
|
752
|
-
return Object.keys(r).forEach((t) => {
|
|
753
|
-
e[$t(t)] = r[t];
|
|
754
|
-
}), Object.keys({
|
|
755
|
-
...n,
|
|
756
|
-
...e
|
|
757
|
-
}).reduce((e, t) => (i.value[t] !== void 0 && (e[t] = i.value[t]), e), {});
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
//#endregion
|
|
761
|
-
//#region node_modules/reka-ui/dist/shared/useForwardPropsEmits.js
|
|
762
|
-
function ci(e, t) {
|
|
763
|
-
let n = si(e), r = t ? ti(t) : {};
|
|
764
|
-
return D(() => ({
|
|
765
|
-
...n.value,
|
|
766
|
-
...r
|
|
767
|
-
}));
|
|
768
|
-
}
|
|
769
|
-
//#endregion
|
|
770
|
-
//#region node_modules/aria-hidden/dist/es2015/index.js
|
|
771
|
-
var li = function(e) {
|
|
772
|
-
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
773
|
-
}, ui = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap(), fi = {}, pi = 0, mi = function(e) {
|
|
774
|
-
return e && (e.host || mi(e.parentNode));
|
|
775
|
-
}, hi = function(e, t) {
|
|
776
|
-
return t.map(function(t) {
|
|
777
|
-
if (e.contains(t)) return t;
|
|
778
|
-
var n = mi(t);
|
|
779
|
-
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
780
|
-
}).filter(function(e) {
|
|
781
|
-
return !!e;
|
|
782
|
-
});
|
|
783
|
-
}, gi = function(e, t, n, r) {
|
|
784
|
-
var i = hi(t, Array.isArray(e) ? e : [e]);
|
|
785
|
-
fi[n] || (fi[n] = /* @__PURE__ */ new WeakMap());
|
|
786
|
-
var a = fi[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
787
|
-
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
788
|
-
};
|
|
789
|
-
i.forEach(l);
|
|
790
|
-
var u = function(e) {
|
|
791
|
-
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
792
|
-
if (s.has(e)) u(e);
|
|
793
|
-
else try {
|
|
794
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (ui.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
795
|
-
ui.set(e, c), a.set(e, l), o.push(e), c === 1 && i && di.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
796
|
-
} catch (t) {
|
|
797
|
-
console.error("aria-hidden: cannot operate on ", e, t);
|
|
798
|
-
}
|
|
799
|
-
});
|
|
800
|
-
};
|
|
801
|
-
return u(t), s.clear(), pi++, function() {
|
|
802
|
-
o.forEach(function(e) {
|
|
803
|
-
var t = ui.get(e) - 1, i = a.get(e) - 1;
|
|
804
|
-
ui.set(e, t), a.set(e, i), t || (di.has(e) || e.removeAttribute(r), di.delete(e)), i || e.removeAttribute(n);
|
|
805
|
-
}), pi--, pi || (ui = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap(), fi = {});
|
|
806
|
-
};
|
|
807
|
-
}, _i = function(e, t, n) {
|
|
808
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
809
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || li(e);
|
|
810
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), gi(r, i, n, "aria-hidden")) : function() {
|
|
811
|
-
return null;
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
|
-
//#endregion
|
|
815
|
-
//#region node_modules/reka-ui/dist/shared/useHideOthers.js
|
|
816
|
-
function vi(e) {
|
|
817
|
-
let t;
|
|
818
|
-
F(() => q(e), (e) => {
|
|
819
|
-
let n = !1;
|
|
820
|
-
try {
|
|
821
|
-
n = !!e?.closest("[popover]:not(:popover-open)");
|
|
822
|
-
} catch {}
|
|
823
|
-
e && !n ? t = _i(e) : t && t();
|
|
824
|
-
}), rt(() => {
|
|
825
|
-
t && t();
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
|
-
//#endregion
|
|
829
|
-
//#region node_modules/reka-ui/dist/shared/useId.js
|
|
830
|
-
var yi = 0;
|
|
831
|
-
function bi(e, t = "reka") {
|
|
832
|
-
if (e) return e;
|
|
833
|
-
let n, r = Ur({ useId: void 0 });
|
|
834
|
-
return n = r.useId ? r.useId() : "useId" in vr ? dn?.() : `${++yi}`, t ? `${t}-${n}` : n;
|
|
835
|
-
}
|
|
836
|
-
//#endregion
|
|
837
|
-
//#region node_modules/reka-ui/dist/shared/useKbd.js
|
|
838
|
-
function xi() {
|
|
839
|
-
return {
|
|
840
|
-
ALT: "Alt",
|
|
841
|
-
ARROW_DOWN: "ArrowDown",
|
|
842
|
-
ARROW_LEFT: "ArrowLeft",
|
|
843
|
-
ARROW_RIGHT: "ArrowRight",
|
|
844
|
-
ARROW_UP: "ArrowUp",
|
|
845
|
-
BACKSPACE: "Backspace",
|
|
846
|
-
CAPS_LOCK: "CapsLock",
|
|
847
|
-
CONTROL: "Control",
|
|
848
|
-
DELETE: "Delete",
|
|
849
|
-
END: "End",
|
|
850
|
-
ENTER: "Enter",
|
|
851
|
-
ESCAPE: "Escape",
|
|
852
|
-
F1: "F1",
|
|
853
|
-
F10: "F10",
|
|
854
|
-
F11: "F11",
|
|
855
|
-
F12: "F12",
|
|
856
|
-
F2: "F2",
|
|
857
|
-
F3: "F3",
|
|
858
|
-
F4: "F4",
|
|
859
|
-
F5: "F5",
|
|
860
|
-
F6: "F6",
|
|
861
|
-
F7: "F7",
|
|
862
|
-
F8: "F8",
|
|
863
|
-
F9: "F9",
|
|
864
|
-
HOME: "Home",
|
|
865
|
-
META: "Meta",
|
|
866
|
-
PAGE_DOWN: "PageDown",
|
|
867
|
-
PAGE_UP: "PageUp",
|
|
868
|
-
SHIFT: "Shift",
|
|
869
|
-
SPACE: " ",
|
|
870
|
-
TAB: "Tab",
|
|
871
|
-
CTRL: "Control",
|
|
872
|
-
ASTERISK: "*",
|
|
873
|
-
SPACE_CODE: "Space"
|
|
874
|
-
};
|
|
875
|
-
}
|
|
876
|
-
//#endregion
|
|
877
|
-
//#region node_modules/reka-ui/dist/shared/useSize.js
|
|
878
|
-
function Si(e) {
|
|
879
|
-
let t = V(), n = D(() => t.value?.width ?? 0), r = D(() => t.value?.height ?? 0), i;
|
|
880
|
-
return A(() => {
|
|
881
|
-
let n = q(e);
|
|
882
|
-
n ? (t.value = {
|
|
883
|
-
width: n.offsetWidth,
|
|
884
|
-
height: n.offsetHeight
|
|
885
|
-
}, i = new ResizeObserver((e) => {
|
|
886
|
-
if (!Array.isArray(e) || !e.length) return;
|
|
887
|
-
let r = e[0], i, a;
|
|
888
|
-
if ("borderBoxSize" in r) {
|
|
889
|
-
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
890
|
-
i = t.inlineSize, a = t.blockSize;
|
|
891
|
-
} else i = n.offsetWidth, a = n.offsetHeight;
|
|
892
|
-
t.value = {
|
|
893
|
-
width: i,
|
|
894
|
-
height: a
|
|
895
|
-
};
|
|
896
|
-
}), i.observe(n, { box: "border-box" })) : t.value = void 0;
|
|
897
|
-
}), rt(() => {
|
|
898
|
-
i?.disconnect(), i = void 0;
|
|
899
|
-
}), {
|
|
900
|
-
width: n,
|
|
901
|
-
height: r
|
|
902
|
-
};
|
|
903
|
-
}
|
|
904
|
-
//#endregion
|
|
905
|
-
//#region node_modules/reka-ui/dist/shared/useStateMachine.js
|
|
906
|
-
function Ci(e, t) {
|
|
907
|
-
let n = V(e);
|
|
908
|
-
function r(e) {
|
|
909
|
-
return t[n.value][e] ?? n.value;
|
|
910
|
-
}
|
|
911
|
-
return {
|
|
912
|
-
state: n,
|
|
913
|
-
dispatch: (e) => {
|
|
914
|
-
n.value = r(e);
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
//#endregion
|
|
919
|
-
//#region node_modules/reka-ui/dist/shared/useTypeahead.js
|
|
920
|
-
function wi(e) {
|
|
921
|
-
let t = p("", 1e3);
|
|
922
|
-
return {
|
|
923
|
-
search: t,
|
|
924
|
-
handleTypeaheadSearch: (n, r) => {
|
|
925
|
-
if (t.value += n, e) e(n);
|
|
926
|
-
else {
|
|
927
|
-
let e = J(), n = r.map((e) => ({
|
|
928
|
-
...e,
|
|
929
|
-
textValue: e.value?.textValue ?? e.ref.textContent?.trim() ?? ""
|
|
930
|
-
})), i = n.find((t) => t.ref === e), a = Ei(n.map((e) => e.textValue), t.value, i?.textValue), o = n.find((e) => e.textValue === a);
|
|
931
|
-
return o && o.ref.focus(), o?.ref;
|
|
932
|
-
}
|
|
933
|
-
},
|
|
934
|
-
resetTypeahead: () => {
|
|
935
|
-
t.value = "";
|
|
936
|
-
}
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
function Ti(e, t) {
|
|
940
|
-
return e.map((n, r) => e[(t + r) % e.length]);
|
|
941
|
-
}
|
|
942
|
-
function Ei(e, t, n) {
|
|
943
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = Ti(e, Math.max(i, 0));
|
|
944
|
-
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
945
|
-
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
946
|
-
return o === n ? void 0 : o;
|
|
947
|
-
}
|
|
948
|
-
//#endregion
|
|
949
|
-
//#region node_modules/reka-ui/dist/Presence/usePresence.js
|
|
950
|
-
function Di(e, t) {
|
|
951
|
-
let n = V({}), r = V("none"), i = V(e), a = e.value ? "mounted" : "unmounted", s, c = t.value?.ownerDocument.defaultView ?? Er, { state: l, dispatch: u } = Ci(a, {
|
|
952
|
-
mounted: {
|
|
953
|
-
UNMOUNT: "unmounted",
|
|
954
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
955
|
-
},
|
|
956
|
-
unmountSuspended: {
|
|
957
|
-
MOUNT: "mounted",
|
|
958
|
-
ANIMATION_END: "unmounted"
|
|
959
|
-
},
|
|
960
|
-
unmounted: { MOUNT: "mounted" }
|
|
961
|
-
}), d = (e) => {
|
|
962
|
-
if (I) {
|
|
963
|
-
let n = new CustomEvent(e, {
|
|
964
|
-
bubbles: !1,
|
|
965
|
-
cancelable: !1
|
|
966
|
-
});
|
|
967
|
-
t.value?.dispatchEvent(n);
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
F(e, async (e, i) => {
|
|
971
|
-
let a = i !== e;
|
|
972
|
-
if (await o(), a) {
|
|
973
|
-
let a = r.value, o = Oi(t.value);
|
|
974
|
-
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"));
|
|
975
|
-
}
|
|
976
|
-
}, { immediate: !0 });
|
|
977
|
-
let f = (e) => {
|
|
978
|
-
let n = Oi(t.value), r = n.includes(CSS.escape(e.animationName)), a = l.value === "mounted" ? "enter" : "leave";
|
|
979
|
-
if (e.target === t.value && r && (d(`after-${a}`), u("ANIMATION_END"), !i.value)) {
|
|
980
|
-
let e = t.value.style.animationFillMode;
|
|
981
|
-
t.value.style.animationFillMode = "forwards", s = c?.setTimeout(() => {
|
|
982
|
-
t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = e);
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
e.target === t.value && n === "none" && u("ANIMATION_END");
|
|
986
|
-
}, p = (e) => {
|
|
987
|
-
e.target === t.value && (r.value = Oi(t.value));
|
|
988
|
-
}, m = F(t, (e, t) => {
|
|
989
|
-
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));
|
|
990
|
-
}, { immediate: !0 }), h = F(l, () => {
|
|
991
|
-
let e = Oi(t.value);
|
|
992
|
-
r.value = l.value === "mounted" ? e : "none";
|
|
993
|
-
});
|
|
994
|
-
return rt(() => {
|
|
995
|
-
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);
|
|
996
|
-
}), { isPresent: D(() => ["mounted", "unmountSuspended"].includes(l.value)) };
|
|
997
|
-
}
|
|
998
|
-
function Oi(e) {
|
|
999
|
-
return e && getComputedStyle(e).animationName || "none";
|
|
1000
|
-
}
|
|
1001
|
-
//#endregion
|
|
1002
|
-
//#region node_modules/reka-ui/dist/Presence/Presence.js
|
|
1003
|
-
var ki = /*#__PURE__*/ L({
|
|
1004
|
-
name: "Presence",
|
|
1005
|
-
props: {
|
|
1006
|
-
present: {
|
|
1007
|
-
type: Boolean,
|
|
1008
|
-
required: !0
|
|
1009
|
-
},
|
|
1010
|
-
forceMount: { type: Boolean }
|
|
1011
|
-
},
|
|
1012
|
-
slots: {},
|
|
1013
|
-
setup(e, { slots: t, expose: n }) {
|
|
1014
|
-
let { present: r, forceMount: i } = Rt(e), a = V(), { isPresent: o } = Di(r, a);
|
|
1015
|
-
n({ present: o });
|
|
1016
|
-
let s = t.default({ present: o.value });
|
|
1017
|
-
s = Hr(s || []);
|
|
1018
|
-
let c = Ut();
|
|
1019
|
-
if (s && s?.length > 1) {
|
|
1020
|
-
let e = c?.parent?.type.name ? `<${c.parent.type.name} />` : "component";
|
|
1021
|
-
throw Error([
|
|
1022
|
-
`Detected an invalid children for \`${e}\` for \`Presence\` component.`,
|
|
1023
|
-
"",
|
|
1024
|
-
"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.",
|
|
1025
|
-
"You can apply a few solutions:",
|
|
1026
|
-
["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")
|
|
1027
|
-
].join("\n"));
|
|
1028
|
-
}
|
|
1029
|
-
return () => i.value || r.value || o.value ? Xt(t.default({ present: o.value })[0], { ref: (e) => {
|
|
1030
|
-
let t = q(e);
|
|
1031
|
-
return t?.hasAttribute === void 0 || (t?.hasAttribute("data-reka-popper-content-wrapper") ? a.value = t.firstElementChild : a.value = t), t;
|
|
1032
|
-
} }) : null;
|
|
1033
|
-
}
|
|
1034
|
-
}), Ai = /*#__PURE__*/ L({
|
|
1035
|
-
name: "PrimitiveSlot",
|
|
1036
|
-
inheritAttrs: !1,
|
|
1037
|
-
setup(e, { attrs: t, slots: n }) {
|
|
1038
|
-
return () => {
|
|
1039
|
-
if (!n.default) return null;
|
|
1040
|
-
let e = Hr(n.default()), r = e.findIndex((e) => e.type !== Te);
|
|
1041
|
-
if (r === -1) return e;
|
|
1042
|
-
let i = e[r];
|
|
1043
|
-
delete i.props?.ref;
|
|
1044
|
-
let a = i.props ? R(t, i.props) : t, o = lt({
|
|
1045
|
-
...i,
|
|
1046
|
-
props: {}
|
|
1047
|
-
}, a);
|
|
1048
|
-
return e.length === 1 ? o : (e[r] = o, e);
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
}), ji = [
|
|
1052
|
-
"area",
|
|
1053
|
-
"img",
|
|
1054
|
-
"input"
|
|
1055
|
-
], X = /*#__PURE__*/ L({
|
|
1056
|
-
name: "Primitive",
|
|
1057
|
-
inheritAttrs: !1,
|
|
1058
|
-
props: {
|
|
1059
|
-
asChild: {
|
|
1060
|
-
type: Boolean,
|
|
1061
|
-
default: !1
|
|
1062
|
-
},
|
|
1063
|
-
as: {
|
|
1064
|
-
type: [String, Object],
|
|
1065
|
-
default: "div"
|
|
1066
|
-
}
|
|
1067
|
-
},
|
|
1068
|
-
setup(e, { attrs: t, slots: n }) {
|
|
1069
|
-
let r = e.asChild ? "template" : e.as;
|
|
1070
|
-
return typeof r == "string" && ji.includes(r) ? () => Xt(r, t) : r === "template" ? () => Xt(Ai, t, { default: n.default }) : () => Xt(e.as, t, { default: n.default });
|
|
1071
|
-
}
|
|
1072
|
-
});
|
|
1073
|
-
//#endregion
|
|
1074
|
-
//#region node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js
|
|
1075
|
-
function Mi() {
|
|
1076
|
-
let e = V();
|
|
1077
|
-
return {
|
|
1078
|
-
primitiveElement: e,
|
|
1079
|
-
currentElement: D(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : q(e))
|
|
1080
|
-
};
|
|
1081
|
-
}
|
|
1082
|
-
//#endregion
|
|
1083
|
-
//#region node_modules/reka-ui/dist/DismissableLayer/utils.js
|
|
1084
|
-
var Ni = "dismissableLayer.pointerDownOutside", Pi = "dismissableLayer.focusOutside";
|
|
1085
|
-
function Fi(e, t) {
|
|
1086
|
-
if (!(t instanceof Element)) return !1;
|
|
1087
|
-
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]"));
|
|
1088
|
-
return !!(n && (r === n || i.indexOf(r) < i.indexOf(n)));
|
|
1089
|
-
}
|
|
1090
|
-
function Ii(e, t, n = !0) {
|
|
1091
|
-
let r = t?.value?.ownerDocument ?? globalThis?.document, i = V(!1), a = V(() => {});
|
|
1092
|
-
return K((o) => {
|
|
1093
|
-
if (!I || !W(n)) return;
|
|
1094
|
-
let s = async (n) => {
|
|
1095
|
-
let o = n.target;
|
|
1096
|
-
if (!(!t?.value || !o)) {
|
|
1097
|
-
if (Fi(t.value, o)) {
|
|
1098
|
-
i.value = !1;
|
|
1099
|
-
return;
|
|
1100
|
-
}
|
|
1101
|
-
if (n.target && !i.value) {
|
|
1102
|
-
let t = { originalEvent: n };
|
|
1103
|
-
function i() {
|
|
1104
|
-
Br(Ni, e, t);
|
|
1105
|
-
}
|
|
1106
|
-
n.pointerType === "touch" ? (r.removeEventListener("click", a.value), a.value = i, r.addEventListener("click", a.value, { once: !0 })) : i();
|
|
1107
|
-
} else r.removeEventListener("click", a.value);
|
|
1108
|
-
i.value = !1;
|
|
1109
|
-
}
|
|
1110
|
-
}, c = window.setTimeout(() => {
|
|
1111
|
-
r.addEventListener("pointerdown", s);
|
|
1112
|
-
}, 0);
|
|
1113
|
-
o(() => {
|
|
1114
|
-
window.clearTimeout(c), r.removeEventListener("pointerdown", s), r.removeEventListener("click", a.value);
|
|
1115
|
-
});
|
|
1116
|
-
}), { onPointerDownCapture: () => {
|
|
1117
|
-
W(n) && (i.value = !0);
|
|
1118
|
-
} };
|
|
1119
|
-
}
|
|
1120
|
-
function Li(e, t, n = !0) {
|
|
1121
|
-
let r = t?.value?.ownerDocument ?? globalThis?.document, i = V(!1);
|
|
1122
|
-
return K((a) => {
|
|
1123
|
-
if (!I || !W(n)) return;
|
|
1124
|
-
let s = async (n) => {
|
|
1125
|
-
if (!t?.value) return;
|
|
1126
|
-
await o(), await o();
|
|
1127
|
-
let r = n.target;
|
|
1128
|
-
!t.value || !r || Fi(t.value, r) || n.target && !i.value && Br(Pi, e, { originalEvent: n });
|
|
1129
|
-
};
|
|
1130
|
-
r.addEventListener("focusin", s), a(() => r.removeEventListener("focusin", s));
|
|
1131
|
-
}), {
|
|
1132
|
-
onFocusCapture: () => {
|
|
1133
|
-
W(n) && (i.value = !0);
|
|
1134
|
-
},
|
|
1135
|
-
onBlurCapture: () => {
|
|
1136
|
-
W(n) && (i.value = !1);
|
|
1137
|
-
}
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
1140
|
-
//#endregion
|
|
1141
|
-
//#region node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js
|
|
1142
|
-
var Z = /*#__PURE__*/ ie({
|
|
1143
|
-
layersRoot: /* @__PURE__ */ new Set(),
|
|
1144
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1145
|
-
originalBodyPointerEvents: void 0,
|
|
1146
|
-
branches: /* @__PURE__ */ new Set()
|
|
1147
|
-
}), Ri = /* @__PURE__ */ L({
|
|
1148
|
-
__name: "DismissableLayer",
|
|
1149
|
-
props: {
|
|
1150
|
-
disableOutsidePointerEvents: {
|
|
1151
|
-
type: Boolean,
|
|
1152
|
-
required: !1,
|
|
1153
|
-
default: !1
|
|
1154
|
-
},
|
|
1155
|
-
asChild: {
|
|
1156
|
-
type: Boolean,
|
|
1157
|
-
required: !1
|
|
1158
|
-
},
|
|
1159
|
-
as: {
|
|
1160
|
-
type: null,
|
|
1161
|
-
required: !1
|
|
1162
|
-
},
|
|
1163
|
-
present: {
|
|
1164
|
-
type: Boolean,
|
|
1165
|
-
required: !1,
|
|
1166
|
-
default: !0
|
|
1167
|
-
}
|
|
1168
|
-
},
|
|
1169
|
-
emits: [
|
|
1170
|
-
"escapeKeyDown",
|
|
1171
|
-
"pointerDownOutside",
|
|
1172
|
-
"focusOutside",
|
|
1173
|
-
"interactOutside",
|
|
1174
|
-
"dismiss"
|
|
1175
|
-
],
|
|
1176
|
-
setup(e, { emit: t }) {
|
|
1177
|
-
let n = e, r = t, { forwardRef: i, currentElement: a } = Y(), s = D(() => a.value?.ownerDocument ?? globalThis.document), c = D(() => Z.layersRoot), l = D(() => a.value ? Array.from(c.value).indexOf(a.value) : -1), u = D(() => Z.layersWithOutsidePointerEventsDisabled.size > 0), d = D(() => {
|
|
1178
|
-
let e = Array.from(c.value), [t] = [...Z.layersWithOutsidePointerEventsDisabled].slice(-1), n = e.indexOf(t);
|
|
1179
|
-
return l.value >= n;
|
|
1180
|
-
}), f = Ii(async (e) => {
|
|
1181
|
-
let t = [...Z.branches].some((t) => t?.contains(e.target));
|
|
1182
|
-
!n.present || !d.value || t || (r("pointerDownOutside", e), r("interactOutside", e), await o(), e.defaultPrevented || r("dismiss"));
|
|
1183
|
-
}, a), p = Li((e) => {
|
|
1184
|
-
let t = [...Z.branches].some((t) => t?.contains(e.target));
|
|
1185
|
-
!n.present || t || (r("focusOutside", e), r("interactOutside", e), e.defaultPrevented || r("dismiss"));
|
|
1186
|
-
}, a);
|
|
1187
|
-
return kr("Escape", (e) => {
|
|
1188
|
-
n.present && l.value === c.value.size - 1 && (r("escapeKeyDown", e), e.defaultPrevented || r("dismiss"));
|
|
1189
|
-
}), F([
|
|
1190
|
-
a,
|
|
1191
|
-
() => n.disableOutsidePointerEvents,
|
|
1192
|
-
() => n.present
|
|
1193
|
-
], ([e, t, n], r, i) => {
|
|
1194
|
-
!e || !n || t && (Z.layersWithOutsidePointerEventsDisabled.size === 0 && (Z.originalBodyPointerEvents = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), Z.layersWithOutsidePointerEventsDisabled.add(e), i(() => {
|
|
1195
|
-
Z.layersWithOutsidePointerEventsDisabled.delete(e), Z.layersWithOutsidePointerEventsDisabled.size === 0 && !Vr(Z.originalBodyPointerEvents) && (s.value.body.style.pointerEvents = Z.originalBodyPointerEvents);
|
|
1196
|
-
}));
|
|
1197
|
-
}, { immediate: !0 }), F([a, () => n.present], ([e, t], n, r) => {
|
|
1198
|
-
!e || !t || (c.value.add(e), r(() => {
|
|
1199
|
-
c.value.delete(e);
|
|
1200
|
-
}));
|
|
1201
|
-
}, { immediate: !0 }), K((e) => {
|
|
1202
|
-
e(() => {
|
|
1203
|
-
a.value && (c.value.delete(a.value), Z.layersWithOutsidePointerEventsDisabled.delete(a.value));
|
|
1204
|
-
});
|
|
1205
|
-
}), (e, t) => (M(), H(U(X), {
|
|
1206
|
-
ref: U(i),
|
|
1207
|
-
"as-child": e.asChild,
|
|
1208
|
-
as: e.as,
|
|
1209
|
-
"data-dismissable-layer": "",
|
|
1210
|
-
style: jt({ pointerEvents: u.value ? d.value ? "auto" : "none" : void 0 }),
|
|
1211
|
-
onFocusCapture: U(p).onFocusCapture,
|
|
1212
|
-
onBlurCapture: U(p).onBlurCapture,
|
|
1213
|
-
onPointerdownCapture: U(f).onPointerDownCapture
|
|
1214
|
-
}, {
|
|
1215
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
1216
|
-
_: 3
|
|
1217
|
-
}, 8, [
|
|
1218
|
-
"as-child",
|
|
1219
|
-
"as",
|
|
1220
|
-
"style",
|
|
1221
|
-
"onFocusCapture",
|
|
1222
|
-
"onBlurCapture",
|
|
1223
|
-
"onPointerdownCapture"
|
|
1224
|
-
]));
|
|
1225
|
-
}
|
|
1226
|
-
}), zi = pn(() => V([]));
|
|
1227
|
-
function Bi() {
|
|
1228
|
-
let e = zi();
|
|
1229
|
-
return {
|
|
1230
|
-
add(t) {
|
|
1231
|
-
let n = e.value[0];
|
|
1232
|
-
t !== n && n?.pause(), e.value = Vi(e.value, t), e.value.unshift(t);
|
|
1233
|
-
},
|
|
1234
|
-
remove(t) {
|
|
1235
|
-
e.value = Vi(e.value, t), e.value[0]?.resume();
|
|
1236
|
-
}
|
|
1237
|
-
};
|
|
1238
|
-
}
|
|
1239
|
-
function Vi(e, t) {
|
|
1240
|
-
let n = [...e], r = n.indexOf(t);
|
|
1241
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
1242
|
-
}
|
|
1243
|
-
//#endregion
|
|
1244
|
-
//#region node_modules/reka-ui/dist/FocusScope/utils.js
|
|
1245
|
-
var Hi = "focusScope.autoFocusOnMount", Ui = "focusScope.autoFocusOnUnmount", Wi = {
|
|
1246
|
-
bubbles: !1,
|
|
1247
|
-
cancelable: !0
|
|
1248
|
-
};
|
|
1249
|
-
function Gi(e, { select: t = !1 } = {}) {
|
|
1250
|
-
let n = J();
|
|
1251
|
-
for (let r of e) if (Zi(r, { select: t }), J() !== n) return !0;
|
|
1252
|
-
}
|
|
1253
|
-
function Ki(e) {
|
|
1254
|
-
let t = qi(e);
|
|
1255
|
-
return [Ji(t, e), Ji(t.reverse(), e)];
|
|
1256
|
-
}
|
|
1257
|
-
function qi(e) {
|
|
1258
|
-
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
1259
|
-
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
1260
|
-
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1261
|
-
} });
|
|
1262
|
-
for (; n.nextNode();) t.push(n.currentNode);
|
|
1263
|
-
return t;
|
|
1264
|
-
}
|
|
1265
|
-
function Ji(e, t) {
|
|
1266
|
-
for (let n of e) if (!Yi(n, { upTo: t })) return n;
|
|
1267
|
-
}
|
|
1268
|
-
function Yi(e, { upTo: t }) {
|
|
1269
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1270
|
-
for (; e;) {
|
|
1271
|
-
if (t !== void 0 && e === t) return !1;
|
|
1272
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
1273
|
-
e = e.parentElement;
|
|
1274
|
-
}
|
|
1275
|
-
return !1;
|
|
1276
|
-
}
|
|
1277
|
-
function Xi(e) {
|
|
1278
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
1279
|
-
}
|
|
1280
|
-
function Zi(e, { select: t = !1 } = {}) {
|
|
1281
|
-
if (e && e.focus) {
|
|
1282
|
-
let n = J();
|
|
1283
|
-
e.focus({ preventScroll: !0 }), e !== n && Xi(e) && t && e.select();
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
//#endregion
|
|
1287
|
-
//#region node_modules/reka-ui/dist/FocusScope/FocusScope.js
|
|
1288
|
-
var Qi = /* @__PURE__ */ L({
|
|
1289
|
-
__name: "FocusScope",
|
|
1290
|
-
props: {
|
|
1291
|
-
loop: {
|
|
1292
|
-
type: Boolean,
|
|
1293
|
-
required: !1,
|
|
1294
|
-
default: !1
|
|
1295
|
-
},
|
|
1296
|
-
trapped: {
|
|
1297
|
-
type: Boolean,
|
|
1298
|
-
required: !1,
|
|
1299
|
-
default: !1
|
|
1300
|
-
},
|
|
1301
|
-
present: {
|
|
1302
|
-
type: Boolean,
|
|
1303
|
-
required: !1,
|
|
1304
|
-
default: !0
|
|
1305
|
-
},
|
|
1306
|
-
asChild: {
|
|
1307
|
-
type: Boolean,
|
|
1308
|
-
required: !1
|
|
1309
|
-
},
|
|
1310
|
-
as: {
|
|
1311
|
-
type: null,
|
|
1312
|
-
required: !1
|
|
1313
|
-
}
|
|
1314
|
-
},
|
|
1315
|
-
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
1316
|
-
setup(e, { emit: t }) {
|
|
1317
|
-
let n = e, r = t, { currentRef: i, currentElement: a } = Y(), s = V(null), c = Bi(), l = /*#__PURE__*/ ie({
|
|
1318
|
-
paused: !1,
|
|
1319
|
-
pause() {
|
|
1320
|
-
this.paused = !0;
|
|
1321
|
-
},
|
|
1322
|
-
resume() {
|
|
1323
|
-
this.paused = !1;
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
K((e) => {
|
|
1327
|
-
if (!I) return;
|
|
1328
|
-
let t = a.value;
|
|
1329
|
-
if (!n.trapped) return;
|
|
1330
|
-
function r(e) {
|
|
1331
|
-
if (l.paused || !t) return;
|
|
1332
|
-
let n = e.target;
|
|
1333
|
-
t.contains(n) ? s.value = n : Zi(s.value, { select: !0 });
|
|
1334
|
-
}
|
|
1335
|
-
function i(e) {
|
|
1336
|
-
if (l.paused || !t) return;
|
|
1337
|
-
let n = e.relatedTarget;
|
|
1338
|
-
n !== null && (t.contains(n) || Zi(s.value, { select: !0 }));
|
|
1339
|
-
}
|
|
1340
|
-
function o(e) {
|
|
1341
|
-
let n = s.value;
|
|
1342
|
-
n !== null && e.some((e) => e.removedNodes.length > 0) && (t.contains(n) || Zi(t));
|
|
1343
|
-
}
|
|
1344
|
-
document.addEventListener("focusin", r), document.addEventListener("focusout", i);
|
|
1345
|
-
let c = new MutationObserver(o);
|
|
1346
|
-
t && c.observe(t, {
|
|
1347
|
-
childList: !0,
|
|
1348
|
-
subtree: !0
|
|
1349
|
-
}), e(() => {
|
|
1350
|
-
document.removeEventListener("focusin", r), document.removeEventListener("focusout", i), c.disconnect();
|
|
1351
|
-
});
|
|
1352
|
-
});
|
|
1353
|
-
function u(e, t) {
|
|
1354
|
-
let n = new CustomEvent(Hi, Wi), i = (e) => r("mountAutoFocus", e);
|
|
1355
|
-
e.addEventListener(Hi, i), e.dispatchEvent(n), e.removeEventListener(Hi, i), n.defaultPrevented || (Gi(qi(e), { select: !0 }), J() === t && Zi(e));
|
|
1356
|
-
}
|
|
1357
|
-
K(async (e) => {
|
|
1358
|
-
let t = a.value;
|
|
1359
|
-
if (await o(), !t) return;
|
|
1360
|
-
n.present !== !1 && c.add(l);
|
|
1361
|
-
let i = J();
|
|
1362
|
-
!t.contains(i) && n.present !== !1 && u(t, i), e(() => {
|
|
1363
|
-
let e = new CustomEvent(Ui, Wi), n = (e) => {
|
|
1364
|
-
r("unmountAutoFocus", e);
|
|
1365
|
-
};
|
|
1366
|
-
t.addEventListener(Ui, n), t.dispatchEvent(e), t.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
1367
|
-
e.defaultPrevented || Zi(i ?? document.body, { select: !0 }), t.removeEventListener(Ui, n), c.remove(l), t.removeAttribute("data-focus-scope-unmounting");
|
|
1368
|
-
}, 0);
|
|
1369
|
-
});
|
|
1370
|
-
}), F(() => n.present, async (e, t) => {
|
|
1371
|
-
if (!I) return;
|
|
1372
|
-
if (e === !1 && t === !0) {
|
|
1373
|
-
c.remove(l);
|
|
1374
|
-
return;
|
|
1375
|
-
}
|
|
1376
|
-
if (e !== !0 || t !== !1) return;
|
|
1377
|
-
c.add(l), await o();
|
|
1378
|
-
let n = a.value;
|
|
1379
|
-
if (!n) return;
|
|
1380
|
-
let r = J();
|
|
1381
|
-
n.contains(r) || u(n, r);
|
|
1382
|
-
});
|
|
1383
|
-
function d(e) {
|
|
1384
|
-
if (!n.loop && !n.trapped || l.paused) return;
|
|
1385
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = J();
|
|
1386
|
-
if (t && r) {
|
|
1387
|
-
let t = e.currentTarget, [i, a] = Ki(t);
|
|
1388
|
-
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop && Zi(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n.loop && Zi(a, { select: !0 })) : r === t && e.preventDefault();
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
return (e, t) => (M(), H(U(X), {
|
|
1392
|
-
ref_key: "currentRef",
|
|
1393
|
-
ref: i,
|
|
1394
|
-
tabindex: "-1",
|
|
1395
|
-
"as-child": e.asChild,
|
|
1396
|
-
as: e.as,
|
|
1397
|
-
onKeydown: d
|
|
1398
|
-
}, {
|
|
1399
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
1400
|
-
_: 3
|
|
1401
|
-
}, 8, ["as-child", "as"]));
|
|
1402
|
-
}
|
|
1403
|
-
}), $i = "data-reka-collection-item";
|
|
1404
|
-
function ea(e = {}) {
|
|
1405
|
-
let { key: t = "", isProvider: n = !1 } = e, r = `${t}CollectionProvider`, i;
|
|
1406
|
-
if (n) {
|
|
1407
|
-
let e = V(/* @__PURE__ */ new Map());
|
|
1408
|
-
i = {
|
|
1409
|
-
collectionRef: V(),
|
|
1410
|
-
itemMap: e
|
|
1411
|
-
}, E(r, i);
|
|
1412
|
-
} else i = m(r);
|
|
1413
|
-
let a = (e = !1) => {
|
|
1414
|
-
let t = i.collectionRef.value;
|
|
1415
|
-
if (!t) return [];
|
|
1416
|
-
let n = Array.from(t.querySelectorAll(`[${$i}]`)), r = new Map(n.map((e, t) => [e, t])), a = Array.from(i.itemMap.value.values()).sort((e, t) => (r.get(e.ref) ?? -1) - (r.get(t.ref) ?? -1));
|
|
1417
|
-
return e ? a : a.filter((e) => e.ref.dataset.disabled !== "");
|
|
1418
|
-
}, o = /*#__PURE__*/ L({
|
|
1419
|
-
name: "CollectionSlot",
|
|
1420
|
-
inheritAttrs: !1,
|
|
1421
|
-
setup(e, { slots: t, attrs: n }) {
|
|
1422
|
-
let { primitiveElement: r, currentElement: a } = Mi();
|
|
1423
|
-
return F(a, () => {
|
|
1424
|
-
i.collectionRef.value = a.value;
|
|
1425
|
-
}), () => Xt(Ai, {
|
|
1426
|
-
ref: r,
|
|
1427
|
-
...n
|
|
1428
|
-
}, t);
|
|
1429
|
-
}
|
|
1430
|
-
}), s = /*#__PURE__*/ L({
|
|
1431
|
-
name: "CollectionItem",
|
|
1432
|
-
inheritAttrs: !1,
|
|
1433
|
-
props: { value: { validator: () => !0 } },
|
|
1434
|
-
setup(e, { slots: t, attrs: n }) {
|
|
1435
|
-
let { primitiveElement: r, currentElement: a } = Mi();
|
|
1436
|
-
return K((t) => {
|
|
1437
|
-
if (a.value) {
|
|
1438
|
-
let n = it(a.value);
|
|
1439
|
-
i.itemMap.value.set(n, {
|
|
1440
|
-
ref: a.value,
|
|
1441
|
-
value: e.value
|
|
1442
|
-
}), t(() => i.itemMap.value.delete(n));
|
|
1443
|
-
}
|
|
1444
|
-
}), () => Xt(Ai, {
|
|
1445
|
-
...n,
|
|
1446
|
-
[$i]: "",
|
|
1447
|
-
ref: r
|
|
1448
|
-
}, t);
|
|
1449
|
-
}
|
|
1450
|
-
});
|
|
1451
|
-
return {
|
|
1452
|
-
getItems: a,
|
|
1453
|
-
reactiveItems: D(() => Array.from(i.itemMap.value.values())),
|
|
1454
|
-
itemMapSize: D(() => i.itemMap.value.size),
|
|
1455
|
-
CollectionSlot: o,
|
|
1456
|
-
CollectionItem: s
|
|
1457
|
-
};
|
|
1458
|
-
}
|
|
1459
|
-
//#endregion
|
|
1460
|
-
//#region node_modules/reka-ui/dist/VisuallyHidden/VisuallyHidden.js
|
|
1461
|
-
var ta = /* @__PURE__ */ L({
|
|
1462
|
-
__name: "VisuallyHidden",
|
|
1463
|
-
props: {
|
|
1464
|
-
feature: {
|
|
1465
|
-
type: String,
|
|
1466
|
-
required: !1,
|
|
1467
|
-
default: "focusable"
|
|
1468
|
-
},
|
|
1469
|
-
asChild: {
|
|
1470
|
-
type: Boolean,
|
|
1471
|
-
required: !1
|
|
1472
|
-
},
|
|
1473
|
-
as: {
|
|
1474
|
-
type: null,
|
|
1475
|
-
required: !1,
|
|
1476
|
-
default: "span"
|
|
1477
|
-
}
|
|
1478
|
-
},
|
|
1479
|
-
setup(e) {
|
|
1480
|
-
return (e, t) => (M(), H(U(X), {
|
|
1481
|
-
as: e.as,
|
|
1482
|
-
"as-child": e.asChild,
|
|
1483
|
-
"aria-hidden": e.feature === "focusable" || e.feature === "fully-hidden" ? "true" : void 0,
|
|
1484
|
-
"data-hidden": e.feature === "fully-hidden" ? "" : void 0,
|
|
1485
|
-
tabindex: e.feature === "fully-hidden" ? "-1" : void 0,
|
|
1486
|
-
style: {
|
|
1487
|
-
position: "absolute",
|
|
1488
|
-
border: 0,
|
|
1489
|
-
width: "1px",
|
|
1490
|
-
height: "1px",
|
|
1491
|
-
padding: 0,
|
|
1492
|
-
margin: "-1px",
|
|
1493
|
-
overflow: "hidden",
|
|
1494
|
-
clip: "rect(0, 0, 0, 0)",
|
|
1495
|
-
clipPath: "inset(50%)",
|
|
1496
|
-
whiteSpace: "nowrap",
|
|
1497
|
-
wordWrap: "normal",
|
|
1498
|
-
top: "-1px",
|
|
1499
|
-
left: "-1px"
|
|
1500
|
-
}
|
|
1501
|
-
}, {
|
|
1502
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
1503
|
-
_: 3
|
|
1504
|
-
}, 8, [
|
|
1505
|
-
"as",
|
|
1506
|
-
"as-child",
|
|
1507
|
-
"aria-hidden",
|
|
1508
|
-
"data-hidden",
|
|
1509
|
-
"tabindex"
|
|
1510
|
-
]));
|
|
1511
|
-
}
|
|
1512
|
-
}), na = /* @__PURE__ */ L({
|
|
1513
|
-
inheritAttrs: !1,
|
|
1514
|
-
__name: "VisuallyHiddenInputBubble",
|
|
1515
|
-
props: {
|
|
1516
|
-
name: {
|
|
1517
|
-
type: String,
|
|
1518
|
-
required: !0
|
|
1519
|
-
},
|
|
1520
|
-
value: {
|
|
1521
|
-
type: null,
|
|
1522
|
-
required: !0
|
|
1523
|
-
},
|
|
1524
|
-
checked: {
|
|
1525
|
-
type: Boolean,
|
|
1526
|
-
required: !1,
|
|
1527
|
-
default: void 0
|
|
1528
|
-
},
|
|
1529
|
-
required: {
|
|
1530
|
-
type: Boolean,
|
|
1531
|
-
required: !1
|
|
1532
|
-
},
|
|
1533
|
-
disabled: {
|
|
1534
|
-
type: Boolean,
|
|
1535
|
-
required: !1
|
|
1536
|
-
},
|
|
1537
|
-
feature: {
|
|
1538
|
-
type: String,
|
|
1539
|
-
required: !1,
|
|
1540
|
-
default: "fully-hidden"
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
setup(e) {
|
|
1544
|
-
let t = e, { primitiveElement: n, currentElement: r } = Mi();
|
|
1545
|
-
return F(D(() => t.checked ?? t.value), (e, t) => {
|
|
1546
|
-
if (!r.value) return;
|
|
1547
|
-
let n = r.value, i = window.HTMLInputElement.prototype, a = Object.getOwnPropertyDescriptor(i, "value").set;
|
|
1548
|
-
if (a && e !== t) {
|
|
1549
|
-
let t = new Event("input", { bubbles: !0 }), r = new Event("change", { bubbles: !0 });
|
|
1550
|
-
a.call(n, e), n.dispatchEvent(t), n.dispatchEvent(r);
|
|
1551
|
-
}
|
|
1552
|
-
}), (e, r) => (M(), H(ta, R({
|
|
1553
|
-
ref_key: "primitiveElement",
|
|
1554
|
-
ref: n
|
|
1555
|
-
}, {
|
|
1556
|
-
...t,
|
|
1557
|
-
...e.$attrs
|
|
1558
|
-
}, { as: "input" }), null, 16));
|
|
1559
|
-
}
|
|
1560
|
-
}), ra = /* @__PURE__ */ L({
|
|
1561
|
-
inheritAttrs: !1,
|
|
1562
|
-
__name: "VisuallyHiddenInput",
|
|
1563
|
-
props: {
|
|
1564
|
-
name: {
|
|
1565
|
-
type: String,
|
|
1566
|
-
required: !0
|
|
1567
|
-
},
|
|
1568
|
-
value: {
|
|
1569
|
-
type: null,
|
|
1570
|
-
required: !0
|
|
1571
|
-
},
|
|
1572
|
-
checked: {
|
|
1573
|
-
type: Boolean,
|
|
1574
|
-
required: !1,
|
|
1575
|
-
default: void 0
|
|
1576
|
-
},
|
|
1577
|
-
required: {
|
|
1578
|
-
type: Boolean,
|
|
1579
|
-
required: !1
|
|
1580
|
-
},
|
|
1581
|
-
disabled: {
|
|
1582
|
-
type: Boolean,
|
|
1583
|
-
required: !1
|
|
1584
|
-
},
|
|
1585
|
-
feature: {
|
|
1586
|
-
type: String,
|
|
1587
|
-
required: !1,
|
|
1588
|
-
default: "fully-hidden"
|
|
1589
|
-
}
|
|
1590
|
-
},
|
|
1591
|
-
setup(e) {
|
|
1592
|
-
let t = e, n = D(() => typeof t.value == "object" && Array.isArray(t.value) && t.value.length === 0 && t.required), r = D(() => typeof t.value == "string" || typeof t.value == "number" || typeof t.value == "boolean" || t.value === null || t.value === void 0 ? [{
|
|
1593
|
-
name: t.name,
|
|
1594
|
-
value: t.value
|
|
1595
|
-
}] : typeof t.value == "object" && Array.isArray(t.value) ? t.value.flatMap((e, n) => typeof e == "object" ? Object.entries(e).map(([e, r]) => ({
|
|
1596
|
-
name: `${t.name}[${n}][${e}]`,
|
|
1597
|
-
value: r
|
|
1598
|
-
})) : {
|
|
1599
|
-
name: `${t.name}[${n}]`,
|
|
1600
|
-
value: e
|
|
1601
|
-
}) : t.value !== null && typeof t.value == "object" && !Array.isArray(t.value) ? Object.entries(t.value).map(([e, n]) => ({
|
|
1602
|
-
name: `${t.name}[${e}]`,
|
|
1603
|
-
value: n
|
|
1604
|
-
})) : []);
|
|
1605
|
-
return (e, i) => (M(), P(T, null, [O(" We render single input if it's required "), n.value ? (M(), H(na, R({ key: e.name }, {
|
|
1606
|
-
...t,
|
|
1607
|
-
...e.$attrs
|
|
1608
|
-
}, {
|
|
1609
|
-
name: e.name,
|
|
1610
|
-
value: e.value
|
|
1611
|
-
}), null, 16, ["name", "value"])) : (M(!0), P(T, { key: 1 }, mt(r.value, (n) => (M(), H(na, R({ key: n.name }, { ref_for: !0 }, {
|
|
1612
|
-
...t,
|
|
1613
|
-
...e.$attrs
|
|
1614
|
-
}, {
|
|
1615
|
-
name: n.name,
|
|
1616
|
-
value: n.value
|
|
1617
|
-
}), null, 16, ["name", "value"]))), 128))], 2112));
|
|
1618
|
-
}
|
|
1619
|
-
});
|
|
1620
|
-
//#endregion
|
|
1621
|
-
//#region node_modules/reka-ui/dist/Listbox/utils.js
|
|
1622
|
-
function ia(e) {
|
|
1623
|
-
return e?.querySelector("[data-state=checked]");
|
|
1624
|
-
}
|
|
1625
|
-
function aa(e, t, n) {
|
|
1626
|
-
return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) => Q(e, t, n)) : Q(e, t, n);
|
|
1627
|
-
}
|
|
1628
|
-
function Q(e, t, n) {
|
|
1629
|
-
return e === void 0 || t === void 0 ? !1 : typeof e == "string" ? e === t : typeof n == "function" ? n(e, t) : typeof n == "string" ? e?.[n] === t?.[n] : Lr(e, t);
|
|
1630
|
-
}
|
|
1631
|
-
//#endregion
|
|
1632
|
-
//#region node_modules/reka-ui/dist/RovingFocus/utils.js
|
|
1633
|
-
var oa = {
|
|
1634
|
-
ArrowLeft: "prev",
|
|
1635
|
-
ArrowUp: "prev",
|
|
1636
|
-
ArrowRight: "next",
|
|
1637
|
-
ArrowDown: "next",
|
|
1638
|
-
PageUp: "first",
|
|
1639
|
-
Home: "first",
|
|
1640
|
-
PageDown: "last",
|
|
1641
|
-
End: "last"
|
|
1642
|
-
};
|
|
1643
|
-
function sa(e, t) {
|
|
1644
|
-
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
1645
|
-
}
|
|
1646
|
-
function ca(e, t, n) {
|
|
1647
|
-
let r = sa(e.key, n);
|
|
1648
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return oa[r];
|
|
1649
|
-
}
|
|
1650
|
-
//#endregion
|
|
1651
|
-
//#region node_modules/reka-ui/dist/Listbox/ListboxRoot.js
|
|
1652
|
-
var [la, ua] = /*#__PURE__*/ zr("ListboxRoot"), da = /* @__PURE__ */ L({
|
|
1653
|
-
__name: "ListboxRoot",
|
|
1654
|
-
props: {
|
|
1655
|
-
modelValue: {
|
|
1656
|
-
type: null,
|
|
1657
|
-
required: !1
|
|
1658
|
-
},
|
|
1659
|
-
defaultValue: {
|
|
1660
|
-
type: null,
|
|
1661
|
-
required: !1
|
|
1662
|
-
},
|
|
1663
|
-
multiple: {
|
|
1664
|
-
type: Boolean,
|
|
1665
|
-
required: !1
|
|
1666
|
-
},
|
|
1667
|
-
orientation: {
|
|
1668
|
-
type: String,
|
|
1669
|
-
required: !1,
|
|
1670
|
-
default: "vertical"
|
|
1671
|
-
},
|
|
1672
|
-
dir: {
|
|
1673
|
-
type: String,
|
|
1674
|
-
required: !1
|
|
1675
|
-
},
|
|
1676
|
-
disabled: {
|
|
1677
|
-
type: Boolean,
|
|
1678
|
-
required: !1
|
|
1679
|
-
},
|
|
1680
|
-
selectionBehavior: {
|
|
1681
|
-
type: String,
|
|
1682
|
-
required: !1,
|
|
1683
|
-
default: "toggle"
|
|
1684
|
-
},
|
|
1685
|
-
highlightOnHover: {
|
|
1686
|
-
type: Boolean,
|
|
1687
|
-
required: !1
|
|
1688
|
-
},
|
|
1689
|
-
by: {
|
|
1690
|
-
type: [String, Function],
|
|
1691
|
-
required: !1
|
|
1692
|
-
},
|
|
1693
|
-
asChild: {
|
|
1694
|
-
type: Boolean,
|
|
1695
|
-
required: !1
|
|
1696
|
-
},
|
|
1697
|
-
as: {
|
|
1698
|
-
type: null,
|
|
1699
|
-
required: !1
|
|
1700
|
-
},
|
|
1701
|
-
name: {
|
|
1702
|
-
type: String,
|
|
1703
|
-
required: !1
|
|
1704
|
-
},
|
|
1705
|
-
required: {
|
|
1706
|
-
type: Boolean,
|
|
1707
|
-
required: !1
|
|
1708
|
-
}
|
|
1709
|
-
},
|
|
1710
|
-
emits: [
|
|
1711
|
-
"update:modelValue",
|
|
1712
|
-
"highlight",
|
|
1713
|
-
"entryFocus",
|
|
1714
|
-
"leave"
|
|
1715
|
-
],
|
|
1716
|
-
setup(e, { expose: t, emit: n }) {
|
|
1717
|
-
let r = e, i = n, { multiple: a, highlightOnHover: s, orientation: c, disabled: l, selectionBehavior: u, dir: d } = Rt(r), { getItems: f } = ea({ isProvider: !0 }), { handleTypeaheadSearch: p } = wi(), { primitiveElement: m, currentElement: h } = Mi(), g = xi(), _ = ei(d), v = oi(h), y = V(), b = V(!1), x = V(!0), S = Pr(r, "modelValue", i, {
|
|
1718
|
-
defaultValue: r.defaultValue ?? (a.value ? [] : void 0),
|
|
1719
|
-
passive: r.modelValue === void 0,
|
|
1720
|
-
deep: !0
|
|
1721
|
-
});
|
|
1722
|
-
function ee(e) {
|
|
1723
|
-
if (b.value = !0, r.multiple) {
|
|
1724
|
-
let t = Array.isArray(S.value) ? [...S.value] : [], n = t.findIndex((t) => Q(t, e, r.by));
|
|
1725
|
-
r.selectionBehavior === "toggle" ? (n === -1 ? t.push(e) : t.splice(n, 1), S.value = t) : (S.value = [e], y.value = e);
|
|
1726
|
-
} else r.selectionBehavior === "toggle" && Q(S.value, e, r.by) ? S.value = void 0 : S.value = e;
|
|
1727
|
-
setTimeout(() => {
|
|
1728
|
-
b.value = !1;
|
|
1729
|
-
}, 1);
|
|
1730
|
-
}
|
|
1731
|
-
let C = V(null), te = V(null), w = V(!1), ne = V(!1), T = wn(), re = wn(), E = wn();
|
|
1732
|
-
function ie() {
|
|
1733
|
-
return f().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
|
|
1734
|
-
}
|
|
1735
|
-
function D(e, t = !0, n) {
|
|
1736
|
-
if (!e) return;
|
|
1737
|
-
C.value = e, (n ?? x.value) && C.value.focus(), t && C.value.scrollIntoView({ block: "nearest" });
|
|
1738
|
-
let r = f().find((t) => t.ref === e);
|
|
1739
|
-
i("highlight", r);
|
|
1740
|
-
}
|
|
1741
|
-
function ae(e) {
|
|
1742
|
-
if (w.value) E.trigger(e);
|
|
1743
|
-
else {
|
|
1744
|
-
let t = f().find((t) => Q(t.value, e, r.by));
|
|
1745
|
-
t && (C.value = t.ref, D(t.ref));
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
function oe(e) {
|
|
1749
|
-
if (C.value && C.value.isConnected) {
|
|
1750
|
-
if (e.ctrlKey || e.metaKey || e.altKey) return;
|
|
1751
|
-
e.preventDefault(), e.stopPropagation(), ne.value || C.value.click();
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
function se(e) {
|
|
1755
|
-
if (x.value) {
|
|
1756
|
-
if (b.value = !0, w.value) re.trigger(e);
|
|
1757
|
-
else {
|
|
1758
|
-
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
1759
|
-
if (t && e.key === "a" && a.value) {
|
|
1760
|
-
let t = f(), n = t.map((e) => e.value);
|
|
1761
|
-
S.value = [...n], e.preventDefault();
|
|
1762
|
-
let r = t.at(-1);
|
|
1763
|
-
r && D(r.ref);
|
|
1764
|
-
} else if (!t) {
|
|
1765
|
-
let t = p(e.key, f());
|
|
1766
|
-
t && D(t);
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
setTimeout(() => {
|
|
1770
|
-
b.value = !1;
|
|
1771
|
-
}, 1);
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
function ce() {
|
|
1775
|
-
ne.value = !0;
|
|
1776
|
-
}
|
|
1777
|
-
function le() {
|
|
1778
|
-
o(() => {
|
|
1779
|
-
ne.value = !1;
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
function ue() {
|
|
1783
|
-
o(() => {
|
|
1784
|
-
pe(new KeyboardEvent("keydown", { key: "PageUp" }));
|
|
1785
|
-
});
|
|
1786
|
-
}
|
|
1787
|
-
function de(e) {
|
|
1788
|
-
let t = C.value;
|
|
1789
|
-
t?.isConnected && (te.value = t), C.value = null, i("leave", e);
|
|
1790
|
-
}
|
|
1791
|
-
function fe(e) {
|
|
1792
|
-
let t = new CustomEvent("listbox.entryFocus", {
|
|
1793
|
-
bubbles: !1,
|
|
1794
|
-
cancelable: !0
|
|
1795
|
-
});
|
|
1796
|
-
if (e.currentTarget?.dispatchEvent(t), i("entryFocus", t), !t.defaultPrevented) if (te.value) D(te.value);
|
|
1797
|
-
else {
|
|
1798
|
-
let e = ie()?.[0];
|
|
1799
|
-
D(e);
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
function pe(e) {
|
|
1803
|
-
let t = ca(e, c.value, _.value);
|
|
1804
|
-
if (!t) return;
|
|
1805
|
-
let n = ie();
|
|
1806
|
-
if (C.value) {
|
|
1807
|
-
if (t === "last") n.reverse();
|
|
1808
|
-
else if (t === "prev" || t === "next") {
|
|
1809
|
-
t === "prev" && n.reverse();
|
|
1810
|
-
let e = n.indexOf(C.value);
|
|
1811
|
-
n = n.slice(e + 1);
|
|
1812
|
-
}
|
|
1813
|
-
me(e, n[0]);
|
|
1814
|
-
}
|
|
1815
|
-
if (n.length) {
|
|
1816
|
-
let e = !C.value && t === "prev" ? n.length - 1 : 0;
|
|
1817
|
-
D(n[e]);
|
|
1818
|
-
}
|
|
1819
|
-
if (w.value) return re.trigger(e);
|
|
1820
|
-
}
|
|
1821
|
-
function me(e, t) {
|
|
1822
|
-
if (!(w.value || r.selectionBehavior !== "replace" || !a.value || !Array.isArray(S.value)) && !((e.altKey || e.ctrlKey || e.metaKey) && !e.shiftKey) && e.shiftKey) {
|
|
1823
|
-
let n = f().filter((e) => e.ref.dataset.disabled !== ""), r = n.find((e) => e.ref === t)?.value;
|
|
1824
|
-
if (e.key === g.END ? r = n.at(-1)?.value : e.key === g.HOME && (r = n[0]?.value), !r || !y.value) return;
|
|
1825
|
-
let i = Rr(n.map((e) => e.value), y.value, r);
|
|
1826
|
-
S.value = i;
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
|
-
async function he(e, t = !0) {
|
|
1830
|
-
if (I) if (await o(), w.value) T.trigger({
|
|
1831
|
-
event: e,
|
|
1832
|
-
scroll: t
|
|
1833
|
-
});
|
|
1834
|
-
else {
|
|
1835
|
-
let e = ie(), n = e.find((e) => e.dataset.state === "checked"), r = t ? void 0 : !1;
|
|
1836
|
-
n ? D(n, t, r) : e.length && D(e[0], t, r);
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
let ge = !1;
|
|
1840
|
-
return F(S, () => {
|
|
1841
|
-
if (!b.value) {
|
|
1842
|
-
let e = ge;
|
|
1843
|
-
ge = !0, o(() => {
|
|
1844
|
-
he(void 0, e);
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
}, {
|
|
1848
|
-
immediate: !0,
|
|
1849
|
-
deep: !0
|
|
1850
|
-
}), t({
|
|
1851
|
-
highlightedElement: C,
|
|
1852
|
-
highlightItem: ae,
|
|
1853
|
-
highlightFirstItem: ue,
|
|
1854
|
-
highlightSelected: he,
|
|
1855
|
-
getItems: f
|
|
1856
|
-
}), ua({
|
|
1857
|
-
modelValue: S,
|
|
1858
|
-
onValueChange: ee,
|
|
1859
|
-
multiple: a,
|
|
1860
|
-
orientation: c,
|
|
1861
|
-
dir: _,
|
|
1862
|
-
disabled: l,
|
|
1863
|
-
highlightOnHover: s,
|
|
1864
|
-
highlightedElement: C,
|
|
1865
|
-
isVirtual: w,
|
|
1866
|
-
virtualFocusHook: T,
|
|
1867
|
-
virtualKeydownHook: re,
|
|
1868
|
-
virtualHighlightHook: E,
|
|
1869
|
-
by: r.by,
|
|
1870
|
-
firstValue: y,
|
|
1871
|
-
selectionBehavior: u,
|
|
1872
|
-
focusable: x,
|
|
1873
|
-
onLeave: de,
|
|
1874
|
-
onEnter: fe,
|
|
1875
|
-
changeHighlight: D,
|
|
1876
|
-
onKeydownEnter: oe,
|
|
1877
|
-
onKeydownNavigation: pe,
|
|
1878
|
-
onKeydownTypeAhead: se,
|
|
1879
|
-
onCompositionStart: ce,
|
|
1880
|
-
onCompositionEnd: le,
|
|
1881
|
-
highlightFirstItem: ue
|
|
1882
|
-
}), (e, t) => (M(), H(U(X), {
|
|
1883
|
-
ref_key: "primitiveElement",
|
|
1884
|
-
ref: m,
|
|
1885
|
-
as: e.as,
|
|
1886
|
-
"as-child": e.asChild,
|
|
1887
|
-
dir: U(_),
|
|
1888
|
-
"data-disabled": U(l) ? "" : void 0,
|
|
1889
|
-
onPointerleave: de,
|
|
1890
|
-
onFocusout: t[0] ||= async (e) => {
|
|
1891
|
-
let t = e.relatedTarget || e.target;
|
|
1892
|
-
await o(), C.value && U(h) && !U(h).contains(t) && de(e);
|
|
1893
|
-
}
|
|
1894
|
-
}, {
|
|
1895
|
-
default: j(() => [N(e.$slots, "default", { modelValue: U(S) }), U(v) && e.name ? (M(), H(U(ra), {
|
|
1896
|
-
key: 0,
|
|
1897
|
-
name: e.name,
|
|
1898
|
-
value: U(S),
|
|
1899
|
-
disabled: U(l),
|
|
1900
|
-
required: e.required
|
|
1901
|
-
}, null, 8, [
|
|
1902
|
-
"name",
|
|
1903
|
-
"value",
|
|
1904
|
-
"disabled",
|
|
1905
|
-
"required"
|
|
1906
|
-
])) : O("v-if", !0)]),
|
|
1907
|
-
_: 3
|
|
1908
|
-
}, 8, [
|
|
1909
|
-
"as",
|
|
1910
|
-
"as-child",
|
|
1911
|
-
"dir",
|
|
1912
|
-
"data-disabled"
|
|
1913
|
-
]));
|
|
1914
|
-
}
|
|
1915
|
-
}), fa = /* @__PURE__ */ L({
|
|
1916
|
-
__name: "ListboxContent",
|
|
1917
|
-
props: {
|
|
1918
|
-
asChild: {
|
|
1919
|
-
type: Boolean,
|
|
1920
|
-
required: !1
|
|
1921
|
-
},
|
|
1922
|
-
as: {
|
|
1923
|
-
type: null,
|
|
1924
|
-
required: !1
|
|
1925
|
-
}
|
|
1926
|
-
},
|
|
1927
|
-
setup(e) {
|
|
1928
|
-
let { CollectionSlot: t } = ea(), n = la(), r = p(!1, 10);
|
|
1929
|
-
return (e, i) => (M(), H(U(t), null, {
|
|
1930
|
-
default: j(() => [B(U(X), {
|
|
1931
|
-
role: "listbox",
|
|
1932
|
-
as: e.as,
|
|
1933
|
-
"as-child": e.asChild,
|
|
1934
|
-
tabindex: U(n).focusable.value ? U(n).highlightedElement.value ? "-1" : "0" : "-1",
|
|
1935
|
-
"aria-orientation": U(n).orientation.value,
|
|
1936
|
-
"aria-multiselectable": !!U(n).multiple.value,
|
|
1937
|
-
"data-orientation": U(n).orientation.value,
|
|
1938
|
-
onMousedown: i[0] ||= ln((e) => r.value = !0, ["left"]),
|
|
1939
|
-
onFocus: i[1] ||= (e) => {
|
|
1940
|
-
U(r) || U(n).onEnter(e);
|
|
1941
|
-
},
|
|
1942
|
-
onKeydown: [
|
|
1943
|
-
i[2] ||= Ne((e) => {
|
|
1944
|
-
U(n).orientation.value === "vertical" && (e.key === "ArrowLeft" || e.key === "ArrowRight") || U(n).orientation.value === "horizontal" && (e.key === "ArrowUp" || e.key === "ArrowDown") || (e.preventDefault(), U(n).focusable.value && U(n).onKeydownNavigation(e));
|
|
1945
|
-
}, [
|
|
1946
|
-
"down",
|
|
1947
|
-
"up",
|
|
1948
|
-
"left",
|
|
1949
|
-
"right",
|
|
1950
|
-
"home",
|
|
1951
|
-
"end"
|
|
1952
|
-
]),
|
|
1953
|
-
Ne(U(n).onKeydownEnter, ["enter"]),
|
|
1954
|
-
U(n).onKeydownTypeAhead
|
|
1955
|
-
]
|
|
1956
|
-
}, {
|
|
1957
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
1958
|
-
_: 3
|
|
1959
|
-
}, 8, [
|
|
1960
|
-
"as",
|
|
1961
|
-
"as-child",
|
|
1962
|
-
"tabindex",
|
|
1963
|
-
"aria-orientation",
|
|
1964
|
-
"aria-multiselectable",
|
|
1965
|
-
"data-orientation",
|
|
1966
|
-
"onKeydown"
|
|
1967
|
-
])]),
|
|
1968
|
-
_: 3
|
|
1969
|
-
}));
|
|
1970
|
-
}
|
|
1971
|
-
}), pa = /* @__PURE__ */ L({
|
|
1972
|
-
__name: "ListboxFilter",
|
|
1973
|
-
props: {
|
|
1974
|
-
modelValue: {
|
|
1975
|
-
type: String,
|
|
1976
|
-
required: !1
|
|
1977
|
-
},
|
|
1978
|
-
autoFocus: {
|
|
1979
|
-
type: Boolean,
|
|
1980
|
-
required: !1
|
|
1981
|
-
},
|
|
1982
|
-
disabled: {
|
|
1983
|
-
type: Boolean,
|
|
1984
|
-
required: !1
|
|
1985
|
-
},
|
|
1986
|
-
asChild: {
|
|
1987
|
-
type: Boolean,
|
|
1988
|
-
required: !1
|
|
1989
|
-
},
|
|
1990
|
-
as: {
|
|
1991
|
-
type: null,
|
|
1992
|
-
required: !1,
|
|
1993
|
-
default: "input"
|
|
1994
|
-
}
|
|
1995
|
-
},
|
|
1996
|
-
emits: ["update:modelValue"],
|
|
1997
|
-
setup(e, { emit: t }) {
|
|
1998
|
-
let n = e, r = Pr(n, "modelValue", t, {
|
|
1999
|
-
defaultValue: "",
|
|
2000
|
-
passive: n.modelValue === void 0
|
|
2001
|
-
}), i = la(), { primitiveElement: a, currentElement: o } = Mi(), s = D(() => n.disabled || i.disabled.value || !1), c = V();
|
|
2002
|
-
kt(() => c.value = i.highlightedElement.value?.id), A(() => {
|
|
2003
|
-
i.focusable.value = !1, setTimeout(() => {
|
|
2004
|
-
n.autoFocus && o.value?.focus();
|
|
2005
|
-
}, 1);
|
|
2006
|
-
}), rt(() => {
|
|
2007
|
-
i.focusable.value = !0;
|
|
2008
|
-
});
|
|
2009
|
-
let { isComposing: l, handleCompositionStart: u, handleCompositionEnd: d } = $r((e) => {
|
|
2010
|
-
r.value = e.target.value, i.onCompositionEnd(), i.highlightFirstItem();
|
|
2011
|
-
});
|
|
2012
|
-
function f() {
|
|
2013
|
-
i.onCompositionStart(), u();
|
|
2014
|
-
}
|
|
2015
|
-
function p(e) {
|
|
2016
|
-
l.value || (r.value = e.target.value, i.highlightFirstItem());
|
|
2017
|
-
}
|
|
2018
|
-
function m(e) {
|
|
2019
|
-
l.value || (e.preventDefault(), i.onKeydownNavigation(e));
|
|
2020
|
-
}
|
|
2021
|
-
function h(e) {
|
|
2022
|
-
l.value || i.onKeydownEnter(e);
|
|
2023
|
-
}
|
|
2024
|
-
return (e, t) => (M(), H(U(X), {
|
|
2025
|
-
ref_key: "primitiveElement",
|
|
2026
|
-
ref: a,
|
|
2027
|
-
as: e.as,
|
|
2028
|
-
"as-child": e.asChild,
|
|
2029
|
-
value: U(r),
|
|
2030
|
-
disabled: s.value ? "" : void 0,
|
|
2031
|
-
"data-disabled": s.value ? "" : void 0,
|
|
2032
|
-
"aria-disabled": s.value ?? void 0,
|
|
2033
|
-
"aria-activedescendant": c.value,
|
|
2034
|
-
type: "text",
|
|
2035
|
-
onKeydown: [Ne(m, [
|
|
2036
|
-
"down",
|
|
2037
|
-
"up",
|
|
2038
|
-
"home",
|
|
2039
|
-
"end"
|
|
2040
|
-
]), Ne(h, ["enter"])],
|
|
2041
|
-
onInput: p,
|
|
2042
|
-
onCompositionstart: f,
|
|
2043
|
-
onCompositionend: U(d)
|
|
2044
|
-
}, {
|
|
2045
|
-
default: j(() => [N(e.$slots, "default", { modelValue: U(r) })]),
|
|
2046
|
-
_: 3
|
|
2047
|
-
}, 8, [
|
|
2048
|
-
"as",
|
|
2049
|
-
"as-child",
|
|
2050
|
-
"value",
|
|
2051
|
-
"disabled",
|
|
2052
|
-
"data-disabled",
|
|
2053
|
-
"aria-disabled",
|
|
2054
|
-
"aria-activedescendant",
|
|
2055
|
-
"onCompositionend"
|
|
2056
|
-
]));
|
|
2057
|
-
}
|
|
2058
|
-
}), ma = "listbox.select", [ha, ga] = /*#__PURE__*/ zr("ListboxItem"), _a = /* @__PURE__ */ L({
|
|
2059
|
-
__name: "ListboxItem",
|
|
2060
|
-
props: {
|
|
2061
|
-
value: {
|
|
2062
|
-
type: null,
|
|
2063
|
-
required: !0
|
|
2064
|
-
},
|
|
2065
|
-
disabled: {
|
|
2066
|
-
type: Boolean,
|
|
2067
|
-
required: !1
|
|
2068
|
-
},
|
|
2069
|
-
asChild: {
|
|
2070
|
-
type: Boolean,
|
|
2071
|
-
required: !1
|
|
2072
|
-
},
|
|
2073
|
-
as: {
|
|
2074
|
-
type: null,
|
|
2075
|
-
required: !1,
|
|
2076
|
-
default: "div"
|
|
2077
|
-
}
|
|
2078
|
-
},
|
|
2079
|
-
emits: ["select"],
|
|
2080
|
-
setup(e, { emit: t }) {
|
|
2081
|
-
let n = e, r = t, i = bi(void 0, "reka-listbox-item"), { CollectionItem: a } = ea(), { forwardRef: o, currentElement: s } = Y(), c = la(), l = D(() => s.value != null && s.value === c.highlightedElement.value), u = D(() => aa(c.modelValue.value, n.value, c.by)), d = D(() => c.disabled.value || n.disabled);
|
|
2082
|
-
async function f(e) {
|
|
2083
|
-
r("select", e), !e?.defaultPrevented && !d.value && e && (c.onValueChange(n.value), c.changeHighlight(s.value));
|
|
2084
|
-
}
|
|
2085
|
-
function p(e) {
|
|
2086
|
-
Br(ma, f, {
|
|
2087
|
-
originalEvent: e,
|
|
2088
|
-
value: n.value
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
return ga({ isSelected: u }), (e, t) => (M(), H(U(a), { value: e.value }, {
|
|
2092
|
-
default: j(() => [Ze([
|
|
2093
|
-
l.value,
|
|
2094
|
-
u.value,
|
|
2095
|
-
d.value,
|
|
2096
|
-
U(c).focusable.value
|
|
2097
|
-
], () => B(U(X), R({ id: U(i) }, e.$attrs, {
|
|
2098
|
-
ref: U(o),
|
|
2099
|
-
role: "option",
|
|
2100
|
-
tabindex: U(c).focusable.value ? l.value ? "0" : "-1" : -1,
|
|
2101
|
-
"aria-selected": u.value,
|
|
2102
|
-
as: e.as,
|
|
2103
|
-
"as-child": e.asChild,
|
|
2104
|
-
disabled: d.value ? "" : void 0,
|
|
2105
|
-
"data-disabled": d.value ? "" : void 0,
|
|
2106
|
-
"data-highlighted": l.value ? "" : void 0,
|
|
2107
|
-
"data-state": u.value ? "checked" : "unchecked",
|
|
2108
|
-
onClick: p,
|
|
2109
|
-
onKeydown: Ne(ln(p, ["prevent"]), ["space"]),
|
|
2110
|
-
onPointermove: t[0] ||= () => {
|
|
2111
|
-
U(c).highlightedElement.value !== U(s) && U(c).highlightOnHover.value && U(c).changeHighlight(U(s), !1, !1);
|
|
2112
|
-
}
|
|
2113
|
-
}), {
|
|
2114
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
2115
|
-
_: 3
|
|
2116
|
-
}, 16, [
|
|
2117
|
-
"id",
|
|
2118
|
-
"tabindex",
|
|
2119
|
-
"aria-selected",
|
|
2120
|
-
"as",
|
|
2121
|
-
"as-child",
|
|
2122
|
-
"disabled",
|
|
2123
|
-
"data-disabled",
|
|
2124
|
-
"data-highlighted",
|
|
2125
|
-
"data-state",
|
|
2126
|
-
"onKeydown"
|
|
2127
|
-
]), t, 1)]),
|
|
2128
|
-
_: 3
|
|
2129
|
-
}, 8, ["value"]));
|
|
2130
|
-
}
|
|
2131
|
-
}), va = /* @__PURE__ */ L({
|
|
2132
|
-
__name: "ListboxItemIndicator",
|
|
2133
|
-
props: {
|
|
2134
|
-
asChild: {
|
|
2135
|
-
type: Boolean,
|
|
2136
|
-
required: !1
|
|
2137
|
-
},
|
|
2138
|
-
as: {
|
|
2139
|
-
type: null,
|
|
2140
|
-
required: !1,
|
|
2141
|
-
default: "span"
|
|
2142
|
-
}
|
|
2143
|
-
},
|
|
2144
|
-
setup(e) {
|
|
2145
|
-
let t = e;
|
|
2146
|
-
Y();
|
|
2147
|
-
let n = ha();
|
|
2148
|
-
return (e, r) => U(n).isSelected.value ? (M(), H(U(X), R({
|
|
2149
|
-
key: 0,
|
|
2150
|
-
"aria-hidden": "true"
|
|
2151
|
-
}, t), {
|
|
2152
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
2153
|
-
_: 3
|
|
2154
|
-
}, 16)) : O("v-if", !0);
|
|
2155
|
-
}
|
|
2156
|
-
});
|
|
2157
|
-
//#endregion
|
|
2158
|
-
//#region node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js
|
|
2159
|
-
function ya(e, t, n) {
|
|
2160
|
-
let r = Array(e);
|
|
2161
|
-
return new Proxy(r, { get(r, i, a) {
|
|
2162
|
-
if (typeof i == "string") {
|
|
2163
|
-
let a = i.charCodeAt(0);
|
|
2164
|
-
if (a >= 48 && a <= 57) {
|
|
2165
|
-
let a = +i;
|
|
2166
|
-
if (Number.isInteger(a) && a >= 0 && a < e) {
|
|
2167
|
-
let e = r[a];
|
|
2168
|
-
if (!e) {
|
|
2169
|
-
let i = t[a * 2];
|
|
2170
|
-
e = r[a] = {
|
|
2171
|
-
index: a,
|
|
2172
|
-
key: n(a),
|
|
2173
|
-
start: i,
|
|
2174
|
-
size: t[a * 2 + 1],
|
|
2175
|
-
end: i + t[a * 2 + 1],
|
|
2176
|
-
lane: 0
|
|
2177
|
-
};
|
|
2178
|
-
}
|
|
2179
|
-
return e;
|
|
2180
|
-
}
|
|
2181
|
-
}
|
|
2182
|
-
if (i === "length") return e;
|
|
2183
|
-
}
|
|
2184
|
-
return Reflect.get(r, i, a);
|
|
2185
|
-
} });
|
|
2186
|
-
}
|
|
2187
|
-
//#endregion
|
|
2188
|
-
//#region node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
2189
|
-
function ba(e, t, n) {
|
|
2190
|
-
let r = n.initialDeps ?? [], i, a = !0;
|
|
2191
|
-
function o() {
|
|
2192
|
-
let o = e();
|
|
2193
|
-
return o.length !== r.length || o.some((e, t) => r[t] !== e) ? (r = o, i = t(...o), n?.onChange && !(a && n.skipInitialOnChange) && n.onChange(i), a = !1, i) : i;
|
|
2194
|
-
}
|
|
2195
|
-
return o.updateDeps = (e) => {
|
|
2196
|
-
r = e;
|
|
2197
|
-
}, o;
|
|
2198
|
-
}
|
|
2199
|
-
function xa(e, t) {
|
|
2200
|
-
if (e === void 0) throw Error(`Unexpected undefined${t ? `: ${t}` : ""}`);
|
|
2201
|
-
return e;
|
|
2202
|
-
}
|
|
2203
|
-
var Sa = (e, t) => Math.abs(e - t) < 1.01, Ca = (e, t, n) => {
|
|
2204
|
-
let r;
|
|
2205
|
-
return function(...i) {
|
|
2206
|
-
e.clearTimeout(r), r = e.setTimeout(() => t.apply(this, i), n);
|
|
2207
|
-
};
|
|
2208
|
-
}, wa, Ta = () => {
|
|
2209
|
-
if (wa !== void 0) return wa;
|
|
2210
|
-
if (typeof navigator > "u") return wa = !1;
|
|
2211
|
-
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return wa = !0;
|
|
2212
|
-
let e = navigator.maxTouchPoints;
|
|
2213
|
-
return wa = navigator.platform === "MacIntel" && e !== void 0 && e > 0;
|
|
2214
|
-
}, Ea = (e) => {
|
|
2215
|
-
let { offsetWidth: t, offsetHeight: n } = e;
|
|
2216
|
-
return {
|
|
2217
|
-
width: t,
|
|
2218
|
-
height: n
|
|
2219
|
-
};
|
|
2220
|
-
}, Da = (e) => e, Oa = (e) => {
|
|
2221
|
-
let t = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1) - t + 1, r = Array(n);
|
|
2222
|
-
for (let e = 0; e < n; e++) r[e] = t + e;
|
|
2223
|
-
return r;
|
|
2224
|
-
}, ka = (e, t) => {
|
|
2225
|
-
let n = e.scrollElement;
|
|
2226
|
-
if (!n) return;
|
|
2227
|
-
let r = e.targetWindow;
|
|
2228
|
-
if (!r) return;
|
|
2229
|
-
let i = (e) => {
|
|
2230
|
-
let { width: n, height: r } = e;
|
|
2231
|
-
t({
|
|
2232
|
-
width: Math.round(n),
|
|
2233
|
-
height: Math.round(r)
|
|
2234
|
-
});
|
|
2235
|
-
};
|
|
2236
|
-
if (i(Ea(n)), !r.ResizeObserver) return () => {};
|
|
2237
|
-
let a = new r.ResizeObserver((t) => {
|
|
2238
|
-
let r = () => {
|
|
2239
|
-
let e = t[0];
|
|
2240
|
-
if (e?.borderBoxSize) {
|
|
2241
|
-
let t = e.borderBoxSize[0];
|
|
2242
|
-
if (t) {
|
|
2243
|
-
i({
|
|
2244
|
-
width: t.inlineSize,
|
|
2245
|
-
height: t.blockSize
|
|
2246
|
-
});
|
|
2247
|
-
return;
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
i(Ea(n));
|
|
2251
|
-
};
|
|
2252
|
-
e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r) : r();
|
|
2253
|
-
});
|
|
2254
|
-
return a.observe(n, { box: "border-box" }), () => {
|
|
2255
|
-
a.unobserve(n);
|
|
2256
|
-
};
|
|
2257
|
-
}, Aa = { passive: !0 }, ja = typeof window > "u" || "onscrollend" in window, Ma = (e, t, n) => {
|
|
2258
|
-
let r = e.scrollElement;
|
|
2259
|
-
if (!r) return;
|
|
2260
|
-
let i = e.targetWindow;
|
|
2261
|
-
if (!i) return;
|
|
2262
|
-
let a = e.options.useScrollendEvent && ja, o = 0, s = a ? null : Ca(i, () => t(o, !1), e.options.isScrollingResetDelay), c = (e) => () => {
|
|
2263
|
-
o = n(r), s?.(), t(o, e);
|
|
2264
|
-
}, l = c(!0), u = c(!1);
|
|
2265
|
-
return r.addEventListener("scroll", l, Aa), a && r.addEventListener("scrollend", u, Aa), () => {
|
|
2266
|
-
r.removeEventListener("scroll", l), a && r.removeEventListener("scrollend", u);
|
|
2267
|
-
};
|
|
2268
|
-
}, Na = (e, t) => Ma(e, t, (t) => {
|
|
2269
|
-
let { horizontal: n, isRtl: r } = e.options;
|
|
2270
|
-
return n ? t.scrollLeft * (r && -1 || 1) : t.scrollTop;
|
|
2271
|
-
}), Pa = (e, t, n) => {
|
|
2272
|
-
if (n.options.useCachedMeasurements) {
|
|
2273
|
-
let t = n.indexFromElement(e), r = n.options.getItemKey(t);
|
|
2274
|
-
return n.itemSizeCache.get(r) ?? n.options.estimateSize(t);
|
|
2275
|
-
}
|
|
2276
|
-
if (t?.borderBoxSize) {
|
|
2277
|
-
let e = t.borderBoxSize[0];
|
|
2278
|
-
if (e) return Math.round(e[n.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
2279
|
-
}
|
|
2280
|
-
if (!t) {
|
|
2281
|
-
let t = n.indexFromElement(e), r = n.options.getItemKey(t), i = n.itemSizeCache.get(r);
|
|
2282
|
-
if (i !== void 0) return i;
|
|
2283
|
-
}
|
|
2284
|
-
return e[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
2285
|
-
}, Fa = (e, { adjustments: t = 0, behavior: n }, r) => {
|
|
2286
|
-
var i, a;
|
|
2287
|
-
(a = (i = r.scrollElement)?.scrollTo) == null || a.call(i, {
|
|
2288
|
-
[r.options.horizontal ? "left" : "top"]: e + t,
|
|
2289
|
-
behavior: n
|
|
2290
|
-
});
|
|
2291
|
-
}, Ia = class {
|
|
2292
|
-
constructor(e) {
|
|
2293
|
-
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this._flatMeasurements = null, this.itemSizeCache = /* @__PURE__ */ new Map(), this.itemSizeCacheVersion = 0, this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMin = null, this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.pendingScrollAnchor = null, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._intendedScrollOffset = null, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
2294
|
-
var e;
|
|
2295
|
-
return ((e = this.targetWindow?.performance)?.now)?.call(e) ?? Date.now();
|
|
2296
|
-
}, this.observer = /* @__PURE__ */ (() => {
|
|
2297
|
-
let e = null, t = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((e) => {
|
|
2298
|
-
e.forEach((e) => {
|
|
2299
|
-
let t = () => {
|
|
2300
|
-
let t = e.target, n = this.indexFromElement(t);
|
|
2301
|
-
if (!t.isConnected) {
|
|
2302
|
-
this.observer.unobserve(t);
|
|
2303
|
-
for (let [e, n] of this.elementsCache) if (n === t) {
|
|
2304
|
-
this.elementsCache.delete(e);
|
|
2305
|
-
break;
|
|
2306
|
-
}
|
|
2307
|
-
return;
|
|
2308
|
-
}
|
|
2309
|
-
this.shouldMeasureDuringScroll(n) && this.resizeItem(n, this.options.measureElement(t, e, this));
|
|
2310
|
-
};
|
|
2311
|
-
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(t) : t();
|
|
2312
|
-
});
|
|
2313
|
-
}));
|
|
2314
|
-
return {
|
|
2315
|
-
disconnect: () => {
|
|
2316
|
-
var n;
|
|
2317
|
-
(n = t()) == null || n.disconnect(), e = null;
|
|
2318
|
-
},
|
|
2319
|
-
observe: (e) => t()?.observe(e, { box: "border-box" }),
|
|
2320
|
-
unobserve: (e) => t()?.unobserve(e)
|
|
2321
|
-
};
|
|
2322
|
-
})(), this.range = null, this.setOptions = (e) => {
|
|
2323
|
-
let t = {
|
|
2324
|
-
debug: !1,
|
|
2325
|
-
initialOffset: 0,
|
|
2326
|
-
overscan: 1,
|
|
2327
|
-
paddingStart: 0,
|
|
2328
|
-
paddingEnd: 0,
|
|
2329
|
-
scrollPaddingStart: 0,
|
|
2330
|
-
scrollPaddingEnd: 0,
|
|
2331
|
-
horizontal: !1,
|
|
2332
|
-
getItemKey: Da,
|
|
2333
|
-
rangeExtractor: Oa,
|
|
2334
|
-
onChange: () => {},
|
|
2335
|
-
measureElement: Pa,
|
|
2336
|
-
initialRect: {
|
|
2337
|
-
width: 0,
|
|
2338
|
-
height: 0
|
|
2339
|
-
},
|
|
2340
|
-
scrollMargin: 0,
|
|
2341
|
-
gap: 0,
|
|
2342
|
-
indexAttribute: "data-index",
|
|
2343
|
-
initialMeasurementsCache: [],
|
|
2344
|
-
lanes: 1,
|
|
2345
|
-
anchorTo: "start",
|
|
2346
|
-
followOnAppend: !1,
|
|
2347
|
-
scrollEndThreshold: 1,
|
|
2348
|
-
isScrollingResetDelay: 150,
|
|
2349
|
-
enabled: !0,
|
|
2350
|
-
isRtl: !1,
|
|
2351
|
-
useScrollendEvent: !1,
|
|
2352
|
-
useAnimationFrameWithResizeObserver: !1,
|
|
2353
|
-
laneAssignmentMode: "estimate",
|
|
2354
|
-
useCachedMeasurements: !1
|
|
2355
|
-
};
|
|
2356
|
-
for (let n in e) {
|
|
2357
|
-
let r = e[n];
|
|
2358
|
-
r !== void 0 && (t[n] = r);
|
|
2359
|
-
}
|
|
2360
|
-
let n = this.options, r = null, i = null, a = !1;
|
|
2361
|
-
if (n !== void 0 && n.enabled && t.enabled && t.anchorTo === "end" && this.scrollElement !== null) {
|
|
2362
|
-
let e = n.count, o = t.count, s = this.getMeasurements(), c = e > 0 ? s[0]?.key ?? n.getItemKey(0) : null, l = e > 0 ? s[e - 1]?.key ?? n.getItemKey(e - 1) : null;
|
|
2363
|
-
if (o !== e || e > 0 && o > 0 && (t.getItemKey(0) !== c || t.getItemKey(o - 1) !== l)) {
|
|
2364
|
-
a = !0;
|
|
2365
|
-
let c = e > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? s[0] : null;
|
|
2366
|
-
c && (r = [c.key, this.getScrollOffset() - c.start]);
|
|
2367
|
-
let u = t.followOnAppend === !0 ? "auto" : t.followOnAppend || null;
|
|
2368
|
-
u && o > e && this.isAtEnd(n.scrollEndThreshold) && (e === 0 || t.getItemKey(o - 1) !== l) && (i = u);
|
|
2369
|
-
}
|
|
2370
|
-
}
|
|
2371
|
-
this.options = t, a && (this.pendingMin = 0, this.itemSizeCacheVersion++);
|
|
2372
|
-
let o = !1, s = 0;
|
|
2373
|
-
if (r && this.scrollOffset !== null) {
|
|
2374
|
-
let [e, t] = r, n = this.getMeasurements(), { count: i, getItemKey: a } = this.options, c = 0;
|
|
2375
|
-
for (; c < i && a(c) !== e;) c++;
|
|
2376
|
-
if (c < i) {
|
|
2377
|
-
let e = n[c];
|
|
2378
|
-
if (e) {
|
|
2379
|
-
let n = e.start + t;
|
|
2380
|
-
n !== this.scrollOffset && (s = n - this.scrollOffset, this.scrollOffset = n, o = !0);
|
|
2381
|
-
}
|
|
2382
|
-
}
|
|
2383
|
-
}
|
|
2384
|
-
(o || i) && (this.pendingScrollAnchor = [
|
|
2385
|
-
o ? r[0] : null,
|
|
2386
|
-
o ? r[1] : 0,
|
|
2387
|
-
i,
|
|
2388
|
-
s
|
|
2389
|
-
]);
|
|
2390
|
-
}, this.notify = (e) => {
|
|
2391
|
-
var t, n;
|
|
2392
|
-
(n = (t = this.options).onChange) == null || n.call(t, this, e);
|
|
2393
|
-
}, this.maybeNotify = ba(() => (this.calculateRange(), [
|
|
2394
|
-
this.isScrolling,
|
|
2395
|
-
this.range ? this.range.startIndex : null,
|
|
2396
|
-
this.range ? this.range.endIndex : null
|
|
2397
|
-
]), (e) => {
|
|
2398
|
-
this.notify(e);
|
|
2399
|
-
}, {
|
|
2400
|
-
key: !1,
|
|
2401
|
-
debug: () => this.options.debug,
|
|
2402
|
-
initialDeps: [
|
|
2403
|
-
this.isScrolling,
|
|
2404
|
-
this.range ? this.range.startIndex : null,
|
|
2405
|
-
this.range ? this.range.endIndex : null
|
|
2406
|
-
]
|
|
2407
|
-
}), this.cleanup = () => {
|
|
2408
|
-
this.unsubs.filter(Boolean).forEach((e) => e()), this.unsubs = [], this.observer.disconnect(), this.rafId != null && this.targetWindow && (this.targetWindow.cancelAnimationFrame(this.rafId), this.rafId = null), this.scrollState = null, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this.scrollElement = null, this.targetWindow = null;
|
|
2409
|
-
}, this._didMount = () => () => {
|
|
2410
|
-
this.cleanup();
|
|
2411
|
-
}, this._willUpdate = () => {
|
|
2412
|
-
let e = this.options.enabled ? this.options.getScrollElement() : null;
|
|
2413
|
-
if (this.scrollElement !== e) {
|
|
2414
|
-
if (this.cleanup(), !e) {
|
|
2415
|
-
this.maybeNotify();
|
|
2416
|
-
return;
|
|
2417
|
-
}
|
|
2418
|
-
if (this.scrollElement = e, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = this.scrollElement?.window ?? null, this.elementsCache.forEach((e) => {
|
|
2419
|
-
this.observer.observe(e);
|
|
2420
|
-
}), this.unsubs.push(this.options.observeElementRect(this, (e) => {
|
|
2421
|
-
this.scrollRect = e, this.maybeNotify();
|
|
2422
|
-
})), this.unsubs.push(this.options.observeElementOffset(this, (e, t) => {
|
|
2423
|
-
if (t && this._intendedScrollOffset === null && e === this.scrollOffset) return;
|
|
2424
|
-
this._intendedScrollOffset !== null && Math.abs(e - this._intendedScrollOffset) < 1.5 && (e = this._intendedScrollOffset), this._intendedScrollOffset = null, this.scrollAdjustments = 0;
|
|
2425
|
-
let n = this.getScrollOffset();
|
|
2426
|
-
this.scrollDirection = t ? n === e ? this.scrollDirection : n < e ? "forward" : "backward" : null, this.scrollOffset = e, this.isScrolling = t, this._flushIosDeferredIfReady(), this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
|
|
2427
|
-
})), "addEventListener" in this.scrollElement) {
|
|
2428
|
-
let e = this.scrollElement, t = () => {
|
|
2429
|
-
this._iosTouching = !0, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
2430
|
-
}, n = () => {
|
|
2431
|
-
this._iosTouching = !1, !(!Ta() || this.targetWindow == null) && (this._iosJustTouchEnded = !0, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
2432
|
-
this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
|
|
2433
|
-
}, 150));
|
|
2434
|
-
};
|
|
2435
|
-
e.addEventListener("touchstart", t, Aa), e.addEventListener("touchend", n, Aa), this.unsubs.push(() => {
|
|
2436
|
-
e.removeEventListener("touchstart", t), e.removeEventListener("touchend", n), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
2437
|
-
});
|
|
2438
|
-
}
|
|
2439
|
-
this._scrollToOffset(this.getScrollOffset(), {
|
|
2440
|
-
adjustments: void 0,
|
|
2441
|
-
behavior: void 0
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
let t = this.pendingScrollAnchor;
|
|
2445
|
-
if (this.pendingScrollAnchor = null, t && this.scrollElement && this.options.enabled) {
|
|
2446
|
-
let [e, n, r, i] = t;
|
|
2447
|
-
e !== null && !r && (Ta() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? i !== 0 && (this._iosDeferredAdjustment += i) : this._scrollToOffset(this.getScrollOffset(), {
|
|
2448
|
-
adjustments: void 0,
|
|
2449
|
-
behavior: void 0
|
|
2450
|
-
})), r && this.scrollToEnd({ behavior: r });
|
|
2451
|
-
}
|
|
2452
|
-
}, this._flushIosDeferredIfReady = () => {
|
|
2453
|
-
if (this._iosDeferredAdjustment === 0 || this.isScrolling || this._iosTouching || this._iosJustTouchEnded) return;
|
|
2454
|
-
let e = this.getScrollOffset(), t = this.getMaxScrollOffset();
|
|
2455
|
-
if (e < 0 || e > t) return;
|
|
2456
|
-
let n = this._iosDeferredAdjustment;
|
|
2457
|
-
this._iosDeferredAdjustment = 0, this._scrollToOffset(e, {
|
|
2458
|
-
adjustments: this.scrollAdjustments += n,
|
|
2459
|
-
behavior: void 0
|
|
2460
|
-
});
|
|
2461
|
-
}, this.rafId = null, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getMeasurementOptions = ba(() => [
|
|
2462
|
-
this.options.count,
|
|
2463
|
-
this.options.paddingStart,
|
|
2464
|
-
this.options.scrollMargin,
|
|
2465
|
-
this.options.getItemKey,
|
|
2466
|
-
this.options.enabled,
|
|
2467
|
-
this.options.lanes,
|
|
2468
|
-
this.options.laneAssignmentMode,
|
|
2469
|
-
this.options.gap
|
|
2470
|
-
], (e, t, n, r, i, a, o, s) => (this.prevLanes !== void 0 && this.prevLanes !== a && (this.lanesChangedFlag = !0), this.prevLanes = a, this.pendingMin = null, {
|
|
2471
|
-
count: e,
|
|
2472
|
-
paddingStart: t,
|
|
2473
|
-
scrollMargin: n,
|
|
2474
|
-
getItemKey: r,
|
|
2475
|
-
enabled: i,
|
|
2476
|
-
lanes: a,
|
|
2477
|
-
laneAssignmentMode: o,
|
|
2478
|
-
gap: s
|
|
2479
|
-
}), { key: !1 }), this.getMeasurements = ba(() => [this.getMeasurementOptions(), this.itemSizeCacheVersion], ({ count: e, paddingStart: t, scrollMargin: n, getItemKey: r, enabled: i, lanes: a, laneAssignmentMode: o, gap: s }, c) => {
|
|
2480
|
-
let l = this.itemSizeCache;
|
|
2481
|
-
if (!i) return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
2482
|
-
if (this.laneAssignments.size > e) for (let t of this.laneAssignments.keys()) t >= e && this.laneAssignments.delete(t);
|
|
2483
|
-
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMin = null), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e) => {
|
|
2484
|
-
this.itemSizeCache.set(e.key, e.size);
|
|
2485
|
-
}));
|
|
2486
|
-
let u = this.lanesSettling ? 0 : this.pendingMin ?? 0;
|
|
2487
|
-
if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === e && (this.lanesSettling = !1), a === 1) {
|
|
2488
|
-
let i = e * 2, a = this._flatMeasurements;
|
|
2489
|
-
if (!a || a.length < i) {
|
|
2490
|
-
let e = new Float64Array(i);
|
|
2491
|
-
a && u > 0 && e.set(a.subarray(0, u * 2)), a = e, this._flatMeasurements = a;
|
|
2492
|
-
}
|
|
2493
|
-
let o;
|
|
2494
|
-
if (u === 0) o = t + n;
|
|
2495
|
-
else {
|
|
2496
|
-
let e = u - 1;
|
|
2497
|
-
o = a[e * 2] + a[e * 2 + 1] + s;
|
|
2498
|
-
}
|
|
2499
|
-
for (let t = u; t < e; t++) {
|
|
2500
|
-
let e = r(t), n = l.get(e), i = typeof n == "number" ? n : this.options.estimateSize(t);
|
|
2501
|
-
a[t * 2] = o, a[t * 2 + 1] = i, o += i + s;
|
|
2502
|
-
}
|
|
2503
|
-
let c = ya(e, a, r);
|
|
2504
|
-
return this.measurementsCache = c, c;
|
|
2505
|
-
}
|
|
2506
|
-
let d = this.measurementsCache.slice(0, u), f = Array(a).fill(void 0), p = new Float64Array(a), m = 0;
|
|
2507
|
-
for (let e = 0; e < u; e++) {
|
|
2508
|
-
let t = d[e];
|
|
2509
|
-
t && (f[t.lane] === void 0 && m++, f[t.lane] = e, p[t.lane] = t.end);
|
|
2510
|
-
}
|
|
2511
|
-
for (let i = u; i < e; i++) {
|
|
2512
|
-
let e = r(i), c = this.laneAssignments.get(i), u, h, g = o === "estimate" || l.has(e);
|
|
2513
|
-
if (c !== void 0 && this.options.lanes > 1) {
|
|
2514
|
-
u = c;
|
|
2515
|
-
let e = f[u], r = e === void 0 ? void 0 : d[e];
|
|
2516
|
-
h = r ? r.end + s : t + n;
|
|
2517
|
-
} else if (m === a) {
|
|
2518
|
-
let e = 0, t = p[0], n = f[0];
|
|
2519
|
-
for (let r = 1; r < a; r++) {
|
|
2520
|
-
let i = p[r];
|
|
2521
|
-
(i < t || i === t && f[r] < n) && (e = r, t = i, n = f[r]);
|
|
2522
|
-
}
|
|
2523
|
-
u = e, h = t + s, g && this.laneAssignments.set(i, u);
|
|
2524
|
-
} else u = i % this.options.lanes, h = t + n, g && this.laneAssignments.set(i, u);
|
|
2525
|
-
let _ = l.get(e), v = typeof _ == "number" ? _ : this.options.estimateSize(i), y = h + v;
|
|
2526
|
-
d[i] = {
|
|
2527
|
-
index: i,
|
|
2528
|
-
start: h,
|
|
2529
|
-
size: v,
|
|
2530
|
-
end: y,
|
|
2531
|
-
key: e,
|
|
2532
|
-
lane: u
|
|
2533
|
-
}, f[u] === void 0 && m++, f[u] = i, p[u] = y;
|
|
2534
|
-
}
|
|
2535
|
-
return this.measurementsCache = d, d;
|
|
2536
|
-
}, {
|
|
2537
|
-
key: !1,
|
|
2538
|
-
debug: () => this.options.debug
|
|
2539
|
-
}), this.calculateRange = ba(() => [
|
|
2540
|
-
this.getMeasurements(),
|
|
2541
|
-
this.getSize(),
|
|
2542
|
-
this.getScrollOffset(),
|
|
2543
|
-
this.options.lanes
|
|
2544
|
-
], (e, t, n, r) => e.length === 0 || t === 0 ? (this.range = null, null) : (this.range = za(e, t, n, r, r === 1 && this._flatMeasurements != null ? this._flatMeasurements : null), this.range), {
|
|
2545
|
-
key: !1,
|
|
2546
|
-
debug: () => this.options.debug
|
|
2547
|
-
}), this.getVirtualIndexes = ba(() => {
|
|
2548
|
-
let e = null, t = null, n = this.calculateRange();
|
|
2549
|
-
return n && (e = n.startIndex, t = n.endIndex), this.maybeNotify.updateDeps([
|
|
2550
|
-
this.isScrolling,
|
|
2551
|
-
e,
|
|
2552
|
-
t
|
|
2553
|
-
]), [
|
|
2554
|
-
this.options.rangeExtractor,
|
|
2555
|
-
this.options.overscan,
|
|
2556
|
-
this.options.count,
|
|
2557
|
-
e,
|
|
2558
|
-
t
|
|
2559
|
-
];
|
|
2560
|
-
}, (e, t, n, r, i) => r === null || i === null ? [] : e({
|
|
2561
|
-
startIndex: r,
|
|
2562
|
-
endIndex: i,
|
|
2563
|
-
overscan: t,
|
|
2564
|
-
count: n
|
|
2565
|
-
}), {
|
|
2566
|
-
key: !1,
|
|
2567
|
-
debug: () => this.options.debug
|
|
2568
|
-
}), this.indexFromElement = (e) => {
|
|
2569
|
-
let t = this.options.indexAttribute, n = e.getAttribute(t);
|
|
2570
|
-
return n ? parseInt(n, 10) : (console.warn(`Missing attribute name '${t}={index}' on measured element.`), -1);
|
|
2571
|
-
}, this.shouldMeasureDuringScroll = (e) => {
|
|
2572
|
-
if (!this.scrollState || this.scrollState.behavior !== "smooth") return !0;
|
|
2573
|
-
let t = this.scrollState.index ?? this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;
|
|
2574
|
-
if (t !== void 0 && this.range) {
|
|
2575
|
-
let n = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2)), r = Math.max(0, t - n), i = Math.min(this.options.count - 1, t + n);
|
|
2576
|
-
return e >= r && e <= i;
|
|
2577
|
-
}
|
|
2578
|
-
return !0;
|
|
2579
|
-
}, this.measureElement = (e) => {
|
|
2580
|
-
if (!e) {
|
|
2581
|
-
this.elementsCache.forEach((e, t) => {
|
|
2582
|
-
e.isConnected || (this.observer.unobserve(e), this.elementsCache.delete(t));
|
|
2583
|
-
});
|
|
2584
|
-
return;
|
|
2585
|
-
}
|
|
2586
|
-
let t = this.indexFromElement(e), n = this.options.getItemKey(t), r = this.elementsCache.get(n);
|
|
2587
|
-
r !== e && (r && this.observer.unobserve(r), this.observer.observe(e), this.elementsCache.set(n, e)), (!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(t) && this.resizeItem(t, this.options.measureElement(e, void 0, this));
|
|
2588
|
-
}, this.resizeItem = (e, t) => {
|
|
2589
|
-
if (e < 0 || e >= this.options.count) return;
|
|
2590
|
-
let n, r, i, a = this._flatMeasurements;
|
|
2591
|
-
if (this.options.lanes === 1 && a !== null) i = this.options.getItemKey(e), r = a[e * 2], n = a[e * 2 + 1];
|
|
2592
|
-
else {
|
|
2593
|
-
let t = this.measurementsCache[e];
|
|
2594
|
-
if (!t) return;
|
|
2595
|
-
i = t.key, r = t.start, n = t.size;
|
|
2596
|
-
}
|
|
2597
|
-
let o = t - (this.itemSizeCache.get(i) ?? n);
|
|
2598
|
-
if (o !== 0) {
|
|
2599
|
-
let a = this.options.anchorTo === "end" && this.scrollState?.behavior !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold, s = a ? this.getTotalSize() : 0, c = this.scrollState?.behavior !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange === void 0 ? r < this.getScrollOffset() + this.scrollAdjustments && (!this.itemSizeCache.has(i) || this.scrollDirection !== "backward") : this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e] ?? {
|
|
2600
|
-
index: e,
|
|
2601
|
-
key: i,
|
|
2602
|
-
start: r,
|
|
2603
|
-
size: n,
|
|
2604
|
-
end: r + n,
|
|
2605
|
-
lane: 0
|
|
2606
|
-
}, o, this));
|
|
2607
|
-
(this.pendingMin === null || e < this.pendingMin) && (this.pendingMin = e), this.itemSizeCache.set(i, t), this.itemSizeCacheVersion++, a ? this.applyScrollAdjustment(this.getTotalSize() - s) : c && this.applyScrollAdjustment(o), this.notify(!1);
|
|
2608
|
-
}
|
|
2609
|
-
}, this.getVirtualItems = ba(() => [this.getVirtualIndexes(), this.getMeasurements()], (e, t) => {
|
|
2610
|
-
let n = [];
|
|
2611
|
-
for (let r = 0, i = e.length; r < i; r++) {
|
|
2612
|
-
let i = t[e[r]];
|
|
2613
|
-
n.push(i);
|
|
2614
|
-
}
|
|
2615
|
-
return n;
|
|
2616
|
-
}, {
|
|
2617
|
-
key: !1,
|
|
2618
|
-
debug: () => this.options.debug
|
|
2619
|
-
}), this.getVirtualItemForOffset = (e) => {
|
|
2620
|
-
let t = this.getMeasurements();
|
|
2621
|
-
if (t.length === 0) return;
|
|
2622
|
-
let n = this._flatMeasurements, r = this.options.lanes === 1 && n != null;
|
|
2623
|
-
return xa(t[La(0, t.length - 1, r ? (e) => n[e * 2] : (e) => xa(t[e]).start, e)]);
|
|
2624
|
-
}, this.getMaxScrollOffset = () => {
|
|
2625
|
-
if (!this.scrollElement) return 0;
|
|
2626
|
-
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
2627
|
-
{
|
|
2628
|
-
let e = this.scrollElement.document.documentElement;
|
|
2629
|
-
return this.options.horizontal ? e.scrollWidth - this.scrollElement.innerWidth : e.scrollHeight - this.scrollElement.innerHeight;
|
|
2630
|
-
}
|
|
2631
|
-
}, this.getVirtualDistanceFromEnd = () => Math.max(this.getTotalSize() - this.getSize() - this.getScrollOffset(), 0), this.getDistanceFromEnd = () => Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0), this.isAtEnd = (e = this.options.scrollEndThreshold) => this.getDistanceFromEnd() <= e, this.getOffsetForAlignment = (e, t, n = 0) => {
|
|
2632
|
-
if (!this.scrollElement) return 0;
|
|
2633
|
-
let r = this.getSize(), i = this.getScrollOffset();
|
|
2634
|
-
t === "auto" && (t = e >= i + r ? "end" : "start"), t === "center" ? e += (n - r) / 2 : t === "end" && (e -= r);
|
|
2635
|
-
let a = this.getMaxScrollOffset();
|
|
2636
|
-
return Math.max(Math.min(a, e), 0);
|
|
2637
|
-
}, this.getOffsetForIndex = (e, t = "auto") => {
|
|
2638
|
-
e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
2639
|
-
let n = this.getSize(), r = this.getScrollOffset(), i = this.measurementsCache[e];
|
|
2640
|
-
if (!i) return;
|
|
2641
|
-
if (t === "auto") if (i.end >= r + n - this.options.scrollPaddingEnd) t = "end";
|
|
2642
|
-
else if (i.start <= r + this.options.scrollPaddingStart) t = "start";
|
|
2643
|
-
else return [r, t];
|
|
2644
|
-
if (t === "end" && e === this.options.count - 1) return [this.getMaxScrollOffset(), t];
|
|
2645
|
-
let a = t === "end" ? i.end + this.options.scrollPaddingEnd : i.start - this.options.scrollPaddingStart;
|
|
2646
|
-
return [this.getOffsetForAlignment(a, t, i.size), t];
|
|
2647
|
-
}, this.scrollToOffset = (e, { align: t = "start", behavior: n = "auto" } = {}) => {
|
|
2648
|
-
let r = this.getOffsetForAlignment(e, t), i = this.now();
|
|
2649
|
-
this.scrollState = {
|
|
2650
|
-
index: null,
|
|
2651
|
-
align: t,
|
|
2652
|
-
behavior: n,
|
|
2653
|
-
startedAt: i,
|
|
2654
|
-
lastTargetOffset: r,
|
|
2655
|
-
stableFrames: 0
|
|
2656
|
-
}, this._scrollToOffset(r, {
|
|
2657
|
-
adjustments: void 0,
|
|
2658
|
-
behavior: n
|
|
2659
|
-
}), this.scheduleScrollReconcile();
|
|
2660
|
-
}, this.scrollToIndex = (e, { align: t = "auto", behavior: n = "auto" } = {}) => {
|
|
2661
|
-
e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
2662
|
-
let r = this.getOffsetForIndex(e, t);
|
|
2663
|
-
if (!r) return;
|
|
2664
|
-
let [i, a] = r, o = this.now();
|
|
2665
|
-
this.scrollState = {
|
|
2666
|
-
index: e,
|
|
2667
|
-
align: a,
|
|
2668
|
-
behavior: n,
|
|
2669
|
-
startedAt: o,
|
|
2670
|
-
lastTargetOffset: i,
|
|
2671
|
-
stableFrames: 0
|
|
2672
|
-
}, this._scrollToOffset(i, {
|
|
2673
|
-
adjustments: void 0,
|
|
2674
|
-
behavior: n
|
|
2675
|
-
}), this.scheduleScrollReconcile();
|
|
2676
|
-
}, this.scrollBy = (e, { behavior: t = "auto" } = {}) => {
|
|
2677
|
-
let n = this.getScrollOffset() + e, r = this.now();
|
|
2678
|
-
this.scrollState = {
|
|
2679
|
-
index: null,
|
|
2680
|
-
align: "start",
|
|
2681
|
-
behavior: t,
|
|
2682
|
-
startedAt: r,
|
|
2683
|
-
lastTargetOffset: n,
|
|
2684
|
-
stableFrames: 0
|
|
2685
|
-
}, this._scrollToOffset(n, {
|
|
2686
|
-
adjustments: void 0,
|
|
2687
|
-
behavior: t
|
|
2688
|
-
}), this.scheduleScrollReconcile();
|
|
2689
|
-
}, this.scrollToEnd = ({ behavior: e = "auto" } = {}) => {
|
|
2690
|
-
if (this.options.count > 0) {
|
|
2691
|
-
this.scrollToIndex(this.options.count - 1, {
|
|
2692
|
-
align: "end",
|
|
2693
|
-
behavior: e
|
|
2694
|
-
});
|
|
2695
|
-
return;
|
|
2696
|
-
}
|
|
2697
|
-
this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior: e });
|
|
2698
|
-
}, this.getTotalSize = () => {
|
|
2699
|
-
let e = this.getMeasurements(), t;
|
|
2700
|
-
if (e.length === 0) t = this.options.paddingStart;
|
|
2701
|
-
else if (this.options.lanes === 1) {
|
|
2702
|
-
let n = e.length - 1, r = this._flatMeasurements;
|
|
2703
|
-
t = r == null ? e[n]?.end ?? 0 : r[n * 2] + r[n * 2 + 1];
|
|
2704
|
-
} else {
|
|
2705
|
-
let n = Array(this.options.lanes).fill(null), r = e.length - 1;
|
|
2706
|
-
for (; r >= 0 && n.some((e) => e === null);) {
|
|
2707
|
-
let t = e[r];
|
|
2708
|
-
n[t.lane] === null && (n[t.lane] = t.end), r--;
|
|
2709
|
-
}
|
|
2710
|
-
t = Math.max(...n.filter((e) => e !== null));
|
|
2711
|
-
}
|
|
2712
|
-
return Math.max(t - this.options.scrollMargin + this.options.paddingEnd, 0);
|
|
2713
|
-
}, this.takeSnapshot = () => {
|
|
2714
|
-
let e = [];
|
|
2715
|
-
if (this.itemSizeCache.size === 0) return e;
|
|
2716
|
-
let t = this.getMeasurements();
|
|
2717
|
-
for (let n of t) n && this.itemSizeCache.has(n.key) && e.push({
|
|
2718
|
-
index: n.index,
|
|
2719
|
-
key: n.key,
|
|
2720
|
-
start: n.start,
|
|
2721
|
-
size: n.size,
|
|
2722
|
-
end: n.end,
|
|
2723
|
-
lane: n.lane
|
|
2724
|
-
});
|
|
2725
|
-
return e;
|
|
2726
|
-
}, this._scrollToOffset = (e, { adjustments: t, behavior: n }) => {
|
|
2727
|
-
this._intendedScrollOffset = e + (t ?? 0), this.options.scrollToFn(e, {
|
|
2728
|
-
behavior: n,
|
|
2729
|
-
adjustments: t
|
|
2730
|
-
}, this);
|
|
2731
|
-
}, this.measure = () => {
|
|
2732
|
-
this.pendingMin = null, this.itemSizeCache.clear(), this.laneAssignments.clear(), this.itemSizeCacheVersion++, this.notify(!1);
|
|
2733
|
-
}, this.setOptions(e);
|
|
2734
|
-
}
|
|
2735
|
-
applyScrollAdjustment(e, t) {
|
|
2736
|
-
e !== 0 && (Ta() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? this._iosDeferredAdjustment += e : (this._scrollToOffset(this.getScrollOffset(), {
|
|
2737
|
-
adjustments: this.scrollAdjustments += e,
|
|
2738
|
-
behavior: t
|
|
2739
|
-
}), this.scrollOffset !== null && (this.scrollOffset += this.scrollAdjustments, this.scrollAdjustments = 0)));
|
|
2740
|
-
}
|
|
2741
|
-
scheduleScrollReconcile() {
|
|
2742
|
-
if (!this.targetWindow) {
|
|
2743
|
-
this.scrollState = null;
|
|
2744
|
-
return;
|
|
2745
|
-
}
|
|
2746
|
-
this.rafId ??= this.targetWindow.requestAnimationFrame(() => {
|
|
2747
|
-
this.rafId = null, this.reconcileScroll();
|
|
2748
|
-
});
|
|
2749
|
-
}
|
|
2750
|
-
reconcileScroll() {
|
|
2751
|
-
if (!this.scrollState || !this.scrollElement) return;
|
|
2752
|
-
if (this.now() - this.scrollState.startedAt > 5e3) {
|
|
2753
|
-
this.scrollState = null;
|
|
2754
|
-
return;
|
|
2755
|
-
}
|
|
2756
|
-
let e = this.scrollState.index == null ? void 0 : this.getOffsetForIndex(this.scrollState.index, this.scrollState.align), t = e ? e[0] : this.scrollState.lastTargetOffset, n = t !== this.scrollState.lastTargetOffset;
|
|
2757
|
-
if (!n && Sa(t, this.getScrollOffset())) {
|
|
2758
|
-
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= 1) {
|
|
2759
|
-
this.getScrollOffset() !== t && this._scrollToOffset(t, {
|
|
2760
|
-
adjustments: void 0,
|
|
2761
|
-
behavior: "auto"
|
|
2762
|
-
}), this.scrollState = null;
|
|
2763
|
-
return;
|
|
2764
|
-
}
|
|
2765
|
-
} else if (this.scrollState.stableFrames = 0, n) {
|
|
2766
|
-
let e = this.getSize() || 600, n = Math.abs(t - this.getScrollOffset()), r = this.scrollState.behavior === "smooth" && n > e;
|
|
2767
|
-
this.scrollState.lastTargetOffset = t, r || (this.scrollState.behavior = "auto"), this._scrollToOffset(t, {
|
|
2768
|
-
adjustments: void 0,
|
|
2769
|
-
behavior: r ? "smooth" : "auto"
|
|
2770
|
-
});
|
|
2771
|
-
}
|
|
2772
|
-
this.scheduleScrollReconcile();
|
|
2773
|
-
}
|
|
2774
|
-
}, La = (e, t, n, r) => {
|
|
2775
|
-
for (; e <= t;) {
|
|
2776
|
-
let i = (e + t) / 2 | 0, a = n(i);
|
|
2777
|
-
if (a < r) e = i + 1;
|
|
2778
|
-
else if (a > r) t = i - 1;
|
|
2779
|
-
else return i;
|
|
2780
|
-
}
|
|
2781
|
-
return e > 0 ? e - 1 : 0;
|
|
2782
|
-
};
|
|
2783
|
-
function Ra(e, t, n) {
|
|
2784
|
-
let r = 0;
|
|
2785
|
-
for (; r <= t;) {
|
|
2786
|
-
let i = (r + t) / 2 | 0, a = e[i * 2];
|
|
2787
|
-
if (a < n) r = i + 1;
|
|
2788
|
-
else if (a > n) t = i - 1;
|
|
2789
|
-
else return i;
|
|
2790
|
-
}
|
|
2791
|
-
return r > 0 ? r - 1 : 0;
|
|
2792
|
-
}
|
|
2793
|
-
function za(e, t, n, r, i) {
|
|
2794
|
-
let a = e.length - 1;
|
|
2795
|
-
if (e.length <= r) return {
|
|
2796
|
-
startIndex: 0,
|
|
2797
|
-
endIndex: a
|
|
2798
|
-
};
|
|
2799
|
-
if (r === 1 && i !== null) {
|
|
2800
|
-
let e = Ra(i, a, n), r = e, o = n + t;
|
|
2801
|
-
for (; r < a && i[r * 2] + i[r * 2 + 1] < o;) r++;
|
|
2802
|
-
return {
|
|
2803
|
-
startIndex: e,
|
|
2804
|
-
endIndex: r
|
|
2805
|
-
};
|
|
2806
|
-
}
|
|
2807
|
-
let o = La(0, a, (t) => e[t].start, n), s = o;
|
|
2808
|
-
if (r === 1) for (; s < a && e[s].end < n + t;) s++;
|
|
2809
|
-
else if (r > 1) {
|
|
2810
|
-
let i = Array(r).fill(0);
|
|
2811
|
-
for (; s < a && i.some((e) => e < n + t);) {
|
|
2812
|
-
let t = e[s];
|
|
2813
|
-
i[t.lane] = t.end, s++;
|
|
2814
|
-
}
|
|
2815
|
-
let c = Array(r).fill(n + t);
|
|
2816
|
-
for (; o >= 0 && c.some((e) => e >= n);) {
|
|
2817
|
-
let t = e[o];
|
|
2818
|
-
c[t.lane] = t.start, o--;
|
|
2819
|
-
}
|
|
2820
|
-
o = Math.max(0, o - o % r), s = Math.min(a, s + (r - 1 - s % r));
|
|
2821
|
-
}
|
|
2822
|
-
return {
|
|
2823
|
-
startIndex: o,
|
|
2824
|
-
endIndex: s
|
|
2825
|
-
};
|
|
2826
|
-
}
|
|
2827
|
-
//#endregion
|
|
2828
|
-
//#region node_modules/@tanstack/vue-virtual/dist/esm/index.js
|
|
2829
|
-
function Ba(e) {
|
|
2830
|
-
let t = new Ia(U(e)), n = dt(t), r = t._didMount();
|
|
2831
|
-
return F(() => U(e).getScrollElement(), (e) => {
|
|
2832
|
-
e && t._willUpdate();
|
|
2833
|
-
}, { immediate: !0 }), F(() => U(e), (e) => {
|
|
2834
|
-
t.setOptions({
|
|
2835
|
-
...e,
|
|
2836
|
-
onChange: (t, r) => {
|
|
2837
|
-
var i;
|
|
2838
|
-
_n(n), (i = e.onChange) == null || i.call(e, t, r);
|
|
2839
|
-
}
|
|
2840
|
-
}), t._willUpdate(), _n(n);
|
|
2841
|
-
}, { immediate: !0 }), se(r), n;
|
|
2842
|
-
}
|
|
2843
|
-
function Va(e) {
|
|
2844
|
-
return Ba(D(() => ({
|
|
2845
|
-
observeElementRect: ka,
|
|
2846
|
-
observeElementOffset: Na,
|
|
2847
|
-
scrollToFn: Fa,
|
|
2848
|
-
...U(e)
|
|
2849
|
-
})));
|
|
2850
|
-
}
|
|
2851
|
-
//#endregion
|
|
2852
|
-
//#region node_modules/reka-ui/dist/Listbox/ListboxVirtualizer.js
|
|
2853
|
-
var Ha = /* @__PURE__ */ L({
|
|
2854
|
-
__name: "ListboxVirtualizer",
|
|
2855
|
-
props: {
|
|
2856
|
-
options: {
|
|
2857
|
-
type: Array,
|
|
2858
|
-
required: !0
|
|
2859
|
-
},
|
|
2860
|
-
overscan: {
|
|
2861
|
-
type: Number,
|
|
2862
|
-
required: !1
|
|
2863
|
-
},
|
|
2864
|
-
estimateSize: {
|
|
2865
|
-
type: [Number, Function],
|
|
2866
|
-
required: !1
|
|
2867
|
-
},
|
|
2868
|
-
textContent: {
|
|
2869
|
-
type: Function,
|
|
2870
|
-
required: !1
|
|
2871
|
-
}
|
|
2872
|
-
},
|
|
2873
|
-
setup(e) {
|
|
2874
|
-
let t = e, r = Wt(), i = la(), a = Nr(), { getItems: o } = ea();
|
|
2875
|
-
i.isVirtual.value = !0;
|
|
2876
|
-
let s = D(() => {
|
|
2877
|
-
let e = a.value;
|
|
2878
|
-
if (e) {
|
|
2879
|
-
let t = window.getComputedStyle(e);
|
|
2880
|
-
return {
|
|
2881
|
-
start: Number.parseFloat(t.paddingBlockStart || t.paddingTop),
|
|
2882
|
-
end: Number.parseFloat(t.paddingBlockEnd || t.paddingBottom)
|
|
2883
|
-
};
|
|
2884
|
-
} else return {
|
|
2885
|
-
start: 0,
|
|
2886
|
-
end: 0
|
|
2887
|
-
};
|
|
2888
|
-
}), c = Va({
|
|
2889
|
-
get scrollPaddingStart() {
|
|
2890
|
-
return s.value.start;
|
|
2891
|
-
},
|
|
2892
|
-
get scrollPaddingEnd() {
|
|
2893
|
-
return s.value.end;
|
|
2894
|
-
},
|
|
2895
|
-
get count() {
|
|
2896
|
-
return t.options.length;
|
|
2897
|
-
},
|
|
2898
|
-
get horizontal() {
|
|
2899
|
-
return i.orientation.value === "horizontal";
|
|
2900
|
-
},
|
|
2901
|
-
estimateSize(e) {
|
|
2902
|
-
return typeof t.estimateSize == "function" ? t.estimateSize(e) : t.estimateSize ?? 28;
|
|
2903
|
-
},
|
|
2904
|
-
getScrollElement() {
|
|
2905
|
-
return a.value;
|
|
2906
|
-
},
|
|
2907
|
-
overscan: t.overscan ?? 12
|
|
2908
|
-
}), l = D(() => c.value.getVirtualItems().map((e) => {
|
|
2909
|
-
let n = r.default({
|
|
2910
|
-
option: t.options[e.index],
|
|
2911
|
-
virtualizer: c.value,
|
|
2912
|
-
virtualItem: e
|
|
2913
|
-
})[0];
|
|
2914
|
-
return {
|
|
2915
|
-
item: e,
|
|
2916
|
-
is: lt(n.type === T && Array.isArray(n.children) ? n.children.find((e) => typeof e.type != "symbol") : n, {
|
|
2917
|
-
key: `${e.key}`,
|
|
2918
|
-
"data-index": e.index,
|
|
2919
|
-
"aria-setsize": t.options.length,
|
|
2920
|
-
"aria-posinset": e.index + 1,
|
|
2921
|
-
style: {
|
|
2922
|
-
position: "absolute",
|
|
2923
|
-
top: 0,
|
|
2924
|
-
left: 0,
|
|
2925
|
-
transform: `translateY(${e.start}px)`,
|
|
2926
|
-
overflowAnchor: "none"
|
|
2927
|
-
}
|
|
2928
|
-
})
|
|
2929
|
-
};
|
|
2930
|
-
}));
|
|
2931
|
-
i.virtualFocusHook.on(({ event: e, scroll: n }) => {
|
|
2932
|
-
let r = t.options.findIndex((e) => Array.isArray(i.modelValue.value) ? Q(e, i.modelValue.value[0], i.by) : Q(e, i.modelValue.value, i.by));
|
|
2933
|
-
r === -1 ? n ? i.highlightFirstItem() : requestAnimationFrame(() => {
|
|
2934
|
-
let e = o().find((e) => e.ref.dataset.disabled !== "")?.ref;
|
|
2935
|
-
e && i.changeHighlight(e, !1, !1);
|
|
2936
|
-
}) : (e?.preventDefault(), c.value.scrollToIndex(r, { align: "start" }), requestAnimationFrame(() => {
|
|
2937
|
-
let t = ia(a.value);
|
|
2938
|
-
t && (i.changeHighlight(t, n, n ? void 0 : !1), e && t?.focus());
|
|
2939
|
-
}));
|
|
2940
|
-
}), i.virtualHighlightHook.on((e) => {
|
|
2941
|
-
let n = t.options.findIndex((t) => Q(t, e, i.by));
|
|
2942
|
-
c.value.scrollToIndex(n, { align: "start" }), requestAnimationFrame(() => {
|
|
2943
|
-
let e = ia(a.value);
|
|
2944
|
-
e && i.changeHighlight(e);
|
|
2945
|
-
});
|
|
2946
|
-
});
|
|
2947
|
-
let u = p("", 1e3), d = D(() => {
|
|
2948
|
-
let e = (e) => t.textContent ? t.textContent(e) : e?.toString().toLowerCase();
|
|
2949
|
-
return t.options.map((t, n) => ({
|
|
2950
|
-
index: n,
|
|
2951
|
-
textContent: e(t)
|
|
2952
|
-
}));
|
|
2953
|
-
});
|
|
2954
|
-
function f(e, n) {
|
|
2955
|
-
if (!i.firstValue?.value || !i.multiple.value || !Array.isArray(i.modelValue.value)) return;
|
|
2956
|
-
let r = o().filter((e) => e.ref.dataset.disabled !== "").find((e) => e.ref === i.highlightedElement.value)?.value;
|
|
2957
|
-
if (!r) return;
|
|
2958
|
-
let a = null;
|
|
2959
|
-
switch (n) {
|
|
2960
|
-
case "prev":
|
|
2961
|
-
case "next":
|
|
2962
|
-
a = Rr(t.options, i.firstValue.value, r);
|
|
2963
|
-
break;
|
|
2964
|
-
case "first":
|
|
2965
|
-
a = Rr(t.options, i.firstValue.value, t.options?.[0]);
|
|
2966
|
-
break;
|
|
2967
|
-
case "last":
|
|
2968
|
-
a = Rr(t.options, i.firstValue.value, t.options.at(-1));
|
|
2969
|
-
break;
|
|
2970
|
-
}
|
|
2971
|
-
i.modelValue.value = a;
|
|
2972
|
-
}
|
|
2973
|
-
return i.virtualKeydownHook.on((e) => {
|
|
2974
|
-
let n = e.altKey || e.ctrlKey || e.metaKey;
|
|
2975
|
-
if (e.key === "Tab" && !n) return;
|
|
2976
|
-
let r = oa[e.key];
|
|
2977
|
-
if (n && e.key === "a" && i.multiple.value ? (e.preventDefault(), i.modelValue.value = [...t.options], r = "last") : e.shiftKey && r && f(e, r), ["first", "last"].includes(r)) {
|
|
2978
|
-
e.preventDefault();
|
|
2979
|
-
let n = r === "first" ? 0 : t.options.length - 1;
|
|
2980
|
-
c.value.scrollToIndex(n), requestAnimationFrame(() => {
|
|
2981
|
-
let e = o(), t = r === "first" ? e[0] : e.at(-1);
|
|
2982
|
-
t && i.changeHighlight(t.ref);
|
|
2983
|
-
});
|
|
2984
|
-
} else if (!r && !n) {
|
|
2985
|
-
u.value += e.key;
|
|
2986
|
-
let t = Number(J()?.getAttribute("data-index")), n = d.value[t].textContent, r = Ei(d.value.map((e) => e.textContent ?? ""), u.value, n), o = d.value.find((e) => e.textContent === r);
|
|
2987
|
-
o && (c.value.scrollToIndex(o.index, { align: "start" }), requestAnimationFrame(() => {
|
|
2988
|
-
let e = a.value.querySelector(`[data-index="${o.index}"]`);
|
|
2989
|
-
e instanceof HTMLElement && i.changeHighlight(e);
|
|
2990
|
-
}));
|
|
2991
|
-
}
|
|
2992
|
-
}), (e, t) => (M(), P("div", {
|
|
2993
|
-
"data-reka-virtualizer": "",
|
|
2994
|
-
style: jt({
|
|
2995
|
-
position: "relative",
|
|
2996
|
-
width: "100%",
|
|
2997
|
-
height: `${U(c).getTotalSize()}px`
|
|
2998
|
-
})
|
|
2999
|
-
}, [(M(!0), P(T, null, mt(l.value, ({ is: e, item: t }) => (M(), H(n(e), { key: t.index }))), 128))], 4));
|
|
3000
|
-
}
|
|
3001
|
-
}), [Ua, Wa] = /*#__PURE__*/ zr("PopperRoot"), Ga = /* @__PURE__ */ L({
|
|
3002
|
-
inheritAttrs: !1,
|
|
3003
|
-
__name: "PopperRoot",
|
|
3004
|
-
setup(e) {
|
|
3005
|
-
let t = V();
|
|
3006
|
-
return Wa({
|
|
3007
|
-
anchor: t,
|
|
3008
|
-
onAnchorChange: (e) => t.value = e
|
|
3009
|
-
}), (e, t) => N(e.$slots, "default");
|
|
3010
|
-
}
|
|
3011
|
-
});
|
|
3012
|
-
//#endregion
|
|
3013
|
-
//#region node_modules/reka-ui/dist/Popper/utils.js
|
|
3014
|
-
function Ka(e) {
|
|
3015
|
-
return e !== null;
|
|
3016
|
-
}
|
|
3017
|
-
function qa(e) {
|
|
3018
|
-
return {
|
|
3019
|
-
name: "transformOrigin",
|
|
3020
|
-
options: e,
|
|
3021
|
-
fn(t) {
|
|
3022
|
-
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] = Ja(n), u = {
|
|
3023
|
-
start: e.dir === "rtl" ? "100%" : "0%",
|
|
3024
|
-
center: "50%",
|
|
3025
|
-
end: e.dir === "rtl" ? "0%" : "100%"
|
|
3026
|
-
}[l], d = {
|
|
3027
|
-
start: "0%",
|
|
3028
|
-
center: "50%",
|
|
3029
|
-
end: "100%"
|
|
3030
|
-
}[l], f = (i.arrow?.x ?? 0) + o / 2, p = (i.arrow?.y ?? 0) + s / 2, m = "", h = "";
|
|
3031
|
-
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: {
|
|
3032
|
-
x: m,
|
|
3033
|
-
y: h
|
|
3034
|
-
} };
|
|
3035
|
-
}
|
|
3036
|
-
};
|
|
3037
|
-
}
|
|
3038
|
-
function Ja(e) {
|
|
3039
|
-
let [t, n = "center"] = e.split("-");
|
|
3040
|
-
return [t, n];
|
|
3041
|
-
}
|
|
3042
|
-
//#endregion
|
|
3043
|
-
//#region node_modules/reka-ui/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
3044
|
-
function Ya(e) {
|
|
3045
|
-
return typeof e == "object" && !!e && "$el" in e;
|
|
3046
|
-
}
|
|
3047
|
-
function Xa(e) {
|
|
3048
|
-
if (Ya(e)) {
|
|
3049
|
-
let t = e.$el;
|
|
3050
|
-
return lr(t) && _r(t) === "#comment" ? null : t;
|
|
3051
|
-
}
|
|
3052
|
-
return e;
|
|
3053
|
-
}
|
|
3054
|
-
function Za(e) {
|
|
3055
|
-
return typeof e == "function" ? e() : U(e);
|
|
3056
|
-
}
|
|
3057
|
-
function Qa(e) {
|
|
3058
|
-
return {
|
|
3059
|
-
name: "arrow",
|
|
3060
|
-
options: e,
|
|
3061
|
-
fn(t) {
|
|
3062
|
-
let n = Xa(Za(e.element));
|
|
3063
|
-
return n == null ? {} : gr({
|
|
3064
|
-
element: n,
|
|
3065
|
-
padding: e.padding
|
|
3066
|
-
}).fn(t);
|
|
3067
|
-
}
|
|
3068
|
-
};
|
|
3069
|
-
}
|
|
3070
|
-
function $a(e) {
|
|
3071
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3072
|
-
}
|
|
3073
|
-
function eo(e, t) {
|
|
3074
|
-
let n = $a(e);
|
|
3075
|
-
return Math.round(t * n) / n;
|
|
3076
|
-
}
|
|
3077
|
-
function to(e, t, n) {
|
|
3078
|
-
n === void 0 && (n = {});
|
|
3079
|
-
let r = n.whileElementsMounted, i = D(() => Za(n.open) ?? !0), a = D(() => Za(n.middleware)), o = D(() => Za(n.placement) ?? "bottom"), s = D(() => Za(n.strategy) ?? "absolute"), c = D(() => Za(n.transform) ?? !0), l = D(() => Xa(e.value)), u = D(() => Xa(t.value)), d = V(0), f = V(0), p = V(s.value), m = V(o.value), h = dt({}), g = V(!1), _ = D(() => {
|
|
3080
|
-
let e = {
|
|
3081
|
-
position: p.value,
|
|
3082
|
-
left: "0",
|
|
3083
|
-
top: "0"
|
|
3084
|
-
};
|
|
3085
|
-
if (!u.value) return e;
|
|
3086
|
-
let t = eo(u.value, d.value), n = eo(u.value, f.value);
|
|
3087
|
-
return c.value ? {
|
|
3088
|
-
...e,
|
|
3089
|
-
transform: "translate(" + t + "px, " + n + "px)",
|
|
3090
|
-
...$a(u.value) >= 1.5 && { willChange: "transform" }
|
|
3091
|
-
} : {
|
|
3092
|
-
position: p.value,
|
|
3093
|
-
left: t + "px",
|
|
3094
|
-
top: n + "px"
|
|
3095
|
-
};
|
|
3096
|
-
}), v;
|
|
3097
|
-
function y() {
|
|
3098
|
-
if (l.value == null || u.value == null) return;
|
|
3099
|
-
let e = i.value;
|
|
3100
|
-
mr(l.value, u.value, {
|
|
3101
|
-
middleware: a.value,
|
|
3102
|
-
placement: o.value,
|
|
3103
|
-
strategy: s.value
|
|
3104
|
-
}).then((t) => {
|
|
3105
|
-
d.value = t.x, f.value = t.y, p.value = t.strategy, m.value = t.placement, h.value = t.middlewareData, g.value = e !== !1;
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
function b() {
|
|
3109
|
-
typeof v == "function" && (v(), v = void 0);
|
|
3110
|
-
}
|
|
3111
|
-
function x() {
|
|
3112
|
-
if (b(), r === void 0) {
|
|
3113
|
-
y();
|
|
3114
|
-
return;
|
|
3115
|
-
}
|
|
3116
|
-
if (l.value != null && u.value != null) {
|
|
3117
|
-
v = r(l.value, u.value, y);
|
|
3118
|
-
return;
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
function S() {
|
|
3122
|
-
i.value || (g.value = !1);
|
|
3123
|
-
}
|
|
3124
|
-
return F([
|
|
3125
|
-
a,
|
|
3126
|
-
o,
|
|
3127
|
-
s,
|
|
3128
|
-
i
|
|
3129
|
-
], y, { flush: "sync" }), F([l, u], x, { flush: "sync" }), F(i, S, { flush: "sync" }), Ie() && se(b), {
|
|
3130
|
-
x: ht(d),
|
|
3131
|
-
y: ht(f),
|
|
3132
|
-
strategy: ht(p),
|
|
3133
|
-
placement: ht(m),
|
|
3134
|
-
middlewareData: ht(h),
|
|
3135
|
-
isPositioned: ht(g),
|
|
3136
|
-
floatingStyles: _,
|
|
3137
|
-
update: y
|
|
3138
|
-
};
|
|
3139
|
-
}
|
|
3140
|
-
//#endregion
|
|
3141
|
-
//#region node_modules/reka-ui/dist/Popper/PopperContent.js
|
|
3142
|
-
var no = ["dir"], ro = {
|
|
3143
|
-
side: "bottom",
|
|
3144
|
-
sideOffset: 0,
|
|
3145
|
-
sideFlip: !0,
|
|
3146
|
-
align: "center",
|
|
3147
|
-
alignOffset: 0,
|
|
3148
|
-
alignFlip: !0,
|
|
3149
|
-
arrowPadding: 0,
|
|
3150
|
-
hideShiftedArrow: !0,
|
|
3151
|
-
avoidCollisions: !0,
|
|
3152
|
-
collisionBoundary: () => [],
|
|
3153
|
-
collisionPadding: 0,
|
|
3154
|
-
sticky: "partial",
|
|
3155
|
-
hideWhenDetached: !1,
|
|
3156
|
-
positionStrategy: "fixed",
|
|
3157
|
-
updatePositionStrategy: "optimized",
|
|
3158
|
-
prioritizePosition: !1
|
|
3159
|
-
}, [io, ao] = /*#__PURE__*/ zr("PopperContent"), oo = /* @__PURE__ */ L({
|
|
3160
|
-
inheritAttrs: !1,
|
|
3161
|
-
__name: "PopperContent",
|
|
3162
|
-
props: /* @__PURE__ */ v({
|
|
3163
|
-
memoDependencies: {
|
|
3164
|
-
type: Array,
|
|
3165
|
-
required: !1
|
|
3166
|
-
},
|
|
3167
|
-
side: {
|
|
3168
|
-
type: null,
|
|
3169
|
-
required: !1
|
|
3170
|
-
},
|
|
3171
|
-
sideOffset: {
|
|
3172
|
-
type: Number,
|
|
3173
|
-
required: !1
|
|
3174
|
-
},
|
|
3175
|
-
sideFlip: {
|
|
3176
|
-
type: Boolean,
|
|
3177
|
-
required: !1
|
|
3178
|
-
},
|
|
3179
|
-
align: {
|
|
3180
|
-
type: null,
|
|
3181
|
-
required: !1
|
|
3182
|
-
},
|
|
3183
|
-
alignOffset: {
|
|
3184
|
-
type: Number,
|
|
3185
|
-
required: !1
|
|
3186
|
-
},
|
|
3187
|
-
alignFlip: {
|
|
3188
|
-
type: Boolean,
|
|
3189
|
-
required: !1
|
|
3190
|
-
},
|
|
3191
|
-
avoidCollisions: {
|
|
3192
|
-
type: Boolean,
|
|
3193
|
-
required: !1
|
|
3194
|
-
},
|
|
3195
|
-
collisionBoundary: {
|
|
3196
|
-
type: null,
|
|
3197
|
-
required: !1
|
|
3198
|
-
},
|
|
3199
|
-
collisionPadding: {
|
|
3200
|
-
type: [Number, Object],
|
|
3201
|
-
required: !1
|
|
3202
|
-
},
|
|
3203
|
-
arrowPadding: {
|
|
3204
|
-
type: Number,
|
|
3205
|
-
required: !1
|
|
3206
|
-
},
|
|
3207
|
-
hideShiftedArrow: {
|
|
3208
|
-
type: Boolean,
|
|
3209
|
-
required: !1
|
|
3210
|
-
},
|
|
3211
|
-
sticky: {
|
|
3212
|
-
type: String,
|
|
3213
|
-
required: !1
|
|
3214
|
-
},
|
|
3215
|
-
hideWhenDetached: {
|
|
3216
|
-
type: Boolean,
|
|
3217
|
-
required: !1
|
|
3218
|
-
},
|
|
3219
|
-
positionStrategy: {
|
|
3220
|
-
type: String,
|
|
3221
|
-
required: !1
|
|
3222
|
-
},
|
|
3223
|
-
updatePositionStrategy: {
|
|
3224
|
-
type: String,
|
|
3225
|
-
required: !1
|
|
3226
|
-
},
|
|
3227
|
-
disableUpdateOnLayoutShift: {
|
|
3228
|
-
type: Boolean,
|
|
3229
|
-
required: !1
|
|
3230
|
-
},
|
|
3231
|
-
prioritizePosition: {
|
|
3232
|
-
type: Boolean,
|
|
3233
|
-
required: !1
|
|
3234
|
-
},
|
|
3235
|
-
reference: {
|
|
3236
|
-
type: null,
|
|
3237
|
-
required: !1
|
|
3238
|
-
},
|
|
3239
|
-
dir: {
|
|
3240
|
-
type: String,
|
|
3241
|
-
required: !1
|
|
3242
|
-
},
|
|
3243
|
-
asChild: {
|
|
3244
|
-
type: Boolean,
|
|
3245
|
-
required: !1
|
|
3246
|
-
},
|
|
3247
|
-
as: {
|
|
3248
|
-
type: null,
|
|
3249
|
-
required: !1
|
|
3250
|
-
}
|
|
3251
|
-
}, { ...ro }),
|
|
3252
|
-
emits: ["placed"],
|
|
3253
|
-
setup(e, { emit: t }) {
|
|
3254
|
-
let n = e, r = t, i = Ua(), { forwardRef: a, currentElement: o } = Y(), s = ei(D(() => n.dir)), c = V(), l = V(), { width: u, height: d } = Si(l), f = D(() => n.side + (n.align === "center" ? "" : `-${n.align}`)), p = D(() => typeof n.collisionPadding == "number" ? n.collisionPadding : {
|
|
3255
|
-
top: 0,
|
|
3256
|
-
right: 0,
|
|
3257
|
-
bottom: 0,
|
|
3258
|
-
left: 0,
|
|
3259
|
-
...n.collisionPadding
|
|
3260
|
-
}), m = D(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), h = D(() => ({
|
|
3261
|
-
padding: p.value,
|
|
3262
|
-
boundary: m.value.filter(Ka),
|
|
3263
|
-
altBoundary: m.value.length > 0
|
|
3264
|
-
})), g = D(() => ({
|
|
3265
|
-
mainAxis: n.sideFlip,
|
|
3266
|
-
crossAxis: n.alignFlip
|
|
3267
|
-
})), _ = D(() => [
|
|
3268
|
-
hr({
|
|
3269
|
-
mainAxis: n.sideOffset + d.value,
|
|
3270
|
-
alignmentAxis: n.alignOffset
|
|
3271
|
-
}),
|
|
3272
|
-
n.prioritizePosition && n.avoidCollisions && ur({
|
|
3273
|
-
...h.value,
|
|
3274
|
-
...g.value
|
|
3275
|
-
}),
|
|
3276
|
-
n.avoidCollisions && cr({
|
|
3277
|
-
mainAxis: !0,
|
|
3278
|
-
crossAxis: !!n.prioritizePosition,
|
|
3279
|
-
limiter: n.sticky === "partial" ? pr() : void 0,
|
|
3280
|
-
...h.value
|
|
3281
|
-
}),
|
|
3282
|
-
!n.prioritizePosition && n.avoidCollisions && ur({
|
|
3283
|
-
...h.value,
|
|
3284
|
-
...g.value
|
|
3285
|
-
}),
|
|
3286
|
-
dr({
|
|
3287
|
-
...h.value,
|
|
3288
|
-
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
3289
|
-
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
3290
|
-
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`);
|
|
3291
|
-
}
|
|
3292
|
-
}),
|
|
3293
|
-
l.value && Qa({
|
|
3294
|
-
element: l.value,
|
|
3295
|
-
padding: n.arrowPadding
|
|
3296
|
-
}),
|
|
3297
|
-
qa({
|
|
3298
|
-
arrowWidth: u.value,
|
|
3299
|
-
arrowHeight: d.value,
|
|
3300
|
-
dir: s.value
|
|
3301
|
-
}),
|
|
3302
|
-
n.hideWhenDetached && sr({
|
|
3303
|
-
strategy: "referenceHidden",
|
|
3304
|
-
...h.value
|
|
3305
|
-
})
|
|
3306
|
-
]), { floatingStyles: v, placement: y, isPositioned: b, middlewareData: x, update: S } = to(D(() => n.reference ?? i.anchor.value), c, {
|
|
3307
|
-
strategy: n.positionStrategy,
|
|
3308
|
-
placement: f,
|
|
3309
|
-
whileElementsMounted: (...e) => fr(...e, {
|
|
3310
|
-
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
3311
|
-
animationFrame: n.updatePositionStrategy === "always"
|
|
3312
|
-
}),
|
|
3313
|
-
middleware: _
|
|
3314
|
-
}), ee = D(() => Ja(y.value)[0]), C = D(() => Ja(y.value)[1]);
|
|
3315
|
-
tr(() => {
|
|
3316
|
-
b.value && r("placed");
|
|
3317
|
-
});
|
|
3318
|
-
let te = D(() => {
|
|
3319
|
-
let e = x.value.arrow?.centerOffset !== 0;
|
|
3320
|
-
return n.hideShiftedArrow && e;
|
|
3321
|
-
}), w = V("");
|
|
3322
|
-
return K(() => {
|
|
3323
|
-
o.value && (w.value = window.getComputedStyle(o.value).zIndex);
|
|
3324
|
-
}), ao({
|
|
3325
|
-
placedSide: ee,
|
|
3326
|
-
onArrowChange: (e) => l.value = e,
|
|
3327
|
-
arrowX: D(() => x.value.arrow?.x ?? 0),
|
|
3328
|
-
arrowY: D(() => x.value.arrow?.y ?? 0),
|
|
3329
|
-
shouldHideArrow: te
|
|
3330
|
-
}), (e, t) => (M(), P("div", {
|
|
3331
|
-
ref_key: "floatingRef",
|
|
3332
|
-
ref: c,
|
|
3333
|
-
"data-reka-popper-content-wrapper": "",
|
|
3334
|
-
dir: U(s),
|
|
3335
|
-
style: jt({
|
|
3336
|
-
...U(v),
|
|
3337
|
-
transform: U(b) ? U(v).transform : "translate(0, -200%)",
|
|
3338
|
-
minWidth: "max-content",
|
|
3339
|
-
zIndex: w.value,
|
|
3340
|
-
"--reka-popper-transform-origin": [U(x).transformOrigin?.x, U(x).transformOrigin?.y].join(" "),
|
|
3341
|
-
...U(x).hide?.referenceHidden && {
|
|
3342
|
-
visibility: "hidden",
|
|
3343
|
-
pointerEvents: "none"
|
|
3344
|
-
}
|
|
3345
|
-
})
|
|
3346
|
-
}, [n.memoDependencies ? Ze([
|
|
3347
|
-
n.asChild,
|
|
3348
|
-
n.as,
|
|
3349
|
-
ee.value,
|
|
3350
|
-
C.value,
|
|
3351
|
-
U(b),
|
|
3352
|
-
...Object.values(e.$attrs),
|
|
3353
|
-
...n.memoDependencies
|
|
3354
|
-
], () => (M(), H(U(X), R({
|
|
3355
|
-
key: 0,
|
|
3356
|
-
ref: U(a)
|
|
3357
|
-
}, e.$attrs, {
|
|
3358
|
-
"as-child": n.asChild,
|
|
3359
|
-
as: n.as,
|
|
3360
|
-
"data-side": ee.value,
|
|
3361
|
-
"data-align": C.value,
|
|
3362
|
-
style: { animation: U(b) ? void 0 : "none" }
|
|
3363
|
-
}), {
|
|
3364
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
3365
|
-
_: 3
|
|
3366
|
-
}, 16, [
|
|
3367
|
-
"as-child",
|
|
3368
|
-
"as",
|
|
3369
|
-
"data-side",
|
|
3370
|
-
"data-align",
|
|
3371
|
-
"style"
|
|
3372
|
-
])), t, 0) : (M(), H(U(X), R({
|
|
3373
|
-
key: 1,
|
|
3374
|
-
ref: U(a)
|
|
3375
|
-
}, e.$attrs, {
|
|
3376
|
-
"as-child": n.asChild,
|
|
3377
|
-
as: n.as,
|
|
3378
|
-
"data-side": ee.value,
|
|
3379
|
-
"data-align": C.value,
|
|
3380
|
-
dir: U(s),
|
|
3381
|
-
style: { animation: U(b) ? void 0 : "none" }
|
|
3382
|
-
}), {
|
|
3383
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
3384
|
-
_: 3
|
|
3385
|
-
}, 16, [
|
|
3386
|
-
"as-child",
|
|
3387
|
-
"as",
|
|
3388
|
-
"data-side",
|
|
3389
|
-
"data-align",
|
|
3390
|
-
"dir",
|
|
3391
|
-
"style"
|
|
3392
|
-
]))], 12, no));
|
|
3393
|
-
}
|
|
3394
|
-
}), [$, so] = /*#__PURE__*/ zr("ComboboxRoot"), co = /* @__PURE__ */ L({
|
|
3395
|
-
__name: "ComboboxRoot",
|
|
3396
|
-
props: {
|
|
3397
|
-
open: {
|
|
3398
|
-
type: Boolean,
|
|
3399
|
-
required: !1,
|
|
3400
|
-
default: void 0
|
|
3401
|
-
},
|
|
3402
|
-
defaultOpen: {
|
|
3403
|
-
type: Boolean,
|
|
3404
|
-
required: !1
|
|
3405
|
-
},
|
|
3406
|
-
resetSearchTermOnBlur: {
|
|
3407
|
-
type: Boolean,
|
|
3408
|
-
required: !1,
|
|
3409
|
-
default: !0
|
|
3410
|
-
},
|
|
3411
|
-
resetSearchTermOnSelect: {
|
|
3412
|
-
type: Boolean,
|
|
3413
|
-
required: !1,
|
|
3414
|
-
default: !0
|
|
3415
|
-
},
|
|
3416
|
-
openOnFocus: {
|
|
3417
|
-
type: Boolean,
|
|
3418
|
-
required: !1,
|
|
3419
|
-
default: !1
|
|
3420
|
-
},
|
|
3421
|
-
openOnClick: {
|
|
3422
|
-
type: Boolean,
|
|
3423
|
-
required: !1,
|
|
3424
|
-
default: !1
|
|
3425
|
-
},
|
|
3426
|
-
ignoreFilter: {
|
|
3427
|
-
type: Boolean,
|
|
3428
|
-
required: !1
|
|
3429
|
-
},
|
|
3430
|
-
resetModelValueOnClear: {
|
|
3431
|
-
type: Boolean,
|
|
3432
|
-
required: !1,
|
|
3433
|
-
default: !1
|
|
3434
|
-
},
|
|
3435
|
-
modelValue: {
|
|
3436
|
-
type: null,
|
|
3437
|
-
required: !1
|
|
3438
|
-
},
|
|
3439
|
-
defaultValue: {
|
|
3440
|
-
type: null,
|
|
3441
|
-
required: !1
|
|
3442
|
-
},
|
|
3443
|
-
multiple: {
|
|
3444
|
-
type: Boolean,
|
|
3445
|
-
required: !1
|
|
3446
|
-
},
|
|
3447
|
-
dir: {
|
|
3448
|
-
type: String,
|
|
3449
|
-
required: !1
|
|
3450
|
-
},
|
|
3451
|
-
disabled: {
|
|
3452
|
-
type: Boolean,
|
|
3453
|
-
required: !1
|
|
3454
|
-
},
|
|
3455
|
-
highlightOnHover: {
|
|
3456
|
-
type: Boolean,
|
|
3457
|
-
required: !1,
|
|
3458
|
-
default: !0
|
|
3459
|
-
},
|
|
3460
|
-
by: {
|
|
3461
|
-
type: [String, Function],
|
|
3462
|
-
required: !1
|
|
3463
|
-
},
|
|
3464
|
-
asChild: {
|
|
3465
|
-
type: Boolean,
|
|
3466
|
-
required: !1
|
|
3467
|
-
},
|
|
3468
|
-
as: {
|
|
3469
|
-
type: null,
|
|
3470
|
-
required: !1
|
|
3471
|
-
},
|
|
3472
|
-
name: {
|
|
3473
|
-
type: String,
|
|
3474
|
-
required: !1
|
|
3475
|
-
},
|
|
3476
|
-
required: {
|
|
3477
|
-
type: Boolean,
|
|
3478
|
-
required: !1
|
|
3479
|
-
}
|
|
3480
|
-
},
|
|
3481
|
-
emits: [
|
|
3482
|
-
"update:modelValue",
|
|
3483
|
-
"highlight",
|
|
3484
|
-
"update:open"
|
|
3485
|
-
],
|
|
3486
|
-
setup(e, { expose: t, emit: n }) {
|
|
3487
|
-
let r = e, i = n, { primitiveElement: a, currentElement: s } = Mi(), { multiple: c, disabled: l, ignoreFilter: u, resetSearchTermOnSelect: d, openOnFocus: f, openOnClick: p, dir: m, resetModelValueOnClear: h, highlightOnHover: g } = Rt(r), _ = ei(m), v = Pr(r, "modelValue", i, {
|
|
3488
|
-
defaultValue: r.defaultValue ?? (c.value ? [] : void 0),
|
|
3489
|
-
passive: r.modelValue === void 0,
|
|
3490
|
-
deep: !0
|
|
3491
|
-
}), y = Pr(r, "open", i, {
|
|
3492
|
-
defaultValue: r.defaultOpen,
|
|
3493
|
-
passive: r.open === void 0
|
|
3494
|
-
});
|
|
3495
|
-
async function b(e) {
|
|
3496
|
-
y.value = e, E.value = "", e ? (await o(), a.value?.highlightSelected(), S.value = !0, C.value?.focus()) : (S.value = !1, setTimeout(() => {
|
|
3497
|
-
!e && r.resetSearchTermOnBlur && x.trigger();
|
|
3498
|
-
}, 1));
|
|
3499
|
-
}
|
|
3500
|
-
let x = wn(), S = V(!1), ee = V(!1), C = V(), te = V(), w = D(() => a.value?.highlightedElement ?? void 0), ne = V(/* @__PURE__ */ new Map()), T = V(/* @__PURE__ */ new Map()), { contains: re } = ni({ sensitivity: "base" }), E = V(""), ie = D((e) => {
|
|
3501
|
-
if (!E.value || r.ignoreFilter || ee.value) return {
|
|
3502
|
-
count: ne.value.size,
|
|
3503
|
-
items: e?.items ?? /* @__PURE__ */ new Map(),
|
|
3504
|
-
groups: e?.groups ?? new Set(T.value.keys())
|
|
3505
|
-
};
|
|
3506
|
-
let t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
3507
|
-
for (let [e, r] of ne.value) {
|
|
3508
|
-
let i = re(r, E.value);
|
|
3509
|
-
n.set(e, +!!i), i && t++;
|
|
3510
|
-
}
|
|
3511
|
-
for (let [e, t] of T.value) for (let r of t) if (n.get(r) > 0) {
|
|
3512
|
-
i.add(e);
|
|
3513
|
-
break;
|
|
3514
|
-
}
|
|
3515
|
-
return {
|
|
3516
|
-
count: t,
|
|
3517
|
-
items: n,
|
|
3518
|
-
groups: i
|
|
3519
|
-
};
|
|
3520
|
-
}), ae = Ut();
|
|
3521
|
-
return A(() => {
|
|
3522
|
-
ae?.exposed && (ae.exposed.highlightItem = a.value?.highlightItem, ae.exposed.highlightFirstItem = a.value?.highlightFirstItem, ae.exposed.highlightSelected = a.value?.highlightSelected);
|
|
3523
|
-
}), t({
|
|
3524
|
-
filtered: ie,
|
|
3525
|
-
highlightedElement: w,
|
|
3526
|
-
highlightItem: a.value?.highlightItem,
|
|
3527
|
-
highlightFirstItem: a.value?.highlightFirstItem,
|
|
3528
|
-
highlightSelected: a.value?.highlightSelected
|
|
3529
|
-
}), so({
|
|
3530
|
-
modelValue: v,
|
|
3531
|
-
multiple: c,
|
|
3532
|
-
disabled: l,
|
|
3533
|
-
open: y,
|
|
3534
|
-
onOpenChange: b,
|
|
3535
|
-
contentId: "",
|
|
3536
|
-
isUserInputted: S,
|
|
3537
|
-
isVirtual: ee,
|
|
3538
|
-
inputElement: C,
|
|
3539
|
-
highlightedElement: w,
|
|
3540
|
-
onInputElementChange: (e) => C.value = e,
|
|
3541
|
-
triggerElement: te,
|
|
3542
|
-
onTriggerElementChange: (e) => te.value = e,
|
|
3543
|
-
parentElement: s,
|
|
3544
|
-
resetSearchTermOnSelect: d,
|
|
3545
|
-
onResetSearchTerm: x.on,
|
|
3546
|
-
allItems: ne,
|
|
3547
|
-
allGroups: T,
|
|
3548
|
-
filterSearch: E,
|
|
3549
|
-
filterState: ie,
|
|
3550
|
-
ignoreFilter: u,
|
|
3551
|
-
openOnFocus: f,
|
|
3552
|
-
openOnClick: p,
|
|
3553
|
-
resetModelValueOnClear: h
|
|
3554
|
-
}), (e, t) => (M(), H(U(Ga), null, {
|
|
3555
|
-
default: j(() => [B(U(da), R({
|
|
3556
|
-
ref_key: "primitiveElement",
|
|
3557
|
-
ref: a
|
|
3558
|
-
}, e.$attrs, {
|
|
3559
|
-
modelValue: U(v),
|
|
3560
|
-
"onUpdate:modelValue": t[0] ||= (e) => ar(v) ? v.value = e : null,
|
|
3561
|
-
style: { pointerEvents: U(y) ? "auto" : void 0 },
|
|
3562
|
-
as: e.as,
|
|
3563
|
-
"as-child": e.asChild,
|
|
3564
|
-
dir: U(_),
|
|
3565
|
-
multiple: U(c),
|
|
3566
|
-
name: e.name,
|
|
3567
|
-
required: e.required,
|
|
3568
|
-
disabled: U(l),
|
|
3569
|
-
"highlight-on-hover": U(g),
|
|
3570
|
-
by: r.by,
|
|
3571
|
-
onHighlight: t[1] ||= (e) => i("highlight", e)
|
|
3572
|
-
}), {
|
|
3573
|
-
default: j(() => [N(e.$slots, "default", {
|
|
3574
|
-
open: U(y),
|
|
3575
|
-
modelValue: U(v)
|
|
3576
|
-
})]),
|
|
3577
|
-
_: 3
|
|
3578
|
-
}, 16, [
|
|
3579
|
-
"modelValue",
|
|
3580
|
-
"style",
|
|
3581
|
-
"as",
|
|
3582
|
-
"as-child",
|
|
3583
|
-
"dir",
|
|
3584
|
-
"multiple",
|
|
3585
|
-
"name",
|
|
3586
|
-
"required",
|
|
3587
|
-
"disabled",
|
|
3588
|
-
"highlight-on-hover",
|
|
3589
|
-
"by"
|
|
3590
|
-
])]),
|
|
3591
|
-
_: 3
|
|
3592
|
-
}));
|
|
3593
|
-
}
|
|
3594
|
-
}), [lo, uo] = /*#__PURE__*/ zr("ComboboxContent"), fo = /* @__PURE__ */ L({
|
|
3595
|
-
__name: "ComboboxContentImpl",
|
|
3596
|
-
props: {
|
|
3597
|
-
position: {
|
|
3598
|
-
type: String,
|
|
3599
|
-
required: !1,
|
|
3600
|
-
default: "inline"
|
|
3601
|
-
},
|
|
3602
|
-
bodyLock: {
|
|
3603
|
-
type: Boolean,
|
|
3604
|
-
required: !1
|
|
3605
|
-
},
|
|
3606
|
-
hideWhenEmpty: {
|
|
3607
|
-
type: Boolean,
|
|
3608
|
-
required: !1
|
|
3609
|
-
},
|
|
3610
|
-
memoDependencies: {
|
|
3611
|
-
type: Array,
|
|
3612
|
-
required: !1
|
|
3613
|
-
},
|
|
3614
|
-
side: {
|
|
3615
|
-
type: null,
|
|
3616
|
-
required: !1
|
|
3617
|
-
},
|
|
3618
|
-
sideOffset: {
|
|
3619
|
-
type: Number,
|
|
3620
|
-
required: !1
|
|
3621
|
-
},
|
|
3622
|
-
sideFlip: {
|
|
3623
|
-
type: Boolean,
|
|
3624
|
-
required: !1
|
|
3625
|
-
},
|
|
3626
|
-
align: {
|
|
3627
|
-
type: null,
|
|
3628
|
-
required: !1
|
|
3629
|
-
},
|
|
3630
|
-
alignOffset: {
|
|
3631
|
-
type: Number,
|
|
3632
|
-
required: !1
|
|
3633
|
-
},
|
|
3634
|
-
alignFlip: {
|
|
3635
|
-
type: Boolean,
|
|
3636
|
-
required: !1
|
|
3637
|
-
},
|
|
3638
|
-
avoidCollisions: {
|
|
3639
|
-
type: Boolean,
|
|
3640
|
-
required: !1
|
|
3641
|
-
},
|
|
3642
|
-
collisionBoundary: {
|
|
3643
|
-
type: null,
|
|
3644
|
-
required: !1
|
|
3645
|
-
},
|
|
3646
|
-
collisionPadding: {
|
|
3647
|
-
type: [Number, Object],
|
|
3648
|
-
required: !1
|
|
3649
|
-
},
|
|
3650
|
-
arrowPadding: {
|
|
3651
|
-
type: Number,
|
|
3652
|
-
required: !1
|
|
3653
|
-
},
|
|
3654
|
-
hideShiftedArrow: {
|
|
3655
|
-
type: Boolean,
|
|
3656
|
-
required: !1
|
|
3657
|
-
},
|
|
3658
|
-
sticky: {
|
|
3659
|
-
type: String,
|
|
3660
|
-
required: !1
|
|
3661
|
-
},
|
|
3662
|
-
hideWhenDetached: {
|
|
3663
|
-
type: Boolean,
|
|
3664
|
-
required: !1
|
|
3665
|
-
},
|
|
3666
|
-
positionStrategy: {
|
|
3667
|
-
type: String,
|
|
3668
|
-
required: !1
|
|
3669
|
-
},
|
|
3670
|
-
updatePositionStrategy: {
|
|
3671
|
-
type: String,
|
|
3672
|
-
required: !1
|
|
3673
|
-
},
|
|
3674
|
-
disableUpdateOnLayoutShift: {
|
|
3675
|
-
type: Boolean,
|
|
3676
|
-
required: !1
|
|
3677
|
-
},
|
|
3678
|
-
prioritizePosition: {
|
|
3679
|
-
type: Boolean,
|
|
3680
|
-
required: !1
|
|
3681
|
-
},
|
|
3682
|
-
reference: {
|
|
3683
|
-
type: null,
|
|
3684
|
-
required: !1
|
|
3685
|
-
},
|
|
3686
|
-
dir: {
|
|
3687
|
-
type: String,
|
|
3688
|
-
required: !1
|
|
3689
|
-
},
|
|
3690
|
-
asChild: {
|
|
3691
|
-
type: Boolean,
|
|
3692
|
-
required: !1
|
|
3693
|
-
},
|
|
3694
|
-
as: {
|
|
3695
|
-
type: null,
|
|
3696
|
-
required: !1
|
|
3697
|
-
},
|
|
3698
|
-
disableOutsidePointerEvents: {
|
|
3699
|
-
type: Boolean,
|
|
3700
|
-
required: !1
|
|
3701
|
-
}
|
|
3702
|
-
},
|
|
3703
|
-
emits: [
|
|
3704
|
-
"escapeKeyDown",
|
|
3705
|
-
"pointerDownOutside",
|
|
3706
|
-
"focusOutside",
|
|
3707
|
-
"interactOutside"
|
|
3708
|
-
],
|
|
3709
|
-
setup(e, { emit: t }) {
|
|
3710
|
-
let r = e, i = t, { position: a } = Rt(r), o = $(), s = D(() => o.ignoreFilter.value ? o.allItems.value.size === 0 : o.filterState.value.count === 0), { forwardRef: c, currentElement: l } = Y();
|
|
3711
|
-
Xr(r.bodyLock), ii(), vi(o.parentElement);
|
|
3712
|
-
let u = si(D(() => r.position === "popper" ? r : {}).value), d = {
|
|
3713
|
-
boxSizing: "border-box",
|
|
3714
|
-
"--reka-combobox-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
3715
|
-
"--reka-combobox-content-available-width": "var(--reka-popper-available-width)",
|
|
3716
|
-
"--reka-combobox-content-available-height": "var(--reka-popper-available-height)",
|
|
3717
|
-
"--reka-combobox-trigger-width": "var(--reka-popper-anchor-width)",
|
|
3718
|
-
"--reka-combobox-trigger-height": "var(--reka-popper-anchor-height)"
|
|
3719
|
-
};
|
|
3720
|
-
uo({ position: a });
|
|
3721
|
-
let f = V(!1);
|
|
3722
|
-
A(() => {
|
|
3723
|
-
o.inputElement.value && (f.value = l.value.contains(o.inputElement.value), f.value && o.inputElement.value.focus());
|
|
3724
|
-
}), rt(() => {
|
|
3725
|
-
let e = J();
|
|
3726
|
-
f.value && (!e || e === document.body) && o.triggerElement.value?.focus();
|
|
3727
|
-
});
|
|
3728
|
-
function p(e) {
|
|
3729
|
-
if (o.parentElement.value?.contains(e)) return !0;
|
|
3730
|
-
let t = (e instanceof Element ? e.closest("label") : null)?.control;
|
|
3731
|
-
return !!t && !!o.parentElement.value?.contains(t);
|
|
3732
|
-
}
|
|
3733
|
-
return (e, t) => (M(), H(U(fa), { "as-child": "" }, {
|
|
3734
|
-
default: j(() => [B(U(Qi), {
|
|
3735
|
-
"as-child": "",
|
|
3736
|
-
onMountAutoFocus: t[5] ||= ln(() => {}, ["prevent"]),
|
|
3737
|
-
onUnmountAutoFocus: t[6] ||= ln(() => {}, ["prevent"])
|
|
3738
|
-
}, {
|
|
3739
|
-
default: j(() => [B(U(Ri), {
|
|
3740
|
-
"as-child": "",
|
|
3741
|
-
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
3742
|
-
onDismiss: t[0] ||= (e) => U(o).onOpenChange(!1),
|
|
3743
|
-
onFocusOutside: t[1] ||= (e) => {
|
|
3744
|
-
p(e.target) && e.preventDefault(), i("focusOutside", e);
|
|
3745
|
-
},
|
|
3746
|
-
onInteractOutside: t[2] ||= (e) => i("interactOutside", e),
|
|
3747
|
-
onEscapeKeyDown: t[3] ||= (e) => i("escapeKeyDown", e),
|
|
3748
|
-
onPointerDownOutside: t[4] ||= (e) => {
|
|
3749
|
-
p(e.target) && e.preventDefault(), i("pointerDownOutside", e);
|
|
3750
|
-
}
|
|
3751
|
-
}, {
|
|
3752
|
-
default: j(() => [(M(), H(n(U(a) === "popper" ? U(oo) : U(X)), R({
|
|
3753
|
-
...e.$attrs,
|
|
3754
|
-
...U(u)
|
|
3755
|
-
}, {
|
|
3756
|
-
id: U(o).contentId,
|
|
3757
|
-
ref: U(c),
|
|
3758
|
-
"memo-dependencies": U(a) === "popper" ? [U(o).filterSearch.value, U(o).filterState.value] : void 0,
|
|
3759
|
-
"data-state": U(o).open.value ? "open" : "closed",
|
|
3760
|
-
"data-empty": s.value ? "" : void 0,
|
|
3761
|
-
style: {
|
|
3762
|
-
display: r.hideWhenEmpty && s.value ? "none" : "flex",
|
|
3763
|
-
flexDirection: "column",
|
|
3764
|
-
outline: "none",
|
|
3765
|
-
...U(a) === "popper" ? d : {}
|
|
3766
|
-
}
|
|
3767
|
-
}), {
|
|
3768
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
3769
|
-
_: 3
|
|
3770
|
-
}, 16, [
|
|
3771
|
-
"id",
|
|
3772
|
-
"memo-dependencies",
|
|
3773
|
-
"data-state",
|
|
3774
|
-
"data-empty",
|
|
3775
|
-
"style"
|
|
3776
|
-
]))]),
|
|
3777
|
-
_: 3
|
|
3778
|
-
}, 8, ["disable-outside-pointer-events"])]),
|
|
3779
|
-
_: 3
|
|
3780
|
-
})]),
|
|
3781
|
-
_: 3
|
|
3782
|
-
}));
|
|
3783
|
-
}
|
|
3784
|
-
}), po = /* @__PURE__ */ L({
|
|
3785
|
-
__name: "ComboboxCancel",
|
|
3786
|
-
props: {
|
|
3787
|
-
asChild: {
|
|
3788
|
-
type: Boolean,
|
|
3789
|
-
required: !1
|
|
3790
|
-
},
|
|
3791
|
-
as: {
|
|
3792
|
-
type: null,
|
|
3793
|
-
required: !1,
|
|
3794
|
-
default: "button"
|
|
3795
|
-
}
|
|
3796
|
-
},
|
|
3797
|
-
setup(e) {
|
|
3798
|
-
let t = e;
|
|
3799
|
-
Y();
|
|
3800
|
-
let n = $();
|
|
3801
|
-
function r() {
|
|
3802
|
-
n.filterSearch.value = "", n.inputElement.value && (n.inputElement.value.value = "", n.inputElement.value.focus()), n.resetModelValueOnClear?.value && (n.modelValue.value = n.multiple.value ? [] : null);
|
|
3803
|
-
}
|
|
3804
|
-
return (e, n) => (M(), H(U(X), R({ type: e.as === "button" ? "button" : void 0 }, t, {
|
|
3805
|
-
tabindex: "-1",
|
|
3806
|
-
onClick: r
|
|
3807
|
-
}), {
|
|
3808
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
3809
|
-
_: 3
|
|
3810
|
-
}, 16, ["type"]));
|
|
3811
|
-
}
|
|
3812
|
-
}), mo = /* @__PURE__ */ L({
|
|
3813
|
-
__name: "ComboboxContent",
|
|
3814
|
-
props: {
|
|
3815
|
-
forceMount: {
|
|
3816
|
-
type: Boolean,
|
|
3817
|
-
required: !1
|
|
3818
|
-
},
|
|
3819
|
-
position: {
|
|
3820
|
-
type: String,
|
|
3821
|
-
required: !1
|
|
3822
|
-
},
|
|
3823
|
-
bodyLock: {
|
|
3824
|
-
type: Boolean,
|
|
3825
|
-
required: !1
|
|
3826
|
-
},
|
|
3827
|
-
hideWhenEmpty: {
|
|
3828
|
-
type: Boolean,
|
|
3829
|
-
required: !1
|
|
3830
|
-
},
|
|
3831
|
-
memoDependencies: {
|
|
3832
|
-
type: Array,
|
|
3833
|
-
required: !1
|
|
3834
|
-
},
|
|
3835
|
-
side: {
|
|
3836
|
-
type: null,
|
|
3837
|
-
required: !1
|
|
3838
|
-
},
|
|
3839
|
-
sideOffset: {
|
|
3840
|
-
type: Number,
|
|
3841
|
-
required: !1
|
|
3842
|
-
},
|
|
3843
|
-
sideFlip: {
|
|
3844
|
-
type: Boolean,
|
|
3845
|
-
required: !1
|
|
3846
|
-
},
|
|
3847
|
-
align: {
|
|
3848
|
-
type: null,
|
|
3849
|
-
required: !1
|
|
3850
|
-
},
|
|
3851
|
-
alignOffset: {
|
|
3852
|
-
type: Number,
|
|
3853
|
-
required: !1
|
|
3854
|
-
},
|
|
3855
|
-
alignFlip: {
|
|
3856
|
-
type: Boolean,
|
|
3857
|
-
required: !1
|
|
3858
|
-
},
|
|
3859
|
-
avoidCollisions: {
|
|
3860
|
-
type: Boolean,
|
|
3861
|
-
required: !1
|
|
3862
|
-
},
|
|
3863
|
-
collisionBoundary: {
|
|
3864
|
-
type: null,
|
|
3865
|
-
required: !1
|
|
3866
|
-
},
|
|
3867
|
-
collisionPadding: {
|
|
3868
|
-
type: [Number, Object],
|
|
3869
|
-
required: !1
|
|
3870
|
-
},
|
|
3871
|
-
arrowPadding: {
|
|
3872
|
-
type: Number,
|
|
3873
|
-
required: !1
|
|
3874
|
-
},
|
|
3875
|
-
hideShiftedArrow: {
|
|
3876
|
-
type: Boolean,
|
|
3877
|
-
required: !1
|
|
3878
|
-
},
|
|
3879
|
-
sticky: {
|
|
3880
|
-
type: String,
|
|
3881
|
-
required: !1
|
|
3882
|
-
},
|
|
3883
|
-
hideWhenDetached: {
|
|
3884
|
-
type: Boolean,
|
|
3885
|
-
required: !1
|
|
3886
|
-
},
|
|
3887
|
-
positionStrategy: {
|
|
3888
|
-
type: String,
|
|
3889
|
-
required: !1
|
|
3890
|
-
},
|
|
3891
|
-
updatePositionStrategy: {
|
|
3892
|
-
type: String,
|
|
3893
|
-
required: !1
|
|
3894
|
-
},
|
|
3895
|
-
disableUpdateOnLayoutShift: {
|
|
3896
|
-
type: Boolean,
|
|
3897
|
-
required: !1
|
|
3898
|
-
},
|
|
3899
|
-
prioritizePosition: {
|
|
3900
|
-
type: Boolean,
|
|
3901
|
-
required: !1
|
|
3902
|
-
},
|
|
3903
|
-
reference: {
|
|
3904
|
-
type: null,
|
|
3905
|
-
required: !1
|
|
3906
|
-
},
|
|
3907
|
-
dir: {
|
|
3908
|
-
type: String,
|
|
3909
|
-
required: !1
|
|
3910
|
-
},
|
|
3911
|
-
asChild: {
|
|
3912
|
-
type: Boolean,
|
|
3913
|
-
required: !1
|
|
3914
|
-
},
|
|
3915
|
-
as: {
|
|
3916
|
-
type: null,
|
|
3917
|
-
required: !1
|
|
3918
|
-
},
|
|
3919
|
-
disableOutsidePointerEvents: {
|
|
3920
|
-
type: Boolean,
|
|
3921
|
-
required: !1
|
|
3922
|
-
}
|
|
3923
|
-
},
|
|
3924
|
-
emits: [
|
|
3925
|
-
"escapeKeyDown",
|
|
3926
|
-
"pointerDownOutside",
|
|
3927
|
-
"focusOutside",
|
|
3928
|
-
"interactOutside"
|
|
3929
|
-
],
|
|
3930
|
-
setup(e, { emit: t }) {
|
|
3931
|
-
let n = ci(e, t), { forwardRef: r } = Y(), i = $();
|
|
3932
|
-
return i.contentId ||= bi(void 0, "reka-combobox-content"), (e, t) => (M(), H(U(ki), { present: e.forceMount || U(i).open.value }, {
|
|
3933
|
-
default: j(() => [B(fo, R({
|
|
3934
|
-
...U(n),
|
|
3935
|
-
...e.$attrs
|
|
3936
|
-
}, { ref: U(r) }), {
|
|
3937
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
3938
|
-
_: 3
|
|
3939
|
-
}, 16)]),
|
|
3940
|
-
_: 3
|
|
3941
|
-
}, 8, ["present"]));
|
|
3942
|
-
}
|
|
3943
|
-
}), ho = /* @__PURE__ */ L({
|
|
3944
|
-
__name: "ComboboxEmpty",
|
|
3945
|
-
props: {
|
|
3946
|
-
asChild: {
|
|
3947
|
-
type: Boolean,
|
|
3948
|
-
required: !1
|
|
3949
|
-
},
|
|
3950
|
-
as: {
|
|
3951
|
-
type: null,
|
|
3952
|
-
required: !1
|
|
3953
|
-
}
|
|
3954
|
-
},
|
|
3955
|
-
setup(e) {
|
|
3956
|
-
let t = e, n = $(), r = D(() => n.ignoreFilter.value ? n.allItems.value.size === 0 : n.filterState.value.count === 0);
|
|
3957
|
-
return (e, n) => r.value ? (M(), H(U(X), Nn(R({ key: 0 }, t)), {
|
|
3958
|
-
default: j(() => [N(e.$slots, "default", {}, () => [n[0] ||= G("No options")])]),
|
|
3959
|
-
_: 3
|
|
3960
|
-
}, 16)) : O("v-if", !0);
|
|
3961
|
-
}
|
|
3962
|
-
}), [go, _o] = /*#__PURE__*/ zr("ComboboxGroup"), vo = /* @__PURE__ */ L({
|
|
3963
|
-
__name: "ComboboxInput",
|
|
3964
|
-
props: {
|
|
3965
|
-
displayValue: {
|
|
3966
|
-
type: Function,
|
|
3967
|
-
required: !1
|
|
3968
|
-
},
|
|
3969
|
-
modelValue: {
|
|
3970
|
-
type: String,
|
|
3971
|
-
required: !1
|
|
3972
|
-
},
|
|
3973
|
-
autoFocus: {
|
|
3974
|
-
type: Boolean,
|
|
3975
|
-
required: !1
|
|
3976
|
-
},
|
|
3977
|
-
disabled: {
|
|
3978
|
-
type: Boolean,
|
|
3979
|
-
required: !1
|
|
3980
|
-
},
|
|
3981
|
-
asChild: {
|
|
3982
|
-
type: Boolean,
|
|
3983
|
-
required: !1
|
|
3984
|
-
},
|
|
3985
|
-
as: {
|
|
3986
|
-
type: null,
|
|
3987
|
-
required: !1,
|
|
3988
|
-
default: "input"
|
|
3989
|
-
}
|
|
3990
|
-
},
|
|
3991
|
-
emits: ["update:modelValue"],
|
|
3992
|
-
setup(e, { emit: t }) {
|
|
3993
|
-
let n = e, r = t, i = $(), a = la(), { primitiveElement: s, currentElement: c } = Mi(), l = Pr(n, "modelValue", r, { passive: n.modelValue === void 0 });
|
|
3994
|
-
A(() => {
|
|
3995
|
-
c.value && i.onInputElementChange(c.value);
|
|
3996
|
-
});
|
|
3997
|
-
let { isComposing: u, handleCompositionStart: d, handleCompositionEnd: f } = $r((e) => {
|
|
3998
|
-
let t = e.target;
|
|
3999
|
-
t && m(t.value);
|
|
4000
|
-
});
|
|
4001
|
-
function p(e) {
|
|
4002
|
-
u.value || (e.preventDefault(), i.open.value || i.onOpenChange(!0));
|
|
4003
|
-
}
|
|
4004
|
-
function m(e) {
|
|
4005
|
-
i.open.value ? i.filterSearch.value = e : (i.onOpenChange(!0), o(() => {
|
|
4006
|
-
e && (i.filterSearch.value = e, a.highlightFirstItem());
|
|
4007
|
-
}));
|
|
4008
|
-
}
|
|
4009
|
-
function h(e) {
|
|
4010
|
-
u.value || m(e.target.value);
|
|
4011
|
-
}
|
|
4012
|
-
function g() {
|
|
4013
|
-
i.openOnFocus.value && !i.open.value && i.onOpenChange(!0);
|
|
4014
|
-
}
|
|
4015
|
-
function _(e) {
|
|
4016
|
-
if (!i.open.value) return;
|
|
4017
|
-
let t = e.relatedTarget;
|
|
4018
|
-
if (!t) return;
|
|
4019
|
-
let n = i.parentElement.value?.contains(t), r = document.getElementById(i.contentId)?.contains(t);
|
|
4020
|
-
!n && !r && requestAnimationFrame(() => {
|
|
4021
|
-
if (!i.open.value) return;
|
|
4022
|
-
let e = document.activeElement;
|
|
4023
|
-
!i.parentElement.value?.contains(e) && !document.getElementById(i.contentId)?.contains(e) && i.onOpenChange(!1);
|
|
4024
|
-
});
|
|
4025
|
-
}
|
|
4026
|
-
function v() {
|
|
4027
|
-
i.openOnClick.value && !i.open.value && i.onOpenChange(!0);
|
|
4028
|
-
}
|
|
4029
|
-
function y() {
|
|
4030
|
-
let e = i.modelValue.value;
|
|
4031
|
-
n.displayValue ? l.value = n.displayValue(e) : !i.multiple.value && e && !Array.isArray(e) ? typeof e == "object" ? l.value = "" : l.value = e.toString() : l.value = "", o(() => {
|
|
4032
|
-
l.value = l.value;
|
|
4033
|
-
});
|
|
4034
|
-
}
|
|
4035
|
-
return i.onResetSearchTerm(() => {
|
|
4036
|
-
y();
|
|
4037
|
-
}), F(i.modelValue, async () => {
|
|
4038
|
-
!i.isUserInputted.value && i.resetSearchTermOnSelect.value && y();
|
|
4039
|
-
}, {
|
|
4040
|
-
immediate: !0,
|
|
4041
|
-
deep: !0
|
|
4042
|
-
}), F(i.filterState, (e, t) => {
|
|
4043
|
-
!i.isVirtual.value && t.count === 0 && a.highlightFirstItem();
|
|
4044
|
-
}), (e, t) => (M(), H(U(pa), {
|
|
4045
|
-
ref_key: "primitiveElement",
|
|
4046
|
-
ref: s,
|
|
4047
|
-
modelValue: U(l),
|
|
4048
|
-
"onUpdate:modelValue": t[0] ||= (e) => ar(l) ? l.value = e : null,
|
|
4049
|
-
as: e.as,
|
|
4050
|
-
"as-child": e.asChild,
|
|
4051
|
-
"auto-focus": e.autoFocus,
|
|
4052
|
-
disabled: e.disabled,
|
|
4053
|
-
"aria-expanded": U(i).open.value,
|
|
4054
|
-
"aria-controls": U(i).contentId,
|
|
4055
|
-
"aria-autocomplete": "list",
|
|
4056
|
-
role: "combobox",
|
|
4057
|
-
autocomplete: "off",
|
|
4058
|
-
onClick: v,
|
|
4059
|
-
onInput: h,
|
|
4060
|
-
onKeydown: Ne(p, ["down", "up"]),
|
|
4061
|
-
onFocus: g,
|
|
4062
|
-
onBlur: _,
|
|
4063
|
-
onCompositionstart: U(d),
|
|
4064
|
-
onCompositionend: U(f)
|
|
4065
|
-
}, {
|
|
4066
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
4067
|
-
_: 3
|
|
4068
|
-
}, 8, [
|
|
4069
|
-
"modelValue",
|
|
4070
|
-
"as",
|
|
4071
|
-
"as-child",
|
|
4072
|
-
"auto-focus",
|
|
4073
|
-
"disabled",
|
|
4074
|
-
"aria-expanded",
|
|
4075
|
-
"aria-controls",
|
|
4076
|
-
"onCompositionstart",
|
|
4077
|
-
"onCompositionend"
|
|
4078
|
-
]));
|
|
4079
|
-
}
|
|
4080
|
-
}), yo = /* @__PURE__ */ L({
|
|
4081
|
-
__name: "ComboboxItem",
|
|
4082
|
-
props: {
|
|
4083
|
-
textValue: {
|
|
4084
|
-
type: String,
|
|
4085
|
-
required: !1
|
|
4086
|
-
},
|
|
4087
|
-
value: {
|
|
4088
|
-
type: null,
|
|
4089
|
-
required: !0
|
|
4090
|
-
},
|
|
4091
|
-
disabled: {
|
|
4092
|
-
type: Boolean,
|
|
4093
|
-
required: !1
|
|
4094
|
-
},
|
|
4095
|
-
asChild: {
|
|
4096
|
-
type: Boolean,
|
|
4097
|
-
required: !1
|
|
4098
|
-
},
|
|
4099
|
-
as: {
|
|
4100
|
-
type: null,
|
|
4101
|
-
required: !1
|
|
4102
|
-
}
|
|
4103
|
-
},
|
|
4104
|
-
emits: ["select"],
|
|
4105
|
-
setup(e, { emit: t }) {
|
|
4106
|
-
let n = e, r = t, i = bi(void 0, "reka-combobox-item"), a = $(), o = go(null), { primitiveElement: s, currentElement: c } = Mi();
|
|
4107
|
-
if (n.value === "") throw Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");
|
|
4108
|
-
let l = D(() => {
|
|
4109
|
-
if (a.isVirtual.value || a.ignoreFilter.value || !a.filterSearch.value) return !0;
|
|
4110
|
-
{
|
|
4111
|
-
let e = a.filterState.value.items.get(i);
|
|
4112
|
-
return e === void 0 || e > 0;
|
|
4113
|
-
}
|
|
4114
|
-
});
|
|
4115
|
-
return A(() => {
|
|
4116
|
-
a.allItems.value.set(i, n.textValue || c.value.textContent || c.value.innerText);
|
|
4117
|
-
let e = o?.id;
|
|
4118
|
-
e && (a.allGroups.value.has(e) ? a.allGroups.value.get(e)?.add(i) : a.allGroups.value.set(e, /* @__PURE__ */ new Set([i])));
|
|
4119
|
-
}), rt(() => {
|
|
4120
|
-
a.allItems.value.delete(i);
|
|
4121
|
-
}), (e, t) => l.value ? Ze([
|
|
4122
|
-
l.value,
|
|
4123
|
-
U(a).filterSearch.value,
|
|
4124
|
-
U(a).disabled.value,
|
|
4125
|
-
e.disabled,
|
|
4126
|
-
n.value,
|
|
4127
|
-
n.as,
|
|
4128
|
-
n.asChild,
|
|
4129
|
-
...Object.values(e.$attrs)
|
|
4130
|
-
], () => (M(), H(U(_a), R({ key: 0 }, n, {
|
|
4131
|
-
id: U(i),
|
|
4132
|
-
ref_key: "primitiveElement",
|
|
4133
|
-
ref: s,
|
|
4134
|
-
disabled: U(a).disabled.value || e.disabled,
|
|
4135
|
-
onSelect: t[0] ||= (t) => {
|
|
4136
|
-
r("select", t), !t.defaultPrevented && (!U(a).multiple.value && !e.disabled && !U(a).disabled.value ? (t.preventDefault(), U(a).onOpenChange(!1), U(a).modelValue.value = n.value) : U(a).multiple.value && U(a).inputElement.value?.focus());
|
|
4137
|
-
}
|
|
4138
|
-
}), {
|
|
4139
|
-
default: j(() => [N(e.$slots, "default", {}, () => [G(z(e.value), 1)])]),
|
|
4140
|
-
_: 3
|
|
4141
|
-
}, 16, ["id", "disabled"])), t, 1) : O("v-if", !0);
|
|
4142
|
-
}
|
|
4143
|
-
}), bo = /* @__PURE__ */ L({
|
|
4144
|
-
__name: "ComboboxItemIndicator",
|
|
4145
|
-
props: {
|
|
4146
|
-
asChild: {
|
|
4147
|
-
type: Boolean,
|
|
4148
|
-
required: !1
|
|
4149
|
-
},
|
|
4150
|
-
as: {
|
|
4151
|
-
type: null,
|
|
4152
|
-
required: !1,
|
|
4153
|
-
default: "span"
|
|
4154
|
-
}
|
|
4155
|
-
},
|
|
4156
|
-
setup(e) {
|
|
4157
|
-
let t = e;
|
|
4158
|
-
return (e, n) => (M(), H(U(va), Nn(mn(t)), {
|
|
4159
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
4160
|
-
_: 3
|
|
4161
|
-
}, 16));
|
|
4162
|
-
}
|
|
4163
|
-
}), xo = /* @__PURE__ */ L({
|
|
4164
|
-
__name: "ComboboxTrigger",
|
|
4165
|
-
props: {
|
|
4166
|
-
disabled: {
|
|
4167
|
-
type: Boolean,
|
|
4168
|
-
required: !1
|
|
4169
|
-
},
|
|
4170
|
-
asChild: {
|
|
4171
|
-
type: Boolean,
|
|
4172
|
-
required: !1
|
|
4173
|
-
},
|
|
4174
|
-
as: {
|
|
4175
|
-
type: null,
|
|
4176
|
-
required: !1,
|
|
4177
|
-
default: "button"
|
|
4178
|
-
}
|
|
4179
|
-
},
|
|
4180
|
-
setup(e) {
|
|
4181
|
-
let t = e, { forwardRef: n, currentElement: r } = Y(), i = $(), a = D(() => t.disabled || i.disabled.value || !1);
|
|
4182
|
-
return A(() => {
|
|
4183
|
-
r.value && i.onTriggerElementChange(r.value);
|
|
4184
|
-
}), (e, r) => (M(), H(U(X), R(t, {
|
|
4185
|
-
ref: U(n),
|
|
4186
|
-
type: e.as === "button" ? "button" : void 0,
|
|
4187
|
-
tabindex: "-1",
|
|
4188
|
-
"aria-label": "Show popup",
|
|
4189
|
-
"aria-haspopup": "listbox",
|
|
4190
|
-
"aria-expanded": U(i).open.value,
|
|
4191
|
-
"aria-controls": U(i).contentId,
|
|
4192
|
-
"data-state": U(i).open.value ? "open" : "closed",
|
|
4193
|
-
disabled: a.value,
|
|
4194
|
-
"data-disabled": a.value ? "" : void 0,
|
|
4195
|
-
"aria-disabled": a.value ?? void 0,
|
|
4196
|
-
onClick: r[0] ||= (e) => U(i).onOpenChange(!U(i).open.value)
|
|
4197
|
-
}), {
|
|
4198
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
4199
|
-
_: 3
|
|
4200
|
-
}, 16, [
|
|
4201
|
-
"type",
|
|
4202
|
-
"aria-expanded",
|
|
4203
|
-
"aria-controls",
|
|
4204
|
-
"data-state",
|
|
4205
|
-
"disabled",
|
|
4206
|
-
"data-disabled",
|
|
4207
|
-
"aria-disabled"
|
|
4208
|
-
]));
|
|
4209
|
-
}
|
|
4210
|
-
});
|
|
4211
|
-
//#endregion
|
|
4212
|
-
//#region node_modules/reka-ui/dist/shared/useNonce.js
|
|
4213
|
-
function So(e) {
|
|
4214
|
-
let t = Ur({ nonce: V() });
|
|
4215
|
-
return D(() => e?.value || t.nonce?.value);
|
|
4216
|
-
}
|
|
4217
|
-
//#endregion
|
|
4218
|
-
//#region node_modules/reka-ui/dist/Combobox/ComboboxViewport.js
|
|
4219
|
-
var Co = /* @__PURE__ */ L({
|
|
4220
|
-
__name: "ComboboxViewport",
|
|
4221
|
-
props: {
|
|
4222
|
-
nonce: {
|
|
4223
|
-
type: String,
|
|
4224
|
-
required: !1
|
|
4225
|
-
},
|
|
4226
|
-
asChild: {
|
|
4227
|
-
type: Boolean,
|
|
4228
|
-
required: !1
|
|
4229
|
-
},
|
|
4230
|
-
as: {
|
|
4231
|
-
type: null,
|
|
4232
|
-
required: !1
|
|
4233
|
-
}
|
|
4234
|
-
},
|
|
4235
|
-
setup(e) {
|
|
4236
|
-
let t = e, { forwardRef: n } = Y(), { nonce: r } = Rt(t), i = So(r), a = $();
|
|
4237
|
-
return (e, r) => (M(), P(T, null, [B(U(X), R({
|
|
4238
|
-
...e.$attrs,
|
|
4239
|
-
...t
|
|
4240
|
-
}, {
|
|
4241
|
-
ref: U(n),
|
|
4242
|
-
"data-reka-combobox-viewport": "",
|
|
4243
|
-
role: "presentation",
|
|
4244
|
-
style: {
|
|
4245
|
-
position: "relative",
|
|
4246
|
-
flex: U(a).isVirtual.value ? void 0 : 1,
|
|
4247
|
-
overflow: "auto"
|
|
4248
|
-
}
|
|
4249
|
-
}), {
|
|
4250
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
4251
|
-
_: 3
|
|
4252
|
-
}, 16, ["style"]), B(U(X), {
|
|
4253
|
-
as: "style",
|
|
4254
|
-
nonce: U(i)
|
|
4255
|
-
}, {
|
|
4256
|
-
default: j(() => r[0] ||= [G(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-combobox-viewport]::-webkit-scrollbar { display: none; } ")]),
|
|
4257
|
-
_: 1,
|
|
4258
|
-
__: [0]
|
|
4259
|
-
}, 8, ["nonce"])], 64));
|
|
4260
|
-
}
|
|
4261
|
-
}), wo = /* @__PURE__ */ L({
|
|
4262
|
-
__name: "ComboboxVirtualizer",
|
|
4263
|
-
props: {
|
|
4264
|
-
options: {
|
|
4265
|
-
type: Array,
|
|
4266
|
-
required: !0
|
|
4267
|
-
},
|
|
4268
|
-
overscan: {
|
|
4269
|
-
type: Number,
|
|
4270
|
-
required: !1
|
|
4271
|
-
},
|
|
4272
|
-
estimateSize: {
|
|
4273
|
-
type: [Number, Function],
|
|
4274
|
-
required: !1
|
|
4275
|
-
},
|
|
4276
|
-
textContent: {
|
|
4277
|
-
type: Function,
|
|
4278
|
-
required: !1
|
|
4279
|
-
}
|
|
4280
|
-
},
|
|
4281
|
-
setup(e) {
|
|
4282
|
-
let t = e, n = $();
|
|
4283
|
-
return n.isVirtual.value = !0, (e, n) => (M(), H(Ha, Nn(mn(t)), {
|
|
4284
|
-
default: j((t) => [N(e.$slots, "default", Nn(mn(t)))]),
|
|
4285
|
-
_: 3
|
|
4286
|
-
}, 16));
|
|
4287
|
-
}
|
|
4288
|
-
}), To = /* @__PURE__ */ L({
|
|
4289
|
-
__name: "Label",
|
|
4290
|
-
props: {
|
|
4291
|
-
for: {
|
|
4292
|
-
type: String,
|
|
4293
|
-
required: !1
|
|
4294
|
-
},
|
|
4295
|
-
asChild: {
|
|
4296
|
-
type: Boolean,
|
|
4297
|
-
required: !1
|
|
4298
|
-
},
|
|
4299
|
-
as: {
|
|
4300
|
-
type: null,
|
|
4301
|
-
required: !1,
|
|
4302
|
-
default: "label"
|
|
4303
|
-
}
|
|
4304
|
-
},
|
|
4305
|
-
setup(e) {
|
|
4306
|
-
let t = e;
|
|
4307
|
-
return Y(), (e, n) => (M(), H(U(X), R(t, { onMousedown: n[0] ||= (e) => {
|
|
4308
|
-
!e.defaultPrevented && e.detail > 1 && e.preventDefault();
|
|
4309
|
-
} }), {
|
|
4310
|
-
default: j(() => [N(e.$slots, "default")]),
|
|
4311
|
-
_: 3
|
|
4312
|
-
}, 16));
|
|
4313
|
-
}
|
|
4314
|
-
}), Eo = {
|
|
4315
|
-
key: 0,
|
|
4316
|
-
class: "vd-field__asterisk"
|
|
4317
|
-
}, Do = {
|
|
4318
|
-
key: 1,
|
|
4319
|
-
class: "vd-field__popover"
|
|
4320
|
-
}, Oo = { class: "vd-field__wrapper" }, ko = {
|
|
4321
|
-
key: 1,
|
|
4322
|
-
class: "vd-field__loader-circle"
|
|
4323
|
-
}, Ao = {
|
|
4324
|
-
key: 0,
|
|
4325
|
-
class: "vd-field__message vd-field__message--error"
|
|
4326
|
-
}, jo = {
|
|
4327
|
-
key: 1,
|
|
4328
|
-
class: "vd-field__message vd-field__message--information"
|
|
4329
|
-
}, Mo = /* @__PURE__ */ L({
|
|
4330
|
-
__name: "VdSearchableSelect",
|
|
4331
|
-
props: /*@__PURE__*/ je({
|
|
4332
|
-
id: {},
|
|
4333
|
-
name: {},
|
|
4334
|
-
label: {},
|
|
4335
|
-
placeholder: { default: "Typ of selecteer" },
|
|
4336
|
-
options: {},
|
|
4337
|
-
labelKey: { default: "title" },
|
|
4338
|
-
valueKey: { default: "value" },
|
|
4339
|
-
by: {},
|
|
4340
|
-
errorMessage: {},
|
|
4341
|
-
disabled: { type: Boolean },
|
|
4342
|
-
required: { type: Boolean },
|
|
4343
|
-
verified: { type: Boolean },
|
|
4344
|
-
infoMessage: {},
|
|
4345
|
-
loading: {
|
|
4346
|
-
type: Boolean,
|
|
4347
|
-
default: !1
|
|
4348
|
-
},
|
|
4349
|
-
noResultsText: { default: "We hebben geen resultaten gevonden. Controleer de spelling of kies een optie uit de lijst." },
|
|
4350
|
-
ignoreFilter: { type: Boolean },
|
|
4351
|
-
displayValue: {},
|
|
4352
|
-
clearable: {
|
|
4353
|
-
type: Boolean,
|
|
4354
|
-
default: !1
|
|
4355
|
-
},
|
|
4356
|
-
icon: {},
|
|
4357
|
-
virtual: {
|
|
4358
|
-
type: Boolean,
|
|
4359
|
-
default: !1
|
|
4360
|
-
},
|
|
4361
|
-
estimateSize: { default: 40 },
|
|
4362
|
-
overscan: { default: 10 }
|
|
4363
|
-
}, {
|
|
4364
|
-
modelValue: {},
|
|
4365
|
-
modelModifiers: {},
|
|
4366
|
-
open: {
|
|
4367
|
-
type: Boolean,
|
|
4368
|
-
default: !1
|
|
4369
|
-
},
|
|
4370
|
-
openModifiers: {},
|
|
4371
|
-
searchTerm: { default: "" },
|
|
4372
|
-
searchTermModifiers: {}
|
|
4373
|
-
}),
|
|
4374
|
-
emits: /*@__PURE__*/ je([
|
|
4375
|
-
"blur",
|
|
4376
|
-
"select",
|
|
4377
|
-
"clear",
|
|
4378
|
-
"search"
|
|
4379
|
-
], [
|
|
4380
|
-
"update:modelValue",
|
|
4381
|
-
"update:open",
|
|
4382
|
-
"update:searchTerm"
|
|
4383
|
-
]),
|
|
4384
|
-
setup(e, { emit: t }) {
|
|
4385
|
-
let n = e, r = si(Ke(n, "name", "disabled", "by", "ignoreFilter")), i = Vn(e, "modelValue"), o = Vn(e, "open"), s = Vn(e, "searchTerm"), c = t, l = Wt(), u = n.id ?? dn(), d = D(() => !!n.icon || !!l.icon), f = (e) => typeof e == "object" && !!e, p = (e) => f(e) ? a(e, n.labelKey) ?? e.title ?? "" : String(e), m = (e) => f(e) ? n.valueKey === null ? e : a(e, n.valueKey) : e, h = (e) => f(e) ? e.disabled : void 0, g = (e, t) => e === void 0 || t === void 0 ? !1 : !f(e) || !f(t) ? e === t : typeof n.by == "function" ? n.by(e, t) : typeof n.by == "string" ? a(e, n.by) === a(t, n.by) : Tr(e, t), _ = (e) => e == null || e === "", v = D(() => !_(i.value)), y = D(() => n.errorMessage ? "error" : v.value && n.verified && !n.loading ? "verified" : "default"), b = (e) => {
|
|
4386
|
-
if (_(e)) return "";
|
|
4387
|
-
if (n.displayValue) return n.displayValue(e);
|
|
4388
|
-
let t = n.options.find((t) => g(m(t), e));
|
|
4389
|
-
return p(t ?? e);
|
|
4390
|
-
}, x = (e) => {
|
|
4391
|
-
c("select", e);
|
|
4392
|
-
}, S = () => {
|
|
4393
|
-
i.value = void 0, c("clear");
|
|
4394
|
-
};
|
|
4395
|
-
return (t, n) => (M(), H(U(co), R({
|
|
4396
|
-
modelValue: i.value,
|
|
4397
|
-
"onUpdate:modelValue": n[3] ||= (e) => i.value = e,
|
|
4398
|
-
open: o.value,
|
|
4399
|
-
"onUpdate:open": n[4] ||= (e) => o.value = e,
|
|
4400
|
-
class: "vd-field",
|
|
4401
|
-
"open-on-click": "",
|
|
4402
|
-
"open-on-focus": ""
|
|
4403
|
-
}, U(r)), {
|
|
4404
|
-
default: j(() => [
|
|
4405
|
-
k("div", { class: bn(["vd-field__label-wrapper", { "vd-field__label-wrapper--disabled": e.disabled }]) }, [e.label || l.label ? (M(), H(U(To), {
|
|
4406
|
-
key: 0,
|
|
4407
|
-
for: U(u),
|
|
4408
|
-
class: "vd-field__label"
|
|
4409
|
-
}, {
|
|
4410
|
-
default: j(() => [k("span", null, [N(t.$slots, "label", {}, () => [G(z(e.label), 1)]), e.required ? (M(), P("span", Eo, "*")) : O("", !0)])]),
|
|
4411
|
-
_: 3
|
|
4412
|
-
}, 8, ["for"])) : O("", !0), l.popover ? (M(), P("span", Do, [N(t.$slots, "popover")])) : O("", !0)], 2),
|
|
4413
|
-
k("div", Oo, [
|
|
4414
|
-
B(U(vo), {
|
|
4415
|
-
id: U(u),
|
|
4416
|
-
modelValue: s.value,
|
|
4417
|
-
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
4418
|
-
"display-value": b,
|
|
4419
|
-
placeholder: e.placeholder,
|
|
4420
|
-
class: bn(["vd-field__input vd-field__input--icon-right", [`vd-field__input--${y.value}`, { "vd-field__input--icon-left": d.value }]]),
|
|
4421
|
-
onInput: n[1] ||= (e) => c("search", e.target.value),
|
|
4422
|
-
onBlur: n[2] ||= (e) => c("blur", e)
|
|
4423
|
-
}, null, 8, [
|
|
4424
|
-
"id",
|
|
4425
|
-
"modelValue",
|
|
4426
|
-
"placeholder",
|
|
4427
|
-
"class"
|
|
4428
|
-
]),
|
|
4429
|
-
d.value ? (M(), P("span", {
|
|
4430
|
-
key: 0,
|
|
4431
|
-
class: bn(["vd-field__icon vd-field__icon--left", { "vd-field__icon--disabled": e.disabled }])
|
|
4432
|
-
}, [N(t.$slots, "icon", {}, () => [k("i", { class: bn(e.icon) }, null, 2)])], 2)) : O("", !0),
|
|
4433
|
-
e.loading ? (M(), P("div", ko)) : e.clearable && v.value ? (M(), H(U(po), {
|
|
4434
|
-
key: 2,
|
|
4435
|
-
as: "span",
|
|
4436
|
-
class: "vd-field__icon",
|
|
4437
|
-
onClick: S
|
|
4438
|
-
}, {
|
|
4439
|
-
default: j(() => [...n[5] ||= [k("i", { class: "far fa-times vd-field__icon--clickable" }, null, -1)]]),
|
|
4440
|
-
_: 1
|
|
4441
|
-
})) : (M(), H(U(xo), {
|
|
4442
|
-
key: 3,
|
|
4443
|
-
as: "span",
|
|
4444
|
-
class: "vd-field__icon"
|
|
4445
|
-
}, {
|
|
4446
|
-
default: j(() => [k("i", { class: bn(o.value ? "far fa-chevron-up" : "far fa-chevron-down") }, null, 2)]),
|
|
4447
|
-
_: 1
|
|
4448
|
-
})),
|
|
4449
|
-
B(U(mo), { class: "vd-combobox" }, {
|
|
4450
|
-
default: j(() => [B(U(Co), { class: "vd-combobox__list" }, {
|
|
4451
|
-
default: j(() => [e.virtual ? (M(), H(U(wo), {
|
|
4452
|
-
key: 0,
|
|
4453
|
-
options: e.options,
|
|
4454
|
-
"estimate-size": e.estimateSize,
|
|
4455
|
-
overscan: e.overscan,
|
|
4456
|
-
"text-content": p
|
|
4457
|
-
}, {
|
|
4458
|
-
default: j(({ option: e }) => [B(U(yo), {
|
|
4459
|
-
value: m(e),
|
|
4460
|
-
"text-value": p(e),
|
|
4461
|
-
disabled: h(e),
|
|
4462
|
-
class: "vd-combobox__item",
|
|
4463
|
-
onSelect: (t) => x(m(e))
|
|
4464
|
-
}, {
|
|
4465
|
-
default: j(() => [N(t.$slots, "item", { option: e }, () => [G(z(p(e)), 1)]), B(U(bo), { class: "vd-combobox__check" }, {
|
|
4466
|
-
default: j(() => [...n[6] ||= [k("i", { class: "far fa-check" }, null, -1)]]),
|
|
4467
|
-
_: 1
|
|
4468
|
-
})]),
|
|
4469
|
-
_: 2
|
|
4470
|
-
}, 1032, [
|
|
4471
|
-
"value",
|
|
4472
|
-
"text-value",
|
|
4473
|
-
"disabled",
|
|
4474
|
-
"onSelect"
|
|
4475
|
-
])]),
|
|
4476
|
-
_: 3
|
|
4477
|
-
}, 8, [
|
|
4478
|
-
"options",
|
|
4479
|
-
"estimate-size",
|
|
4480
|
-
"overscan"
|
|
4481
|
-
])) : (M(!0), P(T, { key: 1 }, mt(e.options, (e, r) => (M(), H(U(yo), {
|
|
4482
|
-
key: r,
|
|
4483
|
-
value: m(e),
|
|
4484
|
-
"text-value": p(e),
|
|
4485
|
-
disabled: h(e),
|
|
4486
|
-
class: "vd-combobox__item",
|
|
4487
|
-
onSelect: (t) => x(m(e))
|
|
4488
|
-
}, {
|
|
4489
|
-
default: j(() => [N(t.$slots, "item", { option: e }, () => [G(z(p(e)), 1)]), B(U(bo), { class: "vd-combobox__check" }, {
|
|
4490
|
-
default: j(() => [...n[7] ||= [k("i", { class: "far fa-check" }, null, -1)]]),
|
|
4491
|
-
_: 1
|
|
4492
|
-
})]),
|
|
4493
|
-
_: 2
|
|
4494
|
-
}, 1032, [
|
|
4495
|
-
"value",
|
|
4496
|
-
"text-value",
|
|
4497
|
-
"disabled",
|
|
4498
|
-
"onSelect"
|
|
4499
|
-
]))), 128)), B(U(ho), { class: "vd-combobox__empty" }, {
|
|
4500
|
-
default: j(() => [G(z(e.noResultsText), 1)]),
|
|
4501
|
-
_: 1
|
|
4502
|
-
})]),
|
|
4503
|
-
_: 3
|
|
4504
|
-
})]),
|
|
4505
|
-
_: 3
|
|
4506
|
-
})
|
|
4507
|
-
]),
|
|
4508
|
-
y.value === "error" || l.errorMessage ? (M(), P("div", Ao, [N(t.$slots, "errorMessage", {}, () => [n[8] ||= k("i", { class: "fas fa-exclamation-circle vd-field__message-icon" }, null, -1), G(" " + z(e.errorMessage), 1)])])) : O("", !0),
|
|
4509
|
-
e.infoMessage || l.information ? (M(), P("div", jo, [N(t.$slots, "information", {}, () => [n[9] ||= k("i", { class: "fas fa-info-circle vd-field__message-icon" }, null, -1), G(" " + z(e.infoMessage), 1)])])) : O("", !0)
|
|
4510
|
-
]),
|
|
4511
|
-
_: 3
|
|
4512
|
-
}, 16, ["modelValue", "open"]));
|
|
4513
|
-
}
|
|
4514
|
-
});
|
|
4515
|
-
//#endregion
|
|
4516
|
-
export { Ar as n, Mo as t };
|