@turquoisehealth/pit-viper 2.266.1-dev.1 → 2.267.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y-v3.css +12 -0
- package/_site/assets/css/pit-viper-a11y.css +12 -0
- package/_site/assets/css/pit-viper-consumer.css +12 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +10 -0
- package/_site/assets/css/pit-viper-v2.css +12 -0
- package/_site/assets/css/pit-viper-v3.css +12 -0
- package/_site/assets/css/pit-viper.css +12 -0
- package/_site/manifest.json +2 -2
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +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-file-input-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-header-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-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-prompt-input-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-question-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-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-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/ai/PvPromptInput/PvPromptInput.vue.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/ai/PvPromptInput/types.d.ts +12 -0
- package/pv-components/dist/vue/ai/components/ai/PvQuestion/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvFileInput/PvFileInput.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -4
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +0 -2
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +2 -2
- package/pv-components/dist/vue/ai/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvTooltip/PvTooltip.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +494 -325
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvFileInput/PvFileInput.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -4
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +0 -2
- package/pv-components/dist/vue/base/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1115 -1120
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFileInput/PvFileInput.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/base/PvSuggestionTag/PvSuggestionTag.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +0 -7
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1020 -1064
- 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 +307 -323
- package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +158 -151
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +3 -20
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +877 -887
- package/pv-components/dist/web/components/pv-header/pv-header.js +38 -32
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +2 -18
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +2 -18
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +3 -20
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +406 -422
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +834 -572
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +2 -18
- package/pv-components/dist/web/components/pv-question/pv-question.js +387 -373
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +460 -476
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +330 -346
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +2 -18
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +2 -18
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +244 -260
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +573 -589
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +382 -376
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +672 -688
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +414 -430
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +608 -624
- package/pv-components/dist/web/pv-components.iife.js +39 -39
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -49,19 +49,19 @@ var ge = [
|
|
|
49
49
|
class: _(a.value)
|
|
50
50
|
}, [s("use", { "xlink:href": c.value }, null, 8, _e)], 2));
|
|
51
51
|
}
|
|
52
|
-
}), P = Math.min,
|
|
52
|
+
}), P = Math.min, ye = Math.max, be = Math.round, F = (e) => ({
|
|
53
53
|
x: e,
|
|
54
54
|
y: e
|
|
55
|
-
}),
|
|
55
|
+
}), xe = {
|
|
56
56
|
left: "right",
|
|
57
57
|
right: "left",
|
|
58
58
|
bottom: "top",
|
|
59
59
|
top: "bottom"
|
|
60
60
|
};
|
|
61
|
-
function
|
|
61
|
+
function Se(e, t) {
|
|
62
62
|
return typeof e == "function" ? e(t) : e;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function I(e) {
|
|
65
65
|
return e.split("-")[0];
|
|
66
66
|
}
|
|
67
67
|
function Ce(e) {
|
|
@@ -73,48 +73,48 @@ function we(e) {
|
|
|
73
73
|
function Te(e) {
|
|
74
74
|
return e === "y" ? "height" : "width";
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function L(e) {
|
|
77
77
|
let t = e[0];
|
|
78
78
|
return t === "t" || t === "b" ? "y" : "x";
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return we(
|
|
80
|
+
function Ee(e) {
|
|
81
|
+
return we(L(e));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function De(e, t, n) {
|
|
84
84
|
n === void 0 && (n = !1);
|
|
85
|
-
let r = Ce(e), i =
|
|
86
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
85
|
+
let r = Ce(e), i = Ee(e), a = Te(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
86
|
+
return t.reference[a] > t.floating[a] && (o = Ie(o)), [o, Ie(o)];
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let t =
|
|
88
|
+
function Oe(e) {
|
|
89
|
+
let t = Ie(e);
|
|
90
90
|
return [
|
|
91
|
-
|
|
91
|
+
ke(e),
|
|
92
92
|
t,
|
|
93
|
-
|
|
93
|
+
ke(t)
|
|
94
94
|
];
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ke(e) {
|
|
97
97
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
98
98
|
}
|
|
99
|
-
var
|
|
100
|
-
function
|
|
99
|
+
var Ae = ["left", "right"], je = ["right", "left"], Me = ["top", "bottom"], Ne = ["bottom", "top"];
|
|
100
|
+
function Pe(e, t, n) {
|
|
101
101
|
switch (e) {
|
|
102
102
|
case "top":
|
|
103
|
-
case "bottom": return n ? t ?
|
|
103
|
+
case "bottom": return n ? t ? je : Ae : t ? Ae : je;
|
|
104
104
|
case "left":
|
|
105
|
-
case "right": return t ?
|
|
105
|
+
case "right": return t ? Me : Ne;
|
|
106
106
|
default: return [];
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
let i = Ce(e), a =
|
|
111
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
109
|
+
function Fe(e, t, n, r) {
|
|
110
|
+
let i = Ce(e), a = Pe(I(e), n === "start", r);
|
|
111
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ke)))), a;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
let t =
|
|
115
|
-
return
|
|
113
|
+
function Ie(e) {
|
|
114
|
+
let t = I(e);
|
|
115
|
+
return xe[t] + e.slice(t.length);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Le(e) {
|
|
118
118
|
return {
|
|
119
119
|
top: 0,
|
|
120
120
|
right: 0,
|
|
@@ -123,15 +123,15 @@ function Re(e) {
|
|
|
123
123
|
...e
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Re(e) {
|
|
127
127
|
return typeof e == "number" ? {
|
|
128
128
|
top: e,
|
|
129
129
|
right: e,
|
|
130
130
|
bottom: e,
|
|
131
131
|
left: e
|
|
132
|
-
} :
|
|
132
|
+
} : Le(e);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ze(e) {
|
|
135
135
|
let { x: t, y: n, width: r, height: i } = e;
|
|
136
136
|
return {
|
|
137
137
|
width: r,
|
|
@@ -146,8 +146,8 @@ function Be(e) {
|
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
149
|
-
function
|
|
150
|
-
let { reference: r, floating: i } = e, a =
|
|
149
|
+
function Be(e, t, n) {
|
|
150
|
+
let { reference: r, floating: i } = e, a = L(t), o = Ee(t), s = Te(o), c = I(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;
|
|
151
151
|
switch (c) {
|
|
152
152
|
case "top":
|
|
153
153
|
p = {
|
|
@@ -188,9 +188,9 @@ function Ve(e, t, n) {
|
|
|
188
188
|
}
|
|
189
189
|
return p;
|
|
190
190
|
}
|
|
191
|
-
async function
|
|
191
|
+
async function Ve(e, t) {
|
|
192
192
|
t === void 0 && (t = {});
|
|
193
|
-
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 } =
|
|
193
|
+
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 } = Se(t, e), p = Re(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = ze(await i.getClippingRect({
|
|
194
194
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
195
195
|
boundary: c,
|
|
196
196
|
rootBoundary: l,
|
|
@@ -203,7 +203,7 @@ async function He(e, t) {
|
|
|
203
203
|
} : 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(_)) || {
|
|
204
204
|
x: 1,
|
|
205
205
|
y: 1
|
|
206
|
-
}, y =
|
|
206
|
+
}, y = ze(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
207
207
|
elements: o,
|
|
208
208
|
rect: g,
|
|
209
209
|
offsetParent: _,
|
|
@@ -216,15 +216,15 @@ async function He(e, t) {
|
|
|
216
216
|
right: (y.right - h.right + p.right) / v.x
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var He = 50, Ue = async (e, t, n) => {
|
|
220
220
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
221
221
|
...o,
|
|
222
|
-
detectOverflow:
|
|
222
|
+
detectOverflow: Ve
|
|
223
223
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
224
224
|
reference: e,
|
|
225
225
|
floating: t,
|
|
226
226
|
strategy: i
|
|
227
|
-
}), { x: u, y: d } =
|
|
227
|
+
}), { x: u, y: d } = Be(l, r, c), f = r, p = 0, m = {};
|
|
228
228
|
for (let n = 0; n < a.length; n++) {
|
|
229
229
|
let h = a[n];
|
|
230
230
|
if (!h) continue;
|
|
@@ -245,11 +245,11 @@ var Ue = 50, We = async (e, t, n) => {
|
|
|
245
245
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
246
246
|
...m[g],
|
|
247
247
|
...b
|
|
248
|
-
}, x && p <
|
|
248
|
+
}, x && p < He && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
249
249
|
reference: e,
|
|
250
250
|
floating: t,
|
|
251
251
|
strategy: i
|
|
252
|
-
}) : x.rects), {x: u, y: d} =
|
|
252
|
+
}) : x.rects), {x: u, y: d} = Be(l, f, c)), n = -1);
|
|
253
253
|
}
|
|
254
254
|
return {
|
|
255
255
|
x: u,
|
|
@@ -258,19 +258,19 @@ var Ue = 50, We = async (e, t, n) => {
|
|
|
258
258
|
strategy: i,
|
|
259
259
|
middlewareData: m
|
|
260
260
|
};
|
|
261
|
-
},
|
|
261
|
+
}, We = function(e) {
|
|
262
262
|
return e === void 0 && (e = {}), {
|
|
263
263
|
name: "flip",
|
|
264
264
|
options: e,
|
|
265
265
|
async fn(t) {
|
|
266
266
|
var n;
|
|
267
|
-
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 } =
|
|
267
|
+
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 } = Se(e, t);
|
|
268
268
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
269
|
-
let g =
|
|
270
|
-
!d && x && b.push(...
|
|
269
|
+
let g = I(r), _ = L(o), v = I(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ie(o)] : Oe(o)), x = p !== "none";
|
|
270
|
+
!d && x && b.push(...Fe(o, m, p, y));
|
|
271
271
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
272
272
|
if (l && w.push(C[g]), u) {
|
|
273
|
-
let e =
|
|
273
|
+
let e = De(r, a, y);
|
|
274
274
|
w.push(C[e[0]], C[e[1]]);
|
|
275
275
|
}
|
|
276
276
|
if (T = [...T, {
|
|
@@ -278,7 +278,7 @@ var Ue = 50, We = async (e, t, n) => {
|
|
|
278
278
|
overflows: w
|
|
279
279
|
}], !w.every((e) => e <= 0)) {
|
|
280
280
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
281
|
-
if (t && (!(u === "alignment" && _ !==
|
|
281
|
+
if (t && (!(u === "alignment" && _ !== L(t)) || T.every((e) => L(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
282
282
|
data: {
|
|
283
283
|
index: e,
|
|
284
284
|
overflows: T
|
|
@@ -290,7 +290,7 @@ var Ue = 50, We = async (e, t, n) => {
|
|
|
290
290
|
case "bestFit": {
|
|
291
291
|
let e = T.filter((e) => {
|
|
292
292
|
if (x) {
|
|
293
|
-
let t =
|
|
293
|
+
let t = L(e.placement);
|
|
294
294
|
return t === _ || t === "y";
|
|
295
295
|
}
|
|
296
296
|
return !0;
|
|
@@ -307,9 +307,9 @@ var Ue = 50, We = async (e, t, n) => {
|
|
|
307
307
|
return {};
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
},
|
|
311
|
-
async function
|
|
312
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
310
|
+
}, Ge = /* @__PURE__ */ new Set(["left", "top"]);
|
|
311
|
+
async function Ke(e, t) {
|
|
312
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = I(n), s = Ce(n), c = L(n) === "y", l = Ge.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Se(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
313
313
|
mainAxis: d,
|
|
314
314
|
crossAxis: 0,
|
|
315
315
|
alignmentAxis: null
|
|
@@ -326,13 +326,13 @@ async function qe(e, t) {
|
|
|
326
326
|
y: p * u
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
var
|
|
329
|
+
var qe = function(e) {
|
|
330
330
|
return e === void 0 && (e = 0), {
|
|
331
331
|
name: "offset",
|
|
332
332
|
options: e,
|
|
333
333
|
async fn(t) {
|
|
334
334
|
var n;
|
|
335
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
335
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Ke(t, e);
|
|
336
336
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
337
337
|
x: r + s.x,
|
|
338
338
|
y: i + s.y,
|
|
@@ -346,39 +346,39 @@ var Je = function(e) {
|
|
|
346
346
|
};
|
|
347
347
|
//#endregion
|
|
348
348
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
349
|
-
function
|
|
349
|
+
function Je() {
|
|
350
350
|
return typeof window < "u";
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
return
|
|
352
|
+
function Ye(e) {
|
|
353
|
+
return Xe(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function R(e) {
|
|
356
356
|
var t;
|
|
357
357
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
358
358
|
}
|
|
359
|
-
function R(e) {
|
|
360
|
-
return ((Ze(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
361
|
-
}
|
|
362
|
-
function Ze(e) {
|
|
363
|
-
return Ye() ? e instanceof Node || e instanceof L(e).Node : !1;
|
|
364
|
-
}
|
|
365
359
|
function z(e) {
|
|
366
|
-
return
|
|
360
|
+
return ((Xe(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
361
|
+
}
|
|
362
|
+
function Xe(e) {
|
|
363
|
+
return Je() ? e instanceof Node || e instanceof R(e).Node : !1;
|
|
367
364
|
}
|
|
368
365
|
function B(e) {
|
|
369
|
-
return
|
|
366
|
+
return Je() ? e instanceof Element || e instanceof R(e).Element : !1;
|
|
367
|
+
}
|
|
368
|
+
function V(e) {
|
|
369
|
+
return Je() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
|
|
370
|
+
}
|
|
371
|
+
function Ze(e) {
|
|
372
|
+
return !Je() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
|
|
370
373
|
}
|
|
371
374
|
function Qe(e) {
|
|
372
|
-
|
|
375
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = H(e);
|
|
376
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
373
377
|
}
|
|
374
378
|
function $e(e) {
|
|
375
|
-
|
|
376
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
379
|
+
return /^(table|td|th)$/.test(Ye(e));
|
|
377
380
|
}
|
|
378
381
|
function et(e) {
|
|
379
|
-
return /^(table|td|th)$/.test(Xe(e));
|
|
380
|
-
}
|
|
381
|
-
function tt(e) {
|
|
382
382
|
try {
|
|
383
383
|
if (e.matches(":popover-open")) return !0;
|
|
384
384
|
} catch {}
|
|
@@ -388,31 +388,31 @@ function tt(e) {
|
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
var
|
|
391
|
+
var tt = /transform|translate|scale|rotate|perspective|filter/, nt = /paint|layout|strict|content/, rt = (e) => !!e && e !== "none", it;
|
|
392
|
+
function at(e) {
|
|
393
|
+
let t = B(e) ? H(e) : e;
|
|
394
|
+
return rt(t.transform) || rt(t.translate) || rt(t.scale) || rt(t.rotate) || rt(t.perspective) || !st() && (rt(t.backdropFilter) || rt(t.filter)) || tt.test(t.willChange || "") || nt.test(t.contain || "");
|
|
395
|
+
}
|
|
392
396
|
function ot(e) {
|
|
393
|
-
let t =
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
for (; B(t) && !lt(t);) {
|
|
399
|
-
if (ot(t)) return t;
|
|
400
|
-
if (tt(t)) return null;
|
|
401
|
-
t = H(t);
|
|
397
|
+
let t = U(e);
|
|
398
|
+
for (; V(t) && !ct(t);) {
|
|
399
|
+
if (at(t)) return t;
|
|
400
|
+
if (et(t)) return null;
|
|
401
|
+
t = U(t);
|
|
402
402
|
}
|
|
403
403
|
return null;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
return
|
|
405
|
+
function st() {
|
|
406
|
+
return it ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), it;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
return /^(html|body|#document)$/.test(
|
|
408
|
+
function ct(e) {
|
|
409
|
+
return /^(html|body|#document)$/.test(Ye(e));
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
return
|
|
411
|
+
function H(e) {
|
|
412
|
+
return R(e).getComputedStyle(e);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
return
|
|
414
|
+
function lt(e) {
|
|
415
|
+
return B(e) ? {
|
|
416
416
|
scrollLeft: e.scrollLeft,
|
|
417
417
|
scrollTop: e.scrollTop
|
|
418
418
|
} : {
|
|
@@ -420,101 +420,101 @@ function ut(e) {
|
|
|
420
420
|
scrollTop: e.scrollY
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
if (
|
|
425
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
426
|
-
return
|
|
423
|
+
function U(e) {
|
|
424
|
+
if (Ye(e) === "html") return e;
|
|
425
|
+
let t = e.assignedSlot || e.parentNode || Ze(e) && e.host || z(e);
|
|
426
|
+
return Ze(t) ? t.host : t;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
let t =
|
|
430
|
-
return
|
|
428
|
+
function ut(e) {
|
|
429
|
+
let t = U(e);
|
|
430
|
+
return ct(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && Qe(t) ? t : ut(t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function dt(e, t, n) {
|
|
433
433
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
434
|
-
let r =
|
|
434
|
+
let r = ut(e), i = r === e.ownerDocument?.body, a = R(r);
|
|
435
435
|
if (i) {
|
|
436
|
-
let e =
|
|
437
|
-
return t.concat(a, a.visualViewport || [],
|
|
438
|
-
} else return t.concat(r,
|
|
436
|
+
let e = ft(a);
|
|
437
|
+
return t.concat(a, a.visualViewport || [], Qe(r) ? r : [], e && n ? dt(e) : []);
|
|
438
|
+
} else return t.concat(r, dt(r, [], n));
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function ft(e) {
|
|
441
441
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
442
442
|
}
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
445
|
-
function
|
|
446
|
-
let t =
|
|
445
|
+
function pt(e) {
|
|
446
|
+
let t = H(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = V(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = be(n) !== a || be(r) !== o;
|
|
447
447
|
return s && (n = a, r = o), {
|
|
448
448
|
width: n,
|
|
449
449
|
height: r,
|
|
450
450
|
$: s
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
453
|
+
function mt(e) {
|
|
454
|
+
return B(e) ? e : e.contextElement;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
let t =
|
|
458
|
-
if (!
|
|
459
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
456
|
+
function ht(e) {
|
|
457
|
+
let t = mt(e);
|
|
458
|
+
if (!V(t)) return F(1);
|
|
459
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = pt(t), o = (a ? be(n.width) : n.width) / r, s = (a ? be(n.height) : n.height) / i;
|
|
460
460
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
461
461
|
x: o,
|
|
462
462
|
y: s
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
let t =
|
|
468
|
-
return !
|
|
465
|
+
var gt = /* @__PURE__ */ F(0);
|
|
466
|
+
function _t(e) {
|
|
467
|
+
let t = R(e);
|
|
468
|
+
return !st() || !t.visualViewport ? gt : {
|
|
469
469
|
x: t.visualViewport.offsetLeft,
|
|
470
470
|
y: t.visualViewport.offsetTop
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
function
|
|
474
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
473
|
+
function vt(e, t, n) {
|
|
474
|
+
return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function yt(e, t, n, r) {
|
|
477
477
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
478
|
-
let i = e.getBoundingClientRect(), a =
|
|
479
|
-
t && (r ?
|
|
480
|
-
let s =
|
|
478
|
+
let i = e.getBoundingClientRect(), a = mt(e), o = F(1);
|
|
479
|
+
t && (r ? B(r) && (o = ht(r)) : o = ht(e));
|
|
480
|
+
let s = vt(a, n, r) ? _t(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;
|
|
481
481
|
if (a) {
|
|
482
|
-
let e =
|
|
482
|
+
let e = R(a), t = r && B(r) ? R(r) : r, n = e, i = ft(n);
|
|
483
483
|
for (; i && r && t !== n;) {
|
|
484
|
-
let e =
|
|
485
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
484
|
+
let e = ht(i), t = i.getBoundingClientRect(), r = H(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
485
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = R(i), i = ft(n);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
return
|
|
488
|
+
return ze({
|
|
489
489
|
width: u,
|
|
490
490
|
height: d,
|
|
491
491
|
x: c,
|
|
492
492
|
y: l
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
let n =
|
|
497
|
-
return t ? t.left + n :
|
|
495
|
+
function bt(e, t) {
|
|
496
|
+
let n = lt(e).scrollLeft;
|
|
497
|
+
return t ? t.left + n : yt(z(e)).left + n;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function xt(e, t) {
|
|
500
500
|
let n = e.getBoundingClientRect();
|
|
501
501
|
return {
|
|
502
|
-
x: n.left + t.scrollLeft -
|
|
502
|
+
x: n.left + t.scrollLeft - bt(e, n),
|
|
503
503
|
y: n.top + t.scrollTop
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
506
|
+
function St(e) {
|
|
507
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = z(r), s = t ? et(t.floating) : !1;
|
|
508
508
|
if (r === o || s && a) return n;
|
|
509
509
|
let c = {
|
|
510
510
|
scrollLeft: 0,
|
|
511
511
|
scrollTop: 0
|
|
512
|
-
}, l =
|
|
513
|
-
if ((d || !d && !a) && ((
|
|
514
|
-
let e =
|
|
515
|
-
l =
|
|
512
|
+
}, l = F(1), u = F(0), d = V(r);
|
|
513
|
+
if ((d || !d && !a) && ((Ye(r) !== "body" || Qe(o)) && (c = lt(r)), d)) {
|
|
514
|
+
let e = yt(r);
|
|
515
|
+
l = ht(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
516
516
|
}
|
|
517
|
-
let f = o && !d && !a ?
|
|
517
|
+
let f = o && !d && !a ? xt(o, c) : F(0);
|
|
518
518
|
return {
|
|
519
519
|
width: n.width * l.x,
|
|
520
520
|
height: n.height * l.y,
|
|
@@ -522,31 +522,31 @@ function Ct(e) {
|
|
|
522
522
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Ct(e) {
|
|
526
526
|
return Array.from(e.getClientRects());
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
let t =
|
|
530
|
-
return
|
|
528
|
+
function wt(e) {
|
|
529
|
+
let t = z(e), n = lt(e), r = e.ownerDocument.body, i = ye(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ye(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + bt(e), s = -n.scrollTop;
|
|
530
|
+
return H(r).direction === "rtl" && (o += ye(t.clientWidth, r.clientWidth) - i), {
|
|
531
531
|
width: i,
|
|
532
532
|
height: a,
|
|
533
533
|
x: o,
|
|
534
534
|
y: s
|
|
535
535
|
};
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
539
|
-
let n =
|
|
537
|
+
var Tt = 25;
|
|
538
|
+
function Et(e, t) {
|
|
539
|
+
let n = R(e), r = z(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
540
540
|
if (i) {
|
|
541
541
|
a = i.width, o = i.height;
|
|
542
|
-
let e =
|
|
542
|
+
let e = st();
|
|
543
543
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
544
544
|
}
|
|
545
|
-
let l =
|
|
545
|
+
let l = bt(r);
|
|
546
546
|
if (l <= 0) {
|
|
547
547
|
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);
|
|
548
|
-
o <=
|
|
549
|
-
} else l <=
|
|
548
|
+
o <= Tt && (a -= o);
|
|
549
|
+
} else l <= Tt && (a += l);
|
|
550
550
|
return {
|
|
551
551
|
width: a,
|
|
552
552
|
height: o,
|
|
@@ -554,8 +554,8 @@ function Dt(e, t) {
|
|
|
554
554
|
y: c
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
let n =
|
|
557
|
+
function Dt(e, t) {
|
|
558
|
+
let n = yt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = V(e) ? ht(e) : F(1);
|
|
559
559
|
return {
|
|
560
560
|
width: e.clientWidth * a.x,
|
|
561
561
|
height: e.clientHeight * a.y,
|
|
@@ -563,13 +563,13 @@ function Ot(e, t) {
|
|
|
563
563
|
y: r * a.y
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Ot(e, t, n) {
|
|
567
567
|
let r;
|
|
568
|
-
if (t === "viewport") r =
|
|
569
|
-
else if (t === "document") r =
|
|
570
|
-
else if (
|
|
568
|
+
if (t === "viewport") r = Et(e, n);
|
|
569
|
+
else if (t === "document") r = wt(z(e));
|
|
570
|
+
else if (B(t)) r = Dt(t, n);
|
|
571
571
|
else {
|
|
572
|
-
let n =
|
|
572
|
+
let n = _t(e);
|
|
573
573
|
r = {
|
|
574
574
|
x: t.x - n.x,
|
|
575
575
|
y: t.y - n.y,
|
|
@@ -577,27 +577,27 @@ function kt(e, t, n) {
|
|
|
577
577
|
height: t.height
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
|
-
return
|
|
580
|
+
return ze(r);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
let n =
|
|
584
|
-
return n === t || !
|
|
582
|
+
function kt(e, t) {
|
|
583
|
+
let n = U(e);
|
|
584
|
+
return n === t || !B(n) || ct(n) ? !1 : H(n).position === "fixed" || kt(n, t);
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function At(e, t) {
|
|
587
587
|
let n = t.get(e);
|
|
588
588
|
if (n) return n;
|
|
589
|
-
let r =
|
|
590
|
-
for (;
|
|
591
|
-
let t =
|
|
592
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
589
|
+
let r = dt(e, [], !1).filter((e) => B(e) && Ye(e) !== "body"), i = null, a = H(e).position === "fixed", o = a ? U(e) : e;
|
|
590
|
+
for (; B(o) && !ct(o);) {
|
|
591
|
+
let t = H(o), n = at(o);
|
|
592
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Qe(o) && !n && kt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = U(o);
|
|
593
593
|
}
|
|
594
594
|
return t.set(e, r), r;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
596
|
+
function jt(e) {
|
|
597
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? et(t) ? [] : At(t, this._c) : [].concat(n), r], o = Ot(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
598
598
|
for (let e = 1; e < a.length; e++) {
|
|
599
|
-
let n =
|
|
600
|
-
s =
|
|
599
|
+
let n = Ot(t, a[e], i);
|
|
600
|
+
s = ye(n.top, s), c = P(n.right, c), l = P(n.bottom, l), u = ye(n.left, u);
|
|
601
601
|
}
|
|
602
602
|
return {
|
|
603
603
|
width: c - u,
|
|
@@ -606,27 +606,27 @@ function Mt(e) {
|
|
|
606
606
|
y: s
|
|
607
607
|
};
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
let { width: t, height: n } =
|
|
609
|
+
function Mt(e) {
|
|
610
|
+
let { width: t, height: n } = pt(e);
|
|
611
611
|
return {
|
|
612
612
|
width: t,
|
|
613
613
|
height: n
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
let r =
|
|
616
|
+
function Nt(e, t, n) {
|
|
617
|
+
let r = V(t), i = z(t), a = n === "fixed", o = yt(e, !0, a, t), s = {
|
|
618
618
|
scrollLeft: 0,
|
|
619
619
|
scrollTop: 0
|
|
620
|
-
}, c =
|
|
620
|
+
}, c = F(0);
|
|
621
621
|
function l() {
|
|
622
|
-
c.x =
|
|
622
|
+
c.x = bt(i);
|
|
623
623
|
}
|
|
624
|
-
if (r || !r && !a) if ((
|
|
625
|
-
let e =
|
|
624
|
+
if (r || !r && !a) if ((Ye(t) !== "body" || Qe(i)) && (s = lt(t)), r) {
|
|
625
|
+
let e = yt(t, !0, a, t);
|
|
626
626
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
627
627
|
} else i && l();
|
|
628
628
|
a && !r && i && l();
|
|
629
|
-
let u = i && !r && !a ?
|
|
629
|
+
let u = i && !r && !a ? xt(i, s) : F(0);
|
|
630
630
|
return {
|
|
631
631
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
632
632
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -634,34 +634,34 @@ function Pt(e, t, n) {
|
|
|
634
634
|
height: o.height
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function Pt(e) {
|
|
638
|
+
return H(e).position === "static";
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
if (!
|
|
640
|
+
function Ft(e, t) {
|
|
641
|
+
if (!V(e) || H(e).position === "fixed") return null;
|
|
642
642
|
if (t) return t(e);
|
|
643
643
|
let n = e.offsetParent;
|
|
644
|
-
return
|
|
645
|
-
}
|
|
646
|
-
function
|
|
647
|
-
let n =
|
|
648
|
-
if (
|
|
649
|
-
if (!
|
|
650
|
-
let t =
|
|
651
|
-
for (; t && !
|
|
652
|
-
if (
|
|
653
|
-
t =
|
|
644
|
+
return z(e) === n && (n = n.ownerDocument.body), n;
|
|
645
|
+
}
|
|
646
|
+
function It(e, t) {
|
|
647
|
+
let n = R(e);
|
|
648
|
+
if (et(e)) return n;
|
|
649
|
+
if (!V(e)) {
|
|
650
|
+
let t = U(e);
|
|
651
|
+
for (; t && !ct(t);) {
|
|
652
|
+
if (B(t) && !Pt(t)) return t;
|
|
653
|
+
t = U(t);
|
|
654
654
|
}
|
|
655
655
|
return n;
|
|
656
656
|
}
|
|
657
|
-
let r =
|
|
658
|
-
for (; r &&
|
|
659
|
-
return r &&
|
|
657
|
+
let r = Ft(e, t);
|
|
658
|
+
for (; r && $e(r) && Pt(r);) r = Ft(r, t);
|
|
659
|
+
return r && ct(r) && Pt(r) && !at(r) ? n : r || ot(e) || n;
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
let t = this.getOffsetParent ||
|
|
661
|
+
var Lt = async function(e) {
|
|
662
|
+
let t = this.getOffsetParent || It, n = this.getDimensions, r = await n(e.floating);
|
|
663
663
|
return {
|
|
664
|
-
reference:
|
|
664
|
+
reference: Nt(e.reference, await t(e.floating), e.strategy),
|
|
665
665
|
floating: {
|
|
666
666
|
x: 0,
|
|
667
667
|
y: 0,
|
|
@@ -670,48 +670,48 @@ var Rt = async function(e) {
|
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
|
-
function
|
|
674
|
-
return
|
|
675
|
-
}
|
|
676
|
-
var
|
|
677
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
678
|
-
getDocumentElement:
|
|
679
|
-
getClippingRect:
|
|
680
|
-
getOffsetParent:
|
|
681
|
-
getElementRects:
|
|
682
|
-
getClientRects:
|
|
683
|
-
getDimensions:
|
|
684
|
-
getScale:
|
|
685
|
-
isElement:
|
|
686
|
-
isRTL:
|
|
687
|
-
},
|
|
673
|
+
function Rt(e) {
|
|
674
|
+
return H(e).direction === "rtl";
|
|
675
|
+
}
|
|
676
|
+
var zt = {
|
|
677
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: St,
|
|
678
|
+
getDocumentElement: z,
|
|
679
|
+
getClippingRect: jt,
|
|
680
|
+
getOffsetParent: It,
|
|
681
|
+
getElementRects: Lt,
|
|
682
|
+
getClientRects: Ct,
|
|
683
|
+
getDimensions: Mt,
|
|
684
|
+
getScale: ht,
|
|
685
|
+
isElement: B,
|
|
686
|
+
isRTL: Rt
|
|
687
|
+
}, Bt = qe, Vt = We, Ht = (e, t, n) => {
|
|
688
688
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
689
|
-
platform:
|
|
689
|
+
platform: zt,
|
|
690
690
|
...n
|
|
691
691
|
}, a = {
|
|
692
692
|
...i.platform,
|
|
693
693
|
_c: r
|
|
694
694
|
};
|
|
695
|
-
return
|
|
695
|
+
return Ue(e, t, {
|
|
696
696
|
...i,
|
|
697
697
|
platform: a
|
|
698
698
|
});
|
|
699
|
-
},
|
|
699
|
+
}, W = /* @__PURE__ */ pe({
|
|
700
700
|
Vue: () => e,
|
|
701
701
|
Vue2: () => void 0,
|
|
702
|
-
del: () =>
|
|
703
|
-
install: () =>
|
|
702
|
+
del: () => Kt,
|
|
703
|
+
install: () => Wt,
|
|
704
704
|
isVue2: () => !1,
|
|
705
705
|
isVue3: () => !0,
|
|
706
|
-
set: () =>
|
|
706
|
+
set: () => Gt
|
|
707
707
|
});
|
|
708
|
-
import * as
|
|
709
|
-
he(
|
|
710
|
-
function
|
|
711
|
-
function
|
|
708
|
+
import * as Ut from "vue";
|
|
709
|
+
he(W, Ut);
|
|
710
|
+
function Wt() {}
|
|
711
|
+
function Gt(e, t, n) {
|
|
712
712
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Kt(e, t) {
|
|
715
715
|
if (Array.isArray(e)) {
|
|
716
716
|
e.splice(t, 1);
|
|
717
717
|
return;
|
|
@@ -720,40 +720,40 @@ function qt(e, t) {
|
|
|
720
720
|
}
|
|
721
721
|
//#endregion
|
|
722
722
|
//#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
|
|
723
|
-
function
|
|
723
|
+
function qt(e) {
|
|
724
724
|
return typeof e == "object" && !!e && "$el" in e;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
if (
|
|
726
|
+
function Jt(e) {
|
|
727
|
+
if (qt(e)) {
|
|
728
728
|
let t = e.$el;
|
|
729
|
-
return
|
|
729
|
+
return Xe(t) && Ye(t) === "#comment" ? null : t;
|
|
730
730
|
}
|
|
731
731
|
return e;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
return typeof e == "function" ? e() : (0,
|
|
733
|
+
function Yt(e) {
|
|
734
|
+
return typeof e == "function" ? e() : (0, W.unref)(e);
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Xt(e) {
|
|
737
737
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
let n =
|
|
739
|
+
function Zt(e, t) {
|
|
740
|
+
let n = Xt(e);
|
|
741
741
|
return Math.round(t * n) / n;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Qt(e, t, n) {
|
|
744
744
|
n === void 0 && (n = {});
|
|
745
|
-
let r = n.whileElementsMounted, i = (0,
|
|
745
|
+
let r = n.whileElementsMounted, i = (0, W.computed)(() => Yt(n.open) ?? !0), a = (0, W.computed)(() => Yt(n.middleware)), o = (0, W.computed)(() => Yt(n.placement) ?? "bottom"), s = (0, W.computed)(() => Yt(n.strategy) ?? "absolute"), c = (0, W.computed)(() => Yt(n.transform) ?? !0), l = (0, W.computed)(() => Jt(e.value)), u = (0, W.computed)(() => Jt(t.value)), d = (0, W.ref)(0), f = (0, W.ref)(0), p = (0, W.ref)(s.value), m = (0, W.ref)(o.value), h = (0, W.shallowRef)({}), g = (0, W.ref)(!1), _ = (0, W.computed)(() => {
|
|
746
746
|
let e = {
|
|
747
747
|
position: p.value,
|
|
748
748
|
left: "0",
|
|
749
749
|
top: "0"
|
|
750
750
|
};
|
|
751
751
|
if (!u.value) return e;
|
|
752
|
-
let t =
|
|
752
|
+
let t = Zt(u.value, d.value), n = Zt(u.value, f.value);
|
|
753
753
|
return c.value ? {
|
|
754
754
|
...e,
|
|
755
755
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
756
|
-
...
|
|
756
|
+
...Xt(u.value) >= 1.5 && { willChange: "transform" }
|
|
757
757
|
} : {
|
|
758
758
|
position: p.value,
|
|
759
759
|
left: t + "px",
|
|
@@ -763,7 +763,7 @@ function $t(e, t, n) {
|
|
|
763
763
|
function y() {
|
|
764
764
|
if (l.value == null || u.value == null) return;
|
|
765
765
|
let e = i.value;
|
|
766
|
-
|
|
766
|
+
Ht(l.value, u.value, {
|
|
767
767
|
middleware: a.value,
|
|
768
768
|
placement: o.value,
|
|
769
769
|
strategy: s.value
|
|
@@ -787,34 +787,34 @@ function $t(e, t, n) {
|
|
|
787
787
|
function S() {
|
|
788
788
|
i.value || (g.value = !1);
|
|
789
789
|
}
|
|
790
|
-
return (0,
|
|
790
|
+
return (0, W.watch)([
|
|
791
791
|
a,
|
|
792
792
|
o,
|
|
793
793
|
s,
|
|
794
794
|
i
|
|
795
|
-
], y, { flush: "sync" }), (0,
|
|
796
|
-
x: (0,
|
|
797
|
-
y: (0,
|
|
798
|
-
strategy: (0,
|
|
799
|
-
placement: (0,
|
|
800
|
-
middlewareData: (0,
|
|
801
|
-
isPositioned: (0,
|
|
795
|
+
], y, { flush: "sync" }), (0, W.watch)([l, u], x, { flush: "sync" }), (0, W.watch)(i, S, { flush: "sync" }), (0, W.getCurrentScope)() && (0, W.onScopeDispose)(b), {
|
|
796
|
+
x: (0, W.shallowReadonly)(d),
|
|
797
|
+
y: (0, W.shallowReadonly)(f),
|
|
798
|
+
strategy: (0, W.shallowReadonly)(p),
|
|
799
|
+
placement: (0, W.shallowReadonly)(m),
|
|
800
|
+
middlewareData: (0, W.shallowReadonly)(h),
|
|
801
|
+
isPositioned: (0, W.shallowReadonly)(g),
|
|
802
802
|
floatingStyles: _,
|
|
803
803
|
update: y
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
//#endregion
|
|
807
807
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
808
|
-
function
|
|
808
|
+
function $t(e) {
|
|
809
809
|
return p() ? (C(e), !0) : !1;
|
|
810
810
|
}
|
|
811
|
-
var
|
|
811
|
+
var en = typeof window < "u" && typeof document < "u";
|
|
812
812
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
813
|
-
var
|
|
814
|
-
function
|
|
815
|
-
return
|
|
813
|
+
var tn = (e) => e != null, nn = Object.prototype.toString, rn = (e) => nn.call(e) === "[object Object]", G = () => {}, an = /* @__PURE__ */ on();
|
|
814
|
+
function on() {
|
|
815
|
+
return en && (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));
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function sn(e, t) {
|
|
818
818
|
function n(...n) {
|
|
819
819
|
return new Promise((r, i) => {
|
|
820
820
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -826,9 +826,9 @@ function cn(e, t) {
|
|
|
826
826
|
}
|
|
827
827
|
return n;
|
|
828
828
|
}
|
|
829
|
-
function
|
|
830
|
-
let n, r, i =
|
|
831
|
-
clearTimeout(e), i(), i =
|
|
829
|
+
function cn(e, t = {}) {
|
|
830
|
+
let n, r, i = G, a = (e) => {
|
|
831
|
+
clearTimeout(e), i(), i = G;
|
|
832
832
|
}, o;
|
|
833
833
|
return (s) => {
|
|
834
834
|
let c = j(e), l = j(t.maxWait);
|
|
@@ -841,20 +841,20 @@ function ln(e, t = {}) {
|
|
|
841
841
|
});
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function ln(e) {
|
|
845
845
|
return Array.isArray(e) ? e : [e];
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function un(e) {
|
|
848
848
|
return e || f();
|
|
849
849
|
}
|
|
850
850
|
/* @__NO_SIDE_EFFECTS__ */
|
|
851
|
-
function
|
|
852
|
-
return cn(
|
|
851
|
+
function dn(e, t = 200, n = {}) {
|
|
852
|
+
return sn(cn(t, n), e);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
|
|
854
|
+
function fn(e, t = !0, n) {
|
|
855
|
+
un(n) ? S(e, n) : t ? e() : g(e);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function pn(e, t, n) {
|
|
858
858
|
return M(e, t, {
|
|
859
859
|
...n,
|
|
860
860
|
immediate: !0
|
|
@@ -862,49 +862,49 @@ function mn(e, t, n) {
|
|
|
862
862
|
}
|
|
863
863
|
//#endregion
|
|
864
864
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
865
|
-
var
|
|
866
|
-
|
|
867
|
-
function
|
|
865
|
+
var mn = en ? window : void 0;
|
|
866
|
+
en && window.document, en && window.navigator, en && window.location;
|
|
867
|
+
function K(e) {
|
|
868
868
|
let t = j(e);
|
|
869
869
|
return t?.$el ?? t;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function hn(...e) {
|
|
872
872
|
let t = [], n = () => {
|
|
873
873
|
t.forEach((e) => e()), t.length = 0;
|
|
874
874
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
875
|
-
let t =
|
|
875
|
+
let t = ln(j(e[0])).filter((e) => e != null);
|
|
876
876
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
877
|
-
}), o =
|
|
878
|
-
a.value?.map((e) =>
|
|
879
|
-
|
|
880
|
-
|
|
877
|
+
}), o = pn(() => [
|
|
878
|
+
a.value?.map((e) => K(e)) ?? [mn].filter((e) => e != null),
|
|
879
|
+
ln(j(a.value ? e[1] : e[0])),
|
|
880
|
+
ln(ne(a.value ? e[2] : e[1])),
|
|
881
881
|
j(a.value ? e[3] : e[2])
|
|
882
882
|
], ([e, r, a, o]) => {
|
|
883
883
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
884
|
-
let s =
|
|
884
|
+
let s = rn(o) ? { ...o } : o;
|
|
885
885
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
886
886
|
}, { flush: "post" });
|
|
887
|
-
return
|
|
887
|
+
return $t(n), () => {
|
|
888
888
|
o(), n();
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
var
|
|
892
|
-
function
|
|
893
|
-
let { window: r =
|
|
891
|
+
var gn = !1;
|
|
892
|
+
function _n(e, t, n = {}) {
|
|
893
|
+
let { window: r = mn, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
894
894
|
if (!r) return s ? {
|
|
895
|
-
stop:
|
|
896
|
-
cancel:
|
|
897
|
-
trigger:
|
|
898
|
-
} :
|
|
899
|
-
if (
|
|
900
|
-
|
|
895
|
+
stop: G,
|
|
896
|
+
cancel: G,
|
|
897
|
+
trigger: G
|
|
898
|
+
} : G;
|
|
899
|
+
if (an && !gn) {
|
|
900
|
+
gn = !0;
|
|
901
901
|
let e = { passive: !0 };
|
|
902
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
902
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", G, e)), r.document.documentElement.addEventListener("click", G, e);
|
|
903
903
|
}
|
|
904
904
|
let c = !0, l = (e) => j(i).some((t) => {
|
|
905
905
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
906
906
|
{
|
|
907
|
-
let n =
|
|
907
|
+
let n = K(t);
|
|
908
908
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
909
909
|
}
|
|
910
910
|
});
|
|
@@ -917,7 +917,7 @@ function vn(e, t, n = {}) {
|
|
|
917
917
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
918
918
|
}
|
|
919
919
|
let f = (n) => {
|
|
920
|
-
let r =
|
|
920
|
+
let r = K(e);
|
|
921
921
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
922
922
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
923
923
|
c = !0;
|
|
@@ -926,7 +926,7 @@ function vn(e, t, n = {}) {
|
|
|
926
926
|
t(n);
|
|
927
927
|
}
|
|
928
928
|
}, p = !1, m = [
|
|
929
|
-
|
|
929
|
+
hn(r, "click", (e) => {
|
|
930
930
|
p || (p = !0, setTimeout(() => {
|
|
931
931
|
p = !1;
|
|
932
932
|
}, 0), f(e));
|
|
@@ -934,13 +934,13 @@ function vn(e, t, n = {}) {
|
|
|
934
934
|
passive: !0,
|
|
935
935
|
capture: a
|
|
936
936
|
}),
|
|
937
|
-
|
|
938
|
-
let n =
|
|
937
|
+
hn(r, "pointerdown", (t) => {
|
|
938
|
+
let n = K(e);
|
|
939
939
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
940
940
|
}, { passive: !0 }),
|
|
941
|
-
o &&
|
|
941
|
+
o && hn(r, "blur", (n) => {
|
|
942
942
|
setTimeout(() => {
|
|
943
|
-
let i =
|
|
943
|
+
let i = K(e);
|
|
944
944
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
945
945
|
}, 0);
|
|
946
946
|
}, { passive: !0 })
|
|
@@ -956,22 +956,22 @@ function vn(e, t, n = {}) {
|
|
|
956
956
|
} : h;
|
|
957
957
|
}
|
|
958
958
|
/* @__NO_SIDE_EFFECTS__ */
|
|
959
|
-
function
|
|
959
|
+
function vn() {
|
|
960
960
|
let e = k(!1), t = f();
|
|
961
961
|
return t && S(() => {
|
|
962
962
|
e.value = !0;
|
|
963
963
|
}, t), e;
|
|
964
964
|
}
|
|
965
965
|
/* @__NO_SIDE_EFFECTS__ */
|
|
966
|
-
function
|
|
967
|
-
let t = /* @__PURE__ */
|
|
966
|
+
function yn(e) {
|
|
967
|
+
let t = /* @__PURE__ */ vn();
|
|
968
968
|
return r(() => (t.value, !!e()));
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
let { window: i =
|
|
970
|
+
function bn(e, t, n = {}) {
|
|
971
|
+
let { window: i = mn, ...a } = n, o, s = /* @__PURE__ */ yn(() => i && "MutationObserver" in i), c = () => {
|
|
972
972
|
o &&= (o.disconnect(), void 0);
|
|
973
973
|
}, l = M(r(() => {
|
|
974
|
-
let t =
|
|
974
|
+
let t = ln(j(e)).map(K).filter(tn);
|
|
975
975
|
return new Set(t);
|
|
976
976
|
}), (e) => {
|
|
977
977
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -981,21 +981,21 @@ function xn(e, t, n = {}) {
|
|
|
981
981
|
}), u = () => o?.takeRecords(), d = () => {
|
|
982
982
|
l(), c();
|
|
983
983
|
};
|
|
984
|
-
return
|
|
984
|
+
return $t(d), {
|
|
985
985
|
isSupported: s,
|
|
986
986
|
stop: d,
|
|
987
987
|
takeRecords: u
|
|
988
988
|
};
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
let { window: r =
|
|
992
|
-
if (!r || !i) return
|
|
990
|
+
function xn(e, t, n = {}) {
|
|
991
|
+
let { window: r = mn, document: i = r?.document, flush: a = "sync" } = n;
|
|
992
|
+
if (!r || !i) return G;
|
|
993
993
|
let o, s = (e) => {
|
|
994
994
|
o?.(), o = e;
|
|
995
995
|
}, c = oe(() => {
|
|
996
|
-
let n =
|
|
996
|
+
let n = K(e);
|
|
997
997
|
if (n) {
|
|
998
|
-
let { stop: e } =
|
|
998
|
+
let { stop: e } = bn(i, (e) => {
|
|
999
999
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
1000
1000
|
}, {
|
|
1001
1001
|
window: r,
|
|
@@ -1007,14 +1007,14 @@ function Sn(e, t, n = {}) {
|
|
|
1007
1007
|
}, { flush: a }), l = () => {
|
|
1008
1008
|
c(), s();
|
|
1009
1009
|
};
|
|
1010
|
-
return
|
|
1010
|
+
return $t(l), l;
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1013
|
-
let { window: i =
|
|
1012
|
+
function Sn(e, t, n = {}) {
|
|
1013
|
+
let { window: i = mn, ...a } = n, o, s = /* @__PURE__ */ yn(() => i && "ResizeObserver" in i), c = () => {
|
|
1014
1014
|
o &&= (o.disconnect(), void 0);
|
|
1015
1015
|
}, l = M(r(() => {
|
|
1016
1016
|
let t = j(e);
|
|
1017
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
1017
|
+
return Array.isArray(t) ? t.map((e) => K(e)) : [K(t)];
|
|
1018
1018
|
}), (e) => {
|
|
1019
1019
|
if (c(), s.value && i) {
|
|
1020
1020
|
o = new ResizeObserver(t);
|
|
@@ -1026,15 +1026,15 @@ function Cn(e, t, n = {}) {
|
|
|
1026
1026
|
}), u = () => {
|
|
1027
1027
|
c(), l();
|
|
1028
1028
|
};
|
|
1029
|
-
return
|
|
1029
|
+
return $t(u), {
|
|
1030
1030
|
isSupported: s,
|
|
1031
1031
|
stop: u
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function Cn(e, t = {}) {
|
|
1035
1035
|
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = k(0), c = k(0), l = k(0), u = k(0), d = k(0), f = k(0), p = k(0), m = k(0);
|
|
1036
1036
|
function h() {
|
|
1037
|
-
let t =
|
|
1037
|
+
let t = K(e);
|
|
1038
1038
|
if (!t) {
|
|
1039
1039
|
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);
|
|
1040
1040
|
return;
|
|
@@ -1045,10 +1045,10 @@ function wn(e, t = {}) {
|
|
|
1045
1045
|
function g() {
|
|
1046
1046
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
1047
1047
|
}
|
|
1048
|
-
return
|
|
1048
|
+
return Sn(e, g), M(() => K(e), (e) => !e && g()), bn(e, g, { attributeFilter: ["style", "class"] }), i && hn("scroll", g, {
|
|
1049
1049
|
capture: !0,
|
|
1050
1050
|
passive: !0
|
|
1051
|
-
}), r &&
|
|
1051
|
+
}), r && hn("resize", g, { passive: !0 }), fn(() => {
|
|
1052
1052
|
a && g();
|
|
1053
1053
|
}), {
|
|
1054
1054
|
height: s,
|
|
@@ -1062,44 +1062,44 @@ function wn(e, t = {}) {
|
|
|
1062
1062
|
update: g
|
|
1063
1063
|
};
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
1065
|
+
function wn(e, t = {}) {
|
|
1066
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = mn } = t, s = k(!1), c, l = (e) => {
|
|
1067
1067
|
let t = e ? n : i;
|
|
1068
1068
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
1069
1069
|
};
|
|
1070
|
-
return o ? (
|
|
1070
|
+
return o ? (hn(e, "mouseenter", () => l(!0), { passive: !0 }), hn(e, "mouseleave", () => l(!1), { passive: !0 }), a && xn(r(() => K(e)), () => l(!1)), s) : s;
|
|
1071
1071
|
}
|
|
1072
1072
|
//#endregion
|
|
1073
1073
|
//#region src/composables/useSlotPresence.ts
|
|
1074
|
-
function
|
|
1074
|
+
function Tn(e, t) {
|
|
1075
1075
|
if (e.nodeType !== Node.TEXT_NODE) return !1;
|
|
1076
1076
|
let n = e.textContent ?? "";
|
|
1077
1077
|
return t ? n.length > 0 : n.trim().length > 0;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function En(e, t, n) {
|
|
1080
1080
|
let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
|
|
1081
|
-
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") :
|
|
1081
|
+
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : Tn(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function Dn(e) {
|
|
1084
1084
|
if (e.shadowRoot) return null;
|
|
1085
1085
|
let t = e._slots;
|
|
1086
1086
|
return !t || typeof t != "object" ? null : t;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function On(e, t, n) {
|
|
1089
1089
|
let r = e[t === "" ? "default" : t];
|
|
1090
|
-
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
1090
|
+
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Tn(e, n)) : !1;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function kn(e, t) {
|
|
1093
1093
|
let n = e.shadowRoot;
|
|
1094
1094
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
let i = n ?
|
|
1098
|
-
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
1099
|
-
let a =
|
|
1100
|
-
return a ?
|
|
1096
|
+
function An(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r = !1 } = {}) {
|
|
1097
|
+
let i = n ? kn(e, t) : null;
|
|
1098
|
+
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Tn(e, r));
|
|
1099
|
+
let a = Dn(e);
|
|
1100
|
+
return a ? On(a, t, r) : En(e, t, r);
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function jn(e, t = {}) {
|
|
1103
1103
|
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = N(), l = i ?? ie(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = D(d());
|
|
1104
1104
|
x(() => {
|
|
1105
1105
|
f.value = d();
|
|
@@ -1116,7 +1116,7 @@ function Mn(e, t = {}) {
|
|
|
1116
1116
|
p.value = !1;
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
p.value =
|
|
1119
|
+
p.value = An(t, e, {
|
|
1120
1120
|
useShadowSlot: o,
|
|
1121
1121
|
countWhitespaceTextInDefaultSlot: s
|
|
1122
1122
|
});
|
|
@@ -1147,17 +1147,17 @@ function Mn(e, t = {}) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
//#endregion
|
|
1149
1149
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1150
|
-
var
|
|
1150
|
+
var Mn = /* @__PURE__ */ new Set(), Nn = (e, t) => {
|
|
1151
1151
|
let n = t.root.value;
|
|
1152
1152
|
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1153
|
-
},
|
|
1153
|
+
}, Pn = (e) => (w(() => Mn.delete(e)), (t) => {
|
|
1154
1154
|
if (!t) {
|
|
1155
|
-
|
|
1155
|
+
Mn.delete(e);
|
|
1156
1156
|
return;
|
|
1157
1157
|
}
|
|
1158
|
-
for (let t of [...
|
|
1159
|
-
|
|
1160
|
-
}),
|
|
1158
|
+
for (let t of [...Mn]) t !== e && !Nn(t, e) && t.close() && Mn.delete(t);
|
|
1159
|
+
Mn.add(e);
|
|
1160
|
+
}), Fn = ["popover"], In = "--pv-popover-v2-anchor", Ln = /* @__PURE__ */ u({
|
|
1161
1161
|
__name: "PvPopoverV2",
|
|
1162
1162
|
props: /* @__PURE__ */ h({
|
|
1163
1163
|
disableAutoPlacement: {
|
|
@@ -1229,17 +1229,17 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1229
1229
|
}),
|
|
1230
1230
|
emits: ["update:modelValue"],
|
|
1231
1231
|
setup(e) {
|
|
1232
|
-
let t = e, c = re(e, "modelValue"), l = f(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: p } =
|
|
1232
|
+
let t = e, c = re(e, "modelValue"), l = f(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: p } = jn("content", { host: u }), m = r(() => u ? p.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1233
1233
|
"anchor-name: --pv-anchor",
|
|
1234
1234
|
"position-area: bottom",
|
|
1235
1235
|
"position-try-fallbacks: flip-block",
|
|
1236
1236
|
"position-visibility: anchors-visible",
|
|
1237
|
-
`anchor-scope: ${
|
|
1238
|
-
].every((e) => CSS.supports(e)), _ = D(!1), v = D(null), b = D(null), x = D(null), C = D(null), E = r(() => t.hoverTarget && b.value?.closest(t.hoverTarget) || b.value), ee =
|
|
1237
|
+
`anchor-scope: ${In}`
|
|
1238
|
+
].every((e) => CSS.supports(e)), _ = D(!1), v = D(null), b = D(null), x = D(null), C = D(null), E = r(() => t.hoverTarget && b.value?.closest(t.hoverTarget) || b.value), ee = wn(E), te = wn(C), k = D(!1), A = D(!1), j = D(!1), ie = Pn({
|
|
1239
1239
|
root: v,
|
|
1240
1240
|
floating: C,
|
|
1241
1241
|
hoverArea: r(() => t.hoverTarget ? E.value : null),
|
|
1242
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1242
|
+
close: () => t.disableClickOutsideToClose ? !1 : (ye(), !0)
|
|
1243
1243
|
}), oe = {
|
|
1244
1244
|
"top-center": "top",
|
|
1245
1245
|
"bottom-center": "bottom",
|
|
@@ -1294,12 +1294,12 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}, le = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), ue = r(() => ({
|
|
1296
1296
|
width: "fit-content",
|
|
1297
|
-
...h ? { "anchor-scope":
|
|
1297
|
+
...h ? { "anchor-scope": In } : void 0,
|
|
1298
1298
|
...t.cssCustomProperties
|
|
1299
|
-
})), de = r(() => h ? { "anchor-name":
|
|
1299
|
+
})), de = r(() => h ? { "anchor-name": In } : void 0), fe = r(() => {
|
|
1300
1300
|
let e = se[t.position];
|
|
1301
1301
|
return {
|
|
1302
|
-
"position-anchor":
|
|
1302
|
+
"position-anchor": In,
|
|
1303
1303
|
"position-area": e.area,
|
|
1304
1304
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1305
1305
|
[e.margin]: `${t.offset ?? 0}px`
|
|
@@ -1307,14 +1307,14 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1307
1307
|
}), pe = () => {}, me = () => ({});
|
|
1308
1308
|
if (!h) {
|
|
1309
1309
|
let e = [];
|
|
1310
|
-
t.disableAutoPlacement || e.push(
|
|
1311
|
-
let n =
|
|
1310
|
+
t.disableAutoPlacement || e.push(Vt({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Bt(t.offset));
|
|
1311
|
+
let n = Qt(x, C, {
|
|
1312
1312
|
placement: oe[t.position],
|
|
1313
1313
|
strategy: t.positioningStrategy,
|
|
1314
1314
|
middleware: e
|
|
1315
1315
|
});
|
|
1316
1316
|
pe = n.update, me = () => n.floatingStyles.value;
|
|
1317
|
-
let i =
|
|
1317
|
+
let i = Cn(x), a = /* @__PURE__ */ dn(() => {
|
|
1318
1318
|
c.value && pe();
|
|
1319
1319
|
}, 5);
|
|
1320
1320
|
M([
|
|
@@ -1322,7 +1322,7 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1322
1322
|
i.left,
|
|
1323
1323
|
i.width,
|
|
1324
1324
|
i.height
|
|
1325
|
-
], a),
|
|
1325
|
+
], a), _n(v, () => {
|
|
1326
1326
|
t.disableClickOutsideToClose || P(!1);
|
|
1327
1327
|
}, { ignore: r(() => [
|
|
1328
1328
|
C.value,
|
|
@@ -1341,12 +1341,12 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1341
1341
|
_e(), ve(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? N = setTimeout(() => {
|
|
1342
1342
|
c.value = !0, N = void 0;
|
|
1343
1343
|
}, t.delay) : c.value = e);
|
|
1344
|
-
}, F = () => {
|
|
1345
|
-
_e(), ve(), c.value = !1;
|
|
1346
1344
|
}, ye = () => {
|
|
1345
|
+
_e(), ve(), c.value = !1;
|
|
1346
|
+
}, be = () => {
|
|
1347
1347
|
let e = C.value;
|
|
1348
1348
|
!e || !_.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1349
|
-
},
|
|
1349
|
+
}, F = r(() => !!c.value && (te.value || A.value)), xe = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? ee.value || k.value : ee.value || k.value || F.value);
|
|
1350
1350
|
M([
|
|
1351
1351
|
ee,
|
|
1352
1352
|
k,
|
|
@@ -1354,9 +1354,9 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1354
1354
|
], ([e, t, n]) => {
|
|
1355
1355
|
!e && !t && !n && (j.value = !1);
|
|
1356
1356
|
});
|
|
1357
|
-
let
|
|
1357
|
+
let Se = ({ target: e }) => {
|
|
1358
1358
|
k.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1359
|
-
},
|
|
1359
|
+
}, I = ({ target: e }) => {
|
|
1360
1360
|
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1361
1361
|
}, Ce = () => {
|
|
1362
1362
|
A.value = !1;
|
|
@@ -1367,55 +1367,41 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1367
1367
|
j.value = !1, P(!0);
|
|
1368
1368
|
return;
|
|
1369
1369
|
}
|
|
1370
|
-
j.value = !0,
|
|
1370
|
+
j.value = !0, ye();
|
|
1371
1371
|
return;
|
|
1372
1372
|
}
|
|
1373
1373
|
P(N ? !1 : !c.value);
|
|
1374
1374
|
}, Te = (e) => {
|
|
1375
1375
|
let t = e.newState === "open";
|
|
1376
1376
|
c.value !== t && (c.value = t);
|
|
1377
|
-
},
|
|
1377
|
+
}, L = (e) => {
|
|
1378
1378
|
h && le.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), P(!1));
|
|
1379
|
-
}, De = (e) => e ? Array.from(e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [], Oe = r(() => t.useTeleport && !h && t.showOnHover && !t.disabled), ke = (e) => {
|
|
1380
|
-
if (!Oe.value || e.key !== "Tab" || e.shiftKey || !c.value) return;
|
|
1381
|
-
let [t] = De(C.value);
|
|
1382
|
-
t && (e.preventDefault(), A.value = !0, t.focus());
|
|
1383
|
-
}, Ae = (e) => {
|
|
1384
|
-
if (!Oe.value) return;
|
|
1385
|
-
let [t] = De(b.value);
|
|
1386
|
-
if (e.key === "Escape") {
|
|
1387
|
-
e.preventDefault(), e.stopPropagation(), j.value = !0, F(), t?.focus();
|
|
1388
|
-
return;
|
|
1389
|
-
}
|
|
1390
|
-
if (e.key !== "Tab") return;
|
|
1391
|
-
let n = De(C.value);
|
|
1392
|
-
e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (j.value = !0, F(), t?.focus());
|
|
1393
1379
|
};
|
|
1394
1380
|
return M(c, async (e) => {
|
|
1395
1381
|
if (t.showOnHover && t.enableGroupSync && ie(!!e), !h) {
|
|
1396
1382
|
e && pe();
|
|
1397
1383
|
return;
|
|
1398
1384
|
}
|
|
1399
|
-
await g(),
|
|
1400
|
-
}), M(
|
|
1385
|
+
await g(), be();
|
|
1386
|
+
}), M(xe, (e) => {
|
|
1401
1387
|
if (t.showOnHover) {
|
|
1402
1388
|
if (e) {
|
|
1403
1389
|
P(!0);
|
|
1404
1390
|
return;
|
|
1405
1391
|
}
|
|
1406
1392
|
_e(), t.closeDelay > 0 ? (ve(), ge = setTimeout(() => {
|
|
1407
|
-
ge = void 0,
|
|
1393
|
+
ge = void 0, xe.value || P(!1);
|
|
1408
1394
|
}, t.closeDelay)) : P(!1);
|
|
1409
1395
|
}
|
|
1410
1396
|
}), M(m, (e) => {
|
|
1411
|
-
e ? h && c.value && g(
|
|
1397
|
+
e ? h && c.value && g(be) : ye();
|
|
1412
1398
|
}), S(() => {
|
|
1413
|
-
x.value = b.value, _.value = !0, c.value && g(() => h ?
|
|
1399
|
+
x.value = b.value, _.value = !0, c.value && g(() => h ? be() : pe());
|
|
1414
1400
|
}), w(() => {
|
|
1415
1401
|
_e(), ve();
|
|
1416
1402
|
}), M(() => t.disabled, (e) => {
|
|
1417
1403
|
if (!e) {
|
|
1418
|
-
|
|
1404
|
+
xe.value && P(!0);
|
|
1419
1405
|
return;
|
|
1420
1406
|
}
|
|
1421
1407
|
k.value &&= !1, A.value &&= !1, P(!1);
|
|
@@ -1423,15 +1409,14 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1423
1409
|
ref_key: "root",
|
|
1424
1410
|
ref: v,
|
|
1425
1411
|
style: y(ue.value),
|
|
1426
|
-
onKeydown:
|
|
1412
|
+
onKeydown: L
|
|
1427
1413
|
}, [s("div", {
|
|
1428
1414
|
ref_key: "triggerWrapper",
|
|
1429
1415
|
ref: b,
|
|
1430
1416
|
style: y(de.value),
|
|
1431
1417
|
onClick: we,
|
|
1432
|
-
onFocusin:
|
|
1433
|
-
onFocusout: l[0] ||= (e) => k.value = !1
|
|
1434
|
-
onKeydown: ke
|
|
1418
|
+
onFocusin: Se,
|
|
1419
|
+
onFocusout: l[0] ||= (e) => k.value = !1
|
|
1435
1420
|
}, [O(r.$slots, "trigger")], 36), _.value && ne(h) && m.value ? (T(), o("div", {
|
|
1436
1421
|
key: 0,
|
|
1437
1422
|
ref_key: "floating",
|
|
@@ -1440,9 +1425,9 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1440
1425
|
popover: le.value,
|
|
1441
1426
|
style: y(fe.value),
|
|
1442
1427
|
onToggle: Te,
|
|
1443
|
-
onFocusin:
|
|
1428
|
+
onFocusin: I,
|
|
1444
1429
|
onFocusout: Ce
|
|
1445
|
-
}, [e.disabled ? a("v-if", !0) : O(r.$slots, "content", { key: 0 })], 44,
|
|
1430
|
+
}, [e.disabled ? a("v-if", !0) : O(r.$slots, "content", { key: 0 })], 44, Fn)) : m.value ? (T(), i(n, {
|
|
1446
1431
|
key: 1,
|
|
1447
1432
|
to: e.teleportLocation,
|
|
1448
1433
|
disabled: !t.useTeleport || e.disabled
|
|
@@ -1451,12 +1436,11 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1451
1436
|
ref: C,
|
|
1452
1437
|
class: "pv-floating",
|
|
1453
1438
|
style: y(he.value),
|
|
1454
|
-
onFocusin:
|
|
1455
|
-
onFocusout: Ce
|
|
1456
|
-
onKeydown: Ae
|
|
1439
|
+
onFocusin: I,
|
|
1440
|
+
onFocusout: Ce
|
|
1457
1441
|
}, [O(r.$slots, "content")], 36), [[ae, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1458
1442
|
}
|
|
1459
|
-
}),
|
|
1443
|
+
}), Rn = ["data-variant"], zn = /* @__PURE__ */ u({
|
|
1460
1444
|
__name: "PvTooltipV2",
|
|
1461
1445
|
props: {
|
|
1462
1446
|
variant: {
|
|
@@ -1501,8 +1485,8 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1501
1485
|
cssCustomProperties: { type: Object }
|
|
1502
1486
|
},
|
|
1503
1487
|
setup(e) {
|
|
1504
|
-
let t = e, n = f(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } =
|
|
1505
|
-
return (t, n) => (T(), i(
|
|
1488
|
+
let t = e, n = f(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = jn("content", { host: a }), d = r(() => a ? u.value : o.value), p = r(() => !!t.description || d.value);
|
|
1489
|
+
return (t, n) => (T(), i(Ln, v(m(t.$props)), c({
|
|
1506
1490
|
trigger: se(() => [O(t.$slots, "trigger", {}, () => [s("p", null, A(e.label), 1)])]),
|
|
1507
1491
|
_: 2
|
|
1508
1492
|
}, [p.value ? {
|
|
@@ -1511,17 +1495,17 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1511
1495
|
class: _(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1512
1496
|
role: "tooltip",
|
|
1513
1497
|
"data-variant": e.variant
|
|
1514
|
-
}, [O(t.$slots, "content", {}, () => [l(A(e.description), 1)])], 10,
|
|
1498
|
+
}, [O(t.$slots, "content", {}, () => [l(A(e.description), 1)])], 10, Rn)]),
|
|
1515
1499
|
key: "0"
|
|
1516
1500
|
} : void 0]), 1040));
|
|
1517
1501
|
}
|
|
1518
|
-
}),
|
|
1502
|
+
}), Bn = { class: "pv-flex" }, Vn = [
|
|
1519
1503
|
"name",
|
|
1520
1504
|
"value",
|
|
1521
1505
|
"checked",
|
|
1522
1506
|
"disabled",
|
|
1523
1507
|
"onChange"
|
|
1524
|
-
],
|
|
1508
|
+
], Hn = { key: 1 }, Un = /* @__PURE__ */ u({
|
|
1525
1509
|
__name: "PvToggleGroup",
|
|
1526
1510
|
props: /* @__PURE__ */ h({
|
|
1527
1511
|
disabled: { type: Boolean },
|
|
@@ -1543,7 +1527,7 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1543
1527
|
r.value = e;
|
|
1544
1528
|
}
|
|
1545
1529
|
};
|
|
1546
|
-
return (n, u) => (T(), o("div",
|
|
1530
|
+
return (n, u) => (T(), o("div", Bn, [(T(!0), o(t, null, te(e.options, (t) => (T(), i(zn, {
|
|
1547
1531
|
key: t.value,
|
|
1548
1532
|
description: e.hideLabels ? t.label : ""
|
|
1549
1533
|
}, {
|
|
@@ -1556,56 +1540,56 @@ var Nn = /* @__PURE__ */ new Set(), Pn = (e, t) => {
|
|
|
1556
1540
|
class: "pv-radio",
|
|
1557
1541
|
disabled: e.disabled || t.disabled,
|
|
1558
1542
|
onChange: (e) => l(t)
|
|
1559
|
-
}, null, 40,
|
|
1543
|
+
}, null, 40, Vn),
|
|
1560
1544
|
t.icon ? (T(), i(ve, {
|
|
1561
1545
|
key: 0,
|
|
1562
1546
|
name: t.icon
|
|
1563
1547
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
1564
|
-
e.hideLabels ? a("v-if", !0) : (T(), o("span",
|
|
1548
|
+
e.hideLabels ? a("v-if", !0) : (T(), o("span", Hn, A(t.label), 1))
|
|
1565
1549
|
], 2)]),
|
|
1566
1550
|
_: 2
|
|
1567
1551
|
}, 1032, ["description"]))), 128))]));
|
|
1568
1552
|
}
|
|
1569
|
-
}),
|
|
1553
|
+
}), Wn = Object.defineProperty, Gn = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, Jn = (e, t, n) => t in e ? Wn(e, t, {
|
|
1570
1554
|
enumerable: !0,
|
|
1571
1555
|
configurable: !0,
|
|
1572
1556
|
writable: !0,
|
|
1573
1557
|
value: n
|
|
1574
|
-
}) : e[t] = n,
|
|
1575
|
-
for (var n in t ||= {})
|
|
1576
|
-
if (
|
|
1558
|
+
}) : e[t] = n, Yn = (e, t) => {
|
|
1559
|
+
for (var n in t ||= {}) Kn.call(t, n) && Jn(e, n, t[n]);
|
|
1560
|
+
if (Gn) for (var n of Gn(t)) qn.call(t, n) && Jn(e, n, t[n]);
|
|
1577
1561
|
return e;
|
|
1578
1562
|
};
|
|
1579
|
-
function
|
|
1563
|
+
function Xn(e) {
|
|
1580
1564
|
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
1581
1565
|
}
|
|
1582
|
-
function
|
|
1566
|
+
function Zn(e) {
|
|
1583
1567
|
return typeof e == "function" && "call" in e && "apply" in e;
|
|
1584
1568
|
}
|
|
1585
|
-
function
|
|
1586
|
-
return !
|
|
1569
|
+
function q(e) {
|
|
1570
|
+
return !Xn(e);
|
|
1587
1571
|
}
|
|
1588
|
-
function
|
|
1572
|
+
function Qn(e, t = !0) {
|
|
1589
1573
|
return e instanceof Object && e.constructor === Object && (t || Object.keys(e).length !== 0);
|
|
1590
1574
|
}
|
|
1591
|
-
function
|
|
1592
|
-
let n =
|
|
1575
|
+
function $n(e = {}, t = {}) {
|
|
1576
|
+
let n = Yn({}, e);
|
|
1593
1577
|
return Object.keys(t).forEach((r) => {
|
|
1594
1578
|
let i = r;
|
|
1595
|
-
|
|
1579
|
+
Qn(t[i]) && i in e && Qn(e[i]) ? n[i] = $n(e[i], t[i]) : n[i] = t[i];
|
|
1596
1580
|
}), n;
|
|
1597
1581
|
}
|
|
1598
|
-
function
|
|
1599
|
-
return e.reduce((e, t, n) => n === 0 ? t :
|
|
1582
|
+
function er(...e) {
|
|
1583
|
+
return e.reduce((e, t, n) => n === 0 ? t : $n(e, t), {});
|
|
1600
1584
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return
|
|
1585
|
+
function tr(e, ...t) {
|
|
1586
|
+
return Zn(e) ? e(...t) : e;
|
|
1603
1587
|
}
|
|
1604
1588
|
function nr(e, t = !0) {
|
|
1605
1589
|
return typeof e == "string" && (t || e !== "");
|
|
1606
1590
|
}
|
|
1607
1591
|
function rr(e) {
|
|
1608
|
-
return
|
|
1592
|
+
return q(e) && !isNaN(e);
|
|
1609
1593
|
}
|
|
1610
1594
|
function ir(e, t) {
|
|
1611
1595
|
if (t) {
|
|
@@ -1615,7 +1599,7 @@ function ir(e, t) {
|
|
|
1615
1599
|
return !1;
|
|
1616
1600
|
}
|
|
1617
1601
|
function ar(...e) {
|
|
1618
|
-
return
|
|
1602
|
+
return er(...e);
|
|
1619
1603
|
}
|
|
1620
1604
|
function or(e) {
|
|
1621
1605
|
return e && e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":").trim();
|
|
@@ -1734,7 +1718,7 @@ function Er(e) {
|
|
|
1734
1718
|
return nr(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
1735
1719
|
}
|
|
1736
1720
|
function Dr(e) {
|
|
1737
|
-
return
|
|
1721
|
+
return Qn(e) && e.hasOwnProperty("$value") && e.hasOwnProperty("$type") ? e.$value : e;
|
|
1738
1722
|
}
|
|
1739
1723
|
function Or(e) {
|
|
1740
1724
|
return e.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
@@ -1753,7 +1737,7 @@ function Mr(e, t = "", n = "", r = [], i) {
|
|
|
1753
1737
|
let t = e.trim();
|
|
1754
1738
|
if (jr(t)) return;
|
|
1755
1739
|
if (ir(t, Cr)) {
|
|
1756
|
-
let e = t.replaceAll(Cr, (e) => `var(${Ar(n, sr(e.replace(/{|}/g, "").split(".").filter((e) => !r.some((t) => ir(e, t))).join("-")))}${
|
|
1740
|
+
let e = t.replaceAll(Cr, (e) => `var(${Ar(n, sr(e.replace(/{|}/g, "").split(".").filter((e) => !r.some((t) => ir(e, t))).join("-")))}${q(i) ? `, ${i}` : ""})`);
|
|
1757
1741
|
return ir(e.replace(Tr, "0"), wr) ? `calc(${e})` : e;
|
|
1758
1742
|
}
|
|
1759
1743
|
return t;
|
|
@@ -1802,12 +1786,12 @@ function Fr(e, t) {
|
|
|
1802
1786
|
var Ir = (...e) => Lr($.getTheme(), ...e), Lr = (e = {}, t, n, r) => {
|
|
1803
1787
|
if (t) {
|
|
1804
1788
|
let { variable: i, options: a } = $.defaults || {}, { prefix: o, transform: s } = e?.options || a || {}, c = ir(t, Cr) ? t : `{${t}}`;
|
|
1805
|
-
return r === "value" ||
|
|
1789
|
+
return r === "value" || Xn(r) && s === "strict" ? $.getTokenValue(t) : Mr(c, void 0, o, [i.excludedKeyRegex], n);
|
|
1806
1790
|
}
|
|
1807
1791
|
return "";
|
|
1808
1792
|
};
|
|
1809
1793
|
function Rr(e, ...t) {
|
|
1810
|
-
return e instanceof Array ? Fr(e.reduce((e, n, r) => e + n + (
|
|
1794
|
+
return e instanceof Array ? Fr(e.reduce((e, n, r) => e + n + (tr(t[r], { dt: Ir }) ?? ""), ""), Ir) : tr(e, { dt: Ir });
|
|
1811
1795
|
}
|
|
1812
1796
|
function zr(e, t = {}) {
|
|
1813
1797
|
let n = $.defaults.variable, { prefix: r = n.prefix, selector: i = n.selector, excludedKeyRegex: a = n.excludedKeyRegex } = t, o = [], s = [], c = [{
|
|
@@ -1818,7 +1802,7 @@ function zr(e, t = {}) {
|
|
|
1818
1802
|
let { node: e, path: t } = c.pop();
|
|
1819
1803
|
for (let n in e) {
|
|
1820
1804
|
let i = e[n], l = Dr(i), u = ir(n, a) ? kr(t) : kr(t, sr(n));
|
|
1821
|
-
if (
|
|
1805
|
+
if (Qn(l)) c.push({
|
|
1822
1806
|
node: l,
|
|
1823
1807
|
path: u
|
|
1824
1808
|
});
|
|
@@ -1898,8 +1882,8 @@ var Q = {
|
|
|
1898
1882
|
},
|
|
1899
1883
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
1900
1884
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
1901
|
-
if (
|
|
1902
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = X(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = X(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = X(x, ["dark"]), w = y || {}, { dark: T } = w, E = X(w, ["dark"]), ee =
|
|
1885
|
+
if (q(a) && o.transform !== "strict") {
|
|
1886
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = X(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = X(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = X(x, ["dark"]), w = y || {}, { dark: T } = w, E = X(w, ["dark"]), ee = q(t) ? this._toVariables({ primitive: t }, o) : {}, D = q(_) ? this._toVariables({ semantic: _ }, o) : {}, te = q(C) ? this._toVariables({ light: C }, o) : {}, O = q(S) ? this._toVariables({ dark: S }, o) : {}, k = q(b) ? this._toVariables({ semantic: b }, o) : {}, A = q(E) ? this._toVariables({ light: E }, o) : {}, j = q(T) ? this._toVariables({ dark: T }, o) : {}, [ne, re] = [ee.declarations ?? "", ee.tokens], [ie, ae] = [D.declarations ?? "", D.tokens || []], [M, oe] = [te.declarations ?? "", te.tokens || []], [se, ce] = [O.declarations ?? "", O.tokens || []], [le, ue] = [k.declarations ?? "", k.tokens || []], [de, fe] = [A.declarations ?? "", A.tokens || []], [pe, me] = [j.declarations ?? "", j.tokens || []];
|
|
1903
1887
|
s = this.transformCSS(e, ne, "light", "variable", o, r, i), c = re, l = `${this.transformCSS(e, `${ie}${M}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${se}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
1904
1888
|
...ae,
|
|
1905
1889
|
...oe,
|
|
@@ -1908,7 +1892,7 @@ var Q = {
|
|
|
1908
1892
|
...ue,
|
|
1909
1893
|
...fe,
|
|
1910
1894
|
...me
|
|
1911
|
-
])], p =
|
|
1895
|
+
])], p = tr(a.css, { dt: Ir });
|
|
1912
1896
|
}
|
|
1913
1897
|
return {
|
|
1914
1898
|
primitive: {
|
|
@@ -1928,17 +1912,17 @@ var Q = {
|
|
|
1928
1912
|
},
|
|
1929
1913
|
getPreset({ name: e = "", preset: t = {}, options: n, params: r, set: i, defaults: a, selector: o }) {
|
|
1930
1914
|
let s, c, l;
|
|
1931
|
-
if (
|
|
1915
|
+
if (q(t) && n.transform !== "strict") {
|
|
1932
1916
|
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m = X(u, [
|
|
1933
1917
|
"colorScheme",
|
|
1934
1918
|
"extend",
|
|
1935
1919
|
"css"
|
|
1936
|
-
]), h = f || {}, { colorScheme: g } = h, _ = X(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = X(v, ["dark"]), x = g || {}, { dark: S } = x, C = X(x, ["dark"]), w =
|
|
1920
|
+
]), h = f || {}, { colorScheme: g } = h, _ = X(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = X(v, ["dark"]), x = g || {}, { dark: S } = x, C = X(x, ["dark"]), w = q(m) ? this._toVariables({ [r]: Y(Y({}, m), _) }, n) : {}, T = q(b) ? this._toVariables({ [r]: Y(Y({}, b), C) }, n) : {}, E = q(y) ? this._toVariables({ [r]: Y(Y({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [te, O] = [T.declarations ?? "", T.tokens || []], [k, A] = [E.declarations ?? "", E.tokens || []];
|
|
1937
1921
|
s = `${this.transformCSS(r, `${ee}${te}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, k, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
1938
1922
|
...D,
|
|
1939
1923
|
...O,
|
|
1940
1924
|
...A
|
|
1941
|
-
])], l =
|
|
1925
|
+
])], l = tr(p, { dt: Ir });
|
|
1942
1926
|
}
|
|
1943
1927
|
return {
|
|
1944
1928
|
css: s,
|
|
@@ -1976,7 +1960,7 @@ var Q = {
|
|
|
1976
1960
|
},
|
|
1977
1961
|
getLayerOrder(e, t = {}, n, r) {
|
|
1978
1962
|
let { cssLayer: i } = t;
|
|
1979
|
-
return i ? `@layer ${
|
|
1963
|
+
return i ? `@layer ${tr(i.order || i.name || "primeui", n)}` : "";
|
|
1980
1964
|
},
|
|
1981
1965
|
getCommonStyleSheet({ name: e = "", theme: t = {}, params: n, props: r = {}, set: i, defaults: a }) {
|
|
1982
1966
|
let o = this.getCommon({
|
|
@@ -1987,7 +1971,7 @@ var Q = {
|
|
|
1987
1971
|
defaults: a
|
|
1988
1972
|
}), s = Object.entries(r).reduce((e, [t, n]) => e.push(`${t}="${n}"`) && e, []).join(" ");
|
|
1989
1973
|
return Object.entries(o || {}).reduce((e, [t, n]) => {
|
|
1990
|
-
if (
|
|
1974
|
+
if (Qn(n) && Object.hasOwn(n, "css")) {
|
|
1991
1975
|
let r = or(n.css), i = `${t}-variables`;
|
|
1992
1976
|
e.push(`<style type="text/css" data-primevue-style-id="${i}" ${s}>${r}</style>`);
|
|
1993
1977
|
}
|
|
@@ -2023,7 +2007,7 @@ var Q = {
|
|
|
2023
2007
|
});
|
|
2024
2008
|
r = wr.test(i.replace(Tr, "0")) ? `calc(${i})` : i;
|
|
2025
2009
|
}
|
|
2026
|
-
return
|
|
2010
|
+
return Xn(t.binding) && delete t.binding, n.pop(), {
|
|
2027
2011
|
colorScheme: e,
|
|
2028
2012
|
path: this.path,
|
|
2029
2013
|
paths: t,
|
|
@@ -2032,7 +2016,7 @@ var Q = {
|
|
|
2032
2016
|
}, o = (e, n, r) => {
|
|
2033
2017
|
Object.entries(e).forEach(([e, s]) => {
|
|
2034
2018
|
let c = ir(e, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Er(e)}` : Er(e), l = r ? `${r}.${e}` : e;
|
|
2035
|
-
|
|
2019
|
+
Qn(s) ? o(s, c, l) : (i[c] || (i[c] = {
|
|
2036
2020
|
paths: [],
|
|
2037
2021
|
computed: (e, t = {}, n = []) => {
|
|
2038
2022
|
if (i[c].paths.length === 1) return i[c].paths[0].computed(i[c].paths[0].scheme, t.binding, n);
|
|
@@ -2061,24 +2045,24 @@ var Q = {
|
|
|
2061
2045
|
}, void 0);
|
|
2062
2046
|
},
|
|
2063
2047
|
getSelectorRule(e, t, n, r) {
|
|
2064
|
-
return n === "class" || n === "attr" ? Pr(
|
|
2048
|
+
return n === "class" || n === "attr" ? Pr(q(t) ? `${e}${t},${e} ${t}` : e, r) : Pr(e, Pr(t ?? ":root,:host", r));
|
|
2065
2049
|
},
|
|
2066
2050
|
transformCSS(e, t, n, r, i = {}, a, o, s) {
|
|
2067
|
-
if (
|
|
2051
|
+
if (q(t)) {
|
|
2068
2052
|
let { cssLayer: c } = i;
|
|
2069
2053
|
if (r !== "style") {
|
|
2070
2054
|
let e = this.getColorSchemeOption(i, o);
|
|
2071
|
-
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (
|
|
2055
|
+
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (q(r) && (e += r.includes("[CSS]") ? r.replace("[CSS]", t) : this.getSelectorRule(r, s, n, t)), e), "") : Pr(s ?? ":root,:host", t);
|
|
2072
2056
|
}
|
|
2073
2057
|
if (c) {
|
|
2074
2058
|
let n = {
|
|
2075
2059
|
name: "primeui",
|
|
2076
2060
|
order: "primeui"
|
|
2077
2061
|
};
|
|
2078
|
-
|
|
2062
|
+
Qn(c) && (n.name = tr(c.name, {
|
|
2079
2063
|
name: e,
|
|
2080
2064
|
type: r
|
|
2081
|
-
})),
|
|
2065
|
+
})), q(n.name) && (t = Pr(`@layer ${n.name}`, t), a?.layerNames(n.name));
|
|
2082
2066
|
}
|
|
2083
2067
|
return t;
|
|
2084
2068
|
}
|
|
@@ -2452,7 +2436,7 @@ var pi = {
|
|
|
2452
2436
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(e) {
|
|
2453
2437
|
return e;
|
|
2454
2438
|
})(Rr(Zr ||= fi(["", ""]), e));
|
|
2455
|
-
return
|
|
2439
|
+
return q(n) ? Yr(or(n), ci({ name: this.name }, t)) : {};
|
|
2456
2440
|
},
|
|
2457
2441
|
loadCSS: function() {
|
|
2458
2442
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2483,7 +2467,7 @@ var pi = {
|
|
|
2483
2467
|
getStyleSheet: function() {
|
|
2484
2468
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2485
2469
|
if (this.css) {
|
|
2486
|
-
var n =
|
|
2470
|
+
var n = tr(this.css, { dt: Ir }) || "", r = or(Rr($r ||= fi([
|
|
2487
2471
|
"",
|
|
2488
2472
|
"",
|
|
2489
2473
|
""
|
|
@@ -2491,7 +2475,7 @@ var pi = {
|
|
|
2491
2475
|
var n = ti(t, 2), r = n[0], i = n[1];
|
|
2492
2476
|
return e.push(`${r}="${i}"`) && e;
|
|
2493
2477
|
}, []).join(" ");
|
|
2494
|
-
return
|
|
2478
|
+
return q(r) ? `<style type="text/css" data-primevue-style-id="${this.name}" ${i}>${r}</style>` : "";
|
|
2495
2479
|
}
|
|
2496
2480
|
return "";
|
|
2497
2481
|
},
|
|
@@ -2502,11 +2486,11 @@ var pi = {
|
|
|
2502
2486
|
getThemeStyleSheet: function(e) {
|
|
2503
2487
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [$.getStyleSheet(this.name, e, t)];
|
|
2504
2488
|
if (this.style) {
|
|
2505
|
-
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i = Rr(ei ||= fi(["", ""]),
|
|
2489
|
+
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i = Rr(ei ||= fi(["", ""]), tr(this.style, { dt: Ir })), a = or($.transformCSS(r, i)), o = Object.entries(t).reduce(function(e, t) {
|
|
2506
2490
|
var n = ti(t, 2), r = n[0], i = n[1];
|
|
2507
2491
|
return e.push(`${r}="${i}"`) && e;
|
|
2508
2492
|
}, []).join(" ");
|
|
2509
|
-
|
|
2493
|
+
q(a) && n.push(`<style type="text/css" data-primevue-style-id="${r}" ${o}>${a}</style>`);
|
|
2510
2494
|
}
|
|
2511
2495
|
return n.join("");
|
|
2512
2496
|
},
|
|
@@ -7759,5 +7743,5 @@ function Fo(e) {
|
|
|
7759
7743
|
}
|
|
7760
7744
|
//#endregion
|
|
7761
7745
|
//#region .build-temp-pv-toggle-group.ts
|
|
7762
|
-
Fo(
|
|
7746
|
+
Fo(Un);
|
|
7763
7747
|
//#endregion
|