@raspberrypifoundation/design-system-react 2.10.4 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system-react.css +1 -1
- package/dist/design-system-react.js +866 -844
- package/dist/design-system-react.umd.cjs +13 -13
- package/dist/scss/components/button.scss +69 -5
- package/dist/types/src/components/Button/Button.types.d.ts +7 -0
- package/dist/types/src/components/Button/Button.types.d.ts.map +1 -1
- package/dist/types/src/components/Button/index.d.ts +1 -1
- package/dist/types/src/components/Button/index.d.ts.map +1 -1
- package/dist/types/src/stories/Button.stories.d.ts +47 -2
- package/dist/types/src/stories/Button.stories.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as W, jsx as y, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import * as E from "react";
|
|
3
3
|
import or, { useState as On, forwardRef as It, useRef as Rt, useEffect as We, useLayoutEffect as An, createElement as Tt } from "react";
|
|
4
4
|
import * as ir from "react-dom";
|
|
@@ -45,8 +45,8 @@ function sr() {
|
|
|
45
45
|
})(at)), at.exports;
|
|
46
46
|
}
|
|
47
47
|
var ar = sr();
|
|
48
|
-
const
|
|
49
|
-
var Me = { exports: {} }, De = { exports: {} },
|
|
48
|
+
const Z = /* @__PURE__ */ Pn(ar);
|
|
49
|
+
var Me = { exports: {} }, De = { exports: {} }, U = {};
|
|
50
50
|
/** @license React v16.13.1
|
|
51
51
|
* react-is.production.min.js
|
|
52
52
|
*
|
|
@@ -57,16 +57,16 @@ var Me = { exports: {} }, De = { exports: {} }, Y = {};
|
|
|
57
57
|
*/
|
|
58
58
|
var Yt;
|
|
59
59
|
function cr() {
|
|
60
|
-
if (Yt) return
|
|
60
|
+
if (Yt) return U;
|
|
61
61
|
Yt = 1;
|
|
62
|
-
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, a = e ? Symbol.for("react.context") : 60110,
|
|
63
|
-
function
|
|
62
|
+
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, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
63
|
+
function g(b) {
|
|
64
64
|
if (typeof b == "object" && b !== null) {
|
|
65
|
-
var
|
|
66
|
-
switch (
|
|
65
|
+
var F = b.$$typeof;
|
|
66
|
+
switch (F) {
|
|
67
67
|
case t:
|
|
68
68
|
switch (b = b.type, b) {
|
|
69
|
-
case
|
|
69
|
+
case u:
|
|
70
70
|
case c:
|
|
71
71
|
case n:
|
|
72
72
|
case i:
|
|
@@ -78,50 +78,50 @@ function cr() {
|
|
|
78
78
|
case a:
|
|
79
79
|
case f:
|
|
80
80
|
case v:
|
|
81
|
-
case
|
|
81
|
+
case l:
|
|
82
82
|
case s:
|
|
83
83
|
return b;
|
|
84
84
|
default:
|
|
85
|
-
return
|
|
85
|
+
return F;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
case r:
|
|
89
|
-
return
|
|
89
|
+
return F;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
function T(b) {
|
|
94
|
-
return
|
|
94
|
+
return g(b) === c;
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
return T(b) ||
|
|
98
|
-
},
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
return
|
|
102
|
-
},
|
|
96
|
+
return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = a, U.ContextProvider = s, U.Element = t, U.ForwardRef = f, U.Fragment = n, U.Lazy = v, U.Memo = l, U.Portal = r, U.Profiler = i, U.StrictMode = o, U.Suspense = d, U.isAsyncMode = function(b) {
|
|
97
|
+
return T(b) || g(b) === u;
|
|
98
|
+
}, U.isConcurrentMode = T, U.isContextConsumer = function(b) {
|
|
99
|
+
return g(b) === a;
|
|
100
|
+
}, U.isContextProvider = function(b) {
|
|
101
|
+
return g(b) === s;
|
|
102
|
+
}, U.isElement = function(b) {
|
|
103
103
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
104
|
-
},
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
return
|
|
108
|
-
},
|
|
109
|
-
return
|
|
110
|
-
},
|
|
111
|
-
return
|
|
112
|
-
},
|
|
113
|
-
return
|
|
114
|
-
},
|
|
115
|
-
return
|
|
116
|
-
},
|
|
117
|
-
return
|
|
118
|
-
},
|
|
119
|
-
return
|
|
120
|
-
},
|
|
121
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof ===
|
|
122
|
-
},
|
|
123
|
-
}
|
|
124
|
-
var
|
|
104
|
+
}, U.isForwardRef = function(b) {
|
|
105
|
+
return g(b) === f;
|
|
106
|
+
}, U.isFragment = function(b) {
|
|
107
|
+
return g(b) === n;
|
|
108
|
+
}, U.isLazy = function(b) {
|
|
109
|
+
return g(b) === v;
|
|
110
|
+
}, U.isMemo = function(b) {
|
|
111
|
+
return g(b) === l;
|
|
112
|
+
}, U.isPortal = function(b) {
|
|
113
|
+
return g(b) === r;
|
|
114
|
+
}, U.isProfiler = function(b) {
|
|
115
|
+
return g(b) === i;
|
|
116
|
+
}, U.isStrictMode = function(b) {
|
|
117
|
+
return g(b) === o;
|
|
118
|
+
}, U.isSuspense = function(b) {
|
|
119
|
+
return g(b) === d;
|
|
120
|
+
}, U.isValidElementType = function(b) {
|
|
121
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === l || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === O || b.$$typeof === A || b.$$typeof === N || b.$$typeof === p);
|
|
122
|
+
}, U.typeOf = g, U;
|
|
123
|
+
}
|
|
124
|
+
var H = {};
|
|
125
125
|
/** @license React v16.13.1
|
|
126
126
|
* react-is.development.js
|
|
127
127
|
*
|
|
@@ -133,19 +133,19 @@ var U = {};
|
|
|
133
133
|
var Ut;
|
|
134
134
|
function lr() {
|
|
135
135
|
return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
136
|
-
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, a = e ? Symbol.for("react.context") : 60110,
|
|
137
|
-
function
|
|
138
|
-
return typeof
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
function T(
|
|
142
|
-
if (typeof
|
|
143
|
-
var re =
|
|
136
|
+
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, a = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, N = e ? Symbol.for("react.scope") : 60119;
|
|
137
|
+
function g(S) {
|
|
138
|
+
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
139
|
+
S === n || S === c || S === i || S === o || S === d || S === h || typeof S == "object" && S !== null && (S.$$typeof === v || S.$$typeof === l || S.$$typeof === s || S.$$typeof === a || S.$$typeof === f || S.$$typeof === O || S.$$typeof === A || S.$$typeof === N || S.$$typeof === p);
|
|
140
|
+
}
|
|
141
|
+
function T(S) {
|
|
142
|
+
if (typeof S == "object" && S !== null) {
|
|
143
|
+
var re = S.$$typeof;
|
|
144
144
|
switch (re) {
|
|
145
145
|
case t:
|
|
146
|
-
var fe =
|
|
146
|
+
var fe = S.type;
|
|
147
147
|
switch (fe) {
|
|
148
|
-
case
|
|
148
|
+
case u:
|
|
149
149
|
case c:
|
|
150
150
|
case n:
|
|
151
151
|
case i:
|
|
@@ -158,7 +158,7 @@ function lr() {
|
|
|
158
158
|
case a:
|
|
159
159
|
case f:
|
|
160
160
|
case v:
|
|
161
|
-
case
|
|
161
|
+
case l:
|
|
162
162
|
case s:
|
|
163
163
|
return ae;
|
|
164
164
|
default:
|
|
@@ -170,48 +170,48 @@ function lr() {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
var b =
|
|
174
|
-
function R(
|
|
175
|
-
return M || (M = !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.")), m(
|
|
173
|
+
var b = u, F = c, Y = a, K = s, Q = t, X = f, z = n, B = v, te = l, G = r, I = i, L = o, V = d, M = !1;
|
|
174
|
+
function R(S) {
|
|
175
|
+
return M || (M = !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.")), m(S) || T(S) === u;
|
|
176
176
|
}
|
|
177
|
-
function m(
|
|
178
|
-
return T(
|
|
177
|
+
function m(S) {
|
|
178
|
+
return T(S) === c;
|
|
179
179
|
}
|
|
180
|
-
function x(
|
|
181
|
-
return T(
|
|
180
|
+
function x(S) {
|
|
181
|
+
return T(S) === a;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return T(
|
|
183
|
+
function $(S) {
|
|
184
|
+
return T(S) === s;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
return typeof
|
|
186
|
+
function q(S) {
|
|
187
|
+
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
188
188
|
}
|
|
189
|
-
function S
|
|
190
|
-
return T(
|
|
189
|
+
function C(S) {
|
|
190
|
+
return T(S) === f;
|
|
191
191
|
}
|
|
192
|
-
function P(
|
|
193
|
-
return T(
|
|
192
|
+
function P(S) {
|
|
193
|
+
return T(S) === n;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return T(
|
|
195
|
+
function w(S) {
|
|
196
|
+
return T(S) === v;
|
|
197
197
|
}
|
|
198
|
-
function _(
|
|
199
|
-
return T(
|
|
198
|
+
function _(S) {
|
|
199
|
+
return T(S) === l;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return T(
|
|
201
|
+
function k(S) {
|
|
202
|
+
return T(S) === r;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
return T(
|
|
204
|
+
function j(S) {
|
|
205
|
+
return T(S) === i;
|
|
206
206
|
}
|
|
207
|
-
function D(
|
|
208
|
-
return T(
|
|
207
|
+
function D(S) {
|
|
208
|
+
return T(S) === o;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
return T(
|
|
210
|
+
function J(S) {
|
|
211
|
+
return T(S) === d;
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
})()),
|
|
213
|
+
H.AsyncMode = b, H.ConcurrentMode = F, H.ContextConsumer = Y, H.ContextProvider = K, H.Element = Q, H.ForwardRef = X, H.Fragment = z, H.Lazy = B, H.Memo = te, H.Portal = G, H.Profiler = I, H.StrictMode = L, H.Suspense = V, H.isAsyncMode = R, H.isConcurrentMode = m, H.isContextConsumer = x, H.isContextProvider = $, H.isElement = q, H.isForwardRef = C, H.isFragment = P, H.isLazy = w, H.isMemo = _, H.isPortal = k, H.isProfiler = j, H.isStrictMode = D, H.isSuspense = J, H.isValidElementType = g, H.typeOf = T;
|
|
214
|
+
})()), H;
|
|
215
215
|
}
|
|
216
216
|
var Ht;
|
|
217
217
|
function Nn() {
|
|
@@ -241,10 +241,10 @@ function ur() {
|
|
|
241
241
|
return !1;
|
|
242
242
|
for (var s = {}, a = 0; a < 10; a++)
|
|
243
243
|
s["_" + String.fromCharCode(a)] = a;
|
|
244
|
-
var
|
|
244
|
+
var u = Object.getOwnPropertyNames(s).map(function(f) {
|
|
245
245
|
return s[f];
|
|
246
246
|
});
|
|
247
|
-
if (
|
|
247
|
+
if (u.join("") !== "0123456789")
|
|
248
248
|
return !1;
|
|
249
249
|
var c = {};
|
|
250
250
|
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
@@ -255,17 +255,17 @@ function ur() {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
return ct = o() ? Object.assign : function(i, s) {
|
|
258
|
-
for (var a,
|
|
258
|
+
for (var a, u = n(i), c, f = 1; f < arguments.length; f++) {
|
|
259
259
|
a = Object(arguments[f]);
|
|
260
260
|
for (var d in a)
|
|
261
|
-
t.call(a, d) && (
|
|
261
|
+
t.call(a, d) && (u[d] = a[d]);
|
|
262
262
|
if (e) {
|
|
263
263
|
c = e(a);
|
|
264
264
|
for (var h = 0; h < c.length; h++)
|
|
265
|
-
r.call(a, c[h]) && (
|
|
265
|
+
r.call(a, c[h]) && (u[c[h]] = a[c[h]]);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
return
|
|
268
|
+
return u;
|
|
269
269
|
}, ct;
|
|
270
270
|
}
|
|
271
271
|
var lt, zt;
|
|
@@ -296,7 +296,7 @@ function fr() {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function o(i, s, a,
|
|
299
|
+
function o(i, s, a, u, c) {
|
|
300
300
|
if (process.env.NODE_ENV !== "production") {
|
|
301
301
|
for (var f in i)
|
|
302
302
|
if (n(i, f)) {
|
|
@@ -304,21 +304,21 @@ function fr() {
|
|
|
304
304
|
try {
|
|
305
305
|
if (typeof i[f] != "function") {
|
|
306
306
|
var h = Error(
|
|
307
|
-
(
|
|
307
|
+
(u || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
308
308
|
);
|
|
309
309
|
throw h.name = "Invariant Violation", h;
|
|
310
310
|
}
|
|
311
|
-
d = i[f](s, f,
|
|
311
|
+
d = i[f](s, f, u, a, null, t);
|
|
312
312
|
} catch (v) {
|
|
313
313
|
d = v;
|
|
314
314
|
}
|
|
315
315
|
if (d && !(d instanceof Error) && e(
|
|
316
|
-
(
|
|
316
|
+
(u || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
317
317
|
), d instanceof Error && !(d.message in r)) {
|
|
318
318
|
r[d.message] = !0;
|
|
319
|
-
var
|
|
319
|
+
var l = c ? c() : "";
|
|
320
320
|
e(
|
|
321
|
-
"Failed " + a + " type: " + d.message + (
|
|
321
|
+
"Failed " + a + " type: " + d.message + (l ?? "")
|
|
322
322
|
);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -335,24 +335,24 @@ function dr() {
|
|
|
335
335
|
var e = Nn(), t = ur(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ kn(), o = /* @__PURE__ */ fr(), i = function() {
|
|
336
336
|
};
|
|
337
337
|
process.env.NODE_ENV !== "production" && (i = function(a) {
|
|
338
|
-
var
|
|
339
|
-
typeof console < "u" && console.error(
|
|
338
|
+
var u = "Warning: " + a;
|
|
339
|
+
typeof console < "u" && console.error(u);
|
|
340
340
|
try {
|
|
341
|
-
throw new Error(
|
|
341
|
+
throw new Error(u);
|
|
342
342
|
} catch {
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
345
|
function s() {
|
|
346
346
|
return null;
|
|
347
347
|
}
|
|
348
|
-
return dt = function(a,
|
|
348
|
+
return dt = function(a, u) {
|
|
349
349
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
350
350
|
function d(m) {
|
|
351
351
|
var x = m && (c && m[c] || m[f]);
|
|
352
352
|
if (typeof x == "function")
|
|
353
353
|
return x;
|
|
354
354
|
}
|
|
355
|
-
var h = "<<anonymous>>",
|
|
355
|
+
var h = "<<anonymous>>", l = {
|
|
356
356
|
array: A("array"),
|
|
357
357
|
bigint: A("bigint"),
|
|
358
358
|
bool: A("boolean"),
|
|
@@ -361,16 +361,16 @@ function dr() {
|
|
|
361
361
|
object: A("object"),
|
|
362
362
|
string: A("string"),
|
|
363
363
|
symbol: A("symbol"),
|
|
364
|
-
any:
|
|
365
|
-
arrayOf:
|
|
364
|
+
any: N(),
|
|
365
|
+
arrayOf: g,
|
|
366
366
|
element: T(),
|
|
367
367
|
elementType: b(),
|
|
368
|
-
instanceOf:
|
|
369
|
-
node:
|
|
370
|
-
objectOf:
|
|
371
|
-
oneOf:
|
|
368
|
+
instanceOf: F,
|
|
369
|
+
node: X(),
|
|
370
|
+
objectOf: K,
|
|
371
|
+
oneOf: Y,
|
|
372
372
|
oneOfType: Q,
|
|
373
|
-
shape:
|
|
373
|
+
shape: B,
|
|
374
374
|
exact: te
|
|
375
375
|
};
|
|
376
376
|
function v(m, x) {
|
|
@@ -382,34 +382,34 @@ function dr() {
|
|
|
382
382
|
p.prototype = Error.prototype;
|
|
383
383
|
function O(m) {
|
|
384
384
|
if (process.env.NODE_ENV !== "production")
|
|
385
|
-
var x = {},
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
if (
|
|
389
|
-
var
|
|
385
|
+
var x = {}, $ = 0;
|
|
386
|
+
function q(P, w, _, k, j, D, J) {
|
|
387
|
+
if (k = k || h, D = D || _, J !== r) {
|
|
388
|
+
if (u) {
|
|
389
|
+
var S = new Error(
|
|
390
390
|
"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"
|
|
391
391
|
);
|
|
392
|
-
throw
|
|
392
|
+
throw S.name = "Invariant Violation", S;
|
|
393
393
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
394
|
-
var re =
|
|
394
|
+
var re = k + ":" + _;
|
|
395
395
|
!x[re] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
396
|
-
|
|
397
|
-
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" +
|
|
398
|
-
), x[re] = !0,
|
|
396
|
+
$ < 3 && (i(
|
|
397
|
+
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + k + "`. 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."
|
|
398
|
+
), x[re] = !0, $++);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
return
|
|
401
|
+
return w[_] == null ? P ? w[_] === null ? new p("The " + j + " `" + D + "` is marked as required " + ("in `" + k + "`, but its value is `null`.")) : new p("The " + j + " `" + D + "` is marked as required in " + ("`" + k + "`, but its value is `undefined`.")) : null : m(w, _, k, j, D);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
return
|
|
403
|
+
var C = q.bind(null, !1);
|
|
404
|
+
return C.isRequired = q.bind(null, !0), C;
|
|
405
405
|
}
|
|
406
406
|
function A(m) {
|
|
407
|
-
function x(
|
|
408
|
-
var
|
|
409
|
-
if (
|
|
410
|
-
var D = V(
|
|
407
|
+
function x($, q, C, P, w, _) {
|
|
408
|
+
var k = $[q], j = L(k);
|
|
409
|
+
if (j !== m) {
|
|
410
|
+
var D = V(k);
|
|
411
411
|
return new p(
|
|
412
|
-
"Invalid " + P + " `" +
|
|
412
|
+
"Invalid " + P + " `" + w + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected ") + ("`" + m + "`."),
|
|
413
413
|
{ expectedType: m }
|
|
414
414
|
);
|
|
415
415
|
}
|
|
@@ -417,20 +417,20 @@ function dr() {
|
|
|
417
417
|
}
|
|
418
418
|
return O(x);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function N() {
|
|
421
421
|
return O(s);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
function x(
|
|
423
|
+
function g(m) {
|
|
424
|
+
function x($, q, C, P, w) {
|
|
425
425
|
if (typeof m != "function")
|
|
426
|
-
return new p("Property `" +
|
|
427
|
-
var _ =
|
|
426
|
+
return new p("Property `" + w + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
427
|
+
var _ = $[q];
|
|
428
428
|
if (!Array.isArray(_)) {
|
|
429
|
-
var
|
|
430
|
-
return new p("Invalid " + P + " `" +
|
|
429
|
+
var k = L(_);
|
|
430
|
+
return new p("Invalid " + P + " `" + w + "` of type " + ("`" + k + "` supplied to `" + C + "`, expected an array."));
|
|
431
431
|
}
|
|
432
|
-
for (var
|
|
433
|
-
var D = m(_,
|
|
432
|
+
for (var j = 0; j < _.length; j++) {
|
|
433
|
+
var D = m(_, j, C, P, w + "[" + j + "]", r);
|
|
434
434
|
if (D instanceof Error)
|
|
435
435
|
return D;
|
|
436
436
|
}
|
|
@@ -439,64 +439,64 @@ function dr() {
|
|
|
439
439
|
return O(x);
|
|
440
440
|
}
|
|
441
441
|
function T() {
|
|
442
|
-
function m(x,
|
|
443
|
-
var
|
|
444
|
-
if (!a(
|
|
445
|
-
var _ =
|
|
446
|
-
return new p("Invalid " +
|
|
442
|
+
function m(x, $, q, C, P) {
|
|
443
|
+
var w = x[$];
|
|
444
|
+
if (!a(w)) {
|
|
445
|
+
var _ = L(w);
|
|
446
|
+
return new p("Invalid " + C + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + q + "`, expected a single ReactElement."));
|
|
447
447
|
}
|
|
448
448
|
return null;
|
|
449
449
|
}
|
|
450
450
|
return O(m);
|
|
451
451
|
}
|
|
452
452
|
function b() {
|
|
453
|
-
function m(x,
|
|
454
|
-
var
|
|
455
|
-
if (!e.isValidElementType(
|
|
456
|
-
var _ =
|
|
457
|
-
return new p("Invalid " +
|
|
453
|
+
function m(x, $, q, C, P) {
|
|
454
|
+
var w = x[$];
|
|
455
|
+
if (!e.isValidElementType(w)) {
|
|
456
|
+
var _ = L(w);
|
|
457
|
+
return new p("Invalid " + C + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + q + "`, expected a single ReactElement type."));
|
|
458
458
|
}
|
|
459
459
|
return null;
|
|
460
460
|
}
|
|
461
461
|
return O(m);
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
function x(
|
|
465
|
-
if (!(
|
|
466
|
-
var _ = m.name || h,
|
|
467
|
-
return new p("Invalid " + P + " `" +
|
|
463
|
+
function F(m) {
|
|
464
|
+
function x($, q, C, P, w) {
|
|
465
|
+
if (!($[q] instanceof m)) {
|
|
466
|
+
var _ = m.name || h, k = R($[q]);
|
|
467
|
+
return new p("Invalid " + P + " `" + w + "` of type " + ("`" + k + "` supplied to `" + C + "`, expected ") + ("instance of `" + _ + "`."));
|
|
468
468
|
}
|
|
469
469
|
return null;
|
|
470
470
|
}
|
|
471
471
|
return O(x);
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Y(m) {
|
|
474
474
|
if (!Array.isArray(m))
|
|
475
475
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
476
476
|
"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])."
|
|
477
477
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
478
|
-
function x(
|
|
479
|
-
for (var _ =
|
|
480
|
-
if (v(_, m[
|
|
478
|
+
function x($, q, C, P, w) {
|
|
479
|
+
for (var _ = $[q], k = 0; k < m.length; k++)
|
|
480
|
+
if (v(_, m[k]))
|
|
481
481
|
return null;
|
|
482
|
-
var
|
|
483
|
-
var re = V(
|
|
484
|
-
return re === "symbol" ? String(
|
|
482
|
+
var j = JSON.stringify(m, function(J, S) {
|
|
483
|
+
var re = V(S);
|
|
484
|
+
return re === "symbol" ? String(S) : S;
|
|
485
485
|
});
|
|
486
|
-
return new p("Invalid " + P + " `" +
|
|
486
|
+
return new p("Invalid " + P + " `" + w + "` of value `" + String(_) + "` " + ("supplied to `" + C + "`, expected one of " + j + "."));
|
|
487
487
|
}
|
|
488
488
|
return O(x);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
function x(
|
|
490
|
+
function K(m) {
|
|
491
|
+
function x($, q, C, P, w) {
|
|
492
492
|
if (typeof m != "function")
|
|
493
|
-
return new p("Property `" +
|
|
494
|
-
var _ =
|
|
495
|
-
if (
|
|
496
|
-
return new p("Invalid " + P + " `" +
|
|
497
|
-
for (var
|
|
498
|
-
if (n(_,
|
|
499
|
-
var D = m(_,
|
|
493
|
+
return new p("Property `" + w + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
494
|
+
var _ = $[q], k = L(_);
|
|
495
|
+
if (k !== "object")
|
|
496
|
+
return new p("Invalid " + P + " `" + w + "` of type " + ("`" + k + "` supplied to `" + C + "`, expected an object."));
|
|
497
|
+
for (var j in _)
|
|
498
|
+
if (n(_, j)) {
|
|
499
|
+
var D = m(_, j, C, P, w + "." + j, r);
|
|
500
500
|
if (D instanceof Error)
|
|
501
501
|
return D;
|
|
502
502
|
}
|
|
@@ -508,76 +508,76 @@ function dr() {
|
|
|
508
508
|
if (!Array.isArray(m))
|
|
509
509
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
510
510
|
for (var x = 0; x < m.length; x++) {
|
|
511
|
-
var
|
|
512
|
-
if (typeof
|
|
511
|
+
var $ = m[x];
|
|
512
|
+
if (typeof $ != "function")
|
|
513
513
|
return i(
|
|
514
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(
|
|
514
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M($) + " at index " + x + "."
|
|
515
515
|
), s;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
for (var
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
517
|
+
function q(C, P, w, _, k) {
|
|
518
|
+
for (var j = [], D = 0; D < m.length; D++) {
|
|
519
|
+
var J = m[D], S = J(C, P, w, _, k, r);
|
|
520
|
+
if (S == null)
|
|
521
521
|
return null;
|
|
522
|
-
|
|
522
|
+
S.data && n(S.data, "expectedType") && j.push(S.data.expectedType);
|
|
523
523
|
}
|
|
524
|
-
var re =
|
|
525
|
-
return new p("Invalid " + _ + " `" +
|
|
524
|
+
var re = j.length > 0 ? ", expected one of type [" + j.join(", ") + "]" : "";
|
|
525
|
+
return new p("Invalid " + _ + " `" + k + "` supplied to " + ("`" + w + "`" + re + "."));
|
|
526
526
|
}
|
|
527
|
-
return O(
|
|
527
|
+
return O(q);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
function m(x,
|
|
531
|
-
return
|
|
529
|
+
function X() {
|
|
530
|
+
function m(x, $, q, C, P) {
|
|
531
|
+
return G(x[$]) ? null : new p("Invalid " + C + " `" + P + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
|
532
532
|
}
|
|
533
533
|
return O(m);
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function z(m, x, $, q, C) {
|
|
536
536
|
return new p(
|
|
537
|
-
(m || "React class") + ": " + x + " type `" +
|
|
537
|
+
(m || "React class") + ": " + x + " type `" + $ + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
538
538
|
);
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
function x(
|
|
542
|
-
var _ =
|
|
543
|
-
if (
|
|
544
|
-
return new p("Invalid " + P + " `" +
|
|
545
|
-
for (var
|
|
546
|
-
var D = m[
|
|
540
|
+
function B(m) {
|
|
541
|
+
function x($, q, C, P, w) {
|
|
542
|
+
var _ = $[q], k = L(_);
|
|
543
|
+
if (k !== "object")
|
|
544
|
+
return new p("Invalid " + P + " `" + w + "` of type `" + k + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
545
|
+
for (var j in m) {
|
|
546
|
+
var D = m[j];
|
|
547
547
|
if (typeof D != "function")
|
|
548
|
-
return
|
|
549
|
-
var
|
|
550
|
-
if (
|
|
551
|
-
return
|
|
548
|
+
return z(C, P, w, j, V(D));
|
|
549
|
+
var J = D(_, j, C, P, w + "." + j, r);
|
|
550
|
+
if (J)
|
|
551
|
+
return J;
|
|
552
552
|
}
|
|
553
553
|
return null;
|
|
554
554
|
}
|
|
555
555
|
return O(x);
|
|
556
556
|
}
|
|
557
557
|
function te(m) {
|
|
558
|
-
function x(
|
|
559
|
-
var _ =
|
|
560
|
-
if (
|
|
561
|
-
return new p("Invalid " + P + " `" +
|
|
562
|
-
var
|
|
563
|
-
for (var D in
|
|
564
|
-
var
|
|
565
|
-
if (n(m, D) && typeof
|
|
566
|
-
return
|
|
567
|
-
if (!
|
|
558
|
+
function x($, q, C, P, w) {
|
|
559
|
+
var _ = $[q], k = L(_);
|
|
560
|
+
if (k !== "object")
|
|
561
|
+
return new p("Invalid " + P + " `" + w + "` of type `" + k + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
562
|
+
var j = t({}, $[q], m);
|
|
563
|
+
for (var D in j) {
|
|
564
|
+
var J = m[D];
|
|
565
|
+
if (n(m, D) && typeof J != "function")
|
|
566
|
+
return z(C, P, w, D, V(J));
|
|
567
|
+
if (!J)
|
|
568
568
|
return new p(
|
|
569
|
-
"Invalid " + P + " `" +
|
|
569
|
+
"Invalid " + P + " `" + w + "` key `" + D + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify($[q], null, " ") + `
|
|
570
570
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
571
571
|
);
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
574
|
-
return
|
|
572
|
+
var S = J(_, D, C, P, w + "." + D, r);
|
|
573
|
+
if (S)
|
|
574
|
+
return S;
|
|
575
575
|
}
|
|
576
576
|
return null;
|
|
577
577
|
}
|
|
578
578
|
return O(x);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function G(m) {
|
|
581
581
|
switch (typeof m) {
|
|
582
582
|
case "number":
|
|
583
583
|
case "string":
|
|
@@ -587,20 +587,20 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
587
587
|
return !m;
|
|
588
588
|
case "object":
|
|
589
589
|
if (Array.isArray(m))
|
|
590
|
-
return m.every(
|
|
590
|
+
return m.every(G);
|
|
591
591
|
if (m === null || a(m))
|
|
592
592
|
return !0;
|
|
593
593
|
var x = d(m);
|
|
594
594
|
if (x) {
|
|
595
|
-
var
|
|
595
|
+
var $ = x.call(m), q;
|
|
596
596
|
if (x !== m.entries) {
|
|
597
|
-
for (; !(
|
|
598
|
-
if (!
|
|
597
|
+
for (; !(q = $.next()).done; )
|
|
598
|
+
if (!G(q.value))
|
|
599
599
|
return !1;
|
|
600
600
|
} else
|
|
601
|
-
for (; !(
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
601
|
+
for (; !(q = $.next()).done; ) {
|
|
602
|
+
var C = q.value;
|
|
603
|
+
if (C && !G(C[1]))
|
|
604
604
|
return !1;
|
|
605
605
|
}
|
|
606
606
|
} else
|
|
@@ -610,17 +610,17 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
610
610
|
return !1;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function I(m, x) {
|
|
614
614
|
return m === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function L(m) {
|
|
617
617
|
var x = typeof m;
|
|
618
|
-
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" :
|
|
618
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : I(x, m) ? "symbol" : x;
|
|
619
619
|
}
|
|
620
620
|
function V(m) {
|
|
621
621
|
if (typeof m > "u" || m === null)
|
|
622
622
|
return "" + m;
|
|
623
|
-
var x =
|
|
623
|
+
var x = L(m);
|
|
624
624
|
if (x === "object") {
|
|
625
625
|
if (m instanceof Date)
|
|
626
626
|
return "date";
|
|
@@ -646,7 +646,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
646
646
|
function R(m) {
|
|
647
647
|
return !m.constructor || !m.constructor.name ? h : m.constructor.name;
|
|
648
648
|
}
|
|
649
|
-
return
|
|
649
|
+
return l.checkPropTypes = o, l.resetWarningCache = o.resetWarningCache, l.PropTypes = l, l;
|
|
650
650
|
}, dt;
|
|
651
651
|
}
|
|
652
652
|
var pt, Jt;
|
|
@@ -659,7 +659,7 @@ function pr() {
|
|
|
659
659
|
function r() {
|
|
660
660
|
}
|
|
661
661
|
return r.resetWarningCache = t, pt = function() {
|
|
662
|
-
function n(s, a,
|
|
662
|
+
function n(s, a, u, c, f, d) {
|
|
663
663
|
if (d !== e) {
|
|
664
664
|
var h = new Error(
|
|
665
665
|
"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"
|
|
@@ -709,13 +709,13 @@ function mr() {
|
|
|
709
709
|
}
|
|
710
710
|
var hr = /* @__PURE__ */ mr();
|
|
711
711
|
const Le = /* @__PURE__ */ Pn(hr), vr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
|
|
712
|
-
const o =
|
|
713
|
-
return /* @__PURE__ */
|
|
714
|
-
/* @__PURE__ */
|
|
712
|
+
const o = Z("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
|
|
713
|
+
return /* @__PURE__ */ W("details", { className: o, id: `${n}`, children: [
|
|
714
|
+
/* @__PURE__ */ W("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
715
715
|
t,
|
|
716
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ y("span", { className: "rpf-accordion__icon" })
|
|
717
717
|
] }),
|
|
718
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ y(i, { className: "rpf-accordion__text", children: e })
|
|
719
719
|
] });
|
|
720
720
|
};
|
|
721
721
|
vr.propTypes = {
|
|
@@ -733,17 +733,25 @@ const Re = ({
|
|
|
733
733
|
variant: i = "",
|
|
734
734
|
size: s = "default",
|
|
735
735
|
icon: a = "",
|
|
736
|
-
iconOnly:
|
|
736
|
+
iconOnly: u = !1,
|
|
737
737
|
iconPosition: c = "left",
|
|
738
738
|
fullWidth: f = !1,
|
|
739
739
|
disabled: d = !1,
|
|
740
|
-
|
|
740
|
+
loading: h,
|
|
741
|
+
loadingText: l = "Loading",
|
|
742
|
+
onClick: v = () => {
|
|
741
743
|
},
|
|
742
|
-
"aria-label":
|
|
743
|
-
linkComponent:
|
|
744
|
+
"aria-label": p = "",
|
|
745
|
+
linkComponent: O
|
|
744
746
|
// to pass in react-router-dom Link component
|
|
745
747
|
}) => {
|
|
746
|
-
const
|
|
748
|
+
const A = a && u, N = !!h, g = h !== void 0, T = (L) => {
|
|
749
|
+
if (N) {
|
|
750
|
+
L.preventDefault();
|
|
751
|
+
return;
|
|
752
|
+
}
|
|
753
|
+
v == null || v(L);
|
|
754
|
+
}, b = Z(
|
|
747
755
|
// Static classes
|
|
748
756
|
"rpf-button",
|
|
749
757
|
// Conditional classes
|
|
@@ -751,39 +759,53 @@ const Re = ({
|
|
|
751
759
|
[`rpf-button--${o}`]: o,
|
|
752
760
|
"rpf-button--danger": i === "danger",
|
|
753
761
|
"rpf-button--sm": s === "small",
|
|
754
|
-
"rpf-button--icon-only":
|
|
762
|
+
"rpf-button--icon-only": A,
|
|
755
763
|
"rpf-button--full-width": f,
|
|
764
|
+
"rpf-button--loading": N,
|
|
756
765
|
disabled: d
|
|
757
766
|
},
|
|
758
767
|
n
|
|
759
768
|
);
|
|
760
|
-
let
|
|
761
|
-
or.isValidElement(a) ?
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
+
let F = "rpf-button__icon";
|
|
770
|
+
or.isValidElement(a) ? F += " icon" : F += " material-symbols-sharp";
|
|
771
|
+
const Y = (L, V) => !V || c !== L ? null : typeof V == "string" ? /* @__PURE__ */ y("span", { className: F, children: V }) : V, K = /* @__PURE__ */ y("span", { className: "rpf-button__spinner", "aria-hidden": "true" }), Q = () => A || !e && !N ? null : /* @__PURE__ */ W("span", { className: "text", children: [
|
|
772
|
+
/* @__PURE__ */ y("span", { className: N ? "text__idle--hidden" : void 0, children: e }),
|
|
773
|
+
N && /* @__PURE__ */ W("span", { className: "text__loading", children: [
|
|
774
|
+
K,
|
|
775
|
+
l
|
|
776
|
+
] })
|
|
777
|
+
] }), X = /* @__PURE__ */ W(Pe, { children: [
|
|
778
|
+
N ? A ? K : null : Y("left", a),
|
|
779
|
+
Q(),
|
|
780
|
+
!N && Y("right", a)
|
|
781
|
+
] }), z = N && (A || p) ? [p, l].filter(Boolean).join(", ") : p, B = N ? !0 : void 0, te = N ? !0 : void 0, I = t ? /* @__PURE__ */ y(
|
|
782
|
+
O || "a",
|
|
769
783
|
{
|
|
770
|
-
className:
|
|
771
|
-
...
|
|
772
|
-
onClick:
|
|
773
|
-
"aria-label":
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
784
|
+
className: b,
|
|
785
|
+
...O ? { to: t } : { href: t, role: "button" },
|
|
786
|
+
onClick: T,
|
|
787
|
+
"aria-label": z,
|
|
788
|
+
"aria-disabled": B,
|
|
789
|
+
"aria-busy": te,
|
|
790
|
+
children: X
|
|
791
|
+
}
|
|
792
|
+
) : /* @__PURE__ */ y(
|
|
777
793
|
"button",
|
|
778
794
|
{
|
|
779
|
-
className:
|
|
795
|
+
className: b,
|
|
780
796
|
title: r,
|
|
781
|
-
onClick:
|
|
797
|
+
onClick: T,
|
|
782
798
|
disabled: d,
|
|
783
|
-
"aria-label":
|
|
784
|
-
|
|
799
|
+
"aria-label": z,
|
|
800
|
+
"aria-disabled": B,
|
|
801
|
+
"aria-busy": te,
|
|
802
|
+
children: X
|
|
785
803
|
}
|
|
786
804
|
);
|
|
805
|
+
return g ? /* @__PURE__ */ W(Pe, { children: [
|
|
806
|
+
I,
|
|
807
|
+
/* @__PURE__ */ y("span", { className: "rpf-visually-hidden", role: "status", children: N ? l : "" })
|
|
808
|
+
] }) : I;
|
|
787
809
|
}, Ni = ({
|
|
788
810
|
title: e,
|
|
789
811
|
text: t,
|
|
@@ -792,11 +814,11 @@ const Re = ({
|
|
|
792
814
|
type: o,
|
|
793
815
|
actions: i,
|
|
794
816
|
onClose: s
|
|
795
|
-
}) => /* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
r ? /* @__PURE__ */
|
|
799
|
-
!!s && /* @__PURE__ */
|
|
817
|
+
}) => /* @__PURE__ */ W("div", { className: `rpf-alert rpf-alert--${o}`, children: [
|
|
818
|
+
/* @__PURE__ */ W("div", { className: "rpf-alert__header", children: [
|
|
819
|
+
/* @__PURE__ */ y("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
820
|
+
r ? /* @__PURE__ */ y("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ y("p", { className: "rpf-alert__title", children: e }) : null,
|
|
821
|
+
!!s && /* @__PURE__ */ y("div", { className: "rpf-alert__close", children: /* @__PURE__ */ y(
|
|
800
822
|
Re,
|
|
801
823
|
{
|
|
802
824
|
type: "tertiary",
|
|
@@ -807,9 +829,9 @@ const Re = ({
|
|
|
807
829
|
}
|
|
808
830
|
) })
|
|
809
831
|
] }),
|
|
810
|
-
(t || n || i) && /* @__PURE__ */
|
|
811
|
-
t ? /* @__PURE__ */
|
|
812
|
-
i && i.length > 0 && /* @__PURE__ */
|
|
832
|
+
(t || n || i) && /* @__PURE__ */ W("div", { className: "rpf-alert__body", children: [
|
|
833
|
+
t ? /* @__PURE__ */ y("p", { children: t }) : n ? /* @__PURE__ */ y("div", { children: n }) : null,
|
|
834
|
+
i && i.length > 0 && /* @__PURE__ */ y("div", { className: "rpf-alert__actions", children: i.map((a, u) => /* @__PURE__ */ y(
|
|
813
835
|
Re,
|
|
814
836
|
{
|
|
815
837
|
text: a.label,
|
|
@@ -818,7 +840,7 @@ const Re = ({
|
|
|
818
840
|
href: a.href,
|
|
819
841
|
onClick: a.onClick
|
|
820
842
|
},
|
|
821
|
-
|
|
843
|
+
u
|
|
822
844
|
)) })
|
|
823
845
|
] })
|
|
824
846
|
] }), ki = ({
|
|
@@ -829,22 +851,22 @@ const Re = ({
|
|
|
829
851
|
...o
|
|
830
852
|
}) => {
|
|
831
853
|
const { className: i, ...s } = o;
|
|
832
|
-
return /* @__PURE__ */
|
|
833
|
-
/* @__PURE__ */
|
|
854
|
+
return /* @__PURE__ */ W(Pe, { children: [
|
|
855
|
+
/* @__PURE__ */ W(
|
|
834
856
|
"label",
|
|
835
857
|
{
|
|
836
|
-
className:
|
|
858
|
+
className: Z("rpf-input-checkbox", {
|
|
837
859
|
"rpf-input-checkbox--error": n,
|
|
838
860
|
className: i
|
|
839
861
|
}),
|
|
840
862
|
children: [
|
|
841
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ y("input", { id: t, name: r, type: "checkbox", ...s }),
|
|
842
864
|
e
|
|
843
865
|
]
|
|
844
866
|
}
|
|
845
867
|
),
|
|
846
|
-
n && /* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */
|
|
868
|
+
n && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
|
|
869
|
+
/* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
848
870
|
n
|
|
849
871
|
] })
|
|
850
872
|
] });
|
|
@@ -855,23 +877,23 @@ const Re = ({
|
|
|
855
877
|
legendText: n,
|
|
856
878
|
legendHintText: o = "",
|
|
857
879
|
children: i
|
|
858
|
-
}) => /* @__PURE__ */
|
|
880
|
+
}) => /* @__PURE__ */ W(
|
|
859
881
|
"fieldset",
|
|
860
882
|
{
|
|
861
|
-
className:
|
|
883
|
+
className: Z("rpf-fieldset", {
|
|
862
884
|
"rpf-fieldset--disabled": e,
|
|
863
885
|
"rpf-fieldset--full-width": r,
|
|
864
886
|
"rpf-fieldset--error": t
|
|
865
887
|
}),
|
|
866
888
|
disabled: e,
|
|
867
889
|
children: [
|
|
868
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ W("legend", { className: "rpf-label", children: [
|
|
869
891
|
n,
|
|
870
|
-
o.length > 0 ? /* @__PURE__ */
|
|
892
|
+
o.length > 0 ? /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: o }) : null
|
|
871
893
|
] }),
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
t.length > 0 ? /* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ y("div", { className: "rpf-fieldset__inputs", children: i }),
|
|
895
|
+
t.length > 0 ? /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
|
|
896
|
+
/* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
875
897
|
t
|
|
876
898
|
] }) : null
|
|
877
899
|
]
|
|
@@ -883,23 +905,23 @@ const Re = ({
|
|
|
883
905
|
disabled: n = !1,
|
|
884
906
|
error: o = "",
|
|
885
907
|
hint: i = ""
|
|
886
|
-
}) => /* @__PURE__ */
|
|
887
|
-
(t || i) && /* @__PURE__ */
|
|
908
|
+
}) => /* @__PURE__ */ W("div", { className: "rpf-input-field", children: [
|
|
909
|
+
(t || i) && /* @__PURE__ */ W(
|
|
888
910
|
"label",
|
|
889
911
|
{
|
|
890
912
|
htmlFor: e,
|
|
891
|
-
className:
|
|
913
|
+
className: Z("rpf-label", {
|
|
892
914
|
"rpf-label--disabled": n
|
|
893
915
|
}),
|
|
894
916
|
children: [
|
|
895
917
|
t,
|
|
896
|
-
/* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ y("small", { className: "rpf-label__hint", children: i })
|
|
897
919
|
]
|
|
898
920
|
}
|
|
899
921
|
),
|
|
900
922
|
r,
|
|
901
|
-
o && /* @__PURE__ */
|
|
902
|
-
/* @__PURE__ */
|
|
923
|
+
o && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
|
|
924
|
+
/* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
903
925
|
o
|
|
904
926
|
] })
|
|
905
927
|
] }), Mi = ({
|
|
@@ -907,16 +929,16 @@ const Re = ({
|
|
|
907
929
|
inputFieldId: t,
|
|
908
930
|
disabled: r = !1,
|
|
909
931
|
hint: n = ""
|
|
910
|
-
}) => /* @__PURE__ */
|
|
932
|
+
}) => /* @__PURE__ */ y("div", { className: "rpf-label", children: /* @__PURE__ */ W(
|
|
911
933
|
"label",
|
|
912
934
|
{
|
|
913
935
|
htmlFor: t,
|
|
914
|
-
className:
|
|
936
|
+
className: Z("rpf-label", {
|
|
915
937
|
"rpf-label--disabled": r
|
|
916
938
|
}),
|
|
917
939
|
children: [
|
|
918
940
|
e,
|
|
919
|
-
n && /* @__PURE__ */
|
|
941
|
+
n && /* @__PURE__ */ y("div", { className: "rpf-label__hint", children: n })
|
|
920
942
|
]
|
|
921
943
|
}
|
|
922
944
|
) }), Di = ({
|
|
@@ -928,41 +950,41 @@ const Re = ({
|
|
|
928
950
|
id: i,
|
|
929
951
|
hint: s = "",
|
|
930
952
|
showPasswordLabel: a = "Show",
|
|
931
|
-
hidePasswordLabel:
|
|
953
|
+
hidePasswordLabel: u = "Hide",
|
|
932
954
|
forgotPasswordLabel: c = "Forgot password?",
|
|
933
955
|
forgotPasswordHref: f,
|
|
934
956
|
...d
|
|
935
957
|
}) => {
|
|
936
|
-
const [h,
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
958
|
+
const [h, l] = On(!1);
|
|
959
|
+
return /* @__PURE__ */ W("div", { className: "rpf-input-field", children: [
|
|
960
|
+
/* @__PURE__ */ W(
|
|
939
961
|
"label",
|
|
940
962
|
{
|
|
941
963
|
htmlFor: i,
|
|
942
|
-
className:
|
|
964
|
+
className: Z("rpf-label", {
|
|
943
965
|
"rpf-label--disabled": e,
|
|
944
966
|
"rpf-label--readonly": t
|
|
945
967
|
}),
|
|
946
968
|
children: [
|
|
947
969
|
o,
|
|
948
|
-
s && /* @__PURE__ */
|
|
970
|
+
s && /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: s })
|
|
949
971
|
]
|
|
950
972
|
}
|
|
951
973
|
),
|
|
952
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ W(
|
|
953
975
|
"div",
|
|
954
976
|
{
|
|
955
|
-
className:
|
|
977
|
+
className: Z("rpf-input-password__container", {
|
|
956
978
|
"rpf-input-password__container--full-width": r,
|
|
957
979
|
"rpf-input-password__container--error": n,
|
|
958
980
|
"rpf-input-password__container--disabled": e,
|
|
959
981
|
"rpf-input-password__container--readonly": t
|
|
960
982
|
}),
|
|
961
983
|
children: [
|
|
962
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ y(
|
|
963
985
|
"input",
|
|
964
986
|
{
|
|
965
|
-
className:
|
|
987
|
+
className: Z("rpf-input rpf-input-password", {
|
|
966
988
|
"rpf-input--disabled": e,
|
|
967
989
|
"rpf-input--readonly": t,
|
|
968
990
|
"rpf-input--error": n,
|
|
@@ -975,11 +997,11 @@ const Re = ({
|
|
|
975
997
|
...d
|
|
976
998
|
}
|
|
977
999
|
),
|
|
978
|
-
/* @__PURE__ */
|
|
1000
|
+
/* @__PURE__ */ y(
|
|
979
1001
|
"button",
|
|
980
1002
|
{
|
|
981
1003
|
type: "button",
|
|
982
|
-
className:
|
|
1004
|
+
className: Z(
|
|
983
1005
|
"rpf-button rpf-button--tertiary rpf-input-password__button",
|
|
984
1006
|
{
|
|
985
1007
|
"rpf-button--disabled": e,
|
|
@@ -987,18 +1009,18 @@ const Re = ({
|
|
|
987
1009
|
}
|
|
988
1010
|
),
|
|
989
1011
|
disabled: e,
|
|
990
|
-
onClick: () =>
|
|
991
|
-
children: h ?
|
|
1012
|
+
onClick: () => l((v) => !v),
|
|
1013
|
+
children: h ? u : a
|
|
992
1014
|
}
|
|
993
1015
|
)
|
|
994
1016
|
]
|
|
995
1017
|
}
|
|
996
1018
|
),
|
|
997
|
-
n && /* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
1019
|
+
n && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
|
|
1020
|
+
/* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
999
1021
|
n
|
|
1000
1022
|
] }),
|
|
1001
|
-
f && /* @__PURE__ */
|
|
1023
|
+
f && /* @__PURE__ */ y("a", { href: f, className: "rpf-link rpf-link--block", children: c })
|
|
1002
1024
|
] });
|
|
1003
1025
|
}, Li = ({
|
|
1004
1026
|
label: e,
|
|
@@ -1006,15 +1028,15 @@ const Re = ({
|
|
|
1006
1028
|
name: r,
|
|
1007
1029
|
fullWidth: n = !1,
|
|
1008
1030
|
...o
|
|
1009
|
-
}) => /* @__PURE__ */
|
|
1031
|
+
}) => /* @__PURE__ */ W(
|
|
1010
1032
|
"label",
|
|
1011
1033
|
{
|
|
1012
|
-
className:
|
|
1034
|
+
className: Z("rpf-input-radio", {
|
|
1013
1035
|
"rpf-input-radio--disabled": o.disabled,
|
|
1014
1036
|
"rpf-input--full-width": n
|
|
1015
1037
|
}),
|
|
1016
1038
|
children: [
|
|
1017
|
-
/* @__PURE__ */
|
|
1039
|
+
/* @__PURE__ */ y("input", { type: "radio", id: t, name: r, ...o }),
|
|
1018
1040
|
e
|
|
1019
1041
|
]
|
|
1020
1042
|
}
|
|
@@ -1028,27 +1050,27 @@ const Re = ({
|
|
|
1028
1050
|
defaultValue: s = "",
|
|
1029
1051
|
onClick: a = () => {
|
|
1030
1052
|
},
|
|
1031
|
-
onChange:
|
|
1053
|
+
onChange: u = () => {
|
|
1032
1054
|
}
|
|
1033
|
-
}) => /* @__PURE__ */
|
|
1034
|
-
/* @__PURE__ */
|
|
1055
|
+
}) => /* @__PURE__ */ y("search", { children: /* @__PURE__ */ W("form", { className: "rpf-input-field", onSubmit: a, children: [
|
|
1056
|
+
/* @__PURE__ */ W(
|
|
1035
1057
|
"label",
|
|
1036
1058
|
{
|
|
1037
1059
|
htmlFor: t,
|
|
1038
|
-
className:
|
|
1060
|
+
className: Z("rpf-label", {
|
|
1039
1061
|
"rpf-label--disabled": r
|
|
1040
1062
|
}),
|
|
1041
1063
|
children: [
|
|
1042
1064
|
e,
|
|
1043
|
-
o && /* @__PURE__ */
|
|
1065
|
+
o && /* @__PURE__ */ y("small", { className: "rpf-label__hint", children: o })
|
|
1044
1066
|
]
|
|
1045
1067
|
}
|
|
1046
1068
|
),
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ W("div", { className: "rpf-input-search-container", children: [
|
|
1070
|
+
/* @__PURE__ */ y(
|
|
1049
1071
|
"input",
|
|
1050
1072
|
{
|
|
1051
|
-
className:
|
|
1073
|
+
className: Z("rpf-input rpf-input-search", {
|
|
1052
1074
|
"rpf-input--disabled": r,
|
|
1053
1075
|
"rpf-input--error": n
|
|
1054
1076
|
}),
|
|
@@ -1059,25 +1081,25 @@ const Re = ({
|
|
|
1059
1081
|
"aria-label": "Search",
|
|
1060
1082
|
defaultValue: s,
|
|
1061
1083
|
placeholder: i,
|
|
1062
|
-
onChange:
|
|
1084
|
+
onChange: u
|
|
1063
1085
|
}
|
|
1064
1086
|
),
|
|
1065
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ y(
|
|
1066
1088
|
"button",
|
|
1067
1089
|
{
|
|
1068
1090
|
type: "submit",
|
|
1069
|
-
className:
|
|
1091
|
+
className: Z("rpf-button rpf-button-search", {
|
|
1070
1092
|
"rpf-button--disabled": r,
|
|
1071
1093
|
"rpf-button--error": n
|
|
1072
1094
|
}),
|
|
1073
1095
|
disabled: r,
|
|
1074
1096
|
onClick: a,
|
|
1075
|
-
children: /* @__PURE__ */
|
|
1097
|
+
children: /* @__PURE__ */ y("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
|
|
1076
1098
|
}
|
|
1077
1099
|
)
|
|
1078
1100
|
] }),
|
|
1079
|
-
n && /* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1101
|
+
n && /* @__PURE__ */ W("div", { className: "rpf-error-message", children: [
|
|
1102
|
+
/* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
1081
1103
|
n
|
|
1082
1104
|
] })
|
|
1083
1105
|
] }) }), $i = ({
|
|
@@ -1089,12 +1111,12 @@ const Re = ({
|
|
|
1089
1111
|
error: i = "",
|
|
1090
1112
|
fullWidth: s = !1,
|
|
1091
1113
|
hint: a = "",
|
|
1092
|
-
onChange:
|
|
1114
|
+
onChange: u = () => {
|
|
1093
1115
|
},
|
|
1094
1116
|
placeholder: c = "",
|
|
1095
1117
|
value: f = "",
|
|
1096
1118
|
...d
|
|
1097
|
-
}) => /* @__PURE__ */
|
|
1119
|
+
}) => /* @__PURE__ */ y(
|
|
1098
1120
|
Dt,
|
|
1099
1121
|
{
|
|
1100
1122
|
id: e,
|
|
@@ -1102,22 +1124,22 @@ const Re = ({
|
|
|
1102
1124
|
error: i,
|
|
1103
1125
|
hint: a,
|
|
1104
1126
|
label: t,
|
|
1105
|
-
children: /* @__PURE__ */
|
|
1127
|
+
children: /* @__PURE__ */ W(
|
|
1106
1128
|
"select",
|
|
1107
1129
|
{
|
|
1108
|
-
className:
|
|
1130
|
+
className: Z("rpf-input rpf-input-select", {
|
|
1109
1131
|
"rpf-input--error": i,
|
|
1110
1132
|
"rpf-input--full-width": s
|
|
1111
1133
|
}),
|
|
1112
1134
|
disabled: o,
|
|
1113
1135
|
id: e,
|
|
1114
1136
|
name: r,
|
|
1115
|
-
onChange:
|
|
1137
|
+
onChange: u,
|
|
1116
1138
|
value: f,
|
|
1117
1139
|
...d,
|
|
1118
1140
|
children: [
|
|
1119
|
-
!f && !!c && /* @__PURE__ */
|
|
1120
|
-
n.map((h) => /* @__PURE__ */
|
|
1141
|
+
!f && !!c && /* @__PURE__ */ y("option", { value: "", disabled: !0, children: c }),
|
|
1142
|
+
n.map((h) => /* @__PURE__ */ y("option", { value: h.key, children: h.value }, h.key))
|
|
1121
1143
|
]
|
|
1122
1144
|
}
|
|
1123
1145
|
)
|
|
@@ -1132,19 +1154,19 @@ const Re = ({
|
|
|
1132
1154
|
reverse: i = !1,
|
|
1133
1155
|
hint: s = "",
|
|
1134
1156
|
alignStart: a = !1,
|
|
1135
|
-
hideLabel:
|
|
1157
|
+
hideLabel: u = !1,
|
|
1136
1158
|
icon: c = !1,
|
|
1137
1159
|
className: f,
|
|
1138
1160
|
disabled: d = !1,
|
|
1139
1161
|
"aria-describedby": h,
|
|
1140
|
-
...
|
|
1162
|
+
...l
|
|
1141
1163
|
}, v) => {
|
|
1142
1164
|
const p = n ? `${t}-error` : void 0, O = [h, p].filter(Boolean).join(" ") || void 0;
|
|
1143
|
-
return /* @__PURE__ */
|
|
1144
|
-
/* @__PURE__ */
|
|
1165
|
+
return /* @__PURE__ */ W("div", { className: "rpf-input-field", children: [
|
|
1166
|
+
/* @__PURE__ */ W(
|
|
1145
1167
|
"label",
|
|
1146
1168
|
{
|
|
1147
|
-
className:
|
|
1169
|
+
className: Z(
|
|
1148
1170
|
"rpf-switch",
|
|
1149
1171
|
{
|
|
1150
1172
|
"rpf-switch--full-width": o,
|
|
@@ -1157,8 +1179,8 @@ const Re = ({
|
|
|
1157
1179
|
f
|
|
1158
1180
|
),
|
|
1159
1181
|
children: [
|
|
1160
|
-
/* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ W("span", { className: "rpf-switch__track", children: [
|
|
1183
|
+
/* @__PURE__ */ y(
|
|
1162
1184
|
"input",
|
|
1163
1185
|
{
|
|
1164
1186
|
ref: v,
|
|
@@ -1170,29 +1192,29 @@ const Re = ({
|
|
|
1170
1192
|
disabled: d,
|
|
1171
1193
|
"aria-invalid": n ? !0 : void 0,
|
|
1172
1194
|
"aria-describedby": O,
|
|
1173
|
-
...
|
|
1195
|
+
...l
|
|
1174
1196
|
}
|
|
1175
1197
|
),
|
|
1176
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ y("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ y("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
|
|
1177
1199
|
] }),
|
|
1178
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ W(
|
|
1179
1201
|
"span",
|
|
1180
1202
|
{
|
|
1181
|
-
className:
|
|
1203
|
+
className: Z("rpf-label", "rpf-switch__label", {
|
|
1182
1204
|
"rpf-label--disabled": d,
|
|
1183
|
-
"rpf-visually-hidden":
|
|
1205
|
+
"rpf-visually-hidden": u
|
|
1184
1206
|
}),
|
|
1185
1207
|
children: [
|
|
1186
|
-
/* @__PURE__ */
|
|
1187
|
-
s ? /* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ y("span", { children: e }),
|
|
1209
|
+
s ? /* @__PURE__ */ y("span", { className: "rpf-label__hint", children: s }) : null
|
|
1188
1210
|
]
|
|
1189
1211
|
}
|
|
1190
1212
|
)
|
|
1191
1213
|
]
|
|
1192
1214
|
}
|
|
1193
1215
|
),
|
|
1194
|
-
n ? /* @__PURE__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1216
|
+
n ? /* @__PURE__ */ W("div", { id: p, className: "rpf-error-message", children: [
|
|
1217
|
+
/* @__PURE__ */ y("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
1196
1218
|
n
|
|
1197
1219
|
] }) : null
|
|
1198
1220
|
] });
|
|
@@ -1208,21 +1230,21 @@ const ji = ({
|
|
|
1208
1230
|
readOnly: i = !1,
|
|
1209
1231
|
error: s = "",
|
|
1210
1232
|
fullWidth: a = !1,
|
|
1211
|
-
hint:
|
|
1233
|
+
hint: u = "",
|
|
1212
1234
|
onChange: c = () => {
|
|
1213
1235
|
}
|
|
1214
|
-
}) => /* @__PURE__ */
|
|
1236
|
+
}) => /* @__PURE__ */ y(
|
|
1215
1237
|
Dt,
|
|
1216
1238
|
{
|
|
1217
1239
|
id: e,
|
|
1218
1240
|
disabled: o,
|
|
1219
1241
|
error: s,
|
|
1220
|
-
hint:
|
|
1242
|
+
hint: u,
|
|
1221
1243
|
label: t,
|
|
1222
|
-
children: /* @__PURE__ */
|
|
1244
|
+
children: /* @__PURE__ */ y(
|
|
1223
1245
|
"textarea",
|
|
1224
1246
|
{
|
|
1225
|
-
className:
|
|
1247
|
+
className: Z("rpf-input rpf-input-textarea", {
|
|
1226
1248
|
"rpf-input--error": s,
|
|
1227
1249
|
"rpf-input--full-width": a,
|
|
1228
1250
|
"rpf-input--disabled": o
|
|
@@ -1245,7 +1267,7 @@ const ji = ({
|
|
|
1245
1267
|
hint: i = "",
|
|
1246
1268
|
type: s = "text",
|
|
1247
1269
|
...a
|
|
1248
|
-
}) => /* @__PURE__ */
|
|
1270
|
+
}) => /* @__PURE__ */ y(
|
|
1249
1271
|
Dt,
|
|
1250
1272
|
{
|
|
1251
1273
|
id: e,
|
|
@@ -1253,10 +1275,10 @@ const ji = ({
|
|
|
1253
1275
|
error: n,
|
|
1254
1276
|
hint: i,
|
|
1255
1277
|
label: r,
|
|
1256
|
-
children: /* @__PURE__ */
|
|
1278
|
+
children: /* @__PURE__ */ y(
|
|
1257
1279
|
"input",
|
|
1258
1280
|
{
|
|
1259
|
-
className:
|
|
1281
|
+
className: Z("rpf-input rpf-input-text", {
|
|
1260
1282
|
"rpf-input--error": n,
|
|
1261
1283
|
"rpf-input--full-width": o
|
|
1262
1284
|
}),
|
|
@@ -1300,25 +1322,25 @@ const Bi = ({
|
|
|
1300
1322
|
primaryButtonText: i,
|
|
1301
1323
|
onClickPrimaryButton: s,
|
|
1302
1324
|
secondaryButtonText: a,
|
|
1303
|
-
secondaryButtonLink:
|
|
1325
|
+
secondaryButtonLink: u,
|
|
1304
1326
|
onClickSecondaryButton: c,
|
|
1305
1327
|
tertiaryButtonText: f,
|
|
1306
1328
|
tertiaryButtonLink: d,
|
|
1307
1329
|
onClickTertiaryButton: h,
|
|
1308
|
-
showCloseButton:
|
|
1330
|
+
showCloseButton: l = !0
|
|
1309
1331
|
}) => {
|
|
1310
1332
|
const { dialogRef: v, contentRef: p } = yr(e, t);
|
|
1311
|
-
return /* @__PURE__ */
|
|
1333
|
+
return /* @__PURE__ */ y(
|
|
1312
1334
|
"dialog",
|
|
1313
1335
|
{
|
|
1314
1336
|
ref: v,
|
|
1315
1337
|
className: "rpf-modal",
|
|
1316
1338
|
"aria-labelledby": "modal-heading",
|
|
1317
1339
|
"aria-describedby": "modal-description",
|
|
1318
|
-
children: /* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
|
|
1340
|
+
children: /* @__PURE__ */ W("div", { ref: p, className: "rpf-modal__wrapper", children: [
|
|
1341
|
+
/* @__PURE__ */ W("div", { className: "rpf-modal__header", children: [
|
|
1342
|
+
/* @__PURE__ */ y("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
|
|
1343
|
+
l && /* @__PURE__ */ y(
|
|
1322
1344
|
Re,
|
|
1323
1345
|
{
|
|
1324
1346
|
icon: "close",
|
|
@@ -1329,9 +1351,9 @@ const Bi = ({
|
|
|
1329
1351
|
}
|
|
1330
1352
|
)
|
|
1331
1353
|
] }),
|
|
1332
|
-
/* @__PURE__ */
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ y("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
|
|
1355
|
+
/* @__PURE__ */ W("div", { className: "rpf-modal__buttons", children: [
|
|
1356
|
+
/* @__PURE__ */ y(
|
|
1335
1357
|
Re,
|
|
1336
1358
|
{
|
|
1337
1359
|
text: i,
|
|
@@ -1340,16 +1362,16 @@ const Bi = ({
|
|
|
1340
1362
|
type: "primary"
|
|
1341
1363
|
}
|
|
1342
1364
|
),
|
|
1343
|
-
a && /* @__PURE__ */
|
|
1365
|
+
a && /* @__PURE__ */ y(
|
|
1344
1366
|
Re,
|
|
1345
1367
|
{
|
|
1346
1368
|
text: a,
|
|
1347
|
-
href:
|
|
1369
|
+
href: u,
|
|
1348
1370
|
onClick: c,
|
|
1349
1371
|
type: "secondary"
|
|
1350
1372
|
}
|
|
1351
1373
|
),
|
|
1352
|
-
f && /* @__PURE__ */
|
|
1374
|
+
f && /* @__PURE__ */ y(
|
|
1353
1375
|
Re,
|
|
1354
1376
|
{
|
|
1355
1377
|
text: f,
|
|
@@ -1363,8 +1385,8 @@ const Bi = ({
|
|
|
1363
1385
|
}
|
|
1364
1386
|
);
|
|
1365
1387
|
}, gr = ({ className: e, children: t }) => {
|
|
1366
|
-
const r =
|
|
1367
|
-
return /* @__PURE__ */
|
|
1388
|
+
const r = Z("rpf-menu", e);
|
|
1389
|
+
return /* @__PURE__ */ y("ul", { className: r, children: t });
|
|
1368
1390
|
};
|
|
1369
1391
|
function Qe() {
|
|
1370
1392
|
return typeof window < "u";
|
|
@@ -1389,7 +1411,7 @@ function ee(e) {
|
|
|
1389
1411
|
function ne(e) {
|
|
1390
1412
|
return Qe() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
|
|
1391
1413
|
}
|
|
1392
|
-
function
|
|
1414
|
+
function Ct(e) {
|
|
1393
1415
|
return !Qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
|
|
1394
1416
|
}
|
|
1395
1417
|
function Ie(e) {
|
|
@@ -1458,10 +1480,10 @@ function pe(e) {
|
|
|
1458
1480
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1459
1481
|
e.assignedSlot || // DOM Element detected.
|
|
1460
1482
|
e.parentNode || // ShadowRoot detected.
|
|
1461
|
-
|
|
1483
|
+
Ct(e) && e.host || // Fallback.
|
|
1462
1484
|
ue(e)
|
|
1463
1485
|
);
|
|
1464
|
-
return
|
|
1486
|
+
return Ct(t) ? t.host : t;
|
|
1465
1487
|
}
|
|
1466
1488
|
function Mn(e) {
|
|
1467
1489
|
const t = pe(e);
|
|
@@ -1472,12 +1494,12 @@ function ve(e, t, r) {
|
|
|
1472
1494
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
1473
1495
|
const o = Mn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
|
|
1474
1496
|
if (i) {
|
|
1475
|
-
const a =
|
|
1497
|
+
const a = St(s);
|
|
1476
1498
|
return t.concat(s, s.visualViewport || [], Ie(o) ? o : [], a && r ? ve(a) : []);
|
|
1477
1499
|
} else
|
|
1478
1500
|
return t.concat(o, ve(o, [], r));
|
|
1479
1501
|
}
|
|
1480
|
-
function
|
|
1502
|
+
function St(e) {
|
|
1481
1503
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1482
1504
|
}
|
|
1483
1505
|
function we(e) {
|
|
@@ -1494,7 +1516,7 @@ function oe(e, t) {
|
|
|
1494
1516
|
const r = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
1495
1517
|
if (e.contains(t))
|
|
1496
1518
|
return !0;
|
|
1497
|
-
if (r &&
|
|
1519
|
+
if (r && Ct(r)) {
|
|
1498
1520
|
let n = t;
|
|
1499
1521
|
for (; n; ) {
|
|
1500
1522
|
if (e === n)
|
|
@@ -1518,10 +1540,10 @@ function Dn() {
|
|
|
1518
1540
|
return r + "/" + n;
|
|
1519
1541
|
}).join(" ") : navigator.userAgent;
|
|
1520
1542
|
}
|
|
1521
|
-
function
|
|
1543
|
+
function Cr(e) {
|
|
1522
1544
|
return e.mozInputSource === 0 && e.isTrusted ? !0 : _t() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1523
1545
|
}
|
|
1524
|
-
function
|
|
1546
|
+
function Sr(e) {
|
|
1525
1547
|
return Or() ? !1 : !_t() && e.width === 0 && e.height === 0 || _t() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
1526
1548
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
1527
1549
|
}
|
|
@@ -1583,7 +1605,7 @@ function tn(e, t, r) {
|
|
|
1583
1605
|
function rt(e, t) {
|
|
1584
1606
|
return typeof e == "function" ? e(t) : e;
|
|
1585
1607
|
}
|
|
1586
|
-
function
|
|
1608
|
+
function Ce(e) {
|
|
1587
1609
|
return e.split("-")[0];
|
|
1588
1610
|
}
|
|
1589
1611
|
function ot(e) {
|
|
@@ -1630,11 +1652,11 @@ function $r(e, t, r) {
|
|
|
1630
1652
|
}
|
|
1631
1653
|
function jr(e, t, r, n) {
|
|
1632
1654
|
const o = ot(e);
|
|
1633
|
-
let i = $r(
|
|
1655
|
+
let i = $r(Ce(e), r === "start", n);
|
|
1634
1656
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ot)))), i;
|
|
1635
1657
|
}
|
|
1636
1658
|
function Ye(e) {
|
|
1637
|
-
const t =
|
|
1659
|
+
const t = Ce(e);
|
|
1638
1660
|
return Ir[t] + e.slice(t.length);
|
|
1639
1661
|
}
|
|
1640
1662
|
function Wr(e) {
|
|
@@ -1676,7 +1698,7 @@ function Ue(e) {
|
|
|
1676
1698
|
* tabbable 6.4.0
|
|
1677
1699
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1678
1700
|
*/
|
|
1679
|
-
var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), Wn = typeof Element > "u",
|
|
1701
|
+
var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), Wn = typeof Element > "u", Ne = Wn ? function() {
|
|
1680
1702
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !Wn && Element.prototype.getRootNode ? function(e) {
|
|
1681
1703
|
var t;
|
|
1682
1704
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -1696,27 +1718,27 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1696
1718
|
if (ze(t))
|
|
1697
1719
|
return [];
|
|
1698
1720
|
var o = Array.prototype.slice.apply(t.querySelectorAll(He));
|
|
1699
|
-
return r &&
|
|
1721
|
+
return r && Ne.call(t, He) && o.unshift(t), o = o.filter(n), o;
|
|
1700
1722
|
}, At = function(t, r, n) {
|
|
1701
1723
|
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1702
1724
|
var s = i.shift();
|
|
1703
1725
|
if (!ze(s, !1))
|
|
1704
1726
|
if (s.tagName === "SLOT") {
|
|
1705
|
-
var a = s.assignedElements(),
|
|
1727
|
+
var a = s.assignedElements(), u = a.length ? a : s.children, c = At(u, !0, n);
|
|
1706
1728
|
n.flatten ? o.push.apply(o, c) : o.push({
|
|
1707
1729
|
scopeParent: s,
|
|
1708
1730
|
candidates: c
|
|
1709
1731
|
});
|
|
1710
1732
|
} else {
|
|
1711
|
-
var f =
|
|
1733
|
+
var f = Ne.call(s, He);
|
|
1712
1734
|
f && n.filter(s) && (r || !t.includes(s)) && o.push(s);
|
|
1713
1735
|
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
1714
1736
|
typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !ze(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
|
|
1715
1737
|
if (d && h) {
|
|
1716
|
-
var
|
|
1717
|
-
n.flatten ? o.push.apply(o,
|
|
1738
|
+
var l = At(d === !0 ? s.children : d.children, !0, n);
|
|
1739
|
+
n.flatten ? o.push.apply(o, l) : o.push({
|
|
1718
1740
|
scopeParent: s,
|
|
1719
|
-
candidates:
|
|
1741
|
+
candidates: l
|
|
1720
1742
|
});
|
|
1721
1743
|
} else
|
|
1722
1744
|
i.unshift.apply(i, s.children);
|
|
@@ -1770,8 +1792,8 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1770
1792
|
}, Qr = function(t) {
|
|
1771
1793
|
var r, n = t && Ke(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
|
|
1772
1794
|
if (n && n !== t) {
|
|
1773
|
-
var s, a,
|
|
1774
|
-
for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (
|
|
1795
|
+
var s, a, u;
|
|
1796
|
+
for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (u = t.ownerDocument) !== null && u !== void 0 && u.contains(t)); !i && o; ) {
|
|
1775
1797
|
var c, f, d;
|
|
1776
1798
|
n = Ke(o), o = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((f = o) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(o));
|
|
1777
1799
|
}
|
|
@@ -1800,20 +1822,20 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1800
1822
|
}
|
|
1801
1823
|
if (getComputedStyle(t).visibility === "hidden")
|
|
1802
1824
|
return !0;
|
|
1803
|
-
var s =
|
|
1804
|
-
if (
|
|
1825
|
+
var s = Ne.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
|
|
1826
|
+
if (Ne.call(a, "details:not([open]) *"))
|
|
1805
1827
|
return !0;
|
|
1806
1828
|
if (!n || n === "full" || // full-native can run this branch when it falls through in case
|
|
1807
1829
|
// Element#checkVisibility is unsupported
|
|
1808
1830
|
n === "full-native" || n === "legacy-full") {
|
|
1809
1831
|
if (typeof o == "function") {
|
|
1810
|
-
for (var
|
|
1832
|
+
for (var u = t; t; ) {
|
|
1811
1833
|
var c = t.parentElement, f = Ke(t);
|
|
1812
1834
|
if (c && !c.shadowRoot && o(c) === !0)
|
|
1813
1835
|
return on(t);
|
|
1814
1836
|
t.assignedSlot ? t = t.assignedSlot : !c && f !== t.ownerDocument ? t = f.host : t = c;
|
|
1815
1837
|
}
|
|
1816
|
-
t =
|
|
1838
|
+
t = u;
|
|
1817
1839
|
}
|
|
1818
1840
|
if (Qr(t))
|
|
1819
1841
|
return !t.getClientRects().length;
|
|
@@ -1829,7 +1851,7 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1829
1851
|
for (var n = 0; n < r.children.length; n++) {
|
|
1830
1852
|
var o = r.children.item(n);
|
|
1831
1853
|
if (o.tagName === "LEGEND")
|
|
1832
|
-
return
|
|
1854
|
+
return Ne.call(r, "fieldset[disabled] *") ? !0 : !o.contains(t);
|
|
1833
1855
|
}
|
|
1834
1856
|
return !0;
|
|
1835
1857
|
}
|
|
@@ -1847,10 +1869,10 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1847
1869
|
}, Yn = function(t) {
|
|
1848
1870
|
var r = [], n = [];
|
|
1849
1871
|
return t.forEach(function(o, i) {
|
|
1850
|
-
var s = !!o.scopeParent, a = s ? o.scopeParent : o,
|
|
1851
|
-
|
|
1872
|
+
var s = !!o.scopeParent, a = s ? o.scopeParent : o, u = Ur(a, s), c = s ? Yn(o.candidates) : a;
|
|
1873
|
+
u === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
|
|
1852
1874
|
documentOrder: i,
|
|
1853
|
-
tabIndex:
|
|
1875
|
+
tabIndex: u,
|
|
1854
1876
|
item: o,
|
|
1855
1877
|
isScope: s,
|
|
1856
1878
|
content: c
|
|
@@ -1870,55 +1892,55 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1870
1892
|
}, oo = function(t, r) {
|
|
1871
1893
|
if (r = r || {}, !t)
|
|
1872
1894
|
throw new Error("No node provided");
|
|
1873
|
-
return
|
|
1895
|
+
return Ne.call(t, He) === !1 ? !1 : Pt(r, t);
|
|
1874
1896
|
};
|
|
1875
1897
|
function sn(e, t, r) {
|
|
1876
1898
|
let {
|
|
1877
1899
|
reference: n,
|
|
1878
1900
|
floating: o
|
|
1879
1901
|
} = e;
|
|
1880
|
-
const i = he(t), s = jn(t), a = $n(s),
|
|
1881
|
-
let
|
|
1882
|
-
switch (
|
|
1902
|
+
const i = he(t), s = jn(t), a = $n(s), u = Ce(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
|
|
1903
|
+
let l;
|
|
1904
|
+
switch (u) {
|
|
1883
1905
|
case "top":
|
|
1884
|
-
|
|
1906
|
+
l = {
|
|
1885
1907
|
x: f,
|
|
1886
1908
|
y: n.y - o.height
|
|
1887
1909
|
};
|
|
1888
1910
|
break;
|
|
1889
1911
|
case "bottom":
|
|
1890
|
-
|
|
1912
|
+
l = {
|
|
1891
1913
|
x: f,
|
|
1892
1914
|
y: n.y + n.height
|
|
1893
1915
|
};
|
|
1894
1916
|
break;
|
|
1895
1917
|
case "right":
|
|
1896
|
-
|
|
1918
|
+
l = {
|
|
1897
1919
|
x: n.x + n.width,
|
|
1898
1920
|
y: d
|
|
1899
1921
|
};
|
|
1900
1922
|
break;
|
|
1901
1923
|
case "left":
|
|
1902
|
-
|
|
1924
|
+
l = {
|
|
1903
1925
|
x: n.x - o.width,
|
|
1904
1926
|
y: d
|
|
1905
1927
|
};
|
|
1906
1928
|
break;
|
|
1907
1929
|
default:
|
|
1908
|
-
|
|
1930
|
+
l = {
|
|
1909
1931
|
x: n.x,
|
|
1910
1932
|
y: n.y
|
|
1911
1933
|
};
|
|
1912
1934
|
}
|
|
1913
1935
|
switch (ot(t)) {
|
|
1914
1936
|
case "start":
|
|
1915
|
-
|
|
1937
|
+
l[s] -= h * (r && c ? -1 : 1);
|
|
1916
1938
|
break;
|
|
1917
1939
|
case "end":
|
|
1918
|
-
|
|
1940
|
+
l[s] += h * (r && c ? -1 : 1);
|
|
1919
1941
|
break;
|
|
1920
1942
|
}
|
|
1921
|
-
return
|
|
1943
|
+
return l;
|
|
1922
1944
|
}
|
|
1923
1945
|
async function io(e, t) {
|
|
1924
1946
|
var r;
|
|
@@ -1929,24 +1951,24 @@ async function io(e, t) {
|
|
|
1929
1951
|
platform: i,
|
|
1930
1952
|
rects: s,
|
|
1931
1953
|
elements: a,
|
|
1932
|
-
strategy:
|
|
1954
|
+
strategy: u
|
|
1933
1955
|
} = e, {
|
|
1934
1956
|
boundary: c = "clippingAncestors",
|
|
1935
1957
|
rootBoundary: f = "viewport",
|
|
1936
1958
|
elementContext: d = "floating",
|
|
1937
1959
|
altBoundary: h = !1,
|
|
1938
|
-
padding:
|
|
1939
|
-
} = rt(t, e), v = Br(
|
|
1960
|
+
padding: l = 0
|
|
1961
|
+
} = rt(t, e), v = Br(l), O = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ue(await i.getClippingRect({
|
|
1940
1962
|
element: (r = await (i.isElement == null ? void 0 : i.isElement(O))) == null || r ? O : O.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
1941
1963
|
boundary: c,
|
|
1942
1964
|
rootBoundary: f,
|
|
1943
|
-
strategy:
|
|
1944
|
-
})),
|
|
1965
|
+
strategy: u
|
|
1966
|
+
})), N = d === "floating" ? {
|
|
1945
1967
|
x: n,
|
|
1946
1968
|
y: o,
|
|
1947
1969
|
width: s.floating.width,
|
|
1948
1970
|
height: s.floating.height
|
|
1949
|
-
} : s.reference,
|
|
1971
|
+
} : s.reference, g = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), T = await (i.isElement == null ? void 0 : i.isElement(g)) ? await (i.getScale == null ? void 0 : i.getScale(g)) || {
|
|
1950
1972
|
x: 1,
|
|
1951
1973
|
y: 1
|
|
1952
1974
|
} : {
|
|
@@ -1954,10 +1976,10 @@ async function io(e, t) {
|
|
|
1954
1976
|
y: 1
|
|
1955
1977
|
}, b = Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1956
1978
|
elements: a,
|
|
1957
|
-
rect:
|
|
1958
|
-
offsetParent:
|
|
1959
|
-
strategy:
|
|
1960
|
-
}) :
|
|
1979
|
+
rect: N,
|
|
1980
|
+
offsetParent: g,
|
|
1981
|
+
strategy: u
|
|
1982
|
+
}) : N);
|
|
1961
1983
|
return {
|
|
1962
1984
|
top: (A.top - b.top + v.top) / T.y,
|
|
1963
1985
|
bottom: (b.bottom - A.bottom + v.bottom) / T.y,
|
|
@@ -1974,7 +1996,7 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
1974
1996
|
} = r, a = s.detectOverflow ? s : {
|
|
1975
1997
|
...s,
|
|
1976
1998
|
detectOverflow: io
|
|
1977
|
-
},
|
|
1999
|
+
}, u = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1978
2000
|
let c = await s.getElementRects({
|
|
1979
2001
|
reference: e,
|
|
1980
2002
|
floating: t,
|
|
@@ -1982,7 +2004,7 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
1982
2004
|
}), {
|
|
1983
2005
|
x: f,
|
|
1984
2006
|
y: d
|
|
1985
|
-
} = sn(c, n,
|
|
2007
|
+
} = sn(c, n, u), h = n, l = 0;
|
|
1986
2008
|
const v = {};
|
|
1987
2009
|
for (let p = 0; p < i.length; p++) {
|
|
1988
2010
|
const O = i[p];
|
|
@@ -1990,13 +2012,13 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
1990
2012
|
continue;
|
|
1991
2013
|
const {
|
|
1992
2014
|
name: A,
|
|
1993
|
-
fn:
|
|
2015
|
+
fn: N
|
|
1994
2016
|
} = O, {
|
|
1995
|
-
x:
|
|
2017
|
+
x: g,
|
|
1996
2018
|
y: T,
|
|
1997
2019
|
data: b,
|
|
1998
|
-
reset:
|
|
1999
|
-
} = await
|
|
2020
|
+
reset: F
|
|
2021
|
+
} = await N({
|
|
2000
2022
|
x: f,
|
|
2001
2023
|
y: d,
|
|
2002
2024
|
initialPlacement: n,
|
|
@@ -2010,17 +2032,17 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
2010
2032
|
floating: t
|
|
2011
2033
|
}
|
|
2012
2034
|
});
|
|
2013
|
-
f =
|
|
2035
|
+
f = g ?? f, d = T ?? d, v[A] = {
|
|
2014
2036
|
...v[A],
|
|
2015
2037
|
...b
|
|
2016
|
-
},
|
|
2038
|
+
}, F && l < so && (l++, typeof F == "object" && (F.placement && (h = F.placement), F.rects && (c = F.rects === !0 ? await s.getElementRects({
|
|
2017
2039
|
reference: e,
|
|
2018
2040
|
floating: t,
|
|
2019
2041
|
strategy: o
|
|
2020
|
-
}) :
|
|
2042
|
+
}) : F.rects), {
|
|
2021
2043
|
x: f,
|
|
2022
2044
|
y: d
|
|
2023
|
-
} = sn(c, h,
|
|
2045
|
+
} = sn(c, h, u)), p = -1);
|
|
2024
2046
|
}
|
|
2025
2047
|
return {
|
|
2026
2048
|
x: f,
|
|
@@ -2040,70 +2062,70 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
2040
2062
|
middlewareData: i,
|
|
2041
2063
|
rects: s,
|
|
2042
2064
|
initialPlacement: a,
|
|
2043
|
-
platform:
|
|
2065
|
+
platform: u,
|
|
2044
2066
|
elements: c
|
|
2045
2067
|
} = t, {
|
|
2046
2068
|
mainAxis: f = !0,
|
|
2047
2069
|
crossAxis: d = !0,
|
|
2048
2070
|
fallbackPlacements: h,
|
|
2049
|
-
fallbackStrategy:
|
|
2071
|
+
fallbackStrategy: l = "bestFit",
|
|
2050
2072
|
fallbackAxisSideDirection: v = "none",
|
|
2051
2073
|
flipAlignment: p = !0,
|
|
2052
2074
|
...O
|
|
2053
2075
|
} = rt(e, t);
|
|
2054
2076
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
2055
2077
|
return {};
|
|
2056
|
-
const A =
|
|
2057
|
-
!h &&
|
|
2058
|
-
const
|
|
2059
|
-
let
|
|
2060
|
-
if (f && Q.push(
|
|
2061
|
-
const
|
|
2062
|
-
Q.push(
|
|
2078
|
+
const A = Ce(o), N = he(a), g = Ce(a) === a, T = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), b = h || (g || !p ? [Ye(a)] : Dr(a)), F = v !== "none";
|
|
2079
|
+
!h && F && b.push(...jr(a, p, v, T));
|
|
2080
|
+
const Y = [a, ...b], K = await u.detectOverflow(t, O), Q = [];
|
|
2081
|
+
let X = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
2082
|
+
if (f && Q.push(K[A]), d) {
|
|
2083
|
+
const G = Mr(o, s, T);
|
|
2084
|
+
Q.push(K[G[0]], K[G[1]]);
|
|
2063
2085
|
}
|
|
2064
|
-
if (
|
|
2086
|
+
if (X = [...X, {
|
|
2065
2087
|
placement: o,
|
|
2066
2088
|
overflows: Q
|
|
2067
|
-
}], !Q.every((
|
|
2068
|
-
var
|
|
2069
|
-
const
|
|
2070
|
-
if (
|
|
2089
|
+
}], !Q.every((G) => G <= 0)) {
|
|
2090
|
+
var z, B;
|
|
2091
|
+
const G = (((z = i.flip) == null ? void 0 : z.index) || 0) + 1, I = Y[G];
|
|
2092
|
+
if (I && (!(d === "alignment" ? N !== he(I) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2071
2093
|
// overflows the main axis.
|
|
2072
|
-
|
|
2094
|
+
X.every((M) => he(M.placement) === N ? M.overflows[0] > 0 : !0)))
|
|
2073
2095
|
return {
|
|
2074
2096
|
data: {
|
|
2075
|
-
index:
|
|
2076
|
-
overflows:
|
|
2097
|
+
index: G,
|
|
2098
|
+
overflows: X
|
|
2077
2099
|
},
|
|
2078
2100
|
reset: {
|
|
2079
|
-
placement:
|
|
2101
|
+
placement: I
|
|
2080
2102
|
}
|
|
2081
2103
|
};
|
|
2082
|
-
let
|
|
2083
|
-
if (!
|
|
2084
|
-
switch (
|
|
2104
|
+
let L = (B = X.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
2105
|
+
if (!L)
|
|
2106
|
+
switch (l) {
|
|
2085
2107
|
case "bestFit": {
|
|
2086
2108
|
var te;
|
|
2087
|
-
const V = (te =
|
|
2088
|
-
if (
|
|
2109
|
+
const V = (te = X.filter((M) => {
|
|
2110
|
+
if (F) {
|
|
2089
2111
|
const R = he(M.placement);
|
|
2090
|
-
return R ===
|
|
2112
|
+
return R === N || // Create a bias to the `y` side axis due to horizontal
|
|
2091
2113
|
// reading directions favoring greater width.
|
|
2092
2114
|
R === "y";
|
|
2093
2115
|
}
|
|
2094
2116
|
return !0;
|
|
2095
2117
|
}).map((M) => [M.placement, M.overflows.filter((R) => R > 0).reduce((R, m) => R + m, 0)]).sort((M, R) => M[1] - R[1])[0]) == null ? void 0 : te[0];
|
|
2096
|
-
V && (
|
|
2118
|
+
V && (L = V);
|
|
2097
2119
|
break;
|
|
2098
2120
|
}
|
|
2099
2121
|
case "initialPlacement":
|
|
2100
|
-
|
|
2122
|
+
L = a;
|
|
2101
2123
|
break;
|
|
2102
2124
|
}
|
|
2103
|
-
if (o !==
|
|
2125
|
+
if (o !== L)
|
|
2104
2126
|
return {
|
|
2105
2127
|
reset: {
|
|
2106
|
-
placement:
|
|
2128
|
+
placement: L
|
|
2107
2129
|
}
|
|
2108
2130
|
};
|
|
2109
2131
|
}
|
|
@@ -2116,10 +2138,10 @@ async function uo(e, t) {
|
|
|
2116
2138
|
placement: r,
|
|
2117
2139
|
platform: n,
|
|
2118
2140
|
elements: o
|
|
2119
|
-
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s =
|
|
2141
|
+
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Ce(r), a = ot(r), u = he(r) === "y", c = lo.has(s) ? -1 : 1, f = i && u ? -1 : 1, d = rt(t, e);
|
|
2120
2142
|
let {
|
|
2121
2143
|
mainAxis: h,
|
|
2122
|
-
crossAxis:
|
|
2144
|
+
crossAxis: l,
|
|
2123
2145
|
alignmentAxis: v
|
|
2124
2146
|
} = typeof d == "number" ? {
|
|
2125
2147
|
mainAxis: d,
|
|
@@ -2130,12 +2152,12 @@ async function uo(e, t) {
|
|
|
2130
2152
|
crossAxis: d.crossAxis || 0,
|
|
2131
2153
|
alignmentAxis: d.alignmentAxis
|
|
2132
2154
|
};
|
|
2133
|
-
return a && typeof v == "number" && (
|
|
2134
|
-
x:
|
|
2155
|
+
return a && typeof v == "number" && (l = a === "end" ? v * -1 : v), u ? {
|
|
2156
|
+
x: l * f,
|
|
2135
2157
|
y: h * c
|
|
2136
2158
|
} : {
|
|
2137
2159
|
x: h * c,
|
|
2138
|
-
y:
|
|
2160
|
+
y: l * f
|
|
2139
2161
|
};
|
|
2140
2162
|
}
|
|
2141
2163
|
const fo = function(e) {
|
|
@@ -2149,12 +2171,12 @@ const fo = function(e) {
|
|
|
2149
2171
|
y: i,
|
|
2150
2172
|
placement: s,
|
|
2151
2173
|
middlewareData: a
|
|
2152
|
-
} = t,
|
|
2174
|
+
} = t, u = await uo(t, e);
|
|
2153
2175
|
return s === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
|
|
2154
|
-
x: o +
|
|
2155
|
-
y: i +
|
|
2176
|
+
x: o + u.x,
|
|
2177
|
+
y: i + u.y,
|
|
2156
2178
|
data: {
|
|
2157
|
-
...
|
|
2179
|
+
...u,
|
|
2158
2180
|
placement: s
|
|
2159
2181
|
}
|
|
2160
2182
|
};
|
|
@@ -2173,15 +2195,15 @@ const fo = function(e) {
|
|
|
2173
2195
|
} = t, {
|
|
2174
2196
|
mainAxis: s = !0,
|
|
2175
2197
|
crossAxis: a = !1,
|
|
2176
|
-
limiter:
|
|
2198
|
+
limiter: u = {
|
|
2177
2199
|
fn: (A) => {
|
|
2178
2200
|
let {
|
|
2179
|
-
x:
|
|
2180
|
-
y
|
|
2201
|
+
x: N,
|
|
2202
|
+
y: g
|
|
2181
2203
|
} = A;
|
|
2182
2204
|
return {
|
|
2183
|
-
x:
|
|
2184
|
-
y
|
|
2205
|
+
x: N,
|
|
2206
|
+
y: g
|
|
2185
2207
|
};
|
|
2186
2208
|
}
|
|
2187
2209
|
},
|
|
@@ -2189,19 +2211,19 @@ const fo = function(e) {
|
|
|
2189
2211
|
} = rt(e, t), f = {
|
|
2190
2212
|
x: r,
|
|
2191
2213
|
y: n
|
|
2192
|
-
}, d = await i.detectOverflow(t, c), h = he(
|
|
2193
|
-
let v = f[
|
|
2214
|
+
}, d = await i.detectOverflow(t, c), h = he(Ce(o)), l = Fn(h);
|
|
2215
|
+
let v = f[l], p = f[h];
|
|
2194
2216
|
if (s) {
|
|
2195
|
-
const A =
|
|
2196
|
-
v = tn(
|
|
2217
|
+
const A = l === "y" ? "top" : "left", N = l === "y" ? "bottom" : "right", g = v + d[A], T = v - d[N];
|
|
2218
|
+
v = tn(g, v, T);
|
|
2197
2219
|
}
|
|
2198
2220
|
if (a) {
|
|
2199
|
-
const A = h === "y" ? "top" : "left",
|
|
2200
|
-
p = tn(
|
|
2221
|
+
const A = h === "y" ? "top" : "left", N = h === "y" ? "bottom" : "right", g = p + d[A], T = p - d[N];
|
|
2222
|
+
p = tn(g, p, T);
|
|
2201
2223
|
}
|
|
2202
|
-
const O =
|
|
2224
|
+
const O = u.fn({
|
|
2203
2225
|
...t,
|
|
2204
|
-
[
|
|
2226
|
+
[l]: v,
|
|
2205
2227
|
[h]: p
|
|
2206
2228
|
});
|
|
2207
2229
|
return {
|
|
@@ -2210,7 +2232,7 @@ const fo = function(e) {
|
|
|
2210
2232
|
x: O.x - r,
|
|
2211
2233
|
y: O.y - n,
|
|
2212
2234
|
enabled: {
|
|
2213
|
-
[
|
|
2235
|
+
[l]: s,
|
|
2214
2236
|
[h]: a
|
|
2215
2237
|
}
|
|
2216
2238
|
}
|
|
@@ -2257,31 +2279,31 @@ function Hn(e) {
|
|
|
2257
2279
|
function ho(e, t, r) {
|
|
2258
2280
|
return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
|
|
2259
2281
|
}
|
|
2260
|
-
function
|
|
2282
|
+
function Se(e, t, r, n) {
|
|
2261
2283
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2262
2284
|
const o = e.getBoundingClientRect(), i = $t(e);
|
|
2263
2285
|
let s = le(1);
|
|
2264
2286
|
t && (n ? ee(n) && (s = Ae(n)) : s = Ae(e));
|
|
2265
2287
|
const a = ho(i, r, n) ? Hn(i) : le(0);
|
|
2266
|
-
let
|
|
2288
|
+
let u = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
|
|
2267
2289
|
if (i) {
|
|
2268
|
-
const h = ie(i),
|
|
2269
|
-
let v = h, p =
|
|
2270
|
-
for (; p && n &&
|
|
2271
|
-
const O = Ae(p), A = p.getBoundingClientRect(),
|
|
2272
|
-
|
|
2290
|
+
const h = ie(i), l = n && ee(n) ? ie(n) : n;
|
|
2291
|
+
let v = h, p = St(v);
|
|
2292
|
+
for (; p && n && l !== v; ) {
|
|
2293
|
+
const O = Ae(p), A = p.getBoundingClientRect(), N = se(p), g = A.left + (p.clientLeft + parseFloat(N.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(N.paddingTop)) * O.y;
|
|
2294
|
+
u *= O.x, c *= O.y, f *= O.x, d *= O.y, u += g, c += T, v = ie(p), p = St(v);
|
|
2273
2295
|
}
|
|
2274
2296
|
}
|
|
2275
2297
|
return Ue({
|
|
2276
2298
|
width: f,
|
|
2277
2299
|
height: d,
|
|
2278
|
-
x:
|
|
2300
|
+
x: u,
|
|
2279
2301
|
y: c
|
|
2280
2302
|
});
|
|
2281
2303
|
}
|
|
2282
2304
|
function it(e, t) {
|
|
2283
2305
|
const r = nt(e).scrollLeft;
|
|
2284
|
-
return t ? t.left + r :
|
|
2306
|
+
return t ? t.left + r : Se(ue(e)).left + r;
|
|
2285
2307
|
}
|
|
2286
2308
|
function Kn(e, t) {
|
|
2287
2309
|
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
|
|
@@ -2300,21 +2322,21 @@ function vo(e) {
|
|
|
2300
2322
|
const i = o === "fixed", s = ue(n), a = t ? et(t.floating) : !1;
|
|
2301
2323
|
if (n === s || a && i)
|
|
2302
2324
|
return r;
|
|
2303
|
-
let
|
|
2325
|
+
let u = {
|
|
2304
2326
|
scrollLeft: 0,
|
|
2305
2327
|
scrollTop: 0
|
|
2306
2328
|
}, c = le(1);
|
|
2307
2329
|
const f = le(0), d = ne(n);
|
|
2308
|
-
if ((d || !d && !i) && ((ye(n) !== "body" || Ie(s)) && (
|
|
2309
|
-
const
|
|
2310
|
-
c = Ae(n), f.x =
|
|
2330
|
+
if ((d || !d && !i) && ((ye(n) !== "body" || Ie(s)) && (u = nt(n)), d)) {
|
|
2331
|
+
const l = Se(n);
|
|
2332
|
+
c = Ae(n), f.x = l.x + n.clientLeft, f.y = l.y + n.clientTop;
|
|
2311
2333
|
}
|
|
2312
|
-
const h = s && !d && !i ? Kn(s,
|
|
2334
|
+
const h = s && !d && !i ? Kn(s, u) : le(0);
|
|
2313
2335
|
return {
|
|
2314
2336
|
width: r.width * c.x,
|
|
2315
2337
|
height: r.height * c.y,
|
|
2316
|
-
x: r.x * c.x -
|
|
2317
|
-
y: r.y * c.y -
|
|
2338
|
+
x: r.x * c.x - u.scrollLeft * c.x + f.x + h.x,
|
|
2339
|
+
y: r.y * c.y - u.scrollTop * c.y + f.y + h.y
|
|
2318
2340
|
};
|
|
2319
2341
|
}
|
|
2320
2342
|
function bo(e) {
|
|
@@ -2334,30 +2356,30 @@ function yo(e) {
|
|
|
2334
2356
|
const an = 25;
|
|
2335
2357
|
function go(e, t) {
|
|
2336
2358
|
const r = ie(e), n = ue(e), o = r.visualViewport;
|
|
2337
|
-
let i = n.clientWidth, s = n.clientHeight, a = 0,
|
|
2359
|
+
let i = n.clientWidth, s = n.clientHeight, a = 0, u = 0;
|
|
2338
2360
|
if (o) {
|
|
2339
2361
|
i = o.width, s = o.height;
|
|
2340
2362
|
const f = tt();
|
|
2341
|
-
(!f || f && t === "fixed") && (a = o.offsetLeft,
|
|
2363
|
+
(!f || f && t === "fixed") && (a = o.offsetLeft, u = o.offsetTop);
|
|
2342
2364
|
}
|
|
2343
2365
|
const c = it(n);
|
|
2344
2366
|
if (c <= 0) {
|
|
2345
|
-
const f = n.ownerDocument, d = f.body, h = getComputedStyle(d),
|
|
2367
|
+
const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), l = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - l);
|
|
2346
2368
|
v <= an && (i -= v);
|
|
2347
2369
|
} else c <= an && (i += c);
|
|
2348
2370
|
return {
|
|
2349
2371
|
width: i,
|
|
2350
2372
|
height: s,
|
|
2351
2373
|
x: a,
|
|
2352
|
-
y:
|
|
2374
|
+
y: u
|
|
2353
2375
|
};
|
|
2354
2376
|
}
|
|
2355
2377
|
function wo(e, t) {
|
|
2356
|
-
const r =
|
|
2378
|
+
const r = Se(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = ne(e) ? Ae(e) : le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, u = o * i.x, c = n * i.y;
|
|
2357
2379
|
return {
|
|
2358
2380
|
width: s,
|
|
2359
2381
|
height: a,
|
|
2360
|
-
x:
|
|
2382
|
+
x: u,
|
|
2361
2383
|
y: c
|
|
2362
2384
|
};
|
|
2363
2385
|
}
|
|
@@ -2392,8 +2414,8 @@ function xo(e, t) {
|
|
|
2392
2414
|
const i = se(e).position === "fixed";
|
|
2393
2415
|
let s = i ? pe(e) : e;
|
|
2394
2416
|
for (; ee(s) && !be(s); ) {
|
|
2395
|
-
const a = se(s),
|
|
2396
|
-
!
|
|
2417
|
+
const a = se(s), u = Lt(s);
|
|
2418
|
+
!u && a.position === "fixed" && (o = null), (i ? !u && !o : !u && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || Ie(s) && !u && zn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(s);
|
|
2397
2419
|
}
|
|
2398
2420
|
return t.set(e, n), n;
|
|
2399
2421
|
}
|
|
@@ -2405,16 +2427,16 @@ function Eo(e) {
|
|
|
2405
2427
|
strategy: o
|
|
2406
2428
|
} = e;
|
|
2407
2429
|
const s = [...r === "clippingAncestors" ? et(t) ? [] : xo(t, this._c) : [].concat(r), n], a = cn(t, s[0], o);
|
|
2408
|
-
let
|
|
2430
|
+
let u = a.top, c = a.right, f = a.bottom, d = a.left;
|
|
2409
2431
|
for (let h = 1; h < s.length; h++) {
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2432
|
+
const l = cn(t, s[h], o);
|
|
2433
|
+
u = Te(l.top, u), c = qe(l.right, c), f = qe(l.bottom, f), d = Te(l.left, d);
|
|
2412
2434
|
}
|
|
2413
2435
|
return {
|
|
2414
2436
|
width: c - d,
|
|
2415
|
-
height: f -
|
|
2437
|
+
height: f - u,
|
|
2416
2438
|
x: d,
|
|
2417
|
-
y:
|
|
2439
|
+
y: u
|
|
2418
2440
|
};
|
|
2419
2441
|
}
|
|
2420
2442
|
function Ro(e) {
|
|
@@ -2428,22 +2450,22 @@ function Ro(e) {
|
|
|
2428
2450
|
};
|
|
2429
2451
|
}
|
|
2430
2452
|
function To(e, t, r) {
|
|
2431
|
-
const n = ne(t), o = ue(t), i = r === "fixed", s =
|
|
2453
|
+
const n = ne(t), o = ue(t), i = r === "fixed", s = Se(e, !0, i, t);
|
|
2432
2454
|
let a = {
|
|
2433
2455
|
scrollLeft: 0,
|
|
2434
2456
|
scrollTop: 0
|
|
2435
2457
|
};
|
|
2436
|
-
const
|
|
2458
|
+
const u = le(0);
|
|
2437
2459
|
function c() {
|
|
2438
|
-
|
|
2460
|
+
u.x = it(o);
|
|
2439
2461
|
}
|
|
2440
2462
|
if (n || !n && !i)
|
|
2441
2463
|
if ((ye(t) !== "body" || Ie(o)) && (a = nt(t)), n) {
|
|
2442
|
-
const
|
|
2443
|
-
|
|
2464
|
+
const l = Se(t, !0, i, t);
|
|
2465
|
+
u.x = l.x + t.clientLeft, u.y = l.y + t.clientTop;
|
|
2444
2466
|
} else o && c();
|
|
2445
2467
|
i && !n && o && c();
|
|
2446
|
-
const f = o && !n && !i ? Kn(o, a) : le(0), d = s.left + a.scrollLeft -
|
|
2468
|
+
const f = o && !n && !i ? Kn(o, a) : le(0), d = s.left + a.scrollLeft - u.x - f.x, h = s.top + a.scrollTop - u.y - f.y;
|
|
2447
2469
|
return {
|
|
2448
2470
|
x: d,
|
|
2449
2471
|
y: h,
|
|
@@ -2480,7 +2502,7 @@ function Xn(e, t) {
|
|
|
2480
2502
|
n = ln(n, t);
|
|
2481
2503
|
return n && be(n) && bt(n) && !Lt(n) ? r : n || Rr(e) || r;
|
|
2482
2504
|
}
|
|
2483
|
-
const
|
|
2505
|
+
const Co = async function(e) {
|
|
2484
2506
|
const t = this.getOffsetParent || Xn, r = this.getDimensions, n = await r(e.floating);
|
|
2485
2507
|
return {
|
|
2486
2508
|
reference: To(e.reference, await t(e.floating), e.strategy),
|
|
@@ -2492,7 +2514,7 @@ const So = async function(e) {
|
|
|
2492
2514
|
}
|
|
2493
2515
|
};
|
|
2494
2516
|
};
|
|
2495
|
-
function
|
|
2517
|
+
function So(e) {
|
|
2496
2518
|
return se(e).direction === "rtl";
|
|
2497
2519
|
}
|
|
2498
2520
|
const _o = {
|
|
@@ -2500,12 +2522,12 @@ const _o = {
|
|
|
2500
2522
|
getDocumentElement: ue,
|
|
2501
2523
|
getClippingRect: Eo,
|
|
2502
2524
|
getOffsetParent: Xn,
|
|
2503
|
-
getElementRects:
|
|
2525
|
+
getElementRects: Co,
|
|
2504
2526
|
getClientRects: bo,
|
|
2505
2527
|
getDimensions: Ro,
|
|
2506
2528
|
getScale: Ae,
|
|
2507
2529
|
isElement: ee,
|
|
2508
|
-
isRTL:
|
|
2530
|
+
isRTL: So
|
|
2509
2531
|
};
|
|
2510
2532
|
function Gn(e, t) {
|
|
2511
2533
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
@@ -2517,40 +2539,40 @@ function Oo(e, t) {
|
|
|
2517
2539
|
var a;
|
|
2518
2540
|
clearTimeout(n), (a = r) == null || a.disconnect(), r = null;
|
|
2519
2541
|
}
|
|
2520
|
-
function s(a,
|
|
2521
|
-
a === void 0 && (a = !1),
|
|
2542
|
+
function s(a, u) {
|
|
2543
|
+
a === void 0 && (a = !1), u === void 0 && (u = 1), i();
|
|
2522
2544
|
const c = e.getBoundingClientRect(), {
|
|
2523
2545
|
left: f,
|
|
2524
2546
|
top: d,
|
|
2525
2547
|
width: h,
|
|
2526
|
-
height:
|
|
2548
|
+
height: l
|
|
2527
2549
|
} = c;
|
|
2528
|
-
if (a || t(), !h || !
|
|
2550
|
+
if (a || t(), !h || !l)
|
|
2529
2551
|
return;
|
|
2530
|
-
const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d +
|
|
2552
|
+
const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d + l)), A = Fe(f), g = {
|
|
2531
2553
|
rootMargin: -v + "px " + -p + "px " + -O + "px " + -A + "px",
|
|
2532
|
-
threshold: Te(0, qe(1,
|
|
2554
|
+
threshold: Te(0, qe(1, u)) || 1
|
|
2533
2555
|
};
|
|
2534
2556
|
let T = !0;
|
|
2535
|
-
function b(
|
|
2536
|
-
const
|
|
2537
|
-
if (
|
|
2557
|
+
function b(F) {
|
|
2558
|
+
const Y = F[0].intersectionRatio;
|
|
2559
|
+
if (Y !== u) {
|
|
2538
2560
|
if (!T)
|
|
2539
2561
|
return s();
|
|
2540
|
-
|
|
2562
|
+
Y ? s(!1, Y) : n = setTimeout(() => {
|
|
2541
2563
|
s(!1, 1e-7);
|
|
2542
2564
|
}, 1e3);
|
|
2543
2565
|
}
|
|
2544
|
-
|
|
2566
|
+
Y === 1 && !Gn(c, e.getBoundingClientRect()) && s(), T = !1;
|
|
2545
2567
|
}
|
|
2546
2568
|
try {
|
|
2547
2569
|
r = new IntersectionObserver(b, {
|
|
2548
|
-
...
|
|
2570
|
+
...g,
|
|
2549
2571
|
// Handle <iframe>s
|
|
2550
2572
|
root: o.ownerDocument
|
|
2551
2573
|
});
|
|
2552
2574
|
} catch {
|
|
2553
|
-
r = new IntersectionObserver(b,
|
|
2575
|
+
r = new IntersectionObserver(b, g);
|
|
2554
2576
|
}
|
|
2555
2577
|
r.observe(e);
|
|
2556
2578
|
}
|
|
@@ -2563,7 +2585,7 @@ function Ao(e, t, r, n) {
|
|
|
2563
2585
|
ancestorResize: i = !0,
|
|
2564
2586
|
elementResize: s = typeof ResizeObserver == "function",
|
|
2565
2587
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
2566
|
-
animationFrame:
|
|
2588
|
+
animationFrame: u = !1
|
|
2567
2589
|
} = n, c = $t(e), f = o || i ? [...c ? ve(c) : [], ...t ? ve(t) : []] : [];
|
|
2568
2590
|
f.forEach((A) => {
|
|
2569
2591
|
o && A.addEventListener("scroll", r, {
|
|
@@ -2571,25 +2593,25 @@ function Ao(e, t, r, n) {
|
|
|
2571
2593
|
}), i && A.addEventListener("resize", r);
|
|
2572
2594
|
});
|
|
2573
2595
|
const d = c && a ? Oo(c, r) : null;
|
|
2574
|
-
let h = -1,
|
|
2575
|
-
s && (
|
|
2576
|
-
let [
|
|
2577
|
-
|
|
2578
|
-
var
|
|
2579
|
-
(
|
|
2596
|
+
let h = -1, l = null;
|
|
2597
|
+
s && (l = new ResizeObserver((A) => {
|
|
2598
|
+
let [N] = A;
|
|
2599
|
+
N && N.target === c && l && t && (l.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
2600
|
+
var g;
|
|
2601
|
+
(g = l) == null || g.observe(t);
|
|
2580
2602
|
})), r();
|
|
2581
|
-
}), c && !
|
|
2582
|
-
let v, p =
|
|
2583
|
-
|
|
2603
|
+
}), c && !u && l.observe(c), t && l.observe(t));
|
|
2604
|
+
let v, p = u ? Se(e) : null;
|
|
2605
|
+
u && O();
|
|
2584
2606
|
function O() {
|
|
2585
|
-
const A =
|
|
2607
|
+
const A = Se(e);
|
|
2586
2608
|
p && !Gn(p, A) && r(), p = A, v = requestAnimationFrame(O);
|
|
2587
2609
|
}
|
|
2588
2610
|
return r(), () => {
|
|
2589
2611
|
var A;
|
|
2590
|
-
f.forEach((
|
|
2591
|
-
o &&
|
|
2592
|
-
}), d == null || d(), (A =
|
|
2612
|
+
f.forEach((N) => {
|
|
2613
|
+
o && N.removeEventListener("scroll", r), i && N.removeEventListener("resize", r);
|
|
2614
|
+
}), d == null || d(), (A = l) == null || A.disconnect(), l = null, u && cancelAnimationFrame(v);
|
|
2593
2615
|
};
|
|
2594
2616
|
}
|
|
2595
2617
|
const Po = fo, No = po, ko = co, Io = (e, t, r) => {
|
|
@@ -2662,7 +2684,7 @@ function Lo(e) {
|
|
|
2662
2684
|
floating: s
|
|
2663
2685
|
} = {},
|
|
2664
2686
|
transform: a = !0,
|
|
2665
|
-
whileElementsMounted:
|
|
2687
|
+
whileElementsMounted: u,
|
|
2666
2688
|
open: c
|
|
2667
2689
|
} = e, [f, d] = E.useState({
|
|
2668
2690
|
x: 0,
|
|
@@ -2671,56 +2693,56 @@ function Lo(e) {
|
|
|
2671
2693
|
placement: t,
|
|
2672
2694
|
middlewareData: {},
|
|
2673
2695
|
isPositioned: !1
|
|
2674
|
-
}), [h,
|
|
2675
|
-
Xe(h, n) ||
|
|
2676
|
-
const [v, p] = E.useState(null), [O, A] = E.useState(null),
|
|
2677
|
-
M !==
|
|
2678
|
-
}, []),
|
|
2679
|
-
M !==
|
|
2680
|
-
}, []), T = i || v, b = s || O,
|
|
2681
|
-
if (!
|
|
2696
|
+
}), [h, l] = E.useState(n);
|
|
2697
|
+
Xe(h, n) || l(n);
|
|
2698
|
+
const [v, p] = E.useState(null), [O, A] = E.useState(null), N = E.useCallback((M) => {
|
|
2699
|
+
M !== F.current && (F.current = M, p(M));
|
|
2700
|
+
}, []), g = E.useCallback((M) => {
|
|
2701
|
+
M !== Y.current && (Y.current = M, A(M));
|
|
2702
|
+
}, []), T = i || v, b = s || O, F = E.useRef(null), Y = E.useRef(null), K = E.useRef(f), Q = u != null, X = yt(u), z = yt(o), B = yt(c), te = E.useCallback(() => {
|
|
2703
|
+
if (!F.current || !Y.current)
|
|
2682
2704
|
return;
|
|
2683
2705
|
const M = {
|
|
2684
2706
|
placement: t,
|
|
2685
2707
|
strategy: r,
|
|
2686
2708
|
middleware: h
|
|
2687
2709
|
};
|
|
2688
|
-
|
|
2710
|
+
z.current && (M.platform = z.current), Io(F.current, Y.current, M).then((R) => {
|
|
2689
2711
|
const m = {
|
|
2690
2712
|
...R,
|
|
2691
2713
|
// The floating element's position may be recomputed while it's closed
|
|
2692
2714
|
// but still mounted (such as when transitioning out). To ensure
|
|
2693
2715
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2694
2716
|
// setting it to `true` when `open === false` (must be specified).
|
|
2695
|
-
isPositioned:
|
|
2717
|
+
isPositioned: B.current !== !1
|
|
2696
2718
|
};
|
|
2697
|
-
|
|
2719
|
+
G.current && !Xe(K.current, m) && (K.current = m, ir.flushSync(() => {
|
|
2698
2720
|
d(m);
|
|
2699
2721
|
}));
|
|
2700
2722
|
});
|
|
2701
|
-
}, [h, t, r,
|
|
2723
|
+
}, [h, t, r, z, B]);
|
|
2702
2724
|
Be(() => {
|
|
2703
|
-
c === !1 &&
|
|
2725
|
+
c === !1 && K.current.isPositioned && (K.current.isPositioned = !1, d((M) => ({
|
|
2704
2726
|
...M,
|
|
2705
2727
|
isPositioned: !1
|
|
2706
2728
|
})));
|
|
2707
2729
|
}, [c]);
|
|
2708
|
-
const
|
|
2709
|
-
Be(() => (
|
|
2710
|
-
|
|
2730
|
+
const G = E.useRef(!1);
|
|
2731
|
+
Be(() => (G.current = !0, () => {
|
|
2732
|
+
G.current = !1;
|
|
2711
2733
|
}), []), Be(() => {
|
|
2712
|
-
if (T && (
|
|
2713
|
-
if (
|
|
2714
|
-
return
|
|
2734
|
+
if (T && (F.current = T), b && (Y.current = b), T && b) {
|
|
2735
|
+
if (X.current)
|
|
2736
|
+
return X.current(T, b, te);
|
|
2715
2737
|
te();
|
|
2716
2738
|
}
|
|
2717
|
-
}, [T, b, te,
|
|
2718
|
-
const
|
|
2719
|
-
reference:
|
|
2720
|
-
floating:
|
|
2721
|
-
setReference:
|
|
2722
|
-
setFloating:
|
|
2723
|
-
}), [
|
|
2739
|
+
}, [T, b, te, X, Q]);
|
|
2740
|
+
const I = E.useMemo(() => ({
|
|
2741
|
+
reference: F,
|
|
2742
|
+
floating: Y,
|
|
2743
|
+
setReference: N,
|
|
2744
|
+
setFloating: g
|
|
2745
|
+
}), [N, g]), L = E.useMemo(() => ({
|
|
2724
2746
|
reference: T,
|
|
2725
2747
|
floating: b
|
|
2726
2748
|
}), [T, b]), V = E.useMemo(() => {
|
|
@@ -2729,13 +2751,13 @@ function Lo(e) {
|
|
|
2729
2751
|
left: 0,
|
|
2730
2752
|
top: 0
|
|
2731
2753
|
};
|
|
2732
|
-
if (!
|
|
2754
|
+
if (!L.floating)
|
|
2733
2755
|
return M;
|
|
2734
|
-
const R = un(
|
|
2756
|
+
const R = un(L.floating, f.x), m = un(L.floating, f.y);
|
|
2735
2757
|
return a ? {
|
|
2736
2758
|
...M,
|
|
2737
2759
|
transform: "translate(" + R + "px, " + m + "px)",
|
|
2738
|
-
...Zn(
|
|
2760
|
+
...Zn(L.floating) >= 1.5 && {
|
|
2739
2761
|
willChange: "transform"
|
|
2740
2762
|
}
|
|
2741
2763
|
} : {
|
|
@@ -2743,14 +2765,14 @@ function Lo(e) {
|
|
|
2743
2765
|
left: R,
|
|
2744
2766
|
top: m
|
|
2745
2767
|
};
|
|
2746
|
-
}, [r, a,
|
|
2768
|
+
}, [r, a, L.floating, f.x, f.y]);
|
|
2747
2769
|
return E.useMemo(() => ({
|
|
2748
2770
|
...f,
|
|
2749
2771
|
update: te,
|
|
2750
|
-
refs:
|
|
2751
|
-
elements:
|
|
2772
|
+
refs: I,
|
|
2773
|
+
elements: L,
|
|
2752
2774
|
floatingStyles: V
|
|
2753
|
-
}), [f, te,
|
|
2775
|
+
}), [f, te, I, L, V]);
|
|
2754
2776
|
}
|
|
2755
2777
|
const Fo = (e, t) => {
|
|
2756
2778
|
const r = Po(e);
|
|
@@ -2878,7 +2900,7 @@ function Xo(e, t) {
|
|
|
2878
2900
|
}
|
|
2879
2901
|
return n;
|
|
2880
2902
|
}
|
|
2881
|
-
function
|
|
2903
|
+
function ke(e, t) {
|
|
2882
2904
|
let r = e.filter((o) => {
|
|
2883
2905
|
var i;
|
|
2884
2906
|
return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
|
|
@@ -2901,28 +2923,28 @@ const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, t
|
|
|
2901
2923
|
return e.contains(n) ? n : null;
|
|
2902
2924
|
}).filter((r) => r != null);
|
|
2903
2925
|
function Jo(e, t, r, n) {
|
|
2904
|
-
const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(),
|
|
2926
|
+
const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(), u = new Set(s), c = [];
|
|
2905
2927
|
je[o] || (je[o] = /* @__PURE__ */ new WeakMap());
|
|
2906
2928
|
const f = je[o];
|
|
2907
2929
|
s.forEach(d), h(t), a.clear();
|
|
2908
|
-
function d(
|
|
2909
|
-
!
|
|
2930
|
+
function d(l) {
|
|
2931
|
+
!l || a.has(l) || (a.add(l), l.parentNode && d(l.parentNode));
|
|
2910
2932
|
}
|
|
2911
|
-
function h(
|
|
2912
|
-
!
|
|
2933
|
+
function h(l) {
|
|
2934
|
+
!l || u.has(l) || [].forEach.call(l.children, (v) => {
|
|
2913
2935
|
if (ye(v) !== "script")
|
|
2914
2936
|
if (a.has(v))
|
|
2915
2937
|
h(v);
|
|
2916
2938
|
else {
|
|
2917
|
-
const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1,
|
|
2918
|
-
Oe.set(v, A), f.set(v,
|
|
2939
|
+
const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, N = (f.get(v) || 0) + 1;
|
|
2940
|
+
Oe.set(v, A), f.set(v, N), c.push(v), A === 1 && O && $e.add(v), N === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
|
|
2919
2941
|
}
|
|
2920
2942
|
});
|
|
2921
2943
|
}
|
|
2922
2944
|
return wt++, () => {
|
|
2923
|
-
c.forEach((
|
|
2924
|
-
const v = (Oe.get(
|
|
2925
|
-
Oe.set(
|
|
2945
|
+
c.forEach((l) => {
|
|
2946
|
+
const v = (Oe.get(l) || 0) - 1, p = (f.get(l) || 0) - 1;
|
|
2947
|
+
Oe.set(l, v), f.set(l, p), v || (!$e.has(l) && i && l.removeAttribute(i), $e.delete(l)), p || l.removeAttribute(o);
|
|
2926
2948
|
}), wt--, wt || (Oe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {});
|
|
2927
2949
|
};
|
|
2928
2950
|
}
|
|
@@ -3025,161 +3047,161 @@ function si(e) {
|
|
|
3025
3047
|
guards: i = !0,
|
|
3026
3048
|
initialFocus: s = 0,
|
|
3027
3049
|
returnFocus: a = !0,
|
|
3028
|
-
restoreFocus:
|
|
3050
|
+
restoreFocus: u = !1,
|
|
3029
3051
|
modal: c = !0,
|
|
3030
3052
|
visuallyHiddenDismiss: f = !1,
|
|
3031
3053
|
closeOnFocusOut: d = !0
|
|
3032
3054
|
} = e, {
|
|
3033
3055
|
open: h,
|
|
3034
|
-
refs:
|
|
3056
|
+
refs: l,
|
|
3035
3057
|
nodeId: v,
|
|
3036
3058
|
onOpenChange: p,
|
|
3037
3059
|
events: O,
|
|
3038
3060
|
dataRef: A,
|
|
3039
|
-
floatingId:
|
|
3061
|
+
floatingId: N,
|
|
3040
3062
|
elements: {
|
|
3041
|
-
domReference:
|
|
3063
|
+
domReference: g,
|
|
3042
3064
|
floating: T
|
|
3043
3065
|
}
|
|
3044
|
-
} = t, b = typeof s == "number" && s < 0,
|
|
3045
|
-
return
|
|
3046
|
-
}), x = me((
|
|
3047
|
-
const P = m(
|
|
3048
|
-
return
|
|
3066
|
+
} = t, b = typeof s == "number" && s < 0, F = kr(g) && b, Y = Go() ? i : !0, K = gt(o), Q = gt(s), X = gt(a), z = jt(), B = ri(), te = E.useRef(null), G = E.useRef(null), I = E.useRef(!1), L = E.useRef(!1), V = E.useRef(-1), M = B != null, R = oi(T), m = me(function(C) {
|
|
3067
|
+
return C === void 0 && (C = R), C ? Ft(C, Je()) : [];
|
|
3068
|
+
}), x = me((C) => {
|
|
3069
|
+
const P = m(C);
|
|
3070
|
+
return K.current.map((w) => g && w === "reference" ? g : R && w === "floating" ? R : P).filter(Boolean).flat();
|
|
3049
3071
|
});
|
|
3050
3072
|
E.useEffect(() => {
|
|
3051
3073
|
if (n || !c) return;
|
|
3052
|
-
function
|
|
3053
|
-
if (
|
|
3054
|
-
oe(R, we(ce(R))) && m().length === 0 && !
|
|
3055
|
-
const _ = x(),
|
|
3056
|
-
|
|
3074
|
+
function C(w) {
|
|
3075
|
+
if (w.key === "Tab") {
|
|
3076
|
+
oe(R, we(ce(R))) && m().length === 0 && !F && vt(w);
|
|
3077
|
+
const _ = x(), k = Ee(w);
|
|
3078
|
+
K.current[0] === "reference" && k === g && (vt(w), w.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), K.current[1] === "floating" && k === R && w.shiftKey && (vt(w), _e(_[0]));
|
|
3057
3079
|
}
|
|
3058
3080
|
}
|
|
3059
3081
|
const P = ce(R);
|
|
3060
|
-
return P.addEventListener("keydown",
|
|
3061
|
-
P.removeEventListener("keydown",
|
|
3082
|
+
return P.addEventListener("keydown", C), () => {
|
|
3083
|
+
P.removeEventListener("keydown", C);
|
|
3062
3084
|
};
|
|
3063
|
-
}, [n,
|
|
3085
|
+
}, [n, g, R, c, K, F, m, x]), E.useEffect(() => {
|
|
3064
3086
|
if (n || !T) return;
|
|
3065
|
-
function
|
|
3066
|
-
const
|
|
3067
|
-
|
|
3087
|
+
function C(P) {
|
|
3088
|
+
const w = Ee(P), k = m().indexOf(w);
|
|
3089
|
+
k !== -1 && (V.current = k);
|
|
3068
3090
|
}
|
|
3069
|
-
return T.addEventListener("focusin",
|
|
3070
|
-
T.removeEventListener("focusin",
|
|
3091
|
+
return T.addEventListener("focusin", C), () => {
|
|
3092
|
+
T.removeEventListener("focusin", C);
|
|
3071
3093
|
};
|
|
3072
3094
|
}, [n, T, m]), E.useEffect(() => {
|
|
3073
3095
|
if (n || !d) return;
|
|
3074
|
-
function
|
|
3075
|
-
|
|
3076
|
-
|
|
3096
|
+
function C() {
|
|
3097
|
+
L.current = !0, setTimeout(() => {
|
|
3098
|
+
L.current = !1;
|
|
3077
3099
|
});
|
|
3078
3100
|
}
|
|
3079
|
-
function P(
|
|
3080
|
-
const _ =
|
|
3101
|
+
function P(w) {
|
|
3102
|
+
const _ = w.relatedTarget;
|
|
3081
3103
|
queueMicrotask(() => {
|
|
3082
|
-
const
|
|
3083
|
-
var D,
|
|
3084
|
-
return oe((D =
|
|
3085
|
-
}) || Xo(
|
|
3086
|
-
var D,
|
|
3087
|
-
return ((D =
|
|
3104
|
+
const k = !(oe(g, _) || oe(T, _) || oe(_, T) || oe(B == null ? void 0 : B.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || z && (ke(z.nodesRef.current, v).find((j) => {
|
|
3105
|
+
var D, J;
|
|
3106
|
+
return oe((D = j.context) == null ? void 0 : D.elements.floating, _) || oe((J = j.context) == null ? void 0 : J.elements.domReference, _);
|
|
3107
|
+
}) || Xo(z.nodesRef.current, v).find((j) => {
|
|
3108
|
+
var D, J;
|
|
3109
|
+
return ((D = j.context) == null ? void 0 : D.elements.floating) === _ || ((J = j.context) == null ? void 0 : J.elements.domReference) === _;
|
|
3088
3110
|
})));
|
|
3089
|
-
if (
|
|
3111
|
+
if (u && k && we(ce(R)) === ce(R).body) {
|
|
3090
3112
|
ne(R) && R.focus();
|
|
3091
|
-
const
|
|
3092
|
-
ne(
|
|
3113
|
+
const j = V.current, D = m(), J = D[j] || D[D.length - 1] || R;
|
|
3114
|
+
ne(J) && J.focus();
|
|
3093
3115
|
}
|
|
3094
|
-
(
|
|
3095
|
-
_ !== gn() && (
|
|
3116
|
+
(F || !c) && _ && k && !L.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
3117
|
+
_ !== gn() && (I.current = !0, p(!1, w, "focus-out"));
|
|
3096
3118
|
});
|
|
3097
3119
|
}
|
|
3098
|
-
if (T && ne(
|
|
3099
|
-
return
|
|
3100
|
-
|
|
3120
|
+
if (T && ne(g))
|
|
3121
|
+
return g.addEventListener("focusout", P), g.addEventListener("pointerdown", C), T.addEventListener("focusout", P), () => {
|
|
3122
|
+
g.removeEventListener("focusout", P), g.removeEventListener("pointerdown", C), T.removeEventListener("focusout", P);
|
|
3101
3123
|
};
|
|
3102
|
-
}, [n,
|
|
3103
|
-
var
|
|
3124
|
+
}, [n, g, T, R, c, v, z, B, p, d, u, m, F]), E.useEffect(() => {
|
|
3125
|
+
var C;
|
|
3104
3126
|
if (n) return;
|
|
3105
|
-
const P = Array.from((
|
|
3127
|
+
const P = Array.from((B == null || (C = B.portalNode) == null ? void 0 : C.querySelectorAll("[" + Ze("portal") + "]")) || []);
|
|
3106
3128
|
if (T) {
|
|
3107
|
-
const
|
|
3129
|
+
const w = [T, ...P, te.current, G.current, K.current.includes("reference") || F ? g : null].filter((k) => k != null), _ = c || F ? mn(w, Y, !Y) : mn(w);
|
|
3108
3130
|
return () => {
|
|
3109
3131
|
_();
|
|
3110
3132
|
};
|
|
3111
3133
|
}
|
|
3112
|
-
}, [n,
|
|
3134
|
+
}, [n, g, T, c, K, B, F, Y]), de(() => {
|
|
3113
3135
|
if (n || !ne(R)) return;
|
|
3114
|
-
const
|
|
3136
|
+
const C = ce(R), P = we(C);
|
|
3115
3137
|
queueMicrotask(() => {
|
|
3116
|
-
const
|
|
3117
|
-
!b &&
|
|
3118
|
-
preventScroll:
|
|
3138
|
+
const w = x(R), _ = Q.current, k = (typeof _ == "number" ? w[_] : _.current) || R, j = oe(R, P);
|
|
3139
|
+
!b && !j && h && _e(k, {
|
|
3140
|
+
preventScroll: k === R
|
|
3119
3141
|
});
|
|
3120
3142
|
});
|
|
3121
3143
|
}, [n, h, R, b, x, Q]), de(() => {
|
|
3122
3144
|
if (n || !R) return;
|
|
3123
|
-
let
|
|
3124
|
-
const P = ce(R),
|
|
3125
|
-
let
|
|
3126
|
-
xt(
|
|
3127
|
-
function
|
|
3145
|
+
let C = !1;
|
|
3146
|
+
const P = ce(R), w = we(P);
|
|
3147
|
+
let k = A.current.openEvent;
|
|
3148
|
+
xt(w);
|
|
3149
|
+
function j(S) {
|
|
3128
3150
|
let {
|
|
3129
3151
|
open: re,
|
|
3130
3152
|
reason: fe,
|
|
3131
3153
|
event: ae,
|
|
3132
3154
|
nested: st
|
|
3133
|
-
} =
|
|
3134
|
-
re && (
|
|
3155
|
+
} = S;
|
|
3156
|
+
re && (k = ae), fe === "escape-key" && l.domReference.current && xt(l.domReference.current), fe === "hover" && ae.type === "mouseleave" && (I.current = !0), fe === "outside-press" && (st ? (I.current = !1, C = !0) : I.current = !(Cr(ae) || Sr(ae)));
|
|
3135
3157
|
}
|
|
3136
|
-
O.on("openchange",
|
|
3158
|
+
O.on("openchange", j);
|
|
3137
3159
|
const D = P.createElement("span");
|
|
3138
|
-
D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M &&
|
|
3139
|
-
function
|
|
3140
|
-
return typeof
|
|
3160
|
+
D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && g && g.insertAdjacentElement("afterend", D);
|
|
3161
|
+
function J() {
|
|
3162
|
+
return typeof X.current == "boolean" ? gn() || D : X.current.current || D;
|
|
3141
3163
|
}
|
|
3142
3164
|
return () => {
|
|
3143
|
-
O.off("openchange",
|
|
3144
|
-
const
|
|
3165
|
+
O.off("openchange", j);
|
|
3166
|
+
const S = we(P), re = oe(T, S) || z && ke(z.nodesRef.current, v).some((st) => {
|
|
3145
3167
|
var qt;
|
|
3146
|
-
return oe((qt = st.context) == null ? void 0 : qt.elements.floating,
|
|
3168
|
+
return oe((qt = st.context) == null ? void 0 : qt.elements.floating, S);
|
|
3147
3169
|
});
|
|
3148
|
-
(re ||
|
|
3149
|
-
const ae =
|
|
3170
|
+
(re || k && ["click", "mousedown"].includes(k.type)) && l.domReference.current && xt(l.domReference.current);
|
|
3171
|
+
const ae = J();
|
|
3150
3172
|
queueMicrotask(() => {
|
|
3151
3173
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3152
|
-
|
|
3174
|
+
X.current && !I.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
3153
3175
|
// since it likely entered a different element which should be
|
|
3154
3176
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
3155
|
-
(!(ae !==
|
|
3156
|
-
preventScroll:
|
|
3177
|
+
(!(ae !== S && S !== P.body) || re) && ae.focus({
|
|
3178
|
+
preventScroll: C
|
|
3157
3179
|
}), D.remove();
|
|
3158
3180
|
});
|
|
3159
3181
|
};
|
|
3160
|
-
}, [n, T, R,
|
|
3182
|
+
}, [n, T, R, X, A, l, O, z, v, M, g]), E.useEffect(() => {
|
|
3161
3183
|
queueMicrotask(() => {
|
|
3162
|
-
|
|
3184
|
+
I.current = !1;
|
|
3163
3185
|
});
|
|
3164
3186
|
}, [n]), de(() => {
|
|
3165
|
-
if (!n &&
|
|
3166
|
-
return
|
|
3187
|
+
if (!n && B)
|
|
3188
|
+
return B.setFocusManagerState({
|
|
3167
3189
|
modal: c,
|
|
3168
3190
|
closeOnFocusOut: d,
|
|
3169
3191
|
open: h,
|
|
3170
3192
|
onOpenChange: p,
|
|
3171
|
-
refs:
|
|
3193
|
+
refs: l
|
|
3172
3194
|
}), () => {
|
|
3173
|
-
|
|
3195
|
+
B.setFocusManagerState(null);
|
|
3174
3196
|
};
|
|
3175
|
-
}, [n,
|
|
3197
|
+
}, [n, B, c, h, p, l, d]), de(() => {
|
|
3176
3198
|
if (n || !R || typeof MutationObserver != "function" || b) return;
|
|
3177
|
-
const
|
|
3178
|
-
const
|
|
3179
|
-
|
|
3199
|
+
const C = () => {
|
|
3200
|
+
const w = R.getAttribute("tabindex"), _ = m(), k = we(ce(T)), j = _.indexOf(k);
|
|
3201
|
+
j !== -1 && (V.current = j), K.current.includes("floating") || k !== l.domReference.current && _.length === 0 ? w !== "0" && R.setAttribute("tabindex", "0") : w !== "-1" && R.setAttribute("tabindex", "-1");
|
|
3180
3202
|
};
|
|
3181
|
-
|
|
3182
|
-
const P = new MutationObserver(
|
|
3203
|
+
C();
|
|
3204
|
+
const P = new MutationObserver(C);
|
|
3183
3205
|
return P.observe(R, {
|
|
3184
3206
|
childList: !0,
|
|
3185
3207
|
subtree: !0,
|
|
@@ -3187,43 +3209,43 @@ function si(e) {
|
|
|
3187
3209
|
}), () => {
|
|
3188
3210
|
P.disconnect();
|
|
3189
3211
|
};
|
|
3190
|
-
}, [n, T, R,
|
|
3191
|
-
function
|
|
3212
|
+
}, [n, T, R, l, K, m, b]);
|
|
3213
|
+
function $(C) {
|
|
3192
3214
|
return n || !f || !c ? null : /* @__PURE__ */ E.createElement(ii, {
|
|
3193
|
-
ref:
|
|
3215
|
+
ref: C === "start" ? te : G,
|
|
3194
3216
|
onClick: (P) => p(!1, P.nativeEvent)
|
|
3195
3217
|
}, typeof f == "string" ? f : "Dismiss");
|
|
3196
3218
|
}
|
|
3197
|
-
const
|
|
3198
|
-
return /* @__PURE__ */ E.createElement(E.Fragment, null,
|
|
3219
|
+
const q = !n && Y && (c ? !F : !0) && (M || c);
|
|
3220
|
+
return /* @__PURE__ */ E.createElement(E.Fragment, null, q && /* @__PURE__ */ E.createElement(bn, {
|
|
3199
3221
|
"data-type": "inside",
|
|
3200
|
-
ref:
|
|
3201
|
-
onFocus: (
|
|
3222
|
+
ref: B == null ? void 0 : B.beforeInsideRef,
|
|
3223
|
+
onFocus: (C) => {
|
|
3202
3224
|
if (c) {
|
|
3203
|
-
const
|
|
3204
|
-
_e(o[0] === "reference" ?
|
|
3205
|
-
} else if (
|
|
3206
|
-
if (
|
|
3207
|
-
const
|
|
3208
|
-
|
|
3225
|
+
const w = x();
|
|
3226
|
+
_e(o[0] === "reference" ? w[0] : w[w.length - 1]);
|
|
3227
|
+
} else if (B != null && B.preserveTabOrder && B.portalNode)
|
|
3228
|
+
if (I.current = !1, hn(C, B.portalNode)) {
|
|
3229
|
+
const w = Qo() || g;
|
|
3230
|
+
w == null || w.focus();
|
|
3209
3231
|
} else {
|
|
3210
3232
|
var P;
|
|
3211
|
-
(P =
|
|
3233
|
+
(P = B.beforeOutsideRef.current) == null || P.focus();
|
|
3212
3234
|
}
|
|
3213
3235
|
}
|
|
3214
|
-
}), !
|
|
3236
|
+
}), !F && $("start"), r, $("end"), q && /* @__PURE__ */ E.createElement(bn, {
|
|
3215
3237
|
"data-type": "inside",
|
|
3216
|
-
ref:
|
|
3217
|
-
onFocus: (
|
|
3238
|
+
ref: B == null ? void 0 : B.afterInsideRef,
|
|
3239
|
+
onFocus: (C) => {
|
|
3218
3240
|
if (c)
|
|
3219
3241
|
_e(x()[0]);
|
|
3220
|
-
else if (
|
|
3221
|
-
if (d && (
|
|
3222
|
-
const
|
|
3223
|
-
|
|
3242
|
+
else if (B != null && B.preserveTabOrder && B.portalNode)
|
|
3243
|
+
if (d && (I.current = !0), hn(C, B.portalNode)) {
|
|
3244
|
+
const w = ei() || g;
|
|
3245
|
+
w == null || w.focus();
|
|
3224
3246
|
} else {
|
|
3225
3247
|
var P;
|
|
3226
|
-
(P =
|
|
3248
|
+
(P = B.afterOutsideRef.current) == null || P.focus();
|
|
3227
3249
|
}
|
|
3228
3250
|
}
|
|
3229
3251
|
}));
|
|
@@ -3246,17 +3268,17 @@ function ai(e, t) {
|
|
|
3246
3268
|
} = e, {
|
|
3247
3269
|
enabled: s = !0,
|
|
3248
3270
|
event: a = "click",
|
|
3249
|
-
toggle:
|
|
3271
|
+
toggle: u = !0,
|
|
3250
3272
|
ignoreMouse: c = !1,
|
|
3251
3273
|
keyboardHandlers: f = !0,
|
|
3252
3274
|
stickIfOpen: d = !0
|
|
3253
|
-
} = t, h = E.useRef(),
|
|
3275
|
+
} = t, h = E.useRef(), l = E.useRef(!1), v = E.useMemo(() => ({
|
|
3254
3276
|
onPointerDown(p) {
|
|
3255
3277
|
h.current = p.pointerType;
|
|
3256
3278
|
},
|
|
3257
3279
|
onMouseDown(p) {
|
|
3258
3280
|
const O = h.current;
|
|
3259
|
-
p.button === 0 && a !== "click" && (en(O) && c || (r &&
|
|
3281
|
+
p.button === 0 && a !== "click" && (en(O) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
|
|
3260
3282
|
},
|
|
3261
3283
|
onClick(p) {
|
|
3262
3284
|
const O = h.current;
|
|
@@ -3264,15 +3286,15 @@ function ai(e, t) {
|
|
|
3264
3286
|
h.current = void 0;
|
|
3265
3287
|
return;
|
|
3266
3288
|
}
|
|
3267
|
-
en(O) && c || (r &&
|
|
3289
|
+
en(O) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
|
|
3268
3290
|
},
|
|
3269
3291
|
onKeyDown(p) {
|
|
3270
|
-
h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(),
|
|
3292
|
+
h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(), l.current = !0), p.key === "Enter" && n(!(r && u), p.nativeEvent, "click"));
|
|
3271
3293
|
},
|
|
3272
3294
|
onKeyUp(p) {
|
|
3273
|
-
p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " &&
|
|
3295
|
+
p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && l.current && (l.current = !1, n(!(r && u), p.nativeEvent, "click"));
|
|
3274
3296
|
}
|
|
3275
|
-
}), [o, i, a, c, f, n, r, d,
|
|
3297
|
+
}), [o, i, a, c, f, n, r, d, u]);
|
|
3276
3298
|
return E.useMemo(() => s ? {
|
|
3277
3299
|
reference: v
|
|
3278
3300
|
} : {}, [s, v]);
|
|
@@ -3302,25 +3324,25 @@ function ui(e, t) {
|
|
|
3302
3324
|
} = e, {
|
|
3303
3325
|
enabled: s = !0,
|
|
3304
3326
|
escapeKey: a = !0,
|
|
3305
|
-
outsidePress:
|
|
3327
|
+
outsidePress: u = !0,
|
|
3306
3328
|
outsidePressEvent: c = "pointerdown",
|
|
3307
3329
|
referencePress: f = !1,
|
|
3308
3330
|
referencePressEvent: d = "pointerdown",
|
|
3309
3331
|
ancestorScroll: h = !1,
|
|
3310
|
-
bubbles:
|
|
3332
|
+
bubbles: l,
|
|
3311
3333
|
capture: v
|
|
3312
|
-
} = t, p = jt(), O = me(typeof
|
|
3334
|
+
} = t, p = jt(), O = me(typeof u == "function" ? u : () => !1), A = typeof u == "function" ? O : u, N = E.useRef(!1), g = E.useRef(!1), {
|
|
3313
3335
|
escapeKey: T,
|
|
3314
3336
|
outsidePress: b
|
|
3315
|
-
} = En(
|
|
3316
|
-
escapeKey:
|
|
3317
|
-
outsidePress:
|
|
3318
|
-
} = En(v),
|
|
3319
|
-
var
|
|
3320
|
-
if (!r || !s || !a ||
|
|
3337
|
+
} = En(l), {
|
|
3338
|
+
escapeKey: F,
|
|
3339
|
+
outsidePress: Y
|
|
3340
|
+
} = En(v), K = E.useRef(!1), Q = me((I) => {
|
|
3341
|
+
var L;
|
|
3342
|
+
if (!r || !s || !a || I.key !== "Escape" || K.current)
|
|
3321
3343
|
return;
|
|
3322
|
-
const V = (
|
|
3323
|
-
if (!T && (
|
|
3344
|
+
const V = (L = i.current.floatingContext) == null ? void 0 : L.nodeId, M = p ? ke(p.nodesRef.current, V) : [];
|
|
3345
|
+
if (!T && (I.stopPropagation(), M.length > 0)) {
|
|
3324
3346
|
let R = !0;
|
|
3325
3347
|
if (M.forEach((m) => {
|
|
3326
3348
|
var x;
|
|
@@ -3331,82 +3353,82 @@ function ui(e, t) {
|
|
|
3331
3353
|
}), !R)
|
|
3332
3354
|
return;
|
|
3333
3355
|
}
|
|
3334
|
-
n(!1, Ar(
|
|
3335
|
-
}),
|
|
3336
|
-
var
|
|
3356
|
+
n(!1, Ar(I) ? I.nativeEvent : I, "escape-key");
|
|
3357
|
+
}), X = me((I) => {
|
|
3358
|
+
var L;
|
|
3337
3359
|
const V = () => {
|
|
3338
3360
|
var M;
|
|
3339
|
-
Q(
|
|
3361
|
+
Q(I), (M = Ee(I)) == null || M.removeEventListener("keydown", V);
|
|
3340
3362
|
};
|
|
3341
|
-
(
|
|
3342
|
-
}),
|
|
3343
|
-
var
|
|
3344
|
-
const V =
|
|
3345
|
-
|
|
3346
|
-
const M =
|
|
3347
|
-
if (
|
|
3363
|
+
(L = Ee(I)) == null || L.addEventListener("keydown", V);
|
|
3364
|
+
}), z = me((I) => {
|
|
3365
|
+
var L;
|
|
3366
|
+
const V = N.current;
|
|
3367
|
+
N.current = !1;
|
|
3368
|
+
const M = g.current;
|
|
3369
|
+
if (g.current = !1, c === "click" && M || V || typeof A == "function" && !A(I))
|
|
3348
3370
|
return;
|
|
3349
|
-
const R = Ee(
|
|
3350
|
-
let
|
|
3351
|
-
for (;
|
|
3352
|
-
const
|
|
3353
|
-
if (be(
|
|
3371
|
+
const R = Ee(I), m = "[" + Ze("inert") + "]", x = ce(o.floating).querySelectorAll(m);
|
|
3372
|
+
let $ = ee(R) ? R : null;
|
|
3373
|
+
for (; $ && !be($); ) {
|
|
3374
|
+
const w = pe($);
|
|
3375
|
+
if (be(w) || !ee(w))
|
|
3354
3376
|
break;
|
|
3355
|
-
|
|
3377
|
+
$ = w;
|
|
3356
3378
|
}
|
|
3357
3379
|
if (x.length && ee(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
3358
3380
|
!oe(R, o.floating) && // If the target root element contains none of the markers, then the
|
|
3359
3381
|
// element was injected after the floating element rendered.
|
|
3360
|
-
Array.from(x).every((
|
|
3382
|
+
Array.from(x).every((w) => !oe($, w)))
|
|
3361
3383
|
return;
|
|
3362
|
-
if (ne(R) &&
|
|
3363
|
-
const
|
|
3364
|
-
let
|
|
3365
|
-
if (_ && se(R).direction === "rtl" && (
|
|
3384
|
+
if (ne(R) && G) {
|
|
3385
|
+
const w = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
|
|
3386
|
+
let k = _ && I.offsetX > R.clientWidth;
|
|
3387
|
+
if (_ && se(R).direction === "rtl" && (k = I.offsetX <= R.offsetWidth - R.clientWidth), k || w && I.offsetY > R.clientHeight)
|
|
3366
3388
|
return;
|
|
3367
3389
|
}
|
|
3368
|
-
const
|
|
3390
|
+
const q = (L = i.current.floatingContext) == null ? void 0 : L.nodeId, C = p && ke(p.nodesRef.current, q).some((w) => {
|
|
3369
3391
|
var _;
|
|
3370
|
-
return ht(
|
|
3392
|
+
return ht(I, (_ = w.context) == null ? void 0 : _.elements.floating);
|
|
3371
3393
|
});
|
|
3372
|
-
if (ht(
|
|
3394
|
+
if (ht(I, o.floating) || ht(I, o.domReference) || C)
|
|
3373
3395
|
return;
|
|
3374
|
-
const P = p ?
|
|
3396
|
+
const P = p ? ke(p.nodesRef.current, q) : [];
|
|
3375
3397
|
if (P.length > 0) {
|
|
3376
|
-
let
|
|
3398
|
+
let w = !0;
|
|
3377
3399
|
if (P.forEach((_) => {
|
|
3378
|
-
var
|
|
3379
|
-
if ((
|
|
3380
|
-
|
|
3400
|
+
var k;
|
|
3401
|
+
if ((k = _.context) != null && k.open && !_.context.dataRef.current.__outsidePressBubbles) {
|
|
3402
|
+
w = !1;
|
|
3381
3403
|
return;
|
|
3382
3404
|
}
|
|
3383
|
-
}), !
|
|
3405
|
+
}), !w)
|
|
3384
3406
|
return;
|
|
3385
3407
|
}
|
|
3386
|
-
n(!1,
|
|
3387
|
-
}),
|
|
3388
|
-
var
|
|
3408
|
+
n(!1, I, "outside-press");
|
|
3409
|
+
}), B = me((I) => {
|
|
3410
|
+
var L;
|
|
3389
3411
|
const V = () => {
|
|
3390
3412
|
var M;
|
|
3391
|
-
|
|
3413
|
+
z(I), (M = Ee(I)) == null || M.removeEventListener(c, V);
|
|
3392
3414
|
};
|
|
3393
|
-
(
|
|
3415
|
+
(L = Ee(I)) == null || L.addEventListener(c, V);
|
|
3394
3416
|
});
|
|
3395
3417
|
E.useEffect(() => {
|
|
3396
3418
|
if (!r || !s)
|
|
3397
3419
|
return;
|
|
3398
3420
|
i.current.__escapeKeyBubbles = T, i.current.__outsidePressBubbles = b;
|
|
3399
|
-
let
|
|
3400
|
-
function
|
|
3421
|
+
let I = -1;
|
|
3422
|
+
function L(x) {
|
|
3401
3423
|
n(!1, x, "ancestor-scroll");
|
|
3402
3424
|
}
|
|
3403
3425
|
function V() {
|
|
3404
|
-
window.clearTimeout(
|
|
3426
|
+
window.clearTimeout(I), K.current = !0;
|
|
3405
3427
|
}
|
|
3406
3428
|
function M() {
|
|
3407
|
-
|
|
3429
|
+
I = window.setTimeout(
|
|
3408
3430
|
() => {
|
|
3409
|
-
|
|
3431
|
+
K.current = !1;
|
|
3410
3432
|
},
|
|
3411
3433
|
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
3412
3434
|
// Only apply to WebKit for the test to remain 0ms.
|
|
@@ -3414,44 +3436,44 @@ function ui(e, t) {
|
|
|
3414
3436
|
);
|
|
3415
3437
|
}
|
|
3416
3438
|
const R = ce(o.floating);
|
|
3417
|
-
a && (R.addEventListener("keydown",
|
|
3439
|
+
a && (R.addEventListener("keydown", F ? X : Q, F), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, Y ? B : z, Y);
|
|
3418
3440
|
let m = [];
|
|
3419
3441
|
return h && (ee(o.domReference) && (m = ve(o.domReference)), ee(o.floating) && (m = m.concat(ve(o.floating))), !ee(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(ve(o.reference.contextElement)))), m = m.filter((x) => {
|
|
3420
|
-
var
|
|
3421
|
-
return x !== ((
|
|
3442
|
+
var $;
|
|
3443
|
+
return x !== (($ = R.defaultView) == null ? void 0 : $.visualViewport);
|
|
3422
3444
|
}), m.forEach((x) => {
|
|
3423
|
-
x.addEventListener("scroll",
|
|
3445
|
+
x.addEventListener("scroll", L, {
|
|
3424
3446
|
passive: !0
|
|
3425
3447
|
});
|
|
3426
3448
|
}), () => {
|
|
3427
|
-
a && (R.removeEventListener("keydown",
|
|
3428
|
-
x.removeEventListener("scroll",
|
|
3429
|
-
}), window.clearTimeout(
|
|
3449
|
+
a && (R.removeEventListener("keydown", F ? X : Q, F), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, Y ? B : z, Y), m.forEach((x) => {
|
|
3450
|
+
x.removeEventListener("scroll", L);
|
|
3451
|
+
}), window.clearTimeout(I);
|
|
3430
3452
|
};
|
|
3431
|
-
}, [i, o, a, A, c, r, n, h, s, T, b, Q,
|
|
3432
|
-
|
|
3453
|
+
}, [i, o, a, A, c, r, n, h, s, T, b, Q, F, X, z, Y, B]), E.useEffect(() => {
|
|
3454
|
+
N.current = !1;
|
|
3433
3455
|
}, [A, c]);
|
|
3434
3456
|
const te = E.useMemo(() => ({
|
|
3435
3457
|
onKeyDown: Q,
|
|
3436
|
-
[ci[d]]: (
|
|
3437
|
-
f && n(!1,
|
|
3458
|
+
[ci[d]]: (I) => {
|
|
3459
|
+
f && n(!1, I.nativeEvent, "reference-press");
|
|
3438
3460
|
}
|
|
3439
|
-
}), [Q, n, f, d]),
|
|
3461
|
+
}), [Q, n, f, d]), G = E.useMemo(() => ({
|
|
3440
3462
|
onKeyDown: Q,
|
|
3441
3463
|
onMouseDown() {
|
|
3442
|
-
|
|
3464
|
+
g.current = !0;
|
|
3443
3465
|
},
|
|
3444
3466
|
onMouseUp() {
|
|
3445
|
-
|
|
3467
|
+
g.current = !0;
|
|
3446
3468
|
},
|
|
3447
3469
|
[li[c]]: () => {
|
|
3448
|
-
|
|
3470
|
+
N.current = !0;
|
|
3449
3471
|
}
|
|
3450
3472
|
}), [Q, c]);
|
|
3451
3473
|
return E.useMemo(() => s ? {
|
|
3452
3474
|
reference: te,
|
|
3453
|
-
floating:
|
|
3454
|
-
} : {}, [s, te,
|
|
3475
|
+
floating: G
|
|
3476
|
+
} : {}, [s, te, G]);
|
|
3455
3477
|
}
|
|
3456
3478
|
function fi(e) {
|
|
3457
3479
|
const {
|
|
@@ -3460,23 +3482,23 @@ function fi(e) {
|
|
|
3460
3482
|
elements: n
|
|
3461
3483
|
} = e, o = Qn(), i = E.useRef({}), [s] = E.useState(() => Ho()), a = er() != null;
|
|
3462
3484
|
if (process.env.NODE_ENV !== "production") {
|
|
3463
|
-
const
|
|
3464
|
-
|
|
3485
|
+
const l = n.reference;
|
|
3486
|
+
l && !ee(l) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3465
3487
|
}
|
|
3466
|
-
const [
|
|
3467
|
-
i.current.openEvent =
|
|
3468
|
-
open:
|
|
3488
|
+
const [u, c] = E.useState(n.reference), f = me((l, v, p) => {
|
|
3489
|
+
i.current.openEvent = l ? v : void 0, s.emit("openchange", {
|
|
3490
|
+
open: l,
|
|
3469
3491
|
event: v,
|
|
3470
3492
|
reason: p,
|
|
3471
3493
|
nested: a
|
|
3472
|
-
}), r == null || r(
|
|
3494
|
+
}), r == null || r(l, v, p);
|
|
3473
3495
|
}), d = E.useMemo(() => ({
|
|
3474
3496
|
setPositionReference: c
|
|
3475
3497
|
}), []), h = E.useMemo(() => ({
|
|
3476
|
-
reference:
|
|
3498
|
+
reference: u || n.reference || null,
|
|
3477
3499
|
floating: n.floating || null,
|
|
3478
3500
|
domReference: n.reference
|
|
3479
|
-
}), [
|
|
3501
|
+
}), [u, n.reference, n.floating]);
|
|
3480
3502
|
return E.useMemo(() => ({
|
|
3481
3503
|
dataRef: i,
|
|
3482
3504
|
open: t,
|
|
@@ -3498,11 +3520,11 @@ function di(e) {
|
|
|
3498
3520
|
floating: null,
|
|
3499
3521
|
...e.elements
|
|
3500
3522
|
}
|
|
3501
|
-
}), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a,
|
|
3523
|
+
}), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a, u] = E.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = E.useRef(null), h = jt();
|
|
3502
3524
|
de(() => {
|
|
3503
3525
|
f && (d.current = f);
|
|
3504
3526
|
}, [f]);
|
|
3505
|
-
const
|
|
3527
|
+
const l = Lo({
|
|
3506
3528
|
...e,
|
|
3507
3529
|
elements: {
|
|
3508
3530
|
...o,
|
|
@@ -3510,42 +3532,42 @@ function di(e) {
|
|
|
3510
3532
|
reference: a
|
|
3511
3533
|
}
|
|
3512
3534
|
}
|
|
3513
|
-
}), v = E.useCallback((
|
|
3514
|
-
const T = ee(
|
|
3515
|
-
getBoundingClientRect: () =>
|
|
3516
|
-
contextElement:
|
|
3517
|
-
} :
|
|
3518
|
-
|
|
3519
|
-
}, [
|
|
3520
|
-
(ee(
|
|
3535
|
+
}), v = E.useCallback((g) => {
|
|
3536
|
+
const T = ee(g) ? {
|
|
3537
|
+
getBoundingClientRect: () => g.getBoundingClientRect(),
|
|
3538
|
+
contextElement: g
|
|
3539
|
+
} : g;
|
|
3540
|
+
u(T), l.refs.setReference(T);
|
|
3541
|
+
}, [l.refs]), p = E.useCallback((g) => {
|
|
3542
|
+
(ee(g) || g === null) && (d.current = g, s(g)), (ee(l.refs.reference.current) || l.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
3521
3543
|
// `null` to support `positionReference` + an unstable `reference`
|
|
3522
3544
|
// callback ref.
|
|
3523
|
-
|
|
3524
|
-
}, [
|
|
3525
|
-
...
|
|
3545
|
+
g !== null && !ee(g)) && l.refs.setReference(g);
|
|
3546
|
+
}, [l.refs]), O = E.useMemo(() => ({
|
|
3547
|
+
...l.refs,
|
|
3526
3548
|
setReference: p,
|
|
3527
3549
|
setPositionReference: v,
|
|
3528
3550
|
domReference: d
|
|
3529
|
-
}), [
|
|
3530
|
-
...
|
|
3551
|
+
}), [l.refs, p, v]), A = E.useMemo(() => ({
|
|
3552
|
+
...l.elements,
|
|
3531
3553
|
domReference: f
|
|
3532
|
-
}), [
|
|
3533
|
-
...
|
|
3554
|
+
}), [l.elements, f]), N = E.useMemo(() => ({
|
|
3555
|
+
...l,
|
|
3534
3556
|
...n,
|
|
3535
3557
|
refs: O,
|
|
3536
3558
|
elements: A,
|
|
3537
3559
|
nodeId: t
|
|
3538
|
-
}), [
|
|
3560
|
+
}), [l, O, A, t, n]);
|
|
3539
3561
|
return de(() => {
|
|
3540
|
-
n.dataRef.current.floatingContext =
|
|
3541
|
-
const
|
|
3542
|
-
|
|
3562
|
+
n.dataRef.current.floatingContext = N;
|
|
3563
|
+
const g = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
|
|
3564
|
+
g && (g.context = N);
|
|
3543
3565
|
}), E.useMemo(() => ({
|
|
3544
|
-
...
|
|
3545
|
-
context:
|
|
3566
|
+
...l,
|
|
3567
|
+
context: N,
|
|
3546
3568
|
refs: O,
|
|
3547
3569
|
elements: A
|
|
3548
|
-
}), [
|
|
3570
|
+
}), [l, O, A, N]);
|
|
3549
3571
|
}
|
|
3550
3572
|
const Rn = "active", Tn = "selected";
|
|
3551
3573
|
function Et(e, t, r) {
|
|
@@ -3555,9 +3577,9 @@ function Et(e, t, r) {
|
|
|
3555
3577
|
const {
|
|
3556
3578
|
[Rn]: s,
|
|
3557
3579
|
[Tn]: a,
|
|
3558
|
-
...
|
|
3580
|
+
...u
|
|
3559
3581
|
} = e;
|
|
3560
|
-
i =
|
|
3582
|
+
i = u;
|
|
3561
3583
|
}
|
|
3562
3584
|
return {
|
|
3563
3585
|
...r === "floating" && {
|
|
@@ -3568,14 +3590,14 @@ function Et(e, t, r) {
|
|
|
3568
3590
|
...t.map((s) => {
|
|
3569
3591
|
const a = s ? s[r] : null;
|
|
3570
3592
|
return typeof a == "function" ? e ? a(e) : null : a;
|
|
3571
|
-
}).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((
|
|
3572
|
-
let [c, f] =
|
|
3593
|
+
}).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((u) => {
|
|
3594
|
+
let [c, f] = u;
|
|
3573
3595
|
if (!(o && [Rn, Tn].includes(c)))
|
|
3574
3596
|
if (c.indexOf("on") === 0) {
|
|
3575
3597
|
if (n.has(c) || n.set(c, []), typeof f == "function") {
|
|
3576
3598
|
var d;
|
|
3577
3599
|
(d = n.get(c)) == null || d.push(f), s[c] = function() {
|
|
3578
|
-
for (var h,
|
|
3600
|
+
for (var h, l = arguments.length, v = new Array(l), p = 0; p < l; p++)
|
|
3579
3601
|
v[p] = arguments[p];
|
|
3580
3602
|
return (h = n.get(c)) == null ? void 0 : h.map((O) => O(...v)).find((O) => O !== void 0);
|
|
3581
3603
|
};
|
|
@@ -3616,7 +3638,7 @@ function hi(e, t) {
|
|
|
3616
3638
|
} = e, {
|
|
3617
3639
|
enabled: i = !0,
|
|
3618
3640
|
role: s = "dialog"
|
|
3619
|
-
} = t, a = (r = mi.get(s)) != null ? r : s,
|
|
3641
|
+
} = t, a = (r = mi.get(s)) != null ? r : s, u = Qn(), f = er() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
|
|
3620
3642
|
["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
|
|
3621
3643
|
} : {
|
|
3622
3644
|
"aria-expanded": n ? "true" : "false",
|
|
@@ -3626,7 +3648,7 @@ function hi(e, t) {
|
|
|
3626
3648
|
role: "combobox"
|
|
3627
3649
|
},
|
|
3628
3650
|
...a === "menu" && {
|
|
3629
|
-
id:
|
|
3651
|
+
id: u
|
|
3630
3652
|
},
|
|
3631
3653
|
...a === "menu" && f && {
|
|
3632
3654
|
role: "menuitem"
|
|
@@ -3637,7 +3659,7 @@ function hi(e, t) {
|
|
|
3637
3659
|
...s === "combobox" && {
|
|
3638
3660
|
"aria-autocomplete": "list"
|
|
3639
3661
|
}
|
|
3640
|
-
}, [a, o, f, n,
|
|
3662
|
+
}, [a, o, f, n, u, s]), h = E.useMemo(() => {
|
|
3641
3663
|
const v = {
|
|
3642
3664
|
id: o,
|
|
3643
3665
|
...a && {
|
|
@@ -3647,10 +3669,10 @@ function hi(e, t) {
|
|
|
3647
3669
|
return a === "tooltip" || s === "label" ? v : {
|
|
3648
3670
|
...v,
|
|
3649
3671
|
...a === "menu" && {
|
|
3650
|
-
"aria-labelledby":
|
|
3672
|
+
"aria-labelledby": u
|
|
3651
3673
|
}
|
|
3652
3674
|
};
|
|
3653
|
-
}, [a, o,
|
|
3675
|
+
}, [a, o, u, s]), l = E.useCallback((v) => {
|
|
3654
3676
|
let {
|
|
3655
3677
|
active: p,
|
|
3656
3678
|
selected: O
|
|
@@ -3680,8 +3702,8 @@ function hi(e, t) {
|
|
|
3680
3702
|
return E.useMemo(() => i ? {
|
|
3681
3703
|
reference: d,
|
|
3682
3704
|
floating: h,
|
|
3683
|
-
item:
|
|
3684
|
-
} : {}, [i, d, h,
|
|
3705
|
+
item: l
|
|
3706
|
+
} : {}, [i, d, h, l]);
|
|
3685
3707
|
}
|
|
3686
3708
|
function vi({ className: e, children: t, buttonText: r }) {
|
|
3687
3709
|
const [n, o] = On(!1), { refs: i, floatingStyles: s, context: a } = di({
|
|
@@ -3690,20 +3712,20 @@ function vi({ className: e, children: t, buttonText: r }) {
|
|
|
3690
3712
|
middleware: [Fo(16), jo(), $o()],
|
|
3691
3713
|
whileElementsMounted: Ao,
|
|
3692
3714
|
placement: "right"
|
|
3693
|
-
}),
|
|
3694
|
-
|
|
3715
|
+
}), u = ai(a), c = ui(a), f = hi(a), { getReferenceProps: d, getFloatingProps: h } = pi([
|
|
3716
|
+
u,
|
|
3695
3717
|
c,
|
|
3696
3718
|
f
|
|
3697
3719
|
]);
|
|
3698
|
-
return /* @__PURE__ */
|
|
3699
|
-
/* @__PURE__ */
|
|
3700
|
-
n && /* @__PURE__ */
|
|
3720
|
+
return /* @__PURE__ */ W(Pe, { children: [
|
|
3721
|
+
/* @__PURE__ */ y("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ y(Re, { text: r }) }),
|
|
3722
|
+
n && /* @__PURE__ */ y(si, { context: a, modal: !1, children: /* @__PURE__ */ y(
|
|
3701
3723
|
"div",
|
|
3702
3724
|
{
|
|
3703
3725
|
ref: i.setFloating,
|
|
3704
3726
|
style: s,
|
|
3705
3727
|
...h(),
|
|
3706
|
-
children: /* @__PURE__ */
|
|
3728
|
+
children: /* @__PURE__ */ y(gr, { children: t })
|
|
3707
3729
|
}
|
|
3708
3730
|
) })
|
|
3709
3731
|
] });
|
|
@@ -3713,12 +3735,12 @@ const qi = ({
|
|
|
3713
3735
|
children: t,
|
|
3714
3736
|
buttonText: r = "Menu button"
|
|
3715
3737
|
}) => {
|
|
3716
|
-
const n =
|
|
3717
|
-
return /* @__PURE__ */
|
|
3718
|
-
},
|
|
3719
|
-
t === "left" && r !== "" ?
|
|
3738
|
+
const n = Z("rpf-menu-button", e);
|
|
3739
|
+
return /* @__PURE__ */ y(vi, { className: n, buttonText: r, children: t });
|
|
3740
|
+
}, Cn = (e) => e ? /* @__PURE__ */ y("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Sn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ W(Pe, { children: [
|
|
3741
|
+
t === "left" && r !== "" ? Cn(r) : null,
|
|
3720
3742
|
e,
|
|
3721
|
-
t === "right" && r !== "" ?
|
|
3743
|
+
t === "right" && r !== "" ? Cn(r) : null
|
|
3722
3744
|
] }), Vi = ({
|
|
3723
3745
|
text: e,
|
|
3724
3746
|
href: t,
|
|
@@ -3728,30 +3750,30 @@ const qi = ({
|
|
|
3728
3750
|
className: i,
|
|
3729
3751
|
onClick: s
|
|
3730
3752
|
}) => {
|
|
3731
|
-
const a =
|
|
3753
|
+
const a = Z(
|
|
3732
3754
|
"rpf-menu__item",
|
|
3733
3755
|
{ "rpf-menu__item--danger": o },
|
|
3734
3756
|
i
|
|
3735
3757
|
);
|
|
3736
|
-
return /* @__PURE__ */
|
|
3737
|
-
}, Yi = ({ text: e }) => /* @__PURE__ */
|
|
3758
|
+
return /* @__PURE__ */ y("li", { className: a, children: t ? /* @__PURE__ */ y("a", { href: t, children: /* @__PURE__ */ y(Sn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ y("button", { type: "button", onClick: s, children: /* @__PURE__ */ y(Sn, { text: e, iconPosition: n, icon: r }) }) });
|
|
3759
|
+
}, Yi = ({ text: e }) => /* @__PURE__ */ y("li", { className: "rpf-menu__title", children: /* @__PURE__ */ y("span", { children: e }) }), Ui = ({
|
|
3738
3760
|
text: e = "",
|
|
3739
3761
|
percent: t,
|
|
3740
3762
|
complete: r = !1,
|
|
3741
3763
|
className: n
|
|
3742
|
-
}) => /* @__PURE__ */
|
|
3764
|
+
}) => /* @__PURE__ */ y(
|
|
3743
3765
|
"div",
|
|
3744
3766
|
{
|
|
3745
|
-
className:
|
|
3767
|
+
className: Z("rpf-progress-bar", {
|
|
3746
3768
|
"rpf-progress-bar--complete": r,
|
|
3747
3769
|
className: n
|
|
3748
3770
|
}),
|
|
3749
|
-
children: /* @__PURE__ */
|
|
3750
|
-
/* @__PURE__ */
|
|
3751
|
-
/* @__PURE__ */
|
|
3771
|
+
children: /* @__PURE__ */ W("label", { className: "rpf-progress-bar__label", children: [
|
|
3772
|
+
/* @__PURE__ */ y("span", { children: e }),
|
|
3773
|
+
/* @__PURE__ */ y("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
3752
3774
|
] })
|
|
3753
3775
|
}
|
|
3754
|
-
), Hi = ({ children: e }) => /* @__PURE__ */
|
|
3776
|
+
), Hi = ({ children: e }) => /* @__PURE__ */ y("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ y("div", { className: "rpf-table-cell__content", children: e }) });
|
|
3755
3777
|
/**
|
|
3756
3778
|
* @license lucide-react v0.553.0 - ISC
|
|
3757
3779
|
*
|
|
@@ -3802,10 +3824,10 @@ const xi = It(
|
|
|
3802
3824
|
children: i,
|
|
3803
3825
|
iconNode: s,
|
|
3804
3826
|
...a
|
|
3805
|
-
},
|
|
3827
|
+
}, u) => Tt(
|
|
3806
3828
|
"svg",
|
|
3807
3829
|
{
|
|
3808
|
-
ref:
|
|
3830
|
+
ref: u,
|
|
3809
3831
|
...wi,
|
|
3810
3832
|
width: t,
|
|
3811
3833
|
height: t,
|
|
@@ -3866,20 +3888,20 @@ const Ti = [
|
|
|
3866
3888
|
["path", { d: "M11 4h10", key: "1w87gc" }],
|
|
3867
3889
|
["path", { d: "M11 8h7", key: "djye34" }],
|
|
3868
3890
|
["path", { d: "M11 12h4", key: "q8tih4" }]
|
|
3869
|
-
],
|
|
3891
|
+
], Ci = Bt("arrow-down-wide-narrow", Ti);
|
|
3870
3892
|
/**
|
|
3871
3893
|
* @license lucide-react v0.553.0 - ISC
|
|
3872
3894
|
*
|
|
3873
3895
|
* This source code is licensed under the ISC license.
|
|
3874
3896
|
* See the LICENSE file in the root directory of this source tree.
|
|
3875
3897
|
*/
|
|
3876
|
-
const
|
|
3898
|
+
const Si = [
|
|
3877
3899
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3878
3900
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
3879
3901
|
["path", { d: "M11 12h4", key: "q8tih4" }],
|
|
3880
3902
|
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
3881
3903
|
["path", { d: "M11 20h10", key: "jvxblo" }]
|
|
3882
|
-
], _i = Bt("arrow-up-narrow-wide",
|
|
3904
|
+
], _i = Bt("arrow-up-narrow-wide", Si), Oi = (e, t) => {
|
|
3883
3905
|
if (e)
|
|
3884
3906
|
return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
|
|
3885
3907
|
}, Ki = ({
|
|
@@ -3887,25 +3909,25 @@ const Ci = [
|
|
|
3887
3909
|
children: t,
|
|
3888
3910
|
onClick: r
|
|
3889
3911
|
}) => {
|
|
3890
|
-
const n = !!r, o = e === "up" ? _i : e === "down" ?
|
|
3891
|
-
return /* @__PURE__ */
|
|
3912
|
+
const n = !!r, o = e === "up" ? _i : e === "down" ? Ci : Ri, i = Oi(n, e);
|
|
3913
|
+
return /* @__PURE__ */ y("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ y("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ W("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
|
|
3892
3914
|
t,
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
] }) : /* @__PURE__ */
|
|
3895
|
-
}, zi = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */
|
|
3915
|
+
/* @__PURE__ */ y(o, { size: 20 })
|
|
3916
|
+
] }) : /* @__PURE__ */ y(Pe, { children: t }) }) });
|
|
3917
|
+
}, zi = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ y(
|
|
3896
3918
|
"div",
|
|
3897
3919
|
{
|
|
3898
3920
|
"data-testid": "table-container",
|
|
3899
|
-
className:
|
|
3900
|
-
children: /* @__PURE__ */
|
|
3921
|
+
className: Z("rpf-table", { "rpf-table--full-width": r }),
|
|
3922
|
+
children: /* @__PURE__ */ W(
|
|
3901
3923
|
"table",
|
|
3902
3924
|
{
|
|
3903
|
-
className:
|
|
3925
|
+
className: Z("rpf-table__table", {
|
|
3904
3926
|
"rpf-table__table--full-width": r
|
|
3905
3927
|
}),
|
|
3906
3928
|
children: [
|
|
3907
|
-
/* @__PURE__ */
|
|
3908
|
-
/* @__PURE__ */
|
|
3929
|
+
/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { className: "rpf-table-row", children: e }) }),
|
|
3930
|
+
/* @__PURE__ */ y("tbody", { children: t.map((n, o) => /* @__PURE__ */ y("tr", { className: "rpf-table-row", children: n }, o)) })
|
|
3909
3931
|
]
|
|
3910
3932
|
}
|
|
3911
3933
|
)
|
|
@@ -3917,13 +3939,13 @@ const Ci = [
|
|
|
3917
3939
|
icon: n,
|
|
3918
3940
|
iconPosition: o
|
|
3919
3941
|
}) => {
|
|
3920
|
-
const i = n ? /* @__PURE__ */
|
|
3942
|
+
const i = n ? /* @__PURE__ */ y("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
|
|
3921
3943
|
n && !o && (o = "left");
|
|
3922
3944
|
const s = t && t !== "default" ? `rpf-tag--${t}` : null;
|
|
3923
|
-
return /* @__PURE__ */
|
|
3945
|
+
return /* @__PURE__ */ W(
|
|
3924
3946
|
"span",
|
|
3925
3947
|
{
|
|
3926
|
-
className:
|
|
3948
|
+
className: Z("rpf-tag", s, {
|
|
3927
3949
|
"rpf-tag--secondary": r
|
|
3928
3950
|
}),
|
|
3929
3951
|
children: [
|