@inertiaui/modal-react 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/inertiaui-modal.js +1125 -1758
- package/dist/inertiaui-modal.umd.cjs +7 -36
- package/package.json +5 -5
package/dist/inertiaui-modal.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
var Wt = Object.defineProperty;
|
|
2
|
+
var Bt = (t, e, n) => e in t ? Wt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var X = (t, e, n) => Bt(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import * as ve from "react";
|
|
5
|
+
import B, { createContext as Pe, useState as $, useEffect as D, useContext as de, useRef as j, createElement as Ne, useMemo as Y, forwardRef as Ze, useImperativeHandle as ct, useLayoutEffect as Ht, useCallback as V, Fragment as ae, isValidElement as Kt, cloneElement as qt } from "react";
|
|
6
|
+
import { jsx as F, jsxs as le, Fragment as Ye } from "react/jsx-runtime";
|
|
7
|
+
import Te from "axios";
|
|
8
|
+
import { router as he, usePage as Xt } from "@inertiajs/react";
|
|
9
|
+
import { mergeDataIntoQueryString as _t } from "@inertiajs/core";
|
|
10
|
+
const fe = {
|
|
10
11
|
type: "modal",
|
|
11
12
|
navigate: !1,
|
|
12
13
|
modal: {
|
|
@@ -26,670 +27,43 @@ const ke = {
|
|
|
26
27
|
position: "right"
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
|
-
class
|
|
30
|
+
class Vt {
|
|
30
31
|
constructor() {
|
|
31
32
|
this.config = {}, this.reset();
|
|
32
33
|
}
|
|
33
34
|
reset() {
|
|
34
|
-
this.config = JSON.parse(JSON.stringify(
|
|
35
|
+
this.config = JSON.parse(JSON.stringify(fe));
|
|
35
36
|
}
|
|
36
|
-
put(e,
|
|
37
|
+
put(e, n) {
|
|
37
38
|
if (typeof e == "object") {
|
|
38
39
|
this.config = {
|
|
39
|
-
type: e.type ??
|
|
40
|
-
navigate: e.navigate ??
|
|
41
|
-
modal: { ...
|
|
42
|
-
slideover: { ...
|
|
40
|
+
type: e.type ?? fe.type,
|
|
41
|
+
navigate: e.navigate ?? fe.navigate,
|
|
42
|
+
modal: { ...fe.modal, ...e.modal ?? {} },
|
|
43
|
+
slideover: { ...fe.slideover, ...e.slideover ?? {} }
|
|
43
44
|
};
|
|
44
45
|
return;
|
|
45
46
|
}
|
|
46
|
-
const
|
|
47
|
-
let
|
|
48
|
-
for (let l = 0; l <
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
const r = e.split(".");
|
|
48
|
+
let i = this.config;
|
|
49
|
+
for (let l = 0; l < r.length - 1; l++)
|
|
50
|
+
i = i[r[l]] = i[r[l]] || {};
|
|
51
|
+
i[r[r.length - 1]] = n;
|
|
51
52
|
}
|
|
52
53
|
get(e) {
|
|
53
54
|
if (typeof e > "u")
|
|
54
55
|
return this.config;
|
|
55
|
-
const
|
|
56
|
-
let
|
|
57
|
-
for (const
|
|
58
|
-
if (
|
|
56
|
+
const n = e.split(".");
|
|
57
|
+
let r = this.config;
|
|
58
|
+
for (const i of n) {
|
|
59
|
+
if (r[i] === void 0)
|
|
59
60
|
return null;
|
|
60
|
-
|
|
61
|
+
r = r[i];
|
|
61
62
|
}
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const Ze = new on(), Ca = () => Ze.reset(), ka = (t, e) => Ze.put(t, e), Rt = (t) => Ze.get(t), Re = (t, e) => Ze.get(t ? `slideover.${e}` : `modal.${e}`);
|
|
66
|
-
var mt = { exports: {} }, Fe = {};
|
|
67
|
-
/**
|
|
68
|
-
* @license React
|
|
69
|
-
* react-jsx-runtime.production.min.js
|
|
70
|
-
*
|
|
71
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the MIT license found in the
|
|
74
|
-
* LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/
|
|
76
|
-
var Kt;
|
|
77
|
-
function un() {
|
|
78
|
-
if (Kt) return Fe;
|
|
79
|
-
Kt = 1;
|
|
80
|
-
var t = J, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
81
|
-
function i(m, o, g) {
|
|
82
|
-
var y, w = {}, P = null, S = null;
|
|
83
|
-
g !== void 0 && (P = "" + g), o.key !== void 0 && (P = "" + o.key), o.ref !== void 0 && (S = o.ref);
|
|
84
|
-
for (y in o) n.call(o, y) && !l.hasOwnProperty(y) && (w[y] = o[y]);
|
|
85
|
-
if (m && m.defaultProps) for (y in o = m.defaultProps, o) w[y] === void 0 && (w[y] = o[y]);
|
|
86
|
-
return { $$typeof: e, type: m, key: P, ref: S, props: w, _owner: s.current };
|
|
63
|
+
return r;
|
|
87
64
|
}
|
|
88
|
-
return Fe.Fragment = r, Fe.jsx = i, Fe.jsxs = i, Fe;
|
|
89
|
-
}
|
|
90
|
-
var Ne = {};
|
|
91
|
-
/**
|
|
92
|
-
* @license React
|
|
93
|
-
* react-jsx-runtime.development.js
|
|
94
|
-
*
|
|
95
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the MIT license found in the
|
|
98
|
-
* LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/
|
|
100
|
-
var Vt;
|
|
101
|
-
function cn() {
|
|
102
|
-
return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
103
|
-
var t = J, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), m = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), p = Symbol.iterator, E = "@@iterator";
|
|
104
|
-
function d(a) {
|
|
105
|
-
if (a === null || typeof a != "object")
|
|
106
|
-
return null;
|
|
107
|
-
var h = p && a[p] || a[E];
|
|
108
|
-
return typeof h == "function" ? h : null;
|
|
109
|
-
}
|
|
110
|
-
var f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
111
|
-
function v(a) {
|
|
112
|
-
{
|
|
113
|
-
for (var h = arguments.length, x = new Array(h > 1 ? h - 1 : 0), C = 1; C < h; C++)
|
|
114
|
-
x[C - 1] = arguments[C];
|
|
115
|
-
R("error", a, x);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
function R(a, h, x) {
|
|
119
|
-
{
|
|
120
|
-
var C = f.ReactDebugCurrentFrame, M = C.getStackAddendum();
|
|
121
|
-
M !== "" && (h += "%s", x = x.concat([M]));
|
|
122
|
-
var $ = x.map(function(A) {
|
|
123
|
-
return String(A);
|
|
124
|
-
});
|
|
125
|
-
$.unshift("Warning: " + h), Function.prototype.apply.call(console[a], console, $);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
var O = !1, b = !1, D = !1, B = !1, Z = !1, ee;
|
|
129
|
-
ee = Symbol.for("react.module.reference");
|
|
130
|
-
function Y(a) {
|
|
131
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === l || Z || a === s || a === g || a === y || B || a === S || O || b || D || typeof a == "object" && a !== null && (a.$$typeof === P || a.$$typeof === w || a.$$typeof === i || a.$$typeof === m || a.$$typeof === o || // This needs to include all possible module reference object
|
|
132
|
-
// types supported by any Flight configuration anywhere since
|
|
133
|
-
// we don't know which Flight build this will end up being used
|
|
134
|
-
// with.
|
|
135
|
-
a.$$typeof === ee || a.getModuleId !== void 0));
|
|
136
|
-
}
|
|
137
|
-
function G(a, h, x) {
|
|
138
|
-
var C = a.displayName;
|
|
139
|
-
if (C)
|
|
140
|
-
return C;
|
|
141
|
-
var M = h.displayName || h.name || "";
|
|
142
|
-
return M !== "" ? x + "(" + M + ")" : x;
|
|
143
|
-
}
|
|
144
|
-
function j(a) {
|
|
145
|
-
return a.displayName || "Context";
|
|
146
|
-
}
|
|
147
|
-
function u(a) {
|
|
148
|
-
if (a == null)
|
|
149
|
-
return null;
|
|
150
|
-
if (typeof a.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
151
|
-
return a.displayName || a.name || null;
|
|
152
|
-
if (typeof a == "string")
|
|
153
|
-
return a;
|
|
154
|
-
switch (a) {
|
|
155
|
-
case n:
|
|
156
|
-
return "Fragment";
|
|
157
|
-
case r:
|
|
158
|
-
return "Portal";
|
|
159
|
-
case l:
|
|
160
|
-
return "Profiler";
|
|
161
|
-
case s:
|
|
162
|
-
return "StrictMode";
|
|
163
|
-
case g:
|
|
164
|
-
return "Suspense";
|
|
165
|
-
case y:
|
|
166
|
-
return "SuspenseList";
|
|
167
|
-
}
|
|
168
|
-
if (typeof a == "object")
|
|
169
|
-
switch (a.$$typeof) {
|
|
170
|
-
case m:
|
|
171
|
-
var h = a;
|
|
172
|
-
return j(h) + ".Consumer";
|
|
173
|
-
case i:
|
|
174
|
-
var x = a;
|
|
175
|
-
return j(x._context) + ".Provider";
|
|
176
|
-
case o:
|
|
177
|
-
return G(a, a.render, "ForwardRef");
|
|
178
|
-
case w:
|
|
179
|
-
var C = a.displayName || null;
|
|
180
|
-
return C !== null ? C : u(a.type) || "Memo";
|
|
181
|
-
case P: {
|
|
182
|
-
var M = a, $ = M._payload, A = M._init;
|
|
183
|
-
try {
|
|
184
|
-
return u(A($));
|
|
185
|
-
} catch {
|
|
186
|
-
return null;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
return null;
|
|
191
|
-
}
|
|
192
|
-
var c = Object.assign, T = 0, I, _, L, k, W, U, ae;
|
|
193
|
-
function K() {
|
|
194
|
-
}
|
|
195
|
-
K.__reactDisabledLog = !0;
|
|
196
|
-
function ie() {
|
|
197
|
-
{
|
|
198
|
-
if (T === 0) {
|
|
199
|
-
I = console.log, _ = console.info, L = console.warn, k = console.error, W = console.group, U = console.groupCollapsed, ae = console.groupEnd;
|
|
200
|
-
var a = {
|
|
201
|
-
configurable: !0,
|
|
202
|
-
enumerable: !0,
|
|
203
|
-
value: K,
|
|
204
|
-
writable: !0
|
|
205
|
-
};
|
|
206
|
-
Object.defineProperties(console, {
|
|
207
|
-
info: a,
|
|
208
|
-
log: a,
|
|
209
|
-
warn: a,
|
|
210
|
-
error: a,
|
|
211
|
-
group: a,
|
|
212
|
-
groupCollapsed: a,
|
|
213
|
-
groupEnd: a
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
T++;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
function re() {
|
|
220
|
-
{
|
|
221
|
-
if (T--, T === 0) {
|
|
222
|
-
var a = {
|
|
223
|
-
configurable: !0,
|
|
224
|
-
enumerable: !0,
|
|
225
|
-
writable: !0
|
|
226
|
-
};
|
|
227
|
-
Object.defineProperties(console, {
|
|
228
|
-
log: c({}, a, {
|
|
229
|
-
value: I
|
|
230
|
-
}),
|
|
231
|
-
info: c({}, a, {
|
|
232
|
-
value: _
|
|
233
|
-
}),
|
|
234
|
-
warn: c({}, a, {
|
|
235
|
-
value: L
|
|
236
|
-
}),
|
|
237
|
-
error: c({}, a, {
|
|
238
|
-
value: k
|
|
239
|
-
}),
|
|
240
|
-
group: c({}, a, {
|
|
241
|
-
value: W
|
|
242
|
-
}),
|
|
243
|
-
groupCollapsed: c({}, a, {
|
|
244
|
-
value: U
|
|
245
|
-
}),
|
|
246
|
-
groupEnd: c({}, a, {
|
|
247
|
-
value: ae
|
|
248
|
-
})
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
T < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
var fe = f.ReactCurrentDispatcher, le;
|
|
255
|
-
function ne(a, h, x) {
|
|
256
|
-
{
|
|
257
|
-
if (le === void 0)
|
|
258
|
-
try {
|
|
259
|
-
throw Error();
|
|
260
|
-
} catch (M) {
|
|
261
|
-
var C = M.stack.trim().match(/\n( *(at )?)/);
|
|
262
|
-
le = C && C[1] || "";
|
|
263
|
-
}
|
|
264
|
-
return `
|
|
265
|
-
` + le + a;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
var ce = !1, Le;
|
|
269
|
-
{
|
|
270
|
-
var kr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
271
|
-
Le = new kr();
|
|
272
|
-
}
|
|
273
|
-
function Ct(a, h) {
|
|
274
|
-
if (!a || ce)
|
|
275
|
-
return "";
|
|
276
|
-
{
|
|
277
|
-
var x = Le.get(a);
|
|
278
|
-
if (x !== void 0)
|
|
279
|
-
return x;
|
|
280
|
-
}
|
|
281
|
-
var C;
|
|
282
|
-
ce = !0;
|
|
283
|
-
var M = Error.prepareStackTrace;
|
|
284
|
-
Error.prepareStackTrace = void 0;
|
|
285
|
-
var $;
|
|
286
|
-
$ = fe.current, fe.current = null, ie();
|
|
287
|
-
try {
|
|
288
|
-
if (h) {
|
|
289
|
-
var A = function() {
|
|
290
|
-
throw Error();
|
|
291
|
-
};
|
|
292
|
-
if (Object.defineProperty(A.prototype, "props", {
|
|
293
|
-
set: function() {
|
|
294
|
-
throw Error();
|
|
295
|
-
}
|
|
296
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
297
|
-
try {
|
|
298
|
-
Reflect.construct(A, []);
|
|
299
|
-
} catch (te) {
|
|
300
|
-
C = te;
|
|
301
|
-
}
|
|
302
|
-
Reflect.construct(a, [], A);
|
|
303
|
-
} else {
|
|
304
|
-
try {
|
|
305
|
-
A.call();
|
|
306
|
-
} catch (te) {
|
|
307
|
-
C = te;
|
|
308
|
-
}
|
|
309
|
-
a.call(A.prototype);
|
|
310
|
-
}
|
|
311
|
-
} else {
|
|
312
|
-
try {
|
|
313
|
-
throw Error();
|
|
314
|
-
} catch (te) {
|
|
315
|
-
C = te;
|
|
316
|
-
}
|
|
317
|
-
a();
|
|
318
|
-
}
|
|
319
|
-
} catch (te) {
|
|
320
|
-
if (te && C && typeof te.stack == "string") {
|
|
321
|
-
for (var N = te.stack.split(`
|
|
322
|
-
`), Q = C.stack.split(`
|
|
323
|
-
`), V = N.length - 1, H = Q.length - 1; V >= 1 && H >= 0 && N[V] !== Q[H]; )
|
|
324
|
-
H--;
|
|
325
|
-
for (; V >= 1 && H >= 0; V--, H--)
|
|
326
|
-
if (N[V] !== Q[H]) {
|
|
327
|
-
if (V !== 1 || H !== 1)
|
|
328
|
-
do
|
|
329
|
-
if (V--, H--, H < 0 || N[V] !== Q[H]) {
|
|
330
|
-
var se = `
|
|
331
|
-
` + N[V].replace(" at new ", " at ");
|
|
332
|
-
return a.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", a.displayName)), typeof a == "function" && Le.set(a, se), se;
|
|
333
|
-
}
|
|
334
|
-
while (V >= 1 && H >= 0);
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
} finally {
|
|
339
|
-
ce = !1, fe.current = $, re(), Error.prepareStackTrace = M;
|
|
340
|
-
}
|
|
341
|
-
var Te = a ? a.displayName || a.name : "", me = Te ? ne(Te) : "";
|
|
342
|
-
return typeof a == "function" && Le.set(a, me), me;
|
|
343
|
-
}
|
|
344
|
-
function Fr(a, h, x) {
|
|
345
|
-
return Ct(a, !1);
|
|
346
|
-
}
|
|
347
|
-
function Nr(a) {
|
|
348
|
-
var h = a.prototype;
|
|
349
|
-
return !!(h && h.isReactComponent);
|
|
350
|
-
}
|
|
351
|
-
function $e(a, h, x) {
|
|
352
|
-
if (a == null)
|
|
353
|
-
return "";
|
|
354
|
-
if (typeof a == "function")
|
|
355
|
-
return Ct(a, Nr(a));
|
|
356
|
-
if (typeof a == "string")
|
|
357
|
-
return ne(a);
|
|
358
|
-
switch (a) {
|
|
359
|
-
case g:
|
|
360
|
-
return ne("Suspense");
|
|
361
|
-
case y:
|
|
362
|
-
return ne("SuspenseList");
|
|
363
|
-
}
|
|
364
|
-
if (typeof a == "object")
|
|
365
|
-
switch (a.$$typeof) {
|
|
366
|
-
case o:
|
|
367
|
-
return Fr(a.render);
|
|
368
|
-
case w:
|
|
369
|
-
return $e(a.type, h, x);
|
|
370
|
-
case P: {
|
|
371
|
-
var C = a, M = C._payload, $ = C._init;
|
|
372
|
-
try {
|
|
373
|
-
return $e($(M), h, x);
|
|
374
|
-
} catch {
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
return "";
|
|
379
|
-
}
|
|
380
|
-
var Ce = Object.prototype.hasOwnProperty, kt = {}, Ft = f.ReactDebugCurrentFrame;
|
|
381
|
-
function We(a) {
|
|
382
|
-
if (a) {
|
|
383
|
-
var h = a._owner, x = $e(a.type, a._source, h ? h.type : null);
|
|
384
|
-
Ft.setExtraStackFrame(x);
|
|
385
|
-
} else
|
|
386
|
-
Ft.setExtraStackFrame(null);
|
|
387
|
-
}
|
|
388
|
-
function jr(a, h, x, C, M) {
|
|
389
|
-
{
|
|
390
|
-
var $ = Function.call.bind(Ce);
|
|
391
|
-
for (var A in a)
|
|
392
|
-
if ($(a, A)) {
|
|
393
|
-
var N = void 0;
|
|
394
|
-
try {
|
|
395
|
-
if (typeof a[A] != "function") {
|
|
396
|
-
var Q = Error((C || "React class") + ": " + x + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
397
|
-
throw Q.name = "Invariant Violation", Q;
|
|
398
|
-
}
|
|
399
|
-
N = a[A](h, A, C, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
400
|
-
} catch (V) {
|
|
401
|
-
N = V;
|
|
402
|
-
}
|
|
403
|
-
N && !(N instanceof Error) && (We(M), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", x, A, typeof N), We(null)), N instanceof Error && !(N.message in kt) && (kt[N.message] = !0, We(M), v("Failed %s type: %s", x, N.message), We(null));
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
var Ar = Array.isArray;
|
|
408
|
-
function lt(a) {
|
|
409
|
-
return Ar(a);
|
|
410
|
-
}
|
|
411
|
-
function Ir(a) {
|
|
412
|
-
{
|
|
413
|
-
var h = typeof Symbol == "function" && Symbol.toStringTag, x = h && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
414
|
-
return x;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
function _r(a) {
|
|
418
|
-
try {
|
|
419
|
-
return Nt(a), !1;
|
|
420
|
-
} catch {
|
|
421
|
-
return !0;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
function Nt(a) {
|
|
425
|
-
return "" + a;
|
|
426
|
-
}
|
|
427
|
-
function jt(a) {
|
|
428
|
-
if (_r(a))
|
|
429
|
-
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ir(a)), Nt(a);
|
|
430
|
-
}
|
|
431
|
-
var At = f.ReactCurrentOwner, Dr = {
|
|
432
|
-
key: !0,
|
|
433
|
-
ref: !0,
|
|
434
|
-
__self: !0,
|
|
435
|
-
__source: !0
|
|
436
|
-
}, It, _t;
|
|
437
|
-
function Mr(a) {
|
|
438
|
-
if (Ce.call(a, "ref")) {
|
|
439
|
-
var h = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
440
|
-
if (h && h.isReactWarning)
|
|
441
|
-
return !1;
|
|
442
|
-
}
|
|
443
|
-
return a.ref !== void 0;
|
|
444
|
-
}
|
|
445
|
-
function Lr(a) {
|
|
446
|
-
if (Ce.call(a, "key")) {
|
|
447
|
-
var h = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
448
|
-
if (h && h.isReactWarning)
|
|
449
|
-
return !1;
|
|
450
|
-
}
|
|
451
|
-
return a.key !== void 0;
|
|
452
|
-
}
|
|
453
|
-
function $r(a, h) {
|
|
454
|
-
typeof a.ref == "string" && At.current;
|
|
455
|
-
}
|
|
456
|
-
function Wr(a, h) {
|
|
457
|
-
{
|
|
458
|
-
var x = function() {
|
|
459
|
-
It || (It = !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)", h));
|
|
460
|
-
};
|
|
461
|
-
x.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
462
|
-
get: x,
|
|
463
|
-
configurable: !0
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
function Ur(a, h) {
|
|
468
|
-
{
|
|
469
|
-
var x = function() {
|
|
470
|
-
_t || (_t = !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)", h));
|
|
471
|
-
};
|
|
472
|
-
x.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
473
|
-
get: x,
|
|
474
|
-
configurable: !0
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
var Br = function(a, h, x, C, M, $, A) {
|
|
479
|
-
var N = {
|
|
480
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
481
|
-
$$typeof: e,
|
|
482
|
-
// Built-in properties that belong on the element
|
|
483
|
-
type: a,
|
|
484
|
-
key: h,
|
|
485
|
-
ref: x,
|
|
486
|
-
props: A,
|
|
487
|
-
// Record the component responsible for creating this element.
|
|
488
|
-
_owner: $
|
|
489
|
-
};
|
|
490
|
-
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
491
|
-
configurable: !1,
|
|
492
|
-
enumerable: !1,
|
|
493
|
-
writable: !0,
|
|
494
|
-
value: !1
|
|
495
|
-
}), Object.defineProperty(N, "_self", {
|
|
496
|
-
configurable: !1,
|
|
497
|
-
enumerable: !1,
|
|
498
|
-
writable: !1,
|
|
499
|
-
value: C
|
|
500
|
-
}), Object.defineProperty(N, "_source", {
|
|
501
|
-
configurable: !1,
|
|
502
|
-
enumerable: !1,
|
|
503
|
-
writable: !1,
|
|
504
|
-
value: M
|
|
505
|
-
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
506
|
-
};
|
|
507
|
-
function Kr(a, h, x, C, M) {
|
|
508
|
-
{
|
|
509
|
-
var $, A = {}, N = null, Q = null;
|
|
510
|
-
x !== void 0 && (jt(x), N = "" + x), Lr(h) && (jt(h.key), N = "" + h.key), Mr(h) && (Q = h.ref, $r(h, M));
|
|
511
|
-
for ($ in h)
|
|
512
|
-
Ce.call(h, $) && !Dr.hasOwnProperty($) && (A[$] = h[$]);
|
|
513
|
-
if (a && a.defaultProps) {
|
|
514
|
-
var V = a.defaultProps;
|
|
515
|
-
for ($ in V)
|
|
516
|
-
A[$] === void 0 && (A[$] = V[$]);
|
|
517
|
-
}
|
|
518
|
-
if (N || Q) {
|
|
519
|
-
var H = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
520
|
-
N && Wr(A, H), Q && Ur(A, H);
|
|
521
|
-
}
|
|
522
|
-
return Br(a, N, Q, M, C, At.current, A);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
var ot = f.ReactCurrentOwner, Dt = f.ReactDebugCurrentFrame;
|
|
526
|
-
function Ee(a) {
|
|
527
|
-
if (a) {
|
|
528
|
-
var h = a._owner, x = $e(a.type, a._source, h ? h.type : null);
|
|
529
|
-
Dt.setExtraStackFrame(x);
|
|
530
|
-
} else
|
|
531
|
-
Dt.setExtraStackFrame(null);
|
|
532
|
-
}
|
|
533
|
-
var ut;
|
|
534
|
-
ut = !1;
|
|
535
|
-
function ct(a) {
|
|
536
|
-
return typeof a == "object" && a !== null && a.$$typeof === e;
|
|
537
|
-
}
|
|
538
|
-
function Mt() {
|
|
539
|
-
{
|
|
540
|
-
if (ot.current) {
|
|
541
|
-
var a = u(ot.current.type);
|
|
542
|
-
if (a)
|
|
543
|
-
return `
|
|
544
|
-
|
|
545
|
-
Check the render method of \`` + a + "`.";
|
|
546
|
-
}
|
|
547
|
-
return "";
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
function Vr(a) {
|
|
551
|
-
return "";
|
|
552
|
-
}
|
|
553
|
-
var Lt = {};
|
|
554
|
-
function Hr(a) {
|
|
555
|
-
{
|
|
556
|
-
var h = Mt();
|
|
557
|
-
if (!h) {
|
|
558
|
-
var x = typeof a == "string" ? a : a.displayName || a.name;
|
|
559
|
-
x && (h = `
|
|
560
|
-
|
|
561
|
-
Check the top-level render call using <` + x + ">.");
|
|
562
|
-
}
|
|
563
|
-
return h;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
function $t(a, h) {
|
|
567
|
-
{
|
|
568
|
-
if (!a._store || a._store.validated || a.key != null)
|
|
569
|
-
return;
|
|
570
|
-
a._store.validated = !0;
|
|
571
|
-
var x = Hr(h);
|
|
572
|
-
if (Lt[x])
|
|
573
|
-
return;
|
|
574
|
-
Lt[x] = !0;
|
|
575
|
-
var C = "";
|
|
576
|
-
a && a._owner && a._owner !== ot.current && (C = " It was passed a child from " + u(a._owner.type) + "."), Ee(a), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, C), Ee(null);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
function Wt(a, h) {
|
|
580
|
-
{
|
|
581
|
-
if (typeof a != "object")
|
|
582
|
-
return;
|
|
583
|
-
if (lt(a))
|
|
584
|
-
for (var x = 0; x < a.length; x++) {
|
|
585
|
-
var C = a[x];
|
|
586
|
-
ct(C) && $t(C, h);
|
|
587
|
-
}
|
|
588
|
-
else if (ct(a))
|
|
589
|
-
a._store && (a._store.validated = !0);
|
|
590
|
-
else if (a) {
|
|
591
|
-
var M = d(a);
|
|
592
|
-
if (typeof M == "function" && M !== a.entries)
|
|
593
|
-
for (var $ = M.call(a), A; !(A = $.next()).done; )
|
|
594
|
-
ct(A.value) && $t(A.value, h);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
function Yr(a) {
|
|
599
|
-
{
|
|
600
|
-
var h = a.type;
|
|
601
|
-
if (h == null || typeof h == "string")
|
|
602
|
-
return;
|
|
603
|
-
var x;
|
|
604
|
-
if (typeof h == "function")
|
|
605
|
-
x = h.propTypes;
|
|
606
|
-
else if (typeof h == "object" && (h.$$typeof === o || // Note: Memo only checks outer props here.
|
|
607
|
-
// Inner props are checked in the reconciler.
|
|
608
|
-
h.$$typeof === w))
|
|
609
|
-
x = h.propTypes;
|
|
610
|
-
else
|
|
611
|
-
return;
|
|
612
|
-
if (x) {
|
|
613
|
-
var C = u(h);
|
|
614
|
-
jr(x, a.props, "prop", C, a);
|
|
615
|
-
} else if (h.PropTypes !== void 0 && !ut) {
|
|
616
|
-
ut = !0;
|
|
617
|
-
var M = u(h);
|
|
618
|
-
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
619
|
-
}
|
|
620
|
-
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
function qr(a) {
|
|
624
|
-
{
|
|
625
|
-
for (var h = Object.keys(a.props), x = 0; x < h.length; x++) {
|
|
626
|
-
var C = h[x];
|
|
627
|
-
if (C !== "children" && C !== "key") {
|
|
628
|
-
Ee(a), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Ee(null);
|
|
629
|
-
break;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
a.ref !== null && (Ee(a), v("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
var Ut = {};
|
|
636
|
-
function Bt(a, h, x, C, M, $) {
|
|
637
|
-
{
|
|
638
|
-
var A = Y(a);
|
|
639
|
-
if (!A) {
|
|
640
|
-
var N = "";
|
|
641
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
642
|
-
var Q = Vr();
|
|
643
|
-
Q ? N += Q : N += Mt();
|
|
644
|
-
var V;
|
|
645
|
-
a === null ? V = "null" : lt(a) ? V = "array" : a !== void 0 && a.$$typeof === e ? (V = "<" + (u(a.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : V = typeof a, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, N);
|
|
646
|
-
}
|
|
647
|
-
var H = Kr(a, h, x, M, $);
|
|
648
|
-
if (H == null)
|
|
649
|
-
return H;
|
|
650
|
-
if (A) {
|
|
651
|
-
var se = h.children;
|
|
652
|
-
if (se !== void 0)
|
|
653
|
-
if (C)
|
|
654
|
-
if (lt(se)) {
|
|
655
|
-
for (var Te = 0; Te < se.length; Te++)
|
|
656
|
-
Wt(se[Te], a);
|
|
657
|
-
Object.freeze && Object.freeze(se);
|
|
658
|
-
} else
|
|
659
|
-
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.");
|
|
660
|
-
else
|
|
661
|
-
Wt(se, a);
|
|
662
|
-
}
|
|
663
|
-
if (Ce.call(h, "key")) {
|
|
664
|
-
var me = u(a), te = Object.keys(h).filter(function(Qr) {
|
|
665
|
-
return Qr !== "key";
|
|
666
|
-
}), dt = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
667
|
-
if (!Ut[me + dt]) {
|
|
668
|
-
var Zr = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
|
|
669
|
-
v(`A props object containing a "key" prop is being spread into JSX:
|
|
670
|
-
let props = %s;
|
|
671
|
-
<%s {...props} />
|
|
672
|
-
React keys must be passed directly to JSX without using spread:
|
|
673
|
-
let props = %s;
|
|
674
|
-
<%s key={someKey} {...props} />`, dt, me, Zr, me), Ut[me + dt] = !0;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
return a === n ? qr(H) : Yr(H), H;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
function Xr(a, h, x) {
|
|
681
|
-
return Bt(a, h, x, !0);
|
|
682
|
-
}
|
|
683
|
-
function zr(a, h, x) {
|
|
684
|
-
return Bt(a, h, x, !1);
|
|
685
|
-
}
|
|
686
|
-
var Gr = zr, Jr = Xr;
|
|
687
|
-
Ne.Fragment = n, Ne.jsx = Gr, Ne.jsxs = Jr;
|
|
688
|
-
}()), Ne;
|
|
689
65
|
}
|
|
690
|
-
|
|
691
|
-
var F = mt.exports;
|
|
692
|
-
const Ht = {
|
|
66
|
+
const Ie = new Vt(), mr = () => Ie.reset(), pr = (t, e) => Ie.put(t, e), Je = (t) => Ie.get(t), se = (t, e) => Ie.get(t ? `slideover.${e}` : `modal.${e}`), nt = {
|
|
693
67
|
modifiedElements: [],
|
|
694
68
|
bodyState: {
|
|
695
69
|
hasOverflowHidden: !1,
|
|
@@ -700,8 +74,8 @@ const Ht = {
|
|
|
700
74
|
const t = window.innerWidth - document.documentElement.clientWidth;
|
|
701
75
|
this.bodyState.originalPaddingRight = document.body.style.paddingRight;
|
|
702
76
|
const e = parseInt(window.getComputedStyle(document.body).paddingRight, 10);
|
|
703
|
-
document.body.style.paddingRight = `${e + t}px`, document.body.classList.contains("overflow-hidden") || (document.body.classList.add("overflow-hidden"), this.bodyState.hasOverflowHidden = !0), document.body.classList.contains("pointer-events-none") || (document.body.classList.add("pointer-events-none"), this.bodyState.hasPointerEventsNone = !0), Array.from(document.body.children).forEach((
|
|
704
|
-
!
|
|
77
|
+
document.body.style.paddingRight = `${e + t}px`, document.body.classList.contains("overflow-hidden") || (document.body.classList.add("overflow-hidden"), this.bodyState.hasOverflowHidden = !0), document.body.classList.contains("pointer-events-none") || (document.body.classList.add("pointer-events-none"), this.bodyState.hasPointerEventsNone = !0), Array.from(document.body.children).forEach((n) => {
|
|
78
|
+
!n.classList.contains("im-dialog") && n.getAttribute("aria-hidden") !== "true" && (n.setAttribute("aria-hidden", "true"), this.modifiedElements.push(n));
|
|
705
79
|
});
|
|
706
80
|
},
|
|
707
81
|
cleanup() {
|
|
@@ -710,132 +84,132 @@ const Ht = {
|
|
|
710
84
|
}), this.modifiedElements = [];
|
|
711
85
|
}
|
|
712
86
|
};
|
|
713
|
-
function
|
|
87
|
+
function We(t = "inertiaui_modal_") {
|
|
714
88
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `${t}${crypto.randomUUID()}` : `${t}${Date.now().toString(36)}_${Math.random().toString(36).substr(2, 9)}`;
|
|
715
89
|
}
|
|
716
|
-
function
|
|
717
|
-
return Array.isArray(t) ? t.filter((
|
|
90
|
+
function zt(t, e) {
|
|
91
|
+
return Array.isArray(t) ? t.filter((n) => !e.includes(n)) : Object.keys(t).reduce((n, r) => (e.includes(r) || (n[r] = t[r]), n), {});
|
|
718
92
|
}
|
|
719
|
-
function
|
|
720
|
-
return Array.isArray(t) ? t.filter((
|
|
93
|
+
function ft(t, e) {
|
|
94
|
+
return Array.isArray(t) ? t.filter((n) => e.includes(n)) : e.reduce((n, r) => (r in t && (n[r] = t[r]), n), {});
|
|
721
95
|
}
|
|
722
|
-
function
|
|
723
|
-
return Array.isArray(t) ? t.filter((e) => e !== null) : Object.keys(t).reduce((e,
|
|
96
|
+
function Gt(t) {
|
|
97
|
+
return Array.isArray(t) ? t.filter((e) => e !== null) : Object.keys(t).reduce((e, n) => (n in t && t[n] !== null && (e[n] = t[n]), e), {});
|
|
724
98
|
}
|
|
725
|
-
function
|
|
726
|
-
return new Promise((
|
|
99
|
+
function Zt(t, e = 3, n = 10) {
|
|
100
|
+
return new Promise((r, i) => {
|
|
727
101
|
const l = t();
|
|
728
102
|
if (l) {
|
|
729
|
-
|
|
103
|
+
r(l);
|
|
730
104
|
return;
|
|
731
105
|
}
|
|
732
|
-
let
|
|
106
|
+
let a = e * 1e3 / n;
|
|
733
107
|
const m = setInterval(() => {
|
|
734
|
-
const
|
|
735
|
-
|
|
736
|
-
},
|
|
108
|
+
const s = t();
|
|
109
|
+
s && (clearInterval(m), r(s)), --a <= 0 && (clearInterval(m), i(new Error("Condition not met in time")));
|
|
110
|
+
}, n);
|
|
737
111
|
});
|
|
738
112
|
}
|
|
739
|
-
function
|
|
740
|
-
return t ? (t = t.replace(/_/g, "-"), t = t.replace(/-+/g, "-"), /[A-Z]/.test(t) ? (t = t.replace(/\s+/g, "").replace(/_/g, "").replace(/(?:^|\s|-)+([A-Za-z])/g, (e,
|
|
113
|
+
function me(t) {
|
|
114
|
+
return t ? (t = t.replace(/_/g, "-"), t = t.replace(/-+/g, "-"), /[A-Z]/.test(t) ? (t = t.replace(/\s+/g, "").replace(/_/g, "").replace(/(?:^|\s|-)+([A-Za-z])/g, (e, n) => n.toUpperCase()), t = t.replace(/(.)(?=[A-Z])/g, "$1-"), t.toLowerCase()) : t) : "";
|
|
741
115
|
}
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
let
|
|
745
|
-
const
|
|
746
|
-
const [e,
|
|
747
|
-
|
|
748
|
-
const f =
|
|
749
|
-
var
|
|
750
|
-
return f.length < 2 ? !0 : ((
|
|
116
|
+
const Re = Pe(null);
|
|
117
|
+
Re.displayName = "ModalStackContext";
|
|
118
|
+
let mt = null, pt = null, be = null, qe = null, Xe = [], oe = {};
|
|
119
|
+
const Yt = ({ children: t }) => {
|
|
120
|
+
const [e, n] = $([]), [r, i] = $({}), l = (g) => {
|
|
121
|
+
n((d) => {
|
|
122
|
+
const f = g([...d]), p = (y) => {
|
|
123
|
+
var N;
|
|
124
|
+
return f.length < 2 ? !0 : ((N = f.map((h) => ({ id: h.id, shouldRender: h.shouldRender })).reverse().find((h) => h.shouldRender)) == null ? void 0 : N.id) === y;
|
|
751
125
|
};
|
|
752
|
-
return f.forEach((
|
|
753
|
-
f[
|
|
126
|
+
return f.forEach((y, N) => {
|
|
127
|
+
f[N].onTopOfStack = p(y.id), f[N].getParentModal = () => N < 1 ? null : f.slice(0, N).reverse().find((h) => h.isOpen), f[N].getChildModal = () => N === f.length - 1 ? null : f.slice(N + 1).find((h) => h.isOpen);
|
|
754
128
|
}), f;
|
|
755
129
|
});
|
|
756
130
|
};
|
|
757
|
-
|
|
758
|
-
|
|
131
|
+
D(() => {
|
|
132
|
+
Xe = e;
|
|
759
133
|
}, [e]);
|
|
760
|
-
class
|
|
761
|
-
constructor(d, f,
|
|
762
|
-
|
|
134
|
+
class a {
|
|
135
|
+
constructor(d, f, p, y, N) {
|
|
136
|
+
X(this, "show", () => {
|
|
763
137
|
l(
|
|
764
138
|
(d) => d.map((f) => (f.id === this.id && !f.isOpen && (f.isOpen = !0, f.shouldRender = !0), f))
|
|
765
139
|
);
|
|
766
140
|
});
|
|
767
|
-
|
|
141
|
+
X(this, "setOpen", (d) => {
|
|
768
142
|
d ? this.show() : this.close();
|
|
769
143
|
});
|
|
770
|
-
|
|
144
|
+
X(this, "close", () => {
|
|
771
145
|
l(
|
|
772
146
|
(d) => d.map((f) => {
|
|
773
|
-
var
|
|
774
|
-
return f.id === this.id && f.isOpen && (Object.keys(f.listeners).forEach((
|
|
775
|
-
f.off(
|
|
776
|
-
}), f.isOpen = !1, (
|
|
147
|
+
var p;
|
|
148
|
+
return f.id === this.id && f.isOpen && (Object.keys(f.listeners).forEach((y) => {
|
|
149
|
+
f.off(y);
|
|
150
|
+
}), f.isOpen = !1, (p = f.onCloseCallback) == null || p.call(f)), f;
|
|
777
151
|
})
|
|
778
152
|
);
|
|
779
153
|
});
|
|
780
|
-
|
|
154
|
+
X(this, "afterLeave", () => {
|
|
781
155
|
this.isOpen || l((d) => {
|
|
782
|
-
const f = d.map((
|
|
783
|
-
var
|
|
784
|
-
return
|
|
156
|
+
const f = d.map((p) => {
|
|
157
|
+
var y;
|
|
158
|
+
return p.id === this.id && !p.isOpen && (p.shouldRender = !1, (y = p.afterLeaveCallback) == null || y.call(p), p.afterLeaveCallback = null), p;
|
|
785
159
|
});
|
|
786
160
|
return this.index === 0 ? [] : f;
|
|
787
161
|
});
|
|
788
162
|
});
|
|
789
|
-
|
|
790
|
-
d =
|
|
163
|
+
X(this, "on", (d, f) => {
|
|
164
|
+
d = me(d), this.listeners[d] = this.listeners[d] ?? [], this.listeners[d].push(f);
|
|
791
165
|
});
|
|
792
|
-
|
|
793
|
-
var
|
|
794
|
-
d =
|
|
166
|
+
X(this, "off", (d, f) => {
|
|
167
|
+
var p;
|
|
168
|
+
d = me(d), f ? this.listeners[d] = ((p = this.listeners[d]) == null ? void 0 : p.filter((y) => y !== f)) ?? [] : delete this.listeners[d];
|
|
795
169
|
});
|
|
796
|
-
|
|
797
|
-
var
|
|
798
|
-
(
|
|
170
|
+
X(this, "emit", (d, ...f) => {
|
|
171
|
+
var p;
|
|
172
|
+
(p = this.listeners[me(d)]) == null || p.forEach((y) => y(...f));
|
|
799
173
|
});
|
|
800
|
-
|
|
174
|
+
X(this, "registerEventListenersFromProps", (d) => {
|
|
801
175
|
const f = [];
|
|
802
|
-
return Object.keys(d).filter((
|
|
803
|
-
const
|
|
804
|
-
this.on(
|
|
805
|
-
}), () => f.forEach((
|
|
176
|
+
return Object.keys(d).filter((p) => p.startsWith("on")).forEach((p) => {
|
|
177
|
+
const y = me(p).replace(/^on-/, "");
|
|
178
|
+
this.on(y, d[p]), f.push(() => this.off(y, d[p]));
|
|
179
|
+
}), () => f.forEach((p) => p());
|
|
806
180
|
});
|
|
807
|
-
|
|
808
|
-
var
|
|
181
|
+
X(this, "reload", (d = {}) => {
|
|
182
|
+
var p;
|
|
809
183
|
let f = Object.keys(this.response.props);
|
|
810
|
-
d.only && (f =
|
|
184
|
+
d.only && (f = ft(f, d.only)), d.except && (f = zt(f, d.except)), (p = this.response) != null && p.url && Te.get(this.response.url, {
|
|
811
185
|
headers: {
|
|
812
186
|
Accept: "text/html, application/xhtml+xml",
|
|
813
187
|
"X-Inertia": !0,
|
|
814
188
|
"X-Inertia-Partial-Component": this.response.component,
|
|
815
189
|
"X-Inertia-Version": this.response.version,
|
|
816
190
|
"X-Inertia-Partial-Data": f.join(","),
|
|
817
|
-
"X-InertiaUI-Modal":
|
|
191
|
+
"X-InertiaUI-Modal": We(),
|
|
818
192
|
"X-InertiaUI-Modal-Use-Router": 0,
|
|
819
|
-
"X-InertiaUI-Modal-Base-Url":
|
|
193
|
+
"X-InertiaUI-Modal-Base-Url": be
|
|
820
194
|
}
|
|
821
|
-
}).then((
|
|
822
|
-
this.updateProps(
|
|
195
|
+
}).then((y) => {
|
|
196
|
+
this.updateProps(y.data.props);
|
|
823
197
|
});
|
|
824
198
|
});
|
|
825
|
-
|
|
199
|
+
X(this, "updateProps", (d) => {
|
|
826
200
|
Object.assign(this.props, d), l((f) => f);
|
|
827
201
|
});
|
|
828
|
-
if (this.id = f.id ??
|
|
202
|
+
if (this.id = f.id ?? We(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = d, this.props = f.props, this.response = f, this.config = p ?? {}, this.onCloseCallback = y, this.afterLeaveCallback = N, oe[this.id]) {
|
|
829
203
|
this.config = {
|
|
830
204
|
...this.config,
|
|
831
|
-
...
|
|
205
|
+
...oe[this.id].config ?? {}
|
|
832
206
|
};
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
} :
|
|
837
|
-
|
|
838
|
-
} :
|
|
207
|
+
const h = oe[this.id].onClose, k = oe[this.id].onAfterLeave;
|
|
208
|
+
h && (this.onCloseCallback = y ? () => {
|
|
209
|
+
y(), h();
|
|
210
|
+
} : h), k && (this.afterLeaveCallback = N ? () => {
|
|
211
|
+
N(), k();
|
|
212
|
+
} : k), delete oe[this.id];
|
|
839
213
|
}
|
|
840
214
|
this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
|
|
841
215
|
}
|
|
@@ -843,18 +217,18 @@ const pn = ({ children: t }) => {
|
|
|
843
217
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `inertiaui_modal_${crypto.randomUUID()}` : `inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2, 9)}`;
|
|
844
218
|
}
|
|
845
219
|
}
|
|
846
|
-
const m = (
|
|
847
|
-
const
|
|
848
|
-
return
|
|
220
|
+
const m = (g, d = {}, f = null, p = null) => pt(g.component).then((y) => s(y, g, d, f, p)), s = (g, d, f, p, y) => {
|
|
221
|
+
const N = new a(g, d, f, p, y);
|
|
222
|
+
return N.index = e.length, l((h) => [...h, N]), N.show(), N;
|
|
849
223
|
};
|
|
850
|
-
function g
|
|
851
|
-
if (!
|
|
852
|
-
throw new Error(`The local modal "${
|
|
853
|
-
const
|
|
854
|
-
return
|
|
224
|
+
function v(g, d, f, p) {
|
|
225
|
+
if (!r[g])
|
|
226
|
+
throw new Error(`The local modal "${g}" has not been registered.`);
|
|
227
|
+
const y = s(null, {}, d, f, p);
|
|
228
|
+
return y.name = g, r[g].callback(y), y;
|
|
855
229
|
}
|
|
856
|
-
const
|
|
857
|
-
|
|
230
|
+
const b = (g, d = {}) => x(
|
|
231
|
+
g,
|
|
858
232
|
d.method ?? "get",
|
|
859
233
|
d.data ?? {},
|
|
860
234
|
d.headers ?? {},
|
|
@@ -862,289 +236,282 @@ const pn = ({ children: t }) => {
|
|
|
862
236
|
d.onClose,
|
|
863
237
|
d.onAfterLeave,
|
|
864
238
|
d.queryStringArrayFormat ?? "brackets",
|
|
865
|
-
d.navigate ??
|
|
239
|
+
d.navigate ?? Je("navigate")
|
|
866
240
|
).then((f) => {
|
|
867
|
-
const
|
|
868
|
-
return Object.keys(
|
|
869
|
-
const
|
|
870
|
-
f.on(
|
|
241
|
+
const p = d.listeners ?? {};
|
|
242
|
+
return Object.keys(p).forEach((y) => {
|
|
243
|
+
const N = me(y);
|
|
244
|
+
f.on(N, p[y]);
|
|
871
245
|
}), f;
|
|
872
|
-
}),
|
|
873
|
-
const
|
|
874
|
-
return new Promise((
|
|
875
|
-
if (
|
|
876
|
-
|
|
246
|
+
}), x = (g, d, f = {}, p = {}, y = {}, N = null, h = null, k = "brackets", A = !1) => {
|
|
247
|
+
const H = We();
|
|
248
|
+
return new Promise((K, U) => {
|
|
249
|
+
if (g.startsWith("#")) {
|
|
250
|
+
K(v(g.substring(1), y, N, h));
|
|
877
251
|
return;
|
|
878
252
|
}
|
|
879
|
-
const [
|
|
880
|
-
let
|
|
881
|
-
if (e.length === 0 && (
|
|
882
|
-
...
|
|
253
|
+
const [W, O] = _t(d, g || "", f, k);
|
|
254
|
+
let o = A && e.length === 0;
|
|
255
|
+
if (e.length === 0 && (be = typeof window < "u" ? window.location.href : ""), p = {
|
|
256
|
+
...p,
|
|
883
257
|
Accept: "text/html, application/xhtml+xml",
|
|
884
258
|
"X-Requested-With": "XMLHttpRequest",
|
|
885
259
|
"X-Inertia": !0,
|
|
886
|
-
"X-Inertia-Version":
|
|
887
|
-
"X-InertiaUI-Modal":
|
|
888
|
-
"X-InertiaUI-Modal-Use-Router":
|
|
889
|
-
"X-InertiaUI-Modal-Base-Url":
|
|
890
|
-
},
|
|
891
|
-
return
|
|
892
|
-
config:
|
|
893
|
-
onClose:
|
|
894
|
-
onAfterLeave:
|
|
895
|
-
},
|
|
260
|
+
"X-Inertia-Version": mt,
|
|
261
|
+
"X-InertiaUI-Modal": H,
|
|
262
|
+
"X-InertiaUI-Modal-Use-Router": o ? 1 : 0,
|
|
263
|
+
"X-InertiaUI-Modal-Base-Url": be
|
|
264
|
+
}, o)
|
|
265
|
+
return qe = null, oe[H] = {
|
|
266
|
+
config: y,
|
|
267
|
+
onClose: N,
|
|
268
|
+
onAfterLeave: h
|
|
269
|
+
}, he.visit(W, {
|
|
896
270
|
method: d,
|
|
897
|
-
data:
|
|
898
|
-
headers:
|
|
271
|
+
data: O,
|
|
272
|
+
headers: p,
|
|
899
273
|
preserveScroll: !0,
|
|
900
274
|
preserveState: !0,
|
|
901
|
-
onError:
|
|
275
|
+
onError: U,
|
|
902
276
|
onFinish: () => {
|
|
903
|
-
|
|
277
|
+
Zt(() => qe).then(K);
|
|
904
278
|
}
|
|
905
279
|
});
|
|
906
|
-
|
|
907
|
-
url:
|
|
280
|
+
Te({
|
|
281
|
+
url: W,
|
|
908
282
|
method: d,
|
|
909
|
-
data:
|
|
910
|
-
headers:
|
|
911
|
-
}).then((
|
|
912
|
-
|
|
283
|
+
data: O,
|
|
284
|
+
headers: p
|
|
285
|
+
}).then((u) => K(m(u.data, y, N, h))).catch((u) => {
|
|
286
|
+
U(u);
|
|
913
287
|
});
|
|
914
288
|
});
|
|
915
|
-
},
|
|
289
|
+
}, c = {
|
|
916
290
|
stack: e,
|
|
917
|
-
localModals:
|
|
918
|
-
push:
|
|
291
|
+
localModals: r,
|
|
292
|
+
push: s,
|
|
919
293
|
pushFromResponseData: m,
|
|
920
294
|
closeAll: () => {
|
|
921
|
-
|
|
295
|
+
Xe.reverse().forEach((g) => g.close());
|
|
922
296
|
},
|
|
923
297
|
reset: () => l(() => []),
|
|
924
|
-
visit:
|
|
925
|
-
visitModal:
|
|
926
|
-
registerLocalModal: (
|
|
927
|
-
|
|
298
|
+
visit: x,
|
|
299
|
+
visitModal: b,
|
|
300
|
+
registerLocalModal: (g, d) => {
|
|
301
|
+
i((f) => ({
|
|
928
302
|
...f,
|
|
929
|
-
[
|
|
303
|
+
[g]: { name: g, callback: d }
|
|
930
304
|
}));
|
|
931
305
|
},
|
|
932
|
-
removeLocalModal: (
|
|
933
|
-
|
|
306
|
+
removeLocalModal: (g) => {
|
|
307
|
+
i((d) => {
|
|
934
308
|
const f = { ...d };
|
|
935
|
-
return delete f[
|
|
309
|
+
return delete f[g], f;
|
|
936
310
|
});
|
|
937
311
|
}
|
|
938
312
|
};
|
|
939
|
-
return /* @__PURE__ */ F
|
|
940
|
-
},
|
|
941
|
-
const t =
|
|
313
|
+
return /* @__PURE__ */ F(Re.Provider, { value: c, children: t });
|
|
314
|
+
}, Ae = () => {
|
|
315
|
+
const t = de(Re);
|
|
942
316
|
if (t === null)
|
|
943
317
|
throw new Error("useModalStack must be used within a ModalStackProvider");
|
|
944
318
|
return t;
|
|
945
|
-
},
|
|
946
|
-
t.initialPage && (
|
|
947
|
-
},
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
return /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
955
|
-
i(),
|
|
956
|
-
/* @__PURE__ */ F.jsx(mn, {})
|
|
957
|
-
] });
|
|
958
|
-
};
|
|
959
|
-
return /* @__PURE__ */ F.jsx(pn, { children: /* @__PURE__ */ F.jsx(t, { ...e, children: r }) });
|
|
960
|
-
}, mn = ({ children: t }) => {
|
|
319
|
+
}, rt = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Jt = (t) => {
|
|
320
|
+
t.initialPage && (mt = t.initialPage.version), t.resolveComponent && (pt = t.resolveComponent);
|
|
321
|
+
}, hr = (t, e) => (Jt(e), /* @__PURE__ */ F(Yt, { children: /* @__PURE__ */ F(t, { ...e, children: ({ Component: r, props: i, key: l }) => /* @__PURE__ */ le(Ye, { children: [
|
|
322
|
+
(() => {
|
|
323
|
+
const m = Ne(r, { key: l, ...i });
|
|
324
|
+
return typeof r.layout == "function" ? r.layout(m) : Array.isArray(r.layout) ? r.layout.concat(m).reverse().reduce((v, b) => Ne(b, i, v)) : m;
|
|
325
|
+
})(),
|
|
326
|
+
/* @__PURE__ */ F(Qt, {})
|
|
327
|
+
] }) }) })), Qt = ({ children: t }) => {
|
|
961
328
|
var m;
|
|
962
|
-
const e =
|
|
963
|
-
let
|
|
964
|
-
|
|
965
|
-
() =>
|
|
966
|
-
const
|
|
967
|
-
if (!
|
|
968
|
-
|
|
329
|
+
const e = de(Re);
|
|
330
|
+
let n = !1, r = !1;
|
|
331
|
+
D(() => he.on("start", () => n = !0), []), D(() => he.on("finish", () => n = !1), []), D(
|
|
332
|
+
() => he.on("navigate", function(s) {
|
|
333
|
+
const v = s.detail.page.props._inertiaui_modal;
|
|
334
|
+
if (!v) {
|
|
335
|
+
r && e.closeAll();
|
|
969
336
|
return;
|
|
970
337
|
}
|
|
971
|
-
|
|
972
|
-
if (!
|
|
338
|
+
r = v, be = v.baseUrl, e.pushFromResponseData(v, {}, () => {
|
|
339
|
+
if (!v.baseUrl) {
|
|
973
340
|
console.error("No base url in modal response data so cannot navigate back");
|
|
974
341
|
return;
|
|
975
342
|
}
|
|
976
|
-
!
|
|
343
|
+
!n && window.location.href !== v.baseUrl && he.visit(v.baseUrl, {
|
|
977
344
|
preserveScroll: !0,
|
|
978
345
|
preserveState: !0
|
|
979
346
|
});
|
|
980
|
-
}).then((
|
|
981
|
-
|
|
347
|
+
}).then((b) => {
|
|
348
|
+
qe = b;
|
|
982
349
|
});
|
|
983
350
|
}),
|
|
984
351
|
[]
|
|
985
352
|
);
|
|
986
|
-
const
|
|
987
|
-
|
|
988
|
-
const l =
|
|
989
|
-
return
|
|
990
|
-
var
|
|
991
|
-
const
|
|
992
|
-
|
|
993
|
-
}, [(m = l.props) == null ? void 0 : m._inertiaui_modal]), /* @__PURE__ */
|
|
353
|
+
const i = (s) => (Xe.length && (s.headers["X-InertiaUI-Modal-Base-Url"] = be), s);
|
|
354
|
+
D(() => (Te.interceptors.request.use(i), () => Te.interceptors.request.eject(i)), []);
|
|
355
|
+
const l = Xt(), a = j();
|
|
356
|
+
return D(() => {
|
|
357
|
+
var b, x;
|
|
358
|
+
const s = (b = l.props) == null ? void 0 : b._inertiaui_modal, v = a.current;
|
|
359
|
+
a.current = s, s && v && s.component === v.component && s.url === v.url && ((x = e.stack[0]) == null || x.updateProps(s.props ?? {}));
|
|
360
|
+
}, [(m = l.props) == null ? void 0 : m._inertiaui_modal]), /* @__PURE__ */ le(Ye, { children: [
|
|
994
361
|
t,
|
|
995
|
-
e.stack.length > 0 && /* @__PURE__ */ F
|
|
362
|
+
e.stack.length > 0 && /* @__PURE__ */ F(vt, { index: 0 })
|
|
996
363
|
] });
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
const
|
|
1000
|
-
const t =
|
|
364
|
+
}, Qe = B.createContext(null);
|
|
365
|
+
Qe.displayName = "ModalIndexContext";
|
|
366
|
+
const ht = () => {
|
|
367
|
+
const t = B.useContext(Qe);
|
|
1001
368
|
if (t === void 0)
|
|
1002
369
|
throw new Error("useModalIndex must be used within a ModalIndexProvider");
|
|
1003
370
|
return t;
|
|
1004
|
-
},
|
|
1005
|
-
const { stack: e } =
|
|
1006
|
-
return (
|
|
1007
|
-
|
|
371
|
+
}, vt = ({ index: t }) => {
|
|
372
|
+
const { stack: e } = Ae(), n = Y(() => e[t], [e, t]);
|
|
373
|
+
return (n == null ? void 0 : n.component) && /* @__PURE__ */ F(Qe.Provider, { value: t, children: /* @__PURE__ */ F(
|
|
374
|
+
n.component,
|
|
1008
375
|
{
|
|
1009
|
-
...
|
|
1010
|
-
onModalEvent: (...
|
|
376
|
+
...n.props,
|
|
377
|
+
onModalEvent: (...r) => n.emit(...r)
|
|
1011
378
|
}
|
|
1012
379
|
) });
|
|
1013
|
-
},
|
|
1014
|
-
const
|
|
1015
|
-
var
|
|
1016
|
-
return (
|
|
1017
|
-
}, [
|
|
380
|
+
}, bt = Ze(({ name: t, children: e, onFocus: n = null, onBlur: r = null, onClose: i = null, onSuccess: l = null, ...a }, m) => {
|
|
381
|
+
const s = ht(), { stack: v, registerLocalModal: b, removeLocalModal: x } = Ae(), [T, E] = $(null), c = Y(() => t ? T : v[s], [t, T, s, v]), g = Y(() => {
|
|
382
|
+
var h;
|
|
383
|
+
return (h = v.find((k) => k.shouldRender && k.index > (c == null ? void 0 : c.index))) == null ? void 0 : h.index;
|
|
384
|
+
}, [s, v]), d = Y(() => (c == null ? void 0 : c.config.slideover) ?? a.slideover ?? Je("type") === "slideover", [a.slideover]), f = Y(
|
|
1018
385
|
() => ({
|
|
1019
386
|
slideover: d,
|
|
1020
|
-
closeButton:
|
|
1021
|
-
closeExplicitly:
|
|
1022
|
-
maxWidth:
|
|
1023
|
-
paddingClasses:
|
|
1024
|
-
panelClasses:
|
|
1025
|
-
position:
|
|
1026
|
-
...
|
|
387
|
+
closeButton: a.closeButton ?? se(d, "closeButton"),
|
|
388
|
+
closeExplicitly: a.closeExplicitly ?? se(d, "closeExplicitly"),
|
|
389
|
+
maxWidth: a.maxWidth ?? se(d, "maxWidth"),
|
|
390
|
+
paddingClasses: a.paddingClasses ?? se(d, "paddingClasses"),
|
|
391
|
+
panelClasses: a.panelClasses ?? se(d, "panelClasses"),
|
|
392
|
+
position: a.position ?? se(d, "position"),
|
|
393
|
+
...c == null ? void 0 : c.config
|
|
1027
394
|
}),
|
|
1028
|
-
[
|
|
395
|
+
[a, c == null ? void 0 : c.config]
|
|
1029
396
|
);
|
|
1030
|
-
|
|
397
|
+
D(() => {
|
|
1031
398
|
if (t) {
|
|
1032
|
-
let
|
|
1033
|
-
return
|
|
1034
|
-
|
|
399
|
+
let h = null;
|
|
400
|
+
return b(t, (k) => {
|
|
401
|
+
h = k.registerEventListenersFromProps(a), E(k);
|
|
1035
402
|
}), () => {
|
|
1036
|
-
|
|
403
|
+
h == null || h(), h = null, x(t);
|
|
1037
404
|
};
|
|
1038
405
|
}
|
|
1039
|
-
return
|
|
406
|
+
return c.registerEventListenersFromProps(a);
|
|
1040
407
|
}, [t]);
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
}, [
|
|
1045
|
-
|
|
1046
|
-
}, [
|
|
1047
|
-
const [
|
|
1048
|
-
return
|
|
1049
|
-
|
|
1050
|
-
}, [
|
|
408
|
+
const p = j(c);
|
|
409
|
+
D(() => {
|
|
410
|
+
p.current = c;
|
|
411
|
+
}, [c]), D(() => {
|
|
412
|
+
c !== null && (c.isOpen ? l == null || l() : i == null || i());
|
|
413
|
+
}, [c == null ? void 0 : c.isOpen]);
|
|
414
|
+
const [y, N] = $(!1);
|
|
415
|
+
return D(() => {
|
|
416
|
+
y && c !== null && c.isOpen && (c.onTopOfStack ? n == null || n() : r == null || r()), N(!0);
|
|
417
|
+
}, [c == null ? void 0 : c.onTopOfStack]), ct(
|
|
1051
418
|
m,
|
|
1052
419
|
() => ({
|
|
1053
420
|
afterLeave: () => {
|
|
1054
|
-
var
|
|
1055
|
-
return (
|
|
421
|
+
var h;
|
|
422
|
+
return (h = p.current) == null ? void 0 : h.afterLeave();
|
|
1056
423
|
},
|
|
1057
424
|
close: () => {
|
|
1058
|
-
var
|
|
1059
|
-
return (
|
|
425
|
+
var h;
|
|
426
|
+
return (h = p.current) == null ? void 0 : h.close();
|
|
1060
427
|
},
|
|
1061
|
-
emit: (...
|
|
1062
|
-
var
|
|
1063
|
-
return (
|
|
428
|
+
emit: (...h) => {
|
|
429
|
+
var k;
|
|
430
|
+
return (k = p.current) == null ? void 0 : k.emit(...h);
|
|
1064
431
|
},
|
|
1065
432
|
getChildModal: () => {
|
|
1066
|
-
var
|
|
1067
|
-
return (
|
|
433
|
+
var h;
|
|
434
|
+
return (h = p.current) == null ? void 0 : h.getChildModal();
|
|
1068
435
|
},
|
|
1069
436
|
getParentModal: () => {
|
|
1070
|
-
var
|
|
1071
|
-
return (
|
|
437
|
+
var h;
|
|
438
|
+
return (h = p.current) == null ? void 0 : h.getParentModal();
|
|
1072
439
|
},
|
|
1073
|
-
reload: (...
|
|
1074
|
-
var
|
|
1075
|
-
return (
|
|
440
|
+
reload: (...h) => {
|
|
441
|
+
var k;
|
|
442
|
+
return (k = p.current) == null ? void 0 : k.reload(...h);
|
|
1076
443
|
},
|
|
1077
444
|
setOpen: () => {
|
|
1078
|
-
var
|
|
1079
|
-
return (
|
|
445
|
+
var h;
|
|
446
|
+
return (h = p.current) == null ? void 0 : h.setOpen();
|
|
1080
447
|
},
|
|
1081
448
|
get id() {
|
|
1082
|
-
var
|
|
1083
|
-
return (
|
|
449
|
+
var h;
|
|
450
|
+
return (h = p.current) == null ? void 0 : h.id;
|
|
1084
451
|
},
|
|
1085
452
|
get index() {
|
|
1086
|
-
var
|
|
1087
|
-
return (
|
|
453
|
+
var h;
|
|
454
|
+
return (h = p.current) == null ? void 0 : h.index;
|
|
1088
455
|
},
|
|
1089
456
|
get isOpen() {
|
|
1090
|
-
var
|
|
1091
|
-
return (
|
|
457
|
+
var h;
|
|
458
|
+
return (h = p.current) == null ? void 0 : h.isOpen;
|
|
1092
459
|
},
|
|
1093
460
|
get config() {
|
|
1094
|
-
var
|
|
1095
|
-
return (
|
|
461
|
+
var h;
|
|
462
|
+
return (h = p.current) == null ? void 0 : h.config;
|
|
1096
463
|
},
|
|
1097
464
|
get modalContext() {
|
|
1098
|
-
return
|
|
465
|
+
return p.current;
|
|
1099
466
|
},
|
|
1100
467
|
get onTopOfStack() {
|
|
1101
|
-
var
|
|
1102
|
-
return (
|
|
468
|
+
var h;
|
|
469
|
+
return (h = p.current) == null ? void 0 : h.onTopOfStack;
|
|
1103
470
|
},
|
|
1104
471
|
get shouldRender() {
|
|
1105
|
-
var
|
|
1106
|
-
return (
|
|
472
|
+
var h;
|
|
473
|
+
return (h = p.current) == null ? void 0 : h.shouldRender;
|
|
1107
474
|
}
|
|
1108
475
|
}),
|
|
1109
|
-
[
|
|
1110
|
-
), (
|
|
476
|
+
[c]
|
|
477
|
+
), (c == null ? void 0 : c.shouldRender) && /* @__PURE__ */ le(Ye, { children: [
|
|
1111
478
|
typeof e == "function" ? e({
|
|
1112
|
-
afterLeave:
|
|
1113
|
-
close:
|
|
479
|
+
afterLeave: c.afterLeave,
|
|
480
|
+
close: c.close,
|
|
1114
481
|
config: f,
|
|
1115
|
-
emit:
|
|
1116
|
-
getChildModal:
|
|
1117
|
-
getParentModal:
|
|
1118
|
-
id:
|
|
1119
|
-
index:
|
|
1120
|
-
isOpen:
|
|
1121
|
-
modalContext:
|
|
1122
|
-
onTopOfStack:
|
|
1123
|
-
reload:
|
|
1124
|
-
setOpen:
|
|
1125
|
-
shouldRender:
|
|
482
|
+
emit: c.emit,
|
|
483
|
+
getChildModal: c.getChildModal,
|
|
484
|
+
getParentModal: c.getParentModal,
|
|
485
|
+
id: c.id,
|
|
486
|
+
index: c.index,
|
|
487
|
+
isOpen: c.isOpen,
|
|
488
|
+
modalContext: c,
|
|
489
|
+
onTopOfStack: c.onTopOfStack,
|
|
490
|
+
reload: c.reload,
|
|
491
|
+
setOpen: c.setOpen,
|
|
492
|
+
shouldRender: c.shouldRender
|
|
1126
493
|
}) : e,
|
|
1127
|
-
|
|
494
|
+
g && /* @__PURE__ */ F(vt, { index: g })
|
|
1128
495
|
] });
|
|
1129
496
|
});
|
|
1130
|
-
|
|
1131
|
-
function
|
|
1132
|
-
var e,
|
|
1133
|
-
if (typeof t == "string" || typeof t == "number")
|
|
497
|
+
bt.displayName = "HeadlessModal";
|
|
498
|
+
function gt(t) {
|
|
499
|
+
var e, n, r = "";
|
|
500
|
+
if (typeof t == "string" || typeof t == "number") r += t;
|
|
1134
501
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1135
|
-
var
|
|
1136
|
-
for (e = 0; e <
|
|
1137
|
-
} else for (
|
|
1138
|
-
return
|
|
502
|
+
var i = t.length;
|
|
503
|
+
for (e = 0; e < i; e++) t[e] && (n = gt(t[e])) && (r && (r += " "), r += n);
|
|
504
|
+
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
505
|
+
return r;
|
|
1139
506
|
}
|
|
1140
|
-
function
|
|
1141
|
-
for (var t, e,
|
|
1142
|
-
return
|
|
507
|
+
function Se() {
|
|
508
|
+
for (var t, e, n = 0, r = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = gt(t)) && (r && (r += " "), r += e);
|
|
509
|
+
return r;
|
|
1143
510
|
}
|
|
1144
|
-
var
|
|
1145
|
-
let
|
|
511
|
+
var en = Object.defineProperty, tn = (t, e, n) => e in t ? en(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Be = (t, e, n) => (tn(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
512
|
+
let nn = class {
|
|
1146
513
|
constructor() {
|
|
1147
|
-
|
|
514
|
+
Be(this, "current", this.detect()), Be(this, "handoffState", "pending"), Be(this, "currentId", 0);
|
|
1148
515
|
}
|
|
1149
516
|
set(e) {
|
|
1150
517
|
this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
|
|
@@ -1170,596 +537,596 @@ let yn = class {
|
|
|
1170
537
|
get isHandoffComplete() {
|
|
1171
538
|
return this.handoffState === "complete";
|
|
1172
539
|
}
|
|
1173
|
-
},
|
|
1174
|
-
function
|
|
540
|
+
}, Ee = new nn();
|
|
541
|
+
function rn(t) {
|
|
1175
542
|
typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
|
|
1176
543
|
throw e;
|
|
1177
544
|
}));
|
|
1178
545
|
}
|
|
1179
|
-
function
|
|
1180
|
-
let t = [], e = { addEventListener(
|
|
1181
|
-
return
|
|
1182
|
-
}, requestAnimationFrame(...
|
|
1183
|
-
let
|
|
1184
|
-
return e.add(() => cancelAnimationFrame(
|
|
1185
|
-
}, nextFrame(...
|
|
1186
|
-
return e.requestAnimationFrame(() => e.requestAnimationFrame(...
|
|
1187
|
-
}, setTimeout(...
|
|
1188
|
-
let
|
|
1189
|
-
return e.add(() => clearTimeout(
|
|
1190
|
-
}, microTask(...
|
|
1191
|
-
let
|
|
1192
|
-
return
|
|
1193
|
-
|
|
546
|
+
function Me() {
|
|
547
|
+
let t = [], e = { addEventListener(n, r, i, l) {
|
|
548
|
+
return n.addEventListener(r, i, l), e.add(() => n.removeEventListener(r, i, l));
|
|
549
|
+
}, requestAnimationFrame(...n) {
|
|
550
|
+
let r = requestAnimationFrame(...n);
|
|
551
|
+
return e.add(() => cancelAnimationFrame(r));
|
|
552
|
+
}, nextFrame(...n) {
|
|
553
|
+
return e.requestAnimationFrame(() => e.requestAnimationFrame(...n));
|
|
554
|
+
}, setTimeout(...n) {
|
|
555
|
+
let r = setTimeout(...n);
|
|
556
|
+
return e.add(() => clearTimeout(r));
|
|
557
|
+
}, microTask(...n) {
|
|
558
|
+
let r = { current: !0 };
|
|
559
|
+
return rn(() => {
|
|
560
|
+
r.current && n[0]();
|
|
1194
561
|
}), e.add(() => {
|
|
1195
|
-
|
|
562
|
+
r.current = !1;
|
|
1196
563
|
});
|
|
1197
|
-
}, style(
|
|
1198
|
-
let l =
|
|
1199
|
-
return Object.assign(
|
|
1200
|
-
Object.assign(
|
|
564
|
+
}, style(n, r, i) {
|
|
565
|
+
let l = n.style.getPropertyValue(r);
|
|
566
|
+
return Object.assign(n.style, { [r]: i }), this.add(() => {
|
|
567
|
+
Object.assign(n.style, { [r]: l });
|
|
1201
568
|
});
|
|
1202
|
-
}, group(
|
|
1203
|
-
let
|
|
1204
|
-
return r
|
|
1205
|
-
}, add(
|
|
1206
|
-
return t.includes(
|
|
1207
|
-
let
|
|
1208
|
-
if (
|
|
569
|
+
}, group(n) {
|
|
570
|
+
let r = Me();
|
|
571
|
+
return n(r), this.add(() => r.dispose());
|
|
572
|
+
}, add(n) {
|
|
573
|
+
return t.includes(n) || t.push(n), () => {
|
|
574
|
+
let r = t.indexOf(n);
|
|
575
|
+
if (r >= 0) for (let i of t.splice(r, 1)) i();
|
|
1209
576
|
};
|
|
1210
577
|
}, dispose() {
|
|
1211
|
-
for (let
|
|
578
|
+
for (let n of t.splice(0)) n();
|
|
1212
579
|
} };
|
|
1213
580
|
return e;
|
|
1214
581
|
}
|
|
1215
|
-
function
|
|
1216
|
-
let [t] =
|
|
1217
|
-
return
|
|
582
|
+
function yt() {
|
|
583
|
+
let [t] = $(Me);
|
|
584
|
+
return D(() => () => t.dispose(), [t]), t;
|
|
1218
585
|
}
|
|
1219
|
-
let
|
|
1220
|
-
|
|
586
|
+
let Q = (t, e) => {
|
|
587
|
+
Ee.isServer ? D(t, e) : Ht(t, e);
|
|
1221
588
|
};
|
|
1222
|
-
function
|
|
1223
|
-
let e =
|
|
1224
|
-
return
|
|
589
|
+
function wt(t) {
|
|
590
|
+
let e = j(t);
|
|
591
|
+
return Q(() => {
|
|
1225
592
|
e.current = t;
|
|
1226
593
|
}, [t]), e;
|
|
1227
594
|
}
|
|
1228
|
-
let
|
|
1229
|
-
let e =
|
|
1230
|
-
return
|
|
595
|
+
let G = function(t) {
|
|
596
|
+
let e = wt(t);
|
|
597
|
+
return B.useCallback((...n) => e.current(...n), [e]);
|
|
1231
598
|
};
|
|
1232
|
-
function
|
|
599
|
+
function _e(...t) {
|
|
1233
600
|
return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
|
|
1234
601
|
}
|
|
1235
|
-
function
|
|
602
|
+
function Le(t, e, ...n) {
|
|
1236
603
|
if (t in e) {
|
|
1237
|
-
let
|
|
1238
|
-
return typeof
|
|
604
|
+
let i = e[t];
|
|
605
|
+
return typeof i == "function" ? i(...n) : i;
|
|
1239
606
|
}
|
|
1240
|
-
let
|
|
1241
|
-
throw Error.captureStackTrace && Error.captureStackTrace(
|
|
607
|
+
let r = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((i) => `"${i}"`).join(", ")}.`);
|
|
608
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, Le), r;
|
|
1242
609
|
}
|
|
1243
|
-
var
|
|
1244
|
-
function
|
|
1245
|
-
let t =
|
|
1246
|
-
return
|
|
610
|
+
var xt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(xt || {}), J = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(J || {});
|
|
611
|
+
function Et() {
|
|
612
|
+
let t = ln();
|
|
613
|
+
return V((e) => an({ mergeRefs: t, ...e }), [t]);
|
|
1247
614
|
}
|
|
1248
|
-
function
|
|
1249
|
-
m = m ??
|
|
1250
|
-
let
|
|
1251
|
-
if (l) return
|
|
1252
|
-
let
|
|
1253
|
-
if (
|
|
1254
|
-
let { static:
|
|
1255
|
-
if (
|
|
615
|
+
function an({ ourProps: t, theirProps: e, slot: n, defaultTag: r, features: i, visible: l = !0, name: a, mergeRefs: m }) {
|
|
616
|
+
m = m ?? sn;
|
|
617
|
+
let s = Nt(e, t);
|
|
618
|
+
if (l) return we(s, n, r, a, m);
|
|
619
|
+
let v = i ?? 0;
|
|
620
|
+
if (v & 2) {
|
|
621
|
+
let { static: b = !1, ...x } = s;
|
|
622
|
+
if (b) return we(x, n, r, a, m);
|
|
1256
623
|
}
|
|
1257
|
-
if (
|
|
1258
|
-
let { unmount:
|
|
1259
|
-
return
|
|
624
|
+
if (v & 1) {
|
|
625
|
+
let { unmount: b = !0, ...x } = s;
|
|
626
|
+
return Le(b ? 0 : 1, { 0() {
|
|
1260
627
|
return null;
|
|
1261
628
|
}, 1() {
|
|
1262
|
-
return
|
|
629
|
+
return we({ ...x, hidden: !0, style: { display: "none" } }, n, r, a, m);
|
|
1263
630
|
} });
|
|
1264
631
|
}
|
|
1265
|
-
return
|
|
632
|
+
return we(s, n, r, a, m);
|
|
1266
633
|
}
|
|
1267
|
-
function
|
|
1268
|
-
let { as: l =
|
|
1269
|
-
"className" in
|
|
1270
|
-
let
|
|
634
|
+
function we(t, e = {}, n, r, i) {
|
|
635
|
+
let { as: l = n, children: a, refName: m = "ref", ...s } = He(t, ["unmount", "static"]), v = t.ref !== void 0 ? { [m]: t.ref } : {}, b = typeof a == "function" ? a(e) : a;
|
|
636
|
+
"className" in s && s.className && typeof s.className == "function" && (s.className = s.className(e)), s["aria-labelledby"] && s["aria-labelledby"] === s.id && (s["aria-labelledby"] = void 0);
|
|
637
|
+
let x = {};
|
|
1271
638
|
if (e) {
|
|
1272
|
-
let
|
|
1273
|
-
for (let [
|
|
1274
|
-
if (
|
|
1275
|
-
|
|
1276
|
-
for (let
|
|
639
|
+
let T = !1, E = [];
|
|
640
|
+
for (let [c, g] of Object.entries(e)) typeof g == "boolean" && (T = !0), g === !0 && E.push(c.replace(/([A-Z])/g, (d) => `-${d.toLowerCase()}`));
|
|
641
|
+
if (T) {
|
|
642
|
+
x["data-headlessui-state"] = E.join(" ");
|
|
643
|
+
for (let c of E) x[`data-${c}`] = "";
|
|
1277
644
|
}
|
|
1278
645
|
}
|
|
1279
|
-
if (l ===
|
|
1280
|
-
if (Object.keys(
|
|
1281
|
-
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((
|
|
646
|
+
if (l === ae && (Object.keys(te(s)).length > 0 || Object.keys(te(x)).length > 0)) if (!Kt(b) || Array.isArray(b) && b.length > 1) {
|
|
647
|
+
if (Object.keys(te(s)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(te(s)).concat(Object.keys(te(x))).map((T) => ` - ${T}`).join(`
|
|
648
|
+
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((T) => ` - ${T}`).join(`
|
|
1282
649
|
`)].join(`
|
|
1283
650
|
`));
|
|
1284
651
|
} else {
|
|
1285
|
-
let
|
|
1286
|
-
for (let f in
|
|
1287
|
-
return
|
|
652
|
+
let T = b.props, E = T == null ? void 0 : T.className, c = typeof E == "function" ? (...f) => _e(E(...f), s.className) : _e(E, s.className), g = c ? { className: c } : {}, d = Nt(b.props, te(He(s, ["ref"])));
|
|
653
|
+
for (let f in x) f in d && delete x[f];
|
|
654
|
+
return qt(b, Object.assign({}, d, x, v, { ref: i(on(b), v.ref) }, g));
|
|
1288
655
|
}
|
|
1289
|
-
return
|
|
656
|
+
return Ne(l, Object.assign({}, He(s, ["ref"]), l !== ae && v, l !== ae && x), b);
|
|
1290
657
|
}
|
|
1291
|
-
function
|
|
1292
|
-
let t =
|
|
1293
|
-
for (let
|
|
658
|
+
function ln() {
|
|
659
|
+
let t = j([]), e = V((n) => {
|
|
660
|
+
for (let r of t.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
|
|
1294
661
|
}, []);
|
|
1295
|
-
return (...
|
|
1296
|
-
if (!
|
|
662
|
+
return (...n) => {
|
|
663
|
+
if (!n.every((r) => r == null)) return t.current = n, e;
|
|
1297
664
|
};
|
|
1298
665
|
}
|
|
1299
|
-
function
|
|
666
|
+
function sn(...t) {
|
|
1300
667
|
return t.every((e) => e == null) ? void 0 : (e) => {
|
|
1301
|
-
for (let
|
|
668
|
+
for (let n of t) n != null && (typeof n == "function" ? n(e) : n.current = e);
|
|
1302
669
|
};
|
|
1303
670
|
}
|
|
1304
|
-
function
|
|
671
|
+
function Nt(...t) {
|
|
1305
672
|
if (t.length === 0) return {};
|
|
1306
673
|
if (t.length === 1) return t[0];
|
|
1307
|
-
let e = {},
|
|
1308
|
-
for (let
|
|
1309
|
-
if (e.disabled || e["aria-disabled"]) for (let
|
|
674
|
+
let e = {}, n = {};
|
|
675
|
+
for (let r of t) for (let i in r) i.startsWith("on") && typeof r[i] == "function" ? (n[i] != null || (n[i] = []), n[i].push(r[i])) : e[i] = r[i];
|
|
676
|
+
if (e.disabled || e["aria-disabled"]) for (let r in n) /^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r) && (n[r] = [(i) => {
|
|
1310
677
|
var l;
|
|
1311
|
-
return (l =
|
|
678
|
+
return (l = i == null ? void 0 : i.preventDefault) == null ? void 0 : l.call(i);
|
|
1312
679
|
}]);
|
|
1313
|
-
for (let
|
|
1314
|
-
let
|
|
1315
|
-
for (let m of
|
|
1316
|
-
if ((
|
|
1317
|
-
m(
|
|
680
|
+
for (let r in n) Object.assign(e, { [r](i, ...l) {
|
|
681
|
+
let a = n[r];
|
|
682
|
+
for (let m of a) {
|
|
683
|
+
if ((i instanceof Event || (i == null ? void 0 : i.nativeEvent) instanceof Event) && i.defaultPrevented) return;
|
|
684
|
+
m(i, ...l);
|
|
1318
685
|
}
|
|
1319
686
|
} });
|
|
1320
687
|
return e;
|
|
1321
688
|
}
|
|
1322
|
-
function
|
|
689
|
+
function et(t) {
|
|
1323
690
|
var e;
|
|
1324
|
-
return Object.assign(
|
|
691
|
+
return Object.assign(Ze(t), { displayName: (e = t.displayName) != null ? e : t.name });
|
|
1325
692
|
}
|
|
1326
|
-
function
|
|
693
|
+
function te(t) {
|
|
1327
694
|
let e = Object.assign({}, t);
|
|
1328
|
-
for (let
|
|
695
|
+
for (let n in e) e[n] === void 0 && delete e[n];
|
|
1329
696
|
return e;
|
|
1330
697
|
}
|
|
1331
|
-
function
|
|
1332
|
-
let
|
|
1333
|
-
for (let
|
|
1334
|
-
return
|
|
698
|
+
function He(t, e = []) {
|
|
699
|
+
let n = Object.assign({}, t);
|
|
700
|
+
for (let r of e) r in n && delete n[r];
|
|
701
|
+
return n;
|
|
1335
702
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return
|
|
703
|
+
function on(t) {
|
|
704
|
+
return B.version.split(".")[0] >= "19" ? t.props.ref : t.ref;
|
|
1338
705
|
}
|
|
1339
|
-
let
|
|
1340
|
-
function
|
|
1341
|
-
let e =
|
|
1342
|
-
|
|
706
|
+
let un = Symbol();
|
|
707
|
+
function Tt(...t) {
|
|
708
|
+
let e = j(t);
|
|
709
|
+
D(() => {
|
|
1343
710
|
e.current = t;
|
|
1344
711
|
}, [t]);
|
|
1345
|
-
let
|
|
1346
|
-
for (let
|
|
712
|
+
let n = G((r) => {
|
|
713
|
+
for (let i of e.current) i != null && (typeof i == "function" ? i(r) : i.current = r);
|
|
1347
714
|
});
|
|
1348
|
-
return t.every((
|
|
715
|
+
return t.every((r) => r == null || (r == null ? void 0 : r[un])) ? void 0 : n;
|
|
1349
716
|
}
|
|
1350
|
-
function
|
|
1351
|
-
let [e,
|
|
1352
|
-
return { flags: e, setFlag:
|
|
717
|
+
function dn(t = 0) {
|
|
718
|
+
let [e, n] = $(t), r = V((s) => n(s), [e]), i = V((s) => n((v) => v | s), [e]), l = V((s) => (e & s) === s, [e]), a = V((s) => n((v) => v & ~s), [n]), m = V((s) => n((v) => v ^ s), [n]);
|
|
719
|
+
return { flags: e, setFlag: r, addFlag: i, hasFlag: l, removeFlag: a, toggleFlag: m };
|
|
1353
720
|
}
|
|
1354
|
-
var
|
|
1355
|
-
typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((
|
|
721
|
+
var at, it;
|
|
722
|
+
typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((at = process == null ? void 0 : process.env) == null ? void 0 : at.NODE_ENV) === "test" && typeof ((it = Element == null ? void 0 : Element.prototype) == null ? void 0 : it.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
|
|
1356
723
|
return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
|
|
1357
724
|
`)), [];
|
|
1358
725
|
});
|
|
1359
|
-
var
|
|
1360
|
-
function
|
|
726
|
+
var cn = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(cn || {});
|
|
727
|
+
function fn(t) {
|
|
1361
728
|
let e = {};
|
|
1362
|
-
for (let
|
|
729
|
+
for (let n in t) t[n] === !0 && (e[`data-${n}`] = "");
|
|
1363
730
|
return e;
|
|
1364
731
|
}
|
|
1365
|
-
function
|
|
1366
|
-
let [
|
|
1367
|
-
return
|
|
1368
|
-
var
|
|
732
|
+
function mn(t, e, n, r) {
|
|
733
|
+
let [i, l] = $(n), { hasFlag: a, addFlag: m, removeFlag: s } = dn(t && i ? 3 : 0), v = j(!1), b = j(!1), x = yt();
|
|
734
|
+
return Q(() => {
|
|
735
|
+
var T;
|
|
1369
736
|
if (t) {
|
|
1370
|
-
if (
|
|
1371
|
-
|
|
737
|
+
if (n && l(!0), !e) {
|
|
738
|
+
n && m(3);
|
|
1372
739
|
return;
|
|
1373
740
|
}
|
|
1374
|
-
return (
|
|
1375
|
-
|
|
741
|
+
return (T = r == null ? void 0 : r.start) == null || T.call(r, n), pn(e, { inFlight: v, prepare() {
|
|
742
|
+
b.current ? b.current = !1 : b.current = v.current, v.current = !0, !b.current && (n ? (m(3), s(4)) : (m(4), s(2)));
|
|
1376
743
|
}, run() {
|
|
1377
|
-
|
|
744
|
+
b.current ? n ? (s(3), m(4)) : (s(4), m(3)) : n ? s(1) : m(1);
|
|
1378
745
|
}, done() {
|
|
1379
|
-
var
|
|
1380
|
-
|
|
746
|
+
var E;
|
|
747
|
+
b.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (v.current = !1, s(7), n || l(!1), (E = r == null ? void 0 : r.end) == null || E.call(r, n));
|
|
1381
748
|
} });
|
|
1382
749
|
}
|
|
1383
|
-
}, [t,
|
|
750
|
+
}, [t, n, e, x]), t ? [i, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [n, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
1384
751
|
}
|
|
1385
|
-
function
|
|
1386
|
-
let l =
|
|
1387
|
-
return
|
|
1388
|
-
|
|
1389
|
-
l.add(
|
|
752
|
+
function pn(t, { prepare: e, run: n, done: r, inFlight: i }) {
|
|
753
|
+
let l = Me();
|
|
754
|
+
return vn(t, { prepare: e, inFlight: i }), l.nextFrame(() => {
|
|
755
|
+
n(), l.requestAnimationFrame(() => {
|
|
756
|
+
l.add(hn(t, r));
|
|
1390
757
|
});
|
|
1391
758
|
}), l.dispose;
|
|
1392
759
|
}
|
|
1393
|
-
function
|
|
1394
|
-
var
|
|
1395
|
-
let
|
|
1396
|
-
if (!t) return
|
|
760
|
+
function hn(t, e) {
|
|
761
|
+
var n, r;
|
|
762
|
+
let i = Me();
|
|
763
|
+
if (!t) return i.dispose;
|
|
1397
764
|
let l = !1;
|
|
1398
|
-
|
|
765
|
+
i.add(() => {
|
|
1399
766
|
l = !0;
|
|
1400
767
|
});
|
|
1401
|
-
let
|
|
1402
|
-
return
|
|
768
|
+
let a = (r = (n = t.getAnimations) == null ? void 0 : n.call(t).filter((m) => m instanceof CSSTransition)) != null ? r : [];
|
|
769
|
+
return a.length === 0 ? (e(), i.dispose) : (Promise.allSettled(a.map((m) => m.finished)).then(() => {
|
|
1403
770
|
l || e();
|
|
1404
|
-
}),
|
|
771
|
+
}), i.dispose);
|
|
1405
772
|
}
|
|
1406
|
-
function
|
|
773
|
+
function vn(t, { inFlight: e, prepare: n }) {
|
|
1407
774
|
if (e != null && e.current) {
|
|
1408
|
-
|
|
775
|
+
n();
|
|
1409
776
|
return;
|
|
1410
777
|
}
|
|
1411
|
-
let
|
|
1412
|
-
t.style.transition = "none",
|
|
778
|
+
let r = t.style.transition;
|
|
779
|
+
t.style.transition = "none", n(), t.offsetHeight, t.style.transition = r;
|
|
1413
780
|
}
|
|
1414
781
|
/*!
|
|
1415
782
|
* tabbable 6.2.0
|
|
1416
783
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1417
784
|
*/
|
|
1418
|
-
var
|
|
1419
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
785
|
+
var St = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Oe = /* @__PURE__ */ St.join(","), Ot = typeof Element > "u", ie = Ot ? function() {
|
|
786
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Fe = !Ot && Element.prototype.getRootNode ? function(t) {
|
|
1420
787
|
var e;
|
|
1421
788
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
1422
789
|
} : function(t) {
|
|
1423
790
|
return t == null ? void 0 : t.ownerDocument;
|
|
1424
|
-
},
|
|
1425
|
-
var
|
|
1426
|
-
|
|
1427
|
-
var
|
|
1428
|
-
return
|
|
1429
|
-
},
|
|
1430
|
-
var
|
|
1431
|
-
return
|
|
1432
|
-
},
|
|
1433
|
-
if (
|
|
791
|
+
}, ke = function t(e, n) {
|
|
792
|
+
var r;
|
|
793
|
+
n === void 0 && (n = !0);
|
|
794
|
+
var i = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), l = i === "" || i === "true", a = l || n && e && t(e.parentNode);
|
|
795
|
+
return a;
|
|
796
|
+
}, bn = function(e) {
|
|
797
|
+
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
798
|
+
return r === "" || r === "true";
|
|
799
|
+
}, Ft = function(e, n, r) {
|
|
800
|
+
if (ke(e))
|
|
1434
801
|
return [];
|
|
1435
|
-
var
|
|
1436
|
-
return
|
|
1437
|
-
},
|
|
1438
|
-
for (var
|
|
1439
|
-
var
|
|
1440
|
-
if (!
|
|
1441
|
-
if (
|
|
1442
|
-
var m =
|
|
1443
|
-
|
|
1444
|
-
scopeParent:
|
|
1445
|
-
candidates:
|
|
802
|
+
var i = Array.prototype.slice.apply(e.querySelectorAll(Oe));
|
|
803
|
+
return n && ie.call(e, Oe) && i.unshift(e), i = i.filter(r), i;
|
|
804
|
+
}, kt = function t(e, n, r) {
|
|
805
|
+
for (var i = [], l = Array.from(e); l.length; ) {
|
|
806
|
+
var a = l.shift();
|
|
807
|
+
if (!ke(a, !1))
|
|
808
|
+
if (a.tagName === "SLOT") {
|
|
809
|
+
var m = a.assignedElements(), s = m.length ? m : a.children, v = t(s, !0, r);
|
|
810
|
+
r.flatten ? i.push.apply(i, v) : i.push({
|
|
811
|
+
scopeParent: a,
|
|
812
|
+
candidates: v
|
|
1446
813
|
});
|
|
1447
814
|
} else {
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1450
|
-
var
|
|
1451
|
-
typeof
|
|
1452
|
-
if (
|
|
1453
|
-
var
|
|
1454
|
-
|
|
1455
|
-
scopeParent:
|
|
1456
|
-
candidates:
|
|
815
|
+
var b = ie.call(a, Oe);
|
|
816
|
+
b && r.filter(a) && (n || !e.includes(a)) && i.push(a);
|
|
817
|
+
var x = a.shadowRoot || // check for an undisclosed shadow
|
|
818
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(a), T = !ke(x, !1) && (!r.shadowRootFilter || r.shadowRootFilter(a));
|
|
819
|
+
if (x && T) {
|
|
820
|
+
var E = t(x === !0 ? a.children : x.children, !0, r);
|
|
821
|
+
r.flatten ? i.push.apply(i, E) : i.push({
|
|
822
|
+
scopeParent: a,
|
|
823
|
+
candidates: E
|
|
1457
824
|
});
|
|
1458
825
|
} else
|
|
1459
|
-
l.unshift.apply(l,
|
|
826
|
+
l.unshift.apply(l, a.children);
|
|
1460
827
|
}
|
|
1461
828
|
}
|
|
1462
|
-
return
|
|
1463
|
-
},
|
|
829
|
+
return i;
|
|
830
|
+
}, Ct = function(e) {
|
|
1464
831
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
1465
|
-
},
|
|
832
|
+
}, ne = function(e) {
|
|
1466
833
|
if (!e)
|
|
1467
834
|
throw new Error("No node provided");
|
|
1468
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
1469
|
-
},
|
|
1470
|
-
var
|
|
1471
|
-
return
|
|
1472
|
-
},
|
|
1473
|
-
return e.tabIndex ===
|
|
1474
|
-
},
|
|
835
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || bn(e)) && !Ct(e) ? 0 : e.tabIndex;
|
|
836
|
+
}, gn = function(e, n) {
|
|
837
|
+
var r = ne(e);
|
|
838
|
+
return r < 0 && n && !Ct(e) ? 0 : r;
|
|
839
|
+
}, yn = function(e, n) {
|
|
840
|
+
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
841
|
+
}, Pt = function(e) {
|
|
1475
842
|
return e.tagName === "INPUT";
|
|
1476
|
-
},
|
|
1477
|
-
return
|
|
1478
|
-
},
|
|
1479
|
-
var
|
|
1480
|
-
return
|
|
843
|
+
}, wn = function(e) {
|
|
844
|
+
return Pt(e) && e.type === "hidden";
|
|
845
|
+
}, xn = function(e) {
|
|
846
|
+
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
847
|
+
return r.tagName === "SUMMARY";
|
|
1481
848
|
});
|
|
1482
|
-
return
|
|
1483
|
-
},
|
|
1484
|
-
for (var
|
|
1485
|
-
if (e[
|
|
1486
|
-
return e[
|
|
1487
|
-
},
|
|
849
|
+
return n;
|
|
850
|
+
}, En = function(e, n) {
|
|
851
|
+
for (var r = 0; r < e.length; r++)
|
|
852
|
+
if (e[r].checked && e[r].form === n)
|
|
853
|
+
return e[r];
|
|
854
|
+
}, Nn = function(e) {
|
|
1488
855
|
if (!e.name)
|
|
1489
856
|
return !0;
|
|
1490
|
-
var
|
|
1491
|
-
return
|
|
1492
|
-
},
|
|
857
|
+
var n = e.form || Fe(e), r = function(m) {
|
|
858
|
+
return n.querySelectorAll('input[type="radio"][name="' + m + '"]');
|
|
859
|
+
}, i;
|
|
1493
860
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
1494
|
-
|
|
861
|
+
i = r(window.CSS.escape(e.name));
|
|
1495
862
|
else
|
|
1496
863
|
try {
|
|
1497
|
-
|
|
1498
|
-
} catch (
|
|
1499
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",
|
|
864
|
+
i = r(e.name);
|
|
865
|
+
} catch (a) {
|
|
866
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1;
|
|
1500
867
|
}
|
|
1501
|
-
var l =
|
|
868
|
+
var l = En(i, e.form);
|
|
1502
869
|
return !l || l === e;
|
|
1503
|
-
},
|
|
1504
|
-
return
|
|
1505
|
-
},
|
|
1506
|
-
return
|
|
1507
|
-
},
|
|
1508
|
-
var
|
|
1509
|
-
if (
|
|
1510
|
-
var
|
|
1511
|
-
for (l = !!((
|
|
1512
|
-
var
|
|
1513
|
-
|
|
870
|
+
}, Tn = function(e) {
|
|
871
|
+
return Pt(e) && e.type === "radio";
|
|
872
|
+
}, Sn = function(e) {
|
|
873
|
+
return Tn(e) && !Nn(e);
|
|
874
|
+
}, On = function(e) {
|
|
875
|
+
var n, r = e && Fe(e), i = (n = r) === null || n === void 0 ? void 0 : n.host, l = !1;
|
|
876
|
+
if (r && r !== e) {
|
|
877
|
+
var a, m, s;
|
|
878
|
+
for (l = !!((a = i) !== null && a !== void 0 && (m = a.ownerDocument) !== null && m !== void 0 && m.contains(i) || e != null && (s = e.ownerDocument) !== null && s !== void 0 && s.contains(e)); !l && i; ) {
|
|
879
|
+
var v, b, x;
|
|
880
|
+
r = Fe(i), i = (v = r) === null || v === void 0 ? void 0 : v.host, l = !!((b = i) !== null && b !== void 0 && (x = b.ownerDocument) !== null && x !== void 0 && x.contains(i));
|
|
1514
881
|
}
|
|
1515
882
|
}
|
|
1516
883
|
return l;
|
|
1517
|
-
},
|
|
1518
|
-
var
|
|
1519
|
-
return
|
|
1520
|
-
},
|
|
1521
|
-
var
|
|
884
|
+
}, lt = function(e) {
|
|
885
|
+
var n = e.getBoundingClientRect(), r = n.width, i = n.height;
|
|
886
|
+
return r === 0 && i === 0;
|
|
887
|
+
}, Fn = function(e, n) {
|
|
888
|
+
var r = n.displayCheck, i = n.getShadowRoot;
|
|
1522
889
|
if (getComputedStyle(e).visibility === "hidden")
|
|
1523
890
|
return !0;
|
|
1524
|
-
var l =
|
|
1525
|
-
if (
|
|
891
|
+
var l = ie.call(e, "details>summary:first-of-type"), a = l ? e.parentElement : e;
|
|
892
|
+
if (ie.call(a, "details:not([open]) *"))
|
|
1526
893
|
return !0;
|
|
1527
|
-
if (!
|
|
1528
|
-
if (typeof
|
|
894
|
+
if (!r || r === "full" || r === "legacy-full") {
|
|
895
|
+
if (typeof i == "function") {
|
|
1529
896
|
for (var m = e; e; ) {
|
|
1530
|
-
var
|
|
1531
|
-
if (
|
|
1532
|
-
return
|
|
1533
|
-
e.assignedSlot ? e = e.assignedSlot : !
|
|
897
|
+
var s = e.parentElement, v = Fe(e);
|
|
898
|
+
if (s && !s.shadowRoot && i(s) === !0)
|
|
899
|
+
return lt(e);
|
|
900
|
+
e.assignedSlot ? e = e.assignedSlot : !s && v !== e.ownerDocument ? e = v.host : e = s;
|
|
1534
901
|
}
|
|
1535
902
|
e = m;
|
|
1536
903
|
}
|
|
1537
|
-
if (
|
|
904
|
+
if (On(e))
|
|
1538
905
|
return !e.getClientRects().length;
|
|
1539
|
-
if (
|
|
906
|
+
if (r !== "legacy-full")
|
|
1540
907
|
return !0;
|
|
1541
|
-
} else if (
|
|
1542
|
-
return
|
|
908
|
+
} else if (r === "non-zero-area")
|
|
909
|
+
return lt(e);
|
|
1543
910
|
return !1;
|
|
1544
|
-
},
|
|
911
|
+
}, kn = function(e) {
|
|
1545
912
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
1546
|
-
for (var
|
|
1547
|
-
if (
|
|
1548
|
-
for (var
|
|
1549
|
-
var
|
|
1550
|
-
if (
|
|
1551
|
-
return
|
|
913
|
+
for (var n = e.parentElement; n; ) {
|
|
914
|
+
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
915
|
+
for (var r = 0; r < n.children.length; r++) {
|
|
916
|
+
var i = n.children.item(r);
|
|
917
|
+
if (i.tagName === "LEGEND")
|
|
918
|
+
return ie.call(n, "fieldset[disabled] *") ? !0 : !i.contains(e);
|
|
1552
919
|
}
|
|
1553
920
|
return !0;
|
|
1554
921
|
}
|
|
1555
|
-
|
|
922
|
+
n = n.parentElement;
|
|
1556
923
|
}
|
|
1557
924
|
return !1;
|
|
1558
|
-
},
|
|
1559
|
-
return !(
|
|
925
|
+
}, Ce = function(e, n) {
|
|
926
|
+
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
1560
927
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
1561
928
|
// note related to `candidateSelectors`)
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1565
|
-
return !(
|
|
1566
|
-
},
|
|
1567
|
-
var
|
|
1568
|
-
return !!(isNaN(
|
|
1569
|
-
},
|
|
1570
|
-
var
|
|
1571
|
-
return e.forEach(function(
|
|
1572
|
-
var
|
|
1573
|
-
|
|
929
|
+
ke(n) || wn(n) || Fn(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
930
|
+
xn(n) || kn(n));
|
|
931
|
+
}, Ve = function(e, n) {
|
|
932
|
+
return !(Sn(n) || ne(n) < 0 || !Ce(e, n));
|
|
933
|
+
}, Cn = function(e) {
|
|
934
|
+
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
935
|
+
return !!(isNaN(n) || n >= 0);
|
|
936
|
+
}, Pn = function t(e) {
|
|
937
|
+
var n = [], r = [];
|
|
938
|
+
return e.forEach(function(i, l) {
|
|
939
|
+
var a = !!i.scopeParent, m = a ? i.scopeParent : i, s = gn(m, a), v = a ? t(i.candidates) : m;
|
|
940
|
+
s === 0 ? a ? n.push.apply(n, v) : n.push(m) : r.push({
|
|
1574
941
|
documentOrder: l,
|
|
1575
|
-
tabIndex:
|
|
1576
|
-
item:
|
|
1577
|
-
isScope:
|
|
1578
|
-
content:
|
|
942
|
+
tabIndex: s,
|
|
943
|
+
item: i,
|
|
944
|
+
isScope: a,
|
|
945
|
+
content: v
|
|
1579
946
|
});
|
|
1580
|
-
}),
|
|
1581
|
-
return l.isScope ?
|
|
1582
|
-
}, []).concat(
|
|
1583
|
-
},
|
|
1584
|
-
|
|
1585
|
-
var
|
|
1586
|
-
return
|
|
1587
|
-
filter:
|
|
947
|
+
}), r.sort(yn).reduce(function(i, l) {
|
|
948
|
+
return l.isScope ? i.push.apply(i, l.content) : i.push(l.content), i;
|
|
949
|
+
}, []).concat(n);
|
|
950
|
+
}, In = function(e, n) {
|
|
951
|
+
n = n || {};
|
|
952
|
+
var r;
|
|
953
|
+
return n.getShadowRoot ? r = kt([e], n.includeContainer, {
|
|
954
|
+
filter: Ve.bind(null, n),
|
|
1588
955
|
flatten: !1,
|
|
1589
|
-
getShadowRoot:
|
|
1590
|
-
shadowRootFilter:
|
|
1591
|
-
}) :
|
|
1592
|
-
},
|
|
1593
|
-
|
|
1594
|
-
var
|
|
1595
|
-
return
|
|
1596
|
-
filter:
|
|
956
|
+
getShadowRoot: n.getShadowRoot,
|
|
957
|
+
shadowRootFilter: Cn
|
|
958
|
+
}) : r = Ft(e, n.includeContainer, Ve.bind(null, n)), Pn(r);
|
|
959
|
+
}, Rn = function(e, n) {
|
|
960
|
+
n = n || {};
|
|
961
|
+
var r;
|
|
962
|
+
return n.getShadowRoot ? r = kt([e], n.includeContainer, {
|
|
963
|
+
filter: Ce.bind(null, n),
|
|
1597
964
|
flatten: !0,
|
|
1598
|
-
getShadowRoot:
|
|
1599
|
-
}) :
|
|
1600
|
-
},
|
|
1601
|
-
if (
|
|
965
|
+
getShadowRoot: n.getShadowRoot
|
|
966
|
+
}) : r = Ft(e, n.includeContainer, Ce.bind(null, n)), r;
|
|
967
|
+
}, ue = function(e, n) {
|
|
968
|
+
if (n = n || {}, !e)
|
|
1602
969
|
throw new Error("No node provided");
|
|
1603
|
-
return
|
|
1604
|
-
},
|
|
1605
|
-
if (
|
|
970
|
+
return ie.call(e, Oe) === !1 ? !1 : Ve(n, e);
|
|
971
|
+
}, An = /* @__PURE__ */ St.concat("iframe").join(","), Ke = function(e, n) {
|
|
972
|
+
if (n = n || {}, !e)
|
|
1606
973
|
throw new Error("No node provided");
|
|
1607
|
-
return
|
|
974
|
+
return ie.call(e, An) === !1 ? !1 : Ce(n, e);
|
|
1608
975
|
};
|
|
1609
|
-
let
|
|
1610
|
-
|
|
1611
|
-
var
|
|
1612
|
-
function
|
|
1613
|
-
return
|
|
976
|
+
let tt = Pe(null);
|
|
977
|
+
tt.displayName = "OpenClosedContext";
|
|
978
|
+
var re = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(re || {});
|
|
979
|
+
function It() {
|
|
980
|
+
return de(tt);
|
|
1614
981
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
982
|
+
function Mn({ value: t, children: e }) {
|
|
983
|
+
return B.createElement(tt.Provider, { value: t }, e);
|
|
1617
984
|
}
|
|
1618
|
-
function
|
|
985
|
+
function Ln() {
|
|
1619
986
|
let t = typeof document > "u";
|
|
1620
|
-
return "useSyncExternalStore" in
|
|
987
|
+
return "useSyncExternalStore" in ve ? ((e) => e.useSyncExternalStore)(ve)(() => () => {
|
|
1621
988
|
}, () => !1, () => !t) : !1;
|
|
1622
989
|
}
|
|
1623
|
-
function
|
|
1624
|
-
let t =
|
|
1625
|
-
return e &&
|
|
1626
|
-
e !== !0 &&
|
|
1627
|
-
}, [e]),
|
|
990
|
+
function Rt() {
|
|
991
|
+
let t = Ln(), [e, n] = ve.useState(Ee.isHandoffComplete);
|
|
992
|
+
return e && Ee.isHandoffComplete === !1 && n(!1), ve.useEffect(() => {
|
|
993
|
+
e !== !0 && n(!0);
|
|
994
|
+
}, [e]), ve.useEffect(() => Ee.handoff(), []), t ? !1 : e;
|
|
1628
995
|
}
|
|
1629
|
-
function
|
|
1630
|
-
let t =
|
|
1631
|
-
return
|
|
996
|
+
function jn() {
|
|
997
|
+
let t = j(!1);
|
|
998
|
+
return Q(() => (t.current = !0, () => {
|
|
1632
999
|
t.current = !1;
|
|
1633
1000
|
}), []), t;
|
|
1634
1001
|
}
|
|
1635
|
-
function
|
|
1002
|
+
function At(t) {
|
|
1636
1003
|
var e;
|
|
1637
|
-
return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e :
|
|
1004
|
+
return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : Lt) !== ae || B.Children.count(t.children) === 1;
|
|
1638
1005
|
}
|
|
1639
|
-
let
|
|
1640
|
-
|
|
1641
|
-
var
|
|
1642
|
-
function
|
|
1643
|
-
let t =
|
|
1006
|
+
let je = Pe(null);
|
|
1007
|
+
je.displayName = "TransitionContext";
|
|
1008
|
+
var Dn = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(Dn || {});
|
|
1009
|
+
function $n() {
|
|
1010
|
+
let t = de(je);
|
|
1644
1011
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
1645
1012
|
return t;
|
|
1646
1013
|
}
|
|
1647
|
-
function
|
|
1648
|
-
let t =
|
|
1014
|
+
function Un() {
|
|
1015
|
+
let t = de(De);
|
|
1649
1016
|
if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
1650
1017
|
return t;
|
|
1651
1018
|
}
|
|
1652
|
-
let
|
|
1653
|
-
|
|
1654
|
-
function
|
|
1655
|
-
return "children" in t ?
|
|
1019
|
+
let De = Pe(null);
|
|
1020
|
+
De.displayName = "NestingContext";
|
|
1021
|
+
function $e(t) {
|
|
1022
|
+
return "children" in t ? $e(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
|
|
1656
1023
|
}
|
|
1657
|
-
function
|
|
1658
|
-
let
|
|
1659
|
-
let
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
}, [
|
|
1663
|
-
|
|
1024
|
+
function Mt(t, e) {
|
|
1025
|
+
let n = wt(t), r = j([]), i = jn(), l = yt(), a = G((E, c = J.Hidden) => {
|
|
1026
|
+
let g = r.current.findIndex(({ el: d }) => d === E);
|
|
1027
|
+
g !== -1 && (Le(c, { [J.Unmount]() {
|
|
1028
|
+
r.current.splice(g, 1);
|
|
1029
|
+
}, [J.Hidden]() {
|
|
1030
|
+
r.current[g].state = "hidden";
|
|
1664
1031
|
} }), l.microTask(() => {
|
|
1665
1032
|
var d;
|
|
1666
|
-
|
|
1033
|
+
!$e(r) && i.current && ((d = n.current) == null || d.call(n));
|
|
1667
1034
|
}));
|
|
1668
|
-
}), m =
|
|
1669
|
-
let
|
|
1670
|
-
return
|
|
1671
|
-
}),
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
})]), e == null || e.chains.current[
|
|
1675
|
-
Promise.all(
|
|
1676
|
-
})]),
|
|
1677
|
-
}),
|
|
1678
|
-
Promise.all(
|
|
1035
|
+
}), m = G((E) => {
|
|
1036
|
+
let c = r.current.find(({ el: g }) => g === E);
|
|
1037
|
+
return c ? c.state !== "visible" && (c.state = "visible") : r.current.push({ el: E, state: "visible" }), () => a(E, J.Unmount);
|
|
1038
|
+
}), s = j([]), v = j(Promise.resolve()), b = j({ enter: [], leave: [] }), x = G((E, c, g) => {
|
|
1039
|
+
s.current.splice(0), e && (e.chains.current[c] = e.chains.current[c].filter(([d]) => d !== E)), e == null || e.chains.current[c].push([E, new Promise((d) => {
|
|
1040
|
+
s.current.push(d);
|
|
1041
|
+
})]), e == null || e.chains.current[c].push([E, new Promise((d) => {
|
|
1042
|
+
Promise.all(b.current[c].map(([f, p]) => p)).then(() => d());
|
|
1043
|
+
})]), c === "enter" ? v.current = v.current.then(() => e == null ? void 0 : e.wait.current).then(() => g(c)) : g(c);
|
|
1044
|
+
}), T = G((E, c, g) => {
|
|
1045
|
+
Promise.all(b.current[c].splice(0).map(([d, f]) => f)).then(() => {
|
|
1679
1046
|
var d;
|
|
1680
|
-
(d =
|
|
1681
|
-
}).then(() =>
|
|
1047
|
+
(d = s.current.shift()) == null || d();
|
|
1048
|
+
}).then(() => g(c));
|
|
1682
1049
|
});
|
|
1683
|
-
return
|
|
1050
|
+
return Y(() => ({ children: r, register: m, unregister: a, onStart: x, onStop: T, wait: v, chains: b }), [m, a, r, x, T, b, v]);
|
|
1684
1051
|
}
|
|
1685
|
-
let
|
|
1686
|
-
function
|
|
1687
|
-
var
|
|
1688
|
-
let { transition:
|
|
1689
|
-
|
|
1690
|
-
if (
|
|
1691
|
-
if (
|
|
1692
|
-
|
|
1052
|
+
let Lt = ae, jt = xt.RenderStrategy;
|
|
1053
|
+
function Wn(t, e) {
|
|
1054
|
+
var n, r;
|
|
1055
|
+
let { transition: i = !0, beforeEnter: l, afterEnter: a, beforeLeave: m, afterLeave: s, enter: v, enterFrom: b, enterTo: x, entered: T, leave: E, leaveFrom: c, leaveTo: g, ...d } = t, [f, p] = $(null), y = j(null), N = At(t), h = Tt(...N ? [y, e, p] : e === null ? [] : [e]), k = (n = d.unmount) == null || n ? J.Unmount : J.Hidden, { show: A, appear: H, initial: K } = $n(), [U, W] = $(A ? "visible" : "hidden"), O = Un(), { register: o, unregister: u } = O;
|
|
1056
|
+
Q(() => o(y), [o, y]), Q(() => {
|
|
1057
|
+
if (k === J.Hidden && y.current) {
|
|
1058
|
+
if (A && U !== "visible") {
|
|
1059
|
+
W("visible");
|
|
1693
1060
|
return;
|
|
1694
1061
|
}
|
|
1695
|
-
return
|
|
1696
|
-
}
|
|
1697
|
-
}, [
|
|
1698
|
-
let
|
|
1699
|
-
|
|
1700
|
-
if (
|
|
1701
|
-
}, [
|
|
1702
|
-
let
|
|
1703
|
-
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1706
|
-
let
|
|
1707
|
-
|
|
1062
|
+
return Le(U, { hidden: () => u(y), visible: () => o(y) });
|
|
1063
|
+
}
|
|
1064
|
+
}, [U, y, o, u, A, k]);
|
|
1065
|
+
let w = Rt();
|
|
1066
|
+
Q(() => {
|
|
1067
|
+
if (N && w && U === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
1068
|
+
}, [y, U, w, N]);
|
|
1069
|
+
let C = K && !H, P = H && A && K, I = j(!1), S = Mt(() => {
|
|
1070
|
+
I.current || (W("hidden"), u(y));
|
|
1071
|
+
}, O), R = G((ee) => {
|
|
1072
|
+
I.current = !0;
|
|
1073
|
+
let Z = ee ? "enter" : "leave";
|
|
1074
|
+
S.onStart(y, Z, (ce) => {
|
|
1708
1075
|
ce === "enter" ? l == null || l() : ce === "leave" && (m == null || m());
|
|
1709
1076
|
});
|
|
1710
|
-
}),
|
|
1711
|
-
let
|
|
1712
|
-
|
|
1713
|
-
ce === "enter" ?
|
|
1714
|
-
}),
|
|
1077
|
+
}), M = G((ee) => {
|
|
1078
|
+
let Z = ee ? "enter" : "leave";
|
|
1079
|
+
I.current = !1, S.onStop(y, Z, (ce) => {
|
|
1080
|
+
ce === "enter" ? a == null || a() : ce === "leave" && (s == null || s());
|
|
1081
|
+
}), Z === "leave" && !$e(S) && (W("hidden"), u(y));
|
|
1715
1082
|
});
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
}, [
|
|
1719
|
-
let
|
|
1720
|
-
|
|
1721
|
-
let
|
|
1722
|
-
return
|
|
1083
|
+
D(() => {
|
|
1084
|
+
N && i || (R(A), M(A));
|
|
1085
|
+
}, [A, N, i]);
|
|
1086
|
+
let z = !(!i || !N || !w || C), [, L] = mn(z, f, A, { start: R, end: M }), _ = te({ ref: h, className: ((r = _e(d.className, P && v, P && b, L.enter && v, L.enter && L.closed && b, L.enter && !L.closed && x, L.leave && E, L.leave && !L.closed && c, L.leave && L.closed && g, !L.transition && A && T)) == null ? void 0 : r.trim()) || void 0, ...fn(L) }), q = 0;
|
|
1087
|
+
U === "visible" && (q |= re.Open), U === "hidden" && (q |= re.Closed), L.enter && (q |= re.Opening), L.leave && (q |= re.Closing);
|
|
1088
|
+
let ye = Et();
|
|
1089
|
+
return B.createElement(De.Provider, { value: S }, B.createElement(Mn, { value: q }, ye({ ourProps: _, theirProps: d, defaultTag: Lt, features: jt, visible: U === "visible", name: "Transition.Child" })));
|
|
1723
1090
|
}
|
|
1724
|
-
function
|
|
1725
|
-
let { show:
|
|
1726
|
-
|
|
1727
|
-
let
|
|
1728
|
-
if (
|
|
1729
|
-
let [
|
|
1730
|
-
|
|
1731
|
-
}), [
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
}, [
|
|
1735
|
-
let d =
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
}, [
|
|
1739
|
-
let f = { unmount:
|
|
1740
|
-
var
|
|
1741
|
-
|
|
1742
|
-
}),
|
|
1743
|
-
var
|
|
1744
|
-
|
|
1745
|
-
}),
|
|
1746
|
-
return
|
|
1091
|
+
function Bn(t, e) {
|
|
1092
|
+
let { show: n, appear: r = !1, unmount: i = !0, ...l } = t, a = j(null), m = At(t), s = Tt(...m ? [a, e] : e === null ? [] : [e]);
|
|
1093
|
+
Rt();
|
|
1094
|
+
let v = It();
|
|
1095
|
+
if (n === void 0 && v !== null && (n = (v & re.Open) === re.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
1096
|
+
let [b, x] = $(n ? "visible" : "hidden"), T = Mt(() => {
|
|
1097
|
+
n || x("hidden");
|
|
1098
|
+
}), [E, c] = $(!0), g = j([n]);
|
|
1099
|
+
Q(() => {
|
|
1100
|
+
E !== !1 && g.current[g.current.length - 1] !== n && (g.current.push(n), c(!1));
|
|
1101
|
+
}, [g, n]);
|
|
1102
|
+
let d = Y(() => ({ show: n, appear: r, initial: E }), [n, r, E]);
|
|
1103
|
+
Q(() => {
|
|
1104
|
+
n ? x("visible") : !$e(T) && a.current !== null && x("hidden");
|
|
1105
|
+
}, [n, T]);
|
|
1106
|
+
let f = { unmount: i }, p = G(() => {
|
|
1107
|
+
var h;
|
|
1108
|
+
E && c(!1), (h = t.beforeEnter) == null || h.call(t);
|
|
1109
|
+
}), y = G(() => {
|
|
1110
|
+
var h;
|
|
1111
|
+
E && c(!1), (h = t.beforeLeave) == null || h.call(t);
|
|
1112
|
+
}), N = Et();
|
|
1113
|
+
return B.createElement(De.Provider, { value: T }, B.createElement(je.Provider, { value: d }, N({ ourProps: { ...f, as: ae, children: B.createElement(Dt, { ref: s, ...f, ...l, beforeEnter: p, beforeLeave: y }) }, theirProps: {}, defaultTag: ae, features: jt, visible: b === "visible", name: "Transition" })));
|
|
1747
1114
|
}
|
|
1748
|
-
function
|
|
1749
|
-
let
|
|
1750
|
-
return
|
|
1115
|
+
function Hn(t, e) {
|
|
1116
|
+
let n = de(je) !== null, r = It() !== null;
|
|
1117
|
+
return B.createElement(B.Fragment, null, !n && r ? B.createElement(ze, { ref: e, ...t }) : B.createElement(Dt, { ref: e, ...t }));
|
|
1751
1118
|
}
|
|
1752
|
-
let
|
|
1753
|
-
function
|
|
1754
|
-
return /* @__PURE__ */
|
|
1119
|
+
let ze = et(Bn), Dt = et(Wn), Ue = et(Hn), Kn = Object.assign(ze, { Child: Ue, Root: ze });
|
|
1120
|
+
function $t({ onClick: t }) {
|
|
1121
|
+
return /* @__PURE__ */ le(
|
|
1755
1122
|
"button",
|
|
1756
1123
|
{
|
|
1757
1124
|
type: "button",
|
|
1758
1125
|
className: "im-close-button text-gray-400 hover:text-gray-500",
|
|
1759
1126
|
onClick: t,
|
|
1760
1127
|
children: [
|
|
1761
|
-
/* @__PURE__ */ F
|
|
1762
|
-
/* @__PURE__ */ F
|
|
1128
|
+
/* @__PURE__ */ F("span", { className: "sr-only", children: "Close" }),
|
|
1129
|
+
/* @__PURE__ */ F(
|
|
1763
1130
|
"svg",
|
|
1764
1131
|
{
|
|
1765
1132
|
className: "size-6",
|
|
@@ -1769,7 +1136,7 @@ function Pr({ onClick: t }) {
|
|
|
1769
1136
|
strokeWidth: "2",
|
|
1770
1137
|
stroke: "currentColor",
|
|
1771
1138
|
"aria-hidden": "true",
|
|
1772
|
-
children: /* @__PURE__ */ F
|
|
1139
|
+
children: /* @__PURE__ */ F(
|
|
1773
1140
|
"path",
|
|
1774
1141
|
{
|
|
1775
1142
|
strokeLinecap: "round",
|
|
@@ -1787,113 +1154,113 @@ function Pr({ onClick: t }) {
|
|
|
1787
1154
|
* focus-trap 7.6.2
|
|
1788
1155
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
1789
1156
|
*/
|
|
1790
|
-
function
|
|
1157
|
+
function Ge(t, e) {
|
|
1791
1158
|
(e == null || e > t.length) && (e = t.length);
|
|
1792
|
-
for (var
|
|
1793
|
-
return
|
|
1159
|
+
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
1160
|
+
return r;
|
|
1794
1161
|
}
|
|
1795
|
-
function
|
|
1796
|
-
if (Array.isArray(t)) return
|
|
1162
|
+
function qn(t) {
|
|
1163
|
+
if (Array.isArray(t)) return Ge(t);
|
|
1797
1164
|
}
|
|
1798
|
-
function
|
|
1799
|
-
return (e =
|
|
1800
|
-
value:
|
|
1165
|
+
function Xn(t, e, n) {
|
|
1166
|
+
return (e = Zn(e)) in t ? Object.defineProperty(t, e, {
|
|
1167
|
+
value: n,
|
|
1801
1168
|
enumerable: !0,
|
|
1802
1169
|
configurable: !0,
|
|
1803
1170
|
writable: !0
|
|
1804
|
-
}) : t[e] =
|
|
1171
|
+
}) : t[e] = n, t;
|
|
1805
1172
|
}
|
|
1806
|
-
function
|
|
1173
|
+
function _n(t) {
|
|
1807
1174
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1808
1175
|
}
|
|
1809
|
-
function
|
|
1176
|
+
function Vn() {
|
|
1810
1177
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1811
1178
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1812
1179
|
}
|
|
1813
|
-
function
|
|
1814
|
-
var
|
|
1180
|
+
function st(t, e) {
|
|
1181
|
+
var n = Object.keys(t);
|
|
1815
1182
|
if (Object.getOwnPropertySymbols) {
|
|
1816
|
-
var
|
|
1817
|
-
e && (
|
|
1818
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
1819
|
-
})),
|
|
1183
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
1184
|
+
e && (r = r.filter(function(i) {
|
|
1185
|
+
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
1186
|
+
})), n.push.apply(n, r);
|
|
1820
1187
|
}
|
|
1821
|
-
return
|
|
1188
|
+
return n;
|
|
1822
1189
|
}
|
|
1823
|
-
function
|
|
1190
|
+
function ot(t) {
|
|
1824
1191
|
for (var e = 1; e < arguments.length; e++) {
|
|
1825
|
-
var
|
|
1826
|
-
e % 2 ?
|
|
1827
|
-
|
|
1828
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(
|
|
1829
|
-
Object.defineProperty(t,
|
|
1192
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
1193
|
+
e % 2 ? st(Object(n), !0).forEach(function(r) {
|
|
1194
|
+
Xn(t, r, n[r]);
|
|
1195
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : st(Object(n)).forEach(function(r) {
|
|
1196
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1830
1197
|
});
|
|
1831
1198
|
}
|
|
1832
1199
|
return t;
|
|
1833
1200
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1201
|
+
function zn(t) {
|
|
1202
|
+
return qn(t) || _n(t) || Yn(t) || Vn();
|
|
1836
1203
|
}
|
|
1837
|
-
function
|
|
1204
|
+
function Gn(t, e) {
|
|
1838
1205
|
if (typeof t != "object" || !t) return t;
|
|
1839
|
-
var
|
|
1840
|
-
if (
|
|
1841
|
-
var
|
|
1842
|
-
if (typeof
|
|
1206
|
+
var n = t[Symbol.toPrimitive];
|
|
1207
|
+
if (n !== void 0) {
|
|
1208
|
+
var r = n.call(t, e || "default");
|
|
1209
|
+
if (typeof r != "object") return r;
|
|
1843
1210
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1844
1211
|
}
|
|
1845
1212
|
return (e === "string" ? String : Number)(t);
|
|
1846
1213
|
}
|
|
1847
|
-
function
|
|
1848
|
-
var e =
|
|
1214
|
+
function Zn(t) {
|
|
1215
|
+
var e = Gn(t, "string");
|
|
1849
1216
|
return typeof e == "symbol" ? e : e + "";
|
|
1850
1217
|
}
|
|
1851
|
-
function
|
|
1218
|
+
function Yn(t, e) {
|
|
1852
1219
|
if (t) {
|
|
1853
|
-
if (typeof t == "string") return
|
|
1854
|
-
var
|
|
1855
|
-
return
|
|
1220
|
+
if (typeof t == "string") return Ge(t, e);
|
|
1221
|
+
var n = {}.toString.call(t).slice(8, -1);
|
|
1222
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ge(t, e) : void 0;
|
|
1856
1223
|
}
|
|
1857
1224
|
}
|
|
1858
|
-
var
|
|
1859
|
-
activateTrap: function(e,
|
|
1225
|
+
var ut = {
|
|
1226
|
+
activateTrap: function(e, n) {
|
|
1860
1227
|
if (e.length > 0) {
|
|
1861
|
-
var
|
|
1862
|
-
|
|
1228
|
+
var r = e[e.length - 1];
|
|
1229
|
+
r !== n && r.pause();
|
|
1863
1230
|
}
|
|
1864
|
-
var
|
|
1865
|
-
|
|
1231
|
+
var i = e.indexOf(n);
|
|
1232
|
+
i === -1 || e.splice(i, 1), e.push(n);
|
|
1866
1233
|
},
|
|
1867
|
-
deactivateTrap: function(e,
|
|
1868
|
-
var
|
|
1869
|
-
|
|
1234
|
+
deactivateTrap: function(e, n) {
|
|
1235
|
+
var r = e.indexOf(n);
|
|
1236
|
+
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
1870
1237
|
}
|
|
1871
|
-
},
|
|
1238
|
+
}, Jn = function(e) {
|
|
1872
1239
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
1873
|
-
},
|
|
1240
|
+
}, Qn = function(e) {
|
|
1874
1241
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
1875
|
-
},
|
|
1242
|
+
}, ge = function(e) {
|
|
1876
1243
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
1877
|
-
},
|
|
1878
|
-
return
|
|
1879
|
-
},
|
|
1880
|
-
return
|
|
1881
|
-
},
|
|
1244
|
+
}, er = function(e) {
|
|
1245
|
+
return ge(e) && !e.shiftKey;
|
|
1246
|
+
}, tr = function(e) {
|
|
1247
|
+
return ge(e) && e.shiftKey;
|
|
1248
|
+
}, dt = function(e) {
|
|
1882
1249
|
return setTimeout(e, 0);
|
|
1883
|
-
},
|
|
1884
|
-
for (var
|
|
1885
|
-
|
|
1886
|
-
return typeof e == "function" ? e.apply(void 0,
|
|
1887
|
-
},
|
|
1250
|
+
}, pe = function(e) {
|
|
1251
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
1252
|
+
r[i - 1] = arguments[i];
|
|
1253
|
+
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
1254
|
+
}, xe = function(e) {
|
|
1888
1255
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
1889
|
-
},
|
|
1890
|
-
var
|
|
1256
|
+
}, nr = [], rr = function(e, n) {
|
|
1257
|
+
var r = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) || nr, l = ot({
|
|
1891
1258
|
returnFocusOnDeactivate: !0,
|
|
1892
1259
|
escapeDeactivates: !0,
|
|
1893
1260
|
delayInitialFocus: !0,
|
|
1894
|
-
isKeyForward:
|
|
1895
|
-
isKeyBackward:
|
|
1896
|
-
},
|
|
1261
|
+
isKeyForward: er,
|
|
1262
|
+
isKeyBackward: tr
|
|
1263
|
+
}, n), a = {
|
|
1897
1264
|
// containers given to createFocusTrap()
|
|
1898
1265
|
// @type {Array<HTMLElement>}
|
|
1899
1266
|
containers: [],
|
|
@@ -1929,74 +1296,74 @@ var Zt = {
|
|
|
1929
1296
|
delayInitialFocusTimer: void 0,
|
|
1930
1297
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1931
1298
|
recentNavEvent: void 0
|
|
1932
|
-
}, m,
|
|
1933
|
-
return
|
|
1934
|
-
},
|
|
1935
|
-
var
|
|
1936
|
-
return
|
|
1937
|
-
var
|
|
1938
|
-
return
|
|
1299
|
+
}, m, s = function(o, u, w) {
|
|
1300
|
+
return o && o[u] !== void 0 ? o[u] : l[w || u];
|
|
1301
|
+
}, v = function(o, u) {
|
|
1302
|
+
var w = typeof (u == null ? void 0 : u.composedPath) == "function" ? u.composedPath() : void 0;
|
|
1303
|
+
return a.containerGroups.findIndex(function(C) {
|
|
1304
|
+
var P = C.container, I = C.tabbableNodes;
|
|
1305
|
+
return P.contains(o) || // fall back to explicit tabbable search which will take into consideration any
|
|
1939
1306
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
1940
1307
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
1941
1308
|
// look inside web components even if open)
|
|
1942
|
-
(
|
|
1943
|
-
return
|
|
1309
|
+
(w == null ? void 0 : w.includes(P)) || I.find(function(S) {
|
|
1310
|
+
return S === o;
|
|
1944
1311
|
});
|
|
1945
1312
|
});
|
|
1946
|
-
},
|
|
1947
|
-
var
|
|
1948
|
-
if (typeof
|
|
1949
|
-
if (
|
|
1950
|
-
return
|
|
1951
|
-
throw new Error("`".concat(
|
|
1952
|
-
}
|
|
1953
|
-
var
|
|
1954
|
-
if (typeof
|
|
1313
|
+
}, b = function(o) {
|
|
1314
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = u.hasFallback, C = w === void 0 ? !1 : w, P = u.params, I = P === void 0 ? [] : P, S = l[o];
|
|
1315
|
+
if (typeof S == "function" && (S = S.apply(void 0, zn(I))), S === !0 && (S = void 0), !S) {
|
|
1316
|
+
if (S === void 0 || S === !1)
|
|
1317
|
+
return S;
|
|
1318
|
+
throw new Error("`".concat(o, "` was specified but was not a node, or did not return a node"));
|
|
1319
|
+
}
|
|
1320
|
+
var R = S;
|
|
1321
|
+
if (typeof S == "string") {
|
|
1955
1322
|
try {
|
|
1956
|
-
|
|
1957
|
-
} catch (
|
|
1958
|
-
throw new Error("`".concat(
|
|
1323
|
+
R = r.querySelector(S);
|
|
1324
|
+
} catch (M) {
|
|
1325
|
+
throw new Error("`".concat(o, '` appears to be an invalid selector; error="').concat(M.message, '"'));
|
|
1959
1326
|
}
|
|
1960
|
-
if (!
|
|
1961
|
-
throw new Error("`".concat(
|
|
1327
|
+
if (!R && !C)
|
|
1328
|
+
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
1962
1329
|
}
|
|
1963
|
-
return
|
|
1964
|
-
},
|
|
1965
|
-
var
|
|
1330
|
+
return R;
|
|
1331
|
+
}, x = function() {
|
|
1332
|
+
var o = b("initialFocus", {
|
|
1966
1333
|
hasFallback: !0
|
|
1967
1334
|
});
|
|
1968
|
-
if (
|
|
1335
|
+
if (o === !1)
|
|
1969
1336
|
return !1;
|
|
1970
|
-
if (
|
|
1971
|
-
if (
|
|
1972
|
-
|
|
1337
|
+
if (o === void 0 || o && !Ke(o, l.tabbableOptions))
|
|
1338
|
+
if (v(r.activeElement) >= 0)
|
|
1339
|
+
o = r.activeElement;
|
|
1973
1340
|
else {
|
|
1974
|
-
var
|
|
1975
|
-
|
|
1341
|
+
var u = a.tabbableGroups[0], w = u && u.firstTabbableNode;
|
|
1342
|
+
o = w || b("fallbackFocus");
|
|
1976
1343
|
}
|
|
1977
|
-
else
|
|
1978
|
-
if (!
|
|
1344
|
+
else o === null && (o = b("fallbackFocus"));
|
|
1345
|
+
if (!o)
|
|
1979
1346
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1980
|
-
return
|
|
1981
|
-
},
|
|
1982
|
-
if (
|
|
1983
|
-
var
|
|
1984
|
-
return
|
|
1985
|
-
}),
|
|
1986
|
-
return
|
|
1987
|
-
}),
|
|
1988
|
-
return
|
|
1347
|
+
return o;
|
|
1348
|
+
}, T = function() {
|
|
1349
|
+
if (a.containerGroups = a.containers.map(function(o) {
|
|
1350
|
+
var u = In(o, l.tabbableOptions), w = Rn(o, l.tabbableOptions), C = u.length > 0 ? u[0] : void 0, P = u.length > 0 ? u[u.length - 1] : void 0, I = w.find(function(M) {
|
|
1351
|
+
return ue(M);
|
|
1352
|
+
}), S = w.slice().reverse().find(function(M) {
|
|
1353
|
+
return ue(M);
|
|
1354
|
+
}), R = !!u.find(function(M) {
|
|
1355
|
+
return ne(M) > 0;
|
|
1989
1356
|
});
|
|
1990
1357
|
return {
|
|
1991
|
-
container:
|
|
1992
|
-
tabbableNodes:
|
|
1993
|
-
focusableNodes:
|
|
1358
|
+
container: o,
|
|
1359
|
+
tabbableNodes: u,
|
|
1360
|
+
focusableNodes: w,
|
|
1994
1361
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1995
|
-
posTabIndexesFound:
|
|
1362
|
+
posTabIndexesFound: R,
|
|
1996
1363
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1997
|
-
firstTabbableNode:
|
|
1364
|
+
firstTabbableNode: C,
|
|
1998
1365
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
1999
|
-
lastTabbableNode:
|
|
1366
|
+
lastTabbableNode: P,
|
|
2000
1367
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
2001
1368
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
2002
1369
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -2005,9 +1372,9 @@ var Zt = {
|
|
|
2005
1372
|
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
2006
1373
|
// be avoided anyway...
|
|
2007
1374
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
2008
|
-
firstDomTabbableNode:
|
|
1375
|
+
firstDomTabbableNode: I,
|
|
2009
1376
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
2010
|
-
lastDomTabbableNode:
|
|
1377
|
+
lastDomTabbableNode: S,
|
|
2011
1378
|
/**
|
|
2012
1379
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
2013
1380
|
* in this container, if any.
|
|
@@ -2016,76 +1383,76 @@ var Zt = {
|
|
|
2016
1383
|
* in reverse.
|
|
2017
1384
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
2018
1385
|
*/
|
|
2019
|
-
nextTabbableNode: function(
|
|
2020
|
-
var
|
|
2021
|
-
return
|
|
2022
|
-
return
|
|
2023
|
-
}) :
|
|
2024
|
-
return
|
|
2025
|
-
}) :
|
|
1386
|
+
nextTabbableNode: function(z) {
|
|
1387
|
+
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, _ = u.indexOf(z);
|
|
1388
|
+
return _ < 0 ? L ? w.slice(w.indexOf(z) + 1).find(function(q) {
|
|
1389
|
+
return ue(q);
|
|
1390
|
+
}) : w.slice(0, w.indexOf(z)).reverse().find(function(q) {
|
|
1391
|
+
return ue(q);
|
|
1392
|
+
}) : u[_ + (L ? 1 : -1)];
|
|
2026
1393
|
}
|
|
2027
1394
|
};
|
|
2028
|
-
}),
|
|
2029
|
-
return
|
|
2030
|
-
}),
|
|
1395
|
+
}), a.tabbableGroups = a.containerGroups.filter(function(o) {
|
|
1396
|
+
return o.tabbableNodes.length > 0;
|
|
1397
|
+
}), a.tabbableGroups.length <= 0 && !b("fallbackFocus"))
|
|
2031
1398
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
2032
|
-
if (
|
|
2033
|
-
return
|
|
2034
|
-
}) &&
|
|
1399
|
+
if (a.containerGroups.find(function(o) {
|
|
1400
|
+
return o.posTabIndexesFound;
|
|
1401
|
+
}) && a.containerGroups.length > 1)
|
|
2035
1402
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
2036
|
-
},
|
|
2037
|
-
var
|
|
2038
|
-
if (
|
|
2039
|
-
return
|
|
2040
|
-
},
|
|
2041
|
-
if (
|
|
2042
|
-
if (!
|
|
2043
|
-
|
|
1403
|
+
}, E = function(o) {
|
|
1404
|
+
var u = o.activeElement;
|
|
1405
|
+
if (u)
|
|
1406
|
+
return u.shadowRoot && u.shadowRoot.activeElement !== null ? E(u.shadowRoot) : u;
|
|
1407
|
+
}, c = function(o) {
|
|
1408
|
+
if (o !== !1 && o !== E(document)) {
|
|
1409
|
+
if (!o || !o.focus) {
|
|
1410
|
+
c(x());
|
|
2044
1411
|
return;
|
|
2045
1412
|
}
|
|
2046
|
-
|
|
1413
|
+
o.focus({
|
|
2047
1414
|
preventScroll: !!l.preventScroll
|
|
2048
|
-
}),
|
|
1415
|
+
}), a.mostRecentlyFocusedNode = o, Jn(o) && o.select();
|
|
2049
1416
|
}
|
|
2050
|
-
},
|
|
2051
|
-
var
|
|
2052
|
-
params: [
|
|
1417
|
+
}, g = function(o) {
|
|
1418
|
+
var u = b("setReturnFocus", {
|
|
1419
|
+
params: [o]
|
|
2053
1420
|
});
|
|
2054
|
-
return
|
|
2055
|
-
}, d = function(
|
|
2056
|
-
var
|
|
2057
|
-
|
|
2058
|
-
var
|
|
2059
|
-
if (
|
|
2060
|
-
var
|
|
2061
|
-
if (
|
|
2062
|
-
|
|
2063
|
-
else if (
|
|
2064
|
-
var
|
|
2065
|
-
var
|
|
2066
|
-
return
|
|
1421
|
+
return u || (u === !1 ? !1 : o);
|
|
1422
|
+
}, d = function(o) {
|
|
1423
|
+
var u = o.target, w = o.event, C = o.isBackward, P = C === void 0 ? !1 : C;
|
|
1424
|
+
u = u || xe(w), T();
|
|
1425
|
+
var I = null;
|
|
1426
|
+
if (a.tabbableGroups.length > 0) {
|
|
1427
|
+
var S = v(u, w), R = S >= 0 ? a.containerGroups[S] : void 0;
|
|
1428
|
+
if (S < 0)
|
|
1429
|
+
P ? I = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : I = a.tabbableGroups[0].firstTabbableNode;
|
|
1430
|
+
else if (P) {
|
|
1431
|
+
var M = a.tabbableGroups.findIndex(function(ee) {
|
|
1432
|
+
var Z = ee.firstTabbableNode;
|
|
1433
|
+
return u === Z;
|
|
2067
1434
|
});
|
|
2068
|
-
if (
|
|
2069
|
-
var
|
|
2070
|
-
|
|
2071
|
-
} else
|
|
1435
|
+
if (M < 0 && (R.container === u || Ke(u, l.tabbableOptions) && !ue(u, l.tabbableOptions) && !R.nextTabbableNode(u, !1)) && (M = S), M >= 0) {
|
|
1436
|
+
var z = M === 0 ? a.tabbableGroups.length - 1 : M - 1, L = a.tabbableGroups[z];
|
|
1437
|
+
I = ne(u) >= 0 ? L.lastTabbableNode : L.lastDomTabbableNode;
|
|
1438
|
+
} else ge(w) || (I = R.nextTabbableNode(u, !1));
|
|
2072
1439
|
} else {
|
|
2073
|
-
var
|
|
2074
|
-
var
|
|
2075
|
-
return
|
|
1440
|
+
var _ = a.tabbableGroups.findIndex(function(ee) {
|
|
1441
|
+
var Z = ee.lastTabbableNode;
|
|
1442
|
+
return u === Z;
|
|
2076
1443
|
});
|
|
2077
|
-
if (
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2080
|
-
} else
|
|
1444
|
+
if (_ < 0 && (R.container === u || Ke(u, l.tabbableOptions) && !ue(u, l.tabbableOptions) && !R.nextTabbableNode(u)) && (_ = S), _ >= 0) {
|
|
1445
|
+
var q = _ === a.tabbableGroups.length - 1 ? 0 : _ + 1, ye = a.tabbableGroups[q];
|
|
1446
|
+
I = ne(u) >= 0 ? ye.firstTabbableNode : ye.firstDomTabbableNode;
|
|
1447
|
+
} else ge(w) || (I = R.nextTabbableNode(u));
|
|
2081
1448
|
}
|
|
2082
1449
|
} else
|
|
2083
|
-
|
|
2084
|
-
return
|
|
2085
|
-
}, f = function(
|
|
2086
|
-
var
|
|
2087
|
-
if (!(
|
|
2088
|
-
if (
|
|
1450
|
+
I = b("fallbackFocus");
|
|
1451
|
+
return I;
|
|
1452
|
+
}, f = function(o) {
|
|
1453
|
+
var u = xe(o);
|
|
1454
|
+
if (!(v(u, o) >= 0)) {
|
|
1455
|
+
if (pe(l.clickOutsideDeactivates, o)) {
|
|
2089
1456
|
m.deactivate({
|
|
2090
1457
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
2091
1458
|
// which will result in the outside click setting focus to the node
|
|
@@ -2097,86 +1464,86 @@ var Zt = {
|
|
|
2097
1464
|
});
|
|
2098
1465
|
return;
|
|
2099
1466
|
}
|
|
2100
|
-
|
|
1467
|
+
pe(l.allowOutsideClick, o) || o.preventDefault();
|
|
2101
1468
|
}
|
|
2102
|
-
},
|
|
2103
|
-
var
|
|
2104
|
-
if (
|
|
2105
|
-
|
|
1469
|
+
}, p = function(o) {
|
|
1470
|
+
var u = xe(o), w = v(u, o) >= 0;
|
|
1471
|
+
if (w || u instanceof Document)
|
|
1472
|
+
w && (a.mostRecentlyFocusedNode = u);
|
|
2106
1473
|
else {
|
|
2107
|
-
|
|
2108
|
-
var
|
|
2109
|
-
if (
|
|
2110
|
-
if (
|
|
2111
|
-
var
|
|
2112
|
-
if (
|
|
2113
|
-
var
|
|
2114
|
-
return
|
|
1474
|
+
o.stopImmediatePropagation();
|
|
1475
|
+
var C, P = !0;
|
|
1476
|
+
if (a.mostRecentlyFocusedNode)
|
|
1477
|
+
if (ne(a.mostRecentlyFocusedNode) > 0) {
|
|
1478
|
+
var I = v(a.mostRecentlyFocusedNode), S = a.containerGroups[I].tabbableNodes;
|
|
1479
|
+
if (S.length > 0) {
|
|
1480
|
+
var R = S.findIndex(function(M) {
|
|
1481
|
+
return M === a.mostRecentlyFocusedNode;
|
|
2115
1482
|
});
|
|
2116
|
-
|
|
1483
|
+
R >= 0 && (l.isKeyForward(a.recentNavEvent) ? R + 1 < S.length && (C = S[R + 1], P = !1) : R - 1 >= 0 && (C = S[R - 1], P = !1));
|
|
2117
1484
|
}
|
|
2118
1485
|
} else
|
|
2119
|
-
|
|
2120
|
-
return
|
|
2121
|
-
return
|
|
1486
|
+
a.containerGroups.some(function(M) {
|
|
1487
|
+
return M.tabbableNodes.some(function(z) {
|
|
1488
|
+
return ne(z) > 0;
|
|
2122
1489
|
});
|
|
2123
|
-
}) || (
|
|
1490
|
+
}) || (P = !1);
|
|
2124
1491
|
else
|
|
2125
|
-
|
|
2126
|
-
|
|
1492
|
+
P = !1;
|
|
1493
|
+
P && (C = d({
|
|
2127
1494
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
2128
1495
|
// outside the trap causing the focus escape we're trying to fix)
|
|
2129
|
-
target:
|
|
2130
|
-
isBackward: l.isKeyBackward(
|
|
2131
|
-
})),
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
},
|
|
2135
|
-
var
|
|
2136
|
-
|
|
2137
|
-
var
|
|
2138
|
-
event:
|
|
2139
|
-
isBackward:
|
|
1496
|
+
target: a.mostRecentlyFocusedNode,
|
|
1497
|
+
isBackward: l.isKeyBackward(a.recentNavEvent)
|
|
1498
|
+
})), c(C || a.mostRecentlyFocusedNode || x());
|
|
1499
|
+
}
|
|
1500
|
+
a.recentNavEvent = void 0;
|
|
1501
|
+
}, y = function(o) {
|
|
1502
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1503
|
+
a.recentNavEvent = o;
|
|
1504
|
+
var w = d({
|
|
1505
|
+
event: o,
|
|
1506
|
+
isBackward: u
|
|
2140
1507
|
});
|
|
2141
|
-
|
|
2142
|
-
},
|
|
2143
|
-
(l.isKeyForward(
|
|
2144
|
-
},
|
|
2145
|
-
|
|
2146
|
-
},
|
|
2147
|
-
var
|
|
2148
|
-
|
|
2149
|
-
},
|
|
2150
|
-
if (
|
|
2151
|
-
return
|
|
2152
|
-
|
|
2153
|
-
}) :
|
|
1508
|
+
w && (ge(o) && o.preventDefault(), c(w));
|
|
1509
|
+
}, N = function(o) {
|
|
1510
|
+
(l.isKeyForward(o) || l.isKeyBackward(o)) && y(o, l.isKeyBackward(o));
|
|
1511
|
+
}, h = function(o) {
|
|
1512
|
+
Qn(o) && pe(l.escapeDeactivates, o) !== !1 && (o.preventDefault(), m.deactivate());
|
|
1513
|
+
}, k = function(o) {
|
|
1514
|
+
var u = xe(o);
|
|
1515
|
+
v(u, o) >= 0 || pe(l.clickOutsideDeactivates, o) || pe(l.allowOutsideClick, o) || (o.preventDefault(), o.stopImmediatePropagation());
|
|
1516
|
+
}, A = function() {
|
|
1517
|
+
if (a.active)
|
|
1518
|
+
return ut.activateTrap(i, m), a.delayInitialFocusTimer = l.delayInitialFocus ? dt(function() {
|
|
1519
|
+
c(x());
|
|
1520
|
+
}) : c(x()), r.addEventListener("focusin", p, !0), r.addEventListener("mousedown", f, {
|
|
2154
1521
|
capture: !0,
|
|
2155
1522
|
passive: !1
|
|
2156
|
-
}),
|
|
1523
|
+
}), r.addEventListener("touchstart", f, {
|
|
2157
1524
|
capture: !0,
|
|
2158
1525
|
passive: !1
|
|
2159
|
-
}),
|
|
1526
|
+
}), r.addEventListener("click", k, {
|
|
2160
1527
|
capture: !0,
|
|
2161
1528
|
passive: !1
|
|
2162
|
-
}),
|
|
1529
|
+
}), r.addEventListener("keydown", N, {
|
|
2163
1530
|
capture: !0,
|
|
2164
1531
|
passive: !1
|
|
2165
|
-
}),
|
|
2166
|
-
},
|
|
2167
|
-
if (
|
|
2168
|
-
return
|
|
2169
|
-
},
|
|
2170
|
-
var
|
|
2171
|
-
var
|
|
2172
|
-
return
|
|
2173
|
-
return
|
|
1532
|
+
}), r.addEventListener("keydown", h), m;
|
|
1533
|
+
}, H = function() {
|
|
1534
|
+
if (a.active)
|
|
1535
|
+
return r.removeEventListener("focusin", p, !0), r.removeEventListener("mousedown", f, !0), r.removeEventListener("touchstart", f, !0), r.removeEventListener("click", k, !0), r.removeEventListener("keydown", N, !0), r.removeEventListener("keydown", h), m;
|
|
1536
|
+
}, K = function(o) {
|
|
1537
|
+
var u = o.some(function(w) {
|
|
1538
|
+
var C = Array.from(w.removedNodes);
|
|
1539
|
+
return C.some(function(P) {
|
|
1540
|
+
return P === a.mostRecentlyFocusedNode;
|
|
2174
1541
|
});
|
|
2175
1542
|
});
|
|
2176
|
-
|
|
2177
|
-
},
|
|
2178
|
-
|
|
2179
|
-
|
|
1543
|
+
u && c(x());
|
|
1544
|
+
}, U = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(K) : void 0, W = function() {
|
|
1545
|
+
U && (U.disconnect(), a.active && !a.paused && a.containers.map(function(o) {
|
|
1546
|
+
U.observe(o, {
|
|
2180
1547
|
subtree: !0,
|
|
2181
1548
|
childList: !0
|
|
2182
1549
|
});
|
|
@@ -2184,85 +1551,85 @@ var Zt = {
|
|
|
2184
1551
|
};
|
|
2185
1552
|
return m = {
|
|
2186
1553
|
get active() {
|
|
2187
|
-
return
|
|
1554
|
+
return a.active;
|
|
2188
1555
|
},
|
|
2189
1556
|
get paused() {
|
|
2190
|
-
return
|
|
1557
|
+
return a.paused;
|
|
2191
1558
|
},
|
|
2192
|
-
activate: function(
|
|
2193
|
-
if (
|
|
1559
|
+
activate: function(o) {
|
|
1560
|
+
if (a.active)
|
|
2194
1561
|
return this;
|
|
2195
|
-
var
|
|
2196
|
-
|
|
2197
|
-
var
|
|
2198
|
-
|
|
1562
|
+
var u = s(o, "onActivate"), w = s(o, "onPostActivate"), C = s(o, "checkCanFocusTrap");
|
|
1563
|
+
C || T(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, u == null || u();
|
|
1564
|
+
var P = function() {
|
|
1565
|
+
C && T(), A(), W(), w == null || w();
|
|
2199
1566
|
};
|
|
2200
|
-
return
|
|
1567
|
+
return C ? (C(a.containers.concat()).then(P, P), this) : (P(), this);
|
|
2201
1568
|
},
|
|
2202
|
-
deactivate: function(
|
|
2203
|
-
if (!
|
|
1569
|
+
deactivate: function(o) {
|
|
1570
|
+
if (!a.active)
|
|
2204
1571
|
return this;
|
|
2205
|
-
var
|
|
1572
|
+
var u = ot({
|
|
2206
1573
|
onDeactivate: l.onDeactivate,
|
|
2207
1574
|
onPostDeactivate: l.onPostDeactivate,
|
|
2208
1575
|
checkCanReturnFocus: l.checkCanReturnFocus
|
|
2209
|
-
},
|
|
2210
|
-
clearTimeout(
|
|
2211
|
-
var
|
|
2212
|
-
|
|
2213
|
-
var
|
|
2214
|
-
|
|
2215
|
-
|
|
1576
|
+
}, o);
|
|
1577
|
+
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, H(), a.active = !1, a.paused = !1, W(), ut.deactivateTrap(i, m);
|
|
1578
|
+
var w = s(u, "onDeactivate"), C = s(u, "onPostDeactivate"), P = s(u, "checkCanReturnFocus"), I = s(u, "returnFocus", "returnFocusOnDeactivate");
|
|
1579
|
+
w == null || w();
|
|
1580
|
+
var S = function() {
|
|
1581
|
+
dt(function() {
|
|
1582
|
+
I && c(g(a.nodeFocusedBeforeActivation)), C == null || C();
|
|
2216
1583
|
});
|
|
2217
1584
|
};
|
|
2218
|
-
return
|
|
1585
|
+
return I && P ? (P(g(a.nodeFocusedBeforeActivation)).then(S, S), this) : (S(), this);
|
|
2219
1586
|
},
|
|
2220
|
-
pause: function(
|
|
2221
|
-
if (
|
|
1587
|
+
pause: function(o) {
|
|
1588
|
+
if (a.paused || !a.active)
|
|
2222
1589
|
return this;
|
|
2223
|
-
var
|
|
2224
|
-
return
|
|
1590
|
+
var u = s(o, "onPause"), w = s(o, "onPostPause");
|
|
1591
|
+
return a.paused = !0, u == null || u(), H(), W(), w == null || w(), this;
|
|
2225
1592
|
},
|
|
2226
|
-
unpause: function(
|
|
2227
|
-
if (!
|
|
1593
|
+
unpause: function(o) {
|
|
1594
|
+
if (!a.paused || !a.active)
|
|
2228
1595
|
return this;
|
|
2229
|
-
var
|
|
2230
|
-
return
|
|
1596
|
+
var u = s(o, "onUnpause"), w = s(o, "onPostUnpause");
|
|
1597
|
+
return a.paused = !1, u == null || u(), T(), A(), W(), w == null || w(), this;
|
|
2231
1598
|
},
|
|
2232
|
-
updateContainerElements: function(
|
|
2233
|
-
var
|
|
2234
|
-
return
|
|
2235
|
-
return typeof
|
|
2236
|
-
}),
|
|
1599
|
+
updateContainerElements: function(o) {
|
|
1600
|
+
var u = [].concat(o).filter(Boolean);
|
|
1601
|
+
return a.containers = u.map(function(w) {
|
|
1602
|
+
return typeof w == "string" ? r.querySelector(w) : w;
|
|
1603
|
+
}), a.active && T(), W(), this;
|
|
2237
1604
|
}
|
|
2238
1605
|
}, m.updateContainerElements(e), m;
|
|
2239
1606
|
};
|
|
2240
|
-
function
|
|
2241
|
-
let
|
|
2242
|
-
return t && (
|
|
1607
|
+
function Ut(t, e, n) {
|
|
1608
|
+
let r = null;
|
|
1609
|
+
return t && (r = rr(t, {
|
|
2243
1610
|
clickOutsideDeactivates: !e,
|
|
2244
1611
|
escapeDeactivates: !e,
|
|
2245
|
-
onDeactivate: () =>
|
|
1612
|
+
onDeactivate: () => n == null ? void 0 : n(),
|
|
2246
1613
|
fallbackFocus: () => t
|
|
2247
|
-
}),
|
|
2248
|
-
|
|
1614
|
+
}), r.activate()), { deactivate: () => {
|
|
1615
|
+
r == null || r.deactivate(), r = null;
|
|
2249
1616
|
}, wrapper: t };
|
|
2250
1617
|
}
|
|
2251
|
-
const
|
|
2252
|
-
const [
|
|
2253
|
-
function
|
|
2254
|
-
m(
|
|
1618
|
+
const ar = ({ modalContext: t, config: e, children: n }) => {
|
|
1619
|
+
const [r, i] = $(!1), l = j(null), [a, m] = $(null);
|
|
1620
|
+
function s() {
|
|
1621
|
+
m(Ut(l.current, e == null ? void 0 : e.closeExplicitly, () => t.close())), i(!0);
|
|
2255
1622
|
}
|
|
2256
|
-
return
|
|
1623
|
+
return D(() => () => a == null ? void 0 : a.deactivate(), [a]), /* @__PURE__ */ F("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ F(
|
|
2257
1624
|
"div",
|
|
2258
1625
|
{
|
|
2259
|
-
className:
|
|
1626
|
+
className: Se("im-modal-positioner flex min-h-full justify-center", {
|
|
2260
1627
|
"items-start": e.position === "top",
|
|
2261
1628
|
"items-center": e.position === "center",
|
|
2262
1629
|
"items-end": e.position === "bottom"
|
|
2263
1630
|
}),
|
|
2264
|
-
children: /* @__PURE__ */ F
|
|
2265
|
-
|
|
1631
|
+
children: /* @__PURE__ */ F(
|
|
1632
|
+
Ue,
|
|
2266
1633
|
{
|
|
2267
1634
|
as: "div",
|
|
2268
1635
|
ref: l,
|
|
@@ -2270,9 +1637,9 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2270
1637
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
2271
1638
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
2272
1639
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
2273
|
-
afterEnter:
|
|
1640
|
+
afterEnter: s,
|
|
2274
1641
|
afterLeave: t.afterLeave,
|
|
2275
|
-
className:
|
|
1642
|
+
className: Se(
|
|
2276
1643
|
"im-modal-wrapper pointer-events-auto w-full transition duration-300 ease-in-out",
|
|
2277
1644
|
t.onTopOfStack ? "" : "blur-sm",
|
|
2278
1645
|
{
|
|
@@ -2288,14 +1655,14 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2288
1655
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
2289
1656
|
}
|
|
2290
1657
|
),
|
|
2291
|
-
children: /* @__PURE__ */
|
|
1658
|
+
children: /* @__PURE__ */ le(
|
|
2292
1659
|
"div",
|
|
2293
1660
|
{
|
|
2294
1661
|
className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`,
|
|
2295
|
-
"data-inertiaui-modal-entered":
|
|
1662
|
+
"data-inertiaui-modal-entered": r,
|
|
2296
1663
|
children: [
|
|
2297
|
-
e.closeButton && /* @__PURE__ */ F
|
|
2298
|
-
typeof
|
|
1664
|
+
e.closeButton && /* @__PURE__ */ F("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ F($t, { onClick: t.close }) }),
|
|
1665
|
+
typeof n == "function" ? n({ modalContext: t, config: e }) : n
|
|
2299
1666
|
]
|
|
2300
1667
|
}
|
|
2301
1668
|
)
|
|
@@ -2303,20 +1670,20 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2303
1670
|
)
|
|
2304
1671
|
}
|
|
2305
1672
|
) });
|
|
2306
|
-
},
|
|
2307
|
-
const [
|
|
2308
|
-
function
|
|
2309
|
-
m(
|
|
1673
|
+
}, ir = ({ modalContext: t, config: e, children: n }) => {
|
|
1674
|
+
const [r, i] = $(!1), l = j(null), [a, m] = $(null);
|
|
1675
|
+
function s() {
|
|
1676
|
+
m(Ut(l.current, e == null ? void 0 : e.closeExplicitly, () => t.close())), i(!0);
|
|
2310
1677
|
}
|
|
2311
|
-
return
|
|
1678
|
+
return D(() => () => a == null ? void 0 : a.deactivate(), [a]), /* @__PURE__ */ F("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ F(
|
|
2312
1679
|
"div",
|
|
2313
1680
|
{
|
|
2314
|
-
className:
|
|
1681
|
+
className: Se("im-slideover-positioner flex min-h-full items-center", {
|
|
2315
1682
|
"justify-start rtl:justify-end": (e == null ? void 0 : e.position) === "left",
|
|
2316
1683
|
"justify-end rtl:justify-start": (e == null ? void 0 : e.position) === "right"
|
|
2317
1684
|
}),
|
|
2318
|
-
children: /* @__PURE__ */ F
|
|
2319
|
-
|
|
1685
|
+
children: /* @__PURE__ */ F(
|
|
1686
|
+
Ue,
|
|
2320
1687
|
{
|
|
2321
1688
|
as: "div",
|
|
2322
1689
|
ref: l,
|
|
@@ -2324,9 +1691,9 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2324
1691
|
enterTo: "opacity-100 translate-x-0",
|
|
2325
1692
|
leaveFrom: "opacity-100 translate-x-0",
|
|
2326
1693
|
leaveTo: `opacity-0 ${e.position === "left" ? "-translate-x-full" : "translate-x-full"}`,
|
|
2327
|
-
afterEnter:
|
|
1694
|
+
afterEnter: s,
|
|
2328
1695
|
afterLeave: t.afterLeave,
|
|
2329
|
-
className:
|
|
1696
|
+
className: Se(
|
|
2330
1697
|
"im-slideover-wrapper pointer-events-auto w-full transition duration-300 ease-in-out",
|
|
2331
1698
|
t.onTopOfStack ? "" : "blur-sm",
|
|
2332
1699
|
{
|
|
@@ -2342,14 +1709,14 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2342
1709
|
"sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
|
|
2343
1710
|
}
|
|
2344
1711
|
),
|
|
2345
|
-
children: /* @__PURE__ */
|
|
1712
|
+
children: /* @__PURE__ */ le(
|
|
2346
1713
|
"div",
|
|
2347
1714
|
{
|
|
2348
1715
|
className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`,
|
|
2349
|
-
"data-inertiaui-modal-entered":
|
|
1716
|
+
"data-inertiaui-modal-entered": r,
|
|
2350
1717
|
children: [
|
|
2351
|
-
e.closeButton && /* @__PURE__ */ F
|
|
2352
|
-
typeof
|
|
1718
|
+
e.closeButton && /* @__PURE__ */ F("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ F($t, { onClick: t.close }) }),
|
|
1719
|
+
typeof n == "function" ? n({ modalContext: t, config: e }) : n
|
|
2353
1720
|
]
|
|
2354
1721
|
}
|
|
2355
1722
|
)
|
|
@@ -2357,52 +1724,52 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2357
1724
|
)
|
|
2358
1725
|
}
|
|
2359
1726
|
) });
|
|
2360
|
-
},
|
|
2361
|
-
const
|
|
2362
|
-
return
|
|
2363
|
-
var
|
|
2364
|
-
if (((
|
|
2365
|
-
return
|
|
2366
|
-
}, [
|
|
2367
|
-
|
|
1727
|
+
}, lr = Ze(({ name: t, children: e, onFocus: n = null, onBlur: r = null, onClose: i = null, onSuccess: l = null, onAfterLeave: a = null, ...m }, s) => {
|
|
1728
|
+
const v = (x) => typeof e == "function" ? e(x) : e, b = j(null);
|
|
1729
|
+
return D(() => {
|
|
1730
|
+
var x;
|
|
1731
|
+
if (((x = b == null ? void 0 : b.current) == null ? void 0 : x.index) === 0)
|
|
1732
|
+
return nt.prepare(), () => nt.cleanup();
|
|
1733
|
+
}, [b]), ct(s, () => b.current, [b]), /* @__PURE__ */ F(
|
|
1734
|
+
bt,
|
|
2368
1735
|
{
|
|
2369
|
-
ref:
|
|
1736
|
+
ref: b,
|
|
2370
1737
|
name: t,
|
|
2371
|
-
onFocus:
|
|
2372
|
-
onBlur:
|
|
2373
|
-
onClose:
|
|
1738
|
+
onFocus: n,
|
|
1739
|
+
onBlur: r,
|
|
1740
|
+
onClose: i,
|
|
2374
1741
|
onSuccess: l,
|
|
2375
1742
|
...m,
|
|
2376
1743
|
children: ({
|
|
2377
|
-
afterLeave:
|
|
2378
|
-
close:
|
|
2379
|
-
config:
|
|
2380
|
-
emit:
|
|
2381
|
-
getChildModal:
|
|
1744
|
+
afterLeave: x,
|
|
1745
|
+
close: T,
|
|
1746
|
+
config: E,
|
|
1747
|
+
emit: c,
|
|
1748
|
+
getChildModal: g,
|
|
2382
1749
|
getParentModal: d,
|
|
2383
1750
|
id: f,
|
|
2384
|
-
index:
|
|
2385
|
-
isOpen:
|
|
2386
|
-
modalContext:
|
|
2387
|
-
onTopOfStack:
|
|
2388
|
-
reload:
|
|
2389
|
-
setOpen:
|
|
2390
|
-
shouldRender:
|
|
2391
|
-
}) => /* @__PURE__ */ F
|
|
2392
|
-
|
|
1751
|
+
index: p,
|
|
1752
|
+
isOpen: y,
|
|
1753
|
+
modalContext: N,
|
|
1754
|
+
onTopOfStack: h,
|
|
1755
|
+
reload: k,
|
|
1756
|
+
setOpen: A,
|
|
1757
|
+
shouldRender: H
|
|
1758
|
+
}) => /* @__PURE__ */ F(
|
|
1759
|
+
Kn,
|
|
2393
1760
|
{
|
|
2394
1761
|
appear: !0,
|
|
2395
|
-
show:
|
|
2396
|
-
afterLeave:
|
|
2397
|
-
children: /* @__PURE__ */
|
|
1762
|
+
show: y ?? !1,
|
|
1763
|
+
afterLeave: a,
|
|
1764
|
+
children: /* @__PURE__ */ le(
|
|
2398
1765
|
"div",
|
|
2399
1766
|
{
|
|
2400
1767
|
className: "im-dialog relative z-20",
|
|
2401
1768
|
"data-inertiaui-modal-id": f,
|
|
2402
|
-
"data-inertiaui-modal-index":
|
|
1769
|
+
"data-inertiaui-modal-index": p,
|
|
2403
1770
|
children: [
|
|
2404
|
-
|
|
2405
|
-
|
|
1771
|
+
p === 0 ? /* @__PURE__ */ F(
|
|
1772
|
+
Ue,
|
|
2406
1773
|
{
|
|
2407
1774
|
enter: "transition transform ease-in-out duration-300",
|
|
2408
1775
|
enterFrom: "opacity-0",
|
|
@@ -2410,58 +1777,58 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2410
1777
|
leave: "transition transform ease-in-out duration-300",
|
|
2411
1778
|
leaveFrom: "opacity-100",
|
|
2412
1779
|
leaveTo: "opacity-0",
|
|
2413
|
-
children:
|
|
1780
|
+
children: h ? /* @__PURE__ */ F(
|
|
2414
1781
|
"div",
|
|
2415
1782
|
{
|
|
2416
1783
|
className: "im-backdrop fixed inset-0 z-30 bg-black/75",
|
|
2417
1784
|
"aria-hidden": "true"
|
|
2418
1785
|
}
|
|
2419
|
-
) : /* @__PURE__ */ F
|
|
1786
|
+
) : /* @__PURE__ */ F("div", {})
|
|
2420
1787
|
}
|
|
2421
1788
|
) : null,
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
1789
|
+
p > 0 && h ? /* @__PURE__ */ F("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
|
|
1790
|
+
E.slideover ? /* @__PURE__ */ F(
|
|
1791
|
+
ir,
|
|
2425
1792
|
{
|
|
2426
|
-
modalContext:
|
|
2427
|
-
config:
|
|
2428
|
-
children:
|
|
2429
|
-
afterLeave:
|
|
2430
|
-
close:
|
|
2431
|
-
config:
|
|
2432
|
-
emit:
|
|
2433
|
-
getChildModal:
|
|
1793
|
+
modalContext: N,
|
|
1794
|
+
config: E,
|
|
1795
|
+
children: v({
|
|
1796
|
+
afterLeave: x,
|
|
1797
|
+
close: T,
|
|
1798
|
+
config: E,
|
|
1799
|
+
emit: c,
|
|
1800
|
+
getChildModal: g,
|
|
2434
1801
|
getParentModal: d,
|
|
2435
1802
|
id: f,
|
|
2436
|
-
index:
|
|
2437
|
-
isOpen:
|
|
2438
|
-
modalContext:
|
|
2439
|
-
onTopOfStack:
|
|
2440
|
-
reload:
|
|
2441
|
-
setOpen:
|
|
2442
|
-
shouldRender:
|
|
1803
|
+
index: p,
|
|
1804
|
+
isOpen: y,
|
|
1805
|
+
modalContext: N,
|
|
1806
|
+
onTopOfStack: h,
|
|
1807
|
+
reload: k,
|
|
1808
|
+
setOpen: A,
|
|
1809
|
+
shouldRender: H
|
|
2443
1810
|
})
|
|
2444
1811
|
}
|
|
2445
|
-
) : /* @__PURE__ */ F
|
|
2446
|
-
|
|
1812
|
+
) : /* @__PURE__ */ F(
|
|
1813
|
+
ar,
|
|
2447
1814
|
{
|
|
2448
|
-
modalContext:
|
|
2449
|
-
config:
|
|
2450
|
-
children:
|
|
2451
|
-
afterLeave:
|
|
2452
|
-
close:
|
|
2453
|
-
config:
|
|
2454
|
-
emit:
|
|
2455
|
-
getChildModal:
|
|
1815
|
+
modalContext: N,
|
|
1816
|
+
config: E,
|
|
1817
|
+
children: v({
|
|
1818
|
+
afterLeave: x,
|
|
1819
|
+
close: T,
|
|
1820
|
+
config: E,
|
|
1821
|
+
emit: c,
|
|
1822
|
+
getChildModal: g,
|
|
2456
1823
|
getParentModal: d,
|
|
2457
1824
|
id: f,
|
|
2458
|
-
index:
|
|
2459
|
-
isOpen:
|
|
2460
|
-
modalContext:
|
|
2461
|
-
onTopOfStack:
|
|
2462
|
-
reload:
|
|
2463
|
-
setOpen:
|
|
2464
|
-
shouldRender:
|
|
1825
|
+
index: p,
|
|
1826
|
+
isOpen: y,
|
|
1827
|
+
modalContext: N,
|
|
1828
|
+
onTopOfStack: h,
|
|
1829
|
+
reload: k,
|
|
1830
|
+
setOpen: A,
|
|
1831
|
+
shouldRender: H
|
|
2465
1832
|
})
|
|
2466
1833
|
}
|
|
2467
1834
|
)
|
|
@@ -2473,84 +1840,84 @@ const wa = ({ modalContext: t, config: e, children: r }) => {
|
|
|
2473
1840
|
}
|
|
2474
1841
|
);
|
|
2475
1842
|
});
|
|
2476
|
-
|
|
2477
|
-
const
|
|
1843
|
+
lr.displayName = "Modal";
|
|
1844
|
+
const br = ({
|
|
2478
1845
|
href: t,
|
|
2479
1846
|
method: e = "get",
|
|
2480
|
-
data:
|
|
2481
|
-
as:
|
|
2482
|
-
headers:
|
|
1847
|
+
data: n = {},
|
|
1848
|
+
as: r = "a",
|
|
1849
|
+
headers: i = {},
|
|
2483
1850
|
queryStringArrayFormat: l = "brackets",
|
|
2484
|
-
onAfterLeave:
|
|
1851
|
+
onAfterLeave: a = null,
|
|
2485
1852
|
onBlur: m = null,
|
|
2486
|
-
onClose:
|
|
2487
|
-
onError:
|
|
2488
|
-
onFocus:
|
|
2489
|
-
onStart:
|
|
2490
|
-
onSuccess:
|
|
2491
|
-
navigate:
|
|
2492
|
-
children:
|
|
2493
|
-
...
|
|
1853
|
+
onClose: s = null,
|
|
1854
|
+
onError: v = null,
|
|
1855
|
+
onFocus: b = null,
|
|
1856
|
+
onStart: x = null,
|
|
1857
|
+
onSuccess: T = null,
|
|
1858
|
+
navigate: E = null,
|
|
1859
|
+
children: c,
|
|
1860
|
+
...g
|
|
2494
1861
|
}) => {
|
|
2495
|
-
const [d, f] =
|
|
2496
|
-
Object.keys(
|
|
2497
|
-
|
|
1862
|
+
const [d, f] = $(!1), [p, y] = $(null), { stack: N, visit: h } = Ae(), k = Y(() => E ?? Je("navigate"), [E]), A = {}, H = {};
|
|
1863
|
+
Object.keys(g).forEach((u) => {
|
|
1864
|
+
rt.includes(u) || (u.startsWith("on") && typeof g[u] == "function" ? u.toLowerCase() in window ? A[u] = g[u] : H[u] = g[u] : A[u] = g[u]);
|
|
2498
1865
|
});
|
|
2499
|
-
const [
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
}, [
|
|
2503
|
-
const
|
|
2504
|
-
|
|
2505
|
-
}, [
|
|
2506
|
-
|
|
2507
|
-
}, [
|
|
2508
|
-
(
|
|
2509
|
-
|
|
1866
|
+
const [K, U] = $(!1);
|
|
1867
|
+
D(() => {
|
|
1868
|
+
p && (p.onTopOfStack && K ? b == null || b() : !p.onTopOfStack && !K && (m == null || m()), U(!p.onTopOfStack));
|
|
1869
|
+
}, [N]);
|
|
1870
|
+
const W = V(() => {
|
|
1871
|
+
s == null || s();
|
|
1872
|
+
}, [s]), O = V(() => {
|
|
1873
|
+
y(null), a == null || a();
|
|
1874
|
+
}, [a]), o = V(
|
|
1875
|
+
(u) => {
|
|
1876
|
+
u == null || u.preventDefault(), !d && (t.startsWith("#") || (f(!0), x == null || x()), h(
|
|
2510
1877
|
t,
|
|
2511
1878
|
e,
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
() =>
|
|
2516
|
-
|
|
1879
|
+
n,
|
|
1880
|
+
i,
|
|
1881
|
+
Gt(ft(g, rt)),
|
|
1882
|
+
() => W(N.length),
|
|
1883
|
+
O,
|
|
2517
1884
|
l,
|
|
2518
|
-
|
|
2519
|
-
).then((
|
|
2520
|
-
|
|
2521
|
-
}).catch((
|
|
2522
|
-
console.error(
|
|
1885
|
+
k
|
|
1886
|
+
).then((w) => {
|
|
1887
|
+
y(w), w.registerEventListenersFromProps(H), T == null || T();
|
|
1888
|
+
}).catch((w) => {
|
|
1889
|
+
console.error(w), v == null || v(w);
|
|
2523
1890
|
}).finally(() => f(!1)));
|
|
2524
1891
|
},
|
|
2525
|
-
[t, e,
|
|
1892
|
+
[t, e, n, i, l, g, W, O]
|
|
2526
1893
|
);
|
|
2527
|
-
return /* @__PURE__ */ F
|
|
2528
|
-
|
|
1894
|
+
return /* @__PURE__ */ F(
|
|
1895
|
+
r,
|
|
2529
1896
|
{
|
|
2530
|
-
...
|
|
1897
|
+
...A,
|
|
2531
1898
|
href: t,
|
|
2532
|
-
onClick:
|
|
2533
|
-
children: typeof
|
|
1899
|
+
onClick: o,
|
|
1900
|
+
children: typeof c == "function" ? c({ loading: d }) : c
|
|
2534
1901
|
}
|
|
2535
1902
|
);
|
|
2536
1903
|
};
|
|
2537
|
-
function
|
|
2538
|
-
return
|
|
1904
|
+
function gr() {
|
|
1905
|
+
return Ae().stack[ht()] ?? null;
|
|
2539
1906
|
}
|
|
2540
|
-
const
|
|
1907
|
+
const yr = (t) => (e) => (e.default.layout = (n) => Ne(t, {}, n), e);
|
|
2541
1908
|
export {
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
1909
|
+
bt as HeadlessModal,
|
|
1910
|
+
lr as Modal,
|
|
1911
|
+
br as ModalLink,
|
|
1912
|
+
Qt as ModalRoot,
|
|
1913
|
+
Yt as ModalStackProvider,
|
|
1914
|
+
Je as getConfig,
|
|
1915
|
+
Jt as initFromPageProps,
|
|
1916
|
+
pr as putConfig,
|
|
1917
|
+
hr as renderApp,
|
|
1918
|
+
mr as resetConfig,
|
|
1919
|
+
yr as setPageLayout,
|
|
1920
|
+
gr as useModal,
|
|
1921
|
+
ht as useModalIndex,
|
|
1922
|
+
Ae as useModalStack
|
|
2556
1923
|
};
|