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