@raspberrypifoundation/design-system-react 2.10.4 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -25
- package/dist/design-system-react.js +1289 -1312
- package/dist/design-system-react.umd.cjs +14 -14
- package/dist/types/src/components/Accordion/index.d.ts +1 -1
- package/dist/types/src/components/Accordion/index.d.ts.map +1 -1
- package/dist/types/src/components/Alert/index.d.ts +1 -1
- package/dist/types/src/components/Alert/index.d.ts.map +1 -1
- package/dist/types/src/components/Button/index.d.ts +2 -1
- package/dist/types/src/components/Button/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/Fieldset/index.d.ts +1 -1
- package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputField/index.d.ts +1 -1
- package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputLabel/index.d.ts +1 -1
- package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/PasswordInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/PasswordInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/SearchInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/SearchInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextareaInput/index.d.ts +1 -1
- package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Menu/MenuButton/index.d.ts +1 -1
- package/dist/types/src/components/Menu/MenuButton/index.d.ts.map +1 -1
- package/dist/types/src/components/Menu/MenuItem/index.d.ts +1 -1
- package/dist/types/src/components/Menu/MenuItem/index.d.ts.map +1 -1
- package/dist/types/src/components/Menu/MenuTitle/index.d.ts +1 -1
- package/dist/types/src/components/Menu/MenuTitle/index.d.ts.map +1 -1
- package/dist/types/src/components/Menu/index.d.ts +1 -1
- package/dist/types/src/components/Menu/index.d.ts.map +1 -1
- package/dist/types/src/components/Modal/index.d.ts +1 -1
- package/dist/types/src/components/Modal/index.d.ts.map +1 -1
- package/dist/types/src/components/ProgressBar/index.d.ts +1 -1
- package/dist/types/src/components/ProgressBar/index.d.ts.map +1 -1
- package/dist/types/src/components/Squiggle/Squiggle.spec.d.ts +2 -0
- package/dist/types/src/components/Squiggle/Squiggle.spec.d.ts.map +1 -0
- package/dist/types/src/components/Squiggle/index.d.ts +4 -0
- package/dist/types/src/components/Squiggle/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts +1 -1
- package/dist/types/src/components/Table/BodyCell/index.d.ts.map +1 -1
- package/dist/types/src/components/Table/HeaderCell/index.d.ts +1 -1
- package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table/index.d.ts +1 -1
- package/dist/types/src/components/Table/Table/index.d.ts.map +1 -1
- package/dist/types/src/components/Tag/index.d.ts +1 -1
- package/dist/types/src/components/Tag/index.d.ts.map +1 -1
- package/dist/types/src/stories/Accordion.stories.d.ts +1 -1
- package/dist/types/src/stories/Accordion.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Button.stories.d.ts +3 -3
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +2 -1
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +1 -1
- package/dist/types/src/stories/Modal/Modal.stories.d.ts +1 -1
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +2 -2
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +1 -1
- package/dist/types/src/stories/ProgressBar.stories.d.ts +3 -3
- package/dist/types/src/stories/Squiggle.stories.d.ts +8 -0
- package/dist/types/src/stories/Squiggle.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +1 -1
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as B, jsx as
|
|
1
|
+
import { jsxs as B, jsx as g, Fragment as Ie } from "react/jsx-runtime";
|
|
2
2
|
import * as E from "react";
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
function
|
|
3
|
+
import tr, { useState as Sn, forwardRef as kt, useRef as Rt, useEffect as je, useLayoutEffect as _n, createElement as Tt } from "react";
|
|
4
|
+
import * as nr from "react-dom";
|
|
5
|
+
function On(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
8
|
var at = { exports: {} };
|
|
@@ -11,9 +11,9 @@ var at = { exports: {} };
|
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
return
|
|
14
|
+
var qt;
|
|
15
|
+
function rr() {
|
|
16
|
+
return qt || (qt = 1, (function(e) {
|
|
17
17
|
(function() {
|
|
18
18
|
var t = {}.hasOwnProperty;
|
|
19
19
|
function r() {
|
|
@@ -44,9 +44,9 @@ function sr() {
|
|
|
44
44
|
})();
|
|
45
45
|
})(at)), at.exports;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
const
|
|
49
|
-
var
|
|
47
|
+
var or = rr();
|
|
48
|
+
const X = /* @__PURE__ */ On(or);
|
|
49
|
+
var ke = { exports: {} }, Me = { exports: {} }, Y = {};
|
|
50
50
|
/** @license React v16.13.1
|
|
51
51
|
* react-is.production.min.js
|
|
52
52
|
*
|
|
@@ -56,17 +56,17 @@ var Me = { exports: {} }, De = { exports: {} }, Y = {};
|
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/
|
|
58
58
|
var Yt;
|
|
59
|
-
function
|
|
59
|
+
function ir() {
|
|
60
60
|
if (Yt) return Y;
|
|
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, T = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
63
|
+
function w(b) {
|
|
64
64
|
if (typeof b == "object" && b !== null) {
|
|
65
|
-
var
|
|
66
|
-
switch (
|
|
65
|
+
var k = b.$$typeof;
|
|
66
|
+
switch (k) {
|
|
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,48 +78,48 @@ 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 k;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
case r:
|
|
89
|
-
return
|
|
89
|
+
return k;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return
|
|
93
|
+
function _(b) {
|
|
94
|
+
return w(b) === c;
|
|
95
95
|
}
|
|
96
|
-
return Y.AsyncMode =
|
|
97
|
-
return
|
|
98
|
-
}, Y.isConcurrentMode =
|
|
99
|
-
return
|
|
96
|
+
return Y.AsyncMode = u, Y.ConcurrentMode = c, Y.ContextConsumer = a, Y.ContextProvider = s, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = v, Y.Memo = l, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.isAsyncMode = function(b) {
|
|
97
|
+
return _(b) || w(b) === u;
|
|
98
|
+
}, Y.isConcurrentMode = _, Y.isContextConsumer = function(b) {
|
|
99
|
+
return w(b) === a;
|
|
100
100
|
}, Y.isContextProvider = function(b) {
|
|
101
|
-
return
|
|
101
|
+
return w(b) === s;
|
|
102
102
|
}, Y.isElement = function(b) {
|
|
103
103
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
104
104
|
}, Y.isForwardRef = function(b) {
|
|
105
|
-
return
|
|
105
|
+
return w(b) === f;
|
|
106
106
|
}, Y.isFragment = function(b) {
|
|
107
|
-
return
|
|
107
|
+
return w(b) === n;
|
|
108
108
|
}, Y.isLazy = function(b) {
|
|
109
|
-
return
|
|
109
|
+
return w(b) === v;
|
|
110
110
|
}, Y.isMemo = function(b) {
|
|
111
|
-
return
|
|
111
|
+
return w(b) === l;
|
|
112
112
|
}, Y.isPortal = function(b) {
|
|
113
|
-
return
|
|
113
|
+
return w(b) === r;
|
|
114
114
|
}, Y.isProfiler = function(b) {
|
|
115
|
-
return
|
|
115
|
+
return w(b) === i;
|
|
116
116
|
}, Y.isStrictMode = function(b) {
|
|
117
|
-
return
|
|
117
|
+
return w(b) === o;
|
|
118
118
|
}, Y.isSuspense = function(b) {
|
|
119
|
-
return
|
|
119
|
+
return w(b) === d;
|
|
120
120
|
}, Y.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 ===
|
|
122
|
-
}, Y.typeOf =
|
|
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 === T || b.$$typeof === A || b.$$typeof === I || b.$$typeof === p);
|
|
122
|
+
}, Y.typeOf = w, Y;
|
|
123
123
|
}
|
|
124
124
|
var U = {};
|
|
125
125
|
/** @license React v16.13.1
|
|
@@ -131,36 +131,36 @@ var U = {};
|
|
|
131
131
|
* LICENSE file in the root directory of this source tree.
|
|
132
132
|
*/
|
|
133
133
|
var Ut;
|
|
134
|
-
function
|
|
134
|
+
function sr() {
|
|
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
|
|
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, T = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
137
|
+
function w(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 === T || S.$$typeof === A || S.$$typeof === I || S.$$typeof === p);
|
|
140
|
+
}
|
|
141
|
+
function _(S) {
|
|
142
|
+
if (typeof S == "object" && S !== null) {
|
|
143
|
+
var re = S.$$typeof;
|
|
144
144
|
switch (re) {
|
|
145
145
|
case t:
|
|
146
|
-
var
|
|
147
|
-
switch (
|
|
148
|
-
case
|
|
146
|
+
var le = S.type;
|
|
147
|
+
switch (le) {
|
|
148
|
+
case u:
|
|
149
149
|
case c:
|
|
150
150
|
case n:
|
|
151
151
|
case i:
|
|
152
152
|
case o:
|
|
153
153
|
case d:
|
|
154
|
-
return
|
|
154
|
+
return le;
|
|
155
155
|
default:
|
|
156
|
-
var
|
|
157
|
-
switch (
|
|
156
|
+
var se = le && le.$$typeof;
|
|
157
|
+
switch (se) {
|
|
158
158
|
case a:
|
|
159
159
|
case f:
|
|
160
160
|
case v:
|
|
161
|
-
case
|
|
161
|
+
case l:
|
|
162
162
|
case s:
|
|
163
|
-
return
|
|
163
|
+
return se;
|
|
164
164
|
default:
|
|
165
165
|
return re;
|
|
166
166
|
}
|
|
@@ -170,52 +170,52 @@ 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, k = c, z = a, H = s, G = t, K = f, Q = n, V = v, te = l, Z = r, L = i, j = o, q = 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) || _(S) === u;
|
|
176
176
|
}
|
|
177
|
-
function m(
|
|
178
|
-
return
|
|
177
|
+
function m(S) {
|
|
178
|
+
return _(S) === c;
|
|
179
179
|
}
|
|
180
|
-
function x(
|
|
181
|
-
return
|
|
180
|
+
function x(S) {
|
|
181
|
+
return _(S) === a;
|
|
182
182
|
}
|
|
183
|
-
function F(
|
|
184
|
-
return
|
|
183
|
+
function F(S) {
|
|
184
|
+
return _(S) === s;
|
|
185
185
|
}
|
|
186
|
-
function W(
|
|
187
|
-
return typeof
|
|
186
|
+
function W(S) {
|
|
187
|
+
return typeof S == "object" && S !== null && S.$$typeof === t;
|
|
188
188
|
}
|
|
189
|
-
function S
|
|
190
|
-
return
|
|
189
|
+
function C(S) {
|
|
190
|
+
return _(S) === f;
|
|
191
191
|
}
|
|
192
|
-
function P(
|
|
193
|
-
return
|
|
192
|
+
function P(S) {
|
|
193
|
+
return _(S) === n;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function y(S) {
|
|
196
|
+
return _(S) === v;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
return
|
|
198
|
+
function O(S) {
|
|
199
|
+
return _(S) === l;
|
|
200
200
|
}
|
|
201
|
-
function N(
|
|
202
|
-
return
|
|
201
|
+
function N(S) {
|
|
202
|
+
return _(S) === r;
|
|
203
203
|
}
|
|
204
|
-
function $(
|
|
205
|
-
return
|
|
204
|
+
function $(S) {
|
|
205
|
+
return _(S) === i;
|
|
206
206
|
}
|
|
207
|
-
function D(
|
|
208
|
-
return
|
|
207
|
+
function D(S) {
|
|
208
|
+
return _(S) === o;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
return
|
|
210
|
+
function J(S) {
|
|
211
|
+
return _(S) === d;
|
|
212
212
|
}
|
|
213
|
-
U.AsyncMode = b, U.ConcurrentMode =
|
|
213
|
+
U.AsyncMode = b, U.ConcurrentMode = k, U.ContextConsumer = z, U.ContextProvider = H, U.Element = G, U.ForwardRef = K, U.Fragment = Q, U.Lazy = V, U.Memo = te, U.Portal = Z, U.Profiler = L, U.StrictMode = j, U.Suspense = q, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = x, U.isContextProvider = F, U.isElement = W, U.isForwardRef = C, U.isFragment = P, U.isLazy = y, U.isMemo = O, U.isPortal = N, U.isProfiler = $, U.isStrictMode = D, U.isSuspense = J, U.isValidElementType = w, U.typeOf = _;
|
|
214
214
|
})()), U;
|
|
215
215
|
}
|
|
216
216
|
var Ht;
|
|
217
|
-
function
|
|
218
|
-
return Ht || (Ht = 1, process.env.NODE_ENV === "production" ?
|
|
217
|
+
function An() {
|
|
218
|
+
return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? Me.exports = ir() : Me.exports = sr()), Me.exports;
|
|
219
219
|
}
|
|
220
220
|
/*
|
|
221
221
|
object-assign
|
|
@@ -223,7 +223,7 @@ object-assign
|
|
|
223
223
|
@license MIT
|
|
224
224
|
*/
|
|
225
225
|
var ct, Kt;
|
|
226
|
-
function
|
|
226
|
+
function ar() {
|
|
227
227
|
if (Kt) return ct;
|
|
228
228
|
Kt = 1;
|
|
229
229
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
@@ -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;
|
|
@@ -276,17 +276,17 @@ function Mt() {
|
|
|
276
276
|
return lt = e, lt;
|
|
277
277
|
}
|
|
278
278
|
var ut, Xt;
|
|
279
|
-
function
|
|
279
|
+
function Pn() {
|
|
280
280
|
return Xt || (Xt = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
|
|
281
281
|
}
|
|
282
282
|
var ft, Gt;
|
|
283
|
-
function
|
|
283
|
+
function cr() {
|
|
284
284
|
if (Gt) return ft;
|
|
285
285
|
Gt = 1;
|
|
286
286
|
var e = function() {
|
|
287
287
|
};
|
|
288
288
|
if (process.env.NODE_ENV !== "production") {
|
|
289
|
-
var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */
|
|
289
|
+
var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ Pn();
|
|
290
290
|
e = function(i) {
|
|
291
291
|
var s = "Warning: " + i;
|
|
292
292
|
typeof console < "u" && console.error(s);
|
|
@@ -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
|
}
|
|
@@ -329,30 +329,30 @@ function fr() {
|
|
|
329
329
|
}, ft = o, ft;
|
|
330
330
|
}
|
|
331
331
|
var dt, Zt;
|
|
332
|
-
function
|
|
332
|
+
function lr() {
|
|
333
333
|
if (Zt) return dt;
|
|
334
334
|
Zt = 1;
|
|
335
|
-
var e =
|
|
335
|
+
var e = An(), t = ar(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ Pn(), o = /* @__PURE__ */ cr(), 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:
|
|
366
|
-
element:
|
|
364
|
+
any: I(),
|
|
365
|
+
arrayOf: w,
|
|
366
|
+
element: _(),
|
|
367
367
|
elementType: b(),
|
|
368
|
-
instanceOf:
|
|
369
|
-
node:
|
|
370
|
-
objectOf:
|
|
371
|
-
oneOf:
|
|
372
|
-
oneOfType:
|
|
373
|
-
shape:
|
|
368
|
+
instanceOf: k,
|
|
369
|
+
node: K(),
|
|
370
|
+
objectOf: H,
|
|
371
|
+
oneOf: z,
|
|
372
|
+
oneOfType: G,
|
|
373
|
+
shape: V,
|
|
374
374
|
exact: te
|
|
375
375
|
};
|
|
376
376
|
function v(m, x) {
|
|
@@ -380,131 +380,131 @@ function dr() {
|
|
|
380
380
|
this.message = m, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
381
381
|
}
|
|
382
382
|
p.prototype = Error.prototype;
|
|
383
|
-
function
|
|
383
|
+
function T(m) {
|
|
384
384
|
if (process.env.NODE_ENV !== "production")
|
|
385
385
|
var x = {}, F = 0;
|
|
386
|
-
function W(P,
|
|
387
|
-
if (N = N || h, D = D ||
|
|
388
|
-
if (
|
|
389
|
-
var
|
|
386
|
+
function W(P, y, O, N, $, D, J) {
|
|
387
|
+
if (N = N || h, D = D || O, 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 = N + ":" +
|
|
394
|
+
var re = N + ":" + O;
|
|
395
395
|
!x[re] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
396
396
|
F < 3 && (i(
|
|
397
397
|
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + N + "`. 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
398
|
), x[re] = !0, F++);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
return
|
|
401
|
+
return y[O] == null ? P ? y[O] === null ? new p("The " + $ + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new p("The " + $ + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : m(y, O, N, $, D);
|
|
402
402
|
}
|
|
403
|
-
var
|
|
404
|
-
return
|
|
403
|
+
var C = W.bind(null, !1);
|
|
404
|
+
return C.isRequired = W.bind(null, !0), C;
|
|
405
405
|
}
|
|
406
406
|
function A(m) {
|
|
407
|
-
function x(F, W,
|
|
407
|
+
function x(F, W, C, P, y, O) {
|
|
408
408
|
var N = F[W], $ = j(N);
|
|
409
409
|
if ($ !== m) {
|
|
410
|
-
var D =
|
|
410
|
+
var D = q(N);
|
|
411
411
|
return new p(
|
|
412
|
-
"Invalid " + P + " `" +
|
|
412
|
+
"Invalid " + P + " `" + y + "` of type " + ("`" + D + "` supplied to `" + C + "`, expected ") + ("`" + m + "`."),
|
|
413
413
|
{ expectedType: m }
|
|
414
414
|
);
|
|
415
415
|
}
|
|
416
416
|
return null;
|
|
417
417
|
}
|
|
418
|
-
return
|
|
418
|
+
return T(x);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
return
|
|
420
|
+
function I() {
|
|
421
|
+
return T(s);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
function x(F, W,
|
|
423
|
+
function w(m) {
|
|
424
|
+
function x(F, W, C, P, y) {
|
|
425
425
|
if (typeof m != "function")
|
|
426
|
-
return new p("Property `" +
|
|
427
|
-
var
|
|
428
|
-
if (!Array.isArray(
|
|
429
|
-
var N = j(
|
|
430
|
-
return new p("Invalid " + P + " `" +
|
|
426
|
+
return new p("Property `" + y + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
427
|
+
var O = F[W];
|
|
428
|
+
if (!Array.isArray(O)) {
|
|
429
|
+
var N = j(O);
|
|
430
|
+
return new p("Invalid " + P + " `" + y + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected an array."));
|
|
431
431
|
}
|
|
432
|
-
for (var $ = 0; $ <
|
|
433
|
-
var D = m(
|
|
432
|
+
for (var $ = 0; $ < O.length; $++) {
|
|
433
|
+
var D = m(O, $, C, P, y + "[" + $ + "]", r);
|
|
434
434
|
if (D instanceof Error)
|
|
435
435
|
return D;
|
|
436
436
|
}
|
|
437
437
|
return null;
|
|
438
438
|
}
|
|
439
|
-
return
|
|
440
|
-
}
|
|
441
|
-
function
|
|
442
|
-
function m(x, F, W,
|
|
443
|
-
var
|
|
444
|
-
if (!a(
|
|
445
|
-
var
|
|
446
|
-
return new p("Invalid " +
|
|
439
|
+
return T(x);
|
|
440
|
+
}
|
|
441
|
+
function _() {
|
|
442
|
+
function m(x, F, W, C, P) {
|
|
443
|
+
var y = x[F];
|
|
444
|
+
if (!a(y)) {
|
|
445
|
+
var O = j(y);
|
|
446
|
+
return new p("Invalid " + C + " `" + P + "` of type " + ("`" + O + "` supplied to `" + W + "`, expected a single ReactElement."));
|
|
447
447
|
}
|
|
448
448
|
return null;
|
|
449
449
|
}
|
|
450
|
-
return
|
|
450
|
+
return T(m);
|
|
451
451
|
}
|
|
452
452
|
function b() {
|
|
453
|
-
function m(x, F, W,
|
|
454
|
-
var
|
|
455
|
-
if (!e.isValidElementType(
|
|
456
|
-
var
|
|
457
|
-
return new p("Invalid " +
|
|
453
|
+
function m(x, F, W, C, P) {
|
|
454
|
+
var y = x[F];
|
|
455
|
+
if (!e.isValidElementType(y)) {
|
|
456
|
+
var O = j(y);
|
|
457
|
+
return new p("Invalid " + C + " `" + P + "` of type " + ("`" + O + "` supplied to `" + W + "`, expected a single ReactElement type."));
|
|
458
458
|
}
|
|
459
459
|
return null;
|
|
460
460
|
}
|
|
461
|
-
return
|
|
461
|
+
return T(m);
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
function x(F, W,
|
|
463
|
+
function k(m) {
|
|
464
|
+
function x(F, W, C, P, y) {
|
|
465
465
|
if (!(F[W] instanceof m)) {
|
|
466
|
-
var
|
|
467
|
-
return new p("Invalid " + P + " `" +
|
|
466
|
+
var O = m.name || h, N = R(F[W]);
|
|
467
|
+
return new p("Invalid " + P + " `" + y + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected ") + ("instance of `" + O + "`."));
|
|
468
468
|
}
|
|
469
469
|
return null;
|
|
470
470
|
}
|
|
471
|
-
return
|
|
471
|
+
return T(x);
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function z(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(F, W,
|
|
479
|
-
for (var
|
|
480
|
-
if (v(
|
|
478
|
+
function x(F, W, C, P, y) {
|
|
479
|
+
for (var O = F[W], N = 0; N < m.length; N++)
|
|
480
|
+
if (v(O, m[N]))
|
|
481
481
|
return null;
|
|
482
|
-
var $ = JSON.stringify(m, function(
|
|
483
|
-
var re =
|
|
484
|
-
return re === "symbol" ? String(
|
|
482
|
+
var $ = JSON.stringify(m, function(J, S) {
|
|
483
|
+
var re = q(S);
|
|
484
|
+
return re === "symbol" ? String(S) : S;
|
|
485
485
|
});
|
|
486
|
-
return new p("Invalid " + P + " `" +
|
|
486
|
+
return new p("Invalid " + P + " `" + y + "` of value `" + String(O) + "` " + ("supplied to `" + C + "`, expected one of " + $ + "."));
|
|
487
487
|
}
|
|
488
|
-
return
|
|
488
|
+
return T(x);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
function x(F, W,
|
|
490
|
+
function H(m) {
|
|
491
|
+
function x(F, W, C, P, y) {
|
|
492
492
|
if (typeof m != "function")
|
|
493
|
-
return new p("Property `" +
|
|
494
|
-
var
|
|
493
|
+
return new p("Property `" + y + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
494
|
+
var O = F[W], N = j(O);
|
|
495
495
|
if (N !== "object")
|
|
496
|
-
return new p("Invalid " + P + " `" +
|
|
497
|
-
for (var $ in
|
|
498
|
-
if (n(
|
|
499
|
-
var D = m(
|
|
496
|
+
return new p("Invalid " + P + " `" + y + "` of type " + ("`" + N + "` supplied to `" + C + "`, expected an object."));
|
|
497
|
+
for (var $ in O)
|
|
498
|
+
if (n(O, $)) {
|
|
499
|
+
var D = m(O, $, C, P, y + "." + $, r);
|
|
500
500
|
if (D instanceof Error)
|
|
501
501
|
return D;
|
|
502
502
|
}
|
|
503
503
|
return null;
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return T(x);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function G(m) {
|
|
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++) {
|
|
@@ -514,70 +514,70 @@ function dr() {
|
|
|
514
514
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + x + "."
|
|
515
515
|
), s;
|
|
516
516
|
}
|
|
517
|
-
function W(
|
|
517
|
+
function W(C, P, y, O, N) {
|
|
518
518
|
for (var $ = [], D = 0; D < m.length; D++) {
|
|
519
|
-
var
|
|
520
|
-
if (
|
|
519
|
+
var J = m[D], S = J(C, P, y, O, N, r);
|
|
520
|
+
if (S == null)
|
|
521
521
|
return null;
|
|
522
|
-
|
|
522
|
+
S.data && n(S.data, "expectedType") && $.push(S.data.expectedType);
|
|
523
523
|
}
|
|
524
524
|
var re = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
525
|
-
return new p("Invalid " +
|
|
525
|
+
return new p("Invalid " + O + " `" + N + "` supplied to " + ("`" + y + "`" + re + "."));
|
|
526
526
|
}
|
|
527
|
-
return
|
|
527
|
+
return T(W);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
function m(x, F, W,
|
|
531
|
-
return
|
|
529
|
+
function K() {
|
|
530
|
+
function m(x, F, W, C, P) {
|
|
531
|
+
return Z(x[F]) ? null : new p("Invalid " + C + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
|
|
532
532
|
}
|
|
533
|
-
return
|
|
533
|
+
return T(m);
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Q(m, x, F, W, C) {
|
|
536
536
|
return new p(
|
|
537
|
-
(m || "React class") + ": " + x + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
537
|
+
(m || "React class") + ": " + x + " type `" + F + "." + W + "` 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(F, W,
|
|
542
|
-
var
|
|
540
|
+
function V(m) {
|
|
541
|
+
function x(F, W, C, P, y) {
|
|
542
|
+
var O = F[W], N = j(O);
|
|
543
543
|
if (N !== "object")
|
|
544
|
-
return new p("Invalid " + P + " `" +
|
|
544
|
+
return new p("Invalid " + P + " `" + y + "` of type `" + N + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
545
545
|
for (var $ in m) {
|
|
546
546
|
var D = m[$];
|
|
547
547
|
if (typeof D != "function")
|
|
548
|
-
return
|
|
549
|
-
var
|
|
550
|
-
if (
|
|
551
|
-
return
|
|
548
|
+
return Q(C, P, y, $, q(D));
|
|
549
|
+
var J = D(O, $, C, P, y + "." + $, r);
|
|
550
|
+
if (J)
|
|
551
|
+
return J;
|
|
552
552
|
}
|
|
553
553
|
return null;
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return T(x);
|
|
556
556
|
}
|
|
557
557
|
function te(m) {
|
|
558
|
-
function x(F, W,
|
|
559
|
-
var
|
|
558
|
+
function x(F, W, C, P, y) {
|
|
559
|
+
var O = F[W], N = j(O);
|
|
560
560
|
if (N !== "object")
|
|
561
|
-
return new p("Invalid " + P + " `" +
|
|
561
|
+
return new p("Invalid " + P + " `" + y + "` of type `" + N + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
562
562
|
var $ = t({}, F[W], m);
|
|
563
563
|
for (var D in $) {
|
|
564
|
-
var
|
|
565
|
-
if (n(m, D) && typeof
|
|
566
|
-
return
|
|
567
|
-
if (!
|
|
564
|
+
var J = m[D];
|
|
565
|
+
if (n(m, D) && typeof J != "function")
|
|
566
|
+
return Q(C, P, y, D, q(J));
|
|
567
|
+
if (!J)
|
|
568
568
|
return new p(
|
|
569
|
-
"Invalid " + P + " `" +
|
|
569
|
+
"Invalid " + P + " `" + y + "` key `" + D + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
|
|
570
570
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
571
571
|
);
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
574
|
-
return
|
|
572
|
+
var S = J(O, D, C, P, y + "." + D, r);
|
|
573
|
+
if (S)
|
|
574
|
+
return S;
|
|
575
575
|
}
|
|
576
576
|
return null;
|
|
577
577
|
}
|
|
578
|
-
return
|
|
578
|
+
return T(x);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Z(m) {
|
|
581
581
|
switch (typeof m) {
|
|
582
582
|
case "number":
|
|
583
583
|
case "string":
|
|
@@ -587,7 +587,7 @@ 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(Z);
|
|
591
591
|
if (m === null || a(m))
|
|
592
592
|
return !0;
|
|
593
593
|
var x = d(m);
|
|
@@ -595,12 +595,12 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
595
595
|
var F = x.call(m), W;
|
|
596
596
|
if (x !== m.entries) {
|
|
597
597
|
for (; !(W = F.next()).done; )
|
|
598
|
-
if (!
|
|
598
|
+
if (!Z(W.value))
|
|
599
599
|
return !1;
|
|
600
600
|
} else
|
|
601
601
|
for (; !(W = F.next()).done; ) {
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
602
|
+
var C = W.value;
|
|
603
|
+
if (C && !Z(C[1]))
|
|
604
604
|
return !1;
|
|
605
605
|
}
|
|
606
606
|
} else
|
|
@@ -617,7 +617,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
617
617
|
var x = typeof m;
|
|
618
618
|
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(x, m) ? "symbol" : x;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function q(m) {
|
|
621
621
|
if (typeof m > "u" || m === null)
|
|
622
622
|
return "" + m;
|
|
623
623
|
var x = j(m);
|
|
@@ -630,7 +630,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
630
630
|
return x;
|
|
631
631
|
}
|
|
632
632
|
function M(m) {
|
|
633
|
-
var x =
|
|
633
|
+
var x = q(m);
|
|
634
634
|
switch (x) {
|
|
635
635
|
case "array":
|
|
636
636
|
case "object":
|
|
@@ -646,11 +646,11 @@ 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;
|
|
653
|
-
function
|
|
653
|
+
function ur() {
|
|
654
654
|
if (Jt) return pt;
|
|
655
655
|
Jt = 1;
|
|
656
656
|
var e = /* @__PURE__ */ Mt();
|
|
@@ -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"
|
|
@@ -698,33 +698,33 @@ function pr() {
|
|
|
698
698
|
}, pt;
|
|
699
699
|
}
|
|
700
700
|
var Qt;
|
|
701
|
-
function
|
|
702
|
-
if (Qt) return
|
|
701
|
+
function fr() {
|
|
702
|
+
if (Qt) return ke.exports;
|
|
703
703
|
if (Qt = 1, process.env.NODE_ENV !== "production") {
|
|
704
|
-
var e =
|
|
705
|
-
|
|
704
|
+
var e = An(), t = !0;
|
|
705
|
+
ke.exports = /* @__PURE__ */ lr()(e.isElement, t);
|
|
706
706
|
} else
|
|
707
|
-
|
|
708
|
-
return
|
|
707
|
+
ke.exports = /* @__PURE__ */ ur()();
|
|
708
|
+
return ke.exports;
|
|
709
709
|
}
|
|
710
|
-
var
|
|
711
|
-
const
|
|
712
|
-
const o =
|
|
710
|
+
var dr = /* @__PURE__ */ fr();
|
|
711
|
+
const De = /* @__PURE__ */ On(dr), pr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
|
|
712
|
+
const o = X("rpf-accordion", r), i = typeof e == "string" ? "p" : "div";
|
|
713
713
|
return /* @__PURE__ */ B("details", { className: o, id: `${n}`, children: [
|
|
714
714
|
/* @__PURE__ */ B("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
715
715
|
t,
|
|
716
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ g("span", { className: "rpf-accordion__icon" })
|
|
717
717
|
] }),
|
|
718
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ g(i, { className: "rpf-accordion__text", children: e })
|
|
719
719
|
] });
|
|
720
720
|
};
|
|
721
|
-
|
|
722
|
-
content:
|
|
723
|
-
title:
|
|
724
|
-
id:
|
|
725
|
-
className:
|
|
721
|
+
pr.propTypes = {
|
|
722
|
+
content: De.node.isRequired,
|
|
723
|
+
title: De.string.isRequired,
|
|
724
|
+
id: De.string,
|
|
725
|
+
className: De.string
|
|
726
726
|
};
|
|
727
|
-
const
|
|
727
|
+
const Ee = ({
|
|
728
728
|
text: e,
|
|
729
729
|
href: t,
|
|
730
730
|
title: r,
|
|
@@ -733,17 +733,17 @@ 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
|
onClick: h = () => {
|
|
741
741
|
},
|
|
742
|
-
"aria-label":
|
|
742
|
+
"aria-label": l = "",
|
|
743
743
|
linkComponent: v
|
|
744
744
|
// to pass in react-router-dom Link component
|
|
745
745
|
}) => {
|
|
746
|
-
const p = a &&
|
|
746
|
+
const p = a && u, T = X(
|
|
747
747
|
// Static classes
|
|
748
748
|
"rpf-button",
|
|
749
749
|
// Conditional classes
|
|
@@ -758,33 +758,33 @@ const Re = ({
|
|
|
758
758
|
n
|
|
759
759
|
);
|
|
760
760
|
let A = "rpf-button__icon";
|
|
761
|
-
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
761
|
+
tr.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
|
|
762
|
+
const I = (b, k) => !k || c !== b ? null : typeof k == "string" ? /* @__PURE__ */ g("span", { className: A, children: k }) : k, w = () => e && !p && /* @__PURE__ */ g("span", { className: "text", children: e }), _ = /* @__PURE__ */ B(Ie, { children: [
|
|
763
|
+
I("left", a),
|
|
764
|
+
w(),
|
|
765
|
+
I("right", a)
|
|
766
766
|
] });
|
|
767
|
-
return t ? /* @__PURE__ */
|
|
767
|
+
return t ? /* @__PURE__ */ g(
|
|
768
768
|
v || "a",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
770
|
+
className: T,
|
|
771
771
|
...v ? { to: t } : { href: t, role: "button" },
|
|
772
772
|
onClick: h,
|
|
773
|
-
"aria-label":
|
|
774
|
-
children:
|
|
773
|
+
"aria-label": l,
|
|
774
|
+
children: _
|
|
775
775
|
}
|
|
776
|
-
) : /* @__PURE__ */
|
|
776
|
+
) : /* @__PURE__ */ g(
|
|
777
777
|
"button",
|
|
778
778
|
{
|
|
779
|
-
className:
|
|
779
|
+
className: T,
|
|
780
780
|
title: r,
|
|
781
781
|
onClick: h,
|
|
782
782
|
disabled: d,
|
|
783
|
-
"aria-label":
|
|
784
|
-
children:
|
|
783
|
+
"aria-label": l,
|
|
784
|
+
children: _
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
|
-
},
|
|
787
|
+
}, Pi = ({
|
|
788
788
|
title: e,
|
|
789
789
|
text: t,
|
|
790
790
|
titleChildren: r,
|
|
@@ -794,10 +794,10 @@ const Re = ({
|
|
|
794
794
|
onClose: s
|
|
795
795
|
}) => /* @__PURE__ */ B("div", { className: `rpf-alert rpf-alert--${o}`, children: [
|
|
796
796
|
/* @__PURE__ */ B("div", { className: "rpf-alert__header", children: [
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
r ? /* @__PURE__ */
|
|
799
|
-
!!s && /* @__PURE__ */
|
|
800
|
-
|
|
797
|
+
/* @__PURE__ */ g("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
798
|
+
r ? /* @__PURE__ */ g("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ g("p", { className: "rpf-alert__title", children: e }) : null,
|
|
799
|
+
!!s && /* @__PURE__ */ g("div", { className: "rpf-alert__close", children: /* @__PURE__ */ g(
|
|
800
|
+
Ee,
|
|
801
801
|
{
|
|
802
802
|
type: "tertiary",
|
|
803
803
|
icon: "close",
|
|
@@ -808,9 +808,9 @@ const Re = ({
|
|
|
808
808
|
) })
|
|
809
809
|
] }),
|
|
810
810
|
(t || n || i) && /* @__PURE__ */ B("div", { className: "rpf-alert__body", children: [
|
|
811
|
-
t ? /* @__PURE__ */
|
|
812
|
-
i && i.length > 0 && /* @__PURE__ */
|
|
813
|
-
|
|
811
|
+
t ? /* @__PURE__ */ g("p", { children: t }) : n ? /* @__PURE__ */ g("div", { children: n }) : null,
|
|
812
|
+
i && i.length > 0 && /* @__PURE__ */ g("div", { className: "rpf-alert__actions", children: i.map((a, u) => /* @__PURE__ */ g(
|
|
813
|
+
Ee,
|
|
814
814
|
{
|
|
815
815
|
text: a.label,
|
|
816
816
|
size: "small",
|
|
@@ -818,10 +818,10 @@ const Re = ({
|
|
|
818
818
|
href: a.href,
|
|
819
819
|
onClick: a.onClick
|
|
820
820
|
},
|
|
821
|
-
|
|
821
|
+
u
|
|
822
822
|
)) })
|
|
823
823
|
] })
|
|
824
|
-
] }),
|
|
824
|
+
] }), Ni = ({
|
|
825
825
|
label: e,
|
|
826
826
|
id: t,
|
|
827
827
|
name: r,
|
|
@@ -829,22 +829,22 @@ const Re = ({
|
|
|
829
829
|
...o
|
|
830
830
|
}) => {
|
|
831
831
|
const { className: i, ...s } = o;
|
|
832
|
-
return /* @__PURE__ */ B(
|
|
832
|
+
return /* @__PURE__ */ B(Ie, { children: [
|
|
833
833
|
/* @__PURE__ */ B(
|
|
834
834
|
"label",
|
|
835
835
|
{
|
|
836
|
-
className:
|
|
836
|
+
className: X("rpf-input-checkbox", {
|
|
837
837
|
"rpf-input-checkbox--error": n,
|
|
838
838
|
className: i
|
|
839
839
|
}),
|
|
840
840
|
children: [
|
|
841
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ g("input", { id: t, name: r, type: "checkbox", ...s }),
|
|
842
842
|
e
|
|
843
843
|
]
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
846
|
n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
|
|
847
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
848
848
|
n
|
|
849
849
|
] })
|
|
850
850
|
] });
|
|
@@ -858,7 +858,7 @@ const Re = ({
|
|
|
858
858
|
}) => /* @__PURE__ */ B(
|
|
859
859
|
"fieldset",
|
|
860
860
|
{
|
|
861
|
-
className:
|
|
861
|
+
className: X("rpf-fieldset", {
|
|
862
862
|
"rpf-fieldset--disabled": e,
|
|
863
863
|
"rpf-fieldset--full-width": r,
|
|
864
864
|
"rpf-fieldset--error": t
|
|
@@ -867,11 +867,11 @@ const Re = ({
|
|
|
867
867
|
children: [
|
|
868
868
|
/* @__PURE__ */ B("legend", { className: "rpf-label", children: [
|
|
869
869
|
n,
|
|
870
|
-
o.length > 0 ? /* @__PURE__ */
|
|
870
|
+
o.length > 0 ? /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: o }) : null
|
|
871
871
|
] }),
|
|
872
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ g("div", { className: "rpf-fieldset__inputs", children: i }),
|
|
873
873
|
t.length > 0 ? /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
|
|
874
|
-
/* @__PURE__ */
|
|
874
|
+
/* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
875
875
|
t
|
|
876
876
|
] }) : null
|
|
877
877
|
]
|
|
@@ -888,38 +888,38 @@ const Re = ({
|
|
|
888
888
|
"label",
|
|
889
889
|
{
|
|
890
890
|
htmlFor: e,
|
|
891
|
-
className:
|
|
891
|
+
className: X("rpf-label", {
|
|
892
892
|
"rpf-label--disabled": n
|
|
893
893
|
}),
|
|
894
894
|
children: [
|
|
895
895
|
t,
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ g("small", { className: "rpf-label__hint", children: i })
|
|
897
897
|
]
|
|
898
898
|
}
|
|
899
899
|
),
|
|
900
900
|
r,
|
|
901
901
|
o && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
|
|
902
|
-
/* @__PURE__ */
|
|
902
|
+
/* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
903
903
|
o
|
|
904
904
|
] })
|
|
905
|
-
] }),
|
|
905
|
+
] }), ki = ({
|
|
906
906
|
label: e,
|
|
907
907
|
inputFieldId: t,
|
|
908
908
|
disabled: r = !1,
|
|
909
909
|
hint: n = ""
|
|
910
|
-
}) => /* @__PURE__ */
|
|
910
|
+
}) => /* @__PURE__ */ g("div", { className: "rpf-label", children: /* @__PURE__ */ B(
|
|
911
911
|
"label",
|
|
912
912
|
{
|
|
913
913
|
htmlFor: t,
|
|
914
|
-
className:
|
|
914
|
+
className: X("rpf-label", {
|
|
915
915
|
"rpf-label--disabled": r
|
|
916
916
|
}),
|
|
917
917
|
children: [
|
|
918
918
|
e,
|
|
919
|
-
n && /* @__PURE__ */
|
|
919
|
+
n && /* @__PURE__ */ g("div", { className: "rpf-label__hint", children: n })
|
|
920
920
|
]
|
|
921
921
|
}
|
|
922
|
-
) }),
|
|
922
|
+
) }), Mi = ({
|
|
923
923
|
disabled: e = !1,
|
|
924
924
|
readOnly: t = !1,
|
|
925
925
|
fullWidth: r = !1,
|
|
@@ -928,41 +928,41 @@ const Re = ({
|
|
|
928
928
|
id: i,
|
|
929
929
|
hint: s = "",
|
|
930
930
|
showPasswordLabel: a = "Show",
|
|
931
|
-
hidePasswordLabel:
|
|
931
|
+
hidePasswordLabel: u = "Hide",
|
|
932
932
|
forgotPasswordLabel: c = "Forgot password?",
|
|
933
933
|
forgotPasswordHref: f,
|
|
934
934
|
...d
|
|
935
935
|
}) => {
|
|
936
|
-
const [h,
|
|
936
|
+
const [h, l] = Sn(!1);
|
|
937
937
|
return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
|
|
938
938
|
/* @__PURE__ */ B(
|
|
939
939
|
"label",
|
|
940
940
|
{
|
|
941
941
|
htmlFor: i,
|
|
942
|
-
className:
|
|
942
|
+
className: X("rpf-label", {
|
|
943
943
|
"rpf-label--disabled": e,
|
|
944
944
|
"rpf-label--readonly": t
|
|
945
945
|
}),
|
|
946
946
|
children: [
|
|
947
947
|
o,
|
|
948
|
-
s && /* @__PURE__ */
|
|
948
|
+
s && /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: s })
|
|
949
949
|
]
|
|
950
950
|
}
|
|
951
951
|
),
|
|
952
952
|
/* @__PURE__ */ B(
|
|
953
953
|
"div",
|
|
954
954
|
{
|
|
955
|
-
className:
|
|
955
|
+
className: X("rpf-input-password__container", {
|
|
956
956
|
"rpf-input-password__container--full-width": r,
|
|
957
957
|
"rpf-input-password__container--error": n,
|
|
958
958
|
"rpf-input-password__container--disabled": e,
|
|
959
959
|
"rpf-input-password__container--readonly": t
|
|
960
960
|
}),
|
|
961
961
|
children: [
|
|
962
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ g(
|
|
963
963
|
"input",
|
|
964
964
|
{
|
|
965
|
-
className:
|
|
965
|
+
className: X("rpf-input rpf-input-password", {
|
|
966
966
|
"rpf-input--disabled": e,
|
|
967
967
|
"rpf-input--readonly": t,
|
|
968
968
|
"rpf-input--error": n,
|
|
@@ -975,11 +975,11 @@ const Re = ({
|
|
|
975
975
|
...d
|
|
976
976
|
}
|
|
977
977
|
),
|
|
978
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ g(
|
|
979
979
|
"button",
|
|
980
980
|
{
|
|
981
981
|
type: "button",
|
|
982
|
-
className:
|
|
982
|
+
className: X(
|
|
983
983
|
"rpf-button rpf-button--tertiary rpf-input-password__button",
|
|
984
984
|
{
|
|
985
985
|
"rpf-button--disabled": e,
|
|
@@ -987,20 +987,20 @@ const Re = ({
|
|
|
987
987
|
}
|
|
988
988
|
),
|
|
989
989
|
disabled: e,
|
|
990
|
-
onClick: () =>
|
|
991
|
-
children: h ?
|
|
990
|
+
onClick: () => l((v) => !v),
|
|
991
|
+
children: h ? u : a
|
|
992
992
|
}
|
|
993
993
|
)
|
|
994
994
|
]
|
|
995
995
|
}
|
|
996
996
|
),
|
|
997
997
|
n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
|
|
998
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
999
999
|
n
|
|
1000
1000
|
] }),
|
|
1001
|
-
f && /* @__PURE__ */
|
|
1001
|
+
f && /* @__PURE__ */ g("a", { href: f, className: "rpf-link rpf-link--block", children: c })
|
|
1002
1002
|
] });
|
|
1003
|
-
},
|
|
1003
|
+
}, Di = ({
|
|
1004
1004
|
label: e,
|
|
1005
1005
|
id: t,
|
|
1006
1006
|
name: r,
|
|
@@ -1009,16 +1009,16 @@ const Re = ({
|
|
|
1009
1009
|
}) => /* @__PURE__ */ B(
|
|
1010
1010
|
"label",
|
|
1011
1011
|
{
|
|
1012
|
-
className:
|
|
1012
|
+
className: X("rpf-input-radio", {
|
|
1013
1013
|
"rpf-input-radio--disabled": o.disabled,
|
|
1014
1014
|
"rpf-input--full-width": n
|
|
1015
1015
|
}),
|
|
1016
1016
|
children: [
|
|
1017
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ g("input", { type: "radio", id: t, name: r, ...o }),
|
|
1018
1018
|
e
|
|
1019
1019
|
]
|
|
1020
1020
|
}
|
|
1021
|
-
),
|
|
1021
|
+
), Li = ({
|
|
1022
1022
|
label: e,
|
|
1023
1023
|
inputFieldId: t,
|
|
1024
1024
|
disabled: r = !1,
|
|
@@ -1028,27 +1028,27 @@ const Re = ({
|
|
|
1028
1028
|
defaultValue: s = "",
|
|
1029
1029
|
onClick: a = () => {
|
|
1030
1030
|
},
|
|
1031
|
-
onChange:
|
|
1031
|
+
onChange: u = () => {
|
|
1032
1032
|
}
|
|
1033
|
-
}) => /* @__PURE__ */
|
|
1033
|
+
}) => /* @__PURE__ */ g("search", { children: /* @__PURE__ */ B("form", { className: "rpf-input-field", onSubmit: a, children: [
|
|
1034
1034
|
/* @__PURE__ */ B(
|
|
1035
1035
|
"label",
|
|
1036
1036
|
{
|
|
1037
1037
|
htmlFor: t,
|
|
1038
|
-
className:
|
|
1038
|
+
className: X("rpf-label", {
|
|
1039
1039
|
"rpf-label--disabled": r
|
|
1040
1040
|
}),
|
|
1041
1041
|
children: [
|
|
1042
1042
|
e,
|
|
1043
|
-
o && /* @__PURE__ */
|
|
1043
|
+
o && /* @__PURE__ */ g("small", { className: "rpf-label__hint", children: o })
|
|
1044
1044
|
]
|
|
1045
1045
|
}
|
|
1046
1046
|
),
|
|
1047
1047
|
/* @__PURE__ */ B("div", { className: "rpf-input-search-container", children: [
|
|
1048
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ g(
|
|
1049
1049
|
"input",
|
|
1050
1050
|
{
|
|
1051
|
-
className:
|
|
1051
|
+
className: X("rpf-input rpf-input-search", {
|
|
1052
1052
|
"rpf-input--disabled": r,
|
|
1053
1053
|
"rpf-input--error": n
|
|
1054
1054
|
}),
|
|
@@ -1059,28 +1059,28 @@ const Re = ({
|
|
|
1059
1059
|
"aria-label": "Search",
|
|
1060
1060
|
defaultValue: s,
|
|
1061
1061
|
placeholder: i,
|
|
1062
|
-
onChange:
|
|
1062
|
+
onChange: u
|
|
1063
1063
|
}
|
|
1064
1064
|
),
|
|
1065
|
-
/* @__PURE__ */
|
|
1065
|
+
/* @__PURE__ */ g(
|
|
1066
1066
|
"button",
|
|
1067
1067
|
{
|
|
1068
1068
|
type: "submit",
|
|
1069
|
-
className:
|
|
1069
|
+
className: X("rpf-button rpf-button-search", {
|
|
1070
1070
|
"rpf-button--disabled": r,
|
|
1071
1071
|
"rpf-button--error": n
|
|
1072
1072
|
}),
|
|
1073
1073
|
disabled: r,
|
|
1074
1074
|
onClick: a,
|
|
1075
|
-
children: /* @__PURE__ */
|
|
1075
|
+
children: /* @__PURE__ */ g("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
|
|
1076
1076
|
}
|
|
1077
1077
|
)
|
|
1078
1078
|
] }),
|
|
1079
1079
|
n && /* @__PURE__ */ B("div", { className: "rpf-error-message", children: [
|
|
1080
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
1081
1081
|
n
|
|
1082
1082
|
] })
|
|
1083
|
-
] }) }),
|
|
1083
|
+
] }) }), Fi = ({
|
|
1084
1084
|
id: e,
|
|
1085
1085
|
label: t,
|
|
1086
1086
|
name: r,
|
|
@@ -1089,12 +1089,12 @@ const Re = ({
|
|
|
1089
1089
|
error: i = "",
|
|
1090
1090
|
fullWidth: s = !1,
|
|
1091
1091
|
hint: a = "",
|
|
1092
|
-
onChange:
|
|
1092
|
+
onChange: u = () => {
|
|
1093
1093
|
},
|
|
1094
1094
|
placeholder: c = "",
|
|
1095
1095
|
value: f = "",
|
|
1096
1096
|
...d
|
|
1097
|
-
}) => /* @__PURE__ */
|
|
1097
|
+
}) => /* @__PURE__ */ g(
|
|
1098
1098
|
Dt,
|
|
1099
1099
|
{
|
|
1100
1100
|
id: e,
|
|
@@ -1105,24 +1105,24 @@ const Re = ({
|
|
|
1105
1105
|
children: /* @__PURE__ */ B(
|
|
1106
1106
|
"select",
|
|
1107
1107
|
{
|
|
1108
|
-
className:
|
|
1108
|
+
className: X("rpf-input rpf-input-select", {
|
|
1109
1109
|
"rpf-input--error": i,
|
|
1110
1110
|
"rpf-input--full-width": s
|
|
1111
1111
|
}),
|
|
1112
1112
|
disabled: o,
|
|
1113
1113
|
id: e,
|
|
1114
1114
|
name: r,
|
|
1115
|
-
onChange:
|
|
1115
|
+
onChange: u,
|
|
1116
1116
|
value: f,
|
|
1117
1117
|
...d,
|
|
1118
1118
|
children: [
|
|
1119
|
-
!f && !!c && /* @__PURE__ */
|
|
1120
|
-
n.map((h) => /* @__PURE__ */
|
|
1119
|
+
!f && !!c && /* @__PURE__ */ g("option", { value: "", disabled: !0, children: c }),
|
|
1120
|
+
n.map((h) => /* @__PURE__ */ g("option", { value: h.key, children: h.value }, h.key))
|
|
1121
1121
|
]
|
|
1122
1122
|
}
|
|
1123
1123
|
)
|
|
1124
1124
|
}
|
|
1125
|
-
),
|
|
1125
|
+
), mr = kt(
|
|
1126
1126
|
({
|
|
1127
1127
|
label: e,
|
|
1128
1128
|
id: t,
|
|
@@ -1132,19 +1132,19 @@ const Re = ({
|
|
|
1132
1132
|
reverse: i = !1,
|
|
1133
1133
|
hint: s = "",
|
|
1134
1134
|
alignStart: a = !1,
|
|
1135
|
-
hideLabel:
|
|
1135
|
+
hideLabel: u = !1,
|
|
1136
1136
|
icon: c = !1,
|
|
1137
1137
|
className: f,
|
|
1138
1138
|
disabled: d = !1,
|
|
1139
1139
|
"aria-describedby": h,
|
|
1140
|
-
...
|
|
1140
|
+
...l
|
|
1141
1141
|
}, v) => {
|
|
1142
|
-
const p = n ? `${t}-error` : void 0,
|
|
1142
|
+
const p = n ? `${t}-error` : void 0, T = [h, p].filter(Boolean).join(" ") || void 0;
|
|
1143
1143
|
return /* @__PURE__ */ B("div", { className: "rpf-input-field", children: [
|
|
1144
1144
|
/* @__PURE__ */ B(
|
|
1145
1145
|
"label",
|
|
1146
1146
|
{
|
|
1147
|
-
className:
|
|
1147
|
+
className: X(
|
|
1148
1148
|
"rpf-switch",
|
|
1149
1149
|
{
|
|
1150
1150
|
"rpf-switch--full-width": o,
|
|
@@ -1158,7 +1158,7 @@ const Re = ({
|
|
|
1158
1158
|
),
|
|
1159
1159
|
children: [
|
|
1160
1160
|
/* @__PURE__ */ B("span", { className: "rpf-switch__track", children: [
|
|
1161
|
-
/* @__PURE__ */
|
|
1161
|
+
/* @__PURE__ */ g(
|
|
1162
1162
|
"input",
|
|
1163
1163
|
{
|
|
1164
1164
|
ref: v,
|
|
@@ -1169,22 +1169,22 @@ const Re = ({
|
|
|
1169
1169
|
className: "rpf-switch__checkbox",
|
|
1170
1170
|
disabled: d,
|
|
1171
1171
|
"aria-invalid": n ? !0 : void 0,
|
|
1172
|
-
"aria-describedby":
|
|
1173
|
-
...
|
|
1172
|
+
"aria-describedby": T,
|
|
1173
|
+
...l
|
|
1174
1174
|
}
|
|
1175
1175
|
),
|
|
1176
|
-
/* @__PURE__ */
|
|
1176
|
+
/* @__PURE__ */ g("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ g("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
|
|
1177
1177
|
] }),
|
|
1178
1178
|
/* @__PURE__ */ B(
|
|
1179
1179
|
"span",
|
|
1180
1180
|
{
|
|
1181
|
-
className:
|
|
1181
|
+
className: X("rpf-label", "rpf-switch__label", {
|
|
1182
1182
|
"rpf-label--disabled": d,
|
|
1183
|
-
"rpf-visually-hidden":
|
|
1183
|
+
"rpf-visually-hidden": u
|
|
1184
1184
|
}),
|
|
1185
1185
|
children: [
|
|
1186
|
-
/* @__PURE__ */
|
|
1187
|
-
s ? /* @__PURE__ */
|
|
1186
|
+
/* @__PURE__ */ g("span", { children: e }),
|
|
1187
|
+
s ? /* @__PURE__ */ g("span", { className: "rpf-label__hint", children: s }) : null
|
|
1188
1188
|
]
|
|
1189
1189
|
}
|
|
1190
1190
|
)
|
|
@@ -1192,14 +1192,14 @@ const Re = ({
|
|
|
1192
1192
|
}
|
|
1193
1193
|
),
|
|
1194
1194
|
n ? /* @__PURE__ */ B("div", { id: p, className: "rpf-error-message", children: [
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ g("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
1196
1196
|
n
|
|
1197
1197
|
] }) : null
|
|
1198
1198
|
] });
|
|
1199
1199
|
}
|
|
1200
1200
|
);
|
|
1201
|
-
|
|
1202
|
-
const
|
|
1201
|
+
mr.displayName = "Switch";
|
|
1202
|
+
const $i = ({
|
|
1203
1203
|
id: e,
|
|
1204
1204
|
label: t,
|
|
1205
1205
|
name: r,
|
|
@@ -1208,21 +1208,21 @@ const ji = ({
|
|
|
1208
1208
|
readOnly: i = !1,
|
|
1209
1209
|
error: s = "",
|
|
1210
1210
|
fullWidth: a = !1,
|
|
1211
|
-
hint:
|
|
1211
|
+
hint: u = "",
|
|
1212
1212
|
onChange: c = () => {
|
|
1213
1213
|
}
|
|
1214
|
-
}) => /* @__PURE__ */
|
|
1214
|
+
}) => /* @__PURE__ */ g(
|
|
1215
1215
|
Dt,
|
|
1216
1216
|
{
|
|
1217
1217
|
id: e,
|
|
1218
1218
|
disabled: o,
|
|
1219
1219
|
error: s,
|
|
1220
|
-
hint:
|
|
1220
|
+
hint: u,
|
|
1221
1221
|
label: t,
|
|
1222
|
-
children: /* @__PURE__ */
|
|
1222
|
+
children: /* @__PURE__ */ g(
|
|
1223
1223
|
"textarea",
|
|
1224
1224
|
{
|
|
1225
|
-
className:
|
|
1225
|
+
className: X("rpf-input rpf-input-textarea", {
|
|
1226
1226
|
"rpf-input--error": s,
|
|
1227
1227
|
"rpf-input--full-width": a,
|
|
1228
1228
|
"rpf-input--disabled": o
|
|
@@ -1236,7 +1236,7 @@ const ji = ({
|
|
|
1236
1236
|
}
|
|
1237
1237
|
)
|
|
1238
1238
|
}
|
|
1239
|
-
),
|
|
1239
|
+
), ji = ({
|
|
1240
1240
|
id: e,
|
|
1241
1241
|
name: t,
|
|
1242
1242
|
label: r,
|
|
@@ -1245,7 +1245,7 @@ const ji = ({
|
|
|
1245
1245
|
hint: i = "",
|
|
1246
1246
|
type: s = "text",
|
|
1247
1247
|
...a
|
|
1248
|
-
}) => /* @__PURE__ */
|
|
1248
|
+
}) => /* @__PURE__ */ g(
|
|
1249
1249
|
Dt,
|
|
1250
1250
|
{
|
|
1251
1251
|
id: e,
|
|
@@ -1253,10 +1253,10 @@ const ji = ({
|
|
|
1253
1253
|
error: n,
|
|
1254
1254
|
hint: i,
|
|
1255
1255
|
label: r,
|
|
1256
|
-
children: /* @__PURE__ */
|
|
1256
|
+
children: /* @__PURE__ */ g(
|
|
1257
1257
|
"input",
|
|
1258
1258
|
{
|
|
1259
|
-
className:
|
|
1259
|
+
className: X("rpf-input rpf-input-text", {
|
|
1260
1260
|
"rpf-input--error": n,
|
|
1261
1261
|
"rpf-input--full-width": o
|
|
1262
1262
|
}),
|
|
@@ -1268,12 +1268,12 @@ const ji = ({
|
|
|
1268
1268
|
)
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
|
-
function
|
|
1271
|
+
function hr(e, t) {
|
|
1272
1272
|
const r = Rt(null), n = Rt(null);
|
|
1273
|
-
return
|
|
1273
|
+
return je(() => {
|
|
1274
1274
|
const o = r.current;
|
|
1275
1275
|
o && (e && !o.open ? o.showModal() : !e && o.open && o.close());
|
|
1276
|
-
}, [e]),
|
|
1276
|
+
}, [e]), je(() => {
|
|
1277
1277
|
const o = r.current;
|
|
1278
1278
|
if (!o) return;
|
|
1279
1279
|
const i = () => t(!1), s = (a) => {
|
|
@@ -1282,7 +1282,7 @@ function yr(e, t) {
|
|
|
1282
1282
|
return o.addEventListener("close", i), o.addEventListener("cancel", s), () => {
|
|
1283
1283
|
o.removeEventListener("close", i), o.removeEventListener("cancel", s);
|
|
1284
1284
|
};
|
|
1285
|
-
}, [t]),
|
|
1285
|
+
}, [t]), je(() => {
|
|
1286
1286
|
const o = r.current, i = n.current;
|
|
1287
1287
|
if (!o || !i) return;
|
|
1288
1288
|
const s = (a) => {
|
|
@@ -1291,7 +1291,7 @@ function yr(e, t) {
|
|
|
1291
1291
|
return o.addEventListener("mousedown", s), () => o.removeEventListener("mousedown", s);
|
|
1292
1292
|
}, [e, t]), { dialogRef: r, contentRef: n };
|
|
1293
1293
|
}
|
|
1294
|
-
const
|
|
1294
|
+
const Wi = ({
|
|
1295
1295
|
isOpen: e,
|
|
1296
1296
|
setIsOpen: t,
|
|
1297
1297
|
heading: r,
|
|
@@ -1300,15 +1300,15 @@ const Bi = ({
|
|
|
1300
1300
|
primaryButtonText: i,
|
|
1301
1301
|
onClickPrimaryButton: s,
|
|
1302
1302
|
secondaryButtonText: a,
|
|
1303
|
-
secondaryButtonLink:
|
|
1303
|
+
secondaryButtonLink: u,
|
|
1304
1304
|
onClickSecondaryButton: c,
|
|
1305
1305
|
tertiaryButtonText: f,
|
|
1306
1306
|
tertiaryButtonLink: d,
|
|
1307
1307
|
onClickTertiaryButton: h,
|
|
1308
|
-
showCloseButton:
|
|
1308
|
+
showCloseButton: l = !0
|
|
1309
1309
|
}) => {
|
|
1310
|
-
const { dialogRef: v, contentRef: p } =
|
|
1311
|
-
return /* @__PURE__ */
|
|
1310
|
+
const { dialogRef: v, contentRef: p } = hr(e, t);
|
|
1311
|
+
return /* @__PURE__ */ g(
|
|
1312
1312
|
"dialog",
|
|
1313
1313
|
{
|
|
1314
1314
|
ref: v,
|
|
@@ -1317,9 +1317,9 @@ const Bi = ({
|
|
|
1317
1317
|
"aria-describedby": "modal-description",
|
|
1318
1318
|
children: /* @__PURE__ */ B("div", { ref: p, className: "rpf-modal__wrapper", children: [
|
|
1319
1319
|
/* @__PURE__ */ B("div", { className: "rpf-modal__header", children: [
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
|
|
1322
|
-
|
|
1320
|
+
/* @__PURE__ */ g("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
|
|
1321
|
+
l && /* @__PURE__ */ g(
|
|
1322
|
+
Ee,
|
|
1323
1323
|
{
|
|
1324
1324
|
icon: "close",
|
|
1325
1325
|
iconOnly: !0,
|
|
@@ -1329,10 +1329,10 @@ const Bi = ({
|
|
|
1329
1329
|
}
|
|
1330
1330
|
)
|
|
1331
1331
|
] }),
|
|
1332
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ g("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
|
|
1333
1333
|
/* @__PURE__ */ B("div", { className: "rpf-modal__buttons", children: [
|
|
1334
|
-
/* @__PURE__ */
|
|
1335
|
-
|
|
1334
|
+
/* @__PURE__ */ g(
|
|
1335
|
+
Ee,
|
|
1336
1336
|
{
|
|
1337
1337
|
text: i,
|
|
1338
1338
|
href: o,
|
|
@@ -1340,17 +1340,17 @@ const Bi = ({
|
|
|
1340
1340
|
type: "primary"
|
|
1341
1341
|
}
|
|
1342
1342
|
),
|
|
1343
|
-
a && /* @__PURE__ */
|
|
1344
|
-
|
|
1343
|
+
a && /* @__PURE__ */ g(
|
|
1344
|
+
Ee,
|
|
1345
1345
|
{
|
|
1346
1346
|
text: a,
|
|
1347
|
-
href:
|
|
1347
|
+
href: u,
|
|
1348
1348
|
onClick: c,
|
|
1349
1349
|
type: "secondary"
|
|
1350
1350
|
}
|
|
1351
1351
|
),
|
|
1352
|
-
f && /* @__PURE__ */
|
|
1353
|
-
|
|
1352
|
+
f && /* @__PURE__ */ g(
|
|
1353
|
+
Ee,
|
|
1354
1354
|
{
|
|
1355
1355
|
text: f,
|
|
1356
1356
|
href: d,
|
|
@@ -1362,47 +1362,47 @@ const Bi = ({
|
|
|
1362
1362
|
] })
|
|
1363
1363
|
}
|
|
1364
1364
|
);
|
|
1365
|
-
},
|
|
1366
|
-
const r =
|
|
1367
|
-
return /* @__PURE__ */
|
|
1365
|
+
}, vr = ({ className: e, children: t }) => {
|
|
1366
|
+
const r = X("rpf-menu", e);
|
|
1367
|
+
return /* @__PURE__ */ g("ul", { className: r, children: t });
|
|
1368
1368
|
};
|
|
1369
|
-
function
|
|
1369
|
+
function Je() {
|
|
1370
1370
|
return typeof window < "u";
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return
|
|
1372
|
+
function be(e) {
|
|
1373
|
+
return Nn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function oe(e) {
|
|
1376
1376
|
var t;
|
|
1377
1377
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function de(e) {
|
|
1380
1380
|
var t;
|
|
1381
|
-
return (t = (
|
|
1381
|
+
return (t = (Nn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return
|
|
1383
|
+
function Nn(e) {
|
|
1384
|
+
return Je() ? e instanceof Node || e instanceof oe(e).Node : !1;
|
|
1385
1385
|
}
|
|
1386
1386
|
function ee(e) {
|
|
1387
|
-
return
|
|
1387
|
+
return Je() ? e instanceof Element || e instanceof oe(e).Element : !1;
|
|
1388
1388
|
}
|
|
1389
1389
|
function ne(e) {
|
|
1390
|
-
return
|
|
1390
|
+
return Je() ? e instanceof HTMLElement || e instanceof oe(e).HTMLElement : !1;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
return !
|
|
1392
|
+
function Ct(e) {
|
|
1393
|
+
return !Je() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof oe(e).ShadowRoot;
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function Qe(e) {
|
|
1396
1396
|
const {
|
|
1397
1397
|
overflow: t,
|
|
1398
1398
|
overflowX: r,
|
|
1399
1399
|
overflowY: n,
|
|
1400
1400
|
display: o
|
|
1401
|
-
} =
|
|
1401
|
+
} = ce(e);
|
|
1402
1402
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && o !== "inline" && o !== "contents";
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1405
|
-
return /^(table|td|th)$/.test(
|
|
1404
|
+
function br(e) {
|
|
1405
|
+
return /^(table|td|th)$/.test(be(e));
|
|
1406
1406
|
}
|
|
1407
1407
|
function et(e) {
|
|
1408
1408
|
try {
|
|
@@ -1416,31 +1416,31 @@ function et(e) {
|
|
|
1416
1416
|
return !1;
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
const
|
|
1419
|
+
const yr = /transform|translate|scale|rotate|perspective|filter/, gr = /paint|layout|strict|content/, ye = (e) => !!e && e !== "none";
|
|
1420
1420
|
let mt;
|
|
1421
1421
|
function Lt(e) {
|
|
1422
|
-
const t = ee(e) ?
|
|
1423
|
-
return
|
|
1422
|
+
const t = ee(e) ? ce(e) : e;
|
|
1423
|
+
return ye(t.transform) || ye(t.translate) || ye(t.scale) || ye(t.rotate) || ye(t.perspective) || !tt() && (ye(t.backdropFilter) || ye(t.filter)) || yr.test(t.willChange || "") || gr.test(t.contain || "");
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1426
|
-
let t =
|
|
1427
|
-
for (; ne(t) && !
|
|
1425
|
+
function wr(e) {
|
|
1426
|
+
let t = ve(e);
|
|
1427
|
+
for (; ne(t) && !Te(t); ) {
|
|
1428
1428
|
if (Lt(t))
|
|
1429
1429
|
return t;
|
|
1430
1430
|
if (et(t))
|
|
1431
1431
|
return null;
|
|
1432
|
-
t =
|
|
1432
|
+
t = ve(t);
|
|
1433
1433
|
}
|
|
1434
1434
|
return null;
|
|
1435
1435
|
}
|
|
1436
1436
|
function tt() {
|
|
1437
1437
|
return mt == null && (mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), mt;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return /^(html|body|#document)$/.test(
|
|
1439
|
+
function Te(e) {
|
|
1440
|
+
return /^(html|body|#document)$/.test(be(e));
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1442
|
+
function ce(e) {
|
|
1443
|
+
return oe(e).getComputedStyle(e);
|
|
1444
1444
|
}
|
|
1445
1445
|
function nt(e) {
|
|
1446
1446
|
return ee(e) ? {
|
|
@@ -1451,36 +1451,36 @@ function nt(e) {
|
|
|
1451
1451
|
scrollTop: e.scrollY
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
if (
|
|
1454
|
+
function ve(e) {
|
|
1455
|
+
if (be(e) === "html")
|
|
1456
1456
|
return e;
|
|
1457
1457
|
const t = (
|
|
1458
1458
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1459
1459
|
e.assignedSlot || // DOM Element detected.
|
|
1460
1460
|
e.parentNode || // ShadowRoot detected.
|
|
1461
|
-
|
|
1462
|
-
|
|
1461
|
+
Ct(e) && e.host || // Fallback.
|
|
1462
|
+
de(e)
|
|
1463
1463
|
);
|
|
1464
|
-
return
|
|
1464
|
+
return Ct(t) ? t.host : t;
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1467
|
-
const t =
|
|
1468
|
-
return
|
|
1466
|
+
function In(e) {
|
|
1467
|
+
const t = ve(e);
|
|
1468
|
+
return Te(t) ? (e.ownerDocument || e).body : ne(t) && Qe(t) ? t : In(t);
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function he(e, t, r) {
|
|
1471
1471
|
var n;
|
|
1472
1472
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
1473
|
-
const o =
|
|
1473
|
+
const o = In(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = oe(o);
|
|
1474
1474
|
if (i) {
|
|
1475
|
-
const a =
|
|
1476
|
-
return t.concat(s, s.visualViewport || [],
|
|
1475
|
+
const a = St(s);
|
|
1476
|
+
return t.concat(s, s.visualViewport || [], Qe(o) ? o : [], a && r ? he(a) : []);
|
|
1477
1477
|
} else
|
|
1478
|
-
return t.concat(o,
|
|
1478
|
+
return t.concat(o, he(o, [], r));
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function St(e) {
|
|
1481
1481
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function ge(e) {
|
|
1484
1484
|
let t = e.activeElement;
|
|
1485
1485
|
for (; ((r = t) == null || (r = r.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
|
|
1486
1486
|
var r;
|
|
@@ -1488,13 +1488,13 @@ function we(e) {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
return t;
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function ie(e, t) {
|
|
1492
1492
|
if (!e || !t)
|
|
1493
1493
|
return !1;
|
|
1494
1494
|
const r = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
1495
1495
|
if (e.contains(t))
|
|
1496
1496
|
return !0;
|
|
1497
|
-
if (r &&
|
|
1497
|
+
if (r && Ct(r)) {
|
|
1498
1498
|
let n = t;
|
|
1499
1499
|
for (; n; ) {
|
|
1500
1500
|
if (e === n)
|
|
@@ -1504,11 +1504,11 @@ function oe(e, t) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
return !1;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function xr() {
|
|
1508
1508
|
const e = navigator.userAgentData;
|
|
1509
1509
|
return e != null && e.platform ? e.platform : navigator.platform;
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function kn() {
|
|
1512
1512
|
const e = navigator.userAgentData;
|
|
1513
1513
|
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
1514
1514
|
let {
|
|
@@ -1518,33 +1518,33 @@ function Dn() {
|
|
|
1518
1518
|
return r + "/" + n;
|
|
1519
1519
|
}).join(" ") : navigator.userAgent;
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function Er(e) {
|
|
1522
1522
|
return e.mozInputSource === 0 && e.isTrusted ? !0 : _t() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
return
|
|
1524
|
+
function Rr(e) {
|
|
1525
|
+
return Cr() ? !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
1526
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Tr() {
|
|
1529
1529
|
return /apple/i.test(navigator.vendor);
|
|
1530
1530
|
}
|
|
1531
1531
|
function _t() {
|
|
1532
1532
|
const e = /android/i;
|
|
1533
|
-
return e.test(
|
|
1533
|
+
return e.test(xr()) || e.test(kn());
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return
|
|
1535
|
+
function Cr() {
|
|
1536
|
+
return kn().includes("jsdom/");
|
|
1537
1537
|
}
|
|
1538
1538
|
function en(e, t) {
|
|
1539
1539
|
return ["mouse", "pen"].includes(e);
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Sr(e) {
|
|
1542
1542
|
return "nativeEvent" in e;
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1544
|
+
function _r(e) {
|
|
1545
1545
|
return e.matches("html,body");
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function ae(e) {
|
|
1548
1548
|
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
1549
1549
|
}
|
|
1550
1550
|
function ht(e, t) {
|
|
@@ -1555,106 +1555,106 @@ function ht(e, t) {
|
|
|
1555
1555
|
const r = e;
|
|
1556
1556
|
return r.target != null && t.contains(r.target);
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function xe(e) {
|
|
1559
1559
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
1560
1560
|
}
|
|
1561
|
-
const
|
|
1562
|
-
function
|
|
1563
|
-
return ne(e) && e.matches(
|
|
1561
|
+
const Or = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
1562
|
+
function Mn(e) {
|
|
1563
|
+
return ne(e) && e.matches(Or);
|
|
1564
1564
|
}
|
|
1565
1565
|
function vt(e) {
|
|
1566
1566
|
e.preventDefault(), e.stopPropagation();
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
return e ? e.getAttribute("role") === "combobox" &&
|
|
1568
|
+
function Ar(e) {
|
|
1569
|
+
return e ? e.getAttribute("role") === "combobox" && Mn(e) : !1;
|
|
1570
1570
|
}
|
|
1571
|
-
const
|
|
1571
|
+
const Be = Math.min, Re = Math.max, Ve = Math.round, Le = Math.floor, fe = (e) => ({
|
|
1572
1572
|
x: e,
|
|
1573
1573
|
y: e
|
|
1574
|
-
}),
|
|
1574
|
+
}), Pr = {
|
|
1575
1575
|
left: "right",
|
|
1576
1576
|
right: "left",
|
|
1577
1577
|
bottom: "top",
|
|
1578
1578
|
top: "bottom"
|
|
1579
1579
|
};
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1580
|
+
function Nr(e, t, r) {
|
|
1581
|
+
return Re(e, Be(t, r));
|
|
1582
1582
|
}
|
|
1583
1583
|
function rt(e, t) {
|
|
1584
1584
|
return typeof e == "function" ? e(t) : e;
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function Ae(e) {
|
|
1587
1587
|
return e.split("-")[0];
|
|
1588
1588
|
}
|
|
1589
1589
|
function ot(e) {
|
|
1590
1590
|
return e.split("-")[1];
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function Dn(e) {
|
|
1593
1593
|
return e === "x" ? "y" : "x";
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function Ln(e) {
|
|
1596
1596
|
return e === "y" ? "height" : "width";
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function me(e) {
|
|
1599
1599
|
const t = e[0];
|
|
1600
1600
|
return t === "t" || t === "b" ? "y" : "x";
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
return
|
|
1602
|
+
function Fn(e) {
|
|
1603
|
+
return Dn(me(e));
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Ir(e, t, r) {
|
|
1606
1606
|
r === void 0 && (r = !1);
|
|
1607
|
-
const n = ot(e), o =
|
|
1607
|
+
const n = ot(e), o = Fn(e), i = Ln(o);
|
|
1608
1608
|
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
1609
|
-
return t.reference[i] > t.floating[i] && (s =
|
|
1609
|
+
return t.reference[i] > t.floating[i] && (s = qe(s)), [s, qe(s)];
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const t =
|
|
1611
|
+
function kr(e) {
|
|
1612
|
+
const t = qe(e);
|
|
1613
1613
|
return [Ot(e), t, Ot(t)];
|
|
1614
1614
|
}
|
|
1615
1615
|
function Ot(e) {
|
|
1616
1616
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1617
1617
|
}
|
|
1618
|
-
const
|
|
1619
|
-
function
|
|
1618
|
+
const tn = ["left", "right"], nn = ["right", "left"], Mr = ["top", "bottom"], Dr = ["bottom", "top"];
|
|
1619
|
+
function Lr(e, t, r) {
|
|
1620
1620
|
switch (e) {
|
|
1621
1621
|
case "top":
|
|
1622
1622
|
case "bottom":
|
|
1623
|
-
return r ? t ?
|
|
1623
|
+
return r ? t ? nn : tn : t ? tn : nn;
|
|
1624
1624
|
case "left":
|
|
1625
1625
|
case "right":
|
|
1626
|
-
return t ?
|
|
1626
|
+
return t ? Mr : Dr;
|
|
1627
1627
|
default:
|
|
1628
1628
|
return [];
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function Fr(e, t, r, n) {
|
|
1632
1632
|
const o = ot(e);
|
|
1633
|
-
let i =
|
|
1633
|
+
let i = Lr(Ae(e), r === "start", n);
|
|
1634
1634
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ot)))), i;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1637
|
-
const t =
|
|
1638
|
-
return
|
|
1636
|
+
function qe(e) {
|
|
1637
|
+
const t = Ae(e);
|
|
1638
|
+
return Pr[t] + e.slice(t.length);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function $r(e) {
|
|
1641
|
+
var t, r, n, o;
|
|
1641
1642
|
return {
|
|
1642
|
-
top: 0,
|
|
1643
|
-
right: 0,
|
|
1644
|
-
bottom: 0,
|
|
1645
|
-
left: 0
|
|
1646
|
-
...e
|
|
1643
|
+
top: (t = e.top) != null ? t : 0,
|
|
1644
|
+
right: (r = e.right) != null ? r : 0,
|
|
1645
|
+
bottom: (n = e.bottom) != null ? n : 0,
|
|
1646
|
+
left: (o = e.left) != null ? o : 0
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1650
|
-
return typeof e != "number" ?
|
|
1649
|
+
function jr(e) {
|
|
1650
|
+
return typeof e != "number" ? $r(e) : {
|
|
1651
1651
|
top: e,
|
|
1652
1652
|
right: e,
|
|
1653
1653
|
bottom: e,
|
|
1654
1654
|
left: e
|
|
1655
1655
|
};
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Ye(e) {
|
|
1658
1658
|
const {
|
|
1659
1659
|
x: t,
|
|
1660
1660
|
y: r,
|
|
@@ -1673,84 +1673,84 @@ function Ue(e) {
|
|
|
1673
1673
|
};
|
|
1674
1674
|
}
|
|
1675
1675
|
/*!
|
|
1676
|
-
* tabbable 6.
|
|
1676
|
+
* tabbable 6.5.0
|
|
1677
1677
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1678
1678
|
*/
|
|
1679
|
-
var
|
|
1680
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
1679
|
+
var Wr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[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] *)"], Ue = /* @__PURE__ */ Wr.join(","), $n = typeof Element > "u", Pe = $n ? function() {
|
|
1680
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, He = !$n && Element.prototype.getRootNode ? function(e) {
|
|
1681
1681
|
var t;
|
|
1682
1682
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1683
1683
|
} : function(e) {
|
|
1684
1684
|
return e == null ? void 0 : e.ownerDocument;
|
|
1685
|
-
},
|
|
1685
|
+
}, Ke = function(t, r) {
|
|
1686
1686
|
var n;
|
|
1687
1687
|
r === void 0 && (r = !0);
|
|
1688
1688
|
var o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), i = o === "" || o === "true", s = i || r && t && // closest does not exist on shadow roots, so we fall back to a manual
|
|
1689
1689
|
// lookup upward, in case it is not defined.
|
|
1690
|
-
(typeof t.closest == "function" ? t.closest("[inert]") :
|
|
1690
|
+
(typeof t.closest == "function" ? t.closest("[inert]") : Ke(t.parentNode));
|
|
1691
1691
|
return s;
|
|
1692
|
-
},
|
|
1692
|
+
}, Br = function(t) {
|
|
1693
1693
|
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
1694
1694
|
return n === "" || n === "true";
|
|
1695
|
-
},
|
|
1696
|
-
if (
|
|
1695
|
+
}, Vr = function(t, r, n) {
|
|
1696
|
+
if (Ke(t))
|
|
1697
1697
|
return [];
|
|
1698
|
-
var o = Array.prototype.slice.apply(t.querySelectorAll(
|
|
1699
|
-
return r && Pe.call(t,
|
|
1698
|
+
var o = Array.prototype.slice.apply(t.querySelectorAll(Ue));
|
|
1699
|
+
return r && Pe.call(t, Ue) && o.unshift(t), o = o.filter(n), o;
|
|
1700
1700
|
}, At = function(t, r, n) {
|
|
1701
1701
|
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1702
1702
|
var s = i.shift();
|
|
1703
|
-
if (!
|
|
1703
|
+
if (!Ke(s, !1))
|
|
1704
1704
|
if (s.tagName === "SLOT") {
|
|
1705
|
-
var a = s.assignedElements(),
|
|
1705
|
+
var a = s.assignedElements(), u = a.length ? a : s.children, c = At(u, !0, n);
|
|
1706
1706
|
n.flatten ? o.push.apply(o, c) : o.push({
|
|
1707
1707
|
scopeParent: s,
|
|
1708
1708
|
candidates: c
|
|
1709
1709
|
});
|
|
1710
1710
|
} else {
|
|
1711
|
-
var f = Pe.call(s,
|
|
1711
|
+
var f = Pe.call(s, Ue);
|
|
1712
1712
|
f && n.filter(s) && (r || !t.includes(s)) && o.push(s);
|
|
1713
1713
|
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
1714
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !
|
|
1714
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !Ke(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
|
|
1715
1715
|
if (d && h) {
|
|
1716
|
-
var
|
|
1717
|
-
n.flatten ? o.push.apply(o,
|
|
1716
|
+
var l = At(d === !0 ? s.children : d.children, !0, n);
|
|
1717
|
+
n.flatten ? o.push.apply(o, l) : o.push({
|
|
1718
1718
|
scopeParent: s,
|
|
1719
|
-
candidates:
|
|
1719
|
+
candidates: l
|
|
1720
1720
|
});
|
|
1721
1721
|
} else
|
|
1722
1722
|
i.unshift.apply(i, s.children);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
1725
|
return o;
|
|
1726
|
-
},
|
|
1726
|
+
}, jn = function(t) {
|
|
1727
1727
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
1728
|
-
},
|
|
1728
|
+
}, Wn = function(t) {
|
|
1729
1729
|
if (!t)
|
|
1730
1730
|
throw new Error("No node provided");
|
|
1731
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
1732
|
-
},
|
|
1733
|
-
var n =
|
|
1734
|
-
return n < 0 && r && !
|
|
1735
|
-
},
|
|
1731
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Br(t)) && !jn(t) ? 0 : t.tabIndex;
|
|
1732
|
+
}, qr = function(t, r) {
|
|
1733
|
+
var n = Wn(t);
|
|
1734
|
+
return n < 0 && r && !jn(t) ? 0 : n;
|
|
1735
|
+
}, Yr = function(t, r) {
|
|
1736
1736
|
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
1737
|
-
},
|
|
1737
|
+
}, Bn = function(t) {
|
|
1738
1738
|
return t.tagName === "INPUT";
|
|
1739
|
-
},
|
|
1740
|
-
return
|
|
1741
|
-
},
|
|
1739
|
+
}, Ur = function(t) {
|
|
1740
|
+
return Bn(t) && t.type === "hidden";
|
|
1741
|
+
}, Hr = function(t) {
|
|
1742
1742
|
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
1743
1743
|
return n.tagName === "SUMMARY";
|
|
1744
1744
|
});
|
|
1745
1745
|
return r;
|
|
1746
|
-
},
|
|
1746
|
+
}, Kr = function(t, r) {
|
|
1747
1747
|
for (var n = 0; n < t.length; n++)
|
|
1748
1748
|
if (t[n].checked && t[n].form === r)
|
|
1749
1749
|
return t[n];
|
|
1750
|
-
},
|
|
1750
|
+
}, zr = function(t) {
|
|
1751
1751
|
if (!t.name)
|
|
1752
1752
|
return !0;
|
|
1753
|
-
var r = t.form ||
|
|
1753
|
+
var r = t.form || He(t), n = function(a) {
|
|
1754
1754
|
return r.querySelectorAll('input[type="radio"][name="' + a + '"]');
|
|
1755
1755
|
}, o;
|
|
1756
1756
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -1761,26 +1761,26 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1761
1761
|
} catch (s) {
|
|
1762
1762
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
1763
1763
|
}
|
|
1764
|
-
var i =
|
|
1764
|
+
var i = Kr(o, t.form);
|
|
1765
1765
|
return !i || i === t;
|
|
1766
|
+
}, Xr = function(t) {
|
|
1767
|
+
return Bn(t) && t.type === "radio";
|
|
1768
|
+
}, Gr = function(t) {
|
|
1769
|
+
return Xr(t) && !zr(t);
|
|
1766
1770
|
}, Zr = function(t) {
|
|
1767
|
-
|
|
1768
|
-
}, Jr = function(t) {
|
|
1769
|
-
return Zr(t) && !Gr(t);
|
|
1770
|
-
}, Qr = function(t) {
|
|
1771
|
-
var r, n = t && Ke(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
|
|
1771
|
+
var r, n = t && He(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
|
|
1772
1772
|
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 && (
|
|
1773
|
+
var s, a, u;
|
|
1774
|
+
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
1775
|
var c, f, d;
|
|
1776
|
-
n =
|
|
1776
|
+
n = He(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
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
return i;
|
|
1780
|
-
},
|
|
1780
|
+
}, rn = function(t) {
|
|
1781
1781
|
var r = t.getBoundingClientRect(), n = r.width, o = r.height;
|
|
1782
1782
|
return n === 0 && o === 0;
|
|
1783
|
-
},
|
|
1783
|
+
}, Jr = function(t, r) {
|
|
1784
1784
|
var n = r.displayCheck, o = r.getShadowRoot;
|
|
1785
1785
|
if (n === "full-native" && "checkVisibility" in t) {
|
|
1786
1786
|
var i = t.checkVisibility({
|
|
@@ -1798,31 +1798,32 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1798
1798
|
});
|
|
1799
1799
|
return !i;
|
|
1800
1800
|
}
|
|
1801
|
-
|
|
1801
|
+
var s = getComputedStyle(t), a = s.visibility;
|
|
1802
|
+
if (a === "hidden" || a === "collapse")
|
|
1802
1803
|
return !0;
|
|
1803
|
-
var
|
|
1804
|
-
if (Pe.call(
|
|
1804
|
+
var u = Pe.call(t, "details>summary:first-of-type"), c = u ? t.parentElement : t;
|
|
1805
|
+
if (Pe.call(c, "details:not([open]) *"))
|
|
1805
1806
|
return !0;
|
|
1806
1807
|
if (!n || n === "full" || // full-native can run this branch when it falls through in case
|
|
1807
1808
|
// Element#checkVisibility is unsupported
|
|
1808
1809
|
n === "full-native" || n === "legacy-full") {
|
|
1809
1810
|
if (typeof o == "function") {
|
|
1810
|
-
for (var
|
|
1811
|
-
var
|
|
1812
|
-
if (
|
|
1813
|
-
return
|
|
1814
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
1811
|
+
for (var f = t; t; ) {
|
|
1812
|
+
var d = t.parentElement, h = He(t);
|
|
1813
|
+
if (d && !d.shadowRoot && o(d) === !0)
|
|
1814
|
+
return rn(t);
|
|
1815
|
+
t.assignedSlot ? t = t.assignedSlot : !d && h !== t.ownerDocument ? t = h.host : t = d;
|
|
1815
1816
|
}
|
|
1816
|
-
t =
|
|
1817
|
+
t = f;
|
|
1817
1818
|
}
|
|
1818
|
-
if (
|
|
1819
|
+
if (Zr(t))
|
|
1819
1820
|
return !t.getClientRects().length;
|
|
1820
1821
|
if (n !== "legacy-full")
|
|
1821
1822
|
return !0;
|
|
1822
1823
|
} else if (n === "non-zero-area")
|
|
1823
|
-
return
|
|
1824
|
+
return rn(t);
|
|
1824
1825
|
return !1;
|
|
1825
|
-
},
|
|
1826
|
+
}, Qr = function(t) {
|
|
1826
1827
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
1827
1828
|
for (var r = t.parentElement; r; ) {
|
|
1828
1829
|
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
@@ -1836,26 +1837,26 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1836
1837
|
r = r.parentElement;
|
|
1837
1838
|
}
|
|
1838
1839
|
return !1;
|
|
1839
|
-
},
|
|
1840
|
-
return !(r.disabled ||
|
|
1841
|
-
|
|
1840
|
+
}, eo = function(t, r) {
|
|
1841
|
+
return !(r.disabled || Ur(r) || Jr(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
1842
|
+
Hr(r) || Qr(r));
|
|
1842
1843
|
}, Pt = function(t, r) {
|
|
1843
|
-
return !(
|
|
1844
|
-
},
|
|
1844
|
+
return !(Gr(r) || Wn(r) < 0 || !eo(t, r));
|
|
1845
|
+
}, to = function(t) {
|
|
1845
1846
|
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
1846
1847
|
return !!(isNaN(r) || r >= 0);
|
|
1847
|
-
},
|
|
1848
|
+
}, Vn = function(t) {
|
|
1848
1849
|
var r = [], n = [];
|
|
1849
1850
|
return t.forEach(function(o, i) {
|
|
1850
|
-
var s = !!o.scopeParent, a = s ? o.scopeParent : o,
|
|
1851
|
-
|
|
1851
|
+
var s = !!o.scopeParent, a = s ? o.scopeParent : o, u = qr(a, s), c = s ? Vn(o.candidates) : a;
|
|
1852
|
+
u === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
|
|
1852
1853
|
documentOrder: i,
|
|
1853
|
-
tabIndex:
|
|
1854
|
+
tabIndex: u,
|
|
1854
1855
|
item: o,
|
|
1855
1856
|
isScope: s,
|
|
1856
1857
|
content: c
|
|
1857
1858
|
});
|
|
1858
|
-
}), n.sort(
|
|
1859
|
+
}), n.sort(Yr).reduce(function(o, i) {
|
|
1859
1860
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
1860
1861
|
}, []).concat(r);
|
|
1861
1862
|
}, Ft = function(t, r) {
|
|
@@ -1865,62 +1866,55 @@ var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
|
|
|
1865
1866
|
filter: Pt.bind(null, r),
|
|
1866
1867
|
flatten: !1,
|
|
1867
1868
|
getShadowRoot: r.getShadowRoot,
|
|
1868
|
-
shadowRootFilter:
|
|
1869
|
-
}) : n =
|
|
1870
|
-
},
|
|
1869
|
+
shadowRootFilter: to
|
|
1870
|
+
}) : n = Vr(t, r.includeContainer, Pt.bind(null, r)), Vn(n);
|
|
1871
|
+
}, no = function(t, r) {
|
|
1871
1872
|
if (r = r || {}, !t)
|
|
1872
1873
|
throw new Error("No node provided");
|
|
1873
|
-
return Pe.call(t,
|
|
1874
|
+
return Pe.call(t, Ue) === !1 ? !1 : Pt(r, t);
|
|
1874
1875
|
};
|
|
1875
|
-
function
|
|
1876
|
+
function on(e, t, r) {
|
|
1876
1877
|
let {
|
|
1877
1878
|
reference: n,
|
|
1878
1879
|
floating: o
|
|
1879
1880
|
} = e;
|
|
1880
|
-
const i =
|
|
1881
|
-
let
|
|
1882
|
-
switch (
|
|
1881
|
+
const i = me(t), s = Fn(t), a = Ln(s), u = Ae(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;
|
|
1882
|
+
let l;
|
|
1883
|
+
switch (u) {
|
|
1883
1884
|
case "top":
|
|
1884
|
-
|
|
1885
|
+
l = {
|
|
1885
1886
|
x: f,
|
|
1886
1887
|
y: n.y - o.height
|
|
1887
1888
|
};
|
|
1888
1889
|
break;
|
|
1889
1890
|
case "bottom":
|
|
1890
|
-
|
|
1891
|
+
l = {
|
|
1891
1892
|
x: f,
|
|
1892
1893
|
y: n.y + n.height
|
|
1893
1894
|
};
|
|
1894
1895
|
break;
|
|
1895
1896
|
case "right":
|
|
1896
|
-
|
|
1897
|
+
l = {
|
|
1897
1898
|
x: n.x + n.width,
|
|
1898
1899
|
y: d
|
|
1899
1900
|
};
|
|
1900
1901
|
break;
|
|
1901
1902
|
case "left":
|
|
1902
|
-
|
|
1903
|
+
l = {
|
|
1903
1904
|
x: n.x - o.width,
|
|
1904
1905
|
y: d
|
|
1905
1906
|
};
|
|
1906
1907
|
break;
|
|
1907
1908
|
default:
|
|
1908
|
-
|
|
1909
|
+
l = {
|
|
1909
1910
|
x: n.x,
|
|
1910
1911
|
y: n.y
|
|
1911
1912
|
};
|
|
1912
1913
|
}
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
u[s] -= h * (r && c ? -1 : 1);
|
|
1916
|
-
break;
|
|
1917
|
-
case "end":
|
|
1918
|
-
u[s] += h * (r && c ? -1 : 1);
|
|
1919
|
-
break;
|
|
1920
|
-
}
|
|
1921
|
-
return u;
|
|
1914
|
+
const v = ot(t);
|
|
1915
|
+
return v && (l[s] += h * (v === "end" ? 1 : -1) * (r && c ? -1 : 1)), l;
|
|
1922
1916
|
}
|
|
1923
|
-
async function
|
|
1917
|
+
async function ro(e, t) {
|
|
1924
1918
|
var r;
|
|
1925
1919
|
t === void 0 && (t = {});
|
|
1926
1920
|
const {
|
|
@@ -1929,43 +1923,40 @@ async function io(e, t) {
|
|
|
1929
1923
|
platform: i,
|
|
1930
1924
|
rects: s,
|
|
1931
1925
|
elements: a,
|
|
1932
|
-
strategy:
|
|
1926
|
+
strategy: u
|
|
1933
1927
|
} = e, {
|
|
1934
1928
|
boundary: c = "clippingAncestors",
|
|
1935
1929
|
rootBoundary: f = "viewport",
|
|
1936
1930
|
elementContext: d = "floating",
|
|
1937
1931
|
altBoundary: h = !1,
|
|
1938
|
-
padding:
|
|
1939
|
-
} = rt(t, e), v =
|
|
1940
|
-
element: (r = await (i.isElement == null ? void 0 : i.isElement(
|
|
1932
|
+
padding: l = 0
|
|
1933
|
+
} = rt(t, e), v = jr(l), T = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ye(await i.getClippingRect({
|
|
1934
|
+
element: (r = await (i.isElement == null ? void 0 : i.isElement(T))) == null || r ? T : T.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
1941
1935
|
boundary: c,
|
|
1942
1936
|
rootBoundary: f,
|
|
1943
|
-
strategy:
|
|
1944
|
-
})),
|
|
1937
|
+
strategy: u
|
|
1938
|
+
})), I = d === "floating" ? {
|
|
1945
1939
|
x: n,
|
|
1946
1940
|
y: o,
|
|
1947
1941
|
width: s.floating.width,
|
|
1948
1942
|
height: s.floating.height
|
|
1949
|
-
} : s.reference,
|
|
1950
|
-
x: 1,
|
|
1951
|
-
y: 1
|
|
1952
|
-
} : {
|
|
1943
|
+
} : s.reference, w = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), _ = await (i.isElement == null ? void 0 : i.isElement(w)) && await (i.getScale == null ? void 0 : i.getScale(w)) || {
|
|
1953
1944
|
x: 1,
|
|
1954
1945
|
y: 1
|
|
1955
|
-
}, b =
|
|
1946
|
+
}, b = Ye(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1956
1947
|
elements: a,
|
|
1957
|
-
rect:
|
|
1958
|
-
offsetParent:
|
|
1959
|
-
strategy:
|
|
1960
|
-
}) :
|
|
1948
|
+
rect: I,
|
|
1949
|
+
offsetParent: w,
|
|
1950
|
+
strategy: u
|
|
1951
|
+
}) : I);
|
|
1961
1952
|
return {
|
|
1962
|
-
top: (A.top - b.top + v.top) /
|
|
1963
|
-
bottom: (b.bottom - A.bottom + v.bottom) /
|
|
1964
|
-
left: (A.left - b.left + v.left) /
|
|
1965
|
-
right: (b.right - A.right + v.right) /
|
|
1953
|
+
top: (A.top - b.top + v.top) / _.y,
|
|
1954
|
+
bottom: (b.bottom - A.bottom + v.bottom) / _.y,
|
|
1955
|
+
left: (A.left - b.left + v.left) / _.x,
|
|
1956
|
+
right: (b.right - A.right + v.right) / _.x
|
|
1966
1957
|
};
|
|
1967
1958
|
}
|
|
1968
|
-
const
|
|
1959
|
+
const oo = 50, io = async (e, t, r) => {
|
|
1969
1960
|
const {
|
|
1970
1961
|
placement: n = "bottom",
|
|
1971
1962
|
strategy: o = "absolute",
|
|
@@ -1973,8 +1964,8 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
1973
1964
|
platform: s
|
|
1974
1965
|
} = r, a = s.detectOverflow ? s : {
|
|
1975
1966
|
...s,
|
|
1976
|
-
detectOverflow:
|
|
1977
|
-
},
|
|
1967
|
+
detectOverflow: ro
|
|
1968
|
+
}, u = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1978
1969
|
let c = await s.getElementRects({
|
|
1979
1970
|
reference: e,
|
|
1980
1971
|
floating: t,
|
|
@@ -1982,21 +1973,21 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
1982
1973
|
}), {
|
|
1983
1974
|
x: f,
|
|
1984
1975
|
y: d
|
|
1985
|
-
} =
|
|
1976
|
+
} = on(c, n, u), h = n, l = 0;
|
|
1986
1977
|
const v = {};
|
|
1987
1978
|
for (let p = 0; p < i.length; p++) {
|
|
1988
|
-
const
|
|
1989
|
-
if (!
|
|
1979
|
+
const T = i[p];
|
|
1980
|
+
if (!T)
|
|
1990
1981
|
continue;
|
|
1991
1982
|
const {
|
|
1992
1983
|
name: A,
|
|
1993
|
-
fn:
|
|
1994
|
-
} =
|
|
1995
|
-
x:
|
|
1996
|
-
y:
|
|
1984
|
+
fn: I
|
|
1985
|
+
} = T, {
|
|
1986
|
+
x: w,
|
|
1987
|
+
y: _,
|
|
1997
1988
|
data: b,
|
|
1998
|
-
reset:
|
|
1999
|
-
} = await
|
|
1989
|
+
reset: k
|
|
1990
|
+
} = await I({
|
|
2000
1991
|
x: f,
|
|
2001
1992
|
y: d,
|
|
2002
1993
|
initialPlacement: n,
|
|
@@ -2010,17 +2001,17 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
2010
2001
|
floating: t
|
|
2011
2002
|
}
|
|
2012
2003
|
});
|
|
2013
|
-
f =
|
|
2004
|
+
f = w ?? f, d = _ ?? d, v[A] = {
|
|
2014
2005
|
...v[A],
|
|
2015
2006
|
...b
|
|
2016
|
-
},
|
|
2007
|
+
}, k && l < oo && (l++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
|
|
2017
2008
|
reference: e,
|
|
2018
2009
|
floating: t,
|
|
2019
2010
|
strategy: o
|
|
2020
|
-
}) :
|
|
2011
|
+
}) : k.rects), {
|
|
2021
2012
|
x: f,
|
|
2022
2013
|
y: d
|
|
2023
|
-
} =
|
|
2014
|
+
} = on(c, h, u)), p = -1);
|
|
2024
2015
|
}
|
|
2025
2016
|
return {
|
|
2026
2017
|
x: f,
|
|
@@ -2029,7 +2020,7 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
2029
2020
|
strategy: o,
|
|
2030
2021
|
middlewareData: v
|
|
2031
2022
|
};
|
|
2032
|
-
},
|
|
2023
|
+
}, so = function(e) {
|
|
2033
2024
|
return e === void 0 && (e = {}), {
|
|
2034
2025
|
name: "flip",
|
|
2035
2026
|
options: e,
|
|
@@ -2040,60 +2031,60 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
2040
2031
|
middlewareData: i,
|
|
2041
2032
|
rects: s,
|
|
2042
2033
|
initialPlacement: a,
|
|
2043
|
-
platform:
|
|
2034
|
+
platform: u,
|
|
2044
2035
|
elements: c
|
|
2045
2036
|
} = t, {
|
|
2046
2037
|
mainAxis: f = !0,
|
|
2047
2038
|
crossAxis: d = !0,
|
|
2048
2039
|
fallbackPlacements: h,
|
|
2049
|
-
fallbackStrategy:
|
|
2040
|
+
fallbackStrategy: l = "bestFit",
|
|
2050
2041
|
fallbackAxisSideDirection: v = "none",
|
|
2051
2042
|
flipAlignment: p = !0,
|
|
2052
|
-
...
|
|
2043
|
+
...T
|
|
2053
2044
|
} = rt(e, t);
|
|
2054
2045
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
2055
2046
|
return {};
|
|
2056
|
-
const A =
|
|
2057
|
-
!h &&
|
|
2058
|
-
const
|
|
2059
|
-
let
|
|
2060
|
-
if (f &&
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2047
|
+
const A = Ae(o), I = me(a), w = Ae(a) === a, _ = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), b = h || (w || !p ? [qe(a)] : kr(a)), k = v !== "none";
|
|
2048
|
+
!h && k && b.push(...Fr(a, p, v, _));
|
|
2049
|
+
const z = [a, ...b], H = await u.detectOverflow(t, T), G = [];
|
|
2050
|
+
let K = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
2051
|
+
if (f && G.push(H[A]), d) {
|
|
2052
|
+
const Z = Ir(o, s, _);
|
|
2053
|
+
G.push(H[Z[0]], H[Z[1]]);
|
|
2063
2054
|
}
|
|
2064
|
-
if (
|
|
2055
|
+
if (K = [...K, {
|
|
2065
2056
|
placement: o,
|
|
2066
|
-
overflows:
|
|
2067
|
-
}], !
|
|
2068
|
-
var
|
|
2069
|
-
const
|
|
2070
|
-
if (L && (!(d === "alignment" ?
|
|
2057
|
+
overflows: G
|
|
2058
|
+
}], !G.every((Z) => Z <= 0)) {
|
|
2059
|
+
var Q, V;
|
|
2060
|
+
const Z = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, L = z[Z];
|
|
2061
|
+
if (L && (!(d === "alignment" ? I !== me(L) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2071
2062
|
// overflows the main axis.
|
|
2072
|
-
|
|
2063
|
+
K.every((M) => me(M.placement) === I ? M.overflows[0] > 0 : !0)))
|
|
2073
2064
|
return {
|
|
2074
2065
|
data: {
|
|
2075
|
-
index:
|
|
2076
|
-
overflows:
|
|
2066
|
+
index: Z,
|
|
2067
|
+
overflows: K
|
|
2077
2068
|
},
|
|
2078
2069
|
reset: {
|
|
2079
2070
|
placement: L
|
|
2080
2071
|
}
|
|
2081
2072
|
};
|
|
2082
|
-
let j = (
|
|
2073
|
+
let j = (V = K.filter((q) => q.overflows[0] <= 0).sort((q, M) => q.overflows[1] - M.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
2083
2074
|
if (!j)
|
|
2084
|
-
switch (
|
|
2075
|
+
switch (l) {
|
|
2085
2076
|
case "bestFit": {
|
|
2086
2077
|
var te;
|
|
2087
|
-
const
|
|
2088
|
-
if (
|
|
2089
|
-
const R =
|
|
2090
|
-
return R ===
|
|
2078
|
+
const q = (te = K.filter((M) => {
|
|
2079
|
+
if (k) {
|
|
2080
|
+
const R = me(M.placement);
|
|
2081
|
+
return R === I || // Create a bias to the `y` side axis due to horizontal
|
|
2091
2082
|
// reading directions favoring greater width.
|
|
2092
2083
|
R === "y";
|
|
2093
2084
|
}
|
|
2094
2085
|
return !0;
|
|
2095
2086
|
}).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
|
-
|
|
2087
|
+
q && (j = q);
|
|
2097
2088
|
break;
|
|
2098
2089
|
}
|
|
2099
2090
|
case "initialPlacement":
|
|
@@ -2110,16 +2101,16 @@ const so = 50, ao = async (e, t, r) => {
|
|
|
2110
2101
|
return {};
|
|
2111
2102
|
}
|
|
2112
2103
|
};
|
|
2113
|
-
},
|
|
2114
|
-
async function
|
|
2104
|
+
}, ao = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2105
|
+
async function co(e, t) {
|
|
2115
2106
|
const {
|
|
2116
2107
|
placement: r,
|
|
2117
2108
|
platform: n,
|
|
2118
2109
|
elements: o
|
|
2119
|
-
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s =
|
|
2110
|
+
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Ae(r), a = ot(r), u = me(r) === "y", c = ao.has(s) ? -1 : 1, f = i && u ? -1 : 1, d = rt(t, e);
|
|
2120
2111
|
let {
|
|
2121
2112
|
mainAxis: h,
|
|
2122
|
-
crossAxis:
|
|
2113
|
+
crossAxis: l,
|
|
2123
2114
|
alignmentAxis: v
|
|
2124
2115
|
} = typeof d == "number" ? {
|
|
2125
2116
|
mainAxis: d,
|
|
@@ -2130,15 +2121,15 @@ async function uo(e, t) {
|
|
|
2130
2121
|
crossAxis: d.crossAxis || 0,
|
|
2131
2122
|
alignmentAxis: d.alignmentAxis
|
|
2132
2123
|
};
|
|
2133
|
-
return a && typeof v == "number" && (
|
|
2134
|
-
x:
|
|
2124
|
+
return a && typeof v == "number" && (l = a === "end" ? v * -1 : v), u ? {
|
|
2125
|
+
x: l * f,
|
|
2135
2126
|
y: h * c
|
|
2136
2127
|
} : {
|
|
2137
2128
|
x: h * c,
|
|
2138
|
-
y:
|
|
2129
|
+
y: l * f
|
|
2139
2130
|
};
|
|
2140
2131
|
}
|
|
2141
|
-
const
|
|
2132
|
+
const lo = function(e) {
|
|
2142
2133
|
return e === void 0 && (e = 0), {
|
|
2143
2134
|
name: "offset",
|
|
2144
2135
|
options: e,
|
|
@@ -2149,18 +2140,18 @@ const fo = function(e) {
|
|
|
2149
2140
|
y: i,
|
|
2150
2141
|
placement: s,
|
|
2151
2142
|
middlewareData: a
|
|
2152
|
-
} = t,
|
|
2143
|
+
} = t, u = await co(t, e);
|
|
2153
2144
|
return s === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
|
|
2154
|
-
x: o +
|
|
2155
|
-
y: i +
|
|
2145
|
+
x: o + u.x,
|
|
2146
|
+
y: i + u.y,
|
|
2156
2147
|
data: {
|
|
2157
|
-
...
|
|
2148
|
+
...u,
|
|
2158
2149
|
placement: s
|
|
2159
2150
|
}
|
|
2160
2151
|
};
|
|
2161
2152
|
}
|
|
2162
2153
|
};
|
|
2163
|
-
},
|
|
2154
|
+
}, uo = function(e) {
|
|
2164
2155
|
return e === void 0 && (e = {}), {
|
|
2165
2156
|
name: "shift",
|
|
2166
2157
|
options: e,
|
|
@@ -2173,15 +2164,15 @@ const fo = function(e) {
|
|
|
2173
2164
|
} = t, {
|
|
2174
2165
|
mainAxis: s = !0,
|
|
2175
2166
|
crossAxis: a = !1,
|
|
2176
|
-
limiter:
|
|
2177
|
-
fn: (
|
|
2167
|
+
limiter: u = {
|
|
2168
|
+
fn: (I) => {
|
|
2178
2169
|
let {
|
|
2179
|
-
x:
|
|
2180
|
-
y
|
|
2181
|
-
} =
|
|
2170
|
+
x: w,
|
|
2171
|
+
y: _
|
|
2172
|
+
} = I;
|
|
2182
2173
|
return {
|
|
2183
|
-
x:
|
|
2184
|
-
y
|
|
2174
|
+
x: w,
|
|
2175
|
+
y: _
|
|
2185
2176
|
};
|
|
2186
2177
|
}
|
|
2187
2178
|
},
|
|
@@ -2189,28 +2180,22 @@ const fo = function(e) {
|
|
|
2189
2180
|
} = rt(e, t), f = {
|
|
2190
2181
|
x: r,
|
|
2191
2182
|
y: n
|
|
2192
|
-
}, d = await i.detectOverflow(t, c), h =
|
|
2193
|
-
let v = f[
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
}
|
|
2198
|
-
if (a) {
|
|
2199
|
-
const A = h === "y" ? "top" : "left", k = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[k];
|
|
2200
|
-
p = tn(y, p, T);
|
|
2201
|
-
}
|
|
2202
|
-
const O = l.fn({
|
|
2183
|
+
}, d = await i.detectOverflow(t, c), h = me(o), l = Dn(h);
|
|
2184
|
+
let v = f[l], p = f[h];
|
|
2185
|
+
const T = (I, w) => Nr(w + d[I === "y" ? "top" : "left"], w, w - d[I === "y" ? "bottom" : "right"]);
|
|
2186
|
+
s && (v = T(l, v)), a && (p = T(h, p));
|
|
2187
|
+
const A = u.fn({
|
|
2203
2188
|
...t,
|
|
2204
|
-
[
|
|
2189
|
+
[l]: v,
|
|
2205
2190
|
[h]: p
|
|
2206
2191
|
});
|
|
2207
2192
|
return {
|
|
2208
|
-
...
|
|
2193
|
+
...A,
|
|
2209
2194
|
data: {
|
|
2210
|
-
x:
|
|
2211
|
-
y:
|
|
2195
|
+
x: A.x - r,
|
|
2196
|
+
y: A.y - n,
|
|
2212
2197
|
enabled: {
|
|
2213
|
-
[
|
|
2198
|
+
[l]: s,
|
|
2214
2199
|
[h]: a
|
|
2215
2200
|
}
|
|
2216
2201
|
}
|
|
@@ -2218,8 +2203,8 @@ const fo = function(e) {
|
|
|
2218
2203
|
}
|
|
2219
2204
|
};
|
|
2220
2205
|
};
|
|
2221
|
-
function
|
|
2222
|
-
const t =
|
|
2206
|
+
function qn(e) {
|
|
2207
|
+
const t = ce(e);
|
|
2223
2208
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
2224
2209
|
const o = ne(e), i = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, a = Ve(r) !== i || Ve(n) !== s;
|
|
2225
2210
|
return a && (r = i, n = s), {
|
|
@@ -2231,146 +2216,145 @@ function Un(e) {
|
|
|
2231
2216
|
function $t(e) {
|
|
2232
2217
|
return ee(e) ? e : e.contextElement;
|
|
2233
2218
|
}
|
|
2234
|
-
function
|
|
2219
|
+
function Oe(e) {
|
|
2235
2220
|
const t = $t(e);
|
|
2236
2221
|
if (!ne(t))
|
|
2237
|
-
return
|
|
2222
|
+
return fe(1);
|
|
2238
2223
|
const r = t.getBoundingClientRect(), {
|
|
2239
2224
|
width: n,
|
|
2240
2225
|
height: o,
|
|
2241
2226
|
$: i
|
|
2242
|
-
} =
|
|
2227
|
+
} = qn(t);
|
|
2243
2228
|
let s = (i ? Ve(r.width) : r.width) / n, a = (i ? Ve(r.height) : r.height) / o;
|
|
2244
2229
|
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2245
2230
|
x: s,
|
|
2246
2231
|
y: a
|
|
2247
2232
|
};
|
|
2248
2233
|
}
|
|
2249
|
-
const
|
|
2250
|
-
function
|
|
2251
|
-
const t =
|
|
2252
|
-
return !tt() || !t.visualViewport ?
|
|
2234
|
+
const fo = /* @__PURE__ */ fe(0);
|
|
2235
|
+
function Yn(e) {
|
|
2236
|
+
const t = oe(e);
|
|
2237
|
+
return !tt() || !t.visualViewport ? fo : {
|
|
2253
2238
|
x: t.visualViewport.offsetLeft,
|
|
2254
2239
|
y: t.visualViewport.offsetTop
|
|
2255
2240
|
};
|
|
2256
2241
|
}
|
|
2257
|
-
function
|
|
2258
|
-
return t === void 0 && (t = !1),
|
|
2242
|
+
function po(e, t, r) {
|
|
2243
|
+
return t === void 0 && (t = !1), !!r && t && r === oe(e);
|
|
2259
2244
|
}
|
|
2260
2245
|
function Ce(e, t, r, n) {
|
|
2261
2246
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2262
2247
|
const o = e.getBoundingClientRect(), i = $t(e);
|
|
2263
|
-
let s =
|
|
2264
|
-
t && (n ? ee(n) && (s =
|
|
2265
|
-
const a =
|
|
2266
|
-
let
|
|
2267
|
-
if (i) {
|
|
2268
|
-
const h =
|
|
2269
|
-
let v = h, p =
|
|
2270
|
-
for (; p &&
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2248
|
+
let s = fe(1);
|
|
2249
|
+
t && (n ? ee(n) && (s = Oe(n)) : s = Oe(e));
|
|
2250
|
+
const a = po(i, r, n) ? Yn(i) : fe(0);
|
|
2251
|
+
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;
|
|
2252
|
+
if (i && n) {
|
|
2253
|
+
const h = oe(i), l = ee(n) ? oe(n) : n;
|
|
2254
|
+
let v = h, p = St(v);
|
|
2255
|
+
for (; p && l !== v; ) {
|
|
2256
|
+
const T = Oe(p), A = p.getBoundingClientRect(), I = ce(p), w = A.left + (p.clientLeft + parseFloat(I.paddingLeft)) * T.x, _ = A.top + (p.clientTop + parseFloat(I.paddingTop)) * T.y;
|
|
2257
|
+
u *= T.x, c *= T.y, f *= T.x, d *= T.y, u += w, c += _, v = oe(p), p = St(v);
|
|
2273
2258
|
}
|
|
2274
2259
|
}
|
|
2275
|
-
return
|
|
2260
|
+
return Ye({
|
|
2276
2261
|
width: f,
|
|
2277
2262
|
height: d,
|
|
2278
|
-
x:
|
|
2263
|
+
x: u,
|
|
2279
2264
|
y: c
|
|
2280
2265
|
});
|
|
2281
2266
|
}
|
|
2282
2267
|
function it(e, t) {
|
|
2283
2268
|
const r = nt(e).scrollLeft;
|
|
2284
|
-
return t ? t.left + r : Ce(
|
|
2269
|
+
return t ? t.left + r : Ce(de(e)).left + r;
|
|
2285
2270
|
}
|
|
2286
|
-
function
|
|
2271
|
+
function Un(e, t) {
|
|
2287
2272
|
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
|
|
2288
2273
|
return {
|
|
2289
2274
|
x: n,
|
|
2290
2275
|
y: o
|
|
2291
2276
|
};
|
|
2292
2277
|
}
|
|
2293
|
-
function
|
|
2278
|
+
function mo(e) {
|
|
2294
2279
|
let {
|
|
2295
2280
|
elements: t,
|
|
2296
2281
|
rect: r,
|
|
2297
2282
|
offsetParent: n,
|
|
2298
2283
|
strategy: o
|
|
2299
2284
|
} = e;
|
|
2300
|
-
const i = o === "fixed", s =
|
|
2285
|
+
const i = o === "fixed", s = de(n), a = t ? et(t.floating) : !1;
|
|
2301
2286
|
if (n === s || a && i)
|
|
2302
2287
|
return r;
|
|
2303
|
-
let
|
|
2288
|
+
let u = {
|
|
2304
2289
|
scrollLeft: 0,
|
|
2305
2290
|
scrollTop: 0
|
|
2306
|
-
}, c =
|
|
2307
|
-
const f =
|
|
2308
|
-
if ((d || !
|
|
2309
|
-
const
|
|
2310
|
-
c =
|
|
2291
|
+
}, c = fe(1);
|
|
2292
|
+
const f = fe(0), d = ne(n);
|
|
2293
|
+
if ((d || !i) && ((be(n) !== "body" || Qe(s)) && (u = nt(n)), d)) {
|
|
2294
|
+
const l = Ce(n);
|
|
2295
|
+
c = Oe(n), f.x = l.x + n.clientLeft, f.y = l.y + n.clientTop;
|
|
2311
2296
|
}
|
|
2312
|
-
const h = s && !d && !i ?
|
|
2297
|
+
const h = s && !d && !i ? Un(s, u) : fe(0);
|
|
2313
2298
|
return {
|
|
2314
2299
|
width: r.width * c.x,
|
|
2315
2300
|
height: r.height * c.y,
|
|
2316
|
-
x: r.x * c.x -
|
|
2317
|
-
y: r.y * c.y -
|
|
2301
|
+
x: r.x * c.x - u.scrollLeft * c.x + f.x + h.x,
|
|
2302
|
+
y: r.y * c.y - u.scrollTop * c.y + f.y + h.y
|
|
2318
2303
|
};
|
|
2319
2304
|
}
|
|
2320
|
-
function
|
|
2321
|
-
return Array.from(e.getClientRects());
|
|
2305
|
+
function ho(e) {
|
|
2306
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
2322
2307
|
}
|
|
2323
|
-
function
|
|
2324
|
-
const t =
|
|
2325
|
-
let
|
|
2326
|
-
const
|
|
2327
|
-
return
|
|
2328
|
-
width:
|
|
2329
|
-
height:
|
|
2330
|
-
x:
|
|
2331
|
-
y:
|
|
2308
|
+
function vo(e) {
|
|
2309
|
+
const t = nt(e), r = e.ownerDocument.body, n = Re(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = Re(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
2310
|
+
let i = -t.scrollLeft + it(e);
|
|
2311
|
+
const s = -t.scrollTop;
|
|
2312
|
+
return ce(r).direction === "rtl" && (i += Re(e.clientWidth, r.clientWidth) - n), {
|
|
2313
|
+
width: n,
|
|
2314
|
+
height: o,
|
|
2315
|
+
x: i,
|
|
2316
|
+
y: s
|
|
2332
2317
|
};
|
|
2333
2318
|
}
|
|
2334
|
-
const
|
|
2335
|
-
function
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2319
|
+
const bo = 25;
|
|
2320
|
+
function yo(e, t, r) {
|
|
2321
|
+
r === void 0 && (r = "viewport");
|
|
2322
|
+
const n = r === "layoutViewport", o = oe(e), i = de(e), s = o.visualViewport;
|
|
2323
|
+
let a = i.clientWidth, u = i.clientHeight, c = 0, f = 0;
|
|
2324
|
+
if (s) {
|
|
2325
|
+
const h = !tt() || t === "fixed";
|
|
2326
|
+
n ? h || (c = -s.offsetLeft, f = -s.offsetTop) : (a = s.width, u = s.height, h && (c = s.offsetLeft, f = s.offsetTop));
|
|
2327
|
+
}
|
|
2328
|
+
if (it(i) <= 0) {
|
|
2329
|
+
const h = i.ownerDocument, l = h.body, v = getComputedStyle(l), p = h.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, T = Math.abs(i.clientWidth - l.clientWidth - p), A = getComputedStyle(i).scrollbarGutter === "stable both-edges" ? T / 2 : T;
|
|
2330
|
+
A <= bo && (a -= A);
|
|
2342
2331
|
}
|
|
2343
|
-
const c = it(n);
|
|
2344
|
-
if (c <= 0) {
|
|
2345
|
-
const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - u);
|
|
2346
|
-
v <= an && (i -= v);
|
|
2347
|
-
} else c <= an && (i += c);
|
|
2348
2332
|
return {
|
|
2349
|
-
width:
|
|
2350
|
-
height:
|
|
2351
|
-
x:
|
|
2352
|
-
y:
|
|
2333
|
+
width: a,
|
|
2334
|
+
height: u,
|
|
2335
|
+
x: c,
|
|
2336
|
+
y: f
|
|
2353
2337
|
};
|
|
2354
2338
|
}
|
|
2355
|
-
function
|
|
2356
|
-
const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i =
|
|
2339
|
+
function go(e, t) {
|
|
2340
|
+
const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = Oe(e), s = e.clientWidth * i.x, a = e.clientHeight * i.y, u = o * i.x, c = n * i.y;
|
|
2357
2341
|
return {
|
|
2358
2342
|
width: s,
|
|
2359
2343
|
height: a,
|
|
2360
|
-
x:
|
|
2344
|
+
x: u,
|
|
2361
2345
|
y: c
|
|
2362
2346
|
};
|
|
2363
2347
|
}
|
|
2364
|
-
function
|
|
2348
|
+
function sn(e, t, r) {
|
|
2365
2349
|
let n;
|
|
2366
|
-
if (t === "viewport")
|
|
2367
|
-
n =
|
|
2350
|
+
if (t === "viewport" || t === "layoutViewport")
|
|
2351
|
+
n = yo(e, r, t);
|
|
2368
2352
|
else if (t === "document")
|
|
2369
|
-
n =
|
|
2353
|
+
n = vo(de(e));
|
|
2370
2354
|
else if (ee(t))
|
|
2371
|
-
n =
|
|
2355
|
+
n = go(t, r);
|
|
2372
2356
|
else {
|
|
2373
|
-
const o =
|
|
2357
|
+
const o = Yn(e);
|
|
2374
2358
|
n = {
|
|
2375
2359
|
x: t.x - o.x,
|
|
2376
2360
|
y: t.y - o.y,
|
|
@@ -2378,112 +2362,104 @@ function cn(e, t, r) {
|
|
|
2378
2362
|
height: t.height
|
|
2379
2363
|
};
|
|
2380
2364
|
}
|
|
2381
|
-
return
|
|
2365
|
+
return Ye(n);
|
|
2382
2366
|
}
|
|
2383
|
-
function
|
|
2384
|
-
const r = pe(e);
|
|
2385
|
-
return r === t || !ee(r) || be(r) ? !1 : se(r).position === "fixed" || zn(r, t);
|
|
2386
|
-
}
|
|
2387
|
-
function xo(e, t) {
|
|
2367
|
+
function wo(e, t) {
|
|
2388
2368
|
const r = t.get(e);
|
|
2389
2369
|
if (r)
|
|
2390
2370
|
return r;
|
|
2391
|
-
let n =
|
|
2392
|
-
const i =
|
|
2393
|
-
let s = i ?
|
|
2394
|
-
for (; ee(s) && !
|
|
2395
|
-
const a =
|
|
2396
|
-
!
|
|
2371
|
+
let n = he(e, [], !1).filter((a) => ee(a) && be(a) !== "body"), o = null;
|
|
2372
|
+
const i = ce(e).position === "fixed";
|
|
2373
|
+
let s = i ? ve(e) : e;
|
|
2374
|
+
for (; ee(s) && !Te(s); ) {
|
|
2375
|
+
const a = ce(s), u = Lt(s), c = o ? o.position : i ? "fixed" : "";
|
|
2376
|
+
!u && (c === "fixed" || c === "absolute" && a.position === "static") ? n = n.filter((d) => d !== s) : o = a, s = ve(s);
|
|
2397
2377
|
}
|
|
2398
2378
|
return t.set(e, n), n;
|
|
2399
2379
|
}
|
|
2400
|
-
function
|
|
2380
|
+
function xo(e) {
|
|
2401
2381
|
let {
|
|
2402
2382
|
element: t,
|
|
2403
2383
|
boundary: r,
|
|
2404
2384
|
rootBoundary: n,
|
|
2405
2385
|
strategy: o
|
|
2406
2386
|
} = e;
|
|
2407
|
-
const s = [...r === "clippingAncestors" ? et(t) ? [] :
|
|
2408
|
-
let
|
|
2387
|
+
const s = [...r === "clippingAncestors" ? et(t) ? [] : wo(t, this._c) : [].concat(r), n], a = sn(t, s[0], o);
|
|
2388
|
+
let u = a.top, c = a.right, f = a.bottom, d = a.left;
|
|
2409
2389
|
for (let h = 1; h < s.length; h++) {
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2390
|
+
const l = sn(t, s[h], o);
|
|
2391
|
+
u = Re(l.top, u), c = Be(l.right, c), f = Be(l.bottom, f), d = Re(l.left, d);
|
|
2412
2392
|
}
|
|
2413
2393
|
return {
|
|
2414
2394
|
width: c - d,
|
|
2415
|
-
height: f -
|
|
2395
|
+
height: f - u,
|
|
2416
2396
|
x: d,
|
|
2417
|
-
y:
|
|
2397
|
+
y: u
|
|
2418
2398
|
};
|
|
2419
2399
|
}
|
|
2420
|
-
function
|
|
2400
|
+
function Eo(e) {
|
|
2421
2401
|
const {
|
|
2422
2402
|
width: t,
|
|
2423
2403
|
height: r
|
|
2424
|
-
} =
|
|
2404
|
+
} = qn(e);
|
|
2425
2405
|
return {
|
|
2426
2406
|
width: t,
|
|
2427
2407
|
height: r
|
|
2428
2408
|
};
|
|
2429
2409
|
}
|
|
2430
|
-
function
|
|
2431
|
-
const n = ne(t), o =
|
|
2410
|
+
function Ro(e, t, r) {
|
|
2411
|
+
const n = ne(t), o = de(t), i = r === "fixed", s = Ce(e, !0, i, t);
|
|
2432
2412
|
let a = {
|
|
2433
2413
|
scrollLeft: 0,
|
|
2434
2414
|
scrollTop: 0
|
|
2435
2415
|
};
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2438
|
-
|
|
2416
|
+
const u = fe(0);
|
|
2417
|
+
if ((n || !i) && ((be(t) !== "body" || Qe(o)) && (a = nt(t)), n)) {
|
|
2418
|
+
const h = Ce(t, !0, i, t);
|
|
2419
|
+
u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
|
|
2439
2420
|
}
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
const u = Ce(t, !0, i, t);
|
|
2443
|
-
l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
|
|
2444
|
-
} else o && c();
|
|
2445
|
-
i && !n && o && c();
|
|
2446
|
-
const f = o && !n && !i ? Kn(o, a) : le(0), d = s.left + a.scrollLeft - l.x - f.x, h = s.top + a.scrollTop - l.y - f.y;
|
|
2421
|
+
!n && o && (u.x = it(o));
|
|
2422
|
+
const c = o && !n && !i ? Un(o, a) : fe(0), f = s.left + a.scrollLeft - u.x - c.x, d = s.top + a.scrollTop - u.y - c.y;
|
|
2447
2423
|
return {
|
|
2448
|
-
x:
|
|
2449
|
-
y:
|
|
2424
|
+
x: f,
|
|
2425
|
+
y: d,
|
|
2450
2426
|
width: s.width,
|
|
2451
2427
|
height: s.height
|
|
2452
2428
|
};
|
|
2453
2429
|
}
|
|
2454
2430
|
function bt(e) {
|
|
2455
|
-
return
|
|
2431
|
+
return ce(e).position === "static";
|
|
2456
2432
|
}
|
|
2457
|
-
function
|
|
2458
|
-
if (!ne(e) ||
|
|
2433
|
+
function an(e, t) {
|
|
2434
|
+
if (!ne(e) || ce(e).position === "fixed")
|
|
2459
2435
|
return null;
|
|
2460
2436
|
if (t)
|
|
2461
2437
|
return t(e);
|
|
2462
2438
|
let r = e.offsetParent;
|
|
2463
|
-
return
|
|
2439
|
+
return de(e) === r && (r = r.ownerDocument.body), r;
|
|
2464
2440
|
}
|
|
2465
|
-
function
|
|
2466
|
-
const r =
|
|
2441
|
+
function Hn(e, t) {
|
|
2442
|
+
const r = oe(e);
|
|
2467
2443
|
if (et(e))
|
|
2468
2444
|
return r;
|
|
2469
2445
|
if (!ne(e)) {
|
|
2470
|
-
let o =
|
|
2471
|
-
for (; o && !
|
|
2446
|
+
let o = ve(e);
|
|
2447
|
+
for (; o && !Te(o); ) {
|
|
2472
2448
|
if (ee(o) && !bt(o))
|
|
2473
2449
|
return o;
|
|
2474
|
-
o =
|
|
2450
|
+
o = ve(o);
|
|
2475
2451
|
}
|
|
2476
2452
|
return r;
|
|
2477
2453
|
}
|
|
2478
|
-
let n =
|
|
2479
|
-
for (; n &&
|
|
2480
|
-
n =
|
|
2481
|
-
return n &&
|
|
2454
|
+
let n = an(e, t);
|
|
2455
|
+
for (; n && br(n) && bt(n); )
|
|
2456
|
+
n = an(n, t);
|
|
2457
|
+
return n && Te(n) && bt(n) && !Lt(n) ? r : n || wr(e) || r;
|
|
2482
2458
|
}
|
|
2483
|
-
const
|
|
2484
|
-
const t = this.getOffsetParent ||
|
|
2459
|
+
const To = async function(e) {
|
|
2460
|
+
const t = this.getOffsetParent || Hn, r = this.getDimensions, n = await r(e.floating);
|
|
2485
2461
|
return {
|
|
2486
|
-
reference:
|
|
2462
|
+
reference: Ro(e.reference, await t(e.floating), e.strategy),
|
|
2487
2463
|
floating: {
|
|
2488
2464
|
x: 0,
|
|
2489
2465
|
y: 0,
|
|
@@ -2493,121 +2469,122 @@ const So = async function(e) {
|
|
|
2493
2469
|
};
|
|
2494
2470
|
};
|
|
2495
2471
|
function Co(e) {
|
|
2496
|
-
return
|
|
2497
|
-
}
|
|
2498
|
-
const
|
|
2499
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2500
|
-
getDocumentElement:
|
|
2501
|
-
getClippingRect:
|
|
2502
|
-
getOffsetParent:
|
|
2503
|
-
getElementRects:
|
|
2504
|
-
getClientRects:
|
|
2505
|
-
getDimensions:
|
|
2506
|
-
getScale:
|
|
2472
|
+
return ce(e).direction === "rtl";
|
|
2473
|
+
}
|
|
2474
|
+
const So = {
|
|
2475
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: mo,
|
|
2476
|
+
getDocumentElement: de,
|
|
2477
|
+
getClippingRect: xo,
|
|
2478
|
+
getOffsetParent: Hn,
|
|
2479
|
+
getElementRects: To,
|
|
2480
|
+
getClientRects: ho,
|
|
2481
|
+
getDimensions: Eo,
|
|
2482
|
+
getScale: Oe,
|
|
2507
2483
|
isElement: ee,
|
|
2508
2484
|
isRTL: Co
|
|
2509
2485
|
};
|
|
2510
|
-
function
|
|
2486
|
+
function Kn(e, t) {
|
|
2511
2487
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2512
2488
|
}
|
|
2513
|
-
function
|
|
2514
|
-
let
|
|
2515
|
-
const
|
|
2516
|
-
function
|
|
2517
|
-
var
|
|
2518
|
-
clearTimeout(
|
|
2489
|
+
function _o(e, t, r) {
|
|
2490
|
+
let n = null, o;
|
|
2491
|
+
const i = de(e);
|
|
2492
|
+
function s() {
|
|
2493
|
+
var f;
|
|
2494
|
+
clearTimeout(o), (f = n) == null || f.disconnect(), n = null;
|
|
2519
2495
|
}
|
|
2520
|
-
function
|
|
2521
|
-
|
|
2522
|
-
const
|
|
2523
|
-
left:
|
|
2524
|
-
top:
|
|
2525
|
-
width:
|
|
2526
|
-
height:
|
|
2527
|
-
} =
|
|
2528
|
-
if (
|
|
2496
|
+
function a(f, d) {
|
|
2497
|
+
f === void 0 && (f = !1), d === void 0 && (d = 1), s();
|
|
2498
|
+
const h = e.getBoundingClientRect(), {
|
|
2499
|
+
left: l,
|
|
2500
|
+
top: v,
|
|
2501
|
+
width: p,
|
|
2502
|
+
height: T
|
|
2503
|
+
} = h;
|
|
2504
|
+
if (f || t(), !p || !T)
|
|
2529
2505
|
return;
|
|
2530
|
-
const
|
|
2531
|
-
rootMargin: -
|
|
2532
|
-
threshold:
|
|
2506
|
+
const A = Le(v), I = Le(i.clientWidth - (l + p)), w = Le(i.clientHeight - (v + T)), _ = Le(l), k = {
|
|
2507
|
+
rootMargin: -A + "px " + -I + "px " + -w + "px " + -_ + "px",
|
|
2508
|
+
threshold: Re(0, Be(1, d)) || 1
|
|
2533
2509
|
};
|
|
2534
|
-
let
|
|
2535
|
-
function
|
|
2536
|
-
const
|
|
2537
|
-
if (
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2510
|
+
let z = !0;
|
|
2511
|
+
function H(G) {
|
|
2512
|
+
const K = G[0].intersectionRatio;
|
|
2513
|
+
if (!Kn(h, e.getBoundingClientRect()))
|
|
2514
|
+
return a();
|
|
2515
|
+
if (K !== d) {
|
|
2516
|
+
if (!z)
|
|
2517
|
+
return a();
|
|
2518
|
+
K ? a(!1, K) : o = setTimeout(() => {
|
|
2519
|
+
a(!1, 1e-7);
|
|
2542
2520
|
}, 1e3);
|
|
2543
2521
|
}
|
|
2544
|
-
|
|
2522
|
+
z = !1;
|
|
2545
2523
|
}
|
|
2546
2524
|
try {
|
|
2547
|
-
|
|
2548
|
-
...
|
|
2525
|
+
n = new IntersectionObserver(H, {
|
|
2526
|
+
...k,
|
|
2549
2527
|
// Handle <iframe>s
|
|
2550
|
-
root:
|
|
2528
|
+
root: i.ownerDocument
|
|
2551
2529
|
});
|
|
2552
2530
|
} catch {
|
|
2553
|
-
|
|
2531
|
+
n = new IntersectionObserver(H, k);
|
|
2554
2532
|
}
|
|
2555
|
-
|
|
2533
|
+
n.observe(e);
|
|
2556
2534
|
}
|
|
2557
|
-
|
|
2535
|
+
const u = oe(e), c = () => a(r);
|
|
2536
|
+
return u.addEventListener("resize", c), a(!0), () => {
|
|
2537
|
+
u.removeEventListener("resize", c), s();
|
|
2538
|
+
};
|
|
2558
2539
|
}
|
|
2559
|
-
function
|
|
2540
|
+
function Oo(e, t, r, n) {
|
|
2560
2541
|
n === void 0 && (n = {});
|
|
2561
2542
|
const {
|
|
2562
2543
|
ancestorScroll: o = !0,
|
|
2563
2544
|
ancestorResize: i = !0,
|
|
2564
2545
|
elementResize: s = typeof ResizeObserver == "function",
|
|
2565
2546
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
2566
|
-
animationFrame:
|
|
2567
|
-
} = n, c = $t(e), f = o || i ? [...c ?
|
|
2547
|
+
animationFrame: u = !1
|
|
2548
|
+
} = n, c = $t(e), f = o || i ? [...c ? he(c) : [], ...t ? he(t) : []] : [];
|
|
2568
2549
|
f.forEach((A) => {
|
|
2569
|
-
o && A.addEventListener("scroll", r,
|
|
2570
|
-
passive: !0
|
|
2571
|
-
}), i && A.addEventListener("resize", r);
|
|
2550
|
+
o && A.addEventListener("scroll", r), i && A.addEventListener("resize", r);
|
|
2572
2551
|
});
|
|
2573
|
-
const d = c && a ?
|
|
2574
|
-
let h = -1,
|
|
2575
|
-
s && (
|
|
2576
|
-
let [
|
|
2577
|
-
|
|
2578
|
-
var
|
|
2579
|
-
(
|
|
2552
|
+
const d = c && a ? _o(c, r, i) : null;
|
|
2553
|
+
let h = -1, l = null;
|
|
2554
|
+
s && (l = new ResizeObserver((A) => {
|
|
2555
|
+
let [I] = A;
|
|
2556
|
+
I && I.target === c && l && t && (l.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
2557
|
+
var w;
|
|
2558
|
+
(w = l) == null || w.observe(t);
|
|
2580
2559
|
})), r();
|
|
2581
|
-
}), c && !
|
|
2582
|
-
let v, p =
|
|
2583
|
-
|
|
2584
|
-
function
|
|
2560
|
+
}), c && !u && l.observe(c), t && l.observe(t));
|
|
2561
|
+
let v, p = u ? Ce(e) : null;
|
|
2562
|
+
u && T();
|
|
2563
|
+
function T() {
|
|
2585
2564
|
const A = Ce(e);
|
|
2586
|
-
p && !
|
|
2565
|
+
p && !Kn(p, A) && r(), p = A, v = requestAnimationFrame(T);
|
|
2587
2566
|
}
|
|
2588
2567
|
return r(), () => {
|
|
2589
2568
|
var A;
|
|
2590
|
-
f.forEach((
|
|
2591
|
-
o &&
|
|
2592
|
-
}), d == null || d(), (A =
|
|
2569
|
+
f.forEach((I) => {
|
|
2570
|
+
o && I.removeEventListener("scroll", r), i && I.removeEventListener("resize", r);
|
|
2571
|
+
}), d == null || d(), (A = l) == null || A.disconnect(), l = null, u && cancelAnimationFrame(v);
|
|
2593
2572
|
};
|
|
2594
2573
|
}
|
|
2595
|
-
const
|
|
2596
|
-
const n = /* @__PURE__ */ new Map(), o = {
|
|
2597
|
-
|
|
2598
|
-
...r
|
|
2599
|
-
}, i = {
|
|
2574
|
+
const Ao = lo, Po = uo, No = so, Io = (e, t, r) => {
|
|
2575
|
+
const n = /* @__PURE__ */ new Map(), o = r ?? {}, i = {
|
|
2576
|
+
...So,
|
|
2600
2577
|
...o.platform,
|
|
2601
2578
|
_c: n
|
|
2602
2579
|
};
|
|
2603
|
-
return
|
|
2580
|
+
return io(e, t, {
|
|
2604
2581
|
...o,
|
|
2605
2582
|
platform: i
|
|
2606
2583
|
});
|
|
2607
2584
|
};
|
|
2608
|
-
var
|
|
2609
|
-
},
|
|
2610
|
-
function
|
|
2585
|
+
var ko = typeof document < "u", Mo = function() {
|
|
2586
|
+
}, We = ko ? _n : Mo;
|
|
2587
|
+
function ze(e, t) {
|
|
2611
2588
|
if (e === t)
|
|
2612
2589
|
return !0;
|
|
2613
2590
|
if (typeof e != typeof t)
|
|
@@ -2619,7 +2596,7 @@ function Xe(e, t) {
|
|
|
2619
2596
|
if (Array.isArray(e)) {
|
|
2620
2597
|
if (r = e.length, r !== t.length) return !1;
|
|
2621
2598
|
for (n = r; n-- !== 0; )
|
|
2622
|
-
if (!
|
|
2599
|
+
if (!ze(e[n], t[n]))
|
|
2623
2600
|
return !1;
|
|
2624
2601
|
return !0;
|
|
2625
2602
|
}
|
|
@@ -2630,27 +2607,27 @@ function Xe(e, t) {
|
|
|
2630
2607
|
return !1;
|
|
2631
2608
|
for (n = r; n-- !== 0; ) {
|
|
2632
2609
|
const i = o[n];
|
|
2633
|
-
if (!(i === "_owner" && e.$$typeof) && !
|
|
2610
|
+
if (!(i === "_owner" && e.$$typeof) && !ze(e[i], t[i]))
|
|
2634
2611
|
return !1;
|
|
2635
2612
|
}
|
|
2636
2613
|
return !0;
|
|
2637
2614
|
}
|
|
2638
2615
|
return e !== e && t !== t;
|
|
2639
2616
|
}
|
|
2640
|
-
function
|
|
2617
|
+
function zn(e) {
|
|
2641
2618
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2642
2619
|
}
|
|
2643
|
-
function
|
|
2644
|
-
const r =
|
|
2620
|
+
function cn(e, t) {
|
|
2621
|
+
const r = zn(e);
|
|
2645
2622
|
return Math.round(t * r) / r;
|
|
2646
2623
|
}
|
|
2647
2624
|
function yt(e) {
|
|
2648
2625
|
const t = E.useRef(e);
|
|
2649
|
-
return
|
|
2626
|
+
return We(() => {
|
|
2650
2627
|
t.current = e;
|
|
2651
2628
|
}), t;
|
|
2652
2629
|
}
|
|
2653
|
-
function
|
|
2630
|
+
function Do(e) {
|
|
2654
2631
|
e === void 0 && (e = {});
|
|
2655
2632
|
const {
|
|
2656
2633
|
placement: t = "bottom",
|
|
@@ -2662,7 +2639,7 @@ function Lo(e) {
|
|
|
2662
2639
|
floating: s
|
|
2663
2640
|
} = {},
|
|
2664
2641
|
transform: a = !0,
|
|
2665
|
-
whileElementsMounted:
|
|
2642
|
+
whileElementsMounted: u,
|
|
2666
2643
|
open: c
|
|
2667
2644
|
} = e, [f, d] = E.useState({
|
|
2668
2645
|
x: 0,
|
|
@@ -2671,59 +2648,59 @@ function Lo(e) {
|
|
|
2671
2648
|
placement: t,
|
|
2672
2649
|
middlewareData: {},
|
|
2673
2650
|
isPositioned: !1
|
|
2674
|
-
}), [h,
|
|
2675
|
-
|
|
2676
|
-
const [v, p] = E.useState(null), [
|
|
2677
|
-
M !==
|
|
2678
|
-
}, []),
|
|
2679
|
-
M !==
|
|
2680
|
-
}, []),
|
|
2681
|
-
if (!
|
|
2651
|
+
}), [h, l] = E.useState(n);
|
|
2652
|
+
ze(h, n) || l(n);
|
|
2653
|
+
const [v, p] = E.useState(null), [T, A] = E.useState(null), I = E.useCallback((M) => {
|
|
2654
|
+
M !== k.current && (k.current = M, p(M));
|
|
2655
|
+
}, []), w = E.useCallback((M) => {
|
|
2656
|
+
M !== z.current && (z.current = M, A(M));
|
|
2657
|
+
}, []), _ = i || v, b = s || T, k = E.useRef(null), z = E.useRef(null), H = E.useRef(f), G = u != null, K = yt(u), Q = yt(o), V = yt(c), te = E.useCallback(() => {
|
|
2658
|
+
if (!k.current || !z.current)
|
|
2682
2659
|
return;
|
|
2683
2660
|
const M = {
|
|
2684
2661
|
placement: t,
|
|
2685
2662
|
strategy: r,
|
|
2686
2663
|
middleware: h
|
|
2687
2664
|
};
|
|
2688
|
-
|
|
2665
|
+
Q.current && (M.platform = Q.current), Io(k.current, z.current, M).then((R) => {
|
|
2689
2666
|
const m = {
|
|
2690
2667
|
...R,
|
|
2691
2668
|
// The floating element's position may be recomputed while it's closed
|
|
2692
2669
|
// but still mounted (such as when transitioning out). To ensure
|
|
2693
2670
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2694
2671
|
// setting it to `true` when `open === false` (must be specified).
|
|
2695
|
-
isPositioned:
|
|
2672
|
+
isPositioned: V.current !== !1
|
|
2696
2673
|
};
|
|
2697
|
-
|
|
2674
|
+
Z.current && !ze(H.current, m) && (H.current = m, nr.flushSync(() => {
|
|
2698
2675
|
d(m);
|
|
2699
2676
|
}));
|
|
2700
2677
|
});
|
|
2701
|
-
}, [h, t, r,
|
|
2702
|
-
|
|
2703
|
-
c === !1 &&
|
|
2678
|
+
}, [h, t, r, Q, V]);
|
|
2679
|
+
We(() => {
|
|
2680
|
+
c === !1 && H.current.isPositioned && (H.current.isPositioned = !1, d((M) => ({
|
|
2704
2681
|
...M,
|
|
2705
2682
|
isPositioned: !1
|
|
2706
2683
|
})));
|
|
2707
2684
|
}, [c]);
|
|
2708
|
-
const
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
}), []),
|
|
2712
|
-
if (
|
|
2713
|
-
if (
|
|
2714
|
-
return
|
|
2685
|
+
const Z = E.useRef(!1);
|
|
2686
|
+
We(() => (Z.current = !0, () => {
|
|
2687
|
+
Z.current = !1;
|
|
2688
|
+
}), []), We(() => {
|
|
2689
|
+
if (_ && (k.current = _), b && (z.current = b), _ && b) {
|
|
2690
|
+
if (K.current)
|
|
2691
|
+
return K.current(_, b, te);
|
|
2715
2692
|
te();
|
|
2716
2693
|
}
|
|
2717
|
-
}, [
|
|
2694
|
+
}, [_, b, te, K, G]);
|
|
2718
2695
|
const L = E.useMemo(() => ({
|
|
2719
|
-
reference:
|
|
2720
|
-
floating:
|
|
2721
|
-
setReference:
|
|
2722
|
-
setFloating:
|
|
2723
|
-
}), [
|
|
2724
|
-
reference:
|
|
2696
|
+
reference: k,
|
|
2697
|
+
floating: z,
|
|
2698
|
+
setReference: I,
|
|
2699
|
+
setFloating: w
|
|
2700
|
+
}), [I, w]), j = E.useMemo(() => ({
|
|
2701
|
+
reference: _,
|
|
2725
2702
|
floating: b
|
|
2726
|
-
}), [
|
|
2703
|
+
}), [_, b]), q = E.useMemo(() => {
|
|
2727
2704
|
const M = {
|
|
2728
2705
|
position: r,
|
|
2729
2706
|
left: 0,
|
|
@@ -2731,11 +2708,11 @@ function Lo(e) {
|
|
|
2731
2708
|
};
|
|
2732
2709
|
if (!j.floating)
|
|
2733
2710
|
return M;
|
|
2734
|
-
const R =
|
|
2711
|
+
const R = cn(j.floating, f.x), m = cn(j.floating, f.y);
|
|
2735
2712
|
return a ? {
|
|
2736
2713
|
...M,
|
|
2737
2714
|
transform: "translate(" + R + "px, " + m + "px)",
|
|
2738
|
-
...
|
|
2715
|
+
...zn(j.floating) >= 1.5 && {
|
|
2739
2716
|
willChange: "transform"
|
|
2740
2717
|
}
|
|
2741
2718
|
} : {
|
|
@@ -2749,39 +2726,39 @@ function Lo(e) {
|
|
|
2749
2726
|
update: te,
|
|
2750
2727
|
refs: L,
|
|
2751
2728
|
elements: j,
|
|
2752
|
-
floatingStyles:
|
|
2753
|
-
}), [f, te, L, j,
|
|
2729
|
+
floatingStyles: q
|
|
2730
|
+
}), [f, te, L, j, q]);
|
|
2754
2731
|
}
|
|
2755
|
-
const
|
|
2756
|
-
const r =
|
|
2732
|
+
const Lo = (e, t) => {
|
|
2733
|
+
const r = Ao(e);
|
|
2757
2734
|
return {
|
|
2758
2735
|
name: r.name,
|
|
2759
2736
|
fn: r.fn,
|
|
2760
2737
|
options: [e, t]
|
|
2761
2738
|
};
|
|
2762
|
-
},
|
|
2763
|
-
const r =
|
|
2739
|
+
}, Fo = (e, t) => {
|
|
2740
|
+
const r = Po(e);
|
|
2764
2741
|
return {
|
|
2765
2742
|
name: r.name,
|
|
2766
2743
|
fn: r.fn,
|
|
2767
2744
|
options: [e, t]
|
|
2768
2745
|
};
|
|
2769
|
-
},
|
|
2770
|
-
const r =
|
|
2746
|
+
}, $o = (e, t) => {
|
|
2747
|
+
const r = No(e);
|
|
2771
2748
|
return {
|
|
2772
2749
|
name: r.name,
|
|
2773
2750
|
fn: r.fn,
|
|
2774
2751
|
options: [e, t]
|
|
2775
2752
|
};
|
|
2776
|
-
},
|
|
2753
|
+
}, Xn = {
|
|
2777
2754
|
...E
|
|
2778
|
-
},
|
|
2779
|
-
function
|
|
2755
|
+
}, jo = Xn.useInsertionEffect, Wo = jo || ((e) => e());
|
|
2756
|
+
function pe(e) {
|
|
2780
2757
|
const t = E.useRef(() => {
|
|
2781
2758
|
if (process.env.NODE_ENV !== "production")
|
|
2782
2759
|
throw new Error("Cannot call an event handler while rendering.");
|
|
2783
2760
|
});
|
|
2784
|
-
return
|
|
2761
|
+
return Wo(() => {
|
|
2785
2762
|
t.current = e;
|
|
2786
2763
|
}), E.useCallback(function() {
|
|
2787
2764
|
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
|
|
@@ -2789,35 +2766,35 @@ function me(e) {
|
|
|
2789
2766
|
return t.current == null ? void 0 : t.current(...n);
|
|
2790
2767
|
}, []);
|
|
2791
2768
|
}
|
|
2792
|
-
var
|
|
2793
|
-
function
|
|
2794
|
-
return
|
|
2769
|
+
var ue = typeof document < "u" ? _n : je;
|
|
2770
|
+
function Xe() {
|
|
2771
|
+
return Xe = Object.assign ? Object.assign.bind() : function(e) {
|
|
2795
2772
|
for (var t = 1; t < arguments.length; t++) {
|
|
2796
2773
|
var r = arguments[t];
|
|
2797
2774
|
for (var n in r)
|
|
2798
2775
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2799
2776
|
}
|
|
2800
2777
|
return e;
|
|
2801
|
-
},
|
|
2778
|
+
}, Xe.apply(this, arguments);
|
|
2802
2779
|
}
|
|
2803
|
-
let
|
|
2804
|
-
const
|
|
2780
|
+
let ln = !1, Bo = 0;
|
|
2781
|
+
const un = () => (
|
|
2805
2782
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
2806
2783
|
// on <React 18
|
|
2807
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
2784
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Bo++
|
|
2808
2785
|
);
|
|
2809
2786
|
function Vo() {
|
|
2810
|
-
const [e, t] = E.useState(() =>
|
|
2811
|
-
return
|
|
2812
|
-
e == null && t(
|
|
2787
|
+
const [e, t] = E.useState(() => ln ? un() : void 0);
|
|
2788
|
+
return ue(() => {
|
|
2789
|
+
e == null && t(un());
|
|
2813
2790
|
}, []), E.useEffect(() => {
|
|
2814
|
-
|
|
2791
|
+
ln = !0;
|
|
2815
2792
|
}, []), e;
|
|
2816
2793
|
}
|
|
2817
|
-
const
|
|
2794
|
+
const qo = Xn.useId, Gn = qo || Vo;
|
|
2818
2795
|
let Nt;
|
|
2819
2796
|
process.env.NODE_ENV !== "production" && (Nt = /* @__PURE__ */ new Set());
|
|
2820
|
-
function
|
|
2797
|
+
function Yo() {
|
|
2821
2798
|
for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
2822
2799
|
r[n] = arguments[n];
|
|
2823
2800
|
const o = "Floating UI: " + r.join(" ");
|
|
@@ -2826,7 +2803,7 @@ function Uo() {
|
|
|
2826
2803
|
(i = Nt) == null || i.add(o), console.error(o);
|
|
2827
2804
|
}
|
|
2828
2805
|
}
|
|
2829
|
-
function
|
|
2806
|
+
function Uo() {
|
|
2830
2807
|
const e = /* @__PURE__ */ new Map();
|
|
2831
2808
|
return {
|
|
2832
2809
|
emit(t, r) {
|
|
@@ -2842,34 +2819,34 @@ function Ho() {
|
|
|
2842
2819
|
}
|
|
2843
2820
|
};
|
|
2844
2821
|
}
|
|
2845
|
-
const
|
|
2822
|
+
const Ho = /* @__PURE__ */ E.createContext(null), Ko = /* @__PURE__ */ E.createContext(null), Zn = () => {
|
|
2846
2823
|
var e;
|
|
2847
|
-
return ((e = E.useContext(
|
|
2848
|
-
}, jt = () => E.useContext(
|
|
2849
|
-
function
|
|
2824
|
+
return ((e = E.useContext(Ho)) == null ? void 0 : e.id) || null;
|
|
2825
|
+
}, jt = () => E.useContext(Ko);
|
|
2826
|
+
function Ge(e) {
|
|
2850
2827
|
return "data-floating-ui-" + e;
|
|
2851
2828
|
}
|
|
2852
2829
|
function gt(e) {
|
|
2853
2830
|
const t = Rt(e);
|
|
2854
|
-
return
|
|
2831
|
+
return ue(() => {
|
|
2855
2832
|
t.current = e;
|
|
2856
2833
|
}), t;
|
|
2857
2834
|
}
|
|
2858
|
-
let
|
|
2859
|
-
function
|
|
2835
|
+
let fn = 0;
|
|
2836
|
+
function Se(e, t) {
|
|
2860
2837
|
t === void 0 && (t = {});
|
|
2861
2838
|
const {
|
|
2862
2839
|
preventScroll: r = !1,
|
|
2863
2840
|
cancelPrevious: n = !0,
|
|
2864
2841
|
sync: o = !1
|
|
2865
2842
|
} = t;
|
|
2866
|
-
n && cancelAnimationFrame(
|
|
2843
|
+
n && cancelAnimationFrame(fn);
|
|
2867
2844
|
const i = () => e == null ? void 0 : e.focus({
|
|
2868
2845
|
preventScroll: r
|
|
2869
2846
|
});
|
|
2870
|
-
o ? i() :
|
|
2847
|
+
o ? i() : fn = requestAnimationFrame(i);
|
|
2871
2848
|
}
|
|
2872
|
-
function
|
|
2849
|
+
function zo(e, t) {
|
|
2873
2850
|
var r;
|
|
2874
2851
|
let n = [], o = (r = e.find((i) => i.id === t)) == null ? void 0 : r.parentId;
|
|
2875
2852
|
for (; o; ) {
|
|
@@ -2893,45 +2870,45 @@ function Ne(e, t) {
|
|
|
2893
2870
|
}), r = r.concat(n);
|
|
2894
2871
|
return r;
|
|
2895
2872
|
}
|
|
2896
|
-
let
|
|
2897
|
-
const
|
|
2873
|
+
let _e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakSet(), $e = {}, wt = 0;
|
|
2874
|
+
const Xo = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, Jn = (e) => e && (e.host || Jn(e.parentNode)), Go = (e, t) => t.map((r) => {
|
|
2898
2875
|
if (e.contains(r))
|
|
2899
2876
|
return r;
|
|
2900
|
-
const n =
|
|
2877
|
+
const n = Jn(r);
|
|
2901
2878
|
return e.contains(n) ? n : null;
|
|
2902
2879
|
}).filter((r) => r != null);
|
|
2903
|
-
function
|
|
2904
|
-
const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s =
|
|
2905
|
-
|
|
2906
|
-
const f =
|
|
2880
|
+
function Zo(e, t, r, n) {
|
|
2881
|
+
const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Go(t, e), a = /* @__PURE__ */ new Set(), u = new Set(s), c = [];
|
|
2882
|
+
$e[o] || ($e[o] = /* @__PURE__ */ new WeakMap());
|
|
2883
|
+
const f = $e[o];
|
|
2907
2884
|
s.forEach(d), h(t), a.clear();
|
|
2908
|
-
function d(
|
|
2909
|
-
!
|
|
2885
|
+
function d(l) {
|
|
2886
|
+
!l || a.has(l) || (a.add(l), l.parentNode && d(l.parentNode));
|
|
2910
2887
|
}
|
|
2911
|
-
function h(
|
|
2912
|
-
!
|
|
2913
|
-
if (
|
|
2888
|
+
function h(l) {
|
|
2889
|
+
!l || u.has(l) || [].forEach.call(l.children, (v) => {
|
|
2890
|
+
if (be(v) !== "script")
|
|
2914
2891
|
if (a.has(v))
|
|
2915
2892
|
h(v);
|
|
2916
2893
|
else {
|
|
2917
|
-
const p = i ? v.getAttribute(i) : null,
|
|
2918
|
-
|
|
2894
|
+
const p = i ? v.getAttribute(i) : null, T = p !== null && p !== "false", A = (_e.get(v) || 0) + 1, I = (f.get(v) || 0) + 1;
|
|
2895
|
+
_e.set(v, A), f.set(v, I), c.push(v), A === 1 && T && Fe.add(v), I === 1 && v.setAttribute(o, ""), !T && i && v.setAttribute(i, "true");
|
|
2919
2896
|
}
|
|
2920
2897
|
});
|
|
2921
2898
|
}
|
|
2922
2899
|
return wt++, () => {
|
|
2923
|
-
c.forEach((
|
|
2924
|
-
const v = (
|
|
2925
|
-
|
|
2926
|
-
}), wt--, wt || (
|
|
2900
|
+
c.forEach((l) => {
|
|
2901
|
+
const v = (_e.get(l) || 0) - 1, p = (f.get(l) || 0) - 1;
|
|
2902
|
+
_e.set(l, v), f.set(l, p), v || (!Fe.has(l) && i && l.removeAttribute(i), Fe.delete(l)), p || l.removeAttribute(o);
|
|
2903
|
+
}), wt--, wt || (_e = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakSet(), $e = {});
|
|
2927
2904
|
};
|
|
2928
2905
|
}
|
|
2929
|
-
function
|
|
2906
|
+
function dn(e, t, r) {
|
|
2930
2907
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2931
|
-
const n =
|
|
2932
|
-
return
|
|
2908
|
+
const n = ae(e[0]).body;
|
|
2909
|
+
return Zo(e.concat(Array.from(n.querySelectorAll("[aria-live]"))), n, t, r);
|
|
2933
2910
|
}
|
|
2934
|
-
const
|
|
2911
|
+
const Ze = () => ({
|
|
2935
2912
|
getShadowRoot: !0,
|
|
2936
2913
|
displayCheck: (
|
|
2937
2914
|
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
@@ -2940,21 +2917,21 @@ const Je = () => ({
|
|
|
2940
2917
|
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2941
2918
|
)
|
|
2942
2919
|
});
|
|
2943
|
-
function
|
|
2944
|
-
const r = Ft(e,
|
|
2920
|
+
function Qn(e, t) {
|
|
2921
|
+
const r = Ft(e, Ze());
|
|
2945
2922
|
t === "prev" && r.reverse();
|
|
2946
|
-
const n = r.indexOf(
|
|
2923
|
+
const n = r.indexOf(ge(ae(e)));
|
|
2947
2924
|
return r.slice(n + 1)[0];
|
|
2948
2925
|
}
|
|
2949
|
-
function
|
|
2950
|
-
return
|
|
2926
|
+
function Jo() {
|
|
2927
|
+
return Qn(document.body, "next");
|
|
2951
2928
|
}
|
|
2952
|
-
function
|
|
2953
|
-
return
|
|
2929
|
+
function Qo() {
|
|
2930
|
+
return Qn(document.body, "prev");
|
|
2954
2931
|
}
|
|
2955
|
-
function
|
|
2932
|
+
function pn(e, t) {
|
|
2956
2933
|
const r = t || e.currentTarget, n = e.relatedTarget;
|
|
2957
|
-
return !n || !
|
|
2934
|
+
return !n || !ie(r, n);
|
|
2958
2935
|
}
|
|
2959
2936
|
const Wt = {
|
|
2960
2937
|
border: 0,
|
|
@@ -2969,14 +2946,14 @@ const Wt = {
|
|
|
2969
2946
|
top: 0,
|
|
2970
2947
|
left: 0
|
|
2971
2948
|
};
|
|
2972
|
-
let
|
|
2973
|
-
function
|
|
2974
|
-
e.key === "Tab" && (e.target, clearTimeout(
|
|
2949
|
+
let ei;
|
|
2950
|
+
function mn(e) {
|
|
2951
|
+
e.key === "Tab" && (e.target, clearTimeout(ei));
|
|
2975
2952
|
}
|
|
2976
|
-
const
|
|
2953
|
+
const hn = /* @__PURE__ */ E.forwardRef(function(t, r) {
|
|
2977
2954
|
const [n, o] = E.useState();
|
|
2978
|
-
|
|
2979
|
-
document.removeEventListener("keydown",
|
|
2955
|
+
ue(() => (Tr() && o("button"), document.addEventListener("keydown", mn), () => {
|
|
2956
|
+
document.removeEventListener("keydown", mn);
|
|
2980
2957
|
}), []);
|
|
2981
2958
|
const i = {
|
|
2982
2959
|
ref: r,
|
|
@@ -2984,39 +2961,39 @@ const bn = /* @__PURE__ */ E.forwardRef(function(t, r) {
|
|
|
2984
2961
|
// Role is only for VoiceOver
|
|
2985
2962
|
role: n,
|
|
2986
2963
|
"aria-hidden": n ? void 0 : !0,
|
|
2987
|
-
[
|
|
2964
|
+
[Ge("focus-guard")]: "",
|
|
2988
2965
|
style: Wt
|
|
2989
2966
|
};
|
|
2990
|
-
return /* @__PURE__ */ E.createElement("span",
|
|
2991
|
-
}),
|
|
2992
|
-
function
|
|
2993
|
-
return e ? e.hasAttribute(
|
|
2967
|
+
return /* @__PURE__ */ E.createElement("span", Xe({}, t, i));
|
|
2968
|
+
}), ti = /* @__PURE__ */ E.createContext(null), ni = () => E.useContext(ti), It = "data-floating-ui-focusable";
|
|
2969
|
+
function ri(e) {
|
|
2970
|
+
return e ? e.hasAttribute(It) ? e : e.querySelector("[" + It + "]") || e : null;
|
|
2994
2971
|
}
|
|
2995
|
-
const
|
|
2996
|
-
let
|
|
2972
|
+
const vn = 20;
|
|
2973
|
+
let we = [];
|
|
2997
2974
|
function xt(e) {
|
|
2998
|
-
|
|
2975
|
+
we = we.filter((r) => r.isConnected);
|
|
2999
2976
|
let t = e;
|
|
3000
|
-
if (!(!t ||
|
|
3001
|
-
if (!
|
|
3002
|
-
const r = Ft(t,
|
|
2977
|
+
if (!(!t || be(t) === "body")) {
|
|
2978
|
+
if (!no(t, Ze())) {
|
|
2979
|
+
const r = Ft(t, Ze())[0];
|
|
3003
2980
|
r && (t = r);
|
|
3004
2981
|
}
|
|
3005
|
-
|
|
2982
|
+
we.push(t), we.length > vn && (we = we.slice(-vn));
|
|
3006
2983
|
}
|
|
3007
2984
|
}
|
|
3008
|
-
function
|
|
3009
|
-
return
|
|
2985
|
+
function bn() {
|
|
2986
|
+
return we.slice().reverse().find((e) => e.isConnected);
|
|
3010
2987
|
}
|
|
3011
|
-
const
|
|
3012
|
-
return /* @__PURE__ */ E.createElement("button",
|
|
2988
|
+
const oi = /* @__PURE__ */ E.forwardRef(function(t, r) {
|
|
2989
|
+
return /* @__PURE__ */ E.createElement("button", Xe({}, t, {
|
|
3013
2990
|
type: "button",
|
|
3014
2991
|
ref: r,
|
|
3015
2992
|
tabIndex: -1,
|
|
3016
2993
|
style: Wt
|
|
3017
2994
|
}));
|
|
3018
2995
|
});
|
|
3019
|
-
function
|
|
2996
|
+
function ii(e) {
|
|
3020
2997
|
const {
|
|
3021
2998
|
context: t,
|
|
3022
2999
|
children: r,
|
|
@@ -3025,161 +3002,161 @@ function si(e) {
|
|
|
3025
3002
|
guards: i = !0,
|
|
3026
3003
|
initialFocus: s = 0,
|
|
3027
3004
|
returnFocus: a = !0,
|
|
3028
|
-
restoreFocus:
|
|
3005
|
+
restoreFocus: u = !1,
|
|
3029
3006
|
modal: c = !0,
|
|
3030
3007
|
visuallyHiddenDismiss: f = !1,
|
|
3031
3008
|
closeOnFocusOut: d = !0
|
|
3032
3009
|
} = e, {
|
|
3033
3010
|
open: h,
|
|
3034
|
-
refs:
|
|
3011
|
+
refs: l,
|
|
3035
3012
|
nodeId: v,
|
|
3036
3013
|
onOpenChange: p,
|
|
3037
|
-
events:
|
|
3014
|
+
events: T,
|
|
3038
3015
|
dataRef: A,
|
|
3039
|
-
floatingId:
|
|
3016
|
+
floatingId: I,
|
|
3040
3017
|
elements: {
|
|
3041
|
-
domReference:
|
|
3042
|
-
floating:
|
|
3043
|
-
}
|
|
3044
|
-
} = t, b = typeof s == "number" && s < 0,
|
|
3045
|
-
return
|
|
3046
|
-
}), x =
|
|
3047
|
-
const P = m(
|
|
3048
|
-
return
|
|
3018
|
+
domReference: w,
|
|
3019
|
+
floating: _
|
|
3020
|
+
}
|
|
3021
|
+
} = t, b = typeof s == "number" && s < 0, k = Ar(w) && b, z = Xo() ? i : !0, H = gt(o), G = gt(s), K = gt(a), Q = jt(), V = ni(), te = E.useRef(null), Z = E.useRef(null), L = E.useRef(!1), j = E.useRef(!1), q = E.useRef(-1), M = V != null, R = ri(_), m = pe(function(C) {
|
|
3022
|
+
return C === void 0 && (C = R), C ? Ft(C, Ze()) : [];
|
|
3023
|
+
}), x = pe((C) => {
|
|
3024
|
+
const P = m(C);
|
|
3025
|
+
return H.current.map((y) => w && y === "reference" ? w : R && y === "floating" ? R : P).filter(Boolean).flat();
|
|
3049
3026
|
});
|
|
3050
3027
|
E.useEffect(() => {
|
|
3051
3028
|
if (n || !c) return;
|
|
3052
|
-
function
|
|
3053
|
-
if (
|
|
3054
|
-
|
|
3055
|
-
const
|
|
3056
|
-
|
|
3029
|
+
function C(y) {
|
|
3030
|
+
if (y.key === "Tab") {
|
|
3031
|
+
ie(R, ge(ae(R))) && m().length === 0 && !k && vt(y);
|
|
3032
|
+
const O = x(), N = xe(y);
|
|
3033
|
+
H.current[0] === "reference" && N === w && (vt(y), y.shiftKey ? Se(O[O.length - 1]) : Se(O[1])), H.current[1] === "floating" && N === R && y.shiftKey && (vt(y), Se(O[0]));
|
|
3057
3034
|
}
|
|
3058
3035
|
}
|
|
3059
|
-
const P =
|
|
3060
|
-
return P.addEventListener("keydown",
|
|
3061
|
-
P.removeEventListener("keydown",
|
|
3036
|
+
const P = ae(R);
|
|
3037
|
+
return P.addEventListener("keydown", C), () => {
|
|
3038
|
+
P.removeEventListener("keydown", C);
|
|
3062
3039
|
};
|
|
3063
|
-
}, [n,
|
|
3064
|
-
if (n || !
|
|
3065
|
-
function
|
|
3066
|
-
const
|
|
3067
|
-
N !== -1 && (
|
|
3068
|
-
}
|
|
3069
|
-
return
|
|
3070
|
-
|
|
3040
|
+
}, [n, w, R, c, H, k, m, x]), E.useEffect(() => {
|
|
3041
|
+
if (n || !_) return;
|
|
3042
|
+
function C(P) {
|
|
3043
|
+
const y = xe(P), N = m().indexOf(y);
|
|
3044
|
+
N !== -1 && (q.current = N);
|
|
3045
|
+
}
|
|
3046
|
+
return _.addEventListener("focusin", C), () => {
|
|
3047
|
+
_.removeEventListener("focusin", C);
|
|
3071
3048
|
};
|
|
3072
|
-
}, [n,
|
|
3049
|
+
}, [n, _, m]), E.useEffect(() => {
|
|
3073
3050
|
if (n || !d) return;
|
|
3074
|
-
function
|
|
3051
|
+
function C() {
|
|
3075
3052
|
j.current = !0, setTimeout(() => {
|
|
3076
3053
|
j.current = !1;
|
|
3077
3054
|
});
|
|
3078
3055
|
}
|
|
3079
|
-
function P(
|
|
3080
|
-
const
|
|
3056
|
+
function P(y) {
|
|
3057
|
+
const O = y.relatedTarget;
|
|
3081
3058
|
queueMicrotask(() => {
|
|
3082
|
-
const N = !(
|
|
3083
|
-
var D,
|
|
3084
|
-
return
|
|
3085
|
-
}) ||
|
|
3086
|
-
var D,
|
|
3087
|
-
return ((D = $.context) == null ? void 0 : D.elements.floating) ===
|
|
3059
|
+
const N = !(ie(w, O) || ie(_, O) || ie(O, _) || ie(V == null ? void 0 : V.portalNode, O) || O != null && O.hasAttribute(Ge("focus-guard")) || Q && (Ne(Q.nodesRef.current, v).find(($) => {
|
|
3060
|
+
var D, J;
|
|
3061
|
+
return ie((D = $.context) == null ? void 0 : D.elements.floating, O) || ie((J = $.context) == null ? void 0 : J.elements.domReference, O);
|
|
3062
|
+
}) || zo(Q.nodesRef.current, v).find(($) => {
|
|
3063
|
+
var D, J;
|
|
3064
|
+
return ((D = $.context) == null ? void 0 : D.elements.floating) === O || ((J = $.context) == null ? void 0 : J.elements.domReference) === O;
|
|
3088
3065
|
})));
|
|
3089
|
-
if (
|
|
3066
|
+
if (u && N && ge(ae(R)) === ae(R).body) {
|
|
3090
3067
|
ne(R) && R.focus();
|
|
3091
|
-
const $ =
|
|
3092
|
-
ne(
|
|
3068
|
+
const $ = q.current, D = m(), J = D[$] || D[D.length - 1] || R;
|
|
3069
|
+
ne(J) && J.focus();
|
|
3093
3070
|
}
|
|
3094
|
-
(
|
|
3095
|
-
|
|
3071
|
+
(k || !c) && O && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
3072
|
+
O !== bn() && (L.current = !0, p(!1, y, "focus-out"));
|
|
3096
3073
|
});
|
|
3097
3074
|
}
|
|
3098
|
-
if (
|
|
3099
|
-
return
|
|
3100
|
-
|
|
3075
|
+
if (_ && ne(w))
|
|
3076
|
+
return w.addEventListener("focusout", P), w.addEventListener("pointerdown", C), _.addEventListener("focusout", P), () => {
|
|
3077
|
+
w.removeEventListener("focusout", P), w.removeEventListener("pointerdown", C), _.removeEventListener("focusout", P);
|
|
3101
3078
|
};
|
|
3102
|
-
}, [n,
|
|
3103
|
-
var
|
|
3079
|
+
}, [n, w, _, R, c, v, Q, V, p, d, u, m, k]), E.useEffect(() => {
|
|
3080
|
+
var C;
|
|
3104
3081
|
if (n) return;
|
|
3105
|
-
const P = Array.from((
|
|
3106
|
-
if (
|
|
3107
|
-
const
|
|
3082
|
+
const P = Array.from((V == null || (C = V.portalNode) == null ? void 0 : C.querySelectorAll("[" + Ge("portal") + "]")) || []);
|
|
3083
|
+
if (_) {
|
|
3084
|
+
const y = [_, ...P, te.current, Z.current, H.current.includes("reference") || k ? w : null].filter((N) => N != null), O = c || k ? dn(y, z, !z) : dn(y);
|
|
3108
3085
|
return () => {
|
|
3109
|
-
|
|
3086
|
+
O();
|
|
3110
3087
|
};
|
|
3111
3088
|
}
|
|
3112
|
-
}, [n,
|
|
3089
|
+
}, [n, w, _, c, H, V, k, z]), ue(() => {
|
|
3113
3090
|
if (n || !ne(R)) return;
|
|
3114
|
-
const
|
|
3091
|
+
const C = ae(R), P = ge(C);
|
|
3115
3092
|
queueMicrotask(() => {
|
|
3116
|
-
const
|
|
3117
|
-
!b && !$ && h &&
|
|
3093
|
+
const y = x(R), O = G.current, N = (typeof O == "number" ? y[O] : O.current) || R, $ = ie(R, P);
|
|
3094
|
+
!b && !$ && h && Se(N, {
|
|
3118
3095
|
preventScroll: N === R
|
|
3119
3096
|
});
|
|
3120
3097
|
});
|
|
3121
|
-
}, [n, h, R, b, x,
|
|
3098
|
+
}, [n, h, R, b, x, G]), ue(() => {
|
|
3122
3099
|
if (n || !R) return;
|
|
3123
|
-
let
|
|
3124
|
-
const P =
|
|
3100
|
+
let C = !1;
|
|
3101
|
+
const P = ae(R), y = ge(P);
|
|
3125
3102
|
let N = A.current.openEvent;
|
|
3126
|
-
xt(
|
|
3127
|
-
function $(
|
|
3103
|
+
xt(y);
|
|
3104
|
+
function $(S) {
|
|
3128
3105
|
let {
|
|
3129
3106
|
open: re,
|
|
3130
|
-
reason:
|
|
3131
|
-
event:
|
|
3107
|
+
reason: le,
|
|
3108
|
+
event: se,
|
|
3132
3109
|
nested: st
|
|
3133
|
-
} =
|
|
3134
|
-
re && (N =
|
|
3110
|
+
} = S;
|
|
3111
|
+
re && (N = se), le === "escape-key" && l.domReference.current && xt(l.domReference.current), le === "hover" && se.type === "mouseleave" && (L.current = !0), le === "outside-press" && (st ? (L.current = !1, C = !0) : L.current = !(Er(se) || Rr(se)));
|
|
3135
3112
|
}
|
|
3136
|
-
|
|
3113
|
+
T.on("openchange", $);
|
|
3137
3114
|
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
|
|
3115
|
+
D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && w && w.insertAdjacentElement("afterend", D);
|
|
3116
|
+
function J() {
|
|
3117
|
+
return typeof K.current == "boolean" ? bn() || D : K.current.current || D;
|
|
3141
3118
|
}
|
|
3142
3119
|
return () => {
|
|
3143
|
-
|
|
3144
|
-
const
|
|
3145
|
-
var
|
|
3146
|
-
return
|
|
3120
|
+
T.off("openchange", $);
|
|
3121
|
+
const S = ge(P), re = ie(_, S) || Q && Ne(Q.nodesRef.current, v).some((st) => {
|
|
3122
|
+
var Vt;
|
|
3123
|
+
return ie((Vt = st.context) == null ? void 0 : Vt.elements.floating, S);
|
|
3147
3124
|
});
|
|
3148
|
-
(re || N && ["click", "mousedown"].includes(N.type)) &&
|
|
3149
|
-
const
|
|
3125
|
+
(re || N && ["click", "mousedown"].includes(N.type)) && l.domReference.current && xt(l.domReference.current);
|
|
3126
|
+
const se = J();
|
|
3150
3127
|
queueMicrotask(() => {
|
|
3151
3128
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3152
|
-
|
|
3129
|
+
K.current && !L.current && ne(se) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
3153
3130
|
// since it likely entered a different element which should be
|
|
3154
3131
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
3155
|
-
(!(
|
|
3156
|
-
preventScroll:
|
|
3132
|
+
(!(se !== S && S !== P.body) || re) && se.focus({
|
|
3133
|
+
preventScroll: C
|
|
3157
3134
|
}), D.remove();
|
|
3158
3135
|
});
|
|
3159
3136
|
};
|
|
3160
|
-
}, [n,
|
|
3137
|
+
}, [n, _, R, K, A, l, T, Q, v, M, w]), E.useEffect(() => {
|
|
3161
3138
|
queueMicrotask(() => {
|
|
3162
3139
|
L.current = !1;
|
|
3163
3140
|
});
|
|
3164
|
-
}, [n]),
|
|
3165
|
-
if (!n &&
|
|
3166
|
-
return
|
|
3141
|
+
}, [n]), ue(() => {
|
|
3142
|
+
if (!n && V)
|
|
3143
|
+
return V.setFocusManagerState({
|
|
3167
3144
|
modal: c,
|
|
3168
3145
|
closeOnFocusOut: d,
|
|
3169
3146
|
open: h,
|
|
3170
3147
|
onOpenChange: p,
|
|
3171
|
-
refs:
|
|
3148
|
+
refs: l
|
|
3172
3149
|
}), () => {
|
|
3173
|
-
|
|
3150
|
+
V.setFocusManagerState(null);
|
|
3174
3151
|
};
|
|
3175
|
-
}, [n,
|
|
3152
|
+
}, [n, V, c, h, p, l, d]), ue(() => {
|
|
3176
3153
|
if (n || !R || typeof MutationObserver != "function" || b) return;
|
|
3177
|
-
const
|
|
3178
|
-
const
|
|
3179
|
-
$ !== -1 && (
|
|
3154
|
+
const C = () => {
|
|
3155
|
+
const y = R.getAttribute("tabindex"), O = m(), N = ge(ae(_)), $ = O.indexOf(N);
|
|
3156
|
+
$ !== -1 && (q.current = $), H.current.includes("floating") || N !== l.domReference.current && O.length === 0 ? y !== "0" && R.setAttribute("tabindex", "0") : y !== "-1" && R.setAttribute("tabindex", "-1");
|
|
3180
3157
|
};
|
|
3181
|
-
|
|
3182
|
-
const P = new MutationObserver(
|
|
3158
|
+
C();
|
|
3159
|
+
const P = new MutationObserver(C);
|
|
3183
3160
|
return P.observe(R, {
|
|
3184
3161
|
childList: !0,
|
|
3185
3162
|
subtree: !0,
|
|
@@ -3187,54 +3164,54 @@ function si(e) {
|
|
|
3187
3164
|
}), () => {
|
|
3188
3165
|
P.disconnect();
|
|
3189
3166
|
};
|
|
3190
|
-
}, [n,
|
|
3191
|
-
function F(
|
|
3192
|
-
return n || !f || !c ? null : /* @__PURE__ */ E.createElement(
|
|
3193
|
-
ref:
|
|
3167
|
+
}, [n, _, R, l, H, m, b]);
|
|
3168
|
+
function F(C) {
|
|
3169
|
+
return n || !f || !c ? null : /* @__PURE__ */ E.createElement(oi, {
|
|
3170
|
+
ref: C === "start" ? te : Z,
|
|
3194
3171
|
onClick: (P) => p(!1, P.nativeEvent)
|
|
3195
3172
|
}, typeof f == "string" ? f : "Dismiss");
|
|
3196
3173
|
}
|
|
3197
|
-
const W = !n &&
|
|
3198
|
-
return /* @__PURE__ */ E.createElement(E.Fragment, null, W && /* @__PURE__ */ E.createElement(
|
|
3174
|
+
const W = !n && z && (c ? !k : !0) && (M || c);
|
|
3175
|
+
return /* @__PURE__ */ E.createElement(E.Fragment, null, W && /* @__PURE__ */ E.createElement(hn, {
|
|
3199
3176
|
"data-type": "inside",
|
|
3200
|
-
ref:
|
|
3201
|
-
onFocus: (
|
|
3177
|
+
ref: V == null ? void 0 : V.beforeInsideRef,
|
|
3178
|
+
onFocus: (C) => {
|
|
3202
3179
|
if (c) {
|
|
3203
|
-
const
|
|
3204
|
-
|
|
3205
|
-
} else if (
|
|
3206
|
-
if (L.current = !1,
|
|
3207
|
-
const
|
|
3208
|
-
|
|
3180
|
+
const y = x();
|
|
3181
|
+
Se(o[0] === "reference" ? y[0] : y[y.length - 1]);
|
|
3182
|
+
} else if (V != null && V.preserveTabOrder && V.portalNode)
|
|
3183
|
+
if (L.current = !1, pn(C, V.portalNode)) {
|
|
3184
|
+
const y = Jo() || w;
|
|
3185
|
+
y == null || y.focus();
|
|
3209
3186
|
} else {
|
|
3210
3187
|
var P;
|
|
3211
|
-
(P =
|
|
3188
|
+
(P = V.beforeOutsideRef.current) == null || P.focus();
|
|
3212
3189
|
}
|
|
3213
3190
|
}
|
|
3214
|
-
}), !
|
|
3191
|
+
}), !k && F("start"), r, F("end"), W && /* @__PURE__ */ E.createElement(hn, {
|
|
3215
3192
|
"data-type": "inside",
|
|
3216
|
-
ref:
|
|
3217
|
-
onFocus: (
|
|
3193
|
+
ref: V == null ? void 0 : V.afterInsideRef,
|
|
3194
|
+
onFocus: (C) => {
|
|
3218
3195
|
if (c)
|
|
3219
|
-
|
|
3220
|
-
else if (
|
|
3221
|
-
if (d && (L.current = !0),
|
|
3222
|
-
const
|
|
3223
|
-
|
|
3196
|
+
Se(x()[0]);
|
|
3197
|
+
else if (V != null && V.preserveTabOrder && V.portalNode)
|
|
3198
|
+
if (d && (L.current = !0), pn(C, V.portalNode)) {
|
|
3199
|
+
const y = Qo() || w;
|
|
3200
|
+
y == null || y.focus();
|
|
3224
3201
|
} else {
|
|
3225
3202
|
var P;
|
|
3226
|
-
(P =
|
|
3203
|
+
(P = V.afterOutsideRef.current) == null || P.focus();
|
|
3227
3204
|
}
|
|
3228
3205
|
}
|
|
3229
3206
|
}));
|
|
3230
3207
|
}
|
|
3231
|
-
function
|
|
3208
|
+
function yn(e) {
|
|
3232
3209
|
return ne(e.target) && e.target.tagName === "BUTTON";
|
|
3233
3210
|
}
|
|
3234
|
-
function
|
|
3235
|
-
return
|
|
3211
|
+
function gn(e) {
|
|
3212
|
+
return Mn(e);
|
|
3236
3213
|
}
|
|
3237
|
-
function
|
|
3214
|
+
function si(e, t) {
|
|
3238
3215
|
t === void 0 && (t = {});
|
|
3239
3216
|
const {
|
|
3240
3217
|
open: r,
|
|
@@ -3246,53 +3223,53 @@ function ai(e, t) {
|
|
|
3246
3223
|
} = e, {
|
|
3247
3224
|
enabled: s = !0,
|
|
3248
3225
|
event: a = "click",
|
|
3249
|
-
toggle:
|
|
3226
|
+
toggle: u = !0,
|
|
3250
3227
|
ignoreMouse: c = !1,
|
|
3251
3228
|
keyboardHandlers: f = !0,
|
|
3252
3229
|
stickIfOpen: d = !0
|
|
3253
|
-
} = t, h = E.useRef(),
|
|
3230
|
+
} = t, h = E.useRef(), l = E.useRef(!1), v = E.useMemo(() => ({
|
|
3254
3231
|
onPointerDown(p) {
|
|
3255
3232
|
h.current = p.pointerType;
|
|
3256
3233
|
},
|
|
3257
3234
|
onMouseDown(p) {
|
|
3258
|
-
const
|
|
3259
|
-
p.button === 0 && a !== "click" && (en(
|
|
3235
|
+
const T = h.current;
|
|
3236
|
+
p.button === 0 && a !== "click" && (en(T) && 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
3237
|
},
|
|
3261
3238
|
onClick(p) {
|
|
3262
|
-
const
|
|
3239
|
+
const T = h.current;
|
|
3263
3240
|
if (a === "mousedown" && h.current) {
|
|
3264
3241
|
h.current = void 0;
|
|
3265
3242
|
return;
|
|
3266
3243
|
}
|
|
3267
|
-
en(
|
|
3244
|
+
en(T) && c || (r && u && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
|
|
3268
3245
|
},
|
|
3269
3246
|
onKeyDown(p) {
|
|
3270
|
-
h.current = void 0, !(p.defaultPrevented || !f ||
|
|
3247
|
+
h.current = void 0, !(p.defaultPrevented || !f || yn(p)) && (p.key === " " && !gn(i) && (p.preventDefault(), l.current = !0), p.key === "Enter" && n(!(r && u), p.nativeEvent, "click"));
|
|
3271
3248
|
},
|
|
3272
3249
|
onKeyUp(p) {
|
|
3273
|
-
p.defaultPrevented || !f ||
|
|
3250
|
+
p.defaultPrevented || !f || yn(p) || gn(i) || p.key === " " && l.current && (l.current = !1, n(!(r && u), p.nativeEvent, "click"));
|
|
3274
3251
|
}
|
|
3275
|
-
}), [o, i, a, c, f, n, r, d,
|
|
3252
|
+
}), [o, i, a, c, f, n, r, d, u]);
|
|
3276
3253
|
return E.useMemo(() => s ? {
|
|
3277
3254
|
reference: v
|
|
3278
3255
|
} : {}, [s, v]);
|
|
3279
3256
|
}
|
|
3280
|
-
const
|
|
3257
|
+
const ai = {
|
|
3281
3258
|
pointerdown: "onPointerDown",
|
|
3282
3259
|
mousedown: "onMouseDown",
|
|
3283
3260
|
click: "onClick"
|
|
3284
|
-
},
|
|
3261
|
+
}, ci = {
|
|
3285
3262
|
pointerdown: "onPointerDownCapture",
|
|
3286
3263
|
mousedown: "onMouseDownCapture",
|
|
3287
3264
|
click: "onClickCapture"
|
|
3288
|
-
},
|
|
3265
|
+
}, wn = (e) => {
|
|
3289
3266
|
var t, r;
|
|
3290
3267
|
return {
|
|
3291
3268
|
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
3292
3269
|
outsidePress: typeof e == "boolean" ? e : (r = e == null ? void 0 : e.outsidePress) != null ? r : !0
|
|
3293
3270
|
};
|
|
3294
3271
|
};
|
|
3295
|
-
function
|
|
3272
|
+
function li(e, t) {
|
|
3296
3273
|
t === void 0 && (t = {});
|
|
3297
3274
|
const {
|
|
3298
3275
|
open: r,
|
|
@@ -3302,25 +3279,25 @@ function ui(e, t) {
|
|
|
3302
3279
|
} = e, {
|
|
3303
3280
|
enabled: s = !0,
|
|
3304
3281
|
escapeKey: a = !0,
|
|
3305
|
-
outsidePress:
|
|
3282
|
+
outsidePress: u = !0,
|
|
3306
3283
|
outsidePressEvent: c = "pointerdown",
|
|
3307
3284
|
referencePress: f = !1,
|
|
3308
3285
|
referencePressEvent: d = "pointerdown",
|
|
3309
3286
|
ancestorScroll: h = !1,
|
|
3310
|
-
bubbles:
|
|
3287
|
+
bubbles: l,
|
|
3311
3288
|
capture: v
|
|
3312
|
-
} = t, p = jt(),
|
|
3313
|
-
escapeKey:
|
|
3289
|
+
} = t, p = jt(), T = pe(typeof u == "function" ? u : () => !1), A = typeof u == "function" ? T : u, I = E.useRef(!1), w = E.useRef(!1), {
|
|
3290
|
+
escapeKey: _,
|
|
3314
3291
|
outsidePress: b
|
|
3315
|
-
} =
|
|
3316
|
-
escapeKey:
|
|
3317
|
-
outsidePress:
|
|
3318
|
-
} =
|
|
3292
|
+
} = wn(l), {
|
|
3293
|
+
escapeKey: k,
|
|
3294
|
+
outsidePress: z
|
|
3295
|
+
} = wn(v), H = E.useRef(!1), G = pe((L) => {
|
|
3319
3296
|
var j;
|
|
3320
|
-
if (!r || !s || !a || L.key !== "Escape" ||
|
|
3297
|
+
if (!r || !s || !a || L.key !== "Escape" || H.current)
|
|
3321
3298
|
return;
|
|
3322
|
-
const
|
|
3323
|
-
if (!
|
|
3299
|
+
const q = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, q) : [];
|
|
3300
|
+
if (!_ && (L.stopPropagation(), M.length > 0)) {
|
|
3324
3301
|
let R = !0;
|
|
3325
3302
|
if (M.forEach((m) => {
|
|
3326
3303
|
var x;
|
|
@@ -3331,92 +3308,92 @@ function ui(e, t) {
|
|
|
3331
3308
|
}), !R)
|
|
3332
3309
|
return;
|
|
3333
3310
|
}
|
|
3334
|
-
n(!1,
|
|
3335
|
-
}),
|
|
3311
|
+
n(!1, Sr(L) ? L.nativeEvent : L, "escape-key");
|
|
3312
|
+
}), K = pe((L) => {
|
|
3336
3313
|
var j;
|
|
3337
|
-
const
|
|
3314
|
+
const q = () => {
|
|
3338
3315
|
var M;
|
|
3339
|
-
|
|
3316
|
+
G(L), (M = xe(L)) == null || M.removeEventListener("keydown", q);
|
|
3340
3317
|
};
|
|
3341
|
-
(j =
|
|
3342
|
-
}),
|
|
3318
|
+
(j = xe(L)) == null || j.addEventListener("keydown", q);
|
|
3319
|
+
}), Q = pe((L) => {
|
|
3343
3320
|
var j;
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
const M =
|
|
3347
|
-
if (
|
|
3321
|
+
const q = I.current;
|
|
3322
|
+
I.current = !1;
|
|
3323
|
+
const M = w.current;
|
|
3324
|
+
if (w.current = !1, c === "click" && M || q || typeof A == "function" && !A(L))
|
|
3348
3325
|
return;
|
|
3349
|
-
const R =
|
|
3326
|
+
const R = xe(L), m = "[" + Ge("inert") + "]", x = ae(o.floating).querySelectorAll(m);
|
|
3350
3327
|
let F = ee(R) ? R : null;
|
|
3351
|
-
for (; F && !
|
|
3352
|
-
const
|
|
3353
|
-
if (
|
|
3328
|
+
for (; F && !Te(F); ) {
|
|
3329
|
+
const y = ve(F);
|
|
3330
|
+
if (Te(y) || !ee(y))
|
|
3354
3331
|
break;
|
|
3355
|
-
F =
|
|
3332
|
+
F = y;
|
|
3356
3333
|
}
|
|
3357
|
-
if (x.length && ee(R) && !
|
|
3358
|
-
!
|
|
3334
|
+
if (x.length && ee(R) && !_r(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
3335
|
+
!ie(R, o.floating) && // If the target root element contains none of the markers, then the
|
|
3359
3336
|
// element was injected after the floating element rendered.
|
|
3360
|
-
Array.from(x).every((
|
|
3337
|
+
Array.from(x).every((y) => !ie(F, y)))
|
|
3361
3338
|
return;
|
|
3362
|
-
if (ne(R) &&
|
|
3363
|
-
const
|
|
3364
|
-
let N =
|
|
3365
|
-
if (
|
|
3339
|
+
if (ne(R) && Z) {
|
|
3340
|
+
const y = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, O = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
|
|
3341
|
+
let N = O && L.offsetX > R.clientWidth;
|
|
3342
|
+
if (O && ce(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || y && L.offsetY > R.clientHeight)
|
|
3366
3343
|
return;
|
|
3367
3344
|
}
|
|
3368
|
-
const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId,
|
|
3369
|
-
var
|
|
3370
|
-
return ht(L, (
|
|
3345
|
+
const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, C = p && Ne(p.nodesRef.current, W).some((y) => {
|
|
3346
|
+
var O;
|
|
3347
|
+
return ht(L, (O = y.context) == null ? void 0 : O.elements.floating);
|
|
3371
3348
|
});
|
|
3372
|
-
if (ht(L, o.floating) || ht(L, o.domReference) ||
|
|
3349
|
+
if (ht(L, o.floating) || ht(L, o.domReference) || C)
|
|
3373
3350
|
return;
|
|
3374
3351
|
const P = p ? Ne(p.nodesRef.current, W) : [];
|
|
3375
3352
|
if (P.length > 0) {
|
|
3376
|
-
let
|
|
3377
|
-
if (P.forEach((
|
|
3353
|
+
let y = !0;
|
|
3354
|
+
if (P.forEach((O) => {
|
|
3378
3355
|
var N;
|
|
3379
|
-
if ((N =
|
|
3380
|
-
|
|
3356
|
+
if ((N = O.context) != null && N.open && !O.context.dataRef.current.__outsidePressBubbles) {
|
|
3357
|
+
y = !1;
|
|
3381
3358
|
return;
|
|
3382
3359
|
}
|
|
3383
|
-
}), !
|
|
3360
|
+
}), !y)
|
|
3384
3361
|
return;
|
|
3385
3362
|
}
|
|
3386
3363
|
n(!1, L, "outside-press");
|
|
3387
|
-
}),
|
|
3364
|
+
}), V = pe((L) => {
|
|
3388
3365
|
var j;
|
|
3389
|
-
const
|
|
3366
|
+
const q = () => {
|
|
3390
3367
|
var M;
|
|
3391
|
-
|
|
3368
|
+
Q(L), (M = xe(L)) == null || M.removeEventListener(c, q);
|
|
3392
3369
|
};
|
|
3393
|
-
(j =
|
|
3370
|
+
(j = xe(L)) == null || j.addEventListener(c, q);
|
|
3394
3371
|
});
|
|
3395
3372
|
E.useEffect(() => {
|
|
3396
3373
|
if (!r || !s)
|
|
3397
3374
|
return;
|
|
3398
|
-
i.current.__escapeKeyBubbles =
|
|
3375
|
+
i.current.__escapeKeyBubbles = _, i.current.__outsidePressBubbles = b;
|
|
3399
3376
|
let L = -1;
|
|
3400
3377
|
function j(x) {
|
|
3401
3378
|
n(!1, x, "ancestor-scroll");
|
|
3402
3379
|
}
|
|
3403
|
-
function
|
|
3404
|
-
window.clearTimeout(L),
|
|
3380
|
+
function q() {
|
|
3381
|
+
window.clearTimeout(L), H.current = !0;
|
|
3405
3382
|
}
|
|
3406
3383
|
function M() {
|
|
3407
3384
|
L = window.setTimeout(
|
|
3408
3385
|
() => {
|
|
3409
|
-
|
|
3386
|
+
H.current = !1;
|
|
3410
3387
|
},
|
|
3411
3388
|
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
3412
3389
|
// Only apply to WebKit for the test to remain 0ms.
|
|
3413
3390
|
tt() ? 5 : 0
|
|
3414
3391
|
);
|
|
3415
3392
|
}
|
|
3416
|
-
const R =
|
|
3417
|
-
a && (R.addEventListener("keydown",
|
|
3393
|
+
const R = ae(o.floating);
|
|
3394
|
+
a && (R.addEventListener("keydown", k ? K : G, k), R.addEventListener("compositionstart", q), R.addEventListener("compositionend", M)), A && R.addEventListener(c, z ? V : Q, z);
|
|
3418
3395
|
let m = [];
|
|
3419
|
-
return h && (ee(o.domReference) && (m =
|
|
3396
|
+
return h && (ee(o.domReference) && (m = he(o.domReference)), ee(o.floating) && (m = m.concat(he(o.floating))), !ee(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(he(o.reference.contextElement)))), m = m.filter((x) => {
|
|
3420
3397
|
var F;
|
|
3421
3398
|
return x !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
|
|
3422
3399
|
}), m.forEach((x) => {
|
|
@@ -3424,59 +3401,59 @@ function ui(e, t) {
|
|
|
3424
3401
|
passive: !0
|
|
3425
3402
|
});
|
|
3426
3403
|
}), () => {
|
|
3427
|
-
a && (R.removeEventListener("keydown",
|
|
3404
|
+
a && (R.removeEventListener("keydown", k ? K : G, k), R.removeEventListener("compositionstart", q), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, z ? V : Q, z), m.forEach((x) => {
|
|
3428
3405
|
x.removeEventListener("scroll", j);
|
|
3429
3406
|
}), window.clearTimeout(L);
|
|
3430
3407
|
};
|
|
3431
|
-
}, [i, o, a, A, c, r, n, h, s,
|
|
3432
|
-
|
|
3408
|
+
}, [i, o, a, A, c, r, n, h, s, _, b, G, k, K, Q, z, V]), E.useEffect(() => {
|
|
3409
|
+
I.current = !1;
|
|
3433
3410
|
}, [A, c]);
|
|
3434
3411
|
const te = E.useMemo(() => ({
|
|
3435
|
-
onKeyDown:
|
|
3436
|
-
[
|
|
3412
|
+
onKeyDown: G,
|
|
3413
|
+
[ai[d]]: (L) => {
|
|
3437
3414
|
f && n(!1, L.nativeEvent, "reference-press");
|
|
3438
3415
|
}
|
|
3439
|
-
}), [
|
|
3440
|
-
onKeyDown:
|
|
3416
|
+
}), [G, n, f, d]), Z = E.useMemo(() => ({
|
|
3417
|
+
onKeyDown: G,
|
|
3441
3418
|
onMouseDown() {
|
|
3442
|
-
|
|
3419
|
+
w.current = !0;
|
|
3443
3420
|
},
|
|
3444
3421
|
onMouseUp() {
|
|
3445
|
-
|
|
3422
|
+
w.current = !0;
|
|
3446
3423
|
},
|
|
3447
|
-
[
|
|
3448
|
-
|
|
3424
|
+
[ci[c]]: () => {
|
|
3425
|
+
I.current = !0;
|
|
3449
3426
|
}
|
|
3450
|
-
}), [
|
|
3427
|
+
}), [G, c]);
|
|
3451
3428
|
return E.useMemo(() => s ? {
|
|
3452
3429
|
reference: te,
|
|
3453
|
-
floating:
|
|
3454
|
-
} : {}, [s, te,
|
|
3430
|
+
floating: Z
|
|
3431
|
+
} : {}, [s, te, Z]);
|
|
3455
3432
|
}
|
|
3456
|
-
function
|
|
3433
|
+
function ui(e) {
|
|
3457
3434
|
const {
|
|
3458
3435
|
open: t = !1,
|
|
3459
3436
|
onOpenChange: r,
|
|
3460
3437
|
elements: n
|
|
3461
|
-
} = e, o =
|
|
3438
|
+
} = e, o = Gn(), i = E.useRef({}), [s] = E.useState(() => Uo()), a = Zn() != null;
|
|
3462
3439
|
if (process.env.NODE_ENV !== "production") {
|
|
3463
|
-
const
|
|
3464
|
-
|
|
3440
|
+
const l = n.reference;
|
|
3441
|
+
l && !ee(l) && Yo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3465
3442
|
}
|
|
3466
|
-
const [
|
|
3467
|
-
i.current.openEvent =
|
|
3468
|
-
open:
|
|
3443
|
+
const [u, c] = E.useState(n.reference), f = pe((l, v, p) => {
|
|
3444
|
+
i.current.openEvent = l ? v : void 0, s.emit("openchange", {
|
|
3445
|
+
open: l,
|
|
3469
3446
|
event: v,
|
|
3470
3447
|
reason: p,
|
|
3471
3448
|
nested: a
|
|
3472
|
-
}), r == null || r(
|
|
3449
|
+
}), r == null || r(l, v, p);
|
|
3473
3450
|
}), d = E.useMemo(() => ({
|
|
3474
3451
|
setPositionReference: c
|
|
3475
3452
|
}), []), h = E.useMemo(() => ({
|
|
3476
|
-
reference:
|
|
3453
|
+
reference: u || n.reference || null,
|
|
3477
3454
|
floating: n.floating || null,
|
|
3478
3455
|
domReference: n.reference
|
|
3479
|
-
}), [
|
|
3456
|
+
}), [u, n.reference, n.floating]);
|
|
3480
3457
|
return E.useMemo(() => ({
|
|
3481
3458
|
dataRef: i,
|
|
3482
3459
|
open: t,
|
|
@@ -3487,22 +3464,22 @@ function fi(e) {
|
|
|
3487
3464
|
refs: d
|
|
3488
3465
|
}), [t, f, h, s, o, d]);
|
|
3489
3466
|
}
|
|
3490
|
-
function
|
|
3467
|
+
function fi(e) {
|
|
3491
3468
|
e === void 0 && (e = {});
|
|
3492
3469
|
const {
|
|
3493
3470
|
nodeId: t
|
|
3494
|
-
} = e, r =
|
|
3471
|
+
} = e, r = ui({
|
|
3495
3472
|
...e,
|
|
3496
3473
|
elements: {
|
|
3497
3474
|
reference: null,
|
|
3498
3475
|
floating: null,
|
|
3499
3476
|
...e.elements
|
|
3500
3477
|
}
|
|
3501
|
-
}), n = e.rootContext || r, o = n.elements, [i, s] = E.useState(null), [a,
|
|
3502
|
-
|
|
3478
|
+
}), 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();
|
|
3479
|
+
ue(() => {
|
|
3503
3480
|
f && (d.current = f);
|
|
3504
3481
|
}, [f]);
|
|
3505
|
-
const
|
|
3482
|
+
const l = Do({
|
|
3506
3483
|
...e,
|
|
3507
3484
|
elements: {
|
|
3508
3485
|
...o,
|
|
@@ -3510,74 +3487,74 @@ function di(e) {
|
|
|
3510
3487
|
reference: a
|
|
3511
3488
|
}
|
|
3512
3489
|
}
|
|
3513
|
-
}), v = E.useCallback((
|
|
3514
|
-
const
|
|
3515
|
-
getBoundingClientRect: () =>
|
|
3516
|
-
contextElement:
|
|
3517
|
-
} :
|
|
3518
|
-
|
|
3519
|
-
}, [
|
|
3520
|
-
(ee(
|
|
3490
|
+
}), v = E.useCallback((w) => {
|
|
3491
|
+
const _ = ee(w) ? {
|
|
3492
|
+
getBoundingClientRect: () => w.getBoundingClientRect(),
|
|
3493
|
+
contextElement: w
|
|
3494
|
+
} : w;
|
|
3495
|
+
u(_), l.refs.setReference(_);
|
|
3496
|
+
}, [l.refs]), p = E.useCallback((w) => {
|
|
3497
|
+
(ee(w) || w === null) && (d.current = w, s(w)), (ee(l.refs.reference.current) || l.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
3521
3498
|
// `null` to support `positionReference` + an unstable `reference`
|
|
3522
3499
|
// callback ref.
|
|
3523
|
-
|
|
3524
|
-
}, [
|
|
3525
|
-
...
|
|
3500
|
+
w !== null && !ee(w)) && l.refs.setReference(w);
|
|
3501
|
+
}, [l.refs]), T = E.useMemo(() => ({
|
|
3502
|
+
...l.refs,
|
|
3526
3503
|
setReference: p,
|
|
3527
3504
|
setPositionReference: v,
|
|
3528
3505
|
domReference: d
|
|
3529
|
-
}), [
|
|
3530
|
-
...
|
|
3506
|
+
}), [l.refs, p, v]), A = E.useMemo(() => ({
|
|
3507
|
+
...l.elements,
|
|
3531
3508
|
domReference: f
|
|
3532
|
-
}), [
|
|
3533
|
-
...
|
|
3509
|
+
}), [l.elements, f]), I = E.useMemo(() => ({
|
|
3510
|
+
...l,
|
|
3534
3511
|
...n,
|
|
3535
|
-
refs:
|
|
3512
|
+
refs: T,
|
|
3536
3513
|
elements: A,
|
|
3537
3514
|
nodeId: t
|
|
3538
|
-
}), [
|
|
3539
|
-
return
|
|
3540
|
-
n.dataRef.current.floatingContext =
|
|
3541
|
-
const
|
|
3542
|
-
|
|
3515
|
+
}), [l, T, A, t, n]);
|
|
3516
|
+
return ue(() => {
|
|
3517
|
+
n.dataRef.current.floatingContext = I;
|
|
3518
|
+
const w = h == null ? void 0 : h.nodesRef.current.find((_) => _.id === t);
|
|
3519
|
+
w && (w.context = I);
|
|
3543
3520
|
}), E.useMemo(() => ({
|
|
3544
|
-
...
|
|
3545
|
-
context:
|
|
3546
|
-
refs:
|
|
3521
|
+
...l,
|
|
3522
|
+
context: I,
|
|
3523
|
+
refs: T,
|
|
3547
3524
|
elements: A
|
|
3548
|
-
}), [
|
|
3525
|
+
}), [l, T, A, I]);
|
|
3549
3526
|
}
|
|
3550
|
-
const
|
|
3527
|
+
const xn = "active", En = "selected";
|
|
3551
3528
|
function Et(e, t, r) {
|
|
3552
3529
|
const n = /* @__PURE__ */ new Map(), o = r === "item";
|
|
3553
3530
|
let i = e;
|
|
3554
3531
|
if (o && e) {
|
|
3555
3532
|
const {
|
|
3556
|
-
[
|
|
3557
|
-
[
|
|
3558
|
-
...
|
|
3533
|
+
[xn]: s,
|
|
3534
|
+
[En]: a,
|
|
3535
|
+
...u
|
|
3559
3536
|
} = e;
|
|
3560
|
-
i =
|
|
3537
|
+
i = u;
|
|
3561
3538
|
}
|
|
3562
3539
|
return {
|
|
3563
3540
|
...r === "floating" && {
|
|
3564
3541
|
tabIndex: -1,
|
|
3565
|
-
[
|
|
3542
|
+
[It]: ""
|
|
3566
3543
|
},
|
|
3567
3544
|
...i,
|
|
3568
3545
|
...t.map((s) => {
|
|
3569
3546
|
const a = s ? s[r] : null;
|
|
3570
3547
|
return typeof a == "function" ? e ? a(e) : null : a;
|
|
3571
|
-
}).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((
|
|
3572
|
-
let [c, f] =
|
|
3573
|
-
if (!(o && [
|
|
3548
|
+
}).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((u) => {
|
|
3549
|
+
let [c, f] = u;
|
|
3550
|
+
if (!(o && [xn, En].includes(c)))
|
|
3574
3551
|
if (c.indexOf("on") === 0) {
|
|
3575
3552
|
if (n.has(c) || n.set(c, []), typeof f == "function") {
|
|
3576
3553
|
var d;
|
|
3577
3554
|
(d = n.get(c)) == null || d.push(f), s[c] = function() {
|
|
3578
|
-
for (var h,
|
|
3555
|
+
for (var h, l = arguments.length, v = new Array(l), p = 0; p < l; p++)
|
|
3579
3556
|
v[p] = arguments[p];
|
|
3580
|
-
return (h = n.get(c)) == null ? void 0 : h.map((
|
|
3557
|
+
return (h = n.get(c)) == null ? void 0 : h.map((T) => T(...v)).find((T) => T !== void 0);
|
|
3581
3558
|
};
|
|
3582
3559
|
}
|
|
3583
3560
|
} else
|
|
@@ -3585,7 +3562,7 @@ function Et(e, t, r) {
|
|
|
3585
3562
|
}), s), {})
|
|
3586
3563
|
};
|
|
3587
3564
|
}
|
|
3588
|
-
function
|
|
3565
|
+
function di(e) {
|
|
3589
3566
|
e === void 0 && (e = []);
|
|
3590
3567
|
const t = e.map((a) => a == null ? void 0 : a.reference), r = e.map((a) => a == null ? void 0 : a.floating), n = e.map((a) => a == null ? void 0 : a.item), o = E.useCallback(
|
|
3591
3568
|
(a) => Et(a, e, "reference"),
|
|
@@ -3606,8 +3583,8 @@ function pi(e) {
|
|
|
3606
3583
|
getItemProps: s
|
|
3607
3584
|
}), [o, i, s]);
|
|
3608
3585
|
}
|
|
3609
|
-
const
|
|
3610
|
-
function
|
|
3586
|
+
const pi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
3587
|
+
function mi(e, t) {
|
|
3611
3588
|
var r;
|
|
3612
3589
|
t === void 0 && (t = {});
|
|
3613
3590
|
const {
|
|
@@ -3616,7 +3593,7 @@ function hi(e, t) {
|
|
|
3616
3593
|
} = e, {
|
|
3617
3594
|
enabled: i = !0,
|
|
3618
3595
|
role: s = "dialog"
|
|
3619
|
-
} = t, a = (r =
|
|
3596
|
+
} = t, a = (r = pi.get(s)) != null ? r : s, u = Gn(), f = Zn() != null, d = E.useMemo(() => a === "tooltip" || s === "label" ? {
|
|
3620
3597
|
["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
|
|
3621
3598
|
} : {
|
|
3622
3599
|
"aria-expanded": n ? "true" : "false",
|
|
@@ -3626,7 +3603,7 @@ function hi(e, t) {
|
|
|
3626
3603
|
role: "combobox"
|
|
3627
3604
|
},
|
|
3628
3605
|
...a === "menu" && {
|
|
3629
|
-
id:
|
|
3606
|
+
id: u
|
|
3630
3607
|
},
|
|
3631
3608
|
...a === "menu" && f && {
|
|
3632
3609
|
role: "menuitem"
|
|
@@ -3637,7 +3614,7 @@ function hi(e, t) {
|
|
|
3637
3614
|
...s === "combobox" && {
|
|
3638
3615
|
"aria-autocomplete": "list"
|
|
3639
3616
|
}
|
|
3640
|
-
}, [a, o, f, n,
|
|
3617
|
+
}, [a, o, f, n, u, s]), h = E.useMemo(() => {
|
|
3641
3618
|
const v = {
|
|
3642
3619
|
id: o,
|
|
3643
3620
|
...a && {
|
|
@@ -3647,13 +3624,13 @@ function hi(e, t) {
|
|
|
3647
3624
|
return a === "tooltip" || s === "label" ? v : {
|
|
3648
3625
|
...v,
|
|
3649
3626
|
...a === "menu" && {
|
|
3650
|
-
"aria-labelledby":
|
|
3627
|
+
"aria-labelledby": u
|
|
3651
3628
|
}
|
|
3652
3629
|
};
|
|
3653
|
-
}, [a, o,
|
|
3630
|
+
}, [a, o, u, s]), l = E.useCallback((v) => {
|
|
3654
3631
|
let {
|
|
3655
3632
|
active: p,
|
|
3656
|
-
selected:
|
|
3633
|
+
selected: T
|
|
3657
3634
|
} = v;
|
|
3658
3635
|
const A = {
|
|
3659
3636
|
role: "option",
|
|
@@ -3665,7 +3642,7 @@ function hi(e, t) {
|
|
|
3665
3642
|
case "select":
|
|
3666
3643
|
return {
|
|
3667
3644
|
...A,
|
|
3668
|
-
"aria-selected": p &&
|
|
3645
|
+
"aria-selected": p && T
|
|
3669
3646
|
};
|
|
3670
3647
|
case "combobox":
|
|
3671
3648
|
return {
|
|
@@ -3680,45 +3657,45 @@ function hi(e, t) {
|
|
|
3680
3657
|
return E.useMemo(() => i ? {
|
|
3681
3658
|
reference: d,
|
|
3682
3659
|
floating: h,
|
|
3683
|
-
item:
|
|
3684
|
-
} : {}, [i, d, h,
|
|
3660
|
+
item: l
|
|
3661
|
+
} : {}, [i, d, h, l]);
|
|
3685
3662
|
}
|
|
3686
|
-
function
|
|
3687
|
-
const [n, o] =
|
|
3663
|
+
function hi({ className: e, children: t, buttonText: r }) {
|
|
3664
|
+
const [n, o] = Sn(!1), { refs: i, floatingStyles: s, context: a } = fi({
|
|
3688
3665
|
open: n,
|
|
3689
3666
|
onOpenChange: o,
|
|
3690
|
-
middleware: [
|
|
3691
|
-
whileElementsMounted:
|
|
3667
|
+
middleware: [Lo(16), $o(), Fo()],
|
|
3668
|
+
whileElementsMounted: Oo,
|
|
3692
3669
|
placement: "right"
|
|
3693
|
-
}),
|
|
3694
|
-
|
|
3670
|
+
}), u = si(a), c = li(a), f = mi(a), { getReferenceProps: d, getFloatingProps: h } = di([
|
|
3671
|
+
u,
|
|
3695
3672
|
c,
|
|
3696
3673
|
f
|
|
3697
3674
|
]);
|
|
3698
|
-
return /* @__PURE__ */ B(
|
|
3699
|
-
/* @__PURE__ */
|
|
3700
|
-
n && /* @__PURE__ */
|
|
3675
|
+
return /* @__PURE__ */ B(Ie, { children: [
|
|
3676
|
+
/* @__PURE__ */ g("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ g(Ee, { text: r }) }),
|
|
3677
|
+
n && /* @__PURE__ */ g(ii, { context: a, modal: !1, children: /* @__PURE__ */ g(
|
|
3701
3678
|
"div",
|
|
3702
3679
|
{
|
|
3703
3680
|
ref: i.setFloating,
|
|
3704
3681
|
style: s,
|
|
3705
3682
|
...h(),
|
|
3706
|
-
children: /* @__PURE__ */
|
|
3683
|
+
children: /* @__PURE__ */ g(vr, { children: t })
|
|
3707
3684
|
}
|
|
3708
3685
|
) })
|
|
3709
3686
|
] });
|
|
3710
3687
|
}
|
|
3711
|
-
const
|
|
3688
|
+
const Bi = ({
|
|
3712
3689
|
className: e,
|
|
3713
3690
|
children: t,
|
|
3714
3691
|
buttonText: r = "Menu button"
|
|
3715
3692
|
}) => {
|
|
3716
|
-
const n =
|
|
3717
|
-
return /* @__PURE__ */
|
|
3718
|
-
},
|
|
3719
|
-
t === "left" && r !== "" ?
|
|
3693
|
+
const n = X("rpf-menu-button", e);
|
|
3694
|
+
return /* @__PURE__ */ g(hi, { className: n, buttonText: r, children: t });
|
|
3695
|
+
}, Rn = (e) => e ? /* @__PURE__ */ g("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Tn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ B(Ie, { children: [
|
|
3696
|
+
t === "left" && r !== "" ? Rn(r) : null,
|
|
3720
3697
|
e,
|
|
3721
|
-
t === "right" && r !== "" ?
|
|
3698
|
+
t === "right" && r !== "" ? Rn(r) : null
|
|
3722
3699
|
] }), Vi = ({
|
|
3723
3700
|
text: e,
|
|
3724
3701
|
href: t,
|
|
@@ -3728,43 +3705,43 @@ const qi = ({
|
|
|
3728
3705
|
className: i,
|
|
3729
3706
|
onClick: s
|
|
3730
3707
|
}) => {
|
|
3731
|
-
const a =
|
|
3708
|
+
const a = X(
|
|
3732
3709
|
"rpf-menu__item",
|
|
3733
3710
|
{ "rpf-menu__item--danger": o },
|
|
3734
3711
|
i
|
|
3735
3712
|
);
|
|
3736
|
-
return /* @__PURE__ */
|
|
3737
|
-
},
|
|
3713
|
+
return /* @__PURE__ */ g("li", { className: a, children: t ? /* @__PURE__ */ g("a", { href: t, children: /* @__PURE__ */ g(Tn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ g("button", { type: "button", onClick: s, children: /* @__PURE__ */ g(Tn, { text: e, iconPosition: n, icon: r }) }) });
|
|
3714
|
+
}, qi = ({ text: e }) => /* @__PURE__ */ g("li", { className: "rpf-menu__title", children: /* @__PURE__ */ g("span", { children: e }) }), Yi = ({
|
|
3738
3715
|
text: e = "",
|
|
3739
3716
|
percent: t,
|
|
3740
3717
|
complete: r = !1,
|
|
3741
3718
|
className: n
|
|
3742
|
-
}) => /* @__PURE__ */
|
|
3719
|
+
}) => /* @__PURE__ */ g(
|
|
3743
3720
|
"div",
|
|
3744
3721
|
{
|
|
3745
|
-
className:
|
|
3722
|
+
className: X("rpf-progress-bar", {
|
|
3746
3723
|
"rpf-progress-bar--complete": r,
|
|
3747
3724
|
className: n
|
|
3748
3725
|
}),
|
|
3749
3726
|
children: /* @__PURE__ */ B("label", { className: "rpf-progress-bar__label", children: [
|
|
3750
|
-
/* @__PURE__ */
|
|
3751
|
-
/* @__PURE__ */
|
|
3727
|
+
/* @__PURE__ */ g("span", { children: e }),
|
|
3728
|
+
/* @__PURE__ */ g("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
3752
3729
|
] })
|
|
3753
3730
|
}
|
|
3754
|
-
),
|
|
3731
|
+
), Ui = ({ children: e }) => /* @__PURE__ */ g("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ g("div", { className: "rpf-table-cell__content", children: e }) });
|
|
3755
3732
|
/**
|
|
3756
3733
|
* @license lucide-react v0.553.0 - ISC
|
|
3757
3734
|
*
|
|
3758
3735
|
* This source code is licensed under the ISC license.
|
|
3759
3736
|
* See the LICENSE file in the root directory of this source tree.
|
|
3760
3737
|
*/
|
|
3761
|
-
const
|
|
3738
|
+
const vi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), bi = (e) => e.replace(
|
|
3762
3739
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3763
3740
|
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
3764
|
-
),
|
|
3765
|
-
const t =
|
|
3741
|
+
), Cn = (e) => {
|
|
3742
|
+
const t = bi(e);
|
|
3766
3743
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3767
|
-
},
|
|
3744
|
+
}, er = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), yi = (e) => {
|
|
3768
3745
|
for (const t in e)
|
|
3769
3746
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3770
3747
|
return !0;
|
|
@@ -3775,7 +3752,7 @@ const bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (
|
|
|
3775
3752
|
* This source code is licensed under the ISC license.
|
|
3776
3753
|
* See the LICENSE file in the root directory of this source tree.
|
|
3777
3754
|
*/
|
|
3778
|
-
var
|
|
3755
|
+
var gi = {
|
|
3779
3756
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3780
3757
|
width: 24,
|
|
3781
3758
|
height: 24,
|
|
@@ -3792,7 +3769,7 @@ var wi = {
|
|
|
3792
3769
|
* This source code is licensed under the ISC license.
|
|
3793
3770
|
* See the LICENSE file in the root directory of this source tree.
|
|
3794
3771
|
*/
|
|
3795
|
-
const
|
|
3772
|
+
const wi = kt(
|
|
3796
3773
|
({
|
|
3797
3774
|
color: e = "currentColor",
|
|
3798
3775
|
size: t = 24,
|
|
@@ -3802,17 +3779,17 @@ const xi = It(
|
|
|
3802
3779
|
children: i,
|
|
3803
3780
|
iconNode: s,
|
|
3804
3781
|
...a
|
|
3805
|
-
},
|
|
3782
|
+
}, u) => Tt(
|
|
3806
3783
|
"svg",
|
|
3807
3784
|
{
|
|
3808
|
-
ref:
|
|
3809
|
-
...
|
|
3785
|
+
ref: u,
|
|
3786
|
+
...gi,
|
|
3810
3787
|
width: t,
|
|
3811
3788
|
height: t,
|
|
3812
3789
|
stroke: e,
|
|
3813
3790
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
3814
|
-
className:
|
|
3815
|
-
...!i && !
|
|
3791
|
+
className: er("lucide", o),
|
|
3792
|
+
...!i && !yi(a) && { "aria-hidden": "true" },
|
|
3816
3793
|
...a
|
|
3817
3794
|
},
|
|
3818
3795
|
[
|
|
@@ -3828,19 +3805,19 @@ const xi = It(
|
|
|
3828
3805
|
* See the LICENSE file in the root directory of this source tree.
|
|
3829
3806
|
*/
|
|
3830
3807
|
const Bt = (e, t) => {
|
|
3831
|
-
const r =
|
|
3832
|
-
({ className: n, ...o }, i) => Tt(
|
|
3808
|
+
const r = kt(
|
|
3809
|
+
({ className: n, ...o }, i) => Tt(wi, {
|
|
3833
3810
|
ref: i,
|
|
3834
3811
|
iconNode: t,
|
|
3835
|
-
className:
|
|
3836
|
-
`lucide-${
|
|
3812
|
+
className: er(
|
|
3813
|
+
`lucide-${vi(Cn(e))}`,
|
|
3837
3814
|
`lucide-${e}`,
|
|
3838
3815
|
n
|
|
3839
3816
|
),
|
|
3840
3817
|
...o
|
|
3841
3818
|
})
|
|
3842
3819
|
);
|
|
3843
|
-
return r.displayName =
|
|
3820
|
+
return r.displayName = Cn(e), r;
|
|
3844
3821
|
};
|
|
3845
3822
|
/**
|
|
3846
3823
|
* @license lucide-react v0.553.0 - ISC
|
|
@@ -3848,25 +3825,25 @@ const Bt = (e, t) => {
|
|
|
3848
3825
|
* This source code is licensed under the ISC license.
|
|
3849
3826
|
* See the LICENSE file in the root directory of this source tree.
|
|
3850
3827
|
*/
|
|
3851
|
-
const
|
|
3828
|
+
const xi = [
|
|
3852
3829
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
3853
3830
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
3854
3831
|
["path", { d: "m21 8-4-4-4 4", key: "1c9v7m" }],
|
|
3855
3832
|
["path", { d: "M17 4v16", key: "7dpous" }]
|
|
3856
|
-
],
|
|
3833
|
+
], Ei = Bt("arrow-down-up", xi);
|
|
3857
3834
|
/**
|
|
3858
3835
|
* @license lucide-react v0.553.0 - ISC
|
|
3859
3836
|
*
|
|
3860
3837
|
* This source code is licensed under the ISC license.
|
|
3861
3838
|
* See the LICENSE file in the root directory of this source tree.
|
|
3862
3839
|
*/
|
|
3863
|
-
const
|
|
3840
|
+
const Ri = [
|
|
3864
3841
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
3865
3842
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
3866
3843
|
["path", { d: "M11 4h10", key: "1w87gc" }],
|
|
3867
3844
|
["path", { d: "M11 8h7", key: "djye34" }],
|
|
3868
3845
|
["path", { d: "M11 12h4", key: "q8tih4" }]
|
|
3869
|
-
],
|
|
3846
|
+
], Ti = Bt("arrow-down-wide-narrow", Ri);
|
|
3870
3847
|
/**
|
|
3871
3848
|
* @license lucide-react v0.553.0 - ISC
|
|
3872
3849
|
*
|
|
@@ -3879,51 +3856,51 @@ const Ci = [
|
|
|
3879
3856
|
["path", { d: "M11 12h4", key: "q8tih4" }],
|
|
3880
3857
|
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
3881
3858
|
["path", { d: "M11 20h10", key: "jvxblo" }]
|
|
3882
|
-
],
|
|
3859
|
+
], Si = Bt("arrow-up-narrow-wide", Ci), _i = (e, t) => {
|
|
3883
3860
|
if (e)
|
|
3884
3861
|
return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
|
|
3885
|
-
},
|
|
3862
|
+
}, Hi = ({
|
|
3886
3863
|
sortDirection: e,
|
|
3887
3864
|
children: t,
|
|
3888
3865
|
onClick: r
|
|
3889
3866
|
}) => {
|
|
3890
|
-
const n = !!r, o = e === "up" ?
|
|
3891
|
-
return /* @__PURE__ */
|
|
3867
|
+
const n = !!r, o = e === "up" ? Si : e === "down" ? Ti : Ei, i = _i(n, e);
|
|
3868
|
+
return /* @__PURE__ */ g("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ g("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ B("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
|
|
3892
3869
|
t,
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
] }) : /* @__PURE__ */
|
|
3895
|
-
},
|
|
3870
|
+
/* @__PURE__ */ g(o, { size: 20 })
|
|
3871
|
+
] }) : /* @__PURE__ */ g(Ie, { children: t }) }) });
|
|
3872
|
+
}, Ki = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ g(
|
|
3896
3873
|
"div",
|
|
3897
3874
|
{
|
|
3898
3875
|
"data-testid": "table-container",
|
|
3899
|
-
className:
|
|
3876
|
+
className: X("rpf-table", { "rpf-table--full-width": r }),
|
|
3900
3877
|
children: /* @__PURE__ */ B(
|
|
3901
3878
|
"table",
|
|
3902
3879
|
{
|
|
3903
|
-
className:
|
|
3880
|
+
className: X("rpf-table__table", {
|
|
3904
3881
|
"rpf-table__table--full-width": r
|
|
3905
3882
|
}),
|
|
3906
3883
|
children: [
|
|
3907
|
-
/* @__PURE__ */
|
|
3908
|
-
/* @__PURE__ */
|
|
3884
|
+
/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ g("tr", { className: "rpf-table-row", children: e }) }),
|
|
3885
|
+
/* @__PURE__ */ g("tbody", { children: t.map((n, o) => /* @__PURE__ */ g("tr", { className: "rpf-table-row", children: n }, o)) })
|
|
3909
3886
|
]
|
|
3910
3887
|
}
|
|
3911
3888
|
)
|
|
3912
3889
|
}
|
|
3913
|
-
),
|
|
3890
|
+
), zi = ({
|
|
3914
3891
|
text: e,
|
|
3915
3892
|
variant: t,
|
|
3916
3893
|
secondary: r,
|
|
3917
3894
|
icon: n,
|
|
3918
3895
|
iconPosition: o
|
|
3919
3896
|
}) => {
|
|
3920
|
-
const i = n ? /* @__PURE__ */
|
|
3897
|
+
const i = n ? /* @__PURE__ */ g("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
|
|
3921
3898
|
n && !o && (o = "left");
|
|
3922
3899
|
const s = t && t !== "default" ? `rpf-tag--${t}` : null;
|
|
3923
3900
|
return /* @__PURE__ */ B(
|
|
3924
3901
|
"span",
|
|
3925
3902
|
{
|
|
3926
|
-
className:
|
|
3903
|
+
className: X("rpf-tag", s, {
|
|
3927
3904
|
"rpf-tag--secondary": r
|
|
3928
3905
|
}),
|
|
3929
3906
|
children: [
|
|
@@ -3935,28 +3912,28 @@ const Ci = [
|
|
|
3935
3912
|
);
|
|
3936
3913
|
};
|
|
3937
3914
|
export {
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3915
|
+
pr as Accordion,
|
|
3916
|
+
Pi as Alert,
|
|
3917
|
+
Ee as Button,
|
|
3918
|
+
Ni as CheckboxInput,
|
|
3942
3919
|
Ii as Fieldset,
|
|
3943
3920
|
Dt as InputField,
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3921
|
+
ki as InputLabel,
|
|
3922
|
+
vr as Menu,
|
|
3923
|
+
Bi as MenuButton,
|
|
3947
3924
|
Vi as MenuItem,
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3925
|
+
qi as MenuTitle,
|
|
3926
|
+
Wi as Modal,
|
|
3927
|
+
Mi as PasswordInput,
|
|
3928
|
+
Yi as ProgressBar,
|
|
3929
|
+
Di as RadioInput,
|
|
3930
|
+
Li as SearchInput,
|
|
3931
|
+
Fi as SelectInput,
|
|
3932
|
+
mr as Switch,
|
|
3933
|
+
Ki as Table,
|
|
3934
|
+
Ui as TableBodyCell,
|
|
3935
|
+
Hi as TableHeaderCell,
|
|
3936
|
+
zi as Tag,
|
|
3937
|
+
ji as TextInput,
|
|
3938
|
+
$i as TextareaInput
|
|
3962
3939
|
};
|