@konstructio/ui 0.1.2-alpha.65 → 0.1.2-alpha.67
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/dist/{DayPicker-PUEUVAST.js → DayPicker-CaeUXRCF.js} +475 -470
- package/dist/assets/icons/components/AlertOutline.d.ts +3 -0
- package/dist/assets/icons/components/AlertOutline.js +28 -0
- package/dist/assets/icons/components/index.d.ts +1 -0
- package/dist/assets/icons/components/index.js +126 -124
- package/dist/assets/icons/index.js +122 -120
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +51 -51
- package/dist/components/Command/Command.js +1 -1
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1 -1
- package/dist/components/Drawer/components/index.js +6 -6
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -17
- package/dist/components/ProgressBar/ProgressBar.js +38 -59
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +12 -28
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +3 -3
- package/dist/components/ProgressBar/ProgressBar.variants.js +23 -24
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/Spinner/Spinner.js +57 -0
- package/dist/components/Spinner/Spinner.types.d.ts +13 -0
- package/dist/components/Spinner/Spinner.variants.d.ts +6 -0
- package/dist/components/Spinner/Spinner.variants.js +54 -0
- package/dist/components/Switch/Switch.js +47 -47
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Toast/Toast.js +9 -9
- package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +5 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.js +83 -71
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +56 -53
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +2 -2
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +4 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +192 -108
- package/dist/components/VirtualizedTable/contexts/table.types.d.ts +4 -1
- package/dist/components/VirtualizedTable/events/index.d.ts +12 -0
- package/dist/components/VirtualizedTable/events/index.js +29 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +98 -91
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +122 -120
- package/dist/{index-DKfEnhKr.js → index--l0zux8V.js} +2 -2
- package/dist/{index-AV6ZtGhy.js → index-3fEdeexs.js} +1 -1
- package/dist/{index-CeZcoQDw.js → index-9a-FL_6D.js} +6 -6
- package/dist/{index-Dy59FQl5.js → index-BKMaItIC.js} +1 -1
- package/dist/{index-DtEcCIrM.js → index-BRXMsxSL.js} +1 -1
- package/dist/{index-DMb4KD0b.js → index-CESXsoMn.js} +1 -1
- package/dist/{index-BG8O18ZY.js → index-CJnS4BVW.js} +1 -1
- package/dist/{index-vcSp8YRZ.js → index-Cmf-IG4l.js} +10 -10
- package/dist/{index-Byr10W8m.js → index-DPcwqB8q.js} +618 -613
- package/dist/{index-BqhYevy7.js → index-Dd_ZmIqU.js} +19 -19
- package/dist/{index-D9SSJ6om.js → index-Dfq4O3b4.js} +3 -3
- package/dist/{index-gSPwC-1I.js → index-Jr0cra7i.js} +9 -9
- package/dist/{index-BlSRBdPy.js → index-URQGEGX7.js} +1 -1
- package/dist/index.js +142 -135
- package/dist/{libphonenumber-C9G59k5J.js → libphonenumber-aZ-2KWIf.js} +3 -3
- package/dist/package.json +21 -21
- package/dist/{proxy-BhEKW5n7.js → proxy-BIRlSMN_.js} +856 -851
- package/dist/styles.css +1 -1
- package/dist/useBreadcrumb-C_Wb2cXs.js +1435 -0
- package/dist/utils/index.js +514 -355
- package/package.json +21 -21
- package/dist/useBreadcrumb-vSs0pRo3.js +0 -1412
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import { useLayoutEffect as
|
|
3
|
-
import { P as
|
|
4
|
-
import { u as
|
|
5
|
-
import { D as
|
|
6
|
-
import { u as
|
|
7
|
-
import * as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { P as
|
|
12
|
-
const
|
|
2
|
+
import { useLayoutEffect as Wt } from "react";
|
|
3
|
+
import { P as ce, b as et, u as Ve, a as Bt, c as J } from "./index--l0zux8V.js";
|
|
4
|
+
import { u as ge } from "./index-DLcqcWxM.js";
|
|
5
|
+
import { D as Vt } from "./index-URQGEGX7.js";
|
|
6
|
+
import { u as zt } from "./index-BKMaItIC.js";
|
|
7
|
+
import * as jt from "react-dom";
|
|
8
|
+
import { jsx as O, Fragment as Yt, jsxs as Xt } from "react/jsx-runtime";
|
|
9
|
+
import { u as Gt } from "./index-0ioNhtNM.js";
|
|
10
|
+
import { u as qt } from "./index-BRXMsxSL.js";
|
|
11
|
+
import { P as Ut } from "./index-3fEdeexs.js";
|
|
12
|
+
const Kt = ["top", "right", "bottom", "left"], U = Math.min, $ = Math.max, de = Math.round, fe = Math.floor, j = (e) => ({
|
|
13
13
|
x: e,
|
|
14
14
|
y: e
|
|
15
|
-
}),
|
|
15
|
+
}), Zt = {
|
|
16
16
|
left: "right",
|
|
17
17
|
right: "left",
|
|
18
18
|
bottom: "top",
|
|
19
19
|
top: "bottom"
|
|
20
|
-
},
|
|
20
|
+
}, Jt = {
|
|
21
21
|
start: "end",
|
|
22
22
|
end: "start"
|
|
23
23
|
};
|
|
24
24
|
function Oe(e, t, n) {
|
|
25
|
-
return
|
|
25
|
+
return $(e, U(t, n));
|
|
26
26
|
}
|
|
27
27
|
function G(e, t) {
|
|
28
28
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -33,54 +33,54 @@ function q(e) {
|
|
|
33
33
|
function ne(e) {
|
|
34
34
|
return e.split("-")[1];
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function De(e) {
|
|
37
37
|
return e === "x" ? "y" : "x";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Me(e) {
|
|
40
40
|
return e === "y" ? "height" : "width";
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const Qt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
43
43
|
function z(e) {
|
|
44
|
-
return
|
|
44
|
+
return Qt.has(q(e)) ? "y" : "x";
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function _e(e) {
|
|
47
|
+
return De(z(e));
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function en(e, t, n) {
|
|
50
50
|
n === void 0 && (n = !1);
|
|
51
|
-
const o = ne(e), r =
|
|
51
|
+
const o = ne(e), r = _e(e), i = Me(r);
|
|
52
52
|
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
53
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
53
|
+
return t.reference[i] > t.floating[i] && (s = pe(s)), [s, pe(s)];
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
const t =
|
|
57
|
-
return [
|
|
55
|
+
function tn(e) {
|
|
56
|
+
const t = pe(e);
|
|
57
|
+
return [Te(e), t, Te(t)];
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return e.replace(/start|end/g, (t) =>
|
|
59
|
+
function Te(e) {
|
|
60
|
+
return e.replace(/start|end/g, (t) => Jt[t]);
|
|
61
61
|
}
|
|
62
|
-
const
|
|
63
|
-
function
|
|
62
|
+
const ze = ["left", "right"], je = ["right", "left"], nn = ["top", "bottom"], on = ["bottom", "top"];
|
|
63
|
+
function rn(e, t, n) {
|
|
64
64
|
switch (e) {
|
|
65
65
|
case "top":
|
|
66
66
|
case "bottom":
|
|
67
|
-
return n ? t ?
|
|
67
|
+
return n ? t ? je : ze : t ? ze : je;
|
|
68
68
|
case "left":
|
|
69
69
|
case "right":
|
|
70
|
-
return t ?
|
|
70
|
+
return t ? nn : on;
|
|
71
71
|
default:
|
|
72
72
|
return [];
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function sn(e, t, n, o) {
|
|
76
76
|
const r = ne(e);
|
|
77
|
-
let i =
|
|
78
|
-
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(
|
|
77
|
+
let i = rn(q(e), n === "start", o);
|
|
78
|
+
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Te)))), i;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
80
|
+
function pe(e) {
|
|
81
|
+
return e.replace(/left|right|bottom|top/g, (t) => Zt[t]);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function cn(e) {
|
|
84
84
|
return {
|
|
85
85
|
top: 0,
|
|
86
86
|
right: 0,
|
|
@@ -89,15 +89,15 @@ function ln(e) {
|
|
|
89
89
|
...e
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return typeof e != "number" ?
|
|
92
|
+
function tt(e) {
|
|
93
|
+
return typeof e != "number" ? cn(e) : {
|
|
94
94
|
top: e,
|
|
95
95
|
right: e,
|
|
96
96
|
bottom: e,
|
|
97
97
|
left: e
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function me(e) {
|
|
101
101
|
const {
|
|
102
102
|
x: t,
|
|
103
103
|
y: n,
|
|
@@ -115,53 +115,98 @@ function he(e) {
|
|
|
115
115
|
y: n
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ye(e, t, n) {
|
|
119
119
|
let {
|
|
120
120
|
reference: o,
|
|
121
121
|
floating: r
|
|
122
122
|
} = e;
|
|
123
|
-
const i = z(t), s =
|
|
124
|
-
let
|
|
123
|
+
const i = z(t), s = _e(t), l = Me(s), c = q(t), f = i === "y", a = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, p = o[l] / 2 - r[l] / 2;
|
|
124
|
+
let u;
|
|
125
125
|
switch (c) {
|
|
126
126
|
case "top":
|
|
127
|
-
|
|
128
|
-
x:
|
|
127
|
+
u = {
|
|
128
|
+
x: a,
|
|
129
129
|
y: o.y - r.height
|
|
130
130
|
};
|
|
131
131
|
break;
|
|
132
132
|
case "bottom":
|
|
133
|
-
|
|
134
|
-
x:
|
|
133
|
+
u = {
|
|
134
|
+
x: a,
|
|
135
135
|
y: o.y + o.height
|
|
136
136
|
};
|
|
137
137
|
break;
|
|
138
138
|
case "right":
|
|
139
|
-
|
|
139
|
+
u = {
|
|
140
140
|
x: o.x + o.width,
|
|
141
|
-
y:
|
|
141
|
+
y: d
|
|
142
142
|
};
|
|
143
143
|
break;
|
|
144
144
|
case "left":
|
|
145
|
-
|
|
145
|
+
u = {
|
|
146
146
|
x: o.x - r.width,
|
|
147
|
-
y:
|
|
147
|
+
y: d
|
|
148
148
|
};
|
|
149
149
|
break;
|
|
150
150
|
default:
|
|
151
|
-
|
|
151
|
+
u = {
|
|
152
152
|
x: o.x,
|
|
153
153
|
y: o.y
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
switch (ne(t)) {
|
|
157
157
|
case "start":
|
|
158
|
-
|
|
158
|
+
u[s] -= p * (n && f ? -1 : 1);
|
|
159
159
|
break;
|
|
160
160
|
case "end":
|
|
161
|
-
|
|
161
|
+
u[s] += p * (n && f ? -1 : 1);
|
|
162
162
|
break;
|
|
163
163
|
}
|
|
164
|
-
return
|
|
164
|
+
return u;
|
|
165
|
+
}
|
|
166
|
+
async function ln(e, t) {
|
|
167
|
+
var n;
|
|
168
|
+
t === void 0 && (t = {});
|
|
169
|
+
const {
|
|
170
|
+
x: o,
|
|
171
|
+
y: r,
|
|
172
|
+
platform: i,
|
|
173
|
+
rects: s,
|
|
174
|
+
elements: l,
|
|
175
|
+
strategy: c
|
|
176
|
+
} = e, {
|
|
177
|
+
boundary: f = "clippingAncestors",
|
|
178
|
+
rootBoundary: a = "viewport",
|
|
179
|
+
elementContext: d = "floating",
|
|
180
|
+
altBoundary: p = !1,
|
|
181
|
+
padding: u = 0
|
|
182
|
+
} = G(t, e), m = tt(u), w = l[p ? d === "floating" ? "reference" : "floating" : d], y = me(await i.getClippingRect({
|
|
183
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
184
|
+
boundary: f,
|
|
185
|
+
rootBoundary: a,
|
|
186
|
+
strategy: c
|
|
187
|
+
})), v = d === "floating" ? {
|
|
188
|
+
x: o,
|
|
189
|
+
y: r,
|
|
190
|
+
width: s.floating.width,
|
|
191
|
+
height: s.floating.height
|
|
192
|
+
} : s.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), x = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
|
|
193
|
+
x: 1,
|
|
194
|
+
y: 1
|
|
195
|
+
} : {
|
|
196
|
+
x: 1,
|
|
197
|
+
y: 1
|
|
198
|
+
}, C = me(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
199
|
+
elements: l,
|
|
200
|
+
rect: v,
|
|
201
|
+
offsetParent: b,
|
|
202
|
+
strategy: c
|
|
203
|
+
}) : v);
|
|
204
|
+
return {
|
|
205
|
+
top: (y.top - C.top + m.top) / x.y,
|
|
206
|
+
bottom: (C.bottom - y.bottom + m.bottom) / x.y,
|
|
207
|
+
left: (y.left - C.left + m.left) / x.x,
|
|
208
|
+
right: (C.right - y.right + m.right) / x.x
|
|
209
|
+
};
|
|
165
210
|
}
|
|
166
211
|
const an = async (e, t, n) => {
|
|
167
212
|
const {
|
|
@@ -169,107 +214,65 @@ const an = async (e, t, n) => {
|
|
|
169
214
|
strategy: r = "absolute",
|
|
170
215
|
middleware: i = [],
|
|
171
216
|
platform: s
|
|
172
|
-
} = n,
|
|
217
|
+
} = n, l = i.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
173
218
|
let f = await s.getElementRects({
|
|
174
219
|
reference: e,
|
|
175
220
|
floating: t,
|
|
176
221
|
strategy: r
|
|
177
222
|
}), {
|
|
178
|
-
x:
|
|
179
|
-
y:
|
|
180
|
-
} =
|
|
181
|
-
for (let
|
|
223
|
+
x: a,
|
|
224
|
+
y: d
|
|
225
|
+
} = Ye(f, o, c), p = o, u = {}, m = 0;
|
|
226
|
+
for (let w = 0; w < l.length; w++) {
|
|
227
|
+
var h;
|
|
182
228
|
const {
|
|
183
|
-
name:
|
|
184
|
-
fn:
|
|
185
|
-
} =
|
|
186
|
-
x,
|
|
187
|
-
y:
|
|
188
|
-
data:
|
|
189
|
-
reset:
|
|
190
|
-
} = await
|
|
191
|
-
x:
|
|
192
|
-
y:
|
|
229
|
+
name: y,
|
|
230
|
+
fn: v
|
|
231
|
+
} = l[w], {
|
|
232
|
+
x: b,
|
|
233
|
+
y: x,
|
|
234
|
+
data: C,
|
|
235
|
+
reset: A
|
|
236
|
+
} = await v({
|
|
237
|
+
x: a,
|
|
238
|
+
y: d,
|
|
193
239
|
initialPlacement: o,
|
|
194
240
|
placement: p,
|
|
195
241
|
strategy: r,
|
|
196
|
-
middlewareData:
|
|
242
|
+
middlewareData: u,
|
|
197
243
|
rects: f,
|
|
198
|
-
platform:
|
|
244
|
+
platform: {
|
|
245
|
+
...s,
|
|
246
|
+
detectOverflow: (h = s.detectOverflow) != null ? h : ln
|
|
247
|
+
},
|
|
199
248
|
elements: {
|
|
200
249
|
reference: e,
|
|
201
250
|
floating: t
|
|
202
251
|
}
|
|
203
252
|
});
|
|
204
|
-
|
|
205
|
-
...
|
|
206
|
-
[
|
|
207
|
-
...
|
|
208
|
-
...
|
|
253
|
+
a = b ?? a, d = x ?? d, u = {
|
|
254
|
+
...u,
|
|
255
|
+
[y]: {
|
|
256
|
+
...u[y],
|
|
257
|
+
...C
|
|
209
258
|
}
|
|
210
|
-
},
|
|
259
|
+
}, A && m <= 50 && (m++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (f = A.rects === !0 ? await s.getElementRects({
|
|
211
260
|
reference: e,
|
|
212
261
|
floating: t,
|
|
213
262
|
strategy: r
|
|
214
|
-
}) :
|
|
215
|
-
x:
|
|
216
|
-
y:
|
|
217
|
-
} =
|
|
263
|
+
}) : A.rects), {
|
|
264
|
+
x: a,
|
|
265
|
+
y: d
|
|
266
|
+
} = Ye(f, p, c)), w = -1);
|
|
218
267
|
}
|
|
219
268
|
return {
|
|
220
|
-
x:
|
|
221
|
-
y:
|
|
269
|
+
x: a,
|
|
270
|
+
y: d,
|
|
222
271
|
placement: p,
|
|
223
272
|
strategy: r,
|
|
224
|
-
middlewareData:
|
|
273
|
+
middlewareData: u
|
|
225
274
|
};
|
|
226
|
-
}
|
|
227
|
-
async function ie(e, t) {
|
|
228
|
-
var n;
|
|
229
|
-
t === void 0 && (t = {});
|
|
230
|
-
const {
|
|
231
|
-
x: o,
|
|
232
|
-
y: r,
|
|
233
|
-
platform: i,
|
|
234
|
-
rects: s,
|
|
235
|
-
elements: a,
|
|
236
|
-
strategy: c
|
|
237
|
-
} = e, {
|
|
238
|
-
boundary: f = "clippingAncestors",
|
|
239
|
-
rootBoundary: l = "viewport",
|
|
240
|
-
elementContext: u = "floating",
|
|
241
|
-
altBoundary: p = !1,
|
|
242
|
-
padding: d = 0
|
|
243
|
-
} = G(t, e), m = nt(d), w = a[p ? u === "floating" ? "reference" : "floating" : u], y = he(await i.getClippingRect({
|
|
244
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
245
|
-
boundary: f,
|
|
246
|
-
rootBoundary: l,
|
|
247
|
-
strategy: c
|
|
248
|
-
})), x = u === "floating" ? {
|
|
249
|
-
x: o,
|
|
250
|
-
y: r,
|
|
251
|
-
width: s.floating.width,
|
|
252
|
-
height: s.floating.height
|
|
253
|
-
} : s.reference, C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), v = await (i.isElement == null ? void 0 : i.isElement(C)) ? await (i.getScale == null ? void 0 : i.getScale(C)) || {
|
|
254
|
-
x: 1,
|
|
255
|
-
y: 1
|
|
256
|
-
} : {
|
|
257
|
-
x: 1,
|
|
258
|
-
y: 1
|
|
259
|
-
}, b = he(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
260
|
-
elements: a,
|
|
261
|
-
rect: x,
|
|
262
|
-
offsetParent: C,
|
|
263
|
-
strategy: c
|
|
264
|
-
}) : x);
|
|
265
|
-
return {
|
|
266
|
-
top: (y.top - b.top + m.top) / v.y,
|
|
267
|
-
bottom: (b.bottom - y.bottom + m.bottom) / v.y,
|
|
268
|
-
left: (y.left - b.left + m.left) / v.x,
|
|
269
|
-
right: (b.right - y.right + m.right) / v.x
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
const fn = (e) => ({
|
|
275
|
+
}, fn = (e) => ({
|
|
273
276
|
name: "arrow",
|
|
274
277
|
options: e,
|
|
275
278
|
async fn(t) {
|
|
@@ -279,26 +282,26 @@ const fn = (e) => ({
|
|
|
279
282
|
placement: r,
|
|
280
283
|
rects: i,
|
|
281
284
|
platform: s,
|
|
282
|
-
elements:
|
|
285
|
+
elements: l,
|
|
283
286
|
middlewareData: c
|
|
284
287
|
} = t, {
|
|
285
288
|
element: f,
|
|
286
|
-
padding:
|
|
289
|
+
padding: a = 0
|
|
287
290
|
} = G(e, t) || {};
|
|
288
291
|
if (f == null)
|
|
289
292
|
return {};
|
|
290
|
-
const
|
|
293
|
+
const d = tt(a), p = {
|
|
291
294
|
x: n,
|
|
292
295
|
y: o
|
|
293
|
-
},
|
|
294
|
-
let
|
|
295
|
-
(!
|
|
296
|
-
const M =
|
|
296
|
+
}, u = _e(r), m = Me(u), h = await s.getDimensions(f), w = u === "y", y = w ? "top" : "left", v = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", x = i.reference[m] + i.reference[u] - p[u] - i.floating[m], C = p[u] - i.reference[u], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
297
|
+
let P = A ? A[b] : 0;
|
|
298
|
+
(!P || !await (s.isElement == null ? void 0 : s.isElement(A))) && (P = l.floating[b] || i.floating[m]);
|
|
299
|
+
const M = x / 2 - C / 2, H = P / 2 - h[m] / 2 - 1, D = U(d[y], H), k = U(d[v], H), N = D, E = P - h[m] - k, T = P / 2 - h[m] / 2 + M, F = Oe(N, T, E), S = !c.arrow && ne(r) != null && T !== F && i.reference[m] / 2 - (T < N ? D : k) - h[m] / 2 < 0, L = S ? T < N ? T - N : T - E : 0;
|
|
297
300
|
return {
|
|
298
|
-
[
|
|
301
|
+
[u]: p[u] + L,
|
|
299
302
|
data: {
|
|
300
|
-
[
|
|
301
|
-
centerOffset:
|
|
303
|
+
[u]: F,
|
|
304
|
+
centerOffset: T - F - L,
|
|
302
305
|
...S && {
|
|
303
306
|
alignmentOffset: L
|
|
304
307
|
}
|
|
@@ -316,65 +319,65 @@ const fn = (e) => ({
|
|
|
316
319
|
placement: r,
|
|
317
320
|
middlewareData: i,
|
|
318
321
|
rects: s,
|
|
319
|
-
initialPlacement:
|
|
322
|
+
initialPlacement: l,
|
|
320
323
|
platform: c,
|
|
321
324
|
elements: f
|
|
322
325
|
} = t, {
|
|
323
|
-
mainAxis:
|
|
324
|
-
crossAxis:
|
|
326
|
+
mainAxis: a = !0,
|
|
327
|
+
crossAxis: d = !0,
|
|
325
328
|
fallbackPlacements: p,
|
|
326
|
-
fallbackStrategy:
|
|
329
|
+
fallbackStrategy: u = "bestFit",
|
|
327
330
|
fallbackAxisSideDirection: m = "none",
|
|
328
331
|
flipAlignment: h = !0,
|
|
329
332
|
...w
|
|
330
333
|
} = G(e, t);
|
|
331
334
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
332
335
|
return {};
|
|
333
|
-
const y = q(r),
|
|
334
|
-
!p &&
|
|
335
|
-
const
|
|
336
|
+
const y = q(r), v = z(l), b = q(l) === l, x = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), C = p || (b || !h ? [pe(l)] : tn(l)), A = m !== "none";
|
|
337
|
+
!p && A && C.push(...sn(l, h, m, x));
|
|
338
|
+
const P = [l, ...C], M = await c.detectOverflow(t, w), H = [];
|
|
336
339
|
let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
337
|
-
if (
|
|
338
|
-
const
|
|
339
|
-
H.push(M[
|
|
340
|
+
if (a && H.push(M[y]), d) {
|
|
341
|
+
const T = en(r, s, x);
|
|
342
|
+
H.push(M[T[0]], M[T[1]]);
|
|
340
343
|
}
|
|
341
344
|
if (D = [...D, {
|
|
342
345
|
placement: r,
|
|
343
346
|
overflows: H
|
|
344
|
-
}], !H.every((
|
|
347
|
+
}], !H.every((T) => T <= 0)) {
|
|
345
348
|
var k, N;
|
|
346
|
-
const
|
|
347
|
-
if (
|
|
349
|
+
const T = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, F = P[T];
|
|
350
|
+
if (F && (!(d === "alignment" ? v !== z(F) : !1) || // We leave the current main axis only if every placement on that axis
|
|
348
351
|
// overflows the main axis.
|
|
349
|
-
D.every((
|
|
352
|
+
D.every((R) => z(R.placement) === v ? R.overflows[0] > 0 : !0)))
|
|
350
353
|
return {
|
|
351
354
|
data: {
|
|
352
|
-
index:
|
|
355
|
+
index: T,
|
|
353
356
|
overflows: D
|
|
354
357
|
},
|
|
355
358
|
reset: {
|
|
356
|
-
placement:
|
|
359
|
+
placement: F
|
|
357
360
|
}
|
|
358
361
|
};
|
|
359
|
-
let S = (N = D.filter((L) => L.overflows[0] <= 0).sort((L,
|
|
362
|
+
let S = (N = D.filter((L) => L.overflows[0] <= 0).sort((L, R) => L.overflows[1] - R.overflows[1])[0]) == null ? void 0 : N.placement;
|
|
360
363
|
if (!S)
|
|
361
|
-
switch (
|
|
364
|
+
switch (u) {
|
|
362
365
|
case "bestFit": {
|
|
363
366
|
var E;
|
|
364
|
-
const L = (E = D.filter((
|
|
365
|
-
if (
|
|
366
|
-
const _ = z(
|
|
367
|
-
return _ ===
|
|
367
|
+
const L = (E = D.filter((R) => {
|
|
368
|
+
if (A) {
|
|
369
|
+
const _ = z(R.placement);
|
|
370
|
+
return _ === v || // Create a bias to the `y` side axis due to horizontal
|
|
368
371
|
// reading directions favoring greater width.
|
|
369
372
|
_ === "y";
|
|
370
373
|
}
|
|
371
374
|
return !0;
|
|
372
|
-
}).map((
|
|
375
|
+
}).map((R) => [R.placement, R.overflows.filter((_) => _ > 0).reduce((_, V) => _ + V, 0)]).sort((R, _) => R[1] - _[1])[0]) == null ? void 0 : E[0];
|
|
373
376
|
L && (S = L);
|
|
374
377
|
break;
|
|
375
378
|
}
|
|
376
379
|
case "initialPlacement":
|
|
377
|
-
S =
|
|
380
|
+
S = l;
|
|
378
381
|
break;
|
|
379
382
|
}
|
|
380
383
|
if (r !== S)
|
|
@@ -388,7 +391,7 @@ const fn = (e) => ({
|
|
|
388
391
|
}
|
|
389
392
|
};
|
|
390
393
|
};
|
|
391
|
-
function
|
|
394
|
+
function Xe(e, t) {
|
|
392
395
|
return {
|
|
393
396
|
top: e.top - t.height,
|
|
394
397
|
right: e.right - t.width,
|
|
@@ -396,8 +399,8 @@ function Ge(e, t) {
|
|
|
396
399
|
left: e.left - t.width
|
|
397
400
|
};
|
|
398
401
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
402
|
+
function Ge(e) {
|
|
403
|
+
return Kt.some((t) => e[t] >= 0);
|
|
401
404
|
}
|
|
402
405
|
const dn = function(e) {
|
|
403
406
|
return e === void 0 && (e = {}), {
|
|
@@ -405,33 +408,34 @@ const dn = function(e) {
|
|
|
405
408
|
options: e,
|
|
406
409
|
async fn(t) {
|
|
407
410
|
const {
|
|
408
|
-
rects: n
|
|
411
|
+
rects: n,
|
|
412
|
+
platform: o
|
|
409
413
|
} = t, {
|
|
410
|
-
strategy:
|
|
411
|
-
...
|
|
414
|
+
strategy: r = "referenceHidden",
|
|
415
|
+
...i
|
|
412
416
|
} = G(e, t);
|
|
413
|
-
switch (
|
|
417
|
+
switch (r) {
|
|
414
418
|
case "referenceHidden": {
|
|
415
|
-
const
|
|
416
|
-
...
|
|
419
|
+
const s = await o.detectOverflow(t, {
|
|
420
|
+
...i,
|
|
417
421
|
elementContext: "reference"
|
|
418
|
-
}),
|
|
422
|
+
}), l = Xe(s, n.reference);
|
|
419
423
|
return {
|
|
420
424
|
data: {
|
|
421
|
-
referenceHiddenOffsets:
|
|
422
|
-
referenceHidden:
|
|
425
|
+
referenceHiddenOffsets: l,
|
|
426
|
+
referenceHidden: Ge(l)
|
|
423
427
|
}
|
|
424
428
|
};
|
|
425
429
|
}
|
|
426
430
|
case "escaped": {
|
|
427
|
-
const
|
|
428
|
-
...
|
|
431
|
+
const s = await o.detectOverflow(t, {
|
|
432
|
+
...i,
|
|
429
433
|
altBoundary: !0
|
|
430
|
-
}),
|
|
434
|
+
}), l = Xe(s, n.floating);
|
|
431
435
|
return {
|
|
432
436
|
data: {
|
|
433
|
-
escapedOffsets:
|
|
434
|
-
escaped:
|
|
437
|
+
escapedOffsets: l,
|
|
438
|
+
escaped: Ge(l)
|
|
435
439
|
}
|
|
436
440
|
};
|
|
437
441
|
}
|
|
@@ -440,32 +444,32 @@ const dn = function(e) {
|
|
|
440
444
|
}
|
|
441
445
|
}
|
|
442
446
|
};
|
|
443
|
-
},
|
|
447
|
+
}, nt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
444
448
|
async function pn(e, t) {
|
|
445
449
|
const {
|
|
446
450
|
placement: n,
|
|
447
451
|
platform: o,
|
|
448
452
|
elements: r
|
|
449
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n),
|
|
453
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = q(n), l = ne(n), c = z(n) === "y", f = nt.has(s) ? -1 : 1, a = i && c ? -1 : 1, d = G(t, e);
|
|
450
454
|
let {
|
|
451
455
|
mainAxis: p,
|
|
452
|
-
crossAxis:
|
|
456
|
+
crossAxis: u,
|
|
453
457
|
alignmentAxis: m
|
|
454
|
-
} = typeof
|
|
455
|
-
mainAxis:
|
|
458
|
+
} = typeof d == "number" ? {
|
|
459
|
+
mainAxis: d,
|
|
456
460
|
crossAxis: 0,
|
|
457
461
|
alignmentAxis: null
|
|
458
462
|
} : {
|
|
459
|
-
mainAxis:
|
|
460
|
-
crossAxis:
|
|
461
|
-
alignmentAxis:
|
|
463
|
+
mainAxis: d.mainAxis || 0,
|
|
464
|
+
crossAxis: d.crossAxis || 0,
|
|
465
|
+
alignmentAxis: d.alignmentAxis
|
|
462
466
|
};
|
|
463
|
-
return
|
|
464
|
-
x:
|
|
467
|
+
return l && typeof m == "number" && (u = l === "end" ? m * -1 : m), c ? {
|
|
468
|
+
x: u * a,
|
|
465
469
|
y: p * f
|
|
466
470
|
} : {
|
|
467
471
|
x: p * f,
|
|
468
|
-
y:
|
|
472
|
+
y: u * a
|
|
469
473
|
};
|
|
470
474
|
}
|
|
471
475
|
const mn = function(e) {
|
|
@@ -478,9 +482,9 @@ const mn = function(e) {
|
|
|
478
482
|
x: r,
|
|
479
483
|
y: i,
|
|
480
484
|
placement: s,
|
|
481
|
-
middlewareData:
|
|
485
|
+
middlewareData: l
|
|
482
486
|
} = t, c = await pn(t, e);
|
|
483
|
-
return s === ((n =
|
|
487
|
+
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
484
488
|
x: r + c.x,
|
|
485
489
|
y: i + c.y,
|
|
486
490
|
data: {
|
|
@@ -498,49 +502,50 @@ const mn = function(e) {
|
|
|
498
502
|
const {
|
|
499
503
|
x: n,
|
|
500
504
|
y: o,
|
|
501
|
-
placement: r
|
|
505
|
+
placement: r,
|
|
506
|
+
platform: i
|
|
502
507
|
} = t, {
|
|
503
|
-
mainAxis:
|
|
504
|
-
crossAxis:
|
|
505
|
-
limiter:
|
|
506
|
-
fn: (
|
|
508
|
+
mainAxis: s = !0,
|
|
509
|
+
crossAxis: l = !1,
|
|
510
|
+
limiter: c = {
|
|
511
|
+
fn: (y) => {
|
|
507
512
|
let {
|
|
508
|
-
x:
|
|
509
|
-
y:
|
|
510
|
-
} =
|
|
513
|
+
x: v,
|
|
514
|
+
y: b
|
|
515
|
+
} = y;
|
|
511
516
|
return {
|
|
512
|
-
x:
|
|
513
|
-
y:
|
|
517
|
+
x: v,
|
|
518
|
+
y: b
|
|
514
519
|
};
|
|
515
520
|
}
|
|
516
521
|
},
|
|
517
|
-
...
|
|
518
|
-
} = G(e, t),
|
|
522
|
+
...f
|
|
523
|
+
} = G(e, t), a = {
|
|
519
524
|
x: n,
|
|
520
525
|
y: o
|
|
521
|
-
},
|
|
522
|
-
let
|
|
523
|
-
if (i) {
|
|
524
|
-
const w = p === "y" ? "top" : "left", y = p === "y" ? "bottom" : "right", x = d + l[w], C = d - l[y];
|
|
525
|
-
d = Oe(x, d, C);
|
|
526
|
-
}
|
|
526
|
+
}, d = await i.detectOverflow(t, f), p = z(q(r)), u = De(p);
|
|
527
|
+
let m = a[u], h = a[p];
|
|
527
528
|
if (s) {
|
|
528
|
-
const
|
|
529
|
-
m = Oe(
|
|
529
|
+
const y = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", b = m + d[y], x = m - d[v];
|
|
530
|
+
m = Oe(b, m, x);
|
|
531
|
+
}
|
|
532
|
+
if (l) {
|
|
533
|
+
const y = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", b = h + d[y], x = h - d[v];
|
|
534
|
+
h = Oe(b, h, x);
|
|
530
535
|
}
|
|
531
|
-
const
|
|
536
|
+
const w = c.fn({
|
|
532
537
|
...t,
|
|
533
|
-
[
|
|
534
|
-
[
|
|
538
|
+
[u]: m,
|
|
539
|
+
[p]: h
|
|
535
540
|
});
|
|
536
541
|
return {
|
|
537
|
-
...
|
|
542
|
+
...w,
|
|
538
543
|
data: {
|
|
539
|
-
x:
|
|
540
|
-
y:
|
|
544
|
+
x: w.x - n,
|
|
545
|
+
y: w.y - o,
|
|
541
546
|
enabled: {
|
|
542
|
-
[
|
|
543
|
-
[
|
|
547
|
+
[u]: s,
|
|
548
|
+
[p]: l
|
|
544
549
|
}
|
|
545
550
|
}
|
|
546
551
|
};
|
|
@@ -557,15 +562,15 @@ const mn = function(e) {
|
|
|
557
562
|
rects: i,
|
|
558
563
|
middlewareData: s
|
|
559
564
|
} = t, {
|
|
560
|
-
offset:
|
|
565
|
+
offset: l = 0,
|
|
561
566
|
mainAxis: c = !0,
|
|
562
567
|
crossAxis: f = !0
|
|
563
|
-
} = G(e, t),
|
|
568
|
+
} = G(e, t), a = {
|
|
564
569
|
x: n,
|
|
565
570
|
y: o
|
|
566
|
-
},
|
|
567
|
-
let
|
|
568
|
-
const h = G(
|
|
571
|
+
}, d = z(r), p = De(d);
|
|
572
|
+
let u = a[p], m = a[d];
|
|
573
|
+
const h = G(l, t), w = typeof h == "number" ? {
|
|
569
574
|
mainAxis: h,
|
|
570
575
|
crossAxis: 0
|
|
571
576
|
} : {
|
|
@@ -574,17 +579,17 @@ const mn = function(e) {
|
|
|
574
579
|
...h
|
|
575
580
|
};
|
|
576
581
|
if (c) {
|
|
577
|
-
const
|
|
578
|
-
|
|
582
|
+
const b = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[b] + w.mainAxis, C = i.reference[p] + i.reference[b] - w.mainAxis;
|
|
583
|
+
u < x ? u = x : u > C && (u = C);
|
|
579
584
|
}
|
|
580
585
|
if (f) {
|
|
581
|
-
var y,
|
|
582
|
-
const
|
|
583
|
-
m <
|
|
586
|
+
var y, v;
|
|
587
|
+
const b = p === "y" ? "width" : "height", x = nt.has(q(r)), C = i.reference[d] - i.floating[b] + (x && ((y = s.offset) == null ? void 0 : y[d]) || 0) + (x ? 0 : w.crossAxis), A = i.reference[d] + i.reference[b] + (x ? 0 : ((v = s.offset) == null ? void 0 : v[d]) || 0) - (x ? w.crossAxis : 0);
|
|
588
|
+
m < C ? m = C : m > A && (m = A);
|
|
584
589
|
}
|
|
585
590
|
return {
|
|
586
|
-
[p]:
|
|
587
|
-
[
|
|
591
|
+
[p]: u,
|
|
592
|
+
[d]: m
|
|
588
593
|
};
|
|
589
594
|
}
|
|
590
595
|
};
|
|
@@ -598,29 +603,29 @@ const mn = function(e) {
|
|
|
598
603
|
placement: r,
|
|
599
604
|
rects: i,
|
|
600
605
|
platform: s,
|
|
601
|
-
elements:
|
|
606
|
+
elements: l
|
|
602
607
|
} = t, {
|
|
603
608
|
apply: c = () => {
|
|
604
609
|
},
|
|
605
610
|
...f
|
|
606
|
-
} = G(e, t),
|
|
611
|
+
} = G(e, t), a = await s.detectOverflow(t, f), d = q(r), p = ne(r), u = z(r) === "y", {
|
|
607
612
|
width: m,
|
|
608
613
|
height: h
|
|
609
614
|
} = i.floating;
|
|
610
615
|
let w, y;
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
let
|
|
614
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (M =
|
|
615
|
-
const D =
|
|
616
|
-
|
|
616
|
+
d === "top" || d === "bottom" ? (w = d, y = p === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (y = d, w = p === "end" ? "top" : "bottom");
|
|
617
|
+
const v = h - a.top - a.bottom, b = m - a.left - a.right, x = U(h - a[w], v), C = U(m - a[y], b), A = !t.middlewareData.shift;
|
|
618
|
+
let P = x, M = C;
|
|
619
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = b), (o = t.middlewareData.shift) != null && o.enabled.y && (P = v), A && !p) {
|
|
620
|
+
const D = $(a.left, 0), k = $(a.right, 0), N = $(a.top, 0), E = $(a.bottom, 0);
|
|
621
|
+
u ? M = m - 2 * (D !== 0 || k !== 0 ? D + k : $(a.left, a.right)) : P = h - 2 * (N !== 0 || E !== 0 ? N + E : $(a.top, a.bottom));
|
|
617
622
|
}
|
|
618
623
|
await c({
|
|
619
624
|
...t,
|
|
620
625
|
availableWidth: M,
|
|
621
|
-
availableHeight:
|
|
626
|
+
availableHeight: P
|
|
622
627
|
});
|
|
623
|
-
const H = await s.getDimensions(
|
|
628
|
+
const H = await s.getDimensions(l.floating);
|
|
624
629
|
return m !== H.width || h !== H.height ? {
|
|
625
630
|
reset: {
|
|
626
631
|
rects: !0
|
|
@@ -629,11 +634,11 @@ const mn = function(e) {
|
|
|
629
634
|
}
|
|
630
635
|
};
|
|
631
636
|
};
|
|
632
|
-
function
|
|
637
|
+
function we() {
|
|
633
638
|
return typeof window < "u";
|
|
634
639
|
}
|
|
635
640
|
function oe(e) {
|
|
636
|
-
return
|
|
641
|
+
return ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
637
642
|
}
|
|
638
643
|
function I(e) {
|
|
639
644
|
var t;
|
|
@@ -641,22 +646,22 @@ function I(e) {
|
|
|
641
646
|
}
|
|
642
647
|
function X(e) {
|
|
643
648
|
var t;
|
|
644
|
-
return (t = (
|
|
649
|
+
return (t = (ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
645
650
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
651
|
+
function ot(e) {
|
|
652
|
+
return we() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
648
653
|
}
|
|
649
654
|
function W(e) {
|
|
650
|
-
return
|
|
655
|
+
return we() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
651
656
|
}
|
|
652
657
|
function Y(e) {
|
|
653
|
-
return
|
|
658
|
+
return we() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
654
659
|
}
|
|
655
|
-
function
|
|
656
|
-
return !
|
|
660
|
+
function qe(e) {
|
|
661
|
+
return !we() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
657
662
|
}
|
|
658
663
|
const yn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
659
|
-
function
|
|
664
|
+
function le(e) {
|
|
660
665
|
const {
|
|
661
666
|
overflow: t,
|
|
662
667
|
overflowX: n,
|
|
@@ -670,7 +675,7 @@ function vn(e) {
|
|
|
670
675
|
return xn.has(oe(e));
|
|
671
676
|
}
|
|
672
677
|
const bn = [":popover-open", ":modal"];
|
|
673
|
-
function
|
|
678
|
+
function ye(e) {
|
|
674
679
|
return bn.some((t) => {
|
|
675
680
|
try {
|
|
676
681
|
return e.matches(t);
|
|
@@ -680,32 +685,32 @@ function xe(e) {
|
|
|
680
685
|
});
|
|
681
686
|
}
|
|
682
687
|
const Cn = ["transform", "translate", "scale", "rotate", "perspective"], An = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Rn = ["paint", "layout", "strict", "content"];
|
|
683
|
-
function
|
|
684
|
-
const t =
|
|
688
|
+
function ke(e) {
|
|
689
|
+
const t = Ne(), n = W(e) ? B(e) : e;
|
|
685
690
|
return Cn.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || An.some((o) => (n.willChange || "").includes(o)) || Rn.some((o) => (n.contain || "").includes(o));
|
|
686
691
|
}
|
|
687
692
|
function Pn(e) {
|
|
688
693
|
let t = K(e);
|
|
689
694
|
for (; Y(t) && !ee(t); ) {
|
|
690
|
-
if (
|
|
695
|
+
if (ke(t))
|
|
691
696
|
return t;
|
|
692
|
-
if (
|
|
697
|
+
if (ye(t))
|
|
693
698
|
return null;
|
|
694
699
|
t = K(t);
|
|
695
700
|
}
|
|
696
701
|
return null;
|
|
697
702
|
}
|
|
698
|
-
function
|
|
703
|
+
function Ne() {
|
|
699
704
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
700
705
|
}
|
|
701
|
-
const
|
|
706
|
+
const On = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
702
707
|
function ee(e) {
|
|
703
|
-
return
|
|
708
|
+
return On.has(oe(e));
|
|
704
709
|
}
|
|
705
710
|
function B(e) {
|
|
706
711
|
return I(e).getComputedStyle(e);
|
|
707
712
|
}
|
|
708
|
-
function
|
|
713
|
+
function xe(e) {
|
|
709
714
|
return W(e) ? {
|
|
710
715
|
scrollLeft: e.scrollLeft,
|
|
711
716
|
scrollTop: e.scrollTop
|
|
@@ -721,60 +726,60 @@ function K(e) {
|
|
|
721
726
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
722
727
|
e.assignedSlot || // DOM Element detected.
|
|
723
728
|
e.parentNode || // ShadowRoot detected.
|
|
724
|
-
|
|
729
|
+
qe(e) && e.host || // Fallback.
|
|
725
730
|
X(e)
|
|
726
731
|
);
|
|
727
|
-
return
|
|
732
|
+
return qe(t) ? t.host : t;
|
|
728
733
|
}
|
|
729
|
-
function
|
|
734
|
+
function rt(e) {
|
|
730
735
|
const t = K(e);
|
|
731
|
-
return ee(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) &&
|
|
736
|
+
return ee(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && le(t) ? t : rt(t);
|
|
732
737
|
}
|
|
733
|
-
function
|
|
738
|
+
function ie(e, t, n) {
|
|
734
739
|
var o;
|
|
735
740
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
736
|
-
const r =
|
|
741
|
+
const r = rt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = I(r);
|
|
737
742
|
if (i) {
|
|
738
|
-
const
|
|
739
|
-
return t.concat(s, s.visualViewport || [],
|
|
743
|
+
const l = Ee(s);
|
|
744
|
+
return t.concat(s, s.visualViewport || [], le(r) ? r : [], l && n ? ie(l) : []);
|
|
740
745
|
}
|
|
741
|
-
return t.concat(r,
|
|
746
|
+
return t.concat(r, ie(r, [], n));
|
|
742
747
|
}
|
|
743
|
-
function
|
|
748
|
+
function Ee(e) {
|
|
744
749
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
745
750
|
}
|
|
746
|
-
function
|
|
751
|
+
function it(e) {
|
|
747
752
|
const t = B(e);
|
|
748
753
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
749
|
-
const r = Y(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o,
|
|
750
|
-
return
|
|
754
|
+
const r = Y(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = de(n) !== i || de(o) !== s;
|
|
755
|
+
return l && (n = i, o = s), {
|
|
751
756
|
width: n,
|
|
752
757
|
height: o,
|
|
753
|
-
$:
|
|
758
|
+
$: l
|
|
754
759
|
};
|
|
755
760
|
}
|
|
756
|
-
function
|
|
761
|
+
function He(e) {
|
|
757
762
|
return W(e) ? e : e.contextElement;
|
|
758
763
|
}
|
|
759
764
|
function Q(e) {
|
|
760
|
-
const t =
|
|
765
|
+
const t = He(e);
|
|
761
766
|
if (!Y(t))
|
|
762
767
|
return j(1);
|
|
763
768
|
const n = t.getBoundingClientRect(), {
|
|
764
769
|
width: o,
|
|
765
770
|
height: r,
|
|
766
771
|
$: i
|
|
767
|
-
} =
|
|
768
|
-
let s = (i ?
|
|
769
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!
|
|
772
|
+
} = it(t);
|
|
773
|
+
let s = (i ? de(n.width) : n.width) / o, l = (i ? de(n.height) : n.height) / r;
|
|
774
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
770
775
|
x: s,
|
|
771
|
-
y:
|
|
776
|
+
y: l
|
|
772
777
|
};
|
|
773
778
|
}
|
|
774
|
-
const
|
|
775
|
-
function
|
|
779
|
+
const Tn = /* @__PURE__ */ j(0);
|
|
780
|
+
function st(e) {
|
|
776
781
|
const t = I(e);
|
|
777
|
-
return !
|
|
782
|
+
return !Ne() || !t.visualViewport ? Tn : {
|
|
778
783
|
x: t.visualViewport.offsetLeft,
|
|
779
784
|
y: t.visualViewport.offsetTop
|
|
780
785
|
};
|
|
@@ -784,32 +789,32 @@ function En(e, t, n) {
|
|
|
784
789
|
}
|
|
785
790
|
function Z(e, t, n, o) {
|
|
786
791
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
787
|
-
const r = e.getBoundingClientRect(), i =
|
|
792
|
+
const r = e.getBoundingClientRect(), i = He(e);
|
|
788
793
|
let s = j(1);
|
|
789
794
|
t && (o ? W(o) && (s = Q(o)) : s = Q(e));
|
|
790
|
-
const
|
|
791
|
-
let c = (r.left +
|
|
795
|
+
const l = En(i, n, o) ? st(i) : j(0);
|
|
796
|
+
let c = (r.left + l.x) / s.x, f = (r.top + l.y) / s.y, a = r.width / s.x, d = r.height / s.y;
|
|
792
797
|
if (i) {
|
|
793
|
-
const p = I(i),
|
|
794
|
-
let m = p, h =
|
|
795
|
-
for (; h && o &&
|
|
796
|
-
const w = Q(h), y = h.getBoundingClientRect(),
|
|
797
|
-
c *= w.x, f *= w.y,
|
|
798
|
+
const p = I(i), u = o && W(o) ? I(o) : o;
|
|
799
|
+
let m = p, h = Ee(m);
|
|
800
|
+
for (; h && o && u !== m; ) {
|
|
801
|
+
const w = Q(h), y = h.getBoundingClientRect(), v = B(h), b = y.left + (h.clientLeft + parseFloat(v.paddingLeft)) * w.x, x = y.top + (h.clientTop + parseFloat(v.paddingTop)) * w.y;
|
|
802
|
+
c *= w.x, f *= w.y, a *= w.x, d *= w.y, c += b, f += x, m = I(h), h = Ee(m);
|
|
798
803
|
}
|
|
799
804
|
}
|
|
800
|
-
return
|
|
801
|
-
width:
|
|
802
|
-
height:
|
|
805
|
+
return me({
|
|
806
|
+
width: a,
|
|
807
|
+
height: d,
|
|
803
808
|
x: c,
|
|
804
809
|
y: f
|
|
805
810
|
});
|
|
806
811
|
}
|
|
807
|
-
function
|
|
808
|
-
const n =
|
|
812
|
+
function ve(e, t) {
|
|
813
|
+
const n = xe(e).scrollLeft;
|
|
809
814
|
return t ? t.left + n : Z(X(e)).left + n;
|
|
810
815
|
}
|
|
811
|
-
function
|
|
812
|
-
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft -
|
|
816
|
+
function ct(e, t) {
|
|
817
|
+
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - ve(e, n), r = n.top + t.scrollTop;
|
|
813
818
|
return {
|
|
814
819
|
x: o,
|
|
815
820
|
y: r
|
|
@@ -822,72 +827,72 @@ function Sn(e) {
|
|
|
822
827
|
offsetParent: o,
|
|
823
828
|
strategy: r
|
|
824
829
|
} = e;
|
|
825
|
-
const i = r === "fixed", s = X(o),
|
|
826
|
-
if (o === s ||
|
|
830
|
+
const i = r === "fixed", s = X(o), l = t ? ye(t.floating) : !1;
|
|
831
|
+
if (o === s || l && i)
|
|
827
832
|
return n;
|
|
828
833
|
let c = {
|
|
829
834
|
scrollLeft: 0,
|
|
830
835
|
scrollTop: 0
|
|
831
836
|
}, f = j(1);
|
|
832
|
-
const
|
|
833
|
-
if ((
|
|
834
|
-
const
|
|
835
|
-
f = Q(o),
|
|
837
|
+
const a = j(0), d = Y(o);
|
|
838
|
+
if ((d || !d && !i) && ((oe(o) !== "body" || le(s)) && (c = xe(o)), Y(o))) {
|
|
839
|
+
const u = Z(o);
|
|
840
|
+
f = Q(o), a.x = u.x + o.clientLeft, a.y = u.y + o.clientTop;
|
|
836
841
|
}
|
|
837
|
-
const p = s && !
|
|
842
|
+
const p = s && !d && !i ? ct(s, c) : j(0);
|
|
838
843
|
return {
|
|
839
844
|
width: n.width * f.x,
|
|
840
845
|
height: n.height * f.y,
|
|
841
|
-
x: n.x * f.x - c.scrollLeft * f.x +
|
|
842
|
-
y: n.y * f.y - c.scrollTop * f.y +
|
|
846
|
+
x: n.x * f.x - c.scrollLeft * f.x + a.x + p.x,
|
|
847
|
+
y: n.y * f.y - c.scrollTop * f.y + a.y + p.y
|
|
843
848
|
};
|
|
844
849
|
}
|
|
845
850
|
function Ln(e) {
|
|
846
851
|
return Array.from(e.getClientRects());
|
|
847
852
|
}
|
|
848
853
|
function Dn(e) {
|
|
849
|
-
const t = X(e), n =
|
|
850
|
-
let s = -n.scrollLeft +
|
|
851
|
-
const
|
|
852
|
-
return B(o).direction === "rtl" && (s +=
|
|
854
|
+
const t = X(e), n = xe(e), o = e.ownerDocument.body, r = $(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = $(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
855
|
+
let s = -n.scrollLeft + ve(e);
|
|
856
|
+
const l = -n.scrollTop;
|
|
857
|
+
return B(o).direction === "rtl" && (s += $(t.clientWidth, o.clientWidth) - r), {
|
|
853
858
|
width: r,
|
|
854
859
|
height: i,
|
|
855
860
|
x: s,
|
|
856
|
-
y:
|
|
861
|
+
y: l
|
|
857
862
|
};
|
|
858
863
|
}
|
|
859
|
-
const
|
|
864
|
+
const Ue = 25;
|
|
860
865
|
function Mn(e, t) {
|
|
861
866
|
const n = I(e), o = X(e), r = n.visualViewport;
|
|
862
|
-
let i = o.clientWidth, s = o.clientHeight,
|
|
867
|
+
let i = o.clientWidth, s = o.clientHeight, l = 0, c = 0;
|
|
863
868
|
if (r) {
|
|
864
869
|
i = r.width, s = r.height;
|
|
865
|
-
const
|
|
866
|
-
(!
|
|
870
|
+
const a = Ne();
|
|
871
|
+
(!a || a && t === "fixed") && (l = r.offsetLeft, c = r.offsetTop);
|
|
867
872
|
}
|
|
868
|
-
const f =
|
|
873
|
+
const f = ve(o);
|
|
869
874
|
if (f <= 0) {
|
|
870
|
-
const
|
|
871
|
-
m <=
|
|
872
|
-
} else f <=
|
|
875
|
+
const a = o.ownerDocument, d = a.body, p = getComputedStyle(d), u = a.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, m = Math.abs(o.clientWidth - d.clientWidth - u);
|
|
876
|
+
m <= Ue && (i -= m);
|
|
877
|
+
} else f <= Ue && (i += f);
|
|
873
878
|
return {
|
|
874
879
|
width: i,
|
|
875
880
|
height: s,
|
|
876
|
-
x:
|
|
881
|
+
x: l,
|
|
877
882
|
y: c
|
|
878
883
|
};
|
|
879
884
|
}
|
|
880
885
|
const _n = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
881
886
|
function kn(e, t) {
|
|
882
|
-
const n = Z(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Y(e) ? Q(e) : j(1), s = e.clientWidth * i.x,
|
|
887
|
+
const n = Z(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Y(e) ? Q(e) : j(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, c = r * i.x, f = o * i.y;
|
|
883
888
|
return {
|
|
884
889
|
width: s,
|
|
885
|
-
height:
|
|
890
|
+
height: l,
|
|
886
891
|
x: c,
|
|
887
892
|
y: f
|
|
888
893
|
};
|
|
889
894
|
}
|
|
890
|
-
function
|
|
895
|
+
function Ke(e, t, n) {
|
|
891
896
|
let o;
|
|
892
897
|
if (t === "viewport")
|
|
893
898
|
o = Mn(e, n);
|
|
@@ -896,7 +901,7 @@ function Ze(e, t, n) {
|
|
|
896
901
|
else if (W(t))
|
|
897
902
|
o = kn(t, n);
|
|
898
903
|
else {
|
|
899
|
-
const r =
|
|
904
|
+
const r = st(e);
|
|
900
905
|
o = {
|
|
901
906
|
x: t.x - r.x,
|
|
902
907
|
y: t.y - r.y,
|
|
@@ -904,22 +909,22 @@ function Ze(e, t, n) {
|
|
|
904
909
|
height: t.height
|
|
905
910
|
};
|
|
906
911
|
}
|
|
907
|
-
return
|
|
912
|
+
return me(o);
|
|
908
913
|
}
|
|
909
|
-
function
|
|
914
|
+
function lt(e, t) {
|
|
910
915
|
const n = K(e);
|
|
911
|
-
return n === t || !W(n) || ee(n) ? !1 : B(n).position === "fixed" ||
|
|
916
|
+
return n === t || !W(n) || ee(n) ? !1 : B(n).position === "fixed" || lt(n, t);
|
|
912
917
|
}
|
|
913
918
|
function Nn(e, t) {
|
|
914
919
|
const n = t.get(e);
|
|
915
920
|
if (n)
|
|
916
921
|
return n;
|
|
917
|
-
let o =
|
|
922
|
+
let o = ie(e, [], !1).filter((l) => W(l) && oe(l) !== "body"), r = null;
|
|
918
923
|
const i = B(e).position === "fixed";
|
|
919
924
|
let s = i ? K(e) : e;
|
|
920
925
|
for (; W(s) && !ee(s); ) {
|
|
921
|
-
const
|
|
922
|
-
!c &&
|
|
926
|
+
const l = B(s), c = ke(s);
|
|
927
|
+
!c && l.position === "fixed" && (r = null), (i ? !c && !r : !c && l.position === "static" && !!r && _n.has(r.position) || le(s) && !c && lt(e, s)) ? o = o.filter((a) => a !== s) : r = l, s = K(s);
|
|
923
928
|
}
|
|
924
929
|
return t.set(e, o), o;
|
|
925
930
|
}
|
|
@@ -930,10 +935,10 @@ function Hn(e) {
|
|
|
930
935
|
rootBoundary: o,
|
|
931
936
|
strategy: r
|
|
932
937
|
} = e;
|
|
933
|
-
const s = [...n === "clippingAncestors" ?
|
|
934
|
-
const
|
|
935
|
-
return f.top =
|
|
936
|
-
},
|
|
938
|
+
const s = [...n === "clippingAncestors" ? ye(t) ? [] : Nn(t, this._c) : [].concat(n), o], l = s[0], c = s.reduce((f, a) => {
|
|
939
|
+
const d = Ke(t, a, r);
|
|
940
|
+
return f.top = $(d.top, f.top), f.right = U(d.right, f.right), f.bottom = U(d.bottom, f.bottom), f.left = $(d.left, f.left), f;
|
|
941
|
+
}, Ke(t, l, r));
|
|
937
942
|
return {
|
|
938
943
|
width: c.right - c.left,
|
|
939
944
|
height: c.bottom - c.top,
|
|
@@ -941,44 +946,44 @@ function Hn(e) {
|
|
|
941
946
|
y: c.top
|
|
942
947
|
};
|
|
943
948
|
}
|
|
944
|
-
function
|
|
949
|
+
function Fn(e) {
|
|
945
950
|
const {
|
|
946
951
|
width: t,
|
|
947
952
|
height: n
|
|
948
|
-
} =
|
|
953
|
+
} = it(e);
|
|
949
954
|
return {
|
|
950
955
|
width: t,
|
|
951
956
|
height: n
|
|
952
957
|
};
|
|
953
958
|
}
|
|
954
|
-
function
|
|
959
|
+
function $n(e, t, n) {
|
|
955
960
|
const o = Y(t), r = X(t), i = n === "fixed", s = Z(e, !0, i, t);
|
|
956
|
-
let
|
|
961
|
+
let l = {
|
|
957
962
|
scrollLeft: 0,
|
|
958
963
|
scrollTop: 0
|
|
959
964
|
};
|
|
960
965
|
const c = j(0);
|
|
961
966
|
function f() {
|
|
962
|
-
c.x =
|
|
967
|
+
c.x = ve(r);
|
|
963
968
|
}
|
|
964
969
|
if (o || !o && !i)
|
|
965
|
-
if ((oe(t) !== "body" ||
|
|
966
|
-
const
|
|
967
|
-
c.x =
|
|
970
|
+
if ((oe(t) !== "body" || le(r)) && (l = xe(t)), o) {
|
|
971
|
+
const u = Z(t, !0, i, t);
|
|
972
|
+
c.x = u.x + t.clientLeft, c.y = u.y + t.clientTop;
|
|
968
973
|
} else r && f();
|
|
969
974
|
i && !o && r && f();
|
|
970
|
-
const
|
|
975
|
+
const a = r && !o && !i ? ct(r, l) : j(0), d = s.left + l.scrollLeft - c.x - a.x, p = s.top + l.scrollTop - c.y - a.y;
|
|
971
976
|
return {
|
|
972
|
-
x:
|
|
977
|
+
x: d,
|
|
973
978
|
y: p,
|
|
974
979
|
width: s.width,
|
|
975
980
|
height: s.height
|
|
976
981
|
};
|
|
977
982
|
}
|
|
978
|
-
function
|
|
983
|
+
function Re(e) {
|
|
979
984
|
return B(e).position === "static";
|
|
980
985
|
}
|
|
981
|
-
function
|
|
986
|
+
function Ze(e, t) {
|
|
982
987
|
if (!Y(e) || B(e).position === "fixed")
|
|
983
988
|
return null;
|
|
984
989
|
if (t)
|
|
@@ -986,28 +991,28 @@ function Je(e, t) {
|
|
|
986
991
|
let n = e.offsetParent;
|
|
987
992
|
return X(e) === n && (n = n.ownerDocument.body), n;
|
|
988
993
|
}
|
|
989
|
-
function
|
|
994
|
+
function at(e, t) {
|
|
990
995
|
const n = I(e);
|
|
991
|
-
if (
|
|
996
|
+
if (ye(e))
|
|
992
997
|
return n;
|
|
993
998
|
if (!Y(e)) {
|
|
994
999
|
let r = K(e);
|
|
995
1000
|
for (; r && !ee(r); ) {
|
|
996
|
-
if (W(r) && !
|
|
1001
|
+
if (W(r) && !Re(r))
|
|
997
1002
|
return r;
|
|
998
1003
|
r = K(r);
|
|
999
1004
|
}
|
|
1000
1005
|
return n;
|
|
1001
1006
|
}
|
|
1002
|
-
let o =
|
|
1003
|
-
for (; o && vn(o) &&
|
|
1004
|
-
o =
|
|
1005
|
-
return o && ee(o) &&
|
|
1007
|
+
let o = Ze(e, t);
|
|
1008
|
+
for (; o && vn(o) && Re(o); )
|
|
1009
|
+
o = Ze(o, t);
|
|
1010
|
+
return o && ee(o) && Re(o) && !ke(o) ? n : o || Pn(e) || n;
|
|
1006
1011
|
}
|
|
1007
1012
|
const In = async function(e) {
|
|
1008
|
-
const t = this.getOffsetParent ||
|
|
1013
|
+
const t = this.getOffsetParent || at, n = this.getDimensions, o = await n(e.floating);
|
|
1009
1014
|
return {
|
|
1010
|
-
reference:
|
|
1015
|
+
reference: $n(e.reference, await t(e.floating), e.strategy),
|
|
1011
1016
|
floating: {
|
|
1012
1017
|
x: 0,
|
|
1013
1018
|
y: 0,
|
|
@@ -1023,58 +1028,58 @@ const Bn = {
|
|
|
1023
1028
|
convertOffsetParentRelativeRectToViewportRelativeRect: Sn,
|
|
1024
1029
|
getDocumentElement: X,
|
|
1025
1030
|
getClippingRect: Hn,
|
|
1026
|
-
getOffsetParent:
|
|
1031
|
+
getOffsetParent: at,
|
|
1027
1032
|
getElementRects: In,
|
|
1028
1033
|
getClientRects: Ln,
|
|
1029
|
-
getDimensions:
|
|
1034
|
+
getDimensions: Fn,
|
|
1030
1035
|
getScale: Q,
|
|
1031
1036
|
isElement: W,
|
|
1032
1037
|
isRTL: Wn
|
|
1033
1038
|
};
|
|
1034
|
-
function
|
|
1039
|
+
function ft(e, t) {
|
|
1035
1040
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1036
1041
|
}
|
|
1037
1042
|
function Vn(e, t) {
|
|
1038
1043
|
let n = null, o;
|
|
1039
1044
|
const r = X(e);
|
|
1040
1045
|
function i() {
|
|
1041
|
-
var
|
|
1042
|
-
clearTimeout(o), (
|
|
1046
|
+
var l;
|
|
1047
|
+
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
1043
1048
|
}
|
|
1044
|
-
function s(
|
|
1045
|
-
|
|
1049
|
+
function s(l, c) {
|
|
1050
|
+
l === void 0 && (l = !1), c === void 0 && (c = 1), i();
|
|
1046
1051
|
const f = e.getBoundingClientRect(), {
|
|
1047
|
-
left:
|
|
1048
|
-
top:
|
|
1052
|
+
left: a,
|
|
1053
|
+
top: d,
|
|
1049
1054
|
width: p,
|
|
1050
|
-
height:
|
|
1055
|
+
height: u
|
|
1051
1056
|
} = f;
|
|
1052
|
-
if (
|
|
1057
|
+
if (l || t(), !p || !u)
|
|
1053
1058
|
return;
|
|
1054
|
-
const m =
|
|
1059
|
+
const m = fe(d), h = fe(r.clientWidth - (a + p)), w = fe(r.clientHeight - (d + u)), y = fe(a), b = {
|
|
1055
1060
|
rootMargin: -m + "px " + -h + "px " + -w + "px " + -y + "px",
|
|
1056
|
-
threshold:
|
|
1061
|
+
threshold: $(0, U(1, c)) || 1
|
|
1057
1062
|
};
|
|
1058
|
-
let
|
|
1059
|
-
function
|
|
1060
|
-
const
|
|
1061
|
-
if (
|
|
1062
|
-
if (!
|
|
1063
|
+
let x = !0;
|
|
1064
|
+
function C(A) {
|
|
1065
|
+
const P = A[0].intersectionRatio;
|
|
1066
|
+
if (P !== c) {
|
|
1067
|
+
if (!x)
|
|
1063
1068
|
return s();
|
|
1064
|
-
|
|
1069
|
+
P ? s(!1, P) : o = setTimeout(() => {
|
|
1065
1070
|
s(!1, 1e-7);
|
|
1066
1071
|
}, 1e3);
|
|
1067
1072
|
}
|
|
1068
|
-
|
|
1073
|
+
P === 1 && !ft(f, e.getBoundingClientRect()) && s(), x = !1;
|
|
1069
1074
|
}
|
|
1070
1075
|
try {
|
|
1071
|
-
n = new IntersectionObserver(
|
|
1072
|
-
...
|
|
1076
|
+
n = new IntersectionObserver(C, {
|
|
1077
|
+
...b,
|
|
1073
1078
|
// Handle <iframe>s
|
|
1074
1079
|
root: r.ownerDocument
|
|
1075
1080
|
});
|
|
1076
1081
|
} catch {
|
|
1077
|
-
n = new IntersectionObserver(
|
|
1082
|
+
n = new IntersectionObserver(C, b);
|
|
1078
1083
|
}
|
|
1079
1084
|
n.observe(e);
|
|
1080
1085
|
}
|
|
@@ -1086,37 +1091,37 @@ function zn(e, t, n, o) {
|
|
|
1086
1091
|
ancestorScroll: r = !0,
|
|
1087
1092
|
ancestorResize: i = !0,
|
|
1088
1093
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1089
|
-
layoutShift:
|
|
1094
|
+
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1090
1095
|
animationFrame: c = !1
|
|
1091
|
-
} = o, f =
|
|
1092
|
-
|
|
1096
|
+
} = o, f = He(e), a = r || i ? [...f ? ie(f) : [], ...ie(t)] : [];
|
|
1097
|
+
a.forEach((y) => {
|
|
1093
1098
|
r && y.addEventListener("scroll", n, {
|
|
1094
1099
|
passive: !0
|
|
1095
1100
|
}), i && y.addEventListener("resize", n);
|
|
1096
1101
|
});
|
|
1097
|
-
const
|
|
1098
|
-
let p = -1,
|
|
1099
|
-
s && (
|
|
1100
|
-
let [
|
|
1101
|
-
|
|
1102
|
-
var
|
|
1103
|
-
(
|
|
1102
|
+
const d = f && l ? Vn(f, n) : null;
|
|
1103
|
+
let p = -1, u = null;
|
|
1104
|
+
s && (u = new ResizeObserver((y) => {
|
|
1105
|
+
let [v] = y;
|
|
1106
|
+
v && v.target === f && u && (u.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1107
|
+
var b;
|
|
1108
|
+
(b = u) == null || b.observe(t);
|
|
1104
1109
|
})), n();
|
|
1105
|
-
}), f && !c &&
|
|
1110
|
+
}), f && !c && u.observe(f), u.observe(t));
|
|
1106
1111
|
let m, h = c ? Z(e) : null;
|
|
1107
1112
|
c && w();
|
|
1108
1113
|
function w() {
|
|
1109
1114
|
const y = Z(e);
|
|
1110
|
-
h && !
|
|
1115
|
+
h && !ft(h, y) && n(), h = y, m = requestAnimationFrame(w);
|
|
1111
1116
|
}
|
|
1112
1117
|
return n(), () => {
|
|
1113
1118
|
var y;
|
|
1114
|
-
|
|
1115
|
-
r &&
|
|
1116
|
-
}),
|
|
1119
|
+
a.forEach((v) => {
|
|
1120
|
+
r && v.removeEventListener("scroll", n), i && v.removeEventListener("resize", n);
|
|
1121
|
+
}), d?.(), (y = u) == null || y.disconnect(), u = null, c && cancelAnimationFrame(m);
|
|
1117
1122
|
};
|
|
1118
1123
|
}
|
|
1119
|
-
const jn = mn, Yn = hn, Xn = un, Gn = wn, qn = dn,
|
|
1124
|
+
const jn = mn, Yn = hn, Xn = un, Gn = wn, qn = dn, Je = fn, Un = gn, Kn = (e, t, n) => {
|
|
1120
1125
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
1121
1126
|
platform: Bn,
|
|
1122
1127
|
...n
|
|
@@ -1130,8 +1135,8 @@ const jn = mn, Yn = hn, Xn = un, Gn = wn, qn = dn, Qe = fn, Un = gn, Kn = (e, t,
|
|
|
1130
1135
|
});
|
|
1131
1136
|
};
|
|
1132
1137
|
var Zn = typeof document < "u", Jn = function() {
|
|
1133
|
-
},
|
|
1134
|
-
function
|
|
1138
|
+
}, ue = Zn ? Wt : Jn;
|
|
1139
|
+
function he(e, t) {
|
|
1135
1140
|
if (e === t)
|
|
1136
1141
|
return !0;
|
|
1137
1142
|
if (typeof e != typeof t)
|
|
@@ -1143,7 +1148,7 @@ function ge(e, t) {
|
|
|
1143
1148
|
if (Array.isArray(e)) {
|
|
1144
1149
|
if (n = e.length, n !== t.length) return !1;
|
|
1145
1150
|
for (o = n; o-- !== 0; )
|
|
1146
|
-
if (!
|
|
1151
|
+
if (!he(e[o], t[o]))
|
|
1147
1152
|
return !1;
|
|
1148
1153
|
return !0;
|
|
1149
1154
|
}
|
|
@@ -1154,23 +1159,23 @@ function ge(e, t) {
|
|
|
1154
1159
|
return !1;
|
|
1155
1160
|
for (o = n; o-- !== 0; ) {
|
|
1156
1161
|
const i = r[o];
|
|
1157
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
1162
|
+
if (!(i === "_owner" && e.$$typeof) && !he(e[i], t[i]))
|
|
1158
1163
|
return !1;
|
|
1159
1164
|
}
|
|
1160
1165
|
return !0;
|
|
1161
1166
|
}
|
|
1162
1167
|
return e !== e && t !== t;
|
|
1163
1168
|
}
|
|
1164
|
-
function
|
|
1169
|
+
function ut(e) {
|
|
1165
1170
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1166
1171
|
}
|
|
1167
|
-
function
|
|
1168
|
-
const n =
|
|
1172
|
+
function Qe(e, t) {
|
|
1173
|
+
const n = ut(e);
|
|
1169
1174
|
return Math.round(t * n) / n;
|
|
1170
1175
|
}
|
|
1171
|
-
function
|
|
1176
|
+
function Pe(e) {
|
|
1172
1177
|
const t = g.useRef(e);
|
|
1173
|
-
return
|
|
1178
|
+
return ue(() => {
|
|
1174
1179
|
t.current = e;
|
|
1175
1180
|
}), t;
|
|
1176
1181
|
}
|
|
@@ -1185,31 +1190,31 @@ function Qn(e) {
|
|
|
1185
1190
|
reference: i,
|
|
1186
1191
|
floating: s
|
|
1187
1192
|
} = {},
|
|
1188
|
-
transform:
|
|
1193
|
+
transform: l = !0,
|
|
1189
1194
|
whileElementsMounted: c,
|
|
1190
1195
|
open: f
|
|
1191
|
-
} = e, [
|
|
1196
|
+
} = e, [a, d] = g.useState({
|
|
1192
1197
|
x: 0,
|
|
1193
1198
|
y: 0,
|
|
1194
1199
|
strategy: n,
|
|
1195
1200
|
placement: t,
|
|
1196
1201
|
middlewareData: {},
|
|
1197
1202
|
isPositioned: !1
|
|
1198
|
-
}), [p,
|
|
1199
|
-
|
|
1200
|
-
const [m, h] = g.useState(null), [w, y] = g.useState(null),
|
|
1201
|
-
|
|
1202
|
-
}, []),
|
|
1203
|
-
|
|
1204
|
-
}, []),
|
|
1205
|
-
if (!
|
|
1203
|
+
}), [p, u] = g.useState(o);
|
|
1204
|
+
he(p, o) || u(o);
|
|
1205
|
+
const [m, h] = g.useState(null), [w, y] = g.useState(null), v = g.useCallback((R) => {
|
|
1206
|
+
R !== A.current && (A.current = R, h(R));
|
|
1207
|
+
}, []), b = g.useCallback((R) => {
|
|
1208
|
+
R !== P.current && (P.current = R, y(R));
|
|
1209
|
+
}, []), x = i || m, C = s || w, A = g.useRef(null), P = g.useRef(null), M = g.useRef(a), H = c != null, D = Pe(c), k = Pe(r), N = Pe(f), E = g.useCallback(() => {
|
|
1210
|
+
if (!A.current || !P.current)
|
|
1206
1211
|
return;
|
|
1207
|
-
const
|
|
1212
|
+
const R = {
|
|
1208
1213
|
placement: t,
|
|
1209
1214
|
strategy: n,
|
|
1210
1215
|
middleware: p
|
|
1211
1216
|
};
|
|
1212
|
-
k.current && (
|
|
1217
|
+
k.current && (R.platform = k.current), Kn(A.current, P.current, R).then((_) => {
|
|
1213
1218
|
const V = {
|
|
1214
1219
|
..._,
|
|
1215
1220
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -1218,48 +1223,48 @@ function Qn(e) {
|
|
|
1218
1223
|
// setting it to `true` when `open === false` (must be specified).
|
|
1219
1224
|
isPositioned: N.current !== !1
|
|
1220
1225
|
};
|
|
1221
|
-
|
|
1222
|
-
|
|
1226
|
+
T.current && !he(M.current, V) && (M.current = V, jt.flushSync(() => {
|
|
1227
|
+
d(V);
|
|
1223
1228
|
}));
|
|
1224
1229
|
});
|
|
1225
1230
|
}, [p, t, n, k, N]);
|
|
1226
|
-
|
|
1227
|
-
f === !1 && M.current.isPositioned && (M.current.isPositioned = !1,
|
|
1228
|
-
...
|
|
1231
|
+
ue(() => {
|
|
1232
|
+
f === !1 && M.current.isPositioned && (M.current.isPositioned = !1, d((R) => ({
|
|
1233
|
+
...R,
|
|
1229
1234
|
isPositioned: !1
|
|
1230
1235
|
})));
|
|
1231
1236
|
}, [f]);
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}), []),
|
|
1236
|
-
if (
|
|
1237
|
+
const T = g.useRef(!1);
|
|
1238
|
+
ue(() => (T.current = !0, () => {
|
|
1239
|
+
T.current = !1;
|
|
1240
|
+
}), []), ue(() => {
|
|
1241
|
+
if (x && (A.current = x), C && (P.current = C), x && C) {
|
|
1237
1242
|
if (D.current)
|
|
1238
|
-
return D.current(
|
|
1243
|
+
return D.current(x, C, E);
|
|
1239
1244
|
E();
|
|
1240
1245
|
}
|
|
1241
|
-
}, [
|
|
1242
|
-
const
|
|
1243
|
-
reference:
|
|
1244
|
-
floating:
|
|
1245
|
-
setReference:
|
|
1246
|
-
setFloating:
|
|
1247
|
-
}), [
|
|
1248
|
-
reference:
|
|
1249
|
-
floating:
|
|
1250
|
-
}), [
|
|
1251
|
-
const
|
|
1246
|
+
}, [x, C, E, D, H]);
|
|
1247
|
+
const F = g.useMemo(() => ({
|
|
1248
|
+
reference: A,
|
|
1249
|
+
floating: P,
|
|
1250
|
+
setReference: v,
|
|
1251
|
+
setFloating: b
|
|
1252
|
+
}), [v, b]), S = g.useMemo(() => ({
|
|
1253
|
+
reference: x,
|
|
1254
|
+
floating: C
|
|
1255
|
+
}), [x, C]), L = g.useMemo(() => {
|
|
1256
|
+
const R = {
|
|
1252
1257
|
position: n,
|
|
1253
1258
|
left: 0,
|
|
1254
1259
|
top: 0
|
|
1255
1260
|
};
|
|
1256
1261
|
if (!S.floating)
|
|
1257
|
-
return
|
|
1258
|
-
const _ =
|
|
1259
|
-
return
|
|
1260
|
-
...
|
|
1262
|
+
return R;
|
|
1263
|
+
const _ = Qe(S.floating, a.x), V = Qe(S.floating, a.y);
|
|
1264
|
+
return l ? {
|
|
1265
|
+
...R,
|
|
1261
1266
|
transform: "translate(" + _ + "px, " + V + "px)",
|
|
1262
|
-
...
|
|
1267
|
+
...ut(S.floating) >= 1.5 && {
|
|
1263
1268
|
willChange: "transform"
|
|
1264
1269
|
}
|
|
1265
1270
|
} : {
|
|
@@ -1267,14 +1272,14 @@ function Qn(e) {
|
|
|
1267
1272
|
left: _,
|
|
1268
1273
|
top: V
|
|
1269
1274
|
};
|
|
1270
|
-
}, [n,
|
|
1275
|
+
}, [n, l, S.floating, a.x, a.y]);
|
|
1271
1276
|
return g.useMemo(() => ({
|
|
1272
|
-
...
|
|
1277
|
+
...a,
|
|
1273
1278
|
update: E,
|
|
1274
|
-
refs:
|
|
1279
|
+
refs: F,
|
|
1275
1280
|
elements: S,
|
|
1276
1281
|
floatingStyles: L
|
|
1277
|
-
}), [
|
|
1282
|
+
}), [a, E, F, S, L]);
|
|
1278
1283
|
}
|
|
1279
1284
|
const eo = (e) => {
|
|
1280
1285
|
function t(n) {
|
|
@@ -1288,10 +1293,10 @@ const eo = (e) => {
|
|
|
1288
1293
|
element: o,
|
|
1289
1294
|
padding: r
|
|
1290
1295
|
} = typeof e == "function" ? e(n) : e;
|
|
1291
|
-
return o && t(o) ? o.current != null ?
|
|
1296
|
+
return o && t(o) ? o.current != null ? Je({
|
|
1292
1297
|
element: o.current,
|
|
1293
1298
|
padding: r
|
|
1294
|
-
}).fn(n) : {} : o ?
|
|
1299
|
+
}).fn(n) : {} : o ? Je({
|
|
1295
1300
|
element: o,
|
|
1296
1301
|
padding: r
|
|
1297
1302
|
}).fn(n) : {};
|
|
@@ -1319,10 +1324,10 @@ const eo = (e) => {
|
|
|
1319
1324
|
...eo(e),
|
|
1320
1325
|
options: [e, t]
|
|
1321
1326
|
});
|
|
1322
|
-
var lo = "Arrow",
|
|
1327
|
+
var lo = "Arrow", dt = g.forwardRef((e, t) => {
|
|
1323
1328
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
1324
|
-
return /* @__PURE__ */
|
|
1325
|
-
|
|
1329
|
+
return /* @__PURE__ */ O(
|
|
1330
|
+
ce.svg,
|
|
1326
1331
|
{
|
|
1327
1332
|
...i,
|
|
1328
1333
|
ref: t,
|
|
@@ -1330,27 +1335,27 @@ var lo = "Arrow", pt = g.forwardRef((e, t) => {
|
|
|
1330
1335
|
height: r,
|
|
1331
1336
|
viewBox: "0 0 30 10",
|
|
1332
1337
|
preserveAspectRatio: "none",
|
|
1333
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
1338
|
+
children: e.asChild ? n : /* @__PURE__ */ O("polygon", { points: "0,0 30,0 15,10" })
|
|
1334
1339
|
}
|
|
1335
1340
|
);
|
|
1336
1341
|
});
|
|
1337
|
-
|
|
1338
|
-
var ao =
|
|
1342
|
+
dt.displayName = lo;
|
|
1343
|
+
var ao = dt, Fe = "Popper", [pt, mt] = et(Fe), [fo, ht] = pt(Fe), gt = (e) => {
|
|
1339
1344
|
const { __scopePopper: t, children: n } = e, [o, r] = g.useState(null);
|
|
1340
|
-
return /* @__PURE__ */
|
|
1345
|
+
return /* @__PURE__ */ O(fo, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1341
1346
|
};
|
|
1342
|
-
|
|
1343
|
-
var
|
|
1347
|
+
gt.displayName = Fe;
|
|
1348
|
+
var wt = "PopperAnchor", yt = g.forwardRef(
|
|
1344
1349
|
(e, t) => {
|
|
1345
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, i =
|
|
1350
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, i = ht(wt, n), s = g.useRef(null), l = ge(t, s), c = g.useRef(null);
|
|
1346
1351
|
return g.useEffect(() => {
|
|
1347
1352
|
const f = c.current;
|
|
1348
1353
|
c.current = o?.current || s.current, f !== c.current && i.onAnchorChange(c.current);
|
|
1349
|
-
}), o ? null : /* @__PURE__ */
|
|
1354
|
+
}), o ? null : /* @__PURE__ */ O(ce.div, { ...r, ref: l });
|
|
1350
1355
|
}
|
|
1351
1356
|
);
|
|
1352
|
-
|
|
1353
|
-
var
|
|
1357
|
+
yt.displayName = wt;
|
|
1358
|
+
var $e = "PopperContent", [uo, po] = pt($e), xt = g.forwardRef(
|
|
1354
1359
|
(e, t) => {
|
|
1355
1360
|
const {
|
|
1356
1361
|
__scopePopper: n,
|
|
@@ -1358,26 +1363,26 @@ var Ie = "PopperContent", [uo, po] = mt(Ie), vt = g.forwardRef(
|
|
|
1358
1363
|
sideOffset: r = 0,
|
|
1359
1364
|
align: i = "center",
|
|
1360
1365
|
alignOffset: s = 0,
|
|
1361
|
-
arrowPadding:
|
|
1366
|
+
arrowPadding: l = 0,
|
|
1362
1367
|
avoidCollisions: c = !0,
|
|
1363
1368
|
collisionBoundary: f = [],
|
|
1364
|
-
collisionPadding:
|
|
1365
|
-
sticky:
|
|
1369
|
+
collisionPadding: a = 0,
|
|
1370
|
+
sticky: d = "partial",
|
|
1366
1371
|
hideWhenDetached: p = !1,
|
|
1367
|
-
updatePositionStrategy:
|
|
1372
|
+
updatePositionStrategy: u = "optimized",
|
|
1368
1373
|
onPlaced: m,
|
|
1369
1374
|
...h
|
|
1370
|
-
} = e, w =
|
|
1375
|
+
} = e, w = ht($e, n), [y, v] = g.useState(null), b = ge(t, (re) => v(re)), [x, C] = g.useState(null), A = qt(x), P = A?.width ?? 0, M = A?.height ?? 0, H = o + (i !== "center" ? "-" + i : ""), D = typeof a == "number" ? a : { top: 0, right: 0, bottom: 0, left: 0, ...a }, k = Array.isArray(f) ? f : [f], N = k.length > 0, E = {
|
|
1371
1376
|
padding: D,
|
|
1372
1377
|
boundary: k.filter(ho),
|
|
1373
1378
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1374
1379
|
altBoundary: N
|
|
1375
|
-
}, { refs:
|
|
1380
|
+
}, { refs: T, floatingStyles: F, placement: S, isPositioned: L, middlewareData: R } = Qn({
|
|
1376
1381
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1377
1382
|
strategy: "fixed",
|
|
1378
1383
|
placement: H,
|
|
1379
1384
|
whileElementsMounted: (...re) => zn(...re, {
|
|
1380
|
-
animationFrame:
|
|
1385
|
+
animationFrame: u === "always"
|
|
1381
1386
|
}),
|
|
1382
1387
|
elements: {
|
|
1383
1388
|
reference: w.anchor
|
|
@@ -1387,68 +1392,68 @@ var Ie = "PopperContent", [uo, po] = mt(Ie), vt = g.forwardRef(
|
|
|
1387
1392
|
c && no({
|
|
1388
1393
|
mainAxis: !0,
|
|
1389
1394
|
crossAxis: !1,
|
|
1390
|
-
limiter:
|
|
1395
|
+
limiter: d === "partial" ? oo() : void 0,
|
|
1391
1396
|
...E
|
|
1392
1397
|
}),
|
|
1393
1398
|
c && ro({ ...E }),
|
|
1394
1399
|
io({
|
|
1395
1400
|
...E,
|
|
1396
|
-
apply: ({ elements: re, rects:
|
|
1397
|
-
const { width:
|
|
1398
|
-
|
|
1401
|
+
apply: ({ elements: re, rects: Be, availableWidth: Ht, availableHeight: Ft }) => {
|
|
1402
|
+
const { width: $t, height: It } = Be.reference, ae = re.floating.style;
|
|
1403
|
+
ae.setProperty("--radix-popper-available-width", `${Ht}px`), ae.setProperty("--radix-popper-available-height", `${Ft}px`), ae.setProperty("--radix-popper-anchor-width", `${$t}px`), ae.setProperty("--radix-popper-anchor-height", `${It}px`);
|
|
1399
1404
|
}
|
|
1400
1405
|
}),
|
|
1401
|
-
|
|
1402
|
-
go({ arrowWidth:
|
|
1406
|
+
x && co({ element: x, padding: l }),
|
|
1407
|
+
go({ arrowWidth: P, arrowHeight: M }),
|
|
1403
1408
|
p && so({ strategy: "referenceHidden", ...E })
|
|
1404
1409
|
]
|
|
1405
|
-
}), [_, V] =
|
|
1406
|
-
|
|
1407
|
-
L &&
|
|
1408
|
-
}, [L,
|
|
1409
|
-
const
|
|
1410
|
-
return
|
|
1411
|
-
y &&
|
|
1412
|
-
}, [y]), /* @__PURE__ */
|
|
1410
|
+
}), [_, V] = Ct(S), We = Gt(m);
|
|
1411
|
+
Ve(() => {
|
|
1412
|
+
L && We?.();
|
|
1413
|
+
}, [L, We]);
|
|
1414
|
+
const Dt = R.arrow?.x, Mt = R.arrow?.y, _t = R.arrow?.centerOffset !== 0, [kt, Nt] = g.useState();
|
|
1415
|
+
return Ve(() => {
|
|
1416
|
+
y && Nt(window.getComputedStyle(y).zIndex);
|
|
1417
|
+
}, [y]), /* @__PURE__ */ O(
|
|
1413
1418
|
"div",
|
|
1414
1419
|
{
|
|
1415
|
-
ref:
|
|
1420
|
+
ref: T.setFloating,
|
|
1416
1421
|
"data-radix-popper-content-wrapper": "",
|
|
1417
1422
|
style: {
|
|
1418
|
-
|
|
1419
|
-
transform: L ?
|
|
1423
|
+
...F,
|
|
1424
|
+
transform: L ? F.transform : "translate(0, -200%)",
|
|
1420
1425
|
// keep off the page when measuring
|
|
1421
1426
|
minWidth: "max-content",
|
|
1422
|
-
zIndex:
|
|
1427
|
+
zIndex: kt,
|
|
1423
1428
|
"--radix-popper-transform-origin": [
|
|
1424
|
-
|
|
1425
|
-
|
|
1429
|
+
R.transformOrigin?.x,
|
|
1430
|
+
R.transformOrigin?.y
|
|
1426
1431
|
].join(" "),
|
|
1427
1432
|
// hide the content if using the hide middleware and should be hidden
|
|
1428
1433
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
1429
1434
|
// as if the PopperContent isn't there at all
|
|
1430
|
-
...
|
|
1435
|
+
...R.hide?.referenceHidden && {
|
|
1431
1436
|
visibility: "hidden",
|
|
1432
1437
|
pointerEvents: "none"
|
|
1433
1438
|
}
|
|
1434
1439
|
},
|
|
1435
1440
|
dir: e.dir,
|
|
1436
|
-
children: /* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ O(
|
|
1437
1442
|
uo,
|
|
1438
1443
|
{
|
|
1439
1444
|
scope: n,
|
|
1440
1445
|
placedSide: _,
|
|
1441
|
-
onArrowChange:
|
|
1442
|
-
arrowX:
|
|
1443
|
-
arrowY:
|
|
1444
|
-
shouldHideArrow:
|
|
1445
|
-
children: /* @__PURE__ */
|
|
1446
|
-
|
|
1446
|
+
onArrowChange: C,
|
|
1447
|
+
arrowX: Dt,
|
|
1448
|
+
arrowY: Mt,
|
|
1449
|
+
shouldHideArrow: _t,
|
|
1450
|
+
children: /* @__PURE__ */ O(
|
|
1451
|
+
ce.div,
|
|
1447
1452
|
{
|
|
1448
1453
|
"data-side": _,
|
|
1449
1454
|
"data-align": V,
|
|
1450
1455
|
...h,
|
|
1451
|
-
ref:
|
|
1456
|
+
ref: b,
|
|
1452
1457
|
style: {
|
|
1453
1458
|
...h.style,
|
|
1454
1459
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
@@ -1463,19 +1468,19 @@ var Ie = "PopperContent", [uo, po] = mt(Ie), vt = g.forwardRef(
|
|
|
1463
1468
|
);
|
|
1464
1469
|
}
|
|
1465
1470
|
);
|
|
1466
|
-
|
|
1467
|
-
var
|
|
1471
|
+
xt.displayName = $e;
|
|
1472
|
+
var vt = "PopperArrow", mo = {
|
|
1468
1473
|
top: "bottom",
|
|
1469
1474
|
right: "left",
|
|
1470
1475
|
bottom: "top",
|
|
1471
1476
|
left: "right"
|
|
1472
|
-
},
|
|
1473
|
-
const { __scopePopper: o, ...r } = t, i = po(
|
|
1477
|
+
}, bt = g.forwardRef(function(t, n) {
|
|
1478
|
+
const { __scopePopper: o, ...r } = t, i = po(vt, o), s = mo[i.placedSide];
|
|
1474
1479
|
return (
|
|
1475
1480
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1476
1481
|
// doesn't report size as we'd expect on SVG elements.
|
|
1477
1482
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
1478
|
-
/* @__PURE__ */
|
|
1483
|
+
/* @__PURE__ */ O(
|
|
1479
1484
|
"span",
|
|
1480
1485
|
{
|
|
1481
1486
|
ref: i.onArrowChange,
|
|
@@ -1498,7 +1503,7 @@ var bt = "PopperArrow", mo = {
|
|
|
1498
1503
|
}[i.placedSide],
|
|
1499
1504
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
1500
1505
|
},
|
|
1501
|
-
children: /* @__PURE__ */
|
|
1506
|
+
children: /* @__PURE__ */ O(
|
|
1502
1507
|
ao,
|
|
1503
1508
|
{
|
|
1504
1509
|
...r,
|
|
@@ -1514,7 +1519,7 @@ var bt = "PopperArrow", mo = {
|
|
|
1514
1519
|
)
|
|
1515
1520
|
);
|
|
1516
1521
|
});
|
|
1517
|
-
|
|
1522
|
+
bt.displayName = vt;
|
|
1518
1523
|
function ho(e) {
|
|
1519
1524
|
return e !== null;
|
|
1520
1525
|
}
|
|
@@ -1522,19 +1527,19 @@ var go = (e) => ({
|
|
|
1522
1527
|
name: "transformOrigin",
|
|
1523
1528
|
options: e,
|
|
1524
1529
|
fn(t) {
|
|
1525
|
-
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0,
|
|
1530
|
+
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, l = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [f, a] = Ct(n), d = { start: "0%", center: "50%", end: "100%" }[a], p = (r.arrow?.x ?? 0) + l / 2, u = (r.arrow?.y ?? 0) + c / 2;
|
|
1526
1531
|
let m = "", h = "";
|
|
1527
|
-
return f === "bottom" ? (m = s ?
|
|
1532
|
+
return f === "bottom" ? (m = s ? d : `${p}px`, h = `${-c}px`) : f === "top" ? (m = s ? d : `${p}px`, h = `${o.floating.height + c}px`) : f === "right" ? (m = `${-c}px`, h = s ? d : `${u}px`) : f === "left" && (m = `${o.floating.width + c}px`, h = s ? d : `${u}px`), { data: { x: m, y: h } };
|
|
1528
1533
|
}
|
|
1529
1534
|
});
|
|
1530
|
-
function
|
|
1535
|
+
function Ct(e) {
|
|
1531
1536
|
const [t, n = "center"] = e.split("-");
|
|
1532
1537
|
return [t, n];
|
|
1533
1538
|
}
|
|
1534
|
-
var wo =
|
|
1539
|
+
var wo = gt, yo = yt, xo = xt, vo = bt, bo = /* @__PURE__ */ Symbol("radix.slottable");
|
|
1535
1540
|
// @__NO_SIDE_EFFECTS__
|
|
1536
1541
|
function Co(e) {
|
|
1537
|
-
const t = ({ children: n }) => /* @__PURE__ */
|
|
1542
|
+
const t = ({ children: n }) => /* @__PURE__ */ O(Yt, { children: n });
|
|
1538
1543
|
return t.displayName = `${e}.Slottable`, t.__radixId = bo, t;
|
|
1539
1544
|
}
|
|
1540
1545
|
var Ao = Object.freeze({
|
|
@@ -1549,9 +1554,9 @@ var Ao = Object.freeze({
|
|
|
1549
1554
|
clip: "rect(0, 0, 0, 0)",
|
|
1550
1555
|
whiteSpace: "nowrap",
|
|
1551
1556
|
wordWrap: "normal"
|
|
1552
|
-
}), Ro = "VisuallyHidden",
|
|
1553
|
-
(e, t) => /* @__PURE__ */
|
|
1554
|
-
|
|
1557
|
+
}), Ro = "VisuallyHidden", At = g.forwardRef(
|
|
1558
|
+
(e, t) => /* @__PURE__ */ O(
|
|
1559
|
+
ce.span,
|
|
1555
1560
|
{
|
|
1556
1561
|
...e,
|
|
1557
1562
|
ref: t,
|
|
@@ -1559,22 +1564,22 @@ var Ao = Object.freeze({
|
|
|
1559
1564
|
}
|
|
1560
1565
|
)
|
|
1561
1566
|
);
|
|
1562
|
-
|
|
1563
|
-
var Po =
|
|
1564
|
-
|
|
1565
|
-
]),
|
|
1567
|
+
At.displayName = Ro;
|
|
1568
|
+
var Po = At, [be] = et("Tooltip", [
|
|
1569
|
+
mt
|
|
1570
|
+
]), Ce = mt(), Rt = "TooltipProvider", Oo = 700, Se = "tooltip.open", [To, Ie] = be(Rt), Pt = (e) => {
|
|
1566
1571
|
const {
|
|
1567
1572
|
__scopeTooltip: t,
|
|
1568
|
-
delayDuration: n =
|
|
1573
|
+
delayDuration: n = Oo,
|
|
1569
1574
|
skipDelayDuration: o = 300,
|
|
1570
1575
|
disableHoverableContent: r = !1,
|
|
1571
1576
|
children: i
|
|
1572
|
-
} = e, s = g.useRef(!0),
|
|
1577
|
+
} = e, s = g.useRef(!0), l = g.useRef(!1), c = g.useRef(0);
|
|
1573
1578
|
return g.useEffect(() => {
|
|
1574
1579
|
const f = c.current;
|
|
1575
1580
|
return () => window.clearTimeout(f);
|
|
1576
|
-
}, []), /* @__PURE__ */
|
|
1577
|
-
|
|
1581
|
+
}, []), /* @__PURE__ */ O(
|
|
1582
|
+
To,
|
|
1578
1583
|
{
|
|
1579
1584
|
scope: t,
|
|
1580
1585
|
isOpenDelayedRef: s,
|
|
@@ -1588,17 +1593,17 @@ var Po = Rt, [Ce, Zo] = tt("Tooltip", [
|
|
|
1588
1593
|
o
|
|
1589
1594
|
);
|
|
1590
1595
|
}, [o]),
|
|
1591
|
-
isPointerInTransitRef:
|
|
1596
|
+
isPointerInTransitRef: l,
|
|
1592
1597
|
onPointerInTransitChange: g.useCallback((f) => {
|
|
1593
|
-
|
|
1598
|
+
l.current = f;
|
|
1594
1599
|
}, []),
|
|
1595
1600
|
disableHoverableContent: r,
|
|
1596
1601
|
children: i
|
|
1597
1602
|
}
|
|
1598
1603
|
);
|
|
1599
1604
|
};
|
|
1600
|
-
|
|
1601
|
-
var
|
|
1605
|
+
Pt.displayName = Rt;
|
|
1606
|
+
var se = "Tooltip", [Eo, Ae] = be(se), Ot = (e) => {
|
|
1602
1607
|
const {
|
|
1603
1608
|
__scopeTooltip: t,
|
|
1604
1609
|
children: n,
|
|
@@ -1606,66 +1611,66 @@ var ce = "Tooltip", [Eo, Re] = Ce(ce), Ot = (e) => {
|
|
|
1606
1611
|
defaultOpen: r,
|
|
1607
1612
|
onOpenChange: i,
|
|
1608
1613
|
disableHoverableContent: s,
|
|
1609
|
-
delayDuration:
|
|
1610
|
-
} = e, c =
|
|
1614
|
+
delayDuration: l
|
|
1615
|
+
} = e, c = Ie(se, e.__scopeTooltip), f = Ce(t), [a, d] = g.useState(null), p = zt(), u = g.useRef(0), m = s ?? c.disableHoverableContent, h = l ?? c.delayDuration, w = g.useRef(!1), [y, v] = Bt({
|
|
1611
1616
|
prop: o,
|
|
1612
1617
|
defaultProp: r ?? !1,
|
|
1613
|
-
onChange: (
|
|
1614
|
-
|
|
1618
|
+
onChange: (P) => {
|
|
1619
|
+
P ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Se))) : c.onClose(), i?.(P);
|
|
1615
1620
|
},
|
|
1616
|
-
caller:
|
|
1617
|
-
}),
|
|
1618
|
-
window.clearTimeout(
|
|
1619
|
-
}, [
|
|
1620
|
-
window.clearTimeout(
|
|
1621
|
-
}, [
|
|
1622
|
-
window.clearTimeout(
|
|
1623
|
-
w.current = !0,
|
|
1621
|
+
caller: se
|
|
1622
|
+
}), b = g.useMemo(() => y ? w.current ? "delayed-open" : "instant-open" : "closed", [y]), x = g.useCallback(() => {
|
|
1623
|
+
window.clearTimeout(u.current), u.current = 0, w.current = !1, v(!0);
|
|
1624
|
+
}, [v]), C = g.useCallback(() => {
|
|
1625
|
+
window.clearTimeout(u.current), u.current = 0, v(!1);
|
|
1626
|
+
}, [v]), A = g.useCallback(() => {
|
|
1627
|
+
window.clearTimeout(u.current), u.current = window.setTimeout(() => {
|
|
1628
|
+
w.current = !0, v(!0), u.current = 0;
|
|
1624
1629
|
}, h);
|
|
1625
|
-
}, [h,
|
|
1630
|
+
}, [h, v]);
|
|
1626
1631
|
return g.useEffect(() => () => {
|
|
1627
|
-
|
|
1628
|
-
}, []), /* @__PURE__ */
|
|
1632
|
+
u.current && (window.clearTimeout(u.current), u.current = 0);
|
|
1633
|
+
}, []), /* @__PURE__ */ O(wo, { ...f, children: /* @__PURE__ */ O(
|
|
1629
1634
|
Eo,
|
|
1630
1635
|
{
|
|
1631
1636
|
scope: t,
|
|
1632
1637
|
contentId: p,
|
|
1633
1638
|
open: y,
|
|
1634
|
-
stateAttribute:
|
|
1635
|
-
trigger:
|
|
1636
|
-
onTriggerChange:
|
|
1639
|
+
stateAttribute: b,
|
|
1640
|
+
trigger: a,
|
|
1641
|
+
onTriggerChange: d,
|
|
1637
1642
|
onTriggerEnter: g.useCallback(() => {
|
|
1638
|
-
c.isOpenDelayedRef.current ?
|
|
1639
|
-
}, [c.isOpenDelayedRef,
|
|
1643
|
+
c.isOpenDelayedRef.current ? A() : x();
|
|
1644
|
+
}, [c.isOpenDelayedRef, A, x]),
|
|
1640
1645
|
onTriggerLeave: g.useCallback(() => {
|
|
1641
|
-
m ?
|
|
1642
|
-
}, [
|
|
1643
|
-
onOpen:
|
|
1644
|
-
onClose:
|
|
1646
|
+
m ? C() : (window.clearTimeout(u.current), u.current = 0);
|
|
1647
|
+
}, [C, m]),
|
|
1648
|
+
onOpen: x,
|
|
1649
|
+
onClose: C,
|
|
1645
1650
|
disableHoverableContent: m,
|
|
1646
1651
|
children: n
|
|
1647
1652
|
}
|
|
1648
1653
|
) });
|
|
1649
1654
|
};
|
|
1650
|
-
Ot.displayName =
|
|
1651
|
-
var
|
|
1655
|
+
Ot.displayName = se;
|
|
1656
|
+
var Le = "TooltipTrigger", Tt = g.forwardRef(
|
|
1652
1657
|
(e, t) => {
|
|
1653
|
-
const { __scopeTooltip: n, ...o } = e, r =
|
|
1654
|
-
return g.useEffect(() => () => document.removeEventListener("pointerup",
|
|
1655
|
-
|
|
1658
|
+
const { __scopeTooltip: n, ...o } = e, r = Ae(Le, n), i = Ie(Le, n), s = Ce(n), l = g.useRef(null), c = ge(t, l, r.onTriggerChange), f = g.useRef(!1), a = g.useRef(!1), d = g.useCallback(() => f.current = !1, []);
|
|
1659
|
+
return g.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ O(yo, { asChild: !0, ...s, children: /* @__PURE__ */ O(
|
|
1660
|
+
ce.button,
|
|
1656
1661
|
{
|
|
1657
1662
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
1658
1663
|
"data-state": r.stateAttribute,
|
|
1659
1664
|
...o,
|
|
1660
1665
|
ref: c,
|
|
1661
1666
|
onPointerMove: J(e.onPointerMove, (p) => {
|
|
1662
|
-
p.pointerType !== "touch" && !
|
|
1667
|
+
p.pointerType !== "touch" && !a.current && !i.isPointerInTransitRef.current && (r.onTriggerEnter(), a.current = !0);
|
|
1663
1668
|
}),
|
|
1664
1669
|
onPointerLeave: J(e.onPointerLeave, () => {
|
|
1665
|
-
r.onTriggerLeave(),
|
|
1670
|
+
r.onTriggerLeave(), a.current = !1;
|
|
1666
1671
|
}),
|
|
1667
1672
|
onPointerDown: J(e.onPointerDown, () => {
|
|
1668
|
-
r.open && r.onClose(), f.current = !0, document.addEventListener("pointerup",
|
|
1673
|
+
r.open && r.onClose(), f.current = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
1669
1674
|
}),
|
|
1670
1675
|
onFocus: J(e.onFocus, () => {
|
|
1671
1676
|
f.current || r.onOpen();
|
|
@@ -1676,41 +1681,41 @@ var De = "TooltipTrigger", Et = g.forwardRef(
|
|
|
1676
1681
|
) });
|
|
1677
1682
|
}
|
|
1678
1683
|
);
|
|
1679
|
-
|
|
1680
|
-
var So = "TooltipPortal", [
|
|
1684
|
+
Tt.displayName = Le;
|
|
1685
|
+
var So = "TooltipPortal", [Zo, Lo] = be(So, {
|
|
1681
1686
|
forceMount: void 0
|
|
1682
|
-
}), te = "TooltipContent",
|
|
1687
|
+
}), te = "TooltipContent", Et = g.forwardRef(
|
|
1683
1688
|
(e, t) => {
|
|
1684
|
-
const n = Lo(te, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s =
|
|
1685
|
-
return /* @__PURE__ */
|
|
1689
|
+
const n = Lo(te, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = Ae(te, e.__scopeTooltip);
|
|
1690
|
+
return /* @__PURE__ */ O(Ut, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ O(St, { side: r, ...i, ref: t }) : /* @__PURE__ */ O(Do, { side: r, ...i, ref: t }) });
|
|
1686
1691
|
}
|
|
1687
1692
|
), Do = g.forwardRef((e, t) => {
|
|
1688
|
-
const n =
|
|
1689
|
-
|
|
1690
|
-
}, [
|
|
1693
|
+
const n = Ae(te, e.__scopeTooltip), o = Ie(te, e.__scopeTooltip), r = g.useRef(null), i = ge(t, r), [s, l] = g.useState(null), { trigger: c, onClose: f } = n, a = r.current, { onPointerInTransitChange: d } = o, p = g.useCallback(() => {
|
|
1694
|
+
l(null), d(!1);
|
|
1695
|
+
}, [d]), u = g.useCallback(
|
|
1691
1696
|
(m, h) => {
|
|
1692
|
-
const w = m.currentTarget, y = { x: m.clientX, y: m.clientY },
|
|
1693
|
-
|
|
1697
|
+
const w = m.currentTarget, y = { x: m.clientX, y: m.clientY }, v = Ho(y, w.getBoundingClientRect()), b = Fo(y, v), x = $o(h.getBoundingClientRect()), C = Wo([...b, ...x]);
|
|
1698
|
+
l(C), d(!0);
|
|
1694
1699
|
},
|
|
1695
|
-
[
|
|
1700
|
+
[d]
|
|
1696
1701
|
);
|
|
1697
1702
|
return g.useEffect(() => () => p(), [p]), g.useEffect(() => {
|
|
1698
|
-
if (c &&
|
|
1699
|
-
const m = (w) =>
|
|
1700
|
-
return c.addEventListener("pointerleave", m),
|
|
1701
|
-
c.removeEventListener("pointerleave", m),
|
|
1703
|
+
if (c && a) {
|
|
1704
|
+
const m = (w) => u(w, a), h = (w) => u(w, c);
|
|
1705
|
+
return c.addEventListener("pointerleave", m), a.addEventListener("pointerleave", h), () => {
|
|
1706
|
+
c.removeEventListener("pointerleave", m), a.removeEventListener("pointerleave", h);
|
|
1702
1707
|
};
|
|
1703
1708
|
}
|
|
1704
|
-
}, [c,
|
|
1709
|
+
}, [c, a, u, p]), g.useEffect(() => {
|
|
1705
1710
|
if (s) {
|
|
1706
1711
|
const m = (h) => {
|
|
1707
|
-
const w = h.target, y = { x: h.clientX, y: h.clientY },
|
|
1708
|
-
|
|
1712
|
+
const w = h.target, y = { x: h.clientX, y: h.clientY }, v = c?.contains(w) || a?.contains(w), b = !Io(y, s);
|
|
1713
|
+
v ? p() : b && (p(), f());
|
|
1709
1714
|
};
|
|
1710
1715
|
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
1711
1716
|
}
|
|
1712
|
-
}, [c,
|
|
1713
|
-
}), [Mo, _o] =
|
|
1717
|
+
}, [c, a, s, f, p]), /* @__PURE__ */ O(St, { ...e, ref: i });
|
|
1718
|
+
}), [Mo, _o] = be(se, { isInside: !1 }), ko = /* @__PURE__ */ Co("TooltipContent"), St = g.forwardRef(
|
|
1714
1719
|
(e, t) => {
|
|
1715
1720
|
const {
|
|
1716
1721
|
__scopeTooltip: n,
|
|
@@ -1718,33 +1723,33 @@ var So = "TooltipPortal", [Jo, Lo] = Ce(So, {
|
|
|
1718
1723
|
"aria-label": r,
|
|
1719
1724
|
onEscapeKeyDown: i,
|
|
1720
1725
|
onPointerDownOutside: s,
|
|
1721
|
-
...
|
|
1722
|
-
} = e, c =
|
|
1723
|
-
return g.useEffect(() => (document.addEventListener(
|
|
1726
|
+
...l
|
|
1727
|
+
} = e, c = Ae(te, n), f = Ce(n), { onClose: a } = c;
|
|
1728
|
+
return g.useEffect(() => (document.addEventListener(Se, a), () => document.removeEventListener(Se, a)), [a]), g.useEffect(() => {
|
|
1724
1729
|
if (c.trigger) {
|
|
1725
|
-
const
|
|
1726
|
-
p.target?.contains(c.trigger) &&
|
|
1730
|
+
const d = (p) => {
|
|
1731
|
+
p.target?.contains(c.trigger) && a();
|
|
1727
1732
|
};
|
|
1728
|
-
return window.addEventListener("scroll",
|
|
1733
|
+
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
1729
1734
|
}
|
|
1730
|
-
}, [c.trigger,
|
|
1731
|
-
|
|
1735
|
+
}, [c.trigger, a]), /* @__PURE__ */ O(
|
|
1736
|
+
Vt,
|
|
1732
1737
|
{
|
|
1733
1738
|
asChild: !0,
|
|
1734
1739
|
disableOutsidePointerEvents: !1,
|
|
1735
1740
|
onEscapeKeyDown: i,
|
|
1736
1741
|
onPointerDownOutside: s,
|
|
1737
|
-
onFocusOutside: (
|
|
1738
|
-
onDismiss:
|
|
1739
|
-
children: /* @__PURE__ */
|
|
1742
|
+
onFocusOutside: (d) => d.preventDefault(),
|
|
1743
|
+
onDismiss: a,
|
|
1744
|
+
children: /* @__PURE__ */ Xt(
|
|
1740
1745
|
xo,
|
|
1741
1746
|
{
|
|
1742
1747
|
"data-state": c.stateAttribute,
|
|
1743
1748
|
...f,
|
|
1744
|
-
...
|
|
1749
|
+
...l,
|
|
1745
1750
|
ref: t,
|
|
1746
1751
|
style: {
|
|
1747
|
-
...
|
|
1752
|
+
...l.style,
|
|
1748
1753
|
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1749
1754
|
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
1750
1755
|
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
@@ -1752,8 +1757,8 @@ var So = "TooltipPortal", [Jo, Lo] = Ce(So, {
|
|
|
1752
1757
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1753
1758
|
},
|
|
1754
1759
|
children: [
|
|
1755
|
-
/* @__PURE__ */
|
|
1756
|
-
/* @__PURE__ */
|
|
1760
|
+
/* @__PURE__ */ O(ko, { children: o }),
|
|
1761
|
+
/* @__PURE__ */ O(Mo, { scope: n, isInside: !0, children: /* @__PURE__ */ O(Po, { id: c.contentId, role: "tooltip", children: r || o }) })
|
|
1757
1762
|
]
|
|
1758
1763
|
}
|
|
1759
1764
|
)
|
|
@@ -1761,17 +1766,17 @@ var So = "TooltipPortal", [Jo, Lo] = Ce(So, {
|
|
|
1761
1766
|
);
|
|
1762
1767
|
}
|
|
1763
1768
|
);
|
|
1764
|
-
|
|
1765
|
-
var
|
|
1769
|
+
Et.displayName = te;
|
|
1770
|
+
var Lt = "TooltipArrow", No = g.forwardRef(
|
|
1766
1771
|
(e, t) => {
|
|
1767
|
-
const { __scopeTooltip: n, ...o } = e, r =
|
|
1772
|
+
const { __scopeTooltip: n, ...o } = e, r = Ce(n);
|
|
1768
1773
|
return _o(
|
|
1769
|
-
|
|
1774
|
+
Lt,
|
|
1770
1775
|
n
|
|
1771
|
-
).isInside ? null : /* @__PURE__ */
|
|
1776
|
+
).isInside ? null : /* @__PURE__ */ O(vo, { ...r, ...o, ref: t });
|
|
1772
1777
|
}
|
|
1773
1778
|
);
|
|
1774
|
-
No.displayName =
|
|
1779
|
+
No.displayName = Lt;
|
|
1775
1780
|
function Ho(e, t) {
|
|
1776
1781
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
1777
1782
|
switch (Math.min(n, o, r, i)) {
|
|
@@ -1787,7 +1792,7 @@ function Ho(e, t) {
|
|
|
1787
1792
|
throw new Error("unreachable");
|
|
1788
1793
|
}
|
|
1789
1794
|
}
|
|
1790
|
-
function
|
|
1795
|
+
function Fo(e, t, n = 5) {
|
|
1791
1796
|
const o = [];
|
|
1792
1797
|
switch (t) {
|
|
1793
1798
|
case "top":
|
|
@@ -1817,7 +1822,7 @@ function $o(e, t, n = 5) {
|
|
|
1817
1822
|
}
|
|
1818
1823
|
return o;
|
|
1819
1824
|
}
|
|
1820
|
-
function
|
|
1825
|
+
function $o(e) {
|
|
1821
1826
|
const { top: t, right: n, bottom: o, left: r } = e;
|
|
1822
1827
|
return [
|
|
1823
1828
|
{ x: r, y: t },
|
|
@@ -1830,8 +1835,8 @@ function Io(e, t) {
|
|
|
1830
1835
|
const { x: n, y: o } = e;
|
|
1831
1836
|
let r = !1;
|
|
1832
1837
|
for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
|
|
1833
|
-
const
|
|
1834
|
-
|
|
1838
|
+
const l = t[i], c = t[s], f = l.x, a = l.y, d = c.x, p = c.y;
|
|
1839
|
+
a > o != p > o && n < (d - f) * (o - a) / (p - a) + f && (r = !r);
|
|
1835
1840
|
}
|
|
1836
1841
|
return r;
|
|
1837
1842
|
}
|
|
@@ -1864,10 +1869,10 @@ function Bo(e) {
|
|
|
1864
1869
|
}
|
|
1865
1870
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
1866
1871
|
}
|
|
1867
|
-
var
|
|
1872
|
+
var Jo = Pt, Qo = Ot, er = Tt, tr = Et;
|
|
1868
1873
|
export {
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1874
|
+
tr as C,
|
|
1875
|
+
Jo as P,
|
|
1876
|
+
Qo as R,
|
|
1877
|
+
er as T
|
|
1873
1878
|
};
|