chop-logic-components 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BackIcon--7D86S5j.js +8 -0
- package/dist/BackIcon--7D86S5j.js.map +1 -0
- package/dist/BackIcon-CeMTZgW0.cjs +2 -0
- package/dist/BackIcon-CeMTZgW0.cjs.map +1 -0
- package/dist/CancelIcon-BnREsPBZ.cjs +2 -0
- package/dist/CancelIcon-BnREsPBZ.cjs.map +1 -0
- package/dist/CancelIcon-CefNQTfM.js +8 -0
- package/dist/CancelIcon-CefNQTfM.js.map +1 -0
- package/dist/ChevronDownIcon-2bo0dD0n.cjs +2 -0
- package/dist/ChevronDownIcon-2bo0dD0n.cjs.map +1 -0
- package/dist/ChevronDownIcon-DT6cBkWd.js +14 -0
- package/dist/ChevronDownIcon-DT6cBkWd.js.map +1 -0
- package/dist/ChevronLeftIcon-CucDAu-3.js +14 -0
- package/dist/ChevronLeftIcon-CucDAu-3.js.map +1 -0
- package/dist/ChevronLeftIcon-Cv8KkcCj.cjs +2 -0
- package/dist/ChevronLeftIcon-Cv8KkcCj.cjs.map +1 -0
- package/dist/ChevronRightIcon-CXEq8PP7.cjs +2 -0
- package/dist/ChevronRightIcon-CXEq8PP7.cjs.map +1 -0
- package/dist/ChevronRightIcon-D6FwG4SZ.js +14 -0
- package/dist/ChevronRightIcon-D6FwG4SZ.js.map +1 -0
- package/dist/ChevronUpIcon-B1CgDPSQ.cjs +2 -0
- package/dist/ChevronUpIcon-B1CgDPSQ.cjs.map +1 -0
- package/dist/ChevronUpIcon-BzSff1Do.js +8 -0
- package/dist/ChevronUpIcon-BzSff1Do.js.map +1 -0
- package/dist/ClearIcon-BK-CwLLu.cjs +2 -0
- package/dist/ClearIcon-BK-CwLLu.cjs.map +1 -0
- package/dist/ClearIcon-CfYJJWkY.js +11 -0
- package/dist/ClearIcon-CfYJJWkY.js.map +1 -0
- package/dist/CopyIcon-BmS8MwnU.js +25 -0
- package/dist/CopyIcon-BmS8MwnU.js.map +1 -0
- package/dist/CopyIcon-Clhhlouo.cjs +2 -0
- package/dist/CopyIcon-Clhhlouo.cjs.map +1 -0
- package/dist/CutIcon-BO9ypkn3.js +27 -0
- package/dist/CutIcon-BO9ypkn3.js.map +1 -0
- package/dist/CutIcon-CPLUxIHf.cjs +2 -0
- package/dist/CutIcon-CPLUxIHf.cjs.map +1 -0
- package/dist/DeleteIcon-BrrFpnWU.js +8 -0
- package/dist/DeleteIcon-BrrFpnWU.js.map +1 -0
- package/dist/DeleteIcon-Dc3MBZvz.cjs +2 -0
- package/dist/DeleteIcon-Dc3MBZvz.cjs.map +1 -0
- package/dist/DownloadIcon-CSO8HT2K.cjs +2 -0
- package/dist/DownloadIcon-CSO8HT2K.cjs.map +1 -0
- package/dist/DownloadIcon-bbvm6wox.js +8 -0
- package/dist/DownloadIcon-bbvm6wox.js.map +1 -0
- package/dist/ForwardIcon-DUJrdHMK.cjs +2 -0
- package/dist/ForwardIcon-DUJrdHMK.cjs.map +1 -0
- package/dist/ForwardIcon-rcLGwsvc.js +8 -0
- package/dist/ForwardIcon-rcLGwsvc.js.map +1 -0
- package/dist/HideIcon-2CdoMi2u.cjs +2 -0
- package/dist/HideIcon-2CdoMi2u.cjs.map +1 -0
- package/dist/HideIcon-CUCqvzEb.js +8 -0
- package/dist/HideIcon-CUCqvzEb.js.map +1 -0
- package/dist/PasteIcon-BYfHdDmw.js +8 -0
- package/dist/PasteIcon-BYfHdDmw.js.map +1 -0
- package/dist/PasteIcon-ptcTxTKn.cjs +2 -0
- package/dist/PasteIcon-ptcTxTKn.cjs.map +1 -0
- package/dist/QuestionIcon-DIohvO68.cjs +2 -0
- package/dist/QuestionIcon-DIohvO68.cjs.map +1 -0
- package/dist/QuestionIcon-DO9Z_XaS.js +22 -0
- package/dist/QuestionIcon-DO9Z_XaS.js.map +1 -0
- package/dist/RemoveIcon-CdxnH0zu.cjs +2 -0
- package/dist/RemoveIcon-CdxnH0zu.cjs.map +1 -0
- package/dist/RemoveIcon-DwqdK0Jw.js +30 -0
- package/dist/RemoveIcon-DwqdK0Jw.js.map +1 -0
- package/dist/SaveIcon-De8mjmxR.cjs +2 -0
- package/dist/SaveIcon-De8mjmxR.cjs.map +1 -0
- package/dist/SaveIcon-DsEa-gJr.js +8 -0
- package/dist/SaveIcon-DsEa-gJr.js.map +1 -0
- package/dist/ShowIcon-BUCe-D_Z.js +11 -0
- package/dist/ShowIcon-BUCe-D_Z.js.map +1 -0
- package/dist/ShowIcon-vpYnzZnw.cjs +2 -0
- package/dist/ShowIcon-vpYnzZnw.cjs.map +1 -0
- package/dist/UploadIcon-BW8L9vOq.js +11 -0
- package/dist/UploadIcon-BW8L9vOq.js.map +1 -0
- package/dist/UploadIcon-CbYd_cha.cjs +2 -0
- package/dist/UploadIcon-CbYd_cha.cjs.map +1 -0
- package/dist/components/containers/form/__docs__/Form.stories.d.ts +1 -1
- package/dist/components/containers/grid/__docs__/Grid.stories.d.ts +1 -1
- package/dist/components/containers/portal/__docs__/Portal.example.d.ts +4 -0
- package/dist/components/containers/portal/__docs__/Portal.stories.d.ts +7 -0
- package/dist/components/inputs/button/__docs__/Button.stories.d.ts +1 -1
- package/dist/components/inputs/checkbox/__docs__/Checkbox.stories.d.ts +1 -1
- package/dist/components/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +1 -1
- package/dist/components/inputs/numeric/__docs__/NumericInput.stories.d.ts +1 -1
- package/dist/components/inputs/select/__docs__/Select.stories.d.ts +1 -1
- package/dist/components/inputs/text/__docs__/TextInput.stories.d.ts +1 -1
- package/dist/components/modals/dialog/__docs__/Dialog.stories.d.ts +1 -1
- package/dist/components/modals/tooltip/__docs__/Tooltip.stories.d.ts +1 -1
- package/dist/elements/icon/Icon.d.ts +2 -4
- package/dist/elements/icon/__docs__/Icon.example.d.ts +5 -0
- package/dist/elements/icon/__docs__/Icon.stories.d.ts +7 -0
- package/dist/index-DdkNFaB4.js +4142 -0
- package/dist/index-DdkNFaB4.js.map +1 -0
- package/dist/index-QKscbffq.cjs +903 -0
- package/dist/index-QKscbffq.cjs.map +1 -0
- package/dist/index.cjs.js +1 -902
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +33 -4286
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/icon.d.ts +12 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/components/containers/form/__docs__/{FormExample.d.ts → Form.example.d.ts} +0 -0
- /package/dist/components/containers/grid/__docs__/{GridExample.d.ts → Grid.example.d.ts} +0 -0
- /package/dist/components/containers/tabs/__docs__/{TabsExample.d.ts → Tabs.example.d.ts} +0 -0
- /package/dist/components/inputs/button/__docs__/{ButtonExample.d.ts → Button.example.d.ts} +0 -0
- /package/dist/components/inputs/checkbox/__docs__/{CheckboxExample.d.ts → Checkbox.example.d.ts} +0 -0
- /package/dist/components/inputs/multi-select/__docs__/{MultiSelectExample.d.ts → MultiSelect.example.d.ts} +0 -0
- /package/dist/components/inputs/numeric/__docs__/{NumericInputExample.d.ts → NumericInput.example.d.ts} +0 -0
- /package/dist/components/inputs/select/__docs__/{SelectExample.d.ts → Select.example.d.ts} +0 -0
- /package/dist/components/inputs/text/__docs__/{TextInputExample.d.ts → TextInput.example.d.ts} +0 -0
- /package/dist/components/modals/alert/__docs__/{AlertExample.d.ts → Alert.example.d.ts} +0 -0
- /package/dist/components/modals/dialog/__docs__/{DialogExample.d.ts → Dialog.example.d.ts} +0 -0
- /package/dist/components/modals/tooltip/__docs__/{TooltipExample.d.ts → Tooltip.example.d.ts} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4289 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import ro from "react-dom";
|
|
3
|
-
var Ht = { exports: {} }, Je = {};
|
|
4
|
-
/**
|
|
5
|
-
* @license React
|
|
6
|
-
* react-jsx-runtime.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
var $r;
|
|
14
|
-
function no() {
|
|
15
|
-
if ($r) return Je;
|
|
16
|
-
$r = 1;
|
|
17
|
-
var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function c(d, l, h) {
|
|
19
|
-
var u, f = {}, g = null, m = null;
|
|
20
|
-
h !== void 0 && (g = "" + h), l.key !== void 0 && (g = "" + l.key), l.ref !== void 0 && (m = l.ref);
|
|
21
|
-
for (u in l) n.call(l, u) && !s.hasOwnProperty(u) && (f[u] = l[u]);
|
|
22
|
-
if (d && d.defaultProps) for (u in l = d.defaultProps, l) f[u] === void 0 && (f[u] = l[u]);
|
|
23
|
-
return { $$typeof: t, type: d, key: g, ref: m, props: f, _owner: o.current };
|
|
24
|
-
}
|
|
25
|
-
return Je.Fragment = r, Je.jsx = c, Je.jsxs = c, Je;
|
|
26
|
-
}
|
|
27
|
-
var Ze = {};
|
|
28
|
-
/**
|
|
29
|
-
* @license React
|
|
30
|
-
* react-jsx-runtime.development.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
var wr;
|
|
38
|
-
function oo() {
|
|
39
|
-
return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var e = le, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = Symbol.iterator, $ = "@@iterator";
|
|
41
|
-
function C(a) {
|
|
42
|
-
if (a === null || typeof a != "object")
|
|
43
|
-
return null;
|
|
44
|
-
var p = y && a[y] || a[$];
|
|
45
|
-
return typeof p == "function" ? p : null;
|
|
46
|
-
}
|
|
47
|
-
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
-
function b(a) {
|
|
49
|
-
{
|
|
50
|
-
for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), S = 1; S < p; S++)
|
|
51
|
-
v[S - 1] = arguments[S];
|
|
52
|
-
k("error", a, v);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function k(a, p, v) {
|
|
56
|
-
{
|
|
57
|
-
var S = w.ReactDebugCurrentFrame, P = S.getStackAddendum();
|
|
58
|
-
P !== "" && (p += "%s", v = v.concat([P]));
|
|
59
|
-
var O = v.map(function(z) {
|
|
60
|
-
return String(z);
|
|
61
|
-
});
|
|
62
|
-
O.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, O);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
var _ = !1, A = !1, j = !1, x = !1, H = !1, q;
|
|
66
|
-
q = Symbol.for("react.module.reference");
|
|
67
|
-
function ue(a) {
|
|
68
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || H || a === o || a === h || a === u || x || a === m || _ || A || j || typeof a == "object" && a !== null && (a.$$typeof === g || a.$$typeof === f || a.$$typeof === c || a.$$typeof === d || a.$$typeof === l || // This needs to include all possible module reference object
|
|
69
|
-
// types supported by any Flight configuration anywhere since
|
|
70
|
-
// we don't know which Flight build this will end up being used
|
|
71
|
-
// with.
|
|
72
|
-
a.$$typeof === q || a.getModuleId !== void 0));
|
|
73
|
-
}
|
|
74
|
-
function he(a, p, v) {
|
|
75
|
-
var S = a.displayName;
|
|
76
|
-
if (S)
|
|
77
|
-
return S;
|
|
78
|
-
var P = p.displayName || p.name || "";
|
|
79
|
-
return P !== "" ? v + "(" + P + ")" : v;
|
|
80
|
-
}
|
|
81
|
-
function fe(a) {
|
|
82
|
-
return a.displayName || "Context";
|
|
83
|
-
}
|
|
84
|
-
function W(a) {
|
|
85
|
-
if (a == null)
|
|
86
|
-
return null;
|
|
87
|
-
if (typeof a.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
88
|
-
return a.displayName || a.name || null;
|
|
89
|
-
if (typeof a == "string")
|
|
90
|
-
return a;
|
|
91
|
-
switch (a) {
|
|
92
|
-
case n:
|
|
93
|
-
return "Fragment";
|
|
94
|
-
case r:
|
|
95
|
-
return "Portal";
|
|
96
|
-
case s:
|
|
97
|
-
return "Profiler";
|
|
98
|
-
case o:
|
|
99
|
-
return "StrictMode";
|
|
100
|
-
case h:
|
|
101
|
-
return "Suspense";
|
|
102
|
-
case u:
|
|
103
|
-
return "SuspenseList";
|
|
104
|
-
}
|
|
105
|
-
if (typeof a == "object")
|
|
106
|
-
switch (a.$$typeof) {
|
|
107
|
-
case d:
|
|
108
|
-
var p = a;
|
|
109
|
-
return fe(p) + ".Consumer";
|
|
110
|
-
case c:
|
|
111
|
-
var v = a;
|
|
112
|
-
return fe(v._context) + ".Provider";
|
|
113
|
-
case l:
|
|
114
|
-
return he(a, a.render, "ForwardRef");
|
|
115
|
-
case f:
|
|
116
|
-
var S = a.displayName || null;
|
|
117
|
-
return S !== null ? S : W(a.type) || "Memo";
|
|
118
|
-
case g: {
|
|
119
|
-
var P = a, O = P._payload, z = P._init;
|
|
120
|
-
try {
|
|
121
|
-
return W(z(O));
|
|
122
|
-
} catch {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
var se = Object.assign, we = 0, st, Ie, Ye, X, pe, me, G;
|
|
130
|
-
function _e() {
|
|
131
|
-
}
|
|
132
|
-
_e.__reactDisabledLog = !0;
|
|
133
|
-
function Ke() {
|
|
134
|
-
{
|
|
135
|
-
if (we === 0) {
|
|
136
|
-
st = console.log, Ie = console.info, Ye = console.warn, X = console.error, pe = console.group, me = console.groupCollapsed, G = console.groupEnd;
|
|
137
|
-
var a = {
|
|
138
|
-
configurable: !0,
|
|
139
|
-
enumerable: !0,
|
|
140
|
-
value: _e,
|
|
141
|
-
writable: !0
|
|
142
|
-
};
|
|
143
|
-
Object.defineProperties(console, {
|
|
144
|
-
info: a,
|
|
145
|
-
log: a,
|
|
146
|
-
warn: a,
|
|
147
|
-
error: a,
|
|
148
|
-
group: a,
|
|
149
|
-
groupCollapsed: a,
|
|
150
|
-
groupEnd: a
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
we++;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function Te() {
|
|
157
|
-
{
|
|
158
|
-
if (we--, we === 0) {
|
|
159
|
-
var a = {
|
|
160
|
-
configurable: !0,
|
|
161
|
-
enumerable: !0,
|
|
162
|
-
writable: !0
|
|
163
|
-
};
|
|
164
|
-
Object.defineProperties(console, {
|
|
165
|
-
log: se({}, a, {
|
|
166
|
-
value: st
|
|
167
|
-
}),
|
|
168
|
-
info: se({}, a, {
|
|
169
|
-
value: Ie
|
|
170
|
-
}),
|
|
171
|
-
warn: se({}, a, {
|
|
172
|
-
value: Ye
|
|
173
|
-
}),
|
|
174
|
-
error: se({}, a, {
|
|
175
|
-
value: X
|
|
176
|
-
}),
|
|
177
|
-
group: se({}, a, {
|
|
178
|
-
value: pe
|
|
179
|
-
}),
|
|
180
|
-
groupCollapsed: se({}, a, {
|
|
181
|
-
value: me
|
|
182
|
-
}),
|
|
183
|
-
groupEnd: se({}, a, {
|
|
184
|
-
value: G
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
we < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
var ae = w.ReactCurrentDispatcher, ge;
|
|
192
|
-
function te(a, p, v) {
|
|
193
|
-
{
|
|
194
|
-
if (ge === void 0)
|
|
195
|
-
try {
|
|
196
|
-
throw Error();
|
|
197
|
-
} catch (P) {
|
|
198
|
-
var S = P.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
-
ge = S && S[1] || "";
|
|
200
|
-
}
|
|
201
|
-
return `
|
|
202
|
-
` + ge + a;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
var re = !1, ve;
|
|
206
|
-
{
|
|
207
|
-
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
ve = new ze();
|
|
209
|
-
}
|
|
210
|
-
function ne(a, p) {
|
|
211
|
-
if (!a || re)
|
|
212
|
-
return "";
|
|
213
|
-
{
|
|
214
|
-
var v = ve.get(a);
|
|
215
|
-
if (v !== void 0)
|
|
216
|
-
return v;
|
|
217
|
-
}
|
|
218
|
-
var S;
|
|
219
|
-
re = !0;
|
|
220
|
-
var P = Error.prepareStackTrace;
|
|
221
|
-
Error.prepareStackTrace = void 0;
|
|
222
|
-
var O;
|
|
223
|
-
O = ae.current, ae.current = null, Ke();
|
|
224
|
-
try {
|
|
225
|
-
if (p) {
|
|
226
|
-
var z = function() {
|
|
227
|
-
throw Error();
|
|
228
|
-
};
|
|
229
|
-
if (Object.defineProperty(z.prototype, "props", {
|
|
230
|
-
set: function() {
|
|
231
|
-
throw Error();
|
|
232
|
-
}
|
|
233
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
-
try {
|
|
235
|
-
Reflect.construct(z, []);
|
|
236
|
-
} catch (Y) {
|
|
237
|
-
S = Y;
|
|
238
|
-
}
|
|
239
|
-
Reflect.construct(a, [], z);
|
|
240
|
-
} else {
|
|
241
|
-
try {
|
|
242
|
-
z.call();
|
|
243
|
-
} catch (Y) {
|
|
244
|
-
S = Y;
|
|
245
|
-
}
|
|
246
|
-
a.call(z.prototype);
|
|
247
|
-
}
|
|
248
|
-
} else {
|
|
249
|
-
try {
|
|
250
|
-
throw Error();
|
|
251
|
-
} catch (Y) {
|
|
252
|
-
S = Y;
|
|
253
|
-
}
|
|
254
|
-
a();
|
|
255
|
-
}
|
|
256
|
-
} catch (Y) {
|
|
257
|
-
if (Y && S && typeof Y.stack == "string") {
|
|
258
|
-
for (var T = Y.stack.split(`
|
|
259
|
-
`), U = S.stack.split(`
|
|
260
|
-
`), D = T.length - 1, N = U.length - 1; D >= 1 && N >= 0 && T[D] !== U[N]; )
|
|
261
|
-
N--;
|
|
262
|
-
for (; D >= 1 && N >= 0; D--, N--)
|
|
263
|
-
if (T[D] !== U[N]) {
|
|
264
|
-
if (D !== 1 || N !== 1)
|
|
265
|
-
do
|
|
266
|
-
if (D--, N--, N < 0 || T[D] !== U[N]) {
|
|
267
|
-
var J = `
|
|
268
|
-
` + T[D].replace(" at new ", " at ");
|
|
269
|
-
return a.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", a.displayName)), typeof a == "function" && ve.set(a, J), J;
|
|
270
|
-
}
|
|
271
|
-
while (D >= 1 && N >= 0);
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
} finally {
|
|
276
|
-
re = !1, ae.current = O, Te(), Error.prepareStackTrace = P;
|
|
277
|
-
}
|
|
278
|
-
var Me = a ? a.displayName || a.name : "", Se = Me ? te(Me) : "";
|
|
279
|
-
return typeof a == "function" && ve.set(a, Se), Se;
|
|
280
|
-
}
|
|
281
|
-
function In(a, p, v) {
|
|
282
|
-
return ne(a, !1);
|
|
283
|
-
}
|
|
284
|
-
function _n(a) {
|
|
285
|
-
var p = a.prototype;
|
|
286
|
-
return !!(p && p.isReactComponent);
|
|
287
|
-
}
|
|
288
|
-
function at(a, p, v) {
|
|
289
|
-
if (a == null)
|
|
290
|
-
return "";
|
|
291
|
-
if (typeof a == "function")
|
|
292
|
-
return ne(a, _n(a));
|
|
293
|
-
if (typeof a == "string")
|
|
294
|
-
return te(a);
|
|
295
|
-
switch (a) {
|
|
296
|
-
case h:
|
|
297
|
-
return te("Suspense");
|
|
298
|
-
case u:
|
|
299
|
-
return te("SuspenseList");
|
|
300
|
-
}
|
|
301
|
-
if (typeof a == "object")
|
|
302
|
-
switch (a.$$typeof) {
|
|
303
|
-
case l:
|
|
304
|
-
return In(a.render);
|
|
305
|
-
case f:
|
|
306
|
-
return at(a.type, p, v);
|
|
307
|
-
case g: {
|
|
308
|
-
var S = a, P = S._payload, O = S._init;
|
|
309
|
-
try {
|
|
310
|
-
return at(O(P), p, v);
|
|
311
|
-
} catch {
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return "";
|
|
316
|
-
}
|
|
317
|
-
var qe = Object.prototype.hasOwnProperty, ar = {}, cr = w.ReactDebugCurrentFrame;
|
|
318
|
-
function ct(a) {
|
|
319
|
-
if (a) {
|
|
320
|
-
var p = a._owner, v = at(a.type, a._source, p ? p.type : null);
|
|
321
|
-
cr.setExtraStackFrame(v);
|
|
322
|
-
} else
|
|
323
|
-
cr.setExtraStackFrame(null);
|
|
324
|
-
}
|
|
325
|
-
function Tn(a, p, v, S, P) {
|
|
326
|
-
{
|
|
327
|
-
var O = Function.call.bind(qe);
|
|
328
|
-
for (var z in a)
|
|
329
|
-
if (O(a, z)) {
|
|
330
|
-
var T = void 0;
|
|
331
|
-
try {
|
|
332
|
-
if (typeof a[z] != "function") {
|
|
333
|
-
var U = Error((S || "React class") + ": " + v + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
-
throw U.name = "Invariant Violation", U;
|
|
335
|
-
}
|
|
336
|
-
T = a[z](p, z, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
-
} catch (D) {
|
|
338
|
-
T = D;
|
|
339
|
-
}
|
|
340
|
-
T && !(T instanceof Error) && (ct(P), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", v, z, typeof T), ct(null)), T instanceof Error && !(T.message in ar) && (ar[T.message] = !0, ct(P), b("Failed %s type: %s", v, T.message), ct(null));
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
var zn = Array.isArray;
|
|
345
|
-
function Tt(a) {
|
|
346
|
-
return zn(a);
|
|
347
|
-
}
|
|
348
|
-
function Pn(a) {
|
|
349
|
-
{
|
|
350
|
-
var p = typeof Symbol == "function" && Symbol.toStringTag, v = p && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
351
|
-
return v;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
function Mn(a) {
|
|
355
|
-
try {
|
|
356
|
-
return lr(a), !1;
|
|
357
|
-
} catch {
|
|
358
|
-
return !0;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
function lr(a) {
|
|
362
|
-
return "" + a;
|
|
363
|
-
}
|
|
364
|
-
function dr(a) {
|
|
365
|
-
if (Mn(a))
|
|
366
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pn(a)), lr(a);
|
|
367
|
-
}
|
|
368
|
-
var Xe = w.ReactCurrentOwner, On = {
|
|
369
|
-
key: !0,
|
|
370
|
-
ref: !0,
|
|
371
|
-
__self: !0,
|
|
372
|
-
__source: !0
|
|
373
|
-
}, ur, hr, zt;
|
|
374
|
-
zt = {};
|
|
375
|
-
function Bn(a) {
|
|
376
|
-
if (qe.call(a, "ref")) {
|
|
377
|
-
var p = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
378
|
-
if (p && p.isReactWarning)
|
|
379
|
-
return !1;
|
|
380
|
-
}
|
|
381
|
-
return a.ref !== void 0;
|
|
382
|
-
}
|
|
383
|
-
function Dn(a) {
|
|
384
|
-
if (qe.call(a, "key")) {
|
|
385
|
-
var p = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
386
|
-
if (p && p.isReactWarning)
|
|
387
|
-
return !1;
|
|
388
|
-
}
|
|
389
|
-
return a.key !== void 0;
|
|
390
|
-
}
|
|
391
|
-
function Ln(a, p) {
|
|
392
|
-
if (typeof a.ref == "string" && Xe.current && p && Xe.current.stateNode !== p) {
|
|
393
|
-
var v = W(Xe.current.type);
|
|
394
|
-
zt[v] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(Xe.current.type), a.ref), zt[v] = !0);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
function Nn(a, p) {
|
|
398
|
-
{
|
|
399
|
-
var v = function() {
|
|
400
|
-
ur || (ur = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
401
|
-
};
|
|
402
|
-
v.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
403
|
-
get: v,
|
|
404
|
-
configurable: !0
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function Fn(a, p) {
|
|
409
|
-
{
|
|
410
|
-
var v = function() {
|
|
411
|
-
hr || (hr = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
412
|
-
};
|
|
413
|
-
v.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
414
|
-
get: v,
|
|
415
|
-
configurable: !0
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
var Hn = function(a, p, v, S, P, O, z) {
|
|
420
|
-
var T = {
|
|
421
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof: t,
|
|
423
|
-
// Built-in properties that belong on the element
|
|
424
|
-
type: a,
|
|
425
|
-
key: p,
|
|
426
|
-
ref: v,
|
|
427
|
-
props: z,
|
|
428
|
-
// Record the component responsible for creating this element.
|
|
429
|
-
_owner: O
|
|
430
|
-
};
|
|
431
|
-
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !0,
|
|
435
|
-
value: !1
|
|
436
|
-
}), Object.defineProperty(T, "_self", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: S
|
|
441
|
-
}), Object.defineProperty(T, "_source", {
|
|
442
|
-
configurable: !1,
|
|
443
|
-
enumerable: !1,
|
|
444
|
-
writable: !1,
|
|
445
|
-
value: P
|
|
446
|
-
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
447
|
-
};
|
|
448
|
-
function Wn(a, p, v, S, P) {
|
|
449
|
-
{
|
|
450
|
-
var O, z = {}, T = null, U = null;
|
|
451
|
-
v !== void 0 && (dr(v), T = "" + v), Dn(p) && (dr(p.key), T = "" + p.key), Bn(p) && (U = p.ref, Ln(p, P));
|
|
452
|
-
for (O in p)
|
|
453
|
-
qe.call(p, O) && !On.hasOwnProperty(O) && (z[O] = p[O]);
|
|
454
|
-
if (a && a.defaultProps) {
|
|
455
|
-
var D = a.defaultProps;
|
|
456
|
-
for (O in D)
|
|
457
|
-
z[O] === void 0 && (z[O] = D[O]);
|
|
458
|
-
}
|
|
459
|
-
if (T || U) {
|
|
460
|
-
var N = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
461
|
-
T && Nn(z, N), U && Fn(z, N);
|
|
462
|
-
}
|
|
463
|
-
return Hn(a, T, U, P, S, Xe.current, z);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
var Pt = w.ReactCurrentOwner, fr = w.ReactDebugCurrentFrame;
|
|
467
|
-
function Pe(a) {
|
|
468
|
-
if (a) {
|
|
469
|
-
var p = a._owner, v = at(a.type, a._source, p ? p.type : null);
|
|
470
|
-
fr.setExtraStackFrame(v);
|
|
471
|
-
} else
|
|
472
|
-
fr.setExtraStackFrame(null);
|
|
473
|
-
}
|
|
474
|
-
var Mt;
|
|
475
|
-
Mt = !1;
|
|
476
|
-
function Ot(a) {
|
|
477
|
-
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
478
|
-
}
|
|
479
|
-
function pr() {
|
|
480
|
-
{
|
|
481
|
-
if (Pt.current) {
|
|
482
|
-
var a = W(Pt.current.type);
|
|
483
|
-
if (a)
|
|
484
|
-
return `
|
|
485
|
-
|
|
486
|
-
Check the render method of \`` + a + "`.";
|
|
487
|
-
}
|
|
488
|
-
return "";
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
function Vn(a) {
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
var mr = {};
|
|
495
|
-
function Gn(a) {
|
|
496
|
-
{
|
|
497
|
-
var p = pr();
|
|
498
|
-
if (!p) {
|
|
499
|
-
var v = typeof a == "string" ? a : a.displayName || a.name;
|
|
500
|
-
v && (p = `
|
|
501
|
-
|
|
502
|
-
Check the top-level render call using <` + v + ">.");
|
|
503
|
-
}
|
|
504
|
-
return p;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
function gr(a, p) {
|
|
508
|
-
{
|
|
509
|
-
if (!a._store || a._store.validated || a.key != null)
|
|
510
|
-
return;
|
|
511
|
-
a._store.validated = !0;
|
|
512
|
-
var v = Gn(p);
|
|
513
|
-
if (mr[v])
|
|
514
|
-
return;
|
|
515
|
-
mr[v] = !0;
|
|
516
|
-
var S = "";
|
|
517
|
-
a && a._owner && a._owner !== Pt.current && (S = " It was passed a child from " + W(a._owner.type) + "."), Pe(a), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), Pe(null);
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
function vr(a, p) {
|
|
521
|
-
{
|
|
522
|
-
if (typeof a != "object")
|
|
523
|
-
return;
|
|
524
|
-
if (Tt(a))
|
|
525
|
-
for (var v = 0; v < a.length; v++) {
|
|
526
|
-
var S = a[v];
|
|
527
|
-
Ot(S) && gr(S, p);
|
|
528
|
-
}
|
|
529
|
-
else if (Ot(a))
|
|
530
|
-
a._store && (a._store.validated = !0);
|
|
531
|
-
else if (a) {
|
|
532
|
-
var P = C(a);
|
|
533
|
-
if (typeof P == "function" && P !== a.entries)
|
|
534
|
-
for (var O = P.call(a), z; !(z = O.next()).done; )
|
|
535
|
-
Ot(z.value) && gr(z.value, p);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
function Un(a) {
|
|
540
|
-
{
|
|
541
|
-
var p = a.type;
|
|
542
|
-
if (p == null || typeof p == "string")
|
|
543
|
-
return;
|
|
544
|
-
var v;
|
|
545
|
-
if (typeof p == "function")
|
|
546
|
-
v = p.propTypes;
|
|
547
|
-
else if (typeof p == "object" && (p.$$typeof === l || // Note: Memo only checks outer props here.
|
|
548
|
-
// Inner props are checked in the reconciler.
|
|
549
|
-
p.$$typeof === f))
|
|
550
|
-
v = p.propTypes;
|
|
551
|
-
else
|
|
552
|
-
return;
|
|
553
|
-
if (v) {
|
|
554
|
-
var S = W(p);
|
|
555
|
-
Tn(v, a.props, "prop", S, a);
|
|
556
|
-
} else if (p.PropTypes !== void 0 && !Mt) {
|
|
557
|
-
Mt = !0;
|
|
558
|
-
var P = W(p);
|
|
559
|
-
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
560
|
-
}
|
|
561
|
-
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
function Yn(a) {
|
|
565
|
-
{
|
|
566
|
-
for (var p = Object.keys(a.props), v = 0; v < p.length; v++) {
|
|
567
|
-
var S = p[v];
|
|
568
|
-
if (S !== "children" && S !== "key") {
|
|
569
|
-
Pe(a), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Pe(null);
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
a.ref !== null && (Pe(a), b("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
var yr = {};
|
|
577
|
-
function br(a, p, v, S, P, O) {
|
|
578
|
-
{
|
|
579
|
-
var z = ue(a);
|
|
580
|
-
if (!z) {
|
|
581
|
-
var T = "";
|
|
582
|
-
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
|
-
var U = Vn();
|
|
584
|
-
U ? T += U : T += pr();
|
|
585
|
-
var D;
|
|
586
|
-
a === null ? D = "null" : Tt(a) ? D = "array" : a !== void 0 && a.$$typeof === t ? (D = "<" + (W(a.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : D = typeof a, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, T);
|
|
587
|
-
}
|
|
588
|
-
var N = Wn(a, p, v, P, O);
|
|
589
|
-
if (N == null)
|
|
590
|
-
return N;
|
|
591
|
-
if (z) {
|
|
592
|
-
var J = p.children;
|
|
593
|
-
if (J !== void 0)
|
|
594
|
-
if (S)
|
|
595
|
-
if (Tt(J)) {
|
|
596
|
-
for (var Me = 0; Me < J.length; Me++)
|
|
597
|
-
vr(J[Me], a);
|
|
598
|
-
Object.freeze && Object.freeze(J);
|
|
599
|
-
} else
|
|
600
|
-
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
|
-
else
|
|
602
|
-
vr(J, a);
|
|
603
|
-
}
|
|
604
|
-
if (qe.call(p, "key")) {
|
|
605
|
-
var Se = W(a), Y = Object.keys(p).filter(function(Qn) {
|
|
606
|
-
return Qn !== "key";
|
|
607
|
-
}), Bt = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
-
if (!yr[Se + Bt]) {
|
|
609
|
-
var Zn = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
-
b(`A props object containing a "key" prop is being spread into JSX:
|
|
611
|
-
let props = %s;
|
|
612
|
-
<%s {...props} />
|
|
613
|
-
React keys must be passed directly to JSX without using spread:
|
|
614
|
-
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`, Bt, Se, Zn, Se), yr[Se + Bt] = !0;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return a === n ? Yn(N) : Un(N), N;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
function Kn(a, p, v) {
|
|
622
|
-
return br(a, p, v, !0);
|
|
623
|
-
}
|
|
624
|
-
function qn(a, p, v) {
|
|
625
|
-
return br(a, p, v, !1);
|
|
626
|
-
}
|
|
627
|
-
var Xn = qn, Jn = Kn;
|
|
628
|
-
Ze.Fragment = n, Ze.jsx = Xn, Ze.jsxs = Jn;
|
|
629
|
-
}()), Ze;
|
|
630
|
-
}
|
|
631
|
-
process.env.NODE_ENV === "production" ? Ht.exports = no() : Ht.exports = oo();
|
|
632
|
-
var i = Ht.exports, K = function() {
|
|
633
|
-
return K = Object.assign || function(t) {
|
|
634
|
-
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
635
|
-
r = arguments[n];
|
|
636
|
-
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
637
|
-
}
|
|
638
|
-
return t;
|
|
639
|
-
}, K.apply(this, arguments);
|
|
640
|
-
};
|
|
641
|
-
function De(e, t, r) {
|
|
642
|
-
if (r || arguments.length === 2) for (var n = 0, o = t.length, s; n < o; n++)
|
|
643
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
644
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
645
|
-
}
|
|
646
|
-
function io(e) {
|
|
647
|
-
var t = /* @__PURE__ */ Object.create(null);
|
|
648
|
-
return function(r) {
|
|
649
|
-
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
650
|
-
};
|
|
651
|
-
}
|
|
652
|
-
var so = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, ao = /* @__PURE__ */ io(
|
|
653
|
-
function(e) {
|
|
654
|
-
return so.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
655
|
-
}
|
|
656
|
-
/* Z+1 */
|
|
657
|
-
), B = "-ms-", et = "-moz-", M = "-webkit-", Vr = "comm", St = "rule", Jt = "decl", co = "@import", Gr = "@keyframes", lo = "@layer", Ur = Math.abs, Zt = String.fromCharCode, Wt = Object.assign;
|
|
658
|
-
function uo(e, t) {
|
|
659
|
-
return V(e, 0) ^ 45 ? (((t << 2 ^ V(e, 0)) << 2 ^ V(e, 1)) << 2 ^ V(e, 2)) << 2 ^ V(e, 3) : 0;
|
|
660
|
-
}
|
|
661
|
-
function Yr(e) {
|
|
662
|
-
return e.trim();
|
|
663
|
-
}
|
|
664
|
-
function ce(e, t) {
|
|
665
|
-
return (e = t.exec(e)) ? e[0] : e;
|
|
666
|
-
}
|
|
667
|
-
function E(e, t, r) {
|
|
668
|
-
return e.replace(t, r);
|
|
669
|
-
}
|
|
670
|
-
function ft(e, t, r) {
|
|
671
|
-
return e.indexOf(t, r);
|
|
672
|
-
}
|
|
673
|
-
function V(e, t) {
|
|
674
|
-
return e.charCodeAt(t) | 0;
|
|
675
|
-
}
|
|
676
|
-
function Le(e, t, r) {
|
|
677
|
-
return e.slice(t, r);
|
|
678
|
-
}
|
|
679
|
-
function ie(e) {
|
|
680
|
-
return e.length;
|
|
681
|
-
}
|
|
682
|
-
function Kr(e) {
|
|
683
|
-
return e.length;
|
|
684
|
-
}
|
|
685
|
-
function Qe(e, t) {
|
|
686
|
-
return t.push(e), e;
|
|
687
|
-
}
|
|
688
|
-
function ho(e, t) {
|
|
689
|
-
return e.map(t).join("");
|
|
690
|
-
}
|
|
691
|
-
function Sr(e, t) {
|
|
692
|
-
return e.filter(function(r) {
|
|
693
|
-
return !ce(r, t);
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
var Ct = 1, Ne = 1, qr = 0, Q = 0, F = 0, Ve = "";
|
|
697
|
-
function kt(e, t, r, n, o, s, c, d) {
|
|
698
|
-
return { value: e, root: t, parent: r, type: n, props: o, children: s, line: Ct, column: Ne, length: c, return: "", siblings: d };
|
|
699
|
-
}
|
|
700
|
-
function ye(e, t) {
|
|
701
|
-
return Wt(kt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
702
|
-
}
|
|
703
|
-
function Oe(e) {
|
|
704
|
-
for (; e.root; )
|
|
705
|
-
e = ye(e.root, { children: [e] });
|
|
706
|
-
Qe(e, e.siblings);
|
|
707
|
-
}
|
|
708
|
-
function fo() {
|
|
709
|
-
return F;
|
|
710
|
-
}
|
|
711
|
-
function po() {
|
|
712
|
-
return F = Q > 0 ? V(Ve, --Q) : 0, Ne--, F === 10 && (Ne = 1, Ct--), F;
|
|
713
|
-
}
|
|
714
|
-
function oe() {
|
|
715
|
-
return F = Q < qr ? V(Ve, Q++) : 0, Ne++, F === 10 && (Ne = 1, Ct++), F;
|
|
716
|
-
}
|
|
717
|
-
function je() {
|
|
718
|
-
return V(Ve, Q);
|
|
719
|
-
}
|
|
720
|
-
function pt() {
|
|
721
|
-
return Q;
|
|
722
|
-
}
|
|
723
|
-
function jt(e, t) {
|
|
724
|
-
return Le(Ve, e, t);
|
|
725
|
-
}
|
|
726
|
-
function Vt(e) {
|
|
727
|
-
switch (e) {
|
|
728
|
-
case 0:
|
|
729
|
-
case 9:
|
|
730
|
-
case 10:
|
|
731
|
-
case 13:
|
|
732
|
-
case 32:
|
|
733
|
-
return 5;
|
|
734
|
-
case 33:
|
|
735
|
-
case 43:
|
|
736
|
-
case 44:
|
|
737
|
-
case 47:
|
|
738
|
-
case 62:
|
|
739
|
-
case 64:
|
|
740
|
-
case 126:
|
|
741
|
-
case 59:
|
|
742
|
-
case 123:
|
|
743
|
-
case 125:
|
|
744
|
-
return 4;
|
|
745
|
-
case 58:
|
|
746
|
-
return 3;
|
|
747
|
-
case 34:
|
|
748
|
-
case 39:
|
|
749
|
-
case 40:
|
|
750
|
-
case 91:
|
|
751
|
-
return 2;
|
|
752
|
-
case 41:
|
|
753
|
-
case 93:
|
|
754
|
-
return 1;
|
|
755
|
-
}
|
|
756
|
-
return 0;
|
|
757
|
-
}
|
|
758
|
-
function mo(e) {
|
|
759
|
-
return Ct = Ne = 1, qr = ie(Ve = e), Q = 0, [];
|
|
760
|
-
}
|
|
761
|
-
function go(e) {
|
|
762
|
-
return Ve = "", e;
|
|
763
|
-
}
|
|
764
|
-
function Dt(e) {
|
|
765
|
-
return Yr(jt(Q - 1, Gt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
766
|
-
}
|
|
767
|
-
function vo(e) {
|
|
768
|
-
for (; (F = je()) && F < 33; )
|
|
769
|
-
oe();
|
|
770
|
-
return Vt(e) > 2 || Vt(F) > 3 ? "" : " ";
|
|
771
|
-
}
|
|
772
|
-
function yo(e, t) {
|
|
773
|
-
for (; --t && oe() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
774
|
-
;
|
|
775
|
-
return jt(e, pt() + (t < 6 && je() == 32 && oe() == 32));
|
|
776
|
-
}
|
|
777
|
-
function Gt(e) {
|
|
778
|
-
for (; oe(); )
|
|
779
|
-
switch (F) {
|
|
780
|
-
case e:
|
|
781
|
-
return Q;
|
|
782
|
-
case 34:
|
|
783
|
-
case 39:
|
|
784
|
-
e !== 34 && e !== 39 && Gt(F);
|
|
785
|
-
break;
|
|
786
|
-
case 40:
|
|
787
|
-
e === 41 && Gt(e);
|
|
788
|
-
break;
|
|
789
|
-
case 92:
|
|
790
|
-
oe();
|
|
791
|
-
break;
|
|
792
|
-
}
|
|
793
|
-
return Q;
|
|
794
|
-
}
|
|
795
|
-
function bo(e, t) {
|
|
796
|
-
for (; oe() && e + F !== 57; )
|
|
797
|
-
if (e + F === 84 && je() === 47)
|
|
798
|
-
break;
|
|
799
|
-
return "/*" + jt(t, Q - 1) + "*" + Zt(e === 47 ? e : oe());
|
|
800
|
-
}
|
|
801
|
-
function xo(e) {
|
|
802
|
-
for (; !Vt(je()); )
|
|
803
|
-
oe();
|
|
804
|
-
return jt(e, Q);
|
|
805
|
-
}
|
|
806
|
-
function $o(e) {
|
|
807
|
-
return go(mt("", null, null, null, [""], e = mo(e), 0, [0], e));
|
|
808
|
-
}
|
|
809
|
-
function mt(e, t, r, n, o, s, c, d, l) {
|
|
810
|
-
for (var h = 0, u = 0, f = c, g = 0, m = 0, y = 0, $ = 1, C = 1, w = 1, b = 0, k = "", _ = o, A = s, j = n, x = k; C; )
|
|
811
|
-
switch (y = b, b = oe()) {
|
|
812
|
-
case 40:
|
|
813
|
-
if (y != 108 && V(x, f - 1) == 58) {
|
|
814
|
-
ft(x += E(Dt(b), "&", "&\f"), "&\f", Ur(h ? d[h - 1] : 0)) != -1 && (w = -1);
|
|
815
|
-
break;
|
|
816
|
-
}
|
|
817
|
-
case 34:
|
|
818
|
-
case 39:
|
|
819
|
-
case 91:
|
|
820
|
-
x += Dt(b);
|
|
821
|
-
break;
|
|
822
|
-
case 9:
|
|
823
|
-
case 10:
|
|
824
|
-
case 13:
|
|
825
|
-
case 32:
|
|
826
|
-
x += vo(y);
|
|
827
|
-
break;
|
|
828
|
-
case 92:
|
|
829
|
-
x += yo(pt() - 1, 7);
|
|
830
|
-
continue;
|
|
831
|
-
case 47:
|
|
832
|
-
switch (je()) {
|
|
833
|
-
case 42:
|
|
834
|
-
case 47:
|
|
835
|
-
Qe(wo(bo(oe(), pt()), t, r, l), l);
|
|
836
|
-
break;
|
|
837
|
-
default:
|
|
838
|
-
x += "/";
|
|
839
|
-
}
|
|
840
|
-
break;
|
|
841
|
-
case 123 * $:
|
|
842
|
-
d[h++] = ie(x) * w;
|
|
843
|
-
case 125 * $:
|
|
844
|
-
case 59:
|
|
845
|
-
case 0:
|
|
846
|
-
switch (b) {
|
|
847
|
-
case 0:
|
|
848
|
-
case 125:
|
|
849
|
-
C = 0;
|
|
850
|
-
case 59 + u:
|
|
851
|
-
w == -1 && (x = E(x, /\f/g, "")), m > 0 && ie(x) - f && Qe(m > 32 ? kr(x + ";", n, r, f - 1, l) : kr(E(x, " ", "") + ";", n, r, f - 2, l), l);
|
|
852
|
-
break;
|
|
853
|
-
case 59:
|
|
854
|
-
x += ";";
|
|
855
|
-
default:
|
|
856
|
-
if (Qe(j = Cr(x, t, r, h, u, o, d, k, _ = [], A = [], f, s), s), b === 123)
|
|
857
|
-
if (u === 0)
|
|
858
|
-
mt(x, t, j, j, _, s, f, d, A);
|
|
859
|
-
else
|
|
860
|
-
switch (g === 99 && V(x, 3) === 110 ? 100 : g) {
|
|
861
|
-
case 100:
|
|
862
|
-
case 108:
|
|
863
|
-
case 109:
|
|
864
|
-
case 115:
|
|
865
|
-
mt(e, j, j, n && Qe(Cr(e, j, j, 0, 0, o, d, k, o, _ = [], f, A), A), o, A, f, d, n ? _ : A);
|
|
866
|
-
break;
|
|
867
|
-
default:
|
|
868
|
-
mt(x, j, j, j, [""], A, 0, d, A);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
h = u = m = 0, $ = w = 1, k = x = "", f = c;
|
|
872
|
-
break;
|
|
873
|
-
case 58:
|
|
874
|
-
f = 1 + ie(x), m = y;
|
|
875
|
-
default:
|
|
876
|
-
if ($ < 1) {
|
|
877
|
-
if (b == 123)
|
|
878
|
-
--$;
|
|
879
|
-
else if (b == 125 && $++ == 0 && po() == 125)
|
|
880
|
-
continue;
|
|
881
|
-
}
|
|
882
|
-
switch (x += Zt(b), b * $) {
|
|
883
|
-
case 38:
|
|
884
|
-
w = u > 0 ? 1 : (x += "\f", -1);
|
|
885
|
-
break;
|
|
886
|
-
case 44:
|
|
887
|
-
d[h++] = (ie(x) - 1) * w, w = 1;
|
|
888
|
-
break;
|
|
889
|
-
case 64:
|
|
890
|
-
je() === 45 && (x += Dt(oe())), g = je(), u = f = ie(k = x += xo(pt())), b++;
|
|
891
|
-
break;
|
|
892
|
-
case 45:
|
|
893
|
-
y === 45 && ie(x) == 2 && ($ = 0);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
return s;
|
|
897
|
-
}
|
|
898
|
-
function Cr(e, t, r, n, o, s, c, d, l, h, u, f) {
|
|
899
|
-
for (var g = o - 1, m = o === 0 ? s : [""], y = Kr(m), $ = 0, C = 0, w = 0; $ < n; ++$)
|
|
900
|
-
for (var b = 0, k = Le(e, g + 1, g = Ur(C = c[$])), _ = e; b < y; ++b)
|
|
901
|
-
(_ = Yr(C > 0 ? m[b] + " " + k : E(k, /&\f/g, m[b]))) && (l[w++] = _);
|
|
902
|
-
return kt(e, t, r, o === 0 ? St : d, l, h, u, f);
|
|
903
|
-
}
|
|
904
|
-
function wo(e, t, r, n) {
|
|
905
|
-
return kt(e, t, r, Vr, Zt(fo()), Le(e, 2, -2), 0, n);
|
|
906
|
-
}
|
|
907
|
-
function kr(e, t, r, n, o) {
|
|
908
|
-
return kt(e, t, r, Jt, Le(e, 0, n), Le(e, n + 1, -1), n, o);
|
|
909
|
-
}
|
|
910
|
-
function Xr(e, t, r) {
|
|
911
|
-
switch (uo(e, t)) {
|
|
912
|
-
case 5103:
|
|
913
|
-
return M + "print-" + e + e;
|
|
914
|
-
case 5737:
|
|
915
|
-
case 4201:
|
|
916
|
-
case 3177:
|
|
917
|
-
case 3433:
|
|
918
|
-
case 1641:
|
|
919
|
-
case 4457:
|
|
920
|
-
case 2921:
|
|
921
|
-
case 5572:
|
|
922
|
-
case 6356:
|
|
923
|
-
case 5844:
|
|
924
|
-
case 3191:
|
|
925
|
-
case 6645:
|
|
926
|
-
case 3005:
|
|
927
|
-
case 6391:
|
|
928
|
-
case 5879:
|
|
929
|
-
case 5623:
|
|
930
|
-
case 6135:
|
|
931
|
-
case 4599:
|
|
932
|
-
case 4855:
|
|
933
|
-
case 4215:
|
|
934
|
-
case 6389:
|
|
935
|
-
case 5109:
|
|
936
|
-
case 5365:
|
|
937
|
-
case 5621:
|
|
938
|
-
case 3829:
|
|
939
|
-
return M + e + e;
|
|
940
|
-
case 4789:
|
|
941
|
-
return et + e + e;
|
|
942
|
-
case 5349:
|
|
943
|
-
case 4246:
|
|
944
|
-
case 4810:
|
|
945
|
-
case 6968:
|
|
946
|
-
case 2756:
|
|
947
|
-
return M + e + et + e + B + e + e;
|
|
948
|
-
case 5936:
|
|
949
|
-
switch (V(e, t + 11)) {
|
|
950
|
-
case 114:
|
|
951
|
-
return M + e + B + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
952
|
-
case 108:
|
|
953
|
-
return M + e + B + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
954
|
-
case 45:
|
|
955
|
-
return M + e + B + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
956
|
-
}
|
|
957
|
-
case 6828:
|
|
958
|
-
case 4268:
|
|
959
|
-
case 2903:
|
|
960
|
-
return M + e + B + e + e;
|
|
961
|
-
case 6165:
|
|
962
|
-
return M + e + B + "flex-" + e + e;
|
|
963
|
-
case 5187:
|
|
964
|
-
return M + e + E(e, /(\w+).+(:[^]+)/, M + "box-$1$2" + B + "flex-$1$2") + e;
|
|
965
|
-
case 5443:
|
|
966
|
-
return M + e + B + "flex-item-" + E(e, /flex-|-self/g, "") + (ce(e, /flex-|baseline/) ? "" : B + "grid-row-" + E(e, /flex-|-self/g, "")) + e;
|
|
967
|
-
case 4675:
|
|
968
|
-
return M + e + B + "flex-line-pack" + E(e, /align-content|flex-|-self/g, "") + e;
|
|
969
|
-
case 5548:
|
|
970
|
-
return M + e + B + E(e, "shrink", "negative") + e;
|
|
971
|
-
case 5292:
|
|
972
|
-
return M + e + B + E(e, "basis", "preferred-size") + e;
|
|
973
|
-
case 6060:
|
|
974
|
-
return M + "box-" + E(e, "-grow", "") + M + e + B + E(e, "grow", "positive") + e;
|
|
975
|
-
case 4554:
|
|
976
|
-
return M + E(e, /([^-])(transform)/g, "$1" + M + "$2") + e;
|
|
977
|
-
case 6187:
|
|
978
|
-
return E(E(E(e, /(zoom-|grab)/, M + "$1"), /(image-set)/, M + "$1"), e, "") + e;
|
|
979
|
-
case 5495:
|
|
980
|
-
case 3959:
|
|
981
|
-
return E(e, /(image-set\([^]*)/, M + "$1$`$1");
|
|
982
|
-
case 4968:
|
|
983
|
-
return E(E(e, /(.+:)(flex-)?(.*)/, M + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + M + e + e;
|
|
984
|
-
case 4200:
|
|
985
|
-
if (!ce(e, /flex-|baseline/)) return B + "grid-column-align" + Le(e, t) + e;
|
|
986
|
-
break;
|
|
987
|
-
case 2592:
|
|
988
|
-
case 3360:
|
|
989
|
-
return B + E(e, "template-", "") + e;
|
|
990
|
-
case 4384:
|
|
991
|
-
case 3616:
|
|
992
|
-
return r && r.some(function(n, o) {
|
|
993
|
-
return t = o, ce(n.props, /grid-\w+-end/);
|
|
994
|
-
}) ? ~ft(e + (r = r[t].value), "span", 0) ? e : B + E(e, "-start", "") + e + B + "grid-row-span:" + (~ft(r, "span", 0) ? ce(r, /\d+/) : +ce(r, /\d+/) - +ce(e, /\d+/)) + ";" : B + E(e, "-start", "") + e;
|
|
995
|
-
case 4896:
|
|
996
|
-
case 4128:
|
|
997
|
-
return r && r.some(function(n) {
|
|
998
|
-
return ce(n.props, /grid-\w+-start/);
|
|
999
|
-
}) ? e : B + E(E(e, "-end", "-span"), "span ", "") + e;
|
|
1000
|
-
case 4095:
|
|
1001
|
-
case 3583:
|
|
1002
|
-
case 4068:
|
|
1003
|
-
case 2532:
|
|
1004
|
-
return E(e, /(.+)-inline(.+)/, M + "$1$2") + e;
|
|
1005
|
-
case 8116:
|
|
1006
|
-
case 7059:
|
|
1007
|
-
case 5753:
|
|
1008
|
-
case 5535:
|
|
1009
|
-
case 5445:
|
|
1010
|
-
case 5701:
|
|
1011
|
-
case 4933:
|
|
1012
|
-
case 4677:
|
|
1013
|
-
case 5533:
|
|
1014
|
-
case 5789:
|
|
1015
|
-
case 5021:
|
|
1016
|
-
case 4765:
|
|
1017
|
-
if (ie(e) - 1 - t > 6)
|
|
1018
|
-
switch (V(e, t + 1)) {
|
|
1019
|
-
case 109:
|
|
1020
|
-
if (V(e, t + 4) !== 45)
|
|
1021
|
-
break;
|
|
1022
|
-
case 102:
|
|
1023
|
-
return E(e, /(.+:)(.+)-([^]+)/, "$1" + M + "$2-$3$1" + et + (V(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1024
|
-
case 115:
|
|
1025
|
-
return ~ft(e, "stretch", 0) ? Xr(E(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1026
|
-
}
|
|
1027
|
-
break;
|
|
1028
|
-
case 5152:
|
|
1029
|
-
case 5920:
|
|
1030
|
-
return E(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, s, c, d, l, h) {
|
|
1031
|
-
return B + o + ":" + s + h + (c ? B + o + "-span:" + (d ? l : +l - +s) + h : "") + e;
|
|
1032
|
-
});
|
|
1033
|
-
case 4949:
|
|
1034
|
-
if (V(e, t + 6) === 121)
|
|
1035
|
-
return E(e, ":", ":" + M) + e;
|
|
1036
|
-
break;
|
|
1037
|
-
case 6444:
|
|
1038
|
-
switch (V(e, V(e, 14) === 45 ? 18 : 11)) {
|
|
1039
|
-
case 120:
|
|
1040
|
-
return E(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + M + (V(e, 14) === 45 ? "inline-" : "") + "box$3$1" + M + "$2$3$1" + B + "$2box$3") + e;
|
|
1041
|
-
case 100:
|
|
1042
|
-
return E(e, ":", ":" + B) + e;
|
|
1043
|
-
}
|
|
1044
|
-
break;
|
|
1045
|
-
case 5719:
|
|
1046
|
-
case 2647:
|
|
1047
|
-
case 2135:
|
|
1048
|
-
case 3927:
|
|
1049
|
-
case 2391:
|
|
1050
|
-
return E(e, "scroll-", "scroll-snap-") + e;
|
|
1051
|
-
}
|
|
1052
|
-
return e;
|
|
1053
|
-
}
|
|
1054
|
-
function yt(e, t) {
|
|
1055
|
-
for (var r = "", n = 0; n < e.length; n++)
|
|
1056
|
-
r += t(e[n], n, e, t) || "";
|
|
1057
|
-
return r;
|
|
1058
|
-
}
|
|
1059
|
-
function So(e, t, r, n) {
|
|
1060
|
-
switch (e.type) {
|
|
1061
|
-
case lo:
|
|
1062
|
-
if (e.children.length) break;
|
|
1063
|
-
case co:
|
|
1064
|
-
case Jt:
|
|
1065
|
-
return e.return = e.return || e.value;
|
|
1066
|
-
case Vr:
|
|
1067
|
-
return "";
|
|
1068
|
-
case Gr:
|
|
1069
|
-
return e.return = e.value + "{" + yt(e.children, n) + "}";
|
|
1070
|
-
case St:
|
|
1071
|
-
if (!ie(e.value = e.props.join(","))) return "";
|
|
1072
|
-
}
|
|
1073
|
-
return ie(r = yt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1074
|
-
}
|
|
1075
|
-
function Co(e) {
|
|
1076
|
-
var t = Kr(e);
|
|
1077
|
-
return function(r, n, o, s) {
|
|
1078
|
-
for (var c = "", d = 0; d < t; d++)
|
|
1079
|
-
c += e[d](r, n, o, s) || "";
|
|
1080
|
-
return c;
|
|
1081
|
-
};
|
|
1082
|
-
}
|
|
1083
|
-
function ko(e) {
|
|
1084
|
-
return function(t) {
|
|
1085
|
-
t.root || (t = t.return) && e(t);
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
function jo(e, t, r, n) {
|
|
1089
|
-
if (e.length > -1 && !e.return)
|
|
1090
|
-
switch (e.type) {
|
|
1091
|
-
case Jt:
|
|
1092
|
-
e.return = Xr(e.value, e.length, r);
|
|
1093
|
-
return;
|
|
1094
|
-
case Gr:
|
|
1095
|
-
return yt([ye(e, { value: E(e.value, "@", "@" + M) })], n);
|
|
1096
|
-
case St:
|
|
1097
|
-
if (e.length)
|
|
1098
|
-
return ho(r = e.props, function(o) {
|
|
1099
|
-
switch (ce(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
1100
|
-
case ":read-only":
|
|
1101
|
-
case ":read-write":
|
|
1102
|
-
Oe(ye(e, { props: [E(o, /:(read-\w+)/, ":" + et + "$1")] })), Oe(ye(e, { props: [o] })), Wt(e, { props: Sr(r, n) });
|
|
1103
|
-
break;
|
|
1104
|
-
case "::placeholder":
|
|
1105
|
-
Oe(ye(e, { props: [E(o, /:(plac\w+)/, ":" + M + "input-$1")] })), Oe(ye(e, { props: [E(o, /:(plac\w+)/, ":" + et + "$1")] })), Oe(ye(e, { props: [E(o, /:(plac\w+)/, B + "input-$1")] })), Oe(ye(e, { props: [o] })), Wt(e, { props: Sr(r, n) });
|
|
1106
|
-
break;
|
|
1107
|
-
}
|
|
1108
|
-
return "";
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
var Eo = {
|
|
1113
|
-
animationIterationCount: 1,
|
|
1114
|
-
aspectRatio: 1,
|
|
1115
|
-
borderImageOutset: 1,
|
|
1116
|
-
borderImageSlice: 1,
|
|
1117
|
-
borderImageWidth: 1,
|
|
1118
|
-
boxFlex: 1,
|
|
1119
|
-
boxFlexGroup: 1,
|
|
1120
|
-
boxOrdinalGroup: 1,
|
|
1121
|
-
columnCount: 1,
|
|
1122
|
-
columns: 1,
|
|
1123
|
-
flex: 1,
|
|
1124
|
-
flexGrow: 1,
|
|
1125
|
-
flexPositive: 1,
|
|
1126
|
-
flexShrink: 1,
|
|
1127
|
-
flexNegative: 1,
|
|
1128
|
-
flexOrder: 1,
|
|
1129
|
-
gridRow: 1,
|
|
1130
|
-
gridRowEnd: 1,
|
|
1131
|
-
gridRowSpan: 1,
|
|
1132
|
-
gridRowStart: 1,
|
|
1133
|
-
gridColumn: 1,
|
|
1134
|
-
gridColumnEnd: 1,
|
|
1135
|
-
gridColumnSpan: 1,
|
|
1136
|
-
gridColumnStart: 1,
|
|
1137
|
-
msGridRow: 1,
|
|
1138
|
-
msGridRowSpan: 1,
|
|
1139
|
-
msGridColumn: 1,
|
|
1140
|
-
msGridColumnSpan: 1,
|
|
1141
|
-
fontWeight: 1,
|
|
1142
|
-
lineHeight: 1,
|
|
1143
|
-
opacity: 1,
|
|
1144
|
-
order: 1,
|
|
1145
|
-
orphans: 1,
|
|
1146
|
-
tabSize: 1,
|
|
1147
|
-
widows: 1,
|
|
1148
|
-
zIndex: 1,
|
|
1149
|
-
zoom: 1,
|
|
1150
|
-
WebkitLineClamp: 1,
|
|
1151
|
-
// SVG-related properties
|
|
1152
|
-
fillOpacity: 1,
|
|
1153
|
-
floodOpacity: 1,
|
|
1154
|
-
stopOpacity: 1,
|
|
1155
|
-
strokeDasharray: 1,
|
|
1156
|
-
strokeDashoffset: 1,
|
|
1157
|
-
strokeMiterlimit: 1,
|
|
1158
|
-
strokeOpacity: 1,
|
|
1159
|
-
strokeWidth: 1
|
|
1160
|
-
}, Re = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Jr = "active", Zr = "data-styled-version", Et = "6.1.13", Qt = `/*!sc*/
|
|
1161
|
-
`, bt = typeof window < "u" && "HTMLElement" in window, Ro = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), jr = /invalid hook call/i, lt = /* @__PURE__ */ new Set(), Ao = function(e, t) {
|
|
1162
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1163
|
-
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1164
|
-
`) + `You may see this warning because you've called styled inside another component.
|
|
1165
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`, o = console.error;
|
|
1166
|
-
try {
|
|
1167
|
-
var s = !0;
|
|
1168
|
-
console.error = function(c) {
|
|
1169
|
-
for (var d = [], l = 1; l < arguments.length; l++) d[l - 1] = arguments[l];
|
|
1170
|
-
jr.test(c) ? (s = !1, lt.delete(n)) : o.apply(void 0, De([c], d, !1));
|
|
1171
|
-
}, Be(), s && !lt.has(n) && (console.warn(n), lt.add(n));
|
|
1172
|
-
} catch (c) {
|
|
1173
|
-
jr.test(c.message) && lt.delete(n);
|
|
1174
|
-
} finally {
|
|
1175
|
-
console.error = o;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}, Rt = Object.freeze([]), Fe = Object.freeze({});
|
|
1179
|
-
function Io(e, t, r) {
|
|
1180
|
-
return r === void 0 && (r = Fe), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1181
|
-
}
|
|
1182
|
-
var Ut = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), _o = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, To = /(^-|-$)/g;
|
|
1183
|
-
function Er(e) {
|
|
1184
|
-
return e.replace(_o, "-").replace(To, "");
|
|
1185
|
-
}
|
|
1186
|
-
var zo = /(a)(d)/gi, dt = 52, Rr = function(e) {
|
|
1187
|
-
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1188
|
-
};
|
|
1189
|
-
function Yt(e) {
|
|
1190
|
-
var t, r = "";
|
|
1191
|
-
for (t = Math.abs(e); t > dt; t = t / dt | 0) r = Rr(t % dt) + r;
|
|
1192
|
-
return (Rr(t % dt) + r).replace(zo, "$1-$2");
|
|
1193
|
-
}
|
|
1194
|
-
var Lt, Qr = 5381, Ce = function(e, t) {
|
|
1195
|
-
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1196
|
-
return e;
|
|
1197
|
-
}, en = function(e) {
|
|
1198
|
-
return Ce(Qr, e);
|
|
1199
|
-
};
|
|
1200
|
-
function Po(e) {
|
|
1201
|
-
return Yt(en(e) >>> 0);
|
|
1202
|
-
}
|
|
1203
|
-
function tn(e) {
|
|
1204
|
-
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1205
|
-
}
|
|
1206
|
-
function Nt(e) {
|
|
1207
|
-
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1208
|
-
}
|
|
1209
|
-
var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.memo") : 60115, Mo = rn ? Symbol.for("react.forward_ref") : 60112, Oo = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Bo = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, on = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Do = ((Lt = {})[Mo] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[nn] = on, Lt);
|
|
1210
|
-
function Ar(e) {
|
|
1211
|
-
return ("type" in (t = e) && t.type.$$typeof) === nn ? on : "$$typeof" in e ? Do[e.$$typeof] : Oo;
|
|
1212
|
-
var t;
|
|
1213
|
-
}
|
|
1214
|
-
var Lo = Object.defineProperty, No = Object.getOwnPropertyNames, Ir = Object.getOwnPropertySymbols, Fo = Object.getOwnPropertyDescriptor, Ho = Object.getPrototypeOf, _r = Object.prototype;
|
|
1215
|
-
function sn(e, t, r) {
|
|
1216
|
-
if (typeof t != "string") {
|
|
1217
|
-
if (_r) {
|
|
1218
|
-
var n = Ho(t);
|
|
1219
|
-
n && n !== _r && sn(e, n, r);
|
|
1220
|
-
}
|
|
1221
|
-
var o = No(t);
|
|
1222
|
-
Ir && (o = o.concat(Ir(t)));
|
|
1223
|
-
for (var s = Ar(e), c = Ar(t), d = 0; d < o.length; ++d) {
|
|
1224
|
-
var l = o[d];
|
|
1225
|
-
if (!(l in Bo || r && r[l] || c && l in c || s && l in s)) {
|
|
1226
|
-
var h = Fo(t, l);
|
|
1227
|
-
try {
|
|
1228
|
-
Lo(e, l, h);
|
|
1229
|
-
} catch {
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
return e;
|
|
1235
|
-
}
|
|
1236
|
-
function He(e) {
|
|
1237
|
-
return typeof e == "function";
|
|
1238
|
-
}
|
|
1239
|
-
function er(e) {
|
|
1240
|
-
return typeof e == "object" && "styledComponentId" in e;
|
|
1241
|
-
}
|
|
1242
|
-
function ke(e, t) {
|
|
1243
|
-
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1244
|
-
}
|
|
1245
|
-
function Tr(e, t) {
|
|
1246
|
-
if (e.length === 0) return "";
|
|
1247
|
-
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
1248
|
-
return r;
|
|
1249
|
-
}
|
|
1250
|
-
function We(e) {
|
|
1251
|
-
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1252
|
-
}
|
|
1253
|
-
function Kt(e, t, r) {
|
|
1254
|
-
if (r === void 0 && (r = !1), !r && !We(e) && !Array.isArray(e)) return t;
|
|
1255
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Kt(e[n], t[n]);
|
|
1256
|
-
else if (We(t)) for (var n in t) e[n] = Kt(e[n], t[n]);
|
|
1257
|
-
return e;
|
|
1258
|
-
}
|
|
1259
|
-
function tr(e, t) {
|
|
1260
|
-
Object.defineProperty(e, "toString", { value: t });
|
|
1261
|
-
}
|
|
1262
|
-
var Wo = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1263
|
-
|
|
1264
|
-
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1265
|
-
|
|
1266
|
-
- Are you trying to reuse it across renders?
|
|
1267
|
-
- Are you accidentally calling collectStyles twice?
|
|
1268
|
-
|
|
1269
|
-
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1270
|
-
|
|
1271
|
-
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1272
|
-
|
|
1273
|
-
- Does this error occur on the client and is your target falsy?
|
|
1274
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
1275
|
-
|
|
1276
|
-
`, 5: `The clone method cannot be used on the client!
|
|
1277
|
-
|
|
1278
|
-
- Are you running in a client-like environment on the server?
|
|
1279
|
-
- Are you trying to run SSR on the client?
|
|
1280
|
-
|
|
1281
|
-
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1282
|
-
|
|
1283
|
-
- Are you using a custom target that isn't mounted?
|
|
1284
|
-
- Does your document not have a valid head element?
|
|
1285
|
-
- Have you accidentally removed a style tag manually?
|
|
1286
|
-
|
|
1287
|
-
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1288
|
-
|
|
1289
|
-
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1290
|
-
|
|
1291
|
-
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1292
|
-
|
|
1293
|
-
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1294
|
-
|
|
1295
|
-
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1296
|
-
|
|
1297
|
-
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1298
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1299
|
-
as for instance in your render method then you may be running into this limitation.
|
|
1300
|
-
|
|
1301
|
-
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1302
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
1303
|
-
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1304
|
-
function Vo() {
|
|
1305
|
-
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1306
|
-
for (var r = e[0], n = [], o = 1, s = e.length; o < s; o += 1) n.push(e[o]);
|
|
1307
|
-
return n.forEach(function(c) {
|
|
1308
|
-
r = r.replace(/%[a-z]/, c);
|
|
1309
|
-
}), r;
|
|
1310
|
-
}
|
|
1311
|
-
function Ge(e) {
|
|
1312
|
-
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1313
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Vo.apply(void 0, De([Wo[e]], t, !1)).trim());
|
|
1314
|
-
}
|
|
1315
|
-
var Go = function() {
|
|
1316
|
-
function e(t) {
|
|
1317
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1318
|
-
}
|
|
1319
|
-
return e.prototype.indexOfGroup = function(t) {
|
|
1320
|
-
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
1321
|
-
return r;
|
|
1322
|
-
}, e.prototype.insertRules = function(t, r) {
|
|
1323
|
-
if (t >= this.groupSizes.length) {
|
|
1324
|
-
for (var n = this.groupSizes, o = n.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw Ge(16, "".concat(t));
|
|
1325
|
-
this.groupSizes = new Uint32Array(s), this.groupSizes.set(n), this.length = s;
|
|
1326
|
-
for (var c = o; c < s; c++) this.groupSizes[c] = 0;
|
|
1327
|
-
}
|
|
1328
|
-
for (var d = this.indexOfGroup(t + 1), l = (c = 0, r.length); c < l; c++) this.tag.insertRule(d, r[c]) && (this.groupSizes[t]++, d++);
|
|
1329
|
-
}, e.prototype.clearGroup = function(t) {
|
|
1330
|
-
if (t < this.length) {
|
|
1331
|
-
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
1332
|
-
this.groupSizes[t] = 0;
|
|
1333
|
-
for (var s = n; s < o; s++) this.tag.deleteRule(n);
|
|
1334
|
-
}
|
|
1335
|
-
}, e.prototype.getGroup = function(t) {
|
|
1336
|
-
var r = "";
|
|
1337
|
-
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1338
|
-
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), s = o + n, c = o; c < s; c++) r += "".concat(this.tag.getRule(c)).concat(Qt);
|
|
1339
|
-
return r;
|
|
1340
|
-
}, e;
|
|
1341
|
-
}(), Uo = 1 << 30, gt = /* @__PURE__ */ new Map(), xt = /* @__PURE__ */ new Map(), vt = 1, ut = function(e) {
|
|
1342
|
-
if (gt.has(e)) return gt.get(e);
|
|
1343
|
-
for (; xt.has(vt); ) vt++;
|
|
1344
|
-
var t = vt++;
|
|
1345
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Uo)) throw Ge(16, "".concat(t));
|
|
1346
|
-
return gt.set(e, t), xt.set(t, e), t;
|
|
1347
|
-
}, Yo = function(e, t) {
|
|
1348
|
-
vt = t + 1, gt.set(e, t), xt.set(t, e);
|
|
1349
|
-
}, Ko = "style[".concat(Re, "][").concat(Zr, '="').concat(Et, '"]'), qo = new RegExp("^".concat(Re, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Xo = function(e, t, r) {
|
|
1350
|
-
for (var n, o = r.split(","), s = 0, c = o.length; s < c; s++) (n = o[s]) && e.registerName(t, n);
|
|
1351
|
-
}, Jo = function(e, t) {
|
|
1352
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Qt), o = [], s = 0, c = n.length; s < c; s++) {
|
|
1353
|
-
var d = n[s].trim();
|
|
1354
|
-
if (d) {
|
|
1355
|
-
var l = d.match(qo);
|
|
1356
|
-
if (l) {
|
|
1357
|
-
var h = 0 | parseInt(l[1], 10), u = l[2];
|
|
1358
|
-
h !== 0 && (Yo(u, h), Xo(e, u, l[3]), e.getTag().insertRules(h, o)), o.length = 0;
|
|
1359
|
-
} else o.push(d);
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}, zr = function(e) {
|
|
1363
|
-
for (var t = document.querySelectorAll(Ko), r = 0, n = t.length; r < n; r++) {
|
|
1364
|
-
var o = t[r];
|
|
1365
|
-
o && o.getAttribute(Re) !== Jr && (Jo(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1366
|
-
}
|
|
1367
|
-
};
|
|
1368
|
-
function Zo() {
|
|
1369
|
-
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1370
|
-
}
|
|
1371
|
-
var an = function(e) {
|
|
1372
|
-
var t = document.head, r = e || t, n = document.createElement("style"), o = function(d) {
|
|
1373
|
-
var l = Array.from(d.querySelectorAll("style[".concat(Re, "]")));
|
|
1374
|
-
return l[l.length - 1];
|
|
1375
|
-
}(r), s = o !== void 0 ? o.nextSibling : null;
|
|
1376
|
-
n.setAttribute(Re, Jr), n.setAttribute(Zr, Et);
|
|
1377
|
-
var c = Zo();
|
|
1378
|
-
return c && n.setAttribute("nonce", c), r.insertBefore(n, s), n;
|
|
1379
|
-
}, Qo = function() {
|
|
1380
|
-
function e(t) {
|
|
1381
|
-
this.element = an(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1382
|
-
if (r.sheet) return r.sheet;
|
|
1383
|
-
for (var n = document.styleSheets, o = 0, s = n.length; o < s; o++) {
|
|
1384
|
-
var c = n[o];
|
|
1385
|
-
if (c.ownerNode === r) return c;
|
|
1386
|
-
}
|
|
1387
|
-
throw Ge(17);
|
|
1388
|
-
}(this.element), this.length = 0;
|
|
1389
|
-
}
|
|
1390
|
-
return e.prototype.insertRule = function(t, r) {
|
|
1391
|
-
try {
|
|
1392
|
-
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1393
|
-
} catch {
|
|
1394
|
-
return !1;
|
|
1395
|
-
}
|
|
1396
|
-
}, e.prototype.deleteRule = function(t) {
|
|
1397
|
-
this.sheet.deleteRule(t), this.length--;
|
|
1398
|
-
}, e.prototype.getRule = function(t) {
|
|
1399
|
-
var r = this.sheet.cssRules[t];
|
|
1400
|
-
return r && r.cssText ? r.cssText : "";
|
|
1401
|
-
}, e;
|
|
1402
|
-
}(), ei = function() {
|
|
1403
|
-
function e(t) {
|
|
1404
|
-
this.element = an(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1405
|
-
}
|
|
1406
|
-
return e.prototype.insertRule = function(t, r) {
|
|
1407
|
-
if (t <= this.length && t >= 0) {
|
|
1408
|
-
var n = document.createTextNode(r);
|
|
1409
|
-
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
1410
|
-
}
|
|
1411
|
-
return !1;
|
|
1412
|
-
}, e.prototype.deleteRule = function(t) {
|
|
1413
|
-
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1414
|
-
}, e.prototype.getRule = function(t) {
|
|
1415
|
-
return t < this.length ? this.nodes[t].textContent : "";
|
|
1416
|
-
}, e;
|
|
1417
|
-
}(), ti = function() {
|
|
1418
|
-
function e(t) {
|
|
1419
|
-
this.rules = [], this.length = 0;
|
|
1420
|
-
}
|
|
1421
|
-
return e.prototype.insertRule = function(t, r) {
|
|
1422
|
-
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1423
|
-
}, e.prototype.deleteRule = function(t) {
|
|
1424
|
-
this.rules.splice(t, 1), this.length--;
|
|
1425
|
-
}, e.prototype.getRule = function(t) {
|
|
1426
|
-
return t < this.length ? this.rules[t] : "";
|
|
1427
|
-
}, e;
|
|
1428
|
-
}(), Pr = bt, ri = { isServer: !bt, useCSSOMInjection: !Ro }, cn = function() {
|
|
1429
|
-
function e(t, r, n) {
|
|
1430
|
-
t === void 0 && (t = Fe), r === void 0 && (r = {});
|
|
1431
|
-
var o = this;
|
|
1432
|
-
this.options = K(K({}, ri), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && bt && Pr && (Pr = !1, zr(this)), tr(this, function() {
|
|
1433
|
-
return function(s) {
|
|
1434
|
-
for (var c = s.getTag(), d = c.length, l = "", h = function(f) {
|
|
1435
|
-
var g = function(w) {
|
|
1436
|
-
return xt.get(w);
|
|
1437
|
-
}(f);
|
|
1438
|
-
if (g === void 0) return "continue";
|
|
1439
|
-
var m = s.names.get(g), y = c.getGroup(f);
|
|
1440
|
-
if (m === void 0 || !m.size || y.length === 0) return "continue";
|
|
1441
|
-
var $ = "".concat(Re, ".g").concat(f, '[id="').concat(g, '"]'), C = "";
|
|
1442
|
-
m !== void 0 && m.forEach(function(w) {
|
|
1443
|
-
w.length > 0 && (C += "".concat(w, ","));
|
|
1444
|
-
}), l += "".concat(y).concat($, '{content:"').concat(C, '"}').concat(Qt);
|
|
1445
|
-
}, u = 0; u < d; u++) h(u);
|
|
1446
|
-
return l;
|
|
1447
|
-
}(o);
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
return e.registerId = function(t) {
|
|
1451
|
-
return ut(t);
|
|
1452
|
-
}, e.prototype.rehydrate = function() {
|
|
1453
|
-
!this.server && bt && zr(this);
|
|
1454
|
-
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1455
|
-
return r === void 0 && (r = !0), new e(K(K({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1456
|
-
}, e.prototype.allocateGSInstance = function(t) {
|
|
1457
|
-
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1458
|
-
}, e.prototype.getTag = function() {
|
|
1459
|
-
return this.tag || (this.tag = (t = function(r) {
|
|
1460
|
-
var n = r.useCSSOMInjection, o = r.target;
|
|
1461
|
-
return r.isServer ? new ti(o) : n ? new Qo(o) : new ei(o);
|
|
1462
|
-
}(this.options), new Go(t)));
|
|
1463
|
-
var t;
|
|
1464
|
-
}, e.prototype.hasNameForId = function(t, r) {
|
|
1465
|
-
return this.names.has(t) && this.names.get(t).has(r);
|
|
1466
|
-
}, e.prototype.registerName = function(t, r) {
|
|
1467
|
-
if (ut(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1468
|
-
else {
|
|
1469
|
-
var n = /* @__PURE__ */ new Set();
|
|
1470
|
-
n.add(r), this.names.set(t, n);
|
|
1471
|
-
}
|
|
1472
|
-
}, e.prototype.insertRules = function(t, r, n) {
|
|
1473
|
-
this.registerName(t, r), this.getTag().insertRules(ut(t), n);
|
|
1474
|
-
}, e.prototype.clearNames = function(t) {
|
|
1475
|
-
this.names.has(t) && this.names.get(t).clear();
|
|
1476
|
-
}, e.prototype.clearRules = function(t) {
|
|
1477
|
-
this.getTag().clearGroup(ut(t)), this.clearNames(t);
|
|
1478
|
-
}, e.prototype.clearTag = function() {
|
|
1479
|
-
this.tag = void 0;
|
|
1480
|
-
}, e;
|
|
1481
|
-
}(), ni = /&/g, oi = /^\s*\/\/.*$/gm;
|
|
1482
|
-
function ln(e, t) {
|
|
1483
|
-
return e.map(function(r) {
|
|
1484
|
-
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
1485
|
-
return "".concat(t, " ").concat(n);
|
|
1486
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = ln(r.children, t)), r;
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
function ii(e) {
|
|
1490
|
-
var t, r, n, o = Fe, s = o.options, c = s === void 0 ? Fe : s, d = o.plugins, l = d === void 0 ? Rt : d, h = function(g, m, y) {
|
|
1491
|
-
return y.startsWith(r) && y.endsWith(r) && y.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1492
|
-
}, u = l.slice();
|
|
1493
|
-
u.push(function(g) {
|
|
1494
|
-
g.type === St && g.value.includes("&") && (g.props[0] = g.props[0].replace(ni, r).replace(n, h));
|
|
1495
|
-
}), c.prefix && u.push(jo), u.push(So);
|
|
1496
|
-
var f = function(g, m, y, $) {
|
|
1497
|
-
m === void 0 && (m = ""), y === void 0 && (y = ""), $ === void 0 && ($ = "&"), t = $, r = m, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1498
|
-
var C = g.replace(oi, ""), w = $o(y || m ? "".concat(y, " ").concat(m, " { ").concat(C, " }") : C);
|
|
1499
|
-
c.namespace && (w = ln(w, c.namespace));
|
|
1500
|
-
var b = [];
|
|
1501
|
-
return yt(w, Co(u.concat(ko(function(k) {
|
|
1502
|
-
return b.push(k);
|
|
1503
|
-
})))), b;
|
|
1504
|
-
};
|
|
1505
|
-
return f.hash = l.length ? l.reduce(function(g, m) {
|
|
1506
|
-
return m.name || Ge(15), Ce(g, m.name);
|
|
1507
|
-
}, Qr).toString() : "", f;
|
|
1508
|
-
}
|
|
1509
|
-
var si = new cn(), qt = ii(), dn = le.createContext({ shouldForwardProp: void 0, styleSheet: si, stylis: qt });
|
|
1510
|
-
dn.Consumer;
|
|
1511
|
-
le.createContext(void 0);
|
|
1512
|
-
function Mr() {
|
|
1513
|
-
return xe(dn);
|
|
1514
|
-
}
|
|
1515
|
-
var Or = function() {
|
|
1516
|
-
function e(t, r) {
|
|
1517
|
-
var n = this;
|
|
1518
|
-
this.inject = function(o, s) {
|
|
1519
|
-
s === void 0 && (s = qt);
|
|
1520
|
-
var c = n.name + s.hash;
|
|
1521
|
-
o.hasNameForId(n.id, c) || o.insertRules(n.id, c, s(n.rules, c, "@keyframes"));
|
|
1522
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, tr(this, function() {
|
|
1523
|
-
throw Ge(12, String(n.name));
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
return e.prototype.getName = function(t) {
|
|
1527
|
-
return t === void 0 && (t = qt), this.name + t.hash;
|
|
1528
|
-
}, e;
|
|
1529
|
-
}(), ai = function(e) {
|
|
1530
|
-
return e >= "A" && e <= "Z";
|
|
1531
|
-
};
|
|
1532
|
-
function Br(e) {
|
|
1533
|
-
for (var t = "", r = 0; r < e.length; r++) {
|
|
1534
|
-
var n = e[r];
|
|
1535
|
-
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
1536
|
-
ai(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
1537
|
-
}
|
|
1538
|
-
return t.startsWith("ms-") ? "-" + t : t;
|
|
1539
|
-
}
|
|
1540
|
-
var un = function(e) {
|
|
1541
|
-
return e == null || e === !1 || e === "";
|
|
1542
|
-
}, hn = function(e) {
|
|
1543
|
-
var t, r, n = [];
|
|
1544
|
-
for (var o in e) {
|
|
1545
|
-
var s = e[o];
|
|
1546
|
-
e.hasOwnProperty(o) && !un(s) && (Array.isArray(s) && s.isCss || He(s) ? n.push("".concat(Br(o), ":"), s, ";") : We(s) ? n.push.apply(n, De(De(["".concat(o, " {")], hn(s), !1), ["}"], !1)) : n.push("".concat(Br(o), ": ").concat((t = o, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Eo || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1547
|
-
}
|
|
1548
|
-
return n;
|
|
1549
|
-
};
|
|
1550
|
-
function Ee(e, t, r, n) {
|
|
1551
|
-
if (un(e)) return [];
|
|
1552
|
-
if (er(e)) return [".".concat(e.styledComponentId)];
|
|
1553
|
-
if (He(e)) {
|
|
1554
|
-
if (!He(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1555
|
-
var o = e(t);
|
|
1556
|
-
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Or || We(o) || o === null || console.error("".concat(tn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ee(o, t, r, n);
|
|
1557
|
-
}
|
|
1558
|
-
var s;
|
|
1559
|
-
return e instanceof Or ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : We(e) ? hn(e) : Array.isArray(e) ? Array.prototype.concat.apply(Rt, e.map(function(c) {
|
|
1560
|
-
return Ee(c, t, r, n);
|
|
1561
|
-
})) : [e.toString()];
|
|
1562
|
-
}
|
|
1563
|
-
function ci(e) {
|
|
1564
|
-
for (var t = 0; t < e.length; t += 1) {
|
|
1565
|
-
var r = e[t];
|
|
1566
|
-
if (He(r) && !er(r)) return !1;
|
|
1567
|
-
}
|
|
1568
|
-
return !0;
|
|
1569
|
-
}
|
|
1570
|
-
var li = en(Et), di = function() {
|
|
1571
|
-
function e(t, r, n) {
|
|
1572
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && ci(t), this.componentId = r, this.baseHash = Ce(li, r), this.baseStyle = n, cn.registerId(r);
|
|
1573
|
-
}
|
|
1574
|
-
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1575
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1576
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = ke(o, this.staticRulesId);
|
|
1577
|
-
else {
|
|
1578
|
-
var s = Tr(Ee(this.rules, t, r, n)), c = Yt(Ce(this.baseHash, s) >>> 0);
|
|
1579
|
-
if (!r.hasNameForId(this.componentId, c)) {
|
|
1580
|
-
var d = n(s, ".".concat(c), void 0, this.componentId);
|
|
1581
|
-
r.insertRules(this.componentId, c, d);
|
|
1582
|
-
}
|
|
1583
|
-
o = ke(o, c), this.staticRulesId = c;
|
|
1584
|
-
}
|
|
1585
|
-
else {
|
|
1586
|
-
for (var l = Ce(this.baseHash, n.hash), h = "", u = 0; u < this.rules.length; u++) {
|
|
1587
|
-
var f = this.rules[u];
|
|
1588
|
-
if (typeof f == "string") h += f, process.env.NODE_ENV !== "production" && (l = Ce(l, f));
|
|
1589
|
-
else if (f) {
|
|
1590
|
-
var g = Tr(Ee(f, t, r, n));
|
|
1591
|
-
l = Ce(l, g + u), h += g;
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
if (h) {
|
|
1595
|
-
var m = Yt(l >>> 0);
|
|
1596
|
-
r.hasNameForId(this.componentId, m) || r.insertRules(this.componentId, m, n(h, ".".concat(m), void 0, this.componentId)), o = ke(o, m);
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
return o;
|
|
1600
|
-
}, e;
|
|
1601
|
-
}(), fn = le.createContext(void 0);
|
|
1602
|
-
fn.Consumer;
|
|
1603
|
-
var Ft = {}, Dr = /* @__PURE__ */ new Set();
|
|
1604
|
-
function ui(e, t, r) {
|
|
1605
|
-
var n = er(e), o = e, s = !Nt(e), c = t.attrs, d = c === void 0 ? Rt : c, l = t.componentId, h = l === void 0 ? function(_, A) {
|
|
1606
|
-
var j = typeof _ != "string" ? "sc" : Er(_);
|
|
1607
|
-
Ft[j] = (Ft[j] || 0) + 1;
|
|
1608
|
-
var x = "".concat(j, "-").concat(Po(Et + j + Ft[j]));
|
|
1609
|
-
return A ? "".concat(A, "-").concat(x) : x;
|
|
1610
|
-
}(t.displayName, t.parentComponentId) : l, u = t.displayName, f = u === void 0 ? function(_) {
|
|
1611
|
-
return Nt(_) ? "styled.".concat(_) : "Styled(".concat(tn(_), ")");
|
|
1612
|
-
}(e) : u, g = t.displayName && t.componentId ? "".concat(Er(t.displayName), "-").concat(t.componentId) : t.componentId || h, m = n && o.attrs ? o.attrs.concat(d).filter(Boolean) : d, y = t.shouldForwardProp;
|
|
1613
|
-
if (n && o.shouldForwardProp) {
|
|
1614
|
-
var $ = o.shouldForwardProp;
|
|
1615
|
-
if (t.shouldForwardProp) {
|
|
1616
|
-
var C = t.shouldForwardProp;
|
|
1617
|
-
y = function(_, A) {
|
|
1618
|
-
return $(_, A) && C(_, A);
|
|
1619
|
-
};
|
|
1620
|
-
} else y = $;
|
|
1621
|
-
}
|
|
1622
|
-
var w = new di(r, g, n ? o.componentStyle : void 0);
|
|
1623
|
-
function b(_, A) {
|
|
1624
|
-
return function(j, x, H) {
|
|
1625
|
-
var q = j.attrs, ue = j.componentStyle, he = j.defaultProps, fe = j.foldedComponentIds, W = j.styledComponentId, se = j.target, we = le.useContext(fn), st = Mr(), Ie = j.shouldForwardProp || st.shouldForwardProp;
|
|
1626
|
-
process.env.NODE_ENV !== "production" && xr(W);
|
|
1627
|
-
var Ye = Io(x, we, he) || Fe, X = function(Te, ae, ge) {
|
|
1628
|
-
for (var te, re = K(K({}, ae), { className: void 0, theme: ge }), ve = 0; ve < Te.length; ve += 1) {
|
|
1629
|
-
var ze = He(te = Te[ve]) ? te(re) : te;
|
|
1630
|
-
for (var ne in ze) re[ne] = ne === "className" ? ke(re[ne], ze[ne]) : ne === "style" ? K(K({}, re[ne]), ze[ne]) : ze[ne];
|
|
1631
|
-
}
|
|
1632
|
-
return ae.className && (re.className = ke(re.className, ae.className)), re;
|
|
1633
|
-
}(q, x, Ye), pe = X.as || se, me = {};
|
|
1634
|
-
for (var G in X) X[G] === void 0 || G[0] === "$" || G === "as" || G === "theme" && X.theme === Ye || (G === "forwardedAs" ? me.as = X.forwardedAs : Ie && !Ie(G, pe) || (me[G] = X[G], Ie || process.env.NODE_ENV !== "development" || ao(G) || Dr.has(G) || !Ut.has(pe) || (Dr.add(G), console.warn('styled-components: it looks like an unknown prop "'.concat(G, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1635
|
-
var _e = function(Te, ae) {
|
|
1636
|
-
var ge = Mr(), te = Te.generateAndInjectStyles(ae, ge.styleSheet, ge.stylis);
|
|
1637
|
-
return process.env.NODE_ENV !== "production" && xr(te), te;
|
|
1638
|
-
}(ue, X);
|
|
1639
|
-
process.env.NODE_ENV !== "production" && j.warnTooManyClasses && j.warnTooManyClasses(_e);
|
|
1640
|
-
var Ke = ke(fe, W);
|
|
1641
|
-
return _e && (Ke += " " + _e), X.className && (Ke += " " + X.className), me[Nt(pe) && !Ut.has(pe) ? "class" : "className"] = Ke, me.ref = H, eo(pe, me);
|
|
1642
|
-
}(k, _, A);
|
|
1643
|
-
}
|
|
1644
|
-
b.displayName = f;
|
|
1645
|
-
var k = le.forwardRef(b);
|
|
1646
|
-
return k.attrs = m, k.componentStyle = w, k.displayName = f, k.shouldForwardProp = y, k.foldedComponentIds = n ? ke(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = g, k.target = n ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
|
|
1647
|
-
return this._foldedDefaultProps;
|
|
1648
|
-
}, set: function(_) {
|
|
1649
|
-
this._foldedDefaultProps = n ? function(A) {
|
|
1650
|
-
for (var j = [], x = 1; x < arguments.length; x++) j[x - 1] = arguments[x];
|
|
1651
|
-
for (var H = 0, q = j; H < q.length; H++) Kt(A, q[H], !0);
|
|
1652
|
-
return A;
|
|
1653
|
-
}({}, o.defaultProps, _) : _;
|
|
1654
|
-
} }), process.env.NODE_ENV !== "production" && (Ao(f, g), k.warnTooManyClasses = /* @__PURE__ */ function(_, A) {
|
|
1655
|
-
var j = {}, x = !1;
|
|
1656
|
-
return function(H) {
|
|
1657
|
-
if (!x && (j[H] = !0, Object.keys(j).length >= 200)) {
|
|
1658
|
-
var q = A ? ' with the id of "'.concat(A, '"') : "";
|
|
1659
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(_).concat(q, `.
|
|
1660
|
-
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1661
|
-
Example:
|
|
1662
|
-
const Component = styled.div.attrs(props => ({
|
|
1663
|
-
style: {
|
|
1664
|
-
background: props.background,
|
|
1665
|
-
},
|
|
1666
|
-
}))\`width: 100%;\`
|
|
1667
|
-
|
|
1668
|
-
<Component />`), x = !0, j = {};
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
|
-
}(f, g)), tr(k, function() {
|
|
1672
|
-
return ".".concat(k.styledComponentId);
|
|
1673
|
-
}), s && sn(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
|
|
1674
|
-
}
|
|
1675
|
-
function Lr(e, t) {
|
|
1676
|
-
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1677
|
-
return r;
|
|
1678
|
-
}
|
|
1679
|
-
var Nr = function(e) {
|
|
1680
|
-
return Object.assign(e, { isCss: !0 });
|
|
1681
|
-
};
|
|
1682
|
-
function hi(e) {
|
|
1683
|
-
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1684
|
-
if (He(e) || We(e)) return Nr(Ee(Lr(Rt, De([e], t, !0))));
|
|
1685
|
-
var n = e;
|
|
1686
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ee(n) : Nr(Ee(Lr(n, t)));
|
|
1687
|
-
}
|
|
1688
|
-
function Xt(e, t, r) {
|
|
1689
|
-
if (r === void 0 && (r = Fe), !t) throw Ge(1, t);
|
|
1690
|
-
var n = function(o) {
|
|
1691
|
-
for (var s = [], c = 1; c < arguments.length; c++) s[c - 1] = arguments[c];
|
|
1692
|
-
return e(t, r, hi.apply(void 0, De([o], s, !1)));
|
|
1693
|
-
};
|
|
1694
|
-
return n.attrs = function(o) {
|
|
1695
|
-
return Xt(e, t, K(K({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1696
|
-
}, n.withConfig = function(o) {
|
|
1697
|
-
return Xt(e, t, K(K({}, r), o));
|
|
1698
|
-
}, n;
|
|
1699
|
-
}
|
|
1700
|
-
var pn = function(e) {
|
|
1701
|
-
return Xt(ui, e);
|
|
1702
|
-
}, R = pn;
|
|
1703
|
-
Ut.forEach(function(e) {
|
|
1704
|
-
R[e] = pn(e);
|
|
1705
|
-
});
|
|
1706
|
-
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1707
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
1708
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1709
|
-
var ht = "__sc-".concat(Re, "__");
|
|
1710
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ht] || (window[ht] = 0), window[ht] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1711
|
-
|
|
1712
|
-
See https://s-c.sh/2BAXzed for more info.`), window[ht] += 1);
|
|
1713
|
-
const ot = `
|
|
1714
|
-
animation: fadeIn ease 400ms;
|
|
1715
|
-
-webkit-animation: fadeIn ease 400ms;
|
|
1716
|
-
-moz-animation: fadeIn ease 400ms;
|
|
1717
|
-
|
|
1718
|
-
@keyframes fadeIn {
|
|
1719
|
-
0% {
|
|
1720
|
-
opacity: 0;
|
|
1721
|
-
}
|
|
1722
|
-
100% {
|
|
1723
|
-
opacity: 1;
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
@-moz-keyframes fadeIn {
|
|
1728
|
-
0% {
|
|
1729
|
-
opacity: 0;
|
|
1730
|
-
}
|
|
1731
|
-
100% {
|
|
1732
|
-
opacity: 1;
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
@-webkit-keyframes fadeIn {
|
|
1737
|
-
0% {
|
|
1738
|
-
opacity: 0;
|
|
1739
|
-
}
|
|
1740
|
-
100% {
|
|
1741
|
-
opacity: 1;
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
`, mn = `
|
|
1745
|
-
animation: fadeOut ease 400ms;
|
|
1746
|
-
-webkit-animation: fadeOut ease 400ms;
|
|
1747
|
-
-moz-animation: fadeOut ease 400ms;
|
|
1748
|
-
|
|
1749
|
-
@keyframes fadeOut {
|
|
1750
|
-
0% {
|
|
1751
|
-
opacity: 1;
|
|
1752
|
-
}
|
|
1753
|
-
100% {
|
|
1754
|
-
opacity: 0;
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
@-moz-keyframes fadeOut {
|
|
1759
|
-
0% {
|
|
1760
|
-
opacity: 1;
|
|
1761
|
-
}
|
|
1762
|
-
100% {
|
|
1763
|
-
opacity: 0;
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
@-webkit-keyframes fadeOut {
|
|
1768
|
-
0% {
|
|
1769
|
-
opacity: 1;
|
|
1770
|
-
}
|
|
1771
|
-
100% {
|
|
1772
|
-
opacity: 0;
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
`, fi = Object.freeze({
|
|
1776
|
-
/* Very small devices (phones, 600px and down) */
|
|
1777
|
-
/* @media only screen and (max-width: 600px) {...} */
|
|
1778
|
-
phones: "only screen and (max-width: 600px)",
|
|
1779
|
-
/* Small devices (portrait tablets and large phones, 600px and up) */
|
|
1780
|
-
/* @media only screen and (min-width: 600px) {...} */
|
|
1781
|
-
portraitTablets: "only screen and (min-width: 600px)",
|
|
1782
|
-
/* Medium devices (landscape tablets, 768px and up) */
|
|
1783
|
-
/* @media only screen and (min-width: 768px) {...} */
|
|
1784
|
-
landscapeTablets: "only screen and (min-width: 768px)",
|
|
1785
|
-
/* Large devices (laptops/desktops, 992px and up) */
|
|
1786
|
-
/* @media only screen and (min-width: 992px) {...} */
|
|
1787
|
-
laptops: "only screen and (min-width: 992px)",
|
|
1788
|
-
/* Extra large devices (large laptops and desktops, 1200px and up) */
|
|
1789
|
-
/* @media only screen and (min-width: 1200px) {...} */
|
|
1790
|
-
desktops: "only screen and (min-width: 1200px)"
|
|
1791
|
-
}), pi = {
|
|
1792
|
-
// Colors
|
|
1793
|
-
fontColorBase: "hsl(0, 0%, 24%)",
|
|
1794
|
-
fontColorLight: "hsl(0, 0%, 62%)",
|
|
1795
|
-
fontColorAccent: "hsl(345, 100%, 47%)",
|
|
1796
|
-
backgroundColorBase: "hsl(0, 0%, 100%)",
|
|
1797
|
-
backgroundColorLight: "hsl(0, 0%, 95%)",
|
|
1798
|
-
backgroundColorTransparent: "hsla(0, 0%, 0%, 0.3)",
|
|
1799
|
-
// Gradients
|
|
1800
|
-
gradientShadow: "linear-gradient(to left, hsl(340deg 100% 16%) 0%, hsl(340deg 100% 32%) 8%, hsl(340deg 100% 32%) 92%, hsl(340deg 100% 16%) 100%)",
|
|
1801
|
-
// Fonts
|
|
1802
|
-
fontFamilyCore: "Arial, Helvetica, sans-serif",
|
|
1803
|
-
fontFamilyMonospace: "'Courier New', Courier, monospace",
|
|
1804
|
-
fontSizeBase: "1.2rem",
|
|
1805
|
-
fontSizeSmall: "0.8rem",
|
|
1806
|
-
fontSizeHeader: "2rem",
|
|
1807
|
-
// Units
|
|
1808
|
-
gapSmall: "0.25rem",
|
|
1809
|
-
gapMedium: "0.6rem",
|
|
1810
|
-
gapBig: "1rem",
|
|
1811
|
-
iconSize: "1.2rem",
|
|
1812
|
-
blockBorderRadius: "0.25rem",
|
|
1813
|
-
// Shadows
|
|
1814
|
-
boxShadow: "hsla(0, 0%, 0%, 0.15) 2.4px 2.4px 3.2px",
|
|
1815
|
-
textShadow: "2.4px 2.4px 3.2px hsla(0, 0%, 0%, 0.3)",
|
|
1816
|
-
// Borders
|
|
1817
|
-
borderBase: "1px solid hsl(0, 0%, 84%)",
|
|
1818
|
-
borderLight: "1px solid hsl(0, 0%, 89%)",
|
|
1819
|
-
borderAccent: "1px solid hsl(345, 100%, 47%)",
|
|
1820
|
-
borderOutline: "1px solid hsl(0, 0%, 24%)",
|
|
1821
|
-
// Z-indexes
|
|
1822
|
-
zIndexBase: "1",
|
|
1823
|
-
zIndexPopup: "100",
|
|
1824
|
-
zIndexModal: "200"
|
|
1825
|
-
}, mi = {
|
|
1826
|
-
// Colors
|
|
1827
|
-
fontColorBase: "hsl(0, 0%, 100%)",
|
|
1828
|
-
fontColorLight: "hsl(0, 0%, 92%)",
|
|
1829
|
-
fontColorAccent: "hsl(16, 82%, 52%)",
|
|
1830
|
-
backgroundColorBase: "hsl(0, 0%, 17%)",
|
|
1831
|
-
backgroundColorLight: "hsl(0, 0%, 24%)",
|
|
1832
|
-
backgroundColorTransparent: "hsla(0, 0%, 92%, 0.3)",
|
|
1833
|
-
// Gradients
|
|
1834
|
-
gradientShadow: "linear-gradient(to left, hsl(16, 86%, 26%) 0%, hsl(16, 86%, 30%) 8%, hsl(16, 86%, 30%) 92%, hsl(16, 86%, 26%) 100%)",
|
|
1835
|
-
// Fonts
|
|
1836
|
-
fontFamilyCore: "Arial, Helvetica, sans-serif",
|
|
1837
|
-
fontFamilyMonospace: "'Courier New', Courier, monospace",
|
|
1838
|
-
fontSizeBase: "1.2rem",
|
|
1839
|
-
fontSizeSmall: "0.8rem",
|
|
1840
|
-
fontSizeHeader: "2rem",
|
|
1841
|
-
// Units
|
|
1842
|
-
gapSmall: "0.25rem",
|
|
1843
|
-
gapMedium: "0.6rem",
|
|
1844
|
-
gapBig: "1rem",
|
|
1845
|
-
iconSize: "1.2rem",
|
|
1846
|
-
blockBorderRadius: "0.25rem",
|
|
1847
|
-
// Shadows
|
|
1848
|
-
boxShadow: "hsla(0, 0%, 92%, 0.15) 2.4px 2.4px 3.2px",
|
|
1849
|
-
textShadow: "2.4px 2.4px 3.2px hsla(0, 0%, 92%, 0.3)",
|
|
1850
|
-
// Borders
|
|
1851
|
-
borderBase: "1px solid hsl(0, 0%, 11%)",
|
|
1852
|
-
borderLight: "1px solid hsl(0, 0%, 29%)",
|
|
1853
|
-
borderAccent: "1px solid hsl(16, 82%, 52%)",
|
|
1854
|
-
borderOutline: "1px solid hsl(0, 0%, 100%)",
|
|
1855
|
-
// Z-indexes
|
|
1856
|
-
zIndexBase: "1",
|
|
1857
|
-
zIndexPopup: "100",
|
|
1858
|
-
zIndexModal: "200"
|
|
1859
|
-
}, gi = R.span`
|
|
1860
|
-
display: ${({ $visible: e }) => e ? "block" : "none"};
|
|
1861
|
-
position: absolute;
|
|
1862
|
-
max-width: 100%;
|
|
1863
|
-
right: 0;
|
|
1864
|
-
top: 72px;
|
|
1865
|
-
opacity: 0.8;
|
|
1866
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
1867
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
1868
|
-
border: ${(e) => e.$theme.borderAccent};
|
|
1869
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
1870
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
1871
|
-
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
1872
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
1873
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
1874
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
1875
|
-
pointer-events: none;
|
|
1876
|
-
|
|
1877
|
-
${ot}
|
|
1878
|
-
`, gn = ({
|
|
1879
|
-
errorId: e,
|
|
1880
|
-
testId: t,
|
|
1881
|
-
message: r = "Invalid input",
|
|
1882
|
-
visible: n = !1,
|
|
1883
|
-
style: o,
|
|
1884
|
-
theme: s
|
|
1885
|
-
}) => /* @__PURE__ */ i.jsx(gi, { id: e, $visible: n, "data-testid": t, style: o, $theme: s, "aria-hidden": !n, children: r });
|
|
1886
|
-
var Z = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(Z || {}), be = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Flat = "flat", e.Icon = "icon", e))(be || {}), I = /* @__PURE__ */ ((e) => (e.ArrowDown = "arrow-down", e.ArrowUp = "arrow-up", e.Back = "back", e.Cancel = "cancel", e.CheckboxChecked = "checkbox-checked", e.CheckboxUnchecked = "checkbox-unchecked", e.CheckMark = "check-mark", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Clear = "clear", e.Copy = "copy", e.Cut = "cut", e.Delete = "delete", e.Download = "download", e.Error = "error", e.Forward = "forward", e.Help = "help", e.Hide = "hide", e.Info = "info", e.Paste = "paste", e.Question = "question", e.Save = "save", e.Show = "show", e.Upload = "upload", e.Warning = "warning", e.Remove = "remove", e))(I || {});
|
|
1887
|
-
function rr(e) {
|
|
1888
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z" }) });
|
|
1889
|
-
}
|
|
1890
|
-
function nr(e) {
|
|
1891
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z" }) });
|
|
1892
|
-
}
|
|
1893
|
-
function vi(e) {
|
|
1894
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M328 112L184 256l144 144" }) });
|
|
1895
|
-
}
|
|
1896
|
-
function yi(e) {
|
|
1897
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 470 1000", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156" }) });
|
|
1898
|
-
}
|
|
1899
|
-
function At(e) {
|
|
1900
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx(
|
|
1901
|
-
"path",
|
|
1902
|
-
{
|
|
1903
|
-
fill: "currentColor",
|
|
1904
|
-
d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z"
|
|
1905
|
-
}
|
|
1906
|
-
) });
|
|
1907
|
-
}
|
|
1908
|
-
function It(e) {
|
|
1909
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { fill: "currentColor", d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z" }) });
|
|
1910
|
-
}
|
|
1911
|
-
function or(e) {
|
|
1912
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z" }) });
|
|
1913
|
-
}
|
|
1914
|
-
function bi(e) {
|
|
1915
|
-
return /* @__PURE__ */ i.jsx("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx(
|
|
1916
|
-
"path",
|
|
1917
|
-
{
|
|
1918
|
-
fillRule: "evenodd",
|
|
1919
|
-
d: "M1.553 6.776a.5.5 0 01.67-.223L8 9.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z"
|
|
1920
|
-
}
|
|
1921
|
-
) });
|
|
1922
|
-
}
|
|
1923
|
-
function xi(e) {
|
|
1924
|
-
return /* @__PURE__ */ i.jsx("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx(
|
|
1925
|
-
"path",
|
|
1926
|
-
{
|
|
1927
|
-
fillRule: "evenodd",
|
|
1928
|
-
d: "M9.224 1.553a.5.5 0 01.223.67L6.56 8l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z"
|
|
1929
|
-
}
|
|
1930
|
-
) });
|
|
1931
|
-
}
|
|
1932
|
-
function $i(e) {
|
|
1933
|
-
return /* @__PURE__ */ i.jsx("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx(
|
|
1934
|
-
"path",
|
|
1935
|
-
{
|
|
1936
|
-
fillRule: "evenodd",
|
|
1937
|
-
d: "M6.776 1.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L9.44 8 6.553 2.224a.5.5 0 01.223-.671z"
|
|
1938
|
-
}
|
|
1939
|
-
) });
|
|
1940
|
-
}
|
|
1941
|
-
function wi(e) {
|
|
1942
|
-
return /* @__PURE__ */ i.jsx("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { fillRule: "evenodd", d: "M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z" }) });
|
|
1943
|
-
}
|
|
1944
|
-
function Si(e) {
|
|
1945
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
1946
|
-
/* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("style", {}) }),
|
|
1947
|
-
/* @__PURE__ */ i.jsx("path", { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" })
|
|
1948
|
-
] });
|
|
1949
|
-
}
|
|
1950
|
-
function Ci(e) {
|
|
1951
|
-
return /* @__PURE__ */ i.jsxs(
|
|
1952
|
-
"svg",
|
|
1953
|
-
{
|
|
1954
|
-
fill: "none",
|
|
1955
|
-
stroke: "currentColor",
|
|
1956
|
-
strokeLinecap: "round",
|
|
1957
|
-
strokeLinejoin: "round",
|
|
1958
|
-
strokeWidth: 2,
|
|
1959
|
-
viewBox: "0 0 24 24",
|
|
1960
|
-
height: "1em",
|
|
1961
|
-
width: "1em",
|
|
1962
|
-
...e,
|
|
1963
|
-
children: [
|
|
1964
|
-
/* @__PURE__ */ i.jsx("path", { d: "M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z" }),
|
|
1965
|
-
/* @__PURE__ */ i.jsx("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
|
|
1966
|
-
]
|
|
1967
|
-
}
|
|
1968
|
-
);
|
|
1969
|
-
}
|
|
1970
|
-
function ki(e) {
|
|
1971
|
-
return /* @__PURE__ */ i.jsxs(
|
|
1972
|
-
"svg",
|
|
1973
|
-
{
|
|
1974
|
-
fill: "none",
|
|
1975
|
-
stroke: "currentColor",
|
|
1976
|
-
strokeLinecap: "round",
|
|
1977
|
-
strokeLinejoin: "round",
|
|
1978
|
-
strokeWidth: 2,
|
|
1979
|
-
viewBox: "0 0 24 24",
|
|
1980
|
-
height: "1em",
|
|
1981
|
-
width: "1em",
|
|
1982
|
-
...e,
|
|
1983
|
-
children: [
|
|
1984
|
-
/* @__PURE__ */ i.jsx("path", { stroke: "none", d: "M0 0h24v24H0z" }),
|
|
1985
|
-
/* @__PURE__ */ i.jsx("path", { d: "M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z" }),
|
|
1986
|
-
/* @__PURE__ */ i.jsx("path", { d: "M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z" }),
|
|
1987
|
-
/* @__PURE__ */ i.jsx("path", { d: "M9.15 14.85L18 4M6 4l8.85 10.85" })
|
|
1988
|
-
]
|
|
1989
|
-
}
|
|
1990
|
-
);
|
|
1991
|
-
}
|
|
1992
|
-
function ji(e) {
|
|
1993
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" }) });
|
|
1994
|
-
}
|
|
1995
|
-
function Ei(e) {
|
|
1996
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" }) });
|
|
1997
|
-
}
|
|
1998
|
-
function vn(e) {
|
|
1999
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
2000
|
-
/* @__PURE__ */ i.jsx("path", { d: "M11 7h2v7h-2zm0 8h2v2h-2z" }),
|
|
2001
|
-
/* @__PURE__ */ i.jsx("path", { d: "M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z" })
|
|
2002
|
-
] });
|
|
2003
|
-
}
|
|
2004
|
-
function Ri(e) {
|
|
2005
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M184 112l144 144-144 144" }) });
|
|
2006
|
-
}
|
|
2007
|
-
function yn(e) {
|
|
2008
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z" }) });
|
|
2009
|
-
}
|
|
2010
|
-
function Ai(e) {
|
|
2011
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z" }) });
|
|
2012
|
-
}
|
|
2013
|
-
function bn(e) {
|
|
2014
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
2015
|
-
/* @__PURE__ */ i.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }),
|
|
2016
|
-
/* @__PURE__ */ i.jsx("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" })
|
|
2017
|
-
] });
|
|
2018
|
-
}
|
|
2019
|
-
function Ii(e) {
|
|
2020
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z" }) });
|
|
2021
|
-
}
|
|
2022
|
-
function _i(e) {
|
|
2023
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
2024
|
-
/* @__PURE__ */ i.jsx("path", { fill: "none", stroke: "currentColor", strokeMiterlimit: 10, strokeWidth: 32, d: "M256 80a176 176 0 10176 176A176 176 0 00256 80z" }),
|
|
2025
|
-
/* @__PURE__ */ i.jsx(
|
|
2026
|
-
"path",
|
|
2027
|
-
{
|
|
2028
|
-
fill: "none",
|
|
2029
|
-
stroke: "currentColor",
|
|
2030
|
-
strokeLinecap: "round",
|
|
2031
|
-
strokeMiterlimit: 10,
|
|
2032
|
-
strokeWidth: 28,
|
|
2033
|
-
d: "M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296"
|
|
2034
|
-
}
|
|
2035
|
-
),
|
|
2036
|
-
/* @__PURE__ */ i.jsx("path", { d: "M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z" })
|
|
2037
|
-
] });
|
|
2038
|
-
}
|
|
2039
|
-
function Ti(e) {
|
|
2040
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
2041
|
-
/* @__PURE__ */ i.jsx(
|
|
2042
|
-
"path",
|
|
2043
|
-
{
|
|
2044
|
-
fill: "none",
|
|
2045
|
-
stroke: "currentColor",
|
|
2046
|
-
strokeLinejoin: "round",
|
|
2047
|
-
strokeWidth: 32,
|
|
2048
|
-
d: "M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z"
|
|
2049
|
-
}
|
|
2050
|
-
),
|
|
2051
|
-
/* @__PURE__ */ i.jsx(
|
|
2052
|
-
"path",
|
|
2053
|
-
{
|
|
2054
|
-
fill: "none",
|
|
2055
|
-
stroke: "currentColor",
|
|
2056
|
-
strokeLinecap: "round",
|
|
2057
|
-
strokeLinejoin: "round",
|
|
2058
|
-
strokeWidth: 32,
|
|
2059
|
-
d: "M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"
|
|
2060
|
-
}
|
|
2061
|
-
)
|
|
2062
|
-
] });
|
|
2063
|
-
}
|
|
2064
|
-
function zi(e) {
|
|
2065
|
-
return /* @__PURE__ */ i.jsx("svg", { viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...e, children: /* @__PURE__ */ i.jsx("path", { d: "M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" }) });
|
|
2066
|
-
}
|
|
2067
|
-
function Pi(e) {
|
|
2068
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
2069
|
-
/* @__PURE__ */ i.jsx("path", { d: "M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z" }),
|
|
2070
|
-
/* @__PURE__ */ i.jsx("path", { d: "M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z" })
|
|
2071
|
-
] });
|
|
2072
|
-
}
|
|
2073
|
-
function Mi(e) {
|
|
2074
|
-
return /* @__PURE__ */ i.jsxs("svg", { fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", ...e, children: [
|
|
2075
|
-
/* @__PURE__ */ i.jsx("path", { d: "M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z" }),
|
|
2076
|
-
/* @__PURE__ */ i.jsx("path", { d: "M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z" })
|
|
2077
|
-
] });
|
|
2078
|
-
}
|
|
2079
|
-
function xn(e) {
|
|
2080
|
-
return /* @__PURE__ */ i.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...e, children: [
|
|
2081
|
-
/* @__PURE__ */ i.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }),
|
|
2082
|
-
/* @__PURE__ */ i.jsx("path", { d: "M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z" })
|
|
2083
|
-
] });
|
|
2084
|
-
}
|
|
2085
|
-
const tt = ({ name: e }) => {
|
|
2086
|
-
switch (e) {
|
|
2087
|
-
case I.ArrowDown:
|
|
2088
|
-
return /* @__PURE__ */ i.jsx(rr, {});
|
|
2089
|
-
case I.ArrowUp:
|
|
2090
|
-
return /* @__PURE__ */ i.jsx(nr, {});
|
|
2091
|
-
case I.Back:
|
|
2092
|
-
return /* @__PURE__ */ i.jsx(vi, {});
|
|
2093
|
-
case I.Cancel:
|
|
2094
|
-
return /* @__PURE__ */ i.jsx(yi, {});
|
|
2095
|
-
case I.CheckboxChecked:
|
|
2096
|
-
return /* @__PURE__ */ i.jsx(At, {});
|
|
2097
|
-
case I.CheckboxUnchecked:
|
|
2098
|
-
return /* @__PURE__ */ i.jsx(It, {});
|
|
2099
|
-
case I.CheckMark:
|
|
2100
|
-
return /* @__PURE__ */ i.jsx(or, {});
|
|
2101
|
-
case I.ChevronDown:
|
|
2102
|
-
return /* @__PURE__ */ i.jsx(bi, {});
|
|
2103
|
-
case I.ChevronUp:
|
|
2104
|
-
return /* @__PURE__ */ i.jsx(wi, {});
|
|
2105
|
-
case I.ChevronLeft:
|
|
2106
|
-
return /* @__PURE__ */ i.jsx(xi, {});
|
|
2107
|
-
case I.ChevronRight:
|
|
2108
|
-
return /* @__PURE__ */ i.jsx($i, {});
|
|
2109
|
-
case I.Clear:
|
|
2110
|
-
return /* @__PURE__ */ i.jsx(Si, {});
|
|
2111
|
-
case I.Copy:
|
|
2112
|
-
return /* @__PURE__ */ i.jsx(Ci, {});
|
|
2113
|
-
case I.Cut:
|
|
2114
|
-
return /* @__PURE__ */ i.jsx(ki, {});
|
|
2115
|
-
case I.Delete:
|
|
2116
|
-
return /* @__PURE__ */ i.jsx(ji, {});
|
|
2117
|
-
case I.Download:
|
|
2118
|
-
return /* @__PURE__ */ i.jsx(Ei, {});
|
|
2119
|
-
case I.Error:
|
|
2120
|
-
return /* @__PURE__ */ i.jsx(vn, {});
|
|
2121
|
-
case I.Forward:
|
|
2122
|
-
return /* @__PURE__ */ i.jsx(Ri, {});
|
|
2123
|
-
case I.Help:
|
|
2124
|
-
return /* @__PURE__ */ i.jsx(yn, {});
|
|
2125
|
-
case I.Hide:
|
|
2126
|
-
return /* @__PURE__ */ i.jsx(Ai, {});
|
|
2127
|
-
case I.Info:
|
|
2128
|
-
return /* @__PURE__ */ i.jsx(bn, {});
|
|
2129
|
-
case I.Paste:
|
|
2130
|
-
return /* @__PURE__ */ i.jsx(Ii, {});
|
|
2131
|
-
case I.Question:
|
|
2132
|
-
return /* @__PURE__ */ i.jsx(_i, {});
|
|
2133
|
-
case I.Save:
|
|
2134
|
-
return /* @__PURE__ */ i.jsx(zi, {});
|
|
2135
|
-
case I.Show:
|
|
2136
|
-
return /* @__PURE__ */ i.jsx(Pi, {});
|
|
2137
|
-
case I.Upload:
|
|
2138
|
-
return /* @__PURE__ */ i.jsx(Mi, {});
|
|
2139
|
-
case I.Warning:
|
|
2140
|
-
return /* @__PURE__ */ i.jsx(xn, {});
|
|
2141
|
-
case I.Remove:
|
|
2142
|
-
return /* @__PURE__ */ i.jsx(Ti, {});
|
|
2143
|
-
default:
|
|
2144
|
-
return null;
|
|
2145
|
-
}
|
|
2146
|
-
}, Oi = R.button`
|
|
2147
|
-
background: transparent;
|
|
2148
|
-
border: none;
|
|
2149
|
-
display: flex;
|
|
2150
|
-
align-items: center;
|
|
2151
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2152
|
-
color: ${(e) => e.$theme.fontColorLight};
|
|
2153
|
-
padding: 0;
|
|
2154
|
-
|
|
2155
|
-
&:focus-visible {
|
|
2156
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2157
|
-
outline-offset: -1px;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
&:hover {
|
|
2161
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
svg {
|
|
2165
|
-
cursor: pointer;
|
|
2166
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2167
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
&[disabled] {
|
|
2171
|
-
pointer-events: none;
|
|
2172
|
-
opacity: 0.5;
|
|
2173
|
-
}
|
|
2174
|
-
`, $t = ({ onClick: e, label: t, icon: r, disabled: n, theme: o }) => /* @__PURE__ */ i.jsx(Oi, { onClick: e, "aria-label": t, type: "button", disabled: n, $theme: o, children: /* @__PURE__ */ i.jsx(tt, { name: r }) }), Bi = R.label`
|
|
2175
|
-
display: flex;
|
|
2176
|
-
align-items: center;
|
|
2177
|
-
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
2178
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2179
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
2180
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2181
|
-
|
|
2182
|
-
&:hover {
|
|
2183
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
& + span {
|
|
2187
|
-
text-wrap: nowrap;
|
|
2188
|
-
overflow: hidden;
|
|
2189
|
-
text-overflow: ellipsis;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
& abbr {
|
|
2193
|
-
text-decoration: none;
|
|
2194
|
-
cursor: pointer;
|
|
2195
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2196
|
-
margin-left: ${(e) => e.$theme.gapSmall};
|
|
2197
|
-
}
|
|
2198
|
-
`, Ue = ({
|
|
2199
|
-
label: e,
|
|
2200
|
-
required: t,
|
|
2201
|
-
inputId: r,
|
|
2202
|
-
theme: n,
|
|
2203
|
-
icon: o,
|
|
2204
|
-
iconPosition: s,
|
|
2205
|
-
isTextHidden: c = !1,
|
|
2206
|
-
style: d
|
|
2207
|
-
}) => {
|
|
2208
|
-
const l = !!o && s === "left", h = !!o && s === "right";
|
|
2209
|
-
return /* @__PURE__ */ i.jsxs(Bi, { htmlFor: r, style: d, $theme: n, children: [
|
|
2210
|
-
l && o,
|
|
2211
|
-
!c && /* @__PURE__ */ i.jsxs("span", { children: [
|
|
2212
|
-
e,
|
|
2213
|
-
t && /* @__PURE__ */ i.jsx("abbr", { title: "required", children: "*" })
|
|
2214
|
-
] }),
|
|
2215
|
-
h && o
|
|
2216
|
-
] });
|
|
2217
|
-
};
|
|
2218
|
-
function Di(e) {
|
|
2219
|
-
return ({ tooltip: t, visibleOn: r, ...n }) => t != null && t.length ? /* @__PURE__ */ i.jsx(Ts, { tooltipContent: t, visibleOn: r, children: /* @__PURE__ */ i.jsx(e, { ...n }) }) : /* @__PURE__ */ i.jsx(e, { ...n });
|
|
2220
|
-
}
|
|
2221
|
-
const Ae = le.createContext({}), Li = le.createContext({
|
|
2222
|
-
mode: "light"
|
|
2223
|
-
});
|
|
2224
|
-
function Ni(e, t) {
|
|
2225
|
-
const r = e === "dark" ? mi : pi;
|
|
2226
|
-
if (t)
|
|
2227
|
-
for (const n in t) {
|
|
2228
|
-
const o = n;
|
|
2229
|
-
Object.prototype.hasOwnProperty.call(r, o) && (r[o] = t[o].toString());
|
|
2230
|
-
}
|
|
2231
|
-
return r;
|
|
2232
|
-
}
|
|
2233
|
-
function rt(e) {
|
|
2234
|
-
const t = document.getElementById(e);
|
|
2235
|
-
t && t.focus();
|
|
2236
|
-
}
|
|
2237
|
-
function $n({
|
|
2238
|
-
e,
|
|
2239
|
-
options: t,
|
|
2240
|
-
onClose: r
|
|
2241
|
-
}) {
|
|
2242
|
-
let n = "";
|
|
2243
|
-
t.forEach((s) => {
|
|
2244
|
-
document.getElementById(s.id) === document.activeElement && (n = s.id);
|
|
2245
|
-
});
|
|
2246
|
-
const o = t.findIndex((s) => s.id === n);
|
|
2247
|
-
switch (e.key) {
|
|
2248
|
-
case "Escape":
|
|
2249
|
-
e.preventDefault(), r();
|
|
2250
|
-
break;
|
|
2251
|
-
case "ArrowUp": {
|
|
2252
|
-
e.preventDefault();
|
|
2253
|
-
const s = o - 1 >= 0 ? o - 1 : t.length - 1, c = t[s];
|
|
2254
|
-
c && rt(c.id);
|
|
2255
|
-
break;
|
|
2256
|
-
}
|
|
2257
|
-
case "ArrowDown":
|
|
2258
|
-
case "Tab": {
|
|
2259
|
-
e.preventDefault();
|
|
2260
|
-
const s = o === t.length - 1 ? 0 : o + 1, c = t[s];
|
|
2261
|
-
c && rt(c.id);
|
|
2262
|
-
break;
|
|
2263
|
-
}
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
const ee = () => {
|
|
2267
|
-
const { customTheme: e, mode: t } = xe(Li);
|
|
2268
|
-
return Ni(t, e);
|
|
2269
|
-
}, ir = ({ ref: e, onClickOutsideHandler: t, dependentRef: r }) => {
|
|
2270
|
-
de(() => {
|
|
2271
|
-
const n = (o) => {
|
|
2272
|
-
const s = (e == null ? void 0 : e.current) && !e.current.contains(o.target), c = r != null && r.current ? !r.current.contains(o.target) : !0;
|
|
2273
|
-
s && c && t();
|
|
2274
|
-
};
|
|
2275
|
-
return document.addEventListener("mousedown", n), () => {
|
|
2276
|
-
document.removeEventListener("mousedown", n);
|
|
2277
|
-
};
|
|
2278
|
-
}, [e, r, t]);
|
|
2279
|
-
}, Fi = ({ ref: e, isVisible: t }) => {
|
|
2280
|
-
const [r, n] = L({ width: 0, height: 0 });
|
|
2281
|
-
return de(() => {
|
|
2282
|
-
e.current && t && n({
|
|
2283
|
-
width: e.current.offsetWidth,
|
|
2284
|
-
height: e.current.offsetHeight
|
|
2285
|
-
});
|
|
2286
|
-
}, [e, t]), r;
|
|
2287
|
-
};
|
|
2288
|
-
function $e(e) {
|
|
2289
|
-
const t = to(), r = e ?? t, n = `${r}_error`, o = `${r}_dropdown`;
|
|
2290
|
-
return {
|
|
2291
|
-
elementId: r,
|
|
2292
|
-
errorId: n,
|
|
2293
|
-
dropdownId: o
|
|
2294
|
-
};
|
|
2295
|
-
}
|
|
2296
|
-
const _t = ({ ref: e, keyCode: t, onKeyPress: r }) => {
|
|
2297
|
-
de(() => {
|
|
2298
|
-
const n = (o) => {
|
|
2299
|
-
(o == null ? void 0 : o.code) === t && (e != null && e.current) && r();
|
|
2300
|
-
};
|
|
2301
|
-
return document.addEventListener("keydown", n, !1), () => {
|
|
2302
|
-
document.removeEventListener("keydown", n, !1);
|
|
2303
|
-
};
|
|
2304
|
-
}, [e, t, r]);
|
|
2305
|
-
}, Hi = ({ modalRef: e, isOpened: t }) => {
|
|
2306
|
-
de(() => {
|
|
2307
|
-
const r = e.current;
|
|
2308
|
-
if (!t || !r) return;
|
|
2309
|
-
const n = r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = n[0], s = n[n.length - 1], c = (d) => {
|
|
2310
|
-
d.key === "Tab" && (d.shiftKey && document.activeElement === o ? (d.preventDefault(), s.focus()) : !d.shiftKey && document.activeElement === s && (d.preventDefault(), o.focus()));
|
|
2311
|
-
};
|
|
2312
|
-
return r.addEventListener("keydown", c), () => {
|
|
2313
|
-
r.removeEventListener("keydown", c);
|
|
2314
|
-
};
|
|
2315
|
-
}, [e, t]);
|
|
2316
|
-
}, wn = (e, t = 300) => {
|
|
2317
|
-
const [r, n] = L(!1);
|
|
2318
|
-
return de(() => {
|
|
2319
|
-
e && !r ? n(!0) : !e && r && setTimeout(() => {
|
|
2320
|
-
n(!1);
|
|
2321
|
-
}, t);
|
|
2322
|
-
}, [e]), r;
|
|
2323
|
-
}, it = (e) => {
|
|
2324
|
-
const { resetSignal: t } = xe(Ae);
|
|
2325
|
-
de(() => {
|
|
2326
|
-
t && e();
|
|
2327
|
-
}, [t, e]);
|
|
2328
|
-
};
|
|
2329
|
-
function Fr() {
|
|
2330
|
-
const { innerWidth: e, innerHeight: t } = window;
|
|
2331
|
-
return { width: e, height: t };
|
|
2332
|
-
}
|
|
2333
|
-
function Wi() {
|
|
2334
|
-
const [e, t] = L(Fr());
|
|
2335
|
-
return de(() => {
|
|
2336
|
-
function r() {
|
|
2337
|
-
t(Fr());
|
|
2338
|
-
}
|
|
2339
|
-
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
|
|
2340
|
-
}, []), e;
|
|
2341
|
-
}
|
|
2342
|
-
const Vi = ({ wrapperRef: e, tooltipRef: t, isOpened: r, spacing: n = 4 }) => {
|
|
2343
|
-
const [o, s] = L({ top: 0, left: 0 }), { width: c, height: d } = Fi({ ref: t, isVisible: r }), { width: l, height: h } = Wi();
|
|
2344
|
-
return de(() => {
|
|
2345
|
-
if (r && e.current) {
|
|
2346
|
-
const u = e.current.getBoundingClientRect();
|
|
2347
|
-
let f = Math.round(u.bottom + n), g = Math.round(u.left);
|
|
2348
|
-
f + d > window.innerHeight && (f = Math.round(u.top - d - n)), g + c > window.innerWidth && (g = Math.round(window.innerWidth - c - n)), g < 0 && (g = n), s({ top: f, left: g });
|
|
2349
|
-
}
|
|
2350
|
-
}, [r, e, d, c, n, l, h]), o;
|
|
2351
|
-
}, Gi = R.button`
|
|
2352
|
-
position: relative;
|
|
2353
|
-
border: none;
|
|
2354
|
-
background: transparent;
|
|
2355
|
-
padding: 0;
|
|
2356
|
-
cursor: pointer;
|
|
2357
|
-
outline: none;
|
|
2358
|
-
transition: filter 250ms;
|
|
2359
|
-
width: ${(e) => e.$extended ? "100%" : "inherit"};
|
|
2360
|
-
|
|
2361
|
-
&[disabled] {
|
|
2362
|
-
pointer-events: none;
|
|
2363
|
-
opacity: 0.5;
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
.chop-logic-button_shadow {
|
|
2367
|
-
position: absolute;
|
|
2368
|
-
top: 0;
|
|
2369
|
-
left: 0;
|
|
2370
|
-
width: 100%;
|
|
2371
|
-
height: 100%;
|
|
2372
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2373
|
-
background: hsl(0deg 0% 0% / 0.25);
|
|
2374
|
-
will-change: transform;
|
|
2375
|
-
transform: translateY(2px);
|
|
2376
|
-
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
.chop-logic-button_edge {
|
|
2380
|
-
position: absolute;
|
|
2381
|
-
top: 0;
|
|
2382
|
-
left: 0;
|
|
2383
|
-
width: 100%;
|
|
2384
|
-
height: 100%;
|
|
2385
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2386
|
-
background: ${(e) => e.$theme.gradientShadow};
|
|
2387
|
-
}
|
|
2388
|
-
|
|
2389
|
-
.chop-logic-button_front {
|
|
2390
|
-
display: flex;
|
|
2391
|
-
align-items: center;
|
|
2392
|
-
justify-content: center;
|
|
2393
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
2394
|
-
position: relative;
|
|
2395
|
-
padding: ${(e) => `${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
2396
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2397
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2398
|
-
color: #ffffff;
|
|
2399
|
-
background: ${(e) => e.$theme.fontColorAccent};
|
|
2400
|
-
will-change: transform;
|
|
2401
|
-
transform: translateY(-4px);
|
|
2402
|
-
transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
&:hover {
|
|
2406
|
-
filter: brightness(110%);
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
&:hover .chop-logic-button_front {
|
|
2410
|
-
transform: translateY(-6px);
|
|
2411
|
-
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
&:active .chop-logic-button_front {
|
|
2415
|
-
transform: translateY(-2px);
|
|
2416
|
-
transition: transform 34ms;
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
&:hover .chop-logic-button_shadow {
|
|
2420
|
-
transform: translateY(4px);
|
|
2421
|
-
transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
&:active .chop-logic-button_shadow {
|
|
2425
|
-
transform: translateY(1px);
|
|
2426
|
-
transition: transform 34ms;
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
|
-
&:focus-visible {
|
|
2430
|
-
outline: revert;
|
|
2431
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2432
|
-
outline-offset: 4px;
|
|
2433
|
-
}
|
|
2434
|
-
`, Ui = R.button`
|
|
2435
|
-
border: none;
|
|
2436
|
-
cursor: pointer;
|
|
2437
|
-
display: flex;
|
|
2438
|
-
align-items: center;
|
|
2439
|
-
justify-content: center;
|
|
2440
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
2441
|
-
padding: ${(e) => `${e.$theme.gapMedium} ${e.$theme.gapBig}`};
|
|
2442
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2443
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2444
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2445
|
-
background: transparent;
|
|
2446
|
-
width: ${(e) => e.$extended ? "100%" : "inherit"};
|
|
2447
|
-
|
|
2448
|
-
&:hover,
|
|
2449
|
-
&:active {
|
|
2450
|
-
background: ${(e) => e.$theme.backgroundColorLight};
|
|
2451
|
-
transition: all 0.3s ease 0s;
|
|
2452
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
&:focus-visible {
|
|
2456
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
&[disabled] {
|
|
2460
|
-
pointer-events: none;
|
|
2461
|
-
opacity: 0.5;
|
|
2462
|
-
}
|
|
2463
|
-
`, Yi = R.button`
|
|
2464
|
-
border: none;
|
|
2465
|
-
cursor: pointer;
|
|
2466
|
-
display: flex;
|
|
2467
|
-
align-items: center;
|
|
2468
|
-
justify-content: center;
|
|
2469
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2470
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2471
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2472
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2473
|
-
background: transparent;
|
|
2474
|
-
|
|
2475
|
-
&:hover {
|
|
2476
|
-
background-color: ${(e) => e.$theme.backgroundColorLight};
|
|
2477
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2478
|
-
transition: all 0.3s ease 0s;
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
&:focus-visible {
|
|
2482
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
|
-
&[disabled] {
|
|
2486
|
-
pointer-events: none;
|
|
2487
|
-
opacity: 0.5;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
svg {
|
|
2491
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2492
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2493
|
-
}
|
|
2494
|
-
`, Ki = ({
|
|
2495
|
-
onClick: e,
|
|
2496
|
-
text: t,
|
|
2497
|
-
icon: r,
|
|
2498
|
-
label: n,
|
|
2499
|
-
disabled: o = !1,
|
|
2500
|
-
extended: s = !1,
|
|
2501
|
-
type: c = "button",
|
|
2502
|
-
view: d = be.Primary,
|
|
2503
|
-
...l
|
|
2504
|
-
}) => {
|
|
2505
|
-
const h = ee();
|
|
2506
|
-
switch (d) {
|
|
2507
|
-
case be.Primary:
|
|
2508
|
-
return /* @__PURE__ */ i.jsxs(
|
|
2509
|
-
Gi,
|
|
2510
|
-
{
|
|
2511
|
-
$extended: s,
|
|
2512
|
-
"aria-label": n,
|
|
2513
|
-
type: c,
|
|
2514
|
-
onClick: e,
|
|
2515
|
-
disabled: o,
|
|
2516
|
-
$theme: h,
|
|
2517
|
-
...l,
|
|
2518
|
-
children: [
|
|
2519
|
-
/* @__PURE__ */ i.jsx("span", { className: "chop-logic-button_shadow" }),
|
|
2520
|
-
/* @__PURE__ */ i.jsx("span", { className: "chop-logic-button_edge" }),
|
|
2521
|
-
/* @__PURE__ */ i.jsxs("span", { className: "chop-logic-button_front", children: [
|
|
2522
|
-
/* @__PURE__ */ i.jsx(tt, { name: r }),
|
|
2523
|
-
t
|
|
2524
|
-
] })
|
|
2525
|
-
]
|
|
2526
|
-
}
|
|
2527
|
-
);
|
|
2528
|
-
case be.Flat:
|
|
2529
|
-
return /* @__PURE__ */ i.jsxs(
|
|
2530
|
-
Ui,
|
|
2531
|
-
{
|
|
2532
|
-
$extended: s,
|
|
2533
|
-
"aria-label": n,
|
|
2534
|
-
type: c,
|
|
2535
|
-
onClick: e,
|
|
2536
|
-
disabled: o,
|
|
2537
|
-
$theme: h,
|
|
2538
|
-
...l,
|
|
2539
|
-
children: [
|
|
2540
|
-
/* @__PURE__ */ i.jsx(tt, { name: r }),
|
|
2541
|
-
t
|
|
2542
|
-
]
|
|
2543
|
-
}
|
|
2544
|
-
);
|
|
2545
|
-
case be.Icon:
|
|
2546
|
-
return /* @__PURE__ */ i.jsx(Yi, { "aria-label": n, type: c, onClick: e, disabled: o, $theme: h, ...l, children: /* @__PURE__ */ i.jsx(tt, { name: r }) });
|
|
2547
|
-
default:
|
|
2548
|
-
return null;
|
|
2549
|
-
}
|
|
2550
|
-
}, wt = Di(Ki), qi = R.div`
|
|
2551
|
-
display: flex;
|
|
2552
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2553
|
-
padding: ${(e) => e.$theme.gapMedium} 0;
|
|
2554
|
-
position: relative;
|
|
2555
|
-
overflow: hidden;
|
|
2556
|
-
|
|
2557
|
-
& svg {
|
|
2558
|
-
color: ${(e) => e.$checked ? e.$theme.fontColorAccent : e.$theme.fontColorLight};
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
& label {
|
|
2562
|
-
cursor: pointer;
|
|
2563
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2564
|
-
font-size: ${(e) => e.$theme.fontSizeBase} !important;
|
|
2565
|
-
&:hover,
|
|
2566
|
-
&:active {
|
|
2567
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2571
|
-
${(e) => e.$disabled && `
|
|
2572
|
-
pointer-events: none;
|
|
2573
|
-
opacity: 0.5;
|
|
2574
|
-
`}
|
|
2575
|
-
|
|
2576
|
-
& input {
|
|
2577
|
-
position: absolute;
|
|
2578
|
-
z-index: -1;
|
|
2579
|
-
opacity: 0;
|
|
2580
|
-
top: 4px;
|
|
2581
|
-
left: 0;
|
|
2582
|
-
margin: 0;
|
|
2583
|
-
|
|
2584
|
-
&:focus-visible + label {
|
|
2585
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2586
|
-
outline-offset: 2px;
|
|
2587
|
-
}
|
|
2588
|
-
}
|
|
2589
|
-
`;
|
|
2590
|
-
function Xi({
|
|
2591
|
-
defaultChecked: e,
|
|
2592
|
-
initialValues: t,
|
|
2593
|
-
name: r
|
|
2594
|
-
}) {
|
|
2595
|
-
return t && (t == null ? void 0 : t[r]) !== void 0 ? !!(t != null && t[r]) : !!e;
|
|
2596
|
-
}
|
|
2597
|
-
function Ji({
|
|
2598
|
-
name: e,
|
|
2599
|
-
defaultChecked: t,
|
|
2600
|
-
onChange: r
|
|
2601
|
-
}) {
|
|
2602
|
-
const { onChangeFormInput: n, initialValues: o } = xe(Ae), s = Xi({ initialValues: o, name: e, defaultChecked: t }), [c, d] = L(s), l = (u) => {
|
|
2603
|
-
const f = u.target.checked;
|
|
2604
|
-
d(f), r == null || r(u), n == null || n({ name: e, value: f });
|
|
2605
|
-
}, h = nt(() => {
|
|
2606
|
-
d(s), n == null || n({ name: e, value: s });
|
|
2607
|
-
}, [e]);
|
|
2608
|
-
return it(h), {
|
|
2609
|
-
handleChange: l,
|
|
2610
|
-
checked: c
|
|
2611
|
-
};
|
|
2612
|
-
}
|
|
2613
|
-
const ha = ({
|
|
2614
|
-
name: e,
|
|
2615
|
-
label: t,
|
|
2616
|
-
disabled: r,
|
|
2617
|
-
noLabel: n,
|
|
2618
|
-
required: o = !1,
|
|
2619
|
-
iconPosition: s = "left",
|
|
2620
|
-
defaultChecked: c,
|
|
2621
|
-
onChange: d,
|
|
2622
|
-
id: l,
|
|
2623
|
-
...h
|
|
2624
|
-
}) => {
|
|
2625
|
-
const { handleChange: u, checked: f } = Ji({ name: e, defaultChecked: c, onChange: d }), { elementId: g } = $e(l), m = ee();
|
|
2626
|
-
return /* @__PURE__ */ i.jsxs(qi, { $disabled: !!r, $theme: m, $checked: f, ...h, children: [
|
|
2627
|
-
/* @__PURE__ */ i.jsx(
|
|
2628
|
-
"input",
|
|
2629
|
-
{
|
|
2630
|
-
id: g,
|
|
2631
|
-
name: e,
|
|
2632
|
-
type: "checkbox",
|
|
2633
|
-
disabled: r,
|
|
2634
|
-
required: o,
|
|
2635
|
-
checked: f,
|
|
2636
|
-
onChange: u,
|
|
2637
|
-
"aria-label": n ? t : void 0
|
|
2638
|
-
}
|
|
2639
|
-
),
|
|
2640
|
-
/* @__PURE__ */ i.jsx(
|
|
2641
|
-
Ue,
|
|
2642
|
-
{
|
|
2643
|
-
label: t,
|
|
2644
|
-
required: o,
|
|
2645
|
-
inputId: g,
|
|
2646
|
-
isTextHidden: n,
|
|
2647
|
-
icon: f ? /* @__PURE__ */ i.jsx(At, {}) : /* @__PURE__ */ i.jsx(It, {}),
|
|
2648
|
-
iconPosition: s,
|
|
2649
|
-
theme: m
|
|
2650
|
-
}
|
|
2651
|
-
)
|
|
2652
|
-
] });
|
|
2653
|
-
}, Sn = R.div`
|
|
2654
|
-
position: relative;
|
|
2655
|
-
display: flex;
|
|
2656
|
-
justify-content: space-between;
|
|
2657
|
-
flex-direction: column;
|
|
2658
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2659
|
-
background: transparent;
|
|
2660
|
-
`, Cn = R.button`
|
|
2661
|
-
text-align: left;
|
|
2662
|
-
cursor: pointer;
|
|
2663
|
-
display: flex;
|
|
2664
|
-
justify-content: space-between;
|
|
2665
|
-
align-items: center;
|
|
2666
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2667
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2668
|
-
border: ${(e) => e.$theme.borderBase};
|
|
2669
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2670
|
-
background-color: ${(e) => e.$theme.backgroundColorLight};
|
|
2671
|
-
white-space: nowrap;
|
|
2672
|
-
text-overflow: ellipsis;
|
|
2673
|
-
overflow: hidden;
|
|
2674
|
-
|
|
2675
|
-
& > span:nth-child(1) {
|
|
2676
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2677
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2678
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2679
|
-
overflow: hidden;
|
|
2680
|
-
text-overflow: ellipsis;
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
svg {
|
|
2684
|
-
cursor: pointer;
|
|
2685
|
-
color: ${(e) => e.$theme.fontColorLight};
|
|
2686
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2687
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2688
|
-
|
|
2689
|
-
&:hover {
|
|
2690
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2691
|
-
}
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
&:focus-visible {
|
|
2695
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2696
|
-
outline-offset: 2px;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
&[disabled] {
|
|
2700
|
-
pointer-events: none;
|
|
2701
|
-
opacity: 0.5;
|
|
2702
|
-
}
|
|
2703
|
-
`, kn = R.ul`
|
|
2704
|
-
visibility: hidden;
|
|
2705
|
-
opacity: 0;
|
|
2706
|
-
transition:
|
|
2707
|
-
visibility 0s,
|
|
2708
|
-
opacity 0.3s linear;
|
|
2709
|
-
position: absolute;
|
|
2710
|
-
background: ${(e) => e.$theme.backgroundColorLight};
|
|
2711
|
-
margin: 0;
|
|
2712
|
-
padding: 0;
|
|
2713
|
-
list-style: none;
|
|
2714
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
2715
|
-
width: 100%;
|
|
2716
|
-
top: 72px;
|
|
2717
|
-
left: -1px;
|
|
2718
|
-
border: ${(e) => e.$theme.borderBase};
|
|
2719
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2720
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
2721
|
-
overflow-y: auto;
|
|
2722
|
-
max-height: 180px;
|
|
2723
|
-
|
|
2724
|
-
${(e) => e.$opened && "visibility: visible; opacity: 1;"}
|
|
2725
|
-
`, jn = R.li`
|
|
2726
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2727
|
-
cursor: pointer;
|
|
2728
|
-
display: flex;
|
|
2729
|
-
justify-content: space-between;
|
|
2730
|
-
align-items: center;
|
|
2731
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2732
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2733
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
2734
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
2735
|
-
|
|
2736
|
-
&:hover,
|
|
2737
|
-
&:active {
|
|
2738
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
|
-
&:focus-visible {
|
|
2742
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
2743
|
-
outline-offset: -4px;
|
|
2744
|
-
}
|
|
2745
|
-
|
|
2746
|
-
svg {
|
|
2747
|
-
color: ${(e) => e.$selected ? e.$theme.fontColorAccent : e.$theme.fontColorLight};
|
|
2748
|
-
width: ${(e) => e.$theme.iconSize};
|
|
2749
|
-
height: ${(e) => e.$theme.iconSize};
|
|
2750
|
-
}
|
|
2751
|
-
`, Zi = R(jn)`
|
|
2752
|
-
justify-content: flex-start;
|
|
2753
|
-
`, Qi = ({
|
|
2754
|
-
opened: e,
|
|
2755
|
-
onClick: t,
|
|
2756
|
-
comboboxId: r,
|
|
2757
|
-
dropdownId: n,
|
|
2758
|
-
name: o,
|
|
2759
|
-
placeholder: s,
|
|
2760
|
-
disabled: c,
|
|
2761
|
-
required: d,
|
|
2762
|
-
values: l,
|
|
2763
|
-
theme: h
|
|
2764
|
-
}) => {
|
|
2765
|
-
const u = l == null ? void 0 : l.filter((m) => m.selected).map((m) => m.label), f = l == null ? void 0 : l.filter((m) => m.selected).map((m) => m.id);
|
|
2766
|
-
let g = /* @__PURE__ */ i.jsx("span", { children: s });
|
|
2767
|
-
return u && u.length > 1 ? g = /* @__PURE__ */ i.jsx("span", { children: `${u.length} items selected` }) : u && u.length === 1 && (g = /* @__PURE__ */ i.jsx("span", { children: u[0] })), /* @__PURE__ */ i.jsxs(
|
|
2768
|
-
Cn,
|
|
2769
|
-
{
|
|
2770
|
-
type: "button",
|
|
2771
|
-
name: o,
|
|
2772
|
-
value: f,
|
|
2773
|
-
role: "combobox",
|
|
2774
|
-
"aria-haspopup": "listbox",
|
|
2775
|
-
"aria-expanded": e,
|
|
2776
|
-
"aria-controls": n,
|
|
2777
|
-
id: r,
|
|
2778
|
-
onClick: t,
|
|
2779
|
-
disabled: c,
|
|
2780
|
-
"aria-required": d,
|
|
2781
|
-
$theme: h,
|
|
2782
|
-
children: [
|
|
2783
|
-
g,
|
|
2784
|
-
e ? /* @__PURE__ */ i.jsx(nr, {}) : /* @__PURE__ */ i.jsx(rr, {})
|
|
2785
|
-
]
|
|
2786
|
-
}
|
|
2787
|
-
);
|
|
2788
|
-
}, es = ({ value: e, onSelect: t, theme: r }) => {
|
|
2789
|
-
const { id: n, label: o, selected: s } = e, c = (d) => (l) => {
|
|
2790
|
-
switch (l.key) {
|
|
2791
|
-
case " ":
|
|
2792
|
-
case "SpaceBar":
|
|
2793
|
-
case "Enter":
|
|
2794
|
-
l.preventDefault(), t(d);
|
|
2795
|
-
break;
|
|
2796
|
-
}
|
|
2797
|
-
};
|
|
2798
|
-
return /* @__PURE__ */ i.jsxs(
|
|
2799
|
-
Zi,
|
|
2800
|
-
{
|
|
2801
|
-
id: n,
|
|
2802
|
-
role: "option",
|
|
2803
|
-
"aria-selected": s,
|
|
2804
|
-
tabIndex: 0,
|
|
2805
|
-
onKeyDown: c(n),
|
|
2806
|
-
onClick: () => t(n),
|
|
2807
|
-
$theme: r,
|
|
2808
|
-
$selected: s,
|
|
2809
|
-
children: [
|
|
2810
|
-
s ? /* @__PURE__ */ i.jsx(At, {}) : /* @__PURE__ */ i.jsx(It, {}),
|
|
2811
|
-
/* @__PURE__ */ i.jsx("span", { children: o })
|
|
2812
|
-
]
|
|
2813
|
-
}
|
|
2814
|
-
);
|
|
2815
|
-
}, ts = ({ options: e, opened: t, onClose: r, onSelect: n, dropdownId: o, theme: s }) => /* @__PURE__ */ i.jsx(
|
|
2816
|
-
kn,
|
|
2817
|
-
{
|
|
2818
|
-
$opened: t,
|
|
2819
|
-
role: "listbox",
|
|
2820
|
-
id: o,
|
|
2821
|
-
tabIndex: -1,
|
|
2822
|
-
onKeyDown: (c) => $n({ e: c, options: e, onClose: r }),
|
|
2823
|
-
$theme: s,
|
|
2824
|
-
children: e.map((c) => /* @__PURE__ */ i.jsx(es, { value: c, onSelect: () => n(c.id), theme: s }, c.id))
|
|
2825
|
-
}
|
|
2826
|
-
);
|
|
2827
|
-
function rs({
|
|
2828
|
-
name: e,
|
|
2829
|
-
options: t,
|
|
2830
|
-
initialValues: r,
|
|
2831
|
-
defaultValue: n
|
|
2832
|
-
}) {
|
|
2833
|
-
return t.map((o) => {
|
|
2834
|
-
let s = !1;
|
|
2835
|
-
return r && (r != null && r[e]) && Array.isArray(r[e]) && r[e].find((d) => d === o.id || (d == null ? void 0 : d.id) === o.id) && (s = !0), !(r != null && r[e]) && Array.isArray(n) && n.find((d) => d === o.id) && (s = !0), { ...o, selected: s };
|
|
2836
|
-
});
|
|
2837
|
-
}
|
|
2838
|
-
const Hr = (e) => e.filter((t) => t.selected).map((t) => t.id), ns = (e, t) => {
|
|
2839
|
-
const r = e.find((n) => n.id === t);
|
|
2840
|
-
return e.map((n) => n.id === t ? { ...n, selected: !(r != null && r.selected) } : n);
|
|
2841
|
-
};
|
|
2842
|
-
function os({
|
|
2843
|
-
name: e,
|
|
2844
|
-
defaultValue: t,
|
|
2845
|
-
onChange: r,
|
|
2846
|
-
options: n
|
|
2847
|
-
}) {
|
|
2848
|
-
const [o, s] = L(!1), { onChangeFormInput: c, initialValues: d } = xe(Ae), l = rs({ name: e, options: n, initialValues: d, defaultValue: t }), [h, u] = L(l), f = () => s(!1), g = () => s(!o), m = ($) => {
|
|
2849
|
-
const C = ns(h, $);
|
|
2850
|
-
u(C), r == null || r(C), c == null || c({ name: e, value: Hr(C) });
|
|
2851
|
-
}, y = nt(() => {
|
|
2852
|
-
s(!1), u(l), c == null || c({ name: e, value: Hr(l) });
|
|
2853
|
-
}, [e]);
|
|
2854
|
-
return it(y), {
|
|
2855
|
-
handleClose: f,
|
|
2856
|
-
handleToggle: g,
|
|
2857
|
-
handleSelect: m,
|
|
2858
|
-
opened: o,
|
|
2859
|
-
values: h
|
|
2860
|
-
};
|
|
2861
|
-
}
|
|
2862
|
-
const fa = ({
|
|
2863
|
-
options: e,
|
|
2864
|
-
name: t,
|
|
2865
|
-
label: r,
|
|
2866
|
-
required: n = !1,
|
|
2867
|
-
placeholder: o = "Not selected",
|
|
2868
|
-
disabled: s = !1,
|
|
2869
|
-
onChange: c,
|
|
2870
|
-
defaultValue: d,
|
|
2871
|
-
id: l,
|
|
2872
|
-
...h
|
|
2873
|
-
}) => {
|
|
2874
|
-
const u = Be(null), { elementId: f, dropdownId: g } = $e(l), m = ee(), { handleClose: y, handleSelect: $, handleToggle: C, opened: w, values: b } = os({
|
|
2875
|
-
name: t,
|
|
2876
|
-
options: e,
|
|
2877
|
-
defaultValue: d,
|
|
2878
|
-
onChange: c
|
|
2879
|
-
});
|
|
2880
|
-
return ir({ ref: u, onClickOutsideHandler: y }), _t({ keyCode: "Escape", ref: u, onKeyPress: y }), /* @__PURE__ */ i.jsxs(Sn, { ref: u, $theme: m, ...h, children: [
|
|
2881
|
-
/* @__PURE__ */ i.jsx(Ue, { label: r, required: n, inputId: f, theme: m }),
|
|
2882
|
-
/* @__PURE__ */ i.jsx(
|
|
2883
|
-
Qi,
|
|
2884
|
-
{
|
|
2885
|
-
name: t,
|
|
2886
|
-
opened: w,
|
|
2887
|
-
comboboxId: f,
|
|
2888
|
-
dropdownId: g,
|
|
2889
|
-
onClick: C,
|
|
2890
|
-
values: b,
|
|
2891
|
-
placeholder: o,
|
|
2892
|
-
disabled: s,
|
|
2893
|
-
required: n,
|
|
2894
|
-
theme: m
|
|
2895
|
-
}
|
|
2896
|
-
),
|
|
2897
|
-
/* @__PURE__ */ i.jsx(
|
|
2898
|
-
ts,
|
|
2899
|
-
{
|
|
2900
|
-
theme: m,
|
|
2901
|
-
options: b,
|
|
2902
|
-
opened: w,
|
|
2903
|
-
onClose: y,
|
|
2904
|
-
dropdownId: g,
|
|
2905
|
-
onSelect: $
|
|
2906
|
-
}
|
|
2907
|
-
)
|
|
2908
|
-
] });
|
|
2909
|
-
};
|
|
2910
|
-
function is({
|
|
2911
|
-
name: e,
|
|
2912
|
-
initialValues: t,
|
|
2913
|
-
defaultValue: r
|
|
2914
|
-
}) {
|
|
2915
|
-
return t && t[e] ? Number(t[e]) : r && typeof r == "number" ? r : 0;
|
|
2916
|
-
}
|
|
2917
|
-
function ss({
|
|
2918
|
-
value: e,
|
|
2919
|
-
required: t,
|
|
2920
|
-
validator: r,
|
|
2921
|
-
maxValue: n,
|
|
2922
|
-
minValue: o
|
|
2923
|
-
}) {
|
|
2924
|
-
return t && !r && e === void 0 ? !1 : r && typeof r == "function" ? r(e) : n && o && e && !r ? e <= n && e >= o : !0;
|
|
2925
|
-
}
|
|
2926
|
-
function as({
|
|
2927
|
-
name: e,
|
|
2928
|
-
defaultValue: t,
|
|
2929
|
-
onChange: r,
|
|
2930
|
-
onSpinButtonClick: n,
|
|
2931
|
-
min: o,
|
|
2932
|
-
max: s,
|
|
2933
|
-
step: c,
|
|
2934
|
-
required: d,
|
|
2935
|
-
validator: l
|
|
2936
|
-
}) {
|
|
2937
|
-
const { onChangeFormInput: h, initialValues: u } = xe(Ae), f = is({ initialValues: u, defaultValue: t, name: e }), g = s ? Number(s) : Number.MAX_SAFE_INTEGER, m = o ? Number(o) : Number.MIN_SAFE_INTEGER, [y, $] = L(f), [C, w] = L(!0), b = (x) => {
|
|
2938
|
-
$(x);
|
|
2939
|
-
const H = ss({ value: x, required: d, validator: l, maxValue: g, minValue: m });
|
|
2940
|
-
w(H), h == null || h({ name: e, value: x, valid: H });
|
|
2941
|
-
}, k = (x) => {
|
|
2942
|
-
const H = Number(x.target.value);
|
|
2943
|
-
b(H), r == null || r(x);
|
|
2944
|
-
}, _ = () => {
|
|
2945
|
-
b(y + c), n == null || n(y + c);
|
|
2946
|
-
}, A = () => {
|
|
2947
|
-
b(y - c), n == null || n(y - c);
|
|
2948
|
-
}, j = nt(() => {
|
|
2949
|
-
$(f), w(!0), h == null || h({ name: e, value: f, valid: !0 });
|
|
2950
|
-
}, [e]);
|
|
2951
|
-
return it(j), {
|
|
2952
|
-
handleChange: k,
|
|
2953
|
-
value: y,
|
|
2954
|
-
valid: C,
|
|
2955
|
-
minValue: m,
|
|
2956
|
-
maxValue: g,
|
|
2957
|
-
increment: _,
|
|
2958
|
-
decrement: A
|
|
2959
|
-
};
|
|
2960
|
-
}
|
|
2961
|
-
const cs = R.div`
|
|
2962
|
-
display: flex;
|
|
2963
|
-
flex-direction: column;
|
|
2964
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2965
|
-
position: relative;
|
|
2966
|
-
|
|
2967
|
-
& > div:nth-child(2) {
|
|
2968
|
-
display: flex;
|
|
2969
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
2970
|
-
align-items: center;
|
|
2971
|
-
border: ${(e) => e.$theme.borderBase};
|
|
2972
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
2973
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
2974
|
-
background-color: ${(e) => e.$theme.backgroundColorLight};
|
|
2975
|
-
|
|
2976
|
-
&:has(input:focus) {
|
|
2977
|
-
border: ${(e) => e.$theme.borderOutline};
|
|
2978
|
-
}
|
|
2979
|
-
|
|
2980
|
-
&:has(input[aria-invalid='true']) {
|
|
2981
|
-
border: ${(e) => e.$theme.borderAccent};
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
&:has(input[disabled]) {
|
|
2985
|
-
pointer-events: none;
|
|
2986
|
-
opacity: 0.5;
|
|
2987
|
-
}
|
|
2988
|
-
|
|
2989
|
-
& > span:nth-child(2) {
|
|
2990
|
-
display: flex;
|
|
2991
|
-
align-items: center;
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
& input {
|
|
2996
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
2997
|
-
padding: 0;
|
|
2998
|
-
border: none;
|
|
2999
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3000
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3001
|
-
display: inline-block;
|
|
3002
|
-
background: transparent;
|
|
3003
|
-
white-space: nowrap;
|
|
3004
|
-
text-overflow: ellipsis;
|
|
3005
|
-
overflow: hidden;
|
|
3006
|
-
flex-grow: 1;
|
|
3007
|
-
min-width: 0;
|
|
3008
|
-
|
|
3009
|
-
&:focus-visible {
|
|
3010
|
-
outline: none;
|
|
3011
|
-
}
|
|
3012
|
-
|
|
3013
|
-
&::-webkit-outer-spin-button,
|
|
3014
|
-
&::-webkit-inner-spin-button {
|
|
3015
|
-
-webkit-appearance: none;
|
|
3016
|
-
margin: 0;
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
&[type='number'] {
|
|
3020
|
-
-moz-appearance: textfield;
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3023
|
-
`, pa = ({
|
|
3024
|
-
name: e,
|
|
3025
|
-
label: t,
|
|
3026
|
-
errorMessage: r,
|
|
3027
|
-
onChange: n,
|
|
3028
|
-
onBlur: o,
|
|
3029
|
-
onFocus: s,
|
|
3030
|
-
onSpinButtonClick: c,
|
|
3031
|
-
validator: d,
|
|
3032
|
-
min: l,
|
|
3033
|
-
max: h,
|
|
3034
|
-
id: u,
|
|
3035
|
-
tabIndex: f,
|
|
3036
|
-
disabled: g = !1,
|
|
3037
|
-
required: m = !1,
|
|
3038
|
-
readOnly: y = !1,
|
|
3039
|
-
hasSpinButtons: $ = !0,
|
|
3040
|
-
defaultValue: C = 0,
|
|
3041
|
-
step: w = 1,
|
|
3042
|
-
...b
|
|
3043
|
-
}) => {
|
|
3044
|
-
const { elementId: k, errorId: _ } = $e(u), A = ee(), { value: j, valid: x, handleChange: H, increment: q, decrement: ue, minValue: he, maxValue: fe } = as({
|
|
3045
|
-
name: e,
|
|
3046
|
-
defaultValue: C,
|
|
3047
|
-
min: l,
|
|
3048
|
-
max: h,
|
|
3049
|
-
onChange: n,
|
|
3050
|
-
required: m,
|
|
3051
|
-
validator: d,
|
|
3052
|
-
step: w,
|
|
3053
|
-
onSpinButtonClick: c
|
|
3054
|
-
});
|
|
3055
|
-
return /* @__PURE__ */ i.jsxs(cs, { $theme: A, ...b, children: [
|
|
3056
|
-
/* @__PURE__ */ i.jsx(Ue, { label: t, required: m, inputId: k, theme: A }),
|
|
3057
|
-
/* @__PURE__ */ i.jsxs("div", { children: [
|
|
3058
|
-
/* @__PURE__ */ i.jsx(
|
|
3059
|
-
"input",
|
|
3060
|
-
{
|
|
3061
|
-
id: k,
|
|
3062
|
-
name: e,
|
|
3063
|
-
type: "number",
|
|
3064
|
-
disabled: g,
|
|
3065
|
-
required: m,
|
|
3066
|
-
readOnly: y,
|
|
3067
|
-
placeholder: "0",
|
|
3068
|
-
"aria-invalid": !x,
|
|
3069
|
-
"aria-errormessage": _,
|
|
3070
|
-
value: j.toString(),
|
|
3071
|
-
onChange: H,
|
|
3072
|
-
min: he,
|
|
3073
|
-
max: fe,
|
|
3074
|
-
step: w,
|
|
3075
|
-
onBlur: o,
|
|
3076
|
-
onFocus: s,
|
|
3077
|
-
tabIndex: f
|
|
3078
|
-
}
|
|
3079
|
-
),
|
|
3080
|
-
$ && /* @__PURE__ */ i.jsxs("span", { children: [
|
|
3081
|
-
/* @__PURE__ */ i.jsx(
|
|
3082
|
-
$t,
|
|
3083
|
-
{
|
|
3084
|
-
onClick: ue,
|
|
3085
|
-
label: `Decrement value for ${t}`,
|
|
3086
|
-
icon: I.ChevronLeft,
|
|
3087
|
-
disabled: g,
|
|
3088
|
-
theme: A
|
|
3089
|
-
}
|
|
3090
|
-
),
|
|
3091
|
-
/* @__PURE__ */ i.jsx(
|
|
3092
|
-
$t,
|
|
3093
|
-
{
|
|
3094
|
-
onClick: q,
|
|
3095
|
-
label: `Increment value for ${t}`,
|
|
3096
|
-
icon: I.ChevronRight,
|
|
3097
|
-
disabled: g,
|
|
3098
|
-
theme: A
|
|
3099
|
-
}
|
|
3100
|
-
)
|
|
3101
|
-
] })
|
|
3102
|
-
] }),
|
|
3103
|
-
/* @__PURE__ */ i.jsx(gn, { errorId: _, message: r, visible: !x, theme: A })
|
|
3104
|
-
] });
|
|
3105
|
-
}, ls = ({
|
|
3106
|
-
opened: e,
|
|
3107
|
-
onClick: t,
|
|
3108
|
-
comboboxId: r,
|
|
3109
|
-
dropdownId: n,
|
|
3110
|
-
selected: o,
|
|
3111
|
-
name: s,
|
|
3112
|
-
placeholder: c,
|
|
3113
|
-
disabled: d,
|
|
3114
|
-
required: l,
|
|
3115
|
-
theme: h
|
|
3116
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
3117
|
-
Cn,
|
|
3118
|
-
{
|
|
3119
|
-
type: "button",
|
|
3120
|
-
name: s,
|
|
3121
|
-
value: o == null ? void 0 : o.id,
|
|
3122
|
-
role: "combobox",
|
|
3123
|
-
"aria-haspopup": "listbox",
|
|
3124
|
-
"aria-expanded": e,
|
|
3125
|
-
"aria-controls": n,
|
|
3126
|
-
id: r,
|
|
3127
|
-
onClick: t,
|
|
3128
|
-
disabled: d,
|
|
3129
|
-
"aria-required": l,
|
|
3130
|
-
$theme: h,
|
|
3131
|
-
children: [
|
|
3132
|
-
o != null && o.label ? /* @__PURE__ */ i.jsx("span", { children: o == null ? void 0 : o.label }) : /* @__PURE__ */ i.jsx("span", { children: c }),
|
|
3133
|
-
e ? /* @__PURE__ */ i.jsx(nr, {}) : /* @__PURE__ */ i.jsx(rr, {})
|
|
3134
|
-
]
|
|
3135
|
-
}
|
|
3136
|
-
), ds = ({ value: e, selected: t, onSelect: r, onClear: n, theme: o }) => {
|
|
3137
|
-
const { id: s, label: c } = e, d = (h) => {
|
|
3138
|
-
t ? n() : r(h);
|
|
3139
|
-
}, l = (h) => (u) => {
|
|
3140
|
-
switch (u.key) {
|
|
3141
|
-
case " ":
|
|
3142
|
-
case "SpaceBar":
|
|
3143
|
-
case "Enter":
|
|
3144
|
-
u.preventDefault(), d(h);
|
|
3145
|
-
break;
|
|
3146
|
-
}
|
|
3147
|
-
};
|
|
3148
|
-
return /* @__PURE__ */ i.jsxs(
|
|
3149
|
-
jn,
|
|
3150
|
-
{
|
|
3151
|
-
id: s,
|
|
3152
|
-
role: "option",
|
|
3153
|
-
"aria-selected": t,
|
|
3154
|
-
tabIndex: 0,
|
|
3155
|
-
onKeyDown: l(s),
|
|
3156
|
-
onClick: () => d(s),
|
|
3157
|
-
$theme: o,
|
|
3158
|
-
$selected: t,
|
|
3159
|
-
children: [
|
|
3160
|
-
/* @__PURE__ */ i.jsx("span", { children: c }),
|
|
3161
|
-
t && /* @__PURE__ */ i.jsx(or, {})
|
|
3162
|
-
]
|
|
3163
|
-
}
|
|
3164
|
-
);
|
|
3165
|
-
}, us = ({
|
|
3166
|
-
options: e,
|
|
3167
|
-
opened: t,
|
|
3168
|
-
onClose: r,
|
|
3169
|
-
onSelect: n,
|
|
3170
|
-
dropdownId: o,
|
|
3171
|
-
comboboxId: s,
|
|
3172
|
-
selected: c,
|
|
3173
|
-
onClear: d,
|
|
3174
|
-
theme: l
|
|
3175
|
-
}) => {
|
|
3176
|
-
const h = (u) => {
|
|
3177
|
-
n(u), r(), rt(s);
|
|
3178
|
-
};
|
|
3179
|
-
return /* @__PURE__ */ i.jsx(
|
|
3180
|
-
kn,
|
|
3181
|
-
{
|
|
3182
|
-
role: "listbox",
|
|
3183
|
-
id: o,
|
|
3184
|
-
tabIndex: -1,
|
|
3185
|
-
onKeyDown: (u) => $n({ e: u, options: e, onClose: r }),
|
|
3186
|
-
$opened: t,
|
|
3187
|
-
$theme: l,
|
|
3188
|
-
children: e.map((u) => /* @__PURE__ */ i.jsx(
|
|
3189
|
-
ds,
|
|
3190
|
-
{
|
|
3191
|
-
value: u,
|
|
3192
|
-
onSelect: () => h(u.id),
|
|
3193
|
-
onClear: d,
|
|
3194
|
-
selected: u.id === (c == null ? void 0 : c.id),
|
|
3195
|
-
theme: l
|
|
3196
|
-
},
|
|
3197
|
-
u.id
|
|
3198
|
-
))
|
|
3199
|
-
}
|
|
3200
|
-
);
|
|
3201
|
-
};
|
|
3202
|
-
function hs({
|
|
3203
|
-
name: e,
|
|
3204
|
-
options: t,
|
|
3205
|
-
initialValues: r,
|
|
3206
|
-
defaultValue: n
|
|
3207
|
-
}) {
|
|
3208
|
-
var s;
|
|
3209
|
-
let o;
|
|
3210
|
-
return r && r[e] && (o = ((s = r[e]) == null ? void 0 : s.id) ?? r[e]), !(r != null && r[e]) && n && typeof n == "string" && (o = n), t.find((c) => c.id === o);
|
|
3211
|
-
}
|
|
3212
|
-
function fs({
|
|
3213
|
-
name: e,
|
|
3214
|
-
defaultValue: t,
|
|
3215
|
-
onChange: r,
|
|
3216
|
-
options: n
|
|
3217
|
-
}) {
|
|
3218
|
-
const { onChangeFormInput: o, initialValues: s } = xe(Ae), c = hs({ name: e, options: n, defaultValue: t, initialValues: s }), [d, l] = L(!1), [h, u] = L(c), f = () => l(!1), g = () => l(!d), m = (C) => {
|
|
3219
|
-
const w = n.find((b) => b.id === C);
|
|
3220
|
-
u(w), r == null || r(w), o == null || o({ name: e, value: w == null ? void 0 : w.id });
|
|
3221
|
-
}, y = () => {
|
|
3222
|
-
u(void 0), r == null || r(void 0);
|
|
3223
|
-
}, $ = nt(() => {
|
|
3224
|
-
l(!1), u(c), o == null || o({ name: e, value: c == null ? void 0 : c.id });
|
|
3225
|
-
}, [e]);
|
|
3226
|
-
return it($), {
|
|
3227
|
-
selected: h,
|
|
3228
|
-
opened: d,
|
|
3229
|
-
handleClear: y,
|
|
3230
|
-
handleClose: f,
|
|
3231
|
-
handleToggle: g,
|
|
3232
|
-
handleSelect: m
|
|
3233
|
-
};
|
|
3234
|
-
}
|
|
3235
|
-
const ma = ({
|
|
3236
|
-
options: e,
|
|
3237
|
-
onChange: t,
|
|
3238
|
-
name: r,
|
|
3239
|
-
label: n,
|
|
3240
|
-
defaultValue: o,
|
|
3241
|
-
id: s,
|
|
3242
|
-
placeholder: c = "Not selected",
|
|
3243
|
-
required: d = !1,
|
|
3244
|
-
disabled: l = !1,
|
|
3245
|
-
...h
|
|
3246
|
-
}) => {
|
|
3247
|
-
const u = Be(null), f = ee(), { elementId: g, dropdownId: m } = $e(s), { handleClear: y, handleClose: $, handleSelect: C, handleToggle: w, selected: b, opened: k } = fs({
|
|
3248
|
-
options: e,
|
|
3249
|
-
onChange: t,
|
|
3250
|
-
defaultValue: o,
|
|
3251
|
-
name: r
|
|
3252
|
-
});
|
|
3253
|
-
return ir({ ref: u, onClickOutsideHandler: $ }), _t({ keyCode: "Escape", ref: u, onKeyPress: $ }), /* @__PURE__ */ i.jsxs(Sn, { ref: u, $theme: f, ...h, children: [
|
|
3254
|
-
/* @__PURE__ */ i.jsx(Ue, { label: n, required: d, inputId: g, theme: f }),
|
|
3255
|
-
/* @__PURE__ */ i.jsx(
|
|
3256
|
-
ls,
|
|
3257
|
-
{
|
|
3258
|
-
name: r,
|
|
3259
|
-
opened: k,
|
|
3260
|
-
comboboxId: g,
|
|
3261
|
-
dropdownId: m,
|
|
3262
|
-
onClick: w,
|
|
3263
|
-
selected: b,
|
|
3264
|
-
placeholder: c,
|
|
3265
|
-
disabled: l,
|
|
3266
|
-
required: d,
|
|
3267
|
-
theme: f
|
|
3268
|
-
}
|
|
3269
|
-
),
|
|
3270
|
-
/* @__PURE__ */ i.jsx(
|
|
3271
|
-
us,
|
|
3272
|
-
{
|
|
3273
|
-
options: e,
|
|
3274
|
-
selected: b,
|
|
3275
|
-
opened: k,
|
|
3276
|
-
onClose: $,
|
|
3277
|
-
dropdownId: m,
|
|
3278
|
-
comboboxId: g,
|
|
3279
|
-
onSelect: C,
|
|
3280
|
-
onClear: y,
|
|
3281
|
-
theme: f
|
|
3282
|
-
}
|
|
3283
|
-
)
|
|
3284
|
-
] });
|
|
3285
|
-
};
|
|
3286
|
-
function ps({
|
|
3287
|
-
value: e,
|
|
3288
|
-
required: t,
|
|
3289
|
-
validator: r
|
|
3290
|
-
}) {
|
|
3291
|
-
return t && !r && !e.length ? !1 : r && typeof r == "function" ? r(e) : r && typeof r == "object" ? new RegExp(r.regexp, r == null ? void 0 : r.flags).test(e) : !0;
|
|
3292
|
-
}
|
|
3293
|
-
function ms({
|
|
3294
|
-
name: e,
|
|
3295
|
-
initialValues: t,
|
|
3296
|
-
defaultValue: r
|
|
3297
|
-
}) {
|
|
3298
|
-
return t && (t != null && t[e]) ? t[e].toString() : r && typeof r == "string" ? r : "";
|
|
3299
|
-
}
|
|
3300
|
-
function gs({
|
|
3301
|
-
name: e,
|
|
3302
|
-
defaultValue: t,
|
|
3303
|
-
onChange: r,
|
|
3304
|
-
onClear: n,
|
|
3305
|
-
required: o,
|
|
3306
|
-
validator: s
|
|
3307
|
-
}) {
|
|
3308
|
-
const { onChangeFormInput: c, initialValues: d } = xe(Ae), l = ms({ initialValues: d, defaultValue: t, name: e }), [h, u] = L(l), [f, g] = L(!0), [m, y] = L(!1), $ = (k) => {
|
|
3309
|
-
const _ = k.target.value, A = ps({ value: _, required: o, validator: s });
|
|
3310
|
-
u(_), g(A), c == null || c({ name: e, value: _, valid: A }), r == null || r(k);
|
|
3311
|
-
}, C = () => {
|
|
3312
|
-
u(""), g(!0), c == null || c({ name: e, value: "", valid: !0 }), n == null || n();
|
|
3313
|
-
}, w = nt(() => {
|
|
3314
|
-
u(l), g(!0), c == null || c({ name: e, value: l, valid: !0 });
|
|
3315
|
-
}, [e]), b = () => {
|
|
3316
|
-
y(!m);
|
|
3317
|
-
};
|
|
3318
|
-
return it(w), {
|
|
3319
|
-
value: h,
|
|
3320
|
-
valid: f,
|
|
3321
|
-
passwordShown: m,
|
|
3322
|
-
handleChange: $,
|
|
3323
|
-
handleClear: C,
|
|
3324
|
-
togglePassword: b
|
|
3325
|
-
};
|
|
3326
|
-
}
|
|
3327
|
-
const vs = R.div`
|
|
3328
|
-
display: flex;
|
|
3329
|
-
flex-direction: column;
|
|
3330
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3331
|
-
position: relative;
|
|
3332
|
-
|
|
3333
|
-
& > div:nth-child(2) {
|
|
3334
|
-
display: flex;
|
|
3335
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3336
|
-
align-items: center;
|
|
3337
|
-
border: ${(e) => e.$theme.borderLight};
|
|
3338
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3339
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3340
|
-
background-color: ${(e) => e.$theme.backgroundColorLight};
|
|
3341
|
-
|
|
3342
|
-
&:has(input:focus) {
|
|
3343
|
-
border: ${(e) => e.$theme.borderOutline};
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
&:has(input[aria-invalid='true']) {
|
|
3347
|
-
border: ${(e) => e.$theme.borderAccent};
|
|
3348
|
-
}
|
|
3349
|
-
|
|
3350
|
-
&:has(input[disabled]) {
|
|
3351
|
-
pointer-events: none;
|
|
3352
|
-
opacity: 0.5;
|
|
3353
|
-
}
|
|
3354
|
-
|
|
3355
|
-
& > span:nth-child(2) {
|
|
3356
|
-
display: flex;
|
|
3357
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3358
|
-
align-items: center;
|
|
3359
|
-
}
|
|
3360
|
-
}
|
|
3361
|
-
|
|
3362
|
-
& input {
|
|
3363
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3364
|
-
padding: 0;
|
|
3365
|
-
border: none;
|
|
3366
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3367
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3368
|
-
display: inline-block;
|
|
3369
|
-
background: transparent;
|
|
3370
|
-
white-space: nowrap;
|
|
3371
|
-
text-overflow: ellipsis;
|
|
3372
|
-
overflow: hidden;
|
|
3373
|
-
flex-grow: 1;
|
|
3374
|
-
min-width: 0;
|
|
3375
|
-
|
|
3376
|
-
&:focus-visible {
|
|
3377
|
-
outline: none;
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
&:placeholder-shown + span {
|
|
3381
|
-
display: none !important;
|
|
3382
|
-
}
|
|
3383
|
-
}
|
|
3384
|
-
`, ga = ({
|
|
3385
|
-
name: e,
|
|
3386
|
-
label: t,
|
|
3387
|
-
errorMessage: r,
|
|
3388
|
-
defaultValue: n,
|
|
3389
|
-
onChange: o,
|
|
3390
|
-
onBlur: s,
|
|
3391
|
-
onFocus: c,
|
|
3392
|
-
onClear: d,
|
|
3393
|
-
validator: l,
|
|
3394
|
-
maxLength: h,
|
|
3395
|
-
id: u,
|
|
3396
|
-
tabIndex: f,
|
|
3397
|
-
placeholder: g = "Type here...",
|
|
3398
|
-
disabled: m = !1,
|
|
3399
|
-
required: y = !1,
|
|
3400
|
-
clearable: $ = !0,
|
|
3401
|
-
readOnly: C = !1,
|
|
3402
|
-
autoComplete: w = "off",
|
|
3403
|
-
type: b = "text",
|
|
3404
|
-
...k
|
|
3405
|
-
}) => {
|
|
3406
|
-
const { value: _, valid: A, handleChange: j, handleClear: x, passwordShown: H, togglePassword: q } = gs({
|
|
3407
|
-
defaultValue: n,
|
|
3408
|
-
name: e,
|
|
3409
|
-
onChange: o,
|
|
3410
|
-
onClear: d,
|
|
3411
|
-
required: y,
|
|
3412
|
-
validator: l
|
|
3413
|
-
}), { elementId: ue, errorId: he } = $e(u), fe = b === "password", W = ee();
|
|
3414
|
-
return /* @__PURE__ */ i.jsxs(vs, { $theme: W, ...k, children: [
|
|
3415
|
-
/* @__PURE__ */ i.jsx(Ue, { label: t, required: y, inputId: ue, theme: W }),
|
|
3416
|
-
/* @__PURE__ */ i.jsxs("div", { children: [
|
|
3417
|
-
/* @__PURE__ */ i.jsx(
|
|
3418
|
-
"input",
|
|
3419
|
-
{
|
|
3420
|
-
id: ue,
|
|
3421
|
-
name: e,
|
|
3422
|
-
type: H ? "text" : b,
|
|
3423
|
-
disabled: m,
|
|
3424
|
-
placeholder: g,
|
|
3425
|
-
required: y,
|
|
3426
|
-
readOnly: C,
|
|
3427
|
-
autoComplete: w,
|
|
3428
|
-
"aria-invalid": !A,
|
|
3429
|
-
"aria-errormessage": he,
|
|
3430
|
-
"aria-readonly": C,
|
|
3431
|
-
value: _,
|
|
3432
|
-
onChange: j,
|
|
3433
|
-
maxLength: h,
|
|
3434
|
-
onBlur: s,
|
|
3435
|
-
onFocus: c,
|
|
3436
|
-
tabIndex: f
|
|
3437
|
-
}
|
|
3438
|
-
),
|
|
3439
|
-
/* @__PURE__ */ i.jsxs("span", { children: [
|
|
3440
|
-
$ && /* @__PURE__ */ i.jsx(
|
|
3441
|
-
$t,
|
|
3442
|
-
{
|
|
3443
|
-
onClick: x,
|
|
3444
|
-
label: `Clear input for ${t}`,
|
|
3445
|
-
icon: I.Remove,
|
|
3446
|
-
disabled: m,
|
|
3447
|
-
theme: W
|
|
3448
|
-
}
|
|
3449
|
-
),
|
|
3450
|
-
fe && /* @__PURE__ */ i.jsx(
|
|
3451
|
-
$t,
|
|
3452
|
-
{
|
|
3453
|
-
onClick: q,
|
|
3454
|
-
label: "Toggle password visibility",
|
|
3455
|
-
icon: H ? I.Hide : I.Show,
|
|
3456
|
-
disabled: m,
|
|
3457
|
-
theme: W
|
|
3458
|
-
}
|
|
3459
|
-
)
|
|
3460
|
-
] })
|
|
3461
|
-
] }),
|
|
3462
|
-
/* @__PURE__ */ i.jsx(gn, { errorId: he, message: r, visible: !A, theme: W })
|
|
3463
|
-
] });
|
|
3464
|
-
}, ys = R.header`
|
|
3465
|
-
display: flex;
|
|
3466
|
-
justify-content: space-between;
|
|
3467
|
-
align-items: center;
|
|
3468
|
-
|
|
3469
|
-
h3 {
|
|
3470
|
-
display: flex;
|
|
3471
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3472
|
-
align-items: center;
|
|
3473
|
-
margin: 0;
|
|
3474
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3475
|
-
|
|
3476
|
-
svg {
|
|
3477
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
3478
|
-
}
|
|
3479
|
-
}
|
|
3480
|
-
`, bs = R.div`
|
|
3481
|
-
position: fixed;
|
|
3482
|
-
bottom: ${(e) => e.$theme.gapBig};
|
|
3483
|
-
left: 50%;
|
|
3484
|
-
transform: translateX(-50%);
|
|
3485
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
3486
|
-
${ot}
|
|
3487
|
-
|
|
3488
|
-
${(e) => e.$isClosing && mn}
|
|
3489
|
-
`, xs = R.div`
|
|
3490
|
-
display: flex;
|
|
3491
|
-
flex-direction: column;
|
|
3492
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3493
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3494
|
-
background: ${(e) => e.$theme.backgroundColorBase};
|
|
3495
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3496
|
-
width: 90vw;
|
|
3497
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3498
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3499
|
-
border: ${(e) => e.$theme.borderLight};
|
|
3500
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3501
|
-
`;
|
|
3502
|
-
function $s(e, t) {
|
|
3503
|
-
if (t) return t;
|
|
3504
|
-
switch (e) {
|
|
3505
|
-
case Z.Info:
|
|
3506
|
-
return "For your information";
|
|
3507
|
-
case Z.Warning:
|
|
3508
|
-
return "Please pay attention";
|
|
3509
|
-
case Z.Error:
|
|
3510
|
-
return "Something went wrong";
|
|
3511
|
-
case Z.Success:
|
|
3512
|
-
return "Everything is okay";
|
|
3513
|
-
case Z.Help:
|
|
3514
|
-
return "Useful tip";
|
|
3515
|
-
default:
|
|
3516
|
-
return "Alert";
|
|
3517
|
-
}
|
|
3518
|
-
}
|
|
3519
|
-
function ws(e, t) {
|
|
3520
|
-
if (t)
|
|
3521
|
-
return /* @__PURE__ */ i.jsx(tt, { name: t });
|
|
3522
|
-
switch (e) {
|
|
3523
|
-
case Z.Info:
|
|
3524
|
-
return /* @__PURE__ */ i.jsx(bn, {});
|
|
3525
|
-
case Z.Warning:
|
|
3526
|
-
return /* @__PURE__ */ i.jsx(xn, {});
|
|
3527
|
-
case Z.Error:
|
|
3528
|
-
return /* @__PURE__ */ i.jsx(vn, {});
|
|
3529
|
-
case Z.Success:
|
|
3530
|
-
return /* @__PURE__ */ i.jsx(or, {});
|
|
3531
|
-
case Z.Help:
|
|
3532
|
-
return /* @__PURE__ */ i.jsx(yn, {});
|
|
3533
|
-
default:
|
|
3534
|
-
return null;
|
|
3535
|
-
}
|
|
3536
|
-
}
|
|
3537
|
-
const Ss = ({ title: e, onClose: t, mode: r, icon: n, theme: o }) => {
|
|
3538
|
-
const s = $s(r, e), c = ws(r, n);
|
|
3539
|
-
return /* @__PURE__ */ i.jsxs(ys, { $theme: o, children: [
|
|
3540
|
-
/* @__PURE__ */ i.jsxs("h3", { children: [
|
|
3541
|
-
c,
|
|
3542
|
-
s
|
|
3543
|
-
] }),
|
|
3544
|
-
/* @__PURE__ */ i.jsx(wt, { icon: I.Cancel, view: be.Icon, label: "Close alert popup", onClick: t })
|
|
3545
|
-
] });
|
|
3546
|
-
}, va = ({
|
|
3547
|
-
isOpened: e,
|
|
3548
|
-
onClose: t,
|
|
3549
|
-
title: r,
|
|
3550
|
-
message: n,
|
|
3551
|
-
mode: o = Z.Info,
|
|
3552
|
-
icon: s,
|
|
3553
|
-
...c
|
|
3554
|
-
}) => {
|
|
3555
|
-
const d = wn(e), l = d && !e, h = ee();
|
|
3556
|
-
return d ? /* @__PURE__ */ i.jsx(sr, { children: /* @__PURE__ */ i.jsx(bs, { $isClosing: l, $theme: h, children: /* @__PURE__ */ i.jsxs(xs, { ...c, $theme: h, children: [
|
|
3557
|
-
/* @__PURE__ */ i.jsx(Ss, { title: r, onClose: t, mode: o, icon: s, theme: h }),
|
|
3558
|
-
/* @__PURE__ */ i.jsx("p", { children: n })
|
|
3559
|
-
] }) }) }) : null;
|
|
3560
|
-
}, Cs = R.div`
|
|
3561
|
-
z-index: ${(e) => e.$theme.zIndexModal};
|
|
3562
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3563
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3564
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3565
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3566
|
-
width: 100%;
|
|
3567
|
-
height: 90%;
|
|
3568
|
-
position: absolute;
|
|
3569
|
-
bottom: 0;
|
|
3570
|
-
left: 0;
|
|
3571
|
-
border-top-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3572
|
-
border-top-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3573
|
-
${ot}
|
|
3574
|
-
|
|
3575
|
-
@media ${fi.landscapeTablets} {
|
|
3576
|
-
width: fit-content;
|
|
3577
|
-
height: fit-content;
|
|
3578
|
-
position: relative;
|
|
3579
|
-
min-width: 40%;
|
|
3580
|
-
max-width: 90%;
|
|
3581
|
-
max-height: 90%;
|
|
3582
|
-
border-bottom-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3583
|
-
border-bottom-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3584
|
-
|
|
3585
|
-
header {
|
|
3586
|
-
font-size: ${(e) => e.$theme.fontSizeHeader};
|
|
3587
|
-
}
|
|
3588
|
-
}
|
|
3589
|
-
`, ks = R.div`
|
|
3590
|
-
position: fixed;
|
|
3591
|
-
top: 0;
|
|
3592
|
-
left: 0;
|
|
3593
|
-
width: 100%;
|
|
3594
|
-
height: 100%;
|
|
3595
|
-
z-index: inherit;
|
|
3596
|
-
display: flex;
|
|
3597
|
-
justify-content: center;
|
|
3598
|
-
align-items: center;
|
|
3599
|
-
background-color: ${(e) => e.$theme.backgroundColorTransparent};
|
|
3600
|
-
${ot}
|
|
3601
|
-
|
|
3602
|
-
${(e) => e.$isClosing && mn}
|
|
3603
|
-
`, js = R.header`
|
|
3604
|
-
font-size: 1.6rem;
|
|
3605
|
-
font-weight: bold;
|
|
3606
|
-
display: flex;
|
|
3607
|
-
justify-content: space-between;
|
|
3608
|
-
align-items: center;
|
|
3609
|
-
gap: ${(e) => e.$theme.gapBig};
|
|
3610
|
-
padding: ${(e) => e.$theme.gapBig};
|
|
3611
|
-
border-bottom: ${(e) => e.$theme.borderBase};
|
|
3612
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3613
|
-
`, Es = R.div`
|
|
3614
|
-
padding: ${(e) => e.$theme.gapBig};
|
|
3615
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3616
|
-
`, Rs = ({ title: e, onClose: t, theme: r }) => /* @__PURE__ */ i.jsxs(js, { $theme: r, children: [
|
|
3617
|
-
e,
|
|
3618
|
-
/* @__PURE__ */ i.jsx(wt, { icon: I.Cancel, view: be.Icon, label: "Close modal window", onClick: t })
|
|
3619
|
-
] }), As = ({ title: e, onClose: t, isOpened: r, children: n, theme: o, ...s }) => {
|
|
3620
|
-
const c = Be(null);
|
|
3621
|
-
return Hi({ modalRef: c, isOpened: r }), _t({ keyCode: "Escape", ref: c, onKeyPress: t }), /* @__PURE__ */ i.jsxs(Cs, { ref: c, role: "dialog", "aria-modal": "true", $theme: o, ...s, children: [
|
|
3622
|
-
/* @__PURE__ */ i.jsx(Rs, { title: e, onClose: t, theme: o }),
|
|
3623
|
-
/* @__PURE__ */ i.jsx(Es, { $theme: o, children: n })
|
|
3624
|
-
] });
|
|
3625
|
-
}, ya = ({ isOpened: e, onClose: t, title: r, children: n, ...o }) => {
|
|
3626
|
-
const s = wn(e), c = s && !e, d = ee();
|
|
3627
|
-
return s ? /* @__PURE__ */ i.jsx(sr, { children: /* @__PURE__ */ i.jsx(ks, { $isClosing: c, $theme: d, children: /* @__PURE__ */ i.jsx(As, { title: r, onClose: t, isOpened: e, ...o, theme: d, children: n }) }) }) : null;
|
|
3628
|
-
}, Is = ({ id: e }) => {
|
|
3629
|
-
const [t, r] = L(!1), n = Be(null), o = Be(null), { top: s, left: c } = Vi({ wrapperRef: n, tooltipRef: o, isOpened: t }), { elementId: d } = $e(e), l = () => r(!1), h = () => r(!0), u = () => r(!t), f = (g) => {
|
|
3630
|
-
g.preventDefault(), u();
|
|
3631
|
-
};
|
|
3632
|
-
return _t({ keyCode: "Escape", ref: o, onKeyPress: l }), ir({ ref: o, onClickOutsideHandler: l, dependentRef: n }), {
|
|
3633
|
-
elementId: d,
|
|
3634
|
-
openTooltip: h,
|
|
3635
|
-
closeTooltip: l,
|
|
3636
|
-
toggleTooltip: u,
|
|
3637
|
-
handleContextMenu: f,
|
|
3638
|
-
top: s,
|
|
3639
|
-
left: c,
|
|
3640
|
-
isOpened: t,
|
|
3641
|
-
wrapperRef: n,
|
|
3642
|
-
tooltipRef: o
|
|
3643
|
-
};
|
|
3644
|
-
}, _s = R.div`
|
|
3645
|
-
position: absolute;
|
|
3646
|
-
left: 0;
|
|
3647
|
-
top: 0;
|
|
3648
|
-
z-index: ${(e) => e.$theme.zIndexPopup};
|
|
3649
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3650
|
-
border: ${(e) => e.$theme.borderLight};
|
|
3651
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3652
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3653
|
-
font-size: ${(e) => e.$theme.fontSizeSmall};
|
|
3654
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3655
|
-
border-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
3656
|
-
box-shadow: ${(e) => e.$theme.boxShadow};
|
|
3657
|
-
pointer-events: none;
|
|
3658
|
-
white-space: nowrap;
|
|
3659
|
-
|
|
3660
|
-
${ot}
|
|
3661
|
-
`, Ts = ({
|
|
3662
|
-
children: e,
|
|
3663
|
-
tooltipContent: t,
|
|
3664
|
-
containerTag: r = "span",
|
|
3665
|
-
visibleOn: n = "hover",
|
|
3666
|
-
id: o,
|
|
3667
|
-
style: s,
|
|
3668
|
-
...c
|
|
3669
|
-
}) => {
|
|
3670
|
-
const d = r, l = ee(), { openTooltip: h, closeTooltip: u, toggleTooltip: f, handleContextMenu: g, elementId: m, top: y, left: $, isOpened: C, wrapperRef: w, tooltipRef: b } = Is({ id: o });
|
|
3671
|
-
return /* @__PURE__ */ i.jsxs(
|
|
3672
|
-
d,
|
|
3673
|
-
{
|
|
3674
|
-
style: { position: "relative", cursor: "pointer" },
|
|
3675
|
-
onClick: n === "click" ? f : void 0,
|
|
3676
|
-
onMouseOver: n === "hover" ? h : void 0,
|
|
3677
|
-
onMouseLeave: n === "hover" ? u : void 0,
|
|
3678
|
-
onFocus: n === "focus" ? h : void 0,
|
|
3679
|
-
onBlur: n === "focus" ? u : void 0,
|
|
3680
|
-
onContextMenu: n === "contextmenu" ? (k) => g(k) : void 0,
|
|
3681
|
-
tabIndex: 0,
|
|
3682
|
-
ref: w,
|
|
3683
|
-
"aria-describedby": m,
|
|
3684
|
-
children: [
|
|
3685
|
-
e,
|
|
3686
|
-
C && /* @__PURE__ */ i.jsx(sr, { children: /* @__PURE__ */ i.jsx(_s, { style: { ...s, top: y, left: $ }, ref: b, role: "tooltip", id: m, $theme: l, ...c, children: t }) })
|
|
3687
|
-
]
|
|
3688
|
-
}
|
|
3689
|
-
);
|
|
3690
|
-
};
|
|
3691
|
-
function zs(e) {
|
|
3692
|
-
return e ? Object.keys(e).map((t) => [t, !0]) : [];
|
|
3693
|
-
}
|
|
3694
|
-
function Ps(e, t) {
|
|
3695
|
-
return (t == null ? void 0 : t.valid) === void 0 ? e : e.map((r) => r[0] !== t.name ? r : [r[0], !!(t != null && t.valid)]);
|
|
3696
|
-
}
|
|
3697
|
-
function Ms(e) {
|
|
3698
|
-
return e.every((t) => t[1]);
|
|
3699
|
-
}
|
|
3700
|
-
function Os({
|
|
3701
|
-
initialValues: e,
|
|
3702
|
-
onReset: t,
|
|
3703
|
-
onSubmit: r,
|
|
3704
|
-
onClickSubmit: n
|
|
3705
|
-
}) {
|
|
3706
|
-
const [o, s] = L(e), [c, d] = L(zs(e)), [l, h] = L(0);
|
|
3707
|
-
return {
|
|
3708
|
-
handleInputChange: (m) => {
|
|
3709
|
-
const y = { ...o, [m.name]: m.value };
|
|
3710
|
-
s(y), d(Ps(c, m));
|
|
3711
|
-
},
|
|
3712
|
-
handleSubmit: (m) => {
|
|
3713
|
-
m.preventDefault();
|
|
3714
|
-
const $ = { ...Object.fromEntries(new FormData(m.target)), ...o };
|
|
3715
|
-
r == null || r(m), n == null || n($);
|
|
3716
|
-
},
|
|
3717
|
-
handleReset: (m) => {
|
|
3718
|
-
t == null || t(m), s(e), h(l + 1);
|
|
3719
|
-
},
|
|
3720
|
-
resetSignal: l,
|
|
3721
|
-
valid: Ms(c)
|
|
3722
|
-
};
|
|
3723
|
-
}
|
|
3724
|
-
const Bs = R.form`
|
|
3725
|
-
display: grid;
|
|
3726
|
-
align-items: end;
|
|
3727
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
3728
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3729
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3730
|
-
|
|
3731
|
-
${({ $columns: e }) => `
|
|
3732
|
-
grid-template-columns: repeat(${e}, 1fr);
|
|
3733
|
-
grid-template-rows: auto;
|
|
3734
|
-
`}
|
|
3735
|
-
`, Ds = R.div`
|
|
3736
|
-
display: flex;
|
|
3737
|
-
align-items: center;
|
|
3738
|
-
justify-content: space-between;
|
|
3739
|
-
padding-top: 1rem;
|
|
3740
|
-
|
|
3741
|
-
${({ $columns: e }) => `
|
|
3742
|
-
grid-column: 1 / ${e + 1};
|
|
3743
|
-
`}
|
|
3744
|
-
`, ba = ({
|
|
3745
|
-
children: e,
|
|
3746
|
-
initialValues: t,
|
|
3747
|
-
onReset: r,
|
|
3748
|
-
onSubmit: n,
|
|
3749
|
-
onClickSubmit: o,
|
|
3750
|
-
columns: s = 1,
|
|
3751
|
-
hasReset: c = !0,
|
|
3752
|
-
...d
|
|
3753
|
-
}) => {
|
|
3754
|
-
const { handleInputChange: l, handleSubmit: h, handleReset: u, resetSignal: f, valid: g } = Os({
|
|
3755
|
-
initialValues: t,
|
|
3756
|
-
onReset: r,
|
|
3757
|
-
onSubmit: n,
|
|
3758
|
-
onClickSubmit: o
|
|
3759
|
-
}), m = ee();
|
|
3760
|
-
return /* @__PURE__ */ i.jsx(Bs, { onSubmit: h, onReset: u, $columns: s, $theme: m, ...d, children: /* @__PURE__ */ i.jsxs(Ae.Provider, { value: { onChangeFormInput: l, initialValues: t, resetSignal: f }, children: [
|
|
3761
|
-
e,
|
|
3762
|
-
/* @__PURE__ */ i.jsxs(Ds, { $columns: s, children: [
|
|
3763
|
-
c && /* @__PURE__ */ i.jsx(wt, { type: "reset", text: "Reset", icon: I.Clear, view: be.Flat }),
|
|
3764
|
-
/* @__PURE__ */ i.jsx(wt, { type: "submit", text: "Submit", icon: I.Forward, extended: !c, disabled: !g })
|
|
3765
|
-
] })
|
|
3766
|
-
] }) });
|
|
3767
|
-
}, Ls = R.table`
|
|
3768
|
-
border-collapse: collapse;
|
|
3769
|
-
`, Ns = R.thead`
|
|
3770
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3771
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3772
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
3773
|
-
`, Fs = R.tbody`
|
|
3774
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3775
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3776
|
-
`, En = R.th`
|
|
3777
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3778
|
-
text-align: left;
|
|
3779
|
-
`, Hs = R.tr`
|
|
3780
|
-
font-weight: bold;
|
|
3781
|
-
border-top: ${(e) => e.$theme.borderLight};
|
|
3782
|
-
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3783
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
3784
|
-
`, Rn = R.td`
|
|
3785
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3786
|
-
`, Ws = R.caption`
|
|
3787
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
3788
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
3789
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
3790
|
-
font-weight: bold;
|
|
3791
|
-
`, Vs = R.tr`
|
|
3792
|
-
border-bottom: ${(e) => e.$theme.borderLight};
|
|
3793
|
-
|
|
3794
|
-
${(e) => e.$selected && `
|
|
3795
|
-
background-color: ${e.$theme.backgroundColorLight};
|
|
3796
|
-
`}
|
|
3797
|
-
`, Wr = R.col`
|
|
3798
|
-
border-right: ${(e) => e.$theme.borderLight};
|
|
3799
|
-
|
|
3800
|
-
${(e) => e.$isFirst && `border-left: ${e.$theme.borderLight};`}
|
|
3801
|
-
${(e) => e.$highlighted && `background-color: ${e.$theme.backgroundColorLight};`}
|
|
3802
|
-
`, Gs = R.div`
|
|
3803
|
-
display: flex;
|
|
3804
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3805
|
-
padding: ${(e) => e.$theme.gapSmall} 0;
|
|
3806
|
-
position: relative;
|
|
3807
|
-
overflow: hidden;
|
|
3808
|
-
|
|
3809
|
-
svg {
|
|
3810
|
-
color: ${(e) => e.$checked ? e.$theme.fontColorBase : e.$theme.fontColorLight};
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3813
|
-
label {
|
|
3814
|
-
cursor: pointer;
|
|
3815
|
-
gap: ${(e) => e.$theme.gapSmall};
|
|
3816
|
-
font-size: ${(e) => e.$theme.fontSizeBase} !important;
|
|
3817
|
-
&:hover,
|
|
3818
|
-
&:active {
|
|
3819
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
3820
|
-
}
|
|
3821
|
-
}
|
|
3822
|
-
|
|
3823
|
-
${(e) => e.$disabled && `
|
|
3824
|
-
pointer-events: none;
|
|
3825
|
-
opacity: 0.5;
|
|
3826
|
-
`}
|
|
3827
|
-
`, Us = R.input`
|
|
3828
|
-
position: absolute;
|
|
3829
|
-
z-index: -1;
|
|
3830
|
-
opacity: 0;
|
|
3831
|
-
top: 4px;
|
|
3832
|
-
left: 0;
|
|
3833
|
-
margin: 0;
|
|
3834
|
-
|
|
3835
|
-
&:focus-visible + label {
|
|
3836
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
3837
|
-
outline-offset: 2px;
|
|
3838
|
-
}
|
|
3839
|
-
`;
|
|
3840
|
-
function Ys({
|
|
3841
|
-
item: e,
|
|
3842
|
-
columns: t,
|
|
3843
|
-
renderDataItem: r
|
|
3844
|
-
}) {
|
|
3845
|
-
const n = [];
|
|
3846
|
-
for (const o of t) {
|
|
3847
|
-
let s;
|
|
3848
|
-
r && e[o.field] ? s = r(e, o.field) : e[o.field] ? s = e[o.field].toString() : s = "", n.push(s);
|
|
3849
|
-
}
|
|
3850
|
-
return n;
|
|
3851
|
-
}
|
|
3852
|
-
const Ks = ({ value: e, theme: t }) => /* @__PURE__ */ i.jsx(Rn, { $theme: t, children: e }), An = ({
|
|
3853
|
-
name: e,
|
|
3854
|
-
label: t,
|
|
3855
|
-
disabled: r,
|
|
3856
|
-
required: n = !1,
|
|
3857
|
-
onChange: o,
|
|
3858
|
-
checked: s = !1,
|
|
3859
|
-
theme: c,
|
|
3860
|
-
...d
|
|
3861
|
-
}) => {
|
|
3862
|
-
const { elementId: l } = $e(d == null ? void 0 : d.id);
|
|
3863
|
-
return /* @__PURE__ */ i.jsxs(Gs, { $disabled: !!r, $checked: s, $theme: c, children: [
|
|
3864
|
-
/* @__PURE__ */ i.jsx(
|
|
3865
|
-
Us,
|
|
3866
|
-
{
|
|
3867
|
-
id: l,
|
|
3868
|
-
name: e,
|
|
3869
|
-
type: "checkbox",
|
|
3870
|
-
disabled: r,
|
|
3871
|
-
required: n,
|
|
3872
|
-
checked: s,
|
|
3873
|
-
onChange: o,
|
|
3874
|
-
$theme: c
|
|
3875
|
-
}
|
|
3876
|
-
),
|
|
3877
|
-
/* @__PURE__ */ i.jsx(
|
|
3878
|
-
Ue,
|
|
3879
|
-
{
|
|
3880
|
-
label: t,
|
|
3881
|
-
required: n,
|
|
3882
|
-
inputId: l,
|
|
3883
|
-
isTextHidden: !0,
|
|
3884
|
-
iconPosition: "left",
|
|
3885
|
-
theme: c,
|
|
3886
|
-
icon: s ? /* @__PURE__ */ i.jsx(At, {}) : /* @__PURE__ */ i.jsx(It, {})
|
|
3887
|
-
}
|
|
3888
|
-
)
|
|
3889
|
-
] });
|
|
3890
|
-
}, qs = ({
|
|
3891
|
-
rowId: e,
|
|
3892
|
-
isRowSelected: t,
|
|
3893
|
-
selectRowById: r,
|
|
3894
|
-
deselectRowById: n,
|
|
3895
|
-
disabled: o,
|
|
3896
|
-
theme: s
|
|
3897
|
-
}) => {
|
|
3898
|
-
const c = (d) => {
|
|
3899
|
-
const { checked: l } = d.target;
|
|
3900
|
-
l ? r(e) : n(e);
|
|
3901
|
-
};
|
|
3902
|
-
return /* @__PURE__ */ i.jsx(Rn, { $theme: s, children: /* @__PURE__ */ i.jsx(
|
|
3903
|
-
An,
|
|
3904
|
-
{
|
|
3905
|
-
theme: s,
|
|
3906
|
-
label: "Select row",
|
|
3907
|
-
onChange: c,
|
|
3908
|
-
id: `select_row_${e}`,
|
|
3909
|
-
checked: t,
|
|
3910
|
-
disabled: o
|
|
3911
|
-
}
|
|
3912
|
-
) });
|
|
3913
|
-
}, Xs = ({ rowId: e, selectRowById: t, deselectRowById: r, selectable: n, values: o, selectedIds: s, disabled: c, theme: d }) => {
|
|
3914
|
-
const l = s.includes(e);
|
|
3915
|
-
return /* @__PURE__ */ i.jsxs(Vs, { $selected: l, $theme: d, children: [
|
|
3916
|
-
n && /* @__PURE__ */ i.jsx(
|
|
3917
|
-
qs,
|
|
3918
|
-
{
|
|
3919
|
-
rowId: e,
|
|
3920
|
-
selectRowById: t,
|
|
3921
|
-
deselectRowById: r,
|
|
3922
|
-
isRowSelected: l,
|
|
3923
|
-
disabled: c,
|
|
3924
|
-
theme: d
|
|
3925
|
-
}
|
|
3926
|
-
),
|
|
3927
|
-
o.map((h, u) => /* @__PURE__ */ i.jsx(Ks, { value: h, theme: d }, `row_${u}`))
|
|
3928
|
-
] });
|
|
3929
|
-
}, Js = ({
|
|
3930
|
-
selectRowById: e,
|
|
3931
|
-
deselectRowById: t,
|
|
3932
|
-
renderDataItem: r,
|
|
3933
|
-
selectedIds: n,
|
|
3934
|
-
selectable: o,
|
|
3935
|
-
data: s,
|
|
3936
|
-
columns: c,
|
|
3937
|
-
theme: d
|
|
3938
|
-
}) => /* @__PURE__ */ i.jsx(Fs, { $theme: d, children: s.map((l) => {
|
|
3939
|
-
const h = Ys({ item: l, columns: c, renderDataItem: r });
|
|
3940
|
-
return /* @__PURE__ */ i.jsx(
|
|
3941
|
-
Xs,
|
|
3942
|
-
{
|
|
3943
|
-
rowId: l.id,
|
|
3944
|
-
disabled: l == null ? void 0 : l.disabled,
|
|
3945
|
-
selectRowById: e,
|
|
3946
|
-
deselectRowById: t,
|
|
3947
|
-
selectable: o,
|
|
3948
|
-
values: h,
|
|
3949
|
-
selectedIds: n,
|
|
3950
|
-
theme: d
|
|
3951
|
-
},
|
|
3952
|
-
l.id
|
|
3953
|
-
);
|
|
3954
|
-
}) }), Zs = ({
|
|
3955
|
-
columns: e,
|
|
3956
|
-
selectable: t,
|
|
3957
|
-
theme: r
|
|
3958
|
-
}) => /* @__PURE__ */ i.jsxs("colgroup", { children: [
|
|
3959
|
-
t && /* @__PURE__ */ i.jsx(Wr, { $isFirst: !0, $highlighted: !1, $theme: r }),
|
|
3960
|
-
e.map((n, o) => /* @__PURE__ */ i.jsx(
|
|
3961
|
-
Wr,
|
|
3962
|
-
{
|
|
3963
|
-
$isFirst: o === 0 && !t,
|
|
3964
|
-
$highlighted: !!(n != null && n.highlighted),
|
|
3965
|
-
className: n == null ? void 0 : n.className,
|
|
3966
|
-
$theme: r
|
|
3967
|
-
},
|
|
3968
|
-
n == null ? void 0 : n.title
|
|
3969
|
-
))
|
|
3970
|
-
] }), Qs = ({
|
|
3971
|
-
title: e,
|
|
3972
|
-
component: t,
|
|
3973
|
-
theme: r
|
|
3974
|
-
}) => /* @__PURE__ */ i.jsx(En, { $theme: r, children: t ?? e ?? "" }), ea = ({ gridId: e, isAllSelected: t, selectAll: r, deselectAll: n, disabled: o, theme: s }) => {
|
|
3975
|
-
const c = (d) => {
|
|
3976
|
-
const { checked: l } = d.target;
|
|
3977
|
-
l ? r() : n();
|
|
3978
|
-
};
|
|
3979
|
-
return /* @__PURE__ */ i.jsx(En, { $theme: s, children: /* @__PURE__ */ i.jsx(
|
|
3980
|
-
An,
|
|
3981
|
-
{
|
|
3982
|
-
label: "Select all rows",
|
|
3983
|
-
onChange: c,
|
|
3984
|
-
id: `select_all_${e}`,
|
|
3985
|
-
checked: t,
|
|
3986
|
-
disabled: o,
|
|
3987
|
-
theme: s
|
|
3988
|
-
}
|
|
3989
|
-
) });
|
|
3990
|
-
}, ta = ({
|
|
3991
|
-
columns: e,
|
|
3992
|
-
gridId: t,
|
|
3993
|
-
selectAll: r,
|
|
3994
|
-
deselectAll: n,
|
|
3995
|
-
selectable: o,
|
|
3996
|
-
isAllSelected: s,
|
|
3997
|
-
isAllCheckboxDisabled: c = !1,
|
|
3998
|
-
theme: d
|
|
3999
|
-
}) => /* @__PURE__ */ i.jsx(Ns, { $theme: d, children: /* @__PURE__ */ i.jsxs(Hs, { $theme: d, children: [
|
|
4000
|
-
o && /* @__PURE__ */ i.jsx(
|
|
4001
|
-
ea,
|
|
4002
|
-
{
|
|
4003
|
-
isAllSelected: s,
|
|
4004
|
-
disabled: c,
|
|
4005
|
-
gridId: t,
|
|
4006
|
-
selectAll: r,
|
|
4007
|
-
deselectAll: n,
|
|
4008
|
-
theme: d
|
|
4009
|
-
}
|
|
4010
|
-
),
|
|
4011
|
-
e.map((l) => /* @__PURE__ */ i.jsx(Qs, { title: l.title, component: l.component, theme: d }, `${l.title}_${t}`))
|
|
4012
|
-
] }) }), ra = ({
|
|
4013
|
-
data: e,
|
|
4014
|
-
id: t,
|
|
4015
|
-
onSelect: r
|
|
4016
|
-
}) => {
|
|
4017
|
-
const { elementId: n } = $e(t), [o, s] = L([]), c = e.map((y) => y.id), d = c.length === o.length, l = e.some((y) => y == null ? void 0 : y.disabled), h = (y) => {
|
|
4018
|
-
s(y), r == null || r(y);
|
|
4019
|
-
};
|
|
4020
|
-
return {
|
|
4021
|
-
elementId: n,
|
|
4022
|
-
isAllSelected: d,
|
|
4023
|
-
isAllCheckboxDisabled: l,
|
|
4024
|
-
selectedIds: o,
|
|
4025
|
-
handleSelectAll: () => {
|
|
4026
|
-
h(c);
|
|
4027
|
-
},
|
|
4028
|
-
handleDeselectAll: () => {
|
|
4029
|
-
h([]);
|
|
4030
|
-
},
|
|
4031
|
-
handleSelectRowById: (y) => {
|
|
4032
|
-
const $ = [...o, y];
|
|
4033
|
-
h($);
|
|
4034
|
-
},
|
|
4035
|
-
handleDeselectRowById: (y) => {
|
|
4036
|
-
const $ = o.filter((C) => C !== y);
|
|
4037
|
-
h($);
|
|
4038
|
-
}
|
|
4039
|
-
};
|
|
4040
|
-
}, xa = ({
|
|
4041
|
-
columns: e,
|
|
4042
|
-
data: t,
|
|
4043
|
-
id: r,
|
|
4044
|
-
onSelect: n,
|
|
4045
|
-
renderDataItem: o,
|
|
4046
|
-
caption: s,
|
|
4047
|
-
selectable: c = !1,
|
|
4048
|
-
...d
|
|
4049
|
-
}) => {
|
|
4050
|
-
const {
|
|
4051
|
-
elementId: l,
|
|
4052
|
-
handleSelectAll: h,
|
|
4053
|
-
handleDeselectAll: u,
|
|
4054
|
-
isAllCheckboxDisabled: f,
|
|
4055
|
-
isAllSelected: g,
|
|
4056
|
-
handleDeselectRowById: m,
|
|
4057
|
-
handleSelectRowById: y,
|
|
4058
|
-
selectedIds: $
|
|
4059
|
-
} = ra({ id: r, data: t, onSelect: n }), C = ee();
|
|
4060
|
-
return /* @__PURE__ */ i.jsxs(Ls, { ...d, children: [
|
|
4061
|
-
s && /* @__PURE__ */ i.jsx(Ws, { $theme: C, children: s }),
|
|
4062
|
-
/* @__PURE__ */ i.jsx(Zs, { columns: e, selectable: c, theme: C }),
|
|
4063
|
-
/* @__PURE__ */ i.jsx(
|
|
4064
|
-
ta,
|
|
4065
|
-
{
|
|
4066
|
-
gridId: l,
|
|
4067
|
-
columns: e,
|
|
4068
|
-
selectable: c,
|
|
4069
|
-
selectAll: h,
|
|
4070
|
-
deselectAll: u,
|
|
4071
|
-
isAllSelected: g,
|
|
4072
|
-
isAllCheckboxDisabled: f,
|
|
4073
|
-
theme: C
|
|
4074
|
-
}
|
|
4075
|
-
),
|
|
4076
|
-
/* @__PURE__ */ i.jsx(
|
|
4077
|
-
Js,
|
|
4078
|
-
{
|
|
4079
|
-
columns: e,
|
|
4080
|
-
data: t,
|
|
4081
|
-
selectable: c,
|
|
4082
|
-
selectRowById: y,
|
|
4083
|
-
deselectRowById: m,
|
|
4084
|
-
selectedIds: $,
|
|
4085
|
-
renderDataItem: o,
|
|
4086
|
-
theme: C
|
|
4087
|
-
}
|
|
4088
|
-
)
|
|
4089
|
-
] });
|
|
4090
|
-
}, sr = ({ children: e }) => {
|
|
4091
|
-
const [t] = L(() => document.createElement("div"));
|
|
4092
|
-
return de(() => (document.body.appendChild(t), () => {
|
|
4093
|
-
document.body.removeChild(t);
|
|
4094
|
-
}), [t]), ro.createPortal(e, t);
|
|
4095
|
-
}, na = R.button`
|
|
4096
|
-
background: transparent;
|
|
4097
|
-
position: relative;
|
|
4098
|
-
outline: none;
|
|
4099
|
-
border: none;
|
|
4100
|
-
padding: ${(e) => e.$theme.gapMedium};
|
|
4101
|
-
cursor: pointer;
|
|
4102
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4103
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4104
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
4105
|
-
overflow: hidden;
|
|
4106
|
-
border-top-left-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4107
|
-
border-top-right-radius: ${(e) => e.$theme.blockBorderRadius};
|
|
4108
|
-
|
|
4109
|
-
&:focus-visible {
|
|
4110
|
-
outline: ${(e) => e.$theme.borderOutline};
|
|
4111
|
-
outline-offset: -4px;
|
|
4112
|
-
}
|
|
4113
|
-
|
|
4114
|
-
&:hover,
|
|
4115
|
-
&:active {
|
|
4116
|
-
text-shadow: ${(e) => e.$theme.textShadow};
|
|
4117
|
-
color: ${(e) => e.$theme.fontColorAccent};
|
|
4118
|
-
}
|
|
4119
|
-
|
|
4120
|
-
${(e) => e.$disabled && `
|
|
4121
|
-
pointer-events: none;
|
|
4122
|
-
filter: grayscale(80%);
|
|
4123
|
-
opacity: 0.6;
|
|
4124
|
-
`}
|
|
4125
|
-
|
|
4126
|
-
${(e) => e.$selected && `
|
|
4127
|
-
border-top: ${e.$theme.borderLight};
|
|
4128
|
-
border-right: ${e.$theme.borderLight};
|
|
4129
|
-
border-left: ${e.$theme.borderLight};
|
|
4130
|
-
background-color: ${e.$theme.backgroundColorBase};
|
|
4131
|
-
top: 1px;
|
|
4132
|
-
`}
|
|
4133
|
-
|
|
4134
|
-
${(e) => e.$mode === "vertical" && `
|
|
4135
|
-
border-bottom-left-radius: ${e.$theme.blockBorderRadius};
|
|
4136
|
-
border-top-right-radius: 0;
|
|
4137
|
-
`}
|
|
4138
|
-
|
|
4139
|
-
${(e) => e.$mode === "vertical" && e.$selected && `
|
|
4140
|
-
border-top: ${e.$theme.borderLight};
|
|
4141
|
-
border-right: none;
|
|
4142
|
-
border-left: ${e.$theme.borderLight};
|
|
4143
|
-
border-bottom: ${e.$theme.borderLight};
|
|
4144
|
-
top: 0px;
|
|
4145
|
-
left: 1px;
|
|
4146
|
-
`}
|
|
4147
|
-
`, oa = R.div`
|
|
4148
|
-
background-color: ${(e) => e.$theme.backgroundColorBase};
|
|
4149
|
-
color: ${(e) => e.$theme.fontColorBase};
|
|
4150
|
-
font-size: ${(e) => e.$theme.fontSizeBase};
|
|
4151
|
-
font-family: ${(e) => e.$theme.fontFamilyCore};
|
|
4152
|
-
padding: ${(e) => e.$theme.gapBig};
|
|
4153
|
-
flex-grow: 1;
|
|
4154
|
-
`, ia = R.div`
|
|
4155
|
-
border-bottom: ${(e) => e.$theme.borderLight};
|
|
4156
|
-
padding: 0 ${(e) => e.$theme.gapMedium};
|
|
4157
|
-
display: flex;
|
|
4158
|
-
gap: ${(e) => e.$theme.gapMedium};
|
|
4159
|
-
|
|
4160
|
-
${(e) => e.$mode === "vertical" && `
|
|
4161
|
-
flex-direction: column;
|
|
4162
|
-
border-bottom: none;
|
|
4163
|
-
border-right: ${e.$theme.borderLight};
|
|
4164
|
-
padding: ${e.$theme.gapMedium} 0;
|
|
4165
|
-
`}
|
|
4166
|
-
`, sa = R.div`
|
|
4167
|
-
display: flex;
|
|
4168
|
-
flex-direction: column;
|
|
4169
|
-
width: 100%;
|
|
4170
|
-
|
|
4171
|
-
${({ $mode: e }) => e === "vertical" && `
|
|
4172
|
-
flex-direction: row;
|
|
4173
|
-
`}
|
|
4174
|
-
`, aa = ({ tabs: e, selectedTabId: t, theme: r }) => {
|
|
4175
|
-
var s;
|
|
4176
|
-
const n = (s = e.find((c) => c.id === t)) == null ? void 0 : s.content, o = `tabpanel_${t}`;
|
|
4177
|
-
return /* @__PURE__ */ i.jsx(oa, { role: "tabpanel", "aria-labelledby": t, id: o, $theme: r, children: n });
|
|
4178
|
-
}, ca = ({
|
|
4179
|
-
title: e,
|
|
4180
|
-
onTabSelect: t,
|
|
4181
|
-
tabId: r,
|
|
4182
|
-
isSelected: n,
|
|
4183
|
-
isDisabled: o = !1,
|
|
4184
|
-
tabPanelId: s,
|
|
4185
|
-
mode: c,
|
|
4186
|
-
theme: d
|
|
4187
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
4188
|
-
na,
|
|
4189
|
-
{
|
|
4190
|
-
role: "tab",
|
|
4191
|
-
id: r,
|
|
4192
|
-
onClick: () => t(r),
|
|
4193
|
-
"aria-selected": n,
|
|
4194
|
-
"aria-controls": s,
|
|
4195
|
-
$selected: n,
|
|
4196
|
-
$disabled: o,
|
|
4197
|
-
$mode: c,
|
|
4198
|
-
$theme: d,
|
|
4199
|
-
children: e
|
|
4200
|
-
}
|
|
4201
|
-
), la = ({ tabs: e, onTabSelect: t, selectedTabId: r, tabPanelIds: n, mode: o, tabIds: s, theme: c }) => {
|
|
4202
|
-
const d = (l) => {
|
|
4203
|
-
const h = s.findIndex((u) => u === r);
|
|
4204
|
-
switch (l.key) {
|
|
4205
|
-
case "ArrowLeft":
|
|
4206
|
-
case "ArrowUp": {
|
|
4207
|
-
if (l.preventDefault(), l.key === "ArrowUp" && o === "horizontal" || l.key === "ArrowLeft" && o === "vertical") break;
|
|
4208
|
-
const u = h - 1 >= 0 ? h - 1 : s.length - 1, f = s[u];
|
|
4209
|
-
f && (rt(f), t(f));
|
|
4210
|
-
break;
|
|
4211
|
-
}
|
|
4212
|
-
case "ArrowRight":
|
|
4213
|
-
case "ArrowDown": {
|
|
4214
|
-
if (l.preventDefault(), l.key === "ArrowDown" && o === "horizontal" || l.key === "ArrowRight" && o === "vertical") break;
|
|
4215
|
-
const u = h === s.length - 1 ? 0 : h + 1, f = s[u];
|
|
4216
|
-
f && (rt(f), t(f));
|
|
4217
|
-
break;
|
|
4218
|
-
}
|
|
4219
|
-
}
|
|
4220
|
-
};
|
|
4221
|
-
return /* @__PURE__ */ i.jsx(ia, { role: "tablist", $mode: o, onKeyDown: d, $theme: c, children: e.map(({ id: l, title: h, disabled: u }, f) => /* @__PURE__ */ i.jsx(
|
|
4222
|
-
ca,
|
|
4223
|
-
{
|
|
4224
|
-
title: h,
|
|
4225
|
-
onTabSelect: t,
|
|
4226
|
-
tabId: l,
|
|
4227
|
-
isSelected: l === r,
|
|
4228
|
-
isDisabled: u,
|
|
4229
|
-
tabPanelId: n[f],
|
|
4230
|
-
mode: o,
|
|
4231
|
-
theme: c
|
|
4232
|
-
},
|
|
4233
|
-
l
|
|
4234
|
-
)) });
|
|
4235
|
-
}, $a = ({ tabs: e, defaultTabId: t, mode: r = "horizontal", ...n }) => {
|
|
4236
|
-
const o = e.map((f) => f.id), s = o.map((f) => `tabpanel_${f}`), c = t && o.includes(t) ? t : o[0], [d, l] = L(c), h = ee(), u = (f) => {
|
|
4237
|
-
l(f);
|
|
4238
|
-
};
|
|
4239
|
-
return /* @__PURE__ */ i.jsxs(sa, { $mode: r, ...n, children: [
|
|
4240
|
-
/* @__PURE__ */ i.jsx(
|
|
4241
|
-
la,
|
|
4242
|
-
{
|
|
4243
|
-
tabs: e,
|
|
4244
|
-
selectedTabId: d,
|
|
4245
|
-
tabPanelIds: s,
|
|
4246
|
-
onTabSelect: u,
|
|
4247
|
-
mode: r,
|
|
4248
|
-
tabIds: o,
|
|
4249
|
-
theme: h
|
|
4250
|
-
}
|
|
4251
|
-
),
|
|
4252
|
-
/* @__PURE__ */ i.jsx(aa, { tabs: e, selectedTabId: d, theme: h })
|
|
4253
|
-
] });
|
|
4254
|
-
};
|
|
1
|
+
import { f as e, s as a, C as i, t as c, a as p, g as t, p as C, i as h, n as g, k as n, q as L, u, I as r, r as l, b as m, c as I, l as d, d as T, m as x, e as F, o as M, h as b, v as B, w as D, x as k, y as w, z as A, A as E, B as P, D as f, E as y, F as N } from "./index-DdkNFaB4.js";
|
|
4255
2
|
export {
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
3
|
+
e as ChopLogicAlert,
|
|
4
|
+
a as ChopLogicAlertMode,
|
|
5
|
+
i as ChopLogicButton,
|
|
6
|
+
c as ChopLogicButtonView,
|
|
7
|
+
p as ChopLogicCheckbox,
|
|
8
|
+
t as ChopLogicDialog,
|
|
9
|
+
C as ChopLogicErrorMessage,
|
|
10
|
+
h as ChopLogicForm,
|
|
11
|
+
g as ChopLogicFormContext,
|
|
12
|
+
n as ChopLogicGrid,
|
|
13
|
+
L as ChopLogicIcon,
|
|
14
|
+
u as ChopLogicIconName,
|
|
15
|
+
r as ChopLogicInputInnerButton,
|
|
16
|
+
l as ChopLogicLabel,
|
|
17
|
+
m as ChopLogicMultiSelect,
|
|
18
|
+
I as ChopLogicNumericInput,
|
|
19
|
+
d as ChopLogicPortal,
|
|
20
|
+
T as ChopLogicSelect,
|
|
21
|
+
x as ChopLogicTabs,
|
|
22
|
+
F as ChopLogicTextInput,
|
|
23
|
+
M as ChopLogicThemeContext,
|
|
24
|
+
b as ChopLogicTooltip,
|
|
25
|
+
B as useChopLogicTheme,
|
|
26
|
+
D as useClickOutside,
|
|
27
|
+
k as useContainerDimensions,
|
|
28
|
+
w as useElementIds,
|
|
29
|
+
A as useKeyPress,
|
|
30
|
+
E as useModalFocusTrap,
|
|
31
|
+
P as useMount,
|
|
32
|
+
f as useResetFormInput,
|
|
33
|
+
y as useTooltipPosition,
|
|
34
|
+
N as useWindowDimensions
|
|
4288
35
|
};
|
|
4289
36
|
//# sourceMappingURL=index.es.js.map
|