@robuust-digital/vue-components 1.2.3 → 1.2.4
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.
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { openBlock as
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
import * as Gt from "vue";
|
|
2
|
+
import { openBlock as $, createElementBlock as T, createElementVNode as S, Fragment as Te, renderList as nt, renderSlot as C, createTextVNode as he, toDisplayString as oe, createVNode as M, unref as x, normalizeClass as q, createBlock as _, resolveDynamicComponent as Be, withCtx as H, createCommentVNode as ee, watchEffect as ne, mergeProps as ye, computed as b, getCurrentInstance as cn, useAttrs as Zn, withDirectives as dn, vModelDynamic as Qn, normalizeProps as bt, ref as E, onMounted as V, cloneVNode as Jn, h as N, defineComponent as I, inject as K, provide as ie, onUnmounted as ae, watch as de, shallowRef as We, Teleport as _n, reactive as el, nextTick as tl, withModifiers as fn, guardReactiveProps as nl, vModelSelect as ll, getCurrentScope as rl, onScopeDispose as ol, shallowReadonly as De, normalizeStyle as il } from "vue";
|
|
3
|
+
function al(e, t) {
|
|
4
|
+
return $(), T("svg", {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
fill: "currentColor",
|
|
8
8
|
"aria-hidden": "true",
|
|
9
9
|
"data-slot": "icon"
|
|
10
10
|
}, [
|
|
11
|
-
|
|
11
|
+
S("path", {
|
|
12
12
|
"fill-rule": "evenodd",
|
|
13
13
|
d: "M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",
|
|
14
14
|
"clip-rule": "evenodd"
|
|
15
15
|
})
|
|
16
16
|
]);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function sl(e, t) {
|
|
19
|
+
return $(), T("svg", {
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
21
|
viewBox: "0 0 24 24",
|
|
22
22
|
fill: "currentColor",
|
|
23
23
|
"aria-hidden": "true",
|
|
24
24
|
"data-slot": "icon"
|
|
25
25
|
}, [
|
|
26
|
-
|
|
26
|
+
S("path", {
|
|
27
27
|
"fill-rule": "evenodd",
|
|
28
28
|
d: "M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",
|
|
29
29
|
"clip-rule": "evenodd"
|
|
@@ -31,21 +31,21 @@ function ll(e, t) {
|
|
|
31
31
|
]);
|
|
32
32
|
}
|
|
33
33
|
function At(e, t) {
|
|
34
|
-
return
|
|
34
|
+
return $(), T("svg", {
|
|
35
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
36
36
|
viewBox: "0 0 24 24",
|
|
37
37
|
fill: "currentColor",
|
|
38
38
|
"aria-hidden": "true",
|
|
39
39
|
"data-slot": "icon"
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
S("path", {
|
|
42
42
|
"fill-rule": "evenodd",
|
|
43
43
|
d: "M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",
|
|
44
44
|
"clip-rule": "evenodd"
|
|
45
45
|
})
|
|
46
46
|
]);
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const ul = { class: "rvc-accordion" }, cl = ["open", "name"], dl = ["innerHTML"], No = {
|
|
49
49
|
__name: "Accordion",
|
|
50
50
|
props: {
|
|
51
51
|
items: {
|
|
@@ -67,37 +67,37 @@ const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"]
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
setup(e) {
|
|
70
|
-
return (t, n) => (
|
|
71
|
-
(
|
|
70
|
+
return (t, n) => ($(), T("div", ul, [
|
|
71
|
+
($(!0), T(Te, null, nt(e.items, (l, r) => ($(), T("details", {
|
|
72
72
|
key: r,
|
|
73
73
|
open: e.defaultOpenIndex === r,
|
|
74
74
|
name: e.name,
|
|
75
75
|
class: "rvc-group/accordion group/accordion"
|
|
76
76
|
}, [
|
|
77
|
-
|
|
77
|
+
S("summary", null, [
|
|
78
78
|
C(t.$slots, "summary", {
|
|
79
79
|
item: l,
|
|
80
80
|
active: e.defaultOpenIndex === r
|
|
81
81
|
}, () => [
|
|
82
|
-
he(
|
|
82
|
+
he(oe(l.title) + " ", 1),
|
|
83
83
|
C(t.$slots, "icon", { classList: "size-5 group-open/accordion:rotate-45 transition-transform" }, () => [
|
|
84
|
-
M(
|
|
84
|
+
M(x(sl), { class: "rvc-size-5 group-open/accordion:rvc-rotate-45 rvc-transition-transform" })
|
|
85
85
|
])
|
|
86
86
|
])
|
|
87
87
|
]),
|
|
88
|
-
|
|
88
|
+
S("div", {
|
|
89
89
|
class: q(["rvc-accordion-content", e.contentClass])
|
|
90
90
|
}, [
|
|
91
91
|
C(t.$slots, "content", { item: l }, () => [
|
|
92
|
-
|
|
92
|
+
S("div", {
|
|
93
93
|
innerHTML: l.content
|
|
94
|
-
}, null, 8,
|
|
94
|
+
}, null, 8, dl)
|
|
95
95
|
])
|
|
96
96
|
], 2)
|
|
97
|
-
], 8,
|
|
97
|
+
], 8, cl))), 128))
|
|
98
98
|
]));
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, fl = { class: "rvc-alert-title" }, jo = {
|
|
101
101
|
__name: "Alert",
|
|
102
102
|
props: {
|
|
103
103
|
as: {
|
|
@@ -124,37 +124,37 @@ const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"]
|
|
|
124
124
|
},
|
|
125
125
|
emits: ["alert:close"],
|
|
126
126
|
setup(e) {
|
|
127
|
-
return (t, n) => (
|
|
127
|
+
return (t, n) => ($(), _(Be(e.as), {
|
|
128
128
|
class: q(["rvc-alert", `rvc-alert-${e.type}`])
|
|
129
129
|
}, {
|
|
130
130
|
default: H(() => [
|
|
131
131
|
C(t.$slots, "icon", {}, () => [
|
|
132
|
-
e.icon ? (
|
|
132
|
+
e.icon ? ($(), _(Be(e.icon), {
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "rvc-alert-icon"
|
|
135
|
-
})) :
|
|
135
|
+
})) : ee("", !0)
|
|
136
136
|
]),
|
|
137
|
-
|
|
137
|
+
S("div", null, [
|
|
138
138
|
C(t.$slots, "title", {}, () => [
|
|
139
|
-
|
|
139
|
+
S("span", fl, oe(e.title), 1)
|
|
140
140
|
]),
|
|
141
141
|
C(t.$slots, "default")
|
|
142
142
|
]),
|
|
143
143
|
C(t.$slots, "close", {}, () => [
|
|
144
|
-
e.close ? (
|
|
144
|
+
e.close ? ($(), T("button", {
|
|
145
145
|
key: 0,
|
|
146
146
|
type: "button",
|
|
147
147
|
class: "rvc-alert-close rvc-transition-colors",
|
|
148
148
|
onClick: n[0] || (n[0] = (l) => t.$emit("alert:close"))
|
|
149
149
|
}, [
|
|
150
|
-
M(
|
|
151
|
-
])) :
|
|
150
|
+
M(x(At), { class: "rvc-size-5" })
|
|
151
|
+
])) : ee("", !0)
|
|
152
152
|
])
|
|
153
153
|
]),
|
|
154
154
|
_: 3
|
|
155
155
|
}, 8, ["class"]));
|
|
156
156
|
}
|
|
157
|
-
},
|
|
157
|
+
}, Ho = {
|
|
158
158
|
__name: "Badge",
|
|
159
159
|
props: {
|
|
160
160
|
as: {
|
|
@@ -177,25 +177,25 @@ const rl = { class: "rvc-accordion" }, ol = ["open", "name"], il = ["innerHTML"]
|
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
setup(e) {
|
|
180
|
-
return (t, n) => (
|
|
180
|
+
return (t, n) => ($(), _(Be(e.as), {
|
|
181
181
|
class: q(["rvc-badge", `rvc-badge-${e.color}`, `rvc-badge-${e.size}`])
|
|
182
182
|
}, {
|
|
183
183
|
default: H(() => [
|
|
184
184
|
C(t.$slots, "default", { label: e.label }, () => [
|
|
185
|
-
he(
|
|
185
|
+
he(oe(e.label), 1)
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
188
188
|
_: 3
|
|
189
189
|
}, 8, ["class"]));
|
|
190
190
|
}
|
|
191
|
-
},
|
|
191
|
+
}, vl = {
|
|
192
192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
193
193
|
fill: "none",
|
|
194
194
|
viewBox: "0 0 24 24"
|
|
195
195
|
};
|
|
196
|
-
function
|
|
197
|
-
return
|
|
198
|
-
|
|
196
|
+
function pl(e, t) {
|
|
197
|
+
return $(), T("svg", vl, t[0] || (t[0] = [
|
|
198
|
+
S("circle", {
|
|
199
199
|
cx: "12",
|
|
200
200
|
cy: "12",
|
|
201
201
|
r: "10",
|
|
@@ -203,13 +203,13 @@ function ul(e, t) {
|
|
|
203
203
|
"stroke-width": "4",
|
|
204
204
|
style: { opacity: ".25" }
|
|
205
205
|
}, null, -1),
|
|
206
|
-
|
|
206
|
+
S("path", {
|
|
207
207
|
fill: "currentColor",
|
|
208
208
|
d: "M4 12a8 8 0 0 1 8-8V0C5.373 0 0 5.373 0 12zm2 5.291A7.96 7.96 0 0 1 4 12H0c0 3.042 1.135 5.824 3 7.938z"
|
|
209
209
|
}, null, -1)
|
|
210
210
|
]));
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const vn = { render: pl }, ml = {
|
|
213
213
|
key: 0,
|
|
214
214
|
class: "rvc-sr-only"
|
|
215
215
|
}, rt = {
|
|
@@ -254,43 +254,47 @@ const cn = { render: ul }, cl = {
|
|
|
254
254
|
},
|
|
255
255
|
setup(e) {
|
|
256
256
|
const t = e;
|
|
257
|
-
return
|
|
257
|
+
return ne(() => {
|
|
258
258
|
t.iconOnly && !t.icon && console.warn("[ButtonBase] Using iconOnly prop without providing an icon may result in an empty button.");
|
|
259
|
-
}), (n, l) => (
|
|
259
|
+
}), (n, l) => ($(), _(Be(e.as), ye(e.bindAs ? { as: e.bindAs } : {}, {
|
|
260
260
|
class: ["rvc-button", `rvc-button-${e.color}`, `rvc-button-${e.size}`, { "rvc-button-reverse": e.iconLeft }, { "rvc-button-icon-only": e.iconOnly }],
|
|
261
261
|
"aria-label": e.iconOnly ? e.label : null,
|
|
262
262
|
"aria-busy": e.spinning
|
|
263
263
|
}), {
|
|
264
264
|
default: H(() => [
|
|
265
|
-
e.iconOnly && e.label ? (
|
|
265
|
+
e.iconOnly && e.label ? ($(), T("span", ml, [
|
|
266
266
|
C(n.$slots, "default", { label: e.label }, () => [
|
|
267
|
-
he(
|
|
267
|
+
he(oe(e.label), 1)
|
|
268
268
|
])
|
|
269
269
|
])) : e.label ? C(n.$slots, "default", {
|
|
270
270
|
key: 1,
|
|
271
271
|
label: e.label
|
|
272
272
|
}, () => [
|
|
273
|
-
he(
|
|
274
|
-
]) :
|
|
273
|
+
he(oe(e.label), 1)
|
|
274
|
+
]) : ee("", !0),
|
|
275
275
|
C(n.$slots, "icon", { icon: e.icon }, () => [
|
|
276
|
-
e.icon && !e.spinning ? (
|
|
276
|
+
e.icon && !e.spinning ? ($(), _(Be(e.icon), {
|
|
277
277
|
key: 0,
|
|
278
278
|
class: "rvc-button-icon",
|
|
279
279
|
"aria-hidden": !e.iconOnly
|
|
280
|
-
}, null, 8, ["aria-hidden"])) :
|
|
280
|
+
}, null, 8, ["aria-hidden"])) : ee("", !0)
|
|
281
281
|
]),
|
|
282
282
|
C(n.$slots, "spinner", { spinning: e.spinning }, () => [
|
|
283
|
-
e.spinning ? (
|
|
283
|
+
e.spinning ? ($(), _(x(vn), {
|
|
284
284
|
key: 0,
|
|
285
285
|
class: "rvc-button-icon rvc-button-icon-loading",
|
|
286
286
|
"aria-hidden": "true"
|
|
287
|
-
})) :
|
|
287
|
+
})) : ee("", !0)
|
|
288
288
|
])
|
|
289
289
|
]),
|
|
290
290
|
_: 3
|
|
291
291
|
}, 16, ["class", "aria-label", "aria-busy"]));
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, pn = () => ({ hasModelBinding: b(() => {
|
|
294
|
+
var n;
|
|
295
|
+
const t = cn();
|
|
296
|
+
return ((n = t == null ? void 0 : t.vnode) == null ? void 0 : n.props) && Object.prototype.hasOwnProperty.call(t.vnode.props, "onUpdate:modelValue");
|
|
297
|
+
}) }), gl = { class: "rvc-checkbox-input peer-focus/checkbox:rvc-focus" }, hl = ["for"], Vo = /* @__PURE__ */ Object.assign({
|
|
294
298
|
inheritAttrs: !1
|
|
295
299
|
}, {
|
|
296
300
|
__name: "Checkbox",
|
|
@@ -301,60 +305,72 @@ const cn = { render: ul }, cl = {
|
|
|
301
305
|
},
|
|
302
306
|
id: {
|
|
303
307
|
type: String,
|
|
304
|
-
|
|
308
|
+
default: null
|
|
305
309
|
},
|
|
306
310
|
label: {
|
|
307
311
|
type: String,
|
|
308
312
|
default: ""
|
|
313
|
+
},
|
|
314
|
+
rootClass: {
|
|
315
|
+
type: String,
|
|
316
|
+
default: ""
|
|
309
317
|
}
|
|
310
318
|
},
|
|
311
319
|
emits: ["update:modelValue"],
|
|
312
320
|
setup(e, { emit: t }) {
|
|
313
321
|
const n = e, l = t, r = b({
|
|
314
322
|
get: () => n.modelValue,
|
|
315
|
-
set: (
|
|
316
|
-
})
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
x("
|
|
326
|
-
|
|
323
|
+
set: (c) => l("update:modelValue", c)
|
|
324
|
+
}), { hasModelBinding: o } = pn(), a = {
|
|
325
|
+
...Zn(),
|
|
326
|
+
id: n.id,
|
|
327
|
+
type: "checkbox",
|
|
328
|
+
class: "rvc-absolute rvc-opacity-0 rvc-inset-0 rvc-cursor-pointer rvc-peer/checkbox"
|
|
329
|
+
};
|
|
330
|
+
return (c, s) => ($(), T("div", {
|
|
331
|
+
class: q(["rvc-checkbox", e.rootClass])
|
|
332
|
+
}, [
|
|
333
|
+
x(o) ? dn(($(), T("input", ye({ key: 0 }, a, {
|
|
334
|
+
"onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
|
|
335
|
+
}), null, 16)), [
|
|
336
|
+
[Qn, r.value]
|
|
337
|
+
]) : ($(), T("input", bt(ye({ key: 1 }, a)), null, 16)),
|
|
338
|
+
S("span", gl, [
|
|
339
|
+
M(x(al))
|
|
327
340
|
]),
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
]) :
|
|
341
|
+
S("div", null, [
|
|
342
|
+
c.$slots.default || e.label ? C(c.$slots, "default", { key: 0 }, () => [
|
|
343
|
+
S("label", { for: e.id }, oe(e.label), 9, hl)
|
|
344
|
+
]) : ee("", !0)
|
|
332
345
|
])
|
|
333
|
-
]));
|
|
346
|
+
], 2));
|
|
334
347
|
}
|
|
335
348
|
});
|
|
336
|
-
function
|
|
337
|
-
return
|
|
349
|
+
function yl(e, t) {
|
|
350
|
+
return $(), T("svg", {
|
|
338
351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
339
352
|
viewBox: "0 0 16 16",
|
|
340
353
|
fill: "currentColor",
|
|
341
354
|
"aria-hidden": "true",
|
|
342
355
|
"data-slot": "icon"
|
|
343
356
|
}, [
|
|
344
|
-
|
|
357
|
+
S("path", {
|
|
345
358
|
"fill-rule": "evenodd",
|
|
346
359
|
d: "M8 14a.75.75 0 0 1-.75-.75V4.56L4.03 7.78a.75.75 0 0 1-1.06-1.06l4.5-4.5a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06L8.75 4.56v8.69A.75.75 0 0 1 8 14Z",
|
|
347
360
|
"clip-rule": "evenodd"
|
|
348
361
|
})
|
|
349
362
|
]);
|
|
350
363
|
}
|
|
351
|
-
const
|
|
364
|
+
const bl = { class: "rvc-overflow-x-auto rvc-pb-4" }, wl = { key: 0 }, xl = ["aria-label", "onClick"], $l = ["innerHTML"], Sl = { key: 1 }, El = ["colspan"], Ol = { key: 2 }, Ll = ["colspan"], Tl = { class: "rvc-flex rvc-gap-x-2 rvc-items-center" }, Io = {
|
|
352
365
|
__name: "DataTable",
|
|
353
366
|
props: {
|
|
354
367
|
headers: {
|
|
355
368
|
type: Array,
|
|
356
369
|
default: () => [],
|
|
357
|
-
validator: (e) => e.every((
|
|
370
|
+
validator: (e) => e.every((n) => {
|
|
371
|
+
const l = !n.align || ["left", "center", "right"].includes(n.align), o = !(n.sortable === !0) || typeof n.key == "string" && n.key.length > 0;
|
|
372
|
+
return o || console.warn("[DataTable] Header item with sortable=true is missing required 'key' property:", n), !l && n.align && console.warn("[DataTable] Header item has invalid 'align' value. Must be 'left', 'center' or 'right':", n), l && o;
|
|
373
|
+
})
|
|
358
374
|
},
|
|
359
375
|
items: {
|
|
360
376
|
type: Array,
|
|
@@ -377,7 +393,7 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
|
|
|
377
393
|
},
|
|
378
394
|
emits: ["table:sortBy"],
|
|
379
395
|
setup(e, { emit: t }) {
|
|
380
|
-
const n = e, l = t, r =
|
|
396
|
+
const n = e, l = t, r = E(null), o = (a) => n.headers.find((c) => c.key === a), i = (a) => {
|
|
381
397
|
!r.value || r.value.key !== a.key ? r.value = {
|
|
382
398
|
key: a.key,
|
|
383
399
|
direction: "asc"
|
|
@@ -386,24 +402,24 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
|
|
|
386
402
|
direction: "desc"
|
|
387
403
|
} : r.value = null, l("table:sortBy", r.value);
|
|
388
404
|
};
|
|
389
|
-
return (a, c) => (
|
|
390
|
-
|
|
405
|
+
return (a, c) => ($(), T("div", bl, [
|
|
406
|
+
S("table", {
|
|
391
407
|
class: q([{ "rvc-table-striped": e.striped }, "rvc-w-full rvc-table"])
|
|
392
408
|
}, [
|
|
393
|
-
e.headers.length ? (
|
|
394
|
-
|
|
409
|
+
e.headers.length ? ($(), T("thead", wl, [
|
|
410
|
+
S("tr", null, [
|
|
395
411
|
C(a.$slots, "headers", { headers: e.headers }, () => [
|
|
396
|
-
(
|
|
412
|
+
($(!0), T(Te, null, nt(e.headers, (s) => {
|
|
397
413
|
var u, d;
|
|
398
|
-
return
|
|
414
|
+
return $(), T("th", ye({ ref_for: !0 }, s, {
|
|
399
415
|
key: `rvc-table-header-${s.id}`,
|
|
400
|
-
class:
|
|
416
|
+
class: {
|
|
401
417
|
"rvc-text-left": s.align === "left" || !s.align,
|
|
402
418
|
"rvc-text-center": s.align === "center",
|
|
403
419
|
"rvc-text-right": s.align === "right"
|
|
404
|
-
}
|
|
405
|
-
}, [
|
|
406
|
-
s.sortable ? (
|
|
420
|
+
}
|
|
421
|
+
}), [
|
|
422
|
+
s.sortable && s.key ? ($(), T("button", {
|
|
407
423
|
key: 0,
|
|
408
424
|
type: "button",
|
|
409
425
|
"aria-label": `Sort on ${s.label}`,
|
|
@@ -420,9 +436,9 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
|
|
|
420
436
|
sortBy: r.value,
|
|
421
437
|
header: s
|
|
422
438
|
}, () => [
|
|
423
|
-
he(
|
|
439
|
+
he(oe(s.label), 1)
|
|
424
440
|
]),
|
|
425
|
-
M(
|
|
441
|
+
M(x(yl), {
|
|
426
442
|
class: q([
|
|
427
443
|
"rvc-size-4 rvc-shrink-0 rvc-transition",
|
|
428
444
|
{
|
|
@@ -432,29 +448,29 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
|
|
|
432
448
|
}
|
|
433
449
|
])
|
|
434
450
|
}, null, 8, ["class"])
|
|
435
|
-
], 10,
|
|
451
|
+
], 10, xl)) : C(a.$slots, "header-label", {
|
|
436
452
|
key: 1,
|
|
437
453
|
sortBy: r.value,
|
|
438
454
|
header: s
|
|
439
455
|
}, () => [
|
|
440
|
-
he(
|
|
456
|
+
he(oe(s.label), 1)
|
|
441
457
|
])
|
|
442
|
-
],
|
|
458
|
+
], 16);
|
|
443
459
|
}), 128))
|
|
444
460
|
])
|
|
445
461
|
])
|
|
446
|
-
])) :
|
|
447
|
-
|
|
448
|
-
e.items.length && !e.spinning ? (
|
|
462
|
+
])) : ee("", !0),
|
|
463
|
+
S("tbody", null, [
|
|
464
|
+
e.items.length && !e.spinning ? ($(!0), T(Te, { key: 0 }, nt(e.items, (s, u) => ($(), T("tr", {
|
|
449
465
|
key: `rvc-table-row-${u}-${s.id}`
|
|
450
466
|
}, [
|
|
451
467
|
C(a.$slots, "items", {
|
|
452
468
|
item: s,
|
|
453
469
|
index: u
|
|
454
470
|
}, () => [
|
|
455
|
-
(
|
|
471
|
+
($(!0), T(Te, null, nt(s, (d, f) => {
|
|
456
472
|
var v, p, m, h;
|
|
457
|
-
return
|
|
473
|
+
return $(), T("td", ye({
|
|
458
474
|
key: `rvc-table-row-${u}-column-${f}-${s.id}`,
|
|
459
475
|
ref_for: !0
|
|
460
476
|
}, s.attrs, {
|
|
@@ -464,18 +480,18 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
|
|
|
464
480
|
"rvc-text-right": ((h = o(f)) == null ? void 0 : h.align) === "right"
|
|
465
481
|
},
|
|
466
482
|
innerHTML: d
|
|
467
|
-
}), null, 16,
|
|
483
|
+
}), null, 16, $l);
|
|
468
484
|
}), 128))
|
|
469
485
|
])
|
|
470
|
-
]))), 128)) : !e.items.length && !e.spinning ? (
|
|
471
|
-
|
|
486
|
+
]))), 128)) : !e.items.length && !e.spinning ? ($(), T("tr", Sl, [
|
|
487
|
+
S("td", {
|
|
472
488
|
colspan: e.headers.length,
|
|
473
489
|
class: "rvc-table-state"
|
|
474
490
|
}, [
|
|
475
|
-
|
|
476
|
-
], 8,
|
|
477
|
-
])) : (
|
|
478
|
-
|
|
491
|
+
S("p", null, oe(e.noResultsText), 1)
|
|
492
|
+
], 8, El)
|
|
493
|
+
])) : ($(), T("tr", Ol, [
|
|
494
|
+
S("td", {
|
|
479
495
|
colspan: e.headers.length,
|
|
480
496
|
class: "rvc-table-state"
|
|
481
497
|
}, [
|
|
@@ -483,34 +499,34 @@ const gl = { class: "rvc-overflow-x-auto rvc-pb-4" }, hl = { key: 0 }, yl = ["ar
|
|
|
483
499
|
spinning: e.spinning,
|
|
484
500
|
label: e.loadingText
|
|
485
501
|
}, () => [
|
|
486
|
-
|
|
487
|
-
e.spinning ? (
|
|
502
|
+
S("div", Tl, [
|
|
503
|
+
e.spinning ? ($(), _(x(vn), {
|
|
488
504
|
key: 0,
|
|
489
505
|
"aria-hidden": "true",
|
|
490
506
|
class: "rvc-table-spinner"
|
|
491
|
-
})) :
|
|
492
|
-
he(" " +
|
|
507
|
+
})) : ee("", !0),
|
|
508
|
+
he(" " + oe(e.loadingText), 1)
|
|
493
509
|
])
|
|
494
510
|
])
|
|
495
|
-
], 8,
|
|
511
|
+
], 8, Ll)
|
|
496
512
|
]))
|
|
497
513
|
])
|
|
498
514
|
], 2)
|
|
499
515
|
]));
|
|
500
516
|
}
|
|
501
517
|
};
|
|
502
|
-
function
|
|
503
|
-
let l =
|
|
518
|
+
function Cl(e, t, n) {
|
|
519
|
+
let l = E(n == null ? void 0 : n.value), r = b(() => e.value !== void 0);
|
|
504
520
|
return [b(() => r.value ? e.value : l.value), function(o) {
|
|
505
521
|
return r.value || (l.value = o), t == null ? void 0 : t(o);
|
|
506
522
|
}];
|
|
507
523
|
}
|
|
508
|
-
function
|
|
524
|
+
function Pt(e) {
|
|
509
525
|
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
510
526
|
throw t;
|
|
511
527
|
}));
|
|
512
528
|
}
|
|
513
|
-
function
|
|
529
|
+
function Ke() {
|
|
514
530
|
let e = [], t = { addEventListener(n, l, r, o) {
|
|
515
531
|
return n.addEventListener(l, r, o), t.add(() => n.removeEventListener(l, r, o));
|
|
516
532
|
}, requestAnimationFrame(...n) {
|
|
@@ -525,7 +541,7 @@ function Ye() {
|
|
|
525
541
|
t.add(() => clearTimeout(l));
|
|
526
542
|
}, microTask(...n) {
|
|
527
543
|
let l = { current: !0 };
|
|
528
|
-
return
|
|
544
|
+
return Pt(() => {
|
|
529
545
|
l.current && n[0]();
|
|
530
546
|
}), t.add(() => {
|
|
531
547
|
l.current = !1;
|
|
@@ -536,7 +552,7 @@ function Ye() {
|
|
|
536
552
|
Object.assign(n.style, { [l]: o });
|
|
537
553
|
});
|
|
538
554
|
}, group(n) {
|
|
539
|
-
let l =
|
|
555
|
+
let l = Ke();
|
|
540
556
|
return n(l), this.add(() => l.dispose());
|
|
541
557
|
}, add(n) {
|
|
542
558
|
return e.push(n), () => {
|
|
@@ -548,10 +564,10 @@ function Ye() {
|
|
|
548
564
|
} };
|
|
549
565
|
return t;
|
|
550
566
|
}
|
|
551
|
-
var
|
|
552
|
-
let
|
|
553
|
-
const
|
|
554
|
-
return
|
|
567
|
+
var Xt;
|
|
568
|
+
let kl = Symbol("headlessui.useid"), Al = 0;
|
|
569
|
+
const be = (Xt = Gt.useId) != null ? Xt : function() {
|
|
570
|
+
return Gt.inject(kl, () => `${++Al}`)();
|
|
555
571
|
};
|
|
556
572
|
function D(e) {
|
|
557
573
|
var t;
|
|
@@ -567,10 +583,10 @@ function pe(e, t, ...n) {
|
|
|
567
583
|
let l = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((r) => `"${r}"`).join(", ")}.`);
|
|
568
584
|
throw Error.captureStackTrace && Error.captureStackTrace(l, pe), l;
|
|
569
585
|
}
|
|
570
|
-
var
|
|
571
|
-
let
|
|
586
|
+
var Pl = Object.defineProperty, Dl = (e, t, n) => t in e ? Pl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Zt = (e, t, n) => (Dl(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
587
|
+
let Rl = class {
|
|
572
588
|
constructor() {
|
|
573
|
-
|
|
589
|
+
Zt(this, "current", this.detect()), Zt(this, "currentId", 0);
|
|
574
590
|
}
|
|
575
591
|
set(t) {
|
|
576
592
|
this.current !== t && (this.currentId = 0, this.current = t);
|
|
@@ -590,9 +606,9 @@ let kl = class {
|
|
|
590
606
|
detect() {
|
|
591
607
|
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
592
608
|
}
|
|
593
|
-
},
|
|
594
|
-
function
|
|
595
|
-
if (
|
|
609
|
+
}, Ye = new Rl();
|
|
610
|
+
function Ne(e) {
|
|
611
|
+
if (Ye.isServer) return null;
|
|
596
612
|
if (e instanceof Node) return e.ownerDocument;
|
|
597
613
|
if (e != null && e.hasOwnProperty("value")) {
|
|
598
614
|
let t = D(e);
|
|
@@ -600,40 +616,40 @@ function Be(e) {
|
|
|
600
616
|
}
|
|
601
617
|
return document;
|
|
602
618
|
}
|
|
603
|
-
let
|
|
604
|
-
var
|
|
605
|
-
function
|
|
606
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
619
|
+
let wt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
620
|
+
var we = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(we || {}), mn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(mn || {}), Fl = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Fl || {});
|
|
621
|
+
function Bl(e = document.body) {
|
|
622
|
+
return e == null ? [] : Array.from(e.querySelectorAll(wt)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
607
623
|
}
|
|
608
|
-
var
|
|
609
|
-
function
|
|
624
|
+
var gn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(gn || {});
|
|
625
|
+
function Ml(e, t = 0) {
|
|
610
626
|
var n;
|
|
611
|
-
return e === ((n =
|
|
612
|
-
return e.matches(
|
|
627
|
+
return e === ((n = Ne(e)) == null ? void 0 : n.body) ? !1 : pe(t, { 0() {
|
|
628
|
+
return e.matches(wt);
|
|
613
629
|
}, 1() {
|
|
614
630
|
let l = e;
|
|
615
631
|
for (; l !== null; ) {
|
|
616
|
-
if (l.matches(
|
|
632
|
+
if (l.matches(wt)) return !0;
|
|
617
633
|
l = l.parentElement;
|
|
618
634
|
}
|
|
619
635
|
return !1;
|
|
620
636
|
} });
|
|
621
637
|
}
|
|
622
|
-
var
|
|
638
|
+
var Nl = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Nl || {});
|
|
623
639
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
624
640
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
625
641
|
}, !0), document.addEventListener("click", (e) => {
|
|
626
642
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
627
643
|
}, !0));
|
|
628
|
-
function
|
|
644
|
+
function Ce(e) {
|
|
629
645
|
e == null || e.focus({ preventScroll: !0 });
|
|
630
646
|
}
|
|
631
|
-
let
|
|
632
|
-
function
|
|
647
|
+
let jl = ["textarea", "input"].join(",");
|
|
648
|
+
function Hl(e) {
|
|
633
649
|
var t, n;
|
|
634
|
-
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e,
|
|
650
|
+
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, jl)) != null ? n : !1;
|
|
635
651
|
}
|
|
636
|
-
function
|
|
652
|
+
function Vl(e, t = (n) => n) {
|
|
637
653
|
return e.slice().sort((n, l) => {
|
|
638
654
|
let r = t(n), o = t(l);
|
|
639
655
|
if (r === null || o === null) return 0;
|
|
@@ -643,7 +659,7 @@ function Nl(e, t = (n) => n) {
|
|
|
643
659
|
}
|
|
644
660
|
function lt(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] } = {}) {
|
|
645
661
|
var o;
|
|
646
|
-
let i = (o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? o : document, a = Array.isArray(e) ? n ?
|
|
662
|
+
let i = (o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? o : document, a = Array.isArray(e) ? n ? Vl(e) : e : Bl(e);
|
|
647
663
|
r.length > 0 && a.length > 1 && (a = a.filter((p) => !r.includes(p))), l = l ?? i.activeElement;
|
|
648
664
|
let c = (() => {
|
|
649
665
|
if (t & 5) return 1;
|
|
@@ -666,28 +682,28 @@ function lt(e, t, { sorted: n = !0, relativeTo: l = null, skipElements: r = [] }
|
|
|
666
682
|
}
|
|
667
683
|
v = a[p], v == null || v.focus(u), d += c;
|
|
668
684
|
} while (v !== i.activeElement);
|
|
669
|
-
return t & 6 &&
|
|
685
|
+
return t & 6 && Hl(v) && v.select(), 2;
|
|
670
686
|
}
|
|
671
|
-
function
|
|
687
|
+
function hn() {
|
|
672
688
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
673
689
|
}
|
|
674
|
-
function
|
|
690
|
+
function Il() {
|
|
675
691
|
return /Android/gi.test(window.navigator.userAgent);
|
|
676
692
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
693
|
+
function Wl() {
|
|
694
|
+
return hn() || Il();
|
|
679
695
|
}
|
|
680
696
|
function Je(e, t, n) {
|
|
681
|
-
|
|
697
|
+
Ye.isServer || ne((l) => {
|
|
682
698
|
document.addEventListener(e, t, n), l(() => document.removeEventListener(e, t, n));
|
|
683
699
|
});
|
|
684
700
|
}
|
|
685
|
-
function
|
|
686
|
-
|
|
701
|
+
function yn(e, t, n) {
|
|
702
|
+
Ye.isServer || ne((l) => {
|
|
687
703
|
window.addEventListener(e, t, n), l(() => window.removeEventListener(e, t, n));
|
|
688
704
|
});
|
|
689
705
|
}
|
|
690
|
-
function
|
|
706
|
+
function Ul(e, t, n = b(() => !0)) {
|
|
691
707
|
function l(o, i) {
|
|
692
708
|
if (!n.value || o.defaultPrevented) return;
|
|
693
709
|
let a = i(o);
|
|
@@ -700,9 +716,9 @@ function Vl(e, t, n = b(() => !0)) {
|
|
|
700
716
|
let u = s instanceof HTMLElement ? s : D(s);
|
|
701
717
|
if (u != null && u.contains(a) || o.composed && o.composedPath().includes(u)) return;
|
|
702
718
|
}
|
|
703
|
-
return !
|
|
719
|
+
return !Ml(a, gn.Loose) && a.tabIndex !== -1 && o.preventDefault(), t(o, a);
|
|
704
720
|
}
|
|
705
|
-
let r =
|
|
721
|
+
let r = E(null);
|
|
706
722
|
Je("pointerdown", (o) => {
|
|
707
723
|
var i, a;
|
|
708
724
|
n.value && (r.value = ((a = (i = o.composedPath) == null ? void 0 : i.call(o)) == null ? void 0 : a[0]) || o.target);
|
|
@@ -710,27 +726,27 @@ function Vl(e, t, n = b(() => !0)) {
|
|
|
710
726
|
var i, a;
|
|
711
727
|
n.value && (r.value = ((a = (i = o.composedPath) == null ? void 0 : i.call(o)) == null ? void 0 : a[0]) || o.target);
|
|
712
728
|
}, !0), Je("click", (o) => {
|
|
713
|
-
|
|
714
|
-
}, !0), Je("touchend", (o) => l(o, () => o.target instanceof HTMLElement ? o.target : null), !0),
|
|
729
|
+
Wl() || r.value && (l(o, () => r.value), r.value = null);
|
|
730
|
+
}, !0), Je("touchend", (o) => l(o, () => o.target instanceof HTMLElement ? o.target : null), !0), yn("blur", (o) => l(o, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
715
731
|
}
|
|
716
|
-
function
|
|
732
|
+
function Qt(e, t) {
|
|
717
733
|
if (e) return e;
|
|
718
734
|
let n = t ?? "button";
|
|
719
735
|
if (typeof n == "string" && n.toLowerCase() === "button") return "button";
|
|
720
736
|
}
|
|
721
|
-
function
|
|
722
|
-
let n =
|
|
737
|
+
function zl(e, t) {
|
|
738
|
+
let n = E(Qt(e.value.type, e.value.as));
|
|
723
739
|
return V(() => {
|
|
724
|
-
n.value =
|
|
725
|
-
}),
|
|
740
|
+
n.value = Qt(e.value.type, e.value.as);
|
|
741
|
+
}), ne(() => {
|
|
726
742
|
var l;
|
|
727
743
|
n.value || D(t) && D(t) instanceof HTMLButtonElement && !((l = D(t)) != null && l.hasAttribute("type")) && (n.value = "button");
|
|
728
744
|
}), n;
|
|
729
745
|
}
|
|
730
|
-
var ot = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ot || {}),
|
|
746
|
+
var ot = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(ot || {}), xe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(xe || {});
|
|
731
747
|
function W({ visible: e = !0, features: t = 0, ourProps: n, theirProps: l, ...r }) {
|
|
732
748
|
var o;
|
|
733
|
-
let i =
|
|
749
|
+
let i = wn(l, n), a = Object.assign(r, { props: i });
|
|
734
750
|
if (e || t & 2 && i.static) return mt(a);
|
|
735
751
|
if (t & 1) {
|
|
736
752
|
let c = (o = i.unmount) == null || o ? 0 : 1;
|
|
@@ -744,20 +760,20 @@ function W({ visible: e = !0, features: t = 0, ourProps: n, theirProps: l, ...r
|
|
|
744
760
|
}
|
|
745
761
|
function mt({ props: e, attrs: t, slots: n, slot: l, name: r }) {
|
|
746
762
|
var o, i;
|
|
747
|
-
let { as: a, ...c } =
|
|
763
|
+
let { as: a, ...c } = Dt(e, ["unmount", "static"]), s = (o = n.default) == null ? void 0 : o.call(n, l), u = {};
|
|
748
764
|
if (l) {
|
|
749
765
|
let d = !1, f = [];
|
|
750
766
|
for (let [v, p] of Object.entries(l)) typeof p == "boolean" && (d = !0), p === !0 && f.push(v);
|
|
751
767
|
d && (u["data-headlessui-state"] = f.join(" "));
|
|
752
768
|
}
|
|
753
769
|
if (a === "template") {
|
|
754
|
-
if (s =
|
|
770
|
+
if (s = bn(s ?? []), Object.keys(c).length > 0 || Object.keys(t).length > 0) {
|
|
755
771
|
let [d, ...f] = s ?? [];
|
|
756
|
-
if (!
|
|
772
|
+
if (!Kl(d) || f.length > 0) throw new Error(['Passing props on "template"!', "", `The current component <${r} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(c).concat(Object.keys(t)).map((m) => m.trim()).filter((m, h, y) => y.indexOf(m) === h).sort((m, h) => m.localeCompare(h)).map((m) => ` - ${m}`).join(`
|
|
757
773
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
|
|
758
774
|
`)].join(`
|
|
759
775
|
`));
|
|
760
|
-
let v =
|
|
776
|
+
let v = wn((i = d.props) != null ? i : {}, c, u), p = Jn(d, v, !0);
|
|
761
777
|
for (let m in v) m.startsWith("on") && (p.props || (p.props = {}), p.props[m] = v[m]);
|
|
762
778
|
return p;
|
|
763
779
|
}
|
|
@@ -765,10 +781,10 @@ function mt({ props: e, attrs: t, slots: n, slot: l, name: r }) {
|
|
|
765
781
|
}
|
|
766
782
|
return N(a, Object.assign({}, c, u), { default: () => s });
|
|
767
783
|
}
|
|
768
|
-
function
|
|
769
|
-
return e.flatMap((t) => t.type ===
|
|
784
|
+
function bn(e) {
|
|
785
|
+
return e.flatMap((t) => t.type === Te ? bn(t.children) : [t]);
|
|
770
786
|
}
|
|
771
|
-
function
|
|
787
|
+
function wn(...e) {
|
|
772
788
|
if (e.length === 0) return {};
|
|
773
789
|
if (e.length === 1) return e[0];
|
|
774
790
|
let t = {}, n = {};
|
|
@@ -783,52 +799,52 @@ function gn(...e) {
|
|
|
783
799
|
} });
|
|
784
800
|
return t;
|
|
785
801
|
}
|
|
786
|
-
function
|
|
802
|
+
function ql(e) {
|
|
787
803
|
let t = Object.assign({}, e);
|
|
788
804
|
for (let n in t) t[n] === void 0 && delete t[n];
|
|
789
805
|
return t;
|
|
790
806
|
}
|
|
791
|
-
function
|
|
807
|
+
function Dt(e, t = []) {
|
|
792
808
|
let n = Object.assign({}, e);
|
|
793
809
|
for (let l of t) l in n && delete n[l];
|
|
794
810
|
return n;
|
|
795
811
|
}
|
|
796
|
-
function
|
|
812
|
+
function Kl(e) {
|
|
797
813
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
798
814
|
}
|
|
799
|
-
var
|
|
815
|
+
var Ue = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ue || {});
|
|
800
816
|
let it = I({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
|
|
801
817
|
return () => {
|
|
802
818
|
var l;
|
|
803
819
|
let { features: r, ...o } = e, i = { "aria-hidden": (r & 2) === 2 ? !0 : (l = o["aria-hidden"]) != null ? l : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
804
820
|
return W({ ourProps: i, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
|
|
805
821
|
};
|
|
806
|
-
} }),
|
|
822
|
+
} }), xn = Symbol("Context");
|
|
807
823
|
var Q = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Q || {});
|
|
808
|
-
function
|
|
809
|
-
return
|
|
824
|
+
function Yl() {
|
|
825
|
+
return Rt() !== null;
|
|
810
826
|
}
|
|
811
|
-
function
|
|
812
|
-
return
|
|
827
|
+
function Rt() {
|
|
828
|
+
return K(xn, null);
|
|
813
829
|
}
|
|
814
|
-
function
|
|
815
|
-
ie(
|
|
830
|
+
function Gl(e) {
|
|
831
|
+
ie(xn, e);
|
|
816
832
|
}
|
|
817
833
|
var at = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(at || {});
|
|
818
|
-
function
|
|
834
|
+
function Xl(e) {
|
|
819
835
|
function t() {
|
|
820
836
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
821
837
|
}
|
|
822
838
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
823
839
|
}
|
|
824
|
-
let
|
|
825
|
-
|
|
840
|
+
let Oe = [];
|
|
841
|
+
Xl(() => {
|
|
826
842
|
function e(t) {
|
|
827
|
-
t.target instanceof HTMLElement && t.target !== document.body &&
|
|
843
|
+
t.target instanceof HTMLElement && t.target !== document.body && Oe[0] !== t.target && (Oe.unshift(t.target), Oe = Oe.filter((n) => n != null && n.isConnected), Oe.splice(10));
|
|
828
844
|
}
|
|
829
845
|
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
830
846
|
});
|
|
831
|
-
function
|
|
847
|
+
function Zl(e) {
|
|
832
848
|
var t, n;
|
|
833
849
|
let l = (t = e == null ? void 0 : e.form) != null ? t : e.closest("form");
|
|
834
850
|
if (l) {
|
|
@@ -839,19 +855,19 @@ function Kl(e) {
|
|
|
839
855
|
(n = l.requestSubmit) == null || n.call(l);
|
|
840
856
|
}
|
|
841
857
|
}
|
|
842
|
-
function
|
|
843
|
-
|
|
858
|
+
function $n(e, t, n, l) {
|
|
859
|
+
Ye.isServer || ne((r) => {
|
|
844
860
|
e = e ?? window, e.addEventListener(t, n, l), r(() => e.removeEventListener(t, n, l));
|
|
845
861
|
});
|
|
846
862
|
}
|
|
847
|
-
var
|
|
848
|
-
function
|
|
849
|
-
let e =
|
|
850
|
-
return
|
|
863
|
+
var Ie = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(Ie || {});
|
|
864
|
+
function Ql() {
|
|
865
|
+
let e = E(0);
|
|
866
|
+
return yn("keydown", (t) => {
|
|
851
867
|
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
852
868
|
}), e;
|
|
853
869
|
}
|
|
854
|
-
function
|
|
870
|
+
function Sn(e) {
|
|
855
871
|
if (!e) return /* @__PURE__ */ new Set();
|
|
856
872
|
if (typeof e == "function") return new Set(e());
|
|
857
873
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -861,26 +877,26 @@ function bn(e) {
|
|
|
861
877
|
}
|
|
862
878
|
return t;
|
|
863
879
|
}
|
|
864
|
-
var
|
|
865
|
-
let
|
|
866
|
-
let r =
|
|
880
|
+
var En = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(En || {});
|
|
881
|
+
let He = Object.assign(I({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: E(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
|
|
882
|
+
let r = E(null);
|
|
867
883
|
l({ el: r, $el: r });
|
|
868
|
-
let o = b(() =>
|
|
869
|
-
V(() => i.value = !0), ae(() => i.value = !1),
|
|
870
|
-
let a =
|
|
871
|
-
|
|
872
|
-
let c =
|
|
884
|
+
let o = b(() => Ne(r)), i = E(!1);
|
|
885
|
+
V(() => i.value = !0), ae(() => i.value = !1), _l({ ownerDocument: o }, b(() => i.value && !!(e.features & 16)));
|
|
886
|
+
let a = er({ ownerDocument: o, container: r, initialFocus: b(() => e.initialFocus) }, b(() => i.value && !!(e.features & 2)));
|
|
887
|
+
tr({ ownerDocument: o, container: r, containers: e.containers, previousActiveElement: a }, b(() => i.value && !!(e.features & 8)));
|
|
888
|
+
let c = Ql();
|
|
873
889
|
function s(v) {
|
|
874
890
|
let p = D(r);
|
|
875
891
|
p && ((m) => m())(() => {
|
|
876
|
-
pe(c.value, { [
|
|
877
|
-
lt(p,
|
|
878
|
-
}, [
|
|
879
|
-
lt(p,
|
|
892
|
+
pe(c.value, { [Ie.Forwards]: () => {
|
|
893
|
+
lt(p, we.First, { skipElements: [v.relatedTarget] });
|
|
894
|
+
}, [Ie.Backwards]: () => {
|
|
895
|
+
lt(p, we.Last, { skipElements: [v.relatedTarget] });
|
|
880
896
|
} });
|
|
881
897
|
});
|
|
882
898
|
}
|
|
883
|
-
let u =
|
|
899
|
+
let u = E(!1);
|
|
884
900
|
function d(v) {
|
|
885
901
|
v.key === "Tab" && (u.value = !0, requestAnimationFrame(() => {
|
|
886
902
|
u.value = !1;
|
|
@@ -888,45 +904,45 @@ let Ne = Object.assign(I({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
888
904
|
}
|
|
889
905
|
function f(v) {
|
|
890
906
|
if (!i.value) return;
|
|
891
|
-
let p =
|
|
907
|
+
let p = Sn(e.containers);
|
|
892
908
|
D(r) instanceof HTMLElement && p.add(D(r));
|
|
893
909
|
let m = v.relatedTarget;
|
|
894
|
-
m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (
|
|
910
|
+
m instanceof HTMLElement && m.dataset.headlessuiFocusGuard !== "true" && (On(p, m) || (u.value ? lt(D(r), pe(c.value, { [Ie.Forwards]: () => we.Next, [Ie.Backwards]: () => we.Previous }) | we.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ce(v.target)));
|
|
895
911
|
}
|
|
896
912
|
return () => {
|
|
897
913
|
let v = {}, p = { ref: r, onKeydown: d, onFocusout: f }, { features: m, initialFocus: h, containers: y, ...g } = e;
|
|
898
|
-
return N(
|
|
914
|
+
return N(Te, [!!(m & 4) && N(it, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: Ue.Focusable }), W({ ourProps: p, theirProps: { ...t, ...g }, slot: v, attrs: t, slots: n, name: "FocusTrap" }), !!(m & 4) && N(it, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: s, features: Ue.Focusable })]);
|
|
899
915
|
};
|
|
900
|
-
} }), { features:
|
|
901
|
-
function
|
|
902
|
-
let t =
|
|
916
|
+
} }), { features: En });
|
|
917
|
+
function Jl(e) {
|
|
918
|
+
let t = E(Oe.slice());
|
|
903
919
|
return de([e], ([n], [l]) => {
|
|
904
|
-
l === !0 && n === !1 ?
|
|
920
|
+
l === !0 && n === !1 ? Pt(() => {
|
|
905
921
|
t.value.splice(0);
|
|
906
|
-
}) : l === !1 && n === !0 && (t.value =
|
|
922
|
+
}) : l === !1 && n === !0 && (t.value = Oe.slice());
|
|
907
923
|
}, { flush: "post" }), () => {
|
|
908
924
|
var n;
|
|
909
925
|
return (n = t.value.find((l) => l != null && l.isConnected)) != null ? n : null;
|
|
910
926
|
};
|
|
911
927
|
}
|
|
912
|
-
function
|
|
913
|
-
let n =
|
|
928
|
+
function _l({ ownerDocument: e }, t) {
|
|
929
|
+
let n = Jl(t);
|
|
914
930
|
V(() => {
|
|
915
|
-
|
|
931
|
+
ne(() => {
|
|
916
932
|
var l, r;
|
|
917
|
-
t.value || ((l = e.value) == null ? void 0 : l.activeElement) === ((r = e.value) == null ? void 0 : r.body) &&
|
|
933
|
+
t.value || ((l = e.value) == null ? void 0 : l.activeElement) === ((r = e.value) == null ? void 0 : r.body) && Ce(n());
|
|
918
934
|
}, { flush: "post" });
|
|
919
935
|
}), ae(() => {
|
|
920
|
-
t.value &&
|
|
936
|
+
t.value && Ce(n());
|
|
921
937
|
});
|
|
922
938
|
}
|
|
923
|
-
function
|
|
924
|
-
let r =
|
|
939
|
+
function er({ ownerDocument: e, container: t, initialFocus: n }, l) {
|
|
940
|
+
let r = E(null), o = E(!1);
|
|
925
941
|
return V(() => o.value = !0), ae(() => o.value = !1), V(() => {
|
|
926
942
|
de([t, n, l], (i, a) => {
|
|
927
943
|
if (i.every((s, u) => (a == null ? void 0 : a[u]) === s) || !l.value) return;
|
|
928
944
|
let c = D(t);
|
|
929
|
-
c &&
|
|
945
|
+
c && Pt(() => {
|
|
930
946
|
var s, u;
|
|
931
947
|
if (!o.value) return;
|
|
932
948
|
let d = D(n), f = (s = e.value) == null ? void 0 : s.activeElement;
|
|
@@ -939,34 +955,34 @@ function Ql({ ownerDocument: e, container: t, initialFocus: n }, l) {
|
|
|
939
955
|
r.value = f;
|
|
940
956
|
return;
|
|
941
957
|
}
|
|
942
|
-
d ?
|
|
958
|
+
d ? Ce(d) : lt(c, we.First | we.NoScroll) === mn.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), r.value = (u = e.value) == null ? void 0 : u.activeElement;
|
|
943
959
|
});
|
|
944
960
|
}, { immediate: !0, flush: "post" });
|
|
945
961
|
}), r;
|
|
946
962
|
}
|
|
947
|
-
function
|
|
963
|
+
function tr({ ownerDocument: e, container: t, containers: n, previousActiveElement: l }, r) {
|
|
948
964
|
var o;
|
|
949
|
-
|
|
965
|
+
$n((o = e.value) == null ? void 0 : o.defaultView, "focus", (i) => {
|
|
950
966
|
if (!r.value) return;
|
|
951
|
-
let a =
|
|
967
|
+
let a = Sn(n);
|
|
952
968
|
D(t) instanceof HTMLElement && a.add(D(t));
|
|
953
969
|
let c = l.value;
|
|
954
970
|
if (!c) return;
|
|
955
971
|
let s = i.target;
|
|
956
|
-
s && s instanceof HTMLElement ?
|
|
972
|
+
s && s instanceof HTMLElement ? On(a, s) ? (l.value = s, Ce(s)) : (i.preventDefault(), i.stopPropagation(), Ce(c)) : Ce(l.value);
|
|
957
973
|
}, !0);
|
|
958
974
|
}
|
|
959
|
-
function
|
|
975
|
+
function On(e, t) {
|
|
960
976
|
for (let n of e) if (n.contains(t)) return !0;
|
|
961
977
|
return !1;
|
|
962
978
|
}
|
|
963
|
-
function
|
|
964
|
-
let t =
|
|
979
|
+
function nr(e) {
|
|
980
|
+
let t = We(e.getSnapshot());
|
|
965
981
|
return ae(e.subscribe(() => {
|
|
966
982
|
t.value = e.getSnapshot();
|
|
967
983
|
})), t;
|
|
968
984
|
}
|
|
969
|
-
function
|
|
985
|
+
function lr(e, t) {
|
|
970
986
|
let n = e(), l = /* @__PURE__ */ new Set();
|
|
971
987
|
return { getSnapshot() {
|
|
972
988
|
return n;
|
|
@@ -977,7 +993,7 @@ function er(e, t) {
|
|
|
977
993
|
i && (n = i, l.forEach((a) => a()));
|
|
978
994
|
} };
|
|
979
995
|
}
|
|
980
|
-
function
|
|
996
|
+
function rr() {
|
|
981
997
|
let e;
|
|
982
998
|
return { before({ doc: t }) {
|
|
983
999
|
var n;
|
|
@@ -988,15 +1004,15 @@ function tr() {
|
|
|
988
1004
|
n.style(l, "paddingRight", `${o}px`);
|
|
989
1005
|
} };
|
|
990
1006
|
}
|
|
991
|
-
function
|
|
992
|
-
return
|
|
1007
|
+
function or() {
|
|
1008
|
+
return hn() ? { before({ doc: e, d: t, meta: n }) {
|
|
993
1009
|
function l(r) {
|
|
994
1010
|
return n.containers.flatMap((o) => o()).some((o) => o.contains(r));
|
|
995
1011
|
}
|
|
996
1012
|
t.microTask(() => {
|
|
997
1013
|
var r;
|
|
998
1014
|
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
999
|
-
let a =
|
|
1015
|
+
let a = Ke();
|
|
1000
1016
|
a.style(e.documentElement, "scrollBehavior", "auto"), t.add(() => t.microTask(() => a.dispose()));
|
|
1001
1017
|
}
|
|
1002
1018
|
let o = (r = window.scrollY) != null ? r : window.pageYOffset, i = null;
|
|
@@ -1031,56 +1047,56 @@ function nr() {
|
|
|
1031
1047
|
});
|
|
1032
1048
|
} } : {};
|
|
1033
1049
|
}
|
|
1034
|
-
function
|
|
1050
|
+
function ir() {
|
|
1035
1051
|
return { before({ doc: e, d: t }) {
|
|
1036
1052
|
t.style(e.documentElement, "overflow", "hidden");
|
|
1037
1053
|
} };
|
|
1038
1054
|
}
|
|
1039
|
-
function
|
|
1055
|
+
function ar(e) {
|
|
1040
1056
|
let t = {};
|
|
1041
1057
|
for (let n of e) Object.assign(t, n(t));
|
|
1042
1058
|
return t;
|
|
1043
1059
|
}
|
|
1044
|
-
let
|
|
1060
|
+
let Le = lr(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
1045
1061
|
var n;
|
|
1046
|
-
let l = (n = this.get(e)) != null ? n : { doc: e, count: 0, d:
|
|
1062
|
+
let l = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Ke(), meta: /* @__PURE__ */ new Set() };
|
|
1047
1063
|
return l.count++, l.meta.add(t), this.set(e, l), this;
|
|
1048
1064
|
}, POP(e, t) {
|
|
1049
1065
|
let n = this.get(e);
|
|
1050
1066
|
return n && (n.count--, n.meta.delete(t)), this;
|
|
1051
1067
|
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
1052
|
-
let l = { doc: e, d: t, meta:
|
|
1068
|
+
let l = { doc: e, d: t, meta: ar(n) }, r = [or(), rr(), ir()];
|
|
1053
1069
|
r.forEach(({ before: o }) => o == null ? void 0 : o(l)), r.forEach(({ after: o }) => o == null ? void 0 : o(l));
|
|
1054
1070
|
}, SCROLL_ALLOW({ d: e }) {
|
|
1055
1071
|
e.dispose();
|
|
1056
1072
|
}, TEARDOWN({ doc: e }) {
|
|
1057
1073
|
this.delete(e);
|
|
1058
1074
|
} });
|
|
1059
|
-
|
|
1060
|
-
let e =
|
|
1075
|
+
Le.subscribe(() => {
|
|
1076
|
+
let e = Le.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
1061
1077
|
for (let [n] of e) t.set(n, n.documentElement.style.overflow);
|
|
1062
1078
|
for (let n of e.values()) {
|
|
1063
1079
|
let l = t.get(n.doc) === "hidden", r = n.count !== 0;
|
|
1064
|
-
(r && !l || !r && l) &&
|
|
1080
|
+
(r && !l || !r && l) && Le.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && Le.dispatch("TEARDOWN", n);
|
|
1065
1081
|
}
|
|
1066
1082
|
});
|
|
1067
|
-
function
|
|
1068
|
-
let l =
|
|
1083
|
+
function sr(e, t, n) {
|
|
1084
|
+
let l = nr(Le), r = b(() => {
|
|
1069
1085
|
let o = e.value ? l.value.get(e.value) : void 0;
|
|
1070
1086
|
return o ? o.count > 0 : !1;
|
|
1071
1087
|
});
|
|
1072
1088
|
return de([e, t], ([o, i], [a], c) => {
|
|
1073
1089
|
if (!o || !i) return;
|
|
1074
|
-
|
|
1090
|
+
Le.dispatch("PUSH", o, n);
|
|
1075
1091
|
let s = !1;
|
|
1076
1092
|
c(() => {
|
|
1077
|
-
s || (
|
|
1093
|
+
s || (Le.dispatch("POP", a ?? o, n), s = !0);
|
|
1078
1094
|
});
|
|
1079
1095
|
}, { immediate: !0 }), r;
|
|
1080
1096
|
}
|
|
1081
|
-
let gt = /* @__PURE__ */ new Map(),
|
|
1082
|
-
function
|
|
1083
|
-
|
|
1097
|
+
let gt = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ new Map();
|
|
1098
|
+
function Jt(e, t = E(!0)) {
|
|
1099
|
+
ne((n) => {
|
|
1084
1100
|
var l;
|
|
1085
1101
|
if (!t.value) return;
|
|
1086
1102
|
let r = D(e);
|
|
@@ -1088,17 +1104,17 @@ function Qt(e, t = $(!0)) {
|
|
|
1088
1104
|
n(function() {
|
|
1089
1105
|
var i;
|
|
1090
1106
|
if (!r) return;
|
|
1091
|
-
let a = (i =
|
|
1092
|
-
if (a === 1 ?
|
|
1107
|
+
let a = (i = Ve.get(r)) != null ? i : 1;
|
|
1108
|
+
if (a === 1 ? Ve.delete(r) : Ve.set(r, a - 1), a !== 1) return;
|
|
1093
1109
|
let c = gt.get(r);
|
|
1094
1110
|
c && (c["aria-hidden"] === null ? r.removeAttribute("aria-hidden") : r.setAttribute("aria-hidden", c["aria-hidden"]), r.inert = c.inert, gt.delete(r));
|
|
1095
1111
|
});
|
|
1096
|
-
let o = (l =
|
|
1097
|
-
|
|
1112
|
+
let o = (l = Ve.get(r)) != null ? l : 0;
|
|
1113
|
+
Ve.set(r, o + 1), o === 0 && (gt.set(r, { "aria-hidden": r.getAttribute("aria-hidden"), inert: r.inert }), r.setAttribute("aria-hidden", "true"), r.inert = !0);
|
|
1098
1114
|
});
|
|
1099
1115
|
}
|
|
1100
|
-
function
|
|
1101
|
-
let l =
|
|
1116
|
+
function ur({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {}) {
|
|
1117
|
+
let l = E(null), r = Ne(l);
|
|
1102
1118
|
function o() {
|
|
1103
1119
|
var i, a, c;
|
|
1104
1120
|
let s = [];
|
|
@@ -1110,26 +1126,26 @@ function ir({ defaultContainers: e = [], portals: t, mainTreeNodeRef: n } = {})
|
|
|
1110
1126
|
return { resolveContainers: o, contains(i) {
|
|
1111
1127
|
return o().some((a) => a.contains(i));
|
|
1112
1128
|
}, mainTreeNodeRef: l, MainTreeNode() {
|
|
1113
|
-
return n != null ? null : N(it, { features:
|
|
1129
|
+
return n != null ? null : N(it, { features: Ue.Hidden, ref: l });
|
|
1114
1130
|
} };
|
|
1115
1131
|
}
|
|
1116
|
-
let
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1132
|
+
let Ln = Symbol("ForcePortalRootContext");
|
|
1133
|
+
function cr() {
|
|
1134
|
+
return K(Ln, !1);
|
|
1119
1135
|
}
|
|
1120
|
-
let
|
|
1121
|
-
return ie(
|
|
1136
|
+
let xt = I({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
|
|
1137
|
+
return ie(Ln, e.force), () => {
|
|
1122
1138
|
let { force: l, ...r } = e;
|
|
1123
1139
|
return W({ theirProps: r, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
|
|
1124
1140
|
};
|
|
1125
|
-
} }),
|
|
1126
|
-
var
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1141
|
+
} }), Tn = Symbol("StackContext");
|
|
1142
|
+
var $t = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))($t || {});
|
|
1143
|
+
function dr() {
|
|
1144
|
+
return K(Tn, () => {
|
|
1129
1145
|
});
|
|
1130
1146
|
}
|
|
1131
|
-
function
|
|
1132
|
-
let r =
|
|
1147
|
+
function fr({ type: e, enabled: t, element: n, onUpdate: l }) {
|
|
1148
|
+
let r = dr();
|
|
1133
1149
|
function o(...i) {
|
|
1134
1150
|
l == null || l(...i), r(...i);
|
|
1135
1151
|
}
|
|
@@ -1139,34 +1155,34 @@ function ur({ type: e, enabled: t, element: n, onUpdate: l }) {
|
|
|
1139
1155
|
}, { immediate: !0, flush: "sync" });
|
|
1140
1156
|
}), ae(() => {
|
|
1141
1157
|
t.value && o(1, e, n);
|
|
1142
|
-
}), ie(
|
|
1158
|
+
}), ie(Tn, o);
|
|
1143
1159
|
}
|
|
1144
|
-
let
|
|
1145
|
-
function
|
|
1146
|
-
let e =
|
|
1160
|
+
let Cn = Symbol("DescriptionContext");
|
|
1161
|
+
function vr() {
|
|
1162
|
+
let e = K(Cn, null);
|
|
1147
1163
|
if (e === null) throw new Error("Missing parent");
|
|
1148
1164
|
return e;
|
|
1149
1165
|
}
|
|
1150
|
-
function
|
|
1151
|
-
let l =
|
|
1166
|
+
function kn({ slot: e = E({}), name: t = "Description", props: n = {} } = {}) {
|
|
1167
|
+
let l = E([]);
|
|
1152
1168
|
function r(o) {
|
|
1153
1169
|
return l.value.push(o), () => {
|
|
1154
1170
|
let i = l.value.indexOf(o);
|
|
1155
1171
|
i !== -1 && l.value.splice(i, 1);
|
|
1156
1172
|
};
|
|
1157
1173
|
}
|
|
1158
|
-
return ie(
|
|
1174
|
+
return ie(Cn, { register: r, slot: e, name: t, props: n }), b(() => l.value.length > 0 ? l.value.join(" ") : void 0);
|
|
1159
1175
|
}
|
|
1160
1176
|
I({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
1161
1177
|
var l;
|
|
1162
|
-
let r = (l = e.id) != null ? l : `headlessui-description-${
|
|
1178
|
+
let r = (l = e.id) != null ? l : `headlessui-description-${be()}`, o = vr();
|
|
1163
1179
|
return V(() => ae(o.register(r))), () => {
|
|
1164
|
-
let { name: i = "Description", slot: a =
|
|
1180
|
+
let { name: i = "Description", slot: a = E({}), props: c = {} } = o, { ...s } = e, u = { ...Object.entries(c).reduce((d, [f, v]) => Object.assign(d, { [f]: x(v) }), {}), id: r };
|
|
1165
1181
|
return W({ ourProps: u, theirProps: s, slot: a.value, attrs: t, slots: n, name: i });
|
|
1166
1182
|
};
|
|
1167
1183
|
} });
|
|
1168
|
-
function
|
|
1169
|
-
let t =
|
|
1184
|
+
function pr(e) {
|
|
1185
|
+
let t = Ne(e);
|
|
1170
1186
|
if (!t) {
|
|
1171
1187
|
if (e === null) return null;
|
|
1172
1188
|
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
|
|
@@ -1176,25 +1192,25 @@ function dr(e) {
|
|
|
1176
1192
|
let l = t.createElement("div");
|
|
1177
1193
|
return l.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(l);
|
|
1178
1194
|
}
|
|
1179
|
-
const
|
|
1180
|
-
function
|
|
1195
|
+
const St = /* @__PURE__ */ new WeakMap();
|
|
1196
|
+
function mr(e) {
|
|
1181
1197
|
var t;
|
|
1182
|
-
return (t =
|
|
1198
|
+
return (t = St.get(e)) != null ? t : 0;
|
|
1183
1199
|
}
|
|
1184
|
-
function
|
|
1185
|
-
let n = t(
|
|
1186
|
-
return n <= 0 ?
|
|
1200
|
+
function _t(e, t) {
|
|
1201
|
+
let n = t(mr(e));
|
|
1202
|
+
return n <= 0 ? St.delete(e) : St.set(e, n), n;
|
|
1187
1203
|
}
|
|
1188
|
-
let
|
|
1189
|
-
let l =
|
|
1190
|
-
a.value &&
|
|
1191
|
-
let c =
|
|
1204
|
+
let An = I({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
1205
|
+
let l = E(null), r = b(() => Ne(l)), o = cr(), i = K(Pn, null), a = E(o === !0 || i == null ? pr(l.value) : i.resolveTarget());
|
|
1206
|
+
a.value && _t(a.value, (f) => f + 1);
|
|
1207
|
+
let c = E(!1);
|
|
1192
1208
|
V(() => {
|
|
1193
1209
|
c.value = !0;
|
|
1194
|
-
}),
|
|
1210
|
+
}), ne(() => {
|
|
1195
1211
|
o || i != null && (a.value = i.resolveTarget());
|
|
1196
1212
|
});
|
|
1197
|
-
let s =
|
|
1213
|
+
let s = K(Et, null), u = !1, d = cn();
|
|
1198
1214
|
return de(l, () => {
|
|
1199
1215
|
if (u || !s) return;
|
|
1200
1216
|
let f = D(l);
|
|
@@ -1202,15 +1218,15 @@ let Ln = I({ name: "Portal", props: { as: { type: [Object, String], default: "di
|
|
|
1202
1218
|
}), ae(() => {
|
|
1203
1219
|
var f, v;
|
|
1204
1220
|
let p = (f = r.value) == null ? void 0 : f.getElementById("headlessui-portal-root");
|
|
1205
|
-
!p || a.value !== p ||
|
|
1221
|
+
!p || a.value !== p || _t(a.value, (m) => m - 1) || a.value.children.length > 0 || (v = a.value.parentElement) == null || v.removeChild(a.value);
|
|
1206
1222
|
}), () => {
|
|
1207
1223
|
if (!c.value || a.value === null) return null;
|
|
1208
1224
|
let f = { ref: l, "data-headlessui-portal": "" };
|
|
1209
|
-
return N(
|
|
1225
|
+
return N(_n, { to: a.value }, W({ ourProps: f, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
1210
1226
|
};
|
|
1211
|
-
} }),
|
|
1212
|
-
function
|
|
1213
|
-
let e =
|
|
1227
|
+
} }), Et = Symbol("PortalParentContext");
|
|
1228
|
+
function gr() {
|
|
1229
|
+
let e = K(Et, null), t = E([]);
|
|
1214
1230
|
function n(o) {
|
|
1215
1231
|
return t.value.push(o), e && e.register(o), () => l(o);
|
|
1216
1232
|
}
|
|
@@ -1220,92 +1236,92 @@ function vr() {
|
|
|
1220
1236
|
}
|
|
1221
1237
|
let r = { register: n, unregister: l, portals: t };
|
|
1222
1238
|
return [t, I({ name: "PortalWrapper", setup(o, { slots: i }) {
|
|
1223
|
-
return ie(
|
|
1239
|
+
return ie(Et, r), () => {
|
|
1224
1240
|
var a;
|
|
1225
1241
|
return (a = i.default) == null ? void 0 : a.call(i);
|
|
1226
1242
|
};
|
|
1227
1243
|
} })];
|
|
1228
1244
|
}
|
|
1229
|
-
let
|
|
1230
|
-
let l =
|
|
1245
|
+
let Pn = Symbol("PortalGroupContext"), hr = I({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
1246
|
+
let l = el({ resolveTarget() {
|
|
1231
1247
|
return e.target;
|
|
1232
1248
|
} });
|
|
1233
|
-
return ie(
|
|
1249
|
+
return ie(Pn, l), () => {
|
|
1234
1250
|
let { target: r, ...o } = e;
|
|
1235
1251
|
return W({ theirProps: o, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
|
|
1236
1252
|
};
|
|
1237
1253
|
} });
|
|
1238
|
-
var
|
|
1239
|
-
let
|
|
1254
|
+
var yr = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(yr || {});
|
|
1255
|
+
let Ot = Symbol("DialogContext");
|
|
1240
1256
|
function Ge(e) {
|
|
1241
|
-
let t =
|
|
1257
|
+
let t = K(Ot, null);
|
|
1242
1258
|
if (t === null) {
|
|
1243
1259
|
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
1244
1260
|
throw Error.captureStackTrace && Error.captureStackTrace(n, Ge), n;
|
|
1245
1261
|
}
|
|
1246
1262
|
return t;
|
|
1247
1263
|
}
|
|
1248
|
-
let _e = "DC8F892D-2EBD-447C-A4C8-A03058436FF4",
|
|
1264
|
+
let _e = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", Dn = I({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: _e }, initialFocus: { type: Object, default: null }, id: { type: String, default: null }, role: { type: String, default: "dialog" } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
|
|
1249
1265
|
var o, i;
|
|
1250
|
-
let a = (o = e.id) != null ? o : `headlessui-dialog-${
|
|
1266
|
+
let a = (o = e.id) != null ? o : `headlessui-dialog-${be()}`, c = E(!1);
|
|
1251
1267
|
V(() => {
|
|
1252
1268
|
c.value = !0;
|
|
1253
1269
|
});
|
|
1254
|
-
let s = !1, u = b(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (s || (s = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), d =
|
|
1270
|
+
let s = !1, u = b(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (s || (s = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), d = E(0), f = Rt(), v = b(() => e.open === _e && f !== null ? (f.value & Q.Open) === Q.Open : e.open), p = E(null), m = b(() => Ne(p));
|
|
1255
1271
|
if (r({ el: p, $el: p }), !(e.open !== _e || f !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
1256
1272
|
if (typeof v.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${v.value === _e ? void 0 : e.open}`);
|
|
1257
|
-
let h = b(() => c.value && v.value ? 0 : 1), y = b(() => h.value === 0), g = b(() => d.value > 1), w =
|
|
1273
|
+
let h = b(() => c.value && v.value ? 0 : 1), y = b(() => h.value === 0), g = b(() => d.value > 1), w = K(Ot, null) !== null, [k, L] = gr(), { resolveContainers: P, mainTreeNodeRef: O, MainTreeNode: R } = ur({ portals: k, defaultContainers: [b(() => {
|
|
1258
1274
|
var A;
|
|
1259
1275
|
return (A = ce.panelRef.value) != null ? A : p.value;
|
|
1260
|
-
})] }), U = b(() => g.value ? "parent" : "leaf"), F = b(() => f !== null ? (f.value & Q.Closing) === Q.Closing : !1), z = b(() => w || F.value ? !1 : y.value),
|
|
1261
|
-
var A, B,
|
|
1262
|
-
return (
|
|
1276
|
+
})] }), U = b(() => g.value ? "parent" : "leaf"), F = b(() => f !== null ? (f.value & Q.Closing) === Q.Closing : !1), z = b(() => w || F.value ? !1 : y.value), Y = b(() => {
|
|
1277
|
+
var A, B, le;
|
|
1278
|
+
return (le = Array.from((B = (A = m.value) == null ? void 0 : A.querySelectorAll("body > *")) != null ? B : []).find((re) => re.id === "headlessui-portal-root" ? !1 : re.contains(D(O)) && re instanceof HTMLElement)) != null ? le : null;
|
|
1263
1279
|
});
|
|
1264
|
-
|
|
1280
|
+
Jt(Y, z);
|
|
1265
1281
|
let j = b(() => g.value ? !0 : y.value), G = b(() => {
|
|
1266
|
-
var A, B,
|
|
1267
|
-
return (
|
|
1282
|
+
var A, B, le;
|
|
1283
|
+
return (le = Array.from((B = (A = m.value) == null ? void 0 : A.querySelectorAll("[data-headlessui-portal]")) != null ? B : []).find((re) => re.contains(D(O)) && re instanceof HTMLElement)) != null ? le : null;
|
|
1268
1284
|
});
|
|
1269
|
-
|
|
1270
|
-
if (B === "Dialog") return pe(A, { [
|
|
1285
|
+
Jt(G, j), fr({ type: "Dialog", enabled: b(() => h.value === 0), element: p, onUpdate: (A, B) => {
|
|
1286
|
+
if (B === "Dialog") return pe(A, { [$t.Add]: () => d.value += 1, [$t.Remove]: () => d.value -= 1 });
|
|
1271
1287
|
} });
|
|
1272
|
-
let X =
|
|
1288
|
+
let X = kn({ name: "DialogDescription", slot: b(() => ({ open: v.value })) }), Z = E(null), ce = { titleId: Z, panelRef: E(null), dialogState: h, setTitleId(A) {
|
|
1273
1289
|
Z.value !== A && (Z.value = A);
|
|
1274
1290
|
}, close() {
|
|
1275
1291
|
t("close", !1);
|
|
1276
1292
|
} };
|
|
1277
|
-
ie(
|
|
1278
|
-
let
|
|
1279
|
-
|
|
1280
|
-
A.preventDefault(), ce.close(),
|
|
1281
|
-
},
|
|
1282
|
-
let
|
|
1283
|
-
|
|
1284
|
-
|
|
1293
|
+
ie(Ot, ce);
|
|
1294
|
+
let qt = b(() => !(!y.value || g.value));
|
|
1295
|
+
Ul(P, (A, B) => {
|
|
1296
|
+
A.preventDefault(), ce.close(), tl(() => B == null ? void 0 : B.focus());
|
|
1297
|
+
}, qt);
|
|
1298
|
+
let Kt = b(() => !(g.value || h.value !== 0));
|
|
1299
|
+
$n((i = m.value) == null ? void 0 : i.defaultView, "keydown", (A) => {
|
|
1300
|
+
Kt.value && (A.defaultPrevented || A.key === at.Escape && (A.preventDefault(), A.stopPropagation(), ce.close()));
|
|
1285
1301
|
});
|
|
1286
1302
|
let Yt = b(() => !(F.value || h.value !== 0 || w));
|
|
1287
|
-
return
|
|
1303
|
+
return sr(m, Yt, (A) => {
|
|
1288
1304
|
var B;
|
|
1289
1305
|
return { containers: [...(B = A.containers) != null ? B : [], P] };
|
|
1290
|
-
}),
|
|
1306
|
+
}), ne((A) => {
|
|
1291
1307
|
if (h.value !== 0) return;
|
|
1292
1308
|
let B = D(p);
|
|
1293
1309
|
if (!B) return;
|
|
1294
|
-
let
|
|
1295
|
-
for (let pt of
|
|
1310
|
+
let le = new ResizeObserver((re) => {
|
|
1311
|
+
for (let pt of re) {
|
|
1296
1312
|
let Qe = pt.target.getBoundingClientRect();
|
|
1297
1313
|
Qe.x === 0 && Qe.y === 0 && Qe.width === 0 && Qe.height === 0 && ce.close();
|
|
1298
1314
|
}
|
|
1299
1315
|
});
|
|
1300
|
-
|
|
1316
|
+
le.observe(B), A(() => le.disconnect());
|
|
1301
1317
|
}), () => {
|
|
1302
|
-
let { open: A, initialFocus: B, ...
|
|
1303
|
-
return N(
|
|
1318
|
+
let { open: A, initialFocus: B, ...le } = e, re = { ...n, ref: p, id: a, role: u.value, "aria-modal": h.value === 0 ? !0 : void 0, "aria-labelledby": Z.value, "aria-describedby": X.value }, pt = { open: h.value === 0 };
|
|
1319
|
+
return N(xt, { force: !0 }, () => [N(An, () => N(hr, { target: p.value }, () => N(xt, { force: !1 }, () => N(He, { initialFocus: B, containers: P, features: y.value ? pe(U.value, { parent: He.features.RestoreFocus, leaf: He.features.All & ~He.features.FocusLock }) : He.features.None }, () => N(L, {}, () => W({ ourProps: re, theirProps: { ...le, ...n }, slot: pt, attrs: n, slots: l, visible: h.value === 0, features: ot.RenderStrategy | ot.Static, name: "Dialog" })))))), N(R)]);
|
|
1304
1320
|
};
|
|
1305
1321
|
} });
|
|
1306
1322
|
I({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
1307
1323
|
var l;
|
|
1308
|
-
let r = (l = e.id) != null ? l : `headlessui-dialog-overlay-${
|
|
1324
|
+
let r = (l = e.id) != null ? l : `headlessui-dialog-overlay-${be()}`, o = Ge("DialogOverlay");
|
|
1309
1325
|
function i(a) {
|
|
1310
1326
|
a.target === a.currentTarget && (a.preventDefault(), a.stopPropagation(), o.close());
|
|
1311
1327
|
}
|
|
@@ -1316,17 +1332,17 @@ I({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div"
|
|
|
1316
1332
|
} });
|
|
1317
1333
|
I({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: l }) {
|
|
1318
1334
|
var r;
|
|
1319
|
-
let o = (r = e.id) != null ? r : `headlessui-dialog-backdrop-${
|
|
1335
|
+
let o = (r = e.id) != null ? r : `headlessui-dialog-backdrop-${be()}`, i = Ge("DialogBackdrop"), a = E(null);
|
|
1320
1336
|
return l({ el: a, $el: a }), V(() => {
|
|
1321
1337
|
if (i.panelRef.value === null) throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
1322
1338
|
}), () => {
|
|
1323
1339
|
let { ...c } = e, s = { id: o, ref: a, "aria-hidden": !0 };
|
|
1324
|
-
return N(
|
|
1340
|
+
return N(xt, { force: !0 }, () => N(An, () => W({ ourProps: s, theirProps: { ...t, ...c }, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
|
|
1325
1341
|
};
|
|
1326
1342
|
} });
|
|
1327
|
-
let
|
|
1343
|
+
let Rn = I({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n, expose: l }) {
|
|
1328
1344
|
var r;
|
|
1329
|
-
let o = (r = e.id) != null ? r : `headlessui-dialog-panel-${
|
|
1345
|
+
let o = (r = e.id) != null ? r : `headlessui-dialog-panel-${be()}`, i = Ge("DialogPanel");
|
|
1330
1346
|
l({ el: i.panelRef, $el: i.panelRef });
|
|
1331
1347
|
function a(c) {
|
|
1332
1348
|
c.stopPropagation();
|
|
@@ -1335,62 +1351,62 @@ let An = I({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
1335
1351
|
let { ...c } = e, s = { id: o, ref: i.panelRef, onClick: a };
|
|
1336
1352
|
return W({ ourProps: s, theirProps: c, slot: { open: i.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
|
|
1337
1353
|
};
|
|
1338
|
-
} }),
|
|
1354
|
+
} }), Fn = I({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
1339
1355
|
var l;
|
|
1340
|
-
let r = (l = e.id) != null ? l : `headlessui-dialog-title-${
|
|
1356
|
+
let r = (l = e.id) != null ? l : `headlessui-dialog-title-${be()}`, o = Ge("DialogTitle");
|
|
1341
1357
|
return V(() => {
|
|
1342
1358
|
o.setTitleId(r), ae(() => o.setTitleId(null));
|
|
1343
1359
|
}), () => {
|
|
1344
1360
|
let { ...i } = e;
|
|
1345
1361
|
return W({ ourProps: { id: r }, theirProps: i, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
|
|
1346
1362
|
};
|
|
1347
|
-
} }),
|
|
1348
|
-
function
|
|
1349
|
-
let e =
|
|
1363
|
+
} }), Bn = Symbol("LabelContext");
|
|
1364
|
+
function Mn() {
|
|
1365
|
+
let e = K(Bn, null);
|
|
1350
1366
|
if (e === null) {
|
|
1351
1367
|
let t = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
1352
|
-
throw Error.captureStackTrace && Error.captureStackTrace(t,
|
|
1368
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t, Mn), t;
|
|
1353
1369
|
}
|
|
1354
1370
|
return e;
|
|
1355
1371
|
}
|
|
1356
|
-
function
|
|
1357
|
-
let l =
|
|
1372
|
+
function br({ slot: e = {}, name: t = "Label", props: n = {} } = {}) {
|
|
1373
|
+
let l = E([]);
|
|
1358
1374
|
function r(o) {
|
|
1359
1375
|
return l.value.push(o), () => {
|
|
1360
1376
|
let i = l.value.indexOf(o);
|
|
1361
1377
|
i !== -1 && l.value.splice(i, 1);
|
|
1362
1378
|
};
|
|
1363
1379
|
}
|
|
1364
|
-
return ie(
|
|
1380
|
+
return ie(Bn, { register: r, slot: e, name: t, props: n }), b(() => l.value.length > 0 ? l.value.join(" ") : void 0);
|
|
1365
1381
|
}
|
|
1366
|
-
let
|
|
1382
|
+
let wr = I({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 }, id: { type: String, default: null } }, setup(e, { slots: t, attrs: n }) {
|
|
1367
1383
|
var l;
|
|
1368
|
-
let r = (l = e.id) != null ? l : `headlessui-label-${
|
|
1384
|
+
let r = (l = e.id) != null ? l : `headlessui-label-${be()}`, o = Mn();
|
|
1369
1385
|
return V(() => ae(o.register(r))), () => {
|
|
1370
|
-
let { name: i = "Label", slot: a = {}, props: c = {} } = o, { passive: s, ...u } = e, d = { ...Object.entries(c).reduce((f, [v, p]) => Object.assign(f, { [v]:
|
|
1386
|
+
let { name: i = "Label", slot: a = {}, props: c = {} } = o, { passive: s, ...u } = e, d = { ...Object.entries(c).reduce((f, [v, p]) => Object.assign(f, { [v]: x(p) }), {}), id: r };
|
|
1371
1387
|
return s && (delete d.onClick, delete d.htmlFor, delete u.onClick), W({ ourProps: d, theirProps: u, slot: a, attrs: n, slots: t, name: i });
|
|
1372
1388
|
};
|
|
1373
|
-
} }),
|
|
1374
|
-
let l =
|
|
1389
|
+
} }), Nn = Symbol("GroupContext"), xr = I({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(e, { slots: t, attrs: n }) {
|
|
1390
|
+
let l = E(null), r = br({ name: "SwitchLabel", props: { htmlFor: b(() => {
|
|
1375
1391
|
var i;
|
|
1376
1392
|
return (i = l.value) == null ? void 0 : i.id;
|
|
1377
1393
|
}), onClick(i) {
|
|
1378
1394
|
l.value && (i.currentTarget.tagName === "LABEL" && i.preventDefault(), l.value.click(), l.value.focus({ preventScroll: !0 }));
|
|
1379
|
-
} } }), o =
|
|
1380
|
-
return ie(
|
|
1381
|
-
} }),
|
|
1395
|
+
} } }), o = kn({ name: "SwitchDescription" });
|
|
1396
|
+
return ie(Nn, { switchRef: l, labelledby: r, describedby: o }), () => W({ theirProps: e, ourProps: {}, slot: {}, slots: t, attrs: n, name: "SwitchGroup" });
|
|
1397
|
+
} }), $r = I({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: !0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 }, id: { type: String, default: null }, disabled: { type: Boolean, default: !1 }, tabIndex: { type: Number, default: 0 } }, inheritAttrs: !1, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
|
|
1382
1398
|
var o;
|
|
1383
|
-
let i = (o = e.id) != null ? o : `headlessui-switch-${
|
|
1399
|
+
let i = (o = e.id) != null ? o : `headlessui-switch-${be()}`, a = K(Nn, null), [c, s] = Cl(b(() => e.modelValue), (g) => t("update:modelValue", g), b(() => e.defaultChecked));
|
|
1384
1400
|
function u() {
|
|
1385
1401
|
s(!c.value);
|
|
1386
1402
|
}
|
|
1387
|
-
let d =
|
|
1403
|
+
let d = E(null), f = a === null ? d : a.switchRef, v = zl(b(() => ({ as: e.as, type: n.type })), f);
|
|
1388
1404
|
r({ el: f, $el: f });
|
|
1389
1405
|
function p(g) {
|
|
1390
1406
|
g.preventDefault(), u();
|
|
1391
1407
|
}
|
|
1392
1408
|
function m(g) {
|
|
1393
|
-
g.key === at.Space ? (g.preventDefault(), u()) : g.key === at.Enter &&
|
|
1409
|
+
g.key === at.Space ? (g.preventDefault(), u()) : g.key === at.Enter && Zl(g.currentTarget);
|
|
1394
1410
|
}
|
|
1395
1411
|
function h(g) {
|
|
1396
1412
|
g.preventDefault();
|
|
@@ -1411,11 +1427,11 @@ let hr = I({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
1411
1427
|
};
|
|
1412
1428
|
}, { immediate: !0 });
|
|
1413
1429
|
}), () => {
|
|
1414
|
-
let { name: g, value: w, form:
|
|
1415
|
-
return N(
|
|
1430
|
+
let { name: g, value: w, form: k, tabIndex: L, ...P } = e, O = { checked: c.value }, R = { id: i, ref: f, role: "switch", type: v.value, tabIndex: L === -1 ? 0 : L, "aria-checked": c.value, "aria-labelledby": a == null ? void 0 : a.labelledby.value, "aria-describedby": a == null ? void 0 : a.describedby.value, onClick: p, onKeyup: m, onKeypress: h };
|
|
1431
|
+
return N(Te, [g != null && c.value != null ? N(it, ql({ features: Ue.Hidden, as: "input", type: "checkbox", hidden: !0, readOnly: !0, checked: c.value, form: k, disabled: P.disabled, name: g, value: w })) : null, W({ ourProps: R, theirProps: { ...n, ...Dt(P, ["modelValue", "defaultChecked"]) }, slot: O, attrs: n, slots: l, name: "Switch" })]);
|
|
1416
1432
|
};
|
|
1417
|
-
} }),
|
|
1418
|
-
function
|
|
1433
|
+
} }), Sr = wr;
|
|
1434
|
+
function Er(e) {
|
|
1419
1435
|
let t = { called: !1 };
|
|
1420
1436
|
return (...n) => {
|
|
1421
1437
|
if (!t.called) return t.called = !0, e(...n);
|
|
@@ -1427,9 +1443,9 @@ function ht(e, ...t) {
|
|
|
1427
1443
|
function et(e, ...t) {
|
|
1428
1444
|
e && t.length > 0 && e.classList.remove(...t);
|
|
1429
1445
|
}
|
|
1430
|
-
var
|
|
1431
|
-
function
|
|
1432
|
-
let n =
|
|
1446
|
+
var Lt = ((e) => (e.Finished = "finished", e.Cancelled = "cancelled", e))(Lt || {});
|
|
1447
|
+
function Or(e, t) {
|
|
1448
|
+
let n = Ke();
|
|
1433
1449
|
if (!e) return n.dispose;
|
|
1434
1450
|
let { transitionDuration: l, transitionDelay: r } = getComputedStyle(e), [o, i] = [l, r].map((a) => {
|
|
1435
1451
|
let [c = 0] = a.split(",").filter(Boolean).map((s) => s.includes("ms") ? parseFloat(s) : parseFloat(s) * 1e3).sort((s, u) => u - s);
|
|
@@ -1437,54 +1453,54 @@ function $r(e, t) {
|
|
|
1437
1453
|
});
|
|
1438
1454
|
return o !== 0 ? n.setTimeout(() => t("finished"), o + i) : t("finished"), n.add(() => t("cancelled")), n.dispose;
|
|
1439
1455
|
}
|
|
1440
|
-
function
|
|
1441
|
-
let i =
|
|
1456
|
+
function en(e, t, n, l, r, o) {
|
|
1457
|
+
let i = Ke(), a = o !== void 0 ? Er(o) : () => {
|
|
1442
1458
|
};
|
|
1443
1459
|
return et(e, ...r), ht(e, ...t, ...n), i.nextFrame(() => {
|
|
1444
|
-
et(e, ...n), ht(e, ...l), i.add(
|
|
1460
|
+
et(e, ...n), ht(e, ...l), i.add(Or(e, (c) => (et(e, ...l, ...t), ht(e, ...r), a(c))));
|
|
1445
1461
|
}), i.add(() => et(e, ...t, ...n, ...l, ...r)), i.add(() => a("cancelled")), i.dispose;
|
|
1446
1462
|
}
|
|
1447
|
-
function
|
|
1463
|
+
function Ee(e = "") {
|
|
1448
1464
|
return e.split(/\s+/).filter((t) => t.length > 1);
|
|
1449
1465
|
}
|
|
1450
|
-
let
|
|
1451
|
-
var
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1466
|
+
let Ft = Symbol("TransitionContext");
|
|
1467
|
+
var Lr = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Lr || {});
|
|
1468
|
+
function Tr() {
|
|
1469
|
+
return K(Ft, null) !== null;
|
|
1454
1470
|
}
|
|
1455
|
-
function
|
|
1456
|
-
let e =
|
|
1471
|
+
function Cr() {
|
|
1472
|
+
let e = K(Ft, null);
|
|
1457
1473
|
if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
1458
1474
|
return e;
|
|
1459
1475
|
}
|
|
1460
|
-
function
|
|
1461
|
-
let e =
|
|
1476
|
+
function kr() {
|
|
1477
|
+
let e = K(Bt, null);
|
|
1462
1478
|
if (e === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
|
|
1463
1479
|
return e;
|
|
1464
1480
|
}
|
|
1465
|
-
let
|
|
1481
|
+
let Bt = Symbol("NestingContext");
|
|
1466
1482
|
function ct(e) {
|
|
1467
1483
|
return "children" in e ? ct(e.children) : e.value.filter(({ state: t }) => t === "visible").length > 0;
|
|
1468
1484
|
}
|
|
1469
|
-
function
|
|
1470
|
-
let t =
|
|
1485
|
+
function jn(e) {
|
|
1486
|
+
let t = E([]), n = E(!1);
|
|
1471
1487
|
V(() => n.value = !0), ae(() => n.value = !1);
|
|
1472
|
-
function l(o, i =
|
|
1488
|
+
function l(o, i = xe.Hidden) {
|
|
1473
1489
|
let a = t.value.findIndex(({ id: c }) => c === o);
|
|
1474
|
-
a !== -1 && (pe(i, { [
|
|
1490
|
+
a !== -1 && (pe(i, { [xe.Unmount]() {
|
|
1475
1491
|
t.value.splice(a, 1);
|
|
1476
|
-
}, [
|
|
1492
|
+
}, [xe.Hidden]() {
|
|
1477
1493
|
t.value[a].state = "hidden";
|
|
1478
1494
|
} }), !ct(t) && n.value && (e == null || e()));
|
|
1479
1495
|
}
|
|
1480
1496
|
function r(o) {
|
|
1481
1497
|
let i = t.value.find(({ id: a }) => a === o);
|
|
1482
|
-
return i ? i.state !== "visible" && (i.state = "visible") : t.value.push({ id: o, state: "visible" }), () => l(o,
|
|
1498
|
+
return i ? i.state !== "visible" && (i.state = "visible") : t.value.push({ id: o, state: "visible" }), () => l(o, xe.Unmount);
|
|
1483
1499
|
}
|
|
1484
1500
|
return { children: t, register: r, unregister: l };
|
|
1485
1501
|
}
|
|
1486
|
-
let
|
|
1487
|
-
let o =
|
|
1502
|
+
let Hn = ot.RenderStrategy, ze = I({ props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: l, expose: r }) {
|
|
1503
|
+
let o = E(0);
|
|
1488
1504
|
function i() {
|
|
1489
1505
|
o.value |= Q.Opening, t("beforeEnter");
|
|
1490
1506
|
}
|
|
@@ -1497,17 +1513,17 @@ let Bn = ot.RenderStrategy, Ue = I({ props: { as: { type: [Object, String], defa
|
|
|
1497
1513
|
function s() {
|
|
1498
1514
|
o.value &= ~Q.Closing, t("afterLeave");
|
|
1499
1515
|
}
|
|
1500
|
-
if (!
|
|
1501
|
-
let u =
|
|
1516
|
+
if (!Tr() && Yl()) return () => N(Mt, { ...e, onBeforeEnter: i, onAfterEnter: a, onBeforeLeave: c, onAfterLeave: s }, l);
|
|
1517
|
+
let u = E(null), d = b(() => e.unmount ? xe.Unmount : xe.Hidden);
|
|
1502
1518
|
r({ el: u, $el: u });
|
|
1503
|
-
let { show: f, appear: v } =
|
|
1519
|
+
let { show: f, appear: v } = Cr(), { register: p, unregister: m } = kr(), h = E(f.value ? "visible" : "hidden"), y = { value: !0 }, g = be(), w = { value: !1 }, k = jn(() => {
|
|
1504
1520
|
!w.value && h.value !== "hidden" && (h.value = "hidden", m(g), s());
|
|
1505
1521
|
});
|
|
1506
1522
|
V(() => {
|
|
1507
1523
|
let j = p(g);
|
|
1508
1524
|
ae(j);
|
|
1509
|
-
}),
|
|
1510
|
-
if (d.value ===
|
|
1525
|
+
}), ne(() => {
|
|
1526
|
+
if (d.value === xe.Hidden && g) {
|
|
1511
1527
|
if (f.value && h.value !== "visible") {
|
|
1512
1528
|
h.value = "visible";
|
|
1513
1529
|
return;
|
|
@@ -1515,50 +1531,50 @@ let Bn = ot.RenderStrategy, Ue = I({ props: { as: { type: [Object, String], defa
|
|
|
1515
1531
|
pe(h.value, { hidden: () => m(g), visible: () => p(g) });
|
|
1516
1532
|
}
|
|
1517
1533
|
});
|
|
1518
|
-
let L =
|
|
1534
|
+
let L = Ee(e.enter), P = Ee(e.enterFrom), O = Ee(e.enterTo), R = Ee(e.entered), U = Ee(e.leave), F = Ee(e.leaveFrom), z = Ee(e.leaveTo);
|
|
1519
1535
|
V(() => {
|
|
1520
|
-
|
|
1536
|
+
ne(() => {
|
|
1521
1537
|
if (h.value === "visible") {
|
|
1522
1538
|
let j = D(u);
|
|
1523
1539
|
if (j instanceof Comment && j.data === "") throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
1524
1540
|
}
|
|
1525
1541
|
});
|
|
1526
1542
|
});
|
|
1527
|
-
function
|
|
1543
|
+
function Y(j) {
|
|
1528
1544
|
let G = y.value && !v.value, X = D(u);
|
|
1529
|
-
!X || !(X instanceof HTMLElement) || G || (w.value = !0, f.value && i(), f.value || c(), j(f.value ?
|
|
1530
|
-
w.value = !1, Z ===
|
|
1531
|
-
}) :
|
|
1532
|
-
w.value = !1, Z ===
|
|
1545
|
+
!X || !(X instanceof HTMLElement) || G || (w.value = !0, f.value && i(), f.value || c(), j(f.value ? en(X, L, P, O, R, (Z) => {
|
|
1546
|
+
w.value = !1, Z === Lt.Finished && a();
|
|
1547
|
+
}) : en(X, U, F, z, R, (Z) => {
|
|
1548
|
+
w.value = !1, Z === Lt.Finished && (ct(k) || (h.value = "hidden", m(g), s()));
|
|
1533
1549
|
})));
|
|
1534
1550
|
}
|
|
1535
1551
|
return V(() => {
|
|
1536
1552
|
de([f], (j, G, X) => {
|
|
1537
|
-
|
|
1553
|
+
Y(X), y.value = !1;
|
|
1538
1554
|
}, { immediate: !0 });
|
|
1539
|
-
}), ie(
|
|
1540
|
-
let { appear: j, show: G, enter: X, enterFrom: Z, enterTo: ce, entered:
|
|
1541
|
-
return W({ theirProps:
|
|
1555
|
+
}), ie(Bt, k), Gl(b(() => pe(h.value, { visible: Q.Open, hidden: Q.Closed }) | o.value)), () => {
|
|
1556
|
+
let { appear: j, show: G, enter: X, enterFrom: Z, enterTo: ce, entered: qt, leave: Kt, leaveFrom: Yt, leaveTo: A, ...B } = e, le = { ref: u }, re = { ...B, ...v.value && f.value && Ye.isServer ? { class: q([n.class, B.class, ...L, ...P]) } : {} };
|
|
1557
|
+
return W({ theirProps: re, ourProps: le, slot: {}, slots: l, attrs: n, features: Hn, visible: h.value === "visible", name: "TransitionChild" });
|
|
1542
1558
|
};
|
|
1543
|
-
} }),
|
|
1544
|
-
let r =
|
|
1545
|
-
|
|
1559
|
+
} }), Ar = ze, Mt = I({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: l }) {
|
|
1560
|
+
let r = Rt(), o = b(() => e.show === null && r !== null ? (r.value & Q.Open) === Q.Open : e.show);
|
|
1561
|
+
ne(() => {
|
|
1546
1562
|
if (![!0, !1].includes(o.value)) throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
1547
1563
|
});
|
|
1548
|
-
let i =
|
|
1564
|
+
let i = E(o.value ? "visible" : "hidden"), a = jn(() => {
|
|
1549
1565
|
i.value = "hidden";
|
|
1550
|
-
}), c =
|
|
1566
|
+
}), c = E(!0), s = { show: o, appear: b(() => e.appear || !c.value) };
|
|
1551
1567
|
return V(() => {
|
|
1552
|
-
|
|
1568
|
+
ne(() => {
|
|
1553
1569
|
c.value = !1, o.value ? i.value = "visible" : ct(a) || (i.value = "hidden");
|
|
1554
1570
|
});
|
|
1555
|
-
}), ie(
|
|
1556
|
-
let u =
|
|
1557
|
-
return W({ ourProps: { ...d, as: "template" }, theirProps: {}, slot: {}, slots: { ...l, default: () => [N(
|
|
1571
|
+
}), ie(Bt, a), ie(Ft, s), () => {
|
|
1572
|
+
let u = Dt(e, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), d = { unmount: e.unmount };
|
|
1573
|
+
return W({ ourProps: { ...d, as: "template" }, theirProps: {}, slot: {}, slots: { ...l, default: () => [N(Ar, { onBeforeEnter: () => t("beforeEnter"), onAfterEnter: () => t("afterEnter"), onBeforeLeave: () => t("beforeLeave"), onAfterLeave: () => t("afterLeave"), ...n, ...d, ...u }, l.default)] }, attrs: {}, features: Hn, visible: i.value === "visible", name: "Transition" });
|
|
1558
1574
|
};
|
|
1559
1575
|
} });
|
|
1560
|
-
function
|
|
1561
|
-
const t =
|
|
1576
|
+
function Vn(e) {
|
|
1577
|
+
const t = E(null), n = E(!1), l = b(() => e.as === "form"), r = b(() => `${e.id}-title`), o = b(() => `${e.id}-content`), i = b(() => {
|
|
1562
1578
|
var a;
|
|
1563
1579
|
return (a = t.value) == null ? void 0 : a.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
1564
1580
|
});
|
|
@@ -1571,13 +1587,13 @@ function Mn(e) {
|
|
|
1571
1587
|
initialFocusElement: i
|
|
1572
1588
|
};
|
|
1573
1589
|
}
|
|
1574
|
-
const
|
|
1590
|
+
const Pr = {
|
|
1575
1591
|
class: "rvc-fixed rvc-inset-0 rvc-overflow-hidden",
|
|
1576
1592
|
role: "presentation"
|
|
1577
|
-
},
|
|
1593
|
+
}, Dr = { class: "rvc-absolute rvc-inset-0 rvc-overflow-hidden" }, Rr = { class: "rvc-pointer-events-none rvc-fixed rvc-inset-y-0 rvc-right-0 rvc-flex rvc-max-w-full rvc-pl-10" }, Fr = { class: "rvc-flex rvc-h-full rvc-flex-col rvc-shadow-xl" }, Br = { class: "rvc-flex rvc-items-center rvc-justify-between" }, Mr = {
|
|
1578
1594
|
key: 0,
|
|
1579
1595
|
class: "rvc-ml-3 rvc-flex rvc-h-7 rvc-items-center"
|
|
1580
|
-
},
|
|
1596
|
+
}, Nr = ["id"], jr = { class: "rvc-flex rvc-shrink-0 rvc-drawer-footer" }, Uo = {
|
|
1581
1597
|
__name: "Drawer",
|
|
1582
1598
|
props: {
|
|
1583
1599
|
as: {
|
|
@@ -1626,22 +1642,22 @@ const Cr = {
|
|
|
1626
1642
|
titleId: a,
|
|
1627
1643
|
descriptionId: c,
|
|
1628
1644
|
initialFocusElement: s
|
|
1629
|
-
} =
|
|
1630
|
-
return (u, d) => (
|
|
1645
|
+
} = Vn(l);
|
|
1646
|
+
return (u, d) => ($(), _(x(Mt), { as: "template" }, {
|
|
1631
1647
|
default: H(() => [
|
|
1632
|
-
M(
|
|
1648
|
+
M(x(Dn), {
|
|
1633
1649
|
as: e.as,
|
|
1634
1650
|
class: "rvc-drawer",
|
|
1635
1651
|
static: "",
|
|
1636
1652
|
"aria-modal": "true",
|
|
1637
1653
|
role: "dialog",
|
|
1638
|
-
"initial-focus":
|
|
1639
|
-
"aria-labelledby":
|
|
1654
|
+
"initial-focus": x(s),
|
|
1655
|
+
"aria-labelledby": x(a),
|
|
1640
1656
|
onClose: d[5] || (d[5] = (f) => u.$emit("drawer:close")),
|
|
1641
|
-
onSubmit: d[6] || (d[6] =
|
|
1657
|
+
onSubmit: d[6] || (d[6] = fn((f) => n("drawer:save", f), ["prevent"]))
|
|
1642
1658
|
}, {
|
|
1643
1659
|
default: H(() => [
|
|
1644
|
-
M(
|
|
1660
|
+
M(x(ze), {
|
|
1645
1661
|
as: "template",
|
|
1646
1662
|
enter: "rvc-ease-in-out rvc-duration-500",
|
|
1647
1663
|
"enter-from": "rvc-opacity-0",
|
|
@@ -1652,17 +1668,17 @@ const Cr = {
|
|
|
1652
1668
|
onBeforeEnter: d[0] || (d[0] = (f) => n("drawer:open"))
|
|
1653
1669
|
}, {
|
|
1654
1670
|
default: H(() => d[7] || (d[7] = [
|
|
1655
|
-
|
|
1671
|
+
S("div", {
|
|
1656
1672
|
class: "rvc-fixed rvc-inset-0 rvc-transition-opacity rvc-drawer-backdrop",
|
|
1657
1673
|
"aria-hidden": "true"
|
|
1658
1674
|
}, null, -1)
|
|
1659
1675
|
])),
|
|
1660
1676
|
_: 1
|
|
1661
1677
|
}),
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
M(
|
|
1678
|
+
S("div", Pr, [
|
|
1679
|
+
S("div", Dr, [
|
|
1680
|
+
S("div", Rr, [
|
|
1681
|
+
M(x(ze), {
|
|
1666
1682
|
as: "template",
|
|
1667
1683
|
enter: "rvc-transform rvc-transition rvc-ease-in-out rvc-duration-500 sm:rvc-duration-700",
|
|
1668
1684
|
"enter-from": "rvc-translate-x-full",
|
|
@@ -1674,59 +1690,59 @@ const Cr = {
|
|
|
1674
1690
|
onAfterLeave: d[4] || (d[4] = (f) => (o.value = !1, n("drawer:closed")))
|
|
1675
1691
|
}, {
|
|
1676
1692
|
default: H(() => [
|
|
1677
|
-
M(
|
|
1693
|
+
M(x(Rn), {
|
|
1678
1694
|
class: q(["rvc-pointer-events-auto rvc-w-screen", e.panelClass]),
|
|
1679
1695
|
"aria-busy": e.spinning,
|
|
1680
|
-
"aria-describedby":
|
|
1696
|
+
"aria-describedby": x(c)
|
|
1681
1697
|
}, {
|
|
1682
1698
|
default: H(() => [
|
|
1683
|
-
|
|
1684
|
-
|
|
1699
|
+
S("div", Fr, [
|
|
1700
|
+
S("header", {
|
|
1685
1701
|
class: q([{ "rvc-sticky rvc-top-0 rvc-left-0 rvc-w-full rvc-z-10": e.headerSticky }, "rvc-drawer-header"])
|
|
1686
1702
|
}, [
|
|
1687
1703
|
C(u.$slots, "header", {
|
|
1688
1704
|
title: e.title,
|
|
1689
1705
|
showClose: e.showClose
|
|
1690
1706
|
}, () => [
|
|
1691
|
-
|
|
1692
|
-
M(
|
|
1693
|
-
id:
|
|
1707
|
+
S("div", Br, [
|
|
1708
|
+
M(x(Fn), {
|
|
1709
|
+
id: x(a),
|
|
1694
1710
|
class: "rvc-drawer-title"
|
|
1695
1711
|
}, {
|
|
1696
1712
|
default: H(() => [
|
|
1697
|
-
he(
|
|
1713
|
+
he(oe(e.title), 1)
|
|
1698
1714
|
]),
|
|
1699
1715
|
_: 1
|
|
1700
1716
|
}, 8, ["id"]),
|
|
1701
|
-
e.showClose ? (
|
|
1702
|
-
|
|
1717
|
+
e.showClose ? ($(), T("div", Mr, [
|
|
1718
|
+
S("button", {
|
|
1703
1719
|
type: "button",
|
|
1704
1720
|
class: "rvc-relative rvc-drawer-close",
|
|
1705
1721
|
"aria-label": "Close panel",
|
|
1706
1722
|
onClick: d[1] || (d[1] = (f) => n("drawer:close"))
|
|
1707
1723
|
}, [
|
|
1708
|
-
M(
|
|
1724
|
+
M(x(At), {
|
|
1709
1725
|
class: "rvc-size-full",
|
|
1710
1726
|
"aria-hidden": "true"
|
|
1711
1727
|
})
|
|
1712
1728
|
])
|
|
1713
|
-
])) :
|
|
1729
|
+
])) : ee("", !0)
|
|
1714
1730
|
])
|
|
1715
1731
|
])
|
|
1716
1732
|
], 2),
|
|
1717
|
-
|
|
1733
|
+
S("div", {
|
|
1718
1734
|
class: q([e.scrolledDown ? "rvc-flex-col-reverse" : "rvc-flex-col", "rvc-flex rvc-min-h-0 rvc-flex-1 rvc-overflow-y-scroll"])
|
|
1719
1735
|
}, [
|
|
1720
|
-
|
|
1721
|
-
id:
|
|
1736
|
+
S("div", {
|
|
1737
|
+
id: x(c),
|
|
1722
1738
|
ref_key: "contentRef",
|
|
1723
1739
|
ref: r,
|
|
1724
1740
|
class: "rvc-relative rvc-flex-1 rvc-drawer-content"
|
|
1725
1741
|
}, [
|
|
1726
|
-
C(u.$slots, "default", { ready:
|
|
1727
|
-
], 8,
|
|
1742
|
+
C(u.$slots, "default", { ready: x(o) })
|
|
1743
|
+
], 8, Nr)
|
|
1728
1744
|
], 2),
|
|
1729
|
-
|
|
1745
|
+
S("footer", jr, [
|
|
1730
1746
|
C(u.$slots, "footer", { loading: e.spinning }, () => [
|
|
1731
1747
|
M(rt, {
|
|
1732
1748
|
type: "button",
|
|
@@ -1734,13 +1750,13 @@ const Cr = {
|
|
|
1734
1750
|
color: "light",
|
|
1735
1751
|
onClick: d[2] || (d[2] = (f) => n("drawer:close"))
|
|
1736
1752
|
}, null, 8, ["label"]),
|
|
1737
|
-
|
|
1753
|
+
x(i) ? ($(), _(rt, {
|
|
1738
1754
|
key: 0,
|
|
1739
1755
|
type: "submit",
|
|
1740
1756
|
label: e.submitLabel,
|
|
1741
1757
|
spinning: e.spinning,
|
|
1742
1758
|
disabled: e.spinning
|
|
1743
|
-
}, null, 8, ["label", "spinning", "disabled"])) :
|
|
1759
|
+
}, null, 8, ["label", "spinning", "disabled"])) : ee("", !0)
|
|
1744
1760
|
])
|
|
1745
1761
|
])
|
|
1746
1762
|
])
|
|
@@ -1760,7 +1776,69 @@ const Cr = {
|
|
|
1760
1776
|
_: 3
|
|
1761
1777
|
}));
|
|
1762
1778
|
}
|
|
1763
|
-
}
|
|
1779
|
+
};
|
|
1780
|
+
function Hr(e, t) {
|
|
1781
|
+
return $(), T("svg", {
|
|
1782
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1783
|
+
viewBox: "0 0 20 20",
|
|
1784
|
+
fill: "currentColor",
|
|
1785
|
+
"aria-hidden": "true",
|
|
1786
|
+
"data-slot": "icon"
|
|
1787
|
+
}, [
|
|
1788
|
+
S("path", {
|
|
1789
|
+
"fill-rule": "evenodd",
|
|
1790
|
+
d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
|
|
1791
|
+
"clip-rule": "evenodd"
|
|
1792
|
+
})
|
|
1793
|
+
]);
|
|
1794
|
+
}
|
|
1795
|
+
const zo = /* @__PURE__ */ Object.assign({
|
|
1796
|
+
inheritAttrs: !1
|
|
1797
|
+
}, {
|
|
1798
|
+
__name: "FormSelect",
|
|
1799
|
+
props: {
|
|
1800
|
+
modelValue: {
|
|
1801
|
+
type: [String, Number, Object],
|
|
1802
|
+
default: null
|
|
1803
|
+
},
|
|
1804
|
+
rootClass: {
|
|
1805
|
+
type: String,
|
|
1806
|
+
default: ""
|
|
1807
|
+
},
|
|
1808
|
+
icon: {
|
|
1809
|
+
type: [Object, Function],
|
|
1810
|
+
default: null
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
emits: ["update:modelValue"],
|
|
1814
|
+
setup(e, { emit: t }) {
|
|
1815
|
+
const n = e, l = t, r = b({
|
|
1816
|
+
get: () => n.modelValue,
|
|
1817
|
+
set: (i) => l("update:modelValue", i)
|
|
1818
|
+
}), { hasModelBinding: o } = pn();
|
|
1819
|
+
return (i, a) => ($(), T("div", {
|
|
1820
|
+
class: q([
|
|
1821
|
+
"rvc-select",
|
|
1822
|
+
e.rootClass
|
|
1823
|
+
])
|
|
1824
|
+
}, [
|
|
1825
|
+
C(i.$slots, "select", bt(nl(i.$attrs)), () => [
|
|
1826
|
+
x(o) ? dn(($(), T("select", ye({ key: 0 }, i.$attrs, {
|
|
1827
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => r.value = c)
|
|
1828
|
+
}), [
|
|
1829
|
+
C(i.$slots, "default")
|
|
1830
|
+
], 16)), [
|
|
1831
|
+
[ll, r.value]
|
|
1832
|
+
]) : ($(), T("select", bt(ye({ key: 1 }, i.$attrs)), [
|
|
1833
|
+
C(i.$slots, "default")
|
|
1834
|
+
], 16))
|
|
1835
|
+
]),
|
|
1836
|
+
C(i.$slots, "icon", { icon: e.icon }, () => [
|
|
1837
|
+
($(), _(Be(e.icon ?? x(Hr)), { "aria-hidden": "true" }))
|
|
1838
|
+
])
|
|
1839
|
+
], 2));
|
|
1840
|
+
}
|
|
1841
|
+
}), qo = /* @__PURE__ */ Object.assign({
|
|
1764
1842
|
inheritAttrs: !1
|
|
1765
1843
|
}, {
|
|
1766
1844
|
__name: "Lightswitch",
|
|
@@ -1776,40 +1854,40 @@ const Cr = {
|
|
|
1776
1854
|
get: () => n.modelValue,
|
|
1777
1855
|
set: (o) => l("update:modelValue", o)
|
|
1778
1856
|
});
|
|
1779
|
-
return (o, i) => (
|
|
1857
|
+
return (o, i) => ($(), _(x(xr), {
|
|
1780
1858
|
as: "div",
|
|
1781
1859
|
class: "rvc-lightswitch-group"
|
|
1782
1860
|
}, {
|
|
1783
1861
|
default: H(() => [
|
|
1784
|
-
M(
|
|
1862
|
+
M(x($r), ye({
|
|
1785
1863
|
modelValue: r.value,
|
|
1786
1864
|
"onUpdate:modelValue": i[0] || (i[0] = (a) => r.value = a),
|
|
1787
1865
|
class: [{ "rvc-lightswitch-enabled": r.value }, "rvc-lightswitch"]
|
|
1788
1866
|
}, o.$attrs), {
|
|
1789
1867
|
default: H(() => [
|
|
1790
|
-
|
|
1868
|
+
S("span", {
|
|
1791
1869
|
class: q([{ "rvc-translate-x-6": r.value }, "rvc-lightswitch-toggle"])
|
|
1792
1870
|
}, null, 2)
|
|
1793
1871
|
]),
|
|
1794
1872
|
_: 1
|
|
1795
1873
|
}, 16, ["modelValue", "class"]),
|
|
1796
|
-
o.$slots.default ? (
|
|
1874
|
+
o.$slots.default ? ($(), _(x(Sr), { key: 0 }, {
|
|
1797
1875
|
default: H(() => [
|
|
1798
1876
|
C(o.$slots, "default")
|
|
1799
1877
|
]),
|
|
1800
1878
|
_: 3
|
|
1801
|
-
})) :
|
|
1879
|
+
})) : ee("", !0)
|
|
1802
1880
|
]),
|
|
1803
1881
|
_: 3
|
|
1804
1882
|
}));
|
|
1805
1883
|
}
|
|
1806
|
-
}),
|
|
1884
|
+
}), Vr = {
|
|
1807
1885
|
role: "presentation",
|
|
1808
1886
|
class: "rvc-fixed rvc-inset-0 rvc-z-10 rvc-w-screen rvc-overflow-y-auto"
|
|
1809
|
-
},
|
|
1887
|
+
}, Ir = { class: "rvc-flex rvc-min-h-full rvc-justify-center rvc-p-4 rvc-items-center sm:rvc-p-0" }, Wr = { class: "rvc-modal-header" }, Ur = { class: "rvc-flex rvc-items-center rvc-justify-between" }, zr = {
|
|
1810
1888
|
key: 0,
|
|
1811
1889
|
class: "rvc-ml-3 rvc-flex rvc-h-7 rvc-items-center"
|
|
1812
|
-
},
|
|
1890
|
+
}, qr = ["id"], Kr = { class: "rvc-modal-footer" }, Ko = {
|
|
1813
1891
|
__name: "Modal",
|
|
1814
1892
|
props: {
|
|
1815
1893
|
as: {
|
|
@@ -1852,22 +1930,22 @@ const Cr = {
|
|
|
1852
1930
|
titleId: a,
|
|
1853
1931
|
descriptionId: c,
|
|
1854
1932
|
initialFocusElement: s
|
|
1855
|
-
} =
|
|
1856
|
-
return (u, d) => (
|
|
1933
|
+
} = Vn(l);
|
|
1934
|
+
return (u, d) => ($(), _(x(Mt), { as: "template" }, {
|
|
1857
1935
|
default: H(() => [
|
|
1858
|
-
M(
|
|
1936
|
+
M(x(Dn), {
|
|
1859
1937
|
as: e.as,
|
|
1860
1938
|
class: "rvc-modal",
|
|
1861
1939
|
static: "",
|
|
1862
1940
|
"aria-modal": "true",
|
|
1863
1941
|
role: "dialog",
|
|
1864
|
-
"initial-focus":
|
|
1865
|
-
"aria-labelledby":
|
|
1942
|
+
"initial-focus": x(s),
|
|
1943
|
+
"aria-labelledby": x(a),
|
|
1866
1944
|
onClose: d[6] || (d[6] = (f) => u.$emit("modal:close")),
|
|
1867
|
-
onSubmit: d[7] || (d[7] =
|
|
1945
|
+
onSubmit: d[7] || (d[7] = fn((f) => n("modal:save", f), ["prevent"]))
|
|
1868
1946
|
}, {
|
|
1869
1947
|
default: H(() => [
|
|
1870
|
-
M(
|
|
1948
|
+
M(x(ze), {
|
|
1871
1949
|
as: "template",
|
|
1872
1950
|
enter: "rvc-ease-out rvc-duration-300",
|
|
1873
1951
|
"enter-from": "rvc-opacity-0",
|
|
@@ -1878,16 +1956,16 @@ const Cr = {
|
|
|
1878
1956
|
onBeforeEnter: d[0] || (d[0] = (f) => n("modal:open"))
|
|
1879
1957
|
}, {
|
|
1880
1958
|
default: H(() => d[8] || (d[8] = [
|
|
1881
|
-
|
|
1959
|
+
S("div", {
|
|
1882
1960
|
"aria-hidden": "true",
|
|
1883
1961
|
class: "rvc-fixed rvc-inset-0 rvc-transition-opacity rvc-modal-backdrop"
|
|
1884
1962
|
}, null, -1)
|
|
1885
1963
|
])),
|
|
1886
1964
|
_: 1
|
|
1887
1965
|
}),
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
M(
|
|
1966
|
+
S("div", Vr, [
|
|
1967
|
+
S("div", Ir, [
|
|
1968
|
+
M(x(ze), {
|
|
1891
1969
|
as: "template",
|
|
1892
1970
|
enter: "rvc-ease-out rvc-duration-300",
|
|
1893
1971
|
"enter-from": "rvc-opacity-0 rvc-translate-y-4 sm:rvc-translate-y-0 sm:rvc-scale-95",
|
|
@@ -1899,56 +1977,56 @@ const Cr = {
|
|
|
1899
1977
|
onAfterLeave: d[5] || (d[5] = (f) => (o.value = !1, n("modal:closed")))
|
|
1900
1978
|
}, {
|
|
1901
1979
|
default: H(() => [
|
|
1902
|
-
M(
|
|
1980
|
+
M(x(Rn), {
|
|
1903
1981
|
class: q(["rvc-modal-panel", e.panelClass]),
|
|
1904
1982
|
"aria-busy": e.spinning,
|
|
1905
|
-
"aria-describedby":
|
|
1983
|
+
"aria-describedby": x(c)
|
|
1906
1984
|
}, {
|
|
1907
1985
|
default: H(() => [
|
|
1908
|
-
|
|
1986
|
+
S("header", Wr, [
|
|
1909
1987
|
C(u.$slots, "header", { title: e.title }, () => [
|
|
1910
|
-
|
|
1911
|
-
M(
|
|
1912
|
-
id:
|
|
1988
|
+
S("div", Ur, [
|
|
1989
|
+
M(x(Fn), {
|
|
1990
|
+
id: x(a),
|
|
1913
1991
|
class: "rvc-modal-title"
|
|
1914
1992
|
}, {
|
|
1915
1993
|
default: H(() => [
|
|
1916
|
-
he(
|
|
1994
|
+
he(oe(e.title), 1)
|
|
1917
1995
|
]),
|
|
1918
1996
|
_: 1
|
|
1919
1997
|
}, 8, ["id"]),
|
|
1920
|
-
e.showClose ? (
|
|
1921
|
-
|
|
1998
|
+
e.showClose ? ($(), T("div", zr, [
|
|
1999
|
+
S("button", {
|
|
1922
2000
|
type: "button",
|
|
1923
2001
|
class: "rvc-relative rvc-modal-close",
|
|
1924
2002
|
"aria-label": "Close panel",
|
|
1925
2003
|
onClick: d[1] || (d[1] = (f) => n("modal:close"))
|
|
1926
2004
|
}, [
|
|
1927
|
-
M(
|
|
2005
|
+
M(x(At), {
|
|
1928
2006
|
class: "rvc-size-full",
|
|
1929
2007
|
"aria-hidden": "true"
|
|
1930
2008
|
})
|
|
1931
2009
|
])
|
|
1932
|
-
])) :
|
|
2010
|
+
])) : ee("", !0)
|
|
1933
2011
|
])
|
|
1934
2012
|
])
|
|
1935
2013
|
]),
|
|
1936
|
-
|
|
1937
|
-
id:
|
|
2014
|
+
S("div", {
|
|
2015
|
+
id: x(c),
|
|
1938
2016
|
ref_key: "contentRef",
|
|
1939
2017
|
ref: r,
|
|
1940
2018
|
class: "rvc-modal-content"
|
|
1941
2019
|
}, [
|
|
1942
|
-
C(u.$slots, "default", { ready:
|
|
1943
|
-
], 8,
|
|
1944
|
-
|
|
2020
|
+
C(u.$slots, "default", { ready: x(o) })
|
|
2021
|
+
], 8, qr),
|
|
2022
|
+
S("footer", Kr, [
|
|
1945
2023
|
C(u.$slots, "footer", { loading: e.spinning }, () => [
|
|
1946
2024
|
M(rt, {
|
|
1947
|
-
type:
|
|
2025
|
+
type: x(i) ? "submit" : "button",
|
|
1948
2026
|
label: e.submitLabel,
|
|
1949
2027
|
spinning: e.spinning,
|
|
1950
2028
|
disabled: e.spinning,
|
|
1951
|
-
onClick: d[2] || (d[2] = (f) => !
|
|
2029
|
+
onClick: d[2] || (d[2] = (f) => !x(i) && u.$emit("modal:save"))
|
|
1952
2030
|
}, null, 8, ["type", "label", "spinning", "disabled"]),
|
|
1953
2031
|
M(rt, {
|
|
1954
2032
|
type: "button",
|
|
@@ -1973,22 +2051,22 @@ const Cr = {
|
|
|
1973
2051
|
_: 3
|
|
1974
2052
|
}));
|
|
1975
2053
|
}
|
|
1976
|
-
},
|
|
2054
|
+
}, Yr = ["top", "right", "bottom", "left"], tn = ["start", "end"], nn = /* @__PURE__ */ Yr.reduce((e, t) => e.concat(t, t + "-" + tn[0], t + "-" + tn[1]), []), $e = Math.min, J = Math.max, st = Math.round, tt = Math.floor, fe = (e) => ({
|
|
1977
2055
|
x: e,
|
|
1978
2056
|
y: e
|
|
1979
|
-
}),
|
|
2057
|
+
}), Gr = {
|
|
1980
2058
|
left: "right",
|
|
1981
2059
|
right: "left",
|
|
1982
2060
|
bottom: "top",
|
|
1983
2061
|
top: "bottom"
|
|
1984
|
-
},
|
|
2062
|
+
}, Xr = {
|
|
1985
2063
|
start: "end",
|
|
1986
2064
|
end: "start"
|
|
1987
2065
|
};
|
|
1988
|
-
function
|
|
1989
|
-
return J(e,
|
|
2066
|
+
function Tt(e, t, n) {
|
|
2067
|
+
return J(e, $e(t, n));
|
|
1990
2068
|
}
|
|
1991
|
-
function
|
|
2069
|
+
function je(e, t) {
|
|
1992
2070
|
return typeof e == "function" ? e(t) : e;
|
|
1993
2071
|
}
|
|
1994
2072
|
function Ae(e) {
|
|
@@ -1997,31 +2075,31 @@ function Ae(e) {
|
|
|
1997
2075
|
function ve(e) {
|
|
1998
2076
|
return e.split("-")[1];
|
|
1999
2077
|
}
|
|
2000
|
-
function
|
|
2078
|
+
function In(e) {
|
|
2001
2079
|
return e === "x" ? "y" : "x";
|
|
2002
2080
|
}
|
|
2003
|
-
function
|
|
2081
|
+
function Nt(e) {
|
|
2004
2082
|
return e === "y" ? "height" : "width";
|
|
2005
2083
|
}
|
|
2006
2084
|
function Xe(e) {
|
|
2007
2085
|
return ["top", "bottom"].includes(Ae(e)) ? "y" : "x";
|
|
2008
2086
|
}
|
|
2009
|
-
function
|
|
2010
|
-
return
|
|
2087
|
+
function jt(e) {
|
|
2088
|
+
return In(Xe(e));
|
|
2011
2089
|
}
|
|
2012
|
-
function
|
|
2090
|
+
function Zr(e, t, n) {
|
|
2013
2091
|
n === void 0 && (n = !1);
|
|
2014
|
-
const l = ve(e), r =
|
|
2092
|
+
const l = ve(e), r = jt(e), o = Nt(r);
|
|
2015
2093
|
let i = r === "x" ? l === (n ? "end" : "start") ? "right" : "left" : l === "start" ? "bottom" : "top";
|
|
2016
|
-
return t.reference[o] > t.floating[o] && (i =
|
|
2094
|
+
return t.reference[o] > t.floating[o] && (i = ln(i)), [i, ln(i)];
|
|
2017
2095
|
}
|
|
2018
|
-
function
|
|
2019
|
-
return e.replace(/start|end/g, (t) =>
|
|
2096
|
+
function Qr(e) {
|
|
2097
|
+
return e.replace(/start|end/g, (t) => Xr[t]);
|
|
2020
2098
|
}
|
|
2021
|
-
function
|
|
2022
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
2099
|
+
function ln(e) {
|
|
2100
|
+
return e.replace(/left|right|bottom|top/g, (t) => Gr[t]);
|
|
2023
2101
|
}
|
|
2024
|
-
function
|
|
2102
|
+
function Jr(e) {
|
|
2025
2103
|
return {
|
|
2026
2104
|
top: 0,
|
|
2027
2105
|
right: 0,
|
|
@@ -2030,8 +2108,8 @@ function Gr(e) {
|
|
|
2030
2108
|
...e
|
|
2031
2109
|
};
|
|
2032
2110
|
}
|
|
2033
|
-
function
|
|
2034
|
-
return typeof e != "number" ?
|
|
2111
|
+
function Wn(e) {
|
|
2112
|
+
return typeof e != "number" ? Jr(e) : {
|
|
2035
2113
|
top: e,
|
|
2036
2114
|
right: e,
|
|
2037
2115
|
bottom: e,
|
|
@@ -2056,12 +2134,12 @@ function ut(e) {
|
|
|
2056
2134
|
y: n
|
|
2057
2135
|
};
|
|
2058
2136
|
}
|
|
2059
|
-
function
|
|
2137
|
+
function rn(e, t, n) {
|
|
2060
2138
|
let {
|
|
2061
2139
|
reference: l,
|
|
2062
2140
|
floating: r
|
|
2063
2141
|
} = e;
|
|
2064
|
-
const o = Xe(t), i =
|
|
2142
|
+
const o = Xe(t), i = jt(t), a = Nt(i), c = Ae(t), s = o === "y", u = l.x + l.width / 2 - r.width / 2, d = l.y + l.height / 2 - r.height / 2, f = l[a] / 2 - r[a] / 2;
|
|
2065
2143
|
let v;
|
|
2066
2144
|
switch (c) {
|
|
2067
2145
|
case "top":
|
|
@@ -2104,7 +2182,7 @@ function ln(e, t, n) {
|
|
|
2104
2182
|
}
|
|
2105
2183
|
return v;
|
|
2106
2184
|
}
|
|
2107
|
-
const
|
|
2185
|
+
const _r = async (e, t, n) => {
|
|
2108
2186
|
const {
|
|
2109
2187
|
placement: l = "bottom",
|
|
2110
2188
|
strategy: r = "absolute",
|
|
@@ -2118,7 +2196,7 @@ const Xr = async (e, t, n) => {
|
|
|
2118
2196
|
}), {
|
|
2119
2197
|
x: u,
|
|
2120
2198
|
y: d
|
|
2121
|
-
} =
|
|
2199
|
+
} = rn(s, l, c), f = l, v = {}, p = 0;
|
|
2122
2200
|
for (let m = 0; m < a.length; m++) {
|
|
2123
2201
|
const {
|
|
2124
2202
|
name: h,
|
|
@@ -2126,7 +2204,7 @@ const Xr = async (e, t, n) => {
|
|
|
2126
2204
|
} = a[m], {
|
|
2127
2205
|
x: g,
|
|
2128
2206
|
y: w,
|
|
2129
|
-
data:
|
|
2207
|
+
data: k,
|
|
2130
2208
|
reset: L
|
|
2131
2209
|
} = await y({
|
|
2132
2210
|
x: u,
|
|
@@ -2146,7 +2224,7 @@ const Xr = async (e, t, n) => {
|
|
|
2146
2224
|
...v,
|
|
2147
2225
|
[h]: {
|
|
2148
2226
|
...v[h],
|
|
2149
|
-
...
|
|
2227
|
+
...k
|
|
2150
2228
|
}
|
|
2151
2229
|
}, L && p <= 50 && (p++, typeof L == "object" && (L.placement && (f = L.placement), L.rects && (s = L.rects === !0 ? await i.getElementRects({
|
|
2152
2230
|
reference: e,
|
|
@@ -2155,7 +2233,7 @@ const Xr = async (e, t, n) => {
|
|
|
2155
2233
|
}) : L.rects), {
|
|
2156
2234
|
x: u,
|
|
2157
2235
|
y: d
|
|
2158
|
-
} =
|
|
2236
|
+
} = rn(s, f, c)), m = -1);
|
|
2159
2237
|
}
|
|
2160
2238
|
return {
|
|
2161
2239
|
x: u,
|
|
@@ -2165,7 +2243,7 @@ const Xr = async (e, t, n) => {
|
|
|
2165
2243
|
middlewareData: v
|
|
2166
2244
|
};
|
|
2167
2245
|
};
|
|
2168
|
-
async function
|
|
2246
|
+
async function Ht(e, t) {
|
|
2169
2247
|
var n;
|
|
2170
2248
|
t === void 0 && (t = {});
|
|
2171
2249
|
const {
|
|
@@ -2181,7 +2259,7 @@ async function jt(e, t) {
|
|
|
2181
2259
|
elementContext: d = "floating",
|
|
2182
2260
|
altBoundary: f = !1,
|
|
2183
2261
|
padding: v = 0
|
|
2184
|
-
} =
|
|
2262
|
+
} = je(t, e), p = Wn(v), h = a[f ? d === "floating" ? "reference" : "floating" : d], y = ut(await o.getClippingRect({
|
|
2185
2263
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(h))) == null || n ? h : h.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
|
|
2186
2264
|
boundary: s,
|
|
2187
2265
|
rootBoundary: u,
|
|
@@ -2191,7 +2269,7 @@ async function jt(e, t) {
|
|
|
2191
2269
|
y: r,
|
|
2192
2270
|
width: i.floating.width,
|
|
2193
2271
|
height: i.floating.height
|
|
2194
|
-
} : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)),
|
|
2272
|
+
} : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), k = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
|
|
2195
2273
|
x: 1,
|
|
2196
2274
|
y: 1
|
|
2197
2275
|
} : {
|
|
@@ -2204,13 +2282,13 @@ async function jt(e, t) {
|
|
|
2204
2282
|
strategy: c
|
|
2205
2283
|
}) : g);
|
|
2206
2284
|
return {
|
|
2207
|
-
top: (y.top - L.top + p.top) /
|
|
2208
|
-
bottom: (L.bottom - y.bottom + p.bottom) /
|
|
2209
|
-
left: (y.left - L.left + p.left) /
|
|
2210
|
-
right: (L.right - y.right + p.right) /
|
|
2285
|
+
top: (y.top - L.top + p.top) / k.y,
|
|
2286
|
+
bottom: (L.bottom - y.bottom + p.bottom) / k.y,
|
|
2287
|
+
left: (y.left - L.left + p.left) / k.x,
|
|
2288
|
+
right: (L.right - y.right + p.right) / k.x
|
|
2211
2289
|
};
|
|
2212
2290
|
}
|
|
2213
|
-
const
|
|
2291
|
+
const eo = (e) => ({
|
|
2214
2292
|
name: "arrow",
|
|
2215
2293
|
options: e,
|
|
2216
2294
|
async fn(t) {
|
|
@@ -2225,16 +2303,16 @@ const Zr = (e) => ({
|
|
|
2225
2303
|
} = t, {
|
|
2226
2304
|
element: s,
|
|
2227
2305
|
padding: u = 0
|
|
2228
|
-
} =
|
|
2306
|
+
} = je(e, t) || {};
|
|
2229
2307
|
if (s == null)
|
|
2230
2308
|
return {};
|
|
2231
|
-
const d =
|
|
2309
|
+
const d = Wn(u), f = {
|
|
2232
2310
|
x: n,
|
|
2233
2311
|
y: l
|
|
2234
|
-
}, v =
|
|
2312
|
+
}, v = jt(r), p = Nt(v), m = await i.getDimensions(s), h = v === "y", y = h ? "top" : "left", g = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", k = o.reference[p] + o.reference[v] - f[v] - o.floating[p], L = f[v] - o.reference[v], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s));
|
|
2235
2313
|
let O = P ? P[w] : 0;
|
|
2236
2314
|
(!O || !await (i.isElement == null ? void 0 : i.isElement(P))) && (O = a.floating[w] || o.floating[p]);
|
|
2237
|
-
const R =
|
|
2315
|
+
const R = k / 2 - L / 2, U = O / 2 - m[p] / 2 - 1, F = $e(d[y], U), z = $e(d[g], U), Y = F, j = O - m[p] - z, G = O / 2 - m[p] / 2 + R, X = Tt(Y, G, j), Z = !c.arrow && ve(r) != null && G !== X && o.reference[p] / 2 - (G < Y ? F : z) - m[p] / 2 < 0, ce = Z ? G < Y ? G - Y : G - j : 0;
|
|
2238
2316
|
return {
|
|
2239
2317
|
[v]: f[v] + ce,
|
|
2240
2318
|
data: {
|
|
@@ -2248,10 +2326,10 @@ const Zr = (e) => ({
|
|
|
2248
2326
|
};
|
|
2249
2327
|
}
|
|
2250
2328
|
});
|
|
2251
|
-
function
|
|
2252
|
-
return (e ? [...n.filter((r) => ve(r) === e), ...n.filter((r) => ve(r) !== e)] : n.filter((r) => Ae(r) === r)).filter((r) => e ? ve(r) === e || (t ?
|
|
2329
|
+
function to(e, t, n) {
|
|
2330
|
+
return (e ? [...n.filter((r) => ve(r) === e), ...n.filter((r) => ve(r) !== e)] : n.filter((r) => Ae(r) === r)).filter((r) => e ? ve(r) === e || (t ? Qr(r) !== r : !1) : !0);
|
|
2253
2331
|
}
|
|
2254
|
-
const
|
|
2332
|
+
const no = function(e) {
|
|
2255
2333
|
return e === void 0 && (e = {}), {
|
|
2256
2334
|
name: "autoPlacement",
|
|
2257
2335
|
options: e,
|
|
@@ -2266,22 +2344,22 @@ const Jr = function(e) {
|
|
|
2266
2344
|
} = t, {
|
|
2267
2345
|
crossAxis: u = !1,
|
|
2268
2346
|
alignment: d,
|
|
2269
|
-
allowedPlacements: f =
|
|
2347
|
+
allowedPlacements: f = nn,
|
|
2270
2348
|
autoAlignment: v = !0,
|
|
2271
2349
|
...p
|
|
2272
|
-
} =
|
|
2350
|
+
} = je(e, t), m = d !== void 0 || f === nn ? to(d || null, v, f) : f, h = await Ht(t, p), y = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, g = m[y];
|
|
2273
2351
|
if (g == null)
|
|
2274
2352
|
return {};
|
|
2275
|
-
const w =
|
|
2353
|
+
const w = Zr(g, o, await (c.isRTL == null ? void 0 : c.isRTL(s.floating)));
|
|
2276
2354
|
if (a !== g)
|
|
2277
2355
|
return {
|
|
2278
2356
|
reset: {
|
|
2279
2357
|
placement: m[0]
|
|
2280
2358
|
}
|
|
2281
2359
|
};
|
|
2282
|
-
const
|
|
2360
|
+
const k = [h[Ae(g)], h[w[0]], h[w[1]]], L = [...((l = i.autoPlacement) == null ? void 0 : l.overflows) || [], {
|
|
2283
2361
|
placement: g,
|
|
2284
|
-
overflows:
|
|
2362
|
+
overflows: k
|
|
2285
2363
|
}], P = m[y + 1];
|
|
2286
2364
|
if (P)
|
|
2287
2365
|
return {
|
|
@@ -2297,7 +2375,7 @@ const Jr = function(e) {
|
|
|
2297
2375
|
const z = ve(F.placement);
|
|
2298
2376
|
return [F.placement, z && u ? (
|
|
2299
2377
|
// Check along the mainAxis and main crossAxis side.
|
|
2300
|
-
F.overflows.slice(0, 2).reduce((
|
|
2378
|
+
F.overflows.slice(0, 2).reduce((Y, j) => Y + j, 0)
|
|
2301
2379
|
) : (
|
|
2302
2380
|
// Check only the mainAxis.
|
|
2303
2381
|
F.overflows[0]
|
|
@@ -2320,12 +2398,12 @@ const Jr = function(e) {
|
|
|
2320
2398
|
}
|
|
2321
2399
|
};
|
|
2322
2400
|
};
|
|
2323
|
-
async function
|
|
2401
|
+
async function lo(e, t) {
|
|
2324
2402
|
const {
|
|
2325
2403
|
placement: n,
|
|
2326
2404
|
platform: l,
|
|
2327
2405
|
elements: r
|
|
2328
|
-
} = e, o = await (l.isRTL == null ? void 0 : l.isRTL(r.floating)), i = Ae(n), a = ve(n), c = Xe(n) === "y", s = ["left", "top"].includes(i) ? -1 : 1, u = o && c ? -1 : 1, d =
|
|
2406
|
+
} = e, o = await (l.isRTL == null ? void 0 : l.isRTL(r.floating)), i = Ae(n), a = ve(n), c = Xe(n) === "y", s = ["left", "top"].includes(i) ? -1 : 1, u = o && c ? -1 : 1, d = je(t, e);
|
|
2329
2407
|
let {
|
|
2330
2408
|
mainAxis: f,
|
|
2331
2409
|
crossAxis: v,
|
|
@@ -2347,7 +2425,7 @@ async function _r(e, t) {
|
|
|
2347
2425
|
y: v * u
|
|
2348
2426
|
};
|
|
2349
2427
|
}
|
|
2350
|
-
const
|
|
2428
|
+
const ro = function(e) {
|
|
2351
2429
|
return e === void 0 && (e = 0), {
|
|
2352
2430
|
name: "offset",
|
|
2353
2431
|
options: e,
|
|
@@ -2358,7 +2436,7 @@ const eo = function(e) {
|
|
|
2358
2436
|
y: o,
|
|
2359
2437
|
placement: i,
|
|
2360
2438
|
middlewareData: a
|
|
2361
|
-
} = t, c = await
|
|
2439
|
+
} = t, c = await lo(t, e);
|
|
2362
2440
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (l = a.arrow) != null && l.alignmentOffset ? {} : {
|
|
2363
2441
|
x: r + c.x,
|
|
2364
2442
|
y: o + c.y,
|
|
@@ -2369,7 +2447,7 @@ const eo = function(e) {
|
|
|
2369
2447
|
};
|
|
2370
2448
|
}
|
|
2371
2449
|
};
|
|
2372
|
-
},
|
|
2450
|
+
}, oo = function(e) {
|
|
2373
2451
|
return e === void 0 && (e = {}), {
|
|
2374
2452
|
name: "shift",
|
|
2375
2453
|
options: e,
|
|
@@ -2394,18 +2472,18 @@ const eo = function(e) {
|
|
|
2394
2472
|
}
|
|
2395
2473
|
},
|
|
2396
2474
|
...c
|
|
2397
|
-
} =
|
|
2475
|
+
} = je(e, t), s = {
|
|
2398
2476
|
x: n,
|
|
2399
2477
|
y: l
|
|
2400
|
-
}, u = await
|
|
2478
|
+
}, u = await Ht(t, c), d = Xe(Ae(r)), f = In(d);
|
|
2401
2479
|
let v = s[f], p = s[d];
|
|
2402
2480
|
if (o) {
|
|
2403
2481
|
const h = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", g = v + u[h], w = v - u[y];
|
|
2404
|
-
v =
|
|
2482
|
+
v = Tt(g, v, w);
|
|
2405
2483
|
}
|
|
2406
2484
|
if (i) {
|
|
2407
2485
|
const h = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", g = p + u[h], w = p - u[y];
|
|
2408
|
-
p =
|
|
2486
|
+
p = Tt(g, p, w);
|
|
2409
2487
|
}
|
|
2410
2488
|
const m = a.fn({
|
|
2411
2489
|
...t,
|
|
@@ -2425,7 +2503,7 @@ const eo = function(e) {
|
|
|
2425
2503
|
};
|
|
2426
2504
|
}
|
|
2427
2505
|
};
|
|
2428
|
-
},
|
|
2506
|
+
}, io = function(e) {
|
|
2429
2507
|
return e === void 0 && (e = {}), {
|
|
2430
2508
|
name: "size",
|
|
2431
2509
|
options: e,
|
|
@@ -2440,17 +2518,17 @@ const eo = function(e) {
|
|
|
2440
2518
|
apply: c = () => {
|
|
2441
2519
|
},
|
|
2442
2520
|
...s
|
|
2443
|
-
} =
|
|
2521
|
+
} = je(e, t), u = await Ht(t, s), d = Ae(r), f = ve(r), v = Xe(r) === "y", {
|
|
2444
2522
|
width: p,
|
|
2445
2523
|
height: m
|
|
2446
2524
|
} = o.floating;
|
|
2447
2525
|
let h, y;
|
|
2448
2526
|
d === "top" || d === "bottom" ? (h = d, y = f === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = f === "end" ? "top" : "bottom");
|
|
2449
|
-
const g = m - u.top - u.bottom, w = p - u.left - u.right,
|
|
2450
|
-
let O =
|
|
2527
|
+
const g = m - u.top - u.bottom, w = p - u.left - u.right, k = $e(m - u[h], g), L = $e(p - u[y], w), P = !t.middlewareData.shift;
|
|
2528
|
+
let O = k, R = L;
|
|
2451
2529
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (l = t.middlewareData.shift) != null && l.enabled.y && (O = g), P && !f) {
|
|
2452
|
-
const F = J(u.left, 0), z = J(u.right, 0),
|
|
2453
|
-
v ? R = p - 2 * (F !== 0 || z !== 0 ? F + z : J(u.left, u.right)) : O = m - 2 * (
|
|
2530
|
+
const F = J(u.left, 0), z = J(u.right, 0), Y = J(u.top, 0), j = J(u.bottom, 0);
|
|
2531
|
+
v ? R = p - 2 * (F !== 0 || z !== 0 ? F + z : J(u.left, u.right)) : O = m - 2 * (Y !== 0 || j !== 0 ? Y + j : J(u.top, u.bottom));
|
|
2454
2532
|
}
|
|
2455
2533
|
await c({
|
|
2456
2534
|
...t,
|
|
@@ -2469,28 +2547,28 @@ const eo = function(e) {
|
|
|
2469
2547
|
function dt() {
|
|
2470
2548
|
return typeof window < "u";
|
|
2471
2549
|
}
|
|
2472
|
-
function
|
|
2473
|
-
return
|
|
2550
|
+
function Pe(e) {
|
|
2551
|
+
return Vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2474
2552
|
}
|
|
2475
|
-
function
|
|
2553
|
+
function te(e) {
|
|
2476
2554
|
var t;
|
|
2477
2555
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2478
2556
|
}
|
|
2479
2557
|
function ge(e) {
|
|
2480
2558
|
var t;
|
|
2481
|
-
return (t = (
|
|
2559
|
+
return (t = (Vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2482
2560
|
}
|
|
2483
|
-
function
|
|
2484
|
-
return dt() ? e instanceof Node || e instanceof
|
|
2561
|
+
function Vt(e) {
|
|
2562
|
+
return dt() ? e instanceof Node || e instanceof te(e).Node : !1;
|
|
2485
2563
|
}
|
|
2486
2564
|
function se(e) {
|
|
2487
|
-
return dt() ? e instanceof Element || e instanceof
|
|
2565
|
+
return dt() ? e instanceof Element || e instanceof te(e).Element : !1;
|
|
2488
2566
|
}
|
|
2489
2567
|
function me(e) {
|
|
2490
|
-
return dt() ? e instanceof HTMLElement || e instanceof
|
|
2568
|
+
return dt() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
|
|
2491
2569
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
2570
|
+
function on(e) {
|
|
2571
|
+
return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
|
|
2494
2572
|
}
|
|
2495
2573
|
function Ze(e) {
|
|
2496
2574
|
const {
|
|
@@ -2501,8 +2579,8 @@ function Ze(e) {
|
|
|
2501
2579
|
} = ue(e);
|
|
2502
2580
|
return /auto|scroll|overlay|hidden|clip/.test(t + l + n) && !["inline", "contents"].includes(r);
|
|
2503
2581
|
}
|
|
2504
|
-
function
|
|
2505
|
-
return ["table", "td", "th"].includes(
|
|
2582
|
+
function ao(e) {
|
|
2583
|
+
return ["table", "td", "th"].includes(Pe(e));
|
|
2506
2584
|
}
|
|
2507
2585
|
function ft(e) {
|
|
2508
2586
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -2513,29 +2591,29 @@ function ft(e) {
|
|
|
2513
2591
|
}
|
|
2514
2592
|
});
|
|
2515
2593
|
}
|
|
2516
|
-
function
|
|
2517
|
-
const t =
|
|
2594
|
+
function It(e) {
|
|
2595
|
+
const t = Wt(), n = se(e) ? ue(e) : e;
|
|
2518
2596
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((l) => (n.willChange || "").includes(l)) || ["paint", "layout", "strict", "content"].some((l) => (n.contain || "").includes(l));
|
|
2519
2597
|
}
|
|
2520
|
-
function
|
|
2521
|
-
let t =
|
|
2522
|
-
for (; me(t) && !
|
|
2523
|
-
if (
|
|
2598
|
+
function so(e) {
|
|
2599
|
+
let t = Se(e);
|
|
2600
|
+
for (; me(t) && !Me(t); ) {
|
|
2601
|
+
if (It(t))
|
|
2524
2602
|
return t;
|
|
2525
2603
|
if (ft(t))
|
|
2526
2604
|
return null;
|
|
2527
|
-
t =
|
|
2605
|
+
t = Se(t);
|
|
2528
2606
|
}
|
|
2529
2607
|
return null;
|
|
2530
2608
|
}
|
|
2531
|
-
function
|
|
2609
|
+
function Wt() {
|
|
2532
2610
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2533
2611
|
}
|
|
2534
|
-
function
|
|
2535
|
-
return ["html", "body", "#document"].includes(
|
|
2612
|
+
function Me(e) {
|
|
2613
|
+
return ["html", "body", "#document"].includes(Pe(e));
|
|
2536
2614
|
}
|
|
2537
2615
|
function ue(e) {
|
|
2538
|
-
return
|
|
2616
|
+
return te(e).getComputedStyle(e);
|
|
2539
2617
|
}
|
|
2540
2618
|
function vt(e) {
|
|
2541
2619
|
return se(e) ? {
|
|
@@ -2546,36 +2624,36 @@ function vt(e) {
|
|
|
2546
2624
|
scrollTop: e.scrollY
|
|
2547
2625
|
};
|
|
2548
2626
|
}
|
|
2549
|
-
function
|
|
2550
|
-
if (
|
|
2627
|
+
function Se(e) {
|
|
2628
|
+
if (Pe(e) === "html")
|
|
2551
2629
|
return e;
|
|
2552
2630
|
const t = (
|
|
2553
2631
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2554
2632
|
e.assignedSlot || // DOM Element detected.
|
|
2555
2633
|
e.parentNode || // ShadowRoot detected.
|
|
2556
|
-
|
|
2634
|
+
on(e) && e.host || // Fallback.
|
|
2557
2635
|
ge(e)
|
|
2558
2636
|
);
|
|
2559
|
-
return
|
|
2637
|
+
return on(t) ? t.host : t;
|
|
2560
2638
|
}
|
|
2561
|
-
function
|
|
2562
|
-
const t =
|
|
2563
|
-
return
|
|
2639
|
+
function Un(e) {
|
|
2640
|
+
const t = Se(e);
|
|
2641
|
+
return Me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : me(t) && Ze(t) ? t : Un(t);
|
|
2564
2642
|
}
|
|
2565
|
-
function
|
|
2643
|
+
function qe(e, t, n) {
|
|
2566
2644
|
var l;
|
|
2567
2645
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2568
|
-
const r =
|
|
2646
|
+
const r = Un(e), o = r === ((l = e.ownerDocument) == null ? void 0 : l.body), i = te(r);
|
|
2569
2647
|
if (o) {
|
|
2570
|
-
const a =
|
|
2571
|
-
return t.concat(i, i.visualViewport || [], Ze(r) ? r : [], a && n ?
|
|
2648
|
+
const a = Ct(i);
|
|
2649
|
+
return t.concat(i, i.visualViewport || [], Ze(r) ? r : [], a && n ? qe(a) : []);
|
|
2572
2650
|
}
|
|
2573
|
-
return t.concat(r,
|
|
2651
|
+
return t.concat(r, qe(r, [], n));
|
|
2574
2652
|
}
|
|
2575
|
-
function
|
|
2653
|
+
function Ct(e) {
|
|
2576
2654
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2577
2655
|
}
|
|
2578
|
-
function
|
|
2656
|
+
function zn(e) {
|
|
2579
2657
|
const t = ue(e);
|
|
2580
2658
|
let n = parseFloat(t.width) || 0, l = parseFloat(t.height) || 0;
|
|
2581
2659
|
const r = me(e), o = r ? e.offsetWidth : n, i = r ? e.offsetHeight : l, a = st(n) !== o || st(l) !== i;
|
|
@@ -2585,48 +2663,48 @@ function Vn(e) {
|
|
|
2585
2663
|
$: a
|
|
2586
2664
|
};
|
|
2587
2665
|
}
|
|
2588
|
-
function
|
|
2666
|
+
function Ut(e) {
|
|
2589
2667
|
return se(e) ? e : e.contextElement;
|
|
2590
2668
|
}
|
|
2591
|
-
function
|
|
2592
|
-
const t =
|
|
2669
|
+
function Fe(e) {
|
|
2670
|
+
const t = Ut(e);
|
|
2593
2671
|
if (!me(t))
|
|
2594
2672
|
return fe(1);
|
|
2595
2673
|
const n = t.getBoundingClientRect(), {
|
|
2596
2674
|
width: l,
|
|
2597
2675
|
height: r,
|
|
2598
2676
|
$: o
|
|
2599
|
-
} =
|
|
2677
|
+
} = zn(t);
|
|
2600
2678
|
let i = (o ? st(n.width) : n.width) / l, a = (o ? st(n.height) : n.height) / r;
|
|
2601
2679
|
return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2602
2680
|
x: i,
|
|
2603
2681
|
y: a
|
|
2604
2682
|
};
|
|
2605
2683
|
}
|
|
2606
|
-
const
|
|
2607
|
-
function
|
|
2608
|
-
const t =
|
|
2609
|
-
return !
|
|
2684
|
+
const uo = /* @__PURE__ */ fe(0);
|
|
2685
|
+
function qn(e) {
|
|
2686
|
+
const t = te(e);
|
|
2687
|
+
return !Wt() || !t.visualViewport ? uo : {
|
|
2610
2688
|
x: t.visualViewport.offsetLeft,
|
|
2611
2689
|
y: t.visualViewport.offsetTop
|
|
2612
2690
|
};
|
|
2613
2691
|
}
|
|
2614
|
-
function
|
|
2615
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
2692
|
+
function co(e, t, n) {
|
|
2693
|
+
return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
|
|
2616
2694
|
}
|
|
2617
|
-
function
|
|
2695
|
+
function ke(e, t, n, l) {
|
|
2618
2696
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2619
|
-
const r = e.getBoundingClientRect(), o =
|
|
2697
|
+
const r = e.getBoundingClientRect(), o = Ut(e);
|
|
2620
2698
|
let i = fe(1);
|
|
2621
|
-
t && (l ? se(l) && (i =
|
|
2622
|
-
const a =
|
|
2699
|
+
t && (l ? se(l) && (i = Fe(l)) : i = Fe(e));
|
|
2700
|
+
const a = co(o, n, l) ? qn(o) : fe(0);
|
|
2623
2701
|
let c = (r.left + a.x) / i.x, s = (r.top + a.y) / i.y, u = r.width / i.x, d = r.height / i.y;
|
|
2624
2702
|
if (o) {
|
|
2625
|
-
const f =
|
|
2626
|
-
let p = f, m =
|
|
2703
|
+
const f = te(o), v = l && se(l) ? te(l) : l;
|
|
2704
|
+
let p = f, m = Ct(p);
|
|
2627
2705
|
for (; m && l && v !== p; ) {
|
|
2628
|
-
const h =
|
|
2629
|
-
c *= h.x, s *= h.y, u *= h.x, d *= h.y, c += w, s +=
|
|
2706
|
+
const h = Fe(m), y = m.getBoundingClientRect(), g = ue(m), w = y.left + (m.clientLeft + parseFloat(g.paddingLeft)) * h.x, k = y.top + (m.clientTop + parseFloat(g.paddingTop)) * h.y;
|
|
2707
|
+
c *= h.x, s *= h.y, u *= h.x, d *= h.y, c += w, s += k, p = te(m), m = Ct(p);
|
|
2630
2708
|
}
|
|
2631
2709
|
}
|
|
2632
2710
|
return ut({
|
|
@@ -2636,22 +2714,22 @@ function Ce(e, t, n, l) {
|
|
|
2636
2714
|
y: s
|
|
2637
2715
|
});
|
|
2638
2716
|
}
|
|
2639
|
-
function
|
|
2717
|
+
function zt(e, t) {
|
|
2640
2718
|
const n = vt(e).scrollLeft;
|
|
2641
|
-
return t ? t.left + n :
|
|
2719
|
+
return t ? t.left + n : ke(ge(e)).left + n;
|
|
2642
2720
|
}
|
|
2643
|
-
function
|
|
2721
|
+
function Kn(e, t, n) {
|
|
2644
2722
|
n === void 0 && (n = !1);
|
|
2645
2723
|
const l = e.getBoundingClientRect(), r = l.left + t.scrollLeft - (n ? 0 : (
|
|
2646
2724
|
// RTL <body> scrollbar.
|
|
2647
|
-
|
|
2725
|
+
zt(e, l)
|
|
2648
2726
|
)), o = l.top + t.scrollTop;
|
|
2649
2727
|
return {
|
|
2650
2728
|
x: r,
|
|
2651
2729
|
y: o
|
|
2652
2730
|
};
|
|
2653
2731
|
}
|
|
2654
|
-
function
|
|
2732
|
+
function fo(e) {
|
|
2655
2733
|
let {
|
|
2656
2734
|
elements: t,
|
|
2657
2735
|
rect: n,
|
|
@@ -2666,11 +2744,11 @@ function ao(e) {
|
|
|
2666
2744
|
scrollTop: 0
|
|
2667
2745
|
}, s = fe(1);
|
|
2668
2746
|
const u = fe(0), d = me(l);
|
|
2669
|
-
if ((d || !d && !o) && ((
|
|
2670
|
-
const v =
|
|
2671
|
-
s =
|
|
2747
|
+
if ((d || !d && !o) && ((Pe(l) !== "body" || Ze(i)) && (c = vt(l)), me(l))) {
|
|
2748
|
+
const v = ke(l);
|
|
2749
|
+
s = Fe(l), u.x = v.x + l.clientLeft, u.y = v.y + l.clientTop;
|
|
2672
2750
|
}
|
|
2673
|
-
const f = i && !d && !o ?
|
|
2751
|
+
const f = i && !d && !o ? Kn(i, c, !0) : fe(0);
|
|
2674
2752
|
return {
|
|
2675
2753
|
width: n.width * s.x,
|
|
2676
2754
|
height: n.height * s.y,
|
|
@@ -2678,12 +2756,12 @@ function ao(e) {
|
|
|
2678
2756
|
y: n.y * s.y - c.scrollTop * s.y + u.y + f.y
|
|
2679
2757
|
};
|
|
2680
2758
|
}
|
|
2681
|
-
function
|
|
2759
|
+
function vo(e) {
|
|
2682
2760
|
return Array.from(e.getClientRects());
|
|
2683
2761
|
}
|
|
2684
|
-
function
|
|
2762
|
+
function po(e) {
|
|
2685
2763
|
const t = ge(e), n = vt(e), l = e.ownerDocument.body, r = J(t.scrollWidth, t.clientWidth, l.scrollWidth, l.clientWidth), o = J(t.scrollHeight, t.clientHeight, l.scrollHeight, l.clientHeight);
|
|
2686
|
-
let i = -n.scrollLeft +
|
|
2764
|
+
let i = -n.scrollLeft + zt(e);
|
|
2687
2765
|
const a = -n.scrollTop;
|
|
2688
2766
|
return ue(l).direction === "rtl" && (i += J(t.clientWidth, l.clientWidth) - r), {
|
|
2689
2767
|
width: r,
|
|
@@ -2692,12 +2770,12 @@ function uo(e) {
|
|
|
2692
2770
|
y: a
|
|
2693
2771
|
};
|
|
2694
2772
|
}
|
|
2695
|
-
function
|
|
2696
|
-
const n =
|
|
2773
|
+
function mo(e, t) {
|
|
2774
|
+
const n = te(e), l = ge(e), r = n.visualViewport;
|
|
2697
2775
|
let o = l.clientWidth, i = l.clientHeight, a = 0, c = 0;
|
|
2698
2776
|
if (r) {
|
|
2699
2777
|
o = r.width, i = r.height;
|
|
2700
|
-
const s =
|
|
2778
|
+
const s = Wt();
|
|
2701
2779
|
(!s || s && t === "fixed") && (a = r.offsetLeft, c = r.offsetTop);
|
|
2702
2780
|
}
|
|
2703
2781
|
return {
|
|
@@ -2707,8 +2785,8 @@ function co(e, t) {
|
|
|
2707
2785
|
y: c
|
|
2708
2786
|
};
|
|
2709
2787
|
}
|
|
2710
|
-
function
|
|
2711
|
-
const n =
|
|
2788
|
+
function go(e, t) {
|
|
2789
|
+
const n = ke(e, !0, t === "fixed"), l = n.top + e.clientTop, r = n.left + e.clientLeft, o = me(e) ? Fe(e) : fe(1), i = e.clientWidth * o.x, a = e.clientHeight * o.y, c = r * o.x, s = l * o.y;
|
|
2712
2790
|
return {
|
|
2713
2791
|
width: i,
|
|
2714
2792
|
height: a,
|
|
@@ -2716,16 +2794,16 @@ function fo(e, t) {
|
|
|
2716
2794
|
y: s
|
|
2717
2795
|
};
|
|
2718
2796
|
}
|
|
2719
|
-
function
|
|
2797
|
+
function an(e, t, n) {
|
|
2720
2798
|
let l;
|
|
2721
2799
|
if (t === "viewport")
|
|
2722
|
-
l =
|
|
2800
|
+
l = mo(e, n);
|
|
2723
2801
|
else if (t === "document")
|
|
2724
|
-
l =
|
|
2802
|
+
l = po(ge(e));
|
|
2725
2803
|
else if (se(t))
|
|
2726
|
-
l =
|
|
2804
|
+
l = go(t, n);
|
|
2727
2805
|
else {
|
|
2728
|
-
const r =
|
|
2806
|
+
const r = qn(e);
|
|
2729
2807
|
l = {
|
|
2730
2808
|
x: t.x - r.x,
|
|
2731
2809
|
y: t.y - r.y,
|
|
@@ -2735,34 +2813,34 @@ function on(e, t, n) {
|
|
|
2735
2813
|
}
|
|
2736
2814
|
return ut(l);
|
|
2737
2815
|
}
|
|
2738
|
-
function
|
|
2739
|
-
const n =
|
|
2740
|
-
return n === t || !se(n) ||
|
|
2816
|
+
function Yn(e, t) {
|
|
2817
|
+
const n = Se(e);
|
|
2818
|
+
return n === t || !se(n) || Me(n) ? !1 : ue(n).position === "fixed" || Yn(n, t);
|
|
2741
2819
|
}
|
|
2742
|
-
function
|
|
2820
|
+
function ho(e, t) {
|
|
2743
2821
|
const n = t.get(e);
|
|
2744
2822
|
if (n)
|
|
2745
2823
|
return n;
|
|
2746
|
-
let l =
|
|
2824
|
+
let l = qe(e, [], !1).filter((a) => se(a) && Pe(a) !== "body"), r = null;
|
|
2747
2825
|
const o = ue(e).position === "fixed";
|
|
2748
|
-
let i = o ?
|
|
2749
|
-
for (; se(i) && !
|
|
2750
|
-
const a = ue(i), c =
|
|
2751
|
-
!c && a.position === "fixed" && (r = null), (o ? !c && !r : !c && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ze(i) && !c &&
|
|
2826
|
+
let i = o ? Se(e) : e;
|
|
2827
|
+
for (; se(i) && !Me(i); ) {
|
|
2828
|
+
const a = ue(i), c = It(i);
|
|
2829
|
+
!c && a.position === "fixed" && (r = null), (o ? !c && !r : !c && a.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || Ze(i) && !c && Yn(e, i)) ? l = l.filter((u) => u !== i) : r = a, i = Se(i);
|
|
2752
2830
|
}
|
|
2753
2831
|
return t.set(e, l), l;
|
|
2754
2832
|
}
|
|
2755
|
-
function
|
|
2833
|
+
function yo(e) {
|
|
2756
2834
|
let {
|
|
2757
2835
|
element: t,
|
|
2758
2836
|
boundary: n,
|
|
2759
2837
|
rootBoundary: l,
|
|
2760
2838
|
strategy: r
|
|
2761
2839
|
} = e;
|
|
2762
|
-
const i = [...n === "clippingAncestors" ? ft(t) ? [] :
|
|
2763
|
-
const d =
|
|
2764
|
-
return s.top = J(d.top, s.top), s.right =
|
|
2765
|
-
},
|
|
2840
|
+
const i = [...n === "clippingAncestors" ? ft(t) ? [] : ho(t, this._c) : [].concat(n), l], a = i[0], c = i.reduce((s, u) => {
|
|
2841
|
+
const d = an(t, u, r);
|
|
2842
|
+
return s.top = J(d.top, s.top), s.right = $e(d.right, s.right), s.bottom = $e(d.bottom, s.bottom), s.left = J(d.left, s.left), s;
|
|
2843
|
+
}, an(t, a, r));
|
|
2766
2844
|
return {
|
|
2767
2845
|
width: c.right - c.left,
|
|
2768
2846
|
height: c.bottom - c.top,
|
|
@@ -2770,29 +2848,29 @@ function po(e) {
|
|
|
2770
2848
|
y: c.top
|
|
2771
2849
|
};
|
|
2772
2850
|
}
|
|
2773
|
-
function
|
|
2851
|
+
function bo(e) {
|
|
2774
2852
|
const {
|
|
2775
2853
|
width: t,
|
|
2776
2854
|
height: n
|
|
2777
|
-
} =
|
|
2855
|
+
} = zn(e);
|
|
2778
2856
|
return {
|
|
2779
2857
|
width: t,
|
|
2780
2858
|
height: n
|
|
2781
2859
|
};
|
|
2782
2860
|
}
|
|
2783
|
-
function
|
|
2784
|
-
const l = me(t), r = ge(t), o = n === "fixed", i =
|
|
2861
|
+
function wo(e, t, n) {
|
|
2862
|
+
const l = me(t), r = ge(t), o = n === "fixed", i = ke(e, !0, o, t);
|
|
2785
2863
|
let a = {
|
|
2786
2864
|
scrollLeft: 0,
|
|
2787
2865
|
scrollTop: 0
|
|
2788
2866
|
};
|
|
2789
2867
|
const c = fe(0);
|
|
2790
2868
|
if (l || !l && !o)
|
|
2791
|
-
if ((
|
|
2792
|
-
const f =
|
|
2869
|
+
if ((Pe(t) !== "body" || Ze(r)) && (a = vt(t)), l) {
|
|
2870
|
+
const f = ke(t, !0, o, t);
|
|
2793
2871
|
c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
|
|
2794
|
-
} else r && (c.x =
|
|
2795
|
-
const s = r && !l && !o ?
|
|
2872
|
+
} else r && (c.x = zt(r));
|
|
2873
|
+
const s = r && !l && !o ? Kn(r, a) : fe(0), u = i.left + a.scrollLeft - c.x - s.x, d = i.top + a.scrollTop - c.y - s.y;
|
|
2796
2874
|
return {
|
|
2797
2875
|
x: u,
|
|
2798
2876
|
y: d,
|
|
@@ -2803,7 +2881,7 @@ function go(e, t, n) {
|
|
|
2803
2881
|
function yt(e) {
|
|
2804
2882
|
return ue(e).position === "static";
|
|
2805
2883
|
}
|
|
2806
|
-
function
|
|
2884
|
+
function sn(e, t) {
|
|
2807
2885
|
if (!me(e) || ue(e).position === "fixed")
|
|
2808
2886
|
return null;
|
|
2809
2887
|
if (t)
|
|
@@ -2811,28 +2889,28 @@ function an(e, t) {
|
|
|
2811
2889
|
let n = e.offsetParent;
|
|
2812
2890
|
return ge(e) === n && (n = n.ownerDocument.body), n;
|
|
2813
2891
|
}
|
|
2814
|
-
function
|
|
2815
|
-
const n =
|
|
2892
|
+
function Gn(e, t) {
|
|
2893
|
+
const n = te(e);
|
|
2816
2894
|
if (ft(e))
|
|
2817
2895
|
return n;
|
|
2818
2896
|
if (!me(e)) {
|
|
2819
|
-
let r =
|
|
2820
|
-
for (; r && !
|
|
2897
|
+
let r = Se(e);
|
|
2898
|
+
for (; r && !Me(r); ) {
|
|
2821
2899
|
if (se(r) && !yt(r))
|
|
2822
2900
|
return r;
|
|
2823
|
-
r =
|
|
2901
|
+
r = Se(r);
|
|
2824
2902
|
}
|
|
2825
2903
|
return n;
|
|
2826
2904
|
}
|
|
2827
|
-
let l =
|
|
2828
|
-
for (; l &&
|
|
2829
|
-
l =
|
|
2830
|
-
return l &&
|
|
2905
|
+
let l = sn(e, t);
|
|
2906
|
+
for (; l && ao(l) && yt(l); )
|
|
2907
|
+
l = sn(l, t);
|
|
2908
|
+
return l && Me(l) && yt(l) && !It(l) ? n : l || so(e) || n;
|
|
2831
2909
|
}
|
|
2832
|
-
const
|
|
2833
|
-
const t = this.getOffsetParent ||
|
|
2910
|
+
const xo = async function(e) {
|
|
2911
|
+
const t = this.getOffsetParent || Gn, n = this.getDimensions, l = await n(e.floating);
|
|
2834
2912
|
return {
|
|
2835
|
-
reference:
|
|
2913
|
+
reference: wo(e.reference, await t(e.floating), e.strategy),
|
|
2836
2914
|
floating: {
|
|
2837
2915
|
x: 0,
|
|
2838
2916
|
y: 0,
|
|
@@ -2841,22 +2919,22 @@ const ho = async function(e) {
|
|
|
2841
2919
|
}
|
|
2842
2920
|
};
|
|
2843
2921
|
};
|
|
2844
|
-
function
|
|
2922
|
+
function $o(e) {
|
|
2845
2923
|
return ue(e).direction === "rtl";
|
|
2846
2924
|
}
|
|
2847
|
-
const
|
|
2848
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2925
|
+
const So = {
|
|
2926
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: fo,
|
|
2849
2927
|
getDocumentElement: ge,
|
|
2850
|
-
getClippingRect:
|
|
2851
|
-
getOffsetParent:
|
|
2852
|
-
getElementRects:
|
|
2853
|
-
getClientRects:
|
|
2854
|
-
getDimensions:
|
|
2855
|
-
getScale:
|
|
2928
|
+
getClippingRect: yo,
|
|
2929
|
+
getOffsetParent: Gn,
|
|
2930
|
+
getElementRects: xo,
|
|
2931
|
+
getClientRects: vo,
|
|
2932
|
+
getDimensions: bo,
|
|
2933
|
+
getScale: Fe,
|
|
2856
2934
|
isElement: se,
|
|
2857
|
-
isRTL:
|
|
2935
|
+
isRTL: $o
|
|
2858
2936
|
};
|
|
2859
|
-
function
|
|
2937
|
+
function Eo(e, t) {
|
|
2860
2938
|
let n = null, l;
|
|
2861
2939
|
const r = ge(e);
|
|
2862
2940
|
function o() {
|
|
@@ -2875,10 +2953,10 @@ function wo(e, t) {
|
|
|
2875
2953
|
return;
|
|
2876
2954
|
const v = tt(u), p = tt(r.clientWidth - (s + d)), m = tt(r.clientHeight - (u + f)), h = tt(s), g = {
|
|
2877
2955
|
rootMargin: -v + "px " + -p + "px " + -m + "px " + -h + "px",
|
|
2878
|
-
threshold: J(0,
|
|
2956
|
+
threshold: J(0, $e(1, c)) || 1
|
|
2879
2957
|
};
|
|
2880
2958
|
let w = !0;
|
|
2881
|
-
function
|
|
2959
|
+
function k(L) {
|
|
2882
2960
|
const P = L[0].intersectionRatio;
|
|
2883
2961
|
if (P !== c) {
|
|
2884
2962
|
if (!w)
|
|
@@ -2890,19 +2968,19 @@ function wo(e, t) {
|
|
|
2890
2968
|
w = !1;
|
|
2891
2969
|
}
|
|
2892
2970
|
try {
|
|
2893
|
-
n = new IntersectionObserver(
|
|
2971
|
+
n = new IntersectionObserver(k, {
|
|
2894
2972
|
...g,
|
|
2895
2973
|
// Handle <iframe>s
|
|
2896
2974
|
root: r.ownerDocument
|
|
2897
2975
|
});
|
|
2898
2976
|
} catch {
|
|
2899
|
-
n = new IntersectionObserver(
|
|
2977
|
+
n = new IntersectionObserver(k, g);
|
|
2900
2978
|
}
|
|
2901
2979
|
n.observe(e);
|
|
2902
2980
|
}
|
|
2903
2981
|
return i(!0), o;
|
|
2904
2982
|
}
|
|
2905
|
-
function
|
|
2983
|
+
function Oo(e, t, n, l) {
|
|
2906
2984
|
l === void 0 && (l = {});
|
|
2907
2985
|
const {
|
|
2908
2986
|
ancestorScroll: r = !0,
|
|
@@ -2910,13 +2988,13 @@ function xo(e, t, n, l) {
|
|
|
2910
2988
|
elementResize: i = typeof ResizeObserver == "function",
|
|
2911
2989
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
2912
2990
|
animationFrame: c = !1
|
|
2913
|
-
} = l, s =
|
|
2991
|
+
} = l, s = Ut(e), u = r || o ? [...s ? qe(s) : [], ...qe(t)] : [];
|
|
2914
2992
|
u.forEach((y) => {
|
|
2915
2993
|
r && y.addEventListener("scroll", n, {
|
|
2916
2994
|
passive: !0
|
|
2917
2995
|
}), o && y.addEventListener("resize", n);
|
|
2918
2996
|
});
|
|
2919
|
-
const d = s && a ?
|
|
2997
|
+
const d = s && a ? Eo(s, n) : null;
|
|
2920
2998
|
let f = -1, v = null;
|
|
2921
2999
|
i && (v = new ResizeObserver((y) => {
|
|
2922
3000
|
let [g] = y;
|
|
@@ -2925,10 +3003,10 @@ function xo(e, t, n, l) {
|
|
|
2925
3003
|
(w = v) == null || w.observe(t);
|
|
2926
3004
|
})), n();
|
|
2927
3005
|
}), s && !c && v.observe(s), v.observe(t));
|
|
2928
|
-
let p, m = c ?
|
|
3006
|
+
let p, m = c ? ke(e) : null;
|
|
2929
3007
|
c && h();
|
|
2930
3008
|
function h() {
|
|
2931
|
-
const y =
|
|
3009
|
+
const y = ke(e);
|
|
2932
3010
|
m && (y.x !== m.x || y.y !== m.y || y.width !== m.width || y.height !== m.height) && n(), m = y, p = requestAnimationFrame(h);
|
|
2933
3011
|
}
|
|
2934
3012
|
return n(), () => {
|
|
@@ -2938,67 +3016,67 @@ function xo(e, t, n, l) {
|
|
|
2938
3016
|
}), d == null || d(), (y = v) == null || y.disconnect(), v = null, c && cancelAnimationFrame(p);
|
|
2939
3017
|
};
|
|
2940
3018
|
}
|
|
2941
|
-
const
|
|
3019
|
+
const Lo = ro, To = no, Co = oo, ko = io, Ao = eo, Po = (e, t, n) => {
|
|
2942
3020
|
const l = /* @__PURE__ */ new Map(), r = {
|
|
2943
|
-
platform:
|
|
3021
|
+
platform: So,
|
|
2944
3022
|
...n
|
|
2945
3023
|
}, o = {
|
|
2946
3024
|
...r.platform,
|
|
2947
3025
|
_c: l
|
|
2948
3026
|
};
|
|
2949
|
-
return
|
|
3027
|
+
return _r(e, t, {
|
|
2950
3028
|
...r,
|
|
2951
3029
|
platform: o
|
|
2952
3030
|
});
|
|
2953
3031
|
};
|
|
2954
|
-
function
|
|
3032
|
+
function Do(e) {
|
|
2955
3033
|
return e != null && typeof e == "object" && "$el" in e;
|
|
2956
3034
|
}
|
|
2957
|
-
function
|
|
2958
|
-
if (
|
|
3035
|
+
function kt(e) {
|
|
3036
|
+
if (Do(e)) {
|
|
2959
3037
|
const t = e.$el;
|
|
2960
|
-
return
|
|
3038
|
+
return Vt(t) && Pe(t) === "#comment" ? null : t;
|
|
2961
3039
|
}
|
|
2962
3040
|
return e;
|
|
2963
3041
|
}
|
|
2964
|
-
function
|
|
2965
|
-
return typeof e == "function" ? e() :
|
|
3042
|
+
function Re(e) {
|
|
3043
|
+
return typeof e == "function" ? e() : x(e);
|
|
2966
3044
|
}
|
|
2967
|
-
function
|
|
3045
|
+
function Ro(e) {
|
|
2968
3046
|
return {
|
|
2969
3047
|
name: "arrow",
|
|
2970
3048
|
options: e,
|
|
2971
3049
|
fn(t) {
|
|
2972
|
-
const n =
|
|
2973
|
-
return n == null ? {} :
|
|
3050
|
+
const n = kt(Re(e.element));
|
|
3051
|
+
return n == null ? {} : Ao({
|
|
2974
3052
|
element: n,
|
|
2975
3053
|
padding: e.padding
|
|
2976
3054
|
}).fn(t);
|
|
2977
3055
|
}
|
|
2978
3056
|
};
|
|
2979
3057
|
}
|
|
2980
|
-
function
|
|
3058
|
+
function Xn(e) {
|
|
2981
3059
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2982
3060
|
}
|
|
2983
|
-
function
|
|
2984
|
-
const n =
|
|
3061
|
+
function un(e, t) {
|
|
3062
|
+
const n = Xn(e);
|
|
2985
3063
|
return Math.round(t * n) / n;
|
|
2986
3064
|
}
|
|
2987
|
-
function
|
|
3065
|
+
function Fo(e, t, n) {
|
|
2988
3066
|
n === void 0 && (n = {});
|
|
2989
3067
|
const l = n.whileElementsMounted, r = b(() => {
|
|
2990
3068
|
var O;
|
|
2991
|
-
return (O =
|
|
2992
|
-
}), o = b(() =>
|
|
3069
|
+
return (O = Re(n.open)) != null ? O : !0;
|
|
3070
|
+
}), o = b(() => Re(n.middleware)), i = b(() => {
|
|
2993
3071
|
var O;
|
|
2994
|
-
return (O =
|
|
3072
|
+
return (O = Re(n.placement)) != null ? O : "bottom";
|
|
2995
3073
|
}), a = b(() => {
|
|
2996
3074
|
var O;
|
|
2997
|
-
return (O =
|
|
3075
|
+
return (O = Re(n.strategy)) != null ? O : "absolute";
|
|
2998
3076
|
}), c = b(() => {
|
|
2999
3077
|
var O;
|
|
3000
|
-
return (O =
|
|
3001
|
-
}), s = b(() =>
|
|
3078
|
+
return (O = Re(n.transform)) != null ? O : !0;
|
|
3079
|
+
}), s = b(() => kt(e.value)), u = b(() => kt(t.value)), d = E(0), f = E(0), v = E(a.value), p = E(i.value), m = We({}), h = E(!1), y = b(() => {
|
|
3002
3080
|
const O = {
|
|
3003
3081
|
position: v.value,
|
|
3004
3082
|
left: "0",
|
|
@@ -3006,11 +3084,11 @@ function ko(e, t, n) {
|
|
|
3006
3084
|
};
|
|
3007
3085
|
if (!u.value)
|
|
3008
3086
|
return O;
|
|
3009
|
-
const R =
|
|
3087
|
+
const R = un(u.value, d.value), U = un(u.value, f.value);
|
|
3010
3088
|
return c.value ? {
|
|
3011
3089
|
...O,
|
|
3012
3090
|
transform: "translate(" + R + "px, " + U + "px)",
|
|
3013
|
-
...
|
|
3091
|
+
...Xn(u.value) >= 1.5 && {
|
|
3014
3092
|
willChange: "transform"
|
|
3015
3093
|
}
|
|
3016
3094
|
} : {
|
|
@@ -3024,7 +3102,7 @@ function ko(e, t, n) {
|
|
|
3024
3102
|
if (s.value == null || u.value == null)
|
|
3025
3103
|
return;
|
|
3026
3104
|
const O = r.value;
|
|
3027
|
-
|
|
3105
|
+
Po(s.value, u.value, {
|
|
3028
3106
|
middleware: o.value,
|
|
3029
3107
|
placement: i.value,
|
|
3030
3108
|
strategy: a.value
|
|
@@ -3032,11 +3110,11 @@ function ko(e, t, n) {
|
|
|
3032
3110
|
d.value = R.x, f.value = R.y, v.value = R.strategy, p.value = R.placement, m.value = R.middlewareData, h.value = O !== !1;
|
|
3033
3111
|
});
|
|
3034
3112
|
}
|
|
3035
|
-
function
|
|
3113
|
+
function k() {
|
|
3036
3114
|
typeof g == "function" && (g(), g = void 0);
|
|
3037
3115
|
}
|
|
3038
3116
|
function L() {
|
|
3039
|
-
if (
|
|
3117
|
+
if (k(), l === void 0) {
|
|
3040
3118
|
w();
|
|
3041
3119
|
return;
|
|
3042
3120
|
}
|
|
@@ -3054,18 +3132,18 @@ function ko(e, t, n) {
|
|
|
3054
3132
|
flush: "sync"
|
|
3055
3133
|
}), de(r, P, {
|
|
3056
3134
|
flush: "sync"
|
|
3057
|
-
}),
|
|
3058
|
-
x:
|
|
3059
|
-
y:
|
|
3060
|
-
strategy:
|
|
3061
|
-
placement:
|
|
3062
|
-
middlewareData:
|
|
3063
|
-
isPositioned:
|
|
3135
|
+
}), rl() && ol(k), {
|
|
3136
|
+
x: De(d),
|
|
3137
|
+
y: De(f),
|
|
3138
|
+
strategy: De(v),
|
|
3139
|
+
placement: De(p),
|
|
3140
|
+
middlewareData: De(m),
|
|
3141
|
+
isPositioned: De(h),
|
|
3064
3142
|
floatingStyles: y,
|
|
3065
3143
|
update: w
|
|
3066
3144
|
};
|
|
3067
3145
|
}
|
|
3068
|
-
const
|
|
3146
|
+
const Bo = ["innerHTML"], Yo = {
|
|
3069
3147
|
__name: "Tooltip",
|
|
3070
3148
|
props: {
|
|
3071
3149
|
content: {
|
|
@@ -3104,17 +3182,17 @@ const Po = ["innerHTML"], Wo = {
|
|
|
3104
3182
|
}
|
|
3105
3183
|
},
|
|
3106
3184
|
setup(e) {
|
|
3107
|
-
const t = e, n =
|
|
3185
|
+
const t = e, n = We(), l = We(), r = We(), {
|
|
3108
3186
|
floatingStyles: o,
|
|
3109
3187
|
middlewareData: i,
|
|
3110
3188
|
placement: a
|
|
3111
|
-
} =
|
|
3189
|
+
} = Fo(n, l, {
|
|
3112
3190
|
middleware: [
|
|
3113
|
-
t.placement ? null :
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3191
|
+
t.placement ? null : To(),
|
|
3192
|
+
Lo(10),
|
|
3193
|
+
Co({ crossAxis: !0, padding: 5 }),
|
|
3194
|
+
Ro({ element: r }),
|
|
3195
|
+
ko({
|
|
3118
3196
|
apply({ availableWidth: u, availableHeight: d, elements: f }) {
|
|
3119
3197
|
Object.assign(f.floating.style, {
|
|
3120
3198
|
maxWidth: t.maxWidth ? `${Math.min(u, t.maxWidth) / 16}rem` : "",
|
|
@@ -3123,7 +3201,7 @@ const Po = ["innerHTML"], Wo = {
|
|
|
3123
3201
|
}
|
|
3124
3202
|
})
|
|
3125
3203
|
],
|
|
3126
|
-
whileElementsMounted:
|
|
3204
|
+
whileElementsMounted: Oo,
|
|
3127
3205
|
placement: t.placement
|
|
3128
3206
|
}), c = (u) => ({
|
|
3129
3207
|
top: 0,
|
|
@@ -3149,42 +3227,43 @@ const Po = ["innerHTML"], Wo = {
|
|
|
3149
3227
|
}
|
|
3150
3228
|
};
|
|
3151
3229
|
};
|
|
3152
|
-
return (u, d) => (
|
|
3230
|
+
return (u, d) => ($(), T("div", {
|
|
3153
3231
|
ref_key: "wrapperRef",
|
|
3154
3232
|
ref: n,
|
|
3155
3233
|
class: "rvc-group/tooltip"
|
|
3156
3234
|
}, [
|
|
3157
3235
|
C(u.$slots, "default"),
|
|
3158
|
-
|
|
3236
|
+
S("div", {
|
|
3159
3237
|
ref_key: "tooltipRef",
|
|
3160
3238
|
ref: l,
|
|
3161
3239
|
class: q(["group-hover/tooltip:rvc-opacity-100 group-hover/tooltip:rvc-visible rvc-invisible rvc-opacity-0 rvc-tooltip", e.tooltipClass, { "rvc-tooltip-blur": e.blur }]),
|
|
3162
|
-
style:
|
|
3240
|
+
style: il(x(o))
|
|
3163
3241
|
}, [
|
|
3164
3242
|
C(u.$slots, "content", { content: e.content }, () => [
|
|
3165
|
-
e.content ? (
|
|
3243
|
+
e.content ? ($(), T("div", {
|
|
3166
3244
|
key: 0,
|
|
3167
3245
|
innerHTML: e.content
|
|
3168
|
-
}, null, 8,
|
|
3246
|
+
}, null, 8, Bo)) : ee("", !0)
|
|
3169
3247
|
]),
|
|
3170
|
-
|
|
3248
|
+
S("div", ye({
|
|
3171
3249
|
ref_key: "arrowRef",
|
|
3172
3250
|
ref: r,
|
|
3173
3251
|
class: "rvc-absolute rvc-tooltip-arrow"
|
|
3174
|
-
}, s(
|
|
3252
|
+
}, s(x(i))), null, 16)
|
|
3175
3253
|
], 6)
|
|
3176
3254
|
], 512));
|
|
3177
3255
|
}
|
|
3178
3256
|
};
|
|
3179
3257
|
export {
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3258
|
+
No as Accordion,
|
|
3259
|
+
jo as Alert,
|
|
3260
|
+
Ho as Badge,
|
|
3183
3261
|
rt as ButtonBase,
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3262
|
+
Vo as Checkbox,
|
|
3263
|
+
Io as DataTable,
|
|
3264
|
+
Uo as Drawer,
|
|
3265
|
+
zo as FormSelect,
|
|
3266
|
+
qo as Lightswitch,
|
|
3267
|
+
Ko as Modal,
|
|
3268
|
+
Yo as Tooltip
|
|
3190
3269
|
};
|