@kaizen/components 1.18.1 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/SuccessIcon-03b801a8.js +140 -0
- package/dist/cjs/SuccessIcon-03b801a8.js.map +1 -0
- package/dist/cjs/dts/FilterBar/context/FilterBarContext.d.ts +1 -0
- package/dist/cjs/dts/KaizenProvider/KaizenProvider.d.ts +2 -1
- package/dist/cjs/future.js +42 -39
- package/dist/cjs/future.js.map +1 -1
- package/dist/cjs/index.css +2 -6371
- package/dist/cjs/index.js +1124 -116628
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/SuccessIcon-a202c634.js +133 -0
- package/dist/esm/SuccessIcon-a202c634.js.map +1 -0
- package/dist/esm/dts/FilterBar/context/FilterBarContext.d.ts +1 -0
- package/dist/esm/dts/KaizenProvider/KaizenProvider.d.ts +2 -1
- package/dist/esm/future.js +50 -47
- package/dist/esm/future.js.map +1 -1
- package/dist/esm/index.css +2 -6371
- package/dist/esm/index.js +1233 -116719
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/styles.css +1 -1
- package/locales/ar.json +24 -0
- package/locales/bg.json +24 -0
- package/locales/cs.json +24 -0
- package/locales/cy.json +24 -0
- package/locales/da.json +24 -0
- package/locales/de.json +24 -0
- package/locales/el.json +24 -0
- package/locales/en-GB.json +24 -0
- package/locales/en.json +25 -0
- package/locales/es-419.json +24 -0
- package/locales/es.json +24 -0
- package/locales/et.json +24 -0
- package/locales/fi.json +24 -0
- package/locales/fr-CA.json +24 -0
- package/locales/fr.json +24 -0
- package/locales/he.json +24 -0
- package/locales/hi.json +24 -0
- package/locales/ht.json +24 -0
- package/locales/hu.json +24 -0
- package/locales/id.json +24 -0
- package/locales/it.json +24 -0
- package/locales/ja.json +24 -0
- package/locales/km-KH.json +24 -0
- package/locales/ko.json +24 -0
- package/locales/lt.json +24 -0
- package/locales/lv.json +24 -0
- package/locales/mi.json +24 -0
- package/locales/ms.json +24 -0
- package/locales/nb.json +24 -0
- package/locales/nl.json +24 -0
- package/locales/pl.json +24 -0
- package/locales/pt-BR.json +24 -0
- package/locales/pt.json +24 -0
- package/locales/ro.json +24 -0
- package/locales/ru.json +24 -0
- package/locales/si-LK.json +24 -0
- package/locales/sk.json +24 -0
- package/locales/sr.json +24 -0
- package/locales/sv.json +24 -0
- package/locales/th.json +24 -0
- package/locales/tl.json +24 -0
- package/locales/tr.json +24 -0
- package/locales/uk.json +24 -0
- package/locales/vi.json +24 -0
- package/locales/zh-TW.json +24 -0
- package/locales/zh.json +24 -0
- package/package.json +6 -5
- package/dist/cjs/index-0379a843.js +0 -3972
- package/dist/cjs/index-0379a843.js.map +0 -1
- package/dist/esm/index-e92c892e.js +0 -3948
- package/dist/esm/index-e92c892e.js.map +0 -1
|
@@ -1,3948 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import require$$0 from 'process';
|
|
3
|
-
|
|
4
|
-
/******************************************************************************
|
|
5
|
-
Copyright (c) Microsoft Corporation.
|
|
6
|
-
|
|
7
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
-
purpose with or without fee is hereby granted.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
-
***************************************************************************** */
|
|
18
|
-
/* global Reflect, Promise */
|
|
19
|
-
|
|
20
|
-
var extendStatics = function(d, b) {
|
|
21
|
-
extendStatics = Object.setPrototypeOf ||
|
|
22
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
23
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
24
|
-
return extendStatics(d, b);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
function __extends(d, b) {
|
|
28
|
-
if (typeof b !== "function" && b !== null)
|
|
29
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
30
|
-
extendStatics(d, b);
|
|
31
|
-
function __() { this.constructor = d; }
|
|
32
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var __assign$3 = function() {
|
|
36
|
-
__assign$3 = Object.assign || function __assign(t) {
|
|
37
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
38
|
-
s = arguments[i];
|
|
39
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
40
|
-
}
|
|
41
|
-
return t;
|
|
42
|
-
};
|
|
43
|
-
return __assign$3.apply(this, arguments);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
function __rest$3(s, e) {
|
|
47
|
-
var t = {};
|
|
48
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
49
|
-
t[p] = s[p];
|
|
50
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
51
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
52
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
53
|
-
t[p[i]] = s[p[i]];
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/** @deprecated */
|
|
59
|
-
function __spreadArrays() {
|
|
60
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
61
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
62
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
63
|
-
r[k] = a[j];
|
|
64
|
-
return r;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function __spreadArray(to, from, pack) {
|
|
68
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
69
|
-
if (ar || !(i in from)) {
|
|
70
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
71
|
-
ar[i] = from[i];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
78
|
-
|
|
79
|
-
function getDefaultExportFromCjs (x) {
|
|
80
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function getAugmentedNamespace(n) {
|
|
84
|
-
if (n.__esModule) return n;
|
|
85
|
-
var f = n.default;
|
|
86
|
-
if (typeof f == "function") {
|
|
87
|
-
var a = function a () {
|
|
88
|
-
if (this instanceof a) {
|
|
89
|
-
var args = [null];
|
|
90
|
-
args.push.apply(args, arguments);
|
|
91
|
-
var Ctor = Function.bind.apply(f, args);
|
|
92
|
-
return new Ctor();
|
|
93
|
-
}
|
|
94
|
-
return f.apply(this, arguments);
|
|
95
|
-
};
|
|
96
|
-
a.prototype = f.prototype;
|
|
97
|
-
} else a = {};
|
|
98
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
99
|
-
Object.keys(n).forEach(function (k) {
|
|
100
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
101
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function () {
|
|
104
|
-
return n[k];
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
return a;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
var classnames$1 = {exports: {}};
|
|
112
|
-
|
|
113
|
-
/*!
|
|
114
|
-
Copyright (c) 2018 Jed Watson.
|
|
115
|
-
Licensed under the MIT License (MIT), see
|
|
116
|
-
http://jedwatson.github.io/classnames
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
|
-
(function (module) {
|
|
120
|
-
/* global define */
|
|
121
|
-
|
|
122
|
-
(function () {
|
|
123
|
-
|
|
124
|
-
var hasOwn = {}.hasOwnProperty;
|
|
125
|
-
|
|
126
|
-
function classNames() {
|
|
127
|
-
var classes = [];
|
|
128
|
-
|
|
129
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
130
|
-
var arg = arguments[i];
|
|
131
|
-
if (!arg) continue;
|
|
132
|
-
|
|
133
|
-
var argType = typeof arg;
|
|
134
|
-
|
|
135
|
-
if (argType === 'string' || argType === 'number') {
|
|
136
|
-
classes.push(arg);
|
|
137
|
-
} else if (Array.isArray(arg)) {
|
|
138
|
-
if (arg.length) {
|
|
139
|
-
var inner = classNames.apply(null, arg);
|
|
140
|
-
if (inner) {
|
|
141
|
-
classes.push(inner);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
} else if (argType === 'object') {
|
|
145
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
146
|
-
classes.push(arg.toString());
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
for (var key in arg) {
|
|
151
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
152
|
-
classes.push(key);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return classes.join(' ');
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (module.exports) {
|
|
162
|
-
classNames.default = classNames;
|
|
163
|
-
module.exports = classNames;
|
|
164
|
-
} else {
|
|
165
|
-
window.classNames = classNames;
|
|
166
|
-
}
|
|
167
|
-
}());
|
|
168
|
-
} (classnames$1));
|
|
169
|
-
|
|
170
|
-
var classnamesExports = classnames$1.exports;
|
|
171
|
-
var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
172
|
-
|
|
173
|
-
var yellow = "\x1B[33m ";
|
|
174
|
-
var reset = "\x1B[0m ";
|
|
175
|
-
var warn = function(message) {
|
|
176
|
-
console.warn("".concat(yellow, "\nKAIZEN WARNING:\n").concat(singleLine(message)).concat(reset, "\n"));
|
|
177
|
-
};
|
|
178
|
-
var singleLine = function(message) {
|
|
179
|
-
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
var styles = {"icon":"SVG-module_icon__FE6iP","inheritSize":"SVG-module_inheritSize__wiKMe","interactiveIconWrapper":"SVG-module_interactiveIconWrapper__ACcob","disabled":"SVG-module_disabled__WB5BU","hover":"SVG-module_hover__QivVO","active":"SVG-module_active__R9jic","reversedInteractiveIconWrapper":"SVG-module_reversedInteractiveIconWrapper__hTsnf SVG-module_interactiveIconWrapper__ACcob"};
|
|
183
|
-
|
|
184
|
-
var SVG = function(_a) {
|
|
185
|
-
var _b;
|
|
186
|
-
var _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, _g = _a.viewBox, viewBox = _g === void 0 ? "0 0 20 20" : _g, classNameOverride = _a.classNameOverride, children = _a.children, props = __rest$3(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
|
|
187
|
-
var isMeaningfulImg = role === "img";
|
|
188
|
-
if (isMeaningfulImg && !title) {
|
|
189
|
-
warn(`
|
|
190
|
-
Icon with role "img" missing a title attribute.
|
|
191
|
-
|
|
192
|
-
Assistive technologies that enable vision-impaired users to read web pages
|
|
193
|
-
can treat images (including icons) as either decorative or meaningful. Only
|
|
194
|
-
images with a role of "img" (meaningful) will be read aloud to the user.
|
|
195
|
-
These images must therefore have a title attribute to provide the text that
|
|
196
|
-
will be read aloud.
|
|
197
|
-
|
|
198
|
-
Either add the missing title prop, or set this icon's role to
|
|
199
|
-
"presentation" to indicate it is not meaningful.
|
|
200
|
-
`);
|
|
201
|
-
}
|
|
202
|
-
var renderTitle = function() {
|
|
203
|
-
return isMeaningfulImg && !!title && React__default.createElement("title", null, title);
|
|
204
|
-
};
|
|
205
|
-
var renderDesc = function() {
|
|
206
|
-
return isMeaningfulImg && !!desc && React__default.createElement("desc", null, desc);
|
|
207
|
-
};
|
|
208
|
-
var accessibilityProps = (_b = {
|
|
209
|
-
role
|
|
210
|
-
}, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
|
|
211
|
-
return React__default.createElement(
|
|
212
|
-
"svg",
|
|
213
|
-
__assign$3({
|
|
214
|
-
className: classnames(styles.icon, classNameOverride, inheritSize && styles.inheritSize),
|
|
215
|
-
viewBox,
|
|
216
|
-
// Work around IE11 making all SVGs focusable.
|
|
217
|
-
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
218
|
-
focusable: "false"
|
|
219
|
-
}, accessibilityProps, props),
|
|
220
|
-
renderTitle(),
|
|
221
|
-
renderDesc(),
|
|
222
|
-
children
|
|
223
|
-
);
|
|
224
|
-
};
|
|
225
|
-
SVG.displayName = "SVG";
|
|
226
|
-
|
|
227
|
-
var propTypes = {exports: {}};
|
|
228
|
-
|
|
229
|
-
var reactIs = {exports: {}};
|
|
230
|
-
|
|
231
|
-
var reactIs_production_min = {};
|
|
232
|
-
|
|
233
|
-
/** @license React v16.13.1
|
|
234
|
-
* react-is.production.min.js
|
|
235
|
-
*
|
|
236
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the MIT license found in the
|
|
239
|
-
* LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
var hasRequiredReactIs_production_min;
|
|
243
|
-
|
|
244
|
-
function requireReactIs_production_min () {
|
|
245
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
246
|
-
hasRequiredReactIs_production_min = 1;
|
|
247
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
248
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
249
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
250
|
-
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
251
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
252
|
-
reactIs_production_min.isValidElementType=function(a){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)};reactIs_production_min.typeOf=z;
|
|
253
|
-
return reactIs_production_min;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
var reactIs_development = {};
|
|
257
|
-
|
|
258
|
-
/** @license React v16.13.1
|
|
259
|
-
* react-is.development.js
|
|
260
|
-
*
|
|
261
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the MIT license found in the
|
|
264
|
-
* LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
|
-
var hasRequiredReactIs_development;
|
|
268
|
-
|
|
269
|
-
function requireReactIs_development () {
|
|
270
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
271
|
-
hasRequiredReactIs_development = 1;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
if (process.env.NODE_ENV !== "production") {
|
|
276
|
-
(function() {
|
|
277
|
-
|
|
278
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
279
|
-
// nor polyfill, then a plain number is used for performance.
|
|
280
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
281
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
282
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
283
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
284
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
285
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
286
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
287
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
288
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
289
|
-
|
|
290
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
291
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
292
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
293
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
294
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
295
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
296
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
297
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
298
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
299
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
300
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
301
|
-
|
|
302
|
-
function isValidElementType(type) {
|
|
303
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
304
|
-
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);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
function typeOf(object) {
|
|
308
|
-
if (typeof object === 'object' && object !== null) {
|
|
309
|
-
var $$typeof = object.$$typeof;
|
|
310
|
-
|
|
311
|
-
switch ($$typeof) {
|
|
312
|
-
case REACT_ELEMENT_TYPE:
|
|
313
|
-
var type = object.type;
|
|
314
|
-
|
|
315
|
-
switch (type) {
|
|
316
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
317
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
318
|
-
case REACT_FRAGMENT_TYPE:
|
|
319
|
-
case REACT_PROFILER_TYPE:
|
|
320
|
-
case REACT_STRICT_MODE_TYPE:
|
|
321
|
-
case REACT_SUSPENSE_TYPE:
|
|
322
|
-
return type;
|
|
323
|
-
|
|
324
|
-
default:
|
|
325
|
-
var $$typeofType = type && type.$$typeof;
|
|
326
|
-
|
|
327
|
-
switch ($$typeofType) {
|
|
328
|
-
case REACT_CONTEXT_TYPE:
|
|
329
|
-
case REACT_FORWARD_REF_TYPE:
|
|
330
|
-
case REACT_LAZY_TYPE:
|
|
331
|
-
case REACT_MEMO_TYPE:
|
|
332
|
-
case REACT_PROVIDER_TYPE:
|
|
333
|
-
return $$typeofType;
|
|
334
|
-
|
|
335
|
-
default:
|
|
336
|
-
return $$typeof;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
case REACT_PORTAL_TYPE:
|
|
342
|
-
return $$typeof;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
return undefined;
|
|
347
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
348
|
-
|
|
349
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
350
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
351
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
352
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
353
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
354
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
355
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
356
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
357
|
-
var Memo = REACT_MEMO_TYPE;
|
|
358
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
359
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
360
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
361
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
362
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
363
|
-
|
|
364
|
-
function isAsyncMode(object) {
|
|
365
|
-
{
|
|
366
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
367
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
368
|
-
|
|
369
|
-
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.');
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
374
|
-
}
|
|
375
|
-
function isConcurrentMode(object) {
|
|
376
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
377
|
-
}
|
|
378
|
-
function isContextConsumer(object) {
|
|
379
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
380
|
-
}
|
|
381
|
-
function isContextProvider(object) {
|
|
382
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
383
|
-
}
|
|
384
|
-
function isElement(object) {
|
|
385
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
386
|
-
}
|
|
387
|
-
function isForwardRef(object) {
|
|
388
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
389
|
-
}
|
|
390
|
-
function isFragment(object) {
|
|
391
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
392
|
-
}
|
|
393
|
-
function isLazy(object) {
|
|
394
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
395
|
-
}
|
|
396
|
-
function isMemo(object) {
|
|
397
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
398
|
-
}
|
|
399
|
-
function isPortal(object) {
|
|
400
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
401
|
-
}
|
|
402
|
-
function isProfiler(object) {
|
|
403
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
404
|
-
}
|
|
405
|
-
function isStrictMode(object) {
|
|
406
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
407
|
-
}
|
|
408
|
-
function isSuspense(object) {
|
|
409
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
413
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
414
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
415
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
416
|
-
reactIs_development.Element = Element;
|
|
417
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
418
|
-
reactIs_development.Fragment = Fragment;
|
|
419
|
-
reactIs_development.Lazy = Lazy;
|
|
420
|
-
reactIs_development.Memo = Memo;
|
|
421
|
-
reactIs_development.Portal = Portal;
|
|
422
|
-
reactIs_development.Profiler = Profiler;
|
|
423
|
-
reactIs_development.StrictMode = StrictMode;
|
|
424
|
-
reactIs_development.Suspense = Suspense;
|
|
425
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
426
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
427
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
428
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
429
|
-
reactIs_development.isElement = isElement;
|
|
430
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
431
|
-
reactIs_development.isFragment = isFragment;
|
|
432
|
-
reactIs_development.isLazy = isLazy;
|
|
433
|
-
reactIs_development.isMemo = isMemo;
|
|
434
|
-
reactIs_development.isPortal = isPortal;
|
|
435
|
-
reactIs_development.isProfiler = isProfiler;
|
|
436
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
437
|
-
reactIs_development.isSuspense = isSuspense;
|
|
438
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
439
|
-
reactIs_development.typeOf = typeOf;
|
|
440
|
-
})();
|
|
441
|
-
}
|
|
442
|
-
return reactIs_development;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
var hasRequiredReactIs;
|
|
446
|
-
|
|
447
|
-
function requireReactIs () {
|
|
448
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
449
|
-
hasRequiredReactIs = 1;
|
|
450
|
-
|
|
451
|
-
if (process.env.NODE_ENV === 'production') {
|
|
452
|
-
reactIs.exports = requireReactIs_production_min();
|
|
453
|
-
} else {
|
|
454
|
-
reactIs.exports = requireReactIs_development();
|
|
455
|
-
}
|
|
456
|
-
return reactIs.exports;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/*
|
|
460
|
-
object-assign
|
|
461
|
-
(c) Sindre Sorhus
|
|
462
|
-
@license MIT
|
|
463
|
-
*/
|
|
464
|
-
|
|
465
|
-
var objectAssign;
|
|
466
|
-
var hasRequiredObjectAssign;
|
|
467
|
-
|
|
468
|
-
function requireObjectAssign () {
|
|
469
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
470
|
-
hasRequiredObjectAssign = 1;
|
|
471
|
-
/* eslint-disable no-unused-vars */
|
|
472
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
473
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
474
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
475
|
-
|
|
476
|
-
function toObject(val) {
|
|
477
|
-
if (val === null || val === undefined) {
|
|
478
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
return Object(val);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
function shouldUseNative() {
|
|
485
|
-
try {
|
|
486
|
-
if (!Object.assign) {
|
|
487
|
-
return false;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
491
|
-
|
|
492
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
493
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
494
|
-
test1[5] = 'de';
|
|
495
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
496
|
-
return false;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
500
|
-
var test2 = {};
|
|
501
|
-
for (var i = 0; i < 10; i++) {
|
|
502
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
503
|
-
}
|
|
504
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
505
|
-
return test2[n];
|
|
506
|
-
});
|
|
507
|
-
if (order2.join('') !== '0123456789') {
|
|
508
|
-
return false;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
512
|
-
var test3 = {};
|
|
513
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
514
|
-
test3[letter] = letter;
|
|
515
|
-
});
|
|
516
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
517
|
-
'abcdefghijklmnopqrst') {
|
|
518
|
-
return false;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
return true;
|
|
522
|
-
} catch (err) {
|
|
523
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
524
|
-
return false;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
529
|
-
var from;
|
|
530
|
-
var to = toObject(target);
|
|
531
|
-
var symbols;
|
|
532
|
-
|
|
533
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
534
|
-
from = Object(arguments[s]);
|
|
535
|
-
|
|
536
|
-
for (var key in from) {
|
|
537
|
-
if (hasOwnProperty.call(from, key)) {
|
|
538
|
-
to[key] = from[key];
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
if (getOwnPropertySymbols) {
|
|
543
|
-
symbols = getOwnPropertySymbols(from);
|
|
544
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
545
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
546
|
-
to[symbols[i]] = from[symbols[i]];
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
return to;
|
|
553
|
-
};
|
|
554
|
-
return objectAssign;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
559
|
-
*
|
|
560
|
-
* This source code is licensed under the MIT license found in the
|
|
561
|
-
* LICENSE file in the root directory of this source tree.
|
|
562
|
-
*/
|
|
563
|
-
|
|
564
|
-
var ReactPropTypesSecret_1;
|
|
565
|
-
var hasRequiredReactPropTypesSecret;
|
|
566
|
-
|
|
567
|
-
function requireReactPropTypesSecret () {
|
|
568
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
569
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
570
|
-
|
|
571
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
572
|
-
|
|
573
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
574
|
-
return ReactPropTypesSecret_1;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
var has;
|
|
578
|
-
var hasRequiredHas;
|
|
579
|
-
|
|
580
|
-
function requireHas () {
|
|
581
|
-
if (hasRequiredHas) return has;
|
|
582
|
-
hasRequiredHas = 1;
|
|
583
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
584
|
-
return has;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
589
|
-
*
|
|
590
|
-
* This source code is licensed under the MIT license found in the
|
|
591
|
-
* LICENSE file in the root directory of this source tree.
|
|
592
|
-
*/
|
|
593
|
-
|
|
594
|
-
var checkPropTypes_1;
|
|
595
|
-
var hasRequiredCheckPropTypes;
|
|
596
|
-
|
|
597
|
-
function requireCheckPropTypes () {
|
|
598
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
599
|
-
hasRequiredCheckPropTypes = 1;
|
|
600
|
-
|
|
601
|
-
var printWarning = function() {};
|
|
602
|
-
|
|
603
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
604
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
605
|
-
var loggedTypeFailures = {};
|
|
606
|
-
var has = requireHas();
|
|
607
|
-
|
|
608
|
-
printWarning = function(text) {
|
|
609
|
-
var message = 'Warning: ' + text;
|
|
610
|
-
if (typeof console !== 'undefined') {
|
|
611
|
-
console.error(message);
|
|
612
|
-
}
|
|
613
|
-
try {
|
|
614
|
-
// --- Welcome to debugging React ---
|
|
615
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
616
|
-
// to find the callsite that caused this warning to fire.
|
|
617
|
-
throw new Error(message);
|
|
618
|
-
} catch (x) { /**/ }
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* Assert that the values match with the type specs.
|
|
624
|
-
* Error messages are memorized and will only be shown once.
|
|
625
|
-
*
|
|
626
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
627
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
628
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
629
|
-
* @param {string} componentName Name of the component for error messages.
|
|
630
|
-
* @param {?Function} getStack Returns the component stack.
|
|
631
|
-
* @private
|
|
632
|
-
*/
|
|
633
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
634
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
635
|
-
for (var typeSpecName in typeSpecs) {
|
|
636
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
637
|
-
var error;
|
|
638
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
639
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
640
|
-
// After these have been cleaned up, we'll let them throw.
|
|
641
|
-
try {
|
|
642
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
643
|
-
// behavior as without this statement except with a better message.
|
|
644
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
645
|
-
var err = Error(
|
|
646
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
647
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
648
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
649
|
-
);
|
|
650
|
-
err.name = 'Invariant Violation';
|
|
651
|
-
throw err;
|
|
652
|
-
}
|
|
653
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
654
|
-
} catch (ex) {
|
|
655
|
-
error = ex;
|
|
656
|
-
}
|
|
657
|
-
if (error && !(error instanceof Error)) {
|
|
658
|
-
printWarning(
|
|
659
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
660
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
661
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
662
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
663
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
664
|
-
'shape all require an argument).'
|
|
665
|
-
);
|
|
666
|
-
}
|
|
667
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
668
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
669
|
-
// same error.
|
|
670
|
-
loggedTypeFailures[error.message] = true;
|
|
671
|
-
|
|
672
|
-
var stack = getStack ? getStack() : '';
|
|
673
|
-
|
|
674
|
-
printWarning(
|
|
675
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
676
|
-
);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* Resets warning cache when testing.
|
|
685
|
-
*
|
|
686
|
-
* @private
|
|
687
|
-
*/
|
|
688
|
-
checkPropTypes.resetWarningCache = function() {
|
|
689
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
690
|
-
loggedTypeFailures = {};
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
checkPropTypes_1 = checkPropTypes;
|
|
695
|
-
return checkPropTypes_1;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
700
|
-
*
|
|
701
|
-
* This source code is licensed under the MIT license found in the
|
|
702
|
-
* LICENSE file in the root directory of this source tree.
|
|
703
|
-
*/
|
|
704
|
-
|
|
705
|
-
var factoryWithTypeCheckers;
|
|
706
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
707
|
-
|
|
708
|
-
function requireFactoryWithTypeCheckers () {
|
|
709
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
710
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
711
|
-
|
|
712
|
-
var ReactIs = requireReactIs();
|
|
713
|
-
var assign = requireObjectAssign();
|
|
714
|
-
|
|
715
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
716
|
-
var has = requireHas();
|
|
717
|
-
var checkPropTypes = requireCheckPropTypes();
|
|
718
|
-
|
|
719
|
-
var printWarning = function() {};
|
|
720
|
-
|
|
721
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
722
|
-
printWarning = function(text) {
|
|
723
|
-
var message = 'Warning: ' + text;
|
|
724
|
-
if (typeof console !== 'undefined') {
|
|
725
|
-
console.error(message);
|
|
726
|
-
}
|
|
727
|
-
try {
|
|
728
|
-
// --- Welcome to debugging React ---
|
|
729
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
730
|
-
// to find the callsite that caused this warning to fire.
|
|
731
|
-
throw new Error(message);
|
|
732
|
-
} catch (x) {}
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
function emptyFunctionThatReturnsNull() {
|
|
737
|
-
return null;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
741
|
-
/* global Symbol */
|
|
742
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
743
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Returns the iterator method function contained on the iterable object.
|
|
747
|
-
*
|
|
748
|
-
* Be sure to invoke the function with the iterable as context:
|
|
749
|
-
*
|
|
750
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
751
|
-
* if (iteratorFn) {
|
|
752
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
753
|
-
* ...
|
|
754
|
-
* }
|
|
755
|
-
*
|
|
756
|
-
* @param {?object} maybeIterable
|
|
757
|
-
* @return {?function}
|
|
758
|
-
*/
|
|
759
|
-
function getIteratorFn(maybeIterable) {
|
|
760
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
761
|
-
if (typeof iteratorFn === 'function') {
|
|
762
|
-
return iteratorFn;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
768
|
-
* supplied to React components. Example usage:
|
|
769
|
-
*
|
|
770
|
-
* var Props = require('ReactPropTypes');
|
|
771
|
-
* var MyArticle = React.createClass({
|
|
772
|
-
* propTypes: {
|
|
773
|
-
* // An optional string prop named "description".
|
|
774
|
-
* description: Props.string,
|
|
775
|
-
*
|
|
776
|
-
* // A required enum prop named "category".
|
|
777
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
778
|
-
*
|
|
779
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
780
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
781
|
-
* },
|
|
782
|
-
* render: function() { ... }
|
|
783
|
-
* });
|
|
784
|
-
*
|
|
785
|
-
* A more formal specification of how these methods are used:
|
|
786
|
-
*
|
|
787
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
788
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
789
|
-
*
|
|
790
|
-
* Each and every declaration produces a function with the same signature. This
|
|
791
|
-
* allows the creation of custom validation functions. For example:
|
|
792
|
-
*
|
|
793
|
-
* var MyLink = React.createClass({
|
|
794
|
-
* propTypes: {
|
|
795
|
-
* // An optional string or URI prop named "href".
|
|
796
|
-
* href: function(props, propName, componentName) {
|
|
797
|
-
* var propValue = props[propName];
|
|
798
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
799
|
-
* !(propValue instanceof URI)) {
|
|
800
|
-
* return new Error(
|
|
801
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
802
|
-
* componentName
|
|
803
|
-
* );
|
|
804
|
-
* }
|
|
805
|
-
* }
|
|
806
|
-
* },
|
|
807
|
-
* render: function() {...}
|
|
808
|
-
* });
|
|
809
|
-
*
|
|
810
|
-
* @internal
|
|
811
|
-
*/
|
|
812
|
-
|
|
813
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
814
|
-
|
|
815
|
-
// Important!
|
|
816
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
817
|
-
var ReactPropTypes = {
|
|
818
|
-
array: createPrimitiveTypeChecker('array'),
|
|
819
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
820
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
821
|
-
func: createPrimitiveTypeChecker('function'),
|
|
822
|
-
number: createPrimitiveTypeChecker('number'),
|
|
823
|
-
object: createPrimitiveTypeChecker('object'),
|
|
824
|
-
string: createPrimitiveTypeChecker('string'),
|
|
825
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
826
|
-
|
|
827
|
-
any: createAnyTypeChecker(),
|
|
828
|
-
arrayOf: createArrayOfTypeChecker,
|
|
829
|
-
element: createElementTypeChecker(),
|
|
830
|
-
elementType: createElementTypeTypeChecker(),
|
|
831
|
-
instanceOf: createInstanceTypeChecker,
|
|
832
|
-
node: createNodeChecker(),
|
|
833
|
-
objectOf: createObjectOfTypeChecker,
|
|
834
|
-
oneOf: createEnumTypeChecker,
|
|
835
|
-
oneOfType: createUnionTypeChecker,
|
|
836
|
-
shape: createShapeTypeChecker,
|
|
837
|
-
exact: createStrictShapeTypeChecker,
|
|
838
|
-
};
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
842
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
843
|
-
*/
|
|
844
|
-
/*eslint-disable no-self-compare*/
|
|
845
|
-
function is(x, y) {
|
|
846
|
-
// SameValue algorithm
|
|
847
|
-
if (x === y) {
|
|
848
|
-
// Steps 1-5, 7-10
|
|
849
|
-
// Steps 6.b-6.e: +0 != -0
|
|
850
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
851
|
-
} else {
|
|
852
|
-
// Step 6.a: NaN == NaN
|
|
853
|
-
return x !== x && y !== y;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
/*eslint-enable no-self-compare*/
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
860
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
861
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
862
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
863
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
864
|
-
*/
|
|
865
|
-
function PropTypeError(message, data) {
|
|
866
|
-
this.message = message;
|
|
867
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
868
|
-
this.stack = '';
|
|
869
|
-
}
|
|
870
|
-
// Make `instanceof Error` still work for returned errors.
|
|
871
|
-
PropTypeError.prototype = Error.prototype;
|
|
872
|
-
|
|
873
|
-
function createChainableTypeChecker(validate) {
|
|
874
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
875
|
-
var manualPropTypeCallCache = {};
|
|
876
|
-
var manualPropTypeWarningCount = 0;
|
|
877
|
-
}
|
|
878
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
879
|
-
componentName = componentName || ANONYMOUS;
|
|
880
|
-
propFullName = propFullName || propName;
|
|
881
|
-
|
|
882
|
-
if (secret !== ReactPropTypesSecret) {
|
|
883
|
-
if (throwOnDirectAccess) {
|
|
884
|
-
// New behavior only for users of `prop-types` package
|
|
885
|
-
var err = new Error(
|
|
886
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
887
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
888
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
889
|
-
);
|
|
890
|
-
err.name = 'Invariant Violation';
|
|
891
|
-
throw err;
|
|
892
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
893
|
-
// Old behavior for people using React.PropTypes
|
|
894
|
-
var cacheKey = componentName + ':' + propName;
|
|
895
|
-
if (
|
|
896
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
897
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
898
|
-
manualPropTypeWarningCount < 3
|
|
899
|
-
) {
|
|
900
|
-
printWarning(
|
|
901
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
902
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
903
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
904
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
905
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
906
|
-
);
|
|
907
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
908
|
-
manualPropTypeWarningCount++;
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
if (props[propName] == null) {
|
|
913
|
-
if (isRequired) {
|
|
914
|
-
if (props[propName] === null) {
|
|
915
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
916
|
-
}
|
|
917
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
918
|
-
}
|
|
919
|
-
return null;
|
|
920
|
-
} else {
|
|
921
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
926
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
927
|
-
|
|
928
|
-
return chainedCheckType;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
932
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
933
|
-
var propValue = props[propName];
|
|
934
|
-
var propType = getPropType(propValue);
|
|
935
|
-
if (propType !== expectedType) {
|
|
936
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
937
|
-
// check, but we can offer a more precise error message here rather than
|
|
938
|
-
// 'of type `object`'.
|
|
939
|
-
var preciseType = getPreciseType(propValue);
|
|
940
|
-
|
|
941
|
-
return new PropTypeError(
|
|
942
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
943
|
-
{expectedType: expectedType}
|
|
944
|
-
);
|
|
945
|
-
}
|
|
946
|
-
return null;
|
|
947
|
-
}
|
|
948
|
-
return createChainableTypeChecker(validate);
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
function createAnyTypeChecker() {
|
|
952
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
956
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
957
|
-
if (typeof typeChecker !== 'function') {
|
|
958
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
959
|
-
}
|
|
960
|
-
var propValue = props[propName];
|
|
961
|
-
if (!Array.isArray(propValue)) {
|
|
962
|
-
var propType = getPropType(propValue);
|
|
963
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
964
|
-
}
|
|
965
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
966
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
967
|
-
if (error instanceof Error) {
|
|
968
|
-
return error;
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
return null;
|
|
972
|
-
}
|
|
973
|
-
return createChainableTypeChecker(validate);
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
function createElementTypeChecker() {
|
|
977
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
978
|
-
var propValue = props[propName];
|
|
979
|
-
if (!isValidElement(propValue)) {
|
|
980
|
-
var propType = getPropType(propValue);
|
|
981
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
982
|
-
}
|
|
983
|
-
return null;
|
|
984
|
-
}
|
|
985
|
-
return createChainableTypeChecker(validate);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
function createElementTypeTypeChecker() {
|
|
989
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
990
|
-
var propValue = props[propName];
|
|
991
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
992
|
-
var propType = getPropType(propValue);
|
|
993
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
994
|
-
}
|
|
995
|
-
return null;
|
|
996
|
-
}
|
|
997
|
-
return createChainableTypeChecker(validate);
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
1001
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1002
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
1003
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
1004
|
-
var actualClassName = getClassName(props[propName]);
|
|
1005
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
1006
|
-
}
|
|
1007
|
-
return null;
|
|
1008
|
-
}
|
|
1009
|
-
return createChainableTypeChecker(validate);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
function createEnumTypeChecker(expectedValues) {
|
|
1013
|
-
if (!Array.isArray(expectedValues)) {
|
|
1014
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1015
|
-
if (arguments.length > 1) {
|
|
1016
|
-
printWarning(
|
|
1017
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
1018
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
1019
|
-
);
|
|
1020
|
-
} else {
|
|
1021
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
return emptyFunctionThatReturnsNull;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1028
|
-
var propValue = props[propName];
|
|
1029
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
1030
|
-
if (is(propValue, expectedValues[i])) {
|
|
1031
|
-
return null;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
1036
|
-
var type = getPreciseType(value);
|
|
1037
|
-
if (type === 'symbol') {
|
|
1038
|
-
return String(value);
|
|
1039
|
-
}
|
|
1040
|
-
return value;
|
|
1041
|
-
});
|
|
1042
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
1043
|
-
}
|
|
1044
|
-
return createChainableTypeChecker(validate);
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
1048
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1049
|
-
if (typeof typeChecker !== 'function') {
|
|
1050
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
1051
|
-
}
|
|
1052
|
-
var propValue = props[propName];
|
|
1053
|
-
var propType = getPropType(propValue);
|
|
1054
|
-
if (propType !== 'object') {
|
|
1055
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
1056
|
-
}
|
|
1057
|
-
for (var key in propValue) {
|
|
1058
|
-
if (has(propValue, key)) {
|
|
1059
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1060
|
-
if (error instanceof Error) {
|
|
1061
|
-
return error;
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
return null;
|
|
1066
|
-
}
|
|
1067
|
-
return createChainableTypeChecker(validate);
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1071
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1072
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
1073
|
-
return emptyFunctionThatReturnsNull;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1077
|
-
var checker = arrayOfTypeCheckers[i];
|
|
1078
|
-
if (typeof checker !== 'function') {
|
|
1079
|
-
printWarning(
|
|
1080
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
1081
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
1082
|
-
);
|
|
1083
|
-
return emptyFunctionThatReturnsNull;
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1088
|
-
var expectedTypes = [];
|
|
1089
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1090
|
-
var checker = arrayOfTypeCheckers[i];
|
|
1091
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
1092
|
-
if (checkerResult == null) {
|
|
1093
|
-
return null;
|
|
1094
|
-
}
|
|
1095
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
1096
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
1100
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
1101
|
-
}
|
|
1102
|
-
return createChainableTypeChecker(validate);
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
function createNodeChecker() {
|
|
1106
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1107
|
-
if (!isNode(props[propName])) {
|
|
1108
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
1109
|
-
}
|
|
1110
|
-
return null;
|
|
1111
|
-
}
|
|
1112
|
-
return createChainableTypeChecker(validate);
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
1116
|
-
return new PropTypeError(
|
|
1117
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
1118
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
1119
|
-
);
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
1123
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1124
|
-
var propValue = props[propName];
|
|
1125
|
-
var propType = getPropType(propValue);
|
|
1126
|
-
if (propType !== 'object') {
|
|
1127
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1128
|
-
}
|
|
1129
|
-
for (var key in shapeTypes) {
|
|
1130
|
-
var checker = shapeTypes[key];
|
|
1131
|
-
if (typeof checker !== 'function') {
|
|
1132
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1133
|
-
}
|
|
1134
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1135
|
-
if (error) {
|
|
1136
|
-
return error;
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
return null;
|
|
1140
|
-
}
|
|
1141
|
-
return createChainableTypeChecker(validate);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
1145
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1146
|
-
var propValue = props[propName];
|
|
1147
|
-
var propType = getPropType(propValue);
|
|
1148
|
-
if (propType !== 'object') {
|
|
1149
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1150
|
-
}
|
|
1151
|
-
// We need to check all keys in case some are required but missing from props.
|
|
1152
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
1153
|
-
for (var key in allKeys) {
|
|
1154
|
-
var checker = shapeTypes[key];
|
|
1155
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
1156
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1157
|
-
}
|
|
1158
|
-
if (!checker) {
|
|
1159
|
-
return new PropTypeError(
|
|
1160
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1161
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1162
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1163
|
-
);
|
|
1164
|
-
}
|
|
1165
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
1166
|
-
if (error) {
|
|
1167
|
-
return error;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
return null;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
return createChainableTypeChecker(validate);
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
function isNode(propValue) {
|
|
1177
|
-
switch (typeof propValue) {
|
|
1178
|
-
case 'number':
|
|
1179
|
-
case 'string':
|
|
1180
|
-
case 'undefined':
|
|
1181
|
-
return true;
|
|
1182
|
-
case 'boolean':
|
|
1183
|
-
return !propValue;
|
|
1184
|
-
case 'object':
|
|
1185
|
-
if (Array.isArray(propValue)) {
|
|
1186
|
-
return propValue.every(isNode);
|
|
1187
|
-
}
|
|
1188
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
1189
|
-
return true;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
1193
|
-
if (iteratorFn) {
|
|
1194
|
-
var iterator = iteratorFn.call(propValue);
|
|
1195
|
-
var step;
|
|
1196
|
-
if (iteratorFn !== propValue.entries) {
|
|
1197
|
-
while (!(step = iterator.next()).done) {
|
|
1198
|
-
if (!isNode(step.value)) {
|
|
1199
|
-
return false;
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
} else {
|
|
1203
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
1204
|
-
while (!(step = iterator.next()).done) {
|
|
1205
|
-
var entry = step.value;
|
|
1206
|
-
if (entry) {
|
|
1207
|
-
if (!isNode(entry[1])) {
|
|
1208
|
-
return false;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
} else {
|
|
1214
|
-
return false;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
return true;
|
|
1218
|
-
default:
|
|
1219
|
-
return false;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
function isSymbol(propType, propValue) {
|
|
1224
|
-
// Native Symbol.
|
|
1225
|
-
if (propType === 'symbol') {
|
|
1226
|
-
return true;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
// falsy value can't be a Symbol
|
|
1230
|
-
if (!propValue) {
|
|
1231
|
-
return false;
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
1235
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
1236
|
-
return true;
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1240
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1241
|
-
return true;
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
return false;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1248
|
-
function getPropType(propValue) {
|
|
1249
|
-
var propType = typeof propValue;
|
|
1250
|
-
if (Array.isArray(propValue)) {
|
|
1251
|
-
return 'array';
|
|
1252
|
-
}
|
|
1253
|
-
if (propValue instanceof RegExp) {
|
|
1254
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1255
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1256
|
-
// passes PropTypes.object.
|
|
1257
|
-
return 'object';
|
|
1258
|
-
}
|
|
1259
|
-
if (isSymbol(propType, propValue)) {
|
|
1260
|
-
return 'symbol';
|
|
1261
|
-
}
|
|
1262
|
-
return propType;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
1266
|
-
// See `createPrimitiveTypeChecker`.
|
|
1267
|
-
function getPreciseType(propValue) {
|
|
1268
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1269
|
-
return '' + propValue;
|
|
1270
|
-
}
|
|
1271
|
-
var propType = getPropType(propValue);
|
|
1272
|
-
if (propType === 'object') {
|
|
1273
|
-
if (propValue instanceof Date) {
|
|
1274
|
-
return 'date';
|
|
1275
|
-
} else if (propValue instanceof RegExp) {
|
|
1276
|
-
return 'regexp';
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
return propType;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1283
|
-
// For example, "undefined" or "of type array"
|
|
1284
|
-
function getPostfixForTypeWarning(value) {
|
|
1285
|
-
var type = getPreciseType(value);
|
|
1286
|
-
switch (type) {
|
|
1287
|
-
case 'array':
|
|
1288
|
-
case 'object':
|
|
1289
|
-
return 'an ' + type;
|
|
1290
|
-
case 'boolean':
|
|
1291
|
-
case 'date':
|
|
1292
|
-
case 'regexp':
|
|
1293
|
-
return 'a ' + type;
|
|
1294
|
-
default:
|
|
1295
|
-
return type;
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
// Returns class name of the object, if any.
|
|
1300
|
-
function getClassName(propValue) {
|
|
1301
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1302
|
-
return ANONYMOUS;
|
|
1303
|
-
}
|
|
1304
|
-
return propValue.constructor.name;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1308
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1309
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1310
|
-
|
|
1311
|
-
return ReactPropTypes;
|
|
1312
|
-
};
|
|
1313
|
-
return factoryWithTypeCheckers;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
/**
|
|
1317
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1318
|
-
*
|
|
1319
|
-
* This source code is licensed under the MIT license found in the
|
|
1320
|
-
* LICENSE file in the root directory of this source tree.
|
|
1321
|
-
*/
|
|
1322
|
-
|
|
1323
|
-
var factoryWithThrowingShims;
|
|
1324
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
1325
|
-
|
|
1326
|
-
function requireFactoryWithThrowingShims () {
|
|
1327
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
1328
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
1329
|
-
|
|
1330
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
1331
|
-
|
|
1332
|
-
function emptyFunction() {}
|
|
1333
|
-
function emptyFunctionWithReset() {}
|
|
1334
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1335
|
-
|
|
1336
|
-
factoryWithThrowingShims = function() {
|
|
1337
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1338
|
-
if (secret === ReactPropTypesSecret) {
|
|
1339
|
-
// It is still safe when called from React.
|
|
1340
|
-
return;
|
|
1341
|
-
}
|
|
1342
|
-
var err = new Error(
|
|
1343
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1344
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1345
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
1346
|
-
);
|
|
1347
|
-
err.name = 'Invariant Violation';
|
|
1348
|
-
throw err;
|
|
1349
|
-
} shim.isRequired = shim;
|
|
1350
|
-
function getShim() {
|
|
1351
|
-
return shim;
|
|
1352
|
-
} // Important!
|
|
1353
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1354
|
-
var ReactPropTypes = {
|
|
1355
|
-
array: shim,
|
|
1356
|
-
bigint: shim,
|
|
1357
|
-
bool: shim,
|
|
1358
|
-
func: shim,
|
|
1359
|
-
number: shim,
|
|
1360
|
-
object: shim,
|
|
1361
|
-
string: shim,
|
|
1362
|
-
symbol: shim,
|
|
1363
|
-
|
|
1364
|
-
any: shim,
|
|
1365
|
-
arrayOf: getShim,
|
|
1366
|
-
element: shim,
|
|
1367
|
-
elementType: shim,
|
|
1368
|
-
instanceOf: getShim,
|
|
1369
|
-
node: shim,
|
|
1370
|
-
objectOf: getShim,
|
|
1371
|
-
oneOf: getShim,
|
|
1372
|
-
oneOfType: getShim,
|
|
1373
|
-
shape: getShim,
|
|
1374
|
-
exact: getShim,
|
|
1375
|
-
|
|
1376
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1377
|
-
resetWarningCache: emptyFunction
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1381
|
-
|
|
1382
|
-
return ReactPropTypes;
|
|
1383
|
-
};
|
|
1384
|
-
return factoryWithThrowingShims;
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1389
|
-
*
|
|
1390
|
-
* This source code is licensed under the MIT license found in the
|
|
1391
|
-
* LICENSE file in the root directory of this source tree.
|
|
1392
|
-
*/
|
|
1393
|
-
|
|
1394
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1395
|
-
var ReactIs = requireReactIs();
|
|
1396
|
-
|
|
1397
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1398
|
-
// http://fb.me/prop-types-in-prod
|
|
1399
|
-
var throwOnDirectAccess = true;
|
|
1400
|
-
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
1401
|
-
} else {
|
|
1402
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1403
|
-
// http://fb.me/prop-types-in-prod
|
|
1404
|
-
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
var propTypesExports = propTypes.exports;
|
|
1408
|
-
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1409
|
-
|
|
1410
|
-
var componentLibrary = {};
|
|
1411
|
-
|
|
1412
|
-
var components = {};
|
|
1413
|
-
|
|
1414
|
-
var Dropdown$1 = {};
|
|
1415
|
-
|
|
1416
|
-
var Dropdown = {};
|
|
1417
|
-
|
|
1418
|
-
var img$8 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Directional/chevron-down%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='6.17916667 6.84500003 10 10.746733 13.8208333 6.84500003 15 8.04913353 10 13.155 5 8.04913353'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Directional/chevron-down'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
1419
|
-
|
|
1420
|
-
var chevronDown_icon = /*#__PURE__*/Object.freeze({
|
|
1421
|
-
__proto__: null,
|
|
1422
|
-
default: img$8
|
|
1423
|
-
});
|
|
1424
|
-
|
|
1425
|
-
var require$$2$4 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
|
|
1426
|
-
|
|
1427
|
-
var img$7 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3emeatballs%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M4%2c8 C2.9%2c8 2%2c8.9 2%2c10 C2%2c11.1 2.9%2c12 4%2c12 C5.1%2c12 6%2c11.1 6%2c10 C6%2c8.9 5.1%2c8 4%2c8 L4%2c8 Z M16%2c8 C14.9%2c8 14%2c8.9 14%2c10 C14%2c11.1 14.9%2c12 16%2c12 C17.1%2c12 18%2c11.1 18%2c10 C18%2c8.9 17.1%2c8 16%2c8 L16%2c8 Z M10%2c8 C8.9%2c8 8%2c8.9 8%2c10 C8%2c11.1 8.9%2c12 10%2c12 C11.1%2c12 12%2c11.1 12%2c10 C12%2c8.9 11.1%2c8 10%2c8 L10%2c8 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='meatballs'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/metballs' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
1428
|
-
|
|
1429
|
-
var ellipsis_icon = /*#__PURE__*/Object.freeze({
|
|
1430
|
-
__proto__: null,
|
|
1431
|
-
default: img$7
|
|
1432
|
-
});
|
|
1433
|
-
|
|
1434
|
-
var require$$3$3 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
|
|
1435
|
-
|
|
1436
|
-
var Icon$1 = {};
|
|
1437
|
-
|
|
1438
|
-
var Icon = {};
|
|
1439
|
-
|
|
1440
|
-
var console$1 = {};
|
|
1441
|
-
|
|
1442
|
-
(function(exports) {
|
|
1443
|
-
exports.__esModule = true;
|
|
1444
|
-
exports.singleLine = exports.warn = exports.error = void 0;
|
|
1445
|
-
var red = "\x1B[31m ";
|
|
1446
|
-
var yellow = "\x1B[33m ";
|
|
1447
|
-
var reset = "\x1B[0m ";
|
|
1448
|
-
var error = function(message) {
|
|
1449
|
-
throw new Error("".concat(red, "\nCULTUREAMP UI ERROR:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
1450
|
-
};
|
|
1451
|
-
exports.error = error;
|
|
1452
|
-
var warn = function(message) {
|
|
1453
|
-
console.warn("".concat(yellow, "\nCULTUREAMP UI WARNING:\n").concat((0, exports.singleLine)(message)).concat(reset, "\n"));
|
|
1454
|
-
};
|
|
1455
|
-
exports.warn = warn;
|
|
1456
|
-
var singleLine = function(message) {
|
|
1457
|
-
return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
|
|
1458
|
-
};
|
|
1459
|
-
exports.singleLine = singleLine;
|
|
1460
|
-
})(console$1);
|
|
1461
|
-
|
|
1462
|
-
var Icon_module = {"icon":"Icon-module_icon__1r20x","inheritSize":"Icon-module_inheritSize__xtkKA","interactiveIconWrapper":"Icon-module_interactiveIconWrapper__ieTrE","disabled":"Icon-module_disabled__bqMQV","hover":"Icon-module_hover__EdRCd","active":"Icon-module_active__d47mz","reversedInteractiveIconWrapper":"Icon-module_reversedInteractiveIconWrapper__sZ6CO Icon-module_interactiveIconWrapper__ieTrE"};
|
|
1463
|
-
|
|
1464
|
-
var Icon_module$1 = /*#__PURE__*/Object.freeze({
|
|
1465
|
-
__proto__: null,
|
|
1466
|
-
default: Icon_module
|
|
1467
|
-
});
|
|
1468
|
-
|
|
1469
|
-
var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
|
|
1470
|
-
|
|
1471
|
-
(function(exports) {
|
|
1472
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
1473
|
-
__assign = Object.assign || function(t) {
|
|
1474
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1475
|
-
s = arguments[i];
|
|
1476
|
-
for (var p in s)
|
|
1477
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1478
|
-
t[p] = s[p];
|
|
1479
|
-
}
|
|
1480
|
-
return t;
|
|
1481
|
-
};
|
|
1482
|
-
return __assign.apply(this, arguments);
|
|
1483
|
-
};
|
|
1484
|
-
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
1485
|
-
var t = {};
|
|
1486
|
-
for (var p in s)
|
|
1487
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
1488
|
-
t[p] = s[p];
|
|
1489
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
1490
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1491
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
1492
|
-
t[p[i]] = s[p[i]];
|
|
1493
|
-
}
|
|
1494
|
-
return t;
|
|
1495
|
-
};
|
|
1496
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
1497
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1498
|
-
};
|
|
1499
|
-
exports.__esModule = true;
|
|
1500
|
-
exports.Icon = void 0;
|
|
1501
|
-
var react_1 = __importDefault(React__default);
|
|
1502
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
1503
|
-
var console_1 = console$1;
|
|
1504
|
-
var Icon_module_scss_1 = __importDefault(require$$3$2);
|
|
1505
|
-
var Icon = function(_a) {
|
|
1506
|
-
var _b;
|
|
1507
|
-
var icon = _a.icon, _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
|
|
1508
|
-
var isMeaningfulImg = role === "img";
|
|
1509
|
-
if (isMeaningfulImg && !title) {
|
|
1510
|
-
(0, console_1.warn)(`
|
|
1511
|
-
Icon with role "img" missing a title attribute.
|
|
1512
|
-
|
|
1513
|
-
Assistive technologies that enable vision-impaired users to read web pages
|
|
1514
|
-
can treat images (including icons) as either decorative or meaningful. Only
|
|
1515
|
-
images with a role of "img" (meaningful) will be read aloud to the user.
|
|
1516
|
-
These images must therefore have a aria-label attribute to provide the text
|
|
1517
|
-
that will be read aloud.
|
|
1518
|
-
|
|
1519
|
-
Either add the missing title prop, or set this icon's role to
|
|
1520
|
-
"presentation" to indicate it is not meaningful.
|
|
1521
|
-
`);
|
|
1522
|
-
}
|
|
1523
|
-
var accessibilityProps = (_b = {
|
|
1524
|
-
role
|
|
1525
|
-
}, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b["aria-label"] = isMeaningfulImg && !!title ? title : void 0, _b);
|
|
1526
|
-
return react_1["default"].createElement(
|
|
1527
|
-
"svg",
|
|
1528
|
-
__assign({
|
|
1529
|
-
className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, inheritSize && Icon_module_scss_1["default"].inheritSize),
|
|
1530
|
-
viewBox: icon.viewBox,
|
|
1531
|
-
// Work around IE11 making all SVGs focusable.
|
|
1532
|
-
// See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
|
|
1533
|
-
focusable: "false"
|
|
1534
|
-
}, accessibilityProps, props),
|
|
1535
|
-
isMeaningfulImg && !!desc ? react_1["default"].createElement("desc", null, desc) : null,
|
|
1536
|
-
react_1["default"].createElement("use", { xlinkHref: "#".concat(icon.id) })
|
|
1537
|
-
);
|
|
1538
|
-
};
|
|
1539
|
-
exports.Icon = Icon;
|
|
1540
|
-
exports.Icon.displayName = "Icon";
|
|
1541
|
-
})(Icon);
|
|
1542
|
-
|
|
1543
|
-
(function(exports) {
|
|
1544
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1545
|
-
if (k2 === void 0)
|
|
1546
|
-
k2 = k;
|
|
1547
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1548
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1549
|
-
desc = { enumerable: true, get: function() {
|
|
1550
|
-
return m[k];
|
|
1551
|
-
} };
|
|
1552
|
-
}
|
|
1553
|
-
Object.defineProperty(o, k2, desc);
|
|
1554
|
-
} : function(o, m, k, k2) {
|
|
1555
|
-
if (k2 === void 0)
|
|
1556
|
-
k2 = k;
|
|
1557
|
-
o[k2] = m[k];
|
|
1558
|
-
});
|
|
1559
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
1560
|
-
for (var p in m)
|
|
1561
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
1562
|
-
__createBinding(exports2, m, p);
|
|
1563
|
-
};
|
|
1564
|
-
exports.__esModule = true;
|
|
1565
|
-
__exportStar(Icon, exports);
|
|
1566
|
-
})(Icon$1);
|
|
1567
|
-
|
|
1568
|
-
var DropdownMenu = {};
|
|
1569
|
-
|
|
1570
|
-
var Dropdown_module = {"dropdown":"Dropdown-module_dropdown__09sgL","buttonReset":"Dropdown-module_buttonReset__O69sc","dropdownButton":"Dropdown-module_dropdownButton__FiRVW Dropdown-module_buttonReset__O69sc","dropdownControlAction":"Dropdown-module_dropdownControlAction__iWJog","dropdownIcon":"Dropdown-module_dropdownIcon__tZfDQ","dropdownLabel":"Dropdown-module_dropdownLabel__bpY-X","dropdownHoverArea":"Dropdown-module_dropdownHoverArea__M-Y-K","isOpen":"Dropdown-module_isOpen__Kf4XR","chevronIcon":"Dropdown-module_chevronIcon__Ieh4i","menuContainer":"Dropdown-module_menuContainer__xl9MT","reversedColor":"Dropdown-module_reversedColor__rGeiB"};
|
|
1571
|
-
|
|
1572
|
-
var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
|
|
1573
|
-
__proto__: null,
|
|
1574
|
-
default: Dropdown_module
|
|
1575
|
-
});
|
|
1576
|
-
|
|
1577
|
-
var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
|
|
1578
|
-
|
|
1579
|
-
(function(exports) {
|
|
1580
|
-
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
1581
|
-
var extendStatics = function(d, b) {
|
|
1582
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1583
|
-
d2.__proto__ = b2;
|
|
1584
|
-
} || function(d2, b2) {
|
|
1585
|
-
for (var p in b2)
|
|
1586
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
1587
|
-
d2[p] = b2[p];
|
|
1588
|
-
};
|
|
1589
|
-
return extendStatics(d, b);
|
|
1590
|
-
};
|
|
1591
|
-
return function(d, b) {
|
|
1592
|
-
if (typeof b !== "function" && b !== null)
|
|
1593
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1594
|
-
extendStatics(d, b);
|
|
1595
|
-
function __() {
|
|
1596
|
-
this.constructor = d;
|
|
1597
|
-
}
|
|
1598
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1599
|
-
};
|
|
1600
|
-
}();
|
|
1601
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
1602
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1603
|
-
};
|
|
1604
|
-
exports.__esModule = true;
|
|
1605
|
-
var react_1 = __importDefault(React__default);
|
|
1606
|
-
var Dropdown_module_scss_1 = __importDefault(require$$6$1);
|
|
1607
|
-
var DropdownMenu = (
|
|
1608
|
-
/** @class */
|
|
1609
|
-
function(_super) {
|
|
1610
|
-
__extends(DropdownMenu2, _super);
|
|
1611
|
-
function DropdownMenu2() {
|
|
1612
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1613
|
-
_this.menu = react_1["default"].createRef();
|
|
1614
|
-
_this.handleDocumentClick = function(e) {
|
|
1615
|
-
if (_this.menu && _this.menu.current && e.target instanceof Node && !_this.menu.current.contains(e.target)) {
|
|
1616
|
-
_this.props.hideDropdownMenu();
|
|
1617
|
-
}
|
|
1618
|
-
};
|
|
1619
|
-
_this.handleDocumentResize = function() {
|
|
1620
|
-
_this.props.hideDropdownMenu();
|
|
1621
|
-
};
|
|
1622
|
-
return _this;
|
|
1623
|
-
}
|
|
1624
|
-
DropdownMenu2.prototype.componentDidMount = function() {
|
|
1625
|
-
document.addEventListener("click", this.handleDocumentClick, false);
|
|
1626
|
-
window.addEventListener("resize", this.handleDocumentResize, false);
|
|
1627
|
-
this.positionMenu();
|
|
1628
|
-
};
|
|
1629
|
-
DropdownMenu2.prototype.componentWillUnmount = function() {
|
|
1630
|
-
document.removeEventListener("click", this.handleDocumentClick, false);
|
|
1631
|
-
window.removeEventListener("resize", this.handleDocumentResize, false);
|
|
1632
|
-
};
|
|
1633
|
-
DropdownMenu2.prototype.render = function() {
|
|
1634
|
-
var _a = this.props, hideDropdownMenu = _a.hideDropdownMenu, children = _a.children;
|
|
1635
|
-
return (
|
|
1636
|
-
// Disabling instead of addressing because this component is deprecated
|
|
1637
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
1638
|
-
react_1["default"].createElement("div", { className: Dropdown_module_scss_1["default"].menuContainer, ref: this.menu, onClick: hideDropdownMenu }, children)
|
|
1639
|
-
);
|
|
1640
|
-
};
|
|
1641
|
-
DropdownMenu2.prototype.positionMenu = function() {
|
|
1642
|
-
var menu = this.menu;
|
|
1643
|
-
if (!this.props.position || !menu) {
|
|
1644
|
-
return;
|
|
1645
|
-
}
|
|
1646
|
-
if (menu.current) {
|
|
1647
|
-
var pos = this.props.position;
|
|
1648
|
-
var innerHeight_1 = window.innerHeight;
|
|
1649
|
-
var rect = menu.current.getBoundingClientRect();
|
|
1650
|
-
if (pos.bottom > innerHeight_1 - rect.height) {
|
|
1651
|
-
menu.current.style.bottom = "24px";
|
|
1652
|
-
menu.current.style.top = "auto";
|
|
1653
|
-
} else {
|
|
1654
|
-
menu.current.style.top = "24px";
|
|
1655
|
-
menu.current.style.bottom = "auto";
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
};
|
|
1659
|
-
DropdownMenu2.displayName = "DropdownMenu";
|
|
1660
|
-
return DropdownMenu2;
|
|
1661
|
-
}(react_1["default"].Component)
|
|
1662
|
-
);
|
|
1663
|
-
exports["default"] = DropdownMenu;
|
|
1664
|
-
})(DropdownMenu);
|
|
1665
|
-
|
|
1666
|
-
(function(exports) {
|
|
1667
|
-
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
1668
|
-
var extendStatics = function(d, b) {
|
|
1669
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1670
|
-
d2.__proto__ = b2;
|
|
1671
|
-
} || function(d2, b2) {
|
|
1672
|
-
for (var p in b2)
|
|
1673
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
1674
|
-
d2[p] = b2[p];
|
|
1675
|
-
};
|
|
1676
|
-
return extendStatics(d, b);
|
|
1677
|
-
};
|
|
1678
|
-
return function(d, b) {
|
|
1679
|
-
if (typeof b !== "function" && b !== null)
|
|
1680
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1681
|
-
extendStatics(d, b);
|
|
1682
|
-
function __() {
|
|
1683
|
-
this.constructor = d;
|
|
1684
|
-
}
|
|
1685
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1686
|
-
};
|
|
1687
|
-
}();
|
|
1688
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
1689
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1690
|
-
};
|
|
1691
|
-
exports.__esModule = true;
|
|
1692
|
-
var react_1 = __importDefault(React__default);
|
|
1693
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
1694
|
-
var chevron_down_icon_svg_1 = __importDefault(require$$2$4);
|
|
1695
|
-
var ellipsis_icon_svg_1 = __importDefault(require$$3$3);
|
|
1696
|
-
var Icon_1 = Icon$1;
|
|
1697
|
-
var DropdownMenu_1 = __importDefault(DropdownMenu);
|
|
1698
|
-
var Dropdown_module_scss_1 = __importDefault(require$$6$1);
|
|
1699
|
-
var Dropdown = (
|
|
1700
|
-
/** @class */
|
|
1701
|
-
function(_super) {
|
|
1702
|
-
__extends(Dropdown2, _super);
|
|
1703
|
-
function Dropdown2(props) {
|
|
1704
|
-
var _this = _super.call(this, props) || this;
|
|
1705
|
-
_this.dropdownButton = react_1["default"].createRef();
|
|
1706
|
-
_this.toggleDropdownMenu = function(e) {
|
|
1707
|
-
e.stopPropagation();
|
|
1708
|
-
var currentState = _this.state.isMenuVisible;
|
|
1709
|
-
_this.setState({
|
|
1710
|
-
isMenuVisible: !currentState
|
|
1711
|
-
});
|
|
1712
|
-
};
|
|
1713
|
-
_this.hideDropdownMenu = function() {
|
|
1714
|
-
_this.setState({
|
|
1715
|
-
isMenuVisible: false
|
|
1716
|
-
});
|
|
1717
|
-
};
|
|
1718
|
-
_this.renderIcon = function(icon) {
|
|
1719
|
-
if (!icon)
|
|
1720
|
-
return;
|
|
1721
|
-
return react_1["default"].createElement(
|
|
1722
|
-
"span",
|
|
1723
|
-
{ className: Dropdown_module_scss_1["default"].dropdownIcon },
|
|
1724
|
-
react_1["default"].createElement(Icon_1.Icon, { icon, role: "img", title: "Open menu" })
|
|
1725
|
-
);
|
|
1726
|
-
};
|
|
1727
|
-
_this.renderDownArrow = function() {
|
|
1728
|
-
var _a = _this.props, label = _a.label, controlAction = _a.controlAction;
|
|
1729
|
-
if (!label || !controlAction)
|
|
1730
|
-
return;
|
|
1731
|
-
return react_1["default"].createElement(
|
|
1732
|
-
"span",
|
|
1733
|
-
{ className: Dropdown_module_scss_1["default"].chevronIcon },
|
|
1734
|
-
react_1["default"].createElement(Icon_1.Icon, { icon: chevron_down_icon_svg_1["default"], role: "img", title: "Open menu" })
|
|
1735
|
-
);
|
|
1736
|
-
};
|
|
1737
|
-
_this.renderButtonContent = function() {
|
|
1738
|
-
var label = _this.props.label;
|
|
1739
|
-
var icon = _this.props.icon;
|
|
1740
|
-
if (!icon && !label) {
|
|
1741
|
-
icon = ellipsis_icon_svg_1["default"];
|
|
1742
|
-
}
|
|
1743
|
-
return react_1["default"].createElement(
|
|
1744
|
-
react_1["default"].Fragment,
|
|
1745
|
-
null,
|
|
1746
|
-
_this.renderIcon(icon),
|
|
1747
|
-
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
1748
|
-
_this.renderDownArrow()
|
|
1749
|
-
);
|
|
1750
|
-
};
|
|
1751
|
-
_this.renderReversedButtonContent = function() {
|
|
1752
|
-
var _a = _this.props, icon = _a.icon, label = _a.label;
|
|
1753
|
-
return react_1["default"].createElement(
|
|
1754
|
-
react_1["default"].Fragment,
|
|
1755
|
-
null,
|
|
1756
|
-
_this.renderDownArrow(),
|
|
1757
|
-
label && react_1["default"].createElement("span", { className: Dropdown_module_scss_1["default"].dropdownLabel }, label),
|
|
1758
|
-
_this.renderIcon(icon)
|
|
1759
|
-
);
|
|
1760
|
-
};
|
|
1761
|
-
_this.state = {
|
|
1762
|
-
isMenuVisible: Boolean(props.menuVisible)
|
|
1763
|
-
};
|
|
1764
|
-
return _this;
|
|
1765
|
-
}
|
|
1766
|
-
Dropdown2.prototype.getPosition = function() {
|
|
1767
|
-
return this.dropdownButton && this.dropdownButton.current ? this.dropdownButton.current.getBoundingClientRect() : null;
|
|
1768
|
-
};
|
|
1769
|
-
Dropdown2.prototype.renderDropdownMenu = function() {
|
|
1770
|
-
return react_1["default"].createElement(DropdownMenu_1["default"], { hideDropdownMenu: this.hideDropdownMenu, position: this.getPosition() }, this.props.children);
|
|
1771
|
-
};
|
|
1772
|
-
Dropdown2.prototype.render = function() {
|
|
1773
|
-
var _a = this.props, controlAction = _a.controlAction, automationId = _a.automationId, iconPosition = _a.iconPosition, reversedColor = _a.reversedColor;
|
|
1774
|
-
var reverseIcon = iconPosition === "end";
|
|
1775
|
-
var btnClass = (0, classnames_1["default"])(Dropdown_module_scss_1["default"].dropdownButton, controlAction && Dropdown_module_scss_1["default"].dropdownControlAction, this.state.isMenuVisible && Dropdown_module_scss_1["default"].isOpen, reversedColor && Dropdown_module_scss_1["default"].reversedColor);
|
|
1776
|
-
return react_1["default"].createElement(
|
|
1777
|
-
"div",
|
|
1778
|
-
{ className: Dropdown_module_scss_1["default"].dropdown },
|
|
1779
|
-
react_1["default"].createElement(
|
|
1780
|
-
"button",
|
|
1781
|
-
{ type: "button", className: btnClass, onClick: this.toggleDropdownMenu, onMouseDown: function(e) {
|
|
1782
|
-
return e.preventDefault();
|
|
1783
|
-
}, ref: this.dropdownButton, "data-automation-id": automationId },
|
|
1784
|
-
!reverseIcon && this.renderButtonContent(),
|
|
1785
|
-
reverseIcon && this.renderReversedButtonContent()
|
|
1786
|
-
),
|
|
1787
|
-
this.state.isMenuVisible && this.renderDropdownMenu()
|
|
1788
|
-
);
|
|
1789
|
-
};
|
|
1790
|
-
Dropdown2.displayName = "Dropdown";
|
|
1791
|
-
Dropdown2.defaultProps = {
|
|
1792
|
-
iconPosition: "start"
|
|
1793
|
-
};
|
|
1794
|
-
return Dropdown2;
|
|
1795
|
-
}(react_1["default"].Component)
|
|
1796
|
-
);
|
|
1797
|
-
exports["default"] = Dropdown;
|
|
1798
|
-
})(Dropdown);
|
|
1799
|
-
|
|
1800
|
-
(function(exports) {
|
|
1801
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1802
|
-
if (k2 === void 0)
|
|
1803
|
-
k2 = k;
|
|
1804
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1805
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1806
|
-
desc = { enumerable: true, get: function() {
|
|
1807
|
-
return m[k];
|
|
1808
|
-
} };
|
|
1809
|
-
}
|
|
1810
|
-
Object.defineProperty(o, k2, desc);
|
|
1811
|
-
} : function(o, m, k, k2) {
|
|
1812
|
-
if (k2 === void 0)
|
|
1813
|
-
k2 = k;
|
|
1814
|
-
o[k2] = m[k];
|
|
1815
|
-
});
|
|
1816
|
-
exports.__esModule = true;
|
|
1817
|
-
exports.Dropdown = void 0;
|
|
1818
|
-
var Dropdown_1 = Dropdown;
|
|
1819
|
-
__createBinding(exports, Dropdown_1, "default", "Dropdown");
|
|
1820
|
-
})(Dropdown$1);
|
|
1821
|
-
|
|
1822
|
-
var Layout$1 = {};
|
|
1823
|
-
|
|
1824
|
-
var Layout = {};
|
|
1825
|
-
|
|
1826
|
-
var Layout_module = {"root":"Layout-module_root__SgXZT","navigationBar":"Layout-module_navigationBar__1xbfp","page":"Layout-module_page__ZSTUO","header":"Layout-module_header__X1E96","footer":"Layout-module_footer__wFknz","body":"Layout-module_body__r1d-M","bodyInner":"Layout-module_bodyInner__e5WA6","sidebar":"Layout-module_sidebar__FSH-B","content":"Layout-module_content__6gaoR","toasts":"Layout-module_toasts__ZDy2G","announcers":"Layout-module_announcers__fAmmq"};
|
|
1827
|
-
|
|
1828
|
-
var Layout_module$1 = /*#__PURE__*/Object.freeze({
|
|
1829
|
-
__proto__: null,
|
|
1830
|
-
default: Layout_module
|
|
1831
|
-
});
|
|
1832
|
-
|
|
1833
|
-
var require$$1$3 = /*@__PURE__*/getAugmentedNamespace(Layout_module$1);
|
|
1834
|
-
|
|
1835
|
-
(function(exports) {
|
|
1836
|
-
var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
|
|
1837
|
-
var extendStatics = function(d, b) {
|
|
1838
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1839
|
-
d2.__proto__ = b2;
|
|
1840
|
-
} || function(d2, b2) {
|
|
1841
|
-
for (var p in b2)
|
|
1842
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
1843
|
-
d2[p] = b2[p];
|
|
1844
|
-
};
|
|
1845
|
-
return extendStatics(d, b);
|
|
1846
|
-
};
|
|
1847
|
-
return function(d, b) {
|
|
1848
|
-
if (typeof b !== "function" && b !== null)
|
|
1849
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1850
|
-
extendStatics(d, b);
|
|
1851
|
-
function __() {
|
|
1852
|
-
this.constructor = d;
|
|
1853
|
-
}
|
|
1854
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1855
|
-
};
|
|
1856
|
-
}();
|
|
1857
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
1858
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
1859
|
-
};
|
|
1860
|
-
exports.__esModule = true;
|
|
1861
|
-
var react_1 = __importDefault(React__default);
|
|
1862
|
-
var Layout_module_scss_1 = __importDefault(require$$1$3);
|
|
1863
|
-
var NavigationBar = function(_a) {
|
|
1864
|
-
var children = _a.children;
|
|
1865
|
-
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].navigationBar }, children);
|
|
1866
|
-
};
|
|
1867
|
-
NavigationBar.displayName = "NavigationBar";
|
|
1868
|
-
var Sidebar = function(_a) {
|
|
1869
|
-
var children = _a.children;
|
|
1870
|
-
return react_1["default"].createElement(
|
|
1871
|
-
"div",
|
|
1872
|
-
{ className: Layout_module_scss_1["default"].sidebar },
|
|
1873
|
-
react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].sidebarInner }, children)
|
|
1874
|
-
);
|
|
1875
|
-
};
|
|
1876
|
-
Sidebar.displayName = "Sidebar";
|
|
1877
|
-
var Header = function(_a) {
|
|
1878
|
-
var children = _a.children;
|
|
1879
|
-
return react_1["default"].createElement("aside", { className: Layout_module_scss_1["default"].header }, children);
|
|
1880
|
-
};
|
|
1881
|
-
Header.displayName = "Header";
|
|
1882
|
-
var Footer = function(_a) {
|
|
1883
|
-
var children = _a.children;
|
|
1884
|
-
return react_1["default"].createElement("footer", { className: Layout_module_scss_1["default"].footer }, children);
|
|
1885
|
-
};
|
|
1886
|
-
Footer.displayName = "Footer";
|
|
1887
|
-
var Toasts = function(_a) {
|
|
1888
|
-
var children = _a.children;
|
|
1889
|
-
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].toasts, "aria-live": "assertive" }, children);
|
|
1890
|
-
};
|
|
1891
|
-
Toasts.displayName = "Toasts";
|
|
1892
|
-
var Announcers = function(_a) {
|
|
1893
|
-
var children = _a.children;
|
|
1894
|
-
return react_1["default"].createElement("div", { className: Layout_module_scss_1["default"].announcers, "aria-live": "assertive" }, children);
|
|
1895
|
-
};
|
|
1896
|
-
Announcers.displayName = "Announcers";
|
|
1897
|
-
var Layout = (
|
|
1898
|
-
/** @class */
|
|
1899
|
-
function(_super) {
|
|
1900
|
-
__extends(Layout2, _super);
|
|
1901
|
-
function Layout2() {
|
|
1902
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1903
|
-
}
|
|
1904
|
-
Layout2.prototype.render = function() {
|
|
1905
|
-
var content = react_1["default"].Children.toArray(this.props.children);
|
|
1906
|
-
var navbar = extractChildOfType(content, NavigationBar);
|
|
1907
|
-
var header = extractChildOfType(content, Header);
|
|
1908
|
-
var sidebar = extractChildOfType(content, Sidebar);
|
|
1909
|
-
var footer = extractChildOfType(content, Footer);
|
|
1910
|
-
var announcers = extractChildOfType(content, Announcers);
|
|
1911
|
-
var toasts = extractChildOfType(content, Toasts);
|
|
1912
|
-
return react_1["default"].createElement(
|
|
1913
|
-
"div",
|
|
1914
|
-
{ className: Layout_module_scss_1["default"].root },
|
|
1915
|
-
navbar,
|
|
1916
|
-
announcers,
|
|
1917
|
-
react_1["default"].createElement(
|
|
1918
|
-
"div",
|
|
1919
|
-
{ className: Layout_module_scss_1["default"].page },
|
|
1920
|
-
header,
|
|
1921
|
-
toasts,
|
|
1922
|
-
react_1["default"].createElement(
|
|
1923
|
-
"div",
|
|
1924
|
-
{ className: Layout_module_scss_1["default"].body },
|
|
1925
|
-
react_1["default"].createElement(
|
|
1926
|
-
"div",
|
|
1927
|
-
{ className: Layout_module_scss_1["default"].bodyInner },
|
|
1928
|
-
sidebar,
|
|
1929
|
-
react_1["default"].createElement("main", { className: Layout_module_scss_1["default"].content }, content)
|
|
1930
|
-
)
|
|
1931
|
-
),
|
|
1932
|
-
footer
|
|
1933
|
-
)
|
|
1934
|
-
);
|
|
1935
|
-
};
|
|
1936
|
-
Layout2.displayName = "Layout";
|
|
1937
|
-
Layout2.NavigationBar = NavigationBar;
|
|
1938
|
-
Layout2.Sidebar = Sidebar;
|
|
1939
|
-
Layout2.Header = Header;
|
|
1940
|
-
Layout2.Footer = Footer;
|
|
1941
|
-
Layout2.Toasts = Toasts;
|
|
1942
|
-
Layout2.Announcers = Announcers;
|
|
1943
|
-
return Layout2;
|
|
1944
|
-
}(react_1["default"].Component)
|
|
1945
|
-
);
|
|
1946
|
-
var extractChildOfType = function(children, type) {
|
|
1947
|
-
var match = children.find(function(child) {
|
|
1948
|
-
if (react_1["default"].isValidElement(child) && typeof child.type === "function") {
|
|
1949
|
-
return child.type.displayName === type.displayName;
|
|
1950
|
-
}
|
|
1951
|
-
return false;
|
|
1952
|
-
});
|
|
1953
|
-
if (match) {
|
|
1954
|
-
var index = children.indexOf(match);
|
|
1955
|
-
children.splice(index, 1);
|
|
1956
|
-
}
|
|
1957
|
-
return match;
|
|
1958
|
-
};
|
|
1959
|
-
exports["default"] = Layout;
|
|
1960
|
-
})(Layout);
|
|
1961
|
-
|
|
1962
|
-
(function(exports) {
|
|
1963
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
1964
|
-
if (k2 === void 0)
|
|
1965
|
-
k2 = k;
|
|
1966
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1967
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1968
|
-
desc = { enumerable: true, get: function() {
|
|
1969
|
-
return m[k];
|
|
1970
|
-
} };
|
|
1971
|
-
}
|
|
1972
|
-
Object.defineProperty(o, k2, desc);
|
|
1973
|
-
} : function(o, m, k, k2) {
|
|
1974
|
-
if (k2 === void 0)
|
|
1975
|
-
k2 = k;
|
|
1976
|
-
o[k2] = m[k];
|
|
1977
|
-
});
|
|
1978
|
-
exports.__esModule = true;
|
|
1979
|
-
exports.Layout = void 0;
|
|
1980
|
-
var Layout_1 = Layout;
|
|
1981
|
-
__createBinding(exports, Layout_1, "default", "Layout");
|
|
1982
|
-
})(Layout$1);
|
|
1983
|
-
|
|
1984
|
-
var MenuList$1 = {};
|
|
1985
|
-
|
|
1986
|
-
var MenuList = {};
|
|
1987
|
-
|
|
1988
|
-
var Menu_module = {"menuList":"Menu-module_menuList__behqY","header":"Menu-module_header__MMpNm","header__title":"Menu-module_header__title__4QK0E","menuItem":"Menu-module_menuItem__0rlZg Icon-module_interactiveIconWrapper__ieTrE","menuItem--active":"Menu-module_menuItem--active__xr3IS Icon-module_active__d47mz","menuItem__Icon":"Menu-module_menuItem__Icon__SEvH-","menuItem--destructive":"Menu-module_menuItem--destructive__bg0qx","menuItem__Label":"Menu-module_menuItem__Label__KPrkg","hoverIcon":"Menu-module_hoverIcon__WCsbC","separator":"Menu-module_separator__RCRVm"};
|
|
1989
|
-
|
|
1990
|
-
var Menu_module$1 = /*#__PURE__*/Object.freeze({
|
|
1991
|
-
__proto__: null,
|
|
1992
|
-
default: Menu_module
|
|
1993
|
-
});
|
|
1994
|
-
|
|
1995
|
-
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(Menu_module$1);
|
|
1996
|
-
|
|
1997
|
-
(function(exports) {
|
|
1998
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
1999
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2000
|
-
};
|
|
2001
|
-
exports.__esModule = true;
|
|
2002
|
-
var react_1 = __importDefault(React__default);
|
|
2003
|
-
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
2004
|
-
var MenuList = function(props) {
|
|
2005
|
-
return react_1["default"].createElement("div", { className: Menu_module_scss_1["default"].menuList }, props.children);
|
|
2006
|
-
};
|
|
2007
|
-
MenuList.displayName = "MenuList";
|
|
2008
|
-
exports["default"] = MenuList;
|
|
2009
|
-
})(MenuList);
|
|
2010
|
-
|
|
2011
|
-
var MenuHeader = {};
|
|
2012
|
-
|
|
2013
|
-
(function(exports) {
|
|
2014
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2015
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2016
|
-
};
|
|
2017
|
-
exports.__esModule = true;
|
|
2018
|
-
var react_1 = __importDefault(React__default);
|
|
2019
|
-
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
2020
|
-
var MenuHeader = function(props) {
|
|
2021
|
-
return react_1["default"].createElement(
|
|
2022
|
-
"div",
|
|
2023
|
-
{ className: Menu_module_scss_1["default"].header },
|
|
2024
|
-
react_1["default"].createElement("span", { className: Menu_module_scss_1["default"].header__title }, props.title)
|
|
2025
|
-
);
|
|
2026
|
-
};
|
|
2027
|
-
MenuHeader.displayName = "MenuHeader";
|
|
2028
|
-
exports["default"] = MenuHeader;
|
|
2029
|
-
})(MenuHeader);
|
|
2030
|
-
|
|
2031
|
-
var MenuItem = {};
|
|
2032
|
-
|
|
2033
|
-
(function(exports) {
|
|
2034
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2035
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2036
|
-
};
|
|
2037
|
-
exports.__esModule = true;
|
|
2038
|
-
var react_1 = __importDefault(React__default);
|
|
2039
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
2040
|
-
var Icon_1 = Icon$1;
|
|
2041
|
-
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
2042
|
-
var MenuItem = function(props) {
|
|
2043
|
-
var icon = props.icon, hoverIcon = props.hoverIcon, children = props.children, action = props.action, active = props.active, destructive = props.destructive, automationId = props.automationId;
|
|
2044
|
-
var isLink = typeof action === "string";
|
|
2045
|
-
var label = react_1["default"].createElement(
|
|
2046
|
-
"span",
|
|
2047
|
-
{ className: Menu_module_scss_1["default"].menuItem__Label },
|
|
2048
|
-
children,
|
|
2049
|
-
isLink && "\u2026"
|
|
2050
|
-
);
|
|
2051
|
-
var iconNode = icon && react_1["default"].createElement(
|
|
2052
|
-
"span",
|
|
2053
|
-
{ className: Menu_module_scss_1["default"].menuItem__Icon },
|
|
2054
|
-
react_1["default"].createElement(Icon_1.Icon, { icon, role: "presentation" })
|
|
2055
|
-
);
|
|
2056
|
-
var className = (0, classnames_1["default"])(Menu_module_scss_1["default"].menuItem, icon && hoverIcon && Menu_module_scss_1["default"].hoverIcon, active && Menu_module_scss_1["default"]["menuItem--active"], destructive && Menu_module_scss_1["default"]["menuItem--destructive"]);
|
|
2057
|
-
if (typeof action === "string") {
|
|
2058
|
-
return react_1["default"].createElement(
|
|
2059
|
-
"a",
|
|
2060
|
-
{ href: action, className, "data-automation-id": automationId },
|
|
2061
|
-
label,
|
|
2062
|
-
iconNode
|
|
2063
|
-
);
|
|
2064
|
-
}
|
|
2065
|
-
return (
|
|
2066
|
-
// Disabling instead of addressing because this component is deprecated.
|
|
2067
|
-
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
2068
|
-
react_1["default"].createElement(
|
|
2069
|
-
"a",
|
|
2070
|
-
{ href: "#", onClick: action, className, "data-automation-id": automationId },
|
|
2071
|
-
label,
|
|
2072
|
-
iconNode
|
|
2073
|
-
)
|
|
2074
|
-
);
|
|
2075
|
-
};
|
|
2076
|
-
MenuItem.displayName = "MenuItem";
|
|
2077
|
-
exports["default"] = MenuItem;
|
|
2078
|
-
})(MenuItem);
|
|
2079
|
-
|
|
2080
|
-
var MenuSeparator = {};
|
|
2081
|
-
|
|
2082
|
-
(function(exports) {
|
|
2083
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2084
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2085
|
-
};
|
|
2086
|
-
exports.__esModule = true;
|
|
2087
|
-
var react_1 = __importDefault(React__default);
|
|
2088
|
-
var Menu_module_scss_1 = __importDefault(require$$1$2);
|
|
2089
|
-
var MenuSeparator = function() {
|
|
2090
|
-
return react_1["default"].createElement("hr", { className: Menu_module_scss_1["default"].separator });
|
|
2091
|
-
};
|
|
2092
|
-
MenuSeparator.displayName = "MenuSeparator";
|
|
2093
|
-
exports["default"] = MenuSeparator;
|
|
2094
|
-
})(MenuSeparator);
|
|
2095
|
-
|
|
2096
|
-
(function(exports) {
|
|
2097
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2098
|
-
if (k2 === void 0)
|
|
2099
|
-
k2 = k;
|
|
2100
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2101
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2102
|
-
desc = { enumerable: true, get: function() {
|
|
2103
|
-
return m[k];
|
|
2104
|
-
} };
|
|
2105
|
-
}
|
|
2106
|
-
Object.defineProperty(o, k2, desc);
|
|
2107
|
-
} : function(o, m, k, k2) {
|
|
2108
|
-
if (k2 === void 0)
|
|
2109
|
-
k2 = k;
|
|
2110
|
-
o[k2] = m[k];
|
|
2111
|
-
});
|
|
2112
|
-
exports.__esModule = true;
|
|
2113
|
-
exports.MenuSeparator = exports.MenuItem = exports.MenuHeader = exports.MenuList = void 0;
|
|
2114
|
-
var MenuList_1 = MenuList;
|
|
2115
|
-
__createBinding(exports, MenuList_1, "default", "MenuList");
|
|
2116
|
-
var MenuHeader_1 = MenuHeader;
|
|
2117
|
-
__createBinding(exports, MenuHeader_1, "default", "MenuHeader");
|
|
2118
|
-
var MenuItem_1 = MenuItem;
|
|
2119
|
-
__createBinding(exports, MenuItem_1, "default", "MenuItem");
|
|
2120
|
-
var MenuSeparator_1 = MenuSeparator;
|
|
2121
|
-
__createBinding(exports, MenuSeparator_1, "default", "MenuSeparator");
|
|
2122
|
-
})(MenuList$1);
|
|
2123
|
-
|
|
2124
|
-
var Text$1 = {};
|
|
2125
|
-
|
|
2126
|
-
var Text = {};
|
|
2127
|
-
|
|
2128
|
-
var Text_module = {"page-title":"Text-module_page-title__LPGyH","default-style":"Text-module_default-style__wxvqC","title":"Text-module_title__zDZi1","display":"Text-module_display__4XAjg","heading":"Text-module_heading__bdw3r","lede":"Text-module_lede__rvztp","paragraph":"Text-module_paragraph__65c7w","body":"Text-module_body__5HknB","body-bold":"Text-module_body-bold__M2YFx","small":"Text-module_small__VBWdb","small-bold":"Text-module_small-bold__IFUAu","notification":"Text-module_notification__jl725","label":"Text-module_label__gUBTw","control-action":"Text-module_control-action__BErPr","button":"Text-module_button__nPbRH","inheritBaseline":"Text-module_inheritBaseline__D0Lfs","inline":"Text-module_inline__KlYw2","defaultStyle":"Text-module_defaultStyle__Tka8v Text-module_default-style__wxvqC","pageTitle":"Text-module_pageTitle__-NMTK Text-module_page-title__LPGyH","bodyBold":"Text-module_bodyBold__CCDF7 Text-module_body-bold__M2YFx","smallBold":"Text-module_smallBold__TdPug Text-module_small-bold__IFUAu","controlAction":"Text-module_controlAction__WB-Pz Text-module_control-action__BErPr","zen-display-0":"Text-module_zen-display-0__s1w7g","zen-heading-1":"Text-module_zen-heading-1__YX01A","zen-heading-2":"Text-module_zen-heading-2__JVOtq","zen-heading-3":"Text-module_zen-heading-3__JOT3q","zen-data-large":"Text-module_zen-data-large__EgwWh","zen-data-large-units":"Text-module_zen-data-large-units__lZjpK","zen-data-medium":"Text-module_zen-data-medium__wKodD","zen-data-medium-units":"Text-module_zen-data-medium-units__zh-e8","zen-data-small":"Text-module_zen-data-small__LtxHR","zen-data-small-units":"Text-module_zen-data-small-units__0RtFJ"};
|
|
2129
|
-
|
|
2130
|
-
var Text_module$1 = /*#__PURE__*/Object.freeze({
|
|
2131
|
-
__proto__: null,
|
|
2132
|
-
default: Text_module
|
|
2133
|
-
});
|
|
2134
|
-
|
|
2135
|
-
var require$$2$3 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
|
|
2136
|
-
|
|
2137
|
-
(function(exports) {
|
|
2138
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2139
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2140
|
-
};
|
|
2141
|
-
exports.__esModule = true;
|
|
2142
|
-
var react_1 = __importDefault(React__default);
|
|
2143
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
2144
|
-
var Text_module_scss_1 = __importDefault(require$$2$3);
|
|
2145
|
-
var Text = function(_a) {
|
|
2146
|
-
var tag = _a.tag, children = _a.children, _b = _a.inheritBaseline, inheritBaseline = _b === void 0 ? false : _b, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.style, style = _d === void 0 ? "default-style" : _d;
|
|
2147
|
-
return react_1["default"].createElement(tag, {
|
|
2148
|
-
className: (0, classnames_1["default"])(Text_module_scss_1["default"][style], inheritBaseline && Text_module_scss_1["default"].inheritBaseline, inline && Text_module_scss_1["default"].inline)
|
|
2149
|
-
}, children);
|
|
2150
|
-
};
|
|
2151
|
-
Text.displayName = "Text";
|
|
2152
|
-
exports["default"] = Text;
|
|
2153
|
-
})(Text);
|
|
2154
|
-
|
|
2155
|
-
(function(exports) {
|
|
2156
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2157
|
-
if (k2 === void 0)
|
|
2158
|
-
k2 = k;
|
|
2159
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2160
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2161
|
-
desc = { enumerable: true, get: function() {
|
|
2162
|
-
return m[k];
|
|
2163
|
-
} };
|
|
2164
|
-
}
|
|
2165
|
-
Object.defineProperty(o, k2, desc);
|
|
2166
|
-
} : function(o, m, k, k2) {
|
|
2167
|
-
if (k2 === void 0)
|
|
2168
|
-
k2 = k;
|
|
2169
|
-
o[k2] = m[k];
|
|
2170
|
-
});
|
|
2171
|
-
exports.__esModule = true;
|
|
2172
|
-
exports.Text = void 0;
|
|
2173
|
-
var Text_1 = Text;
|
|
2174
|
-
__createBinding(exports, Text_1, "default", "Text");
|
|
2175
|
-
})(Text$1);
|
|
2176
|
-
|
|
2177
|
-
var Spacing = {};
|
|
2178
|
-
|
|
2179
|
-
var padding = {};
|
|
2180
|
-
|
|
2181
|
-
var util = {};
|
|
2182
|
-
|
|
2183
|
-
util.__esModule = true;
|
|
2184
|
-
util.convertFractionToString = void 0;
|
|
2185
|
-
var convertFractionToString = function(fraction) {
|
|
2186
|
-
switch (fraction) {
|
|
2187
|
-
case 0:
|
|
2188
|
-
default:
|
|
2189
|
-
return "0";
|
|
2190
|
-
case 0.25:
|
|
2191
|
-
return "0-point-25";
|
|
2192
|
-
case 0.5:
|
|
2193
|
-
return "0-point-5";
|
|
2194
|
-
case 0.75:
|
|
2195
|
-
return "0-point-75";
|
|
2196
|
-
case 1:
|
|
2197
|
-
return "1";
|
|
2198
|
-
case 1.25:
|
|
2199
|
-
return "1-point-25";
|
|
2200
|
-
case 1.5:
|
|
2201
|
-
return "1-point-5";
|
|
2202
|
-
case 1.75:
|
|
2203
|
-
return "1-point-75";
|
|
2204
|
-
case 2:
|
|
2205
|
-
return "2";
|
|
2206
|
-
case 2.5:
|
|
2207
|
-
return "2-point-5";
|
|
2208
|
-
case 3:
|
|
2209
|
-
return "3";
|
|
2210
|
-
case 3.5:
|
|
2211
|
-
return "3-point-5";
|
|
2212
|
-
case 4:
|
|
2213
|
-
return "4";
|
|
2214
|
-
}
|
|
2215
|
-
};
|
|
2216
|
-
util.convertFractionToString = convertFractionToString;
|
|
2217
|
-
|
|
2218
|
-
var Padding_module = {"p-0":"Padding-module_p-0__MEDlm","pt-0":"Padding-module_pt-0__2lPMY","pr-0":"Padding-module_pr-0__tgwOG","pb-0":"Padding-module_pb-0__h-og-","pl-0":"Padding-module_pl-0__KQQIN","p-0-point-25":"Padding-module_p-0-point-25__WR6Pl","pt-0-point-25":"Padding-module_pt-0-point-25__OHxwL","pr-0-point-25":"Padding-module_pr-0-point-25__dw3lt","pb-0-point-25":"Padding-module_pb-0-point-25__R-G37","pl-0-point-25":"Padding-module_pl-0-point-25__4H6f8","p-0-point-5":"Padding-module_p-0-point-5__5z-Tg","pt-0-point-5":"Padding-module_pt-0-point-5__BILAZ","pr-0-point-5":"Padding-module_pr-0-point-5__Qdc6L","pb-0-point-5":"Padding-module_pb-0-point-5__FJOcg","pl-0-point-5":"Padding-module_pl-0-point-5__gctiZ","p-0-point-75":"Padding-module_p-0-point-75__SCNgd","pt-0-point-75":"Padding-module_pt-0-point-75__Cve0I","pr-0-point-75":"Padding-module_pr-0-point-75__11l9x","pb-0-point-75":"Padding-module_pb-0-point-75__WfgDh","pl-0-point-75":"Padding-module_pl-0-point-75__YKbVF","p-1":"Padding-module_p-1__jIDUT","pt-1":"Padding-module_pt-1__r358b","pr-1":"Padding-module_pr-1__fdsMH","pb-1":"Padding-module_pb-1__gkHqH","pl-1":"Padding-module_pl-1__1fvrt","p-1-point-25":"Padding-module_p-1-point-25__9q2Tk","pt-1-point-25":"Padding-module_pt-1-point-25__uYpt3","pr-1-point-25":"Padding-module_pr-1-point-25__8xYeA","pb-1-point-25":"Padding-module_pb-1-point-25__JwIfB","pl-1-point-25":"Padding-module_pl-1-point-25__-w5XU","p-1-point-5":"Padding-module_p-1-point-5__LICS6","pt-1-point-5":"Padding-module_pt-1-point-5__p9H7t","pr-1-point-5":"Padding-module_pr-1-point-5__agJTp","pb-1-point-5":"Padding-module_pb-1-point-5__Ig7SW","pl-1-point-5":"Padding-module_pl-1-point-5__iBcnI","p-1-point-75":"Padding-module_p-1-point-75__lctpg","pt-1-point-75":"Padding-module_pt-1-point-75__MVIUz","pr-1-point-75":"Padding-module_pr-1-point-75__A-Ur-","pb-1-point-75":"Padding-module_pb-1-point-75__TctUk","pl-1-point-75":"Padding-module_pl-1-point-75__ahplz","p-2":"Padding-module_p-2__iEsEq","pt-2":"Padding-module_pt-2__-uaDE","pr-2":"Padding-module_pr-2__py781","pb-2":"Padding-module_pb-2__75eso","pl-2":"Padding-module_pl-2__4L8zZ","p-2-point-5":"Padding-module_p-2-point-5__fFM5N","pt-2-point-5":"Padding-module_pt-2-point-5__aDZvm","pr-2-point-5":"Padding-module_pr-2-point-5__H-fJW","pb-2-point-5":"Padding-module_pb-2-point-5__0oSvZ","pl-2-point-5":"Padding-module_pl-2-point-5__BGKgq","p-3":"Padding-module_p-3__LltVV","pt-3":"Padding-module_pt-3__Ew6IB","pr-3":"Padding-module_pr-3__ehVq5","pb-3":"Padding-module_pb-3__u8K7J","pl-3":"Padding-module_pl-3__GLx74","p-3-point-5":"Padding-module_p-3-point-5__PyzuE","pt-3-point-5":"Padding-module_pt-3-point-5__qKa2E","pr-3-point-5":"Padding-module_pr-3-point-5__xJlsH","pb-3-point-5":"Padding-module_pb-3-point-5__H4D4H","pl-3-point-5":"Padding-module_pl-3-point-5__krW-a","p-4":"Padding-module_p-4__boMST","pt-4":"Padding-module_pt-4__lHX5n","pr-4":"Padding-module_pr-4__sl2rR","pb-4":"Padding-module_pb-4__ffDeO","pl-4":"Padding-module_pl-4__mRkKo"};
|
|
2219
|
-
|
|
2220
|
-
var Padding_module$1 = /*#__PURE__*/Object.freeze({
|
|
2221
|
-
__proto__: null,
|
|
2222
|
-
default: Padding_module
|
|
2223
|
-
});
|
|
2224
|
-
|
|
2225
|
-
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(Padding_module$1);
|
|
2226
|
-
|
|
2227
|
-
(function(exports) {
|
|
2228
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2229
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2230
|
-
};
|
|
2231
|
-
exports.__esModule = true;
|
|
2232
|
-
exports.paddingClasses = exports.p = exports.py = exports.px = exports.pl = exports.pb = exports.pr = exports.pt = void 0;
|
|
2233
|
-
var util_1 = util;
|
|
2234
|
-
var Padding_module_scss_1 = __importDefault(require$$1$1);
|
|
2235
|
-
var pt = function(unit) {
|
|
2236
|
-
return [
|
|
2237
|
-
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2238
|
-
];
|
|
2239
|
-
};
|
|
2240
|
-
exports.pt = pt;
|
|
2241
|
-
var pr = function(unit) {
|
|
2242
|
-
return [
|
|
2243
|
-
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2244
|
-
];
|
|
2245
|
-
};
|
|
2246
|
-
exports.pr = pr;
|
|
2247
|
-
var pb = function(unit) {
|
|
2248
|
-
return [
|
|
2249
|
-
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2250
|
-
];
|
|
2251
|
-
};
|
|
2252
|
-
exports.pb = pb;
|
|
2253
|
-
var pl = function(unit) {
|
|
2254
|
-
return [
|
|
2255
|
-
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2256
|
-
];
|
|
2257
|
-
};
|
|
2258
|
-
exports.pl = pl;
|
|
2259
|
-
var px = function(unit) {
|
|
2260
|
-
return [
|
|
2261
|
-
Padding_module_scss_1["default"]["pl-".concat((0, util_1.convertFractionToString)(unit))],
|
|
2262
|
-
Padding_module_scss_1["default"]["pr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2263
|
-
];
|
|
2264
|
-
};
|
|
2265
|
-
exports.px = px;
|
|
2266
|
-
var py = function(unit) {
|
|
2267
|
-
return [
|
|
2268
|
-
Padding_module_scss_1["default"]["pt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
2269
|
-
Padding_module_scss_1["default"]["pb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2270
|
-
];
|
|
2271
|
-
};
|
|
2272
|
-
exports.py = py;
|
|
2273
|
-
var p = function(unit) {
|
|
2274
|
-
var classes = [];
|
|
2275
|
-
if (typeof unit === "number") {
|
|
2276
|
-
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
2277
|
-
} else {
|
|
2278
|
-
Object.keys(unit).forEach(function(key) {
|
|
2279
|
-
classes.push(Padding_module_scss_1["default"]["p-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
2280
|
-
});
|
|
2281
|
-
}
|
|
2282
|
-
return classes;
|
|
2283
|
-
};
|
|
2284
|
-
exports.p = p;
|
|
2285
|
-
var paddingClasses = function(_a) {
|
|
2286
|
-
var padding2 = _a.p, paddingTop = _a.pt, paddingRight = _a.pr, paddingBottom = _a.pb, paddingLeft = _a.pl, paddingXAxis = _a.px, paddingYAxis = _a.py, _b = _a.rtl, rtl = _b === void 0 ? false : _b;
|
|
2287
|
-
var classes = [];
|
|
2288
|
-
if (padding2 !== void 0)
|
|
2289
|
-
classes.push.apply(classes, (0, exports.p)(padding2));
|
|
2290
|
-
if (paddingTop !== void 0)
|
|
2291
|
-
classes.push.apply(classes, (0, exports.pt)(paddingTop));
|
|
2292
|
-
if (paddingBottom !== void 0)
|
|
2293
|
-
classes.push.apply(classes, (0, exports.pb)(paddingBottom));
|
|
2294
|
-
if (paddingXAxis !== void 0)
|
|
2295
|
-
classes.push.apply(classes, (0, exports.px)(paddingXAxis));
|
|
2296
|
-
if (paddingYAxis !== void 0)
|
|
2297
|
-
classes.push.apply(classes, (0, exports.py)(paddingYAxis));
|
|
2298
|
-
if (rtl) {
|
|
2299
|
-
if (paddingRight !== void 0)
|
|
2300
|
-
classes.push.apply(classes, (0, exports.pl)(paddingRight));
|
|
2301
|
-
if (paddingLeft !== void 0)
|
|
2302
|
-
classes.push.apply(classes, (0, exports.pr)(paddingLeft));
|
|
2303
|
-
} else {
|
|
2304
|
-
if (paddingRight !== void 0)
|
|
2305
|
-
classes.push.apply(classes, (0, exports.pr)(paddingRight));
|
|
2306
|
-
if (paddingLeft !== void 0)
|
|
2307
|
-
classes.push.apply(classes, (0, exports.pl)(paddingLeft));
|
|
2308
|
-
}
|
|
2309
|
-
if (padding2 === void 0 && paddingTop === void 0 && paddingRight === void 0 && paddingBottom === void 0 && paddingLeft === void 0 && paddingXAxis === void 0 && paddingYAxis === void 0) {
|
|
2310
|
-
classes.push.apply(classes, (0, exports.p)(0));
|
|
2311
|
-
}
|
|
2312
|
-
return classes;
|
|
2313
|
-
};
|
|
2314
|
-
exports.paddingClasses = paddingClasses;
|
|
2315
|
-
})(padding);
|
|
2316
|
-
|
|
2317
|
-
var margin = {};
|
|
2318
|
-
|
|
2319
|
-
var Margin_module = {"m-0":"Margin-module_m-0__hSA96","mt-0":"Margin-module_mt-0__7WGbv","mr-0":"Margin-module_mr-0__CX8k-","mb-0":"Margin-module_mb-0__LjHy2","ml-0":"Margin-module_ml-0__Ffq2J","m-0-point-25":"Margin-module_m-0-point-25__RrkvF","mt-0-point-25":"Margin-module_mt-0-point-25__lOnmq","mr-0-point-25":"Margin-module_mr-0-point-25__JYjnr","mb-0-point-25":"Margin-module_mb-0-point-25__aSIWe","ml-0-point-25":"Margin-module_ml-0-point-25__UIx-6","m-0-point-5":"Margin-module_m-0-point-5__o1ClI","mt-0-point-5":"Margin-module_mt-0-point-5__Hlw6J","mr-0-point-5":"Margin-module_mr-0-point-5__lTVga","mb-0-point-5":"Margin-module_mb-0-point-5__09Kv0","ml-0-point-5":"Margin-module_ml-0-point-5__IyBy5","m-0-point-75":"Margin-module_m-0-point-75__IttHs","mt-0-point-75":"Margin-module_mt-0-point-75__8aL1j","mr-0-point-75":"Margin-module_mr-0-point-75__1iTsr","mb-0-point-75":"Margin-module_mb-0-point-75__bcGVL","ml-0-point-75":"Margin-module_ml-0-point-75__UoIM3","m-1":"Margin-module_m-1__WoH7S","mt-1":"Margin-module_mt-1__rmDMg","mr-1":"Margin-module_mr-1__bFRhS","mb-1":"Margin-module_mb-1__6Siyc","ml-1":"Margin-module_ml-1__j3WF6","m-1-point-25":"Margin-module_m-1-point-25__aslNk","mt-1-point-25":"Margin-module_mt-1-point-25__l-Kna","mr-1-point-25":"Margin-module_mr-1-point-25__yKHfB","mb-1-point-25":"Margin-module_mb-1-point-25__k7Wnb","ml-1-point-25":"Margin-module_ml-1-point-25__tKCHD","m-1-point-5":"Margin-module_m-1-point-5__e5RRa","mt-1-point-5":"Margin-module_mt-1-point-5__0oleV","mr-1-point-5":"Margin-module_mr-1-point-5__UV2Ds","mb-1-point-5":"Margin-module_mb-1-point-5__DgIcA","ml-1-point-5":"Margin-module_ml-1-point-5__-a31T","m-1-point-75":"Margin-module_m-1-point-75__IxxDx","mt-1-point-75":"Margin-module_mt-1-point-75__zBEJc","mr-1-point-75":"Margin-module_mr-1-point-75__7oQH3","mb-1-point-75":"Margin-module_mb-1-point-75__CyezZ","ml-1-point-75":"Margin-module_ml-1-point-75__8AcEE","m-2":"Margin-module_m-2__xDAX5","mt-2":"Margin-module_mt-2__BaPgk","mr-2":"Margin-module_mr-2__-8KSg","mb-2":"Margin-module_mb-2__lqKMm","ml-2":"Margin-module_ml-2__y6zUv","m-2-point-5":"Margin-module_m-2-point-5__nPaB6","mt-2-point-5":"Margin-module_mt-2-point-5__NtVq0","mr-2-point-5":"Margin-module_mr-2-point-5__u5ycP","mb-2-point-5":"Margin-module_mb-2-point-5__KoWcH","ml-2-point-5":"Margin-module_ml-2-point-5__rKkfV","m-3":"Margin-module_m-3__3Xx0F","mt-3":"Margin-module_mt-3__M2Jx3","mr-3":"Margin-module_mr-3__Ydznr","mb-3":"Margin-module_mb-3__-jI8t","ml-3":"Margin-module_ml-3__GKa-l","m-3-point-5":"Margin-module_m-3-point-5__3ZDkz","mt-3-point-5":"Margin-module_mt-3-point-5__VBSF-","mr-3-point-5":"Margin-module_mr-3-point-5__wf0U2","mb-3-point-5":"Margin-module_mb-3-point-5__OMror","ml-3-point-5":"Margin-module_ml-3-point-5__ootW1","m-4":"Margin-module_m-4__dZ985","mt-4":"Margin-module_mt-4__BUm9K","mr-4":"Margin-module_mr-4__mKUUj","mb-4":"Margin-module_mb-4__dO-YX","ml-4":"Margin-module_ml-4__EE62n"};
|
|
2320
|
-
|
|
2321
|
-
var Margin_module$1 = /*#__PURE__*/Object.freeze({
|
|
2322
|
-
__proto__: null,
|
|
2323
|
-
default: Margin_module
|
|
2324
|
-
});
|
|
2325
|
-
|
|
2326
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(Margin_module$1);
|
|
2327
|
-
|
|
2328
|
-
(function(exports) {
|
|
2329
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2330
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2331
|
-
};
|
|
2332
|
-
exports.__esModule = true;
|
|
2333
|
-
exports.marginClasses = exports.m = exports.my = exports.mx = exports.ml = exports.mb = exports.mr = exports.mt = void 0;
|
|
2334
|
-
var util_1 = util;
|
|
2335
|
-
var Margin_module_scss_1 = __importDefault(require$$1);
|
|
2336
|
-
var mt = function(unit) {
|
|
2337
|
-
return [
|
|
2338
|
-
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2339
|
-
];
|
|
2340
|
-
};
|
|
2341
|
-
exports.mt = mt;
|
|
2342
|
-
var mr = function(unit) {
|
|
2343
|
-
return [
|
|
2344
|
-
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2345
|
-
];
|
|
2346
|
-
};
|
|
2347
|
-
exports.mr = mr;
|
|
2348
|
-
var mb = function(unit) {
|
|
2349
|
-
return [
|
|
2350
|
-
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2351
|
-
];
|
|
2352
|
-
};
|
|
2353
|
-
exports.mb = mb;
|
|
2354
|
-
var ml = function(unit) {
|
|
2355
|
-
return [
|
|
2356
|
-
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2357
|
-
];
|
|
2358
|
-
};
|
|
2359
|
-
exports.ml = ml;
|
|
2360
|
-
var mx = function(unit) {
|
|
2361
|
-
return [
|
|
2362
|
-
Margin_module_scss_1["default"]["ml-".concat((0, util_1.convertFractionToString)(unit))],
|
|
2363
|
-
Margin_module_scss_1["default"]["mr-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2364
|
-
];
|
|
2365
|
-
};
|
|
2366
|
-
exports.mx = mx;
|
|
2367
|
-
var my = function(unit) {
|
|
2368
|
-
return [
|
|
2369
|
-
Margin_module_scss_1["default"]["mt-".concat((0, util_1.convertFractionToString)(unit))],
|
|
2370
|
-
Margin_module_scss_1["default"]["mb-".concat((0, util_1.convertFractionToString)(unit))]
|
|
2371
|
-
];
|
|
2372
|
-
};
|
|
2373
|
-
exports.my = my;
|
|
2374
|
-
var m = function(unit) {
|
|
2375
|
-
var classes = [];
|
|
2376
|
-
if (typeof unit === "number") {
|
|
2377
|
-
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit))]);
|
|
2378
|
-
} else {
|
|
2379
|
-
Object.keys(unit).forEach(function(key) {
|
|
2380
|
-
classes.push(Margin_module_scss_1["default"]["m-".concat((0, util_1.convertFractionToString)(unit[key]), "--").concat(key)]);
|
|
2381
|
-
});
|
|
2382
|
-
}
|
|
2383
|
-
return classes;
|
|
2384
|
-
};
|
|
2385
|
-
exports.m = m;
|
|
2386
|
-
var marginClasses = function(_a) {
|
|
2387
|
-
var margin2 = _a.m, marginTop = _a.mt, marginRight = _a.mr, marginBottom = _a.mb, marginLeft = _a.ml, marginXAxis = _a.mx, marginYAxis = _a.my, _b = _a.rtl, rtl = _b === void 0 ? false : _b;
|
|
2388
|
-
var classes = [];
|
|
2389
|
-
if (margin2 !== void 0)
|
|
2390
|
-
classes.push.apply(classes, (0, exports.m)(margin2));
|
|
2391
|
-
if (marginTop !== void 0)
|
|
2392
|
-
classes.push.apply(classes, (0, exports.mt)(marginTop));
|
|
2393
|
-
if (marginBottom !== void 0)
|
|
2394
|
-
classes.push.apply(classes, (0, exports.mb)(marginBottom));
|
|
2395
|
-
if (marginXAxis !== void 0)
|
|
2396
|
-
classes.push.apply(classes, (0, exports.mx)(marginXAxis));
|
|
2397
|
-
if (marginYAxis !== void 0)
|
|
2398
|
-
classes.push.apply(classes, (0, exports.my)(marginYAxis));
|
|
2399
|
-
if (rtl) {
|
|
2400
|
-
if (marginRight !== void 0)
|
|
2401
|
-
classes.push.apply(classes, (0, exports.ml)(marginRight));
|
|
2402
|
-
if (marginLeft !== void 0)
|
|
2403
|
-
classes.push.apply(classes, (0, exports.mr)(marginLeft));
|
|
2404
|
-
} else {
|
|
2405
|
-
if (marginRight !== void 0)
|
|
2406
|
-
classes.push.apply(classes, (0, exports.mr)(marginRight));
|
|
2407
|
-
if (marginLeft !== void 0)
|
|
2408
|
-
classes.push.apply(classes, (0, exports.ml)(marginLeft));
|
|
2409
|
-
}
|
|
2410
|
-
if (margin2 === void 0 && marginTop === void 0 && marginRight === void 0 && marginBottom === void 0 && marginLeft === void 0 && marginXAxis === void 0 && marginYAxis === void 0) {
|
|
2411
|
-
classes.push.apply(classes, (0, exports.m)(0));
|
|
2412
|
-
}
|
|
2413
|
-
return classes;
|
|
2414
|
-
};
|
|
2415
|
-
exports.marginClasses = marginClasses;
|
|
2416
|
-
})(margin);
|
|
2417
|
-
|
|
2418
|
-
var types = {};
|
|
2419
|
-
|
|
2420
|
-
types.__esModule = true;
|
|
2421
|
-
|
|
2422
|
-
(function(exports) {
|
|
2423
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2424
|
-
if (k2 === void 0)
|
|
2425
|
-
k2 = k;
|
|
2426
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2427
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2428
|
-
desc = { enumerable: true, get: function() {
|
|
2429
|
-
return m[k];
|
|
2430
|
-
} };
|
|
2431
|
-
}
|
|
2432
|
-
Object.defineProperty(o, k2, desc);
|
|
2433
|
-
} : function(o, m, k, k2) {
|
|
2434
|
-
if (k2 === void 0)
|
|
2435
|
-
k2 = k;
|
|
2436
|
-
o[k2] = m[k];
|
|
2437
|
-
});
|
|
2438
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
2439
|
-
for (var p in m)
|
|
2440
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
2441
|
-
__createBinding(exports2, m, p);
|
|
2442
|
-
};
|
|
2443
|
-
exports.__esModule = true;
|
|
2444
|
-
__exportStar(padding, exports);
|
|
2445
|
-
__exportStar(margin, exports);
|
|
2446
|
-
__exportStar(types, exports);
|
|
2447
|
-
})(Spacing);
|
|
2448
|
-
|
|
2449
|
-
var Box$1 = {};
|
|
2450
|
-
|
|
2451
|
-
var Box = {};
|
|
2452
|
-
|
|
2453
|
-
(function(exports) {
|
|
2454
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
2455
|
-
__assign = Object.assign || function(t) {
|
|
2456
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2457
|
-
s = arguments[i];
|
|
2458
|
-
for (var p in s)
|
|
2459
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2460
|
-
t[p] = s[p];
|
|
2461
|
-
}
|
|
2462
|
-
return t;
|
|
2463
|
-
};
|
|
2464
|
-
return __assign.apply(this, arguments);
|
|
2465
|
-
};
|
|
2466
|
-
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
2467
|
-
var t = {};
|
|
2468
|
-
for (var p in s)
|
|
2469
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2470
|
-
t[p] = s[p];
|
|
2471
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2472
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2473
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2474
|
-
t[p[i]] = s[p[i]];
|
|
2475
|
-
}
|
|
2476
|
-
return t;
|
|
2477
|
-
};
|
|
2478
|
-
var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function(to, from, pack) {
|
|
2479
|
-
if (pack || arguments.length === 2)
|
|
2480
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
2481
|
-
if (ar || !(i in from)) {
|
|
2482
|
-
if (!ar)
|
|
2483
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
2484
|
-
ar[i] = from[i];
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2488
|
-
};
|
|
2489
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2490
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2491
|
-
};
|
|
2492
|
-
exports.__esModule = true;
|
|
2493
|
-
exports.Box = void 0;
|
|
2494
|
-
var react_1 = __importDefault(React__default);
|
|
2495
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
2496
|
-
var Spacing_1 = Spacing;
|
|
2497
|
-
var Box = function(_a) {
|
|
2498
|
-
var children = _a.children, _b = _a.rtl, rtl = _b === void 0 ? false : _b, m = _a.m, mt = _a.mt, mr = _a.mr, mb = _a.mb, ml = _a.ml, mx = _a.mx, my = _a.my, p = _a.p, pt = _a.pt, pr = _a.pr, pb = _a.pb, pl = _a.pl, px = _a.px, py = _a.py, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "rtl", "m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "classNameOverride"]);
|
|
2499
|
-
var classes = __spreadArray(__spreadArray([], (0, Spacing_1.paddingClasses)({ p, pt, pr, pb, pl, px, py, rtl }), true), (0, Spacing_1.marginClasses)({ m, mt, mr, mb, ml, mx, my, rtl }), true);
|
|
2500
|
-
return react_1["default"].createElement("div", __assign({ className: (0, classnames_1["default"])(classes, classNameOverride) }, restProps), children);
|
|
2501
|
-
};
|
|
2502
|
-
exports.Box = Box;
|
|
2503
|
-
exports.Box.displayName = "Box";
|
|
2504
|
-
})(Box);
|
|
2505
|
-
|
|
2506
|
-
(function(exports) {
|
|
2507
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2508
|
-
if (k2 === void 0)
|
|
2509
|
-
k2 = k;
|
|
2510
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2511
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2512
|
-
desc = { enumerable: true, get: function() {
|
|
2513
|
-
return m[k];
|
|
2514
|
-
} };
|
|
2515
|
-
}
|
|
2516
|
-
Object.defineProperty(o, k2, desc);
|
|
2517
|
-
} : function(o, m, k, k2) {
|
|
2518
|
-
if (k2 === void 0)
|
|
2519
|
-
k2 = k;
|
|
2520
|
-
o[k2] = m[k];
|
|
2521
|
-
});
|
|
2522
|
-
exports.__esModule = true;
|
|
2523
|
-
exports.Box = void 0;
|
|
2524
|
-
var Box_1 = Box;
|
|
2525
|
-
__createBinding(exports, Box_1, "Box");
|
|
2526
|
-
})(Box$1);
|
|
2527
|
-
|
|
2528
|
-
(function(exports) {
|
|
2529
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2530
|
-
if (k2 === void 0)
|
|
2531
|
-
k2 = k;
|
|
2532
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2533
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2534
|
-
desc = { enumerable: true, get: function() {
|
|
2535
|
-
return m[k];
|
|
2536
|
-
} };
|
|
2537
|
-
}
|
|
2538
|
-
Object.defineProperty(o, k2, desc);
|
|
2539
|
-
} : function(o, m, k, k2) {
|
|
2540
|
-
if (k2 === void 0)
|
|
2541
|
-
k2 = k;
|
|
2542
|
-
o[k2] = m[k];
|
|
2543
|
-
});
|
|
2544
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
2545
|
-
for (var p in m)
|
|
2546
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
2547
|
-
__createBinding(exports2, m, p);
|
|
2548
|
-
};
|
|
2549
|
-
exports.__esModule = true;
|
|
2550
|
-
__exportStar(Dropdown$1, exports);
|
|
2551
|
-
__exportStar(Layout$1, exports);
|
|
2552
|
-
__exportStar(Icon$1, exports);
|
|
2553
|
-
__exportStar(MenuList$1, exports);
|
|
2554
|
-
__exportStar(Text$1, exports);
|
|
2555
|
-
__exportStar(Spacing, exports);
|
|
2556
|
-
__exportStar(Box$1, exports);
|
|
2557
|
-
})(components);
|
|
2558
|
-
|
|
2559
|
-
(function(exports) {
|
|
2560
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2561
|
-
if (k2 === void 0)
|
|
2562
|
-
k2 = k;
|
|
2563
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2564
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2565
|
-
desc = { enumerable: true, get: function() {
|
|
2566
|
-
return m[k];
|
|
2567
|
-
} };
|
|
2568
|
-
}
|
|
2569
|
-
Object.defineProperty(o, k2, desc);
|
|
2570
|
-
} : function(o, m, k, k2) {
|
|
2571
|
-
if (k2 === void 0)
|
|
2572
|
-
k2 = k;
|
|
2573
|
-
o[k2] = m[k];
|
|
2574
|
-
});
|
|
2575
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
2576
|
-
for (var p in m)
|
|
2577
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
2578
|
-
__createBinding(exports2, m, p);
|
|
2579
|
-
};
|
|
2580
|
-
exports.__esModule = true;
|
|
2581
|
-
__exportStar(components, exports);
|
|
2582
|
-
})(componentLibrary);
|
|
2583
|
-
|
|
2584
|
-
var img$6 = "data:image/svg+xml,%3csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.67 2.822 2.16 15.849A1.486 1.486 0 0 0 3.488 18h13.024a1.486 1.486 0 0 0 1.33-2.151L11.328 2.822c-.548-1.096-2.11-1.096-2.658 0Z' fill='black'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.8 15H9.2v-1.6h1.6V15Zm0-3.2H9.2V7h1.6v4.8Z' fill='white'/%3e%3c/svg%3e";
|
|
2585
|
-
|
|
2586
|
-
var cautionWhite_icon = /*#__PURE__*/Object.freeze({
|
|
2587
|
-
__proto__: null,
|
|
2588
|
-
default: img$6
|
|
2589
|
-
});
|
|
2590
|
-
|
|
2591
|
-
var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(cautionWhite_icon);
|
|
2592
|
-
|
|
2593
|
-
var img$5 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3e2. Atoms/Icons/Informational/warning%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c18 C14.418278%2c18 18%2c14.418278 18%2c10 C18%2c5.581722 14.418278%2c2 10%2c2 C5.581722%2c2 2%2c5.581722 2%2c10 C2%2c14.418278 5.581722%2c18 10%2c18 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='2.-Atoms/Icons/Informational/warning'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Oval' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3cpolygon id='Path' fill='white' points='10.8 14 9.2 14 9.2 12.4 10.8 12.4'%3e%3c/polygon%3e %3cpolygon id='Path' fill='white' points='10.8 10.8 9.2 10.8 9.2 6 10.8 6'%3e%3c/polygon%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
2594
|
-
|
|
2595
|
-
var exclamationWhite_icon = /*#__PURE__*/Object.freeze({
|
|
2596
|
-
__proto__: null,
|
|
2597
|
-
default: img$5
|
|
2598
|
-
});
|
|
2599
|
-
|
|
2600
|
-
var require$$5$1 = /*@__PURE__*/getAugmentedNamespace(exclamationWhite_icon);
|
|
2601
|
-
|
|
2602
|
-
var typography = {};
|
|
2603
|
-
|
|
2604
|
-
var Heading$1 = {};
|
|
2605
|
-
|
|
2606
|
-
var Heading = {};
|
|
2607
|
-
|
|
2608
|
-
var Heading_module = {"heading":"Heading-module_heading__Fe11y","display-0":"Heading-module_display-0__As5Ny","heading-1":"Heading-module_heading-1__fMzkm","heading-2":"Heading-module_heading-2__bgkcr","heading-3":"Heading-module_heading-3__ZRUkC","heading-4":"Heading-module_heading-4__XbONZ","heading-5":"Heading-module_heading-5__fj2Gb","heading-6":"Heading-module_heading-6__Cmand","dark":"Heading-module_dark__9m1Av","dark-reduced-opacity":"Heading-module_dark-reduced-opacity__APHzM","white":"Heading-module_white__6Flbw","white-reduced-opacity":"Heading-module_white-reduced-opacity__-3jNg","positive":"Heading-module_positive__uTfoL","small":"Heading-module_small__I8UMW","large":"Heading-module_large__wKrUS","negative":"Heading-module_negative__hcnMm"};
|
|
2609
|
-
|
|
2610
|
-
var Heading_module$1 = /*#__PURE__*/Object.freeze({
|
|
2611
|
-
__proto__: null,
|
|
2612
|
-
default: Heading_module
|
|
2613
|
-
});
|
|
2614
|
-
|
|
2615
|
-
var require$$2$2 = /*@__PURE__*/getAugmentedNamespace(Heading_module$1);
|
|
2616
|
-
|
|
2617
|
-
(function(exports) {
|
|
2618
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
2619
|
-
__assign = Object.assign || function(t) {
|
|
2620
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2621
|
-
s = arguments[i];
|
|
2622
|
-
for (var p in s)
|
|
2623
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2624
|
-
t[p] = s[p];
|
|
2625
|
-
}
|
|
2626
|
-
return t;
|
|
2627
|
-
};
|
|
2628
|
-
return __assign.apply(this, arguments);
|
|
2629
|
-
};
|
|
2630
|
-
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
2631
|
-
var t = {};
|
|
2632
|
-
for (var p in s)
|
|
2633
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2634
|
-
t[p] = s[p];
|
|
2635
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2636
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2637
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2638
|
-
t[p[i]] = s[p[i]];
|
|
2639
|
-
}
|
|
2640
|
-
return t;
|
|
2641
|
-
};
|
|
2642
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2643
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2644
|
-
};
|
|
2645
|
-
exports.__esModule = true;
|
|
2646
|
-
exports.Heading = void 0;
|
|
2647
|
-
var react_1 = React__default;
|
|
2648
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
2649
|
-
var Heading_module_scss_1 = __importDefault(require$$2$2);
|
|
2650
|
-
var VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"];
|
|
2651
|
-
var Heading = function(_a) {
|
|
2652
|
-
var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
|
|
2653
|
-
var inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
|
|
2654
|
-
var className = (0, classnames_1["default"])(Heading_module_scss_1["default"].heading, Heading_module_scss_1["default"][variant], classNameOverride, Heading_module_scss_1["default"][color], VARIANTS_24PX_OR_GREATER.includes(variant) ? Heading_module_scss_1["default"].large : Heading_module_scss_1["default"].small);
|
|
2655
|
-
return (0, react_1.createElement)(inferredTag, __assign(__assign({}, restProps), { className }), children);
|
|
2656
|
-
};
|
|
2657
|
-
exports.Heading = Heading;
|
|
2658
|
-
exports.Heading.displayName = "Heading";
|
|
2659
|
-
var translateHeadingLevelToTag = function(headingLevel) {
|
|
2660
|
-
switch (headingLevel) {
|
|
2661
|
-
case "display-0":
|
|
2662
|
-
case "heading-1":
|
|
2663
|
-
return "h1";
|
|
2664
|
-
case "heading-2":
|
|
2665
|
-
return "h2";
|
|
2666
|
-
case "heading-3":
|
|
2667
|
-
return "h3";
|
|
2668
|
-
case "heading-4":
|
|
2669
|
-
return "h4";
|
|
2670
|
-
case "heading-5":
|
|
2671
|
-
return "h5";
|
|
2672
|
-
case "heading-6":
|
|
2673
|
-
default:
|
|
2674
|
-
return "h6";
|
|
2675
|
-
}
|
|
2676
|
-
};
|
|
2677
|
-
})(Heading);
|
|
2678
|
-
|
|
2679
|
-
(function(exports) {
|
|
2680
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2681
|
-
if (k2 === void 0)
|
|
2682
|
-
k2 = k;
|
|
2683
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2684
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2685
|
-
desc = { enumerable: true, get: function() {
|
|
2686
|
-
return m[k];
|
|
2687
|
-
} };
|
|
2688
|
-
}
|
|
2689
|
-
Object.defineProperty(o, k2, desc);
|
|
2690
|
-
} : function(o, m, k, k2) {
|
|
2691
|
-
if (k2 === void 0)
|
|
2692
|
-
k2 = k;
|
|
2693
|
-
o[k2] = m[k];
|
|
2694
|
-
});
|
|
2695
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
2696
|
-
for (var p in m)
|
|
2697
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
2698
|
-
__createBinding(exports2, m, p);
|
|
2699
|
-
};
|
|
2700
|
-
exports.__esModule = true;
|
|
2701
|
-
__exportStar(Heading, exports);
|
|
2702
|
-
})(Heading$1);
|
|
2703
|
-
|
|
2704
|
-
var Paragraph$2 = {};
|
|
2705
|
-
|
|
2706
|
-
var Paragraph$1 = {};
|
|
2707
|
-
|
|
2708
|
-
var Paragraph_module = {"paragraph":"Paragraph-module_paragraph__4W6qH","intro-lede":"Paragraph-module_intro-lede__uFhW-","body":"Paragraph-module_body__0R0qn","small":"Paragraph-module_small__GQQjR","extra-small":"Paragraph-module_extra-small__Nx9pp","dark":"Paragraph-module_dark__x5bRT","dark-reduced-opacity":"Paragraph-module_dark-reduced-opacity__6jIPJ","white":"Paragraph-module_white__geIrR","white-reduced-opacity":"Paragraph-module_white-reduced-opacity__2Q7c7","positive":"Paragraph-module_positive__mC-GU","negative":"Paragraph-module_negative__KoAoh"};
|
|
2709
|
-
|
|
2710
|
-
var Paragraph_module$1 = /*#__PURE__*/Object.freeze({
|
|
2711
|
-
__proto__: null,
|
|
2712
|
-
default: Paragraph_module
|
|
2713
|
-
});
|
|
2714
|
-
|
|
2715
|
-
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(Paragraph_module$1);
|
|
2716
|
-
|
|
2717
|
-
var __assign$2 = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
2718
|
-
__assign$2 = Object.assign || function(t) {
|
|
2719
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2720
|
-
s = arguments[i];
|
|
2721
|
-
for (var p in s)
|
|
2722
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2723
|
-
t[p] = s[p];
|
|
2724
|
-
}
|
|
2725
|
-
return t;
|
|
2726
|
-
};
|
|
2727
|
-
return __assign$2.apply(this, arguments);
|
|
2728
|
-
};
|
|
2729
|
-
var __rest$2 = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
2730
|
-
var t = {};
|
|
2731
|
-
for (var p in s)
|
|
2732
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2733
|
-
t[p] = s[p];
|
|
2734
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2735
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2736
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2737
|
-
t[p[i]] = s[p[i]];
|
|
2738
|
-
}
|
|
2739
|
-
return t;
|
|
2740
|
-
};
|
|
2741
|
-
var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
2742
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2743
|
-
};
|
|
2744
|
-
Paragraph$1.__esModule = true;
|
|
2745
|
-
Paragraph$1.Paragraph = void 0;
|
|
2746
|
-
var react_1$2 = React__default;
|
|
2747
|
-
var classnames_1$2 = __importDefault$2(classnamesExports);
|
|
2748
|
-
var Paragraph_module_scss_1 = __importDefault$2(require$$2$1);
|
|
2749
|
-
var Paragraph = function(_a) {
|
|
2750
|
-
var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest$2(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
|
|
2751
|
-
var className = (0, classnames_1$2["default"])(Paragraph_module_scss_1["default"].paragraph, Paragraph_module_scss_1["default"][variant], Paragraph_module_scss_1["default"][color], classNameOverride);
|
|
2752
|
-
return (0, react_1$2.createElement)(tag === void 0 ? "p" : tag, __assign$2(__assign$2({}, restProps), { className }), children);
|
|
2753
|
-
};
|
|
2754
|
-
Paragraph$1.Paragraph = Paragraph;
|
|
2755
|
-
|
|
2756
|
-
(function(exports) {
|
|
2757
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2758
|
-
if (k2 === void 0)
|
|
2759
|
-
k2 = k;
|
|
2760
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2761
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2762
|
-
desc = { enumerable: true, get: function() {
|
|
2763
|
-
return m[k];
|
|
2764
|
-
} };
|
|
2765
|
-
}
|
|
2766
|
-
Object.defineProperty(o, k2, desc);
|
|
2767
|
-
} : function(o, m, k, k2) {
|
|
2768
|
-
if (k2 === void 0)
|
|
2769
|
-
k2 = k;
|
|
2770
|
-
o[k2] = m[k];
|
|
2771
|
-
});
|
|
2772
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
2773
|
-
for (var p in m)
|
|
2774
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
2775
|
-
__createBinding(exports2, m, p);
|
|
2776
|
-
};
|
|
2777
|
-
exports.__esModule = true;
|
|
2778
|
-
__exportStar(Paragraph$1, exports);
|
|
2779
|
-
})(Paragraph$2);
|
|
2780
|
-
|
|
2781
|
-
(function(exports) {
|
|
2782
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2783
|
-
if (k2 === void 0)
|
|
2784
|
-
k2 = k;
|
|
2785
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2786
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2787
|
-
desc = { enumerable: true, get: function() {
|
|
2788
|
-
return m[k];
|
|
2789
|
-
} };
|
|
2790
|
-
}
|
|
2791
|
-
Object.defineProperty(o, k2, desc);
|
|
2792
|
-
} : function(o, m, k, k2) {
|
|
2793
|
-
if (k2 === void 0)
|
|
2794
|
-
k2 = k;
|
|
2795
|
-
o[k2] = m[k];
|
|
2796
|
-
});
|
|
2797
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
2798
|
-
for (var p in m)
|
|
2799
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
2800
|
-
__createBinding(exports2, m, p);
|
|
2801
|
-
};
|
|
2802
|
-
exports.__esModule = true;
|
|
2803
|
-
__exportStar(Heading$1, exports);
|
|
2804
|
-
__exportStar(Paragraph$2, exports);
|
|
2805
|
-
})(typography);
|
|
2806
|
-
|
|
2807
|
-
var img$4 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3esuccess%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C14.416%2c2 18%2c5.584 18%2c10 C18%2c14.416 14.416%2c18 10%2c18 C5.584%2c18 2%2c14.416 2%2c10 C2%2c5.584 5.584%2c2 10%2c2 Z M8.4%2c14 L15.6%2c6.8 L14.472%2c5.664 L8.4%2c11.736 L5.528%2c8.872 L4.4%2c10 L8.4%2c14 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='success'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Combined-Shape' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
2808
|
-
|
|
2809
|
-
var success_icon = /*#__PURE__*/Object.freeze({
|
|
2810
|
-
__proto__: null,
|
|
2811
|
-
default: img$4
|
|
2812
|
-
});
|
|
2813
|
-
|
|
2814
|
-
var require$$8 = /*@__PURE__*/getAugmentedNamespace(success_icon);
|
|
2815
|
-
|
|
2816
|
-
var IndicatorActiveIcon = function(props) {
|
|
2817
|
-
return React__default.createElement(
|
|
2818
|
-
SVG,
|
|
2819
|
-
__assign$3({}, props),
|
|
2820
|
-
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C5.584 2 2 5.584 2 10C2 14.416 5.584 18 10 18C14.416 18 18 14.416 18 10C18 5.584 14.416 2 10 2ZM10 16.4C6.464 16.4 3.6 13.536 3.6 10C3.6 6.464 6.464 3.6 10 3.6C13.536 3.6 16.4 6.464 16.4 10C16.4 13.536 13.536 16.4 10 16.4ZM10 13.5C11.933 13.5 13.5 11.933 13.5 10C13.5 8.067 11.933 6.5 10 6.5C8.067 6.5 6.5 8.067 6.5 10C6.5 11.933 8.067 13.5 10 13.5Z", fill: "currentColor" })
|
|
2821
|
-
);
|
|
2822
|
-
};
|
|
2823
|
-
|
|
2824
|
-
var IndicatorInactiveIcon = function(props) {
|
|
2825
|
-
return React__default.createElement(
|
|
2826
|
-
SVG,
|
|
2827
|
-
__assign$3({}, props),
|
|
2828
|
-
React__default.createElement("path", { d: "M2 10c0-4.416 3.584-8 8-8s8 3.584 8 8-3.584 8-8 8-8-3.584-8-8Zm8 6.4c3.536 0 6.4-2.864 6.4-6.4 0-3.536-2.864-6.4-6.4-6.4A6.398 6.398 0 0 0 3.6 10c0 3.536 2.864 6.4 6.4 6.4Z", fill: "currentColor" })
|
|
2829
|
-
);
|
|
2830
|
-
};
|
|
2831
|
-
|
|
2832
|
-
var SuccessIcon = function(props) {
|
|
2833
|
-
return React__default.createElement(
|
|
2834
|
-
SVG,
|
|
2835
|
-
__assign$3({}, props),
|
|
2836
|
-
React__default.createElement("path", { fill: "currentColor", d: "M10 2c4.416 0 8 3.584 8 8s-3.584 8-8 8-8-3.584-8-8 3.584-8 8-8ZM8.4 14l7.2-7.2-1.128-1.136L8.4 11.736 5.528 8.872 4.4 10l4 4Z" })
|
|
2837
|
-
);
|
|
2838
|
-
};
|
|
2839
|
-
|
|
2840
|
-
var tag = {};
|
|
2841
|
-
|
|
2842
|
-
var Tag$1 = {};
|
|
2843
|
-
|
|
2844
|
-
var Tag = {};
|
|
2845
|
-
|
|
2846
|
-
var img$3 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eclear%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C5.576%2c2 2%2c5.576 2%2c10 C2%2c14.424 5.576%2c18 10%2c18 C14.424%2c18 18%2c14.424 18%2c10 C18%2c5.576 14.424%2c2 10%2c2 L10%2c2 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='clear'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/clear' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3cpolygon id='Path' fill='white' points='14 12.872 12.872 14 10 11.128 7.128 14 6 12.872 8.872 10 6 7.128 7.128 6 10 8.872 12.872 6 14 7.128 11.128 10'%3e%3c/polygon%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
2847
|
-
|
|
2848
|
-
var clearWhite_icon = /*#__PURE__*/Object.freeze({
|
|
2849
|
-
__proto__: null,
|
|
2850
|
-
default: img$3
|
|
2851
|
-
});
|
|
2852
|
-
|
|
2853
|
-
var require$$4$1 = /*@__PURE__*/getAugmentedNamespace(clearWhite_icon);
|
|
2854
|
-
|
|
2855
|
-
var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3einformation-white%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C14.42%2c2 18%2c5.58 18%2c10 C18%2c14.42 14.42%2c18 10%2c18 C5.58%2c18 2%2c14.42 2%2c10 C2%2c5.58 5.58%2c2 10%2c2 Z M9.2%2c7.6 L10.8%2c7.6 L10.8%2c6 L9.2%2c6 L9.2%2c7.6 Z M9.2%2c14 L10.8%2c14 L10.8%2c9.2 L9.2%2c9.2 L9.2%2c14 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='information-white'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Combined-Shape' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
2856
|
-
|
|
2857
|
-
var information_icon = /*#__PURE__*/Object.freeze({
|
|
2858
|
-
__proto__: null,
|
|
2859
|
-
default: img$2
|
|
2860
|
-
});
|
|
2861
|
-
|
|
2862
|
-
var require$$6 = /*@__PURE__*/getAugmentedNamespace(information_icon);
|
|
2863
|
-
|
|
2864
|
-
var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.26641 12.7333C0.666406 10.1333 0.666406 5.8666 3.26641 3.2666' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M5.1998 10.8C3.66647 9.26663 3.66647 6.7333 5.1998 5.1333' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z' fill='black'/%3e%3cpath d='M10.7998 5.19995C12.3331 6.73328 12.3331 9.26662 10.7998 10.8666' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12.7334 3.2666C15.3334 5.8666 15.3334 10.0666 12.7334 12.6666' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2865
|
-
|
|
2866
|
-
var live_icon = /*#__PURE__*/Object.freeze({
|
|
2867
|
-
__proto__: null,
|
|
2868
|
-
default: img$1
|
|
2869
|
-
});
|
|
2870
|
-
|
|
2871
|
-
var require$$7 = /*@__PURE__*/getAugmentedNamespace(live_icon);
|
|
2872
|
-
|
|
2873
|
-
var avatar = {};
|
|
2874
|
-
|
|
2875
|
-
var Avatar$2 = {};
|
|
2876
|
-
|
|
2877
|
-
var Avatar$1 = {};
|
|
2878
|
-
|
|
2879
|
-
var lib = {};
|
|
2880
|
-
|
|
2881
|
-
var Textfit = {};
|
|
2882
|
-
|
|
2883
|
-
var shallowEqual$1 = {};
|
|
2884
|
-
|
|
2885
|
-
Object.defineProperty(shallowEqual$1, "__esModule", {
|
|
2886
|
-
value: true
|
|
2887
|
-
});
|
|
2888
|
-
shallowEqual$1.default = shallowEqual;
|
|
2889
|
-
function shallowEqual(objA, objB) {
|
|
2890
|
-
if (objA === objB) {
|
|
2891
|
-
return true;
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
var keysA = Object.keys(objA);
|
|
2895
|
-
var keysB = Object.keys(objB);
|
|
2896
|
-
|
|
2897
|
-
if (keysA.length !== keysB.length) {
|
|
2898
|
-
return false;
|
|
2899
|
-
}
|
|
2900
|
-
|
|
2901
|
-
// Test for A's keys different from B.
|
|
2902
|
-
var hasOwn = Object.prototype.hasOwnProperty;
|
|
2903
|
-
for (var i = 0; i < keysA.length; i++) {
|
|
2904
|
-
if (!hasOwn.call(objB, keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) {
|
|
2905
|
-
return false;
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
|
|
2909
|
-
return true;
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
var series$1 = {};
|
|
2913
|
-
|
|
2914
|
-
Object.defineProperty(series$1, "__esModule", {
|
|
2915
|
-
value: true
|
|
2916
|
-
});
|
|
2917
|
-
series$1.default = series;
|
|
2918
|
-
|
|
2919
|
-
var _process = require$$0;
|
|
2920
|
-
|
|
2921
|
-
var _process2 = _interopRequireDefault$2(_process);
|
|
2922
|
-
|
|
2923
|
-
function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2924
|
-
|
|
2925
|
-
function series(tasks, cb) {
|
|
2926
|
-
var results = [];
|
|
2927
|
-
var current = 0;
|
|
2928
|
-
var isSync = true;
|
|
2929
|
-
|
|
2930
|
-
function done(err) {
|
|
2931
|
-
function end() {
|
|
2932
|
-
if (cb) cb(err, results);
|
|
2933
|
-
}
|
|
2934
|
-
if (isSync) _process2.default.nextTick(end);else end();
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
|
-
function each(err, result) {
|
|
2938
|
-
results.push(result);
|
|
2939
|
-
if (++current >= tasks.length || err) done(err);else tasks[current](each);
|
|
2940
|
-
}
|
|
2941
|
-
|
|
2942
|
-
if (tasks.length > 0) tasks[0](each);else done(null);
|
|
2943
|
-
|
|
2944
|
-
isSync = false;
|
|
2945
|
-
} /**
|
|
2946
|
-
* Run the functions in the tasks array in series, each one running once the previous function has completed.
|
|
2947
|
-
* If any functions in the series pass an error to its callback, no more functions are run,
|
|
2948
|
-
* and callback is immediately called with the value of the error. Otherwise, callback receives an array of results
|
|
2949
|
-
* when tasks have completed.
|
|
2950
|
-
* Taken from https://github.com/feross/run-series
|
|
2951
|
-
*
|
|
2952
|
-
* @params {Array} tasks An array containing functions to run, each function is passed a callback(err, result) which it must call on completion with an error err (which can be null) and an optional result value.
|
|
2953
|
-
* @params {Function} callback(err, results) - An optional callback to run once all the functions have completed. This function gets a results array containing all the result arguments passed to the task callbacks.
|
|
2954
|
-
*/
|
|
2955
|
-
|
|
2956
|
-
var whilst$1 = {};
|
|
2957
|
-
|
|
2958
|
-
Object.defineProperty(whilst$1, "__esModule", {
|
|
2959
|
-
value: true
|
|
2960
|
-
});
|
|
2961
|
-
whilst$1.default = whilst;
|
|
2962
|
-
var noop$1 = function noop() {};
|
|
2963
|
-
|
|
2964
|
-
/**
|
|
2965
|
-
* Repeatedly call fn, while test returns true. Calls callback when stopped, or an error occurs.
|
|
2966
|
-
*
|
|
2967
|
-
* @param {Function} test Synchronous truth test to perform before each execution of fn.
|
|
2968
|
-
* @param {Function} fn A function which is called each time test passes. The function is passed a callback(err), which must be called once it has completed with an optional err argument.
|
|
2969
|
-
* @param {Function} callback A callback which is called after the test fails and repeated execution of fn has stopped.
|
|
2970
|
-
*/
|
|
2971
|
-
|
|
2972
|
-
function whilst(test, iterator) {
|
|
2973
|
-
var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop$1;
|
|
2974
|
-
|
|
2975
|
-
if (test()) {
|
|
2976
|
-
iterator(function next(err) {
|
|
2977
|
-
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
2978
|
-
args[_key - 1] = arguments[_key];
|
|
2979
|
-
}
|
|
2980
|
-
|
|
2981
|
-
if (err) {
|
|
2982
|
-
callback(err);
|
|
2983
|
-
} else if (test.apply(this, args)) {
|
|
2984
|
-
iterator(next);
|
|
2985
|
-
} else {
|
|
2986
|
-
callback(null);
|
|
2987
|
-
}
|
|
2988
|
-
});
|
|
2989
|
-
} else {
|
|
2990
|
-
callback(null);
|
|
2991
|
-
}
|
|
2992
|
-
}
|
|
2993
|
-
|
|
2994
|
-
var throttle$1 = {};
|
|
2995
|
-
|
|
2996
|
-
Object.defineProperty(throttle$1, "__esModule", {
|
|
2997
|
-
value: true
|
|
2998
|
-
});
|
|
2999
|
-
throttle$1.default = throttle;
|
|
3000
|
-
/**
|
|
3001
|
-
* Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
|
|
3002
|
-
* Taken from https://github.com/component/throttle v1.0.0
|
|
3003
|
-
*
|
|
3004
|
-
* @param {Function} func Function to wrap.
|
|
3005
|
-
* @param {Number} wait Number of milliseconds that must elapse between `func` invocations.
|
|
3006
|
-
* @return {Function} A new function that wraps the `func` function passed in.
|
|
3007
|
-
*/
|
|
3008
|
-
|
|
3009
|
-
function throttle(func, wait) {
|
|
3010
|
-
var ctx = void 0;
|
|
3011
|
-
var args = void 0;
|
|
3012
|
-
var rtn = void 0;
|
|
3013
|
-
var timeoutID = void 0;
|
|
3014
|
-
var last = 0;
|
|
3015
|
-
|
|
3016
|
-
function call() {
|
|
3017
|
-
timeoutID = 0;
|
|
3018
|
-
last = +new Date();
|
|
3019
|
-
rtn = func.apply(ctx, args);
|
|
3020
|
-
ctx = null;
|
|
3021
|
-
args = null;
|
|
3022
|
-
}
|
|
3023
|
-
|
|
3024
|
-
return function throttled() {
|
|
3025
|
-
ctx = this;
|
|
3026
|
-
args = arguments;
|
|
3027
|
-
var delta = new Date() - last;
|
|
3028
|
-
if (!timeoutID) {
|
|
3029
|
-
if (delta >= wait) call();else timeoutID = setTimeout(call, wait - delta);
|
|
3030
|
-
}
|
|
3031
|
-
return rtn;
|
|
3032
|
-
};
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3035
|
-
var uniqueId$1 = {};
|
|
3036
|
-
|
|
3037
|
-
Object.defineProperty(uniqueId$1, "__esModule", {
|
|
3038
|
-
value: true
|
|
3039
|
-
});
|
|
3040
|
-
uniqueId$1.default = uniqueId;
|
|
3041
|
-
var uid = 0;
|
|
3042
|
-
|
|
3043
|
-
function uniqueId() {
|
|
3044
|
-
return uid++;
|
|
3045
|
-
}
|
|
3046
|
-
|
|
3047
|
-
var innerSize = {};
|
|
3048
|
-
|
|
3049
|
-
Object.defineProperty(innerSize, "__esModule", {
|
|
3050
|
-
value: true
|
|
3051
|
-
});
|
|
3052
|
-
innerSize.innerHeight = innerHeight;
|
|
3053
|
-
innerSize.innerWidth = innerWidth;
|
|
3054
|
-
// Calculate height without padding.
|
|
3055
|
-
function innerHeight(el) {
|
|
3056
|
-
var style = window.getComputedStyle(el, null);
|
|
3057
|
-
// Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34
|
|
3058
|
-
if (!style) return el.clientHeight;
|
|
3059
|
-
return el.clientHeight - parseInt(style.getPropertyValue("padding-top"), 10) - parseInt(style.getPropertyValue("padding-bottom"), 10);
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
// Calculate width without padding.
|
|
3063
|
-
function innerWidth(el) {
|
|
3064
|
-
var style = window.getComputedStyle(el, null);
|
|
3065
|
-
// Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34
|
|
3066
|
-
if (!style) return el.clientWidth;
|
|
3067
|
-
return el.clientWidth - parseInt(style.getPropertyValue("padding-left"), 10) - parseInt(style.getPropertyValue("padding-right"), 10);
|
|
3068
|
-
}
|
|
3069
|
-
|
|
3070
|
-
Object.defineProperty(Textfit, "__esModule", {
|
|
3071
|
-
value: true
|
|
3072
|
-
});
|
|
3073
|
-
|
|
3074
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
3075
|
-
|
|
3076
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
3077
|
-
|
|
3078
|
-
var _react = React__default;
|
|
3079
|
-
|
|
3080
|
-
var _react2 = _interopRequireDefault$1(_react);
|
|
3081
|
-
|
|
3082
|
-
var _propTypes = propTypesExports;
|
|
3083
|
-
|
|
3084
|
-
var _propTypes2 = _interopRequireDefault$1(_propTypes);
|
|
3085
|
-
|
|
3086
|
-
var _shallowEqual = shallowEqual$1;
|
|
3087
|
-
|
|
3088
|
-
var _shallowEqual2 = _interopRequireDefault$1(_shallowEqual);
|
|
3089
|
-
|
|
3090
|
-
var _series = series$1;
|
|
3091
|
-
|
|
3092
|
-
var _series2 = _interopRequireDefault$1(_series);
|
|
3093
|
-
|
|
3094
|
-
var _whilst = whilst$1;
|
|
3095
|
-
|
|
3096
|
-
var _whilst2 = _interopRequireDefault$1(_whilst);
|
|
3097
|
-
|
|
3098
|
-
var _throttle = throttle$1;
|
|
3099
|
-
|
|
3100
|
-
var _throttle2 = _interopRequireDefault$1(_throttle);
|
|
3101
|
-
|
|
3102
|
-
var _uniqueId = uniqueId$1;
|
|
3103
|
-
|
|
3104
|
-
var _uniqueId2 = _interopRequireDefault$1(_uniqueId);
|
|
3105
|
-
|
|
3106
|
-
var _innerSize = innerSize;
|
|
3107
|
-
|
|
3108
|
-
function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3109
|
-
|
|
3110
|
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
3111
|
-
|
|
3112
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3113
|
-
|
|
3114
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
3115
|
-
|
|
3116
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
3117
|
-
|
|
3118
|
-
function assertElementFitsWidth(el, width) {
|
|
3119
|
-
// -1: temporary bugfix, will be refactored soon
|
|
3120
|
-
return el.scrollWidth - 1 <= width;
|
|
3121
|
-
}
|
|
3122
|
-
|
|
3123
|
-
function assertElementFitsHeight(el, height) {
|
|
3124
|
-
// -1: temporary bugfix, will be refactored soon
|
|
3125
|
-
return el.scrollHeight - 1 <= height;
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
function noop() {}
|
|
3129
|
-
|
|
3130
|
-
var TextFit = function (_React$Component) {
|
|
3131
|
-
_inherits(TextFit, _React$Component);
|
|
3132
|
-
|
|
3133
|
-
function TextFit(props) {
|
|
3134
|
-
_classCallCheck(this, TextFit);
|
|
3135
|
-
|
|
3136
|
-
var _this = _possibleConstructorReturn(this, (TextFit.__proto__ || Object.getPrototypeOf(TextFit)).call(this, props));
|
|
3137
|
-
|
|
3138
|
-
_this.state = {
|
|
3139
|
-
fontSize: null,
|
|
3140
|
-
ready: false
|
|
3141
|
-
};
|
|
3142
|
-
|
|
3143
|
-
_this.handleWindowResize = function () {
|
|
3144
|
-
_this.process();
|
|
3145
|
-
};
|
|
3146
|
-
|
|
3147
|
-
if ('perfectFit' in props) {
|
|
3148
|
-
console.warn('TextFit property perfectFit has been removed.');
|
|
3149
|
-
}
|
|
3150
|
-
|
|
3151
|
-
_this.handleWindowResize = (0, _throttle2.default)(_this.handleWindowResize, props.throttle);
|
|
3152
|
-
return _this;
|
|
3153
|
-
}
|
|
3154
|
-
|
|
3155
|
-
_createClass(TextFit, [{
|
|
3156
|
-
key: 'componentDidMount',
|
|
3157
|
-
value: function componentDidMount() {
|
|
3158
|
-
var autoResize = this.props.autoResize;
|
|
3159
|
-
|
|
3160
|
-
if (autoResize) {
|
|
3161
|
-
window.addEventListener('resize', this.handleWindowResize);
|
|
3162
|
-
}
|
|
3163
|
-
this.process();
|
|
3164
|
-
}
|
|
3165
|
-
}, {
|
|
3166
|
-
key: 'componentDidUpdate',
|
|
3167
|
-
value: function componentDidUpdate(prevProps) {
|
|
3168
|
-
var ready = this.state.ready;
|
|
3169
|
-
|
|
3170
|
-
if (!ready) return;
|
|
3171
|
-
if ((0, _shallowEqual2.default)(this.props, prevProps)) return;
|
|
3172
|
-
this.process();
|
|
3173
|
-
}
|
|
3174
|
-
}, {
|
|
3175
|
-
key: 'componentWillUnmount',
|
|
3176
|
-
value: function componentWillUnmount() {
|
|
3177
|
-
var autoResize = this.props.autoResize;
|
|
3178
|
-
|
|
3179
|
-
if (autoResize) {
|
|
3180
|
-
window.removeEventListener('resize', this.handleWindowResize);
|
|
3181
|
-
}
|
|
3182
|
-
// Setting a new pid will cancel all running processes
|
|
3183
|
-
this.pid = (0, _uniqueId2.default)();
|
|
3184
|
-
}
|
|
3185
|
-
}, {
|
|
3186
|
-
key: 'process',
|
|
3187
|
-
value: function process() {
|
|
3188
|
-
var _this2 = this;
|
|
3189
|
-
|
|
3190
|
-
var _props = this.props,
|
|
3191
|
-
min = _props.min,
|
|
3192
|
-
max = _props.max,
|
|
3193
|
-
mode = _props.mode,
|
|
3194
|
-
forceSingleModeWidth = _props.forceSingleModeWidth,
|
|
3195
|
-
onReady = _props.onReady;
|
|
3196
|
-
|
|
3197
|
-
var el = this._parent;
|
|
3198
|
-
var wrapper = this._child;
|
|
3199
|
-
|
|
3200
|
-
var originalWidth = (0, _innerSize.innerWidth)(el);
|
|
3201
|
-
var originalHeight = (0, _innerSize.innerHeight)(el);
|
|
3202
|
-
|
|
3203
|
-
if (originalHeight <= 0 || isNaN(originalHeight)) {
|
|
3204
|
-
console.warn('Can not process element without height. Make sure the element is displayed and has a static height.');
|
|
3205
|
-
return;
|
|
3206
|
-
}
|
|
3207
|
-
|
|
3208
|
-
if (originalWidth <= 0 || isNaN(originalWidth)) {
|
|
3209
|
-
console.warn('Can not process element without width. Make sure the element is displayed and has a static width.');
|
|
3210
|
-
return;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
var pid = (0, _uniqueId2.default)();
|
|
3214
|
-
this.pid = pid;
|
|
3215
|
-
|
|
3216
|
-
var shouldCancelProcess = function shouldCancelProcess() {
|
|
3217
|
-
return pid !== _this2.pid;
|
|
3218
|
-
};
|
|
3219
|
-
|
|
3220
|
-
var testPrimary = mode === 'multi' ? function () {
|
|
3221
|
-
return assertElementFitsHeight(wrapper, originalHeight);
|
|
3222
|
-
} : function () {
|
|
3223
|
-
return assertElementFitsWidth(wrapper, originalWidth);
|
|
3224
|
-
};
|
|
3225
|
-
|
|
3226
|
-
var testSecondary = mode === 'multi' ? function () {
|
|
3227
|
-
return assertElementFitsWidth(wrapper, originalWidth);
|
|
3228
|
-
} : function () {
|
|
3229
|
-
return assertElementFitsHeight(wrapper, originalHeight);
|
|
3230
|
-
};
|
|
3231
|
-
|
|
3232
|
-
var mid = void 0;
|
|
3233
|
-
var low = min;
|
|
3234
|
-
var high = max;
|
|
3235
|
-
|
|
3236
|
-
this.setState({ ready: false });
|
|
3237
|
-
|
|
3238
|
-
(0, _series2.default)([
|
|
3239
|
-
// Step 1:
|
|
3240
|
-
// Binary search to fit the element's height (multi line) / width (single line)
|
|
3241
|
-
function (stepCallback) {
|
|
3242
|
-
return (0, _whilst2.default)(function () {
|
|
3243
|
-
return low <= high;
|
|
3244
|
-
}, function (whilstCallback) {
|
|
3245
|
-
if (shouldCancelProcess()) return whilstCallback(true);
|
|
3246
|
-
mid = parseInt((low + high) / 2, 10);
|
|
3247
|
-
_this2.setState({ fontSize: mid }, function () {
|
|
3248
|
-
if (shouldCancelProcess()) return whilstCallback(true);
|
|
3249
|
-
if (testPrimary()) low = mid + 1;else high = mid - 1;
|
|
3250
|
-
return whilstCallback();
|
|
3251
|
-
});
|
|
3252
|
-
}, stepCallback);
|
|
3253
|
-
},
|
|
3254
|
-
// Step 2:
|
|
3255
|
-
// Binary search to fit the element's width (multi line) / height (single line)
|
|
3256
|
-
// If mode is single and forceSingleModeWidth is true, skip this step
|
|
3257
|
-
// in order to not fit the elements height and decrease the width
|
|
3258
|
-
function (stepCallback) {
|
|
3259
|
-
if (mode === 'single' && forceSingleModeWidth) return stepCallback();
|
|
3260
|
-
if (testSecondary()) return stepCallback();
|
|
3261
|
-
low = min;
|
|
3262
|
-
high = mid;
|
|
3263
|
-
return (0, _whilst2.default)(function () {
|
|
3264
|
-
return low < high;
|
|
3265
|
-
}, function (whilstCallback) {
|
|
3266
|
-
if (shouldCancelProcess()) return whilstCallback(true);
|
|
3267
|
-
mid = parseInt((low + high) / 2, 10);
|
|
3268
|
-
_this2.setState({ fontSize: mid }, function () {
|
|
3269
|
-
if (pid !== _this2.pid) return whilstCallback(true);
|
|
3270
|
-
if (testSecondary()) low = mid + 1;else high = mid - 1;
|
|
3271
|
-
return whilstCallback();
|
|
3272
|
-
});
|
|
3273
|
-
}, stepCallback);
|
|
3274
|
-
},
|
|
3275
|
-
// Step 3
|
|
3276
|
-
// Limits
|
|
3277
|
-
function (stepCallback) {
|
|
3278
|
-
// We break the previous loop without updating mid for the final time,
|
|
3279
|
-
// so we do it here:
|
|
3280
|
-
mid = Math.min(low, high);
|
|
3281
|
-
|
|
3282
|
-
// Ensure we hit the user-supplied limits
|
|
3283
|
-
mid = Math.max(mid, min);
|
|
3284
|
-
mid = Math.min(mid, max);
|
|
3285
|
-
|
|
3286
|
-
// Sanity check:
|
|
3287
|
-
mid = Math.max(mid, 0);
|
|
3288
|
-
|
|
3289
|
-
if (shouldCancelProcess()) return stepCallback(true);
|
|
3290
|
-
_this2.setState({ fontSize: mid }, stepCallback);
|
|
3291
|
-
}], function (err) {
|
|
3292
|
-
// err will be true, if another process was triggered
|
|
3293
|
-
if (err || shouldCancelProcess()) return;
|
|
3294
|
-
_this2.setState({ ready: true }, function () {
|
|
3295
|
-
return onReady(mid);
|
|
3296
|
-
});
|
|
3297
|
-
});
|
|
3298
|
-
}
|
|
3299
|
-
}, {
|
|
3300
|
-
key: 'render',
|
|
3301
|
-
value: function render() {
|
|
3302
|
-
var _this3 = this;
|
|
3303
|
-
|
|
3304
|
-
var _props2 = this.props,
|
|
3305
|
-
children = _props2.children,
|
|
3306
|
-
text = _props2.text,
|
|
3307
|
-
style = _props2.style;
|
|
3308
|
-
_props2.min;
|
|
3309
|
-
_props2.max;
|
|
3310
|
-
var mode = _props2.mode;
|
|
3311
|
-
_props2.forceWidth;
|
|
3312
|
-
_props2.forceSingleModeWidth;
|
|
3313
|
-
_props2.throttle;
|
|
3314
|
-
_props2.autoResize;
|
|
3315
|
-
_props2.onReady;
|
|
3316
|
-
var props = _objectWithoutProperties(_props2, ['children', 'text', 'style', 'min', 'max', 'mode', 'forceWidth', 'forceSingleModeWidth', 'throttle', 'autoResize', 'onReady']);
|
|
3317
|
-
|
|
3318
|
-
var _state = this.state,
|
|
3319
|
-
fontSize = _state.fontSize,
|
|
3320
|
-
ready = _state.ready;
|
|
3321
|
-
|
|
3322
|
-
var finalStyle = _extends({}, style, {
|
|
3323
|
-
fontSize: fontSize
|
|
3324
|
-
});
|
|
3325
|
-
|
|
3326
|
-
var wrapperStyle = {
|
|
3327
|
-
display: ready ? 'block' : 'inline-block'
|
|
3328
|
-
};
|
|
3329
|
-
if (mode === 'single') wrapperStyle.whiteSpace = 'nowrap';
|
|
3330
|
-
|
|
3331
|
-
return _react2.default.createElement(
|
|
3332
|
-
'div',
|
|
3333
|
-
_extends({ ref: function ref(c) {
|
|
3334
|
-
return _this3._parent = c;
|
|
3335
|
-
}, style: finalStyle }, props),
|
|
3336
|
-
_react2.default.createElement(
|
|
3337
|
-
'div',
|
|
3338
|
-
{ ref: function ref(c) {
|
|
3339
|
-
return _this3._child = c;
|
|
3340
|
-
}, style: wrapperStyle },
|
|
3341
|
-
text && typeof children === 'function' ? ready ? children(text) : text : children
|
|
3342
|
-
)
|
|
3343
|
-
);
|
|
3344
|
-
}
|
|
3345
|
-
}]);
|
|
3346
|
-
|
|
3347
|
-
return TextFit;
|
|
3348
|
-
}(_react2.default.Component);
|
|
3349
|
-
|
|
3350
|
-
TextFit.propTypes = {
|
|
3351
|
-
children: _propTypes2.default.node,
|
|
3352
|
-
text: _propTypes2.default.string,
|
|
3353
|
-
min: _propTypes2.default.number,
|
|
3354
|
-
max: _propTypes2.default.number,
|
|
3355
|
-
mode: _propTypes2.default.oneOf(['single', 'multi']),
|
|
3356
|
-
forceSingleModeWidth: _propTypes2.default.bool,
|
|
3357
|
-
throttle: _propTypes2.default.number,
|
|
3358
|
-
onReady: _propTypes2.default.func
|
|
3359
|
-
};
|
|
3360
|
-
TextFit.defaultProps = {
|
|
3361
|
-
min: 1,
|
|
3362
|
-
max: 100,
|
|
3363
|
-
mode: 'multi',
|
|
3364
|
-
forceSingleModeWidth: true,
|
|
3365
|
-
throttle: 50,
|
|
3366
|
-
autoResize: true,
|
|
3367
|
-
onReady: noop
|
|
3368
|
-
};
|
|
3369
|
-
Textfit.default = TextFit;
|
|
3370
|
-
|
|
3371
|
-
Object.defineProperty(lib, "__esModule", {
|
|
3372
|
-
value: true
|
|
3373
|
-
});
|
|
3374
|
-
lib.Textfit = undefined;
|
|
3375
|
-
|
|
3376
|
-
var _Textfit = Textfit;
|
|
3377
|
-
|
|
3378
|
-
var _Textfit2 = _interopRequireDefault(_Textfit);
|
|
3379
|
-
|
|
3380
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3381
|
-
|
|
3382
|
-
lib.Textfit = _Textfit2.default;
|
|
3383
|
-
lib.default = _Textfit2.default;
|
|
3384
|
-
|
|
3385
|
-
var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3euser%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c12 C7.33%2c12 2%2c13.34 2%2c16 L2%2c18 L18%2c18 L18%2c16 C18%2c13.34 12.67%2c12 10%2c12 M10%2c10 C12.21%2c10 14%2c8.21 14%2c6 C14%2c3.79 12.21%2c2 10%2c2 C7.79%2c2 6%2c3.79 6%2c6 C6%2c8.21 7.79%2c10 10%2c10' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='user'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
|
|
3386
|
-
|
|
3387
|
-
var user_icon = /*#__PURE__*/Object.freeze({
|
|
3388
|
-
__proto__: null,
|
|
3389
|
-
default: img
|
|
3390
|
-
});
|
|
3391
|
-
|
|
3392
|
-
var require$$4 = /*@__PURE__*/getAugmentedNamespace(user_icon);
|
|
3393
|
-
|
|
3394
|
-
var Avatar_module = {"wrapper":"Avatar-module_wrapper__Z0f9l","small":"Avatar-module_small__jGh0-","personal":"Avatar-module_personal__dF-Ou","otherUser":"Avatar-module_otherUser__p-EP2","company":"Avatar-module_company__cX7Yd","initials":"Avatar-module_initials__KqQwi","medium":"Avatar-module_medium__1NEXg","large":"Avatar-module_large__HEyf8","xlarge":"Avatar-module_xlarge__efxpR","xxlarge":"Avatar-module_xxlarge__2Pd9d","avatarImage":"Avatar-module_avatarImage__3BogQ","loading":"Avatar-module_loading__pRyVI","companyAvatarImage":"Avatar-module_companyAvatarImage__QAPBc","fallbackIcon":"Avatar-module_fallbackIcon__wsRF7","longName":"Avatar-module_longName__E6V7H"};
|
|
3395
|
-
|
|
3396
|
-
var Avatar_module$1 = /*#__PURE__*/Object.freeze({
|
|
3397
|
-
__proto__: null,
|
|
3398
|
-
default: Avatar_module
|
|
3399
|
-
});
|
|
3400
|
-
|
|
3401
|
-
var require$$5 = /*@__PURE__*/getAugmentedNamespace(Avatar_module$1);
|
|
3402
|
-
|
|
3403
|
-
var __assign$1 = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
3404
|
-
__assign$1 = Object.assign || function(t) {
|
|
3405
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3406
|
-
s = arguments[i];
|
|
3407
|
-
for (var p in s)
|
|
3408
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3409
|
-
t[p] = s[p];
|
|
3410
|
-
}
|
|
3411
|
-
return t;
|
|
3412
|
-
};
|
|
3413
|
-
return __assign$1.apply(this, arguments);
|
|
3414
|
-
};
|
|
3415
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3416
|
-
if (k2 === void 0)
|
|
3417
|
-
k2 = k;
|
|
3418
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3419
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3420
|
-
desc = { enumerable: true, get: function() {
|
|
3421
|
-
return m[k];
|
|
3422
|
-
} };
|
|
3423
|
-
}
|
|
3424
|
-
Object.defineProperty(o, k2, desc);
|
|
3425
|
-
} : function(o, m, k, k2) {
|
|
3426
|
-
if (k2 === void 0)
|
|
3427
|
-
k2 = k;
|
|
3428
|
-
o[k2] = m[k];
|
|
3429
|
-
});
|
|
3430
|
-
var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
|
|
3431
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
3432
|
-
} : function(o, v) {
|
|
3433
|
-
o["default"] = v;
|
|
3434
|
-
});
|
|
3435
|
-
var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
|
|
3436
|
-
if (mod && mod.__esModule)
|
|
3437
|
-
return mod;
|
|
3438
|
-
var result = {};
|
|
3439
|
-
if (mod != null) {
|
|
3440
|
-
for (var k in mod)
|
|
3441
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
3442
|
-
__createBinding(result, mod, k);
|
|
3443
|
-
}
|
|
3444
|
-
__setModuleDefault(result, mod);
|
|
3445
|
-
return result;
|
|
3446
|
-
};
|
|
3447
|
-
var __rest$1 = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
3448
|
-
var t = {};
|
|
3449
|
-
for (var p in s)
|
|
3450
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3451
|
-
t[p] = s[p];
|
|
3452
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3453
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3454
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3455
|
-
t[p[i]] = s[p[i]];
|
|
3456
|
-
}
|
|
3457
|
-
return t;
|
|
3458
|
-
};
|
|
3459
|
-
var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
3460
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3461
|
-
};
|
|
3462
|
-
Avatar$1.__esModule = true;
|
|
3463
|
-
Avatar$1.Avatar = void 0;
|
|
3464
|
-
var react_1$1 = __importStar(React__default);
|
|
3465
|
-
var classnames_1$1 = __importDefault$1(classnamesExports);
|
|
3466
|
-
var react_textfit_1 = lib;
|
|
3467
|
-
var component_library_1 = componentLibrary;
|
|
3468
|
-
var user_icon_svg_1 = __importDefault$1(require$$4);
|
|
3469
|
-
var Avatar_module_scss_1 = __importDefault$1(require$$5);
|
|
3470
|
-
var getInitials = function(fullName, max2Characters) {
|
|
3471
|
-
if (max2Characters === void 0) {
|
|
3472
|
-
max2Characters = false;
|
|
3473
|
-
}
|
|
3474
|
-
return fullName == null ? "" : fullName.split(/\s/).reduce(function(acc, name) {
|
|
3475
|
-
return "".concat(acc).concat(name.slice(0, 1));
|
|
3476
|
-
}, "").toUpperCase().substring(0, max2Characters ? 2 : 8);
|
|
3477
|
-
};
|
|
3478
|
-
var getMaxFontSizePixels = function(size) {
|
|
3479
|
-
if (size === "small")
|
|
3480
|
-
return 8;
|
|
3481
|
-
if (size === "medium")
|
|
3482
|
-
return 16;
|
|
3483
|
-
if (size === "xlarge" || size === "xxlarge")
|
|
3484
|
-
return 34;
|
|
3485
|
-
return 22;
|
|
3486
|
-
};
|
|
3487
|
-
var fallbackIcon = function(fullName) {
|
|
3488
|
-
return react_1$1["default"].createElement(
|
|
3489
|
-
"span",
|
|
3490
|
-
{ className: Avatar_module_scss_1["default"].fallbackIcon },
|
|
3491
|
-
react_1$1["default"].createElement(component_library_1.Icon, { inheritSize: true, role: fullName ? "img" : "presentation", title: fullName, icon: user_icon_svg_1["default"] })
|
|
3492
|
-
);
|
|
3493
|
-
};
|
|
3494
|
-
var renderInitials = function(fullName, size, disableInitials) {
|
|
3495
|
-
if (fullName === void 0) {
|
|
3496
|
-
fullName = "";
|
|
3497
|
-
}
|
|
3498
|
-
if (disableInitials === void 0) {
|
|
3499
|
-
disableInitials = false;
|
|
3500
|
-
}
|
|
3501
|
-
var initials = getInitials(fullName);
|
|
3502
|
-
var isLongName = initials.length > 2 && size !== "small";
|
|
3503
|
-
var renderFallback = disableInitials || initials === "";
|
|
3504
|
-
return renderFallback ? fallbackIcon(fullName) : react_1$1["default"].createElement("abbr", { className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].initials, isLongName && Avatar_module_scss_1["default"].longName), title: fullName || "" }, isLongName ? (
|
|
3505
|
-
// Only called if 3 or more initials, fits text width for long names
|
|
3506
|
-
react_1$1["default"].createElement(react_textfit_1.Textfit, { mode: "single", max: getMaxFontSizePixels(size) }, initials)
|
|
3507
|
-
) : getInitials(fullName, size === "small"));
|
|
3508
|
-
};
|
|
3509
|
-
var Avatar = function(_a) {
|
|
3510
|
-
var fullName = _a.fullName, _b = _a.size, size = _b === void 0 ? "medium" : _b, avatarSrc = _a.avatarSrc, _c = _a.disableInitials, disableInitials = _c === void 0 ? false : _c, _d = _a.isCompany, isCompany = _d === void 0 ? false : _d, _e = _a.isCurrentUser, isCurrentUser = _e === void 0 ? true : _e, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "classNameOverride"]);
|
|
3511
|
-
var _f = (0, react_1$1.useState)(avatarSrc ? "loading" : "none"), avatarState = _f[0], setAvatarState = _f[1];
|
|
3512
|
-
var image = (0, react_1$1.useRef)(null);
|
|
3513
|
-
var renderInitialAvatar = !isCompany && (avatarState === "none" || avatarState === "error");
|
|
3514
|
-
(0, react_1$1.useEffect)(function() {
|
|
3515
|
-
setAvatarState(avatarSrc ? "loading" : "none");
|
|
3516
|
-
}, [avatarSrc]);
|
|
3517
|
-
var onImageFailure = function() {
|
|
3518
|
-
return setAvatarState("error");
|
|
3519
|
-
};
|
|
3520
|
-
var onImageSuccess = function() {
|
|
3521
|
-
return setAvatarState("success");
|
|
3522
|
-
};
|
|
3523
|
-
(0, react_1$1.useEffect)(function() {
|
|
3524
|
-
var _a2;
|
|
3525
|
-
if ((_a2 = image === null || image === void 0 ? void 0 : image.current) === null || _a2 === void 0 ? void 0 : _a2.complete)
|
|
3526
|
-
onImageSuccess();
|
|
3527
|
-
}, [image]);
|
|
3528
|
-
var isNoneOrError = avatarState === "none" || avatarState === "error";
|
|
3529
|
-
var isPersonal = isNoneOrError && isCurrentUser;
|
|
3530
|
-
var isOtherUser = isNoneOrError && !isCurrentUser;
|
|
3531
|
-
return react_1$1["default"].createElement(
|
|
3532
|
-
"span",
|
|
3533
|
-
__assign$1({ className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].wrapper, Avatar_module_scss_1["default"][size], classNameOverride, isCompany && Avatar_module_scss_1["default"].company, isPersonal && Avatar_module_scss_1["default"].personal, isOtherUser && Avatar_module_scss_1["default"].otherUser, (avatarState === "loading" || avatarState === "error") && Avatar_module_scss_1["default"].loading) }, restProps),
|
|
3534
|
-
avatarState !== "none" && react_1$1["default"].createElement("img", { ref: image, className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].avatarImage, isCompany && Avatar_module_scss_1["default"].companyAvatarImage), src: avatarSrc, onError: onImageFailure, onLoad: onImageSuccess, alt: fullName || "" }),
|
|
3535
|
-
renderInitialAvatar && renderInitials(fullName, size, disableInitials)
|
|
3536
|
-
);
|
|
3537
|
-
};
|
|
3538
|
-
Avatar$1.Avatar = Avatar;
|
|
3539
|
-
|
|
3540
|
-
var AvatarGroup$1 = {};
|
|
3541
|
-
|
|
3542
|
-
var AvatarGroup_module = {"AvatarGroup":"AvatarGroup-module_AvatarGroup__yyC2u","small":"AvatarGroup-module_small__026qy","AvatarGroupItem":"AvatarGroup-module_AvatarGroupItem__tVQsT","medium":"AvatarGroup-module_medium__na3GI","large":"AvatarGroup-module_large__prOGN","AvatarCounter":"AvatarGroup-module_AvatarCounter__w0QVP"};
|
|
3543
|
-
|
|
3544
|
-
var AvatarGroup_module$1 = /*#__PURE__*/Object.freeze({
|
|
3545
|
-
__proto__: null,
|
|
3546
|
-
default: AvatarGroup_module
|
|
3547
|
-
});
|
|
3548
|
-
|
|
3549
|
-
var require$$3 = /*@__PURE__*/getAugmentedNamespace(AvatarGroup_module$1);
|
|
3550
|
-
|
|
3551
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
3552
|
-
__assign = Object.assign || function(t) {
|
|
3553
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3554
|
-
s = arguments[i];
|
|
3555
|
-
for (var p in s)
|
|
3556
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3557
|
-
t[p] = s[p];
|
|
3558
|
-
}
|
|
3559
|
-
return t;
|
|
3560
|
-
};
|
|
3561
|
-
return __assign.apply(this, arguments);
|
|
3562
|
-
};
|
|
3563
|
-
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
3564
|
-
var t = {};
|
|
3565
|
-
for (var p in s)
|
|
3566
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3567
|
-
t[p] = s[p];
|
|
3568
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3569
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3570
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3571
|
-
t[p[i]] = s[p[i]];
|
|
3572
|
-
}
|
|
3573
|
-
return t;
|
|
3574
|
-
};
|
|
3575
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
3576
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3577
|
-
};
|
|
3578
|
-
AvatarGroup$1.__esModule = true;
|
|
3579
|
-
AvatarGroup$1.AvatarGroup = void 0;
|
|
3580
|
-
var react_1 = __importDefault(React__default);
|
|
3581
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
3582
|
-
var Avatar_1 = Avatar$1;
|
|
3583
|
-
var AvatarGroup_module_scss_1 = __importDefault(require$$3);
|
|
3584
|
-
var renderCounter = function(remainingAvatars) {
|
|
3585
|
-
if (remainingAvatars <= 0)
|
|
3586
|
-
return;
|
|
3587
|
-
return react_1["default"].createElement(
|
|
3588
|
-
"li",
|
|
3589
|
-
{ "aria-label": "There ".concat(remainingAvatars > 1 ? "are ".concat(remainingAvatars, " other members") : "is ".concat(remainingAvatars, " other member"), " of this group"), className: AvatarGroup_module_scss_1["default"].AvatarGroupItem },
|
|
3590
|
-
react_1["default"].createElement("span", { className: AvatarGroup_module_scss_1["default"].AvatarCounter, "aria-hidden": true }, "+".concat(remainingAvatars))
|
|
3591
|
-
);
|
|
3592
|
-
};
|
|
3593
|
-
var renderAvatars = function(avatars, maxVisible, size) {
|
|
3594
|
-
return react_1["default"].createElement(
|
|
3595
|
-
react_1["default"].Fragment,
|
|
3596
|
-
null,
|
|
3597
|
-
avatars === null || avatars === void 0 ? void 0 : avatars.map(function(avatarProps, index) {
|
|
3598
|
-
return index < maxVisible && react_1["default"].createElement(
|
|
3599
|
-
"li",
|
|
3600
|
-
{ key: "avatar-".concat(index), className: AvatarGroup_module_scss_1["default"].AvatarGroupItem },
|
|
3601
|
-
react_1["default"].createElement(Avatar_1.Avatar, __assign({}, avatarProps, { size }))
|
|
3602
|
-
);
|
|
3603
|
-
}),
|
|
3604
|
-
renderCounter((avatars === null || avatars === void 0 ? void 0 : avatars.length) - maxVisible)
|
|
3605
|
-
);
|
|
3606
|
-
};
|
|
3607
|
-
var AvatarGroup = function(_a) {
|
|
3608
|
-
var _b = _a.size, size = _b === void 0 ? "medium" : _b, _c = _a.maxVisible, maxVisible = _c === void 0 ? 2 : _c, avatars = _a.avatars, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["size", "maxVisible", "avatars", "classNameOverride"]);
|
|
3609
|
-
return react_1["default"].createElement("ul", __assign({ className: (0, classnames_1["default"])(AvatarGroup_module_scss_1["default"].AvatarGroup, AvatarGroup_module_scss_1["default"][size], classNameOverride), "aria-label": "Avatar Group" }, restProps), renderAvatars(avatars, maxVisible, size));
|
|
3610
|
-
};
|
|
3611
|
-
AvatarGroup$1.AvatarGroup = AvatarGroup;
|
|
3612
|
-
|
|
3613
|
-
(function(exports) {
|
|
3614
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3615
|
-
if (k2 === void 0)
|
|
3616
|
-
k2 = k;
|
|
3617
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3618
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3619
|
-
desc = { enumerable: true, get: function() {
|
|
3620
|
-
return m[k];
|
|
3621
|
-
} };
|
|
3622
|
-
}
|
|
3623
|
-
Object.defineProperty(o, k2, desc);
|
|
3624
|
-
} : function(o, m, k, k2) {
|
|
3625
|
-
if (k2 === void 0)
|
|
3626
|
-
k2 = k;
|
|
3627
|
-
o[k2] = m[k];
|
|
3628
|
-
});
|
|
3629
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
3630
|
-
for (var p in m)
|
|
3631
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3632
|
-
__createBinding(exports2, m, p);
|
|
3633
|
-
};
|
|
3634
|
-
exports.__esModule = true;
|
|
3635
|
-
__exportStar(Avatar$1, exports);
|
|
3636
|
-
__exportStar(AvatarGroup$1, exports);
|
|
3637
|
-
})(Avatar$2);
|
|
3638
|
-
|
|
3639
|
-
(function(exports) {
|
|
3640
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3641
|
-
if (k2 === void 0)
|
|
3642
|
-
k2 = k;
|
|
3643
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3644
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3645
|
-
desc = { enumerable: true, get: function() {
|
|
3646
|
-
return m[k];
|
|
3647
|
-
} };
|
|
3648
|
-
}
|
|
3649
|
-
Object.defineProperty(o, k2, desc);
|
|
3650
|
-
} : function(o, m, k, k2) {
|
|
3651
|
-
if (k2 === void 0)
|
|
3652
|
-
k2 = k;
|
|
3653
|
-
o[k2] = m[k];
|
|
3654
|
-
});
|
|
3655
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
3656
|
-
for (var p in m)
|
|
3657
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3658
|
-
__createBinding(exports2, m, p);
|
|
3659
|
-
};
|
|
3660
|
-
exports.__esModule = true;
|
|
3661
|
-
__exportStar(Avatar$2, exports);
|
|
3662
|
-
})(avatar);
|
|
3663
|
-
|
|
3664
|
-
var Tag_module = {"root":"Tag-module_root__ZoDW8","profile":"Tag-module_profile__Ehf-K","layoutContainer":"Tag-module_layoutContainer__LWT-U","validationIcon":"Tag-module_validationIcon__s6PsN","textContent":"Tag-module_textContent__I6Xpa","iconWrapper":"Tag-module_iconWrapper__18lT7","dismissButton":"Tag-module_dismissButton__LdCmP","background":"Tag-module_background__0uo93","truncate":"Tag-module_truncate__-LIzQ","inline":"Tag-module_inline__eXwDM","medium":"Tag-module_medium__Eu-Al","small":"Tag-module_small__N9Fgj","default":"Tag-module_default__ktMsS","sentimentPositive":"Tag-module_sentimentPositive__P9FK6","sentimentNeutral":"Tag-module_sentimentNeutral__sHWK8","sentimentNegative":"Tag-module_sentimentNegative__AtFz2","sentimentNone":"Tag-module_sentimentNone__djSUk","validationPositive":"Tag-module_validationPositive__uG3EH","validationInformative":"Tag-module_validationInformative__dfOBN","validationNegative":"Tag-module_validationNegative__VH5WS","validationCautionary":"Tag-module_validationCautionary__0y7aC","statusLive":"Tag-module_statusLive__UdadP","statusAction":"Tag-module_statusAction__MY6Yl","statusClosed":"Tag-module_statusClosed__7bQU3","statusDraft":"Tag-module_statusDraft__c-z-g","liveIcon":"Tag-module_liveIcon__px6iY","liveIcon_base":"Tag-module_liveIcon_base__bmEQG","liveIcon_1":"Tag-module_liveIcon_1__sNXbv","liveIcon_2":"Tag-module_liveIcon_2__XxuCN","liveIcon_3":"Tag-module_liveIcon_3__xNhlx","pulse-inner":"Tag-module_pulse-inner__RLLJm","pulse-outer":"Tag-module_pulse-outer__baU4g"};
|
|
3665
|
-
|
|
3666
|
-
var Tag_module$1 = /*#__PURE__*/Object.freeze({
|
|
3667
|
-
__proto__: null,
|
|
3668
|
-
default: Tag_module
|
|
3669
|
-
});
|
|
3670
|
-
|
|
3671
|
-
var require$$10 = /*@__PURE__*/getAugmentedNamespace(Tag_module$1);
|
|
3672
|
-
|
|
3673
|
-
(function(exports) {
|
|
3674
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
3675
|
-
__assign = Object.assign || function(t) {
|
|
3676
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3677
|
-
s = arguments[i];
|
|
3678
|
-
for (var p in s)
|
|
3679
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3680
|
-
t[p] = s[p];
|
|
3681
|
-
}
|
|
3682
|
-
return t;
|
|
3683
|
-
};
|
|
3684
|
-
return __assign.apply(this, arguments);
|
|
3685
|
-
};
|
|
3686
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
3687
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3688
|
-
};
|
|
3689
|
-
exports.__esModule = true;
|
|
3690
|
-
exports.Tag = void 0;
|
|
3691
|
-
var react_1 = __importDefault(React__default);
|
|
3692
|
-
var classnames_1 = __importDefault(classnamesExports);
|
|
3693
|
-
var component_library_1 = componentLibrary;
|
|
3694
|
-
var caution_white_icon_svg_1 = __importDefault(require$$3$1);
|
|
3695
|
-
var clear_white_icon_svg_1 = __importDefault(require$$4$1);
|
|
3696
|
-
var exclamation_white_icon_svg_1 = __importDefault(require$$5$1);
|
|
3697
|
-
var information_icon_svg_1 = __importDefault(require$$6);
|
|
3698
|
-
var live_icon_svg_1 = __importDefault(require$$7);
|
|
3699
|
-
var success_icon_svg_1 = __importDefault(require$$8);
|
|
3700
|
-
var draft_avatar_1 = avatar;
|
|
3701
|
-
var Tag_module_scss_1 = __importDefault(require$$10);
|
|
3702
|
-
var isJSXElement = function(imageElementOrAvatarProps) {
|
|
3703
|
-
return "props" in imageElementOrAvatarProps;
|
|
3704
|
-
};
|
|
3705
|
-
var renderAvatar = function(imageElementOrAvatarProps) {
|
|
3706
|
-
return isJSXElement(imageElementOrAvatarProps) ? react_1["default"].createElement(react_1["default"].Fragment, null, imageElementOrAvatarProps) : react_1["default"].createElement(draft_avatar_1.Avatar, __assign({}, imageElementOrAvatarProps, { size: "small" }));
|
|
3707
|
-
};
|
|
3708
|
-
var Tag = function(props) {
|
|
3709
|
-
var children = props.children, _a = props.variant, variant = _a === void 0 ? "default" : _a, _b = props.size, size = _b === void 0 ? "medium" : _b, _c = props.inline, inline = _c === void 0 ? false : _c, _d = props.dismissible, dismissible = _d === void 0 ? false : _d, onDismiss = props.onDismiss, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, truncateWidth = props.truncateWidth;
|
|
3710
|
-
var isTruncated = truncateWidth && truncateWidth > 0;
|
|
3711
|
-
var canShowIcon = size === "medium";
|
|
3712
|
-
return react_1["default"].createElement(
|
|
3713
|
-
"div",
|
|
3714
|
-
{ className: (0, classnames_1["default"])(Tag_module_scss_1["default"].root, Tag_module_scss_1["default"][variant], variant === "profile" && Tag_module_scss_1["default"]["default"], Tag_module_scss_1["default"][size], inline && Tag_module_scss_1["default"].inline, dismissible && Tag_module_scss_1["default"].dismissible) },
|
|
3715
|
-
react_1["default"].createElement(
|
|
3716
|
-
"div",
|
|
3717
|
-
{ className: Tag_module_scss_1["default"].layoutContainer },
|
|
3718
|
-
react_1["default"].createElement(
|
|
3719
|
-
react_1["default"].Fragment,
|
|
3720
|
-
null,
|
|
3721
|
-
canShowIcon && function() {
|
|
3722
|
-
switch (props.variant) {
|
|
3723
|
-
case "validationPositive":
|
|
3724
|
-
return react_1["default"].createElement(
|
|
3725
|
-
"span",
|
|
3726
|
-
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
3727
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: success_icon_svg_1["default"], role: "presentation" })
|
|
3728
|
-
);
|
|
3729
|
-
case "validationNegative":
|
|
3730
|
-
return react_1["default"].createElement(
|
|
3731
|
-
"span",
|
|
3732
|
-
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
3733
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: exclamation_white_icon_svg_1["default"], role: "presentation" })
|
|
3734
|
-
);
|
|
3735
|
-
case "validationCautionary":
|
|
3736
|
-
return react_1["default"].createElement(
|
|
3737
|
-
"span",
|
|
3738
|
-
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
3739
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: caution_white_icon_svg_1["default"], role: "presentation" })
|
|
3740
|
-
);
|
|
3741
|
-
case "validationInformative":
|
|
3742
|
-
return react_1["default"].createElement(
|
|
3743
|
-
"span",
|
|
3744
|
-
{ className: Tag_module_scss_1["default"].validationIcon },
|
|
3745
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: information_icon_svg_1["default"], role: "presentation" })
|
|
3746
|
-
);
|
|
3747
|
-
case "profile":
|
|
3748
|
-
return react_1["default"].createElement("span", { className: Tag_module_scss_1["default"].profile }, props.avatar && renderAvatar(props.avatar));
|
|
3749
|
-
default:
|
|
3750
|
-
return;
|
|
3751
|
-
}
|
|
3752
|
-
}(),
|
|
3753
|
-
react_1["default"].createElement("span", { className: (0, classnames_1["default"])(Tag_module_scss_1["default"].textContent, isTruncated && Tag_module_scss_1["default"].truncate), style: {
|
|
3754
|
-
maxWidth: isTruncated ? truncateWidth : void 0
|
|
3755
|
-
} }, children),
|
|
3756
|
-
dismissible && react_1["default"].createElement(
|
|
3757
|
-
react_1["default"].Fragment,
|
|
3758
|
-
null,
|
|
3759
|
-
react_1["default"].createElement(
|
|
3760
|
-
"button",
|
|
3761
|
-
{ type: "button", className: Tag_module_scss_1["default"].dismissButton, onClick: onDismiss, onMouseDown, onMouseLeave },
|
|
3762
|
-
react_1["default"].createElement(
|
|
3763
|
-
"div",
|
|
3764
|
-
{ className: Tag_module_scss_1["default"].iconWrapper },
|
|
3765
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: clear_white_icon_svg_1["default"], inheritSize: true, role: "img", title: "Dismiss" })
|
|
3766
|
-
)
|
|
3767
|
-
)
|
|
3768
|
-
),
|
|
3769
|
-
variant === "statusLive" && react_1["default"].createElement(
|
|
3770
|
-
"span",
|
|
3771
|
-
{ className: Tag_module_scss_1["default"].liveIcon },
|
|
3772
|
-
react_1["default"].createElement(
|
|
3773
|
-
"span",
|
|
3774
|
-
{ className: Tag_module_scss_1["default"].liveIcon_base },
|
|
3775
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: live_icon_svg_1["default"], role: "presentation" })
|
|
3776
|
-
),
|
|
3777
|
-
react_1["default"].createElement(
|
|
3778
|
-
"span",
|
|
3779
|
-
{ className: Tag_module_scss_1["default"].liveIcon_1 },
|
|
3780
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: live_icon_svg_1["default"], role: "presentation" })
|
|
3781
|
-
),
|
|
3782
|
-
react_1["default"].createElement(
|
|
3783
|
-
"span",
|
|
3784
|
-
{ className: Tag_module_scss_1["default"].liveIcon_2 },
|
|
3785
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: live_icon_svg_1["default"], role: "presentation" })
|
|
3786
|
-
),
|
|
3787
|
-
react_1["default"].createElement(
|
|
3788
|
-
"span",
|
|
3789
|
-
{ className: Tag_module_scss_1["default"].liveIcon_3 },
|
|
3790
|
-
react_1["default"].createElement(component_library_1.Icon, { icon: live_icon_svg_1["default"], role: "presentation" })
|
|
3791
|
-
)
|
|
3792
|
-
)
|
|
3793
|
-
)
|
|
3794
|
-
)
|
|
3795
|
-
);
|
|
3796
|
-
};
|
|
3797
|
-
exports.Tag = Tag;
|
|
3798
|
-
exports.Tag.displayName = "Tag";
|
|
3799
|
-
})(Tag);
|
|
3800
|
-
|
|
3801
|
-
(function(exports) {
|
|
3802
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3803
|
-
if (k2 === void 0)
|
|
3804
|
-
k2 = k;
|
|
3805
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3806
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3807
|
-
desc = { enumerable: true, get: function() {
|
|
3808
|
-
return m[k];
|
|
3809
|
-
} };
|
|
3810
|
-
}
|
|
3811
|
-
Object.defineProperty(o, k2, desc);
|
|
3812
|
-
} : function(o, m, k, k2) {
|
|
3813
|
-
if (k2 === void 0)
|
|
3814
|
-
k2 = k;
|
|
3815
|
-
o[k2] = m[k];
|
|
3816
|
-
});
|
|
3817
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
3818
|
-
for (var p in m)
|
|
3819
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3820
|
-
__createBinding(exports2, m, p);
|
|
3821
|
-
};
|
|
3822
|
-
exports.__esModule = true;
|
|
3823
|
-
__exportStar(Tag, exports);
|
|
3824
|
-
})(Tag$1);
|
|
3825
|
-
|
|
3826
|
-
(function(exports) {
|
|
3827
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3828
|
-
if (k2 === void 0)
|
|
3829
|
-
k2 = k;
|
|
3830
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3831
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3832
|
-
desc = { enumerable: true, get: function() {
|
|
3833
|
-
return m[k];
|
|
3834
|
-
} };
|
|
3835
|
-
}
|
|
3836
|
-
Object.defineProperty(o, k2, desc);
|
|
3837
|
-
} : function(o, m, k, k2) {
|
|
3838
|
-
if (k2 === void 0)
|
|
3839
|
-
k2 = k;
|
|
3840
|
-
o[k2] = m[k];
|
|
3841
|
-
});
|
|
3842
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
3843
|
-
for (var p in m)
|
|
3844
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3845
|
-
__createBinding(exports2, m, p);
|
|
3846
|
-
};
|
|
3847
|
-
exports.__esModule = true;
|
|
3848
|
-
__exportStar(Tag$1, exports);
|
|
3849
|
-
})(tag);
|
|
3850
|
-
|
|
3851
|
-
var brand = {};
|
|
3852
|
-
|
|
3853
|
-
var Brand = {};
|
|
3854
|
-
|
|
3855
|
-
var dist = {};
|
|
3856
|
-
|
|
3857
|
-
dist.__esModule = true;
|
|
3858
|
-
dist.assetUrl = void 0;
|
|
3859
|
-
var ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net";
|
|
3860
|
-
var assetUrl = function(path) {
|
|
3861
|
-
return [ORIGIN_BASE_URL, path].join("/");
|
|
3862
|
-
};
|
|
3863
|
-
dist.assetUrl = assetUrl;
|
|
3864
|
-
|
|
3865
|
-
var Brand_module = {"img":"Brand-module_img__YE-W7"};
|
|
3866
|
-
|
|
3867
|
-
var Brand_module$1 = /*#__PURE__*/Object.freeze({
|
|
3868
|
-
__proto__: null,
|
|
3869
|
-
default: Brand_module
|
|
3870
|
-
});
|
|
3871
|
-
|
|
3872
|
-
var require$$2 = /*@__PURE__*/getAugmentedNamespace(Brand_module$1);
|
|
3873
|
-
|
|
3874
|
-
(function(exports) {
|
|
3875
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
3876
|
-
__assign = Object.assign || function(t) {
|
|
3877
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3878
|
-
s = arguments[i];
|
|
3879
|
-
for (var p in s)
|
|
3880
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3881
|
-
t[p] = s[p];
|
|
3882
|
-
}
|
|
3883
|
-
return t;
|
|
3884
|
-
};
|
|
3885
|
-
return __assign.apply(this, arguments);
|
|
3886
|
-
};
|
|
3887
|
-
var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
|
|
3888
|
-
var t = {};
|
|
3889
|
-
for (var p in s)
|
|
3890
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3891
|
-
t[p] = s[p];
|
|
3892
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3893
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3894
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3895
|
-
t[p[i]] = s[p[i]];
|
|
3896
|
-
}
|
|
3897
|
-
return t;
|
|
3898
|
-
};
|
|
3899
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
3900
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3901
|
-
};
|
|
3902
|
-
exports.__esModule = true;
|
|
3903
|
-
exports.Brand = void 0;
|
|
3904
|
-
var react_1 = __importDefault(React__default);
|
|
3905
|
-
var hosted_assets_1 = dist;
|
|
3906
|
-
var Brand_module_scss_1 = __importDefault(require$$2);
|
|
3907
|
-
var Brand = function(_a) {
|
|
3908
|
-
var variant = _a.variant, alt = _a.alt, _b = _a.reversed, reversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["variant", "alt", "reversed", "classNameOverride"]);
|
|
3909
|
-
var brandTheme = reversed ? "-reversed" : "-default";
|
|
3910
|
-
return react_1["default"].createElement(
|
|
3911
|
-
"picture",
|
|
3912
|
-
__assign({ className: classNameOverride }, restProps),
|
|
3913
|
-
react_1["default"].createElement("source", { srcSet: (0, hosted_assets_1.assetUrl)("brand/".concat(variant, "-reversed.svg")), media: "(forced-colors: active) and (prefers-color-scheme: dark)" }),
|
|
3914
|
-
react_1["default"].createElement("source", { srcSet: (0, hosted_assets_1.assetUrl)("brand/".concat(variant, "-default.svg")), media: "(forced-colors: active) and (prefers-color-scheme: light)" }),
|
|
3915
|
-
react_1["default"].createElement("img", { src: (0, hosted_assets_1.assetUrl)("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: Brand_module_scss_1["default"].img })
|
|
3916
|
-
);
|
|
3917
|
-
};
|
|
3918
|
-
exports.Brand = Brand;
|
|
3919
|
-
exports.Brand.displayName = "Brand";
|
|
3920
|
-
})(Brand);
|
|
3921
|
-
|
|
3922
|
-
(function(exports) {
|
|
3923
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3924
|
-
if (k2 === void 0)
|
|
3925
|
-
k2 = k;
|
|
3926
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3927
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3928
|
-
desc = { enumerable: true, get: function() {
|
|
3929
|
-
return m[k];
|
|
3930
|
-
} };
|
|
3931
|
-
}
|
|
3932
|
-
Object.defineProperty(o, k2, desc);
|
|
3933
|
-
} : function(o, m, k, k2) {
|
|
3934
|
-
if (k2 === void 0)
|
|
3935
|
-
k2 = k;
|
|
3936
|
-
o[k2] = m[k];
|
|
3937
|
-
});
|
|
3938
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
|
|
3939
|
-
for (var p in m)
|
|
3940
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
3941
|
-
__createBinding(exports2, m, p);
|
|
3942
|
-
};
|
|
3943
|
-
exports.__esModule = true;
|
|
3944
|
-
__exportStar(Brand, exports);
|
|
3945
|
-
})(brand);
|
|
3946
|
-
|
|
3947
|
-
export { Icon$1 as I, PropTypes as P, SVG as S, __rest$3 as _, commonjsGlobal as a, classnames as b, classnamesExports as c, __assign$3 as d, __spreadArray as e, __spreadArrays as f, getAugmentedNamespace as g, getDefaultExportFromCjs as h, componentLibrary as i, require$$5$1 as j, require$$8 as k, __extends as l, SuccessIcon as m, IndicatorActiveIcon as n, IndicatorInactiveIcon as o, propTypesExports as p, tag as q, require$$3$1 as r, brand as s, typography as t };
|
|
3948
|
-
//# sourceMappingURL=index-e92c892e.js.map
|