@turquoisehealth/pit-viper 2.227.0 → 2.229.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +18 -1
- package/_site/assets/css/pit-viper-consumer.css +18 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +17 -1
- package/_site/assets/css/pit-viper-v2.css +18 -1
- package/_src/assets/sprite-v2.svg +1 -1
- package/_src/assets/sprite.svg +1 -1
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +6 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +6 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +43 -24
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +17 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +12 -2
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +489 -479
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +36 -23
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +641 -631
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1154 -1144
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +4 -1
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +12 -2
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +68 -59
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +12 -2
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +235 -225
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +12 -2
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +18 -2
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +377 -368
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +451 -441
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +12 -2
- package/pv-components/dist/web/pv-components.iife.js +3 -3
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -48,16 +48,16 @@ var ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, se = Objec
|
|
|
48
48
|
md: "pv-button-small",
|
|
49
49
|
lg: void 0,
|
|
50
50
|
xl: "pv-button-large"
|
|
51
|
-
},
|
|
51
|
+
}, N = (e) => e == null || !me.hasOwnProperty(e) ? null : me[e] || null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
|
-
function
|
|
54
|
+
function he() {
|
|
55
55
|
let e = T(!1), t = d()?.root || {};
|
|
56
56
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/base/baseProps.ts
|
|
60
|
-
var
|
|
60
|
+
var ge = [
|
|
61
61
|
void 0,
|
|
62
62
|
10,
|
|
63
63
|
12,
|
|
@@ -65,24 +65,24 @@ var _e = [
|
|
|
65
65
|
24,
|
|
66
66
|
32,
|
|
67
67
|
64
|
|
68
|
-
],
|
|
68
|
+
], _e = ["xlink:href"], P = /* @__PURE__ */ l({
|
|
69
69
|
__name: "PvIcon",
|
|
70
70
|
props: {
|
|
71
71
|
name: { type: String },
|
|
72
72
|
size: { type: null }
|
|
73
73
|
},
|
|
74
74
|
setup(e) {
|
|
75
|
-
let t = e, n =
|
|
75
|
+
let t = e, n = he(), i = T(null), a = r(() => ({
|
|
76
76
|
"pv-icon": !0,
|
|
77
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
77
|
+
[`pv-icon-${t.size}`]: t.size != null && ge.includes(t.size)
|
|
78
78
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
79
79
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (S(), o("svg", {
|
|
80
80
|
"data-testid": "pv-icon",
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
class: h(a.value)
|
|
83
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
83
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, _e)], 2));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), ve = /* @__PURE__ */ l({
|
|
86
86
|
__name: "PvCounterBadge",
|
|
87
87
|
props: {
|
|
88
88
|
maxValue: {
|
|
@@ -119,14 +119,14 @@ var _e = [
|
|
|
119
119
|
"data-testid": "pv-counter-badge"
|
|
120
120
|
}, O(n.value), 3));
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), ye = ".pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}", be = (e, t) => {
|
|
123
123
|
let n = e.__vccOpts || e;
|
|
124
124
|
for (let [e, r] of t) n[e] = r;
|
|
125
125
|
return n;
|
|
126
|
-
},
|
|
126
|
+
}, xe = /* @__PURE__ */ be(ve, [["styles", [ye]], ["__scopeId", "data-v-013a5d76"]]), Se = ["disabled", "aria-label"], Ce = {
|
|
127
127
|
key: 2,
|
|
128
128
|
"data-testid": "pv-button-label"
|
|
129
|
-
},
|
|
129
|
+
}, we = /* @__PURE__ */ l({
|
|
130
130
|
__name: "PvButton",
|
|
131
131
|
props: {
|
|
132
132
|
variant: {
|
|
@@ -160,7 +160,7 @@ var _e = [
|
|
|
160
160
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
161
161
|
let e = [];
|
|
162
162
|
n.inverse && pe.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
163
|
-
let t =
|
|
163
|
+
let t = N(n.size);
|
|
164
164
|
return t && e.push(t), e;
|
|
165
165
|
});
|
|
166
166
|
return (n, r) => (S(), o("button", {
|
|
@@ -173,95 +173,95 @@ var _e = [
|
|
|
173
173
|
key: 0,
|
|
174
174
|
size: "sm"
|
|
175
175
|
})) : (S(), o(t, { key: 1 }, [
|
|
176
|
-
e.leftCounterBadge ? (S(), i(
|
|
176
|
+
e.leftCounterBadge ? (S(), i(xe, {
|
|
177
177
|
key: 0,
|
|
178
178
|
value: e.leftCounterBadge,
|
|
179
179
|
variant: "tertiary"
|
|
180
180
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
181
|
-
e.leftIcon ? (S(), i(
|
|
181
|
+
e.leftIcon ? (S(), i(P, {
|
|
182
182
|
key: 1,
|
|
183
183
|
name: e.leftIcon,
|
|
184
184
|
"data-testid": "pv-button-left-icon"
|
|
185
185
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
186
|
-
e.label ? (S(), o("span",
|
|
187
|
-
e.rightCounterBadge ? (S(), i(
|
|
186
|
+
e.label ? (S(), o("span", Ce, O(e.label), 1)) : a("v-if", !0),
|
|
187
|
+
e.rightCounterBadge ? (S(), i(xe, {
|
|
188
188
|
key: 3,
|
|
189
189
|
value: e.rightCounterBadge,
|
|
190
190
|
variant: "tertiary"
|
|
191
191
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
192
|
-
e.rightIcon ? (S(), i(
|
|
192
|
+
e.rightIcon ? (S(), i(P, {
|
|
193
193
|
key: 4,
|
|
194
194
|
name: e.rightIcon,
|
|
195
195
|
"data-testid": "pv-button-right-icon"
|
|
196
196
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
197
|
-
], 64))], 10,
|
|
197
|
+
], 64))], 10, Se));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), Te = Math.min, Ee = Math.max, De = Math.round, F = (e) => ({
|
|
200
200
|
x: e,
|
|
201
201
|
y: e
|
|
202
|
-
}),
|
|
202
|
+
}), Oe = {
|
|
203
203
|
left: "right",
|
|
204
204
|
right: "left",
|
|
205
205
|
bottom: "top",
|
|
206
206
|
top: "bottom"
|
|
207
207
|
};
|
|
208
|
-
function
|
|
208
|
+
function ke(e, t) {
|
|
209
209
|
return typeof e == "function" ? e(t) : e;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Ae(e) {
|
|
212
212
|
return e.split("-")[0];
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function je(e) {
|
|
215
215
|
return e.split("-")[1];
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Me(e) {
|
|
218
218
|
return e === "x" ? "y" : "x";
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Ne(e) {
|
|
221
221
|
return e === "y" ? "height" : "width";
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Pe(e) {
|
|
224
224
|
let t = e[0];
|
|
225
225
|
return t === "t" || t === "b" ? "y" : "x";
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
227
|
+
function Fe(e) {
|
|
228
|
+
return Me(Pe(e));
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Ie(e, t, n) {
|
|
231
231
|
n === void 0 && (n = !1);
|
|
232
|
-
let r =
|
|
233
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
232
|
+
let r = je(e), i = Fe(e), a = Ne(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
233
|
+
return t.reference[a] > t.floating[a] && (o = Ge(o)), [o, Ge(o)];
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t =
|
|
235
|
+
function Le(e) {
|
|
236
|
+
let t = Ge(e);
|
|
237
237
|
return [
|
|
238
|
-
|
|
238
|
+
Re(e),
|
|
239
239
|
t,
|
|
240
|
-
|
|
240
|
+
Re(t)
|
|
241
241
|
];
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Re(e) {
|
|
244
244
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
function
|
|
246
|
+
var ze = ["left", "right"], Be = ["right", "left"], Ve = ["top", "bottom"], He = ["bottom", "top"];
|
|
247
|
+
function Ue(e, t, n) {
|
|
248
248
|
switch (e) {
|
|
249
249
|
case "top":
|
|
250
|
-
case "bottom": return n ? t ?
|
|
250
|
+
case "bottom": return n ? t ? Be : ze : t ? ze : Be;
|
|
251
251
|
case "left":
|
|
252
|
-
case "right": return t ?
|
|
252
|
+
case "right": return t ? Ve : He;
|
|
253
253
|
default: return [];
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
let i =
|
|
258
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
256
|
+
function We(e, t, n, r) {
|
|
257
|
+
let i = je(e), a = Ue(Ae(e), n === "start", r);
|
|
258
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Re)))), a;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
let t =
|
|
262
|
-
return
|
|
260
|
+
function Ge(e) {
|
|
261
|
+
let t = Ae(e);
|
|
262
|
+
return Oe[t] + e.slice(t.length);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Ke(e) {
|
|
265
265
|
return {
|
|
266
266
|
top: 0,
|
|
267
267
|
right: 0,
|
|
@@ -270,15 +270,15 @@ function qe(e) {
|
|
|
270
270
|
...e
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function qe(e) {
|
|
274
274
|
return typeof e == "number" ? {
|
|
275
275
|
top: e,
|
|
276
276
|
right: e,
|
|
277
277
|
bottom: e,
|
|
278
278
|
left: e
|
|
279
|
-
} :
|
|
279
|
+
} : Ke(e);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Je(e) {
|
|
282
282
|
let { x: t, y: n, width: r, height: i } = e;
|
|
283
283
|
return {
|
|
284
284
|
width: r,
|
|
@@ -293,8 +293,8 @@ function Ye(e) {
|
|
|
293
293
|
}
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
296
|
-
function
|
|
297
|
-
let { reference: r, floating: i } = e, a =
|
|
296
|
+
function Ye(e, t, n) {
|
|
297
|
+
let { reference: r, floating: i } = e, a = Pe(t), o = Fe(t), s = Ne(o), c = Ae(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
298
298
|
switch (c) {
|
|
299
299
|
case "top":
|
|
300
300
|
p = {
|
|
@@ -325,7 +325,7 @@ function Xe(e, t, n) {
|
|
|
325
325
|
y: r.y
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
switch (
|
|
328
|
+
switch (je(t)) {
|
|
329
329
|
case "start":
|
|
330
330
|
p[o] -= f * (n && l ? -1 : 1);
|
|
331
331
|
break;
|
|
@@ -335,9 +335,9 @@ function Xe(e, t, n) {
|
|
|
335
335
|
}
|
|
336
336
|
return p;
|
|
337
337
|
}
|
|
338
|
-
async function
|
|
338
|
+
async function Xe(e, t) {
|
|
339
339
|
t === void 0 && (t = {});
|
|
340
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
340
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = ke(t, e), p = qe(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Je(await i.getClippingRect({
|
|
341
341
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
342
342
|
boundary: c,
|
|
343
343
|
rootBoundary: l,
|
|
@@ -350,7 +350,7 @@ async function Ze(e, t) {
|
|
|
350
350
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
351
351
|
x: 1,
|
|
352
352
|
y: 1
|
|
353
|
-
}, y =
|
|
353
|
+
}, y = Je(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
354
354
|
elements: o,
|
|
355
355
|
rect: g,
|
|
356
356
|
offsetParent: _,
|
|
@@ -363,15 +363,15 @@ async function Ze(e, t) {
|
|
|
363
363
|
right: (y.right - h.right + p.right) / v.x
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
var
|
|
366
|
+
var Ze = 50, Qe = async (e, t, n) => {
|
|
367
367
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
368
368
|
...o,
|
|
369
|
-
detectOverflow:
|
|
369
|
+
detectOverflow: Xe
|
|
370
370
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
371
371
|
reference: e,
|
|
372
372
|
floating: t,
|
|
373
373
|
strategy: i
|
|
374
|
-
}), { x: u, y: d } =
|
|
374
|
+
}), { x: u, y: d } = Ye(l, r, c), f = r, p = 0, m = {};
|
|
375
375
|
for (let n = 0; n < a.length; n++) {
|
|
376
376
|
let h = a[n];
|
|
377
377
|
if (!h) continue;
|
|
@@ -392,11 +392,11 @@ var Qe = 50, $e = async (e, t, n) => {
|
|
|
392
392
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
393
393
|
...m[g],
|
|
394
394
|
...b
|
|
395
|
-
}, x && p <
|
|
395
|
+
}, x && p < Ze && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
396
396
|
reference: e,
|
|
397
397
|
floating: t,
|
|
398
398
|
strategy: i
|
|
399
|
-
}) : x.rects), {x: u, y: d} =
|
|
399
|
+
}) : x.rects), {x: u, y: d} = Ye(l, f, c)), n = -1);
|
|
400
400
|
}
|
|
401
401
|
return {
|
|
402
402
|
x: u,
|
|
@@ -405,19 +405,19 @@ var Qe = 50, $e = async (e, t, n) => {
|
|
|
405
405
|
strategy: i,
|
|
406
406
|
middlewareData: m
|
|
407
407
|
};
|
|
408
|
-
},
|
|
408
|
+
}, $e = function(e) {
|
|
409
409
|
return e === void 0 && (e = {}), {
|
|
410
410
|
name: "flip",
|
|
411
411
|
options: e,
|
|
412
412
|
async fn(t) {
|
|
413
413
|
var n;
|
|
414
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
414
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = ke(e, t);
|
|
415
415
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
416
|
-
let g =
|
|
417
|
-
!d && x && b.push(...
|
|
416
|
+
let g = Ae(r), _ = Pe(o), v = Ae(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ge(o)] : Le(o)), x = p !== "none";
|
|
417
|
+
!d && x && b.push(...We(o, m, p, y));
|
|
418
418
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
419
419
|
if (l && w.push(C[g]), u) {
|
|
420
|
-
let e =
|
|
420
|
+
let e = Ie(r, a, y);
|
|
421
421
|
w.push(C[e[0]], C[e[1]]);
|
|
422
422
|
}
|
|
423
423
|
if (T = [...T, {
|
|
@@ -425,7 +425,7 @@ var Qe = 50, $e = async (e, t, n) => {
|
|
|
425
425
|
overflows: w
|
|
426
426
|
}], !w.every((e) => e <= 0)) {
|
|
427
427
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
428
|
-
if (t && (!(u === "alignment" && _ !==
|
|
428
|
+
if (t && (!(u === "alignment" && _ !== Pe(t)) || T.every((e) => Pe(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
429
429
|
data: {
|
|
430
430
|
index: e,
|
|
431
431
|
overflows: T
|
|
@@ -437,7 +437,7 @@ var Qe = 50, $e = async (e, t, n) => {
|
|
|
437
437
|
case "bestFit": {
|
|
438
438
|
let e = T.filter((e) => {
|
|
439
439
|
if (x) {
|
|
440
|
-
let t =
|
|
440
|
+
let t = Pe(e.placement);
|
|
441
441
|
return t === _ || t === "y";
|
|
442
442
|
}
|
|
443
443
|
return !0;
|
|
@@ -454,9 +454,9 @@ var Qe = 50, $e = async (e, t, n) => {
|
|
|
454
454
|
return {};
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
|
-
},
|
|
458
|
-
async function
|
|
459
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
457
|
+
}, et = /* @__PURE__ */ new Set(["left", "top"]);
|
|
458
|
+
async function tt(e, t) {
|
|
459
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ae(n), s = je(n), c = Pe(n) === "y", l = et.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = ke(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
460
460
|
mainAxis: d,
|
|
461
461
|
crossAxis: 0,
|
|
462
462
|
alignmentAxis: null
|
|
@@ -473,13 +473,13 @@ async function nt(e, t) {
|
|
|
473
473
|
y: p * u
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var nt = function(e) {
|
|
477
477
|
return e === void 0 && (e = 0), {
|
|
478
478
|
name: "offset",
|
|
479
479
|
options: e,
|
|
480
480
|
async fn(t) {
|
|
481
481
|
var n;
|
|
482
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
482
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await tt(t, e);
|
|
483
483
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
484
484
|
x: r + s.x,
|
|
485
485
|
y: i + s.y,
|
|
@@ -493,39 +493,39 @@ var rt = function(e) {
|
|
|
493
493
|
};
|
|
494
494
|
//#endregion
|
|
495
495
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
496
|
-
function
|
|
496
|
+
function rt() {
|
|
497
497
|
return typeof window < "u";
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
499
|
+
function it(e) {
|
|
500
|
+
return at(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function I(e) {
|
|
503
503
|
var t;
|
|
504
504
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
505
505
|
}
|
|
506
|
-
function I(e) {
|
|
507
|
-
return ((ot(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
508
|
-
}
|
|
509
|
-
function ot(e) {
|
|
510
|
-
return it() ? e instanceof Node || e instanceof F(e).Node : !1;
|
|
511
|
-
}
|
|
512
506
|
function L(e) {
|
|
513
|
-
return
|
|
507
|
+
return ((at(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
508
|
+
}
|
|
509
|
+
function at(e) {
|
|
510
|
+
return rt() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
514
511
|
}
|
|
515
512
|
function R(e) {
|
|
516
|
-
return
|
|
513
|
+
return rt() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
514
|
+
}
|
|
515
|
+
function z(e) {
|
|
516
|
+
return rt() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
517
|
+
}
|
|
518
|
+
function ot(e) {
|
|
519
|
+
return !rt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
517
520
|
}
|
|
518
521
|
function st(e) {
|
|
519
|
-
|
|
522
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = B(e);
|
|
523
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
520
524
|
}
|
|
521
525
|
function ct(e) {
|
|
522
|
-
|
|
523
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
526
|
+
return /^(table|td|th)$/.test(it(e));
|
|
524
527
|
}
|
|
525
528
|
function lt(e) {
|
|
526
|
-
return /^(table|td|th)$/.test(at(e));
|
|
527
|
-
}
|
|
528
|
-
function ut(e) {
|
|
529
529
|
try {
|
|
530
530
|
if (e.matches(":popover-open")) return !0;
|
|
531
531
|
} catch {}
|
|
@@ -535,31 +535,31 @@ function ut(e) {
|
|
|
535
535
|
return !1;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
var
|
|
538
|
+
var ut = /transform|translate|scale|rotate|perspective|filter/, dt = /paint|layout|strict|content/, ft = (e) => !!e && e !== "none", pt;
|
|
539
|
+
function mt(e) {
|
|
540
|
+
let t = R(e) ? B(e) : e;
|
|
541
|
+
return ft(t.transform) || ft(t.translate) || ft(t.scale) || ft(t.rotate) || ft(t.perspective) || !gt() && (ft(t.backdropFilter) || ft(t.filter)) || ut.test(t.willChange || "") || dt.test(t.contain || "");
|
|
542
|
+
}
|
|
539
543
|
function ht(e) {
|
|
540
|
-
let t =
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
for (; R(t) && !vt(t);) {
|
|
546
|
-
if (ht(t)) return t;
|
|
547
|
-
if (ut(t)) return null;
|
|
548
|
-
t = B(t);
|
|
544
|
+
let t = V(e);
|
|
545
|
+
for (; z(t) && !_t(t);) {
|
|
546
|
+
if (mt(t)) return t;
|
|
547
|
+
if (lt(t)) return null;
|
|
548
|
+
t = V(t);
|
|
549
549
|
}
|
|
550
550
|
return null;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function gt() {
|
|
553
|
+
return pt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), pt;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return /^(html|body|#document)$/.test(
|
|
555
|
+
function _t(e) {
|
|
556
|
+
return /^(html|body|#document)$/.test(it(e));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
558
|
+
function B(e) {
|
|
559
|
+
return I(e).getComputedStyle(e);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return
|
|
561
|
+
function vt(e) {
|
|
562
|
+
return R(e) ? {
|
|
563
563
|
scrollLeft: e.scrollLeft,
|
|
564
564
|
scrollTop: e.scrollTop
|
|
565
565
|
} : {
|
|
@@ -567,101 +567,101 @@ function yt(e) {
|
|
|
567
567
|
scrollTop: e.scrollY
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
if (
|
|
572
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
573
|
-
return
|
|
570
|
+
function V(e) {
|
|
571
|
+
if (it(e) === "html") return e;
|
|
572
|
+
let t = e.assignedSlot || e.parentNode || ot(e) && e.host || L(e);
|
|
573
|
+
return ot(t) ? t.host : t;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
let t =
|
|
577
|
-
return
|
|
575
|
+
function yt(e) {
|
|
576
|
+
let t = V(e);
|
|
577
|
+
return _t(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && st(t) ? t : yt(t);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function bt(e, t, n) {
|
|
580
580
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
581
|
-
let r =
|
|
581
|
+
let r = yt(e), i = r === e.ownerDocument?.body, a = I(r);
|
|
582
582
|
if (i) {
|
|
583
|
-
let e =
|
|
584
|
-
return t.concat(a, a.visualViewport || [],
|
|
585
|
-
} else return t.concat(r,
|
|
583
|
+
let e = xt(a);
|
|
584
|
+
return t.concat(a, a.visualViewport || [], st(r) ? r : [], e && n ? bt(e) : []);
|
|
585
|
+
} else return t.concat(r, bt(r, [], n));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function xt(e) {
|
|
588
588
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
589
589
|
}
|
|
590
590
|
//#endregion
|
|
591
591
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
592
|
-
function
|
|
593
|
-
let t =
|
|
592
|
+
function St(e) {
|
|
593
|
+
let t = B(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = z(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = De(n) !== a || De(r) !== o;
|
|
594
594
|
return s && (n = a, r = o), {
|
|
595
595
|
width: n,
|
|
596
596
|
height: r,
|
|
597
597
|
$: s
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
600
|
+
function Ct(e) {
|
|
601
|
+
return R(e) ? e : e.contextElement;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
let t =
|
|
605
|
-
if (!
|
|
606
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
603
|
+
function wt(e) {
|
|
604
|
+
let t = Ct(e);
|
|
605
|
+
if (!z(t)) return F(1);
|
|
606
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = St(t), o = (a ? De(n.width) : n.width) / r, s = (a ? De(n.height) : n.height) / i;
|
|
607
607
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
608
608
|
x: o,
|
|
609
609
|
y: s
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
var
|
|
613
|
-
function
|
|
614
|
-
let t =
|
|
615
|
-
return !
|
|
612
|
+
var Tt = /* @__PURE__ */ F(0);
|
|
613
|
+
function Et(e) {
|
|
614
|
+
let t = I(e);
|
|
615
|
+
return !gt() || !t.visualViewport ? Tt : {
|
|
616
616
|
x: t.visualViewport.offsetLeft,
|
|
617
617
|
y: t.visualViewport.offsetTop
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
620
|
+
function Dt(e, t, n) {
|
|
621
|
+
return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Ot(e, t, n, r) {
|
|
624
624
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
625
|
-
let i = e.getBoundingClientRect(), a =
|
|
626
|
-
t && (r ?
|
|
627
|
-
let s =
|
|
625
|
+
let i = e.getBoundingClientRect(), a = Ct(e), o = F(1);
|
|
626
|
+
t && (r ? R(r) && (o = wt(r)) : o = wt(e));
|
|
627
|
+
let s = Dt(a, n, r) ? Et(a) : F(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
628
628
|
if (a) {
|
|
629
|
-
let e =
|
|
629
|
+
let e = I(a), t = r && R(r) ? I(r) : r, n = e, i = xt(n);
|
|
630
630
|
for (; i && r && t !== n;) {
|
|
631
|
-
let e =
|
|
632
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
631
|
+
let e = wt(i), t = i.getBoundingClientRect(), r = B(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
632
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = I(i), i = xt(n);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
return
|
|
635
|
+
return Je({
|
|
636
636
|
width: u,
|
|
637
637
|
height: d,
|
|
638
638
|
x: c,
|
|
639
639
|
y: l
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
let n =
|
|
644
|
-
return t ? t.left + n :
|
|
642
|
+
function kt(e, t) {
|
|
643
|
+
let n = vt(e).scrollLeft;
|
|
644
|
+
return t ? t.left + n : Ot(L(e)).left + n;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function At(e, t) {
|
|
647
647
|
let n = e.getBoundingClientRect();
|
|
648
648
|
return {
|
|
649
|
-
x: n.left + t.scrollLeft -
|
|
649
|
+
x: n.left + t.scrollLeft - kt(e, n),
|
|
650
650
|
y: n.top + t.scrollTop
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
653
|
+
function jt(e) {
|
|
654
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = L(r), s = t ? lt(t.floating) : !1;
|
|
655
655
|
if (r === o || s && a) return n;
|
|
656
656
|
let c = {
|
|
657
657
|
scrollLeft: 0,
|
|
658
658
|
scrollTop: 0
|
|
659
|
-
}, l =
|
|
660
|
-
if ((d || !d && !a) && ((
|
|
661
|
-
let e =
|
|
662
|
-
l =
|
|
659
|
+
}, l = F(1), u = F(0), d = z(r);
|
|
660
|
+
if ((d || !d && !a) && ((it(r) !== "body" || st(o)) && (c = vt(r)), d)) {
|
|
661
|
+
let e = Ot(r);
|
|
662
|
+
l = wt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
663
663
|
}
|
|
664
|
-
let f = o && !d && !a ?
|
|
664
|
+
let f = o && !d && !a ? At(o, c) : F(0);
|
|
665
665
|
return {
|
|
666
666
|
width: n.width * l.x,
|
|
667
667
|
height: n.height * l.y,
|
|
@@ -669,31 +669,31 @@ function Mt(e) {
|
|
|
669
669
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Mt(e) {
|
|
673
673
|
return Array.from(e.getClientRects());
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
let t =
|
|
677
|
-
return
|
|
675
|
+
function Nt(e) {
|
|
676
|
+
let t = L(e), n = vt(e), r = e.ownerDocument.body, i = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + kt(e), s = -n.scrollTop;
|
|
677
|
+
return B(r).direction === "rtl" && (o += Ee(t.clientWidth, r.clientWidth) - i), {
|
|
678
678
|
width: i,
|
|
679
679
|
height: a,
|
|
680
680
|
x: o,
|
|
681
681
|
y: s
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
var
|
|
685
|
-
function
|
|
686
|
-
let n =
|
|
684
|
+
var Pt = 25;
|
|
685
|
+
function Ft(e, t) {
|
|
686
|
+
let n = I(e), r = L(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
687
687
|
if (i) {
|
|
688
688
|
a = i.width, o = i.height;
|
|
689
|
-
let e =
|
|
689
|
+
let e = gt();
|
|
690
690
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
691
691
|
}
|
|
692
|
-
let l =
|
|
692
|
+
let l = kt(r);
|
|
693
693
|
if (l <= 0) {
|
|
694
694
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
695
|
-
o <=
|
|
696
|
-
} else l <=
|
|
695
|
+
o <= Pt && (a -= o);
|
|
696
|
+
} else l <= Pt && (a += l);
|
|
697
697
|
return {
|
|
698
698
|
width: a,
|
|
699
699
|
height: o,
|
|
@@ -701,8 +701,8 @@ function It(e, t) {
|
|
|
701
701
|
y: c
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
let n =
|
|
704
|
+
function It(e, t) {
|
|
705
|
+
let n = Ot(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = z(e) ? wt(e) : F(1);
|
|
706
706
|
return {
|
|
707
707
|
width: e.clientWidth * a.x,
|
|
708
708
|
height: e.clientHeight * a.y,
|
|
@@ -710,13 +710,13 @@ function Lt(e, t) {
|
|
|
710
710
|
y: r * a.y
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Lt(e, t, n) {
|
|
714
714
|
let r;
|
|
715
|
-
if (t === "viewport") r =
|
|
716
|
-
else if (t === "document") r =
|
|
717
|
-
else if (
|
|
715
|
+
if (t === "viewport") r = Ft(e, n);
|
|
716
|
+
else if (t === "document") r = Nt(L(e));
|
|
717
|
+
else if (R(t)) r = It(t, n);
|
|
718
718
|
else {
|
|
719
|
-
let n =
|
|
719
|
+
let n = Et(e);
|
|
720
720
|
r = {
|
|
721
721
|
x: t.x - n.x,
|
|
722
722
|
y: t.y - n.y,
|
|
@@ -724,27 +724,27 @@ function Rt(e, t, n) {
|
|
|
724
724
|
height: t.height
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
return
|
|
727
|
+
return Je(r);
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
let n =
|
|
731
|
-
return n === t || !
|
|
729
|
+
function Rt(e, t) {
|
|
730
|
+
let n = V(e);
|
|
731
|
+
return n === t || !R(n) || _t(n) ? !1 : B(n).position === "fixed" || Rt(n, t);
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function zt(e, t) {
|
|
734
734
|
let n = t.get(e);
|
|
735
735
|
if (n) return n;
|
|
736
|
-
let r =
|
|
737
|
-
for (;
|
|
738
|
-
let t =
|
|
739
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
736
|
+
let r = bt(e, [], !1).filter((e) => R(e) && it(e) !== "body"), i = null, a = B(e).position === "fixed", o = a ? V(e) : e;
|
|
737
|
+
for (; R(o) && !_t(o);) {
|
|
738
|
+
let t = B(o), n = mt(o);
|
|
739
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || st(o) && !n && Rt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = V(o);
|
|
740
740
|
}
|
|
741
741
|
return t.set(e, r), r;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
744
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
743
|
+
function Bt(e) {
|
|
744
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? lt(t) ? [] : zt(t, this._c) : [].concat(n), r], o = Lt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
745
745
|
for (let e = 1; e < a.length; e++) {
|
|
746
|
-
let n =
|
|
747
|
-
s =
|
|
746
|
+
let n = Lt(t, a[e], i);
|
|
747
|
+
s = Ee(n.top, s), c = Te(n.right, c), l = Te(n.bottom, l), u = Ee(n.left, u);
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
width: c - u,
|
|
@@ -753,27 +753,27 @@ function Vt(e) {
|
|
|
753
753
|
y: s
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
let { width: t, height: n } =
|
|
756
|
+
function Vt(e) {
|
|
757
|
+
let { width: t, height: n } = St(e);
|
|
758
758
|
return {
|
|
759
759
|
width: t,
|
|
760
760
|
height: n
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
let r =
|
|
763
|
+
function Ht(e, t, n) {
|
|
764
|
+
let r = z(t), i = L(t), a = n === "fixed", o = Ot(e, !0, a, t), s = {
|
|
765
765
|
scrollLeft: 0,
|
|
766
766
|
scrollTop: 0
|
|
767
|
-
}, c =
|
|
767
|
+
}, c = F(0);
|
|
768
768
|
function l() {
|
|
769
|
-
c.x =
|
|
769
|
+
c.x = kt(i);
|
|
770
770
|
}
|
|
771
|
-
if (r || !r && !a) if ((
|
|
772
|
-
let e =
|
|
771
|
+
if (r || !r && !a) if ((it(t) !== "body" || st(i)) && (s = vt(t)), r) {
|
|
772
|
+
let e = Ot(t, !0, a, t);
|
|
773
773
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
774
774
|
} else i && l();
|
|
775
775
|
a && !r && i && l();
|
|
776
|
-
let u = i && !r && !a ?
|
|
776
|
+
let u = i && !r && !a ? At(i, s) : F(0);
|
|
777
777
|
return {
|
|
778
778
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
779
779
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -781,34 +781,34 @@ function Ut(e, t, n) {
|
|
|
781
781
|
height: o.height
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
return
|
|
784
|
+
function Ut(e) {
|
|
785
|
+
return B(e).position === "static";
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
if (!
|
|
787
|
+
function Wt(e, t) {
|
|
788
|
+
if (!z(e) || B(e).position === "fixed") return null;
|
|
789
789
|
if (t) return t(e);
|
|
790
790
|
let n = e.offsetParent;
|
|
791
|
-
return
|
|
792
|
-
}
|
|
793
|
-
function
|
|
794
|
-
let n =
|
|
795
|
-
if (
|
|
796
|
-
if (!
|
|
797
|
-
let t =
|
|
798
|
-
for (; t && !
|
|
799
|
-
if (
|
|
800
|
-
t =
|
|
791
|
+
return L(e) === n && (n = n.ownerDocument.body), n;
|
|
792
|
+
}
|
|
793
|
+
function Gt(e, t) {
|
|
794
|
+
let n = I(e);
|
|
795
|
+
if (lt(e)) return n;
|
|
796
|
+
if (!z(e)) {
|
|
797
|
+
let t = V(e);
|
|
798
|
+
for (; t && !_t(t);) {
|
|
799
|
+
if (R(t) && !Ut(t)) return t;
|
|
800
|
+
t = V(t);
|
|
801
801
|
}
|
|
802
802
|
return n;
|
|
803
803
|
}
|
|
804
|
-
let r =
|
|
805
|
-
for (; r &&
|
|
806
|
-
return r &&
|
|
804
|
+
let r = Wt(e, t);
|
|
805
|
+
for (; r && ct(r) && Ut(r);) r = Wt(r, t);
|
|
806
|
+
return r && _t(r) && Ut(r) && !mt(r) ? n : r || ht(e) || n;
|
|
807
807
|
}
|
|
808
|
-
var
|
|
809
|
-
let t = this.getOffsetParent ||
|
|
808
|
+
var Kt = async function(e) {
|
|
809
|
+
let t = this.getOffsetParent || Gt, n = this.getDimensions, r = await n(e.floating);
|
|
810
810
|
return {
|
|
811
|
-
reference:
|
|
811
|
+
reference: Ht(e.reference, await t(e.floating), e.strategy),
|
|
812
812
|
floating: {
|
|
813
813
|
x: 0,
|
|
814
814
|
y: 0,
|
|
@@ -817,48 +817,48 @@ var qt = async function(e) {
|
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
|
-
function
|
|
821
|
-
return
|
|
822
|
-
}
|
|
823
|
-
var
|
|
824
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
825
|
-
getDocumentElement:
|
|
826
|
-
getClippingRect:
|
|
827
|
-
getOffsetParent:
|
|
828
|
-
getElementRects:
|
|
829
|
-
getClientRects:
|
|
830
|
-
getDimensions:
|
|
831
|
-
getScale:
|
|
832
|
-
isElement:
|
|
833
|
-
isRTL:
|
|
834
|
-
},
|
|
820
|
+
function qt(e) {
|
|
821
|
+
return B(e).direction === "rtl";
|
|
822
|
+
}
|
|
823
|
+
var Jt = {
|
|
824
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: jt,
|
|
825
|
+
getDocumentElement: L,
|
|
826
|
+
getClippingRect: Bt,
|
|
827
|
+
getOffsetParent: Gt,
|
|
828
|
+
getElementRects: Kt,
|
|
829
|
+
getClientRects: Mt,
|
|
830
|
+
getDimensions: Vt,
|
|
831
|
+
getScale: wt,
|
|
832
|
+
isElement: R,
|
|
833
|
+
isRTL: qt
|
|
834
|
+
}, Yt = nt, Xt = $e, Zt = (e, t, n) => {
|
|
835
835
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
836
|
-
platform:
|
|
836
|
+
platform: Jt,
|
|
837
837
|
...n
|
|
838
838
|
}, a = {
|
|
839
839
|
...i.platform,
|
|
840
840
|
_c: r
|
|
841
841
|
};
|
|
842
|
-
return
|
|
842
|
+
return Qe(e, t, {
|
|
843
843
|
...i,
|
|
844
844
|
platform: a
|
|
845
845
|
});
|
|
846
|
-
},
|
|
846
|
+
}, H = /* @__PURE__ */ le({
|
|
847
847
|
Vue: () => e,
|
|
848
848
|
Vue2: () => void 0,
|
|
849
|
-
del: () =>
|
|
850
|
-
install: () =>
|
|
849
|
+
del: () => tn,
|
|
850
|
+
install: () => $t,
|
|
851
851
|
isVue2: () => !1,
|
|
852
852
|
isVue3: () => !0,
|
|
853
|
-
set: () =>
|
|
853
|
+
set: () => en
|
|
854
854
|
});
|
|
855
|
-
import * as
|
|
856
|
-
de(
|
|
857
|
-
function
|
|
858
|
-
function
|
|
855
|
+
import * as Qt from "vue";
|
|
856
|
+
de(H, Qt);
|
|
857
|
+
function $t() {}
|
|
858
|
+
function en(e, t, n) {
|
|
859
859
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function tn(e, t) {
|
|
862
862
|
if (Array.isArray(e)) {
|
|
863
863
|
e.splice(t, 1);
|
|
864
864
|
return;
|
|
@@ -867,40 +867,40 @@ function nn(e, t) {
|
|
|
867
867
|
}
|
|
868
868
|
//#endregion
|
|
869
869
|
//#region ../node_modules/.pnpm/@floating-ui+vue@1.1.11_vue@3.5.32_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
870
|
-
function
|
|
870
|
+
function nn(e) {
|
|
871
871
|
return typeof e == "object" && !!e && "$el" in e;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
873
|
+
function rn(e) {
|
|
874
|
+
if (nn(e)) {
|
|
875
875
|
let t = e.$el;
|
|
876
|
-
return
|
|
876
|
+
return at(t) && it(t) === "#comment" ? null : t;
|
|
877
877
|
}
|
|
878
878
|
return e;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
return typeof e == "function" ? e() : (0,
|
|
880
|
+
function an(e) {
|
|
881
|
+
return typeof e == "function" ? e() : (0, H.unref)(e);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function on(e) {
|
|
884
884
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
let n =
|
|
886
|
+
function sn(e, t) {
|
|
887
|
+
let n = on(e);
|
|
888
888
|
return Math.round(t * n) / n;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function cn(e, t, n) {
|
|
891
891
|
n === void 0 && (n = {});
|
|
892
|
-
let r = n.whileElementsMounted, i = (0,
|
|
892
|
+
let r = n.whileElementsMounted, i = (0, H.computed)(() => an(n.open) ?? !0), a = (0, H.computed)(() => an(n.middleware)), o = (0, H.computed)(() => an(n.placement) ?? "bottom"), s = (0, H.computed)(() => an(n.strategy) ?? "absolute"), c = (0, H.computed)(() => an(n.transform) ?? !0), l = (0, H.computed)(() => rn(e.value)), u = (0, H.computed)(() => rn(t.value)), d = (0, H.ref)(0), f = (0, H.ref)(0), p = (0, H.ref)(s.value), m = (0, H.ref)(o.value), h = (0, H.shallowRef)({}), g = (0, H.ref)(!1), _ = (0, H.computed)(() => {
|
|
893
893
|
let e = {
|
|
894
894
|
position: p.value,
|
|
895
895
|
left: "0",
|
|
896
896
|
top: "0"
|
|
897
897
|
};
|
|
898
898
|
if (!u.value) return e;
|
|
899
|
-
let t =
|
|
899
|
+
let t = sn(u.value, d.value), n = sn(u.value, f.value);
|
|
900
900
|
return c.value ? {
|
|
901
901
|
...e,
|
|
902
902
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
903
|
-
...
|
|
903
|
+
...on(u.value) >= 1.5 && { willChange: "transform" }
|
|
904
904
|
} : {
|
|
905
905
|
position: p.value,
|
|
906
906
|
left: t + "px",
|
|
@@ -910,7 +910,7 @@ function ln(e, t, n) {
|
|
|
910
910
|
function y() {
|
|
911
911
|
if (l.value == null || u.value == null) return;
|
|
912
912
|
let e = i.value;
|
|
913
|
-
|
|
913
|
+
Zt(l.value, u.value, {
|
|
914
914
|
middleware: a.value,
|
|
915
915
|
placement: o.value,
|
|
916
916
|
strategy: s.value
|
|
@@ -934,34 +934,34 @@ function ln(e, t, n) {
|
|
|
934
934
|
function S() {
|
|
935
935
|
i.value || (g.value = !1);
|
|
936
936
|
}
|
|
937
|
-
return (0,
|
|
937
|
+
return (0, H.watch)([
|
|
938
938
|
a,
|
|
939
939
|
o,
|
|
940
940
|
s,
|
|
941
941
|
i
|
|
942
|
-
], y, { flush: "sync" }), (0,
|
|
943
|
-
x: (0,
|
|
944
|
-
y: (0,
|
|
945
|
-
strategy: (0,
|
|
946
|
-
placement: (0,
|
|
947
|
-
middlewareData: (0,
|
|
948
|
-
isPositioned: (0,
|
|
942
|
+
], y, { flush: "sync" }), (0, H.watch)([l, u], x, { flush: "sync" }), (0, H.watch)(i, S, { flush: "sync" }), (0, H.getCurrentScope)() && (0, H.onScopeDispose)(b), {
|
|
943
|
+
x: (0, H.shallowReadonly)(d),
|
|
944
|
+
y: (0, H.shallowReadonly)(f),
|
|
945
|
+
strategy: (0, H.shallowReadonly)(p),
|
|
946
|
+
placement: (0, H.shallowReadonly)(m),
|
|
947
|
+
middlewareData: (0, H.shallowReadonly)(h),
|
|
948
|
+
isPositioned: (0, H.shallowReadonly)(g),
|
|
949
949
|
floatingStyles: _,
|
|
950
950
|
update: y
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
953
|
//#endregion
|
|
954
954
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
955
|
-
function
|
|
955
|
+
function ln(e) {
|
|
956
956
|
return f() ? (b(e), !0) : !1;
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var un = typeof window < "u" && typeof document < "u";
|
|
959
959
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
960
|
-
var
|
|
961
|
-
function
|
|
962
|
-
return
|
|
960
|
+
var dn = (e) => e != null, fn = Object.prototype.toString, pn = (e) => fn.call(e) === "[object Object]", U = () => {}, mn = /* @__PURE__ */ hn();
|
|
961
|
+
function hn() {
|
|
962
|
+
return un && (window == null ? void 0 : window.navigator)?.userAgent && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || (window == null ? void 0 : window.navigator)?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function gn(e, t) {
|
|
965
965
|
function n(...n) {
|
|
966
966
|
return new Promise((r, i) => {
|
|
967
967
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -973,9 +973,9 @@ function _n(e, t) {
|
|
|
973
973
|
}
|
|
974
974
|
return n;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
977
|
-
let n, r, i =
|
|
978
|
-
clearTimeout(e), i(), i =
|
|
976
|
+
function _n(e, t = {}) {
|
|
977
|
+
let n, r, i = U, a = (e) => {
|
|
978
|
+
clearTimeout(e), i(), i = U;
|
|
979
979
|
}, o;
|
|
980
980
|
return (s) => {
|
|
981
981
|
let c = k(e), l = k(t.maxWait);
|
|
@@ -988,20 +988,20 @@ function vn(e, t = {}) {
|
|
|
988
988
|
});
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function vn(e) {
|
|
992
992
|
return Array.isArray(e) ? e : [e];
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function yn(e) {
|
|
995
995
|
return e || d();
|
|
996
996
|
}
|
|
997
997
|
/* @__NO_SIDE_EFFECTS__ */
|
|
998
|
-
function
|
|
999
|
-
return _n(
|
|
998
|
+
function bn(e, t = 200, n = {}) {
|
|
999
|
+
return gn(_n(t, n), e);
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
|
|
1001
|
+
function xn(e, t = !0, n) {
|
|
1002
|
+
yn(n) ? y(e, n) : t ? e() : m(e);
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function Sn(e, t, n) {
|
|
1005
1005
|
return M(e, t, {
|
|
1006
1006
|
...n,
|
|
1007
1007
|
immediate: !0
|
|
@@ -1009,49 +1009,49 @@ function Cn(e, t, n) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
//#endregion
|
|
1011
1011
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1014
|
-
function
|
|
1012
|
+
var Cn = un ? window : void 0;
|
|
1013
|
+
un && window.document, un && window.navigator, un && window.location;
|
|
1014
|
+
function W(e) {
|
|
1015
1015
|
let t = k(e);
|
|
1016
1016
|
return t?.$el ?? t;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function wn(...e) {
|
|
1019
1019
|
let t = [], n = () => {
|
|
1020
1020
|
t.forEach((e) => e()), t.length = 0;
|
|
1021
1021
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
1022
|
-
let t =
|
|
1022
|
+
let t = vn(k(e[0])).filter((e) => e != null);
|
|
1023
1023
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
1024
|
-
}), o =
|
|
1025
|
-
a.value?.map((e) =>
|
|
1026
|
-
|
|
1027
|
-
|
|
1024
|
+
}), o = Sn(() => [
|
|
1025
|
+
a.value?.map((e) => W(e)) ?? [Cn].filter((e) => e != null),
|
|
1026
|
+
vn(k(a.value ? e[1] : e[0])),
|
|
1027
|
+
vn(A(a.value ? e[2] : e[1])),
|
|
1028
1028
|
k(a.value ? e[3] : e[2])
|
|
1029
1029
|
], ([e, r, a, o]) => {
|
|
1030
1030
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
1031
|
-
let s =
|
|
1031
|
+
let s = pn(o) ? { ...o } : o;
|
|
1032
1032
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
1033
1033
|
}, { flush: "post" });
|
|
1034
|
-
return
|
|
1034
|
+
return ln(n), () => {
|
|
1035
1035
|
o(), n();
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
var Tn = !1;
|
|
1039
1039
|
function En(e, t, n = {}) {
|
|
1040
|
-
let { window: r =
|
|
1040
|
+
let { window: r = Cn, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
1041
1041
|
if (!r) return s ? {
|
|
1042
|
-
stop:
|
|
1043
|
-
cancel:
|
|
1044
|
-
trigger:
|
|
1045
|
-
} :
|
|
1046
|
-
if (
|
|
1042
|
+
stop: U,
|
|
1043
|
+
cancel: U,
|
|
1044
|
+
trigger: U
|
|
1045
|
+
} : U;
|
|
1046
|
+
if (mn && !Tn) {
|
|
1047
1047
|
Tn = !0;
|
|
1048
1048
|
let e = { passive: !0 };
|
|
1049
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
1049
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", U, e)), r.document.documentElement.addEventListener("click", U, e);
|
|
1050
1050
|
}
|
|
1051
1051
|
let c = !0, l = (e) => k(i).some((t) => {
|
|
1052
1052
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
1053
1053
|
{
|
|
1054
|
-
let n =
|
|
1054
|
+
let n = W(t);
|
|
1055
1055
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
1056
1056
|
}
|
|
1057
1057
|
});
|
|
@@ -1064,7 +1064,7 @@ function En(e, t, n = {}) {
|
|
|
1064
1064
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
1065
1065
|
}
|
|
1066
1066
|
let f = (n) => {
|
|
1067
|
-
let r =
|
|
1067
|
+
let r = W(e);
|
|
1068
1068
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
1069
1069
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
1070
1070
|
c = !0;
|
|
@@ -1073,7 +1073,7 @@ function En(e, t, n = {}) {
|
|
|
1073
1073
|
t(n);
|
|
1074
1074
|
}
|
|
1075
1075
|
}, p = !1, m = [
|
|
1076
|
-
|
|
1076
|
+
wn(r, "click", (e) => {
|
|
1077
1077
|
p || (p = !0, setTimeout(() => {
|
|
1078
1078
|
p = !1;
|
|
1079
1079
|
}, 0), f(e));
|
|
@@ -1081,13 +1081,13 @@ function En(e, t, n = {}) {
|
|
|
1081
1081
|
passive: !0,
|
|
1082
1082
|
capture: a
|
|
1083
1083
|
}),
|
|
1084
|
-
|
|
1085
|
-
let n =
|
|
1084
|
+
wn(r, "pointerdown", (t) => {
|
|
1085
|
+
let n = W(e);
|
|
1086
1086
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
1087
1087
|
}, { passive: !0 }),
|
|
1088
|
-
o &&
|
|
1088
|
+
o && wn(r, "blur", (n) => {
|
|
1089
1089
|
setTimeout(() => {
|
|
1090
|
-
let i =
|
|
1090
|
+
let i = W(e);
|
|
1091
1091
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
1092
1092
|
}, 0);
|
|
1093
1093
|
}, { passive: !0 })
|
|
@@ -1115,10 +1115,10 @@ function On(e) {
|
|
|
1115
1115
|
return r(() => (t.value, !!e()));
|
|
1116
1116
|
}
|
|
1117
1117
|
function kn(e, t, n = {}) {
|
|
1118
|
-
let { window: i =
|
|
1118
|
+
let { window: i = Cn, ...a } = n, o, s = /* @__PURE__ */ On(() => i && "MutationObserver" in i), c = () => {
|
|
1119
1119
|
o &&= (o.disconnect(), void 0);
|
|
1120
1120
|
}, l = M(r(() => {
|
|
1121
|
-
let t =
|
|
1121
|
+
let t = vn(k(e)).map(W).filter(dn);
|
|
1122
1122
|
return new Set(t);
|
|
1123
1123
|
}), (e) => {
|
|
1124
1124
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -1128,19 +1128,19 @@ function kn(e, t, n = {}) {
|
|
|
1128
1128
|
}), u = () => o?.takeRecords(), d = () => {
|
|
1129
1129
|
l(), c();
|
|
1130
1130
|
};
|
|
1131
|
-
return
|
|
1131
|
+
return ln(d), {
|
|
1132
1132
|
isSupported: s,
|
|
1133
1133
|
stop: d,
|
|
1134
1134
|
takeRecords: u
|
|
1135
1135
|
};
|
|
1136
1136
|
}
|
|
1137
1137
|
function An(e, t, n = {}) {
|
|
1138
|
-
let { window: r =
|
|
1139
|
-
if (!r || !i) return
|
|
1138
|
+
let { window: r = Cn, document: i = r?.document, flush: a = "sync" } = n;
|
|
1139
|
+
if (!r || !i) return U;
|
|
1140
1140
|
let o, s = (e) => {
|
|
1141
1141
|
o?.(), o = e;
|
|
1142
1142
|
}, c = ne(() => {
|
|
1143
|
-
let n =
|
|
1143
|
+
let n = W(e);
|
|
1144
1144
|
if (n) {
|
|
1145
1145
|
let { stop: e } = kn(i, (e) => {
|
|
1146
1146
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
@@ -1154,14 +1154,14 @@ function An(e, t, n = {}) {
|
|
|
1154
1154
|
}, { flush: a }), l = () => {
|
|
1155
1155
|
c(), s();
|
|
1156
1156
|
};
|
|
1157
|
-
return
|
|
1157
|
+
return ln(l), l;
|
|
1158
1158
|
}
|
|
1159
1159
|
function jn(e, t, n = {}) {
|
|
1160
|
-
let { window: i =
|
|
1160
|
+
let { window: i = Cn, ...a } = n, o, s = /* @__PURE__ */ On(() => i && "ResizeObserver" in i), c = () => {
|
|
1161
1161
|
o &&= (o.disconnect(), void 0);
|
|
1162
1162
|
}, l = M(r(() => {
|
|
1163
1163
|
let t = k(e);
|
|
1164
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
1164
|
+
return Array.isArray(t) ? t.map((e) => W(e)) : [W(t)];
|
|
1165
1165
|
}), (e) => {
|
|
1166
1166
|
if (c(), s.value && i) {
|
|
1167
1167
|
o = new ResizeObserver(t);
|
|
@@ -1173,7 +1173,7 @@ function jn(e, t, n = {}) {
|
|
|
1173
1173
|
}), u = () => {
|
|
1174
1174
|
c(), l();
|
|
1175
1175
|
};
|
|
1176
|
-
return
|
|
1176
|
+
return ln(u), {
|
|
1177
1177
|
isSupported: s,
|
|
1178
1178
|
stop: u
|
|
1179
1179
|
};
|
|
@@ -1181,7 +1181,7 @@ function jn(e, t, n = {}) {
|
|
|
1181
1181
|
function Mn(e, t = {}) {
|
|
1182
1182
|
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = D(0), c = D(0), l = D(0), u = D(0), d = D(0), f = D(0), p = D(0), m = D(0);
|
|
1183
1183
|
function h() {
|
|
1184
|
-
let t =
|
|
1184
|
+
let t = W(e);
|
|
1185
1185
|
if (!t) {
|
|
1186
1186
|
n && (s.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0);
|
|
1187
1187
|
return;
|
|
@@ -1192,10 +1192,10 @@ function Mn(e, t = {}) {
|
|
|
1192
1192
|
function g() {
|
|
1193
1193
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
1194
1194
|
}
|
|
1195
|
-
return jn(e, g), M(() =>
|
|
1195
|
+
return jn(e, g), M(() => W(e), (e) => !e && g()), kn(e, g, { attributeFilter: ["style", "class"] }), i && wn("scroll", g, {
|
|
1196
1196
|
capture: !0,
|
|
1197
1197
|
passive: !0
|
|
1198
|
-
}), r &&
|
|
1198
|
+
}), r && wn("resize", g, { passive: !0 }), xn(() => {
|
|
1199
1199
|
a && g();
|
|
1200
1200
|
}), {
|
|
1201
1201
|
height: s,
|
|
@@ -1210,11 +1210,11 @@ function Mn(e, t = {}) {
|
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
1212
|
function Nn(e, t = {}) {
|
|
1213
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
1213
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = Cn } = t, s = D(!1), c, l = (e) => {
|
|
1214
1214
|
let t = e ? n : i;
|
|
1215
1215
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
1216
1216
|
};
|
|
1217
|
-
return o ? (
|
|
1217
|
+
return o ? (wn(e, "mouseenter", () => l(!0), { passive: !0 }), wn(e, "mouseleave", () => l(!1), { passive: !0 }), a && An(r(() => W(e)), () => l(!1)), s) : s;
|
|
1218
1218
|
}
|
|
1219
1219
|
//#endregion
|
|
1220
1220
|
//#region src/composables/useSlotPresence.ts
|
|
@@ -1232,7 +1232,7 @@ function In(e, t) {
|
|
|
1232
1232
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Ln(e, t = {}) {
|
|
1235
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1235
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = he(), l = i ?? j(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = T(d());
|
|
1236
1236
|
v(() => {
|
|
1237
1237
|
f.value = d();
|
|
1238
1238
|
});
|
|
@@ -1288,7 +1288,7 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1288
1288
|
}
|
|
1289
1289
|
for (let t of [...Rn]) t !== e && !zn(t, e) && t.close() && Rn.delete(t);
|
|
1290
1290
|
Rn.add(e);
|
|
1291
|
-
}), Vn = ["popover"], Hn = "--pv-popover-v2-anchor", Un = /* @__PURE__ */
|
|
1291
|
+
}), Vn = ["popover"], Hn = "--pv-popover-v2-anchor", Un = /* @__PURE__ */ be(/* @__PURE__ */ l({
|
|
1292
1292
|
__name: "PvPopoverV2",
|
|
1293
1293
|
props: /* @__PURE__ */ p({
|
|
1294
1294
|
disableAutoPlacement: {
|
|
@@ -1311,6 +1311,10 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1311
1311
|
type: Boolean,
|
|
1312
1312
|
default: !1
|
|
1313
1313
|
},
|
|
1314
|
+
enableClickToggle: {
|
|
1315
|
+
type: Boolean,
|
|
1316
|
+
default: !1
|
|
1317
|
+
},
|
|
1314
1318
|
enableGroupSync: {
|
|
1315
1319
|
type: Boolean,
|
|
1316
1320
|
default: !1
|
|
@@ -1363,7 +1367,7 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1363
1367
|
`anchor-scope: ${Hn}`
|
|
1364
1368
|
].every((e) => CSS.supports(e)), v = T(!1), b = T(null), C = T(null), w = T(null), D = T(null), O = Nn(C), k = Nn(D), j = T(!1), ne = T(!1), re = T(!1), ae = Bn({
|
|
1365
1369
|
root: b,
|
|
1366
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1370
|
+
close: () => t.disableClickOutsideToClose ? !1 : (ve(), !0)
|
|
1367
1371
|
}), oe = {
|
|
1368
1372
|
"top-center": "top",
|
|
1369
1373
|
"bottom-center": "bottom",
|
|
@@ -1431,14 +1435,14 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1431
1435
|
}), fe = () => {}, pe = () => ({});
|
|
1432
1436
|
if (!_) {
|
|
1433
1437
|
let e = [];
|
|
1434
|
-
t.disableAutoPlacement || e.push(
|
|
1435
|
-
let n =
|
|
1438
|
+
t.disableAutoPlacement || e.push(Xt({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Yt(t.offset));
|
|
1439
|
+
let n = cn(w, D, {
|
|
1436
1440
|
placement: oe[t.position],
|
|
1437
1441
|
strategy: t.positioningStrategy,
|
|
1438
1442
|
middleware: e
|
|
1439
1443
|
});
|
|
1440
1444
|
fe = n.update, pe = () => n.floatingStyles.value;
|
|
1441
|
-
let i = Mn(w), a = /* @__PURE__ */
|
|
1445
|
+
let i = Mn(w), a = /* @__PURE__ */ bn(() => {
|
|
1442
1446
|
c.value && fe();
|
|
1443
1447
|
}, 5);
|
|
1444
1448
|
M([
|
|
@@ -1447,7 +1451,7 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1447
1451
|
i.width,
|
|
1448
1452
|
i.height
|
|
1449
1453
|
], a), En(b, () => {
|
|
1450
|
-
t.disableClickOutsideToClose ||
|
|
1454
|
+
t.disableClickOutsideToClose || P(!1);
|
|
1451
1455
|
}, { ignore: r(() => [
|
|
1452
1456
|
D.value,
|
|
1453
1457
|
".p-datepicker-panel",
|
|
@@ -1457,20 +1461,20 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1457
1461
|
let me = r(() => ({
|
|
1458
1462
|
...pe(),
|
|
1459
1463
|
zIndex: t.zIndex
|
|
1460
|
-
})), he, ge
|
|
1464
|
+
})), N, he, ge = () => {
|
|
1465
|
+
N && clearTimeout(N), N = void 0;
|
|
1466
|
+
}, _e = () => {
|
|
1461
1467
|
he && clearTimeout(he), he = void 0;
|
|
1462
|
-
},
|
|
1463
|
-
ge &&
|
|
1464
|
-
|
|
1465
|
-
_e(), ve(), !(e && (t.disabled || !h.value)) && (e && t.delay > 0 && (t.showOnHover || !_) ? he = setTimeout(() => {
|
|
1466
|
-
c.value = !0, he = void 0;
|
|
1468
|
+
}, P = (e) => {
|
|
1469
|
+
ge(), _e(), !(e && (t.disabled || !h.value)) && (e && t.delay > 0 && (t.showOnHover || !_) ? N = setTimeout(() => {
|
|
1470
|
+
c.value = !0, N = void 0;
|
|
1467
1471
|
}, t.delay) : c.value = e);
|
|
1472
|
+
}, ve = () => {
|
|
1473
|
+
ge(), _e(), c.value = !1;
|
|
1468
1474
|
}, ye = () => {
|
|
1469
|
-
_e(), ve(), c.value = !1;
|
|
1470
|
-
}, be = () => {
|
|
1471
1475
|
let e = D.value;
|
|
1472
1476
|
!e || !v.value || !h.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1473
|
-
},
|
|
1477
|
+
}, be = r(() => !t.showOnHover || re.value ? !1 : t.disableInteractive ? O.value || j.value : O.value || k.value || j.value || ne.value);
|
|
1474
1478
|
M([
|
|
1475
1479
|
O,
|
|
1476
1480
|
j,
|
|
@@ -1478,63 +1482,68 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1478
1482
|
], ([e, t, n]) => {
|
|
1479
1483
|
!e && !t && !n && (re.value = !1);
|
|
1480
1484
|
});
|
|
1481
|
-
let
|
|
1485
|
+
let xe = ({ target: e }) => {
|
|
1482
1486
|
j.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1483
|
-
},
|
|
1487
|
+
}, Se = ({ target: e }) => {
|
|
1484
1488
|
ne.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1485
|
-
},
|
|
1489
|
+
}, Ce = () => {
|
|
1486
1490
|
ne.value = !1;
|
|
1487
|
-
},
|
|
1491
|
+
}, we = () => {
|
|
1488
1492
|
if (t.showOnHover) {
|
|
1489
|
-
t.disableClickOutsideToClose
|
|
1493
|
+
if (t.disableClickOutsideToClose) return;
|
|
1494
|
+
if (!c.value && !N && t.enableClickToggle) {
|
|
1495
|
+
re.value = !1, P(!0);
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
re.value = !0, ve();
|
|
1490
1499
|
return;
|
|
1491
1500
|
}
|
|
1492
|
-
N
|
|
1493
|
-
},
|
|
1501
|
+
P(N ? !1 : !c.value);
|
|
1502
|
+
}, Te = (e) => {
|
|
1494
1503
|
let t = e.newState === "open";
|
|
1495
1504
|
c.value !== t && (c.value = t);
|
|
1496
|
-
},
|
|
1497
|
-
_ && ce.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1505
|
+
}, Ee = (e) => {
|
|
1506
|
+
_ && ce.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), P(!1));
|
|
1498
1507
|
};
|
|
1499
1508
|
return M(c, async (e) => {
|
|
1500
1509
|
if (t.showOnHover && t.enableGroupSync && ae(!!e), !_) {
|
|
1501
1510
|
e && fe();
|
|
1502
1511
|
return;
|
|
1503
1512
|
}
|
|
1504
|
-
await m(),
|
|
1505
|
-
}), M(
|
|
1513
|
+
await m(), ye();
|
|
1514
|
+
}), M(be, (e) => {
|
|
1506
1515
|
if (t.showOnHover) {
|
|
1507
1516
|
if (e) {
|
|
1508
|
-
|
|
1517
|
+
P(!0);
|
|
1509
1518
|
return;
|
|
1510
1519
|
}
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
}, t.closeDelay)) :
|
|
1520
|
+
ge(), t.closeDelay > 0 ? (_e(), he = setTimeout(() => {
|
|
1521
|
+
he = void 0, be.value || P(!1);
|
|
1522
|
+
}, t.closeDelay)) : P(!1);
|
|
1514
1523
|
}
|
|
1515
1524
|
}), M(h, (e) => {
|
|
1516
|
-
e ? _ && c.value && m(
|
|
1525
|
+
e ? _ && c.value && m(ye) : ve();
|
|
1517
1526
|
}), y(() => {
|
|
1518
|
-
w.value = C.value, v.value = !0, c.value && m(() => _ ?
|
|
1527
|
+
w.value = C.value, v.value = !0, c.value && m(() => _ ? ye() : fe());
|
|
1519
1528
|
}), x(() => {
|
|
1520
|
-
|
|
1529
|
+
ge(), _e();
|
|
1521
1530
|
}), M(() => t.disabled, (e) => {
|
|
1522
1531
|
if (!e) {
|
|
1523
|
-
|
|
1532
|
+
be.value && P(!0);
|
|
1524
1533
|
return;
|
|
1525
1534
|
}
|
|
1526
|
-
j.value &&= !1, ne.value &&= !1,
|
|
1535
|
+
j.value &&= !1, ne.value &&= !1, P(!1);
|
|
1527
1536
|
}), (r, l) => (S(), o("div", {
|
|
1528
1537
|
ref_key: "root",
|
|
1529
1538
|
ref: b,
|
|
1530
1539
|
style: g(le.value),
|
|
1531
|
-
onKeydown:
|
|
1540
|
+
onKeydown: Ee
|
|
1532
1541
|
}, [s("div", {
|
|
1533
1542
|
ref_key: "triggerWrapper",
|
|
1534
1543
|
ref: C,
|
|
1535
1544
|
style: g(ue.value),
|
|
1536
|
-
onClick:
|
|
1537
|
-
onFocusin:
|
|
1545
|
+
onClick: we,
|
|
1546
|
+
onFocusin: xe,
|
|
1538
1547
|
onFocusout: l[0] ||= (e) => j.value = !1
|
|
1539
1548
|
}, [E(r.$slots, "trigger")], 36), v.value && A(_) && h.value ? (S(), o("div", {
|
|
1540
1549
|
key: 0,
|
|
@@ -1543,9 +1552,9 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1543
1552
|
class: "pv-floating pv-floating-native",
|
|
1544
1553
|
popover: ce.value,
|
|
1545
1554
|
style: g(de.value),
|
|
1546
|
-
onToggle:
|
|
1547
|
-
onFocusin:
|
|
1548
|
-
onFocusout:
|
|
1555
|
+
onToggle: Te,
|
|
1556
|
+
onFocusin: Se,
|
|
1557
|
+
onFocusout: Ce
|
|
1549
1558
|
}, [e.disabled ? a("v-if", !0) : E(r.$slots, "content", { key: 0 })], 44, Vn)) : h.value ? (S(), i(n, {
|
|
1550
1559
|
key: 1,
|
|
1551
1560
|
to: e.teleportLocation,
|
|
@@ -1555,18 +1564,18 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1555
1564
|
ref: D,
|
|
1556
1565
|
class: "pv-floating",
|
|
1557
1566
|
style: g(me.value),
|
|
1558
|
-
onFocusin:
|
|
1559
|
-
onFocusout:
|
|
1567
|
+
onFocusin: Se,
|
|
1568
|
+
onFocusout: Ce
|
|
1560
1569
|
}, [E(r.$slots, "content")], 36), [[te, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1561
1570
|
}
|
|
1562
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1571
|
+
}), [["styles", [".pv-floating-native[data-v-0469d441]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-0469d441]>.pv-popover,.pv-floating-native>slot[name=content][data-v-0469d441]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-0469d441"]]), Wn = { class: "pv-split-button pv-flex" }, Gn = {
|
|
1563
1572
|
class: "pv-split-button__menu-content pv-surface pv-bordered pv-radius pv-inset-square-8 pv-flex-vertical",
|
|
1564
1573
|
style: {
|
|
1565
1574
|
"--flex-gap": "4px",
|
|
1566
1575
|
"--flex-align": "flex-start",
|
|
1567
1576
|
width: "100%"
|
|
1568
1577
|
}
|
|
1569
|
-
}, Kn = /* @__PURE__ */
|
|
1578
|
+
}, Kn = /* @__PURE__ */ be(/* @__PURE__ */ l({
|
|
1570
1579
|
__name: "PvSplitButton",
|
|
1571
1580
|
props: {
|
|
1572
1581
|
label: { type: String },
|
|
@@ -1591,7 +1600,7 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1591
1600
|
emits: ["click"],
|
|
1592
1601
|
setup(e) {
|
|
1593
1602
|
let t = T(!1);
|
|
1594
|
-
return (n, r) => (S(), o("div", Wn, [c(
|
|
1603
|
+
return (n, r) => (S(), o("div", Wn, [c(we, {
|
|
1595
1604
|
class: "pv-split-button__action",
|
|
1596
1605
|
label: e.label,
|
|
1597
1606
|
variant: e.variant,
|
|
@@ -1621,7 +1630,7 @@ var Rn = /* @__PURE__ */ new Set(), zn = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1621
1630
|
position: e.position,
|
|
1622
1631
|
offset: e.offset
|
|
1623
1632
|
}, {
|
|
1624
|
-
trigger: re(() => [c(
|
|
1633
|
+
trigger: re(() => [c(we, {
|
|
1625
1634
|
class: "pv-split-button__menu-trigger",
|
|
1626
1635
|
size: e.size,
|
|
1627
1636
|
variant: e.variant,
|