@purpurds/tooltip 5.20.1 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/ci_build/@purpurds/tooltip/{2e5e5a223b96d6a893662202683db0ff7f580bd3.untar.log → 4cf5f59e683a07786ed9f54bd15ef2b8db29f321.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +5 -5
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +4 -4
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +67 -86
- package/dist/LICENSE.txt +4 -4
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.es.js +359 -358
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +11 -11
package/dist/tooltip.es.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as Ye, jsx as z } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
|
-
import { forwardRef as I, useCallback as j, createContext as Ge, useMemo as we, createElement as w, useContext as Et, Fragment as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import { forwardRef as I, useCallback as j, createContext as Ge, useMemo as we, createElement as w, useContext as Et, Fragment as wn, Children as ie, isValidElement as Me, cloneElement as tt, useEffect as S, useRef as k, useState as U, useLayoutEffect as Tt, useReducer as _n } from "react";
|
|
4
|
+
import * as Pn from "react-dom";
|
|
5
|
+
import An, { flushSync as St } from "react-dom";
|
|
6
|
+
const On = {
|
|
7
7
|
PRIMARY: "primary",
|
|
8
8
|
SECONDARY: "secondary",
|
|
9
9
|
EXPRESSIVE: "expressive"
|
|
10
|
-
},
|
|
10
|
+
}, Cn = {
|
|
11
11
|
SM: "sm",
|
|
12
12
|
MD: "md",
|
|
13
13
|
LG: "lg"
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function En(e) {
|
|
16
16
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
17
17
|
}
|
|
18
18
|
var Rt = { exports: {} };
|
|
@@ -26,8 +26,8 @@ var Rt = { exports: {} };
|
|
|
26
26
|
var t = {}.hasOwnProperty;
|
|
27
27
|
function n() {
|
|
28
28
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var a = arguments[s];
|
|
30
|
+
a && (r = i(r, o(a)));
|
|
31
31
|
}
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
@@ -41,8 +41,8 @@ var Rt = { exports: {} };
|
|
|
41
41
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
42
42
|
return r.toString();
|
|
43
43
|
var s = "";
|
|
44
|
-
for (var
|
|
45
|
-
t.call(r,
|
|
44
|
+
for (var a in r)
|
|
45
|
+
t.call(r, a) && r[a] && (s = i(s, a));
|
|
46
46
|
return s;
|
|
47
47
|
}
|
|
48
48
|
function i(r, s) {
|
|
@@ -51,30 +51,30 @@ var Rt = { exports: {} };
|
|
|
51
51
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
52
52
|
})();
|
|
53
53
|
})(Rt);
|
|
54
|
-
var
|
|
55
|
-
const ht = /* @__PURE__ */
|
|
54
|
+
var Tn = Rt.exports;
|
|
55
|
+
const ht = /* @__PURE__ */ En(Tn), Sn = "_rotate_1xozj_1", Rn = "_dash_1xozj_1", ye = {
|
|
56
56
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
57
|
-
rotate:
|
|
57
|
+
rotate: Sn,
|
|
58
58
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
59
59
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
60
60
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
61
61
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
62
62
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
63
63
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
64
|
-
dash:
|
|
64
|
+
dash: Rn,
|
|
65
65
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
66
66
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
67
|
-
}, xe = "purpur-spinner",
|
|
67
|
+
}, xe = "purpur-spinner", Dn = {
|
|
68
68
|
XXS: "xxs",
|
|
69
69
|
XS: "xs",
|
|
70
70
|
SM: "sm",
|
|
71
71
|
MD: "md",
|
|
72
72
|
LG: "lg"
|
|
73
|
-
},
|
|
73
|
+
}, Nn = ({
|
|
74
74
|
["data-testid"]: e,
|
|
75
75
|
disabled: t = !1,
|
|
76
76
|
negative: n = !1,
|
|
77
|
-
size: o =
|
|
77
|
+
size: o = Dn.SM,
|
|
78
78
|
...i
|
|
79
79
|
}) => /* @__PURE__ */ z(
|
|
80
80
|
"div",
|
|
@@ -96,7 +96,7 @@ const ht = /* @__PURE__ */ Cn(En), Tn = "_rotate_1xozj_1", Sn = "_dash_1xozj_1",
|
|
|
96
96
|
) })
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
|
-
function
|
|
99
|
+
function Ln(e) {
|
|
100
100
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
101
101
|
}
|
|
102
102
|
var Dt = { exports: {} };
|
|
@@ -110,8 +110,8 @@ var Dt = { exports: {} };
|
|
|
110
110
|
var t = {}.hasOwnProperty;
|
|
111
111
|
function n() {
|
|
112
112
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
113
|
-
var
|
|
114
|
-
|
|
113
|
+
var a = arguments[s];
|
|
114
|
+
a && (r = i(r, o.call(this, a)));
|
|
115
115
|
}
|
|
116
116
|
return r;
|
|
117
117
|
}
|
|
@@ -125,8 +125,8 @@ var Dt = { exports: {} };
|
|
|
125
125
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
126
126
|
return r.toString();
|
|
127
127
|
var s = "";
|
|
128
|
-
for (var
|
|
129
|
-
t.call(r,
|
|
128
|
+
for (var a in r)
|
|
129
|
+
t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
|
|
130
130
|
return s;
|
|
131
131
|
}
|
|
132
132
|
function i(r, s) {
|
|
@@ -135,8 +135,8 @@ var Dt = { exports: {} };
|
|
|
135
135
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
136
136
|
})();
|
|
137
137
|
})(Dt);
|
|
138
|
-
var
|
|
139
|
-
const
|
|
138
|
+
var Mn = Dt.exports;
|
|
139
|
+
const kn = /* @__PURE__ */ Ln(Mn), In = {
|
|
140
140
|
"purpur-button": "_purpur-button_1acxn_1",
|
|
141
141
|
"purpur-button--sm": "_purpur-button--sm_1acxn_33",
|
|
142
142
|
"purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
|
|
@@ -157,12 +157,12 @@ const Mn = /* @__PURE__ */ Nn(Ln), kn = {
|
|
|
157
157
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
|
|
158
158
|
"purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
|
|
159
159
|
"purpur-button--text": "_purpur-button--text_1acxn_175"
|
|
160
|
-
},
|
|
161
|
-
...
|
|
160
|
+
}, Fn = {
|
|
161
|
+
...On,
|
|
162
162
|
DESTRUCTIVE: "destructive",
|
|
163
163
|
TERTIARY_PURPLE: "tertiary-purple",
|
|
164
164
|
TEXT: "text"
|
|
165
|
-
},
|
|
165
|
+
}, Hn = kn.bind(In), oe = "purpur-button", Bn = ({
|
|
166
166
|
children: e,
|
|
167
167
|
className: t,
|
|
168
168
|
["data-testid"]: n,
|
|
@@ -170,8 +170,8 @@ const Mn = /* @__PURE__ */ Nn(Ln), kn = {
|
|
|
170
170
|
fullWidth: i = !1,
|
|
171
171
|
iconOnly: r,
|
|
172
172
|
loading: s = !1,
|
|
173
|
-
negative:
|
|
174
|
-
onClick:
|
|
173
|
+
negative: a = !1,
|
|
174
|
+
onClick: c,
|
|
175
175
|
size: l = "md",
|
|
176
176
|
variant: u,
|
|
177
177
|
type: d = "button",
|
|
@@ -179,21 +179,21 @@ const Mn = /* @__PURE__ */ Nn(Ln), kn = {
|
|
|
179
179
|
}, f) => {
|
|
180
180
|
if (r && u === "destructive")
|
|
181
181
|
return null;
|
|
182
|
-
const h =
|
|
182
|
+
const h = Hn(
|
|
183
183
|
[
|
|
184
184
|
oe,
|
|
185
|
-
`${oe}--${
|
|
185
|
+
`${oe}--${a ? `${u}-negative` : u}`,
|
|
186
186
|
`${oe}--${l}`
|
|
187
187
|
],
|
|
188
188
|
{
|
|
189
189
|
[`${oe}--icon-only`]: r,
|
|
190
|
-
[`${oe}--negative`]:
|
|
190
|
+
[`${oe}--negative`]: a,
|
|
191
191
|
[`${oe}--full-width`]: i,
|
|
192
192
|
[`${oe}--disabled`]: o || s
|
|
193
193
|
},
|
|
194
194
|
t
|
|
195
195
|
), m = (v) => {
|
|
196
|
-
o || s ? v.preventDefault() :
|
|
196
|
+
o || s ? v.preventDefault() : c && c(v);
|
|
197
197
|
}, g = !!p["aria-disabled"] || o || s;
|
|
198
198
|
return /* @__PURE__ */ Ye(
|
|
199
199
|
"button",
|
|
@@ -206,15 +206,15 @@ const Mn = /* @__PURE__ */ Nn(Ln), kn = {
|
|
|
206
206
|
onClick: m,
|
|
207
207
|
...p,
|
|
208
208
|
children: [
|
|
209
|
-
s && /* @__PURE__ */ z(
|
|
209
|
+
s && /* @__PURE__ */ z(Nn, { size: l === Cn.LG ? "xs" : "xxs", negative: a, disabled: g }),
|
|
210
210
|
" ",
|
|
211
211
|
e
|
|
212
212
|
]
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
|
-
}, Nt = I(
|
|
215
|
+
}, Nt = I(Bn);
|
|
216
216
|
Nt.displayName = "Button";
|
|
217
|
-
function
|
|
217
|
+
function zn(e) {
|
|
218
218
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
219
219
|
}
|
|
220
220
|
var Lt = { exports: {} };
|
|
@@ -228,8 +228,8 @@ var Lt = { exports: {} };
|
|
|
228
228
|
var t = {}.hasOwnProperty;
|
|
229
229
|
function n() {
|
|
230
230
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var a = arguments[s];
|
|
232
|
+
a && (r = i(r, o.call(this, a)));
|
|
233
233
|
}
|
|
234
234
|
return r;
|
|
235
235
|
}
|
|
@@ -243,8 +243,8 @@ var Lt = { exports: {} };
|
|
|
243
243
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
244
244
|
return r.toString();
|
|
245
245
|
var s = "";
|
|
246
|
-
for (var
|
|
247
|
-
t.call(r,
|
|
246
|
+
for (var a in r)
|
|
247
|
+
t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
|
|
248
248
|
return s;
|
|
249
249
|
}
|
|
250
250
|
function i(r, s) {
|
|
@@ -253,8 +253,8 @@ var Lt = { exports: {} };
|
|
|
253
253
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
254
254
|
})();
|
|
255
255
|
})(Lt);
|
|
256
|
-
var
|
|
257
|
-
const
|
|
256
|
+
var jn = Lt.exports;
|
|
257
|
+
const Wn = /* @__PURE__ */ zn(jn), Un = {
|
|
258
258
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
259
259
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
260
260
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -262,54 +262,55 @@ const jn = /* @__PURE__ */ Bn(zn), Wn = {
|
|
|
262
262
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
263
263
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
264
264
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
265
|
-
},
|
|
265
|
+
}, Vn = {
|
|
266
266
|
name: "info",
|
|
267
267
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
268
268
|
keywords: ["info"],
|
|
269
269
|
category: "status"
|
|
270
270
|
}, Mt = (e) => /* @__PURE__ */ z(
|
|
271
|
-
|
|
271
|
+
kt,
|
|
272
272
|
{
|
|
273
273
|
...e,
|
|
274
|
-
svg:
|
|
274
|
+
svg: Vn
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
277
|
Mt.displayName = "IconInfo";
|
|
278
|
-
const
|
|
278
|
+
const Xn = Wn.bind(Un), gt = "purpur-icon", Yn = "md", Gn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), qn = ({ content: e = "", title: t } = {}) => {
|
|
279
279
|
const n = [
|
|
280
280
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
281
281
|
{ name: "fill", value: "currentColor" },
|
|
282
282
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
283
283
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
284
284
|
], o = t ? `<title>${t}</title>` : "";
|
|
285
|
-
return `<svg ${
|
|
286
|
-
},
|
|
285
|
+
return `<svg ${Gn(n)}>${o}${e}</svg>`;
|
|
286
|
+
}, Kn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), kt = ({
|
|
287
287
|
["data-testid"]: e,
|
|
288
288
|
svg: t,
|
|
289
289
|
allyTitle: n,
|
|
290
290
|
className: o,
|
|
291
|
-
size: i =
|
|
291
|
+
size: i = Yn,
|
|
292
292
|
...r
|
|
293
293
|
}) => {
|
|
294
|
-
const s =
|
|
295
|
-
content:
|
|
294
|
+
const s = qn({
|
|
295
|
+
content: Kn(t.svg),
|
|
296
296
|
title: n
|
|
297
|
-
}),
|
|
297
|
+
}), a = Xn(o, gt, `${gt}--${i}`);
|
|
298
298
|
return /* @__PURE__ */ z(
|
|
299
299
|
"span",
|
|
300
300
|
{
|
|
301
301
|
"aria-label": n,
|
|
302
|
-
className:
|
|
302
|
+
className: a,
|
|
303
303
|
"data-testid": e,
|
|
304
304
|
dangerouslySetInnerHTML: { __html: s },
|
|
305
305
|
...r
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
308
|
};
|
|
309
|
+
kt.displayName = "Icon";
|
|
309
310
|
function Zn(e) {
|
|
310
311
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
311
312
|
}
|
|
312
|
-
var
|
|
313
|
+
var It = { exports: {} };
|
|
313
314
|
/*!
|
|
314
315
|
Copyright (c) 2018 Jed Watson.
|
|
315
316
|
Licensed under the MIT License (MIT), see
|
|
@@ -320,8 +321,8 @@ var kt = { exports: {} };
|
|
|
320
321
|
var t = {}.hasOwnProperty;
|
|
321
322
|
function n() {
|
|
322
323
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
323
|
-
var
|
|
324
|
-
|
|
324
|
+
var a = arguments[s];
|
|
325
|
+
a && (r = i(r, o(a)));
|
|
325
326
|
}
|
|
326
327
|
return r;
|
|
327
328
|
}
|
|
@@ -335,8 +336,8 @@ var kt = { exports: {} };
|
|
|
335
336
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
336
337
|
return r.toString();
|
|
337
338
|
var s = "";
|
|
338
|
-
for (var
|
|
339
|
-
t.call(r,
|
|
339
|
+
for (var a in r)
|
|
340
|
+
t.call(r, a) && r[a] && (s = i(s, a));
|
|
340
341
|
return s;
|
|
341
342
|
}
|
|
342
343
|
function i(r, s) {
|
|
@@ -344,8 +345,8 @@ var kt = { exports: {} };
|
|
|
344
345
|
}
|
|
345
346
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
346
347
|
})();
|
|
347
|
-
})(
|
|
348
|
-
var Jn =
|
|
348
|
+
})(It);
|
|
349
|
+
var Jn = It.exports;
|
|
349
350
|
const Qn = /* @__PURE__ */ Zn(Jn), be = {
|
|
350
351
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
351
352
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
@@ -361,7 +362,7 @@ const Qn = /* @__PURE__ */ Zn(Jn), be = {
|
|
|
361
362
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
362
363
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
363
364
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
364
|
-
},
|
|
365
|
+
}, Ft = {
|
|
365
366
|
PARAGRAPH100: "paragraph-100",
|
|
366
367
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
367
368
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -372,17 +373,17 @@ const Qn = /* @__PURE__ */ Zn(Jn), be = {
|
|
|
372
373
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
373
374
|
OVERLINE100: "overline-100",
|
|
374
375
|
OVERLINE200: "overline-200"
|
|
375
|
-
}, $e = "purpur-paragraph",
|
|
376
|
+
}, $e = "purpur-paragraph", Ht = ({
|
|
376
377
|
["data-testid"]: e,
|
|
377
378
|
children: t,
|
|
378
379
|
className: n,
|
|
379
380
|
disabled: o,
|
|
380
381
|
enableHyphenation: i = !1,
|
|
381
382
|
negative: r = !1,
|
|
382
|
-
variant: s =
|
|
383
|
-
...
|
|
383
|
+
variant: s = Ft.PARAGRAPH100,
|
|
384
|
+
...a
|
|
384
385
|
}) => {
|
|
385
|
-
const
|
|
386
|
+
const c = Qn([
|
|
386
387
|
n,
|
|
387
388
|
be[$e],
|
|
388
389
|
be[`${$e}--${s}`],
|
|
@@ -392,9 +393,9 @@ const Qn = /* @__PURE__ */ Zn(Jn), be = {
|
|
|
392
393
|
[be[`${$e}--negative`]]: r
|
|
393
394
|
}
|
|
394
395
|
]);
|
|
395
|
-
return /* @__PURE__ */ z("p", { ...
|
|
396
|
+
return /* @__PURE__ */ z("p", { ...a, className: c, "data-testid": e, children: t });
|
|
396
397
|
};
|
|
397
|
-
|
|
398
|
+
Ht.displayName = "Paragraph";
|
|
398
399
|
const er = "400ms";
|
|
399
400
|
function R() {
|
|
400
401
|
return R = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -413,24 +414,24 @@ function Z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
413
414
|
function tr(e, t) {
|
|
414
415
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
+
function Bt(...e) {
|
|
417
418
|
return (t) => e.forEach(
|
|
418
419
|
(n) => tr(n, t)
|
|
419
420
|
);
|
|
420
421
|
}
|
|
421
422
|
function pe(...e) {
|
|
422
|
-
return j(
|
|
423
|
+
return j(Bt(...e), e);
|
|
423
424
|
}
|
|
424
|
-
function
|
|
425
|
+
function zt(e, t = []) {
|
|
425
426
|
let n = [];
|
|
426
427
|
function o(r, s) {
|
|
427
|
-
const
|
|
428
|
+
const a = /* @__PURE__ */ Ge(s), c = n.length;
|
|
428
429
|
n = [
|
|
429
430
|
...n,
|
|
430
431
|
s
|
|
431
432
|
];
|
|
432
433
|
function l(d) {
|
|
433
|
-
const { scope: p, children: f, ...h } = d, m = (p == null ? void 0 : p[e][
|
|
434
|
+
const { scope: p, children: f, ...h } = d, m = (p == null ? void 0 : p[e][c]) || a, g = we(
|
|
434
435
|
() => h,
|
|
435
436
|
Object.values(h)
|
|
436
437
|
);
|
|
@@ -439,7 +440,7 @@ function Bt(e, t = []) {
|
|
|
439
440
|
}, f);
|
|
440
441
|
}
|
|
441
442
|
function u(d, p) {
|
|
442
|
-
const f = (p == null ? void 0 : p[e][
|
|
443
|
+
const f = (p == null ? void 0 : p[e][c]) || a, h = Et(f);
|
|
443
444
|
if (h) return h;
|
|
444
445
|
if (s !== void 0) return s;
|
|
445
446
|
throw new Error(`\`${d}\` must be used within \`${r}\``);
|
|
@@ -451,18 +452,18 @@ function Bt(e, t = []) {
|
|
|
451
452
|
}
|
|
452
453
|
const i = () => {
|
|
453
454
|
const r = n.map((s) => /* @__PURE__ */ Ge(s));
|
|
454
|
-
return function(
|
|
455
|
-
const
|
|
455
|
+
return function(a) {
|
|
456
|
+
const c = (a == null ? void 0 : a[e]) || r;
|
|
456
457
|
return we(
|
|
457
458
|
() => ({
|
|
458
459
|
[`__scope${e}`]: {
|
|
459
|
-
...
|
|
460
|
-
[e]:
|
|
460
|
+
...a,
|
|
461
|
+
[e]: c
|
|
461
462
|
}
|
|
462
463
|
}),
|
|
463
464
|
[
|
|
464
|
-
|
|
465
|
-
|
|
465
|
+
a,
|
|
466
|
+
c
|
|
466
467
|
]
|
|
467
468
|
);
|
|
468
469
|
};
|
|
@@ -483,10 +484,10 @@ function nr(...e) {
|
|
|
483
484
|
})
|
|
484
485
|
);
|
|
485
486
|
return function(r) {
|
|
486
|
-
const s = o.reduce((
|
|
487
|
-
const d =
|
|
487
|
+
const s = o.reduce((a, { useScope: c, scopeName: l }) => {
|
|
488
|
+
const d = c(r)[`__scope${l}`];
|
|
488
489
|
return {
|
|
489
|
-
...
|
|
490
|
+
...a,
|
|
490
491
|
...d
|
|
491
492
|
};
|
|
492
493
|
}, {});
|
|
@@ -502,30 +503,30 @@ function nr(...e) {
|
|
|
502
503
|
};
|
|
503
504
|
return n.scopeName = t.scopeName, n;
|
|
504
505
|
}
|
|
505
|
-
const
|
|
506
|
+
const jt = /* @__PURE__ */ I((e, t) => {
|
|
506
507
|
const { children: n, ...o } = e, i = ie.toArray(n), r = i.find(rr);
|
|
507
508
|
if (r) {
|
|
508
|
-
const s = r.props.children,
|
|
509
|
+
const s = r.props.children, a = i.map((c) => c === r ? ie.count(s) > 1 ? ie.only(null) : /* @__PURE__ */ Me(s) ? s.props.children : null : c);
|
|
509
510
|
return /* @__PURE__ */ w(qe, R({}, o, {
|
|
510
511
|
ref: t
|
|
511
|
-
}), /* @__PURE__ */ Me(s) ? /* @__PURE__ */ tt(s, void 0,
|
|
512
|
+
}), /* @__PURE__ */ Me(s) ? /* @__PURE__ */ tt(s, void 0, a) : null);
|
|
512
513
|
}
|
|
513
514
|
return /* @__PURE__ */ w(qe, R({}, o, {
|
|
514
515
|
ref: t
|
|
515
516
|
}), n);
|
|
516
517
|
});
|
|
517
|
-
|
|
518
|
+
jt.displayName = "Slot";
|
|
518
519
|
const qe = /* @__PURE__ */ I((e, t) => {
|
|
519
520
|
const { children: n, ...o } = e;
|
|
520
521
|
return /* @__PURE__ */ Me(n) ? /* @__PURE__ */ tt(n, {
|
|
521
522
|
...or(o, n.props),
|
|
522
|
-
ref: t ?
|
|
523
|
+
ref: t ? Bt(t, n.ref) : n.ref
|
|
523
524
|
}) : ie.count(n) > 1 ? ie.only(null) : null;
|
|
524
525
|
});
|
|
525
526
|
qe.displayName = "SlotClone";
|
|
526
|
-
const
|
|
527
|
+
const Wt = ({ children: e }) => /* @__PURE__ */ w(wn, null, e);
|
|
527
528
|
function rr(e) {
|
|
528
|
-
return /* @__PURE__ */ Me(e) && e.type ===
|
|
529
|
+
return /* @__PURE__ */ Me(e) && e.type === Wt;
|
|
529
530
|
}
|
|
530
531
|
function or(e, t) {
|
|
531
532
|
const n = {
|
|
@@ -533,8 +534,8 @@ function or(e, t) {
|
|
|
533
534
|
};
|
|
534
535
|
for (const o in t) {
|
|
535
536
|
const i = e[o], r = t[o];
|
|
536
|
-
/^on[A-Z]/.test(o) ? i && r ? n[o] = (...
|
|
537
|
-
r(...
|
|
537
|
+
/^on[A-Z]/.test(o) ? i && r ? n[o] = (...a) => {
|
|
538
|
+
r(...a), i(...a);
|
|
538
539
|
} : i && (n[o] = i) : o === "style" ? n[o] = {
|
|
539
540
|
...i,
|
|
540
541
|
...r
|
|
@@ -565,12 +566,12 @@ const ir = [
|
|
|
565
566
|
"span",
|
|
566
567
|
"svg",
|
|
567
568
|
"ul"
|
|
568
|
-
],
|
|
569
|
+
], ae = ir.reduce((e, t) => {
|
|
569
570
|
const n = /* @__PURE__ */ I((o, i) => {
|
|
570
|
-
const { asChild: r, ...s } = o,
|
|
571
|
+
const { asChild: r, ...s } = o, a = r ? jt : t;
|
|
571
572
|
return S(() => {
|
|
572
573
|
window[Symbol.for("radix-ui")] = !0;
|
|
573
|
-
}, []), /* @__PURE__ */ w(
|
|
574
|
+
}, []), /* @__PURE__ */ w(a, R({}, s, {
|
|
574
575
|
ref: i
|
|
575
576
|
}));
|
|
576
577
|
});
|
|
@@ -596,7 +597,7 @@ function he(e) {
|
|
|
596
597
|
[]
|
|
597
598
|
);
|
|
598
599
|
}
|
|
599
|
-
function
|
|
600
|
+
function ar(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
600
601
|
const n = he(e);
|
|
601
602
|
S(() => {
|
|
602
603
|
const o = (i) => {
|
|
@@ -608,7 +609,7 @@ function cr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
608
609
|
t
|
|
609
610
|
]);
|
|
610
611
|
}
|
|
611
|
-
const Ke = "dismissableLayer.update",
|
|
612
|
+
const Ke = "dismissableLayer.update", cr = "dismissableLayer.pointerDownOutside", lr = "dismissableLayer.focusOutside";
|
|
612
613
|
let mt;
|
|
613
614
|
const ur = /* @__PURE__ */ Ge({
|
|
614
615
|
layers: /* @__PURE__ */ new Set(),
|
|
@@ -616,7 +617,7 @@ const ur = /* @__PURE__ */ Ge({
|
|
|
616
617
|
branches: /* @__PURE__ */ new Set()
|
|
617
618
|
}), dr = /* @__PURE__ */ I((e, t) => {
|
|
618
619
|
var n;
|
|
619
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside:
|
|
620
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, u = Et(ur), [d, p] = U(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = U({}), m = pe(
|
|
620
621
|
t,
|
|
621
622
|
(_) => p(_)
|
|
622
623
|
), g = Array.from(u.layers), [v] = [
|
|
@@ -627,17 +628,17 @@ const ur = /* @__PURE__ */ Ge({
|
|
|
627
628
|
].some(
|
|
628
629
|
(D) => D.contains(E)
|
|
629
630
|
);
|
|
630
|
-
!$ || T || (r == null || r(_),
|
|
631
|
+
!$ || T || (r == null || r(_), a == null || a(_), _.defaultPrevented || c == null || c());
|
|
631
632
|
}, f), O = pr((_) => {
|
|
632
633
|
const E = _.target;
|
|
633
634
|
[
|
|
634
635
|
...u.branches
|
|
635
636
|
].some(
|
|
636
637
|
(D) => D.contains(E)
|
|
637
|
-
) || (s == null || s(_),
|
|
638
|
+
) || (s == null || s(_), a == null || a(_), _.defaultPrevented || c == null || c());
|
|
638
639
|
}, f);
|
|
639
|
-
return
|
|
640
|
-
x === u.layers.size - 1 && (i == null || i(_), !_.defaultPrevented &&
|
|
640
|
+
return ar((_) => {
|
|
641
|
+
x === u.layers.size - 1 && (i == null || i(_), !_.defaultPrevented && c && (_.preventDefault(), c()));
|
|
641
642
|
}, f), S(() => {
|
|
642
643
|
if (d)
|
|
643
644
|
return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (mt = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), vt(), () => {
|
|
@@ -656,7 +657,7 @@ const ur = /* @__PURE__ */ Ge({
|
|
|
656
657
|
]), S(() => {
|
|
657
658
|
const _ = () => h({});
|
|
658
659
|
return document.addEventListener(Ke, _), () => document.removeEventListener(Ke, _);
|
|
659
|
-
}, []), /* @__PURE__ */ w(
|
|
660
|
+
}, []), /* @__PURE__ */ w(ae.div, R({}, l, {
|
|
660
661
|
ref: m,
|
|
661
662
|
style: {
|
|
662
663
|
pointerEvents: b ? $ ? "auto" : "none" : void 0,
|
|
@@ -671,17 +672,17 @@ function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
671
672
|
const n = he(e), o = k(!1), i = k(() => {
|
|
672
673
|
});
|
|
673
674
|
return S(() => {
|
|
674
|
-
const r = (
|
|
675
|
-
if (
|
|
675
|
+
const r = (a) => {
|
|
676
|
+
if (a.target && !o.current) {
|
|
676
677
|
let l = function() {
|
|
677
|
-
|
|
678
|
+
Ut(cr, n, c, {
|
|
678
679
|
discrete: !0
|
|
679
680
|
});
|
|
680
681
|
};
|
|
681
|
-
const
|
|
682
|
-
originalEvent:
|
|
682
|
+
const c = {
|
|
683
|
+
originalEvent: a
|
|
683
684
|
};
|
|
684
|
-
|
|
685
|
+
a.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = l, t.addEventListener("click", i.current, {
|
|
685
686
|
once: !0
|
|
686
687
|
})) : l();
|
|
687
688
|
} else
|
|
@@ -705,7 +706,7 @@ function pr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
705
706
|
const n = he(e), o = k(!1);
|
|
706
707
|
return S(() => {
|
|
707
708
|
const i = (r) => {
|
|
708
|
-
r.target && !o.current &&
|
|
709
|
+
r.target && !o.current && Ut(lr, n, {
|
|
709
710
|
originalEvent: r
|
|
710
711
|
}, {
|
|
711
712
|
discrete: !1
|
|
@@ -724,7 +725,7 @@ function vt() {
|
|
|
724
725
|
const e = new CustomEvent(Ke);
|
|
725
726
|
document.dispatchEvent(e);
|
|
726
727
|
}
|
|
727
|
-
function
|
|
728
|
+
function Ut(e, t, n, { discrete: o }) {
|
|
728
729
|
const i = n.originalEvent.target, r = new CustomEvent(e, {
|
|
729
730
|
bubbles: !1,
|
|
730
731
|
cancelable: !0,
|
|
@@ -827,7 +828,7 @@ function Pr(e) {
|
|
|
827
828
|
...e
|
|
828
829
|
};
|
|
829
830
|
}
|
|
830
|
-
function
|
|
831
|
+
function Vt(e) {
|
|
831
832
|
return typeof e != "number" ? Pr(e) : {
|
|
832
833
|
top: e,
|
|
833
834
|
right: e,
|
|
@@ -858,9 +859,9 @@ function yt(e, t, n) {
|
|
|
858
859
|
reference: o,
|
|
859
860
|
floating: i
|
|
860
861
|
} = e;
|
|
861
|
-
const r = ne(t), s = ot(t),
|
|
862
|
+
const r = ne(t), s = ot(t), a = rt(s), c = Q(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[a] / 2 - i[a] / 2;
|
|
862
863
|
let f;
|
|
863
|
-
switch (
|
|
864
|
+
switch (c) {
|
|
864
865
|
case "top":
|
|
865
866
|
f = {
|
|
866
867
|
x: u,
|
|
@@ -907,7 +908,7 @@ const Ar = async (e, t, n) => {
|
|
|
907
908
|
strategy: i = "absolute",
|
|
908
909
|
middleware: r = [],
|
|
909
910
|
platform: s
|
|
910
|
-
} = n,
|
|
911
|
+
} = n, a = r.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
911
912
|
let l = await s.getElementRects({
|
|
912
913
|
reference: e,
|
|
913
914
|
floating: t,
|
|
@@ -915,12 +916,12 @@ const Ar = async (e, t, n) => {
|
|
|
915
916
|
}), {
|
|
916
917
|
x: u,
|
|
917
918
|
y: d
|
|
918
|
-
} = yt(l, o,
|
|
919
|
-
for (let m = 0; m <
|
|
919
|
+
} = yt(l, o, c), p = o, f = {}, h = 0;
|
|
920
|
+
for (let m = 0; m < a.length; m++) {
|
|
920
921
|
const {
|
|
921
922
|
name: g,
|
|
922
923
|
fn: v
|
|
923
|
-
} =
|
|
924
|
+
} = a[m], {
|
|
924
925
|
x: y,
|
|
925
926
|
y: x,
|
|
926
927
|
data: b,
|
|
@@ -952,7 +953,7 @@ const Ar = async (e, t, n) => {
|
|
|
952
953
|
}) : $.rects), {
|
|
953
954
|
x: u,
|
|
954
955
|
y: d
|
|
955
|
-
} = yt(l, p,
|
|
956
|
+
} = yt(l, p, c)), m = -1);
|
|
956
957
|
}
|
|
957
958
|
return {
|
|
958
959
|
x: u,
|
|
@@ -970,35 +971,35 @@ async function _e(e, t) {
|
|
|
970
971
|
y: i,
|
|
971
972
|
platform: r,
|
|
972
973
|
rects: s,
|
|
973
|
-
elements:
|
|
974
|
-
strategy:
|
|
974
|
+
elements: a,
|
|
975
|
+
strategy: c
|
|
975
976
|
} = e, {
|
|
976
977
|
boundary: l = "clippingAncestors",
|
|
977
978
|
rootBoundary: u = "viewport",
|
|
978
979
|
elementContext: d = "floating",
|
|
979
980
|
altBoundary: p = !1,
|
|
980
981
|
padding: f = 0
|
|
981
|
-
} = J(t, e), h =
|
|
982
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(g))) == null || n ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(
|
|
982
|
+
} = J(t, e), h = Vt(f), g = a[p ? d === "floating" ? "reference" : "floating" : d], v = Fe(await r.getClippingRect({
|
|
983
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(g))) == null || n ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
983
984
|
boundary: l,
|
|
984
985
|
rootBoundary: u,
|
|
985
|
-
strategy:
|
|
986
|
+
strategy: c
|
|
986
987
|
})), y = d === "floating" ? {
|
|
987
988
|
x: o,
|
|
988
989
|
y: i,
|
|
989
990
|
width: s.floating.width,
|
|
990
991
|
height: s.floating.height
|
|
991
|
-
} : s.reference, x = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(
|
|
992
|
+
} : s.reference, x = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), b = await (r.isElement == null ? void 0 : r.isElement(x)) ? await (r.getScale == null ? void 0 : r.getScale(x)) || {
|
|
992
993
|
x: 1,
|
|
993
994
|
y: 1
|
|
994
995
|
} : {
|
|
995
996
|
x: 1,
|
|
996
997
|
y: 1
|
|
997
998
|
}, $ = Fe(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
998
|
-
elements:
|
|
999
|
+
elements: a,
|
|
999
1000
|
rect: y,
|
|
1000
1001
|
offsetParent: x,
|
|
1001
|
-
strategy:
|
|
1002
|
+
strategy: c
|
|
1002
1003
|
}) : y);
|
|
1003
1004
|
return {
|
|
1004
1005
|
top: (v.top - $.top + h.top) / b.y,
|
|
@@ -1017,21 +1018,21 @@ const Or = (e) => ({
|
|
|
1017
1018
|
placement: i,
|
|
1018
1019
|
rects: r,
|
|
1019
1020
|
platform: s,
|
|
1020
|
-
elements:
|
|
1021
|
-
middlewareData:
|
|
1021
|
+
elements: a,
|
|
1022
|
+
middlewareData: c
|
|
1022
1023
|
} = t, {
|
|
1023
1024
|
element: l,
|
|
1024
1025
|
padding: u = 0
|
|
1025
1026
|
} = J(e, t) || {};
|
|
1026
1027
|
if (l == null)
|
|
1027
1028
|
return {};
|
|
1028
|
-
const d =
|
|
1029
|
+
const d = Vt(u), p = {
|
|
1029
1030
|
x: n,
|
|
1030
1031
|
y: o
|
|
1031
1032
|
}, f = ot(i), h = rt(f), m = await s.getDimensions(l), g = f === "y", v = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = r.reference[h] + r.reference[f] - p[f] - r.floating[h], $ = p[f] - r.reference[f], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1032
1033
|
let O = P ? P[x] : 0;
|
|
1033
|
-
(!O || !await (s.isElement == null ? void 0 : s.isElement(P))) && (O =
|
|
1034
|
-
const _ = b / 2 - $ / 2, E = O / 2 - m[h] / 2 - 1, T = q(d[v], E), D = q(d[y], E), M = T, X = O - m[h] - D, C = O / 2 - m[h] / 2 + _, F = Ze(M, C, X), H = !
|
|
1034
|
+
(!O || !await (s.isElement == null ? void 0 : s.isElement(P))) && (O = a.floating[x] || r.floating[h]);
|
|
1035
|
+
const _ = b / 2 - $ / 2, E = O / 2 - m[h] / 2 - 1, T = q(d[v], E), D = q(d[y], E), M = T, X = O - m[h] - D, C = O / 2 - m[h] / 2 + _, F = Ze(M, C, X), H = !c.arrow && ge(i) != null && C !== F && r.reference[h] / 2 - (C < M ? T : D) - m[h] / 2 < 0, A = H ? C < M ? C - M : C - X : 0;
|
|
1035
1036
|
return {
|
|
1036
1037
|
[f]: p[f] + A,
|
|
1037
1038
|
data: {
|
|
@@ -1054,8 +1055,8 @@ const Or = (e) => ({
|
|
|
1054
1055
|
placement: i,
|
|
1055
1056
|
middlewareData: r,
|
|
1056
1057
|
rects: s,
|
|
1057
|
-
initialPlacement:
|
|
1058
|
-
platform:
|
|
1058
|
+
initialPlacement: a,
|
|
1059
|
+
platform: c,
|
|
1059
1060
|
elements: l
|
|
1060
1061
|
} = t, {
|
|
1061
1062
|
mainAxis: u = !0,
|
|
@@ -1068,9 +1069,9 @@ const Or = (e) => ({
|
|
|
1068
1069
|
} = J(e, t);
|
|
1069
1070
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
1070
1071
|
return {};
|
|
1071
|
-
const v = Q(i), y = ne(
|
|
1072
|
-
!p && P && $.push(..._r(
|
|
1073
|
-
const O = [
|
|
1072
|
+
const v = Q(i), y = ne(a), x = Q(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), $ = p || (x || !m ? [Ie(a)] : $r(a)), P = h !== "none";
|
|
1073
|
+
!p && P && $.push(..._r(a, m, h, b));
|
|
1074
|
+
const O = [a, ...$], _ = await _e(t, g), E = [];
|
|
1074
1075
|
let T = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
1075
1076
|
if (u && E.push(_[v]), d) {
|
|
1076
1077
|
const C = br(i, s, b);
|
|
@@ -1110,7 +1111,7 @@ const Or = (e) => ({
|
|
|
1110
1111
|
break;
|
|
1111
1112
|
}
|
|
1112
1113
|
case "initialPlacement":
|
|
1113
|
-
H =
|
|
1114
|
+
H = a;
|
|
1114
1115
|
break;
|
|
1115
1116
|
}
|
|
1116
1117
|
if (i !== H)
|
|
@@ -1182,7 +1183,7 @@ async function Tr(e, t) {
|
|
|
1182
1183
|
placement: n,
|
|
1183
1184
|
platform: o,
|
|
1184
1185
|
elements: i
|
|
1185
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Q(n),
|
|
1186
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Q(n), a = ge(n), c = ne(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && c ? -1 : 1, d = J(t, e);
|
|
1186
1187
|
let {
|
|
1187
1188
|
mainAxis: p,
|
|
1188
1189
|
crossAxis: f,
|
|
@@ -1197,7 +1198,7 @@ async function Tr(e, t) {
|
|
|
1197
1198
|
alignmentAxis: null,
|
|
1198
1199
|
...d
|
|
1199
1200
|
};
|
|
1200
|
-
return
|
|
1201
|
+
return a && typeof h == "number" && (f = a === "end" ? h * -1 : h), c ? {
|
|
1201
1202
|
x: f * u,
|
|
1202
1203
|
y: p * l
|
|
1203
1204
|
} : {
|
|
@@ -1215,13 +1216,13 @@ const Sr = function(e) {
|
|
|
1215
1216
|
x: i,
|
|
1216
1217
|
y: r,
|
|
1217
1218
|
placement: s,
|
|
1218
|
-
middlewareData:
|
|
1219
|
-
} = t,
|
|
1220
|
-
return s === ((n =
|
|
1221
|
-
x: i +
|
|
1222
|
-
y: r +
|
|
1219
|
+
middlewareData: a
|
|
1220
|
+
} = t, c = await Tr(t, e);
|
|
1221
|
+
return s === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
1222
|
+
x: i + c.x,
|
|
1223
|
+
y: r + c.y,
|
|
1223
1224
|
data: {
|
|
1224
|
-
...
|
|
1225
|
+
...c,
|
|
1225
1226
|
placement: s
|
|
1226
1227
|
}
|
|
1227
1228
|
};
|
|
@@ -1239,7 +1240,7 @@ const Sr = function(e) {
|
|
|
1239
1240
|
} = t, {
|
|
1240
1241
|
mainAxis: r = !0,
|
|
1241
1242
|
crossAxis: s = !1,
|
|
1242
|
-
limiter:
|
|
1243
|
+
limiter: a = {
|
|
1243
1244
|
fn: (g) => {
|
|
1244
1245
|
let {
|
|
1245
1246
|
x: v,
|
|
@@ -1251,11 +1252,11 @@ const Sr = function(e) {
|
|
|
1251
1252
|
};
|
|
1252
1253
|
}
|
|
1253
1254
|
},
|
|
1254
|
-
...
|
|
1255
|
+
...c
|
|
1255
1256
|
} = J(e, t), l = {
|
|
1256
1257
|
x: n,
|
|
1257
1258
|
y: o
|
|
1258
|
-
}, u = await _e(t,
|
|
1259
|
+
}, u = await _e(t, c), d = ne(Q(i)), p = nt(d);
|
|
1259
1260
|
let f = l[p], h = l[d];
|
|
1260
1261
|
if (r) {
|
|
1261
1262
|
const g = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + u[g], x = f - u[v];
|
|
@@ -1265,7 +1266,7 @@ const Sr = function(e) {
|
|
|
1265
1266
|
const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = h + u[g], x = h - u[v];
|
|
1266
1267
|
h = Ze(y, h, x);
|
|
1267
1268
|
}
|
|
1268
|
-
const m =
|
|
1269
|
+
const m = a.fn({
|
|
1269
1270
|
...t,
|
|
1270
1271
|
[p]: f,
|
|
1271
1272
|
[d]: h
|
|
@@ -1290,15 +1291,15 @@ const Sr = function(e) {
|
|
|
1290
1291
|
rects: r,
|
|
1291
1292
|
middlewareData: s
|
|
1292
1293
|
} = t, {
|
|
1293
|
-
offset:
|
|
1294
|
-
mainAxis:
|
|
1294
|
+
offset: a = 0,
|
|
1295
|
+
mainAxis: c = !0,
|
|
1295
1296
|
crossAxis: l = !0
|
|
1296
1297
|
} = J(e, t), u = {
|
|
1297
1298
|
x: n,
|
|
1298
1299
|
y: o
|
|
1299
1300
|
}, d = ne(i), p = nt(d);
|
|
1300
1301
|
let f = u[p], h = u[d];
|
|
1301
|
-
const m = J(
|
|
1302
|
+
const m = J(a, t), g = typeof m == "number" ? {
|
|
1302
1303
|
mainAxis: m,
|
|
1303
1304
|
crossAxis: 0
|
|
1304
1305
|
} : {
|
|
@@ -1306,7 +1307,7 @@ const Sr = function(e) {
|
|
|
1306
1307
|
crossAxis: 0,
|
|
1307
1308
|
...m
|
|
1308
1309
|
};
|
|
1309
|
-
if (
|
|
1310
|
+
if (c) {
|
|
1310
1311
|
const x = p === "y" ? "height" : "width", b = r.reference[p] - r.floating[x] + g.mainAxis, $ = r.reference[p] + r.reference[x] - g.mainAxis;
|
|
1311
1312
|
f < b ? f = b : f > $ && (f = $);
|
|
1312
1313
|
}
|
|
@@ -1334,18 +1335,18 @@ const Sr = function(e) {
|
|
|
1334
1335
|
} = t, {
|
|
1335
1336
|
apply: s = () => {
|
|
1336
1337
|
},
|
|
1337
|
-
...
|
|
1338
|
-
} = J(e, t),
|
|
1338
|
+
...a
|
|
1339
|
+
} = J(e, t), c = await _e(t, a), l = Q(n), u = ge(n), d = ne(n) === "y", {
|
|
1339
1340
|
width: p,
|
|
1340
1341
|
height: f
|
|
1341
1342
|
} = o.floating;
|
|
1342
1343
|
let h, m;
|
|
1343
1344
|
l === "top" || l === "bottom" ? (h = l, m = u === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (m = l, h = u === "end" ? "top" : "bottom");
|
|
1344
|
-
const g = f -
|
|
1345
|
+
const g = f - c.top - c.bottom, v = p - c.left - c.right, y = q(f - c[h], g), x = q(p - c[m], v), b = !t.middlewareData.shift;
|
|
1345
1346
|
let $ = y, P = x;
|
|
1346
1347
|
if (d ? P = u || b ? q(x, v) : v : $ = u || b ? q(y, g) : g, b && !u) {
|
|
1347
|
-
const _ = W(
|
|
1348
|
-
d ? P = p - 2 * (_ !== 0 || E !== 0 ? _ + E : W(
|
|
1348
|
+
const _ = W(c.left, 0), E = W(c.right, 0), T = W(c.top, 0), D = W(c.bottom, 0);
|
|
1349
|
+
d ? P = p - 2 * (_ !== 0 || E !== 0 ? _ + E : W(c.left, c.right)) : $ = f - 2 * (T !== 0 || D !== 0 ? T + D : W(c.top, c.bottom));
|
|
1349
1350
|
}
|
|
1350
1351
|
await s({
|
|
1351
1352
|
...t,
|
|
@@ -1362,7 +1363,7 @@ const Sr = function(e) {
|
|
|
1362
1363
|
};
|
|
1363
1364
|
};
|
|
1364
1365
|
function me(e) {
|
|
1365
|
-
return
|
|
1366
|
+
return Xt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1366
1367
|
}
|
|
1367
1368
|
function V(e) {
|
|
1368
1369
|
var t;
|
|
@@ -1370,9 +1371,9 @@ function V(e) {
|
|
|
1370
1371
|
}
|
|
1371
1372
|
function ee(e) {
|
|
1372
1373
|
var t;
|
|
1373
|
-
return (t = (
|
|
1374
|
+
return (t = (Xt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1374
1375
|
}
|
|
1375
|
-
function
|
|
1376
|
+
function Xt(e) {
|
|
1376
1377
|
return e instanceof Node || e instanceof V(e).Node;
|
|
1377
1378
|
}
|
|
1378
1379
|
function Y(e) {
|
|
@@ -1450,53 +1451,53 @@ function re(e) {
|
|
|
1450
1451
|
);
|
|
1451
1452
|
return $t(t) ? t.host : t;
|
|
1452
1453
|
}
|
|
1453
|
-
function
|
|
1454
|
+
function Yt(e) {
|
|
1454
1455
|
const t = re(e);
|
|
1455
|
-
return fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Oe(t) ? t :
|
|
1456
|
+
return fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Oe(t) ? t : Yt(t);
|
|
1456
1457
|
}
|
|
1457
1458
|
function Pe(e, t, n) {
|
|
1458
1459
|
var o;
|
|
1459
1460
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1460
|
-
const i =
|
|
1461
|
+
const i = Yt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = V(i);
|
|
1461
1462
|
if (r) {
|
|
1462
|
-
const
|
|
1463
|
-
return t.concat(s, s.visualViewport || [], Oe(i) ? i : [],
|
|
1463
|
+
const a = Qe(s);
|
|
1464
|
+
return t.concat(s, s.visualViewport || [], Oe(i) ? i : [], a && n ? Pe(a) : []);
|
|
1464
1465
|
}
|
|
1465
1466
|
return t.concat(i, Pe(i, [], n));
|
|
1466
1467
|
}
|
|
1467
1468
|
function Qe(e) {
|
|
1468
1469
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1469
1470
|
}
|
|
1470
|
-
function
|
|
1471
|
+
function Gt(e) {
|
|
1471
1472
|
const t = G(e);
|
|
1472
1473
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1473
|
-
const i = K(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o,
|
|
1474
|
-
return
|
|
1474
|
+
const i = K(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = ke(n) !== r || ke(o) !== s;
|
|
1475
|
+
return a && (n = r, o = s), {
|
|
1475
1476
|
width: n,
|
|
1476
1477
|
height: o,
|
|
1477
|
-
$:
|
|
1478
|
+
$: a
|
|
1478
1479
|
};
|
|
1479
1480
|
}
|
|
1480
|
-
function
|
|
1481
|
+
function at(e) {
|
|
1481
1482
|
return Y(e) ? e : e.contextElement;
|
|
1482
1483
|
}
|
|
1483
1484
|
function ue(e) {
|
|
1484
|
-
const t =
|
|
1485
|
+
const t = at(e);
|
|
1485
1486
|
if (!K(t))
|
|
1486
1487
|
return te(1);
|
|
1487
1488
|
const n = t.getBoundingClientRect(), {
|
|
1488
1489
|
width: o,
|
|
1489
1490
|
height: i,
|
|
1490
1491
|
$: r
|
|
1491
|
-
} =
|
|
1492
|
-
let s = (r ? ke(n.width) : n.width) / o,
|
|
1493
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!
|
|
1492
|
+
} = Gt(t);
|
|
1493
|
+
let s = (r ? ke(n.width) : n.width) / o, a = (r ? ke(n.height) : n.height) / i;
|
|
1494
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
1494
1495
|
x: s,
|
|
1495
|
-
y:
|
|
1496
|
+
y: a
|
|
1496
1497
|
};
|
|
1497
1498
|
}
|
|
1498
1499
|
const kr = /* @__PURE__ */ te(0);
|
|
1499
|
-
function
|
|
1500
|
+
function qt(e) {
|
|
1500
1501
|
const t = V(e);
|
|
1501
1502
|
return !st() || !t.visualViewport ? kr : {
|
|
1502
1503
|
x: t.visualViewport.offsetLeft,
|
|
@@ -1508,23 +1509,23 @@ function Ir(e, t, n) {
|
|
|
1508
1509
|
}
|
|
1509
1510
|
function se(e, t, n, o) {
|
|
1510
1511
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1511
|
-
const i = e.getBoundingClientRect(), r =
|
|
1512
|
+
const i = e.getBoundingClientRect(), r = at(e);
|
|
1512
1513
|
let s = te(1);
|
|
1513
1514
|
t && (o ? Y(o) && (s = ue(o)) : s = ue(e));
|
|
1514
|
-
const
|
|
1515
|
-
let
|
|
1515
|
+
const a = Ir(r, n, o) ? qt(r) : te(0);
|
|
1516
|
+
let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
1516
1517
|
if (r) {
|
|
1517
1518
|
const p = V(r), f = o && Y(o) ? V(o) : o;
|
|
1518
1519
|
let h = p, m = Qe(h);
|
|
1519
1520
|
for (; m && o && f !== h; ) {
|
|
1520
1521
|
const g = ue(m), v = m.getBoundingClientRect(), y = G(m), x = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * g.x, b = v.top + (m.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
1521
|
-
|
|
1522
|
+
c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += x, l += b, h = V(m), m = Qe(h);
|
|
1522
1523
|
}
|
|
1523
1524
|
}
|
|
1524
1525
|
return Fe({
|
|
1525
1526
|
width: u,
|
|
1526
1527
|
height: d,
|
|
1527
|
-
x:
|
|
1528
|
+
x: c,
|
|
1528
1529
|
y: l
|
|
1529
1530
|
});
|
|
1530
1531
|
}
|
|
@@ -1535,63 +1536,63 @@ function Fr(e) {
|
|
|
1535
1536
|
offsetParent: o,
|
|
1536
1537
|
strategy: i
|
|
1537
1538
|
} = e;
|
|
1538
|
-
const r = i === "fixed", s = ee(o),
|
|
1539
|
-
if (o === s ||
|
|
1539
|
+
const r = i === "fixed", s = ee(o), a = t ? Be(t.floating) : !1;
|
|
1540
|
+
if (o === s || a && r)
|
|
1540
1541
|
return n;
|
|
1541
|
-
let
|
|
1542
|
+
let c = {
|
|
1542
1543
|
scrollLeft: 0,
|
|
1543
1544
|
scrollTop: 0
|
|
1544
1545
|
}, l = te(1);
|
|
1545
1546
|
const u = te(0), d = K(o);
|
|
1546
|
-
if ((d || !d && !r) && ((me(o) !== "body" || Oe(s)) && (
|
|
1547
|
+
if ((d || !d && !r) && ((me(o) !== "body" || Oe(s)) && (c = ze(o)), K(o))) {
|
|
1547
1548
|
const p = se(o);
|
|
1548
1549
|
l = ue(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
|
|
1549
1550
|
}
|
|
1550
1551
|
return {
|
|
1551
1552
|
width: n.width * l.x,
|
|
1552
1553
|
height: n.height * l.y,
|
|
1553
|
-
x: n.x * l.x -
|
|
1554
|
-
y: n.y * l.y -
|
|
1554
|
+
x: n.x * l.x - c.scrollLeft * l.x + u.x,
|
|
1555
|
+
y: n.y * l.y - c.scrollTop * l.y + u.y
|
|
1555
1556
|
};
|
|
1556
1557
|
}
|
|
1557
1558
|
function Hr(e) {
|
|
1558
1559
|
return Array.from(e.getClientRects());
|
|
1559
1560
|
}
|
|
1560
|
-
function
|
|
1561
|
+
function Kt(e) {
|
|
1561
1562
|
return se(ee(e)).left + ze(e).scrollLeft;
|
|
1562
1563
|
}
|
|
1563
1564
|
function Br(e) {
|
|
1564
1565
|
const t = ee(e), n = ze(e), o = e.ownerDocument.body, i = W(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = W(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1565
|
-
let s = -n.scrollLeft +
|
|
1566
|
-
const
|
|
1566
|
+
let s = -n.scrollLeft + Kt(e);
|
|
1567
|
+
const a = -n.scrollTop;
|
|
1567
1568
|
return G(o).direction === "rtl" && (s += W(t.clientWidth, o.clientWidth) - i), {
|
|
1568
1569
|
width: i,
|
|
1569
1570
|
height: r,
|
|
1570
1571
|
x: s,
|
|
1571
|
-
y:
|
|
1572
|
+
y: a
|
|
1572
1573
|
};
|
|
1573
1574
|
}
|
|
1574
1575
|
function zr(e, t) {
|
|
1575
1576
|
const n = V(e), o = ee(e), i = n.visualViewport;
|
|
1576
|
-
let r = o.clientWidth, s = o.clientHeight,
|
|
1577
|
+
let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
1577
1578
|
if (i) {
|
|
1578
1579
|
r = i.width, s = i.height;
|
|
1579
1580
|
const l = st();
|
|
1580
|
-
(!l || l && t === "fixed") && (
|
|
1581
|
+
(!l || l && t === "fixed") && (a = i.offsetLeft, c = i.offsetTop);
|
|
1581
1582
|
}
|
|
1582
1583
|
return {
|
|
1583
1584
|
width: r,
|
|
1584
1585
|
height: s,
|
|
1585
|
-
x:
|
|
1586
|
-
y:
|
|
1586
|
+
x: a,
|
|
1587
|
+
y: c
|
|
1587
1588
|
};
|
|
1588
1589
|
}
|
|
1589
1590
|
function jr(e, t) {
|
|
1590
|
-
const n = se(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = K(e) ? ue(e) : te(1), s = e.clientWidth * r.x,
|
|
1591
|
+
const n = se(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = K(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
|
|
1591
1592
|
return {
|
|
1592
1593
|
width: s,
|
|
1593
|
-
height:
|
|
1594
|
-
x:
|
|
1594
|
+
height: a,
|
|
1595
|
+
x: c,
|
|
1595
1596
|
y: l
|
|
1596
1597
|
};
|
|
1597
1598
|
}
|
|
@@ -1604,7 +1605,7 @@ function wt(e, t, n) {
|
|
|
1604
1605
|
else if (Y(t))
|
|
1605
1606
|
o = jr(t, n);
|
|
1606
1607
|
else {
|
|
1607
|
-
const i =
|
|
1608
|
+
const i = qt(e);
|
|
1608
1609
|
o = {
|
|
1609
1610
|
...t,
|
|
1610
1611
|
x: t.x - i.x,
|
|
@@ -1613,20 +1614,20 @@ function wt(e, t, n) {
|
|
|
1613
1614
|
}
|
|
1614
1615
|
return Fe(o);
|
|
1615
1616
|
}
|
|
1616
|
-
function
|
|
1617
|
+
function Zt(e, t) {
|
|
1617
1618
|
const n = re(e);
|
|
1618
|
-
return n === t || !Y(n) || fe(n) ? !1 : G(n).position === "fixed" ||
|
|
1619
|
+
return n === t || !Y(n) || fe(n) ? !1 : G(n).position === "fixed" || Zt(n, t);
|
|
1619
1620
|
}
|
|
1620
1621
|
function Wr(e, t) {
|
|
1621
1622
|
const n = t.get(e);
|
|
1622
1623
|
if (n)
|
|
1623
1624
|
return n;
|
|
1624
|
-
let o = Pe(e, [], !1).filter((
|
|
1625
|
+
let o = Pe(e, [], !1).filter((a) => Y(a) && me(a) !== "body"), i = null;
|
|
1625
1626
|
const r = G(e).position === "fixed";
|
|
1626
1627
|
let s = r ? re(e) : e;
|
|
1627
1628
|
for (; Y(s) && !fe(s); ) {
|
|
1628
|
-
const
|
|
1629
|
-
!
|
|
1629
|
+
const a = G(s), c = it(s);
|
|
1630
|
+
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Oe(s) && !c && Zt(e, s)) ? o = o.filter((u) => u !== s) : i = a, s = re(s);
|
|
1630
1631
|
}
|
|
1631
1632
|
return t.set(e, o), o;
|
|
1632
1633
|
}
|
|
@@ -1637,22 +1638,22 @@ function Ur(e) {
|
|
|
1637
1638
|
rootBoundary: o,
|
|
1638
1639
|
strategy: i
|
|
1639
1640
|
} = e;
|
|
1640
|
-
const s = [...n === "clippingAncestors" ? Be(t) ? [] : Wr(t, this._c) : [].concat(n), o],
|
|
1641
|
+
const s = [...n === "clippingAncestors" ? Be(t) ? [] : Wr(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, u) => {
|
|
1641
1642
|
const d = wt(t, u, i);
|
|
1642
1643
|
return l.top = W(d.top, l.top), l.right = q(d.right, l.right), l.bottom = q(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
|
|
1643
|
-
}, wt(t,
|
|
1644
|
+
}, wt(t, a, i));
|
|
1644
1645
|
return {
|
|
1645
|
-
width:
|
|
1646
|
-
height:
|
|
1647
|
-
x:
|
|
1648
|
-
y:
|
|
1646
|
+
width: c.right - c.left,
|
|
1647
|
+
height: c.bottom - c.top,
|
|
1648
|
+
x: c.left,
|
|
1649
|
+
y: c.top
|
|
1649
1650
|
};
|
|
1650
1651
|
}
|
|
1651
1652
|
function Vr(e) {
|
|
1652
1653
|
const {
|
|
1653
1654
|
width: t,
|
|
1654
1655
|
height: n
|
|
1655
|
-
} =
|
|
1656
|
+
} = Gt(e);
|
|
1656
1657
|
return {
|
|
1657
1658
|
width: t,
|
|
1658
1659
|
height: n
|
|
@@ -1660,17 +1661,17 @@ function Vr(e) {
|
|
|
1660
1661
|
}
|
|
1661
1662
|
function Xr(e, t, n) {
|
|
1662
1663
|
const o = K(t), i = ee(t), r = n === "fixed", s = se(e, !0, r, t);
|
|
1663
|
-
let
|
|
1664
|
+
let a = {
|
|
1664
1665
|
scrollLeft: 0,
|
|
1665
1666
|
scrollTop: 0
|
|
1666
1667
|
};
|
|
1667
|
-
const
|
|
1668
|
+
const c = te(0);
|
|
1668
1669
|
if (o || !o && !r)
|
|
1669
|
-
if ((me(t) !== "body" || Oe(i)) && (
|
|
1670
|
+
if ((me(t) !== "body" || Oe(i)) && (a = ze(t)), o) {
|
|
1670
1671
|
const d = se(t, !0, r, t);
|
|
1671
|
-
|
|
1672
|
-
} else i && (
|
|
1673
|
-
const l = s.left +
|
|
1672
|
+
c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
|
|
1673
|
+
} else i && (c.x = Kt(i));
|
|
1674
|
+
const l = s.left + a.scrollLeft - c.x, u = s.top + a.scrollTop - c.y;
|
|
1674
1675
|
return {
|
|
1675
1676
|
x: l,
|
|
1676
1677
|
y: u,
|
|
@@ -1684,7 +1685,7 @@ function Ve(e) {
|
|
|
1684
1685
|
function _t(e, t) {
|
|
1685
1686
|
return !K(e) || G(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1686
1687
|
}
|
|
1687
|
-
function
|
|
1688
|
+
function Jt(e, t) {
|
|
1688
1689
|
const n = V(e);
|
|
1689
1690
|
if (Be(e))
|
|
1690
1691
|
return n;
|
|
@@ -1703,7 +1704,7 @@ function Zt(e, t) {
|
|
|
1703
1704
|
return o && fe(o) && Ve(o) && !it(o) ? n : o || Mr(e) || n;
|
|
1704
1705
|
}
|
|
1705
1706
|
const Yr = async function(e) {
|
|
1706
|
-
const t = this.getOffsetParent ||
|
|
1707
|
+
const t = this.getOffsetParent || Jt, n = this.getDimensions, o = await n(e.floating);
|
|
1707
1708
|
return {
|
|
1708
1709
|
reference: Xr(e.reference, await t(e.floating), e.strategy),
|
|
1709
1710
|
floating: {
|
|
@@ -1721,7 +1722,7 @@ const qr = {
|
|
|
1721
1722
|
convertOffsetParentRelativeRectToViewportRelativeRect: Fr,
|
|
1722
1723
|
getDocumentElement: ee,
|
|
1723
1724
|
getClippingRect: Ur,
|
|
1724
|
-
getOffsetParent:
|
|
1725
|
+
getOffsetParent: Jt,
|
|
1725
1726
|
getElementRects: Yr,
|
|
1726
1727
|
getClientRects: Hr,
|
|
1727
1728
|
getDimensions: Vr,
|
|
@@ -1733,27 +1734,27 @@ function Kr(e, t) {
|
|
|
1733
1734
|
let n = null, o;
|
|
1734
1735
|
const i = ee(e);
|
|
1735
1736
|
function r() {
|
|
1736
|
-
var
|
|
1737
|
-
clearTimeout(o), (
|
|
1737
|
+
var a;
|
|
1738
|
+
clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
|
|
1738
1739
|
}
|
|
1739
|
-
function s(
|
|
1740
|
-
|
|
1740
|
+
function s(a, c) {
|
|
1741
|
+
a === void 0 && (a = !1), c === void 0 && (c = 1), r();
|
|
1741
1742
|
const {
|
|
1742
1743
|
left: l,
|
|
1743
1744
|
top: u,
|
|
1744
1745
|
width: d,
|
|
1745
1746
|
height: p
|
|
1746
1747
|
} = e.getBoundingClientRect();
|
|
1747
|
-
if (
|
|
1748
|
+
if (a || t(), !d || !p)
|
|
1748
1749
|
return;
|
|
1749
1750
|
const f = De(u), h = De(i.clientWidth - (l + d)), m = De(i.clientHeight - (u + p)), g = De(l), y = {
|
|
1750
1751
|
rootMargin: -f + "px " + -h + "px " + -m + "px " + -g + "px",
|
|
1751
|
-
threshold: W(0, q(1,
|
|
1752
|
+
threshold: W(0, q(1, c)) || 1
|
|
1752
1753
|
};
|
|
1753
1754
|
let x = !0;
|
|
1754
1755
|
function b($) {
|
|
1755
1756
|
const P = $[0].intersectionRatio;
|
|
1756
|
-
if (P !==
|
|
1757
|
+
if (P !== c) {
|
|
1757
1758
|
if (!x)
|
|
1758
1759
|
return s();
|
|
1759
1760
|
P ? s(!1, P) : o = setTimeout(() => {
|
|
@@ -1781,15 +1782,15 @@ function Zr(e, t, n, o) {
|
|
|
1781
1782
|
ancestorScroll: i = !0,
|
|
1782
1783
|
ancestorResize: r = !0,
|
|
1783
1784
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1784
|
-
layoutShift:
|
|
1785
|
-
animationFrame:
|
|
1786
|
-
} = o, l =
|
|
1785
|
+
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1786
|
+
animationFrame: c = !1
|
|
1787
|
+
} = o, l = at(e), u = i || r ? [...l ? Pe(l) : [], ...Pe(t)] : [];
|
|
1787
1788
|
u.forEach((v) => {
|
|
1788
1789
|
i && v.addEventListener("scroll", n, {
|
|
1789
1790
|
passive: !0
|
|
1790
1791
|
}), r && v.addEventListener("resize", n);
|
|
1791
1792
|
});
|
|
1792
|
-
const d = l &&
|
|
1793
|
+
const d = l && a ? Kr(l, n) : null;
|
|
1793
1794
|
let p = -1, f = null;
|
|
1794
1795
|
s && (f = new ResizeObserver((v) => {
|
|
1795
1796
|
let [y] = v;
|
|
@@ -1797,9 +1798,9 @@ function Zr(e, t, n, o) {
|
|
|
1797
1798
|
var x;
|
|
1798
1799
|
(x = f) == null || x.observe(t);
|
|
1799
1800
|
})), n();
|
|
1800
|
-
}), l && !
|
|
1801
|
-
let h, m =
|
|
1802
|
-
|
|
1801
|
+
}), l && !c && f.observe(l), f.observe(t));
|
|
1802
|
+
let h, m = c ? se(e) : null;
|
|
1803
|
+
c && g();
|
|
1803
1804
|
function g() {
|
|
1804
1805
|
const v = se(e);
|
|
1805
1806
|
m && (v.x !== m.x || v.y !== m.y || v.width !== m.width || v.height !== m.height) && n(), m = v, h = requestAnimationFrame(g);
|
|
@@ -1808,7 +1809,7 @@ function Zr(e, t, n, o) {
|
|
|
1808
1809
|
var v;
|
|
1809
1810
|
u.forEach((y) => {
|
|
1810
1811
|
i && y.removeEventListener("scroll", n), r && y.removeEventListener("resize", n);
|
|
1811
|
-
}), d == null || d(), (v = f) == null || v.disconnect(), f = null,
|
|
1812
|
+
}), d == null || d(), (v = f) == null || v.disconnect(), f = null, c && cancelAnimationFrame(h);
|
|
1812
1813
|
};
|
|
1813
1814
|
}
|
|
1814
1815
|
const Jr = Sr, Qr = Rr, eo = Cr, to = Nr, no = Er, Pt = Or, ro = Dr, oo = (e, t, n) => {
|
|
@@ -1855,11 +1856,11 @@ function He(e, t) {
|
|
|
1855
1856
|
}
|
|
1856
1857
|
return e !== e && t !== t;
|
|
1857
1858
|
}
|
|
1858
|
-
function
|
|
1859
|
+
function Qt(e) {
|
|
1859
1860
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1860
1861
|
}
|
|
1861
1862
|
function At(e, t) {
|
|
1862
|
-
const n =
|
|
1863
|
+
const n = Qt(e);
|
|
1863
1864
|
return Math.round(t * n) / n;
|
|
1864
1865
|
}
|
|
1865
1866
|
function Ot(e) {
|
|
@@ -1879,8 +1880,8 @@ function io(e) {
|
|
|
1879
1880
|
reference: r,
|
|
1880
1881
|
floating: s
|
|
1881
1882
|
} = {},
|
|
1882
|
-
transform:
|
|
1883
|
-
whileElementsMounted:
|
|
1883
|
+
transform: a = !0,
|
|
1884
|
+
whileElementsMounted: c,
|
|
1884
1885
|
open: l
|
|
1885
1886
|
} = e, [u, d] = L.useState({
|
|
1886
1887
|
x: 0,
|
|
@@ -1895,7 +1896,7 @@ function io(e) {
|
|
|
1895
1896
|
A !== P.current && (P.current = A, m(A));
|
|
1896
1897
|
}, []), x = L.useCallback((A) => {
|
|
1897
1898
|
A !== O.current && (O.current = A, v(A));
|
|
1898
|
-
}, []), b = r || h, $ = s || g, P = L.useRef(null), O = L.useRef(null), _ = L.useRef(u), E =
|
|
1899
|
+
}, []), b = r || h, $ = s || g, P = L.useRef(null), O = L.useRef(null), _ = L.useRef(u), E = c != null, T = Ot(c), D = Ot(i), M = L.useCallback(() => {
|
|
1899
1900
|
if (!P.current || !O.current)
|
|
1900
1901
|
return;
|
|
1901
1902
|
const A = {
|
|
@@ -1908,7 +1909,7 @@ function io(e) {
|
|
|
1908
1909
|
...B,
|
|
1909
1910
|
isPositioned: !0
|
|
1910
1911
|
};
|
|
1911
|
-
X.current && !He(_.current, N) && (_.current = N,
|
|
1912
|
+
X.current && !He(_.current, N) && (_.current = N, Pn.flushSync(() => {
|
|
1912
1913
|
d(N);
|
|
1913
1914
|
}));
|
|
1914
1915
|
});
|
|
@@ -1946,10 +1947,10 @@ function io(e) {
|
|
|
1946
1947
|
if (!F.floating)
|
|
1947
1948
|
return A;
|
|
1948
1949
|
const B = At(F.floating, u.x), N = At(F.floating, u.y);
|
|
1949
|
-
return
|
|
1950
|
+
return a ? {
|
|
1950
1951
|
...A,
|
|
1951
1952
|
transform: "translate(" + B + "px, " + N + "px)",
|
|
1952
|
-
...
|
|
1953
|
+
...Qt(F.floating) >= 1.5 && {
|
|
1953
1954
|
willChange: "transform"
|
|
1954
1955
|
}
|
|
1955
1956
|
} : {
|
|
@@ -1957,7 +1958,7 @@ function io(e) {
|
|
|
1957
1958
|
left: B,
|
|
1958
1959
|
top: N
|
|
1959
1960
|
};
|
|
1960
|
-
}, [n,
|
|
1961
|
+
}, [n, a, F.floating, u.x, u.y]);
|
|
1961
1962
|
return L.useMemo(() => ({
|
|
1962
1963
|
...u,
|
|
1963
1964
|
update: M,
|
|
@@ -1987,10 +1988,10 @@ const so = (e) => {
|
|
|
1987
1988
|
}).fn(n) : {};
|
|
1988
1989
|
}
|
|
1989
1990
|
};
|
|
1990
|
-
},
|
|
1991
|
+
}, ao = (e, t) => ({
|
|
1991
1992
|
...Jr(e),
|
|
1992
1993
|
options: [e, t]
|
|
1993
|
-
}),
|
|
1994
|
+
}), co = (e, t) => ({
|
|
1994
1995
|
...Qr(e),
|
|
1995
1996
|
options: [e, t]
|
|
1996
1997
|
}), lo = (e, t) => ({
|
|
@@ -2010,7 +2011,7 @@ const so = (e) => {
|
|
|
2010
2011
|
options: [e, t]
|
|
2011
2012
|
}), go = /* @__PURE__ */ I((e, t) => {
|
|
2012
2013
|
const { children: n, width: o = 10, height: i = 5, ...r } = e;
|
|
2013
|
-
return /* @__PURE__ */ w(
|
|
2014
|
+
return /* @__PURE__ */ w(ae.svg, R({}, r, {
|
|
2014
2015
|
ref: t,
|
|
2015
2016
|
width: o,
|
|
2016
2017
|
height: i,
|
|
@@ -2031,15 +2032,15 @@ function vo(e) {
|
|
|
2031
2032
|
const o = new ResizeObserver((i) => {
|
|
2032
2033
|
if (!Array.isArray(i) || !i.length) return;
|
|
2033
2034
|
const r = i[0];
|
|
2034
|
-
let s,
|
|
2035
|
+
let s, a;
|
|
2035
2036
|
if ("borderBoxSize" in r) {
|
|
2036
|
-
const
|
|
2037
|
-
s = l.inlineSize,
|
|
2037
|
+
const c = r.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
|
|
2038
|
+
s = l.inlineSize, a = l.blockSize;
|
|
2038
2039
|
} else
|
|
2039
|
-
s = e.offsetWidth,
|
|
2040
|
+
s = e.offsetWidth, a = e.offsetHeight;
|
|
2040
2041
|
n({
|
|
2041
2042
|
width: s,
|
|
2042
|
-
height:
|
|
2043
|
+
height: a
|
|
2043
2044
|
});
|
|
2044
2045
|
});
|
|
2045
2046
|
return o.observe(e, {
|
|
@@ -2051,7 +2052,7 @@ function vo(e) {
|
|
|
2051
2052
|
e
|
|
2052
2053
|
]), t;
|
|
2053
2054
|
}
|
|
2054
|
-
const
|
|
2055
|
+
const en = "Popper", [tn, nn] = zt(en), [yo, rn] = tn(en), xo = (e) => {
|
|
2055
2056
|
const { __scopePopper: t, children: n } = e, [o, i] = U(null);
|
|
2056
2057
|
return /* @__PURE__ */ w(yo, {
|
|
2057
2058
|
scope: t,
|
|
@@ -2059,15 +2060,15 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2059
2060
|
onAnchorChange: i
|
|
2060
2061
|
}, n);
|
|
2061
2062
|
}, bo = "PopperAnchor", $o = /* @__PURE__ */ I((e, t) => {
|
|
2062
|
-
const { __scopePopper: n, virtualRef: o, ...i } = e, r =
|
|
2063
|
+
const { __scopePopper: n, virtualRef: o, ...i } = e, r = rn(bo, n), s = k(null), a = pe(t, s);
|
|
2063
2064
|
return S(() => {
|
|
2064
2065
|
r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
2065
|
-
}), o ? null : /* @__PURE__ */ w(
|
|
2066
|
-
ref:
|
|
2066
|
+
}), o ? null : /* @__PURE__ */ w(ae.div, R({}, i, {
|
|
2067
|
+
ref: a
|
|
2067
2068
|
}));
|
|
2068
|
-
}),
|
|
2069
|
-
var n, o, i, r, s,
|
|
2070
|
-
const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: b = !1, updatePositionStrategy: $ = "optimized", onPlaced: P, ...O } = e, _ =
|
|
2069
|
+
}), on = "PopperContent", [wo, _o] = tn(on), Po = /* @__PURE__ */ I((e, t) => {
|
|
2070
|
+
var n, o, i, r, s, a, c, l;
|
|
2071
|
+
const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: b = !1, updatePositionStrategy: $ = "optimized", onPlaced: P, ...O } = e, _ = rn(on, u), [E, T] = U(null), D = pe(
|
|
2071
2072
|
t,
|
|
2072
2073
|
(ve) => T(ve)
|
|
2073
2074
|
), [M, X] = U(null), C = vo(M), F = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, H = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, A = d + (f !== "center" ? "-" + f : ""), B = typeof y == "number" ? y : {
|
|
@@ -2083,7 +2084,7 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2083
2084
|
boundary: N.filter(Eo),
|
|
2084
2085
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2085
2086
|
altBoundary: Ue
|
|
2086
|
-
}, { refs:
|
|
2087
|
+
}, { refs: un, floatingStyles: dt, placement: dn, isPositioned: Te, middlewareData: ce } = io({
|
|
2087
2088
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2088
2089
|
strategy: "fixed",
|
|
2089
2090
|
placement: A,
|
|
@@ -2094,11 +2095,11 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2094
2095
|
reference: _.anchor
|
|
2095
2096
|
},
|
|
2096
2097
|
middleware: [
|
|
2097
|
-
|
|
2098
|
+
ao({
|
|
2098
2099
|
mainAxis: p + H,
|
|
2099
2100
|
alignmentAxis: h
|
|
2100
2101
|
}),
|
|
2101
|
-
g &&
|
|
2102
|
+
g && co({
|
|
2102
2103
|
mainAxis: !0,
|
|
2103
2104
|
crossAxis: !1,
|
|
2104
2105
|
limiter: x === "partial" ? lo() : void 0,
|
|
@@ -2109,9 +2110,9 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2109
2110
|
}),
|
|
2110
2111
|
fo({
|
|
2111
2112
|
...Ee,
|
|
2112
|
-
apply: ({ elements: ve, rects: pt, availableWidth:
|
|
2113
|
-
const { width:
|
|
2114
|
-
Re.setProperty("--radix-popper-available-width", `${
|
|
2113
|
+
apply: ({ elements: ve, rects: pt, availableWidth: yn, availableHeight: xn }) => {
|
|
2114
|
+
const { width: bn, height: $n } = pt.reference, Re = ve.floating.style;
|
|
2115
|
+
Re.setProperty("--radix-popper-available-width", `${yn}px`), Re.setProperty("--radix-popper-available-height", `${xn}px`), Re.setProperty("--radix-popper-anchor-width", `${bn}px`), Re.setProperty("--radix-popper-anchor-height", `${$n}px`);
|
|
2115
2116
|
}
|
|
2116
2117
|
}),
|
|
2117
2118
|
M && ho({
|
|
@@ -2127,30 +2128,30 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2127
2128
|
...Ee
|
|
2128
2129
|
})
|
|
2129
2130
|
]
|
|
2130
|
-
}), [ft,
|
|
2131
|
+
}), [ft, fn] = sn(dn), Se = he(P);
|
|
2131
2132
|
de(() => {
|
|
2132
2133
|
Te && (Se == null || Se());
|
|
2133
2134
|
}, [
|
|
2134
2135
|
Te,
|
|
2135
2136
|
Se
|
|
2136
2137
|
]);
|
|
2137
|
-
const
|
|
2138
|
+
const pn = (i = ce.arrow) === null || i === void 0 ? void 0 : i.x, hn = (r = ce.arrow) === null || r === void 0 ? void 0 : r.y, gn = ((s = ce.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [mn, vn] = U();
|
|
2138
2139
|
return de(() => {
|
|
2139
|
-
E &&
|
|
2140
|
+
E && vn(window.getComputedStyle(E).zIndex);
|
|
2140
2141
|
}, [
|
|
2141
2142
|
E
|
|
2142
2143
|
]), /* @__PURE__ */ w("div", {
|
|
2143
|
-
ref:
|
|
2144
|
+
ref: un.setFloating,
|
|
2144
2145
|
"data-radix-popper-content-wrapper": "",
|
|
2145
2146
|
style: {
|
|
2146
2147
|
...dt,
|
|
2147
2148
|
transform: Te ? dt.transform : "translate(0, -200%)",
|
|
2148
2149
|
// keep off the page when measuring
|
|
2149
2150
|
minWidth: "max-content",
|
|
2150
|
-
zIndex:
|
|
2151
|
+
zIndex: mn,
|
|
2151
2152
|
"--radix-popper-transform-origin": [
|
|
2152
|
-
(
|
|
2153
|
-
(
|
|
2153
|
+
(a = ce.transformOrigin) === null || a === void 0 ? void 0 : a.x,
|
|
2154
|
+
(c = ce.transformOrigin) === null || c === void 0 ? void 0 : c.y
|
|
2154
2155
|
].join(" ")
|
|
2155
2156
|
},
|
|
2156
2157
|
dir: e.dir
|
|
@@ -2158,12 +2159,12 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2158
2159
|
scope: u,
|
|
2159
2160
|
placedSide: ft,
|
|
2160
2161
|
onArrowChange: X,
|
|
2161
|
-
arrowX:
|
|
2162
|
-
arrowY:
|
|
2163
|
-
shouldHideArrow:
|
|
2164
|
-
}, /* @__PURE__ */ w(
|
|
2162
|
+
arrowX: pn,
|
|
2163
|
+
arrowY: hn,
|
|
2164
|
+
shouldHideArrow: gn
|
|
2165
|
+
}, /* @__PURE__ */ w(ae.div, R({
|
|
2165
2166
|
"data-side": ft,
|
|
2166
|
-
"data-align":
|
|
2167
|
+
"data-align": fn
|
|
2167
2168
|
}, O, {
|
|
2168
2169
|
ref: D,
|
|
2169
2170
|
style: {
|
|
@@ -2172,7 +2173,7 @@ const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
|
2172
2173
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2173
2174
|
animation: Te ? void 0 : "none",
|
|
2174
2175
|
// hide the content if using the hide middleware and should be hidden
|
|
2175
|
-
opacity: (l =
|
|
2176
|
+
opacity: (l = ce.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
|
|
2176
2177
|
}
|
|
2177
2178
|
}))));
|
|
2178
2179
|
}), Ao = "PopperArrow", Oo = {
|
|
@@ -2225,13 +2226,13 @@ const To = (e) => ({
|
|
|
2225
2226
|
options: e,
|
|
2226
2227
|
fn(t) {
|
|
2227
2228
|
var n, o, i, r, s;
|
|
2228
|
-
const { placement:
|
|
2229
|
+
const { placement: a, rects: c, middlewareData: l } = t, d = ((n = l.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, p = d ? 0 : e.arrowWidth, f = d ? 0 : e.arrowHeight, [h, m] = sn(a), g = {
|
|
2229
2230
|
start: "0%",
|
|
2230
2231
|
center: "50%",
|
|
2231
2232
|
end: "100%"
|
|
2232
2233
|
}[m], v = ((o = (i = l.arrow) === null || i === void 0 ? void 0 : i.x) !== null && o !== void 0 ? o : 0) + p / 2, y = ((r = (s = l.arrow) === null || s === void 0 ? void 0 : s.y) !== null && r !== void 0 ? r : 0) + f / 2;
|
|
2233
2234
|
let x = "", b = "";
|
|
2234
|
-
return h === "bottom" ? (x = d ? g : `${v}px`, b = `${-f}px`) : h === "top" ? (x = d ? g : `${v}px`, b = `${
|
|
2235
|
+
return h === "bottom" ? (x = d ? g : `${v}px`, b = `${-f}px`) : h === "top" ? (x = d ? g : `${v}px`, b = `${c.floating.height + f}px`) : h === "right" ? (x = `${-f}px`, b = d ? g : `${y}px`) : h === "left" && (x = `${c.floating.width + f}px`, b = d ? g : `${y}px`), {
|
|
2235
2236
|
data: {
|
|
2236
2237
|
x,
|
|
2237
2238
|
y: b
|
|
@@ -2239,7 +2240,7 @@ const To = (e) => ({
|
|
|
2239
2240
|
};
|
|
2240
2241
|
}
|
|
2241
2242
|
});
|
|
2242
|
-
function
|
|
2243
|
+
function sn(e) {
|
|
2243
2244
|
const [t, n = "center"] = e.split("-");
|
|
2244
2245
|
return [
|
|
2245
2246
|
t,
|
|
@@ -2249,17 +2250,17 @@ function on(e) {
|
|
|
2249
2250
|
const So = xo, Ro = $o, Do = Po, No = Co, Lo = /* @__PURE__ */ I((e, t) => {
|
|
2250
2251
|
var n;
|
|
2251
2252
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
|
|
2252
|
-
return o ? /* @__PURE__ */
|
|
2253
|
+
return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ w(ae.div, R({}, i, {
|
|
2253
2254
|
ref: t
|
|
2254
2255
|
})), o) : null;
|
|
2255
2256
|
});
|
|
2256
2257
|
function Mo(e, t) {
|
|
2257
|
-
return
|
|
2258
|
+
return _n((n, o) => {
|
|
2258
2259
|
const i = t[n][o];
|
|
2259
2260
|
return i ?? n;
|
|
2260
2261
|
}, e);
|
|
2261
2262
|
}
|
|
2262
|
-
const
|
|
2263
|
+
const ct = (e) => {
|
|
2263
2264
|
const { present: t, children: n } = e, o = ko(t), i = typeof n == "function" ? n({
|
|
2264
2265
|
present: o.isPresent
|
|
2265
2266
|
}) : ie.only(n), r = pe(o.ref, i.ref);
|
|
@@ -2267,9 +2268,9 @@ const at = (e) => {
|
|
|
2267
2268
|
ref: r
|
|
2268
2269
|
}) : null;
|
|
2269
2270
|
};
|
|
2270
|
-
|
|
2271
|
+
ct.displayName = "Presence";
|
|
2271
2272
|
function ko(e) {
|
|
2272
|
-
const [t, n] = U(), o = k({}), i = k(e), r = k("none"), s = e ? "mounted" : "unmounted", [
|
|
2273
|
+
const [t, n] = U(), o = k({}), i = k(e), r = k("none"), s = e ? "mounted" : "unmounted", [a, c] = Mo(s, {
|
|
2273
2274
|
mounted: {
|
|
2274
2275
|
UNMOUNT: "unmounted",
|
|
2275
2276
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2284,24 +2285,24 @@ function ko(e) {
|
|
|
2284
2285
|
});
|
|
2285
2286
|
return S(() => {
|
|
2286
2287
|
const l = Ne(o.current);
|
|
2287
|
-
r.current =
|
|
2288
|
+
r.current = a === "mounted" ? l : "none";
|
|
2288
2289
|
}, [
|
|
2289
|
-
|
|
2290
|
+
a
|
|
2290
2291
|
]), de(() => {
|
|
2291
2292
|
const l = o.current, u = i.current;
|
|
2292
2293
|
if (u !== e) {
|
|
2293
2294
|
const p = r.current, f = Ne(l);
|
|
2294
|
-
e ?
|
|
2295
|
+
e ? c("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(u && p !== f ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
2295
2296
|
}
|
|
2296
2297
|
}, [
|
|
2297
2298
|
e,
|
|
2298
|
-
|
|
2299
|
+
c
|
|
2299
2300
|
]), de(() => {
|
|
2300
2301
|
if (t) {
|
|
2301
2302
|
const l = (d) => {
|
|
2302
2303
|
const f = Ne(o.current).includes(d.animationName);
|
|
2303
2304
|
d.target === t && f && St(
|
|
2304
|
-
() =>
|
|
2305
|
+
() => c("ANIMATION_END")
|
|
2305
2306
|
);
|
|
2306
2307
|
}, u = (d) => {
|
|
2307
2308
|
d.target === t && (r.current = Ne(o.current));
|
|
@@ -2310,15 +2311,15 @@ function ko(e) {
|
|
|
2310
2311
|
t.removeEventListener("animationstart", u), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
|
|
2311
2312
|
};
|
|
2312
2313
|
} else
|
|
2313
|
-
|
|
2314
|
+
c("ANIMATION_END");
|
|
2314
2315
|
}, [
|
|
2315
2316
|
t,
|
|
2316
|
-
|
|
2317
|
+
c
|
|
2317
2318
|
]), {
|
|
2318
2319
|
isPresent: [
|
|
2319
2320
|
"mounted",
|
|
2320
2321
|
"unmountSuspended"
|
|
2321
|
-
].includes(
|
|
2322
|
+
].includes(a),
|
|
2322
2323
|
ref: j((l) => {
|
|
2323
2324
|
l && (o.current = getComputedStyle(l)), n(l);
|
|
2324
2325
|
}, [])
|
|
@@ -2332,20 +2333,20 @@ function Io({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2332
2333
|
const [o, i] = Fo({
|
|
2333
2334
|
defaultProp: t,
|
|
2334
2335
|
onChange: n
|
|
2335
|
-
}), r = e !== void 0, s = r ? e : o,
|
|
2336
|
+
}), r = e !== void 0, s = r ? e : o, a = he(n), c = j((l) => {
|
|
2336
2337
|
if (r) {
|
|
2337
2338
|
const d = typeof l == "function" ? l(e) : l;
|
|
2338
|
-
d !== e &&
|
|
2339
|
+
d !== e && a(d);
|
|
2339
2340
|
} else i(l);
|
|
2340
2341
|
}, [
|
|
2341
2342
|
r,
|
|
2342
2343
|
e,
|
|
2343
2344
|
i,
|
|
2344
|
-
|
|
2345
|
+
a
|
|
2345
2346
|
]);
|
|
2346
2347
|
return [
|
|
2347
2348
|
s,
|
|
2348
|
-
|
|
2349
|
+
c
|
|
2349
2350
|
];
|
|
2350
2351
|
}
|
|
2351
2352
|
function Fo({ defaultProp: e, onChange: t }) {
|
|
@@ -2358,7 +2359,7 @@ function Fo({ defaultProp: e, onChange: t }) {
|
|
|
2358
2359
|
r
|
|
2359
2360
|
]), n;
|
|
2360
2361
|
}
|
|
2361
|
-
const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(
|
|
2362
|
+
const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ae.span, R({}, e, {
|
|
2362
2363
|
ref: t,
|
|
2363
2364
|
style: {
|
|
2364
2365
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -2374,10 +2375,10 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2374
2375
|
wordWrap: "normal",
|
|
2375
2376
|
...e.style
|
|
2376
2377
|
}
|
|
2377
|
-
}))), Bo = Ho, [je, Ti] =
|
|
2378
|
-
|
|
2379
|
-
]), We =
|
|
2380
|
-
const { __scopeTooltip: t, delayDuration: n = jo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s,
|
|
2378
|
+
}))), Bo = Ho, [je, Ti] = zt("Tooltip", [
|
|
2379
|
+
nn
|
|
2380
|
+
]), We = nn(), zo = "TooltipProvider", jo = 700, et = "tooltip.open", [Wo, lt] = je(zo), Uo = (e) => {
|
|
2381
|
+
const { __scopeTooltip: t, delayDuration: n = jo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = U(!0), c = k(!1), l = k(0);
|
|
2381
2382
|
return S(() => {
|
|
2382
2383
|
const u = l.current;
|
|
2383
2384
|
return () => window.clearTimeout(u);
|
|
@@ -2386,28 +2387,28 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2386
2387
|
isOpenDelayed: s,
|
|
2387
2388
|
delayDuration: n,
|
|
2388
2389
|
onOpen: j(() => {
|
|
2389
|
-
window.clearTimeout(l.current),
|
|
2390
|
+
window.clearTimeout(l.current), a(!1);
|
|
2390
2391
|
}, []),
|
|
2391
2392
|
onClose: j(() => {
|
|
2392
2393
|
window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
2393
|
-
() =>
|
|
2394
|
+
() => a(!0),
|
|
2394
2395
|
o
|
|
2395
2396
|
);
|
|
2396
2397
|
}, [
|
|
2397
2398
|
o
|
|
2398
2399
|
]),
|
|
2399
|
-
isPointerInTransitRef:
|
|
2400
|
+
isPointerInTransitRef: c,
|
|
2400
2401
|
onPointerInTransitChange: j((u) => {
|
|
2401
|
-
|
|
2402
|
+
c.current = u;
|
|
2402
2403
|
}, []),
|
|
2403
2404
|
disableHoverableContent: i
|
|
2404
2405
|
}, r);
|
|
2405
2406
|
}, ut = "Tooltip", [Vo, Ce] = je(ut), Xo = (e) => {
|
|
2406
|
-
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration:
|
|
2407
|
+
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = lt(ut, e.__scopeTooltip), l = We(t), [u, d] = U(null), p = mr(), f = k(0), h = s ?? c.disableHoverableContent, m = a ?? c.delayDuration, g = k(!1), [v = !1, y] = Io({
|
|
2407
2408
|
prop: o,
|
|
2408
2409
|
defaultProp: i,
|
|
2409
2410
|
onChange: (O) => {
|
|
2410
|
-
O ? (
|
|
2411
|
+
O ? (c.onOpen(), document.dispatchEvent(new CustomEvent(et))) : c.onClose(), r == null || r(O);
|
|
2411
2412
|
}
|
|
2412
2413
|
}), x = we(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [
|
|
2413
2414
|
v
|
|
@@ -2435,9 +2436,9 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2435
2436
|
trigger: u,
|
|
2436
2437
|
onTriggerChange: d,
|
|
2437
2438
|
onTriggerEnter: j(() => {
|
|
2438
|
-
|
|
2439
|
+
c.isOpenDelayed ? P() : b();
|
|
2439
2440
|
}, [
|
|
2440
|
-
|
|
2441
|
+
c.isOpenDelayed,
|
|
2441
2442
|
P,
|
|
2442
2443
|
b
|
|
2443
2444
|
]),
|
|
@@ -2452,7 +2453,7 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2452
2453
|
disableHoverableContent: h
|
|
2453
2454
|
}, n));
|
|
2454
2455
|
}, Ct = "TooltipTrigger", Yo = /* @__PURE__ */ I((e, t) => {
|
|
2455
|
-
const { __scopeTooltip: n, ...o } = e, i = Ce(Ct, n), r = lt(Ct, n), s = We(n),
|
|
2456
|
+
const { __scopeTooltip: n, ...o } = e, i = Ce(Ct, n), r = lt(Ct, n), s = We(n), a = k(null), c = pe(t, a, i.onTriggerChange), l = k(!1), u = k(!1), d = j(
|
|
2456
2457
|
() => l.current = !1,
|
|
2457
2458
|
[]
|
|
2458
2459
|
);
|
|
@@ -2460,13 +2461,13 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2460
2461
|
d
|
|
2461
2462
|
]), /* @__PURE__ */ w(Ro, R({
|
|
2462
2463
|
asChild: !0
|
|
2463
|
-
}, s), /* @__PURE__ */ w(
|
|
2464
|
+
}, s), /* @__PURE__ */ w(ae.button, R({
|
|
2464
2465
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
2465
2466
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
2466
2467
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
2467
2468
|
"data-state": i.stateAttribute
|
|
2468
2469
|
}, o, {
|
|
2469
|
-
ref:
|
|
2470
|
+
ref: c,
|
|
2470
2471
|
onPointerMove: Z(e.onPointerMove, (p) => {
|
|
2471
2472
|
p.pointerType !== "touch" && !u.current && !r.isPointerInTransitRef.current && (i.onTriggerEnter(), u.current = !0);
|
|
2472
2473
|
}),
|
|
@@ -2484,14 +2485,14 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2484
2485
|
onBlur: Z(e.onBlur, i.onClose),
|
|
2485
2486
|
onClick: Z(e.onClick, i.onClose)
|
|
2486
2487
|
})));
|
|
2487
|
-
}),
|
|
2488
|
+
}), an = "TooltipPortal", [Go, qo] = je(an, {
|
|
2488
2489
|
forceMount: void 0
|
|
2489
2490
|
}), Ko = (e) => {
|
|
2490
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ce(
|
|
2491
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ce(an, t);
|
|
2491
2492
|
return /* @__PURE__ */ w(Go, {
|
|
2492
2493
|
scope: t,
|
|
2493
2494
|
forceMount: n
|
|
2494
|
-
}, /* @__PURE__ */ w(
|
|
2495
|
+
}, /* @__PURE__ */ w(ct, {
|
|
2495
2496
|
present: n || r.open
|
|
2496
2497
|
}, /* @__PURE__ */ w(Lo, {
|
|
2497
2498
|
asChild: !0,
|
|
@@ -2499,7 +2500,7 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2499
2500
|
}, o)));
|
|
2500
2501
|
}, Ae = "TooltipContent", Zo = /* @__PURE__ */ I((e, t) => {
|
|
2501
2502
|
const n = qo(Ae, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ce(Ae, e.__scopeTooltip);
|
|
2502
|
-
return /* @__PURE__ */ w(
|
|
2503
|
+
return /* @__PURE__ */ w(ct, {
|
|
2503
2504
|
present: o || s.open
|
|
2504
2505
|
}, s.disableHoverableContent ? /* @__PURE__ */ w(cn, R({
|
|
2505
2506
|
side: i
|
|
@@ -2511,33 +2512,33 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2511
2512
|
ref: t
|
|
2512
2513
|
})));
|
|
2513
2514
|
}), Jo = /* @__PURE__ */ I((e, t) => {
|
|
2514
|
-
const n = Ce(Ae, e.__scopeTooltip), o = lt(Ae, e.__scopeTooltip), i = k(null), r = pe(t, i), [s,
|
|
2515
|
-
|
|
2515
|
+
const n = Ce(Ae, e.__scopeTooltip), o = lt(Ae, e.__scopeTooltip), i = k(null), r = pe(t, i), [s, a] = U(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = j(() => {
|
|
2516
|
+
a(null), d(!1);
|
|
2516
2517
|
}, [
|
|
2517
2518
|
d
|
|
2518
2519
|
]), f = j((h, m) => {
|
|
2519
2520
|
const g = h.currentTarget, v = {
|
|
2520
2521
|
x: h.clientX,
|
|
2521
2522
|
y: h.clientY
|
|
2522
|
-
}, y = ri(v, g.getBoundingClientRect()), x = oi(v, y), b = ii(m.getBoundingClientRect()), $ =
|
|
2523
|
+
}, y = ri(v, g.getBoundingClientRect()), x = oi(v, y), b = ii(m.getBoundingClientRect()), $ = ai([
|
|
2523
2524
|
...x,
|
|
2524
2525
|
...b
|
|
2525
2526
|
]);
|
|
2526
|
-
|
|
2527
|
+
a($), d(!0);
|
|
2527
2528
|
}, [
|
|
2528
2529
|
d
|
|
2529
2530
|
]);
|
|
2530
2531
|
return S(() => () => p(), [
|
|
2531
2532
|
p
|
|
2532
2533
|
]), S(() => {
|
|
2533
|
-
if (
|
|
2534
|
-
const h = (g) => f(g, u), m = (g) => f(g,
|
|
2535
|
-
return
|
|
2536
|
-
|
|
2534
|
+
if (c && u) {
|
|
2535
|
+
const h = (g) => f(g, u), m = (g) => f(g, c);
|
|
2536
|
+
return c.addEventListener("pointerleave", h), u.addEventListener("pointerleave", m), () => {
|
|
2537
|
+
c.removeEventListener("pointerleave", h), u.removeEventListener("pointerleave", m);
|
|
2537
2538
|
};
|
|
2538
2539
|
}
|
|
2539
2540
|
}, [
|
|
2540
|
-
|
|
2541
|
+
c,
|
|
2541
2542
|
u,
|
|
2542
2543
|
f,
|
|
2543
2544
|
p
|
|
@@ -2547,13 +2548,13 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2547
2548
|
const g = m.target, v = {
|
|
2548
2549
|
x: m.clientX,
|
|
2549
2550
|
y: m.clientY
|
|
2550
|
-
}, y = (
|
|
2551
|
+
}, y = (c == null ? void 0 : c.contains(g)) || (u == null ? void 0 : u.contains(g)), x = !si(v, s);
|
|
2551
2552
|
y ? p() : x && (p(), l());
|
|
2552
2553
|
};
|
|
2553
2554
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
2554
2555
|
}
|
|
2555
2556
|
}, [
|
|
2556
|
-
|
|
2557
|
+
c,
|
|
2557
2558
|
u,
|
|
2558
2559
|
s,
|
|
2559
2560
|
l,
|
|
@@ -2564,14 +2565,14 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2564
2565
|
}), [Qo, ei] = je(ut, {
|
|
2565
2566
|
isInside: !1
|
|
2566
2567
|
}), cn = /* @__PURE__ */ I((e, t) => {
|
|
2567
|
-
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...
|
|
2568
|
+
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Ce(Ae, n), l = We(n), { onClose: u } = c;
|
|
2568
2569
|
return S(() => (document.addEventListener(et, u), () => document.removeEventListener(et, u)), [
|
|
2569
2570
|
u
|
|
2570
2571
|
]), S(() => {
|
|
2571
|
-
if (
|
|
2572
|
+
if (c.trigger) {
|
|
2572
2573
|
const d = (p) => {
|
|
2573
2574
|
const f = p.target;
|
|
2574
|
-
f != null && f.contains(
|
|
2575
|
+
f != null && f.contains(c.trigger) && u();
|
|
2575
2576
|
};
|
|
2576
2577
|
return window.addEventListener("scroll", d, {
|
|
2577
2578
|
capture: !0
|
|
@@ -2580,7 +2581,7 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2580
2581
|
});
|
|
2581
2582
|
}
|
|
2582
2583
|
}, [
|
|
2583
|
-
|
|
2584
|
+
c.trigger,
|
|
2584
2585
|
u
|
|
2585
2586
|
]), /* @__PURE__ */ w(dr, {
|
|
2586
2587
|
asChild: !0,
|
|
@@ -2590,22 +2591,22 @@ const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
|
2590
2591
|
onFocusOutside: (d) => d.preventDefault(),
|
|
2591
2592
|
onDismiss: u
|
|
2592
2593
|
}, /* @__PURE__ */ w(Do, R({
|
|
2593
|
-
"data-state":
|
|
2594
|
-
}, l,
|
|
2594
|
+
"data-state": c.stateAttribute
|
|
2595
|
+
}, l, a, {
|
|
2595
2596
|
ref: t,
|
|
2596
2597
|
style: {
|
|
2597
|
-
...
|
|
2598
|
+
...a.style,
|
|
2598
2599
|
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2599
2600
|
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
2600
2601
|
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
2601
2602
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2602
2603
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2603
2604
|
}
|
|
2604
|
-
}), /* @__PURE__ */ w(
|
|
2605
|
+
}), /* @__PURE__ */ w(Wt, null, o), /* @__PURE__ */ w(Qo, {
|
|
2605
2606
|
scope: n,
|
|
2606
2607
|
isInside: !0
|
|
2607
2608
|
}, /* @__PURE__ */ w(Bo, {
|
|
2608
|
-
id:
|
|
2609
|
+
id: c.contentId,
|
|
2609
2610
|
role: "tooltip"
|
|
2610
2611
|
}, i || o))));
|
|
2611
2612
|
}), ti = "TooltipArrow", ni = /* @__PURE__ */ I((e, t) => {
|
|
@@ -2696,16 +2697,16 @@ function si(e, t) {
|
|
|
2696
2697
|
const { x: n, y: o } = e;
|
|
2697
2698
|
let i = !1;
|
|
2698
2699
|
for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
|
|
2699
|
-
const
|
|
2700
|
-
|
|
2700
|
+
const a = t[r].x, c = t[r].y, l = t[s].x, u = t[s].y;
|
|
2701
|
+
c > o != u > o && n < (l - a) * (o - c) / (u - c) + a && (i = !i);
|
|
2701
2702
|
}
|
|
2702
2703
|
return i;
|
|
2703
2704
|
}
|
|
2704
|
-
function
|
|
2705
|
+
function ai(e) {
|
|
2705
2706
|
const t = e.slice();
|
|
2706
|
-
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0),
|
|
2707
|
+
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), ci(t);
|
|
2707
2708
|
}
|
|
2708
|
-
function
|
|
2709
|
+
function ci(e) {
|
|
2709
2710
|
if (e.length <= 1) return e.slice();
|
|
2710
2711
|
const t = [];
|
|
2711
2712
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -2734,7 +2735,7 @@ const li = Uo, ui = Xo, di = Yo, fi = Ko, pi = Zo, hi = ni;
|
|
|
2734
2735
|
function gi(e) {
|
|
2735
2736
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2736
2737
|
}
|
|
2737
|
-
var
|
|
2738
|
+
var ln = { exports: {} };
|
|
2738
2739
|
/*!
|
|
2739
2740
|
Copyright (c) 2018 Jed Watson.
|
|
2740
2741
|
Licensed under the MIT License (MIT), see
|
|
@@ -2745,8 +2746,8 @@ var an = { exports: {} };
|
|
|
2745
2746
|
var t = {}.hasOwnProperty;
|
|
2746
2747
|
function n() {
|
|
2747
2748
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
2748
|
-
var
|
|
2749
|
-
|
|
2749
|
+
var a = arguments[s];
|
|
2750
|
+
a && (r = i(r, o.call(this, a)));
|
|
2750
2751
|
}
|
|
2751
2752
|
return r;
|
|
2752
2753
|
}
|
|
@@ -2760,8 +2761,8 @@ var an = { exports: {} };
|
|
|
2760
2761
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
2761
2762
|
return r.toString();
|
|
2762
2763
|
var s = "";
|
|
2763
|
-
for (var
|
|
2764
|
-
t.call(r,
|
|
2764
|
+
for (var a in r)
|
|
2765
|
+
t.call(r, a) && r[a] && (s = i(s, this && this[a] || a));
|
|
2765
2766
|
return s;
|
|
2766
2767
|
}
|
|
2767
2768
|
function i(r, s) {
|
|
@@ -2769,8 +2770,8 @@ var an = { exports: {} };
|
|
|
2769
2770
|
}
|
|
2770
2771
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
2771
2772
|
})();
|
|
2772
|
-
})(
|
|
2773
|
-
var mi =
|
|
2773
|
+
})(ln);
|
|
2774
|
+
var mi = ln.exports;
|
|
2774
2775
|
const vi = /* @__PURE__ */ gi(mi), yi = "_slideDownAndFade_fkagk_1", xi = "_slideLeftAndFade_fkagk_1", bi = "_slideUpAndFade_fkagk_1", $i = "_slideRightAndFade_fkagk_1", wi = {
|
|
2775
2776
|
"purpur-tooltip": "_purpur-tooltip_fkagk_1",
|
|
2776
2777
|
"purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
|
|
@@ -2800,8 +2801,8 @@ const vi = /* @__PURE__ */ gi(mi), yi = "_slideDownAndFade_fkagk_1", xi = "_slid
|
|
|
2800
2801
|
contentClassName: i,
|
|
2801
2802
|
negative: r = !1,
|
|
2802
2803
|
position: s = _i.TOP,
|
|
2803
|
-
align:
|
|
2804
|
-
triggerAriaLabel:
|
|
2804
|
+
align: a = Pi.CENTER,
|
|
2805
|
+
triggerAriaLabel: c = "",
|
|
2805
2806
|
triggerElement: l,
|
|
2806
2807
|
...u
|
|
2807
2808
|
}, d) => {
|
|
@@ -2813,8 +2814,8 @@ const vi = /* @__PURE__ */ gi(mi), yi = "_slideDownAndFade_fkagk_1", xi = "_slid
|
|
|
2813
2814
|
Nt,
|
|
2814
2815
|
{
|
|
2815
2816
|
ref: d,
|
|
2816
|
-
"aria-label":
|
|
2817
|
-
variant:
|
|
2817
|
+
"aria-label": c,
|
|
2818
|
+
variant: Fn.TERTIARY_PURPLE,
|
|
2818
2819
|
negative: r,
|
|
2819
2820
|
iconOnly: !0,
|
|
2820
2821
|
"data-testid": `${e}-trigger-button`,
|
|
@@ -2837,7 +2838,7 @@ const vi = /* @__PURE__ */ gi(mi), yi = "_slideDownAndFade_fkagk_1", xi = "_slid
|
|
|
2837
2838
|
pi,
|
|
2838
2839
|
{
|
|
2839
2840
|
side: s,
|
|
2840
|
-
align:
|
|
2841
|
+
align: a,
|
|
2841
2842
|
className: Xe([
|
|
2842
2843
|
i,
|
|
2843
2844
|
`${le}__content`,
|
|
@@ -2847,9 +2848,9 @@ const vi = /* @__PURE__ */ gi(mi), yi = "_slideDownAndFade_fkagk_1", xi = "_slid
|
|
|
2847
2848
|
"data-testid": `${e}-content`,
|
|
2848
2849
|
children: [
|
|
2849
2850
|
typeof n == "string" ? /* @__PURE__ */ z(
|
|
2850
|
-
|
|
2851
|
+
Ht,
|
|
2851
2852
|
{
|
|
2852
|
-
variant:
|
|
2853
|
+
variant: Ft.PARAGRAPH100,
|
|
2853
2854
|
negative: !r,
|
|
2854
2855
|
"data-testid": `${e}-paragraph`,
|
|
2855
2856
|
children: n
|