@theroutingcompany/components 0.0.132-alpha.1 → 0.0.132-alpha.2
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/trc-components.es.js +907 -889
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +32 -32
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Input/InlineEdit/InlineEdit.d.ts +5 -2
|
@@ -72,57 +72,57 @@ var op;
|
|
|
72
72
|
function mS() {
|
|
73
73
|
return op || (op = 1, process.env.NODE_ENV !== "production" && function() {
|
|
74
74
|
var e = L, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, b = "@@iterator";
|
|
75
|
-
function m(
|
|
76
|
-
if (
|
|
75
|
+
function m(k) {
|
|
76
|
+
if (k === null || typeof k != "object")
|
|
77
77
|
return null;
|
|
78
|
-
var Q = h &&
|
|
78
|
+
var Q = h && k[h] || k[b];
|
|
79
79
|
return typeof Q == "function" ? Q : null;
|
|
80
80
|
}
|
|
81
81
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
82
|
-
function v(
|
|
82
|
+
function v(k) {
|
|
83
83
|
{
|
|
84
84
|
for (var Q = arguments.length, le = new Array(Q > 1 ? Q - 1 : 0), he = 1; he < Q; he++)
|
|
85
85
|
le[he - 1] = arguments[he];
|
|
86
|
-
_("error",
|
|
86
|
+
_("error", k, le);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function _(
|
|
89
|
+
function _(k, Q, le) {
|
|
90
90
|
{
|
|
91
91
|
var he = y.ReactDebugCurrentFrame, Ee = he.getStackAddendum();
|
|
92
92
|
Ee !== "" && (Q += "%s", le = le.concat([Ee]));
|
|
93
93
|
var Pe = le.map(function(we) {
|
|
94
94
|
return String(we);
|
|
95
95
|
});
|
|
96
|
-
Pe.unshift("Warning: " + Q), Function.prototype.apply.call(console[
|
|
96
|
+
Pe.unshift("Warning: " + Q), Function.prototype.apply.call(console[k], console, Pe);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
var S = !1, P = !1, E = !1,
|
|
100
|
-
|
|
101
|
-
function F(
|
|
102
|
-
return !!(typeof
|
|
99
|
+
var S = !1, P = !1, E = !1, I = !1, $ = !1, T;
|
|
100
|
+
T = Symbol.for("react.module.reference");
|
|
101
|
+
function F(k) {
|
|
102
|
+
return !!(typeof k == "string" || typeof k == "function" || k === r || k === a || $ || k === o || k === c || k === d || I || k === p || S || P || E || typeof k == "object" && k !== null && (k.$$typeof === g || k.$$typeof === u || k.$$typeof === i || k.$$typeof === l || k.$$typeof === s || // This needs to include all possible module reference object
|
|
103
103
|
// types supported by any Flight configuration anywhere since
|
|
104
104
|
// we don't know which Flight build this will end up being used
|
|
105
105
|
// with.
|
|
106
|
-
|
|
106
|
+
k.$$typeof === T || k.getModuleId !== void 0));
|
|
107
107
|
}
|
|
108
|
-
function x(
|
|
109
|
-
var he =
|
|
108
|
+
function x(k, Q, le) {
|
|
109
|
+
var he = k.displayName;
|
|
110
110
|
if (he)
|
|
111
111
|
return he;
|
|
112
112
|
var Ee = Q.displayName || Q.name || "";
|
|
113
113
|
return Ee !== "" ? le + "(" + Ee + ")" : le;
|
|
114
114
|
}
|
|
115
|
-
function z(
|
|
116
|
-
return
|
|
115
|
+
function z(k) {
|
|
116
|
+
return k.displayName || "Context";
|
|
117
117
|
}
|
|
118
|
-
function R(
|
|
119
|
-
if (
|
|
118
|
+
function R(k) {
|
|
119
|
+
if (k == null)
|
|
120
120
|
return null;
|
|
121
|
-
if (typeof
|
|
122
|
-
return
|
|
123
|
-
if (typeof
|
|
124
|
-
return
|
|
125
|
-
switch (
|
|
121
|
+
if (typeof k.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof k == "function")
|
|
122
|
+
return k.displayName || k.name || null;
|
|
123
|
+
if (typeof k == "string")
|
|
124
|
+
return k;
|
|
125
|
+
switch (k) {
|
|
126
126
|
case r:
|
|
127
127
|
return "Fragment";
|
|
128
128
|
case n:
|
|
@@ -136,21 +136,21 @@ function mS() {
|
|
|
136
136
|
case d:
|
|
137
137
|
return "SuspenseList";
|
|
138
138
|
}
|
|
139
|
-
if (typeof
|
|
140
|
-
switch (
|
|
139
|
+
if (typeof k == "object")
|
|
140
|
+
switch (k.$$typeof) {
|
|
141
141
|
case l:
|
|
142
|
-
var Q =
|
|
142
|
+
var Q = k;
|
|
143
143
|
return z(Q) + ".Consumer";
|
|
144
144
|
case i:
|
|
145
|
-
var le =
|
|
145
|
+
var le = k;
|
|
146
146
|
return z(le._context) + ".Provider";
|
|
147
147
|
case s:
|
|
148
|
-
return x(
|
|
148
|
+
return x(k, k.render, "ForwardRef");
|
|
149
149
|
case u:
|
|
150
|
-
var he =
|
|
151
|
-
return he !== null ? he : R(
|
|
150
|
+
var he = k.displayName || null;
|
|
151
|
+
return he !== null ? he : R(k.type) || "Memo";
|
|
152
152
|
case g: {
|
|
153
|
-
var Ee =
|
|
153
|
+
var Ee = k, Pe = Ee._payload, we = Ee._init;
|
|
154
154
|
try {
|
|
155
155
|
return R(we(Pe));
|
|
156
156
|
} catch {
|
|
@@ -160,28 +160,28 @@ function mS() {
|
|
|
160
160
|
}
|
|
161
161
|
return null;
|
|
162
162
|
}
|
|
163
|
-
var D = Object.assign, U = 0,
|
|
163
|
+
var D = Object.assign, U = 0, A, te, V, X, B, j, W;
|
|
164
164
|
function N() {
|
|
165
165
|
}
|
|
166
166
|
N.__reactDisabledLog = !0;
|
|
167
167
|
function G() {
|
|
168
168
|
{
|
|
169
169
|
if (U === 0) {
|
|
170
|
-
|
|
171
|
-
var
|
|
170
|
+
A = console.log, te = console.info, V = console.warn, X = console.error, B = console.group, j = console.groupCollapsed, W = console.groupEnd;
|
|
171
|
+
var k = {
|
|
172
172
|
configurable: !0,
|
|
173
173
|
enumerable: !0,
|
|
174
174
|
value: N,
|
|
175
175
|
writable: !0
|
|
176
176
|
};
|
|
177
177
|
Object.defineProperties(console, {
|
|
178
|
-
info:
|
|
179
|
-
log:
|
|
180
|
-
warn:
|
|
181
|
-
error:
|
|
182
|
-
group:
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
groupEnd:
|
|
178
|
+
info: k,
|
|
179
|
+
log: k,
|
|
180
|
+
warn: k,
|
|
181
|
+
error: k,
|
|
182
|
+
group: k,
|
|
183
|
+
groupCollapsed: k,
|
|
184
|
+
groupEnd: k
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
U++;
|
|
@@ -190,31 +190,31 @@ function mS() {
|
|
|
190
190
|
function ie() {
|
|
191
191
|
{
|
|
192
192
|
if (U--, U === 0) {
|
|
193
|
-
var
|
|
193
|
+
var k = {
|
|
194
194
|
configurable: !0,
|
|
195
195
|
enumerable: !0,
|
|
196
196
|
writable: !0
|
|
197
197
|
};
|
|
198
198
|
Object.defineProperties(console, {
|
|
199
|
-
log: D({},
|
|
200
|
-
value:
|
|
199
|
+
log: D({}, k, {
|
|
200
|
+
value: A
|
|
201
201
|
}),
|
|
202
|
-
info: D({},
|
|
203
|
-
value:
|
|
202
|
+
info: D({}, k, {
|
|
203
|
+
value: te
|
|
204
204
|
}),
|
|
205
|
-
warn: D({},
|
|
205
|
+
warn: D({}, k, {
|
|
206
206
|
value: V
|
|
207
207
|
}),
|
|
208
|
-
error: D({},
|
|
208
|
+
error: D({}, k, {
|
|
209
209
|
value: X
|
|
210
210
|
}),
|
|
211
|
-
group: D({},
|
|
211
|
+
group: D({}, k, {
|
|
212
212
|
value: B
|
|
213
213
|
}),
|
|
214
|
-
groupCollapsed: D({},
|
|
214
|
+
groupCollapsed: D({}, k, {
|
|
215
215
|
value: j
|
|
216
216
|
}),
|
|
217
|
-
groupEnd: D({},
|
|
217
|
+
groupEnd: D({}, k, {
|
|
218
218
|
value: W
|
|
219
219
|
})
|
|
220
220
|
});
|
|
@@ -223,7 +223,7 @@ function mS() {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
var ae = y.ReactCurrentDispatcher, ue;
|
|
226
|
-
function Z(
|
|
226
|
+
function Z(k, Q, le) {
|
|
227
227
|
{
|
|
228
228
|
if (ue === void 0)
|
|
229
229
|
try {
|
|
@@ -233,24 +233,24 @@ function mS() {
|
|
|
233
233
|
ue = he && he[1] || "";
|
|
234
234
|
}
|
|
235
235
|
return `
|
|
236
|
-
` + ue +
|
|
236
|
+
` + ue + k;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var ne = !1, fe;
|
|
240
240
|
{
|
|
241
241
|
var xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
242
242
|
fe = new xe();
|
|
243
243
|
}
|
|
244
|
-
function pe(
|
|
245
|
-
if (!
|
|
244
|
+
function pe(k, Q) {
|
|
245
|
+
if (!k || ne)
|
|
246
246
|
return "";
|
|
247
247
|
{
|
|
248
|
-
var le = fe.get(
|
|
248
|
+
var le = fe.get(k);
|
|
249
249
|
if (le !== void 0)
|
|
250
250
|
return le;
|
|
251
251
|
}
|
|
252
252
|
var he;
|
|
253
|
-
|
|
253
|
+
ne = !0;
|
|
254
254
|
var Ee = Error.prepareStackTrace;
|
|
255
255
|
Error.prepareStackTrace = void 0;
|
|
256
256
|
var Pe;
|
|
@@ -270,14 +270,14 @@ function mS() {
|
|
|
270
270
|
} catch (Gt) {
|
|
271
271
|
he = Gt;
|
|
272
272
|
}
|
|
273
|
-
Reflect.construct(
|
|
273
|
+
Reflect.construct(k, [], we);
|
|
274
274
|
} else {
|
|
275
275
|
try {
|
|
276
276
|
we.call();
|
|
277
277
|
} catch (Gt) {
|
|
278
278
|
he = Gt;
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
k.call(we.prototype);
|
|
281
281
|
}
|
|
282
282
|
} else {
|
|
283
283
|
try {
|
|
@@ -285,7 +285,7 @@ function mS() {
|
|
|
285
285
|
} catch (Gt) {
|
|
286
286
|
he = Gt;
|
|
287
287
|
}
|
|
288
|
-
|
|
288
|
+
k();
|
|
289
289
|
}
|
|
290
290
|
} catch (Gt) {
|
|
291
291
|
if (Gt && he && typeof Gt.stack == "string") {
|
|
@@ -300,46 +300,46 @@ function mS() {
|
|
|
300
300
|
if (Ne--, Be--, Be < 0 || ye[Ne] !== tt[Be]) {
|
|
301
301
|
var bt = `
|
|
302
302
|
` + ye[Ne].replace(" at new ", " at ");
|
|
303
|
-
return
|
|
303
|
+
return k.displayName && bt.includes("<anonymous>") && (bt = bt.replace("<anonymous>", k.displayName)), typeof k == "function" && fe.set(k, bt), bt;
|
|
304
304
|
}
|
|
305
305
|
while (Ne >= 1 && Be >= 0);
|
|
306
306
|
break;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
} finally {
|
|
310
|
-
|
|
310
|
+
ne = !1, ae.current = Pe, ie(), Error.prepareStackTrace = Ee;
|
|
311
311
|
}
|
|
312
|
-
var $r =
|
|
313
|
-
return typeof
|
|
312
|
+
var $r = k ? k.displayName || k.name : "", np = $r ? Z($r) : "";
|
|
313
|
+
return typeof k == "function" && fe.set(k, np), np;
|
|
314
314
|
}
|
|
315
|
-
function $e(
|
|
316
|
-
return pe(
|
|
315
|
+
function $e(k, Q, le) {
|
|
316
|
+
return pe(k, !1);
|
|
317
317
|
}
|
|
318
|
-
function ke(
|
|
319
|
-
var Q =
|
|
318
|
+
function ke(k) {
|
|
319
|
+
var Q = k.prototype;
|
|
320
320
|
return !!(Q && Q.isReactComponent);
|
|
321
321
|
}
|
|
322
|
-
function yn(
|
|
323
|
-
if (
|
|
322
|
+
function yn(k, Q, le) {
|
|
323
|
+
if (k == null)
|
|
324
324
|
return "";
|
|
325
|
-
if (typeof
|
|
326
|
-
return pe(
|
|
327
|
-
if (typeof
|
|
328
|
-
return Z(
|
|
329
|
-
switch (
|
|
325
|
+
if (typeof k == "function")
|
|
326
|
+
return pe(k, ke(k));
|
|
327
|
+
if (typeof k == "string")
|
|
328
|
+
return Z(k);
|
|
329
|
+
switch (k) {
|
|
330
330
|
case c:
|
|
331
331
|
return Z("Suspense");
|
|
332
332
|
case d:
|
|
333
333
|
return Z("SuspenseList");
|
|
334
334
|
}
|
|
335
|
-
if (typeof
|
|
336
|
-
switch (
|
|
335
|
+
if (typeof k == "object")
|
|
336
|
+
switch (k.$$typeof) {
|
|
337
337
|
case s:
|
|
338
|
-
return $e(
|
|
338
|
+
return $e(k.render);
|
|
339
339
|
case u:
|
|
340
|
-
return yn(
|
|
340
|
+
return yn(k.type, Q, le);
|
|
341
341
|
case g: {
|
|
342
|
-
var he =
|
|
342
|
+
var he = k, Ee = he._payload, Pe = he._init;
|
|
343
343
|
try {
|
|
344
344
|
return yn(Pe(Ee), Q, le);
|
|
345
345
|
} catch {
|
|
@@ -349,25 +349,25 @@ function mS() {
|
|
|
349
349
|
return "";
|
|
350
350
|
}
|
|
351
351
|
var _n = Object.prototype.hasOwnProperty, hr = {}, br = y.ReactDebugCurrentFrame;
|
|
352
|
-
function Wt(
|
|
353
|
-
if (
|
|
354
|
-
var Q =
|
|
352
|
+
function Wt(k) {
|
|
353
|
+
if (k) {
|
|
354
|
+
var Q = k._owner, le = yn(k.type, k._source, Q ? Q.type : null);
|
|
355
355
|
br.setExtraStackFrame(le);
|
|
356
356
|
} else
|
|
357
357
|
br.setExtraStackFrame(null);
|
|
358
358
|
}
|
|
359
|
-
function Ct(
|
|
359
|
+
function Ct(k, Q, le, he, Ee) {
|
|
360
360
|
{
|
|
361
361
|
var Pe = Function.call.bind(_n);
|
|
362
|
-
for (var we in
|
|
363
|
-
if (Pe(
|
|
362
|
+
for (var we in k)
|
|
363
|
+
if (Pe(k, we)) {
|
|
364
364
|
var ye = void 0;
|
|
365
365
|
try {
|
|
366
|
-
if (typeof
|
|
367
|
-
var tt = Error((he || "React class") + ": " + le + " type `" + we + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
366
|
+
if (typeof k[we] != "function") {
|
|
367
|
+
var tt = Error((he || "React class") + ": " + le + " type `" + we + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof k[we] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
368
368
|
throw tt.name = "Invariant Violation", tt;
|
|
369
369
|
}
|
|
370
|
-
ye =
|
|
370
|
+
ye = k[we](Q, we, he, le, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
371
371
|
} catch (Ne) {
|
|
372
372
|
ye = Ne;
|
|
373
373
|
}
|
|
@@ -376,28 +376,28 @@ function mS() {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
var Ht = Array.isArray;
|
|
379
|
-
function mr(
|
|
380
|
-
return Ht(
|
|
379
|
+
function mr(k) {
|
|
380
|
+
return Ht(k);
|
|
381
381
|
}
|
|
382
|
-
function Ia(
|
|
382
|
+
function Ia(k) {
|
|
383
383
|
{
|
|
384
|
-
var Q = typeof Symbol == "function" && Symbol.toStringTag, le = Q &&
|
|
384
|
+
var Q = typeof Symbol == "function" && Symbol.toStringTag, le = Q && k[Symbol.toStringTag] || k.constructor.name || "Object";
|
|
385
385
|
return le;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
function rs(
|
|
388
|
+
function rs(k) {
|
|
389
389
|
try {
|
|
390
|
-
return Oa(
|
|
390
|
+
return Oa(k), !1;
|
|
391
391
|
} catch {
|
|
392
392
|
return !0;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function Oa(
|
|
396
|
-
return "" +
|
|
395
|
+
function Oa(k) {
|
|
396
|
+
return "" + k;
|
|
397
397
|
}
|
|
398
|
-
function lt(
|
|
399
|
-
if (rs(
|
|
400
|
-
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ia(
|
|
398
|
+
function lt(k) {
|
|
399
|
+
if (rs(k))
|
|
400
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ia(k)), Oa(k);
|
|
401
401
|
}
|
|
402
402
|
var xo = y.ReactCurrentOwner, O5 = {
|
|
403
403
|
key: !0,
|
|
@@ -406,56 +406,56 @@ function mS() {
|
|
|
406
406
|
__source: !0
|
|
407
407
|
}, Yf, qf, os;
|
|
408
408
|
os = {};
|
|
409
|
-
function M5(
|
|
410
|
-
if (_n.call(
|
|
411
|
-
var Q = Object.getOwnPropertyDescriptor(
|
|
409
|
+
function M5(k) {
|
|
410
|
+
if (_n.call(k, "ref")) {
|
|
411
|
+
var Q = Object.getOwnPropertyDescriptor(k, "ref").get;
|
|
412
412
|
if (Q && Q.isReactWarning)
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
|
-
return
|
|
415
|
+
return k.ref !== void 0;
|
|
416
416
|
}
|
|
417
|
-
function F5(
|
|
418
|
-
if (_n.call(
|
|
419
|
-
var Q = Object.getOwnPropertyDescriptor(
|
|
417
|
+
function F5(k) {
|
|
418
|
+
if (_n.call(k, "key")) {
|
|
419
|
+
var Q = Object.getOwnPropertyDescriptor(k, "key").get;
|
|
420
420
|
if (Q && Q.isReactWarning)
|
|
421
421
|
return !1;
|
|
422
422
|
}
|
|
423
|
-
return
|
|
423
|
+
return k.key !== void 0;
|
|
424
424
|
}
|
|
425
|
-
function L5(
|
|
426
|
-
if (typeof
|
|
425
|
+
function L5(k, Q) {
|
|
426
|
+
if (typeof k.ref == "string" && xo.current && Q && xo.current.stateNode !== Q) {
|
|
427
427
|
var le = R(xo.current.type);
|
|
428
|
-
os[le] || (v('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', R(xo.current.type),
|
|
428
|
+
os[le] || (v('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', R(xo.current.type), k.ref), os[le] = !0);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
function N5(
|
|
431
|
+
function N5(k, Q) {
|
|
432
432
|
{
|
|
433
433
|
var le = function() {
|
|
434
434
|
Yf || (Yf = !0, v("%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)", Q));
|
|
435
435
|
};
|
|
436
|
-
le.isReactWarning = !0, Object.defineProperty(
|
|
436
|
+
le.isReactWarning = !0, Object.defineProperty(k, "key", {
|
|
437
437
|
get: le,
|
|
438
438
|
configurable: !0
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function z5(
|
|
442
|
+
function z5(k, Q) {
|
|
443
443
|
{
|
|
444
444
|
var le = function() {
|
|
445
445
|
qf || (qf = !0, v("%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)", Q));
|
|
446
446
|
};
|
|
447
|
-
le.isReactWarning = !0, Object.defineProperty(
|
|
447
|
+
le.isReactWarning = !0, Object.defineProperty(k, "ref", {
|
|
448
448
|
get: le,
|
|
449
449
|
configurable: !0
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
var K5 = function(
|
|
453
|
+
var K5 = function(k, Q, le, he, Ee, Pe, we) {
|
|
454
454
|
var ye = {
|
|
455
455
|
// This tag allows us to uniquely identify this as a React Element
|
|
456
456
|
$$typeof: t,
|
|
457
457
|
// Built-in properties that belong on the element
|
|
458
|
-
type:
|
|
458
|
+
type: k,
|
|
459
459
|
key: Q,
|
|
460
460
|
ref: le,
|
|
461
461
|
props: we,
|
|
@@ -479,53 +479,53 @@ function mS() {
|
|
|
479
479
|
value: Ee
|
|
480
480
|
}), Object.freeze && (Object.freeze(ye.props), Object.freeze(ye)), ye;
|
|
481
481
|
};
|
|
482
|
-
function V5(
|
|
482
|
+
function V5(k, Q, le, he, Ee) {
|
|
483
483
|
{
|
|
484
484
|
var Pe, we = {}, ye = null, tt = null;
|
|
485
485
|
le !== void 0 && (lt(le), ye = "" + le), F5(Q) && (lt(Q.key), ye = "" + Q.key), M5(Q) && (tt = Q.ref, L5(Q, Ee));
|
|
486
486
|
for (Pe in Q)
|
|
487
487
|
_n.call(Q, Pe) && !O5.hasOwnProperty(Pe) && (we[Pe] = Q[Pe]);
|
|
488
|
-
if (
|
|
489
|
-
var Ne =
|
|
488
|
+
if (k && k.defaultProps) {
|
|
489
|
+
var Ne = k.defaultProps;
|
|
490
490
|
for (Pe in Ne)
|
|
491
491
|
we[Pe] === void 0 && (we[Pe] = Ne[Pe]);
|
|
492
492
|
}
|
|
493
493
|
if (ye || tt) {
|
|
494
|
-
var Be = typeof
|
|
494
|
+
var Be = typeof k == "function" ? k.displayName || k.name || "Unknown" : k;
|
|
495
495
|
ye && N5(we, Be), tt && z5(we, Be);
|
|
496
496
|
}
|
|
497
|
-
return K5(
|
|
497
|
+
return K5(k, ye, tt, Ee, he, xo.current, we);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
var as = y.ReactCurrentOwner, Xf = y.ReactDebugCurrentFrame;
|
|
501
|
-
function vr(
|
|
502
|
-
if (
|
|
503
|
-
var Q =
|
|
501
|
+
function vr(k) {
|
|
502
|
+
if (k) {
|
|
503
|
+
var Q = k._owner, le = yn(k.type, k._source, Q ? Q.type : null);
|
|
504
504
|
Xf.setExtraStackFrame(le);
|
|
505
505
|
} else
|
|
506
506
|
Xf.setExtraStackFrame(null);
|
|
507
507
|
}
|
|
508
508
|
var is;
|
|
509
509
|
is = !1;
|
|
510
|
-
function ls(
|
|
511
|
-
return typeof
|
|
510
|
+
function ls(k) {
|
|
511
|
+
return typeof k == "object" && k !== null && k.$$typeof === t;
|
|
512
512
|
}
|
|
513
513
|
function Jf() {
|
|
514
514
|
{
|
|
515
515
|
if (as.current) {
|
|
516
|
-
var
|
|
517
|
-
if (
|
|
516
|
+
var k = R(as.current.type);
|
|
517
|
+
if (k)
|
|
518
518
|
return `
|
|
519
519
|
|
|
520
|
-
Check the render method of \`` +
|
|
520
|
+
Check the render method of \`` + k + "`.";
|
|
521
521
|
}
|
|
522
522
|
return "";
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function B5(
|
|
525
|
+
function B5(k) {
|
|
526
526
|
{
|
|
527
|
-
if (
|
|
528
|
-
var Q =
|
|
527
|
+
if (k !== void 0) {
|
|
528
|
+
var Q = k.fileName.replace(/^.*[\\\/]/, ""), le = k.lineNumber;
|
|
529
529
|
return `
|
|
530
530
|
|
|
531
531
|
Check your code at ` + Q + ":" + le + ".";
|
|
@@ -534,11 +534,11 @@ Check your code at ` + Q + ":" + le + ".";
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
var Zf = {};
|
|
537
|
-
function j5(
|
|
537
|
+
function j5(k) {
|
|
538
538
|
{
|
|
539
539
|
var Q = Jf();
|
|
540
540
|
if (!Q) {
|
|
541
|
-
var le = typeof
|
|
541
|
+
var le = typeof k == "string" ? k : k.displayName || k.name;
|
|
542
542
|
le && (Q = `
|
|
543
543
|
|
|
544
544
|
Check the top-level render call using <` + le + ">.");
|
|
@@ -546,41 +546,41 @@ Check the top-level render call using <` + le + ">.");
|
|
|
546
546
|
return Q;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function Qf(
|
|
549
|
+
function Qf(k, Q) {
|
|
550
550
|
{
|
|
551
|
-
if (!
|
|
551
|
+
if (!k._store || k._store.validated || k.key != null)
|
|
552
552
|
return;
|
|
553
|
-
|
|
553
|
+
k._store.validated = !0;
|
|
554
554
|
var le = j5(Q);
|
|
555
555
|
if (Zf[le])
|
|
556
556
|
return;
|
|
557
557
|
Zf[le] = !0;
|
|
558
558
|
var he = "";
|
|
559
|
-
|
|
559
|
+
k && k._owner && k._owner !== as.current && (he = " It was passed a child from " + R(k._owner.type) + "."), vr(k), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', le, he), vr(null);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
function ep(
|
|
562
|
+
function ep(k, Q) {
|
|
563
563
|
{
|
|
564
|
-
if (typeof
|
|
564
|
+
if (typeof k != "object")
|
|
565
565
|
return;
|
|
566
|
-
if (mr(
|
|
567
|
-
for (var le = 0; le <
|
|
568
|
-
var he =
|
|
566
|
+
if (mr(k))
|
|
567
|
+
for (var le = 0; le < k.length; le++) {
|
|
568
|
+
var he = k[le];
|
|
569
569
|
ls(he) && Qf(he, Q);
|
|
570
570
|
}
|
|
571
|
-
else if (ls(
|
|
572
|
-
|
|
573
|
-
else if (
|
|
574
|
-
var Ee = m(
|
|
575
|
-
if (typeof Ee == "function" && Ee !==
|
|
576
|
-
for (var Pe = Ee.call(
|
|
571
|
+
else if (ls(k))
|
|
572
|
+
k._store && (k._store.validated = !0);
|
|
573
|
+
else if (k) {
|
|
574
|
+
var Ee = m(k);
|
|
575
|
+
if (typeof Ee == "function" && Ee !== k.entries)
|
|
576
|
+
for (var Pe = Ee.call(k), we; !(we = Pe.next()).done; )
|
|
577
577
|
ls(we.value) && Qf(we.value, Q);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function U5(
|
|
581
|
+
function U5(k) {
|
|
582
582
|
{
|
|
583
|
-
var Q =
|
|
583
|
+
var Q = k.type;
|
|
584
584
|
if (Q == null || typeof Q == "string")
|
|
585
585
|
return;
|
|
586
586
|
var le;
|
|
@@ -594,7 +594,7 @@ Check the top-level render call using <` + le + ">.");
|
|
|
594
594
|
return;
|
|
595
595
|
if (le) {
|
|
596
596
|
var he = R(Q);
|
|
597
|
-
Ct(le,
|
|
597
|
+
Ct(le, k.props, "prop", he, k);
|
|
598
598
|
} else if (Q.PropTypes !== void 0 && !is) {
|
|
599
599
|
is = !0;
|
|
600
600
|
var Ee = R(Q);
|
|
@@ -603,30 +603,30 @@ Check the top-level render call using <` + le + ">.");
|
|
|
603
603
|
typeof Q.getDefaultProps == "function" && !Q.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
function W5(
|
|
606
|
+
function W5(k) {
|
|
607
607
|
{
|
|
608
|
-
for (var Q = Object.keys(
|
|
608
|
+
for (var Q = Object.keys(k.props), le = 0; le < Q.length; le++) {
|
|
609
609
|
var he = Q[le];
|
|
610
610
|
if (he !== "children" && he !== "key") {
|
|
611
|
-
vr(
|
|
611
|
+
vr(k), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", he), vr(null);
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
k.ref !== null && (vr(k), v("Invalid attribute `ref` supplied to `React.Fragment`."), vr(null));
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
function tp(
|
|
618
|
+
function tp(k, Q, le, he, Ee, Pe) {
|
|
619
619
|
{
|
|
620
|
-
var we = F(
|
|
620
|
+
var we = F(k);
|
|
621
621
|
if (!we) {
|
|
622
622
|
var ye = "";
|
|
623
|
-
(
|
|
623
|
+
(k === void 0 || typeof k == "object" && k !== null && Object.keys(k).length === 0) && (ye += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
624
624
|
var tt = B5(Ee);
|
|
625
625
|
tt ? ye += tt : ye += Jf();
|
|
626
626
|
var Ne;
|
|
627
|
-
|
|
627
|
+
k === null ? Ne = "null" : mr(k) ? Ne = "array" : k !== void 0 && k.$$typeof === t ? (Ne = "<" + (R(k.type) || "Unknown") + " />", ye = " Did you accidentally export a JSX literal instead of a component?") : Ne = typeof k, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ne, ye);
|
|
628
628
|
}
|
|
629
|
-
var Be = V5(
|
|
629
|
+
var Be = V5(k, Q, le, Ee, Pe);
|
|
630
630
|
if (Be == null)
|
|
631
631
|
return Be;
|
|
632
632
|
if (we) {
|
|
@@ -635,21 +635,21 @@ Check the top-level render call using <` + le + ">.");
|
|
|
635
635
|
if (he)
|
|
636
636
|
if (mr(bt)) {
|
|
637
637
|
for (var $r = 0; $r < bt.length; $r++)
|
|
638
|
-
ep(bt[$r],
|
|
638
|
+
ep(bt[$r], k);
|
|
639
639
|
Object.freeze && Object.freeze(bt);
|
|
640
640
|
} else
|
|
641
641
|
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
642
642
|
else
|
|
643
|
-
ep(bt,
|
|
643
|
+
ep(bt, k);
|
|
644
644
|
}
|
|
645
|
-
return
|
|
645
|
+
return k === r ? W5(Be) : U5(Be), Be;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function H5(
|
|
649
|
-
return tp(
|
|
648
|
+
function H5(k, Q, le) {
|
|
649
|
+
return tp(k, Q, le, !0);
|
|
650
650
|
}
|
|
651
|
-
function G5(
|
|
652
|
-
return tp(
|
|
651
|
+
function G5(k, Q, le) {
|
|
652
|
+
return tp(k, Q, le, !1);
|
|
653
653
|
}
|
|
654
654
|
var Y5 = G5, q5 = H5;
|
|
655
655
|
So.Fragment = r, So.jsx = Y5, So.jsxs = q5;
|
|
@@ -1283,11 +1283,11 @@ const [wb, WS] = sl(Nn), [Sb, HS] = sl(Nn, {
|
|
|
1283
1283
|
var h;
|
|
1284
1284
|
if (!BS.includes(p.key))
|
|
1285
1285
|
return;
|
|
1286
|
-
const b = p.target, m = c().filter((
|
|
1286
|
+
const b = p.target, m = c().filter((T) => {
|
|
1287
1287
|
var F;
|
|
1288
|
-
return !((F =
|
|
1288
|
+
return !((F = T.ref.current) !== null && F !== void 0 && F.disabled);
|
|
1289
1289
|
}), y = m.findIndex(
|
|
1290
|
-
(
|
|
1290
|
+
(T) => T.ref.current === b
|
|
1291
1291
|
), v = m.length;
|
|
1292
1292
|
if (y === -1)
|
|
1293
1293
|
return;
|
|
@@ -1295,7 +1295,7 @@ const [wb, WS] = sl(Nn), [Sb, HS] = sl(Nn, {
|
|
|
1295
1295
|
let _ = y;
|
|
1296
1296
|
const S = 0, P = v - 1, E = () => {
|
|
1297
1297
|
_ = y + 1, _ > P && (_ = S);
|
|
1298
|
-
},
|
|
1298
|
+
}, I = () => {
|
|
1299
1299
|
_ = y - 1, _ < S && (_ = P);
|
|
1300
1300
|
};
|
|
1301
1301
|
switch (p.key) {
|
|
@@ -1306,16 +1306,16 @@ const [wb, WS] = sl(Nn), [Sb, HS] = sl(Nn, {
|
|
|
1306
1306
|
_ = P;
|
|
1307
1307
|
break;
|
|
1308
1308
|
case "ArrowRight":
|
|
1309
|
-
a === "horizontal" && (u ? E() :
|
|
1309
|
+
a === "horizontal" && (u ? E() : I());
|
|
1310
1310
|
break;
|
|
1311
1311
|
case "ArrowDown":
|
|
1312
1312
|
a === "vertical" && E();
|
|
1313
1313
|
break;
|
|
1314
1314
|
case "ArrowLeft":
|
|
1315
|
-
a === "horizontal" && (u ?
|
|
1315
|
+
a === "horizontal" && (u ? I() : E());
|
|
1316
1316
|
break;
|
|
1317
1317
|
case "ArrowUp":
|
|
1318
|
-
a === "vertical" &&
|
|
1318
|
+
a === "vertical" && I();
|
|
1319
1319
|
break;
|
|
1320
1320
|
}
|
|
1321
1321
|
const $ = _ % v;
|
|
@@ -3122,18 +3122,18 @@ const Ib = /* @__PURE__ */ ln({
|
|
|
3122
3122
|
), m = Array.from(d.layers), [y] = [
|
|
3123
3123
|
...d.layersWithOutsidePointerEventsDisabled
|
|
3124
3124
|
].slice(-1), v = m.indexOf(y), _ = u ? m.indexOf(u) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, P = _ >= v, E = uD(($) => {
|
|
3125
|
-
const
|
|
3125
|
+
const T = $.target, F = [
|
|
3126
3126
|
...d.branches
|
|
3127
3127
|
].some(
|
|
3128
|
-
(x) => x.contains(
|
|
3128
|
+
(x) => x.contains(T)
|
|
3129
3129
|
);
|
|
3130
3130
|
!P || F || (a == null || a($), l == null || l($), $.defaultPrevented || s == null || s());
|
|
3131
|
-
}, p),
|
|
3132
|
-
const
|
|
3131
|
+
}, p), I = fD(($) => {
|
|
3132
|
+
const T = $.target;
|
|
3133
3133
|
[
|
|
3134
3134
|
...d.branches
|
|
3135
3135
|
].some(
|
|
3136
|
-
(x) => x.contains(
|
|
3136
|
+
(x) => x.contains(T)
|
|
3137
3137
|
) || (i == null || i($), l == null || l($), $.defaultPrevented || s == null || s());
|
|
3138
3138
|
}, p);
|
|
3139
3139
|
return lD(($) => {
|
|
@@ -3162,8 +3162,8 @@ const Ib = /* @__PURE__ */ ln({
|
|
|
3162
3162
|
pointerEvents: S ? P ? "auto" : "none" : void 0,
|
|
3163
3163
|
...e.style
|
|
3164
3164
|
},
|
|
3165
|
-
onFocusCapture: se(e.onFocusCapture,
|
|
3166
|
-
onBlurCapture: se(e.onBlurCapture,
|
|
3165
|
+
onFocusCapture: se(e.onFocusCapture, I.onFocusCapture),
|
|
3166
|
+
onBlurCapture: se(e.onBlurCapture, I.onBlurCapture),
|
|
3167
3167
|
onPointerDownCapture: se(e.onPointerDownCapture, E.onPointerDownCapture)
|
|
3168
3168
|
}));
|
|
3169
3169
|
}), dD = /* @__PURE__ */ H((e, t) => {
|
|
@@ -3828,18 +3828,18 @@ function qD(e) {
|
|
|
3828
3828
|
var l = J.useCallback(function(b, m) {
|
|
3829
3829
|
if ("touches" in b && b.touches.length === 2)
|
|
3830
3830
|
return !i.current.allowPinchZoom;
|
|
3831
|
-
var y = Ka(b), v = n.current, _ = "deltaX" in b ? b.deltaX : v[0] - y[0], S = "deltaY" in b ? b.deltaY : v[1] - y[1], P, E = b.target,
|
|
3832
|
-
if ("touches" in b &&
|
|
3831
|
+
var y = Ka(b), v = n.current, _ = "deltaX" in b ? b.deltaX : v[0] - y[0], S = "deltaY" in b ? b.deltaY : v[1] - y[1], P, E = b.target, I = Math.abs(_) > Math.abs(S) ? "h" : "v";
|
|
3832
|
+
if ("touches" in b && I === "h" && E.type === "range")
|
|
3833
3833
|
return !1;
|
|
3834
|
-
var $ = $p(
|
|
3834
|
+
var $ = $p(I, E);
|
|
3835
3835
|
if (!$)
|
|
3836
3836
|
return !0;
|
|
3837
|
-
if ($ ? P =
|
|
3837
|
+
if ($ ? P = I : (P = I === "v" ? "h" : "v", $ = $p(I, E)), !$)
|
|
3838
3838
|
return !1;
|
|
3839
3839
|
if (!r.current && "changedTouches" in b && (_ || S) && (r.current = P), !P)
|
|
3840
3840
|
return !0;
|
|
3841
|
-
var
|
|
3842
|
-
return WD(
|
|
3841
|
+
var T = r.current || P;
|
|
3842
|
+
return WD(T, m, b, T === "h" ? _ : S, !0);
|
|
3843
3843
|
}, []), s = J.useCallback(function(b) {
|
|
3844
3844
|
var m = b;
|
|
3845
3845
|
if (!(!_r.length || _r[_r.length - 1] !== a)) {
|
|
@@ -3942,13 +3942,13 @@ var JD = function(e) {
|
|
|
3942
3942
|
return null;
|
|
3943
3943
|
};
|
|
3944
3944
|
};
|
|
3945
|
-
const qb = "Dialog", [Xb, Jb] = We(qb), [
|
|
3945
|
+
const qb = "Dialog", [Xb, Jb] = We(qb), [eP, Tt] = Xb(qb), tP = (e) => {
|
|
3946
3946
|
const { __scopeDialog: t, children: n, open: r, defaultOpen: o, onOpenChange: a, modal: i = !0 } = e, l = K(null), s = K(null), [c = !1, d] = Ze({
|
|
3947
3947
|
prop: r,
|
|
3948
3948
|
defaultProp: o,
|
|
3949
3949
|
onChange: a
|
|
3950
3950
|
});
|
|
3951
|
-
return /* @__PURE__ */ C(
|
|
3951
|
+
return /* @__PURE__ */ C(eP, {
|
|
3952
3952
|
scope: t,
|
|
3953
3953
|
triggerRef: l,
|
|
3954
3954
|
contentRef: s,
|
|
@@ -3967,8 +3967,8 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
3967
3967
|
),
|
|
3968
3968
|
modal: i
|
|
3969
3969
|
}, n);
|
|
3970
|
-
},
|
|
3971
|
-
const { __scopeDialog: n, ...r } = e, o = Tt(
|
|
3970
|
+
}, nP = "DialogTrigger", rP = /* @__PURE__ */ H((e, t) => {
|
|
3971
|
+
const { __scopeDialog: n, ...r } = e, o = Tt(nP, n), a = De(t, o.triggerRef);
|
|
3972
3972
|
return /* @__PURE__ */ C(ge.button, O({
|
|
3973
3973
|
type: "button",
|
|
3974
3974
|
"aria-haspopup": "dialog",
|
|
@@ -3979,11 +3979,11 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
3979
3979
|
ref: a,
|
|
3980
3980
|
onClick: se(e.onClick, o.onOpenToggle)
|
|
3981
3981
|
}));
|
|
3982
|
-
}), Zb = "DialogPortal", [
|
|
3982
|
+
}), Zb = "DialogPortal", [oP, Qb] = Xb(Zb, {
|
|
3983
3983
|
forceMount: void 0
|
|
3984
|
-
}),
|
|
3984
|
+
}), aP = (e) => {
|
|
3985
3985
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = Tt(Zb, t);
|
|
3986
|
-
return /* @__PURE__ */ C(
|
|
3986
|
+
return /* @__PURE__ */ C(oP, {
|
|
3987
3987
|
scope: t,
|
|
3988
3988
|
forceMount: n
|
|
3989
3989
|
}, tn.map(
|
|
@@ -3995,14 +3995,14 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
3995
3995
|
container: o
|
|
3996
3996
|
}, i))
|
|
3997
3997
|
));
|
|
3998
|
-
}, Cc = "DialogOverlay",
|
|
3998
|
+
}, Cc = "DialogOverlay", iP = /* @__PURE__ */ H((e, t) => {
|
|
3999
3999
|
const n = Qb(Cc, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Tt(Cc, e.__scopeDialog);
|
|
4000
4000
|
return a.modal ? /* @__PURE__ */ C(Qe, {
|
|
4001
4001
|
present: r || a.open
|
|
4002
|
-
}, /* @__PURE__ */ C(
|
|
4002
|
+
}, /* @__PURE__ */ C(lP, O({}, o, {
|
|
4003
4003
|
ref: t
|
|
4004
4004
|
}))) : null;
|
|
4005
|
-
}),
|
|
4005
|
+
}), lP = /* @__PURE__ */ H((e, t) => {
|
|
4006
4006
|
const { __scopeDialog: n, ...r } = e, o = Tt(Cc, n);
|
|
4007
4007
|
return (
|
|
4008
4008
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
@@ -4023,16 +4023,16 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
4023
4023
|
}
|
|
4024
4024
|
})))
|
|
4025
4025
|
);
|
|
4026
|
-
}), to = "DialogContent",
|
|
4026
|
+
}), to = "DialogContent", sP = /* @__PURE__ */ H((e, t) => {
|
|
4027
4027
|
const n = Qb(to, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Tt(to, e.__scopeDialog);
|
|
4028
4028
|
return /* @__PURE__ */ C(Qe, {
|
|
4029
4029
|
present: r || a.open
|
|
4030
|
-
}, a.modal ? /* @__PURE__ */ C(
|
|
4030
|
+
}, a.modal ? /* @__PURE__ */ C(cP, O({}, o, {
|
|
4031
4031
|
ref: t
|
|
4032
|
-
})) : /* @__PURE__ */ C(
|
|
4032
|
+
})) : /* @__PURE__ */ C(dP, O({}, o, {
|
|
4033
4033
|
ref: t
|
|
4034
4034
|
})));
|
|
4035
|
-
}),
|
|
4035
|
+
}), cP = /* @__PURE__ */ H((e, t) => {
|
|
4036
4036
|
const n = Tt(to, e.__scopeDialog), r = K(null), o = De(t, n.contentRef, r);
|
|
4037
4037
|
return q(() => {
|
|
4038
4038
|
const a = r.current;
|
|
@@ -4055,7 +4055,7 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
4055
4055
|
(a) => a.preventDefault()
|
|
4056
4056
|
)
|
|
4057
4057
|
}));
|
|
4058
|
-
}),
|
|
4058
|
+
}), dP = /* @__PURE__ */ H((e, t) => {
|
|
4059
4059
|
const n = Tt(to, e.__scopeDialog), r = K(!1), o = K(!1);
|
|
4060
4060
|
return /* @__PURE__ */ C(em, O({}, e, {
|
|
4061
4061
|
ref: t,
|
|
@@ -4094,22 +4094,22 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
4094
4094
|
ref: c,
|
|
4095
4095
|
onDismiss: () => l.onOpenChange(!1)
|
|
4096
4096
|
}))), !1);
|
|
4097
|
-
}), tm = "DialogTitle",
|
|
4097
|
+
}), tm = "DialogTitle", uP = /* @__PURE__ */ H((e, t) => {
|
|
4098
4098
|
const { __scopeDialog: n, ...r } = e, o = Tt(tm, n);
|
|
4099
4099
|
return /* @__PURE__ */ C(ge.h2, O({
|
|
4100
4100
|
id: o.titleId
|
|
4101
4101
|
}, r, {
|
|
4102
4102
|
ref: t
|
|
4103
4103
|
}));
|
|
4104
|
-
}),
|
|
4105
|
-
const { __scopeDialog: n, ...r } = e, o = Tt(
|
|
4104
|
+
}), fP = "DialogDescription", pP = /* @__PURE__ */ H((e, t) => {
|
|
4105
|
+
const { __scopeDialog: n, ...r } = e, o = Tt(fP, n);
|
|
4106
4106
|
return /* @__PURE__ */ C(ge.p, O({
|
|
4107
4107
|
id: o.descriptionId
|
|
4108
4108
|
}, r, {
|
|
4109
4109
|
ref: t
|
|
4110
4110
|
}));
|
|
4111
|
-
}),
|
|
4112
|
-
const { __scopeDialog: n, ...r } = e, o = Tt(
|
|
4111
|
+
}), gP = "DialogClose", hP = /* @__PURE__ */ H((e, t) => {
|
|
4112
|
+
const { __scopeDialog: n, ...r } = e, o = Tt(gP, n);
|
|
4113
4113
|
return /* @__PURE__ */ C(ge.button, O({
|
|
4114
4114
|
type: "button"
|
|
4115
4115
|
}, r, {
|
|
@@ -4123,37 +4123,37 @@ const qb = "Dialog", [Xb, Jb] = We(qb), [e6, Tt] = Xb(qb), t6 = (e) => {
|
|
|
4123
4123
|
function du(e) {
|
|
4124
4124
|
return e ? "open" : "closed";
|
|
4125
4125
|
}
|
|
4126
|
-
const
|
|
4126
|
+
const bP = "DialogTitleWarning", [mP, vV] = SS(bP, {
|
|
4127
4127
|
contentName: to,
|
|
4128
4128
|
titleName: tm,
|
|
4129
4129
|
docsSlug: "dialog"
|
|
4130
|
-
}), nm =
|
|
4130
|
+
}), nm = tP, rm = rP, om = aP, am = iP, im = sP, lm = uP, sm = pP, hl = hP, vP = "AlertDialog", [$P, $V] = We(vP, [
|
|
4131
4131
|
Jb
|
|
4132
|
-
]), gn = Jb(),
|
|
4132
|
+
]), gn = Jb(), yP = (e) => {
|
|
4133
4133
|
const { __scopeAlertDialog: t, ...n } = e, r = gn(t);
|
|
4134
4134
|
return /* @__PURE__ */ C(nm, O({}, r, n, {
|
|
4135
4135
|
modal: !0
|
|
4136
4136
|
}));
|
|
4137
|
-
},
|
|
4137
|
+
}, _P = /* @__PURE__ */ H((e, t) => {
|
|
4138
4138
|
const { __scopeAlertDialog: n, ...r } = e, o = gn(n);
|
|
4139
4139
|
return /* @__PURE__ */ C(rm, O({}, o, r, {
|
|
4140
4140
|
ref: t
|
|
4141
4141
|
}));
|
|
4142
|
-
}),
|
|
4142
|
+
}), xP = (e) => {
|
|
4143
4143
|
const { __scopeAlertDialog: t, ...n } = e, r = gn(t);
|
|
4144
4144
|
return /* @__PURE__ */ C(om, O({}, r, n));
|
|
4145
|
-
},
|
|
4145
|
+
}, wP = /* @__PURE__ */ H((e, t) => {
|
|
4146
4146
|
const { __scopeAlertDialog: n, ...r } = e, o = gn(n);
|
|
4147
4147
|
return /* @__PURE__ */ C(am, O({}, o, r, {
|
|
4148
4148
|
ref: t
|
|
4149
4149
|
}));
|
|
4150
|
-
}), cm = "AlertDialogContent", [
|
|
4150
|
+
}), cm = "AlertDialogContent", [SP, EP] = $P(cm), DP = /* @__PURE__ */ H((e, t) => {
|
|
4151
4151
|
const { __scopeAlertDialog: n, children: r, ...o } = e, a = gn(n), i = K(null), l = De(t, i), s = K(null);
|
|
4152
|
-
return /* @__PURE__ */ C(
|
|
4152
|
+
return /* @__PURE__ */ C(mP, {
|
|
4153
4153
|
contentName: cm,
|
|
4154
|
-
titleName:
|
|
4154
|
+
titleName: PP,
|
|
4155
4155
|
docsSlug: "alert-dialog"
|
|
4156
|
-
}, /* @__PURE__ */ C(
|
|
4156
|
+
}, /* @__PURE__ */ C(SP, {
|
|
4157
4157
|
scope: n,
|
|
4158
4158
|
cancelRef: s
|
|
4159
4159
|
}, /* @__PURE__ */ C(im, O({
|
|
@@ -4169,27 +4169,27 @@ const b6 = "DialogTitleWarning", [m6, vV] = SS(b6, {
|
|
|
4169
4169
|
onPointerDownOutside: (c) => c.preventDefault(),
|
|
4170
4170
|
onInteractOutside: (c) => c.preventDefault()
|
|
4171
4171
|
}), /* @__PURE__ */ C(Wd, null, r), !1)));
|
|
4172
|
-
}),
|
|
4172
|
+
}), PP = "AlertDialogTitle", TP = /* @__PURE__ */ H((e, t) => {
|
|
4173
4173
|
const { __scopeAlertDialog: n, ...r } = e, o = gn(n);
|
|
4174
4174
|
return /* @__PURE__ */ C(lm, O({}, o, r, {
|
|
4175
4175
|
ref: t
|
|
4176
4176
|
}));
|
|
4177
|
-
}),
|
|
4177
|
+
}), kP = /* @__PURE__ */ H((e, t) => {
|
|
4178
4178
|
const { __scopeAlertDialog: n, ...r } = e, o = gn(n);
|
|
4179
4179
|
return /* @__PURE__ */ C(sm, O({}, o, r, {
|
|
4180
4180
|
ref: t
|
|
4181
4181
|
}));
|
|
4182
|
-
}),
|
|
4182
|
+
}), CP = /* @__PURE__ */ H((e, t) => {
|
|
4183
4183
|
const { __scopeAlertDialog: n, ...r } = e, o = gn(n);
|
|
4184
4184
|
return /* @__PURE__ */ C(hl, O({}, o, r, {
|
|
4185
4185
|
ref: t
|
|
4186
4186
|
}));
|
|
4187
|
-
}),
|
|
4188
|
-
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } =
|
|
4187
|
+
}), RP = "AlertDialogCancel", AP = /* @__PURE__ */ H((e, t) => {
|
|
4188
|
+
const { __scopeAlertDialog: n, ...r } = e, { cancelRef: o } = EP(RP, n), a = gn(n), i = De(t, o);
|
|
4189
4189
|
return /* @__PURE__ */ C(hl, O({}, a, r, {
|
|
4190
4190
|
ref: i
|
|
4191
4191
|
}));
|
|
4192
|
-
}),
|
|
4192
|
+
}), IP = yP, OP = _P, MP = xP, FP = wP, LP = DP, NP = CP, dm = AP, zP = TP, KP = kP;
|
|
4193
4193
|
function bl(e, t) {
|
|
4194
4194
|
if (e == null)
|
|
4195
4195
|
return {};
|
|
@@ -4211,7 +4211,7 @@ function um() {
|
|
|
4211
4211
|
return wp || (wp = 1, bs = Function.call.bind(Object.prototype.hasOwnProperty)), bs;
|
|
4212
4212
|
}
|
|
4213
4213
|
var ms, Sp;
|
|
4214
|
-
function
|
|
4214
|
+
function VP() {
|
|
4215
4215
|
if (Sp)
|
|
4216
4216
|
return ms;
|
|
4217
4217
|
Sp = 1;
|
|
@@ -4261,11 +4261,11 @@ function V6() {
|
|
|
4261
4261
|
}, ms = o, ms;
|
|
4262
4262
|
}
|
|
4263
4263
|
var vs, Ep;
|
|
4264
|
-
function
|
|
4264
|
+
function BP() {
|
|
4265
4265
|
if (Ep)
|
|
4266
4266
|
return vs;
|
|
4267
4267
|
Ep = 1;
|
|
4268
|
-
var e = Bd, t = kb, n = uu(), r = um(), o =
|
|
4268
|
+
var e = Bd, t = kb, n = uu(), r = um(), o = VP(), a = function() {
|
|
4269
4269
|
};
|
|
4270
4270
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
4271
4271
|
var s = "Warning: " + l;
|
|
@@ -4301,8 +4301,8 @@ function B6() {
|
|
|
4301
4301
|
instanceOf: E,
|
|
4302
4302
|
node: F(),
|
|
4303
4303
|
objectOf: $,
|
|
4304
|
-
oneOf:
|
|
4305
|
-
oneOfType:
|
|
4304
|
+
oneOf: I,
|
|
4305
|
+
oneOfType: T,
|
|
4306
4306
|
shape: z,
|
|
4307
4307
|
exact: R
|
|
4308
4308
|
};
|
|
@@ -4316,7 +4316,7 @@ function B6() {
|
|
|
4316
4316
|
function m(B) {
|
|
4317
4317
|
if (process.env.NODE_ENV !== "production")
|
|
4318
4318
|
var j = {}, W = 0;
|
|
4319
|
-
function N(ie, ae, ue, Z,
|
|
4319
|
+
function N(ie, ae, ue, Z, ne, fe, xe) {
|
|
4320
4320
|
if (Z = Z || g, fe = fe || ue, xe !== n) {
|
|
4321
4321
|
if (s) {
|
|
4322
4322
|
var pe = new Error(
|
|
@@ -4331,16 +4331,16 @@ function B6() {
|
|
|
4331
4331
|
), j[$e] = !0, W++);
|
|
4332
4332
|
}
|
|
4333
4333
|
}
|
|
4334
|
-
return ae[ue] == null ? ie ? ae[ue] === null ? new b("The " +
|
|
4334
|
+
return ae[ue] == null ? ie ? ae[ue] === null ? new b("The " + ne + " `" + fe + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new b("The " + ne + " `" + fe + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : B(ae, ue, Z, ne, fe);
|
|
4335
4335
|
}
|
|
4336
4336
|
var G = N.bind(null, !1);
|
|
4337
4337
|
return G.isRequired = N.bind(null, !0), G;
|
|
4338
4338
|
}
|
|
4339
4339
|
function y(B) {
|
|
4340
4340
|
function j(W, N, G, ie, ae, ue) {
|
|
4341
|
-
var Z = W[N],
|
|
4342
|
-
if (
|
|
4343
|
-
var fe =
|
|
4341
|
+
var Z = W[N], ne = A(Z);
|
|
4342
|
+
if (ne !== B) {
|
|
4343
|
+
var fe = te(Z);
|
|
4344
4344
|
return new b(
|
|
4345
4345
|
"Invalid " + ie + " `" + ae + "` of type " + ("`" + fe + "` supplied to `" + G + "`, expected ") + ("`" + B + "`."),
|
|
4346
4346
|
{ expectedType: B }
|
|
@@ -4359,11 +4359,11 @@ function B6() {
|
|
|
4359
4359
|
return new b("Property `" + ae + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
|
|
4360
4360
|
var ue = W[N];
|
|
4361
4361
|
if (!Array.isArray(ue)) {
|
|
4362
|
-
var Z =
|
|
4362
|
+
var Z = A(ue);
|
|
4363
4363
|
return new b("Invalid " + ie + " `" + ae + "` of type " + ("`" + Z + "` supplied to `" + G + "`, expected an array."));
|
|
4364
4364
|
}
|
|
4365
|
-
for (var
|
|
4366
|
-
var fe = B(ue,
|
|
4365
|
+
for (var ne = 0; ne < ue.length; ne++) {
|
|
4366
|
+
var fe = B(ue, ne, G, ie, ae + "[" + ne + "]", n);
|
|
4367
4367
|
if (fe instanceof Error)
|
|
4368
4368
|
return fe;
|
|
4369
4369
|
}
|
|
@@ -4375,7 +4375,7 @@ function B6() {
|
|
|
4375
4375
|
function B(j, W, N, G, ie) {
|
|
4376
4376
|
var ae = j[W];
|
|
4377
4377
|
if (!l(ae)) {
|
|
4378
|
-
var ue =
|
|
4378
|
+
var ue = A(ae);
|
|
4379
4379
|
return new b("Invalid " + G + " `" + ie + "` of type " + ("`" + ue + "` supplied to `" + N + "`, expected a single ReactElement."));
|
|
4380
4380
|
}
|
|
4381
4381
|
return null;
|
|
@@ -4386,7 +4386,7 @@ function B6() {
|
|
|
4386
4386
|
function B(j, W, N, G, ie) {
|
|
4387
4387
|
var ae = j[W];
|
|
4388
4388
|
if (!e.isValidElementType(ae)) {
|
|
4389
|
-
var ue =
|
|
4389
|
+
var ue = A(ae);
|
|
4390
4390
|
return new b("Invalid " + G + " `" + ie + "` of type " + ("`" + ue + "` supplied to `" + N + "`, expected a single ReactElement type."));
|
|
4391
4391
|
}
|
|
4392
4392
|
return null;
|
|
@@ -4403,7 +4403,7 @@ function B6() {
|
|
|
4403
4403
|
}
|
|
4404
4404
|
return m(j);
|
|
4405
4405
|
}
|
|
4406
|
-
function
|
|
4406
|
+
function I(B) {
|
|
4407
4407
|
if (!Array.isArray(B))
|
|
4408
4408
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
4409
4409
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -4412,11 +4412,11 @@ function B6() {
|
|
|
4412
4412
|
for (var ue = W[N], Z = 0; Z < B.length; Z++)
|
|
4413
4413
|
if (h(ue, B[Z]))
|
|
4414
4414
|
return null;
|
|
4415
|
-
var
|
|
4416
|
-
var $e =
|
|
4415
|
+
var ne = JSON.stringify(B, function(xe, pe) {
|
|
4416
|
+
var $e = te(pe);
|
|
4417
4417
|
return $e === "symbol" ? String(pe) : pe;
|
|
4418
4418
|
});
|
|
4419
|
-
return new b("Invalid " + ie + " `" + ae + "` of value `" + String(ue) + "` " + ("supplied to `" + G + "`, expected one of " +
|
|
4419
|
+
return new b("Invalid " + ie + " `" + ae + "` of value `" + String(ue) + "` " + ("supplied to `" + G + "`, expected one of " + ne + "."));
|
|
4420
4420
|
}
|
|
4421
4421
|
return m(j);
|
|
4422
4422
|
}
|
|
@@ -4424,12 +4424,12 @@ function B6() {
|
|
|
4424
4424
|
function j(W, N, G, ie, ae) {
|
|
4425
4425
|
if (typeof B != "function")
|
|
4426
4426
|
return new b("Property `" + ae + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
4427
|
-
var ue = W[N], Z =
|
|
4427
|
+
var ue = W[N], Z = A(ue);
|
|
4428
4428
|
if (Z !== "object")
|
|
4429
4429
|
return new b("Invalid " + ie + " `" + ae + "` of type " + ("`" + Z + "` supplied to `" + G + "`, expected an object."));
|
|
4430
|
-
for (var
|
|
4431
|
-
if (r(ue,
|
|
4432
|
-
var fe = B(ue,
|
|
4430
|
+
for (var ne in ue)
|
|
4431
|
+
if (r(ue, ne)) {
|
|
4432
|
+
var fe = B(ue, ne, G, ie, ae + "." + ne, n);
|
|
4433
4433
|
if (fe instanceof Error)
|
|
4434
4434
|
return fe;
|
|
4435
4435
|
}
|
|
@@ -4437,7 +4437,7 @@ function B6() {
|
|
|
4437
4437
|
}
|
|
4438
4438
|
return m(j);
|
|
4439
4439
|
}
|
|
4440
|
-
function
|
|
4440
|
+
function T(B) {
|
|
4441
4441
|
if (!Array.isArray(B))
|
|
4442
4442
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
4443
4443
|
for (var j = 0; j < B.length; j++) {
|
|
@@ -4448,13 +4448,13 @@ function B6() {
|
|
|
4448
4448
|
), i;
|
|
4449
4449
|
}
|
|
4450
4450
|
function N(G, ie, ae, ue, Z) {
|
|
4451
|
-
for (var
|
|
4451
|
+
for (var ne = [], fe = 0; fe < B.length; fe++) {
|
|
4452
4452
|
var xe = B[fe], pe = xe(G, ie, ae, ue, Z, n);
|
|
4453
4453
|
if (pe == null)
|
|
4454
4454
|
return null;
|
|
4455
|
-
pe.data && r(pe.data, "expectedType") &&
|
|
4455
|
+
pe.data && r(pe.data, "expectedType") && ne.push(pe.data.expectedType);
|
|
4456
4456
|
}
|
|
4457
|
-
var $e =
|
|
4457
|
+
var $e = ne.length > 0 ? ", expected one of type [" + ne.join(", ") + "]" : "";
|
|
4458
4458
|
return new b("Invalid " + ue + " `" + Z + "` supplied to " + ("`" + ae + "`" + $e + "."));
|
|
4459
4459
|
}
|
|
4460
4460
|
return m(N);
|
|
@@ -4472,14 +4472,14 @@ function B6() {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
function z(B) {
|
|
4474
4474
|
function j(W, N, G, ie, ae) {
|
|
4475
|
-
var ue = W[N], Z =
|
|
4475
|
+
var ue = W[N], Z = A(ue);
|
|
4476
4476
|
if (Z !== "object")
|
|
4477
4477
|
return new b("Invalid " + ie + " `" + ae + "` of type `" + Z + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
4478
|
-
for (var
|
|
4479
|
-
var fe = B[
|
|
4478
|
+
for (var ne in B) {
|
|
4479
|
+
var fe = B[ne];
|
|
4480
4480
|
if (typeof fe != "function")
|
|
4481
|
-
return x(G, ie, ae,
|
|
4482
|
-
var xe = fe(ue,
|
|
4481
|
+
return x(G, ie, ae, ne, te(fe));
|
|
4482
|
+
var xe = fe(ue, ne, G, ie, ae + "." + ne, n);
|
|
4483
4483
|
if (xe)
|
|
4484
4484
|
return xe;
|
|
4485
4485
|
}
|
|
@@ -4489,14 +4489,14 @@ function B6() {
|
|
|
4489
4489
|
}
|
|
4490
4490
|
function R(B) {
|
|
4491
4491
|
function j(W, N, G, ie, ae) {
|
|
4492
|
-
var ue = W[N], Z =
|
|
4492
|
+
var ue = W[N], Z = A(ue);
|
|
4493
4493
|
if (Z !== "object")
|
|
4494
4494
|
return new b("Invalid " + ie + " `" + ae + "` of type `" + Z + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
4495
|
-
var
|
|
4496
|
-
for (var fe in
|
|
4495
|
+
var ne = t({}, W[N], B);
|
|
4496
|
+
for (var fe in ne) {
|
|
4497
4497
|
var xe = B[fe];
|
|
4498
4498
|
if (r(B, fe) && typeof xe != "function")
|
|
4499
|
-
return x(G, ie, ae, fe,
|
|
4499
|
+
return x(G, ie, ae, fe, te(xe));
|
|
4500
4500
|
if (!xe)
|
|
4501
4501
|
return new b(
|
|
4502
4502
|
"Invalid " + ie + " `" + ae + "` key `" + fe + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(W[N], null, " ") + `
|
|
@@ -4546,14 +4546,14 @@ Valid keys: ` + JSON.stringify(Object.keys(B), null, " ")
|
|
|
4546
4546
|
function U(B, j) {
|
|
4547
4547
|
return B === "symbol" ? !0 : j ? j["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && j instanceof Symbol : !1;
|
|
4548
4548
|
}
|
|
4549
|
-
function
|
|
4549
|
+
function A(B) {
|
|
4550
4550
|
var j = typeof B;
|
|
4551
4551
|
return Array.isArray(B) ? "array" : B instanceof RegExp ? "object" : U(j, B) ? "symbol" : j;
|
|
4552
4552
|
}
|
|
4553
|
-
function
|
|
4553
|
+
function te(B) {
|
|
4554
4554
|
if (typeof B > "u" || B === null)
|
|
4555
4555
|
return "" + B;
|
|
4556
|
-
var j =
|
|
4556
|
+
var j = A(B);
|
|
4557
4557
|
if (j === "object") {
|
|
4558
4558
|
if (B instanceof Date)
|
|
4559
4559
|
return "date";
|
|
@@ -4563,7 +4563,7 @@ Valid keys: ` + JSON.stringify(Object.keys(B), null, " ")
|
|
|
4563
4563
|
return j;
|
|
4564
4564
|
}
|
|
4565
4565
|
function V(B) {
|
|
4566
|
-
var j =
|
|
4566
|
+
var j = te(B);
|
|
4567
4567
|
switch (j) {
|
|
4568
4568
|
case "array":
|
|
4569
4569
|
case "object":
|
|
@@ -4583,7 +4583,7 @@ Valid keys: ` + JSON.stringify(Object.keys(B), null, " ")
|
|
|
4583
4583
|
}, vs;
|
|
4584
4584
|
}
|
|
4585
4585
|
var $s, Dp;
|
|
4586
|
-
function
|
|
4586
|
+
function jP() {
|
|
4587
4587
|
if (Dp)
|
|
4588
4588
|
return $s;
|
|
4589
4589
|
Dp = 1;
|
|
@@ -4632,13 +4632,13 @@ function j6() {
|
|
|
4632
4632
|
}, $s;
|
|
4633
4633
|
}
|
|
4634
4634
|
if (process.env.NODE_ENV !== "production") {
|
|
4635
|
-
var
|
|
4636
|
-
Rc.exports =
|
|
4635
|
+
var UP = Bd, WP = !0;
|
|
4636
|
+
Rc.exports = BP()(UP.isElement, WP);
|
|
4637
4637
|
} else
|
|
4638
|
-
Rc.exports =
|
|
4638
|
+
Rc.exports = jP()();
|
|
4639
4639
|
var Te = Rc.exports;
|
|
4640
4640
|
const de = /* @__PURE__ */ ol(Te);
|
|
4641
|
-
var Ac = "data-focus-lock", fm = "data-focus-lock-disabled",
|
|
4641
|
+
var Ac = "data-focus-lock", fm = "data-focus-lock-disabled", HP = "data-no-focus-lock", GP = "data-autofocus-inside", YP = "data-no-autofocus", ys = {
|
|
4642
4642
|
width: "1px",
|
|
4643
4643
|
height: "0px",
|
|
4644
4644
|
padding: 0,
|
|
@@ -4654,13 +4654,13 @@ var pm = lu({}, function(e) {
|
|
|
4654
4654
|
target: t,
|
|
4655
4655
|
currentTarget: n
|
|
4656
4656
|
};
|
|
4657
|
-
}), gm = lu(),
|
|
4657
|
+
}), gm = lu(), qP = lu(), XP = Kb({
|
|
4658
4658
|
async: !0
|
|
4659
4659
|
// focus-lock sidecar is not required on the server
|
|
4660
4660
|
// however, it might be required for JSDOM tests
|
|
4661
4661
|
// ssr: true,
|
|
4662
|
-
}),
|
|
4663
|
-
var r, o = J.useState(), a = o[0], i = o[1], l = J.useRef(), s = J.useRef(!1), c = J.useRef(null), d = t.children, u = t.disabled, g = t.noFocusGuards, p = t.persistentFocus, h = t.crossFrame, b = t.autoFocus, m = t.allowTextSelection, y = t.group, v = t.className, _ = t.whiteList, S = t.hasPositiveIndices, P = t.shards, E = P === void 0 ?
|
|
4662
|
+
}), JP = [], fu = /* @__PURE__ */ J.forwardRef(function(t, n) {
|
|
4663
|
+
var r, o = J.useState(), a = o[0], i = o[1], l = J.useRef(), s = J.useRef(!1), c = J.useRef(null), d = t.children, u = t.disabled, g = t.noFocusGuards, p = t.persistentFocus, h = t.crossFrame, b = t.autoFocus, m = t.allowTextSelection, y = t.group, v = t.className, _ = t.whiteList, S = t.hasPositiveIndices, P = t.shards, E = P === void 0 ? JP : P, I = t.as, $ = I === void 0 ? "div" : I, T = t.lockProps, F = T === void 0 ? {} : T, x = t.sideCar, z = t.returnFocus, R = t.focusOptions, D = t.onActivation, U = t.onDeactivation, A = J.useState({}), te = A[0], V = J.useCallback(function() {
|
|
4664
4664
|
c.current = c.current || document && document.activeElement, l.current && D && D(l.current), s.current = !0;
|
|
4665
4665
|
}, [D]), X = J.useCallback(function() {
|
|
4666
4666
|
s.current = !1, U && U(l.current);
|
|
@@ -4669,14 +4669,14 @@ var pm = lu({}, function(e) {
|
|
|
4669
4669
|
u || (c.current = null);
|
|
4670
4670
|
}, []);
|
|
4671
4671
|
var B = J.useCallback(function(Z) {
|
|
4672
|
-
var
|
|
4673
|
-
if (
|
|
4674
|
-
var fe = typeof z == "function" ? z(
|
|
4672
|
+
var ne = c.current;
|
|
4673
|
+
if (ne && ne.focus) {
|
|
4674
|
+
var fe = typeof z == "function" ? z(ne) : z;
|
|
4675
4675
|
if (fe) {
|
|
4676
4676
|
var xe = typeof fe == "object" ? fe : void 0;
|
|
4677
4677
|
c.current = null, Z ? Promise.resolve().then(function() {
|
|
4678
|
-
return
|
|
4679
|
-
}) :
|
|
4678
|
+
return ne.focus(xe);
|
|
4679
|
+
}) : ne.focus(xe);
|
|
4680
4680
|
}
|
|
4681
4681
|
}
|
|
4682
4682
|
}, [z]), j = J.useCallback(function(Z) {
|
|
@@ -4704,8 +4704,8 @@ var pm = lu({}, function(e) {
|
|
|
4704
4704
|
style: ys
|
|
4705
4705
|
}) : null
|
|
4706
4706
|
], !u && /* @__PURE__ */ J.createElement(x, {
|
|
4707
|
-
id:
|
|
4708
|
-
sideCar:
|
|
4707
|
+
id: te,
|
|
4708
|
+
sideCar: XP,
|
|
4709
4709
|
observed: a,
|
|
4710
4710
|
disabled: u,
|
|
4711
4711
|
persistentFocus: p,
|
|
@@ -4787,7 +4787,7 @@ function On(e) {
|
|
|
4787
4787
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4788
4788
|
}, On(e);
|
|
4789
4789
|
}
|
|
4790
|
-
function
|
|
4790
|
+
function ZP(e, t) {
|
|
4791
4791
|
if (On(e) !== "object" || e === null)
|
|
4792
4792
|
return e;
|
|
4793
4793
|
var n = e[Symbol.toPrimitive];
|
|
@@ -4800,7 +4800,7 @@ function Z6(e, t) {
|
|
|
4800
4800
|
return (t === "string" ? String : Number)(e);
|
|
4801
4801
|
}
|
|
4802
4802
|
function bm(e) {
|
|
4803
|
-
var t =
|
|
4803
|
+
var t = ZP(e, "string");
|
|
4804
4804
|
return On(t) === "symbol" ? t : String(t);
|
|
4805
4805
|
}
|
|
4806
4806
|
function jr(e, t, n) {
|
|
@@ -4811,7 +4811,7 @@ function jr(e, t, n) {
|
|
|
4811
4811
|
writable: !0
|
|
4812
4812
|
}) : e[t] = n, e;
|
|
4813
4813
|
}
|
|
4814
|
-
function
|
|
4814
|
+
function QP(e, t) {
|
|
4815
4815
|
if (process.env.NODE_ENV !== "production") {
|
|
4816
4816
|
if (typeof e != "function")
|
|
4817
4817
|
throw new Error("Expected reducePropsToState to be a function.");
|
|
@@ -4861,7 +4861,7 @@ var Vt = function(e) {
|
|
|
4861
4861
|
return Array.isArray(e) ? e : [e];
|
|
4862
4862
|
}, mm = function(e) {
|
|
4863
4863
|
return Array.isArray(e) ? e[0] : e;
|
|
4864
|
-
},
|
|
4864
|
+
}, e6 = function(e) {
|
|
4865
4865
|
if (e.nodeType !== Node.ELEMENT_NODE)
|
|
4866
4866
|
return !1;
|
|
4867
4867
|
var t = window.getComputedStyle(e, null);
|
|
@@ -4873,43 +4873,43 @@ var Vt = function(e) {
|
|
|
4873
4873
|
) : e.parentNode;
|
|
4874
4874
|
}, $m = function(e) {
|
|
4875
4875
|
return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
|
|
4876
|
-
},
|
|
4877
|
-
return !e || $m(e) || !
|
|
4876
|
+
}, t6 = function(e, t) {
|
|
4877
|
+
return !e || $m(e) || !e6(e) && t(vm(e));
|
|
4878
4878
|
}, ym = function(e, t) {
|
|
4879
4879
|
var n = e.get(t);
|
|
4880
4880
|
if (n !== void 0)
|
|
4881
4881
|
return n;
|
|
4882
|
-
var r =
|
|
4882
|
+
var r = t6(t, ym.bind(void 0, e));
|
|
4883
4883
|
return e.set(t, r), r;
|
|
4884
|
-
},
|
|
4885
|
-
return e && !$m(e) ?
|
|
4884
|
+
}, n6 = function(e, t) {
|
|
4885
|
+
return e && !$m(e) ? a6(e) ? t(vm(e)) : !1 : !0;
|
|
4886
4886
|
}, _m = function(e, t) {
|
|
4887
4887
|
var n = e.get(t);
|
|
4888
4888
|
if (n !== void 0)
|
|
4889
4889
|
return n;
|
|
4890
|
-
var r =
|
|
4890
|
+
var r = n6(t, _m.bind(void 0, e));
|
|
4891
4891
|
return e.set(t, r), r;
|
|
4892
4892
|
}, xm = function(e) {
|
|
4893
4893
|
return e.dataset;
|
|
4894
|
-
},
|
|
4894
|
+
}, r6 = function(e) {
|
|
4895
4895
|
return e.tagName === "BUTTON";
|
|
4896
4896
|
}, wm = function(e) {
|
|
4897
4897
|
return e.tagName === "INPUT";
|
|
4898
4898
|
}, Sm = function(e) {
|
|
4899
4899
|
return wm(e) && e.type === "radio";
|
|
4900
|
-
},
|
|
4901
|
-
return !((wm(e) ||
|
|
4902
|
-
},
|
|
4903
|
-
var t = e.getAttribute(
|
|
4900
|
+
}, o6 = function(e) {
|
|
4901
|
+
return !((wm(e) || r6(e)) && (e.type === "hidden" || e.disabled));
|
|
4902
|
+
}, a6 = function(e) {
|
|
4903
|
+
var t = e.getAttribute(YP);
|
|
4904
4904
|
return ![!0, "true", ""].includes(t);
|
|
4905
4905
|
}, pu = function(e) {
|
|
4906
4906
|
var t;
|
|
4907
4907
|
return !!(e && (!((t = xm(e)) === null || t === void 0) && t.focusGuard));
|
|
4908
4908
|
}, $i = function(e) {
|
|
4909
4909
|
return !pu(e);
|
|
4910
|
-
},
|
|
4910
|
+
}, i6 = function(e) {
|
|
4911
4911
|
return !!e;
|
|
4912
|
-
},
|
|
4912
|
+
}, l6 = function(e, t) {
|
|
4913
4913
|
var n = e.tabIndex - t.tabIndex, r = e.index - t.index;
|
|
4914
4914
|
if (n) {
|
|
4915
4915
|
if (!e.tabIndex)
|
|
@@ -4927,8 +4927,8 @@ var Vt = function(e) {
|
|
|
4927
4927
|
};
|
|
4928
4928
|
}).filter(function(r) {
|
|
4929
4929
|
return !t || r.tabIndex >= 0;
|
|
4930
|
-
}).sort(
|
|
4931
|
-
},
|
|
4930
|
+
}).sort(l6);
|
|
4931
|
+
}, s6 = [
|
|
4932
4932
|
"button:enabled",
|
|
4933
4933
|
"select:enabled",
|
|
4934
4934
|
"textarea:enabled",
|
|
@@ -4946,17 +4946,17 @@ var Vt = function(e) {
|
|
|
4946
4946
|
"[tabindex]",
|
|
4947
4947
|
"[contenteditable]",
|
|
4948
4948
|
"[autofocus]"
|
|
4949
|
-
], gu =
|
|
4949
|
+
], gu = s6.join(","), c6 = "".concat(gu, ", [data-focus-guard]"), Dm = function(e, t) {
|
|
4950
4950
|
return Vt((e.shadowRoot || e).children).reduce(function(n, r) {
|
|
4951
|
-
return n.concat(r.matches(t ?
|
|
4951
|
+
return n.concat(r.matches(t ? c6 : gu) ? [r] : [], Dm(r));
|
|
4952
4952
|
}, []);
|
|
4953
|
-
},
|
|
4953
|
+
}, d6 = function(e, t) {
|
|
4954
4954
|
var n;
|
|
4955
4955
|
return e instanceof HTMLIFrameElement && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? vl([e.contentDocument.body], t) : [e];
|
|
4956
4956
|
}, vl = function(e, t) {
|
|
4957
4957
|
return e.reduce(function(n, r) {
|
|
4958
4958
|
var o, a = Dm(r, t), i = (o = []).concat.apply(o, a.map(function(l) {
|
|
4959
|
-
return
|
|
4959
|
+
return d6(l, t);
|
|
4960
4960
|
}));
|
|
4961
4961
|
return n.concat(
|
|
4962
4962
|
// add all tabbables inside and within shadow DOMs in DOM order
|
|
@@ -4967,8 +4967,8 @@ var Vt = function(e) {
|
|
|
4967
4967
|
}) : []
|
|
4968
4968
|
);
|
|
4969
4969
|
}, []);
|
|
4970
|
-
},
|
|
4971
|
-
var t = e.querySelectorAll("[".concat(
|
|
4970
|
+
}, u6 = function(e) {
|
|
4971
|
+
var t = e.querySelectorAll("[".concat(GP, "]"));
|
|
4972
4972
|
return Vt(t).map(function(n) {
|
|
4973
4973
|
return vl([n]);
|
|
4974
4974
|
}).reduce(function(n, r) {
|
|
@@ -4978,7 +4978,7 @@ var Vt = function(e) {
|
|
|
4978
4978
|
return Vt(e).filter(function(n) {
|
|
4979
4979
|
return ym(t, n);
|
|
4980
4980
|
}).filter(function(n) {
|
|
4981
|
-
return
|
|
4981
|
+
return o6(n);
|
|
4982
4982
|
});
|
|
4983
4983
|
}, Pp = function(e, t) {
|
|
4984
4984
|
return t === void 0 && (t = /* @__PURE__ */ new Map()), Vt(e).filter(function(n) {
|
|
@@ -4988,8 +4988,8 @@ var Vt = function(e) {
|
|
|
4988
4988
|
return Em(hu(vl(e, n), t), !0, n);
|
|
4989
4989
|
}, Tp = function(e, t) {
|
|
4990
4990
|
return Em(hu(vl(e), t), !1);
|
|
4991
|
-
},
|
|
4992
|
-
return hu(
|
|
4991
|
+
}, f6 = function(e, t) {
|
|
4992
|
+
return hu(u6(e), t);
|
|
4993
4993
|
}, Ur = function(e, t) {
|
|
4994
4994
|
return e.shadowRoot ? Ur(e.shadowRoot, t) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, t) ? !0 : Vt(e.children).some(function(n) {
|
|
4995
4995
|
var r;
|
|
@@ -4999,7 +4999,7 @@ var Vt = function(e) {
|
|
|
4999
4999
|
}
|
|
5000
5000
|
return Ur(n, t);
|
|
5001
5001
|
});
|
|
5002
|
-
},
|
|
5002
|
+
}, p6 = function(e) {
|
|
5003
5003
|
for (var t = /* @__PURE__ */ new Set(), n = e.length, r = 0; r < n; r += 1)
|
|
5004
5004
|
for (var o = r + 1; o < n; o += 1) {
|
|
5005
5005
|
var a = e[r].compareDocumentPosition(e[o]);
|
|
@@ -5014,9 +5014,9 @@ var Vt = function(e) {
|
|
|
5014
5014
|
var t = vi(e);
|
|
5015
5015
|
return t.filter(Boolean).reduce(function(n, r) {
|
|
5016
5016
|
var o = r.getAttribute(Ac);
|
|
5017
|
-
return n.push.apply(n, o ?
|
|
5017
|
+
return n.push.apply(n, o ? p6(Vt(Pm(r).querySelectorAll("[".concat(Ac, '="').concat(o, '"]:not([').concat(fm, '="disabled"])')))) : [r]), n;
|
|
5018
5018
|
}, []);
|
|
5019
|
-
},
|
|
5019
|
+
}, g6 = function(e) {
|
|
5020
5020
|
try {
|
|
5021
5021
|
return e();
|
|
5022
5022
|
} catch {
|
|
@@ -5025,35 +5025,35 @@ var Vt = function(e) {
|
|
|
5025
5025
|
}, Wo = function(e) {
|
|
5026
5026
|
if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
|
|
5027
5027
|
var t = e.activeElement;
|
|
5028
|
-
return t.shadowRoot ? Wo(t.shadowRoot) : t instanceof HTMLIFrameElement &&
|
|
5028
|
+
return t.shadowRoot ? Wo(t.shadowRoot) : t instanceof HTMLIFrameElement && g6(function() {
|
|
5029
5029
|
return t.contentWindow.document;
|
|
5030
5030
|
}) ? Wo(t.contentWindow.document) : t;
|
|
5031
5031
|
}
|
|
5032
|
-
},
|
|
5032
|
+
}, h6 = function(e, t) {
|
|
5033
5033
|
return e === t;
|
|
5034
|
-
},
|
|
5034
|
+
}, b6 = function(e, t) {
|
|
5035
5035
|
return !!Vt(e.querySelectorAll("iframe")).some(function(n) {
|
|
5036
|
-
return
|
|
5036
|
+
return h6(n, t);
|
|
5037
5037
|
});
|
|
5038
5038
|
}, Tm = function(e, t) {
|
|
5039
5039
|
return t === void 0 && (t = Wo(mm(e).ownerDocument)), !t || t.dataset && t.dataset.focusGuard ? !1 : bu(e).some(function(n) {
|
|
5040
|
-
return Ur(n, t) ||
|
|
5040
|
+
return Ur(n, t) || b6(n, t);
|
|
5041
5041
|
});
|
|
5042
|
-
},
|
|
5042
|
+
}, m6 = function(e) {
|
|
5043
5043
|
e === void 0 && (e = document);
|
|
5044
5044
|
var t = Wo(e);
|
|
5045
|
-
return t ? Vt(e.querySelectorAll("[".concat(
|
|
5045
|
+
return t ? Vt(e.querySelectorAll("[".concat(HP, "]"))).some(function(n) {
|
|
5046
5046
|
return Ur(n, t);
|
|
5047
5047
|
}) : !1;
|
|
5048
|
-
},
|
|
5048
|
+
}, v6 = function(e, t) {
|
|
5049
5049
|
return t.filter(Sm).filter(function(n) {
|
|
5050
5050
|
return n.name === e.name;
|
|
5051
5051
|
}).filter(function(n) {
|
|
5052
5052
|
return n.checked;
|
|
5053
5053
|
})[0] || e;
|
|
5054
5054
|
}, mu = function(e, t) {
|
|
5055
|
-
return Sm(e) && e.name ?
|
|
5056
|
-
}, $
|
|
5055
|
+
return Sm(e) && e.name ? v6(e, t) : e;
|
|
5056
|
+
}, $6 = function(e) {
|
|
5057
5057
|
var t = /* @__PURE__ */ new Set();
|
|
5058
5058
|
return e.forEach(function(n) {
|
|
5059
5059
|
return t.add(mu(n, e));
|
|
@@ -5064,10 +5064,10 @@ var Vt = function(e) {
|
|
|
5064
5064
|
return e[0] && e.length > 1 ? mu(e[0], e) : e[0];
|
|
5065
5065
|
}, Cp = function(e, t) {
|
|
5066
5066
|
return e.length > 1 ? e.indexOf(mu(e[t], e)) : t;
|
|
5067
|
-
}, km = "NEW_FOCUS",
|
|
5067
|
+
}, km = "NEW_FOCUS", y6 = function(e, t, n, r) {
|
|
5068
5068
|
var o = e.length, a = e[0], i = e[o - 1], l = pu(n);
|
|
5069
5069
|
if (!(n && e.indexOf(n) >= 0)) {
|
|
5070
|
-
var s = n !== void 0 ? t.indexOf(n) : -1, c = r ? t.indexOf(r) : s, d = r ? e.indexOf(r) : -1, u = s - c, g = t.indexOf(a), p = t.indexOf(i), h = $
|
|
5070
|
+
var s = n !== void 0 ? t.indexOf(n) : -1, c = r ? t.indexOf(r) : s, d = r ? e.indexOf(r) : -1, u = s - c, g = t.indexOf(a), p = t.indexOf(i), h = $6(t), b = n !== void 0 ? h.indexOf(n) : -1, m = b - (r ? h.indexOf(r) : s), y = Cp(e, 0), v = Cp(e, o - 1);
|
|
5071
5071
|
if (s === -1 || d === -1)
|
|
5072
5072
|
return km;
|
|
5073
5073
|
if (!u && d >= 0)
|
|
@@ -5085,7 +5085,7 @@ var Vt = function(e) {
|
|
|
5085
5085
|
if (u)
|
|
5086
5086
|
return Math.abs(u) > 1 ? d : (o + d + u) % o;
|
|
5087
5087
|
}
|
|
5088
|
-
},
|
|
5088
|
+
}, _6 = function(e) {
|
|
5089
5089
|
return function(t) {
|
|
5090
5090
|
var n, r = (n = xm(t)) === null || n === void 0 ? void 0 : n.autofocus;
|
|
5091
5091
|
return (
|
|
@@ -5095,11 +5095,11 @@ var Vt = function(e) {
|
|
|
5095
5095
|
e.indexOf(t) >= 0
|
|
5096
5096
|
);
|
|
5097
5097
|
};
|
|
5098
|
-
},
|
|
5098
|
+
}, x6 = function(e, t, n) {
|
|
5099
5099
|
var r = e.map(function(a) {
|
|
5100
5100
|
var i = a.node;
|
|
5101
5101
|
return i;
|
|
5102
|
-
}), o = Pp(r.filter(
|
|
5102
|
+
}), o = Pp(r.filter(_6(n)));
|
|
5103
5103
|
return o && o.length ? kp(o) : kp(Pp(t));
|
|
5104
5104
|
}, Mc = function(e, t) {
|
|
5105
5105
|
return t === void 0 && (t = []), t.push(e), e.parentNode && Mc(e.parentNode.host || e.parentNode, t), t;
|
|
@@ -5118,18 +5118,18 @@ var Vt = function(e) {
|
|
|
5118
5118
|
c && (!i || Ur(c, i) ? i = c : i = _s(c, i));
|
|
5119
5119
|
});
|
|
5120
5120
|
}), i;
|
|
5121
|
-
},
|
|
5121
|
+
}, w6 = function(e, t) {
|
|
5122
5122
|
return e.reduce(function(n, r) {
|
|
5123
|
-
return n.concat(
|
|
5123
|
+
return n.concat(f6(r, t));
|
|
5124
5124
|
}, []);
|
|
5125
|
-
},
|
|
5125
|
+
}, S6 = function(e, t) {
|
|
5126
5126
|
var n = /* @__PURE__ */ new Map();
|
|
5127
5127
|
return t.forEach(function(r) {
|
|
5128
5128
|
return n.set(r.node, r);
|
|
5129
5129
|
}), e.map(function(r) {
|
|
5130
5130
|
return n.get(r);
|
|
5131
|
-
}).filter(
|
|
5132
|
-
},
|
|
5131
|
+
}).filter(i6);
|
|
5132
|
+
}, E6 = function(e, t) {
|
|
5133
5133
|
var n = Wo(vi(e).length > 0 ? document : mm(e).ownerDocument), r = bu(e).filter($i), o = Cm(n || e, e, r), a = /* @__PURE__ */ new Map(), i = Tp(r, a), l = Oc(r, a).filter(function(p) {
|
|
5134
5134
|
var h = p.node;
|
|
5135
5135
|
return $i(h);
|
|
@@ -5138,12 +5138,12 @@ var Vt = function(e) {
|
|
|
5138
5138
|
var s = Tp([o], a).map(function(p) {
|
|
5139
5139
|
var h = p.node;
|
|
5140
5140
|
return h;
|
|
5141
|
-
}), c =
|
|
5141
|
+
}), c = S6(s, l), d = c.map(function(p) {
|
|
5142
5142
|
var h = p.node;
|
|
5143
5143
|
return h;
|
|
5144
|
-
}), u =
|
|
5144
|
+
}), u = y6(d, s, n, t);
|
|
5145
5145
|
if (u === km) {
|
|
5146
|
-
var g =
|
|
5146
|
+
var g = x6(i, d, w6(r, a));
|
|
5147
5147
|
if (g)
|
|
5148
5148
|
return { node: g };
|
|
5149
5149
|
console.warn("focus-lock: cannot find any node to move focus into");
|
|
@@ -5151,7 +5151,7 @@ var Vt = function(e) {
|
|
|
5151
5151
|
}
|
|
5152
5152
|
return u === void 0 ? u : c[u];
|
|
5153
5153
|
}
|
|
5154
|
-
},
|
|
5154
|
+
}, D6 = function(e) {
|
|
5155
5155
|
var t = bu(e).filter($i), n = Cm(e, e, t), r = /* @__PURE__ */ new Map(), o = Oc([n], r, !0), a = Oc(t, r).filter(function(i) {
|
|
5156
5156
|
var l = i.node;
|
|
5157
5157
|
return $i(l);
|
|
@@ -5168,11 +5168,11 @@ var Vt = function(e) {
|
|
|
5168
5168
|
guard: pu(l)
|
|
5169
5169
|
};
|
|
5170
5170
|
});
|
|
5171
|
-
},
|
|
5171
|
+
}, P6 = function(e, t) {
|
|
5172
5172
|
"focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus();
|
|
5173
5173
|
}, xs = 0, ws = !1, Rm = function(e, t, n) {
|
|
5174
5174
|
n === void 0 && (n = {});
|
|
5175
|
-
var r =
|
|
5175
|
+
var r = E6(e, t);
|
|
5176
5176
|
if (!ws && r) {
|
|
5177
5177
|
if (xs > 2) {
|
|
5178
5178
|
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), ws = !0, setTimeout(function() {
|
|
@@ -5180,26 +5180,26 @@ var Vt = function(e) {
|
|
|
5180
5180
|
}, 1);
|
|
5181
5181
|
return;
|
|
5182
5182
|
}
|
|
5183
|
-
xs++,
|
|
5183
|
+
xs++, P6(r.node, n.focusOptions), xs--;
|
|
5184
5184
|
}
|
|
5185
5185
|
};
|
|
5186
5186
|
function vu(e) {
|
|
5187
5187
|
setTimeout(e, 1);
|
|
5188
5188
|
}
|
|
5189
|
-
var
|
|
5189
|
+
var T6 = function() {
|
|
5190
5190
|
return document && document.activeElement === document.body;
|
|
5191
|
-
},
|
|
5192
|
-
return
|
|
5193
|
-
}, Wr = null, Mr = null, Hr = null, Ho = !1,
|
|
5191
|
+
}, k6 = function() {
|
|
5192
|
+
return T6() || m6();
|
|
5193
|
+
}, Wr = null, Mr = null, Hr = null, Ho = !1, C6 = function() {
|
|
5194
5194
|
return !0;
|
|
5195
|
-
},
|
|
5196
|
-
return (Wr.whiteList ||
|
|
5197
|
-
},
|
|
5195
|
+
}, R6 = function(t) {
|
|
5196
|
+
return (Wr.whiteList || C6)(t);
|
|
5197
|
+
}, A6 = function(t, n) {
|
|
5198
5198
|
Hr = {
|
|
5199
5199
|
observerNode: t,
|
|
5200
5200
|
portaledElement: n
|
|
5201
5201
|
};
|
|
5202
|
-
},
|
|
5202
|
+
}, I6 = function(t) {
|
|
5203
5203
|
return Hr && Hr.portaledElement === t;
|
|
5204
5204
|
};
|
|
5205
5205
|
function Rp(e, t, n, r) {
|
|
@@ -5217,29 +5217,29 @@ function Rp(e, t, n, r) {
|
|
|
5217
5217
|
} while ((a += n) !== t);
|
|
5218
5218
|
o && (o.node.tabIndex = 0);
|
|
5219
5219
|
}
|
|
5220
|
-
var
|
|
5220
|
+
var O6 = function(t) {
|
|
5221
5221
|
return t && "current" in t ? t.current : t;
|
|
5222
|
-
},
|
|
5222
|
+
}, M6 = function(t) {
|
|
5223
5223
|
return t ? !!Ho : Ho === "meanwhile";
|
|
5224
|
-
},
|
|
5224
|
+
}, F6 = function e(t, n, r) {
|
|
5225
5225
|
return n && // find host equal to active element and check nested active element
|
|
5226
5226
|
(n.host === t && (!n.activeElement || r.contains(n.activeElement)) || n.parentNode && e(t, n.parentNode, r));
|
|
5227
|
-
},
|
|
5227
|
+
}, L6 = function(t, n) {
|
|
5228
5228
|
return n.some(function(r) {
|
|
5229
|
-
return
|
|
5229
|
+
return F6(t, r, r);
|
|
5230
5230
|
});
|
|
5231
5231
|
}, yi = function() {
|
|
5232
5232
|
var t = !1;
|
|
5233
5233
|
if (Wr) {
|
|
5234
5234
|
var n = Wr, r = n.observed, o = n.persistentFocus, a = n.autoFocus, i = n.shards, l = n.crossFrame, s = n.focusOptions, c = r || Hr && Hr.portaledElement, d = document && document.activeElement;
|
|
5235
5235
|
if (c) {
|
|
5236
|
-
var u = [c].concat(i.map(
|
|
5237
|
-
if ((!d ||
|
|
5236
|
+
var u = [c].concat(i.map(O6).filter(Boolean));
|
|
5237
|
+
if ((!d || R6(d)) && (o || M6(l) || !k6() || !Mr && a) && (c && !// active element is "inside" working area
|
|
5238
5238
|
(Tm(u) || // check for shadow-dom contained elements
|
|
5239
|
-
d &&
|
|
5239
|
+
d && L6(d, u) || I6(d)) && (document && !Mr && d && !a ? (d.blur && d.blur(), document.body.focus()) : (t = Rm(u, Mr, {
|
|
5240
5240
|
focusOptions: s
|
|
5241
5241
|
}), Hr = {})), Ho = !1, Mr = document && document.activeElement), document) {
|
|
5242
|
-
var g = document && document.activeElement, p =
|
|
5242
|
+
var g = document && document.activeElement, p = D6(u), h = p.map(function(b) {
|
|
5243
5243
|
var m = b.node;
|
|
5244
5244
|
return m;
|
|
5245
5245
|
}).indexOf(g);
|
|
@@ -5258,10 +5258,10 @@ var OP = function(t) {
|
|
|
5258
5258
|
yi() && t && (t.stopPropagation(), t.preventDefault());
|
|
5259
5259
|
}, $u = function() {
|
|
5260
5260
|
return vu(yi);
|
|
5261
|
-
},
|
|
5261
|
+
}, N6 = function(t) {
|
|
5262
5262
|
var n = t.target, r = t.currentTarget;
|
|
5263
|
-
r.contains(n) ||
|
|
5264
|
-
},
|
|
5263
|
+
r.contains(n) || A6(r, n);
|
|
5264
|
+
}, z6 = function() {
|
|
5265
5265
|
return null;
|
|
5266
5266
|
};
|
|
5267
5267
|
process.env.NODE_ENV !== "production" && de.node.isRequired;
|
|
@@ -5269,45 +5269,45 @@ var Im = function() {
|
|
|
5269
5269
|
Ho = "just", vu(function() {
|
|
5270
5270
|
Ho = "meanwhile";
|
|
5271
5271
|
});
|
|
5272
|
-
},
|
|
5272
|
+
}, K6 = function() {
|
|
5273
5273
|
document.addEventListener("focusin", Am), document.addEventListener("focusout", $u), window.addEventListener("blur", Im);
|
|
5274
|
-
},
|
|
5274
|
+
}, V6 = function() {
|
|
5275
5275
|
document.removeEventListener("focusin", Am), document.removeEventListener("focusout", $u), window.removeEventListener("blur", Im);
|
|
5276
5276
|
};
|
|
5277
|
-
function
|
|
5277
|
+
function B6(e) {
|
|
5278
5278
|
return e.filter(function(t) {
|
|
5279
5279
|
var n = t.disabled;
|
|
5280
5280
|
return !n;
|
|
5281
5281
|
});
|
|
5282
5282
|
}
|
|
5283
|
-
function
|
|
5283
|
+
function j6(e) {
|
|
5284
5284
|
var t = e.slice(-1)[0];
|
|
5285
|
-
t && !Wr &&
|
|
5285
|
+
t && !Wr && K6();
|
|
5286
5286
|
var n = Wr, r = n && t && t.id === n.id;
|
|
5287
5287
|
Wr = t, n && !r && (n.onDeactivation(), e.filter(function(o) {
|
|
5288
5288
|
var a = o.id;
|
|
5289
5289
|
return a === n.id;
|
|
5290
|
-
}).length || n.returnFocus(!t)), t ? (Mr = null, (!r || n.observed !== t.observed) && t.onActivation(), yi(), vu(yi)) : (
|
|
5290
|
+
}).length || n.returnFocus(!t)), t ? (Mr = null, (!r || n.observed !== t.observed) && t.onActivation(), yi(), vu(yi)) : (V6(), Mr = null);
|
|
5291
5291
|
}
|
|
5292
|
-
pm.assignSyncMedium(
|
|
5292
|
+
pm.assignSyncMedium(N6);
|
|
5293
5293
|
gm.assignMedium($u);
|
|
5294
|
-
|
|
5294
|
+
qP.assignMedium(function(e) {
|
|
5295
5295
|
return e({
|
|
5296
5296
|
moveFocusInside: Rm,
|
|
5297
5297
|
focusInside: Tm
|
|
5298
5298
|
});
|
|
5299
5299
|
});
|
|
5300
|
-
const
|
|
5300
|
+
const U6 = QP(B6, j6)(z6);
|
|
5301
5301
|
var Om = /* @__PURE__ */ J.forwardRef(function(t, n) {
|
|
5302
5302
|
return /* @__PURE__ */ J.createElement(hm, O({
|
|
5303
|
-
sideCar:
|
|
5303
|
+
sideCar: U6,
|
|
5304
5304
|
ref: n
|
|
5305
5305
|
}, t));
|
|
5306
5306
|
}), Mm = hm.propTypes || {};
|
|
5307
5307
|
Mm.sideCar;
|
|
5308
|
-
var
|
|
5309
|
-
Om.propTypes = process.env.NODE_ENV !== "production" ?
|
|
5310
|
-
const
|
|
5308
|
+
var W6 = bl(Mm, ["sideCar"]);
|
|
5309
|
+
Om.propTypes = process.env.NODE_ENV !== "production" ? W6 : {};
|
|
5310
|
+
const H6 = Om;
|
|
5311
5311
|
var $l = {}, yu = {}, Fm = { exports: {} };
|
|
5312
5312
|
/*!
|
|
5313
5313
|
Copyright (c) 2015 Jed Watson.
|
|
@@ -5330,12 +5330,12 @@ Object.defineProperty(Ve, "__esModule", {
|
|
|
5330
5330
|
value: !0
|
|
5331
5331
|
});
|
|
5332
5332
|
Ve.pipe = Ve.listenerOptions = void 0;
|
|
5333
|
-
Ve.preventTouchMove =
|
|
5334
|
-
Ve.allowTouchMove =
|
|
5335
|
-
Ve.preventInertiaScroll =
|
|
5336
|
-
Ve.isTouchDevice =
|
|
5337
|
-
Ve.camelToKebab =
|
|
5338
|
-
Ve.parse =
|
|
5333
|
+
Ve.preventTouchMove = G6;
|
|
5334
|
+
Ve.allowTouchMove = Y6;
|
|
5335
|
+
Ve.preventInertiaScroll = q6;
|
|
5336
|
+
Ve.isTouchDevice = X6;
|
|
5337
|
+
Ve.camelToKebab = J6;
|
|
5338
|
+
Ve.parse = Z6;
|
|
5339
5339
|
Ve.getPadding = eT;
|
|
5340
5340
|
Ve.getWindowHeight = tT;
|
|
5341
5341
|
Ve.getDocumentHeight = nT;
|
|
@@ -5347,27 +5347,27 @@ Ve.listenerOptions = {
|
|
|
5347
5347
|
capture: !1,
|
|
5348
5348
|
passive: !1
|
|
5349
5349
|
};
|
|
5350
|
-
function
|
|
5350
|
+
function G6(e) {
|
|
5351
5351
|
return e.preventDefault(), !1;
|
|
5352
5352
|
}
|
|
5353
|
-
function
|
|
5353
|
+
function Y6(e) {
|
|
5354
5354
|
var t = e.currentTarget;
|
|
5355
5355
|
return t.scrollHeight > t.clientHeight ? (e.stopPropagation(), !0) : (e.preventDefault(), !1);
|
|
5356
5356
|
}
|
|
5357
|
-
function
|
|
5357
|
+
function q6() {
|
|
5358
5358
|
var e = this.scrollTop, t = this.scrollHeight, n = e + this.offsetHeight;
|
|
5359
5359
|
e === 0 ? this.scrollTop = 1 : n === t && (this.scrollTop = e - 1);
|
|
5360
5360
|
}
|
|
5361
|
-
function
|
|
5361
|
+
function X6() {
|
|
5362
5362
|
return dr.canUseDOM ? "ontouchstart" in window || navigator.maxTouchPoints : !1;
|
|
5363
5363
|
}
|
|
5364
|
-
function
|
|
5364
|
+
function J6(e) {
|
|
5365
5365
|
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
5366
5366
|
}
|
|
5367
|
-
function
|
|
5367
|
+
function Z6(e) {
|
|
5368
5368
|
return isNaN(e) ? e : e + "px";
|
|
5369
5369
|
}
|
|
5370
|
-
var
|
|
5370
|
+
var Q6 = function(t, n) {
|
|
5371
5371
|
return function() {
|
|
5372
5372
|
return n(t.apply(void 0, arguments));
|
|
5373
5373
|
};
|
|
@@ -5375,7 +5375,7 @@ var QP = function(t, n) {
|
|
|
5375
5375
|
Ve.pipe = function() {
|
|
5376
5376
|
for (var t = arguments.length, n = Array(t), r = 0; r < t; r++)
|
|
5377
5377
|
n[r] = arguments[r];
|
|
5378
|
-
return n.reduce(
|
|
5378
|
+
return n.reduce(Q6);
|
|
5379
5379
|
};
|
|
5380
5380
|
function eT() {
|
|
5381
5381
|
if (!dr.canUseDOM)
|
|
@@ -6271,7 +6271,7 @@ const n3 = Ym, Eu = {
|
|
|
6271
6271
|
${VT}
|
|
6272
6272
|
`, o3 = M("div")`
|
|
6273
6273
|
${BT}
|
|
6274
|
-
`, a3 = M(
|
|
6274
|
+
`, a3 = M(H6)`
|
|
6275
6275
|
${jT}
|
|
6276
6276
|
`, i3 = M(me)`
|
|
6277
6277
|
${UT}
|
|
@@ -6528,9 +6528,9 @@ const Jm = `
|
|
|
6528
6528
|
`, EV = ({
|
|
6529
6529
|
children: e = "×",
|
|
6530
6530
|
...t
|
|
6531
|
-
}) => /* @__PURE__ */ w(f3, { ...t, children: e }), DV = nm, PV = rm, TV = hl, p3 = M(
|
|
6531
|
+
}) => /* @__PURE__ */ w(f3, { ...t, children: e }), DV = nm, PV = rm, TV = hl, p3 = M(FP)`
|
|
6532
6532
|
${qm}
|
|
6533
|
-
`, g3 = M(
|
|
6533
|
+
`, g3 = M(LP)`
|
|
6534
6534
|
${Xm}
|
|
6535
6535
|
width: ${(e) => Eu[e.size ?? "medium"]};
|
|
6536
6536
|
`;
|
|
@@ -6539,16 +6539,16 @@ function kV({
|
|
|
6539
6539
|
size: t,
|
|
6540
6540
|
...n
|
|
6541
6541
|
}) {
|
|
6542
|
-
return /* @__PURE__ */ oe(
|
|
6542
|
+
return /* @__PURE__ */ oe(MP, { children: [
|
|
6543
6543
|
/* @__PURE__ */ w(p3, {}),
|
|
6544
6544
|
/* @__PURE__ */ w(g3, { size: t, ...n, children: e })
|
|
6545
6545
|
] });
|
|
6546
6546
|
}
|
|
6547
|
-
const CV = M(
|
|
6547
|
+
const CV = M(zP)`
|
|
6548
6548
|
${Jm}
|
|
6549
|
-
`, RV = M(
|
|
6549
|
+
`, RV = M(KP)`
|
|
6550
6550
|
${Zm}
|
|
6551
|
-
`, AV = u3, IV =
|
|
6551
|
+
`, AV = u3, IV = IP, OV = OP, MV = NP, FV = dm, h3 = M(dm)`
|
|
6552
6552
|
${Qm}
|
|
6553
6553
|
`, LV = ({
|
|
6554
6554
|
children: e = "×",
|
|
@@ -7351,48 +7351,48 @@ function oo(e) {
|
|
|
7351
7351
|
target: null,
|
|
7352
7352
|
isOverTarget: !1,
|
|
7353
7353
|
pointerType: null
|
|
7354
|
-
}), { addGlobalListener: m, removeAllGlobalListeners: y } = Cu(), v = Me(($,
|
|
7354
|
+
}), { addGlobalListener: m, removeAllGlobalListeners: y } = Cu(), v = Me(($, T) => {
|
|
7355
7355
|
let F = b.current;
|
|
7356
7356
|
if (i || F.didFirePressStart)
|
|
7357
7357
|
return !1;
|
|
7358
7358
|
let x = !0;
|
|
7359
7359
|
if (F.isTriggeringEvent = !0, r) {
|
|
7360
|
-
let z = new Ga("pressstart",
|
|
7360
|
+
let z = new Ga("pressstart", T, $);
|
|
7361
7361
|
r(z), x = z.shouldStopPropagation;
|
|
7362
7362
|
}
|
|
7363
7363
|
return n && n(!0), F.isTriggeringEvent = !1, F.didFirePressStart = !0, h(!0), x;
|
|
7364
|
-
}), _ = Me(($,
|
|
7364
|
+
}), _ = Me(($, T, F = !0) => {
|
|
7365
7365
|
let x = b.current;
|
|
7366
7366
|
if (!x.didFirePressStart)
|
|
7367
7367
|
return !1;
|
|
7368
7368
|
x.ignoreClickAfterPress = !0, x.didFirePressStart = !1, x.isTriggeringEvent = !0;
|
|
7369
7369
|
let z = !0;
|
|
7370
7370
|
if (o) {
|
|
7371
|
-
let R = new Ga("pressend",
|
|
7371
|
+
let R = new Ga("pressend", T, $);
|
|
7372
7372
|
o(R), z = R.shouldStopPropagation;
|
|
7373
7373
|
}
|
|
7374
7374
|
if (n && n(!1), h(!1), t && F && !i) {
|
|
7375
|
-
let R = new Ga("press",
|
|
7375
|
+
let R = new Ga("press", T, $);
|
|
7376
7376
|
t(R), z && (z = R.shouldStopPropagation);
|
|
7377
7377
|
}
|
|
7378
7378
|
return x.isTriggeringEvent = !1, z;
|
|
7379
|
-
}), S = Me(($,
|
|
7379
|
+
}), S = Me(($, T) => {
|
|
7380
7380
|
let F = b.current;
|
|
7381
7381
|
if (i)
|
|
7382
7382
|
return !1;
|
|
7383
7383
|
if (a) {
|
|
7384
7384
|
F.isTriggeringEvent = !0;
|
|
7385
|
-
let x = new Ga("pressup",
|
|
7385
|
+
let x = new Ga("pressup", T, $);
|
|
7386
7386
|
return a(x), F.isTriggeringEvent = !1, x.shouldStopPropagation;
|
|
7387
7387
|
}
|
|
7388
7388
|
return !0;
|
|
7389
7389
|
}), P = Me(($) => {
|
|
7390
|
-
let
|
|
7391
|
-
|
|
7390
|
+
let T = b.current;
|
|
7391
|
+
T.isPressed && T.target && (T.isOverTarget && T.pointerType != null && _(Yt(T.target, $), T.pointerType, !1), T.isPressed = !1, T.isOverTarget = !1, T.activePointerId = null, T.pointerType = null, y(), d || Wa(T.target));
|
|
7392
7392
|
}), E = Me(($) => {
|
|
7393
7393
|
c && P($);
|
|
7394
|
-
}),
|
|
7395
|
-
let $ = b.current,
|
|
7394
|
+
}), I = ce(() => {
|
|
7395
|
+
let $ = b.current, T = {
|
|
7396
7396
|
onKeyDown(x) {
|
|
7397
7397
|
if (Ds(x.nativeEvent, x.currentTarget) && x.currentTarget.contains(x.target)) {
|
|
7398
7398
|
var z;
|
|
@@ -7400,8 +7400,8 @@ function oo(e) {
|
|
|
7400
7400
|
let R = !0;
|
|
7401
7401
|
if (!$.isPressed && !x.repeat) {
|
|
7402
7402
|
$.target = x.currentTarget, $.isPressed = !0, R = v(x, "keyboard");
|
|
7403
|
-
let D = x.currentTarget, U = (
|
|
7404
|
-
Ds(
|
|
7403
|
+
let D = x.currentTarget, U = (A) => {
|
|
7404
|
+
Ds(A, D) && !A.repeat && D.contains(A.target) && $.target && S(Yt($.target, A), "keyboard");
|
|
7405
7405
|
};
|
|
7406
7406
|
m(Ae(x.currentTarget), "keyup", cn(U, F), !0);
|
|
7407
7407
|
}
|
|
@@ -7431,12 +7431,12 @@ function oo(e) {
|
|
|
7431
7431
|
var D;
|
|
7432
7432
|
let U = $.metaKeyEvents;
|
|
7433
7433
|
$.metaKeyEvents = void 0;
|
|
7434
|
-
for (let
|
|
7435
|
-
(D = $.target) === null || D === void 0 || D.dispatchEvent(new KeyboardEvent("keyup",
|
|
7434
|
+
for (let A of U.values())
|
|
7435
|
+
(D = $.target) === null || D === void 0 || D.dispatchEvent(new KeyboardEvent("keyup", A));
|
|
7436
7436
|
}
|
|
7437
7437
|
};
|
|
7438
7438
|
if (typeof PointerEvent < "u") {
|
|
7439
|
-
|
|
7439
|
+
T.onPointerDown = (D) => {
|
|
7440
7440
|
if (D.button !== 0 || !D.currentTarget.contains(D.target))
|
|
7441
7441
|
return;
|
|
7442
7442
|
if (j3(D.nativeEvent)) {
|
|
@@ -7446,9 +7446,9 @@ function oo(e) {
|
|
|
7446
7446
|
Ps(D.currentTarget) && D.preventDefault(), $.pointerType = D.pointerType;
|
|
7447
7447
|
let U = !0;
|
|
7448
7448
|
$.isPressed || ($.isPressed = !0, $.isOverTarget = !0, $.activePointerId = D.pointerId, $.target = D.currentTarget, !i && !s && It(D.currentTarget), d || jp($.target), U = v(D, $.pointerType), m(Ae(D.currentTarget), "pointermove", x, !1), m(Ae(D.currentTarget), "pointerup", z, !1), m(Ae(D.currentTarget), "pointercancel", R, !1)), U && D.stopPropagation();
|
|
7449
|
-
},
|
|
7449
|
+
}, T.onMouseDown = (D) => {
|
|
7450
7450
|
D.currentTarget.contains(D.target) && D.button === 0 && (Ps(D.currentTarget) && D.preventDefault(), D.stopPropagation());
|
|
7451
|
-
},
|
|
7451
|
+
}, T.onPointerUp = (D) => {
|
|
7452
7452
|
!D.currentTarget.contains(D.target) || $.pointerType === "virtual" || D.button === 0 && Er(D, D.currentTarget) && S(D, $.pointerType || D.pointerType);
|
|
7453
7453
|
};
|
|
7454
7454
|
let x = (D) => {
|
|
@@ -7458,11 +7458,11 @@ function oo(e) {
|
|
|
7458
7458
|
}, R = (D) => {
|
|
7459
7459
|
P(D);
|
|
7460
7460
|
};
|
|
7461
|
-
|
|
7461
|
+
T.onDragStart = (D) => {
|
|
7462
7462
|
D.currentTarget.contains(D.target) && P(D);
|
|
7463
7463
|
};
|
|
7464
7464
|
} else {
|
|
7465
|
-
|
|
7465
|
+
T.onMouseDown = (R) => {
|
|
7466
7466
|
if (R.button !== 0 || !R.currentTarget.contains(R.target))
|
|
7467
7467
|
return;
|
|
7468
7468
|
if (Ps(R.currentTarget) && R.preventDefault(), $.ignoreEmulatedMouseEvents) {
|
|
@@ -7470,17 +7470,17 @@ function oo(e) {
|
|
|
7470
7470
|
return;
|
|
7471
7471
|
}
|
|
7472
7472
|
$.isPressed = !0, $.isOverTarget = !0, $.target = R.currentTarget, $.pointerType = Kc(R.nativeEvent) ? "virtual" : "mouse", !i && !s && It(R.currentTarget), v(R, $.pointerType) && R.stopPropagation(), m(Ae(R.currentTarget), "mouseup", x, !1);
|
|
7473
|
-
},
|
|
7473
|
+
}, T.onMouseEnter = (R) => {
|
|
7474
7474
|
if (!R.currentTarget.contains(R.target))
|
|
7475
7475
|
return;
|
|
7476
7476
|
let D = !0;
|
|
7477
7477
|
$.isPressed && !$.ignoreEmulatedMouseEvents && $.pointerType != null && ($.isOverTarget = !0, D = v(R, $.pointerType)), D && R.stopPropagation();
|
|
7478
|
-
},
|
|
7478
|
+
}, T.onMouseLeave = (R) => {
|
|
7479
7479
|
if (!R.currentTarget.contains(R.target))
|
|
7480
7480
|
return;
|
|
7481
7481
|
let D = !0;
|
|
7482
7482
|
$.isPressed && !$.ignoreEmulatedMouseEvents && $.pointerType != null && ($.isOverTarget = !1, D = _(R, $.pointerType, !1), E(R)), D && R.stopPropagation();
|
|
7483
|
-
},
|
|
7483
|
+
}, T.onMouseUp = (R) => {
|
|
7484
7484
|
R.currentTarget.contains(R.target) && !$.ignoreEmulatedMouseEvents && R.button === 0 && S(R, $.pointerType || "mouse");
|
|
7485
7485
|
};
|
|
7486
7486
|
let x = (R) => {
|
|
@@ -7492,14 +7492,14 @@ function oo(e) {
|
|
|
7492
7492
|
$.target && Er(R, $.target) && $.pointerType != null ? _(Yt($.target, R), $.pointerType) : $.target && $.isOverTarget && $.pointerType != null && _(Yt($.target, R), $.pointerType, !1), $.isOverTarget = !1;
|
|
7493
7493
|
}
|
|
7494
7494
|
};
|
|
7495
|
-
|
|
7495
|
+
T.onTouchStart = (R) => {
|
|
7496
7496
|
if (!R.currentTarget.contains(R.target))
|
|
7497
7497
|
return;
|
|
7498
7498
|
let D = X3(R.nativeEvent);
|
|
7499
7499
|
if (!D)
|
|
7500
7500
|
return;
|
|
7501
7501
|
$.activePointerId = D.identifier, $.ignoreEmulatedMouseEvents = !0, $.isOverTarget = !0, $.isPressed = !0, $.target = R.currentTarget, $.pointerType = "touch", !i && !s && It(R.currentTarget), d || jp($.target), v(wn($.target, R), $.pointerType) && R.stopPropagation(), m(wt(R.currentTarget), "scroll", z, !0);
|
|
7502
|
-
},
|
|
7502
|
+
}, T.onTouchMove = (R) => {
|
|
7503
7503
|
if (!R.currentTarget.contains(R.target))
|
|
7504
7504
|
return;
|
|
7505
7505
|
if (!$.isPressed) {
|
|
@@ -7508,7 +7508,7 @@ function oo(e) {
|
|
|
7508
7508
|
}
|
|
7509
7509
|
let D = Hp(R.nativeEvent, $.activePointerId), U = !0;
|
|
7510
7510
|
D && Er(D, R.currentTarget) ? !$.isOverTarget && $.pointerType != null && ($.isOverTarget = !0, U = v(wn($.target, R), $.pointerType)) : $.isOverTarget && $.pointerType != null && ($.isOverTarget = !1, U = _(wn($.target, R), $.pointerType, !1), E(wn($.target, R))), U && R.stopPropagation();
|
|
7511
|
-
},
|
|
7511
|
+
}, T.onTouchEnd = (R) => {
|
|
7512
7512
|
if (!R.currentTarget.contains(R.target))
|
|
7513
7513
|
return;
|
|
7514
7514
|
if (!$.isPressed) {
|
|
@@ -7517,7 +7517,7 @@ function oo(e) {
|
|
|
7517
7517
|
}
|
|
7518
7518
|
let D = Hp(R.nativeEvent, $.activePointerId), U = !0;
|
|
7519
7519
|
D && Er(D, R.currentTarget) && $.pointerType != null ? (S(wn($.target, R), $.pointerType), U = _(wn($.target, R), $.pointerType)) : $.isOverTarget && $.pointerType != null && (U = _(wn($.target, R), $.pointerType, !1)), U && R.stopPropagation(), $.isPressed = !1, $.activePointerId = null, $.isOverTarget = !1, $.ignoreEmulatedMouseEvents = !0, $.target && !d && Wa($.target), y();
|
|
7520
|
-
},
|
|
7520
|
+
}, T.onTouchCancel = (R) => {
|
|
7521
7521
|
R.currentTarget.contains(R.target) && (R.stopPropagation(), $.isPressed && P(wn($.target, R)));
|
|
7522
7522
|
};
|
|
7523
7523
|
let z = (R) => {
|
|
@@ -7529,11 +7529,11 @@ function oo(e) {
|
|
|
7529
7529
|
altKey: !1
|
|
7530
7530
|
});
|
|
7531
7531
|
};
|
|
7532
|
-
|
|
7532
|
+
T.onDragStart = (R) => {
|
|
7533
7533
|
R.currentTarget.contains(R.target) && P(R);
|
|
7534
7534
|
};
|
|
7535
7535
|
}
|
|
7536
|
-
return
|
|
7536
|
+
return T;
|
|
7537
7537
|
}, [
|
|
7538
7538
|
m,
|
|
7539
7539
|
i,
|
|
@@ -7553,7 +7553,7 @@ function oo(e) {
|
|
|
7553
7553
|
d
|
|
7554
7554
|
]), {
|
|
7555
7555
|
isPressed: l || p,
|
|
7556
|
-
pressProps: _e(g,
|
|
7556
|
+
pressProps: _e(g, I)
|
|
7557
7557
|
};
|
|
7558
7558
|
}
|
|
7559
7559
|
function Ou(e) {
|
|
@@ -9559,9 +9559,9 @@ const ks = "rovingFocusGroup.onEntryFocus", mk = {
|
|
|
9559
9559
|
onChange: s
|
|
9560
9560
|
}), [m, y] = ee(!1), v = Xe(c), _ = A0(n), S = K(!1), [P, E] = ee(0);
|
|
9561
9561
|
return q(() => {
|
|
9562
|
-
const
|
|
9563
|
-
if (
|
|
9564
|
-
return
|
|
9562
|
+
const I = u.current;
|
|
9563
|
+
if (I)
|
|
9564
|
+
return I.addEventListener(ks, v), () => I.removeEventListener(ks, v);
|
|
9565
9565
|
}, [
|
|
9566
9566
|
v
|
|
9567
9567
|
]), /* @__PURE__ */ C(yk, {
|
|
@@ -9571,7 +9571,7 @@ const ks = "rovingFocusGroup.onEntryFocus", mk = {
|
|
|
9571
9571
|
loop: o,
|
|
9572
9572
|
currentTabStopId: h,
|
|
9573
9573
|
onItemFocus: re(
|
|
9574
|
-
(
|
|
9574
|
+
(I) => b(I),
|
|
9575
9575
|
[
|
|
9576
9576
|
b
|
|
9577
9577
|
]
|
|
@@ -9582,13 +9582,13 @@ const ks = "rovingFocusGroup.onEntryFocus", mk = {
|
|
|
9582
9582
|
),
|
|
9583
9583
|
onFocusableItemAdd: re(
|
|
9584
9584
|
() => E(
|
|
9585
|
-
(
|
|
9585
|
+
(I) => I + 1
|
|
9586
9586
|
),
|
|
9587
9587
|
[]
|
|
9588
9588
|
),
|
|
9589
9589
|
onFocusableItemRemove: re(
|
|
9590
9590
|
() => E(
|
|
9591
|
-
(
|
|
9591
|
+
(I) => I - 1
|
|
9592
9592
|
),
|
|
9593
9593
|
[]
|
|
9594
9594
|
)
|
|
@@ -9604,11 +9604,11 @@ const ks = "rovingFocusGroup.onEntryFocus", mk = {
|
|
|
9604
9604
|
onMouseDown: se(e.onMouseDown, () => {
|
|
9605
9605
|
S.current = !0;
|
|
9606
9606
|
}),
|
|
9607
|
-
onFocus: se(e.onFocus, (
|
|
9607
|
+
onFocus: se(e.onFocus, (I) => {
|
|
9608
9608
|
const $ = !S.current;
|
|
9609
|
-
if (
|
|
9610
|
-
const
|
|
9611
|
-
if (
|
|
9609
|
+
if (I.target === I.currentTarget && $ && !m) {
|
|
9610
|
+
const T = new CustomEvent(ks, mk);
|
|
9611
|
+
if (I.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
|
|
9612
9612
|
const F = _().filter(
|
|
9613
9613
|
(U) => U.focusable
|
|
9614
9614
|
), x = F.find(
|
|
@@ -11923,7 +11923,7 @@ function aC(e, t, n, r) {
|
|
|
11923
11923
|
...new Intl.NumberFormat(n.locale, {
|
|
11924
11924
|
useGrouping: !1
|
|
11925
11925
|
}).format(9876543210)
|
|
11926
|
-
].reverse(),
|
|
11926
|
+
].reverse(), I = new Map(E.map((F, x) => [
|
|
11927
11927
|
F,
|
|
11928
11928
|
x
|
|
11929
11929
|
])), $ = new RegExp(`[${E.join("")}]`, "g");
|
|
@@ -11934,7 +11934,7 @@ function aC(e, t, n, r) {
|
|
|
11934
11934
|
group: y,
|
|
11935
11935
|
literals: P,
|
|
11936
11936
|
numeral: $,
|
|
11937
|
-
index: (F) => String(
|
|
11937
|
+
index: (F) => String(I.get(F))
|
|
11938
11938
|
};
|
|
11939
11939
|
}
|
|
11940
11940
|
function Ja(e, t, n) {
|
|
@@ -12822,7 +12822,7 @@ function uC(e, t, n) {
|
|
|
12822
12822
|
i
|
|
12823
12823
|
]), y = "";
|
|
12824
12824
|
"anchorDate" in t && d && !t.isReadOnly && g && (t.anchorDate ? y = l.format("finishRangeSelectionPrompt") : y = l.format("startRangeSelectionPrompt"));
|
|
12825
|
-
let v = Au(y), _ = K(!1), S = K(!1), P = K(null), { pressProps: E, isPressed:
|
|
12825
|
+
let v = Au(y), _ = K(!1), S = K(!1), P = K(null), { pressProps: E, isPressed: I } = oo({
|
|
12826
12826
|
// When dragging to select a range, we don't want dragging over the original anchor
|
|
12827
12827
|
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
|
|
12828
12828
|
shouldCancelOnPointerExit: "anchorDate" in t && !!t.anchorDate,
|
|
@@ -12881,12 +12881,12 @@ function uC(e, t, n) {
|
|
|
12881
12881
|
d,
|
|
12882
12882
|
n
|
|
12883
12883
|
]);
|
|
12884
|
-
let
|
|
12884
|
+
let T = ir({
|
|
12885
12885
|
day: "numeric",
|
|
12886
12886
|
timeZone: t.timeZone,
|
|
12887
12887
|
calendar: r.calendar.identifier
|
|
12888
|
-
}), F = ce(() =>
|
|
12889
|
-
|
|
12888
|
+
}), F = ce(() => T.formatToParts(h).find((x) => x.type === "day").value, [
|
|
12889
|
+
T,
|
|
12890
12890
|
h
|
|
12891
12891
|
]);
|
|
12892
12892
|
return {
|
|
@@ -12919,7 +12919,7 @@ function uC(e, t, n) {
|
|
|
12919
12919
|
x.preventDefault();
|
|
12920
12920
|
}
|
|
12921
12921
|
}),
|
|
12922
|
-
isPressed:
|
|
12922
|
+
isPressed: I,
|
|
12923
12923
|
isFocused: d,
|
|
12924
12924
|
isSelected: c,
|
|
12925
12925
|
isDisabled: o,
|
|
@@ -13057,14 +13057,14 @@ function bC({
|
|
|
13057
13057
|
currentMonth: o,
|
|
13058
13058
|
single: a
|
|
13059
13059
|
}) {
|
|
13060
|
-
const i = K(null), { cellProps: l, buttonProps: s, isSelected: c, isDisabled: d, isUnavailable: u, formattedDate: g } = uC({ date: t, isDisabled: r }, e, i), p = !Uk(o, t), h = e.highlightedRange ? Ke(t, e.highlightedRange.start) : c, b = e.highlightedRange ? Ke(t, e.highlightedRange.end) : c, { locale: m } = gt(), y = Al(t, m), v = c && (h || y === 0 || t.day === 1), _ = c && (b || y === 6 || t.day === t.calendar.getDaysInMonth(t)), S = [v && "left", _ && "right"].filter(Boolean).join(" "), { focusProps: P, isFocusVisible: E } = Pl(),
|
|
13060
|
+
const i = K(null), { cellProps: l, buttonProps: s, isSelected: c, isDisabled: d, isUnavailable: u, formattedDate: g } = uC({ date: t, isDisabled: r }, e, i), p = !Uk(o, t), h = e.highlightedRange ? Ke(t, e.highlightedRange.start) : c, b = e.highlightedRange ? Ke(t, e.highlightedRange.end) : c, { locale: m } = gt(), y = Al(t, m), v = c && (h || y === 0 || t.day === 1), _ = c && (b || y === 6 || t.day === t.calendar.getDaysInMonth(t)), S = [v && "left", _ && "right"].filter(Boolean).join(" "), { focusProps: P, isFocusVisible: E } = Pl(), I = Ke(t, n), $ = hC({
|
|
13061
13061
|
isUnavailable: u,
|
|
13062
13062
|
isDisabled: d,
|
|
13063
13063
|
isSelected: c,
|
|
13064
13064
|
isSelectionStart: h,
|
|
13065
13065
|
isSelectionEnd: b,
|
|
13066
13066
|
isFocusVisible: E,
|
|
13067
|
-
isToday:
|
|
13067
|
+
isToday: I
|
|
13068
13068
|
});
|
|
13069
13069
|
return /* @__PURE__ */ w(fC, { ...l, children: /* @__PURE__ */ w(
|
|
13070
13070
|
pC,
|
|
@@ -13274,14 +13274,14 @@ const ld = {
|
|
|
13274
13274
|
autoFocus: c
|
|
13275
13275
|
},
|
|
13276
13276
|
n
|
|
13277
|
-
), { isFocusVisible: y, focusProps: v } = Pl({ autoFocus: c }), _ = C0({ isFocusVisible: y, isPressed: m }), S = xC[a], P = Jv[i], E = ld[o],
|
|
13277
|
+
), { isFocusVisible: y, focusProps: v } = Pl({ autoFocus: c }), _ = C0({ isFocusVisible: y, isPressed: m }), S = xC[a], P = Jv[i], E = ld[o], I = _e(v, g, b, {
|
|
13278
13278
|
"data-state": _
|
|
13279
13279
|
});
|
|
13280
13280
|
return /* @__PURE__ */ w(
|
|
13281
13281
|
S,
|
|
13282
13282
|
{
|
|
13283
13283
|
ref: n,
|
|
13284
|
-
...
|
|
13284
|
+
...I,
|
|
13285
13285
|
style: {
|
|
13286
13286
|
"--icon-button-size": E,
|
|
13287
13287
|
"--icon-button-border-radius": P,
|
|
@@ -13426,28 +13426,28 @@ function Qv(e) {
|
|
|
13426
13426
|
default:
|
|
13427
13427
|
return sd(v, a, r, i, l);
|
|
13428
13428
|
}
|
|
13429
|
-
}), [E,
|
|
13430
|
-
let
|
|
13429
|
+
}), [E, I] = ee(e.autoFocus || !1), $ = ce(() => {
|
|
13430
|
+
let A = {
|
|
13431
13431
|
...a
|
|
13432
13432
|
};
|
|
13433
|
-
return
|
|
13433
|
+
return A.days ? A.days-- : A.days = -1, S.add(A);
|
|
13434
13434
|
}, [
|
|
13435
13435
|
S,
|
|
13436
13436
|
a
|
|
13437
|
-
]), [
|
|
13438
|
-
if (u.identifier !==
|
|
13439
|
-
let
|
|
13440
|
-
P(sd(
|
|
13437
|
+
]), [T, F] = ee(u.identifier);
|
|
13438
|
+
if (u.identifier !== T) {
|
|
13439
|
+
let A = Ue(v, u);
|
|
13440
|
+
P(sd(A, a, r, i, l)), _(A), F(u.identifier);
|
|
13441
13441
|
}
|
|
13442
13442
|
Jr(v, i, l) ? _(Dn(v, i, l)) : v.compare(S) < 0 ? P(cd(v, a, r, i, l)) : v.compare($) > 0 && P(er(v, a, r, i, l));
|
|
13443
|
-
function x(
|
|
13444
|
-
|
|
13443
|
+
function x(A) {
|
|
13444
|
+
A = Dn(A, i, l), _(A);
|
|
13445
13445
|
}
|
|
13446
|
-
function z(
|
|
13446
|
+
function z(A) {
|
|
13447
13447
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
13448
|
-
if (
|
|
13448
|
+
if (A = Dn(A, i, l), A = Zv(A, S, c), !A)
|
|
13449
13449
|
return;
|
|
13450
|
-
|
|
13450
|
+
A = Ue(A, (g == null ? void 0 : g.calendar) || new pt()), g && "hour" in g ? p(g.set(A)) : p(A);
|
|
13451
13451
|
}
|
|
13452
13452
|
}
|
|
13453
13453
|
let R = ce(() => h ? c && c(h) ? !0 : Jr(h, i, l) : !1, [
|
|
@@ -13473,8 +13473,8 @@ function Qv(e) {
|
|
|
13473
13473
|
focusedDate: v,
|
|
13474
13474
|
timeZone: b,
|
|
13475
13475
|
validationState: D,
|
|
13476
|
-
setFocusedDate(
|
|
13477
|
-
x(
|
|
13476
|
+
setFocusedDate(A) {
|
|
13477
|
+
x(A), I(!0);
|
|
13478
13478
|
},
|
|
13479
13479
|
focusNextDay() {
|
|
13480
13480
|
x(v.add({
|
|
@@ -13497,12 +13497,12 @@ function Qv(e) {
|
|
|
13497
13497
|
}));
|
|
13498
13498
|
},
|
|
13499
13499
|
focusNextPage() {
|
|
13500
|
-
let
|
|
13501
|
-
_(Dn(v.add(U), i, l)), P(er(ra(v,
|
|
13500
|
+
let A = S.add(U);
|
|
13501
|
+
_(Dn(v.add(U), i, l)), P(er(ra(v, A, U, r, i, l), U, r));
|
|
13502
13502
|
},
|
|
13503
13503
|
focusPreviousPage() {
|
|
13504
|
-
let
|
|
13505
|
-
_(Dn(v.subtract(U), i, l)), P(er(ra(v,
|
|
13504
|
+
let A = S.subtract(U);
|
|
13505
|
+
_(Dn(v.subtract(U), i, l)), P(er(ra(v, A, U, r, i, l), U, r));
|
|
13506
13506
|
},
|
|
13507
13507
|
focusSectionStart() {
|
|
13508
13508
|
a.days ? x(S) : a.weeks ? x(Qo(v, r)) : (a.months || a.years) && x(or(v));
|
|
@@ -13510,8 +13510,8 @@ function Qv(e) {
|
|
|
13510
13510
|
focusSectionEnd() {
|
|
13511
13511
|
a.days ? x($) : a.weeks ? x(Yk(v, r)) : (a.months || a.years) && x(Ai(v));
|
|
13512
13512
|
},
|
|
13513
|
-
focusNextSection(
|
|
13514
|
-
if (!
|
|
13513
|
+
focusNextSection(A) {
|
|
13514
|
+
if (!A && !a.days) {
|
|
13515
13515
|
x(v.add(zs(a)));
|
|
13516
13516
|
return;
|
|
13517
13517
|
}
|
|
@@ -13521,8 +13521,8 @@ function Qv(e) {
|
|
|
13521
13521
|
years: 1
|
|
13522
13522
|
}));
|
|
13523
13523
|
},
|
|
13524
|
-
focusPreviousSection(
|
|
13525
|
-
if (!
|
|
13524
|
+
focusPreviousSection(A) {
|
|
13525
|
+
if (!A && !a.days) {
|
|
13526
13526
|
x(v.subtract(zs(a)));
|
|
13527
13527
|
return;
|
|
13528
13528
|
}
|
|
@@ -13535,41 +13535,41 @@ function Qv(e) {
|
|
|
13535
13535
|
selectFocusedDate() {
|
|
13536
13536
|
z(v);
|
|
13537
13537
|
},
|
|
13538
|
-
selectDate(
|
|
13539
|
-
z(
|
|
13538
|
+
selectDate(A) {
|
|
13539
|
+
z(A);
|
|
13540
13540
|
},
|
|
13541
13541
|
isFocused: E,
|
|
13542
|
-
setFocused:
|
|
13543
|
-
isInvalid(
|
|
13544
|
-
return Jr(
|
|
13542
|
+
setFocused: I,
|
|
13543
|
+
isInvalid(A) {
|
|
13544
|
+
return Jr(A, i, l);
|
|
13545
13545
|
},
|
|
13546
|
-
isSelected(
|
|
13547
|
-
return h != null && Ke(
|
|
13546
|
+
isSelected(A) {
|
|
13547
|
+
return h != null && Ke(A, h) && !this.isCellDisabled(A) && !this.isCellUnavailable(A);
|
|
13548
13548
|
},
|
|
13549
|
-
isCellFocused(
|
|
13550
|
-
return E && v && Ke(
|
|
13549
|
+
isCellFocused(A) {
|
|
13550
|
+
return E && v && Ke(A, v);
|
|
13551
13551
|
},
|
|
13552
|
-
isCellDisabled(
|
|
13553
|
-
return e.isDisabled ||
|
|
13552
|
+
isCellDisabled(A) {
|
|
13553
|
+
return e.isDisabled || A.compare(S) < 0 || A.compare($) > 0 || this.isInvalid(A, i, l);
|
|
13554
13554
|
},
|
|
13555
|
-
isCellUnavailable(
|
|
13556
|
-
return e.isDateUnavailable && e.isDateUnavailable(
|
|
13555
|
+
isCellUnavailable(A) {
|
|
13556
|
+
return e.isDateUnavailable && e.isDateUnavailable(A);
|
|
13557
13557
|
},
|
|
13558
13558
|
isPreviousVisibleRangeInvalid() {
|
|
13559
|
-
let
|
|
13559
|
+
let A = S.subtract({
|
|
13560
13560
|
days: 1
|
|
13561
13561
|
});
|
|
13562
|
-
return Ke(
|
|
13562
|
+
return Ke(A, S) || this.isInvalid(A, i, l);
|
|
13563
13563
|
},
|
|
13564
13564
|
isNextVisibleRangeInvalid() {
|
|
13565
|
-
let
|
|
13565
|
+
let A = $.add({
|
|
13566
13566
|
days: 1
|
|
13567
13567
|
});
|
|
13568
|
-
return Ke(
|
|
13568
|
+
return Ke(A, $) || this.isInvalid(A, i, l);
|
|
13569
13569
|
},
|
|
13570
|
-
getDatesInWeek(
|
|
13571
|
-
let V =
|
|
13572
|
-
weeks:
|
|
13570
|
+
getDatesInWeek(A, te = S) {
|
|
13571
|
+
let V = te.add({
|
|
13572
|
+
weeks: A
|
|
13573
13573
|
}), X = [];
|
|
13574
13574
|
V = Qo(V, r);
|
|
13575
13575
|
let B = Al(V, r);
|
|
@@ -13603,10 +13603,10 @@ function EC(e) {
|
|
|
13603
13603
|
months: 1
|
|
13604
13604
|
}, minValue: l, maxValue: s, ...c } = e, [d, u] = Mt(t, n || null, r), [g, p] = ee(null), h = "center";
|
|
13605
13605
|
if (d && d.start && d.end) {
|
|
13606
|
-
let
|
|
13606
|
+
let te = sd(Et(d.start), i, a, l, s).add(i).subtract({
|
|
13607
13607
|
days: 1
|
|
13608
13608
|
});
|
|
13609
|
-
d.end.compare(
|
|
13609
|
+
d.end.compare(te) > 0 && (h = "start");
|
|
13610
13610
|
}
|
|
13611
13611
|
let b = K(null), [m, y] = ee(null), v = ce(() => Wu(l, m == null ? void 0 : m.start), [
|
|
13612
13612
|
l,
|
|
@@ -13623,24 +13623,24 @@ function EC(e) {
|
|
|
13623
13623
|
minValue: v,
|
|
13624
13624
|
maxValue: _,
|
|
13625
13625
|
selectionAlignment: h
|
|
13626
|
-
}), P = (
|
|
13627
|
-
|
|
13628
|
-
start: Cg(
|
|
13629
|
-
end: Cg(
|
|
13626
|
+
}), P = (A) => {
|
|
13627
|
+
A && e.isDateUnavailable && !e.allowsNonContiguousRanges ? (b.current = {
|
|
13628
|
+
start: Cg(A, S, -1),
|
|
13629
|
+
end: Cg(A, S, 1)
|
|
13630
13630
|
}, y(b.current)) : (b.current = null, y(null));
|
|
13631
|
-
}, [E,
|
|
13632
|
-
(!qc(S.visibleRange.start, E.start) || !qc(S.visibleRange.end, E.end)) && (P(g),
|
|
13633
|
-
let $ = (
|
|
13634
|
-
|
|
13635
|
-
},
|
|
13636
|
-
if (!e.isReadOnly && (
|
|
13631
|
+
}, [E, I] = ee(S.visibleRange);
|
|
13632
|
+
(!qc(S.visibleRange.start, E.start) || !qc(S.visibleRange.end, E.end)) && (P(g), I(S.visibleRange));
|
|
13633
|
+
let $ = (A) => {
|
|
13634
|
+
A ? (p(A), P(A)) : (p(null), P(null));
|
|
13635
|
+
}, T = g ? Ks(g, S.focusedDate) : d && Ks(d.start, d.end), F = (A) => {
|
|
13636
|
+
if (!e.isReadOnly && (A = Dn(A, v, _), A = Zv(A, S.visibleRange.start, e.isDateUnavailable), !!A))
|
|
13637
13637
|
if (!g)
|
|
13638
|
-
$(
|
|
13638
|
+
$(A);
|
|
13639
13639
|
else {
|
|
13640
|
-
let
|
|
13640
|
+
let te = Ks(g, A);
|
|
13641
13641
|
u({
|
|
13642
|
-
start: kg(
|
|
13643
|
-
end: kg(
|
|
13642
|
+
start: kg(te.start, d == null ? void 0 : d.start),
|
|
13643
|
+
end: kg(te.end, d == null ? void 0 : d.end)
|
|
13644
13644
|
}), $(null);
|
|
13645
13645
|
}
|
|
13646
13646
|
}, [x, z] = ee(!1), { isDateUnavailable: R } = e, D = ce(() => !d || g ? !1 : R && (R(d.start) || R(d.end)) ? !0 : Jr(d.start, l, s) || Jr(d.end, l, s), [
|
|
@@ -13656,21 +13656,21 @@ function EC(e) {
|
|
|
13656
13656
|
setValue: u,
|
|
13657
13657
|
anchorDate: g,
|
|
13658
13658
|
setAnchorDate: $,
|
|
13659
|
-
highlightedRange:
|
|
13659
|
+
highlightedRange: T,
|
|
13660
13660
|
validationState: U,
|
|
13661
13661
|
selectFocusedDate() {
|
|
13662
13662
|
F(S.focusedDate);
|
|
13663
13663
|
},
|
|
13664
13664
|
selectDate: F,
|
|
13665
|
-
highlightDate(
|
|
13666
|
-
g && S.setFocusedDate(
|
|
13665
|
+
highlightDate(A) {
|
|
13666
|
+
g && S.setFocusedDate(A);
|
|
13667
13667
|
},
|
|
13668
|
-
isSelected(
|
|
13669
|
-
return
|
|
13668
|
+
isSelected(A) {
|
|
13669
|
+
return T && A.compare(T.start) >= 0 && A.compare(T.end) <= 0 && !S.isCellDisabled(A) && !S.isCellUnavailable(A);
|
|
13670
13670
|
},
|
|
13671
|
-
isInvalid(
|
|
13672
|
-
var
|
|
13673
|
-
return S.isInvalid(
|
|
13671
|
+
isInvalid(A) {
|
|
13672
|
+
var te, V;
|
|
13673
|
+
return S.isInvalid(A) || Jr(A, (te = b.current) === null || te === void 0 ? void 0 : te.start, (V = b.current) === null || V === void 0 ? void 0 : V.end);
|
|
13674
13674
|
},
|
|
13675
13675
|
isDragging: x,
|
|
13676
13676
|
setDragging: z
|
|
@@ -14177,10 +14177,10 @@ function UC(e) {
|
|
|
14177
14177
|
]), y = K(To), [v, _] = ee(To), S = K(To), P = () => {
|
|
14178
14178
|
if (!E)
|
|
14179
14179
|
return;
|
|
14180
|
-
|
|
14180
|
+
I(!1);
|
|
14181
14181
|
let F = c || a || y.current;
|
|
14182
14182
|
Vs(F, S.current) || (S.current = F, _(F));
|
|
14183
|
-
}, [E,
|
|
14183
|
+
}, [E, I] = ee(!1);
|
|
14184
14184
|
return q(P), {
|
|
14185
14185
|
realtimeValidation: s || m || c || a || To,
|
|
14186
14186
|
displayValidation: l === "native" ? s || m || v : s || m || c || a || v,
|
|
@@ -14189,10 +14189,10 @@ function UC(e) {
|
|
|
14189
14189
|
},
|
|
14190
14190
|
resetValidation() {
|
|
14191
14191
|
let F = To;
|
|
14192
|
-
Vs(F, S.current) || (S.current = F, _(F)), l === "native" &&
|
|
14192
|
+
Vs(F, S.current) || (S.current = F, _(F)), l === "native" && I(!1), b(!0);
|
|
14193
14193
|
},
|
|
14194
14194
|
commitValidation() {
|
|
14195
|
-
l === "native" &&
|
|
14195
|
+
l === "native" && I(!0), b(!0);
|
|
14196
14196
|
}
|
|
14197
14197
|
};
|
|
14198
14198
|
}
|
|
@@ -14428,7 +14428,7 @@ const Mg = (e) => ({ name: "arrow", options: e, async fn(t) {
|
|
|
14428
14428
|
const d = i$(c), u = { x: n, y: r }, g = fr(o), p = tf(g), h = await i.getDimensions(s), b = g === "y", m = b ? "top" : "left", y = b ? "bottom" : "right", v = b ? "clientHeight" : "clientWidth", _ = a.reference[p] + a.reference[g] - u[g] - a.floating[p], S = u[g] - a.reference[g], P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s));
|
|
14429
14429
|
let E = P ? P[v] : 0;
|
|
14430
14430
|
E && await (i.isElement == null ? void 0 : i.isElement(P)) || (E = l.floating[v] || a.floating[p]);
|
|
14431
|
-
const
|
|
14431
|
+
const I = _ / 2 - S / 2, $ = E / 2 - h[p] / 2 - 1, T = aa(d[m], $), F = aa(d[y], $), x = T, z = E - h[p] - F, R = E / 2 - h[p] / 2 + I, D = fd(x, R, z), U = bo(o) != null && R != D && a.reference[p] / 2 - (R < x ? T : F) - h[p] / 2 < 0 ? R < x ? x - R : z - R : 0;
|
|
14432
14432
|
return { [g]: u[g] - U, data: { [g]: D, centerOffset: R - D + U } };
|
|
14433
14433
|
} }), l$ = ["top", "right", "bottom", "left"];
|
|
14434
14434
|
l$.reduce((e, t) => e.concat(t, t + "-start", t + "-end"), []);
|
|
@@ -14455,9 +14455,9 @@ const QC = function(e) {
|
|
|
14455
14455
|
}(i));
|
|
14456
14456
|
u || p === "none" || _.push(...function(x, z, R, D) {
|
|
14457
14457
|
const U = bo(x);
|
|
14458
|
-
let
|
|
14458
|
+
let A = function(te, V, X) {
|
|
14459
14459
|
const B = ["left", "right"], j = ["right", "left"], W = ["top", "bottom"], N = ["bottom", "top"];
|
|
14460
|
-
switch (
|
|
14460
|
+
switch (te) {
|
|
14461
14461
|
case "top":
|
|
14462
14462
|
case "bottom":
|
|
14463
14463
|
return X ? V ? j : B : V ? B : j;
|
|
@@ -14468,25 +14468,25 @@ const QC = function(e) {
|
|
|
14468
14468
|
return [];
|
|
14469
14469
|
}
|
|
14470
14470
|
}(nn(x), R === "start", D);
|
|
14471
|
-
return U && (
|
|
14471
|
+
return U && (A = A.map((te) => te + "-" + U), z && (A = A.concat(A.map(Bs)))), A;
|
|
14472
14472
|
}(i, h, p, v));
|
|
14473
14473
|
const S = [i, ..._], P = await oa(t, b), E = [];
|
|
14474
|
-
let
|
|
14474
|
+
let I = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
14475
14475
|
if (c && E.push(P[m]), d) {
|
|
14476
14476
|
const { main: x, cross: z } = JC(r, a, v);
|
|
14477
14477
|
E.push(P[x], P[z]);
|
|
14478
14478
|
}
|
|
14479
|
-
if (
|
|
14480
|
-
var $,
|
|
14479
|
+
if (I = [...I, { placement: r, overflows: E }], !E.every((x) => x <= 0)) {
|
|
14480
|
+
var $, T;
|
|
14481
14481
|
const x = ((($ = o.flip) == null ? void 0 : $.index) || 0) + 1, z = S[x];
|
|
14482
14482
|
if (z)
|
|
14483
|
-
return { data: { index: x, overflows:
|
|
14484
|
-
let R = (
|
|
14483
|
+
return { data: { index: x, overflows: I }, reset: { placement: z } };
|
|
14484
|
+
let R = (T = I.filter((D) => D.overflows[0] <= 0).sort((D, U) => D.overflows[1] - U.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
14485
14485
|
if (!R)
|
|
14486
14486
|
switch (g) {
|
|
14487
14487
|
case "bestFit": {
|
|
14488
14488
|
var F;
|
|
14489
|
-
const D = (F =
|
|
14489
|
+
const D = (F = I.map((U) => [U.placement, U.overflows.filter((A) => A > 0).reduce((A, te) => A + te, 0)]).sort((U, A) => U[1] - A[1])[0]) == null ? void 0 : F[0];
|
|
14490
14490
|
D && (R = D);
|
|
14491
14491
|
break;
|
|
14492
14492
|
}
|
|
@@ -14584,8 +14584,8 @@ const n8 = function(e) {
|
|
|
14584
14584
|
_ = d || v ? aa(m, E) : E;
|
|
14585
14585
|
}
|
|
14586
14586
|
if (v && !d) {
|
|
14587
|
-
const E = Yn(s.left, 0),
|
|
14588
|
-
u ? S = g - 2 * (E !== 0 ||
|
|
14587
|
+
const E = Yn(s.left, 0), I = Yn(s.right, 0), $ = Yn(s.top, 0), T = Yn(s.bottom, 0);
|
|
14588
|
+
u ? S = g - 2 * (E !== 0 || I !== 0 ? E + I : Yn(s.left, s.right)) : _ = p - 2 * ($ !== 0 || T !== 0 ? $ + T : Yn(s.top, s.bottom));
|
|
14589
14589
|
}
|
|
14590
14590
|
await i({ ...t, availableWidth: S, availableHeight: _ });
|
|
14591
14591
|
const P = await o.getDimensions(a.floating);
|
|
@@ -14820,19 +14820,19 @@ function c8(e, t, n, r) {
|
|
|
14820
14820
|
function P() {
|
|
14821
14821
|
clearTimeout(v), _ && _.disconnect(), _ = null;
|
|
14822
14822
|
}
|
|
14823
|
-
return function E(
|
|
14824
|
-
|
|
14825
|
-
const { left:
|
|
14826
|
-
if (
|
|
14823
|
+
return function E(I, $) {
|
|
14824
|
+
I === void 0 && (I = !1), $ === void 0 && ($ = 1), P();
|
|
14825
|
+
const { left: T, top: F, width: x, height: z } = m.getBoundingClientRect();
|
|
14826
|
+
if (I || y(), !x || !z)
|
|
14827
14827
|
return;
|
|
14828
|
-
const R = { rootMargin: -Za(F) + "px " + -Za(S.clientWidth - (
|
|
14828
|
+
const R = { rootMargin: -Za(F) + "px " + -Za(S.clientWidth - (T + x)) + "px " + -Za(S.clientHeight - (F + z)) + "px " + -Za(T) + "px", threshold: Zr(0, gd(1, $)) || 1 };
|
|
14829
14829
|
let D = !0;
|
|
14830
|
-
function U(
|
|
14831
|
-
const
|
|
14832
|
-
if (
|
|
14830
|
+
function U(A) {
|
|
14831
|
+
const te = A[0].intersectionRatio;
|
|
14832
|
+
if (te !== $) {
|
|
14833
14833
|
if (!D)
|
|
14834
14834
|
return E();
|
|
14835
|
-
|
|
14835
|
+
te ? E(!1, te) : v = setTimeout(() => {
|
|
14836
14836
|
E(!1, 1e-7);
|
|
14837
14837
|
}, 100);
|
|
14838
14838
|
}
|
|
@@ -14956,21 +14956,21 @@ function f8(e) {
|
|
|
14956
14956
|
isPositioned: !1
|
|
14957
14957
|
}), [g, p] = J.useState(r);
|
|
14958
14958
|
Gi(g, r) || p(r);
|
|
14959
|
-
const [h, b] = J.useState(null), [m, y] = J.useState(null), v = J.useCallback((
|
|
14960
|
-
|
|
14961
|
-
}, [b]), _ = J.useCallback((
|
|
14962
|
-
|
|
14963
|
-
}, [y]), S = a || h, P = i || m, E = J.useRef(null),
|
|
14964
|
-
if (!E.current || !
|
|
14959
|
+
const [h, b] = J.useState(null), [m, y] = J.useState(null), v = J.useCallback((A) => {
|
|
14960
|
+
A != E.current && (E.current = A, b(A));
|
|
14961
|
+
}, [b]), _ = J.useCallback((A) => {
|
|
14962
|
+
A !== I.current && (I.current = A, y(A));
|
|
14963
|
+
}, [y]), S = a || h, P = i || m, E = J.useRef(null), I = J.useRef(null), $ = J.useRef(d), T = jg(s), F = jg(o), x = J.useCallback(() => {
|
|
14964
|
+
if (!E.current || !I.current)
|
|
14965
14965
|
return;
|
|
14966
|
-
const
|
|
14966
|
+
const A = {
|
|
14967
14967
|
placement: t,
|
|
14968
14968
|
strategy: n,
|
|
14969
14969
|
middleware: g
|
|
14970
14970
|
};
|
|
14971
|
-
F.current && (
|
|
14971
|
+
F.current && (A.platform = F.current), d8(E.current, I.current, A).then((te) => {
|
|
14972
14972
|
const V = {
|
|
14973
|
-
...
|
|
14973
|
+
...te,
|
|
14974
14974
|
isPositioned: !0
|
|
14975
14975
|
};
|
|
14976
14976
|
z.current && !Gi($.current, V) && ($.current = V, pb.flushSync(() => {
|
|
@@ -14979,8 +14979,8 @@ function f8(e) {
|
|
|
14979
14979
|
});
|
|
14980
14980
|
}, [g, t, n, F]);
|
|
14981
14981
|
hi(() => {
|
|
14982
|
-
c === !1 && $.current.isPositioned && ($.current.isPositioned = !1, u((
|
|
14983
|
-
...
|
|
14982
|
+
c === !1 && $.current.isPositioned && ($.current.isPositioned = !1, u((A) => ({
|
|
14983
|
+
...A,
|
|
14984
14984
|
isPositioned: !1
|
|
14985
14985
|
})));
|
|
14986
14986
|
}, [c]);
|
|
@@ -14988,38 +14988,38 @@ function f8(e) {
|
|
|
14988
14988
|
hi(() => (z.current = !0, () => {
|
|
14989
14989
|
z.current = !1;
|
|
14990
14990
|
}), []), hi(() => {
|
|
14991
|
-
if (S && (E.current = S), P && (
|
|
14992
|
-
if (
|
|
14993
|
-
return
|
|
14991
|
+
if (S && (E.current = S), P && (I.current = P), S && P) {
|
|
14992
|
+
if (T.current)
|
|
14993
|
+
return T.current(S, P, x);
|
|
14994
14994
|
x();
|
|
14995
14995
|
}
|
|
14996
|
-
}, [S, P, x,
|
|
14996
|
+
}, [S, P, x, T]);
|
|
14997
14997
|
const R = J.useMemo(() => ({
|
|
14998
14998
|
reference: E,
|
|
14999
|
-
floating:
|
|
14999
|
+
floating: I,
|
|
15000
15000
|
setReference: v,
|
|
15001
15001
|
setFloating: _
|
|
15002
15002
|
}), [v, _]), D = J.useMemo(() => ({
|
|
15003
15003
|
reference: S,
|
|
15004
15004
|
floating: P
|
|
15005
15005
|
}), [S, P]), U = J.useMemo(() => {
|
|
15006
|
-
const
|
|
15006
|
+
const A = {
|
|
15007
15007
|
position: n,
|
|
15008
15008
|
left: 0,
|
|
15009
15009
|
top: 0
|
|
15010
15010
|
};
|
|
15011
15011
|
if (!D.floating)
|
|
15012
|
-
return
|
|
15013
|
-
const
|
|
15012
|
+
return A;
|
|
15013
|
+
const te = Bg(D.floating, d.x), V = Bg(D.floating, d.y);
|
|
15014
15014
|
return l ? {
|
|
15015
|
-
...
|
|
15016
|
-
transform: "translate(" +
|
|
15015
|
+
...A,
|
|
15016
|
+
transform: "translate(" + te + "px, " + V + "px)",
|
|
15017
15017
|
...h$(D.floating) >= 1.5 && {
|
|
15018
15018
|
willChange: "transform"
|
|
15019
15019
|
}
|
|
15020
15020
|
} : {
|
|
15021
15021
|
position: n,
|
|
15022
|
-
left:
|
|
15022
|
+
left: te,
|
|
15023
15023
|
top: V
|
|
15024
15024
|
};
|
|
15025
15025
|
}, [n, l, D.floating, d.x, d.y]);
|
|
@@ -15091,10 +15091,10 @@ const b$ = "Popper", [m$, mo] = We(b$), [h8, v$] = m$(b$), b8 = (e) => {
|
|
|
15091
15091
|
}));
|
|
15092
15092
|
}), $$ = "PopperContent", [$8, y8] = m$($$), _8 = /* @__PURE__ */ H((e, t) => {
|
|
15093
15093
|
var n, r, o, a, i, l, s, c;
|
|
15094
|
-
const { __scopePopper: d, side: u = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: m = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: _ = !1, avoidCollisions: S = !0, onPlaced: P, ...E } = e,
|
|
15094
|
+
const { __scopePopper: d, side: u = "bottom", sideOffset: g = 0, align: p = "center", alignOffset: h = 0, arrowPadding: b = 0, collisionBoundary: m = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: _ = !1, avoidCollisions: S = !0, onPlaced: P, ...E } = e, I = v$($$, d), [$, T] = ee(null), F = De(
|
|
15095
15095
|
t,
|
|
15096
|
-
(ke) =>
|
|
15097
|
-
), [x, z] = ee(null), R = of(x), D = (n = R == null ? void 0 : R.width) !== null && n !== void 0 ? n : 0, U = (r = R == null ? void 0 : R.height) !== null && r !== void 0 ? r : 0,
|
|
15096
|
+
(ke) => T(ke)
|
|
15097
|
+
), [x, z] = ee(null), R = of(x), D = (n = R == null ? void 0 : R.width) !== null && n !== void 0 ? n : 0, U = (r = R == null ? void 0 : R.height) !== null && r !== void 0 ? r : 0, A = u + (p !== "center" ? "-" + p : ""), te = typeof y == "number" ? y : {
|
|
15098
15098
|
top: 0,
|
|
15099
15099
|
right: 0,
|
|
15100
15100
|
bottom: 0,
|
|
@@ -15103,17 +15103,17 @@ const b$ = "Popper", [m$, mo] = We(b$), [h8, v$] = m$(b$), b8 = (e) => {
|
|
|
15103
15103
|
}, V = Array.isArray(m) ? m : [
|
|
15104
15104
|
m
|
|
15105
15105
|
], X = V.length > 0, B = {
|
|
15106
|
-
padding:
|
|
15106
|
+
padding: te,
|
|
15107
15107
|
boundary: V.filter(E8),
|
|
15108
15108
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
15109
15109
|
altBoundary: X
|
|
15110
15110
|
}, { refs: j, floatingStyles: W, placement: N, isPositioned: G, middlewareData: ie } = f8({
|
|
15111
15111
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
15112
15112
|
strategy: "fixed",
|
|
15113
|
-
placement:
|
|
15113
|
+
placement: A,
|
|
15114
15114
|
whileElementsMounted: c8,
|
|
15115
15115
|
elements: {
|
|
15116
|
-
reference:
|
|
15116
|
+
reference: I.anchor
|
|
15117
15117
|
},
|
|
15118
15118
|
middleware: [
|
|
15119
15119
|
t8({
|
|
@@ -15155,7 +15155,7 @@ const b$ = "Popper", [m$, mo] = We(b$), [h8, v$] = m$(b$), b8 = (e) => {
|
|
|
15155
15155
|
G,
|
|
15156
15156
|
Z
|
|
15157
15157
|
]);
|
|
15158
|
-
const
|
|
15158
|
+
const ne = (o = ie.arrow) === null || o === void 0 ? void 0 : o.x, fe = (a = ie.arrow) === null || a === void 0 ? void 0 : a.y, xe = ((i = ie.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [pe, $e] = ee();
|
|
15159
15159
|
return An(() => {
|
|
15160
15160
|
$ && $e(window.getComputedStyle($).zIndex);
|
|
15161
15161
|
}, [
|
|
@@ -15179,7 +15179,7 @@ const b$ = "Popper", [m$, mo] = We(b$), [h8, v$] = m$(b$), b8 = (e) => {
|
|
|
15179
15179
|
scope: d,
|
|
15180
15180
|
placedSide: ae,
|
|
15181
15181
|
onArrowChange: z,
|
|
15182
|
-
arrowX:
|
|
15182
|
+
arrowX: ne,
|
|
15183
15183
|
arrowY: fe,
|
|
15184
15184
|
shouldHideArrow: xe
|
|
15185
15185
|
}, /* @__PURE__ */ C(ge.div, O({
|
|
@@ -15299,8 +15299,8 @@ const Vl = b8, af = v8, lf = _8, sf = S8, [Bl, jV] = We("Tooltip", [
|
|
|
15299
15299
|
const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: l } = e, s = cf(df, e.__scopeTooltip), c = jl(t), [d, u] = ee(null), g = ut(), p = K(0), h = i ?? s.disableHoverableContent, b = l ?? s.delayDuration, m = K(!1), [y = !1, v] = Ze({
|
|
15300
15300
|
prop: r,
|
|
15301
15301
|
defaultProp: o,
|
|
15302
|
-
onChange: (
|
|
15303
|
-
|
|
15302
|
+
onChange: (I) => {
|
|
15303
|
+
I ? (s.onOpen(), document.dispatchEvent(new CustomEvent(hd))) : s.onClose(), a == null || a(I);
|
|
15304
15304
|
}
|
|
15305
15305
|
}), _ = ce(() => y ? m.current ? "delayed-open" : "instant-open" : "closed", [
|
|
15306
15306
|
y
|
|
@@ -15946,19 +15946,19 @@ function Xg(e, t, n, r, o, a) {
|
|
|
15946
15946
|
return i === l ? Math.max(0, n[l] - e[l] - e.scroll[l] + t[l] - r[l] - r[Yi[l]] - o) : Math.max(0, e[s] + e[l] + e.scroll[l] - t[l] - n[l] - n[s] - r[l] - r[Yi[l]] - o);
|
|
15947
15947
|
}
|
|
15948
15948
|
function v9(e, t, n, r, o, a, i, l, s, c, d, u, g, p, h, b) {
|
|
15949
|
-
let m = qg(e), { size: y, crossAxis: v, crossSize: _, placement: S, crossPlacement: P } = m, E = js(t, l, n, m, d, u, c, g, h, b),
|
|
15949
|
+
let m = qg(e), { size: y, crossAxis: v, crossSize: _, placement: S, crossPlacement: P } = m, E = js(t, l, n, m, d, u, c, g, h, b), I = d, $ = Xg(l, c, t, o, a + d, m);
|
|
15950
15950
|
if (i && r[y] > $) {
|
|
15951
15951
|
let X = qg(`${Yi[S]} ${P}`), B = js(t, l, n, X, d, u, c, g, h, b);
|
|
15952
|
-
Xg(l, c, t, o, a + d, X) > $ && (m = X, E = B,
|
|
15952
|
+
Xg(l, c, t, o, a + d, X) > $ && (m = X, E = B, I = d);
|
|
15953
15953
|
}
|
|
15954
|
-
let
|
|
15955
|
-
m.axis === "top" ? m.placement === "top" ?
|
|
15954
|
+
let T = "bottom";
|
|
15955
|
+
m.axis === "top" ? m.placement === "top" ? T = "top" : m.placement === "bottom" && (T = "bottom") : m.crossAxis === "top" && (m.crossPlacement === "top" ? T = "bottom" : m.crossPlacement === "bottom" && (T = "top"));
|
|
15956
15956
|
let F = Yg(v, E[v], n[_], l, s, a, c);
|
|
15957
15957
|
E[v] += F;
|
|
15958
|
-
let x = m9(E, l, c, g, o, a, n.height,
|
|
15959
|
-
p && p < x && (x = p), n.height = Math.min(n.height, x), E = js(t, l, n, m,
|
|
15958
|
+
let x = m9(E, l, c, g, o, a, n.height, T);
|
|
15959
|
+
p && p < x && (x = p), n.height = Math.min(n.height, x), E = js(t, l, n, m, I, u, c, g, h, b), F = Yg(v, E[v], n[_], l, s, a, c), E[v] += F;
|
|
15960
15960
|
let z = {}, R = t[v] + 0.5 * t[_] - E[v];
|
|
15961
|
-
const D = h / 2 + b, U = n[_] - h / 2 - b,
|
|
15961
|
+
const D = h / 2 + b, U = n[_] - h / 2 - b, A = t[v] - E[v] + h / 2, te = t[v] + t[_] - E[v] - h / 2, V = Si(R, A, te);
|
|
15962
15962
|
return z[v] = Si(V, D, U), {
|
|
15963
15963
|
position: E,
|
|
15964
15964
|
maxHeight: x,
|
|
@@ -15972,13 +15972,13 @@ function $9(e) {
|
|
|
15972
15972
|
const b = window.getComputedStyle(p).position;
|
|
15973
15973
|
let m = !!b && b !== "static", y = h ? eo(n) : Jg(n, p);
|
|
15974
15974
|
if (!h) {
|
|
15975
|
-
let { marginTop: $, marginLeft:
|
|
15976
|
-
y.top += parseInt($, 10) || 0, y.left += parseInt(
|
|
15975
|
+
let { marginTop: $, marginLeft: T } = window.getComputedStyle(n);
|
|
15976
|
+
y.top += parseInt($, 10) || 0, y.left += parseInt(T, 10) || 0;
|
|
15977
15977
|
}
|
|
15978
15978
|
let v = eo(r), _ = b9(r);
|
|
15979
15979
|
v.width += _.left + _.right, v.height += _.top + _.bottom;
|
|
15980
|
-
let S = h9(o), P = Gg(l), E = Gg(p),
|
|
15981
|
-
return p.tagName === "HTML" && l.tagName === "BODY" && (E.scroll.top = 0, E.scroll.left = 0), v9(t, y, v, S, _, a, i, P, E,
|
|
15980
|
+
let S = h9(o), P = Gg(l), E = Gg(p), I = l.tagName === "BODY" ? eo(p) : Jg(p, l);
|
|
15981
|
+
return p.tagName === "HTML" && l.tagName === "BODY" && (E.scroll.top = 0, E.scroll.left = 0), v9(t, y, v, S, _, a, i, P, E, I, s, c, m, d, u, g);
|
|
15982
15982
|
}
|
|
15983
15983
|
function eo(e) {
|
|
15984
15984
|
let { top: t, left: n, width: r, height: o } = e.getBoundingClientRect(), { scrollTop: a, scrollLeft: i, clientTop: l, clientLeft: s } = document.documentElement;
|
|
@@ -16074,13 +16074,13 @@ function x9(e) {
|
|
|
16074
16074
|
let P = re(() => {
|
|
16075
16075
|
if (g === !1 || !p || !o.current || !r.current || !c || (ze == null ? void 0 : ze.scale) !== S.current)
|
|
16076
16076
|
return;
|
|
16077
|
-
let
|
|
16077
|
+
let T = null;
|
|
16078
16078
|
if (a.current && a.current.contains(document.activeElement)) {
|
|
16079
16079
|
let D = document.activeElement.getBoundingClientRect(), U = a.current.getBoundingClientRect();
|
|
16080
|
-
|
|
16080
|
+
T = {
|
|
16081
16081
|
type: "top",
|
|
16082
16082
|
offset: D.top - U.top
|
|
16083
|
-
},
|
|
16083
|
+
}, T.offset > U.height / 2 && (T.type = "bottom", T.offset = D.bottom - U.bottom);
|
|
16084
16084
|
}
|
|
16085
16085
|
let F = o.current;
|
|
16086
16086
|
if (!b && o.current) {
|
|
@@ -16103,9 +16103,9 @@ function x9(e) {
|
|
|
16103
16103
|
arrowSize: n,
|
|
16104
16104
|
arrowBoundaryOffset: m
|
|
16105
16105
|
});
|
|
16106
|
-
if (F.style.top = "", F.style.bottom = "", F.style.left = "", F.style.right = "", Object.keys(R.position).forEach((D) => F.style[D] = R.position[D] + "px"), F.style.maxHeight = R.maxHeight != null ? R.maxHeight + "px" : void 0,
|
|
16107
|
-
let D = document.activeElement.getBoundingClientRect(), U = a.current.getBoundingClientRect(),
|
|
16108
|
-
a.current.scrollTop +=
|
|
16106
|
+
if (F.style.top = "", F.style.bottom = "", F.style.left = "", F.style.right = "", Object.keys(R.position).forEach((D) => F.style[D] = R.position[D] + "px"), F.style.maxHeight = R.maxHeight != null ? R.maxHeight + "px" : void 0, T) {
|
|
16107
|
+
let D = document.activeElement.getBoundingClientRect(), U = a.current.getBoundingClientRect(), A = D[T.type] - U[T.type];
|
|
16108
|
+
a.current.scrollTop += A - T.offset;
|
|
16109
16109
|
}
|
|
16110
16110
|
v(R);
|
|
16111
16111
|
}, _);
|
|
@@ -16118,8 +16118,8 @@ function x9(e) {
|
|
|
16118
16118
|
});
|
|
16119
16119
|
let E = K(!1);
|
|
16120
16120
|
Oe(() => {
|
|
16121
|
-
let
|
|
16122
|
-
E.current = !0, clearTimeout(
|
|
16121
|
+
let T, F = () => {
|
|
16122
|
+
E.current = !0, clearTimeout(T), T = setTimeout(() => {
|
|
16123
16123
|
E.current = !1;
|
|
16124
16124
|
}, 500), P();
|
|
16125
16125
|
}, x = () => {
|
|
@@ -16131,7 +16131,7 @@ function x9(e) {
|
|
|
16131
16131
|
}, [
|
|
16132
16132
|
P
|
|
16133
16133
|
]);
|
|
16134
|
-
let
|
|
16134
|
+
let I = re(() => {
|
|
16135
16135
|
E.current || h();
|
|
16136
16136
|
}, [
|
|
16137
16137
|
h,
|
|
@@ -16140,7 +16140,7 @@ function x9(e) {
|
|
|
16140
16140
|
_9({
|
|
16141
16141
|
triggerRef: r,
|
|
16142
16142
|
isOpen: p,
|
|
16143
|
-
onClose: h &&
|
|
16143
|
+
onClose: h && I
|
|
16144
16144
|
});
|
|
16145
16145
|
var $;
|
|
16146
16146
|
return {
|
|
@@ -16678,7 +16678,7 @@ function uy(e) {
|
|
|
16678
16678
|
let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: a = !1, disallowEmptySelection: i = !1, disallowSelectAll: l = !1, selectOnFocus: s = t.selectionBehavior === "replace", disallowTypeAhead: c = !1, shouldUseVirtualFocus: d, allowsTabNavigation: u = !1, isVirtualized: g, scrollRef: p = r } = e, { direction: h } = gt(), b = ($) => {
|
|
16679
16679
|
if ($.altKey && $.key === "Tab" && $.preventDefault(), !r.current.contains($.target))
|
|
16680
16680
|
return;
|
|
16681
|
-
const
|
|
16681
|
+
const T = (V, X) => {
|
|
16682
16682
|
V != null && (t.setFocusedKey(V, X), $.shiftKey && t.selectionMode === "multiple" ? t.extendSelection(V) : s && !dy($) && t.replaceSelection(V));
|
|
16683
16683
|
};
|
|
16684
16684
|
switch ($.key) {
|
|
@@ -16687,7 +16687,7 @@ function uy(e) {
|
|
|
16687
16687
|
var F, x;
|
|
16688
16688
|
$.preventDefault();
|
|
16689
16689
|
let V = t.focusedKey != null ? n.getKeyBelow(t.focusedKey) : (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n);
|
|
16690
|
-
V == null && a && (V = (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n, t.focusedKey)),
|
|
16690
|
+
V == null && a && (V = (x = n.getFirstKey) === null || x === void 0 ? void 0 : x.call(n, t.focusedKey)), T(V);
|
|
16691
16691
|
}
|
|
16692
16692
|
break;
|
|
16693
16693
|
case "ArrowUp":
|
|
@@ -16695,7 +16695,7 @@ function uy(e) {
|
|
|
16695
16695
|
var z, R;
|
|
16696
16696
|
$.preventDefault();
|
|
16697
16697
|
let V = t.focusedKey != null ? n.getKeyAbove(t.focusedKey) : (z = n.getLastKey) === null || z === void 0 ? void 0 : z.call(n);
|
|
16698
|
-
V == null && a && (V = (R = n.getLastKey) === null || R === void 0 ? void 0 : R.call(n, t.focusedKey)),
|
|
16698
|
+
V == null && a && (V = (R = n.getLastKey) === null || R === void 0 ? void 0 : R.call(n, t.focusedKey)), T(V);
|
|
16699
16699
|
}
|
|
16700
16700
|
break;
|
|
16701
16701
|
case "ArrowLeft":
|
|
@@ -16703,15 +16703,15 @@ function uy(e) {
|
|
|
16703
16703
|
var D, U;
|
|
16704
16704
|
$.preventDefault();
|
|
16705
16705
|
let V = n.getKeyLeftOf(t.focusedKey);
|
|
16706
|
-
V == null && a && (V = h === "rtl" ? (D = n.getFirstKey) === null || D === void 0 ? void 0 : D.call(n, t.focusedKey) : (U = n.getLastKey) === null || U === void 0 ? void 0 : U.call(n, t.focusedKey)),
|
|
16706
|
+
V == null && a && (V = h === "rtl" ? (D = n.getFirstKey) === null || D === void 0 ? void 0 : D.call(n, t.focusedKey) : (U = n.getLastKey) === null || U === void 0 ? void 0 : U.call(n, t.focusedKey)), T(V, h === "rtl" ? "first" : "last");
|
|
16707
16707
|
}
|
|
16708
16708
|
break;
|
|
16709
16709
|
case "ArrowRight":
|
|
16710
16710
|
if (n.getKeyRightOf) {
|
|
16711
|
-
var
|
|
16711
|
+
var A, te;
|
|
16712
16712
|
$.preventDefault();
|
|
16713
16713
|
let V = n.getKeyRightOf(t.focusedKey);
|
|
16714
|
-
V == null && a && (V = h === "rtl" ? (
|
|
16714
|
+
V == null && a && (V = h === "rtl" ? (A = n.getLastKey) === null || A === void 0 ? void 0 : A.call(n, t.focusedKey) : (te = n.getFirstKey) === null || te === void 0 ? void 0 : te.call(n, t.focusedKey)), T(V, h === "rtl" ? "last" : "first");
|
|
16715
16715
|
}
|
|
16716
16716
|
break;
|
|
16717
16717
|
case "Home":
|
|
@@ -16732,14 +16732,14 @@ function uy(e) {
|
|
|
16732
16732
|
if (n.getKeyPageBelow) {
|
|
16733
16733
|
$.preventDefault();
|
|
16734
16734
|
let V = n.getKeyPageBelow(t.focusedKey);
|
|
16735
|
-
|
|
16735
|
+
T(V);
|
|
16736
16736
|
}
|
|
16737
16737
|
break;
|
|
16738
16738
|
case "PageUp":
|
|
16739
16739
|
if (n.getKeyPageAbove) {
|
|
16740
16740
|
$.preventDefault();
|
|
16741
16741
|
let V = n.getKeyPageAbove(t.focusedKey);
|
|
16742
|
-
|
|
16742
|
+
T(V);
|
|
16743
16743
|
}
|
|
16744
16744
|
break;
|
|
16745
16745
|
case "a":
|
|
@@ -16784,8 +16784,8 @@ function uy(e) {
|
|
|
16784
16784
|
let x = (R) => {
|
|
16785
16785
|
R != null && (t.setFocusedKey(R), s && t.replaceSelection(R));
|
|
16786
16786
|
}, z = $.relatedTarget;
|
|
16787
|
-
var
|
|
16788
|
-
z && $.currentTarget.compareDocumentPosition(z) & Node.DOCUMENT_POSITION_FOLLOWING ? x((
|
|
16787
|
+
var T, F;
|
|
16788
|
+
z && $.currentTarget.compareDocumentPosition(z) & Node.DOCUMENT_POSITION_FOLLOWING ? x((T = t.lastSelectedKey) !== null && T !== void 0 ? T : n.getLastKey()) : x((F = t.firstSelectedKey) !== null && F !== void 0 ? F : n.getFirstKey());
|
|
16789
16789
|
} else
|
|
16790
16790
|
g || (p.current.scrollTop = m.current.top, p.current.scrollLeft = m.current.left);
|
|
16791
16791
|
if (!g && t.focusedKey != null) {
|
|
@@ -16803,8 +16803,8 @@ function uy(e) {
|
|
|
16803
16803
|
if (_.current) {
|
|
16804
16804
|
let $ = null;
|
|
16805
16805
|
o === "first" && ($ = n.getFirstKey()), o === "last" && ($ = n.getLastKey());
|
|
16806
|
-
let
|
|
16807
|
-
|
|
16806
|
+
let T = t.selectedKeys;
|
|
16807
|
+
T.size && ($ = T.values().next().value), t.setFocused(!0), t.setFocusedKey($), $ == null && !d && Jo(r.current);
|
|
16808
16808
|
}
|
|
16809
16809
|
_.current = !1;
|
|
16810
16810
|
}, []);
|
|
@@ -16812,8 +16812,8 @@ function uy(e) {
|
|
|
16812
16812
|
q(() => {
|
|
16813
16813
|
let $ = Ti();
|
|
16814
16814
|
if (t.isFocused && t.focusedKey != null && (p != null && p.current)) {
|
|
16815
|
-
let
|
|
16816
|
-
|
|
16815
|
+
let T = p.current.querySelector(`[data-key="${t.focusedKey}"]`);
|
|
16816
|
+
T && $ === "keyboard" && (g || a0(p.current, T), zc(T, {
|
|
16817
16817
|
containingElement: r.current
|
|
16818
16818
|
}));
|
|
16819
16819
|
}
|
|
@@ -16837,11 +16837,11 @@ function uy(e) {
|
|
|
16837
16837
|
selectionManager: t
|
|
16838
16838
|
});
|
|
16839
16839
|
c || (P = _e(E, P));
|
|
16840
|
-
let
|
|
16841
|
-
return d || (
|
|
16840
|
+
let I;
|
|
16841
|
+
return d || (I = t.focusedKey == null ? 0 : -1), {
|
|
16842
16842
|
collectionProps: {
|
|
16843
16843
|
...P,
|
|
16844
|
-
tabIndex:
|
|
16844
|
+
tabIndex: I
|
|
16845
16845
|
}
|
|
16846
16846
|
};
|
|
16847
16847
|
}
|
|
@@ -16891,22 +16891,22 @@ function L9(e) {
|
|
|
16891
16891
|
}, P.onPress = (x) => {
|
|
16892
16892
|
(x.pointerType === "touch" || x.pointerType === "pen" || x.pointerType === "virtual" || x.pointerType === "keyboard" && m && nh() || x.pointerType === "mouse" && S.current) && (m ? s() : d(x));
|
|
16893
16893
|
}), u["data-key"] = n, P.preventFocusOnPress = a;
|
|
16894
|
-
let { pressProps: E, isPressed:
|
|
16894
|
+
let { pressProps: E, isPressed: I } = oo(P), $ = b ? (x) => {
|
|
16895
16895
|
y.current === "mouse" && (x.stopPropagation(), x.preventDefault(), s());
|
|
16896
|
-
} : void 0, { longPressProps:
|
|
16896
|
+
} : void 0, { longPressProps: T } = h0({
|
|
16897
16897
|
isDisabled: !v,
|
|
16898
16898
|
onLongPress(x) {
|
|
16899
16899
|
x.pointerType === "touch" && (d(x), t.setSelectionBehavior("toggle"));
|
|
16900
16900
|
}
|
|
16901
16901
|
});
|
|
16902
16902
|
return {
|
|
16903
|
-
itemProps: _e(u, g || h ? E : {}, v ?
|
|
16903
|
+
itemProps: _e(u, g || h ? E : {}, v ? T : {}, {
|
|
16904
16904
|
onDoubleClick: $,
|
|
16905
16905
|
onDragStartCapture: (x) => {
|
|
16906
16906
|
y.current === "touch" && _.current && x.preventDefault();
|
|
16907
16907
|
}
|
|
16908
16908
|
}),
|
|
16909
|
-
isPressed:
|
|
16909
|
+
isPressed: I,
|
|
16910
16910
|
isSelected: t.isSelected(n),
|
|
16911
16911
|
isFocused: t.isFocused && t.focusedKey === n,
|
|
16912
16912
|
isDisabled: l,
|
|
@@ -17430,7 +17430,7 @@ function my(e, t, n) {
|
|
|
17430
17430
|
let x = Number((S = t.collection.getItem(r)) === null || S === void 0 ? void 0 : S.index);
|
|
17431
17431
|
_["aria-posinset"] = Number.isNaN(x) ? void 0 : x + 1, _["aria-setsize"] = gy(t.collection);
|
|
17432
17432
|
}
|
|
17433
|
-
let { itemProps: P, isPressed: E, isFocused:
|
|
17433
|
+
let { itemProps: P, isPressed: E, isFocused: I, hasAction: $, allowsSelection: T } = L9({
|
|
17434
17434
|
selectionManager: t.selectionManager,
|
|
17435
17435
|
key: r,
|
|
17436
17436
|
ref: n,
|
|
@@ -17461,12 +17461,12 @@ function my(e, t, n) {
|
|
|
17461
17461
|
descriptionProps: {
|
|
17462
17462
|
id: v
|
|
17463
17463
|
},
|
|
17464
|
-
isFocused:
|
|
17465
|
-
isFocusVisible:
|
|
17464
|
+
isFocused: I,
|
|
17465
|
+
isFocusVisible: I && Pi(),
|
|
17466
17466
|
isSelected: s,
|
|
17467
17467
|
isDisabled: i,
|
|
17468
17468
|
isPressed: E,
|
|
17469
|
-
allowsSelection:
|
|
17469
|
+
allowsSelection: T,
|
|
17470
17470
|
hasAction: $
|
|
17471
17471
|
};
|
|
17472
17472
|
}
|
|
@@ -18589,13 +18589,13 @@ function X9(e, t) {
|
|
|
18589
18589
|
autoComplete: "off"
|
|
18590
18590
|
}, o), E = (N) => {
|
|
18591
18591
|
N.pointerType === "touch" && (o.current.focus(), t.toggle(null, "manual"));
|
|
18592
|
-
},
|
|
18592
|
+
}, I = (N) => {
|
|
18593
18593
|
N.pointerType !== "touch" && (o.current.focus(), t.toggle(N.pointerType === "keyboard" || N.pointerType === "virtual" ? "first" : null, "manual"));
|
|
18594
18594
|
}, $ = ro({
|
|
18595
18595
|
id: u.id,
|
|
18596
18596
|
"aria-label": d.format("buttonLabel"),
|
|
18597
18597
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
18598
|
-
}),
|
|
18598
|
+
}), T = ro({
|
|
18599
18599
|
id: g.id,
|
|
18600
18600
|
"aria-label": d.format("listboxLabel"),
|
|
18601
18601
|
"aria-labelledby": e["aria-labelledby"] || v.id
|
|
@@ -18612,11 +18612,11 @@ function X9(e, t) {
|
|
|
18612
18612
|
var R;
|
|
18613
18613
|
let D = (R = z == null ? void 0 : z.parentKey) !== null && R !== void 0 ? R : null;
|
|
18614
18614
|
var U;
|
|
18615
|
-
let
|
|
18615
|
+
let A = (U = t.selectionManager.focusedKey) !== null && U !== void 0 ? U : null, te = K(D), V = K(A);
|
|
18616
18616
|
q(() => {
|
|
18617
|
-
if (di() && z != null &&
|
|
18618
|
-
let N = t.selectionManager.isSelected(
|
|
18619
|
-
isGroupChange: G && D !==
|
|
18617
|
+
if (di() && z != null && A !== V.current) {
|
|
18618
|
+
let N = t.selectionManager.isSelected(A), G = D != null ? t.collection.getItem(D) : null, ie = (G == null ? void 0 : G["aria-label"]) || (typeof (G == null ? void 0 : G.rendered) == "string" ? G.rendered : "") || "", ae = d.format("focusAnnouncement", {
|
|
18619
|
+
isGroupChange: G && D !== te.current,
|
|
18620
18620
|
groupTitle: ie,
|
|
18621
18621
|
groupCount: G ? [
|
|
18622
18622
|
...Wl(G, t.collection)
|
|
@@ -18626,7 +18626,7 @@ function X9(e, t) {
|
|
|
18626
18626
|
});
|
|
18627
18627
|
Xr(ae);
|
|
18628
18628
|
}
|
|
18629
|
-
|
|
18629
|
+
te.current = D, V.current = A;
|
|
18630
18630
|
});
|
|
18631
18631
|
let X = gy(t.collection), B = K(X), j = K(t.isOpen);
|
|
18632
18632
|
q(() => {
|
|
@@ -18665,7 +18665,7 @@ function X9(e, t) {
|
|
|
18665
18665
|
...$,
|
|
18666
18666
|
excludeFromTabOrder: !0,
|
|
18667
18667
|
onPress: E,
|
|
18668
|
-
onPressStart:
|
|
18668
|
+
onPressStart: I,
|
|
18669
18669
|
isDisabled: c || s
|
|
18670
18670
|
},
|
|
18671
18671
|
inputProps: _e(_, {
|
|
@@ -18681,7 +18681,7 @@ function X9(e, t) {
|
|
|
18681
18681
|
// This disable's the macOS Safari spell check auto corrections.
|
|
18682
18682
|
spellCheck: "false"
|
|
18683
18683
|
}),
|
|
18684
|
-
listBoxProps: _e(g,
|
|
18684
|
+
listBoxProps: _e(g, T, {
|
|
18685
18685
|
autoFocus: t.focusStrategy,
|
|
18686
18686
|
shouldUseVirtualFocus: !0,
|
|
18687
18687
|
shouldSelectOnPressUp: !0,
|
|
@@ -19193,14 +19193,14 @@ function eR(e) {
|
|
|
19193
19193
|
let { defaultFilter: n, menuTrigger: r = "input", allowsEmptyCollection: o = !1, allowsCustomValue: a, shouldCloseOnBlur: i = !0 } = e, [l, s] = ee(!1), [c, d] = ee(!1);
|
|
19194
19194
|
var u;
|
|
19195
19195
|
let [g, p] = Mt(e.inputValue, (u = e.defaultInputValue) !== null && u !== void 0 ? u : "", e.onInputChange), h = (pe) => {
|
|
19196
|
-
e.onSelectionChange && e.onSelectionChange(pe), pe === v && (V(),
|
|
19196
|
+
e.onSelectionChange && e.onSelectionChange(pe), pe === v && (V(), A());
|
|
19197
19197
|
};
|
|
19198
19198
|
var b;
|
|
19199
19199
|
let { collection: m, selectionManager: y, selectedKey: v, setSelectedKey: _, selectedItem: S, disabledKeys: P } = M_({
|
|
19200
19200
|
...e,
|
|
19201
19201
|
onSelectionChange: h,
|
|
19202
19202
|
items: (b = e.items) !== null && b !== void 0 ? b : e.defaultItems
|
|
19203
|
-
}), E = m,
|
|
19203
|
+
}), E = m, I = ce(() => (
|
|
19204
19204
|
// No default filter if items are controlled.
|
|
19205
19205
|
e.items != null || !n ? m : tR(m, g, n)
|
|
19206
19206
|
), [
|
|
@@ -19208,7 +19208,7 @@ function eR(e) {
|
|
|
19208
19208
|
g,
|
|
19209
19209
|
n,
|
|
19210
19210
|
e.items
|
|
19211
|
-
]), [$,
|
|
19211
|
+
]), [$, T] = ee(I), F = K("focus"), z = F_({
|
|
19212
19212
|
...e,
|
|
19213
19213
|
onOpenChange: (pe) => {
|
|
19214
19214
|
e.onOpenChange && e.onOpenChange(pe, pe ? F.current : void 0), y.setFocused(pe), pe || y.setFocusedKey(null);
|
|
@@ -19217,24 +19217,24 @@ function eR(e) {
|
|
|
19217
19217
|
defaultOpen: void 0
|
|
19218
19218
|
}), R = (pe, $e) => {
|
|
19219
19219
|
let ke = $e === "manual" || $e === "focus" && r === "focus";
|
|
19220
|
-
(o ||
|
|
19220
|
+
(o || I.size > 0 || ke && E.size > 0 || e.items) && (ke && !z.isOpen && e.items === void 0 && s(!0), F.current = $e, z.open(pe));
|
|
19221
19221
|
}, D = (pe, $e) => {
|
|
19222
19222
|
let ke = $e === "manual" || $e === "focus" && r === "focus";
|
|
19223
|
-
!(o ||
|
|
19223
|
+
!(o || I.size > 0 || ke && E.size > 0 || e.items) && !z.isOpen || (ke && !z.isOpen && e.items === void 0 && s(!0), z.isOpen || (F.current = $e), U(pe));
|
|
19224
19224
|
}, U = re((pe) => {
|
|
19225
|
-
z.isOpen &&
|
|
19225
|
+
z.isOpen && T(I), z.toggle(pe);
|
|
19226
19226
|
}, [
|
|
19227
19227
|
z,
|
|
19228
|
-
|
|
19229
|
-
]),
|
|
19230
|
-
z.isOpen && (
|
|
19228
|
+
I
|
|
19229
|
+
]), A = re(() => {
|
|
19230
|
+
z.isOpen && (T(I), z.close());
|
|
19231
19231
|
}, [
|
|
19232
19232
|
z,
|
|
19233
|
-
|
|
19234
|
-
]),
|
|
19233
|
+
I
|
|
19234
|
+
]), te = K(g), V = () => {
|
|
19235
19235
|
var pe, $e;
|
|
19236
19236
|
let ke = ($e = (pe = m.getItem(v)) === null || pe === void 0 ? void 0 : pe.textValue) !== null && $e !== void 0 ? $e : "";
|
|
19237
|
-
|
|
19237
|
+
te.current = ke, p(ke);
|
|
19238
19238
|
}, X = K(!0);
|
|
19239
19239
|
var B, j;
|
|
19240
19240
|
let W = K((j = (B = e.selectedKey) !== null && B !== void 0 ? B : e.defaultSelectedKey) !== null && j !== void 0 ? j : null);
|
|
@@ -19242,36 +19242,36 @@ function eR(e) {
|
|
|
19242
19242
|
let G = K((N = (t = m.getItem(v)) === null || t === void 0 ? void 0 : t.textValue) !== null && N !== void 0 ? N : "");
|
|
19243
19243
|
q(() => {
|
|
19244
19244
|
var pe;
|
|
19245
|
-
c && (
|
|
19245
|
+
c && (I.size > 0 || o) && !z.isOpen && g !== te.current && r !== "manual" && R(null, "input"), !l && !o && z.isOpen && I.size === 0 && A(), v != null && v !== W.current && A(), g !== te.current && (y.setFocusedKey(null), s(!1), g === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && _(null)), X.current && e.inputValue === void 0 && e.defaultInputValue === void 0 && V(), v !== W.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? V() : te.current = g;
|
|
19246
19246
|
var $e;
|
|
19247
19247
|
let ke = ($e = (pe = m.getItem(v)) === null || pe === void 0 ? void 0 : pe.textValue) !== null && $e !== void 0 ? $e : "";
|
|
19248
|
-
!c && v != null && e.inputValue === void 0 && v === W.current && G.current !== ke && (
|
|
19248
|
+
!c && v != null && e.inputValue === void 0 && v === W.current && G.current !== ke && (te.current = ke, p(ke)), X.current = !1, W.current = v, G.current = ke;
|
|
19249
19249
|
});
|
|
19250
19250
|
let ie = () => {
|
|
19251
19251
|
a && v == null ? ae() : ue();
|
|
19252
19252
|
}, ae = () => {
|
|
19253
|
-
W.current = null, _(null),
|
|
19253
|
+
W.current = null, _(null), A();
|
|
19254
19254
|
}, ue = () => {
|
|
19255
19255
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
19256
19256
|
var pe;
|
|
19257
19257
|
e.onSelectionChange(v);
|
|
19258
19258
|
var $e;
|
|
19259
19259
|
let ke = ($e = (pe = m.getItem(v)) === null || pe === void 0 ? void 0 : pe.textValue) !== null && $e !== void 0 ? $e : "";
|
|
19260
|
-
|
|
19260
|
+
te.current = ke, A();
|
|
19261
19261
|
} else
|
|
19262
|
-
V(),
|
|
19262
|
+
V(), A();
|
|
19263
19263
|
}, Z = () => {
|
|
19264
19264
|
z.isOpen && y.focusedKey != null ? v === y.focusedKey ? ue() : _(y.focusedKey) : a ? ae() : ue();
|
|
19265
|
-
},
|
|
19265
|
+
}, ne = () => {
|
|
19266
19266
|
var pe, $e;
|
|
19267
19267
|
let ke = ($e = (pe = m.getItem(v)) === null || pe === void 0 ? void 0 : pe.textValue) !== null && $e !== void 0 ? $e : "";
|
|
19268
|
-
a && g !== ke ? ae() : ue(),
|
|
19268
|
+
a && g !== ke ? ae() : ue(), A();
|
|
19269
19269
|
}, fe = (pe) => {
|
|
19270
|
-
pe ? r === "focus" && R(null, "focus") : i &&
|
|
19271
|
-
}, xe = ce(() => z.isOpen ? l ? E :
|
|
19270
|
+
pe ? r === "focus" && R(null, "focus") : i && ne(), d(pe);
|
|
19271
|
+
}, xe = ce(() => z.isOpen ? l ? E : I : $, [
|
|
19272
19272
|
z.isOpen,
|
|
19273
19273
|
E,
|
|
19274
|
-
|
|
19274
|
+
I,
|
|
19275
19275
|
l,
|
|
19276
19276
|
$
|
|
19277
19277
|
]);
|
|
@@ -19279,7 +19279,7 @@ function eR(e) {
|
|
|
19279
19279
|
...z,
|
|
19280
19280
|
toggle: D,
|
|
19281
19281
|
open: R,
|
|
19282
|
-
close:
|
|
19282
|
+
close: ne,
|
|
19283
19283
|
selectionManager: y,
|
|
19284
19284
|
selectedKey: v,
|
|
19285
19285
|
setSelectedKey: _,
|
|
@@ -20163,34 +20163,34 @@ const SR = W_, dh = M(me)`
|
|
|
20163
20163
|
// fallback title when header title is not a string
|
|
20164
20164
|
} = t, [m, y] = ee(!1), [v, _] = ee(null), S = K(null);
|
|
20165
20165
|
q(() => {
|
|
20166
|
-
tn.forEach(r, (
|
|
20167
|
-
const $ =
|
|
20168
|
-
an(
|
|
20166
|
+
tn.forEach(r, (I) => {
|
|
20167
|
+
const $ = I.props;
|
|
20168
|
+
an(I) && I.type === vd && typeof $.title == "string" ? _($.title) : an(I) && I.type === vd && typeof $.dialogTitle == "string" && _($.dialogTitle);
|
|
20169
20169
|
});
|
|
20170
20170
|
}, [r]);
|
|
20171
|
-
function P(
|
|
20172
|
-
var
|
|
20171
|
+
function P(I) {
|
|
20172
|
+
var T;
|
|
20173
20173
|
if (!a)
|
|
20174
20174
|
return;
|
|
20175
20175
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
20176
|
-
!((
|
|
20176
|
+
!((T = S.current) != null && T.contains(I.target)) && c && s();
|
|
20177
20177
|
}
|
|
20178
|
-
function E(
|
|
20179
|
-
o && c && Tb("escape", s)(
|
|
20178
|
+
function E(I) {
|
|
20179
|
+
o && c && Tb("escape", s)(I);
|
|
20180
20180
|
}
|
|
20181
20181
|
return Fr("keydown", E), Fr("click", P), q(() => {
|
|
20182
20182
|
l(c);
|
|
20183
20183
|
}, [l, c]), nl(() => {
|
|
20184
|
-
let
|
|
20185
|
-
return c && (
|
|
20184
|
+
let I;
|
|
20185
|
+
return c && (I = Ec().setTimeout(() => {
|
|
20186
20186
|
var $;
|
|
20187
20187
|
($ = S == null ? void 0 : S.current) == null || $.focus();
|
|
20188
20188
|
}, _i(f.motion_duration_medium))), () => {
|
|
20189
|
-
Ec().clearTimeout(
|
|
20189
|
+
Ec().clearTimeout(I);
|
|
20190
20190
|
};
|
|
20191
20191
|
}, [c]), Fr("blur", () => {
|
|
20192
20192
|
y(!0);
|
|
20193
|
-
}), Fr("focus", (
|
|
20193
|
+
}), Fr("focus", (I) => {
|
|
20194
20194
|
y(!1);
|
|
20195
20195
|
}), /* @__PURE__ */ oe(Cn, { children: [
|
|
20196
20196
|
/* @__PURE__ */ w(Bm, { isActive: c }),
|
|
@@ -20204,7 +20204,7 @@ const SR = W_, dh = M(me)`
|
|
|
20204
20204
|
enter: 0,
|
|
20205
20205
|
exit: _i(f.motion_duration_medium)
|
|
20206
20206
|
},
|
|
20207
|
-
children: (
|
|
20207
|
+
children: (I) => /* @__PURE__ */ w(
|
|
20208
20208
|
me,
|
|
20209
20209
|
{
|
|
20210
20210
|
"data-id": "drawer-wrapper",
|
|
@@ -20227,7 +20227,7 @@ const SR = W_, dh = M(me)`
|
|
|
20227
20227
|
"aria-label": v ?? b,
|
|
20228
20228
|
ref: S,
|
|
20229
20229
|
role: "dialog",
|
|
20230
|
-
$state:
|
|
20230
|
+
$state: I,
|
|
20231
20231
|
$viewportPosition: u,
|
|
20232
20232
|
tabIndex: -1,
|
|
20233
20233
|
bg: "white",
|
|
@@ -20439,30 +20439,30 @@ const $d = [
|
|
|
20439
20439
|
onDismiss: () => n.onOpenChange(!1)
|
|
20440
20440
|
}));
|
|
20441
20441
|
}), Sf = /* @__PURE__ */ H((e, t) => {
|
|
20442
|
-
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: l, onEntryFocus: s, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: g, onDismiss: p, disableOutsideScroll: h, ...b } = e, m = jn(Dt, n), y = Ca(Dt, n), v = ka(n), _ = Y_(n), S = NR(n), [P, E] = ee(null),
|
|
20442
|
+
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: l, onEntryFocus: s, onEscapeKeyDown: c, onPointerDownOutside: d, onFocusOutside: u, onInteractOutside: g, onDismiss: p, disableOutsideScroll: h, ...b } = e, m = jn(Dt, n), y = Ca(Dt, n), v = ka(n), _ = Y_(n), S = NR(n), [P, E] = ee(null), I = K(null), $ = De(t, I, m.onContentChange), T = K(0), F = K(""), x = K(0), z = K(null), R = K("right"), D = K(0), U = h ? su : po, A = h ? {
|
|
20443
20443
|
as: nr,
|
|
20444
20444
|
allowPinchZoom: !0
|
|
20445
|
-
} : void 0,
|
|
20445
|
+
} : void 0, te = (X) => {
|
|
20446
20446
|
var B, j;
|
|
20447
20447
|
const W = F.current + X, N = S().filter(
|
|
20448
|
-
(
|
|
20448
|
+
(ne) => !ne.disabled
|
|
20449
20449
|
), G = document.activeElement, ie = (B = N.find(
|
|
20450
|
-
(
|
|
20450
|
+
(ne) => ne.ref.current === G
|
|
20451
20451
|
)) === null || B === void 0 ? void 0 : B.textValue, ae = N.map(
|
|
20452
|
-
(
|
|
20452
|
+
(ne) => ne.textValue
|
|
20453
20453
|
), ue = pA(ae, W, ie), Z = (j = N.find(
|
|
20454
|
-
(
|
|
20454
|
+
(ne) => ne.textValue === ue
|
|
20455
20455
|
)) === null || j === void 0 ? void 0 : j.ref.current;
|
|
20456
|
-
(function
|
|
20457
|
-
F.current = fe, window.clearTimeout(
|
|
20458
|
-
() =>
|
|
20456
|
+
(function ne(fe) {
|
|
20457
|
+
F.current = fe, window.clearTimeout(T.current), fe !== "" && (T.current = window.setTimeout(
|
|
20458
|
+
() => ne(""),
|
|
20459
20459
|
1e3
|
|
20460
20460
|
));
|
|
20461
20461
|
})(W), Z && setTimeout(
|
|
20462
20462
|
() => Z.focus()
|
|
20463
20463
|
);
|
|
20464
20464
|
};
|
|
20465
|
-
q(() => () => window.clearTimeout(
|
|
20465
|
+
q(() => () => window.clearTimeout(T.current), []), iu();
|
|
20466
20466
|
const V = re((X) => {
|
|
20467
20467
|
var B, j;
|
|
20468
20468
|
return R.current === ((B = z.current) === null || B === void 0 ? void 0 : B.side) && hA(X, (j = z.current) === null || j === void 0 ? void 0 : j.area);
|
|
@@ -20477,7 +20477,7 @@ const $d = [
|
|
|
20477
20477
|
]),
|
|
20478
20478
|
onItemLeave: re((X) => {
|
|
20479
20479
|
var B;
|
|
20480
|
-
V(X) || ((B =
|
|
20480
|
+
V(X) || ((B = I.current) === null || B === void 0 || B.focus(), E(null));
|
|
20481
20481
|
}, [
|
|
20482
20482
|
V
|
|
20483
20483
|
]),
|
|
@@ -20490,12 +20490,12 @@ const $d = [
|
|
|
20490
20490
|
onPointerGraceIntentChange: re((X) => {
|
|
20491
20491
|
z.current = X;
|
|
20492
20492
|
}, [])
|
|
20493
|
-
}, /* @__PURE__ */ C(U,
|
|
20493
|
+
}, /* @__PURE__ */ C(U, A, /* @__PURE__ */ C(au, {
|
|
20494
20494
|
asChild: !0,
|
|
20495
20495
|
trapped: o,
|
|
20496
20496
|
onMountAutoFocus: se(a, (X) => {
|
|
20497
20497
|
var B;
|
|
20498
|
-
X.preventDefault(), (B =
|
|
20498
|
+
X.preventDefault(), (B = I.current) === null || B === void 0 || B.focus();
|
|
20499
20499
|
}),
|
|
20500
20500
|
onUnmountAutoFocus: i
|
|
20501
20501
|
}, /* @__PURE__ */ C(ga, {
|
|
@@ -20531,8 +20531,8 @@ const $d = [
|
|
|
20531
20531
|
},
|
|
20532
20532
|
onKeyDown: se(b.onKeyDown, (X) => {
|
|
20533
20533
|
const j = X.target.closest("[data-radix-menu-content]") === X.currentTarget, W = X.ctrlKey || X.altKey || X.metaKey, N = X.key.length === 1;
|
|
20534
|
-
j && (X.key === "Tab" && X.preventDefault(), !W && N &&
|
|
20535
|
-
const G =
|
|
20534
|
+
j && (X.key === "Tab" && X.preventDefault(), !W && N && te(X.key));
|
|
20535
|
+
const G = I.current;
|
|
20536
20536
|
if (X.target !== G || !MR.includes(X.key))
|
|
20537
20537
|
return;
|
|
20538
20538
|
X.preventDefault();
|
|
@@ -20544,7 +20544,7 @@ const $d = [
|
|
|
20544
20544
|
H_.includes(X.key) && ae.reverse(), uA(ae);
|
|
20545
20545
|
}),
|
|
20546
20546
|
onBlur: se(e.onBlur, (X) => {
|
|
20547
|
-
X.currentTarget.contains(X.target) || (window.clearTimeout(
|
|
20547
|
+
X.currentTarget.contains(X.target) || (window.clearTimeout(T.current), F.current = "");
|
|
20548
20548
|
}),
|
|
20549
20549
|
onPointerMove: se(e.onPointerMove, ca((X) => {
|
|
20550
20550
|
const B = X.target, j = D.current !== X.clientX;
|
|
@@ -23045,14 +23045,14 @@ function XI(e) {
|
|
|
23045
23045
|
if (_ !== o.allowedOperations) {
|
|
23046
23046
|
let P = Xs(_), E = P[0];
|
|
23047
23047
|
if (typeof e.getDropOperation == "function") {
|
|
23048
|
-
let
|
|
23049
|
-
E = ri(_, e.getDropOperation(
|
|
23048
|
+
let I = new ni(v.dataTransfer);
|
|
23049
|
+
E = ri(_, e.getDropOperation(I, P));
|
|
23050
23050
|
}
|
|
23051
23051
|
o.dropEffect = qs[E] || "none";
|
|
23052
23052
|
}
|
|
23053
23053
|
if (typeof e.getDropOperationForPoint == "function") {
|
|
23054
|
-
let P = new ni(v.dataTransfer), E = v.currentTarget.getBoundingClientRect(),
|
|
23055
|
-
o.dropEffect = qs[
|
|
23054
|
+
let P = new ni(v.dataTransfer), E = v.currentTarget.getBoundingClientRect(), I = ri(_, e.getDropOperationForPoint(P, Xs(_), o.x - E.x, o.y - E.y));
|
|
23055
|
+
o.dropEffect = qs[I] || "none";
|
|
23056
23056
|
}
|
|
23057
23057
|
if (o.allowedOperations = _, v.dataTransfer.dropEffect = o.dropEffect, o.dropEffect === "none" && S !== "none" ? i(v) : o.dropEffect !== "none" && S === "none" && a(v), typeof e.onDropMove == "function" && o.dropEffect !== "none") {
|
|
23058
23058
|
let P = v.currentTarget.getBoundingClientRect();
|
|
@@ -23081,8 +23081,8 @@ function XI(e) {
|
|
|
23081
23081
|
P = ri(_, e.getDropOperation(E, S));
|
|
23082
23082
|
}
|
|
23083
23083
|
if (typeof e.getDropOperationForPoint == "function") {
|
|
23084
|
-
let E = new ni(v.dataTransfer),
|
|
23085
|
-
P = ri(_, e.getDropOperationForPoint(E, S, v.clientX -
|
|
23084
|
+
let E = new ni(v.dataTransfer), I = v.currentTarget.getBoundingClientRect();
|
|
23085
|
+
P = ri(_, e.getDropOperationForPoint(E, S, v.clientX - I.x, v.clientY - I.y));
|
|
23086
23086
|
}
|
|
23087
23087
|
o.x = v.clientX, o.y = v.clientY, o.allowedOperations = _, o.dropEffect = qs[P] || "none", v.dataTransfer.dropEffect = o.dropEffect, P !== "cancel" && a(v);
|
|
23088
23088
|
}, c = (v) => {
|
|
@@ -23092,14 +23092,14 @@ function XI(e) {
|
|
|
23092
23092
|
o.dragOverElements.size > 0 || (o.dropEffect !== "none" && i(v), clearTimeout(o.dropActivateTimer));
|
|
23093
23093
|
}, d = (v) => {
|
|
23094
23094
|
if (v.preventDefault(), v.stopPropagation(), o.dropEffect, typeof e.onDrop == "function") {
|
|
23095
|
-
let S = $1[o.dropEffect], P = KI(v.dataTransfer), E = v.currentTarget.getBoundingClientRect(),
|
|
23095
|
+
let S = $1[o.dropEffect], P = KI(v.dataTransfer), E = v.currentTarget.getBoundingClientRect(), I = {
|
|
23096
23096
|
type: "drop",
|
|
23097
23097
|
x: v.clientX - E.x,
|
|
23098
23098
|
y: v.clientY - E.y,
|
|
23099
23099
|
items: P,
|
|
23100
23100
|
dropOperation: S
|
|
23101
23101
|
};
|
|
23102
|
-
e.onDrop(
|
|
23102
|
+
e.onDrop(I);
|
|
23103
23103
|
}
|
|
23104
23104
|
let _ = {
|
|
23105
23105
|
..._1
|
|
@@ -23363,19 +23363,19 @@ function wO(e, t, n) {
|
|
|
23363
23363
|
throw new TypeError(cO);
|
|
23364
23364
|
t = yh(t) || 0, wd(n) && (d = !!n.leading, u = "maxWait" in n, a = u ? _O(yh(n.maxWait) || 0, t) : a, g = "trailing" in n ? !!n.trailing : g);
|
|
23365
23365
|
function p(E) {
|
|
23366
|
-
var
|
|
23367
|
-
return r = o = void 0, c = E, i = e.apply($,
|
|
23366
|
+
var I = r, $ = o;
|
|
23367
|
+
return r = o = void 0, c = E, i = e.apply($, I), i;
|
|
23368
23368
|
}
|
|
23369
23369
|
function h(E) {
|
|
23370
23370
|
return c = E, l = setTimeout(y, t), d ? p(E) : i;
|
|
23371
23371
|
}
|
|
23372
23372
|
function b(E) {
|
|
23373
|
-
var
|
|
23374
|
-
return u ? xO(
|
|
23373
|
+
var I = E - s, $ = E - c, T = t - I;
|
|
23374
|
+
return u ? xO(T, a - $) : T;
|
|
23375
23375
|
}
|
|
23376
23376
|
function m(E) {
|
|
23377
|
-
var
|
|
23378
|
-
return s === void 0 ||
|
|
23377
|
+
var I = E - s, $ = E - c;
|
|
23378
|
+
return s === void 0 || I >= t || I < 0 || u && $ >= a;
|
|
23379
23379
|
}
|
|
23380
23380
|
function y() {
|
|
23381
23381
|
var E = Js();
|
|
@@ -23393,8 +23393,8 @@ function wO(e, t, n) {
|
|
|
23393
23393
|
return l === void 0 ? i : v(Js());
|
|
23394
23394
|
}
|
|
23395
23395
|
function P() {
|
|
23396
|
-
var E = Js(),
|
|
23397
|
-
if (r = arguments, o = this, s = E,
|
|
23396
|
+
var E = Js(), I = m(E);
|
|
23397
|
+
if (r = arguments, o = this, s = E, I) {
|
|
23398
23398
|
if (l === void 0)
|
|
23399
23399
|
return h(s);
|
|
23400
23400
|
if (u)
|
|
@@ -23543,19 +23543,19 @@ function FO(e) {
|
|
|
23543
23543
|
return e;
|
|
23544
23544
|
}
|
|
23545
23545
|
function LO(e) {
|
|
23546
|
-
var t = e.apiKey, n = e.libraries, r = n === void 0 ? "places" : n, o = e.googleMapsScriptBaseUrl, a = o === void 0 ? CO.GOOGLE_MAP_SCRIPT_BASE_URL : o, i = e.debounce, l = i === void 0 ? 300 : i, s = e.options, c = s === void 0 ? {} : s, d = e.sessionToken, u = e.language, g = u ? "&language=".concat(u) : "", p = "".concat(a, "?key=").concat(t, "&libraries=").concat(r).concat(g), h = (0, st.useState)([]), b = kr(h, 2), m = b[0], y = b[1], v = (0, st.useState)(!1), _ = kr(v, 2), S = _[0], P = _[1], E = (0, st.useState)(null),
|
|
23546
|
+
var t = e.apiKey, n = e.libraries, r = n === void 0 ? "places" : n, o = e.googleMapsScriptBaseUrl, a = o === void 0 ? CO.GOOGLE_MAP_SCRIPT_BASE_URL : o, i = e.debounce, l = i === void 0 ? 300 : i, s = e.options, c = s === void 0 ? {} : s, d = e.sessionToken, u = e.language, g = u ? "&language=".concat(u) : "", p = "".concat(a, "?key=").concat(t, "&libraries=").concat(r).concat(g), h = (0, st.useState)([]), b = kr(h, 2), m = b[0], y = b[1], v = (0, st.useState)(!1), _ = kr(v, 2), S = _[0], P = _[1], E = (0, st.useState)(null), I = kr(E, 2), $ = I[0], T = I[1], F = (0, st.useState)(!1), x = kr(F, 2), z = x[0], R = x[1], D = (0, st.useState)(!1), U = kr(D, 2), A = U[0], te = U[1], V = (0, st.useState)([]), X = kr(V, 2), B = X[0], j = X[1], W = (0, st.useRef)(null), N = (0, st.useRef)(null), G = (0, st.useRef)(null), ie = (0, st.useCallback)(function() {
|
|
23547
23547
|
return (0, xh.loadGoogleMapScript)(a, p);
|
|
23548
23548
|
}, [a, p]), ae = (0, st.useCallback)((0, _h.default)(function(Z) {
|
|
23549
23549
|
W.current && Z.input && W.current.getPlacePredictions(Tr(Tr(Tr({}, d && G.current ? {
|
|
23550
23550
|
sessionToken: G.current
|
|
23551
|
-
} : {}), c), Z), function(
|
|
23552
|
-
P(!1), y(
|
|
23551
|
+
} : {}), c), Z), function(ne) {
|
|
23552
|
+
P(!1), y(ne || []);
|
|
23553
23553
|
});
|
|
23554
23554
|
}, l), [l]), ue = (0, st.useCallback)((0, _h.default)(function(Z) {
|
|
23555
23555
|
W.current && Z.input && W.current.getQueryPredictions(Tr(Tr(Tr({}, d && G.current ? {
|
|
23556
23556
|
sessionToken: G.current
|
|
23557
|
-
} : {}), c), Z), function(
|
|
23558
|
-
R(!1), j(
|
|
23557
|
+
} : {}), c), Z), function(ne) {
|
|
23558
|
+
R(!1), j(ne || []);
|
|
23559
23559
|
});
|
|
23560
23560
|
}, l), [l]);
|
|
23561
23561
|
return (0, st.useEffect)(function() {
|
|
@@ -23575,21 +23575,21 @@ function LO(e) {
|
|
|
23575
23575
|
placesAutocompleteService: W.current,
|
|
23576
23576
|
placePredictions: $ ? m : [],
|
|
23577
23577
|
isPlacePredictionsLoading: S,
|
|
23578
|
-
getPlacePredictions: function(
|
|
23579
|
-
if (
|
|
23580
|
-
|
|
23578
|
+
getPlacePredictions: function(ne) {
|
|
23579
|
+
if (ne.input) {
|
|
23580
|
+
T(ne.input), P(!0), ae(ne);
|
|
23581
23581
|
return;
|
|
23582
23582
|
}
|
|
23583
|
-
y([]),
|
|
23583
|
+
y([]), T(null), ae(ne), P(!1);
|
|
23584
23584
|
},
|
|
23585
|
-
queryPredictions:
|
|
23585
|
+
queryPredictions: A ? B : [],
|
|
23586
23586
|
isQueryPredictionsLoading: z,
|
|
23587
|
-
getQueryPredictions: function(
|
|
23588
|
-
if (
|
|
23589
|
-
ne
|
|
23587
|
+
getQueryPredictions: function(ne) {
|
|
23588
|
+
if (ne.input) {
|
|
23589
|
+
te(ne.input), R(!0), ue(ne);
|
|
23590
23590
|
return;
|
|
23591
23591
|
}
|
|
23592
|
-
j([]),
|
|
23592
|
+
j([]), te(null), ue(ne), R(!1);
|
|
23593
23593
|
},
|
|
23594
23594
|
refreshSessionToken: function() {
|
|
23595
23595
|
G.current = new google.maps.places.AutocompleteSessionToken();
|
|
@@ -23627,9 +23627,9 @@ const Eh = M(dt)`
|
|
|
23627
23627
|
// isOpen = false, // for debugging purposes
|
|
23628
23628
|
..._
|
|
23629
23629
|
}) => {
|
|
23630
|
-
const [S, P] = ee(i ?? l ?? ""), E = Br(),
|
|
23630
|
+
const [S, P] = ee(i ?? l ?? ""), E = Br(), I = K(null), $ = Pa({
|
|
23631
23631
|
// isOpen,
|
|
23632
|
-
}), { overlayProps:
|
|
23632
|
+
}), { overlayProps: T } = P$({}, E), { fields: F = zO } = n;
|
|
23633
23633
|
q(() => {
|
|
23634
23634
|
l && P(l);
|
|
23635
23635
|
}, [l]);
|
|
@@ -23639,7 +23639,7 @@ const Eh = M(dt)`
|
|
|
23639
23639
|
placesService: R,
|
|
23640
23640
|
placePredictions: D,
|
|
23641
23641
|
getPlacePredictions: U,
|
|
23642
|
-
isPlacePredictionsLoading:
|
|
23642
|
+
isPlacePredictionsLoading: A
|
|
23643
23643
|
} = kO({
|
|
23644
23644
|
apiKey: e,
|
|
23645
23645
|
libraries: r,
|
|
@@ -23650,16 +23650,16 @@ const Eh = M(dt)`
|
|
|
23650
23650
|
...n
|
|
23651
23651
|
},
|
|
23652
23652
|
sessionToken: !0
|
|
23653
|
-
}), [
|
|
23653
|
+
}), [te, V] = ee(-1), X = re(
|
|
23654
23654
|
(Z) => {
|
|
23655
23655
|
Z && (R == null || R.getDetails(
|
|
23656
23656
|
{ placeId: Z.place_id ?? "", fields: F, sessionToken: x },
|
|
23657
|
-
(
|
|
23658
|
-
if (
|
|
23659
|
-
const xe = NO(
|
|
23660
|
-
xe && P(xe), s == null || s(
|
|
23657
|
+
(ne, fe) => {
|
|
23658
|
+
if (ne && fe === google.maps.places.PlacesServiceStatus.OK) {
|
|
23659
|
+
const xe = NO(ne);
|
|
23660
|
+
xe && P(xe), s == null || s(ne), $.close(), V(-1);
|
|
23661
23661
|
} else
|
|
23662
|
-
console.error("Error getting place details.", fe,
|
|
23662
|
+
console.error("Error getting place details.", fe, ne);
|
|
23663
23663
|
z();
|
|
23664
23664
|
}
|
|
23665
23665
|
));
|
|
@@ -23670,32 +23670,32 @@ const Eh = M(dt)`
|
|
|
23670
23670
|
document.activeElement === E.current && $.close();
|
|
23671
23671
|
});
|
|
23672
23672
|
const B = (Z) => {
|
|
23673
|
-
const
|
|
23674
|
-
|
|
23675
|
-
input:
|
|
23673
|
+
const ne = Z.target.value;
|
|
23674
|
+
ne.length === 0 ? (P(ne), s == null || s(null), V(-1)) : (U({
|
|
23675
|
+
input: ne,
|
|
23676
23676
|
locationRestriction: n.bounds,
|
|
23677
23677
|
sessionToken: x
|
|
23678
|
-
}), P(
|
|
23678
|
+
}), P(ne), V(-1));
|
|
23679
23679
|
}, j = (Z) => {
|
|
23680
23680
|
Z.target.select(), z(), $.isOpen || $.open();
|
|
23681
23681
|
}, W = () => {
|
|
23682
23682
|
$.isOpen && ($.close(), V(-1));
|
|
23683
23683
|
}, N = {
|
|
23684
|
-
extra: y.length && (v || !
|
|
23685
|
-
predictions: S.length > 0 && !
|
|
23686
|
-
}, G = (Z,
|
|
23684
|
+
extra: y.length && (v || !A && D.length === 0 || S.length === 0),
|
|
23685
|
+
predictions: S.length > 0 && !A && D.length > 0
|
|
23686
|
+
}, G = (Z, ne) => {
|
|
23687
23687
|
const fe = (N.predictions ? D.length : 0) + (N.extra ? y.length : 0);
|
|
23688
23688
|
if (fe === 0)
|
|
23689
23689
|
return;
|
|
23690
|
-
let xe =
|
|
23691
|
-
|
|
23690
|
+
let xe = te;
|
|
23691
|
+
ne === "down" && (xe = (te + 1) % fe), ne === "up" && (xe = (te - 1 + fe) % fe), V(xe);
|
|
23692
23692
|
}, ie = (Z) => {
|
|
23693
|
-
var
|
|
23694
|
-
Z.key === "Tab" ?
|
|
23693
|
+
var ne;
|
|
23694
|
+
Z.key === "Tab" ? te !== -1 && (N.predictions && te < D.length ? X(D[te]) : N.extra && ((ne = y[te - (N.predictions ? D.length : 0)]) == null || ne.onClick(), $.close(), V(-1))) : Z.key === "Enter" ? Z.preventDefault() : Z.key === "ArrowDown" ? ($.open(), G(Z, "down")) : Z.key === "ArrowUp" ? ($.open(), G(Z, "up")) : (V(-1), $.isOpen || $.open());
|
|
23695
23695
|
}, ae = (Z) => {
|
|
23696
|
-
var
|
|
23697
|
-
Z.key === "Enter" &&
|
|
23698
|
-
}, ue = N.extra && (
|
|
23696
|
+
var ne;
|
|
23697
|
+
Z.key === "Enter" && te !== -1 && (N.predictions && te < D.length ? X(D[te]) : N.extra && ((ne = y[te - (N.predictions ? D.length : 0)]) == null || ne.onClick(), $.close(), V(-1)));
|
|
23698
|
+
}, ue = N.extra && (A || N.predictions && D.length);
|
|
23699
23699
|
return /* @__PURE__ */ oe(jt, { children: [
|
|
23700
23700
|
u ? /* @__PURE__ */ oe(
|
|
23701
23701
|
Ye,
|
|
@@ -23740,26 +23740,26 @@ const Eh = M(dt)`
|
|
|
23740
23740
|
{
|
|
23741
23741
|
className: "google-input-popover",
|
|
23742
23742
|
targetRef: E,
|
|
23743
|
-
popoverRef:
|
|
23743
|
+
popoverRef: I,
|
|
23744
23744
|
state: $,
|
|
23745
|
-
...
|
|
23745
|
+
...T,
|
|
23746
23746
|
isTargetWidth: !0,
|
|
23747
23747
|
placement: "bottom start",
|
|
23748
23748
|
isNonModal: !0,
|
|
23749
23749
|
children: /* @__PURE__ */ oe(me, { onMouseDown: (Z) => Z.preventDefault(), children: [
|
|
23750
|
-
N.predictions ? D.map((Z,
|
|
23750
|
+
N.predictions ? D.map((Z, ne) => /* @__PURE__ */ w(
|
|
23751
23751
|
Eh,
|
|
23752
23752
|
{
|
|
23753
23753
|
p: f.spacing_200,
|
|
23754
23754
|
truncate: !0,
|
|
23755
23755
|
onClick: () => X(Z),
|
|
23756
23756
|
style: { cursor: "pointer" },
|
|
23757
|
-
backgroundColor:
|
|
23757
|
+
backgroundColor: te === ne ? f.color_gray_opacity_5 : "transparent",
|
|
23758
23758
|
children: Z.description
|
|
23759
23759
|
},
|
|
23760
23760
|
Z.place_id
|
|
23761
23761
|
)) : null,
|
|
23762
|
-
|
|
23762
|
+
A ? /* @__PURE__ */ w(
|
|
23763
23763
|
dt,
|
|
23764
23764
|
{
|
|
23765
23765
|
as: "span",
|
|
@@ -23789,7 +23789,7 @@ const Eh = M(dt)`
|
|
|
23789
23789
|
}
|
|
23790
23790
|
}
|
|
23791
23791
|
) : null,
|
|
23792
|
-
N.extra ? y.map((Z,
|
|
23792
|
+
N.extra ? y.map((Z, ne) => /* @__PURE__ */ w(
|
|
23793
23793
|
Eh,
|
|
23794
23794
|
{
|
|
23795
23795
|
p: f.spacing_200,
|
|
@@ -23798,7 +23798,7 @@ const Eh = M(dt)`
|
|
|
23798
23798
|
Z.onClick(), $.close();
|
|
23799
23799
|
},
|
|
23800
23800
|
style: { cursor: "pointer" },
|
|
23801
|
-
backgroundColor: (N.predictions ?
|
|
23801
|
+
backgroundColor: (N.predictions ? te === ne + D.length : te === ne) ? f.color_gray_opacity_5 : "transparent",
|
|
23802
23802
|
children: Z.label
|
|
23803
23803
|
},
|
|
23804
23804
|
Z.id
|
|
@@ -24031,14 +24031,14 @@ function VO(e) {
|
|
|
24031
24031
|
m(), c == null || c(), t.current = window.setTimeout(() => {
|
|
24032
24032
|
(a === void 0 || isNaN(a) || n === void 0 || isNaN(n) || n < a) && E(60);
|
|
24033
24033
|
}, x);
|
|
24034
|
-
}),
|
|
24034
|
+
}), I = Me((x) => {
|
|
24035
24035
|
m(), u == null || u(), t.current = window.setTimeout(() => {
|
|
24036
|
-
(o === void 0 || isNaN(o) || n === void 0 || isNaN(n) || n > o) &&
|
|
24036
|
+
(o === void 0 || isNaN(o) || n === void 0 || isNaN(n) || n > o) && I(60);
|
|
24037
24037
|
}, x);
|
|
24038
24038
|
});
|
|
24039
24039
|
let $ = (x) => {
|
|
24040
24040
|
x.preventDefault();
|
|
24041
|
-
}, { addGlobalListener:
|
|
24041
|
+
}, { addGlobalListener: T, removeAllGlobalListeners: F } = Cu();
|
|
24042
24042
|
return {
|
|
24043
24043
|
spinButtonProps: {
|
|
24044
24044
|
role: "spinbutton",
|
|
@@ -24055,7 +24055,7 @@ function VO(e) {
|
|
|
24055
24055
|
},
|
|
24056
24056
|
incrementButtonProps: {
|
|
24057
24057
|
onPressStart: () => {
|
|
24058
|
-
E(400),
|
|
24058
|
+
E(400), T(window, "contextmenu", $);
|
|
24059
24059
|
},
|
|
24060
24060
|
onPressEnd: () => {
|
|
24061
24061
|
m(), F();
|
|
@@ -24065,7 +24065,7 @@ function VO(e) {
|
|
|
24065
24065
|
},
|
|
24066
24066
|
decrementButtonProps: {
|
|
24067
24067
|
onPressStart: () => {
|
|
24068
|
-
|
|
24068
|
+
I(400), T(window, "contextmenu", $);
|
|
24069
24069
|
},
|
|
24070
24070
|
onPressEnd: () => {
|
|
24071
24071
|
m(), F();
|
|
@@ -24320,14 +24320,14 @@ Kx = {
|
|
|
24320
24320
|
};
|
|
24321
24321
|
function jO(e, t, n) {
|
|
24322
24322
|
let { id: r, decrementAriaLabel: o, incrementAriaLabel: a, isDisabled: i, isReadOnly: l, isRequired: s, minValue: c, maxValue: d, autoFocus: u, validationState: g, label: p, formatOptions: h, onBlur: b = () => {
|
|
24323
|
-
}, onFocus: m, onFocusChange: y, onKeyDown: v, onKeyUp: _, description: S, errorMessage: P, ...E } = e, { increment:
|
|
24323
|
+
}, onFocus: m, onFocusChange: y, onKeyDown: v, onKeyUp: _, description: S, errorMessage: P, ...E } = e, { increment: I, incrementToMax: $, decrement: T, decrementToMin: F, numberValue: x, inputValue: z, commit: R } = t;
|
|
24324
24324
|
const D = kt(/* @__PURE__ */ BO(Kx));
|
|
24325
|
-
let U = yt(r), { focusProps:
|
|
24325
|
+
let U = yt(r), { focusProps: A } = Mu({
|
|
24326
24326
|
onBlur: () => {
|
|
24327
24327
|
R();
|
|
24328
24328
|
}
|
|
24329
|
-
}),
|
|
24330
|
-
|
|
24329
|
+
}), te = Tg(h), V = ce(() => te.resolvedOptions(), [
|
|
24330
|
+
te
|
|
24331
24331
|
]), X = Tg({
|
|
24332
24332
|
...h,
|
|
24333
24333
|
currencySign: void 0
|
|
@@ -24340,9 +24340,9 @@ function jO(e, t, n) {
|
|
|
24340
24340
|
isRequired: s,
|
|
24341
24341
|
maxValue: d,
|
|
24342
24342
|
minValue: c,
|
|
24343
|
-
onIncrement:
|
|
24343
|
+
onIncrement: I,
|
|
24344
24344
|
onIncrementToMax: $,
|
|
24345
|
-
onDecrement:
|
|
24345
|
+
onDecrement: T,
|
|
24346
24346
|
onDecrementToMin: F,
|
|
24347
24347
|
value: x,
|
|
24348
24348
|
textValue: B
|
|
@@ -24350,17 +24350,17 @@ function jO(e, t, n) {
|
|
|
24350
24350
|
isDisabled: i,
|
|
24351
24351
|
onFocusWithinChange: ie
|
|
24352
24352
|
}), ue = re((lt) => {
|
|
24353
|
-
Math.abs(lt.deltaY) <= Math.abs(lt.deltaX) || (lt.deltaY > 0 ?
|
|
24353
|
+
Math.abs(lt.deltaY) <= Math.abs(lt.deltaX) || (lt.deltaY > 0 ? I() : lt.deltaY < 0 && T());
|
|
24354
24354
|
}, [
|
|
24355
|
-
|
|
24356
|
-
|
|
24355
|
+
T,
|
|
24356
|
+
I
|
|
24357
24357
|
]);
|
|
24358
24358
|
f7({
|
|
24359
24359
|
onScroll: ue,
|
|
24360
24360
|
isDisabled: i || l || !G
|
|
24361
24361
|
}, n);
|
|
24362
|
-
let
|
|
24363
|
-
n0() ? fe ? xe = "text" :
|
|
24362
|
+
let ne = V.maximumFractionDigits > 0, fe = isNaN(t.minValue) || t.minValue < 0, xe = "numeric";
|
|
24363
|
+
n0() ? fe ? xe = "text" : ne && (xe = "decimal") : ku() && (fe ? xe = "numeric" : ne && (xe = "decimal"));
|
|
24364
24364
|
let pe = (lt) => {
|
|
24365
24365
|
t.validate(lt) && t.setInputValue(lt);
|
|
24366
24366
|
}, $e = Kn(e), { labelProps: ke, inputProps: yn, descriptionProps: _n, errorMessageProps: hr } = Y9({
|
|
@@ -24388,7 +24388,7 @@ function jO(e, t, n) {
|
|
|
24388
24388
|
onKeyUp: _,
|
|
24389
24389
|
description: S,
|
|
24390
24390
|
errorMessage: P
|
|
24391
|
-
}, t, n), br = _e(j,
|
|
24391
|
+
}, t, n), br = _e(j, A, yn, {
|
|
24392
24392
|
// override the spinbutton role, we can't focus a spin button with VO
|
|
24393
24393
|
role: null,
|
|
24394
24394
|
// ignore aria-roledescription on iOS so that required state will announce when it is present
|
|
@@ -24463,8 +24463,8 @@ function UO(e) {
|
|
|
24463
24463
|
y
|
|
24464
24464
|
]), S = isNaN(r) ? 1 : r;
|
|
24465
24465
|
v.style === "percent" && isNaN(r) && (S = 0.01);
|
|
24466
|
-
let [P, E] = ee(u), [
|
|
24467
|
-
(!Object.is(u, P) || s !==
|
|
24466
|
+
let [P, E] = ee(u), [I, $] = ee(s), [T, F] = ee(o);
|
|
24467
|
+
(!Object.is(u, P) || s !== I || o !== T) && (h(_(u)), E(u), $(s), F(o));
|
|
24468
24468
|
let x = ce(() => b.parse(p), [
|
|
24469
24469
|
b,
|
|
24470
24470
|
p
|
|
@@ -24494,9 +24494,9 @@ function UO(e) {
|
|
|
24494
24494
|
}, U = () => {
|
|
24495
24495
|
let j = R("-", n);
|
|
24496
24496
|
j === u && h(_(j)), g(j);
|
|
24497
|
-
},
|
|
24497
|
+
}, A = () => {
|
|
24498
24498
|
n != null && g(Wn(n, t, n, S));
|
|
24499
|
-
},
|
|
24499
|
+
}, te = () => {
|
|
24500
24500
|
t != null && g(t);
|
|
24501
24501
|
}, V = ce(() => !c && !d && (isNaN(x) || isNaN(n) || Wn(x, t, n, S) > x || Zs("+", x, S) <= n), [
|
|
24502
24502
|
c,
|
|
@@ -24516,9 +24516,9 @@ function UO(e) {
|
|
|
24516
24516
|
return {
|
|
24517
24517
|
validate: (j) => b.isValidPartialNumber(j, t, n),
|
|
24518
24518
|
increment: D,
|
|
24519
|
-
incrementToMax:
|
|
24519
|
+
incrementToMax: A,
|
|
24520
24520
|
decrement: U,
|
|
24521
|
-
decrementToMin:
|
|
24521
|
+
decrementToMin: te,
|
|
24522
24522
|
canIncrement: V,
|
|
24523
24523
|
canDecrement: X,
|
|
24524
24524
|
minValue: t,
|
|
@@ -24674,9 +24674,9 @@ const w2 = H(
|
|
|
24674
24674
|
placeholder: s,
|
|
24675
24675
|
locale: p
|
|
24676
24676
|
}), {
|
|
24677
|
-
labelProps:
|
|
24677
|
+
labelProps: I,
|
|
24678
24678
|
groupProps: $,
|
|
24679
|
-
inputProps:
|
|
24679
|
+
inputProps: T,
|
|
24680
24680
|
incrementButtonProps: F,
|
|
24681
24681
|
decrementButtonProps: x,
|
|
24682
24682
|
errorMessageProps: z
|
|
@@ -24694,14 +24694,14 @@ const w2 = H(
|
|
|
24694
24694
|
P
|
|
24695
24695
|
);
|
|
24696
24696
|
let R = null;
|
|
24697
|
-
typeof i == "string" ? R = /* @__PURE__ */ oe(Ye, { ...
|
|
24697
|
+
typeof i == "string" ? R = /* @__PURE__ */ oe(Ye, { ...I, mb: f.spacing_150, bold: b, children: [
|
|
24698
24698
|
i,
|
|
24699
24699
|
m ? /* @__PURE__ */ w(ht, { children: m }) : null
|
|
24700
|
-
] }) : an(i) && (R = sr(i, { ...
|
|
24700
|
+
] }) : an(i) && (R = sr(i, { ...I }));
|
|
24701
24701
|
const D = (U) => {
|
|
24702
|
-
const { formatOptions:
|
|
24703
|
-
if ((
|
|
24704
|
-
const V = Intl.NumberFormat(p,
|
|
24702
|
+
const { formatOptions: A } = e;
|
|
24703
|
+
if ((A == null ? void 0 : A.style) === "unit") {
|
|
24704
|
+
const V = Intl.NumberFormat(p, A), X = V.formatToParts(1).filter((G) => G.type === "unit"), B = V.formatToParts(3).filter((G) => G.type === "unit"), j = Dh(
|
|
24705
24705
|
X,
|
|
24706
24706
|
E.inputValue
|
|
24707
24707
|
), W = Dh(B, E.inputValue);
|
|
@@ -24727,7 +24727,7 @@ const w2 = H(
|
|
|
24727
24727
|
HO,
|
|
24728
24728
|
{
|
|
24729
24729
|
height: g,
|
|
24730
|
-
...
|
|
24730
|
+
...T,
|
|
24731
24731
|
"data-value": isNaN(E.numberValue) ? E.inputValue : E.numberValue,
|
|
24732
24732
|
paddingSize: a,
|
|
24733
24733
|
ref: P,
|
|
@@ -24746,7 +24746,7 @@ const w2 = H(
|
|
|
24746
24746
|
{
|
|
24747
24747
|
height: g,
|
|
24748
24748
|
ref: P,
|
|
24749
|
-
...
|
|
24749
|
+
...T,
|
|
24750
24750
|
"data-value": isNaN(E.numberValue) ? E.inputValue : E.numberValue,
|
|
24751
24751
|
paddingSize: a,
|
|
24752
24752
|
required: o,
|
|
@@ -24830,7 +24830,7 @@ const E2 = H(
|
|
|
24830
24830
|
lineHeight: _,
|
|
24831
24831
|
boldLabel: S = !0,
|
|
24832
24832
|
...P
|
|
24833
|
-
} = r, E = Vn(t),
|
|
24833
|
+
} = r, E = Vn(t), I = vn(), $ = d ?? I, { labelProps: T, inputProps: F, errorMessageProps: x } = Da(
|
|
24834
24834
|
{
|
|
24835
24835
|
...P,
|
|
24836
24836
|
isDisabled: $,
|
|
@@ -24841,10 +24841,10 @@ const E2 = H(
|
|
|
24841
24841
|
E
|
|
24842
24842
|
);
|
|
24843
24843
|
let z = null;
|
|
24844
|
-
return typeof h == "string" ? z = /* @__PURE__ */ oe(Ye, { ...
|
|
24844
|
+
return typeof h == "string" ? z = /* @__PURE__ */ oe(Ye, { ...T, mb: f.spacing_150, bold: S, children: [
|
|
24845
24845
|
h,
|
|
24846
24846
|
r.tooltipContent ? /* @__PURE__ */ w(ht, { children: r.tooltipContent }) : null
|
|
24847
|
-
] }) : an(h) && (z = sr(h, { ...
|
|
24847
|
+
] }) : an(h) && (z = sr(h, { ...T, mb: f.spacing_100 })), q(() => {
|
|
24848
24848
|
o && E.current && E.current.focus();
|
|
24849
24849
|
}, [o, E]), /* @__PURE__ */ oe(jt, { "data-id": "input-wrapper", children: [
|
|
24850
24850
|
z,
|
|
@@ -25019,109 +25019,127 @@ const Ph = (e, t, n, r = []) => {
|
|
|
25019
25019
|
p: a = "7px 8px",
|
|
25020
25020
|
// todo: change this to be a size prop that has two or more presets?
|
|
25021
25021
|
onChange: i = () => !1,
|
|
25022
|
-
onToggle: l = (
|
|
25022
|
+
onToggle: l = (v) => v,
|
|
25023
25023
|
onCancel: s = () => !1,
|
|
25024
25024
|
disabled: c = !1,
|
|
25025
25025
|
valid: d = !0,
|
|
25026
25026
|
label: u,
|
|
25027
25027
|
labelId: g,
|
|
25028
25028
|
allowedOutsideClickContainers: p,
|
|
25029
|
-
|
|
25029
|
+
isEditing: h,
|
|
25030
|
+
hideSave: b = !1,
|
|
25031
|
+
hideLabel: m = !1,
|
|
25032
|
+
...y
|
|
25030
25033
|
}) => {
|
|
25031
|
-
const
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25035
|
-
|
|
25036
|
-
(
|
|
25034
|
+
const v = K(null), [_, S] = ee(!1), [P, E] = ee(!!h);
|
|
25035
|
+
q(() => {
|
|
25036
|
+
E(h ?? !1);
|
|
25037
|
+
}, [h]);
|
|
25038
|
+
const I = Ot(y, zn.propNames ?? []), $ = Ot(y, Nu.propNames ?? []), T = re(() => {
|
|
25039
|
+
S(!1), l(!1), E(!1);
|
|
25040
|
+
}, [l]), F = re(() => {
|
|
25041
|
+
l(!0), E(!0);
|
|
25042
|
+
}, [l]), x = re(
|
|
25043
|
+
(U) => {
|
|
25037
25044
|
if (r && r === n) {
|
|
25038
|
-
|
|
25045
|
+
T();
|
|
25039
25046
|
return;
|
|
25040
25047
|
}
|
|
25041
|
-
|
|
25048
|
+
S(!0), (async () => {
|
|
25042
25049
|
try {
|
|
25043
25050
|
await i();
|
|
25044
25051
|
} catch {
|
|
25045
25052
|
throw new Error("failed to handle async inline edit change");
|
|
25046
25053
|
}
|
|
25047
25054
|
})().then(() => {
|
|
25048
|
-
|
|
25055
|
+
T();
|
|
25049
25056
|
}).catch(() => {
|
|
25050
|
-
|
|
25057
|
+
T();
|
|
25051
25058
|
});
|
|
25052
25059
|
},
|
|
25053
|
-
[r, i,
|
|
25054
|
-
)
|
|
25055
|
-
|
|
25056
|
-
const
|
|
25057
|
-
|
|
25060
|
+
[r, i, T, n]
|
|
25061
|
+
);
|
|
25062
|
+
q(() => {
|
|
25063
|
+
const U = (A) => {
|
|
25064
|
+
P && A.key === "Escape" && (A.preventDefault(), A.stopPropagation(), T(), z.current());
|
|
25065
|
+
};
|
|
25066
|
+
return document.addEventListener("keydown", U), () => {
|
|
25067
|
+
document.removeEventListener("keydown", U);
|
|
25068
|
+
};
|
|
25069
|
+
}, [P, T]);
|
|
25070
|
+
const z = K(s);
|
|
25071
|
+
z.current = s, q(() => {
|
|
25072
|
+
if (h !== void 0)
|
|
25073
|
+
return;
|
|
25074
|
+
const U = () => {
|
|
25075
|
+
T(), z.current();
|
|
25058
25076
|
};
|
|
25059
25077
|
return document.addEventListener(
|
|
25060
25078
|
"mousedown",
|
|
25061
|
-
(
|
|
25062
|
-
|
|
25063
|
-
|
|
25064
|
-
|
|
25079
|
+
(A) => Ph(
|
|
25080
|
+
A,
|
|
25081
|
+
v,
|
|
25082
|
+
U,
|
|
25065
25083
|
p
|
|
25066
25084
|
)
|
|
25067
25085
|
), () => {
|
|
25068
25086
|
document.removeEventListener(
|
|
25069
25087
|
"mousedown",
|
|
25070
|
-
(
|
|
25071
|
-
|
|
25072
|
-
|
|
25073
|
-
|
|
25088
|
+
(A) => Ph(
|
|
25089
|
+
A,
|
|
25090
|
+
v,
|
|
25091
|
+
U,
|
|
25074
25092
|
p
|
|
25075
25093
|
)
|
|
25076
25094
|
);
|
|
25077
25095
|
};
|
|
25078
|
-
}, [p,
|
|
25079
|
-
const
|
|
25096
|
+
}, [p, h, T]), q(() => T, []);
|
|
25097
|
+
const R = re(() => u && typeof u == "string" ? /* @__PURE__ */ w(
|
|
25080
25098
|
Ye,
|
|
25081
25099
|
{
|
|
25082
25100
|
bold: !0,
|
|
25083
25101
|
size: "medium",
|
|
25084
25102
|
htmlFor: u,
|
|
25085
25103
|
color: f.color_gray_52,
|
|
25086
|
-
onClick: () => !c &&
|
|
25104
|
+
onClick: () => !c && F(),
|
|
25087
25105
|
mb: f.spacing_100,
|
|
25088
25106
|
children: u
|
|
25089
25107
|
}
|
|
25090
|
-
) : /* @__PURE__ */ w(Cn, { children: u }), [c,
|
|
25091
|
-
if (
|
|
25108
|
+
) : /* @__PURE__ */ w(Cn, { children: u }), [c, F, u]);
|
|
25109
|
+
if (P)
|
|
25092
25110
|
return /* @__PURE__ */ oe(Cn, { children: [
|
|
25093
|
-
/* @__PURE__ */ w(
|
|
25111
|
+
m ? null : /* @__PURE__ */ w(R, {}),
|
|
25094
25112
|
/* @__PURE__ */ w(
|
|
25095
25113
|
gf,
|
|
25096
25114
|
{
|
|
25097
25115
|
tabIndex: 0,
|
|
25098
|
-
ref:
|
|
25099
|
-
right: /* @__PURE__ */ w(Kt, { ml: f.spacing_100, children: /* @__PURE__ */ w(
|
|
25116
|
+
ref: v,
|
|
25117
|
+
right: b ? null : /* @__PURE__ */ w(Kt, { ml: f.spacing_100, children: /* @__PURE__ */ w(
|
|
25100
25118
|
ZO,
|
|
25101
25119
|
{
|
|
25102
|
-
onClick:
|
|
25103
|
-
disabled:
|
|
25120
|
+
onClick: x,
|
|
25121
|
+
disabled: _,
|
|
25104
25122
|
"aria-label": "save",
|
|
25105
|
-
children:
|
|
25123
|
+
children: _ ? /* @__PURE__ */ w(dS, {}) : /* @__PURE__ */ w(rl, {})
|
|
25106
25124
|
}
|
|
25107
25125
|
) }),
|
|
25108
|
-
children: /* @__PURE__ */ w(QO, { saving:
|
|
25126
|
+
children: /* @__PURE__ */ w(QO, { saving: _, children: e })
|
|
25109
25127
|
}
|
|
25110
25128
|
)
|
|
25111
25129
|
] });
|
|
25112
|
-
const
|
|
25130
|
+
const D = {
|
|
25113
25131
|
p: a,
|
|
25114
|
-
...
|
|
25115
|
-
|
|
25132
|
+
...I,
|
|
25133
|
+
...$
|
|
25116
25134
|
};
|
|
25117
|
-
return g ?
|
|
25118
|
-
/* @__PURE__ */ w(
|
|
25135
|
+
return g ? D.id = g : u !== void 0 && (D.id = u), /* @__PURE__ */ oe(Cn, { children: [
|
|
25136
|
+
/* @__PURE__ */ w(R, {}),
|
|
25119
25137
|
/* @__PURE__ */ oe(
|
|
25120
25138
|
tM,
|
|
25121
25139
|
{
|
|
25122
|
-
onClick:
|
|
25123
|
-
...
|
|
25124
|
-
"data-id":
|
|
25140
|
+
onClick: F,
|
|
25141
|
+
...D,
|
|
25142
|
+
"data-id": y["data-id"],
|
|
25125
25143
|
disabled: c,
|
|
25126
25144
|
children: [
|
|
25127
25145
|
`${n}` || /* @__PURE__ */ w(eM, { children: t }),
|
|
@@ -25282,14 +25300,14 @@ function bB({
|
|
|
25282
25300
|
_,
|
|
25283
25301
|
i,
|
|
25284
25302
|
b
|
|
25285
|
-
]),
|
|
25303
|
+
]), I = Sd(s, y.value), $ = _ === "24" ? mi(I) : bi(I), [T, F] = ee($), x = Br(), z = K(null), R = Br(), D = Pa({}), U = Lc(y.value);
|
|
25286
25304
|
q(() => {
|
|
25287
25305
|
if (y.value && (U == null ? void 0 : U.compare(y.value)) !== 0 && !D.isOpen) {
|
|
25288
25306
|
const W = Sd(null, y.value), N = _ === "24" ? mi(W) : bi(W);
|
|
25289
25307
|
F(N);
|
|
25290
25308
|
}
|
|
25291
25309
|
}, [y.value, U, _, D.isOpen]);
|
|
25292
|
-
const
|
|
25310
|
+
const A = re(
|
|
25293
25311
|
(W) => {
|
|
25294
25312
|
var ie;
|
|
25295
25313
|
const N = R.current, G = (ie = N == null ? void 0 : N.getElementsByClassName(
|
|
@@ -25305,7 +25323,7 @@ function bB({
|
|
|
25305
25323
|
}
|
|
25306
25324
|
},
|
|
25307
25325
|
[R]
|
|
25308
|
-
),
|
|
25326
|
+
), te = re(
|
|
25309
25327
|
(W) => {
|
|
25310
25328
|
var ie;
|
|
25311
25329
|
const N = R.current, G = (ie = N == null ? void 0 : N.getElementsByClassName(
|
|
@@ -25325,15 +25343,15 @@ function bB({
|
|
|
25325
25343
|
E,
|
|
25326
25344
|
y.value
|
|
25327
25345
|
);
|
|
25328
|
-
|
|
25346
|
+
te(W);
|
|
25329
25347
|
}
|
|
25330
25348
|
}, [
|
|
25331
|
-
|
|
25349
|
+
T,
|
|
25332
25350
|
D.isOpen,
|
|
25333
25351
|
V,
|
|
25334
25352
|
s,
|
|
25335
25353
|
y.value,
|
|
25336
|
-
|
|
25354
|
+
te,
|
|
25337
25355
|
i,
|
|
25338
25356
|
_,
|
|
25339
25357
|
y,
|
|
@@ -25361,9 +25379,9 @@ function bB({
|
|
|
25361
25379
|
[c, _, D]
|
|
25362
25380
|
), j = re(
|
|
25363
25381
|
(W) => {
|
|
25364
|
-
F(W.target.value),
|
|
25382
|
+
F(W.target.value), A(W.target.value), D.isOpen || D.open();
|
|
25365
25383
|
},
|
|
25366
|
-
[D,
|
|
25384
|
+
[D, A]
|
|
25367
25385
|
);
|
|
25368
25386
|
return _l(() => {
|
|
25369
25387
|
document.activeElement === x.current && D.close();
|
|
@@ -25391,7 +25409,7 @@ function bB({
|
|
|
25391
25409
|
placeholder: d,
|
|
25392
25410
|
name: t,
|
|
25393
25411
|
id: r,
|
|
25394
|
-
value:
|
|
25412
|
+
value: T,
|
|
25395
25413
|
fontSize: f.font_size_175,
|
|
25396
25414
|
lineHeight: f.font_size_200,
|
|
25397
25415
|
height: f.font_size_400,
|
|
@@ -25403,11 +25421,11 @@ function bB({
|
|
|
25403
25421
|
D.isOpen || D.open();
|
|
25404
25422
|
},
|
|
25405
25423
|
onBlur: (W) => {
|
|
25406
|
-
R.current && W.relatedTarget && R.current.contains(W.relatedTarget) || B(
|
|
25424
|
+
R.current && W.relatedTarget && R.current.contains(W.relatedTarget) || B(T);
|
|
25407
25425
|
},
|
|
25408
25426
|
onKeyDown: (W) => {
|
|
25409
25427
|
W.key === "Enter" && D.isOpen && W.preventDefault();
|
|
25410
|
-
let N = E.findIndex((G) => G ===
|
|
25428
|
+
let N = E.findIndex((G) => G === T);
|
|
25411
25429
|
N === -1 && (N = E.findIndex((G) => {
|
|
25412
25430
|
if (W.key === "ArrowDown")
|
|
25413
25431
|
return G === Th(
|
|
@@ -25417,14 +25435,14 @@ function bB({
|
|
|
25417
25435
|
);
|
|
25418
25436
|
if (W.key === "ArrowUp")
|
|
25419
25437
|
return G === oM(y, i, _);
|
|
25420
|
-
})), W.key === "ArrowDown" && E[N + 1] && (D.isOpen || D.open(), F(E[N + 1] ??
|
|
25438
|
+
})), W.key === "ArrowDown" && E[N + 1] && (D.isOpen || D.open(), F(E[N + 1] ?? T), A(
|
|
25421
25439
|
E[N + 1] ?? ""
|
|
25422
|
-
)), W.key === "ArrowUp" && E[N - 1] && (D.isOpen || D.open(), F(E[N - 1] ??
|
|
25440
|
+
)), W.key === "ArrowUp" && E[N - 1] && (D.isOpen || D.open(), F(E[N - 1] ?? T), A(
|
|
25423
25441
|
E[N - 1] ?? ""
|
|
25424
25442
|
));
|
|
25425
25443
|
},
|
|
25426
25444
|
onKeyUp: (W) => {
|
|
25427
|
-
W.key === "Enter" && B(
|
|
25445
|
+
W.key === "Enter" && B(T);
|
|
25428
25446
|
},
|
|
25429
25447
|
onMouseUp: (W) => {
|
|
25430
25448
|
W.preventDefault();
|
|
@@ -25469,7 +25487,7 @@ function bB({
|
|
|
25469
25487
|
Gl,
|
|
25470
25488
|
{
|
|
25471
25489
|
value: W,
|
|
25472
|
-
isFocused: W ===
|
|
25490
|
+
isFocused: W === T,
|
|
25473
25491
|
className: W || "",
|
|
25474
25492
|
onClick: () => {
|
|
25475
25493
|
B(W);
|
|
@@ -25553,12 +25571,12 @@ function mB({
|
|
|
25553
25571
|
)
|
|
25554
25572
|
) : void 0, E = p.value ? oi(
|
|
25555
25573
|
new Date(p.value.year, p.value.month - 1, p.value.day)
|
|
25556
|
-
) : "", [
|
|
25574
|
+
) : "", [I, $] = ee(
|
|
25557
25575
|
P ?? E
|
|
25558
|
-
), [
|
|
25576
|
+
), [T, F] = ee(
|
|
25559
25577
|
p.value ?? p.defaultValue
|
|
25560
25578
|
), [x, z] = ee(
|
|
25561
|
-
|
|
25579
|
+
T
|
|
25562
25580
|
), { overlayProps: R } = uf(
|
|
25563
25581
|
{ type: "dialog" },
|
|
25564
25582
|
S,
|
|
@@ -25578,7 +25596,7 @@ function mB({
|
|
|
25578
25596
|
), l == null || l(V), S.close();
|
|
25579
25597
|
},
|
|
25580
25598
|
[l, S]
|
|
25581
|
-
),
|
|
25599
|
+
), A = re((V) => {
|
|
25582
25600
|
const X = Qs.findIndex(
|
|
25583
25601
|
(B) => B.startsWith(V.toLowerCase())
|
|
25584
25602
|
);
|
|
@@ -25591,14 +25609,14 @@ function mB({
|
|
|
25591
25609
|
};
|
|
25592
25610
|
return window.addEventListener("resize", V), V(), () => window.removeEventListener("resize", V);
|
|
25593
25611
|
}, [m, h, p.hideIcon]);
|
|
25594
|
-
const
|
|
25612
|
+
const te = re(
|
|
25595
25613
|
(V) => {
|
|
25596
25614
|
if ($(V.target.value), S.isOpen || S.open(), V.target.value.length) {
|
|
25597
25615
|
const B = V.target.value.replace(",", "").split(" ");
|
|
25598
25616
|
let j, W, N;
|
|
25599
25617
|
for (const ie of B) {
|
|
25600
25618
|
if (ie.match(/[a-zA-Z]+/)) {
|
|
25601
|
-
const ae =
|
|
25619
|
+
const ae = A(ie);
|
|
25602
25620
|
ae && (j = ae);
|
|
25603
25621
|
}
|
|
25604
25622
|
if (ie.match(/^[0-9]+$/)) {
|
|
@@ -25620,7 +25638,7 @@ function mB({
|
|
|
25620
25638
|
F(G), z(G);
|
|
25621
25639
|
}
|
|
25622
25640
|
},
|
|
25623
|
-
[
|
|
25641
|
+
[A, S]
|
|
25624
25642
|
);
|
|
25625
25643
|
return _l(() => {
|
|
25626
25644
|
document.activeElement === v.current && S.close();
|
|
@@ -25648,7 +25666,7 @@ function mB({
|
|
|
25648
25666
|
placeholder: u,
|
|
25649
25667
|
name: t,
|
|
25650
25668
|
id: r,
|
|
25651
|
-
value:
|
|
25669
|
+
value: I,
|
|
25652
25670
|
fontSize: f.font_size_175,
|
|
25653
25671
|
lineHeight: f.font_size_200,
|
|
25654
25672
|
height: f.font_size_400,
|
|
@@ -25660,18 +25678,18 @@ function mB({
|
|
|
25660
25678
|
V.target.select(), S.isOpen || S.open();
|
|
25661
25679
|
},
|
|
25662
25680
|
onBlur: (V) => {
|
|
25663
|
-
y.current && V.relatedTarget && y.current.contains(V.relatedTarget) || (
|
|
25681
|
+
y.current && V.relatedTarget && y.current.contains(V.relatedTarget) || (I && T ? U(T) : I && x ? U(x) : (l == null || l(void 0), S.close()));
|
|
25664
25682
|
},
|
|
25665
25683
|
onKeyDown: (V) => {
|
|
25666
25684
|
V.key === "Enter" && S.isOpen && V.preventDefault(), S.isOpen || S.open();
|
|
25667
25685
|
},
|
|
25668
25686
|
onKeyUp: (V) => {
|
|
25669
|
-
V.key === "Enter" && (
|
|
25687
|
+
V.key === "Enter" && (I && x ? U(x) : (l == null || l(void 0), S.close()));
|
|
25670
25688
|
},
|
|
25671
25689
|
onMouseUp: (V) => {
|
|
25672
25690
|
V.preventDefault();
|
|
25673
25691
|
},
|
|
25674
|
-
onChange:
|
|
25692
|
+
onChange: te,
|
|
25675
25693
|
...Qd(p)
|
|
25676
25694
|
}
|
|
25677
25695
|
),
|
|
@@ -25704,7 +25722,7 @@ function mB({
|
|
|
25704
25722
|
t$,
|
|
25705
25723
|
{
|
|
25706
25724
|
ref: y,
|
|
25707
|
-
value:
|
|
25725
|
+
value: T,
|
|
25708
25726
|
focusedValue: x,
|
|
25709
25727
|
onChange: (V) => {
|
|
25710
25728
|
const X = new Fe(V.year, V.month, V.day);
|
|
@@ -26221,10 +26239,10 @@ const wM = M.span`
|
|
|
26221
26239
|
},
|
|
26222
26240
|
y,
|
|
26223
26241
|
b
|
|
26224
|
-
), { buttonProps:
|
|
26242
|
+
), { buttonProps: I } = ho(
|
|
26225
26243
|
{ ..._, autoFocus: r, excludeFromTabOrder: a, isDisabled: l },
|
|
26226
26244
|
b
|
|
26227
|
-
), $ = y.selectionManager.isSelectAll, [
|
|
26245
|
+
), $ = y.selectionManager.isSelectAll, [T, F] = L.useState(!1), x = () => y.selectionManager.toggleSelectAll(), z = () => y.selectionManager.setFocusedKey(null), R = (D, U = !1, A) => /* @__PURE__ */ w(Kt, { children: U && A ? /* @__PURE__ */ w("span", { children: A }) : /* @__PURE__ */ w("span", { children: D.map((te) => te.textValue).join(", ") }) });
|
|
26228
26246
|
return /* @__PURE__ */ oe(
|
|
26229
26247
|
jt,
|
|
26230
26248
|
{
|
|
@@ -26252,7 +26270,7 @@ const wM = M.span`
|
|
|
26252
26270
|
/* @__PURE__ */ w(Q7, { focusRingClass: "select--focused", autoFocus: r, children: /* @__PURE__ */ oe(
|
|
26253
26271
|
I2,
|
|
26254
26272
|
{
|
|
26255
|
-
...
|
|
26273
|
+
...I,
|
|
26256
26274
|
ref: b,
|
|
26257
26275
|
isOpen: y.isOpen,
|
|
26258
26276
|
"data-state": h ? "invalid" : void 0,
|
|
@@ -26283,8 +26301,8 @@ const wM = M.span`
|
|
|
26283
26301
|
F(!0), z();
|
|
26284
26302
|
},
|
|
26285
26303
|
onMouseOut: () => F(!1),
|
|
26286
|
-
isFocused:
|
|
26287
|
-
tabIndex:
|
|
26304
|
+
isFocused: T,
|
|
26305
|
+
tabIndex: T ? 0 : -1,
|
|
26288
26306
|
onClick: x,
|
|
26289
26307
|
"aria-label": "Select All",
|
|
26290
26308
|
children: [
|
|
@@ -29341,20 +29359,20 @@ function WN(e) {
|
|
|
29341
29359
|
dark: vc[700]
|
|
29342
29360
|
} : u, p = e.type, h = p === void 0 ? "light" : p, b = e.contrastThreshold, m = b === void 0 ? 3 : b, y = e.tonalOffset, v = y === void 0 ? 0.2 : y, _ = Nt(e, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
|
29343
29361
|
function S($) {
|
|
29344
|
-
var
|
|
29362
|
+
var T = Yh($, $c.text.primary) >= m ? $c.text.primary : Xh.text.primary;
|
|
29345
29363
|
if (process.env.NODE_ENV !== "production") {
|
|
29346
|
-
var F = Yh($,
|
|
29347
|
-
F < 3 && console.error(["Material-UI: The contrast ratio of ".concat(F, ":1 for ").concat(
|
|
29364
|
+
var F = Yh($, T);
|
|
29365
|
+
F < 3 && console.error(["Material-UI: The contrast ratio of ".concat(F, ":1 for ").concat(T, " on ").concat($), "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
29348
29366
|
`));
|
|
29349
29367
|
}
|
|
29350
|
-
return
|
|
29368
|
+
return T;
|
|
29351
29369
|
}
|
|
29352
|
-
var P = function(
|
|
29370
|
+
var P = function(T) {
|
|
29353
29371
|
var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500, x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300, z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
|
29354
|
-
if (
|
|
29372
|
+
if (T = O({}, T), !T.main && T[F] && (T.main = T[F]), !T.main)
|
|
29355
29373
|
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(F, "` property.") : Zi(4, F));
|
|
29356
|
-
if (typeof
|
|
29357
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(
|
|
29374
|
+
if (typeof T.main != "string")
|
|
29375
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(T.main), `\` was provided instead.
|
|
29358
29376
|
|
|
29359
29377
|
Did you intend to use one of the following approaches?
|
|
29360
29378
|
|
|
@@ -29366,14 +29384,14 @@ const theme1 = createTheme({ palette: {
|
|
|
29366
29384
|
|
|
29367
29385
|
const theme2 = createTheme({ palette: {
|
|
29368
29386
|
primary: { main: green[500] },
|
|
29369
|
-
} });`) : Zi(5, JSON.stringify(
|
|
29370
|
-
return Jh(
|
|
29387
|
+
} });`) : Zi(5, JSON.stringify(T.main)));
|
|
29388
|
+
return Jh(T, "light", x, v), Jh(T, "dark", z, v), T.contrastText || (T.contrastText = S(T.main)), T;
|
|
29371
29389
|
}, E = {
|
|
29372
29390
|
dark: $c,
|
|
29373
29391
|
light: Xh
|
|
29374
29392
|
};
|
|
29375
29393
|
process.env.NODE_ENV !== "production" && (E[h] || console.error("Material-UI: The palette type `".concat(h, "` is not supported.")));
|
|
29376
|
-
var
|
|
29394
|
+
var I = uo(O({
|
|
29377
29395
|
// A collection of common colors.
|
|
29378
29396
|
common: tl,
|
|
29379
29397
|
// The palette type, can be light or dark.
|
|
@@ -29404,7 +29422,7 @@ const theme2 = createTheme({ palette: {
|
|
|
29404
29422
|
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
29405
29423
|
tonalOffset: v
|
|
29406
29424
|
}, E[h]), _);
|
|
29407
|
-
return
|
|
29425
|
+
return I;
|
|
29408
29426
|
}
|
|
29409
29427
|
function _w(e) {
|
|
29410
29428
|
return Math.round(e * 1e5) / 1e5;
|
|
@@ -29422,17 +29440,17 @@ function GN(e, t) {
|
|
|
29422
29440
|
process.env.NODE_ENV !== "production" && (typeof i != "number" && console.error("Material-UI: `fontSize` is required to be a number."), typeof m != "number" && console.error("Material-UI: `htmlFontSize` is required to be a number."));
|
|
29423
29441
|
var S = i / 14, P = v || function($) {
|
|
29424
29442
|
return "".concat($ / m * S, "rem");
|
|
29425
|
-
}, E = function(
|
|
29443
|
+
}, E = function(T, F, x, z, R) {
|
|
29426
29444
|
return O({
|
|
29427
29445
|
fontFamily: o,
|
|
29428
|
-
fontWeight:
|
|
29446
|
+
fontWeight: T,
|
|
29429
29447
|
fontSize: P(F),
|
|
29430
29448
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
29431
29449
|
lineHeight: x
|
|
29432
29450
|
}, o === eb ? {
|
|
29433
29451
|
letterSpacing: "".concat(_w(z / F), "em")
|
|
29434
29452
|
} : {}, R, y);
|
|
29435
|
-
},
|
|
29453
|
+
}, I = {
|
|
29436
29454
|
h1: E(s, 96, 1.167, -1.5),
|
|
29437
29455
|
h2: E(s, 60, 1.2, -0.5),
|
|
29438
29456
|
h3: E(d, 48, 1.167, 0),
|
|
@@ -29458,7 +29476,7 @@ function GN(e, t) {
|
|
|
29458
29476
|
fontWeightRegular: d,
|
|
29459
29477
|
fontWeightMedium: g,
|
|
29460
29478
|
fontWeightBold: h
|
|
29461
|
-
},
|
|
29479
|
+
}, I), _, {
|
|
29462
29480
|
clone: !1
|
|
29463
29481
|
// No need to clone deep
|
|
29464
29482
|
});
|
|
@@ -29596,11 +29614,11 @@ function cz() {
|
|
|
29596
29614
|
return uo(S, P);
|
|
29597
29615
|
}, h), process.env.NODE_ENV !== "production") {
|
|
29598
29616
|
var v = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], _ = function S(P, E) {
|
|
29599
|
-
var
|
|
29617
|
+
var I = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, $;
|
|
29600
29618
|
for ($ in P) {
|
|
29601
|
-
var
|
|
29602
|
-
|
|
29603
|
-
root: jr({}, "&$".concat($),
|
|
29619
|
+
var T = P[$];
|
|
29620
|
+
I === 1 ? $.indexOf("Mui") === 0 && T && S(T, $, I + 1) : v.indexOf($) !== -1 && Object.keys(T).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(E, "` component increases ") + "the CSS specificity of the `".concat($, "` internal state."), "You can not override it like this: ", JSON.stringify(P, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
29621
|
+
root: jr({}, "&$".concat($), T)
|
|
29604
29622
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
|
|
29605
29623
|
`)), P[$] = {});
|
|
29606
29624
|
}
|
|
@@ -30853,22 +30871,22 @@ const RK = "ToastViewport", AK = [
|
|
|
30853
30871
|
const y = (v) => {
|
|
30854
30872
|
const _ = v.altKey || v.ctrlKey || v.metaKey;
|
|
30855
30873
|
if (v.key === "Tab" && !_) {
|
|
30856
|
-
const $ = document.activeElement,
|
|
30857
|
-
if (v.target === m &&
|
|
30874
|
+
const $ = document.activeElement, T = v.shiftKey;
|
|
30875
|
+
if (v.target === m && T) {
|
|
30858
30876
|
var P;
|
|
30859
30877
|
(P = c.current) === null || P === void 0 || P.focus();
|
|
30860
30878
|
return;
|
|
30861
30879
|
}
|
|
30862
30880
|
const z = b({
|
|
30863
|
-
tabbingDirection:
|
|
30881
|
+
tabbingDirection: T ? "backwards" : "forwards"
|
|
30864
30882
|
}), R = z.findIndex(
|
|
30865
30883
|
(D) => D === $
|
|
30866
30884
|
);
|
|
30867
30885
|
if (_c(z.slice(R + 1)))
|
|
30868
30886
|
v.preventDefault();
|
|
30869
30887
|
else {
|
|
30870
|
-
var E,
|
|
30871
|
-
|
|
30888
|
+
var E, I;
|
|
30889
|
+
T ? (E = c.current) === null || E === void 0 || E.focus() : (I = d.current) === null || I === void 0 || I.focus();
|
|
30872
30890
|
}
|
|
30873
30891
|
}
|
|
30874
30892
|
};
|
|
@@ -30961,7 +30979,7 @@ const RK = "ToastViewport", AK = [
|
|
|
30961
30979
|
const { __scopeToast: n, type: r = "foreground", duration: o, open: a, onClose: i, onEscapeKeyDown: l, onPause: s, onResume: c, onSwipeStart: d, onSwipeMove: u, onSwipeCancel: g, onSwipeEnd: p, ...h } = e, b = ts(ns, n), [m, y] = ee(null), v = De(
|
|
30962
30980
|
t,
|
|
30963
30981
|
(D) => y(D)
|
|
30964
|
-
), _ = K(null), S = K(null), P = o || b.duration, E = K(0),
|
|
30982
|
+
), _ = K(null), S = K(null), P = o || b.duration, E = K(0), I = K(P), $ = K(0), { onToastAdd: T, onToastRemove: F } = b, x = Xe(() => {
|
|
30965
30983
|
var D;
|
|
30966
30984
|
(m == null ? void 0 : m.contains(document.activeElement)) && ((D = b.viewport) === null || D === void 0 || D.focus()), i();
|
|
30967
30985
|
}), z = re((D) => {
|
|
@@ -30973,13 +30991,13 @@ const RK = "ToastViewport", AK = [
|
|
|
30973
30991
|
const D = b.viewport;
|
|
30974
30992
|
if (D) {
|
|
30975
30993
|
const U = () => {
|
|
30976
|
-
z(
|
|
30977
|
-
},
|
|
30978
|
-
const
|
|
30979
|
-
|
|
30994
|
+
z(I.current), c == null || c();
|
|
30995
|
+
}, A = () => {
|
|
30996
|
+
const te = (/* @__PURE__ */ new Date()).getTime() - E.current;
|
|
30997
|
+
I.current = I.current - te, window.clearTimeout($.current), s == null || s();
|
|
30980
30998
|
};
|
|
30981
|
-
return D.addEventListener(Kd,
|
|
30982
|
-
D.removeEventListener(Kd,
|
|
30999
|
+
return D.addEventListener(Kd, A), D.addEventListener(Vd, U), () => {
|
|
31000
|
+
D.removeEventListener(Kd, A), D.removeEventListener(Vd, U);
|
|
30983
31001
|
};
|
|
30984
31002
|
}
|
|
30985
31003
|
}, [
|
|
@@ -30995,8 +31013,8 @@ const RK = "ToastViewport", AK = [
|
|
|
30995
31013
|
P,
|
|
30996
31014
|
b.isClosePausedRef,
|
|
30997
31015
|
z
|
|
30998
|
-
]), q(() => (
|
|
30999
|
-
|
|
31016
|
+
]), q(() => (T(), () => F()), [
|
|
31017
|
+
T,
|
|
31000
31018
|
F
|
|
31001
31019
|
]);
|
|
31002
31020
|
const R = ce(() => m ? R5(m) : null, [
|
|
@@ -31044,29 +31062,29 @@ const RK = "ToastViewport", AK = [
|
|
|
31044
31062
|
onPointerMove: se(e.onPointerMove, (D) => {
|
|
31045
31063
|
if (!_.current)
|
|
31046
31064
|
return;
|
|
31047
|
-
const U = D.clientX - _.current.x,
|
|
31065
|
+
const U = D.clientX - _.current.x, A = D.clientY - _.current.y, te = !!S.current, V = [
|
|
31048
31066
|
"left",
|
|
31049
31067
|
"right"
|
|
31050
31068
|
].includes(b.swipeDirection), X = [
|
|
31051
31069
|
"left",
|
|
31052
31070
|
"up"
|
|
31053
|
-
].includes(b.swipeDirection) ? Math.min : Math.max, B = V ? X(0, U) : 0, j = V ? 0 : X(0,
|
|
31071
|
+
].includes(b.swipeDirection) ? Math.min : Math.max, B = V ? X(0, U) : 0, j = V ? 0 : X(0, A), W = D.pointerType === "touch" ? 10 : 2, N = {
|
|
31054
31072
|
x: B,
|
|
31055
31073
|
y: j
|
|
31056
31074
|
}, G = {
|
|
31057
31075
|
originalEvent: D,
|
|
31058
31076
|
delta: N
|
|
31059
31077
|
};
|
|
31060
|
-
|
|
31078
|
+
te ? (S.current = N, li(FK, u, G, {
|
|
31061
31079
|
discrete: !1
|
|
31062
31080
|
})) : ub(N, b.swipeDirection, W) ? (S.current = N, li(MK, d, G, {
|
|
31063
31081
|
discrete: !1
|
|
31064
|
-
}), D.target.setPointerCapture(D.pointerId)) : (Math.abs(U) > W || Math.abs(
|
|
31082
|
+
}), D.target.setPointerCapture(D.pointerId)) : (Math.abs(U) > W || Math.abs(A) > W) && (_.current = null);
|
|
31065
31083
|
}),
|
|
31066
31084
|
onPointerUp: se(e.onPointerUp, (D) => {
|
|
31067
|
-
const U = S.current,
|
|
31068
|
-
if (
|
|
31069
|
-
const
|
|
31085
|
+
const U = S.current, A = D.target;
|
|
31086
|
+
if (A.hasPointerCapture(D.pointerId) && A.releasePointerCapture(D.pointerId), S.current = null, _.current = null, U) {
|
|
31087
|
+
const te = D.currentTarget, V = {
|
|
31070
31088
|
originalEvent: D,
|
|
31071
31089
|
delta: U
|
|
31072
31090
|
};
|
|
@@ -31074,7 +31092,7 @@ const RK = "ToastViewport", AK = [
|
|
|
31074
31092
|
discrete: !0
|
|
31075
31093
|
}) : li(LK, g, V, {
|
|
31076
31094
|
discrete: !0
|
|
31077
|
-
}),
|
|
31095
|
+
}), te.addEventListener(
|
|
31078
31096
|
"click",
|
|
31079
31097
|
(X) => X.preventDefault(),
|
|
31080
31098
|
{
|