@purpurds/modal 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.txt +6 -6
- package/dist/modal.cjs.js +17 -17
- package/dist/modal.cjs.js.map +1 -1
- package/dist/modal.es.js +463 -465
- package/dist/modal.es.js.map +1 -1
- package/dist/modal.system.js +19 -19
- package/dist/modal.system.js.map +1 -1
- package/package.json +10 -10
- package/readme.mdx +3 -15
package/dist/modal.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as V, jsx as _, Fragment as
|
|
1
|
+
import { jsxs as V, jsx as _, Fragment as Tt } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { useCallback as Q, createContext as xe, useMemo as ve, createElement as m, useContext as
|
|
4
|
-
import
|
|
3
|
+
import { useCallback as Q, createContext as xe, useMemo as ve, createElement as m, useContext as tt, useLayoutEffect as Dt, useRef as O, useEffect as A, useState as K, forwardRef as C, Children as I, isValidElement as B, cloneElement as te, Fragment as Re, useReducer as Rt } from "react";
|
|
4
|
+
import It, { flushSync as nt } from "react-dom";
|
|
5
5
|
function P() {
|
|
6
6
|
return P = Object.assign ? Object.assign.bind() : function(e) {
|
|
7
7
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -12,42 +12,42 @@ function P() {
|
|
|
12
12
|
return e;
|
|
13
13
|
}, P.apply(this, arguments);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function k(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
16
16
|
return function(a) {
|
|
17
17
|
if (e == null || e(a), t === !1 || !a.defaultPrevented)
|
|
18
18
|
return n == null ? void 0 : n(a);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Mt(e, n) {
|
|
22
22
|
typeof e == "function" ? e(n) : e != null && (e.current = n);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function rt(...e) {
|
|
25
25
|
return (n) => e.forEach(
|
|
26
|
-
(t) =>
|
|
26
|
+
(t) => Mt(t, n)
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
function J(...e) {
|
|
30
|
-
return Q(
|
|
30
|
+
return Q(rt(...e), e);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Lt(e, n = []) {
|
|
33
33
|
let t = [];
|
|
34
34
|
function o(r, i) {
|
|
35
|
-
const
|
|
35
|
+
const c = /* @__PURE__ */ xe(i), l = t.length;
|
|
36
36
|
t = [
|
|
37
37
|
...t,
|
|
38
38
|
i
|
|
39
39
|
];
|
|
40
40
|
function d(s) {
|
|
41
|
-
const { scope: h, children: f, ...E } = s,
|
|
41
|
+
const { scope: h, children: f, ...E } = s, u = (h == null ? void 0 : h[e][l]) || c, v = ve(
|
|
42
42
|
() => E,
|
|
43
43
|
Object.values(E)
|
|
44
44
|
);
|
|
45
|
-
return /* @__PURE__ */ m(
|
|
45
|
+
return /* @__PURE__ */ m(u.Provider, {
|
|
46
46
|
value: v
|
|
47
47
|
}, f);
|
|
48
48
|
}
|
|
49
49
|
function p(s, h) {
|
|
50
|
-
const f = (h == null ? void 0 : h[e][l]) ||
|
|
50
|
+
const f = (h == null ? void 0 : h[e][l]) || c, E = tt(f);
|
|
51
51
|
if (E)
|
|
52
52
|
return E;
|
|
53
53
|
if (i !== void 0)
|
|
@@ -61,17 +61,17 @@ function Ft(e, n = []) {
|
|
|
61
61
|
}
|
|
62
62
|
const a = () => {
|
|
63
63
|
const r = t.map((i) => /* @__PURE__ */ xe(i));
|
|
64
|
-
return function(
|
|
65
|
-
const l = (
|
|
64
|
+
return function(c) {
|
|
65
|
+
const l = (c == null ? void 0 : c[e]) || r;
|
|
66
66
|
return ve(
|
|
67
67
|
() => ({
|
|
68
68
|
[`__scope${e}`]: {
|
|
69
|
-
...
|
|
69
|
+
...c,
|
|
70
70
|
[e]: l
|
|
71
71
|
}
|
|
72
72
|
}),
|
|
73
73
|
[
|
|
74
|
-
|
|
74
|
+
c,
|
|
75
75
|
l
|
|
76
76
|
]
|
|
77
77
|
);
|
|
@@ -79,10 +79,10 @@ function Ft(e, n = []) {
|
|
|
79
79
|
};
|
|
80
80
|
return a.scopeName = e, [
|
|
81
81
|
o,
|
|
82
|
-
|
|
82
|
+
Ft(a, ...n)
|
|
83
83
|
];
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ft(...e) {
|
|
86
86
|
const n = e[0];
|
|
87
87
|
if (e.length === 1)
|
|
88
88
|
return n;
|
|
@@ -94,10 +94,10 @@ function kt(...e) {
|
|
|
94
94
|
})
|
|
95
95
|
);
|
|
96
96
|
return function(r) {
|
|
97
|
-
const i = o.reduce((
|
|
97
|
+
const i = o.reduce((c, { useScope: l, scopeName: d }) => {
|
|
98
98
|
const s = l(r)[`__scope${d}`];
|
|
99
99
|
return {
|
|
100
|
-
...
|
|
100
|
+
...c,
|
|
101
101
|
...s
|
|
102
102
|
};
|
|
103
103
|
}, {});
|
|
@@ -113,15 +113,15 @@ function kt(...e) {
|
|
|
113
113
|
};
|
|
114
114
|
return t.scopeName = n.scopeName, t;
|
|
115
115
|
}
|
|
116
|
-
const Oe = globalThis != null && globalThis.document ?
|
|
116
|
+
const Oe = globalThis != null && globalThis.document ? Dt : () => {
|
|
117
117
|
}, jt = g.useId || (() => {
|
|
118
118
|
});
|
|
119
|
-
let
|
|
119
|
+
let kt = 0;
|
|
120
120
|
function me(e) {
|
|
121
121
|
const [n, t] = g.useState(jt());
|
|
122
122
|
return Oe(() => {
|
|
123
123
|
e || t(
|
|
124
|
-
(o) => o ?? String(
|
|
124
|
+
(o) => o ?? String(kt++)
|
|
125
125
|
);
|
|
126
126
|
}, [
|
|
127
127
|
e
|
|
@@ -139,29 +139,29 @@ function z(e) {
|
|
|
139
139
|
[]
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Bt({ prop: e, defaultProp: n, onChange: t = () => {
|
|
143
143
|
} }) {
|
|
144
|
-
const [o, a] =
|
|
144
|
+
const [o, a] = Wt({
|
|
145
145
|
defaultProp: n,
|
|
146
146
|
onChange: t
|
|
147
|
-
}), r = e !== void 0, i = r ? e : o,
|
|
147
|
+
}), r = e !== void 0, i = r ? e : o, c = z(t), l = Q((d) => {
|
|
148
148
|
if (r) {
|
|
149
149
|
const s = typeof d == "function" ? d(e) : d;
|
|
150
|
-
s !== e &&
|
|
150
|
+
s !== e && c(s);
|
|
151
151
|
} else
|
|
152
152
|
a(d);
|
|
153
153
|
}, [
|
|
154
154
|
r,
|
|
155
155
|
e,
|
|
156
156
|
a,
|
|
157
|
-
|
|
157
|
+
c
|
|
158
158
|
]);
|
|
159
159
|
return [
|
|
160
160
|
i,
|
|
161
161
|
l
|
|
162
162
|
];
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Wt({ defaultProp: e, onChange: n }) {
|
|
165
165
|
const t = K(e), [o] = t, a = O(o), r = z(n);
|
|
166
166
|
return A(() => {
|
|
167
167
|
a.current !== o && (r(o), a.current = o);
|
|
@@ -172,12 +172,12 @@ function Ut({ defaultProp: e, onChange: n }) {
|
|
|
172
172
|
]), t;
|
|
173
173
|
}
|
|
174
174
|
const Ie = /* @__PURE__ */ C((e, n) => {
|
|
175
|
-
const { children: t, ...o } = e, a = I.toArray(t), r = a.find(
|
|
175
|
+
const { children: t, ...o } = e, a = I.toArray(t), r = a.find(Ht);
|
|
176
176
|
if (r) {
|
|
177
|
-
const i = r.props.children,
|
|
177
|
+
const i = r.props.children, c = a.map((l) => l === r ? I.count(i) > 1 ? I.only(null) : /* @__PURE__ */ B(i) ? i.props.children : null : l);
|
|
178
178
|
return /* @__PURE__ */ m(Pe, P({}, o, {
|
|
179
179
|
ref: n
|
|
180
|
-
}), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0,
|
|
180
|
+
}), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0, c) : null);
|
|
181
181
|
}
|
|
182
182
|
return /* @__PURE__ */ m(Pe, P({}, o, {
|
|
183
183
|
ref: n
|
|
@@ -187,23 +187,23 @@ Ie.displayName = "Slot";
|
|
|
187
187
|
const Pe = /* @__PURE__ */ C((e, n) => {
|
|
188
188
|
const { children: t, ...o } = e;
|
|
189
189
|
return /* @__PURE__ */ B(t) ? /* @__PURE__ */ te(t, {
|
|
190
|
-
...
|
|
191
|
-
ref: n ?
|
|
190
|
+
...Gt(o, t.props),
|
|
191
|
+
ref: n ? rt(n, t.ref) : t.ref
|
|
192
192
|
}) : I.count(t) > 1 ? I.only(null) : null;
|
|
193
193
|
});
|
|
194
194
|
Pe.displayName = "SlotClone";
|
|
195
|
-
const
|
|
196
|
-
function
|
|
197
|
-
return /* @__PURE__ */ B(e) && e.type ===
|
|
195
|
+
const Ut = ({ children: e }) => /* @__PURE__ */ m(Re, null, e);
|
|
196
|
+
function Ht(e) {
|
|
197
|
+
return /* @__PURE__ */ B(e) && e.type === Ut;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Gt(e, n) {
|
|
200
200
|
const t = {
|
|
201
201
|
...n
|
|
202
202
|
};
|
|
203
203
|
for (const o in n) {
|
|
204
204
|
const a = e[o], r = n[o];
|
|
205
|
-
/^on[A-Z]/.test(o) ? a && r ? t[o] = (...
|
|
206
|
-
r(...
|
|
205
|
+
/^on[A-Z]/.test(o) ? a && r ? t[o] = (...c) => {
|
|
206
|
+
r(...c), a(...c);
|
|
207
207
|
} : a && (t[o] = a) : o === "style" ? t[o] = {
|
|
208
208
|
...a,
|
|
209
209
|
...r
|
|
@@ -217,7 +217,7 @@ function Vt(e, n) {
|
|
|
217
217
|
...t
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
|
-
const
|
|
220
|
+
const Vt = [
|
|
221
221
|
"a",
|
|
222
222
|
"button",
|
|
223
223
|
"div",
|
|
@@ -234,12 +234,12 @@ const Kt = [
|
|
|
234
234
|
"span",
|
|
235
235
|
"svg",
|
|
236
236
|
"ul"
|
|
237
|
-
], W =
|
|
237
|
+
], W = Vt.reduce((e, n) => {
|
|
238
238
|
const t = /* @__PURE__ */ C((o, a) => {
|
|
239
|
-
const { asChild: r, ...i } = o,
|
|
239
|
+
const { asChild: r, ...i } = o, c = r ? Ie : n;
|
|
240
240
|
return A(() => {
|
|
241
241
|
window[Symbol.for("radix-ui")] = !0;
|
|
242
|
-
}, []), /* @__PURE__ */ m(
|
|
242
|
+
}, []), /* @__PURE__ */ m(c, P({}, i, {
|
|
243
243
|
ref: a
|
|
244
244
|
}));
|
|
245
245
|
});
|
|
@@ -248,12 +248,12 @@ const Kt = [
|
|
|
248
248
|
[n]: t
|
|
249
249
|
};
|
|
250
250
|
}, {});
|
|
251
|
-
function
|
|
252
|
-
e &&
|
|
251
|
+
function Kt(e, n) {
|
|
252
|
+
e && nt(
|
|
253
253
|
() => e.dispatchEvent(n)
|
|
254
254
|
);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function zt(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
257
257
|
const t = z(e);
|
|
258
258
|
A(() => {
|
|
259
259
|
const o = (a) => {
|
|
@@ -265,40 +265,40 @@ function Xt(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
|
265
265
|
n
|
|
266
266
|
]);
|
|
267
267
|
}
|
|
268
|
-
const Ne = "dismissableLayer.update",
|
|
269
|
-
let
|
|
270
|
-
const
|
|
268
|
+
const Ne = "dismissableLayer.update", Xt = "dismissableLayer.pointerDownOutside", Yt = "dismissableLayer.focusOutside";
|
|
269
|
+
let je;
|
|
270
|
+
const qt = /* @__PURE__ */ xe({
|
|
271
271
|
layers: /* @__PURE__ */ new Set(),
|
|
272
272
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
273
273
|
branches: /* @__PURE__ */ new Set()
|
|
274
|
-
}),
|
|
274
|
+
}), Zt = /* @__PURE__ */ C((e, n) => {
|
|
275
275
|
var t;
|
|
276
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside:
|
|
276
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: a, onPointerDownOutside: r, onFocusOutside: i, onInteractOutside: c, onDismiss: l, ...d } = e, p = tt(qt), [s, h] = K(null), f = (t = s == null ? void 0 : s.ownerDocument) !== null && t !== void 0 ? t : globalThis == null ? void 0 : globalThis.document, [, E] = K({}), u = J(
|
|
277
277
|
n,
|
|
278
278
|
(w) => h(w)
|
|
279
279
|
), v = Array.from(p.layers), [b] = [
|
|
280
280
|
...p.layersWithOutsidePointerEventsDisabled
|
|
281
|
-
].slice(-1), x = v.indexOf(b), $ = s ? v.indexOf(s) : -1, y = p.layersWithOutsidePointerEventsDisabled.size > 0, S = $ >= x, U =
|
|
281
|
+
].slice(-1), x = v.indexOf(b), $ = s ? v.indexOf(s) : -1, y = p.layersWithOutsidePointerEventsDisabled.size > 0, S = $ >= x, U = Qt((w) => {
|
|
282
282
|
const M = w.target, ne = [
|
|
283
283
|
...p.branches
|
|
284
284
|
].some(
|
|
285
285
|
(R) => R.contains(M)
|
|
286
286
|
);
|
|
287
|
-
!S || ne || (r == null || r(w),
|
|
288
|
-
}, f), T =
|
|
287
|
+
!S || ne || (r == null || r(w), c == null || c(w), w.defaultPrevented || l == null || l());
|
|
288
|
+
}, f), T = Jt((w) => {
|
|
289
289
|
const M = w.target;
|
|
290
290
|
[
|
|
291
291
|
...p.branches
|
|
292
292
|
].some(
|
|
293
293
|
(R) => R.contains(M)
|
|
294
|
-
) || (i == null || i(w),
|
|
294
|
+
) || (i == null || i(w), c == null || c(w), w.defaultPrevented || l == null || l());
|
|
295
295
|
}, f);
|
|
296
|
-
return
|
|
296
|
+
return zt((w) => {
|
|
297
297
|
$ === p.layers.size - 1 && (a == null || a(w), !w.defaultPrevented && l && (w.preventDefault(), l()));
|
|
298
298
|
}, f), A(() => {
|
|
299
299
|
if (s)
|
|
300
|
-
return o && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
301
|
-
o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents =
|
|
300
|
+
return o && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (je = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(s)), p.layers.add(s), ke(), () => {
|
|
301
|
+
o && p.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = je);
|
|
302
302
|
};
|
|
303
303
|
}, [
|
|
304
304
|
s,
|
|
@@ -306,7 +306,7 @@ const Zt = /* @__PURE__ */ xe({
|
|
|
306
306
|
o,
|
|
307
307
|
p
|
|
308
308
|
]), A(() => () => {
|
|
309
|
-
s && (p.layers.delete(s), p.layersWithOutsidePointerEventsDisabled.delete(s),
|
|
309
|
+
s && (p.layers.delete(s), p.layersWithOutsidePointerEventsDisabled.delete(s), ke());
|
|
310
310
|
}, [
|
|
311
311
|
s,
|
|
312
312
|
p
|
|
@@ -314,31 +314,31 @@ const Zt = /* @__PURE__ */ xe({
|
|
|
314
314
|
const w = () => E({});
|
|
315
315
|
return document.addEventListener(Ne, w), () => document.removeEventListener(Ne, w);
|
|
316
316
|
}, []), /* @__PURE__ */ m(W.div, P({}, d, {
|
|
317
|
-
ref:
|
|
317
|
+
ref: u,
|
|
318
318
|
style: {
|
|
319
319
|
pointerEvents: y ? S ? "auto" : "none" : void 0,
|
|
320
320
|
...e.style
|
|
321
321
|
},
|
|
322
|
-
onFocusCapture:
|
|
323
|
-
onBlurCapture:
|
|
324
|
-
onPointerDownCapture:
|
|
322
|
+
onFocusCapture: k(e.onFocusCapture, T.onFocusCapture),
|
|
323
|
+
onBlurCapture: k(e.onBlurCapture, T.onBlurCapture),
|
|
324
|
+
onPointerDownCapture: k(e.onPointerDownCapture, U.onPointerDownCapture)
|
|
325
325
|
}));
|
|
326
326
|
});
|
|
327
|
-
function
|
|
327
|
+
function Qt(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
328
328
|
const t = z(e), o = O(!1), a = O(() => {
|
|
329
329
|
});
|
|
330
330
|
return A(() => {
|
|
331
|
-
const r = (
|
|
332
|
-
if (
|
|
331
|
+
const r = (c) => {
|
|
332
|
+
if (c.target && !o.current) {
|
|
333
333
|
let d = function() {
|
|
334
|
-
|
|
334
|
+
ot(Xt, t, l, {
|
|
335
335
|
discrete: !0
|
|
336
336
|
});
|
|
337
337
|
};
|
|
338
338
|
const l = {
|
|
339
|
-
originalEvent:
|
|
339
|
+
originalEvent: c
|
|
340
340
|
};
|
|
341
|
-
|
|
341
|
+
c.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = d, n.addEventListener("click", a.current, {
|
|
342
342
|
once: !0
|
|
343
343
|
})) : d();
|
|
344
344
|
} else
|
|
@@ -358,11 +358,11 @@ function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
|
358
358
|
onPointerDownCapture: () => o.current = !0
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Jt(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
362
362
|
const t = z(e), o = O(!1);
|
|
363
363
|
return A(() => {
|
|
364
364
|
const a = (r) => {
|
|
365
|
-
r.target && !o.current &&
|
|
365
|
+
r.target && !o.current && ot(Yt, t, {
|
|
366
366
|
originalEvent: r
|
|
367
367
|
}, {
|
|
368
368
|
discrete: !1
|
|
@@ -377,11 +377,11 @@ function en(e, n = globalThis == null ? void 0 : globalThis.document) {
|
|
|
377
377
|
onBlurCapture: () => o.current = !1
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function ke() {
|
|
381
381
|
const e = new CustomEvent(Ne);
|
|
382
382
|
document.dispatchEvent(e);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function ot(e, n, t, { discrete: o }) {
|
|
385
385
|
const a = t.originalEvent.target, r = new CustomEvent(e, {
|
|
386
386
|
bubbles: !1,
|
|
387
387
|
cancelable: !0,
|
|
@@ -389,15 +389,15 @@ function at(e, n, t, { discrete: o }) {
|
|
|
389
389
|
});
|
|
390
390
|
n && a.addEventListener(e, n, {
|
|
391
391
|
once: !0
|
|
392
|
-
}), o ?
|
|
392
|
+
}), o ? Kt(a, r) : a.dispatchEvent(r);
|
|
393
393
|
}
|
|
394
394
|
const _e = "focusScope.autoFocusOnMount", be = "focusScope.autoFocusOnUnmount", Be = {
|
|
395
395
|
bubbles: !1,
|
|
396
396
|
cancelable: !0
|
|
397
|
-
},
|
|
398
|
-
const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [
|
|
397
|
+
}, en = /* @__PURE__ */ C((e, n) => {
|
|
398
|
+
const { loop: t = !1, trapped: o = !1, onMountAutoFocus: a, onUnmountAutoFocus: r, ...i } = e, [c, l] = K(null), d = z(a), p = z(r), s = O(null), h = J(
|
|
399
399
|
n,
|
|
400
|
-
(
|
|
400
|
+
(u) => l(u)
|
|
401
401
|
), f = O({
|
|
402
402
|
paused: !1,
|
|
403
403
|
pause() {
|
|
@@ -409,74 +409,74 @@ const _e = "focusScope.autoFocusOnMount", be = "focusScope.autoFocusOnUnmount",
|
|
|
409
409
|
}).current;
|
|
410
410
|
A(() => {
|
|
411
411
|
if (o) {
|
|
412
|
-
let
|
|
413
|
-
if (f.paused || !
|
|
412
|
+
let u = function($) {
|
|
413
|
+
if (f.paused || !c)
|
|
414
414
|
return;
|
|
415
415
|
const y = $.target;
|
|
416
|
-
|
|
416
|
+
c.contains(y) ? s.current = y : j(s.current, {
|
|
417
417
|
select: !0
|
|
418
418
|
});
|
|
419
419
|
}, v = function($) {
|
|
420
|
-
if (f.paused || !
|
|
420
|
+
if (f.paused || !c)
|
|
421
421
|
return;
|
|
422
422
|
const y = $.relatedTarget;
|
|
423
|
-
y !== null && (
|
|
423
|
+
y !== null && (c.contains(y) || j(s.current, {
|
|
424
424
|
select: !0
|
|
425
425
|
}));
|
|
426
426
|
}, b = function($) {
|
|
427
427
|
if (document.activeElement === document.body)
|
|
428
428
|
for (const S of $)
|
|
429
|
-
S.removedNodes.length > 0 &&
|
|
429
|
+
S.removedNodes.length > 0 && j(c);
|
|
430
430
|
};
|
|
431
|
-
document.addEventListener("focusin",
|
|
431
|
+
document.addEventListener("focusin", u), document.addEventListener("focusout", v);
|
|
432
432
|
const x = new MutationObserver(b);
|
|
433
|
-
return
|
|
433
|
+
return c && x.observe(c, {
|
|
434
434
|
childList: !0,
|
|
435
435
|
subtree: !0
|
|
436
436
|
}), () => {
|
|
437
|
-
document.removeEventListener("focusin",
|
|
437
|
+
document.removeEventListener("focusin", u), document.removeEventListener("focusout", v), x.disconnect();
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
440
|
}, [
|
|
441
441
|
o,
|
|
442
|
-
|
|
442
|
+
c,
|
|
443
443
|
f.paused
|
|
444
444
|
]), A(() => {
|
|
445
|
-
if (
|
|
445
|
+
if (c) {
|
|
446
446
|
Ue.add(f);
|
|
447
|
-
const
|
|
448
|
-
if (!
|
|
447
|
+
const u = document.activeElement;
|
|
448
|
+
if (!c.contains(u)) {
|
|
449
449
|
const b = new CustomEvent(_e, Be);
|
|
450
|
-
|
|
450
|
+
c.addEventListener(_e, d), c.dispatchEvent(b), b.defaultPrevented || (tn(cn(at(c)), {
|
|
451
451
|
select: !0
|
|
452
|
-
}), document.activeElement ===
|
|
452
|
+
}), document.activeElement === u && j(c));
|
|
453
453
|
}
|
|
454
454
|
return () => {
|
|
455
|
-
|
|
455
|
+
c.removeEventListener(_e, d), setTimeout(() => {
|
|
456
456
|
const b = new CustomEvent(be, Be);
|
|
457
|
-
|
|
457
|
+
c.addEventListener(be, p), c.dispatchEvent(b), b.defaultPrevented || j(u ?? document.body, {
|
|
458
458
|
select: !0
|
|
459
|
-
}),
|
|
459
|
+
}), c.removeEventListener(be, p), Ue.remove(f);
|
|
460
460
|
}, 0);
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
}, [
|
|
464
|
-
|
|
464
|
+
c,
|
|
465
465
|
d,
|
|
466
466
|
p,
|
|
467
467
|
f
|
|
468
468
|
]);
|
|
469
|
-
const E = Q((
|
|
469
|
+
const E = Q((u) => {
|
|
470
470
|
if (!t && !o || f.paused)
|
|
471
471
|
return;
|
|
472
|
-
const v =
|
|
472
|
+
const v = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, b = document.activeElement;
|
|
473
473
|
if (v && b) {
|
|
474
|
-
const x =
|
|
475
|
-
$ && y ? !
|
|
474
|
+
const x = u.currentTarget, [$, y] = nn(x);
|
|
475
|
+
$ && y ? !u.shiftKey && b === y ? (u.preventDefault(), t && j($, {
|
|
476
476
|
select: !0
|
|
477
|
-
})) :
|
|
477
|
+
})) : u.shiftKey && b === $ && (u.preventDefault(), t && j(y, {
|
|
478
478
|
select: !0
|
|
479
|
-
})) : b === x &&
|
|
479
|
+
})) : b === x && u.preventDefault();
|
|
480
480
|
}
|
|
481
481
|
}, [
|
|
482
482
|
t,
|
|
@@ -490,22 +490,22 @@ const _e = "focusScope.autoFocusOnMount", be = "focusScope.autoFocusOnUnmount",
|
|
|
490
490
|
onKeyDown: E
|
|
491
491
|
}));
|
|
492
492
|
});
|
|
493
|
-
function
|
|
493
|
+
function tn(e, { select: n = !1 } = {}) {
|
|
494
494
|
const t = document.activeElement;
|
|
495
495
|
for (const o of e)
|
|
496
|
-
if (
|
|
496
|
+
if (j(o, {
|
|
497
497
|
select: n
|
|
498
498
|
}), document.activeElement !== t)
|
|
499
499
|
return;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
const n =
|
|
501
|
+
function nn(e) {
|
|
502
|
+
const n = at(e), t = We(n, e), o = We(n.reverse(), e);
|
|
503
503
|
return [
|
|
504
504
|
t,
|
|
505
505
|
o
|
|
506
506
|
];
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function at(e) {
|
|
509
509
|
const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
510
510
|
acceptNode: (o) => {
|
|
511
511
|
const a = o.tagName === "INPUT" && o.type === "hidden";
|
|
@@ -518,12 +518,12 @@ function it(e) {
|
|
|
518
518
|
}
|
|
519
519
|
function We(e, n) {
|
|
520
520
|
for (const t of e)
|
|
521
|
-
if (!
|
|
521
|
+
if (!rn(t, {
|
|
522
522
|
upTo: n
|
|
523
523
|
}))
|
|
524
524
|
return t;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function rn(e, { upTo: n }) {
|
|
527
527
|
if (getComputedStyle(e).visibility === "hidden")
|
|
528
528
|
return !0;
|
|
529
529
|
for (; e; ) {
|
|
@@ -535,19 +535,19 @@ function on(e, { upTo: n }) {
|
|
|
535
535
|
}
|
|
536
536
|
return !1;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function on(e) {
|
|
539
539
|
return e instanceof HTMLInputElement && "select" in e;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function j(e, { select: n = !1 } = {}) {
|
|
542
542
|
if (e && e.focus) {
|
|
543
543
|
const t = document.activeElement;
|
|
544
544
|
e.focus({
|
|
545
545
|
preventScroll: !0
|
|
546
|
-
}), e !== t &&
|
|
546
|
+
}), e !== t && on(e) && n && e.select();
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
const Ue =
|
|
550
|
-
function
|
|
549
|
+
const Ue = an();
|
|
550
|
+
function an() {
|
|
551
551
|
let e = [];
|
|
552
552
|
return {
|
|
553
553
|
add(n) {
|
|
@@ -571,21 +571,21 @@ function cn(e) {
|
|
|
571
571
|
(n) => n.tagName !== "A"
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const un = /* @__PURE__ */ C((e, n) => {
|
|
575
575
|
var t;
|
|
576
576
|
const { container: o = globalThis == null || (t = globalThis.document) === null || t === void 0 ? void 0 : t.body, ...a } = e;
|
|
577
|
-
return o ? /* @__PURE__ */
|
|
577
|
+
return o ? /* @__PURE__ */ It.createPortal(/* @__PURE__ */ m(W.div, P({}, a, {
|
|
578
578
|
ref: n
|
|
579
579
|
})), o) : null;
|
|
580
580
|
});
|
|
581
|
-
function
|
|
582
|
-
return
|
|
581
|
+
function sn(e, n) {
|
|
582
|
+
return Rt((t, o) => {
|
|
583
583
|
const a = n[t][o];
|
|
584
584
|
return a ?? t;
|
|
585
585
|
}, e);
|
|
586
586
|
}
|
|
587
587
|
const he = (e) => {
|
|
588
|
-
const { present: n, children: t } = e, o =
|
|
588
|
+
const { present: n, children: t } = e, o = ln(n), a = typeof t == "function" ? t({
|
|
589
589
|
present: o.isPresent
|
|
590
590
|
}) : I.only(t), r = J(o.ref, a.ref);
|
|
591
591
|
return typeof t == "function" || o.isPresent ? /* @__PURE__ */ te(a, {
|
|
@@ -593,8 +593,8 @@ const he = (e) => {
|
|
|
593
593
|
}) : null;
|
|
594
594
|
};
|
|
595
595
|
he.displayName = "Presence";
|
|
596
|
-
function
|
|
597
|
-
const [n, t] = K(), o = O({}), a = O(e), r = O("none"), i = e ? "mounted" : "unmounted", [
|
|
596
|
+
function ln(e) {
|
|
597
|
+
const [n, t] = K(), o = O({}), a = O(e), r = O("none"), i = e ? "mounted" : "unmounted", [c, l] = sn(i, {
|
|
598
598
|
mounted: {
|
|
599
599
|
UNMOUNT: "unmounted",
|
|
600
600
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -609,9 +609,9 @@ function dn(e) {
|
|
|
609
609
|
});
|
|
610
610
|
return A(() => {
|
|
611
611
|
const d = re(o.current);
|
|
612
|
-
r.current =
|
|
612
|
+
r.current = c === "mounted" ? d : "none";
|
|
613
613
|
}, [
|
|
614
|
-
|
|
614
|
+
c
|
|
615
615
|
]), Oe(() => {
|
|
616
616
|
const d = o.current, p = a.current;
|
|
617
617
|
if (p !== e) {
|
|
@@ -625,7 +625,7 @@ function dn(e) {
|
|
|
625
625
|
if (n) {
|
|
626
626
|
const d = (s) => {
|
|
627
627
|
const f = re(o.current).includes(s.animationName);
|
|
628
|
-
s.target === n && f &&
|
|
628
|
+
s.target === n && f && nt(
|
|
629
629
|
() => l("ANIMATION_END")
|
|
630
630
|
);
|
|
631
631
|
}, p = (s) => {
|
|
@@ -643,7 +643,7 @@ function dn(e) {
|
|
|
643
643
|
isPresent: [
|
|
644
644
|
"mounted",
|
|
645
645
|
"unmountSuspended"
|
|
646
|
-
].includes(
|
|
646
|
+
].includes(c),
|
|
647
647
|
ref: Q((d) => {
|
|
648
648
|
d && (o.current = getComputedStyle(d)), t(d);
|
|
649
649
|
}, [])
|
|
@@ -653,7 +653,7 @@ function re(e) {
|
|
|
653
653
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
654
654
|
}
|
|
655
655
|
let $e = 0;
|
|
656
|
-
function
|
|
656
|
+
function dn() {
|
|
657
657
|
A(() => {
|
|
658
658
|
var e, n;
|
|
659
659
|
const t = document.querySelectorAll("[data-radix-focus-guard]");
|
|
@@ -678,7 +678,7 @@ var F = function() {
|
|
|
678
678
|
return n;
|
|
679
679
|
}, F.apply(this, arguments);
|
|
680
680
|
};
|
|
681
|
-
function
|
|
681
|
+
function it(e, n) {
|
|
682
682
|
var t = {};
|
|
683
683
|
for (var o in e)
|
|
684
684
|
Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
@@ -687,17 +687,17 @@ function ut(e, n) {
|
|
|
687
687
|
n.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (t[o[a]] = e[o[a]]);
|
|
688
688
|
return t;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function pn(e, n, t) {
|
|
691
691
|
if (t || arguments.length === 2)
|
|
692
692
|
for (var o = 0, a = n.length, r; o < a; o++)
|
|
693
693
|
(r || !(o in n)) && (r || (r = Array.prototype.slice.call(n, 0, o)), r[o] = n[o]);
|
|
694
694
|
return e.concat(r || Array.prototype.slice.call(n));
|
|
695
695
|
}
|
|
696
|
-
var pe = "right-scroll-bar-position", fe = "width-before-scroll-bar",
|
|
697
|
-
function
|
|
696
|
+
var pe = "right-scroll-bar-position", fe = "width-before-scroll-bar", fn = "with-scroll-bars-hidden", vn = "--removed-body-scroll-bar-size";
|
|
697
|
+
function hn(e, n) {
|
|
698
698
|
return typeof e == "function" ? e(n) : e && (e.current = n), e;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function gn(e, n) {
|
|
701
701
|
var t = K(function() {
|
|
702
702
|
return {
|
|
703
703
|
// value
|
|
@@ -718,18 +718,18 @@ function mn(e, n) {
|
|
|
718
718
|
})[0];
|
|
719
719
|
return t.callback = n, t.facade;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
return
|
|
721
|
+
function mn(e, n) {
|
|
722
|
+
return gn(n || null, function(t) {
|
|
723
723
|
return e.forEach(function(o) {
|
|
724
|
-
return
|
|
724
|
+
return hn(o, t);
|
|
725
725
|
});
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function _n(e) {
|
|
729
729
|
return e;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
n === void 0 && (n =
|
|
731
|
+
function bn(e, n) {
|
|
732
|
+
n === void 0 && (n = _n);
|
|
733
733
|
var t = [], o = !1, a = {
|
|
734
734
|
read: function() {
|
|
735
735
|
if (o)
|
|
@@ -739,8 +739,8 @@ function $n(e, n) {
|
|
|
739
739
|
useMedium: function(r) {
|
|
740
740
|
var i = n(r, o);
|
|
741
741
|
return t.push(i), function() {
|
|
742
|
-
t = t.filter(function(
|
|
743
|
-
return
|
|
742
|
+
t = t.filter(function(c) {
|
|
743
|
+
return c !== i;
|
|
744
744
|
});
|
|
745
745
|
};
|
|
746
746
|
},
|
|
@@ -750,8 +750,8 @@ function $n(e, n) {
|
|
|
750
750
|
t = [], i.forEach(r);
|
|
751
751
|
}
|
|
752
752
|
t = {
|
|
753
|
-
push: function(
|
|
754
|
-
return r(
|
|
753
|
+
push: function(c) {
|
|
754
|
+
return r(c);
|
|
755
755
|
},
|
|
756
756
|
filter: function() {
|
|
757
757
|
return t;
|
|
@@ -762,8 +762,8 @@ function $n(e, n) {
|
|
|
762
762
|
o = !0;
|
|
763
763
|
var i = [];
|
|
764
764
|
if (t.length) {
|
|
765
|
-
var
|
|
766
|
-
t = [],
|
|
765
|
+
var c = t;
|
|
766
|
+
t = [], c.forEach(r), i = t;
|
|
767
767
|
}
|
|
768
768
|
var l = function() {
|
|
769
769
|
var p = i;
|
|
@@ -783,13 +783,13 @@ function $n(e, n) {
|
|
|
783
783
|
};
|
|
784
784
|
return a;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function $n(e) {
|
|
787
787
|
e === void 0 && (e = {});
|
|
788
|
-
var n =
|
|
788
|
+
var n = bn(null);
|
|
789
789
|
return n.options = F({ async: !0, ssr: !1 }, e), n;
|
|
790
790
|
}
|
|
791
791
|
var ct = function(e) {
|
|
792
|
-
var n = e.sideCar, t =
|
|
792
|
+
var n = e.sideCar, t = it(e, ["sideCar"]);
|
|
793
793
|
if (!n)
|
|
794
794
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
795
795
|
var o = n.read();
|
|
@@ -798,21 +798,21 @@ var ct = function(e) {
|
|
|
798
798
|
return g.createElement(o, F({}, t));
|
|
799
799
|
};
|
|
800
800
|
ct.isSideCarExport = !0;
|
|
801
|
-
function
|
|
801
|
+
function yn(e, n) {
|
|
802
802
|
return e.useMedium(n), ct;
|
|
803
803
|
}
|
|
804
|
-
var
|
|
804
|
+
var ut = $n(), ye = function() {
|
|
805
805
|
}, ge = g.forwardRef(function(e, n) {
|
|
806
806
|
var t = g.useRef(null), o = g.useState({
|
|
807
807
|
onScrollCapture: ye,
|
|
808
808
|
onWheelCapture: ye,
|
|
809
809
|
onTouchMoveCapture: ye
|
|
810
|
-
}), a = o[0], r = o[1], i = e.forwardProps,
|
|
810
|
+
}), a = o[0], r = o[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, p = e.enabled, s = e.shards, h = e.sideCar, f = e.noIsolation, E = e.inert, u = e.allowPinchZoom, v = e.as, b = v === void 0 ? "div" : v, x = it(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]), $ = h, y = mn([t, n]), S = F(F({}, x), a);
|
|
811
811
|
return g.createElement(
|
|
812
812
|
g.Fragment,
|
|
813
813
|
null,
|
|
814
|
-
p && g.createElement($, { sideCar:
|
|
815
|
-
i ? g.cloneElement(g.Children.only(
|
|
814
|
+
p && g.createElement($, { sideCar: ut, removeScrollBar: d, shards: s, noIsolation: f, inert: E, setCallbacks: r, allowPinchZoom: !!u, lockRef: t }),
|
|
815
|
+
i ? g.cloneElement(g.Children.only(c), F(F({}, S), { ref: y })) : g.createElement(b, F({}, S, { className: l, ref: y }), c)
|
|
816
816
|
);
|
|
817
817
|
});
|
|
818
818
|
ge.defaultProps = {
|
|
@@ -824,39 +824,37 @@ ge.classNames = {
|
|
|
824
824
|
fullWidth: fe,
|
|
825
825
|
zeroRight: pe
|
|
826
826
|
};
|
|
827
|
-
var
|
|
828
|
-
if (Ve)
|
|
829
|
-
return Ve;
|
|
827
|
+
var En = function() {
|
|
830
828
|
if (typeof __webpack_nonce__ < "u")
|
|
831
829
|
return __webpack_nonce__;
|
|
832
830
|
};
|
|
833
|
-
function
|
|
831
|
+
function wn() {
|
|
834
832
|
if (!document)
|
|
835
833
|
return null;
|
|
836
834
|
var e = document.createElement("style");
|
|
837
835
|
e.type = "text/css";
|
|
838
|
-
var n =
|
|
836
|
+
var n = En();
|
|
839
837
|
return n && e.setAttribute("nonce", n), e;
|
|
840
838
|
}
|
|
841
|
-
function
|
|
839
|
+
function Sn(e, n) {
|
|
842
840
|
e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
|
|
843
841
|
}
|
|
844
|
-
function
|
|
842
|
+
function Cn(e) {
|
|
845
843
|
var n = document.head || document.getElementsByTagName("head")[0];
|
|
846
844
|
n.appendChild(e);
|
|
847
845
|
}
|
|
848
|
-
var
|
|
846
|
+
var xn = function() {
|
|
849
847
|
var e = 0, n = null;
|
|
850
848
|
return {
|
|
851
849
|
add: function(t) {
|
|
852
|
-
e == 0 && (n =
|
|
850
|
+
e == 0 && (n = wn()) && (Sn(n, t), Cn(n)), e++;
|
|
853
851
|
},
|
|
854
852
|
remove: function() {
|
|
855
853
|
e--, !e && n && (n.parentNode && n.parentNode.removeChild(n), n = null);
|
|
856
854
|
}
|
|
857
855
|
};
|
|
858
|
-
},
|
|
859
|
-
var e =
|
|
856
|
+
}, On = function() {
|
|
857
|
+
var e = xn();
|
|
860
858
|
return function(n, t) {
|
|
861
859
|
g.useEffect(function() {
|
|
862
860
|
return e.add(n), function() {
|
|
@@ -864,38 +862,38 @@ var On = function() {
|
|
|
864
862
|
};
|
|
865
863
|
}, [n && t]);
|
|
866
864
|
};
|
|
867
|
-
},
|
|
868
|
-
var e =
|
|
865
|
+
}, st = function() {
|
|
866
|
+
var e = On(), n = function(t) {
|
|
869
867
|
var o = t.styles, a = t.dynamic;
|
|
870
868
|
return e(o, a), null;
|
|
871
869
|
};
|
|
872
870
|
return n;
|
|
873
|
-
},
|
|
871
|
+
}, Pn = {
|
|
874
872
|
left: 0,
|
|
875
873
|
top: 0,
|
|
876
874
|
right: 0,
|
|
877
875
|
gap: 0
|
|
878
876
|
}, Ee = function(e) {
|
|
879
877
|
return parseInt(e || "", 10) || 0;
|
|
880
|
-
},
|
|
878
|
+
}, Nn = function(e) {
|
|
881
879
|
var n = window.getComputedStyle(document.body), t = n[e === "padding" ? "paddingLeft" : "marginLeft"], o = n[e === "padding" ? "paddingTop" : "marginTop"], a = n[e === "padding" ? "paddingRight" : "marginRight"];
|
|
882
880
|
return [Ee(t), Ee(o), Ee(a)];
|
|
883
|
-
},
|
|
881
|
+
}, An = function(e) {
|
|
884
882
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
885
|
-
return
|
|
886
|
-
var n =
|
|
883
|
+
return Pn;
|
|
884
|
+
var n = Nn(e), t = document.documentElement.clientWidth, o = window.innerWidth;
|
|
887
885
|
return {
|
|
888
886
|
left: n[0],
|
|
889
887
|
top: n[1],
|
|
890
888
|
right: n[2],
|
|
891
889
|
gap: Math.max(0, o - t + n[2] - n[0])
|
|
892
890
|
};
|
|
893
|
-
},
|
|
894
|
-
var a = e.left, r = e.top, i = e.right,
|
|
891
|
+
}, Tn = st(), Dn = function(e, n, t, o) {
|
|
892
|
+
var a = e.left, r = e.top, i = e.right, c = e.gap;
|
|
895
893
|
return t === void 0 && (t = "margin"), `
|
|
896
|
-
.`.concat(
|
|
894
|
+
.`.concat(fn, ` {
|
|
897
895
|
overflow: hidden `).concat(o, `;
|
|
898
|
-
padding-right: `).concat(
|
|
896
|
+
padding-right: `).concat(c, "px ").concat(o, `;
|
|
899
897
|
}
|
|
900
898
|
body {
|
|
901
899
|
overflow: hidden `).concat(o, `;
|
|
@@ -908,18 +906,18 @@ var On = function() {
|
|
|
908
906
|
padding-right: `).concat(i, `px;
|
|
909
907
|
margin-left:0;
|
|
910
908
|
margin-top:0;
|
|
911
|
-
margin-right: `).concat(
|
|
909
|
+
margin-right: `).concat(c, "px ").concat(o, `;
|
|
912
910
|
`),
|
|
913
|
-
t === "padding" && "padding-right: ".concat(
|
|
911
|
+
t === "padding" && "padding-right: ".concat(c, "px ").concat(o, ";")
|
|
914
912
|
].filter(Boolean).join(""), `
|
|
915
913
|
}
|
|
916
914
|
|
|
917
915
|
.`).concat(pe, ` {
|
|
918
|
-
right: `).concat(
|
|
916
|
+
right: `).concat(c, "px ").concat(o, `;
|
|
919
917
|
}
|
|
920
918
|
|
|
921
919
|
.`).concat(fe, ` {
|
|
922
|
-
margin-right: `).concat(
|
|
920
|
+
margin-right: `).concat(c, "px ").concat(o, `;
|
|
923
921
|
}
|
|
924
922
|
|
|
925
923
|
.`).concat(pe, " .").concat(pe, ` {
|
|
@@ -931,14 +929,14 @@ var On = function() {
|
|
|
931
929
|
}
|
|
932
930
|
|
|
933
931
|
body {
|
|
934
|
-
`).concat(
|
|
932
|
+
`).concat(vn, ": ").concat(c, `px;
|
|
935
933
|
}
|
|
936
934
|
`);
|
|
937
|
-
},
|
|
935
|
+
}, Rn = function(e) {
|
|
938
936
|
var n = e.noRelative, t = e.noImportant, o = e.gapMode, a = o === void 0 ? "margin" : o, r = g.useMemo(function() {
|
|
939
|
-
return
|
|
937
|
+
return An(a);
|
|
940
938
|
}, [a]);
|
|
941
|
-
return g.createElement(
|
|
939
|
+
return g.createElement(Tn, { styles: Dn(r, !n, a, t ? "" : "!important") });
|
|
942
940
|
}, Ae = !1;
|
|
943
941
|
if (typeof window < "u")
|
|
944
942
|
try {
|
|
@@ -951,33 +949,33 @@ if (typeof window < "u")
|
|
|
951
949
|
} catch {
|
|
952
950
|
Ae = !1;
|
|
953
951
|
}
|
|
954
|
-
var X = Ae ? { passive: !1 } : !1,
|
|
952
|
+
var X = Ae ? { passive: !1 } : !1, In = function(e) {
|
|
955
953
|
return e.tagName === "TEXTAREA";
|
|
956
|
-
},
|
|
954
|
+
}, lt = function(e, n) {
|
|
957
955
|
var t = window.getComputedStyle(e);
|
|
958
956
|
return (
|
|
959
957
|
// not-not-scrollable
|
|
960
958
|
t[n] !== "hidden" && // contains scroll inside self
|
|
961
|
-
!(t.overflowY === t.overflowX && !
|
|
959
|
+
!(t.overflowY === t.overflowX && !In(e) && t[n] === "visible")
|
|
962
960
|
);
|
|
961
|
+
}, Mn = function(e) {
|
|
962
|
+
return lt(e, "overflowY");
|
|
963
963
|
}, Ln = function(e) {
|
|
964
|
-
return
|
|
965
|
-
},
|
|
966
|
-
return dt(e, "overflowX");
|
|
967
|
-
}, Ke = function(e, n) {
|
|
964
|
+
return lt(e, "overflowX");
|
|
965
|
+
}, Ve = function(e, n) {
|
|
968
966
|
var t = n;
|
|
969
967
|
do {
|
|
970
968
|
typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
|
|
971
|
-
var o =
|
|
969
|
+
var o = dt(e, t);
|
|
972
970
|
if (o) {
|
|
973
|
-
var a =
|
|
971
|
+
var a = pt(e, t), r = a[1], i = a[2];
|
|
974
972
|
if (r > i)
|
|
975
973
|
return !0;
|
|
976
974
|
}
|
|
977
975
|
t = t.parentNode;
|
|
978
976
|
} while (t && t !== document.body);
|
|
979
977
|
return !1;
|
|
980
|
-
},
|
|
978
|
+
}, Fn = function(e) {
|
|
981
979
|
var n = e.scrollTop, t = e.scrollHeight, o = e.clientHeight;
|
|
982
980
|
return [
|
|
983
981
|
n,
|
|
@@ -991,101 +989,101 @@ var X = Ae ? { passive: !1 } : !1, Mn = function(e) {
|
|
|
991
989
|
t,
|
|
992
990
|
o
|
|
993
991
|
];
|
|
992
|
+
}, dt = function(e, n) {
|
|
993
|
+
return e === "v" ? Mn(n) : Ln(n);
|
|
994
994
|
}, pt = function(e, n) {
|
|
995
|
-
return e === "v" ?
|
|
996
|
-
},
|
|
997
|
-
return e === "v" ? kn(n) : jn(n);
|
|
998
|
-
}, Bn = function(e, n) {
|
|
995
|
+
return e === "v" ? Fn(n) : jn(n);
|
|
996
|
+
}, kn = function(e, n) {
|
|
999
997
|
return e === "h" && n === "rtl" ? -1 : 1;
|
|
1000
|
-
},
|
|
1001
|
-
var r =
|
|
998
|
+
}, Bn = function(e, n, t, o, a) {
|
|
999
|
+
var r = kn(e, window.getComputedStyle(n).direction), i = r * o, c = t.target, l = n.contains(c), d = !1, p = i > 0, s = 0, h = 0;
|
|
1002
1000
|
do {
|
|
1003
|
-
var f =
|
|
1004
|
-
(E || b) &&
|
|
1001
|
+
var f = pt(e, c), E = f[0], u = f[1], v = f[2], b = u - v - r * E;
|
|
1002
|
+
(E || b) && dt(e, c) && (s += b, h += E), c = c.parentNode;
|
|
1005
1003
|
} while (
|
|
1006
1004
|
// portaled content
|
|
1007
|
-
!l &&
|
|
1008
|
-
l && (n.contains(
|
|
1005
|
+
!l && c !== document.body || // self content
|
|
1006
|
+
l && (n.contains(c) || n === c)
|
|
1009
1007
|
);
|
|
1010
1008
|
return (p && (a && s === 0 || !a && i > s) || !p && (a && h === 0 || !a && -i > h)) && (d = !0), d;
|
|
1011
1009
|
}, ae = function(e) {
|
|
1012
1010
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1013
|
-
},
|
|
1011
|
+
}, Ke = function(e) {
|
|
1014
1012
|
return [e.deltaX, e.deltaY];
|
|
1015
|
-
},
|
|
1013
|
+
}, ze = function(e) {
|
|
1016
1014
|
return e && "current" in e ? e.current : e;
|
|
1017
|
-
},
|
|
1015
|
+
}, Wn = function(e, n) {
|
|
1018
1016
|
return e[0] === n[0] && e[1] === n[1];
|
|
1019
|
-
},
|
|
1017
|
+
}, Un = function(e) {
|
|
1020
1018
|
return `
|
|
1021
1019
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1022
1020
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1023
1021
|
`);
|
|
1024
|
-
},
|
|
1025
|
-
function
|
|
1026
|
-
var n = g.useRef([]), t = g.useRef([0, 0]), o = g.useRef(), a = g.useState(
|
|
1027
|
-
return
|
|
1022
|
+
}, Hn = 0, Y = [];
|
|
1023
|
+
function Gn(e) {
|
|
1024
|
+
var n = g.useRef([]), t = g.useRef([0, 0]), o = g.useRef(), a = g.useState(Hn++)[0], r = g.useState(function() {
|
|
1025
|
+
return st();
|
|
1028
1026
|
})[0], i = g.useRef(e);
|
|
1029
1027
|
g.useEffect(function() {
|
|
1030
1028
|
i.current = e;
|
|
1031
1029
|
}, [e]), g.useEffect(function() {
|
|
1032
1030
|
if (e.inert) {
|
|
1033
1031
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
1034
|
-
var
|
|
1035
|
-
return
|
|
1032
|
+
var u = pn([e.lockRef.current], (e.shards || []).map(ze), !0).filter(Boolean);
|
|
1033
|
+
return u.forEach(function(v) {
|
|
1036
1034
|
return v.classList.add("allow-interactivity-".concat(a));
|
|
1037
1035
|
}), function() {
|
|
1038
|
-
document.body.classList.remove("block-interactivity-".concat(a)),
|
|
1036
|
+
document.body.classList.remove("block-interactivity-".concat(a)), u.forEach(function(v) {
|
|
1039
1037
|
return v.classList.remove("allow-interactivity-".concat(a));
|
|
1040
1038
|
});
|
|
1041
1039
|
};
|
|
1042
1040
|
}
|
|
1043
1041
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
1044
|
-
var
|
|
1045
|
-
if ("touches" in
|
|
1042
|
+
var c = g.useCallback(function(u, v) {
|
|
1043
|
+
if ("touches" in u && u.touches.length === 2)
|
|
1046
1044
|
return !i.current.allowPinchZoom;
|
|
1047
|
-
var b = ae(
|
|
1048
|
-
if ("touches" in
|
|
1045
|
+
var b = ae(u), x = t.current, $ = "deltaX" in u ? u.deltaX : x[0] - b[0], y = "deltaY" in u ? u.deltaY : x[1] - b[1], S, U = u.target, T = Math.abs($) > Math.abs(y) ? "h" : "v";
|
|
1046
|
+
if ("touches" in u && T === "h" && U.type === "range")
|
|
1049
1047
|
return !1;
|
|
1050
|
-
var w =
|
|
1048
|
+
var w = Ve(T, U);
|
|
1051
1049
|
if (!w)
|
|
1052
1050
|
return !0;
|
|
1053
|
-
if (w ? S = T : (S = T === "v" ? "h" : "v", w =
|
|
1051
|
+
if (w ? S = T : (S = T === "v" ? "h" : "v", w = Ve(T, U)), !w)
|
|
1054
1052
|
return !1;
|
|
1055
|
-
if (!o.current && "changedTouches" in
|
|
1053
|
+
if (!o.current && "changedTouches" in u && ($ || y) && (o.current = S), !S)
|
|
1056
1054
|
return !0;
|
|
1057
1055
|
var M = o.current || S;
|
|
1058
|
-
return
|
|
1059
|
-
}, []), l = g.useCallback(function(
|
|
1060
|
-
var v =
|
|
1056
|
+
return Bn(M, v, u, M === "h" ? $ : y, !0);
|
|
1057
|
+
}, []), l = g.useCallback(function(u) {
|
|
1058
|
+
var v = u;
|
|
1061
1059
|
if (!(!Y.length || Y[Y.length - 1] !== r)) {
|
|
1062
|
-
var b = "deltaY" in v ?
|
|
1063
|
-
return S.name === v.type && S.target === v.target &&
|
|
1060
|
+
var b = "deltaY" in v ? Ke(v) : ae(v), x = n.current.filter(function(S) {
|
|
1061
|
+
return S.name === v.type && S.target === v.target && Wn(S.delta, b);
|
|
1064
1062
|
})[0];
|
|
1065
1063
|
if (x && x.should) {
|
|
1066
1064
|
v.cancelable && v.preventDefault();
|
|
1067
1065
|
return;
|
|
1068
1066
|
}
|
|
1069
1067
|
if (!x) {
|
|
1070
|
-
var $ = (i.current.shards || []).map(
|
|
1068
|
+
var $ = (i.current.shards || []).map(ze).filter(Boolean).filter(function(S) {
|
|
1071
1069
|
return S.contains(v.target);
|
|
1072
|
-
}), y = $.length > 0 ?
|
|
1070
|
+
}), y = $.length > 0 ? c(v, $[0]) : !i.current.noIsolation;
|
|
1073
1071
|
y && v.cancelable && v.preventDefault();
|
|
1074
1072
|
}
|
|
1075
1073
|
}
|
|
1076
|
-
}, []), d = g.useCallback(function(
|
|
1077
|
-
var $ = { name:
|
|
1074
|
+
}, []), d = g.useCallback(function(u, v, b, x) {
|
|
1075
|
+
var $ = { name: u, delta: v, target: b, should: x };
|
|
1078
1076
|
n.current.push($), setTimeout(function() {
|
|
1079
1077
|
n.current = n.current.filter(function(y) {
|
|
1080
1078
|
return y !== $;
|
|
1081
1079
|
});
|
|
1082
1080
|
}, 1);
|
|
1083
|
-
}, []), p = g.useCallback(function(
|
|
1084
|
-
t.current = ae(
|
|
1085
|
-
}, []), s = g.useCallback(function(
|
|
1086
|
-
d(
|
|
1087
|
-
}, []), h = g.useCallback(function(
|
|
1088
|
-
d(
|
|
1081
|
+
}, []), p = g.useCallback(function(u) {
|
|
1082
|
+
t.current = ae(u), o.current = void 0;
|
|
1083
|
+
}, []), s = g.useCallback(function(u) {
|
|
1084
|
+
d(u.type, Ke(u), u.target, c(u, e.lockRef.current));
|
|
1085
|
+
}, []), h = g.useCallback(function(u) {
|
|
1086
|
+
d(u.type, ae(u), u.target, c(u, e.lockRef.current));
|
|
1089
1087
|
}, []);
|
|
1090
1088
|
g.useEffect(function() {
|
|
1091
1089
|
return Y.push(r), e.setCallbacks({
|
|
@@ -1093,8 +1091,8 @@ function Vn(e) {
|
|
|
1093
1091
|
onWheelCapture: s,
|
|
1094
1092
|
onTouchMoveCapture: h
|
|
1095
1093
|
}), document.addEventListener("wheel", l, X), document.addEventListener("touchmove", l, X), document.addEventListener("touchstart", p, X), function() {
|
|
1096
|
-
Y = Y.filter(function(
|
|
1097
|
-
return
|
|
1094
|
+
Y = Y.filter(function(u) {
|
|
1095
|
+
return u !== r;
|
|
1098
1096
|
}), document.removeEventListener("wheel", l, X), document.removeEventListener("touchmove", l, X), document.removeEventListener("touchstart", p, X);
|
|
1099
1097
|
};
|
|
1100
1098
|
}, []);
|
|
@@ -1102,71 +1100,71 @@ function Vn(e) {
|
|
|
1102
1100
|
return g.createElement(
|
|
1103
1101
|
g.Fragment,
|
|
1104
1102
|
null,
|
|
1105
|
-
E ? g.createElement(r, { styles:
|
|
1106
|
-
f ? g.createElement(
|
|
1103
|
+
E ? g.createElement(r, { styles: Un(a) }) : null,
|
|
1104
|
+
f ? g.createElement(Rn, { gapMode: "margin" }) : null
|
|
1107
1105
|
);
|
|
1108
1106
|
}
|
|
1109
|
-
const
|
|
1110
|
-
var
|
|
1111
|
-
return g.createElement(ge, F({}, e, { ref: n, sideCar:
|
|
1107
|
+
const Vn = yn(ut, Gn);
|
|
1108
|
+
var ft = g.forwardRef(function(e, n) {
|
|
1109
|
+
return g.createElement(ge, F({}, e, { ref: n, sideCar: Vn }));
|
|
1112
1110
|
});
|
|
1113
|
-
|
|
1114
|
-
const
|
|
1115
|
-
var
|
|
1111
|
+
ft.classNames = ge.classNames;
|
|
1112
|
+
const Kn = ft;
|
|
1113
|
+
var zn = function(e) {
|
|
1116
1114
|
if (typeof document > "u")
|
|
1117
1115
|
return null;
|
|
1118
1116
|
var n = Array.isArray(e) ? e[0] : e;
|
|
1119
1117
|
return n.ownerDocument.body;
|
|
1120
|
-
}, q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(),
|
|
1121
|
-
return e && (e.host ||
|
|
1122
|
-
},
|
|
1118
|
+
}, q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), ce = {}, we = 0, vt = function(e) {
|
|
1119
|
+
return e && (e.host || vt(e.parentNode));
|
|
1120
|
+
}, Xn = function(e, n) {
|
|
1123
1121
|
return n.map(function(t) {
|
|
1124
1122
|
if (e.contains(t))
|
|
1125
1123
|
return t;
|
|
1126
|
-
var o =
|
|
1124
|
+
var o = vt(t);
|
|
1127
1125
|
return o && e.contains(o) ? o : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
1128
1126
|
}).filter(function(t) {
|
|
1129
1127
|
return !!t;
|
|
1130
1128
|
});
|
|
1131
|
-
},
|
|
1132
|
-
var a =
|
|
1133
|
-
|
|
1134
|
-
var r =
|
|
1135
|
-
!s ||
|
|
1129
|
+
}, Yn = function(e, n, t, o) {
|
|
1130
|
+
var a = Xn(n, Array.isArray(e) ? e : [e]);
|
|
1131
|
+
ce[t] || (ce[t] = /* @__PURE__ */ new WeakMap());
|
|
1132
|
+
var r = ce[t], i = [], c = /* @__PURE__ */ new Set(), l = new Set(a), d = function(s) {
|
|
1133
|
+
!s || c.has(s) || (c.add(s), d(s.parentNode));
|
|
1136
1134
|
};
|
|
1137
1135
|
a.forEach(d);
|
|
1138
1136
|
var p = function(s) {
|
|
1139
1137
|
!s || l.has(s) || Array.prototype.forEach.call(s.children, function(h) {
|
|
1140
|
-
if (
|
|
1138
|
+
if (c.has(h))
|
|
1141
1139
|
p(h);
|
|
1142
1140
|
else {
|
|
1143
|
-
var f = h.getAttribute(o), E = f !== null && f !== "false",
|
|
1144
|
-
q.set(h,
|
|
1141
|
+
var f = h.getAttribute(o), E = f !== null && f !== "false", u = (q.get(h) || 0) + 1, v = (r.get(h) || 0) + 1;
|
|
1142
|
+
q.set(h, u), r.set(h, v), i.push(h), u === 1 && E && ie.set(h, !0), v === 1 && h.setAttribute(t, "true"), E || h.setAttribute(o, "true");
|
|
1145
1143
|
}
|
|
1146
1144
|
});
|
|
1147
1145
|
};
|
|
1148
|
-
return p(n),
|
|
1146
|
+
return p(n), c.clear(), we++, function() {
|
|
1149
1147
|
i.forEach(function(s) {
|
|
1150
1148
|
var h = q.get(s) - 1, f = r.get(s) - 1;
|
|
1151
1149
|
q.set(s, h), r.set(s, f), h || (ie.has(s) || s.removeAttribute(o), ie.delete(s)), f || s.removeAttribute(t);
|
|
1152
|
-
}), we--, we || (q = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(),
|
|
1150
|
+
}), we--, we || (q = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), ce = {});
|
|
1153
1151
|
};
|
|
1154
|
-
},
|
|
1152
|
+
}, qn = function(e, n, t) {
|
|
1155
1153
|
t === void 0 && (t = "data-aria-hidden");
|
|
1156
|
-
var o = Array.from(Array.isArray(e) ? e : [e]), a = n ||
|
|
1157
|
-
return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))),
|
|
1154
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), a = n || zn(e);
|
|
1155
|
+
return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), Yn(o, a, t, "aria-hidden")) : function() {
|
|
1158
1156
|
return null;
|
|
1159
1157
|
};
|
|
1160
1158
|
};
|
|
1161
|
-
const
|
|
1162
|
-
const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e,
|
|
1159
|
+
const ht = "Dialog", [gt, Eo] = Lt(ht), [Zn, L] = gt(ht), Qn = (e) => {
|
|
1160
|
+
const { __scopeDialog: n, children: t, open: o, defaultOpen: a, onOpenChange: r, modal: i = !0 } = e, c = O(null), l = O(null), [d = !1, p] = Bt({
|
|
1163
1161
|
prop: o,
|
|
1164
1162
|
defaultProp: a,
|
|
1165
1163
|
onChange: r
|
|
1166
1164
|
});
|
|
1167
|
-
return /* @__PURE__ */ m(
|
|
1165
|
+
return /* @__PURE__ */ m(Zn, {
|
|
1168
1166
|
scope: n,
|
|
1169
|
-
triggerRef:
|
|
1167
|
+
triggerRef: c,
|
|
1170
1168
|
contentRef: l,
|
|
1171
1169
|
contentId: me(),
|
|
1172
1170
|
titleId: me(),
|
|
@@ -1183,8 +1181,8 @@ const gt = "Dialog", [mt, wo] = Ft(gt), [Qn, L] = mt(gt), Jn = (e) => {
|
|
|
1183
1181
|
),
|
|
1184
1182
|
modal: i
|
|
1185
1183
|
}, t);
|
|
1186
|
-
},
|
|
1187
|
-
const { __scopeDialog: t, ...o } = e, a = L(
|
|
1184
|
+
}, Jn = "DialogTrigger", er = /* @__PURE__ */ C((e, n) => {
|
|
1185
|
+
const { __scopeDialog: t, ...o } = e, a = L(Jn, t), r = J(n, a.triggerRef);
|
|
1188
1186
|
return /* @__PURE__ */ m(W.button, P({
|
|
1189
1187
|
type: "button",
|
|
1190
1188
|
"aria-haspopup": "dialog",
|
|
@@ -1193,37 +1191,37 @@ const gt = "Dialog", [mt, wo] = Ft(gt), [Qn, L] = mt(gt), Jn = (e) => {
|
|
|
1193
1191
|
"data-state": Me(a.open)
|
|
1194
1192
|
}, o, {
|
|
1195
1193
|
ref: r,
|
|
1196
|
-
onClick:
|
|
1194
|
+
onClick: k(e.onClick, a.onOpenToggle)
|
|
1197
1195
|
}));
|
|
1198
|
-
}),
|
|
1196
|
+
}), mt = "DialogPortal", [tr, _t] = gt(mt, {
|
|
1199
1197
|
forceMount: void 0
|
|
1200
|
-
}),
|
|
1201
|
-
const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = L(
|
|
1202
|
-
return /* @__PURE__ */ m(
|
|
1198
|
+
}), nr = (e) => {
|
|
1199
|
+
const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = L(mt, n);
|
|
1200
|
+
return /* @__PURE__ */ m(tr, {
|
|
1203
1201
|
scope: n,
|
|
1204
1202
|
forceMount: t
|
|
1205
1203
|
}, I.map(
|
|
1206
1204
|
o,
|
|
1207
1205
|
(i) => /* @__PURE__ */ m(he, {
|
|
1208
1206
|
present: t || r.open
|
|
1209
|
-
}, /* @__PURE__ */ m(
|
|
1207
|
+
}, /* @__PURE__ */ m(un, {
|
|
1210
1208
|
asChild: !0,
|
|
1211
1209
|
container: a
|
|
1212
1210
|
}, i))
|
|
1213
1211
|
));
|
|
1214
|
-
}, Te = "DialogOverlay",
|
|
1215
|
-
const t =
|
|
1212
|
+
}, Te = "DialogOverlay", rr = /* @__PURE__ */ C((e, n) => {
|
|
1213
|
+
const t = _t(Te, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = L(Te, e.__scopeDialog);
|
|
1216
1214
|
return r.modal ? /* @__PURE__ */ m(he, {
|
|
1217
1215
|
present: o || r.open
|
|
1218
|
-
}, /* @__PURE__ */ m(
|
|
1216
|
+
}, /* @__PURE__ */ m(or, P({}, a, {
|
|
1219
1217
|
ref: n
|
|
1220
1218
|
}))) : null;
|
|
1221
|
-
}),
|
|
1219
|
+
}), or = /* @__PURE__ */ C((e, n) => {
|
|
1222
1220
|
const { __scopeDialog: t, ...o } = e, a = L(Te, t);
|
|
1223
1221
|
return (
|
|
1224
1222
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1225
1223
|
// ie. when `Overlay` and `Content` are siblings
|
|
1226
|
-
/* @__PURE__ */ m(
|
|
1224
|
+
/* @__PURE__ */ m(Kn, {
|
|
1227
1225
|
as: Ie,
|
|
1228
1226
|
allowPinchZoom: !0,
|
|
1229
1227
|
shards: [
|
|
@@ -1239,98 +1237,98 @@ const gt = "Dialog", [mt, wo] = Ft(gt), [Qn, L] = mt(gt), Jn = (e) => {
|
|
|
1239
1237
|
}
|
|
1240
1238
|
})))
|
|
1241
1239
|
);
|
|
1242
|
-
}), ee = "DialogContent",
|
|
1243
|
-
const t =
|
|
1240
|
+
}), ee = "DialogContent", ar = /* @__PURE__ */ C((e, n) => {
|
|
1241
|
+
const t = _t(ee, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = L(ee, e.__scopeDialog);
|
|
1244
1242
|
return /* @__PURE__ */ m(he, {
|
|
1245
1243
|
present: o || r.open
|
|
1246
|
-
}, r.modal ? /* @__PURE__ */ m(
|
|
1244
|
+
}, r.modal ? /* @__PURE__ */ m(ir, P({}, a, {
|
|
1247
1245
|
ref: n
|
|
1248
1246
|
})) : /* @__PURE__ */ m(cr, P({}, a, {
|
|
1249
1247
|
ref: n
|
|
1250
1248
|
})));
|
|
1251
|
-
}),
|
|
1249
|
+
}), ir = /* @__PURE__ */ C((e, n) => {
|
|
1252
1250
|
const t = L(ee, e.__scopeDialog), o = O(null), a = J(n, t.contentRef, o);
|
|
1253
1251
|
return A(() => {
|
|
1254
1252
|
const r = o.current;
|
|
1255
1253
|
if (r)
|
|
1256
|
-
return
|
|
1257
|
-
}, []), /* @__PURE__ */ m(
|
|
1254
|
+
return qn(r);
|
|
1255
|
+
}, []), /* @__PURE__ */ m(bt, P({}, e, {
|
|
1258
1256
|
ref: a,
|
|
1259
1257
|
trapFocus: t.open,
|
|
1260
1258
|
disableOutsidePointerEvents: !0,
|
|
1261
|
-
onCloseAutoFocus:
|
|
1259
|
+
onCloseAutoFocus: k(e.onCloseAutoFocus, (r) => {
|
|
1262
1260
|
var i;
|
|
1263
1261
|
r.preventDefault(), (i = t.triggerRef.current) === null || i === void 0 || i.focus();
|
|
1264
1262
|
}),
|
|
1265
|
-
onPointerDownOutside:
|
|
1266
|
-
const i = r.detail.originalEvent,
|
|
1267
|
-
(i.button === 2 ||
|
|
1263
|
+
onPointerDownOutside: k(e.onPointerDownOutside, (r) => {
|
|
1264
|
+
const i = r.detail.originalEvent, c = i.button === 0 && i.ctrlKey === !0;
|
|
1265
|
+
(i.button === 2 || c) && r.preventDefault();
|
|
1268
1266
|
}),
|
|
1269
|
-
onFocusOutside:
|
|
1267
|
+
onFocusOutside: k(
|
|
1270
1268
|
e.onFocusOutside,
|
|
1271
1269
|
(r) => r.preventDefault()
|
|
1272
1270
|
)
|
|
1273
1271
|
}));
|
|
1274
1272
|
}), cr = /* @__PURE__ */ C((e, n) => {
|
|
1275
1273
|
const t = L(ee, e.__scopeDialog), o = O(!1), a = O(!1);
|
|
1276
|
-
return /* @__PURE__ */ m(
|
|
1274
|
+
return /* @__PURE__ */ m(bt, P({}, e, {
|
|
1277
1275
|
ref: n,
|
|
1278
1276
|
trapFocus: !1,
|
|
1279
1277
|
disableOutsidePointerEvents: !1,
|
|
1280
1278
|
onCloseAutoFocus: (r) => {
|
|
1281
1279
|
var i;
|
|
1282
1280
|
if ((i = e.onCloseAutoFocus) === null || i === void 0 || i.call(e, r), !r.defaultPrevented) {
|
|
1283
|
-
var
|
|
1284
|
-
o.current || (
|
|
1281
|
+
var c;
|
|
1282
|
+
o.current || (c = t.triggerRef.current) === null || c === void 0 || c.focus(), r.preventDefault();
|
|
1285
1283
|
}
|
|
1286
1284
|
o.current = !1, a.current = !1;
|
|
1287
1285
|
},
|
|
1288
1286
|
onInteractOutside: (r) => {
|
|
1289
|
-
var i,
|
|
1287
|
+
var i, c;
|
|
1290
1288
|
(i = e.onInteractOutside) === null || i === void 0 || i.call(e, r), r.defaultPrevented || (o.current = !0, r.detail.originalEvent.type === "pointerdown" && (a.current = !0));
|
|
1291
1289
|
const l = r.target;
|
|
1292
|
-
((
|
|
1290
|
+
((c = t.triggerRef.current) === null || c === void 0 ? void 0 : c.contains(l)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && a.current && r.preventDefault();
|
|
1293
1291
|
}
|
|
1294
1292
|
}));
|
|
1295
|
-
}),
|
|
1296
|
-
const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e,
|
|
1297
|
-
return
|
|
1293
|
+
}), bt = /* @__PURE__ */ C((e, n) => {
|
|
1294
|
+
const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...i } = e, c = L(ee, t), l = O(null), d = J(n, l);
|
|
1295
|
+
return dn(), /* @__PURE__ */ m(Re, null, /* @__PURE__ */ m(en, {
|
|
1298
1296
|
asChild: !0,
|
|
1299
1297
|
loop: !0,
|
|
1300
1298
|
trapped: o,
|
|
1301
1299
|
onMountAutoFocus: a,
|
|
1302
1300
|
onUnmountAutoFocus: r
|
|
1303
|
-
}, /* @__PURE__ */ m(
|
|
1301
|
+
}, /* @__PURE__ */ m(Zt, P({
|
|
1304
1302
|
role: "dialog",
|
|
1305
|
-
id:
|
|
1306
|
-
"aria-describedby":
|
|
1307
|
-
"aria-labelledby":
|
|
1308
|
-
"data-state": Me(
|
|
1303
|
+
id: c.contentId,
|
|
1304
|
+
"aria-describedby": c.descriptionId,
|
|
1305
|
+
"aria-labelledby": c.titleId,
|
|
1306
|
+
"data-state": Me(c.open)
|
|
1309
1307
|
}, i, {
|
|
1310
1308
|
ref: d,
|
|
1311
|
-
onDismiss: () =>
|
|
1309
|
+
onDismiss: () => c.onOpenChange(!1)
|
|
1312
1310
|
}))), !1);
|
|
1313
|
-
}),
|
|
1314
|
-
const { __scopeDialog: t, ...o } = e, a = L(
|
|
1311
|
+
}), ur = "DialogTitle", sr = /* @__PURE__ */ C((e, n) => {
|
|
1312
|
+
const { __scopeDialog: t, ...o } = e, a = L(ur, t);
|
|
1315
1313
|
return /* @__PURE__ */ m(W.h2, P({
|
|
1316
1314
|
id: a.titleId
|
|
1317
1315
|
}, o, {
|
|
1318
1316
|
ref: n
|
|
1319
1317
|
}));
|
|
1320
|
-
}),
|
|
1321
|
-
const { __scopeDialog: t, ...o } = e, a = L(
|
|
1318
|
+
}), lr = "DialogDescription", dr = /* @__PURE__ */ C((e, n) => {
|
|
1319
|
+
const { __scopeDialog: t, ...o } = e, a = L(lr, t);
|
|
1322
1320
|
return /* @__PURE__ */ m(W.p, P({
|
|
1323
1321
|
id: a.descriptionId
|
|
1324
1322
|
}, o, {
|
|
1325
1323
|
ref: n
|
|
1326
1324
|
}));
|
|
1327
|
-
}),
|
|
1328
|
-
const { __scopeDialog: t, ...o } = e, a = L(
|
|
1325
|
+
}), pr = "DialogClose", fr = /* @__PURE__ */ C((e, n) => {
|
|
1326
|
+
const { __scopeDialog: t, ...o } = e, a = L(pr, t);
|
|
1329
1327
|
return /* @__PURE__ */ m(W.button, P({
|
|
1330
1328
|
type: "button"
|
|
1331
1329
|
}, o, {
|
|
1332
1330
|
ref: n,
|
|
1333
|
-
onClick:
|
|
1331
|
+
onClick: k(
|
|
1334
1332
|
e.onClick,
|
|
1335
1333
|
() => a.onOpenChange(!1)
|
|
1336
1334
|
)
|
|
@@ -1339,15 +1337,15 @@ const gt = "Dialog", [mt, wo] = Ft(gt), [Qn, L] = mt(gt), Jn = (e) => {
|
|
|
1339
1337
|
function Me(e) {
|
|
1340
1338
|
return e ? "open" : "closed";
|
|
1341
1339
|
}
|
|
1342
|
-
const hr =
|
|
1340
|
+
const vr = Qn, hr = er, gr = nr, mr = rr, _r = ar, br = sr, Xe = dr, $r = fr, Ye = {
|
|
1343
1341
|
SM: "sm",
|
|
1344
1342
|
MD: "md",
|
|
1345
1343
|
LG: "lg"
|
|
1346
1344
|
};
|
|
1347
|
-
function
|
|
1345
|
+
function yr(e) {
|
|
1348
1346
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1349
1347
|
}
|
|
1350
|
-
var
|
|
1348
|
+
var $t = { exports: {} };
|
|
1351
1349
|
/*!
|
|
1352
1350
|
Copyright (c) 2018 Jed Watson.
|
|
1353
1351
|
Licensed under the MIT License (MIT), see
|
|
@@ -1358,8 +1356,8 @@ var yt = { exports: {} };
|
|
|
1358
1356
|
var n = {}.hasOwnProperty;
|
|
1359
1357
|
function t() {
|
|
1360
1358
|
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
1361
|
-
var
|
|
1362
|
-
|
|
1359
|
+
var c = arguments[i];
|
|
1360
|
+
c && (r = a(r, o(c)));
|
|
1363
1361
|
}
|
|
1364
1362
|
return r;
|
|
1365
1363
|
}
|
|
@@ -1373,8 +1371,8 @@ var yt = { exports: {} };
|
|
|
1373
1371
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1374
1372
|
return r.toString();
|
|
1375
1373
|
var i = "";
|
|
1376
|
-
for (var
|
|
1377
|
-
n.call(r,
|
|
1374
|
+
for (var c in r)
|
|
1375
|
+
n.call(r, c) && r[c] && (i = a(i, c));
|
|
1378
1376
|
return i;
|
|
1379
1377
|
}
|
|
1380
1378
|
function a(r, i) {
|
|
@@ -1382,49 +1380,49 @@ var yt = { exports: {} };
|
|
|
1382
1380
|
}
|
|
1383
1381
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1384
1382
|
})();
|
|
1385
|
-
})(
|
|
1386
|
-
var
|
|
1387
|
-
const
|
|
1383
|
+
})($t);
|
|
1384
|
+
var Er = $t.exports;
|
|
1385
|
+
const qe = /* @__PURE__ */ yr(Er), wr = "_rotate_7s2g1_1", Sr = "_dash_7s2g1_1", ue = {
|
|
1388
1386
|
"purpur-spinner": "_purpur-spinner_7s2g1_1",
|
|
1389
|
-
rotate:
|
|
1387
|
+
rotate: wr,
|
|
1390
1388
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
|
|
1391
1389
|
"purpur-spinner--xs": "_purpur-spinner--xs_7s2g1_8",
|
|
1392
1390
|
"purpur-spinner--sm": "_purpur-spinner--sm_7s2g1_12",
|
|
1393
1391
|
"purpur-spinner--md": "_purpur-spinner--md_7s2g1_16",
|
|
1394
1392
|
"purpur-spinner--lg": "_purpur-spinner--lg_7s2g1_20",
|
|
1395
1393
|
"purpur-spinner__circle": "_purpur-spinner__circle_7s2g1_24",
|
|
1396
|
-
dash:
|
|
1394
|
+
dash: Sr,
|
|
1397
1395
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
|
|
1398
1396
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
|
|
1399
1397
|
"purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
|
|
1400
|
-
}, se = "purpur-spinner",
|
|
1398
|
+
}, se = "purpur-spinner", Cr = {
|
|
1401
1399
|
PRIMARY: "primary",
|
|
1402
1400
|
DISABLED: "disabled",
|
|
1403
1401
|
NEGATIVE: "negative",
|
|
1404
1402
|
NEGATIVE_DISABLED: "negative-disabled"
|
|
1405
|
-
},
|
|
1403
|
+
}, xr = {
|
|
1406
1404
|
XXS: "xxs",
|
|
1407
1405
|
XS: "xs",
|
|
1408
1406
|
SM: "sm",
|
|
1409
1407
|
MD: "md",
|
|
1410
1408
|
LG: "lg"
|
|
1411
|
-
},
|
|
1409
|
+
}, Or = ({
|
|
1412
1410
|
["data-testid"]: e,
|
|
1413
|
-
size: n =
|
|
1414
|
-
variant: t =
|
|
1411
|
+
size: n = xr.SM,
|
|
1412
|
+
variant: t = Cr.PRIMARY,
|
|
1415
1413
|
...o
|
|
1416
1414
|
}) => /* @__PURE__ */ _(
|
|
1417
1415
|
"div",
|
|
1418
1416
|
{
|
|
1419
|
-
className:
|
|
1417
|
+
className: qe([ue[se], ue[`${se}--${n}`]]),
|
|
1420
1418
|
"data-testid": e,
|
|
1421
1419
|
...o,
|
|
1422
1420
|
children: /* @__PURE__ */ _("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ _(
|
|
1423
1421
|
"circle",
|
|
1424
1422
|
{
|
|
1425
|
-
className:
|
|
1426
|
-
|
|
1427
|
-
|
|
1423
|
+
className: qe(
|
|
1424
|
+
ue[`${se}__circle`],
|
|
1425
|
+
ue[`${se}__circle--${t}`]
|
|
1428
1426
|
),
|
|
1429
1427
|
cx: "25",
|
|
1430
1428
|
cy: "25",
|
|
@@ -1433,10 +1431,10 @@ const Ze = /* @__PURE__ */ Er(wr), Sr = "_rotate_7s2g1_1", Cr = "_dash_7s2g1_1",
|
|
|
1433
1431
|
) })
|
|
1434
1432
|
}
|
|
1435
1433
|
);
|
|
1436
|
-
function
|
|
1434
|
+
function Pr(e) {
|
|
1437
1435
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1438
1436
|
}
|
|
1439
|
-
var
|
|
1437
|
+
var yt = { exports: {} };
|
|
1440
1438
|
/*!
|
|
1441
1439
|
Copyright (c) 2018 Jed Watson.
|
|
1442
1440
|
Licensed under the MIT License (MIT), see
|
|
@@ -1447,8 +1445,8 @@ var Et = { exports: {} };
|
|
|
1447
1445
|
var n = {}.hasOwnProperty;
|
|
1448
1446
|
function t() {
|
|
1449
1447
|
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
1450
|
-
var
|
|
1451
|
-
|
|
1448
|
+
var c = arguments[i];
|
|
1449
|
+
c && (r = a(r, o(c)));
|
|
1452
1450
|
}
|
|
1453
1451
|
return r;
|
|
1454
1452
|
}
|
|
@@ -1462,8 +1460,8 @@ var Et = { exports: {} };
|
|
|
1462
1460
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1463
1461
|
return r.toString();
|
|
1464
1462
|
var i = "";
|
|
1465
|
-
for (var
|
|
1466
|
-
n.call(r,
|
|
1463
|
+
for (var c in r)
|
|
1464
|
+
n.call(r, c) && r[c] && (i = a(i, c));
|
|
1467
1465
|
return i;
|
|
1468
1466
|
}
|
|
1469
1467
|
function a(r, i) {
|
|
@@ -1471,9 +1469,9 @@ var Et = { exports: {} };
|
|
|
1471
1469
|
}
|
|
1472
1470
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1473
1471
|
})();
|
|
1474
|
-
})(
|
|
1475
|
-
var
|
|
1476
|
-
const
|
|
1472
|
+
})(yt);
|
|
1473
|
+
var Nr = yt.exports;
|
|
1474
|
+
const Ar = /* @__PURE__ */ Pr(Nr), H = {
|
|
1477
1475
|
"purpur-button": "_purpur-button_1fna2_1",
|
|
1478
1476
|
"purpur-button--sm": "_purpur-button--sm_1fna2_33",
|
|
1479
1477
|
"purpur-button--icon-only": "_purpur-button--icon-only_1fna2_36",
|
|
@@ -1494,7 +1492,7 @@ const Tr = /* @__PURE__ */ Nr(Ar), H = {
|
|
|
1494
1492
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1fna2_160",
|
|
1495
1493
|
"purpur-button--text-negative": "_purpur-button--text-negative_1fna2_175",
|
|
1496
1494
|
"purpur-button--text": "_purpur-button--text_1fna2_175"
|
|
1497
|
-
}, G = "purpur-button",
|
|
1495
|
+
}, G = "purpur-button", Tr = ({
|
|
1498
1496
|
children: e,
|
|
1499
1497
|
className: n,
|
|
1500
1498
|
["data-testid"]: t,
|
|
@@ -1502,15 +1500,15 @@ const Tr = /* @__PURE__ */ Nr(Ar), H = {
|
|
|
1502
1500
|
fullWidth: a = !1,
|
|
1503
1501
|
iconOnly: r,
|
|
1504
1502
|
loading: i = !1,
|
|
1505
|
-
onClick:
|
|
1506
|
-
size: l =
|
|
1503
|
+
onClick: c,
|
|
1504
|
+
size: l = Ye.MD,
|
|
1507
1505
|
variant: d,
|
|
1508
1506
|
type: p = "button",
|
|
1509
1507
|
...s
|
|
1510
1508
|
}, h) => {
|
|
1511
1509
|
if (r && d === "destructive")
|
|
1512
1510
|
return null;
|
|
1513
|
-
const f =
|
|
1511
|
+
const f = Ar(
|
|
1514
1512
|
[
|
|
1515
1513
|
H[G],
|
|
1516
1514
|
H[`${G}--${d}`],
|
|
@@ -1524,8 +1522,8 @@ const Tr = /* @__PURE__ */ Nr(Ar), H = {
|
|
|
1524
1522
|
},
|
|
1525
1523
|
n
|
|
1526
1524
|
), E = (v) => {
|
|
1527
|
-
o || i ? v.preventDefault() :
|
|
1528
|
-
},
|
|
1525
|
+
o || i ? v.preventDefault() : c && c(v);
|
|
1526
|
+
}, u = () => d.endsWith("negative") ? "negative-disabled" : "disabled";
|
|
1529
1527
|
return /* @__PURE__ */ V(
|
|
1530
1528
|
"button",
|
|
1531
1529
|
{
|
|
@@ -1537,18 +1535,18 @@ const Tr = /* @__PURE__ */ Nr(Ar), H = {
|
|
|
1537
1535
|
onClick: E,
|
|
1538
1536
|
...s,
|
|
1539
1537
|
children: [
|
|
1540
|
-
i && /* @__PURE__ */ _(
|
|
1538
|
+
i && /* @__PURE__ */ _(Or, { size: l === Ye.LG ? "xs" : "xxs", variant: u() }),
|
|
1541
1539
|
" ",
|
|
1542
1540
|
e
|
|
1543
1541
|
]
|
|
1544
1542
|
}
|
|
1545
1543
|
);
|
|
1546
|
-
}, Le = C(
|
|
1544
|
+
}, Le = C(Tr);
|
|
1547
1545
|
Le.displayName = "Button";
|
|
1548
|
-
function
|
|
1546
|
+
function Dr(e) {
|
|
1549
1547
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1550
1548
|
}
|
|
1551
|
-
var
|
|
1549
|
+
var Et = { exports: {} };
|
|
1552
1550
|
/*!
|
|
1553
1551
|
Copyright (c) 2018 Jed Watson.
|
|
1554
1552
|
Licensed under the MIT License (MIT), see
|
|
@@ -1559,8 +1557,8 @@ var wt = { exports: {} };
|
|
|
1559
1557
|
var n = {}.hasOwnProperty;
|
|
1560
1558
|
function t() {
|
|
1561
1559
|
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
1562
|
-
var
|
|
1563
|
-
|
|
1560
|
+
var c = arguments[i];
|
|
1561
|
+
c && (r = a(r, o(c)));
|
|
1564
1562
|
}
|
|
1565
1563
|
return r;
|
|
1566
1564
|
}
|
|
@@ -1574,8 +1572,8 @@ var wt = { exports: {} };
|
|
|
1574
1572
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1575
1573
|
return r.toString();
|
|
1576
1574
|
var i = "";
|
|
1577
|
-
for (var
|
|
1578
|
-
n.call(r,
|
|
1575
|
+
for (var c in r)
|
|
1576
|
+
n.call(r, c) && r[c] && (i = a(i, c));
|
|
1579
1577
|
return i;
|
|
1580
1578
|
}
|
|
1581
1579
|
function a(r, i) {
|
|
@@ -1583,9 +1581,9 @@ var wt = { exports: {} };
|
|
|
1583
1581
|
}
|
|
1584
1582
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1585
1583
|
})();
|
|
1586
|
-
})(
|
|
1587
|
-
var
|
|
1588
|
-
const
|
|
1584
|
+
})(Et);
|
|
1585
|
+
var Rr = Et.exports;
|
|
1586
|
+
const Ir = /* @__PURE__ */ Dr(Rr), Se = {
|
|
1589
1587
|
"purpur-heading": "_purpur-heading_2c2y0_1",
|
|
1590
1588
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_2c2y0_8",
|
|
1591
1589
|
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_2c2y0_11",
|
|
@@ -1600,7 +1598,7 @@ const Mr = /* @__PURE__ */ Rr(Ir), Se = {
|
|
|
1600
1598
|
"purpur-heading--display-50": "_purpur-heading--display-50_2c2y0_65",
|
|
1601
1599
|
"purpur-heading--display-100": "_purpur-heading--display-100_2c2y0_71",
|
|
1602
1600
|
"purpur-heading--display-200": "_purpur-heading--display-200_2c2y0_77"
|
|
1603
|
-
},
|
|
1601
|
+
}, Mr = {
|
|
1604
1602
|
TITLE100: "title-100",
|
|
1605
1603
|
TITLE200: "title-200",
|
|
1606
1604
|
TITLE300: "title-300",
|
|
@@ -1609,16 +1607,16 @@ const Mr = /* @__PURE__ */ Rr(Ir), Se = {
|
|
|
1609
1607
|
TITLE600: "title-600",
|
|
1610
1608
|
TITLE700: "title-700",
|
|
1611
1609
|
SUBSECTION100: "subsection-100"
|
|
1612
|
-
}, Ce = "purpur-heading",
|
|
1610
|
+
}, Ce = "purpur-heading", Lr = ({
|
|
1613
1611
|
["data-testid"]: e,
|
|
1614
1612
|
children: n,
|
|
1615
1613
|
className: t = "",
|
|
1616
1614
|
enableHyphenation: o = !1,
|
|
1617
1615
|
tag: a,
|
|
1618
|
-
variant: r =
|
|
1616
|
+
variant: r = Mr.TITLE100,
|
|
1619
1617
|
...i
|
|
1620
1618
|
}) => {
|
|
1621
|
-
const
|
|
1619
|
+
const c = a, l = Ir([
|
|
1622
1620
|
t,
|
|
1623
1621
|
Se[Ce],
|
|
1624
1622
|
Se[`${Ce}--${r}`],
|
|
@@ -1626,12 +1624,12 @@ const Mr = /* @__PURE__ */ Rr(Ir), Se = {
|
|
|
1626
1624
|
[Se[`${Ce}--hyphens`]]: o
|
|
1627
1625
|
}
|
|
1628
1626
|
]);
|
|
1629
|
-
return /* @__PURE__ */ _(
|
|
1627
|
+
return /* @__PURE__ */ _(c, { ...i, className: l, "data-testid": e, children: n });
|
|
1630
1628
|
};
|
|
1631
|
-
function
|
|
1629
|
+
function Fr(e) {
|
|
1632
1630
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1633
1631
|
}
|
|
1634
|
-
var
|
|
1632
|
+
var wt = { exports: {} };
|
|
1635
1633
|
/*!
|
|
1636
1634
|
Copyright (c) 2018 Jed Watson.
|
|
1637
1635
|
Licensed under the MIT License (MIT), see
|
|
@@ -1642,8 +1640,8 @@ var St = { exports: {} };
|
|
|
1642
1640
|
var n = {}.hasOwnProperty;
|
|
1643
1641
|
function t() {
|
|
1644
1642
|
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
1645
|
-
var
|
|
1646
|
-
|
|
1643
|
+
var c = arguments[i];
|
|
1644
|
+
c && (r = a(r, o.call(this, c)));
|
|
1647
1645
|
}
|
|
1648
1646
|
return r;
|
|
1649
1647
|
}
|
|
@@ -1657,8 +1655,8 @@ var St = { exports: {} };
|
|
|
1657
1655
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1658
1656
|
return r.toString();
|
|
1659
1657
|
var i = "";
|
|
1660
|
-
for (var
|
|
1661
|
-
n.call(r,
|
|
1658
|
+
for (var c in r)
|
|
1659
|
+
n.call(r, c) && r[c] && (i = a(i, this && this[c] || c));
|
|
1662
1660
|
return i;
|
|
1663
1661
|
}
|
|
1664
1662
|
function a(r, i) {
|
|
@@ -1666,9 +1664,9 @@ var St = { exports: {} };
|
|
|
1666
1664
|
}
|
|
1667
1665
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1668
1666
|
})();
|
|
1669
|
-
})(
|
|
1670
|
-
var jr =
|
|
1671
|
-
const
|
|
1667
|
+
})(wt);
|
|
1668
|
+
var jr = wt.exports;
|
|
1669
|
+
const kr = /* @__PURE__ */ Fr(jr), Br = {
|
|
1672
1670
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
1673
1671
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
1674
1672
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -1676,54 +1674,54 @@ const Br = /* @__PURE__ */ kr(jr), Wr = {
|
|
|
1676
1674
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
1677
1675
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
1678
1676
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
1679
|
-
},
|
|
1677
|
+
}, Wr = {
|
|
1680
1678
|
name: "close",
|
|
1681
1679
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
1682
1680
|
keywords: ["close"],
|
|
1683
1681
|
category: "utility"
|
|
1684
|
-
},
|
|
1685
|
-
|
|
1682
|
+
}, St = (e) => /* @__PURE__ */ _(
|
|
1683
|
+
zr,
|
|
1686
1684
|
{
|
|
1687
1685
|
...e,
|
|
1688
|
-
svg:
|
|
1686
|
+
svg: Wr
|
|
1689
1687
|
}
|
|
1690
1688
|
);
|
|
1691
|
-
|
|
1692
|
-
const
|
|
1689
|
+
St.displayName = "IconClose";
|
|
1690
|
+
const Ur = kr.bind(Br), Ze = "purpur-icon", Hr = "md", Gr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Vr = ({ content: e = "", title: n } = {}) => {
|
|
1693
1691
|
const t = [
|
|
1694
1692
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1695
1693
|
{ name: "fill", value: "currentColor" },
|
|
1696
1694
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
1697
1695
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1698
1696
|
], o = n ? `<title>${n}</title>` : "";
|
|
1699
|
-
return `<svg ${
|
|
1700
|
-
},
|
|
1697
|
+
return `<svg ${Gr(t)}>${o}${e}</svg>`;
|
|
1698
|
+
}, Kr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), zr = ({
|
|
1701
1699
|
["data-testid"]: e,
|
|
1702
1700
|
svg: n,
|
|
1703
1701
|
allyTitle: t,
|
|
1704
1702
|
className: o = "",
|
|
1705
|
-
size: a =
|
|
1703
|
+
size: a = Hr,
|
|
1706
1704
|
...r
|
|
1707
1705
|
}) => {
|
|
1708
|
-
const i =
|
|
1709
|
-
content:
|
|
1706
|
+
const i = Vr({
|
|
1707
|
+
content: Kr(n.svg),
|
|
1710
1708
|
title: t
|
|
1711
|
-
}),
|
|
1709
|
+
}), c = Ur(o, Ze, `${Ze}--${a}`);
|
|
1712
1710
|
return /* @__PURE__ */ _(
|
|
1713
1711
|
"span",
|
|
1714
1712
|
{
|
|
1715
1713
|
"aria-label": t,
|
|
1716
|
-
className:
|
|
1714
|
+
className: c,
|
|
1717
1715
|
"data-testid": e,
|
|
1718
1716
|
dangerouslySetInnerHTML: { __html: i },
|
|
1719
1717
|
...r
|
|
1720
1718
|
}
|
|
1721
1719
|
);
|
|
1722
1720
|
};
|
|
1723
|
-
function
|
|
1721
|
+
function Xr(e) {
|
|
1724
1722
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1725
1723
|
}
|
|
1726
|
-
var
|
|
1724
|
+
var Ct = { exports: {} };
|
|
1727
1725
|
/*!
|
|
1728
1726
|
Copyright (c) 2018 Jed Watson.
|
|
1729
1727
|
Licensed under the MIT License (MIT), see
|
|
@@ -1734,8 +1732,8 @@ var xt = { exports: {} };
|
|
|
1734
1732
|
var n = {}.hasOwnProperty;
|
|
1735
1733
|
function t() {
|
|
1736
1734
|
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
1737
|
-
var
|
|
1738
|
-
|
|
1735
|
+
var c = arguments[i];
|
|
1736
|
+
c && (r = a(r, o(c)));
|
|
1739
1737
|
}
|
|
1740
1738
|
return r;
|
|
1741
1739
|
}
|
|
@@ -1749,8 +1747,8 @@ var xt = { exports: {} };
|
|
|
1749
1747
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1750
1748
|
return r.toString();
|
|
1751
1749
|
var i = "";
|
|
1752
|
-
for (var
|
|
1753
|
-
n.call(r,
|
|
1750
|
+
for (var c in r)
|
|
1751
|
+
n.call(r, c) && r[c] && (i = a(i, c));
|
|
1754
1752
|
return i;
|
|
1755
1753
|
}
|
|
1756
1754
|
function a(r, i) {
|
|
@@ -1758,9 +1756,9 @@ var xt = { exports: {} };
|
|
|
1758
1756
|
}
|
|
1759
1757
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1760
1758
|
})();
|
|
1761
|
-
})(
|
|
1762
|
-
var
|
|
1763
|
-
const
|
|
1759
|
+
})(Ct);
|
|
1760
|
+
var Yr = Ct.exports;
|
|
1761
|
+
const qr = /* @__PURE__ */ Xr(Yr), le = {
|
|
1764
1762
|
"purpur-paragraph": "_purpur-paragraph_hwaj6_1",
|
|
1765
1763
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_hwaj6_7",
|
|
1766
1764
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_hwaj6_10",
|
|
@@ -1774,7 +1772,7 @@ const Zr = /* @__PURE__ */ Yr(qr), le = {
|
|
|
1774
1772
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_hwaj6_57",
|
|
1775
1773
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_hwaj6_64",
|
|
1776
1774
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_hwaj6_71"
|
|
1777
|
-
},
|
|
1775
|
+
}, Zr = {
|
|
1778
1776
|
PARAGRAPH100: "paragraph-100",
|
|
1779
1777
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
1780
1778
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -1785,16 +1783,16 @@ const Zr = /* @__PURE__ */ Yr(qr), le = {
|
|
|
1785
1783
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
1786
1784
|
OVERLINE100: "overline-100",
|
|
1787
1785
|
OVERLINE200: "overline-200"
|
|
1788
|
-
}, de = "purpur-paragraph",
|
|
1786
|
+
}, de = "purpur-paragraph", Qr = ({
|
|
1789
1787
|
["data-testid"]: e,
|
|
1790
1788
|
children: n,
|
|
1791
1789
|
className: t = "",
|
|
1792
1790
|
disabled: o,
|
|
1793
1791
|
enableHyphenation: a = !1,
|
|
1794
|
-
variant: r =
|
|
1792
|
+
variant: r = Zr.PARAGRAPH100,
|
|
1795
1793
|
...i
|
|
1796
1794
|
}) => {
|
|
1797
|
-
const
|
|
1795
|
+
const c = qr([
|
|
1798
1796
|
t,
|
|
1799
1797
|
le[de],
|
|
1800
1798
|
le[`${de}--${r}`],
|
|
@@ -1803,7 +1801,7 @@ const Zr = /* @__PURE__ */ Yr(qr), le = {
|
|
|
1803
1801
|
[le[`${de}--disabled`]]: o
|
|
1804
1802
|
}
|
|
1805
1803
|
]);
|
|
1806
|
-
return /* @__PURE__ */ _("p", { ...i, className:
|
|
1804
|
+
return /* @__PURE__ */ _("p", { ...i, className: c, "data-testid": e, children: n });
|
|
1807
1805
|
};
|
|
1808
1806
|
function Z() {
|
|
1809
1807
|
return Z = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -1815,40 +1813,40 @@ function Z() {
|
|
|
1815
1813
|
return e;
|
|
1816
1814
|
}, Z.apply(this, arguments);
|
|
1817
1815
|
}
|
|
1818
|
-
function
|
|
1816
|
+
function Jr(e, n) {
|
|
1819
1817
|
typeof e == "function" ? e(n) : e != null && (e.current = n);
|
|
1820
1818
|
}
|
|
1821
|
-
function
|
|
1819
|
+
function eo(...e) {
|
|
1822
1820
|
return (n) => e.forEach(
|
|
1823
|
-
(t) =>
|
|
1821
|
+
(t) => Jr(t, n)
|
|
1824
1822
|
);
|
|
1825
1823
|
}
|
|
1826
|
-
const
|
|
1827
|
-
const { children: t, ...o } = e, a = I.toArray(t), r = a.find(
|
|
1824
|
+
const xt = /* @__PURE__ */ C((e, n) => {
|
|
1825
|
+
const { children: t, ...o } = e, a = I.toArray(t), r = a.find(no);
|
|
1828
1826
|
if (r) {
|
|
1829
|
-
const i = r.props.children,
|
|
1827
|
+
const i = r.props.children, c = a.map((l) => l === r ? I.count(i) > 1 ? I.only(null) : /* @__PURE__ */ B(i) ? i.props.children : null : l);
|
|
1830
1828
|
return /* @__PURE__ */ m(De, Z({}, o, {
|
|
1831
1829
|
ref: n
|
|
1832
|
-
}), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0,
|
|
1830
|
+
}), /* @__PURE__ */ B(i) ? /* @__PURE__ */ te(i, void 0, c) : null);
|
|
1833
1831
|
}
|
|
1834
1832
|
return /* @__PURE__ */ m(De, Z({}, o, {
|
|
1835
1833
|
ref: n
|
|
1836
1834
|
}), t);
|
|
1837
1835
|
});
|
|
1838
|
-
|
|
1836
|
+
xt.displayName = "Slot";
|
|
1839
1837
|
const De = /* @__PURE__ */ C((e, n) => {
|
|
1840
1838
|
const { children: t, ...o } = e;
|
|
1841
1839
|
return /* @__PURE__ */ B(t) ? /* @__PURE__ */ te(t, {
|
|
1842
|
-
...
|
|
1843
|
-
ref: n ?
|
|
1840
|
+
...ro(o, t.props),
|
|
1841
|
+
ref: n ? eo(n, t.ref) : t.ref
|
|
1844
1842
|
}) : I.count(t) > 1 ? I.only(null) : null;
|
|
1845
1843
|
});
|
|
1846
1844
|
De.displayName = "SlotClone";
|
|
1847
|
-
const
|
|
1848
|
-
function
|
|
1849
|
-
return /* @__PURE__ */ B(e) && e.type ===
|
|
1845
|
+
const to = ({ children: e }) => /* @__PURE__ */ m(Re, null, e);
|
|
1846
|
+
function no(e) {
|
|
1847
|
+
return /* @__PURE__ */ B(e) && e.type === to;
|
|
1850
1848
|
}
|
|
1851
|
-
function
|
|
1849
|
+
function ro(e, n) {
|
|
1852
1850
|
const t = {
|
|
1853
1851
|
...n
|
|
1854
1852
|
};
|
|
@@ -1869,7 +1867,7 @@ function oo(e, n) {
|
|
|
1869
1867
|
...t
|
|
1870
1868
|
};
|
|
1871
1869
|
}
|
|
1872
|
-
const
|
|
1870
|
+
const oo = [
|
|
1873
1871
|
"a",
|
|
1874
1872
|
"button",
|
|
1875
1873
|
"div",
|
|
@@ -1886,12 +1884,12 @@ const ao = [
|
|
|
1886
1884
|
"span",
|
|
1887
1885
|
"svg",
|
|
1888
1886
|
"ul"
|
|
1889
|
-
],
|
|
1887
|
+
], ao = oo.reduce((e, n) => {
|
|
1890
1888
|
const t = /* @__PURE__ */ C((o, a) => {
|
|
1891
|
-
const { asChild: r, ...i } = o,
|
|
1889
|
+
const { asChild: r, ...i } = o, c = r ? xt : n;
|
|
1892
1890
|
return A(() => {
|
|
1893
1891
|
window[Symbol.for("radix-ui")] = !0;
|
|
1894
|
-
}, []), /* @__PURE__ */ m(
|
|
1892
|
+
}, []), /* @__PURE__ */ m(c, Z({}, i, {
|
|
1895
1893
|
ref: a
|
|
1896
1894
|
}));
|
|
1897
1895
|
});
|
|
@@ -1899,7 +1897,7 @@ const ao = [
|
|
|
1899
1897
|
...e,
|
|
1900
1898
|
[n]: t
|
|
1901
1899
|
};
|
|
1902
|
-
}, {}),
|
|
1900
|
+
}, {}), io = /* @__PURE__ */ C((e, n) => /* @__PURE__ */ m(ao.span, Z({}, e, {
|
|
1903
1901
|
ref: n,
|
|
1904
1902
|
style: {
|
|
1905
1903
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -1915,16 +1913,16 @@ const ao = [
|
|
|
1915
1913
|
wordWrap: "normal",
|
|
1916
1914
|
...e.style
|
|
1917
1915
|
}
|
|
1918
|
-
}))), co =
|
|
1916
|
+
}))), co = io, uo = ({
|
|
1919
1917
|
asChild: e,
|
|
1920
1918
|
children: n,
|
|
1921
1919
|
className: t = "",
|
|
1922
1920
|
["data-testid"]: o
|
|
1923
|
-
}) => /* @__PURE__ */ _(co, { asChild: e, "data-testid": o, className: t, children: n }),
|
|
1924
|
-
function
|
|
1921
|
+
}) => /* @__PURE__ */ _(co, { asChild: e, "data-testid": o, className: t, children: n }), so = "600px";
|
|
1922
|
+
function lo(e) {
|
|
1925
1923
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1926
1924
|
}
|
|
1927
|
-
var
|
|
1925
|
+
var Ot = { exports: {} };
|
|
1928
1926
|
/*!
|
|
1929
1927
|
Copyright (c) 2018 Jed Watson.
|
|
1930
1928
|
Licensed under the MIT License (MIT), see
|
|
@@ -1935,8 +1933,8 @@ var Pt = { exports: {} };
|
|
|
1935
1933
|
var n = {}.hasOwnProperty;
|
|
1936
1934
|
function t() {
|
|
1937
1935
|
for (var r = "", i = 0; i < arguments.length; i++) {
|
|
1938
|
-
var
|
|
1939
|
-
|
|
1936
|
+
var c = arguments[i];
|
|
1937
|
+
c && (r = a(r, o.call(this, c)));
|
|
1940
1938
|
}
|
|
1941
1939
|
return r;
|
|
1942
1940
|
}
|
|
@@ -1950,8 +1948,8 @@ var Pt = { exports: {} };
|
|
|
1950
1948
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
1951
1949
|
return r.toString();
|
|
1952
1950
|
var i = "";
|
|
1953
|
-
for (var
|
|
1954
|
-
n.call(r,
|
|
1951
|
+
for (var c in r)
|
|
1952
|
+
n.call(r, c) && r[c] && (i = a(i, this && this[c] || c));
|
|
1955
1953
|
return i;
|
|
1956
1954
|
}
|
|
1957
1955
|
function a(r, i) {
|
|
@@ -1959,11 +1957,11 @@ var Pt = { exports: {} };
|
|
|
1959
1957
|
}
|
|
1960
1958
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
1961
1959
|
})();
|
|
1962
|
-
})(
|
|
1963
|
-
var
|
|
1964
|
-
const
|
|
1960
|
+
})(Ot);
|
|
1961
|
+
var po = Ot.exports;
|
|
1962
|
+
const fo = /* @__PURE__ */ lo(po), vo = "_fadeIn_1fnes_1", ho = {
|
|
1965
1963
|
"purpur-modal-content": "_purpur-modal-content_1fnes_1",
|
|
1966
|
-
fadeIn:
|
|
1964
|
+
fadeIn: vo,
|
|
1967
1965
|
"purpur-modal-content__overlay": "_purpur-modal-content__overlay_1fnes_30",
|
|
1968
1966
|
"purpur-modal-content__close-button": "_purpur-modal-content__close-button_1fnes_37",
|
|
1969
1967
|
"purpur-modal-content__wrapper": "_purpur-modal-content__wrapper_1fnes_48",
|
|
@@ -1979,7 +1977,7 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
1979
1977
|
"purpur-modal-content--with-image": "_purpur-modal-content--with-image_1fnes_156",
|
|
1980
1978
|
"purpur-modal-content--overflow": "_purpur-modal-content--overflow_1fnes_156",
|
|
1981
1979
|
"purpur-modal-content--sticky-footer": "_purpur-modal-content--sticky-footer_1fnes_194"
|
|
1982
|
-
},
|
|
1980
|
+
}, Qe = (e) => e.showCloseButton === !0, D = fo.bind(ho), N = "purpur-modal-content", go = C(
|
|
1983
1981
|
({
|
|
1984
1982
|
["data-testid"]: e,
|
|
1985
1983
|
actions: n,
|
|
@@ -1988,15 +1986,15 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
1988
1986
|
description: a,
|
|
1989
1987
|
disableCloseOnClickOutside: r,
|
|
1990
1988
|
hideDescription: i,
|
|
1991
|
-
image:
|
|
1989
|
+
image: c,
|
|
1992
1990
|
primaryActionVariant: l = "primary",
|
|
1993
1991
|
stickyButtons: d = !0,
|
|
1994
1992
|
title: p,
|
|
1995
1993
|
...s
|
|
1996
1994
|
}, h) => {
|
|
1997
|
-
const { closeButtonAllyLabel: f, showCloseButton: E, ...
|
|
1995
|
+
const { closeButtonAllyLabel: f, showCloseButton: E, ...u } = s, [v, b] = K(!1), x = O(null), $ = O(null), y = O(null), S = O(null), U = D([
|
|
1998
1996
|
N,
|
|
1999
|
-
{ [`${N}--with-image`]: !!
|
|
1997
|
+
{ [`${N}--with-image`]: !!c },
|
|
2000
1998
|
{ [`${N}--overflow`]: v },
|
|
2001
1999
|
{ [`${N}--sticky-footer`]: d },
|
|
2002
2000
|
o
|
|
@@ -2005,22 +2003,22 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
2005
2003
|
}, M = Q(() => {
|
|
2006
2004
|
if (!x.current || !$.current || !y.current || !S.current)
|
|
2007
2005
|
return;
|
|
2008
|
-
const R = window.innerWidth < parseInt(
|
|
2006
|
+
const R = window.innerWidth < parseInt(so), Pt = window.getComputedStyle(
|
|
2009
2007
|
R ? x.current : y.current,
|
|
2010
2008
|
null
|
|
2011
|
-
),
|
|
2012
|
-
b(
|
|
2009
|
+
), Nt = parseFloat(Pt.getPropertyValue("height")), At = R ? $.current.offsetHeight : S.current.offsetHeight;
|
|
2010
|
+
b(Nt < At);
|
|
2013
2011
|
}, []), ne = (R) => {
|
|
2014
2012
|
r && !E && R.preventDefault();
|
|
2015
2013
|
};
|
|
2016
2014
|
return A(() => (window.addEventListener("resize", M), () => {
|
|
2017
2015
|
window.removeEventListener("resize", M);
|
|
2018
|
-
}), []), /* @__PURE__ */ V(
|
|
2019
|
-
/* @__PURE__ */ _(
|
|
2016
|
+
}), []), /* @__PURE__ */ V(gr, { children: [
|
|
2017
|
+
/* @__PURE__ */ _(mr, { className: D(`${N}__overlay`) }),
|
|
2020
2018
|
/* @__PURE__ */ V(
|
|
2021
|
-
|
|
2019
|
+
_r,
|
|
2022
2020
|
{
|
|
2023
|
-
...
|
|
2021
|
+
...u,
|
|
2024
2022
|
className: U,
|
|
2025
2023
|
"data-testid": e,
|
|
2026
2024
|
ref: h,
|
|
@@ -2030,8 +2028,8 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
2030
2028
|
onEscapeKeyDown: ne,
|
|
2031
2029
|
children: [
|
|
2032
2030
|
/* @__PURE__ */ V("div", { ref: x, className: D(`${N}__wrapper`), children: [
|
|
2033
|
-
|
|
2034
|
-
|
|
2031
|
+
Qe(s) && f && c && /* @__PURE__ */ _(
|
|
2032
|
+
Je,
|
|
2035
2033
|
{
|
|
2036
2034
|
allyLabel: f,
|
|
2037
2035
|
hasImage: !0,
|
|
@@ -2040,57 +2038,57 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
2040
2038
|
),
|
|
2041
2039
|
/* @__PURE__ */ V("div", { ref: $, className: D(`${N}__wrapper-inner`), children: [
|
|
2042
2040
|
/* @__PURE__ */ V("div", { className: D(`${N}__header`), children: [
|
|
2043
|
-
|
|
2044
|
-
|
|
2041
|
+
Qe(s) && f && !c && /* @__PURE__ */ _(
|
|
2042
|
+
Je,
|
|
2045
2043
|
{
|
|
2046
2044
|
allyLabel: f,
|
|
2047
2045
|
"data-testid": T("close-button")
|
|
2048
2046
|
}
|
|
2049
2047
|
),
|
|
2050
2048
|
/* @__PURE__ */ _(
|
|
2051
|
-
|
|
2049
|
+
br,
|
|
2052
2050
|
{
|
|
2053
2051
|
asChild: !0,
|
|
2054
2052
|
className: D(`${N}__title`),
|
|
2055
2053
|
"data-testid": T("title"),
|
|
2056
|
-
children: /* @__PURE__ */ _(
|
|
2054
|
+
children: /* @__PURE__ */ _(Lr, { tag: "h2", variant: "title-200", children: p })
|
|
2057
2055
|
}
|
|
2058
2056
|
)
|
|
2059
2057
|
] }),
|
|
2060
|
-
|
|
2058
|
+
c && /* @__PURE__ */ _(
|
|
2061
2059
|
"div",
|
|
2062
2060
|
{
|
|
2063
2061
|
className: D(`${N}__image-wrapper`),
|
|
2064
2062
|
"data-testid": T("image"),
|
|
2065
|
-
children:
|
|
2063
|
+
children: c
|
|
2066
2064
|
}
|
|
2067
2065
|
),
|
|
2068
2066
|
/* @__PURE__ */ _("div", { ref: y, className: D(`${N}__body`), children: /* @__PURE__ */ V("div", { ref: S, className: D(`${N}__body-inner`), children: [
|
|
2069
|
-
a && /* @__PURE__ */ _(
|
|
2070
|
-
|
|
2067
|
+
a && /* @__PURE__ */ _(Tt, { children: i ? /* @__PURE__ */ _(uo, { asChild: !0, children: /* @__PURE__ */ _(Xe, { "data-testid": T("description"), children: a }) }) : /* @__PURE__ */ _(
|
|
2068
|
+
Xe,
|
|
2071
2069
|
{
|
|
2072
2070
|
asChild: !0,
|
|
2073
2071
|
className: D(`${N}__description`),
|
|
2074
2072
|
"data-testid": T("description"),
|
|
2075
|
-
children: /* @__PURE__ */ _(
|
|
2073
|
+
children: /* @__PURE__ */ _(Qr, { variant: "paragraph-100", children: a })
|
|
2076
2074
|
}
|
|
2077
2075
|
) }),
|
|
2078
2076
|
/* @__PURE__ */ _("div", { children: t }),
|
|
2079
|
-
!d && /* @__PURE__ */ _(
|
|
2077
|
+
!d && /* @__PURE__ */ _(et, { actions: n, primaryActionVariant: l })
|
|
2080
2078
|
] }) })
|
|
2081
2079
|
] })
|
|
2082
2080
|
] }),
|
|
2083
|
-
d && /* @__PURE__ */ _(
|
|
2081
|
+
d && /* @__PURE__ */ _(et, { actions: n, primaryActionVariant: l })
|
|
2084
2082
|
]
|
|
2085
2083
|
}
|
|
2086
2084
|
)
|
|
2087
2085
|
] });
|
|
2088
2086
|
}
|
|
2089
|
-
),
|
|
2087
|
+
), Je = ({
|
|
2090
2088
|
allyLabel: e,
|
|
2091
2089
|
hasImage: n,
|
|
2092
2090
|
["data-testid"]: t
|
|
2093
|
-
}) => /* @__PURE__ */ _(
|
|
2091
|
+
}) => /* @__PURE__ */ _($r, { asChild: !0, children: /* @__PURE__ */ _(
|
|
2094
2092
|
Le,
|
|
2095
2093
|
{
|
|
2096
2094
|
variant: n ? "primary-negative" : "tertiary-purple",
|
|
@@ -2099,14 +2097,14 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
2099
2097
|
"aria-label": e,
|
|
2100
2098
|
className: D(`${N}__close-button`),
|
|
2101
2099
|
"data-testid": t,
|
|
2102
|
-
children: /* @__PURE__ */ _(
|
|
2100
|
+
children: /* @__PURE__ */ _(St, {})
|
|
2103
2101
|
}
|
|
2104
|
-
) }),
|
|
2102
|
+
) }), mo = 3, et = ({
|
|
2105
2103
|
actions: e,
|
|
2106
2104
|
primaryActionVariant: n
|
|
2107
2105
|
}) => {
|
|
2108
2106
|
const t = [n, "secondary", "text"];
|
|
2109
|
-
return e && e.length > 0 ? /* @__PURE__ */ _("div", { className: D(`${N}__actions`), "data-testid": "modal actions", children: e.slice(0,
|
|
2107
|
+
return e && e.length > 0 ? /* @__PURE__ */ _("div", { className: D(`${N}__actions`), "data-testid": "modal actions", children: e.slice(0, mo).map(({ label: o, onClick: a }, r) => /* @__PURE__ */ _(
|
|
2110
2108
|
Le,
|
|
2111
2109
|
{
|
|
2112
2110
|
"data-testid": "modal actions button",
|
|
@@ -2117,9 +2115,9 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
2117
2115
|
},
|
|
2118
2116
|
o
|
|
2119
2117
|
)) }) : null;
|
|
2120
|
-
},
|
|
2118
|
+
}, _o = C(
|
|
2121
2119
|
({ ["data-testid"]: e, children: n, className: t, ...o }, a) => /* @__PURE__ */ _(
|
|
2122
|
-
|
|
2120
|
+
hr,
|
|
2123
2121
|
{
|
|
2124
2122
|
asChild: !0,
|
|
2125
2123
|
ref: a,
|
|
@@ -2134,9 +2132,9 @@ const vo = /* @__PURE__ */ po(fo), ho = "_fadeIn_1fnes_1", go = {
|
|
|
2134
2132
|
children: n,
|
|
2135
2133
|
open: t,
|
|
2136
2134
|
onOpenChange: o
|
|
2137
|
-
}) => /* @__PURE__ */ _(
|
|
2138
|
-
Fe.Trigger =
|
|
2139
|
-
Fe.Content =
|
|
2135
|
+
}) => /* @__PURE__ */ _(vr, { open: t, onOpenChange: o, "data-testid": e, children: n });
|
|
2136
|
+
Fe.Trigger = _o;
|
|
2137
|
+
Fe.Content = go;
|
|
2140
2138
|
Fe.displayName = "Modal";
|
|
2141
2139
|
export {
|
|
2142
2140
|
Fe as Modal
|