@uninspired/cookie-banner 0.0.11 → 0.0.13
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/README.md +202 -0
- package/dist/react/index.cjs +101 -54
- package/dist/react/index.d.ts +11 -15
- package/dist/react/index.js +102 -55
- package/dist/react/style.css +19 -26
- package/dist/script/index.cjs +16 -16
- package/dist/script/index.d.ts +10 -14
- package/dist/script/index.js +1164 -1127
- package/dist/script/style.css +1 -1
- package/package.json +1 -1
package/dist/script/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { options as
|
|
2
|
-
var
|
|
3
|
-
function
|
|
1
|
+
import { options as $, Fragment as B, Component as ae, createRef as An, createContext as re, createElement as D, toChildArray as ne, cloneElement as co, render as Ae, hydrate as ao } from "preact";
|
|
2
|
+
var uo = 0;
|
|
3
|
+
function f(e, t, n, r, o, i) {
|
|
4
4
|
t || (t = {});
|
|
5
5
|
var c, s, a = t;
|
|
6
6
|
if ("ref" in a) for (s in a = {}, t) s == "ref" ? c = t[s] : a[s] = t[s];
|
|
7
|
-
var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
7
|
+
var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --uo, __i: -1, __u: 0, __source: o, __self: i };
|
|
8
8
|
if (typeof e == "function" && (c = e.defaultProps)) for (s in c) a[s] === void 0 && (a[s] = c[s]);
|
|
9
|
-
return
|
|
9
|
+
return $.vnode && $.vnode(u), u;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
var n =
|
|
11
|
+
var Y, A, ct, Wt, me = 0, Rn = [], I = $, Bt = I.__b, Ht = I.__r, Zt = I.diffed, Vt = I.__c, Kt = I.unmount, qt = I.__;
|
|
12
|
+
function le(e, t) {
|
|
13
|
+
I.__h && I.__h(A, e, me || t), me = 0;
|
|
14
|
+
var n = A.__H || (A.__H = { __: [], __h: [] });
|
|
15
15
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
17
|
+
function k(e) {
|
|
18
|
+
return me = 1, ke(In, e);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
var r =
|
|
22
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
20
|
+
function ke(e, t, n) {
|
|
21
|
+
var r = le(Y++, 2);
|
|
22
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : In(void 0, t), function(s) {
|
|
23
23
|
var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, s);
|
|
24
24
|
a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
25
|
-
}], r.__c =
|
|
25
|
+
}], r.__c = A, !A.__f)) {
|
|
26
26
|
var o = function(s, a, u) {
|
|
27
27
|
if (!r.__c.__H) return !0;
|
|
28
28
|
var l = r.__c.__H.__.filter(function(_) {
|
|
@@ -34,38 +34,38 @@ function Te(e, t, n) {
|
|
|
34
34
|
var d = r.__c.props !== s;
|
|
35
35
|
return l.some(function(_) {
|
|
36
36
|
if (_.__N) {
|
|
37
|
-
var
|
|
38
|
-
_.__ = _.__N, _.__N = void 0,
|
|
37
|
+
var v = _.__[0];
|
|
38
|
+
_.__ = _.__N, _.__N = void 0, v !== _.__[0] && (d = !0);
|
|
39
39
|
}
|
|
40
40
|
}), i && i.call(this, s, a, u) || d;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
var i =
|
|
44
|
-
|
|
42
|
+
A.__f = !0;
|
|
43
|
+
var i = A.shouldComponentUpdate, c = A.componentWillUpdate;
|
|
44
|
+
A.componentWillUpdate = function(s, a, u) {
|
|
45
45
|
if (this.__e) {
|
|
46
46
|
var l = i;
|
|
47
47
|
i = void 0, o(s, a, u), i = l;
|
|
48
48
|
}
|
|
49
49
|
c && c.call(this, s, a, u);
|
|
50
|
-
},
|
|
50
|
+
}, A.shouldComponentUpdate = o;
|
|
51
51
|
}
|
|
52
52
|
return r.__N || r.__;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
var n =
|
|
56
|
-
!
|
|
54
|
+
function N(e, t) {
|
|
55
|
+
var n = le(Y++, 3);
|
|
56
|
+
!I.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__H.__h.push(n));
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
var n =
|
|
60
|
-
!
|
|
58
|
+
function oe(e, t) {
|
|
59
|
+
var n = le(Y++, 4);
|
|
60
|
+
!I.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__h.push(n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function P(e) {
|
|
63
|
+
return me = 5, x(function() {
|
|
64
64
|
return { current: e };
|
|
65
65
|
}, []);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function St(e, t, n) {
|
|
68
|
+
me = 6, oe(function() {
|
|
69
69
|
if (typeof e == "function") {
|
|
70
70
|
var r = e(t());
|
|
71
71
|
return function() {
|
|
@@ -77,66 +77,66 @@ function wt(e, t, n) {
|
|
|
77
77
|
};
|
|
78
78
|
}, n == null ? n : n.concat(e));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
var n =
|
|
80
|
+
function x(e, t) {
|
|
81
|
+
var n = le(Y++, 7);
|
|
82
82
|
return Pt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function z(e, t) {
|
|
85
|
+
return me = 8, x(function() {
|
|
86
86
|
return e;
|
|
87
87
|
}, t);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
var t =
|
|
91
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
89
|
+
function J(e) {
|
|
90
|
+
var t = A.context[e.__c], n = le(Y++, 9);
|
|
91
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(A)), t.props.value) : e.__;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
|
|
93
|
+
function wt(e, t) {
|
|
94
|
+
I.useDebugValue && I.useDebugValue(t ? t(e) : e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
var t =
|
|
98
|
-
return t.__ = e,
|
|
96
|
+
function lo(e) {
|
|
97
|
+
var t = le(Y++, 10), n = k();
|
|
98
|
+
return t.__ = e, A.componentDidCatch || (A.componentDidCatch = function(r, o) {
|
|
99
99
|
t.__ && t.__(r, o), n[1](r);
|
|
100
100
|
}), [n[0], function() {
|
|
101
101
|
n[1](void 0);
|
|
102
102
|
}];
|
|
103
103
|
}
|
|
104
104
|
function Et() {
|
|
105
|
-
var e =
|
|
105
|
+
var e = le(Y++, 11);
|
|
106
106
|
if (!e.__) {
|
|
107
|
-
for (var t =
|
|
107
|
+
for (var t = A.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
108
108
|
var n = t.__m || (t.__m = [0, 0]);
|
|
109
109
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
110
110
|
}
|
|
111
111
|
return e.__;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
for (var e; e =
|
|
113
|
+
function fo() {
|
|
114
|
+
for (var e; e = Rn.shift(); ) {
|
|
115
115
|
var t = e.__H;
|
|
116
116
|
if (e.__P && t) try {
|
|
117
117
|
t.__h.some(Be), t.__h.some(mt), t.__h = [];
|
|
118
118
|
} catch (n) {
|
|
119
|
-
t.__h = [],
|
|
119
|
+
t.__h = [], I.__e(n, e.__v);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
},
|
|
123
|
+
I.__b = function(e) {
|
|
124
|
+
A = null, Bt && Bt(e);
|
|
125
|
+
}, I.__ = function(e, t) {
|
|
126
126
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), qt && qt(e, t);
|
|
127
|
-
},
|
|
128
|
-
Ht && Ht(e),
|
|
129
|
-
var t = (
|
|
130
|
-
t && (ct ===
|
|
127
|
+
}, I.__r = function(e) {
|
|
128
|
+
Ht && Ht(e), Y = 0;
|
|
129
|
+
var t = (A = e.__c).__H;
|
|
130
|
+
t && (ct === A ? (t.__h = [], A.__h = [], t.__.some(function(n) {
|
|
131
131
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
132
|
-
})) : (t.__h.some(Be), t.__h.some(mt), t.__h = [],
|
|
133
|
-
},
|
|
132
|
+
})) : (t.__h.some(Be), t.__h.some(mt), t.__h = [], Y = 0)), ct = A;
|
|
133
|
+
}, I.diffed = function(e) {
|
|
134
134
|
Zt && Zt(e);
|
|
135
135
|
var t = e.__c;
|
|
136
|
-
t && t.__H && (t.__H.__h.length && (
|
|
136
|
+
t && t.__H && (t.__H.__h.length && (Rn.push(t) !== 1 && Wt === I.requestAnimationFrame || ((Wt = I.requestAnimationFrame) || po)(fo)), t.__H.__.some(function(n) {
|
|
137
137
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
138
|
-
})), ct =
|
|
139
|
-
},
|
|
138
|
+
})), ct = A = null;
|
|
139
|
+
}, I.__c = function(e, t) {
|
|
140
140
|
t.some(function(n) {
|
|
141
141
|
try {
|
|
142
142
|
n.__h.some(Be), n.__h = n.__h.filter(function(r) {
|
|
@@ -145,10 +145,10 @@ A.__b = function(e) {
|
|
|
145
145
|
} catch (r) {
|
|
146
146
|
t.some(function(o) {
|
|
147
147
|
o.__h && (o.__h = []);
|
|
148
|
-
}), t = [],
|
|
148
|
+
}), t = [], I.__e(r, n.__v);
|
|
149
149
|
}
|
|
150
150
|
}), Vt && Vt(e, t);
|
|
151
|
-
},
|
|
151
|
+
}, I.unmount = function(e) {
|
|
152
152
|
Kt && Kt(e);
|
|
153
153
|
var t, n = e.__c;
|
|
154
154
|
n && n.__H && (n.__H.__.some(function(r) {
|
|
@@ -157,32 +157,32 @@ A.__b = function(e) {
|
|
|
157
157
|
} catch (o) {
|
|
158
158
|
t = o;
|
|
159
159
|
}
|
|
160
|
-
}), n.__H = void 0, t &&
|
|
160
|
+
}), n.__H = void 0, t && I.__e(t, n.__v));
|
|
161
161
|
};
|
|
162
162
|
var Gt = typeof requestAnimationFrame == "function";
|
|
163
|
-
function
|
|
163
|
+
function po(e) {
|
|
164
164
|
var t, n = function() {
|
|
165
165
|
clearTimeout(r), Gt && cancelAnimationFrame(t), setTimeout(e);
|
|
166
166
|
}, r = setTimeout(n, 35);
|
|
167
167
|
Gt && (t = requestAnimationFrame(n));
|
|
168
168
|
}
|
|
169
169
|
function Be(e) {
|
|
170
|
-
var t =
|
|
171
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
170
|
+
var t = A, n = e.__c;
|
|
171
|
+
typeof n == "function" && (e.__c = void 0, n()), A = t;
|
|
172
172
|
}
|
|
173
173
|
function mt(e) {
|
|
174
|
-
var t =
|
|
175
|
-
e.__c = e.__(),
|
|
174
|
+
var t = A;
|
|
175
|
+
e.__c = e.__(), A = t;
|
|
176
176
|
}
|
|
177
177
|
function Pt(e, t) {
|
|
178
178
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
179
179
|
return n !== e[r];
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function In(e, t) {
|
|
183
183
|
return typeof t == "function" ? t(e) : t;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function kn(e, t) {
|
|
186
186
|
for (var n in t) e[n] = t[n];
|
|
187
187
|
return e;
|
|
188
188
|
}
|
|
@@ -192,10 +192,10 @@ function gt(e, t) {
|
|
|
192
192
|
return !1;
|
|
193
193
|
}
|
|
194
194
|
function Nt(e, t) {
|
|
195
|
-
var n = t(), r =
|
|
196
|
-
return
|
|
195
|
+
var n = t(), r = k({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
|
|
196
|
+
return oe(function() {
|
|
197
197
|
o.__ = n, o.u = t, at(o) && i({ t: o });
|
|
198
|
-
}, [e, n, t]),
|
|
198
|
+
}, [e, n, t]), N(function() {
|
|
199
199
|
return at(o) && i({ t: o }), e(function() {
|
|
200
200
|
at(o) && i({ t: o });
|
|
201
201
|
});
|
|
@@ -218,72 +218,72 @@ function At(e) {
|
|
|
218
218
|
function Rt() {
|
|
219
219
|
return [!1, Ot];
|
|
220
220
|
}
|
|
221
|
-
var It =
|
|
221
|
+
var It = oe;
|
|
222
222
|
function Ke(e, t) {
|
|
223
223
|
this.props = e, this.context = t;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Tn(e, t) {
|
|
226
226
|
function n(o) {
|
|
227
227
|
var i = this.props.ref, c = i == o.ref;
|
|
228
228
|
return !c && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !c : gt(this.props, o);
|
|
229
229
|
}
|
|
230
230
|
function r(o) {
|
|
231
|
-
return this.shouldComponentUpdate = n,
|
|
231
|
+
return this.shouldComponentUpdate = n, D(e, o);
|
|
232
232
|
}
|
|
233
233
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
|
|
234
234
|
}
|
|
235
|
-
(Ke.prototype = new
|
|
235
|
+
(Ke.prototype = new ae()).isPureReactComponent = !0, Ke.prototype.shouldComponentUpdate = function(e, t) {
|
|
236
236
|
return gt(this.props, e) || gt(this.state, t);
|
|
237
237
|
};
|
|
238
|
-
var Yt =
|
|
239
|
-
|
|
238
|
+
var Yt = $.__b;
|
|
239
|
+
$.__b = function(e) {
|
|
240
240
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Yt && Yt(e);
|
|
241
241
|
};
|
|
242
|
-
var
|
|
243
|
-
function
|
|
242
|
+
var _o = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
243
|
+
function O(e) {
|
|
244
244
|
function t(n) {
|
|
245
|
-
var r =
|
|
245
|
+
var r = kn({}, n);
|
|
246
246
|
return delete r.ref, e(r, n.ref || null);
|
|
247
247
|
}
|
|
248
|
-
return t.$$typeof =
|
|
248
|
+
return t.$$typeof = _o, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
249
249
|
}
|
|
250
250
|
var Xt = function(e, t) {
|
|
251
|
-
return e == null ? null :
|
|
252
|
-
},
|
|
253
|
-
return e ?
|
|
251
|
+
return e == null ? null : ne(ne(e).map(t));
|
|
252
|
+
}, G = { map: Xt, forEach: Xt, count: function(e) {
|
|
253
|
+
return e ? ne(e).length : 0;
|
|
254
254
|
}, only: function(e) {
|
|
255
|
-
var t =
|
|
255
|
+
var t = ne(e);
|
|
256
256
|
if (t.length !== 1) throw "Children.only";
|
|
257
257
|
return t[0];
|
|
258
|
-
}, toArray:
|
|
259
|
-
|
|
258
|
+
}, toArray: ne }, vo = $.__e;
|
|
259
|
+
$.__e = function(e, t, n, r) {
|
|
260
260
|
if (e.then) {
|
|
261
261
|
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
vo(e, t, n, r);
|
|
264
264
|
};
|
|
265
|
-
var Jt =
|
|
266
|
-
function
|
|
265
|
+
var Jt = $.unmount;
|
|
266
|
+
function Dn(e, t, n) {
|
|
267
267
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
268
268
|
typeof r.__c == "function" && r.__c();
|
|
269
|
-
}), e.__c.__H = null), (e =
|
|
270
|
-
return
|
|
269
|
+
}), e.__c.__H = null), (e = kn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
270
|
+
return Dn(r, t, n);
|
|
271
271
|
})), e;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function xn(e, t, n) {
|
|
274
274
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
275
|
-
return
|
|
275
|
+
return xn(r, t, n);
|
|
276
276
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
277
277
|
}
|
|
278
278
|
function Pe() {
|
|
279
279
|
this.__u = 0, this.o = null, this.__b = null;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Mn(e) {
|
|
282
282
|
if (!e.__) return null;
|
|
283
283
|
var t = e.__.__c;
|
|
284
284
|
return t && t.__a && t.__a(e);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function zn(e) {
|
|
287
287
|
var t, n, r, o = null;
|
|
288
288
|
function i(c) {
|
|
289
289
|
if (t || (t = e()).then(function(s) {
|
|
@@ -292,20 +292,20 @@ function xn(e) {
|
|
|
292
292
|
n = s, r = !0;
|
|
293
293
|
}), n) throw n;
|
|
294
294
|
if (!r) throw t;
|
|
295
|
-
return o ?
|
|
295
|
+
return o ? D(o, c) : null;
|
|
296
296
|
}
|
|
297
297
|
return i.displayName = "Lazy", i.__f = !0, i;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function ve() {
|
|
300
300
|
this.i = null, this.l = null;
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
$.unmount = function(e) {
|
|
303
303
|
var t = e.__c;
|
|
304
304
|
t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Jt && Jt(e);
|
|
305
|
-
}, (Pe.prototype = new
|
|
305
|
+
}, (Pe.prototype = new ae()).__c = function(e, t) {
|
|
306
306
|
var n = t.__c, r = this;
|
|
307
307
|
r.o == null && (r.o = []), r.o.push(n);
|
|
308
|
-
var o =
|
|
308
|
+
var o = Mn(r.__v), i = !1, c = function() {
|
|
309
309
|
i || r.__z || (i = !0, n.__R = null, o ? o(a) : a());
|
|
310
310
|
};
|
|
311
311
|
n.__R = c;
|
|
@@ -315,7 +315,7 @@ z.unmount = function(e) {
|
|
|
315
315
|
if (!--r.__u) {
|
|
316
316
|
if (r.state.__a) {
|
|
317
317
|
var u = r.state.__a;
|
|
318
|
-
r.__v.__k[0] =
|
|
318
|
+
r.__v.__k[0] = xn(u, u.__c.__P, u.__c.__O);
|
|
319
319
|
}
|
|
320
320
|
var l;
|
|
321
321
|
for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.__P = s, l.forceUpdate();
|
|
@@ -328,12 +328,12 @@ z.unmount = function(e) {
|
|
|
328
328
|
if (this.__b) {
|
|
329
329
|
if (this.__v.__k) {
|
|
330
330
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
331
|
-
this.__v.__k[0] =
|
|
331
|
+
this.__v.__k[0] = Dn(this.__b, n, r.__O = r.__P);
|
|
332
332
|
}
|
|
333
333
|
this.__b = null;
|
|
334
334
|
}
|
|
335
|
-
var o = t.__a &&
|
|
336
|
-
return o && (o.__u &= -33), [
|
|
335
|
+
var o = t.__a && D(B, null, e.fallback);
|
|
336
|
+
return o && (o.__u &= -33), [D(B, null, t.__a ? null : e.children), o];
|
|
337
337
|
};
|
|
338
338
|
var Qt = function(e, t, n) {
|
|
339
339
|
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
@@ -342,12 +342,12 @@ var Qt = function(e, t, n) {
|
|
|
342
342
|
e.i = n = n[2];
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
-
function
|
|
345
|
+
function ho(e) {
|
|
346
346
|
return this.getChildContext = function() {
|
|
347
347
|
return e.context;
|
|
348
348
|
}, e.children;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function mo(e) {
|
|
351
351
|
var t = this, n = e.h;
|
|
352
352
|
if (t.componentWillUnmount = function() {
|
|
353
353
|
Ae(null, t.v), t.v = null, t.h = null;
|
|
@@ -361,187 +361,187 @@ function vo(e) {
|
|
|
361
361
|
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
362
362
|
} };
|
|
363
363
|
}
|
|
364
|
-
Ae(
|
|
364
|
+
Ae(D(ho, { context: t.context }, e.__v), t.v);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
var n =
|
|
366
|
+
function $n(e, t) {
|
|
367
|
+
var n = D(mo, { __v: e, h: t });
|
|
368
368
|
return n.containerInfo = t, n;
|
|
369
369
|
}
|
|
370
|
-
(
|
|
371
|
-
var t = this, n =
|
|
370
|
+
(ve.prototype = new ae()).__a = function(e) {
|
|
371
|
+
var t = this, n = Mn(t.__v), r = t.l.get(e);
|
|
372
372
|
return r[0]++, function(o) {
|
|
373
373
|
var i = function() {
|
|
374
374
|
t.props.revealOrder ? (r.push(o), Qt(t, e, r)) : o();
|
|
375
375
|
};
|
|
376
376
|
n ? n(i) : i();
|
|
377
377
|
};
|
|
378
|
-
},
|
|
378
|
+
}, ve.prototype.render = function(e) {
|
|
379
379
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
380
|
-
var t =
|
|
380
|
+
var t = ne(e.children);
|
|
381
381
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
382
382
|
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
383
383
|
return e.children;
|
|
384
|
-
},
|
|
384
|
+
}, ve.prototype.componentDidUpdate = ve.prototype.componentDidMount = function() {
|
|
385
385
|
var e = this;
|
|
386
386
|
this.l.forEach(function(t, n) {
|
|
387
387
|
Qt(e, n, t);
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
|
-
var
|
|
390
|
+
var Ln = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, go = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, yo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, bo = /[A-Z0-9]/g, Co = typeof document < "u", So = function(e) {
|
|
391
391
|
return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
392
392
|
};
|
|
393
|
-
function
|
|
393
|
+
function Fn(e, t, n) {
|
|
394
394
|
return t.__k == null && (t.textContent = ""), Ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
396
|
+
function Un(e, t, n) {
|
|
397
|
+
return ao(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
398
398
|
}
|
|
399
|
-
|
|
400
|
-
Object.defineProperty(
|
|
399
|
+
ae.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
400
|
+
Object.defineProperty(ae.prototype, e, { configurable: !0, get: function() {
|
|
401
401
|
return this["UNSAFE_" + e];
|
|
402
402
|
}, set: function(t) {
|
|
403
403
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
404
404
|
} });
|
|
405
405
|
});
|
|
406
|
-
var en =
|
|
407
|
-
function Co() {
|
|
408
|
-
}
|
|
406
|
+
var en = $.event;
|
|
409
407
|
function wo() {
|
|
408
|
+
}
|
|
409
|
+
function Eo() {
|
|
410
410
|
return this.cancelBubble;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Po() {
|
|
413
413
|
return this.defaultPrevented;
|
|
414
414
|
}
|
|
415
|
-
|
|
416
|
-
return en && (e = en(e)), e.persist =
|
|
415
|
+
$.event = function(e) {
|
|
416
|
+
return en && (e = en(e)), e.persist = wo, e.isPropagationStopped = Eo, e.isDefaultPrevented = Po, e.nativeEvent = e;
|
|
417
417
|
};
|
|
418
|
-
var
|
|
418
|
+
var kt, No = { enumerable: !1, configurable: !0, get: function() {
|
|
419
419
|
return this.class;
|
|
420
|
-
} }, tn =
|
|
421
|
-
|
|
420
|
+
} }, tn = $.vnode;
|
|
421
|
+
$.vnode = function(e) {
|
|
422
422
|
typeof e.type == "string" && (function(t) {
|
|
423
423
|
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
|
|
424
424
|
for (var c in n) {
|
|
425
425
|
var s = n[c];
|
|
426
|
-
if (!(c === "value" && "defaultValue" in n && s == null ||
|
|
426
|
+
if (!(c === "value" && "defaultValue" in n && s == null || Co && c === "children" && r === "noscript" || c === "class" || c === "className")) {
|
|
427
427
|
var a = c.toLowerCase();
|
|
428
|
-
c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
428
|
+
c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || So(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : yo.test(c) && (c = a) : a = c = "oninput" : i && go.test(c) ? c = c.replace(bo, "-$&").toLowerCase() : s === null && (s = void 0), a === "oninput" && o[c = a] && (c = "oninputCapture"), o[c] = s;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
r == "select" && o.multiple && Array.isArray(o.value) && (o.value =
|
|
431
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(u) {
|
|
432
432
|
u.props.selected = o.value.indexOf(u.props.value) != -1;
|
|
433
|
-
})), r == "select" && o.defaultValue != null && (o.value =
|
|
433
|
+
})), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(u) {
|
|
434
434
|
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
435
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
436
|
-
})(e), e.$$typeof =
|
|
435
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", No)) : n.className && (o.class = o.className = n.className), t.props = o;
|
|
436
|
+
})(e), e.$$typeof = Ln, tn && tn(e);
|
|
437
437
|
};
|
|
438
|
-
var nn =
|
|
439
|
-
|
|
440
|
-
nn && nn(e),
|
|
438
|
+
var nn = $.__r;
|
|
439
|
+
$.__r = function(e) {
|
|
440
|
+
nn && nn(e), kt = e.__c;
|
|
441
441
|
};
|
|
442
|
-
var rn =
|
|
443
|
-
|
|
442
|
+
var rn = $.diffed;
|
|
443
|
+
$.diffed = function(e) {
|
|
444
444
|
rn && rn(e);
|
|
445
445
|
var t = e.props, n = e.__e;
|
|
446
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value),
|
|
446
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), kt = null;
|
|
447
447
|
};
|
|
448
|
-
var
|
|
449
|
-
return
|
|
450
|
-
}, useCallback:
|
|
451
|
-
function
|
|
452
|
-
return
|
|
448
|
+
var jn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
449
|
+
return kt.__n[e.__c].props.value;
|
|
450
|
+
}, useCallback: z, useContext: J, useDebugValue: wt, useDeferredValue: At, useEffect: N, useId: Et, useImperativeHandle: St, useInsertionEffect: It, useLayoutEffect: oe, useMemo: x, useReducer: ke, useRef: P, useState: k, useSyncExternalStore: Nt, useTransition: Rt } } }, Oo = "18.3.1";
|
|
451
|
+
function Wn(e) {
|
|
452
|
+
return D.bind(null, e);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
return !!e && e.$$typeof ===
|
|
454
|
+
function X(e) {
|
|
455
|
+
return !!e && e.$$typeof === Ln;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
return
|
|
457
|
+
function Bn(e) {
|
|
458
|
+
return X(e) && e.type === B;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Hn(e) {
|
|
461
461
|
return !!e && typeof e.displayName == "string" && e.displayName.startsWith("Memo(");
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
return
|
|
463
|
+
function ye(e) {
|
|
464
|
+
return X(e) ? co.apply(null, arguments) : e;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function Zn(e) {
|
|
467
467
|
return !!e.__k && (Ae(null, e), !0);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Vn(e) {
|
|
470
470
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
471
471
|
}
|
|
472
|
-
var
|
|
472
|
+
var Kn = function(e, t) {
|
|
473
473
|
return e(t);
|
|
474
|
-
},
|
|
474
|
+
}, Tt = function(e, t) {
|
|
475
475
|
return e(t);
|
|
476
|
-
},
|
|
477
|
-
const
|
|
476
|
+
}, qn = B, Gn = X, T = { useState: k, useId: Et, useReducer: ke, useEffect: N, useLayoutEffect: oe, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: P, useImperativeHandle: St, useMemo: x, useCallback: z, useContext: J, useDebugValue: wt, version: "18.3.1", Children: G, render: Fn, hydrate: Un, unmountComponentAtNode: Zn, createPortal: $n, createElement: D, createContext: re, createFactory: Wn, cloneElement: ye, createRef: An, Fragment: B, isValidElement: X, isElement: Gn, isFragment: Bn, isMemo: Hn, findDOMNode: Vn, Component: ae, PureComponent: Ke, memo: Tn, forwardRef: O, flushSync: Tt, unstable_batchedUpdates: Kn, StrictMode: qn, Suspense: Pe, SuspenseList: ve, lazy: zn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: jn };
|
|
477
|
+
const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
478
478
|
__proto__: null,
|
|
479
|
-
Children:
|
|
480
|
-
Component:
|
|
481
|
-
Fragment:
|
|
479
|
+
Children: G,
|
|
480
|
+
Component: ae,
|
|
481
|
+
Fragment: B,
|
|
482
482
|
PureComponent: Ke,
|
|
483
|
-
StrictMode:
|
|
483
|
+
StrictMode: qn,
|
|
484
484
|
Suspense: Pe,
|
|
485
|
-
SuspenseList:
|
|
486
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
487
|
-
cloneElement:
|
|
488
|
-
createContext:
|
|
489
|
-
createElement:
|
|
490
|
-
createFactory:
|
|
491
|
-
createPortal:
|
|
492
|
-
createRef:
|
|
493
|
-
default:
|
|
494
|
-
findDOMNode:
|
|
495
|
-
flushSync:
|
|
496
|
-
forwardRef:
|
|
497
|
-
hydrate:
|
|
498
|
-
isElement:
|
|
499
|
-
isFragment:
|
|
500
|
-
isMemo:
|
|
501
|
-
isValidElement:
|
|
502
|
-
lazy:
|
|
503
|
-
memo:
|
|
504
|
-
render:
|
|
485
|
+
SuspenseList: ve,
|
|
486
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: jn,
|
|
487
|
+
cloneElement: ye,
|
|
488
|
+
createContext: re,
|
|
489
|
+
createElement: D,
|
|
490
|
+
createFactory: Wn,
|
|
491
|
+
createPortal: $n,
|
|
492
|
+
createRef: An,
|
|
493
|
+
default: T,
|
|
494
|
+
findDOMNode: Vn,
|
|
495
|
+
flushSync: Tt,
|
|
496
|
+
forwardRef: O,
|
|
497
|
+
hydrate: Un,
|
|
498
|
+
isElement: Gn,
|
|
499
|
+
isFragment: Bn,
|
|
500
|
+
isMemo: Hn,
|
|
501
|
+
isValidElement: X,
|
|
502
|
+
lazy: zn,
|
|
503
|
+
memo: Tn,
|
|
504
|
+
render: Fn,
|
|
505
505
|
startTransition: Ot,
|
|
506
|
-
unmountComponentAtNode:
|
|
507
|
-
unstable_batchedUpdates:
|
|
508
|
-
useCallback:
|
|
509
|
-
useContext:
|
|
510
|
-
useDebugValue:
|
|
506
|
+
unmountComponentAtNode: Zn,
|
|
507
|
+
unstable_batchedUpdates: Kn,
|
|
508
|
+
useCallback: z,
|
|
509
|
+
useContext: J,
|
|
510
|
+
useDebugValue: wt,
|
|
511
511
|
useDeferredValue: At,
|
|
512
|
-
useEffect:
|
|
513
|
-
useErrorBoundary:
|
|
512
|
+
useEffect: N,
|
|
513
|
+
useErrorBoundary: lo,
|
|
514
514
|
useId: Et,
|
|
515
|
-
useImperativeHandle:
|
|
515
|
+
useImperativeHandle: St,
|
|
516
516
|
useInsertionEffect: It,
|
|
517
|
-
useLayoutEffect:
|
|
518
|
-
useMemo:
|
|
519
|
-
useReducer:
|
|
520
|
-
useRef:
|
|
521
|
-
useState:
|
|
517
|
+
useLayoutEffect: oe,
|
|
518
|
+
useMemo: x,
|
|
519
|
+
useReducer: ke,
|
|
520
|
+
useRef: P,
|
|
521
|
+
useState: k,
|
|
522
522
|
useSyncExternalStore: Nt,
|
|
523
523
|
useTransition: Rt,
|
|
524
|
-
version:
|
|
524
|
+
version: Oo
|
|
525
525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
526
|
-
function
|
|
526
|
+
function Xn(...e) {
|
|
527
527
|
return e.filter(Boolean).join(" ");
|
|
528
528
|
}
|
|
529
529
|
function He(e) {
|
|
530
530
|
return Object.entries(e).filter(([, t]) => t).map(([t]) => t).join(" ");
|
|
531
531
|
}
|
|
532
|
-
const
|
|
533
|
-
root:
|
|
534
|
-
neutral:
|
|
535
|
-
brand:
|
|
536
|
-
ghost:
|
|
537
|
-
}, ut = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */
|
|
538
|
-
root:
|
|
539
|
-
muted:
|
|
540
|
-
body:
|
|
541
|
-
normal:
|
|
542
|
-
bold:
|
|
543
|
-
caption:
|
|
544
|
-
},
|
|
532
|
+
const Ao = "_root_hw69b_1", Ro = "_neutral_hw69b_17", Io = "_brand_hw69b_30", ko = "_ghost_hw69b_43", on = {
|
|
533
|
+
root: Ao,
|
|
534
|
+
neutral: Ro,
|
|
535
|
+
brand: Io,
|
|
536
|
+
ghost: ko
|
|
537
|
+
}, ut = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ f("button", { className: Xn(on.root, on[e]), ...t }), To = "_root_14l5h_1", Do = "_muted_14l5h_4", xo = "_body_14l5h_8", Mo = "_normal_14l5h_14", zo = "_bold_14l5h_18", $o = "_caption_14l5h_23", Me = {
|
|
538
|
+
root: To,
|
|
539
|
+
muted: Do,
|
|
540
|
+
body: xo,
|
|
541
|
+
normal: Mo,
|
|
542
|
+
bold: zo,
|
|
543
|
+
caption: $o
|
|
544
|
+
}, ce = ({
|
|
545
545
|
as: e = "span",
|
|
546
546
|
size: t = "body",
|
|
547
547
|
weight: n = "normal",
|
|
@@ -549,10 +549,10 @@ const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro
|
|
|
549
549
|
...o
|
|
550
550
|
}) => (
|
|
551
551
|
// @ts-ignore
|
|
552
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ f(
|
|
553
553
|
e ?? "span",
|
|
554
554
|
{
|
|
555
|
-
className:
|
|
555
|
+
className: Xn(
|
|
556
556
|
Me.root,
|
|
557
557
|
Me[t],
|
|
558
558
|
Me[n],
|
|
@@ -561,28 +561,28 @@ const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro
|
|
|
561
561
|
...o
|
|
562
562
|
}
|
|
563
563
|
)
|
|
564
|
-
),
|
|
565
|
-
root:
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
settings:
|
|
573
|
-
footer:
|
|
574
|
-
legal:
|
|
575
|
-
actions:
|
|
576
|
-
},
|
|
577
|
-
root:
|
|
578
|
-
header:
|
|
579
|
-
label:
|
|
580
|
-
actions:
|
|
581
|
-
chevron:
|
|
582
|
-
open:
|
|
583
|
-
description:
|
|
564
|
+
), Lo = "_root_12udu_53", Fo = "_noTarget_12udu_65", Uo = "_collapsible_12udu_74", jo = "_header_12udu_77", Wo = "_heading_12udu_84", Bo = "_chevron_12udu_90", Ho = "_open_12udu_95", Zo = "_settings_12udu_101", Vo = "_footer_12udu_115", Ko = "_legal_12udu_122", qo = "_actions_12udu_125", j = {
|
|
565
|
+
root: Lo,
|
|
566
|
+
noTarget: Fo,
|
|
567
|
+
collapsible: Uo,
|
|
568
|
+
header: jo,
|
|
569
|
+
heading: Wo,
|
|
570
|
+
chevron: Bo,
|
|
571
|
+
open: Ho,
|
|
572
|
+
settings: Zo,
|
|
573
|
+
footer: Vo,
|
|
574
|
+
legal: Ko,
|
|
575
|
+
actions: qo
|
|
576
|
+
}, Go = "_root_mqtha_19", Yo = "_header_mqtha_24", Xo = "_label_mqtha_33", Jo = "_actions_mqtha_39", Qo = "_chevron_mqtha_45", ei = "_open_mqtha_51", ti = "_description_mqtha_58", se = {
|
|
577
|
+
root: Go,
|
|
578
|
+
header: Yo,
|
|
579
|
+
label: Xo,
|
|
580
|
+
actions: Jo,
|
|
581
|
+
chevron: Qo,
|
|
582
|
+
open: ei,
|
|
583
|
+
description: ti
|
|
584
584
|
};
|
|
585
|
-
function
|
|
585
|
+
function M(e, t, n) {
|
|
586
586
|
function r(s, a) {
|
|
587
587
|
if (s._zod || Object.defineProperty(s, "_zod", {
|
|
588
588
|
value: {
|
|
@@ -621,14 +621,14 @@ class Ne extends Error {
|
|
|
621
621
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
const
|
|
625
|
-
function
|
|
626
|
-
return
|
|
624
|
+
const ni = {};
|
|
625
|
+
function be(e) {
|
|
626
|
+
return ni;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function ri(e, t) {
|
|
629
629
|
return typeof t == "bigint" ? t.toString() : t;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Jn(e) {
|
|
632
632
|
return {
|
|
633
633
|
get value() {
|
|
634
634
|
{
|
|
@@ -638,12 +638,12 @@ function Yn(e) {
|
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Qn(e) {
|
|
642
642
|
const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
643
643
|
return e.slice(t, n);
|
|
644
644
|
}
|
|
645
645
|
const sn = /* @__PURE__ */ Symbol("evaluating");
|
|
646
|
-
function
|
|
646
|
+
function V(e, t, n) {
|
|
647
647
|
let r;
|
|
648
648
|
Object.defineProperty(e, t, {
|
|
649
649
|
get() {
|
|
@@ -659,12 +659,12 @@ function Z(e, t, n) {
|
|
|
659
659
|
configurable: !0
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const er = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
663
663
|
};
|
|
664
664
|
function qe(e) {
|
|
665
665
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function oi(e) {
|
|
668
668
|
if (qe(e) === !1)
|
|
669
669
|
return !1;
|
|
670
670
|
const t = e.constructor;
|
|
@@ -676,17 +676,17 @@ function ni(e) {
|
|
|
676
676
|
function cn(e) {
|
|
677
677
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ii(e, t, n) {
|
|
680
680
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
681
681
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function Ce(e) {
|
|
684
684
|
return {};
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function si(e) {
|
|
687
687
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function we(e, t = 0) {
|
|
690
690
|
if (e.aborted === !0)
|
|
691
691
|
return !0;
|
|
692
692
|
for (let n = t; n < e.issues.length; n++)
|
|
@@ -703,7 +703,7 @@ function Ee(e, t) {
|
|
|
703
703
|
function ze(e) {
|
|
704
704
|
return typeof e == "string" ? e : e?.message;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Se(e, t, n) {
|
|
707
707
|
const r = { ...e, path: e.path ?? [] };
|
|
708
708
|
if (!e.message) {
|
|
709
709
|
const o = ze(e.inst?._zod.def?.error?.(e)) ?? ze(t?.error?.(e)) ?? ze(n.customError?.(e)) ?? ze(n.localeError?.(e)) ?? "Invalid input";
|
|
@@ -711,59 +711,59 @@ function Ce(e, t, n) {
|
|
|
711
711
|
}
|
|
712
712
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
713
713
|
}
|
|
714
|
-
const
|
|
714
|
+
const tr = (e, t) => {
|
|
715
715
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
716
716
|
value: e._zod,
|
|
717
717
|
enumerable: !1
|
|
718
718
|
}), Object.defineProperty(e, "issues", {
|
|
719
719
|
value: t,
|
|
720
720
|
enumerable: !1
|
|
721
|
-
}), e.message = JSON.stringify(t,
|
|
721
|
+
}), e.message = JSON.stringify(t, ri, 2), Object.defineProperty(e, "toString", {
|
|
722
722
|
value: () => e.message,
|
|
723
723
|
enumerable: !1
|
|
724
724
|
});
|
|
725
|
-
},
|
|
725
|
+
}, ci = M("$ZodError", tr), Qe = M("$ZodError", tr, { Parent: Error }), ai = (e) => (t, n, r, o) => {
|
|
726
726
|
const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, i);
|
|
727
727
|
if (c instanceof Promise)
|
|
728
728
|
throw new Ne();
|
|
729
729
|
if (c.issues.length) {
|
|
730
|
-
const s = new (o?.Err ?? e)(c.issues.map((a) =>
|
|
731
|
-
throw
|
|
730
|
+
const s = new (o?.Err ?? e)(c.issues.map((a) => Se(a, i, be())));
|
|
731
|
+
throw er(s, o?.callee), s;
|
|
732
732
|
}
|
|
733
733
|
return c.value;
|
|
734
|
-
},
|
|
734
|
+
}, ui = /* @__PURE__ */ ai(Qe), li = (e) => async (t, n, r, o) => {
|
|
735
735
|
const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
736
736
|
let c = t._zod.run({ value: n, issues: [] }, i);
|
|
737
737
|
if (c instanceof Promise && (c = await c), c.issues.length) {
|
|
738
|
-
const s = new (o?.Err ?? e)(c.issues.map((a) =>
|
|
739
|
-
throw
|
|
738
|
+
const s = new (o?.Err ?? e)(c.issues.map((a) => Se(a, i, be())));
|
|
739
|
+
throw er(s, o?.callee), s;
|
|
740
740
|
}
|
|
741
741
|
return c.value;
|
|
742
|
-
},
|
|
742
|
+
}, di = /* @__PURE__ */ li(Qe), fi = (e) => (t, n, r) => {
|
|
743
743
|
const o = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, o);
|
|
744
744
|
if (i instanceof Promise)
|
|
745
745
|
throw new Ne();
|
|
746
746
|
return i.issues.length ? {
|
|
747
747
|
success: !1,
|
|
748
|
-
error: new (e ??
|
|
748
|
+
error: new (e ?? ci)(i.issues.map((c) => Se(c, o, be())))
|
|
749
749
|
} : { success: !0, data: i.value };
|
|
750
|
-
},
|
|
750
|
+
}, nr = /* @__PURE__ */ fi(Qe), pi = (e) => async (t, n, r) => {
|
|
751
751
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
752
752
|
let i = t._zod.run({ value: n, issues: [] }, o);
|
|
753
753
|
return i instanceof Promise && (i = await i), i.issues.length ? {
|
|
754
754
|
success: !1,
|
|
755
|
-
error: new e(i.issues.map((c) =>
|
|
755
|
+
error: new e(i.issues.map((c) => Se(c, o, be())))
|
|
756
756
|
} : { success: !0, data: i.value };
|
|
757
|
-
},
|
|
757
|
+
}, rr = /* @__PURE__ */ pi(Qe), _i = (e) => {
|
|
758
758
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
759
759
|
return new RegExp(`^${t}$`);
|
|
760
|
-
},
|
|
760
|
+
}, vi = /^-?\d+(?:\.\d+)?$/, hi = /^(?:true|false)$/i, mi = {
|
|
761
761
|
major: 4,
|
|
762
762
|
minor: 3,
|
|
763
763
|
patch: 6
|
|
764
|
-
},
|
|
764
|
+
}, ie = /* @__PURE__ */ M("$ZodType", (e, t) => {
|
|
765
765
|
var n;
|
|
766
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
766
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = mi;
|
|
767
767
|
const r = [...e._zod.def.checks ?? []];
|
|
768
768
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
769
769
|
for (const o of r)
|
|
@@ -775,29 +775,29 @@ const Qn = (e, t) => {
|
|
|
775
775
|
});
|
|
776
776
|
else {
|
|
777
777
|
const o = (c, s, a) => {
|
|
778
|
-
let u =
|
|
778
|
+
let u = we(c), l;
|
|
779
779
|
for (const d of s) {
|
|
780
780
|
if (d._zod.def.when) {
|
|
781
781
|
if (!d._zod.def.when(c))
|
|
782
782
|
continue;
|
|
783
783
|
} else if (u)
|
|
784
784
|
continue;
|
|
785
|
-
const _ = c.issues.length,
|
|
786
|
-
if (
|
|
785
|
+
const _ = c.issues.length, v = d._zod.check(c);
|
|
786
|
+
if (v instanceof Promise && a?.async === !1)
|
|
787
787
|
throw new Ne();
|
|
788
|
-
if (l ||
|
|
788
|
+
if (l || v instanceof Promise)
|
|
789
789
|
l = (l ?? Promise.resolve()).then(async () => {
|
|
790
|
-
await
|
|
790
|
+
await v, c.issues.length !== _ && (u || (u = we(c, _)));
|
|
791
791
|
});
|
|
792
792
|
else {
|
|
793
793
|
if (c.issues.length === _)
|
|
794
794
|
continue;
|
|
795
|
-
u || (u =
|
|
795
|
+
u || (u = we(c, _));
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return l ? l.then(() => c) : c;
|
|
799
799
|
}, i = (c, s, a) => {
|
|
800
|
-
if (
|
|
800
|
+
if (we(c))
|
|
801
801
|
return c.aborted = !0, c;
|
|
802
802
|
const u = o(s, r, a);
|
|
803
803
|
if (u instanceof Promise) {
|
|
@@ -823,20 +823,20 @@ const Qn = (e, t) => {
|
|
|
823
823
|
return o(a, r, s);
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
V(e, "~standard", () => ({
|
|
827
827
|
validate: (o) => {
|
|
828
828
|
try {
|
|
829
|
-
const i =
|
|
829
|
+
const i = nr(e, o);
|
|
830
830
|
return i.success ? { value: i.data } : { issues: i.error?.issues };
|
|
831
831
|
} catch {
|
|
832
|
-
return
|
|
832
|
+
return rr(e, o).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
|
|
833
833
|
}
|
|
834
834
|
},
|
|
835
835
|
vendor: "zod",
|
|
836
836
|
version: 1
|
|
837
837
|
}));
|
|
838
|
-
}),
|
|
839
|
-
|
|
838
|
+
}), gi = /* @__PURE__ */ M("$ZodString", (e, t) => {
|
|
839
|
+
ie.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? _i(e._zod.bag), e._zod.parse = (n, r) => {
|
|
840
840
|
if (t.coerce)
|
|
841
841
|
try {
|
|
842
842
|
n.value = String(n.value);
|
|
@@ -849,8 +849,8 @@ const Qn = (e, t) => {
|
|
|
849
849
|
inst: e
|
|
850
850
|
}), n;
|
|
851
851
|
};
|
|
852
|
-
}),
|
|
853
|
-
|
|
852
|
+
}), yi = /* @__PURE__ */ M("$ZodBoolean", (e, t) => {
|
|
853
|
+
ie.init(e, t), e._zod.pattern = hi, e._zod.parse = (n, r) => {
|
|
854
854
|
if (t.coerce)
|
|
855
855
|
try {
|
|
856
856
|
n.value = !!n.value;
|
|
@@ -873,12 +873,12 @@ function Ge(e, t, n, r, o) {
|
|
|
873
873
|
}
|
|
874
874
|
e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function bi(e) {
|
|
877
877
|
const t = Object.keys(e.shape);
|
|
878
878
|
for (const r of t)
|
|
879
879
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
880
880
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
881
|
-
const n =
|
|
881
|
+
const n = si(e.shape);
|
|
882
882
|
return {
|
|
883
883
|
...e,
|
|
884
884
|
keys: t,
|
|
@@ -887,7 +887,7 @@ function gi(e) {
|
|
|
887
887
|
optionalKeys: new Set(n)
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Ci(e, t, n, r, o, i) {
|
|
891
891
|
const c = [], s = o.keySet, a = o.catchall._zod, u = a.def.type, l = a.optout === "optional";
|
|
892
892
|
for (const d in t) {
|
|
893
893
|
if (s.has(d))
|
|
@@ -897,7 +897,7 @@ function yi(e, t, n, r, o, i) {
|
|
|
897
897
|
continue;
|
|
898
898
|
}
|
|
899
899
|
const _ = a.run({ value: t[d], issues: [] }, r);
|
|
900
|
-
_ instanceof Promise ? e.push(_.then((
|
|
900
|
+
_ instanceof Promise ? e.push(_.then((v) => Ge(v, n, d, t, l))) : Ge(_, n, d, t, l);
|
|
901
901
|
}
|
|
902
902
|
return c.length && n.issues.push({
|
|
903
903
|
code: "unrecognized_keys",
|
|
@@ -906,8 +906,8 @@ function yi(e, t, n, r, o, i) {
|
|
|
906
906
|
inst: i
|
|
907
907
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
908
908
|
}
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
909
|
+
const Si = /* @__PURE__ */ M("$ZodObject", (e, t) => {
|
|
910
|
+
if (ie.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
911
911
|
const s = t.shape;
|
|
912
912
|
Object.defineProperty(t, "shape", {
|
|
913
913
|
get: () => {
|
|
@@ -918,8 +918,8 @@ const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
|
|
|
918
918
|
}
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
const r =
|
|
922
|
-
|
|
921
|
+
const r = Jn(() => bi(t));
|
|
922
|
+
V(e._zod, "propValues", () => {
|
|
923
923
|
const s = t.shape, a = {};
|
|
924
924
|
for (const u in s) {
|
|
925
925
|
const l = s[u]._zod;
|
|
@@ -946,32 +946,32 @@ const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
|
|
|
946
946
|
s.value = {};
|
|
947
947
|
const l = [], d = c.shape;
|
|
948
948
|
for (const _ of c.keys) {
|
|
949
|
-
const
|
|
950
|
-
|
|
949
|
+
const v = d[_], S = v._zod.optout === "optional", p = v._zod.run({ value: u[_], issues: [] }, a);
|
|
950
|
+
p instanceof Promise ? l.push(p.then((h) => Ge(h, s, _, u, S))) : Ge(p, s, _, u, S);
|
|
951
951
|
}
|
|
952
|
-
return i ?
|
|
952
|
+
return i ? Ci(l, u, s, a, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
|
|
953
953
|
};
|
|
954
954
|
});
|
|
955
955
|
function an(e, t, n, r) {
|
|
956
956
|
for (const i of e)
|
|
957
957
|
if (i.issues.length === 0)
|
|
958
958
|
return t.value = i.value, t;
|
|
959
|
-
const o = e.filter((i) => !
|
|
959
|
+
const o = e.filter((i) => !we(i));
|
|
960
960
|
return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
|
|
961
961
|
code: "invalid_union",
|
|
962
962
|
input: t.value,
|
|
963
963
|
inst: n,
|
|
964
|
-
errors: e.map((i) => i.issues.map((c) =>
|
|
964
|
+
errors: e.map((i) => i.issues.map((c) => Se(c, r, be())))
|
|
965
965
|
}), t);
|
|
966
966
|
}
|
|
967
|
-
const
|
|
968
|
-
|
|
967
|
+
const wi = /* @__PURE__ */ M("$ZodUnion", (e, t) => {
|
|
968
|
+
ie.init(e, t), V(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), V(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), V(e._zod, "values", () => {
|
|
969
969
|
if (t.options.every((o) => o._zod.values))
|
|
970
970
|
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
971
|
-
}),
|
|
971
|
+
}), V(e._zod, "pattern", () => {
|
|
972
972
|
if (t.options.every((o) => o._zod.pattern)) {
|
|
973
973
|
const o = t.options.map((i) => i._zod.pattern);
|
|
974
|
-
return new RegExp(`^(${o.map((i) =>
|
|
974
|
+
return new RegExp(`^(${o.map((i) => Qn(i.source)).join("|")})$`);
|
|
975
975
|
}
|
|
976
976
|
});
|
|
977
977
|
const n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
@@ -995,10 +995,10 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
995
995
|
}
|
|
996
996
|
return c ? Promise.all(s).then((a) => an(a, o, e, i)) : an(s, o, e, i);
|
|
997
997
|
};
|
|
998
|
-
}),
|
|
999
|
-
t.inclusive = !1,
|
|
998
|
+
}), Ei = /* @__PURE__ */ M("$ZodDiscriminatedUnion", (e, t) => {
|
|
999
|
+
t.inclusive = !1, wi.init(e, t);
|
|
1000
1000
|
const n = e._zod.parse;
|
|
1001
|
-
|
|
1001
|
+
V(e._zod, "propValues", () => {
|
|
1002
1002
|
const o = {};
|
|
1003
1003
|
for (const i of t.options) {
|
|
1004
1004
|
const c = i._zod.propValues;
|
|
@@ -1012,7 +1012,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
return o;
|
|
1014
1014
|
});
|
|
1015
|
-
const r =
|
|
1015
|
+
const r = Jn(() => {
|
|
1016
1016
|
const o = t.options, i = /* @__PURE__ */ new Map();
|
|
1017
1017
|
for (const c of o) {
|
|
1018
1018
|
const s = c._zod.propValues?.[t.discriminator];
|
|
@@ -1046,10 +1046,10 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
1046
1046
|
inst: e
|
|
1047
1047
|
}), o);
|
|
1048
1048
|
};
|
|
1049
|
-
}),
|
|
1050
|
-
|
|
1049
|
+
}), Pi = /* @__PURE__ */ M("$ZodRecord", (e, t) => {
|
|
1050
|
+
ie.init(e, t), e._zod.parse = (n, r) => {
|
|
1051
1051
|
const o = n.value;
|
|
1052
|
-
if (!
|
|
1052
|
+
if (!oi(o))
|
|
1053
1053
|
return n.issues.push({
|
|
1054
1054
|
expected: "record",
|
|
1055
1055
|
code: "invalid_type",
|
|
@@ -1085,7 +1085,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
1085
1085
|
let a = t.keyType._zod.run({ value: s, issues: [] }, r);
|
|
1086
1086
|
if (a instanceof Promise)
|
|
1087
1087
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1088
|
-
if (typeof s == "string" &&
|
|
1088
|
+
if (typeof s == "string" && vi.test(s) && a.issues.length) {
|
|
1089
1089
|
const d = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
|
|
1090
1090
|
if (d instanceof Promise)
|
|
1091
1091
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -1095,7 +1095,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
1095
1095
|
t.mode === "loose" ? n.value[s] = o[s] : n.issues.push({
|
|
1096
1096
|
code: "invalid_key",
|
|
1097
1097
|
origin: "record",
|
|
1098
|
-
issues: a.issues.map((d) =>
|
|
1098
|
+
issues: a.issues.map((d) => Se(d, r, be())),
|
|
1099
1099
|
input: s,
|
|
1100
1100
|
path: [s],
|
|
1101
1101
|
inst: e
|
|
@@ -1110,8 +1110,8 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
return i.length ? Promise.all(i).then(() => n) : n;
|
|
1112
1112
|
};
|
|
1113
|
-
}),
|
|
1114
|
-
if (
|
|
1113
|
+
}), Ni = /* @__PURE__ */ M("$ZodLiteral", (e, t) => {
|
|
1114
|
+
if (ie.init(e, t), t.values.length === 0)
|
|
1115
1115
|
throw new Error("Cannot create literal schema with no valid values");
|
|
1116
1116
|
const n = new Set(t.values);
|
|
1117
1117
|
e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? cn(r) : r ? cn(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
|
|
@@ -1127,10 +1127,10 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
|
1127
1127
|
function un(e, t) {
|
|
1128
1128
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1130
|
+
const Oi = /* @__PURE__ */ M("$ZodOptional", (e, t) => {
|
|
1131
|
+
ie.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", V(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), V(e._zod, "pattern", () => {
|
|
1132
1132
|
const n = t.innerType._zod.pattern;
|
|
1133
|
-
return n ? new RegExp(`^(${
|
|
1133
|
+
return n ? new RegExp(`^(${Qn(n.source)})?$`) : void 0;
|
|
1134
1134
|
}), e._zod.parse = (n, r) => {
|
|
1135
1135
|
if (t.innerType._zod.optin === "optional") {
|
|
1136
1136
|
const o = t.innerType._zod.run(n, r);
|
|
@@ -1140,163 +1140,165 @@ const Pi = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
|
|
|
1140
1140
|
};
|
|
1141
1141
|
});
|
|
1142
1142
|
// @__NO_SIDE_EFFECTS__
|
|
1143
|
-
function
|
|
1143
|
+
function Ai(e, t) {
|
|
1144
1144
|
return new e({
|
|
1145
1145
|
type: "string",
|
|
1146
|
-
...
|
|
1146
|
+
...Ce()
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
// @__NO_SIDE_EFFECTS__
|
|
1150
|
-
function
|
|
1150
|
+
function Ri(e, t) {
|
|
1151
1151
|
return new e({
|
|
1152
1152
|
type: "boolean",
|
|
1153
|
-
...
|
|
1153
|
+
...Ce()
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const de = /* @__PURE__ */ M("ZodMiniType", (e, t) => {
|
|
1157
1157
|
if (!e._zod)
|
|
1158
1158
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
1159
|
-
|
|
1159
|
+
ie.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => ui(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => nr(e, n, r), e.parseAsync = async (n, r) => di(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => rr(e, n, r), e.check = (...n) => e.clone({
|
|
1160
1160
|
...t,
|
|
1161
1161
|
checks: [
|
|
1162
1162
|
...t.checks ?? [],
|
|
1163
1163
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
1164
1164
|
]
|
|
1165
|
-
}, { parent: !0 }), e.with = e.check, e.clone = (n, r) =>
|
|
1166
|
-
}),
|
|
1167
|
-
|
|
1165
|
+
}, { parent: !0 }), e.with = e.check, e.clone = (n, r) => ii(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
|
|
1166
|
+
}), Ii = /* @__PURE__ */ M("ZodMiniString", (e, t) => {
|
|
1167
|
+
gi.init(e, t), de.init(e, t);
|
|
1168
1168
|
});
|
|
1169
1169
|
// @__NO_SIDE_EFFECTS__
|
|
1170
|
-
function
|
|
1171
|
-
return /* @__PURE__ */
|
|
1170
|
+
function q(e) {
|
|
1171
|
+
return /* @__PURE__ */ Ai(Ii);
|
|
1172
1172
|
}
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1173
|
+
const ki = /* @__PURE__ */ M("ZodMiniBoolean", (e, t) => {
|
|
1174
|
+
yi.init(e, t), de.init(e, t);
|
|
1175
1175
|
});
|
|
1176
1176
|
// @__NO_SIDE_EFFECTS__
|
|
1177
1177
|
function Re(e) {
|
|
1178
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ Ri(ki);
|
|
1179
1179
|
}
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1180
|
+
const Ti = /* @__PURE__ */ M("ZodMiniObject", (e, t) => {
|
|
1181
|
+
Si.init(e, t), de.init(e, t), V(e, "shape", () => t.shape);
|
|
1182
1182
|
});
|
|
1183
1183
|
// @__NO_SIDE_EFFECTS__
|
|
1184
|
-
function
|
|
1184
|
+
function or(e, t) {
|
|
1185
1185
|
const n = {
|
|
1186
1186
|
type: "object",
|
|
1187
1187
|
shape: e ?? {},
|
|
1188
|
-
...
|
|
1188
|
+
...Ce()
|
|
1189
1189
|
};
|
|
1190
|
-
return new
|
|
1190
|
+
return new Ti(n);
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1192
|
+
const Di = /* @__PURE__ */ M("ZodMiniDiscriminatedUnion", (e, t) => {
|
|
1193
|
+
Ei.init(e, t), de.init(e, t);
|
|
1194
1194
|
});
|
|
1195
1195
|
// @__NO_SIDE_EFFECTS__
|
|
1196
|
-
function
|
|
1197
|
-
return new
|
|
1196
|
+
function xi(e, t, n) {
|
|
1197
|
+
return new Di({
|
|
1198
1198
|
type: "union",
|
|
1199
1199
|
options: t,
|
|
1200
1200
|
discriminator: e,
|
|
1201
|
-
...
|
|
1201
|
+
...Ce()
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const Mi = /* @__PURE__ */ M("ZodMiniRecord", (e, t) => {
|
|
1205
|
+
Pi.init(e, t), de.init(e, t);
|
|
1206
1206
|
});
|
|
1207
1207
|
// @__NO_SIDE_EFFECTS__
|
|
1208
|
-
function
|
|
1209
|
-
return new
|
|
1208
|
+
function zi(e, t, n) {
|
|
1209
|
+
return new Mi({
|
|
1210
1210
|
type: "record",
|
|
1211
1211
|
keyType: e,
|
|
1212
1212
|
valueType: t,
|
|
1213
|
-
...
|
|
1213
|
+
...Ce()
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1216
|
+
const $i = /* @__PURE__ */ M("ZodMiniLiteral", (e, t) => {
|
|
1217
|
+
Ni.init(e, t), de.init(e, t);
|
|
1218
1218
|
});
|
|
1219
1219
|
// @__NO_SIDE_EFFECTS__
|
|
1220
|
-
function
|
|
1221
|
-
return new
|
|
1220
|
+
function ir(e, t) {
|
|
1221
|
+
return new $i({
|
|
1222
1222
|
type: "literal",
|
|
1223
1223
|
values: Array.isArray(e) ? e : [e],
|
|
1224
|
-
...
|
|
1224
|
+
...Ce()
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1227
|
+
const Li = /* @__PURE__ */ M("ZodMiniOptional", (e, t) => {
|
|
1228
|
+
Oi.init(e, t), de.init(e, t);
|
|
1229
1229
|
});
|
|
1230
1230
|
// @__NO_SIDE_EFFECTS__
|
|
1231
|
-
function
|
|
1232
|
-
return new
|
|
1231
|
+
function te(e) {
|
|
1232
|
+
return new Li({
|
|
1233
1233
|
type: "optional",
|
|
1234
1234
|
innerType: e
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1237
|
+
const Fi = /* @__PURE__ */ or({
|
|
1238
|
+
id: /* @__PURE__ */ q(),
|
|
1239
|
+
variant: /* @__PURE__ */ ir("remote"),
|
|
1240
|
+
type: /* @__PURE__ */ te(/* @__PURE__ */ q()),
|
|
1241
|
+
src: /* @__PURE__ */ q(),
|
|
1242
|
+
async: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
|
|
1243
|
+
defer: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
|
|
1244
|
+
crossorigin: /* @__PURE__ */ te(/* @__PURE__ */ q()),
|
|
1245
|
+
integrity: /* @__PURE__ */ te(/* @__PURE__ */ q())
|
|
1246
|
+
}), Ui = /* @__PURE__ */ or({
|
|
1247
|
+
id: /* @__PURE__ */ q(),
|
|
1248
|
+
variant: /* @__PURE__ */ ir("inline"),
|
|
1249
|
+
type: /* @__PURE__ */ te(/* @__PURE__ */ q()),
|
|
1250
|
+
async: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
|
|
1251
|
+
defer: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
|
|
1252
|
+
content: /* @__PURE__ */ q()
|
|
1253
|
+
}), ji = /* @__PURE__ */ xi("variant", [
|
|
1254
|
+
Fi,
|
|
1255
|
+
Ui
|
|
1254
1256
|
]);
|
|
1255
|
-
function
|
|
1256
|
-
const n =
|
|
1257
|
-
const { children: c, ...s } = i, a =
|
|
1258
|
-
return /* @__PURE__ */
|
|
1257
|
+
function Wi(e, t) {
|
|
1258
|
+
const n = re(t), r = (i) => {
|
|
1259
|
+
const { children: c, ...s } = i, a = x(() => s, Object.values(s));
|
|
1260
|
+
return /* @__PURE__ */ f(n.Provider, { value: a, children: c });
|
|
1259
1261
|
};
|
|
1260
1262
|
r.displayName = e + "Provider";
|
|
1261
1263
|
function o(i) {
|
|
1262
|
-
const c =
|
|
1264
|
+
const c = J(n);
|
|
1263
1265
|
if (c) return c;
|
|
1264
1266
|
if (t !== void 0) return t;
|
|
1265
1267
|
throw new Error(`\`${i}\` must be used within \`${e}\``);
|
|
1266
1268
|
}
|
|
1267
1269
|
return [r, o];
|
|
1268
1270
|
}
|
|
1269
|
-
function
|
|
1271
|
+
function Te(e, t = []) {
|
|
1270
1272
|
let n = [];
|
|
1271
1273
|
function r(i, c) {
|
|
1272
|
-
const s =
|
|
1274
|
+
const s = re(c), a = n.length;
|
|
1273
1275
|
n = [...n, c];
|
|
1274
1276
|
const u = (d) => {
|
|
1275
|
-
const { scope: _, children:
|
|
1276
|
-
return /* @__PURE__ */ p
|
|
1277
|
+
const { scope: _, children: v, ...S } = d, p = _?.[e]?.[a] || s, h = x(() => S, Object.values(S));
|
|
1278
|
+
return /* @__PURE__ */ f(p.Provider, { value: h, children: v });
|
|
1277
1279
|
};
|
|
1278
1280
|
u.displayName = i + "Provider";
|
|
1279
1281
|
function l(d, _) {
|
|
1280
|
-
const
|
|
1281
|
-
if (
|
|
1282
|
+
const v = _?.[e]?.[a] || s, S = J(v);
|
|
1283
|
+
if (S) return S;
|
|
1282
1284
|
if (c !== void 0) return c;
|
|
1283
1285
|
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
1284
1286
|
}
|
|
1285
1287
|
return [u, l];
|
|
1286
1288
|
}
|
|
1287
1289
|
const o = () => {
|
|
1288
|
-
const i = n.map((c) =>
|
|
1290
|
+
const i = n.map((c) => re(c));
|
|
1289
1291
|
return function(s) {
|
|
1290
1292
|
const a = s?.[e] || i;
|
|
1291
|
-
return
|
|
1293
|
+
return x(
|
|
1292
1294
|
() => ({ [`__scope${e}`]: { ...s, [e]: a } }),
|
|
1293
1295
|
[s, a]
|
|
1294
1296
|
);
|
|
1295
1297
|
};
|
|
1296
1298
|
};
|
|
1297
|
-
return o.scopeName = e, [r,
|
|
1299
|
+
return o.scopeName = e, [r, Bi(o, ...t)];
|
|
1298
1300
|
}
|
|
1299
|
-
function
|
|
1301
|
+
function Bi(...e) {
|
|
1300
1302
|
const t = e[0];
|
|
1301
1303
|
if (e.length === 1) return t;
|
|
1302
1304
|
const n = () => {
|
|
@@ -1309,7 +1311,7 @@ function ji(...e) {
|
|
|
1309
1311
|
const d = a(i)[`__scope${u}`];
|
|
1310
1312
|
return { ...s, ...d };
|
|
1311
1313
|
}, {});
|
|
1312
|
-
return
|
|
1314
|
+
return x(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
|
|
1313
1315
|
};
|
|
1314
1316
|
};
|
|
1315
1317
|
return n.scopeName = t.scopeName, n;
|
|
@@ -1319,7 +1321,7 @@ function ln(e, t) {
|
|
|
1319
1321
|
return e(t);
|
|
1320
1322
|
e != null && (e.current = t);
|
|
1321
1323
|
}
|
|
1322
|
-
function
|
|
1324
|
+
function sr(...e) {
|
|
1323
1325
|
return (t) => {
|
|
1324
1326
|
let n = !1;
|
|
1325
1327
|
const r = e.map((o) => {
|
|
@@ -1335,38 +1337,38 @@ function or(...e) {
|
|
|
1335
1337
|
};
|
|
1336
1338
|
};
|
|
1337
1339
|
}
|
|
1338
|
-
function
|
|
1339
|
-
return
|
|
1340
|
+
function U(...e) {
|
|
1341
|
+
return z(sr(...e), e);
|
|
1340
1342
|
}
|
|
1341
1343
|
// @__NO_SIDE_EFFECTS__
|
|
1342
1344
|
function Ye(e) {
|
|
1343
|
-
const t = /* @__PURE__ */
|
|
1344
|
-
const { children: i, ...c } = r, s =
|
|
1345
|
+
const t = /* @__PURE__ */ Hi(e), n = O((r, o) => {
|
|
1346
|
+
const { children: i, ...c } = r, s = G.toArray(i), a = s.find(Vi);
|
|
1345
1347
|
if (a) {
|
|
1346
|
-
const u = a.props.children, l = s.map((d) => d === a ?
|
|
1347
|
-
return /* @__PURE__ */
|
|
1348
|
+
const u = a.props.children, l = s.map((d) => d === a ? G.count(u) > 1 ? G.only(null) : X(u) ? u.props.children : null : d);
|
|
1349
|
+
return /* @__PURE__ */ f(t, { ...c, ref: o, children: X(u) ? ye(u, void 0, l) : null });
|
|
1348
1350
|
}
|
|
1349
|
-
return /* @__PURE__ */
|
|
1351
|
+
return /* @__PURE__ */ f(t, { ...c, ref: o, children: i });
|
|
1350
1352
|
});
|
|
1351
1353
|
return n.displayName = `${e}.Slot`, n;
|
|
1352
1354
|
}
|
|
1353
1355
|
// @__NO_SIDE_EFFECTS__
|
|
1354
|
-
function
|
|
1355
|
-
const t =
|
|
1356
|
+
function Hi(e) {
|
|
1357
|
+
const t = O((n, r) => {
|
|
1356
1358
|
const { children: o, ...i } = n;
|
|
1357
|
-
if (
|
|
1358
|
-
const c =
|
|
1359
|
-
return o.type !==
|
|
1359
|
+
if (X(o)) {
|
|
1360
|
+
const c = qi(o), s = Ki(i, o.props);
|
|
1361
|
+
return o.type !== B && (s.ref = r ? sr(r, c) : c), ye(o, s);
|
|
1360
1362
|
}
|
|
1361
|
-
return
|
|
1363
|
+
return G.count(o) > 1 ? G.only(null) : null;
|
|
1362
1364
|
});
|
|
1363
1365
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1364
1366
|
}
|
|
1365
|
-
var
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1367
|
+
var Zi = /* @__PURE__ */ Symbol("radix.slottable");
|
|
1368
|
+
function Vi(e) {
|
|
1369
|
+
return X(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Zi;
|
|
1368
1370
|
}
|
|
1369
|
-
function
|
|
1371
|
+
function Ki(e, t) {
|
|
1370
1372
|
const n = { ...t };
|
|
1371
1373
|
for (const r in t) {
|
|
1372
1374
|
const o = e[r], i = t[r];
|
|
@@ -1377,60 +1379,60 @@ function Zi(e, t) {
|
|
|
1377
1379
|
}
|
|
1378
1380
|
return { ...e, ...n };
|
|
1379
1381
|
}
|
|
1380
|
-
function
|
|
1382
|
+
function qi(e) {
|
|
1381
1383
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1382
1384
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1383
1385
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
1386
|
+
function Gi(e) {
|
|
1387
|
+
const t = e + "CollectionProvider", [n, r] = Te(t), [o, i] = n(
|
|
1386
1388
|
t,
|
|
1387
1389
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
1388
|
-
), c = (
|
|
1389
|
-
const { scope:
|
|
1390
|
-
return /* @__PURE__ */
|
|
1390
|
+
), c = (p) => {
|
|
1391
|
+
const { scope: h, children: y } = p, m = T.useRef(null), b = T.useRef(/* @__PURE__ */ new Map()).current;
|
|
1392
|
+
return /* @__PURE__ */ f(o, { scope: h, itemMap: b, collectionRef: m, children: y });
|
|
1391
1393
|
};
|
|
1392
1394
|
c.displayName = t;
|
|
1393
|
-
const s = e + "CollectionSlot", a = /* @__PURE__ */ Ye(s), u =
|
|
1394
|
-
(
|
|
1395
|
-
const { scope:
|
|
1396
|
-
return /* @__PURE__ */
|
|
1395
|
+
const s = e + "CollectionSlot", a = /* @__PURE__ */ Ye(s), u = T.forwardRef(
|
|
1396
|
+
(p, h) => {
|
|
1397
|
+
const { scope: y, children: m } = p, b = i(s, y), g = U(h, b.collectionRef);
|
|
1398
|
+
return /* @__PURE__ */ f(a, { ref: g, children: m });
|
|
1397
1399
|
}
|
|
1398
1400
|
);
|
|
1399
1401
|
u.displayName = s;
|
|
1400
|
-
const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ye(l),
|
|
1401
|
-
(
|
|
1402
|
-
const { scope:
|
|
1403
|
-
return
|
|
1404
|
-
|
|
1405
|
-
})), /* @__PURE__ */
|
|
1402
|
+
const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ye(l), v = T.forwardRef(
|
|
1403
|
+
(p, h) => {
|
|
1404
|
+
const { scope: y, children: m, ...b } = p, g = T.useRef(null), E = U(h, g), C = i(l, y);
|
|
1405
|
+
return T.useEffect(() => (C.itemMap.set(g, { ref: g, ...b }), () => {
|
|
1406
|
+
C.itemMap.delete(g);
|
|
1407
|
+
})), /* @__PURE__ */ f(_, { [d]: "", ref: E, children: m });
|
|
1406
1408
|
}
|
|
1407
1409
|
);
|
|
1408
|
-
|
|
1409
|
-
function
|
|
1410
|
-
const
|
|
1411
|
-
return
|
|
1412
|
-
const
|
|
1413
|
-
if (!
|
|
1414
|
-
const b = Array.from(
|
|
1415
|
-
return Array.from(
|
|
1416
|
-
(
|
|
1410
|
+
v.displayName = l;
|
|
1411
|
+
function S(p) {
|
|
1412
|
+
const h = i(e + "CollectionConsumer", p);
|
|
1413
|
+
return T.useCallback(() => {
|
|
1414
|
+
const m = h.collectionRef.current;
|
|
1415
|
+
if (!m) return [];
|
|
1416
|
+
const b = Array.from(m.querySelectorAll(`[${d}]`));
|
|
1417
|
+
return Array.from(h.itemMap.values()).sort(
|
|
1418
|
+
(C, w) => b.indexOf(C.ref.current) - b.indexOf(w.ref.current)
|
|
1417
1419
|
);
|
|
1418
|
-
}, [
|
|
1420
|
+
}, [h.collectionRef, h.itemMap]);
|
|
1419
1421
|
}
|
|
1420
1422
|
return [
|
|
1421
|
-
{ Provider: c, Slot: u, ItemSlot:
|
|
1422
|
-
|
|
1423
|
+
{ Provider: c, Slot: u, ItemSlot: v },
|
|
1424
|
+
S,
|
|
1423
1425
|
r
|
|
1424
1426
|
];
|
|
1425
1427
|
}
|
|
1426
|
-
function
|
|
1428
|
+
function W(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1427
1429
|
return function(o) {
|
|
1428
1430
|
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
1429
1431
|
return t?.(o);
|
|
1430
1432
|
};
|
|
1431
1433
|
}
|
|
1432
|
-
var
|
|
1433
|
-
},
|
|
1434
|
+
var ge = globalThis?.document ? oe : () => {
|
|
1435
|
+
}, Yi = Yn[" useInsertionEffect ".trim().toString()] || ge;
|
|
1434
1436
|
function De({
|
|
1435
1437
|
prop: e,
|
|
1436
1438
|
defaultProp: t,
|
|
@@ -1438,23 +1440,23 @@ function De({
|
|
|
1438
1440
|
},
|
|
1439
1441
|
caller: r
|
|
1440
1442
|
}) {
|
|
1441
|
-
const [o, i, c] =
|
|
1443
|
+
const [o, i, c] = Xi({
|
|
1442
1444
|
defaultProp: t,
|
|
1443
1445
|
onChange: n
|
|
1444
1446
|
}), s = e !== void 0, a = s ? e : o;
|
|
1445
1447
|
{
|
|
1446
|
-
const l =
|
|
1447
|
-
|
|
1448
|
+
const l = P(e !== void 0);
|
|
1449
|
+
N(() => {
|
|
1448
1450
|
const d = l.current;
|
|
1449
1451
|
d !== s && console.warn(
|
|
1450
1452
|
`${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${s ? "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.`
|
|
1451
1453
|
), l.current = s;
|
|
1452
1454
|
}, [s, r]);
|
|
1453
1455
|
}
|
|
1454
|
-
const u =
|
|
1456
|
+
const u = z(
|
|
1455
1457
|
(l) => {
|
|
1456
1458
|
if (s) {
|
|
1457
|
-
const d =
|
|
1459
|
+
const d = Ji(l) ? l(e) : l;
|
|
1458
1460
|
d !== e && c.current?.(d);
|
|
1459
1461
|
} else
|
|
1460
1462
|
i(l);
|
|
@@ -1463,21 +1465,21 @@ function De({
|
|
|
1463
1465
|
);
|
|
1464
1466
|
return [a, u];
|
|
1465
1467
|
}
|
|
1466
|
-
function
|
|
1468
|
+
function Xi({
|
|
1467
1469
|
defaultProp: e,
|
|
1468
1470
|
onChange: t
|
|
1469
1471
|
}) {
|
|
1470
|
-
const [n, r] =
|
|
1471
|
-
return
|
|
1472
|
+
const [n, r] = k(e), o = P(n), i = P(t);
|
|
1473
|
+
return Yi(() => {
|
|
1472
1474
|
i.current = t;
|
|
1473
|
-
}, [t]),
|
|
1475
|
+
}, [t]), N(() => {
|
|
1474
1476
|
o.current !== n && (i.current?.(n), o.current = n);
|
|
1475
1477
|
}, [n, o]), [n, r, i];
|
|
1476
1478
|
}
|
|
1477
|
-
function
|
|
1479
|
+
function Ji(e) {
|
|
1478
1480
|
return typeof e == "function";
|
|
1479
1481
|
}
|
|
1480
|
-
var
|
|
1482
|
+
var Qi = [
|
|
1481
1483
|
"a",
|
|
1482
1484
|
"button",
|
|
1483
1485
|
"div",
|
|
@@ -1495,26 +1497,26 @@ var Xi = [
|
|
|
1495
1497
|
"span",
|
|
1496
1498
|
"svg",
|
|
1497
1499
|
"ul"
|
|
1498
|
-
],
|
|
1499
|
-
const n = /* @__PURE__ */ Ye(`Primitive.${t}`), r =
|
|
1500
|
+
], L = Qi.reduce((e, t) => {
|
|
1501
|
+
const n = /* @__PURE__ */ Ye(`Primitive.${t}`), r = O((o, i) => {
|
|
1500
1502
|
const { asChild: c, ...s } = o, a = c ? n : t;
|
|
1501
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
1503
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(a, { ...s, ref: i });
|
|
1502
1504
|
});
|
|
1503
1505
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
1504
1506
|
}, {});
|
|
1505
|
-
function
|
|
1506
|
-
e &&
|
|
1507
|
+
function es(e, t) {
|
|
1508
|
+
e && Tt(() => e.dispatchEvent(t));
|
|
1507
1509
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1510
|
+
function ts(e, t) {
|
|
1511
|
+
return ke((n, r) => t[n][r] ?? n, e);
|
|
1510
1512
|
}
|
|
1511
1513
|
var et = (e) => {
|
|
1512
|
-
const { present: t, children: n } = e, r =
|
|
1513
|
-
return typeof n == "function" || r.isPresent ?
|
|
1514
|
+
const { present: t, children: n } = e, r = ns(t), o = typeof n == "function" ? n({ present: r.isPresent }) : G.only(n), i = U(r.ref, rs(o));
|
|
1515
|
+
return typeof n == "function" || r.isPresent ? ye(o, { ref: i }) : null;
|
|
1514
1516
|
};
|
|
1515
1517
|
et.displayName = "Presence";
|
|
1516
|
-
function
|
|
1517
|
-
const [t, n] =
|
|
1518
|
+
function ns(e) {
|
|
1519
|
+
const [t, n] = k(), r = P(null), o = P(e), i = P("none"), c = e ? "mounted" : "unmounted", [s, a] = ts(c, {
|
|
1518
1520
|
mounted: {
|
|
1519
1521
|
UNMOUNT: "unmounted",
|
|
1520
1522
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1527,28 +1529,28 @@ function es(e) {
|
|
|
1527
1529
|
MOUNT: "mounted"
|
|
1528
1530
|
}
|
|
1529
1531
|
});
|
|
1530
|
-
return
|
|
1532
|
+
return N(() => {
|
|
1531
1533
|
const u = $e(r.current);
|
|
1532
1534
|
i.current = s === "mounted" ? u : "none";
|
|
1533
|
-
}, [s]),
|
|
1535
|
+
}, [s]), ge(() => {
|
|
1534
1536
|
const u = r.current, l = o.current;
|
|
1535
1537
|
if (l !== e) {
|
|
1536
|
-
const _ = i.current,
|
|
1537
|
-
e ? a("MOUNT") :
|
|
1538
|
+
const _ = i.current, v = $e(u);
|
|
1539
|
+
e ? a("MOUNT") : v === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
1538
1540
|
}
|
|
1539
|
-
}, [e, a]),
|
|
1541
|
+
}, [e, a]), ge(() => {
|
|
1540
1542
|
if (t) {
|
|
1541
1543
|
let u;
|
|
1542
|
-
const l = t.ownerDocument.defaultView ?? window, d = (
|
|
1543
|
-
const
|
|
1544
|
-
if (
|
|
1545
|
-
const
|
|
1544
|
+
const l = t.ownerDocument.defaultView ?? window, d = (v) => {
|
|
1545
|
+
const p = $e(r.current).includes(CSS.escape(v.animationName));
|
|
1546
|
+
if (v.target === t && p && (a("ANIMATION_END"), !o.current)) {
|
|
1547
|
+
const h = t.style.animationFillMode;
|
|
1546
1548
|
t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
|
|
1547
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
1549
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
|
|
1548
1550
|
});
|
|
1549
1551
|
}
|
|
1550
|
-
}, _ = (
|
|
1551
|
-
|
|
1552
|
+
}, _ = (v) => {
|
|
1553
|
+
v.target === t && (i.current = $e(r.current));
|
|
1552
1554
|
};
|
|
1553
1555
|
return t.addEventListener("animationstart", _), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
1554
1556
|
l.clearTimeout(u), t.removeEventListener("animationstart", _), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -1557,7 +1559,7 @@ function es(e) {
|
|
|
1557
1559
|
a("ANIMATION_END");
|
|
1558
1560
|
}, [t, a]), {
|
|
1559
1561
|
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
1560
|
-
ref:
|
|
1562
|
+
ref: z((u) => {
|
|
1561
1563
|
r.current = u ? getComputedStyle(u) : null, n(u);
|
|
1562
1564
|
}, [])
|
|
1563
1565
|
};
|
|
@@ -1565,19 +1567,19 @@ function es(e) {
|
|
|
1565
1567
|
function $e(e) {
|
|
1566
1568
|
return e?.animationName || "none";
|
|
1567
1569
|
}
|
|
1568
|
-
function
|
|
1570
|
+
function rs(e) {
|
|
1569
1571
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1570
1572
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1571
1573
|
}
|
|
1572
|
-
var
|
|
1573
|
-
}),
|
|
1574
|
+
var os = Yn[" useId ".trim().toString()] || (() => {
|
|
1575
|
+
}), is = 0;
|
|
1574
1576
|
function Oe(e) {
|
|
1575
|
-
const [t, n] =
|
|
1576
|
-
return
|
|
1577
|
-
n((r) => r ?? String(
|
|
1577
|
+
const [t, n] = k(os());
|
|
1578
|
+
return ge(() => {
|
|
1579
|
+
n((r) => r ?? String(is++));
|
|
1578
1580
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1579
1581
|
}
|
|
1580
|
-
var tt = "Collapsible", [
|
|
1582
|
+
var tt = "Collapsible", [ss, cr] = Te(tt), [cs, Dt] = ss(tt), ar = O(
|
|
1581
1583
|
(e, t) => {
|
|
1582
1584
|
const {
|
|
1583
1585
|
__scopeCollapsible: n,
|
|
@@ -1592,16 +1594,16 @@ var tt = "Collapsible", [os, ir] = ke(tt), [is, Dt] = os(tt), sr = P(
|
|
|
1592
1594
|
onChange: c,
|
|
1593
1595
|
caller: tt
|
|
1594
1596
|
});
|
|
1595
|
-
return /* @__PURE__ */
|
|
1596
|
-
|
|
1597
|
+
return /* @__PURE__ */ f(
|
|
1598
|
+
cs,
|
|
1597
1599
|
{
|
|
1598
1600
|
scope: n,
|
|
1599
1601
|
disabled: i,
|
|
1600
1602
|
contentId: Oe(),
|
|
1601
1603
|
open: a,
|
|
1602
|
-
onOpenToggle:
|
|
1603
|
-
children: /* @__PURE__ */
|
|
1604
|
-
|
|
1604
|
+
onOpenToggle: z(() => u((l) => !l), [u]),
|
|
1605
|
+
children: /* @__PURE__ */ f(
|
|
1606
|
+
L.div,
|
|
1605
1607
|
{
|
|
1606
1608
|
"data-state": Mt(a),
|
|
1607
1609
|
"data-disabled": i ? "" : void 0,
|
|
@@ -1613,12 +1615,12 @@ var tt = "Collapsible", [os, ir] = ke(tt), [is, Dt] = os(tt), sr = P(
|
|
|
1613
1615
|
);
|
|
1614
1616
|
}
|
|
1615
1617
|
);
|
|
1616
|
-
|
|
1617
|
-
var
|
|
1618
|
+
ar.displayName = tt;
|
|
1619
|
+
var ur = "CollapsibleTrigger", lr = O(
|
|
1618
1620
|
(e, t) => {
|
|
1619
|
-
const { __scopeCollapsible: n, ...r } = e, o = Dt(
|
|
1620
|
-
return /* @__PURE__ */
|
|
1621
|
-
|
|
1621
|
+
const { __scopeCollapsible: n, ...r } = e, o = Dt(ur, n);
|
|
1622
|
+
return /* @__PURE__ */ f(
|
|
1623
|
+
L.button,
|
|
1622
1624
|
{
|
|
1623
1625
|
type: "button",
|
|
1624
1626
|
"aria-controls": o.contentId,
|
|
@@ -1628,74 +1630,74 @@ var cr = "CollapsibleTrigger", ar = P(
|
|
|
1628
1630
|
disabled: o.disabled,
|
|
1629
1631
|
...r,
|
|
1630
1632
|
ref: t,
|
|
1631
|
-
onClick:
|
|
1633
|
+
onClick: W(e.onClick, o.onOpenToggle)
|
|
1632
1634
|
}
|
|
1633
1635
|
);
|
|
1634
1636
|
}
|
|
1635
1637
|
);
|
|
1636
|
-
|
|
1637
|
-
var xt = "CollapsibleContent",
|
|
1638
|
+
lr.displayName = ur;
|
|
1639
|
+
var xt = "CollapsibleContent", dr = O(
|
|
1638
1640
|
(e, t) => {
|
|
1639
1641
|
const { forceMount: n, ...r } = e, o = Dt(xt, e.__scopeCollapsible);
|
|
1640
|
-
return /* @__PURE__ */
|
|
1642
|
+
return /* @__PURE__ */ f(et, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ f(as, { ...r, ref: t, present: i }) });
|
|
1641
1643
|
}
|
|
1642
1644
|
);
|
|
1643
|
-
|
|
1644
|
-
var
|
|
1645
|
-
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] =
|
|
1646
|
-
return
|
|
1647
|
-
const
|
|
1648
|
-
return () => cancelAnimationFrame(
|
|
1649
|
-
}, []),
|
|
1650
|
-
const
|
|
1651
|
-
if (
|
|
1652
|
-
|
|
1653
|
-
transitionDuration:
|
|
1654
|
-
animationName:
|
|
1655
|
-
},
|
|
1656
|
-
const b =
|
|
1657
|
-
d.current = b.height,
|
|
1645
|
+
dr.displayName = xt;
|
|
1646
|
+
var as = O((e, t) => {
|
|
1647
|
+
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] = k(r), u = P(null), l = U(t, u), d = P(0), _ = d.current, v = P(0), S = v.current, p = c.open || s, h = P(p), y = P(void 0);
|
|
1648
|
+
return N(() => {
|
|
1649
|
+
const m = requestAnimationFrame(() => h.current = !1);
|
|
1650
|
+
return () => cancelAnimationFrame(m);
|
|
1651
|
+
}, []), ge(() => {
|
|
1652
|
+
const m = u.current;
|
|
1653
|
+
if (m) {
|
|
1654
|
+
y.current = y.current || {
|
|
1655
|
+
transitionDuration: m.style.transitionDuration,
|
|
1656
|
+
animationName: m.style.animationName
|
|
1657
|
+
}, m.style.transitionDuration = "0s", m.style.animationName = "none";
|
|
1658
|
+
const b = m.getBoundingClientRect();
|
|
1659
|
+
d.current = b.height, v.current = b.width, h.current || (m.style.transitionDuration = y.current.transitionDuration, m.style.animationName = y.current.animationName), a(r);
|
|
1658
1660
|
}
|
|
1659
|
-
}, [c.open, r]), /* @__PURE__ */
|
|
1660
|
-
|
|
1661
|
+
}, [c.open, r]), /* @__PURE__ */ f(
|
|
1662
|
+
L.div,
|
|
1661
1663
|
{
|
|
1662
1664
|
"data-state": Mt(c.open),
|
|
1663
1665
|
"data-disabled": c.disabled ? "" : void 0,
|
|
1664
1666
|
id: c.contentId,
|
|
1665
|
-
hidden: !
|
|
1667
|
+
hidden: !p,
|
|
1666
1668
|
...i,
|
|
1667
1669
|
ref: l,
|
|
1668
1670
|
style: {
|
|
1669
1671
|
"--radix-collapsible-content-height": _ ? `${_}px` : void 0,
|
|
1670
|
-
"--radix-collapsible-content-width":
|
|
1672
|
+
"--radix-collapsible-content-width": S ? `${S}px` : void 0,
|
|
1671
1673
|
...e.style
|
|
1672
1674
|
},
|
|
1673
|
-
children:
|
|
1675
|
+
children: p && o
|
|
1674
1676
|
}
|
|
1675
1677
|
);
|
|
1676
1678
|
});
|
|
1677
1679
|
function Mt(e) {
|
|
1678
1680
|
return e ? "open" : "closed";
|
|
1679
1681
|
}
|
|
1680
|
-
var
|
|
1681
|
-
function
|
|
1682
|
-
const t =
|
|
1682
|
+
var fr = ar, pr = lr, _r = dr, us = re(void 0);
|
|
1683
|
+
function ls(e) {
|
|
1684
|
+
const t = J(us);
|
|
1683
1685
|
return e || t || "ltr";
|
|
1684
1686
|
}
|
|
1685
|
-
var
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
]), $t =
|
|
1687
|
+
var H = "Accordion", ds = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [zt, fs, ps] = Gi(H), [nt] = Te(H, [
|
|
1688
|
+
ps,
|
|
1689
|
+
cr
|
|
1690
|
+
]), $t = cr(), vr = T.forwardRef(
|
|
1689
1691
|
(e, t) => {
|
|
1690
1692
|
const { type: n, ...r } = e, o = r, i = r;
|
|
1691
|
-
return /* @__PURE__ */
|
|
1693
|
+
return /* @__PURE__ */ f(zt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ f(ms, { ...i, ref: t }) : /* @__PURE__ */ f(hs, { ...o, ref: t }) });
|
|
1692
1694
|
}
|
|
1693
1695
|
);
|
|
1694
|
-
|
|
1695
|
-
var [
|
|
1696
|
-
|
|
1696
|
+
vr.displayName = H;
|
|
1697
|
+
var [hr, _s] = nt(H), [mr, vs] = nt(
|
|
1698
|
+
H,
|
|
1697
1699
|
{ collapsible: !1 }
|
|
1698
|
-
),
|
|
1700
|
+
), hs = T.forwardRef(
|
|
1699
1701
|
(e, t) => {
|
|
1700
1702
|
const {
|
|
1701
1703
|
value: n,
|
|
@@ -1708,20 +1710,20 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
|
|
|
1708
1710
|
prop: n,
|
|
1709
1711
|
defaultProp: r ?? "",
|
|
1710
1712
|
onChange: o,
|
|
1711
|
-
caller:
|
|
1713
|
+
caller: H
|
|
1712
1714
|
});
|
|
1713
|
-
return /* @__PURE__ */
|
|
1714
|
-
|
|
1715
|
+
return /* @__PURE__ */ f(
|
|
1716
|
+
hr,
|
|
1715
1717
|
{
|
|
1716
1718
|
scope: e.__scopeAccordion,
|
|
1717
|
-
value:
|
|
1719
|
+
value: T.useMemo(() => s ? [s] : [], [s]),
|
|
1718
1720
|
onItemOpen: a,
|
|
1719
|
-
onItemClose:
|
|
1720
|
-
children: /* @__PURE__ */
|
|
1721
|
+
onItemClose: T.useCallback(() => i && a(""), [i, a]),
|
|
1722
|
+
children: /* @__PURE__ */ f(mr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ f(gr, { ...c, ref: t }) })
|
|
1721
1723
|
}
|
|
1722
1724
|
);
|
|
1723
1725
|
}
|
|
1724
|
-
),
|
|
1726
|
+
), ms = T.forwardRef((e, t) => {
|
|
1725
1727
|
const {
|
|
1726
1728
|
value: n,
|
|
1727
1729
|
defaultValue: r,
|
|
@@ -1732,69 +1734,69 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
|
|
|
1732
1734
|
prop: n,
|
|
1733
1735
|
defaultProp: r ?? [],
|
|
1734
1736
|
onChange: o,
|
|
1735
|
-
caller:
|
|
1736
|
-
}), a =
|
|
1737
|
+
caller: H
|
|
1738
|
+
}), a = T.useCallback(
|
|
1737
1739
|
(l) => s((d = []) => [...d, l]),
|
|
1738
1740
|
[s]
|
|
1739
|
-
), u =
|
|
1741
|
+
), u = T.useCallback(
|
|
1740
1742
|
(l) => s((d = []) => d.filter((_) => _ !== l)),
|
|
1741
1743
|
[s]
|
|
1742
1744
|
);
|
|
1743
|
-
return /* @__PURE__ */
|
|
1744
|
-
|
|
1745
|
+
return /* @__PURE__ */ f(
|
|
1746
|
+
hr,
|
|
1745
1747
|
{
|
|
1746
1748
|
scope: e.__scopeAccordion,
|
|
1747
1749
|
value: c,
|
|
1748
1750
|
onItemOpen: a,
|
|
1749
1751
|
onItemClose: u,
|
|
1750
|
-
children: /* @__PURE__ */
|
|
1752
|
+
children: /* @__PURE__ */ f(mr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ f(gr, { ...i, ref: t }) })
|
|
1751
1753
|
}
|
|
1752
1754
|
);
|
|
1753
|
-
}), [
|
|
1755
|
+
}), [gs, rt] = nt(H), gr = T.forwardRef(
|
|
1754
1756
|
(e, t) => {
|
|
1755
|
-
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s =
|
|
1756
|
-
if (!
|
|
1757
|
-
const
|
|
1758
|
-
if (
|
|
1759
|
-
|
|
1760
|
-
let
|
|
1761
|
-
const b = 0,
|
|
1762
|
-
|
|
1763
|
-
},
|
|
1764
|
-
|
|
1757
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s = T.useRef(null), a = U(s, t), u = fs(n), d = ls(o) === "ltr", _ = W(e.onKeyDown, (v) => {
|
|
1758
|
+
if (!ds.includes(v.key)) return;
|
|
1759
|
+
const S = v.target, p = u().filter((R) => !R.ref.current?.disabled), h = p.findIndex((R) => R.ref.current === S), y = p.length;
|
|
1760
|
+
if (h === -1) return;
|
|
1761
|
+
v.preventDefault();
|
|
1762
|
+
let m = h;
|
|
1763
|
+
const b = 0, g = y - 1, E = () => {
|
|
1764
|
+
m = h + 1, m > g && (m = b);
|
|
1765
|
+
}, C = () => {
|
|
1766
|
+
m = h - 1, m < b && (m = g);
|
|
1765
1767
|
};
|
|
1766
|
-
switch (
|
|
1768
|
+
switch (v.key) {
|
|
1767
1769
|
case "Home":
|
|
1768
|
-
|
|
1770
|
+
m = b;
|
|
1769
1771
|
break;
|
|
1770
1772
|
case "End":
|
|
1771
|
-
|
|
1773
|
+
m = g;
|
|
1772
1774
|
break;
|
|
1773
1775
|
case "ArrowRight":
|
|
1774
|
-
i === "horizontal" && (d ?
|
|
1776
|
+
i === "horizontal" && (d ? E() : C());
|
|
1775
1777
|
break;
|
|
1776
1778
|
case "ArrowDown":
|
|
1777
|
-
i === "vertical" &&
|
|
1779
|
+
i === "vertical" && E();
|
|
1778
1780
|
break;
|
|
1779
1781
|
case "ArrowLeft":
|
|
1780
|
-
i === "horizontal" && (d ?
|
|
1782
|
+
i === "horizontal" && (d ? C() : E());
|
|
1781
1783
|
break;
|
|
1782
1784
|
case "ArrowUp":
|
|
1783
|
-
i === "vertical" &&
|
|
1785
|
+
i === "vertical" && C();
|
|
1784
1786
|
break;
|
|
1785
1787
|
}
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1788
|
+
const w = m % y;
|
|
1789
|
+
p[w].ref.current?.focus();
|
|
1788
1790
|
});
|
|
1789
|
-
return /* @__PURE__ */
|
|
1790
|
-
|
|
1791
|
+
return /* @__PURE__ */ f(
|
|
1792
|
+
gs,
|
|
1791
1793
|
{
|
|
1792
1794
|
scope: n,
|
|
1793
1795
|
disabled: r,
|
|
1794
1796
|
direction: o,
|
|
1795
1797
|
orientation: i,
|
|
1796
|
-
children: /* @__PURE__ */
|
|
1797
|
-
|
|
1798
|
+
children: /* @__PURE__ */ f(zt.Slot, { scope: n, children: /* @__PURE__ */ f(
|
|
1799
|
+
L.div,
|
|
1798
1800
|
{
|
|
1799
1801
|
...c,
|
|
1800
1802
|
"data-orientation": i,
|
|
@@ -1805,21 +1807,21 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
|
|
|
1805
1807
|
}
|
|
1806
1808
|
);
|
|
1807
1809
|
}
|
|
1808
|
-
), Xe = "AccordionItem", [
|
|
1810
|
+
), Xe = "AccordionItem", [ys, Lt] = nt(Xe), yr = T.forwardRef(
|
|
1809
1811
|
(e, t) => {
|
|
1810
|
-
const { __scopeAccordion: n, value: r, ...o } = e, i = rt(Xe, n), c =
|
|
1811
|
-
return /* @__PURE__ */
|
|
1812
|
-
|
|
1812
|
+
const { __scopeAccordion: n, value: r, ...o } = e, i = rt(Xe, n), c = _s(Xe, n), s = $t(n), a = Oe(), u = r && c.value.includes(r) || !1, l = i.disabled || e.disabled;
|
|
1813
|
+
return /* @__PURE__ */ f(
|
|
1814
|
+
ys,
|
|
1813
1815
|
{
|
|
1814
1816
|
scope: n,
|
|
1815
1817
|
open: u,
|
|
1816
1818
|
disabled: l,
|
|
1817
1819
|
triggerId: a,
|
|
1818
|
-
children: /* @__PURE__ */
|
|
1819
|
-
|
|
1820
|
+
children: /* @__PURE__ */ f(
|
|
1821
|
+
fr,
|
|
1820
1822
|
{
|
|
1821
1823
|
"data-orientation": i.orientation,
|
|
1822
|
-
"data-state":
|
|
1824
|
+
"data-state": Er(u),
|
|
1823
1825
|
...s,
|
|
1824
1826
|
...o,
|
|
1825
1827
|
ref: t,
|
|
@@ -1834,15 +1836,15 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
|
|
|
1834
1836
|
);
|
|
1835
1837
|
}
|
|
1836
1838
|
);
|
|
1837
|
-
|
|
1838
|
-
var
|
|
1839
|
+
yr.displayName = Xe;
|
|
1840
|
+
var br = "AccordionHeader", bs = T.forwardRef(
|
|
1839
1841
|
(e, t) => {
|
|
1840
|
-
const { __scopeAccordion: n, ...r } = e, o = rt(
|
|
1841
|
-
return /* @__PURE__ */
|
|
1842
|
-
|
|
1842
|
+
const { __scopeAccordion: n, ...r } = e, o = rt(H, n), i = Lt(br, n);
|
|
1843
|
+
return /* @__PURE__ */ f(
|
|
1844
|
+
L.h3,
|
|
1843
1845
|
{
|
|
1844
1846
|
"data-orientation": o.orientation,
|
|
1845
|
-
"data-state":
|
|
1847
|
+
"data-state": Er(i.open),
|
|
1846
1848
|
"data-disabled": i.disabled ? "" : void 0,
|
|
1847
1849
|
...r,
|
|
1848
1850
|
ref: t
|
|
@@ -1850,12 +1852,12 @@ var gr = "AccordionHeader", gs = I.forwardRef(
|
|
|
1850
1852
|
);
|
|
1851
1853
|
}
|
|
1852
1854
|
);
|
|
1853
|
-
|
|
1854
|
-
var yt = "AccordionTrigger",
|
|
1855
|
+
bs.displayName = br;
|
|
1856
|
+
var yt = "AccordionTrigger", Cr = T.forwardRef(
|
|
1855
1857
|
(e, t) => {
|
|
1856
|
-
const { __scopeAccordion: n, ...r } = e, o = rt(
|
|
1857
|
-
return /* @__PURE__ */
|
|
1858
|
-
|
|
1858
|
+
const { __scopeAccordion: n, ...r } = e, o = rt(H, n), i = Lt(yt, n), c = vs(yt, n), s = $t(n);
|
|
1859
|
+
return /* @__PURE__ */ f(zt.ItemSlot, { scope: n, children: /* @__PURE__ */ f(
|
|
1860
|
+
pr,
|
|
1859
1861
|
{
|
|
1860
1862
|
"aria-disabled": i.open && !c.collapsible || void 0,
|
|
1861
1863
|
"data-orientation": o.orientation,
|
|
@@ -1867,12 +1869,12 @@ var yt = "AccordionTrigger", yr = I.forwardRef(
|
|
|
1867
1869
|
) });
|
|
1868
1870
|
}
|
|
1869
1871
|
);
|
|
1870
|
-
|
|
1871
|
-
var
|
|
1872
|
+
Cr.displayName = yt;
|
|
1873
|
+
var Sr = "AccordionContent", wr = T.forwardRef(
|
|
1872
1874
|
(e, t) => {
|
|
1873
|
-
const { __scopeAccordion: n, ...r } = e, o = rt(
|
|
1874
|
-
return /* @__PURE__ */
|
|
1875
|
-
|
|
1875
|
+
const { __scopeAccordion: n, ...r } = e, o = rt(H, n), i = Lt(Sr, n), c = $t(n);
|
|
1876
|
+
return /* @__PURE__ */ f(
|
|
1877
|
+
_r,
|
|
1876
1878
|
{
|
|
1877
1879
|
role: "region",
|
|
1878
1880
|
"aria-labelledby": i.triggerId,
|
|
@@ -1889,22 +1891,22 @@ var br = "AccordionContent", Cr = I.forwardRef(
|
|
|
1889
1891
|
);
|
|
1890
1892
|
}
|
|
1891
1893
|
);
|
|
1892
|
-
|
|
1893
|
-
function
|
|
1894
|
+
wr.displayName = Sr;
|
|
1895
|
+
function Er(e) {
|
|
1894
1896
|
return e ? "open" : "closed";
|
|
1895
1897
|
}
|
|
1896
|
-
var
|
|
1897
|
-
const
|
|
1898
|
-
const
|
|
1899
|
-
const
|
|
1898
|
+
var Cs = vr, Ss = yr, dn = Cr, ws = wr;
|
|
1899
|
+
const Pr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
|
|
1900
|
+
const Es = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1901
|
+
const Ps = (e) => e.replace(
|
|
1900
1902
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1901
1903
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
1902
1904
|
);
|
|
1903
1905
|
const fn = (e) => {
|
|
1904
|
-
const t =
|
|
1906
|
+
const t = Ps(e);
|
|
1905
1907
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1906
1908
|
};
|
|
1907
|
-
var
|
|
1909
|
+
var Ns = {
|
|
1908
1910
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1909
1911
|
width: 24,
|
|
1910
1912
|
height: 24,
|
|
@@ -1915,13 +1917,13 @@ var Es = {
|
|
|
1915
1917
|
strokeLinecap: "round",
|
|
1916
1918
|
strokeLinejoin: "round"
|
|
1917
1919
|
};
|
|
1918
|
-
const
|
|
1920
|
+
const Os = (e) => {
|
|
1919
1921
|
for (const t in e)
|
|
1920
1922
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1921
1923
|
return !0;
|
|
1922
1924
|
return !1;
|
|
1923
1925
|
};
|
|
1924
|
-
const
|
|
1926
|
+
const As = O(
|
|
1925
1927
|
({
|
|
1926
1928
|
color: e = "currentColor",
|
|
1927
1929
|
size: t = 24,
|
|
@@ -1931,32 +1933,32 @@ const Ns = P(
|
|
|
1931
1933
|
children: i,
|
|
1932
1934
|
iconNode: c,
|
|
1933
1935
|
...s
|
|
1934
|
-
}, a) =>
|
|
1936
|
+
}, a) => D(
|
|
1935
1937
|
"svg",
|
|
1936
1938
|
{
|
|
1937
1939
|
ref: a,
|
|
1938
|
-
...
|
|
1940
|
+
...Ns,
|
|
1939
1941
|
width: t,
|
|
1940
1942
|
height: t,
|
|
1941
1943
|
stroke: e,
|
|
1942
1944
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
1943
|
-
className:
|
|
1944
|
-
...!i && !
|
|
1945
|
+
className: Pr("lucide", o),
|
|
1946
|
+
...!i && !Os(s) && { "aria-hidden": "true" },
|
|
1945
1947
|
...s
|
|
1946
1948
|
},
|
|
1947
1949
|
[
|
|
1948
|
-
...c.map(([u, l]) =>
|
|
1950
|
+
...c.map(([u, l]) => D(u, l)),
|
|
1949
1951
|
...Array.isArray(i) ? i : [i]
|
|
1950
1952
|
]
|
|
1951
1953
|
)
|
|
1952
1954
|
);
|
|
1953
|
-
const
|
|
1954
|
-
const n =
|
|
1955
|
-
({ className: r, ...o }, i) =>
|
|
1955
|
+
const Nr = (e, t) => {
|
|
1956
|
+
const n = O(
|
|
1957
|
+
({ className: r, ...o }, i) => D(As, {
|
|
1956
1958
|
ref: i,
|
|
1957
1959
|
iconNode: t,
|
|
1958
|
-
className:
|
|
1959
|
-
`lucide-${
|
|
1960
|
+
className: Pr(
|
|
1961
|
+
`lucide-${Es(fn(e))}`,
|
|
1960
1962
|
`lucide-${e}`,
|
|
1961
1963
|
r
|
|
1962
1964
|
),
|
|
@@ -1965,15 +1967,15 @@ const Er = (e, t) => {
|
|
|
1965
1967
|
);
|
|
1966
1968
|
return n.displayName = fn(e), n;
|
|
1967
1969
|
};
|
|
1968
|
-
const
|
|
1969
|
-
const
|
|
1970
|
-
function
|
|
1971
|
-
const t =
|
|
1972
|
-
return
|
|
1973
|
-
}
|
|
1974
|
-
function
|
|
1975
|
-
const [t, n] =
|
|
1976
|
-
return
|
|
1970
|
+
const Rs = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Is = Nr("chevron-down", Rs);
|
|
1971
|
+
const ks = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ts = Nr("chevron-up", ks);
|
|
1972
|
+
function Ds(e) {
|
|
1973
|
+
const t = P({ value: e, previous: e });
|
|
1974
|
+
return x(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
1975
|
+
}
|
|
1976
|
+
function xs(e) {
|
|
1977
|
+
const [t, n] = k(void 0);
|
|
1978
|
+
return ge(() => {
|
|
1977
1979
|
if (e) {
|
|
1978
1980
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
1979
1981
|
const r = new ResizeObserver((o) => {
|
|
@@ -1993,7 +1995,7 @@ function ks(e) {
|
|
|
1993
1995
|
n(void 0);
|
|
1994
1996
|
}, [e]), t;
|
|
1995
1997
|
}
|
|
1996
|
-
var ot = "Switch", [
|
|
1998
|
+
var ot = "Switch", [Ms] = Te(ot), [zs, $s] = Ms(ot), Or = O(
|
|
1997
1999
|
(e, t) => {
|
|
1998
2000
|
const {
|
|
1999
2001
|
__scopeSwitch: n,
|
|
@@ -2006,39 +2008,39 @@ var ot = "Switch", [Ds] = ke(ot), [xs, Ms] = Ds(ot), Pr = P(
|
|
|
2006
2008
|
onCheckedChange: u,
|
|
2007
2009
|
form: l,
|
|
2008
2010
|
...d
|
|
2009
|
-
} = e, [_,
|
|
2011
|
+
} = e, [_, v] = k(null), S = U(t, (b) => v(b)), p = P(!1), h = _ ? l || !!_.closest("form") : !0, [y, m] = De({
|
|
2010
2012
|
prop: o,
|
|
2011
2013
|
defaultProp: i ?? !1,
|
|
2012
2014
|
onChange: u,
|
|
2013
2015
|
caller: ot
|
|
2014
2016
|
});
|
|
2015
|
-
return /* @__PURE__ */
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
|
|
2017
|
+
return /* @__PURE__ */ f(zs, { scope: n, checked: y, disabled: s, children: [
|
|
2018
|
+
/* @__PURE__ */ f(
|
|
2019
|
+
L.button,
|
|
2018
2020
|
{
|
|
2019
2021
|
type: "button",
|
|
2020
2022
|
role: "switch",
|
|
2021
|
-
"aria-checked":
|
|
2023
|
+
"aria-checked": y,
|
|
2022
2024
|
"aria-required": c,
|
|
2023
|
-
"data-state":
|
|
2025
|
+
"data-state": kr(y),
|
|
2024
2026
|
"data-disabled": s ? "" : void 0,
|
|
2025
2027
|
disabled: s,
|
|
2026
2028
|
value: a,
|
|
2027
2029
|
...d,
|
|
2028
|
-
ref:
|
|
2029
|
-
onClick:
|
|
2030
|
-
|
|
2030
|
+
ref: S,
|
|
2031
|
+
onClick: W(e.onClick, (b) => {
|
|
2032
|
+
m((g) => !g), h && (p.current = b.isPropagationStopped(), p.current || b.stopPropagation());
|
|
2031
2033
|
})
|
|
2032
2034
|
}
|
|
2033
2035
|
),
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
+
h && /* @__PURE__ */ f(
|
|
2037
|
+
Ir,
|
|
2036
2038
|
{
|
|
2037
2039
|
control: _,
|
|
2038
|
-
bubbles: !
|
|
2040
|
+
bubbles: !p.current,
|
|
2039
2041
|
name: r,
|
|
2040
2042
|
value: a,
|
|
2041
|
-
checked:
|
|
2043
|
+
checked: y,
|
|
2042
2044
|
required: c,
|
|
2043
2045
|
disabled: s,
|
|
2044
2046
|
form: l,
|
|
@@ -2048,14 +2050,14 @@ var ot = "Switch", [Ds] = ke(ot), [xs, Ms] = Ds(ot), Pr = P(
|
|
|
2048
2050
|
] });
|
|
2049
2051
|
}
|
|
2050
2052
|
);
|
|
2051
|
-
|
|
2052
|
-
var
|
|
2053
|
+
Or.displayName = ot;
|
|
2054
|
+
var Ar = "SwitchThumb", Rr = O(
|
|
2053
2055
|
(e, t) => {
|
|
2054
|
-
const { __scopeSwitch: n, ...r } = e, o =
|
|
2055
|
-
return /* @__PURE__ */
|
|
2056
|
-
|
|
2056
|
+
const { __scopeSwitch: n, ...r } = e, o = $s(Ar, n);
|
|
2057
|
+
return /* @__PURE__ */ f(
|
|
2058
|
+
L.span,
|
|
2057
2059
|
{
|
|
2058
|
-
"data-state":
|
|
2060
|
+
"data-state": kr(o.checked),
|
|
2059
2061
|
"data-disabled": o.disabled ? "" : void 0,
|
|
2060
2062
|
...r,
|
|
2061
2063
|
ref: t
|
|
@@ -2063,8 +2065,8 @@ var Nr = "SwitchThumb", Or = P(
|
|
|
2063
2065
|
);
|
|
2064
2066
|
}
|
|
2065
2067
|
);
|
|
2066
|
-
|
|
2067
|
-
var
|
|
2068
|
+
Rr.displayName = Ar;
|
|
2069
|
+
var Ls = "SwitchBubbleInput", Ir = O(
|
|
2068
2070
|
({
|
|
2069
2071
|
__scopeSwitch: e,
|
|
2070
2072
|
control: t,
|
|
@@ -2072,19 +2074,19 @@ var zs = "SwitchBubbleInput", Ar = P(
|
|
|
2072
2074
|
bubbles: r = !0,
|
|
2073
2075
|
...o
|
|
2074
2076
|
}, i) => {
|
|
2075
|
-
const c =
|
|
2076
|
-
return
|
|
2077
|
+
const c = P(null), s = U(c, i), a = Ds(n), u = xs(t);
|
|
2078
|
+
return N(() => {
|
|
2077
2079
|
const l = c.current;
|
|
2078
2080
|
if (!l) return;
|
|
2079
|
-
const d = window.HTMLInputElement.prototype,
|
|
2081
|
+
const d = window.HTMLInputElement.prototype, v = Object.getOwnPropertyDescriptor(
|
|
2080
2082
|
d,
|
|
2081
2083
|
"checked"
|
|
2082
2084
|
).set;
|
|
2083
|
-
if (a !== n &&
|
|
2084
|
-
const
|
|
2085
|
-
|
|
2085
|
+
if (a !== n && v) {
|
|
2086
|
+
const S = new Event("click", { bubbles: r });
|
|
2087
|
+
v.call(l, n), l.dispatchEvent(S);
|
|
2086
2088
|
}
|
|
2087
|
-
}, [a, n, r]), /* @__PURE__ */
|
|
2089
|
+
}, [a, n, r]), /* @__PURE__ */ f(
|
|
2088
2090
|
"input",
|
|
2089
2091
|
{
|
|
2090
2092
|
type: "checkbox",
|
|
@@ -2105,118 +2107,157 @@ var zs = "SwitchBubbleInput", Ar = P(
|
|
|
2105
2107
|
);
|
|
2106
2108
|
}
|
|
2107
2109
|
);
|
|
2108
|
-
|
|
2109
|
-
function
|
|
2110
|
+
Ir.displayName = Ls;
|
|
2111
|
+
function kr(e) {
|
|
2110
2112
|
return e ? "checked" : "unchecked";
|
|
2111
2113
|
}
|
|
2112
|
-
var
|
|
2113
|
-
const
|
|
2114
|
-
root:
|
|
2114
|
+
var Fs = Or, Us = Rr;
|
|
2115
|
+
const js = "_root_dibqz_1", Ws = "_thumb_dibqz_38", Le = {
|
|
2116
|
+
root: js,
|
|
2115
2117
|
switch: "_switch_dibqz_8",
|
|
2116
|
-
thumb:
|
|
2117
|
-
},
|
|
2118
|
-
e && /* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
] }),
|
|
2118
|
+
thumb: Ws
|
|
2119
|
+
}, Bs = ({ label: e, id: t, ...n }) => /* @__PURE__ */ f("div", { className: Le.root, children: [
|
|
2120
|
+
e && /* @__PURE__ */ f(ce, { className: Le.label, as: "label", htmlFor: t, children: e }),
|
|
2121
|
+
/* @__PURE__ */ f(Fs, { className: Le.switch, ...n, children: /* @__PURE__ */ f(Us, { className: Le.thumb }) })
|
|
2122
|
+
] }), Hs = /* @__PURE__ */ zi(/* @__PURE__ */ q(), /* @__PURE__ */ Re());
|
|
2123
|
+
class pn {
|
|
2124
|
+
#t;
|
|
2125
|
+
#e;
|
|
2126
|
+
#n;
|
|
2127
|
+
#r;
|
|
2128
|
+
constructor(t) {
|
|
2129
|
+
this.#t = t.domain, this.#e = t.prefix ?? "us-cookie-banner-", this.#n = t.sameSite ?? "lax", this.#r = t.secure ?? !0;
|
|
2130
|
+
}
|
|
2131
|
+
#o = (t) => btoa(String.fromCharCode(...new TextEncoder().encode(t)));
|
|
2132
|
+
#i = (t) => new TextDecoder().decode(
|
|
2133
|
+
Uint8Array.from(atob(t), (n) => n.charCodeAt(0))
|
|
2134
|
+
);
|
|
2135
|
+
set = (t, n, r = 365) => {
|
|
2136
|
+
const o = new Date(Date.now() + r * 24 * 60 * 60 * 1e3), i = `${this.#e}${t}=${this.#o(n)}; expires=${o}; path=/; domain=${this.#t}; SameSite=${this.#n}; ${this.#r ? "secure" : ""}`;
|
|
2137
|
+
document.cookie = i;
|
|
2138
|
+
};
|
|
2139
|
+
get = (t) => {
|
|
2140
|
+
const n = document.cookie.match(
|
|
2141
|
+
new RegExp(`(?:^|; )${this.#e}${t}=([^;]*)`)
|
|
2142
|
+
);
|
|
2143
|
+
if (!n) return null;
|
|
2144
|
+
const [r, o] = n;
|
|
2145
|
+
return o ? this.#i(o) : null;
|
|
2146
|
+
};
|
|
2147
|
+
remove = (t) => {
|
|
2148
|
+
this.set(t, "", -1);
|
|
2149
|
+
};
|
|
2150
|
+
}
|
|
2151
|
+
const _n = "selection", Tr = re(null), Zs = ({
|
|
2121
2152
|
children: e,
|
|
2122
2153
|
items: t,
|
|
2123
|
-
|
|
2154
|
+
cookie: n
|
|
2124
2155
|
}) => {
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2156
|
+
const { domain: r, prefix: o, sameSite: i, secure: c } = n, [s, a] = k(
|
|
2157
|
+
new pn({ domain: r, prefix: o, sameSite: i, secure: c })
|
|
2158
|
+
);
|
|
2159
|
+
N(() => {
|
|
2160
|
+
a(new pn({ domain: r, prefix: o, sameSite: i, secure: c }));
|
|
2161
|
+
}, [r, o, i, c]);
|
|
2162
|
+
function u() {
|
|
2163
|
+
const g = s.get(_n);
|
|
2164
|
+
if (!g) return null;
|
|
2165
|
+
const { success: E, data: C } = Hs.safeParse(
|
|
2166
|
+
JSON.parse(g)
|
|
2130
2167
|
);
|
|
2131
|
-
return
|
|
2168
|
+
return E ? C : null;
|
|
2132
2169
|
}
|
|
2133
|
-
const
|
|
2170
|
+
const l = x(
|
|
2134
2171
|
() => Object.fromEntries(
|
|
2135
2172
|
t.map((g) => [g.value, g.defaultSelected ?? !1])
|
|
2136
2173
|
),
|
|
2137
2174
|
[t]
|
|
2138
|
-
), [
|
|
2139
|
-
|
|
2140
|
-
), [
|
|
2141
|
-
|
|
2175
|
+
), [d, _] = k(
|
|
2176
|
+
u() ?? l
|
|
2177
|
+
), [v, S] = k(
|
|
2178
|
+
u()
|
|
2142
2179
|
);
|
|
2143
|
-
function
|
|
2144
|
-
const
|
|
2145
|
-
|
|
2180
|
+
function p(g, E) {
|
|
2181
|
+
const C = d ? { ...d, [g]: E } : { [g]: E };
|
|
2182
|
+
_(C);
|
|
2146
2183
|
}
|
|
2147
|
-
|
|
2184
|
+
N(() => {
|
|
2148
2185
|
let g = [];
|
|
2149
|
-
|
|
2150
|
-
const
|
|
2151
|
-
(
|
|
2186
|
+
v !== null && (g = Object.entries(v).filter(([C, w]) => w).map(([C]) => C));
|
|
2187
|
+
const E = t.filter(
|
|
2188
|
+
(C) => g.includes(C.value)
|
|
2152
2189
|
);
|
|
2153
|
-
for (const
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
}
|
|
2163
|
-
const { success: y, data: b } = Fi.safeParse(
|
|
2164
|
-
v.script
|
|
2165
|
-
);
|
|
2166
|
-
if (!y) {
|
|
2167
|
-
console.error(
|
|
2168
|
-
"CookieBanner: Invalid script definition for",
|
|
2169
|
-
v.value
|
|
2170
|
-
);
|
|
2190
|
+
for (const C of t)
|
|
2191
|
+
if (C.scripts)
|
|
2192
|
+
for (const w of C.scripts) {
|
|
2193
|
+
const R = document.head.querySelector(`#${C.value}-${w.id}`);
|
|
2194
|
+
R && R.remove();
|
|
2195
|
+
}
|
|
2196
|
+
for (const C of E) {
|
|
2197
|
+
if (!C.scripts) {
|
|
2198
|
+
C.required || console.warn("CookieBanner: Missing script for", C.value);
|
|
2171
2199
|
continue;
|
|
2172
2200
|
}
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2201
|
+
for (const w of C.scripts) {
|
|
2202
|
+
if (!w) continue;
|
|
2203
|
+
const R = document.createElement("script");
|
|
2204
|
+
R.id = `${C.value}-${w.id}`;
|
|
2205
|
+
const { success: Q, data: F } = ji.safeParse(w);
|
|
2206
|
+
if (!Q) {
|
|
2207
|
+
console.error(
|
|
2208
|
+
"CookieBanner: Invalid script definition for",
|
|
2209
|
+
C.value
|
|
2210
|
+
);
|
|
2211
|
+
continue;
|
|
2212
|
+
}
|
|
2213
|
+
switch (R.type = F.type ?? "text/javascript", R.async = F.async ?? !1, R.defer = F.defer ?? !1, F.variant) {
|
|
2214
|
+
case "inline":
|
|
2215
|
+
R.textContent = F.content;
|
|
2216
|
+
break;
|
|
2217
|
+
case "remote":
|
|
2218
|
+
R.src = F.src, R.crossOrigin = F.crossorigin ?? null, R.integrity = F.integrity ?? "";
|
|
2219
|
+
break;
|
|
2220
|
+
}
|
|
2221
|
+
document.head.appendChild(R);
|
|
2180
2222
|
}
|
|
2181
|
-
document.head.appendChild(h);
|
|
2182
2223
|
}
|
|
2183
|
-
}, [
|
|
2184
|
-
function
|
|
2185
|
-
|
|
2224
|
+
}, [v, t]);
|
|
2225
|
+
function h(g) {
|
|
2226
|
+
S(g), s.set(_n, JSON.stringify(g));
|
|
2186
2227
|
}
|
|
2187
|
-
const
|
|
2228
|
+
const y = z(() => {
|
|
2188
2229
|
const g = Object.fromEntries(
|
|
2189
|
-
t.map((
|
|
2230
|
+
t.map((E) => [E.value, !1])
|
|
2190
2231
|
);
|
|
2191
|
-
|
|
2192
|
-
}, [t]),
|
|
2193
|
-
|
|
2194
|
-
}, [
|
|
2195
|
-
if (!
|
|
2196
|
-
const g = Object.keys(
|
|
2197
|
-
return t.map((
|
|
2198
|
-
}, [
|
|
2199
|
-
return /* @__PURE__ */
|
|
2200
|
-
|
|
2232
|
+
_(g), h(g);
|
|
2233
|
+
}, [t]), m = z(() => {
|
|
2234
|
+
h(d), location.reload();
|
|
2235
|
+
}, [d]), b = x(() => {
|
|
2236
|
+
if (!v) return !1;
|
|
2237
|
+
const g = Object.keys(v);
|
|
2238
|
+
return t.map((C) => C.value).every((C) => g.includes(C));
|
|
2239
|
+
}, [v, t]);
|
|
2240
|
+
return /* @__PURE__ */ f(
|
|
2241
|
+
Tr.Provider,
|
|
2201
2242
|
{
|
|
2202
2243
|
value: {
|
|
2203
|
-
selection:
|
|
2204
|
-
toggleSelection:
|
|
2205
|
-
onDeclineAll:
|
|
2206
|
-
onSave:
|
|
2207
|
-
selectionTaken:
|
|
2244
|
+
selection: d,
|
|
2245
|
+
toggleSelection: p,
|
|
2246
|
+
onDeclineAll: y,
|
|
2247
|
+
onSave: m,
|
|
2248
|
+
selectionTaken: b
|
|
2208
2249
|
},
|
|
2209
2250
|
children: e
|
|
2210
2251
|
}
|
|
2211
2252
|
);
|
|
2212
2253
|
};
|
|
2213
|
-
function
|
|
2214
|
-
const e =
|
|
2254
|
+
function Dr() {
|
|
2255
|
+
const e = J(Tr);
|
|
2215
2256
|
if (!e)
|
|
2216
2257
|
throw new Error("useSelection must be used within a SelectionProvider");
|
|
2217
2258
|
return e;
|
|
2218
2259
|
}
|
|
2219
|
-
const
|
|
2260
|
+
const Vs = ({
|
|
2220
2261
|
value: e,
|
|
2221
2262
|
label: t,
|
|
2222
2263
|
sublabel: n,
|
|
@@ -2224,50 +2265,50 @@ const Hs = ({
|
|
|
2224
2265
|
description: o,
|
|
2225
2266
|
openItem: i
|
|
2226
2267
|
}) => {
|
|
2227
|
-
const { toggleSelection: c, selection: s } =
|
|
2268
|
+
const { toggleSelection: c, selection: s } = Dr(), a = x(
|
|
2228
2269
|
() => s?.[e] ?? !1,
|
|
2229
2270
|
[s, e]
|
|
2230
2271
|
);
|
|
2231
|
-
|
|
2272
|
+
N(() => {
|
|
2232
2273
|
c(e, a);
|
|
2233
2274
|
}, [e, a]);
|
|
2234
|
-
const u =
|
|
2275
|
+
const u = x(
|
|
2235
2276
|
() => r ? !0 : a,
|
|
2236
2277
|
[r, a]
|
|
2237
|
-
), l =
|
|
2278
|
+
), l = x(
|
|
2238
2279
|
() => (_) => r ? () => {
|
|
2239
2280
|
} : c(e, _),
|
|
2240
2281
|
[r, c, e]
|
|
2241
|
-
), d =
|
|
2242
|
-
return /* @__PURE__ */
|
|
2243
|
-
/* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
n && /* @__PURE__ */
|
|
2282
|
+
), d = x(() => r, [r]);
|
|
2283
|
+
return /* @__PURE__ */ f(Ss, { value: e, className: se.root, children: [
|
|
2284
|
+
/* @__PURE__ */ f("div", { className: se.header, children: [
|
|
2285
|
+
/* @__PURE__ */ f(dn, { asChild: !0, children: /* @__PURE__ */ f("div", { className: se.label, children: [
|
|
2286
|
+
/* @__PURE__ */ f(ce, { weight: "bold", children: t }),
|
|
2287
|
+
n && /* @__PURE__ */ f(ce, { size: "caption", color: "muted", children: n })
|
|
2247
2288
|
] }) }),
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
|
|
2289
|
+
/* @__PURE__ */ f("div", { className: se.actions, children: [
|
|
2290
|
+
/* @__PURE__ */ f(
|
|
2291
|
+
Bs,
|
|
2251
2292
|
{
|
|
2252
2293
|
checked: u,
|
|
2253
2294
|
onCheckedChange: l,
|
|
2254
2295
|
disabled: d
|
|
2255
2296
|
}
|
|
2256
2297
|
),
|
|
2257
|
-
/* @__PURE__ */
|
|
2258
|
-
|
|
2298
|
+
/* @__PURE__ */ f(dn, { asChild: !0, children: /* @__PURE__ */ f(
|
|
2299
|
+
Is,
|
|
2259
2300
|
{
|
|
2260
2301
|
size: 16,
|
|
2261
2302
|
className: He({
|
|
2262
|
-
[
|
|
2263
|
-
[
|
|
2303
|
+
[se.chevron]: !0,
|
|
2304
|
+
[se.open]: i === e
|
|
2264
2305
|
})
|
|
2265
2306
|
}
|
|
2266
2307
|
) })
|
|
2267
2308
|
] })
|
|
2268
2309
|
] }),
|
|
2269
|
-
o && /* @__PURE__ */
|
|
2270
|
-
|
|
2310
|
+
o && /* @__PURE__ */ f(ws, { className: se.description, children: /* @__PURE__ */ f(
|
|
2311
|
+
ce,
|
|
2271
2312
|
{
|
|
2272
2313
|
size: "caption",
|
|
2273
2314
|
dangerouslySetInnerHTML: { __html: o }
|
|
@@ -2276,25 +2317,25 @@ const Hs = ({
|
|
|
2276
2317
|
] });
|
|
2277
2318
|
};
|
|
2278
2319
|
function Ie(e) {
|
|
2279
|
-
const t =
|
|
2280
|
-
return
|
|
2320
|
+
const t = P(e);
|
|
2321
|
+
return N(() => {
|
|
2281
2322
|
t.current = e;
|
|
2282
|
-
}),
|
|
2323
|
+
}), x(() => (...n) => t.current?.(...n), []);
|
|
2283
2324
|
}
|
|
2284
|
-
function
|
|
2325
|
+
function Ks(e, t = globalThis?.document) {
|
|
2285
2326
|
const n = Ie(e);
|
|
2286
|
-
|
|
2327
|
+
N(() => {
|
|
2287
2328
|
const r = (o) => {
|
|
2288
2329
|
o.key === "Escape" && n(o);
|
|
2289
2330
|
};
|
|
2290
2331
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
2291
2332
|
}, [n, t]);
|
|
2292
2333
|
}
|
|
2293
|
-
var
|
|
2334
|
+
var qs = "DismissableLayer", bt = "dismissableLayer.update", Gs = "dismissableLayer.pointerDownOutside", Ys = "dismissableLayer.focusOutside", vn, xr = re({
|
|
2294
2335
|
layers: /* @__PURE__ */ new Set(),
|
|
2295
2336
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2296
2337
|
branches: /* @__PURE__ */ new Set()
|
|
2297
|
-
}),
|
|
2338
|
+
}), Mr = O(
|
|
2298
2339
|
(e, t) => {
|
|
2299
2340
|
const {
|
|
2300
2341
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -2304,65 +2345,65 @@ var Vs = "DismissableLayer", bt = "dismissableLayer.update", Ks = "dismissableLa
|
|
|
2304
2345
|
onInteractOutside: c,
|
|
2305
2346
|
onDismiss: s,
|
|
2306
2347
|
...a
|
|
2307
|
-
} = e, u =
|
|
2308
|
-
const
|
|
2309
|
-
!
|
|
2310
|
-
}, _),
|
|
2311
|
-
const
|
|
2312
|
-
[...u.branches].some((
|
|
2348
|
+
} = e, u = J(xr), [l, d] = k(null), _ = l?.ownerDocument ?? globalThis?.document, [, v] = k({}), S = U(t, (w) => d(w)), p = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(h), m = l ? p.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, g = m >= y, E = Qs((w) => {
|
|
2349
|
+
const R = w.target, Q = [...u.branches].some((F) => F.contains(R));
|
|
2350
|
+
!g || Q || (o?.(w), c?.(w), w.defaultPrevented || s?.());
|
|
2351
|
+
}, _), C = ec((w) => {
|
|
2352
|
+
const R = w.target;
|
|
2353
|
+
[...u.branches].some((F) => F.contains(R)) || (i?.(w), c?.(w), w.defaultPrevented || s?.());
|
|
2313
2354
|
}, _);
|
|
2314
|
-
return
|
|
2315
|
-
|
|
2316
|
-
}, _),
|
|
2355
|
+
return Ks((w) => {
|
|
2356
|
+
m === u.layers.size - 1 && (r?.(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
|
|
2357
|
+
}, _), N(() => {
|
|
2317
2358
|
if (l)
|
|
2318
|
-
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
2319
|
-
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents =
|
|
2359
|
+
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (vn = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), hn(), () => {
|
|
2360
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = vn);
|
|
2320
2361
|
};
|
|
2321
|
-
}, [l, _, n, u]),
|
|
2322
|
-
l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l),
|
|
2323
|
-
}, [l, u]),
|
|
2324
|
-
const
|
|
2325
|
-
return document.addEventListener(bt,
|
|
2326
|
-
}, []), /* @__PURE__ */
|
|
2327
|
-
|
|
2362
|
+
}, [l, _, n, u]), N(() => () => {
|
|
2363
|
+
l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), hn());
|
|
2364
|
+
}, [l, u]), N(() => {
|
|
2365
|
+
const w = () => v({});
|
|
2366
|
+
return document.addEventListener(bt, w), () => document.removeEventListener(bt, w);
|
|
2367
|
+
}, []), /* @__PURE__ */ f(
|
|
2368
|
+
L.div,
|
|
2328
2369
|
{
|
|
2329
2370
|
...a,
|
|
2330
|
-
ref:
|
|
2371
|
+
ref: S,
|
|
2331
2372
|
style: {
|
|
2332
|
-
pointerEvents: b ?
|
|
2373
|
+
pointerEvents: b ? g ? "auto" : "none" : void 0,
|
|
2333
2374
|
...e.style
|
|
2334
2375
|
},
|
|
2335
|
-
onFocusCapture:
|
|
2336
|
-
onBlurCapture:
|
|
2337
|
-
onPointerDownCapture:
|
|
2376
|
+
onFocusCapture: W(e.onFocusCapture, C.onFocusCapture),
|
|
2377
|
+
onBlurCapture: W(e.onBlurCapture, C.onBlurCapture),
|
|
2378
|
+
onPointerDownCapture: W(
|
|
2338
2379
|
e.onPointerDownCapture,
|
|
2339
|
-
|
|
2380
|
+
E.onPointerDownCapture
|
|
2340
2381
|
)
|
|
2341
2382
|
}
|
|
2342
2383
|
);
|
|
2343
2384
|
}
|
|
2344
2385
|
);
|
|
2345
|
-
|
|
2346
|
-
var
|
|
2347
|
-
const n =
|
|
2348
|
-
return
|
|
2386
|
+
Mr.displayName = qs;
|
|
2387
|
+
var Xs = "DismissableLayerBranch", Js = O((e, t) => {
|
|
2388
|
+
const n = J(xr), r = P(null), o = U(t, r);
|
|
2389
|
+
return N(() => {
|
|
2349
2390
|
const i = r.current;
|
|
2350
2391
|
if (i)
|
|
2351
2392
|
return n.branches.add(i), () => {
|
|
2352
2393
|
n.branches.delete(i);
|
|
2353
2394
|
};
|
|
2354
|
-
}, [n.branches]), /* @__PURE__ */
|
|
2395
|
+
}, [n.branches]), /* @__PURE__ */ f(L.div, { ...e, ref: o });
|
|
2355
2396
|
});
|
|
2356
|
-
|
|
2357
|
-
function
|
|
2358
|
-
const n = Ie(e), r =
|
|
2397
|
+
Js.displayName = Xs;
|
|
2398
|
+
function Qs(e, t = globalThis?.document) {
|
|
2399
|
+
const n = Ie(e), r = P(!1), o = P(() => {
|
|
2359
2400
|
});
|
|
2360
|
-
return
|
|
2401
|
+
return N(() => {
|
|
2361
2402
|
const i = (s) => {
|
|
2362
2403
|
if (s.target && !r.current) {
|
|
2363
2404
|
let a = function() {
|
|
2364
|
-
|
|
2365
|
-
|
|
2405
|
+
zr(
|
|
2406
|
+
Gs,
|
|
2366
2407
|
n,
|
|
2367
2408
|
u,
|
|
2368
2409
|
{ discrete: !0 }
|
|
@@ -2384,11 +2425,11 @@ function Xs(e, t = globalThis?.document) {
|
|
|
2384
2425
|
onPointerDownCapture: () => r.current = !0
|
|
2385
2426
|
};
|
|
2386
2427
|
}
|
|
2387
|
-
function
|
|
2388
|
-
const n = Ie(e), r =
|
|
2389
|
-
return
|
|
2428
|
+
function ec(e, t = globalThis?.document) {
|
|
2429
|
+
const n = Ie(e), r = P(!1);
|
|
2430
|
+
return N(() => {
|
|
2390
2431
|
const o = (i) => {
|
|
2391
|
-
i.target && !r.current &&
|
|
2432
|
+
i.target && !r.current && zr(Ys, n, { originalEvent: i }, {
|
|
2392
2433
|
discrete: !1
|
|
2393
2434
|
});
|
|
2394
2435
|
};
|
|
@@ -2398,22 +2439,22 @@ function Js(e, t = globalThis?.document) {
|
|
|
2398
2439
|
onBlurCapture: () => r.current = !1
|
|
2399
2440
|
};
|
|
2400
2441
|
}
|
|
2401
|
-
function
|
|
2442
|
+
function hn() {
|
|
2402
2443
|
const e = new CustomEvent(bt);
|
|
2403
2444
|
document.dispatchEvent(e);
|
|
2404
2445
|
}
|
|
2405
|
-
function
|
|
2446
|
+
function zr(e, t, n, { discrete: r }) {
|
|
2406
2447
|
const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
2407
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
2448
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? es(o, i) : o.dispatchEvent(i);
|
|
2408
2449
|
}
|
|
2409
|
-
var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount",
|
|
2450
|
+
var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", mn = { bubbles: !1, cancelable: !0 }, tc = "FocusScope", $r = O((e, t) => {
|
|
2410
2451
|
const {
|
|
2411
2452
|
loop: n = !1,
|
|
2412
2453
|
trapped: r = !1,
|
|
2413
2454
|
onMountAutoFocus: o,
|
|
2414
2455
|
onUnmountAutoFocus: i,
|
|
2415
2456
|
...c
|
|
2416
|
-
} = e, [s, a] =
|
|
2457
|
+
} = e, [s, a] = k(null), u = Ie(o), l = Ie(i), d = P(null), _ = U(t, (p) => a(p)), v = P({
|
|
2417
2458
|
paused: !1,
|
|
2418
2459
|
pause() {
|
|
2419
2460
|
this.paused = !0;
|
|
@@ -2422,67 +2463,67 @@ var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", vn
|
|
|
2422
2463
|
this.paused = !1;
|
|
2423
2464
|
}
|
|
2424
2465
|
}).current;
|
|
2425
|
-
|
|
2466
|
+
N(() => {
|
|
2426
2467
|
if (r) {
|
|
2427
|
-
let
|
|
2428
|
-
if (
|
|
2429
|
-
const
|
|
2430
|
-
s.contains(
|
|
2431
|
-
}, v = function(b) {
|
|
2432
|
-
if (m.paused || !s) return;
|
|
2433
|
-
const C = b.relatedTarget;
|
|
2434
|
-
C !== null && (s.contains(C) || X(d.current, { select: !0 }));
|
|
2468
|
+
let p = function(b) {
|
|
2469
|
+
if (v.paused || !s) return;
|
|
2470
|
+
const g = b.target;
|
|
2471
|
+
s.contains(g) ? d.current = g : ee(d.current, { select: !0 });
|
|
2435
2472
|
}, h = function(b) {
|
|
2473
|
+
if (v.paused || !s) return;
|
|
2474
|
+
const g = b.relatedTarget;
|
|
2475
|
+
g !== null && (s.contains(g) || ee(d.current, { select: !0 }));
|
|
2476
|
+
}, y = function(b) {
|
|
2436
2477
|
if (document.activeElement === document.body)
|
|
2437
|
-
for (const
|
|
2438
|
-
|
|
2478
|
+
for (const E of b)
|
|
2479
|
+
E.removedNodes.length > 0 && ee(s);
|
|
2439
2480
|
};
|
|
2440
|
-
document.addEventListener("focusin",
|
|
2441
|
-
const
|
|
2442
|
-
return s &&
|
|
2443
|
-
document.removeEventListener("focusin",
|
|
2481
|
+
document.addEventListener("focusin", p), document.addEventListener("focusout", h);
|
|
2482
|
+
const m = new MutationObserver(y);
|
|
2483
|
+
return s && m.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
2484
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", h), m.disconnect();
|
|
2444
2485
|
};
|
|
2445
2486
|
}
|
|
2446
|
-
}, [r, s,
|
|
2487
|
+
}, [r, s, v.paused]), N(() => {
|
|
2447
2488
|
if (s) {
|
|
2448
|
-
|
|
2449
|
-
const
|
|
2450
|
-
if (!s.contains(
|
|
2451
|
-
const
|
|
2452
|
-
s.addEventListener(lt, u), s.dispatchEvent(
|
|
2489
|
+
yn.add(v);
|
|
2490
|
+
const p = document.activeElement;
|
|
2491
|
+
if (!s.contains(p)) {
|
|
2492
|
+
const y = new CustomEvent(lt, mn);
|
|
2493
|
+
s.addEventListener(lt, u), s.dispatchEvent(y), y.defaultPrevented || (nc(cc(Lr(s)), { select: !0 }), document.activeElement === p && ee(s));
|
|
2453
2494
|
}
|
|
2454
2495
|
return () => {
|
|
2455
2496
|
s.removeEventListener(lt, u), setTimeout(() => {
|
|
2456
|
-
const
|
|
2457
|
-
s.addEventListener(dt, l), s.dispatchEvent(
|
|
2497
|
+
const y = new CustomEvent(dt, mn);
|
|
2498
|
+
s.addEventListener(dt, l), s.dispatchEvent(y), y.defaultPrevented || ee(p ?? document.body, { select: !0 }), s.removeEventListener(dt, l), yn.remove(v);
|
|
2458
2499
|
}, 0);
|
|
2459
2500
|
};
|
|
2460
2501
|
}
|
|
2461
|
-
}, [s, u, l,
|
|
2462
|
-
const
|
|
2463
|
-
(
|
|
2464
|
-
if (!n && !r ||
|
|
2465
|
-
const
|
|
2466
|
-
if (
|
|
2467
|
-
const
|
|
2468
|
-
b &&
|
|
2502
|
+
}, [s, u, l, v]);
|
|
2503
|
+
const S = z(
|
|
2504
|
+
(p) => {
|
|
2505
|
+
if (!n && !r || v.paused) return;
|
|
2506
|
+
const h = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
|
|
2507
|
+
if (h && y) {
|
|
2508
|
+
const m = p.currentTarget, [b, g] = rc(m);
|
|
2509
|
+
b && g ? !p.shiftKey && y === g ? (p.preventDefault(), n && ee(b, { select: !0 })) : p.shiftKey && y === b && (p.preventDefault(), n && ee(g, { select: !0 })) : y === m && p.preventDefault();
|
|
2469
2510
|
}
|
|
2470
2511
|
},
|
|
2471
|
-
[n, r,
|
|
2512
|
+
[n, r, v.paused]
|
|
2472
2513
|
);
|
|
2473
|
-
return /* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ f(L.div, { tabIndex: -1, ...c, ref: _, onKeyDown: S });
|
|
2474
2515
|
});
|
|
2475
|
-
|
|
2476
|
-
function
|
|
2516
|
+
$r.displayName = tc;
|
|
2517
|
+
function nc(e, { select: t = !1 } = {}) {
|
|
2477
2518
|
const n = document.activeElement;
|
|
2478
2519
|
for (const r of e)
|
|
2479
|
-
if (
|
|
2520
|
+
if (ee(r, { select: t }), document.activeElement !== n) return;
|
|
2480
2521
|
}
|
|
2481
|
-
function
|
|
2482
|
-
const t =
|
|
2522
|
+
function rc(e) {
|
|
2523
|
+
const t = Lr(e), n = gn(t, e), r = gn(t.reverse(), e);
|
|
2483
2524
|
return [n, r];
|
|
2484
2525
|
}
|
|
2485
|
-
function
|
|
2526
|
+
function Lr(e) {
|
|
2486
2527
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
2487
2528
|
acceptNode: (r) => {
|
|
2488
2529
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -2492,11 +2533,11 @@ function zr(e) {
|
|
|
2492
2533
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
2493
2534
|
return t;
|
|
2494
2535
|
}
|
|
2495
|
-
function
|
|
2536
|
+
function gn(e, t) {
|
|
2496
2537
|
for (const n of e)
|
|
2497
|
-
if (!
|
|
2538
|
+
if (!oc(n, { upTo: t })) return n;
|
|
2498
2539
|
}
|
|
2499
|
-
function
|
|
2540
|
+
function oc(e, { upTo: t }) {
|
|
2500
2541
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
2501
2542
|
for (; e; ) {
|
|
2502
2543
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -2505,58 +2546,58 @@ function nc(e, { upTo: t }) {
|
|
|
2505
2546
|
}
|
|
2506
2547
|
return !1;
|
|
2507
2548
|
}
|
|
2508
|
-
function
|
|
2549
|
+
function ic(e) {
|
|
2509
2550
|
return e instanceof HTMLInputElement && "select" in e;
|
|
2510
2551
|
}
|
|
2511
|
-
function
|
|
2552
|
+
function ee(e, { select: t = !1 } = {}) {
|
|
2512
2553
|
if (e && e.focus) {
|
|
2513
2554
|
const n = document.activeElement;
|
|
2514
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
2555
|
+
e.focus({ preventScroll: !0 }), e !== n && ic(e) && t && e.select();
|
|
2515
2556
|
}
|
|
2516
2557
|
}
|
|
2517
|
-
var
|
|
2518
|
-
function
|
|
2558
|
+
var yn = sc();
|
|
2559
|
+
function sc() {
|
|
2519
2560
|
let e = [];
|
|
2520
2561
|
return {
|
|
2521
2562
|
add(t) {
|
|
2522
2563
|
const n = e[0];
|
|
2523
|
-
t !== n && n?.pause(), e =
|
|
2564
|
+
t !== n && n?.pause(), e = bn(e, t), e.unshift(t);
|
|
2524
2565
|
},
|
|
2525
2566
|
remove(t) {
|
|
2526
|
-
e =
|
|
2567
|
+
e = bn(e, t), e[0]?.resume();
|
|
2527
2568
|
}
|
|
2528
2569
|
};
|
|
2529
2570
|
}
|
|
2530
|
-
function
|
|
2571
|
+
function bn(e, t) {
|
|
2531
2572
|
const n = [...e], r = n.indexOf(t);
|
|
2532
2573
|
return r !== -1 && n.splice(r, 1), n;
|
|
2533
2574
|
}
|
|
2534
|
-
function
|
|
2575
|
+
function cc(e) {
|
|
2535
2576
|
return e.filter((t) => t.tagName !== "A");
|
|
2536
2577
|
}
|
|
2537
2578
|
var ft = 0;
|
|
2538
|
-
function
|
|
2539
|
-
|
|
2579
|
+
function ac() {
|
|
2580
|
+
N(() => {
|
|
2540
2581
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
2541
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
2582
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Cn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Cn()), ft++, () => {
|
|
2542
2583
|
ft === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ft--;
|
|
2543
2584
|
};
|
|
2544
2585
|
}, []);
|
|
2545
2586
|
}
|
|
2546
|
-
function
|
|
2587
|
+
function Cn() {
|
|
2547
2588
|
const e = document.createElement("span");
|
|
2548
2589
|
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;
|
|
2549
2590
|
}
|
|
2550
|
-
var
|
|
2551
|
-
return
|
|
2591
|
+
var Z = function() {
|
|
2592
|
+
return Z = Object.assign || function(t) {
|
|
2552
2593
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
2553
2594
|
n = arguments[r];
|
|
2554
2595
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
2555
2596
|
}
|
|
2556
2597
|
return t;
|
|
2557
|
-
},
|
|
2598
|
+
}, Z.apply(this, arguments);
|
|
2558
2599
|
};
|
|
2559
|
-
function
|
|
2600
|
+
function Fr(e, t) {
|
|
2560
2601
|
var n = {};
|
|
2561
2602
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2562
2603
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2564,17 +2605,17 @@ function $r(e, t) {
|
|
|
2564
2605
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2565
2606
|
return n;
|
|
2566
2607
|
}
|
|
2567
|
-
function
|
|
2608
|
+
function uc(e, t, n) {
|
|
2568
2609
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
|
|
2569
2610
|
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
2570
2611
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
2571
2612
|
}
|
|
2572
|
-
var Ze = "right-scroll-bar-position", Ve = "width-before-scroll-bar",
|
|
2613
|
+
var Ze = "right-scroll-bar-position", Ve = "width-before-scroll-bar", lc = "with-scroll-bars-hidden", dc = "--removed-body-scroll-bar-size";
|
|
2573
2614
|
function pt(e, t) {
|
|
2574
2615
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2575
2616
|
}
|
|
2576
|
-
function
|
|
2577
|
-
var n =
|
|
2617
|
+
function fc(e, t) {
|
|
2618
|
+
var n = k(function() {
|
|
2578
2619
|
return {
|
|
2579
2620
|
// value
|
|
2580
2621
|
value: e,
|
|
@@ -2594,15 +2635,15 @@ function lc(e, t) {
|
|
|
2594
2635
|
})[0];
|
|
2595
2636
|
return n.callback = t, n.facade;
|
|
2596
2637
|
}
|
|
2597
|
-
var
|
|
2598
|
-
function
|
|
2599
|
-
var n =
|
|
2638
|
+
var pc = typeof window < "u" ? oe : N, Sn = /* @__PURE__ */ new WeakMap();
|
|
2639
|
+
function _c(e, t) {
|
|
2640
|
+
var n = fc(null, function(r) {
|
|
2600
2641
|
return e.forEach(function(o) {
|
|
2601
2642
|
return pt(o, r);
|
|
2602
2643
|
});
|
|
2603
2644
|
});
|
|
2604
|
-
return
|
|
2605
|
-
var r =
|
|
2645
|
+
return pc(function() {
|
|
2646
|
+
var r = Sn.get(n);
|
|
2606
2647
|
if (r) {
|
|
2607
2648
|
var o = new Set(r), i = new Set(e), c = n.current;
|
|
2608
2649
|
o.forEach(function(s) {
|
|
@@ -2611,14 +2652,14 @@ function fc(e, t) {
|
|
|
2611
2652
|
o.has(s) || pt(s, c);
|
|
2612
2653
|
});
|
|
2613
2654
|
}
|
|
2614
|
-
|
|
2655
|
+
Sn.set(n, e);
|
|
2615
2656
|
}, [e]), n;
|
|
2616
2657
|
}
|
|
2617
|
-
function
|
|
2658
|
+
function vc(e) {
|
|
2618
2659
|
return e;
|
|
2619
2660
|
}
|
|
2620
|
-
function
|
|
2621
|
-
t === void 0 && (t =
|
|
2661
|
+
function hc(e, t) {
|
|
2662
|
+
t === void 0 && (t = vc);
|
|
2622
2663
|
var n = [], r = !1, o = {
|
|
2623
2664
|
read: function() {
|
|
2624
2665
|
if (r)
|
|
@@ -2672,36 +2713,36 @@ function _c(e, t) {
|
|
|
2672
2713
|
};
|
|
2673
2714
|
return o;
|
|
2674
2715
|
}
|
|
2675
|
-
function
|
|
2716
|
+
function mc(e) {
|
|
2676
2717
|
e === void 0 && (e = {});
|
|
2677
|
-
var t =
|
|
2678
|
-
return t.options =
|
|
2718
|
+
var t = hc(null);
|
|
2719
|
+
return t.options = Z({ async: !0, ssr: !1 }, e), t;
|
|
2679
2720
|
}
|
|
2680
|
-
var
|
|
2681
|
-
var t = e.sideCar, n =
|
|
2721
|
+
var Ur = function(e) {
|
|
2722
|
+
var t = e.sideCar, n = Fr(e, ["sideCar"]);
|
|
2682
2723
|
if (!t)
|
|
2683
2724
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2684
2725
|
var r = t.read();
|
|
2685
2726
|
if (!r)
|
|
2686
2727
|
throw new Error("Sidecar medium not found");
|
|
2687
|
-
return
|
|
2728
|
+
return D(r, Z({}, n));
|
|
2688
2729
|
};
|
|
2689
|
-
|
|
2690
|
-
function
|
|
2691
|
-
return e.useMedium(t),
|
|
2730
|
+
Ur.isSideCarExport = !0;
|
|
2731
|
+
function gc(e, t) {
|
|
2732
|
+
return e.useMedium(t), Ur;
|
|
2692
2733
|
}
|
|
2693
|
-
var
|
|
2694
|
-
}, it =
|
|
2695
|
-
var n =
|
|
2734
|
+
var jr = mc(), _t = function() {
|
|
2735
|
+
}, it = O(function(e, t) {
|
|
2736
|
+
var n = P(null), r = k({
|
|
2696
2737
|
onScrollCapture: _t,
|
|
2697
2738
|
onWheelCapture: _t,
|
|
2698
2739
|
onTouchMoveCapture: _t
|
|
2699
|
-
}), o = r[0], i = r[1], c = e.forwardProps, s = e.children, a = e.className, u = e.removeScrollBar, l = e.enabled, d = e.shards, _ = e.sideCar,
|
|
2700
|
-
return
|
|
2701
|
-
|
|
2740
|
+
}), o = r[0], i = r[1], c = e.forwardProps, s = e.children, a = e.className, u = e.removeScrollBar, l = e.enabled, d = e.shards, _ = e.sideCar, v = e.noRelative, S = e.noIsolation, p = e.inert, h = e.allowPinchZoom, y = e.as, m = y === void 0 ? "div" : y, b = e.gapMode, g = Fr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = _, C = _c([n, t]), w = Z(Z({}, g), o);
|
|
2741
|
+
return D(
|
|
2742
|
+
B,
|
|
2702
2743
|
null,
|
|
2703
|
-
l &&
|
|
2704
|
-
c ?
|
|
2744
|
+
l && D(E, { sideCar: jr, removeScrollBar: u, shards: d, noRelative: v, noIsolation: S, inert: p, setCallbacks: i, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
|
|
2745
|
+
c ? ye(G.only(s), Z(Z({}, w), { ref: C })) : D(m, Z({}, w, { className: a, ref: C }), s)
|
|
2705
2746
|
);
|
|
2706
2747
|
});
|
|
2707
2748
|
it.defaultProps = {
|
|
@@ -2713,78 +2754,78 @@ it.classNames = {
|
|
|
2713
2754
|
fullWidth: Ve,
|
|
2714
2755
|
zeroRight: Ze
|
|
2715
2756
|
};
|
|
2716
|
-
var
|
|
2757
|
+
var yc = function() {
|
|
2717
2758
|
if (typeof __webpack_nonce__ < "u")
|
|
2718
2759
|
return __webpack_nonce__;
|
|
2719
2760
|
};
|
|
2720
|
-
function
|
|
2761
|
+
function bc() {
|
|
2721
2762
|
if (!document)
|
|
2722
2763
|
return null;
|
|
2723
2764
|
var e = document.createElement("style");
|
|
2724
2765
|
e.type = "text/css";
|
|
2725
|
-
var t =
|
|
2766
|
+
var t = yc();
|
|
2726
2767
|
return t && e.setAttribute("nonce", t), e;
|
|
2727
2768
|
}
|
|
2728
|
-
function
|
|
2769
|
+
function Cc(e, t) {
|
|
2729
2770
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2730
2771
|
}
|
|
2731
|
-
function
|
|
2772
|
+
function Sc(e) {
|
|
2732
2773
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
2733
2774
|
t.appendChild(e);
|
|
2734
2775
|
}
|
|
2735
|
-
var
|
|
2776
|
+
var wc = function() {
|
|
2736
2777
|
var e = 0, t = null;
|
|
2737
2778
|
return {
|
|
2738
2779
|
add: function(n) {
|
|
2739
|
-
e == 0 && (t =
|
|
2780
|
+
e == 0 && (t = bc()) && (Cc(t, n), Sc(t)), e++;
|
|
2740
2781
|
},
|
|
2741
2782
|
remove: function() {
|
|
2742
2783
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2743
2784
|
}
|
|
2744
2785
|
};
|
|
2745
|
-
},
|
|
2746
|
-
var e =
|
|
2786
|
+
}, Ec = function() {
|
|
2787
|
+
var e = wc();
|
|
2747
2788
|
return function(t, n) {
|
|
2748
|
-
|
|
2789
|
+
N(function() {
|
|
2749
2790
|
return e.add(t), function() {
|
|
2750
2791
|
e.remove();
|
|
2751
2792
|
};
|
|
2752
2793
|
}, [t && n]);
|
|
2753
2794
|
};
|
|
2754
|
-
},
|
|
2755
|
-
var e =
|
|
2795
|
+
}, Wr = function() {
|
|
2796
|
+
var e = Ec(), t = function(n) {
|
|
2756
2797
|
var r = n.styles, o = n.dynamic;
|
|
2757
2798
|
return e(r, o), null;
|
|
2758
2799
|
};
|
|
2759
2800
|
return t;
|
|
2760
|
-
},
|
|
2801
|
+
}, Pc = {
|
|
2761
2802
|
left: 0,
|
|
2762
2803
|
top: 0,
|
|
2763
2804
|
right: 0,
|
|
2764
2805
|
gap: 0
|
|
2765
2806
|
}, vt = function(e) {
|
|
2766
2807
|
return parseInt(e || "", 10) || 0;
|
|
2767
|
-
},
|
|
2808
|
+
}, Nc = function(e) {
|
|
2768
2809
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2769
2810
|
return [vt(n), vt(r), vt(o)];
|
|
2770
|
-
},
|
|
2811
|
+
}, Oc = function(e) {
|
|
2771
2812
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2772
|
-
return
|
|
2773
|
-
var t =
|
|
2813
|
+
return Pc;
|
|
2814
|
+
var t = Nc(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2774
2815
|
return {
|
|
2775
2816
|
left: t[0],
|
|
2776
2817
|
top: t[1],
|
|
2777
2818
|
right: t[2],
|
|
2778
2819
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2779
2820
|
};
|
|
2780
|
-
},
|
|
2821
|
+
}, Ac = Wr(), he = "data-scroll-locked", Rc = function(e, t, n, r) {
|
|
2781
2822
|
var o = e.left, i = e.top, c = e.right, s = e.gap;
|
|
2782
2823
|
return n === void 0 && (n = "margin"), `
|
|
2783
|
-
.`.concat(
|
|
2824
|
+
.`.concat(lc, ` {
|
|
2784
2825
|
overflow: hidden `).concat(r, `;
|
|
2785
2826
|
padding-right: `).concat(s, "px ").concat(r, `;
|
|
2786
2827
|
}
|
|
2787
|
-
body[`).concat(
|
|
2828
|
+
body[`).concat(he, `] {
|
|
2788
2829
|
overflow: hidden `).concat(r, `;
|
|
2789
2830
|
overscroll-behavior: contain;
|
|
2790
2831
|
`).concat([
|
|
@@ -2817,27 +2858,27 @@ var Cc = function() {
|
|
|
2817
2858
|
margin-right: 0 `).concat(r, `;
|
|
2818
2859
|
}
|
|
2819
2860
|
|
|
2820
|
-
body[`).concat(
|
|
2821
|
-
`).concat(
|
|
2861
|
+
body[`).concat(he, `] {
|
|
2862
|
+
`).concat(dc, ": ").concat(s, `px;
|
|
2822
2863
|
}
|
|
2823
2864
|
`);
|
|
2824
|
-
},
|
|
2825
|
-
var e = parseInt(document.body.getAttribute(
|
|
2865
|
+
}, wn = function() {
|
|
2866
|
+
var e = parseInt(document.body.getAttribute(he) || "0", 10);
|
|
2826
2867
|
return isFinite(e) ? e : 0;
|
|
2827
|
-
},
|
|
2828
|
-
|
|
2829
|
-
return document.body.setAttribute(
|
|
2830
|
-
var e =
|
|
2831
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2868
|
+
}, Ic = function() {
|
|
2869
|
+
N(function() {
|
|
2870
|
+
return document.body.setAttribute(he, (wn() + 1).toString()), function() {
|
|
2871
|
+
var e = wn() - 1;
|
|
2872
|
+
e <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, e.toString());
|
|
2832
2873
|
};
|
|
2833
2874
|
}, []);
|
|
2834
|
-
},
|
|
2875
|
+
}, kc = function(e) {
|
|
2835
2876
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
2836
|
-
|
|
2837
|
-
var i =
|
|
2838
|
-
return
|
|
2877
|
+
Ic();
|
|
2878
|
+
var i = x(function() {
|
|
2879
|
+
return Oc(o);
|
|
2839
2880
|
}, [o]);
|
|
2840
|
-
return
|
|
2881
|
+
return D(Ac, { styles: Rc(i, !t, o, n ? "" : "!important") });
|
|
2841
2882
|
}, Ct = !1;
|
|
2842
2883
|
if (typeof window < "u")
|
|
2843
2884
|
try {
|
|
@@ -2850,63 +2891,63 @@ if (typeof window < "u")
|
|
|
2850
2891
|
} catch {
|
|
2851
2892
|
Ct = !1;
|
|
2852
2893
|
}
|
|
2853
|
-
var
|
|
2894
|
+
var fe = Ct ? { passive: !1 } : !1, Tc = function(e) {
|
|
2854
2895
|
return e.tagName === "TEXTAREA";
|
|
2855
|
-
},
|
|
2896
|
+
}, Br = function(e, t) {
|
|
2856
2897
|
if (!(e instanceof Element))
|
|
2857
2898
|
return !1;
|
|
2858
2899
|
var n = window.getComputedStyle(e);
|
|
2859
2900
|
return (
|
|
2860
2901
|
// not-not-scrollable
|
|
2861
2902
|
n[t] !== "hidden" && // contains scroll inside self
|
|
2862
|
-
!(n.overflowY === n.overflowX && !
|
|
2903
|
+
!(n.overflowY === n.overflowX && !Tc(e) && n[t] === "visible")
|
|
2863
2904
|
);
|
|
2864
|
-
},
|
|
2865
|
-
return
|
|
2866
|
-
},
|
|
2867
|
-
return
|
|
2868
|
-
},
|
|
2905
|
+
}, Dc = function(e) {
|
|
2906
|
+
return Br(e, "overflowY");
|
|
2907
|
+
}, xc = function(e) {
|
|
2908
|
+
return Br(e, "overflowX");
|
|
2909
|
+
}, En = function(e, t) {
|
|
2869
2910
|
var n = t.ownerDocument, r = t;
|
|
2870
2911
|
do {
|
|
2871
2912
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
2872
|
-
var o =
|
|
2913
|
+
var o = Hr(e, r);
|
|
2873
2914
|
if (o) {
|
|
2874
|
-
var i =
|
|
2915
|
+
var i = Zr(e, r), c = i[1], s = i[2];
|
|
2875
2916
|
if (c > s)
|
|
2876
2917
|
return !0;
|
|
2877
2918
|
}
|
|
2878
2919
|
r = r.parentNode;
|
|
2879
2920
|
} while (r && r !== n.body);
|
|
2880
2921
|
return !1;
|
|
2881
|
-
},
|
|
2922
|
+
}, Mc = function(e) {
|
|
2882
2923
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
2883
2924
|
return [
|
|
2884
2925
|
t,
|
|
2885
2926
|
n,
|
|
2886
2927
|
r
|
|
2887
2928
|
];
|
|
2888
|
-
},
|
|
2929
|
+
}, zc = function(e) {
|
|
2889
2930
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
2890
2931
|
return [
|
|
2891
2932
|
t,
|
|
2892
2933
|
n,
|
|
2893
2934
|
r
|
|
2894
2935
|
];
|
|
2895
|
-
},
|
|
2896
|
-
return e === "v" ? Tc(t) : kc(t);
|
|
2897
|
-
}, Br = function(e, t) {
|
|
2936
|
+
}, Hr = function(e, t) {
|
|
2898
2937
|
return e === "v" ? Dc(t) : xc(t);
|
|
2899
|
-
},
|
|
2938
|
+
}, Zr = function(e, t) {
|
|
2939
|
+
return e === "v" ? Mc(t) : zc(t);
|
|
2940
|
+
}, $c = function(e, t) {
|
|
2900
2941
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2901
|
-
},
|
|
2902
|
-
var i =
|
|
2942
|
+
}, Lc = function(e, t, n, r, o) {
|
|
2943
|
+
var i = $c(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, a = t.contains(s), u = !1, l = c > 0, d = 0, _ = 0;
|
|
2903
2944
|
do {
|
|
2904
2945
|
if (!s)
|
|
2905
2946
|
break;
|
|
2906
|
-
var
|
|
2907
|
-
(
|
|
2908
|
-
var
|
|
2909
|
-
s =
|
|
2947
|
+
var v = Zr(e, s), S = v[0], p = v[1], h = v[2], y = p - h - i * S;
|
|
2948
|
+
(S || y) && Hr(e, s) && (d += y, _ += S);
|
|
2949
|
+
var m = s.parentNode;
|
|
2950
|
+
s = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
|
|
2910
2951
|
} while (
|
|
2911
2952
|
// portaled content
|
|
2912
2953
|
!a && s !== document.body || // self content
|
|
@@ -2915,131 +2956,131 @@ var de = Ct ? { passive: !1 } : !1, Ic = function(e) {
|
|
|
2915
2956
|
return (l && Math.abs(d) < 1 || !l && Math.abs(_) < 1) && (u = !0), u;
|
|
2916
2957
|
}, Ue = function(e) {
|
|
2917
2958
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2918
|
-
},
|
|
2959
|
+
}, Pn = function(e) {
|
|
2919
2960
|
return [e.deltaX, e.deltaY];
|
|
2920
|
-
},
|
|
2961
|
+
}, Nn = function(e) {
|
|
2921
2962
|
return e && "current" in e ? e.current : e;
|
|
2922
|
-
},
|
|
2963
|
+
}, Fc = function(e, t) {
|
|
2923
2964
|
return e[0] === t[0] && e[1] === t[1];
|
|
2924
|
-
},
|
|
2965
|
+
}, Uc = function(e) {
|
|
2925
2966
|
return `
|
|
2926
2967
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
2927
2968
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
2928
2969
|
`);
|
|
2929
|
-
},
|
|
2930
|
-
function
|
|
2931
|
-
var t =
|
|
2932
|
-
|
|
2970
|
+
}, jc = 0, pe = [];
|
|
2971
|
+
function Wc(e) {
|
|
2972
|
+
var t = P([]), n = P([0, 0]), r = P(), o = k(jc++)[0], i = k(Wr)[0], c = P(e);
|
|
2973
|
+
N(function() {
|
|
2933
2974
|
c.current = e;
|
|
2934
|
-
}, [e]),
|
|
2975
|
+
}, [e]), N(function() {
|
|
2935
2976
|
if (e.inert) {
|
|
2936
2977
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
2937
|
-
var
|
|
2938
|
-
return
|
|
2939
|
-
return
|
|
2978
|
+
var p = uc([e.lockRef.current], (e.shards || []).map(Nn), !0).filter(Boolean);
|
|
2979
|
+
return p.forEach(function(h) {
|
|
2980
|
+
return h.classList.add("allow-interactivity-".concat(o));
|
|
2940
2981
|
}), function() {
|
|
2941
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
2942
|
-
return
|
|
2982
|
+
document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(h) {
|
|
2983
|
+
return h.classList.remove("allow-interactivity-".concat(o));
|
|
2943
2984
|
});
|
|
2944
2985
|
};
|
|
2945
2986
|
}
|
|
2946
2987
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
2947
|
-
var s =
|
|
2948
|
-
if ("touches" in
|
|
2988
|
+
var s = z(function(p, h) {
|
|
2989
|
+
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
2949
2990
|
return !c.current.allowPinchZoom;
|
|
2950
|
-
var
|
|
2951
|
-
if ("touches" in
|
|
2991
|
+
var y = Ue(p), m = n.current, b = "deltaX" in p ? p.deltaX : m[0] - y[0], g = "deltaY" in p ? p.deltaY : m[1] - y[1], E, C = p.target, w = Math.abs(b) > Math.abs(g) ? "h" : "v";
|
|
2992
|
+
if ("touches" in p && w === "h" && C.type === "range")
|
|
2952
2993
|
return !1;
|
|
2953
|
-
var
|
|
2954
|
-
if (
|
|
2994
|
+
var R = window.getSelection(), Q = R && R.anchorNode, F = Q ? Q === C || Q.contains(C) : !1;
|
|
2995
|
+
if (F)
|
|
2955
2996
|
return !1;
|
|
2956
|
-
var xe =
|
|
2997
|
+
var xe = En(w, C);
|
|
2957
2998
|
if (!xe)
|
|
2958
2999
|
return !0;
|
|
2959
|
-
if (xe ?
|
|
3000
|
+
if (xe ? E = w : (E = w === "v" ? "h" : "v", xe = En(w, C)), !xe)
|
|
2960
3001
|
return !1;
|
|
2961
|
-
if (!r.current && "changedTouches" in
|
|
3002
|
+
if (!r.current && "changedTouches" in p && (b || g) && (r.current = E), !E)
|
|
2962
3003
|
return !0;
|
|
2963
|
-
var jt = r.current ||
|
|
2964
|
-
return
|
|
2965
|
-
}, []), a =
|
|
2966
|
-
var
|
|
2967
|
-
if (!(!
|
|
2968
|
-
var
|
|
2969
|
-
return
|
|
3004
|
+
var jt = r.current || E;
|
|
3005
|
+
return Lc(jt, h, p, jt === "h" ? b : g);
|
|
3006
|
+
}, []), a = z(function(p) {
|
|
3007
|
+
var h = p;
|
|
3008
|
+
if (!(!pe.length || pe[pe.length - 1] !== i)) {
|
|
3009
|
+
var y = "deltaY" in h ? Pn(h) : Ue(h), m = t.current.filter(function(E) {
|
|
3010
|
+
return E.name === h.type && (E.target === h.target || h.target === E.shadowParent) && Fc(E.delta, y);
|
|
2970
3011
|
})[0];
|
|
2971
|
-
if (
|
|
2972
|
-
|
|
3012
|
+
if (m && m.should) {
|
|
3013
|
+
h.cancelable && h.preventDefault();
|
|
2973
3014
|
return;
|
|
2974
3015
|
}
|
|
2975
|
-
if (!
|
|
2976
|
-
var b = (c.current.shards || []).map(
|
|
2977
|
-
return
|
|
2978
|
-
}),
|
|
2979
|
-
|
|
3016
|
+
if (!m) {
|
|
3017
|
+
var b = (c.current.shards || []).map(Nn).filter(Boolean).filter(function(E) {
|
|
3018
|
+
return E.contains(h.target);
|
|
3019
|
+
}), g = b.length > 0 ? s(h, b[0]) : !c.current.noIsolation;
|
|
3020
|
+
g && h.cancelable && h.preventDefault();
|
|
2980
3021
|
}
|
|
2981
3022
|
}
|
|
2982
|
-
}, []), u =
|
|
2983
|
-
var b = { name:
|
|
3023
|
+
}, []), u = z(function(p, h, y, m) {
|
|
3024
|
+
var b = { name: p, delta: h, target: y, should: m, shadowParent: Bc(y) };
|
|
2984
3025
|
t.current.push(b), setTimeout(function() {
|
|
2985
|
-
t.current = t.current.filter(function(
|
|
2986
|
-
return
|
|
3026
|
+
t.current = t.current.filter(function(g) {
|
|
3027
|
+
return g !== b;
|
|
2987
3028
|
});
|
|
2988
3029
|
}, 1);
|
|
2989
|
-
}, []), l =
|
|
2990
|
-
n.current = Ue(
|
|
2991
|
-
}, []), d =
|
|
2992
|
-
u(
|
|
2993
|
-
}, []), _ =
|
|
2994
|
-
u(
|
|
3030
|
+
}, []), l = z(function(p) {
|
|
3031
|
+
n.current = Ue(p), r.current = void 0;
|
|
3032
|
+
}, []), d = z(function(p) {
|
|
3033
|
+
u(p.type, Pn(p), p.target, s(p, e.lockRef.current));
|
|
3034
|
+
}, []), _ = z(function(p) {
|
|
3035
|
+
u(p.type, Ue(p), p.target, s(p, e.lockRef.current));
|
|
2995
3036
|
}, []);
|
|
2996
|
-
|
|
2997
|
-
return
|
|
3037
|
+
N(function() {
|
|
3038
|
+
return pe.push(i), e.setCallbacks({
|
|
2998
3039
|
onScrollCapture: d,
|
|
2999
3040
|
onWheelCapture: d,
|
|
3000
3041
|
onTouchMoveCapture: _
|
|
3001
|
-
}), document.addEventListener("wheel", a,
|
|
3002
|
-
|
|
3003
|
-
return
|
|
3004
|
-
}), document.removeEventListener("wheel", a,
|
|
3042
|
+
}), document.addEventListener("wheel", a, fe), document.addEventListener("touchmove", a, fe), document.addEventListener("touchstart", l, fe), function() {
|
|
3043
|
+
pe = pe.filter(function(p) {
|
|
3044
|
+
return p !== i;
|
|
3045
|
+
}), document.removeEventListener("wheel", a, fe), document.removeEventListener("touchmove", a, fe), document.removeEventListener("touchstart", l, fe);
|
|
3005
3046
|
};
|
|
3006
3047
|
}, []);
|
|
3007
|
-
var
|
|
3008
|
-
return
|
|
3009
|
-
|
|
3048
|
+
var v = e.removeScrollBar, S = e.inert;
|
|
3049
|
+
return D(
|
|
3050
|
+
B,
|
|
3010
3051
|
null,
|
|
3011
|
-
|
|
3012
|
-
|
|
3052
|
+
S ? D(i, { styles: Uc(o) }) : null,
|
|
3053
|
+
v ? D(kc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
3013
3054
|
);
|
|
3014
3055
|
}
|
|
3015
|
-
function
|
|
3056
|
+
function Bc(e) {
|
|
3016
3057
|
for (var t = null; e !== null; )
|
|
3017
3058
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3018
3059
|
return t;
|
|
3019
3060
|
}
|
|
3020
|
-
const
|
|
3021
|
-
var
|
|
3022
|
-
return
|
|
3061
|
+
const Hc = gc(jr, Wc);
|
|
3062
|
+
var Vr = O(function(e, t) {
|
|
3063
|
+
return D(it, Z({}, e, { ref: t, sideCar: Hc }));
|
|
3023
3064
|
});
|
|
3024
|
-
|
|
3025
|
-
var
|
|
3065
|
+
Vr.classNames = it.classNames;
|
|
3066
|
+
var Zc = function(e) {
|
|
3026
3067
|
if (typeof document > "u")
|
|
3027
3068
|
return null;
|
|
3028
3069
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3029
3070
|
return t.ownerDocument.body;
|
|
3030
|
-
},
|
|
3031
|
-
return e && (e.host ||
|
|
3032
|
-
},
|
|
3071
|
+
}, _e = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {}, ht = 0, Kr = function(e) {
|
|
3072
|
+
return e && (e.host || Kr(e.parentNode));
|
|
3073
|
+
}, Vc = function(e, t) {
|
|
3033
3074
|
return t.map(function(n) {
|
|
3034
3075
|
if (e.contains(n))
|
|
3035
3076
|
return n;
|
|
3036
|
-
var r =
|
|
3077
|
+
var r = Kr(n);
|
|
3037
3078
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
3038
3079
|
}).filter(function(n) {
|
|
3039
3080
|
return !!n;
|
|
3040
3081
|
});
|
|
3041
|
-
},
|
|
3042
|
-
var o =
|
|
3082
|
+
}, Kc = function(e, t, n, r) {
|
|
3083
|
+
var o = Vc(t, Array.isArray(e) ? e : [e]);
|
|
3043
3084
|
We[n] || (We[n] = /* @__PURE__ */ new WeakMap());
|
|
3044
3085
|
var i = We[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(o), u = function(d) {
|
|
3045
3086
|
!d || s.has(d) || (s.add(d), u(d.parentNode));
|
|
@@ -3051,26 +3092,26 @@ var Bc = function(e) {
|
|
|
3051
3092
|
l(_);
|
|
3052
3093
|
else
|
|
3053
3094
|
try {
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3056
|
-
} catch (
|
|
3057
|
-
console.error("aria-hidden: cannot operate on ", _,
|
|
3095
|
+
var v = _.getAttribute(r), S = v !== null && v !== "false", p = (_e.get(_) || 0) + 1, h = (i.get(_) || 0) + 1;
|
|
3096
|
+
_e.set(_, p), i.set(_, h), c.push(_), p === 1 && S && je.set(_, !0), h === 1 && _.setAttribute(n, "true"), S || _.setAttribute(r, "true");
|
|
3097
|
+
} catch (y) {
|
|
3098
|
+
console.error("aria-hidden: cannot operate on ", _, y);
|
|
3058
3099
|
}
|
|
3059
3100
|
});
|
|
3060
3101
|
};
|
|
3061
3102
|
return l(t), s.clear(), ht++, function() {
|
|
3062
3103
|
c.forEach(function(d) {
|
|
3063
|
-
var _ =
|
|
3064
|
-
|
|
3065
|
-
}), ht--, ht || (
|
|
3104
|
+
var _ = _e.get(d) - 1, v = i.get(d) - 1;
|
|
3105
|
+
_e.set(d, _), i.set(d, v), _ || (je.has(d) || d.removeAttribute(r), je.delete(d)), v || d.removeAttribute(n);
|
|
3106
|
+
}), ht--, ht || (_e = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {});
|
|
3066
3107
|
};
|
|
3067
|
-
},
|
|
3108
|
+
}, qc = function(e, t, n) {
|
|
3068
3109
|
n === void 0 && (n = "data-aria-hidden");
|
|
3069
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
3070
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
3110
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Zc(e);
|
|
3111
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Kc(r, o, n, "aria-hidden")) : function() {
|
|
3071
3112
|
return null;
|
|
3072
3113
|
};
|
|
3073
|
-
}, st = "Dialog", [
|
|
3114
|
+
}, st = "Dialog", [qr] = Te(st), [Gc, K] = qr(st), Gr = (e) => {
|
|
3074
3115
|
const {
|
|
3075
3116
|
__scopeDialog: t,
|
|
3076
3117
|
children: n,
|
|
@@ -3078,14 +3119,14 @@ var Bc = function(e) {
|
|
|
3078
3119
|
defaultOpen: o,
|
|
3079
3120
|
onOpenChange: i,
|
|
3080
3121
|
modal: c = !0
|
|
3081
|
-
} = e, s =
|
|
3122
|
+
} = e, s = P(null), a = P(null), [u, l] = De({
|
|
3082
3123
|
prop: r,
|
|
3083
3124
|
defaultProp: o ?? !1,
|
|
3084
3125
|
onChange: i,
|
|
3085
3126
|
caller: st
|
|
3086
3127
|
});
|
|
3087
|
-
return /* @__PURE__ */
|
|
3088
|
-
|
|
3128
|
+
return /* @__PURE__ */ f(
|
|
3129
|
+
Gc,
|
|
3089
3130
|
{
|
|
3090
3131
|
scope: t,
|
|
3091
3132
|
triggerRef: s,
|
|
@@ -3095,18 +3136,18 @@ var Bc = function(e) {
|
|
|
3095
3136
|
descriptionId: Oe(),
|
|
3096
3137
|
open: u,
|
|
3097
3138
|
onOpenChange: l,
|
|
3098
|
-
onOpenToggle:
|
|
3139
|
+
onOpenToggle: z(() => l((d) => !d), [l]),
|
|
3099
3140
|
modal: c,
|
|
3100
3141
|
children: n
|
|
3101
3142
|
}
|
|
3102
3143
|
);
|
|
3103
3144
|
};
|
|
3104
|
-
|
|
3105
|
-
var
|
|
3145
|
+
Gr.displayName = st;
|
|
3146
|
+
var Yr = "DialogTrigger", Yc = O(
|
|
3106
3147
|
(e, t) => {
|
|
3107
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
3108
|
-
return /* @__PURE__ */
|
|
3109
|
-
|
|
3148
|
+
const { __scopeDialog: n, ...r } = e, o = K(Yr, n), i = U(t, o.triggerRef);
|
|
3149
|
+
return /* @__PURE__ */ f(
|
|
3150
|
+
L.button,
|
|
3110
3151
|
{
|
|
3111
3152
|
type: "button",
|
|
3112
3153
|
"aria-haspopup": "dialog",
|
|
@@ -3115,29 +3156,29 @@ var qr = "DialogTrigger", qc = P(
|
|
|
3115
3156
|
"data-state": Ut(o.open),
|
|
3116
3157
|
...r,
|
|
3117
3158
|
ref: i,
|
|
3118
|
-
onClick:
|
|
3159
|
+
onClick: W(e.onClick, o.onOpenToggle)
|
|
3119
3160
|
}
|
|
3120
3161
|
);
|
|
3121
3162
|
}
|
|
3122
3163
|
);
|
|
3123
|
-
|
|
3124
|
-
var
|
|
3164
|
+
Yc.displayName = Yr;
|
|
3165
|
+
var Xc = "DialogPortal", [pa, Xr] = qr(Xc, {
|
|
3125
3166
|
forceMount: void 0
|
|
3126
|
-
}), Je = "DialogOverlay",
|
|
3167
|
+
}), Je = "DialogOverlay", Jc = O(
|
|
3127
3168
|
(e, t) => {
|
|
3128
|
-
const n =
|
|
3129
|
-
return i.modal ? /* @__PURE__ */
|
|
3169
|
+
const n = Xr(Je, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = K(Je, e.__scopeDialog);
|
|
3170
|
+
return i.modal ? /* @__PURE__ */ f(et, { present: r || i.open, children: /* @__PURE__ */ f(ea, { ...o, ref: t }) }) : null;
|
|
3130
3171
|
}
|
|
3131
3172
|
);
|
|
3132
|
-
|
|
3133
|
-
var
|
|
3173
|
+
Jc.displayName = Je;
|
|
3174
|
+
var Qc = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), ea = O(
|
|
3134
3175
|
(e, t) => {
|
|
3135
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
3176
|
+
const { __scopeDialog: n, ...r } = e, o = K(Je, n);
|
|
3136
3177
|
return (
|
|
3137
3178
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
3138
3179
|
// ie. when `Overlay` and `Content` are siblings
|
|
3139
|
-
/* @__PURE__ */
|
|
3140
|
-
|
|
3180
|
+
/* @__PURE__ */ f(Vr, { as: Qc, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ f(
|
|
3181
|
+
L.div,
|
|
3141
3182
|
{
|
|
3142
3183
|
"data-state": Ut(o.open),
|
|
3143
3184
|
...r,
|
|
@@ -3147,45 +3188,45 @@ var Xc = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), Jc = P(
|
|
|
3147
3188
|
) })
|
|
3148
3189
|
);
|
|
3149
3190
|
}
|
|
3150
|
-
),
|
|
3191
|
+
), ue = "DialogContent", Jr = O(
|
|
3151
3192
|
(e, t) => {
|
|
3152
|
-
const n =
|
|
3153
|
-
return /* @__PURE__ */
|
|
3193
|
+
const n = Xr(ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = K(ue, e.__scopeDialog);
|
|
3194
|
+
return /* @__PURE__ */ f(et, { present: r || i.open, children: i.modal ? /* @__PURE__ */ f(ta, { ...o, ref: t }) : /* @__PURE__ */ f(na, { ...o, ref: t }) });
|
|
3154
3195
|
}
|
|
3155
3196
|
);
|
|
3156
|
-
|
|
3157
|
-
var
|
|
3197
|
+
Jr.displayName = ue;
|
|
3198
|
+
var ta = O(
|
|
3158
3199
|
(e, t) => {
|
|
3159
|
-
const n =
|
|
3160
|
-
return
|
|
3200
|
+
const n = K(ue, e.__scopeDialog), r = P(null), o = U(t, n.contentRef, r);
|
|
3201
|
+
return N(() => {
|
|
3161
3202
|
const i = r.current;
|
|
3162
|
-
if (i) return
|
|
3163
|
-
}, []), /* @__PURE__ */
|
|
3164
|
-
|
|
3203
|
+
if (i) return qc(i);
|
|
3204
|
+
}, []), /* @__PURE__ */ f(
|
|
3205
|
+
Qr,
|
|
3165
3206
|
{
|
|
3166
3207
|
...e,
|
|
3167
3208
|
ref: o,
|
|
3168
3209
|
trapFocus: n.open,
|
|
3169
3210
|
disableOutsidePointerEvents: !0,
|
|
3170
|
-
onCloseAutoFocus:
|
|
3211
|
+
onCloseAutoFocus: W(e.onCloseAutoFocus, (i) => {
|
|
3171
3212
|
i.preventDefault(), n.triggerRef.current?.focus();
|
|
3172
3213
|
}),
|
|
3173
|
-
onPointerDownOutside:
|
|
3214
|
+
onPointerDownOutside: W(e.onPointerDownOutside, (i) => {
|
|
3174
3215
|
const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
|
|
3175
3216
|
(c.button === 2 || s) && i.preventDefault();
|
|
3176
3217
|
}),
|
|
3177
|
-
onFocusOutside:
|
|
3218
|
+
onFocusOutside: W(
|
|
3178
3219
|
e.onFocusOutside,
|
|
3179
3220
|
(i) => i.preventDefault()
|
|
3180
3221
|
)
|
|
3181
3222
|
}
|
|
3182
3223
|
);
|
|
3183
3224
|
}
|
|
3184
|
-
),
|
|
3225
|
+
), na = O(
|
|
3185
3226
|
(e, t) => {
|
|
3186
|
-
const n =
|
|
3187
|
-
return /* @__PURE__ */
|
|
3188
|
-
|
|
3227
|
+
const n = K(ue, e.__scopeDialog), r = P(!1), o = P(!1);
|
|
3228
|
+
return /* @__PURE__ */ f(
|
|
3229
|
+
Qr,
|
|
3189
3230
|
{
|
|
3190
3231
|
...e,
|
|
3191
3232
|
ref: t,
|
|
@@ -3202,20 +3243,20 @@ var Qc = P(
|
|
|
3202
3243
|
}
|
|
3203
3244
|
);
|
|
3204
3245
|
}
|
|
3205
|
-
),
|
|
3246
|
+
), Qr = O(
|
|
3206
3247
|
(e, t) => {
|
|
3207
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = e, s =
|
|
3208
|
-
return
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
|
|
3248
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = e, s = K(ue, n), a = P(null), u = U(t, a);
|
|
3249
|
+
return ac(), /* @__PURE__ */ f(B, { children: [
|
|
3250
|
+
/* @__PURE__ */ f(
|
|
3251
|
+
$r,
|
|
3211
3252
|
{
|
|
3212
3253
|
asChild: !0,
|
|
3213
3254
|
loop: !0,
|
|
3214
3255
|
trapped: r,
|
|
3215
3256
|
onMountAutoFocus: o,
|
|
3216
3257
|
onUnmountAutoFocus: i,
|
|
3217
|
-
children: /* @__PURE__ */
|
|
3218
|
-
|
|
3258
|
+
children: /* @__PURE__ */ f(
|
|
3259
|
+
Mr,
|
|
3219
3260
|
{
|
|
3220
3261
|
role: "dialog",
|
|
3221
3262
|
id: s.contentId,
|
|
@@ -3229,65 +3270,65 @@ var Qc = P(
|
|
|
3229
3270
|
)
|
|
3230
3271
|
}
|
|
3231
3272
|
),
|
|
3232
|
-
/* @__PURE__ */
|
|
3233
|
-
/* @__PURE__ */
|
|
3234
|
-
/* @__PURE__ */
|
|
3273
|
+
/* @__PURE__ */ f(B, { children: [
|
|
3274
|
+
/* @__PURE__ */ f(ra, { titleId: s.titleId }),
|
|
3275
|
+
/* @__PURE__ */ f(ia, { contentRef: a, descriptionId: s.descriptionId })
|
|
3235
3276
|
] })
|
|
3236
3277
|
] });
|
|
3237
3278
|
}
|
|
3238
|
-
), Ft = "DialogTitle",
|
|
3279
|
+
), Ft = "DialogTitle", eo = O(
|
|
3239
3280
|
(e, t) => {
|
|
3240
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
3241
|
-
return /* @__PURE__ */
|
|
3281
|
+
const { __scopeDialog: n, ...r } = e, o = K(Ft, n);
|
|
3282
|
+
return /* @__PURE__ */ f(L.h2, { id: o.titleId, ...r, ref: t });
|
|
3242
3283
|
}
|
|
3243
3284
|
);
|
|
3244
|
-
|
|
3245
|
-
var
|
|
3285
|
+
eo.displayName = Ft;
|
|
3286
|
+
var to = "DialogDescription", no = O(
|
|
3246
3287
|
(e, t) => {
|
|
3247
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
3248
|
-
return /* @__PURE__ */
|
|
3288
|
+
const { __scopeDialog: n, ...r } = e, o = K(to, n);
|
|
3289
|
+
return /* @__PURE__ */ f(L.p, { id: o.descriptionId, ...r, ref: t });
|
|
3249
3290
|
}
|
|
3250
3291
|
);
|
|
3251
|
-
|
|
3252
|
-
var
|
|
3292
|
+
no.displayName = to;
|
|
3293
|
+
var ro = "DialogClose", oo = O(
|
|
3253
3294
|
(e, t) => {
|
|
3254
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
3255
|
-
return /* @__PURE__ */
|
|
3256
|
-
|
|
3295
|
+
const { __scopeDialog: n, ...r } = e, o = K(ro, n);
|
|
3296
|
+
return /* @__PURE__ */ f(
|
|
3297
|
+
L.button,
|
|
3257
3298
|
{
|
|
3258
3299
|
type: "button",
|
|
3259
3300
|
...r,
|
|
3260
3301
|
ref: t,
|
|
3261
|
-
onClick:
|
|
3302
|
+
onClick: W(e.onClick, () => o.onOpenChange(!1))
|
|
3262
3303
|
}
|
|
3263
3304
|
);
|
|
3264
3305
|
}
|
|
3265
3306
|
);
|
|
3266
|
-
|
|
3307
|
+
oo.displayName = ro;
|
|
3267
3308
|
function Ut(e) {
|
|
3268
3309
|
return e ? "open" : "closed";
|
|
3269
3310
|
}
|
|
3270
|
-
var
|
|
3271
|
-
contentName:
|
|
3311
|
+
var io = "DialogTitleWarning", [_a, so] = Wi(io, {
|
|
3312
|
+
contentName: ue,
|
|
3272
3313
|
titleName: Ft,
|
|
3273
3314
|
docsSlug: "dialog"
|
|
3274
|
-
}),
|
|
3275
|
-
const t =
|
|
3315
|
+
}), ra = ({ titleId: e }) => {
|
|
3316
|
+
const t = so(io), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
3276
3317
|
|
|
3277
3318
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
3278
3319
|
|
|
3279
3320
|
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
3280
|
-
return
|
|
3321
|
+
return N(() => {
|
|
3281
3322
|
e && (document.getElementById(e) || console.error(n));
|
|
3282
3323
|
}, [n, e]), null;
|
|
3283
|
-
},
|
|
3284
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
3285
|
-
return
|
|
3324
|
+
}, oa = "DialogDescriptionWarning", ia = ({ contentRef: e, descriptionId: t }) => {
|
|
3325
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${so(oa).contentName}}.`;
|
|
3326
|
+
return N(() => {
|
|
3286
3327
|
const o = e.current?.getAttribute("aria-describedby");
|
|
3287
3328
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
3288
3329
|
}, [r, e, t]), null;
|
|
3289
|
-
},
|
|
3290
|
-
const
|
|
3330
|
+
}, sa = Gr, ca = Jr, aa = eo, ua = no, On = oo;
|
|
3331
|
+
const la = ({
|
|
3291
3332
|
noTarget: e = !0,
|
|
3292
3333
|
heading: t = "We use cookies.",
|
|
3293
3334
|
subheading: n = "Please define your selection below.",
|
|
@@ -3299,64 +3340,64 @@ const aa = ({
|
|
|
3299
3340
|
privacyPolicy: a,
|
|
3300
3341
|
items: u
|
|
3301
3342
|
}) => {
|
|
3302
|
-
const { onSave: l, onDeclineAll: d, selectionTaken: _ } =
|
|
3303
|
-
return /* @__PURE__ */
|
|
3304
|
-
|
|
3343
|
+
const { onSave: l, onDeclineAll: d, selectionTaken: _ } = Dr(), [v, S] = k(void 0), [p, h] = k(s);
|
|
3344
|
+
return /* @__PURE__ */ f(sa, { open: !_, children: /* @__PURE__ */ f(
|
|
3345
|
+
ca,
|
|
3305
3346
|
{
|
|
3306
3347
|
className: He({
|
|
3307
|
-
[
|
|
3308
|
-
[
|
|
3348
|
+
[j.root]: !0,
|
|
3349
|
+
[j.noTarget]: e
|
|
3309
3350
|
}),
|
|
3310
|
-
children: /* @__PURE__ */
|
|
3311
|
-
|
|
3351
|
+
children: /* @__PURE__ */ f(
|
|
3352
|
+
fr,
|
|
3312
3353
|
{
|
|
3313
|
-
open:
|
|
3314
|
-
onOpenChange:
|
|
3315
|
-
className:
|
|
3354
|
+
open: p,
|
|
3355
|
+
onOpenChange: h,
|
|
3356
|
+
className: j.collapsible,
|
|
3316
3357
|
children: [
|
|
3317
|
-
/* @__PURE__ */
|
|
3318
|
-
/* @__PURE__ */
|
|
3319
|
-
/* @__PURE__ */
|
|
3320
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ f("div", { className: j.header, children: [
|
|
3359
|
+
/* @__PURE__ */ f("div", { className: j.heading, children: [
|
|
3360
|
+
/* @__PURE__ */ f(aa, { asChild: !0, children: /* @__PURE__ */ f(ce, { weight: "bold", children: t }) }),
|
|
3361
|
+
/* @__PURE__ */ f(ua, { asChild: !0, children: /* @__PURE__ */ f(ce, { size: "caption", color: "muted", children: n }) })
|
|
3321
3362
|
] }),
|
|
3322
|
-
/* @__PURE__ */
|
|
3323
|
-
|
|
3363
|
+
/* @__PURE__ */ f(pr, { asChild: !0, children: /* @__PURE__ */ f(ut, { variant: "ghost", children: [
|
|
3364
|
+
p ? o : r,
|
|
3324
3365
|
" ",
|
|
3325
|
-
/* @__PURE__ */
|
|
3326
|
-
|
|
3366
|
+
/* @__PURE__ */ f(
|
|
3367
|
+
Ts,
|
|
3327
3368
|
{
|
|
3328
3369
|
size: 12,
|
|
3329
3370
|
className: He({
|
|
3330
|
-
[
|
|
3331
|
-
[
|
|
3371
|
+
[j.chevron]: !0,
|
|
3372
|
+
[j.open]: p
|
|
3332
3373
|
})
|
|
3333
3374
|
}
|
|
3334
3375
|
)
|
|
3335
3376
|
] }) })
|
|
3336
3377
|
] }),
|
|
3337
|
-
/* @__PURE__ */
|
|
3338
|
-
|
|
3378
|
+
/* @__PURE__ */ f(
|
|
3379
|
+
_r,
|
|
3339
3380
|
{
|
|
3340
3381
|
className: He({
|
|
3341
|
-
[
|
|
3382
|
+
[j.settings]: !0
|
|
3342
3383
|
}),
|
|
3343
|
-
children: /* @__PURE__ */
|
|
3344
|
-
|
|
3384
|
+
children: /* @__PURE__ */ f(
|
|
3385
|
+
Cs,
|
|
3345
3386
|
{
|
|
3346
3387
|
type: "single",
|
|
3347
3388
|
collapsible: !0,
|
|
3348
|
-
value:
|
|
3349
|
-
onValueChange:
|
|
3350
|
-
children: u.map((
|
|
3389
|
+
value: v,
|
|
3390
|
+
onValueChange: S,
|
|
3391
|
+
children: u.map((y) => /* @__PURE__ */ f(Vs, { ...y, openItem: v }, y.value))
|
|
3351
3392
|
}
|
|
3352
3393
|
)
|
|
3353
3394
|
}
|
|
3354
3395
|
),
|
|
3355
|
-
/* @__PURE__ */
|
|
3356
|
-
/* @__PURE__ */
|
|
3357
|
-
/* @__PURE__ */
|
|
3358
|
-
/* @__PURE__ */
|
|
3359
|
-
/* @__PURE__ */
|
|
3396
|
+
/* @__PURE__ */ f("div", { className: j.footer, children: [
|
|
3397
|
+
/* @__PURE__ */ f("div", { className: j.legal, children: a && /* @__PURE__ */ f(ce, { size: "caption", children: /* @__PURE__ */ f("a", { href: a.url, target: "_blank", children: a.label }) }) }),
|
|
3398
|
+
/* @__PURE__ */ f("div", { className: j.actions, children: [
|
|
3399
|
+
/* @__PURE__ */ f(On, { asChild: !0, children: /* @__PURE__ */ f(ut, { variant: "neutral", onClick: () => d(), children: c }) }),
|
|
3400
|
+
/* @__PURE__ */ f(On, { asChild: !0, children: /* @__PURE__ */ f(ut, { variant: "brand", onClick: () => l(), children: i }) })
|
|
3360
3401
|
] })
|
|
3361
3402
|
] })
|
|
3362
3403
|
]
|
|
@@ -3364,23 +3405,19 @@ const aa = ({
|
|
|
3364
3405
|
)
|
|
3365
3406
|
}
|
|
3366
3407
|
) });
|
|
3367
|
-
},
|
|
3368
|
-
|
|
3369
|
-
items: t,
|
|
3370
|
-
...n
|
|
3371
|
-
}) => {
|
|
3372
|
-
const r = D(
|
|
3408
|
+
}, da = ({ cookie: e, items: t, ...n }) => {
|
|
3409
|
+
const r = x(
|
|
3373
3410
|
() => t.filter((o) => !o.required).map((o) => ({
|
|
3374
3411
|
value: o.value,
|
|
3375
|
-
|
|
3412
|
+
scripts: o.scripts,
|
|
3376
3413
|
defaultSelected: o.defaultSelected,
|
|
3377
3414
|
required: o.required
|
|
3378
3415
|
})),
|
|
3379
3416
|
[t]
|
|
3380
3417
|
);
|
|
3381
|
-
return /* @__PURE__ */
|
|
3418
|
+
return /* @__PURE__ */ f(Zs, { items: r, cookie: e, children: /* @__PURE__ */ f(la, { items: t, cookie: e, ...n }) });
|
|
3382
3419
|
};
|
|
3383
|
-
function
|
|
3420
|
+
function va(e, t) {
|
|
3384
3421
|
const n = t === void 0;
|
|
3385
3422
|
let r;
|
|
3386
3423
|
if (typeof t == "string") {
|
|
@@ -3390,8 +3427,8 @@ function pa(e, t) {
|
|
|
3390
3427
|
r = o;
|
|
3391
3428
|
} else
|
|
3392
3429
|
r = t;
|
|
3393
|
-
Ae(/* @__PURE__ */
|
|
3430
|
+
Ae(/* @__PURE__ */ f(da, { noTarget: n, ...e }), r ?? document.body);
|
|
3394
3431
|
}
|
|
3395
3432
|
export {
|
|
3396
|
-
|
|
3433
|
+
va as mountBanner
|
|
3397
3434
|
};
|