@plyaz/ui 0.6.9 → 0.6.10
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/client.cjs.js +51 -1
- package/dist/client.es.js +3823 -2324
- package/dist/constant-B-tpIxtm.cjs +31 -0
- package/dist/{utils-BlazSa45.js → constant-BgZiatEy.js} +561 -400
- package/dist/index.cjs.js +10 -90
- package/dist/index.es.js +424 -2073
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts +2 -3
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/components/client.d.ts +1 -0
- package/dist/types/components/client.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +0 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/utils-D4NY0-fZ.cjs +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,238 +1,84 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { c as E } from "./
|
|
6
|
-
import
|
|
7
|
-
import { Slot as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import fn from "react-dom";
|
|
15
|
-
const q = ({ children: e, element: t = "div", className: n = "", ...r }) => /* @__PURE__ */ l(t, { className: n, ...r, "data-testid": "box", children: e }), Ho = ({ className: e = "", children: t, element: n, ...r }) => /* @__PURE__ */ l(
|
|
16
|
-
q,
|
|
1
|
+
var $ = Object.defineProperty;
|
|
2
|
+
var V = (t, e, a) => e in t ? $(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
|
+
var v = (t, e, a) => V(t, typeof e != "symbol" ? e + "" : e, a);
|
|
4
|
+
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
5
|
+
import { c as i, G as E, A as _, J as R, R as G, C as K, V as U, T as q, S as W, b as H } from "./constant-BgZiatEy.js";
|
|
6
|
+
import "clsx";
|
|
7
|
+
import { Slot as J } from "@radix-ui/react-slot";
|
|
8
|
+
import O, { memo as Q } from "react";
|
|
9
|
+
import * as u from "@radix-ui/react-select";
|
|
10
|
+
import { CheckIcon as Z, ChevronDownIcon as I, ChevronUpIcon as X } from "lucide-react";
|
|
11
|
+
import { useTranslations as T } from "next-intl";
|
|
12
|
+
const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @__PURE__ */ s(e, { className: a, ...r, "data-testid": "box", children: t }), Se = ({ className: t = "", children: e, element: a, ...r }) => /* @__PURE__ */ s(
|
|
13
|
+
b,
|
|
17
14
|
{
|
|
18
|
-
element:
|
|
19
|
-
className:
|
|
15
|
+
element: a,
|
|
16
|
+
className: i("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl", t),
|
|
20
17
|
...r,
|
|
21
|
-
children:
|
|
22
|
-
}
|
|
23
|
-
), Me = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Le = nn, vn = (e, t) => (n) => {
|
|
24
|
-
var r;
|
|
25
|
-
if ((t == null ? void 0 : t.variants) == null) return Le(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
26
|
-
const { variants: o, defaultVariants: a } = t, c = Object.keys(o).map((u) => {
|
|
27
|
-
const f = n == null ? void 0 : n[u], g = a == null ? void 0 : a[u];
|
|
28
|
-
if (f === null) return null;
|
|
29
|
-
const m = Me(f) || Me(g);
|
|
30
|
-
return o[u][m];
|
|
31
|
-
}), i = n && Object.entries(n).reduce((u, f) => {
|
|
32
|
-
let [g, m] = f;
|
|
33
|
-
return m === void 0 || (u[g] = m), u;
|
|
34
|
-
}, {}), v = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, f) => {
|
|
35
|
-
let { class: g, className: m, ...h } = f;
|
|
36
|
-
return Object.entries(h).every((x) => {
|
|
37
|
-
let [d, p] = x;
|
|
38
|
-
return Array.isArray(p) ? p.includes({
|
|
39
|
-
...a,
|
|
40
|
-
...i
|
|
41
|
-
}[d]) : {
|
|
42
|
-
...a,
|
|
43
|
-
...i
|
|
44
|
-
}[d] === p;
|
|
45
|
-
}) ? [
|
|
46
|
-
...u,
|
|
47
|
-
g,
|
|
48
|
-
m
|
|
49
|
-
] : u;
|
|
50
|
-
}, []);
|
|
51
|
-
return Le(e, c, v, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
52
|
-
}, Ze = {
|
|
53
|
-
start: "justify-start",
|
|
54
|
-
end: "justify-end",
|
|
55
|
-
center: "justify-center",
|
|
56
|
-
between: "justify-between",
|
|
57
|
-
around: "justify-around",
|
|
58
|
-
evenly: "justify-evenly",
|
|
59
|
-
stretch: "justify-stretch"
|
|
60
|
-
}, Qe = {
|
|
61
|
-
start: "items-start",
|
|
62
|
-
end: "items-end",
|
|
63
|
-
center: "items-center",
|
|
64
|
-
baseline: "items-baseline",
|
|
65
|
-
stretch: "items-stretch"
|
|
66
|
-
}, gn = {
|
|
67
|
-
body: "font-general",
|
|
68
|
-
heading: "font-general",
|
|
69
|
-
caption: "font-general"
|
|
70
|
-
}, mn = {
|
|
71
|
-
xs: "text-xs",
|
|
72
|
-
sm: "text-sm",
|
|
73
|
-
base: "text-base",
|
|
74
|
-
lg: "text-lg",
|
|
75
|
-
xl: "text-xl",
|
|
76
|
-
"2xl": "text-2xl",
|
|
77
|
-
"3xl": "text-3xl",
|
|
78
|
-
"4xl": "text-4xl",
|
|
79
|
-
"5xl": "text-5xl",
|
|
80
|
-
"6xl": "text-6xl",
|
|
81
|
-
"7xl": "text-7xl",
|
|
82
|
-
"8xl": "text-8xl",
|
|
83
|
-
"9xl": "text-9xl"
|
|
84
|
-
}, pn = {
|
|
85
|
-
normal: "font-normal",
|
|
86
|
-
medium: "font-medium",
|
|
87
|
-
semibold: "font-semibold",
|
|
88
|
-
bold: "font-bold",
|
|
89
|
-
light: "font-light"
|
|
90
|
-
}, hn = {
|
|
91
|
-
1: "grid-cols-1",
|
|
92
|
-
2: "grid-cols-2",
|
|
93
|
-
3: "grid-cols-3",
|
|
94
|
-
4: "grid-cols-4",
|
|
95
|
-
5: "grid-cols-5",
|
|
96
|
-
6: "grid-cols-6",
|
|
97
|
-
7: "grid-cols-7",
|
|
98
|
-
8: "grid-cols-8",
|
|
99
|
-
9: "grid-cols-9"
|
|
100
|
-
}, bn = {
|
|
101
|
-
1: "grid-rows-1",
|
|
102
|
-
2: "grid-rows-2",
|
|
103
|
-
3: "grid-rows-3",
|
|
104
|
-
4: "grid-rows-4",
|
|
105
|
-
5: "grid-rows-5",
|
|
106
|
-
6: "grid-rows-6",
|
|
107
|
-
7: "grid-rows-7",
|
|
108
|
-
8: "grid-rows-8",
|
|
109
|
-
9: "grid-rows-9"
|
|
110
|
-
}, Je = {
|
|
111
|
-
1: "gap-1",
|
|
112
|
-
2: "gap-2",
|
|
113
|
-
3: "gap-3",
|
|
114
|
-
4: "gap-4",
|
|
115
|
-
5: "gap-5",
|
|
116
|
-
6: "gap-6",
|
|
117
|
-
7: "gap-7",
|
|
118
|
-
8: "gap-8",
|
|
119
|
-
9: "gap-9"
|
|
120
|
-
}, Ae = vn(
|
|
121
|
-
"inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",
|
|
122
|
-
{
|
|
123
|
-
variants: {
|
|
124
|
-
variant: {
|
|
125
|
-
default: `
|
|
126
|
-
bg-primary text-primary-foreground shadow-xs
|
|
127
|
-
hover:bg-primary/90
|
|
128
|
-
`,
|
|
129
|
-
destructive: `
|
|
130
|
-
bg-destructive text-white shadow-xs
|
|
131
|
-
hover:bg-destructive/90
|
|
132
|
-
focus-visible:ring-destructive/20
|
|
133
|
-
dark:bg-destructive/60 dark:focus-visible:ring-destructive/40
|
|
134
|
-
`,
|
|
135
|
-
outline: `
|
|
136
|
-
border bg-background shadow-xs
|
|
137
|
-
hover:bg-accent hover:text-accent-foreground
|
|
138
|
-
dark:border-input dark:bg-input/30 dark:hover:bg-input/50
|
|
139
|
-
`,
|
|
140
|
-
secondary: `
|
|
141
|
-
bg-secondary text-secondary-foreground shadow-xs
|
|
142
|
-
hover:bg-secondary/80
|
|
143
|
-
`,
|
|
144
|
-
ghost: `
|
|
145
|
-
hover:bg-accent hover:text-accent-foreground
|
|
146
|
-
dark:hover:bg-accent/50
|
|
147
|
-
`,
|
|
148
|
-
link: `
|
|
149
|
-
text-primary underline-offset-4
|
|
150
|
-
hover:underline
|
|
151
|
-
`
|
|
152
|
-
},
|
|
153
|
-
size: {
|
|
154
|
-
default: `
|
|
155
|
-
h-9 px-4 py-2
|
|
156
|
-
has-[>svg]:px-3
|
|
157
|
-
`,
|
|
158
|
-
sm: `
|
|
159
|
-
h-8 gap-1.5 rounded-md px-3
|
|
160
|
-
has-[>svg]:px-2.5
|
|
161
|
-
`,
|
|
162
|
-
lg: `
|
|
163
|
-
h-10 rounded-md px-6
|
|
164
|
-
has-[>svg]:px-4
|
|
165
|
-
`,
|
|
166
|
-
icon: "size-9"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
defaultVariants: {
|
|
170
|
-
variant: "default",
|
|
171
|
-
size: "default"
|
|
172
|
-
}
|
|
18
|
+
children: e
|
|
173
19
|
}
|
|
174
|
-
),
|
|
20
|
+
), Y = {
|
|
175
21
|
row: "flex-row",
|
|
176
22
|
col: "flex-col",
|
|
177
23
|
row_reverse: "flex-row-reverse",
|
|
178
24
|
col_reverse: "flex-col-reverse"
|
|
179
|
-
},
|
|
25
|
+
}, ee = {
|
|
180
26
|
wrap: "flex-wrap",
|
|
181
27
|
nowrap: "flex-nowrap",
|
|
182
28
|
wrap_reverse: "flex-wrap-reverse"
|
|
183
|
-
},
|
|
184
|
-
children:
|
|
185
|
-
gap:
|
|
186
|
-
direction:
|
|
29
|
+
}, Ee = ({
|
|
30
|
+
children: t,
|
|
31
|
+
gap: e,
|
|
32
|
+
direction: a,
|
|
187
33
|
justify: r,
|
|
188
|
-
align:
|
|
189
|
-
wrap:
|
|
190
|
-
className:
|
|
191
|
-
element:
|
|
192
|
-
...
|
|
193
|
-
}) => /* @__PURE__ */
|
|
194
|
-
|
|
34
|
+
align: n,
|
|
35
|
+
wrap: l,
|
|
36
|
+
className: o = "",
|
|
37
|
+
element: d,
|
|
38
|
+
...m
|
|
39
|
+
}) => /* @__PURE__ */ s(
|
|
40
|
+
b,
|
|
195
41
|
{
|
|
196
|
-
element:
|
|
197
|
-
className:
|
|
42
|
+
element: d,
|
|
43
|
+
className: i(
|
|
198
44
|
"flex",
|
|
199
|
-
|
|
200
|
-
r &&
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
45
|
+
a && Y[a],
|
|
46
|
+
r && R[r],
|
|
47
|
+
n && _[n],
|
|
48
|
+
l && ee[l],
|
|
49
|
+
e && E[e],
|
|
50
|
+
o
|
|
205
51
|
),
|
|
206
|
-
...
|
|
207
|
-
children:
|
|
52
|
+
...m,
|
|
53
|
+
children: t
|
|
208
54
|
}
|
|
209
|
-
),
|
|
210
|
-
children:
|
|
211
|
-
className:
|
|
212
|
-
cols:
|
|
55
|
+
), _e = ({
|
|
56
|
+
children: t,
|
|
57
|
+
className: e,
|
|
58
|
+
cols: a,
|
|
213
59
|
rows: r,
|
|
214
|
-
gap:
|
|
215
|
-
justify:
|
|
216
|
-
align:
|
|
217
|
-
element:
|
|
218
|
-
...
|
|
219
|
-
}) => /* @__PURE__ */
|
|
220
|
-
|
|
60
|
+
gap: n,
|
|
61
|
+
justify: l,
|
|
62
|
+
align: o,
|
|
63
|
+
element: d,
|
|
64
|
+
...m
|
|
65
|
+
}) => /* @__PURE__ */ s(
|
|
66
|
+
b,
|
|
221
67
|
{
|
|
222
|
-
element:
|
|
223
|
-
className:
|
|
68
|
+
element: d,
|
|
69
|
+
className: i(
|
|
224
70
|
"grid",
|
|
225
|
-
|
|
226
|
-
r &&
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
71
|
+
a && K[a],
|
|
72
|
+
r && G[r],
|
|
73
|
+
n && E[n],
|
|
74
|
+
l && R[l],
|
|
75
|
+
o && _[o],
|
|
76
|
+
e
|
|
231
77
|
),
|
|
232
|
-
...
|
|
233
|
-
children:
|
|
78
|
+
...m,
|
|
79
|
+
children: t
|
|
234
80
|
}
|
|
235
|
-
),
|
|
81
|
+
), te = {
|
|
236
82
|
xs: "xs",
|
|
237
83
|
sm: "sm",
|
|
238
84
|
base: "base",
|
|
@@ -241,101 +87,101 @@ const q = ({ children: e, element: t = "div", className: n = "", ...r }) => /* @
|
|
|
241
87
|
"2xl": "2xl",
|
|
242
88
|
"3xl": "3xl",
|
|
243
89
|
"4xl": "4xl"
|
|
244
|
-
},
|
|
245
|
-
|
|
90
|
+
}, Re = ({ children: t, element: e, className: a, size: r, ...n }) => /* @__PURE__ */ s(
|
|
91
|
+
h,
|
|
246
92
|
{
|
|
247
|
-
className:
|
|
248
|
-
element:
|
|
249
|
-
size:
|
|
93
|
+
className: a,
|
|
94
|
+
element: e,
|
|
95
|
+
size: te[r],
|
|
250
96
|
variant: "heading",
|
|
251
97
|
weight: "medium",
|
|
252
|
-
...
|
|
253
|
-
children:
|
|
98
|
+
...n,
|
|
99
|
+
children: t
|
|
254
100
|
}
|
|
255
|
-
),
|
|
101
|
+
), Ie = ({ children: t, className: e, href: a, ...r }) => /* @__PURE__ */ s(
|
|
256
102
|
"a",
|
|
257
103
|
{
|
|
258
104
|
"data-testid": "link",
|
|
259
|
-
href:
|
|
105
|
+
href: a,
|
|
260
106
|
rel: "noopener noreferrer",
|
|
261
107
|
target: "_blank",
|
|
262
|
-
className:
|
|
108
|
+
className: i(
|
|
263
109
|
"focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",
|
|
264
|
-
|
|
110
|
+
e
|
|
265
111
|
),
|
|
266
112
|
...r,
|
|
267
|
-
children:
|
|
113
|
+
children: t
|
|
268
114
|
}
|
|
269
|
-
),
|
|
115
|
+
), ae = {
|
|
270
116
|
xs: "xs",
|
|
271
117
|
sm: "sm",
|
|
272
118
|
base: "base",
|
|
273
119
|
lg: "lg"
|
|
274
|
-
},
|
|
275
|
-
|
|
120
|
+
}, Te = ({ children: t, className: e, size: a, ...r }) => /* @__PURE__ */ s(
|
|
121
|
+
h,
|
|
276
122
|
{
|
|
277
|
-
className:
|
|
123
|
+
className: e,
|
|
278
124
|
element: "p",
|
|
279
|
-
size:
|
|
125
|
+
size: ae[a],
|
|
280
126
|
variant: "body",
|
|
281
127
|
weight: "normal",
|
|
282
128
|
...r,
|
|
283
|
-
children:
|
|
129
|
+
children: t
|
|
284
130
|
}
|
|
285
|
-
),
|
|
286
|
-
children: e,
|
|
287
|
-
direction: t = "horizontal",
|
|
288
|
-
spacing: n = "space-x-2",
|
|
289
|
-
element: r,
|
|
290
|
-
className: o,
|
|
291
|
-
...a
|
|
292
|
-
}) => /* @__PURE__ */ l(q, { className: E("flex", t === "vertical" ? "flex-col" : "flex-row", n, o), element: r, ...a, children: e }), Z = ({
|
|
293
|
-
className: e,
|
|
131
|
+
), Ae = ({ className: t = "", children: e, ...a }) => /* @__PURE__ */ s(b, { element: "section", className: t, ...a, children: e }), ze = ({
|
|
294
132
|
children: t,
|
|
295
|
-
|
|
133
|
+
direction: e = "horizontal",
|
|
134
|
+
spacing: a = "space-x-2",
|
|
135
|
+
element: r,
|
|
136
|
+
className: n,
|
|
137
|
+
...l
|
|
138
|
+
}) => /* @__PURE__ */ s(b, { className: i("flex", e === "vertical" ? "flex-col" : "flex-row", a, n), element: r, ...l, children: t }), h = ({
|
|
139
|
+
className: t,
|
|
140
|
+
children: e,
|
|
141
|
+
element: a,
|
|
296
142
|
weight: r,
|
|
297
|
-
variant:
|
|
298
|
-
size:
|
|
299
|
-
...
|
|
300
|
-
}) => /* @__PURE__ */
|
|
301
|
-
|
|
143
|
+
variant: n,
|
|
144
|
+
size: l,
|
|
145
|
+
...o
|
|
146
|
+
}) => /* @__PURE__ */ s(
|
|
147
|
+
a,
|
|
302
148
|
{
|
|
303
149
|
"data-testid": "text",
|
|
304
|
-
className:
|
|
150
|
+
className: i(
|
|
305
151
|
"font-normal text-base",
|
|
306
|
-
|
|
307
|
-
r &&
|
|
308
|
-
|
|
309
|
-
|
|
152
|
+
l && W[l],
|
|
153
|
+
r && q[r],
|
|
154
|
+
n && U[n],
|
|
155
|
+
t
|
|
310
156
|
),
|
|
311
|
-
...
|
|
312
|
-
children:
|
|
157
|
+
...o,
|
|
158
|
+
children: e
|
|
313
159
|
}
|
|
314
160
|
);
|
|
315
|
-
function
|
|
316
|
-
className:
|
|
317
|
-
variant:
|
|
318
|
-
size:
|
|
161
|
+
function Me({
|
|
162
|
+
className: t,
|
|
163
|
+
variant: e,
|
|
164
|
+
size: a,
|
|
319
165
|
asChild: r = !1,
|
|
320
|
-
...
|
|
166
|
+
...n
|
|
321
167
|
}) {
|
|
322
|
-
return /* @__PURE__ */
|
|
323
|
-
r ?
|
|
168
|
+
return /* @__PURE__ */ s(
|
|
169
|
+
r ? J : "button",
|
|
324
170
|
{
|
|
325
171
|
"data-slot": "button",
|
|
326
|
-
className:
|
|
327
|
-
...
|
|
172
|
+
className: i(H({ variant: e, size: a, className: t })),
|
|
173
|
+
...n,
|
|
328
174
|
"data-testid": "button"
|
|
329
175
|
}
|
|
330
176
|
);
|
|
331
177
|
}
|
|
332
|
-
function
|
|
333
|
-
return /* @__PURE__ */
|
|
178
|
+
function Fe({ className: t, type: e, ...a }) {
|
|
179
|
+
return /* @__PURE__ */ s(
|
|
334
180
|
"input",
|
|
335
181
|
{
|
|
336
|
-
type:
|
|
182
|
+
type: e,
|
|
337
183
|
"data-slot": "input",
|
|
338
|
-
className:
|
|
184
|
+
className: i(
|
|
339
185
|
`
|
|
340
186
|
flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
|
|
341
187
|
px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
|
|
@@ -357,46 +203,46 @@ function ra({ className: e, type: t, ...n }) {
|
|
|
357
203
|
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
358
204
|
dark:aria-invalid:ring-destructive/40
|
|
359
205
|
`,
|
|
360
|
-
|
|
206
|
+
t
|
|
361
207
|
),
|
|
362
|
-
...
|
|
208
|
+
...a,
|
|
363
209
|
"data-testid": "input"
|
|
364
210
|
}
|
|
365
211
|
);
|
|
366
212
|
}
|
|
367
|
-
const
|
|
213
|
+
const re = Q(
|
|
368
214
|
({
|
|
369
|
-
children:
|
|
370
|
-
className:
|
|
371
|
-
colors:
|
|
215
|
+
children: t,
|
|
216
|
+
className: e = "",
|
|
217
|
+
colors: a = ["#FF0080", "#7928CA", "#0070F3", "#38bdf8"],
|
|
372
218
|
speed: r = 1
|
|
373
219
|
}) => {
|
|
374
|
-
const
|
|
375
|
-
backgroundImage: `linear-gradient(135deg, ${
|
|
220
|
+
const n = {
|
|
221
|
+
backgroundImage: `linear-gradient(135deg, ${a.join(", ")}, ${a[0]})`,
|
|
376
222
|
WebkitBackgroundClip: "text",
|
|
377
223
|
WebkitTextFillColor: "transparent",
|
|
378
224
|
animationDuration: `${10 / r}s`
|
|
379
225
|
};
|
|
380
|
-
return /* @__PURE__ */
|
|
226
|
+
return /* @__PURE__ */ x(
|
|
381
227
|
"span",
|
|
382
228
|
{
|
|
383
229
|
className: `
|
|
384
230
|
relative inline-block
|
|
385
|
-
${
|
|
231
|
+
${e}
|
|
386
232
|
`,
|
|
387
233
|
"data-testid": "auroraText",
|
|
388
234
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
390
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: t }),
|
|
236
|
+
/* @__PURE__ */ s(
|
|
391
237
|
"span",
|
|
392
238
|
{
|
|
393
239
|
className: `
|
|
394
240
|
relative animate-aurora bg-clip-text text-transparent
|
|
395
241
|
bg-[length:200%_auto]
|
|
396
242
|
`,
|
|
397
|
-
style:
|
|
243
|
+
style: n,
|
|
398
244
|
"aria-hidden": "true",
|
|
399
|
-
children:
|
|
245
|
+
children: t
|
|
400
246
|
}
|
|
401
247
|
)
|
|
402
248
|
]
|
|
@@ -404,28 +250,28 @@ const Nn = sn(
|
|
|
404
250
|
);
|
|
405
251
|
}
|
|
406
252
|
);
|
|
407
|
-
|
|
408
|
-
function
|
|
409
|
-
return /* @__PURE__ */
|
|
253
|
+
re.displayName = "AuroraText";
|
|
254
|
+
function ne({ ...t }) {
|
|
255
|
+
return /* @__PURE__ */ s(u.Root, { "data-slot": "select", ...t });
|
|
410
256
|
}
|
|
411
|
-
function
|
|
412
|
-
return /* @__PURE__ */
|
|
257
|
+
function De({ ...t }) {
|
|
258
|
+
return /* @__PURE__ */ s(u.Group, { "data-slot": "select-group", ...t });
|
|
413
259
|
}
|
|
414
|
-
function
|
|
415
|
-
return /* @__PURE__ */
|
|
260
|
+
function se({ ...t }) {
|
|
261
|
+
return /* @__PURE__ */ s(u.Value, { "data-slot": "select-value", ...t });
|
|
416
262
|
}
|
|
417
|
-
function
|
|
418
|
-
className:
|
|
419
|
-
size:
|
|
420
|
-
children:
|
|
263
|
+
function le({
|
|
264
|
+
className: t,
|
|
265
|
+
size: e = "default",
|
|
266
|
+
children: a,
|
|
421
267
|
...r
|
|
422
268
|
}) {
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
-
|
|
269
|
+
return /* @__PURE__ */ x(
|
|
270
|
+
u.Trigger,
|
|
425
271
|
{
|
|
426
272
|
"data-slot": "select-trigger",
|
|
427
|
-
"data-size":
|
|
428
|
-
className:
|
|
273
|
+
"data-size": e,
|
|
274
|
+
className: i(
|
|
429
275
|
`
|
|
430
276
|
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
431
277
|
border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
|
|
@@ -447,27 +293,27 @@ function An({
|
|
|
447
293
|
[&_svg:not([class*='size-'])]:size-4
|
|
448
294
|
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
449
295
|
`,
|
|
450
|
-
|
|
296
|
+
t
|
|
451
297
|
),
|
|
452
298
|
...r,
|
|
453
299
|
children: [
|
|
454
|
-
|
|
455
|
-
/* @__PURE__ */
|
|
300
|
+
a,
|
|
301
|
+
/* @__PURE__ */ s(u.Icon, { asChild: !0, children: /* @__PURE__ */ s(I, { className: "size-4 opacity-50" }) })
|
|
456
302
|
]
|
|
457
303
|
}
|
|
458
304
|
);
|
|
459
305
|
}
|
|
460
|
-
function
|
|
461
|
-
className:
|
|
462
|
-
children:
|
|
463
|
-
position:
|
|
306
|
+
function oe({
|
|
307
|
+
className: t,
|
|
308
|
+
children: e,
|
|
309
|
+
position: a = "popper",
|
|
464
310
|
...r
|
|
465
311
|
}) {
|
|
466
|
-
return /* @__PURE__ */
|
|
467
|
-
|
|
312
|
+
return /* @__PURE__ */ s(u.Portal, { "data-testid": "select", children: /* @__PURE__ */ x(
|
|
313
|
+
u.Content,
|
|
468
314
|
{
|
|
469
315
|
"data-slot": "select-content",
|
|
470
|
-
className:
|
|
316
|
+
className: i(
|
|
471
317
|
`
|
|
472
318
|
relative z-50 max-h-(--radix-select-content-available-height)
|
|
473
319
|
min-w-[8rem] origin-(--radix-select-content-transform-origin)
|
|
@@ -482,56 +328,56 @@ function Dn({
|
|
|
482
328
|
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
483
329
|
data-[state=open]:zoom-in-95
|
|
484
330
|
`,
|
|
485
|
-
|
|
331
|
+
a === "popper" && `
|
|
486
332
|
data-[side=bottom]:translate-y-1
|
|
487
333
|
data-[side=left]:-translate-x-1
|
|
488
334
|
data-[side=right]:translate-x-1
|
|
489
335
|
data-[side=top]:-translate-y-1
|
|
490
336
|
`,
|
|
491
|
-
|
|
337
|
+
t
|
|
492
338
|
),
|
|
493
|
-
position:
|
|
339
|
+
position: a,
|
|
494
340
|
...r,
|
|
495
341
|
children: [
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
/* @__PURE__ */
|
|
498
|
-
|
|
342
|
+
/* @__PURE__ */ s(ce, {}),
|
|
343
|
+
/* @__PURE__ */ s(
|
|
344
|
+
u.Viewport,
|
|
499
345
|
{
|
|
500
|
-
className:
|
|
346
|
+
className: i(
|
|
501
347
|
"p-1",
|
|
502
|
-
|
|
348
|
+
a === "popper" && `
|
|
503
349
|
h-[var(--radix-select-trigger-height)] w-full
|
|
504
350
|
min-w-[var(--radix-select-trigger-width)] scroll-my-1
|
|
505
351
|
`
|
|
506
352
|
),
|
|
507
|
-
children:
|
|
353
|
+
children: e
|
|
508
354
|
}
|
|
509
355
|
),
|
|
510
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ s(ue, {})
|
|
511
357
|
]
|
|
512
358
|
}
|
|
513
359
|
) });
|
|
514
360
|
}
|
|
515
|
-
function
|
|
516
|
-
return /* @__PURE__ */
|
|
517
|
-
|
|
361
|
+
function Ce({ className: t, ...e }) {
|
|
362
|
+
return /* @__PURE__ */ s(
|
|
363
|
+
u.Label,
|
|
518
364
|
{
|
|
519
365
|
"data-slot": "select-label",
|
|
520
|
-
className:
|
|
521
|
-
...
|
|
366
|
+
className: i("px-2 py-1.5 text-xs text-muted-foreground", t),
|
|
367
|
+
...e
|
|
522
368
|
}
|
|
523
369
|
);
|
|
524
370
|
}
|
|
525
|
-
function
|
|
526
|
-
className:
|
|
527
|
-
children:
|
|
528
|
-
...
|
|
371
|
+
function ie({
|
|
372
|
+
className: t,
|
|
373
|
+
children: e,
|
|
374
|
+
...a
|
|
529
375
|
}) {
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
|
|
376
|
+
return /* @__PURE__ */ x(
|
|
377
|
+
u.Item,
|
|
532
378
|
{
|
|
533
379
|
"data-slot": "select-item",
|
|
534
|
-
className:
|
|
380
|
+
className: i(
|
|
535
381
|
`
|
|
536
382
|
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
537
383
|
py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
|
|
@@ -542,1682 +388,198 @@ function Pn({
|
|
|
542
388
|
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
543
389
|
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
544
390
|
`,
|
|
545
|
-
|
|
391
|
+
t
|
|
546
392
|
),
|
|
547
|
-
...
|
|
393
|
+
...a,
|
|
548
394
|
children: [
|
|
549
|
-
/* @__PURE__ */
|
|
550
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ s("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ s(u.ItemIndicator, { children: /* @__PURE__ */ s(Z, { className: "size-4" }) }) }),
|
|
396
|
+
/* @__PURE__ */ s(u.ItemText, { children: e })
|
|
551
397
|
]
|
|
552
398
|
}
|
|
553
399
|
);
|
|
554
400
|
}
|
|
555
|
-
function
|
|
556
|
-
className:
|
|
557
|
-
...
|
|
401
|
+
function je({
|
|
402
|
+
className: t,
|
|
403
|
+
...e
|
|
558
404
|
}) {
|
|
559
|
-
return /* @__PURE__ */
|
|
560
|
-
|
|
405
|
+
return /* @__PURE__ */ s(
|
|
406
|
+
u.Separator,
|
|
561
407
|
{
|
|
562
408
|
"data-slot": "select-separator",
|
|
563
|
-
className:
|
|
564
|
-
...
|
|
409
|
+
className: i("pointer-events-none -mx-1 my-1 h-px bg-border", t),
|
|
410
|
+
...e
|
|
565
411
|
}
|
|
566
412
|
);
|
|
567
413
|
}
|
|
568
|
-
function
|
|
569
|
-
className:
|
|
570
|
-
...
|
|
414
|
+
function ce({
|
|
415
|
+
className: t,
|
|
416
|
+
...e
|
|
571
417
|
}) {
|
|
572
|
-
return /* @__PURE__ */
|
|
573
|
-
|
|
418
|
+
return /* @__PURE__ */ s(
|
|
419
|
+
u.ScrollUpButton,
|
|
574
420
|
{
|
|
575
421
|
"data-slot": "select-scroll-up-button",
|
|
576
|
-
className:
|
|
577
|
-
...
|
|
578
|
-
children: /* @__PURE__ */
|
|
579
|
-
}
|
|
580
|
-
);
|
|
581
|
-
}
|
|
582
|
-
function Tn({
|
|
583
|
-
className: e,
|
|
584
|
-
...t
|
|
585
|
-
}) {
|
|
586
|
-
return /* @__PURE__ */ l(
|
|
587
|
-
D.ScrollDownButton,
|
|
588
|
-
{
|
|
589
|
-
"data-slot": "select-scroll-down-button",
|
|
590
|
-
className: E("flex cursor-default items-center justify-center py-1", e),
|
|
591
|
-
...t,
|
|
592
|
-
children: /* @__PURE__ */ l(Xe, { className: "size-4" })
|
|
593
|
-
}
|
|
594
|
-
);
|
|
595
|
-
}
|
|
596
|
-
function On(e, t) {
|
|
597
|
-
const n = s.createContext(t), r = (a) => {
|
|
598
|
-
const { children: c, ...i } = a, v = s.useMemo(() => i, Object.values(i));
|
|
599
|
-
return /* @__PURE__ */ l(n.Provider, { value: v, children: c });
|
|
600
|
-
};
|
|
601
|
-
r.displayName = e + "Provider";
|
|
602
|
-
function o(a) {
|
|
603
|
-
const c = s.useContext(n);
|
|
604
|
-
if (c) return c;
|
|
605
|
-
if (t !== void 0) return t;
|
|
606
|
-
throw new Error(`\`${a}\` must be used within \`${e}\``);
|
|
607
|
-
}
|
|
608
|
-
return [r, o];
|
|
609
|
-
}
|
|
610
|
-
function et(e, t = []) {
|
|
611
|
-
let n = [];
|
|
612
|
-
function r(a, c) {
|
|
613
|
-
const i = s.createContext(c), v = n.length;
|
|
614
|
-
n = [...n, c];
|
|
615
|
-
const u = (g) => {
|
|
616
|
-
var b;
|
|
617
|
-
const { scope: m, children: h, ...x } = g, d = ((b = m == null ? void 0 : m[e]) == null ? void 0 : b[v]) || i, p = s.useMemo(() => x, Object.values(x));
|
|
618
|
-
return /* @__PURE__ */ l(d.Provider, { value: p, children: h });
|
|
619
|
-
};
|
|
620
|
-
u.displayName = a + "Provider";
|
|
621
|
-
function f(g, m) {
|
|
622
|
-
var d;
|
|
623
|
-
const h = ((d = m == null ? void 0 : m[e]) == null ? void 0 : d[v]) || i, x = s.useContext(h);
|
|
624
|
-
if (x) return x;
|
|
625
|
-
if (c !== void 0) return c;
|
|
626
|
-
throw new Error(`\`${g}\` must be used within \`${a}\``);
|
|
627
|
-
}
|
|
628
|
-
return [u, f];
|
|
629
|
-
}
|
|
630
|
-
const o = () => {
|
|
631
|
-
const a = n.map((c) => s.createContext(c));
|
|
632
|
-
return function(i) {
|
|
633
|
-
const v = (i == null ? void 0 : i[e]) || a;
|
|
634
|
-
return s.useMemo(
|
|
635
|
-
() => ({ [`__scope${e}`]: { ...i, [e]: v } }),
|
|
636
|
-
[i, v]
|
|
637
|
-
);
|
|
638
|
-
};
|
|
639
|
-
};
|
|
640
|
-
return o.scopeName = e, [r, _n(o, ...t)];
|
|
641
|
-
}
|
|
642
|
-
function _n(...e) {
|
|
643
|
-
const t = e[0];
|
|
644
|
-
if (e.length === 1) return t;
|
|
645
|
-
const n = () => {
|
|
646
|
-
const r = e.map((o) => ({
|
|
647
|
-
useScope: o(),
|
|
648
|
-
scopeName: o.scopeName
|
|
649
|
-
}));
|
|
650
|
-
return function(a) {
|
|
651
|
-
const c = r.reduce((i, { useScope: v, scopeName: u }) => {
|
|
652
|
-
const g = v(a)[`__scope${u}`];
|
|
653
|
-
return { ...i, ...g };
|
|
654
|
-
}, {});
|
|
655
|
-
return s.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
|
|
656
|
-
};
|
|
657
|
-
};
|
|
658
|
-
return n.scopeName = t.scopeName, n;
|
|
659
|
-
}
|
|
660
|
-
function Ie(e, t) {
|
|
661
|
-
if (typeof e == "function")
|
|
662
|
-
return e(t);
|
|
663
|
-
e != null && (e.current = t);
|
|
664
|
-
}
|
|
665
|
-
function Mn(...e) {
|
|
666
|
-
return (t) => {
|
|
667
|
-
let n = !1;
|
|
668
|
-
const r = e.map((o) => {
|
|
669
|
-
const a = Ie(o, t);
|
|
670
|
-
return !n && typeof a == "function" && (n = !0), a;
|
|
671
|
-
});
|
|
672
|
-
if (n)
|
|
673
|
-
return () => {
|
|
674
|
-
for (let o = 0; o < r.length; o++) {
|
|
675
|
-
const a = r[o];
|
|
676
|
-
typeof a == "function" ? a() : Ie(e[o], null);
|
|
677
|
-
}
|
|
678
|
-
};
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
function I(...e) {
|
|
682
|
-
return s.useCallback(Mn(...e), e);
|
|
683
|
-
}
|
|
684
|
-
function M(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
685
|
-
return function(o) {
|
|
686
|
-
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
687
|
-
return t == null ? void 0 : t(o);
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
var H = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
|
|
691
|
-
}, Ln = s[" useId ".trim().toString()] || (() => {
|
|
692
|
-
}), In = 0;
|
|
693
|
-
function ve(e) {
|
|
694
|
-
const [t, n] = s.useState(Ln());
|
|
695
|
-
return H(() => {
|
|
696
|
-
n((r) => r ?? String(In++));
|
|
697
|
-
}, [e]), e || (t ? `radix-${t}` : "");
|
|
698
|
-
}
|
|
699
|
-
var kn = s[" useInsertionEffect ".trim().toString()] || H;
|
|
700
|
-
function Fn({
|
|
701
|
-
prop: e,
|
|
702
|
-
defaultProp: t,
|
|
703
|
-
onChange: n = () => {
|
|
704
|
-
},
|
|
705
|
-
caller: r
|
|
706
|
-
}) {
|
|
707
|
-
const [o, a, c] = Wn({
|
|
708
|
-
defaultProp: t,
|
|
709
|
-
onChange: n
|
|
710
|
-
}), i = e !== void 0, v = i ? e : o;
|
|
711
|
-
{
|
|
712
|
-
const f = s.useRef(e !== void 0);
|
|
713
|
-
s.useEffect(() => {
|
|
714
|
-
const g = f.current;
|
|
715
|
-
g !== i && console.warn(
|
|
716
|
-
`${r} is changing from ${g ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
717
|
-
), f.current = i;
|
|
718
|
-
}, [i, r]);
|
|
719
|
-
}
|
|
720
|
-
const u = s.useCallback(
|
|
721
|
-
(f) => {
|
|
722
|
-
var g;
|
|
723
|
-
if (i) {
|
|
724
|
-
const m = $n(f) ? f(e) : f;
|
|
725
|
-
m !== e && ((g = c.current) == null || g.call(c, m));
|
|
726
|
-
} else
|
|
727
|
-
a(f);
|
|
728
|
-
},
|
|
729
|
-
[i, e, a, c]
|
|
730
|
-
);
|
|
731
|
-
return [v, u];
|
|
732
|
-
}
|
|
733
|
-
function Wn({
|
|
734
|
-
defaultProp: e,
|
|
735
|
-
onChange: t
|
|
736
|
-
}) {
|
|
737
|
-
const [n, r] = s.useState(e), o = s.useRef(n), a = s.useRef(t);
|
|
738
|
-
return kn(() => {
|
|
739
|
-
a.current = t;
|
|
740
|
-
}, [t]), s.useEffect(() => {
|
|
741
|
-
var c;
|
|
742
|
-
o.current !== n && ((c = a.current) == null || c.call(a, n), o.current = n);
|
|
743
|
-
}, [n, o]), [n, r, a];
|
|
744
|
-
}
|
|
745
|
-
function $n(e) {
|
|
746
|
-
return typeof e == "function";
|
|
747
|
-
}
|
|
748
|
-
var Bn = [
|
|
749
|
-
"a",
|
|
750
|
-
"button",
|
|
751
|
-
"div",
|
|
752
|
-
"form",
|
|
753
|
-
"h2",
|
|
754
|
-
"h3",
|
|
755
|
-
"img",
|
|
756
|
-
"input",
|
|
757
|
-
"label",
|
|
758
|
-
"li",
|
|
759
|
-
"nav",
|
|
760
|
-
"ol",
|
|
761
|
-
"p",
|
|
762
|
-
"select",
|
|
763
|
-
"span",
|
|
764
|
-
"svg",
|
|
765
|
-
"ul"
|
|
766
|
-
], k = Bn.reduce((e, t) => {
|
|
767
|
-
const n = He(`Primitive.${t}`), r = s.forwardRef((o, a) => {
|
|
768
|
-
const { asChild: c, ...i } = o, v = c ? n : t;
|
|
769
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(v, { ...i, ref: a });
|
|
770
|
-
});
|
|
771
|
-
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
772
|
-
}, {});
|
|
773
|
-
function Un(e, t) {
|
|
774
|
-
e && dn.flushSync(() => e.dispatchEvent(t));
|
|
775
|
-
}
|
|
776
|
-
function X(e) {
|
|
777
|
-
const t = s.useRef(e);
|
|
778
|
-
return s.useEffect(() => {
|
|
779
|
-
t.current = e;
|
|
780
|
-
}), s.useMemo(() => (...n) => {
|
|
781
|
-
var r;
|
|
782
|
-
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
783
|
-
}, []);
|
|
784
|
-
}
|
|
785
|
-
function zn(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
786
|
-
const n = X(e);
|
|
787
|
-
s.useEffect(() => {
|
|
788
|
-
const r = (o) => {
|
|
789
|
-
o.key === "Escape" && n(o);
|
|
790
|
-
};
|
|
791
|
-
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
792
|
-
}, [n, t]);
|
|
793
|
-
}
|
|
794
|
-
var jn = "DismissableLayer", Ne = "dismissableLayer.update", Vn = "dismissableLayer.pointerDownOutside", Gn = "dismissableLayer.focusOutside", ke, tt = s.createContext({
|
|
795
|
-
layers: /* @__PURE__ */ new Set(),
|
|
796
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
797
|
-
branches: /* @__PURE__ */ new Set()
|
|
798
|
-
}), nt = s.forwardRef(
|
|
799
|
-
(e, t) => {
|
|
800
|
-
const {
|
|
801
|
-
disableOutsidePointerEvents: n = !1,
|
|
802
|
-
onEscapeKeyDown: r,
|
|
803
|
-
onPointerDownOutside: o,
|
|
804
|
-
onFocusOutside: a,
|
|
805
|
-
onInteractOutside: c,
|
|
806
|
-
onDismiss: i,
|
|
807
|
-
...v
|
|
808
|
-
} = e, u = s.useContext(tt), [f, g] = s.useState(null), m = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = s.useState({}), x = I(t, (y) => g(y)), d = Array.from(u.layers), [p] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = d.indexOf(p), w = f ? d.indexOf(f) : -1, N = u.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= b, C = Hn((y) => {
|
|
809
|
-
const _ = y.target, Y = [...u.branches].some((fe) => fe.contains(_));
|
|
810
|
-
!S || Y || (o == null || o(y), c == null || c(y), y.defaultPrevented || i == null || i());
|
|
811
|
-
}, m), O = Xn((y) => {
|
|
812
|
-
const _ = y.target;
|
|
813
|
-
[...u.branches].some((fe) => fe.contains(_)) || (a == null || a(y), c == null || c(y), y.defaultPrevented || i == null || i());
|
|
814
|
-
}, m);
|
|
815
|
-
return zn((y) => {
|
|
816
|
-
w === u.layers.size - 1 && (r == null || r(y), !y.defaultPrevented && i && (y.preventDefault(), i()));
|
|
817
|
-
}, m), s.useEffect(() => {
|
|
818
|
-
if (f)
|
|
819
|
-
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ke = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(f)), u.layers.add(f), Fe(), () => {
|
|
820
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = ke);
|
|
821
|
-
};
|
|
822
|
-
}, [f, m, n, u]), s.useEffect(() => () => {
|
|
823
|
-
f && (u.layers.delete(f), u.layersWithOutsidePointerEventsDisabled.delete(f), Fe());
|
|
824
|
-
}, [f, u]), s.useEffect(() => {
|
|
825
|
-
const y = () => h({});
|
|
826
|
-
return document.addEventListener(Ne, y), () => document.removeEventListener(Ne, y);
|
|
827
|
-
}, []), /* @__PURE__ */ l(
|
|
828
|
-
k.div,
|
|
829
|
-
{
|
|
830
|
-
...v,
|
|
831
|
-
ref: x,
|
|
832
|
-
style: {
|
|
833
|
-
pointerEvents: N ? S ? "auto" : "none" : void 0,
|
|
834
|
-
...e.style
|
|
835
|
-
},
|
|
836
|
-
onFocusCapture: M(e.onFocusCapture, O.onFocusCapture),
|
|
837
|
-
onBlurCapture: M(e.onBlurCapture, O.onBlurCapture),
|
|
838
|
-
onPointerDownCapture: M(
|
|
839
|
-
e.onPointerDownCapture,
|
|
840
|
-
C.onPointerDownCapture
|
|
841
|
-
)
|
|
842
|
-
}
|
|
843
|
-
);
|
|
844
|
-
}
|
|
845
|
-
);
|
|
846
|
-
nt.displayName = jn;
|
|
847
|
-
var Kn = "DismissableLayerBranch", Yn = s.forwardRef((e, t) => {
|
|
848
|
-
const n = s.useContext(tt), r = s.useRef(null), o = I(t, r);
|
|
849
|
-
return s.useEffect(() => {
|
|
850
|
-
const a = r.current;
|
|
851
|
-
if (a)
|
|
852
|
-
return n.branches.add(a), () => {
|
|
853
|
-
n.branches.delete(a);
|
|
854
|
-
};
|
|
855
|
-
}, [n.branches]), /* @__PURE__ */ l(k.div, { ...e, ref: o });
|
|
856
|
-
});
|
|
857
|
-
Yn.displayName = Kn;
|
|
858
|
-
function Hn(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
859
|
-
const n = X(e), r = s.useRef(!1), o = s.useRef(() => {
|
|
860
|
-
});
|
|
861
|
-
return s.useEffect(() => {
|
|
862
|
-
const a = (i) => {
|
|
863
|
-
if (i.target && !r.current) {
|
|
864
|
-
let v = function() {
|
|
865
|
-
rt(
|
|
866
|
-
Vn,
|
|
867
|
-
n,
|
|
868
|
-
u,
|
|
869
|
-
{ discrete: !0 }
|
|
870
|
-
);
|
|
871
|
-
};
|
|
872
|
-
const u = { originalEvent: i };
|
|
873
|
-
i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = v, t.addEventListener("click", o.current, { once: !0 })) : v();
|
|
874
|
-
} else
|
|
875
|
-
t.removeEventListener("click", o.current);
|
|
876
|
-
r.current = !1;
|
|
877
|
-
}, c = window.setTimeout(() => {
|
|
878
|
-
t.addEventListener("pointerdown", a);
|
|
879
|
-
}, 0);
|
|
880
|
-
return () => {
|
|
881
|
-
window.clearTimeout(c), t.removeEventListener("pointerdown", a), t.removeEventListener("click", o.current);
|
|
882
|
-
};
|
|
883
|
-
}, [t, n]), {
|
|
884
|
-
// ensures we check React component tree (not just DOM tree)
|
|
885
|
-
onPointerDownCapture: () => r.current = !0
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
function Xn(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
889
|
-
const n = X(e), r = s.useRef(!1);
|
|
890
|
-
return s.useEffect(() => {
|
|
891
|
-
const o = (a) => {
|
|
892
|
-
a.target && !r.current && rt(Gn, n, { originalEvent: a }, {
|
|
893
|
-
discrete: !1
|
|
894
|
-
});
|
|
895
|
-
};
|
|
896
|
-
return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
|
|
897
|
-
}, [t, n]), {
|
|
898
|
-
onFocusCapture: () => r.current = !0,
|
|
899
|
-
onBlurCapture: () => r.current = !1
|
|
900
|
-
};
|
|
901
|
-
}
|
|
902
|
-
function Fe() {
|
|
903
|
-
const e = new CustomEvent(Ne);
|
|
904
|
-
document.dispatchEvent(e);
|
|
905
|
-
}
|
|
906
|
-
function rt(e, t, n, { discrete: r }) {
|
|
907
|
-
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
908
|
-
t && o.addEventListener(e, t, { once: !0 }), r ? Un(o, a) : o.dispatchEvent(a);
|
|
909
|
-
}
|
|
910
|
-
var ge = "focusScope.autoFocusOnMount", me = "focusScope.autoFocusOnUnmount", We = { bubbles: !1, cancelable: !0 }, qn = "FocusScope", ot = s.forwardRef((e, t) => {
|
|
911
|
-
const {
|
|
912
|
-
loop: n = !1,
|
|
913
|
-
trapped: r = !1,
|
|
914
|
-
onMountAutoFocus: o,
|
|
915
|
-
onUnmountAutoFocus: a,
|
|
916
|
-
...c
|
|
917
|
-
} = e, [i, v] = s.useState(null), u = X(o), f = X(a), g = s.useRef(null), m = I(t, (d) => v(d)), h = s.useRef({
|
|
918
|
-
paused: !1,
|
|
919
|
-
pause() {
|
|
920
|
-
this.paused = !0;
|
|
921
|
-
},
|
|
922
|
-
resume() {
|
|
923
|
-
this.paused = !1;
|
|
924
|
-
}
|
|
925
|
-
}).current;
|
|
926
|
-
s.useEffect(() => {
|
|
927
|
-
if (r) {
|
|
928
|
-
let d = function(N) {
|
|
929
|
-
if (h.paused || !i) return;
|
|
930
|
-
const S = N.target;
|
|
931
|
-
i.contains(S) ? g.current = S : W(g.current, { select: !0 });
|
|
932
|
-
}, p = function(N) {
|
|
933
|
-
if (h.paused || !i) return;
|
|
934
|
-
const S = N.relatedTarget;
|
|
935
|
-
S !== null && (i.contains(S) || W(g.current, { select: !0 }));
|
|
936
|
-
}, b = function(N) {
|
|
937
|
-
if (document.activeElement === document.body)
|
|
938
|
-
for (const C of N)
|
|
939
|
-
C.removedNodes.length > 0 && W(i);
|
|
940
|
-
};
|
|
941
|
-
document.addEventListener("focusin", d), document.addEventListener("focusout", p);
|
|
942
|
-
const w = new MutationObserver(b);
|
|
943
|
-
return i && w.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
944
|
-
document.removeEventListener("focusin", d), document.removeEventListener("focusout", p), w.disconnect();
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
}, [r, i, h.paused]), s.useEffect(() => {
|
|
948
|
-
if (i) {
|
|
949
|
-
Be.add(h);
|
|
950
|
-
const d = document.activeElement;
|
|
951
|
-
if (!i.contains(d)) {
|
|
952
|
-
const b = new CustomEvent(ge, We);
|
|
953
|
-
i.addEventListener(ge, u), i.dispatchEvent(b), b.defaultPrevented || (Zn(nr(at(i)), { select: !0 }), document.activeElement === d && W(i));
|
|
954
|
-
}
|
|
955
|
-
return () => {
|
|
956
|
-
i.removeEventListener(ge, u), setTimeout(() => {
|
|
957
|
-
const b = new CustomEvent(me, We);
|
|
958
|
-
i.addEventListener(me, f), i.dispatchEvent(b), b.defaultPrevented || W(d ?? document.body, { select: !0 }), i.removeEventListener(me, f), Be.remove(h);
|
|
959
|
-
}, 0);
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
}, [i, u, f, h]);
|
|
963
|
-
const x = s.useCallback(
|
|
964
|
-
(d) => {
|
|
965
|
-
if (!n && !r || h.paused) return;
|
|
966
|
-
const p = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, b = document.activeElement;
|
|
967
|
-
if (p && b) {
|
|
968
|
-
const w = d.currentTarget, [N, S] = Qn(w);
|
|
969
|
-
N && S ? !d.shiftKey && b === S ? (d.preventDefault(), n && W(N, { select: !0 })) : d.shiftKey && b === N && (d.preventDefault(), n && W(S, { select: !0 })) : b === w && d.preventDefault();
|
|
970
|
-
}
|
|
971
|
-
},
|
|
972
|
-
[n, r, h.paused]
|
|
973
|
-
);
|
|
974
|
-
return /* @__PURE__ */ l(k.div, { tabIndex: -1, ...c, ref: m, onKeyDown: x });
|
|
975
|
-
});
|
|
976
|
-
ot.displayName = qn;
|
|
977
|
-
function Zn(e, { select: t = !1 } = {}) {
|
|
978
|
-
const n = document.activeElement;
|
|
979
|
-
for (const r of e)
|
|
980
|
-
if (W(r, { select: t }), document.activeElement !== n) return;
|
|
981
|
-
}
|
|
982
|
-
function Qn(e) {
|
|
983
|
-
const t = at(e), n = $e(t, e), r = $e(t.reverse(), e);
|
|
984
|
-
return [n, r];
|
|
985
|
-
}
|
|
986
|
-
function at(e) {
|
|
987
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
988
|
-
acceptNode: (r) => {
|
|
989
|
-
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
990
|
-
return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
994
|
-
return t;
|
|
995
|
-
}
|
|
996
|
-
function $e(e, t) {
|
|
997
|
-
for (const n of e)
|
|
998
|
-
if (!Jn(n, { upTo: t })) return n;
|
|
999
|
-
}
|
|
1000
|
-
function Jn(e, { upTo: t }) {
|
|
1001
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1002
|
-
for (; e; ) {
|
|
1003
|
-
if (t !== void 0 && e === t) return !1;
|
|
1004
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
1005
|
-
e = e.parentElement;
|
|
1006
|
-
}
|
|
1007
|
-
return !1;
|
|
1008
|
-
}
|
|
1009
|
-
function er(e) {
|
|
1010
|
-
return e instanceof HTMLInputElement && "select" in e;
|
|
1011
|
-
}
|
|
1012
|
-
function W(e, { select: t = !1 } = {}) {
|
|
1013
|
-
if (e && e.focus) {
|
|
1014
|
-
const n = document.activeElement;
|
|
1015
|
-
e.focus({ preventScroll: !0 }), e !== n && er(e) && t && e.select();
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
var Be = tr();
|
|
1019
|
-
function tr() {
|
|
1020
|
-
let e = [];
|
|
1021
|
-
return {
|
|
1022
|
-
add(t) {
|
|
1023
|
-
const n = e[0];
|
|
1024
|
-
t !== n && (n == null || n.pause()), e = Ue(e, t), e.unshift(t);
|
|
1025
|
-
},
|
|
1026
|
-
remove(t) {
|
|
1027
|
-
var n;
|
|
1028
|
-
e = Ue(e, t), (n = e[0]) == null || n.resume();
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
function Ue(e, t) {
|
|
1033
|
-
const n = [...e], r = n.indexOf(t);
|
|
1034
|
-
return r !== -1 && n.splice(r, 1), n;
|
|
1035
|
-
}
|
|
1036
|
-
function nr(e) {
|
|
1037
|
-
return e.filter((t) => t.tagName !== "A");
|
|
1038
|
-
}
|
|
1039
|
-
var rr = "Portal", it = s.forwardRef((e, t) => {
|
|
1040
|
-
var i;
|
|
1041
|
-
const { container: n, ...r } = e, [o, a] = s.useState(!1);
|
|
1042
|
-
H(() => a(!0), []);
|
|
1043
|
-
const c = n || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
1044
|
-
return c ? fn.createPortal(/* @__PURE__ */ l(k.div, { ...r, ref: t }), c) : null;
|
|
1045
|
-
});
|
|
1046
|
-
it.displayName = rr;
|
|
1047
|
-
function or(e, t) {
|
|
1048
|
-
return s.useReducer((n, r) => t[n][r] ?? n, e);
|
|
1049
|
-
}
|
|
1050
|
-
var ce = (e) => {
|
|
1051
|
-
const { present: t, children: n } = e, r = ar(t), o = typeof n == "function" ? n({ present: r.isPresent }) : s.Children.only(n), a = I(r.ref, ir(o));
|
|
1052
|
-
return typeof n == "function" || r.isPresent ? s.cloneElement(o, { ref: a }) : null;
|
|
1053
|
-
};
|
|
1054
|
-
ce.displayName = "Presence";
|
|
1055
|
-
function ar(e) {
|
|
1056
|
-
const [t, n] = s.useState(), r = s.useRef(null), o = s.useRef(e), a = s.useRef("none"), c = e ? "mounted" : "unmounted", [i, v] = or(c, {
|
|
1057
|
-
mounted: {
|
|
1058
|
-
UNMOUNT: "unmounted",
|
|
1059
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
1060
|
-
},
|
|
1061
|
-
unmountSuspended: {
|
|
1062
|
-
MOUNT: "mounted",
|
|
1063
|
-
ANIMATION_END: "unmounted"
|
|
1064
|
-
},
|
|
1065
|
-
unmounted: {
|
|
1066
|
-
MOUNT: "mounted"
|
|
1067
|
-
}
|
|
1068
|
-
});
|
|
1069
|
-
return s.useEffect(() => {
|
|
1070
|
-
const u = J(r.current);
|
|
1071
|
-
a.current = i === "mounted" ? u : "none";
|
|
1072
|
-
}, [i]), H(() => {
|
|
1073
|
-
const u = r.current, f = o.current;
|
|
1074
|
-
if (f !== e) {
|
|
1075
|
-
const m = a.current, h = J(u);
|
|
1076
|
-
e ? v("MOUNT") : h === "none" || (u == null ? void 0 : u.display) === "none" ? v("UNMOUNT") : v(f && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
1077
|
-
}
|
|
1078
|
-
}, [e, v]), H(() => {
|
|
1079
|
-
if (t) {
|
|
1080
|
-
let u;
|
|
1081
|
-
const f = t.ownerDocument.defaultView ?? window, g = (h) => {
|
|
1082
|
-
const d = J(r.current).includes(h.animationName);
|
|
1083
|
-
if (h.target === t && d && (v("ANIMATION_END"), !o.current)) {
|
|
1084
|
-
const p = t.style.animationFillMode;
|
|
1085
|
-
t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
|
|
1086
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = p);
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
}, m = (h) => {
|
|
1090
|
-
h.target === t && (a.current = J(r.current));
|
|
1091
|
-
};
|
|
1092
|
-
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", g), t.addEventListener("animationend", g), () => {
|
|
1093
|
-
f.clearTimeout(u), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", g), t.removeEventListener("animationend", g);
|
|
1094
|
-
};
|
|
1095
|
-
} else
|
|
1096
|
-
v("ANIMATION_END");
|
|
1097
|
-
}, [t, v]), {
|
|
1098
|
-
isPresent: ["mounted", "unmountSuspended"].includes(i),
|
|
1099
|
-
ref: s.useCallback((u) => {
|
|
1100
|
-
r.current = u ? getComputedStyle(u) : null, n(u);
|
|
1101
|
-
}, [])
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
function J(e) {
|
|
1105
|
-
return (e == null ? void 0 : e.animationName) || "none";
|
|
1106
|
-
}
|
|
1107
|
-
function ir(e) {
|
|
1108
|
-
var r, o;
|
|
1109
|
-
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1110
|
-
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1111
|
-
}
|
|
1112
|
-
var pe = 0;
|
|
1113
|
-
function sr() {
|
|
1114
|
-
s.useEffect(() => {
|
|
1115
|
-
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
1116
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ze()), document.body.insertAdjacentElement("beforeend", e[1] ?? ze()), pe++, () => {
|
|
1117
|
-
pe === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), pe--;
|
|
1118
|
-
};
|
|
1119
|
-
}, []);
|
|
1120
|
-
}
|
|
1121
|
-
function ze() {
|
|
1122
|
-
const e = document.createElement("span");
|
|
1123
|
-
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
1124
|
-
}
|
|
1125
|
-
var T = function() {
|
|
1126
|
-
return T = Object.assign || function(t) {
|
|
1127
|
-
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
1128
|
-
n = arguments[r];
|
|
1129
|
-
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1130
|
-
}
|
|
1131
|
-
return t;
|
|
1132
|
-
}, T.apply(this, arguments);
|
|
1133
|
-
};
|
|
1134
|
-
function st(e, t) {
|
|
1135
|
-
var n = {};
|
|
1136
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
1137
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1138
|
-
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
1139
|
-
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
1140
|
-
return n;
|
|
1141
|
-
}
|
|
1142
|
-
function cr(e, t, n) {
|
|
1143
|
-
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
1144
|
-
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
1145
|
-
return e.concat(a || Array.prototype.slice.call(t));
|
|
1146
|
-
}
|
|
1147
|
-
var oe = "right-scroll-bar-position", ae = "width-before-scroll-bar", lr = "with-scroll-bars-hidden", ur = "--removed-body-scroll-bar-size";
|
|
1148
|
-
function he(e, t) {
|
|
1149
|
-
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
1150
|
-
}
|
|
1151
|
-
function dr(e, t) {
|
|
1152
|
-
var n = cn(function() {
|
|
1153
|
-
return {
|
|
1154
|
-
// value
|
|
1155
|
-
value: e,
|
|
1156
|
-
// last callback
|
|
1157
|
-
callback: t,
|
|
1158
|
-
// "memoized" public interface
|
|
1159
|
-
facade: {
|
|
1160
|
-
get current() {
|
|
1161
|
-
return n.value;
|
|
1162
|
-
},
|
|
1163
|
-
set current(r) {
|
|
1164
|
-
var o = n.value;
|
|
1165
|
-
o !== r && (n.value = r, n.callback(r, o));
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
})[0];
|
|
1170
|
-
return n.callback = t, n.facade;
|
|
1171
|
-
}
|
|
1172
|
-
var fr = typeof window < "u" ? s.useLayoutEffect : s.useEffect, je = /* @__PURE__ */ new WeakMap();
|
|
1173
|
-
function vr(e, t) {
|
|
1174
|
-
var n = dr(null, function(r) {
|
|
1175
|
-
return e.forEach(function(o) {
|
|
1176
|
-
return he(o, r);
|
|
1177
|
-
});
|
|
1178
|
-
});
|
|
1179
|
-
return fr(function() {
|
|
1180
|
-
var r = je.get(n);
|
|
1181
|
-
if (r) {
|
|
1182
|
-
var o = new Set(r), a = new Set(e), c = n.current;
|
|
1183
|
-
o.forEach(function(i) {
|
|
1184
|
-
a.has(i) || he(i, null);
|
|
1185
|
-
}), a.forEach(function(i) {
|
|
1186
|
-
o.has(i) || he(i, c);
|
|
1187
|
-
});
|
|
422
|
+
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
423
|
+
...e,
|
|
424
|
+
children: /* @__PURE__ */ s(X, { className: "size-4" })
|
|
1188
425
|
}
|
|
1189
|
-
je.set(n, e);
|
|
1190
|
-
}, [e]), n;
|
|
1191
|
-
}
|
|
1192
|
-
function gr(e) {
|
|
1193
|
-
return e;
|
|
1194
|
-
}
|
|
1195
|
-
function mr(e, t) {
|
|
1196
|
-
t === void 0 && (t = gr);
|
|
1197
|
-
var n = [], r = !1, o = {
|
|
1198
|
-
read: function() {
|
|
1199
|
-
if (r)
|
|
1200
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
1201
|
-
return n.length ? n[n.length - 1] : e;
|
|
1202
|
-
},
|
|
1203
|
-
useMedium: function(a) {
|
|
1204
|
-
var c = t(a, r);
|
|
1205
|
-
return n.push(c), function() {
|
|
1206
|
-
n = n.filter(function(i) {
|
|
1207
|
-
return i !== c;
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
},
|
|
1211
|
-
assignSyncMedium: function(a) {
|
|
1212
|
-
for (r = !0; n.length; ) {
|
|
1213
|
-
var c = n;
|
|
1214
|
-
n = [], c.forEach(a);
|
|
1215
|
-
}
|
|
1216
|
-
n = {
|
|
1217
|
-
push: function(i) {
|
|
1218
|
-
return a(i);
|
|
1219
|
-
},
|
|
1220
|
-
filter: function() {
|
|
1221
|
-
return n;
|
|
1222
|
-
}
|
|
1223
|
-
};
|
|
1224
|
-
},
|
|
1225
|
-
assignMedium: function(a) {
|
|
1226
|
-
r = !0;
|
|
1227
|
-
var c = [];
|
|
1228
|
-
if (n.length) {
|
|
1229
|
-
var i = n;
|
|
1230
|
-
n = [], i.forEach(a), c = n;
|
|
1231
|
-
}
|
|
1232
|
-
var v = function() {
|
|
1233
|
-
var f = c;
|
|
1234
|
-
c = [], f.forEach(a);
|
|
1235
|
-
}, u = function() {
|
|
1236
|
-
return Promise.resolve().then(v);
|
|
1237
|
-
};
|
|
1238
|
-
u(), n = {
|
|
1239
|
-
push: function(f) {
|
|
1240
|
-
c.push(f), u();
|
|
1241
|
-
},
|
|
1242
|
-
filter: function(f) {
|
|
1243
|
-
return c = c.filter(f), n;
|
|
1244
|
-
}
|
|
1245
|
-
};
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
|
-
return o;
|
|
1249
|
-
}
|
|
1250
|
-
function pr(e) {
|
|
1251
|
-
e === void 0 && (e = {});
|
|
1252
|
-
var t = mr(null);
|
|
1253
|
-
return t.options = T({ async: !0, ssr: !1 }, e), t;
|
|
1254
|
-
}
|
|
1255
|
-
var ct = function(e) {
|
|
1256
|
-
var t = e.sideCar, n = st(e, ["sideCar"]);
|
|
1257
|
-
if (!t)
|
|
1258
|
-
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
1259
|
-
var r = t.read();
|
|
1260
|
-
if (!r)
|
|
1261
|
-
throw new Error("Sidecar medium not found");
|
|
1262
|
-
return s.createElement(r, T({}, n));
|
|
1263
|
-
};
|
|
1264
|
-
ct.isSideCarExport = !0;
|
|
1265
|
-
function hr(e, t) {
|
|
1266
|
-
return e.useMedium(t), ct;
|
|
1267
|
-
}
|
|
1268
|
-
var lt = pr(), be = function() {
|
|
1269
|
-
}, le = s.forwardRef(function(e, t) {
|
|
1270
|
-
var n = s.useRef(null), r = s.useState({
|
|
1271
|
-
onScrollCapture: be,
|
|
1272
|
-
onWheelCapture: be,
|
|
1273
|
-
onTouchMoveCapture: be
|
|
1274
|
-
}), o = r[0], a = r[1], c = e.forwardProps, i = e.children, v = e.className, u = e.removeScrollBar, f = e.enabled, g = e.shards, m = e.sideCar, h = e.noRelative, x = e.noIsolation, d = e.inert, p = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, N = e.gapMode, S = st(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = m, O = vr([n, t]), y = T(T({}, S), o);
|
|
1275
|
-
return s.createElement(
|
|
1276
|
-
s.Fragment,
|
|
1277
|
-
null,
|
|
1278
|
-
f && s.createElement(C, { sideCar: lt, removeScrollBar: u, shards: g, noRelative: h, noIsolation: x, inert: d, setCallbacks: a, allowPinchZoom: !!p, lockRef: n, gapMode: N }),
|
|
1279
|
-
c ? s.cloneElement(s.Children.only(i), T(T({}, y), { ref: O })) : s.createElement(w, T({}, y, { className: v, ref: O }), i)
|
|
1280
426
|
);
|
|
1281
|
-
});
|
|
1282
|
-
le.defaultProps = {
|
|
1283
|
-
enabled: !0,
|
|
1284
|
-
removeScrollBar: !0,
|
|
1285
|
-
inert: !1
|
|
1286
|
-
};
|
|
1287
|
-
le.classNames = {
|
|
1288
|
-
fullWidth: ae,
|
|
1289
|
-
zeroRight: oe
|
|
1290
|
-
};
|
|
1291
|
-
var br = function() {
|
|
1292
|
-
if (typeof __webpack_nonce__ < "u")
|
|
1293
|
-
return __webpack_nonce__;
|
|
1294
|
-
};
|
|
1295
|
-
function yr() {
|
|
1296
|
-
if (!document)
|
|
1297
|
-
return null;
|
|
1298
|
-
var e = document.createElement("style");
|
|
1299
|
-
e.type = "text/css";
|
|
1300
|
-
var t = br();
|
|
1301
|
-
return t && e.setAttribute("nonce", t), e;
|
|
1302
|
-
}
|
|
1303
|
-
function Er(e, t) {
|
|
1304
|
-
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1305
427
|
}
|
|
1306
|
-
function
|
|
1307
|
-
|
|
1308
|
-
t.appendChild(e);
|
|
1309
|
-
}
|
|
1310
|
-
var wr = function() {
|
|
1311
|
-
var e = 0, t = null;
|
|
1312
|
-
return {
|
|
1313
|
-
add: function(n) {
|
|
1314
|
-
e == 0 && (t = yr()) && (Er(t, n), xr(t)), e++;
|
|
1315
|
-
},
|
|
1316
|
-
remove: function() {
|
|
1317
|
-
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1318
|
-
}
|
|
1319
|
-
};
|
|
1320
|
-
}, Nr = function() {
|
|
1321
|
-
var e = wr();
|
|
1322
|
-
return function(t, n) {
|
|
1323
|
-
s.useEffect(function() {
|
|
1324
|
-
return e.add(t), function() {
|
|
1325
|
-
e.remove();
|
|
1326
|
-
};
|
|
1327
|
-
}, [t && n]);
|
|
1328
|
-
};
|
|
1329
|
-
}, ut = function() {
|
|
1330
|
-
var e = Nr(), t = function(n) {
|
|
1331
|
-
var r = n.styles, o = n.dynamic;
|
|
1332
|
-
return e(r, o), null;
|
|
1333
|
-
};
|
|
1334
|
-
return t;
|
|
1335
|
-
}, Sr = {
|
|
1336
|
-
left: 0,
|
|
1337
|
-
top: 0,
|
|
1338
|
-
right: 0,
|
|
1339
|
-
gap: 0
|
|
1340
|
-
}, ye = function(e) {
|
|
1341
|
-
return parseInt(e || "", 10) || 0;
|
|
1342
|
-
}, Cr = function(e) {
|
|
1343
|
-
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1344
|
-
return [ye(n), ye(r), ye(o)];
|
|
1345
|
-
}, Ar = function(e) {
|
|
1346
|
-
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1347
|
-
return Sr;
|
|
1348
|
-
var t = Cr(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
1349
|
-
return {
|
|
1350
|
-
left: t[0],
|
|
1351
|
-
top: t[1],
|
|
1352
|
-
right: t[2],
|
|
1353
|
-
gap: Math.max(0, r - n + t[2] - t[0])
|
|
1354
|
-
};
|
|
1355
|
-
}, Dr = ut(), V = "data-scroll-locked", Pr = function(e, t, n, r) {
|
|
1356
|
-
var o = e.left, a = e.top, c = e.right, i = e.gap;
|
|
1357
|
-
return n === void 0 && (n = "margin"), `
|
|
1358
|
-
.`.concat(lr, ` {
|
|
1359
|
-
overflow: hidden `).concat(r, `;
|
|
1360
|
-
padding-right: `).concat(i, "px ").concat(r, `;
|
|
1361
|
-
}
|
|
1362
|
-
body[`).concat(V, `] {
|
|
1363
|
-
overflow: hidden `).concat(r, `;
|
|
1364
|
-
overscroll-behavior: contain;
|
|
1365
|
-
`).concat([
|
|
1366
|
-
t && "position: relative ".concat(r, ";"),
|
|
1367
|
-
n === "margin" && `
|
|
1368
|
-
padding-left: `.concat(o, `px;
|
|
1369
|
-
padding-top: `).concat(a, `px;
|
|
1370
|
-
padding-right: `).concat(c, `px;
|
|
1371
|
-
margin-left:0;
|
|
1372
|
-
margin-top:0;
|
|
1373
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
1374
|
-
`),
|
|
1375
|
-
n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
|
|
1376
|
-
].filter(Boolean).join(""), `
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
.`).concat(oe, ` {
|
|
1380
|
-
right: `).concat(i, "px ").concat(r, `;
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
.`).concat(ae, ` {
|
|
1384
|
-
margin-right: `).concat(i, "px ").concat(r, `;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
.`).concat(oe, " .").concat(oe, ` {
|
|
1388
|
-
right: 0 `).concat(r, `;
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
.`).concat(ae, " .").concat(ae, ` {
|
|
1392
|
-
margin-right: 0 `).concat(r, `;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
body[`).concat(V, `] {
|
|
1396
|
-
`).concat(ur, ": ").concat(i, `px;
|
|
1397
|
-
}
|
|
1398
|
-
`);
|
|
1399
|
-
}, Ve = function() {
|
|
1400
|
-
var e = parseInt(document.body.getAttribute(V) || "0", 10);
|
|
1401
|
-
return isFinite(e) ? e : 0;
|
|
1402
|
-
}, Rr = function() {
|
|
1403
|
-
s.useEffect(function() {
|
|
1404
|
-
return document.body.setAttribute(V, (Ve() + 1).toString()), function() {
|
|
1405
|
-
var e = Ve() - 1;
|
|
1406
|
-
e <= 0 ? document.body.removeAttribute(V) : document.body.setAttribute(V, e.toString());
|
|
1407
|
-
};
|
|
1408
|
-
}, []);
|
|
1409
|
-
}, Tr = function(e) {
|
|
1410
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
1411
|
-
Rr();
|
|
1412
|
-
var a = s.useMemo(function() {
|
|
1413
|
-
return Ar(o);
|
|
1414
|
-
}, [o]);
|
|
1415
|
-
return s.createElement(Dr, { styles: Pr(a, !t, o, n ? "" : "!important") });
|
|
1416
|
-
}, Se = !1;
|
|
1417
|
-
if (typeof window < "u")
|
|
1418
|
-
try {
|
|
1419
|
-
var ee = Object.defineProperty({}, "passive", {
|
|
1420
|
-
get: function() {
|
|
1421
|
-
return Se = !0, !0;
|
|
1422
|
-
}
|
|
1423
|
-
});
|
|
1424
|
-
window.addEventListener("test", ee, ee), window.removeEventListener("test", ee, ee);
|
|
1425
|
-
} catch {
|
|
1426
|
-
Se = !1;
|
|
1427
|
-
}
|
|
1428
|
-
var U = Se ? { passive: !1 } : !1, Or = function(e) {
|
|
1429
|
-
return e.tagName === "TEXTAREA";
|
|
1430
|
-
}, dt = function(e, t) {
|
|
1431
|
-
if (!(e instanceof Element))
|
|
1432
|
-
return !1;
|
|
1433
|
-
var n = window.getComputedStyle(e);
|
|
1434
|
-
return (
|
|
1435
|
-
// not-not-scrollable
|
|
1436
|
-
n[t] !== "hidden" && // contains scroll inside self
|
|
1437
|
-
!(n.overflowY === n.overflowX && !Or(e) && n[t] === "visible")
|
|
1438
|
-
);
|
|
1439
|
-
}, _r = function(e) {
|
|
1440
|
-
return dt(e, "overflowY");
|
|
1441
|
-
}, Mr = function(e) {
|
|
1442
|
-
return dt(e, "overflowX");
|
|
1443
|
-
}, Ge = function(e, t) {
|
|
1444
|
-
var n = t.ownerDocument, r = t;
|
|
1445
|
-
do {
|
|
1446
|
-
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
1447
|
-
var o = ft(e, r);
|
|
1448
|
-
if (o) {
|
|
1449
|
-
var a = vt(e, r), c = a[1], i = a[2];
|
|
1450
|
-
if (c > i)
|
|
1451
|
-
return !0;
|
|
1452
|
-
}
|
|
1453
|
-
r = r.parentNode;
|
|
1454
|
-
} while (r && r !== n.body);
|
|
1455
|
-
return !1;
|
|
1456
|
-
}, Lr = function(e) {
|
|
1457
|
-
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
1458
|
-
return [
|
|
1459
|
-
t,
|
|
1460
|
-
n,
|
|
1461
|
-
r
|
|
1462
|
-
];
|
|
1463
|
-
}, Ir = function(e) {
|
|
1464
|
-
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
1465
|
-
return [
|
|
1466
|
-
t,
|
|
1467
|
-
n,
|
|
1468
|
-
r
|
|
1469
|
-
];
|
|
1470
|
-
}, ft = function(e, t) {
|
|
1471
|
-
return e === "v" ? _r(t) : Mr(t);
|
|
1472
|
-
}, vt = function(e, t) {
|
|
1473
|
-
return e === "v" ? Lr(t) : Ir(t);
|
|
1474
|
-
}, kr = function(e, t) {
|
|
1475
|
-
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1476
|
-
}, Fr = function(e, t, n, r, o) {
|
|
1477
|
-
var a = kr(e, window.getComputedStyle(t).direction), c = a * r, i = n.target, v = t.contains(i), u = !1, f = c > 0, g = 0, m = 0;
|
|
1478
|
-
do {
|
|
1479
|
-
if (!i)
|
|
1480
|
-
break;
|
|
1481
|
-
var h = vt(e, i), x = h[0], d = h[1], p = h[2], b = d - p - a * x;
|
|
1482
|
-
(x || b) && ft(e, i) && (g += b, m += x);
|
|
1483
|
-
var w = i.parentNode;
|
|
1484
|
-
i = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
1485
|
-
} while (
|
|
1486
|
-
// portaled content
|
|
1487
|
-
!v && i !== document.body || // self content
|
|
1488
|
-
v && (t.contains(i) || t === i)
|
|
1489
|
-
);
|
|
1490
|
-
return (f && Math.abs(g) < 1 || !f && Math.abs(m) < 1) && (u = !0), u;
|
|
1491
|
-
}, te = function(e) {
|
|
1492
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1493
|
-
}, Ke = function(e) {
|
|
1494
|
-
return [e.deltaX, e.deltaY];
|
|
1495
|
-
}, Ye = function(e) {
|
|
1496
|
-
return e && "current" in e ? e.current : e;
|
|
1497
|
-
}, Wr = function(e, t) {
|
|
1498
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
1499
|
-
}, $r = function(e) {
|
|
1500
|
-
return `
|
|
1501
|
-
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1502
|
-
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1503
|
-
`);
|
|
1504
|
-
}, Br = 0, z = [];
|
|
1505
|
-
function Ur(e) {
|
|
1506
|
-
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), o = s.useState(Br++)[0], a = s.useState(ut)[0], c = s.useRef(e);
|
|
1507
|
-
s.useEffect(function() {
|
|
1508
|
-
c.current = e;
|
|
1509
|
-
}, [e]), s.useEffect(function() {
|
|
1510
|
-
if (e.inert) {
|
|
1511
|
-
document.body.classList.add("block-interactivity-".concat(o));
|
|
1512
|
-
var d = cr([e.lockRef.current], (e.shards || []).map(Ye), !0).filter(Boolean);
|
|
1513
|
-
return d.forEach(function(p) {
|
|
1514
|
-
return p.classList.add("allow-interactivity-".concat(o));
|
|
1515
|
-
}), function() {
|
|
1516
|
-
document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(p) {
|
|
1517
|
-
return p.classList.remove("allow-interactivity-".concat(o));
|
|
1518
|
-
});
|
|
1519
|
-
};
|
|
1520
|
-
}
|
|
1521
|
-
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1522
|
-
var i = s.useCallback(function(d, p) {
|
|
1523
|
-
if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
|
|
1524
|
-
return !c.current.allowPinchZoom;
|
|
1525
|
-
var b = te(d), w = n.current, N = "deltaX" in d ? d.deltaX : w[0] - b[0], S = "deltaY" in d ? d.deltaY : w[1] - b[1], C, O = d.target, y = Math.abs(N) > Math.abs(S) ? "h" : "v";
|
|
1526
|
-
if ("touches" in d && y === "h" && O.type === "range")
|
|
1527
|
-
return !1;
|
|
1528
|
-
var _ = Ge(y, O);
|
|
1529
|
-
if (!_)
|
|
1530
|
-
return !0;
|
|
1531
|
-
if (_ ? C = y : (C = y === "v" ? "h" : "v", _ = Ge(y, O)), !_)
|
|
1532
|
-
return !1;
|
|
1533
|
-
if (!r.current && "changedTouches" in d && (N || S) && (r.current = C), !C)
|
|
1534
|
-
return !0;
|
|
1535
|
-
var Y = r.current || C;
|
|
1536
|
-
return Fr(Y, p, d, Y === "h" ? N : S);
|
|
1537
|
-
}, []), v = s.useCallback(function(d) {
|
|
1538
|
-
var p = d;
|
|
1539
|
-
if (!(!z.length || z[z.length - 1] !== a)) {
|
|
1540
|
-
var b = "deltaY" in p ? Ke(p) : te(p), w = t.current.filter(function(C) {
|
|
1541
|
-
return C.name === p.type && (C.target === p.target || p.target === C.shadowParent) && Wr(C.delta, b);
|
|
1542
|
-
})[0];
|
|
1543
|
-
if (w && w.should) {
|
|
1544
|
-
p.cancelable && p.preventDefault();
|
|
1545
|
-
return;
|
|
1546
|
-
}
|
|
1547
|
-
if (!w) {
|
|
1548
|
-
var N = (c.current.shards || []).map(Ye).filter(Boolean).filter(function(C) {
|
|
1549
|
-
return C.contains(p.target);
|
|
1550
|
-
}), S = N.length > 0 ? i(p, N[0]) : !c.current.noIsolation;
|
|
1551
|
-
S && p.cancelable && p.preventDefault();
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
}, []), u = s.useCallback(function(d, p, b, w) {
|
|
1555
|
-
var N = { name: d, delta: p, target: b, should: w, shadowParent: zr(b) };
|
|
1556
|
-
t.current.push(N), setTimeout(function() {
|
|
1557
|
-
t.current = t.current.filter(function(S) {
|
|
1558
|
-
return S !== N;
|
|
1559
|
-
});
|
|
1560
|
-
}, 1);
|
|
1561
|
-
}, []), f = s.useCallback(function(d) {
|
|
1562
|
-
n.current = te(d), r.current = void 0;
|
|
1563
|
-
}, []), g = s.useCallback(function(d) {
|
|
1564
|
-
u(d.type, Ke(d), d.target, i(d, e.lockRef.current));
|
|
1565
|
-
}, []), m = s.useCallback(function(d) {
|
|
1566
|
-
u(d.type, te(d), d.target, i(d, e.lockRef.current));
|
|
1567
|
-
}, []);
|
|
1568
|
-
s.useEffect(function() {
|
|
1569
|
-
return z.push(a), e.setCallbacks({
|
|
1570
|
-
onScrollCapture: g,
|
|
1571
|
-
onWheelCapture: g,
|
|
1572
|
-
onTouchMoveCapture: m
|
|
1573
|
-
}), document.addEventListener("wheel", v, U), document.addEventListener("touchmove", v, U), document.addEventListener("touchstart", f, U), function() {
|
|
1574
|
-
z = z.filter(function(d) {
|
|
1575
|
-
return d !== a;
|
|
1576
|
-
}), document.removeEventListener("wheel", v, U), document.removeEventListener("touchmove", v, U), document.removeEventListener("touchstart", f, U);
|
|
1577
|
-
};
|
|
1578
|
-
}, []);
|
|
1579
|
-
var h = e.removeScrollBar, x = e.inert;
|
|
1580
|
-
return s.createElement(
|
|
1581
|
-
s.Fragment,
|
|
1582
|
-
null,
|
|
1583
|
-
x ? s.createElement(a, { styles: $r(o) }) : null,
|
|
1584
|
-
h ? s.createElement(Tr, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1585
|
-
);
|
|
1586
|
-
}
|
|
1587
|
-
function zr(e) {
|
|
1588
|
-
for (var t = null; e !== null; )
|
|
1589
|
-
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1590
|
-
return t;
|
|
1591
|
-
}
|
|
1592
|
-
const jr = hr(lt, Ur);
|
|
1593
|
-
var gt = s.forwardRef(function(e, t) {
|
|
1594
|
-
return s.createElement(le, T({}, e, { ref: t, sideCar: jr }));
|
|
1595
|
-
});
|
|
1596
|
-
gt.classNames = le.classNames;
|
|
1597
|
-
var Vr = function(e) {
|
|
1598
|
-
if (typeof document > "u")
|
|
1599
|
-
return null;
|
|
1600
|
-
var t = Array.isArray(e) ? e[0] : e;
|
|
1601
|
-
return t.ownerDocument.body;
|
|
1602
|
-
}, j = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), re = {}, Ee = 0, mt = function(e) {
|
|
1603
|
-
return e && (e.host || mt(e.parentNode));
|
|
1604
|
-
}, Gr = function(e, t) {
|
|
1605
|
-
return t.map(function(n) {
|
|
1606
|
-
if (e.contains(n))
|
|
1607
|
-
return n;
|
|
1608
|
-
var r = mt(n);
|
|
1609
|
-
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
1610
|
-
}).filter(function(n) {
|
|
1611
|
-
return !!n;
|
|
1612
|
-
});
|
|
1613
|
-
}, Kr = function(e, t, n, r) {
|
|
1614
|
-
var o = Gr(t, Array.isArray(e) ? e : [e]);
|
|
1615
|
-
re[n] || (re[n] = /* @__PURE__ */ new WeakMap());
|
|
1616
|
-
var a = re[n], c = [], i = /* @__PURE__ */ new Set(), v = new Set(o), u = function(g) {
|
|
1617
|
-
!g || i.has(g) || (i.add(g), u(g.parentNode));
|
|
1618
|
-
};
|
|
1619
|
-
o.forEach(u);
|
|
1620
|
-
var f = function(g) {
|
|
1621
|
-
!g || v.has(g) || Array.prototype.forEach.call(g.children, function(m) {
|
|
1622
|
-
if (i.has(m))
|
|
1623
|
-
f(m);
|
|
1624
|
-
else
|
|
1625
|
-
try {
|
|
1626
|
-
var h = m.getAttribute(r), x = h !== null && h !== "false", d = (j.get(m) || 0) + 1, p = (a.get(m) || 0) + 1;
|
|
1627
|
-
j.set(m, d), a.set(m, p), c.push(m), d === 1 && x && ne.set(m, !0), p === 1 && m.setAttribute(n, "true"), x || m.setAttribute(r, "true");
|
|
1628
|
-
} catch (b) {
|
|
1629
|
-
console.error("aria-hidden: cannot operate on ", m, b);
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
};
|
|
1633
|
-
return f(t), i.clear(), Ee++, function() {
|
|
1634
|
-
c.forEach(function(g) {
|
|
1635
|
-
var m = j.get(g) - 1, h = a.get(g) - 1;
|
|
1636
|
-
j.set(g, m), a.set(g, h), m || (ne.has(g) || g.removeAttribute(r), ne.delete(g)), h || g.removeAttribute(n);
|
|
1637
|
-
}), Ee--, Ee || (j = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), re = {});
|
|
1638
|
-
};
|
|
1639
|
-
}, Yr = function(e, t, n) {
|
|
1640
|
-
n === void 0 && (n = "data-aria-hidden");
|
|
1641
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o = Vr(e);
|
|
1642
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Kr(r, o, n, "aria-hidden")) : function() {
|
|
1643
|
-
return null;
|
|
1644
|
-
};
|
|
1645
|
-
}, ue = "Dialog", [pt, ht] = et(ue), [Hr, R] = pt(ue), bt = (e) => {
|
|
1646
|
-
const {
|
|
1647
|
-
__scopeDialog: t,
|
|
1648
|
-
children: n,
|
|
1649
|
-
open: r,
|
|
1650
|
-
defaultOpen: o,
|
|
1651
|
-
onOpenChange: a,
|
|
1652
|
-
modal: c = !0
|
|
1653
|
-
} = e, i = s.useRef(null), v = s.useRef(null), [u, f] = Fn({
|
|
1654
|
-
prop: r,
|
|
1655
|
-
defaultProp: o ?? !1,
|
|
1656
|
-
onChange: a,
|
|
1657
|
-
caller: ue
|
|
1658
|
-
});
|
|
1659
|
-
return /* @__PURE__ */ l(
|
|
1660
|
-
Hr,
|
|
1661
|
-
{
|
|
1662
|
-
scope: t,
|
|
1663
|
-
triggerRef: i,
|
|
1664
|
-
contentRef: v,
|
|
1665
|
-
contentId: ve(),
|
|
1666
|
-
titleId: ve(),
|
|
1667
|
-
descriptionId: ve(),
|
|
1668
|
-
open: u,
|
|
1669
|
-
onOpenChange: f,
|
|
1670
|
-
onOpenToggle: s.useCallback(() => f((g) => !g), [f]),
|
|
1671
|
-
modal: c,
|
|
1672
|
-
children: n
|
|
1673
|
-
}
|
|
1674
|
-
);
|
|
1675
|
-
};
|
|
1676
|
-
bt.displayName = ue;
|
|
1677
|
-
var yt = "DialogTrigger", Et = s.forwardRef(
|
|
1678
|
-
(e, t) => {
|
|
1679
|
-
const { __scopeDialog: n, ...r } = e, o = R(yt, n), a = I(t, o.triggerRef);
|
|
1680
|
-
return /* @__PURE__ */ l(
|
|
1681
|
-
k.button,
|
|
1682
|
-
{
|
|
1683
|
-
type: "button",
|
|
1684
|
-
"aria-haspopup": "dialog",
|
|
1685
|
-
"aria-expanded": o.open,
|
|
1686
|
-
"aria-controls": o.contentId,
|
|
1687
|
-
"data-state": Re(o.open),
|
|
1688
|
-
...r,
|
|
1689
|
-
ref: a,
|
|
1690
|
-
onClick: M(e.onClick, o.onOpenToggle)
|
|
1691
|
-
}
|
|
1692
|
-
);
|
|
1693
|
-
}
|
|
1694
|
-
);
|
|
1695
|
-
Et.displayName = yt;
|
|
1696
|
-
var De = "DialogPortal", [Xr, xt] = pt(De, {
|
|
1697
|
-
forceMount: void 0
|
|
1698
|
-
}), wt = (e) => {
|
|
1699
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = R(De, t);
|
|
1700
|
-
return /* @__PURE__ */ l(Xr, { scope: t, forceMount: n, children: s.Children.map(r, (c) => /* @__PURE__ */ l(ce, { present: n || a.open, children: /* @__PURE__ */ l(it, { asChild: !0, container: o, children: c }) })) });
|
|
1701
|
-
};
|
|
1702
|
-
wt.displayName = De;
|
|
1703
|
-
var ie = "DialogOverlay", Nt = s.forwardRef(
|
|
1704
|
-
(e, t) => {
|
|
1705
|
-
const n = xt(ie, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = R(ie, e.__scopeDialog);
|
|
1706
|
-
return a.modal ? /* @__PURE__ */ l(ce, { present: r || a.open, children: /* @__PURE__ */ l(Zr, { ...o, ref: t }) }) : null;
|
|
1707
|
-
}
|
|
1708
|
-
);
|
|
1709
|
-
Nt.displayName = ie;
|
|
1710
|
-
var qr = He("DialogOverlay.RemoveScroll"), Zr = s.forwardRef(
|
|
1711
|
-
(e, t) => {
|
|
1712
|
-
const { __scopeDialog: n, ...r } = e, o = R(ie, n);
|
|
1713
|
-
return (
|
|
1714
|
-
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1715
|
-
// ie. when `Overlay` and `Content` are siblings
|
|
1716
|
-
/* @__PURE__ */ l(gt, { as: qr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ l(
|
|
1717
|
-
k.div,
|
|
1718
|
-
{
|
|
1719
|
-
"data-state": Re(o.open),
|
|
1720
|
-
...r,
|
|
1721
|
-
ref: t,
|
|
1722
|
-
style: { pointerEvents: "auto", ...r.style }
|
|
1723
|
-
}
|
|
1724
|
-
) })
|
|
1725
|
-
);
|
|
1726
|
-
}
|
|
1727
|
-
), B = "DialogContent", St = s.forwardRef(
|
|
1728
|
-
(e, t) => {
|
|
1729
|
-
const n = xt(B, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = R(B, e.__scopeDialog);
|
|
1730
|
-
return /* @__PURE__ */ l(ce, { present: r || a.open, children: a.modal ? /* @__PURE__ */ l(Qr, { ...o, ref: t }) : /* @__PURE__ */ l(Jr, { ...o, ref: t }) });
|
|
1731
|
-
}
|
|
1732
|
-
);
|
|
1733
|
-
St.displayName = B;
|
|
1734
|
-
var Qr = s.forwardRef(
|
|
1735
|
-
(e, t) => {
|
|
1736
|
-
const n = R(B, e.__scopeDialog), r = s.useRef(null), o = I(t, n.contentRef, r);
|
|
1737
|
-
return s.useEffect(() => {
|
|
1738
|
-
const a = r.current;
|
|
1739
|
-
if (a) return Yr(a);
|
|
1740
|
-
}, []), /* @__PURE__ */ l(
|
|
1741
|
-
Ct,
|
|
1742
|
-
{
|
|
1743
|
-
...e,
|
|
1744
|
-
ref: o,
|
|
1745
|
-
trapFocus: n.open,
|
|
1746
|
-
disableOutsidePointerEvents: !0,
|
|
1747
|
-
onCloseAutoFocus: M(e.onCloseAutoFocus, (a) => {
|
|
1748
|
-
var c;
|
|
1749
|
-
a.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
|
|
1750
|
-
}),
|
|
1751
|
-
onPointerDownOutside: M(e.onPointerDownOutside, (a) => {
|
|
1752
|
-
const c = a.detail.originalEvent, i = c.button === 0 && c.ctrlKey === !0;
|
|
1753
|
-
(c.button === 2 || i) && a.preventDefault();
|
|
1754
|
-
}),
|
|
1755
|
-
onFocusOutside: M(
|
|
1756
|
-
e.onFocusOutside,
|
|
1757
|
-
(a) => a.preventDefault()
|
|
1758
|
-
)
|
|
1759
|
-
}
|
|
1760
|
-
);
|
|
1761
|
-
}
|
|
1762
|
-
), Jr = s.forwardRef(
|
|
1763
|
-
(e, t) => {
|
|
1764
|
-
const n = R(B, e.__scopeDialog), r = s.useRef(!1), o = s.useRef(!1);
|
|
1765
|
-
return /* @__PURE__ */ l(
|
|
1766
|
-
Ct,
|
|
1767
|
-
{
|
|
1768
|
-
...e,
|
|
1769
|
-
ref: t,
|
|
1770
|
-
trapFocus: !1,
|
|
1771
|
-
disableOutsidePointerEvents: !1,
|
|
1772
|
-
onCloseAutoFocus: (a) => {
|
|
1773
|
-
var c, i;
|
|
1774
|
-
(c = e.onCloseAutoFocus) == null || c.call(e, a), a.defaultPrevented || (r.current || (i = n.triggerRef.current) == null || i.focus(), a.preventDefault()), r.current = !1, o.current = !1;
|
|
1775
|
-
},
|
|
1776
|
-
onInteractOutside: (a) => {
|
|
1777
|
-
var v, u;
|
|
1778
|
-
(v = e.onInteractOutside) == null || v.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
1779
|
-
const c = a.target;
|
|
1780
|
-
((u = n.triggerRef.current) == null ? void 0 : u.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
);
|
|
1784
|
-
}
|
|
1785
|
-
), Ct = s.forwardRef(
|
|
1786
|
-
(e, t) => {
|
|
1787
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, i = R(B, n), v = s.useRef(null), u = I(t, v);
|
|
1788
|
-
return sr(), /* @__PURE__ */ L(_e, { children: [
|
|
1789
|
-
/* @__PURE__ */ l(
|
|
1790
|
-
ot,
|
|
1791
|
-
{
|
|
1792
|
-
asChild: !0,
|
|
1793
|
-
loop: !0,
|
|
1794
|
-
trapped: r,
|
|
1795
|
-
onMountAutoFocus: o,
|
|
1796
|
-
onUnmountAutoFocus: a,
|
|
1797
|
-
children: /* @__PURE__ */ l(
|
|
1798
|
-
nt,
|
|
1799
|
-
{
|
|
1800
|
-
role: "dialog",
|
|
1801
|
-
id: i.contentId,
|
|
1802
|
-
"aria-describedby": i.descriptionId,
|
|
1803
|
-
"aria-labelledby": i.titleId,
|
|
1804
|
-
"data-state": Re(i.open),
|
|
1805
|
-
...c,
|
|
1806
|
-
ref: u,
|
|
1807
|
-
onDismiss: () => i.onOpenChange(!1)
|
|
1808
|
-
}
|
|
1809
|
-
)
|
|
1810
|
-
}
|
|
1811
|
-
),
|
|
1812
|
-
/* @__PURE__ */ L(_e, { children: [
|
|
1813
|
-
/* @__PURE__ */ l(to, { titleId: i.titleId }),
|
|
1814
|
-
/* @__PURE__ */ l(ro, { contentRef: v, descriptionId: i.descriptionId })
|
|
1815
|
-
] })
|
|
1816
|
-
] });
|
|
1817
|
-
}
|
|
1818
|
-
), Pe = "DialogTitle", At = s.forwardRef(
|
|
1819
|
-
(e, t) => {
|
|
1820
|
-
const { __scopeDialog: n, ...r } = e, o = R(Pe, n);
|
|
1821
|
-
return /* @__PURE__ */ l(k.h2, { id: o.titleId, ...r, ref: t });
|
|
1822
|
-
}
|
|
1823
|
-
);
|
|
1824
|
-
At.displayName = Pe;
|
|
1825
|
-
var Dt = "DialogDescription", Pt = s.forwardRef(
|
|
1826
|
-
(e, t) => {
|
|
1827
|
-
const { __scopeDialog: n, ...r } = e, o = R(Dt, n);
|
|
1828
|
-
return /* @__PURE__ */ l(k.p, { id: o.descriptionId, ...r, ref: t });
|
|
1829
|
-
}
|
|
1830
|
-
);
|
|
1831
|
-
Pt.displayName = Dt;
|
|
1832
|
-
var Rt = "DialogClose", Tt = s.forwardRef(
|
|
1833
|
-
(e, t) => {
|
|
1834
|
-
const { __scopeDialog: n, ...r } = e, o = R(Rt, n);
|
|
1835
|
-
return /* @__PURE__ */ l(
|
|
1836
|
-
k.button,
|
|
1837
|
-
{
|
|
1838
|
-
type: "button",
|
|
1839
|
-
...r,
|
|
1840
|
-
ref: t,
|
|
1841
|
-
onClick: M(e.onClick, () => o.onOpenChange(!1))
|
|
1842
|
-
}
|
|
1843
|
-
);
|
|
1844
|
-
}
|
|
1845
|
-
);
|
|
1846
|
-
Tt.displayName = Rt;
|
|
1847
|
-
function Re(e) {
|
|
1848
|
-
return e ? "open" : "closed";
|
|
1849
|
-
}
|
|
1850
|
-
var Ot = "DialogTitleWarning", [eo, _t] = On(Ot, {
|
|
1851
|
-
contentName: B,
|
|
1852
|
-
titleName: Pe,
|
|
1853
|
-
docsSlug: "dialog"
|
|
1854
|
-
}), to = ({ titleId: e }) => {
|
|
1855
|
-
const t = _t(Ot), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1856
|
-
|
|
1857
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
1858
|
-
|
|
1859
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
1860
|
-
return s.useEffect(() => {
|
|
1861
|
-
e && (document.getElementById(e) || console.error(n));
|
|
1862
|
-
}, [n, e]), null;
|
|
1863
|
-
}, no = "DialogDescriptionWarning", ro = ({ contentRef: e, descriptionId: t }) => {
|
|
1864
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_t(no).contentName}}.`;
|
|
1865
|
-
return s.useEffect(() => {
|
|
1866
|
-
var a;
|
|
1867
|
-
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
1868
|
-
t && o && (document.getElementById(t) || console.warn(r));
|
|
1869
|
-
}, [r, e, t]), null;
|
|
1870
|
-
}, oo = bt, ao = Et, io = wt, so = Nt, co = St, lo = At, uo = Pt, Mt = Tt, Lt = "AlertDialog", [fo, sa] = et(Lt, [
|
|
1871
|
-
ht
|
|
1872
|
-
]), F = ht(), It = (e) => {
|
|
1873
|
-
const { __scopeAlertDialog: t, ...n } = e, r = F(t);
|
|
1874
|
-
return /* @__PURE__ */ l(oo, { ...r, ...n, modal: !0 });
|
|
1875
|
-
};
|
|
1876
|
-
It.displayName = Lt;
|
|
1877
|
-
var vo = "AlertDialogTrigger", kt = s.forwardRef(
|
|
1878
|
-
(e, t) => {
|
|
1879
|
-
const { __scopeAlertDialog: n, ...r } = e, o = F(n);
|
|
1880
|
-
return /* @__PURE__ */ l(ao, { ...o, ...r, ref: t });
|
|
1881
|
-
}
|
|
1882
|
-
);
|
|
1883
|
-
kt.displayName = vo;
|
|
1884
|
-
var go = "AlertDialogPortal", Ft = (e) => {
|
|
1885
|
-
const { __scopeAlertDialog: t, ...n } = e, r = F(t);
|
|
1886
|
-
return /* @__PURE__ */ l(io, { ...r, ...n });
|
|
1887
|
-
};
|
|
1888
|
-
Ft.displayName = go;
|
|
1889
|
-
var mo = "AlertDialogOverlay", Wt = s.forwardRef(
|
|
1890
|
-
(e, t) => {
|
|
1891
|
-
const { __scopeAlertDialog: n, ...r } = e, o = F(n);
|
|
1892
|
-
return /* @__PURE__ */ l(so, { ...o, ...r, ref: t });
|
|
1893
|
-
}
|
|
1894
|
-
);
|
|
1895
|
-
Wt.displayName = mo;
|
|
1896
|
-
var G = "AlertDialogContent", [po, ho] = fo(G), bo = on("AlertDialogContent"), $t = s.forwardRef(
|
|
1897
|
-
(e, t) => {
|
|
1898
|
-
const { __scopeAlertDialog: n, children: r, ...o } = e, a = F(n), c = s.useRef(null), i = I(t, c), v = s.useRef(null);
|
|
1899
|
-
return /* @__PURE__ */ l(
|
|
1900
|
-
eo,
|
|
1901
|
-
{
|
|
1902
|
-
contentName: G,
|
|
1903
|
-
titleName: Bt,
|
|
1904
|
-
docsSlug: "alert-dialog",
|
|
1905
|
-
children: /* @__PURE__ */ l(po, { scope: n, cancelRef: v, children: /* @__PURE__ */ L(
|
|
1906
|
-
co,
|
|
1907
|
-
{
|
|
1908
|
-
role: "alertdialog",
|
|
1909
|
-
...a,
|
|
1910
|
-
...o,
|
|
1911
|
-
ref: i,
|
|
1912
|
-
onOpenAutoFocus: M(o.onOpenAutoFocus, (u) => {
|
|
1913
|
-
var f;
|
|
1914
|
-
u.preventDefault(), (f = v.current) == null || f.focus({ preventScroll: !0 });
|
|
1915
|
-
}),
|
|
1916
|
-
onPointerDownOutside: (u) => u.preventDefault(),
|
|
1917
|
-
onInteractOutside: (u) => u.preventDefault(),
|
|
1918
|
-
children: [
|
|
1919
|
-
/* @__PURE__ */ l(bo, { children: r }),
|
|
1920
|
-
/* @__PURE__ */ l(Eo, { contentRef: c })
|
|
1921
|
-
]
|
|
1922
|
-
}
|
|
1923
|
-
) })
|
|
1924
|
-
}
|
|
1925
|
-
);
|
|
1926
|
-
}
|
|
1927
|
-
);
|
|
1928
|
-
$t.displayName = G;
|
|
1929
|
-
var Bt = "AlertDialogTitle", Ut = s.forwardRef(
|
|
1930
|
-
(e, t) => {
|
|
1931
|
-
const { __scopeAlertDialog: n, ...r } = e, o = F(n);
|
|
1932
|
-
return /* @__PURE__ */ l(lo, { ...o, ...r, ref: t });
|
|
1933
|
-
}
|
|
1934
|
-
);
|
|
1935
|
-
Ut.displayName = Bt;
|
|
1936
|
-
var zt = "AlertDialogDescription", jt = s.forwardRef((e, t) => {
|
|
1937
|
-
const { __scopeAlertDialog: n, ...r } = e, o = F(n);
|
|
1938
|
-
return /* @__PURE__ */ l(uo, { ...o, ...r, ref: t });
|
|
1939
|
-
});
|
|
1940
|
-
jt.displayName = zt;
|
|
1941
|
-
var yo = "AlertDialogAction", Vt = s.forwardRef(
|
|
1942
|
-
(e, t) => {
|
|
1943
|
-
const { __scopeAlertDialog: n, ...r } = e, o = F(n);
|
|
1944
|
-
return /* @__PURE__ */ l(Mt, { ...o, ...r, ref: t });
|
|
1945
|
-
}
|
|
1946
|
-
);
|
|
1947
|
-
Vt.displayName = yo;
|
|
1948
|
-
var Gt = "AlertDialogCancel", Kt = s.forwardRef(
|
|
1949
|
-
(e, t) => {
|
|
1950
|
-
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = ho(Gt, n), a = F(n), c = I(t, o);
|
|
1951
|
-
return /* @__PURE__ */ l(Mt, { ...a, ...r, ref: c });
|
|
1952
|
-
}
|
|
1953
|
-
);
|
|
1954
|
-
Kt.displayName = Gt;
|
|
1955
|
-
var Eo = ({ contentRef: e }) => {
|
|
1956
|
-
const t = `\`${G}\` requires a description for the component to be accessible for screen reader users.
|
|
1957
|
-
|
|
1958
|
-
You can add a description to the \`${G}\` by passing a \`${zt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
1959
|
-
|
|
1960
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${G}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
1961
|
-
|
|
1962
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
1963
|
-
return s.useEffect(() => {
|
|
1964
|
-
var r;
|
|
1965
|
-
document.getElementById(
|
|
1966
|
-
(r = e.current) == null ? void 0 : r.getAttribute("aria-describedby")
|
|
1967
|
-
) || console.warn(t);
|
|
1968
|
-
}, [t, e]), null;
|
|
1969
|
-
}, xo = It, wo = kt, No = Ft, So = Wt, Co = $t, Ao = Vt, Do = Kt, Po = Ut, Ro = jt;
|
|
1970
|
-
function ca({ ...e }) {
|
|
1971
|
-
return /* @__PURE__ */ l(xo, { "data-slot": "alert-dialog", ...e });
|
|
1972
|
-
}
|
|
1973
|
-
function la({
|
|
428
|
+
function ue({
|
|
429
|
+
className: t,
|
|
1974
430
|
...e
|
|
1975
431
|
}) {
|
|
1976
|
-
return /* @__PURE__ */
|
|
1977
|
-
|
|
1978
|
-
function To({ ...e }) {
|
|
1979
|
-
return /* @__PURE__ */ l(No, { "data-slot": "alert-dialog-portal", ...e });
|
|
1980
|
-
}
|
|
1981
|
-
function Oo({
|
|
1982
|
-
className: e,
|
|
1983
|
-
...t
|
|
1984
|
-
}) {
|
|
1985
|
-
return /* @__PURE__ */ l(
|
|
1986
|
-
So,
|
|
1987
|
-
{
|
|
1988
|
-
"data-slot": "alert-dialog-overlay",
|
|
1989
|
-
className: E(
|
|
1990
|
-
"z-50 fixed inset-0 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
1991
|
-
e
|
|
1992
|
-
),
|
|
1993
|
-
...t
|
|
1994
|
-
}
|
|
1995
|
-
);
|
|
1996
|
-
}
|
|
1997
|
-
function ua({
|
|
1998
|
-
className: e,
|
|
1999
|
-
...t
|
|
2000
|
-
}) {
|
|
2001
|
-
return /* @__PURE__ */ L(To, { children: [
|
|
2002
|
-
/* @__PURE__ */ l(Oo, {}),
|
|
2003
|
-
/* @__PURE__ */ l(
|
|
2004
|
-
Co,
|
|
2005
|
-
{
|
|
2006
|
-
"data-slot": "alert-dialog-content",
|
|
2007
|
-
className: E(
|
|
2008
|
-
"top-[50%] left-[50%] z-50 fixed gap-4 grid bg-background shadow-lg p-6 border rounded-lg w-full max-w-[calc(100%-2rem)] sm:max-w-lg translate-x-[-50%] translate-y-[-50%] data-[state=closed]:animate-out data-[state=open]:animate-in duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
2009
|
-
e
|
|
2010
|
-
),
|
|
2011
|
-
...t
|
|
2012
|
-
}
|
|
2013
|
-
)
|
|
2014
|
-
] });
|
|
2015
|
-
}
|
|
2016
|
-
function da({ className: e, ...t }) {
|
|
2017
|
-
return /* @__PURE__ */ l(
|
|
2018
|
-
"div",
|
|
2019
|
-
{
|
|
2020
|
-
"data-slot": "alert-dialog-header",
|
|
2021
|
-
className: E("flex flex-col gap-2 sm:text-left text-center", e),
|
|
2022
|
-
...t
|
|
2023
|
-
}
|
|
2024
|
-
);
|
|
2025
|
-
}
|
|
2026
|
-
function fa({ className: e, ...t }) {
|
|
2027
|
-
return /* @__PURE__ */ l(
|
|
2028
|
-
"div",
|
|
2029
|
-
{
|
|
2030
|
-
"data-slot": "alert-dialog-footer",
|
|
2031
|
-
className: E("flex sm:flex-row flex-col-reverse sm:justify-end gap-2", e),
|
|
2032
|
-
...t
|
|
2033
|
-
}
|
|
2034
|
-
);
|
|
2035
|
-
}
|
|
2036
|
-
function va({
|
|
2037
|
-
className: e,
|
|
2038
|
-
...t
|
|
2039
|
-
}) {
|
|
2040
|
-
return /* @__PURE__ */ l(
|
|
2041
|
-
Po,
|
|
432
|
+
return /* @__PURE__ */ s(
|
|
433
|
+
u.ScrollDownButton,
|
|
2042
434
|
{
|
|
2043
|
-
"data-slot": "
|
|
2044
|
-
className:
|
|
2045
|
-
...
|
|
2046
|
-
|
|
2047
|
-
);
|
|
2048
|
-
}
|
|
2049
|
-
function ga({
|
|
2050
|
-
className: e,
|
|
2051
|
-
...t
|
|
2052
|
-
}) {
|
|
2053
|
-
return /* @__PURE__ */ l(
|
|
2054
|
-
Ro,
|
|
2055
|
-
{
|
|
2056
|
-
"data-slot": "alert-dialog-description",
|
|
2057
|
-
className: E("text-muted-foreground text-sm", e),
|
|
2058
|
-
...t
|
|
2059
|
-
}
|
|
2060
|
-
);
|
|
2061
|
-
}
|
|
2062
|
-
function ma({
|
|
2063
|
-
className: e,
|
|
2064
|
-
...t
|
|
2065
|
-
}) {
|
|
2066
|
-
return /* @__PURE__ */ l(Ao, { className: E(Ae(), e), ...t });
|
|
2067
|
-
}
|
|
2068
|
-
function pa({
|
|
2069
|
-
className: e,
|
|
2070
|
-
...t
|
|
2071
|
-
}) {
|
|
2072
|
-
return /* @__PURE__ */ l(
|
|
2073
|
-
Do,
|
|
2074
|
-
{
|
|
2075
|
-
className: E(Ae({ variant: "outline" }), e),
|
|
2076
|
-
...t
|
|
435
|
+
"data-slot": "select-scroll-down-button",
|
|
436
|
+
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
437
|
+
...e,
|
|
438
|
+
children: /* @__PURE__ */ s(I, { className: "size-4" })
|
|
2077
439
|
}
|
|
2078
440
|
);
|
|
2079
441
|
}
|
|
2080
|
-
const
|
|
2081
|
-
translationKey:
|
|
2082
|
-
translationOptions:
|
|
2083
|
-
namespace:
|
|
442
|
+
const Be = ({
|
|
443
|
+
translationKey: t,
|
|
444
|
+
translationOptions: e,
|
|
445
|
+
namespace: a,
|
|
2084
446
|
...r
|
|
2085
447
|
}) => {
|
|
2086
|
-
const
|
|
2087
|
-
|
|
2088
|
-
|
|
448
|
+
const l = T(a)(
|
|
449
|
+
t,
|
|
450
|
+
e == null ? void 0 : e.args
|
|
2089
451
|
);
|
|
2090
|
-
return /* @__PURE__ */
|
|
2091
|
-
},
|
|
2092
|
-
translationKey:
|
|
2093
|
-
translationOptions:
|
|
2094
|
-
namespace:
|
|
452
|
+
return /* @__PURE__ */ s(h, { ...r, children: l });
|
|
453
|
+
}, $e = ({
|
|
454
|
+
translationKey: t,
|
|
455
|
+
translationOptions: e,
|
|
456
|
+
namespace: a,
|
|
2095
457
|
className: r,
|
|
2096
|
-
tag:
|
|
458
|
+
tag: n = "div"
|
|
2097
459
|
}) => {
|
|
2098
|
-
const
|
|
2099
|
-
|
|
2100
|
-
|
|
460
|
+
const o = T(a)(
|
|
461
|
+
t,
|
|
462
|
+
e == null ? void 0 : e.args
|
|
2101
463
|
);
|
|
2102
|
-
return
|
|
464
|
+
return O.createElement(n, { className: r, "data-testid": "translated-html" }, o);
|
|
2103
465
|
};
|
|
2104
|
-
var
|
|
2105
|
-
function
|
|
2106
|
-
return `${
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
function
|
|
2110
|
-
const
|
|
2111
|
-
return
|
|
2112
|
-
}
|
|
2113
|
-
A
|
|
2114
|
-
function
|
|
2115
|
-
var
|
|
2116
|
-
const r =
|
|
466
|
+
var de = Object.defineProperty, c = (t, e) => de(t, "name", { value: e, configurable: !0 }), y = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
|
|
467
|
+
function P(t, e) {
|
|
468
|
+
return `${t}:${JSON.stringify(e ?? {})}`;
|
|
469
|
+
}
|
|
470
|
+
c(P, "getFormatterKey");
|
|
471
|
+
function A(t) {
|
|
472
|
+
const e = typeof t == "string" || typeof t == "number" ? new Date(t) : t;
|
|
473
|
+
return e instanceof Date && !Number.isNaN(e.getTime()) ? e : null;
|
|
474
|
+
}
|
|
475
|
+
c(A, "parseDate");
|
|
476
|
+
function z(t, e = "en", a) {
|
|
477
|
+
var l;
|
|
478
|
+
const r = A(t);
|
|
2117
479
|
if (!r)
|
|
2118
480
|
return "";
|
|
2119
|
-
const
|
|
2120
|
-
return
|
|
481
|
+
const n = P(e, a);
|
|
482
|
+
return y.has(n) || y.set(n, new Intl.DateTimeFormat(e, a)), ((l = y.get(n)) == null ? void 0 : l.format(r)) ?? "";
|
|
2121
483
|
}
|
|
2122
|
-
|
|
2123
|
-
function
|
|
2124
|
-
var
|
|
2125
|
-
if (typeof
|
|
484
|
+
c(z, "formatDate");
|
|
485
|
+
function M(t, e = "en", a) {
|
|
486
|
+
var n;
|
|
487
|
+
if (typeof t != "number" || Number.isNaN(t))
|
|
2126
488
|
return "";
|
|
2127
|
-
const r =
|
|
2128
|
-
return
|
|
489
|
+
const r = P(e, a);
|
|
490
|
+
return L.has(r) || L.set(r, new Intl.NumberFormat(e, a)), ((n = L.get(r)) == null ? void 0 : n.format(t)) ?? "";
|
|
2129
491
|
}
|
|
2130
|
-
|
|
2131
|
-
var
|
|
492
|
+
c(M, "formatNumber");
|
|
493
|
+
var N = {
|
|
2132
494
|
defaultLocale: "en",
|
|
2133
495
|
supportedLocales: ["en", "es", "fr", "it", "pt-BR", "pt-PT"],
|
|
2134
496
|
fallbackLocale: "en"
|
|
2135
497
|
};
|
|
2136
|
-
function
|
|
2137
|
-
return
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
function
|
|
2141
|
-
return
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
-
function
|
|
2145
|
-
return
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
function
|
|
2149
|
-
return
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
var
|
|
2153
|
-
function
|
|
2154
|
-
value:
|
|
2155
|
-
forms:
|
|
2156
|
-
lang:
|
|
498
|
+
function pe() {
|
|
499
|
+
return N.supportedLocales;
|
|
500
|
+
}
|
|
501
|
+
c(pe, "getSupportedLanguages");
|
|
502
|
+
function fe() {
|
|
503
|
+
return N.defaultLocale;
|
|
504
|
+
}
|
|
505
|
+
c(fe, "getDefaultLanguage");
|
|
506
|
+
function me() {
|
|
507
|
+
return N.fallbackLocale;
|
|
508
|
+
}
|
|
509
|
+
c(me, "getFallbackLanguage");
|
|
510
|
+
function ge(t) {
|
|
511
|
+
return N.supportedLocales.includes(t);
|
|
512
|
+
}
|
|
513
|
+
c(ge, "isSupportedLanguage");
|
|
514
|
+
var f = /* @__PURE__ */ new Map();
|
|
515
|
+
function xe({
|
|
516
|
+
value: t,
|
|
517
|
+
forms: e,
|
|
518
|
+
lang: a,
|
|
2157
519
|
type: r = "cardinal"
|
|
2158
520
|
}) {
|
|
2159
|
-
if (!
|
|
521
|
+
if (!D(t, e))
|
|
2160
522
|
return "";
|
|
2161
|
-
if (
|
|
2162
|
-
return
|
|
2163
|
-
const
|
|
2164
|
-
return
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
function
|
|
2168
|
-
return `${
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
var
|
|
2172
|
-
function
|
|
2173
|
-
switch (
|
|
523
|
+
if (t === 0 && e.zero)
|
|
524
|
+
return k(e.zero, t);
|
|
525
|
+
const l = C(a, r).select(t), o = F(e, l) ?? e.other ?? Object.values(e)[0];
|
|
526
|
+
return o ? k(o, t) : "";
|
|
527
|
+
}
|
|
528
|
+
c(xe, "pluralize");
|
|
529
|
+
function S(t, e) {
|
|
530
|
+
return `${t}:${e}`;
|
|
531
|
+
}
|
|
532
|
+
c(S, "getPluralRulesKey");
|
|
533
|
+
var be = /{count}|#/g;
|
|
534
|
+
function F(t, e) {
|
|
535
|
+
switch (e) {
|
|
2174
536
|
case "zero":
|
|
2175
|
-
return
|
|
537
|
+
return t.zero;
|
|
2176
538
|
case "one":
|
|
2177
|
-
return
|
|
539
|
+
return t.one;
|
|
2178
540
|
case "two":
|
|
2179
|
-
return
|
|
541
|
+
return t.two;
|
|
2180
542
|
case "few":
|
|
2181
|
-
return
|
|
543
|
+
return t.few;
|
|
2182
544
|
case "many":
|
|
2183
|
-
return
|
|
545
|
+
return t.many;
|
|
2184
546
|
case "other":
|
|
2185
|
-
return
|
|
547
|
+
return t.other;
|
|
2186
548
|
default:
|
|
2187
549
|
return;
|
|
2188
550
|
}
|
|
2189
551
|
}
|
|
2190
|
-
|
|
2191
|
-
function
|
|
2192
|
-
return typeof
|
|
552
|
+
c(F, "selectTemplate");
|
|
553
|
+
function D(t, e) {
|
|
554
|
+
return typeof t == "number" && e && typeof e == "object";
|
|
2193
555
|
}
|
|
2194
|
-
|
|
2195
|
-
function
|
|
2196
|
-
return
|
|
556
|
+
c(D, "isValidInput");
|
|
557
|
+
function k(t, e) {
|
|
558
|
+
return t.replaceAll(be, e.toString());
|
|
2197
559
|
}
|
|
2198
|
-
|
|
2199
|
-
function
|
|
2200
|
-
const
|
|
2201
|
-
if (
|
|
560
|
+
c(k, "replacePlaceholders");
|
|
561
|
+
function C(t, e) {
|
|
562
|
+
const a = S(t, e);
|
|
563
|
+
if (!f.has(a))
|
|
2202
564
|
try {
|
|
2203
|
-
|
|
565
|
+
f.set(a, new Intl.PluralRules(t, { type: e }));
|
|
2204
566
|
} catch {
|
|
2205
|
-
return
|
|
567
|
+
return w(a, e);
|
|
2206
568
|
}
|
|
2207
|
-
return
|
|
569
|
+
return f.get(a) ?? w(a, e);
|
|
2208
570
|
}
|
|
2209
|
-
|
|
2210
|
-
function
|
|
2211
|
-
const
|
|
2212
|
-
|
|
2213
|
-
const r =
|
|
2214
|
-
return
|
|
571
|
+
c(C, "getPluralRules");
|
|
572
|
+
function w(t, e) {
|
|
573
|
+
const a = S("en", e);
|
|
574
|
+
f.has(a) || f.set(a, new Intl.PluralRules("en", { type: e }));
|
|
575
|
+
const r = f.get(a) ?? w(a, e);
|
|
576
|
+
return f.set(t, r), r;
|
|
2215
577
|
}
|
|
2216
|
-
|
|
2217
|
-
var
|
|
2218
|
-
|
|
578
|
+
c(w, "getFallbackPluralRules");
|
|
579
|
+
var p;
|
|
580
|
+
p = class {
|
|
2219
581
|
constructor() {
|
|
2220
|
-
|
|
582
|
+
v(this, "fallbackLocale");
|
|
2221
583
|
this.fallbackLocale = "en";
|
|
2222
584
|
}
|
|
2223
585
|
/**
|
|
@@ -2225,15 +587,15 @@ P = class {
|
|
|
2225
587
|
* @returns {LocaleDetector} The singleton instance.
|
|
2226
588
|
*/
|
|
2227
589
|
static getInstance() {
|
|
2228
|
-
return
|
|
590
|
+
return p.instance || (p.instance = new p()), p.instance;
|
|
2229
591
|
}
|
|
2230
592
|
/**
|
|
2231
593
|
* Detect locale using server-side request or client-side settings.
|
|
2232
594
|
* @param {any} [request] - Optional server request object.
|
|
2233
595
|
* @returns {string} Detected locale string.
|
|
2234
596
|
*/
|
|
2235
|
-
detectLocale(
|
|
2236
|
-
return
|
|
597
|
+
detectLocale(e) {
|
|
598
|
+
return e ? this.detectFromRequest(e) : this.fallbackLocale;
|
|
2237
599
|
}
|
|
2238
600
|
/**
|
|
2239
601
|
* Detect locale from a server request (query, headers, cookies).
|
|
@@ -2241,10 +603,10 @@ P = class {
|
|
|
2241
603
|
* @returns {string} Detected locale string.
|
|
2242
604
|
* @private
|
|
2243
605
|
*/
|
|
2244
|
-
detectFromRequest(
|
|
2245
|
-
var
|
|
2246
|
-
const
|
|
2247
|
-
return
|
|
606
|
+
detectFromRequest(e) {
|
|
607
|
+
var l, o, d;
|
|
608
|
+
const a = (l = e.url.split("?")[1]) == null ? void 0 : l.split("=")[1], r = e.headers.get("accept-language"), n = (d = (o = e.headers.get("cookie")) == null ? void 0 : o.split("; ").find((m) => m.startsWith("locale="))) == null ? void 0 : d.split("=")[1];
|
|
609
|
+
return a ?? n ?? this.parseAcceptLanguage(r ?? "") ?? this.fallbackLocale;
|
|
2248
610
|
}
|
|
2249
611
|
/**
|
|
2250
612
|
* Parse Accept-Language header and return the highest priority language.
|
|
@@ -2252,40 +614,40 @@ P = class {
|
|
|
2252
614
|
* @returns {string|null} Best language or null.
|
|
2253
615
|
* @private
|
|
2254
616
|
*/
|
|
2255
|
-
parseAcceptLanguage(
|
|
2256
|
-
if (!
|
|
617
|
+
parseAcceptLanguage(e) {
|
|
618
|
+
if (!e)
|
|
2257
619
|
return null;
|
|
2258
|
-
let
|
|
2259
|
-
for (const
|
|
2260
|
-
const { lang:
|
|
2261
|
-
if (
|
|
620
|
+
let a = null, r = 0;
|
|
621
|
+
for (const n of e.split(",")) {
|
|
622
|
+
const { lang: l, q: o } = this.parseLangAndQ(n.trim());
|
|
623
|
+
if (o > r && (r = o, a = l, o === 1))
|
|
2262
624
|
break;
|
|
2263
625
|
}
|
|
2264
|
-
return
|
|
626
|
+
return a;
|
|
2265
627
|
}
|
|
2266
|
-
parseLangAndQ(
|
|
2267
|
-
const
|
|
2268
|
-
let
|
|
2269
|
-
if (
|
|
2270
|
-
const
|
|
2271
|
-
|
|
628
|
+
parseLangAndQ(e) {
|
|
629
|
+
const a = e.indexOf(";"), r = a === -1 ? e : e.slice(0, Math.max(0, a));
|
|
630
|
+
let n = 1;
|
|
631
|
+
if (a !== -1) {
|
|
632
|
+
const l = /q=(?<q>[\d.]+)/.exec(e.slice(a + 1));
|
|
633
|
+
n = l != null && l.groups ? Number.parseFloat(l.groups.q) || 0 : 1;
|
|
2272
634
|
}
|
|
2273
|
-
return { lang: r, q:
|
|
635
|
+
return { lang: r, q: n };
|
|
2274
636
|
}
|
|
2275
637
|
/**
|
|
2276
638
|
* Set the fallback locale.
|
|
2277
639
|
* @param {string} locale - Fallback locale string.
|
|
2278
640
|
* @internal
|
|
2279
641
|
*/
|
|
2280
|
-
setFallbackLocale(
|
|
2281
|
-
this.fallbackLocale =
|
|
642
|
+
setFallbackLocale(e) {
|
|
643
|
+
this.fallbackLocale = e;
|
|
2282
644
|
}
|
|
2283
|
-
},
|
|
2284
|
-
var
|
|
2285
|
-
|
|
2286
|
-
constructor(
|
|
2287
|
-
|
|
2288
|
-
this.namespaces =
|
|
645
|
+
}, c(p, "LocaleDetector"), v(p, "instance");
|
|
646
|
+
var g;
|
|
647
|
+
g = class {
|
|
648
|
+
constructor(e) {
|
|
649
|
+
v(this, "namespaces");
|
|
650
|
+
this.namespaces = e ? new Map(e) : /* @__PURE__ */ new Map();
|
|
2289
651
|
}
|
|
2290
652
|
/**
|
|
2291
653
|
* Add a namespace with its translations.
|
|
@@ -2293,18 +655,18 @@ K = class {
|
|
|
2293
655
|
* @param {Record<string, string>} translations - Translation key-value pairs.
|
|
2294
656
|
* @throws {Error} If the namespace name is invalid.
|
|
2295
657
|
*/
|
|
2296
|
-
addNamespace(
|
|
2297
|
-
if (!
|
|
658
|
+
addNamespace(e, a) {
|
|
659
|
+
if (!j(e))
|
|
2298
660
|
throw new Error("Invalid namespace name");
|
|
2299
|
-
this.namespaces.set(
|
|
661
|
+
this.namespaces.set(e, a);
|
|
2300
662
|
}
|
|
2301
663
|
/**
|
|
2302
664
|
* Get a namespace by name.
|
|
2303
665
|
* @param {string} name - Namespace name.
|
|
2304
666
|
* @returns {Record<string, string> | undefined} Namespace translations or undefined.
|
|
2305
667
|
*/
|
|
2306
|
-
getNamespace(
|
|
2307
|
-
return this.namespaces.get(
|
|
668
|
+
getNamespace(e) {
|
|
669
|
+
return this.namespaces.get(e);
|
|
2308
670
|
}
|
|
2309
671
|
/**
|
|
2310
672
|
* Get all namespace names.
|
|
@@ -2318,9 +680,9 @@ K = class {
|
|
|
2318
680
|
* @param {string} target - Target namespace name.
|
|
2319
681
|
* @param {string} source - Source namespace name.
|
|
2320
682
|
*/
|
|
2321
|
-
mergeNamespaces(
|
|
2322
|
-
const r = this.namespaces.get(
|
|
2323
|
-
this.namespaces.set(
|
|
683
|
+
mergeNamespaces(e, a) {
|
|
684
|
+
const r = this.namespaces.get(e) ?? {}, n = this.namespaces.get(a) ?? {};
|
|
685
|
+
this.namespaces.set(e, { ...r, ...n });
|
|
2324
686
|
}
|
|
2325
687
|
/**
|
|
2326
688
|
* Validate a namespace against a schema.
|
|
@@ -2328,126 +690,115 @@ K = class {
|
|
|
2328
690
|
* @param {Record<string, string>} [schema] - Optional schema to validate against.
|
|
2329
691
|
* @returns {boolean} True if valid, false otherwise.
|
|
2330
692
|
*/
|
|
2331
|
-
validateNamespace(
|
|
2332
|
-
const r = this.namespaces.get(
|
|
2333
|
-
return r ?
|
|
2334
|
-
var
|
|
2335
|
-
const
|
|
2336
|
-
return
|
|
693
|
+
validateNamespace(e, a) {
|
|
694
|
+
const r = this.namespaces.get(e);
|
|
695
|
+
return r ? a ? Object.entries(a).every(([n, l]) => {
|
|
696
|
+
var d;
|
|
697
|
+
const o = (d = Object.getOwnPropertyDescriptor(r, n)) == null ? void 0 : d.value;
|
|
698
|
+
return o !== void 0 && typeof o === l;
|
|
2337
699
|
}) : !0 : !1;
|
|
2338
700
|
}
|
|
2339
|
-
},
|
|
2340
|
-
function
|
|
2341
|
-
return /^\w+$/.test(
|
|
701
|
+
}, c(g, "NamespaceManager");
|
|
702
|
+
function j(t) {
|
|
703
|
+
return /^\w+$/.test(t);
|
|
2342
704
|
}
|
|
2343
|
-
|
|
2344
|
-
const
|
|
2345
|
-
date:
|
|
2346
|
-
formatOptions:
|
|
2347
|
-
locale:
|
|
705
|
+
c(j, "isSafeKey");
|
|
706
|
+
const Ve = ({
|
|
707
|
+
date: t,
|
|
708
|
+
formatOptions: e,
|
|
709
|
+
locale: a,
|
|
2348
710
|
...r
|
|
2349
711
|
}) => {
|
|
2350
|
-
const
|
|
2351
|
-
return /* @__PURE__ */
|
|
2352
|
-
},
|
|
2353
|
-
value:
|
|
2354
|
-
formatOptions:
|
|
2355
|
-
locale:
|
|
712
|
+
const n = z(t, a, e);
|
|
713
|
+
return /* @__PURE__ */ s(h, { ...r, children: n });
|
|
714
|
+
}, Ge = ({
|
|
715
|
+
value: t,
|
|
716
|
+
formatOptions: e,
|
|
717
|
+
locale: a,
|
|
2356
718
|
...r
|
|
2357
719
|
}) => {
|
|
2358
|
-
const
|
|
2359
|
-
return /* @__PURE__ */
|
|
720
|
+
const n = M(t, a, e);
|
|
721
|
+
return /* @__PURE__ */ s(h, { ...r, children: n });
|
|
2360
722
|
};
|
|
2361
|
-
function
|
|
2362
|
-
locale:
|
|
2363
|
-
locales:
|
|
2364
|
-
onChange:
|
|
723
|
+
function Ke({
|
|
724
|
+
locale: t,
|
|
725
|
+
locales: e,
|
|
726
|
+
onChange: a,
|
|
2365
727
|
getLabel: r,
|
|
2366
|
-
disabled:
|
|
728
|
+
disabled: n
|
|
2367
729
|
}) {
|
|
2368
|
-
return /* @__PURE__ */
|
|
2369
|
-
/* @__PURE__ */
|
|
2370
|
-
/* @__PURE__ */
|
|
730
|
+
return /* @__PURE__ */ x(ne, { value: t, onValueChange: a, disabled: n, children: [
|
|
731
|
+
/* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(se, { placeholder: r(t) }) }),
|
|
732
|
+
/* @__PURE__ */ s(oe, { children: e.map((l) => /* @__PURE__ */ s(ie, { value: l, children: r(l) }, l)) })
|
|
2371
733
|
] });
|
|
2372
734
|
}
|
|
2373
|
-
function
|
|
2374
|
-
className:
|
|
2375
|
-
reverse:
|
|
2376
|
-
pauseOnHover:
|
|
735
|
+
function Ue({
|
|
736
|
+
className: t,
|
|
737
|
+
reverse: e = !1,
|
|
738
|
+
pauseOnHover: a = !1,
|
|
2377
739
|
paused: r = !1,
|
|
2378
|
-
children:
|
|
2379
|
-
vertical:
|
|
2380
|
-
repeat:
|
|
2381
|
-
...
|
|
740
|
+
children: n,
|
|
741
|
+
vertical: l = !1,
|
|
742
|
+
repeat: o = 4,
|
|
743
|
+
...d
|
|
2382
744
|
}) {
|
|
2383
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ s(
|
|
2384
746
|
"div",
|
|
2385
747
|
{
|
|
2386
|
-
...
|
|
2387
|
-
className:
|
|
748
|
+
...d,
|
|
749
|
+
className: i(
|
|
2388
750
|
"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
|
|
2389
751
|
{
|
|
2390
|
-
"flex-row": !
|
|
2391
|
-
"flex-col":
|
|
752
|
+
"flex-row": !l,
|
|
753
|
+
"flex-col": l
|
|
2392
754
|
},
|
|
2393
|
-
|
|
755
|
+
t
|
|
2394
756
|
),
|
|
2395
|
-
children: Array(
|
|
757
|
+
children: Array(o).fill(0).map((m, B) => /* @__PURE__ */ s(
|
|
2396
758
|
"div",
|
|
2397
759
|
{
|
|
2398
|
-
className:
|
|
2399
|
-
"animate-marquee flex-row": !
|
|
2400
|
-
"animate-marquee-vertical flex-col":
|
|
2401
|
-
"group-hover:[animation-play-state:paused]":
|
|
2402
|
-
"[animation-direction:reverse]":
|
|
760
|
+
className: i("flex shrink-0 justify-around [gap:var(--gap)]", {
|
|
761
|
+
"animate-marquee flex-row": !l,
|
|
762
|
+
"animate-marquee-vertical flex-col": l,
|
|
763
|
+
"group-hover:[animation-play-state:paused]": a,
|
|
764
|
+
"[animation-direction:reverse]": e,
|
|
2403
765
|
"[animation-play-state:paused]": r
|
|
2404
766
|
}),
|
|
2405
|
-
children:
|
|
767
|
+
children: n
|
|
2406
768
|
},
|
|
2407
|
-
|
|
769
|
+
B
|
|
2408
770
|
))
|
|
2409
771
|
}
|
|
2410
772
|
);
|
|
2411
773
|
}
|
|
2412
774
|
export {
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
Pn as SelectItem,
|
|
2443
|
-
aa as SelectLabel,
|
|
2444
|
-
Tn as SelectScrollDownButton,
|
|
2445
|
-
Rn as SelectScrollUpButton,
|
|
2446
|
-
ia as SelectSeparator,
|
|
2447
|
-
An as SelectTrigger,
|
|
2448
|
-
Cn as SelectValue,
|
|
2449
|
-
ta as Stack,
|
|
2450
|
-
Z as Text,
|
|
2451
|
-
ba as TranslatedHtml,
|
|
2452
|
-
ha as TranslatedText
|
|
775
|
+
re as AuroraText,
|
|
776
|
+
b as Box,
|
|
777
|
+
Me as Button,
|
|
778
|
+
Se as Container,
|
|
779
|
+
Ie as ExternalLink,
|
|
780
|
+
Ee as Flex,
|
|
781
|
+
Ve as FormattedDate,
|
|
782
|
+
Ge as FormattedNumber,
|
|
783
|
+
_e as Grid,
|
|
784
|
+
Re as Heading,
|
|
785
|
+
Fe as Input,
|
|
786
|
+
Ke as LanguageSelector,
|
|
787
|
+
Ue as Marquee,
|
|
788
|
+
Te as Paragraph,
|
|
789
|
+
Ae as Section,
|
|
790
|
+
ne as Select,
|
|
791
|
+
oe as SelectContent,
|
|
792
|
+
De as SelectGroup,
|
|
793
|
+
ie as SelectItem,
|
|
794
|
+
Ce as SelectLabel,
|
|
795
|
+
ue as SelectScrollDownButton,
|
|
796
|
+
ce as SelectScrollUpButton,
|
|
797
|
+
je as SelectSeparator,
|
|
798
|
+
le as SelectTrigger,
|
|
799
|
+
se as SelectValue,
|
|
800
|
+
ze as Stack,
|
|
801
|
+
h as Text,
|
|
802
|
+
$e as TranslatedHtml,
|
|
803
|
+
Be as TranslatedText
|
|
2453
804
|
};
|