@nd-storybook/storybook 0.3.10 → 0.3.11
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/index.cjs.js +14 -14
- package/dist/index.d.ts +11 -3
- package/dist/index.es.js +954 -939
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R2 from "react";
|
|
2
|
-
import
|
|
2
|
+
import Y, { useState as G, useEffect as i2, useLayoutEffect as M3, useRef as r2, useContext as y2, createContext as E2, forwardRef as Z5, useCallback as s2, Fragment as M2, isValidElement as F5, cloneElement as B5, createElement as D5, useId as x0, useMemo as C2, useSyncExternalStore as I5, useReducer as q5, createRef as U5, Children as z5 } from "react";
|
|
3
3
|
import { createPortal as W5 } from "react-dom";
|
|
4
4
|
function E3(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -52,12 +52,12 @@ function G5() {
|
|
|
52
52
|
function e(C) {
|
|
53
53
|
if (C == null) return null;
|
|
54
54
|
if (typeof C == "function")
|
|
55
|
-
return C.$$typeof ===
|
|
55
|
+
return C.$$typeof === V ? null : C.displayName || C.name || null;
|
|
56
56
|
if (typeof C == "string") return C;
|
|
57
57
|
switch (C) {
|
|
58
58
|
case g:
|
|
59
59
|
return "Fragment";
|
|
60
|
-
case
|
|
60
|
+
case k:
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case v:
|
|
63
63
|
return "StrictMode";
|
|
@@ -65,7 +65,7 @@ function G5() {
|
|
|
65
65
|
return "Suspense";
|
|
66
66
|
case $:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case U:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof C == "object")
|
|
@@ -74,16 +74,16 @@ function G5() {
|
|
|
74
74
|
), C.$$typeof) {
|
|
75
75
|
case p:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
77
|
+
case M:
|
|
78
78
|
return (C.displayName || "Context") + ".Provider";
|
|
79
|
-
case
|
|
79
|
+
case _:
|
|
80
80
|
return (C._context.displayName || "Context") + ".Consumer";
|
|
81
|
-
case
|
|
81
|
+
case O:
|
|
82
82
|
var x = C.render;
|
|
83
83
|
return C = C.displayName, C || (C = x.displayName || x.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
84
|
-
case
|
|
84
|
+
case Z:
|
|
85
85
|
return x = C.displayName || null, x !== null ? x : e(C.type) || "Memo";
|
|
86
|
-
case
|
|
86
|
+
case K:
|
|
87
87
|
x = C._payload, C = C._init;
|
|
88
88
|
try {
|
|
89
89
|
return e(C(x));
|
|
@@ -104,8 +104,8 @@ function G5() {
|
|
|
104
104
|
}
|
|
105
105
|
if (x) {
|
|
106
106
|
x = console;
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var S = x.error, b = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
108
|
+
return S.call(
|
|
109
109
|
x,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
111
|
b
|
|
@@ -114,7 +114,7 @@ function G5() {
|
|
|
114
114
|
}
|
|
115
115
|
function n(C) {
|
|
116
116
|
if (C === g) return "<>";
|
|
117
|
-
if (typeof C == "object" && C !== null && C.$$typeof ===
|
|
117
|
+
if (typeof C == "object" && C !== null && C.$$typeof === K)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
120
|
var x = e(C);
|
|
@@ -124,45 +124,45 @@ function G5() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function o() {
|
|
127
|
-
var C =
|
|
127
|
+
var C = H.A;
|
|
128
128
|
return C === null ? null : C.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function i() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function s(C) {
|
|
134
|
-
if (
|
|
134
|
+
if (z.call(C, "key")) {
|
|
135
135
|
var x = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
136
136
|
if (x && x.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
138
|
return C.key !== void 0;
|
|
139
139
|
}
|
|
140
140
|
function l(C, x) {
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function S() {
|
|
142
|
+
j || (j = !0, console.error(
|
|
143
143
|
"%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://react.dev/link/special-props)",
|
|
144
144
|
x
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
S.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
148
|
+
get: S,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function a() {
|
|
153
153
|
var C = e(this.type);
|
|
154
|
-
return
|
|
154
|
+
return E[C] || (E[C] = !0, console.error(
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
157
157
|
}
|
|
158
|
-
function c(C, x,
|
|
159
|
-
return
|
|
158
|
+
function c(C, x, S, b, P, N, I, D) {
|
|
159
|
+
return S = N.ref, C = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: C,
|
|
162
162
|
key: x,
|
|
163
163
|
props: N,
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
164
|
+
_owner: P
|
|
165
|
+
}, (S !== void 0 ? S : null) !== null ? Object.defineProperty(C, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: a
|
|
168
168
|
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
@@ -187,25 +187,25 @@ function G5() {
|
|
|
187
187
|
value: D
|
|
188
188
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
189
189
|
}
|
|
190
|
-
function u(C, x,
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
190
|
+
function u(C, x, S, b, P, N, I, D) {
|
|
191
|
+
var F = x.children;
|
|
192
|
+
if (F !== void 0)
|
|
193
193
|
if (b)
|
|
194
|
-
if (
|
|
195
|
-
for (b = 0; b <
|
|
196
|
-
d(
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
194
|
+
if (J(F)) {
|
|
195
|
+
for (b = 0; b < F.length; b++)
|
|
196
|
+
d(F[b]);
|
|
197
|
+
Object.freeze && Object.freeze(F);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
|
-
else d(
|
|
203
|
-
if (
|
|
204
|
-
|
|
205
|
-
var
|
|
202
|
+
else d(F);
|
|
203
|
+
if (z.call(x, "key")) {
|
|
204
|
+
F = e(C);
|
|
205
|
+
var W = Object.keys(x).filter(function(t2) {
|
|
206
206
|
return t2 !== "key";
|
|
207
207
|
});
|
|
208
|
-
b = 0 <
|
|
208
|
+
b = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", B[F + b] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -213,26 +213,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
215
|
b,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
), B[
|
|
216
|
+
F,
|
|
217
|
+
W,
|
|
218
|
+
F
|
|
219
|
+
), B[F + b] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (
|
|
222
|
-
|
|
221
|
+
if (F = null, S !== void 0 && (r(S), F = "" + S), s(x) && (r(x.key), F = "" + x.key), "key" in x) {
|
|
222
|
+
S = {};
|
|
223
223
|
for (var q in x)
|
|
224
|
-
q !== "key" && (
|
|
225
|
-
} else
|
|
226
|
-
return
|
|
227
|
-
|
|
224
|
+
q !== "key" && (S[q] = x[q]);
|
|
225
|
+
} else S = x;
|
|
226
|
+
return F && l(
|
|
227
|
+
S,
|
|
228
228
|
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
229
229
|
), c(
|
|
230
230
|
C,
|
|
231
|
-
|
|
231
|
+
F,
|
|
232
232
|
N,
|
|
233
|
-
|
|
233
|
+
P,
|
|
234
234
|
o(),
|
|
235
|
-
|
|
235
|
+
S,
|
|
236
236
|
I,
|
|
237
237
|
D
|
|
238
238
|
);
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function d(C) {
|
|
241
241
|
typeof C == "object" && C !== null && C.$$typeof === m && C._store && (C._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var h =
|
|
243
|
+
var h = Y, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), M = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), V = Symbol.for("react.client.reference"), H = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, J = Array.isArray, R = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
h = {
|
|
@@ -248,33 +248,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return C();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var j, E = {}, A = h.react_stack_bottom_frame.bind(
|
|
252
252
|
h,
|
|
253
253
|
i
|
|
254
|
-
)(), L =
|
|
255
|
-
l0.Fragment = g, l0.jsx = function(C, x,
|
|
256
|
-
var N = 1e4 >
|
|
254
|
+
)(), L = R(n(i)), B = {};
|
|
255
|
+
l0.Fragment = g, l0.jsx = function(C, x, S, b, P) {
|
|
256
|
+
var N = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return u(
|
|
258
258
|
C,
|
|
259
259
|
x,
|
|
260
|
-
|
|
260
|
+
S,
|
|
261
261
|
!1,
|
|
262
262
|
b,
|
|
263
|
-
|
|
263
|
+
P,
|
|
264
264
|
N ? Error("react-stack-top-frame") : A,
|
|
265
|
-
N ?
|
|
265
|
+
N ? R(n(C)) : L
|
|
266
266
|
);
|
|
267
|
-
}, l0.jsxs = function(C, x,
|
|
268
|
-
var N = 1e4 >
|
|
267
|
+
}, l0.jsxs = function(C, x, S, b, P) {
|
|
268
|
+
var N = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return u(
|
|
270
270
|
C,
|
|
271
271
|
x,
|
|
272
|
-
|
|
272
|
+
S,
|
|
273
273
|
!0,
|
|
274
274
|
b,
|
|
275
|
-
|
|
275
|
+
P,
|
|
276
276
|
N ? Error("react-stack-top-frame") : A,
|
|
277
|
-
N ?
|
|
277
|
+
N ? R(n(C)) : L
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
})()), l0;
|
|
@@ -335,8 +335,8 @@ function Q5() {
|
|
|
335
335
|
throw new TypeError("invalid type");
|
|
336
336
|
var p = m;
|
|
337
337
|
if (h && typeof h == "object")
|
|
338
|
-
for (var g, v = Object.keys(h).sort(),
|
|
339
|
-
if (g = v[
|
|
338
|
+
for (var g, v = Object.keys(h).sort(), k = 0; k < v.length; k++) {
|
|
339
|
+
if (g = v[k], !r.test(g))
|
|
340
340
|
throw new TypeError("invalid parameter name");
|
|
341
341
|
p += "; " + g + "=" + c(h[g]);
|
|
342
342
|
}
|
|
@@ -353,11 +353,11 @@ function Q5() {
|
|
|
353
353
|
throw new TypeError("invalid media type");
|
|
354
354
|
var g = new u(p.toLowerCase());
|
|
355
355
|
if (m !== -1) {
|
|
356
|
-
var v,
|
|
357
|
-
for (e.lastIndex = m;
|
|
358
|
-
if (
|
|
356
|
+
var v, k, _;
|
|
357
|
+
for (e.lastIndex = m; k = e.exec(h); ) {
|
|
358
|
+
if (k.index !== m)
|
|
359
359
|
throw new TypeError("invalid parameter format");
|
|
360
|
-
m +=
|
|
360
|
+
m += k[0].length, v = k[1].toLowerCase(), _ = k[2], _.charCodeAt(0) === 34 && (_ = _.slice(1, -1), _.indexOf("\\") !== -1 && (_ = _.replace(n, "$1"))), g.parameters[v] = _;
|
|
361
361
|
}
|
|
362
362
|
if (m !== h.length)
|
|
363
363
|
throw new TypeError("invalid parameter format");
|
|
@@ -476,15 +476,15 @@ var et = Q5(), e0 = /* @__PURE__ */ new Map(), L3 = function(t) {
|
|
|
476
476
|
g && d.setAttribute("height", g);
|
|
477
477
|
var v = Array.from(new Set(v1(v1(v1([], (d.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (t.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
478
478
|
d.setAttribute("class", v);
|
|
479
|
-
var
|
|
480
|
-
|
|
481
|
-
var
|
|
479
|
+
var k = t.getAttribute("style");
|
|
480
|
+
k && d.setAttribute("style", k), d.setAttribute("data-src", a);
|
|
481
|
+
var _ = [].filter.call(t.attributes, function(L) {
|
|
482
482
|
return /^data-\w[\w-]*$/.test(L.name);
|
|
483
483
|
});
|
|
484
|
-
if (Array.prototype.forEach.call(
|
|
484
|
+
if (Array.prototype.forEach.call(_, function(L) {
|
|
485
485
|
L.name && L.value && d.setAttribute(L.name, L.value);
|
|
486
486
|
}), n) {
|
|
487
|
-
var
|
|
487
|
+
var M = {
|
|
488
488
|
clipPath: ["clip-path"],
|
|
489
489
|
"color-profile": ["color-profile"],
|
|
490
490
|
cursor: ["cursor"],
|
|
@@ -495,36 +495,36 @@ var et = Q5(), e0 = /* @__PURE__ */ new Map(), L3 = function(t) {
|
|
|
495
495
|
path: [],
|
|
496
496
|
pattern: ["fill", "stroke"],
|
|
497
497
|
radialGradient: ["fill", "stroke"]
|
|
498
|
-
},
|
|
499
|
-
Object.keys(
|
|
500
|
-
|
|
501
|
-
for (var B = function(b,
|
|
502
|
-
|
|
498
|
+
}, O, w, $, Z, K;
|
|
499
|
+
Object.keys(M).forEach(function(L) {
|
|
500
|
+
O = L, $ = M[L], w = d.querySelectorAll(O + "[id]");
|
|
501
|
+
for (var B = function(b, P) {
|
|
502
|
+
Z = w[b].id, K = Z + "-" + it();
|
|
503
503
|
var N;
|
|
504
504
|
Array.prototype.forEach.call($, function(l2) {
|
|
505
|
-
N = d.querySelectorAll("[" + l2 + '*="' +
|
|
505
|
+
N = d.querySelectorAll("[" + l2 + '*="' + Z + '"]');
|
|
506
506
|
for (var O2 = 0, _0 = N.length; O2 < _0; O2++) {
|
|
507
507
|
var ge = N[O2].getAttribute(l2);
|
|
508
|
-
ge && !ge.match(new RegExp('url\\("?#' +
|
|
508
|
+
ge && !ge.match(new RegExp('url\\("?#' + Z + '"?\\)')) || N[O2].setAttribute(l2, "url(#" + K + ")");
|
|
509
509
|
}
|
|
510
510
|
});
|
|
511
|
-
for (var I = d.querySelectorAll("[*|href]"), D = [],
|
|
512
|
-
var q = I[
|
|
513
|
-
q && q.toString() === "#" + w[b].id && D.push(I[
|
|
511
|
+
for (var I = d.querySelectorAll("[*|href]"), D = [], F = 0, W = I.length; F < W; F++) {
|
|
512
|
+
var q = I[F].getAttributeNS(w1, "href");
|
|
513
|
+
q && q.toString() === "#" + w[b].id && D.push(I[F]);
|
|
514
514
|
}
|
|
515
|
-
for (var t2 = 0,
|
|
516
|
-
D[t2].setAttributeNS(w1, "href", "#" +
|
|
517
|
-
w[b].id =
|
|
515
|
+
for (var t2 = 0, T = D.length; t2 < T; t2++)
|
|
516
|
+
D[t2].setAttributeNS(w1, "href", "#" + K);
|
|
517
|
+
w[b].id = K;
|
|
518
518
|
}, C = 0, x = w.length; C < x; C++)
|
|
519
519
|
B(C);
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
d.removeAttribute("xmlns:a");
|
|
523
|
-
for (var
|
|
524
|
-
|
|
525
|
-
if (
|
|
526
|
-
for (var
|
|
527
|
-
new Function(j
|
|
523
|
+
for (var U = d.querySelectorAll("script"), V = [], H, z, J = 0, R = U.length; J < R; J++)
|
|
524
|
+
z = U[J].getAttribute("type"), (!z || z === "application/ecmascript" || z === "application/javascript" || z === "text/javascript") && (H = U[J].innerText || U[J].textContent, H && V.push(H), d.removeChild(U[J]));
|
|
525
|
+
if (V.length > 0 && (r === "always" || r === "once" && !Me[a])) {
|
|
526
|
+
for (var j = 0, E = V.length; j < E; j++)
|
|
527
|
+
new Function(V[j])(window);
|
|
528
528
|
Me[a] = !0;
|
|
529
529
|
}
|
|
530
530
|
var A = d.querySelectorAll("style");
|
|
@@ -540,13 +540,13 @@ var et = Q5(), e0 = /* @__PURE__ */ new Map(), L3 = function(t) {
|
|
|
540
540
|
var n = r === void 0 ? {} : r, o = n.afterAll, i = o === void 0 ? function() {
|
|
541
541
|
} : o, s = n.afterEach, l = s === void 0 ? function() {
|
|
542
542
|
} : s, a = n.beforeEach, c = a === void 0 ? function() {
|
|
543
|
-
} : a, u = n.cacheRequests, d = u === void 0 ? !0 : u, h = n.evalScripts, m = h === void 0 ? "never" : h, p = n.httpRequestWithCredentials, g = p === void 0 ? !1 : p, v = n.renumerateIRIElements,
|
|
543
|
+
} : a, u = n.cacheRequests, d = u === void 0 ? !0 : u, h = n.evalScripts, m = h === void 0 ? "never" : h, p = n.httpRequestWithCredentials, g = p === void 0 ? !1 : p, v = n.renumerateIRIElements, k = v === void 0 ? !0 : v;
|
|
544
544
|
if (t && "length" in t)
|
|
545
|
-
for (var
|
|
546
|
-
Ee(t[
|
|
547
|
-
l(w, $), t && "length" in t && t.length === ++
|
|
545
|
+
for (var _ = 0, M = 0, O = t.length; M < O; M++)
|
|
546
|
+
Ee(t[M], m, k, d, g, c, function(w, $) {
|
|
547
|
+
l(w, $), t && "length" in t && t.length === ++_ && i(_);
|
|
548
548
|
});
|
|
549
|
-
else t ? Ee(t, m,
|
|
549
|
+
else t ? Ee(t, m, k, d, g, c, function(w, $) {
|
|
550
550
|
l(w, $), i(1), t = null;
|
|
551
551
|
}) : i(0);
|
|
552
552
|
}, V0 = { exports: {} }, S0 = { exports: {} }, Q = {};
|
|
@@ -562,8 +562,8 @@ var Le;
|
|
|
562
562
|
function at() {
|
|
563
563
|
if (Le) return Q;
|
|
564
564
|
Le = 1;
|
|
565
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117,
|
|
566
|
-
function
|
|
565
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
566
|
+
function M(w) {
|
|
567
567
|
if (typeof w == "object" && w !== null) {
|
|
568
568
|
var $ = w.$$typeof;
|
|
569
569
|
switch ($) {
|
|
@@ -593,36 +593,36 @@ function at() {
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function O(w) {
|
|
597
|
+
return M(w) === c;
|
|
598
598
|
}
|
|
599
599
|
return Q.AsyncMode = a, Q.ConcurrentMode = c, Q.ContextConsumer = l, Q.ContextProvider = s, Q.Element = t, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = r, Q.Profiler = i, Q.StrictMode = o, Q.Suspense = d, Q.isAsyncMode = function(w) {
|
|
600
|
-
return
|
|
601
|
-
}, Q.isConcurrentMode =
|
|
602
|
-
return
|
|
600
|
+
return O(w) || M(w) === a;
|
|
601
|
+
}, Q.isConcurrentMode = O, Q.isContextConsumer = function(w) {
|
|
602
|
+
return M(w) === l;
|
|
603
603
|
}, Q.isContextProvider = function(w) {
|
|
604
|
-
return
|
|
604
|
+
return M(w) === s;
|
|
605
605
|
}, Q.isElement = function(w) {
|
|
606
606
|
return typeof w == "object" && w !== null && w.$$typeof === t;
|
|
607
607
|
}, Q.isForwardRef = function(w) {
|
|
608
|
-
return
|
|
608
|
+
return M(w) === u;
|
|
609
609
|
}, Q.isFragment = function(w) {
|
|
610
|
-
return
|
|
610
|
+
return M(w) === n;
|
|
611
611
|
}, Q.isLazy = function(w) {
|
|
612
|
-
return
|
|
612
|
+
return M(w) === p;
|
|
613
613
|
}, Q.isMemo = function(w) {
|
|
614
|
-
return
|
|
614
|
+
return M(w) === m;
|
|
615
615
|
}, Q.isPortal = function(w) {
|
|
616
|
-
return
|
|
616
|
+
return M(w) === r;
|
|
617
617
|
}, Q.isProfiler = function(w) {
|
|
618
|
-
return
|
|
618
|
+
return M(w) === i;
|
|
619
619
|
}, Q.isStrictMode = function(w) {
|
|
620
|
-
return
|
|
620
|
+
return M(w) === o;
|
|
621
621
|
}, Q.isSuspense = function(w) {
|
|
622
|
-
return
|
|
622
|
+
return M(w) === d;
|
|
623
623
|
}, Q.isValidElementType = function(w) {
|
|
624
|
-
return typeof w == "string" || typeof w == "function" || w === n || w === c || w === i || w === o || w === d || w === h || typeof w == "object" && w !== null && (w.$$typeof === p || w.$$typeof === m || w.$$typeof === s || w.$$typeof === l || w.$$typeof === u || w.$$typeof === v || w.$$typeof ===
|
|
625
|
-
}, Q.typeOf =
|
|
624
|
+
return typeof w == "string" || typeof w == "function" || w === n || w === c || w === i || w === o || w === d || w === h || typeof w == "object" && w !== null && (w.$$typeof === p || w.$$typeof === m || w.$$typeof === s || w.$$typeof === l || w.$$typeof === u || w.$$typeof === v || w.$$typeof === k || w.$$typeof === _ || w.$$typeof === g);
|
|
625
|
+
}, Q.typeOf = M, Q;
|
|
626
626
|
}
|
|
627
627
|
var e2 = {};
|
|
628
628
|
/** @license React v16.13.1
|
|
@@ -636,17 +636,17 @@ var e2 = {};
|
|
|
636
636
|
var _e;
|
|
637
637
|
function ct() {
|
|
638
638
|
return _e || (_e = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
639
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117,
|
|
640
|
-
function
|
|
641
|
-
return typeof
|
|
642
|
-
|
|
643
|
-
}
|
|
644
|
-
function T
|
|
645
|
-
if (typeof
|
|
646
|
-
var l2 =
|
|
639
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
|
640
|
+
function M(T) {
|
|
641
|
+
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
642
|
+
T === n || T === c || T === i || T === o || T === d || T === h || typeof T == "object" && T !== null && (T.$$typeof === p || T.$$typeof === m || T.$$typeof === s || T.$$typeof === l || T.$$typeof === u || T.$$typeof === v || T.$$typeof === k || T.$$typeof === _ || T.$$typeof === g);
|
|
643
|
+
}
|
|
644
|
+
function O(T) {
|
|
645
|
+
if (typeof T == "object" && T !== null) {
|
|
646
|
+
var l2 = T.$$typeof;
|
|
647
647
|
switch (l2) {
|
|
648
648
|
case t:
|
|
649
|
-
var O2 =
|
|
649
|
+
var O2 = T.type;
|
|
650
650
|
switch (O2) {
|
|
651
651
|
case a:
|
|
652
652
|
case c:
|
|
@@ -673,47 +673,47 @@ function ct() {
|
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
var w = a, $ = c,
|
|
677
|
-
function B(
|
|
678
|
-
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(
|
|
676
|
+
var w = a, $ = c, Z = l, K = s, U = t, V = u, H = n, z = p, J = m, R = r, j = i, E = o, A = d, L = !1;
|
|
677
|
+
function B(T) {
|
|
678
|
+
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(T) || O(T) === a;
|
|
679
679
|
}
|
|
680
|
-
function C(
|
|
681
|
-
return T
|
|
680
|
+
function C(T) {
|
|
681
|
+
return O(T) === c;
|
|
682
682
|
}
|
|
683
|
-
function x(
|
|
684
|
-
return T
|
|
683
|
+
function x(T) {
|
|
684
|
+
return O(T) === l;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
return T
|
|
686
|
+
function S(T) {
|
|
687
|
+
return O(T) === s;
|
|
688
688
|
}
|
|
689
|
-
function b(
|
|
690
|
-
return typeof
|
|
689
|
+
function b(T) {
|
|
690
|
+
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
return T
|
|
692
|
+
function P(T) {
|
|
693
|
+
return O(T) === u;
|
|
694
694
|
}
|
|
695
|
-
function N(
|
|
696
|
-
return T
|
|
695
|
+
function N(T) {
|
|
696
|
+
return O(T) === n;
|
|
697
697
|
}
|
|
698
|
-
function I(
|
|
699
|
-
return T
|
|
698
|
+
function I(T) {
|
|
699
|
+
return O(T) === p;
|
|
700
700
|
}
|
|
701
|
-
function D(
|
|
702
|
-
return T
|
|
701
|
+
function D(T) {
|
|
702
|
+
return O(T) === m;
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
return T
|
|
704
|
+
function F(T) {
|
|
705
|
+
return O(T) === r;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
return T
|
|
707
|
+
function W(T) {
|
|
708
|
+
return O(T) === i;
|
|
709
709
|
}
|
|
710
|
-
function q(
|
|
711
|
-
return T
|
|
710
|
+
function q(T) {
|
|
711
|
+
return O(T) === o;
|
|
712
712
|
}
|
|
713
|
-
function t2(
|
|
714
|
-
return T
|
|
713
|
+
function t2(T) {
|
|
714
|
+
return O(T) === d;
|
|
715
715
|
}
|
|
716
|
-
e2.AsyncMode = w, e2.ConcurrentMode = $, e2.ContextConsumer =
|
|
716
|
+
e2.AsyncMode = w, e2.ConcurrentMode = $, e2.ContextConsumer = Z, e2.ContextProvider = K, e2.Element = U, e2.ForwardRef = V, e2.Fragment = H, e2.Lazy = z, e2.Memo = J, e2.Portal = R, e2.Profiler = j, e2.StrictMode = E, e2.Suspense = A, e2.isAsyncMode = B, e2.isConcurrentMode = C, e2.isContextConsumer = x, e2.isContextProvider = S, e2.isElement = b, e2.isForwardRef = P, e2.isFragment = N, e2.isLazy = I, e2.isMemo = D, e2.isPortal = F, e2.isProfiler = W, e2.isStrictMode = q, e2.isSuspense = t2, e2.isValidElementType = M, e2.typeOf = O;
|
|
717
717
|
})()), e2;
|
|
718
718
|
}
|
|
719
719
|
var He;
|
|
@@ -856,25 +856,25 @@ function Ct() {
|
|
|
856
856
|
return x;
|
|
857
857
|
}
|
|
858
858
|
var h = "<<anonymous>>", m = {
|
|
859
|
-
array:
|
|
860
|
-
bigint:
|
|
861
|
-
bool:
|
|
862
|
-
func:
|
|
863
|
-
number:
|
|
864
|
-
object:
|
|
865
|
-
string:
|
|
866
|
-
symbol:
|
|
867
|
-
any:
|
|
868
|
-
arrayOf:
|
|
869
|
-
element:
|
|
859
|
+
array: k("array"),
|
|
860
|
+
bigint: k("bigint"),
|
|
861
|
+
bool: k("boolean"),
|
|
862
|
+
func: k("function"),
|
|
863
|
+
number: k("number"),
|
|
864
|
+
object: k("object"),
|
|
865
|
+
string: k("string"),
|
|
866
|
+
symbol: k("symbol"),
|
|
867
|
+
any: _(),
|
|
868
|
+
arrayOf: M,
|
|
869
|
+
element: O(),
|
|
870
870
|
elementType: w(),
|
|
871
871
|
instanceOf: $,
|
|
872
|
-
node:
|
|
873
|
-
objectOf:
|
|
874
|
-
oneOf:
|
|
875
|
-
oneOfType:
|
|
876
|
-
shape:
|
|
877
|
-
exact:
|
|
872
|
+
node: V(),
|
|
873
|
+
objectOf: K,
|
|
874
|
+
oneOf: Z,
|
|
875
|
+
oneOfType: U,
|
|
876
|
+
shape: z,
|
|
877
|
+
exact: J
|
|
878
878
|
};
|
|
879
879
|
function p(C, x) {
|
|
880
880
|
return C === x ? C !== 0 || 1 / C === 1 / x : C !== C && x !== x;
|
|
@@ -885,34 +885,34 @@ function Ct() {
|
|
|
885
885
|
g.prototype = Error.prototype;
|
|
886
886
|
function v(C) {
|
|
887
887
|
if (process.env.NODE_ENV !== "production")
|
|
888
|
-
var x = {},
|
|
889
|
-
function b(N, I, D,
|
|
890
|
-
if (
|
|
888
|
+
var x = {}, S = 0;
|
|
889
|
+
function b(N, I, D, F, W, q, t2) {
|
|
890
|
+
if (F = F || h, q = q || D, t2 !== r) {
|
|
891
891
|
if (a) {
|
|
892
|
-
var
|
|
892
|
+
var T = new Error(
|
|
893
893
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
894
894
|
);
|
|
895
|
-
throw
|
|
895
|
+
throw T.name = "Invariant Violation", T;
|
|
896
896
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
897
|
-
var l2 =
|
|
897
|
+
var l2 = F + ":" + D;
|
|
898
898
|
!x[l2] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
899
|
-
|
|
900
|
-
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" +
|
|
901
|
-
), x[l2] = !0,
|
|
899
|
+
S < 3 && (i(
|
|
900
|
+
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + F + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
901
|
+
), x[l2] = !0, S++);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
return I[D] == null ? N ? I[D] === null ? new g("The " +
|
|
904
|
+
return I[D] == null ? N ? I[D] === null ? new g("The " + W + " `" + q + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new g("The " + W + " `" + q + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : C(I, D, F, W, q);
|
|
905
905
|
}
|
|
906
|
-
var
|
|
907
|
-
return
|
|
906
|
+
var P = b.bind(null, !1);
|
|
907
|
+
return P.isRequired = b.bind(null, !0), P;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
function x(
|
|
911
|
-
var
|
|
912
|
-
if (
|
|
913
|
-
var q = A(
|
|
909
|
+
function k(C) {
|
|
910
|
+
function x(S, b, P, N, I, D) {
|
|
911
|
+
var F = S[b], W = E(F);
|
|
912
|
+
if (W !== C) {
|
|
913
|
+
var q = A(F);
|
|
914
914
|
return new g(
|
|
915
|
-
"Invalid " + N + " `" + I + "` of type " + ("`" + q + "` supplied to `" +
|
|
915
|
+
"Invalid " + N + " `" + I + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected ") + ("`" + C + "`."),
|
|
916
916
|
{ expectedType: C }
|
|
917
917
|
);
|
|
918
918
|
}
|
|
@@ -920,20 +920,20 @@ function Ct() {
|
|
|
920
920
|
}
|
|
921
921
|
return v(x);
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function _() {
|
|
924
924
|
return v(s);
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
function x(
|
|
926
|
+
function M(C) {
|
|
927
|
+
function x(S, b, P, N, I) {
|
|
928
928
|
if (typeof C != "function")
|
|
929
|
-
return new g("Property `" + I + "` of component `" +
|
|
930
|
-
var D =
|
|
929
|
+
return new g("Property `" + I + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
930
|
+
var D = S[b];
|
|
931
931
|
if (!Array.isArray(D)) {
|
|
932
|
-
var
|
|
933
|
-
return new g("Invalid " + N + " `" + I + "` of type " + ("`" +
|
|
932
|
+
var F = E(D);
|
|
933
|
+
return new g("Invalid " + N + " `" + I + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected an array."));
|
|
934
934
|
}
|
|
935
|
-
for (var
|
|
936
|
-
var q = C(D,
|
|
935
|
+
for (var W = 0; W < D.length; W++) {
|
|
936
|
+
var q = C(D, W, P, N, I + "[" + W + "]", r);
|
|
937
937
|
if (q instanceof Error)
|
|
938
938
|
return q;
|
|
939
939
|
}
|
|
@@ -941,65 +941,65 @@ function Ct() {
|
|
|
941
941
|
}
|
|
942
942
|
return v(x);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
function C(x,
|
|
946
|
-
var I = x[
|
|
944
|
+
function O() {
|
|
945
|
+
function C(x, S, b, P, N) {
|
|
946
|
+
var I = x[S];
|
|
947
947
|
if (!l(I)) {
|
|
948
|
-
var D =
|
|
949
|
-
return new g("Invalid " +
|
|
948
|
+
var D = E(I);
|
|
949
|
+
return new g("Invalid " + P + " `" + N + "` of type " + ("`" + D + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
950
950
|
}
|
|
951
951
|
return null;
|
|
952
952
|
}
|
|
953
953
|
return v(C);
|
|
954
954
|
}
|
|
955
955
|
function w() {
|
|
956
|
-
function C(x,
|
|
957
|
-
var I = x[
|
|
956
|
+
function C(x, S, b, P, N) {
|
|
957
|
+
var I = x[S];
|
|
958
958
|
if (!e.isValidElementType(I)) {
|
|
959
|
-
var D =
|
|
960
|
-
return new g("Invalid " +
|
|
959
|
+
var D = E(I);
|
|
960
|
+
return new g("Invalid " + P + " `" + N + "` of type " + ("`" + D + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
961
961
|
}
|
|
962
962
|
return null;
|
|
963
963
|
}
|
|
964
964
|
return v(C);
|
|
965
965
|
}
|
|
966
966
|
function $(C) {
|
|
967
|
-
function x(
|
|
968
|
-
if (!(
|
|
969
|
-
var D = C.name || h,
|
|
970
|
-
return new g("Invalid " + N + " `" + I + "` of type " + ("`" +
|
|
967
|
+
function x(S, b, P, N, I) {
|
|
968
|
+
if (!(S[b] instanceof C)) {
|
|
969
|
+
var D = C.name || h, F = B(S[b]);
|
|
970
|
+
return new g("Invalid " + N + " `" + I + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected ") + ("instance of `" + D + "`."));
|
|
971
971
|
}
|
|
972
972
|
return null;
|
|
973
973
|
}
|
|
974
974
|
return v(x);
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function Z(C) {
|
|
977
977
|
if (!Array.isArray(C))
|
|
978
978
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
979
979
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
980
980
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
981
|
-
function x(
|
|
982
|
-
for (var D =
|
|
983
|
-
if (p(D, C[
|
|
981
|
+
function x(S, b, P, N, I) {
|
|
982
|
+
for (var D = S[b], F = 0; F < C.length; F++)
|
|
983
|
+
if (p(D, C[F]))
|
|
984
984
|
return null;
|
|
985
|
-
var
|
|
986
|
-
var l2 = A(
|
|
987
|
-
return l2 === "symbol" ? String(
|
|
985
|
+
var W = JSON.stringify(C, function(t2, T) {
|
|
986
|
+
var l2 = A(T);
|
|
987
|
+
return l2 === "symbol" ? String(T) : T;
|
|
988
988
|
});
|
|
989
|
-
return new g("Invalid " + N + " `" + I + "` of value `" + String(D) + "` " + ("supplied to `" +
|
|
989
|
+
return new g("Invalid " + N + " `" + I + "` of value `" + String(D) + "` " + ("supplied to `" + P + "`, expected one of " + W + "."));
|
|
990
990
|
}
|
|
991
991
|
return v(x);
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
function x(
|
|
993
|
+
function K(C) {
|
|
994
|
+
function x(S, b, P, N, I) {
|
|
995
995
|
if (typeof C != "function")
|
|
996
|
-
return new g("Property `" + I + "` of component `" +
|
|
997
|
-
var D =
|
|
998
|
-
if (
|
|
999
|
-
return new g("Invalid " + N + " `" + I + "` of type " + ("`" +
|
|
1000
|
-
for (var
|
|
1001
|
-
if (n(D,
|
|
1002
|
-
var q = C(D,
|
|
996
|
+
return new g("Property `" + I + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
997
|
+
var D = S[b], F = E(D);
|
|
998
|
+
if (F !== "object")
|
|
999
|
+
return new g("Invalid " + N + " `" + I + "` of type " + ("`" + F + "` supplied to `" + P + "`, expected an object."));
|
|
1000
|
+
for (var W in D)
|
|
1001
|
+
if (n(D, W)) {
|
|
1002
|
+
var q = C(D, W, P, N, I + "." + W, r);
|
|
1003
1003
|
if (q instanceof Error)
|
|
1004
1004
|
return q;
|
|
1005
1005
|
}
|
|
@@ -1007,49 +1007,49 @@ function Ct() {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return v(x);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function U(C) {
|
|
1011
1011
|
if (!Array.isArray(C))
|
|
1012
1012
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
1013
1013
|
for (var x = 0; x < C.length; x++) {
|
|
1014
|
-
var
|
|
1015
|
-
if (typeof
|
|
1014
|
+
var S = C[x];
|
|
1015
|
+
if (typeof S != "function")
|
|
1016
1016
|
return i(
|
|
1017
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(
|
|
1017
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(S) + " at index " + x + "."
|
|
1018
1018
|
), s;
|
|
1019
1019
|
}
|
|
1020
|
-
function b(
|
|
1021
|
-
for (var
|
|
1022
|
-
var t2 = C[q],
|
|
1023
|
-
if (
|
|
1020
|
+
function b(P, N, I, D, F) {
|
|
1021
|
+
for (var W = [], q = 0; q < C.length; q++) {
|
|
1022
|
+
var t2 = C[q], T = t2(P, N, I, D, F, r);
|
|
1023
|
+
if (T == null)
|
|
1024
1024
|
return null;
|
|
1025
|
-
|
|
1025
|
+
T.data && n(T.data, "expectedType") && W.push(T.data.expectedType);
|
|
1026
1026
|
}
|
|
1027
|
-
var l2 =
|
|
1028
|
-
return new g("Invalid " + D + " `" +
|
|
1027
|
+
var l2 = W.length > 0 ? ", expected one of type [" + W.join(", ") + "]" : "";
|
|
1028
|
+
return new g("Invalid " + D + " `" + F + "` supplied to " + ("`" + I + "`" + l2 + "."));
|
|
1029
1029
|
}
|
|
1030
1030
|
return v(b);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
function C(x,
|
|
1034
|
-
return
|
|
1032
|
+
function V() {
|
|
1033
|
+
function C(x, S, b, P, N) {
|
|
1034
|
+
return R(x[S]) ? null : new g("Invalid " + P + " `" + N + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
1035
1035
|
}
|
|
1036
1036
|
return v(C);
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function H(C, x, S, b, P) {
|
|
1039
1039
|
return new g(
|
|
1040
|
-
(C || "React class") + ": " + x + " type `" +
|
|
1040
|
+
(C || "React class") + ": " + x + " type `" + S + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
1041
1041
|
);
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
function x(
|
|
1045
|
-
var D =
|
|
1046
|
-
if (
|
|
1047
|
-
return new g("Invalid " + N + " `" + I + "` of type `" +
|
|
1048
|
-
for (var
|
|
1049
|
-
var q = C[
|
|
1043
|
+
function z(C) {
|
|
1044
|
+
function x(S, b, P, N, I) {
|
|
1045
|
+
var D = S[b], F = E(D);
|
|
1046
|
+
if (F !== "object")
|
|
1047
|
+
return new g("Invalid " + N + " `" + I + "` of type `" + F + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1048
|
+
for (var W in C) {
|
|
1049
|
+
var q = C[W];
|
|
1050
1050
|
if (typeof q != "function")
|
|
1051
|
-
return
|
|
1052
|
-
var t2 = q(D,
|
|
1051
|
+
return H(P, N, I, W, A(q));
|
|
1052
|
+
var t2 = q(D, W, P, N, I + "." + W, r);
|
|
1053
1053
|
if (t2)
|
|
1054
1054
|
return t2;
|
|
1055
1055
|
}
|
|
@@ -1057,30 +1057,30 @@ function Ct() {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
return v(x);
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1061
|
-
function x(
|
|
1062
|
-
var D =
|
|
1063
|
-
if (
|
|
1064
|
-
return new g("Invalid " + N + " `" + I + "` of type `" +
|
|
1065
|
-
var
|
|
1066
|
-
for (var q in
|
|
1060
|
+
function J(C) {
|
|
1061
|
+
function x(S, b, P, N, I) {
|
|
1062
|
+
var D = S[b], F = E(D);
|
|
1063
|
+
if (F !== "object")
|
|
1064
|
+
return new g("Invalid " + N + " `" + I + "` of type `" + F + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
1065
|
+
var W = t({}, S[b], C);
|
|
1066
|
+
for (var q in W) {
|
|
1067
1067
|
var t2 = C[q];
|
|
1068
1068
|
if (n(C, q) && typeof t2 != "function")
|
|
1069
|
-
return
|
|
1069
|
+
return H(P, N, I, q, A(t2));
|
|
1070
1070
|
if (!t2)
|
|
1071
1071
|
return new g(
|
|
1072
|
-
"Invalid " + N + " `" + I + "` key `" + q + "` supplied to `" +
|
|
1072
|
+
"Invalid " + N + " `" + I + "` key `" + q + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(S[b], null, " ") + `
|
|
1073
1073
|
Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
1074
1074
|
);
|
|
1075
|
-
var
|
|
1076
|
-
if (
|
|
1077
|
-
return
|
|
1075
|
+
var T = t2(D, q, P, N, I + "." + q, r);
|
|
1076
|
+
if (T)
|
|
1077
|
+
return T;
|
|
1078
1078
|
}
|
|
1079
1079
|
return null;
|
|
1080
1080
|
}
|
|
1081
1081
|
return v(x);
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function R(C) {
|
|
1084
1084
|
switch (typeof C) {
|
|
1085
1085
|
case "number":
|
|
1086
1086
|
case "string":
|
|
@@ -1090,20 +1090,20 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
1090
1090
|
return !C;
|
|
1091
1091
|
case "object":
|
|
1092
1092
|
if (Array.isArray(C))
|
|
1093
|
-
return C.every(
|
|
1093
|
+
return C.every(R);
|
|
1094
1094
|
if (C === null || l(C))
|
|
1095
1095
|
return !0;
|
|
1096
1096
|
var x = d(C);
|
|
1097
1097
|
if (x) {
|
|
1098
|
-
var
|
|
1098
|
+
var S = x.call(C), b;
|
|
1099
1099
|
if (x !== C.entries) {
|
|
1100
|
-
for (; !(b =
|
|
1101
|
-
if (!
|
|
1100
|
+
for (; !(b = S.next()).done; )
|
|
1101
|
+
if (!R(b.value))
|
|
1102
1102
|
return !1;
|
|
1103
1103
|
} else
|
|
1104
|
-
for (; !(b =
|
|
1105
|
-
var
|
|
1106
|
-
if (
|
|
1104
|
+
for (; !(b = S.next()).done; ) {
|
|
1105
|
+
var P = b.value;
|
|
1106
|
+
if (P && !R(P[1]))
|
|
1107
1107
|
return !1;
|
|
1108
1108
|
}
|
|
1109
1109
|
} else
|
|
@@ -1113,17 +1113,17 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
1113
1113
|
return !1;
|
|
1114
1114
|
}
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function j(C, x) {
|
|
1117
1117
|
return C === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function E(C) {
|
|
1120
1120
|
var x = typeof C;
|
|
1121
|
-
return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" :
|
|
1121
|
+
return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : j(x, C) ? "symbol" : x;
|
|
1122
1122
|
}
|
|
1123
1123
|
function A(C) {
|
|
1124
1124
|
if (typeof C > "u" || C === null)
|
|
1125
1125
|
return "" + C;
|
|
1126
|
-
var x =
|
|
1126
|
+
var x = E(C);
|
|
1127
1127
|
if (x === "object") {
|
|
1128
1128
|
if (C instanceof Date)
|
|
1129
1129
|
return "date";
|
|
@@ -1237,11 +1237,11 @@ var a2 = /* @__PURE__ */ ht(), pt = function(t) {
|
|
|
1237
1237
|
return r.renderSVG = function() {
|
|
1238
1238
|
var o = this;
|
|
1239
1239
|
if (this.reactWrapper instanceof pt(this.reactWrapper).Node) {
|
|
1240
|
-
var i = this.props, s = i.desc, l = i.evalScripts, a = i.httpRequestWithCredentials, c = i.renumerateIRIElements, u = i.src, d = i.title, h = i.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, g = this.props.afterInjection, v = this.props.wrapper,
|
|
1241
|
-
v === "svg" ? (
|
|
1242
|
-
var
|
|
1240
|
+
var i = this.props, s = i.desc, l = i.evalScripts, a = i.httpRequestWithCredentials, c = i.renumerateIRIElements, u = i.src, d = i.title, h = i.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, g = this.props.afterInjection, v = this.props.wrapper, k, _;
|
|
1241
|
+
v === "svg" ? (k = document.createElementNS(O0, v), k.setAttribute("xmlns", O0), k.setAttribute("xmlns:xlink", Pe), _ = document.createElementNS(O0, v)) : (k = document.createElement(v), _ = document.createElement(v)), k.appendChild(_), _.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(k);
|
|
1242
|
+
var M = function(Z) {
|
|
1243
1243
|
if (o.removeSVG(), !o._isMounted) {
|
|
1244
|
-
m(
|
|
1244
|
+
m(Z);
|
|
1245
1245
|
return;
|
|
1246
1246
|
}
|
|
1247
1247
|
o.setState(function() {
|
|
@@ -1250,11 +1250,11 @@ var a2 = /* @__PURE__ */ ht(), pt = function(t) {
|
|
|
1250
1250
|
isLoading: !1
|
|
1251
1251
|
};
|
|
1252
1252
|
}, function() {
|
|
1253
|
-
m(
|
|
1253
|
+
m(Z);
|
|
1254
1254
|
});
|
|
1255
|
-
},
|
|
1256
|
-
if (
|
|
1257
|
-
|
|
1255
|
+
}, O = function(Z, K) {
|
|
1256
|
+
if (Z) {
|
|
1257
|
+
M(Z);
|
|
1258
1258
|
return;
|
|
1259
1259
|
}
|
|
1260
1260
|
o._isMounted && o.setState(function() {
|
|
@@ -1263,32 +1263,32 @@ var a2 = /* @__PURE__ */ ht(), pt = function(t) {
|
|
|
1263
1263
|
};
|
|
1264
1264
|
}, function() {
|
|
1265
1265
|
try {
|
|
1266
|
-
g(
|
|
1267
|
-
} catch (
|
|
1268
|
-
|
|
1266
|
+
g(K);
|
|
1267
|
+
} catch (U) {
|
|
1268
|
+
M(U);
|
|
1269
1269
|
}
|
|
1270
1270
|
});
|
|
1271
|
-
}, w = function(
|
|
1272
|
-
if (
|
|
1273
|
-
var
|
|
1274
|
-
|
|
1275
|
-
var
|
|
1276
|
-
|
|
1271
|
+
}, w = function(Z) {
|
|
1272
|
+
if (Z.setAttribute("role", "img"), s) {
|
|
1273
|
+
var K = Z.querySelector(":scope > desc");
|
|
1274
|
+
K && Z.removeChild(K);
|
|
1275
|
+
var U = document.createElement("desc");
|
|
1276
|
+
U.innerHTML = s, Z.prepend(U);
|
|
1277
1277
|
}
|
|
1278
1278
|
if (d) {
|
|
1279
|
-
var
|
|
1280
|
-
|
|
1281
|
-
var
|
|
1282
|
-
|
|
1279
|
+
var V = Z.querySelector(":scope > title");
|
|
1280
|
+
V && Z.removeChild(V);
|
|
1281
|
+
var H = document.createElement("title");
|
|
1282
|
+
H.innerHTML = d, Z.prepend(H);
|
|
1283
1283
|
}
|
|
1284
1284
|
try {
|
|
1285
|
-
p(
|
|
1286
|
-
} catch (
|
|
1287
|
-
|
|
1285
|
+
p(Z);
|
|
1286
|
+
} catch (z) {
|
|
1287
|
+
M(z);
|
|
1288
1288
|
}
|
|
1289
1289
|
};
|
|
1290
|
-
lt(
|
|
1291
|
-
afterEach:
|
|
1290
|
+
lt(_, {
|
|
1291
|
+
afterEach: O,
|
|
1292
1292
|
beforeEach: w,
|
|
1293
1293
|
cacheRequests: h,
|
|
1294
1294
|
evalScripts: l,
|
|
@@ -1552,86 +1552,99 @@ const h9 = {
|
|
|
1552
1552
|
function L1(...e) {
|
|
1553
1553
|
return e.filter(Boolean).join(" ");
|
|
1554
1554
|
}
|
|
1555
|
-
const h0 = ({
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}) => {
|
|
1571
|
-
const p = t ?? (e === "primary" ? "square" : null), g = a ?? l, [v, M] = G(!1), E = d !== void 0 ? d : v, k = {
|
|
1555
|
+
const h0 = (e) => {
|
|
1556
|
+
const {
|
|
1557
|
+
variant: t = "primary",
|
|
1558
|
+
iconLeft: r = null,
|
|
1559
|
+
iconRight: n = null,
|
|
1560
|
+
iconLeftVariant: o = "outline",
|
|
1561
|
+
iconRightVariant: i = "outline",
|
|
1562
|
+
iconOnly: s = !1,
|
|
1563
|
+
children: l,
|
|
1564
|
+
label: a,
|
|
1565
|
+
className: c,
|
|
1566
|
+
isActive: u,
|
|
1567
|
+
onToggle: d,
|
|
1568
|
+
...h
|
|
1569
|
+
} = e, m = r ?? (t === "primary" ? "square" : null), p = a ?? l, [g, v] = G(!1), k = u !== void 0 ? u : g, _ = {
|
|
1572
1570
|
primary: "px-xs py-xs gap-x-xxs text-meta-bold bg-background-brand text-text-inverse hover:bg-background-brand-subtle disabled:bg-background-disabled group",
|
|
1573
1571
|
secondary: "px-xs py-xs gap-x-xs text-meta-regular bg-background-default text-text-brand border-s border-border-brand hover:bg-background-brand-subtlest disabled:text-text-disabled disabled:border-border-disabled disabled:hover:bg-background-default",
|
|
1574
1572
|
ghost: "px-xs py-xs gap-x-xs text-meta-bold text-text-brand hover:text-text-brand-subtle disabled:text-text-disabled",
|
|
1575
1573
|
dark: "px-xs py-xs gap-x-xxs text-meta-bold bg-background-dark text-text-inverse hover:bg-background-dark-subtle disabled:bg-background-disabled",
|
|
1576
1574
|
pill: "px-s py-xs gap-x-xs text-meta-regular bg-background-default text-text-subtle border-s border-accent-gray-subtle rounded-pill hover:bg-background-accent-gray-subtle hover:border-accent-gray-subtle active:bg-background-accent-gray-subtle active:border-accent-gray disabled:hover:bg-background-default disabled:hover:border-accent-gray-subtle"
|
|
1577
|
-
},
|
|
1575
|
+
}, M = {
|
|
1578
1576
|
primary: "inverse",
|
|
1579
1577
|
secondary: "brand",
|
|
1580
1578
|
ghost: "brand",
|
|
1581
1579
|
dark: "inverse",
|
|
1582
1580
|
pill: "gray"
|
|
1583
|
-
}[
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1581
|
+
}, O = "disabled" in h ? h.disabled : !1, w = O && t === "secondary" ? "gray" : M[t], $ = () => t === "pill" && k ? "fill" : o, Z = n === "caret-down" || n === "caret-up", K = m === "square", U = L1(
|
|
1582
|
+
// Base styles for all buttons
|
|
1583
|
+
"inline-flex items-center transition-colors",
|
|
1584
|
+
// Padding
|
|
1585
|
+
s && "!p-xs",
|
|
1586
|
+
// Variant specific styles
|
|
1587
|
+
_[t],
|
|
1588
|
+
// Active state for pill
|
|
1589
|
+
t === "pill" && k && "border-accent-gray",
|
|
1590
|
+
// Disabled state
|
|
1591
|
+
O && "cursor-not-allowed",
|
|
1592
|
+
// Custom classes passed via props
|
|
1593
|
+
c
|
|
1594
|
+
), V = /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
1595
|
+
m && /* @__PURE__ */ f.jsx(
|
|
1596
|
+
"span",
|
|
1597
|
+
{
|
|
1598
|
+
className: L1(
|
|
1599
|
+
"inline-flex transition-transform duration-300",
|
|
1600
|
+
t === "primary" && K && !O && "group-hover:rotate-90"
|
|
1601
|
+
),
|
|
1602
|
+
children: /* @__PURE__ */ f.jsx(h2, { name: m, size: "s", color: w, variant: $() })
|
|
1603
|
+
}
|
|
1604
|
+
),
|
|
1605
|
+
!s && p,
|
|
1606
|
+
n && /* @__PURE__ */ f.jsx(
|
|
1607
|
+
"span",
|
|
1608
|
+
{
|
|
1609
|
+
className: L1(
|
|
1610
|
+
"inline-flex transition-transform duration-300",
|
|
1611
|
+
t === "pill" && Z && k && "rotate-180"
|
|
1612
|
+
),
|
|
1613
|
+
children: /* @__PURE__ */ f.jsx(h2, { name: n, size: "s", color: w, variant: i })
|
|
1614
|
+
}
|
|
1615
|
+
)
|
|
1616
|
+
] }), H = (j) => {
|
|
1617
|
+
if (t === "pill") {
|
|
1618
|
+
const E = !k;
|
|
1619
|
+
u === void 0 && v(E), d == null || d(E);
|
|
1587
1620
|
}
|
|
1588
|
-
|
|
1621
|
+
"onClick" in h && h.onClick && h.onClick(j);
|
|
1589
1622
|
};
|
|
1590
|
-
|
|
1623
|
+
if ("href" in h && h.href) {
|
|
1624
|
+
const j = h, { href: E, onClick: A, ...L } = j;
|
|
1625
|
+
return /* @__PURE__ */ f.jsx(
|
|
1626
|
+
"a",
|
|
1627
|
+
{
|
|
1628
|
+
href: E,
|
|
1629
|
+
className: U,
|
|
1630
|
+
onClick: H,
|
|
1631
|
+
"aria-label": s ? String(p) : void 0,
|
|
1632
|
+
...L,
|
|
1633
|
+
children: V
|
|
1634
|
+
}
|
|
1635
|
+
);
|
|
1636
|
+
}
|
|
1637
|
+
const z = h, { onClick: J, ...R } = z;
|
|
1638
|
+
return /* @__PURE__ */ f.jsx(
|
|
1591
1639
|
"button",
|
|
1592
1640
|
{
|
|
1593
|
-
className:
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
// Active state for pill
|
|
1601
|
-
e === "pill" && E && "border-accent-gray",
|
|
1602
|
-
// Disabled state
|
|
1603
|
-
s && "cursor-not-allowed",
|
|
1604
|
-
// Custom classes passed via props
|
|
1605
|
-
c
|
|
1606
|
-
),
|
|
1607
|
-
disabled: s,
|
|
1608
|
-
onClick: J,
|
|
1609
|
-
"aria-label": i ? String(g) : void 0,
|
|
1610
|
-
"aria-pressed": e === "pill" ? E : void 0,
|
|
1611
|
-
...m,
|
|
1612
|
-
children: [
|
|
1613
|
-
p && /* @__PURE__ */ f.jsx(
|
|
1614
|
-
"span",
|
|
1615
|
-
{
|
|
1616
|
-
className: L1(
|
|
1617
|
-
"inline-flex transition-transform duration-300",
|
|
1618
|
-
e === "primary" && U && !s && "group-hover:rotate-90"
|
|
1619
|
-
),
|
|
1620
|
-
children: /* @__PURE__ */ f.jsx(h2, { name: p, size: "s", color: w, variant: $() })
|
|
1621
|
-
}
|
|
1622
|
-
),
|
|
1623
|
-
!i && g,
|
|
1624
|
-
r && /* @__PURE__ */ f.jsx(
|
|
1625
|
-
"span",
|
|
1626
|
-
{
|
|
1627
|
-
className: L1(
|
|
1628
|
-
"inline-flex transition-transform duration-300",
|
|
1629
|
-
e === "pill" && F && E && "rotate-180"
|
|
1630
|
-
),
|
|
1631
|
-
children: /* @__PURE__ */ f.jsx(h2, { name: r, size: "s", color: w, variant: o })
|
|
1632
|
-
}
|
|
1633
|
-
)
|
|
1634
|
-
]
|
|
1641
|
+
className: U,
|
|
1642
|
+
disabled: O,
|
|
1643
|
+
onClick: H,
|
|
1644
|
+
"aria-label": s ? String(p) : void 0,
|
|
1645
|
+
"aria-pressed": t === "pill" ? k : void 0,
|
|
1646
|
+
...R,
|
|
1647
|
+
children: V
|
|
1635
1648
|
}
|
|
1636
1649
|
);
|
|
1637
1650
|
}, m9 = ({ className: e }) => /* @__PURE__ */ f.jsxs(
|
|
@@ -1800,7 +1813,7 @@ function Q2(e) {
|
|
|
1800
1813
|
}
|
|
1801
1814
|
let n2 = function(e) {
|
|
1802
1815
|
let t = Q2(e);
|
|
1803
|
-
return
|
|
1816
|
+
return Y.useCallback((...r) => t.current(...r), [t]);
|
|
1804
1817
|
}, y9 = E2(void 0);
|
|
1805
1818
|
function b9() {
|
|
1806
1819
|
return y2(y9);
|
|
@@ -1858,8 +1871,8 @@ function T0(e, t = {}, r, n, o) {
|
|
|
1858
1871
|
`)].join(`
|
|
1859
1872
|
`));
|
|
1860
1873
|
} else {
|
|
1861
|
-
let h = u.props, m = h == null ? void 0 : h.className, p = typeof m == "function" ? (...
|
|
1862
|
-
for (let
|
|
1874
|
+
let h = u.props, m = h == null ? void 0 : h.className, p = typeof m == "function" ? (...k) => F1(m(...k), a.className) : F1(m, a.className), g = p ? { className: p } : {}, v = V3(u.props, I2(H1(a, ["ref"])));
|
|
1875
|
+
for (let k in d) k in v && delete d[k];
|
|
1863
1876
|
return B5(u, Object.assign({}, v, d, c, { ref: o(L9(u), c.ref) }, g));
|
|
1864
1877
|
}
|
|
1865
1878
|
return D5(i, Object.assign({}, H1(a, ["ref"]), i !== M2 && c, i !== M2 && d), u);
|
|
@@ -1910,7 +1923,7 @@ function H1(e, t = []) {
|
|
|
1910
1923
|
return r;
|
|
1911
1924
|
}
|
|
1912
1925
|
function L9(e) {
|
|
1913
|
-
return
|
|
1926
|
+
return Y.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
1914
1927
|
}
|
|
1915
1928
|
let _9 = "span";
|
|
1916
1929
|
var U0 = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(U0 || {});
|
|
@@ -1972,7 +1985,7 @@ function T9() {
|
|
|
1972
1985
|
let l = s.slice(), a = l.indexOf(i);
|
|
1973
1986
|
return a !== -1 && l.splice(a, 1), l;
|
|
1974
1987
|
}))), o = C2(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
|
|
1975
|
-
return
|
|
1988
|
+
return Y.createElement(le.Provider, { value: o }, r.children);
|
|
1976
1989
|
}, [t])];
|
|
1977
1990
|
}
|
|
1978
1991
|
let R9 = "p";
|
|
@@ -1987,7 +2000,7 @@ var R3 = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backs
|
|
|
1987
2000
|
let N9 = E2(() => {
|
|
1988
2001
|
});
|
|
1989
2002
|
function Z9({ value: e, children: t }) {
|
|
1990
|
-
return
|
|
2003
|
+
return Y.createElement(N9.Provider, { value: e }, t);
|
|
1991
2004
|
}
|
|
1992
2005
|
let A3 = class extends Map {
|
|
1993
2006
|
constructor(t) {
|
|
@@ -2097,7 +2110,7 @@ var Be;
|
|
|
2097
2110
|
function G9() {
|
|
2098
2111
|
if (Be) return S1;
|
|
2099
2112
|
Be = 1;
|
|
2100
|
-
var e =
|
|
2113
|
+
var e = Y;
|
|
2101
2114
|
function t(a, c) {
|
|
2102
2115
|
return a === c && (a !== 0 || 1 / a === 1 / c) || a !== a && c !== c;
|
|
2103
2116
|
}
|
|
@@ -2111,25 +2124,25 @@ function G9() {
|
|
|
2111
2124
|
m = s(
|
|
2112
2125
|
function() {
|
|
2113
2126
|
function v(w) {
|
|
2114
|
-
if (!
|
|
2115
|
-
if (
|
|
2127
|
+
if (!k) {
|
|
2128
|
+
if (k = !0, _ = w, w = d(w), h !== void 0 && p.hasValue) {
|
|
2116
2129
|
var $ = p.value;
|
|
2117
2130
|
if (h($, w))
|
|
2118
|
-
return
|
|
2131
|
+
return M = $;
|
|
2119
2132
|
}
|
|
2120
|
-
return
|
|
2133
|
+
return M = w;
|
|
2121
2134
|
}
|
|
2122
|
-
if ($ =
|
|
2123
|
-
var
|
|
2124
|
-
return h !== void 0 && h($,
|
|
2135
|
+
if ($ = M, r(_, w)) return $;
|
|
2136
|
+
var Z = d(w);
|
|
2137
|
+
return h !== void 0 && h($, Z) ? (_ = w, $) : (_ = w, M = Z);
|
|
2125
2138
|
}
|
|
2126
|
-
var
|
|
2139
|
+
var k = !1, _, M, O = u === void 0 ? null : u;
|
|
2127
2140
|
return [
|
|
2128
2141
|
function() {
|
|
2129
2142
|
return v(c());
|
|
2130
2143
|
},
|
|
2131
|
-
|
|
2132
|
-
return v(
|
|
2144
|
+
O === null ? void 0 : function() {
|
|
2145
|
+
return v(O());
|
|
2133
2146
|
}
|
|
2134
2147
|
];
|
|
2135
2148
|
},
|
|
@@ -2161,7 +2174,7 @@ function X9() {
|
|
|
2161
2174
|
return a === c && (a !== 0 || 1 / a === 1 / c) || a !== a && c !== c;
|
|
2162
2175
|
}
|
|
2163
2176
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2164
|
-
var t =
|
|
2177
|
+
var t = Y, r = typeof Object.is == "function" ? Object.is : e, n = t.useSyncExternalStore, o = t.useRef, i = t.useEffect, s = t.useMemo, l = t.useDebugValue;
|
|
2165
2178
|
O1.useSyncExternalStoreWithSelector = function(a, c, u, d, h) {
|
|
2166
2179
|
var m = o(null);
|
|
2167
2180
|
if (m.current === null) {
|
|
@@ -2171,26 +2184,26 @@ function X9() {
|
|
|
2171
2184
|
m = s(
|
|
2172
2185
|
function() {
|
|
2173
2186
|
function v(w) {
|
|
2174
|
-
if (!
|
|
2175
|
-
if (
|
|
2187
|
+
if (!k) {
|
|
2188
|
+
if (k = !0, _ = w, w = d(w), h !== void 0 && p.hasValue) {
|
|
2176
2189
|
var $ = p.value;
|
|
2177
2190
|
if (h($, w))
|
|
2178
|
-
return
|
|
2191
|
+
return M = $;
|
|
2179
2192
|
}
|
|
2180
|
-
return
|
|
2193
|
+
return M = w;
|
|
2181
2194
|
}
|
|
2182
|
-
if ($ =
|
|
2195
|
+
if ($ = M, r(_, w))
|
|
2183
2196
|
return $;
|
|
2184
|
-
var
|
|
2185
|
-
return h !== void 0 && h($,
|
|
2197
|
+
var Z = d(w);
|
|
2198
|
+
return h !== void 0 && h($, Z) ? (_ = w, $) : (_ = w, M = Z);
|
|
2186
2199
|
}
|
|
2187
|
-
var
|
|
2200
|
+
var k = !1, _, M, O = u === void 0 ? null : u;
|
|
2188
2201
|
return [
|
|
2189
2202
|
function() {
|
|
2190
2203
|
return v(c());
|
|
2191
2204
|
},
|
|
2192
|
-
|
|
2193
|
-
return v(
|
|
2205
|
+
O === null ? void 0 : function() {
|
|
2206
|
+
return v(O());
|
|
2194
2207
|
}
|
|
2195
2208
|
];
|
|
2196
2209
|
},
|
|
@@ -2236,7 +2249,7 @@ function Ue(e) {
|
|
|
2236
2249
|
let n = D1.get(e);
|
|
2237
2250
|
n && (n["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", n["aria-hidden"]), e.inert = n.inert, D1.delete(e));
|
|
2238
2251
|
}
|
|
2239
|
-
function
|
|
2252
|
+
function er(e, { allowed: t, disallowed: r } = {}) {
|
|
2240
2253
|
let n = y0(e, "inert-others");
|
|
2241
2254
|
d2(() => {
|
|
2242
2255
|
var o, i;
|
|
@@ -2257,7 +2270,7 @@ function e7(e, { allowed: t, disallowed: r } = {}) {
|
|
|
2257
2270
|
return s.dispose;
|
|
2258
2271
|
}, [n, t, r]);
|
|
2259
2272
|
}
|
|
2260
|
-
function
|
|
2273
|
+
function tr(e, t, r) {
|
|
2261
2274
|
let n = Q2((o) => {
|
|
2262
2275
|
let i = o.getBoundingClientRect();
|
|
2263
2276
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && r();
|
|
@@ -2278,16 +2291,16 @@ function t7(e, t, r) {
|
|
|
2278
2291
|
return () => i.dispose();
|
|
2279
2292
|
}, [t, n, e]);
|
|
2280
2293
|
}
|
|
2281
|
-
let z0 = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","),
|
|
2282
|
-
var T2 = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(T2 || {}), I1 = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(I1 || {}),
|
|
2283
|
-
function
|
|
2294
|
+
let z0 = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), rr = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
2295
|
+
var T2 = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(T2 || {}), I1 = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(I1 || {}), nr = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(nr || {});
|
|
2296
|
+
function or(e = document.body) {
|
|
2284
2297
|
return e == null ? [] : Array.from(e.querySelectorAll(z0)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2285
2298
|
}
|
|
2286
|
-
function
|
|
2287
|
-
return e == null ? [] : Array.from(e.querySelectorAll(
|
|
2299
|
+
function ir(e = document.body) {
|
|
2300
|
+
return e == null ? [] : Array.from(e.querySelectorAll(rr)).sort((t, r) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2288
2301
|
}
|
|
2289
2302
|
var B3 = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(B3 || {});
|
|
2290
|
-
function
|
|
2303
|
+
function sr(e, t = 0) {
|
|
2291
2304
|
var r;
|
|
2292
2305
|
return e === ((r = Q0(e)) == null ? void 0 : r.body) ? !1 : P2(t, { 0() {
|
|
2293
2306
|
return e.matches(z0);
|
|
@@ -2300,7 +2313,7 @@ function s7(e, t = 0) {
|
|
|
2300
2313
|
return !1;
|
|
2301
2314
|
} });
|
|
2302
2315
|
}
|
|
2303
|
-
var
|
|
2316
|
+
var lr = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(lr || {});
|
|
2304
2317
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
2305
2318
|
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2306
2319
|
}, !0), document.addEventListener("click", (e) => {
|
|
@@ -2309,12 +2322,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
2309
2322
|
function A2(e) {
|
|
2310
2323
|
e == null || e.focus({ preventScroll: !0 });
|
|
2311
2324
|
}
|
|
2312
|
-
let
|
|
2313
|
-
function
|
|
2325
|
+
let ar = ["textarea", "input"].join(",");
|
|
2326
|
+
function cr(e) {
|
|
2314
2327
|
var t, r;
|
|
2315
|
-
return (r = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e,
|
|
2328
|
+
return (r = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, ar)) != null ? r : !1;
|
|
2316
2329
|
}
|
|
2317
|
-
function
|
|
2330
|
+
function ur(e, t = (r) => r) {
|
|
2318
2331
|
return e.slice().sort((r, n) => {
|
|
2319
2332
|
let o = t(r), i = t(n);
|
|
2320
2333
|
if (o === null || i === null) return 0;
|
|
@@ -2323,7 +2336,7 @@ function u7(e, t = (r) => r) {
|
|
|
2323
2336
|
});
|
|
2324
2337
|
}
|
|
2325
2338
|
function f0(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] } = {}) {
|
|
2326
|
-
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, s = Array.isArray(e) ? r ?
|
|
2339
|
+
let i = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, s = Array.isArray(e) ? r ? ur(e) : e : t & 64 ? ir(e) : or(e);
|
|
2327
2340
|
o.length > 0 && s.length > 1 && (s = s.filter((m) => !o.some((p) => p != null && "current" in p ? (p == null ? void 0 : p.current) === m : p === m))), n = n ?? i.activeElement;
|
|
2328
2341
|
let l = (() => {
|
|
2329
2342
|
if (t & 5) return 1;
|
|
@@ -2346,16 +2359,16 @@ function f0(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: o = [] }
|
|
|
2346
2359
|
}
|
|
2347
2360
|
h = s[m], h == null || h.focus(c), u += l;
|
|
2348
2361
|
} while (h !== i.activeElement);
|
|
2349
|
-
return t & 6 &&
|
|
2362
|
+
return t & 6 && cr(h) && h.select(), 2;
|
|
2350
2363
|
}
|
|
2351
2364
|
function D3() {
|
|
2352
2365
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2353
2366
|
}
|
|
2354
|
-
function
|
|
2367
|
+
function dr() {
|
|
2355
2368
|
return /Android/gi.test(window.navigator.userAgent);
|
|
2356
2369
|
}
|
|
2357
2370
|
function ze() {
|
|
2358
|
-
return D3() ||
|
|
2371
|
+
return D3() || dr();
|
|
2359
2372
|
}
|
|
2360
2373
|
function A0(e, t, r, n) {
|
|
2361
2374
|
let o = Q2(r);
|
|
@@ -2378,7 +2391,7 @@ function I3(e, t, r, n) {
|
|
|
2378
2391
|
}, [e, t, n]);
|
|
2379
2392
|
}
|
|
2380
2393
|
const We = 30;
|
|
2381
|
-
function
|
|
2394
|
+
function Cr(e, t, r) {
|
|
2382
2395
|
let n = Q2(r), o = s2(function(l, a) {
|
|
2383
2396
|
if (l.defaultPrevented) return;
|
|
2384
2397
|
let c = a(l);
|
|
@@ -2387,7 +2400,7 @@ function C7(e, t, r) {
|
|
|
2387
2400
|
return typeof h == "function" ? d(h()) : Array.isArray(h) || h instanceof Set ? h : [h];
|
|
2388
2401
|
})(t);
|
|
2389
2402
|
for (let d of u) if (d !== null && (d.contains(c) || l.composed && l.composedPath().includes(d))) return;
|
|
2390
|
-
return !
|
|
2403
|
+
return !sr(c, B3.Loose) && c.tabIndex !== -1 && l.preventDefault(), n.current(l, c);
|
|
2391
2404
|
}, [n, t]), i = r2(null);
|
|
2392
2405
|
A0(e, "pointerdown", (l) => {
|
|
2393
2406
|
var a, c;
|
|
@@ -2418,10 +2431,10 @@ function q3(e, t, r, n) {
|
|
|
2418
2431
|
return e.addEventListener(t, i, n), () => e.removeEventListener(t, i, n);
|
|
2419
2432
|
}, [e, t, n]);
|
|
2420
2433
|
}
|
|
2421
|
-
function
|
|
2434
|
+
function fr(e) {
|
|
2422
2435
|
return I5(e.subscribe, e.getSnapshot, e.getSnapshot);
|
|
2423
2436
|
}
|
|
2424
|
-
function
|
|
2437
|
+
function hr(e, t) {
|
|
2425
2438
|
let r = e(), n = /* @__PURE__ */ new Set();
|
|
2426
2439
|
return { getSnapshot() {
|
|
2427
2440
|
return r;
|
|
@@ -2432,7 +2445,7 @@ function h7(e, t) {
|
|
|
2432
2445
|
s && (r = s, n.forEach((l) => l()));
|
|
2433
2446
|
} };
|
|
2434
2447
|
}
|
|
2435
|
-
function
|
|
2448
|
+
function pr() {
|
|
2436
2449
|
let e;
|
|
2437
2450
|
return { before({ doc: t }) {
|
|
2438
2451
|
var r;
|
|
@@ -2443,7 +2456,7 @@ function p7() {
|
|
|
2443
2456
|
r.style(n, "paddingRight", `${i}px`);
|
|
2444
2457
|
} };
|
|
2445
2458
|
}
|
|
2446
|
-
function
|
|
2459
|
+
function mr() {
|
|
2447
2460
|
return D3() ? { before({ doc: e, d: t, meta: r }) {
|
|
2448
2461
|
function n(o) {
|
|
2449
2462
|
return r.containers.flatMap((i) => i()).some((i) => i.contains(o));
|
|
@@ -2486,17 +2499,17 @@ function m7() {
|
|
|
2486
2499
|
});
|
|
2487
2500
|
} } : {};
|
|
2488
2501
|
}
|
|
2489
|
-
function
|
|
2502
|
+
function gr() {
|
|
2490
2503
|
return { before({ doc: e, d: t }) {
|
|
2491
2504
|
t.style(e.documentElement, "overflow", "hidden");
|
|
2492
2505
|
} };
|
|
2493
2506
|
}
|
|
2494
|
-
function
|
|
2507
|
+
function vr(e) {
|
|
2495
2508
|
let t = {};
|
|
2496
2509
|
for (let r of e) Object.assign(t, r(t));
|
|
2497
2510
|
return t;
|
|
2498
2511
|
}
|
|
2499
|
-
let z2 =
|
|
2512
|
+
let z2 = hr(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
2500
2513
|
var r;
|
|
2501
2514
|
let n = (r = this.get(e)) != null ? r : { doc: e, count: 0, d: $2(), meta: /* @__PURE__ */ new Set() };
|
|
2502
2515
|
return n.count++, n.meta.add(t), this.set(e, n), this;
|
|
@@ -2504,7 +2517,7 @@ let z2 = h7(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
|
2504
2517
|
let r = this.get(e);
|
|
2505
2518
|
return r && (r.count--, r.meta.delete(t)), this;
|
|
2506
2519
|
}, SCROLL_PREVENT({ doc: e, d: t, meta: r }) {
|
|
2507
|
-
let n = { doc: e, d: t, meta:
|
|
2520
|
+
let n = { doc: e, d: t, meta: vr(r) }, o = [mr(), pr(), gr()];
|
|
2508
2521
|
o.forEach(({ before: i }) => i == null ? void 0 : i(n)), o.forEach(({ after: i }) => i == null ? void 0 : i(n));
|
|
2509
2522
|
}, SCROLL_ALLOW({ d: e }) {
|
|
2510
2523
|
e.dispose();
|
|
@@ -2519,20 +2532,20 @@ z2.subscribe(() => {
|
|
|
2519
2532
|
(o && !n || !o && n) && z2.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && z2.dispatch("TEARDOWN", r);
|
|
2520
2533
|
}
|
|
2521
2534
|
});
|
|
2522
|
-
function
|
|
2523
|
-
let n =
|
|
2535
|
+
function wr(e, t, r = () => ({ containers: [] })) {
|
|
2536
|
+
let n = fr(z2), o = t ? n.get(t) : void 0, i = o ? o.count > 0 : !1;
|
|
2524
2537
|
return d2(() => {
|
|
2525
2538
|
if (!(!t || !e)) return z2.dispatch("PUSH", t, r), () => z2.dispatch("POP", t, r);
|
|
2526
2539
|
}, [e, t]), i;
|
|
2527
2540
|
}
|
|
2528
|
-
function
|
|
2541
|
+
function xr(e, t, r = () => [document.body]) {
|
|
2529
2542
|
let n = y0(e, "scroll-lock");
|
|
2530
|
-
|
|
2543
|
+
wr(n, t, (o) => {
|
|
2531
2544
|
var i;
|
|
2532
2545
|
return { containers: [...(i = o.containers) != null ? i : [], r] };
|
|
2533
2546
|
});
|
|
2534
2547
|
}
|
|
2535
|
-
function
|
|
2548
|
+
function yr(e = 0) {
|
|
2536
2549
|
let [t, r] = G(e), n = s2((a) => r(a), [t]), o = s2((a) => r((c) => c | a), [t]), i = s2((a) => (t & a) === a, [t]), s = s2((a) => r((c) => c & ~a), [r]), l = s2((a) => r((c) => c ^ a), [r]);
|
|
2537
2550
|
return { flags: t, setFlag: n, addFlag: o, hasFlag: i, removeFlag: s, toggleFlag: l };
|
|
2538
2551
|
}
|
|
@@ -2541,14 +2554,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Ye
|
|
|
2541
2554
|
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(`
|
|
2542
2555
|
`)), [];
|
|
2543
2556
|
});
|
|
2544
|
-
var
|
|
2545
|
-
function
|
|
2557
|
+
var br = ((e) => (e[e.None = 0] = "None", e[e.Closed = 1] = "Closed", e[e.Enter = 2] = "Enter", e[e.Leave = 4] = "Leave", e))(br || {});
|
|
2558
|
+
function kr(e) {
|
|
2546
2559
|
let t = {};
|
|
2547
2560
|
for (let r in e) e[r] === !0 && (t[`data-${r}`] = "");
|
|
2548
2561
|
return t;
|
|
2549
2562
|
}
|
|
2550
|
-
function
|
|
2551
|
-
let [o, i] = G(r), { hasFlag: s, addFlag: l, removeFlag: a } =
|
|
2563
|
+
function Mr(e, t, r, n) {
|
|
2564
|
+
let [o, i] = G(r), { hasFlag: s, addFlag: l, removeFlag: a } = yr(e && o ? 3 : 0), c = r2(!1), u = r2(!1), d = se();
|
|
2552
2565
|
return d2(() => {
|
|
2553
2566
|
var h;
|
|
2554
2567
|
if (e) {
|
|
@@ -2556,7 +2569,7 @@ function M7(e, t, r, n) {
|
|
|
2556
2569
|
r && l(3);
|
|
2557
2570
|
return;
|
|
2558
2571
|
}
|
|
2559
|
-
return (h = n == null ? void 0 : n.start) == null || h.call(n, r),
|
|
2572
|
+
return (h = n == null ? void 0 : n.start) == null || h.call(n, r), Er(t, { inFlight: c, prepare() {
|
|
2560
2573
|
u.current ? u.current = !1 : u.current = c.current, c.current = !0, !u.current && (r ? (l(3), a(4)) : (l(4), a(2)));
|
|
2561
2574
|
}, run() {
|
|
2562
2575
|
u.current ? r ? (a(3), l(4)) : (a(4), l(3)) : r ? a(1) : l(1);
|
|
@@ -2567,15 +2580,15 @@ function M7(e, t, r, n) {
|
|
|
2567
2580
|
}
|
|
2568
2581
|
}, [e, r, t, d]), e ? [o, { closed: s(1), enter: s(2), leave: s(4), transition: s(2) || s(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
2569
2582
|
}
|
|
2570
|
-
function
|
|
2583
|
+
function Er(e, { prepare: t, run: r, done: n, inFlight: o }) {
|
|
2571
2584
|
let i = $2();
|
|
2572
|
-
return
|
|
2585
|
+
return _r(e, { prepare: t, inFlight: o }), i.nextFrame(() => {
|
|
2573
2586
|
r(), i.requestAnimationFrame(() => {
|
|
2574
|
-
i.add(
|
|
2587
|
+
i.add(Lr(e, n));
|
|
2575
2588
|
});
|
|
2576
2589
|
}), i.dispose;
|
|
2577
2590
|
}
|
|
2578
|
-
function
|
|
2591
|
+
function Lr(e, t) {
|
|
2579
2592
|
var r, n;
|
|
2580
2593
|
let o = $2();
|
|
2581
2594
|
if (!e) return o.dispose;
|
|
@@ -2588,7 +2601,7 @@ function L7(e, t) {
|
|
|
2588
2601
|
i || t();
|
|
2589
2602
|
}), o.dispose);
|
|
2590
2603
|
}
|
|
2591
|
-
function
|
|
2604
|
+
function _r(e, { inFlight: t, prepare: r }) {
|
|
2592
2605
|
if (t != null && t.current) {
|
|
2593
2606
|
r();
|
|
2594
2607
|
return;
|
|
@@ -2612,20 +2625,20 @@ var k2 = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closin
|
|
|
2612
2625
|
function n1() {
|
|
2613
2626
|
return y2(r1);
|
|
2614
2627
|
}
|
|
2615
|
-
function
|
|
2616
|
-
return
|
|
2628
|
+
function Hr({ value: e, children: t }) {
|
|
2629
|
+
return Y.createElement(r1.Provider, { value: e }, t);
|
|
2617
2630
|
}
|
|
2618
|
-
function
|
|
2619
|
-
return
|
|
2631
|
+
function jr({ children: e }) {
|
|
2632
|
+
return Y.createElement(r1.Provider, { value: null }, e);
|
|
2620
2633
|
}
|
|
2621
|
-
function
|
|
2634
|
+
function Vr(e) {
|
|
2622
2635
|
function t() {
|
|
2623
2636
|
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
2624
2637
|
}
|
|
2625
2638
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
2626
2639
|
}
|
|
2627
2640
|
let Z2 = [];
|
|
2628
|
-
|
|
2641
|
+
Vr(() => {
|
|
2629
2642
|
function e(t) {
|
|
2630
2643
|
if (!B2(t.target) || t.target === document.body || Z2[0] === t.target) return;
|
|
2631
2644
|
let r = t.target;
|
|
@@ -2641,26 +2654,26 @@ function U3(e) {
|
|
|
2641
2654
|
});
|
|
2642
2655
|
}), [t]);
|
|
2643
2656
|
}
|
|
2644
|
-
function
|
|
2657
|
+
function Sr() {
|
|
2645
2658
|
let e = typeof document > "u";
|
|
2646
2659
|
return "useSyncExternalStore" in R2 ? ((t) => t.useSyncExternalStore)(R2)(() => () => {
|
|
2647
2660
|
}, () => !1, () => !e) : !1;
|
|
2648
2661
|
}
|
|
2649
2662
|
function b0() {
|
|
2650
|
-
let e =
|
|
2663
|
+
let e = Sr(), [t, r] = R2.useState(V2.isHandoffComplete);
|
|
2651
2664
|
return t && V2.isHandoffComplete === !1 && r(!1), R2.useEffect(() => {
|
|
2652
2665
|
t !== !0 && r(!0);
|
|
2653
2666
|
}, [t]), R2.useEffect(() => V2.handoff(), []), e ? !1 : t;
|
|
2654
2667
|
}
|
|
2655
2668
|
let z3 = E2(!1);
|
|
2656
|
-
function
|
|
2669
|
+
function Or() {
|
|
2657
2670
|
return y2(z3);
|
|
2658
2671
|
}
|
|
2659
2672
|
function Xe(e) {
|
|
2660
|
-
return
|
|
2673
|
+
return Y.createElement(z3.Provider, { value: e.force }, e.children);
|
|
2661
2674
|
}
|
|
2662
|
-
function
|
|
2663
|
-
let t =
|
|
2675
|
+
function Tr(e) {
|
|
2676
|
+
let t = Or(), r = y2(Y3), [n, o] = G(() => {
|
|
2664
2677
|
var i;
|
|
2665
2678
|
if (!t && r !== null) return (i = r.current) != null ? i : null;
|
|
2666
2679
|
if (V2.isServer) return null;
|
|
@@ -2676,10 +2689,10 @@ function T7(e) {
|
|
|
2676
2689
|
t || r !== null && o(r.current);
|
|
2677
2690
|
}, [r, o, t]), n;
|
|
2678
2691
|
}
|
|
2679
|
-
let W3 = M2,
|
|
2692
|
+
let W3 = M2, Rr = g2(function(e, t) {
|
|
2680
2693
|
let { ownerDocument: r = null, ...n } = e, o = r2(null), i = S2(O9((m) => {
|
|
2681
2694
|
o.current = m;
|
|
2682
|
-
}), t), s = t1(o), l = r ?? s, a =
|
|
2695
|
+
}), t), s = t1(o), l = r ?? s, a = Tr(l), [c] = G(() => {
|
|
2683
2696
|
var m;
|
|
2684
2697
|
return V2.isServer ? null : (m = l == null ? void 0 : l.createElement("div")) != null ? m : null;
|
|
2685
2698
|
}), u = y2(q1), d = b0();
|
|
@@ -2694,33 +2707,33 @@ let W3 = M2, R7 = g2(function(e, t) {
|
|
|
2694
2707
|
let h = b2();
|
|
2695
2708
|
return d ? !a || !c ? null : W5(h({ ourProps: { ref: i }, theirProps: n, slot: {}, defaultTag: W3, name: "Portal" }), c) : null;
|
|
2696
2709
|
});
|
|
2697
|
-
function
|
|
2710
|
+
function Ar(e, t) {
|
|
2698
2711
|
let r = S2(t), { enabled: n = !0, ownerDocument: o, ...i } = e, s = b2();
|
|
2699
|
-
return n ?
|
|
2712
|
+
return n ? Y.createElement(Rr, { ...i, ownerDocument: o, ref: r }) : s({ ourProps: { ref: r }, theirProps: i, slot: {}, defaultTag: W3, name: "Portal" });
|
|
2700
2713
|
}
|
|
2701
|
-
let
|
|
2702
|
-
function $
|
|
2714
|
+
let Pr = M2, Y3 = E2(null);
|
|
2715
|
+
function $r(e, t) {
|
|
2703
2716
|
let { target: r, ...n } = e, o = { ref: S2(t) }, i = b2();
|
|
2704
|
-
return
|
|
2717
|
+
return Y.createElement(Y3.Provider, { value: r }, i({ ourProps: o, theirProps: n, defaultTag: Pr, name: "Popover.Group" }));
|
|
2705
2718
|
}
|
|
2706
2719
|
let q1 = E2(null);
|
|
2707
|
-
function
|
|
2720
|
+
function Nr() {
|
|
2708
2721
|
let e = y2(q1), t = r2([]), r = n2((i) => (t.current.push(i), e && e.register(i), () => n(i))), n = n2((i) => {
|
|
2709
2722
|
let s = t.current.indexOf(i);
|
|
2710
2723
|
s !== -1 && t.current.splice(s, 1), e && e.unregister(i);
|
|
2711
2724
|
}), o = C2(() => ({ register: r, unregister: n, portals: t }), [r, n, t]);
|
|
2712
2725
|
return [t, C2(() => function({ children: i }) {
|
|
2713
|
-
return
|
|
2726
|
+
return Y.createElement(q1.Provider, { value: o }, i);
|
|
2714
2727
|
}, [o])];
|
|
2715
2728
|
}
|
|
2716
|
-
let
|
|
2717
|
-
function
|
|
2729
|
+
let Zr = g2(Ar), G3 = g2($r), Fr = Object.assign(Zr, { Group: G3 });
|
|
2730
|
+
function Br(e, t = typeof document < "u" ? document.defaultView : null, r) {
|
|
2718
2731
|
let n = y0(e, "escape");
|
|
2719
2732
|
q3(t, "keydown", (o) => {
|
|
2720
2733
|
n && (o.defaultPrevented || o.key === R3.Escape && r(o));
|
|
2721
2734
|
});
|
|
2722
2735
|
}
|
|
2723
|
-
function
|
|
2736
|
+
function Dr() {
|
|
2724
2737
|
var e;
|
|
2725
2738
|
let [t] = G(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = G((e = t == null ? void 0 : t.matches) != null ? e : !1);
|
|
2726
2739
|
return d2(() => {
|
|
@@ -2731,7 +2744,7 @@ function D7() {
|
|
|
2731
2744
|
return t.addEventListener("change", o), () => t.removeEventListener("change", o);
|
|
2732
2745
|
}, [t]), r;
|
|
2733
2746
|
}
|
|
2734
|
-
function
|
|
2747
|
+
function Ir({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
|
|
2735
2748
|
let n = t1(r), o = n2(() => {
|
|
2736
2749
|
var i, s;
|
|
2737
2750
|
let l = [];
|
|
@@ -2745,7 +2758,7 @@ function I7({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
|
|
|
2745
2758
|
let X3 = E2(null);
|
|
2746
2759
|
function Je({ children: e, node: t }) {
|
|
2747
2760
|
let [r, n] = G(null), o = J3(t ?? r);
|
|
2748
|
-
return
|
|
2761
|
+
return Y.createElement(X3.Provider, { value: o }, e, o === null && Y.createElement(B1, { features: U0.Hidden, ref: (i) => {
|
|
2749
2762
|
var s, l;
|
|
2750
2763
|
if (i) {
|
|
2751
2764
|
for (let a of (l = (s = Q0(i)) == null ? void 0 : s.querySelectorAll("html > *, body > *")) != null ? l : []) if (a !== document.body && a !== document.head && D2(a) && a != null && a.contains(i)) {
|
|
@@ -2766,7 +2779,7 @@ function ce() {
|
|
|
2766
2779
|
}), []), e;
|
|
2767
2780
|
}
|
|
2768
2781
|
var d0 = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(d0 || {});
|
|
2769
|
-
function
|
|
2782
|
+
function qr() {
|
|
2770
2783
|
let e = r2(0);
|
|
2771
2784
|
return I3(!0, "keydown", (t) => {
|
|
2772
2785
|
t.key === "Tab" && (e.current = t.shiftKey ? 1 : 0);
|
|
@@ -2779,40 +2792,40 @@ function K3(e) {
|
|
|
2779
2792
|
for (let r of e.current) D2(r.current) && t.add(r.current);
|
|
2780
2793
|
return t;
|
|
2781
2794
|
}
|
|
2782
|
-
let
|
|
2795
|
+
let Ur = "div";
|
|
2783
2796
|
var U2 = ((e) => (e[e.None = 0] = "None", e[e.InitialFocus = 1] = "InitialFocus", e[e.TabLock = 2] = "TabLock", e[e.FocusLock = 4] = "FocusLock", e[e.RestoreFocus = 8] = "RestoreFocus", e[e.AutoFocus = 16] = "AutoFocus", e))(U2 || {});
|
|
2784
|
-
function
|
|
2797
|
+
function zr(e, t) {
|
|
2785
2798
|
let r = r2(null), n = S2(r, t), { initialFocus: o, initialFocusFallback: i, containers: s, features: l = 15, ...a } = e;
|
|
2786
2799
|
b0() || (l = 0);
|
|
2787
2800
|
let c = t1(r);
|
|
2788
|
-
|
|
2789
|
-
let u =
|
|
2790
|
-
|
|
2791
|
-
let d =
|
|
2801
|
+
Xr(l, { ownerDocument: c });
|
|
2802
|
+
let u = Jr(l, { ownerDocument: c, container: r, initialFocus: o, initialFocusFallback: i });
|
|
2803
|
+
Kr(l, { ownerDocument: c, container: r, containers: s, previousActiveElement: u });
|
|
2804
|
+
let d = qr(), h = n2((_) => {
|
|
2792
2805
|
if (!G2(r.current)) return;
|
|
2793
|
-
let
|
|
2794
|
-
((
|
|
2806
|
+
let M = r.current;
|
|
2807
|
+
((O) => O())(() => {
|
|
2795
2808
|
P2(d.current, { [d0.Forwards]: () => {
|
|
2796
|
-
f0(
|
|
2809
|
+
f0(M, T2.First, { skipElements: [_.relatedTarget, i] });
|
|
2797
2810
|
}, [d0.Backwards]: () => {
|
|
2798
|
-
f0(
|
|
2811
|
+
f0(M, T2.Last, { skipElements: [_.relatedTarget, i] });
|
|
2799
2812
|
} });
|
|
2800
2813
|
});
|
|
2801
|
-
}), m = y0(!!(l & 2), "focus-trap#tab-lock"), p = se(), g = r2(!1), v = { ref: n, onKeyDown(
|
|
2802
|
-
|
|
2814
|
+
}), m = y0(!!(l & 2), "focus-trap#tab-lock"), p = se(), g = r2(!1), v = { ref: n, onKeyDown(_) {
|
|
2815
|
+
_.key == "Tab" && (g.current = !0, p.requestAnimationFrame(() => {
|
|
2803
2816
|
g.current = !1;
|
|
2804
2817
|
}));
|
|
2805
|
-
}, onBlur(
|
|
2818
|
+
}, onBlur(_) {
|
|
2806
2819
|
if (!(l & 4)) return;
|
|
2807
|
-
let
|
|
2808
|
-
G2(r.current) &&
|
|
2809
|
-
let
|
|
2810
|
-
B2(
|
|
2811
|
-
} },
|
|
2812
|
-
return
|
|
2813
|
-
}
|
|
2814
|
-
let
|
|
2815
|
-
function
|
|
2820
|
+
let M = K3(s);
|
|
2821
|
+
G2(r.current) && M.add(r.current);
|
|
2822
|
+
let O = _.relatedTarget;
|
|
2823
|
+
B2(O) && O.dataset.headlessuiFocusGuard !== "true" && (Q3(M, O) || (g.current ? f0(r.current, P2(d.current, { [d0.Forwards]: () => T2.Next, [d0.Backwards]: () => T2.Previous }) | T2.WrapAround, { relativeTo: _.target }) : B2(_.target) && A2(_.target)));
|
|
2824
|
+
} }, k = b2();
|
|
2825
|
+
return Y.createElement(Y.Fragment, null, m && Y.createElement(B1, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: U0.Focusable }), k({ ourProps: v, theirProps: a, defaultTag: Ur, name: "FocusTrap" }), m && Y.createElement(B1, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: h, features: U0.Focusable }));
|
|
2826
|
+
}
|
|
2827
|
+
let Wr = g2(zr), Yr = Object.assign(Wr, { features: U2 });
|
|
2828
|
+
function Gr(e = !0) {
|
|
2816
2829
|
let t = r2(Z2.slice());
|
|
2817
2830
|
return ae(([r], [n]) => {
|
|
2818
2831
|
n === !0 && r === !1 && e1(() => {
|
|
@@ -2823,15 +2836,15 @@ function G7(e = !0) {
|
|
|
2823
2836
|
return (r = t.current.find((n) => n != null && n.isConnected)) != null ? r : null;
|
|
2824
2837
|
});
|
|
2825
2838
|
}
|
|
2826
|
-
function
|
|
2827
|
-
let r = !!(e & 8), n =
|
|
2839
|
+
function Xr(e, { ownerDocument: t }) {
|
|
2840
|
+
let r = !!(e & 8), n = Gr(r);
|
|
2828
2841
|
ae(() => {
|
|
2829
2842
|
r || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && A2(n());
|
|
2830
2843
|
}, [r]), U3(() => {
|
|
2831
2844
|
r && A2(n());
|
|
2832
2845
|
});
|
|
2833
2846
|
}
|
|
2834
|
-
function
|
|
2847
|
+
function Jr(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFallback: o }) {
|
|
2835
2848
|
let i = r2(null), s = y0(!!(e & 1), "focus-trap#initial-focus"), l = ce();
|
|
2836
2849
|
return ae(() => {
|
|
2837
2850
|
if (e === 0) return;
|
|
@@ -2864,7 +2877,7 @@ function J7(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFa
|
|
|
2864
2877
|
});
|
|
2865
2878
|
}, [o, s, e]), i;
|
|
2866
2879
|
}
|
|
2867
|
-
function
|
|
2880
|
+
function Kr(e, { ownerDocument: t, container: r, containers: n, previousActiveElement: o }) {
|
|
2868
2881
|
let i = ce(), s = !!(e & 4);
|
|
2869
2882
|
q3(t == null ? void 0 : t.defaultView, "focus", (l) => {
|
|
2870
2883
|
if (!s || !i.current) return;
|
|
@@ -2882,17 +2895,17 @@ function Q3(e, t) {
|
|
|
2882
2895
|
}
|
|
2883
2896
|
function e5(e) {
|
|
2884
2897
|
var t;
|
|
2885
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : r5) !== M2 ||
|
|
2898
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((t = e.as) != null ? t : r5) !== M2 || Y.Children.count(e.children) === 1;
|
|
2886
2899
|
}
|
|
2887
2900
|
let o1 = E2(null);
|
|
2888
2901
|
o1.displayName = "TransitionContext";
|
|
2889
|
-
var
|
|
2890
|
-
function
|
|
2902
|
+
var Qr = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Qr || {});
|
|
2903
|
+
function e7() {
|
|
2891
2904
|
let e = y2(o1);
|
|
2892
2905
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2893
2906
|
return e;
|
|
2894
2907
|
}
|
|
2895
|
-
function
|
|
2908
|
+
function t7() {
|
|
2896
2909
|
let e = y2(i1);
|
|
2897
2910
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
2898
2911
|
return e;
|
|
@@ -2920,10 +2933,10 @@ function t5(e, t) {
|
|
|
2920
2933
|
a.current.splice(0), t && (t.chains.current[p] = t.chains.current[p].filter(([v]) => v !== m)), t == null || t.chains.current[p].push([m, new Promise((v) => {
|
|
2921
2934
|
a.current.push(v);
|
|
2922
2935
|
})]), t == null || t.chains.current[p].push([m, new Promise((v) => {
|
|
2923
|
-
Promise.all(u.current[p].map(([
|
|
2936
|
+
Promise.all(u.current[p].map(([k, _]) => _)).then(() => v());
|
|
2924
2937
|
})]), p === "enter" ? c.current = c.current.then(() => t == null ? void 0 : t.wait.current).then(() => g(p)) : g(p);
|
|
2925
2938
|
}), h = n2((m, p, g) => {
|
|
2926
|
-
Promise.all(u.current[p].splice(0).map(([v,
|
|
2939
|
+
Promise.all(u.current[p].splice(0).map(([v, k]) => k)).then(() => {
|
|
2927
2940
|
var v;
|
|
2928
2941
|
(v = a.current.shift()) == null || v();
|
|
2929
2942
|
}).then(() => g(p));
|
|
@@ -2931,45 +2944,45 @@ function t5(e, t) {
|
|
|
2931
2944
|
return C2(() => ({ children: n, register: l, unregister: s, onStart: d, onStop: h, wait: c, chains: u }), [l, s, n, d, h, u, c]);
|
|
2932
2945
|
}
|
|
2933
2946
|
let r5 = M2, n5 = q0.RenderStrategy;
|
|
2934
|
-
function
|
|
2947
|
+
function r7(e, t) {
|
|
2935
2948
|
var r, n;
|
|
2936
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: l, afterLeave: a, enter: c, enterFrom: u, enterTo: d, entered: h, leave: m, leaveFrom: p, leaveTo: g, ...v } = e, [
|
|
2937
|
-
d2(() =>
|
|
2938
|
-
if ($ === F2.Hidden &&
|
|
2939
|
-
if (
|
|
2940
|
-
|
|
2949
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: s, beforeLeave: l, afterLeave: a, enter: c, enterFrom: u, enterTo: d, entered: h, leave: m, leaveFrom: p, leaveTo: g, ...v } = e, [k, _] = G(null), M = r2(null), O = e5(e), w = S2(...O ? [M, t, _] : t === null ? [] : [t]), $ = (r = v.unmount) == null || r ? F2.Unmount : F2.Hidden, { show: Z, appear: K, initial: U } = e7(), [V, H] = G(Z ? "visible" : "hidden"), z = t7(), { register: J, unregister: R } = z;
|
|
2950
|
+
d2(() => J(M), [J, M]), d2(() => {
|
|
2951
|
+
if ($ === F2.Hidden && M.current) {
|
|
2952
|
+
if (Z && V !== "visible") {
|
|
2953
|
+
H("visible");
|
|
2941
2954
|
return;
|
|
2942
2955
|
}
|
|
2943
|
-
return P2(
|
|
2956
|
+
return P2(V, { hidden: () => R(M), visible: () => J(M) });
|
|
2944
2957
|
}
|
|
2945
|
-
}, [
|
|
2946
|
-
let
|
|
2958
|
+
}, [V, M, J, R, Z, $]);
|
|
2959
|
+
let j = b0();
|
|
2947
2960
|
d2(() => {
|
|
2948
|
-
if (
|
|
2949
|
-
}, [
|
|
2950
|
-
let
|
|
2951
|
-
L.current || (
|
|
2952
|
-
},
|
|
2961
|
+
if (O && j && V === "visible" && M.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
2962
|
+
}, [M, V, j, O]);
|
|
2963
|
+
let E = U && !K, A = K && Z && U, L = r2(!1), B = t5(() => {
|
|
2964
|
+
L.current || (H("hidden"), R(M));
|
|
2965
|
+
}, z), C = n2((D) => {
|
|
2953
2966
|
L.current = !0;
|
|
2954
|
-
let
|
|
2955
|
-
B.onStart(
|
|
2956
|
-
|
|
2967
|
+
let F = D ? "enter" : "leave";
|
|
2968
|
+
B.onStart(M, F, (W) => {
|
|
2969
|
+
W === "enter" ? i == null || i() : W === "leave" && (l == null || l());
|
|
2957
2970
|
});
|
|
2958
2971
|
}), x = n2((D) => {
|
|
2959
|
-
let
|
|
2960
|
-
L.current = !1, B.onStop(
|
|
2961
|
-
|
|
2962
|
-
}),
|
|
2972
|
+
let F = D ? "enter" : "leave";
|
|
2973
|
+
L.current = !1, B.onStop(M, F, (W) => {
|
|
2974
|
+
W === "enter" ? s == null || s() : W === "leave" && (a == null || a());
|
|
2975
|
+
}), F === "leave" && !s1(B) && (H("hidden"), R(M));
|
|
2963
2976
|
});
|
|
2964
2977
|
i2(() => {
|
|
2965
|
-
|
|
2966
|
-
}, [
|
|
2967
|
-
let
|
|
2968
|
-
|
|
2978
|
+
O && o || (C(Z), x(Z));
|
|
2979
|
+
}, [Z, O, o]);
|
|
2980
|
+
let S = !(!o || !O || !j || E), [, b] = Mr(S, k, Z, { start: C, end: x }), P = I2({ ref: w, className: ((n = F1(v.className, A && c, A && u, b.enter && c, b.enter && b.closed && u, b.enter && !b.closed && d, b.leave && m, b.leave && !b.closed && p, b.leave && b.closed && g, !b.transition && Z && h)) == null ? void 0 : n.trim()) || void 0, ...kr(b) }), N = 0;
|
|
2981
|
+
V === "visible" && (N |= k2.Open), V === "hidden" && (N |= k2.Closed), Z && V === "hidden" && (N |= k2.Opening), !Z && V === "visible" && (N |= k2.Closing);
|
|
2969
2982
|
let I = b2();
|
|
2970
|
-
return
|
|
2983
|
+
return Y.createElement(i1.Provider, { value: B }, Y.createElement(Hr, { value: N }, I({ ourProps: P, theirProps: v, defaultTag: r5, features: n5, visible: V === "visible", name: "Transition.Child" })));
|
|
2971
2984
|
}
|
|
2972
|
-
function
|
|
2985
|
+
function n7(e, t) {
|
|
2973
2986
|
let { show: r, appear: n = !1, unmount: o = !0, ...i } = e, s = r2(null), l = e5(e), a = S2(...l ? [s, t] : t === null ? [] : [t]);
|
|
2974
2987
|
b0();
|
|
2975
2988
|
let c = n1();
|
|
@@ -2984,22 +2997,22 @@ function nr(e, t) {
|
|
|
2984
2997
|
d2(() => {
|
|
2985
2998
|
r ? d("visible") : !s1(h) && s.current !== null && d("hidden");
|
|
2986
2999
|
}, [r, h]);
|
|
2987
|
-
let
|
|
3000
|
+
let k = { unmount: o }, _ = n2(() => {
|
|
2988
3001
|
var w;
|
|
2989
3002
|
m && p(!1), (w = e.beforeEnter) == null || w.call(e);
|
|
2990
|
-
}),
|
|
3003
|
+
}), M = n2(() => {
|
|
2991
3004
|
var w;
|
|
2992
3005
|
m && p(!1), (w = e.beforeLeave) == null || w.call(e);
|
|
2993
|
-
}),
|
|
2994
|
-
return
|
|
3006
|
+
}), O = b2();
|
|
3007
|
+
return Y.createElement(i1.Provider, { value: h }, Y.createElement(o1.Provider, { value: v }, O({ ourProps: { ...k, as: M2, children: Y.createElement(o5, { ref: a, ...k, ...i, beforeEnter: _, beforeLeave: M }) }, theirProps: {}, defaultTag: M2, features: n5, visible: u === "visible", name: "Transition" })));
|
|
2995
3008
|
}
|
|
2996
|
-
function
|
|
3009
|
+
function o7(e, t) {
|
|
2997
3010
|
let r = y2(o1) !== null, n = n1() !== null;
|
|
2998
|
-
return
|
|
3011
|
+
return Y.createElement(Y.Fragment, null, !r && n ? Y.createElement(U1, { ref: t, ...e }) : Y.createElement(o5, { ref: t, ...e }));
|
|
2999
3012
|
}
|
|
3000
|
-
let U1 = g2(
|
|
3001
|
-
var
|
|
3002
|
-
let
|
|
3013
|
+
let U1 = g2(n7), o5 = g2(r7), ue = g2(o7), $0 = Object.assign(U1, { Child: ue, Root: U1 });
|
|
3014
|
+
var i7 = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(i7 || {}), s7 = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(s7 || {});
|
|
3015
|
+
let l7 = { 0(e, t) {
|
|
3003
3016
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
3004
3017
|
} }, de = E2(null);
|
|
3005
3018
|
de.displayName = "DialogContext";
|
|
@@ -3011,8 +3024,8 @@ function l1(e) {
|
|
|
3011
3024
|
}
|
|
3012
3025
|
return t;
|
|
3013
3026
|
}
|
|
3014
|
-
function
|
|
3015
|
-
return P2(t.type,
|
|
3027
|
+
function a7(e, t) {
|
|
3028
|
+
return P2(t.type, l7, e, t);
|
|
3016
3029
|
}
|
|
3017
3030
|
let Ke = g2(function(e, t) {
|
|
3018
3031
|
let r = x0(), { id: n = `headlessui-dialog-${r}`, open: o, onClose: i, initialFocus: s, role: l = "dialog", autoFocus: a = !0, __demoMode: c = !1, unmount: u = !1, ...d } = e, h = r2(!1);
|
|
@@ -3021,63 +3034,63 @@ let Ke = g2(function(e, t) {
|
|
|
3021
3034
|
})();
|
|
3022
3035
|
let m = n1();
|
|
3023
3036
|
o === void 0 && m !== null && (o = (m & k2.Open) === k2.Open);
|
|
3024
|
-
let p = r2(null), g = S2(p, t), v = t1(p),
|
|
3037
|
+
let p = r2(null), g = S2(p, t), v = t1(p), k = o ? 0 : 1, [_, M] = q5(a7, { titleId: null, descriptionId: null, panelRef: U5() }), O = n2(() => i(!1)), w = n2((b) => M({ type: 0, id: b })), $ = b0() ? k === 0 : !1, [Z, K] = Nr(), U = { get current() {
|
|
3025
3038
|
var b;
|
|
3026
|
-
return (b =
|
|
3027
|
-
} },
|
|
3028
|
-
|
|
3029
|
-
var b,
|
|
3030
|
-
return [(
|
|
3039
|
+
return (b = _.panelRef.current) != null ? b : p.current;
|
|
3040
|
+
} }, V = J3(), { resolveContainers: H } = Ir({ mainTreeNode: V, portals: Z, defaultContainers: [U] }), z = m !== null ? (m & k2.Closing) === k2.Closing : !1;
|
|
3041
|
+
er(c || z ? !1 : $, { allowed: n2(() => {
|
|
3042
|
+
var b, P;
|
|
3043
|
+
return [(P = (b = p.current) == null ? void 0 : b.closest("[data-headlessui-portal]")) != null ? P : null];
|
|
3031
3044
|
}), disallowed: n2(() => {
|
|
3032
3045
|
var b;
|
|
3033
|
-
return [(b =
|
|
3046
|
+
return [(b = V == null ? void 0 : V.closest("body > *:not(#headlessui-portal-root)")) != null ? b : null];
|
|
3034
3047
|
}) });
|
|
3035
|
-
let
|
|
3048
|
+
let J = Z3.get(null);
|
|
3036
3049
|
d2(() => {
|
|
3037
|
-
if ($) return
|
|
3038
|
-
}, [
|
|
3039
|
-
let
|
|
3040
|
-
|
|
3041
|
-
b.preventDefault(),
|
|
3042
|
-
}),
|
|
3043
|
-
b.preventDefault(), b.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(),
|
|
3044
|
-
}),
|
|
3045
|
-
let [
|
|
3050
|
+
if ($) return J.actions.push(n), () => J.actions.pop(n);
|
|
3051
|
+
}, [J, n, $]);
|
|
3052
|
+
let R = F3(J, s2((b) => J.selectors.isTop(b, n), [J, n]));
|
|
3053
|
+
Cr(R, H, (b) => {
|
|
3054
|
+
b.preventDefault(), O();
|
|
3055
|
+
}), Br(R, v == null ? void 0 : v.defaultView, (b) => {
|
|
3056
|
+
b.preventDefault(), b.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), O();
|
|
3057
|
+
}), xr(c || z ? !1 : $, v, H), tr($, p, O);
|
|
3058
|
+
let [j, E] = T9(), A = C2(() => [{ dialogState: k, close: O, setTitleId: w, unmount: u }, _], [k, _, O, w, u]), L = C2(() => ({ open: k === 0 }), [k]), B = { ref: g, id: n, role: l, tabIndex: -1, "aria-modal": c ? void 0 : k === 0 ? !0 : void 0, "aria-labelledby": _.titleId, "aria-describedby": j, unmount: u }, C = !Dr(), x = U2.None;
|
|
3046
3059
|
$ && !c && (x |= U2.RestoreFocus, x |= U2.TabLock, a && (x |= U2.AutoFocus), C && (x |= U2.InitialFocus));
|
|
3047
|
-
let
|
|
3048
|
-
return
|
|
3049
|
-
}),
|
|
3050
|
-
function
|
|
3060
|
+
let S = b2();
|
|
3061
|
+
return Y.createElement(jr, null, Y.createElement(Xe, { force: !0 }, Y.createElement(Fr, null, Y.createElement(de.Provider, { value: A }, Y.createElement(G3, { target: p }, Y.createElement(Xe, { force: !1 }, Y.createElement(E, { slot: L }, Y.createElement(K, null, Y.createElement(Yr, { initialFocus: s, initialFocusFallback: p, containers: H, features: x }, Y.createElement(Z9, { value: O }, S({ ourProps: B, theirProps: d, slot: L, defaultTag: c7, features: u7, visible: k === 0, name: "Dialog" })))))))))));
|
|
3062
|
+
}), c7 = "div", u7 = q0.RenderStrategy | q0.Static;
|
|
3063
|
+
function d7(e, t) {
|
|
3051
3064
|
let { transition: r = !1, open: n, ...o } = e, i = n1(), s = e.hasOwnProperty("open") || i !== null, l = e.hasOwnProperty("onClose");
|
|
3052
3065
|
if (!s && !l) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
3053
3066
|
if (!s) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
3054
3067
|
if (!l) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
3055
3068
|
if (!i && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
|
|
3056
3069
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
3057
|
-
return (n !== void 0 || r) && !o.static ?
|
|
3070
|
+
return (n !== void 0 || r) && !o.static ? Y.createElement(Je, null, Y.createElement($0, { show: n, transition: r, unmount: o.unmount }, Y.createElement(Ke, { ref: t, ...o }))) : Y.createElement(Je, null, Y.createElement(Ke, { ref: t, open: n, ...o }));
|
|
3058
3071
|
}
|
|
3059
|
-
let
|
|
3060
|
-
function
|
|
3072
|
+
let C7 = "div";
|
|
3073
|
+
function f7(e, t) {
|
|
3061
3074
|
let r = x0(), { id: n = `headlessui-dialog-panel-${r}`, transition: o = !1, ...i } = e, [{ dialogState: s, unmount: l }, a] = l1("Dialog.Panel"), c = S2(t, a.panelRef), u = C2(() => ({ open: s === 0 }), [s]), d = n2((v) => {
|
|
3062
3075
|
v.stopPropagation();
|
|
3063
3076
|
}), h = { ref: c, id: n, onClick: d }, m = o ? ue : M2, p = o ? { unmount: l } : {}, g = b2();
|
|
3064
|
-
return
|
|
3077
|
+
return Y.createElement(m, { ...p }, g({ ourProps: h, theirProps: i, slot: u, defaultTag: C7, name: "Dialog.Panel" }));
|
|
3065
3078
|
}
|
|
3066
|
-
let
|
|
3067
|
-
function
|
|
3079
|
+
let h7 = "div";
|
|
3080
|
+
function p7(e, t) {
|
|
3068
3081
|
let { transition: r = !1, ...n } = e, [{ dialogState: o, unmount: i }] = l1("Dialog.Backdrop"), s = C2(() => ({ open: o === 0 }), [o]), l = { ref: t, "aria-hidden": !0 }, a = r ? ue : M2, c = r ? { unmount: i } : {}, u = b2();
|
|
3069
|
-
return
|
|
3082
|
+
return Y.createElement(a, { ...c }, u({ ourProps: l, theirProps: n, slot: s, defaultTag: h7, name: "Dialog.Backdrop" }));
|
|
3070
3083
|
}
|
|
3071
|
-
let
|
|
3072
|
-
function
|
|
3084
|
+
let m7 = "h2";
|
|
3085
|
+
function g7(e, t) {
|
|
3073
3086
|
let r = x0(), { id: n = `headlessui-dialog-title-${r}`, ...o } = e, [{ dialogState: i, setTitleId: s }] = l1("Dialog.Title"), l = S2(t);
|
|
3074
3087
|
i2(() => (s(n), () => s(null)), [n, s]);
|
|
3075
3088
|
let a = C2(() => ({ open: i === 0 }), [i]), c = { ref: l, id: n };
|
|
3076
|
-
return b2()({ ourProps: c, theirProps: o, slot: a, defaultTag:
|
|
3089
|
+
return b2()({ ourProps: c, theirProps: o, slot: a, defaultTag: m7, name: "Dialog.Title" });
|
|
3077
3090
|
}
|
|
3078
|
-
let
|
|
3079
|
-
g2(
|
|
3080
|
-
let
|
|
3091
|
+
let v7 = g2(d7), w7 = g2(f7);
|
|
3092
|
+
g2(p7);
|
|
3093
|
+
let x7 = g2(g7), y7 = Object.assign(v7, { Panel: w7, Title: x7, Description: $9 });
|
|
3081
3094
|
const i5 = (e) => {
|
|
3082
3095
|
const {
|
|
3083
3096
|
id: t,
|
|
@@ -3096,17 +3109,17 @@ const i5 = (e) => {
|
|
|
3096
3109
|
children: p,
|
|
3097
3110
|
footer: g,
|
|
3098
3111
|
onClose: v,
|
|
3099
|
-
onAfterClose:
|
|
3100
|
-
} = e, [
|
|
3112
|
+
onAfterClose: k
|
|
3113
|
+
} = e, [_, M] = G(r);
|
|
3101
3114
|
i2(() => {
|
|
3102
|
-
|
|
3115
|
+
M(r);
|
|
3103
3116
|
}, [r]);
|
|
3104
|
-
const
|
|
3105
|
-
v && v(),
|
|
3106
|
-
|
|
3117
|
+
const O = () => {
|
|
3118
|
+
v && v(), M(!1), setTimeout(() => {
|
|
3119
|
+
k && k();
|
|
3107
3120
|
}, 500);
|
|
3108
3121
|
}, w = () => {
|
|
3109
|
-
d ||
|
|
3122
|
+
d || O();
|
|
3110
3123
|
}, $ = {
|
|
3111
3124
|
position: "fixed",
|
|
3112
3125
|
top: 0,
|
|
@@ -3116,7 +3129,7 @@ const i5 = (e) => {
|
|
|
3116
3129
|
width: "100vw",
|
|
3117
3130
|
overflowY: "auto",
|
|
3118
3131
|
zIndex: 45
|
|
3119
|
-
},
|
|
3132
|
+
}, Z = {
|
|
3120
3133
|
position: "fixed",
|
|
3121
3134
|
width: "100vw",
|
|
3122
3135
|
overflowY: "auto",
|
|
@@ -3128,7 +3141,7 @@ const i5 = (e) => {
|
|
|
3128
3141
|
paddingRight: 16,
|
|
3129
3142
|
textAlign: "center"
|
|
3130
3143
|
};
|
|
3131
|
-
return /* @__PURE__ */ f.jsx($0, { appear: !0, show:
|
|
3144
|
+
return /* @__PURE__ */ f.jsx($0, { appear: !0, show: _, as: Y.Fragment, children: /* @__PURE__ */ f.jsx(y7, { as: "div", style: $, onClose: w, children: /* @__PURE__ */ f.jsxs("div", { style: Z, children: [
|
|
3132
3145
|
/* @__PURE__ */ f.jsx(
|
|
3133
3146
|
$0.Child,
|
|
3134
3147
|
{
|
|
@@ -3151,7 +3164,7 @@ const i5 = (e) => {
|
|
|
3151
3164
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
3152
3165
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
3153
3166
|
children: /* @__PURE__ */ f.jsx("div", { className: `modal-dialog modal-dialog-scrollable ${n === "xl" ? "modal-dialog-xl" : ""} ${a ? "modal-simplified" : ""} ${m ? "modal-compact" : ""}`, children: /* @__PURE__ */ f.jsxs("div", { className: "modal-container", children: [
|
|
3154
|
-
c && /* @__PURE__ */ f.jsx("button", { type: "button", className: "modal-close-button", onClick:
|
|
3167
|
+
c && /* @__PURE__ */ f.jsx("button", { type: "button", className: "modal-close-button", onClick: O, children: /* @__PURE__ */ f.jsx(h2, { name: "close-outline" }) }),
|
|
3155
3168
|
!l && /* @__PURE__ */ f.jsxs("div", { className: "modal-header", children: [
|
|
3156
3169
|
s && /* @__PURE__ */ f.jsx("p", { className: "text-gray-500", children: s }),
|
|
3157
3170
|
i && /* @__PURE__ */ f.jsx("h6", { className: "text-lg font-semibold", children: i })
|
|
@@ -3165,29 +3178,29 @@ const i5 = (e) => {
|
|
|
3165
3178
|
}, c2 = [];
|
|
3166
3179
|
for (let e = 0; e < 256; ++e)
|
|
3167
3180
|
c2.push((e + 256).toString(16).slice(1));
|
|
3168
|
-
function
|
|
3181
|
+
function b7(e, t = 0) {
|
|
3169
3182
|
return (c2[e[t + 0]] + c2[e[t + 1]] + c2[e[t + 2]] + c2[e[t + 3]] + "-" + c2[e[t + 4]] + c2[e[t + 5]] + "-" + c2[e[t + 6]] + c2[e[t + 7]] + "-" + c2[e[t + 8]] + c2[e[t + 9]] + "-" + c2[e[t + 10]] + c2[e[t + 11]] + c2[e[t + 12]] + c2[e[t + 13]] + c2[e[t + 14]] + c2[e[t + 15]]).toLowerCase();
|
|
3170
3183
|
}
|
|
3171
3184
|
let T1;
|
|
3172
|
-
const
|
|
3173
|
-
function
|
|
3185
|
+
const k7 = new Uint8Array(16);
|
|
3186
|
+
function M7() {
|
|
3174
3187
|
if (!T1) {
|
|
3175
3188
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3176
3189
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3177
3190
|
T1 = crypto.getRandomValues.bind(crypto);
|
|
3178
3191
|
}
|
|
3179
|
-
return T1(
|
|
3192
|
+
return T1(k7);
|
|
3180
3193
|
}
|
|
3181
|
-
const
|
|
3182
|
-
function
|
|
3194
|
+
const E7 = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Qe = { randomUUID: E7 };
|
|
3195
|
+
function L7(e, t, r) {
|
|
3183
3196
|
var o;
|
|
3184
3197
|
if (Qe.randomUUID && !e)
|
|
3185
3198
|
return Qe.randomUUID();
|
|
3186
3199
|
e = e || {};
|
|
3187
|
-
const n = e.random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ??
|
|
3200
|
+
const n = e.random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ?? M7();
|
|
3188
3201
|
if (n.length < 16)
|
|
3189
3202
|
throw new Error("Random bytes length must be >= 16");
|
|
3190
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
3203
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, b7(n);
|
|
3191
3204
|
}
|
|
3192
3205
|
function s5(e) {
|
|
3193
3206
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, r) {
|
|
@@ -3205,15 +3218,15 @@ function s5(e) {
|
|
|
3205
3218
|
});
|
|
3206
3219
|
} };
|
|
3207
3220
|
}
|
|
3208
|
-
const W0 = s5(), t0 = [], p0 = [],
|
|
3221
|
+
const W0 = s5(), t0 = [], p0 = [], _7 = (e, t) => {
|
|
3209
3222
|
t0.some((r) => r.key === e) || t0.push({ key: e, component: t });
|
|
3210
|
-
},
|
|
3223
|
+
}, H7 = (e, t = {}) => {
|
|
3211
3224
|
console.log("open", t0, e);
|
|
3212
3225
|
const r = t0.find((o) => o.key === e);
|
|
3213
3226
|
if (!r) return;
|
|
3214
|
-
const n =
|
|
3227
|
+
const n = L7();
|
|
3215
3228
|
return p0.push({ id: n, key: r.key, component: r.component, props: t }), W0.emit("update-modals"), n;
|
|
3216
|
-
},
|
|
3229
|
+
}, j7 = (e) => {
|
|
3217
3230
|
console.log("close", e);
|
|
3218
3231
|
const t = p0.findIndex((r) => r.id === e);
|
|
3219
3232
|
t !== -1 && (p0.splice(t, 1), W0.emit("update-modals"));
|
|
@@ -3228,12 +3241,12 @@ function Ce() {
|
|
|
3228
3241
|
}, []), {
|
|
3229
3242
|
modals: e,
|
|
3230
3243
|
activeModals: r,
|
|
3231
|
-
registerModal:
|
|
3232
|
-
open:
|
|
3233
|
-
close:
|
|
3244
|
+
registerModal: _7,
|
|
3245
|
+
open: H7,
|
|
3246
|
+
close: j7
|
|
3234
3247
|
};
|
|
3235
3248
|
}
|
|
3236
|
-
const
|
|
3249
|
+
const V7 = (e) => {
|
|
3237
3250
|
const [t, r] = G(!0), {
|
|
3238
3251
|
title: n = "Bevestigen",
|
|
3239
3252
|
message: o = "Weet je zeker dat je dit wilt doen?",
|
|
@@ -3276,7 +3289,7 @@ const Vr = (e) => {
|
|
|
3276
3289
|
children: /* @__PURE__ */ f.jsx("div", { className: "my-4", children: o })
|
|
3277
3290
|
}
|
|
3278
3291
|
);
|
|
3279
|
-
},
|
|
3292
|
+
}, S7 = (e) => {
|
|
3280
3293
|
const [t, r] = G(!0), { open: n } = Ce();
|
|
3281
3294
|
i2(() => {
|
|
3282
3295
|
console.log("ExampleModal mounted", e);
|
|
@@ -3329,7 +3342,7 @@ s5();
|
|
|
3329
3342
|
const ko = () => {
|
|
3330
3343
|
const { registerModal: e, modals: t, activeModals: r, open: n, close: o } = Ce();
|
|
3331
3344
|
i2(() => {
|
|
3332
|
-
e("confirm-modal",
|
|
3345
|
+
e("confirm-modal", V7), e("example-modal", S7);
|
|
3333
3346
|
}, []), i2(() => {
|
|
3334
3347
|
console.log("Updated modals:", t);
|
|
3335
3348
|
}, [t]);
|
|
@@ -3359,7 +3372,7 @@ const ko = () => {
|
|
|
3359
3372
|
/* @__PURE__ */ f.jsx("dl", { className: "description-list", children: s }),
|
|
3360
3373
|
o && /* @__PURE__ */ f.jsx("div", { className: "description-list-footer", children: o })
|
|
3361
3374
|
] });
|
|
3362
|
-
},
|
|
3375
|
+
}, O7 = ({
|
|
3363
3376
|
term: e,
|
|
3364
3377
|
children: t,
|
|
3365
3378
|
skeleton: r,
|
|
@@ -3369,11 +3382,11 @@ const ko = () => {
|
|
|
3369
3382
|
e && /* @__PURE__ */ f.jsx("dt", { className: "description-list-term", children: e }),
|
|
3370
3383
|
/* @__PURE__ */ f.jsx("dd", { className: "description-list-description", children: n ? r ? /* @__PURE__ */ f.jsx(g9, { size: r }) : "" : t })
|
|
3371
3384
|
] }), Eo = ({ children: e, isLoading: t }) => {
|
|
3372
|
-
const r = z5.map(e, (n) =>
|
|
3385
|
+
const r = z5.map(e, (n) => Y.isValidElement(n) && n.type === O7 ? Y.cloneElement(n, { isLoading: t }) : n);
|
|
3373
3386
|
return /* @__PURE__ */ f.jsx(f.Fragment, { children: r });
|
|
3374
3387
|
}, Lo = (e) => {
|
|
3375
|
-
const { items: t, active: r, backHref: n } = e, o = e.currentLocation || window.location.pathname, [i, s] =
|
|
3376
|
-
|
|
3388
|
+
const { items: t, active: r, backHref: n } = e, o = e.currentLocation || window.location.pathname, [i, s] = Y.useState(window.innerWidth < 768);
|
|
3389
|
+
Y.useEffect(() => {
|
|
3377
3390
|
const a = () => {
|
|
3378
3391
|
s(window.innerWidth < 768);
|
|
3379
3392
|
};
|
|
@@ -3401,7 +3414,7 @@ const ko = () => {
|
|
|
3401
3414
|
}
|
|
3402
3415
|
return /* @__PURE__ */ f.jsx("ul", { className: "portal-nav", children: t.map(l) });
|
|
3403
3416
|
};
|
|
3404
|
-
function
|
|
3417
|
+
function T7(e) {
|
|
3405
3418
|
return /* @__PURE__ */ f.jsxs(
|
|
3406
3419
|
"a",
|
|
3407
3420
|
{
|
|
@@ -3420,14 +3433,14 @@ function Tr(e) {
|
|
|
3420
3433
|
function _o(e) {
|
|
3421
3434
|
const { items: t } = e;
|
|
3422
3435
|
return /* @__PURE__ */ f.jsx("div", { className: "navigation-cards", children: t.map((r, n) => /* @__PURE__ */ f.jsx(
|
|
3423
|
-
|
|
3436
|
+
T7,
|
|
3424
3437
|
{
|
|
3425
3438
|
...r
|
|
3426
3439
|
},
|
|
3427
3440
|
r.href || n
|
|
3428
3441
|
)) });
|
|
3429
3442
|
}
|
|
3430
|
-
function
|
|
3443
|
+
function R7(e) {
|
|
3431
3444
|
const { label: t, isActive: r = !1, onClick: n, href: o, device: i = "desktop" } = e, s = o ? "a" : "button";
|
|
3432
3445
|
return i === "mobile" ? /* @__PURE__ */ f.jsxs(
|
|
3433
3446
|
s,
|
|
@@ -3479,7 +3492,7 @@ function Ho(e) {
|
|
|
3479
3492
|
t[h].href || (r === void 0 && a(h), o == null || o(h));
|
|
3480
3493
|
};
|
|
3481
3494
|
return /* @__PURE__ */ f.jsx("div", { className: `tabs tabs--${s || "desktop"}`, role: "tablist", children: t.map((h, m) => /* @__PURE__ */ f.jsx(
|
|
3482
|
-
|
|
3495
|
+
R7,
|
|
3483
3496
|
{
|
|
3484
3497
|
label: h.label,
|
|
3485
3498
|
href: h.href,
|
|
@@ -3490,7 +3503,7 @@ function Ho(e) {
|
|
|
3490
3503
|
h.id || m
|
|
3491
3504
|
)) });
|
|
3492
3505
|
}
|
|
3493
|
-
function
|
|
3506
|
+
function A7({
|
|
3494
3507
|
question: e,
|
|
3495
3508
|
answer: t,
|
|
3496
3509
|
id: r,
|
|
@@ -3560,7 +3573,7 @@ function Ar({
|
|
|
3560
3573
|
)
|
|
3561
3574
|
] });
|
|
3562
3575
|
}
|
|
3563
|
-
function
|
|
3576
|
+
function P7({
|
|
3564
3577
|
items: e,
|
|
3565
3578
|
title: t,
|
|
3566
3579
|
allowMultiple: r = !1,
|
|
@@ -3581,7 +3594,7 @@ function Pr({
|
|
|
3581
3594
|
${a > 0 ? "mt-s" : ""}
|
|
3582
3595
|
`,
|
|
3583
3596
|
children: /* @__PURE__ */ f.jsx(
|
|
3584
|
-
|
|
3597
|
+
A7,
|
|
3585
3598
|
{
|
|
3586
3599
|
...l,
|
|
3587
3600
|
id: l.id || `accordion-${a}`,
|
|
@@ -3608,7 +3621,7 @@ function jo({
|
|
|
3608
3621
|
answer: s.answer
|
|
3609
3622
|
}));
|
|
3610
3623
|
return /* @__PURE__ */ f.jsx("div", { className: `faq ${o}`, children: /* @__PURE__ */ f.jsx(
|
|
3611
|
-
|
|
3624
|
+
P7,
|
|
3612
3625
|
{
|
|
3613
3626
|
title: e,
|
|
3614
3627
|
items: i,
|
|
@@ -3617,37 +3630,37 @@ function jo({
|
|
|
3617
3630
|
}
|
|
3618
3631
|
) });
|
|
3619
3632
|
}
|
|
3620
|
-
const $
|
|
3633
|
+
const $7 = {
|
|
3621
3634
|
none: "p-none",
|
|
3622
3635
|
xs: "p-xs",
|
|
3623
3636
|
s: "p-s",
|
|
3624
3637
|
m: "p-m",
|
|
3625
3638
|
l: "p-l",
|
|
3626
3639
|
xl: "p-xl"
|
|
3627
|
-
},
|
|
3640
|
+
}, N7 = {
|
|
3628
3641
|
default: "border-border-default",
|
|
3629
3642
|
brand: "border-border-brand",
|
|
3630
3643
|
"accent-gray": "border-border-accent-gray",
|
|
3631
3644
|
"accent-gray-subtle": "border-border-accent-gray-subtle",
|
|
3632
3645
|
disabled: "border-border-disabled",
|
|
3633
3646
|
warning: "border-border-warning"
|
|
3634
|
-
},
|
|
3647
|
+
}, Z7 = {
|
|
3635
3648
|
transparent: "bg-transparent",
|
|
3636
3649
|
"accent-gray": "bg-background-accent-gray"
|
|
3637
|
-
},
|
|
3650
|
+
}, F7 = ({
|
|
3638
3651
|
children: e,
|
|
3639
3652
|
padding: t = "s",
|
|
3640
3653
|
borderColor: r = "accent-gray",
|
|
3641
3654
|
background: n = "transparent",
|
|
3642
3655
|
className: o = ""
|
|
3643
3656
|
}) => {
|
|
3644
|
-
const i = $
|
|
3657
|
+
const i = $7[t], s = Z7[n], a = n === "transparent" && r !== "none" ? `border border-width-s ${N7[r]}` : "";
|
|
3645
3658
|
return /* @__PURE__ */ f.jsx("div", { className: `w-full ${i} ${s} ${a} ${o}`.trim(), children: e });
|
|
3646
|
-
},
|
|
3659
|
+
}, B7 = {
|
|
3647
3660
|
light: "text-body-light",
|
|
3648
3661
|
regular: "text-body-regular",
|
|
3649
3662
|
bold: "text-body-bold"
|
|
3650
|
-
},
|
|
3663
|
+
}, D7 = ({
|
|
3651
3664
|
icon: e,
|
|
3652
3665
|
text: t,
|
|
3653
3666
|
iconVariant: r = "outline",
|
|
@@ -3656,7 +3669,7 @@ const $r = {
|
|
|
3656
3669
|
textWeight: i = "light",
|
|
3657
3670
|
className: s = ""
|
|
3658
3671
|
}) => {
|
|
3659
|
-
const l =
|
|
3672
|
+
const l = B7[i];
|
|
3660
3673
|
return /* @__PURE__ */ f.jsxs("div", { className: `flex gap-xs items-center ${s}`, children: [
|
|
3661
3674
|
/* @__PURE__ */ f.jsx(
|
|
3662
3675
|
h2,
|
|
@@ -3669,7 +3682,7 @@ const $r = {
|
|
|
3669
3682
|
),
|
|
3670
3683
|
/* @__PURE__ */ f.jsx("span", { className: `${l} text-text-default`, children: t })
|
|
3671
3684
|
] });
|
|
3672
|
-
},
|
|
3685
|
+
}, I7 = {
|
|
3673
3686
|
info: {
|
|
3674
3687
|
icon: "square",
|
|
3675
3688
|
iconVariant: "fill",
|
|
@@ -3691,20 +3704,20 @@ const $r = {
|
|
|
3691
3704
|
borderColor: "warning",
|
|
3692
3705
|
background: "transparent"
|
|
3693
3706
|
}
|
|
3694
|
-
},
|
|
3707
|
+
}, q7 = ({
|
|
3695
3708
|
className: e = "",
|
|
3696
3709
|
children: t,
|
|
3697
3710
|
variant: r = "info"
|
|
3698
3711
|
}) => {
|
|
3699
|
-
const n =
|
|
3712
|
+
const n = I7[r];
|
|
3700
3713
|
return /* @__PURE__ */ f.jsx(
|
|
3701
|
-
|
|
3714
|
+
F7,
|
|
3702
3715
|
{
|
|
3703
3716
|
borderColor: n.borderColor,
|
|
3704
3717
|
background: n.background,
|
|
3705
3718
|
className: e,
|
|
3706
3719
|
children: /* @__PURE__ */ f.jsx(
|
|
3707
|
-
|
|
3720
|
+
D7,
|
|
3708
3721
|
{
|
|
3709
3722
|
icon: n.icon,
|
|
3710
3723
|
text: t,
|
|
@@ -3715,7 +3728,7 @@ const $r = {
|
|
|
3715
3728
|
}
|
|
3716
3729
|
);
|
|
3717
3730
|
};
|
|
3718
|
-
function
|
|
3731
|
+
function U7(e) {
|
|
3719
3732
|
const { label: t, value: r, skeleton: n, isLoading: o = !1, multiline: i = !1 } = e, s = (l) => l ? i && typeof l == "string" ? l.split(`
|
|
3720
3733
|
`).map((a, c) => /* @__PURE__ */ f.jsx("div", { children: a }, c)) : l : "-";
|
|
3721
3734
|
return /* @__PURE__ */ f.jsxs("div", { className: "dataframe-item", children: [
|
|
@@ -3729,7 +3742,7 @@ function Ur(e) {
|
|
|
3729
3742
|
)) }) : s(r) })
|
|
3730
3743
|
] });
|
|
3731
3744
|
}
|
|
3732
|
-
function
|
|
3745
|
+
function z7(e) {
|
|
3733
3746
|
const {
|
|
3734
3747
|
title: t,
|
|
3735
3748
|
items: r,
|
|
@@ -3745,51 +3758,51 @@ function zr(e) {
|
|
|
3745
3758
|
alert: h,
|
|
3746
3759
|
actions: m,
|
|
3747
3760
|
isLoading: p = !1
|
|
3748
|
-
} = e, [g, v] = G(!1), [
|
|
3749
|
-
const
|
|
3750
|
-
let
|
|
3751
|
-
(
|
|
3752
|
-
let
|
|
3753
|
-
return
|
|
3754
|
-
name: `field_${
|
|
3755
|
-
label:
|
|
3756
|
-
value: typeof
|
|
3757
|
-
width:
|
|
3758
|
-
type:
|
|
3761
|
+
} = e, [g, v] = G(!1), [k, _] = G({}), M = C2(() => a || (r && o ? r.map((V) => {
|
|
3762
|
+
const H = V.label.toLowerCase();
|
|
3763
|
+
let z = "full";
|
|
3764
|
+
(H.includes("voornaam") || H.includes("achternaam") || H.includes("telefoon") || H.includes("mobiel") || H.includes("postcode") || H.includes("plaats")) && (z = "half"), (H.includes("huisnummer") || H.includes("toevoeging")) && (z = "third"), (H.includes("email") || H.includes("adres")) && (z = "full");
|
|
3765
|
+
let J = "text";
|
|
3766
|
+
return H.includes("email") ? J = "email" : (H.includes("telefoon") || H.includes("mobiel")) && (J = "tel"), {
|
|
3767
|
+
name: `field_${V.label.replace(/\s+/g, "_").toLowerCase()}`,
|
|
3768
|
+
label: V.label,
|
|
3769
|
+
value: typeof V.value == "string" ? V.value : V.value ? String(V.value) : "",
|
|
3770
|
+
width: z,
|
|
3771
|
+
type: J
|
|
3759
3772
|
};
|
|
3760
|
-
}) : []), [a, r, o]),
|
|
3773
|
+
}) : []), [a, r, o]), O = () => {
|
|
3761
3774
|
c && d && !g && d();
|
|
3762
3775
|
}, w = () => {
|
|
3763
|
-
if (i && i(),
|
|
3764
|
-
const
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
}),
|
|
3776
|
+
if (i && i(), M.length > 0) {
|
|
3777
|
+
const V = {};
|
|
3778
|
+
M.forEach((H) => {
|
|
3779
|
+
V[H.name] = H.value || "";
|
|
3780
|
+
}), _(V);
|
|
3768
3781
|
}
|
|
3769
3782
|
v(!0);
|
|
3770
3783
|
}, $ = () => {
|
|
3771
|
-
s && s(
|
|
3772
|
-
},
|
|
3773
|
-
l && l(), v(!1),
|
|
3774
|
-
},
|
|
3775
|
-
|
|
3776
|
-
...
|
|
3777
|
-
[
|
|
3784
|
+
s && s(k), v(!1);
|
|
3785
|
+
}, Z = () => {
|
|
3786
|
+
l && l(), v(!1), _({});
|
|
3787
|
+
}, K = (V, H) => {
|
|
3788
|
+
_((z) => ({
|
|
3789
|
+
...z,
|
|
3790
|
+
[V]: H
|
|
3778
3791
|
}));
|
|
3779
|
-
},
|
|
3780
|
-
const
|
|
3781
|
-
let
|
|
3782
|
-
return
|
|
3783
|
-
const
|
|
3784
|
-
|
|
3785
|
-
}),
|
|
3792
|
+
}, U = (V) => {
|
|
3793
|
+
const H = [];
|
|
3794
|
+
let z = [], J = 0;
|
|
3795
|
+
return V.forEach((R) => {
|
|
3796
|
+
const j = R.width === "third" ? 0.3333333333333333 : R.width === "half" ? 0.5 : 1;
|
|
3797
|
+
J + j > 1.01 ? (z.length > 0 && H.push(z), z = [R], J = j) : (z.push(R), J += j);
|
|
3798
|
+
}), z.length > 0 && H.push(z), H;
|
|
3786
3799
|
};
|
|
3787
3800
|
return /* @__PURE__ */ f.jsxs("div", { className: `dataframe ${c ? "dataframe--collapsible" : ""}`, children: [
|
|
3788
3801
|
/* @__PURE__ */ f.jsxs(
|
|
3789
3802
|
"div",
|
|
3790
3803
|
{
|
|
3791
3804
|
className: "dataframe__header",
|
|
3792
|
-
onClick:
|
|
3805
|
+
onClick: O,
|
|
3793
3806
|
children: [
|
|
3794
3807
|
/* @__PURE__ */ f.jsx("h2", { className: "dataframe__title", children: t }),
|
|
3795
3808
|
/* @__PURE__ */ f.jsxs("div", { className: "dataframe__header-actions", children: [
|
|
@@ -3798,8 +3811,8 @@ function zr(e) {
|
|
|
3798
3811
|
{
|
|
3799
3812
|
type: "button",
|
|
3800
3813
|
className: "dataframe__edit-button border-button-border-pill text-button-text-pill",
|
|
3801
|
-
onClick: (
|
|
3802
|
-
|
|
3814
|
+
onClick: (V) => {
|
|
3815
|
+
V.stopPropagation(), w();
|
|
3803
3816
|
},
|
|
3804
3817
|
children: [
|
|
3805
3818
|
/* @__PURE__ */ f.jsx(h2, { name: "pencil-simple-outline" }),
|
|
@@ -3813,8 +3826,8 @@ function zr(e) {
|
|
|
3813
3826
|
{
|
|
3814
3827
|
type: "button",
|
|
3815
3828
|
className: "dataframe__cancel-button text-link-text-default",
|
|
3816
|
-
onClick: (
|
|
3817
|
-
|
|
3829
|
+
onClick: (V) => {
|
|
3830
|
+
V.stopPropagation(), Z();
|
|
3818
3831
|
},
|
|
3819
3832
|
children: "Annuleren"
|
|
3820
3833
|
}
|
|
@@ -3824,8 +3837,8 @@ function zr(e) {
|
|
|
3824
3837
|
{
|
|
3825
3838
|
type: "button",
|
|
3826
3839
|
className: "dataframe__save-button text-button-text-primary",
|
|
3827
|
-
onClick: (
|
|
3828
|
-
|
|
3840
|
+
onClick: (V) => {
|
|
3841
|
+
V.stopPropagation(), $();
|
|
3829
3842
|
},
|
|
3830
3843
|
disabled: p,
|
|
3831
3844
|
children: [
|
|
@@ -3850,7 +3863,7 @@ function zr(e) {
|
|
|
3850
3863
|
}
|
|
3851
3864
|
),
|
|
3852
3865
|
h && /* @__PURE__ */ f.jsx(
|
|
3853
|
-
|
|
3866
|
+
q7,
|
|
3854
3867
|
{
|
|
3855
3868
|
variant: h.type,
|
|
3856
3869
|
className: "mb-s",
|
|
@@ -3858,50 +3871,50 @@ function zr(e) {
|
|
|
3858
3871
|
}
|
|
3859
3872
|
),
|
|
3860
3873
|
(!c || u) && /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
3861
|
-
g ? /* @__PURE__ */ f.jsx("div", { className: "dataframe__edit-content", children:
|
|
3874
|
+
g ? /* @__PURE__ */ f.jsx("div", { className: "dataframe__edit-content", children: M.length > 0 ? U(M).map((V, H) => /* @__PURE__ */ f.jsx("div", { className: "dataframe__input-row", children: V.map((z) => /* @__PURE__ */ f.jsxs(
|
|
3862
3875
|
"div",
|
|
3863
3876
|
{
|
|
3864
3877
|
className: "dataframe__input-container",
|
|
3865
|
-
style: { flex:
|
|
3878
|
+
style: { flex: z.width === "third" ? "0 0 33.333%" : z.width === "half" ? "0 0 50%" : "1" },
|
|
3866
3879
|
children: [
|
|
3867
|
-
/* @__PURE__ */ f.jsx("label", { className: "dataframe__input-label", children:
|
|
3880
|
+
/* @__PURE__ */ f.jsx("label", { className: "dataframe__input-label", children: z.label }),
|
|
3868
3881
|
/* @__PURE__ */ f.jsx(
|
|
3869
3882
|
"input",
|
|
3870
3883
|
{
|
|
3871
|
-
type:
|
|
3884
|
+
type: z.type || "text",
|
|
3872
3885
|
className: "dataframe__input border-form-border-input-field",
|
|
3873
|
-
value:
|
|
3874
|
-
onChange: (
|
|
3875
|
-
disabled:
|
|
3876
|
-
readOnly:
|
|
3877
|
-
placeholder:
|
|
3886
|
+
value: k[z.name] || "",
|
|
3887
|
+
onChange: (J) => K(z.name, J.target.value),
|
|
3888
|
+
disabled: z.disabled || p,
|
|
3889
|
+
readOnly: z.readonly,
|
|
3890
|
+
placeholder: z.placeholder
|
|
3878
3891
|
}
|
|
3879
3892
|
)
|
|
3880
3893
|
]
|
|
3881
3894
|
},
|
|
3882
|
-
|
|
3883
|
-
)) },
|
|
3884
|
-
r && r.map((
|
|
3885
|
-
|
|
3895
|
+
z.name
|
|
3896
|
+
)) }, H)) : /* @__PURE__ */ f.jsx("div", { className: "dataframe__content", children: /* @__PURE__ */ f.jsx("p", { children: "No fields available for editing" }) }) }) : /* @__PURE__ */ f.jsxs("div", { className: "dataframe__content", children: [
|
|
3897
|
+
r && r.map((V, H) => /* @__PURE__ */ f.jsx(
|
|
3898
|
+
U7,
|
|
3886
3899
|
{
|
|
3887
|
-
...
|
|
3900
|
+
...V
|
|
3888
3901
|
},
|
|
3889
|
-
|
|
3902
|
+
V.label || H
|
|
3890
3903
|
)),
|
|
3891
3904
|
n
|
|
3892
3905
|
] }),
|
|
3893
|
-
m && m.length > 0 && !g && /* @__PURE__ */ f.jsx("div", { className: "dataframe__actions", children: m.map((
|
|
3906
|
+
m && m.length > 0 && !g && /* @__PURE__ */ f.jsx("div", { className: "dataframe__actions", children: m.map((V, H) => /* @__PURE__ */ f.jsxs(
|
|
3894
3907
|
"button",
|
|
3895
3908
|
{
|
|
3896
3909
|
type: "button",
|
|
3897
3910
|
className: "dataframe__action-button border-button-border-pill text-button-text-pill",
|
|
3898
|
-
onClick:
|
|
3911
|
+
onClick: V.onClick,
|
|
3899
3912
|
children: [
|
|
3900
|
-
|
|
3901
|
-
/* @__PURE__ */ f.jsx("span", { children:
|
|
3913
|
+
V.icon && /* @__PURE__ */ f.jsx(h2, { name: V.icon }),
|
|
3914
|
+
/* @__PURE__ */ f.jsx("span", { children: V.label })
|
|
3902
3915
|
]
|
|
3903
3916
|
},
|
|
3904
|
-
|
|
3917
|
+
H
|
|
3905
3918
|
)) })
|
|
3906
3919
|
] })
|
|
3907
3920
|
] });
|
|
@@ -3909,7 +3922,7 @@ function zr(e) {
|
|
|
3909
3922
|
function Vo(e) {
|
|
3910
3923
|
const { frames: t } = e;
|
|
3911
3924
|
return /* @__PURE__ */ f.jsx("div", { className: "dataframes", children: t.map((r, n) => /* @__PURE__ */ f.jsx(
|
|
3912
|
-
|
|
3925
|
+
z7,
|
|
3913
3926
|
{
|
|
3914
3927
|
...r
|
|
3915
3928
|
},
|
|
@@ -3934,7 +3947,7 @@ const So = (e) => {
|
|
|
3934
3947
|
r && /* @__PURE__ */ f.jsx("span", { className: "help", children: r }),
|
|
3935
3948
|
n && n.map((i, s) => /* @__PURE__ */ f.jsx("span", { className: "error", children: i }, s))
|
|
3936
3949
|
] });
|
|
3937
|
-
},
|
|
3950
|
+
}, W7 = ({
|
|
3938
3951
|
imageUrl: e,
|
|
3939
3952
|
articleType: t,
|
|
3940
3953
|
heading: r,
|
|
@@ -4002,7 +4015,7 @@ const So = (e) => {
|
|
|
4002
4015
|
children: m
|
|
4003
4016
|
}
|
|
4004
4017
|
) : /* @__PURE__ */ f.jsx("div", { className: p, children: m });
|
|
4005
|
-
},
|
|
4018
|
+
}, Y7 = ({
|
|
4006
4019
|
children: e,
|
|
4007
4020
|
className: t = ""
|
|
4008
4021
|
}) => /* @__PURE__ */ f.jsxs("div", { className: `flex items-center gap-m ${t}`, children: [
|
|
@@ -4014,53 +4027,54 @@ const So = (e) => {
|
|
|
4014
4027
|
title: t,
|
|
4015
4028
|
showButton: r = !1,
|
|
4016
4029
|
buttonLabel: n = "",
|
|
4017
|
-
|
|
4018
|
-
|
|
4030
|
+
buttonUrl: o,
|
|
4031
|
+
onButtonClick: i,
|
|
4032
|
+
className: s = ""
|
|
4019
4033
|
}) => {
|
|
4020
|
-
const
|
|
4021
|
-
if (!
|
|
4022
|
-
const { scrollLeft: U, scrollWidth:
|
|
4023
|
-
|
|
4034
|
+
const l = r2(null), [a, c] = G(!1), [u, d] = G(0), [h, m] = G(0), [p, g] = G(!1), [v, k] = G(!1), [_, M] = G(!0), O = () => {
|
|
4035
|
+
if (!l.current) return;
|
|
4036
|
+
const { scrollLeft: U, scrollWidth: V, clientWidth: H } = l.current;
|
|
4037
|
+
k(U > 0), M(U < V - H - 1);
|
|
4024
4038
|
};
|
|
4025
4039
|
i2(() => {
|
|
4026
|
-
const U =
|
|
4040
|
+
const U = l.current;
|
|
4027
4041
|
if (U)
|
|
4028
|
-
return
|
|
4029
|
-
U.removeEventListener("scroll",
|
|
4042
|
+
return O(), U.addEventListener("scroll", O), window.addEventListener("resize", O), () => {
|
|
4043
|
+
U.removeEventListener("scroll", O), window.removeEventListener("resize", O);
|
|
4030
4044
|
};
|
|
4031
4045
|
}, []);
|
|
4032
|
-
const
|
|
4033
|
-
|
|
4034
|
-
},
|
|
4035
|
-
if (!
|
|
4046
|
+
const w = (U) => {
|
|
4047
|
+
l.current && (U.preventDefault(), c(!0), g(!1), l.current.classList.remove("scroll-smooth"), d(U.pageX), m(l.current.scrollLeft));
|
|
4048
|
+
}, $ = (U) => {
|
|
4049
|
+
if (!a || !l.current) return;
|
|
4036
4050
|
U.preventDefault();
|
|
4037
|
-
const
|
|
4038
|
-
|
|
4039
|
-
},
|
|
4040
|
-
|
|
4041
|
-
},
|
|
4042
|
-
|
|
4051
|
+
const V = U.pageX, H = u - V;
|
|
4052
|
+
l.current.scrollLeft = h + H, Math.abs(H) > 5 && g(!0);
|
|
4053
|
+
}, Z = () => {
|
|
4054
|
+
l.current && l.current.classList.add("scroll-smooth"), c(!1);
|
|
4055
|
+
}, K = (U) => {
|
|
4056
|
+
p && (U.preventDefault(), U.stopPropagation());
|
|
4043
4057
|
};
|
|
4044
|
-
return /* @__PURE__ */ f.jsxs("div", { className: `w-full flex flex-col gap-s ${
|
|
4045
|
-
t && /* @__PURE__ */ f.jsx(
|
|
4058
|
+
return /* @__PURE__ */ f.jsxs("div", { className: `w-full flex flex-col gap-s ${s}`, children: [
|
|
4059
|
+
t && /* @__PURE__ */ f.jsx(Y7, { children: t }),
|
|
4046
4060
|
/* @__PURE__ */ f.jsxs("div", { className: "relative", children: [
|
|
4047
|
-
|
|
4048
|
-
|
|
4061
|
+
v && /* @__PURE__ */ f.jsx("div", { className: "absolute left-0 top-0 bottom-0 w-m bg-gradient-to-r from-background-default to-transparent pointer-events-none z-10" }),
|
|
4062
|
+
_ && /* @__PURE__ */ f.jsx("div", { className: "absolute right-0 top-0 bottom-0 w-m bg-gradient-to-l from-background-default to-transparent pointer-events-none z-10" }),
|
|
4049
4063
|
/* @__PURE__ */ f.jsx(
|
|
4050
4064
|
"div",
|
|
4051
4065
|
{
|
|
4052
|
-
ref:
|
|
4066
|
+
ref: l,
|
|
4053
4067
|
className: "flex gap-m overflow-x-auto scroll-smooth py-s cursor-grab active:cursor-grabbing select-none [&_img]:pointer-events-none [&_a]:pointer-events-auto",
|
|
4054
4068
|
style: {
|
|
4055
4069
|
scrollbarWidth: "thin",
|
|
4056
4070
|
scrollbarColor: "var(--color-border-accent-gray) transparent"
|
|
4057
4071
|
},
|
|
4058
|
-
onMouseDown:
|
|
4059
|
-
onMouseMove:
|
|
4060
|
-
onMouseUp:
|
|
4061
|
-
onMouseLeave:
|
|
4062
|
-
onClick:
|
|
4063
|
-
children: e.map((U,
|
|
4072
|
+
onMouseDown: w,
|
|
4073
|
+
onMouseMove: $,
|
|
4074
|
+
onMouseUp: Z,
|
|
4075
|
+
onMouseLeave: Z,
|
|
4076
|
+
onClick: K,
|
|
4077
|
+
children: e.map((U, V) => /* @__PURE__ */ f.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ f.jsx(W7, { ...U }) }, V))
|
|
4064
4078
|
}
|
|
4065
4079
|
)
|
|
4066
4080
|
] }),
|
|
@@ -4069,7 +4083,8 @@ const So = (e) => {
|
|
|
4069
4083
|
{
|
|
4070
4084
|
variant: "pill",
|
|
4071
4085
|
iconRight: "caret-right",
|
|
4072
|
-
|
|
4086
|
+
href: o,
|
|
4087
|
+
onClick: i,
|
|
4073
4088
|
className: "w-fit",
|
|
4074
4089
|
children: n
|
|
4075
4090
|
}
|
|
@@ -4081,24 +4096,24 @@ function l5(e, t) {
|
|
|
4081
4096
|
return e.apply(t, arguments);
|
|
4082
4097
|
};
|
|
4083
4098
|
}
|
|
4084
|
-
const { toString:
|
|
4085
|
-
const r =
|
|
4099
|
+
const { toString: G7 } = Object.prototype, { getPrototypeOf: fe } = Object, { iterator: a1, toStringTag: a5 } = Symbol, c1 = /* @__PURE__ */ ((e) => (t) => {
|
|
4100
|
+
const r = G7.call(t);
|
|
4086
4101
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
4087
4102
|
})(/* @__PURE__ */ Object.create(null)), L2 = (e) => (e = e.toLowerCase(), (t) => c1(t) === e), u1 = (e) => (t) => typeof t === e, { isArray: o0 } = Array, m0 = u1("undefined");
|
|
4088
4103
|
function k0(e) {
|
|
4089
4104
|
return e !== null && !m0(e) && e.constructor !== null && !m0(e.constructor) && p2(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
4090
4105
|
}
|
|
4091
4106
|
const c5 = L2("ArrayBuffer");
|
|
4092
|
-
function
|
|
4107
|
+
function X7(e) {
|
|
4093
4108
|
let t;
|
|
4094
4109
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && c5(e.buffer), t;
|
|
4095
4110
|
}
|
|
4096
|
-
const
|
|
4111
|
+
const J7 = u1("string"), p2 = u1("function"), u5 = u1("number"), M0 = (e) => e !== null && typeof e == "object", K7 = (e) => e === !0 || e === !1, N0 = (e) => {
|
|
4097
4112
|
if (c1(e) !== "object")
|
|
4098
4113
|
return !1;
|
|
4099
4114
|
const t = fe(e);
|
|
4100
4115
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(a5 in e) && !(a1 in e);
|
|
4101
|
-
},
|
|
4116
|
+
}, Q7 = (e) => {
|
|
4102
4117
|
if (!M0(e) || k0(e))
|
|
4103
4118
|
return !1;
|
|
4104
4119
|
try {
|
|
@@ -4259,13 +4274,13 @@ const Vn = (e) => {
|
|
|
4259
4274
|
isArrayBuffer: c5,
|
|
4260
4275
|
isBuffer: k0,
|
|
4261
4276
|
isFormData: sn,
|
|
4262
|
-
isArrayBufferView:
|
|
4263
|
-
isString:
|
|
4277
|
+
isArrayBufferView: X7,
|
|
4278
|
+
isString: J7,
|
|
4264
4279
|
isNumber: u5,
|
|
4265
|
-
isBoolean:
|
|
4280
|
+
isBoolean: K7,
|
|
4266
4281
|
isObject: M0,
|
|
4267
4282
|
isPlainObject: N0,
|
|
4268
|
-
isEmptyObject:
|
|
4283
|
+
isEmptyObject: Q7,
|
|
4269
4284
|
isReadableStream: an,
|
|
4270
4285
|
isRequest: cn,
|
|
4271
4286
|
isResponse: un,
|
|
@@ -4406,16 +4421,16 @@ function d1(e, t, r) {
|
|
|
4406
4421
|
return y.isArrayBuffer(p) || y.isTypedArray(p) ? a && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
4407
4422
|
}
|
|
4408
4423
|
function u(p, g, v) {
|
|
4409
|
-
let
|
|
4424
|
+
let k = p;
|
|
4410
4425
|
if (p && !v && typeof p == "object") {
|
|
4411
4426
|
if (y.endsWith(g, "{}"))
|
|
4412
4427
|
g = n ? g : g.slice(0, -2), p = JSON.stringify(p);
|
|
4413
|
-
else if (y.isArray(p) && Pn(p) || (y.isFileList(p) || y.endsWith(g, "[]")) && (
|
|
4414
|
-
return g = g5(g),
|
|
4415
|
-
!(y.isUndefined(
|
|
4428
|
+
else if (y.isArray(p) && Pn(p) || (y.isFileList(p) || y.endsWith(g, "[]")) && (k = y.toArray(p)))
|
|
4429
|
+
return g = g5(g), k.forEach(function(M, O) {
|
|
4430
|
+
!(y.isUndefined(M) || M === null) && t.append(
|
|
4416
4431
|
// eslint-disable-next-line no-nested-ternary
|
|
4417
|
-
s === !0 ? t3([g],
|
|
4418
|
-
c(
|
|
4432
|
+
s === !0 ? t3([g], O, i) : s === null ? g : g + "[]",
|
|
4433
|
+
c(M)
|
|
4419
4434
|
);
|
|
4420
4435
|
}), !1;
|
|
4421
4436
|
}
|
|
@@ -4430,14 +4445,14 @@ function d1(e, t, r) {
|
|
|
4430
4445
|
if (!y.isUndefined(p)) {
|
|
4431
4446
|
if (d.indexOf(p) !== -1)
|
|
4432
4447
|
throw Error("Circular reference detected in " + g.join("."));
|
|
4433
|
-
d.push(p), y.forEach(p, function(
|
|
4434
|
-
(!(y.isUndefined(
|
|
4448
|
+
d.push(p), y.forEach(p, function(k, _) {
|
|
4449
|
+
(!(y.isUndefined(k) || k === null) && o.call(
|
|
4435
4450
|
t,
|
|
4436
|
-
|
|
4437
|
-
y.isString(
|
|
4451
|
+
k,
|
|
4452
|
+
y.isString(_) ? _.trim() : _,
|
|
4438
4453
|
g,
|
|
4439
4454
|
h
|
|
4440
|
-
)) === !0 && m(
|
|
4455
|
+
)) === !0 && m(k, g ? g.concat(_) : [_]);
|
|
4441
4456
|
}), d.pop();
|
|
4442
4457
|
}
|
|
4443
4458
|
}
|
|
@@ -5106,48 +5121,48 @@ const E5 = (e) => {
|
|
|
5106
5121
|
}
|
|
5107
5122
|
let v = new XMLHttpRequest();
|
|
5108
5123
|
v.open(o.method.toUpperCase(), o.url, !0), v.timeout = o.timeout;
|
|
5109
|
-
function
|
|
5124
|
+
function k() {
|
|
5110
5125
|
if (!v)
|
|
5111
5126
|
return;
|
|
5112
|
-
const
|
|
5127
|
+
const M = m2.from(
|
|
5113
5128
|
"getAllResponseHeaders" in v && v.getAllResponseHeaders()
|
|
5114
5129
|
), w = {
|
|
5115
5130
|
data: !l || l === "text" || l === "json" ? v.responseText : v.response,
|
|
5116
5131
|
status: v.status,
|
|
5117
5132
|
statusText: v.statusText,
|
|
5118
|
-
headers:
|
|
5133
|
+
headers: M,
|
|
5119
5134
|
config: e,
|
|
5120
5135
|
request: v
|
|
5121
5136
|
};
|
|
5122
|
-
k5(function(
|
|
5123
|
-
r(
|
|
5124
|
-
}, function(
|
|
5125
|
-
n(
|
|
5137
|
+
k5(function(Z) {
|
|
5138
|
+
r(Z), g();
|
|
5139
|
+
}, function(Z) {
|
|
5140
|
+
n(Z), g();
|
|
5126
5141
|
}, w), v = null;
|
|
5127
5142
|
}
|
|
5128
|
-
"onloadend" in v ? v.onloadend =
|
|
5129
|
-
!v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
5143
|
+
"onloadend" in v ? v.onloadend = k : v.onreadystatechange = function() {
|
|
5144
|
+
!v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(k);
|
|
5130
5145
|
}, v.onabort = function() {
|
|
5131
5146
|
v && (n(new X("Request aborted", X.ECONNABORTED, e, v)), v = null);
|
|
5132
5147
|
}, v.onerror = function() {
|
|
5133
5148
|
n(new X("Network Error", X.ERR_NETWORK, e, v)), v = null;
|
|
5134
5149
|
}, v.ontimeout = function() {
|
|
5135
|
-
let
|
|
5150
|
+
let O = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
5136
5151
|
const w = o.transitional || x5;
|
|
5137
|
-
o.timeoutErrorMessage && (
|
|
5138
|
-
|
|
5152
|
+
o.timeoutErrorMessage && (O = o.timeoutErrorMessage), n(new X(
|
|
5153
|
+
O,
|
|
5139
5154
|
w.clarifyTimeoutError ? X.ETIMEDOUT : X.ECONNABORTED,
|
|
5140
5155
|
e,
|
|
5141
5156
|
v
|
|
5142
5157
|
)), v = null;
|
|
5143
|
-
}, i === void 0 && s.setContentType(null), "setRequestHeader" in v && y.forEach(s.toJSON(), function(
|
|
5144
|
-
v.setRequestHeader(w,
|
|
5145
|
-
}), y.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), l && l !== "json" && (v.responseType = o.responseType), c && ([h, p] = Y0(c, !0), v.addEventListener("progress", h)), a && v.upload && ([d, m] = Y0(a), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (u = (
|
|
5146
|
-
v && (n(!
|
|
5158
|
+
}, i === void 0 && s.setContentType(null), "setRequestHeader" in v && y.forEach(s.toJSON(), function(O, w) {
|
|
5159
|
+
v.setRequestHeader(w, O);
|
|
5160
|
+
}), y.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), l && l !== "json" && (v.responseType = o.responseType), c && ([h, p] = Y0(c, !0), v.addEventListener("progress", h)), a && v.upload && ([d, m] = Y0(a), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (u = (M) => {
|
|
5161
|
+
v && (n(!M || M.type ? new i0(null, e, v) : M), v.abort(), v = null);
|
|
5147
5162
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
5148
|
-
const
|
|
5149
|
-
if (
|
|
5150
|
-
n(new X("Unsupported protocol " +
|
|
5163
|
+
const _ = n8(o.url);
|
|
5164
|
+
if (_ && u2.protocols.indexOf(_) === -1) {
|
|
5165
|
+
n(new X("Unsupported protocol " + _ + ":", X.ERR_BAD_REQUEST, e));
|
|
5151
5166
|
return;
|
|
5152
5167
|
}
|
|
5153
5168
|
v.send(i || null);
|
|
@@ -5304,15 +5319,15 @@ const v8 = async (e) => {
|
|
|
5304
5319
|
duplex: "half"
|
|
5305
5320
|
}), $;
|
|
5306
5321
|
if (y.isFormData(n) && ($ = w.headers.get("content-type")) && u.setContentType($), w.body) {
|
|
5307
|
-
const [
|
|
5322
|
+
const [Z, K] = i3(
|
|
5308
5323
|
v,
|
|
5309
5324
|
Y0(s3(a))
|
|
5310
5325
|
);
|
|
5311
|
-
n = a3(w.body, c3,
|
|
5326
|
+
n = a3(w.body, c3, Z, K);
|
|
5312
5327
|
}
|
|
5313
5328
|
}
|
|
5314
5329
|
y.isString(d) || (d = d ? "include" : "omit");
|
|
5315
|
-
const
|
|
5330
|
+
const k = "credentials" in Request.prototype;
|
|
5316
5331
|
p = new Request(t, {
|
|
5317
5332
|
...h,
|
|
5318
5333
|
signal: m,
|
|
@@ -5320,45 +5335,45 @@ const v8 = async (e) => {
|
|
|
5320
5335
|
headers: u.normalize().toJSON(),
|
|
5321
5336
|
body: n,
|
|
5322
5337
|
duplex: "half",
|
|
5323
|
-
credentials:
|
|
5338
|
+
credentials: k ? d : void 0
|
|
5324
5339
|
});
|
|
5325
|
-
let
|
|
5326
|
-
const
|
|
5327
|
-
if (G1 && (l ||
|
|
5340
|
+
let _ = await fetch(p, h);
|
|
5341
|
+
const M = G1 && (c === "stream" || c === "response");
|
|
5342
|
+
if (G1 && (l || M && g)) {
|
|
5328
5343
|
const w = {};
|
|
5329
|
-
["status", "statusText", "headers"].forEach((
|
|
5330
|
-
w[
|
|
5344
|
+
["status", "statusText", "headers"].forEach((U) => {
|
|
5345
|
+
w[U] = _[U];
|
|
5331
5346
|
});
|
|
5332
|
-
const $ = y.toFiniteNumber(
|
|
5347
|
+
const $ = y.toFiniteNumber(_.headers.get("content-length")), [Z, K] = l && i3(
|
|
5333
5348
|
$,
|
|
5334
5349
|
Y0(s3(l), !0)
|
|
5335
5350
|
) || [];
|
|
5336
|
-
|
|
5337
|
-
a3(
|
|
5338
|
-
|
|
5351
|
+
_ = new Response(
|
|
5352
|
+
a3(_.body, c3, Z, () => {
|
|
5353
|
+
K && K(), g && g();
|
|
5339
5354
|
}),
|
|
5340
5355
|
w
|
|
5341
5356
|
);
|
|
5342
5357
|
}
|
|
5343
5358
|
c = c || "text";
|
|
5344
|
-
let
|
|
5345
|
-
return !
|
|
5359
|
+
let O = await G0[y.findKey(G0, c) || "text"](_, e);
|
|
5360
|
+
return !M && g && g(), await new Promise((w, $) => {
|
|
5346
5361
|
k5(w, $, {
|
|
5347
|
-
data:
|
|
5348
|
-
headers: m2.from(
|
|
5349
|
-
status:
|
|
5350
|
-
statusText:
|
|
5362
|
+
data: O,
|
|
5363
|
+
headers: m2.from(_.headers),
|
|
5364
|
+
status: _.status,
|
|
5365
|
+
statusText: _.statusText,
|
|
5351
5366
|
config: e,
|
|
5352
5367
|
request: p
|
|
5353
5368
|
});
|
|
5354
5369
|
});
|
|
5355
|
-
} catch (
|
|
5356
|
-
throw g && g(),
|
|
5370
|
+
} catch (k) {
|
|
5371
|
+
throw g && g(), k && k.name === "TypeError" && /Load failed|fetch/i.test(k.message) ? Object.assign(
|
|
5357
5372
|
new X("Network Error", X.ERR_NETWORK, e, p),
|
|
5358
5373
|
{
|
|
5359
|
-
cause:
|
|
5374
|
+
cause: k.cause || k
|
|
5360
5375
|
}
|
|
5361
|
-
) : X.from(
|
|
5376
|
+
) : X.from(k, k && k.code, e, p);
|
|
5362
5377
|
}
|
|
5363
5378
|
}), X1 = {
|
|
5364
5379
|
http: An,
|
|
@@ -6431,167 +6446,167 @@ function N5() {
|
|
|
6431
6446
|
(function(r, n) {
|
|
6432
6447
|
e.exports = n();
|
|
6433
6448
|
})(z8, (function() {
|
|
6434
|
-
var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", u = "week", d = "month", h = "quarter", m = "year", p = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
6435
|
-
var
|
|
6436
|
-
return "[" +
|
|
6437
|
-
} },
|
|
6438
|
-
var A = String(
|
|
6439
|
-
return !A || A.length >=
|
|
6440
|
-
},
|
|
6441
|
-
var
|
|
6442
|
-
return (
|
|
6443
|
-
}, m: function
|
|
6444
|
-
if (
|
|
6445
|
-
var A = 12 * (
|
|
6446
|
-
return +(-(A + (
|
|
6447
|
-
}, a: function(
|
|
6448
|
-
return
|
|
6449
|
-
}, p: function(
|
|
6450
|
-
return { M: d, y: m, w: u, d: c, D: p, h: a, m: l, s, ms: i, Q: h }[
|
|
6451
|
-
}, u: function(
|
|
6452
|
-
return
|
|
6449
|
+
var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", u = "week", d = "month", h = "quarter", m = "year", p = "date", g = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
6450
|
+
var j = ["th", "st", "nd", "rd"], E = R % 100;
|
|
6451
|
+
return "[" + R + (j[(E - 20) % 10] || j[E] || j[0]) + "]";
|
|
6452
|
+
} }, M = function(R, j, E) {
|
|
6453
|
+
var A = String(R);
|
|
6454
|
+
return !A || A.length >= j ? R : "" + Array(j + 1 - A.length).join(E) + R;
|
|
6455
|
+
}, O = { s: M, z: function(R) {
|
|
6456
|
+
var j = -R.utcOffset(), E = Math.abs(j), A = Math.floor(E / 60), L = E % 60;
|
|
6457
|
+
return (j <= 0 ? "+" : "-") + M(A, 2, "0") + ":" + M(L, 2, "0");
|
|
6458
|
+
}, m: function R(j, E) {
|
|
6459
|
+
if (j.date() < E.date()) return -R(E, j);
|
|
6460
|
+
var A = 12 * (E.year() - j.year()) + (E.month() - j.month()), L = j.clone().add(A, d), B = E - L < 0, C = j.clone().add(A + (B ? -1 : 1), d);
|
|
6461
|
+
return +(-(A + (E - L) / (B ? L - C : C - L)) || 0);
|
|
6462
|
+
}, a: function(R) {
|
|
6463
|
+
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
6464
|
+
}, p: function(R) {
|
|
6465
|
+
return { M: d, y: m, w: u, d: c, D: p, h: a, m: l, s, ms: i, Q: h }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
6466
|
+
}, u: function(R) {
|
|
6467
|
+
return R === void 0;
|
|
6453
6468
|
} }, w = "en", $ = {};
|
|
6454
|
-
$[w] =
|
|
6455
|
-
var
|
|
6456
|
-
return
|
|
6457
|
-
},
|
|
6469
|
+
$[w] = _;
|
|
6470
|
+
var Z = "$isDayjsObject", K = function(R) {
|
|
6471
|
+
return R instanceof z || !(!R || !R[Z]);
|
|
6472
|
+
}, U = function R(j, E, A) {
|
|
6458
6473
|
var L;
|
|
6459
|
-
if (!
|
|
6460
|
-
if (typeof
|
|
6461
|
-
var B =
|
|
6462
|
-
$[B] && (L = B),
|
|
6463
|
-
var C =
|
|
6464
|
-
if (!L && C.length > 1) return
|
|
6474
|
+
if (!j) return w;
|
|
6475
|
+
if (typeof j == "string") {
|
|
6476
|
+
var B = j.toLowerCase();
|
|
6477
|
+
$[B] && (L = B), E && ($[B] = E, L = B);
|
|
6478
|
+
var C = j.split("-");
|
|
6479
|
+
if (!L && C.length > 1) return R(C[0]);
|
|
6465
6480
|
} else {
|
|
6466
|
-
var x =
|
|
6467
|
-
$[x] =
|
|
6481
|
+
var x = j.name;
|
|
6482
|
+
$[x] = j, L = x;
|
|
6468
6483
|
}
|
|
6469
6484
|
return !A && L && (w = L), L || !A && w;
|
|
6470
|
-
},
|
|
6471
|
-
if (
|
|
6472
|
-
var
|
|
6473
|
-
return
|
|
6474
|
-
},
|
|
6475
|
-
|
|
6476
|
-
return
|
|
6485
|
+
}, V = function(R, j) {
|
|
6486
|
+
if (K(R)) return R.clone();
|
|
6487
|
+
var E = typeof j == "object" ? j : {};
|
|
6488
|
+
return E.date = R, E.args = arguments, new z(E);
|
|
6489
|
+
}, H = O;
|
|
6490
|
+
H.l = U, H.i = K, H.w = function(R, j) {
|
|
6491
|
+
return V(R, { locale: j.$L, utc: j.$u, x: j.$x, $offset: j.$offset });
|
|
6477
6492
|
};
|
|
6478
|
-
var
|
|
6479
|
-
function
|
|
6480
|
-
this.$L =
|
|
6493
|
+
var z = (function() {
|
|
6494
|
+
function R(E) {
|
|
6495
|
+
this.$L = U(E.locale, null, !0), this.parse(E), this.$x = this.$x || E.x || {}, this[Z] = !0;
|
|
6481
6496
|
}
|
|
6482
|
-
var
|
|
6483
|
-
return
|
|
6497
|
+
var j = R.prototype;
|
|
6498
|
+
return j.parse = function(E) {
|
|
6484
6499
|
this.$d = (function(A) {
|
|
6485
6500
|
var L = A.date, B = A.utc;
|
|
6486
6501
|
if (L === null) return /* @__PURE__ */ new Date(NaN);
|
|
6487
|
-
if (
|
|
6502
|
+
if (H.u(L)) return /* @__PURE__ */ new Date();
|
|
6488
6503
|
if (L instanceof Date) return new Date(L);
|
|
6489
6504
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
|
6490
6505
|
var C = L.match(v);
|
|
6491
6506
|
if (C) {
|
|
6492
|
-
var x = C[2] - 1 || 0,
|
|
6493
|
-
return B ? new Date(Date.UTC(C[1], x, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0,
|
|
6507
|
+
var x = C[2] - 1 || 0, S = (C[7] || "0").substring(0, 3);
|
|
6508
|
+
return B ? new Date(Date.UTC(C[1], x, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, S)) : new Date(C[1], x, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, S);
|
|
6494
6509
|
}
|
|
6495
6510
|
}
|
|
6496
6511
|
return new Date(L);
|
|
6497
|
-
})(
|
|
6498
|
-
},
|
|
6499
|
-
var
|
|
6500
|
-
this.$y =
|
|
6501
|
-
},
|
|
6502
|
-
return
|
|
6503
|
-
},
|
|
6512
|
+
})(E), this.init();
|
|
6513
|
+
}, j.init = function() {
|
|
6514
|
+
var E = this.$d;
|
|
6515
|
+
this.$y = E.getFullYear(), this.$M = E.getMonth(), this.$D = E.getDate(), this.$W = E.getDay(), this.$H = E.getHours(), this.$m = E.getMinutes(), this.$s = E.getSeconds(), this.$ms = E.getMilliseconds();
|
|
6516
|
+
}, j.$utils = function() {
|
|
6517
|
+
return H;
|
|
6518
|
+
}, j.isValid = function() {
|
|
6504
6519
|
return this.$d.toString() !== g;
|
|
6505
|
-
},
|
|
6506
|
-
var L =
|
|
6520
|
+
}, j.isSame = function(E, A) {
|
|
6521
|
+
var L = V(E);
|
|
6507
6522
|
return this.startOf(A) <= L && L <= this.endOf(A);
|
|
6508
|
-
},
|
|
6509
|
-
return
|
|
6510
|
-
},
|
|
6511
|
-
return this.endOf(A) <
|
|
6512
|
-
},
|
|
6513
|
-
return
|
|
6514
|
-
},
|
|
6523
|
+
}, j.isAfter = function(E, A) {
|
|
6524
|
+
return V(E) < this.startOf(A);
|
|
6525
|
+
}, j.isBefore = function(E, A) {
|
|
6526
|
+
return this.endOf(A) < V(E);
|
|
6527
|
+
}, j.$g = function(E, A, L) {
|
|
6528
|
+
return H.u(E) ? this[A] : this.set(L, E);
|
|
6529
|
+
}, j.unix = function() {
|
|
6515
6530
|
return Math.floor(this.valueOf() / 1e3);
|
|
6516
|
-
},
|
|
6531
|
+
}, j.valueOf = function() {
|
|
6517
6532
|
return this.$d.getTime();
|
|
6518
|
-
},
|
|
6519
|
-
var L = this, B = !!
|
|
6520
|
-
var t2 =
|
|
6533
|
+
}, j.startOf = function(E, A) {
|
|
6534
|
+
var L = this, B = !!H.u(A) || A, C = H.p(E), x = function(W, q) {
|
|
6535
|
+
var t2 = H.w(L.$u ? Date.UTC(L.$y, q, W) : new Date(L.$y, q, W), L);
|
|
6521
6536
|
return B ? t2 : t2.endOf(c);
|
|
6522
|
-
},
|
|
6523
|
-
return
|
|
6524
|
-
}, b = this.$W,
|
|
6537
|
+
}, S = function(W, q) {
|
|
6538
|
+
return H.w(L.toDate()[W].apply(L.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), L);
|
|
6539
|
+
}, b = this.$W, P = this.$M, N = this.$D, I = "set" + (this.$u ? "UTC" : "");
|
|
6525
6540
|
switch (C) {
|
|
6526
6541
|
case m:
|
|
6527
6542
|
return B ? x(1, 0) : x(31, 11);
|
|
6528
6543
|
case d:
|
|
6529
|
-
return B ? x(1,
|
|
6544
|
+
return B ? x(1, P) : x(0, P + 1);
|
|
6530
6545
|
case u:
|
|
6531
|
-
var D = this.$locale().weekStart || 0,
|
|
6532
|
-
return x(B ? N -
|
|
6546
|
+
var D = this.$locale().weekStart || 0, F = (b < D ? b + 7 : b) - D;
|
|
6547
|
+
return x(B ? N - F : N + (6 - F), P);
|
|
6533
6548
|
case c:
|
|
6534
6549
|
case p:
|
|
6535
|
-
return
|
|
6550
|
+
return S(I + "Hours", 0);
|
|
6536
6551
|
case a:
|
|
6537
|
-
return
|
|
6552
|
+
return S(I + "Minutes", 1);
|
|
6538
6553
|
case l:
|
|
6539
|
-
return
|
|
6554
|
+
return S(I + "Seconds", 2);
|
|
6540
6555
|
case s:
|
|
6541
|
-
return
|
|
6556
|
+
return S(I + "Milliseconds", 3);
|
|
6542
6557
|
default:
|
|
6543
6558
|
return this.clone();
|
|
6544
6559
|
}
|
|
6545
|
-
},
|
|
6546
|
-
return this.startOf(
|
|
6547
|
-
},
|
|
6548
|
-
var L, B =
|
|
6560
|
+
}, j.endOf = function(E) {
|
|
6561
|
+
return this.startOf(E, !1);
|
|
6562
|
+
}, j.$set = function(E, A) {
|
|
6563
|
+
var L, B = H.p(E), C = "set" + (this.$u ? "UTC" : ""), x = (L = {}, L[c] = C + "Date", L[p] = C + "Date", L[d] = C + "Month", L[m] = C + "FullYear", L[a] = C + "Hours", L[l] = C + "Minutes", L[s] = C + "Seconds", L[i] = C + "Milliseconds", L)[B], S = B === c ? this.$D + (A - this.$W) : A;
|
|
6549
6564
|
if (B === d || B === m) {
|
|
6550
6565
|
var b = this.clone().set(p, 1);
|
|
6551
|
-
b.$d[x](
|
|
6552
|
-
} else x && this.$d[x](
|
|
6566
|
+
b.$d[x](S), b.init(), this.$d = b.set(p, Math.min(this.$D, b.daysInMonth())).$d;
|
|
6567
|
+
} else x && this.$d[x](S);
|
|
6553
6568
|
return this.init(), this;
|
|
6554
|
-
},
|
|
6555
|
-
return this.clone().$set(
|
|
6556
|
-
},
|
|
6557
|
-
return this[
|
|
6558
|
-
},
|
|
6569
|
+
}, j.set = function(E, A) {
|
|
6570
|
+
return this.clone().$set(E, A);
|
|
6571
|
+
}, j.get = function(E) {
|
|
6572
|
+
return this[H.p(E)]();
|
|
6573
|
+
}, j.add = function(E, A) {
|
|
6559
6574
|
var L, B = this;
|
|
6560
|
-
|
|
6561
|
-
var C =
|
|
6562
|
-
var N =
|
|
6563
|
-
return
|
|
6575
|
+
E = Number(E);
|
|
6576
|
+
var C = H.p(A), x = function(P) {
|
|
6577
|
+
var N = V(B);
|
|
6578
|
+
return H.w(N.date(N.date() + Math.round(P * E)), B);
|
|
6564
6579
|
};
|
|
6565
|
-
if (C === d) return this.set(d, this.$M +
|
|
6566
|
-
if (C === m) return this.set(m, this.$y +
|
|
6580
|
+
if (C === d) return this.set(d, this.$M + E);
|
|
6581
|
+
if (C === m) return this.set(m, this.$y + E);
|
|
6567
6582
|
if (C === c) return x(1);
|
|
6568
6583
|
if (C === u) return x(7);
|
|
6569
|
-
var
|
|
6570
|
-
return
|
|
6571
|
-
},
|
|
6572
|
-
return this.add(-1 *
|
|
6573
|
-
},
|
|
6584
|
+
var S = (L = {}, L[l] = n, L[a] = o, L[s] = r, L)[C] || 1, b = this.$d.getTime() + E * S;
|
|
6585
|
+
return H.w(b, this);
|
|
6586
|
+
}, j.subtract = function(E, A) {
|
|
6587
|
+
return this.add(-1 * E, A);
|
|
6588
|
+
}, j.format = function(E) {
|
|
6574
6589
|
var A = this, L = this.$locale();
|
|
6575
6590
|
if (!this.isValid()) return L.invalidDate || g;
|
|
6576
|
-
var B =
|
|
6577
|
-
return q && (q[t2] || q(A, B)) ||
|
|
6578
|
-
},
|
|
6579
|
-
return
|
|
6580
|
-
},
|
|
6591
|
+
var B = E || "YYYY-MM-DDTHH:mm:ssZ", C = H.z(this), x = this.$H, S = this.$m, b = this.$M, P = L.weekdays, N = L.months, I = L.meridiem, D = function(q, t2, T, l2) {
|
|
6592
|
+
return q && (q[t2] || q(A, B)) || T[t2].slice(0, l2);
|
|
6593
|
+
}, F = function(q) {
|
|
6594
|
+
return H.s(x % 12 || 12, q, "0");
|
|
6595
|
+
}, W = I || function(q, t2, T) {
|
|
6581
6596
|
var l2 = q < 12 ? "AM" : "PM";
|
|
6582
|
-
return
|
|
6597
|
+
return T ? l2.toLowerCase() : l2;
|
|
6583
6598
|
};
|
|
6584
|
-
return B.replace(
|
|
6585
|
-
return t2 || (function(
|
|
6586
|
-
switch (
|
|
6599
|
+
return B.replace(k, (function(q, t2) {
|
|
6600
|
+
return t2 || (function(T) {
|
|
6601
|
+
switch (T) {
|
|
6587
6602
|
case "YY":
|
|
6588
6603
|
return String(A.$y).slice(-2);
|
|
6589
6604
|
case "YYYY":
|
|
6590
|
-
return
|
|
6605
|
+
return H.s(A.$y, 4, "0");
|
|
6591
6606
|
case "M":
|
|
6592
6607
|
return b + 1;
|
|
6593
6608
|
case "MM":
|
|
6594
|
-
return
|
|
6609
|
+
return H.s(b + 1, 2, "0");
|
|
6595
6610
|
case "MMM":
|
|
6596
6611
|
return D(L.monthsShort, b, N, 3);
|
|
6597
6612
|
case "MMMM":
|
|
@@ -6599,48 +6614,48 @@ function N5() {
|
|
|
6599
6614
|
case "D":
|
|
6600
6615
|
return A.$D;
|
|
6601
6616
|
case "DD":
|
|
6602
|
-
return
|
|
6617
|
+
return H.s(A.$D, 2, "0");
|
|
6603
6618
|
case "d":
|
|
6604
6619
|
return String(A.$W);
|
|
6605
6620
|
case "dd":
|
|
6606
|
-
return D(L.weekdaysMin, A.$W,
|
|
6621
|
+
return D(L.weekdaysMin, A.$W, P, 2);
|
|
6607
6622
|
case "ddd":
|
|
6608
|
-
return D(L.weekdaysShort, A.$W,
|
|
6623
|
+
return D(L.weekdaysShort, A.$W, P, 3);
|
|
6609
6624
|
case "dddd":
|
|
6610
|
-
return
|
|
6625
|
+
return P[A.$W];
|
|
6611
6626
|
case "H":
|
|
6612
6627
|
return String(x);
|
|
6613
6628
|
case "HH":
|
|
6614
|
-
return
|
|
6629
|
+
return H.s(x, 2, "0");
|
|
6615
6630
|
case "h":
|
|
6616
|
-
return
|
|
6631
|
+
return F(1);
|
|
6617
6632
|
case "hh":
|
|
6618
|
-
return
|
|
6633
|
+
return F(2);
|
|
6619
6634
|
case "a":
|
|
6620
|
-
return
|
|
6635
|
+
return W(x, S, !0);
|
|
6621
6636
|
case "A":
|
|
6622
|
-
return
|
|
6637
|
+
return W(x, S, !1);
|
|
6623
6638
|
case "m":
|
|
6624
|
-
return String(
|
|
6639
|
+
return String(S);
|
|
6625
6640
|
case "mm":
|
|
6626
|
-
return
|
|
6641
|
+
return H.s(S, 2, "0");
|
|
6627
6642
|
case "s":
|
|
6628
6643
|
return String(A.$s);
|
|
6629
6644
|
case "ss":
|
|
6630
|
-
return
|
|
6645
|
+
return H.s(A.$s, 2, "0");
|
|
6631
6646
|
case "SSS":
|
|
6632
|
-
return
|
|
6647
|
+
return H.s(A.$ms, 3, "0");
|
|
6633
6648
|
case "Z":
|
|
6634
6649
|
return C;
|
|
6635
6650
|
}
|
|
6636
6651
|
return null;
|
|
6637
6652
|
})(q) || C.replace(":", "");
|
|
6638
6653
|
}));
|
|
6639
|
-
},
|
|
6654
|
+
}, j.utcOffset = function() {
|
|
6640
6655
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6641
|
-
},
|
|
6642
|
-
var B, C = this, x =
|
|
6643
|
-
return
|
|
6656
|
+
}, j.diff = function(E, A, L) {
|
|
6657
|
+
var B, C = this, x = H.p(A), S = V(E), b = (S.utcOffset() - this.utcOffset()) * n, P = this - S, N = function() {
|
|
6658
|
+
return H.m(C, S);
|
|
6644
6659
|
};
|
|
6645
6660
|
switch (x) {
|
|
6646
6661
|
case m:
|
|
@@ -6653,53 +6668,53 @@ function N5() {
|
|
|
6653
6668
|
B = N() / 3;
|
|
6654
6669
|
break;
|
|
6655
6670
|
case u:
|
|
6656
|
-
B = (
|
|
6671
|
+
B = (P - b) / 6048e5;
|
|
6657
6672
|
break;
|
|
6658
6673
|
case c:
|
|
6659
|
-
B = (
|
|
6674
|
+
B = (P - b) / 864e5;
|
|
6660
6675
|
break;
|
|
6661
6676
|
case a:
|
|
6662
|
-
B =
|
|
6677
|
+
B = P / o;
|
|
6663
6678
|
break;
|
|
6664
6679
|
case l:
|
|
6665
|
-
B =
|
|
6680
|
+
B = P / n;
|
|
6666
6681
|
break;
|
|
6667
6682
|
case s:
|
|
6668
|
-
B =
|
|
6683
|
+
B = P / r;
|
|
6669
6684
|
break;
|
|
6670
6685
|
default:
|
|
6671
|
-
B =
|
|
6686
|
+
B = P;
|
|
6672
6687
|
}
|
|
6673
|
-
return L ? B :
|
|
6674
|
-
},
|
|
6688
|
+
return L ? B : H.a(B);
|
|
6689
|
+
}, j.daysInMonth = function() {
|
|
6675
6690
|
return this.endOf(d).$D;
|
|
6676
|
-
},
|
|
6691
|
+
}, j.$locale = function() {
|
|
6677
6692
|
return $[this.$L];
|
|
6678
|
-
},
|
|
6679
|
-
if (!
|
|
6680
|
-
var L = this.clone(), B =
|
|
6693
|
+
}, j.locale = function(E, A) {
|
|
6694
|
+
if (!E) return this.$L;
|
|
6695
|
+
var L = this.clone(), B = U(E, A, !0);
|
|
6681
6696
|
return B && (L.$L = B), L;
|
|
6682
|
-
},
|
|
6683
|
-
return
|
|
6684
|
-
},
|
|
6697
|
+
}, j.clone = function() {
|
|
6698
|
+
return H.w(this.$d, this);
|
|
6699
|
+
}, j.toDate = function() {
|
|
6685
6700
|
return new Date(this.valueOf());
|
|
6686
|
-
},
|
|
6701
|
+
}, j.toJSON = function() {
|
|
6687
6702
|
return this.isValid() ? this.toISOString() : null;
|
|
6688
|
-
},
|
|
6703
|
+
}, j.toISOString = function() {
|
|
6689
6704
|
return this.$d.toISOString();
|
|
6690
|
-
},
|
|
6705
|
+
}, j.toString = function() {
|
|
6691
6706
|
return this.$d.toUTCString();
|
|
6692
|
-
},
|
|
6693
|
-
})(),
|
|
6694
|
-
return
|
|
6695
|
-
|
|
6696
|
-
return this.$g(
|
|
6707
|
+
}, R;
|
|
6708
|
+
})(), J = z.prototype;
|
|
6709
|
+
return V.prototype = J, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", d], ["$y", m], ["$D", p]].forEach((function(R) {
|
|
6710
|
+
J[R[1]] = function(j) {
|
|
6711
|
+
return this.$g(j, R[0], R[1]);
|
|
6697
6712
|
};
|
|
6698
|
-
})),
|
|
6699
|
-
return
|
|
6700
|
-
},
|
|
6701
|
-
return
|
|
6702
|
-
},
|
|
6713
|
+
})), V.extend = function(R, j) {
|
|
6714
|
+
return R.$i || (R(j, z, V), R.$i = !0), V;
|
|
6715
|
+
}, V.locale = U, V.isDayjs = K, V.unix = function(R) {
|
|
6716
|
+
return V(1e3 * R);
|
|
6717
|
+
}, V.en = $[w], V.Ls = $, V.p = {}, V;
|
|
6703
6718
|
}));
|
|
6704
6719
|
})(B0)), B0.exports;
|
|
6705
6720
|
}
|
|
@@ -6724,10 +6739,10 @@ function X8() {
|
|
|
6724
6739
|
var J8 = X8();
|
|
6725
6740
|
const K8 = /* @__PURE__ */ E3(J8), ri = (e) => e ? Y8(e).locale(K8).format("D MMMM YYYY") : null;
|
|
6726
6741
|
export {
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6742
|
+
P7 as Accordion,
|
|
6743
|
+
A7 as AccordionItem,
|
|
6744
|
+
q7 as Alert,
|
|
6745
|
+
W7 as ArticleCard,
|
|
6731
6746
|
vo as ArticleCity,
|
|
6732
6747
|
Oo as ArticleSlider,
|
|
6733
6748
|
wo as ArticleType,
|
|
@@ -6739,15 +6754,15 @@ export {
|
|
|
6739
6754
|
co as BodyStandardBold,
|
|
6740
6755
|
ao as BodyStandardRegular,
|
|
6741
6756
|
h0 as Button,
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6757
|
+
V7 as ConfirmModal,
|
|
6758
|
+
z7 as DataFrame,
|
|
6759
|
+
U7 as DataFrameItem,
|
|
6745
6760
|
Vo as DataFrames,
|
|
6746
6761
|
Mo as DescriptionList,
|
|
6747
|
-
|
|
6762
|
+
O7 as DescriptionListItem,
|
|
6748
6763
|
Eo as DescriptionListItems,
|
|
6749
6764
|
go as DropCap,
|
|
6750
|
-
|
|
6765
|
+
S7 as ExampleModal,
|
|
6751
6766
|
jo as FAQ,
|
|
6752
6767
|
oo as Heading2,
|
|
6753
6768
|
io as Heading3,
|