@takecasper/acuity-design-system 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.es.js +726 -582
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -18,15 +18,15 @@ function qn() {
|
|
|
18
18
|
return er;
|
|
19
19
|
Ct = 1;
|
|
20
20
|
var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
-
function a(
|
|
22
|
-
var f, p = {}, m = null,
|
|
23
|
-
u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (
|
|
21
|
+
function a(l, c, u) {
|
|
22
|
+
var f, p = {}, m = null, b = null;
|
|
23
|
+
u !== void 0 && (m = "" + u), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (b = c.ref);
|
|
24
24
|
for (f in c)
|
|
25
25
|
t.call(c, f) && !o.hasOwnProperty(f) && (p[f] = c[f]);
|
|
26
|
-
if (
|
|
27
|
-
for (f in c =
|
|
26
|
+
if (l && l.defaultProps)
|
|
27
|
+
for (f in c = l.defaultProps, c)
|
|
28
28
|
p[f] === void 0 && (p[f] = c[f]);
|
|
29
|
-
return { $$typeof: r, type:
|
|
29
|
+
return { $$typeof: r, type: l, key: m, ref: b, props: p, _owner: s.current };
|
|
30
30
|
}
|
|
31
31
|
return er.Fragment = n, er.jsx = a, er.jsxs = a, er;
|
|
32
32
|
}
|
|
@@ -43,58 +43,58 @@ var rr = {};
|
|
|
43
43
|
var wt;
|
|
44
44
|
function Kn() {
|
|
45
45
|
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"),
|
|
47
|
-
function
|
|
48
|
-
if (
|
|
46
|
+
var e = k, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
|
|
47
|
+
function v(d) {
|
|
48
|
+
if (d === null || typeof d != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var h = x &&
|
|
50
|
+
var h = x && d[x] || d[C];
|
|
51
51
|
return typeof h == "function" ? h : null;
|
|
52
52
|
}
|
|
53
53
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
-
function j(
|
|
54
|
+
function j(d) {
|
|
55
55
|
{
|
|
56
56
|
for (var h = arguments.length, g = new Array(h > 1 ? h - 1 : 0), y = 1; y < h; y++)
|
|
57
57
|
g[y - 1] = arguments[y];
|
|
58
|
-
fe("error",
|
|
58
|
+
fe("error", d, g);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function fe(
|
|
61
|
+
function fe(d, h, g) {
|
|
62
62
|
{
|
|
63
|
-
var y = w.ReactDebugCurrentFrame,
|
|
64
|
-
|
|
65
|
-
var S = g.map(function(
|
|
66
|
-
return String(
|
|
63
|
+
var y = w.ReactDebugCurrentFrame, M = y.getStackAddendum();
|
|
64
|
+
M !== "" && (h += "%s", g = g.concat([M]));
|
|
65
|
+
var S = g.map(function(T) {
|
|
66
|
+
return String(T);
|
|
67
67
|
});
|
|
68
|
-
S.unshift("Warning: " + h), Function.prototype.apply.call(console[
|
|
68
|
+
S.unshift("Warning: " + h), Function.prototype.apply.call(console[d], console, S);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
var N = !1, Y = !1, ke = !1, J = !1, Z = !1, X;
|
|
72
72
|
X = Symbol.for("react.module.reference");
|
|
73
|
-
function te(
|
|
74
|
-
return !!(typeof
|
|
73
|
+
function te(d) {
|
|
74
|
+
return !!(typeof d == "string" || typeof d == "function" || d === t || d === o || Z || d === s || d === u || d === f || J || d === b || N || Y || ke || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === p || d.$$typeof === a || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
|
|
78
|
+
d.$$typeof === X || d.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function ie(
|
|
81
|
-
var y =
|
|
80
|
+
function ie(d, h, g) {
|
|
81
|
+
var y = d.displayName;
|
|
82
82
|
if (y)
|
|
83
83
|
return y;
|
|
84
|
-
var
|
|
85
|
-
return
|
|
84
|
+
var M = h.displayName || h.name || "";
|
|
85
|
+
return M !== "" ? g + "(" + M + ")" : g;
|
|
86
86
|
}
|
|
87
|
-
function $(
|
|
88
|
-
return
|
|
87
|
+
function $(d) {
|
|
88
|
+
return d.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function F(
|
|
91
|
-
if (
|
|
90
|
+
function F(d) {
|
|
91
|
+
if (d == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
if (typeof
|
|
96
|
-
return
|
|
97
|
-
switch (
|
|
93
|
+
if (typeof d.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
94
|
+
return d.displayName || d.name || null;
|
|
95
|
+
if (typeof d == "string")
|
|
96
|
+
return d;
|
|
97
|
+
switch (d) {
|
|
98
98
|
case t:
|
|
99
99
|
return "Fragment";
|
|
100
100
|
case n:
|
|
@@ -108,23 +108,23 @@ function Kn() {
|
|
|
108
108
|
case f:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
|
-
if (typeof
|
|
112
|
-
switch (
|
|
113
|
-
case
|
|
114
|
-
var h =
|
|
111
|
+
if (typeof d == "object")
|
|
112
|
+
switch (d.$$typeof) {
|
|
113
|
+
case l:
|
|
114
|
+
var h = d;
|
|
115
115
|
return $(h) + ".Consumer";
|
|
116
116
|
case a:
|
|
117
|
-
var g =
|
|
117
|
+
var g = d;
|
|
118
118
|
return $(g._context) + ".Provider";
|
|
119
119
|
case c:
|
|
120
|
-
return ie(
|
|
120
|
+
return ie(d, d.render, "ForwardRef");
|
|
121
121
|
case p:
|
|
122
|
-
var y =
|
|
123
|
-
return y !== null ? y : F(
|
|
122
|
+
var y = d.displayName || null;
|
|
123
|
+
return y !== null ? y : F(d.type) || "Memo";
|
|
124
124
|
case m: {
|
|
125
|
-
var
|
|
125
|
+
var M = d, S = M._payload, T = M._init;
|
|
126
126
|
try {
|
|
127
|
-
return F(
|
|
127
|
+
return F(T(S));
|
|
128
128
|
} catch (L) {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,80 +132,80 @@ function Kn() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var V = Object.assign,
|
|
135
|
+
var V = Object.assign, G = 0, pe, ve, he, B, ye, me, Q;
|
|
136
136
|
function Se() {
|
|
137
137
|
}
|
|
138
138
|
Se.__reactDisabledLog = !0;
|
|
139
139
|
function ne() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
142
|
-
pe = console.log,
|
|
143
|
-
var
|
|
141
|
+
if (G === 0) {
|
|
142
|
+
pe = console.log, ve = console.info, he = console.warn, B = console.error, ye = console.group, me = console.groupCollapsed, Q = console.groupEnd;
|
|
143
|
+
var d = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
146
|
value: Se,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
150
|
-
info:
|
|
151
|
-
log:
|
|
152
|
-
warn:
|
|
153
|
-
error:
|
|
154
|
-
group:
|
|
155
|
-
groupCollapsed:
|
|
156
|
-
groupEnd:
|
|
150
|
+
info: d,
|
|
151
|
+
log: d,
|
|
152
|
+
warn: d,
|
|
153
|
+
error: d,
|
|
154
|
+
group: d,
|
|
155
|
+
groupCollapsed: d,
|
|
156
|
+
groupEnd: d
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
G++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
function Ke() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
165
|
-
var
|
|
164
|
+
if (G--, G === 0) {
|
|
165
|
+
var d = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log: V({},
|
|
171
|
+
log: V({}, d, {
|
|
172
172
|
value: pe
|
|
173
173
|
}),
|
|
174
|
-
info: V({},
|
|
175
|
-
value:
|
|
174
|
+
info: V({}, d, {
|
|
175
|
+
value: ve
|
|
176
176
|
}),
|
|
177
|
-
warn: V({},
|
|
177
|
+
warn: V({}, d, {
|
|
178
178
|
value: he
|
|
179
179
|
}),
|
|
180
|
-
error: V({},
|
|
180
|
+
error: V({}, d, {
|
|
181
181
|
value: B
|
|
182
182
|
}),
|
|
183
|
-
group: V({},
|
|
183
|
+
group: V({}, d, {
|
|
184
184
|
value: ye
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed: V({},
|
|
186
|
+
groupCollapsed: V({}, d, {
|
|
187
187
|
value: me
|
|
188
188
|
}),
|
|
189
|
-
groupEnd: V({},
|
|
189
|
+
groupEnd: V({}, d, {
|
|
190
190
|
value: Q
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
G < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var ee = w.ReactCurrentDispatcher, D;
|
|
198
|
-
function H(
|
|
198
|
+
function H(d, h, g) {
|
|
199
199
|
{
|
|
200
200
|
if (D === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var y =
|
|
203
|
+
} catch (M) {
|
|
204
|
+
var y = M.stack.trim().match(/\n( *(at )?)/);
|
|
205
205
|
D = y && y[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` + D +
|
|
208
|
+
` + D + d;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
var Je = !1, je;
|
|
@@ -213,43 +213,43 @@ function Kn() {
|
|
|
213
213
|
var O = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
214
|
je = new O();
|
|
215
215
|
}
|
|
216
|
-
function xe(
|
|
217
|
-
if (!
|
|
216
|
+
function xe(d, h) {
|
|
217
|
+
if (!d || Je)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var g = je.get(
|
|
220
|
+
var g = je.get(d);
|
|
221
221
|
if (g !== void 0)
|
|
222
222
|
return g;
|
|
223
223
|
}
|
|
224
224
|
var y;
|
|
225
225
|
Je = !0;
|
|
226
|
-
var
|
|
226
|
+
var M = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var S;
|
|
229
229
|
S = ee.current, ee.current = null, ne();
|
|
230
230
|
try {
|
|
231
231
|
if (h) {
|
|
232
|
-
var
|
|
232
|
+
var T = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(T.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(T, []);
|
|
242
242
|
} catch (Ee) {
|
|
243
243
|
y = Ee;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(
|
|
245
|
+
Reflect.construct(d, [], T);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
T.call();
|
|
249
249
|
} catch (Ee) {
|
|
250
250
|
y = Ee;
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
d.call(T.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
@@ -257,119 +257,119 @@ function Kn() {
|
|
|
257
257
|
} catch (Ee) {
|
|
258
258
|
y = Ee;
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
d();
|
|
261
261
|
}
|
|
262
262
|
} catch (Ee) {
|
|
263
263
|
if (Ee && y && typeof Ee.stack == "string") {
|
|
264
264
|
for (var L = Ee.stack.split(`
|
|
265
265
|
`), q = y.stack.split(`
|
|
266
|
-
`), _ = L.length - 1,
|
|
267
|
-
|
|
268
|
-
for (; _ >= 1 &&
|
|
269
|
-
if (L[_] !== q[
|
|
270
|
-
if (_ !== 1 ||
|
|
266
|
+
`), _ = L.length - 1, I = q.length - 1; _ >= 1 && I >= 0 && L[_] !== q[I]; )
|
|
267
|
+
I--;
|
|
268
|
+
for (; _ >= 1 && I >= 0; _--, I--)
|
|
269
|
+
if (L[_] !== q[I]) {
|
|
270
|
+
if (_ !== 1 || I !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (_--,
|
|
272
|
+
if (_--, I--, I < 0 || L[_] !== q[I]) {
|
|
273
273
|
var le = `
|
|
274
274
|
` + L[_].replace(" at new ", " at ");
|
|
275
|
-
return
|
|
275
|
+
return d.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", d.displayName)), typeof d == "function" && je.set(d, le), le;
|
|
276
276
|
}
|
|
277
|
-
while (_ >= 1 &&
|
|
277
|
+
while (_ >= 1 && I >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
Je = !1, ee.current = S, Ke(), Error.prepareStackTrace =
|
|
282
|
+
Je = !1, ee.current = S, Ke(), Error.prepareStackTrace = M;
|
|
283
283
|
}
|
|
284
|
-
var Be =
|
|
285
|
-
return typeof
|
|
284
|
+
var Be = d ? d.displayName || d.name : "", xt = Be ? H(Be) : "";
|
|
285
|
+
return typeof d == "function" && je.set(d, xt), xt;
|
|
286
286
|
}
|
|
287
|
-
function Xe(
|
|
288
|
-
return xe(
|
|
287
|
+
function Xe(d, h, g) {
|
|
288
|
+
return xe(d, !1);
|
|
289
289
|
}
|
|
290
|
-
function Cn(
|
|
291
|
-
var h =
|
|
290
|
+
function Cn(d) {
|
|
291
|
+
var h = d.prototype;
|
|
292
292
|
return !!(h && h.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function fr(
|
|
295
|
-
if (
|
|
294
|
+
function fr(d, h, g) {
|
|
295
|
+
if (d == null)
|
|
296
296
|
return "";
|
|
297
|
-
if (typeof
|
|
298
|
-
return xe(
|
|
299
|
-
if (typeof
|
|
300
|
-
return H(
|
|
301
|
-
switch (
|
|
297
|
+
if (typeof d == "function")
|
|
298
|
+
return xe(d, Cn(d));
|
|
299
|
+
if (typeof d == "string")
|
|
300
|
+
return H(d);
|
|
301
|
+
switch (d) {
|
|
302
302
|
case u:
|
|
303
303
|
return H("Suspense");
|
|
304
304
|
case f:
|
|
305
305
|
return H("SuspenseList");
|
|
306
306
|
}
|
|
307
|
-
if (typeof
|
|
308
|
-
switch (
|
|
307
|
+
if (typeof d == "object")
|
|
308
|
+
switch (d.$$typeof) {
|
|
309
309
|
case c:
|
|
310
|
-
return Xe(
|
|
310
|
+
return Xe(d.render);
|
|
311
311
|
case p:
|
|
312
|
-
return fr(
|
|
312
|
+
return fr(d.type, h, g);
|
|
313
313
|
case m: {
|
|
314
|
-
var y =
|
|
314
|
+
var y = d, M = y._payload, S = y._init;
|
|
315
315
|
try {
|
|
316
|
-
return fr(S(
|
|
317
|
-
} catch (
|
|
316
|
+
return fr(S(M), h, g);
|
|
317
|
+
} catch (T) {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
323
|
var pr = Object.prototype.hasOwnProperty, it = {}, lt = w.ReactDebugCurrentFrame;
|
|
324
|
-
function hr(
|
|
325
|
-
if (
|
|
326
|
-
var h =
|
|
324
|
+
function hr(d) {
|
|
325
|
+
if (d) {
|
|
326
|
+
var h = d._owner, g = fr(d.type, d._source, h ? h.type : null);
|
|
327
327
|
lt.setExtraStackFrame(g);
|
|
328
328
|
} else
|
|
329
329
|
lt.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function wn(
|
|
331
|
+
function wn(d, h, g, y, M) {
|
|
332
332
|
{
|
|
333
333
|
var S = Function.call.bind(pr);
|
|
334
|
-
for (var
|
|
335
|
-
if (S(
|
|
334
|
+
for (var T in d)
|
|
335
|
+
if (S(d, T)) {
|
|
336
336
|
var L = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof
|
|
339
|
-
var q = Error((y || "React class") + ": " + g + " type `" +
|
|
338
|
+
if (typeof d[T] != "function") {
|
|
339
|
+
var q = Error((y || "React class") + ": " + g + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw q.name = "Invariant Violation", q;
|
|
341
341
|
}
|
|
342
|
-
L =
|
|
342
|
+
L = d[T](h, T, y, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (_) {
|
|
344
344
|
L = _;
|
|
345
345
|
}
|
|
346
|
-
L && !(L instanceof Error) && (hr(
|
|
346
|
+
L && !(L instanceof Error) && (hr(M), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", g, T, typeof L), hr(null)), L instanceof Error && !(L.message in it) && (it[L.message] = !0, hr(M), j("Failed %s type: %s", g, L.message), hr(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
var kn = Array.isArray;
|
|
351
|
-
function
|
|
352
|
-
return kn(
|
|
351
|
+
function Mr(d) {
|
|
352
|
+
return kn(d);
|
|
353
353
|
}
|
|
354
|
-
function yn(
|
|
354
|
+
function yn(d) {
|
|
355
355
|
{
|
|
356
|
-
var h = typeof Symbol == "function" && Symbol.toStringTag, g = h &&
|
|
356
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, g = h && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
357
357
|
return g;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function jn(
|
|
360
|
+
function jn(d) {
|
|
361
361
|
try {
|
|
362
|
-
return dt(
|
|
362
|
+
return dt(d), !1;
|
|
363
363
|
} catch (h) {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function dt(
|
|
368
|
-
return "" +
|
|
367
|
+
function dt(d) {
|
|
368
|
+
return "" + d;
|
|
369
369
|
}
|
|
370
|
-
function ct(
|
|
371
|
-
if (jn(
|
|
372
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(
|
|
370
|
+
function ct(d) {
|
|
371
|
+
if (jn(d))
|
|
372
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yn(d)), dt(d);
|
|
373
373
|
}
|
|
374
374
|
var Qe = w.ReactCurrentOwner, En = {
|
|
375
375
|
key: !0,
|
|
@@ -378,59 +378,59 @@ function Kn() {
|
|
|
378
378
|
__source: !0
|
|
379
379
|
}, ut, ft, Sr;
|
|
380
380
|
Sr = {};
|
|
381
|
-
function Ln(
|
|
382
|
-
if (pr.call(
|
|
383
|
-
var h = Object.getOwnPropertyDescriptor(
|
|
381
|
+
function Ln(d) {
|
|
382
|
+
if (pr.call(d, "ref")) {
|
|
383
|
+
var h = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
384
384
|
if (h && h.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
|
-
return
|
|
387
|
+
return d.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function $n(
|
|
390
|
-
if (pr.call(
|
|
391
|
-
var h = Object.getOwnPropertyDescriptor(
|
|
389
|
+
function $n(d) {
|
|
390
|
+
if (pr.call(d, "key")) {
|
|
391
|
+
var h = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
392
392
|
if (h && h.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
|
-
return
|
|
395
|
+
return d.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (typeof
|
|
397
|
+
function Tn(d, h) {
|
|
398
|
+
if (typeof d.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
399
399
|
var g = F(Qe.current.type);
|
|
400
|
-
Sr[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type),
|
|
400
|
+
Sr[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Qe.current.type), d.ref), Sr[g] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Mn(d, h) {
|
|
404
404
|
{
|
|
405
405
|
var g = function() {
|
|
406
406
|
ut || (ut = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
407
407
|
};
|
|
408
|
-
g.isReactWarning = !0, Object.defineProperty(
|
|
408
|
+
g.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
409
409
|
get: g,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function Sn(
|
|
414
|
+
function Sn(d, h) {
|
|
415
415
|
{
|
|
416
416
|
var g = function() {
|
|
417
417
|
ft || (ft = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
418
418
|
};
|
|
419
|
-
g.isReactWarning = !0, Object.defineProperty(
|
|
419
|
+
g.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
420
420
|
get: g,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var Nn = function(
|
|
425
|
+
var Nn = function(d, h, g, y, M, S, T) {
|
|
426
426
|
var L = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: r,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
|
-
type:
|
|
430
|
+
type: d,
|
|
431
431
|
key: h,
|
|
432
432
|
ref: g,
|
|
433
|
-
props:
|
|
433
|
+
props: T,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: S
|
|
436
436
|
};
|
|
@@ -448,56 +448,56 @@ function Kn() {
|
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
451
|
+
value: M
|
|
452
452
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
453
453
|
};
|
|
454
|
-
function Rn(
|
|
454
|
+
function Rn(d, h, g, y, M) {
|
|
455
455
|
{
|
|
456
|
-
var S,
|
|
457
|
-
g !== void 0 && (ct(g), L = "" + g), $n(h) && (ct(h.key), L = "" + h.key), Ln(h) && (q = h.ref,
|
|
456
|
+
var S, T = {}, L = null, q = null;
|
|
457
|
+
g !== void 0 && (ct(g), L = "" + g), $n(h) && (ct(h.key), L = "" + h.key), Ln(h) && (q = h.ref, Tn(h, M));
|
|
458
458
|
for (S in h)
|
|
459
|
-
pr.call(h, S) && !En.hasOwnProperty(S) && (
|
|
460
|
-
if (
|
|
461
|
-
var _ =
|
|
459
|
+
pr.call(h, S) && !En.hasOwnProperty(S) && (T[S] = h[S]);
|
|
460
|
+
if (d && d.defaultProps) {
|
|
461
|
+
var _ = d.defaultProps;
|
|
462
462
|
for (S in _)
|
|
463
|
-
|
|
463
|
+
T[S] === void 0 && (T[S] = _[S]);
|
|
464
464
|
}
|
|
465
465
|
if (L || q) {
|
|
466
|
-
var
|
|
467
|
-
L &&
|
|
466
|
+
var I = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
467
|
+
L && Mn(T, I), q && Sn(T, I);
|
|
468
468
|
}
|
|
469
|
-
return Nn(
|
|
469
|
+
return Nn(d, L, q, M, y, Qe.current, T);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Nr = w.ReactCurrentOwner, pt = w.ReactDebugCurrentFrame;
|
|
473
|
-
function He(
|
|
474
|
-
if (
|
|
475
|
-
var h =
|
|
473
|
+
function He(d) {
|
|
474
|
+
if (d) {
|
|
475
|
+
var h = d._owner, g = fr(d.type, d._source, h ? h.type : null);
|
|
476
476
|
pt.setExtraStackFrame(g);
|
|
477
477
|
} else
|
|
478
478
|
pt.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var Rr;
|
|
481
481
|
Rr = !1;
|
|
482
|
-
function Ar(
|
|
483
|
-
return typeof
|
|
482
|
+
function Ar(d) {
|
|
483
|
+
return typeof d == "object" && d !== null && d.$$typeof === r;
|
|
484
484
|
}
|
|
485
485
|
function ht() {
|
|
486
486
|
{
|
|
487
487
|
if (Nr.current) {
|
|
488
|
-
var
|
|
489
|
-
if (
|
|
488
|
+
var d = F(Nr.current.type);
|
|
489
|
+
if (d)
|
|
490
490
|
return `
|
|
491
491
|
|
|
492
|
-
Check the render method of \`` +
|
|
492
|
+
Check the render method of \`` + d + "`.";
|
|
493
493
|
}
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function An(
|
|
497
|
+
function An(d) {
|
|
498
498
|
{
|
|
499
|
-
if (
|
|
500
|
-
var h =
|
|
499
|
+
if (d !== void 0) {
|
|
500
|
+
var h = d.fileName.replace(/^.*[\\\/]/, ""), g = d.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
503
|
Check your code at ` + h + ":" + g + ".";
|
|
@@ -506,11 +506,11 @@ Check your code at ` + h + ":" + g + ".";
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var mt = {};
|
|
509
|
-
function Pn(
|
|
509
|
+
function Pn(d) {
|
|
510
510
|
{
|
|
511
511
|
var h = ht();
|
|
512
512
|
if (!h) {
|
|
513
|
-
var g = typeof
|
|
513
|
+
var g = typeof d == "string" ? d : d.displayName || d.name;
|
|
514
514
|
g && (h = `
|
|
515
515
|
|
|
516
516
|
Check the top-level render call using <` + g + ">.");
|
|
@@ -518,41 +518,41 @@ Check the top-level render call using <` + g + ">.");
|
|
|
518
518
|
return h;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function gt(
|
|
521
|
+
function gt(d, h) {
|
|
522
522
|
{
|
|
523
|
-
if (!
|
|
523
|
+
if (!d._store || d._store.validated || d.key != null)
|
|
524
524
|
return;
|
|
525
|
-
|
|
525
|
+
d._store.validated = !0;
|
|
526
526
|
var g = Pn(h);
|
|
527
527
|
if (mt[g])
|
|
528
528
|
return;
|
|
529
529
|
mt[g] = !0;
|
|
530
530
|
var y = "";
|
|
531
|
-
|
|
531
|
+
d && d._owner && d._owner !== Nr.current && (y = " It was passed a child from " + F(d._owner.type) + "."), He(d), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, y), He(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function bt(d, h) {
|
|
535
535
|
{
|
|
536
|
-
if (typeof
|
|
536
|
+
if (typeof d != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
539
|
-
for (var g = 0; g <
|
|
540
|
-
var y =
|
|
538
|
+
if (Mr(d))
|
|
539
|
+
for (var g = 0; g < d.length; g++) {
|
|
540
|
+
var y = d[g];
|
|
541
541
|
Ar(y) && gt(y, h);
|
|
542
542
|
}
|
|
543
|
-
else if (Ar(
|
|
544
|
-
|
|
545
|
-
else if (
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var S =
|
|
549
|
-
Ar(
|
|
543
|
+
else if (Ar(d))
|
|
544
|
+
d._store && (d._store.validated = !0);
|
|
545
|
+
else if (d) {
|
|
546
|
+
var M = v(d);
|
|
547
|
+
if (typeof M == "function" && M !== d.entries)
|
|
548
|
+
for (var S = M.call(d), T; !(T = S.next()).done; )
|
|
549
|
+
Ar(T.value) && gt(T.value, h);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function Fn(
|
|
553
|
+
function Fn(d) {
|
|
554
554
|
{
|
|
555
|
-
var h =
|
|
555
|
+
var h = d.type;
|
|
556
556
|
if (h == null || typeof h == "string")
|
|
557
557
|
return;
|
|
558
558
|
var g;
|
|
@@ -566,62 +566,62 @@ Check the top-level render call using <` + g + ">.");
|
|
|
566
566
|
return;
|
|
567
567
|
if (g) {
|
|
568
568
|
var y = F(h);
|
|
569
|
-
wn(g,
|
|
569
|
+
wn(g, d.props, "prop", y, d);
|
|
570
570
|
} else if (h.PropTypes !== void 0 && !Rr) {
|
|
571
571
|
Rr = !0;
|
|
572
|
-
var
|
|
573
|
-
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
572
|
+
var M = F(h);
|
|
573
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
574
574
|
}
|
|
575
575
|
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function On(
|
|
578
|
+
function On(d) {
|
|
579
579
|
{
|
|
580
|
-
for (var h = Object.keys(
|
|
580
|
+
for (var h = Object.keys(d.props), g = 0; g < h.length; g++) {
|
|
581
581
|
var y = h[g];
|
|
582
582
|
if (y !== "children" && y !== "key") {
|
|
583
|
-
He(
|
|
583
|
+
He(d), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), He(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
d.ref !== null && (He(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function vt(d, h, g, y, M, S) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
592
|
+
var T = te(d);
|
|
593
|
+
if (!T) {
|
|
594
594
|
var L = "";
|
|
595
|
-
(
|
|
596
|
-
var q = An(
|
|
595
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
+
var q = An(M);
|
|
597
597
|
q ? L += q : L += ht();
|
|
598
598
|
var _;
|
|
599
|
-
|
|
599
|
+
d === null ? _ = "null" : Mr(d) ? _ = "array" : d !== void 0 && d.$$typeof === r ? (_ = "<" + (F(d.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof d, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, L);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
601
|
+
var I = Rn(d, h, g, M, S);
|
|
602
|
+
if (I == null)
|
|
603
|
+
return I;
|
|
604
|
+
if (T) {
|
|
605
605
|
var le = h.children;
|
|
606
606
|
if (le !== void 0)
|
|
607
607
|
if (y)
|
|
608
|
-
if (
|
|
608
|
+
if (Mr(le)) {
|
|
609
609
|
for (var Be = 0; Be < le.length; Be++)
|
|
610
|
-
|
|
610
|
+
bt(le[Be], d);
|
|
611
611
|
Object.freeze && Object.freeze(le);
|
|
612
612
|
} else
|
|
613
613
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
|
|
615
|
+
bt(le, d);
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return d === t ? On(I) : Fn(I), I;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function _n(
|
|
621
|
-
return
|
|
620
|
+
function _n(d, h, g) {
|
|
621
|
+
return vt(d, h, g, !0);
|
|
622
622
|
}
|
|
623
|
-
function Wn(
|
|
624
|
-
return
|
|
623
|
+
function Wn(d, h, g) {
|
|
624
|
+
return vt(d, h, g, !1);
|
|
625
625
|
}
|
|
626
626
|
var In = Wn, Vn = _n;
|
|
627
627
|
rr.Fragment = t, rr.jsx = In, rr.jsxs = Vn;
|
|
@@ -1306,7 +1306,7 @@ const Jn = ({
|
|
|
1306
1306
|
]
|
|
1307
1307
|
}
|
|
1308
1308
|
);
|
|
1309
|
-
}, gs = ms,
|
|
1309
|
+
}, gs = ms, bs = ({
|
|
1310
1310
|
width: e = "24",
|
|
1311
1311
|
height: r = "24",
|
|
1312
1312
|
className: n = "",
|
|
@@ -1354,7 +1354,7 @@ const Jn = ({
|
|
|
1354
1354
|
]
|
|
1355
1355
|
}
|
|
1356
1356
|
);
|
|
1357
|
-
},
|
|
1357
|
+
}, vs = bs, xs = ({
|
|
1358
1358
|
width: e = "24",
|
|
1359
1359
|
height: r = "24",
|
|
1360
1360
|
className: n = "",
|
|
@@ -1783,7 +1783,7 @@ const Jn = ({
|
|
|
1783
1783
|
]
|
|
1784
1784
|
}
|
|
1785
1785
|
);
|
|
1786
|
-
},
|
|
1786
|
+
}, Ts = $s, Ms = ({
|
|
1787
1787
|
width: e = "24",
|
|
1788
1788
|
height: r = "24",
|
|
1789
1789
|
className: n = "",
|
|
@@ -1829,7 +1829,7 @@ const Jn = ({
|
|
|
1829
1829
|
]
|
|
1830
1830
|
}
|
|
1831
1831
|
);
|
|
1832
|
-
}, Ss =
|
|
1832
|
+
}, Ss = Ms, Ns = ({
|
|
1833
1833
|
width: e = "24",
|
|
1834
1834
|
height: r = "24",
|
|
1835
1835
|
className: n = "",
|
|
@@ -2122,7 +2122,7 @@ function Ds() {
|
|
|
2122
2122
|
(e = arguments[n++]) && (r = _t(e)) && (t && (t += " "), t += r);
|
|
2123
2123
|
return t;
|
|
2124
2124
|
}
|
|
2125
|
-
const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt = Ds,
|
|
2125
|
+
const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt = Ds, W = (e, r) => (n) => {
|
|
2126
2126
|
var t;
|
|
2127
2127
|
if ((r == null ? void 0 : r.variants) == null)
|
|
2128
2128
|
return yt(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
@@ -2132,20 +2132,20 @@ const kt = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, yt =
|
|
|
2132
2132
|
return null;
|
|
2133
2133
|
const m = kt(f) || kt(p);
|
|
2134
2134
|
return s[u][m];
|
|
2135
|
-
}),
|
|
2135
|
+
}), l = n && Object.entries(n).reduce((u, f) => {
|
|
2136
2136
|
let [p, m] = f;
|
|
2137
2137
|
return m === void 0 || (u[p] = m), u;
|
|
2138
2138
|
}, {}), c = r == null || (t = r.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((u, f) => {
|
|
2139
|
-
let { class: p, className: m, ...
|
|
2140
|
-
return Object.entries(
|
|
2141
|
-
let [C,
|
|
2142
|
-
return Array.isArray(
|
|
2139
|
+
let { class: p, className: m, ...b } = f;
|
|
2140
|
+
return Object.entries(b).every((x) => {
|
|
2141
|
+
let [C, v] = x;
|
|
2142
|
+
return Array.isArray(v) ? v.includes({
|
|
2143
2143
|
...o,
|
|
2144
|
-
...
|
|
2144
|
+
...l
|
|
2145
2145
|
}[C]) : {
|
|
2146
2146
|
...o,
|
|
2147
|
-
...
|
|
2148
|
-
}[C] ===
|
|
2147
|
+
...l
|
|
2148
|
+
}[C] === v;
|
|
2149
2149
|
}) ? [
|
|
2150
2150
|
...u,
|
|
2151
2151
|
p,
|
|
@@ -2160,12 +2160,12 @@ function Hs(e) {
|
|
|
2160
2160
|
conflictingClassGroupModifiers: t
|
|
2161
2161
|
} = e;
|
|
2162
2162
|
function s(a) {
|
|
2163
|
-
const
|
|
2164
|
-
return
|
|
2163
|
+
const l = a.split(qr);
|
|
2164
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Wt(l, r) || Bs(a);
|
|
2165
2165
|
}
|
|
2166
|
-
function o(a,
|
|
2166
|
+
function o(a, l) {
|
|
2167
2167
|
const c = n[a] || [];
|
|
2168
|
-
return
|
|
2168
|
+
return l && t[a] ? [...c, ...t[a]] : c;
|
|
2169
2169
|
}
|
|
2170
2170
|
return {
|
|
2171
2171
|
getClassGroupId: s,
|
|
@@ -2183,8 +2183,8 @@ function Wt(e, r) {
|
|
|
2183
2183
|
return;
|
|
2184
2184
|
const o = e.join(qr);
|
|
2185
2185
|
return (a = r.validators.find(({
|
|
2186
|
-
validator:
|
|
2187
|
-
}) =>
|
|
2186
|
+
validator: l
|
|
2187
|
+
}) => l(o))) == null ? void 0 : a.classGroupId;
|
|
2188
2188
|
}
|
|
2189
2189
|
const jt = /^\[(.+)\]$/;
|
|
2190
2190
|
function Bs(e) {
|
|
@@ -2243,7 +2243,7 @@ function Us(e) {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
function Gs(e, r) {
|
|
2245
2245
|
return r ? e.map(([n, t]) => {
|
|
2246
|
-
const s = t.map((o) => typeof o == "string" ? r + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a,
|
|
2246
|
+
const s = t.map((o) => typeof o == "string" ? r + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, l]) => [r + a, l])) : o);
|
|
2247
2247
|
return [n, s];
|
|
2248
2248
|
}) : e;
|
|
2249
2249
|
}
|
|
@@ -2276,27 +2276,27 @@ const It = "!";
|
|
|
2276
2276
|
function Zs(e) {
|
|
2277
2277
|
const r = e.separator, n = r.length === 1, t = r[0], s = r.length;
|
|
2278
2278
|
return function(a) {
|
|
2279
|
-
const
|
|
2279
|
+
const l = [];
|
|
2280
2280
|
let c = 0, u = 0, f;
|
|
2281
2281
|
for (let C = 0; C < a.length; C++) {
|
|
2282
|
-
let
|
|
2282
|
+
let v = a[C];
|
|
2283
2283
|
if (c === 0) {
|
|
2284
|
-
if (
|
|
2285
|
-
|
|
2284
|
+
if (v === t && (n || a.slice(C, C + s) === r)) {
|
|
2285
|
+
l.push(a.slice(u, C)), u = C + s;
|
|
2286
2286
|
continue;
|
|
2287
2287
|
}
|
|
2288
|
-
if (
|
|
2288
|
+
if (v === "/") {
|
|
2289
2289
|
f = C;
|
|
2290
2290
|
continue;
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
|
|
2293
|
+
v === "[" ? c++ : v === "]" && c--;
|
|
2294
2294
|
}
|
|
2295
|
-
const p =
|
|
2295
|
+
const p = l.length === 0 ? a : a.substring(u), m = p.startsWith(It), b = m ? p.substring(1) : p, x = f && f > u ? f - u : void 0;
|
|
2296
2296
|
return {
|
|
2297
|
-
modifiers:
|
|
2297
|
+
modifiers: l,
|
|
2298
2298
|
hasImportantModifier: m,
|
|
2299
|
-
baseClassName:
|
|
2299
|
+
baseClassName: b,
|
|
2300
2300
|
maybePostfixModifierPosition: x
|
|
2301
2301
|
};
|
|
2302
2302
|
};
|
|
@@ -2326,7 +2326,7 @@ function Xs(e, r) {
|
|
|
2326
2326
|
} = r, o = /* @__PURE__ */ new Set();
|
|
2327
2327
|
return e.trim().split(Js).map((a) => {
|
|
2328
2328
|
const {
|
|
2329
|
-
modifiers:
|
|
2329
|
+
modifiers: l,
|
|
2330
2330
|
hasImportantModifier: c,
|
|
2331
2331
|
baseClassName: u,
|
|
2332
2332
|
maybePostfixModifierPosition: f
|
|
@@ -2345,10 +2345,10 @@ function Xs(e, r) {
|
|
|
2345
2345
|
};
|
|
2346
2346
|
m = !1;
|
|
2347
2347
|
}
|
|
2348
|
-
const
|
|
2348
|
+
const b = qs(l).join(":");
|
|
2349
2349
|
return {
|
|
2350
2350
|
isTailwindClass: !0,
|
|
2351
|
-
modifierId: c ?
|
|
2351
|
+
modifierId: c ? b + It : b,
|
|
2352
2352
|
classGroupId: p,
|
|
2353
2353
|
originalClassName: a,
|
|
2354
2354
|
hasPostfixModifier: m
|
|
@@ -2357,11 +2357,11 @@ function Xs(e, r) {
|
|
|
2357
2357
|
if (!a.isTailwindClass)
|
|
2358
2358
|
return !0;
|
|
2359
2359
|
const {
|
|
2360
|
-
modifierId:
|
|
2360
|
+
modifierId: l,
|
|
2361
2361
|
classGroupId: c,
|
|
2362
2362
|
hasPostfixModifier: u
|
|
2363
|
-
} = a, f =
|
|
2364
|
-
return o.has(f) ? !1 : (o.add(f), s(c, u).forEach((p) => o.add(
|
|
2363
|
+
} = a, f = l + c;
|
|
2364
|
+
return o.has(f) ? !1 : (o.add(f), s(c, u).forEach((p) => o.add(l + p)), !0);
|
|
2365
2365
|
}).reverse().map((a) => a.originalClassName).join(" ");
|
|
2366
2366
|
}
|
|
2367
2367
|
function Qs() {
|
|
@@ -2382,9 +2382,9 @@ function eo(e, ...r) {
|
|
|
2382
2382
|
let n, t, s, o = a;
|
|
2383
2383
|
function a(c) {
|
|
2384
2384
|
const u = r.reduce((f, p) => p(f), e());
|
|
2385
|
-
return n = Ks(u), t = n.cache.get, s = n.cache.set, o =
|
|
2385
|
+
return n = Ks(u), t = n.cache.get, s = n.cache.set, o = l, l(c);
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function l(c) {
|
|
2388
2388
|
const u = t(c);
|
|
2389
2389
|
if (u)
|
|
2390
2390
|
return u;
|
|
@@ -2433,10 +2433,10 @@ function fo(e) {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
const po = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2435
2435
|
function ho(e) {
|
|
2436
|
-
return Ge(e, po,
|
|
2436
|
+
return Ge(e, po, vo);
|
|
2437
2437
|
}
|
|
2438
2438
|
function mo(e) {
|
|
2439
|
-
return Ge(e, "",
|
|
2439
|
+
return Ge(e, "", bo);
|
|
2440
2440
|
}
|
|
2441
2441
|
function nr() {
|
|
2442
2442
|
return !0;
|
|
@@ -2451,14 +2451,14 @@ function go(e) {
|
|
|
2451
2451
|
function Ht() {
|
|
2452
2452
|
return !1;
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function bo(e) {
|
|
2455
2455
|
return ao.test(e);
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2457
|
+
function vo(e) {
|
|
2458
2458
|
return io.test(e);
|
|
2459
2459
|
}
|
|
2460
2460
|
function xo() {
|
|
2461
|
-
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"),
|
|
2461
|
+
const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), l = A("borderWidth"), c = A("contrast"), u = A("grayscale"), f = A("hueRotate"), p = A("invert"), m = A("gap"), b = A("gradientColorStops"), x = A("gradientColorStopPositions"), C = A("inset"), v = A("margin"), w = A("opacity"), j = A("padding"), fe = A("saturate"), N = A("scale"), Y = A("sepia"), ke = A("skew"), J = A("space"), Z = A("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Le, Ne], V = () => ["auto", _e, E], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, gr], Q = () => [_e, E];
|
|
2462
2462
|
return {
|
|
2463
2463
|
cacheSize: 500,
|
|
2464
2464
|
separator: ":",
|
|
@@ -2581,7 +2581,7 @@ function xo() {
|
|
|
2581
2581
|
* @see https://tailwindcss.com/docs/object-position
|
|
2582
2582
|
*/
|
|
2583
2583
|
"object-position": [{
|
|
2584
|
-
object: [...
|
|
2584
|
+
object: [...G(), E]
|
|
2585
2585
|
}],
|
|
2586
2586
|
/**
|
|
2587
2587
|
* Overflow
|
|
@@ -2989,63 +2989,63 @@ function xo() {
|
|
|
2989
2989
|
* @see https://tailwindcss.com/docs/margin
|
|
2990
2990
|
*/
|
|
2991
2991
|
m: [{
|
|
2992
|
-
m: [
|
|
2992
|
+
m: [v]
|
|
2993
2993
|
}],
|
|
2994
2994
|
/**
|
|
2995
2995
|
* Margin X
|
|
2996
2996
|
* @see https://tailwindcss.com/docs/margin
|
|
2997
2997
|
*/
|
|
2998
2998
|
mx: [{
|
|
2999
|
-
mx: [
|
|
2999
|
+
mx: [v]
|
|
3000
3000
|
}],
|
|
3001
3001
|
/**
|
|
3002
3002
|
* Margin Y
|
|
3003
3003
|
* @see https://tailwindcss.com/docs/margin
|
|
3004
3004
|
*/
|
|
3005
3005
|
my: [{
|
|
3006
|
-
my: [
|
|
3006
|
+
my: [v]
|
|
3007
3007
|
}],
|
|
3008
3008
|
/**
|
|
3009
3009
|
* Margin Start
|
|
3010
3010
|
* @see https://tailwindcss.com/docs/margin
|
|
3011
3011
|
*/
|
|
3012
3012
|
ms: [{
|
|
3013
|
-
ms: [
|
|
3013
|
+
ms: [v]
|
|
3014
3014
|
}],
|
|
3015
3015
|
/**
|
|
3016
3016
|
* Margin End
|
|
3017
3017
|
* @see https://tailwindcss.com/docs/margin
|
|
3018
3018
|
*/
|
|
3019
3019
|
me: [{
|
|
3020
|
-
me: [
|
|
3020
|
+
me: [v]
|
|
3021
3021
|
}],
|
|
3022
3022
|
/**
|
|
3023
3023
|
* Margin Top
|
|
3024
3024
|
* @see https://tailwindcss.com/docs/margin
|
|
3025
3025
|
*/
|
|
3026
3026
|
mt: [{
|
|
3027
|
-
mt: [
|
|
3027
|
+
mt: [v]
|
|
3028
3028
|
}],
|
|
3029
3029
|
/**
|
|
3030
3030
|
* Margin Right
|
|
3031
3031
|
* @see https://tailwindcss.com/docs/margin
|
|
3032
3032
|
*/
|
|
3033
3033
|
mr: [{
|
|
3034
|
-
mr: [
|
|
3034
|
+
mr: [v]
|
|
3035
3035
|
}],
|
|
3036
3036
|
/**
|
|
3037
3037
|
* Margin Bottom
|
|
3038
3038
|
* @see https://tailwindcss.com/docs/margin
|
|
3039
3039
|
*/
|
|
3040
3040
|
mb: [{
|
|
3041
|
-
mb: [
|
|
3041
|
+
mb: [v]
|
|
3042
3042
|
}],
|
|
3043
3043
|
/**
|
|
3044
3044
|
* Margin Left
|
|
3045
3045
|
* @see https://tailwindcss.com/docs/margin
|
|
3046
3046
|
*/
|
|
3047
3047
|
ml: [{
|
|
3048
|
-
ml: [
|
|
3048
|
+
ml: [v]
|
|
3049
3049
|
}],
|
|
3050
3050
|
/**
|
|
3051
3051
|
* Space Between X
|
|
@@ -3390,7 +3390,7 @@ function xo() {
|
|
|
3390
3390
|
* @see https://tailwindcss.com/docs/background-position
|
|
3391
3391
|
*/
|
|
3392
3392
|
"bg-position": [{
|
|
3393
|
-
bg: [...
|
|
3393
|
+
bg: [...G(), fo]
|
|
3394
3394
|
}],
|
|
3395
3395
|
/**
|
|
3396
3396
|
* Background Repeat
|
|
@@ -3450,21 +3450,21 @@ function xo() {
|
|
|
3450
3450
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3451
3451
|
*/
|
|
3452
3452
|
"gradient-from": [{
|
|
3453
|
-
from: [
|
|
3453
|
+
from: [b]
|
|
3454
3454
|
}],
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Gradient Color Stops Via
|
|
3457
3457
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3458
3458
|
*/
|
|
3459
3459
|
"gradient-via": [{
|
|
3460
|
-
via: [
|
|
3460
|
+
via: [b]
|
|
3461
3461
|
}],
|
|
3462
3462
|
/**
|
|
3463
3463
|
* Gradient Color Stops To
|
|
3464
3464
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3465
3465
|
*/
|
|
3466
3466
|
"gradient-to": [{
|
|
3467
|
-
to: [
|
|
3467
|
+
to: [b]
|
|
3468
3468
|
}],
|
|
3469
3469
|
// Borders
|
|
3470
3470
|
/**
|
|
@@ -3577,63 +3577,63 @@ function xo() {
|
|
|
3577
3577
|
* @see https://tailwindcss.com/docs/border-width
|
|
3578
3578
|
*/
|
|
3579
3579
|
"border-w": [{
|
|
3580
|
-
border: [
|
|
3580
|
+
border: [l]
|
|
3581
3581
|
}],
|
|
3582
3582
|
/**
|
|
3583
3583
|
* Border Width X
|
|
3584
3584
|
* @see https://tailwindcss.com/docs/border-width
|
|
3585
3585
|
*/
|
|
3586
3586
|
"border-w-x": [{
|
|
3587
|
-
"border-x": [
|
|
3587
|
+
"border-x": [l]
|
|
3588
3588
|
}],
|
|
3589
3589
|
/**
|
|
3590
3590
|
* Border Width Y
|
|
3591
3591
|
* @see https://tailwindcss.com/docs/border-width
|
|
3592
3592
|
*/
|
|
3593
3593
|
"border-w-y": [{
|
|
3594
|
-
"border-y": [
|
|
3594
|
+
"border-y": [l]
|
|
3595
3595
|
}],
|
|
3596
3596
|
/**
|
|
3597
3597
|
* Border Width Start
|
|
3598
3598
|
* @see https://tailwindcss.com/docs/border-width
|
|
3599
3599
|
*/
|
|
3600
3600
|
"border-w-s": [{
|
|
3601
|
-
"border-s": [
|
|
3601
|
+
"border-s": [l]
|
|
3602
3602
|
}],
|
|
3603
3603
|
/**
|
|
3604
3604
|
* Border Width End
|
|
3605
3605
|
* @see https://tailwindcss.com/docs/border-width
|
|
3606
3606
|
*/
|
|
3607
3607
|
"border-w-e": [{
|
|
3608
|
-
"border-e": [
|
|
3608
|
+
"border-e": [l]
|
|
3609
3609
|
}],
|
|
3610
3610
|
/**
|
|
3611
3611
|
* Border Width Top
|
|
3612
3612
|
* @see https://tailwindcss.com/docs/border-width
|
|
3613
3613
|
*/
|
|
3614
3614
|
"border-w-t": [{
|
|
3615
|
-
"border-t": [
|
|
3615
|
+
"border-t": [l]
|
|
3616
3616
|
}],
|
|
3617
3617
|
/**
|
|
3618
3618
|
* Border Width Right
|
|
3619
3619
|
* @see https://tailwindcss.com/docs/border-width
|
|
3620
3620
|
*/
|
|
3621
3621
|
"border-w-r": [{
|
|
3622
|
-
"border-r": [
|
|
3622
|
+
"border-r": [l]
|
|
3623
3623
|
}],
|
|
3624
3624
|
/**
|
|
3625
3625
|
* Border Width Bottom
|
|
3626
3626
|
* @see https://tailwindcss.com/docs/border-width
|
|
3627
3627
|
*/
|
|
3628
3628
|
"border-w-b": [{
|
|
3629
|
-
"border-b": [
|
|
3629
|
+
"border-b": [l]
|
|
3630
3630
|
}],
|
|
3631
3631
|
/**
|
|
3632
3632
|
* Border Width Left
|
|
3633
3633
|
* @see https://tailwindcss.com/docs/border-width
|
|
3634
3634
|
*/
|
|
3635
3635
|
"border-w-l": [{
|
|
3636
|
-
"border-l": [
|
|
3636
|
+
"border-l": [l]
|
|
3637
3637
|
}],
|
|
3638
3638
|
/**
|
|
3639
3639
|
* Border Opacity
|
|
@@ -3654,7 +3654,7 @@ function xo() {
|
|
|
3654
3654
|
* @see https://tailwindcss.com/docs/divide-width
|
|
3655
3655
|
*/
|
|
3656
3656
|
"divide-x": [{
|
|
3657
|
-
"divide-x": [
|
|
3657
|
+
"divide-x": [l]
|
|
3658
3658
|
}],
|
|
3659
3659
|
/**
|
|
3660
3660
|
* Divide Width X Reverse
|
|
@@ -3666,7 +3666,7 @@ function xo() {
|
|
|
3666
3666
|
* @see https://tailwindcss.com/docs/divide-width
|
|
3667
3667
|
*/
|
|
3668
3668
|
"divide-y": [{
|
|
3669
|
-
"divide-y": [
|
|
3669
|
+
"divide-y": [l]
|
|
3670
3670
|
}],
|
|
3671
3671
|
/**
|
|
3672
3672
|
* Divide Width Y Reverse
|
|
@@ -3838,14 +3838,14 @@ function xo() {
|
|
|
3838
3838
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
3839
3839
|
*/
|
|
3840
3840
|
"mix-blend": [{
|
|
3841
|
-
"mix-blend":
|
|
3841
|
+
"mix-blend": ve()
|
|
3842
3842
|
}],
|
|
3843
3843
|
/**
|
|
3844
3844
|
* Background Blend Mode
|
|
3845
3845
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
3846
3846
|
*/
|
|
3847
3847
|
"bg-blend": [{
|
|
3848
|
-
"bg-blend":
|
|
3848
|
+
"bg-blend": ve()
|
|
3849
3849
|
}],
|
|
3850
3850
|
// Filters
|
|
3851
3851
|
/**
|
|
@@ -4473,7 +4473,7 @@ function xo() {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
4475
|
}
|
|
4476
|
-
const
|
|
4476
|
+
const U = /* @__PURE__ */ eo(xo);
|
|
4477
4477
|
function Co() {
|
|
4478
4478
|
return Math.floor(Math.random() * 1e7);
|
|
4479
4479
|
}
|
|
@@ -4641,7 +4641,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4641
4641
|
}
|
|
4642
4642
|
),
|
|
4643
4643
|
exclude: /* @__PURE__ */ i.jsx(
|
|
4644
|
-
|
|
4644
|
+
vs,
|
|
4645
4645
|
{
|
|
4646
4646
|
width: e,
|
|
4647
4647
|
height: r,
|
|
@@ -4715,7 +4715,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
),
|
|
4717
4717
|
bookmark: /* @__PURE__ */ i.jsx(
|
|
4718
|
-
|
|
4718
|
+
Ts,
|
|
4719
4719
|
{
|
|
4720
4720
|
width: e,
|
|
4721
4721
|
height: r,
|
|
@@ -4742,7 +4742,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4742
4742
|
width: "24",
|
|
4743
4743
|
height: "24"
|
|
4744
4744
|
}
|
|
4745
|
-
},
|
|
4745
|
+
}, l = Bt(
|
|
4746
4746
|
a[e].width,
|
|
4747
4747
|
a[e].height,
|
|
4748
4748
|
t,
|
|
@@ -4754,7 +4754,7 @@ const Bt = (e, r, n, t, s) => {
|
|
|
4754
4754
|
t,
|
|
4755
4755
|
s,
|
|
4756
4756
|
o
|
|
4757
|
-
), u = n && c[r] ||
|
|
4757
|
+
), u = n && c[r] || l[r];
|
|
4758
4758
|
return /* @__PURE__ */ i.jsx(i.Fragment, { children: u });
|
|
4759
4759
|
}, Ve = wo;
|
|
4760
4760
|
Object.keys(Bt()).sort(
|
|
@@ -4782,7 +4782,7 @@ function ko() {
|
|
|
4782
4782
|
(e = arguments[n]) && (r = Ut(e)) && (t && (t += " "), t += r);
|
|
4783
4783
|
return t;
|
|
4784
4784
|
}
|
|
4785
|
-
const Vr = (...e) =>
|
|
4785
|
+
const Vr = (...e) => U(ko(...e)), Gt = (e, r, n) => {
|
|
4786
4786
|
if (r) {
|
|
4787
4787
|
e.preventDefault();
|
|
4788
4788
|
return;
|
|
@@ -4794,7 +4794,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4794
4794
|
return;
|
|
4795
4795
|
}
|
|
4796
4796
|
n(e);
|
|
4797
|
-
}, yo =
|
|
4797
|
+
}, yo = W(
|
|
4798
4798
|
[
|
|
4799
4799
|
"preflight",
|
|
4800
4800
|
"!ds-font-sans",
|
|
@@ -4863,7 +4863,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4863
4863
|
onClick: s,
|
|
4864
4864
|
iconName: o,
|
|
4865
4865
|
iconSize: a = "medium",
|
|
4866
|
-
hasIndicator:
|
|
4866
|
+
hasIndicator: l = !1,
|
|
4867
4867
|
hasTooltip: c = !0,
|
|
4868
4868
|
isTransparent: u = !0,
|
|
4869
4869
|
iconColor: f = "",
|
|
@@ -4882,7 +4882,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4882
4882
|
{
|
|
4883
4883
|
size: e === "small" ? "small" : a,
|
|
4884
4884
|
name: o != null ? o : "edit",
|
|
4885
|
-
hasIndicator:
|
|
4885
|
+
hasIndicator: l,
|
|
4886
4886
|
className: n ? "ds-text-neutrals-dark" : f && f !== "" ? f : "ds-text-neutrals-black",
|
|
4887
4887
|
altText: r
|
|
4888
4888
|
}
|
|
@@ -4897,7 +4897,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4897
4897
|
)
|
|
4898
4898
|
]
|
|
4899
4899
|
}
|
|
4900
|
-
), Kr = jo, Eo =
|
|
4900
|
+
), Kr = jo, Eo = W(
|
|
4901
4901
|
[
|
|
4902
4902
|
"preflight",
|
|
4903
4903
|
"ds-flex",
|
|
@@ -4921,7 +4921,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
|
-
), Lo = (e) =>
|
|
4924
|
+
), Lo = (e) => U(Eo(e)), $o = W("", {
|
|
4925
4925
|
variants: {
|
|
4926
4926
|
variant: {
|
|
4927
4927
|
success: "ds-text-success-green-dark",
|
|
@@ -4930,7 +4930,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4930
4930
|
error: "ds-text-danger-red-dark"
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
4933
|
-
}), Lt = (e) =>
|
|
4933
|
+
}), Lt = (e) => U($o(e)), To = W("", {
|
|
4934
4934
|
variants: {
|
|
4935
4935
|
variant: {
|
|
4936
4936
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -4939,7 +4939,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4939
4939
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}), ze = (e) =>
|
|
4942
|
+
}), ze = (e) => U(To(e)), Mo = ({
|
|
4943
4943
|
variant: e = "info",
|
|
4944
4944
|
isDismissible: r = !0,
|
|
4945
4945
|
showIcon: n = !0,
|
|
@@ -4947,7 +4947,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4947
4947
|
title: s = "",
|
|
4948
4948
|
description: o = "",
|
|
4949
4949
|
content: a = void 0,
|
|
4950
|
-
closeAriaLabel:
|
|
4950
|
+
closeAriaLabel: l = "Close button",
|
|
4951
4951
|
id: c = "alert_" + Co().toString(),
|
|
4952
4952
|
handleClose: u,
|
|
4953
4953
|
...f
|
|
@@ -4957,7 +4957,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4957
4957
|
info: /* @__PURE__ */ i.jsx(At, { className: ze({ variant: e }) }),
|
|
4958
4958
|
warning: /* @__PURE__ */ i.jsx(Ft, { className: ze({ variant: e }) }),
|
|
4959
4959
|
error: /* @__PURE__ */ i.jsx(Ot, { className: ze({ variant: e }) })
|
|
4960
|
-
}, m = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""),
|
|
4960
|
+
}, m = () => a !== void 0 && o !== "" && !(t !== "none" || s !== ""), b = () => t === "large" ? "ds-flex-col ds-flex ds-gap-3" : t === "small" ? "ds-flex-row ds-flex ds-gap-3" : "ds-flex";
|
|
4961
4961
|
return /* @__PURE__ */ i.jsxs("div", { id: c, className: Lo({ variant: e }), ...f, children: [
|
|
4962
4962
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
4963
4963
|
n && /* @__PURE__ */ i.jsx(
|
|
@@ -4972,7 +4972,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
4972
4972
|
{
|
|
4973
4973
|
className: `ds-flex ds-flex-col ${t !== "none" && s !== "" ? "ds-gap-3" : "ds-justify-center"}`,
|
|
4974
4974
|
children: [
|
|
4975
|
-
/* @__PURE__ */ i.jsxs("div", { className:
|
|
4975
|
+
/* @__PURE__ */ i.jsxs("div", { className: b(), children: [
|
|
4976
4976
|
t !== "none" && s !== "" && /* @__PURE__ */ i.jsx(
|
|
4977
4977
|
"h1",
|
|
4978
4978
|
{
|
|
@@ -5015,14 +5015,14 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5015
5015
|
iconSize: "small",
|
|
5016
5016
|
iconName: "close",
|
|
5017
5017
|
hasTooltip: !1,
|
|
5018
|
-
label:
|
|
5018
|
+
label: l,
|
|
5019
5019
|
disabled: !1,
|
|
5020
5020
|
iconColor: ze({ variant: e }),
|
|
5021
5021
|
onClick: u
|
|
5022
5022
|
}
|
|
5023
5023
|
) })
|
|
5024
5024
|
] });
|
|
5025
|
-
},
|
|
5025
|
+
}, gl = Mo, Yt = [
|
|
5026
5026
|
"preflight",
|
|
5027
5027
|
// Need to specify the font because disabling preflight makes the button not inherit the font
|
|
5028
5028
|
// Lato is defined as font-sans in our tailwind theme configuration
|
|
@@ -5060,7 +5060,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5060
5060
|
"focus-visible:ds-ring-neutrals-black",
|
|
5061
5061
|
"!focus-visible:ds-border-neutrals-light",
|
|
5062
5062
|
"active:ds-border-neutrals-lighter"
|
|
5063
|
-
], Ro =
|
|
5063
|
+
], Ro = W(Yt, {
|
|
5064
5064
|
variants: {
|
|
5065
5065
|
variant: {
|
|
5066
5066
|
primary: [
|
|
@@ -5155,7 +5155,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5155
5155
|
className: s = "",
|
|
5156
5156
|
onClick: o,
|
|
5157
5157
|
iconName: a,
|
|
5158
|
-
iconIndicator:
|
|
5158
|
+
iconIndicator: l = !1,
|
|
5159
5159
|
leadingIcon: c = !1,
|
|
5160
5160
|
trailingIcon: u = !1,
|
|
5161
5161
|
...f
|
|
@@ -5173,7 +5173,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5173
5173
|
{
|
|
5174
5174
|
size: "small",
|
|
5175
5175
|
name: a != null ? a : "edit",
|
|
5176
|
-
hasIndicator:
|
|
5176
|
+
hasIndicator: l,
|
|
5177
5177
|
className: "ds-mr-2 ds-self-center",
|
|
5178
5178
|
altText: ""
|
|
5179
5179
|
}
|
|
@@ -5184,14 +5184,14 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5184
5184
|
{
|
|
5185
5185
|
size: "small",
|
|
5186
5186
|
name: a != null ? a : "edit",
|
|
5187
|
-
hasIndicator:
|
|
5187
|
+
hasIndicator: l,
|
|
5188
5188
|
className: "ds-ml-2 ds-self-center",
|
|
5189
5189
|
altText: ""
|
|
5190
5190
|
}
|
|
5191
5191
|
)
|
|
5192
5192
|
] })
|
|
5193
5193
|
}
|
|
5194
|
-
) }),
|
|
5194
|
+
) }), bl = Po, Fo = ({
|
|
5195
5195
|
content: e = void 0,
|
|
5196
5196
|
iconName: r = void 0,
|
|
5197
5197
|
title: n = "",
|
|
@@ -5202,7 +5202,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5202
5202
|
"div",
|
|
5203
5203
|
{
|
|
5204
5204
|
...o,
|
|
5205
|
-
className:
|
|
5205
|
+
className: U(
|
|
5206
5206
|
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
5207
5207
|
s
|
|
5208
5208
|
),
|
|
@@ -5224,7 +5224,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5224
5224
|
t && /* @__PURE__ */ i.jsx("div", { children: t })
|
|
5225
5225
|
]
|
|
5226
5226
|
}
|
|
5227
|
-
),
|
|
5227
|
+
), vl = Fo, Oo = W(
|
|
5228
5228
|
[
|
|
5229
5229
|
"preflight",
|
|
5230
5230
|
"ds-h-4",
|
|
@@ -5252,7 +5252,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
), Zt = (e) =>
|
|
5255
|
+
), Zt = (e) => U(Oo(e)), _o = W(
|
|
5256
5256
|
["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
|
|
5257
5257
|
{
|
|
5258
5258
|
variants: {
|
|
@@ -5262,7 +5262,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
|
-
), qt = (e) =>
|
|
5265
|
+
), qt = (e) => U(_o(e)), Jr = {
|
|
5266
5266
|
variants: {
|
|
5267
5267
|
state: {
|
|
5268
5268
|
default: [
|
|
@@ -5310,7 +5310,7 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5310
5310
|
indeterminate: o = !1,
|
|
5311
5311
|
onChange: a = () => {
|
|
5312
5312
|
},
|
|
5313
|
-
onClick:
|
|
5313
|
+
onClick: l = () => {
|
|
5314
5314
|
},
|
|
5315
5315
|
...c
|
|
5316
5316
|
}) => /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-4 ds-items-center", children: [
|
|
@@ -5324,13 +5324,13 @@ const Vr = (...e) => G(ko(...e)), Gt = (e, r, n) => {
|
|
|
5324
5324
|
className: `ds-form-checkbox ${Zt({ disabled: s })} ds-rounded`,
|
|
5325
5325
|
checked: t,
|
|
5326
5326
|
ref: (u) => u && (u.indeterminate = o),
|
|
5327
|
-
onClick: (u) => jr(u, s,
|
|
5327
|
+
onClick: (u) => jr(u, s, l),
|
|
5328
5328
|
onChange: (u) => Gt(u, s, a),
|
|
5329
5329
|
...c
|
|
5330
5330
|
}
|
|
5331
5331
|
),
|
|
5332
5332
|
/* @__PURE__ */ i.jsx("label", { htmlFor: e, className: qt({ disabled: s }), children: r })
|
|
5333
|
-
] }),
|
|
5333
|
+
] }), xl = Wo, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", $t = "h1", Io = "h2", Vo = "h3", Do = "div";
|
|
5334
5334
|
function Ho(e) {
|
|
5335
5335
|
return {
|
|
5336
5336
|
[De]: $t,
|
|
@@ -5339,7 +5339,7 @@ function Ho(e) {
|
|
|
5339
5339
|
[qe]: Do
|
|
5340
5340
|
}[e] || $t;
|
|
5341
5341
|
}
|
|
5342
|
-
const Bo =
|
|
5342
|
+
const Bo = W("preflight !ds-font-sans", {
|
|
5343
5343
|
variants: {
|
|
5344
5344
|
size: {
|
|
5345
5345
|
[Ze]: "ds-mb-3",
|
|
@@ -5348,7 +5348,7 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5348
5348
|
[qe]: "ds-mb-6"
|
|
5349
5349
|
}
|
|
5350
5350
|
}
|
|
5351
|
-
}),
|
|
5351
|
+
}), br = W("ds-text-neutrals-darker !ds-font-sans", {
|
|
5352
5352
|
variants: {
|
|
5353
5353
|
size: {
|
|
5354
5354
|
[Ze]: "ds-text-xl ds-font-semibold",
|
|
@@ -5357,7 +5357,7 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5357
5357
|
[qe]: "ds-text-4xl ds-font-semibold"
|
|
5358
5358
|
}
|
|
5359
5359
|
}
|
|
5360
|
-
}), zo =
|
|
5360
|
+
}), zo = W("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
5361
5361
|
variants: {
|
|
5362
5362
|
size: {
|
|
5363
5363
|
[Ze]: "ds-mb-1 ds-text-sm",
|
|
@@ -5366,7 +5366,7 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5366
5366
|
[qe]: "ds-mb-3 ds-text-base"
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
|
-
}), Uo =
|
|
5369
|
+
}), Uo = W("ds-mb-0 ds-text-neutrals-dark", {
|
|
5370
5370
|
variants: {
|
|
5371
5371
|
size: {
|
|
5372
5372
|
[Ze]: "ds-mt-1 ds-text-base",
|
|
@@ -5375,7 +5375,7 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5375
5375
|
[qe]: "ds-mt-3 ds-text-base"
|
|
5376
5376
|
}
|
|
5377
5377
|
}
|
|
5378
|
-
}), Go =
|
|
5378
|
+
}), Go = W("ds-text-neutrals-light", {
|
|
5379
5379
|
variants: {
|
|
5380
5380
|
size: {
|
|
5381
5381
|
[Ze]: "ds-mt-2",
|
|
@@ -5392,18 +5392,18 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5392
5392
|
descriptionBottom: s = "",
|
|
5393
5393
|
hasHorizontalRule: o = !1,
|
|
5394
5394
|
hasMarginBottom: a = !0,
|
|
5395
|
-
headingTag:
|
|
5395
|
+
headingTag: l,
|
|
5396
5396
|
...c
|
|
5397
5397
|
}) => {
|
|
5398
|
-
const u = t ? /* @__PURE__ */ i.jsx("p", { className: zo({ size: e }), children: t }) : null, f = s ? /* @__PURE__ */ i.jsx("p", { className: Uo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: Go({ size: e }) }) : null, m = a ? Bo({ size: e }) : "preflight",
|
|
5399
|
-
div: /* @__PURE__ */ i.jsx("div", { className:
|
|
5400
|
-
h3: /* @__PURE__ */ i.jsx("h3", { className:
|
|
5401
|
-
h2: /* @__PURE__ */ i.jsx("h2", { className:
|
|
5402
|
-
h1: /* @__PURE__ */ i.jsx("h1", { className:
|
|
5398
|
+
const u = t ? /* @__PURE__ */ i.jsx("p", { className: zo({ size: e }), children: t }) : null, f = s ? /* @__PURE__ */ i.jsx("p", { className: Uo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: Go({ size: e }) }) : null, m = a ? Bo({ size: e }) : "preflight", b = {
|
|
5399
|
+
div: /* @__PURE__ */ i.jsx("div", { className: br({ size: e }), children: n }),
|
|
5400
|
+
h3: /* @__PURE__ */ i.jsx("h3", { className: br({ size: e }), children: n }),
|
|
5401
|
+
h2: /* @__PURE__ */ i.jsx("h2", { className: br({ size: e }), children: n }),
|
|
5402
|
+
h1: /* @__PURE__ */ i.jsx("h1", { className: br({ size: e }), children: n })
|
|
5403
5403
|
};
|
|
5404
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
5404
|
+
return /* @__PURE__ */ i.jsxs("div", { className: U(m, r), ...c, children: [
|
|
5405
5405
|
u,
|
|
5406
|
-
|
|
5406
|
+
b[l || Ho(e)],
|
|
5407
5407
|
f,
|
|
5408
5408
|
p
|
|
5409
5409
|
] });
|
|
@@ -5426,13 +5426,13 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5426
5426
|
type: "radio",
|
|
5427
5427
|
className: `ds-form-radio ${Zt({ disabled: t })}`,
|
|
5428
5428
|
"aria-disabled": t,
|
|
5429
|
-
onChange: (
|
|
5430
|
-
onClick: (
|
|
5429
|
+
onChange: (l) => Gt(l, t, s),
|
|
5430
|
+
onClick: (l) => jr(l, t, o),
|
|
5431
5431
|
...a
|
|
5432
5432
|
}
|
|
5433
5433
|
),
|
|
5434
5434
|
/* @__PURE__ */ i.jsx("label", { htmlFor: n, className: qt({ disabled: t }), children: e })
|
|
5435
|
-
] }),
|
|
5435
|
+
] }), Cl = Zo, qo = W(
|
|
5436
5436
|
[
|
|
5437
5437
|
"preflight",
|
|
5438
5438
|
"!ds-font-sans",
|
|
@@ -5471,10 +5471,10 @@ const Bo = I("preflight !ds-font-sans", {
|
|
|
5471
5471
|
type: n = "default",
|
|
5472
5472
|
iconName: t,
|
|
5473
5473
|
...s
|
|
5474
|
-
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className:
|
|
5474
|
+
}) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: U(qo({ type: n })), ...s, children: [
|
|
5475
5475
|
e,
|
|
5476
5476
|
t && /* @__PURE__ */ i.jsx(Ve, { altText: e, name: t, size: "small" })
|
|
5477
|
-
] }),
|
|
5477
|
+
] }), wl = Ko;
|
|
5478
5478
|
var Jo = Object.defineProperty, Xo = (e, r, n) => r in e ? Jo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (Xo(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
5479
5479
|
let Qo = class {
|
|
5480
5480
|
constructor() {
|
|
@@ -5584,38 +5584,38 @@ function z(e, r, ...n) {
|
|
|
5584
5584
|
throw Error.captureStackTrace && Error.captureStackTrace(t, z), t;
|
|
5585
5585
|
}
|
|
5586
5586
|
var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}), Fe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Fe || {});
|
|
5587
|
-
function
|
|
5588
|
-
|
|
5587
|
+
function be({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
|
|
5588
|
+
l = l != null ? l : ta;
|
|
5589
5589
|
let c = Jt(r, e);
|
|
5590
5590
|
if (o)
|
|
5591
|
-
return
|
|
5591
|
+
return vr(c, n, t, a, l);
|
|
5592
5592
|
let u = s != null ? s : 0;
|
|
5593
5593
|
if (u & 2) {
|
|
5594
5594
|
let { static: f = !1, ...p } = c;
|
|
5595
5595
|
if (f)
|
|
5596
|
-
return
|
|
5596
|
+
return vr(p, n, t, a, l);
|
|
5597
5597
|
}
|
|
5598
5598
|
if (u & 1) {
|
|
5599
5599
|
let { unmount: f = !0, ...p } = c;
|
|
5600
5600
|
return z(f ? 0 : 1, { 0() {
|
|
5601
5601
|
return null;
|
|
5602
5602
|
}, 1() {
|
|
5603
|
-
return
|
|
5603
|
+
return vr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
|
|
5604
5604
|
} });
|
|
5605
5605
|
}
|
|
5606
|
-
return
|
|
5606
|
+
return vr(c, n, t, a, l);
|
|
5607
5607
|
}
|
|
5608
|
-
function
|
|
5609
|
-
let { as: o = n, children: a, refName:
|
|
5608
|
+
function vr(e, r = {}, n, t, s) {
|
|
5609
|
+
let { as: o = n, children: a, refName: l = "ref", ...c } = Fr(e, ["unmount", "static"]), u = e.ref !== void 0 ? { [l]: e.ref } : {}, f = typeof a == "function" ? a(r) : a;
|
|
5610
5610
|
"className" in c && c.className && typeof c.className == "function" && (c.className = c.className(r)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
|
|
5611
5611
|
let p = {};
|
|
5612
5612
|
if (r) {
|
|
5613
|
-
let m = !1,
|
|
5613
|
+
let m = !1, b = [];
|
|
5614
5614
|
for (let [x, C] of Object.entries(r))
|
|
5615
|
-
typeof C == "boolean" && (m = !0), C === !0 &&
|
|
5615
|
+
typeof C == "boolean" && (m = !0), C === !0 && b.push(x.replace(/([A-Z])/g, (v) => `-${v.toLowerCase()}`));
|
|
5616
5616
|
if (m) {
|
|
5617
|
-
p["data-headlessui-state"] =
|
|
5618
|
-
for (let x of
|
|
5617
|
+
p["data-headlessui-state"] = b.join(" ");
|
|
5618
|
+
for (let x of b)
|
|
5619
5619
|
p[`data-${x}`] = "";
|
|
5620
5620
|
}
|
|
5621
5621
|
}
|
|
@@ -5627,10 +5627,10 @@ function br(e, r = {}, n, t, s) {
|
|
|
5627
5627
|
`)].join(`
|
|
5628
5628
|
`));
|
|
5629
5629
|
} else {
|
|
5630
|
-
let m = f.props,
|
|
5630
|
+
let m = f.props, b = m == null ? void 0 : m.className, x = typeof b == "function" ? (...w) => ar(b(...w), c.className) : ar(b, c.className), C = x ? { className: x } : {}, v = Jt(f.props, Ue(Fr(c, ["ref"])));
|
|
5631
5631
|
for (let w in p)
|
|
5632
|
-
w in
|
|
5633
|
-
return zn(f, Object.assign({},
|
|
5632
|
+
w in v && delete p[w];
|
|
5633
|
+
return zn(f, Object.assign({}, v, p, u, { ref: s(f.ref, u.ref) }, C));
|
|
5634
5634
|
}
|
|
5635
5635
|
return Un(o, Object.assign({}, Fr(c, ["ref"]), o !== de && u, o !== de && p), f);
|
|
5636
5636
|
}
|
|
@@ -5658,10 +5658,10 @@ function Jt(...e) {
|
|
|
5658
5658
|
for (let t in n)
|
|
5659
5659
|
Object.assign(r, { [t](s, ...o) {
|
|
5660
5660
|
let a = n[t];
|
|
5661
|
-
for (let
|
|
5661
|
+
for (let l of a) {
|
|
5662
5662
|
if ((s instanceof Event || (s == null ? void 0 : s.nativeEvent) instanceof Event) && s.defaultPrevented)
|
|
5663
5663
|
return;
|
|
5664
|
-
|
|
5664
|
+
l(s, ...o);
|
|
5665
5665
|
}
|
|
5666
5666
|
} });
|
|
5667
5667
|
return r;
|
|
@@ -5687,7 +5687,7 @@ var wr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.
|
|
|
5687
5687
|
function sa(e, r) {
|
|
5688
5688
|
var n;
|
|
5689
5689
|
let { features: t = 1, ...s } = e, o = { ref: r, "aria-hidden": (t & 2) === 2 ? !0 : (n = s["aria-hidden"]) != null ? n : void 0, hidden: (t & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(t & 4) === 4 && (t & 2) !== 2 && { display: "none" } } };
|
|
5690
|
-
return
|
|
5690
|
+
return be({ ourProps: o, theirProps: s, slot: {}, defaultTag: na, name: "Hidden" });
|
|
5691
5691
|
}
|
|
5692
5692
|
let Dr = ue(sa), oa = ce(null);
|
|
5693
5693
|
function aa({ children: e }) {
|
|
@@ -5726,18 +5726,18 @@ function la() {
|
|
|
5726
5726
|
let [e, r] = ge([]);
|
|
5727
5727
|
return [e.length > 0 ? e.join(" ") : void 0, ae(() => function(n) {
|
|
5728
5728
|
let t = P((o) => (r((a) => [...a, o]), () => r((a) => {
|
|
5729
|
-
let
|
|
5730
|
-
return c !== -1 &&
|
|
5729
|
+
let l = a.slice(), c = l.indexOf(o);
|
|
5730
|
+
return c !== -1 && l.splice(c, 1), l;
|
|
5731
5731
|
}))), s = ae(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
|
|
5732
5732
|
return k.createElement(et.Provider, { value: s }, n.children);
|
|
5733
5733
|
}, [r])];
|
|
5734
5734
|
}
|
|
5735
5735
|
let da = "p";
|
|
5736
5736
|
function ca(e, r) {
|
|
5737
|
-
let n = yr(), t = ra(), { id: s = `headlessui-description-${n}`, ...o } = e, a = Qt(),
|
|
5737
|
+
let n = yr(), t = ra(), { id: s = `headlessui-description-${n}`, ...o } = e, a = Qt(), l = we(r);
|
|
5738
5738
|
K(() => a.register(s), [s, a.register]);
|
|
5739
|
-
let c = t || !1, u = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), f = { ref:
|
|
5740
|
-
return
|
|
5739
|
+
let c = t || !1, u = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), f = { ref: l, ...a.props, id: s };
|
|
5740
|
+
return be({ ourProps: f, theirProps: o, slot: u, defaultTag: da, name: a.name || "Description" });
|
|
5741
5741
|
}
|
|
5742
5742
|
let ua = ue(ca), fa = Object.assign(ua, {});
|
|
5743
5743
|
var en = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(en || {});
|
|
@@ -5747,12 +5747,12 @@ function ha({ value: e, children: r }) {
|
|
|
5747
5747
|
return k.createElement(pa.Provider, { value: e }, r);
|
|
5748
5748
|
}
|
|
5749
5749
|
let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
|
|
5750
|
-
function
|
|
5750
|
+
function Tt(e) {
|
|
5751
5751
|
var r;
|
|
5752
5752
|
let n = (r = ir.get(e)) != null ? r : 0;
|
|
5753
|
-
return ir.set(e, n + 1), n !== 0 ? () =>
|
|
5753
|
+
return ir.set(e, n + 1), n !== 0 ? () => Mt(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Mt(e));
|
|
5754
5754
|
}
|
|
5755
|
-
function
|
|
5755
|
+
function Mt(e) {
|
|
5756
5756
|
var r;
|
|
5757
5757
|
let n = (r = ir.get(e)) != null ? r : 1;
|
|
5758
5758
|
if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
|
|
@@ -5766,19 +5766,19 @@ function ma({ allowed: e, disallowed: r } = {}, n = !0) {
|
|
|
5766
5766
|
if (!n)
|
|
5767
5767
|
return;
|
|
5768
5768
|
let o = Oe();
|
|
5769
|
-
for (let
|
|
5770
|
-
|
|
5769
|
+
for (let l of (t = r == null ? void 0 : r()) != null ? t : [])
|
|
5770
|
+
l && o.add(Tt(l));
|
|
5771
5771
|
let a = (s = e == null ? void 0 : e()) != null ? s : [];
|
|
5772
|
-
for (let
|
|
5773
|
-
if (!
|
|
5772
|
+
for (let l of a) {
|
|
5773
|
+
if (!l)
|
|
5774
5774
|
continue;
|
|
5775
|
-
let c = Xr(
|
|
5775
|
+
let c = Xr(l);
|
|
5776
5776
|
if (!c)
|
|
5777
5777
|
continue;
|
|
5778
|
-
let u =
|
|
5778
|
+
let u = l.parentElement;
|
|
5779
5779
|
for (; u && u !== c.body; ) {
|
|
5780
5780
|
for (let f of u.children)
|
|
5781
|
-
a.some((p) => f.contains(p)) || o.add(
|
|
5781
|
+
a.some((p) => f.contains(p)) || o.add(Tt(f));
|
|
5782
5782
|
u = u.parentElement;
|
|
5783
5783
|
}
|
|
5784
5784
|
}
|
|
@@ -5809,8 +5809,8 @@ function rn(e, r, n = !0) {
|
|
|
5809
5809
|
}, [e, t, n]);
|
|
5810
5810
|
}
|
|
5811
5811
|
let Br = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), ga = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
5812
|
-
var
|
|
5813
|
-
function
|
|
5812
|
+
var Te = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Te || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), ba = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ba || {});
|
|
5813
|
+
function va(e = document.body) {
|
|
5814
5814
|
return e == null ? [] : Array.from(e.querySelectorAll(Br)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
5815
5815
|
}
|
|
5816
5816
|
function xa(e = document.body) {
|
|
@@ -5837,7 +5837,7 @@ typeof window != "undefined" && typeof document != "undefined" && (document.addE
|
|
|
5837
5837
|
}, !0), document.addEventListener("click", (e) => {
|
|
5838
5838
|
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
5839
5839
|
}, !0));
|
|
5840
|
-
function
|
|
5840
|
+
function Me(e) {
|
|
5841
5841
|
e == null || e.focus({ preventScroll: !0 });
|
|
5842
5842
|
}
|
|
5843
5843
|
let ka = ["textarea", "input"].join(",");
|
|
@@ -5855,9 +5855,9 @@ function ja(e, r = (n) => n) {
|
|
|
5855
5855
|
});
|
|
5856
5856
|
}
|
|
5857
5857
|
function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] } = {}) {
|
|
5858
|
-
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ja(e) : e : r & 64 ? xa(e) :
|
|
5859
|
-
s.length > 0 && a.length > 1 && (a = a.filter((
|
|
5860
|
-
let
|
|
5858
|
+
let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? ja(e) : e : r & 64 ? xa(e) : va(e);
|
|
5859
|
+
s.length > 0 && a.length > 1 && (a = a.filter((b) => !s.some((x) => x != null && "current" in x ? (x == null ? void 0 : x.current) === b : x === b))), t = t != null ? t : o.activeElement;
|
|
5860
|
+
let l = (() => {
|
|
5861
5861
|
if (r & 5)
|
|
5862
5862
|
return 1;
|
|
5863
5863
|
if (r & 10)
|
|
@@ -5877,16 +5877,16 @@ function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] }
|
|
|
5877
5877
|
do {
|
|
5878
5878
|
if (f >= p || f + p <= 0)
|
|
5879
5879
|
return 0;
|
|
5880
|
-
let
|
|
5880
|
+
let b = c + f;
|
|
5881
5881
|
if (r & 16)
|
|
5882
|
-
|
|
5882
|
+
b = (b + p) % p;
|
|
5883
5883
|
else {
|
|
5884
|
-
if (
|
|
5884
|
+
if (b < 0)
|
|
5885
5885
|
return 3;
|
|
5886
|
-
if (
|
|
5886
|
+
if (b >= p)
|
|
5887
5887
|
return 1;
|
|
5888
5888
|
}
|
|
5889
|
-
m = a[
|
|
5889
|
+
m = a[b], m == null || m.focus(u), f += l;
|
|
5890
5890
|
} while (m !== o.activeElement);
|
|
5891
5891
|
return r & 6 && ya(m) && m.select(), 2;
|
|
5892
5892
|
}
|
|
@@ -5924,10 +5924,10 @@ function $a(e, r, n = !0) {
|
|
|
5924
5924
|
t.current = n;
|
|
5925
5925
|
});
|
|
5926
5926
|
}, [n]);
|
|
5927
|
-
function s(a,
|
|
5927
|
+
function s(a, l) {
|
|
5928
5928
|
if (!t.current || a.defaultPrevented)
|
|
5929
5929
|
return;
|
|
5930
|
-
let c =
|
|
5930
|
+
let c = l(a);
|
|
5931
5931
|
if (c === null || !c.getRootNode().contains(c) || !c.isConnected)
|
|
5932
5932
|
return;
|
|
5933
5933
|
let u = function f(p) {
|
|
@@ -5944,11 +5944,11 @@ function $a(e, r, n = !0) {
|
|
|
5944
5944
|
}
|
|
5945
5945
|
let o = R(null);
|
|
5946
5946
|
xr("pointerdown", (a) => {
|
|
5947
|
-
var
|
|
5948
|
-
t.current && (o.current = ((c = (
|
|
5947
|
+
var l, c;
|
|
5948
|
+
t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
5949
5949
|
}, !0), xr("mousedown", (a) => {
|
|
5950
|
-
var
|
|
5951
|
-
t.current && (o.current = ((c = (
|
|
5950
|
+
var l, c;
|
|
5951
|
+
t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
|
|
5952
5952
|
}, !0), xr("click", (a) => {
|
|
5953
5953
|
La() || o.current && (s(a, () => o.current), o.current = null);
|
|
5954
5954
|
}, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), sn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
@@ -5966,10 +5966,10 @@ function on(e, r, n, t) {
|
|
|
5966
5966
|
return e.addEventListener(r, o, t), () => e.removeEventListener(r, o, t);
|
|
5967
5967
|
}, [e, r, t]);
|
|
5968
5968
|
}
|
|
5969
|
-
function
|
|
5969
|
+
function Ta(e) {
|
|
5970
5970
|
return Gn(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
5971
5971
|
}
|
|
5972
|
-
function
|
|
5972
|
+
function Ma(e, r) {
|
|
5973
5973
|
let n = e(), t = /* @__PURE__ */ new Set();
|
|
5974
5974
|
return { getSnapshot() {
|
|
5975
5975
|
return n;
|
|
@@ -5977,7 +5977,7 @@ function Ta(e, r) {
|
|
|
5977
5977
|
return t.add(s), () => t.delete(s);
|
|
5978
5978
|
}, dispatch(s, ...o) {
|
|
5979
5979
|
let a = r[s].call(n, ...o);
|
|
5980
|
-
a && (n = a, t.forEach((
|
|
5980
|
+
a && (n = a, t.forEach((l) => l()));
|
|
5981
5981
|
} };
|
|
5982
5982
|
}
|
|
5983
5983
|
function Sa() {
|
|
@@ -5999,44 +5999,44 @@ function Na() {
|
|
|
5999
5999
|
r.microTask(() => {
|
|
6000
6000
|
var s;
|
|
6001
6001
|
if (window.getComputedStyle(e.documentElement).scrollBehavior !== "auto") {
|
|
6002
|
-
let
|
|
6003
|
-
|
|
6002
|
+
let l = Oe();
|
|
6003
|
+
l.style(e.documentElement, "scrollBehavior", "auto"), r.add(() => r.microTask(() => l.dispose()));
|
|
6004
6004
|
}
|
|
6005
6005
|
let o = (s = window.scrollY) != null ? s : window.pageYOffset, a = null;
|
|
6006
|
-
r.addEventListener(e, "click", (
|
|
6007
|
-
if (
|
|
6006
|
+
r.addEventListener(e, "click", (l) => {
|
|
6007
|
+
if (l.target instanceof HTMLElement)
|
|
6008
6008
|
try {
|
|
6009
|
-
let c =
|
|
6009
|
+
let c = l.target.closest("a");
|
|
6010
6010
|
if (!c)
|
|
6011
6011
|
return;
|
|
6012
6012
|
let { hash: u } = new URL(c.href), f = e.querySelector(u);
|
|
6013
6013
|
f && !t(f) && (a = f);
|
|
6014
6014
|
} catch (c) {
|
|
6015
6015
|
}
|
|
6016
|
-
}, !0), r.addEventListener(e, "touchstart", (
|
|
6017
|
-
if (
|
|
6018
|
-
if (t(
|
|
6019
|
-
let c =
|
|
6016
|
+
}, !0), r.addEventListener(e, "touchstart", (l) => {
|
|
6017
|
+
if (l.target instanceof HTMLElement)
|
|
6018
|
+
if (t(l.target)) {
|
|
6019
|
+
let c = l.target;
|
|
6020
6020
|
for (; c.parentElement && t(c.parentElement); )
|
|
6021
6021
|
c = c.parentElement;
|
|
6022
6022
|
r.style(c, "overscrollBehavior", "contain");
|
|
6023
6023
|
} else
|
|
6024
|
-
r.style(
|
|
6025
|
-
}), r.addEventListener(e, "touchmove", (
|
|
6026
|
-
if (
|
|
6027
|
-
if (
|
|
6024
|
+
r.style(l.target, "touchAction", "none");
|
|
6025
|
+
}), r.addEventListener(e, "touchmove", (l) => {
|
|
6026
|
+
if (l.target instanceof HTMLElement) {
|
|
6027
|
+
if (l.target.tagName === "INPUT")
|
|
6028
6028
|
return;
|
|
6029
|
-
if (t(
|
|
6030
|
-
let c =
|
|
6029
|
+
if (t(l.target)) {
|
|
6030
|
+
let c = l.target;
|
|
6031
6031
|
for (; c.parentElement && c.dataset.headlessuiPortal !== "" && !(c.scrollHeight > c.clientHeight || c.scrollWidth > c.clientWidth); )
|
|
6032
6032
|
c = c.parentElement;
|
|
6033
|
-
c.dataset.headlessuiPortal === "" &&
|
|
6033
|
+
c.dataset.headlessuiPortal === "" && l.preventDefault();
|
|
6034
6034
|
} else
|
|
6035
|
-
|
|
6035
|
+
l.preventDefault();
|
|
6036
6036
|
}
|
|
6037
6037
|
}, { passive: !1 }), r.add(() => {
|
|
6038
|
-
var
|
|
6039
|
-
let c = (
|
|
6038
|
+
var l;
|
|
6039
|
+
let c = (l = window.scrollY) != null ? l : window.pageYOffset;
|
|
6040
6040
|
o !== c && window.scrollTo(0, o), a && a.isConnected && (a.scrollIntoView({ block: "nearest" }), a = null);
|
|
6041
6041
|
});
|
|
6042
6042
|
});
|
|
@@ -6053,7 +6053,7 @@ function Aa(e) {
|
|
|
6053
6053
|
Object.assign(r, n(r));
|
|
6054
6054
|
return r;
|
|
6055
6055
|
}
|
|
6056
|
-
let We =
|
|
6056
|
+
let We = Ma(() => /* @__PURE__ */ new Map(), { PUSH(e, r) {
|
|
6057
6057
|
var n;
|
|
6058
6058
|
let t = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Oe(), meta: /* @__PURE__ */ new Set() };
|
|
6059
6059
|
return t.count++, t.meta.add(r), this.set(e, t), this;
|
|
@@ -6078,7 +6078,7 @@ We.subscribe(() => {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
});
|
|
6080
6080
|
function Pa(e, r, n = () => ({ containers: [] })) {
|
|
6081
|
-
let t =
|
|
6081
|
+
let t = Ta(We), s = e ? t.get(e) : void 0, o = s ? s.count > 0 : !1;
|
|
6082
6082
|
return K(() => {
|
|
6083
6083
|
if (!(!e || !r))
|
|
6084
6084
|
return We.dispatch("PUSH", e, n), () => We.dispatch("POP", e, n);
|
|
@@ -6096,8 +6096,8 @@ function rt(e, r) {
|
|
|
6096
6096
|
let s = [...n.current];
|
|
6097
6097
|
for (let [o, a] of r.entries())
|
|
6098
6098
|
if (n.current[o] !== a) {
|
|
6099
|
-
let
|
|
6100
|
-
return n.current = r,
|
|
6099
|
+
let l = t(r, s);
|
|
6100
|
+
return n.current = r, l;
|
|
6101
6101
|
}
|
|
6102
6102
|
}, [t, ...r]);
|
|
6103
6103
|
}
|
|
@@ -6156,9 +6156,9 @@ function Va(e) {
|
|
|
6156
6156
|
return (a = n.current) != null ? a : null;
|
|
6157
6157
|
if (Ie.isServer)
|
|
6158
6158
|
return null;
|
|
6159
|
-
let
|
|
6160
|
-
if (
|
|
6161
|
-
return
|
|
6159
|
+
let l = t == null ? void 0 : t.getElementById("headlessui-portal-root");
|
|
6160
|
+
if (l)
|
|
6161
|
+
return l;
|
|
6162
6162
|
if (t === null)
|
|
6163
6163
|
return null;
|
|
6164
6164
|
let c = t.createElement("div");
|
|
@@ -6173,28 +6173,28 @@ function Va(e) {
|
|
|
6173
6173
|
let dn = de, Da = ue(function(e, r) {
|
|
6174
6174
|
let n = e, t = R(null), s = we(ia((f) => {
|
|
6175
6175
|
t.current = f;
|
|
6176
|
-
}), r), o = dr(t), a = Va(t), [
|
|
6176
|
+
}), r), o = dr(t), a = Va(t), [l] = ge(() => {
|
|
6177
6177
|
var f;
|
|
6178
6178
|
return Ie.isServer ? null : (f = o == null ? void 0 : o.createElement("div")) != null ? f : null;
|
|
6179
6179
|
}), c = re(Ur), u = cr();
|
|
6180
6180
|
return K(() => {
|
|
6181
|
-
!a || !
|
|
6182
|
-
}, [a,
|
|
6183
|
-
if (
|
|
6184
|
-
return c.register(
|
|
6185
|
-
}, [c,
|
|
6181
|
+
!a || !l || a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l));
|
|
6182
|
+
}, [a, l]), K(() => {
|
|
6183
|
+
if (l && c)
|
|
6184
|
+
return c.register(l);
|
|
6185
|
+
}, [c, l]), an(() => {
|
|
6186
6186
|
var f;
|
|
6187
|
-
!a || !
|
|
6188
|
-
}), u ? !a || !
|
|
6187
|
+
!a || !l || (l instanceof Node && a.contains(l) && a.removeChild(l), a.childNodes.length <= 0 && ((f = a.parentElement) == null || f.removeChild(a)));
|
|
6188
|
+
}), u ? !a || !l ? null : Rt(be({ ourProps: { ref: s }, theirProps: n, slot: {}, defaultTag: dn, name: "Portal" }), l) : null;
|
|
6189
6189
|
});
|
|
6190
6190
|
function Ha(e, r) {
|
|
6191
6191
|
let n = we(r), { enabled: t = !0, ...s } = e;
|
|
6192
|
-
return t ? k.createElement(Da, { ...s, ref: n }) :
|
|
6192
|
+
return t ? k.createElement(Da, { ...s, ref: n }) : be({ ourProps: { ref: n }, theirProps: s, slot: {}, defaultTag: dn, name: "Portal" });
|
|
6193
6193
|
}
|
|
6194
6194
|
let Ba = de, cn = ce(null);
|
|
6195
6195
|
function za(e, r) {
|
|
6196
6196
|
let { target: n, ...t } = e, s = { ref: we(r) };
|
|
6197
|
-
return k.createElement(cn.Provider, { value: n },
|
|
6197
|
+
return k.createElement(cn.Provider, { value: n }, be({ ourProps: s, theirProps: t, defaultTag: Ba, name: "Popover.Group" }));
|
|
6198
6198
|
}
|
|
6199
6199
|
let Ur = ce(null);
|
|
6200
6200
|
function Ua() {
|
|
@@ -6222,18 +6222,18 @@ function Za() {
|
|
|
6222
6222
|
function qa({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
|
|
6223
6223
|
var t;
|
|
6224
6224
|
let s = R((t = n == null ? void 0 : n.current) != null ? t : null), o = dr(s), a = P(() => {
|
|
6225
|
-
var
|
|
6225
|
+
var l, c, u;
|
|
6226
6226
|
let f = [];
|
|
6227
6227
|
for (let p of e)
|
|
6228
6228
|
p !== null && (p instanceof HTMLElement ? f.push(p) : "current" in p && p.current instanceof HTMLElement && f.push(p.current));
|
|
6229
6229
|
if (r != null && r.current)
|
|
6230
6230
|
for (let p of r.current)
|
|
6231
6231
|
f.push(p);
|
|
6232
|
-
for (let p of (
|
|
6232
|
+
for (let p of (l = o == null ? void 0 : o.querySelectorAll("html > *, body > *")) != null ? l : [])
|
|
6233
6233
|
p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((u = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : u.host) || f.some((m) => p.contains(m)) || f.push(p));
|
|
6234
6234
|
return f;
|
|
6235
6235
|
});
|
|
6236
|
-
return { resolveContainers: a, contains: P((
|
|
6236
|
+
return { resolveContainers: a, contains: P((l) => a().some((c) => c.contains(l))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
|
|
6237
6237
|
return n != null ? null : k.createElement(Dr, { features: wr.Hidden, ref: s });
|
|
6238
6238
|
}, [s, n]) };
|
|
6239
6239
|
}
|
|
@@ -6245,13 +6245,13 @@ function Ka() {
|
|
|
6245
6245
|
return re(st);
|
|
6246
6246
|
}
|
|
6247
6247
|
function Ja({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
|
|
6248
|
-
let o = Ka(), a = P((...
|
|
6249
|
-
r == null || r(...
|
|
6248
|
+
let o = Ka(), a = P((...l) => {
|
|
6249
|
+
r == null || r(...l), o(...l);
|
|
6250
6250
|
});
|
|
6251
6251
|
return K(() => {
|
|
6252
|
-
let
|
|
6253
|
-
return
|
|
6254
|
-
|
|
6252
|
+
let l = s === void 0 || s === !0;
|
|
6253
|
+
return l && a(0, n, t), () => {
|
|
6254
|
+
l && a(1, n, t);
|
|
6255
6255
|
};
|
|
6256
6256
|
}, [a, n, t, s]), k.createElement(st.Provider, { value: a }, e);
|
|
6257
6257
|
}
|
|
@@ -6281,34 +6281,34 @@ function un(e) {
|
|
|
6281
6281
|
let Qa = "div";
|
|
6282
6282
|
var $e = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.AutoFocus = 32] = "AutoFocus", e[e.All = 30] = "All", e))($e || {});
|
|
6283
6283
|
function ei(e, r) {
|
|
6284
|
-
let n = R(null), t = we(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features:
|
|
6285
|
-
cr() || (
|
|
6284
|
+
let n = R(null), t = we(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: l = 30, ...c } = e;
|
|
6285
|
+
cr() || (l = 1);
|
|
6286
6286
|
let u = dr(n);
|
|
6287
|
-
si({ ownerDocument: u }, !!(
|
|
6288
|
-
let f = oi({ ownerDocument: u, container: n, initialFocus: s, initialFocusFallback: o },
|
|
6289
|
-
ai({ ownerDocument: u, container: n, containers: a, previousActiveElement: f }, !!(
|
|
6290
|
-
let p = Xa(), m = P((
|
|
6287
|
+
si({ ownerDocument: u }, !!(l & 16));
|
|
6288
|
+
let f = oi({ ownerDocument: u, container: n, initialFocus: s, initialFocusFallback: o }, l);
|
|
6289
|
+
ai({ ownerDocument: u, container: n, containers: a, previousActiveElement: f }, !!(l & 8));
|
|
6290
|
+
let p = Xa(), m = P((v) => {
|
|
6291
6291
|
let w = n.current;
|
|
6292
6292
|
w && ((j) => j())(() => {
|
|
6293
6293
|
z(p.current, { [sr.Forwards]: () => {
|
|
6294
|
-
lr(w,
|
|
6294
|
+
lr(w, Te.First, { skipElements: [v.relatedTarget, o] });
|
|
6295
6295
|
}, [sr.Backwards]: () => {
|
|
6296
|
-
lr(w,
|
|
6296
|
+
lr(w, Te.Last, { skipElements: [v.relatedTarget, o] });
|
|
6297
6297
|
} });
|
|
6298
6298
|
});
|
|
6299
|
-
}),
|
|
6300
|
-
|
|
6299
|
+
}), b = Qr(), x = R(!1), C = { ref: t, onKeyDown(v) {
|
|
6300
|
+
v.key == "Tab" && (x.current = !0, b.requestAnimationFrame(() => {
|
|
6301
6301
|
x.current = !1;
|
|
6302
6302
|
}));
|
|
6303
|
-
}, onBlur(
|
|
6304
|
-
if (!(
|
|
6303
|
+
}, onBlur(v) {
|
|
6304
|
+
if (!(l & 8))
|
|
6305
6305
|
return;
|
|
6306
6306
|
let w = un(a);
|
|
6307
6307
|
n.current instanceof HTMLElement && w.add(n.current);
|
|
6308
|
-
let j =
|
|
6309
|
-
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (fn(w, j) || (x.current ? lr(n.current, z(p.current, { [sr.Forwards]: () =>
|
|
6308
|
+
let j = v.relatedTarget;
|
|
6309
|
+
j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (fn(w, j) || (x.current ? lr(n.current, z(p.current, { [sr.Forwards]: () => Te.Next, [sr.Backwards]: () => Te.Previous }) | Te.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Me(v.target)));
|
|
6310
6310
|
} };
|
|
6311
|
-
return k.createElement(k.Fragment, null, !!(
|
|
6311
|
+
return k.createElement(k.Fragment, null, !!(l & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), be({ ourProps: C, theirProps: c, defaultTag: Qa, name: "FocusTrap" }), !!(l & 4) && k.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
|
|
6312
6312
|
}
|
|
6313
6313
|
let ri = ue(ei), ti = Object.assign(ri, { features: $e });
|
|
6314
6314
|
function ni(e = !0) {
|
|
@@ -6325,21 +6325,21 @@ function ni(e = !0) {
|
|
|
6325
6325
|
function si({ ownerDocument: e }, r) {
|
|
6326
6326
|
let n = ni(r);
|
|
6327
6327
|
rt(() => {
|
|
6328
|
-
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) &&
|
|
6328
|
+
r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Me(n());
|
|
6329
6329
|
}, [r]), an(() => {
|
|
6330
|
-
r &&
|
|
6330
|
+
r && Me(n());
|
|
6331
6331
|
});
|
|
6332
6332
|
}
|
|
6333
6333
|
function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
|
|
6334
|
-
let o = !!(s & 2), a = R(null),
|
|
6334
|
+
let o = !!(s & 2), a = R(null), l = ur();
|
|
6335
6335
|
return rt(() => {
|
|
6336
6336
|
if (!o) {
|
|
6337
|
-
t != null && t.current &&
|
|
6337
|
+
t != null && t.current && Me(t.current);
|
|
6338
6338
|
return;
|
|
6339
6339
|
}
|
|
6340
6340
|
let c = r.current;
|
|
6341
6341
|
c && Er(() => {
|
|
6342
|
-
if (!
|
|
6342
|
+
if (!l.current)
|
|
6343
6343
|
return;
|
|
6344
6344
|
let u = e == null ? void 0 : e.activeElement;
|
|
6345
6345
|
if (n != null && n.current) {
|
|
@@ -6352,14 +6352,14 @@ function oi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
|
|
|
6352
6352
|
return;
|
|
6353
6353
|
}
|
|
6354
6354
|
if (n != null && n.current)
|
|
6355
|
-
|
|
6355
|
+
Me(n.current);
|
|
6356
6356
|
else {
|
|
6357
6357
|
if (s & 32) {
|
|
6358
|
-
if (lr(c,
|
|
6358
|
+
if (lr(c, Te.First | Te.AutoFocus) !== zr.Error)
|
|
6359
6359
|
return;
|
|
6360
|
-
} else if (lr(c,
|
|
6360
|
+
} else if (lr(c, Te.First) !== zr.Error)
|
|
6361
6361
|
return;
|
|
6362
|
-
if (t != null && t.current && (
|
|
6362
|
+
if (t != null && t.current && (Me(t.current), (e == null ? void 0 : e.activeElement) === t.current))
|
|
6363
6363
|
return;
|
|
6364
6364
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
6365
6365
|
}
|
|
@@ -6372,13 +6372,13 @@ function ai({ ownerDocument: e, container: r, containers: n, previousActiveEleme
|
|
|
6372
6372
|
on(e == null ? void 0 : e.defaultView, "focus", (a) => {
|
|
6373
6373
|
if (!s || !o.current)
|
|
6374
6374
|
return;
|
|
6375
|
-
let
|
|
6376
|
-
r.current instanceof HTMLElement &&
|
|
6375
|
+
let l = un(n);
|
|
6376
|
+
r.current instanceof HTMLElement && l.add(r.current);
|
|
6377
6377
|
let c = t.current;
|
|
6378
6378
|
if (!c)
|
|
6379
6379
|
return;
|
|
6380
6380
|
let u = a.target;
|
|
6381
|
-
u && u instanceof HTMLElement ? fn(
|
|
6381
|
+
u && u instanceof HTMLElement ? fn(l, u) ? (t.current = u, Me(u)) : (a.preventDefault(), a.stopPropagation(), Me(c)) : Me(t.current);
|
|
6382
6382
|
}, !0);
|
|
6383
6383
|
}
|
|
6384
6384
|
function fn(e, r) {
|
|
@@ -6405,13 +6405,13 @@ function ci(e, r) {
|
|
|
6405
6405
|
}
|
|
6406
6406
|
let ui = "div", fi = Cr.RenderStrategy | Cr.Static;
|
|
6407
6407
|
function pi(e, r) {
|
|
6408
|
-
let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role:
|
|
6409
|
-
|
|
6410
|
-
return
|
|
6408
|
+
let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: l = "dialog", autoFocus: c = !0, __demoMode: u = !1, ...f } = e, [p, m] = ge(0), b = R(!1);
|
|
6409
|
+
l = function() {
|
|
6410
|
+
return l === "dialog" || l === "alertdialog" ? l : (b.current || (b.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
|
|
6411
6411
|
}();
|
|
6412
6412
|
let x = nt();
|
|
6413
6413
|
s === void 0 && x !== null && (s = (x & se.Open) === se.Open);
|
|
6414
|
-
let C = R(null),
|
|
6414
|
+
let C = R(null), v = we(C, r), w = dr(C), j = e.hasOwnProperty("open") || x !== null, fe = e.hasOwnProperty("onClose");
|
|
6415
6415
|
if (!j && !fe)
|
|
6416
6416
|
throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
6417
6417
|
if (!j)
|
|
@@ -6425,49 +6425,49 @@ function pi(e, r) {
|
|
|
6425
6425
|
let N = s ? 0 : 1, [Y, ke] = Yn(ci, { titleId: null, descriptionId: null, panelRef: Zn() }), J = P(() => o(!1)), Z = P((O) => ke({ type: 0, id: O })), X = cr() ? N === 0 : !1, te = p > 1, ie = re(kr) !== null, [$, F] = Ua(), V = { get current() {
|
|
6426
6426
|
var O;
|
|
6427
6427
|
return (O = Y.panelRef.current) != null ? O : C.current;
|
|
6428
|
-
} }, { resolveContainers:
|
|
6428
|
+
} }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = qa({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", B = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || B ? !1 : X;
|
|
6429
6429
|
ma({ allowed: P(() => {
|
|
6430
6430
|
var O, xe;
|
|
6431
6431
|
return [(xe = (O = C.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? xe : null];
|
|
6432
6432
|
}), disallowed: P(() => {
|
|
6433
6433
|
var O, xe;
|
|
6434
6434
|
return [(xe = (O = pe.current) == null ? void 0 : O.closest("body > *:not(#headlessui-portal-root)")) != null ? xe : null];
|
|
6435
|
-
}) }, u ? !1 : ye), $a(
|
|
6435
|
+
}) }, u ? !1 : ye), $a(G, (O) => {
|
|
6436
6436
|
O.preventDefault(), J();
|
|
6437
6437
|
}, !(!X || te));
|
|
6438
6438
|
let Q = !(te || N !== 0);
|
|
6439
6439
|
on(w == null ? void 0 : w.defaultView, "keydown", (O) => {
|
|
6440
6440
|
Q && (O.defaultPrevented || O.key === en.Escape && (O.preventDefault(), O.stopPropagation(), J()));
|
|
6441
|
-
}), Fa(w, u ? !1 : !(B || N !== 0 || ie),
|
|
6442
|
-
let [ne, Ke] = la(), ee = ae(() => [{ dialogState: N, close: J, setTitleId: Z }, Y], [N, Y, J, Z]), D = ae(() => ({ open: N === 0 }), [N]), H = { ref:
|
|
6441
|
+
}), Fa(w, u ? !1 : !(B || N !== 0 || ie), G), rn(C, J, N === 0);
|
|
6442
|
+
let [ne, Ke] = la(), ee = ae(() => [{ dialogState: N, close: J, setTitleId: Z }, Y], [N, Y, J, Z]), D = ae(() => ({ open: N === 0 }), [N]), H = { ref: v, id: t, role: l, tabIndex: -1, "aria-modal": N === 0 ? !0 : void 0, "aria-labelledby": Y.titleId, "aria-describedby": ne }, Je = !Za(), je = X ? z(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
|
|
6443
6443
|
return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), u && (je = $e.None), k.createElement(Ja, { type: "Dialog", enabled: N === 0, element: C, onUpdate: P((O, xe) => {
|
|
6444
6444
|
xe === "Dialog" && z(O, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
|
|
6445
|
-
}) }, k.createElement(St, { force: !0 }, k.createElement(Nt, null, k.createElement(kr.Provider, { value: ee }, k.createElement(Nt.Group, { target: C }, k.createElement(St, { force: !1 }, k.createElement(Ke, { slot: D, name: "Dialog.Description" }, k.createElement(F, null, k.createElement(ti, { initialFocus: a, initialFocusFallback: C, containers:
|
|
6445
|
+
}) }, k.createElement(St, { force: !0 }, k.createElement(Nt, null, k.createElement(kr.Provider, { value: ee }, k.createElement(Nt.Group, { target: C }, k.createElement(St, { force: !1 }, k.createElement(Ke, { slot: D, name: "Dialog.Description" }, k.createElement(F, null, k.createElement(ti, { initialFocus: a, initialFocusFallback: C, containers: G, features: je }, k.createElement(ha, { value: J }, be({ ourProps: H, theirProps: f, slot: D, defaultTag: ui, features: fi, visible: N === 0, name: "Dialog" })))))))))), k.createElement(aa, null, k.createElement(ve, null)));
|
|
6446
6446
|
}
|
|
6447
6447
|
let hi = "div";
|
|
6448
6448
|
function mi(e, r) {
|
|
6449
|
-
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ot("Dialog.Panel"),
|
|
6449
|
+
let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ot("Dialog.Panel"), l = we(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), u = P((f) => {
|
|
6450
6450
|
f.stopPropagation();
|
|
6451
6451
|
});
|
|
6452
|
-
return
|
|
6452
|
+
return be({ ourProps: { ref: l, id: t, onClick: u }, theirProps: s, slot: c, defaultTag: hi, name: "Dialog.Panel" });
|
|
6453
6453
|
}
|
|
6454
6454
|
let gi = "h2";
|
|
6455
|
-
function
|
|
6456
|
-
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ot("Dialog.Title"),
|
|
6455
|
+
function bi(e, r) {
|
|
6456
|
+
let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ot("Dialog.Title"), l = we(r);
|
|
6457
6457
|
oe(() => (a(t), () => a(null)), [t, a]);
|
|
6458
6458
|
let c = ae(() => ({ open: o === 0 }), [o]);
|
|
6459
|
-
return
|
|
6459
|
+
return be({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag: gi, name: "Dialog.Title" });
|
|
6460
6460
|
}
|
|
6461
|
-
let
|
|
6461
|
+
let vi = ue(pi), pn = ue(mi), xi = ue(bi), Ci = Object.assign(vi, { Panel: pn, Title: xi, Description: fa });
|
|
6462
6462
|
function wi(e = 0) {
|
|
6463
6463
|
let [r, n] = ge(e), t = ur(), s = mr((c) => {
|
|
6464
6464
|
t.current && n((u) => u | c);
|
|
6465
6465
|
}, [r, t]), o = mr((c) => !!(r & c), [r]), a = mr((c) => {
|
|
6466
6466
|
t.current && n((u) => u & ~c);
|
|
6467
|
-
}, [n, t]),
|
|
6467
|
+
}, [n, t]), l = mr((c) => {
|
|
6468
6468
|
t.current && n((u) => u ^ c);
|
|
6469
6469
|
}, [n]);
|
|
6470
|
-
return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag:
|
|
6470
|
+
return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: l };
|
|
6471
6471
|
}
|
|
6472
6472
|
function hn(e) {
|
|
6473
6473
|
let r = { called: !1 };
|
|
@@ -6486,18 +6486,18 @@ function ki(e, r) {
|
|
|
6486
6486
|
let n = hn(r), t = Oe();
|
|
6487
6487
|
if (!e)
|
|
6488
6488
|
return t.dispose;
|
|
6489
|
-
let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a,
|
|
6489
|
+
let { transitionDuration: s, transitionDelay: o } = getComputedStyle(e), [a, l] = [s, o].map((u) => {
|
|
6490
6490
|
let [f = 0] = u.split(",").filter(Boolean).map((p) => p.includes("ms") ? parseFloat(p) : parseFloat(p) * 1e3).sort((p, m) => m - p);
|
|
6491
6491
|
return f;
|
|
6492
|
-
}), c = a +
|
|
6492
|
+
}), c = a + l;
|
|
6493
6493
|
if (c !== 0) {
|
|
6494
6494
|
let u = t.group((f) => {
|
|
6495
6495
|
let p = f.setTimeout(() => {
|
|
6496
6496
|
n(), f.dispose();
|
|
6497
6497
|
}, c);
|
|
6498
6498
|
f.addEventListener(e, "transitionrun", (m) => {
|
|
6499
|
-
m.target === m.currentTarget && (p(), f.addEventListener(e, "transitioncancel", (
|
|
6500
|
-
|
|
6499
|
+
m.target === m.currentTarget && (p(), f.addEventListener(e, "transitioncancel", (b) => {
|
|
6500
|
+
b.target === b.currentTarget && (n(), u());
|
|
6501
6501
|
}));
|
|
6502
6502
|
});
|
|
6503
6503
|
});
|
|
@@ -6512,11 +6512,11 @@ function yi(e, { direction: r, done: n, classes: t, inFlight: s }) {
|
|
|
6512
6512
|
let o = Oe(), a = n !== void 0 ? hn(n) : () => {
|
|
6513
6513
|
};
|
|
6514
6514
|
r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
|
|
6515
|
-
let
|
|
6515
|
+
let l = z(r, { enter: () => t.enter, leave: () => t.leave }), c = z(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), u = z(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
|
|
6516
6516
|
return ji(e, { prepare() {
|
|
6517
|
-
_r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...
|
|
6517
|
+
_r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...l, ...u);
|
|
6518
6518
|
}, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
|
|
6519
|
-
o.add(ki(e, () => (_r(e, ...t.base, ...
|
|
6519
|
+
o.add(ki(e, () => (_r(e, ...t.base, ...l), Or(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), _r(e, ...t.base, ...l, ...u), Or(e, ...t.base, ...l, ...c);
|
|
6520
6520
|
}), o.dispose;
|
|
6521
6521
|
}
|
|
6522
6522
|
function ji(e, { inFlight: r, prepare: n }) {
|
|
@@ -6528,13 +6528,13 @@ function ji(e, { inFlight: r, prepare: n }) {
|
|
|
6528
6528
|
e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
|
|
6529
6529
|
}
|
|
6530
6530
|
function Ei({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
|
|
6531
|
-
let o = ur(), a = Qr(),
|
|
6531
|
+
let o = ur(), a = Qr(), l = R(!1);
|
|
6532
6532
|
K(() => {
|
|
6533
6533
|
if (r === "idle" || !o.current)
|
|
6534
6534
|
return;
|
|
6535
6535
|
t.current(r);
|
|
6536
6536
|
let c = e.current;
|
|
6537
|
-
return c ? a.add(yi(c, { direction: r, classes: n.current, inFlight:
|
|
6537
|
+
return c ? a.add(yi(c, { direction: r, classes: n.current, inFlight: l, done() {
|
|
6538
6538
|
s.current(r);
|
|
6539
6539
|
} })) : s.current(r), a.dispose;
|
|
6540
6540
|
}, [r]);
|
|
@@ -6544,7 +6544,7 @@ function Ae(e = "") {
|
|
|
6544
6544
|
}
|
|
6545
6545
|
function mn(e) {
|
|
6546
6546
|
var r;
|
|
6547
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r :
|
|
6547
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : bn) !== de || k.Children.count(e.children) === 1;
|
|
6548
6548
|
}
|
|
6549
6549
|
let Lr = ce(null);
|
|
6550
6550
|
Lr.displayName = "TransitionContext";
|
|
@@ -6555,7 +6555,7 @@ function $i() {
|
|
|
6555
6555
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6556
6556
|
return e;
|
|
6557
6557
|
}
|
|
6558
|
-
function
|
|
6558
|
+
function Ti() {
|
|
6559
6559
|
let e = re($r);
|
|
6560
6560
|
if (e === null)
|
|
6561
6561
|
throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
@@ -6563,41 +6563,41 @@ function Mi() {
|
|
|
6563
6563
|
}
|
|
6564
6564
|
let $r = ce(null);
|
|
6565
6565
|
$r.displayName = "NestingContext";
|
|
6566
|
-
function
|
|
6567
|
-
return "children" in e ?
|
|
6566
|
+
function Tr(e) {
|
|
6567
|
+
return "children" in e ? Tr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
|
|
6568
6568
|
}
|
|
6569
6569
|
function gn(e, r) {
|
|
6570
|
-
let n = Ce(e), t = R([]), s = ur(), o = Qr(), a = P((
|
|
6571
|
-
let C = t.current.findIndex(({ el:
|
|
6570
|
+
let n = Ce(e), t = R([]), s = ur(), o = Qr(), a = P((b, x = Fe.Hidden) => {
|
|
6571
|
+
let C = t.current.findIndex(({ el: v }) => v === b);
|
|
6572
6572
|
C !== -1 && (z(x, { [Fe.Unmount]() {
|
|
6573
6573
|
t.current.splice(C, 1);
|
|
6574
6574
|
}, [Fe.Hidden]() {
|
|
6575
6575
|
t.current[C].state = "hidden";
|
|
6576
6576
|
} }), o.microTask(() => {
|
|
6577
|
-
var
|
|
6578
|
-
!
|
|
6577
|
+
var v;
|
|
6578
|
+
!Tr(t) && s.current && ((v = n.current) == null || v.call(n));
|
|
6579
6579
|
}));
|
|
6580
|
-
}),
|
|
6581
|
-
let x = t.current.find(({ el: C }) => C ===
|
|
6582
|
-
return x ? x.state !== "visible" && (x.state = "visible") : t.current.push({ el:
|
|
6583
|
-
}), c = R([]), u = R(Promise.resolve()), f = R({ enter: [], leave: [], idle: [] }), p = P((
|
|
6584
|
-
c.current.splice(0), r && (r.chains.current[x] = r.chains.current[x].filter(([
|
|
6585
|
-
c.current.push(
|
|
6586
|
-
})]), r == null || r.chains.current[x].push([
|
|
6587
|
-
Promise.all(f.current[x].map(([w, j]) => j)).then(() =>
|
|
6580
|
+
}), l = P((b) => {
|
|
6581
|
+
let x = t.current.find(({ el: C }) => C === b);
|
|
6582
|
+
return x ? x.state !== "visible" && (x.state = "visible") : t.current.push({ el: b, state: "visible" }), () => a(b, Fe.Unmount);
|
|
6583
|
+
}), c = R([]), u = R(Promise.resolve()), f = R({ enter: [], leave: [], idle: [] }), p = P((b, x, C) => {
|
|
6584
|
+
c.current.splice(0), r && (r.chains.current[x] = r.chains.current[x].filter(([v]) => v !== b)), r == null || r.chains.current[x].push([b, new Promise((v) => {
|
|
6585
|
+
c.current.push(v);
|
|
6586
|
+
})]), r == null || r.chains.current[x].push([b, new Promise((v) => {
|
|
6587
|
+
Promise.all(f.current[x].map(([w, j]) => j)).then(() => v());
|
|
6588
6588
|
})]), x === "enter" ? u.current = u.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(x)) : C(x);
|
|
6589
|
-
}), m = P((
|
|
6590
|
-
Promise.all(f.current[x].splice(0).map(([
|
|
6591
|
-
var
|
|
6592
|
-
(
|
|
6589
|
+
}), m = P((b, x, C) => {
|
|
6590
|
+
Promise.all(f.current[x].splice(0).map(([v, w]) => w)).then(() => {
|
|
6591
|
+
var v;
|
|
6592
|
+
(v = c.current.shift()) == null || v();
|
|
6593
6593
|
}).then(() => C(x));
|
|
6594
6594
|
});
|
|
6595
|
-
return ae(() => ({ children: t, register:
|
|
6595
|
+
return ae(() => ({ children: t, register: l, unregister: a, onStart: p, onStop: m, wait: u, chains: f }), [l, a, t, p, m, f, u]);
|
|
6596
6596
|
}
|
|
6597
|
-
let
|
|
6598
|
-
function
|
|
6597
|
+
let bn = de, vn = Cr.RenderStrategy;
|
|
6598
|
+
function Mi(e, r) {
|
|
6599
6599
|
var n, t, s;
|
|
6600
|
-
let { beforeEnter: o, afterEnter: a, beforeLeave:
|
|
6600
|
+
let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: u, enterFrom: f, enterTo: p, entered: m, leave: b, leaveFrom: x, leaveTo: C, ...v } = e, w = R(null), j = mn(e), fe = we(...j ? [w, r] : r === null ? [] : [r]), N = (n = v.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: Y, appear: ke, initial: J } = $i(), [Z, X] = ge(Y ? "visible" : "hidden"), te = Ti(), { register: ie, unregister: $ } = te;
|
|
6601
6601
|
K(() => ie(w), [ie, w]), K(() => {
|
|
6602
6602
|
if (N === Fe.Hidden && w.current) {
|
|
6603
6603
|
if (Y && Z !== "visible") {
|
|
@@ -6607,12 +6607,12 @@ function Ti(e, r) {
|
|
|
6607
6607
|
return z(Z, { hidden: () => $(w), visible: () => ie(w) });
|
|
6608
6608
|
}
|
|
6609
6609
|
}, [Z, w, ie, $, Y, N]);
|
|
6610
|
-
let F = Ce({ base: Ae(
|
|
6610
|
+
let F = Ce({ base: Ae(v.className), enter: Ae(u), enterFrom: Ae(f), enterTo: Ae(p), entered: Ae(m), leave: Ae(b), leaveFrom: Ae(x), leaveTo: Ae(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), G = cr();
|
|
6611
6611
|
K(() => {
|
|
6612
|
-
if (j &&
|
|
6612
|
+
if (j && G && Z === "visible" && w.current === null)
|
|
6613
6613
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6614
|
-
}, [w, Z,
|
|
6615
|
-
let pe = J && !ke,
|
|
6614
|
+
}, [w, Z, G, j]);
|
|
6615
|
+
let pe = J && !ke, ve = ke && Y && J, he = ve ? "enter" : !G || pe ? "idle" : Y ? "enter" : "leave", B = wi(0), ye = P((ee) => z(ee, { enter: () => {
|
|
6616
6616
|
var D, H;
|
|
6617
6617
|
B.addFlag(se.Opening), (H = (D = V.current).beforeEnter) == null || H.call(D);
|
|
6618
6618
|
}, leave: () => {
|
|
@@ -6632,41 +6632,41 @@ function Ti(e, r) {
|
|
|
6632
6632
|
Ei({ container: w, classes: F, direction: he, onStart: Ce((ee) => {
|
|
6633
6633
|
Q.current = !0, Se.onStart(w, ee, ye);
|
|
6634
6634
|
}), onStop: Ce((ee) => {
|
|
6635
|
-
Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !
|
|
6635
|
+
Q.current = !1, Se.onStop(w, ee, me), ee === "leave" && !Tr(Se) && (X("hidden"), $(w));
|
|
6636
6636
|
}) });
|
|
6637
|
-
let ne =
|
|
6638
|
-
return
|
|
6637
|
+
let ne = v, Ke = { ref: fe };
|
|
6638
|
+
return ve ? ne = { ...ne, className: ar(v.className, ...F.current.enter, ...F.current.enterFrom) } : Q.current ? (ne.className = ar(v.className, (t = w.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(v.className, (s = w.current) == null ? void 0 : s.className, ...z(he, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), k.createElement($r.Provider, { value: Se }, k.createElement(Oa, { value: z(Z, { visible: se.Open, hidden: se.Closed }) | B.flags }, be({ ourProps: Ke, theirProps: ne, defaultTag: bn, features: vn, visible: Z === "visible", name: "Transition.Child" })));
|
|
6639
6639
|
}
|
|
6640
6640
|
function Si(e, r) {
|
|
6641
|
-
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null),
|
|
6641
|
+
let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), l = mn(e), c = we(...l ? [a, r] : r === null ? [] : [r]);
|
|
6642
6642
|
cr();
|
|
6643
6643
|
let u = nt();
|
|
6644
6644
|
if (n === void 0 && u !== null && (n = (u & se.Open) === se.Open), n === void 0)
|
|
6645
6645
|
throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6646
6646
|
let [f, p] = ge(n ? "visible" : "hidden"), m = gn(() => {
|
|
6647
6647
|
n || p("hidden");
|
|
6648
|
-
}), [
|
|
6648
|
+
}), [b, x] = ge(!0), C = R([n]);
|
|
6649
6649
|
K(() => {
|
|
6650
|
-
|
|
6650
|
+
b !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), x(!1));
|
|
6651
6651
|
}, [C, n]);
|
|
6652
|
-
let
|
|
6652
|
+
let v = ae(() => ({ show: n, appear: t, initial: b }), [n, t, b]);
|
|
6653
6653
|
rn(a, () => p("hidden")), K(() => {
|
|
6654
|
-
n ? p("visible") : !
|
|
6654
|
+
n ? p("visible") : !Tr(m) && a.current !== null && p("hidden");
|
|
6655
6655
|
}, [n, m]);
|
|
6656
6656
|
let w = { unmount: s }, j = P(() => {
|
|
6657
6657
|
var N;
|
|
6658
|
-
|
|
6658
|
+
b && x(!1), (N = e.beforeEnter) == null || N.call(e);
|
|
6659
6659
|
}), fe = P(() => {
|
|
6660
6660
|
var N;
|
|
6661
|
-
|
|
6661
|
+
b && x(!1), (N = e.beforeLeave) == null || N.call(e);
|
|
6662
6662
|
});
|
|
6663
|
-
return k.createElement($r.Provider, { value: m }, k.createElement(Lr.Provider, { value:
|
|
6663
|
+
return k.createElement($r.Provider, { value: m }, k.createElement(Lr.Provider, { value: v }, be({ ourProps: { ...w, as: de, children: k.createElement(xn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: vn, visible: f === "visible", name: "Transition" })));
|
|
6664
6664
|
}
|
|
6665
6665
|
function Ni(e, r) {
|
|
6666
6666
|
let n = re(Lr) !== null, t = nt() !== null;
|
|
6667
6667
|
return k.createElement(k.Fragment, null, !n && t ? k.createElement(Yr, { ref: r, ...e }) : k.createElement(xn, { ref: r, ...e }));
|
|
6668
6668
|
}
|
|
6669
|
-
let Yr = ue(Si), xn = ue(
|
|
6669
|
+
let Yr = ue(Si), xn = ue(Mi), Zr = ue(Ni), Ri = Object.assign(Yr, { Child: Zr, Root: Yr });
|
|
6670
6670
|
const Ai = ({
|
|
6671
6671
|
open: e = !1,
|
|
6672
6672
|
onClose: r,
|
|
@@ -6675,12 +6675,12 @@ const Ai = ({
|
|
|
6675
6675
|
content: s,
|
|
6676
6676
|
footer: o,
|
|
6677
6677
|
icon: a = !1,
|
|
6678
|
-
iconComponent:
|
|
6678
|
+
iconComponent: l,
|
|
6679
6679
|
iconName: c = void 0,
|
|
6680
6680
|
dismissible: u = !0,
|
|
6681
6681
|
horizontalRule: f = !0
|
|
6682
6682
|
}) => {
|
|
6683
|
-
const p = () =>
|
|
6683
|
+
const p = () => l ? /* @__PURE__ */ i.jsx(i.Fragment, { children: l }) : a && c ? /* @__PURE__ */ i.jsx(Ve, { name: c, size: "medium" }) : null, m = () => t === "dismissible" ? r() : !0;
|
|
6684
6684
|
return /* @__PURE__ */ i.jsx(Ri, { appear: !0, show: e, as: de, children: /* @__PURE__ */ i.jsxs(
|
|
6685
6685
|
Ci,
|
|
6686
6686
|
{
|
|
@@ -6766,7 +6766,7 @@ const Ai = ({
|
|
|
6766
6766
|
]
|
|
6767
6767
|
}
|
|
6768
6768
|
) });
|
|
6769
|
-
},
|
|
6769
|
+
}, yl = Ai, Pi = W(
|
|
6770
6770
|
[
|
|
6771
6771
|
"preflight",
|
|
6772
6772
|
"ds-rounded-xl",
|
|
@@ -6816,15 +6816,15 @@ const Ai = ({
|
|
|
6816
6816
|
dismissLabel: s = "",
|
|
6817
6817
|
className: o = "",
|
|
6818
6818
|
onDismiss: a,
|
|
6819
|
-
...
|
|
6819
|
+
...l
|
|
6820
6820
|
}) => {
|
|
6821
|
-
const c =
|
|
6821
|
+
const c = l["aria-label"] || e;
|
|
6822
6822
|
return /* @__PURE__ */ i.jsxs(
|
|
6823
6823
|
"div",
|
|
6824
6824
|
{
|
|
6825
|
-
className:
|
|
6825
|
+
className: U(Pi({ color: n, type: r }), o),
|
|
6826
6826
|
"aria-label": c,
|
|
6827
|
-
...
|
|
6827
|
+
...l,
|
|
6828
6828
|
children: [
|
|
6829
6829
|
/* @__PURE__ */ i.jsx("div", { className: "ds-max-w-[200px] ds-truncate ds-leading-6", children: e }),
|
|
6830
6830
|
t && // Still confirming if the background should be transparent or white
|
|
@@ -6843,7 +6843,149 @@ const Ai = ({
|
|
|
6843
6843
|
]
|
|
6844
6844
|
}
|
|
6845
6845
|
);
|
|
6846
|
-
},
|
|
6846
|
+
}, Oi = Fi, _i = W(
|
|
6847
|
+
[
|
|
6848
|
+
"preflight",
|
|
6849
|
+
"ds-transition",
|
|
6850
|
+
"ds-duration-100",
|
|
6851
|
+
"ds-text-nowrap",
|
|
6852
|
+
"!ds-font-sans",
|
|
6853
|
+
"ds-text-base",
|
|
6854
|
+
"ds-p-2",
|
|
6855
|
+
"active:ds-text-neutrals-white",
|
|
6856
|
+
"focus-visible:ds-ring-neutrals-black",
|
|
6857
|
+
"focus-visible:ds-ring-2",
|
|
6858
|
+
"focus-visible:ds-outline-none",
|
|
6859
|
+
"focus-visible:ds-ring-offset-2"
|
|
6860
|
+
],
|
|
6861
|
+
{
|
|
6862
|
+
variants: {
|
|
6863
|
+
isNested: {
|
|
6864
|
+
true: [
|
|
6865
|
+
"ds-rounded-xl",
|
|
6866
|
+
"ds-my-2",
|
|
6867
|
+
"ds-mx-1",
|
|
6868
|
+
"ds-border",
|
|
6869
|
+
"ds-border-neutrals-lighter",
|
|
6870
|
+
"hover:ds-bg-neutrals-light",
|
|
6871
|
+
"active:ds-bg-neutrals-dark",
|
|
6872
|
+
"focus-visible:ds-ring-neutrals-black",
|
|
6873
|
+
"focus-visible:ds-ring-2",
|
|
6874
|
+
"focus-visible:ds-outline-none",
|
|
6875
|
+
"focus-visible:ds-ring-offset-2",
|
|
6876
|
+
"focus-visible:ds-bg-neutrals-white"
|
|
6877
|
+
],
|
|
6878
|
+
false: [
|
|
6879
|
+
"ds-rounded",
|
|
6880
|
+
"ds-rounded-b-none",
|
|
6881
|
+
"ds-border-b-2",
|
|
6882
|
+
"ds-border-b-neutrals-white",
|
|
6883
|
+
"ds-my-1",
|
|
6884
|
+
"ds-mr-2",
|
|
6885
|
+
"hover:ds-bg-acuity-green-lighter",
|
|
6886
|
+
"hover:ds-border-b-acuity-green-lighter",
|
|
6887
|
+
"active:ds-bg-acuity-green-darkest",
|
|
6888
|
+
"active:ds-border-b-acuity-green-darkest",
|
|
6889
|
+
"focus-visible:ds-bg-acuity-green-lightest",
|
|
6890
|
+
"focus-visible:ds-border-b-acuity-green-lightest"
|
|
6891
|
+
]
|
|
6892
|
+
}
|
|
6893
|
+
}
|
|
6894
|
+
}
|
|
6895
|
+
), Wi = ({
|
|
6896
|
+
title: e,
|
|
6897
|
+
id: r,
|
|
6898
|
+
handleClick: n,
|
|
6899
|
+
isActive: t,
|
|
6900
|
+
isNested: s = !1,
|
|
6901
|
+
badgeText: o = "",
|
|
6902
|
+
className: a = "",
|
|
6903
|
+
...l
|
|
6904
|
+
}) => {
|
|
6905
|
+
const c = (u, f, p) => U(
|
|
6906
|
+
_i({ isNested: u }),
|
|
6907
|
+
f && !u && "!ds-border-b-acuity-green",
|
|
6908
|
+
f && u && "ds-bg-neutrals-white !ds-border-neutrals",
|
|
6909
|
+
p
|
|
6910
|
+
);
|
|
6911
|
+
return /* @__PURE__ */ i.jsxs(
|
|
6912
|
+
"button",
|
|
6913
|
+
{
|
|
6914
|
+
className: c(s, t, a),
|
|
6915
|
+
role: "tab",
|
|
6916
|
+
id: `tab-${r}`,
|
|
6917
|
+
"aria-controls": `panel-${r}`,
|
|
6918
|
+
"aria-selected": t,
|
|
6919
|
+
onClick: n,
|
|
6920
|
+
...l,
|
|
6921
|
+
children: [
|
|
6922
|
+
e,
|
|
6923
|
+
o && /* @__PURE__ */ i.jsx(
|
|
6924
|
+
Oi,
|
|
6925
|
+
{
|
|
6926
|
+
label: o,
|
|
6927
|
+
className: "ds-ml-2 ds-h-5 ds-bg-neutrals-white ds-text-neutrals-black"
|
|
6928
|
+
}
|
|
6929
|
+
)
|
|
6930
|
+
]
|
|
6931
|
+
}
|
|
6932
|
+
);
|
|
6933
|
+
}, Ii = ({ id: e, children: r, hidden: n }) => /* @__PURE__ */ i.jsx(
|
|
6934
|
+
"div",
|
|
6935
|
+
{
|
|
6936
|
+
role: "tabpanel",
|
|
6937
|
+
id: `panel-${e}`,
|
|
6938
|
+
"aria-labelledby": `tab-${e}`,
|
|
6939
|
+
hidden: n,
|
|
6940
|
+
className: "preflight",
|
|
6941
|
+
children: r
|
|
6942
|
+
}
|
|
6943
|
+
), Vi = ({
|
|
6944
|
+
children: e,
|
|
6945
|
+
handleTabChange: r,
|
|
6946
|
+
activeTabIndex: n,
|
|
6947
|
+
isNested: t,
|
|
6948
|
+
className: s = "",
|
|
6949
|
+
...o
|
|
6950
|
+
}) => {
|
|
6951
|
+
const a = k.Children.toArray(e).filter(
|
|
6952
|
+
(l) => {
|
|
6953
|
+
var c, u;
|
|
6954
|
+
return k.isValidElement(l) && !!((c = l.props) != null && c.id) && !!((u = l.props) != null && u.title);
|
|
6955
|
+
}
|
|
6956
|
+
);
|
|
6957
|
+
return a.length < k.Children.toArray(e).length && console.error(
|
|
6958
|
+
"You can only pass <Tab> components with defined id and title as children of the <Tabs> component."
|
|
6959
|
+
), /* @__PURE__ */ i.jsxs("div", { className: `prelight ${s}`, ...o, children: [
|
|
6960
|
+
/* @__PURE__ */ i.jsx(
|
|
6961
|
+
"div",
|
|
6962
|
+
{
|
|
6963
|
+
role: "tablist",
|
|
6964
|
+
className: `preflight ds-my-5 ds-rounded ${t && "!ds-my-4 ds-bg-neutrals-lighter ds-px-2"}`,
|
|
6965
|
+
children: a.map((l, c) => /* @__PURE__ */ i.jsx(
|
|
6966
|
+
Wi,
|
|
6967
|
+
{
|
|
6968
|
+
handleClick: () => r(c),
|
|
6969
|
+
isActive: n === c,
|
|
6970
|
+
badgeText: l.props.badgeText,
|
|
6971
|
+
isNested: t,
|
|
6972
|
+
...l.props
|
|
6973
|
+
},
|
|
6974
|
+
`tab-${c}`
|
|
6975
|
+
))
|
|
6976
|
+
}
|
|
6977
|
+
),
|
|
6978
|
+
a.map((l, c) => /* @__PURE__ */ i.jsx(
|
|
6979
|
+
Ii,
|
|
6980
|
+
{
|
|
6981
|
+
id: l.props.id,
|
|
6982
|
+
hidden: n !== c,
|
|
6983
|
+
children: l.props.children
|
|
6984
|
+
},
|
|
6985
|
+
`panel-${c}`
|
|
6986
|
+
))
|
|
6987
|
+
] });
|
|
6988
|
+
}, jl = Vi, Di = ({ children: e }) => e, El = Di, Hi = W(
|
|
6847
6989
|
[
|
|
6848
6990
|
"preflight",
|
|
6849
6991
|
"ds-form-label",
|
|
@@ -6864,17 +7006,17 @@ const Ai = ({
|
|
|
6864
7006
|
}
|
|
6865
7007
|
}
|
|
6866
7008
|
}
|
|
6867
|
-
),
|
|
7009
|
+
), Bi = (e) => U(Hi(e)), zi = ({
|
|
6868
7010
|
id: e,
|
|
6869
7011
|
state: r = "default",
|
|
6870
7012
|
disabled: n = !1,
|
|
6871
7013
|
htmlFor: t,
|
|
6872
7014
|
value: s = "",
|
|
6873
7015
|
optionalityLabel: o = ""
|
|
6874
|
-
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className:
|
|
7016
|
+
}) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: Bi({ state: r, disabled: n }), children: [
|
|
6875
7017
|
s,
|
|
6876
7018
|
o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
|
|
6877
|
-
] }),
|
|
7019
|
+
] }), Ui = zi, Gi = W(
|
|
6878
7020
|
["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
|
|
6879
7021
|
{
|
|
6880
7022
|
variants: {
|
|
@@ -6885,7 +7027,7 @@ const Ai = ({
|
|
|
6885
7027
|
}
|
|
6886
7028
|
}
|
|
6887
7029
|
}
|
|
6888
|
-
),
|
|
7030
|
+
), Yi = (e) => U(Gi(e)), Zi = W(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
|
|
6889
7031
|
variants: {
|
|
6890
7032
|
state: {
|
|
6891
7033
|
default: ["ds-text-neutrals-black", "ds-mt-2"],
|
|
@@ -6903,7 +7045,7 @@ const Ai = ({
|
|
|
6903
7045
|
true: "!ds-text-neutrals-dark"
|
|
6904
7046
|
}
|
|
6905
7047
|
}
|
|
6906
|
-
}),
|
|
7048
|
+
}), qi = (e) => U(Zi(e)), Ki = ({
|
|
6907
7049
|
id: e,
|
|
6908
7050
|
state: r = "default",
|
|
6909
7051
|
disabled: n = !1,
|
|
@@ -6911,7 +7053,7 @@ const Ai = ({
|
|
|
6911
7053
|
optionalityLabel: s = "",
|
|
6912
7054
|
helpText: o = [],
|
|
6913
7055
|
message: a = "",
|
|
6914
|
-
child:
|
|
7056
|
+
child: l,
|
|
6915
7057
|
isTextarea: c = !1
|
|
6916
7058
|
}) => {
|
|
6917
7059
|
let u = null;
|
|
@@ -6930,9 +7072,9 @@ const Ai = ({
|
|
|
6930
7072
|
break;
|
|
6931
7073
|
}
|
|
6932
7074
|
const f = t ? "label_" + e : void 0, p = o && o.length > 0 ? "helptext_" + e : void 0;
|
|
6933
|
-
return /* @__PURE__ */ i.jsxs("div", { className:
|
|
7075
|
+
return /* @__PURE__ */ i.jsxs("div", { className: Yi({ state: r }), children: [
|
|
6934
7076
|
t && /* @__PURE__ */ i.jsx(
|
|
6935
|
-
|
|
7077
|
+
Ui,
|
|
6936
7078
|
{
|
|
6937
7079
|
id: f,
|
|
6938
7080
|
htmlFor: e,
|
|
@@ -6941,10 +7083,10 @@ const Ai = ({
|
|
|
6941
7083
|
disabled: n
|
|
6942
7084
|
}
|
|
6943
7085
|
),
|
|
6944
|
-
o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: p, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((m,
|
|
7086
|
+
o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: p, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((m, b) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: m }, b)) }),
|
|
6945
7087
|
o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id: p, className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
|
|
6946
7088
|
/* @__PURE__ */ i.jsxs("div", { className: "ds-mt-2 ds-flex ds-gap-2", children: [
|
|
6947
|
-
/* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children:
|
|
7089
|
+
/* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children: l }),
|
|
6948
7090
|
/* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: u && /* @__PURE__ */ i.jsx(
|
|
6949
7091
|
Ve,
|
|
6950
7092
|
{
|
|
@@ -6955,9 +7097,9 @@ const Ai = ({
|
|
|
6955
7097
|
}
|
|
6956
7098
|
) })
|
|
6957
7099
|
] }),
|
|
6958
|
-
u && /* @__PURE__ */ i.jsx("p", { className:
|
|
7100
|
+
u && /* @__PURE__ */ i.jsx("p", { className: qi({ state: r }), children: a })
|
|
6959
7101
|
] });
|
|
6960
|
-
}, at =
|
|
7102
|
+
}, at = Ki, Ji = W(
|
|
6961
7103
|
[
|
|
6962
7104
|
"preflight",
|
|
6963
7105
|
"ds-form-input",
|
|
@@ -6967,7 +7109,7 @@ const Ai = ({
|
|
|
6967
7109
|
"!ds-font-sans"
|
|
6968
7110
|
],
|
|
6969
7111
|
Jr
|
|
6970
|
-
),
|
|
7112
|
+
), Xi = (e) => U(Ji(e)), Qi = ({
|
|
6971
7113
|
state: e = "default",
|
|
6972
7114
|
rows: r = 2,
|
|
6973
7115
|
cols: n = 50,
|
|
@@ -6981,13 +7123,13 @@ const Ai = ({
|
|
|
6981
7123
|
rows: r,
|
|
6982
7124
|
cols: n,
|
|
6983
7125
|
readOnly: s,
|
|
6984
|
-
className:
|
|
7126
|
+
className: Xi({ disabled: s, state: e }),
|
|
6985
7127
|
style: {
|
|
6986
7128
|
resize: t ? "both" : "none"
|
|
6987
7129
|
},
|
|
6988
7130
|
...o
|
|
6989
7131
|
}
|
|
6990
|
-
),
|
|
7132
|
+
), el = Qi, rl = ({
|
|
6991
7133
|
id: e,
|
|
6992
7134
|
state: r = "default",
|
|
6993
7135
|
label: n,
|
|
@@ -6995,7 +7137,7 @@ const Ai = ({
|
|
|
6995
7137
|
cols: s = 50,
|
|
6996
7138
|
isResizable: o = !0,
|
|
6997
7139
|
optionalityLabel: a = "",
|
|
6998
|
-
helpText:
|
|
7140
|
+
helpText: l = [],
|
|
6999
7141
|
message: c = "",
|
|
7000
7142
|
disabled: u = !1,
|
|
7001
7143
|
...f
|
|
@@ -7007,15 +7149,15 @@ const Ai = ({
|
|
|
7007
7149
|
disabled: u,
|
|
7008
7150
|
label: n,
|
|
7009
7151
|
optionalityLabel: a,
|
|
7010
|
-
helpText:
|
|
7152
|
+
helpText: l,
|
|
7011
7153
|
message: c,
|
|
7012
7154
|
isTextarea: !0,
|
|
7013
7155
|
child: /* @__PURE__ */ i.jsx(
|
|
7014
|
-
|
|
7156
|
+
el,
|
|
7015
7157
|
{
|
|
7016
7158
|
id: e,
|
|
7017
7159
|
"aria-labelledby": n ? "label_" + e : void 0,
|
|
7018
|
-
"aria-describedby":
|
|
7160
|
+
"aria-describedby": l && l.length > 0 ? "helptext_" + e : void 0,
|
|
7019
7161
|
state: r,
|
|
7020
7162
|
rows: t,
|
|
7021
7163
|
cols: s,
|
|
@@ -7025,7 +7167,7 @@ const Ai = ({
|
|
|
7025
7167
|
}
|
|
7026
7168
|
)
|
|
7027
7169
|
}
|
|
7028
|
-
),
|
|
7170
|
+
), Ll = rl, tl = W(
|
|
7029
7171
|
[
|
|
7030
7172
|
"preflight",
|
|
7031
7173
|
"ds-form-input",
|
|
@@ -7037,7 +7179,7 @@ const Ai = ({
|
|
|
7037
7179
|
"ds-container"
|
|
7038
7180
|
],
|
|
7039
7181
|
Jr
|
|
7040
|
-
),
|
|
7182
|
+
), nl = (e) => U(tl(e)), sl = ({
|
|
7041
7183
|
state: e = "default",
|
|
7042
7184
|
disabled: r = !1,
|
|
7043
7185
|
type: n = "text",
|
|
@@ -7048,10 +7190,10 @@ const Ai = ({
|
|
|
7048
7190
|
"aria-disabled": r,
|
|
7049
7191
|
readOnly: r,
|
|
7050
7192
|
type: n,
|
|
7051
|
-
className:
|
|
7193
|
+
className: nl({ disabled: r, state: e }),
|
|
7052
7194
|
...t
|
|
7053
7195
|
}
|
|
7054
|
-
),
|
|
7196
|
+
), ol = sl, al = ({
|
|
7055
7197
|
id: e,
|
|
7056
7198
|
state: r = "default",
|
|
7057
7199
|
disabled: n = !1,
|
|
@@ -7059,7 +7201,7 @@ const Ai = ({
|
|
|
7059
7201
|
label: s,
|
|
7060
7202
|
optionalityLabel: o = "",
|
|
7061
7203
|
helpText: a = [],
|
|
7062
|
-
message:
|
|
7204
|
+
message: l = "",
|
|
7063
7205
|
...c
|
|
7064
7206
|
}) => /* @__PURE__ */ i.jsx(
|
|
7065
7207
|
at,
|
|
@@ -7070,9 +7212,9 @@ const Ai = ({
|
|
|
7070
7212
|
label: s,
|
|
7071
7213
|
optionalityLabel: o,
|
|
7072
7214
|
helpText: a,
|
|
7073
|
-
message:
|
|
7215
|
+
message: l,
|
|
7074
7216
|
child: /* @__PURE__ */ i.jsx(
|
|
7075
|
-
|
|
7217
|
+
ol,
|
|
7076
7218
|
{
|
|
7077
7219
|
id: e,
|
|
7078
7220
|
"aria-labelledby": s ? "label_" + e : void 0,
|
|
@@ -7084,7 +7226,7 @@ const Ai = ({
|
|
|
7084
7226
|
}
|
|
7085
7227
|
)
|
|
7086
7228
|
}
|
|
7087
|
-
),
|
|
7229
|
+
), $l = al, il = W(
|
|
7088
7230
|
[
|
|
7089
7231
|
"preflight",
|
|
7090
7232
|
"ds-form-select",
|
|
@@ -7097,7 +7239,7 @@ const Ai = ({
|
|
|
7097
7239
|
"ds-bg-[center_right_0.25rem]"
|
|
7098
7240
|
],
|
|
7099
7241
|
Jr
|
|
7100
|
-
),
|
|
7242
|
+
), ll = (e) => il(e), dl = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, cl = ({
|
|
7101
7243
|
state: e = "default",
|
|
7102
7244
|
disabled: r = !1,
|
|
7103
7245
|
className: n = "",
|
|
@@ -7113,13 +7255,13 @@ const Ai = ({
|
|
|
7113
7255
|
{
|
|
7114
7256
|
"aria-readonly": r,
|
|
7115
7257
|
tabIndex: r ? -1 : 0,
|
|
7116
|
-
style: { backgroundImage:
|
|
7117
|
-
className:
|
|
7258
|
+
style: { backgroundImage: dl },
|
|
7259
|
+
className: U(ll({ disabled: r, state: e }), n),
|
|
7118
7260
|
...t,
|
|
7119
7261
|
children: s
|
|
7120
7262
|
}
|
|
7121
7263
|
);
|
|
7122
|
-
},
|
|
7264
|
+
}, ul = cl, fl = ({
|
|
7123
7265
|
id: e,
|
|
7124
7266
|
state: r = "default",
|
|
7125
7267
|
disabled: n = !1,
|
|
@@ -7127,7 +7269,7 @@ const Ai = ({
|
|
|
7127
7269
|
optionalityLabel: s = "",
|
|
7128
7270
|
helpText: o = [],
|
|
7129
7271
|
message: a = "",
|
|
7130
|
-
...
|
|
7272
|
+
...l
|
|
7131
7273
|
}) => /* @__PURE__ */ i.jsx(
|
|
7132
7274
|
at,
|
|
7133
7275
|
{
|
|
@@ -7139,36 +7281,38 @@ const Ai = ({
|
|
|
7139
7281
|
helpText: o,
|
|
7140
7282
|
message: a,
|
|
7141
7283
|
child: /* @__PURE__ */ i.jsx(
|
|
7142
|
-
|
|
7284
|
+
ul,
|
|
7143
7285
|
{
|
|
7144
7286
|
id: e,
|
|
7145
7287
|
"aria-labelledby": t ? "label_" + e : void 0,
|
|
7146
7288
|
"aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
|
|
7147
7289
|
state: r,
|
|
7148
7290
|
disabled: n,
|
|
7149
|
-
...
|
|
7291
|
+
...l
|
|
7150
7292
|
}
|
|
7151
7293
|
)
|
|
7152
7294
|
}
|
|
7153
|
-
),
|
|
7295
|
+
), Tl = fl;
|
|
7154
7296
|
export {
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7297
|
+
gl as Alert,
|
|
7298
|
+
Oi as Badge,
|
|
7299
|
+
bl as Button,
|
|
7300
|
+
vl as Card,
|
|
7301
|
+
xl as Checkbox,
|
|
7302
|
+
Tl as Dropdown,
|
|
7303
|
+
ul as DropdownAtom,
|
|
7162
7304
|
Kt as Heading,
|
|
7163
7305
|
Ve as Icon,
|
|
7164
7306
|
Kr as IconButton,
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7307
|
+
Ui as LabelAtom,
|
|
7308
|
+
wl as Link,
|
|
7309
|
+
yl as Modal,
|
|
7310
|
+
Cl as Radio,
|
|
7311
|
+
El as Tab,
|
|
7312
|
+
jl as Tabs,
|
|
7313
|
+
$l as TextInput,
|
|
7314
|
+
ol as TextInputAtom,
|
|
7315
|
+
Ll as Textarea,
|
|
7316
|
+
el as TextareaAtom
|
|
7173
7317
|
};
|
|
7174
7318
|
//# sourceMappingURL=index.es.js.map
|