@turquoisehealth/pit-viper 2.224.1-dev.2 → 2.224.1-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +79 -1
- package/_site/assets/css/pit-viper-consumer.css +79 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +68 -1
- package/_site/assets/css/pit-viper-v2.css +118 -1
- package/_site/assets/css/pit-viper.css +79 -1
- 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-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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-reasoning-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-step-list-stats.html +4950 -0
- 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/PvReasoning/PvReasoning.vue.d.ts +11 -3
- package/pv-components/dist/vue/ai/components/ai/PvReasoning/types.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/ai/PvStepList/PvStepList.vue.d.ts +7 -0
- package/pv-components/dist/vue/ai/components/ai/PvStepList/types.d.ts +42 -0
- package/pv-components/dist/vue/ai/components/ai/index.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/types.d.ts +2 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +490 -327
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/types.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1091 -983
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvQueryBuilderInput/PvQueryBuilderInput.vue.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +13 -8
- 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 +8 -4
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +8 -4
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +8 -4
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +197 -193
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +8 -4
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +8 -4
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +8 -4
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +16 -8
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +640 -466
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +230 -226
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +8 -4
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +1431 -1322
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +213 -209
- package/pv-components/dist/web/components/pv-step-list/pv-step-list.js +6309 -0
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +8 -4
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +8 -4
- package/pv-components/dist/web/pv-components.iife.js +39 -39
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -8,13 +8,13 @@ var ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, ue = Objec
|
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
10
|
return t || ce(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
-
},
|
|
11
|
+
}, pe = (e, t, n, r) => {
|
|
12
12
|
if (t && typeof t == "object" || typeof t == "function") for (var i = ue(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !de.call(e, s) && s !== n && ce(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
14
|
enumerable: !(r = le(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, me = (e, t, n) => (pe(e, t, "default"), n && pe(n, t, "default")), he = /* @__PURE__ */ d({
|
|
18
18
|
__name: "PvSpinner",
|
|
19
19
|
props: {
|
|
20
20
|
size: {
|
|
@@ -44,20 +44,20 @@ var ce = Object.defineProperty, le = Object.getOwnPropertyDescriptor, ue = Objec
|
|
|
44
44
|
style: b({ "--size": t[e.size] })
|
|
45
45
|
}, null, 6));
|
|
46
46
|
}
|
|
47
|
-
}),
|
|
47
|
+
}), ge = ["ghost"], F = {
|
|
48
48
|
md: "pv-button-small",
|
|
49
49
|
lg: void 0,
|
|
50
50
|
xl: "pv-button-large"
|
|
51
|
-
},
|
|
51
|
+
}, _e = (e) => e == null || !F.hasOwnProperty(e) ? null : F[e] || null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/web-components/utils.ts
|
|
54
|
-
function
|
|
54
|
+
function ve() {
|
|
55
55
|
let e = O(!1), t = p()?.root || {};
|
|
56
56
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/base/baseProps.ts
|
|
60
|
-
var
|
|
60
|
+
var ye = [
|
|
61
61
|
void 0,
|
|
62
62
|
10,
|
|
63
63
|
12,
|
|
@@ -65,24 +65,24 @@ var ve = [
|
|
|
65
65
|
24,
|
|
66
66
|
32,
|
|
67
67
|
64
|
|
68
|
-
],
|
|
68
|
+
], be = ["xlink:href"], xe = /* @__PURE__ */ d({
|
|
69
69
|
__name: "PvIcon",
|
|
70
70
|
props: {
|
|
71
71
|
name: { type: String },
|
|
72
72
|
size: { type: null }
|
|
73
73
|
},
|
|
74
74
|
setup(e) {
|
|
75
|
-
let t = e, n =
|
|
75
|
+
let t = e, n = ve(), i = O(null), a = r(() => ({
|
|
76
76
|
"pv-icon": !0,
|
|
77
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
77
|
+
[`pv-icon-${t.size}`]: t.size != null && ye.includes(t.size)
|
|
78
78
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
79
79
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (E(), o("svg", {
|
|
80
80
|
"data-testid": "pv-icon",
|
|
81
81
|
"aria-hidden": "true",
|
|
82
82
|
class: v(a.value)
|
|
83
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
83
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, be)], 2));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), Se = /* @__PURE__ */ d({
|
|
86
86
|
__name: "PvCounterBadge",
|
|
87
87
|
props: {
|
|
88
88
|
maxValue: {
|
|
@@ -119,14 +119,14 @@ var ve = [
|
|
|
119
119
|
"data-testid": "pv-counter-badge"
|
|
120
120
|
}, M(n.value), 3));
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), Ce = ".pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}", we = (e, t) => {
|
|
123
123
|
let n = e.__vccOpts || e;
|
|
124
124
|
for (let [e, r] of t) n[e] = r;
|
|
125
125
|
return n;
|
|
126
|
-
},
|
|
126
|
+
}, Te = /* @__PURE__ */ we(Se, [["styles", [Ce]], ["__scopeId", "data-v-013a5d76"]]), Ee = ["disabled", "aria-label"], De = {
|
|
127
127
|
key: 2,
|
|
128
128
|
"data-testid": "pv-button-label"
|
|
129
|
-
},
|
|
129
|
+
}, Oe = /* @__PURE__ */ d({
|
|
130
130
|
__name: "PvButton",
|
|
131
131
|
props: {
|
|
132
132
|
variant: {
|
|
@@ -159,8 +159,8 @@ var ve = [
|
|
|
159
159
|
setup(e) {
|
|
160
160
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
161
161
|
let e = [];
|
|
162
|
-
n.inverse &&
|
|
163
|
-
let t =
|
|
162
|
+
n.inverse && ge.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
163
|
+
let t = _e(n.size);
|
|
164
164
|
return t && e.push(t), e;
|
|
165
165
|
});
|
|
166
166
|
return (n, r) => (E(), o("button", {
|
|
@@ -169,99 +169,99 @@ var ve = [
|
|
|
169
169
|
disabled: e.disabled,
|
|
170
170
|
"aria-label": s.value,
|
|
171
171
|
"data-testid": "pv-button"
|
|
172
|
-
}, [e.loading ? (E(), i(
|
|
172
|
+
}, [e.loading ? (E(), i(he, {
|
|
173
173
|
key: 0,
|
|
174
174
|
size: "sm"
|
|
175
175
|
})) : (E(), o(t, { key: 1 }, [
|
|
176
|
-
e.leftCounterBadge ? (E(), i(
|
|
176
|
+
e.leftCounterBadge ? (E(), i(Te, {
|
|
177
177
|
key: 0,
|
|
178
178
|
value: e.leftCounterBadge,
|
|
179
179
|
variant: "tertiary"
|
|
180
180
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
181
|
-
e.leftIcon ? (E(), i(
|
|
181
|
+
e.leftIcon ? (E(), i(xe, {
|
|
182
182
|
key: 1,
|
|
183
183
|
name: e.leftIcon,
|
|
184
184
|
"data-testid": "pv-button-left-icon"
|
|
185
185
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
186
|
-
e.label ? (E(), o("span",
|
|
187
|
-
e.rightCounterBadge ? (E(), i(
|
|
186
|
+
e.label ? (E(), o("span", De, M(e.label), 1)) : a("v-if", !0),
|
|
187
|
+
e.rightCounterBadge ? (E(), i(Te, {
|
|
188
188
|
key: 3,
|
|
189
189
|
value: e.rightCounterBadge,
|
|
190
190
|
variant: "tertiary"
|
|
191
191
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
192
|
-
e.rightIcon ? (E(), i(
|
|
192
|
+
e.rightIcon ? (E(), i(xe, {
|
|
193
193
|
key: 4,
|
|
194
194
|
name: e.rightIcon,
|
|
195
195
|
"data-testid": "pv-button-right-icon"
|
|
196
196
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
197
|
-
], 64))], 10,
|
|
197
|
+
], 64))], 10, Ee));
|
|
198
198
|
}
|
|
199
|
-
}),
|
|
199
|
+
}), ke = Math.min, Ae = Math.max, je = Math.round, I = (e) => ({
|
|
200
200
|
x: e,
|
|
201
201
|
y: e
|
|
202
|
-
}),
|
|
202
|
+
}), Me = {
|
|
203
203
|
left: "right",
|
|
204
204
|
right: "left",
|
|
205
205
|
bottom: "top",
|
|
206
206
|
top: "bottom"
|
|
207
207
|
};
|
|
208
|
-
function
|
|
208
|
+
function Ne(e, t) {
|
|
209
209
|
return typeof e == "function" ? e(t) : e;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Pe(e) {
|
|
212
212
|
return e.split("-")[0];
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Fe(e) {
|
|
215
215
|
return e.split("-")[1];
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Ie(e) {
|
|
218
218
|
return e === "x" ? "y" : "x";
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Le(e) {
|
|
221
221
|
return e === "y" ? "height" : "width";
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Re(e) {
|
|
224
224
|
let t = e[0];
|
|
225
225
|
return t === "t" || t === "b" ? "y" : "x";
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
227
|
+
function ze(e) {
|
|
228
|
+
return Ie(Re(e));
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Be(e, t, n) {
|
|
231
231
|
n === void 0 && (n = !1);
|
|
232
|
-
let r =
|
|
233
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
232
|
+
let r = Fe(e), i = ze(e), a = Le(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
233
|
+
return t.reference[a] > t.floating[a] && (o = Ye(o)), [o, Ye(o)];
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t =
|
|
235
|
+
function Ve(e) {
|
|
236
|
+
let t = Ye(e);
|
|
237
237
|
return [
|
|
238
|
-
|
|
238
|
+
He(e),
|
|
239
239
|
t,
|
|
240
|
-
|
|
240
|
+
He(t)
|
|
241
241
|
];
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function He(e) {
|
|
244
244
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
function
|
|
246
|
+
var Ue = ["left", "right"], We = ["right", "left"], Ge = ["top", "bottom"], Ke = ["bottom", "top"];
|
|
247
|
+
function qe(e, t, n) {
|
|
248
248
|
switch (e) {
|
|
249
249
|
case "top":
|
|
250
|
-
case "bottom": return n ? t ?
|
|
250
|
+
case "bottom": return n ? t ? We : Ue : t ? Ue : We;
|
|
251
251
|
case "left":
|
|
252
|
-
case "right": return t ?
|
|
252
|
+
case "right": return t ? Ge : Ke;
|
|
253
253
|
default: return [];
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
let i =
|
|
258
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
259
|
-
}
|
|
260
|
-
function Je(e) {
|
|
261
|
-
let t = Ne(e);
|
|
262
|
-
return je[t] + e.slice(t.length);
|
|
256
|
+
function Je(e, t, n, r) {
|
|
257
|
+
let i = Fe(e), a = qe(Pe(e), n === "start", r);
|
|
258
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(He)))), a;
|
|
263
259
|
}
|
|
264
260
|
function Ye(e) {
|
|
261
|
+
let t = Pe(e);
|
|
262
|
+
return Me[t] + e.slice(t.length);
|
|
263
|
+
}
|
|
264
|
+
function Xe(e) {
|
|
265
265
|
return {
|
|
266
266
|
top: 0,
|
|
267
267
|
right: 0,
|
|
@@ -270,15 +270,15 @@ function Ye(e) {
|
|
|
270
270
|
...e
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function Ze(e) {
|
|
274
274
|
return typeof e == "number" ? {
|
|
275
275
|
top: e,
|
|
276
276
|
right: e,
|
|
277
277
|
bottom: e,
|
|
278
278
|
left: e
|
|
279
|
-
} :
|
|
279
|
+
} : Xe(e);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Qe(e) {
|
|
282
282
|
let { x: t, y: n, width: r, height: i } = e;
|
|
283
283
|
return {
|
|
284
284
|
width: r,
|
|
@@ -293,8 +293,8 @@ function Ze(e) {
|
|
|
293
293
|
}
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
296
|
-
function
|
|
297
|
-
let { reference: r, floating: i } = e, a =
|
|
296
|
+
function $e(e, t, n) {
|
|
297
|
+
let { reference: r, floating: i } = e, a = Re(t), o = ze(t), s = Le(o), c = Pe(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
298
298
|
switch (c) {
|
|
299
299
|
case "top":
|
|
300
300
|
p = {
|
|
@@ -325,7 +325,7 @@ function Qe(e, t, n) {
|
|
|
325
325
|
y: r.y
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
switch (
|
|
328
|
+
switch (Fe(t)) {
|
|
329
329
|
case "start":
|
|
330
330
|
p[o] -= f * (n && l ? -1 : 1);
|
|
331
331
|
break;
|
|
@@ -335,9 +335,9 @@ function Qe(e, t, n) {
|
|
|
335
335
|
}
|
|
336
336
|
return p;
|
|
337
337
|
}
|
|
338
|
-
async function
|
|
338
|
+
async function et(e, t) {
|
|
339
339
|
t === void 0 && (t = {});
|
|
340
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
340
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Ne(t, e), p = Ze(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Qe(await i.getClippingRect({
|
|
341
341
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
342
342
|
boundary: c,
|
|
343
343
|
rootBoundary: l,
|
|
@@ -350,7 +350,7 @@ async function $e(e, t) {
|
|
|
350
350
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
351
351
|
x: 1,
|
|
352
352
|
y: 1
|
|
353
|
-
}, y =
|
|
353
|
+
}, y = Qe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
354
354
|
elements: o,
|
|
355
355
|
rect: g,
|
|
356
356
|
offsetParent: _,
|
|
@@ -363,15 +363,15 @@ async function $e(e, t) {
|
|
|
363
363
|
right: (y.right - h.right + p.right) / v.x
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
var
|
|
366
|
+
var tt = 50, nt = async (e, t, n) => {
|
|
367
367
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
368
368
|
...o,
|
|
369
|
-
detectOverflow:
|
|
369
|
+
detectOverflow: et
|
|
370
370
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
371
371
|
reference: e,
|
|
372
372
|
floating: t,
|
|
373
373
|
strategy: i
|
|
374
|
-
}), { x: u, y: d } =
|
|
374
|
+
}), { x: u, y: d } = $e(l, r, c), f = r, p = 0, m = {};
|
|
375
375
|
for (let n = 0; n < a.length; n++) {
|
|
376
376
|
let h = a[n];
|
|
377
377
|
if (!h) continue;
|
|
@@ -392,11 +392,11 @@ var et = 50, tt = async (e, t, n) => {
|
|
|
392
392
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
393
393
|
...m[g],
|
|
394
394
|
...b
|
|
395
|
-
}, x && p <
|
|
395
|
+
}, x && p < tt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
396
396
|
reference: e,
|
|
397
397
|
floating: t,
|
|
398
398
|
strategy: i
|
|
399
|
-
}) : x.rects), {x: u, y: d} =
|
|
399
|
+
}) : x.rects), {x: u, y: d} = $e(l, f, c)), n = -1);
|
|
400
400
|
}
|
|
401
401
|
return {
|
|
402
402
|
x: u,
|
|
@@ -405,19 +405,19 @@ var et = 50, tt = async (e, t, n) => {
|
|
|
405
405
|
strategy: i,
|
|
406
406
|
middlewareData: m
|
|
407
407
|
};
|
|
408
|
-
},
|
|
408
|
+
}, rt = function(e) {
|
|
409
409
|
return e === void 0 && (e = {}), {
|
|
410
410
|
name: "flip",
|
|
411
411
|
options: e,
|
|
412
412
|
async fn(t) {
|
|
413
413
|
var n;
|
|
414
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
414
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Ne(e, t);
|
|
415
415
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
416
|
-
let g =
|
|
417
|
-
!d && x && b.push(...
|
|
416
|
+
let g = Pe(r), _ = Re(o), v = Pe(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [Ye(o)] : Ve(o)), x = p !== "none";
|
|
417
|
+
!d && x && b.push(...Je(o, m, p, y));
|
|
418
418
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
419
419
|
if (l && w.push(C[g]), u) {
|
|
420
|
-
let e =
|
|
420
|
+
let e = Be(r, a, y);
|
|
421
421
|
w.push(C[e[0]], C[e[1]]);
|
|
422
422
|
}
|
|
423
423
|
if (T = [...T, {
|
|
@@ -425,7 +425,7 @@ var et = 50, tt = async (e, t, n) => {
|
|
|
425
425
|
overflows: w
|
|
426
426
|
}], !w.every((e) => e <= 0)) {
|
|
427
427
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
428
|
-
if (t && (!(u === "alignment" && _ !==
|
|
428
|
+
if (t && (!(u === "alignment" && _ !== Re(t)) || T.every((e) => Re(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
429
429
|
data: {
|
|
430
430
|
index: e,
|
|
431
431
|
overflows: T
|
|
@@ -437,7 +437,7 @@ var et = 50, tt = async (e, t, n) => {
|
|
|
437
437
|
case "bestFit": {
|
|
438
438
|
let e = T.filter((e) => {
|
|
439
439
|
if (x) {
|
|
440
|
-
let t =
|
|
440
|
+
let t = Re(e.placement);
|
|
441
441
|
return t === _ || t === "y";
|
|
442
442
|
}
|
|
443
443
|
return !0;
|
|
@@ -454,9 +454,9 @@ var et = 50, tt = async (e, t, n) => {
|
|
|
454
454
|
return {};
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
|
-
},
|
|
458
|
-
async function
|
|
459
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
457
|
+
}, it = /* @__PURE__ */ new Set(["left", "top"]);
|
|
458
|
+
async function at(e, t) {
|
|
459
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Pe(n), s = Fe(n), c = Re(n) === "y", l = it.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ne(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
460
460
|
mainAxis: d,
|
|
461
461
|
crossAxis: 0,
|
|
462
462
|
alignmentAxis: null
|
|
@@ -473,13 +473,13 @@ async function it(e, t) {
|
|
|
473
473
|
y: p * u
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var ot = function(e) {
|
|
477
477
|
return e === void 0 && (e = 0), {
|
|
478
478
|
name: "offset",
|
|
479
479
|
options: e,
|
|
480
480
|
async fn(t) {
|
|
481
481
|
var n;
|
|
482
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
482
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await at(t, e);
|
|
483
483
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
484
484
|
x: r + s.x,
|
|
485
485
|
y: i + s.y,
|
|
@@ -493,39 +493,39 @@ var at = function(e) {
|
|
|
493
493
|
};
|
|
494
494
|
//#endregion
|
|
495
495
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
496
|
-
function
|
|
496
|
+
function st() {
|
|
497
497
|
return typeof window < "u";
|
|
498
498
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
499
|
+
function ct(e) {
|
|
500
|
+
return lt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function L(e) {
|
|
503
503
|
var t;
|
|
504
504
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
return ((
|
|
508
|
-
}
|
|
509
|
-
function ct(e) {
|
|
510
|
-
return ot() ? e instanceof Node || e instanceof R(e).Node : !1;
|
|
506
|
+
function R(e) {
|
|
507
|
+
return ((lt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
511
508
|
}
|
|
512
|
-
function
|
|
513
|
-
return
|
|
509
|
+
function lt(e) {
|
|
510
|
+
return st() ? e instanceof Node || e instanceof L(e).Node : !1;
|
|
514
511
|
}
|
|
515
|
-
function
|
|
516
|
-
return
|
|
512
|
+
function z(e) {
|
|
513
|
+
return st() ? e instanceof Element || e instanceof L(e).Element : !1;
|
|
517
514
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
515
|
+
function B(e) {
|
|
516
|
+
return st() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
|
|
520
517
|
}
|
|
521
518
|
function ut(e) {
|
|
522
|
-
|
|
523
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
519
|
+
return !st() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
|
|
524
520
|
}
|
|
525
521
|
function dt(e) {
|
|
526
|
-
|
|
522
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = V(e);
|
|
523
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
527
524
|
}
|
|
528
525
|
function ft(e) {
|
|
526
|
+
return /^(table|td|th)$/.test(ct(e));
|
|
527
|
+
}
|
|
528
|
+
function pt(e) {
|
|
529
529
|
try {
|
|
530
530
|
if (e.matches(":popover-open")) return !0;
|
|
531
531
|
} catch {}
|
|
@@ -535,31 +535,31 @@ function ft(e) {
|
|
|
535
535
|
return !1;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
var
|
|
539
|
-
function _t(e) {
|
|
540
|
-
let t = B(e) ? H(e) : e;
|
|
541
|
-
return ht(t.transform) || ht(t.translate) || ht(t.scale) || ht(t.rotate) || ht(t.perspective) || !yt() && (ht(t.backdropFilter) || ht(t.filter)) || pt.test(t.willChange || "") || mt.test(t.contain || "");
|
|
542
|
-
}
|
|
538
|
+
var mt = /transform|translate|scale|rotate|perspective|filter/, ht = /paint|layout|strict|content/, gt = (e) => !!e && e !== "none", _t;
|
|
543
539
|
function vt(e) {
|
|
544
|
-
let t =
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
540
|
+
let t = z(e) ? V(e) : e;
|
|
541
|
+
return gt(t.transform) || gt(t.translate) || gt(t.scale) || gt(t.rotate) || gt(t.perspective) || !bt() && (gt(t.backdropFilter) || gt(t.filter)) || mt.test(t.willChange || "") || ht.test(t.contain || "");
|
|
542
|
+
}
|
|
543
|
+
function yt(e) {
|
|
544
|
+
let t = H(e);
|
|
545
|
+
for (; B(t) && !xt(t);) {
|
|
546
|
+
if (vt(t)) return t;
|
|
547
|
+
if (pt(t)) return null;
|
|
548
|
+
t = H(t);
|
|
549
549
|
}
|
|
550
550
|
return null;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function bt() {
|
|
553
|
+
return _t ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), _t;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return /^(html|body|#document)$/.test(
|
|
555
|
+
function xt(e) {
|
|
556
|
+
return /^(html|body|#document)$/.test(ct(e));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
558
|
+
function V(e) {
|
|
559
|
+
return L(e).getComputedStyle(e);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return
|
|
561
|
+
function St(e) {
|
|
562
|
+
return z(e) ? {
|
|
563
563
|
scrollLeft: e.scrollLeft,
|
|
564
564
|
scrollTop: e.scrollTop
|
|
565
565
|
} : {
|
|
@@ -567,21 +567,21 @@ function xt(e) {
|
|
|
567
567
|
scrollTop: e.scrollY
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
if (
|
|
572
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
573
|
-
return
|
|
570
|
+
function H(e) {
|
|
571
|
+
if (ct(e) === "html") return e;
|
|
572
|
+
let t = e.assignedSlot || e.parentNode || ut(e) && e.host || R(e);
|
|
573
|
+
return ut(t) ? t.host : t;
|
|
574
574
|
}
|
|
575
575
|
function Ct(e) {
|
|
576
|
-
let t =
|
|
577
|
-
return
|
|
576
|
+
let t = H(e);
|
|
577
|
+
return xt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : B(t) && dt(t) ? t : Ct(t);
|
|
578
578
|
}
|
|
579
579
|
function wt(e, t, n) {
|
|
580
580
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
581
|
-
let r = Ct(e), i = r === e.ownerDocument?.body, a =
|
|
581
|
+
let r = Ct(e), i = r === e.ownerDocument?.body, a = L(r);
|
|
582
582
|
if (i) {
|
|
583
583
|
let e = Tt(a);
|
|
584
|
-
return t.concat(a, a.visualViewport || [],
|
|
584
|
+
return t.concat(a, a.visualViewport || [], dt(r) ? r : [], e && n ? wt(e) : []);
|
|
585
585
|
} else return t.concat(r, wt(r, [], n));
|
|
586
586
|
}
|
|
587
587
|
function Tt(e) {
|
|
@@ -590,7 +590,7 @@ function Tt(e) {
|
|
|
590
590
|
//#endregion
|
|
591
591
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
592
592
|
function Et(e) {
|
|
593
|
-
let t =
|
|
593
|
+
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 = je(n) !== a || je(r) !== o;
|
|
594
594
|
return s && (n = a, r = o), {
|
|
595
595
|
width: n,
|
|
596
596
|
height: r,
|
|
@@ -598,41 +598,41 @@ function Et(e) {
|
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
function Dt(e) {
|
|
601
|
-
return
|
|
601
|
+
return z(e) ? e : e.contextElement;
|
|
602
602
|
}
|
|
603
603
|
function Ot(e) {
|
|
604
604
|
let t = Dt(e);
|
|
605
|
-
if (!
|
|
606
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Et(t), o = (a ?
|
|
605
|
+
if (!B(t)) return I(1);
|
|
606
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Et(t), o = (a ? je(n.width) : n.width) / r, s = (a ? je(n.height) : n.height) / i;
|
|
607
607
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
608
608
|
x: o,
|
|
609
609
|
y: s
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
var kt = /* @__PURE__ */
|
|
612
|
+
var kt = /* @__PURE__ */ I(0);
|
|
613
613
|
function At(e) {
|
|
614
|
-
let t =
|
|
615
|
-
return !
|
|
614
|
+
let t = L(e);
|
|
615
|
+
return !bt() || !t.visualViewport ? kt : {
|
|
616
616
|
x: t.visualViewport.offsetLeft,
|
|
617
617
|
y: t.visualViewport.offsetTop
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
620
|
function jt(e, t, n) {
|
|
621
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
621
|
+
return t === void 0 && (t = !1), !n || t && n !== L(e) ? !1 : t;
|
|
622
622
|
}
|
|
623
623
|
function Mt(e, t, n, r) {
|
|
624
624
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
625
|
-
let i = e.getBoundingClientRect(), a = Dt(e), o =
|
|
626
|
-
t && (r ?
|
|
627
|
-
let s = jt(a, n, r) ? At(a) :
|
|
625
|
+
let i = e.getBoundingClientRect(), a = Dt(e), o = I(1);
|
|
626
|
+
t && (r ? z(r) && (o = Ot(r)) : o = Ot(e));
|
|
627
|
+
let s = jt(a, n, r) ? At(a) : I(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
628
628
|
if (a) {
|
|
629
|
-
let e =
|
|
629
|
+
let e = L(a), t = r && z(r) ? L(r) : r, n = e, i = Tt(n);
|
|
630
630
|
for (; i && r && t !== n;) {
|
|
631
|
-
let e = Ot(i), t = i.getBoundingClientRect(), r =
|
|
632
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
631
|
+
let e = Ot(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;
|
|
632
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = L(i), i = Tt(n);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
return
|
|
635
|
+
return Qe({
|
|
636
636
|
width: u,
|
|
637
637
|
height: d,
|
|
638
638
|
x: c,
|
|
@@ -640,8 +640,8 @@ function Mt(e, t, n, r) {
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
function Nt(e, t) {
|
|
643
|
-
let n =
|
|
644
|
-
return t ? t.left + n : Mt(
|
|
643
|
+
let n = St(e).scrollLeft;
|
|
644
|
+
return t ? t.left + n : Mt(R(e)).left + n;
|
|
645
645
|
}
|
|
646
646
|
function Pt(e, t) {
|
|
647
647
|
let n = e.getBoundingClientRect();
|
|
@@ -651,17 +651,17 @@ function Pt(e, t) {
|
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
653
|
function Ft(e) {
|
|
654
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
654
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = R(r), s = t ? pt(t.floating) : !1;
|
|
655
655
|
if (r === o || s && a) return n;
|
|
656
656
|
let c = {
|
|
657
657
|
scrollLeft: 0,
|
|
658
658
|
scrollTop: 0
|
|
659
|
-
}, l =
|
|
660
|
-
if ((d || !d && !a) && ((
|
|
659
|
+
}, l = I(1), u = I(0), d = B(r);
|
|
660
|
+
if ((d || !d && !a) && ((ct(r) !== "body" || dt(o)) && (c = St(r)), d)) {
|
|
661
661
|
let e = Mt(r);
|
|
662
662
|
l = Ot(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
663
663
|
}
|
|
664
|
-
let f = o && !d && !a ? Pt(o, c) :
|
|
664
|
+
let f = o && !d && !a ? Pt(o, c) : I(0);
|
|
665
665
|
return {
|
|
666
666
|
width: n.width * l.x,
|
|
667
667
|
height: n.height * l.y,
|
|
@@ -673,8 +673,8 @@ function It(e) {
|
|
|
673
673
|
return Array.from(e.getClientRects());
|
|
674
674
|
}
|
|
675
675
|
function Lt(e) {
|
|
676
|
-
let t =
|
|
677
|
-
return
|
|
676
|
+
let t = R(e), n = St(e), r = e.ownerDocument.body, i = Ae(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Ae(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Nt(e), s = -n.scrollTop;
|
|
677
|
+
return V(r).direction === "rtl" && (o += Ae(t.clientWidth, r.clientWidth) - i), {
|
|
678
678
|
width: i,
|
|
679
679
|
height: a,
|
|
680
680
|
x: o,
|
|
@@ -683,10 +683,10 @@ function Lt(e) {
|
|
|
683
683
|
}
|
|
684
684
|
var Rt = 25;
|
|
685
685
|
function zt(e, t) {
|
|
686
|
-
let n =
|
|
686
|
+
let n = L(e), r = R(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
687
687
|
if (i) {
|
|
688
688
|
a = i.width, o = i.height;
|
|
689
|
-
let e =
|
|
689
|
+
let e = bt();
|
|
690
690
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
691
691
|
}
|
|
692
692
|
let l = Nt(r);
|
|
@@ -702,7 +702,7 @@ function zt(e, t) {
|
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
function Bt(e, t) {
|
|
705
|
-
let n = Mt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a =
|
|
705
|
+
let n = Mt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = B(e) ? Ot(e) : I(1);
|
|
706
706
|
return {
|
|
707
707
|
width: e.clientWidth * a.x,
|
|
708
708
|
height: e.clientHeight * a.y,
|
|
@@ -713,8 +713,8 @@ function Bt(e, t) {
|
|
|
713
713
|
function Vt(e, t, n) {
|
|
714
714
|
let r;
|
|
715
715
|
if (t === "viewport") r = zt(e, n);
|
|
716
|
-
else if (t === "document") r = Lt(
|
|
717
|
-
else if (
|
|
716
|
+
else if (t === "document") r = Lt(R(e));
|
|
717
|
+
else if (z(t)) r = Bt(t, n);
|
|
718
718
|
else {
|
|
719
719
|
let n = At(e);
|
|
720
720
|
r = {
|
|
@@ -724,27 +724,27 @@ function Vt(e, t, n) {
|
|
|
724
724
|
height: t.height
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
return
|
|
727
|
+
return Qe(r);
|
|
728
728
|
}
|
|
729
729
|
function Ht(e, t) {
|
|
730
|
-
let n =
|
|
731
|
-
return n === t || !
|
|
730
|
+
let n = H(e);
|
|
731
|
+
return n === t || !z(n) || xt(n) ? !1 : V(n).position === "fixed" || Ht(n, t);
|
|
732
732
|
}
|
|
733
733
|
function Ut(e, t) {
|
|
734
734
|
let n = t.get(e);
|
|
735
735
|
if (n) return n;
|
|
736
|
-
let r = wt(e, [], !1).filter((e) =>
|
|
737
|
-
for (;
|
|
738
|
-
let t =
|
|
739
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
736
|
+
let r = wt(e, [], !1).filter((e) => z(e) && ct(e) !== "body"), i = null, a = V(e).position === "fixed", o = a ? H(e) : e;
|
|
737
|
+
for (; z(o) && !xt(o);) {
|
|
738
|
+
let t = V(o), n = vt(o);
|
|
739
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || dt(o) && !n && Ht(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = H(o);
|
|
740
740
|
}
|
|
741
741
|
return t.set(e, r), r;
|
|
742
742
|
}
|
|
743
743
|
function Wt(e) {
|
|
744
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
744
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? pt(t) ? [] : Ut(t, this._c) : [].concat(n), r], o = Vt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
745
745
|
for (let e = 1; e < a.length; e++) {
|
|
746
746
|
let n = Vt(t, a[e], i);
|
|
747
|
-
s =
|
|
747
|
+
s = Ae(n.top, s), c = ke(n.right, c), l = ke(n.bottom, l), u = Ae(n.left, u);
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
width: c - u,
|
|
@@ -761,19 +761,19 @@ function Gt(e) {
|
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
function Kt(e, t, n) {
|
|
764
|
-
let r =
|
|
764
|
+
let r = B(t), i = R(t), a = n === "fixed", o = Mt(e, !0, a, t), s = {
|
|
765
765
|
scrollLeft: 0,
|
|
766
766
|
scrollTop: 0
|
|
767
|
-
}, c =
|
|
767
|
+
}, c = I(0);
|
|
768
768
|
function l() {
|
|
769
769
|
c.x = Nt(i);
|
|
770
770
|
}
|
|
771
|
-
if (r || !r && !a) if ((
|
|
771
|
+
if (r || !r && !a) if ((ct(t) !== "body" || dt(i)) && (s = St(t)), r) {
|
|
772
772
|
let e = Mt(t, !0, a, t);
|
|
773
773
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
774
774
|
} else i && l();
|
|
775
775
|
a && !r && i && l();
|
|
776
|
-
let u = i && !r && !a ? Pt(i, s) :
|
|
776
|
+
let u = i && !r && !a ? Pt(i, s) : I(0);
|
|
777
777
|
return {
|
|
778
778
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
779
779
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -782,28 +782,28 @@ function Kt(e, t, n) {
|
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
784
|
function qt(e) {
|
|
785
|
-
return
|
|
785
|
+
return V(e).position === "static";
|
|
786
786
|
}
|
|
787
787
|
function Jt(e, t) {
|
|
788
|
-
if (!
|
|
788
|
+
if (!B(e) || V(e).position === "fixed") return null;
|
|
789
789
|
if (t) return t(e);
|
|
790
790
|
let n = e.offsetParent;
|
|
791
|
-
return
|
|
791
|
+
return R(e) === n && (n = n.ownerDocument.body), n;
|
|
792
792
|
}
|
|
793
793
|
function Yt(e, t) {
|
|
794
|
-
let n =
|
|
795
|
-
if (
|
|
796
|
-
if (!
|
|
797
|
-
let t =
|
|
798
|
-
for (; t && !
|
|
799
|
-
if (
|
|
800
|
-
t =
|
|
794
|
+
let n = L(e);
|
|
795
|
+
if (pt(e)) return n;
|
|
796
|
+
if (!B(e)) {
|
|
797
|
+
let t = H(e);
|
|
798
|
+
for (; t && !xt(t);) {
|
|
799
|
+
if (z(t) && !qt(t)) return t;
|
|
800
|
+
t = H(t);
|
|
801
801
|
}
|
|
802
802
|
return n;
|
|
803
803
|
}
|
|
804
804
|
let r = Jt(e, t);
|
|
805
|
-
for (; r &&
|
|
806
|
-
return r &&
|
|
805
|
+
for (; r && ft(r) && qt(r);) r = Jt(r, t);
|
|
806
|
+
return r && xt(r) && qt(r) && !vt(r) ? n : r || yt(e) || n;
|
|
807
807
|
}
|
|
808
808
|
var Xt = async function(e) {
|
|
809
809
|
let t = this.getOffsetParent || Yt, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -818,20 +818,20 @@ var Xt = async function(e) {
|
|
|
818
818
|
};
|
|
819
819
|
};
|
|
820
820
|
function Zt(e) {
|
|
821
|
-
return
|
|
821
|
+
return V(e).direction === "rtl";
|
|
822
822
|
}
|
|
823
823
|
var Qt = {
|
|
824
824
|
convertOffsetParentRelativeRectToViewportRelativeRect: Ft,
|
|
825
|
-
getDocumentElement:
|
|
825
|
+
getDocumentElement: R,
|
|
826
826
|
getClippingRect: Wt,
|
|
827
827
|
getOffsetParent: Yt,
|
|
828
828
|
getElementRects: Xt,
|
|
829
829
|
getClientRects: It,
|
|
830
830
|
getDimensions: Gt,
|
|
831
831
|
getScale: Ot,
|
|
832
|
-
isElement:
|
|
832
|
+
isElement: z,
|
|
833
833
|
isRTL: Zt
|
|
834
|
-
}, $t =
|
|
834
|
+
}, $t = ot, en = rt, tn = (e, t, n) => {
|
|
835
835
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
836
836
|
platform: Qt,
|
|
837
837
|
...n
|
|
@@ -839,7 +839,7 @@ var Qt = {
|
|
|
839
839
|
...i.platform,
|
|
840
840
|
_c: r
|
|
841
841
|
};
|
|
842
|
-
return
|
|
842
|
+
return nt(e, t, {
|
|
843
843
|
...i,
|
|
844
844
|
platform: a
|
|
845
845
|
});
|
|
@@ -853,7 +853,7 @@ var Qt = {
|
|
|
853
853
|
set: () => an
|
|
854
854
|
});
|
|
855
855
|
import * as nn from "vue";
|
|
856
|
-
|
|
856
|
+
me(U, nn);
|
|
857
857
|
function rn() {}
|
|
858
858
|
function an(e, t, n) {
|
|
859
859
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -873,7 +873,7 @@ function sn(e) {
|
|
|
873
873
|
function cn(e) {
|
|
874
874
|
if (sn(e)) {
|
|
875
875
|
let t = e.$el;
|
|
876
|
-
return
|
|
876
|
+
return lt(t) && ct(t) === "#comment" ? null : t;
|
|
877
877
|
}
|
|
878
878
|
return e;
|
|
879
879
|
}
|
|
@@ -1232,7 +1232,7 @@ function Bn(e, t) {
|
|
|
1232
1232
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1233
1233
|
}
|
|
1234
1234
|
function Vn(e, t = {}) {
|
|
1235
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1235
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = ve(), l = i ?? re(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = O(d());
|
|
1236
1236
|
S(() => {
|
|
1237
1237
|
f.value = d();
|
|
1238
1238
|
});
|
|
@@ -1288,7 +1288,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1288
1288
|
}
|
|
1289
1289
|
for (let t of [...Hn]) t !== e && !Un(t, e) && t.close() && Hn.delete(t);
|
|
1290
1290
|
Hn.add(e);
|
|
1291
|
-
}), Gn = ["popover"], Kn = "--pv-popover-v2-anchor", qn = /* @__PURE__ */
|
|
1291
|
+
}), Gn = ["popover"], Kn = "--pv-popover-v2-anchor", qn = /* @__PURE__ */ we(/* @__PURE__ */ d({
|
|
1292
1292
|
__name: "PvPopoverV2",
|
|
1293
1293
|
props: /* @__PURE__ */ g({
|
|
1294
1294
|
disableAutoPlacement: {
|
|
@@ -1363,7 +1363,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1363
1363
|
`anchor-scope: ${Kn}`
|
|
1364
1364
|
].every((e) => CSS.supports(e)), g = O(!1), v = O(null), y = O(null), x = O(null), S = O(null), w = Ln(y), ee = Ln(S), D = O(!1), k = O(!1), j = O(!1), M = Wn({
|
|
1365
1365
|
root: v,
|
|
1366
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1366
|
+
close: () => t.disableClickOutsideToClose ? !1 : (_e(), !0)
|
|
1367
1367
|
}), N = {
|
|
1368
1368
|
"top-center": "top",
|
|
1369
1369
|
"bottom-center": "bottom",
|
|
@@ -1447,7 +1447,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1447
1447
|
i.width,
|
|
1448
1448
|
i.height
|
|
1449
1449
|
], a), An(v, () => {
|
|
1450
|
-
t.disableClickOutsideToClose ||
|
|
1450
|
+
t.disableClickOutsideToClose || F(!1);
|
|
1451
1451
|
}, { ignore: r(() => [
|
|
1452
1452
|
S.value,
|
|
1453
1453
|
".p-datepicker-panel",
|
|
@@ -1457,20 +1457,20 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1457
1457
|
let fe = r(() => ({
|
|
1458
1458
|
...de(),
|
|
1459
1459
|
zIndex: t.zIndex
|
|
1460
|
-
})),
|
|
1461
|
-
F && clearTimeout(F), F = void 0;
|
|
1462
|
-
}, he = () => {
|
|
1460
|
+
})), pe, me, he = () => {
|
|
1463
1461
|
pe && clearTimeout(pe), pe = void 0;
|
|
1464
|
-
}, I = (e) => {
|
|
1465
|
-
me(), he(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? F = setTimeout(() => {
|
|
1466
|
-
c.value = !0, F = void 0;
|
|
1467
|
-
}, t.delay) : c.value = e);
|
|
1468
1462
|
}, ge = () => {
|
|
1469
|
-
me
|
|
1463
|
+
me && clearTimeout(me), me = void 0;
|
|
1464
|
+
}, F = (e) => {
|
|
1465
|
+
he(), ge(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? pe = setTimeout(() => {
|
|
1466
|
+
c.value = !0, pe = void 0;
|
|
1467
|
+
}, t.delay) : c.value = e);
|
|
1470
1468
|
}, _e = () => {
|
|
1469
|
+
he(), ge(), c.value = !1;
|
|
1470
|
+
}, ve = () => {
|
|
1471
1471
|
let e = S.value;
|
|
1472
1472
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1473
|
-
},
|
|
1473
|
+
}, ye = r(() => !t.showOnHover || j.value ? !1 : t.disableInteractive ? w.value || D.value : w.value || ee.value || D.value || k.value);
|
|
1474
1474
|
P([
|
|
1475
1475
|
w,
|
|
1476
1476
|
D,
|
|
@@ -1478,59 +1478,63 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1478
1478
|
], ([e, t, n]) => {
|
|
1479
1479
|
!e && !t && !n && (j.value = !1);
|
|
1480
1480
|
});
|
|
1481
|
-
let
|
|
1482
|
-
D.value = e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1483
|
-
},
|
|
1484
|
-
k.value = e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1485
|
-
}, xe = () => {
|
|
1486
|
-
k.value = !1;
|
|
1481
|
+
let be = ({ target: e }) => {
|
|
1482
|
+
D.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1483
|
+
}, xe = ({ target: e }) => {
|
|
1484
|
+
k.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1487
1485
|
}, Se = () => {
|
|
1486
|
+
k.value = !1;
|
|
1487
|
+
}, Ce = () => {
|
|
1488
1488
|
if (t.showOnHover) {
|
|
1489
|
-
t.disableClickOutsideToClose || (j.value = !0,
|
|
1489
|
+
t.disableClickOutsideToClose || (j.value = !0, _e());
|
|
1490
1490
|
return;
|
|
1491
1491
|
}
|
|
1492
|
-
|
|
1493
|
-
},
|
|
1492
|
+
F(pe ? !1 : !c.value);
|
|
1493
|
+
}, we = (e) => {
|
|
1494
1494
|
let t = e.newState === "open";
|
|
1495
1495
|
c.value !== t && (c.value = t);
|
|
1496
|
-
},
|
|
1497
|
-
h && ae.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1496
|
+
}, Te = (e) => {
|
|
1497
|
+
h && ae.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), F(!1));
|
|
1498
1498
|
};
|
|
1499
1499
|
return P(c, async (e) => {
|
|
1500
1500
|
if (t.showOnHover && t.enableGroupSync && M(!!e), !h) {
|
|
1501
1501
|
e && ue();
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
|
-
await _(),
|
|
1505
|
-
}), P(
|
|
1504
|
+
await _(), ve();
|
|
1505
|
+
}), P(ye, (e) => {
|
|
1506
1506
|
if (t.showOnHover) {
|
|
1507
1507
|
if (e) {
|
|
1508
|
-
|
|
1508
|
+
F(!0);
|
|
1509
1509
|
return;
|
|
1510
1510
|
}
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
}, t.closeDelay)) :
|
|
1511
|
+
he(), t.closeDelay > 0 ? (ge(), me = setTimeout(() => {
|
|
1512
|
+
me = void 0, ye.value || F(!1);
|
|
1513
|
+
}, t.closeDelay)) : F(!1);
|
|
1514
1514
|
}
|
|
1515
1515
|
}), P(m, (e) => {
|
|
1516
|
-
e ? h && c.value && _(
|
|
1516
|
+
e ? h && c.value && _(ve) : _e();
|
|
1517
1517
|
}), C(() => {
|
|
1518
|
-
x.value = y.value, g.value = !0, c.value && _(() => h ?
|
|
1518
|
+
x.value = y.value, g.value = !0, c.value && _(() => h ? ve() : ue());
|
|
1519
1519
|
}), T(() => {
|
|
1520
|
-
|
|
1520
|
+
he(), ge();
|
|
1521
1521
|
}), P(() => t.disabled, (e) => {
|
|
1522
|
-
|
|
1522
|
+
if (!e) {
|
|
1523
|
+
ye.value && F(!0);
|
|
1524
|
+
return;
|
|
1525
|
+
}
|
|
1526
|
+
D.value &&= !1, k.value &&= !1, F(!1);
|
|
1523
1527
|
}), (r, l) => (E(), o("div", {
|
|
1524
1528
|
ref_key: "root",
|
|
1525
1529
|
ref: v,
|
|
1526
1530
|
style: b(oe.value),
|
|
1527
|
-
onKeydown:
|
|
1531
|
+
onKeydown: Te
|
|
1528
1532
|
}, [s("div", {
|
|
1529
1533
|
ref_key: "triggerWrapper",
|
|
1530
1534
|
ref: y,
|
|
1531
1535
|
style: b(ce.value),
|
|
1532
|
-
onClick:
|
|
1533
|
-
onFocusin:
|
|
1536
|
+
onClick: Ce,
|
|
1537
|
+
onFocusin: be,
|
|
1534
1538
|
onFocusout: l[0] ||= (e) => D.value = !1
|
|
1535
1539
|
}, [A(r.$slots, "trigger")], 36), g.value && te(h) && m.value ? (E(), o("div", {
|
|
1536
1540
|
key: 0,
|
|
@@ -1539,9 +1543,9 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1539
1543
|
class: "pv-floating pv-floating-native",
|
|
1540
1544
|
popover: ae.value,
|
|
1541
1545
|
style: b(le.value),
|
|
1542
|
-
onToggle:
|
|
1543
|
-
onFocusin:
|
|
1544
|
-
onFocusout:
|
|
1546
|
+
onToggle: we,
|
|
1547
|
+
onFocusin: xe,
|
|
1548
|
+
onFocusout: Se
|
|
1545
1549
|
}, [e.disabled ? a("v-if", !0) : A(r.$slots, "content", { key: 0 })], 44, Gn)) : m.value ? (E(), i(n, {
|
|
1546
1550
|
key: 1,
|
|
1547
1551
|
to: e.teleportLocation,
|
|
@@ -1551,11 +1555,11 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1551
1555
|
ref: S,
|
|
1552
1556
|
class: "pv-floating",
|
|
1553
1557
|
style: b(fe.value),
|
|
1554
|
-
onFocusin:
|
|
1555
|
-
onFocusout:
|
|
1558
|
+
onFocusin: xe,
|
|
1559
|
+
onFocusout: Se
|
|
1556
1560
|
}, [A(r.$slots, "content")], 36), [[ie, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1557
1561
|
}
|
|
1558
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1562
|
+
}), [["styles", [".pv-floating-native[data-v-e1e654f2]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-e1e654f2]>.pv-popover,.pv-floating-native>slot[name=content][data-v-e1e654f2]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-e1e654f2"]]), Jn = ["data-variant"], Yn = /* @__PURE__ */ d({
|
|
1559
1563
|
__name: "PvTooltipV2",
|
|
1560
1564
|
props: {
|
|
1561
1565
|
variant: {
|
|
@@ -1638,7 +1642,7 @@ var Hn = /* @__PURE__ */ new Set(), Un = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1638
1642
|
position: "bottom-right",
|
|
1639
1643
|
style: { width: "100%" }
|
|
1640
1644
|
}, c({
|
|
1641
|
-
trigger: oe(() => [u(
|
|
1645
|
+
trigger: oe(() => [u(Oe, {
|
|
1642
1646
|
class: v(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1643
1647
|
variant: "ghost",
|
|
1644
1648
|
label: e.label,
|