@turquoisehealth/pit-viper 2.266.1-dev.1 → 2.267.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-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-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 +1111 -1118
- 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-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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
2
|
import { Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, defineCustomElement as c, getCurrentInstance as l, getCurrentScope as u, mergeModels as d, nextTick as f, normalizeStyle as p, onBeforeUnmount as m, onBeforeUpdate as h, onMounted as g, onScopeDispose as _, onUnmounted as v, openBlock as y, reactive as b, readonly as x, ref as S, renderSlot as C, shallowRef as w, toValue as T, unref as E, useModel as ee, useSlots as D, vShow as te, watch as O, watchEffect as k, withDirectives as ne } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var A = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames,
|
|
4
|
+
var A = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames, j = Object.prototype.hasOwnProperty, ae = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
6
|
for (var r in e) A(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
10
|
return t || A(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = ie(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !
|
|
11
|
+
}, oe = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ie(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !j.call(e, s) && s !== n && A(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
14
|
enumerable: !(r = re(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
}, se = (e, t, n) => (
|
|
17
|
+
}, se = (e, t, n) => (oe(e, t, "default"), n && oe(n, t, "default")), ce = Math.min, le = Math.max, ue = Math.round, M = (e) => ({
|
|
18
18
|
x: e,
|
|
19
19
|
y: e
|
|
20
20
|
}), de = {
|
|
@@ -48,38 +48,38 @@ function he(e) {
|
|
|
48
48
|
function ge(e, t, n) {
|
|
49
49
|
n === void 0 && (n = !1);
|
|
50
50
|
let r = pe(e), i = he(e), a = P(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
51
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
51
|
+
return t.reference[a] > t.floating[a] && (o = we(o)), [o, we(o)];
|
|
52
52
|
}
|
|
53
53
|
function I(e) {
|
|
54
|
-
let t =
|
|
54
|
+
let t = we(e);
|
|
55
55
|
return [
|
|
56
|
-
|
|
56
|
+
_e(e),
|
|
57
57
|
t,
|
|
58
|
-
|
|
58
|
+
_e(t)
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function _e(e) {
|
|
62
62
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
function
|
|
64
|
+
var ve = ["left", "right"], ye = ["right", "left"], be = ["top", "bottom"], xe = ["bottom", "top"];
|
|
65
|
+
function Se(e, t, n) {
|
|
66
66
|
switch (e) {
|
|
67
67
|
case "top":
|
|
68
|
-
case "bottom": return n ? t ?
|
|
68
|
+
case "bottom": return n ? t ? ye : ve : t ? ve : ye;
|
|
69
69
|
case "left":
|
|
70
|
-
case "right": return t ?
|
|
70
|
+
case "right": return t ? be : xe;
|
|
71
71
|
default: return [];
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
let i = pe(e), a =
|
|
76
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
74
|
+
function Ce(e, t, n, r) {
|
|
75
|
+
let i = pe(e), a = Se(N(e), n === "start", r);
|
|
76
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_e)))), a;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function we(e) {
|
|
79
79
|
let t = N(e);
|
|
80
80
|
return de[t] + e.slice(t.length);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Te(e) {
|
|
83
83
|
return {
|
|
84
84
|
top: 0,
|
|
85
85
|
right: 0,
|
|
@@ -88,15 +88,15 @@ function we(e) {
|
|
|
88
88
|
...e
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ee(e) {
|
|
92
92
|
return typeof e == "number" ? {
|
|
93
93
|
top: e,
|
|
94
94
|
right: e,
|
|
95
95
|
bottom: e,
|
|
96
96
|
left: e
|
|
97
|
-
} :
|
|
97
|
+
} : Te(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function De(e) {
|
|
100
100
|
let { x: t, y: n, width: r, height: i } = e;
|
|
101
101
|
return {
|
|
102
102
|
width: r,
|
|
@@ -111,7 +111,7 @@ function Ee(e) {
|
|
|
111
111
|
}
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
114
|
-
function
|
|
114
|
+
function Oe(e, t, n) {
|
|
115
115
|
let { reference: r, floating: i } = e, a = F(t), o = he(t), s = P(o), c = N(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;
|
|
116
116
|
switch (c) {
|
|
117
117
|
case "top":
|
|
@@ -153,9 +153,9 @@ function De(e, t, n) {
|
|
|
153
153
|
}
|
|
154
154
|
return p;
|
|
155
155
|
}
|
|
156
|
-
async function
|
|
156
|
+
async function ke(e, t) {
|
|
157
157
|
t === void 0 && (t = {});
|
|
158
|
-
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 } = fe(t, e), p =
|
|
158
|
+
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 } = fe(t, e), p = Ee(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = De(await i.getClippingRect({
|
|
159
159
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
160
160
|
boundary: c,
|
|
161
161
|
rootBoundary: l,
|
|
@@ -168,7 +168,7 @@ async function Oe(e, t) {
|
|
|
168
168
|
} : 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(_)) || {
|
|
169
169
|
x: 1,
|
|
170
170
|
y: 1
|
|
171
|
-
}, y =
|
|
171
|
+
}, y = De(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
172
172
|
elements: o,
|
|
173
173
|
rect: g,
|
|
174
174
|
offsetParent: _,
|
|
@@ -181,15 +181,15 @@ async function Oe(e, t) {
|
|
|
181
181
|
right: (y.right - h.right + p.right) / v.x
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
var
|
|
184
|
+
var Ae = 50, je = async (e, t, n) => {
|
|
185
185
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
186
186
|
...o,
|
|
187
|
-
detectOverflow:
|
|
187
|
+
detectOverflow: ke
|
|
188
188
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
189
189
|
reference: e,
|
|
190
190
|
floating: t,
|
|
191
191
|
strategy: i
|
|
192
|
-
}), { x: u, y: d } =
|
|
192
|
+
}), { x: u, y: d } = Oe(l, r, c), f = r, p = 0, m = {};
|
|
193
193
|
for (let n = 0; n < a.length; n++) {
|
|
194
194
|
let h = a[n];
|
|
195
195
|
if (!h) continue;
|
|
@@ -210,11 +210,11 @@ var ke = 50, Ae = async (e, t, n) => {
|
|
|
210
210
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
211
211
|
...m[g],
|
|
212
212
|
...b
|
|
213
|
-
}, x && p <
|
|
213
|
+
}, x && p < Ae && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
214
214
|
reference: e,
|
|
215
215
|
floating: t,
|
|
216
216
|
strategy: i
|
|
217
|
-
}) : x.rects), {x: u, y: d} =
|
|
217
|
+
}) : x.rects), {x: u, y: d} = Oe(l, f, c)), n = -1);
|
|
218
218
|
}
|
|
219
219
|
return {
|
|
220
220
|
x: u,
|
|
@@ -223,7 +223,7 @@ var ke = 50, Ae = async (e, t, n) => {
|
|
|
223
223
|
strategy: i,
|
|
224
224
|
middlewareData: m
|
|
225
225
|
};
|
|
226
|
-
},
|
|
226
|
+
}, Me = function(e) {
|
|
227
227
|
return e === void 0 && (e = {}), {
|
|
228
228
|
name: "flip",
|
|
229
229
|
options: e,
|
|
@@ -231,8 +231,8 @@ var ke = 50, Ae = async (e, t, n) => {
|
|
|
231
231
|
var n;
|
|
232
232
|
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 } = fe(e, t);
|
|
233
233
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
234
|
-
let g = N(r), _ = F(o), v = N(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [
|
|
235
|
-
!d && x && b.push(...
|
|
234
|
+
let g = N(r), _ = F(o), v = N(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [we(o)] : I(o)), x = p !== "none";
|
|
235
|
+
!d && x && b.push(...Ce(o, m, p, y));
|
|
236
236
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
237
237
|
if (l && w.push(C[g]), u) {
|
|
238
238
|
let e = ge(r, a, y);
|
|
@@ -272,9 +272,9 @@ var ke = 50, Ae = async (e, t, n) => {
|
|
|
272
272
|
return {};
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
},
|
|
276
|
-
async function
|
|
277
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = N(n), s = pe(n), c = F(n) === "y", l =
|
|
275
|
+
}, Ne = /* @__PURE__ */ new Set(["left", "top"]);
|
|
276
|
+
async function Pe(e, t) {
|
|
277
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = N(n), s = pe(n), c = F(n) === "y", l = Ne.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = fe(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
278
278
|
mainAxis: d,
|
|
279
279
|
crossAxis: 0,
|
|
280
280
|
alignmentAxis: null
|
|
@@ -291,13 +291,13 @@ async function Ne(e, t) {
|
|
|
291
291
|
y: p * u
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
var
|
|
294
|
+
var Fe = function(e) {
|
|
295
295
|
return e === void 0 && (e = 0), {
|
|
296
296
|
name: "offset",
|
|
297
297
|
options: e,
|
|
298
298
|
async fn(t) {
|
|
299
299
|
var n;
|
|
300
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
300
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Pe(t, e);
|
|
301
301
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
302
302
|
x: r + s.x,
|
|
303
303
|
y: i + s.y,
|
|
@@ -311,39 +311,39 @@ var Pe = function(e) {
|
|
|
311
311
|
};
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
314
|
-
function
|
|
314
|
+
function Ie() {
|
|
315
315
|
return typeof window < "u";
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
317
|
+
function Le(e) {
|
|
318
|
+
return Re(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function L(e) {
|
|
321
321
|
var t;
|
|
322
322
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
return ((
|
|
326
|
-
}
|
|
327
|
-
function Le(e) {
|
|
328
|
-
return Fe() ? e instanceof Node || e instanceof R(e).Node : !1;
|
|
324
|
+
function R(e) {
|
|
325
|
+
return ((Re(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
329
326
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
327
|
+
function Re(e) {
|
|
328
|
+
return Ie() ? e instanceof Node || e instanceof L(e).Node : !1;
|
|
332
329
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
330
|
+
function z(e) {
|
|
331
|
+
return Ie() ? e instanceof Element || e instanceof L(e).Element : !1;
|
|
335
332
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
333
|
+
function B(e) {
|
|
334
|
+
return Ie() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
|
|
338
335
|
}
|
|
339
336
|
function ze(e) {
|
|
340
|
-
|
|
341
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
337
|
+
return !Ie() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
|
|
342
338
|
}
|
|
343
339
|
function Be(e) {
|
|
344
|
-
|
|
340
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = V(e);
|
|
341
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
345
342
|
}
|
|
346
343
|
function Ve(e) {
|
|
344
|
+
return /^(table|td|th)$/.test(Le(e));
|
|
345
|
+
}
|
|
346
|
+
function He(e) {
|
|
347
347
|
try {
|
|
348
348
|
if (e.matches(":popover-open")) return !0;
|
|
349
349
|
} catch {}
|
|
@@ -353,31 +353,31 @@ function Ve(e) {
|
|
|
353
353
|
return !1;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
var
|
|
357
|
-
function Ke(e) {
|
|
358
|
-
let t = B(e) ? H(e) : e;
|
|
359
|
-
return We(t.transform) || We(t.translate) || We(t.scale) || We(t.rotate) || We(t.perspective) || !Je() && (We(t.backdropFilter) || We(t.filter)) || He.test(t.willChange || "") || Ue.test(t.contain || "");
|
|
360
|
-
}
|
|
356
|
+
var Ue = /transform|translate|scale|rotate|perspective|filter/, We = /paint|layout|strict|content/, Ge = (e) => !!e && e !== "none", Ke;
|
|
361
357
|
function qe(e) {
|
|
362
|
-
let t =
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
358
|
+
let t = z(e) ? V(e) : e;
|
|
359
|
+
return Ge(t.transform) || Ge(t.translate) || Ge(t.scale) || Ge(t.rotate) || Ge(t.perspective) || !Ye() && (Ge(t.backdropFilter) || Ge(t.filter)) || Ue.test(t.willChange || "") || We.test(t.contain || "");
|
|
360
|
+
}
|
|
361
|
+
function Je(e) {
|
|
362
|
+
let t = H(e);
|
|
363
|
+
for (; B(t) && !Xe(t);) {
|
|
364
|
+
if (qe(t)) return t;
|
|
365
|
+
if (He(t)) return null;
|
|
366
|
+
t = H(t);
|
|
367
367
|
}
|
|
368
368
|
return null;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function Ye() {
|
|
371
|
+
return Ke ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ke;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return /^(html|body|#document)$/.test(
|
|
373
|
+
function Xe(e) {
|
|
374
|
+
return /^(html|body|#document)$/.test(Le(e));
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
376
|
+
function V(e) {
|
|
377
|
+
return L(e).getComputedStyle(e);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
379
|
+
function Ze(e) {
|
|
380
|
+
return z(e) ? {
|
|
381
381
|
scrollLeft: e.scrollLeft,
|
|
382
382
|
scrollTop: e.scrollTop
|
|
383
383
|
} : {
|
|
@@ -385,101 +385,101 @@ function Xe(e) {
|
|
|
385
385
|
scrollTop: e.scrollY
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
if (
|
|
390
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
391
|
-
return
|
|
388
|
+
function H(e) {
|
|
389
|
+
if (Le(e) === "html") return e;
|
|
390
|
+
let t = e.assignedSlot || e.parentNode || ze(e) && e.host || R(e);
|
|
391
|
+
return ze(t) ? t.host : t;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
let t =
|
|
395
|
-
return
|
|
393
|
+
function Qe(e) {
|
|
394
|
+
let t = H(e);
|
|
395
|
+
return Xe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : B(t) && Be(t) ? t : Qe(t);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function $e(e, t, n) {
|
|
398
398
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
399
|
-
let r =
|
|
399
|
+
let r = Qe(e), i = r === e.ownerDocument?.body, a = L(r);
|
|
400
400
|
if (i) {
|
|
401
|
-
let e =
|
|
402
|
-
return t.concat(a, a.visualViewport || [],
|
|
403
|
-
} else return t.concat(r,
|
|
401
|
+
let e = et(a);
|
|
402
|
+
return t.concat(a, a.visualViewport || [], Be(r) ? r : [], e && n ? $e(e) : []);
|
|
403
|
+
} else return t.concat(r, $e(r, [], n));
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function et(e) {
|
|
406
406
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
407
407
|
}
|
|
408
408
|
//#endregion
|
|
409
409
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
410
|
-
function
|
|
411
|
-
let t =
|
|
410
|
+
function tt(e) {
|
|
411
|
+
let t = V(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = B(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ue(n) !== a || ue(r) !== o;
|
|
412
412
|
return s && (n = a, r = o), {
|
|
413
413
|
width: n,
|
|
414
414
|
height: r,
|
|
415
415
|
$: s
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
function tt(e) {
|
|
419
|
-
return B(e) ? e : e.contextElement;
|
|
420
|
-
}
|
|
421
418
|
function nt(e) {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
419
|
+
return z(e) ? e : e.contextElement;
|
|
420
|
+
}
|
|
421
|
+
function rt(e) {
|
|
422
|
+
let t = nt(e);
|
|
423
|
+
if (!B(t)) return M(1);
|
|
424
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = tt(t), o = (a ? ue(n.width) : n.width) / r, s = (a ? ue(n.height) : n.height) / i;
|
|
425
425
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
426
426
|
x: o,
|
|
427
427
|
y: s
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
|
-
var
|
|
431
|
-
function
|
|
432
|
-
let t =
|
|
433
|
-
return !
|
|
430
|
+
var it = /* @__PURE__ */ M(0);
|
|
431
|
+
function at(e) {
|
|
432
|
+
let t = L(e);
|
|
433
|
+
return !Ye() || !t.visualViewport ? it : {
|
|
434
434
|
x: t.visualViewport.offsetLeft,
|
|
435
435
|
y: t.visualViewport.offsetTop
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
438
|
+
function ot(e, t, n) {
|
|
439
|
+
return t === void 0 && (t = !1), !n || t && n !== L(e) ? !1 : t;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function st(e, t, n, r) {
|
|
442
442
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
443
|
-
let i = e.getBoundingClientRect(), a =
|
|
444
|
-
t && (r ?
|
|
445
|
-
let s =
|
|
443
|
+
let i = e.getBoundingClientRect(), a = nt(e), o = M(1);
|
|
444
|
+
t && (r ? z(r) && (o = rt(r)) : o = rt(e));
|
|
445
|
+
let s = ot(a, n, r) ? at(a) : M(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;
|
|
446
446
|
if (a) {
|
|
447
|
-
let e =
|
|
447
|
+
let e = L(a), t = r && z(r) ? L(r) : r, n = e, i = et(n);
|
|
448
448
|
for (; i && r && t !== n;) {
|
|
449
|
-
let e =
|
|
450
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
449
|
+
let e = rt(i), t = i.getBoundingClientRect(), r = V(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
450
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = L(i), i = et(n);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
return
|
|
453
|
+
return De({
|
|
454
454
|
width: u,
|
|
455
455
|
height: d,
|
|
456
456
|
x: c,
|
|
457
457
|
y: l
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
|
-
function st(e, t) {
|
|
461
|
-
let n = Xe(e).scrollLeft;
|
|
462
|
-
return t ? t.left + n : ot(z(e)).left + n;
|
|
463
|
-
}
|
|
464
460
|
function ct(e, t) {
|
|
461
|
+
let n = Ze(e).scrollLeft;
|
|
462
|
+
return t ? t.left + n : st(R(e)).left + n;
|
|
463
|
+
}
|
|
464
|
+
function lt(e, t) {
|
|
465
465
|
let n = e.getBoundingClientRect();
|
|
466
466
|
return {
|
|
467
|
-
x: n.left + t.scrollLeft -
|
|
467
|
+
x: n.left + t.scrollLeft - ct(e, n),
|
|
468
468
|
y: n.top + t.scrollTop
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
471
|
+
function ut(e) {
|
|
472
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = R(r), s = t ? He(t.floating) : !1;
|
|
473
473
|
if (r === o || s && a) return n;
|
|
474
474
|
let c = {
|
|
475
475
|
scrollLeft: 0,
|
|
476
476
|
scrollTop: 0
|
|
477
|
-
}, l = M(1), u = M(0), d =
|
|
478
|
-
if ((d || !d && !a) && ((
|
|
479
|
-
let e =
|
|
480
|
-
l =
|
|
477
|
+
}, l = M(1), u = M(0), d = B(r);
|
|
478
|
+
if ((d || !d && !a) && ((Le(r) !== "body" || Be(o)) && (c = Ze(r)), d)) {
|
|
479
|
+
let e = st(r);
|
|
480
|
+
l = rt(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
481
481
|
}
|
|
482
|
-
let f = o && !d && !a ?
|
|
482
|
+
let f = o && !d && !a ? lt(o, c) : M(0);
|
|
483
483
|
return {
|
|
484
484
|
width: n.width * l.x,
|
|
485
485
|
height: n.height * l.y,
|
|
@@ -487,31 +487,31 @@ function lt(e) {
|
|
|
487
487
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function dt(e) {
|
|
491
491
|
return Array.from(e.getClientRects());
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
let t =
|
|
495
|
-
return
|
|
493
|
+
function ft(e) {
|
|
494
|
+
let t = R(e), n = Ze(e), r = e.ownerDocument.body, i = le(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = le(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ct(e), s = -n.scrollTop;
|
|
495
|
+
return V(r).direction === "rtl" && (o += le(t.clientWidth, r.clientWidth) - i), {
|
|
496
496
|
width: i,
|
|
497
497
|
height: a,
|
|
498
498
|
x: o,
|
|
499
499
|
y: s
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
504
|
-
let n =
|
|
502
|
+
var pt = 25;
|
|
503
|
+
function mt(e, t) {
|
|
504
|
+
let n = L(e), r = R(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
505
505
|
if (i) {
|
|
506
506
|
a = i.width, o = i.height;
|
|
507
|
-
let e =
|
|
507
|
+
let e = Ye();
|
|
508
508
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
509
509
|
}
|
|
510
|
-
let l =
|
|
510
|
+
let l = ct(r);
|
|
511
511
|
if (l <= 0) {
|
|
512
512
|
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);
|
|
513
|
-
o <=
|
|
514
|
-
} else l <=
|
|
513
|
+
o <= pt && (a -= o);
|
|
514
|
+
} else l <= pt && (a += l);
|
|
515
515
|
return {
|
|
516
516
|
width: a,
|
|
517
517
|
height: o,
|
|
@@ -519,8 +519,8 @@ function pt(e, t) {
|
|
|
519
519
|
y: c
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
let n =
|
|
522
|
+
function ht(e, t) {
|
|
523
|
+
let n = st(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e) ? rt(e) : M(1);
|
|
524
524
|
return {
|
|
525
525
|
width: e.clientWidth * a.x,
|
|
526
526
|
height: e.clientHeight * a.y,
|
|
@@ -528,13 +528,13 @@ function mt(e, t) {
|
|
|
528
528
|
y: r * a.y
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function gt(e, t, n) {
|
|
532
532
|
let r;
|
|
533
|
-
if (t === "viewport") r =
|
|
534
|
-
else if (t === "document") r =
|
|
535
|
-
else if (
|
|
533
|
+
if (t === "viewport") r = mt(e, n);
|
|
534
|
+
else if (t === "document") r = ft(R(e));
|
|
535
|
+
else if (z(t)) r = ht(t, n);
|
|
536
536
|
else {
|
|
537
|
-
let n =
|
|
537
|
+
let n = at(e);
|
|
538
538
|
r = {
|
|
539
539
|
x: t.x - n.x,
|
|
540
540
|
y: t.y - n.y,
|
|
@@ -542,26 +542,26 @@ function ht(e, t, n) {
|
|
|
542
542
|
height: t.height
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
return
|
|
546
|
-
}
|
|
547
|
-
function gt(e, t) {
|
|
548
|
-
let n = U(e);
|
|
549
|
-
return n === t || !B(n) || Ye(n) ? !1 : H(n).position === "fixed" || gt(n, t);
|
|
545
|
+
return De(r);
|
|
550
546
|
}
|
|
551
547
|
function _t(e, t) {
|
|
548
|
+
let n = H(e);
|
|
549
|
+
return n === t || !z(n) || Xe(n) ? !1 : V(n).position === "fixed" || _t(n, t);
|
|
550
|
+
}
|
|
551
|
+
function vt(e, t) {
|
|
552
552
|
let n = t.get(e);
|
|
553
553
|
if (n) return n;
|
|
554
|
-
let r =
|
|
555
|
-
for (;
|
|
556
|
-
let t =
|
|
557
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
554
|
+
let r = $e(e, [], !1).filter((e) => z(e) && Le(e) !== "body"), i = null, a = V(e).position === "fixed", o = a ? H(e) : e;
|
|
555
|
+
for (; z(o) && !Xe(o);) {
|
|
556
|
+
let t = V(o), n = qe(o);
|
|
557
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Be(o) && !n && _t(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = H(o);
|
|
558
558
|
}
|
|
559
559
|
return t.set(e, r), r;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
561
|
+
function yt(e) {
|
|
562
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? He(t) ? [] : vt(t, this._c) : [].concat(n), r], o = gt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
563
563
|
for (let e = 1; e < a.length; e++) {
|
|
564
|
-
let n =
|
|
564
|
+
let n = gt(t, a[e], i);
|
|
565
565
|
s = le(n.top, s), c = ce(n.right, c), l = ce(n.bottom, l), u = le(n.left, u);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
@@ -571,27 +571,27 @@ function vt(e) {
|
|
|
571
571
|
y: s
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
let { width: t, height: n } =
|
|
574
|
+
function bt(e) {
|
|
575
|
+
let { width: t, height: n } = tt(e);
|
|
576
576
|
return {
|
|
577
577
|
width: t,
|
|
578
578
|
height: n
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
582
|
-
let r =
|
|
581
|
+
function xt(e, t, n) {
|
|
582
|
+
let r = B(t), i = R(t), a = n === "fixed", o = st(e, !0, a, t), s = {
|
|
583
583
|
scrollLeft: 0,
|
|
584
584
|
scrollTop: 0
|
|
585
585
|
}, c = M(0);
|
|
586
586
|
function l() {
|
|
587
|
-
c.x =
|
|
587
|
+
c.x = ct(i);
|
|
588
588
|
}
|
|
589
|
-
if (r || !r && !a) if ((
|
|
590
|
-
let e =
|
|
589
|
+
if (r || !r && !a) if ((Le(t) !== "body" || Be(i)) && (s = Ze(t)), r) {
|
|
590
|
+
let e = st(t, !0, a, t);
|
|
591
591
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
592
592
|
} else i && l();
|
|
593
593
|
a && !r && i && l();
|
|
594
|
-
let u = i && !r && !a ?
|
|
594
|
+
let u = i && !r && !a ? lt(i, s) : M(0);
|
|
595
595
|
return {
|
|
596
596
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
597
597
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -599,34 +599,34 @@ function bt(e, t, n) {
|
|
|
599
599
|
height: o.height
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
602
|
+
function St(e) {
|
|
603
|
+
return V(e).position === "static";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
if (!
|
|
605
|
+
function Ct(e, t) {
|
|
606
|
+
if (!B(e) || V(e).position === "fixed") return null;
|
|
607
607
|
if (t) return t(e);
|
|
608
608
|
let n = e.offsetParent;
|
|
609
|
-
return
|
|
610
|
-
}
|
|
611
|
-
function
|
|
612
|
-
let n =
|
|
613
|
-
if (
|
|
614
|
-
if (!
|
|
615
|
-
let t =
|
|
616
|
-
for (; t && !
|
|
617
|
-
if (
|
|
618
|
-
t =
|
|
609
|
+
return R(e) === n && (n = n.ownerDocument.body), n;
|
|
610
|
+
}
|
|
611
|
+
function wt(e, t) {
|
|
612
|
+
let n = L(e);
|
|
613
|
+
if (He(e)) return n;
|
|
614
|
+
if (!B(e)) {
|
|
615
|
+
let t = H(e);
|
|
616
|
+
for (; t && !Xe(t);) {
|
|
617
|
+
if (z(t) && !St(t)) return t;
|
|
618
|
+
t = H(t);
|
|
619
619
|
}
|
|
620
620
|
return n;
|
|
621
621
|
}
|
|
622
|
-
let r =
|
|
623
|
-
for (; r &&
|
|
624
|
-
return r &&
|
|
622
|
+
let r = Ct(e, t);
|
|
623
|
+
for (; r && Ve(r) && St(r);) r = Ct(r, t);
|
|
624
|
+
return r && Xe(r) && St(r) && !qe(r) ? n : r || Je(e) || n;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
let t = this.getOffsetParent ||
|
|
626
|
+
var Tt = async function(e) {
|
|
627
|
+
let t = this.getOffsetParent || wt, n = this.getDimensions, r = await n(e.floating);
|
|
628
628
|
return {
|
|
629
|
-
reference:
|
|
629
|
+
reference: xt(e.reference, await t(e.floating), e.strategy),
|
|
630
630
|
floating: {
|
|
631
631
|
x: 0,
|
|
632
632
|
y: 0,
|
|
@@ -635,48 +635,48 @@ var wt = async function(e) {
|
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
};
|
|
638
|
-
function
|
|
639
|
-
return
|
|
640
|
-
}
|
|
641
|
-
var
|
|
642
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
643
|
-
getDocumentElement:
|
|
644
|
-
getClippingRect:
|
|
645
|
-
getOffsetParent:
|
|
646
|
-
getElementRects:
|
|
647
|
-
getClientRects:
|
|
648
|
-
getDimensions:
|
|
649
|
-
getScale:
|
|
650
|
-
isElement:
|
|
651
|
-
isRTL:
|
|
652
|
-
},
|
|
638
|
+
function Et(e) {
|
|
639
|
+
return V(e).direction === "rtl";
|
|
640
|
+
}
|
|
641
|
+
var Dt = {
|
|
642
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ut,
|
|
643
|
+
getDocumentElement: R,
|
|
644
|
+
getClippingRect: yt,
|
|
645
|
+
getOffsetParent: wt,
|
|
646
|
+
getElementRects: Tt,
|
|
647
|
+
getClientRects: dt,
|
|
648
|
+
getDimensions: bt,
|
|
649
|
+
getScale: rt,
|
|
650
|
+
isElement: z,
|
|
651
|
+
isRTL: Et
|
|
652
|
+
}, Ot = Fe, kt = Me, At = (e, t, n) => {
|
|
653
653
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
654
|
-
platform:
|
|
654
|
+
platform: Dt,
|
|
655
655
|
...n
|
|
656
656
|
}, a = {
|
|
657
657
|
...i.platform,
|
|
658
658
|
_c: r
|
|
659
659
|
};
|
|
660
|
-
return
|
|
660
|
+
return je(e, t, {
|
|
661
661
|
...i,
|
|
662
662
|
platform: a
|
|
663
663
|
});
|
|
664
|
-
},
|
|
664
|
+
}, U = /* @__PURE__ */ ae({
|
|
665
665
|
Vue: () => e,
|
|
666
666
|
Vue2: () => void 0,
|
|
667
|
-
del: () =>
|
|
668
|
-
install: () =>
|
|
667
|
+
del: () => Pt,
|
|
668
|
+
install: () => Mt,
|
|
669
669
|
isVue2: () => !1,
|
|
670
670
|
isVue3: () => !0,
|
|
671
|
-
set: () =>
|
|
671
|
+
set: () => Nt
|
|
672
672
|
});
|
|
673
|
-
import * as
|
|
674
|
-
se(
|
|
675
|
-
function
|
|
676
|
-
function
|
|
673
|
+
import * as jt from "vue";
|
|
674
|
+
se(U, jt);
|
|
675
|
+
function Mt() {}
|
|
676
|
+
function Nt(e, t, n) {
|
|
677
677
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function Pt(e, t) {
|
|
680
680
|
if (Array.isArray(e)) {
|
|
681
681
|
e.splice(t, 1);
|
|
682
682
|
return;
|
|
@@ -685,40 +685,40 @@ function Nt(e, t) {
|
|
|
685
685
|
}
|
|
686
686
|
//#endregion
|
|
687
687
|
//#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
|
|
688
|
-
function
|
|
688
|
+
function Ft(e) {
|
|
689
689
|
return typeof e == "object" && !!e && "$el" in e;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
if (
|
|
691
|
+
function It(e) {
|
|
692
|
+
if (Ft(e)) {
|
|
693
693
|
let t = e.$el;
|
|
694
|
-
return
|
|
694
|
+
return Re(t) && Le(t) === "#comment" ? null : t;
|
|
695
695
|
}
|
|
696
696
|
return e;
|
|
697
697
|
}
|
|
698
|
-
function It(e) {
|
|
699
|
-
return typeof e == "function" ? e() : (0, W.unref)(e);
|
|
700
|
-
}
|
|
701
698
|
function Lt(e) {
|
|
699
|
+
return typeof e == "function" ? e() : (0, U.unref)(e);
|
|
700
|
+
}
|
|
701
|
+
function Rt(e) {
|
|
702
702
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
let n =
|
|
704
|
+
function zt(e, t) {
|
|
705
|
+
let n = Rt(e);
|
|
706
706
|
return Math.round(t * n) / n;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Bt(e, t, n) {
|
|
709
709
|
n === void 0 && (n = {});
|
|
710
|
-
let r = n.whileElementsMounted, i = (0,
|
|
710
|
+
let r = n.whileElementsMounted, i = (0, U.computed)(() => Lt(n.open) ?? !0), a = (0, U.computed)(() => Lt(n.middleware)), o = (0, U.computed)(() => Lt(n.placement) ?? "bottom"), s = (0, U.computed)(() => Lt(n.strategy) ?? "absolute"), c = (0, U.computed)(() => Lt(n.transform) ?? !0), l = (0, U.computed)(() => It(e.value)), u = (0, U.computed)(() => It(t.value)), d = (0, U.ref)(0), f = (0, U.ref)(0), p = (0, U.ref)(s.value), m = (0, U.ref)(o.value), h = (0, U.shallowRef)({}), g = (0, U.ref)(!1), _ = (0, U.computed)(() => {
|
|
711
711
|
let e = {
|
|
712
712
|
position: p.value,
|
|
713
713
|
left: "0",
|
|
714
714
|
top: "0"
|
|
715
715
|
};
|
|
716
716
|
if (!u.value) return e;
|
|
717
|
-
let t =
|
|
717
|
+
let t = zt(u.value, d.value), n = zt(u.value, f.value);
|
|
718
718
|
return c.value ? {
|
|
719
719
|
...e,
|
|
720
720
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
721
|
-
...
|
|
721
|
+
...Rt(u.value) >= 1.5 && { willChange: "transform" }
|
|
722
722
|
} : {
|
|
723
723
|
position: p.value,
|
|
724
724
|
left: t + "px",
|
|
@@ -728,7 +728,7 @@ function zt(e, t, n) {
|
|
|
728
728
|
function y() {
|
|
729
729
|
if (l.value == null || u.value == null) return;
|
|
730
730
|
let e = i.value;
|
|
731
|
-
|
|
731
|
+
At(l.value, u.value, {
|
|
732
732
|
middleware: a.value,
|
|
733
733
|
placement: o.value,
|
|
734
734
|
strategy: s.value
|
|
@@ -752,34 +752,34 @@ function zt(e, t, n) {
|
|
|
752
752
|
function S() {
|
|
753
753
|
i.value || (g.value = !1);
|
|
754
754
|
}
|
|
755
|
-
return (0,
|
|
755
|
+
return (0, U.watch)([
|
|
756
756
|
a,
|
|
757
757
|
o,
|
|
758
758
|
s,
|
|
759
759
|
i
|
|
760
|
-
], y, { flush: "sync" }), (0,
|
|
761
|
-
x: (0,
|
|
762
|
-
y: (0,
|
|
763
|
-
strategy: (0,
|
|
764
|
-
placement: (0,
|
|
765
|
-
middlewareData: (0,
|
|
766
|
-
isPositioned: (0,
|
|
760
|
+
], y, { flush: "sync" }), (0, U.watch)([l, u], x, { flush: "sync" }), (0, U.watch)(i, S, { flush: "sync" }), (0, U.getCurrentScope)() && (0, U.onScopeDispose)(b), {
|
|
761
|
+
x: (0, U.shallowReadonly)(d),
|
|
762
|
+
y: (0, U.shallowReadonly)(f),
|
|
763
|
+
strategy: (0, U.shallowReadonly)(p),
|
|
764
|
+
placement: (0, U.shallowReadonly)(m),
|
|
765
|
+
middlewareData: (0, U.shallowReadonly)(h),
|
|
766
|
+
isPositioned: (0, U.shallowReadonly)(g),
|
|
767
767
|
floatingStyles: _,
|
|
768
768
|
update: y
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
771
|
//#endregion
|
|
772
772
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
773
|
-
function
|
|
773
|
+
function Vt(e) {
|
|
774
774
|
return u() ? (_(e), !0) : !1;
|
|
775
775
|
}
|
|
776
|
-
var
|
|
776
|
+
var Ht = typeof window < "u" && typeof document < "u";
|
|
777
777
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
778
|
-
var
|
|
779
|
-
function
|
|
780
|
-
return
|
|
778
|
+
var Ut = (e) => e != null, Wt = Object.prototype.toString, Gt = (e) => Wt.call(e) === "[object Object]", W = () => {}, Kt = /* @__PURE__ */ qt();
|
|
779
|
+
function qt() {
|
|
780
|
+
return Ht && (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));
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Jt(e, t) {
|
|
783
783
|
function n(...n) {
|
|
784
784
|
return new Promise((r, i) => {
|
|
785
785
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -791,9 +791,9 @@ function qt(e, t) {
|
|
|
791
791
|
}
|
|
792
792
|
return n;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
795
|
-
let n, r, i =
|
|
796
|
-
clearTimeout(e), i(), i =
|
|
794
|
+
function Yt(e, t = {}) {
|
|
795
|
+
let n, r, i = W, a = (e) => {
|
|
796
|
+
clearTimeout(e), i(), i = W;
|
|
797
797
|
}, o;
|
|
798
798
|
return (s) => {
|
|
799
799
|
let c = T(e), l = T(t.maxWait);
|
|
@@ -806,20 +806,20 @@ function Jt(e, t = {}) {
|
|
|
806
806
|
});
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Xt(e) {
|
|
810
810
|
return Array.isArray(e) ? e : [e];
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Zt(e) {
|
|
813
813
|
return e || l();
|
|
814
814
|
}
|
|
815
815
|
/* @__NO_SIDE_EFFECTS__ */
|
|
816
|
-
function
|
|
817
|
-
return
|
|
816
|
+
function Qt(e, t = 200, n = {}) {
|
|
817
|
+
return Jt(Yt(t, n), e);
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
|
|
819
|
+
function $t(e, t = !0, n) {
|
|
820
|
+
Zt(n) ? g(e, n) : t ? e() : f(e);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function en(e, t, n) {
|
|
823
823
|
return O(e, t, {
|
|
824
824
|
...n,
|
|
825
825
|
immediate: !0
|
|
@@ -827,49 +827,49 @@ function $t(e, t, n) {
|
|
|
827
827
|
}
|
|
828
828
|
//#endregion
|
|
829
829
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
830
|
-
var
|
|
831
|
-
|
|
832
|
-
function
|
|
830
|
+
var tn = Ht ? window : void 0;
|
|
831
|
+
Ht && window.document, Ht && window.navigator, Ht && window.location;
|
|
832
|
+
function G(e) {
|
|
833
833
|
let t = T(e);
|
|
834
834
|
return t?.$el ?? t;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function nn(...e) {
|
|
837
837
|
let t = [], r = () => {
|
|
838
838
|
t.forEach((e) => e()), t.length = 0;
|
|
839
839
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = n(() => {
|
|
840
|
-
let t =
|
|
840
|
+
let t = Xt(T(e[0])).filter((e) => e != null);
|
|
841
841
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
842
|
-
}), o =
|
|
843
|
-
a.value?.map((e) =>
|
|
844
|
-
|
|
845
|
-
|
|
842
|
+
}), o = en(() => [
|
|
843
|
+
a.value?.map((e) => G(e)) ?? [tn].filter((e) => e != null),
|
|
844
|
+
Xt(T(a.value ? e[1] : e[0])),
|
|
845
|
+
Xt(E(a.value ? e[2] : e[1])),
|
|
846
846
|
T(a.value ? e[3] : e[2])
|
|
847
847
|
], ([e, n, a, o]) => {
|
|
848
848
|
if (r(), !e?.length || !n?.length || !a?.length) return;
|
|
849
|
-
let s =
|
|
849
|
+
let s = Gt(o) ? { ...o } : o;
|
|
850
850
|
t.push(...e.flatMap((e) => n.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
851
851
|
}, { flush: "post" });
|
|
852
|
-
return
|
|
852
|
+
return Vt(r), () => {
|
|
853
853
|
o(), r();
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
858
|
-
let { window: r =
|
|
856
|
+
var rn = !1;
|
|
857
|
+
function an(e, t, n = {}) {
|
|
858
|
+
let { window: r = tn, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
859
859
|
if (!r) return s ? {
|
|
860
|
-
stop:
|
|
861
|
-
cancel:
|
|
862
|
-
trigger:
|
|
863
|
-
} :
|
|
864
|
-
if (
|
|
865
|
-
|
|
860
|
+
stop: W,
|
|
861
|
+
cancel: W,
|
|
862
|
+
trigger: W
|
|
863
|
+
} : W;
|
|
864
|
+
if (Kt && !rn) {
|
|
865
|
+
rn = !0;
|
|
866
866
|
let e = { passive: !0 };
|
|
867
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
867
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", W, e)), r.document.documentElement.addEventListener("click", W, e);
|
|
868
868
|
}
|
|
869
869
|
let c = !0, l = (e) => T(i).some((t) => {
|
|
870
870
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
871
871
|
{
|
|
872
|
-
let n =
|
|
872
|
+
let n = G(t);
|
|
873
873
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
874
874
|
}
|
|
875
875
|
});
|
|
@@ -882,7 +882,7 @@ function rn(e, t, n = {}) {
|
|
|
882
882
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
883
883
|
}
|
|
884
884
|
let f = (n) => {
|
|
885
|
-
let r =
|
|
885
|
+
let r = G(e);
|
|
886
886
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
887
887
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
888
888
|
c = !0;
|
|
@@ -891,7 +891,7 @@ function rn(e, t, n = {}) {
|
|
|
891
891
|
t(n);
|
|
892
892
|
}
|
|
893
893
|
}, p = !1, m = [
|
|
894
|
-
|
|
894
|
+
nn(r, "click", (e) => {
|
|
895
895
|
p || (p = !0, setTimeout(() => {
|
|
896
896
|
p = !1;
|
|
897
897
|
}, 0), f(e));
|
|
@@ -899,13 +899,13 @@ function rn(e, t, n = {}) {
|
|
|
899
899
|
passive: !0,
|
|
900
900
|
capture: a
|
|
901
901
|
}),
|
|
902
|
-
|
|
903
|
-
let n =
|
|
902
|
+
nn(r, "pointerdown", (t) => {
|
|
903
|
+
let n = G(e);
|
|
904
904
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
905
905
|
}, { passive: !0 }),
|
|
906
|
-
o &&
|
|
906
|
+
o && nn(r, "blur", (n) => {
|
|
907
907
|
setTimeout(() => {
|
|
908
|
-
let i =
|
|
908
|
+
let i = G(e);
|
|
909
909
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
910
910
|
}, 0);
|
|
911
911
|
}, { passive: !0 })
|
|
@@ -921,22 +921,22 @@ function rn(e, t, n = {}) {
|
|
|
921
921
|
} : h;
|
|
922
922
|
}
|
|
923
923
|
/* @__NO_SIDE_EFFECTS__ */
|
|
924
|
-
function
|
|
924
|
+
function on() {
|
|
925
925
|
let e = w(!1), t = l();
|
|
926
926
|
return t && g(() => {
|
|
927
927
|
e.value = !0;
|
|
928
928
|
}, t), e;
|
|
929
929
|
}
|
|
930
930
|
/* @__NO_SIDE_EFFECTS__ */
|
|
931
|
-
function
|
|
932
|
-
let t = /* @__PURE__ */
|
|
931
|
+
function sn(e) {
|
|
932
|
+
let t = /* @__PURE__ */ on();
|
|
933
933
|
return n(() => (t.value, !!e()));
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
let { window: i =
|
|
935
|
+
function cn(e, t, r = {}) {
|
|
936
|
+
let { window: i = tn, ...a } = r, o, s = /* @__PURE__ */ sn(() => i && "MutationObserver" in i), c = () => {
|
|
937
937
|
o &&= (o.disconnect(), void 0);
|
|
938
938
|
}, l = O(n(() => {
|
|
939
|
-
let t =
|
|
939
|
+
let t = Xt(T(e)).map(G).filter(Ut);
|
|
940
940
|
return new Set(t);
|
|
941
941
|
}), (e) => {
|
|
942
942
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -946,21 +946,21 @@ function sn(e, t, r = {}) {
|
|
|
946
946
|
}), u = () => o?.takeRecords(), d = () => {
|
|
947
947
|
l(), c();
|
|
948
948
|
};
|
|
949
|
-
return
|
|
949
|
+
return Vt(d), {
|
|
950
950
|
isSupported: s,
|
|
951
951
|
stop: d,
|
|
952
952
|
takeRecords: u
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
let { window: r =
|
|
957
|
-
if (!r || !i) return
|
|
955
|
+
function ln(e, t, n = {}) {
|
|
956
|
+
let { window: r = tn, document: i = r?.document, flush: a = "sync" } = n;
|
|
957
|
+
if (!r || !i) return W;
|
|
958
958
|
let o, s = (e) => {
|
|
959
959
|
o?.(), o = e;
|
|
960
960
|
}, c = k(() => {
|
|
961
|
-
let n =
|
|
961
|
+
let n = G(e);
|
|
962
962
|
if (n) {
|
|
963
|
-
let { stop: e } =
|
|
963
|
+
let { stop: e } = cn(i, (e) => {
|
|
964
964
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
965
965
|
}, {
|
|
966
966
|
window: r,
|
|
@@ -972,14 +972,14 @@ function cn(e, t, n = {}) {
|
|
|
972
972
|
}, { flush: a }), l = () => {
|
|
973
973
|
c(), s();
|
|
974
974
|
};
|
|
975
|
-
return
|
|
975
|
+
return Vt(l), l;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
let { window: i =
|
|
977
|
+
function un(e, t, r = {}) {
|
|
978
|
+
let { window: i = tn, ...a } = r, o, s = /* @__PURE__ */ sn(() => i && "ResizeObserver" in i), c = () => {
|
|
979
979
|
o &&= (o.disconnect(), void 0);
|
|
980
980
|
}, l = O(n(() => {
|
|
981
981
|
let t = T(e);
|
|
982
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
982
|
+
return Array.isArray(t) ? t.map((e) => G(e)) : [G(t)];
|
|
983
983
|
}), (e) => {
|
|
984
984
|
if (c(), s.value && i) {
|
|
985
985
|
o = new ResizeObserver(t);
|
|
@@ -991,15 +991,15 @@ function ln(e, t, r = {}) {
|
|
|
991
991
|
}), u = () => {
|
|
992
992
|
c(), l();
|
|
993
993
|
};
|
|
994
|
-
return
|
|
994
|
+
return Vt(u), {
|
|
995
995
|
isSupported: s,
|
|
996
996
|
stop: u
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function dn(e, t = {}) {
|
|
1000
1000
|
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = w(0), c = w(0), l = w(0), u = w(0), d = w(0), f = w(0), p = w(0), m = w(0);
|
|
1001
1001
|
function h() {
|
|
1002
|
-
let t =
|
|
1002
|
+
let t = G(e);
|
|
1003
1003
|
if (!t) {
|
|
1004
1004
|
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);
|
|
1005
1005
|
return;
|
|
@@ -1010,10 +1010,10 @@ function un(e, t = {}) {
|
|
|
1010
1010
|
function g() {
|
|
1011
1011
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
1012
1012
|
}
|
|
1013
|
-
return
|
|
1013
|
+
return un(e, g), O(() => G(e), (e) => !e && g()), cn(e, g, { attributeFilter: ["style", "class"] }), i && nn("scroll", g, {
|
|
1014
1014
|
capture: !0,
|
|
1015
1015
|
passive: !0
|
|
1016
|
-
}), r &&
|
|
1016
|
+
}), r && nn("resize", g, { passive: !0 }), $t(() => {
|
|
1017
1017
|
a && g();
|
|
1018
1018
|
}), {
|
|
1019
1019
|
height: s,
|
|
@@ -1027,51 +1027,51 @@ function un(e, t = {}) {
|
|
|
1027
1027
|
update: g
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1031
|
-
let { delayEnter: r = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
1030
|
+
function fn(e, t = {}) {
|
|
1031
|
+
let { delayEnter: r = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = tn } = t, s = w(!1), c, l = (e) => {
|
|
1032
1032
|
let t = e ? r : i;
|
|
1033
1033
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
1034
1034
|
};
|
|
1035
|
-
return o ? (
|
|
1035
|
+
return o ? (nn(e, "mouseenter", () => l(!0), { passive: !0 }), nn(e, "mouseleave", () => l(!1), { passive: !0 }), a && ln(n(() => G(e)), () => l(!1)), s) : s;
|
|
1036
1036
|
}
|
|
1037
1037
|
//#endregion
|
|
1038
1038
|
//#region src/web-components/utils.ts
|
|
1039
|
-
function
|
|
1039
|
+
function pn() {
|
|
1040
1040
|
let e = S(!1), t = l()?.root || {};
|
|
1041
1041
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
1042
1042
|
}
|
|
1043
1043
|
//#endregion
|
|
1044
1044
|
//#region src/composables/useSlotPresence.ts
|
|
1045
|
-
function
|
|
1045
|
+
function mn(e, t) {
|
|
1046
1046
|
if (e.nodeType !== Node.TEXT_NODE) return !1;
|
|
1047
1047
|
let n = e.textContent ?? "";
|
|
1048
1048
|
return t ? n.length > 0 : n.trim().length > 0;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function hn(e, t, n) {
|
|
1051
1051
|
let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
|
|
1052
|
-
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") :
|
|
1052
|
+
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : mn(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function gn(e) {
|
|
1055
1055
|
if (e.shadowRoot) return null;
|
|
1056
1056
|
let t = e._slots;
|
|
1057
1057
|
return !t || typeof t != "object" ? null : t;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function _n(e, t, n) {
|
|
1060
1060
|
let r = e[t === "" ? "default" : t];
|
|
1061
|
-
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
1061
|
+
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : mn(e, n)) : !1;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function vn(e, t) {
|
|
1064
1064
|
let n = e.shadowRoot;
|
|
1065
1065
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1068
|
-
let i = n ?
|
|
1069
|
-
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
1070
|
-
let a =
|
|
1071
|
-
return a ?
|
|
1067
|
+
function yn(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r = !1 } = {}) {
|
|
1068
|
+
let i = n ? vn(e, t) : null;
|
|
1069
|
+
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : mn(e, r));
|
|
1070
|
+
let a = gn(e);
|
|
1071
|
+
return a ? _n(a, t, r) : hn(e, t, r);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
let { host: r, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1073
|
+
function bn(e, t = {}) {
|
|
1074
|
+
let { host: r, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = pn(), l = i ?? D(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = S(d());
|
|
1075
1075
|
h(() => {
|
|
1076
1076
|
f.value = d();
|
|
1077
1077
|
});
|
|
@@ -1087,7 +1087,7 @@ function yn(e, t = {}) {
|
|
|
1087
1087
|
p.value = !1;
|
|
1088
1088
|
return;
|
|
1089
1089
|
}
|
|
1090
|
-
p.value =
|
|
1090
|
+
p.value = yn(t, e, {
|
|
1091
1091
|
useShadowSlot: o,
|
|
1092
1092
|
countWhitespaceTextInDefaultSlot: s
|
|
1093
1093
|
});
|
|
@@ -1118,17 +1118,17 @@ function yn(e, t = {}) {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
//#endregion
|
|
1120
1120
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
1121
|
-
var
|
|
1121
|
+
var xn = /* @__PURE__ */ new Set(), Sn = (e, t) => {
|
|
1122
1122
|
let n = t.root.value;
|
|
1123
1123
|
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
1124
|
-
},
|
|
1124
|
+
}, Cn = (e) => (v(() => xn.delete(e)), (t) => {
|
|
1125
1125
|
if (!t) {
|
|
1126
|
-
|
|
1126
|
+
xn.delete(e);
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
|
-
for (let t of [...
|
|
1130
|
-
|
|
1131
|
-
}),
|
|
1129
|
+
for (let t of [...xn]) t !== e && !Sn(t, e) && t.close() && xn.delete(t);
|
|
1130
|
+
xn.add(e);
|
|
1131
|
+
}), wn = ["popover"], Tn = "--pv-popover-v2-anchor", En = /* @__PURE__ */ s({
|
|
1132
1132
|
__name: "PvPopoverV2",
|
|
1133
1133
|
props: /* @__PURE__ */ d({
|
|
1134
1134
|
disableAutoPlacement: {
|
|
@@ -1200,17 +1200,17 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1200
1200
|
}),
|
|
1201
1201
|
emits: ["update:modelValue"],
|
|
1202
1202
|
setup(e) {
|
|
1203
|
-
let s = e, c = ee(e, "modelValue"), u = l(), d = typeof HTMLElement < "u" && u && "ce" in u && u.ce instanceof HTMLElement ? u.ce : void 0, { hasVueSlot: m, hasNativeSlot: h } =
|
|
1203
|
+
let s = e, c = ee(e, "modelValue"), u = l(), d = typeof HTMLElement < "u" && u && "ce" in u && u.ce instanceof HTMLElement ? u.ce : void 0, { hasVueSlot: m, hasNativeSlot: h } = bn("content", { host: d }), _ = n(() => d ? h.value : m.value), b = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1204
1204
|
"anchor-name: --pv-anchor",
|
|
1205
1205
|
"position-area: bottom",
|
|
1206
1206
|
"position-try-fallbacks: flip-block",
|
|
1207
1207
|
"position-visibility: anchors-visible",
|
|
1208
|
-
`anchor-scope: ${
|
|
1209
|
-
].every((e) => CSS.supports(e)), x = S(!1), w = S(null), T = S(null), D = S(null), k = S(null), A = n(() => s.hoverTarget && T.value?.closest(s.hoverTarget) || T.value), re =
|
|
1208
|
+
`anchor-scope: ${Tn}`
|
|
1209
|
+
].every((e) => CSS.supports(e)), x = S(!1), w = S(null), T = S(null), D = S(null), k = S(null), A = n(() => s.hoverTarget && T.value?.closest(s.hoverTarget) || T.value), re = fn(A), ie = fn(k), j = S(!1), ae = S(!1), oe = S(!1), se = Cn({
|
|
1210
1210
|
root: w,
|
|
1211
1211
|
floating: k,
|
|
1212
1212
|
hoverArea: n(() => s.hoverTarget ? A.value : null),
|
|
1213
|
-
close: () => s.disableClickOutsideToClose ? !1 : (
|
|
1213
|
+
close: () => s.disableClickOutsideToClose ? !1 : (_e(), !0)
|
|
1214
1214
|
}), ce = {
|
|
1215
1215
|
"top-center": "top",
|
|
1216
1216
|
"bottom-center": "bottom",
|
|
@@ -1265,12 +1265,12 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}, ue = n(() => s.showOnHover || s.disableClickOutsideToClose ? "manual" : "auto"), M = n(() => ({
|
|
1267
1267
|
width: "fit-content",
|
|
1268
|
-
...b ? { "anchor-scope":
|
|
1268
|
+
...b ? { "anchor-scope": Tn } : void 0,
|
|
1269
1269
|
...s.cssCustomProperties
|
|
1270
|
-
})), de = n(() => b ? { "anchor-name":
|
|
1270
|
+
})), de = n(() => b ? { "anchor-name": Tn } : void 0), fe = n(() => {
|
|
1271
1271
|
let e = le[s.position];
|
|
1272
1272
|
return {
|
|
1273
|
-
"position-anchor":
|
|
1273
|
+
"position-anchor": Tn,
|
|
1274
1274
|
"position-area": e.area,
|
|
1275
1275
|
"position-try-fallbacks": s.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1276
1276
|
[e.margin]: `${s.offset ?? 0}px`
|
|
@@ -1278,14 +1278,14 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1278
1278
|
}), N = () => {}, pe = () => ({});
|
|
1279
1279
|
if (!b) {
|
|
1280
1280
|
let e = [];
|
|
1281
|
-
s.disableAutoPlacement || e.push(
|
|
1282
|
-
let t =
|
|
1281
|
+
s.disableAutoPlacement || e.push(kt({ fallbackStrategy: "initialPlacement" })), s.offset && e.push(Ot(s.offset));
|
|
1282
|
+
let t = Bt(D, k, {
|
|
1283
1283
|
placement: ce[s.position],
|
|
1284
1284
|
strategy: s.positioningStrategy,
|
|
1285
1285
|
middleware: e
|
|
1286
1286
|
});
|
|
1287
1287
|
N = t.update, pe = () => t.floatingStyles.value;
|
|
1288
|
-
let r =
|
|
1288
|
+
let r = dn(D), i = /* @__PURE__ */ Qt(() => {
|
|
1289
1289
|
c.value && N();
|
|
1290
1290
|
}, 5);
|
|
1291
1291
|
O([
|
|
@@ -1293,7 +1293,7 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1293
1293
|
r.left,
|
|
1294
1294
|
r.width,
|
|
1295
1295
|
r.height
|
|
1296
|
-
], i),
|
|
1296
|
+
], i), an(w, () => {
|
|
1297
1297
|
s.disableClickOutsideToClose || I(!1);
|
|
1298
1298
|
}, { ignore: n(() => [
|
|
1299
1299
|
k.value,
|
|
@@ -1312,97 +1312,82 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1312
1312
|
he(), ge(), !(e && (s.disabled || !_.value)) && (e && s.delay > 0 && (s.showOnHover || !b) ? P = setTimeout(() => {
|
|
1313
1313
|
c.value = !0, P = void 0;
|
|
1314
1314
|
}, s.delay) : c.value = e);
|
|
1315
|
-
}, L = () => {
|
|
1316
|
-
he(), ge(), c.value = !1;
|
|
1317
1315
|
}, _e = () => {
|
|
1316
|
+
he(), ge(), c.value = !1;
|
|
1317
|
+
}, ve = () => {
|
|
1318
1318
|
let e = k.value;
|
|
1319
1319
|
!e || !x.value || !_.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1320
|
-
},
|
|
1320
|
+
}, ye = n(() => !!c.value && (ie.value || ae.value)), be = n(() => !s.showOnHover || oe.value ? !1 : s.disableInteractive ? re.value || j.value : re.value || j.value || ye.value);
|
|
1321
1321
|
O([
|
|
1322
1322
|
re,
|
|
1323
|
-
|
|
1324
|
-
|
|
1323
|
+
j,
|
|
1324
|
+
ae
|
|
1325
1325
|
], ([e, t, n]) => {
|
|
1326
|
-
!e && !t && !n && (
|
|
1326
|
+
!e && !t && !n && (oe.value = !1);
|
|
1327
1327
|
});
|
|
1328
|
-
let
|
|
1328
|
+
let xe = ({ target: e }) => {
|
|
1329
|
+
j.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1330
|
+
}, Se = ({ target: e }) => {
|
|
1329
1331
|
ae.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1330
|
-
}, xe = ({ target: e }) => {
|
|
1331
|
-
oe.value = !s.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1332
|
-
}, Se = () => {
|
|
1333
|
-
oe.value = !1;
|
|
1334
1332
|
}, Ce = () => {
|
|
1333
|
+
ae.value = !1;
|
|
1334
|
+
}, we = () => {
|
|
1335
1335
|
if (s.showOnHover) {
|
|
1336
1336
|
if (s.disableClickOutsideToClose) return;
|
|
1337
1337
|
if (!c.value && !P && s.enableClickToggle) {
|
|
1338
|
-
|
|
1338
|
+
oe.value = !1, I(!0);
|
|
1339
1339
|
return;
|
|
1340
1340
|
}
|
|
1341
|
-
|
|
1341
|
+
oe.value = !0, _e();
|
|
1342
1342
|
return;
|
|
1343
1343
|
}
|
|
1344
1344
|
I(P ? !1 : !c.value);
|
|
1345
|
-
},
|
|
1345
|
+
}, Te = (e) => {
|
|
1346
1346
|
let t = e.newState === "open";
|
|
1347
1347
|
c.value !== t && (c.value = t);
|
|
1348
|
-
},
|
|
1348
|
+
}, Ee = (e) => {
|
|
1349
1349
|
b && ue.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), I(!1));
|
|
1350
|
-
}, Ee = (e) => e ? Array.from(e.querySelectorAll("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [], De = n(() => s.useTeleport && !b && s.showOnHover && !s.disabled), Oe = (e) => {
|
|
1351
|
-
if (!De.value || e.key !== "Tab" || e.shiftKey || !c.value) return;
|
|
1352
|
-
let [t] = Ee(k.value);
|
|
1353
|
-
t && (e.preventDefault(), oe.value = !0, t.focus());
|
|
1354
|
-
}, ke = (e) => {
|
|
1355
|
-
if (!De.value) return;
|
|
1356
|
-
let [t] = Ee(T.value);
|
|
1357
|
-
if (e.key === "Escape") {
|
|
1358
|
-
e.preventDefault(), e.stopPropagation(), j.value = !0, L(), t?.focus();
|
|
1359
|
-
return;
|
|
1360
|
-
}
|
|
1361
|
-
if (e.key !== "Tab") return;
|
|
1362
|
-
let n = Ee(k.value);
|
|
1363
|
-
e.shiftKey && document.activeElement === n[0] ? (e.preventDefault(), t?.focus()) : !e.shiftKey && document.activeElement === n[n.length - 1] && (j.value = !0, L(), t?.focus());
|
|
1364
1350
|
};
|
|
1365
1351
|
return O(c, async (e) => {
|
|
1366
1352
|
if (s.showOnHover && s.enableGroupSync && se(!!e), !b) {
|
|
1367
1353
|
e && N();
|
|
1368
1354
|
return;
|
|
1369
1355
|
}
|
|
1370
|
-
await f(),
|
|
1371
|
-
}), O(
|
|
1356
|
+
await f(), ve();
|
|
1357
|
+
}), O(be, (e) => {
|
|
1372
1358
|
if (s.showOnHover) {
|
|
1373
1359
|
if (e) {
|
|
1374
1360
|
I(!0);
|
|
1375
1361
|
return;
|
|
1376
1362
|
}
|
|
1377
1363
|
he(), s.closeDelay > 0 ? (ge(), F = setTimeout(() => {
|
|
1378
|
-
F = void 0,
|
|
1364
|
+
F = void 0, be.value || I(!1);
|
|
1379
1365
|
}, s.closeDelay)) : I(!1);
|
|
1380
1366
|
}
|
|
1381
1367
|
}), O(_, (e) => {
|
|
1382
|
-
e ? b && c.value && f(
|
|
1368
|
+
e ? b && c.value && f(ve) : _e();
|
|
1383
1369
|
}), g(() => {
|
|
1384
|
-
D.value = T.value, x.value = !0, c.value && f(() => b ?
|
|
1370
|
+
D.value = T.value, x.value = !0, c.value && f(() => b ? ve() : N());
|
|
1385
1371
|
}), v(() => {
|
|
1386
1372
|
he(), ge();
|
|
1387
1373
|
}), O(() => s.disabled, (e) => {
|
|
1388
1374
|
if (!e) {
|
|
1389
|
-
|
|
1375
|
+
be.value && I(!0);
|
|
1390
1376
|
return;
|
|
1391
1377
|
}
|
|
1392
|
-
|
|
1378
|
+
j.value &&= !1, ae.value &&= !1, I(!1);
|
|
1393
1379
|
}), (n, l) => (y(), a("div", {
|
|
1394
1380
|
ref_key: "root",
|
|
1395
1381
|
ref: w,
|
|
1396
1382
|
style: p(M.value),
|
|
1397
|
-
onKeydown:
|
|
1383
|
+
onKeydown: Ee
|
|
1398
1384
|
}, [o("div", {
|
|
1399
1385
|
ref_key: "triggerWrapper",
|
|
1400
1386
|
ref: T,
|
|
1401
1387
|
style: p(de.value),
|
|
1402
|
-
onClick:
|
|
1403
|
-
onFocusin:
|
|
1404
|
-
onFocusout: l[0] ||= (e) =>
|
|
1405
|
-
onKeydown: Oe
|
|
1388
|
+
onClick: we,
|
|
1389
|
+
onFocusin: xe,
|
|
1390
|
+
onFocusout: l[0] ||= (e) => j.value = !1
|
|
1406
1391
|
}, [C(n.$slots, "trigger")], 36), x.value && E(b) && _.value ? (y(), a("div", {
|
|
1407
1392
|
key: 0,
|
|
1408
1393
|
ref_key: "floating",
|
|
@@ -1410,10 +1395,10 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1410
1395
|
class: "pv-floating pv-floating-native",
|
|
1411
1396
|
popover: ue.value,
|
|
1412
1397
|
style: p(fe.value),
|
|
1413
|
-
onToggle:
|
|
1414
|
-
onFocusin:
|
|
1415
|
-
onFocusout:
|
|
1416
|
-
}, [e.disabled ? i("v-if", !0) : C(n.$slots, "content", { key: 0 })], 44,
|
|
1398
|
+
onToggle: Te,
|
|
1399
|
+
onFocusin: Se,
|
|
1400
|
+
onFocusout: Ce
|
|
1401
|
+
}, [e.disabled ? i("v-if", !0) : C(n.$slots, "content", { key: 0 })], 44, wn)) : _.value ? (y(), r(t, {
|
|
1417
1402
|
key: 1,
|
|
1418
1403
|
to: e.teleportLocation,
|
|
1419
1404
|
disabled: !s.useTeleport || e.disabled
|
|
@@ -1422,51 +1407,50 @@ var bn = /* @__PURE__ */ new Set(), xn = (e, t) => {
|
|
|
1422
1407
|
ref: k,
|
|
1423
1408
|
class: "pv-floating",
|
|
1424
1409
|
style: p(me.value),
|
|
1425
|
-
onFocusin:
|
|
1426
|
-
onFocusout:
|
|
1427
|
-
onKeydown: ke
|
|
1410
|
+
onFocusin: Se,
|
|
1411
|
+
onFocusout: Ce
|
|
1428
1412
|
}, [C(n.$slots, "content")], 36), [[te, c.value]])], 8, ["to", "disabled"])) : i("v-if", !0)], 36));
|
|
1429
1413
|
}
|
|
1430
|
-
}),
|
|
1414
|
+
}), Dn = Object.defineProperty, On = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, jn = (e, t, n) => t in e ? Dn(e, t, {
|
|
1431
1415
|
enumerable: !0,
|
|
1432
1416
|
configurable: !0,
|
|
1433
1417
|
writable: !0,
|
|
1434
1418
|
value: n
|
|
1435
|
-
}) : e[t] = n,
|
|
1436
|
-
for (var n in t ||= {})
|
|
1437
|
-
if (
|
|
1419
|
+
}) : e[t] = n, Mn = (e, t) => {
|
|
1420
|
+
for (var n in t ||= {}) kn.call(t, n) && jn(e, n, t[n]);
|
|
1421
|
+
if (On) for (var n of On(t)) An.call(t, n) && jn(e, n, t[n]);
|
|
1438
1422
|
return e;
|
|
1439
1423
|
};
|
|
1440
|
-
function
|
|
1424
|
+
function Nn(e) {
|
|
1441
1425
|
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
1442
1426
|
}
|
|
1443
|
-
function
|
|
1427
|
+
function Pn(e) {
|
|
1444
1428
|
return typeof e == "function" && "call" in e && "apply" in e;
|
|
1445
1429
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return !
|
|
1430
|
+
function K(e) {
|
|
1431
|
+
return !Nn(e);
|
|
1448
1432
|
}
|
|
1449
|
-
function
|
|
1433
|
+
function Fn(e, t = !0) {
|
|
1450
1434
|
return e instanceof Object && e.constructor === Object && (t || Object.keys(e).length !== 0);
|
|
1451
1435
|
}
|
|
1452
|
-
function
|
|
1453
|
-
let n =
|
|
1436
|
+
function In(e = {}, t = {}) {
|
|
1437
|
+
let n = Mn({}, e);
|
|
1454
1438
|
return Object.keys(t).forEach((r) => {
|
|
1455
1439
|
let i = r;
|
|
1456
|
-
|
|
1440
|
+
Fn(t[i]) && i in e && Fn(e[i]) ? n[i] = In(e[i], t[i]) : n[i] = t[i];
|
|
1457
1441
|
}), n;
|
|
1458
1442
|
}
|
|
1459
|
-
function
|
|
1460
|
-
return e.reduce((e, t, n) => n === 0 ? t :
|
|
1443
|
+
function Ln(...e) {
|
|
1444
|
+
return e.reduce((e, t, n) => n === 0 ? t : In(e, t), {});
|
|
1461
1445
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return
|
|
1446
|
+
function q(e, ...t) {
|
|
1447
|
+
return Pn(e) ? e(...t) : e;
|
|
1464
1448
|
}
|
|
1465
1449
|
function Rn(e, t = !0) {
|
|
1466
1450
|
return typeof e == "string" && (t || e !== "");
|
|
1467
1451
|
}
|
|
1468
1452
|
function zn(e) {
|
|
1469
|
-
return
|
|
1453
|
+
return K(e) && !isNaN(e);
|
|
1470
1454
|
}
|
|
1471
1455
|
function Bn(e, t) {
|
|
1472
1456
|
if (t) {
|
|
@@ -1476,7 +1460,7 @@ function Bn(e, t) {
|
|
|
1476
1460
|
return !1;
|
|
1477
1461
|
}
|
|
1478
1462
|
function Vn(...e) {
|
|
1479
|
-
return
|
|
1463
|
+
return Ln(...e);
|
|
1480
1464
|
}
|
|
1481
1465
|
function Hn(e) {
|
|
1482
1466
|
return e && e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":").trim();
|
|
@@ -1595,7 +1579,7 @@ function cr(e) {
|
|
|
1595
1579
|
return Rn(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
1596
1580
|
}
|
|
1597
1581
|
function lr(e) {
|
|
1598
|
-
return
|
|
1582
|
+
return Fn(e) && e.hasOwnProperty("$value") && e.hasOwnProperty("$type") ? e.$value : e;
|
|
1599
1583
|
}
|
|
1600
1584
|
function ur(e) {
|
|
1601
1585
|
return e.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
@@ -1614,7 +1598,7 @@ function mr(e, t = "", n = "", r = [], i) {
|
|
|
1614
1598
|
let t = e.trim();
|
|
1615
1599
|
if (pr(t)) return;
|
|
1616
1600
|
if (Bn(t, ar)) {
|
|
1617
|
-
let e = t.replaceAll(ar, (e) => `var(${fr(n, Un(e.replace(/{|}/g, "").split(".").filter((e) => !r.some((t) => Bn(e, t))).join("-")))}${
|
|
1601
|
+
let e = t.replaceAll(ar, (e) => `var(${fr(n, Un(e.replace(/{|}/g, "").split(".").filter((e) => !r.some((t) => Bn(e, t))).join("-")))}${K(i) ? `, ${i}` : ""})`);
|
|
1618
1602
|
return Bn(e.replace(sr, "0"), or) ? `calc(${e})` : e;
|
|
1619
1603
|
}
|
|
1620
1604
|
return t;
|
|
@@ -1663,12 +1647,12 @@ function _r(e, t) {
|
|
|
1663
1647
|
var vr = (...e) => yr($.getTheme(), ...e), yr = (e = {}, t, n, r) => {
|
|
1664
1648
|
if (t) {
|
|
1665
1649
|
let { variable: i, options: a } = $.defaults || {}, { prefix: o, transform: s } = e?.options || a || {}, c = Bn(t, ar) ? t : `{${t}}`;
|
|
1666
|
-
return r === "value" ||
|
|
1650
|
+
return r === "value" || Nn(r) && s === "strict" ? $.getTokenValue(t) : mr(c, void 0, o, [i.excludedKeyRegex], n);
|
|
1667
1651
|
}
|
|
1668
1652
|
return "";
|
|
1669
1653
|
};
|
|
1670
1654
|
function br(e, ...t) {
|
|
1671
|
-
return e instanceof Array ? _r(e.reduce((e, n, r) => e + n + (
|
|
1655
|
+
return e instanceof Array ? _r(e.reduce((e, n, r) => e + n + (q(t[r], { dt: vr }) ?? ""), ""), vr) : q(e, { dt: vr });
|
|
1672
1656
|
}
|
|
1673
1657
|
function xr(e, t = {}) {
|
|
1674
1658
|
let n = $.defaults.variable, { prefix: r = n.prefix, selector: i = n.selector, excludedKeyRegex: a = n.excludedKeyRegex } = t, o = [], s = [], c = [{
|
|
@@ -1679,7 +1663,7 @@ function xr(e, t = {}) {
|
|
|
1679
1663
|
let { node: e, path: t } = c.pop();
|
|
1680
1664
|
for (let n in e) {
|
|
1681
1665
|
let i = e[n], l = lr(i), u = Bn(n, a) ? dr(t) : dr(t, Un(n));
|
|
1682
|
-
if (
|
|
1666
|
+
if (Fn(l)) c.push({
|
|
1683
1667
|
node: l,
|
|
1684
1668
|
path: u
|
|
1685
1669
|
});
|
|
@@ -1759,17 +1743,17 @@ var Q = {
|
|
|
1759
1743
|
},
|
|
1760
1744
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
1761
1745
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
1762
|
-
if (
|
|
1763
|
-
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 =
|
|
1764
|
-
s = this.transformCSS(e, re, "light", "variable", o, r, i), c = ie, l = `${this.transformCSS(e, `${
|
|
1765
|
-
...
|
|
1746
|
+
if (K(a) && o.transform !== "strict") {
|
|
1747
|
+
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 = K(t) ? this._toVariables({ primitive: t }, o) : {}, D = K(_) ? this._toVariables({ semantic: _ }, o) : {}, te = K(C) ? this._toVariables({ light: C }, o) : {}, O = K(S) ? this._toVariables({ dark: S }, o) : {}, k = K(b) ? this._toVariables({ semantic: b }, o) : {}, ne = K(E) ? this._toVariables({ light: E }, o) : {}, A = K(T) ? this._toVariables({ dark: T }, o) : {}, [re, ie] = [ee.declarations ?? "", ee.tokens], [j, ae] = [D.declarations ?? "", D.tokens || []], [oe, se] = [te.declarations ?? "", te.tokens || []], [ce, le] = [O.declarations ?? "", O.tokens || []], [ue, M] = [k.declarations ?? "", k.tokens || []], [de, fe] = [ne.declarations ?? "", ne.tokens || []], [N, pe] = [A.declarations ?? "", A.tokens || []];
|
|
1748
|
+
s = this.transformCSS(e, re, "light", "variable", o, r, i), c = ie, l = `${this.transformCSS(e, `${j}${oe}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ce}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
1749
|
+
...ae,
|
|
1766
1750
|
...se,
|
|
1767
1751
|
...le
|
|
1768
1752
|
])], d = `${this.transformCSS(e, `${ue}${de}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${N}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
1769
1753
|
...M,
|
|
1770
1754
|
...fe,
|
|
1771
1755
|
...pe
|
|
1772
|
-
])], p =
|
|
1756
|
+
])], p = q(a.css, { dt: vr });
|
|
1773
1757
|
}
|
|
1774
1758
|
return {
|
|
1775
1759
|
primitive: {
|
|
@@ -1789,17 +1773,17 @@ var Q = {
|
|
|
1789
1773
|
},
|
|
1790
1774
|
getPreset({ name: e = "", preset: t = {}, options: n, params: r, set: i, defaults: a, selector: o }) {
|
|
1791
1775
|
let s, c, l;
|
|
1792
|
-
if (
|
|
1776
|
+
if (K(t) && n.transform !== "strict") {
|
|
1793
1777
|
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m = X(u, [
|
|
1794
1778
|
"colorScheme",
|
|
1795
1779
|
"extend",
|
|
1796
1780
|
"css"
|
|
1797
|
-
]), 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 =
|
|
1781
|
+
]), 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 = K(m) ? this._toVariables({ [r]: Y(Y({}, m), _) }, n) : {}, T = K(b) ? this._toVariables({ [r]: Y(Y({}, b), C) }, n) : {}, E = K(y) ? this._toVariables({ [r]: Y(Y({}, y), S) }, n) : {}, [ee, D] = [w.declarations ?? "", w.tokens || []], [te, O] = [T.declarations ?? "", T.tokens || []], [k, ne] = [E.declarations ?? "", E.tokens || []];
|
|
1798
1782
|
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([
|
|
1799
1783
|
...D,
|
|
1800
1784
|
...O,
|
|
1801
1785
|
...ne
|
|
1802
|
-
])], l =
|
|
1786
|
+
])], l = q(p, { dt: vr });
|
|
1803
1787
|
}
|
|
1804
1788
|
return {
|
|
1805
1789
|
css: s,
|
|
@@ -1837,7 +1821,7 @@ var Q = {
|
|
|
1837
1821
|
},
|
|
1838
1822
|
getLayerOrder(e, t = {}, n, r) {
|
|
1839
1823
|
let { cssLayer: i } = t;
|
|
1840
|
-
return i ? `@layer ${
|
|
1824
|
+
return i ? `@layer ${q(i.order || i.name || "primeui", n)}` : "";
|
|
1841
1825
|
},
|
|
1842
1826
|
getCommonStyleSheet({ name: e = "", theme: t = {}, params: n, props: r = {}, set: i, defaults: a }) {
|
|
1843
1827
|
let o = this.getCommon({
|
|
@@ -1848,7 +1832,7 @@ var Q = {
|
|
|
1848
1832
|
defaults: a
|
|
1849
1833
|
}), s = Object.entries(r).reduce((e, [t, n]) => e.push(`${t}="${n}"`) && e, []).join(" ");
|
|
1850
1834
|
return Object.entries(o || {}).reduce((e, [t, n]) => {
|
|
1851
|
-
if (
|
|
1835
|
+
if (Fn(n) && Object.hasOwn(n, "css")) {
|
|
1852
1836
|
let r = Hn(n.css), i = `${t}-variables`;
|
|
1853
1837
|
e.push(`<style type="text/css" data-primevue-style-id="${i}" ${s}>${r}</style>`);
|
|
1854
1838
|
}
|
|
@@ -1884,7 +1868,7 @@ var Q = {
|
|
|
1884
1868
|
});
|
|
1885
1869
|
r = or.test(i.replace(sr, "0")) ? `calc(${i})` : i;
|
|
1886
1870
|
}
|
|
1887
|
-
return
|
|
1871
|
+
return Nn(t.binding) && delete t.binding, n.pop(), {
|
|
1888
1872
|
colorScheme: e,
|
|
1889
1873
|
path: this.path,
|
|
1890
1874
|
paths: t,
|
|
@@ -1893,7 +1877,7 @@ var Q = {
|
|
|
1893
1877
|
}, o = (e, n, r) => {
|
|
1894
1878
|
Object.entries(e).forEach(([e, s]) => {
|
|
1895
1879
|
let c = Bn(e, t.variable.excludedKeyRegex) ? n : n ? `${n}.${cr(e)}` : cr(e), l = r ? `${r}.${e}` : e;
|
|
1896
|
-
|
|
1880
|
+
Fn(s) ? o(s, c, l) : (i[c] || (i[c] = {
|
|
1897
1881
|
paths: [],
|
|
1898
1882
|
computed: (e, t = {}, n = []) => {
|
|
1899
1883
|
if (i[c].paths.length === 1) return i[c].paths[0].computed(i[c].paths[0].scheme, t.binding, n);
|
|
@@ -1922,24 +1906,24 @@ var Q = {
|
|
|
1922
1906
|
}, void 0);
|
|
1923
1907
|
},
|
|
1924
1908
|
getSelectorRule(e, t, n, r) {
|
|
1925
|
-
return n === "class" || n === "attr" ? gr(
|
|
1909
|
+
return n === "class" || n === "attr" ? gr(K(t) ? `${e}${t},${e} ${t}` : e, r) : gr(e, gr(t ?? ":root,:host", r));
|
|
1926
1910
|
},
|
|
1927
1911
|
transformCSS(e, t, n, r, i = {}, a, o, s) {
|
|
1928
|
-
if (
|
|
1912
|
+
if (K(t)) {
|
|
1929
1913
|
let { cssLayer: c } = i;
|
|
1930
1914
|
if (r !== "style") {
|
|
1931
1915
|
let e = this.getColorSchemeOption(i, o);
|
|
1932
|
-
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (
|
|
1916
|
+
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (K(r) && (e += r.includes("[CSS]") ? r.replace("[CSS]", t) : this.getSelectorRule(r, s, n, t)), e), "") : gr(s ?? ":root,:host", t);
|
|
1933
1917
|
}
|
|
1934
1918
|
if (c) {
|
|
1935
1919
|
let n = {
|
|
1936
1920
|
name: "primeui",
|
|
1937
1921
|
order: "primeui"
|
|
1938
1922
|
};
|
|
1939
|
-
|
|
1923
|
+
Fn(c) && (n.name = q(c.name, {
|
|
1940
1924
|
name: e,
|
|
1941
1925
|
type: r
|
|
1942
|
-
})),
|
|
1926
|
+
})), K(n.name) && (t = gr(`@layer ${n.name}`, t), a?.layerNames(n.name));
|
|
1943
1927
|
}
|
|
1944
1928
|
return t;
|
|
1945
1929
|
}
|
|
@@ -2313,7 +2297,7 @@ var Yr = {
|
|
|
2313
2297
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(e) {
|
|
2314
2298
|
return e;
|
|
2315
2299
|
})(br(Nr ||= Jr(["", ""]), e));
|
|
2316
|
-
return
|
|
2300
|
+
return K(n) ? jr(Hn(n), Wr({ name: this.name }, t)) : {};
|
|
2317
2301
|
},
|
|
2318
2302
|
loadCSS: function() {
|
|
2319
2303
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2344,7 +2328,7 @@ var Yr = {
|
|
|
2344
2328
|
getStyleSheet: function() {
|
|
2345
2329
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2346
2330
|
if (this.css) {
|
|
2347
|
-
var n =
|
|
2331
|
+
var n = q(this.css, { dt: vr }) || "", r = Hn(br(Fr ||= Jr([
|
|
2348
2332
|
"",
|
|
2349
2333
|
"",
|
|
2350
2334
|
""
|
|
@@ -2352,7 +2336,7 @@ var Yr = {
|
|
|
2352
2336
|
var n = Lr(t, 2), r = n[0], i = n[1];
|
|
2353
2337
|
return e.push(`${r}="${i}"`) && e;
|
|
2354
2338
|
}, []).join(" ");
|
|
2355
|
-
return
|
|
2339
|
+
return K(r) ? `<style type="text/css" data-primevue-style-id="${this.name}" ${i}>${r}</style>` : "";
|
|
2356
2340
|
}
|
|
2357
2341
|
return "";
|
|
2358
2342
|
},
|
|
@@ -2363,11 +2347,11 @@ var Yr = {
|
|
|
2363
2347
|
getThemeStyleSheet: function(e) {
|
|
2364
2348
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [$.getStyleSheet(this.name, e, t)];
|
|
2365
2349
|
if (this.style) {
|
|
2366
|
-
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i = br(Ir ||= Jr(["", ""]),
|
|
2350
|
+
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i = br(Ir ||= Jr(["", ""]), q(this.style, { dt: vr })), a = Hn($.transformCSS(r, i)), o = Object.entries(t).reduce(function(e, t) {
|
|
2367
2351
|
var n = Lr(t, 2), r = n[0], i = n[1];
|
|
2368
2352
|
return e.push(`${r}="${i}"`) && e;
|
|
2369
2353
|
}, []).join(" ");
|
|
2370
|
-
|
|
2354
|
+
K(a) && n.push(`<style type="text/css" data-primevue-style-id="${r}" ${o}>${a}</style>`);
|
|
2371
2355
|
}
|
|
2372
2356
|
return n.join("");
|
|
2373
2357
|
},
|
|
@@ -7620,5 +7604,5 @@ function _o(e) {
|
|
|
7620
7604
|
}
|
|
7621
7605
|
//#endregion
|
|
7622
7606
|
//#region .build-temp-pv-popover-v2.ts
|
|
7623
|
-
_o(
|
|
7607
|
+
_o(En);
|
|
7624
7608
|
//#endregion
|