@purpurds/tooltip 4.4.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/ci_build/@purpurds/tooltip/{9041bcd1aa83af6f13172f6cdfe73e182daaebbb.untar.log → 6d15a890b0f37f51e14d20ec86a7190d0bb8fbc3.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +8 -8
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +3 -3
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +1 -1
- package/dist/LICENSE.txt +11 -4
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.d.ts +2 -0
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.es.js +351 -345
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +6 -5
- package/src/tooltip.tsx +4 -0
package/dist/tooltip.es.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsxs as Ue, jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
|
-
import { forwardRef as M, useCallback as k, createContext as Ge, useMemo as xe, createElement as w, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as
|
|
3
|
+
import { forwardRef as M, useCallback as k, createContext as Ge, useMemo as xe, createElement as w, useContext as Tt, Fragment as $n, Children as se, isValidElement as Ie, cloneElement as Je, useEffect as R, useRef as L, useState as W, useLayoutEffect as Ct, useReducer as _n } from "react";
|
|
4
4
|
import * as wn from "react-dom";
|
|
5
5
|
import An, { flushSync as Rt } from "react-dom";
|
|
6
6
|
const Pn = {
|
|
7
|
+
SM: "sm",
|
|
8
|
+
MD: "md",
|
|
9
|
+
LG: "lg"
|
|
10
|
+
}, En = {
|
|
7
11
|
PRIMARY: "primary",
|
|
8
12
|
PRIMARY_NEGATIVE: "primary-negative",
|
|
9
13
|
SECONDARY: "secondary",
|
|
@@ -15,7 +19,7 @@ const Pn = {
|
|
|
15
19
|
MD: "md",
|
|
16
20
|
LG: "lg"
|
|
17
21
|
};
|
|
18
|
-
function
|
|
22
|
+
function On(e) {
|
|
19
23
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
20
24
|
}
|
|
21
25
|
var St = { exports: {} };
|
|
@@ -54,35 +58,35 @@ var St = { exports: {} };
|
|
|
54
58
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
55
59
|
})();
|
|
56
60
|
})(St);
|
|
57
|
-
var
|
|
58
|
-
const pt = /* @__PURE__ */
|
|
61
|
+
var Tn = St.exports;
|
|
62
|
+
const pt = /* @__PURE__ */ On(Tn), Cn = "_rotate_7s2g1_1", Rn = "_dash_7s2g1_1", Re = {
|
|
59
63
|
"purpur-spinner": "_purpur-spinner_7s2g1_1",
|
|
60
|
-
rotate:
|
|
64
|
+
rotate: Cn,
|
|
61
65
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
|
|
62
66
|
"purpur-spinner--xs": "_purpur-spinner--xs_7s2g1_8",
|
|
63
67
|
"purpur-spinner--sm": "_purpur-spinner--sm_7s2g1_12",
|
|
64
68
|
"purpur-spinner--md": "_purpur-spinner--md_7s2g1_16",
|
|
65
69
|
"purpur-spinner--lg": "_purpur-spinner--lg_7s2g1_20",
|
|
66
70
|
"purpur-spinner__circle": "_purpur-spinner__circle_7s2g1_24",
|
|
67
|
-
dash:
|
|
71
|
+
dash: Rn,
|
|
68
72
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
|
|
69
73
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
|
|
70
74
|
"purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
|
|
71
|
-
}, Se = "purpur-spinner",
|
|
75
|
+
}, Se = "purpur-spinner", Sn = {
|
|
72
76
|
PRIMARY: "primary",
|
|
73
77
|
DISABLED: "disabled",
|
|
74
78
|
NEGATIVE: "negative",
|
|
75
79
|
NEGATIVE_DISABLED: "negative-disabled"
|
|
76
|
-
},
|
|
80
|
+
}, Dn = {
|
|
77
81
|
XXS: "xxs",
|
|
78
82
|
XS: "xs",
|
|
79
83
|
SM: "sm",
|
|
80
84
|
MD: "md",
|
|
81
85
|
LG: "lg"
|
|
82
|
-
},
|
|
86
|
+
}, Nn = ({
|
|
83
87
|
["data-testid"]: e,
|
|
84
|
-
size: t =
|
|
85
|
-
variant: n =
|
|
88
|
+
size: t = Dn.SM,
|
|
89
|
+
variant: n = Sn.PRIMARY,
|
|
86
90
|
...o
|
|
87
91
|
}) => /* @__PURE__ */ I(
|
|
88
92
|
"div",
|
|
@@ -104,7 +108,7 @@ const pt = /* @__PURE__ */ En(On), Tn = "_rotate_7s2g1_1", Cn = "_dash_7s2g1_1",
|
|
|
104
108
|
) })
|
|
105
109
|
}
|
|
106
110
|
);
|
|
107
|
-
function
|
|
111
|
+
function Ln(e) {
|
|
108
112
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
109
113
|
}
|
|
110
114
|
var Dt = { exports: {} };
|
|
@@ -143,37 +147,37 @@ var Dt = { exports: {} };
|
|
|
143
147
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
144
148
|
})();
|
|
145
149
|
})(Dt);
|
|
146
|
-
var
|
|
147
|
-
const
|
|
148
|
-
"purpur-button": "_purpur-
|
|
149
|
-
"purpur-button--sm": "_purpur-button--
|
|
150
|
-
"purpur-button--icon-only": "_purpur-button--icon-
|
|
151
|
-
"purpur-button--md": "_purpur-button--
|
|
152
|
-
"purpur-button--lg": "_purpur-button--
|
|
153
|
-
"purpur-button--full-width": "_purpur-button--full-
|
|
154
|
-
"purpur-button--primary": "_purpur-button--
|
|
155
|
-
"purpur-button--disabled": "_purpur-button--
|
|
156
|
-
"purpur-button--primary-negative": "_purpur-button--primary-
|
|
157
|
-
"purpur-button--secondary": "_purpur-button--
|
|
158
|
-
"purpur-button--secondary-negative": "_purpur-button--secondary-
|
|
159
|
-
"purpur-button--expressive": "_purpur-button--
|
|
160
|
-
"purpur-button--expressive-negative": "_purpur-button--expressive-
|
|
161
|
-
"purpur-button--negative": "_purpur-button--
|
|
162
|
-
"purpur-button--destructive": "_purpur-button--
|
|
163
|
-
"purpur-button--destructive-negative": "_purpur-button--destructive-
|
|
164
|
-
"purpur-button--tertiary-purple": "_purpur-button--tertiary-
|
|
165
|
-
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-
|
|
166
|
-
"purpur-button--text-negative": "_purpur-button--text-
|
|
167
|
-
"purpur-button--text": "_purpur-button--
|
|
150
|
+
var Mn = Dt.exports;
|
|
151
|
+
const In = /* @__PURE__ */ Ln(Mn), re = {
|
|
152
|
+
"purpur-button": "_purpur-button_u2yv5_1",
|
|
153
|
+
"purpur-button--sm": "_purpur-button--sm_u2yv5_33",
|
|
154
|
+
"purpur-button--icon-only": "_purpur-button--icon-only_u2yv5_36",
|
|
155
|
+
"purpur-button--md": "_purpur-button--md_u2yv5_39",
|
|
156
|
+
"purpur-button--lg": "_purpur-button--lg_u2yv5_45",
|
|
157
|
+
"purpur-button--full-width": "_purpur-button--full-width_u2yv5_51",
|
|
158
|
+
"purpur-button--primary": "_purpur-button--primary_u2yv5_54",
|
|
159
|
+
"purpur-button--disabled": "_purpur-button--disabled_u2yv5_58",
|
|
160
|
+
"purpur-button--primary-negative": "_purpur-button--primary-negative_u2yv5_64",
|
|
161
|
+
"purpur-button--secondary": "_purpur-button--secondary_u2yv5_76",
|
|
162
|
+
"purpur-button--secondary-negative": "_purpur-button--secondary-negative_u2yv5_87",
|
|
163
|
+
"purpur-button--expressive": "_purpur-button--expressive_u2yv5_98",
|
|
164
|
+
"purpur-button--expressive-negative": "_purpur-button--expressive-negative_u2yv5_108",
|
|
165
|
+
"purpur-button--negative": "_purpur-button--negative_u2yv5_120",
|
|
166
|
+
"purpur-button--destructive": "_purpur-button--destructive_u2yv5_127",
|
|
167
|
+
"purpur-button--destructive-negative": "_purpur-button--destructive-negative_u2yv5_137",
|
|
168
|
+
"purpur-button--tertiary-purple": "_purpur-button--tertiary-purple_u2yv5_147",
|
|
169
|
+
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_u2yv5_160",
|
|
170
|
+
"purpur-button--text-negative": "_purpur-button--text-negative_u2yv5_175",
|
|
171
|
+
"purpur-button--text": "_purpur-button--text_u2yv5_175"
|
|
168
172
|
}, ht = {
|
|
169
|
-
...
|
|
173
|
+
...En,
|
|
170
174
|
DESTRUCTIVE: "destructive",
|
|
171
175
|
DESTRUCTIVE_NEGATIVE: "destructive-negative",
|
|
172
176
|
TERTIARY_PURPLE: "tertiary-purple",
|
|
173
177
|
TERTIARY_PURPLE_NEGATVIE: "tertiary-purple-negative",
|
|
174
178
|
TEXT: "text",
|
|
175
179
|
TEXT_NEGATIVE: "text-negative"
|
|
176
|
-
}, oe = "purpur-button",
|
|
180
|
+
}, oe = "purpur-button", Fn = ({
|
|
177
181
|
children: e,
|
|
178
182
|
className: t,
|
|
179
183
|
["data-testid"]: n,
|
|
@@ -189,7 +193,7 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
|
|
|
189
193
|
}, p) => {
|
|
190
194
|
if (r && l === "destructive")
|
|
191
195
|
return null;
|
|
192
|
-
const f =
|
|
196
|
+
const f = In(
|
|
193
197
|
[
|
|
194
198
|
re[oe],
|
|
195
199
|
re[`${oe}--${l}`],
|
|
@@ -216,15 +220,15 @@ const Mn = /* @__PURE__ */ Nn(Ln), re = {
|
|
|
216
220
|
onClick: h,
|
|
217
221
|
...u,
|
|
218
222
|
children: [
|
|
219
|
-
s && /* @__PURE__ */ I(
|
|
223
|
+
s && /* @__PURE__ */ I(Nn, { size: c === ft.LG ? "xs" : "xxs", variant: g() }),
|
|
220
224
|
" ",
|
|
221
225
|
e
|
|
222
226
|
]
|
|
223
227
|
}
|
|
224
228
|
);
|
|
225
|
-
}, Nt = M(
|
|
229
|
+
}, Nt = M(Fn);
|
|
226
230
|
Nt.displayName = "Button";
|
|
227
|
-
function
|
|
231
|
+
function kn(e) {
|
|
228
232
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
229
233
|
}
|
|
230
234
|
var Lt = { exports: {} };
|
|
@@ -263,8 +267,8 @@ var Lt = { exports: {} };
|
|
|
263
267
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
264
268
|
})();
|
|
265
269
|
})(Lt);
|
|
266
|
-
var
|
|
267
|
-
const
|
|
270
|
+
var Hn = Lt.exports;
|
|
271
|
+
const Bn = /* @__PURE__ */ kn(Hn), Wn = {
|
|
268
272
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
269
273
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
270
274
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -272,39 +276,39 @@ const Hn = /* @__PURE__ */ Fn(kn), Bn = {
|
|
|
272
276
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
273
277
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
274
278
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
275
|
-
},
|
|
279
|
+
}, Vn = {
|
|
276
280
|
name: "info",
|
|
277
281
|
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>',
|
|
278
282
|
keywords: ["info"],
|
|
279
283
|
category: "status"
|
|
280
284
|
}, Mt = (e) => /* @__PURE__ */ I(
|
|
281
|
-
|
|
285
|
+
Xn,
|
|
282
286
|
{
|
|
283
287
|
...e,
|
|
284
|
-
svg:
|
|
288
|
+
svg: Vn
|
|
285
289
|
}
|
|
286
290
|
);
|
|
287
291
|
Mt.displayName = "IconInfo";
|
|
288
|
-
const
|
|
292
|
+
const jn = Bn.bind(Wn), gt = "purpur-icon", zn = "md", Un = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Gn = ({ content: e = "", title: t } = {}) => {
|
|
289
293
|
const n = [
|
|
290
294
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
291
295
|
{ name: "fill", value: "currentColor" },
|
|
292
296
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
293
297
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
294
298
|
], o = t ? `<title>${t}</title>` : "";
|
|
295
|
-
return `<svg ${
|
|
296
|
-
},
|
|
299
|
+
return `<svg ${Un(n)}>${o}${e}</svg>`;
|
|
300
|
+
}, Yn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Xn = ({
|
|
297
301
|
["data-testid"]: e,
|
|
298
302
|
svg: t,
|
|
299
303
|
allyTitle: n,
|
|
300
304
|
className: o = "",
|
|
301
|
-
size: i =
|
|
305
|
+
size: i = zn,
|
|
302
306
|
...r
|
|
303
307
|
}) => {
|
|
304
|
-
const s =
|
|
305
|
-
content:
|
|
308
|
+
const s = Gn({
|
|
309
|
+
content: Yn(t.svg),
|
|
306
310
|
title: n
|
|
307
|
-
}), a =
|
|
311
|
+
}), a = jn(o, gt, `${gt}--${i}`);
|
|
308
312
|
return /* @__PURE__ */ I(
|
|
309
313
|
"span",
|
|
310
314
|
{
|
|
@@ -316,7 +320,7 @@ const Wn = Hn.bind(Bn), gt = "purpur-icon", Vn = "md", jn = (e) => e.filter((t)
|
|
|
316
320
|
}
|
|
317
321
|
);
|
|
318
322
|
};
|
|
319
|
-
function
|
|
323
|
+
function qn(e) {
|
|
320
324
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
321
325
|
}
|
|
322
326
|
var It = { exports: {} };
|
|
@@ -355,22 +359,22 @@ var It = { exports: {} };
|
|
|
355
359
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
356
360
|
})();
|
|
357
361
|
})(It);
|
|
358
|
-
var
|
|
359
|
-
const
|
|
360
|
-
"purpur-paragraph": "_purpur-
|
|
361
|
-
"purpur-paragraph--disabled": "_purpur-paragraph--
|
|
362
|
-
"purpur-paragraph--hyphens": "_purpur-paragraph--
|
|
363
|
-
"purpur-paragraph--negative": "_purpur-paragraph--
|
|
364
|
-
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-
|
|
365
|
-
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-
|
|
366
|
-
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-
|
|
367
|
-
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-
|
|
368
|
-
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-
|
|
369
|
-
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-
|
|
370
|
-
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-
|
|
371
|
-
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-
|
|
372
|
-
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-
|
|
373
|
-
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-
|
|
362
|
+
var Kn = It.exports;
|
|
363
|
+
const Zn = /* @__PURE__ */ qn(Kn), ye = {
|
|
364
|
+
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
365
|
+
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
366
|
+
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
367
|
+
"purpur-paragraph--negative": "_purpur-paragraph--negative_1rh57_13",
|
|
368
|
+
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_1rh57_16",
|
|
369
|
+
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_1rh57_22",
|
|
370
|
+
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_1rh57_29",
|
|
371
|
+
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_1rh57_36",
|
|
372
|
+
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_1rh57_42",
|
|
373
|
+
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_1rh57_48",
|
|
374
|
+
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_1rh57_54",
|
|
375
|
+
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
376
|
+
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
377
|
+
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
374
378
|
}, Ft = {
|
|
375
379
|
PARAGRAPH100: "paragraph-100",
|
|
376
380
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
@@ -382,7 +386,7 @@ const Kn = /* @__PURE__ */ Xn(qn), ye = {
|
|
|
382
386
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
383
387
|
OVERLINE100: "overline-100",
|
|
384
388
|
OVERLINE200: "overline-200"
|
|
385
|
-
}, be = "purpur-paragraph",
|
|
389
|
+
}, be = "purpur-paragraph", Jn = ({
|
|
386
390
|
["data-testid"]: e,
|
|
387
391
|
children: t,
|
|
388
392
|
className: n = "",
|
|
@@ -392,7 +396,7 @@ const Kn = /* @__PURE__ */ Xn(qn), ye = {
|
|
|
392
396
|
variant: s = Ft.PARAGRAPH100,
|
|
393
397
|
...a
|
|
394
398
|
}) => {
|
|
395
|
-
const c =
|
|
399
|
+
const c = Zn([
|
|
396
400
|
n,
|
|
397
401
|
ye[be],
|
|
398
402
|
ye[`${be}--${s}`],
|
|
@@ -403,7 +407,7 @@ const Kn = /* @__PURE__ */ Xn(qn), ye = {
|
|
|
403
407
|
}
|
|
404
408
|
]);
|
|
405
409
|
return /* @__PURE__ */ I("p", { ...a, className: c, "data-testid": e, children: t });
|
|
406
|
-
},
|
|
410
|
+
}, Qn = "400ms";
|
|
407
411
|
function S() {
|
|
408
412
|
return S = Object.assign ? Object.assign.bind() : function(e) {
|
|
409
413
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -420,12 +424,12 @@ function G(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
420
424
|
return t == null ? void 0 : t(i);
|
|
421
425
|
};
|
|
422
426
|
}
|
|
423
|
-
function
|
|
427
|
+
function er(e, t) {
|
|
424
428
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
425
429
|
}
|
|
426
430
|
function kt(...e) {
|
|
427
431
|
return (t) => e.forEach(
|
|
428
|
-
(n) =>
|
|
432
|
+
(n) => er(n, t)
|
|
429
433
|
);
|
|
430
434
|
}
|
|
431
435
|
function pe(...e) {
|
|
@@ -481,10 +485,10 @@ function Ht(e, t = []) {
|
|
|
481
485
|
};
|
|
482
486
|
return i.scopeName = e, [
|
|
483
487
|
o,
|
|
484
|
-
|
|
488
|
+
tr(i, ...t)
|
|
485
489
|
];
|
|
486
490
|
}
|
|
487
|
-
function
|
|
491
|
+
function tr(...e) {
|
|
488
492
|
const t = e[0];
|
|
489
493
|
if (e.length === 1)
|
|
490
494
|
return t;
|
|
@@ -516,7 +520,7 @@ function er(...e) {
|
|
|
516
520
|
return n.scopeName = t.scopeName, n;
|
|
517
521
|
}
|
|
518
522
|
const Bt = /* @__PURE__ */ M((e, t) => {
|
|
519
|
-
const { children: n, ...o } = e, i = se.toArray(n), r = i.find(
|
|
523
|
+
const { children: n, ...o } = e, i = se.toArray(n), r = i.find(nr);
|
|
520
524
|
if (r) {
|
|
521
525
|
const s = r.props.children, a = i.map((c) => c === r ? se.count(s) > 1 ? se.only(null) : /* @__PURE__ */ Ie(s) ? s.props.children : null : c);
|
|
522
526
|
return /* @__PURE__ */ w(Ye, S({}, o, {
|
|
@@ -531,16 +535,16 @@ Bt.displayName = "Slot";
|
|
|
531
535
|
const Ye = /* @__PURE__ */ M((e, t) => {
|
|
532
536
|
const { children: n, ...o } = e;
|
|
533
537
|
return /* @__PURE__ */ Ie(n) ? /* @__PURE__ */ Je(n, {
|
|
534
|
-
...
|
|
538
|
+
...rr(o, n.props),
|
|
535
539
|
ref: t ? kt(t, n.ref) : n.ref
|
|
536
540
|
}) : se.count(n) > 1 ? se.only(null) : null;
|
|
537
541
|
});
|
|
538
542
|
Ye.displayName = "SlotClone";
|
|
539
|
-
const
|
|
540
|
-
function
|
|
541
|
-
return /* @__PURE__ */ Ie(e) && e.type ===
|
|
543
|
+
const Wt = ({ children: e }) => /* @__PURE__ */ w($n, null, e);
|
|
544
|
+
function nr(e) {
|
|
545
|
+
return /* @__PURE__ */ Ie(e) && e.type === Wt;
|
|
542
546
|
}
|
|
543
|
-
function
|
|
547
|
+
function rr(e, t) {
|
|
544
548
|
const n = {
|
|
545
549
|
...t
|
|
546
550
|
};
|
|
@@ -561,7 +565,7 @@ function nr(e, t) {
|
|
|
561
565
|
...n
|
|
562
566
|
};
|
|
563
567
|
}
|
|
564
|
-
const
|
|
568
|
+
const or = [
|
|
565
569
|
"a",
|
|
566
570
|
"button",
|
|
567
571
|
"div",
|
|
@@ -578,7 +582,7 @@ const rr = [
|
|
|
578
582
|
"span",
|
|
579
583
|
"svg",
|
|
580
584
|
"ul"
|
|
581
|
-
], ce =
|
|
585
|
+
], ce = or.reduce((e, t) => {
|
|
582
586
|
const n = /* @__PURE__ */ M((o, i) => {
|
|
583
587
|
const { asChild: r, ...s } = o, a = r ? Bt : t;
|
|
584
588
|
return R(() => {
|
|
@@ -592,7 +596,7 @@ const rr = [
|
|
|
592
596
|
[t]: n
|
|
593
597
|
};
|
|
594
598
|
}, {});
|
|
595
|
-
function
|
|
599
|
+
function ir(e, t) {
|
|
596
600
|
e && Rt(
|
|
597
601
|
() => e.dispatchEvent(t)
|
|
598
602
|
);
|
|
@@ -609,7 +613,7 @@ function he(e) {
|
|
|
609
613
|
[]
|
|
610
614
|
);
|
|
611
615
|
}
|
|
612
|
-
function
|
|
616
|
+
function sr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
613
617
|
const n = he(e);
|
|
614
618
|
R(() => {
|
|
615
619
|
const o = (i) => {
|
|
@@ -621,27 +625,27 @@ function ir(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
621
625
|
t
|
|
622
626
|
]);
|
|
623
627
|
}
|
|
624
|
-
const Xe = "dismissableLayer.update",
|
|
628
|
+
const Xe = "dismissableLayer.update", ar = "dismissableLayer.pointerDownOutside", cr = "dismissableLayer.focusOutside";
|
|
625
629
|
let mt;
|
|
626
|
-
const
|
|
630
|
+
const lr = /* @__PURE__ */ Ge({
|
|
627
631
|
layers: /* @__PURE__ */ new Set(),
|
|
628
632
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
629
633
|
branches: /* @__PURE__ */ new Set()
|
|
630
|
-
}),
|
|
634
|
+
}), ur = /* @__PURE__ */ M((e, t) => {
|
|
631
635
|
var n;
|
|
632
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(
|
|
636
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: a, onDismiss: c, ...l } = e, d = Tt(lr), [u, p] = W(null), f = (n = u == null ? void 0 : u.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = W({}), g = pe(
|
|
633
637
|
t,
|
|
634
638
|
(A) => p(A)
|
|
635
639
|
), m = Array.from(d.layers), [v] = [
|
|
636
640
|
...d.layersWithOutsidePointerEventsDisabled
|
|
637
|
-
].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, _ =
|
|
641
|
+
].slice(-1), y = m.indexOf(v), x = u ? m.indexOf(u) : -1, $ = d.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= y, _ = dr((A) => {
|
|
638
642
|
const C = A.target, F = [
|
|
639
643
|
...d.branches
|
|
640
644
|
].some(
|
|
641
645
|
(T) => T.contains(C)
|
|
642
646
|
);
|
|
643
647
|
!b || F || (r == null || r(A), a == null || a(A), A.defaultPrevented || c == null || c());
|
|
644
|
-
}, f), E =
|
|
648
|
+
}, f), E = fr((A) => {
|
|
645
649
|
const C = A.target;
|
|
646
650
|
[
|
|
647
651
|
...d.branches
|
|
@@ -649,7 +653,7 @@ const cr = /* @__PURE__ */ Ge({
|
|
|
649
653
|
(T) => T.contains(C)
|
|
650
654
|
) || (s == null || s(A), a == null || a(A), A.defaultPrevented || c == null || c());
|
|
651
655
|
}, f);
|
|
652
|
-
return
|
|
656
|
+
return sr((A) => {
|
|
653
657
|
x === d.layers.size - 1 && (i == null || i(A), !A.defaultPrevented && c && (A.preventDefault(), c()));
|
|
654
658
|
}, f), R(() => {
|
|
655
659
|
if (u)
|
|
@@ -680,14 +684,14 @@ const cr = /* @__PURE__ */ Ge({
|
|
|
680
684
|
onPointerDownCapture: G(e.onPointerDownCapture, _.onPointerDownCapture)
|
|
681
685
|
}));
|
|
682
686
|
});
|
|
683
|
-
function
|
|
687
|
+
function dr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
684
688
|
const n = he(e), o = L(!1), i = L(() => {
|
|
685
689
|
});
|
|
686
690
|
return R(() => {
|
|
687
691
|
const r = (a) => {
|
|
688
692
|
if (a.target && !o.current) {
|
|
689
693
|
let l = function() {
|
|
690
|
-
|
|
694
|
+
Vt(ar, n, c, {
|
|
691
695
|
discrete: !0
|
|
692
696
|
});
|
|
693
697
|
};
|
|
@@ -714,11 +718,11 @@ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
714
718
|
onPointerDownCapture: () => o.current = !0
|
|
715
719
|
};
|
|
716
720
|
}
|
|
717
|
-
function
|
|
721
|
+
function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
718
722
|
const n = he(e), o = L(!1);
|
|
719
723
|
return R(() => {
|
|
720
724
|
const i = (r) => {
|
|
721
|
-
r.target && !o.current &&
|
|
725
|
+
r.target && !o.current && Vt(cr, n, {
|
|
722
726
|
originalEvent: r
|
|
723
727
|
}, {
|
|
724
728
|
discrete: !1
|
|
@@ -737,7 +741,7 @@ function vt() {
|
|
|
737
741
|
const e = new CustomEvent(Xe);
|
|
738
742
|
document.dispatchEvent(e);
|
|
739
743
|
}
|
|
740
|
-
function
|
|
744
|
+
function Vt(e, t, n, { discrete: o }) {
|
|
741
745
|
const i = n.originalEvent.target, r = new CustomEvent(e, {
|
|
742
746
|
bubbles: !1,
|
|
743
747
|
cancelable: !0,
|
|
@@ -745,31 +749,31 @@ function Wt(e, t, n, { discrete: o }) {
|
|
|
745
749
|
});
|
|
746
750
|
t && i.addEventListener(e, t, {
|
|
747
751
|
once: !0
|
|
748
|
-
}), o ?
|
|
752
|
+
}), o ? ir(i, r) : i.dispatchEvent(r);
|
|
749
753
|
}
|
|
750
754
|
const de = globalThis != null && globalThis.document ? Ct : () => {
|
|
751
|
-
},
|
|
755
|
+
}, pr = N.useId || (() => {
|
|
752
756
|
});
|
|
753
|
-
let
|
|
754
|
-
function
|
|
755
|
-
const [t, n] = N.useState(
|
|
757
|
+
let hr = 0;
|
|
758
|
+
function gr(e) {
|
|
759
|
+
const [t, n] = N.useState(pr());
|
|
756
760
|
return de(() => {
|
|
757
761
|
n(
|
|
758
|
-
(o) => o ?? String(
|
|
762
|
+
(o) => o ?? String(hr++)
|
|
759
763
|
);
|
|
760
764
|
}, [
|
|
761
765
|
e
|
|
762
766
|
]), t ? `radix-${t}` : "";
|
|
763
767
|
}
|
|
764
|
-
const
|
|
768
|
+
const mr = ["top", "right", "bottom", "left"], ee = Math.min, B = Math.max, Fe = Math.round, De = Math.floor, te = (e) => ({
|
|
765
769
|
x: e,
|
|
766
770
|
y: e
|
|
767
|
-
}),
|
|
771
|
+
}), vr = {
|
|
768
772
|
left: "right",
|
|
769
773
|
right: "left",
|
|
770
774
|
bottom: "top",
|
|
771
775
|
top: "bottom"
|
|
772
|
-
},
|
|
776
|
+
}, yr = {
|
|
773
777
|
start: "end",
|
|
774
778
|
end: "start"
|
|
775
779
|
};
|
|
@@ -797,20 +801,20 @@ function me(e) {
|
|
|
797
801
|
function tt(e) {
|
|
798
802
|
return Qe(me(e));
|
|
799
803
|
}
|
|
800
|
-
function
|
|
804
|
+
function br(e, t, n) {
|
|
801
805
|
n === void 0 && (n = !1);
|
|
802
806
|
const o = ge(e), i = tt(e), r = et(i);
|
|
803
807
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
804
808
|
return t.reference[r] > t.floating[r] && (s = ke(s)), [s, ke(s)];
|
|
805
809
|
}
|
|
806
|
-
function
|
|
810
|
+
function xr(e) {
|
|
807
811
|
const t = ke(e);
|
|
808
812
|
return [Ke(e), t, Ke(t)];
|
|
809
813
|
}
|
|
810
814
|
function Ke(e) {
|
|
811
|
-
return e.replace(/start|end/g, (t) =>
|
|
815
|
+
return e.replace(/start|end/g, (t) => yr[t]);
|
|
812
816
|
}
|
|
813
|
-
function
|
|
817
|
+
function $r(e, t, n) {
|
|
814
818
|
const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
815
819
|
switch (e) {
|
|
816
820
|
case "top":
|
|
@@ -823,15 +827,15 @@ function xr(e, t, n) {
|
|
|
823
827
|
return [];
|
|
824
828
|
}
|
|
825
829
|
}
|
|
826
|
-
function
|
|
830
|
+
function _r(e, t, n, o) {
|
|
827
831
|
const i = ge(e);
|
|
828
|
-
let r =
|
|
832
|
+
let r = $r(X(e), n === "start", o);
|
|
829
833
|
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Ke)))), r;
|
|
830
834
|
}
|
|
831
835
|
function ke(e) {
|
|
832
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
836
|
+
return e.replace(/left|right|bottom|top/g, (t) => vr[t]);
|
|
833
837
|
}
|
|
834
|
-
function
|
|
838
|
+
function wr(e) {
|
|
835
839
|
return {
|
|
836
840
|
top: 0,
|
|
837
841
|
right: 0,
|
|
@@ -840,8 +844,8 @@ function _r(e) {
|
|
|
840
844
|
...e
|
|
841
845
|
};
|
|
842
846
|
}
|
|
843
|
-
function
|
|
844
|
-
return typeof e != "number" ?
|
|
847
|
+
function jt(e) {
|
|
848
|
+
return typeof e != "number" ? wr(e) : {
|
|
845
849
|
top: e,
|
|
846
850
|
right: e,
|
|
847
851
|
bottom: e,
|
|
@@ -905,7 +909,7 @@ function yt(e, t, n) {
|
|
|
905
909
|
}
|
|
906
910
|
return f;
|
|
907
911
|
}
|
|
908
|
-
const
|
|
912
|
+
const Ar = async (e, t, n) => {
|
|
909
913
|
const {
|
|
910
914
|
placement: o = "bottom",
|
|
911
915
|
strategy: i = "absolute",
|
|
@@ -985,7 +989,7 @@ async function $e(e, t) {
|
|
|
985
989
|
elementContext: u = "floating",
|
|
986
990
|
altBoundary: p = !1,
|
|
987
991
|
padding: f = 0
|
|
988
|
-
} = Y(t, e), h =
|
|
992
|
+
} = Y(t, e), h = jt(f), m = a[p ? u === "floating" ? "reference" : "floating" : u], v = He(await r.getClippingRect({
|
|
989
993
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(m))) == null || n ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
990
994
|
boundary: l,
|
|
991
995
|
rootBoundary: d,
|
|
@@ -1029,7 +1033,7 @@ const bt = (e) => ({
|
|
|
1029
1033
|
} = Y(e, t) || {};
|
|
1030
1034
|
if (c == null)
|
|
1031
1035
|
return {};
|
|
1032
|
-
const d =
|
|
1036
|
+
const d = jt(l), u = {
|
|
1033
1037
|
x: n,
|
|
1034
1038
|
y: o
|
|
1035
1039
|
}, p = tt(i), f = et(p), h = await s.getDimensions(c), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", x = r.reference[f] + r.reference[p] - u[p] - r.floating[f], $ = u[p] - r.reference[p], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
@@ -1044,7 +1048,7 @@ const bt = (e) => ({
|
|
|
1044
1048
|
}
|
|
1045
1049
|
};
|
|
1046
1050
|
}
|
|
1047
|
-
}),
|
|
1051
|
+
}), Pr = function(e) {
|
|
1048
1052
|
return e === void 0 && (e = {}), {
|
|
1049
1053
|
name: "flip",
|
|
1050
1054
|
options: e,
|
|
@@ -1065,12 +1069,12 @@ const bt = (e) => ({
|
|
|
1065
1069
|
fallbackAxisSideDirection: f = "none",
|
|
1066
1070
|
flipAlignment: h = !0,
|
|
1067
1071
|
...g
|
|
1068
|
-
} = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [ke(s)] :
|
|
1069
|
-
!u && f !== "none" && x.push(
|
|
1072
|
+
} = Y(e, t), m = X(o), v = X(s) === s, y = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), x = u || (v || !h ? [ke(s)] : xr(s));
|
|
1073
|
+
!u && f !== "none" && x.push(..._r(s, h, f, y));
|
|
1070
1074
|
const $ = [s, ...x], b = await $e(t, g), _ = [];
|
|
1071
1075
|
let E = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
1072
1076
|
if (l && _.push(b[m]), d) {
|
|
1073
|
-
const T =
|
|
1077
|
+
const T = br(o, r, y);
|
|
1074
1078
|
_.push(b[T[0]], b[T[1]]);
|
|
1075
1079
|
}
|
|
1076
1080
|
if (E = [...E, {
|
|
@@ -1089,12 +1093,12 @@ const bt = (e) => ({
|
|
|
1089
1093
|
placement: H
|
|
1090
1094
|
}
|
|
1091
1095
|
};
|
|
1092
|
-
let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O,
|
|
1096
|
+
let D = (C = E.filter((O) => O.overflows[0] <= 0).sort((O, j) => O.overflows[1] - j.overflows[1])[0]) == null ? void 0 : C.placement;
|
|
1093
1097
|
if (!D)
|
|
1094
1098
|
switch (p) {
|
|
1095
1099
|
case "bestFit": {
|
|
1096
1100
|
var F;
|
|
1097
|
-
const O = (F = E.map((
|
|
1101
|
+
const O = (F = E.map((j) => [j.placement, j.overflows.filter((P) => P > 0).reduce((P, Z) => P + Z, 0)]).sort((j, P) => j[1] - P[1])[0]) == null ? void 0 : F[0];
|
|
1098
1102
|
O && (D = O);
|
|
1099
1103
|
break;
|
|
1100
1104
|
}
|
|
@@ -1122,9 +1126,9 @@ function xt(e, t) {
|
|
|
1122
1126
|
};
|
|
1123
1127
|
}
|
|
1124
1128
|
function $t(e) {
|
|
1125
|
-
return
|
|
1129
|
+
return mr.some((t) => e[t] >= 0);
|
|
1126
1130
|
}
|
|
1127
|
-
const
|
|
1131
|
+
const Er = function(e) {
|
|
1128
1132
|
return e === void 0 && (e = {}), {
|
|
1129
1133
|
name: "hide",
|
|
1130
1134
|
options: e,
|
|
@@ -1166,7 +1170,7 @@ const Pr = function(e) {
|
|
|
1166
1170
|
}
|
|
1167
1171
|
};
|
|
1168
1172
|
};
|
|
1169
|
-
async function
|
|
1173
|
+
async function Or(e, t) {
|
|
1170
1174
|
const {
|
|
1171
1175
|
placement: n,
|
|
1172
1176
|
platform: o,
|
|
@@ -1194,7 +1198,7 @@ async function Er(e, t) {
|
|
|
1194
1198
|
y: f * d
|
|
1195
1199
|
};
|
|
1196
1200
|
}
|
|
1197
|
-
const
|
|
1201
|
+
const Tr = function(e) {
|
|
1198
1202
|
return e === void 0 && (e = 0), {
|
|
1199
1203
|
name: "offset",
|
|
1200
1204
|
options: e,
|
|
@@ -1202,7 +1206,7 @@ const Or = function(e) {
|
|
|
1202
1206
|
const {
|
|
1203
1207
|
x: n,
|
|
1204
1208
|
y: o
|
|
1205
|
-
} = t, i = await
|
|
1209
|
+
} = t, i = await Or(t, e);
|
|
1206
1210
|
return {
|
|
1207
1211
|
x: n + i.x,
|
|
1208
1212
|
y: o + i.y,
|
|
@@ -1210,7 +1214,7 @@ const Or = function(e) {
|
|
|
1210
1214
|
};
|
|
1211
1215
|
}
|
|
1212
1216
|
};
|
|
1213
|
-
},
|
|
1217
|
+
}, Cr = function(e) {
|
|
1214
1218
|
return e === void 0 && (e = {}), {
|
|
1215
1219
|
name: "shift",
|
|
1216
1220
|
options: e,
|
|
@@ -1262,7 +1266,7 @@ const Or = function(e) {
|
|
|
1262
1266
|
};
|
|
1263
1267
|
}
|
|
1264
1268
|
};
|
|
1265
|
-
},
|
|
1269
|
+
}, Rr = function(e) {
|
|
1266
1270
|
return e === void 0 && (e = {}), {
|
|
1267
1271
|
options: e,
|
|
1268
1272
|
fn(t) {
|
|
@@ -1304,7 +1308,7 @@ const Or = function(e) {
|
|
|
1304
1308
|
};
|
|
1305
1309
|
}
|
|
1306
1310
|
};
|
|
1307
|
-
},
|
|
1311
|
+
}, Sr = function(e) {
|
|
1308
1312
|
return e === void 0 && (e = {}), {
|
|
1309
1313
|
name: "size",
|
|
1310
1314
|
options: e,
|
|
@@ -1352,27 +1356,27 @@ const Or = function(e) {
|
|
|
1352
1356
|
};
|
|
1353
1357
|
};
|
|
1354
1358
|
function ne(e) {
|
|
1355
|
-
return
|
|
1359
|
+
return zt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1356
1360
|
}
|
|
1357
|
-
function
|
|
1361
|
+
function V(e) {
|
|
1358
1362
|
var t;
|
|
1359
1363
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1360
1364
|
}
|
|
1361
1365
|
function K(e) {
|
|
1362
1366
|
var t;
|
|
1363
|
-
return (t = (
|
|
1367
|
+
return (t = (zt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return e instanceof Node || e instanceof
|
|
1369
|
+
function zt(e) {
|
|
1370
|
+
return e instanceof Node || e instanceof V(e).Node;
|
|
1367
1371
|
}
|
|
1368
1372
|
function q(e) {
|
|
1369
|
-
return e instanceof Element || e instanceof
|
|
1373
|
+
return e instanceof Element || e instanceof V(e).Element;
|
|
1370
1374
|
}
|
|
1371
1375
|
function U(e) {
|
|
1372
|
-
return e instanceof HTMLElement || e instanceof
|
|
1376
|
+
return e instanceof HTMLElement || e instanceof V(e).HTMLElement;
|
|
1373
1377
|
}
|
|
1374
1378
|
function _t(e) {
|
|
1375
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
1379
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
|
|
1376
1380
|
}
|
|
1377
1381
|
function Ae(e) {
|
|
1378
1382
|
const {
|
|
@@ -1380,19 +1384,19 @@ function Ae(e) {
|
|
|
1380
1384
|
overflowX: n,
|
|
1381
1385
|
overflowY: o,
|
|
1382
1386
|
display: i
|
|
1383
|
-
} =
|
|
1387
|
+
} = z(e);
|
|
1384
1388
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
|
1385
1389
|
}
|
|
1386
|
-
function
|
|
1390
|
+
function Dr(e) {
|
|
1387
1391
|
return ["table", "td", "th"].includes(ne(e));
|
|
1388
1392
|
}
|
|
1389
1393
|
function nt(e) {
|
|
1390
|
-
const t = rt(), n =
|
|
1394
|
+
const t = rt(), n = z(e);
|
|
1391
1395
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
1392
1396
|
}
|
|
1393
|
-
function
|
|
1397
|
+
function Nr(e) {
|
|
1394
1398
|
let t = fe(e);
|
|
1395
|
-
for (; U(t) && !
|
|
1399
|
+
for (; U(t) && !We(t); ) {
|
|
1396
1400
|
if (nt(t))
|
|
1397
1401
|
return t;
|
|
1398
1402
|
t = fe(t);
|
|
@@ -1402,13 +1406,13 @@ function Dr(e) {
|
|
|
1402
1406
|
function rt() {
|
|
1403
1407
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1404
1408
|
}
|
|
1405
|
-
function
|
|
1409
|
+
function We(e) {
|
|
1406
1410
|
return ["html", "body", "#document"].includes(ne(e));
|
|
1407
1411
|
}
|
|
1408
|
-
function
|
|
1409
|
-
return
|
|
1412
|
+
function z(e) {
|
|
1413
|
+
return V(e).getComputedStyle(e);
|
|
1410
1414
|
}
|
|
1411
|
-
function
|
|
1415
|
+
function Ve(e) {
|
|
1412
1416
|
return q(e) ? {
|
|
1413
1417
|
scrollLeft: e.scrollLeft,
|
|
1414
1418
|
scrollTop: e.scrollTop
|
|
@@ -1431,16 +1435,16 @@ function fe(e) {
|
|
|
1431
1435
|
}
|
|
1432
1436
|
function Ut(e) {
|
|
1433
1437
|
const t = fe(e);
|
|
1434
|
-
return
|
|
1438
|
+
return We(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && Ae(t) ? t : Ut(t);
|
|
1435
1439
|
}
|
|
1436
1440
|
function _e(e, t) {
|
|
1437
1441
|
var n;
|
|
1438
1442
|
t === void 0 && (t = []);
|
|
1439
|
-
const o = Ut(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r =
|
|
1443
|
+
const o = Ut(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), r = V(o);
|
|
1440
1444
|
return i ? t.concat(r, r.visualViewport || [], Ae(o) ? o : [], r.frameElement ? _e(r.frameElement) : []) : t.concat(o, _e(o));
|
|
1441
1445
|
}
|
|
1442
1446
|
function Gt(e) {
|
|
1443
|
-
const t =
|
|
1447
|
+
const t = z(e);
|
|
1444
1448
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1445
1449
|
const i = U(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, a = Fe(n) !== r || Fe(o) !== s;
|
|
1446
1450
|
return a && (n = r, o = s), {
|
|
@@ -1467,30 +1471,30 @@ function ue(e) {
|
|
|
1467
1471
|
y: a
|
|
1468
1472
|
};
|
|
1469
1473
|
}
|
|
1470
|
-
const
|
|
1474
|
+
const Lr = /* @__PURE__ */ te(0);
|
|
1471
1475
|
function Yt(e) {
|
|
1472
|
-
const t =
|
|
1473
|
-
return !rt() || !t.visualViewport ?
|
|
1476
|
+
const t = V(e);
|
|
1477
|
+
return !rt() || !t.visualViewport ? Lr : {
|
|
1474
1478
|
x: t.visualViewport.offsetLeft,
|
|
1475
1479
|
y: t.visualViewport.offsetTop
|
|
1476
1480
|
};
|
|
1477
1481
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1482
|
+
function Mr(e, t, n) {
|
|
1483
|
+
return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
|
|
1480
1484
|
}
|
|
1481
1485
|
function ae(e, t, n, o) {
|
|
1482
1486
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1483
1487
|
const i = e.getBoundingClientRect(), r = ot(e);
|
|
1484
1488
|
let s = te(1);
|
|
1485
1489
|
t && (o ? q(o) && (s = ue(o)) : s = ue(e));
|
|
1486
|
-
const a =
|
|
1490
|
+
const a = Mr(r, n, o) ? Yt(r) : te(0);
|
|
1487
1491
|
let c = (i.left + a.x) / s.x, l = (i.top + a.y) / s.y, d = i.width / s.x, u = i.height / s.y;
|
|
1488
1492
|
if (r) {
|
|
1489
|
-
const p =
|
|
1493
|
+
const p = V(r), f = o && q(o) ? V(o) : o;
|
|
1490
1494
|
let h = p.frameElement;
|
|
1491
1495
|
for (; h && o && f !== p; ) {
|
|
1492
|
-
const g = ue(h), m = h.getBoundingClientRect(), v =
|
|
1493
|
-
c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h =
|
|
1496
|
+
const g = ue(h), m = h.getBoundingClientRect(), v = z(h), y = m.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, x = m.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
|
|
1497
|
+
c *= g.x, l *= g.y, d *= g.x, u *= g.y, c += y, l += x, h = V(h).frameElement;
|
|
1494
1498
|
}
|
|
1495
1499
|
}
|
|
1496
1500
|
return He({
|
|
@@ -1500,7 +1504,7 @@ function ae(e, t, n, o) {
|
|
|
1500
1504
|
y: l
|
|
1501
1505
|
});
|
|
1502
1506
|
}
|
|
1503
|
-
function
|
|
1507
|
+
function Ir(e) {
|
|
1504
1508
|
let {
|
|
1505
1509
|
rect: t,
|
|
1506
1510
|
offsetParent: n,
|
|
@@ -1514,7 +1518,7 @@ function Mr(e) {
|
|
|
1514
1518
|
scrollTop: 0
|
|
1515
1519
|
}, a = te(1);
|
|
1516
1520
|
const c = te(0);
|
|
1517
|
-
if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || Ae(r)) && (s =
|
|
1521
|
+
if ((i || !i && o !== "fixed") && ((ne(n) !== "body" || Ae(r)) && (s = Ve(n)), U(n))) {
|
|
1518
1522
|
const l = ae(n);
|
|
1519
1523
|
a = ue(n), c.x = l.x + n.clientLeft, c.y = l.y + n.clientTop;
|
|
1520
1524
|
}
|
|
@@ -1525,25 +1529,25 @@ function Mr(e) {
|
|
|
1525
1529
|
y: t.y * a.y - s.scrollTop * a.y + c.y
|
|
1526
1530
|
};
|
|
1527
1531
|
}
|
|
1528
|
-
function
|
|
1532
|
+
function Fr(e) {
|
|
1529
1533
|
return Array.from(e.getClientRects());
|
|
1530
1534
|
}
|
|
1531
1535
|
function Xt(e) {
|
|
1532
|
-
return ae(K(e)).left +
|
|
1536
|
+
return ae(K(e)).left + Ve(e).scrollLeft;
|
|
1533
1537
|
}
|
|
1534
|
-
function
|
|
1535
|
-
const t = K(e), n =
|
|
1538
|
+
function kr(e) {
|
|
1539
|
+
const t = K(e), n = Ve(e), o = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = B(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1536
1540
|
let s = -n.scrollLeft + Xt(e);
|
|
1537
1541
|
const a = -n.scrollTop;
|
|
1538
|
-
return
|
|
1542
|
+
return z(o).direction === "rtl" && (s += B(t.clientWidth, o.clientWidth) - i), {
|
|
1539
1543
|
width: i,
|
|
1540
1544
|
height: r,
|
|
1541
1545
|
x: s,
|
|
1542
1546
|
y: a
|
|
1543
1547
|
};
|
|
1544
1548
|
}
|
|
1545
|
-
function
|
|
1546
|
-
const n =
|
|
1549
|
+
function Hr(e, t) {
|
|
1550
|
+
const n = V(e), o = K(e), i = n.visualViewport;
|
|
1547
1551
|
let r = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
1548
1552
|
if (i) {
|
|
1549
1553
|
r = i.width, s = i.height;
|
|
@@ -1557,7 +1561,7 @@ function kr(e, t) {
|
|
|
1557
1561
|
y: c
|
|
1558
1562
|
};
|
|
1559
1563
|
}
|
|
1560
|
-
function
|
|
1564
|
+
function Br(e, t) {
|
|
1561
1565
|
const n = ae(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = U(e) ? ue(e) : te(1), s = e.clientWidth * r.x, a = e.clientHeight * r.y, c = i * r.x, l = o * r.y;
|
|
1562
1566
|
return {
|
|
1563
1567
|
width: s,
|
|
@@ -1569,11 +1573,11 @@ function Hr(e, t) {
|
|
|
1569
1573
|
function wt(e, t, n) {
|
|
1570
1574
|
let o;
|
|
1571
1575
|
if (t === "viewport")
|
|
1572
|
-
o =
|
|
1576
|
+
o = Hr(e, n);
|
|
1573
1577
|
else if (t === "document")
|
|
1574
|
-
o =
|
|
1578
|
+
o = kr(K(e));
|
|
1575
1579
|
else if (q(t))
|
|
1576
|
-
o =
|
|
1580
|
+
o = Br(t, n);
|
|
1577
1581
|
else {
|
|
1578
1582
|
const i = Yt(e);
|
|
1579
1583
|
o = {
|
|
@@ -1586,29 +1590,29 @@ function wt(e, t, n) {
|
|
|
1586
1590
|
}
|
|
1587
1591
|
function qt(e, t) {
|
|
1588
1592
|
const n = fe(e);
|
|
1589
|
-
return n === t || !q(n) ||
|
|
1593
|
+
return n === t || !q(n) || We(n) ? !1 : z(n).position === "fixed" || qt(n, t);
|
|
1590
1594
|
}
|
|
1591
|
-
function
|
|
1595
|
+
function Wr(e, t) {
|
|
1592
1596
|
const n = t.get(e);
|
|
1593
1597
|
if (n)
|
|
1594
1598
|
return n;
|
|
1595
1599
|
let o = _e(e).filter((a) => q(a) && ne(a) !== "body"), i = null;
|
|
1596
|
-
const r =
|
|
1600
|
+
const r = z(e).position === "fixed";
|
|
1597
1601
|
let s = r ? fe(e) : e;
|
|
1598
|
-
for (; q(s) && !
|
|
1599
|
-
const a =
|
|
1602
|
+
for (; q(s) && !We(s); ) {
|
|
1603
|
+
const a = z(s), c = nt(s);
|
|
1600
1604
|
!c && a.position === "fixed" && (i = null), (r ? !c && !i : !c && a.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ae(s) && !c && qt(e, s)) ? o = o.filter((d) => d !== s) : i = a, s = fe(s);
|
|
1601
1605
|
}
|
|
1602
1606
|
return t.set(e, o), o;
|
|
1603
1607
|
}
|
|
1604
|
-
function
|
|
1608
|
+
function Vr(e) {
|
|
1605
1609
|
let {
|
|
1606
1610
|
element: t,
|
|
1607
1611
|
boundary: n,
|
|
1608
1612
|
rootBoundary: o,
|
|
1609
1613
|
strategy: i
|
|
1610
1614
|
} = e;
|
|
1611
|
-
const s = [...n === "clippingAncestors" ?
|
|
1615
|
+
const s = [...n === "clippingAncestors" ? Wr(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, d) => {
|
|
1612
1616
|
const u = wt(t, d, i);
|
|
1613
1617
|
return l.top = B(u.top, l.top), l.right = ee(u.right, l.right), l.bottom = ee(u.bottom, l.bottom), l.left = B(u.left, l.left), l;
|
|
1614
1618
|
}, wt(t, a, i));
|
|
@@ -1619,10 +1623,10 @@ function zr(e) {
|
|
|
1619
1623
|
y: c.top
|
|
1620
1624
|
};
|
|
1621
1625
|
}
|
|
1622
|
-
function
|
|
1626
|
+
function jr(e) {
|
|
1623
1627
|
return Gt(e);
|
|
1624
1628
|
}
|
|
1625
|
-
function
|
|
1629
|
+
function zr(e, t, n) {
|
|
1626
1630
|
const o = U(t), i = K(t), r = n === "fixed", s = ae(e, !0, r, t);
|
|
1627
1631
|
let a = {
|
|
1628
1632
|
scrollLeft: 0,
|
|
@@ -1630,7 +1634,7 @@ function Vr(e, t, n) {
|
|
|
1630
1634
|
};
|
|
1631
1635
|
const c = te(0);
|
|
1632
1636
|
if (o || !o && !r)
|
|
1633
|
-
if ((ne(t) !== "body" || Ae(i)) && (a =
|
|
1637
|
+
if ((ne(t) !== "body" || Ae(i)) && (a = Ve(t)), o) {
|
|
1634
1638
|
const l = ae(t, !0, r, t);
|
|
1635
1639
|
c.x = l.x + t.clientLeft, c.y = l.y + t.clientTop;
|
|
1636
1640
|
} else
|
|
@@ -1643,18 +1647,18 @@ function Vr(e, t, n) {
|
|
|
1643
1647
|
};
|
|
1644
1648
|
}
|
|
1645
1649
|
function At(e, t) {
|
|
1646
|
-
return !U(e) ||
|
|
1650
|
+
return !U(e) || z(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1647
1651
|
}
|
|
1648
1652
|
function Kt(e, t) {
|
|
1649
|
-
const n =
|
|
1653
|
+
const n = V(e);
|
|
1650
1654
|
if (!U(e))
|
|
1651
1655
|
return n;
|
|
1652
1656
|
let o = At(e, t);
|
|
1653
|
-
for (; o &&
|
|
1657
|
+
for (; o && Dr(o) && z(o).position === "static"; )
|
|
1654
1658
|
o = At(o, t);
|
|
1655
|
-
return o && (ne(o) === "html" || ne(o) === "body" &&
|
|
1659
|
+
return o && (ne(o) === "html" || ne(o) === "body" && z(o).position === "static" && !nt(o)) ? n : o || Nr(e) || n;
|
|
1656
1660
|
}
|
|
1657
|
-
const
|
|
1661
|
+
const Ur = async function(e) {
|
|
1658
1662
|
let {
|
|
1659
1663
|
reference: t,
|
|
1660
1664
|
floating: n,
|
|
@@ -1662,7 +1666,7 @@ const jr = async function(e) {
|
|
|
1662
1666
|
} = e;
|
|
1663
1667
|
const i = this.getOffsetParent || Kt, r = this.getDimensions;
|
|
1664
1668
|
return {
|
|
1665
|
-
reference:
|
|
1669
|
+
reference: zr(t, await i(n), o),
|
|
1666
1670
|
floating: {
|
|
1667
1671
|
x: 0,
|
|
1668
1672
|
y: 0,
|
|
@@ -1670,22 +1674,22 @@ const jr = async function(e) {
|
|
|
1670
1674
|
}
|
|
1671
1675
|
};
|
|
1672
1676
|
};
|
|
1673
|
-
function
|
|
1674
|
-
return
|
|
1677
|
+
function Gr(e) {
|
|
1678
|
+
return z(e).direction === "rtl";
|
|
1675
1679
|
}
|
|
1676
|
-
const
|
|
1677
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1680
|
+
const Yr = {
|
|
1681
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ir,
|
|
1678
1682
|
getDocumentElement: K,
|
|
1679
|
-
getClippingRect:
|
|
1683
|
+
getClippingRect: Vr,
|
|
1680
1684
|
getOffsetParent: Kt,
|
|
1681
|
-
getElementRects:
|
|
1682
|
-
getClientRects:
|
|
1683
|
-
getDimensions:
|
|
1685
|
+
getElementRects: Ur,
|
|
1686
|
+
getClientRects: Fr,
|
|
1687
|
+
getDimensions: jr,
|
|
1684
1688
|
getScale: ue,
|
|
1685
1689
|
isElement: q,
|
|
1686
|
-
isRTL:
|
|
1690
|
+
isRTL: Gr
|
|
1687
1691
|
};
|
|
1688
|
-
function
|
|
1692
|
+
function Xr(e, t) {
|
|
1689
1693
|
let n = null, o;
|
|
1690
1694
|
const i = K(e);
|
|
1691
1695
|
function r() {
|
|
@@ -1730,7 +1734,7 @@ function Yr(e, t) {
|
|
|
1730
1734
|
}
|
|
1731
1735
|
return s(!0), r;
|
|
1732
1736
|
}
|
|
1733
|
-
function
|
|
1737
|
+
function qr(e, t, n, o) {
|
|
1734
1738
|
o === void 0 && (o = {});
|
|
1735
1739
|
const {
|
|
1736
1740
|
ancestorScroll: i = !0,
|
|
@@ -1744,7 +1748,7 @@ function Xr(e, t, n, o) {
|
|
|
1744
1748
|
passive: !0
|
|
1745
1749
|
}), r && v.addEventListener("resize", n);
|
|
1746
1750
|
});
|
|
1747
|
-
const u = l && a ?
|
|
1751
|
+
const u = l && a ? Xr(l, n) : null;
|
|
1748
1752
|
let p = -1, f = null;
|
|
1749
1753
|
s && (f = new ResizeObserver((v) => {
|
|
1750
1754
|
let [y] = v;
|
|
@@ -1764,19 +1768,19 @@ function Xr(e, t, n, o) {
|
|
|
1764
1768
|
}), u && u(), f && f.disconnect(), f = null, c && cancelAnimationFrame(h);
|
|
1765
1769
|
};
|
|
1766
1770
|
}
|
|
1767
|
-
const
|
|
1771
|
+
const Kr = (e, t, n) => {
|
|
1768
1772
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1769
|
-
platform:
|
|
1773
|
+
platform: Yr,
|
|
1770
1774
|
...n
|
|
1771
1775
|
}, r = {
|
|
1772
1776
|
...i.platform,
|
|
1773
1777
|
_c: o
|
|
1774
1778
|
};
|
|
1775
|
-
return
|
|
1779
|
+
return Ar(e, t, {
|
|
1776
1780
|
...i,
|
|
1777
1781
|
platform: r
|
|
1778
1782
|
});
|
|
1779
|
-
},
|
|
1783
|
+
}, Zr = (e) => {
|
|
1780
1784
|
function t(n) {
|
|
1781
1785
|
return {}.hasOwnProperty.call(n, "current");
|
|
1782
1786
|
}
|
|
@@ -1843,7 +1847,7 @@ function Et(e) {
|
|
|
1843
1847
|
t.current = e;
|
|
1844
1848
|
}), t;
|
|
1845
1849
|
}
|
|
1846
|
-
function
|
|
1850
|
+
function Jr(e) {
|
|
1847
1851
|
e === void 0 && (e = {});
|
|
1848
1852
|
const {
|
|
1849
1853
|
placement: t = "bottom",
|
|
@@ -1878,7 +1882,7 @@ function Zr(e) {
|
|
|
1878
1882
|
strategy: n,
|
|
1879
1883
|
middleware: p
|
|
1880
1884
|
};
|
|
1881
|
-
F.current && (P.platform = F.current),
|
|
1885
|
+
F.current && (P.platform = F.current), Kr(_.current, E.current, P).then((Z) => {
|
|
1882
1886
|
const J = {
|
|
1883
1887
|
...Z,
|
|
1884
1888
|
isPositioned: !0
|
|
@@ -1912,7 +1916,7 @@ function Zr(e) {
|
|
|
1912
1916
|
}), [y, x]), O = N.useMemo(() => ({
|
|
1913
1917
|
reference: $,
|
|
1914
1918
|
floating: b
|
|
1915
|
-
}), [$, b]),
|
|
1919
|
+
}), [$, b]), j = N.useMemo(() => {
|
|
1916
1920
|
const P = {
|
|
1917
1921
|
position: n,
|
|
1918
1922
|
left: 0,
|
|
@@ -1938,10 +1942,10 @@ function Zr(e) {
|
|
|
1938
1942
|
update: T,
|
|
1939
1943
|
refs: D,
|
|
1940
1944
|
elements: O,
|
|
1941
|
-
floatingStyles:
|
|
1942
|
-
}), [d, T, D, O,
|
|
1945
|
+
floatingStyles: j
|
|
1946
|
+
}), [d, T, D, O, j]);
|
|
1943
1947
|
}
|
|
1944
|
-
const
|
|
1948
|
+
const Qr = /* @__PURE__ */ M((e, t) => {
|
|
1945
1949
|
const { children: n, width: o = 10, height: i = 5, ...r } = e;
|
|
1946
1950
|
return /* @__PURE__ */ w(ce.svg, S({}, r, {
|
|
1947
1951
|
ref: t,
|
|
@@ -1952,9 +1956,9 @@ const Jr = /* @__PURE__ */ M((e, t) => {
|
|
|
1952
1956
|
}), e.asChild ? n : /* @__PURE__ */ w("polygon", {
|
|
1953
1957
|
points: "0,0 30,0 15,10"
|
|
1954
1958
|
}));
|
|
1955
|
-
}),
|
|
1956
|
-
function
|
|
1957
|
-
const [t, n] =
|
|
1959
|
+
}), eo = Qr;
|
|
1960
|
+
function to(e) {
|
|
1961
|
+
const [t, n] = W(void 0);
|
|
1958
1962
|
return de(() => {
|
|
1959
1963
|
if (e) {
|
|
1960
1964
|
n({
|
|
@@ -1985,26 +1989,26 @@ function eo(e) {
|
|
|
1985
1989
|
e
|
|
1986
1990
|
]), t;
|
|
1987
1991
|
}
|
|
1988
|
-
const Jt = "Popper", [Qt, en] = Ht(Jt), [
|
|
1989
|
-
const { __scopePopper: t, children: n } = e, [o, i] =
|
|
1990
|
-
return /* @__PURE__ */ w(
|
|
1992
|
+
const Jt = "Popper", [Qt, en] = Ht(Jt), [no, tn] = Qt(Jt), ro = (e) => {
|
|
1993
|
+
const { __scopePopper: t, children: n } = e, [o, i] = W(null);
|
|
1994
|
+
return /* @__PURE__ */ w(no, {
|
|
1991
1995
|
scope: t,
|
|
1992
1996
|
anchor: o,
|
|
1993
1997
|
onAnchorChange: i
|
|
1994
1998
|
}, n);
|
|
1995
|
-
},
|
|
1996
|
-
const { __scopePopper: n, virtualRef: o, ...i } = e, r = tn(
|
|
1999
|
+
}, oo = "PopperAnchor", io = /* @__PURE__ */ M((e, t) => {
|
|
2000
|
+
const { __scopePopper: n, virtualRef: o, ...i } = e, r = tn(oo, n), s = L(null), a = pe(t, s);
|
|
1997
2001
|
return R(() => {
|
|
1998
2002
|
r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
1999
2003
|
}), o ? null : /* @__PURE__ */ w(ce.div, S({}, i, {
|
|
2000
2004
|
ref: a
|
|
2001
2005
|
}));
|
|
2002
|
-
}), nn = "PopperContent", [
|
|
2006
|
+
}), nn = "PopperContent", [so, ao] = Qt(nn), co = /* @__PURE__ */ M((e, t) => {
|
|
2003
2007
|
var n, o, i, r, s, a, c, l;
|
|
2004
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: _, ...E } = e, A = tn(nn, d), [C, F] =
|
|
2008
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: m = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: b = "optimized", onPlaced: _, ...E } = e, A = tn(nn, d), [C, F] = W(null), T = pe(
|
|
2005
2009
|
t,
|
|
2006
2010
|
(ve) => F(ve)
|
|
2007
|
-
), [H, D] =
|
|
2011
|
+
), [H, D] = W(null), O = to(H), j = (n = O == null ? void 0 : O.width) !== null && n !== void 0 ? n : 0, P = (o = O == null ? void 0 : O.height) !== null && o !== void 0 ? o : 0, Z = u + (f !== "center" ? "-" + f : ""), J = typeof y == "number" ? y : {
|
|
2008
2012
|
top: 0,
|
|
2009
2013
|
right: 0,
|
|
2010
2014
|
bottom: 0,
|
|
@@ -2014,49 +2018,49 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2014
2018
|
v
|
|
2015
2019
|
], cn = ct.length > 0, Ee = {
|
|
2016
2020
|
padding: J,
|
|
2017
|
-
boundary: ct.filter(
|
|
2021
|
+
boundary: ct.filter(po),
|
|
2018
2022
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2019
2023
|
altBoundary: cn
|
|
2020
|
-
}, { refs: ln, floatingStyles: lt, placement: un, isPositioned: Oe, middlewareData: le } =
|
|
2024
|
+
}, { refs: ln, floatingStyles: lt, placement: un, isPositioned: Oe, middlewareData: le } = Jr({
|
|
2021
2025
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2022
2026
|
strategy: "fixed",
|
|
2023
2027
|
placement: Z,
|
|
2024
|
-
whileElementsMounted: (...ve) =>
|
|
2028
|
+
whileElementsMounted: (...ve) => qr(...ve, {
|
|
2025
2029
|
animationFrame: b === "always"
|
|
2026
2030
|
}),
|
|
2027
2031
|
elements: {
|
|
2028
2032
|
reference: A.anchor
|
|
2029
2033
|
},
|
|
2030
2034
|
middleware: [
|
|
2031
|
-
|
|
2035
|
+
Tr({
|
|
2032
2036
|
mainAxis: p + P,
|
|
2033
2037
|
alignmentAxis: h
|
|
2034
2038
|
}),
|
|
2035
|
-
m &&
|
|
2039
|
+
m && Cr({
|
|
2036
2040
|
mainAxis: !0,
|
|
2037
2041
|
crossAxis: !1,
|
|
2038
|
-
limiter: x === "partial" ?
|
|
2042
|
+
limiter: x === "partial" ? Rr() : void 0,
|
|
2039
2043
|
...Ee
|
|
2040
2044
|
}),
|
|
2041
|
-
m &&
|
|
2045
|
+
m && Pr({
|
|
2042
2046
|
...Ee
|
|
2043
2047
|
}),
|
|
2044
|
-
|
|
2048
|
+
Sr({
|
|
2045
2049
|
...Ee,
|
|
2046
2050
|
apply: ({ elements: ve, rects: dt, availableWidth: vn, availableHeight: yn }) => {
|
|
2047
2051
|
const { width: bn, height: xn } = dt.reference, Ce = ve.floating.style;
|
|
2048
2052
|
Ce.setProperty("--radix-popper-available-width", `${vn}px`), Ce.setProperty("--radix-popper-available-height", `${yn}px`), Ce.setProperty("--radix-popper-anchor-width", `${bn}px`), Ce.setProperty("--radix-popper-anchor-height", `${xn}px`);
|
|
2049
2053
|
}
|
|
2050
2054
|
}),
|
|
2051
|
-
H &&
|
|
2055
|
+
H && Zr({
|
|
2052
2056
|
element: H,
|
|
2053
2057
|
padding: g
|
|
2054
2058
|
}),
|
|
2055
|
-
|
|
2056
|
-
arrowWidth:
|
|
2059
|
+
ho({
|
|
2060
|
+
arrowWidth: j,
|
|
2057
2061
|
arrowHeight: P
|
|
2058
2062
|
}),
|
|
2059
|
-
$ &&
|
|
2063
|
+
$ && Er({
|
|
2060
2064
|
strategy: "referenceHidden",
|
|
2061
2065
|
...Ee
|
|
2062
2066
|
})
|
|
@@ -2068,7 +2072,7 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2068
2072
|
Oe,
|
|
2069
2073
|
Te
|
|
2070
2074
|
]);
|
|
2071
|
-
const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] =
|
|
2075
|
+
const fn = (i = le.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = le.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = le.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = W();
|
|
2072
2076
|
return de(() => {
|
|
2073
2077
|
C && mn(window.getComputedStyle(C).zIndex);
|
|
2074
2078
|
}, [
|
|
@@ -2088,7 +2092,7 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2088
2092
|
].join(" ")
|
|
2089
2093
|
},
|
|
2090
2094
|
dir: e.dir
|
|
2091
|
-
}, /* @__PURE__ */ w(
|
|
2095
|
+
}, /* @__PURE__ */ w(so, {
|
|
2092
2096
|
scope: d,
|
|
2093
2097
|
placedSide: ut,
|
|
2094
2098
|
onArrowChange: D,
|
|
@@ -2109,13 +2113,13 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2109
2113
|
opacity: (l = le.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
|
|
2110
2114
|
}
|
|
2111
2115
|
}))));
|
|
2112
|
-
}),
|
|
2116
|
+
}), lo = "PopperArrow", uo = {
|
|
2113
2117
|
top: "bottom",
|
|
2114
2118
|
right: "left",
|
|
2115
2119
|
bottom: "top",
|
|
2116
2120
|
left: "right"
|
|
2117
|
-
},
|
|
2118
|
-
const { __scopePopper: o, ...i } = t, r =
|
|
2121
|
+
}, fo = /* @__PURE__ */ M(function(t, n) {
|
|
2122
|
+
const { __scopePopper: o, ...i } = t, r = ao(lo, o), s = uo[r.placedSide];
|
|
2119
2123
|
return (
|
|
2120
2124
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2121
2125
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2141,7 +2145,7 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2141
2145
|
}[r.placedSide],
|
|
2142
2146
|
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
2143
2147
|
}
|
|
2144
|
-
}, /* @__PURE__ */ w(
|
|
2148
|
+
}, /* @__PURE__ */ w(eo, S({}, i, {
|
|
2145
2149
|
ref: n,
|
|
2146
2150
|
style: {
|
|
2147
2151
|
...i.style,
|
|
@@ -2151,10 +2155,10 @@ const Jt = "Popper", [Qt, en] = Ht(Jt), [to, tn] = Qt(Jt), no = (e) => {
|
|
|
2151
2155
|
})))
|
|
2152
2156
|
);
|
|
2153
2157
|
});
|
|
2154
|
-
function
|
|
2158
|
+
function po(e) {
|
|
2155
2159
|
return e !== null;
|
|
2156
2160
|
}
|
|
2157
|
-
const
|
|
2161
|
+
const ho = (e) => ({
|
|
2158
2162
|
name: "transformOrigin",
|
|
2159
2163
|
options: e,
|
|
2160
2164
|
fn(t) {
|
|
@@ -2180,21 +2184,21 @@ function rn(e) {
|
|
|
2180
2184
|
n
|
|
2181
2185
|
];
|
|
2182
2186
|
}
|
|
2183
|
-
const
|
|
2187
|
+
const go = ro, mo = io, vo = co, yo = fo, bo = /* @__PURE__ */ M((e, t) => {
|
|
2184
2188
|
var n;
|
|
2185
2189
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
|
|
2186
2190
|
return o ? /* @__PURE__ */ An.createPortal(/* @__PURE__ */ w(ce.div, S({}, i, {
|
|
2187
2191
|
ref: t
|
|
2188
2192
|
})), o) : null;
|
|
2189
2193
|
});
|
|
2190
|
-
function
|
|
2194
|
+
function xo(e, t) {
|
|
2191
2195
|
return _n((n, o) => {
|
|
2192
2196
|
const i = t[n][o];
|
|
2193
2197
|
return i ?? n;
|
|
2194
2198
|
}, e);
|
|
2195
2199
|
}
|
|
2196
2200
|
const it = (e) => {
|
|
2197
|
-
const { present: t, children: n } = e, o =
|
|
2201
|
+
const { present: t, children: n } = e, o = $o(t), i = typeof n == "function" ? n({
|
|
2198
2202
|
present: o.isPresent
|
|
2199
2203
|
}) : se.only(n), r = pe(o.ref, i.ref);
|
|
2200
2204
|
return typeof n == "function" || o.isPresent ? /* @__PURE__ */ Je(i, {
|
|
@@ -2202,8 +2206,8 @@ const it = (e) => {
|
|
|
2202
2206
|
}) : null;
|
|
2203
2207
|
};
|
|
2204
2208
|
it.displayName = "Presence";
|
|
2205
|
-
function
|
|
2206
|
-
const [t, n] =
|
|
2209
|
+
function $o(e) {
|
|
2210
|
+
const [t, n] = W(), o = L({}), i = L(e), r = L("none"), s = e ? "mounted" : "unmounted", [a, c] = xo(s, {
|
|
2207
2211
|
mounted: {
|
|
2208
2212
|
UNMOUNT: "unmounted",
|
|
2209
2213
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2261,9 +2265,9 @@ function xo(e) {
|
|
|
2261
2265
|
function Ne(e) {
|
|
2262
2266
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2263
2267
|
}
|
|
2264
|
-
function
|
|
2268
|
+
function _o({ prop: e, defaultProp: t, onChange: n = () => {
|
|
2265
2269
|
} }) {
|
|
2266
|
-
const [o, i] =
|
|
2270
|
+
const [o, i] = wo({
|
|
2267
2271
|
defaultProp: t,
|
|
2268
2272
|
onChange: n
|
|
2269
2273
|
}), r = e !== void 0, s = r ? e : o, a = he(n), c = k((l) => {
|
|
@@ -2283,8 +2287,8 @@ function $o({ prop: e, defaultProp: t, onChange: n = () => {
|
|
|
2283
2287
|
c
|
|
2284
2288
|
];
|
|
2285
2289
|
}
|
|
2286
|
-
function
|
|
2287
|
-
const n =
|
|
2290
|
+
function wo({ defaultProp: e, onChange: t }) {
|
|
2291
|
+
const n = W(e), [o] = n, i = L(o), r = he(t);
|
|
2288
2292
|
return R(() => {
|
|
2289
2293
|
i.current !== o && (r(o), i.current = o);
|
|
2290
2294
|
}, [
|
|
@@ -2293,7 +2297,7 @@ function _o({ defaultProp: e, onChange: t }) {
|
|
|
2293
2297
|
r
|
|
2294
2298
|
]), n;
|
|
2295
2299
|
}
|
|
2296
|
-
const
|
|
2300
|
+
const Ao = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
2297
2301
|
ref: t,
|
|
2298
2302
|
style: {
|
|
2299
2303
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -2309,14 +2313,14 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2309
2313
|
wordWrap: "normal",
|
|
2310
2314
|
...e.style
|
|
2311
2315
|
}
|
|
2312
|
-
}))),
|
|
2316
|
+
}))), Po = Ao, [je, gi] = Ht("Tooltip", [
|
|
2313
2317
|
en
|
|
2314
|
-
]),
|
|
2315
|
-
const { __scopeTooltip: t, delayDuration: n =
|
|
2318
|
+
]), ze = en(), Eo = "TooltipProvider", Oo = 700, Ze = "tooltip.open", [To, st] = je(Eo), Co = (e) => {
|
|
2319
|
+
const { __scopeTooltip: t, delayDuration: n = Oo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, a] = W(!0), c = L(!1), l = L(0);
|
|
2316
2320
|
return R(() => {
|
|
2317
2321
|
const d = l.current;
|
|
2318
2322
|
return () => window.clearTimeout(d);
|
|
2319
|
-
}, []), /* @__PURE__ */ w(
|
|
2323
|
+
}, []), /* @__PURE__ */ w(To, {
|
|
2320
2324
|
scope: t,
|
|
2321
2325
|
isOpenDelayed: s,
|
|
2322
2326
|
delayDuration: n,
|
|
@@ -2337,8 +2341,8 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2337
2341
|
}, []),
|
|
2338
2342
|
disableHoverableContent: i
|
|
2339
2343
|
}, r);
|
|
2340
|
-
}, at = "Tooltip", [
|
|
2341
|
-
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l =
|
|
2344
|
+
}, at = "Tooltip", [Ro, Pe] = je(at), So = (e) => {
|
|
2345
|
+
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: a } = e, c = st(at, e.__scopeTooltip), l = ze(t), [d, u] = W(null), p = gr(), f = L(0), h = s ?? c.disableHoverableContent, g = a ?? c.delayDuration, m = L(!1), [v = !1, y] = _o({
|
|
2342
2346
|
prop: o,
|
|
2343
2347
|
defaultProp: i,
|
|
2344
2348
|
onChange: (E) => {
|
|
@@ -2362,7 +2366,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2362
2366
|
g,
|
|
2363
2367
|
y
|
|
2364
2368
|
]);
|
|
2365
|
-
return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ w(
|
|
2369
|
+
return R(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ w(go, l, /* @__PURE__ */ w(Ro, {
|
|
2366
2370
|
scope: t,
|
|
2367
2371
|
contentId: p,
|
|
2368
2372
|
open: v,
|
|
@@ -2386,14 +2390,14 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2386
2390
|
onClose: b,
|
|
2387
2391
|
disableHoverableContent: h
|
|
2388
2392
|
}, n));
|
|
2389
|
-
}, Ot = "TooltipTrigger",
|
|
2390
|
-
const { __scopeTooltip: n, ...o } = e, i = Pe(Ot, n), r = st(Ot, n), s =
|
|
2393
|
+
}, Ot = "TooltipTrigger", Do = /* @__PURE__ */ M((e, t) => {
|
|
2394
|
+
const { __scopeTooltip: n, ...o } = e, i = Pe(Ot, n), r = st(Ot, n), s = ze(n), a = L(null), c = pe(t, a, i.onTriggerChange), l = L(!1), d = L(!1), u = k(
|
|
2391
2395
|
() => l.current = !1,
|
|
2392
2396
|
[]
|
|
2393
2397
|
);
|
|
2394
2398
|
return R(() => () => document.removeEventListener("pointerup", u), [
|
|
2395
2399
|
u
|
|
2396
|
-
]), /* @__PURE__ */ w(
|
|
2400
|
+
]), /* @__PURE__ */ w(mo, S({
|
|
2397
2401
|
asChild: !0
|
|
2398
2402
|
}, s), /* @__PURE__ */ w(ce.button, S({
|
|
2399
2403
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
@@ -2419,34 +2423,34 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2419
2423
|
onBlur: G(e.onBlur, i.onClose),
|
|
2420
2424
|
onClick: G(e.onClick, i.onClose)
|
|
2421
2425
|
})));
|
|
2422
|
-
}), on = "TooltipPortal", [
|
|
2426
|
+
}), on = "TooltipPortal", [No, Lo] = je(on, {
|
|
2423
2427
|
forceMount: void 0
|
|
2424
|
-
}),
|
|
2428
|
+
}), Mo = (e) => {
|
|
2425
2429
|
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Pe(on, t);
|
|
2426
|
-
return /* @__PURE__ */ w(
|
|
2430
|
+
return /* @__PURE__ */ w(No, {
|
|
2427
2431
|
scope: t,
|
|
2428
2432
|
forceMount: n
|
|
2429
2433
|
}, /* @__PURE__ */ w(it, {
|
|
2430
2434
|
present: n || r.open
|
|
2431
|
-
}, /* @__PURE__ */ w(
|
|
2435
|
+
}, /* @__PURE__ */ w(bo, {
|
|
2432
2436
|
asChild: !0,
|
|
2433
2437
|
container: i
|
|
2434
2438
|
}, o)));
|
|
2435
|
-
}, we = "TooltipContent",
|
|
2436
|
-
const n =
|
|
2439
|
+
}, we = "TooltipContent", Io = /* @__PURE__ */ M((e, t) => {
|
|
2440
|
+
const n = Lo(we, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Pe(we, e.__scopeTooltip);
|
|
2437
2441
|
return /* @__PURE__ */ w(it, {
|
|
2438
2442
|
present: o || s.open
|
|
2439
2443
|
}, s.disableHoverableContent ? /* @__PURE__ */ w(sn, S({
|
|
2440
2444
|
side: i
|
|
2441
2445
|
}, r, {
|
|
2442
2446
|
ref: t
|
|
2443
|
-
})) : /* @__PURE__ */ w(
|
|
2447
|
+
})) : /* @__PURE__ */ w(Fo, S({
|
|
2444
2448
|
side: i
|
|
2445
2449
|
}, r, {
|
|
2446
2450
|
ref: t
|
|
2447
2451
|
})));
|
|
2448
|
-
}),
|
|
2449
|
-
const n = Pe(we, e.__scopeTooltip), o = st(we, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] =
|
|
2452
|
+
}), Fo = /* @__PURE__ */ M((e, t) => {
|
|
2453
|
+
const n = Pe(we, e.__scopeTooltip), o = st(we, e.__scopeTooltip), i = L(null), r = pe(t, i), [s, a] = W(null), { trigger: c, onClose: l } = n, d = i.current, { onPointerInTransitChange: u } = o, p = k(() => {
|
|
2450
2454
|
a(null), u(!1);
|
|
2451
2455
|
}, [
|
|
2452
2456
|
u
|
|
@@ -2454,7 +2458,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2454
2458
|
const m = h.currentTarget, v = {
|
|
2455
2459
|
x: h.clientX,
|
|
2456
2460
|
y: h.clientY
|
|
2457
|
-
}, y =
|
|
2461
|
+
}, y = Vo(v, m.getBoundingClientRect()), x = jo(v, y), $ = zo(g.getBoundingClientRect()), b = Go([
|
|
2458
2462
|
...x,
|
|
2459
2463
|
...$
|
|
2460
2464
|
]);
|
|
@@ -2482,7 +2486,7 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2482
2486
|
const m = g.target, v = {
|
|
2483
2487
|
x: g.clientX,
|
|
2484
2488
|
y: g.clientY
|
|
2485
|
-
}, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !
|
|
2489
|
+
}, y = (c == null ? void 0 : c.contains(m)) || (d == null ? void 0 : d.contains(m)), x = !Uo(v, s);
|
|
2486
2490
|
y ? p() : x && (p(), l());
|
|
2487
2491
|
};
|
|
2488
2492
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
@@ -2496,10 +2500,10 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2496
2500
|
]), /* @__PURE__ */ w(sn, S({}, e, {
|
|
2497
2501
|
ref: r
|
|
2498
2502
|
}));
|
|
2499
|
-
}), [
|
|
2503
|
+
}), [ko, Ho] = je(at, {
|
|
2500
2504
|
isInside: !1
|
|
2501
2505
|
}), sn = /* @__PURE__ */ M((e, t) => {
|
|
2502
|
-
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Pe(we, n), l =
|
|
2506
|
+
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...a } = e, c = Pe(we, n), l = ze(n), { onClose: d } = c;
|
|
2503
2507
|
return R(() => (document.addEventListener(Ze, d), () => document.removeEventListener(Ze, d)), [
|
|
2504
2508
|
d
|
|
2505
2509
|
]), R(() => {
|
|
@@ -2517,14 +2521,14 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2517
2521
|
}, [
|
|
2518
2522
|
c.trigger,
|
|
2519
2523
|
d
|
|
2520
|
-
]), /* @__PURE__ */ w(
|
|
2524
|
+
]), /* @__PURE__ */ w(ur, {
|
|
2521
2525
|
asChild: !0,
|
|
2522
2526
|
disableOutsidePointerEvents: !1,
|
|
2523
2527
|
onEscapeKeyDown: r,
|
|
2524
2528
|
onPointerDownOutside: s,
|
|
2525
2529
|
onFocusOutside: (u) => u.preventDefault(),
|
|
2526
2530
|
onDismiss: d
|
|
2527
|
-
}, /* @__PURE__ */ w(
|
|
2531
|
+
}, /* @__PURE__ */ w(vo, S({
|
|
2528
2532
|
"data-state": c.stateAttribute
|
|
2529
2533
|
}, l, a, {
|
|
2530
2534
|
ref: t,
|
|
@@ -2536,20 +2540,20 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ w(ce.span, S({}, e, {
|
|
|
2536
2540
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2537
2541
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2538
2542
|
}
|
|
2539
|
-
}), /* @__PURE__ */ w(
|
|
2543
|
+
}), /* @__PURE__ */ w(Wt, null, o), /* @__PURE__ */ w(ko, {
|
|
2540
2544
|
scope: n,
|
|
2541
2545
|
isInside: !0
|
|
2542
|
-
}, /* @__PURE__ */ w(
|
|
2546
|
+
}, /* @__PURE__ */ w(Po, {
|
|
2543
2547
|
id: c.contentId,
|
|
2544
2548
|
role: "tooltip"
|
|
2545
2549
|
}, i || o))));
|
|
2546
|
-
}),
|
|
2547
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2548
|
-
return
|
|
2550
|
+
}), Bo = "TooltipArrow", Wo = /* @__PURE__ */ M((e, t) => {
|
|
2551
|
+
const { __scopeTooltip: n, ...o } = e, i = ze(n);
|
|
2552
|
+
return Ho(Bo, n).isInside ? null : /* @__PURE__ */ w(yo, S({}, i, o, {
|
|
2549
2553
|
ref: t
|
|
2550
2554
|
}));
|
|
2551
2555
|
});
|
|
2552
|
-
function
|
|
2556
|
+
function Vo(e, t) {
|
|
2553
2557
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), r = Math.abs(t.left - e.x);
|
|
2554
2558
|
switch (Math.min(n, o, i, r)) {
|
|
2555
2559
|
case r:
|
|
@@ -2564,7 +2568,7 @@ function zo(e, t) {
|
|
|
2564
2568
|
throw new Error("unreachable");
|
|
2565
2569
|
}
|
|
2566
2570
|
}
|
|
2567
|
-
function
|
|
2571
|
+
function jo(e, t, n = 5) {
|
|
2568
2572
|
const o = [];
|
|
2569
2573
|
switch (t) {
|
|
2570
2574
|
case "top":
|
|
@@ -2606,7 +2610,7 @@ function Wo(e, t, n = 5) {
|
|
|
2606
2610
|
}
|
|
2607
2611
|
return o;
|
|
2608
2612
|
}
|
|
2609
|
-
function
|
|
2613
|
+
function zo(e) {
|
|
2610
2614
|
const { top: t, right: n, bottom: o, left: i } = e;
|
|
2611
2615
|
return [
|
|
2612
2616
|
{
|
|
@@ -2627,7 +2631,7 @@ function Vo(e) {
|
|
|
2627
2631
|
}
|
|
2628
2632
|
];
|
|
2629
2633
|
}
|
|
2630
|
-
function
|
|
2634
|
+
function Uo(e, t) {
|
|
2631
2635
|
const { x: n, y: o } = e;
|
|
2632
2636
|
let i = !1;
|
|
2633
2637
|
for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
|
|
@@ -2636,11 +2640,11 @@ function jo(e, t) {
|
|
|
2636
2640
|
}
|
|
2637
2641
|
return i;
|
|
2638
2642
|
}
|
|
2639
|
-
function
|
|
2643
|
+
function Go(e) {
|
|
2640
2644
|
const t = e.slice();
|
|
2641
|
-
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),
|
|
2645
|
+
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), Yo(t);
|
|
2642
2646
|
}
|
|
2643
|
-
function
|
|
2647
|
+
function Yo(e) {
|
|
2644
2648
|
if (e.length <= 1)
|
|
2645
2649
|
return e.slice();
|
|
2646
2650
|
const t = [];
|
|
@@ -2670,8 +2674,8 @@ function Go(e) {
|
|
|
2670
2674
|
}
|
|
2671
2675
|
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);
|
|
2672
2676
|
}
|
|
2673
|
-
const
|
|
2674
|
-
function
|
|
2677
|
+
const Xo = Co, qo = So, Ko = Do, Zo = Mo, Jo = Io, Qo = Wo;
|
|
2678
|
+
function ei(e) {
|
|
2675
2679
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2676
2680
|
}
|
|
2677
2681
|
var an = { exports: {} };
|
|
@@ -2710,107 +2714,109 @@ var an = { exports: {} };
|
|
|
2710
2714
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
2711
2715
|
})();
|
|
2712
2716
|
})(an);
|
|
2713
|
-
var
|
|
2714
|
-
const
|
|
2717
|
+
var ti = an.exports;
|
|
2718
|
+
const ni = /* @__PURE__ */ ei(ti), ri = "_slideDownAndFade_1dyp8_1", oi = "_slideLeftAndFade_1dyp8_1", ii = "_slideUpAndFade_1dyp8_1", si = "_slideRightAndFade_1dyp8_1", ie = {
|
|
2715
2719
|
"purpur-tooltip": "_purpur-tooltip_1dyp8_1",
|
|
2716
2720
|
"purpur-tooltip__content": "_purpur-tooltip__content_1dyp8_4",
|
|
2717
2721
|
"purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_1dyp8_14",
|
|
2718
2722
|
"purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_1dyp8_17",
|
|
2719
|
-
slideDownAndFade:
|
|
2720
|
-
slideLeftAndFade:
|
|
2721
|
-
slideUpAndFade:
|
|
2722
|
-
slideRightAndFade:
|
|
2723
|
+
slideDownAndFade: ri,
|
|
2724
|
+
slideLeftAndFade: oi,
|
|
2725
|
+
slideUpAndFade: ii,
|
|
2726
|
+
slideRightAndFade: si,
|
|
2723
2727
|
"purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_1dyp8_32",
|
|
2724
2728
|
"purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_1dyp8_35",
|
|
2725
2729
|
"purpur-tooltip__paragraph--primary": "_purpur-tooltip__paragraph--primary_1dyp8_38",
|
|
2726
2730
|
"purpur-tooltip__paragraph--primary-negative": "_purpur-tooltip__paragraph--primary-negative_1dyp8_41"
|
|
2727
|
-
}, Le =
|
|
2731
|
+
}, Le = ni.bind(ie), ai = {
|
|
2728
2732
|
PRIMARY: "primary",
|
|
2729
2733
|
PRIMARY_NEGATIVE: "primary-negative"
|
|
2730
|
-
},
|
|
2734
|
+
}, ci = {
|
|
2731
2735
|
TOP: "top",
|
|
2732
2736
|
BOTTOM: "bottom",
|
|
2733
2737
|
LEFT: "left",
|
|
2734
2738
|
RIGHT: "right"
|
|
2735
|
-
},
|
|
2739
|
+
}, li = {
|
|
2736
2740
|
START: "start",
|
|
2737
2741
|
CENTER: "center",
|
|
2738
2742
|
END: "end"
|
|
2739
|
-
},
|
|
2743
|
+
}, ui = {
|
|
2740
2744
|
primary: ht.TERTIARY_PURPLE,
|
|
2741
2745
|
"primary-negative": ht.TERTIARY_PURPLE_NEGATVIE
|
|
2742
|
-
}, Q = "purpur-tooltip",
|
|
2746
|
+
}, Q = "purpur-tooltip", di = M(
|
|
2743
2747
|
({
|
|
2744
2748
|
["data-testid"]: e,
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2749
|
+
buttonSize: t = Pn.MD,
|
|
2750
|
+
children: n,
|
|
2751
|
+
className: o,
|
|
2752
|
+
contentClassName: i,
|
|
2753
|
+
variant: r = ai.PRIMARY,
|
|
2754
|
+
position: s = ci.TOP,
|
|
2755
|
+
align: a = li.CENTER,
|
|
2756
|
+
triggerAriaLabel: c = "",
|
|
2757
|
+
triggerElement: l,
|
|
2758
|
+
...d
|
|
2759
|
+
}, u) => {
|
|
2760
|
+
const [p, f] = W(!1), h = Le([
|
|
2761
|
+
o,
|
|
2757
2762
|
Q,
|
|
2758
2763
|
{
|
|
2759
|
-
[`${Q}--${
|
|
2764
|
+
[`${Q}--${r}`]: r
|
|
2760
2765
|
}
|
|
2761
|
-
]),
|
|
2766
|
+
]), g = /* @__PURE__ */ I(
|
|
2762
2767
|
Nt,
|
|
2763
2768
|
{
|
|
2764
|
-
ref:
|
|
2765
|
-
"aria-label":
|
|
2766
|
-
variant:
|
|
2769
|
+
ref: u,
|
|
2770
|
+
"aria-label": c,
|
|
2771
|
+
variant: ui[r],
|
|
2767
2772
|
iconOnly: !0,
|
|
2768
2773
|
"data-testid": `${e}-trigger-button`,
|
|
2774
|
+
size: t,
|
|
2769
2775
|
children: /* @__PURE__ */ I(Mt, { size: "md" })
|
|
2770
2776
|
}
|
|
2771
2777
|
);
|
|
2772
|
-
return /* @__PURE__ */ I("div", { "data-testid": e, className:
|
|
2778
|
+
return /* @__PURE__ */ I("div", { "data-testid": e, className: h, children: /* @__PURE__ */ I(Xo, { delayDuration: parseInt(Qn), children: /* @__PURE__ */ Ue(qo, { open: p, onOpenChange: f, ...d, children: [
|
|
2773
2779
|
/* @__PURE__ */ I(
|
|
2774
|
-
|
|
2780
|
+
Ko,
|
|
2775
2781
|
{
|
|
2776
2782
|
asChild: !0,
|
|
2777
|
-
onClick: (
|
|
2778
|
-
|
|
2783
|
+
onClick: (m) => {
|
|
2784
|
+
m.preventDefault(), f(!0);
|
|
2779
2785
|
},
|
|
2780
|
-
children: se.count(
|
|
2786
|
+
children: se.count(l) === 0 ? g : l
|
|
2781
2787
|
}
|
|
2782
2788
|
),
|
|
2783
|
-
/* @__PURE__ */ I(
|
|
2784
|
-
|
|
2789
|
+
/* @__PURE__ */ I(Zo, { children: /* @__PURE__ */ Ue(
|
|
2790
|
+
Jo,
|
|
2785
2791
|
{
|
|
2786
|
-
side:
|
|
2787
|
-
align:
|
|
2792
|
+
side: s,
|
|
2793
|
+
align: a,
|
|
2788
2794
|
className: Le([
|
|
2789
|
-
|
|
2795
|
+
i,
|
|
2790
2796
|
ie[`${Q}__content`],
|
|
2791
|
-
ie[`${Q}__content--${
|
|
2797
|
+
ie[`${Q}__content--${r}`]
|
|
2792
2798
|
]),
|
|
2793
2799
|
sideOffset: -5,
|
|
2794
2800
|
"data-testid": `${e}-content`,
|
|
2795
2801
|
children: [
|
|
2796
|
-
typeof
|
|
2797
|
-
|
|
2802
|
+
typeof n == "string" ? /* @__PURE__ */ I(
|
|
2803
|
+
Jn,
|
|
2798
2804
|
{
|
|
2799
2805
|
className: Le([
|
|
2800
2806
|
ie[`${Q}__paragraph`],
|
|
2801
|
-
ie[`${Q}__paragraph--${
|
|
2807
|
+
ie[`${Q}__paragraph--${r}`]
|
|
2802
2808
|
]),
|
|
2803
2809
|
variant: Ft.PARAGRAPH100,
|
|
2804
2810
|
"data-testid": `${e}-paragraph`,
|
|
2805
|
-
children:
|
|
2811
|
+
children: n
|
|
2806
2812
|
}
|
|
2807
|
-
) :
|
|
2813
|
+
) : n,
|
|
2808
2814
|
/* @__PURE__ */ I(
|
|
2809
|
-
|
|
2815
|
+
Qo,
|
|
2810
2816
|
{
|
|
2811
2817
|
className: Le([
|
|
2812
2818
|
ie[`${Q}__arrow`],
|
|
2813
|
-
ie[`${Q}__arrow--${
|
|
2819
|
+
ie[`${Q}__arrow--${r}`]
|
|
2814
2820
|
])
|
|
2815
2821
|
}
|
|
2816
2822
|
)
|
|
@@ -2820,11 +2826,11 @@ const ti = /* @__PURE__ */ Qo(ei), ni = "_slideDownAndFade_1dyp8_1", ri = "_slid
|
|
|
2820
2826
|
] }) }) });
|
|
2821
2827
|
}
|
|
2822
2828
|
);
|
|
2823
|
-
|
|
2829
|
+
di.displayName = "Tooltip";
|
|
2824
2830
|
export {
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2831
|
+
li as TOOLTIP_ALIGN,
|
|
2832
|
+
ci as TOOLTIP_POSITION,
|
|
2833
|
+
ai as TOOLTIP_VARIANT,
|
|
2834
|
+
di as Tooltip
|
|
2829
2835
|
};
|
|
2830
2836
|
//# sourceMappingURL=tooltip.es.js.map
|