@hexure/ui 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2549 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/Theme.d.ts +42 -0
- package/dist/cjs/types/components/Accordion/Accordion.d.ts +13 -0
- package/dist/cjs/types/components/Accordion/Accordion.stories.d.ts +5 -0
- package/dist/cjs/types/components/Accordion/index.d.ts +1 -0
- package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +19 -0
- package/dist/cjs/types/components/ActionDialog/ActionDialog.stories.d.ts +5 -0
- package/dist/cjs/types/components/ActionDialog/ActionDialog.test.d.ts +1 -0
- package/dist/cjs/types/components/ActionDialog/index.d.ts +1 -0
- package/dist/cjs/types/components/Alert/Alert.d.ts +11 -0
- package/dist/cjs/types/components/Alert/Alert.stories.d.ts +5 -0
- package/dist/cjs/types/components/Alert/index.d.ts +1 -0
- package/dist/cjs/types/components/BulkActionBar/BulkActionBar.d.ts +16 -0
- package/dist/cjs/types/components/BulkActionBar/BulkActionBar.stories.d.ts +5 -0
- package/dist/cjs/types/components/BulkActionBar/index.d.ts +1 -0
- package/dist/cjs/types/components/Button/Button.d.ts +19 -0
- package/dist/cjs/types/components/Button/Button.stories.d.ts +5 -0
- package/dist/cjs/types/components/Button/index.d.ts +1 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +14 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/cjs/types/components/Checkbox/index.d.ts +1 -0
- package/dist/cjs/types/components/Checklist/Checklist.d.ts +15 -0
- package/dist/cjs/types/components/Checklist/Checklist.stories.d.ts +5 -0
- package/dist/cjs/types/components/Checklist/index.d.ts +1 -0
- package/dist/cjs/types/components/Copy/Copy.d.ts +15 -0
- package/dist/cjs/types/components/Copy/Copy.stories.d.ts +5 -0
- package/dist/cjs/types/components/Copy/index.d.ts +1 -0
- package/dist/cjs/types/components/Field/Field.d.ts +23 -0
- package/dist/cjs/types/components/Field/Field.stories.d.ts +5 -0
- package/dist/cjs/types/components/Field/index.d.ts +1 -0
- package/dist/cjs/types/components/Heading/Heading.d.ts +16 -0
- package/dist/cjs/types/components/Heading/Heading.stories.d.ts +5 -0
- package/dist/cjs/types/components/Heading/index.d.ts +1 -0
- package/dist/cjs/types/components/Input/Input.d.ts +20 -0
- package/dist/cjs/types/components/Input/Input.stories.d.ts +5 -0
- package/dist/cjs/types/components/Input/index.d.ts +1 -0
- package/dist/cjs/types/components/Modal/Modal.d.ts +23 -0
- package/dist/cjs/types/components/Modal/Modal.stories.d.ts +5 -0
- package/dist/cjs/types/components/Modal/index.d.ts +1 -0
- package/dist/cjs/types/components/Multiselect/MultiSelect.d.ts +17 -0
- package/dist/cjs/types/components/Multiselect/MultiSelect.stories.d.ts +5 -0
- package/dist/cjs/types/components/Multiselect/index.d.ts +1 -0
- package/dist/cjs/types/components/Pagination/Pagination.d.ts +9 -0
- package/dist/cjs/types/components/Pagination/Pagination.stories.d.ts +5 -0
- package/dist/cjs/types/components/Pagination/index.d.ts +1 -0
- package/dist/cjs/types/components/Radio/Radio.d.ts +15 -0
- package/dist/cjs/types/components/Radio/Radio.stories.d.ts +5 -0
- package/dist/cjs/types/components/Radio/index.d.ts +1 -0
- package/dist/cjs/types/components/RadioList/RadioList.d.ts +14 -0
- package/dist/cjs/types/components/RadioList/RadioList.stories.d.ts +5 -0
- package/dist/cjs/types/components/RadioList/index.d.ts +1 -0
- package/dist/cjs/types/components/Select/Select.d.ts +28 -0
- package/dist/cjs/types/components/Select/Select.stories.d.ts +5 -0
- package/dist/cjs/types/components/Select/index.d.ts +1 -0
- package/dist/cjs/types/components/Table/Table.d.ts +25 -0
- package/dist/cjs/types/components/Table/Table.stories.d.ts +5 -0
- package/dist/cjs/types/components/Table/index.d.ts +1 -0
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +12 -0
- package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +5 -0
- package/dist/cjs/types/components/Tabs/index.d.ts +1 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +13 -0
- package/dist/cjs/types/components/Tag/Tag.stories.d.ts +5 -0
- package/dist/cjs/types/components/Tag/index.d.ts +1 -0
- package/dist/cjs/types/components/Toggle/Toggle.d.ts +10 -0
- package/dist/cjs/types/components/Toggle/Toggle.stories.d.ts +5 -0
- package/dist/cjs/types/components/Toggle/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +21 -0
- package/dist/cjs/types/utils/Accessibility.d.ts +14 -0
- package/dist/cjs/types/utils/Form.d.ts +14 -0
- package/dist/esm/index.js +2527 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/Theme.d.ts +42 -0
- package/dist/esm/types/components/Accordion/Accordion.d.ts +13 -0
- package/dist/esm/types/components/Accordion/Accordion.stories.d.ts +5 -0
- package/dist/esm/types/components/Accordion/index.d.ts +1 -0
- package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +19 -0
- package/dist/esm/types/components/ActionDialog/ActionDialog.stories.d.ts +5 -0
- package/dist/esm/types/components/ActionDialog/ActionDialog.test.d.ts +1 -0
- package/dist/esm/types/components/ActionDialog/index.d.ts +1 -0
- package/dist/esm/types/components/Alert/Alert.d.ts +11 -0
- package/dist/esm/types/components/Alert/Alert.stories.d.ts +5 -0
- package/dist/esm/types/components/Alert/index.d.ts +1 -0
- package/dist/esm/types/components/BulkActionBar/BulkActionBar.d.ts +16 -0
- package/dist/esm/types/components/BulkActionBar/BulkActionBar.stories.d.ts +5 -0
- package/dist/esm/types/components/BulkActionBar/index.d.ts +1 -0
- package/dist/esm/types/components/Button/Button.d.ts +19 -0
- package/dist/esm/types/components/Button/Button.stories.d.ts +5 -0
- package/dist/esm/types/components/Button/index.d.ts +1 -0
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +14 -0
- package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/esm/types/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/types/components/Checklist/Checklist.d.ts +15 -0
- package/dist/esm/types/components/Checklist/Checklist.stories.d.ts +5 -0
- package/dist/esm/types/components/Checklist/index.d.ts +1 -0
- package/dist/esm/types/components/Copy/Copy.d.ts +15 -0
- package/dist/esm/types/components/Copy/Copy.stories.d.ts +5 -0
- package/dist/esm/types/components/Copy/index.d.ts +1 -0
- package/dist/esm/types/components/Field/Field.d.ts +23 -0
- package/dist/esm/types/components/Field/Field.stories.d.ts +5 -0
- package/dist/esm/types/components/Field/index.d.ts +1 -0
- package/dist/esm/types/components/Heading/Heading.d.ts +16 -0
- package/dist/esm/types/components/Heading/Heading.stories.d.ts +5 -0
- package/dist/esm/types/components/Heading/index.d.ts +1 -0
- package/dist/esm/types/components/Input/Input.d.ts +20 -0
- package/dist/esm/types/components/Input/Input.stories.d.ts +5 -0
- package/dist/esm/types/components/Input/index.d.ts +1 -0
- package/dist/esm/types/components/Modal/Modal.d.ts +23 -0
- package/dist/esm/types/components/Modal/Modal.stories.d.ts +5 -0
- package/dist/esm/types/components/Modal/index.d.ts +1 -0
- package/dist/esm/types/components/Multiselect/MultiSelect.d.ts +17 -0
- package/dist/esm/types/components/Multiselect/MultiSelect.stories.d.ts +5 -0
- package/dist/esm/types/components/Multiselect/index.d.ts +1 -0
- package/dist/esm/types/components/Pagination/Pagination.d.ts +9 -0
- package/dist/esm/types/components/Pagination/Pagination.stories.d.ts +5 -0
- package/dist/esm/types/components/Pagination/index.d.ts +1 -0
- package/dist/esm/types/components/Radio/Radio.d.ts +15 -0
- package/dist/esm/types/components/Radio/Radio.stories.d.ts +5 -0
- package/dist/esm/types/components/Radio/index.d.ts +1 -0
- package/dist/esm/types/components/RadioList/RadioList.d.ts +14 -0
- package/dist/esm/types/components/RadioList/RadioList.stories.d.ts +5 -0
- package/dist/esm/types/components/RadioList/index.d.ts +1 -0
- package/dist/esm/types/components/Select/Select.d.ts +28 -0
- package/dist/esm/types/components/Select/Select.stories.d.ts +5 -0
- package/dist/esm/types/components/Select/index.d.ts +1 -0
- package/dist/esm/types/components/Table/Table.d.ts +25 -0
- package/dist/esm/types/components/Table/Table.stories.d.ts +5 -0
- package/dist/esm/types/components/Table/index.d.ts +1 -0
- package/dist/esm/types/components/Tabs/Tabs.d.ts +12 -0
- package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +5 -0
- package/dist/esm/types/components/Tabs/index.d.ts +1 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +13 -0
- package/dist/esm/types/components/Tag/Tag.stories.d.ts +5 -0
- package/dist/esm/types/components/Tag/index.d.ts +1 -0
- package/dist/esm/types/components/Toggle/Toggle.d.ts +10 -0
- package/dist/esm/types/components/Toggle/Toggle.stories.d.ts +5 -0
- package/dist/esm/types/components/Toggle/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +21 -0
- package/dist/esm/types/utils/Accessibility.d.ts +14 -0
- package/dist/esm/types/utils/Form.d.ts +14 -0
- package/dist/index.d.ts +323 -0
- package/package.json +14 -11
|
@@ -0,0 +1,2549 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var Icon = require('@mdi/react');
|
|
5
|
+
var js = require('@mdi/js');
|
|
6
|
+
var Numeral = require('numeral');
|
|
7
|
+
require('moment');
|
|
8
|
+
|
|
9
|
+
/******************************************************************************
|
|
10
|
+
Copyright (c) Microsoft Corporation.
|
|
11
|
+
|
|
12
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
13
|
+
purpose with or without fee is hereby granted.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
16
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
17
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
18
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
19
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
20
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
21
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
+
***************************************************************************** */
|
|
23
|
+
/* global Reflect, Promise */
|
|
24
|
+
|
|
25
|
+
var __assign = function () {
|
|
26
|
+
__assign = Object.assign || function __assign(t) {
|
|
27
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28
|
+
s = arguments[i];
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
};
|
|
33
|
+
return __assign.apply(this, arguments);
|
|
34
|
+
};
|
|
35
|
+
function __rest(s, e) {
|
|
36
|
+
var t = {};
|
|
37
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
38
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
}
|
|
43
|
+
function __makeTemplateObject(cooked, raw) {
|
|
44
|
+
if (Object.defineProperty) {
|
|
45
|
+
Object.defineProperty(cooked, "raw", {
|
|
46
|
+
value: raw
|
|
47
|
+
});
|
|
48
|
+
} else {
|
|
49
|
+
cooked.raw = raw;
|
|
50
|
+
}
|
|
51
|
+
return cooked;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function getDefaultExportFromCjs (x) {
|
|
55
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var reactIs$2 = {exports: {}};
|
|
59
|
+
|
|
60
|
+
var reactIs_production_min$1 = {};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @license React
|
|
64
|
+
* react-is.production.min.js
|
|
65
|
+
*
|
|
66
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the MIT license found in the
|
|
69
|
+
* LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/
|
|
71
|
+
var hasRequiredReactIs_production_min$1;
|
|
72
|
+
function requireReactIs_production_min$1() {
|
|
73
|
+
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
74
|
+
hasRequiredReactIs_production_min$1 = 1;
|
|
75
|
+
var b = Symbol.for("react.element"),
|
|
76
|
+
c = Symbol.for("react.portal"),
|
|
77
|
+
d = Symbol.for("react.fragment"),
|
|
78
|
+
e = Symbol.for("react.strict_mode"),
|
|
79
|
+
f = Symbol.for("react.profiler"),
|
|
80
|
+
g = Symbol.for("react.provider"),
|
|
81
|
+
h = Symbol.for("react.context"),
|
|
82
|
+
k = Symbol.for("react.server_context"),
|
|
83
|
+
l = Symbol.for("react.forward_ref"),
|
|
84
|
+
m = Symbol.for("react.suspense"),
|
|
85
|
+
n = Symbol.for("react.suspense_list"),
|
|
86
|
+
p = Symbol.for("react.memo"),
|
|
87
|
+
q = Symbol.for("react.lazy"),
|
|
88
|
+
t = Symbol.for("react.offscreen"),
|
|
89
|
+
u;
|
|
90
|
+
u = Symbol.for("react.module.reference");
|
|
91
|
+
function v(a) {
|
|
92
|
+
if ("object" === typeof a && null !== a) {
|
|
93
|
+
var r = a.$$typeof;
|
|
94
|
+
switch (r) {
|
|
95
|
+
case b:
|
|
96
|
+
switch (a = a.type, a) {
|
|
97
|
+
case d:
|
|
98
|
+
case f:
|
|
99
|
+
case e:
|
|
100
|
+
case m:
|
|
101
|
+
case n:
|
|
102
|
+
return a;
|
|
103
|
+
default:
|
|
104
|
+
switch (a = a && a.$$typeof, a) {
|
|
105
|
+
case k:
|
|
106
|
+
case h:
|
|
107
|
+
case l:
|
|
108
|
+
case q:
|
|
109
|
+
case p:
|
|
110
|
+
case g:
|
|
111
|
+
return a;
|
|
112
|
+
default:
|
|
113
|
+
return r;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
case c:
|
|
117
|
+
return r;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
reactIs_production_min$1.ContextConsumer = h;
|
|
122
|
+
reactIs_production_min$1.ContextProvider = g;
|
|
123
|
+
reactIs_production_min$1.Element = b;
|
|
124
|
+
reactIs_production_min$1.ForwardRef = l;
|
|
125
|
+
reactIs_production_min$1.Fragment = d;
|
|
126
|
+
reactIs_production_min$1.Lazy = q;
|
|
127
|
+
reactIs_production_min$1.Memo = p;
|
|
128
|
+
reactIs_production_min$1.Portal = c;
|
|
129
|
+
reactIs_production_min$1.Profiler = f;
|
|
130
|
+
reactIs_production_min$1.StrictMode = e;
|
|
131
|
+
reactIs_production_min$1.Suspense = m;
|
|
132
|
+
reactIs_production_min$1.SuspenseList = n;
|
|
133
|
+
reactIs_production_min$1.isAsyncMode = function () {
|
|
134
|
+
return !1;
|
|
135
|
+
};
|
|
136
|
+
reactIs_production_min$1.isConcurrentMode = function () {
|
|
137
|
+
return !1;
|
|
138
|
+
};
|
|
139
|
+
reactIs_production_min$1.isContextConsumer = function (a) {
|
|
140
|
+
return v(a) === h;
|
|
141
|
+
};
|
|
142
|
+
reactIs_production_min$1.isContextProvider = function (a) {
|
|
143
|
+
return v(a) === g;
|
|
144
|
+
};
|
|
145
|
+
reactIs_production_min$1.isElement = function (a) {
|
|
146
|
+
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
147
|
+
};
|
|
148
|
+
reactIs_production_min$1.isForwardRef = function (a) {
|
|
149
|
+
return v(a) === l;
|
|
150
|
+
};
|
|
151
|
+
reactIs_production_min$1.isFragment = function (a) {
|
|
152
|
+
return v(a) === d;
|
|
153
|
+
};
|
|
154
|
+
reactIs_production_min$1.isLazy = function (a) {
|
|
155
|
+
return v(a) === q;
|
|
156
|
+
};
|
|
157
|
+
reactIs_production_min$1.isMemo = function (a) {
|
|
158
|
+
return v(a) === p;
|
|
159
|
+
};
|
|
160
|
+
reactIs_production_min$1.isPortal = function (a) {
|
|
161
|
+
return v(a) === c;
|
|
162
|
+
};
|
|
163
|
+
reactIs_production_min$1.isProfiler = function (a) {
|
|
164
|
+
return v(a) === f;
|
|
165
|
+
};
|
|
166
|
+
reactIs_production_min$1.isStrictMode = function (a) {
|
|
167
|
+
return v(a) === e;
|
|
168
|
+
};
|
|
169
|
+
reactIs_production_min$1.isSuspense = function (a) {
|
|
170
|
+
return v(a) === m;
|
|
171
|
+
};
|
|
172
|
+
reactIs_production_min$1.isSuspenseList = function (a) {
|
|
173
|
+
return v(a) === n;
|
|
174
|
+
};
|
|
175
|
+
reactIs_production_min$1.isValidElementType = function (a) {
|
|
176
|
+
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
|
|
177
|
+
};
|
|
178
|
+
reactIs_production_min$1.typeOf = v;
|
|
179
|
+
return reactIs_production_min$1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
var reactIs_development$1 = {};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @license React
|
|
186
|
+
* react-is.development.js
|
|
187
|
+
*
|
|
188
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the MIT license found in the
|
|
191
|
+
* LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/
|
|
193
|
+
var hasRequiredReactIs_development$1;
|
|
194
|
+
function requireReactIs_development$1() {
|
|
195
|
+
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
196
|
+
hasRequiredReactIs_development$1 = 1;
|
|
197
|
+
if (process.env.NODE_ENV !== "production") {
|
|
198
|
+
(function () {
|
|
199
|
+
|
|
200
|
+
// ATTENTION
|
|
201
|
+
// When adding new symbols to this file,
|
|
202
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
203
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
204
|
+
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
205
|
+
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
206
|
+
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
207
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
208
|
+
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
209
|
+
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
210
|
+
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
211
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
212
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
213
|
+
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
214
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
215
|
+
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
216
|
+
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
217
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
218
|
+
|
|
219
|
+
// -----------------------------------------------------------------------------
|
|
220
|
+
|
|
221
|
+
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
222
|
+
var enableCacheElement = false;
|
|
223
|
+
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
224
|
+
|
|
225
|
+
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
226
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
227
|
+
// issues in DEV builds.
|
|
228
|
+
|
|
229
|
+
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
230
|
+
|
|
231
|
+
var REACT_MODULE_REFERENCE;
|
|
232
|
+
{
|
|
233
|
+
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
234
|
+
}
|
|
235
|
+
function isValidElementType(type) {
|
|
236
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
|
237
|
+
return true;
|
|
238
|
+
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
239
|
+
|
|
240
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
241
|
+
return true;
|
|
242
|
+
}
|
|
243
|
+
if (typeof type === 'object' && type !== null) {
|
|
244
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
245
|
+
// This needs to include all possible module reference object
|
|
246
|
+
// types supported by any Flight configuration anywhere since
|
|
247
|
+
// we don't know which Flight build this will end up being used
|
|
248
|
+
// with.
|
|
249
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
250
|
+
return true;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
function typeOf(object) {
|
|
256
|
+
if (typeof object === 'object' && object !== null) {
|
|
257
|
+
var $$typeof = object.$$typeof;
|
|
258
|
+
switch ($$typeof) {
|
|
259
|
+
case REACT_ELEMENT_TYPE:
|
|
260
|
+
var type = object.type;
|
|
261
|
+
switch (type) {
|
|
262
|
+
case REACT_FRAGMENT_TYPE:
|
|
263
|
+
case REACT_PROFILER_TYPE:
|
|
264
|
+
case REACT_STRICT_MODE_TYPE:
|
|
265
|
+
case REACT_SUSPENSE_TYPE:
|
|
266
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
267
|
+
return type;
|
|
268
|
+
default:
|
|
269
|
+
var $$typeofType = type && type.$$typeof;
|
|
270
|
+
switch ($$typeofType) {
|
|
271
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
272
|
+
case REACT_CONTEXT_TYPE:
|
|
273
|
+
case REACT_FORWARD_REF_TYPE:
|
|
274
|
+
case REACT_LAZY_TYPE:
|
|
275
|
+
case REACT_MEMO_TYPE:
|
|
276
|
+
case REACT_PROVIDER_TYPE:
|
|
277
|
+
return $$typeofType;
|
|
278
|
+
default:
|
|
279
|
+
return $$typeof;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
case REACT_PORTAL_TYPE:
|
|
283
|
+
return $$typeof;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return undefined;
|
|
287
|
+
}
|
|
288
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
289
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
290
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
291
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
292
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
293
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
294
|
+
var Memo = REACT_MEMO_TYPE;
|
|
295
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
296
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
297
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
298
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
299
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
300
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
301
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
302
|
+
|
|
303
|
+
function isAsyncMode(object) {
|
|
304
|
+
{
|
|
305
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
306
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
307
|
+
|
|
308
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
function isConcurrentMode(object) {
|
|
314
|
+
{
|
|
315
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
316
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
317
|
+
|
|
318
|
+
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
return false;
|
|
322
|
+
}
|
|
323
|
+
function isContextConsumer(object) {
|
|
324
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
325
|
+
}
|
|
326
|
+
function isContextProvider(object) {
|
|
327
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
328
|
+
}
|
|
329
|
+
function isElement(object) {
|
|
330
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
331
|
+
}
|
|
332
|
+
function isForwardRef(object) {
|
|
333
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
334
|
+
}
|
|
335
|
+
function isFragment(object) {
|
|
336
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
337
|
+
}
|
|
338
|
+
function isLazy(object) {
|
|
339
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
340
|
+
}
|
|
341
|
+
function isMemo(object) {
|
|
342
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
343
|
+
}
|
|
344
|
+
function isPortal(object) {
|
|
345
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
346
|
+
}
|
|
347
|
+
function isProfiler(object) {
|
|
348
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
349
|
+
}
|
|
350
|
+
function isStrictMode(object) {
|
|
351
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
352
|
+
}
|
|
353
|
+
function isSuspense(object) {
|
|
354
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
355
|
+
}
|
|
356
|
+
function isSuspenseList(object) {
|
|
357
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
358
|
+
}
|
|
359
|
+
reactIs_development$1.ContextConsumer = ContextConsumer;
|
|
360
|
+
reactIs_development$1.ContextProvider = ContextProvider;
|
|
361
|
+
reactIs_development$1.Element = Element;
|
|
362
|
+
reactIs_development$1.ForwardRef = ForwardRef;
|
|
363
|
+
reactIs_development$1.Fragment = Fragment;
|
|
364
|
+
reactIs_development$1.Lazy = Lazy;
|
|
365
|
+
reactIs_development$1.Memo = Memo;
|
|
366
|
+
reactIs_development$1.Portal = Portal;
|
|
367
|
+
reactIs_development$1.Profiler = Profiler;
|
|
368
|
+
reactIs_development$1.StrictMode = StrictMode;
|
|
369
|
+
reactIs_development$1.Suspense = Suspense;
|
|
370
|
+
reactIs_development$1.SuspenseList = SuspenseList;
|
|
371
|
+
reactIs_development$1.isAsyncMode = isAsyncMode;
|
|
372
|
+
reactIs_development$1.isConcurrentMode = isConcurrentMode;
|
|
373
|
+
reactIs_development$1.isContextConsumer = isContextConsumer;
|
|
374
|
+
reactIs_development$1.isContextProvider = isContextProvider;
|
|
375
|
+
reactIs_development$1.isElement = isElement;
|
|
376
|
+
reactIs_development$1.isForwardRef = isForwardRef;
|
|
377
|
+
reactIs_development$1.isFragment = isFragment;
|
|
378
|
+
reactIs_development$1.isLazy = isLazy;
|
|
379
|
+
reactIs_development$1.isMemo = isMemo;
|
|
380
|
+
reactIs_development$1.isPortal = isPortal;
|
|
381
|
+
reactIs_development$1.isProfiler = isProfiler;
|
|
382
|
+
reactIs_development$1.isStrictMode = isStrictMode;
|
|
383
|
+
reactIs_development$1.isSuspense = isSuspense;
|
|
384
|
+
reactIs_development$1.isSuspenseList = isSuspenseList;
|
|
385
|
+
reactIs_development$1.isValidElementType = isValidElementType;
|
|
386
|
+
reactIs_development$1.typeOf = typeOf;
|
|
387
|
+
})();
|
|
388
|
+
}
|
|
389
|
+
return reactIs_development$1;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
if (process.env.NODE_ENV === 'production') {
|
|
393
|
+
reactIs$2.exports = requireReactIs_production_min$1();
|
|
394
|
+
} else {
|
|
395
|
+
reactIs$2.exports = requireReactIs_development$1();
|
|
396
|
+
}
|
|
397
|
+
var reactIsExports$1 = reactIs$2.exports;
|
|
398
|
+
|
|
399
|
+
function stylis_min(W) {
|
|
400
|
+
function M(d, c, e, h, a) {
|
|
401
|
+
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
|
|
402
|
+
g = e.charCodeAt(l);
|
|
403
|
+
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
|
404
|
+
if (0 === b + n + v + m) {
|
|
405
|
+
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
|
406
|
+
switch (g) {
|
|
407
|
+
case 32:
|
|
408
|
+
case 9:
|
|
409
|
+
case 59:
|
|
410
|
+
case 13:
|
|
411
|
+
case 10:
|
|
412
|
+
break;
|
|
413
|
+
default:
|
|
414
|
+
f += e.charAt(l);
|
|
415
|
+
}
|
|
416
|
+
g = 59;
|
|
417
|
+
}
|
|
418
|
+
switch (g) {
|
|
419
|
+
case 123:
|
|
420
|
+
f = f.trim();
|
|
421
|
+
q = f.charCodeAt(0);
|
|
422
|
+
k = 1;
|
|
423
|
+
for (t = ++l; l < B;) {
|
|
424
|
+
switch (g = e.charCodeAt(l)) {
|
|
425
|
+
case 123:
|
|
426
|
+
k++;
|
|
427
|
+
break;
|
|
428
|
+
case 125:
|
|
429
|
+
k--;
|
|
430
|
+
break;
|
|
431
|
+
case 47:
|
|
432
|
+
switch (g = e.charCodeAt(l + 1)) {
|
|
433
|
+
case 42:
|
|
434
|
+
case 47:
|
|
435
|
+
a: {
|
|
436
|
+
for (u = l + 1; u < J; ++u) {
|
|
437
|
+
switch (e.charCodeAt(u)) {
|
|
438
|
+
case 47:
|
|
439
|
+
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
|
440
|
+
l = u + 1;
|
|
441
|
+
break a;
|
|
442
|
+
}
|
|
443
|
+
break;
|
|
444
|
+
case 10:
|
|
445
|
+
if (47 === g) {
|
|
446
|
+
l = u + 1;
|
|
447
|
+
break a;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
l = u;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
break;
|
|
455
|
+
case 91:
|
|
456
|
+
g++;
|
|
457
|
+
case 40:
|
|
458
|
+
g++;
|
|
459
|
+
case 34:
|
|
460
|
+
case 39:
|
|
461
|
+
for (; l++ < J && e.charCodeAt(l) !== g;) {}
|
|
462
|
+
}
|
|
463
|
+
if (0 === k) break;
|
|
464
|
+
l++;
|
|
465
|
+
}
|
|
466
|
+
k = e.substring(t, l);
|
|
467
|
+
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
|
468
|
+
switch (q) {
|
|
469
|
+
case 64:
|
|
470
|
+
0 < r && (f = f.replace(N, ''));
|
|
471
|
+
g = f.charCodeAt(1);
|
|
472
|
+
switch (g) {
|
|
473
|
+
case 100:
|
|
474
|
+
case 109:
|
|
475
|
+
case 115:
|
|
476
|
+
case 45:
|
|
477
|
+
r = c;
|
|
478
|
+
break;
|
|
479
|
+
default:
|
|
480
|
+
r = O;
|
|
481
|
+
}
|
|
482
|
+
k = M(c, r, k, g, a + 1);
|
|
483
|
+
t = k.length;
|
|
484
|
+
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
|
485
|
+
if (0 < t) switch (g) {
|
|
486
|
+
case 115:
|
|
487
|
+
f = f.replace(da, ea);
|
|
488
|
+
case 100:
|
|
489
|
+
case 109:
|
|
490
|
+
case 45:
|
|
491
|
+
k = f + '{' + k + '}';
|
|
492
|
+
break;
|
|
493
|
+
case 107:
|
|
494
|
+
f = f.replace(fa, '$1 $2');
|
|
495
|
+
k = f + '{' + k + '}';
|
|
496
|
+
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
|
497
|
+
break;
|
|
498
|
+
default:
|
|
499
|
+
k = f + k, 112 === h && (k = (p += k, ''));
|
|
500
|
+
} else k = '';
|
|
501
|
+
break;
|
|
502
|
+
default:
|
|
503
|
+
k = M(c, X(c, f, I), k, h, a + 1);
|
|
504
|
+
}
|
|
505
|
+
F += k;
|
|
506
|
+
k = I = r = u = q = 0;
|
|
507
|
+
f = '';
|
|
508
|
+
g = e.charCodeAt(++l);
|
|
509
|
+
break;
|
|
510
|
+
case 125:
|
|
511
|
+
case 59:
|
|
512
|
+
f = (0 < r ? f.replace(N, '') : f).trim();
|
|
513
|
+
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
|
514
|
+
case 0:
|
|
515
|
+
break;
|
|
516
|
+
case 64:
|
|
517
|
+
if (105 === g || 99 === g) {
|
|
518
|
+
G += f + e.charAt(l);
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
default:
|
|
522
|
+
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
|
523
|
+
}
|
|
524
|
+
I = r = u = q = 0;
|
|
525
|
+
f = '';
|
|
526
|
+
g = e.charCodeAt(++l);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
switch (g) {
|
|
530
|
+
case 13:
|
|
531
|
+
case 10:
|
|
532
|
+
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
|
533
|
+
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
|
534
|
+
z = 1;
|
|
535
|
+
D++;
|
|
536
|
+
break;
|
|
537
|
+
case 59:
|
|
538
|
+
case 125:
|
|
539
|
+
if (0 === b + n + v + m) {
|
|
540
|
+
z++;
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
default:
|
|
544
|
+
z++;
|
|
545
|
+
y = e.charAt(l);
|
|
546
|
+
switch (g) {
|
|
547
|
+
case 9:
|
|
548
|
+
case 32:
|
|
549
|
+
if (0 === n + m + b) switch (x) {
|
|
550
|
+
case 44:
|
|
551
|
+
case 58:
|
|
552
|
+
case 9:
|
|
553
|
+
case 32:
|
|
554
|
+
y = '';
|
|
555
|
+
break;
|
|
556
|
+
default:
|
|
557
|
+
32 !== g && (y = ' ');
|
|
558
|
+
}
|
|
559
|
+
break;
|
|
560
|
+
case 0:
|
|
561
|
+
y = '\\0';
|
|
562
|
+
break;
|
|
563
|
+
case 12:
|
|
564
|
+
y = '\\f';
|
|
565
|
+
break;
|
|
566
|
+
case 11:
|
|
567
|
+
y = '\\v';
|
|
568
|
+
break;
|
|
569
|
+
case 38:
|
|
570
|
+
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
|
571
|
+
break;
|
|
572
|
+
case 108:
|
|
573
|
+
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
|
574
|
+
case 2:
|
|
575
|
+
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
|
576
|
+
case 8:
|
|
577
|
+
111 === K && (E = K);
|
|
578
|
+
}
|
|
579
|
+
break;
|
|
580
|
+
case 58:
|
|
581
|
+
0 === n + b + m && (u = l);
|
|
582
|
+
break;
|
|
583
|
+
case 44:
|
|
584
|
+
0 === b + v + n + m && (r = 1, y += '\r');
|
|
585
|
+
break;
|
|
586
|
+
case 34:
|
|
587
|
+
case 39:
|
|
588
|
+
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
|
589
|
+
break;
|
|
590
|
+
case 91:
|
|
591
|
+
0 === n + b + v && m++;
|
|
592
|
+
break;
|
|
593
|
+
case 93:
|
|
594
|
+
0 === n + b + v && m--;
|
|
595
|
+
break;
|
|
596
|
+
case 41:
|
|
597
|
+
0 === n + b + m && v--;
|
|
598
|
+
break;
|
|
599
|
+
case 40:
|
|
600
|
+
if (0 === n + b + m) {
|
|
601
|
+
if (0 === q) switch (2 * x + 3 * K) {
|
|
602
|
+
case 533:
|
|
603
|
+
break;
|
|
604
|
+
default:
|
|
605
|
+
q = 1;
|
|
606
|
+
}
|
|
607
|
+
v++;
|
|
608
|
+
}
|
|
609
|
+
break;
|
|
610
|
+
case 64:
|
|
611
|
+
0 === b + v + n + m + u + k && (k = 1);
|
|
612
|
+
break;
|
|
613
|
+
case 42:
|
|
614
|
+
case 47:
|
|
615
|
+
if (!(0 < n + m + v)) switch (b) {
|
|
616
|
+
case 0:
|
|
617
|
+
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
|
618
|
+
case 235:
|
|
619
|
+
b = 47;
|
|
620
|
+
break;
|
|
621
|
+
case 220:
|
|
622
|
+
t = l, b = 42;
|
|
623
|
+
}
|
|
624
|
+
break;
|
|
625
|
+
case 42:
|
|
626
|
+
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
0 === b && (f += y);
|
|
630
|
+
}
|
|
631
|
+
K = x;
|
|
632
|
+
x = g;
|
|
633
|
+
l++;
|
|
634
|
+
}
|
|
635
|
+
t = p.length;
|
|
636
|
+
if (0 < t) {
|
|
637
|
+
r = c;
|
|
638
|
+
if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
|
|
639
|
+
p = r.join(',') + '{' + p + '}';
|
|
640
|
+
if (0 !== w * E) {
|
|
641
|
+
2 !== w || L(p, 2) || (E = 0);
|
|
642
|
+
switch (E) {
|
|
643
|
+
case 111:
|
|
644
|
+
p = p.replace(ha, ':-moz-$1') + p;
|
|
645
|
+
break;
|
|
646
|
+
case 112:
|
|
647
|
+
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
|
648
|
+
}
|
|
649
|
+
E = 0;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return G + p + F;
|
|
653
|
+
}
|
|
654
|
+
function X(d, c, e) {
|
|
655
|
+
var h = c.trim().split(ia);
|
|
656
|
+
c = h;
|
|
657
|
+
var a = h.length,
|
|
658
|
+
m = d.length;
|
|
659
|
+
switch (m) {
|
|
660
|
+
case 0:
|
|
661
|
+
case 1:
|
|
662
|
+
var b = 0;
|
|
663
|
+
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
|
664
|
+
c[b] = Z(d, c[b], e).trim();
|
|
665
|
+
}
|
|
666
|
+
break;
|
|
667
|
+
default:
|
|
668
|
+
var v = b = 0;
|
|
669
|
+
for (c = []; b < a; ++b) {
|
|
670
|
+
for (var n = 0; n < m; ++n) {
|
|
671
|
+
c[v++] = Z(d[n] + ' ', h[b], e).trim();
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
return c;
|
|
676
|
+
}
|
|
677
|
+
function Z(d, c, e) {
|
|
678
|
+
var h = c.charCodeAt(0);
|
|
679
|
+
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
|
680
|
+
switch (h) {
|
|
681
|
+
case 38:
|
|
682
|
+
return c.replace(F, '$1' + d.trim());
|
|
683
|
+
case 58:
|
|
684
|
+
return d.trim() + c.replace(F, '$1' + d.trim());
|
|
685
|
+
default:
|
|
686
|
+
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
|
687
|
+
}
|
|
688
|
+
return d + c;
|
|
689
|
+
}
|
|
690
|
+
function P(d, c, e, h) {
|
|
691
|
+
var a = d + ';',
|
|
692
|
+
m = 2 * c + 3 * e + 4 * h;
|
|
693
|
+
if (944 === m) {
|
|
694
|
+
d = a.indexOf(':', 9) + 1;
|
|
695
|
+
var b = a.substring(d, a.length - 1).trim();
|
|
696
|
+
b = a.substring(0, d).trim() + b + ';';
|
|
697
|
+
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
|
698
|
+
}
|
|
699
|
+
if (0 === w || 2 === w && !L(a, 1)) return a;
|
|
700
|
+
switch (m) {
|
|
701
|
+
case 1015:
|
|
702
|
+
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
|
703
|
+
case 951:
|
|
704
|
+
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
|
705
|
+
case 963:
|
|
706
|
+
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
|
707
|
+
case 1009:
|
|
708
|
+
if (100 !== a.charCodeAt(4)) break;
|
|
709
|
+
case 969:
|
|
710
|
+
case 942:
|
|
711
|
+
return '-webkit-' + a + a;
|
|
712
|
+
case 978:
|
|
713
|
+
return '-webkit-' + a + '-moz-' + a + a;
|
|
714
|
+
case 1019:
|
|
715
|
+
case 983:
|
|
716
|
+
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
|
717
|
+
case 883:
|
|
718
|
+
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
|
719
|
+
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
|
720
|
+
break;
|
|
721
|
+
case 932:
|
|
722
|
+
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
|
723
|
+
case 103:
|
|
724
|
+
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
|
725
|
+
case 115:
|
|
726
|
+
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
|
727
|
+
case 98:
|
|
728
|
+
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
|
729
|
+
}
|
|
730
|
+
return '-webkit-' + a + '-ms-' + a + a;
|
|
731
|
+
case 964:
|
|
732
|
+
return '-webkit-' + a + '-ms-flex-' + a + a;
|
|
733
|
+
case 1023:
|
|
734
|
+
if (99 !== a.charCodeAt(8)) break;
|
|
735
|
+
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
|
736
|
+
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
|
737
|
+
case 1005:
|
|
738
|
+
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
|
739
|
+
case 1e3:
|
|
740
|
+
b = a.substring(13).trim();
|
|
741
|
+
c = b.indexOf('-') + 1;
|
|
742
|
+
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
|
743
|
+
case 226:
|
|
744
|
+
b = a.replace(G, 'tb');
|
|
745
|
+
break;
|
|
746
|
+
case 232:
|
|
747
|
+
b = a.replace(G, 'tb-rl');
|
|
748
|
+
break;
|
|
749
|
+
case 220:
|
|
750
|
+
b = a.replace(G, 'lr');
|
|
751
|
+
break;
|
|
752
|
+
default:
|
|
753
|
+
return a;
|
|
754
|
+
}
|
|
755
|
+
return '-webkit-' + a + '-ms-' + b + a;
|
|
756
|
+
case 1017:
|
|
757
|
+
if (-1 === a.indexOf('sticky', 9)) break;
|
|
758
|
+
case 975:
|
|
759
|
+
c = (a = d).length - 10;
|
|
760
|
+
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
|
761
|
+
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
|
762
|
+
case 203:
|
|
763
|
+
if (111 > b.charCodeAt(8)) break;
|
|
764
|
+
case 115:
|
|
765
|
+
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
|
766
|
+
break;
|
|
767
|
+
case 207:
|
|
768
|
+
case 102:
|
|
769
|
+
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
|
770
|
+
}
|
|
771
|
+
return a + ';';
|
|
772
|
+
case 938:
|
|
773
|
+
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
|
774
|
+
case 105:
|
|
775
|
+
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
|
776
|
+
case 115:
|
|
777
|
+
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
|
778
|
+
default:
|
|
779
|
+
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
|
780
|
+
}
|
|
781
|
+
break;
|
|
782
|
+
case 973:
|
|
783
|
+
case 989:
|
|
784
|
+
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
|
785
|
+
case 931:
|
|
786
|
+
case 953:
|
|
787
|
+
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
|
788
|
+
break;
|
|
789
|
+
case 962:
|
|
790
|
+
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
|
791
|
+
}
|
|
792
|
+
return a;
|
|
793
|
+
}
|
|
794
|
+
function L(d, c) {
|
|
795
|
+
var e = d.indexOf(1 === c ? ':' : '{'),
|
|
796
|
+
h = d.substring(0, 3 !== c ? e : 10);
|
|
797
|
+
e = d.substring(e + 1, d.length - 1);
|
|
798
|
+
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
|
799
|
+
}
|
|
800
|
+
function ea(d, c) {
|
|
801
|
+
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
|
802
|
+
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
|
803
|
+
}
|
|
804
|
+
function H(d, c, e, h, a, m, b, v, n, q) {
|
|
805
|
+
for (var g = 0, x = c, w; g < A; ++g) {
|
|
806
|
+
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
|
807
|
+
case void 0:
|
|
808
|
+
case !1:
|
|
809
|
+
case !0:
|
|
810
|
+
case null:
|
|
811
|
+
break;
|
|
812
|
+
default:
|
|
813
|
+
x = w;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
if (x !== c) return x;
|
|
817
|
+
}
|
|
818
|
+
function T(d) {
|
|
819
|
+
switch (d) {
|
|
820
|
+
case void 0:
|
|
821
|
+
case null:
|
|
822
|
+
A = S.length = 0;
|
|
823
|
+
break;
|
|
824
|
+
default:
|
|
825
|
+
if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
|
|
826
|
+
T(d[c]);
|
|
827
|
+
} else Y = !!d | 0;
|
|
828
|
+
}
|
|
829
|
+
return T;
|
|
830
|
+
}
|
|
831
|
+
function U(d) {
|
|
832
|
+
d = d.prefix;
|
|
833
|
+
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
|
834
|
+
return U;
|
|
835
|
+
}
|
|
836
|
+
function B(d, c) {
|
|
837
|
+
var e = d;
|
|
838
|
+
33 > e.charCodeAt(0) && (e = e.trim());
|
|
839
|
+
V = e;
|
|
840
|
+
e = [V];
|
|
841
|
+
if (0 < A) {
|
|
842
|
+
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
|
843
|
+
void 0 !== h && 'string' === typeof h && (c = h);
|
|
844
|
+
}
|
|
845
|
+
var a = M(O, e, c, 0, 0);
|
|
846
|
+
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
|
847
|
+
V = '';
|
|
848
|
+
E = 0;
|
|
849
|
+
z = D = 1;
|
|
850
|
+
return a;
|
|
851
|
+
}
|
|
852
|
+
var ca = /^\0+/g,
|
|
853
|
+
N = /[\0\r\f]/g,
|
|
854
|
+
aa = /: */g,
|
|
855
|
+
ka = /zoo|gra/,
|
|
856
|
+
ma = /([,: ])(transform)/g,
|
|
857
|
+
ia = /,\r+?/g,
|
|
858
|
+
F = /([\t\r\n ])*\f?&/g,
|
|
859
|
+
fa = /@(k\w+)\s*(\S*)\s*/,
|
|
860
|
+
Q = /::(place)/g,
|
|
861
|
+
ha = /:(read-only)/g,
|
|
862
|
+
G = /[svh]\w+-[tblr]{2}/,
|
|
863
|
+
da = /\(\s*(.*)\s*\)/g,
|
|
864
|
+
oa = /([\s\S]*?);/g,
|
|
865
|
+
ba = /-self|flex-/g,
|
|
866
|
+
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
|
867
|
+
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
|
868
|
+
ja = /([^-])(image-set\()/,
|
|
869
|
+
z = 1,
|
|
870
|
+
D = 1,
|
|
871
|
+
E = 0,
|
|
872
|
+
w = 1,
|
|
873
|
+
O = [],
|
|
874
|
+
S = [],
|
|
875
|
+
A = 0,
|
|
876
|
+
R = null,
|
|
877
|
+
Y = 0,
|
|
878
|
+
V = '';
|
|
879
|
+
B.use = T;
|
|
880
|
+
B.set = U;
|
|
881
|
+
void 0 !== W && U(W);
|
|
882
|
+
return B;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
var unitlessKeys = {
|
|
886
|
+
animationIterationCount: 1,
|
|
887
|
+
borderImageOutset: 1,
|
|
888
|
+
borderImageSlice: 1,
|
|
889
|
+
borderImageWidth: 1,
|
|
890
|
+
boxFlex: 1,
|
|
891
|
+
boxFlexGroup: 1,
|
|
892
|
+
boxOrdinalGroup: 1,
|
|
893
|
+
columnCount: 1,
|
|
894
|
+
columns: 1,
|
|
895
|
+
flex: 1,
|
|
896
|
+
flexGrow: 1,
|
|
897
|
+
flexPositive: 1,
|
|
898
|
+
flexShrink: 1,
|
|
899
|
+
flexNegative: 1,
|
|
900
|
+
flexOrder: 1,
|
|
901
|
+
gridRow: 1,
|
|
902
|
+
gridRowEnd: 1,
|
|
903
|
+
gridRowSpan: 1,
|
|
904
|
+
gridRowStart: 1,
|
|
905
|
+
gridColumn: 1,
|
|
906
|
+
gridColumnEnd: 1,
|
|
907
|
+
gridColumnSpan: 1,
|
|
908
|
+
gridColumnStart: 1,
|
|
909
|
+
msGridRow: 1,
|
|
910
|
+
msGridRowSpan: 1,
|
|
911
|
+
msGridColumn: 1,
|
|
912
|
+
msGridColumnSpan: 1,
|
|
913
|
+
fontWeight: 1,
|
|
914
|
+
lineHeight: 1,
|
|
915
|
+
opacity: 1,
|
|
916
|
+
order: 1,
|
|
917
|
+
orphans: 1,
|
|
918
|
+
tabSize: 1,
|
|
919
|
+
widows: 1,
|
|
920
|
+
zIndex: 1,
|
|
921
|
+
zoom: 1,
|
|
922
|
+
WebkitLineClamp: 1,
|
|
923
|
+
// SVG-related properties
|
|
924
|
+
fillOpacity: 1,
|
|
925
|
+
floodOpacity: 1,
|
|
926
|
+
stopOpacity: 1,
|
|
927
|
+
strokeDasharray: 1,
|
|
928
|
+
strokeDashoffset: 1,
|
|
929
|
+
strokeMiterlimit: 1,
|
|
930
|
+
strokeOpacity: 1,
|
|
931
|
+
strokeWidth: 1
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
function memoize(fn) {
|
|
935
|
+
var cache = Object.create(null);
|
|
936
|
+
return function (arg) {
|
|
937
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
938
|
+
return cache[arg];
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
var reactPropsRegex = /^((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|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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
943
|
+
|
|
944
|
+
var isPropValid = /* #__PURE__ */memoize(function (prop) {
|
|
945
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
946
|
+
/* o */ && prop.charCodeAt(1) === 110
|
|
947
|
+
/* n */ && prop.charCodeAt(2) < 91;
|
|
948
|
+
}
|
|
949
|
+
/* Z+1 */);
|
|
950
|
+
|
|
951
|
+
var reactIs$1 = {exports: {}};
|
|
952
|
+
|
|
953
|
+
var reactIs_production_min = {};
|
|
954
|
+
|
|
955
|
+
/** @license React v16.13.1
|
|
956
|
+
* react-is.production.min.js
|
|
957
|
+
*
|
|
958
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
959
|
+
*
|
|
960
|
+
* This source code is licensed under the MIT license found in the
|
|
961
|
+
* LICENSE file in the root directory of this source tree.
|
|
962
|
+
*/
|
|
963
|
+
var hasRequiredReactIs_production_min;
|
|
964
|
+
function requireReactIs_production_min() {
|
|
965
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
966
|
+
hasRequiredReactIs_production_min = 1;
|
|
967
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
|
968
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
969
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
|
970
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
|
971
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
972
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
|
973
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
|
974
|
+
k = b ? Symbol.for("react.context") : 60110,
|
|
975
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
|
976
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
|
977
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
|
978
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
|
979
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
|
980
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
|
981
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
|
982
|
+
v = b ? Symbol.for("react.block") : 60121,
|
|
983
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
|
984
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
|
985
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
|
986
|
+
function z(a) {
|
|
987
|
+
if ("object" === typeof a && null !== a) {
|
|
988
|
+
var u = a.$$typeof;
|
|
989
|
+
switch (u) {
|
|
990
|
+
case c:
|
|
991
|
+
switch (a = a.type, a) {
|
|
992
|
+
case l:
|
|
993
|
+
case m:
|
|
994
|
+
case e:
|
|
995
|
+
case g:
|
|
996
|
+
case f:
|
|
997
|
+
case p:
|
|
998
|
+
return a;
|
|
999
|
+
default:
|
|
1000
|
+
switch (a = a && a.$$typeof, a) {
|
|
1001
|
+
case k:
|
|
1002
|
+
case n:
|
|
1003
|
+
case t:
|
|
1004
|
+
case r:
|
|
1005
|
+
case h:
|
|
1006
|
+
return a;
|
|
1007
|
+
default:
|
|
1008
|
+
return u;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
case d:
|
|
1012
|
+
return u;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
function A(a) {
|
|
1017
|
+
return z(a) === m;
|
|
1018
|
+
}
|
|
1019
|
+
reactIs_production_min.AsyncMode = l;
|
|
1020
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
1021
|
+
reactIs_production_min.ContextConsumer = k;
|
|
1022
|
+
reactIs_production_min.ContextProvider = h;
|
|
1023
|
+
reactIs_production_min.Element = c;
|
|
1024
|
+
reactIs_production_min.ForwardRef = n;
|
|
1025
|
+
reactIs_production_min.Fragment = e;
|
|
1026
|
+
reactIs_production_min.Lazy = t;
|
|
1027
|
+
reactIs_production_min.Memo = r;
|
|
1028
|
+
reactIs_production_min.Portal = d;
|
|
1029
|
+
reactIs_production_min.Profiler = g;
|
|
1030
|
+
reactIs_production_min.StrictMode = f;
|
|
1031
|
+
reactIs_production_min.Suspense = p;
|
|
1032
|
+
reactIs_production_min.isAsyncMode = function (a) {
|
|
1033
|
+
return A(a) || z(a) === l;
|
|
1034
|
+
};
|
|
1035
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
1036
|
+
reactIs_production_min.isContextConsumer = function (a) {
|
|
1037
|
+
return z(a) === k;
|
|
1038
|
+
};
|
|
1039
|
+
reactIs_production_min.isContextProvider = function (a) {
|
|
1040
|
+
return z(a) === h;
|
|
1041
|
+
};
|
|
1042
|
+
reactIs_production_min.isElement = function (a) {
|
|
1043
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
1044
|
+
};
|
|
1045
|
+
reactIs_production_min.isForwardRef = function (a) {
|
|
1046
|
+
return z(a) === n;
|
|
1047
|
+
};
|
|
1048
|
+
reactIs_production_min.isFragment = function (a) {
|
|
1049
|
+
return z(a) === e;
|
|
1050
|
+
};
|
|
1051
|
+
reactIs_production_min.isLazy = function (a) {
|
|
1052
|
+
return z(a) === t;
|
|
1053
|
+
};
|
|
1054
|
+
reactIs_production_min.isMemo = function (a) {
|
|
1055
|
+
return z(a) === r;
|
|
1056
|
+
};
|
|
1057
|
+
reactIs_production_min.isPortal = function (a) {
|
|
1058
|
+
return z(a) === d;
|
|
1059
|
+
};
|
|
1060
|
+
reactIs_production_min.isProfiler = function (a) {
|
|
1061
|
+
return z(a) === g;
|
|
1062
|
+
};
|
|
1063
|
+
reactIs_production_min.isStrictMode = function (a) {
|
|
1064
|
+
return z(a) === f;
|
|
1065
|
+
};
|
|
1066
|
+
reactIs_production_min.isSuspense = function (a) {
|
|
1067
|
+
return z(a) === p;
|
|
1068
|
+
};
|
|
1069
|
+
reactIs_production_min.isValidElementType = function (a) {
|
|
1070
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
1071
|
+
};
|
|
1072
|
+
reactIs_production_min.typeOf = z;
|
|
1073
|
+
return reactIs_production_min;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
var reactIs_development = {};
|
|
1077
|
+
|
|
1078
|
+
/** @license React v16.13.1
|
|
1079
|
+
* react-is.development.js
|
|
1080
|
+
*
|
|
1081
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1082
|
+
*
|
|
1083
|
+
* This source code is licensed under the MIT license found in the
|
|
1084
|
+
* LICENSE file in the root directory of this source tree.
|
|
1085
|
+
*/
|
|
1086
|
+
var hasRequiredReactIs_development;
|
|
1087
|
+
function requireReactIs_development() {
|
|
1088
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
1089
|
+
hasRequiredReactIs_development = 1;
|
|
1090
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1091
|
+
(function () {
|
|
1092
|
+
|
|
1093
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
1094
|
+
// nor polyfill, then a plain number is used for performance.
|
|
1095
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
1096
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
1097
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
1098
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
1099
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
1100
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
1101
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
1102
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
1103
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
1104
|
+
|
|
1105
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
1106
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
1107
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
1108
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
1109
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
1110
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
1111
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
1112
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
1113
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
1114
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
1115
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
1116
|
+
function isValidElementType(type) {
|
|
1117
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
1118
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1119
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1120
|
+
}
|
|
1121
|
+
function typeOf(object) {
|
|
1122
|
+
if (typeof object === 'object' && object !== null) {
|
|
1123
|
+
var $$typeof = object.$$typeof;
|
|
1124
|
+
switch ($$typeof) {
|
|
1125
|
+
case REACT_ELEMENT_TYPE:
|
|
1126
|
+
var type = object.type;
|
|
1127
|
+
switch (type) {
|
|
1128
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
1129
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
1130
|
+
case REACT_FRAGMENT_TYPE:
|
|
1131
|
+
case REACT_PROFILER_TYPE:
|
|
1132
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1133
|
+
case REACT_SUSPENSE_TYPE:
|
|
1134
|
+
return type;
|
|
1135
|
+
default:
|
|
1136
|
+
var $$typeofType = type && type.$$typeof;
|
|
1137
|
+
switch ($$typeofType) {
|
|
1138
|
+
case REACT_CONTEXT_TYPE:
|
|
1139
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1140
|
+
case REACT_LAZY_TYPE:
|
|
1141
|
+
case REACT_MEMO_TYPE:
|
|
1142
|
+
case REACT_PROVIDER_TYPE:
|
|
1143
|
+
return $$typeofType;
|
|
1144
|
+
default:
|
|
1145
|
+
return $$typeof;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
case REACT_PORTAL_TYPE:
|
|
1149
|
+
return $$typeof;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return undefined;
|
|
1153
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
1154
|
+
|
|
1155
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
1156
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1157
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1158
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1159
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
1160
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1161
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1162
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
1163
|
+
var Memo = REACT_MEMO_TYPE;
|
|
1164
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
1165
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
1166
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1167
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1168
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
1169
|
+
|
|
1170
|
+
function isAsyncMode(object) {
|
|
1171
|
+
{
|
|
1172
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1173
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1174
|
+
|
|
1175
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
1179
|
+
}
|
|
1180
|
+
function isConcurrentMode(object) {
|
|
1181
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
1182
|
+
}
|
|
1183
|
+
function isContextConsumer(object) {
|
|
1184
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1185
|
+
}
|
|
1186
|
+
function isContextProvider(object) {
|
|
1187
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1188
|
+
}
|
|
1189
|
+
function isElement(object) {
|
|
1190
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1191
|
+
}
|
|
1192
|
+
function isForwardRef(object) {
|
|
1193
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1194
|
+
}
|
|
1195
|
+
function isFragment(object) {
|
|
1196
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1197
|
+
}
|
|
1198
|
+
function isLazy(object) {
|
|
1199
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1200
|
+
}
|
|
1201
|
+
function isMemo(object) {
|
|
1202
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1203
|
+
}
|
|
1204
|
+
function isPortal(object) {
|
|
1205
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1206
|
+
}
|
|
1207
|
+
function isProfiler(object) {
|
|
1208
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1209
|
+
}
|
|
1210
|
+
function isStrictMode(object) {
|
|
1211
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1212
|
+
}
|
|
1213
|
+
function isSuspense(object) {
|
|
1214
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1215
|
+
}
|
|
1216
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
1217
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
1218
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1219
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
1220
|
+
reactIs_development.Element = Element;
|
|
1221
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
1222
|
+
reactIs_development.Fragment = Fragment;
|
|
1223
|
+
reactIs_development.Lazy = Lazy;
|
|
1224
|
+
reactIs_development.Memo = Memo;
|
|
1225
|
+
reactIs_development.Portal = Portal;
|
|
1226
|
+
reactIs_development.Profiler = Profiler;
|
|
1227
|
+
reactIs_development.StrictMode = StrictMode;
|
|
1228
|
+
reactIs_development.Suspense = Suspense;
|
|
1229
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1230
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1231
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1232
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
1233
|
+
reactIs_development.isElement = isElement;
|
|
1234
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
1235
|
+
reactIs_development.isFragment = isFragment;
|
|
1236
|
+
reactIs_development.isLazy = isLazy;
|
|
1237
|
+
reactIs_development.isMemo = isMemo;
|
|
1238
|
+
reactIs_development.isPortal = isPortal;
|
|
1239
|
+
reactIs_development.isProfiler = isProfiler;
|
|
1240
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
1241
|
+
reactIs_development.isSuspense = isSuspense;
|
|
1242
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
1243
|
+
reactIs_development.typeOf = typeOf;
|
|
1244
|
+
})();
|
|
1245
|
+
}
|
|
1246
|
+
return reactIs_development;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
if (process.env.NODE_ENV === 'production') {
|
|
1250
|
+
reactIs$1.exports = requireReactIs_production_min();
|
|
1251
|
+
} else {
|
|
1252
|
+
reactIs$1.exports = requireReactIs_development();
|
|
1253
|
+
}
|
|
1254
|
+
var reactIsExports = reactIs$1.exports;
|
|
1255
|
+
|
|
1256
|
+
var reactIs = reactIsExports;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Copyright 2015, Yahoo! Inc.
|
|
1260
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
1261
|
+
*/
|
|
1262
|
+
var REACT_STATICS = {
|
|
1263
|
+
childContextTypes: true,
|
|
1264
|
+
contextType: true,
|
|
1265
|
+
contextTypes: true,
|
|
1266
|
+
defaultProps: true,
|
|
1267
|
+
displayName: true,
|
|
1268
|
+
getDefaultProps: true,
|
|
1269
|
+
getDerivedStateFromError: true,
|
|
1270
|
+
getDerivedStateFromProps: true,
|
|
1271
|
+
mixins: true,
|
|
1272
|
+
propTypes: true,
|
|
1273
|
+
type: true
|
|
1274
|
+
};
|
|
1275
|
+
var KNOWN_STATICS = {
|
|
1276
|
+
name: true,
|
|
1277
|
+
length: true,
|
|
1278
|
+
prototype: true,
|
|
1279
|
+
caller: true,
|
|
1280
|
+
callee: true,
|
|
1281
|
+
arguments: true,
|
|
1282
|
+
arity: true
|
|
1283
|
+
};
|
|
1284
|
+
var FORWARD_REF_STATICS = {
|
|
1285
|
+
'$$typeof': true,
|
|
1286
|
+
render: true,
|
|
1287
|
+
defaultProps: true,
|
|
1288
|
+
displayName: true,
|
|
1289
|
+
propTypes: true
|
|
1290
|
+
};
|
|
1291
|
+
var MEMO_STATICS = {
|
|
1292
|
+
'$$typeof': true,
|
|
1293
|
+
compare: true,
|
|
1294
|
+
defaultProps: true,
|
|
1295
|
+
displayName: true,
|
|
1296
|
+
propTypes: true,
|
|
1297
|
+
type: true
|
|
1298
|
+
};
|
|
1299
|
+
var TYPE_STATICS = {};
|
|
1300
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
1301
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
1302
|
+
function getStatics(component) {
|
|
1303
|
+
// React v16.11 and below
|
|
1304
|
+
if (reactIs.isMemo(component)) {
|
|
1305
|
+
return MEMO_STATICS;
|
|
1306
|
+
} // React v16.12 and above
|
|
1307
|
+
|
|
1308
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
1309
|
+
}
|
|
1310
|
+
var defineProperty = Object.defineProperty;
|
|
1311
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
1312
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
1313
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1314
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
1315
|
+
var objectPrototype = Object.prototype;
|
|
1316
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
1317
|
+
if (typeof sourceComponent !== 'string') {
|
|
1318
|
+
// don't hoist over string (html) components
|
|
1319
|
+
if (objectPrototype) {
|
|
1320
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
1321
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
1322
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
1326
|
+
if (getOwnPropertySymbols) {
|
|
1327
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
1328
|
+
}
|
|
1329
|
+
var targetStatics = getStatics(targetComponent);
|
|
1330
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
1331
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
1332
|
+
var key = keys[i];
|
|
1333
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
1334
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
1335
|
+
try {
|
|
1336
|
+
// Avoid failures from read-only properties
|
|
1337
|
+
defineProperty(targetComponent, key, descriptor);
|
|
1338
|
+
} catch (e) {}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
return targetComponent;
|
|
1343
|
+
}
|
|
1344
|
+
var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
1345
|
+
var m = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs);
|
|
1346
|
+
|
|
1347
|
+
function y() {
|
|
1348
|
+
return (y = Object.assign || function (e) {
|
|
1349
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1350
|
+
var n = arguments[t];
|
|
1351
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1352
|
+
}
|
|
1353
|
+
return e;
|
|
1354
|
+
}).apply(this, arguments);
|
|
1355
|
+
}
|
|
1356
|
+
var v = function (e, t) {
|
|
1357
|
+
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1358
|
+
return n;
|
|
1359
|
+
},
|
|
1360
|
+
g = function (t) {
|
|
1361
|
+
return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
|
|
1362
|
+
},
|
|
1363
|
+
S = Object.freeze([]),
|
|
1364
|
+
w = Object.freeze({});
|
|
1365
|
+
function E(e) {
|
|
1366
|
+
return "function" == typeof e;
|
|
1367
|
+
}
|
|
1368
|
+
function b(e) {
|
|
1369
|
+
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
1370
|
+
}
|
|
1371
|
+
function _(e) {
|
|
1372
|
+
return e && "string" == typeof e.styledComponentId;
|
|
1373
|
+
}
|
|
1374
|
+
var N = "undefined" != typeof process && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
1375
|
+
C = "undefined" != typeof window && "HTMLElement" in window,
|
|
1376
|
+
I = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV),
|
|
1377
|
+
O = "production" !== process.env.NODE_ENV ? {
|
|
1378
|
+
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1379
|
+
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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
1380
|
+
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1381
|
+
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
1382
|
+
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
1383
|
+
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
1384
|
+
7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
|
|
1385
|
+
8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
|
|
1386
|
+
9: "Missing document `<head>`\n\n",
|
|
1387
|
+
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\n\n",
|
|
1388
|
+
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.\n\n",
|
|
1389
|
+
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",
|
|
1390
|
+
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.\n\n",
|
|
1391
|
+
14: 'ThemeProvider: "theme" prop is required.\n\n',
|
|
1392
|
+
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",
|
|
1393
|
+
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
1394
|
+
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
|
|
1395
|
+
} : {};
|
|
1396
|
+
function R() {
|
|
1397
|
+
for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
|
|
1398
|
+
return t.forEach(function (t) {
|
|
1399
|
+
e = e.replace(/%[a-z]/, t);
|
|
1400
|
+
}), e;
|
|
1401
|
+
}
|
|
1402
|
+
function D(e) {
|
|
1403
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1404
|
+
throw "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")) : new Error(R.apply(void 0, [O[e]].concat(n)).trim());
|
|
1405
|
+
}
|
|
1406
|
+
var j = function () {
|
|
1407
|
+
function e(e) {
|
|
1408
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1409
|
+
}
|
|
1410
|
+
var t = e.prototype;
|
|
1411
|
+
return t.indexOfGroup = function (e) {
|
|
1412
|
+
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1413
|
+
return t;
|
|
1414
|
+
}, t.insertRules = function (e, t) {
|
|
1415
|
+
if (e >= this.groupSizes.length) {
|
|
1416
|
+
for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && D(16, "" + e);
|
|
1417
|
+
this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
|
|
1418
|
+
for (var s = r; s < o; s++) this.groupSizes[s] = 0;
|
|
1419
|
+
}
|
|
1420
|
+
for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
|
|
1421
|
+
}, t.clearGroup = function (e) {
|
|
1422
|
+
if (e < this.length) {
|
|
1423
|
+
var t = this.groupSizes[e],
|
|
1424
|
+
n = this.indexOfGroup(e),
|
|
1425
|
+
r = n + t;
|
|
1426
|
+
this.groupSizes[e] = 0;
|
|
1427
|
+
for (var o = n; o < r; o++) this.tag.deleteRule(n);
|
|
1428
|
+
}
|
|
1429
|
+
}, t.getGroup = function (e) {
|
|
1430
|
+
var t = "";
|
|
1431
|
+
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1432
|
+
for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
|
|
1433
|
+
return t;
|
|
1434
|
+
}, e;
|
|
1435
|
+
}(),
|
|
1436
|
+
T = new Map(),
|
|
1437
|
+
x = new Map(),
|
|
1438
|
+
k = 1,
|
|
1439
|
+
V = function (e) {
|
|
1440
|
+
if (T.has(e)) return T.get(e);
|
|
1441
|
+
for (; x.has(k);) k++;
|
|
1442
|
+
var t = k++;
|
|
1443
|
+
return "production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1 << 30) && D(16, "" + t), T.set(e, t), x.set(t, e), t;
|
|
1444
|
+
},
|
|
1445
|
+
z = function (e) {
|
|
1446
|
+
return x.get(e);
|
|
1447
|
+
},
|
|
1448
|
+
B = function (e, t) {
|
|
1449
|
+
t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
|
|
1450
|
+
},
|
|
1451
|
+
M = "style[" + N + '][data-styled-version="5.3.6"]',
|
|
1452
|
+
G = new RegExp("^" + N + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
|
|
1453
|
+
L = function (e, t, n) {
|
|
1454
|
+
for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
|
|
1455
|
+
},
|
|
1456
|
+
F = function (e, t) {
|
|
1457
|
+
for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
|
|
1458
|
+
var i = n[o].trim();
|
|
1459
|
+
if (i) {
|
|
1460
|
+
var a = i.match(G);
|
|
1461
|
+
if (a) {
|
|
1462
|
+
var c = 0 | parseInt(a[1], 10),
|
|
1463
|
+
u = a[2];
|
|
1464
|
+
0 !== c && (B(u, c), L(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
|
|
1465
|
+
} else r.push(i);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
Y = function () {
|
|
1470
|
+
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
1471
|
+
},
|
|
1472
|
+
q = function (e) {
|
|
1473
|
+
var t = document.head,
|
|
1474
|
+
n = e || t,
|
|
1475
|
+
r = document.createElement("style"),
|
|
1476
|
+
o = function (e) {
|
|
1477
|
+
for (var t = e.childNodes, n = t.length; n >= 0; n--) {
|
|
1478
|
+
var r = t[n];
|
|
1479
|
+
if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
|
|
1480
|
+
}
|
|
1481
|
+
}(n),
|
|
1482
|
+
s = void 0 !== o ? o.nextSibling : null;
|
|
1483
|
+
r.setAttribute(N, "active"), r.setAttribute("data-styled-version", "5.3.6");
|
|
1484
|
+
var i = Y();
|
|
1485
|
+
return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
|
|
1486
|
+
},
|
|
1487
|
+
H = function () {
|
|
1488
|
+
function e(e) {
|
|
1489
|
+
var t = this.element = q(e);
|
|
1490
|
+
t.appendChild(document.createTextNode("")), this.sheet = function (e) {
|
|
1491
|
+
if (e.sheet) return e.sheet;
|
|
1492
|
+
for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
|
|
1493
|
+
var o = t[n];
|
|
1494
|
+
if (o.ownerNode === e) return o;
|
|
1495
|
+
}
|
|
1496
|
+
D(17);
|
|
1497
|
+
}(t), this.length = 0;
|
|
1498
|
+
}
|
|
1499
|
+
var t = e.prototype;
|
|
1500
|
+
return t.insertRule = function (e, t) {
|
|
1501
|
+
try {
|
|
1502
|
+
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1503
|
+
} catch (e) {
|
|
1504
|
+
return !1;
|
|
1505
|
+
}
|
|
1506
|
+
}, t.deleteRule = function (e) {
|
|
1507
|
+
this.sheet.deleteRule(e), this.length--;
|
|
1508
|
+
}, t.getRule = function (e) {
|
|
1509
|
+
var t = this.sheet.cssRules[e];
|
|
1510
|
+
return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
|
|
1511
|
+
}, e;
|
|
1512
|
+
}(),
|
|
1513
|
+
$ = function () {
|
|
1514
|
+
function e(e) {
|
|
1515
|
+
var t = this.element = q(e);
|
|
1516
|
+
this.nodes = t.childNodes, this.length = 0;
|
|
1517
|
+
}
|
|
1518
|
+
var t = e.prototype;
|
|
1519
|
+
return t.insertRule = function (e, t) {
|
|
1520
|
+
if (e <= this.length && e >= 0) {
|
|
1521
|
+
var n = document.createTextNode(t),
|
|
1522
|
+
r = this.nodes[e];
|
|
1523
|
+
return this.element.insertBefore(n, r || null), this.length++, !0;
|
|
1524
|
+
}
|
|
1525
|
+
return !1;
|
|
1526
|
+
}, t.deleteRule = function (e) {
|
|
1527
|
+
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1528
|
+
}, t.getRule = function (e) {
|
|
1529
|
+
return e < this.length ? this.nodes[e].textContent : "";
|
|
1530
|
+
}, e;
|
|
1531
|
+
}(),
|
|
1532
|
+
W = function () {
|
|
1533
|
+
function e(e) {
|
|
1534
|
+
this.rules = [], this.length = 0;
|
|
1535
|
+
}
|
|
1536
|
+
var t = e.prototype;
|
|
1537
|
+
return t.insertRule = function (e, t) {
|
|
1538
|
+
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1539
|
+
}, t.deleteRule = function (e) {
|
|
1540
|
+
this.rules.splice(e, 1), this.length--;
|
|
1541
|
+
}, t.getRule = function (e) {
|
|
1542
|
+
return e < this.length ? this.rules[e] : "";
|
|
1543
|
+
}, e;
|
|
1544
|
+
}(),
|
|
1545
|
+
U = C,
|
|
1546
|
+
J = {
|
|
1547
|
+
isServer: !C,
|
|
1548
|
+
useCSSOMInjection: !I
|
|
1549
|
+
},
|
|
1550
|
+
X = function () {
|
|
1551
|
+
function e(e, t, n) {
|
|
1552
|
+
void 0 === e && (e = w), void 0 === t && (t = {}), this.options = y({}, J, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && C && U && (U = !1, function (e) {
|
|
1553
|
+
for (var t = document.querySelectorAll(M), n = 0, r = t.length; n < r; n++) {
|
|
1554
|
+
var o = t[n];
|
|
1555
|
+
o && "active" !== o.getAttribute(N) && (F(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1556
|
+
}
|
|
1557
|
+
}(this));
|
|
1558
|
+
}
|
|
1559
|
+
e.registerId = function (e) {
|
|
1560
|
+
return V(e);
|
|
1561
|
+
};
|
|
1562
|
+
var t = e.prototype;
|
|
1563
|
+
return t.reconstructWithOptions = function (t, n) {
|
|
1564
|
+
return void 0 === n && (n = !0), new e(y({}, this.options, {}, t), this.gs, n && this.names || void 0);
|
|
1565
|
+
}, t.allocateGSInstance = function (e) {
|
|
1566
|
+
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1567
|
+
}, t.getTag = function () {
|
|
1568
|
+
return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new W(o) : r ? new H(o) : new $(o), new j(e)));
|
|
1569
|
+
var e, t, n, r, o;
|
|
1570
|
+
}, t.hasNameForId = function (e, t) {
|
|
1571
|
+
return this.names.has(e) && this.names.get(e).has(t);
|
|
1572
|
+
}, t.registerName = function (e, t) {
|
|
1573
|
+
if (V(e), this.names.has(e)) this.names.get(e).add(t);else {
|
|
1574
|
+
var n = new Set();
|
|
1575
|
+
n.add(t), this.names.set(e, n);
|
|
1576
|
+
}
|
|
1577
|
+
}, t.insertRules = function (e, t, n) {
|
|
1578
|
+
this.registerName(e, t), this.getTag().insertRules(V(e), n);
|
|
1579
|
+
}, t.clearNames = function (e) {
|
|
1580
|
+
this.names.has(e) && this.names.get(e).clear();
|
|
1581
|
+
}, t.clearRules = function (e) {
|
|
1582
|
+
this.getTag().clearGroup(V(e)), this.clearNames(e);
|
|
1583
|
+
}, t.clearTag = function () {
|
|
1584
|
+
this.tag = void 0;
|
|
1585
|
+
}, t.toString = function () {
|
|
1586
|
+
return function (e) {
|
|
1587
|
+
for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
|
|
1588
|
+
var s = z(o);
|
|
1589
|
+
if (void 0 !== s) {
|
|
1590
|
+
var i = e.names.get(s),
|
|
1591
|
+
a = t.getGroup(o);
|
|
1592
|
+
if (i && a && i.size) {
|
|
1593
|
+
var c = N + ".g" + o + '[id="' + s + '"]',
|
|
1594
|
+
u = "";
|
|
1595
|
+
void 0 !== i && i.forEach(function (e) {
|
|
1596
|
+
e.length > 0 && (u += e + ",");
|
|
1597
|
+
}), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
return r;
|
|
1602
|
+
}(this);
|
|
1603
|
+
}, e;
|
|
1604
|
+
}(),
|
|
1605
|
+
Z = /(a)(d)/gi,
|
|
1606
|
+
K = function (e) {
|
|
1607
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1608
|
+
};
|
|
1609
|
+
function Q(e) {
|
|
1610
|
+
var t,
|
|
1611
|
+
n = "";
|
|
1612
|
+
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = K(t % 52) + n;
|
|
1613
|
+
return (K(t % 52) + n).replace(Z, "$1-$2");
|
|
1614
|
+
}
|
|
1615
|
+
var ee = function (e, t) {
|
|
1616
|
+
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
1617
|
+
return e;
|
|
1618
|
+
},
|
|
1619
|
+
te = function (e) {
|
|
1620
|
+
return ee(5381, e);
|
|
1621
|
+
};
|
|
1622
|
+
function ne(e) {
|
|
1623
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1624
|
+
var n = e[t];
|
|
1625
|
+
if (E(n) && !_(n)) return !1;
|
|
1626
|
+
}
|
|
1627
|
+
return !0;
|
|
1628
|
+
}
|
|
1629
|
+
var re = te("5.3.6"),
|
|
1630
|
+
oe = function () {
|
|
1631
|
+
function e(e, t, n) {
|
|
1632
|
+
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && ne(e), this.componentId = t, this.baseHash = ee(re, t), this.baseStyle = n, X.registerId(t);
|
|
1633
|
+
}
|
|
1634
|
+
return e.prototype.generateAndInjectStyles = function (e, t, n) {
|
|
1635
|
+
var r = this.componentId,
|
|
1636
|
+
o = [];
|
|
1637
|
+
if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
|
|
1638
|
+
if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
|
|
1639
|
+
var s = _e(this.rules, e, t, n).join(""),
|
|
1640
|
+
i = Q(ee(this.baseHash, s) >>> 0);
|
|
1641
|
+
if (!t.hasNameForId(r, i)) {
|
|
1642
|
+
var a = n(s, "." + i, void 0, r);
|
|
1643
|
+
t.insertRules(r, i, a);
|
|
1644
|
+
}
|
|
1645
|
+
o.push(i), this.staticRulesId = i;
|
|
1646
|
+
}
|
|
1647
|
+
} else {
|
|
1648
|
+
for (var c = this.rules.length, u = ee(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
|
|
1649
|
+
var h = this.rules[d];
|
|
1650
|
+
if ("string" == typeof h) l += h, "production" !== process.env.NODE_ENV && (u = ee(u, h + d));else if (h) {
|
|
1651
|
+
var p = _e(h, e, t, n),
|
|
1652
|
+
f = Array.isArray(p) ? p.join("") : p;
|
|
1653
|
+
u = ee(u, f + d), l += f;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
if (l) {
|
|
1657
|
+
var m = Q(u >>> 0);
|
|
1658
|
+
if (!t.hasNameForId(r, m)) {
|
|
1659
|
+
var y = n(l, "." + m, void 0, r);
|
|
1660
|
+
t.insertRules(r, m, y);
|
|
1661
|
+
}
|
|
1662
|
+
o.push(m);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
return o.join(" ");
|
|
1666
|
+
}, e;
|
|
1667
|
+
}(),
|
|
1668
|
+
se = /^\s*\/\/.*$/gm,
|
|
1669
|
+
ie = [":", "[", ".", "#"];
|
|
1670
|
+
function ae(e) {
|
|
1671
|
+
var t,
|
|
1672
|
+
n,
|
|
1673
|
+
r,
|
|
1674
|
+
o,
|
|
1675
|
+
s = void 0 === e ? w : e,
|
|
1676
|
+
i = s.options,
|
|
1677
|
+
a = void 0 === i ? w : i,
|
|
1678
|
+
c = s.plugins,
|
|
1679
|
+
u = void 0 === c ? S : c,
|
|
1680
|
+
l = new stylis_min(a),
|
|
1681
|
+
d = [],
|
|
1682
|
+
p = function (e) {
|
|
1683
|
+
function t(t) {
|
|
1684
|
+
if (t) try {
|
|
1685
|
+
e(t + "}");
|
|
1686
|
+
} catch (e) {}
|
|
1687
|
+
}
|
|
1688
|
+
return function (n, r, o, s, i, a, c, u, l, d) {
|
|
1689
|
+
switch (n) {
|
|
1690
|
+
case 1:
|
|
1691
|
+
if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
|
|
1692
|
+
break;
|
|
1693
|
+
case 2:
|
|
1694
|
+
if (0 === u) return r + "/*|*/";
|
|
1695
|
+
break;
|
|
1696
|
+
case 3:
|
|
1697
|
+
switch (u) {
|
|
1698
|
+
case 102:
|
|
1699
|
+
case 112:
|
|
1700
|
+
return e(o[0] + r), "";
|
|
1701
|
+
default:
|
|
1702
|
+
return r + (0 === d ? "/*|*/" : "");
|
|
1703
|
+
}
|
|
1704
|
+
case -2:
|
|
1705
|
+
r.split("/*|*/}").forEach(t);
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
}(function (e) {
|
|
1709
|
+
d.push(e);
|
|
1710
|
+
}),
|
|
1711
|
+
f = function (e, r, s) {
|
|
1712
|
+
return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
|
|
1713
|
+
};
|
|
1714
|
+
function m(e, s, i, a) {
|
|
1715
|
+
void 0 === a && (a = "&");
|
|
1716
|
+
var c = e.replace(se, ""),
|
|
1717
|
+
u = s && i ? i + " " + s + " { " + c + " }" : c;
|
|
1718
|
+
return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
|
|
1719
|
+
}
|
|
1720
|
+
return l.use([].concat(u, [function (e, t, o) {
|
|
1721
|
+
2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
|
|
1722
|
+
}, p, function (e) {
|
|
1723
|
+
if (-2 === e) {
|
|
1724
|
+
var t = d;
|
|
1725
|
+
return d = [], t;
|
|
1726
|
+
}
|
|
1727
|
+
}])), m.hash = u.length ? u.reduce(function (e, t) {
|
|
1728
|
+
return t.name || D(15), ee(e, t.name);
|
|
1729
|
+
}, 5381).toString() : "", m;
|
|
1730
|
+
}
|
|
1731
|
+
var ce = React.createContext();
|
|
1732
|
+
ce.Consumer;
|
|
1733
|
+
var le = React.createContext(),
|
|
1734
|
+
de = (le.Consumer, new X()),
|
|
1735
|
+
he = ae();
|
|
1736
|
+
function pe() {
|
|
1737
|
+
return React.useContext(ce) || de;
|
|
1738
|
+
}
|
|
1739
|
+
function fe() {
|
|
1740
|
+
return React.useContext(le) || he;
|
|
1741
|
+
}
|
|
1742
|
+
var ye = function () {
|
|
1743
|
+
function e(e, t) {
|
|
1744
|
+
var n = this;
|
|
1745
|
+
this.inject = function (e, t) {
|
|
1746
|
+
void 0 === t && (t = he);
|
|
1747
|
+
var r = n.name + t.hash;
|
|
1748
|
+
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
|
|
1749
|
+
}, this.toString = function () {
|
|
1750
|
+
return D(12, String(n.name));
|
|
1751
|
+
}, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
|
|
1752
|
+
}
|
|
1753
|
+
return e.prototype.getName = function (e) {
|
|
1754
|
+
return void 0 === e && (e = he), this.name + e.hash;
|
|
1755
|
+
}, e;
|
|
1756
|
+
}(),
|
|
1757
|
+
ve = /([A-Z])/,
|
|
1758
|
+
ge = /([A-Z])/g,
|
|
1759
|
+
Se = /^ms-/,
|
|
1760
|
+
we = function (e) {
|
|
1761
|
+
return "-" + e.toLowerCase();
|
|
1762
|
+
};
|
|
1763
|
+
function Ee(e) {
|
|
1764
|
+
return ve.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
|
|
1765
|
+
}
|
|
1766
|
+
var be = function (e) {
|
|
1767
|
+
return null == e || !1 === e || "" === e;
|
|
1768
|
+
};
|
|
1769
|
+
function _e(e, n, r, o) {
|
|
1770
|
+
if (Array.isArray(e)) {
|
|
1771
|
+
for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
|
|
1772
|
+
return i;
|
|
1773
|
+
}
|
|
1774
|
+
if (be(e)) return "";
|
|
1775
|
+
if (_(e)) return "." + e.styledComponentId;
|
|
1776
|
+
if (E(e)) {
|
|
1777
|
+
if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
|
|
1778
|
+
var u = e(n);
|
|
1779
|
+
return "production" !== process.env.NODE_ENV && reactIsExports$1.isElement(u) && console.warn(b(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."), _e(u, n, r, o);
|
|
1780
|
+
}
|
|
1781
|
+
var l;
|
|
1782
|
+
return e instanceof ye ? r ? (e.inject(r, o), e.getName(o)) : e : g(e) ? function e(t, n) {
|
|
1783
|
+
var r,
|
|
1784
|
+
o,
|
|
1785
|
+
s = [];
|
|
1786
|
+
for (var i in t) t.hasOwnProperty(i) && !be(t[i]) && (Array.isArray(t[i]) && t[i].isCss || E(t[i]) ? s.push(Ee(i) + ":", t[i], ";") : g(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(Ee(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitlessKeys ? String(o).trim() : o + "px") + ";"));
|
|
1787
|
+
return n ? [n + " {"].concat(s, ["}"]) : s;
|
|
1788
|
+
}(e) : e.toString();
|
|
1789
|
+
}
|
|
1790
|
+
var Ne = function (e) {
|
|
1791
|
+
return Array.isArray(e) && (e.isCss = !0), e;
|
|
1792
|
+
};
|
|
1793
|
+
function Ae(e) {
|
|
1794
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1795
|
+
return E(e) || g(e) ? Ne(_e(v(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(v(e, n)));
|
|
1796
|
+
}
|
|
1797
|
+
var Ce = /invalid hook call/i,
|
|
1798
|
+
Ie = new Set(),
|
|
1799
|
+
Pe = function (e, t) {
|
|
1800
|
+
if ("production" !== process.env.NODE_ENV) {
|
|
1801
|
+
var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
|
|
1802
|
+
r = console.error;
|
|
1803
|
+
try {
|
|
1804
|
+
var o = !0;
|
|
1805
|
+
console.error = function (e) {
|
|
1806
|
+
if (Ce.test(e)) o = !1, Ie.delete(n);else {
|
|
1807
|
+
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
|
|
1808
|
+
r.apply(void 0, [e].concat(s));
|
|
1809
|
+
}
|
|
1810
|
+
}, React.useRef(), o && !Ie.has(n) && (console.warn(n), Ie.add(n));
|
|
1811
|
+
} catch (e) {
|
|
1812
|
+
Ce.test(e.message) && Ie.delete(n);
|
|
1813
|
+
} finally {
|
|
1814
|
+
console.error = r;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
},
|
|
1818
|
+
Oe = function (e, t, n) {
|
|
1819
|
+
return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1820
|
+
},
|
|
1821
|
+
Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
|
|
1822
|
+
De = /(^-|-$)/g;
|
|
1823
|
+
function je(e) {
|
|
1824
|
+
return e.replace(Re, "-").replace(De, "");
|
|
1825
|
+
}
|
|
1826
|
+
var Te = function (e) {
|
|
1827
|
+
return Q(te(e) >>> 0);
|
|
1828
|
+
};
|
|
1829
|
+
function xe(e) {
|
|
1830
|
+
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1831
|
+
}
|
|
1832
|
+
var ke = function (e) {
|
|
1833
|
+
return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
|
|
1834
|
+
},
|
|
1835
|
+
Ve = function (e) {
|
|
1836
|
+
return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
|
|
1837
|
+
};
|
|
1838
|
+
function ze(e, t, n) {
|
|
1839
|
+
var r = e[n];
|
|
1840
|
+
ke(t) && ke(r) ? Be(r, t) : e[n] = t;
|
|
1841
|
+
}
|
|
1842
|
+
function Be(e) {
|
|
1843
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
|
|
1844
|
+
for (var o = 0, s = n; o < s.length; o++) {
|
|
1845
|
+
var i = s[o];
|
|
1846
|
+
if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
|
|
1847
|
+
}
|
|
1848
|
+
return e;
|
|
1849
|
+
}
|
|
1850
|
+
var Me = React.createContext();
|
|
1851
|
+
Me.Consumer;
|
|
1852
|
+
var Fe = {};
|
|
1853
|
+
function Ye(e, t, n) {
|
|
1854
|
+
var o = _(e),
|
|
1855
|
+
i = !xe(e),
|
|
1856
|
+
a = t.attrs,
|
|
1857
|
+
c = void 0 === a ? S : a,
|
|
1858
|
+
d = t.componentId,
|
|
1859
|
+
h = void 0 === d ? function (e, t) {
|
|
1860
|
+
var n = "string" != typeof e ? "sc" : je(e);
|
|
1861
|
+
Fe[n] = (Fe[n] || 0) + 1;
|
|
1862
|
+
var r = n + "-" + Te("5.3.6" + n + Fe[n]);
|
|
1863
|
+
return t ? t + "-" + r : r;
|
|
1864
|
+
}(t.displayName, t.parentComponentId) : d,
|
|
1865
|
+
p = t.displayName,
|
|
1866
|
+
v = void 0 === p ? function (e) {
|
|
1867
|
+
return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
|
|
1868
|
+
}(e) : p,
|
|
1869
|
+
g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
|
|
1870
|
+
N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
|
|
1871
|
+
A = t.shouldForwardProp;
|
|
1872
|
+
o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
|
|
1873
|
+
return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
|
|
1874
|
+
} : e.shouldForwardProp);
|
|
1875
|
+
var C,
|
|
1876
|
+
I = new oe(n, g, o ? e.componentStyle : void 0),
|
|
1877
|
+
P = I.isStatic && 0 === c.length,
|
|
1878
|
+
O = function (e, t) {
|
|
1879
|
+
return function (e, t, n, r) {
|
|
1880
|
+
var o = e.attrs,
|
|
1881
|
+
i = e.componentStyle,
|
|
1882
|
+
a = e.defaultProps,
|
|
1883
|
+
c = e.foldedComponentIds,
|
|
1884
|
+
d = e.shouldForwardProp,
|
|
1885
|
+
h = e.styledComponentId,
|
|
1886
|
+
p = e.target;
|
|
1887
|
+
"production" !== process.env.NODE_ENV && React.useDebugValue(h);
|
|
1888
|
+
var m = function (e, t, n) {
|
|
1889
|
+
void 0 === e && (e = w);
|
|
1890
|
+
var r = y({}, t, {
|
|
1891
|
+
theme: e
|
|
1892
|
+
}),
|
|
1893
|
+
o = {};
|
|
1894
|
+
return n.forEach(function (e) {
|
|
1895
|
+
var t,
|
|
1896
|
+
n,
|
|
1897
|
+
s,
|
|
1898
|
+
i = e;
|
|
1899
|
+
for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
|
|
1900
|
+
}), [r, o];
|
|
1901
|
+
}(Oe(t, React.useContext(Me), a) || w, t, o),
|
|
1902
|
+
v = m[0],
|
|
1903
|
+
g = m[1],
|
|
1904
|
+
S = function (e, t, n, r) {
|
|
1905
|
+
var o = pe(),
|
|
1906
|
+
s = fe(),
|
|
1907
|
+
i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
|
|
1908
|
+
return "production" !== process.env.NODE_ENV && React.useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r && r(i), i;
|
|
1909
|
+
}(i, r, v, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
|
|
1910
|
+
b = n,
|
|
1911
|
+
_ = g.$as || t.$as || g.as || t.as || p,
|
|
1912
|
+
N = xe(_),
|
|
1913
|
+
A = g !== t ? y({}, t, {}, g) : t,
|
|
1914
|
+
C = {};
|
|
1915
|
+
for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
|
|
1916
|
+
return t.style && g.style !== t.style && (C.style = y({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = b, React.createElement(_, C);
|
|
1917
|
+
}(C, e, t, P);
|
|
1918
|
+
};
|
|
1919
|
+
return O.displayName = v, (C = React.forwardRef(O)).attrs = N, C.componentStyle = I, C.displayName = v, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
|
|
1920
|
+
var r = t.componentId,
|
|
1921
|
+
o = function (e, t) {
|
|
1922
|
+
if (null == e) return {};
|
|
1923
|
+
var n,
|
|
1924
|
+
r,
|
|
1925
|
+
o = {},
|
|
1926
|
+
s = Object.keys(e);
|
|
1927
|
+
for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
|
|
1928
|
+
return o;
|
|
1929
|
+
}(t, ["componentId"]),
|
|
1930
|
+
s = r && r + "-" + (xe(e) ? e : je(b(e)));
|
|
1931
|
+
return Ye(e, y({}, o, {
|
|
1932
|
+
attrs: N,
|
|
1933
|
+
componentId: s
|
|
1934
|
+
}), n);
|
|
1935
|
+
}, Object.defineProperty(C, "defaultProps", {
|
|
1936
|
+
get: function () {
|
|
1937
|
+
return this._foldedDefaultProps;
|
|
1938
|
+
},
|
|
1939
|
+
set: function (t) {
|
|
1940
|
+
this._foldedDefaultProps = o ? Be({}, e.defaultProps, t) : t;
|
|
1941
|
+
}
|
|
1942
|
+
}), "production" !== process.env.NODE_ENV && (Pe(v, g), C.warnTooManyClasses = function (e, t) {
|
|
1943
|
+
var n = {},
|
|
1944
|
+
r = !1;
|
|
1945
|
+
return function (o) {
|
|
1946
|
+
if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
|
|
1947
|
+
var s = t ? ' with the id of "' + t + '"' : "";
|
|
1948
|
+
console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {};
|
|
1949
|
+
}
|
|
1950
|
+
};
|
|
1951
|
+
}(v, g)), C.toString = function () {
|
|
1952
|
+
return "." + C.styledComponentId;
|
|
1953
|
+
}, i && m(C, e, {
|
|
1954
|
+
attrs: !0,
|
|
1955
|
+
componentStyle: !0,
|
|
1956
|
+
displayName: !0,
|
|
1957
|
+
foldedComponentIds: !0,
|
|
1958
|
+
shouldForwardProp: !0,
|
|
1959
|
+
styledComponentId: !0,
|
|
1960
|
+
target: !0,
|
|
1961
|
+
withComponent: !0
|
|
1962
|
+
}), C;
|
|
1963
|
+
}
|
|
1964
|
+
var qe = function (e) {
|
|
1965
|
+
return function e(t, r, o) {
|
|
1966
|
+
if (void 0 === o && (o = w), !reactIsExports$1.isValidElementType(r)) return D(1, String(r));
|
|
1967
|
+
var s = function () {
|
|
1968
|
+
return t(r, o, Ae.apply(void 0, arguments));
|
|
1969
|
+
};
|
|
1970
|
+
return s.withConfig = function (n) {
|
|
1971
|
+
return e(t, r, y({}, o, {}, n));
|
|
1972
|
+
}, s.attrs = function (n) {
|
|
1973
|
+
return e(t, r, y({}, o, {
|
|
1974
|
+
attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
|
|
1975
|
+
}));
|
|
1976
|
+
}, s;
|
|
1977
|
+
}(Ye, e);
|
|
1978
|
+
};
|
|
1979
|
+
["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", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "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", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
|
|
1980
|
+
qe[e] = qe(e);
|
|
1981
|
+
});
|
|
1982
|
+
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && 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.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1);
|
|
1983
|
+
var styled = qe;
|
|
1984
|
+
|
|
1985
|
+
var Colors = {
|
|
1986
|
+
PRIMARY: {
|
|
1987
|
+
Hex: '#0193D7',
|
|
1988
|
+
Rgb: '1, 147, 215',
|
|
1989
|
+
},
|
|
1990
|
+
GREEN: {
|
|
1991
|
+
Hex: '#1DBC3E',
|
|
1992
|
+
Rgb: '29, 188, 62',
|
|
1993
|
+
},
|
|
1994
|
+
RED: {
|
|
1995
|
+
Hex: '#E82425',
|
|
1996
|
+
Rgb: '232, 36, 37',
|
|
1997
|
+
},
|
|
1998
|
+
YELLOW: {
|
|
1999
|
+
Hex: '#F5BA03',
|
|
2000
|
+
Rgb: '245, 186, 3',
|
|
2001
|
+
},
|
|
2002
|
+
BLACK: {
|
|
2003
|
+
Hex: '#000000',
|
|
2004
|
+
Rgb: '0, 0, 0',
|
|
2005
|
+
},
|
|
2006
|
+
GRAY: {
|
|
2007
|
+
Hex: '#5A5A5A',
|
|
2008
|
+
Rgb: '90, 90, 90',
|
|
2009
|
+
},
|
|
2010
|
+
MEDIUM_GRAY: {
|
|
2011
|
+
Hex: '#999999',
|
|
2012
|
+
Rgb: '153, 153, 153',
|
|
2013
|
+
},
|
|
2014
|
+
LIGHT_GRAY: {
|
|
2015
|
+
Hex: '#E7E6E6',
|
|
2016
|
+
Rgb: '231, 230, 230',
|
|
2017
|
+
},
|
|
2018
|
+
};
|
|
2019
|
+
var FontStyles = {
|
|
2020
|
+
DEFAULT: '"Roboto", Helvetica, Arial, sans-serif',
|
|
2021
|
+
HEADING: '"Roboto Slab", "Roboto", Helvetica, Arial, sans-serif',
|
|
2022
|
+
};
|
|
2023
|
+
var FontSizes = {
|
|
2024
|
+
DEFAULT: '14px',
|
|
2025
|
+
SMALL: '13px',
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
var Header$2 = styled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n background: #f5f5f5;\n border: 1px solid #e5e5e5;\n padding: 14px 20px;\n height: 50px;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n background: #f5f5f5;\n border: 1px solid #e5e5e5;\n padding: 14px 20px;\n height: 50px;\n cursor: pointer;\n"])));
|
|
2029
|
+
var Title = styled.div(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n color: ", ";\n line-height: 1.6em;\n font-family: ", ";\n box-sizing: border-box;\n"], ["\n font-size: ", ";\n font-weight: 400;\n color: ", ";\n line-height: 1.6em;\n font-family: ", ";\n box-sizing: border-box;\n"])), FontSizes.DEFAULT, Colors.BLACK.Hex, FontStyles.DEFAULT);
|
|
2030
|
+
var Accordion = function (_a) {
|
|
2031
|
+
var title = _a.title, children = _a.children, open = _a.open, onClick = _a.onClick, accessibleProps = __rest(_a, ["title", "children", "open", "onClick"]);
|
|
2032
|
+
return (React.createElement(React.Fragment, null,
|
|
2033
|
+
React.createElement(Header$2, __assign({ onClick: onClick }, accessibleProps),
|
|
2034
|
+
React.createElement(Title, null, title),
|
|
2035
|
+
React.createElement(Icon, { color: Colors.BLACK.Hex, path: open ? js.mdiChevronUp : js.mdiChevronDown, size: '24px' })),
|
|
2036
|
+
open ? children : null));
|
|
2037
|
+
};
|
|
2038
|
+
var templateObject_1$j, templateObject_2$h;
|
|
2039
|
+
|
|
2040
|
+
var StyledButton = styled.button(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n height: ", ";\n line-height: 1em;\n border-radius: ", ";\n margin: ", ";\n padding: ", ";\n outline: none;\n background: ", ";\n width: ", ";\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n &:hover {\n opacity: ", ";\n }\n"], ["\n height: ", ";\n line-height: 1em;\n border-radius: ", ";\n margin: ", ";\n padding: ", ";\n outline: none;\n background: ", ";\n width: ", ";\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: ", ";\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n &:hover {\n opacity: ", ";\n }\n"])), function (props) { return (props.$small ? '30px' : '40px'); }, function (props) { return (props.$small ? '15px' : '20px'); }, function (props) { return props.$margin || '0px'; }, function (props) {
|
|
2041
|
+
if (props.$hasChildren) {
|
|
2042
|
+
if (props.$small) {
|
|
2043
|
+
return '0 10px';
|
|
2044
|
+
}
|
|
2045
|
+
else {
|
|
2046
|
+
return '0 20px';
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
return '0px';
|
|
2050
|
+
}, function (props) { return (props.$type === 'secondary' ? 'transparent' : Colors.PRIMARY.Hex); }, function (props) {
|
|
2051
|
+
if (props.$hasChildren) {
|
|
2052
|
+
return 'auto';
|
|
2053
|
+
}
|
|
2054
|
+
else if (props.$small) {
|
|
2055
|
+
return '30px';
|
|
2056
|
+
}
|
|
2057
|
+
return '40px';
|
|
2058
|
+
}, function (props) { return (props.$disabled ? 'default' : 'pointer'); }, function (props) { return (props.$disabled ? 0.6 : 0.9); }, Colors.PRIMARY.Hex, function (props) { return (props.$disabled ? 0.6 : 1); });
|
|
2059
|
+
var Label$3 = styled.span(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: 500;\n line-height: ", ";\n"], ["\n color: ", ";\n font-size: ", ";\n font-family: ", ";\n font-weight: 500;\n line-height: ", ";\n"])), function (props) { return (props.$type === 'secondary' ? Colors.PRIMARY.Hex : '#fff'); }, function (props) { return (props.$small ? FontSizes.SMALL : FontSizes.DEFAULT); }, FontStyles.DEFAULT, function (props) { return (props.$small ? '2.2em' : '2.9em'); });
|
|
2060
|
+
var StyledIcon = styled.span(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"], ["\n margin-left: ", ";\n margin-right: ", ";\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"])), function (props) { return (props.$hasChildren ? '6px' : '0px'); }, function (props) { return (props.$hasChildren ? '-4px' : '0px'); });
|
|
2061
|
+
var Button = function (_a) {
|
|
2062
|
+
var children = _a.children, _b = _a.disabled, disabled = _b === void 0 ? false : _b, icon = _a.icon, _c = _a.margin, margin = _c === void 0 ? '' : _c, onClick = _a.onClick, _d = _a.small, small = _d === void 0 ? false : _d, _e = _a.type, type = _e === void 0 ? 'primary' : _e, accessibleProps = __rest(_a, ["children", "disabled", "icon", "margin", "onClick", "small", "type"]);
|
|
2063
|
+
var has_children = children && children.length > 0;
|
|
2064
|
+
return (React.createElement(StyledButton, __assign({ "$disabled": disabled, "$hasChildren": !!has_children, "$margin": margin, "$onClick": disabled ? undefined : onClick, "$small": small, "$type": type }, accessibleProps),
|
|
2065
|
+
children ? (React.createElement(Label$3, { "$small": small, "$type": type }, children)) : null,
|
|
2066
|
+
icon ? (React.createElement(StyledIcon, { "$hasChildren": !!has_children },
|
|
2067
|
+
React.createElement(Icon, { color: type === 'secondary' ? Colors.PRIMARY.Hex : '#fff', path: icon, size: small ? '20px' : '24px' }))) : null));
|
|
2068
|
+
};
|
|
2069
|
+
var templateObject_1$i, templateObject_2$g, templateObject_3$b;
|
|
2070
|
+
|
|
2071
|
+
var StyledComponent = styled.p(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n font-weight: ", ";\n font-style: ", ";\n text-decoration: ", ";\n font-family: 'Roboto', Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n text-align: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n font-weight: ", ";\n font-style: ", ";\n text-decoration: ", ";\n font-family: 'Roboto', Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n text-align: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$type === 'small' ? FontSizes.SMALL : FontSizes.DEFAULT); }, function (props) { return (props.$type === 'small' ? '1.5em' : '1.6em'); }, function (props) { return (props.$type === 'small' ? '1px' : '0px'); }, function (props) { return (props.$type === 'bold' ? '500' : '400'); }, function (props) { return (props.$type === 'italic' ? 'italic' : 'normal'); }, function (props) {
|
|
2072
|
+
return ['underline', 'line-through'].includes(props.$type) ? props.$type : 'none';
|
|
2073
|
+
}, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; }, function (props) { return props.$align || 'left'; });
|
|
2074
|
+
var Copy = function (_a) {
|
|
2075
|
+
var children = _a.children, _b = _a.align, align = _b === void 0 ? '' : _b, _c = _a.margin, margin = _c === void 0 ? '' : _c, _d = _a.padding, padding = _d === void 0 ? '' : _d, _e = _a.type, type = _e === void 0 ? 'default' : _e;
|
|
2076
|
+
return (React.createElement(StyledComponent, { "$align": align, "$margin": margin, "$padding": padding, "$type": type }, children));
|
|
2077
|
+
};
|
|
2078
|
+
Copy.defaultProps = {
|
|
2079
|
+
type: 'default',
|
|
2080
|
+
};
|
|
2081
|
+
var templateObject_1$h;
|
|
2082
|
+
|
|
2083
|
+
var H1 = styled.h1(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n color: ", ";\n font-size: 30px;\n font-weight: ", ";\n line-height: 1.4em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: 30px;\n font-weight: ", ";\n line-height: 1.4em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$bold ? '500' : '400'); }, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; });
|
|
2084
|
+
var H2 = styled.h2(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n color: ", ";\n font-size: 24px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: 24px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$bold ? '500' : '400'); }, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; });
|
|
2085
|
+
var H3 = styled.h3(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n color: ", ";\n font-size: 18px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"], ["\n color: ", ";\n font-size: 18px;\n font-weight: ", ";\n line-height: 1.33em;\n font-family: 'Roboto Slab', Roboto, Helvetica, Arial, sans-serif;\n margin: ", ";\n padding: ", ";\n box-sizing: border-box;\n"])), Colors.BLACK.Hex, function (props) { return (props.$bold ? '500' : '400'); }, function (props) { return props.$margin || '0px'; }, function (props) { return props.$padding || '0px'; });
|
|
2086
|
+
var Heading = function (_a) {
|
|
2087
|
+
var bold = _a.bold, children = _a.children, margin = _a.margin, padding = _a.padding, type = _a.type, accessibleProps = __rest(_a, ["bold", "children", "margin", "padding", "type"]);
|
|
2088
|
+
switch (type) {
|
|
2089
|
+
case 'secondary': {
|
|
2090
|
+
return (React.createElement(H2, __assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps), children));
|
|
2091
|
+
}
|
|
2092
|
+
case 'tertiary': {
|
|
2093
|
+
return (React.createElement(H3, __assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps), children));
|
|
2094
|
+
}
|
|
2095
|
+
default: {
|
|
2096
|
+
return (React.createElement(H1, __assign({ "$bold": bold, "$margin": margin, "$padding": padding }, accessibleProps), children));
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
};
|
|
2100
|
+
Heading.defaultProps = {
|
|
2101
|
+
bold: false,
|
|
2102
|
+
type: 'primary',
|
|
2103
|
+
};
|
|
2104
|
+
var templateObject_1$g, templateObject_2$f, templateObject_3$a;
|
|
2105
|
+
|
|
2106
|
+
var Wrapper$9 = styled.div(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n"], ["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n"])));
|
|
2107
|
+
var Container$1 = styled.dialog(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n max-width: 600px;\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 40px;\n text-align: center;\n box-sizing: border-box;\n"], ["\n max-width: 600px;\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 40px;\n text-align: center;\n box-sizing: border-box;\n"])));
|
|
2108
|
+
var Buttons = styled.div(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 30px;\n box-sizing: border-box;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 30px;\n box-sizing: border-box;\n"])));
|
|
2109
|
+
var ActionDialog = function (_a) {
|
|
2110
|
+
var description = _a.description, title = _a.title, onClose = _a.onClose, primaryButton = _a.primaryButton, secondaryButton = _a.secondaryButton, accessibleProps = __rest(_a, ["description", "title", "onClose", "primaryButton", "secondaryButton"]);
|
|
2111
|
+
React.useEffect(function () {
|
|
2112
|
+
document.onkeydown = function (e) {
|
|
2113
|
+
if (e.key === 'Escape') {
|
|
2114
|
+
onClose();
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
return function cleanup() {
|
|
2118
|
+
document.onkeydown = null;
|
|
2119
|
+
};
|
|
2120
|
+
}, []);
|
|
2121
|
+
return (React.createElement(Wrapper$9, __assign({}, accessibleProps),
|
|
2122
|
+
React.createElement(Container$1, { open: true },
|
|
2123
|
+
title ? (React.createElement(Heading, { margin: '0px 0px 20px 0px', type: 'secondary' }, title)) : null,
|
|
2124
|
+
description ? React.createElement(Copy, { align: 'center' }, description) : null,
|
|
2125
|
+
primaryButton || secondaryButton ? (React.createElement(Buttons, null,
|
|
2126
|
+
secondaryButton ? (React.createElement(Button, __assign({}, secondaryButton, { margin: '0px 5px', type: 'secondary' }))) : null,
|
|
2127
|
+
primaryButton ? React.createElement(Button, __assign({}, primaryButton, { margin: '0px 5px', type: 'primary' })) : null)) : null)));
|
|
2128
|
+
};
|
|
2129
|
+
var templateObject_1$f, templateObject_2$e, templateObject_3$9;
|
|
2130
|
+
|
|
2131
|
+
var Wrapper$8 = styled.div(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n border: 1px solid #f1f1f1;\n border-radius: 4px;\n border-left-width: 4px;\n box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: flex-start;\n padding: 20px;\n box-sizing: border-box;\n"], ["\n border: 1px solid #f1f1f1;\n border-radius: 4px;\n border-left-width: 4px;\n box-shadow: 0px 4px 12px -6px rgba(0, 0, 0, 0.2);\n display: flex;\n align-items: flex-start;\n padding: 20px;\n box-sizing: border-box;\n"])));
|
|
2132
|
+
var Content$1 = styled.div(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n margin-left: 20px;\n"], ["\n margin-left: 20px;\n"])));
|
|
2133
|
+
var Alert = function (_a) {
|
|
2134
|
+
var _b = _a.type, type = _b === void 0 ? 'info' : _b, title = _a.title, description = _a.description, accessibleProps = __rest(_a, ["type", "title", "description"]);
|
|
2135
|
+
var type_mapping = {
|
|
2136
|
+
info: {
|
|
2137
|
+
color: Colors.PRIMARY.Hex,
|
|
2138
|
+
icon: js.mdiInformationOutline,
|
|
2139
|
+
},
|
|
2140
|
+
error: {
|
|
2141
|
+
color: Colors.RED.Hex,
|
|
2142
|
+
icon: js.mdiAlertOctagonOutline,
|
|
2143
|
+
},
|
|
2144
|
+
warning: {
|
|
2145
|
+
color: Colors.YELLOW.Hex,
|
|
2146
|
+
icon: js.mdiAlertOutline,
|
|
2147
|
+
},
|
|
2148
|
+
success: {
|
|
2149
|
+
color: Colors.GREEN.Hex,
|
|
2150
|
+
icon: js.mdiCheckboxMarkedCircleOutline,
|
|
2151
|
+
},
|
|
2152
|
+
};
|
|
2153
|
+
return (React.createElement(Wrapper$8, __assign({}, accessibleProps, { style: { borderLeftColor: type_mapping[type].color } }),
|
|
2154
|
+
React.createElement("div", { style: { flexShrink: 0 } },
|
|
2155
|
+
React.createElement(Icon, { color: type_mapping[type].color, path: type_mapping[type].icon, size: '30px' })),
|
|
2156
|
+
React.createElement(Content$1, null,
|
|
2157
|
+
title ? (React.createElement(Heading, { bold: true, margin: '2px 0 0 0', type: 'tertiary' }, title)) : null,
|
|
2158
|
+
description ? React.createElement(Copy, { margin: '10px 0 0 0' }, description) : null)));
|
|
2159
|
+
};
|
|
2160
|
+
var templateObject_1$e, templateObject_2$d;
|
|
2161
|
+
|
|
2162
|
+
var Wrapper$7 = styled.div(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n border: 1px solid ", ";\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n"], ["\n border: 1px solid ", ";\n border-radius: 8px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n"])), Colors.PRIMARY.Hex);
|
|
2163
|
+
var Left = styled.div(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-shrink: 0;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-shrink: 0;\n"])));
|
|
2164
|
+
var Info = styled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n margin-right: 30px;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n margin-right: 30px;\n"])));
|
|
2165
|
+
var Selected = styled.span(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n"], ["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n"])), FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2166
|
+
var Clear = styled.span(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n cursor: pointer;\n padding-left: 10px;\n margin-left: 10px;\n border-left: 1px solid #ccc;\n"], ["\n font-size: 14px;\n font-weight: 400;\n font-family: ", ";\n color: ", ";\n line-height: 1;\n cursor: pointer;\n padding-left: 10px;\n margin-left: 10px;\n border-left: 1px solid #ccc;\n"])), FontStyles.DEFAULT, Colors.PRIMARY.Hex);
|
|
2167
|
+
var Actions = styled.div(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n column-gap: 10px;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n column-gap: 10px;\n"])));
|
|
2168
|
+
var Error$1 = styled.div(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n background: rgba(", ", 0.1);\n border-radius: 4px;\n padding: 6px 8px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n margin-left: 30px;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n background: rgba(", ", 0.1);\n border-radius: 4px;\n padding: 6px 8px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n margin-left: 30px;\n"])), Colors.RED.Rgb);
|
|
2169
|
+
var ErrorMsg = styled.span(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 500;\n font-family: ", ";\n line-height: 1em;\n color: ", ";\n margin-left: 8px;\n"], ["\n font-size: 14px;\n font-weight: 500;\n font-family: ", ";\n line-height: 1em;\n color: ", ";\n margin-left: 8px;\n"])), FontStyles.DEFAULT, Colors.RED.Hex);
|
|
2170
|
+
var BulkActionBar = function (_a) {
|
|
2171
|
+
var _b = _a.actions, actions = _b === void 0 ? [] : _b, errorMsg = _a.errorMsg, onClear = _a.onClear, _c = _a.selectedCount, selectedCount = _c === void 0 ? 0 : _c, accessibleProps = __rest(_a, ["actions", "errorMsg", "onClear", "selectedCount"]);
|
|
2172
|
+
return (React.createElement(Wrapper$7, __assign({}, accessibleProps),
|
|
2173
|
+
React.createElement(Left, null,
|
|
2174
|
+
React.createElement(Info, null,
|
|
2175
|
+
React.createElement(Selected, null,
|
|
2176
|
+
selectedCount,
|
|
2177
|
+
" Selected"),
|
|
2178
|
+
onClear ? React.createElement(Clear, { onClick: onClear }, "Clear") : null),
|
|
2179
|
+
React.createElement(Actions, null, actions.map(function (action) { return (React.createElement(Button, __assign({}, action, { small: true }))); }))),
|
|
2180
|
+
errorMsg ? (React.createElement(Error$1, null,
|
|
2181
|
+
React.createElement(Icon, { color: Colors.RED.Hex, path: js.mdiInformationOutline, size: '20px' }),
|
|
2182
|
+
React.createElement(ErrorMsg, null, errorMsg))) : null));
|
|
2183
|
+
};
|
|
2184
|
+
var templateObject_1$d, templateObject_2$c, templateObject_3$8, templateObject_4$5, templateObject_5$3, templateObject_6$2, templateObject_7$2, templateObject_8;
|
|
2185
|
+
|
|
2186
|
+
var Checkbox = function (_a) {
|
|
2187
|
+
var children = _a.children, disabled = _a.disabled, checked = _a.checked, onChange = _a.onChange, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange"]);
|
|
2188
|
+
var Wrapper = styled.label(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n padding: 4px 0;\n cursor: ", ";\n display: flex;\n align-items: center;\n font-size: ", ";\n line-height: 1.6em;\n box-sizing: border-box;\n "], ["\n padding: 4px 0;\n cursor: ", ";\n display: flex;\n align-items: center;\n font-size: ", ";\n line-height: 1.6em;\n box-sizing: border-box;\n "])), disabled ? 'default' : 'pointer', FontSizes.DEFAULT);
|
|
2189
|
+
var Input = styled.input(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n font-size: 20px;\n margin: 0px 0px 2px 0px;\n line-height: 1.1em;\n box-sizing: border-box;\n "], ["\n font-size: 20px;\n margin: 0px 0px 2px 0px;\n line-height: 1.1em;\n box-sizing: border-box;\n "])));
|
|
2190
|
+
var Label = styled.span(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: 1.6em;\n color: ", ";\n margin-left: 6px;\n box-sizing: border-box;\n "], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n line-height: 1.6em;\n color: ", ";\n margin-left: 6px;\n box-sizing: border-box;\n "])), FontStyles.DEFAULT, FontSizes.DEFAULT, Colors.BLACK.Hex);
|
|
2191
|
+
return (React.createElement(Wrapper, __assign({}, accessibleProps, { onClick: disabled ? undefined : onChange }),
|
|
2192
|
+
React.createElement(Input, { checked: checked, disabled: disabled, name: accessibleProps.name, type: 'checkbox' }),
|
|
2193
|
+
children ? React.createElement(Label, null, children) : null));
|
|
2194
|
+
};
|
|
2195
|
+
var templateObject_1$c, templateObject_2$b, templateObject_3$7;
|
|
2196
|
+
|
|
2197
|
+
var Checklist = function (_a) {
|
|
2198
|
+
var disabled = _a.disabled, onChange = _a.onChange, options = _a.options, selected = _a.selected, showSelectAll = _a.showSelectAll, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "selected", "showSelectAll"]);
|
|
2199
|
+
var values = options.map(function (option) { return option.value; });
|
|
2200
|
+
var handleToggleAll = function () {
|
|
2201
|
+
if (selected.length === options.length) {
|
|
2202
|
+
onChange([]);
|
|
2203
|
+
}
|
|
2204
|
+
else {
|
|
2205
|
+
onChange(options.map(function (option) { return option.value; }));
|
|
2206
|
+
}
|
|
2207
|
+
};
|
|
2208
|
+
var handleChange = function (option) {
|
|
2209
|
+
var updated_selected = selected.filter(function (value) { return value !== option.value; });
|
|
2210
|
+
if (!selected.includes(option.value)) {
|
|
2211
|
+
updated_selected.push(option.value);
|
|
2212
|
+
}
|
|
2213
|
+
onChange(updated_selected);
|
|
2214
|
+
};
|
|
2215
|
+
var SelectAll = styled.div(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n padding: 8px 12px;\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n "], ["\n padding: 8px 12px;\n border-bottom: 1px solid ", ";\n box-sizing: border-box;\n "])), Colors.LIGHT_GRAY.Hex);
|
|
2216
|
+
var Options = styled.div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n padding: 12px;\n box-sizing: border-box;\n "], ["\n padding: 12px;\n box-sizing: border-box;\n "])));
|
|
2217
|
+
return (React.createElement(React.Fragment, null,
|
|
2218
|
+
showSelectAll && values.length ? (React.createElement(SelectAll, null,
|
|
2219
|
+
React.createElement(Checkbox, { checked: selected.length === values.length, disabled: disabled, onChange: handleToggleAll }, "Select All"))) : null,
|
|
2220
|
+
React.createElement(Options, null, options.map(function (option) {
|
|
2221
|
+
var label = "".concat(option.label || option.value);
|
|
2222
|
+
var checked = selected.includes(option.value);
|
|
2223
|
+
return (React.createElement(Checkbox, __assign({}, accessibleProps, { checked: checked, disabled: disabled, onChange: handleChange.bind(null, option) }), label));
|
|
2224
|
+
}))));
|
|
2225
|
+
};
|
|
2226
|
+
var templateObject_1$b, templateObject_2$a;
|
|
2227
|
+
|
|
2228
|
+
var Wrapper$6 = styled.div(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), function (props) { return props.$margin || '0px 0px 15px 0px'; });
|
|
2229
|
+
var LabelRow = styled.div(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 4px 0;\n box-sizing: border-box;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 4px 0;\n box-sizing: border-box;\n"])));
|
|
2230
|
+
var Label$2 = styled.label(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n"], ["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n"])), FontSizes.DEFAULT, FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2231
|
+
var Required = styled.span(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n color: ", ";\n margin-left: 4px;\n"], ["\n color: ", ";\n margin-left: 4px;\n"])), Colors.RED.Hex);
|
|
2232
|
+
var Action = styled.span(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n cursor: pointer;\n"], ["\n font-size: ", ";\n font-weight: 500;\n line-height: 1em;\n font-family: ", ";\n color: ", ";\n cursor: pointer;\n"])), FontSizes.DEFAULT, FontStyles.DEFAULT, Colors.PRIMARY.Hex);
|
|
2233
|
+
var Description = styled.div(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 0 0 8px 0;\n box-sizing: border-box;\n"], ["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 0 0 8px 0;\n box-sizing: border-box;\n"])), FontSizes.SMALL, FontStyles.DEFAULT, Colors.BLACK.Hex);
|
|
2234
|
+
var Validation = styled.div(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 4px 0 0 0;\n box-sizing: border-box;\n"], ["\n font-size: ", ";\n font-weight: 400;\n line-height: 1.3em;\n font-family: ", ";\n color: ", ";\n margin: 4px 0 0 0;\n box-sizing: border-box;\n"])), FontSizes.SMALL, FontStyles.DEFAULT, Colors.RED.Hex);
|
|
2235
|
+
var Field = function (_a) {
|
|
2236
|
+
var action = _a.action, children = _a.children, validationText = _a.validationText, label = _a.label, margin = _a.margin, description = _a.description, required = _a.required, htmlFor = _a.htmlFor, accessibleProps = __rest(_a, ["action", "children", "validationText", "label", "margin", "description", "required", "htmlFor"]);
|
|
2237
|
+
return (React.createElement(Wrapper$6, __assign({ "$margin": margin }, accessibleProps),
|
|
2238
|
+
React.createElement(LabelRow, null,
|
|
2239
|
+
React.createElement(Label$2, { htmlFor: htmlFor },
|
|
2240
|
+
label,
|
|
2241
|
+
required ? React.createElement(Required, null, "*") : null),
|
|
2242
|
+
action ? React.createElement(Action, { onClick: action.onClick }, action.label) : null),
|
|
2243
|
+
description ? React.createElement(Description, null, description) : null,
|
|
2244
|
+
children,
|
|
2245
|
+
validationText ? React.createElement(Validation, null, validationText) : null));
|
|
2246
|
+
};
|
|
2247
|
+
var templateObject_1$a, templateObject_2$9, templateObject_3$6, templateObject_4$4, templateObject_5$2, templateObject_6$1, templateObject_7$1;
|
|
2248
|
+
|
|
2249
|
+
var formatAsPhone = function (number) {
|
|
2250
|
+
var formatted_value = "".concat(number).replace(/[^0-9.]/g, '');
|
|
2251
|
+
var size = formatted_value.length;
|
|
2252
|
+
if (size < 1) ;
|
|
2253
|
+
else if (size < 4) {
|
|
2254
|
+
formatted_value = "(".concat(formatted_value);
|
|
2255
|
+
}
|
|
2256
|
+
else if (size < 7) {
|
|
2257
|
+
formatted_value = "(".concat(formatted_value.substring(0, 3), ") ").concat(formatted_value.substring(3, 6));
|
|
2258
|
+
}
|
|
2259
|
+
else {
|
|
2260
|
+
formatted_value = "(".concat(formatted_value.substring(0, 3), ") ").concat(formatted_value.substring(3, 6), "-").concat(formatted_value.substring(6, 10));
|
|
2261
|
+
}
|
|
2262
|
+
return formatted_value;
|
|
2263
|
+
};
|
|
2264
|
+
var formatAsSsn = function (number) {
|
|
2265
|
+
var formatted_value = "".concat(number).replace(/[^0-9.]/g, '');
|
|
2266
|
+
var size = formatted_value.length;
|
|
2267
|
+
if (size > 3 && size < 6) {
|
|
2268
|
+
formatted_value = "".concat(formatted_value.substring(0, 3), "-").concat(formatted_value.substring(3, 5));
|
|
2269
|
+
}
|
|
2270
|
+
else if (size > 5) {
|
|
2271
|
+
formatted_value = "".concat(formatted_value.substring(0, 3), "-").concat(formatted_value.substring(3, 5), "-").concat(formatted_value.substring(5, 9));
|
|
2272
|
+
}
|
|
2273
|
+
return formatted_value;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2276
|
+
var StyledInput = styled.input(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.28em;\n color: ", ";\n position: relative;\n height: 40px;\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n margin: 0px;\n text-indent: 0px;\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"], ["\n background-color: ", ";\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.28em;\n color: ", ";\n position: relative;\n height: 40px;\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n margin: 0px;\n text-indent: 0px;\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc'); }, FontSizes.DEFAULT, FontStyles.DEFAULT, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex); }, function (props) { return (props.$readOnly ? 0.6 : 1); }, function (props) { return (props.$readOnly ? '#cccccc' : Colors.PRIMARY.Hex); });
|
|
2277
|
+
var StyledTextarea = styled.textarea(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.6em;\n color: ", ";\n position: relative;\n height: ", ";\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n padding: 10px,\n margin: 0px,\n text-indent: 0px,\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"], ["\n background-color: ", ";\n border-radius: 4px;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1.6em;\n color: ", ";\n position: relative;\n height: ", ";\n padding: 10px;\n opacity: ", ";\n box-shadow: none;\n outline: none;\n padding: 10px,\n margin: 0px,\n text-indent: 0px,\n --webkit-appearance: none;\n box-sizing: border-box;\n display: block;\n width: 100%;\n &:focus {\n border-color: ", ";\n }\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : '#cccccc'); }, FontSizes.DEFAULT, FontStyles.DEFAULT, function (props) { return (props.$invalid && !props.$readOnly ? Colors.RED.Hex : Colors.BLACK.Hex); }, function (props) { return props.$height || '40px'; }, function (props) { return (props.$readOnly ? 0.6 : 1); }, function (props) { return (props.$readOnly ? '#cccccc' : Colors.PRIMARY.Hex); });
|
|
2278
|
+
var Input$1 = function (_a) {
|
|
2279
|
+
var format = _a.format, height = _a.height, invalid = _a.invalid, max = _a.max, maxLength = _a.maxLength, min = _a.min, onBlur = _a.onBlur, onChange = _a.onChange, onKeyDown = _a.onKeyDown, placeholder = _a.placeholder, readOnly = _a.readOnly, step = _a.step, _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, accessibleProps = __rest(_a, ["format", "height", "invalid", "max", "maxLength", "min", "onBlur", "onChange", "onKeyDown", "placeholder", "readOnly", "step", "type", "value"]);
|
|
2280
|
+
var handleInputChange = function (e) {
|
|
2281
|
+
if (format === 'currency' || format === 'currency_decimal') {
|
|
2282
|
+
e.target.value = e.target.value.replace(/[^0-9.]/g, '');
|
|
2283
|
+
}
|
|
2284
|
+
if (format === 'phone') {
|
|
2285
|
+
e.target.value = e.target.value.replace(/[^0-9.]/g, '').substring(0, 10);
|
|
2286
|
+
}
|
|
2287
|
+
if (format === 'ssn') {
|
|
2288
|
+
e.target.value = e.target.value.replace(/[^0-9]/g, '').substring(0, 9);
|
|
2289
|
+
}
|
|
2290
|
+
if (type === 'email') {
|
|
2291
|
+
e.target.value = e.target.value.toLowerCase();
|
|
2292
|
+
}
|
|
2293
|
+
if (type === 'number' && max && parseInt(e.target.value, 10) > max) {
|
|
2294
|
+
e.target.value = "".concat(max);
|
|
2295
|
+
}
|
|
2296
|
+
if (!readOnly && onChange)
|
|
2297
|
+
onChange(e);
|
|
2298
|
+
};
|
|
2299
|
+
var handleTextareaChange = function (e) {
|
|
2300
|
+
if (!readOnly && onChange)
|
|
2301
|
+
onChange(e);
|
|
2302
|
+
};
|
|
2303
|
+
var formatted_value = value;
|
|
2304
|
+
if (format === 'phone') {
|
|
2305
|
+
formatted_value = formatAsPhone(value);
|
|
2306
|
+
}
|
|
2307
|
+
if (format === 'currency') {
|
|
2308
|
+
if ("".concat(value).length) {
|
|
2309
|
+
formatted_value = Numeral(value).format('$0,0');
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
if (format === 'currency_decimal') {
|
|
2313
|
+
formatted_value = "$".concat(formatted_value);
|
|
2314
|
+
}
|
|
2315
|
+
if (format === 'ssn' && type !== 'password') {
|
|
2316
|
+
formatted_value = formatAsSsn(value);
|
|
2317
|
+
}
|
|
2318
|
+
return type === 'textarea' ? (React.createElement(StyledTextarea, __assign({ "$height": height, "$invalid": invalid, "$readOnly": readOnly, maxLength: maxLength, onBlur: onBlur, onChange: handleTextareaChange, placeholder: placeholder, value: value }, accessibleProps))) : (React.createElement(StyledInput, __assign({ "$invalid": invalid, "$readOnly": readOnly, max: max, maxLength: maxLength, min: min, onBlur: onBlur, onChange: handleInputChange, onKeyDown: onKeyDown, placeholder: placeholder, step: step, type: type, value: formatted_value }, accessibleProps)));
|
|
2319
|
+
};
|
|
2320
|
+
var templateObject_1$9, templateObject_2$8;
|
|
2321
|
+
|
|
2322
|
+
var Wrapper$5 = styled.div(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 9999;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
2323
|
+
var Container = styled.dialog(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n max-width: ", ";\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 0px;\n box-sizing: border-box;\n"], ["\n max-width: ", ";\n width: auto;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.2);\n outline: none;\n border: none;\n position: relative;\n padding: 0px;\n box-sizing: border-box;\n"])), function (props) { return props.$maxWidth || '90vw'; });
|
|
2324
|
+
var Header$1 = styled.div(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n position: sticky;\n top: 0;\n padding: 20px;\n border-bottom: 1px solid #e5e5e5;\n display: flex;\n align-items: center;\n background: #ffffff;\n box-sizing: border-box;\n"], ["\n position: sticky;\n top: 0;\n padding: 20px;\n border-bottom: 1px solid #e5e5e5;\n display: flex;\n align-items: center;\n background: #ffffff;\n box-sizing: border-box;\n"])));
|
|
2325
|
+
var Close = styled.div(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n margin-left: auto;\n display: flex;\n align-items: center;\n padding-left: 20px;\n cursor: pointer;\n"], ["\n margin-left: auto;\n display: flex;\n align-items: center;\n padding-left: 20px;\n cursor: pointer;\n"])));
|
|
2326
|
+
var CloseMsg = styled.span(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1em;\n color: ", ";\n"], ["\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 1em;\n color: ", ";\n"])), FontSizes.SMALL, FontStyles.DEFAULT, Colors.MEDIUM_GRAY.Hex);
|
|
2327
|
+
var ContentWrapper = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n overflow: auto;\n background: #ffffff;\n max-height: calc(100vh - 260px);\n box-sizing: border-box;\n"], ["\n overflow: auto;\n background: #ffffff;\n max-height: calc(100vh - 260px);\n box-sizing: border-box;\n"])));
|
|
2328
|
+
var ButtonBar = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n position: sticky;\n bottom: 0;\n background: #ffffff;\n padding: 20px;\n border-top: 1px solid #e5e5e5;\n display: flex;\n align-items: center;\n justify-self: flex-end;\n box-sizing: border-box;\n"], ["\n position: sticky;\n bottom: 0;\n background: #ffffff;\n padding: 20px;\n border-top: 1px solid #e5e5e5;\n display: flex;\n align-items: center;\n justify-self: flex-end;\n box-sizing: border-box;\n"])));
|
|
2329
|
+
var Modal = function (_a) {
|
|
2330
|
+
var children = _a.children, title = _a.title, onClose = _a.onClose, maxWidth = _a.maxWidth, primaryButton = _a.primaryButton, secondaryButton = _a.secondaryButton, tertiaryButton = _a.tertiaryButton, accessibleProps = __rest(_a, ["children", "title", "onClose", "maxWidth", "primaryButton", "secondaryButton", "tertiaryButton"]);
|
|
2331
|
+
React.useEffect(function () {
|
|
2332
|
+
document.onkeydown = function (e) {
|
|
2333
|
+
if (e.key === 'Escape') {
|
|
2334
|
+
onClose();
|
|
2335
|
+
}
|
|
2336
|
+
};
|
|
2337
|
+
return function cleanup() {
|
|
2338
|
+
document.onkeydown = null;
|
|
2339
|
+
};
|
|
2340
|
+
}, []);
|
|
2341
|
+
return (React.createElement(Wrapper$5, null,
|
|
2342
|
+
React.createElement(Container, __assign({ "$maxWidth": maxWidth, open: true }, accessibleProps),
|
|
2343
|
+
React.createElement(Header$1, null,
|
|
2344
|
+
title ? React.createElement(Heading, { type: 'secondary' }, title) : null,
|
|
2345
|
+
React.createElement(Close, { onClick: onClose },
|
|
2346
|
+
React.createElement(CloseMsg, null, "(Esc)"),
|
|
2347
|
+
React.createElement(Icon, { color: Colors.BLACK.Hex, path: js.mdiClose, size: '24px' }))),
|
|
2348
|
+
React.createElement(ContentWrapper, null, children),
|
|
2349
|
+
primaryButton || secondaryButton || tertiaryButton ? (React.createElement(ButtonBar, null,
|
|
2350
|
+
tertiaryButton ? React.createElement(Button, __assign({}, tertiaryButton, { type: 'secondary' })) : null,
|
|
2351
|
+
primaryButton || secondaryButton ? (React.createElement("div", { style: {
|
|
2352
|
+
marginLeft: 'auto',
|
|
2353
|
+
paddingLeft: 40,
|
|
2354
|
+
display: 'flex',
|
|
2355
|
+
alignItems: 'center',
|
|
2356
|
+
} },
|
|
2357
|
+
secondaryButton ? React.createElement(Button, __assign({}, secondaryButton, { type: 'secondary' })) : null,
|
|
2358
|
+
primaryButton ? (React.createElement(Button, __assign({}, primaryButton, { margin: '0px 0px 0px 10px', type: 'primary' }))) : null)) : null)) : null)));
|
|
2359
|
+
};
|
|
2360
|
+
var templateObject_1$8, templateObject_2$7, templateObject_3$5, templateObject_4$3, templateObject_5$1, templateObject_6, templateObject_7;
|
|
2361
|
+
|
|
2362
|
+
var Trigger$1 = styled.div(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n box-sizing: border-box;\n border-radius: ", ";\n height: 40px;\n padding: 0 10px;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n background-image: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n z-index: 1;\n"], ["\n box-sizing: border-box;\n border-radius: ", ";\n height: 40px;\n padding: 0 10px;\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n background-color: ", ";\n background-image: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n z-index: 1;\n"])), function (props) { return (props.$showOptions ? '4px 4px 0px 0px' : '4px'); }, function (props) {
|
|
2363
|
+
if (props.$invalid) {
|
|
2364
|
+
return Colors.RED.Hex;
|
|
2365
|
+
}
|
|
2366
|
+
else if (props.$showOptions) {
|
|
2367
|
+
return Colors.PRIMARY.Hex;
|
|
2368
|
+
}
|
|
2369
|
+
else {
|
|
2370
|
+
return '#cccccc';
|
|
2371
|
+
}
|
|
2372
|
+
}, function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); });
|
|
2373
|
+
var Value = styled.div(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n"], ["\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n"])), Colors.BLACK.Hex, FontSizes.DEFAULT, FontStyles.DEFAULT);
|
|
2374
|
+
var Options = styled.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 0px 0px 4px 4px;\n border-top: none;\n position: relative;\n z-index: 2;\n box-sizing: border-box;\n"], ["\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n border-radius: 0px 0px 4px 4px;\n border-top: none;\n position: relative;\n z-index: 2;\n box-sizing: border-box;\n"])), Colors.PRIMARY.Hex);
|
|
2375
|
+
var Scrim = styled.div(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n"], ["\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n"])));
|
|
2376
|
+
var MultiSelect = function (_a) {
|
|
2377
|
+
var readOnly = _a.readOnly, _b = _a.displayCount, displayCount = _b === void 0 ? 3 : _b, invalid = _a.invalid, onChange = _a.onChange, _c = _a.options, options = _c === void 0 ? [] : _c, selected = _a.selected, showSelectAll = _a.showSelectAll, accessibleProps = __rest(_a, ["readOnly", "displayCount", "invalid", "onChange", "options", "selected", "showSelectAll"]);
|
|
2378
|
+
var _d = React.useState(false), showOptions = _d[0], setShowOptions = _d[1];
|
|
2379
|
+
var selected_options = options.filter(function (o) { return selected.includes(o.value); });
|
|
2380
|
+
return (React.createElement(React.Fragment, null,
|
|
2381
|
+
React.createElement(Trigger$1, __assign({ "$invalid": invalid, "$readOnly": readOnly, "$showOptions": showOptions, onClick: readOnly ? undefined : setShowOptions.bind(null, !showOptions) }, accessibleProps),
|
|
2382
|
+
React.createElement(Value, null, selected.length > 0 && selected.length <= displayCount
|
|
2383
|
+
? selected_options.map(function (o) { return o.label || o.value; }).join(', ')
|
|
2384
|
+
: "".concat(selected.length, " Selected")),
|
|
2385
|
+
React.createElement(Icon, { color: Colors.BLACK.Hex, path: js.mdiChevronDown, size: '22px' })),
|
|
2386
|
+
showOptions ? (React.createElement(Options, null,
|
|
2387
|
+
React.createElement(Checklist, { disabled: readOnly, onChange: onChange, options: options, selected: selected, showSelectAll: showSelectAll }))) : null,
|
|
2388
|
+
showOptions ? React.createElement(Scrim, { onClick: setShowOptions.bind(null, !showOptions) }) : null));
|
|
2389
|
+
};
|
|
2390
|
+
var templateObject_1$7, templateObject_2$6, templateObject_3$4, templateObject_4$2;
|
|
2391
|
+
|
|
2392
|
+
var Wrapper$4 = styled.div(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n border-radius: 4px;\n height: 40px;\n background-color: ", ";\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n padding: 10px 0px;\n display: flex;\n align-items: center;\n"], ["\n border-radius: 4px;\n height: 40px;\n background-color: ", ";\n position: relative;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-color: ", ";\n box-sizing: border-box;\n padding: 10px 0px;\n display: flex;\n align-items: center;\n"])), function (props) { return (props.$readOnly ? '#f5f5f5' : '#ffffff'); }, function (props) { return (props.$invalid ? Colors.RED.Hex : '#cccccc'); });
|
|
2393
|
+
var Trigger = styled.select(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n appearance: none;\n box-shadow: none;\n outline: none;\n border: none;\n border-radius: 4px;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n background-color: transparent;\n background-image: none;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 30px 0px 10px;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n"], ["\n appearance: none;\n box-shadow: none;\n outline: none;\n border: none;\n border-radius: 4px;\n color: ", ";\n font-size: ", ";\n font-weight: 400;\n font-family: ", ";\n line-height: 2.9em;\n background-color: transparent;\n background-image: none;\n cursor: pointer;\n width: 100%;\n box-sizing: border-box;\n padding: 0px 30px 0px 10px;\n box-sizing: border-box;\n position: relative;\n z-index: 2;\n"])), Colors.BLACK.Hex, FontSizes.DEFAULT, FontStyles.DEFAULT);
|
|
2394
|
+
var IconWrapper$1 = styled.span(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n position: absolute;\n right: 4px;\n height: 22px;\n z-index: 1;\n"], ["\n position: absolute;\n right: 4px;\n height: 22px;\n z-index: 1;\n"])));
|
|
2395
|
+
var Select = function (_a) {
|
|
2396
|
+
var options = _a.options, optionGroups = _a.optionGroups, placeholder = _a.placeholder, readOnly = _a.readOnly, invalid = _a.invalid, value = _a.value, onChange = _a.onChange, accessibleProps = __rest(_a, ["options", "optionGroups", "placeholder", "readOnly", "invalid", "value", "onChange"]);
|
|
2397
|
+
return (React.createElement(Wrapper$4, { "$invalid": invalid, "$readOnly": readOnly },
|
|
2398
|
+
React.createElement(Trigger, __assign({ disabled: readOnly, onChange: onChange, placeholder: placeholder, value: value }, accessibleProps),
|
|
2399
|
+
placeholder ? (React.createElement("option", { disabled: true, value: '' }, placeholder)) : null,
|
|
2400
|
+
optionGroups &&
|
|
2401
|
+
optionGroups.map(function (group, i) {
|
|
2402
|
+
return (React.createElement("optgroup", { key: i, label: group.label || "Group ".concat(i) }, group.options.map(function (option, i) {
|
|
2403
|
+
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
2404
|
+
})));
|
|
2405
|
+
}),
|
|
2406
|
+
options &&
|
|
2407
|
+
options.map(function (option, i) {
|
|
2408
|
+
return (React.createElement("option", { key: i, value: option.value }, option.label || option.value));
|
|
2409
|
+
})),
|
|
2410
|
+
React.createElement(IconWrapper$1, null,
|
|
2411
|
+
React.createElement(Icon, { color: Colors.BLACK.Hex, path: js.mdiChevronDown, size: '22px' }))));
|
|
2412
|
+
};
|
|
2413
|
+
var templateObject_1$6, templateObject_2$5, templateObject_3$3;
|
|
2414
|
+
|
|
2415
|
+
var Wrapper$3 = styled.nav(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n column-gap: 10px;\n"], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n column-gap: 10px;\n"])));
|
|
2416
|
+
var Pagination = function (_a) {
|
|
2417
|
+
var _b = _a.currentPage, currentPage = _b === void 0 ? 1 : _b, onClick = _a.onClick, _c = _a.pageCount, pageCount = _c === void 0 ? 0 : _c, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount"]);
|
|
2418
|
+
var is_first_page = currentPage === 1;
|
|
2419
|
+
var is_last_page = currentPage === pageCount;
|
|
2420
|
+
var handlePrevClick = function () {
|
|
2421
|
+
if (!is_first_page) {
|
|
2422
|
+
onClick(currentPage - 1);
|
|
2423
|
+
}
|
|
2424
|
+
};
|
|
2425
|
+
var handleNextClick = function () {
|
|
2426
|
+
if (!is_last_page) {
|
|
2427
|
+
onClick(currentPage + 1);
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2430
|
+
var handlePageChange = function (e) {
|
|
2431
|
+
var new_page = parseInt(e.target.value, 10);
|
|
2432
|
+
if (new_page !== currentPage) {
|
|
2433
|
+
onClick(new_page);
|
|
2434
|
+
}
|
|
2435
|
+
};
|
|
2436
|
+
return (React.createElement(Wrapper$3, __assign({}, accessibleProps),
|
|
2437
|
+
React.createElement(Button, { disabled: is_first_page, icon: js.mdiChevronLeft, onClick: handlePrevClick, small: true }),
|
|
2438
|
+
React.createElement(Select, { onChange: handlePageChange, options: Array.from(Array(pageCount).keys(), function (p) { return p + 1; }).map(function (p) { return ({
|
|
2439
|
+
label: "Page ".concat(p),
|
|
2440
|
+
value: "".concat(p),
|
|
2441
|
+
}); }), value: "".concat(currentPage) }),
|
|
2442
|
+
React.createElement(Button, { disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
2443
|
+
};
|
|
2444
|
+
var templateObject_1$5;
|
|
2445
|
+
|
|
2446
|
+
var Wrapper$2 = styled.label(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n padding: 4px 0;\n cursor: ", ";\n display: flex;\n align-items: center;\n font-size: ", ";\n line-height: 1.6rm;\n box-sizing: border-box;\n"], ["\n padding: 4px 0;\n cursor: ", ";\n display: flex;\n align-items: center;\n font-size: ", ";\n line-height: 1.6rm;\n box-sizing: border-box;\n"])), function (props) { return (props.$disabled ? 'default' : 'pointer'); }, FontSizes.DEFAULT);
|
|
2447
|
+
var Input = styled.input(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n font-size: 20px;\n margin: 0px 0px 2px 0px;\n line-height: 1.1em;\n"], ["\n font-size: 20px;\n margin: 0px 0px 2px 0px;\n line-height: 1.1em;\n"])));
|
|
2448
|
+
var Label$1 = styled.span(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n color: ", ";\n line-height: 1.6em;\n margin-left: 6px;\n"], ["\n font-family: ", ";\n font-size: ", ";\n font-weight: 400;\n color: ", ";\n line-height: 1.6em;\n margin-left: 6px;\n"])), FontStyles.DEFAULT, FontSizes.DEFAULT, Colors.BLACK.Hex);
|
|
2449
|
+
var Radio = function (_a) {
|
|
2450
|
+
var children = _a.children, disabled = _a.disabled, checked = _a.checked, onChange = _a.onChange, value = _a.value, accessibleProps = __rest(_a, ["children", "disabled", "checked", "onChange", "value"]);
|
|
2451
|
+
return (React.createElement(Wrapper$2, __assign({ "$disabled": disabled }, accessibleProps),
|
|
2452
|
+
React.createElement(Input, { checked: checked, disabled: disabled, name: accessibleProps.name, onChange: disabled ? undefined : onChange, type: 'radio', value: value }),
|
|
2453
|
+
React.createElement(Label$1, null, children)));
|
|
2454
|
+
};
|
|
2455
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$2;
|
|
2456
|
+
|
|
2457
|
+
var RadioList = function (_a) {
|
|
2458
|
+
var disabled = _a.disabled, onChange = _a.onChange, options = _a.options, value = _a.value, accessibleProps = __rest(_a, ["disabled", "onChange", "options", "value"]);
|
|
2459
|
+
return (React.createElement(React.Fragment, null, options.map(function (option) {
|
|
2460
|
+
var label = option.label || option.value;
|
|
2461
|
+
return (React.createElement(Radio, __assign({ checked: value === option.value, disabled: disabled, onChange: onChange, value: option.value }, accessibleProps), label));
|
|
2462
|
+
})));
|
|
2463
|
+
};
|
|
2464
|
+
|
|
2465
|
+
var StyledTable = styled.table(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n width: 100%;\n margin-top: 1px;\n table-layout: ", ";\n border-collapse: collapse;\n text-indent: 0px;\n border-spacing: 0px;\n border-color: none;\n box-sizing: border-box;\n"], ["\n width: 100%;\n margin-top: 1px;\n table-layout: ", ";\n border-collapse: collapse;\n text-indent: 0px;\n border-spacing: 0px;\n border-color: none;\n box-sizing: border-box;\n"])), function (props) { return props.$tableLayout || 'auto'; });
|
|
2466
|
+
var Header = styled.th(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n padding: 12px;\n text-align: left;\n font-weight: 500;\n border-bottom: 1px solid #e5e5e5;\n border-top: 1px solid #e5e5e5;\n text-transform: uppercase;\n font-size: 12px;\n font-family: ", ";\n letter-spacing: 1px;\n white-space: nowrap;\n line-height: 1em;\n position: relative;\n box-sizing: border-box;\n width: ", ";\n cursor: ", ";\n color: ", ";\n"], ["\n padding: 12px;\n text-align: left;\n font-weight: 500;\n border-bottom: 1px solid #e5e5e5;\n border-top: 1px solid #e5e5e5;\n text-transform: uppercase;\n font-size: 12px;\n font-family: ", ";\n letter-spacing: 1px;\n white-space: nowrap;\n line-height: 1em;\n position: relative;\n box-sizing: border-box;\n width: ", ";\n cursor: ", ";\n color: ", ";\n"])), FontStyles.DEFAULT, function (props) { return props.$width || 'auto'; }, function (props) { return (props.$isSortable ? 'pointer' : 'default'); }, function (props) { return (props.$isSortable ? Colors.PRIMARY.Hex : Colors.BLACK.Hex); });
|
|
2467
|
+
var Row = styled.tr(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n cursor: ", ";\n transition: all 0.2s;\n background-color: ", ";\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n }\n"], ["\n cursor: ", ";\n transition: all 0.2s;\n background-color: ", ";\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n }\n"])), function (props) { return (props.$isClickable ? 'pointer' : 'default'); }, function (props) { return props.$bgColor; }, function (props) {
|
|
2468
|
+
return props.$isClickable ? "rgba(".concat(Colors.PRIMARY.Rgb, ", 0.1)") : props.$bgColor;
|
|
2469
|
+
});
|
|
2470
|
+
var Column = styled.td(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n padding: 16px 12px;\n vertical-align: middle;\n word-break: break-word;\n line-height: 1.4em;\n box-sizing: border-box;\n width: ", ";\n"], ["\n padding: 16px 12px;\n vertical-align: middle;\n word-break: break-word;\n line-height: 1.4em;\n box-sizing: border-box;\n width: ", ";\n"])), function (props) { return props.$width || 'auto'; });
|
|
2471
|
+
var IconWrapper = styled.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n margin-left: 2px;\n"], ["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n margin-left: 2px;\n"])));
|
|
2472
|
+
var Table = function (_a) {
|
|
2473
|
+
var _b = _a.columns, columns = _b === void 0 ? [] : _b, _c = _a.data, data = _c === void 0 ? [] : _c, sortBy = _a.sortBy, sortDirection = _a.sortDirection, hideHeaders = _a.hideHeaders, onRowClick = _a.onRowClick, onSortChange = _a.onSortChange, tableLayout = _a.tableLayout, accessibleProps = __rest(_a, ["columns", "data", "sortBy", "sortDirection", "hideHeaders", "onRowClick", "onSortChange", "tableLayout"]);
|
|
2474
|
+
return (React.createElement(StyledTable, __assign({ "$tableLayout": tableLayout }, accessibleProps),
|
|
2475
|
+
hideHeaders ? null : (React.createElement("thead", null,
|
|
2476
|
+
React.createElement("tr", null, columns.map(function (column, i) {
|
|
2477
|
+
return (React.createElement(Header, { "$isSortable": column.isSortable, "$width": column.width, key: i, onClick: onSortChange === null || onSortChange === void 0 ? void 0 : onSortChange.bind(null, column.id) },
|
|
2478
|
+
column.label,
|
|
2479
|
+
column.isSortable && sortBy === column.id ? (React.createElement(IconWrapper, null,
|
|
2480
|
+
React.createElement(Icon, { color: Colors.PRIMARY.Hex, path: sortDirection === 'asc' ? js.mdiChevronUp : js.mdiChevronDown, size: '20px' }))) : null));
|
|
2481
|
+
})))),
|
|
2482
|
+
data.length ? (React.createElement("tbody", null, data.map(function (row, i) {
|
|
2483
|
+
return (React.createElement(Row, { "$bgColor": i % 2 === 0 ? '#ffffff' : '#f9f9f9', "$isClickable": !!onRowClick, key: i, onClick: onRowClick ? onRowClick.bind(null, row) : undefined }, columns.map(function (column, i) {
|
|
2484
|
+
return (React.createElement(Column, { "$width": columns[i].width, key: i }, column.render ? column.render(row) : row[column.id] || 'N/A'));
|
|
2485
|
+
})));
|
|
2486
|
+
}))) : null));
|
|
2487
|
+
};
|
|
2488
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$1, templateObject_4$1, templateObject_5;
|
|
2489
|
+
|
|
2490
|
+
var Wrapper$1 = styled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n box-sizing: border-box;\n align-items: flex-end;\n border-top: 1px solid #e5e5e5;\n border-bottom: 1px solid #e5e5e5;\n flex-shrink: 0;\n align-self: stretch;\n padding: 0;\n margin: 0;\n"], ["\n display: flex;\n box-sizing: border-box;\n align-items: flex-end;\n border-top: 1px solid #e5e5e5;\n border-bottom: 1px solid #e5e5e5;\n flex-shrink: 0;\n align-self: stretch;\n padding: 0;\n margin: 0;\n"])));
|
|
2491
|
+
var Tab = styled.div(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n font-size: ", ";\n font-family: ", ";\n font-weight: ", ";\n color: ", ";\n line-height: 1em;\n padding: 16px 30px 12px;\n margin: 0 0 -1px 0;\n border-bottom-width: 4px;\n border-bottom-style: solid;\n border-bottom-color: ", ";\n cursor: ", ";\n box-sizing: border-box;\n &:hover {\n color: ", ";\n font-weight: 500;\n }\n"], ["\n font-size: ", ";\n font-family: ", ";\n font-weight: ", ";\n color: ", ";\n line-height: 1em;\n padding: 16px 30px 12px;\n margin: 0 0 -1px 0;\n border-bottom-width: 4px;\n border-bottom-style: solid;\n border-bottom-color: ", ";\n cursor: ", ";\n box-sizing: border-box;\n &:hover {\n color: ", ";\n font-weight: 500;\n }\n"])), FontSizes.DEFAULT, FontStyles.DEFAULT, function (props) { return (props.$isActive ? 500 : 400); }, function (props) { return (props.$isActive ? Colors.BLACK.Hex : Colors.MEDIUM_GRAY.Hex); }, function (props) { return (props.$isActive ? Colors.PRIMARY.Hex : 'transparent'); }, function (props) { return (props.$isActive ? 'default' : 'pointer'); }, function (props) { return (props.$isActive ? Colors.BLACK.Hex : Colors.PRIMARY.Hex); });
|
|
2492
|
+
var Tabs = function (_a) {
|
|
2493
|
+
var tabs = _a.tabs, accessibleProps = __rest(_a, ["tabs"]);
|
|
2494
|
+
return (React.createElement(Wrapper$1, __assign({}, accessibleProps), tabs.map(function (_a) {
|
|
2495
|
+
var isActive = _a.isActive, label = _a.label, accessibleProps = __rest(_a, ["isActive", "label"]);
|
|
2496
|
+
return (React.createElement(Tab, __assign({ "$isActive": isActive || false }, accessibleProps), label));
|
|
2497
|
+
})));
|
|
2498
|
+
};
|
|
2499
|
+
Tabs.defaultProps = {};
|
|
2500
|
+
var templateObject_1$2, templateObject_2$2;
|
|
2501
|
+
|
|
2502
|
+
var Wrapper = styled.div(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: inline-block;\n border-radius: 4px;\n padding: 4px 6px;\n background: ", ";\n color: #ffffff;\n box-sizing: border-box;\n cursor: ", ";\n"], ["\n display: inline-block;\n border-radius: 4px;\n padding: 4px 6px;\n background: ", ";\n color: #ffffff;\n box-sizing: border-box;\n cursor: ", ";\n"])), function (props) { return Colors[props.$color].Hex; }, function (props) { return (props.$removable ? 'pointer' : 'default'); });
|
|
2503
|
+
var Content = styled.div(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
2504
|
+
var Label = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: #ffffff;\n font-size: ", ";\n font-weight: 500;\n font-family: ", ";\n line-height: 1.2em;\n"], ["\n color: #ffffff;\n font-size: ", ";\n font-weight: 500;\n font-family: ", ";\n line-height: 1.2em;\n"])), FontSizes.SMALL, FontStyles.DEFAULT);
|
|
2505
|
+
var Remove = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-left: 10px;\n display: flex;\n align-items: center;\n"], ["\n margin-left: 10px;\n display: flex;\n align-items: center;\n"])));
|
|
2506
|
+
var Tag = function (_a) {
|
|
2507
|
+
var children = _a.children, _b = _a.color, color = _b === void 0 ? 'PRIMARY' : _b, removable = _a.removable, onClick = _a.onClick, accessibleProps = __rest(_a, ["children", "color", "removable", "onClick"]);
|
|
2508
|
+
return (React.createElement(Wrapper, __assign({ "$color": color, "$removable": removable, onClick: onClick }, accessibleProps),
|
|
2509
|
+
React.createElement(Content, null,
|
|
2510
|
+
React.createElement(Label, null, children),
|
|
2511
|
+
removable ? (React.createElement(Remove, null,
|
|
2512
|
+
React.createElement(Icon, { color: '#ffffff', path: js.mdiClose, size: '15px' }))) : null)));
|
|
2513
|
+
};
|
|
2514
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3, templateObject_4;
|
|
2515
|
+
|
|
2516
|
+
var Track = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 24px;\n border-radius: 12px;\n background: ", ";\n display: flex;\n align-items: center;\n cursor: pointer;\n width: 40px;\n padding: 2px;\n box-sizing: border-box;\n"], ["\n height: 24px;\n border-radius: 12px;\n background: ", ";\n display: flex;\n align-items: center;\n cursor: pointer;\n width: 40px;\n padding: 2px;\n box-sizing: border-box;\n"])), function (props) { return (props.$on ? Colors.GREEN.Hex : Colors.BLACK.Hex); });
|
|
2517
|
+
var Handle = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 20px;\n height: 20px;\n border-radius: 10px;\n background: #ffffff;\n margin-left: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n"], ["\n width: 20px;\n height: 20px;\n border-radius: 10px;\n background: #ffffff;\n margin-left: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n"])), function (props) { return (props.$on ? 'auto' : '0px'); });
|
|
2518
|
+
var Toggle = function (_a) {
|
|
2519
|
+
var onClick = _a.onClick, on = _a.on, accessibleProps = __rest(_a, ["onClick", "on"]);
|
|
2520
|
+
return (React.createElement(Track, __assign({ "$on": on, onClick: onClick }, accessibleProps),
|
|
2521
|
+
React.createElement("input", { checked: on, name: accessibleProps.name, type: 'hidden' }),
|
|
2522
|
+
React.createElement(Handle, { "$on": on },
|
|
2523
|
+
React.createElement(Icon, { color: on ? Colors.GREEN.Hex : Colors.BLACK.Hex, path: on ? js.mdiCheck : js.mdiClose, size: '16px' }))));
|
|
2524
|
+
};
|
|
2525
|
+
Toggle.defaultProps = {};
|
|
2526
|
+
var templateObject_1, templateObject_2;
|
|
2527
|
+
|
|
2528
|
+
exports.Accordion = Accordion;
|
|
2529
|
+
exports.ActionDialog = ActionDialog;
|
|
2530
|
+
exports.Alert = Alert;
|
|
2531
|
+
exports.BulkActionBar = BulkActionBar;
|
|
2532
|
+
exports.Button = Button;
|
|
2533
|
+
exports.Checkbox = Checkbox;
|
|
2534
|
+
exports.Checklist = Checklist;
|
|
2535
|
+
exports.Copy = Copy;
|
|
2536
|
+
exports.Field = Field;
|
|
2537
|
+
exports.Heading = Heading;
|
|
2538
|
+
exports.Input = Input$1;
|
|
2539
|
+
exports.Modal = Modal;
|
|
2540
|
+
exports.MultiSelect = MultiSelect;
|
|
2541
|
+
exports.Pagination = Pagination;
|
|
2542
|
+
exports.Radio = Radio;
|
|
2543
|
+
exports.RadioList = RadioList;
|
|
2544
|
+
exports.Select = Select;
|
|
2545
|
+
exports.Table = Table;
|
|
2546
|
+
exports.Tabs = Tabs;
|
|
2547
|
+
exports.Tag = Tag;
|
|
2548
|
+
exports.Toggle = Toggle;
|
|
2549
|
+
//# sourceMappingURL=index.js.map
|