boottent-design 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boottent-design.hooks.cjs.js +1 -0
- package/dist/boottent-design.hooks.es.js +17 -0
- package/dist/boottent-design.main.cjs.js +1 -1
- package/dist/boottent-design.main.es.js +14 -11
- package/dist/boottent-design.provider.cjs.js +51 -0
- package/dist/boottent-design.provider.es.js +2115 -0
- package/dist/boottent-design.ui.cjs.js +1 -1
- package/dist/boottent-design.ui.es.js +13 -10
- package/dist/index-DKksyhqt.cjs +1 -0
- package/dist/index-DkEQQBYd.js +2684 -0
- package/dist/{index-DDpkMTRh.js → index-NAHSuYsJ.js} +759 -1308
- package/dist/index-eD5RRver.cjs +1 -0
- package/dist/portal-manager-6YGufJVr.cjs +1 -0
- package/dist/portal-manager-CttMAZAu.js +73 -0
- package/dist/types/feature.d.ts +129 -20
- package/dist/types/hooks.d.ts +543 -0
- package/dist/types/layout.d.ts +129 -20
- package/dist/types/main.d.ts +149 -20
- package/dist/types/provider.d.ts +478 -0
- package/dist/types/styles.d.ts +129 -20
- package/dist/types/ui.d.ts +149 -20
- package/dist/types/utils.d.ts +129 -20
- package/package.json +16 -1
- package/dist/index-DNehOiOb.cjs +0 -1
|
@@ -0,0 +1,2684 @@
|
|
|
1
|
+
import { jsx as p, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { colors as bt } from "./boottent-design.styles.es.js";
|
|
3
|
+
import { c as We, u as Re, a as ze, P as K, d as q, e as At, f as le, g as we, h as Tn, I as En, i as On, D as Sn, S as Mn, R as Hn } from "./index-NAHSuYsJ.js";
|
|
4
|
+
import { cn as J } from "./boottent-design.utils.es.js";
|
|
5
|
+
import * as m from "react";
|
|
6
|
+
import F, { useLayoutEffect as Ln, useEffect as Nn } from "react";
|
|
7
|
+
import * as _n from "react-dom";
|
|
8
|
+
var Ye = "Collapsible", [Dn, Rt] = We(Ye), [Vn, je] = Dn(Ye), Pt = m.forwardRef(
|
|
9
|
+
(e, t) => {
|
|
10
|
+
const {
|
|
11
|
+
__scopeCollapsible: n,
|
|
12
|
+
open: o,
|
|
13
|
+
defaultOpen: r,
|
|
14
|
+
disabled: i,
|
|
15
|
+
onOpenChange: s,
|
|
16
|
+
...l
|
|
17
|
+
} = e, [c = !1, f] = Re({
|
|
18
|
+
prop: o,
|
|
19
|
+
defaultProp: r,
|
|
20
|
+
onChange: s
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ p(
|
|
23
|
+
Vn,
|
|
24
|
+
{
|
|
25
|
+
scope: n,
|
|
26
|
+
disabled: i,
|
|
27
|
+
contentId: ze(),
|
|
28
|
+
open: c,
|
|
29
|
+
onOpenToggle: m.useCallback(() => f((a) => !a), [f]),
|
|
30
|
+
children: /* @__PURE__ */ p(
|
|
31
|
+
K.div,
|
|
32
|
+
{
|
|
33
|
+
"data-state": Xe(c),
|
|
34
|
+
"data-disabled": i ? "" : void 0,
|
|
35
|
+
...l,
|
|
36
|
+
ref: t
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
Pt.displayName = Ye;
|
|
44
|
+
var Tt = "CollapsibleTrigger", Et = m.forwardRef(
|
|
45
|
+
(e, t) => {
|
|
46
|
+
const { __scopeCollapsible: n, ...o } = e, r = je(Tt, n);
|
|
47
|
+
return /* @__PURE__ */ p(
|
|
48
|
+
K.button,
|
|
49
|
+
{
|
|
50
|
+
type: "button",
|
|
51
|
+
"aria-controls": r.contentId,
|
|
52
|
+
"aria-expanded": r.open || !1,
|
|
53
|
+
"data-state": Xe(r.open),
|
|
54
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
55
|
+
disabled: r.disabled,
|
|
56
|
+
...o,
|
|
57
|
+
ref: t,
|
|
58
|
+
onClick: q(e.onClick, r.onOpenToggle)
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
Et.displayName = Tt;
|
|
64
|
+
var Ge = "CollapsibleContent", Ot = m.forwardRef(
|
|
65
|
+
(e, t) => {
|
|
66
|
+
const { forceMount: n, ...o } = e, r = je(Ge, e.__scopeCollapsible);
|
|
67
|
+
return /* @__PURE__ */ p(At, { present: n || r.open, children: ({ present: i }) => /* @__PURE__ */ p(kn, { ...o, ref: t, present: i }) });
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
Ot.displayName = Ge;
|
|
71
|
+
var kn = m.forwardRef((e, t) => {
|
|
72
|
+
const { __scopeCollapsible: n, present: o, children: r, ...i } = e, s = je(Ge, n), [l, c] = m.useState(o), f = m.useRef(null), a = le(t, f), d = m.useRef(0), h = d.current, u = m.useRef(0), g = u.current, C = s.open || l, v = m.useRef(C), x = m.useRef();
|
|
73
|
+
return m.useEffect(() => {
|
|
74
|
+
const w = requestAnimationFrame(() => v.current = !1);
|
|
75
|
+
return () => cancelAnimationFrame(w);
|
|
76
|
+
}, []), we(() => {
|
|
77
|
+
const w = f.current;
|
|
78
|
+
if (w) {
|
|
79
|
+
x.current = x.current || {
|
|
80
|
+
transitionDuration: w.style.transitionDuration,
|
|
81
|
+
animationName: w.style.animationName
|
|
82
|
+
}, w.style.transitionDuration = "0s", w.style.animationName = "none";
|
|
83
|
+
const y = w.getBoundingClientRect();
|
|
84
|
+
d.current = y.height, u.current = y.width, v.current || (w.style.transitionDuration = x.current.transitionDuration, w.style.animationName = x.current.animationName), c(o);
|
|
85
|
+
}
|
|
86
|
+
}, [s.open, o]), /* @__PURE__ */ p(
|
|
87
|
+
K.div,
|
|
88
|
+
{
|
|
89
|
+
"data-state": Xe(s.open),
|
|
90
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
91
|
+
id: s.contentId,
|
|
92
|
+
hidden: !C,
|
|
93
|
+
...i,
|
|
94
|
+
ref: a,
|
|
95
|
+
style: {
|
|
96
|
+
"--radix-collapsible-content-height": h ? `${h}px` : void 0,
|
|
97
|
+
"--radix-collapsible-content-width": g ? `${g}px` : void 0,
|
|
98
|
+
...e.style
|
|
99
|
+
},
|
|
100
|
+
children: C && r
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
});
|
|
104
|
+
function Xe(e) {
|
|
105
|
+
return e ? "open" : "closed";
|
|
106
|
+
}
|
|
107
|
+
var In = Pt, $n = Et, Fn = Ot, Bn = m.createContext(void 0);
|
|
108
|
+
function Zn(e) {
|
|
109
|
+
const t = m.useContext(Bn);
|
|
110
|
+
return e || t || "ltr";
|
|
111
|
+
}
|
|
112
|
+
var U = "Accordion", Wn = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Ke, zn, Yn] = Tn(U), [Pe, ei] = We(U, [
|
|
113
|
+
Yn,
|
|
114
|
+
Rt
|
|
115
|
+
]), Ue = Rt(), St = F.forwardRef(
|
|
116
|
+
(e, t) => {
|
|
117
|
+
const { type: n, ...o } = e, r = o, i = o;
|
|
118
|
+
return /* @__PURE__ */ p(Ke.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ p(Kn, { ...i, ref: t }) : /* @__PURE__ */ p(Xn, { ...r, ref: t }) });
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
St.displayName = U;
|
|
122
|
+
var [Mt, jn] = Pe(U), [Ht, Gn] = Pe(
|
|
123
|
+
U,
|
|
124
|
+
{ collapsible: !1 }
|
|
125
|
+
), Xn = F.forwardRef(
|
|
126
|
+
(e, t) => {
|
|
127
|
+
const {
|
|
128
|
+
value: n,
|
|
129
|
+
defaultValue: o,
|
|
130
|
+
onValueChange: r = () => {
|
|
131
|
+
},
|
|
132
|
+
collapsible: i = !1,
|
|
133
|
+
...s
|
|
134
|
+
} = e, [l, c] = Re({
|
|
135
|
+
prop: n,
|
|
136
|
+
defaultProp: o,
|
|
137
|
+
onChange: r
|
|
138
|
+
});
|
|
139
|
+
return /* @__PURE__ */ p(
|
|
140
|
+
Mt,
|
|
141
|
+
{
|
|
142
|
+
scope: e.__scopeAccordion,
|
|
143
|
+
value: l ? [l] : [],
|
|
144
|
+
onItemOpen: c,
|
|
145
|
+
onItemClose: F.useCallback(() => i && c(""), [i, c]),
|
|
146
|
+
children: /* @__PURE__ */ p(Ht, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ p(Lt, { ...s, ref: t }) })
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
), Kn = F.forwardRef((e, t) => {
|
|
151
|
+
const {
|
|
152
|
+
value: n,
|
|
153
|
+
defaultValue: o,
|
|
154
|
+
onValueChange: r = () => {
|
|
155
|
+
},
|
|
156
|
+
...i
|
|
157
|
+
} = e, [s = [], l] = Re({
|
|
158
|
+
prop: n,
|
|
159
|
+
defaultProp: o,
|
|
160
|
+
onChange: r
|
|
161
|
+
}), c = F.useCallback(
|
|
162
|
+
(a) => l((d = []) => [...d, a]),
|
|
163
|
+
[l]
|
|
164
|
+
), f = F.useCallback(
|
|
165
|
+
(a) => l((d = []) => d.filter((h) => h !== a)),
|
|
166
|
+
[l]
|
|
167
|
+
);
|
|
168
|
+
return /* @__PURE__ */ p(
|
|
169
|
+
Mt,
|
|
170
|
+
{
|
|
171
|
+
scope: e.__scopeAccordion,
|
|
172
|
+
value: s,
|
|
173
|
+
onItemOpen: c,
|
|
174
|
+
onItemClose: f,
|
|
175
|
+
children: /* @__PURE__ */ p(Ht, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ p(Lt, { ...i, ref: t }) })
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}), [Un, Te] = Pe(U), Lt = F.forwardRef(
|
|
179
|
+
(e, t) => {
|
|
180
|
+
const { __scopeAccordion: n, disabled: o, dir: r, orientation: i = "vertical", ...s } = e, l = F.useRef(null), c = le(l, t), f = zn(n), d = Zn(r) === "ltr", h = q(e.onKeyDown, (u) => {
|
|
181
|
+
var O;
|
|
182
|
+
if (!Wn.includes(u.key)) return;
|
|
183
|
+
const g = u.target, C = f().filter((L) => {
|
|
184
|
+
var S;
|
|
185
|
+
return !((S = L.ref.current) != null && S.disabled);
|
|
186
|
+
}), v = C.findIndex((L) => L.ref.current === g), x = C.length;
|
|
187
|
+
if (v === -1) return;
|
|
188
|
+
u.preventDefault();
|
|
189
|
+
let w = v;
|
|
190
|
+
const y = 0, b = x - 1, A = () => {
|
|
191
|
+
w = v + 1, w > b && (w = y);
|
|
192
|
+
}, R = () => {
|
|
193
|
+
w = v - 1, w < y && (w = b);
|
|
194
|
+
};
|
|
195
|
+
switch (u.key) {
|
|
196
|
+
case "Home":
|
|
197
|
+
w = y;
|
|
198
|
+
break;
|
|
199
|
+
case "End":
|
|
200
|
+
w = b;
|
|
201
|
+
break;
|
|
202
|
+
case "ArrowRight":
|
|
203
|
+
i === "horizontal" && (d ? A() : R());
|
|
204
|
+
break;
|
|
205
|
+
case "ArrowDown":
|
|
206
|
+
i === "vertical" && A();
|
|
207
|
+
break;
|
|
208
|
+
case "ArrowLeft":
|
|
209
|
+
i === "horizontal" && (d ? R() : A());
|
|
210
|
+
break;
|
|
211
|
+
case "ArrowUp":
|
|
212
|
+
i === "vertical" && R();
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
const T = w % x;
|
|
216
|
+
(O = C[T].ref.current) == null || O.focus();
|
|
217
|
+
});
|
|
218
|
+
return /* @__PURE__ */ p(
|
|
219
|
+
Un,
|
|
220
|
+
{
|
|
221
|
+
scope: n,
|
|
222
|
+
disabled: o,
|
|
223
|
+
direction: r,
|
|
224
|
+
orientation: i,
|
|
225
|
+
children: /* @__PURE__ */ p(Ke.Slot, { scope: n, children: /* @__PURE__ */ p(
|
|
226
|
+
K.div,
|
|
227
|
+
{
|
|
228
|
+
...s,
|
|
229
|
+
"data-orientation": i,
|
|
230
|
+
ref: c,
|
|
231
|
+
onKeyDown: o ? void 0 : h
|
|
232
|
+
}
|
|
233
|
+
) })
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
), ve = "AccordionItem", [qn, qe] = Pe(ve), Nt = F.forwardRef(
|
|
238
|
+
(e, t) => {
|
|
239
|
+
const { __scopeAccordion: n, value: o, ...r } = e, i = Te(ve, n), s = jn(ve, n), l = Ue(n), c = ze(), f = o && s.value.includes(o) || !1, a = i.disabled || e.disabled;
|
|
240
|
+
return /* @__PURE__ */ p(
|
|
241
|
+
qn,
|
|
242
|
+
{
|
|
243
|
+
scope: n,
|
|
244
|
+
open: f,
|
|
245
|
+
disabled: a,
|
|
246
|
+
triggerId: c,
|
|
247
|
+
children: /* @__PURE__ */ p(
|
|
248
|
+
In,
|
|
249
|
+
{
|
|
250
|
+
"data-orientation": i.orientation,
|
|
251
|
+
"data-state": $t(f),
|
|
252
|
+
...l,
|
|
253
|
+
...r,
|
|
254
|
+
ref: t,
|
|
255
|
+
disabled: a,
|
|
256
|
+
open: f,
|
|
257
|
+
onOpenChange: (d) => {
|
|
258
|
+
d ? s.onItemOpen(o) : s.onItemClose(o);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
Nt.displayName = ve;
|
|
267
|
+
var _t = "AccordionHeader", Dt = F.forwardRef(
|
|
268
|
+
(e, t) => {
|
|
269
|
+
const { __scopeAccordion: n, ...o } = e, r = Te(U, n), i = qe(_t, n);
|
|
270
|
+
return /* @__PURE__ */ p(
|
|
271
|
+
K.h3,
|
|
272
|
+
{
|
|
273
|
+
"data-orientation": r.orientation,
|
|
274
|
+
"data-state": $t(i.open),
|
|
275
|
+
"data-disabled": i.disabled ? "" : void 0,
|
|
276
|
+
...o,
|
|
277
|
+
ref: t
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
Dt.displayName = _t;
|
|
283
|
+
var Ve = "AccordionTrigger", Vt = F.forwardRef(
|
|
284
|
+
(e, t) => {
|
|
285
|
+
const { __scopeAccordion: n, ...o } = e, r = Te(U, n), i = qe(Ve, n), s = Gn(Ve, n), l = Ue(n);
|
|
286
|
+
return /* @__PURE__ */ p(Ke.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
287
|
+
$n,
|
|
288
|
+
{
|
|
289
|
+
"aria-disabled": i.open && !s.collapsible || void 0,
|
|
290
|
+
"data-orientation": r.orientation,
|
|
291
|
+
id: i.triggerId,
|
|
292
|
+
...l,
|
|
293
|
+
...o,
|
|
294
|
+
ref: t
|
|
295
|
+
}
|
|
296
|
+
) });
|
|
297
|
+
}
|
|
298
|
+
);
|
|
299
|
+
Vt.displayName = Ve;
|
|
300
|
+
var kt = "AccordionContent", It = F.forwardRef(
|
|
301
|
+
(e, t) => {
|
|
302
|
+
const { __scopeAccordion: n, ...o } = e, r = Te(U, n), i = qe(kt, n), s = Ue(n);
|
|
303
|
+
return /* @__PURE__ */ p(
|
|
304
|
+
Fn,
|
|
305
|
+
{
|
|
306
|
+
role: "region",
|
|
307
|
+
"aria-labelledby": i.triggerId,
|
|
308
|
+
"data-orientation": r.orientation,
|
|
309
|
+
...s,
|
|
310
|
+
...o,
|
|
311
|
+
ref: t,
|
|
312
|
+
style: {
|
|
313
|
+
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
314
|
+
"--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
|
|
315
|
+
...e.style
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
);
|
|
321
|
+
It.displayName = kt;
|
|
322
|
+
function $t(e) {
|
|
323
|
+
return e ? "open" : "closed";
|
|
324
|
+
}
|
|
325
|
+
var Jn = St, Qn = Nt, eo = Dt, Ft = Vt, Bt = It;
|
|
326
|
+
const ti = Jn, to = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
327
|
+
Qn,
|
|
328
|
+
{
|
|
329
|
+
ref: n,
|
|
330
|
+
className: J("w-full border-b", e),
|
|
331
|
+
...t
|
|
332
|
+
}
|
|
333
|
+
));
|
|
334
|
+
to.displayName = "AccordionItem";
|
|
335
|
+
const no = m.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ p(eo, { className: "flex", children: /* @__PURE__ */ B(
|
|
336
|
+
Ft,
|
|
337
|
+
{
|
|
338
|
+
ref: o,
|
|
339
|
+
className: J(
|
|
340
|
+
"flex flex-1 items-center justify-between py-4 text-start font-medium transition-all [&[data-state=open]>svg]:rotate-180",
|
|
341
|
+
e
|
|
342
|
+
),
|
|
343
|
+
...n,
|
|
344
|
+
children: [
|
|
345
|
+
t,
|
|
346
|
+
/* @__PURE__ */ p(
|
|
347
|
+
En.ArrowDown,
|
|
348
|
+
{
|
|
349
|
+
className: "shrink-0 transition-transform duration-200",
|
|
350
|
+
fill: bt.grey[600],
|
|
351
|
+
size: "16"
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
) }));
|
|
357
|
+
no.displayName = Ft.displayName;
|
|
358
|
+
const oo = m.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ p(
|
|
359
|
+
Bt,
|
|
360
|
+
{
|
|
361
|
+
ref: o,
|
|
362
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down pb-4",
|
|
363
|
+
...n,
|
|
364
|
+
children: /* @__PURE__ */ p("div", { className: J(e), children: t })
|
|
365
|
+
}
|
|
366
|
+
));
|
|
367
|
+
oo.displayName = Bt.displayName;
|
|
368
|
+
const ro = m.forwardRef(
|
|
369
|
+
({ className: e, type: t = "text", icon: n, error: o, iconPosition: r = "right", ...i }, s) => /* @__PURE__ */ B("div", { className: J("relative flex w-full items-center text-sm"), children: [
|
|
370
|
+
n && r === "left" && /* @__PURE__ */ p("span", { className: "absolute left-4", children: n }),
|
|
371
|
+
/* @__PURE__ */ p(
|
|
372
|
+
"input",
|
|
373
|
+
{
|
|
374
|
+
type: t,
|
|
375
|
+
className: J(
|
|
376
|
+
"h-11 w-full rounded-lg border border-border bg-background px-4 py-3 outline-none transition-all focus:border-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
377
|
+
n && r === "left" && "pl-10",
|
|
378
|
+
n && r === "right" && "pr-10",
|
|
379
|
+
o && "border-destructive focus:border-destructive",
|
|
380
|
+
e
|
|
381
|
+
),
|
|
382
|
+
ref: s,
|
|
383
|
+
...i
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
n && r === "right" && /* @__PURE__ */ p("span", { className: "absolute right-4", children: n })
|
|
387
|
+
] })
|
|
388
|
+
);
|
|
389
|
+
ro.displayName = "Input";
|
|
390
|
+
const io = ({
|
|
391
|
+
size: e = "24",
|
|
392
|
+
fill: t = "#000000",
|
|
393
|
+
className: n
|
|
394
|
+
}) => /* @__PURE__ */ p(
|
|
395
|
+
"svg",
|
|
396
|
+
{
|
|
397
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
398
|
+
width: e,
|
|
399
|
+
height: e,
|
|
400
|
+
viewBox: "0 0 24 24",
|
|
401
|
+
fill: "none",
|
|
402
|
+
className: n,
|
|
403
|
+
children: /* @__PURE__ */ p(
|
|
404
|
+
"path",
|
|
405
|
+
{
|
|
406
|
+
fillRule: "evenodd",
|
|
407
|
+
clipRule: "evenodd",
|
|
408
|
+
d: "M8.95557 21.9477C10.2363 21.9477 10.798 21.0602 12.3933 21.0602C13.9887 21.0602 14.3706 21.914 15.7862 21.914C17.2017 21.914 18.1117 20.5883 18.9993 19.2851C19.9879 17.7909 20.3924 16.3304 20.4261 16.263C20.3362 16.2406 17.6624 15.1059 17.6624 11.949C17.6624 9.20773 19.7745 7.97193 19.8868 7.88205C18.4937 5.81489 16.3704 5.76995 15.7974 5.76995C14.2358 5.76995 12.9551 6.74736 12.1462 6.74736C11.2811 6.74736 10.1352 5.82612 8.77582 5.82612C6.19187 5.82612 3.57422 8.0281 3.57422 12.1737C3.57422 14.7464 4.55163 17.4764 5.74249 19.2402C6.76483 20.7344 7.6636 21.959 8.95557 21.959V21.9477ZM12.2473 5.52279C13.1798 5.52279 14.3594 4.87119 15.0559 4.00613C15.6851 3.21971 16.1457 2.11872 16.1457 1.01773C16.1457 0.87168 16.1345 0.714396 16.1007 0.602051C15.0559 0.646989 13.8089 1.32106 13.0562 2.23106C12.4608 2.92761 11.9215 4.00612 11.9215 5.11835C11.9215 5.27563 11.944 5.44415 11.9664 5.50032C12.0338 5.51156 12.135 5.52279 12.2473 5.52279Z",
|
|
409
|
+
fill: t
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
}
|
|
413
|
+
), so = ({
|
|
414
|
+
className: e,
|
|
415
|
+
fill: t = bt.main[600],
|
|
416
|
+
size: n = "140"
|
|
417
|
+
}) => /* @__PURE__ */ p(
|
|
418
|
+
"svg",
|
|
419
|
+
{
|
|
420
|
+
width: n,
|
|
421
|
+
height: `${Number(n) * 124 / 977}`,
|
|
422
|
+
viewBox: "0 0 977 124",
|
|
423
|
+
fill: "none",
|
|
424
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
425
|
+
className: e,
|
|
426
|
+
children: /* @__PURE__ */ p(
|
|
427
|
+
"path",
|
|
428
|
+
{
|
|
429
|
+
fillRule: "evenodd",
|
|
430
|
+
clipRule: "evenodd",
|
|
431
|
+
d: "M93 62C93 99.7533 117.112 124 151 124C185.051 124 209 99.7533 209 62C209 24.084 185.051 0 151 0C117.112 0 93 24.084 93 62ZM194.989 62C194.989 89.9895 178.86 110.656 151 110.656C123.303 110.656 107.174 89.9895 107.174 62C107.174 34.0105 123.303 13.3438 151 13.3438C178.86 13.3438 194.989 33.8478 194.989 62ZM278 124C244.112 124 220 99.7533 220 62C220 24.084 244.112 0 278 0C312.051 0 336 24.084 336 62C336 99.7533 312.051 124 278 124ZM278 110.656C305.86 110.656 321.989 89.9895 321.989 62C321.989 33.8478 305.86 13.3438 278 13.3438C250.303 13.3438 234.174 34.0105 234.174 62C234.174 89.9895 250.303 110.656 278 110.656ZM390.078 122H379.922C378.775 122 378.119 121.346 378.119 120.201V14.9155H338.638C337.491 14.9155 337 14.2616 337 13.1171V3.63487C337 2.65395 337.491 2 338.638 2H431.362C432.345 2 433 2.65395 433 3.63487V13.1171C433 14.2616 432.345 14.9155 431.362 14.9155H391.881V120.201C391.881 121.346 391.225 122 390.078 122ZM42.9184 122H1.79507C0.652752 122 0 121.346 0 120.201V3.63487C0 2.65395 0.652752 2 1.79507 2H40.797C68.0493 2 80.2884 15.2425 80.2884 32.4086C80.2884 45.3242 74.0873 54.8064 62.3378 59.2206C78.167 63.1443 86 73.444 86 88.4848C86 108.267 73.2713 122 42.9184 122ZM13.7078 14.752V53.662H40.9602C58.5844 53.662 66.4175 46.3051 66.4175 34.207C66.4175 22.2724 57.7685 14.752 39.981 14.752H13.7078ZM13.7078 66.2505V109.084H42.9184C62.6641 109.084 71.9659 101.237 71.9659 87.5039C71.9659 73.9345 62.6641 66.2505 42.9184 66.2505H13.7078ZM923.922 122H934.078C935.225 122 935.881 121.346 935.881 120.201V14.9155H975.362C976.345 14.9155 977 14.2616 977 13.1171V3.63487C977 2.65395 976.345 2 975.362 2H882.638C881.491 2 881 2.65395 881 3.63487V13.1171C881 14.2616 881.491 14.9155 882.638 14.9155H922.119V120.201C922.119 121.346 922.775 122 923.922 122ZM787.625 122H777.801C776.655 122 776 121.346 776 120.201V3.63487C776 2.65395 776.655 2 777.801 2H788.771C789.754 2 790.245 2.32697 790.9 3.14441L855.738 99.7655V3.63487C855.738 2.65395 856.393 2 857.539 2H867.363C868.345 2 869 2.65395 869 3.63487V120.201C869 121.346 868.345 122 867.363 122H856.393C855.41 122 854.919 121.673 854.264 120.855L789.262 24.0708V120.201C789.262 121.346 788.607 122 787.625 122ZM687.806 122H762.358C763.343 122 764 121.346 764 120.201V110.719C764 109.738 763.343 109.084 762.358 109.084H699.794V66.2505H755.133C756.118 66.2505 756.775 65.5966 756.775 64.6157V55.2969C756.775 54.1525 756.118 53.4985 755.133 53.4985H699.794V14.9155H760.387C761.537 14.9155 762.194 14.2616 762.194 13.1171V3.63487C762.194 2.65395 761.537 2 760.387 2H687.806C686.657 2 686 2.65395 686 3.63487V120.201C686 121.346 686.657 122 687.806 122ZM631.078 122H620.922C619.775 122 619.119 121.346 619.119 120.201V14.9155H579.638C578.491 14.9155 578 14.2616 578 13.1171V3.63487C578 2.65395 578.491 2 579.638 2H672.362C673.345 2 674 2.65395 674 3.63487V13.1171C674 14.2616 673.345 14.9155 672.362 14.9155H632.881V120.201C632.881 121.346 632.225 122 631.078 122ZM460.936 106.978L506.5 28.8673L552.064 106.978H460.936ZM440 119L506.5 5L573 119H440Z",
|
|
432
|
+
fill: t
|
|
433
|
+
}
|
|
434
|
+
)
|
|
435
|
+
}
|
|
436
|
+
), lo = ({
|
|
437
|
+
size: e = "24",
|
|
438
|
+
fill: t = "#FFFFFF",
|
|
439
|
+
className: n
|
|
440
|
+
}) => /* @__PURE__ */ B(
|
|
441
|
+
"svg",
|
|
442
|
+
{
|
|
443
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
444
|
+
width: e,
|
|
445
|
+
height: e,
|
|
446
|
+
viewBox: "0 0 24 24",
|
|
447
|
+
fill: "none",
|
|
448
|
+
className: n,
|
|
449
|
+
children: [
|
|
450
|
+
/* @__PURE__ */ p("circle", { cx: "12", cy: "12.0002", r: "12", fill: "#0866FF" }),
|
|
451
|
+
/* @__PURE__ */ p(
|
|
452
|
+
"path",
|
|
453
|
+
{
|
|
454
|
+
fillRule: "evenodd",
|
|
455
|
+
clipRule: "evenodd",
|
|
456
|
+
d: "M13.8821 23.8536V15.4806H16.6781L17.2061 12.0126H13.8821V9.75663C13.8821 8.80863 14.3501 7.88463 15.8381 7.88463H17.3501V4.93263C17.3501 4.93263 15.9701 4.69263 14.6621 4.69263C11.9141 4.69263 10.1261 6.34863 10.1261 9.36063V12.0006H7.07812V15.4686H10.1261V23.8555C10.7361 23.951 11.3613 24.0006 11.9981 24.0006C12.6391 24.0006 13.2683 23.9504 13.8821 23.8536Z",
|
|
457
|
+
fill: t
|
|
458
|
+
}
|
|
459
|
+
)
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
), co = ({
|
|
463
|
+
size: e = "24",
|
|
464
|
+
fill: t = "none",
|
|
465
|
+
className: n
|
|
466
|
+
}) => /* @__PURE__ */ B(
|
|
467
|
+
"svg",
|
|
468
|
+
{
|
|
469
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
470
|
+
width: e,
|
|
471
|
+
height: e,
|
|
472
|
+
viewBox: "0 0 24 24",
|
|
473
|
+
fill: t,
|
|
474
|
+
className: n,
|
|
475
|
+
children: [
|
|
476
|
+
/* @__PURE__ */ p(
|
|
477
|
+
"path",
|
|
478
|
+
{
|
|
479
|
+
fillRule: "evenodd",
|
|
480
|
+
clipRule: "evenodd",
|
|
481
|
+
d: "M23.52 12.2733C23.52 11.4226 23.444 10.6039 23.3013 9.8186H12V14.4599H18.4587C18.18 15.9599 17.3347 17.2319 16.064 18.0826V21.0933H19.9413C22.2107 19.0039 23.52 15.9279 23.52 12.2733Z",
|
|
482
|
+
fill: "#3D82F0"
|
|
483
|
+
}
|
|
484
|
+
),
|
|
485
|
+
/* @__PURE__ */ p(
|
|
486
|
+
"path",
|
|
487
|
+
{
|
|
488
|
+
fillRule: "evenodd",
|
|
489
|
+
clipRule: "evenodd",
|
|
490
|
+
d: "M11.9994 24.0005C15.2394 24.0005 17.956 22.9253 19.9413 21.0933L16.064 18.0826C14.9893 18.8026 13.6141 19.2272 11.9994 19.2272C8.87406 19.2272 6.22872 17.1165 5.28472 14.2805H1.27539V17.3899C3.25006 21.3112 7.30872 24.0005 11.9994 24.0005Z",
|
|
491
|
+
fill: "#31A752"
|
|
492
|
+
}
|
|
493
|
+
),
|
|
494
|
+
/* @__PURE__ */ p(
|
|
495
|
+
"path",
|
|
496
|
+
{
|
|
497
|
+
fillRule: "evenodd",
|
|
498
|
+
clipRule: "evenodd",
|
|
499
|
+
d: "M5.28472 14.2805C5.04472 13.5605 4.90933 12.7912 4.90933 12.0005C4.90933 11.2099 5.04533 10.4405 5.28533 9.72054V6.61121H1.276C0.464 8.23121 0 10.0645 0 12.0005C0 13.9365 0.463391 15.7699 1.27539 17.3899L5.28472 14.2805Z",
|
|
500
|
+
fill: "#F9BA00"
|
|
501
|
+
}
|
|
502
|
+
),
|
|
503
|
+
/* @__PURE__ */ p(
|
|
504
|
+
"path",
|
|
505
|
+
{
|
|
506
|
+
fillRule: "evenodd",
|
|
507
|
+
clipRule: "evenodd",
|
|
508
|
+
d: "M11.9994 4.77358C13.7607 4.77358 15.3434 5.37891 16.5861 6.56824L20.0287 3.12691C17.9501 1.18958 15.2341 0.000244141 11.9994 0.000244141C7.30872 0.000244141 3.25006 2.68958 1.27539 6.61225L5.28533 9.72054C6.22933 6.88454 8.87406 4.77358 11.9994 4.77358Z",
|
|
509
|
+
fill: "#E64234"
|
|
510
|
+
}
|
|
511
|
+
)
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
), ao = ({
|
|
515
|
+
size: e = "24",
|
|
516
|
+
fill: t = "none",
|
|
517
|
+
className: n
|
|
518
|
+
}) => /* @__PURE__ */ B(
|
|
519
|
+
"svg",
|
|
520
|
+
{
|
|
521
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
522
|
+
width: e,
|
|
523
|
+
height: `${Number(e) * 24 / 21}`,
|
|
524
|
+
viewBox: "0 0 21 24",
|
|
525
|
+
fill: t,
|
|
526
|
+
className: n,
|
|
527
|
+
children: [
|
|
528
|
+
/* @__PURE__ */ p(
|
|
529
|
+
"path",
|
|
530
|
+
{
|
|
531
|
+
d: "M9.84416 11.5002L0.591043 21.3177C0.877759 22.3864 1.85086 23.1683 3.00641 23.1683C3.4669 23.1683 3.90131 23.0467 4.27491 22.8208L4.30098 22.8034L14.7097 16.7999L9.83547 11.4915L9.84416 11.5002Z",
|
|
532
|
+
fill: "#EA4335"
|
|
533
|
+
}
|
|
534
|
+
),
|
|
535
|
+
/* @__PURE__ */ p(
|
|
536
|
+
"path",
|
|
537
|
+
{
|
|
538
|
+
d: "M19.2006 9.83196H19.192L14.7001 7.21684L9.63475 11.726L14.7174 16.8085L19.192 14.2281C19.9739 13.8024 20.5039 12.9771 20.5039 12.0301C20.5039 11.083 19.9826 10.2577 19.2006 9.84065V9.83196Z",
|
|
539
|
+
fill: "#FBBC04"
|
|
540
|
+
}
|
|
541
|
+
),
|
|
542
|
+
/* @__PURE__ */ p(
|
|
543
|
+
"path",
|
|
544
|
+
{
|
|
545
|
+
d: "M0.59079 2.69054C0.53866 2.89905 0.503906 3.10757 0.503906 3.33346V20.6836C0.503906 20.9095 0.529971 21.118 0.59079 21.3265L10.1567 11.7609L0.59079 2.69054Z",
|
|
546
|
+
fill: "#4285F4"
|
|
547
|
+
}
|
|
548
|
+
),
|
|
549
|
+
/* @__PURE__ */ p(
|
|
550
|
+
"path",
|
|
551
|
+
{
|
|
552
|
+
d: "M9.91367 12.0041L14.7001 7.21684L4.30098 1.18739C3.92738 0.961499 3.48427 0.831177 3.00641 0.831177C1.85086 0.831177 0.877759 1.6218 0.591043 2.68175L9.91367 11.9954V12.0041Z",
|
|
553
|
+
fill: "#34A853"
|
|
554
|
+
}
|
|
555
|
+
)
|
|
556
|
+
]
|
|
557
|
+
}
|
|
558
|
+
), fo = ({
|
|
559
|
+
size: e = "20",
|
|
560
|
+
fill: t = "none",
|
|
561
|
+
className: n
|
|
562
|
+
}) => /* @__PURE__ */ B(
|
|
563
|
+
"svg",
|
|
564
|
+
{
|
|
565
|
+
width: e,
|
|
566
|
+
height: e,
|
|
567
|
+
viewBox: "0 0 20 20",
|
|
568
|
+
fill: t,
|
|
569
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
570
|
+
className: n,
|
|
571
|
+
children: [
|
|
572
|
+
/* @__PURE__ */ p("rect", { x: "0.5", y: "0.5", width: "19", height: "19", rx: "9.5", fill: "white" }),
|
|
573
|
+
/* @__PURE__ */ p("rect", { x: "0.5", y: "0.5", width: "19", height: "19", rx: "9.5", stroke: "#DDE2E6" }),
|
|
574
|
+
/* @__PURE__ */ B("g", { clipPath: "url(#clip0_4596_247326)", children: [
|
|
575
|
+
/* @__PURE__ */ p(
|
|
576
|
+
"path",
|
|
577
|
+
{
|
|
578
|
+
fillRule: "evenodd",
|
|
579
|
+
clipRule: "evenodd",
|
|
580
|
+
d: "M14.8 10.1139C14.8 9.75944 14.7683 9.41833 14.7089 9.0911H10V11.025H12.6911C12.575 11.65 12.2228 12.18 11.6933 12.5344V13.7889H13.3089C14.2544 12.9183 14.8 11.6367 14.8 10.1139Z",
|
|
581
|
+
fill: "#3D82F0"
|
|
582
|
+
}
|
|
583
|
+
),
|
|
584
|
+
/* @__PURE__ */ p(
|
|
585
|
+
"path",
|
|
586
|
+
{
|
|
587
|
+
fillRule: "evenodd",
|
|
588
|
+
clipRule: "evenodd",
|
|
589
|
+
d: "M9.99975 15.0002C11.3497 15.0002 12.4817 14.5522 13.3089 13.7889L11.6933 12.5344C11.2456 12.8344 10.6725 13.0113 9.99975 13.0113C8.69752 13.0113 7.5953 12.1319 7.20197 10.9502H5.53141V12.2458C6.35419 13.8797 8.0453 15.0002 9.99975 15.0002Z",
|
|
590
|
+
fill: "#31A752"
|
|
591
|
+
}
|
|
592
|
+
),
|
|
593
|
+
/* @__PURE__ */ p(
|
|
594
|
+
"path",
|
|
595
|
+
{
|
|
596
|
+
fillRule: "evenodd",
|
|
597
|
+
clipRule: "evenodd",
|
|
598
|
+
d: "M7.20197 10.9502C7.10197 10.6502 7.04556 10.3297 7.04556 10.0002C7.04556 9.6708 7.10222 9.35025 7.20222 9.05025V7.75469H5.53167C5.19333 8.42969 5 9.19358 5 10.0002C5 10.8069 5.19308 11.5708 5.53141 12.2458L7.20197 10.9502Z",
|
|
599
|
+
fill: "#F9BA00"
|
|
600
|
+
}
|
|
601
|
+
),
|
|
602
|
+
/* @__PURE__ */ p(
|
|
603
|
+
"path",
|
|
604
|
+
{
|
|
605
|
+
fillRule: "evenodd",
|
|
606
|
+
clipRule: "evenodd",
|
|
607
|
+
d: "M9.99975 6.98901C10.7336 6.98901 11.3931 7.24123 11.9109 7.73679L13.3453 6.3029C12.4792 5.49568 11.3475 5.00012 9.99975 5.00012C8.0453 5.00012 6.35419 6.12068 5.53141 7.75512L7.20222 9.05025C7.59556 7.86858 8.69752 6.98901 9.99975 6.98901Z",
|
|
608
|
+
fill: "#E64234"
|
|
609
|
+
}
|
|
610
|
+
)
|
|
611
|
+
] }),
|
|
612
|
+
/* @__PURE__ */ p("defs", { children: /* @__PURE__ */ p("clipPath", { id: "clip0_4596_247326", children: /* @__PURE__ */ p(
|
|
613
|
+
"rect",
|
|
614
|
+
{
|
|
615
|
+
width: "10",
|
|
616
|
+
height: "10",
|
|
617
|
+
fill: "white",
|
|
618
|
+
transform: "translate(5 5)"
|
|
619
|
+
}
|
|
620
|
+
) }) })
|
|
621
|
+
]
|
|
622
|
+
}
|
|
623
|
+
), uo = ({
|
|
624
|
+
size: e = "24",
|
|
625
|
+
fill: t = "black",
|
|
626
|
+
className: n
|
|
627
|
+
}) => /* @__PURE__ */ p(
|
|
628
|
+
"svg",
|
|
629
|
+
{
|
|
630
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
631
|
+
width: e,
|
|
632
|
+
height: e,
|
|
633
|
+
viewBox: "0 0 24 24",
|
|
634
|
+
fill: "none",
|
|
635
|
+
className: n,
|
|
636
|
+
children: /* @__PURE__ */ p(
|
|
637
|
+
"path",
|
|
638
|
+
{
|
|
639
|
+
fillRule: "evenodd",
|
|
640
|
+
clipRule: "evenodd",
|
|
641
|
+
d: "M12 2.61816C6.48 2.61816 2 6.09816 2 10.3782C2 13.0482 3.73 15.3782 6.37 16.7982L5.26 20.8682C5.23906 20.9491 5.24337 21.0345 5.27235 21.113C5.30134 21.1914 5.35362 21.2591 5.42217 21.307C5.49073 21.3549 5.57228 21.3806 5.6559 21.3808C5.73952 21.3811 5.8212 21.3557 5.89 21.3082L10.75 18.0782C11.16 18.0782 11.58 18.1482 12 18.1482C17.52 18.1482 22 14.6682 22 10.3782C22 6.08816 17.52 2.61816 12 2.61816Z",
|
|
642
|
+
fill: t
|
|
643
|
+
}
|
|
644
|
+
)
|
|
645
|
+
}
|
|
646
|
+
), po = ({
|
|
647
|
+
size: e = "20",
|
|
648
|
+
fill: t = "none",
|
|
649
|
+
className: n
|
|
650
|
+
}) => /* @__PURE__ */ B(
|
|
651
|
+
"svg",
|
|
652
|
+
{
|
|
653
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
654
|
+
width: e,
|
|
655
|
+
height: e,
|
|
656
|
+
viewBox: "0 0 20 20",
|
|
657
|
+
fill: t,
|
|
658
|
+
className: n,
|
|
659
|
+
children: [
|
|
660
|
+
/* @__PURE__ */ p("rect", { width: "20", height: "20", rx: "10", fill: "#FEE500" }),
|
|
661
|
+
/* @__PURE__ */ p(
|
|
662
|
+
"path",
|
|
663
|
+
{
|
|
664
|
+
fillRule: "evenodd",
|
|
665
|
+
clipRule: "evenodd",
|
|
666
|
+
d: "M10 5.3125C7.24 5.3125 5 7.0525 5 9.1925C5 10.5275 5.865 11.6925 7.185 12.4025L6.63 14.4375C6.61953 14.478 6.62168 14.5207 6.63618 14.5599C6.65067 14.5991 6.67681 14.633 6.71109 14.6569C6.74536 14.6809 6.78614 14.6937 6.82795 14.6938C6.86976 14.6939 6.9106 14.6813 6.945 14.6575L9.375 13.0425C9.58 13.0425 9.79 13.0775 10 13.0775C12.76 13.0775 15 11.3375 15 9.1925C15 7.0475 12.76 5.3125 10 5.3125Z",
|
|
667
|
+
fill: "black"
|
|
668
|
+
}
|
|
669
|
+
)
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
), ho = ({
|
|
673
|
+
size: e = "20",
|
|
674
|
+
fill: t = "none",
|
|
675
|
+
className: n
|
|
676
|
+
}) => /* @__PURE__ */ p(
|
|
677
|
+
"svg",
|
|
678
|
+
{
|
|
679
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
680
|
+
width: e,
|
|
681
|
+
height: e,
|
|
682
|
+
viewBox: "0 0 20 20",
|
|
683
|
+
fill: t,
|
|
684
|
+
className: n,
|
|
685
|
+
children: /* @__PURE__ */ p(
|
|
686
|
+
"path",
|
|
687
|
+
{
|
|
688
|
+
fillRule: "evenodd",
|
|
689
|
+
clipRule: "evenodd",
|
|
690
|
+
d: "M7.61259 0.350098H12.3905C13.4775 0.35009 14.3482 0.350084 15.052 0.407584C15.7746 0.466628 16.4002 0.590759 16.9761 0.884167C17.898 1.35395 18.6476 2.10355 19.1174 3.02555C19.4108 3.60139 19.535 4.22695 19.594 4.94962C19.6515 5.65339 19.6515 6.52407 19.6515 7.61115V12.3891C19.6515 13.4761 19.6515 14.3468 19.594 15.0506C19.535 15.7732 19.4108 16.3988 19.1174 16.9747C18.6476 17.8966 17.898 18.6462 16.9761 19.116C16.4002 19.4094 15.7746 19.5336 15.052 19.5926C14.3482 19.6501 13.4775 19.6501 12.3905 19.6501H7.6125C6.52547 19.6501 5.65482 19.6501 4.95106 19.5926C4.2284 19.5336 3.60284 19.4094 3.027 19.116C2.10501 18.6462 1.35541 17.8966 0.885629 16.9747C0.592223 16.3988 0.468093 15.7732 0.409049 15.0506C0.351549 14.3468 0.351555 13.4761 0.351562 12.3891V7.61112C0.351555 6.52405 0.351549 5.65338 0.409049 4.94962C0.468093 4.22695 0.592223 3.60139 0.885629 3.02555C1.35541 2.10355 2.10501 1.35395 3.027 0.884167C3.60284 0.590759 4.2284 0.466628 4.95106 0.407584C5.65483 0.350084 6.52552 0.35009 7.61258 0.350098H7.61259ZM5.85129 7.14866C5.13227 7.14866 4.55176 6.56687 4.55176 5.84923C4.55176 5.13159 5.13227 4.5498 5.85129 4.5498C6.56736 4.5498 7.14787 5.13159 7.14787 5.84923C7.14787 6.56391 6.56736 7.14866 5.85129 7.14866ZM6.97107 15.3498H4.73151V8.13209H6.97107V15.3498ZM13.1151 15.3498H15.3517V11.3895C15.3517 9.44628 14.9333 7.95194 12.6672 7.95194C11.5798 7.95194 10.849 8.55145 10.5514 9.11847H10.5219V8.13209H8.37668V15.3498H10.6103V11.7823C10.6103 10.8402 10.7871 9.92766 11.9511 9.92766C13.1004 9.92766 13.1151 11.0056 13.1151 11.8414V15.3498Z",
|
|
691
|
+
fill: "#0A66C2"
|
|
692
|
+
}
|
|
693
|
+
)
|
|
694
|
+
}
|
|
695
|
+
), mo = ({
|
|
696
|
+
size: e = "20",
|
|
697
|
+
fill: t = "none",
|
|
698
|
+
className: n
|
|
699
|
+
}) => /* @__PURE__ */ p(
|
|
700
|
+
"svg",
|
|
701
|
+
{
|
|
702
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
703
|
+
width: e,
|
|
704
|
+
height: `${Number(e) * 18 / 20}`,
|
|
705
|
+
viewBox: "0 0 20 18",
|
|
706
|
+
fill: t,
|
|
707
|
+
className: n,
|
|
708
|
+
children: /* @__PURE__ */ p(
|
|
709
|
+
"path",
|
|
710
|
+
{
|
|
711
|
+
fillRule: "evenodd",
|
|
712
|
+
clipRule: "evenodd",
|
|
713
|
+
d: "M7.61259 0.350098H12.3905C13.4775 0.35009 14.3482 0.350084 15.052 0.407584C15.7746 0.466628 16.4002 0.590759 16.9761 0.884167C17.898 1.35395 18.6476 2.10355 19.1174 3.02555C19.4108 3.60139 19.535 4.22695 19.594 4.94962C19.6515 5.65339 19.6515 6.52407 19.6515 7.61115V12.3891C19.6515 13.4761 19.6515 14.3468 19.594 15.0506C19.535 15.7732 19.4108 16.3988 19.1174 16.9747C18.6476 17.8966 17.898 18.6462 16.9761 19.116C16.4002 19.4094 15.7746 19.5336 15.052 19.5926C14.3482 19.6501 13.4775 19.6501 12.3905 19.6501H7.6125C6.52547 19.6501 5.65482 19.6501 4.95106 19.5926C4.2284 19.5336 3.60284 19.4094 3.027 19.116C2.10501 18.6462 1.35541 17.8966 0.885629 16.9747C0.592223 16.3988 0.468093 15.7732 0.409049 15.0506C0.351549 14.3468 0.351555 13.4761 0.351562 12.3891V7.61112C0.351555 6.52405 0.351549 5.65338 0.409049 4.94962C0.468093 4.22695 0.592223 3.60139 0.885629 3.02555C1.35541 2.10355 2.10501 1.35395 3.027 0.884167C3.60284 0.590759 4.2284 0.466628 4.95106 0.407584C5.65483 0.350084 6.52552 0.35009 7.61258 0.350098H7.61259ZM5.85129 7.14866C5.13227 7.14866 4.55176 6.56687 4.55176 5.84923C4.55176 5.13159 5.13227 4.5498 5.85129 4.5498C6.56736 4.5498 7.14787 5.13159 7.14787 5.84923C7.14787 6.56391 6.56736 7.14866 5.85129 7.14866ZM6.97107 15.3498H4.73151V8.13209H6.97107V15.3498ZM13.1151 15.3498H15.3517V11.3895C15.3517 9.44628 14.9333 7.95194 12.6672 7.95194C11.5798 7.95194 10.849 8.55145 10.5514 9.11847H10.5219V8.13209H8.37668V15.3498H10.6103V11.7823C10.6103 10.8402 10.7871 9.92766 11.9511 9.92766C13.1004 9.92766 13.1151 11.0056 13.1151 11.8414V15.3498Z",
|
|
714
|
+
fill: "#00C73C"
|
|
715
|
+
}
|
|
716
|
+
)
|
|
717
|
+
}
|
|
718
|
+
), go = ({
|
|
719
|
+
size: e = "22",
|
|
720
|
+
fill: t = "none",
|
|
721
|
+
className: n
|
|
722
|
+
}) => /* @__PURE__ */ p(
|
|
723
|
+
"svg",
|
|
724
|
+
{
|
|
725
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
726
|
+
width: e,
|
|
727
|
+
height: e,
|
|
728
|
+
viewBox: "0 0 22 16",
|
|
729
|
+
fill: t,
|
|
730
|
+
className: n,
|
|
731
|
+
children: /* @__PURE__ */ p(
|
|
732
|
+
"path",
|
|
733
|
+
{
|
|
734
|
+
fillRule: "evenodd",
|
|
735
|
+
clipRule: "evenodd",
|
|
736
|
+
d: "M19.3192 0.992222C20.2351 1.23717 20.9593 1.96137 21.2043 2.87727C21.6516 4.53867 21.6516 7.99992 21.6516 7.99992C21.6516 7.99992 21.6516 11.4612 21.2043 13.1226C20.9593 14.0385 20.2351 14.7627 19.3192 15.0076C17.6578 15.4549 11.0016 15.4549 11.0016 15.4549C11.0016 15.4549 4.34531 15.4549 2.68391 15.0076C1.76801 14.7627 1.04381 14.0385 0.798863 13.1226C0.351562 11.4612 0.351562 7.99992 0.351562 7.99992C0.351562 7.99992 0.351562 4.53867 0.798863 2.87727C1.04381 1.96137 1.76801 1.23717 2.68391 0.992222C4.34531 0.544922 11.0016 0.544922 11.0016 0.544922C11.0016 0.544922 17.6578 0.544922 19.3192 0.992222ZM8.87207 10.329C8.87207 10.7138 9.2886 10.9544 9.62193 10.7621L13.6594 8.43278C13.9929 8.24037 13.9929 7.75901 13.6594 7.5666L9.62193 5.2373C9.2886 5.04499 8.87207 5.28556 8.87207 5.67039V10.329Z",
|
|
737
|
+
fill: "#FF0000"
|
|
738
|
+
}
|
|
739
|
+
)
|
|
740
|
+
}
|
|
741
|
+
), ni = {
|
|
742
|
+
Apple: io,
|
|
743
|
+
FacebookRound: lo,
|
|
744
|
+
Google: co,
|
|
745
|
+
GooglePlaystore: ao,
|
|
746
|
+
GoogleRound: fo,
|
|
747
|
+
KakaoMessage: uo,
|
|
748
|
+
KakaoRound: po,
|
|
749
|
+
LinkedIn: ho,
|
|
750
|
+
NaverBlog: mo,
|
|
751
|
+
YouTube: go,
|
|
752
|
+
Boottent: so
|
|
753
|
+
}, Co = ["top", "right", "bottom", "left"], Q = Math.min, k = Math.max, xe = Math.round, ge = Math.floor, ee = (e) => ({
|
|
754
|
+
x: e,
|
|
755
|
+
y: e
|
|
756
|
+
}), wo = {
|
|
757
|
+
left: "right",
|
|
758
|
+
right: "left",
|
|
759
|
+
bottom: "top",
|
|
760
|
+
top: "bottom"
|
|
761
|
+
}, vo = {
|
|
762
|
+
start: "end",
|
|
763
|
+
end: "start"
|
|
764
|
+
};
|
|
765
|
+
function ke(e, t, n) {
|
|
766
|
+
return k(e, Q(t, n));
|
|
767
|
+
}
|
|
768
|
+
function G(e, t) {
|
|
769
|
+
return typeof e == "function" ? e(t) : e;
|
|
770
|
+
}
|
|
771
|
+
function X(e) {
|
|
772
|
+
return e.split("-")[0];
|
|
773
|
+
}
|
|
774
|
+
function ce(e) {
|
|
775
|
+
return e.split("-")[1];
|
|
776
|
+
}
|
|
777
|
+
function Je(e) {
|
|
778
|
+
return e === "x" ? "y" : "x";
|
|
779
|
+
}
|
|
780
|
+
function Qe(e) {
|
|
781
|
+
return e === "y" ? "height" : "width";
|
|
782
|
+
}
|
|
783
|
+
function te(e) {
|
|
784
|
+
return ["top", "bottom"].includes(X(e)) ? "y" : "x";
|
|
785
|
+
}
|
|
786
|
+
function et(e) {
|
|
787
|
+
return Je(te(e));
|
|
788
|
+
}
|
|
789
|
+
function xo(e, t, n) {
|
|
790
|
+
n === void 0 && (n = !1);
|
|
791
|
+
const o = ce(e), r = et(e), i = Qe(r);
|
|
792
|
+
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
793
|
+
return t.reference[i] > t.floating[i] && (s = ye(s)), [s, ye(s)];
|
|
794
|
+
}
|
|
795
|
+
function yo(e) {
|
|
796
|
+
const t = ye(e);
|
|
797
|
+
return [Ie(e), t, Ie(t)];
|
|
798
|
+
}
|
|
799
|
+
function Ie(e) {
|
|
800
|
+
return e.replace(/start|end/g, (t) => vo[t]);
|
|
801
|
+
}
|
|
802
|
+
function bo(e, t, n) {
|
|
803
|
+
const o = ["left", "right"], r = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
|
|
804
|
+
switch (e) {
|
|
805
|
+
case "top":
|
|
806
|
+
case "bottom":
|
|
807
|
+
return n ? t ? r : o : t ? o : r;
|
|
808
|
+
case "left":
|
|
809
|
+
case "right":
|
|
810
|
+
return t ? i : s;
|
|
811
|
+
default:
|
|
812
|
+
return [];
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
function Ao(e, t, n, o) {
|
|
816
|
+
const r = ce(e);
|
|
817
|
+
let i = bo(X(e), n === "start", o);
|
|
818
|
+
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Ie)))), i;
|
|
819
|
+
}
|
|
820
|
+
function ye(e) {
|
|
821
|
+
return e.replace(/left|right|bottom|top/g, (t) => wo[t]);
|
|
822
|
+
}
|
|
823
|
+
function Ro(e) {
|
|
824
|
+
return {
|
|
825
|
+
top: 0,
|
|
826
|
+
right: 0,
|
|
827
|
+
bottom: 0,
|
|
828
|
+
left: 0,
|
|
829
|
+
...e
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
function Zt(e) {
|
|
833
|
+
return typeof e != "number" ? Ro(e) : {
|
|
834
|
+
top: e,
|
|
835
|
+
right: e,
|
|
836
|
+
bottom: e,
|
|
837
|
+
left: e
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
function be(e) {
|
|
841
|
+
const {
|
|
842
|
+
x: t,
|
|
843
|
+
y: n,
|
|
844
|
+
width: o,
|
|
845
|
+
height: r
|
|
846
|
+
} = e;
|
|
847
|
+
return {
|
|
848
|
+
width: o,
|
|
849
|
+
height: r,
|
|
850
|
+
top: n,
|
|
851
|
+
left: t,
|
|
852
|
+
right: t + o,
|
|
853
|
+
bottom: n + r,
|
|
854
|
+
x: t,
|
|
855
|
+
y: n
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
function ht(e, t, n) {
|
|
859
|
+
let {
|
|
860
|
+
reference: o,
|
|
861
|
+
floating: r
|
|
862
|
+
} = e;
|
|
863
|
+
const i = te(t), s = et(t), l = Qe(s), c = X(t), f = i === "y", a = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, h = o[l] / 2 - r[l] / 2;
|
|
864
|
+
let u;
|
|
865
|
+
switch (c) {
|
|
866
|
+
case "top":
|
|
867
|
+
u = {
|
|
868
|
+
x: a,
|
|
869
|
+
y: o.y - r.height
|
|
870
|
+
};
|
|
871
|
+
break;
|
|
872
|
+
case "bottom":
|
|
873
|
+
u = {
|
|
874
|
+
x: a,
|
|
875
|
+
y: o.y + o.height
|
|
876
|
+
};
|
|
877
|
+
break;
|
|
878
|
+
case "right":
|
|
879
|
+
u = {
|
|
880
|
+
x: o.x + o.width,
|
|
881
|
+
y: d
|
|
882
|
+
};
|
|
883
|
+
break;
|
|
884
|
+
case "left":
|
|
885
|
+
u = {
|
|
886
|
+
x: o.x - r.width,
|
|
887
|
+
y: d
|
|
888
|
+
};
|
|
889
|
+
break;
|
|
890
|
+
default:
|
|
891
|
+
u = {
|
|
892
|
+
x: o.x,
|
|
893
|
+
y: o.y
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
switch (ce(t)) {
|
|
897
|
+
case "start":
|
|
898
|
+
u[s] -= h * (n && f ? -1 : 1);
|
|
899
|
+
break;
|
|
900
|
+
case "end":
|
|
901
|
+
u[s] += h * (n && f ? -1 : 1);
|
|
902
|
+
break;
|
|
903
|
+
}
|
|
904
|
+
return u;
|
|
905
|
+
}
|
|
906
|
+
const Po = async (e, t, n) => {
|
|
907
|
+
const {
|
|
908
|
+
placement: o = "bottom",
|
|
909
|
+
strategy: r = "absolute",
|
|
910
|
+
middleware: i = [],
|
|
911
|
+
platform: s
|
|
912
|
+
} = n, l = i.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
913
|
+
let f = await s.getElementRects({
|
|
914
|
+
reference: e,
|
|
915
|
+
floating: t,
|
|
916
|
+
strategy: r
|
|
917
|
+
}), {
|
|
918
|
+
x: a,
|
|
919
|
+
y: d
|
|
920
|
+
} = ht(f, o, c), h = o, u = {}, g = 0;
|
|
921
|
+
for (let C = 0; C < l.length; C++) {
|
|
922
|
+
const {
|
|
923
|
+
name: v,
|
|
924
|
+
fn: x
|
|
925
|
+
} = l[C], {
|
|
926
|
+
x: w,
|
|
927
|
+
y,
|
|
928
|
+
data: b,
|
|
929
|
+
reset: A
|
|
930
|
+
} = await x({
|
|
931
|
+
x: a,
|
|
932
|
+
y: d,
|
|
933
|
+
initialPlacement: o,
|
|
934
|
+
placement: h,
|
|
935
|
+
strategy: r,
|
|
936
|
+
middlewareData: u,
|
|
937
|
+
rects: f,
|
|
938
|
+
platform: s,
|
|
939
|
+
elements: {
|
|
940
|
+
reference: e,
|
|
941
|
+
floating: t
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
a = w ?? a, d = y ?? d, u = {
|
|
945
|
+
...u,
|
|
946
|
+
[v]: {
|
|
947
|
+
...u[v],
|
|
948
|
+
...b
|
|
949
|
+
}
|
|
950
|
+
}, A && g <= 50 && (g++, typeof A == "object" && (A.placement && (h = A.placement), A.rects && (f = A.rects === !0 ? await s.getElementRects({
|
|
951
|
+
reference: e,
|
|
952
|
+
floating: t,
|
|
953
|
+
strategy: r
|
|
954
|
+
}) : A.rects), {
|
|
955
|
+
x: a,
|
|
956
|
+
y: d
|
|
957
|
+
} = ht(f, h, c)), C = -1);
|
|
958
|
+
}
|
|
959
|
+
return {
|
|
960
|
+
x: a,
|
|
961
|
+
y: d,
|
|
962
|
+
placement: h,
|
|
963
|
+
strategy: r,
|
|
964
|
+
middlewareData: u
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
async function de(e, t) {
|
|
968
|
+
var n;
|
|
969
|
+
t === void 0 && (t = {});
|
|
970
|
+
const {
|
|
971
|
+
x: o,
|
|
972
|
+
y: r,
|
|
973
|
+
platform: i,
|
|
974
|
+
rects: s,
|
|
975
|
+
elements: l,
|
|
976
|
+
strategy: c
|
|
977
|
+
} = e, {
|
|
978
|
+
boundary: f = "clippingAncestors",
|
|
979
|
+
rootBoundary: a = "viewport",
|
|
980
|
+
elementContext: d = "floating",
|
|
981
|
+
altBoundary: h = !1,
|
|
982
|
+
padding: u = 0
|
|
983
|
+
} = G(t, e), g = Zt(u), v = l[h ? d === "floating" ? "reference" : "floating" : d], x = be(await i.getClippingRect({
|
|
984
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
985
|
+
boundary: f,
|
|
986
|
+
rootBoundary: a,
|
|
987
|
+
strategy: c
|
|
988
|
+
})), w = d === "floating" ? {
|
|
989
|
+
x: o,
|
|
990
|
+
y: r,
|
|
991
|
+
width: s.floating.width,
|
|
992
|
+
height: s.floating.height
|
|
993
|
+
} : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), b = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
|
|
994
|
+
x: 1,
|
|
995
|
+
y: 1
|
|
996
|
+
} : {
|
|
997
|
+
x: 1,
|
|
998
|
+
y: 1
|
|
999
|
+
}, A = be(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1000
|
+
elements: l,
|
|
1001
|
+
rect: w,
|
|
1002
|
+
offsetParent: y,
|
|
1003
|
+
strategy: c
|
|
1004
|
+
}) : w);
|
|
1005
|
+
return {
|
|
1006
|
+
top: (x.top - A.top + g.top) / b.y,
|
|
1007
|
+
bottom: (A.bottom - x.bottom + g.bottom) / b.y,
|
|
1008
|
+
left: (x.left - A.left + g.left) / b.x,
|
|
1009
|
+
right: (A.right - x.right + g.right) / b.x
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
const To = (e) => ({
|
|
1013
|
+
name: "arrow",
|
|
1014
|
+
options: e,
|
|
1015
|
+
async fn(t) {
|
|
1016
|
+
const {
|
|
1017
|
+
x: n,
|
|
1018
|
+
y: o,
|
|
1019
|
+
placement: r,
|
|
1020
|
+
rects: i,
|
|
1021
|
+
platform: s,
|
|
1022
|
+
elements: l,
|
|
1023
|
+
middlewareData: c
|
|
1024
|
+
} = t, {
|
|
1025
|
+
element: f,
|
|
1026
|
+
padding: a = 0
|
|
1027
|
+
} = G(e, t) || {};
|
|
1028
|
+
if (f == null)
|
|
1029
|
+
return {};
|
|
1030
|
+
const d = Zt(a), h = {
|
|
1031
|
+
x: n,
|
|
1032
|
+
y: o
|
|
1033
|
+
}, u = et(r), g = Qe(u), C = await s.getDimensions(f), v = u === "y", x = v ? "top" : "left", w = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", b = i.reference[g] + i.reference[u] - h[u] - i.floating[g], A = h[u] - i.reference[u], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
1034
|
+
let T = R ? R[y] : 0;
|
|
1035
|
+
(!T || !await (s.isElement == null ? void 0 : s.isElement(R))) && (T = l.floating[y] || i.floating[g]);
|
|
1036
|
+
const O = b / 2 - A / 2, L = T / 2 - C[g] / 2 - 1, S = Q(d[x], L), D = Q(d[w], L), V = S, M = T - C[g] - D, E = T / 2 - C[g] / 2 + O, $ = ke(V, E, M), H = !c.arrow && ce(r) != null && E !== $ && i.reference[g] / 2 - (E < V ? S : D) - C[g] / 2 < 0, N = H ? E < V ? E - V : E - M : 0;
|
|
1037
|
+
return {
|
|
1038
|
+
[u]: h[u] + N,
|
|
1039
|
+
data: {
|
|
1040
|
+
[u]: $,
|
|
1041
|
+
centerOffset: E - $ - N,
|
|
1042
|
+
...H && {
|
|
1043
|
+
alignmentOffset: N
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
reset: H
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
}), Eo = function(e) {
|
|
1050
|
+
return e === void 0 && (e = {}), {
|
|
1051
|
+
name: "flip",
|
|
1052
|
+
options: e,
|
|
1053
|
+
async fn(t) {
|
|
1054
|
+
var n, o;
|
|
1055
|
+
const {
|
|
1056
|
+
placement: r,
|
|
1057
|
+
middlewareData: i,
|
|
1058
|
+
rects: s,
|
|
1059
|
+
initialPlacement: l,
|
|
1060
|
+
platform: c,
|
|
1061
|
+
elements: f
|
|
1062
|
+
} = t, {
|
|
1063
|
+
mainAxis: a = !0,
|
|
1064
|
+
crossAxis: d = !0,
|
|
1065
|
+
fallbackPlacements: h,
|
|
1066
|
+
fallbackStrategy: u = "bestFit",
|
|
1067
|
+
fallbackAxisSideDirection: g = "none",
|
|
1068
|
+
flipAlignment: C = !0,
|
|
1069
|
+
...v
|
|
1070
|
+
} = G(e, t);
|
|
1071
|
+
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
1072
|
+
return {};
|
|
1073
|
+
const x = X(r), w = te(l), y = X(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(f.floating)), A = h || (y || !C ? [ye(l)] : yo(l)), R = g !== "none";
|
|
1074
|
+
!h && R && A.push(...Ao(l, C, g, b));
|
|
1075
|
+
const T = [l, ...A], O = await de(t, v), L = [];
|
|
1076
|
+
let S = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
1077
|
+
if (a && L.push(O[x]), d) {
|
|
1078
|
+
const E = xo(r, s, b);
|
|
1079
|
+
L.push(O[E[0]], O[E[1]]);
|
|
1080
|
+
}
|
|
1081
|
+
if (S = [...S, {
|
|
1082
|
+
placement: r,
|
|
1083
|
+
overflows: L
|
|
1084
|
+
}], !L.every((E) => E <= 0)) {
|
|
1085
|
+
var D, V;
|
|
1086
|
+
const E = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, $ = T[E];
|
|
1087
|
+
if ($)
|
|
1088
|
+
return {
|
|
1089
|
+
data: {
|
|
1090
|
+
index: E,
|
|
1091
|
+
overflows: S
|
|
1092
|
+
},
|
|
1093
|
+
reset: {
|
|
1094
|
+
placement: $
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
let H = (V = S.filter((N) => N.overflows[0] <= 0).sort((N, P) => N.overflows[1] - P.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
1098
|
+
if (!H)
|
|
1099
|
+
switch (u) {
|
|
1100
|
+
case "bestFit": {
|
|
1101
|
+
var M;
|
|
1102
|
+
const N = (M = S.filter((P) => {
|
|
1103
|
+
if (R) {
|
|
1104
|
+
const _ = te(P.placement);
|
|
1105
|
+
return _ === w || // Create a bias to the `y` side axis due to horizontal
|
|
1106
|
+
// reading directions favoring greater width.
|
|
1107
|
+
_ === "y";
|
|
1108
|
+
}
|
|
1109
|
+
return !0;
|
|
1110
|
+
}).map((P) => [P.placement, P.overflows.filter((_) => _ > 0).reduce((_, z) => _ + z, 0)]).sort((P, _) => P[1] - _[1])[0]) == null ? void 0 : M[0];
|
|
1111
|
+
N && (H = N);
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
case "initialPlacement":
|
|
1115
|
+
H = l;
|
|
1116
|
+
break;
|
|
1117
|
+
}
|
|
1118
|
+
if (r !== H)
|
|
1119
|
+
return {
|
|
1120
|
+
reset: {
|
|
1121
|
+
placement: H
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
return {};
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
function mt(e, t) {
|
|
1130
|
+
return {
|
|
1131
|
+
top: e.top - t.height,
|
|
1132
|
+
right: e.right - t.width,
|
|
1133
|
+
bottom: e.bottom - t.height,
|
|
1134
|
+
left: e.left - t.width
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
function gt(e) {
|
|
1138
|
+
return Co.some((t) => e[t] >= 0);
|
|
1139
|
+
}
|
|
1140
|
+
const Oo = function(e) {
|
|
1141
|
+
return e === void 0 && (e = {}), {
|
|
1142
|
+
name: "hide",
|
|
1143
|
+
options: e,
|
|
1144
|
+
async fn(t) {
|
|
1145
|
+
const {
|
|
1146
|
+
rects: n
|
|
1147
|
+
} = t, {
|
|
1148
|
+
strategy: o = "referenceHidden",
|
|
1149
|
+
...r
|
|
1150
|
+
} = G(e, t);
|
|
1151
|
+
switch (o) {
|
|
1152
|
+
case "referenceHidden": {
|
|
1153
|
+
const i = await de(t, {
|
|
1154
|
+
...r,
|
|
1155
|
+
elementContext: "reference"
|
|
1156
|
+
}), s = mt(i, n.reference);
|
|
1157
|
+
return {
|
|
1158
|
+
data: {
|
|
1159
|
+
referenceHiddenOffsets: s,
|
|
1160
|
+
referenceHidden: gt(s)
|
|
1161
|
+
}
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
case "escaped": {
|
|
1165
|
+
const i = await de(t, {
|
|
1166
|
+
...r,
|
|
1167
|
+
altBoundary: !0
|
|
1168
|
+
}), s = mt(i, n.floating);
|
|
1169
|
+
return {
|
|
1170
|
+
data: {
|
|
1171
|
+
escapedOffsets: s,
|
|
1172
|
+
escaped: gt(s)
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
default:
|
|
1177
|
+
return {};
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
async function So(e, t) {
|
|
1183
|
+
const {
|
|
1184
|
+
placement: n,
|
|
1185
|
+
platform: o,
|
|
1186
|
+
elements: r
|
|
1187
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = X(n), l = ce(n), c = te(n) === "y", f = ["left", "top"].includes(s) ? -1 : 1, a = i && c ? -1 : 1, d = G(t, e);
|
|
1188
|
+
let {
|
|
1189
|
+
mainAxis: h,
|
|
1190
|
+
crossAxis: u,
|
|
1191
|
+
alignmentAxis: g
|
|
1192
|
+
} = typeof d == "number" ? {
|
|
1193
|
+
mainAxis: d,
|
|
1194
|
+
crossAxis: 0,
|
|
1195
|
+
alignmentAxis: null
|
|
1196
|
+
} : {
|
|
1197
|
+
mainAxis: d.mainAxis || 0,
|
|
1198
|
+
crossAxis: d.crossAxis || 0,
|
|
1199
|
+
alignmentAxis: d.alignmentAxis
|
|
1200
|
+
};
|
|
1201
|
+
return l && typeof g == "number" && (u = l === "end" ? g * -1 : g), c ? {
|
|
1202
|
+
x: u * a,
|
|
1203
|
+
y: h * f
|
|
1204
|
+
} : {
|
|
1205
|
+
x: h * f,
|
|
1206
|
+
y: u * a
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
const Mo = function(e) {
|
|
1210
|
+
return e === void 0 && (e = 0), {
|
|
1211
|
+
name: "offset",
|
|
1212
|
+
options: e,
|
|
1213
|
+
async fn(t) {
|
|
1214
|
+
var n, o;
|
|
1215
|
+
const {
|
|
1216
|
+
x: r,
|
|
1217
|
+
y: i,
|
|
1218
|
+
placement: s,
|
|
1219
|
+
middlewareData: l
|
|
1220
|
+
} = t, c = await So(t, e);
|
|
1221
|
+
return s === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
1222
|
+
x: r + c.x,
|
|
1223
|
+
y: i + c.y,
|
|
1224
|
+
data: {
|
|
1225
|
+
...c,
|
|
1226
|
+
placement: s
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
}, Ho = function(e) {
|
|
1232
|
+
return e === void 0 && (e = {}), {
|
|
1233
|
+
name: "shift",
|
|
1234
|
+
options: e,
|
|
1235
|
+
async fn(t) {
|
|
1236
|
+
const {
|
|
1237
|
+
x: n,
|
|
1238
|
+
y: o,
|
|
1239
|
+
placement: r
|
|
1240
|
+
} = t, {
|
|
1241
|
+
mainAxis: i = !0,
|
|
1242
|
+
crossAxis: s = !1,
|
|
1243
|
+
limiter: l = {
|
|
1244
|
+
fn: (v) => {
|
|
1245
|
+
let {
|
|
1246
|
+
x,
|
|
1247
|
+
y: w
|
|
1248
|
+
} = v;
|
|
1249
|
+
return {
|
|
1250
|
+
x,
|
|
1251
|
+
y: w
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
...c
|
|
1256
|
+
} = G(e, t), f = {
|
|
1257
|
+
x: n,
|
|
1258
|
+
y: o
|
|
1259
|
+
}, a = await de(t, c), d = te(X(r)), h = Je(d);
|
|
1260
|
+
let u = f[h], g = f[d];
|
|
1261
|
+
if (i) {
|
|
1262
|
+
const v = h === "y" ? "top" : "left", x = h === "y" ? "bottom" : "right", w = u + a[v], y = u - a[x];
|
|
1263
|
+
u = ke(w, u, y);
|
|
1264
|
+
}
|
|
1265
|
+
if (s) {
|
|
1266
|
+
const v = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", w = g + a[v], y = g - a[x];
|
|
1267
|
+
g = ke(w, g, y);
|
|
1268
|
+
}
|
|
1269
|
+
const C = l.fn({
|
|
1270
|
+
...t,
|
|
1271
|
+
[h]: u,
|
|
1272
|
+
[d]: g
|
|
1273
|
+
});
|
|
1274
|
+
return {
|
|
1275
|
+
...C,
|
|
1276
|
+
data: {
|
|
1277
|
+
x: C.x - n,
|
|
1278
|
+
y: C.y - o,
|
|
1279
|
+
enabled: {
|
|
1280
|
+
[h]: i,
|
|
1281
|
+
[d]: s
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
}, Lo = function(e) {
|
|
1288
|
+
return e === void 0 && (e = {}), {
|
|
1289
|
+
options: e,
|
|
1290
|
+
fn(t) {
|
|
1291
|
+
const {
|
|
1292
|
+
x: n,
|
|
1293
|
+
y: o,
|
|
1294
|
+
placement: r,
|
|
1295
|
+
rects: i,
|
|
1296
|
+
middlewareData: s
|
|
1297
|
+
} = t, {
|
|
1298
|
+
offset: l = 0,
|
|
1299
|
+
mainAxis: c = !0,
|
|
1300
|
+
crossAxis: f = !0
|
|
1301
|
+
} = G(e, t), a = {
|
|
1302
|
+
x: n,
|
|
1303
|
+
y: o
|
|
1304
|
+
}, d = te(r), h = Je(d);
|
|
1305
|
+
let u = a[h], g = a[d];
|
|
1306
|
+
const C = G(l, t), v = typeof C == "number" ? {
|
|
1307
|
+
mainAxis: C,
|
|
1308
|
+
crossAxis: 0
|
|
1309
|
+
} : {
|
|
1310
|
+
mainAxis: 0,
|
|
1311
|
+
crossAxis: 0,
|
|
1312
|
+
...C
|
|
1313
|
+
};
|
|
1314
|
+
if (c) {
|
|
1315
|
+
const y = h === "y" ? "height" : "width", b = i.reference[h] - i.floating[y] + v.mainAxis, A = i.reference[h] + i.reference[y] - v.mainAxis;
|
|
1316
|
+
u < b ? u = b : u > A && (u = A);
|
|
1317
|
+
}
|
|
1318
|
+
if (f) {
|
|
1319
|
+
var x, w;
|
|
1320
|
+
const y = h === "y" ? "width" : "height", b = ["top", "left"].includes(X(r)), A = i.reference[d] - i.floating[y] + (b && ((x = s.offset) == null ? void 0 : x[d]) || 0) + (b ? 0 : v.crossAxis), R = i.reference[d] + i.reference[y] + (b ? 0 : ((w = s.offset) == null ? void 0 : w[d]) || 0) - (b ? v.crossAxis : 0);
|
|
1321
|
+
g < A ? g = A : g > R && (g = R);
|
|
1322
|
+
}
|
|
1323
|
+
return {
|
|
1324
|
+
[h]: u,
|
|
1325
|
+
[d]: g
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
}, No = function(e) {
|
|
1330
|
+
return e === void 0 && (e = {}), {
|
|
1331
|
+
name: "size",
|
|
1332
|
+
options: e,
|
|
1333
|
+
async fn(t) {
|
|
1334
|
+
var n, o;
|
|
1335
|
+
const {
|
|
1336
|
+
placement: r,
|
|
1337
|
+
rects: i,
|
|
1338
|
+
platform: s,
|
|
1339
|
+
elements: l
|
|
1340
|
+
} = t, {
|
|
1341
|
+
apply: c = () => {
|
|
1342
|
+
},
|
|
1343
|
+
...f
|
|
1344
|
+
} = G(e, t), a = await de(t, f), d = X(r), h = ce(r), u = te(r) === "y", {
|
|
1345
|
+
width: g,
|
|
1346
|
+
height: C
|
|
1347
|
+
} = i.floating;
|
|
1348
|
+
let v, x;
|
|
1349
|
+
d === "top" || d === "bottom" ? (v = d, x = h === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (x = d, v = h === "end" ? "top" : "bottom");
|
|
1350
|
+
const w = C - a.top - a.bottom, y = g - a.left - a.right, b = Q(C - a[v], w), A = Q(g - a[x], y), R = !t.middlewareData.shift;
|
|
1351
|
+
let T = b, O = A;
|
|
1352
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = y), (o = t.middlewareData.shift) != null && o.enabled.y && (T = w), R && !h) {
|
|
1353
|
+
const S = k(a.left, 0), D = k(a.right, 0), V = k(a.top, 0), M = k(a.bottom, 0);
|
|
1354
|
+
u ? O = g - 2 * (S !== 0 || D !== 0 ? S + D : k(a.left, a.right)) : T = C - 2 * (V !== 0 || M !== 0 ? V + M : k(a.top, a.bottom));
|
|
1355
|
+
}
|
|
1356
|
+
await c({
|
|
1357
|
+
...t,
|
|
1358
|
+
availableWidth: O,
|
|
1359
|
+
availableHeight: T
|
|
1360
|
+
});
|
|
1361
|
+
const L = await s.getDimensions(l.floating);
|
|
1362
|
+
return g !== L.width || C !== L.height ? {
|
|
1363
|
+
reset: {
|
|
1364
|
+
rects: !0
|
|
1365
|
+
}
|
|
1366
|
+
} : {};
|
|
1367
|
+
}
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
function Ee() {
|
|
1371
|
+
return typeof window < "u";
|
|
1372
|
+
}
|
|
1373
|
+
function ae(e) {
|
|
1374
|
+
return Wt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1375
|
+
}
|
|
1376
|
+
function I(e) {
|
|
1377
|
+
var t;
|
|
1378
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1379
|
+
}
|
|
1380
|
+
function j(e) {
|
|
1381
|
+
var t;
|
|
1382
|
+
return (t = (Wt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1383
|
+
}
|
|
1384
|
+
function Wt(e) {
|
|
1385
|
+
return Ee() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
1386
|
+
}
|
|
1387
|
+
function Z(e) {
|
|
1388
|
+
return Ee() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
1389
|
+
}
|
|
1390
|
+
function Y(e) {
|
|
1391
|
+
return Ee() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
1392
|
+
}
|
|
1393
|
+
function Ct(e) {
|
|
1394
|
+
return !Ee() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
1395
|
+
}
|
|
1396
|
+
function pe(e) {
|
|
1397
|
+
const {
|
|
1398
|
+
overflow: t,
|
|
1399
|
+
overflowX: n,
|
|
1400
|
+
overflowY: o,
|
|
1401
|
+
display: r
|
|
1402
|
+
} = W(e);
|
|
1403
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(r);
|
|
1404
|
+
}
|
|
1405
|
+
function _o(e) {
|
|
1406
|
+
return ["table", "td", "th"].includes(ae(e));
|
|
1407
|
+
}
|
|
1408
|
+
function Oe(e) {
|
|
1409
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
1410
|
+
try {
|
|
1411
|
+
return e.matches(t);
|
|
1412
|
+
} catch {
|
|
1413
|
+
return !1;
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
function tt(e) {
|
|
1418
|
+
const t = nt(), n = Z(e) ? W(e) : e;
|
|
1419
|
+
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));
|
|
1420
|
+
}
|
|
1421
|
+
function Do(e) {
|
|
1422
|
+
let t = ne(e);
|
|
1423
|
+
for (; Y(t) && !ie(t); ) {
|
|
1424
|
+
if (tt(t))
|
|
1425
|
+
return t;
|
|
1426
|
+
if (Oe(t))
|
|
1427
|
+
return null;
|
|
1428
|
+
t = ne(t);
|
|
1429
|
+
}
|
|
1430
|
+
return null;
|
|
1431
|
+
}
|
|
1432
|
+
function nt() {
|
|
1433
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1434
|
+
}
|
|
1435
|
+
function ie(e) {
|
|
1436
|
+
return ["html", "body", "#document"].includes(ae(e));
|
|
1437
|
+
}
|
|
1438
|
+
function W(e) {
|
|
1439
|
+
return I(e).getComputedStyle(e);
|
|
1440
|
+
}
|
|
1441
|
+
function Se(e) {
|
|
1442
|
+
return Z(e) ? {
|
|
1443
|
+
scrollLeft: e.scrollLeft,
|
|
1444
|
+
scrollTop: e.scrollTop
|
|
1445
|
+
} : {
|
|
1446
|
+
scrollLeft: e.scrollX,
|
|
1447
|
+
scrollTop: e.scrollY
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
function ne(e) {
|
|
1451
|
+
if (ae(e) === "html")
|
|
1452
|
+
return e;
|
|
1453
|
+
const t = (
|
|
1454
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1455
|
+
e.assignedSlot || // DOM Element detected.
|
|
1456
|
+
e.parentNode || // ShadowRoot detected.
|
|
1457
|
+
Ct(e) && e.host || // Fallback.
|
|
1458
|
+
j(e)
|
|
1459
|
+
);
|
|
1460
|
+
return Ct(t) ? t.host : t;
|
|
1461
|
+
}
|
|
1462
|
+
function zt(e) {
|
|
1463
|
+
const t = ne(e);
|
|
1464
|
+
return ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && pe(t) ? t : zt(t);
|
|
1465
|
+
}
|
|
1466
|
+
function ue(e, t, n) {
|
|
1467
|
+
var o;
|
|
1468
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1469
|
+
const r = zt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = I(r);
|
|
1470
|
+
if (i) {
|
|
1471
|
+
const l = $e(s);
|
|
1472
|
+
return t.concat(s, s.visualViewport || [], pe(r) ? r : [], l && n ? ue(l) : []);
|
|
1473
|
+
}
|
|
1474
|
+
return t.concat(r, ue(r, [], n));
|
|
1475
|
+
}
|
|
1476
|
+
function $e(e) {
|
|
1477
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1478
|
+
}
|
|
1479
|
+
function Yt(e) {
|
|
1480
|
+
const t = W(e);
|
|
1481
|
+
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1482
|
+
const r = Y(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, l = xe(n) !== i || xe(o) !== s;
|
|
1483
|
+
return l && (n = i, o = s), {
|
|
1484
|
+
width: n,
|
|
1485
|
+
height: o,
|
|
1486
|
+
$: l
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
function ot(e) {
|
|
1490
|
+
return Z(e) ? e : e.contextElement;
|
|
1491
|
+
}
|
|
1492
|
+
function re(e) {
|
|
1493
|
+
const t = ot(e);
|
|
1494
|
+
if (!Y(t))
|
|
1495
|
+
return ee(1);
|
|
1496
|
+
const n = t.getBoundingClientRect(), {
|
|
1497
|
+
width: o,
|
|
1498
|
+
height: r,
|
|
1499
|
+
$: i
|
|
1500
|
+
} = Yt(t);
|
|
1501
|
+
let s = (i ? xe(n.width) : n.width) / o, l = (i ? xe(n.height) : n.height) / r;
|
|
1502
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
1503
|
+
x: s,
|
|
1504
|
+
y: l
|
|
1505
|
+
};
|
|
1506
|
+
}
|
|
1507
|
+
const Vo = /* @__PURE__ */ ee(0);
|
|
1508
|
+
function jt(e) {
|
|
1509
|
+
const t = I(e);
|
|
1510
|
+
return !nt() || !t.visualViewport ? Vo : {
|
|
1511
|
+
x: t.visualViewport.offsetLeft,
|
|
1512
|
+
y: t.visualViewport.offsetTop
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
function ko(e, t, n) {
|
|
1516
|
+
return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
|
|
1517
|
+
}
|
|
1518
|
+
function oe(e, t, n, o) {
|
|
1519
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1520
|
+
const r = e.getBoundingClientRect(), i = ot(e);
|
|
1521
|
+
let s = ee(1);
|
|
1522
|
+
t && (o ? Z(o) && (s = re(o)) : s = re(e));
|
|
1523
|
+
const l = ko(i, n, o) ? jt(i) : ee(0);
|
|
1524
|
+
let c = (r.left + l.x) / s.x, f = (r.top + l.y) / s.y, a = r.width / s.x, d = r.height / s.y;
|
|
1525
|
+
if (i) {
|
|
1526
|
+
const h = I(i), u = o && Z(o) ? I(o) : o;
|
|
1527
|
+
let g = h, C = $e(g);
|
|
1528
|
+
for (; C && o && u !== g; ) {
|
|
1529
|
+
const v = re(C), x = C.getBoundingClientRect(), w = W(C), y = x.left + (C.clientLeft + parseFloat(w.paddingLeft)) * v.x, b = x.top + (C.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
1530
|
+
c *= v.x, f *= v.y, a *= v.x, d *= v.y, c += y, f += b, g = I(C), C = $e(g);
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
return be({
|
|
1534
|
+
width: a,
|
|
1535
|
+
height: d,
|
|
1536
|
+
x: c,
|
|
1537
|
+
y: f
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
function Io(e) {
|
|
1541
|
+
let {
|
|
1542
|
+
elements: t,
|
|
1543
|
+
rect: n,
|
|
1544
|
+
offsetParent: o,
|
|
1545
|
+
strategy: r
|
|
1546
|
+
} = e;
|
|
1547
|
+
const i = r === "fixed", s = j(o), l = t ? Oe(t.floating) : !1;
|
|
1548
|
+
if (o === s || l && i)
|
|
1549
|
+
return n;
|
|
1550
|
+
let c = {
|
|
1551
|
+
scrollLeft: 0,
|
|
1552
|
+
scrollTop: 0
|
|
1553
|
+
}, f = ee(1);
|
|
1554
|
+
const a = ee(0), d = Y(o);
|
|
1555
|
+
if ((d || !d && !i) && ((ae(o) !== "body" || pe(s)) && (c = Se(o)), Y(o))) {
|
|
1556
|
+
const h = oe(o);
|
|
1557
|
+
f = re(o), a.x = h.x + o.clientLeft, a.y = h.y + o.clientTop;
|
|
1558
|
+
}
|
|
1559
|
+
return {
|
|
1560
|
+
width: n.width * f.x,
|
|
1561
|
+
height: n.height * f.y,
|
|
1562
|
+
x: n.x * f.x - c.scrollLeft * f.x + a.x,
|
|
1563
|
+
y: n.y * f.y - c.scrollTop * f.y + a.y
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
function $o(e) {
|
|
1567
|
+
return Array.from(e.getClientRects());
|
|
1568
|
+
}
|
|
1569
|
+
function Fe(e, t) {
|
|
1570
|
+
const n = Se(e).scrollLeft;
|
|
1571
|
+
return t ? t.left + n : oe(j(e)).left + n;
|
|
1572
|
+
}
|
|
1573
|
+
function Fo(e) {
|
|
1574
|
+
const t = j(e), n = Se(e), o = e.ownerDocument.body, r = k(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = k(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1575
|
+
let s = -n.scrollLeft + Fe(e);
|
|
1576
|
+
const l = -n.scrollTop;
|
|
1577
|
+
return W(o).direction === "rtl" && (s += k(t.clientWidth, o.clientWidth) - r), {
|
|
1578
|
+
width: r,
|
|
1579
|
+
height: i,
|
|
1580
|
+
x: s,
|
|
1581
|
+
y: l
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
function Bo(e, t) {
|
|
1585
|
+
const n = I(e), o = j(e), r = n.visualViewport;
|
|
1586
|
+
let i = o.clientWidth, s = o.clientHeight, l = 0, c = 0;
|
|
1587
|
+
if (r) {
|
|
1588
|
+
i = r.width, s = r.height;
|
|
1589
|
+
const f = nt();
|
|
1590
|
+
(!f || f && t === "fixed") && (l = r.offsetLeft, c = r.offsetTop);
|
|
1591
|
+
}
|
|
1592
|
+
return {
|
|
1593
|
+
width: i,
|
|
1594
|
+
height: s,
|
|
1595
|
+
x: l,
|
|
1596
|
+
y: c
|
|
1597
|
+
};
|
|
1598
|
+
}
|
|
1599
|
+
function Zo(e, t) {
|
|
1600
|
+
const n = oe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = Y(e) ? re(e) : ee(1), s = e.clientWidth * i.x, l = e.clientHeight * i.y, c = r * i.x, f = o * i.y;
|
|
1601
|
+
return {
|
|
1602
|
+
width: s,
|
|
1603
|
+
height: l,
|
|
1604
|
+
x: c,
|
|
1605
|
+
y: f
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1608
|
+
function wt(e, t, n) {
|
|
1609
|
+
let o;
|
|
1610
|
+
if (t === "viewport")
|
|
1611
|
+
o = Bo(e, n);
|
|
1612
|
+
else if (t === "document")
|
|
1613
|
+
o = Fo(j(e));
|
|
1614
|
+
else if (Z(t))
|
|
1615
|
+
o = Zo(t, n);
|
|
1616
|
+
else {
|
|
1617
|
+
const r = jt(e);
|
|
1618
|
+
o = {
|
|
1619
|
+
...t,
|
|
1620
|
+
x: t.x - r.x,
|
|
1621
|
+
y: t.y - r.y
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
return be(o);
|
|
1625
|
+
}
|
|
1626
|
+
function Gt(e, t) {
|
|
1627
|
+
const n = ne(e);
|
|
1628
|
+
return n === t || !Z(n) || ie(n) ? !1 : W(n).position === "fixed" || Gt(n, t);
|
|
1629
|
+
}
|
|
1630
|
+
function Wo(e, t) {
|
|
1631
|
+
const n = t.get(e);
|
|
1632
|
+
if (n)
|
|
1633
|
+
return n;
|
|
1634
|
+
let o = ue(e, [], !1).filter((l) => Z(l) && ae(l) !== "body"), r = null;
|
|
1635
|
+
const i = W(e).position === "fixed";
|
|
1636
|
+
let s = i ? ne(e) : e;
|
|
1637
|
+
for (; Z(s) && !ie(s); ) {
|
|
1638
|
+
const l = W(s), c = tt(s);
|
|
1639
|
+
!c && l.position === "fixed" && (r = null), (i ? !c && !r : !c && l.position === "static" && !!r && ["absolute", "fixed"].includes(r.position) || pe(s) && !c && Gt(e, s)) ? o = o.filter((a) => a !== s) : r = l, s = ne(s);
|
|
1640
|
+
}
|
|
1641
|
+
return t.set(e, o), o;
|
|
1642
|
+
}
|
|
1643
|
+
function zo(e) {
|
|
1644
|
+
let {
|
|
1645
|
+
element: t,
|
|
1646
|
+
boundary: n,
|
|
1647
|
+
rootBoundary: o,
|
|
1648
|
+
strategy: r
|
|
1649
|
+
} = e;
|
|
1650
|
+
const s = [...n === "clippingAncestors" ? Oe(t) ? [] : Wo(t, this._c) : [].concat(n), o], l = s[0], c = s.reduce((f, a) => {
|
|
1651
|
+
const d = wt(t, a, r);
|
|
1652
|
+
return f.top = k(d.top, f.top), f.right = Q(d.right, f.right), f.bottom = Q(d.bottom, f.bottom), f.left = k(d.left, f.left), f;
|
|
1653
|
+
}, wt(t, l, r));
|
|
1654
|
+
return {
|
|
1655
|
+
width: c.right - c.left,
|
|
1656
|
+
height: c.bottom - c.top,
|
|
1657
|
+
x: c.left,
|
|
1658
|
+
y: c.top
|
|
1659
|
+
};
|
|
1660
|
+
}
|
|
1661
|
+
function Yo(e) {
|
|
1662
|
+
const {
|
|
1663
|
+
width: t,
|
|
1664
|
+
height: n
|
|
1665
|
+
} = Yt(e);
|
|
1666
|
+
return {
|
|
1667
|
+
width: t,
|
|
1668
|
+
height: n
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
function jo(e, t, n) {
|
|
1672
|
+
const o = Y(t), r = j(t), i = n === "fixed", s = oe(e, !0, i, t);
|
|
1673
|
+
let l = {
|
|
1674
|
+
scrollLeft: 0,
|
|
1675
|
+
scrollTop: 0
|
|
1676
|
+
};
|
|
1677
|
+
const c = ee(0);
|
|
1678
|
+
if (o || !o && !i)
|
|
1679
|
+
if ((ae(t) !== "body" || pe(r)) && (l = Se(t)), o) {
|
|
1680
|
+
const u = oe(t, !0, i, t);
|
|
1681
|
+
c.x = u.x + t.clientLeft, c.y = u.y + t.clientTop;
|
|
1682
|
+
} else r && (c.x = Fe(r));
|
|
1683
|
+
let f = 0, a = 0;
|
|
1684
|
+
if (r && !o && !i) {
|
|
1685
|
+
const u = r.getBoundingClientRect();
|
|
1686
|
+
a = u.top + l.scrollTop, f = u.left + l.scrollLeft - // RTL <body> scrollbar.
|
|
1687
|
+
Fe(r, u);
|
|
1688
|
+
}
|
|
1689
|
+
const d = s.left + l.scrollLeft - c.x - f, h = s.top + l.scrollTop - c.y - a;
|
|
1690
|
+
return {
|
|
1691
|
+
x: d,
|
|
1692
|
+
y: h,
|
|
1693
|
+
width: s.width,
|
|
1694
|
+
height: s.height
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
function _e(e) {
|
|
1698
|
+
return W(e).position === "static";
|
|
1699
|
+
}
|
|
1700
|
+
function vt(e, t) {
|
|
1701
|
+
if (!Y(e) || W(e).position === "fixed")
|
|
1702
|
+
return null;
|
|
1703
|
+
if (t)
|
|
1704
|
+
return t(e);
|
|
1705
|
+
let n = e.offsetParent;
|
|
1706
|
+
return j(e) === n && (n = n.ownerDocument.body), n;
|
|
1707
|
+
}
|
|
1708
|
+
function Xt(e, t) {
|
|
1709
|
+
const n = I(e);
|
|
1710
|
+
if (Oe(e))
|
|
1711
|
+
return n;
|
|
1712
|
+
if (!Y(e)) {
|
|
1713
|
+
let r = ne(e);
|
|
1714
|
+
for (; r && !ie(r); ) {
|
|
1715
|
+
if (Z(r) && !_e(r))
|
|
1716
|
+
return r;
|
|
1717
|
+
r = ne(r);
|
|
1718
|
+
}
|
|
1719
|
+
return n;
|
|
1720
|
+
}
|
|
1721
|
+
let o = vt(e, t);
|
|
1722
|
+
for (; o && _o(o) && _e(o); )
|
|
1723
|
+
o = vt(o, t);
|
|
1724
|
+
return o && ie(o) && _e(o) && !tt(o) ? n : o || Do(e) || n;
|
|
1725
|
+
}
|
|
1726
|
+
const Go = async function(e) {
|
|
1727
|
+
const t = this.getOffsetParent || Xt, n = this.getDimensions, o = await n(e.floating);
|
|
1728
|
+
return {
|
|
1729
|
+
reference: jo(e.reference, await t(e.floating), e.strategy),
|
|
1730
|
+
floating: {
|
|
1731
|
+
x: 0,
|
|
1732
|
+
y: 0,
|
|
1733
|
+
width: o.width,
|
|
1734
|
+
height: o.height
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
function Xo(e) {
|
|
1739
|
+
return W(e).direction === "rtl";
|
|
1740
|
+
}
|
|
1741
|
+
const Ko = {
|
|
1742
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Io,
|
|
1743
|
+
getDocumentElement: j,
|
|
1744
|
+
getClippingRect: zo,
|
|
1745
|
+
getOffsetParent: Xt,
|
|
1746
|
+
getElementRects: Go,
|
|
1747
|
+
getClientRects: $o,
|
|
1748
|
+
getDimensions: Yo,
|
|
1749
|
+
getScale: re,
|
|
1750
|
+
isElement: Z,
|
|
1751
|
+
isRTL: Xo
|
|
1752
|
+
};
|
|
1753
|
+
function Uo(e, t) {
|
|
1754
|
+
let n = null, o;
|
|
1755
|
+
const r = j(e);
|
|
1756
|
+
function i() {
|
|
1757
|
+
var l;
|
|
1758
|
+
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
1759
|
+
}
|
|
1760
|
+
function s(l, c) {
|
|
1761
|
+
l === void 0 && (l = !1), c === void 0 && (c = 1), i();
|
|
1762
|
+
const {
|
|
1763
|
+
left: f,
|
|
1764
|
+
top: a,
|
|
1765
|
+
width: d,
|
|
1766
|
+
height: h
|
|
1767
|
+
} = e.getBoundingClientRect();
|
|
1768
|
+
if (l || t(), !d || !h)
|
|
1769
|
+
return;
|
|
1770
|
+
const u = ge(a), g = ge(r.clientWidth - (f + d)), C = ge(r.clientHeight - (a + h)), v = ge(f), w = {
|
|
1771
|
+
rootMargin: -u + "px " + -g + "px " + -C + "px " + -v + "px",
|
|
1772
|
+
threshold: k(0, Q(1, c)) || 1
|
|
1773
|
+
};
|
|
1774
|
+
let y = !0;
|
|
1775
|
+
function b(A) {
|
|
1776
|
+
const R = A[0].intersectionRatio;
|
|
1777
|
+
if (R !== c) {
|
|
1778
|
+
if (!y)
|
|
1779
|
+
return s();
|
|
1780
|
+
R ? s(!1, R) : o = setTimeout(() => {
|
|
1781
|
+
s(!1, 1e-7);
|
|
1782
|
+
}, 1e3);
|
|
1783
|
+
}
|
|
1784
|
+
y = !1;
|
|
1785
|
+
}
|
|
1786
|
+
try {
|
|
1787
|
+
n = new IntersectionObserver(b, {
|
|
1788
|
+
...w,
|
|
1789
|
+
// Handle <iframe>s
|
|
1790
|
+
root: r.ownerDocument
|
|
1791
|
+
});
|
|
1792
|
+
} catch {
|
|
1793
|
+
n = new IntersectionObserver(b, w);
|
|
1794
|
+
}
|
|
1795
|
+
n.observe(e);
|
|
1796
|
+
}
|
|
1797
|
+
return s(!0), i;
|
|
1798
|
+
}
|
|
1799
|
+
function qo(e, t, n, o) {
|
|
1800
|
+
o === void 0 && (o = {});
|
|
1801
|
+
const {
|
|
1802
|
+
ancestorScroll: r = !0,
|
|
1803
|
+
ancestorResize: i = !0,
|
|
1804
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
1805
|
+
layoutShift: l = typeof IntersectionObserver == "function",
|
|
1806
|
+
animationFrame: c = !1
|
|
1807
|
+
} = o, f = ot(e), a = r || i ? [...f ? ue(f) : [], ...ue(t)] : [];
|
|
1808
|
+
a.forEach((x) => {
|
|
1809
|
+
r && x.addEventListener("scroll", n, {
|
|
1810
|
+
passive: !0
|
|
1811
|
+
}), i && x.addEventListener("resize", n);
|
|
1812
|
+
});
|
|
1813
|
+
const d = f && l ? Uo(f, n) : null;
|
|
1814
|
+
let h = -1, u = null;
|
|
1815
|
+
s && (u = new ResizeObserver((x) => {
|
|
1816
|
+
let [w] = x;
|
|
1817
|
+
w && w.target === f && u && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
1818
|
+
var y;
|
|
1819
|
+
(y = u) == null || y.observe(t);
|
|
1820
|
+
})), n();
|
|
1821
|
+
}), f && !c && u.observe(f), u.observe(t));
|
|
1822
|
+
let g, C = c ? oe(e) : null;
|
|
1823
|
+
c && v();
|
|
1824
|
+
function v() {
|
|
1825
|
+
const x = oe(e);
|
|
1826
|
+
C && (x.x !== C.x || x.y !== C.y || x.width !== C.width || x.height !== C.height) && n(), C = x, g = requestAnimationFrame(v);
|
|
1827
|
+
}
|
|
1828
|
+
return n(), () => {
|
|
1829
|
+
var x;
|
|
1830
|
+
a.forEach((w) => {
|
|
1831
|
+
r && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1832
|
+
}), d == null || d(), (x = u) == null || x.disconnect(), u = null, c && cancelAnimationFrame(g);
|
|
1833
|
+
};
|
|
1834
|
+
}
|
|
1835
|
+
const Jo = Mo, Qo = Ho, er = Eo, tr = No, nr = Oo, xt = To, or = Lo, rr = (e, t, n) => {
|
|
1836
|
+
const o = /* @__PURE__ */ new Map(), r = {
|
|
1837
|
+
platform: Ko,
|
|
1838
|
+
...n
|
|
1839
|
+
}, i = {
|
|
1840
|
+
...r.platform,
|
|
1841
|
+
_c: o
|
|
1842
|
+
};
|
|
1843
|
+
return Po(e, t, {
|
|
1844
|
+
...r,
|
|
1845
|
+
platform: i
|
|
1846
|
+
});
|
|
1847
|
+
};
|
|
1848
|
+
var Ce = typeof document < "u" ? Ln : Nn;
|
|
1849
|
+
function Ae(e, t) {
|
|
1850
|
+
if (e === t)
|
|
1851
|
+
return !0;
|
|
1852
|
+
if (typeof e != typeof t)
|
|
1853
|
+
return !1;
|
|
1854
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
1855
|
+
return !0;
|
|
1856
|
+
let n, o, r;
|
|
1857
|
+
if (e && t && typeof e == "object") {
|
|
1858
|
+
if (Array.isArray(e)) {
|
|
1859
|
+
if (n = e.length, n !== t.length) return !1;
|
|
1860
|
+
for (o = n; o-- !== 0; )
|
|
1861
|
+
if (!Ae(e[o], t[o]))
|
|
1862
|
+
return !1;
|
|
1863
|
+
return !0;
|
|
1864
|
+
}
|
|
1865
|
+
if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
|
|
1866
|
+
return !1;
|
|
1867
|
+
for (o = n; o-- !== 0; )
|
|
1868
|
+
if (!{}.hasOwnProperty.call(t, r[o]))
|
|
1869
|
+
return !1;
|
|
1870
|
+
for (o = n; o-- !== 0; ) {
|
|
1871
|
+
const i = r[o];
|
|
1872
|
+
if (!(i === "_owner" && e.$$typeof) && !Ae(e[i], t[i]))
|
|
1873
|
+
return !1;
|
|
1874
|
+
}
|
|
1875
|
+
return !0;
|
|
1876
|
+
}
|
|
1877
|
+
return e !== e && t !== t;
|
|
1878
|
+
}
|
|
1879
|
+
function Kt(e) {
|
|
1880
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1881
|
+
}
|
|
1882
|
+
function yt(e, t) {
|
|
1883
|
+
const n = Kt(e);
|
|
1884
|
+
return Math.round(t * n) / n;
|
|
1885
|
+
}
|
|
1886
|
+
function De(e) {
|
|
1887
|
+
const t = m.useRef(e);
|
|
1888
|
+
return Ce(() => {
|
|
1889
|
+
t.current = e;
|
|
1890
|
+
}), t;
|
|
1891
|
+
}
|
|
1892
|
+
function ir(e) {
|
|
1893
|
+
e === void 0 && (e = {});
|
|
1894
|
+
const {
|
|
1895
|
+
placement: t = "bottom",
|
|
1896
|
+
strategy: n = "absolute",
|
|
1897
|
+
middleware: o = [],
|
|
1898
|
+
platform: r,
|
|
1899
|
+
elements: {
|
|
1900
|
+
reference: i,
|
|
1901
|
+
floating: s
|
|
1902
|
+
} = {},
|
|
1903
|
+
transform: l = !0,
|
|
1904
|
+
whileElementsMounted: c,
|
|
1905
|
+
open: f
|
|
1906
|
+
} = e, [a, d] = m.useState({
|
|
1907
|
+
x: 0,
|
|
1908
|
+
y: 0,
|
|
1909
|
+
strategy: n,
|
|
1910
|
+
placement: t,
|
|
1911
|
+
middlewareData: {},
|
|
1912
|
+
isPositioned: !1
|
|
1913
|
+
}), [h, u] = m.useState(o);
|
|
1914
|
+
Ae(h, o) || u(o);
|
|
1915
|
+
const [g, C] = m.useState(null), [v, x] = m.useState(null), w = m.useCallback((P) => {
|
|
1916
|
+
P !== R.current && (R.current = P, C(P));
|
|
1917
|
+
}, []), y = m.useCallback((P) => {
|
|
1918
|
+
P !== T.current && (T.current = P, x(P));
|
|
1919
|
+
}, []), b = i || g, A = s || v, R = m.useRef(null), T = m.useRef(null), O = m.useRef(a), L = c != null, S = De(c), D = De(r), V = De(f), M = m.useCallback(() => {
|
|
1920
|
+
if (!R.current || !T.current)
|
|
1921
|
+
return;
|
|
1922
|
+
const P = {
|
|
1923
|
+
placement: t,
|
|
1924
|
+
strategy: n,
|
|
1925
|
+
middleware: h
|
|
1926
|
+
};
|
|
1927
|
+
D.current && (P.platform = D.current), rr(R.current, T.current, P).then((_) => {
|
|
1928
|
+
const z = {
|
|
1929
|
+
..._,
|
|
1930
|
+
// The floating element's position may be recomputed while it's closed
|
|
1931
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
1932
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1933
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
1934
|
+
isPositioned: V.current !== !1
|
|
1935
|
+
};
|
|
1936
|
+
E.current && !Ae(O.current, z) && (O.current = z, _n.flushSync(() => {
|
|
1937
|
+
d(z);
|
|
1938
|
+
}));
|
|
1939
|
+
});
|
|
1940
|
+
}, [h, t, n, D, V]);
|
|
1941
|
+
Ce(() => {
|
|
1942
|
+
f === !1 && O.current.isPositioned && (O.current.isPositioned = !1, d((P) => ({
|
|
1943
|
+
...P,
|
|
1944
|
+
isPositioned: !1
|
|
1945
|
+
})));
|
|
1946
|
+
}, [f]);
|
|
1947
|
+
const E = m.useRef(!1);
|
|
1948
|
+
Ce(() => (E.current = !0, () => {
|
|
1949
|
+
E.current = !1;
|
|
1950
|
+
}), []), Ce(() => {
|
|
1951
|
+
if (b && (R.current = b), A && (T.current = A), b && A) {
|
|
1952
|
+
if (S.current)
|
|
1953
|
+
return S.current(b, A, M);
|
|
1954
|
+
M();
|
|
1955
|
+
}
|
|
1956
|
+
}, [b, A, M, S, L]);
|
|
1957
|
+
const $ = m.useMemo(() => ({
|
|
1958
|
+
reference: R,
|
|
1959
|
+
floating: T,
|
|
1960
|
+
setReference: w,
|
|
1961
|
+
setFloating: y
|
|
1962
|
+
}), [w, y]), H = m.useMemo(() => ({
|
|
1963
|
+
reference: b,
|
|
1964
|
+
floating: A
|
|
1965
|
+
}), [b, A]), N = m.useMemo(() => {
|
|
1966
|
+
const P = {
|
|
1967
|
+
position: n,
|
|
1968
|
+
left: 0,
|
|
1969
|
+
top: 0
|
|
1970
|
+
};
|
|
1971
|
+
if (!H.floating)
|
|
1972
|
+
return P;
|
|
1973
|
+
const _ = yt(H.floating, a.x), z = yt(H.floating, a.y);
|
|
1974
|
+
return l ? {
|
|
1975
|
+
...P,
|
|
1976
|
+
transform: "translate(" + _ + "px, " + z + "px)",
|
|
1977
|
+
...Kt(H.floating) >= 1.5 && {
|
|
1978
|
+
willChange: "transform"
|
|
1979
|
+
}
|
|
1980
|
+
} : {
|
|
1981
|
+
position: n,
|
|
1982
|
+
left: _,
|
|
1983
|
+
top: z
|
|
1984
|
+
};
|
|
1985
|
+
}, [n, l, H.floating, a.x, a.y]);
|
|
1986
|
+
return m.useMemo(() => ({
|
|
1987
|
+
...a,
|
|
1988
|
+
update: M,
|
|
1989
|
+
refs: $,
|
|
1990
|
+
elements: H,
|
|
1991
|
+
floatingStyles: N
|
|
1992
|
+
}), [a, M, $, H, N]);
|
|
1993
|
+
}
|
|
1994
|
+
const sr = (e) => {
|
|
1995
|
+
function t(n) {
|
|
1996
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
1997
|
+
}
|
|
1998
|
+
return {
|
|
1999
|
+
name: "arrow",
|
|
2000
|
+
options: e,
|
|
2001
|
+
fn(n) {
|
|
2002
|
+
const {
|
|
2003
|
+
element: o,
|
|
2004
|
+
padding: r
|
|
2005
|
+
} = typeof e == "function" ? e(n) : e;
|
|
2006
|
+
return o && t(o) ? o.current != null ? xt({
|
|
2007
|
+
element: o.current,
|
|
2008
|
+
padding: r
|
|
2009
|
+
}).fn(n) : {} : o ? xt({
|
|
2010
|
+
element: o,
|
|
2011
|
+
padding: r
|
|
2012
|
+
}).fn(n) : {};
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
}, lr = (e, t) => ({
|
|
2016
|
+
...Jo(e),
|
|
2017
|
+
options: [e, t]
|
|
2018
|
+
}), cr = (e, t) => ({
|
|
2019
|
+
...Qo(e),
|
|
2020
|
+
options: [e, t]
|
|
2021
|
+
}), ar = (e, t) => ({
|
|
2022
|
+
...or(e),
|
|
2023
|
+
options: [e, t]
|
|
2024
|
+
}), fr = (e, t) => ({
|
|
2025
|
+
...er(e),
|
|
2026
|
+
options: [e, t]
|
|
2027
|
+
}), dr = (e, t) => ({
|
|
2028
|
+
...tr(e),
|
|
2029
|
+
options: [e, t]
|
|
2030
|
+
}), ur = (e, t) => ({
|
|
2031
|
+
...nr(e),
|
|
2032
|
+
options: [e, t]
|
|
2033
|
+
}), pr = (e, t) => ({
|
|
2034
|
+
...sr(e),
|
|
2035
|
+
options: [e, t]
|
|
2036
|
+
});
|
|
2037
|
+
var hr = "Arrow", Ut = m.forwardRef((e, t) => {
|
|
2038
|
+
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
2039
|
+
return /* @__PURE__ */ p(
|
|
2040
|
+
K.svg,
|
|
2041
|
+
{
|
|
2042
|
+
...i,
|
|
2043
|
+
ref: t,
|
|
2044
|
+
width: o,
|
|
2045
|
+
height: r,
|
|
2046
|
+
viewBox: "0 0 30 10",
|
|
2047
|
+
preserveAspectRatio: "none",
|
|
2048
|
+
children: e.asChild ? n : /* @__PURE__ */ p("polygon", { points: "0,0 30,0 15,10" })
|
|
2049
|
+
}
|
|
2050
|
+
);
|
|
2051
|
+
});
|
|
2052
|
+
Ut.displayName = hr;
|
|
2053
|
+
var mr = Ut;
|
|
2054
|
+
function gr(e, t = []) {
|
|
2055
|
+
let n = [];
|
|
2056
|
+
function o(i, s) {
|
|
2057
|
+
const l = m.createContext(s), c = n.length;
|
|
2058
|
+
n = [...n, s];
|
|
2059
|
+
function f(d) {
|
|
2060
|
+
const { scope: h, children: u, ...g } = d, C = (h == null ? void 0 : h[e][c]) || l, v = m.useMemo(() => g, Object.values(g));
|
|
2061
|
+
return /* @__PURE__ */ p(C.Provider, { value: v, children: u });
|
|
2062
|
+
}
|
|
2063
|
+
function a(d, h) {
|
|
2064
|
+
const u = (h == null ? void 0 : h[e][c]) || l, g = m.useContext(u);
|
|
2065
|
+
if (g) return g;
|
|
2066
|
+
if (s !== void 0) return s;
|
|
2067
|
+
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
2068
|
+
}
|
|
2069
|
+
return f.displayName = i + "Provider", [f, a];
|
|
2070
|
+
}
|
|
2071
|
+
const r = () => {
|
|
2072
|
+
const i = n.map((s) => m.createContext(s));
|
|
2073
|
+
return function(l) {
|
|
2074
|
+
const c = (l == null ? void 0 : l[e]) || i;
|
|
2075
|
+
return m.useMemo(
|
|
2076
|
+
() => ({ [`__scope${e}`]: { ...l, [e]: c } }),
|
|
2077
|
+
[l, c]
|
|
2078
|
+
);
|
|
2079
|
+
};
|
|
2080
|
+
};
|
|
2081
|
+
return r.scopeName = e, [o, Cr(r, ...t)];
|
|
2082
|
+
}
|
|
2083
|
+
function Cr(...e) {
|
|
2084
|
+
const t = e[0];
|
|
2085
|
+
if (e.length === 1) return t;
|
|
2086
|
+
const n = () => {
|
|
2087
|
+
const o = e.map((r) => ({
|
|
2088
|
+
useScope: r(),
|
|
2089
|
+
scopeName: r.scopeName
|
|
2090
|
+
}));
|
|
2091
|
+
return function(i) {
|
|
2092
|
+
const s = o.reduce((l, { useScope: c, scopeName: f }) => {
|
|
2093
|
+
const d = c(i)[`__scope${f}`];
|
|
2094
|
+
return { ...l, ...d };
|
|
2095
|
+
}, {});
|
|
2096
|
+
return m.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
2099
|
+
return n.scopeName = t.scopeName, n;
|
|
2100
|
+
}
|
|
2101
|
+
function wr(e) {
|
|
2102
|
+
const [t, n] = m.useState(void 0);
|
|
2103
|
+
return we(() => {
|
|
2104
|
+
if (e) {
|
|
2105
|
+
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2106
|
+
const o = new ResizeObserver((r) => {
|
|
2107
|
+
if (!Array.isArray(r) || !r.length)
|
|
2108
|
+
return;
|
|
2109
|
+
const i = r[0];
|
|
2110
|
+
let s, l;
|
|
2111
|
+
if ("borderBoxSize" in i) {
|
|
2112
|
+
const c = i.borderBoxSize, f = Array.isArray(c) ? c[0] : c;
|
|
2113
|
+
s = f.inlineSize, l = f.blockSize;
|
|
2114
|
+
} else
|
|
2115
|
+
s = e.offsetWidth, l = e.offsetHeight;
|
|
2116
|
+
n({ width: s, height: l });
|
|
2117
|
+
});
|
|
2118
|
+
return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
|
|
2119
|
+
} else
|
|
2120
|
+
n(void 0);
|
|
2121
|
+
}, [e]), t;
|
|
2122
|
+
}
|
|
2123
|
+
var rt = "Popper", [qt, Jt] = gr(rt), [vr, Qt] = qt(rt), en = (e) => {
|
|
2124
|
+
const { __scopePopper: t, children: n } = e, [o, r] = m.useState(null);
|
|
2125
|
+
return /* @__PURE__ */ p(vr, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
2126
|
+
};
|
|
2127
|
+
en.displayName = rt;
|
|
2128
|
+
var tn = "PopperAnchor", nn = m.forwardRef(
|
|
2129
|
+
(e, t) => {
|
|
2130
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, i = Qt(tn, n), s = m.useRef(null), l = le(t, s);
|
|
2131
|
+
return m.useEffect(() => {
|
|
2132
|
+
i.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
2133
|
+
}), o ? null : /* @__PURE__ */ p(K.div, { ...r, ref: l });
|
|
2134
|
+
}
|
|
2135
|
+
);
|
|
2136
|
+
nn.displayName = tn;
|
|
2137
|
+
var it = "PopperContent", [xr, yr] = qt(it), on = m.forwardRef(
|
|
2138
|
+
(e, t) => {
|
|
2139
|
+
var lt, ct, at, ft, dt, ut;
|
|
2140
|
+
const {
|
|
2141
|
+
__scopePopper: n,
|
|
2142
|
+
side: o = "bottom",
|
|
2143
|
+
sideOffset: r = 0,
|
|
2144
|
+
align: i = "center",
|
|
2145
|
+
alignOffset: s = 0,
|
|
2146
|
+
arrowPadding: l = 0,
|
|
2147
|
+
avoidCollisions: c = !0,
|
|
2148
|
+
collisionBoundary: f = [],
|
|
2149
|
+
collisionPadding: a = 0,
|
|
2150
|
+
sticky: d = "partial",
|
|
2151
|
+
hideWhenDetached: h = !1,
|
|
2152
|
+
updatePositionStrategy: u = "optimized",
|
|
2153
|
+
onPlaced: g,
|
|
2154
|
+
...C
|
|
2155
|
+
} = e, v = Qt(it, n), [x, w] = m.useState(null), y = le(t, (fe) => w(fe)), [b, A] = m.useState(null), R = wr(b), T = (R == null ? void 0 : R.width) ?? 0, O = (R == null ? void 0 : R.height) ?? 0, L = o + (i !== "center" ? "-" + i : ""), S = typeof a == "number" ? a : { top: 0, right: 0, bottom: 0, left: 0, ...a }, D = Array.isArray(f) ? f : [f], V = D.length > 0, M = {
|
|
2156
|
+
padding: S,
|
|
2157
|
+
boundary: D.filter(Ar),
|
|
2158
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2159
|
+
altBoundary: V
|
|
2160
|
+
}, { refs: E, floatingStyles: $, placement: H, isPositioned: N, middlewareData: P } = ir({
|
|
2161
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2162
|
+
strategy: "fixed",
|
|
2163
|
+
placement: L,
|
|
2164
|
+
whileElementsMounted: (...fe) => qo(...fe, {
|
|
2165
|
+
animationFrame: u === "always"
|
|
2166
|
+
}),
|
|
2167
|
+
elements: {
|
|
2168
|
+
reference: v.anchor
|
|
2169
|
+
},
|
|
2170
|
+
middleware: [
|
|
2171
|
+
lr({ mainAxis: r + O, alignmentAxis: s }),
|
|
2172
|
+
c && cr({
|
|
2173
|
+
mainAxis: !0,
|
|
2174
|
+
crossAxis: !1,
|
|
2175
|
+
limiter: d === "partial" ? ar() : void 0,
|
|
2176
|
+
...M
|
|
2177
|
+
}),
|
|
2178
|
+
c && fr({ ...M }),
|
|
2179
|
+
dr({
|
|
2180
|
+
...M,
|
|
2181
|
+
apply: ({ elements: fe, rects: pt, availableWidth: bn, availableHeight: An }) => {
|
|
2182
|
+
const { width: Rn, height: Pn } = pt.reference, me = fe.floating.style;
|
|
2183
|
+
me.setProperty("--radix-popper-available-width", `${bn}px`), me.setProperty("--radix-popper-available-height", `${An}px`), me.setProperty("--radix-popper-anchor-width", `${Rn}px`), me.setProperty("--radix-popper-anchor-height", `${Pn}px`);
|
|
2184
|
+
}
|
|
2185
|
+
}),
|
|
2186
|
+
b && pr({ element: b, padding: l }),
|
|
2187
|
+
Rr({ arrowWidth: T, arrowHeight: O }),
|
|
2188
|
+
h && ur({ strategy: "referenceHidden", ...M })
|
|
2189
|
+
]
|
|
2190
|
+
}), [_, z] = ln(H), he = On(g);
|
|
2191
|
+
we(() => {
|
|
2192
|
+
N && (he == null || he());
|
|
2193
|
+
}, [N, he]);
|
|
2194
|
+
const Cn = (lt = P.arrow) == null ? void 0 : lt.x, wn = (ct = P.arrow) == null ? void 0 : ct.y, vn = ((at = P.arrow) == null ? void 0 : at.centerOffset) !== 0, [xn, yn] = m.useState();
|
|
2195
|
+
return we(() => {
|
|
2196
|
+
x && yn(window.getComputedStyle(x).zIndex);
|
|
2197
|
+
}, [x]), /* @__PURE__ */ p(
|
|
2198
|
+
"div",
|
|
2199
|
+
{
|
|
2200
|
+
ref: E.setFloating,
|
|
2201
|
+
"data-radix-popper-content-wrapper": "",
|
|
2202
|
+
style: {
|
|
2203
|
+
...$,
|
|
2204
|
+
transform: N ? $.transform : "translate(0, -200%)",
|
|
2205
|
+
// keep off the page when measuring
|
|
2206
|
+
minWidth: "max-content",
|
|
2207
|
+
zIndex: xn,
|
|
2208
|
+
"--radix-popper-transform-origin": [
|
|
2209
|
+
(ft = P.transformOrigin) == null ? void 0 : ft.x,
|
|
2210
|
+
(dt = P.transformOrigin) == null ? void 0 : dt.y
|
|
2211
|
+
].join(" "),
|
|
2212
|
+
// hide the content if using the hide middleware and should be hidden
|
|
2213
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2214
|
+
// as if the PopperContent isn't there at all
|
|
2215
|
+
...((ut = P.hide) == null ? void 0 : ut.referenceHidden) && {
|
|
2216
|
+
visibility: "hidden",
|
|
2217
|
+
pointerEvents: "none"
|
|
2218
|
+
}
|
|
2219
|
+
},
|
|
2220
|
+
dir: e.dir,
|
|
2221
|
+
children: /* @__PURE__ */ p(
|
|
2222
|
+
xr,
|
|
2223
|
+
{
|
|
2224
|
+
scope: n,
|
|
2225
|
+
placedSide: _,
|
|
2226
|
+
onArrowChange: A,
|
|
2227
|
+
arrowX: Cn,
|
|
2228
|
+
arrowY: wn,
|
|
2229
|
+
shouldHideArrow: vn,
|
|
2230
|
+
children: /* @__PURE__ */ p(
|
|
2231
|
+
K.div,
|
|
2232
|
+
{
|
|
2233
|
+
"data-side": _,
|
|
2234
|
+
"data-align": z,
|
|
2235
|
+
...C,
|
|
2236
|
+
ref: y,
|
|
2237
|
+
style: {
|
|
2238
|
+
...C.style,
|
|
2239
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2240
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2241
|
+
animation: N ? void 0 : "none"
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
)
|
|
2245
|
+
}
|
|
2246
|
+
)
|
|
2247
|
+
}
|
|
2248
|
+
);
|
|
2249
|
+
}
|
|
2250
|
+
);
|
|
2251
|
+
on.displayName = it;
|
|
2252
|
+
var rn = "PopperArrow", br = {
|
|
2253
|
+
top: "bottom",
|
|
2254
|
+
right: "left",
|
|
2255
|
+
bottom: "top",
|
|
2256
|
+
left: "right"
|
|
2257
|
+
}, sn = m.forwardRef(function(t, n) {
|
|
2258
|
+
const { __scopePopper: o, ...r } = t, i = yr(rn, o), s = br[i.placedSide];
|
|
2259
|
+
return (
|
|
2260
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2261
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
2262
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2263
|
+
/* @__PURE__ */ p(
|
|
2264
|
+
"span",
|
|
2265
|
+
{
|
|
2266
|
+
ref: i.onArrowChange,
|
|
2267
|
+
style: {
|
|
2268
|
+
position: "absolute",
|
|
2269
|
+
left: i.arrowX,
|
|
2270
|
+
top: i.arrowY,
|
|
2271
|
+
[s]: 0,
|
|
2272
|
+
transformOrigin: {
|
|
2273
|
+
top: "",
|
|
2274
|
+
right: "0 0",
|
|
2275
|
+
bottom: "center 0",
|
|
2276
|
+
left: "100% 0"
|
|
2277
|
+
}[i.placedSide],
|
|
2278
|
+
transform: {
|
|
2279
|
+
top: "translateY(100%)",
|
|
2280
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
2281
|
+
bottom: "rotate(180deg)",
|
|
2282
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
2283
|
+
}[i.placedSide],
|
|
2284
|
+
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2285
|
+
},
|
|
2286
|
+
children: /* @__PURE__ */ p(
|
|
2287
|
+
mr,
|
|
2288
|
+
{
|
|
2289
|
+
...r,
|
|
2290
|
+
ref: n,
|
|
2291
|
+
style: {
|
|
2292
|
+
...r.style,
|
|
2293
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
2294
|
+
display: "block"
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
)
|
|
2298
|
+
}
|
|
2299
|
+
)
|
|
2300
|
+
);
|
|
2301
|
+
});
|
|
2302
|
+
sn.displayName = rn;
|
|
2303
|
+
function Ar(e) {
|
|
2304
|
+
return e !== null;
|
|
2305
|
+
}
|
|
2306
|
+
var Rr = (e) => ({
|
|
2307
|
+
name: "transformOrigin",
|
|
2308
|
+
options: e,
|
|
2309
|
+
fn(t) {
|
|
2310
|
+
var v, x, w;
|
|
2311
|
+
const { placement: n, rects: o, middlewareData: r } = t, s = ((v = r.arrow) == null ? void 0 : v.centerOffset) !== 0, l = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [f, a] = ln(n), d = { start: "0%", center: "50%", end: "100%" }[a], h = (((x = r.arrow) == null ? void 0 : x.x) ?? 0) + l / 2, u = (((w = r.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
2312
|
+
let g = "", C = "";
|
|
2313
|
+
return f === "bottom" ? (g = s ? d : `${h}px`, C = `${-c}px`) : f === "top" ? (g = s ? d : `${h}px`, C = `${o.floating.height + c}px`) : f === "right" ? (g = `${-c}px`, C = s ? d : `${u}px`) : f === "left" && (g = `${o.floating.width + c}px`, C = s ? d : `${u}px`), { data: { x: g, y: C } };
|
|
2314
|
+
}
|
|
2315
|
+
});
|
|
2316
|
+
function ln(e) {
|
|
2317
|
+
const [t, n = "center"] = e.split("-");
|
|
2318
|
+
return [t, n];
|
|
2319
|
+
}
|
|
2320
|
+
var Pr = en, Tr = nn, Er = on, Or = sn, [Me, oi] = We("Tooltip", [
|
|
2321
|
+
Jt
|
|
2322
|
+
]), He = Jt(), cn = "TooltipProvider", Sr = 700, Be = "tooltip.open", [Mr, st] = Me(cn), an = (e) => {
|
|
2323
|
+
const {
|
|
2324
|
+
__scopeTooltip: t,
|
|
2325
|
+
delayDuration: n = Sr,
|
|
2326
|
+
skipDelayDuration: o = 300,
|
|
2327
|
+
disableHoverableContent: r = !1,
|
|
2328
|
+
children: i
|
|
2329
|
+
} = e, [s, l] = m.useState(!0), c = m.useRef(!1), f = m.useRef(0);
|
|
2330
|
+
return m.useEffect(() => {
|
|
2331
|
+
const a = f.current;
|
|
2332
|
+
return () => window.clearTimeout(a);
|
|
2333
|
+
}, []), /* @__PURE__ */ p(
|
|
2334
|
+
Mr,
|
|
2335
|
+
{
|
|
2336
|
+
scope: t,
|
|
2337
|
+
isOpenDelayed: s,
|
|
2338
|
+
delayDuration: n,
|
|
2339
|
+
onOpen: m.useCallback(() => {
|
|
2340
|
+
window.clearTimeout(f.current), l(!1);
|
|
2341
|
+
}, []),
|
|
2342
|
+
onClose: m.useCallback(() => {
|
|
2343
|
+
window.clearTimeout(f.current), f.current = window.setTimeout(
|
|
2344
|
+
() => l(!0),
|
|
2345
|
+
o
|
|
2346
|
+
);
|
|
2347
|
+
}, [o]),
|
|
2348
|
+
isPointerInTransitRef: c,
|
|
2349
|
+
onPointerInTransitChange: m.useCallback((a) => {
|
|
2350
|
+
c.current = a;
|
|
2351
|
+
}, []),
|
|
2352
|
+
disableHoverableContent: r,
|
|
2353
|
+
children: i
|
|
2354
|
+
}
|
|
2355
|
+
);
|
|
2356
|
+
};
|
|
2357
|
+
an.displayName = cn;
|
|
2358
|
+
var Le = "Tooltip", [Hr, Ne] = Me(Le), fn = (e) => {
|
|
2359
|
+
const {
|
|
2360
|
+
__scopeTooltip: t,
|
|
2361
|
+
children: n,
|
|
2362
|
+
open: o,
|
|
2363
|
+
defaultOpen: r = !1,
|
|
2364
|
+
onOpenChange: i,
|
|
2365
|
+
disableHoverableContent: s,
|
|
2366
|
+
delayDuration: l
|
|
2367
|
+
} = e, c = st(Le, e.__scopeTooltip), f = He(t), [a, d] = m.useState(null), h = ze(), u = m.useRef(0), g = s ?? c.disableHoverableContent, C = l ?? c.delayDuration, v = m.useRef(!1), [x = !1, w] = Re({
|
|
2368
|
+
prop: o,
|
|
2369
|
+
defaultProp: r,
|
|
2370
|
+
onChange: (T) => {
|
|
2371
|
+
T ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Be))) : c.onClose(), i == null || i(T);
|
|
2372
|
+
}
|
|
2373
|
+
}), y = m.useMemo(() => x ? v.current ? "delayed-open" : "instant-open" : "closed", [x]), b = m.useCallback(() => {
|
|
2374
|
+
window.clearTimeout(u.current), v.current = !1, w(!0);
|
|
2375
|
+
}, [w]), A = m.useCallback(() => {
|
|
2376
|
+
window.clearTimeout(u.current), w(!1);
|
|
2377
|
+
}, [w]), R = m.useCallback(() => {
|
|
2378
|
+
window.clearTimeout(u.current), u.current = window.setTimeout(() => {
|
|
2379
|
+
v.current = !0, w(!0);
|
|
2380
|
+
}, C);
|
|
2381
|
+
}, [C, w]);
|
|
2382
|
+
return m.useEffect(() => () => window.clearTimeout(u.current), []), /* @__PURE__ */ p(Pr, { ...f, children: /* @__PURE__ */ p(
|
|
2383
|
+
Hr,
|
|
2384
|
+
{
|
|
2385
|
+
scope: t,
|
|
2386
|
+
contentId: h,
|
|
2387
|
+
open: x,
|
|
2388
|
+
stateAttribute: y,
|
|
2389
|
+
trigger: a,
|
|
2390
|
+
onTriggerChange: d,
|
|
2391
|
+
onTriggerEnter: m.useCallback(() => {
|
|
2392
|
+
c.isOpenDelayed ? R() : b();
|
|
2393
|
+
}, [c.isOpenDelayed, R, b]),
|
|
2394
|
+
onTriggerLeave: m.useCallback(() => {
|
|
2395
|
+
g ? A() : window.clearTimeout(u.current);
|
|
2396
|
+
}, [A, g]),
|
|
2397
|
+
onOpen: b,
|
|
2398
|
+
onClose: A,
|
|
2399
|
+
disableHoverableContent: g,
|
|
2400
|
+
children: n
|
|
2401
|
+
}
|
|
2402
|
+
) });
|
|
2403
|
+
};
|
|
2404
|
+
fn.displayName = Le;
|
|
2405
|
+
var Ze = "TooltipTrigger", dn = m.forwardRef(
|
|
2406
|
+
(e, t) => {
|
|
2407
|
+
const { __scopeTooltip: n, ...o } = e, r = Ne(Ze, n), i = st(Ze, n), s = He(n), l = m.useRef(null), c = le(t, l, r.onTriggerChange), f = m.useRef(!1), a = m.useRef(!1), d = m.useCallback(() => f.current = !1, []);
|
|
2408
|
+
return m.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ p(Tr, { asChild: !0, ...s, children: /* @__PURE__ */ p(
|
|
2409
|
+
K.button,
|
|
2410
|
+
{
|
|
2411
|
+
"aria-describedby": r.open ? r.contentId : void 0,
|
|
2412
|
+
"data-state": r.stateAttribute,
|
|
2413
|
+
...o,
|
|
2414
|
+
ref: c,
|
|
2415
|
+
onPointerMove: q(e.onPointerMove, (h) => {
|
|
2416
|
+
h.pointerType !== "touch" && !a.current && !i.isPointerInTransitRef.current && (r.onTriggerEnter(), a.current = !0);
|
|
2417
|
+
}),
|
|
2418
|
+
onPointerLeave: q(e.onPointerLeave, () => {
|
|
2419
|
+
r.onTriggerLeave(), a.current = !1;
|
|
2420
|
+
}),
|
|
2421
|
+
onPointerDown: q(e.onPointerDown, () => {
|
|
2422
|
+
f.current = !0, document.addEventListener("pointerup", d, { once: !0 });
|
|
2423
|
+
}),
|
|
2424
|
+
onFocus: q(e.onFocus, () => {
|
|
2425
|
+
f.current || r.onOpen();
|
|
2426
|
+
}),
|
|
2427
|
+
onBlur: q(e.onBlur, r.onClose),
|
|
2428
|
+
onClick: q(e.onClick, r.onClose)
|
|
2429
|
+
}
|
|
2430
|
+
) });
|
|
2431
|
+
}
|
|
2432
|
+
);
|
|
2433
|
+
dn.displayName = Ze;
|
|
2434
|
+
var Lr = "TooltipPortal", [ri, Nr] = Me(Lr, {
|
|
2435
|
+
forceMount: void 0
|
|
2436
|
+
}), se = "TooltipContent", un = m.forwardRef(
|
|
2437
|
+
(e, t) => {
|
|
2438
|
+
const n = Nr(se, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, s = Ne(se, e.__scopeTooltip);
|
|
2439
|
+
return /* @__PURE__ */ p(At, { present: o || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ p(pn, { side: r, ...i, ref: t }) : /* @__PURE__ */ p(_r, { side: r, ...i, ref: t }) });
|
|
2440
|
+
}
|
|
2441
|
+
), _r = m.forwardRef((e, t) => {
|
|
2442
|
+
const n = Ne(se, e.__scopeTooltip), o = st(se, e.__scopeTooltip), r = m.useRef(null), i = le(t, r), [s, l] = m.useState(null), { trigger: c, onClose: f } = n, a = r.current, { onPointerInTransitChange: d } = o, h = m.useCallback(() => {
|
|
2443
|
+
l(null), d(!1);
|
|
2444
|
+
}, [d]), u = m.useCallback(
|
|
2445
|
+
(g, C) => {
|
|
2446
|
+
const v = g.currentTarget, x = { x: g.clientX, y: g.clientY }, w = Ir(x, v.getBoundingClientRect()), y = $r(x, w), b = Fr(C.getBoundingClientRect()), A = Zr([...y, ...b]);
|
|
2447
|
+
l(A), d(!0);
|
|
2448
|
+
},
|
|
2449
|
+
[d]
|
|
2450
|
+
);
|
|
2451
|
+
return m.useEffect(() => () => h(), [h]), m.useEffect(() => {
|
|
2452
|
+
if (c && a) {
|
|
2453
|
+
const g = (v) => u(v, a), C = (v) => u(v, c);
|
|
2454
|
+
return c.addEventListener("pointerleave", g), a.addEventListener("pointerleave", C), () => {
|
|
2455
|
+
c.removeEventListener("pointerleave", g), a.removeEventListener("pointerleave", C);
|
|
2456
|
+
};
|
|
2457
|
+
}
|
|
2458
|
+
}, [c, a, u, h]), m.useEffect(() => {
|
|
2459
|
+
if (s) {
|
|
2460
|
+
const g = (C) => {
|
|
2461
|
+
const v = C.target, x = { x: C.clientX, y: C.clientY }, w = (c == null ? void 0 : c.contains(v)) || (a == null ? void 0 : a.contains(v)), y = !Br(x, s);
|
|
2462
|
+
w ? h() : y && (h(), f());
|
|
2463
|
+
};
|
|
2464
|
+
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
2465
|
+
}
|
|
2466
|
+
}, [c, a, s, f, h]), /* @__PURE__ */ p(pn, { ...e, ref: i });
|
|
2467
|
+
}), [Dr, Vr] = Me(Le, { isInside: !1 }), pn = m.forwardRef(
|
|
2468
|
+
(e, t) => {
|
|
2469
|
+
const {
|
|
2470
|
+
__scopeTooltip: n,
|
|
2471
|
+
children: o,
|
|
2472
|
+
"aria-label": r,
|
|
2473
|
+
onEscapeKeyDown: i,
|
|
2474
|
+
onPointerDownOutside: s,
|
|
2475
|
+
...l
|
|
2476
|
+
} = e, c = Ne(se, n), f = He(n), { onClose: a } = c;
|
|
2477
|
+
return m.useEffect(() => (document.addEventListener(Be, a), () => document.removeEventListener(Be, a)), [a]), m.useEffect(() => {
|
|
2478
|
+
if (c.trigger) {
|
|
2479
|
+
const d = (h) => {
|
|
2480
|
+
const u = h.target;
|
|
2481
|
+
u != null && u.contains(c.trigger) && a();
|
|
2482
|
+
};
|
|
2483
|
+
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
2484
|
+
}
|
|
2485
|
+
}, [c.trigger, a]), /* @__PURE__ */ p(
|
|
2486
|
+
Sn,
|
|
2487
|
+
{
|
|
2488
|
+
asChild: !0,
|
|
2489
|
+
disableOutsidePointerEvents: !1,
|
|
2490
|
+
onEscapeKeyDown: i,
|
|
2491
|
+
onPointerDownOutside: s,
|
|
2492
|
+
onFocusOutside: (d) => d.preventDefault(),
|
|
2493
|
+
onDismiss: a,
|
|
2494
|
+
children: /* @__PURE__ */ B(
|
|
2495
|
+
Er,
|
|
2496
|
+
{
|
|
2497
|
+
"data-state": c.stateAttribute,
|
|
2498
|
+
...f,
|
|
2499
|
+
...l,
|
|
2500
|
+
ref: t,
|
|
2501
|
+
style: {
|
|
2502
|
+
...l.style,
|
|
2503
|
+
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2504
|
+
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
2505
|
+
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
2506
|
+
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2507
|
+
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2508
|
+
},
|
|
2509
|
+
children: [
|
|
2510
|
+
/* @__PURE__ */ p(Mn, { children: o }),
|
|
2511
|
+
/* @__PURE__ */ p(Dr, { scope: n, isInside: !0, children: /* @__PURE__ */ p(Hn, { id: c.contentId, role: "tooltip", children: r || o }) })
|
|
2512
|
+
]
|
|
2513
|
+
}
|
|
2514
|
+
)
|
|
2515
|
+
}
|
|
2516
|
+
);
|
|
2517
|
+
}
|
|
2518
|
+
);
|
|
2519
|
+
un.displayName = se;
|
|
2520
|
+
var hn = "TooltipArrow", kr = m.forwardRef(
|
|
2521
|
+
(e, t) => {
|
|
2522
|
+
const { __scopeTooltip: n, ...o } = e, r = He(n);
|
|
2523
|
+
return Vr(
|
|
2524
|
+
hn,
|
|
2525
|
+
n
|
|
2526
|
+
).isInside ? null : /* @__PURE__ */ p(Or, { ...r, ...o, ref: t });
|
|
2527
|
+
}
|
|
2528
|
+
);
|
|
2529
|
+
kr.displayName = hn;
|
|
2530
|
+
function Ir(e, t) {
|
|
2531
|
+
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
2532
|
+
switch (Math.min(n, o, r, i)) {
|
|
2533
|
+
case i:
|
|
2534
|
+
return "left";
|
|
2535
|
+
case r:
|
|
2536
|
+
return "right";
|
|
2537
|
+
case n:
|
|
2538
|
+
return "top";
|
|
2539
|
+
case o:
|
|
2540
|
+
return "bottom";
|
|
2541
|
+
default:
|
|
2542
|
+
throw new Error("unreachable");
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
function $r(e, t, n = 5) {
|
|
2546
|
+
const o = [];
|
|
2547
|
+
switch (t) {
|
|
2548
|
+
case "top":
|
|
2549
|
+
o.push(
|
|
2550
|
+
{ x: e.x - n, y: e.y + n },
|
|
2551
|
+
{ x: e.x + n, y: e.y + n }
|
|
2552
|
+
);
|
|
2553
|
+
break;
|
|
2554
|
+
case "bottom":
|
|
2555
|
+
o.push(
|
|
2556
|
+
{ x: e.x - n, y: e.y - n },
|
|
2557
|
+
{ x: e.x + n, y: e.y - n }
|
|
2558
|
+
);
|
|
2559
|
+
break;
|
|
2560
|
+
case "left":
|
|
2561
|
+
o.push(
|
|
2562
|
+
{ x: e.x + n, y: e.y - n },
|
|
2563
|
+
{ x: e.x + n, y: e.y + n }
|
|
2564
|
+
);
|
|
2565
|
+
break;
|
|
2566
|
+
case "right":
|
|
2567
|
+
o.push(
|
|
2568
|
+
{ x: e.x - n, y: e.y - n },
|
|
2569
|
+
{ x: e.x - n, y: e.y + n }
|
|
2570
|
+
);
|
|
2571
|
+
break;
|
|
2572
|
+
}
|
|
2573
|
+
return o;
|
|
2574
|
+
}
|
|
2575
|
+
function Fr(e) {
|
|
2576
|
+
const { top: t, right: n, bottom: o, left: r } = e;
|
|
2577
|
+
return [
|
|
2578
|
+
{ x: r, y: t },
|
|
2579
|
+
{ x: n, y: t },
|
|
2580
|
+
{ x: n, y: o },
|
|
2581
|
+
{ x: r, y: o }
|
|
2582
|
+
];
|
|
2583
|
+
}
|
|
2584
|
+
function Br(e, t) {
|
|
2585
|
+
const { x: n, y: o } = e;
|
|
2586
|
+
let r = !1;
|
|
2587
|
+
for (let i = 0, s = t.length - 1; i < t.length; s = i++) {
|
|
2588
|
+
const l = t[i].x, c = t[i].y, f = t[s].x, a = t[s].y;
|
|
2589
|
+
c > o != a > o && n < (f - l) * (o - c) / (a - c) + l && (r = !r);
|
|
2590
|
+
}
|
|
2591
|
+
return r;
|
|
2592
|
+
}
|
|
2593
|
+
function Zr(e) {
|
|
2594
|
+
const t = e.slice();
|
|
2595
|
+
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), Wr(t);
|
|
2596
|
+
}
|
|
2597
|
+
function Wr(e) {
|
|
2598
|
+
if (e.length <= 1) return e.slice();
|
|
2599
|
+
const t = [];
|
|
2600
|
+
for (let o = 0; o < e.length; o++) {
|
|
2601
|
+
const r = e[o];
|
|
2602
|
+
for (; t.length >= 2; ) {
|
|
2603
|
+
const i = t[t.length - 1], s = t[t.length - 2];
|
|
2604
|
+
if ((i.x - s.x) * (r.y - s.y) >= (i.y - s.y) * (r.x - s.x)) t.pop();
|
|
2605
|
+
else break;
|
|
2606
|
+
}
|
|
2607
|
+
t.push(r);
|
|
2608
|
+
}
|
|
2609
|
+
t.pop();
|
|
2610
|
+
const n = [];
|
|
2611
|
+
for (let o = e.length - 1; o >= 0; o--) {
|
|
2612
|
+
const r = e[o];
|
|
2613
|
+
for (; n.length >= 2; ) {
|
|
2614
|
+
const i = n[n.length - 1], s = n[n.length - 2];
|
|
2615
|
+
if ((i.x - s.x) * (r.y - s.y) >= (i.y - s.y) * (r.x - s.x)) n.pop();
|
|
2616
|
+
else break;
|
|
2617
|
+
}
|
|
2618
|
+
n.push(r);
|
|
2619
|
+
}
|
|
2620
|
+
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);
|
|
2621
|
+
}
|
|
2622
|
+
var zr = an, Yr = fn, jr = dn, mn = un;
|
|
2623
|
+
const ii = zr, Gr = Yr, Xr = jr, gn = m.forwardRef(({ className: e, variant: t = "primary", size: n = "pc", position: o = "top-center", arrow: r = !0, sideOffset: i = 8, icLeft: s, icRight: l, ...c }, f) => {
|
|
2624
|
+
const a = {
|
|
2625
|
+
primary: "bg-main-600 text-white",
|
|
2626
|
+
secondary: "bg-grey-800 text-grey-50"
|
|
2627
|
+
}, d = {
|
|
2628
|
+
pc: "p-2 text-sm",
|
|
2629
|
+
mobile: "p-2 text-[13px]"
|
|
2630
|
+
}, h = {
|
|
2631
|
+
"top-left": { classes: "absolute left-3 top-full transform -translate-y-2 -translate-x-1/2", side: "top", align: "start" },
|
|
2632
|
+
"top-center": { classes: "absolute left-1/2 top-full transform -translate-y-2 -translate-x-1/2", side: "top", align: "center" },
|
|
2633
|
+
"top-right": { classes: "absolute right-3 top-full transform -translate-y-2 -translate-x-1/2", side: "top", align: "end" },
|
|
2634
|
+
"bottom-left": { classes: "absolute left-3 top-auto bottom-full transform translate-y-2 -translate-x-1/2", side: "bottom", align: "start" },
|
|
2635
|
+
"bottom-center": { classes: "absolute left-1/2 top-auto bottom-full transform translate-y-2 -translate-x-1/2", side: "bottom", align: "center" },
|
|
2636
|
+
"bottom-right": { classes: "absolute right-3 top-auto bottom-full transform translate-y-2 -translate-x-1/2", side: "bottom", align: "end" }
|
|
2637
|
+
}[o];
|
|
2638
|
+
return /* @__PURE__ */ B(
|
|
2639
|
+
mn,
|
|
2640
|
+
{
|
|
2641
|
+
ref: f,
|
|
2642
|
+
avoidCollisions: !1,
|
|
2643
|
+
sideOffset: i,
|
|
2644
|
+
side: h.side,
|
|
2645
|
+
align: h.align,
|
|
2646
|
+
className: J("relative z-50 rounded-lg my-1"),
|
|
2647
|
+
...c,
|
|
2648
|
+
children: [
|
|
2649
|
+
r && /* @__PURE__ */ p("div", { className: J("z-0 w-3 h-3 bg-main-600 opacity-90 rotate-45 rounded-[2px]", a[t], h.classes) }),
|
|
2650
|
+
/* @__PURE__ */ p("div", { className: "absolute z-10 inset-0 bg-white" }),
|
|
2651
|
+
/* @__PURE__ */ B("div", { className: J("relative z-20 flex items-center font-normal bg-opacity-90 rounded", a[t], d[n]), children: [
|
|
2652
|
+
s && /* @__PURE__ */ p("span", { className: "mr-1", children: s }),
|
|
2653
|
+
/* @__PURE__ */ p("span", { children: c.children }),
|
|
2654
|
+
l && /* @__PURE__ */ p("span", { className: "ml-1", children: l })
|
|
2655
|
+
] })
|
|
2656
|
+
]
|
|
2657
|
+
}
|
|
2658
|
+
);
|
|
2659
|
+
});
|
|
2660
|
+
gn.displayName = mn.displayName;
|
|
2661
|
+
const si = ({
|
|
2662
|
+
tooltipLabel: e,
|
|
2663
|
+
variant: t,
|
|
2664
|
+
size: n,
|
|
2665
|
+
children: o,
|
|
2666
|
+
icLeft: r,
|
|
2667
|
+
icRight: i,
|
|
2668
|
+
position: s,
|
|
2669
|
+
arrow: l = !0
|
|
2670
|
+
// 기본값으로 화살표 표시
|
|
2671
|
+
}) => /* @__PURE__ */ B(Gr, { delayDuration: 500, children: [
|
|
2672
|
+
/* @__PURE__ */ p(Xr, { asChild: !0, children: o }),
|
|
2673
|
+
/* @__PURE__ */ p(gn, { variant: t, size: n, icLeft: r, icRight: i, arrow: l, position: s, children: e })
|
|
2674
|
+
] });
|
|
2675
|
+
export {
|
|
2676
|
+
ti as A,
|
|
2677
|
+
ro as I,
|
|
2678
|
+
ni as S,
|
|
2679
|
+
si as T,
|
|
2680
|
+
oo as a,
|
|
2681
|
+
to as b,
|
|
2682
|
+
no as c,
|
|
2683
|
+
ii as d
|
|
2684
|
+
};
|