@raspberrypifoundation/design-system-react 2.7.0 → 2.7.2
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/CHANGELOG.md +15 -3
- package/dist/design-system-react.js +949 -898
- package/dist/design-system-react.umd.cjs +41 -6
- package/dist/types/lib/main.d.ts +7 -0
- package/dist/types/lib/main.d.ts.map +1 -1
- package/dist/types/src/components/Form/Fieldset/FieldSet.types.d.ts +16 -0
- package/dist/types/src/components/Form/Fieldset/FieldSet.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/Fieldset/index.d.ts +3 -19
- package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputField/InputField.types.d.ts +16 -0
- package/dist/types/src/components/Form/InputField/InputField.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputField/index.d.ts +3 -19
- package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/InputLabel/InputLabel.types.d.ts +11 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts +3 -15
- package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts +19 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts +3 -23
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts +1 -1
- package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts +30 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts +4 -29
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts +21 -0
- package/dist/types/src/components/Form/TextInput/TextInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts +4 -25
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +1 -1
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.types.d.ts +23 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts +3 -27
- package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -1
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts.map +1 -1
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.helpers.d.ts +2 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.helpers.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts.map +1 -1
- package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -1
- package/dist/types/src/components/Table/Table/Table.spec.d.ts.map +1 -1
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts +17 -55
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts +13 -24
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +27 -49
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts +25 -51
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +17 -36
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +25 -51
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +1 -1
- package/dist/types/src/stories/table/Table.stories.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as P, jsx as p, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import Le, { useRef as ge, useEffect as se, forwardRef as ke, createElement as ye } from "react";
|
|
3
|
+
function $e(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var ie = { exports: {} };
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
var Ee;
|
|
13
|
+
function Ye() {
|
|
14
|
+
return Ee || (Ee = 1, function(e) {
|
|
15
15
|
(function() {
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
for (var r = "",
|
|
19
|
-
var
|
|
20
|
-
|
|
16
|
+
var t = {}.hasOwnProperty;
|
|
17
|
+
function s() {
|
|
18
|
+
for (var r = "", c = 0; c < arguments.length; c++) {
|
|
19
|
+
var i = arguments[c];
|
|
20
|
+
i && (r = a(r, n(i)));
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function n(r) {
|
|
25
25
|
if (typeof r == "string" || typeof r == "number")
|
|
26
26
|
return r;
|
|
27
27
|
if (typeof r != "object")
|
|
28
28
|
return "";
|
|
29
29
|
if (Array.isArray(r))
|
|
30
|
-
return
|
|
30
|
+
return s.apply(null, r);
|
|
31
31
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
32
32
|
return r.toString();
|
|
33
|
-
var
|
|
34
|
-
for (var
|
|
35
|
-
|
|
36
|
-
return
|
|
33
|
+
var c = "";
|
|
34
|
+
for (var i in r)
|
|
35
|
+
t.call(r, i) && r[i] && (c = a(c, i));
|
|
36
|
+
return c;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function a(r, c) {
|
|
39
|
+
return c ? r ? r + " " + c : r + c : r;
|
|
40
40
|
}
|
|
41
|
-
e.exports ? (
|
|
41
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}(ie)), ie.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const
|
|
47
|
-
var
|
|
45
|
+
var De = Ye();
|
|
46
|
+
const M = /* @__PURE__ */ $e(De);
|
|
47
|
+
var Z = { exports: {} }, K = { exports: {} }, C = {};
|
|
48
48
|
/** @license React v16.13.1
|
|
49
49
|
* react-is.production.min.js
|
|
50
50
|
*
|
|
@@ -53,73 +53,73 @@ var G = { exports: {} }, K = { exports: {} }, C = {};
|
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
var e = typeof Symbol == "function" && Symbol.for,
|
|
61
|
-
function $(
|
|
62
|
-
if (typeof
|
|
63
|
-
var
|
|
64
|
-
switch (
|
|
65
|
-
case
|
|
66
|
-
switch (
|
|
67
|
-
case
|
|
68
|
-
case
|
|
69
|
-
case o:
|
|
70
|
-
case r:
|
|
56
|
+
var Te;
|
|
57
|
+
function We() {
|
|
58
|
+
if (Te) return C;
|
|
59
|
+
Te = 1;
|
|
60
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, k = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
61
|
+
function $(l) {
|
|
62
|
+
if (typeof l == "object" && l !== null) {
|
|
63
|
+
var Y = l.$$typeof;
|
|
64
|
+
switch (Y) {
|
|
65
|
+
case t:
|
|
66
|
+
switch (l = l.type, l) {
|
|
67
|
+
case d:
|
|
68
|
+
case h:
|
|
71
69
|
case n:
|
|
72
|
-
case
|
|
73
|
-
|
|
70
|
+
case r:
|
|
71
|
+
case a:
|
|
72
|
+
case b:
|
|
73
|
+
return l;
|
|
74
74
|
default:
|
|
75
|
-
switch (
|
|
76
|
-
case
|
|
77
|
-
case
|
|
78
|
-
case
|
|
79
|
-
case
|
|
80
|
-
case
|
|
81
|
-
return
|
|
75
|
+
switch (l = l && l.$$typeof, l) {
|
|
76
|
+
case i:
|
|
77
|
+
case y:
|
|
78
|
+
case I:
|
|
79
|
+
case A:
|
|
80
|
+
case c:
|
|
81
|
+
return l;
|
|
82
82
|
default:
|
|
83
|
-
return
|
|
83
|
+
return Y;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
case
|
|
87
|
-
return
|
|
86
|
+
case s:
|
|
87
|
+
return Y;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return $(
|
|
91
|
+
function j(l) {
|
|
92
|
+
return $(l) === h;
|
|
93
93
|
}
|
|
94
|
-
return C.AsyncMode =
|
|
95
|
-
return
|
|
96
|
-
}, C.isConcurrentMode =
|
|
97
|
-
return $(
|
|
98
|
-
}, C.isContextProvider = function(
|
|
99
|
-
return $(
|
|
100
|
-
}, C.isElement = function(
|
|
101
|
-
return typeof
|
|
102
|
-
}, C.isForwardRef = function(
|
|
103
|
-
return $(
|
|
104
|
-
}, C.isFragment = function(
|
|
105
|
-
return $(
|
|
106
|
-
}, C.isLazy = function(
|
|
107
|
-
return $(
|
|
108
|
-
}, C.isMemo = function(
|
|
109
|
-
return $(
|
|
110
|
-
}, C.isPortal = function(
|
|
111
|
-
return $(
|
|
112
|
-
}, C.isProfiler = function(
|
|
113
|
-
return $(
|
|
114
|
-
}, C.isStrictMode = function(
|
|
115
|
-
return $(
|
|
116
|
-
}, C.isSuspense = function(
|
|
117
|
-
return $(
|
|
118
|
-
}, C.isValidElementType = function(
|
|
119
|
-
return typeof
|
|
94
|
+
return C.AsyncMode = d, C.ConcurrentMode = h, C.ContextConsumer = i, C.ContextProvider = c, C.Element = t, C.ForwardRef = y, C.Fragment = n, C.Lazy = I, C.Memo = A, C.Portal = s, C.Profiler = r, C.StrictMode = a, C.Suspense = b, C.isAsyncMode = function(l) {
|
|
95
|
+
return j(l) || $(l) === d;
|
|
96
|
+
}, C.isConcurrentMode = j, C.isContextConsumer = function(l) {
|
|
97
|
+
return $(l) === i;
|
|
98
|
+
}, C.isContextProvider = function(l) {
|
|
99
|
+
return $(l) === c;
|
|
100
|
+
}, C.isElement = function(l) {
|
|
101
|
+
return typeof l == "object" && l !== null && l.$$typeof === t;
|
|
102
|
+
}, C.isForwardRef = function(l) {
|
|
103
|
+
return $(l) === y;
|
|
104
|
+
}, C.isFragment = function(l) {
|
|
105
|
+
return $(l) === n;
|
|
106
|
+
}, C.isLazy = function(l) {
|
|
107
|
+
return $(l) === I;
|
|
108
|
+
}, C.isMemo = function(l) {
|
|
109
|
+
return $(l) === A;
|
|
110
|
+
}, C.isPortal = function(l) {
|
|
111
|
+
return $(l) === s;
|
|
112
|
+
}, C.isProfiler = function(l) {
|
|
113
|
+
return $(l) === r;
|
|
114
|
+
}, C.isStrictMode = function(l) {
|
|
115
|
+
return $(l) === a;
|
|
116
|
+
}, C.isSuspense = function(l) {
|
|
117
|
+
return $(l) === b;
|
|
118
|
+
}, C.isValidElementType = function(l) {
|
|
119
|
+
return typeof l == "string" || typeof l == "function" || l === n || l === h || l === r || l === a || l === b || l === N || typeof l == "object" && l !== null && (l.$$typeof === I || l.$$typeof === A || l.$$typeof === c || l.$$typeof === i || l.$$typeof === y || l.$$typeof === k || l.$$typeof === q || l.$$typeof === F || l.$$typeof === O);
|
|
120
120
|
}, C.typeOf = $, C;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
122
|
+
var R = {};
|
|
123
123
|
/** @license React v16.13.1
|
|
124
124
|
* react-is.development.js
|
|
125
125
|
*
|
|
@@ -128,477 +128,477 @@ var x = {};
|
|
|
128
128
|
* This source code is licensed under the MIT license found in the
|
|
129
129
|
* LICENSE file in the root directory of this source tree.
|
|
130
130
|
*/
|
|
131
|
-
var
|
|
132
|
-
function
|
|
133
|
-
return
|
|
134
|
-
var e = typeof Symbol == "function" && Symbol.for,
|
|
131
|
+
var we;
|
|
132
|
+
function Fe() {
|
|
133
|
+
return we || (we = 1, process.env.NODE_ENV !== "production" && function() {
|
|
134
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, s = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, r = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, k = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
135
135
|
function $(f) {
|
|
136
136
|
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
137
|
-
f ===
|
|
137
|
+
f === n || f === h || f === r || f === a || f === b || f === N || typeof f == "object" && f !== null && (f.$$typeof === I || f.$$typeof === A || f.$$typeof === c || f.$$typeof === i || f.$$typeof === y || f.$$typeof === k || f.$$typeof === q || f.$$typeof === F || f.$$typeof === O);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function j(f) {
|
|
140
140
|
if (typeof f == "object" && f !== null) {
|
|
141
|
-
var
|
|
142
|
-
switch (
|
|
143
|
-
case
|
|
144
|
-
var
|
|
145
|
-
switch (
|
|
146
|
-
case
|
|
147
|
-
case
|
|
148
|
-
case o:
|
|
149
|
-
case r:
|
|
141
|
+
var W = f.$$typeof;
|
|
142
|
+
switch (W) {
|
|
143
|
+
case t:
|
|
144
|
+
var J = f.type;
|
|
145
|
+
switch (J) {
|
|
146
|
+
case d:
|
|
147
|
+
case h:
|
|
150
148
|
case n:
|
|
151
|
-
case
|
|
152
|
-
|
|
149
|
+
case r:
|
|
150
|
+
case a:
|
|
151
|
+
case b:
|
|
152
|
+
return J;
|
|
153
153
|
default:
|
|
154
|
-
var
|
|
155
|
-
switch (
|
|
156
|
-
case
|
|
157
|
-
case
|
|
158
|
-
case
|
|
159
|
-
case
|
|
160
|
-
case
|
|
161
|
-
return
|
|
154
|
+
var _e = J && J.$$typeof;
|
|
155
|
+
switch (_e) {
|
|
156
|
+
case i:
|
|
157
|
+
case y:
|
|
158
|
+
case I:
|
|
159
|
+
case A:
|
|
160
|
+
case c:
|
|
161
|
+
return _e;
|
|
162
162
|
default:
|
|
163
|
-
return
|
|
163
|
+
return W;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
case
|
|
167
|
-
return
|
|
166
|
+
case s:
|
|
167
|
+
return W;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
return
|
|
171
|
+
var l = d, Y = h, G = i, Q = c, ee = t, re = y, V = n, te = I, ne = A, z = s, ae = r, D = a, U = b, H = !1;
|
|
172
|
+
function oe(f) {
|
|
173
|
+
return H || (H = !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.")), o(f) || j(f) === d;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
175
|
+
function o(f) {
|
|
176
|
+
return j(f) === h;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
178
|
+
function u(f) {
|
|
179
|
+
return j(f) === i;
|
|
180
180
|
}
|
|
181
181
|
function E(f) {
|
|
182
|
-
return
|
|
182
|
+
return j(f) === c;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
185
|
-
return typeof f == "object" && f !== null && f.$$typeof ===
|
|
184
|
+
function _(f) {
|
|
185
|
+
return typeof f == "object" && f !== null && f.$$typeof === t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
187
|
+
function m(f) {
|
|
188
|
+
return j(f) === y;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
190
|
+
function T(f) {
|
|
191
|
+
return j(f) === n;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
193
|
+
function v(f) {
|
|
194
|
+
return j(f) === I;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return
|
|
196
|
+
function g(f) {
|
|
197
|
+
return j(f) === A;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
return
|
|
199
|
+
function w(f) {
|
|
200
|
+
return j(f) === s;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
202
|
+
function x(f) {
|
|
203
|
+
return j(f) === r;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
return
|
|
205
|
+
function S(f) {
|
|
206
|
+
return j(f) === a;
|
|
207
207
|
}
|
|
208
208
|
function L(f) {
|
|
209
|
-
return
|
|
209
|
+
return j(f) === b;
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
}()),
|
|
211
|
+
R.AsyncMode = l, R.ConcurrentMode = Y, R.ContextConsumer = G, R.ContextProvider = Q, R.Element = ee, R.ForwardRef = re, R.Fragment = V, R.Lazy = te, R.Memo = ne, R.Portal = z, R.Profiler = ae, R.StrictMode = D, R.Suspense = U, R.isAsyncMode = oe, R.isConcurrentMode = o, R.isContextConsumer = u, R.isContextProvider = E, R.isElement = _, R.isForwardRef = m, R.isFragment = T, R.isLazy = v, R.isMemo = g, R.isPortal = w, R.isProfiler = x, R.isStrictMode = S, R.isSuspense = L, R.isValidElementType = $, R.typeOf = j;
|
|
212
|
+
}()), R;
|
|
213
213
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
216
|
-
return
|
|
214
|
+
var Se;
|
|
215
|
+
function Ie() {
|
|
216
|
+
return Se || (Se = 1, process.env.NODE_ENV === "production" ? K.exports = We() : K.exports = Fe()), K.exports;
|
|
217
217
|
}
|
|
218
218
|
/*
|
|
219
219
|
object-assign
|
|
220
220
|
(c) Sindre Sorhus
|
|
221
221
|
@license MIT
|
|
222
222
|
*/
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
var e = Object.getOwnPropertySymbols,
|
|
228
|
-
function
|
|
223
|
+
var ce, Ce;
|
|
224
|
+
function Ue() {
|
|
225
|
+
if (Ce) return ce;
|
|
226
|
+
Ce = 1;
|
|
227
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
|
|
228
|
+
function n(r) {
|
|
229
229
|
if (r == null)
|
|
230
230
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
231
231
|
return Object(r);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function a() {
|
|
234
234
|
try {
|
|
235
235
|
if (!Object.assign)
|
|
236
236
|
return !1;
|
|
237
237
|
var r = new String("abc");
|
|
238
238
|
if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
|
|
239
239
|
return !1;
|
|
240
|
-
for (var
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
return
|
|
240
|
+
for (var c = {}, i = 0; i < 10; i++)
|
|
241
|
+
c["_" + String.fromCharCode(i)] = i;
|
|
242
|
+
var d = Object.getOwnPropertyNames(c).map(function(y) {
|
|
243
|
+
return c[y];
|
|
244
244
|
});
|
|
245
|
-
if (
|
|
245
|
+
if (d.join("") !== "0123456789")
|
|
246
246
|
return !1;
|
|
247
|
-
var
|
|
248
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
249
|
-
|
|
250
|
-
}), Object.keys(Object.assign({},
|
|
247
|
+
var h = {};
|
|
248
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(y) {
|
|
249
|
+
h[y] = y;
|
|
250
|
+
}), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
|
|
251
251
|
} catch {
|
|
252
252
|
return !1;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
return
|
|
256
|
-
for (var
|
|
257
|
-
|
|
258
|
-
for (var
|
|
259
|
-
|
|
255
|
+
return ce = a() ? Object.assign : function(r, c) {
|
|
256
|
+
for (var i, d = n(r), h, y = 1; y < arguments.length; y++) {
|
|
257
|
+
i = Object(arguments[y]);
|
|
258
|
+
for (var b in i)
|
|
259
|
+
t.call(i, b) && (d[b] = i[b]);
|
|
260
260
|
if (e) {
|
|
261
|
-
|
|
262
|
-
for (var
|
|
263
|
-
|
|
261
|
+
h = e(i);
|
|
262
|
+
for (var N = 0; N < h.length; N++)
|
|
263
|
+
s.call(i, h[N]) && (d[h[N]] = i[h[N]]);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
return
|
|
267
|
-
},
|
|
266
|
+
return d;
|
|
267
|
+
}, ce;
|
|
268
268
|
}
|
|
269
|
-
var
|
|
269
|
+
var le, Re;
|
|
270
270
|
function he() {
|
|
271
|
-
if (
|
|
272
|
-
|
|
271
|
+
if (Re) return le;
|
|
272
|
+
Re = 1;
|
|
273
273
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
274
|
-
return
|
|
274
|
+
return le = e, le;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var fe, xe;
|
|
277
|
+
function Me() {
|
|
278
|
+
return xe || (xe = 1, fe = Function.call.bind(Object.prototype.hasOwnProperty)), fe;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
if (
|
|
283
|
-
|
|
280
|
+
var ue, Pe;
|
|
281
|
+
function ze() {
|
|
282
|
+
if (Pe) return ue;
|
|
283
|
+
Pe = 1;
|
|
284
284
|
var e = function() {
|
|
285
285
|
};
|
|
286
286
|
if (process.env.NODE_ENV !== "production") {
|
|
287
|
-
var
|
|
287
|
+
var t = /* @__PURE__ */ he(), s = {}, n = /* @__PURE__ */ Me();
|
|
288
288
|
e = function(r) {
|
|
289
|
-
var
|
|
290
|
-
typeof console < "u" && console.error(
|
|
289
|
+
var c = "Warning: " + r;
|
|
290
|
+
typeof console < "u" && console.error(c);
|
|
291
291
|
try {
|
|
292
|
-
throw new Error(
|
|
292
|
+
throw new Error(c);
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function a(r, c, i, d, h) {
|
|
298
298
|
if (process.env.NODE_ENV !== "production") {
|
|
299
|
-
for (var
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
299
|
+
for (var y in r)
|
|
300
|
+
if (n(r, y)) {
|
|
301
|
+
var b;
|
|
302
302
|
try {
|
|
303
|
-
if (typeof r[
|
|
304
|
-
var
|
|
305
|
-
(
|
|
303
|
+
if (typeof r[y] != "function") {
|
|
304
|
+
var N = Error(
|
|
305
|
+
(d || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
306
306
|
);
|
|
307
|
-
throw
|
|
307
|
+
throw N.name = "Invariant Violation", N;
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
} catch (
|
|
311
|
-
|
|
309
|
+
b = r[y](c, y, d, i, null, t);
|
|
310
|
+
} catch (I) {
|
|
311
|
+
b = I;
|
|
312
312
|
}
|
|
313
|
-
if (
|
|
314
|
-
(
|
|
315
|
-
),
|
|
316
|
-
|
|
317
|
-
var
|
|
313
|
+
if (b && !(b instanceof Error) && e(
|
|
314
|
+
(d || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof b + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
315
|
+
), b instanceof Error && !(b.message in s)) {
|
|
316
|
+
s[b.message] = !0;
|
|
317
|
+
var A = h ? h() : "";
|
|
318
318
|
e(
|
|
319
|
-
"Failed " +
|
|
319
|
+
"Failed " + i + " type: " + b.message + (A ?? "")
|
|
320
320
|
);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
return
|
|
326
|
-
process.env.NODE_ENV !== "production" && (
|
|
327
|
-
},
|
|
325
|
+
return a.resetWarningCache = function() {
|
|
326
|
+
process.env.NODE_ENV !== "production" && (s = {});
|
|
327
|
+
}, ue = a, ue;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
332
|
-
|
|
333
|
-
var e =
|
|
329
|
+
var pe, Oe;
|
|
330
|
+
function Be() {
|
|
331
|
+
if (Oe) return pe;
|
|
332
|
+
Oe = 1;
|
|
333
|
+
var e = Ie(), t = Ue(), s = /* @__PURE__ */ he(), n = /* @__PURE__ */ Me(), a = /* @__PURE__ */ ze(), r = function() {
|
|
334
334
|
};
|
|
335
|
-
process.env.NODE_ENV !== "production" && (r = function(
|
|
336
|
-
var
|
|
337
|
-
typeof console < "u" && console.error(
|
|
335
|
+
process.env.NODE_ENV !== "production" && (r = function(i) {
|
|
336
|
+
var d = "Warning: " + i;
|
|
337
|
+
typeof console < "u" && console.error(d);
|
|
338
338
|
try {
|
|
339
|
-
throw new Error(
|
|
339
|
+
throw new Error(d);
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
-
function
|
|
343
|
+
function c() {
|
|
344
344
|
return null;
|
|
345
345
|
}
|
|
346
|
-
return
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
var
|
|
350
|
-
if (typeof
|
|
351
|
-
return
|
|
346
|
+
return pe = function(i, d) {
|
|
347
|
+
var h = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
|
|
348
|
+
function b(o) {
|
|
349
|
+
var u = o && (h && o[h] || o[y]);
|
|
350
|
+
if (typeof u == "function")
|
|
351
|
+
return u;
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
array:
|
|
355
|
-
bigint:
|
|
356
|
-
bool:
|
|
357
|
-
func:
|
|
358
|
-
number:
|
|
359
|
-
object:
|
|
360
|
-
string:
|
|
361
|
-
symbol:
|
|
362
|
-
any:
|
|
353
|
+
var N = "<<anonymous>>", A = {
|
|
354
|
+
array: q("array"),
|
|
355
|
+
bigint: q("bigint"),
|
|
356
|
+
bool: q("boolean"),
|
|
357
|
+
func: q("function"),
|
|
358
|
+
number: q("number"),
|
|
359
|
+
object: q("object"),
|
|
360
|
+
string: q("string"),
|
|
361
|
+
symbol: q("symbol"),
|
|
362
|
+
any: F(),
|
|
363
363
|
arrayOf: $,
|
|
364
|
-
element:
|
|
365
|
-
elementType:
|
|
366
|
-
instanceOf:
|
|
367
|
-
node:
|
|
368
|
-
objectOf:
|
|
369
|
-
oneOf:
|
|
370
|
-
oneOfType:
|
|
371
|
-
shape:
|
|
372
|
-
exact:
|
|
364
|
+
element: j(),
|
|
365
|
+
elementType: l(),
|
|
366
|
+
instanceOf: Y,
|
|
367
|
+
node: re(),
|
|
368
|
+
objectOf: Q,
|
|
369
|
+
oneOf: G,
|
|
370
|
+
oneOfType: ee,
|
|
371
|
+
shape: te,
|
|
372
|
+
exact: ne
|
|
373
373
|
};
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function I(o, u) {
|
|
375
|
+
return o === u ? o !== 0 || 1 / o === 1 / u : o !== o && u !== u;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
this.message =
|
|
377
|
+
function O(o, u) {
|
|
378
|
+
this.message = o, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
379
379
|
}
|
|
380
|
-
|
|
381
|
-
function
|
|
380
|
+
O.prototype = Error.prototype;
|
|
381
|
+
function k(o) {
|
|
382
382
|
if (process.env.NODE_ENV !== "production")
|
|
383
|
-
var
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
383
|
+
var u = {}, E = 0;
|
|
384
|
+
function _(T, v, g, w, x, S, L) {
|
|
385
|
+
if (w = w || N, S = S || g, L !== s) {
|
|
386
|
+
if (d) {
|
|
387
387
|
var f = new Error(
|
|
388
388
|
"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"
|
|
389
389
|
);
|
|
390
390
|
throw f.name = "Invariant Violation", f;
|
|
391
391
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
392
|
-
var
|
|
393
|
-
!
|
|
392
|
+
var W = w + ":" + g;
|
|
393
|
+
!u[W] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
394
394
|
E < 3 && (r(
|
|
395
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
396
|
-
),
|
|
395
|
+
"You are manually calling a React.PropTypes validation function for the `" + S + "` prop on `" + w + "`. 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."
|
|
396
|
+
), u[W] = !0, E++);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
return
|
|
399
|
+
return v[g] == null ? T ? v[g] === null ? new O("The " + x + " `" + S + "` is marked as required " + ("in `" + w + "`, but its value is `null`.")) : new O("The " + x + " `" + S + "` is marked as required in " + ("`" + w + "`, but its value is `undefined`.")) : null : o(v, g, w, x, S);
|
|
400
400
|
}
|
|
401
|
-
var
|
|
402
|
-
return
|
|
401
|
+
var m = _.bind(null, !1);
|
|
402
|
+
return m.isRequired = _.bind(null, !0), m;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
function
|
|
406
|
-
var
|
|
407
|
-
if (
|
|
408
|
-
var
|
|
409
|
-
return new
|
|
410
|
-
"Invalid " +
|
|
411
|
-
{ expectedType:
|
|
404
|
+
function q(o) {
|
|
405
|
+
function u(E, _, m, T, v, g) {
|
|
406
|
+
var w = E[_], x = D(w);
|
|
407
|
+
if (x !== o) {
|
|
408
|
+
var S = U(w);
|
|
409
|
+
return new O(
|
|
410
|
+
"Invalid " + T + " `" + v + "` of type " + ("`" + S + "` supplied to `" + m + "`, expected ") + ("`" + o + "`."),
|
|
411
|
+
{ expectedType: o }
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
return null;
|
|
415
415
|
}
|
|
416
|
-
return
|
|
416
|
+
return k(u);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return
|
|
418
|
+
function F() {
|
|
419
|
+
return k(c);
|
|
420
420
|
}
|
|
421
|
-
function $(
|
|
422
|
-
function
|
|
423
|
-
if (typeof
|
|
424
|
-
return new
|
|
425
|
-
var
|
|
426
|
-
if (!Array.isArray(
|
|
427
|
-
var
|
|
428
|
-
return new
|
|
421
|
+
function $(o) {
|
|
422
|
+
function u(E, _, m, T, v) {
|
|
423
|
+
if (typeof o != "function")
|
|
424
|
+
return new O("Property `" + v + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
|
|
425
|
+
var g = E[_];
|
|
426
|
+
if (!Array.isArray(g)) {
|
|
427
|
+
var w = D(g);
|
|
428
|
+
return new O("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + m + "`, expected an array."));
|
|
429
429
|
}
|
|
430
|
-
for (var
|
|
431
|
-
var
|
|
432
|
-
if (
|
|
433
|
-
return
|
|
430
|
+
for (var x = 0; x < g.length; x++) {
|
|
431
|
+
var S = o(g, x, m, T, v + "[" + x + "]", s);
|
|
432
|
+
if (S instanceof Error)
|
|
433
|
+
return S;
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
|
-
return
|
|
437
|
+
return k(u);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
function
|
|
441
|
-
var
|
|
442
|
-
if (!
|
|
443
|
-
var
|
|
444
|
-
return new
|
|
439
|
+
function j() {
|
|
440
|
+
function o(u, E, _, m, T) {
|
|
441
|
+
var v = u[E];
|
|
442
|
+
if (!i(v)) {
|
|
443
|
+
var g = D(v);
|
|
444
|
+
return new O("Invalid " + m + " `" + T + "` of type " + ("`" + g + "` supplied to `" + _ + "`, expected a single ReactElement."));
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return k(o);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
function
|
|
452
|
-
var
|
|
453
|
-
if (!e.isValidElementType(
|
|
454
|
-
var
|
|
455
|
-
return new
|
|
450
|
+
function l() {
|
|
451
|
+
function o(u, E, _, m, T) {
|
|
452
|
+
var v = u[E];
|
|
453
|
+
if (!e.isValidElementType(v)) {
|
|
454
|
+
var g = D(v);
|
|
455
|
+
return new O("Invalid " + m + " `" + T + "` of type " + ("`" + g + "` supplied to `" + _ + "`, expected a single ReactElement type."));
|
|
456
456
|
}
|
|
457
457
|
return null;
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return k(o);
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
function
|
|
463
|
-
if (!(E[
|
|
464
|
-
var
|
|
465
|
-
return new
|
|
461
|
+
function Y(o) {
|
|
462
|
+
function u(E, _, m, T, v) {
|
|
463
|
+
if (!(E[_] instanceof o)) {
|
|
464
|
+
var g = o.name || N, w = oe(E[_]);
|
|
465
|
+
return new O("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + m + "`, expected ") + ("instance of `" + g + "`."));
|
|
466
466
|
}
|
|
467
467
|
return null;
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return k(u);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
if (!Array.isArray(
|
|
471
|
+
function G(o) {
|
|
472
|
+
if (!Array.isArray(o))
|
|
473
473
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
474
474
|
"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])."
|
|
475
|
-
) : r("Invalid argument supplied to oneOf, expected an array.")),
|
|
476
|
-
function
|
|
477
|
-
for (var
|
|
478
|
-
if (
|
|
475
|
+
) : r("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
476
|
+
function u(E, _, m, T, v) {
|
|
477
|
+
for (var g = E[_], w = 0; w < o.length; w++)
|
|
478
|
+
if (I(g, o[w]))
|
|
479
479
|
return null;
|
|
480
|
-
var
|
|
481
|
-
var
|
|
482
|
-
return
|
|
480
|
+
var x = JSON.stringify(o, function(L, f) {
|
|
481
|
+
var W = U(f);
|
|
482
|
+
return W === "symbol" ? String(f) : f;
|
|
483
483
|
});
|
|
484
|
-
return new
|
|
484
|
+
return new O("Invalid " + T + " `" + v + "` of value `" + String(g) + "` " + ("supplied to `" + m + "`, expected one of " + x + "."));
|
|
485
485
|
}
|
|
486
|
-
return
|
|
486
|
+
return k(u);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
function
|
|
490
|
-
if (typeof
|
|
491
|
-
return new
|
|
492
|
-
var
|
|
493
|
-
if (
|
|
494
|
-
return new
|
|
495
|
-
for (var
|
|
496
|
-
if (
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
488
|
+
function Q(o) {
|
|
489
|
+
function u(E, _, m, T, v) {
|
|
490
|
+
if (typeof o != "function")
|
|
491
|
+
return new O("Property `" + v + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
|
|
492
|
+
var g = E[_], w = D(g);
|
|
493
|
+
if (w !== "object")
|
|
494
|
+
return new O("Invalid " + T + " `" + v + "` of type " + ("`" + w + "` supplied to `" + m + "`, expected an object."));
|
|
495
|
+
for (var x in g)
|
|
496
|
+
if (n(g, x)) {
|
|
497
|
+
var S = o(g, x, m, T, v + "." + x, s);
|
|
498
|
+
if (S instanceof Error)
|
|
499
|
+
return S;
|
|
500
500
|
}
|
|
501
501
|
return null;
|
|
502
502
|
}
|
|
503
|
-
return
|
|
503
|
+
return k(u);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
if (!Array.isArray(
|
|
507
|
-
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
508
|
-
for (var
|
|
509
|
-
var E =
|
|
505
|
+
function ee(o) {
|
|
506
|
+
if (!Array.isArray(o))
|
|
507
|
+
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
508
|
+
for (var u = 0; u < o.length; u++) {
|
|
509
|
+
var E = o[u];
|
|
510
510
|
if (typeof E != "function")
|
|
511
511
|
return r(
|
|
512
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
513
|
-
),
|
|
512
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(E) + " at index " + u + "."
|
|
513
|
+
), c;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
for (var
|
|
517
|
-
var L =
|
|
515
|
+
function _(m, T, v, g, w) {
|
|
516
|
+
for (var x = [], S = 0; S < o.length; S++) {
|
|
517
|
+
var L = o[S], f = L(m, T, v, g, w, s);
|
|
518
518
|
if (f == null)
|
|
519
519
|
return null;
|
|
520
|
-
f.data &&
|
|
520
|
+
f.data && n(f.data, "expectedType") && x.push(f.data.expectedType);
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
return new
|
|
522
|
+
var W = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
|
|
523
|
+
return new O("Invalid " + g + " `" + w + "` supplied to " + ("`" + v + "`" + W + "."));
|
|
524
524
|
}
|
|
525
|
-
return
|
|
525
|
+
return k(_);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
function
|
|
529
|
-
return
|
|
527
|
+
function re() {
|
|
528
|
+
function o(u, E, _, m, T) {
|
|
529
|
+
return z(u[E]) ? null : new O("Invalid " + m + " `" + T + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
|
|
530
530
|
}
|
|
531
|
-
return
|
|
531
|
+
return k(o);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
return new
|
|
535
|
-
(
|
|
533
|
+
function V(o, u, E, _, m) {
|
|
534
|
+
return new O(
|
|
535
|
+
(o || "React class") + ": " + u + " type `" + E + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
|
|
536
536
|
);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
function
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
542
|
-
return new
|
|
543
|
-
for (var
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
return
|
|
547
|
-
var L =
|
|
538
|
+
function te(o) {
|
|
539
|
+
function u(E, _, m, T, v) {
|
|
540
|
+
var g = E[_], w = D(g);
|
|
541
|
+
if (w !== "object")
|
|
542
|
+
return new O("Invalid " + T + " `" + v + "` of type `" + w + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
543
|
+
for (var x in o) {
|
|
544
|
+
var S = o[x];
|
|
545
|
+
if (typeof S != "function")
|
|
546
|
+
return V(m, T, v, x, U(S));
|
|
547
|
+
var L = S(g, x, m, T, v + "." + x, s);
|
|
548
548
|
if (L)
|
|
549
549
|
return L;
|
|
550
550
|
}
|
|
551
551
|
return null;
|
|
552
552
|
}
|
|
553
|
-
return
|
|
553
|
+
return k(u);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
function
|
|
557
|
-
var
|
|
558
|
-
if (
|
|
559
|
-
return new
|
|
560
|
-
var
|
|
561
|
-
for (var
|
|
562
|
-
var L =
|
|
563
|
-
if (o
|
|
564
|
-
return
|
|
555
|
+
function ne(o) {
|
|
556
|
+
function u(E, _, m, T, v) {
|
|
557
|
+
var g = E[_], w = D(g);
|
|
558
|
+
if (w !== "object")
|
|
559
|
+
return new O("Invalid " + T + " `" + v + "` of type `" + w + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
560
|
+
var x = t({}, E[_], o);
|
|
561
|
+
for (var S in x) {
|
|
562
|
+
var L = o[S];
|
|
563
|
+
if (n(o, S) && typeof L != "function")
|
|
564
|
+
return V(m, T, v, S, U(L));
|
|
565
565
|
if (!L)
|
|
566
|
-
return new
|
|
567
|
-
"Invalid " +
|
|
568
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
566
|
+
return new O(
|
|
567
|
+
"Invalid " + T + " `" + v + "` key `" + S + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(E[_], null, " ") + `
|
|
568
|
+
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
569
569
|
);
|
|
570
|
-
var f = L(
|
|
570
|
+
var f = L(g, S, m, T, v + "." + S, s);
|
|
571
571
|
if (f)
|
|
572
572
|
return f;
|
|
573
573
|
}
|
|
574
574
|
return null;
|
|
575
575
|
}
|
|
576
|
-
return
|
|
576
|
+
return k(u);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
switch (typeof
|
|
578
|
+
function z(o) {
|
|
579
|
+
switch (typeof o) {
|
|
580
580
|
case "number":
|
|
581
581
|
case "string":
|
|
582
582
|
case "undefined":
|
|
583
583
|
return !0;
|
|
584
584
|
case "boolean":
|
|
585
|
-
return !
|
|
585
|
+
return !o;
|
|
586
586
|
case "object":
|
|
587
|
-
if (Array.isArray(
|
|
588
|
-
return
|
|
589
|
-
if (
|
|
587
|
+
if (Array.isArray(o))
|
|
588
|
+
return o.every(z);
|
|
589
|
+
if (o === null || i(o))
|
|
590
590
|
return !0;
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
var E =
|
|
594
|
-
if (
|
|
595
|
-
for (; !(
|
|
596
|
-
if (!
|
|
591
|
+
var u = b(o);
|
|
592
|
+
if (u) {
|
|
593
|
+
var E = u.call(o), _;
|
|
594
|
+
if (u !== o.entries) {
|
|
595
|
+
for (; !(_ = E.next()).done; )
|
|
596
|
+
if (!z(_.value))
|
|
597
597
|
return !1;
|
|
598
598
|
} else
|
|
599
|
-
for (; !(
|
|
600
|
-
var
|
|
601
|
-
if (
|
|
599
|
+
for (; !(_ = E.next()).done; ) {
|
|
600
|
+
var m = _.value;
|
|
601
|
+
if (m && !z(m[1]))
|
|
602
602
|
return !1;
|
|
603
603
|
}
|
|
604
604
|
} else
|
|
@@ -608,701 +608,625 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
|
|
|
608
608
|
return !1;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
611
|
+
function ae(o, u) {
|
|
612
|
+
return o === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
613
613
|
}
|
|
614
|
-
function D(
|
|
615
|
-
var
|
|
616
|
-
return Array.isArray(
|
|
614
|
+
function D(o) {
|
|
615
|
+
var u = typeof o;
|
|
616
|
+
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : ae(u, o) ? "symbol" : u;
|
|
617
617
|
}
|
|
618
|
-
function U(
|
|
619
|
-
if (typeof
|
|
620
|
-
return "" +
|
|
621
|
-
var
|
|
622
|
-
if (
|
|
623
|
-
if (
|
|
618
|
+
function U(o) {
|
|
619
|
+
if (typeof o > "u" || o === null)
|
|
620
|
+
return "" + o;
|
|
621
|
+
var u = D(o);
|
|
622
|
+
if (u === "object") {
|
|
623
|
+
if (o instanceof Date)
|
|
624
624
|
return "date";
|
|
625
|
-
if (
|
|
625
|
+
if (o instanceof RegExp)
|
|
626
626
|
return "regexp";
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return u;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
var
|
|
632
|
-
switch (
|
|
630
|
+
function H(o) {
|
|
631
|
+
var u = U(o);
|
|
632
|
+
switch (u) {
|
|
633
633
|
case "array":
|
|
634
634
|
case "object":
|
|
635
|
-
return "an " +
|
|
635
|
+
return "an " + u;
|
|
636
636
|
case "boolean":
|
|
637
637
|
case "date":
|
|
638
638
|
case "regexp":
|
|
639
|
-
return "a " +
|
|
639
|
+
return "a " + u;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return u;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
return !
|
|
644
|
+
function oe(o) {
|
|
645
|
+
return !o.constructor || !o.constructor.name ? N : o.constructor.name;
|
|
646
646
|
}
|
|
647
|
-
return
|
|
648
|
-
},
|
|
647
|
+
return A.checkPropTypes = a, A.resetWarningCache = a.resetWarningCache, A.PropTypes = A, A;
|
|
648
|
+
}, pe;
|
|
649
649
|
}
|
|
650
|
-
var
|
|
651
|
-
function
|
|
652
|
-
if (
|
|
653
|
-
|
|
650
|
+
var de, Ne;
|
|
651
|
+
function Ve() {
|
|
652
|
+
if (Ne) return de;
|
|
653
|
+
Ne = 1;
|
|
654
654
|
var e = /* @__PURE__ */ he();
|
|
655
|
-
function
|
|
655
|
+
function t() {
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function s() {
|
|
658
658
|
}
|
|
659
|
-
return
|
|
660
|
-
function
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
659
|
+
return s.resetWarningCache = t, de = function() {
|
|
660
|
+
function n(c, i, d, h, y, b) {
|
|
661
|
+
if (b !== e) {
|
|
662
|
+
var N = new Error(
|
|
663
663
|
"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"
|
|
664
664
|
);
|
|
665
|
-
throw
|
|
665
|
+
throw N.name = "Invariant Violation", N;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
|
|
669
|
-
function
|
|
670
|
-
return
|
|
668
|
+
n.isRequired = n;
|
|
669
|
+
function a() {
|
|
670
|
+
return n;
|
|
671
671
|
}
|
|
672
672
|
var r = {
|
|
673
|
-
array:
|
|
674
|
-
bigint:
|
|
675
|
-
bool:
|
|
676
|
-
func:
|
|
677
|
-
number:
|
|
678
|
-
object:
|
|
679
|
-
string:
|
|
680
|
-
symbol:
|
|
681
|
-
any:
|
|
682
|
-
arrayOf:
|
|
683
|
-
element:
|
|
684
|
-
elementType:
|
|
685
|
-
instanceOf:
|
|
686
|
-
node:
|
|
687
|
-
objectOf:
|
|
688
|
-
oneOf:
|
|
689
|
-
oneOfType:
|
|
690
|
-
shape:
|
|
691
|
-
exact:
|
|
692
|
-
checkPropTypes:
|
|
693
|
-
resetWarningCache:
|
|
673
|
+
array: n,
|
|
674
|
+
bigint: n,
|
|
675
|
+
bool: n,
|
|
676
|
+
func: n,
|
|
677
|
+
number: n,
|
|
678
|
+
object: n,
|
|
679
|
+
string: n,
|
|
680
|
+
symbol: n,
|
|
681
|
+
any: n,
|
|
682
|
+
arrayOf: a,
|
|
683
|
+
element: n,
|
|
684
|
+
elementType: n,
|
|
685
|
+
instanceOf: a,
|
|
686
|
+
node: n,
|
|
687
|
+
objectOf: a,
|
|
688
|
+
oneOf: a,
|
|
689
|
+
oneOfType: a,
|
|
690
|
+
shape: a,
|
|
691
|
+
exact: a,
|
|
692
|
+
checkPropTypes: s,
|
|
693
|
+
resetWarningCache: t
|
|
694
694
|
};
|
|
695
695
|
return r.PropTypes = r, r;
|
|
696
|
-
},
|
|
696
|
+
}, de;
|
|
697
697
|
}
|
|
698
|
-
var
|
|
699
|
-
function
|
|
700
|
-
if (
|
|
701
|
-
if (
|
|
702
|
-
var e =
|
|
703
|
-
|
|
698
|
+
var Ae;
|
|
699
|
+
function He() {
|
|
700
|
+
if (Ae) return Z.exports;
|
|
701
|
+
if (Ae = 1, process.env.NODE_ENV !== "production") {
|
|
702
|
+
var e = Ie(), t = !0;
|
|
703
|
+
Z.exports = /* @__PURE__ */ Be()(e.isElement, t);
|
|
704
704
|
} else
|
|
705
|
-
|
|
706
|
-
return
|
|
705
|
+
Z.exports = /* @__PURE__ */ Ve()();
|
|
706
|
+
return Z.exports;
|
|
707
707
|
}
|
|
708
|
-
var
|
|
709
|
-
const
|
|
710
|
-
const
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
/* @__PURE__ */
|
|
713
|
-
|
|
714
|
-
/* @__PURE__ */
|
|
708
|
+
var Je = /* @__PURE__ */ He();
|
|
709
|
+
const X = /* @__PURE__ */ $e(Je), Ze = ({ content: e, title: t, className: s, id: n = "accordion" }) => {
|
|
710
|
+
const a = M("rpf-accordion", s);
|
|
711
|
+
return /* @__PURE__ */ P("details", { className: a, id: `${n}`, children: [
|
|
712
|
+
/* @__PURE__ */ P("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
713
|
+
t,
|
|
714
|
+
/* @__PURE__ */ p("span", { className: "rpf-accordion__icon" })
|
|
715
715
|
] }),
|
|
716
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ p("p", { className: "rpf-accordion__text", children: e })
|
|
717
717
|
] });
|
|
718
718
|
};
|
|
719
|
-
|
|
720
|
-
content:
|
|
721
|
-
title:
|
|
722
|
-
id:
|
|
723
|
-
className:
|
|
719
|
+
Ze.propTypes = {
|
|
720
|
+
content: X.string.isRequired,
|
|
721
|
+
title: X.string.isRequired,
|
|
722
|
+
id: X.string,
|
|
723
|
+
className: X.string
|
|
724
724
|
};
|
|
725
|
-
const
|
|
725
|
+
const B = ({
|
|
726
726
|
text: e,
|
|
727
|
-
href:
|
|
728
|
-
title:
|
|
729
|
-
className:
|
|
730
|
-
type:
|
|
727
|
+
href: t,
|
|
728
|
+
title: s,
|
|
729
|
+
className: n,
|
|
730
|
+
type: a = "primary",
|
|
731
731
|
variant: r = "",
|
|
732
|
-
size:
|
|
733
|
-
icon:
|
|
734
|
-
iconOnly:
|
|
735
|
-
iconPosition:
|
|
736
|
-
fullWidth:
|
|
737
|
-
disabled:
|
|
738
|
-
onClick:
|
|
732
|
+
size: c = "default",
|
|
733
|
+
icon: i = "",
|
|
734
|
+
iconOnly: d = !1,
|
|
735
|
+
iconPosition: h = "left",
|
|
736
|
+
fullWidth: y = !1,
|
|
737
|
+
disabled: b = !1,
|
|
738
|
+
onClick: N = () => {
|
|
739
739
|
},
|
|
740
|
-
"aria-label":
|
|
741
|
-
linkComponent:
|
|
740
|
+
"aria-label": A = "",
|
|
741
|
+
linkComponent: I
|
|
742
742
|
// to pass in react-router-dom Link component
|
|
743
743
|
}) => {
|
|
744
|
-
const
|
|
744
|
+
const O = i && d, k = M(
|
|
745
745
|
// Static classes
|
|
746
746
|
"rpf-button",
|
|
747
747
|
// Conditional classes
|
|
748
748
|
{
|
|
749
|
-
[`rpf-button--${
|
|
749
|
+
[`rpf-button--${a}`]: a,
|
|
750
750
|
"rpf-button--danger": r === "danger",
|
|
751
|
-
"rpf-button--sm":
|
|
752
|
-
"rpf-button--icon-only":
|
|
753
|
-
"rpf-button--full-width":
|
|
754
|
-
disabled:
|
|
751
|
+
"rpf-button--sm": c === "small",
|
|
752
|
+
"rpf-button--icon-only": O,
|
|
753
|
+
"rpf-button--full-width": y,
|
|
754
|
+
disabled: b
|
|
755
755
|
},
|
|
756
|
-
|
|
756
|
+
n
|
|
757
757
|
);
|
|
758
|
-
let
|
|
759
|
-
|
|
758
|
+
let q = "rpf-button__icon";
|
|
759
|
+
Le.isValidElement(i) ? (q += " icon", console.warn(
|
|
760
760
|
"DEPRECATED: icons as React elements will not be supported in future releases"
|
|
761
|
-
)) :
|
|
762
|
-
const
|
|
763
|
-
|
|
761
|
+
)) : q += " material-symbols-sharp";
|
|
762
|
+
const F = (l, Y) => !Y || h !== l ? null : typeof Y == "string" ? /* @__PURE__ */ p("span", { className: q, children: Y }) : Y, $ = () => e && !O && /* @__PURE__ */ p("span", { className: "text", children: e }), j = /* @__PURE__ */ P(me, { children: [
|
|
763
|
+
F("left", i),
|
|
764
764
|
$(),
|
|
765
|
-
|
|
765
|
+
F("right", i)
|
|
766
766
|
] });
|
|
767
|
-
return
|
|
768
|
-
|
|
767
|
+
return t ? /* @__PURE__ */ p(
|
|
768
|
+
I || "a",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
771
|
-
...
|
|
772
|
-
onClick:
|
|
773
|
-
"aria-label":
|
|
774
|
-
children:
|
|
770
|
+
className: k,
|
|
771
|
+
...I ? { to: t } : { href: t, role: "button" },
|
|
772
|
+
onClick: N,
|
|
773
|
+
"aria-label": A,
|
|
774
|
+
children: j
|
|
775
775
|
}
|
|
776
|
-
) : /* @__PURE__ */
|
|
776
|
+
) : /* @__PURE__ */ p(
|
|
777
777
|
"button",
|
|
778
778
|
{
|
|
779
|
-
className:
|
|
780
|
-
title:
|
|
781
|
-
onClick:
|
|
782
|
-
disabled:
|
|
783
|
-
"aria-label":
|
|
784
|
-
children:
|
|
779
|
+
className: k,
|
|
780
|
+
title: s,
|
|
781
|
+
onClick: N,
|
|
782
|
+
disabled: b,
|
|
783
|
+
"aria-label": A,
|
|
784
|
+
children: j
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
|
-
},
|
|
787
|
+
}, ur = ({
|
|
788
788
|
title: e,
|
|
789
|
-
text:
|
|
790
|
-
titleChildren:
|
|
791
|
-
children:
|
|
792
|
-
type:
|
|
789
|
+
text: t,
|
|
790
|
+
titleChildren: s,
|
|
791
|
+
children: n,
|
|
792
|
+
type: a,
|
|
793
793
|
actions: r,
|
|
794
|
-
onClose:
|
|
795
|
-
}) => /* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
|
|
799
|
-
!!
|
|
800
|
-
|
|
794
|
+
onClose: c
|
|
795
|
+
}) => /* @__PURE__ */ P("div", { className: `rpf-alert rpf-alert--${a}`, children: [
|
|
796
|
+
/* @__PURE__ */ P("div", { className: "rpf-alert__header", children: [
|
|
797
|
+
/* @__PURE__ */ p("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
798
|
+
s ? /* @__PURE__ */ p("div", { className: "rpf-alert__title", children: s }) : e ? /* @__PURE__ */ p("p", { className: "rpf-alert__title", children: e }) : null,
|
|
799
|
+
!!c && /* @__PURE__ */ p("div", { className: "rpf-alert__close", children: /* @__PURE__ */ p(
|
|
800
|
+
B,
|
|
801
801
|
{
|
|
802
802
|
type: "tertiary",
|
|
803
803
|
icon: "close",
|
|
804
804
|
size: "small",
|
|
805
805
|
iconOnly: !0,
|
|
806
|
-
onClick:
|
|
806
|
+
onClick: c
|
|
807
807
|
}
|
|
808
808
|
) })
|
|
809
809
|
] }),
|
|
810
|
-
(
|
|
811
|
-
|
|
812
|
-
r && r.length > 0 && /* @__PURE__ */
|
|
813
|
-
|
|
810
|
+
(t || n || r) && /* @__PURE__ */ P("div", { className: "rpf-alert__body", children: [
|
|
811
|
+
t ? /* @__PURE__ */ p("p", { children: t }) : n ? /* @__PURE__ */ p("div", { children: n }) : null,
|
|
812
|
+
r && r.length > 0 && /* @__PURE__ */ p("div", { className: "rpf-alert__actions", children: r.map((i, d) => /* @__PURE__ */ p(
|
|
813
|
+
B,
|
|
814
814
|
{
|
|
815
|
-
text:
|
|
815
|
+
text: i.label,
|
|
816
816
|
size: "small",
|
|
817
817
|
type: "tertiary",
|
|
818
|
-
href:
|
|
819
|
-
onClick:
|
|
818
|
+
href: i.href,
|
|
819
|
+
onClick: i.onClick
|
|
820
820
|
},
|
|
821
|
-
|
|
821
|
+
d
|
|
822
822
|
)) })
|
|
823
823
|
] })
|
|
824
|
-
] }),
|
|
824
|
+
] }), pr = ({
|
|
825
825
|
id: e,
|
|
826
|
-
label:
|
|
827
|
-
name:
|
|
828
|
-
checked:
|
|
829
|
-
disabled:
|
|
826
|
+
label: t,
|
|
827
|
+
name: s,
|
|
828
|
+
checked: n = !1,
|
|
829
|
+
disabled: a = !1,
|
|
830
830
|
error: r = "",
|
|
831
|
-
onChange:
|
|
831
|
+
onChange: c = () => {
|
|
832
832
|
},
|
|
833
|
-
value:
|
|
834
|
-
className:
|
|
835
|
-
}) => /* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
833
|
+
value: i = "",
|
|
834
|
+
className: d = ""
|
|
835
|
+
}) => /* @__PURE__ */ P(me, { children: [
|
|
836
|
+
/* @__PURE__ */ P(
|
|
837
837
|
"label",
|
|
838
838
|
{
|
|
839
|
-
className:
|
|
839
|
+
className: M("rpf-input-checkbox", {
|
|
840
840
|
"rpf-input-checkbox--error": r,
|
|
841
|
-
className:
|
|
841
|
+
className: d
|
|
842
842
|
}),
|
|
843
843
|
children: [
|
|
844
|
-
/* @__PURE__ */
|
|
844
|
+
/* @__PURE__ */ p(
|
|
845
845
|
"input",
|
|
846
846
|
{
|
|
847
|
-
checked: !!
|
|
848
|
-
disabled:
|
|
847
|
+
checked: !!n,
|
|
848
|
+
disabled: a,
|
|
849
849
|
id: e,
|
|
850
|
-
name:
|
|
851
|
-
onChange:
|
|
850
|
+
name: s,
|
|
851
|
+
onChange: c,
|
|
852
852
|
type: "checkbox",
|
|
853
|
-
value:
|
|
853
|
+
value: i
|
|
854
854
|
}
|
|
855
855
|
),
|
|
856
|
-
|
|
856
|
+
t
|
|
857
857
|
]
|
|
858
858
|
}
|
|
859
859
|
),
|
|
860
|
-
r && /* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
860
|
+
r && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
|
|
861
|
+
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
862
862
|
r
|
|
863
863
|
] })
|
|
864
|
-
] }),
|
|
864
|
+
] }), dr = ({
|
|
865
865
|
disabled: e = !1,
|
|
866
|
-
errorText:
|
|
867
|
-
fullWidth:
|
|
868
|
-
legendText:
|
|
869
|
-
legendHintText:
|
|
866
|
+
errorText: t = "",
|
|
867
|
+
fullWidth: s = !1,
|
|
868
|
+
legendText: n,
|
|
869
|
+
legendHintText: a = "",
|
|
870
870
|
children: r
|
|
871
|
-
}) => /* @__PURE__ */
|
|
871
|
+
}) => /* @__PURE__ */ P(
|
|
872
872
|
"fieldset",
|
|
873
873
|
{
|
|
874
|
-
className:
|
|
874
|
+
className: M("rpf-fieldset", {
|
|
875
875
|
"rpf-fieldset--disabled": e,
|
|
876
|
-
"rpf-fieldset--full-width":
|
|
877
|
-
"rpf-fieldset--error":
|
|
876
|
+
"rpf-fieldset--full-width": s,
|
|
877
|
+
"rpf-fieldset--error": t
|
|
878
878
|
}),
|
|
879
879
|
disabled: e,
|
|
880
880
|
children: [
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
|
|
883
|
-
|
|
881
|
+
/* @__PURE__ */ P("legend", { className: "rpf-label", children: [
|
|
882
|
+
n,
|
|
883
|
+
a.length > 0 ? /* @__PURE__ */ p("small", { className: "rpf-label__hint", children: a }) : null
|
|
884
884
|
] }),
|
|
885
|
-
/* @__PURE__ */
|
|
886
|
-
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
|
|
885
|
+
/* @__PURE__ */ p("div", { className: "rpf-fieldset__inputs", children: r }),
|
|
886
|
+
t.length > 0 ? /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
|
|
887
|
+
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
888
|
+
t
|
|
889
889
|
] }) : null
|
|
890
890
|
]
|
|
891
891
|
}
|
|
892
|
-
)
|
|
893
|
-
Be.propTypes = {
|
|
894
|
-
disabled: a.bool,
|
|
895
|
-
errorText: a.string,
|
|
896
|
-
fullWidth: a.bool,
|
|
897
|
-
legendText: a.string.isRequired,
|
|
898
|
-
legendHintText: a.string,
|
|
899
|
-
children: a.node
|
|
900
|
-
};
|
|
901
|
-
const Q = ({
|
|
892
|
+
), ve = ({
|
|
902
893
|
id: e,
|
|
903
|
-
label:
|
|
904
|
-
children:
|
|
905
|
-
disabled:
|
|
906
|
-
error:
|
|
894
|
+
label: t,
|
|
895
|
+
children: s,
|
|
896
|
+
disabled: n = !1,
|
|
897
|
+
error: a = "",
|
|
907
898
|
hint: r = ""
|
|
908
|
-
}) => /* @__PURE__ */
|
|
909
|
-
(
|
|
899
|
+
}) => /* @__PURE__ */ P("div", { className: "rpf-input-field", children: [
|
|
900
|
+
(t || r) && /* @__PURE__ */ P(
|
|
910
901
|
"label",
|
|
911
902
|
{
|
|
912
903
|
htmlFor: e,
|
|
913
|
-
className:
|
|
914
|
-
"rpf-label--disabled":
|
|
904
|
+
className: M("rpf-label", {
|
|
905
|
+
"rpf-label--disabled": n
|
|
915
906
|
}),
|
|
916
907
|
children: [
|
|
917
|
-
|
|
918
|
-
/* @__PURE__ */
|
|
908
|
+
t,
|
|
909
|
+
/* @__PURE__ */ p("small", { className: "rpf-label__hint", children: r })
|
|
919
910
|
]
|
|
920
911
|
}
|
|
921
912
|
),
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
/* @__PURE__ */
|
|
925
|
-
|
|
913
|
+
s,
|
|
914
|
+
a && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
|
|
915
|
+
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
916
|
+
a
|
|
926
917
|
] })
|
|
927
|
-
] })
|
|
928
|
-
Q.propTypes = {
|
|
929
|
-
disabled: a.bool,
|
|
930
|
-
error: a.string,
|
|
931
|
-
hint: a.oneOfType([a.string, a.object]),
|
|
932
|
-
label: a.oneOfType([a.string, a.object]).isRequired,
|
|
933
|
-
id: a.string.isRequired,
|
|
934
|
-
children: a.node
|
|
935
|
-
};
|
|
936
|
-
const Ve = ({
|
|
918
|
+
] }), yr = ({
|
|
937
919
|
label: e,
|
|
938
|
-
inputFieldId:
|
|
939
|
-
disabled:
|
|
940
|
-
hint:
|
|
941
|
-
}) => /* @__PURE__ */
|
|
920
|
+
inputFieldId: t,
|
|
921
|
+
disabled: s = !1,
|
|
922
|
+
hint: n = ""
|
|
923
|
+
}) => /* @__PURE__ */ p("div", { className: "rpf-label", children: /* @__PURE__ */ P(
|
|
942
924
|
"label",
|
|
943
925
|
{
|
|
944
|
-
htmlFor:
|
|
945
|
-
className:
|
|
946
|
-
"rpf-label--disabled":
|
|
926
|
+
htmlFor: t,
|
|
927
|
+
className: M("rpf-label", {
|
|
928
|
+
"rpf-label--disabled": s
|
|
947
929
|
}),
|
|
948
930
|
children: [
|
|
949
931
|
e,
|
|
950
|
-
|
|
932
|
+
n && /* @__PURE__ */ p("div", { className: "rpf-label__hint", children: n })
|
|
951
933
|
]
|
|
952
934
|
}
|
|
953
|
-
) })
|
|
954
|
-
Ve.propTypes = {
|
|
955
|
-
disabled: a.bool,
|
|
956
|
-
hint: a.oneOfType([a.string, a.object]),
|
|
957
|
-
label: a.oneOfType([a.string, a.object]).isRequired,
|
|
958
|
-
inputFieldId: a.string.isRequired
|
|
959
|
-
};
|
|
960
|
-
const He = ({
|
|
935
|
+
) }), mr = ({
|
|
961
936
|
id: e,
|
|
962
|
-
label:
|
|
963
|
-
name:
|
|
964
|
-
checked:
|
|
965
|
-
disabled:
|
|
937
|
+
label: t,
|
|
938
|
+
name: s,
|
|
939
|
+
checked: n = !1,
|
|
940
|
+
disabled: a = !1,
|
|
966
941
|
fullWidth: r = !1,
|
|
967
|
-
onChange:
|
|
942
|
+
onChange: c = () => {
|
|
968
943
|
},
|
|
969
|
-
value:
|
|
970
|
-
}) => /* @__PURE__ */
|
|
944
|
+
value: i = ""
|
|
945
|
+
}) => /* @__PURE__ */ P(
|
|
971
946
|
"label",
|
|
972
947
|
{
|
|
973
|
-
className:
|
|
974
|
-
"rpf-input-radio--disabled":
|
|
948
|
+
className: M("rpf-input-radio", {
|
|
949
|
+
"rpf-input-radio--disabled": a,
|
|
975
950
|
"rpf-input--full-width": r
|
|
976
951
|
}),
|
|
977
952
|
children: [
|
|
978
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ p(
|
|
979
954
|
"input",
|
|
980
955
|
{
|
|
981
|
-
checked: !!
|
|
982
|
-
disabled:
|
|
956
|
+
checked: !!n,
|
|
957
|
+
disabled: a,
|
|
983
958
|
id: e,
|
|
984
|
-
name:
|
|
985
|
-
onChange:
|
|
959
|
+
name: s,
|
|
960
|
+
onChange: c,
|
|
986
961
|
type: "radio",
|
|
987
|
-
value:
|
|
962
|
+
value: i
|
|
988
963
|
}
|
|
989
964
|
),
|
|
990
|
-
|
|
965
|
+
t
|
|
991
966
|
]
|
|
992
967
|
}
|
|
993
|
-
)
|
|
994
|
-
He.propTypes = {
|
|
995
|
-
checked: a.bool,
|
|
996
|
-
disabled: a.bool,
|
|
997
|
-
fullWidth: a.bool,
|
|
998
|
-
id: a.string.isRequired,
|
|
999
|
-
label: a.oneOfType([a.string, a.object]).isRequired,
|
|
1000
|
-
name: a.string.isRequired,
|
|
1001
|
-
onChange: a.func,
|
|
1002
|
-
value: a.string
|
|
1003
|
-
};
|
|
1004
|
-
const tr = ({
|
|
968
|
+
), hr = ({
|
|
1005
969
|
label: e,
|
|
1006
|
-
inputFieldId:
|
|
1007
|
-
disabled:
|
|
1008
|
-
error:
|
|
1009
|
-
hint:
|
|
970
|
+
inputFieldId: t,
|
|
971
|
+
disabled: s = !1,
|
|
972
|
+
error: n = "",
|
|
973
|
+
hint: a = "",
|
|
1010
974
|
placeholder: r = "",
|
|
1011
|
-
defaultValue:
|
|
1012
|
-
onClick:
|
|
975
|
+
defaultValue: c = "",
|
|
976
|
+
onClick: i = () => {
|
|
1013
977
|
},
|
|
1014
|
-
onChange:
|
|
978
|
+
onChange: d = () => {
|
|
1015
979
|
}
|
|
1016
|
-
}) => /* @__PURE__ */
|
|
1017
|
-
/* @__PURE__ */
|
|
980
|
+
}) => /* @__PURE__ */ p("search", { children: /* @__PURE__ */ P("form", { className: "rpf-input-field", onSubmit: i, children: [
|
|
981
|
+
/* @__PURE__ */ P(
|
|
1018
982
|
"label",
|
|
1019
983
|
{
|
|
1020
|
-
htmlFor:
|
|
1021
|
-
className:
|
|
1022
|
-
"rpf-label--disabled":
|
|
984
|
+
htmlFor: t,
|
|
985
|
+
className: M("rpf-label", {
|
|
986
|
+
"rpf-label--disabled": s
|
|
1023
987
|
}),
|
|
1024
988
|
children: [
|
|
1025
989
|
e,
|
|
1026
|
-
|
|
990
|
+
a && /* @__PURE__ */ p("small", { className: "rpf-label__hint", children: a })
|
|
1027
991
|
]
|
|
1028
992
|
}
|
|
1029
993
|
),
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */
|
|
994
|
+
/* @__PURE__ */ P("div", { className: "rpf-input-search-container", children: [
|
|
995
|
+
/* @__PURE__ */ p(
|
|
1032
996
|
"input",
|
|
1033
997
|
{
|
|
1034
|
-
className:
|
|
1035
|
-
"rpf-input--disabled":
|
|
1036
|
-
"rpf-input--error":
|
|
998
|
+
className: M("rpf-input rpf-input-search", {
|
|
999
|
+
"rpf-input--disabled": s,
|
|
1000
|
+
"rpf-input--error": n
|
|
1037
1001
|
}),
|
|
1038
|
-
disabled:
|
|
1039
|
-
id:
|
|
1002
|
+
disabled: s,
|
|
1003
|
+
id: t,
|
|
1040
1004
|
name: "search",
|
|
1041
1005
|
type: "search",
|
|
1042
1006
|
"aria-label": "Search",
|
|
1043
|
-
defaultValue:
|
|
1007
|
+
defaultValue: c,
|
|
1044
1008
|
placeholder: r,
|
|
1045
|
-
onChange:
|
|
1009
|
+
onChange: d
|
|
1046
1010
|
}
|
|
1047
1011
|
),
|
|
1048
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ p(
|
|
1049
1013
|
"button",
|
|
1050
1014
|
{
|
|
1051
1015
|
type: "submit",
|
|
1052
|
-
className:
|
|
1053
|
-
"rpf-button--disabled":
|
|
1054
|
-
"rpf-button--error":
|
|
1016
|
+
className: M("rpf-button rpf-button-search", {
|
|
1017
|
+
"rpf-button--disabled": s,
|
|
1018
|
+
"rpf-button--error": n
|
|
1055
1019
|
}),
|
|
1056
|
-
disabled:
|
|
1057
|
-
onClick:
|
|
1058
|
-
children: /* @__PURE__ */
|
|
1020
|
+
disabled: s,
|
|
1021
|
+
onClick: i,
|
|
1022
|
+
children: /* @__PURE__ */ p("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
|
|
1059
1023
|
}
|
|
1060
1024
|
)
|
|
1061
1025
|
] }),
|
|
1062
|
-
|
|
1063
|
-
/* @__PURE__ */
|
|
1064
|
-
|
|
1026
|
+
n && /* @__PURE__ */ P("div", { className: "rpf-error-message", children: [
|
|
1027
|
+
/* @__PURE__ */ p("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
1028
|
+
n
|
|
1065
1029
|
] })
|
|
1066
|
-
] }) }),
|
|
1030
|
+
] }) }), vr = ({
|
|
1067
1031
|
id: e,
|
|
1068
|
-
label:
|
|
1069
|
-
name:
|
|
1070
|
-
options:
|
|
1071
|
-
disabled:
|
|
1032
|
+
label: t,
|
|
1033
|
+
name: s,
|
|
1034
|
+
options: n,
|
|
1035
|
+
disabled: a = !1,
|
|
1072
1036
|
error: r = "",
|
|
1073
|
-
fullWidth:
|
|
1074
|
-
hint:
|
|
1075
|
-
onChange:
|
|
1037
|
+
fullWidth: c = !1,
|
|
1038
|
+
hint: i = "",
|
|
1039
|
+
onChange: d = () => {
|
|
1076
1040
|
},
|
|
1077
|
-
placeholder:
|
|
1078
|
-
value:
|
|
1079
|
-
}) => /* @__PURE__ */
|
|
1080
|
-
|
|
1041
|
+
placeholder: h = "",
|
|
1042
|
+
value: y = ""
|
|
1043
|
+
}) => /* @__PURE__ */ p(
|
|
1044
|
+
ve,
|
|
1081
1045
|
{
|
|
1082
1046
|
id: e,
|
|
1083
|
-
disabled:
|
|
1047
|
+
disabled: a,
|
|
1084
1048
|
error: r,
|
|
1085
|
-
hint:
|
|
1086
|
-
label:
|
|
1087
|
-
children: /* @__PURE__ */
|
|
1049
|
+
hint: i,
|
|
1050
|
+
label: t,
|
|
1051
|
+
children: /* @__PURE__ */ P(
|
|
1088
1052
|
"select",
|
|
1089
1053
|
{
|
|
1090
|
-
className:
|
|
1054
|
+
className: M("rpf-input rpf-input-select", {
|
|
1091
1055
|
"rpf-input--error": r,
|
|
1092
|
-
"rpf-input--full-width":
|
|
1056
|
+
"rpf-input--full-width": c
|
|
1093
1057
|
}),
|
|
1094
|
-
disabled:
|
|
1058
|
+
disabled: a,
|
|
1095
1059
|
id: e,
|
|
1096
|
-
name:
|
|
1097
|
-
onChange:
|
|
1098
|
-
|
|
1099
|
-
value: h,
|
|
1060
|
+
name: s,
|
|
1061
|
+
onChange: d,
|
|
1062
|
+
value: y,
|
|
1100
1063
|
children: [
|
|
1101
|
-
!
|
|
1102
|
-
|
|
1064
|
+
!y && !!h && /* @__PURE__ */ p("option", { value: "", disabled: !0, children: h }),
|
|
1065
|
+
n.map((b) => /* @__PURE__ */ p("option", { value: b.key, children: b.value }, b.key))
|
|
1103
1066
|
]
|
|
1104
1067
|
}
|
|
1105
1068
|
)
|
|
1106
1069
|
}
|
|
1107
|
-
)
|
|
1108
|
-
Je.propTypes = {
|
|
1109
|
-
disabled: a.bool,
|
|
1110
|
-
error: a.string,
|
|
1111
|
-
fullWidth: a.bool,
|
|
1112
|
-
hint: a.oneOfType([a.string, a.object]),
|
|
1113
|
-
label: a.oneOfType([a.string, a.object]).isRequired,
|
|
1114
|
-
id: a.string.isRequired,
|
|
1115
|
-
name: a.string.isRequired,
|
|
1116
|
-
onChange: a.func,
|
|
1117
|
-
options: a.array.isRequired,
|
|
1118
|
-
placeholder: a.string,
|
|
1119
|
-
value: a.string
|
|
1120
|
-
};
|
|
1121
|
-
const Xe = ({
|
|
1070
|
+
), br = ({
|
|
1122
1071
|
id: e,
|
|
1123
|
-
label:
|
|
1124
|
-
name:
|
|
1125
|
-
value:
|
|
1126
|
-
disabled:
|
|
1072
|
+
label: t,
|
|
1073
|
+
name: s,
|
|
1074
|
+
value: n,
|
|
1075
|
+
disabled: a = !1,
|
|
1127
1076
|
readOnly: r = !1,
|
|
1128
|
-
error:
|
|
1129
|
-
fullWidth:
|
|
1130
|
-
hint:
|
|
1131
|
-
onChange:
|
|
1077
|
+
error: c = "",
|
|
1078
|
+
fullWidth: i = !1,
|
|
1079
|
+
hint: d = "",
|
|
1080
|
+
onChange: h = () => {
|
|
1132
1081
|
}
|
|
1133
|
-
}) => /* @__PURE__ */
|
|
1134
|
-
|
|
1082
|
+
}) => /* @__PURE__ */ p(
|
|
1083
|
+
ve,
|
|
1135
1084
|
{
|
|
1136
1085
|
id: e,
|
|
1137
|
-
disabled:
|
|
1138
|
-
error:
|
|
1139
|
-
hint:
|
|
1140
|
-
label:
|
|
1141
|
-
children: /* @__PURE__ */
|
|
1086
|
+
disabled: a,
|
|
1087
|
+
error: c,
|
|
1088
|
+
hint: d,
|
|
1089
|
+
label: t,
|
|
1090
|
+
children: /* @__PURE__ */ p(
|
|
1142
1091
|
"textarea",
|
|
1143
1092
|
{
|
|
1144
|
-
className:
|
|
1145
|
-
"rpf-input--error":
|
|
1146
|
-
"rpf-input--full-width":
|
|
1147
|
-
"rpf-input--disabled":
|
|
1093
|
+
className: M("rpf-input rpf-input-textarea", {
|
|
1094
|
+
"rpf-input--error": c,
|
|
1095
|
+
"rpf-input--full-width": i,
|
|
1096
|
+
"rpf-input--disabled": a
|
|
1148
1097
|
}),
|
|
1149
|
-
disabled:
|
|
1098
|
+
disabled: a,
|
|
1150
1099
|
readOnly: r,
|
|
1151
1100
|
id: e,
|
|
1152
|
-
name:
|
|
1153
|
-
onChange:
|
|
1154
|
-
|
|
1155
|
-
value: o
|
|
1101
|
+
name: s,
|
|
1102
|
+
onChange: h,
|
|
1103
|
+
value: n
|
|
1156
1104
|
}
|
|
1157
1105
|
)
|
|
1158
1106
|
}
|
|
1159
|
-
)
|
|
1160
|
-
Xe.propTypes = {
|
|
1161
|
-
disabled: a.bool,
|
|
1162
|
-
readOnly: a.bool,
|
|
1163
|
-
error: a.string,
|
|
1164
|
-
fullWidth: a.bool,
|
|
1165
|
-
hint: a.oneOfType([a.string, a.object]),
|
|
1166
|
-
label: a.oneOfType([a.string, a.object]).isRequired,
|
|
1167
|
-
id: a.string.isRequired,
|
|
1168
|
-
name: a.string.isRequired,
|
|
1169
|
-
onChange: a.func,
|
|
1170
|
-
value: a.string.isRequired
|
|
1171
|
-
};
|
|
1172
|
-
const Ge = ({
|
|
1107
|
+
), _r = ({
|
|
1173
1108
|
id: e,
|
|
1174
|
-
label:
|
|
1175
|
-
name:
|
|
1176
|
-
value:
|
|
1177
|
-
disabled:
|
|
1109
|
+
label: t,
|
|
1110
|
+
name: s,
|
|
1111
|
+
value: n,
|
|
1112
|
+
disabled: a = !1,
|
|
1178
1113
|
error: r = "",
|
|
1179
|
-
fullWidth:
|
|
1180
|
-
hint:
|
|
1181
|
-
onChange:
|
|
1114
|
+
fullWidth: c = !1,
|
|
1115
|
+
hint: i = "",
|
|
1116
|
+
onChange: d = () => {
|
|
1182
1117
|
}
|
|
1183
|
-
}) => /* @__PURE__ */
|
|
1184
|
-
|
|
1118
|
+
}) => /* @__PURE__ */ p(
|
|
1119
|
+
ve,
|
|
1185
1120
|
{
|
|
1186
1121
|
id: e,
|
|
1187
|
-
disabled:
|
|
1122
|
+
disabled: a,
|
|
1188
1123
|
error: r,
|
|
1189
|
-
hint:
|
|
1190
|
-
label:
|
|
1191
|
-
children: /* @__PURE__ */
|
|
1124
|
+
hint: i,
|
|
1125
|
+
label: t,
|
|
1126
|
+
children: /* @__PURE__ */ p(
|
|
1192
1127
|
"input",
|
|
1193
1128
|
{
|
|
1194
|
-
className:
|
|
1129
|
+
className: M("rpf-input rpf-input-text", {
|
|
1195
1130
|
"rpf-input--error": r,
|
|
1196
|
-
"rpf-input--full-width":
|
|
1131
|
+
"rpf-input--full-width": c
|
|
1197
1132
|
}),
|
|
1198
|
-
disabled:
|
|
1133
|
+
disabled: a,
|
|
1199
1134
|
id: e,
|
|
1200
|
-
name:
|
|
1201
|
-
onChange:
|
|
1135
|
+
name: s,
|
|
1136
|
+
onChange: d,
|
|
1202
1137
|
type: "text",
|
|
1203
|
-
value:
|
|
1138
|
+
value: n
|
|
1204
1139
|
}
|
|
1205
1140
|
)
|
|
1206
1141
|
}
|
|
1207
1142
|
);
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
};
|
|
1219
|
-
function Ke(e, s) {
|
|
1220
|
-
const i = ve(null), o = ve(null);
|
|
1221
|
-
return le(() => {
|
|
1222
|
-
const n = i.current;
|
|
1223
|
-
n && (e && !n.open ? n.showModal() : !e && n.open && n.close());
|
|
1224
|
-
}, [e]), le(() => {
|
|
1225
|
-
const n = i.current;
|
|
1226
|
-
if (!n) return;
|
|
1227
|
-
const r = () => s(!1), u = (l) => {
|
|
1228
|
-
l.preventDefault(), s(!1);
|
|
1143
|
+
function Ke(e, t) {
|
|
1144
|
+
const s = ge(null), n = ge(null);
|
|
1145
|
+
return se(() => {
|
|
1146
|
+
const a = s.current;
|
|
1147
|
+
a && (e && !a.open ? a.showModal() : !e && a.open && a.close());
|
|
1148
|
+
}, [e]), se(() => {
|
|
1149
|
+
const a = s.current;
|
|
1150
|
+
if (!a) return;
|
|
1151
|
+
const r = () => t(!1), c = (i) => {
|
|
1152
|
+
i.preventDefault(), t(!1);
|
|
1229
1153
|
};
|
|
1230
|
-
return
|
|
1231
|
-
|
|
1154
|
+
return a.addEventListener("close", r), a.addEventListener("cancel", c), () => {
|
|
1155
|
+
a.removeEventListener("close", r), a.removeEventListener("cancel", c);
|
|
1232
1156
|
};
|
|
1233
|
-
}, [
|
|
1234
|
-
const
|
|
1235
|
-
if (!
|
|
1236
|
-
const
|
|
1237
|
-
e && !r.contains(
|
|
1157
|
+
}, [t]), se(() => {
|
|
1158
|
+
const a = s.current, r = n.current;
|
|
1159
|
+
if (!a || !r) return;
|
|
1160
|
+
const c = (i) => {
|
|
1161
|
+
e && !r.contains(i.target) && t(!1);
|
|
1238
1162
|
};
|
|
1239
|
-
return
|
|
1240
|
-
}, [e,
|
|
1163
|
+
return a.addEventListener("mousedown", c), () => a.removeEventListener("mousedown", c);
|
|
1164
|
+
}, [e, t]), { dialogRef: s, contentRef: n };
|
|
1241
1165
|
}
|
|
1242
|
-
const
|
|
1166
|
+
const gr = ({
|
|
1243
1167
|
isOpen: e,
|
|
1244
|
-
setIsOpen:
|
|
1245
|
-
heading:
|
|
1246
|
-
children:
|
|
1247
|
-
primaryButtonLink:
|
|
1168
|
+
setIsOpen: t,
|
|
1169
|
+
heading: s,
|
|
1170
|
+
children: n,
|
|
1171
|
+
primaryButtonLink: a,
|
|
1248
1172
|
primaryButtonText: r,
|
|
1249
|
-
onClickPrimaryButton:
|
|
1250
|
-
secondaryButtonText:
|
|
1251
|
-
secondaryButtonLink:
|
|
1252
|
-
onClickSecondaryButton:
|
|
1253
|
-
tertiaryButtonText:
|
|
1254
|
-
tertiaryButtonLink:
|
|
1255
|
-
onClickTertiaryButton:
|
|
1256
|
-
showCloseButton:
|
|
1173
|
+
onClickPrimaryButton: c,
|
|
1174
|
+
secondaryButtonText: i,
|
|
1175
|
+
secondaryButtonLink: d,
|
|
1176
|
+
onClickSecondaryButton: h,
|
|
1177
|
+
tertiaryButtonText: y,
|
|
1178
|
+
tertiaryButtonLink: b,
|
|
1179
|
+
onClickTertiaryButton: N,
|
|
1180
|
+
showCloseButton: A = !0
|
|
1257
1181
|
}) => {
|
|
1258
|
-
const { dialogRef:
|
|
1259
|
-
return /* @__PURE__ */
|
|
1182
|
+
const { dialogRef: I, contentRef: O } = Ke(e, t);
|
|
1183
|
+
return /* @__PURE__ */ p(
|
|
1260
1184
|
"dialog",
|
|
1261
1185
|
{
|
|
1262
|
-
ref:
|
|
1186
|
+
ref: I,
|
|
1263
1187
|
className: "rpf-modal",
|
|
1264
1188
|
"aria-labelledby": "modal-heading",
|
|
1265
1189
|
"aria-describedby": "modal-description",
|
|
1266
|
-
children: /* @__PURE__ */
|
|
1267
|
-
/* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */
|
|
1269
|
-
|
|
1270
|
-
|
|
1190
|
+
children: /* @__PURE__ */ P("div", { ref: O, className: "rpf-modal__wrapper", children: [
|
|
1191
|
+
/* @__PURE__ */ P("div", { className: "rpf-modal__header", children: [
|
|
1192
|
+
/* @__PURE__ */ p("h2", { className: "rpf-modal__title", id: "modal-heading", children: s }),
|
|
1193
|
+
A && /* @__PURE__ */ p(
|
|
1194
|
+
B,
|
|
1271
1195
|
{
|
|
1272
1196
|
icon: "close",
|
|
1273
1197
|
iconOnly: !0,
|
|
1274
1198
|
"aria-label": "Close modal",
|
|
1275
1199
|
type: "tertiary",
|
|
1276
|
-
onClick: () =>
|
|
1200
|
+
onClick: () => t(!1)
|
|
1277
1201
|
}
|
|
1278
1202
|
)
|
|
1279
1203
|
] }),
|
|
1280
|
-
/* @__PURE__ */
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
/* @__PURE__ */
|
|
1283
|
-
|
|
1204
|
+
/* @__PURE__ */ p("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
|
|
1205
|
+
/* @__PURE__ */ P("div", { className: "rpf-modal__buttons", children: [
|
|
1206
|
+
/* @__PURE__ */ p(
|
|
1207
|
+
B,
|
|
1284
1208
|
{
|
|
1285
1209
|
text: r,
|
|
1286
|
-
href:
|
|
1287
|
-
onClick:
|
|
1210
|
+
href: a,
|
|
1211
|
+
onClick: c,
|
|
1288
1212
|
type: "primary"
|
|
1289
1213
|
}
|
|
1290
1214
|
),
|
|
1291
|
-
|
|
1292
|
-
|
|
1215
|
+
i && /* @__PURE__ */ p(
|
|
1216
|
+
B,
|
|
1293
1217
|
{
|
|
1294
|
-
text:
|
|
1295
|
-
href:
|
|
1296
|
-
onClick:
|
|
1218
|
+
text: i,
|
|
1219
|
+
href: d,
|
|
1220
|
+
onClick: h,
|
|
1297
1221
|
type: "secondary"
|
|
1298
1222
|
}
|
|
1299
1223
|
),
|
|
1300
|
-
|
|
1301
|
-
|
|
1224
|
+
y && /* @__PURE__ */ p(
|
|
1225
|
+
B,
|
|
1302
1226
|
{
|
|
1303
|
-
text:
|
|
1304
|
-
href:
|
|
1305
|
-
onClick:
|
|
1227
|
+
text: y,
|
|
1228
|
+
href: b,
|
|
1229
|
+
onClick: N,
|
|
1306
1230
|
type: "tertiary"
|
|
1307
1231
|
}
|
|
1308
1232
|
)
|
|
@@ -1310,96 +1234,223 @@ const nr = ({
|
|
|
1310
1234
|
] })
|
|
1311
1235
|
}
|
|
1312
1236
|
);
|
|
1313
|
-
},
|
|
1237
|
+
}, Er = ({
|
|
1314
1238
|
text: e = "",
|
|
1315
|
-
percent:
|
|
1316
|
-
complete:
|
|
1317
|
-
className:
|
|
1318
|
-
}) => /* @__PURE__ */
|
|
1239
|
+
percent: t,
|
|
1240
|
+
complete: s = !1,
|
|
1241
|
+
className: n
|
|
1242
|
+
}) => /* @__PURE__ */ p(
|
|
1319
1243
|
"div",
|
|
1320
1244
|
{
|
|
1321
|
-
className:
|
|
1322
|
-
"rpf-progress-bar--complete":
|
|
1323
|
-
className:
|
|
1245
|
+
className: M("rpf-progress-bar", {
|
|
1246
|
+
"rpf-progress-bar--complete": s,
|
|
1247
|
+
className: n
|
|
1324
1248
|
}),
|
|
1325
|
-
children: /* @__PURE__ */
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1249
|
+
children: /* @__PURE__ */ P("label", { className: "rpf-progress-bar__label", children: [
|
|
1250
|
+
/* @__PURE__ */ p("span", { children: e }),
|
|
1251
|
+
/* @__PURE__ */ p("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
1328
1252
|
] })
|
|
1329
1253
|
}
|
|
1330
|
-
),
|
|
1254
|
+
), Tr = ({ children: e }) => /* @__PURE__ */ p("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: e }) });
|
|
1255
|
+
/**
|
|
1256
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1257
|
+
*
|
|
1258
|
+
* This source code is licensed under the ISC license.
|
|
1259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1260
|
+
*/
|
|
1261
|
+
const Xe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = (e) => e.replace(
|
|
1262
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1263
|
+
(t, s, n) => n ? n.toUpperCase() : s.toLowerCase()
|
|
1264
|
+
), je = (e) => {
|
|
1265
|
+
const t = Ge(e);
|
|
1266
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1267
|
+
}, qe = (...e) => e.filter((t, s, n) => !!t && t.trim() !== "" && n.indexOf(t) === s).join(" ").trim(), Qe = (e) => {
|
|
1268
|
+
for (const t in e)
|
|
1269
|
+
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1270
|
+
return !0;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1274
|
+
*
|
|
1275
|
+
* This source code is licensed under the ISC license.
|
|
1276
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1277
|
+
*/
|
|
1278
|
+
var er = {
|
|
1279
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1280
|
+
width: 24,
|
|
1281
|
+
height: 24,
|
|
1282
|
+
viewBox: "0 0 24 24",
|
|
1283
|
+
fill: "none",
|
|
1284
|
+
stroke: "currentColor",
|
|
1285
|
+
strokeWidth: 2,
|
|
1286
|
+
strokeLinecap: "round",
|
|
1287
|
+
strokeLinejoin: "round"
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1291
|
+
*
|
|
1292
|
+
* This source code is licensed under the ISC license.
|
|
1293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1294
|
+
*/
|
|
1295
|
+
const rr = ke(
|
|
1296
|
+
({
|
|
1297
|
+
color: e = "currentColor",
|
|
1298
|
+
size: t = 24,
|
|
1299
|
+
strokeWidth: s = 2,
|
|
1300
|
+
absoluteStrokeWidth: n,
|
|
1301
|
+
className: a = "",
|
|
1302
|
+
children: r,
|
|
1303
|
+
iconNode: c,
|
|
1304
|
+
...i
|
|
1305
|
+
}, d) => ye(
|
|
1306
|
+
"svg",
|
|
1307
|
+
{
|
|
1308
|
+
ref: d,
|
|
1309
|
+
...er,
|
|
1310
|
+
width: t,
|
|
1311
|
+
height: t,
|
|
1312
|
+
stroke: e,
|
|
1313
|
+
strokeWidth: n ? Number(s) * 24 / Number(t) : s,
|
|
1314
|
+
className: qe("lucide", a),
|
|
1315
|
+
...!r && !Qe(i) && { "aria-hidden": "true" },
|
|
1316
|
+
...i
|
|
1317
|
+
},
|
|
1318
|
+
[
|
|
1319
|
+
...c.map(([h, y]) => ye(h, y)),
|
|
1320
|
+
...Array.isArray(r) ? r : [r]
|
|
1321
|
+
]
|
|
1322
|
+
)
|
|
1323
|
+
);
|
|
1324
|
+
/**
|
|
1325
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1326
|
+
*
|
|
1327
|
+
* This source code is licensed under the ISC license.
|
|
1328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1329
|
+
*/
|
|
1330
|
+
const be = (e, t) => {
|
|
1331
|
+
const s = ke(
|
|
1332
|
+
({ className: n, ...a }, r) => ye(rr, {
|
|
1333
|
+
ref: r,
|
|
1334
|
+
iconNode: t,
|
|
1335
|
+
className: qe(
|
|
1336
|
+
`lucide-${Xe(je(e))}`,
|
|
1337
|
+
`lucide-${e}`,
|
|
1338
|
+
n
|
|
1339
|
+
),
|
|
1340
|
+
...a
|
|
1341
|
+
})
|
|
1342
|
+
);
|
|
1343
|
+
return s.displayName = je(e), s;
|
|
1344
|
+
};
|
|
1345
|
+
/**
|
|
1346
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1347
|
+
*
|
|
1348
|
+
* This source code is licensed under the ISC license.
|
|
1349
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1350
|
+
*/
|
|
1351
|
+
const tr = [
|
|
1352
|
+
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
1353
|
+
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
1354
|
+
["path", { d: "m21 8-4-4-4 4", key: "1c9v7m" }],
|
|
1355
|
+
["path", { d: "M17 4v16", key: "7dpous" }]
|
|
1356
|
+
], nr = be("arrow-down-up", tr);
|
|
1357
|
+
/**
|
|
1358
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1359
|
+
*
|
|
1360
|
+
* This source code is licensed under the ISC license.
|
|
1361
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1362
|
+
*/
|
|
1363
|
+
const ar = [
|
|
1364
|
+
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
1365
|
+
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
1366
|
+
["path", { d: "M11 4h10", key: "1w87gc" }],
|
|
1367
|
+
["path", { d: "M11 8h7", key: "djye34" }],
|
|
1368
|
+
["path", { d: "M11 12h4", key: "q8tih4" }]
|
|
1369
|
+
], or = be("arrow-down-wide-narrow", ar);
|
|
1370
|
+
/**
|
|
1371
|
+
* @license lucide-react v0.553.0 - ISC
|
|
1372
|
+
*
|
|
1373
|
+
* This source code is licensed under the ISC license.
|
|
1374
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
1375
|
+
*/
|
|
1376
|
+
const sr = [
|
|
1377
|
+
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
1378
|
+
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
1379
|
+
["path", { d: "M11 12h4", key: "q8tih4" }],
|
|
1380
|
+
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
1381
|
+
["path", { d: "M11 20h10", key: "jvxblo" }]
|
|
1382
|
+
], ir = be("arrow-up-narrow-wide", sr), cr = (e, t) => {
|
|
1383
|
+
if (e)
|
|
1384
|
+
return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
|
|
1385
|
+
}, wr = ({
|
|
1331
1386
|
sortDirection: e,
|
|
1332
|
-
children:
|
|
1333
|
-
onClick:
|
|
1334
|
-
}) =>
|
|
1335
|
-
"
|
|
1336
|
-
{
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
/* @__PURE__ */ d("span", { className: "material-symbols-sharp", children: e === "up" ? "arrow_drop_up" : e === "down" ? "arrow_drop_down" : null })
|
|
1342
|
-
] }) : /* @__PURE__ */ d(Z, { children: s }) })
|
|
1343
|
-
}
|
|
1344
|
-
), sr = ({ headerRow: e, bodyRows: s, fullWidth: i }) => /* @__PURE__ */ d(
|
|
1387
|
+
children: t,
|
|
1388
|
+
onClick: s
|
|
1389
|
+
}) => {
|
|
1390
|
+
const n = !!s, a = e === "up" ? ir : e === "down" ? or : nr, r = cr(n, e);
|
|
1391
|
+
return /* @__PURE__ */ p("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": r, children: /* @__PURE__ */ p("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ P("button", { className: "rpf-table-cell__sort-header", onClick: s, children: [
|
|
1392
|
+
t,
|
|
1393
|
+
/* @__PURE__ */ p(a, { size: 20 })
|
|
1394
|
+
] }) : /* @__PURE__ */ p(me, { children: t }) }) });
|
|
1395
|
+
}, Sr = ({ headerRow: e, bodyRows: t, fullWidth: s }) => /* @__PURE__ */ p(
|
|
1345
1396
|
"div",
|
|
1346
1397
|
{
|
|
1347
1398
|
"data-testid": "table-container",
|
|
1348
|
-
className:
|
|
1349
|
-
children: /* @__PURE__ */
|
|
1399
|
+
className: M("rpf-table", { "rpf-table--full-width": s }),
|
|
1400
|
+
children: /* @__PURE__ */ P(
|
|
1350
1401
|
"table",
|
|
1351
1402
|
{
|
|
1352
|
-
className:
|
|
1353
|
-
"rpf-table__table--full-width":
|
|
1403
|
+
className: M("rpf-table__table", {
|
|
1404
|
+
"rpf-table__table--full-width": s
|
|
1354
1405
|
}),
|
|
1355
1406
|
children: [
|
|
1356
|
-
/* @__PURE__ */
|
|
1357
|
-
/* @__PURE__ */
|
|
1407
|
+
/* @__PURE__ */ p("thead", { children: /* @__PURE__ */ p("tr", { className: "rpf-table-row", children: e }) }),
|
|
1408
|
+
/* @__PURE__ */ p("tbody", { children: t.map((n, a) => /* @__PURE__ */ p("tr", { className: "rpf-table-row", children: n }, a)) })
|
|
1358
1409
|
]
|
|
1359
1410
|
}
|
|
1360
1411
|
)
|
|
1361
1412
|
}
|
|
1362
|
-
),
|
|
1413
|
+
), Cr = ({
|
|
1363
1414
|
text: e,
|
|
1364
|
-
variant:
|
|
1365
|
-
secondary:
|
|
1366
|
-
icon:
|
|
1367
|
-
iconPosition:
|
|
1415
|
+
variant: t,
|
|
1416
|
+
secondary: s,
|
|
1417
|
+
icon: n,
|
|
1418
|
+
iconPosition: a
|
|
1368
1419
|
}) => {
|
|
1369
|
-
const r =
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
return /* @__PURE__ */
|
|
1420
|
+
const r = n ? /* @__PURE__ */ p("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
|
|
1421
|
+
n && !a && (a = "left");
|
|
1422
|
+
const c = t && t !== "default" ? `rpf-tag--${t}` : null;
|
|
1423
|
+
return /* @__PURE__ */ P(
|
|
1373
1424
|
"span",
|
|
1374
1425
|
{
|
|
1375
|
-
className:
|
|
1376
|
-
"rpf-tag--secondary":
|
|
1426
|
+
className: M("rpf-tag", c, {
|
|
1427
|
+
"rpf-tag--secondary": s
|
|
1377
1428
|
}),
|
|
1378
1429
|
children: [
|
|
1379
|
-
|
|
1430
|
+
a === "left" && r,
|
|
1380
1431
|
e,
|
|
1381
|
-
|
|
1432
|
+
a === "right" && r
|
|
1382
1433
|
]
|
|
1383
1434
|
}
|
|
1384
1435
|
);
|
|
1385
1436
|
};
|
|
1386
1437
|
export {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1438
|
+
Ze as Accordion,
|
|
1439
|
+
ur as Alert,
|
|
1440
|
+
B as Button,
|
|
1441
|
+
pr as CheckboxInput,
|
|
1442
|
+
dr as Fieldset,
|
|
1443
|
+
ve as InputField,
|
|
1444
|
+
yr as InputLabel,
|
|
1445
|
+
gr as Modal,
|
|
1446
|
+
Er as ProgressBar,
|
|
1447
|
+
mr as RadioInput,
|
|
1448
|
+
hr as SearchInput,
|
|
1449
|
+
vr as SelectInput,
|
|
1450
|
+
Sr as Table,
|
|
1451
|
+
Tr as TableBodyCell,
|
|
1452
|
+
wr as TableHeaderCell,
|
|
1453
|
+
Cr as Tag,
|
|
1454
|
+
_r as TextInput,
|
|
1455
|
+
br as TextareaInput
|
|
1405
1456
|
};
|