@popmenu/common-ui 0.17.0 → 0.18.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/AudioPlayer/util/index.d.ts +0 -1
- package/build/components/AudioPlayer/util/setupAudioRef.d.ts +1 -1
- package/build/components/AudioPlayer/util/types.d.ts +6 -3
- package/build/components/Box/index.d.ts +7 -2
- package/build/components/Table/TableProps.d.ts +2 -0
- package/build/esm/components/Accordion/index.d.ts +1 -0
- package/build/esm/components/AccordionActions/index.d.ts +1 -0
- package/build/esm/components/AccordionDetails/index.d.ts +1 -0
- package/build/esm/components/AccordionSummary/index.d.ts +1 -0
- package/build/esm/components/Alert/index.d.ts +1 -0
- package/build/esm/components/AppBar/index.d.ts +1 -0
- package/build/esm/components/AudioPlayer/AudioPlayer.d.ts +3 -0
- package/build/esm/components/AudioPlayer/AudioPlayerProps.d.ts +4 -0
- package/build/esm/components/AudioPlayer/index.d.ts +2 -0
- package/build/esm/components/AudioPlayer/util/audioPlayerReducer.d.ts +11 -0
- package/build/esm/components/AudioPlayer/util/formatTime.d.ts +1 -0
- package/build/esm/components/AudioPlayer/util/index.d.ts +5 -0
- package/build/esm/components/AudioPlayer/util/setupAudioRef.d.ts +8 -0
- package/build/esm/components/AudioPlayer/util/types.d.ts +77 -0
- package/build/esm/components/AudioPlayer/util/useVolumeIcon.d.ts +2 -0
- package/build/esm/components/Avatar/Avatar.d.ts +3 -0
- package/build/esm/components/Avatar/AvatarProps.d.ts +15 -0
- package/build/esm/components/Avatar/avatar.styles.d.ts +2 -0
- package/build/esm/components/Avatar/index.d.ts +2 -0
- package/build/esm/components/Avatar/util/useImageProps.d.ts +15 -0
- package/build/esm/components/Badge/index.d.ts +1 -0
- package/build/esm/components/Box/Box.d.ts +3 -0
- package/build/esm/components/Box/BoxProps.d.ts +5 -0
- package/build/esm/components/Box/BoxStyles.d.ts +1 -0
- package/build/esm/components/Box/index.d.ts +7 -0
- package/build/esm/components/Breadcrumbs/index.d.ts +1 -0
- package/build/esm/components/Button/Button.d.ts +3 -0
- package/build/esm/components/Button/ButtonProps.d.ts +6 -0
- package/build/esm/components/Button/ButtonStyles.d.ts +2 -0
- package/build/esm/components/Button/index.d.ts +2 -0
- package/build/esm/components/ButtonBase/index.d.ts +1 -0
- package/build/esm/components/ButtonGroup/index.d.ts +1 -0
- package/build/esm/components/Card/index.d.ts +1 -0
- package/build/esm/components/CardActionArea/index.d.ts +1 -0
- package/build/esm/components/CardActions/index.d.ts +1 -0
- package/build/esm/components/CardContent/index.d.ts +1 -0
- package/build/esm/components/CardHeader/index.d.ts +1 -0
- package/build/esm/components/CardMedia/index.d.ts +1 -0
- package/build/esm/components/Checkbox/Checkbox.d.ts +3 -0
- package/build/esm/components/Checkbox/CheckboxProps.d.ts +8 -0
- package/build/esm/components/Checkbox/index.d.ts +2 -0
- package/build/esm/components/Chip/index.d.ts +1 -0
- package/build/esm/components/CircularProgress/index.d.ts +1 -0
- package/build/esm/components/ClickAwayListener/index.d.ts +1 -0
- package/build/esm/components/CollapsibleText/CollapsibleText.d.ts +3 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextProps.d.ts +12 -0
- package/build/esm/components/CollapsibleText/CollapsibleTextStyles.d.ts +4 -0
- package/build/esm/components/CollapsibleText/index.d.ts +2 -0
- package/build/esm/components/Dialog/index.d.ts +1 -0
- package/build/esm/components/DialogActions/index.d.ts +1 -0
- package/build/esm/components/DialogContent/index.d.ts +1 -0
- package/build/esm/components/DialogContentText/index.d.ts +1 -0
- package/build/esm/components/DialogTitle/index.d.ts +1 -0
- package/build/esm/components/Divider/Divider.d.ts +3 -0
- package/build/esm/components/Divider/DividerProps.d.ts +17 -0
- package/build/esm/components/Divider/index.d.ts +2 -0
- package/build/esm/components/Drawer/index.d.ts +1 -0
- package/build/esm/components/Fab/index.d.ts +1 -0
- package/build/esm/components/FormControl/index.d.ts +1 -0
- package/build/esm/components/FormControlLabel/index.d.ts +1 -0
- package/build/esm/components/FormLabel/index.d.ts +1 -0
- package/build/esm/components/Grid/index.d.ts +1 -0
- package/build/esm/components/GridList/index.d.ts +1 -0
- package/build/esm/components/Hidden/index.d.ts +1 -0
- package/build/esm/components/Icon/Icon.d.ts +4 -0
- package/build/esm/components/Icon/IconProps.d.ts +11 -0
- package/build/esm/components/Icon/IconStyles.d.ts +2 -0
- package/build/esm/components/Icon/index.d.ts +2 -0
- package/build/esm/components/IconButton/IconButton.d.ts +3 -0
- package/build/esm/components/IconButton/IconButtonProps.d.ts +2 -0
- package/build/esm/components/IconButton/index.d.ts +2 -0
- package/build/esm/components/InputAdornment/index.d.ts +1 -0
- package/build/esm/components/LinearProgress/index.d.ts +1 -0
- package/build/esm/components/Link/Link.d.ts +3 -0
- package/build/esm/components/Link/LinkProps.d.ts +4 -0
- package/build/esm/components/Link/index.d.ts +2 -0
- package/build/esm/components/Link/link.styles.d.ts +2 -0
- package/build/esm/components/List/index.d.ts +1 -0
- package/build/esm/components/ListItem/index.d.ts +1 -0
- package/build/esm/components/ListItemIcon/index.d.ts +1 -0
- package/build/esm/components/ListItemSecondaryAction/index.d.ts +1 -0
- package/build/esm/components/ListItemText/index.d.ts +1 -0
- package/build/esm/components/Menu/index.d.ts +1 -0
- package/build/esm/components/MenuItem/index.d.ts +1 -0
- package/build/esm/components/MenuList/index.d.ts +1 -0
- package/build/esm/components/Modal/index.d.ts +1 -0
- package/build/esm/components/Paper/Paper.d.ts +6 -0
- package/build/esm/components/Paper/index.d.ts +1 -0
- package/build/esm/components/PaperContent/PaperContent.d.ts +2 -0
- package/build/esm/components/PaperContent/index.d.ts +1 -0
- package/build/esm/components/Popover/index.d.ts +1 -0
- package/build/esm/components/Popper/index.d.ts +1 -0
- package/build/esm/components/Radio/Radio.d.ts +3 -0
- package/build/esm/components/Radio/RadioProps.d.ts +8 -0
- package/build/esm/components/Radio/index.d.ts +2 -0
- package/build/esm/components/SplitInput/SplitInput.d.ts +3 -0
- package/build/esm/components/SplitInput/SplitInputProps.d.ts +18 -0
- package/build/esm/components/SplitInput/SplitInputStyles.d.ts +2 -0
- package/build/esm/components/SplitInput/index.d.ts +2 -0
- package/build/esm/components/Step/index.d.ts +1 -0
- package/build/esm/components/StepButton/index.d.ts +1 -0
- package/build/esm/components/StepConnector/index.d.ts +1 -0
- package/build/esm/components/StepContent/index.d.ts +1 -0
- package/build/esm/components/StepIcon/index.d.ts +1 -0
- package/build/esm/components/StepLabel/index.d.ts +1 -0
- package/build/esm/components/Stepper/index.d.ts +1 -0
- package/build/esm/components/Switch/Switch.d.ts +3 -0
- package/build/esm/components/Switch/SwitchProps.d.ts +8 -0
- package/build/esm/components/Switch/index.d.ts +2 -0
- package/build/esm/components/Switch/switch.styles.d.ts +2 -0
- package/build/esm/components/Tab/index.d.ts +1 -0
- package/build/esm/components/Table/Table.d.ts +3 -0
- package/build/esm/components/Table/TableProps.d.ts +28 -0
- package/build/esm/components/Table/TableStyles.d.ts +2 -0
- package/build/esm/components/Table/index.d.ts +2 -0
- package/build/esm/components/Table/util/makeColumns.d.ts +7 -0
- package/build/esm/components/TableActionsCell/TableActionsCell.d.ts +3 -0
- package/build/esm/components/TableActionsCell/TableActionsCellProps.d.ts +10 -0
- package/build/esm/components/TableActionsCell/index.d.ts +2 -0
- package/build/esm/components/TableBody/TableBody.d.ts +2 -0
- package/build/esm/components/TableBody/index.d.ts +1 -0
- package/build/esm/components/TableCell/TableCell.d.ts +2 -0
- package/build/esm/components/TableCell/TableCellStyles.d.ts +1 -0
- package/build/esm/components/TableCell/index.d.ts +1 -0
- package/build/esm/components/TableFooter/TableFooter.d.ts +2 -0
- package/build/esm/components/TableFooter/index.d.ts +1 -0
- package/build/esm/components/TableHeader/TableHeader.d.ts +2 -0
- package/build/esm/components/TableHeader/index.d.ts +1 -0
- package/build/esm/components/TableHeaderCell/TableHeaderCell.d.ts +3 -0
- package/build/esm/components/TableHeaderCell/TableHeaderCellProps.d.ts +8 -0
- package/build/esm/components/TableHeaderCell/TableHeaderCellStyles.d.ts +2 -0
- package/build/esm/components/TableHeaderCell/index.d.ts +1 -0
- package/build/esm/components/TableHeaderRow/TableHeaderRow.d.ts +2 -0
- package/build/esm/components/TableHeaderRow/index.d.ts +1 -0
- package/build/esm/components/TableRow/TableRow.d.ts +2 -0
- package/build/esm/components/TableRow/TableRowStyles.d.ts +1 -0
- package/build/esm/components/TableRow/index.d.ts +1 -0
- package/build/esm/components/Tabs/index.d.ts +1 -0
- package/build/esm/components/TextField/index.d.ts +1 -0
- package/build/esm/components/ThemeProvider/index.d.ts +1 -0
- package/build/esm/components/ToggleButton/ToggleButton.d.ts +3 -0
- package/build/esm/components/ToggleButton/ToggleButtonProps.d.ts +4 -0
- package/build/esm/components/ToggleButton/ToggleButtonStyles.d.ts +2 -0
- package/build/esm/components/ToggleButton/index.d.ts +2 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupProps.d.ts +6 -0
- package/build/esm/components/ToggleButtonGroup/ToggleButtonGroupStyles.d.ts +1 -0
- package/build/esm/components/ToggleButtonGroup/index.d.ts +2 -0
- package/build/esm/components/Toolbar/index.d.ts +1 -0
- package/build/esm/components/Tooltip/Tooltip.d.ts +3 -0
- package/build/esm/components/Tooltip/TooltipProps.d.ts +1 -0
- package/build/esm/components/Tooltip/TooltipStyles.d.ts +2 -0
- package/build/esm/components/Tooltip/index.d.ts +2 -0
- package/build/esm/components/Typography/Typography.d.ts +3 -0
- package/build/esm/components/Typography/TypographyStyles.d.ts +2 -0
- package/build/esm/components/Typography/index.d.ts +2 -0
- package/build/esm/components/index.d.ts +75 -0
- package/build/esm/hooks/index.d.ts +1 -0
- package/build/esm/hooks/useCollapsibleText.d.ts +10 -0
- package/build/esm/index.d.ts +3 -0
- package/build/esm/index.js +1339 -0
- package/build/esm/index.js.map +1 -0
- package/build/{index.es.js → esm/react-table-de7bf68c.js} +3 -2544
- package/build/esm/react-table-de7bf68c.js.map +1 -0
- package/build/esm/types/index.d.ts +2 -0
- package/build/esm/util/ServerStyleSheets.d.ts +1 -0
- package/build/esm/util/colors/alpha.d.ts +1 -0
- package/build/esm/util/colors/darken.d.ts +1 -0
- package/build/esm/util/colors/decomposeColor.d.ts +1 -0
- package/build/esm/util/colors/getLuminance.d.ts +1 -0
- package/build/esm/util/colors/hexToRgb.d.ts +1 -0
- package/build/esm/util/colors/index.d.ts +8 -0
- package/build/esm/util/colors/lighten.d.ts +1 -0
- package/build/esm/util/colors/recomposeColor.d.ts +1 -0
- package/build/esm/util/colors/rgbToHex.d.ts +1 -0
- package/build/esm/util/createTheme.d.ts +1 -0
- package/build/esm/util/index.d.ts +4 -0
- package/build/esm/util/makeStyles.d.ts +1 -0
- package/build/index.js +272 -1474
- package/build/index.js.map +1 -1
- package/package.json +4 -3
- package/build/components/AudioPlayer/util/usePlaybackIcon.d.ts +0 -2
- package/build/index.es.js.map +0 -1
package/build/index.js
CHANGED
|
@@ -76,8 +76,8 @@ function _interopNamespace(e) {
|
|
|
76
76
|
|
|
77
77
|
var Alert__default = /*#__PURE__*/_interopDefaultLegacy(Alert);
|
|
78
78
|
var AppBar__default = /*#__PURE__*/_interopDefaultLegacy(AppBar);
|
|
79
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
80
79
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
80
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
81
81
|
var MuiIconButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiIconButton);
|
|
82
82
|
var MuiTypography__default = /*#__PURE__*/_interopDefaultLegacy(MuiTypography);
|
|
83
83
|
var MuiAvatar__default = /*#__PURE__*/_interopDefaultLegacy(MuiAvatar);
|
|
@@ -170,1299 +170,168 @@ function __spreadArray(to, from, pack) {
|
|
|
170
170
|
return to.concat(ar || from);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
var classnames = {exports: {}};
|
|
176
|
-
|
|
177
|
-
/*!
|
|
178
|
-
Copyright (c) 2018 Jed Watson.
|
|
179
|
-
Licensed under the MIT License (MIT), see
|
|
180
|
-
http://jedwatson.github.io/classnames
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
(function (module) {
|
|
184
|
-
/* global define */
|
|
185
|
-
|
|
186
|
-
(function () {
|
|
187
|
-
|
|
188
|
-
var hasOwn = {}.hasOwnProperty;
|
|
189
|
-
|
|
190
|
-
function classNames() {
|
|
191
|
-
var classes = [];
|
|
192
|
-
|
|
193
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
194
|
-
var arg = arguments[i];
|
|
195
|
-
if (!arg) continue;
|
|
196
|
-
|
|
197
|
-
var argType = typeof arg;
|
|
198
|
-
|
|
199
|
-
if (argType === 'string' || argType === 'number') {
|
|
200
|
-
classes.push(arg);
|
|
201
|
-
} else if (Array.isArray(arg)) {
|
|
202
|
-
if (arg.length) {
|
|
203
|
-
var inner = classNames.apply(null, arg);
|
|
204
|
-
if (inner) {
|
|
205
|
-
classes.push(inner);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
} else if (argType === 'object') {
|
|
209
|
-
if (arg.toString === Object.prototype.toString) {
|
|
210
|
-
for (var key in arg) {
|
|
211
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
212
|
-
classes.push(key);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
} else {
|
|
216
|
-
classes.push(arg.toString());
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return classes.join(' ');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
if (module.exports) {
|
|
225
|
-
classNames.default = classNames;
|
|
226
|
-
module.exports = classNames;
|
|
227
|
-
} else {
|
|
228
|
-
window.classNames = classNames;
|
|
229
|
-
}
|
|
230
|
-
}());
|
|
231
|
-
}(classnames));
|
|
232
|
-
|
|
233
|
-
var classNames = classnames.exports;
|
|
234
|
-
|
|
235
|
-
function _defineProperty(obj, key, value) {
|
|
236
|
-
if (key in obj) {
|
|
237
|
-
Object.defineProperty(obj, key, {
|
|
238
|
-
value: value,
|
|
239
|
-
enumerable: true,
|
|
240
|
-
configurable: true,
|
|
241
|
-
writable: true
|
|
242
|
-
});
|
|
243
|
-
} else {
|
|
244
|
-
obj[key] = value;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
return obj;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
var propTypes = {exports: {}};
|
|
251
|
-
|
|
252
|
-
var reactIs = {exports: {}};
|
|
253
|
-
|
|
254
|
-
var reactIs_production_min = {};
|
|
255
|
-
|
|
256
|
-
/** @license React v16.13.1
|
|
257
|
-
* react-is.production.min.js
|
|
258
|
-
*
|
|
259
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the MIT license found in the
|
|
262
|
-
* LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/
|
|
264
|
-
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?
|
|
265
|
-
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;
|
|
266
|
-
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;
|
|
267
|
-
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};
|
|
268
|
-
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};
|
|
269
|
-
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;
|
|
270
|
-
|
|
271
|
-
var reactIs_development = {};
|
|
272
|
-
|
|
273
|
-
/** @license React v16.13.1
|
|
274
|
-
* react-is.development.js
|
|
275
|
-
*
|
|
276
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
277
|
-
*
|
|
278
|
-
* This source code is licensed under the MIT license found in the
|
|
279
|
-
* LICENSE file in the root directory of this source tree.
|
|
280
|
-
*/
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
if (process.env.NODE_ENV !== "production") {
|
|
285
|
-
(function() {
|
|
286
|
-
|
|
287
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
288
|
-
// nor polyfill, then a plain number is used for performance.
|
|
289
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
290
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
291
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
292
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
293
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
294
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
295
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
296
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
297
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
298
|
-
|
|
299
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
300
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
301
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
302
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
303
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
304
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
305
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
306
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
307
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
308
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
309
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
310
|
-
|
|
311
|
-
function isValidElementType(type) {
|
|
312
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
313
|
-
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);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
function typeOf(object) {
|
|
317
|
-
if (typeof object === 'object' && object !== null) {
|
|
318
|
-
var $$typeof = object.$$typeof;
|
|
319
|
-
|
|
320
|
-
switch ($$typeof) {
|
|
321
|
-
case REACT_ELEMENT_TYPE:
|
|
322
|
-
var type = object.type;
|
|
323
|
-
|
|
324
|
-
switch (type) {
|
|
325
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
326
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
327
|
-
case REACT_FRAGMENT_TYPE:
|
|
328
|
-
case REACT_PROFILER_TYPE:
|
|
329
|
-
case REACT_STRICT_MODE_TYPE:
|
|
330
|
-
case REACT_SUSPENSE_TYPE:
|
|
331
|
-
return type;
|
|
332
|
-
|
|
333
|
-
default:
|
|
334
|
-
var $$typeofType = type && type.$$typeof;
|
|
335
|
-
|
|
336
|
-
switch ($$typeofType) {
|
|
337
|
-
case REACT_CONTEXT_TYPE:
|
|
338
|
-
case REACT_FORWARD_REF_TYPE:
|
|
339
|
-
case REACT_LAZY_TYPE:
|
|
340
|
-
case REACT_MEMO_TYPE:
|
|
341
|
-
case REACT_PROVIDER_TYPE:
|
|
342
|
-
return $$typeofType;
|
|
343
|
-
|
|
344
|
-
default:
|
|
345
|
-
return $$typeof;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
case REACT_PORTAL_TYPE:
|
|
351
|
-
return $$typeof;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
return undefined;
|
|
356
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
357
|
-
|
|
358
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
359
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
360
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
361
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
362
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
363
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
364
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
365
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
366
|
-
var Memo = REACT_MEMO_TYPE;
|
|
367
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
368
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
369
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
370
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
371
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
372
|
-
|
|
373
|
-
function isAsyncMode(object) {
|
|
374
|
-
{
|
|
375
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
376
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
377
|
-
|
|
378
|
-
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.');
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
383
|
-
}
|
|
384
|
-
function isConcurrentMode(object) {
|
|
385
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
386
|
-
}
|
|
387
|
-
function isContextConsumer(object) {
|
|
388
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
389
|
-
}
|
|
390
|
-
function isContextProvider(object) {
|
|
391
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
392
|
-
}
|
|
393
|
-
function isElement(object) {
|
|
394
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
395
|
-
}
|
|
396
|
-
function isForwardRef(object) {
|
|
397
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
398
|
-
}
|
|
399
|
-
function isFragment(object) {
|
|
400
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
401
|
-
}
|
|
402
|
-
function isLazy(object) {
|
|
403
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
404
|
-
}
|
|
405
|
-
function isMemo(object) {
|
|
406
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
407
|
-
}
|
|
408
|
-
function isPortal(object) {
|
|
409
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
410
|
-
}
|
|
411
|
-
function isProfiler(object) {
|
|
412
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
413
|
-
}
|
|
414
|
-
function isStrictMode(object) {
|
|
415
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
416
|
-
}
|
|
417
|
-
function isSuspense(object) {
|
|
418
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
422
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
423
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
424
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
425
|
-
reactIs_development.Element = Element;
|
|
426
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
427
|
-
reactIs_development.Fragment = Fragment;
|
|
428
|
-
reactIs_development.Lazy = Lazy;
|
|
429
|
-
reactIs_development.Memo = Memo;
|
|
430
|
-
reactIs_development.Portal = Portal;
|
|
431
|
-
reactIs_development.Profiler = Profiler;
|
|
432
|
-
reactIs_development.StrictMode = StrictMode;
|
|
433
|
-
reactIs_development.Suspense = Suspense;
|
|
434
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
435
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
436
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
437
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
438
|
-
reactIs_development.isElement = isElement;
|
|
439
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
440
|
-
reactIs_development.isFragment = isFragment;
|
|
441
|
-
reactIs_development.isLazy = isLazy;
|
|
442
|
-
reactIs_development.isMemo = isMemo;
|
|
443
|
-
reactIs_development.isPortal = isPortal;
|
|
444
|
-
reactIs_development.isProfiler = isProfiler;
|
|
445
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
446
|
-
reactIs_development.isSuspense = isSuspense;
|
|
447
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
448
|
-
reactIs_development.typeOf = typeOf;
|
|
449
|
-
})();
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
if (process.env.NODE_ENV === 'production') {
|
|
453
|
-
reactIs.exports = reactIs_production_min;
|
|
454
|
-
} else {
|
|
455
|
-
reactIs.exports = reactIs_development;
|
|
456
|
-
}
|
|
173
|
+
var _path$3K;
|
|
457
174
|
|
|
458
|
-
|
|
459
|
-
object-assign
|
|
460
|
-
(c) Sindre Sorhus
|
|
461
|
-
@license MIT
|
|
462
|
-
*/
|
|
463
|
-
/* eslint-disable no-unused-vars */
|
|
464
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
465
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
466
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
467
|
-
|
|
468
|
-
function toObject(val) {
|
|
469
|
-
if (val === null || val === undefined) {
|
|
470
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
471
|
-
}
|
|
175
|
+
function _extends$3$() { _extends$3$ = 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; }; return _extends$3$.apply(this, arguments); }
|
|
472
176
|
|
|
473
|
-
|
|
177
|
+
function SvgMore(props) {
|
|
178
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3$({
|
|
179
|
+
viewBox: "0 0 16 16",
|
|
180
|
+
strokeLinecap: "round",
|
|
181
|
+
strokeLinejoin: "round",
|
|
182
|
+
stroke: "currentColor",
|
|
183
|
+
width: "1em",
|
|
184
|
+
height: "1em",
|
|
185
|
+
fill: "none"
|
|
186
|
+
}, props), _path$3K || (_path$3K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
187
|
+
d: "M8 8.667a.667.667 0 100-1.334.667.667 0 000 1.334zM8 4a.667.667 0 100-1.333A.667.667 0 008 4zm0 9.333A.667.667 0 108 12a.667.667 0 000 1.333z"
|
|
188
|
+
})));
|
|
474
189
|
}
|
|
475
190
|
|
|
476
|
-
|
|
477
|
-
try {
|
|
478
|
-
if (!Object.assign) {
|
|
479
|
-
return false;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
483
|
-
|
|
484
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
485
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
486
|
-
test1[5] = 'de';
|
|
487
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
492
|
-
var test2 = {};
|
|
493
|
-
for (var i = 0; i < 10; i++) {
|
|
494
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
495
|
-
}
|
|
496
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
497
|
-
return test2[n];
|
|
498
|
-
});
|
|
499
|
-
if (order2.join('') !== '0123456789') {
|
|
500
|
-
return false;
|
|
501
|
-
}
|
|
191
|
+
var _path$2X;
|
|
502
192
|
|
|
503
|
-
|
|
504
|
-
var test3 = {};
|
|
505
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
506
|
-
test3[letter] = letter;
|
|
507
|
-
});
|
|
508
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
509
|
-
'abcdefghijklmnopqrst') {
|
|
510
|
-
return false;
|
|
511
|
-
}
|
|
193
|
+
function _extends$3b() { _extends$3b = 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; }; return _extends$3b.apply(this, arguments); }
|
|
512
194
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
195
|
+
function SvgChevronDown(props) {
|
|
196
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3b({
|
|
197
|
+
viewBox: "0 0 16 16",
|
|
198
|
+
strokeLinecap: "round",
|
|
199
|
+
strokeLinejoin: "round",
|
|
200
|
+
stroke: "currentColor",
|
|
201
|
+
width: "1em",
|
|
202
|
+
height: "1em",
|
|
203
|
+
fill: "none"
|
|
204
|
+
}, props), _path$2X || (_path$2X = /*#__PURE__*/React__namespace.createElement("path", {
|
|
205
|
+
d: "M4 6l4 4 4-4"
|
|
206
|
+
})));
|
|
518
207
|
}
|
|
519
208
|
|
|
520
|
-
var
|
|
521
|
-
var from;
|
|
522
|
-
var to = toObject(target);
|
|
523
|
-
var symbols;
|
|
524
|
-
|
|
525
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
526
|
-
from = Object(arguments[s]);
|
|
527
|
-
|
|
528
|
-
for (var key in from) {
|
|
529
|
-
if (hasOwnProperty.call(from, key)) {
|
|
530
|
-
to[key] = from[key];
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
if (getOwnPropertySymbols) {
|
|
535
|
-
symbols = getOwnPropertySymbols(from);
|
|
536
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
537
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
538
|
-
to[symbols[i]] = from[symbols[i]];
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
return to;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
549
|
-
*
|
|
550
|
-
* This source code is licensed under the MIT license found in the
|
|
551
|
-
* LICENSE file in the root directory of this source tree.
|
|
552
|
-
*/
|
|
553
|
-
|
|
554
|
-
var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
555
|
-
|
|
556
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
560
|
-
*
|
|
561
|
-
* This source code is licensed under the MIT license found in the
|
|
562
|
-
* LICENSE file in the root directory of this source tree.
|
|
563
|
-
*/
|
|
564
|
-
|
|
565
|
-
var printWarning$1 = function() {};
|
|
209
|
+
var _path$2W;
|
|
566
210
|
|
|
567
|
-
if (
|
|
568
|
-
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
569
|
-
var loggedTypeFailures = {};
|
|
570
|
-
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
211
|
+
function _extends$3a() { _extends$3a = 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; }; return _extends$3a.apply(this, arguments); }
|
|
571
212
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
};
|
|
213
|
+
function SvgChevronUp(props) {
|
|
214
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3a({
|
|
215
|
+
viewBox: "0 0 16 16",
|
|
216
|
+
strokeLinecap: "round",
|
|
217
|
+
strokeLinejoin: "round",
|
|
218
|
+
stroke: "currentColor",
|
|
219
|
+
width: "1em",
|
|
220
|
+
height: "1em",
|
|
221
|
+
fill: "none"
|
|
222
|
+
}, props), _path$2W || (_path$2W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
223
|
+
d: "M12 10L8 6l-4 4"
|
|
224
|
+
})));
|
|
584
225
|
}
|
|
585
226
|
|
|
586
|
-
|
|
587
|
-
* Assert that the values match with the type specs.
|
|
588
|
-
* Error messages are memorized and will only be shown once.
|
|
589
|
-
*
|
|
590
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
591
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
592
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
593
|
-
* @param {string} componentName Name of the component for error messages.
|
|
594
|
-
* @param {?Function} getStack Returns the component stack.
|
|
595
|
-
* @private
|
|
596
|
-
*/
|
|
597
|
-
function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
|
|
598
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
599
|
-
for (var typeSpecName in typeSpecs) {
|
|
600
|
-
if (has$1(typeSpecs, typeSpecName)) {
|
|
601
|
-
var error;
|
|
602
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
603
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
604
|
-
// After these have been cleaned up, we'll let them throw.
|
|
605
|
-
try {
|
|
606
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
607
|
-
// behavior as without this statement except with a better message.
|
|
608
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
609
|
-
var err = Error(
|
|
610
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
611
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
612
|
-
);
|
|
613
|
-
err.name = 'Invariant Violation';
|
|
614
|
-
throw err;
|
|
615
|
-
}
|
|
616
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
|
|
617
|
-
} catch (ex) {
|
|
618
|
-
error = ex;
|
|
619
|
-
}
|
|
620
|
-
if (error && !(error instanceof Error)) {
|
|
621
|
-
printWarning$1(
|
|
622
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
623
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
624
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
625
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
626
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
627
|
-
'shape all require an argument).'
|
|
628
|
-
);
|
|
629
|
-
}
|
|
630
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
631
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
632
|
-
// same error.
|
|
633
|
-
loggedTypeFailures[error.message] = true;
|
|
227
|
+
var _path$1f;
|
|
634
228
|
|
|
635
|
-
|
|
229
|
+
function _extends$1p() { _extends$1p = 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; }; return _extends$1p.apply(this, arguments); }
|
|
636
230
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
231
|
+
function SvgPause(props) {
|
|
232
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1p({
|
|
233
|
+
viewBox: "0 0 16 16",
|
|
234
|
+
strokeLinecap: "round",
|
|
235
|
+
strokeLinejoin: "round",
|
|
236
|
+
stroke: "currentColor",
|
|
237
|
+
width: "1em",
|
|
238
|
+
height: "1em",
|
|
239
|
+
fill: "none"
|
|
240
|
+
}, props), _path$1f || (_path$1f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
241
|
+
d: "M6.667 2.667H4v10.666h2.667V2.667zm5.333 0H9.333v10.666H12V2.667z"
|
|
242
|
+
})));
|
|
644
243
|
}
|
|
645
244
|
|
|
646
|
-
|
|
647
|
-
* Resets warning cache when testing.
|
|
648
|
-
*
|
|
649
|
-
* @private
|
|
650
|
-
*/
|
|
651
|
-
checkPropTypes$1.resetWarningCache = function() {
|
|
652
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
653
|
-
loggedTypeFailures = {};
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
var checkPropTypes_1 = checkPropTypes$1;
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
661
|
-
*
|
|
662
|
-
* This source code is licensed under the MIT license found in the
|
|
663
|
-
* LICENSE file in the root directory of this source tree.
|
|
664
|
-
*/
|
|
665
|
-
|
|
666
|
-
var ReactIs$1 = reactIs.exports;
|
|
667
|
-
var assign = objectAssign;
|
|
668
|
-
|
|
669
|
-
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
670
|
-
var checkPropTypes = checkPropTypes_1;
|
|
671
|
-
|
|
672
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
673
|
-
var printWarning = function() {};
|
|
245
|
+
var _path$1d;
|
|
674
246
|
|
|
675
|
-
if (
|
|
676
|
-
printWarning = function(text) {
|
|
677
|
-
var message = 'Warning: ' + text;
|
|
678
|
-
if (typeof console !== 'undefined') {
|
|
679
|
-
console.error(message);
|
|
680
|
-
}
|
|
681
|
-
try {
|
|
682
|
-
// --- Welcome to debugging React ---
|
|
683
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
684
|
-
// to find the callsite that caused this warning to fire.
|
|
685
|
-
throw new Error(message);
|
|
686
|
-
} catch (x) {}
|
|
687
|
-
};
|
|
688
|
-
}
|
|
247
|
+
function _extends$1n() { _extends$1n = 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; }; return _extends$1n.apply(this, arguments); }
|
|
689
248
|
|
|
690
|
-
function
|
|
691
|
-
return
|
|
249
|
+
function SvgPlay(props) {
|
|
250
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1n({
|
|
251
|
+
viewBox: "0 0 16 16",
|
|
252
|
+
strokeLinecap: "round",
|
|
253
|
+
strokeLinejoin: "round",
|
|
254
|
+
stroke: "currentColor",
|
|
255
|
+
width: "1em",
|
|
256
|
+
height: "1em",
|
|
257
|
+
fill: "none"
|
|
258
|
+
}, props), _path$1d || (_path$1d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
259
|
+
d: "M3.333 2l9.334 6-9.334 6V2z"
|
|
260
|
+
})));
|
|
692
261
|
}
|
|
693
262
|
|
|
694
|
-
var
|
|
695
|
-
/* global Symbol */
|
|
696
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
697
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Returns the iterator method function contained on the iterable object.
|
|
701
|
-
*
|
|
702
|
-
* Be sure to invoke the function with the iterable as context:
|
|
703
|
-
*
|
|
704
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
705
|
-
* if (iteratorFn) {
|
|
706
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
707
|
-
* ...
|
|
708
|
-
* }
|
|
709
|
-
*
|
|
710
|
-
* @param {?object} maybeIterable
|
|
711
|
-
* @return {?function}
|
|
712
|
-
*/
|
|
713
|
-
function getIteratorFn(maybeIterable) {
|
|
714
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
715
|
-
if (typeof iteratorFn === 'function') {
|
|
716
|
-
return iteratorFn;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
722
|
-
* supplied to React components. Example usage:
|
|
723
|
-
*
|
|
724
|
-
* var Props = require('ReactPropTypes');
|
|
725
|
-
* var MyArticle = React.createClass({
|
|
726
|
-
* propTypes: {
|
|
727
|
-
* // An optional string prop named "description".
|
|
728
|
-
* description: Props.string,
|
|
729
|
-
*
|
|
730
|
-
* // A required enum prop named "category".
|
|
731
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
732
|
-
*
|
|
733
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
734
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
735
|
-
* },
|
|
736
|
-
* render: function() { ... }
|
|
737
|
-
* });
|
|
738
|
-
*
|
|
739
|
-
* A more formal specification of how these methods are used:
|
|
740
|
-
*
|
|
741
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
742
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
743
|
-
*
|
|
744
|
-
* Each and every declaration produces a function with the same signature. This
|
|
745
|
-
* allows the creation of custom validation functions. For example:
|
|
746
|
-
*
|
|
747
|
-
* var MyLink = React.createClass({
|
|
748
|
-
* propTypes: {
|
|
749
|
-
* // An optional string or URI prop named "href".
|
|
750
|
-
* href: function(props, propName, componentName) {
|
|
751
|
-
* var propValue = props[propName];
|
|
752
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
753
|
-
* !(propValue instanceof URI)) {
|
|
754
|
-
* return new Error(
|
|
755
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
756
|
-
* componentName
|
|
757
|
-
* );
|
|
758
|
-
* }
|
|
759
|
-
* }
|
|
760
|
-
* },
|
|
761
|
-
* render: function() {...}
|
|
762
|
-
* });
|
|
763
|
-
*
|
|
764
|
-
* @internal
|
|
765
|
-
*/
|
|
766
|
-
|
|
767
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
768
|
-
|
|
769
|
-
// Important!
|
|
770
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
771
|
-
var ReactPropTypes = {
|
|
772
|
-
array: createPrimitiveTypeChecker('array'),
|
|
773
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
774
|
-
func: createPrimitiveTypeChecker('function'),
|
|
775
|
-
number: createPrimitiveTypeChecker('number'),
|
|
776
|
-
object: createPrimitiveTypeChecker('object'),
|
|
777
|
-
string: createPrimitiveTypeChecker('string'),
|
|
778
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
779
|
-
|
|
780
|
-
any: createAnyTypeChecker(),
|
|
781
|
-
arrayOf: createArrayOfTypeChecker,
|
|
782
|
-
element: createElementTypeChecker(),
|
|
783
|
-
elementType: createElementTypeTypeChecker(),
|
|
784
|
-
instanceOf: createInstanceTypeChecker,
|
|
785
|
-
node: createNodeChecker(),
|
|
786
|
-
objectOf: createObjectOfTypeChecker,
|
|
787
|
-
oneOf: createEnumTypeChecker,
|
|
788
|
-
oneOfType: createUnionTypeChecker,
|
|
789
|
-
shape: createShapeTypeChecker,
|
|
790
|
-
exact: createStrictShapeTypeChecker,
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
795
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
796
|
-
*/
|
|
797
|
-
/*eslint-disable no-self-compare*/
|
|
798
|
-
function is(x, y) {
|
|
799
|
-
// SameValue algorithm
|
|
800
|
-
if (x === y) {
|
|
801
|
-
// Steps 1-5, 7-10
|
|
802
|
-
// Steps 6.b-6.e: +0 != -0
|
|
803
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
804
|
-
} else {
|
|
805
|
-
// Step 6.a: NaN == NaN
|
|
806
|
-
return x !== x && y !== y;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
/*eslint-enable no-self-compare*/
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
813
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
814
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
815
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
816
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
817
|
-
*/
|
|
818
|
-
function PropTypeError(message) {
|
|
819
|
-
this.message = message;
|
|
820
|
-
this.stack = '';
|
|
821
|
-
}
|
|
822
|
-
// Make `instanceof Error` still work for returned errors.
|
|
823
|
-
PropTypeError.prototype = Error.prototype;
|
|
824
|
-
|
|
825
|
-
function createChainableTypeChecker(validate) {
|
|
826
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
827
|
-
var manualPropTypeCallCache = {};
|
|
828
|
-
var manualPropTypeWarningCount = 0;
|
|
829
|
-
}
|
|
830
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
831
|
-
componentName = componentName || ANONYMOUS;
|
|
832
|
-
propFullName = propFullName || propName;
|
|
833
|
-
|
|
834
|
-
if (secret !== ReactPropTypesSecret$1) {
|
|
835
|
-
if (throwOnDirectAccess) {
|
|
836
|
-
// New behavior only for users of `prop-types` package
|
|
837
|
-
var err = new Error(
|
|
838
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
839
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
840
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
841
|
-
);
|
|
842
|
-
err.name = 'Invariant Violation';
|
|
843
|
-
throw err;
|
|
844
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
845
|
-
// Old behavior for people using React.PropTypes
|
|
846
|
-
var cacheKey = componentName + ':' + propName;
|
|
847
|
-
if (
|
|
848
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
849
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
850
|
-
manualPropTypeWarningCount < 3
|
|
851
|
-
) {
|
|
852
|
-
printWarning(
|
|
853
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
854
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
855
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
856
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
857
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
858
|
-
);
|
|
859
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
860
|
-
manualPropTypeWarningCount++;
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
if (props[propName] == null) {
|
|
865
|
-
if (isRequired) {
|
|
866
|
-
if (props[propName] === null) {
|
|
867
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
868
|
-
}
|
|
869
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
870
|
-
}
|
|
871
|
-
return null;
|
|
872
|
-
} else {
|
|
873
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
878
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
879
|
-
|
|
880
|
-
return chainedCheckType;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
884
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
885
|
-
var propValue = props[propName];
|
|
886
|
-
var propType = getPropType(propValue);
|
|
887
|
-
if (propType !== expectedType) {
|
|
888
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
889
|
-
// check, but we can offer a more precise error message here rather than
|
|
890
|
-
// 'of type `object`'.
|
|
891
|
-
var preciseType = getPreciseType(propValue);
|
|
892
|
-
|
|
893
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
894
|
-
}
|
|
895
|
-
return null;
|
|
896
|
-
}
|
|
897
|
-
return createChainableTypeChecker(validate);
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
function createAnyTypeChecker() {
|
|
901
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
905
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
906
|
-
if (typeof typeChecker !== 'function') {
|
|
907
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
908
|
-
}
|
|
909
|
-
var propValue = props[propName];
|
|
910
|
-
if (!Array.isArray(propValue)) {
|
|
911
|
-
var propType = getPropType(propValue);
|
|
912
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
913
|
-
}
|
|
914
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
915
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
|
|
916
|
-
if (error instanceof Error) {
|
|
917
|
-
return error;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
return null;
|
|
921
|
-
}
|
|
922
|
-
return createChainableTypeChecker(validate);
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
function createElementTypeChecker() {
|
|
926
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
927
|
-
var propValue = props[propName];
|
|
928
|
-
if (!isValidElement(propValue)) {
|
|
929
|
-
var propType = getPropType(propValue);
|
|
930
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
931
|
-
}
|
|
932
|
-
return null;
|
|
933
|
-
}
|
|
934
|
-
return createChainableTypeChecker(validate);
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
function createElementTypeTypeChecker() {
|
|
938
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
939
|
-
var propValue = props[propName];
|
|
940
|
-
if (!ReactIs$1.isValidElementType(propValue)) {
|
|
941
|
-
var propType = getPropType(propValue);
|
|
942
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
943
|
-
}
|
|
944
|
-
return null;
|
|
945
|
-
}
|
|
946
|
-
return createChainableTypeChecker(validate);
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
950
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
951
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
952
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
953
|
-
var actualClassName = getClassName(props[propName]);
|
|
954
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
955
|
-
}
|
|
956
|
-
return null;
|
|
957
|
-
}
|
|
958
|
-
return createChainableTypeChecker(validate);
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
function createEnumTypeChecker(expectedValues) {
|
|
962
|
-
if (!Array.isArray(expectedValues)) {
|
|
963
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
964
|
-
if (arguments.length > 1) {
|
|
965
|
-
printWarning(
|
|
966
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
967
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
968
|
-
);
|
|
969
|
-
} else {
|
|
970
|
-
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
return emptyFunctionThatReturnsNull;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
977
|
-
var propValue = props[propName];
|
|
978
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
979
|
-
if (is(propValue, expectedValues[i])) {
|
|
980
|
-
return null;
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
985
|
-
var type = getPreciseType(value);
|
|
986
|
-
if (type === 'symbol') {
|
|
987
|
-
return String(value);
|
|
988
|
-
}
|
|
989
|
-
return value;
|
|
990
|
-
});
|
|
991
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
992
|
-
}
|
|
993
|
-
return createChainableTypeChecker(validate);
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
997
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
998
|
-
if (typeof typeChecker !== 'function') {
|
|
999
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
1000
|
-
}
|
|
1001
|
-
var propValue = props[propName];
|
|
1002
|
-
var propType = getPropType(propValue);
|
|
1003
|
-
if (propType !== 'object') {
|
|
1004
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
1005
|
-
}
|
|
1006
|
-
for (var key in propValue) {
|
|
1007
|
-
if (has(propValue, key)) {
|
|
1008
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
1009
|
-
if (error instanceof Error) {
|
|
1010
|
-
return error;
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
return null;
|
|
1015
|
-
}
|
|
1016
|
-
return createChainableTypeChecker(validate);
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
1020
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
1021
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
1022
|
-
return emptyFunctionThatReturnsNull;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1026
|
-
var checker = arrayOfTypeCheckers[i];
|
|
1027
|
-
if (typeof checker !== 'function') {
|
|
1028
|
-
printWarning(
|
|
1029
|
-
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
|
1030
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
1031
|
-
);
|
|
1032
|
-
return emptyFunctionThatReturnsNull;
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1037
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1038
|
-
var checker = arrayOfTypeCheckers[i];
|
|
1039
|
-
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
|
|
1040
|
-
return null;
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
1045
|
-
}
|
|
1046
|
-
return createChainableTypeChecker(validate);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
function createNodeChecker() {
|
|
1050
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1051
|
-
if (!isNode(props[propName])) {
|
|
1052
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
1053
|
-
}
|
|
1054
|
-
return null;
|
|
1055
|
-
}
|
|
1056
|
-
return createChainableTypeChecker(validate);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
1060
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1061
|
-
var propValue = props[propName];
|
|
1062
|
-
var propType = getPropType(propValue);
|
|
1063
|
-
if (propType !== 'object') {
|
|
1064
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1065
|
-
}
|
|
1066
|
-
for (var key in shapeTypes) {
|
|
1067
|
-
var checker = shapeTypes[key];
|
|
1068
|
-
if (!checker) {
|
|
1069
|
-
continue;
|
|
1070
|
-
}
|
|
1071
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
1072
|
-
if (error) {
|
|
1073
|
-
return error;
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
return null;
|
|
1077
|
-
}
|
|
1078
|
-
return createChainableTypeChecker(validate);
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
1082
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
1083
|
-
var propValue = props[propName];
|
|
1084
|
-
var propType = getPropType(propValue);
|
|
1085
|
-
if (propType !== 'object') {
|
|
1086
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
1087
|
-
}
|
|
1088
|
-
// We need to check all keys in case some are required but missing from
|
|
1089
|
-
// props.
|
|
1090
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
1091
|
-
for (var key in allKeys) {
|
|
1092
|
-
var checker = shapeTypes[key];
|
|
1093
|
-
if (!checker) {
|
|
1094
|
-
return new PropTypeError(
|
|
1095
|
-
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
1096
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1097
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1098
|
-
);
|
|
1099
|
-
}
|
|
1100
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
1101
|
-
if (error) {
|
|
1102
|
-
return error;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
return null;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
return createChainableTypeChecker(validate);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
function isNode(propValue) {
|
|
1112
|
-
switch (typeof propValue) {
|
|
1113
|
-
case 'number':
|
|
1114
|
-
case 'string':
|
|
1115
|
-
case 'undefined':
|
|
1116
|
-
return true;
|
|
1117
|
-
case 'boolean':
|
|
1118
|
-
return !propValue;
|
|
1119
|
-
case 'object':
|
|
1120
|
-
if (Array.isArray(propValue)) {
|
|
1121
|
-
return propValue.every(isNode);
|
|
1122
|
-
}
|
|
1123
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
1124
|
-
return true;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
1128
|
-
if (iteratorFn) {
|
|
1129
|
-
var iterator = iteratorFn.call(propValue);
|
|
1130
|
-
var step;
|
|
1131
|
-
if (iteratorFn !== propValue.entries) {
|
|
1132
|
-
while (!(step = iterator.next()).done) {
|
|
1133
|
-
if (!isNode(step.value)) {
|
|
1134
|
-
return false;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
} else {
|
|
1138
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
1139
|
-
while (!(step = iterator.next()).done) {
|
|
1140
|
-
var entry = step.value;
|
|
1141
|
-
if (entry) {
|
|
1142
|
-
if (!isNode(entry[1])) {
|
|
1143
|
-
return false;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
} else {
|
|
1149
|
-
return false;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
return true;
|
|
1153
|
-
default:
|
|
1154
|
-
return false;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
function isSymbol(propType, propValue) {
|
|
1159
|
-
// Native Symbol.
|
|
1160
|
-
if (propType === 'symbol') {
|
|
1161
|
-
return true;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
// falsy value can't be a Symbol
|
|
1165
|
-
if (!propValue) {
|
|
1166
|
-
return false;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
1170
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
1171
|
-
return true;
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
1175
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
1176
|
-
return true;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
return false;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
1183
|
-
function getPropType(propValue) {
|
|
1184
|
-
var propType = typeof propValue;
|
|
1185
|
-
if (Array.isArray(propValue)) {
|
|
1186
|
-
return 'array';
|
|
1187
|
-
}
|
|
1188
|
-
if (propValue instanceof RegExp) {
|
|
1189
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
1190
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
1191
|
-
// passes PropTypes.object.
|
|
1192
|
-
return 'object';
|
|
1193
|
-
}
|
|
1194
|
-
if (isSymbol(propType, propValue)) {
|
|
1195
|
-
return 'symbol';
|
|
1196
|
-
}
|
|
1197
|
-
return propType;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
1201
|
-
// See `createPrimitiveTypeChecker`.
|
|
1202
|
-
function getPreciseType(propValue) {
|
|
1203
|
-
if (typeof propValue === 'undefined' || propValue === null) {
|
|
1204
|
-
return '' + propValue;
|
|
1205
|
-
}
|
|
1206
|
-
var propType = getPropType(propValue);
|
|
1207
|
-
if (propType === 'object') {
|
|
1208
|
-
if (propValue instanceof Date) {
|
|
1209
|
-
return 'date';
|
|
1210
|
-
} else if (propValue instanceof RegExp) {
|
|
1211
|
-
return 'regexp';
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
return propType;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1218
|
-
// For example, "undefined" or "of type array"
|
|
1219
|
-
function getPostfixForTypeWarning(value) {
|
|
1220
|
-
var type = getPreciseType(value);
|
|
1221
|
-
switch (type) {
|
|
1222
|
-
case 'array':
|
|
1223
|
-
case 'object':
|
|
1224
|
-
return 'an ' + type;
|
|
1225
|
-
case 'boolean':
|
|
1226
|
-
case 'date':
|
|
1227
|
-
case 'regexp':
|
|
1228
|
-
return 'a ' + type;
|
|
1229
|
-
default:
|
|
1230
|
-
return type;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
// Returns class name of the object, if any.
|
|
1235
|
-
function getClassName(propValue) {
|
|
1236
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
1237
|
-
return ANONYMOUS;
|
|
1238
|
-
}
|
|
1239
|
-
return propValue.constructor.name;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
1243
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
1244
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1245
|
-
|
|
1246
|
-
return ReactPropTypes;
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
/**
|
|
1250
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1251
|
-
*
|
|
1252
|
-
* This source code is licensed under the MIT license found in the
|
|
1253
|
-
* LICENSE file in the root directory of this source tree.
|
|
1254
|
-
*/
|
|
1255
|
-
|
|
1256
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1257
|
-
|
|
1258
|
-
function emptyFunction() {}
|
|
1259
|
-
function emptyFunctionWithReset() {}
|
|
1260
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1261
|
-
|
|
1262
|
-
var factoryWithThrowingShims = function() {
|
|
1263
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1264
|
-
if (secret === ReactPropTypesSecret) {
|
|
1265
|
-
// It is still safe when called from React.
|
|
1266
|
-
return;
|
|
1267
|
-
}
|
|
1268
|
-
var err = new Error(
|
|
1269
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
1270
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
1271
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
1272
|
-
);
|
|
1273
|
-
err.name = 'Invariant Violation';
|
|
1274
|
-
throw err;
|
|
1275
|
-
} shim.isRequired = shim;
|
|
1276
|
-
function getShim() {
|
|
1277
|
-
return shim;
|
|
1278
|
-
} // Important!
|
|
1279
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1280
|
-
var ReactPropTypes = {
|
|
1281
|
-
array: shim,
|
|
1282
|
-
bool: shim,
|
|
1283
|
-
func: shim,
|
|
1284
|
-
number: shim,
|
|
1285
|
-
object: shim,
|
|
1286
|
-
string: shim,
|
|
1287
|
-
symbol: shim,
|
|
1288
|
-
|
|
1289
|
-
any: shim,
|
|
1290
|
-
arrayOf: getShim,
|
|
1291
|
-
element: shim,
|
|
1292
|
-
elementType: shim,
|
|
1293
|
-
instanceOf: getShim,
|
|
1294
|
-
node: shim,
|
|
1295
|
-
objectOf: getShim,
|
|
1296
|
-
oneOf: getShim,
|
|
1297
|
-
oneOfType: getShim,
|
|
1298
|
-
shape: getShim,
|
|
1299
|
-
exact: getShim,
|
|
1300
|
-
|
|
1301
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1302
|
-
resetWarningCache: emptyFunction
|
|
1303
|
-
};
|
|
1304
|
-
|
|
1305
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1306
|
-
|
|
1307
|
-
return ReactPropTypes;
|
|
1308
|
-
};
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1312
|
-
*
|
|
1313
|
-
* This source code is licensed under the MIT license found in the
|
|
1314
|
-
* LICENSE file in the root directory of this source tree.
|
|
1315
|
-
*/
|
|
263
|
+
var _path$10;
|
|
1316
264
|
|
|
1317
|
-
if (
|
|
1318
|
-
var ReactIs = reactIs.exports;
|
|
265
|
+
function _extends$1a() { _extends$1a = 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; }; return _extends$1a.apply(this, arguments); }
|
|
1319
266
|
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
267
|
+
function SvgVolumeDown(props) {
|
|
268
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1a({
|
|
269
|
+
viewBox: "0 0 16 16",
|
|
270
|
+
strokeLinecap: "round",
|
|
271
|
+
strokeLinejoin: "round",
|
|
272
|
+
stroke: "currentColor",
|
|
273
|
+
width: "1em",
|
|
274
|
+
height: "1em",
|
|
275
|
+
fill: "none"
|
|
276
|
+
}, props), _path$10 || (_path$10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
277
|
+
d: "M8.999 3.333L5.665 6H3v4h2.666L9 12.667V3.333zm3.026 2.307a3.333 3.333 0 010 4.713"
|
|
278
|
+
})));
|
|
1328
279
|
}
|
|
1329
280
|
|
|
1330
|
-
var
|
|
1331
|
-
|
|
1332
|
-
var responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};
|
|
1333
|
-
|
|
1334
|
-
function _typeof(obj) {
|
|
1335
|
-
"@babel/helpers - typeof";
|
|
281
|
+
var _path$$;
|
|
1336
282
|
|
|
1337
|
-
|
|
1338
|
-
_typeof = function _typeof(obj) {
|
|
1339
|
-
return typeof obj;
|
|
1340
|
-
};
|
|
1341
|
-
} else {
|
|
1342
|
-
_typeof = function _typeof(obj) {
|
|
1343
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1344
|
-
};
|
|
1345
|
-
}
|
|
283
|
+
function _extends$19() { _extends$19 = 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; }; return _extends$19.apply(this, arguments); }
|
|
1346
284
|
|
|
1347
|
-
|
|
285
|
+
function SvgVolumeMute(props) {
|
|
286
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$19({
|
|
287
|
+
viewBox: "0 0 16 16",
|
|
288
|
+
strokeLinecap: "round",
|
|
289
|
+
strokeLinejoin: "round",
|
|
290
|
+
stroke: "currentColor",
|
|
291
|
+
width: "1em",
|
|
292
|
+
height: "1em",
|
|
293
|
+
fill: "none"
|
|
294
|
+
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
295
|
+
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333z"
|
|
296
|
+
})));
|
|
1348
297
|
}
|
|
1349
298
|
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
var values = {
|
|
1353
|
-
xs: 0,
|
|
1354
|
-
sm: 600,
|
|
1355
|
-
md: 960,
|
|
1356
|
-
lg: 1280,
|
|
1357
|
-
xl: 1920
|
|
1358
|
-
};
|
|
1359
|
-
var defaultBreakpoints = {
|
|
1360
|
-
// Sorted ASC by size. That's important.
|
|
1361
|
-
// It can't be configured as it's used statically for propTypes.
|
|
1362
|
-
keys: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
1363
|
-
up: function up(key) {
|
|
1364
|
-
return "@media (min-width:".concat(values[key], "px)");
|
|
1365
|
-
}
|
|
1366
|
-
};
|
|
1367
|
-
function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
1368
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1369
|
-
if (!props.theme) {
|
|
1370
|
-
console.error('Material-UI: You are calling a style function without a theme value.');
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
if (Array.isArray(propValue)) {
|
|
1375
|
-
var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
|
|
1376
|
-
return propValue.reduce(function (acc, item, index) {
|
|
1377
|
-
acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
|
|
1378
|
-
return acc;
|
|
1379
|
-
}, {});
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
if (_typeof(propValue) === 'object') {
|
|
1383
|
-
var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
|
|
1384
|
-
|
|
1385
|
-
return Object.keys(propValue).reduce(function (acc, breakpoint) {
|
|
1386
|
-
acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
|
|
1387
|
-
return acc;
|
|
1388
|
-
}, {});
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
var output = styleFromPropValue(propValue);
|
|
1392
|
-
return output;
|
|
1393
|
-
}
|
|
299
|
+
var _path$_;
|
|
1394
300
|
|
|
1395
|
-
function
|
|
1396
|
-
if (!path || typeof path !== 'string') {
|
|
1397
|
-
return null;
|
|
1398
|
-
}
|
|
301
|
+
function _extends$18() { _extends$18 = 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; }; return _extends$18.apply(this, arguments); }
|
|
1399
302
|
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
303
|
+
function SvgVolumeOff(props) {
|
|
304
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$18({
|
|
305
|
+
viewBox: "0 0 16 16",
|
|
306
|
+
strokeLinecap: "round",
|
|
307
|
+
strokeLinejoin: "round",
|
|
308
|
+
stroke: "currentColor",
|
|
309
|
+
width: "1em",
|
|
310
|
+
height: "1em",
|
|
311
|
+
fill: "none"
|
|
312
|
+
}, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
313
|
+
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm8 2.667l-4 4m0-4l4 4"
|
|
314
|
+
})));
|
|
1403
315
|
}
|
|
1404
316
|
|
|
1405
|
-
|
|
1406
|
-
var prop = options.prop,
|
|
1407
|
-
_options$cssProperty = options.cssProperty,
|
|
1408
|
-
cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
|
|
1409
|
-
themeKey = options.themeKey,
|
|
1410
|
-
transform = options.transform;
|
|
1411
|
-
|
|
1412
|
-
var fn = function fn(props) {
|
|
1413
|
-
if (props[prop] == null) {
|
|
1414
|
-
return null;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
var propValue = props[prop];
|
|
1418
|
-
var theme = props.theme;
|
|
1419
|
-
var themeMapping = getPath(theme, themeKey) || {};
|
|
1420
|
-
|
|
1421
|
-
var styleFromPropValue = function styleFromPropValue(propValueFinal) {
|
|
1422
|
-
var value;
|
|
1423
|
-
|
|
1424
|
-
if (typeof themeMapping === 'function') {
|
|
1425
|
-
value = themeMapping(propValueFinal);
|
|
1426
|
-
} else if (Array.isArray(themeMapping)) {
|
|
1427
|
-
value = themeMapping[propValueFinal] || propValueFinal;
|
|
1428
|
-
} else {
|
|
1429
|
-
value = getPath(themeMapping, propValueFinal) || propValueFinal;
|
|
1430
|
-
|
|
1431
|
-
if (transform) {
|
|
1432
|
-
value = transform(value);
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
if (cssProperty === false) {
|
|
1437
|
-
return value;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
return _defineProperty({}, cssProperty, value);
|
|
1441
|
-
};
|
|
317
|
+
var _path$Z;
|
|
1442
318
|
|
|
1443
|
-
|
|
1444
|
-
};
|
|
319
|
+
function _extends$17() { _extends$17 = 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; }; return _extends$17.apply(this, arguments); }
|
|
1445
320
|
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
321
|
+
function SvgVolumeUp(props) {
|
|
322
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$17({
|
|
323
|
+
viewBox: "0 0 16 16",
|
|
324
|
+
strokeLinecap: "round",
|
|
325
|
+
strokeLinejoin: "round",
|
|
326
|
+
stroke: "currentColor",
|
|
327
|
+
width: "1em",
|
|
328
|
+
height: "1em",
|
|
329
|
+
fill: "none"
|
|
330
|
+
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
331
|
+
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm5.38-.046a6.667 6.667 0 010 9.426M10.36 5.64a3.333 3.333 0 010 4.713"
|
|
332
|
+
})));
|
|
1449
333
|
}
|
|
1450
334
|
|
|
1451
|
-
var gap = style({
|
|
1452
|
-
prop: 'gap',
|
|
1453
|
-
themeKey: 'spacing',
|
|
1454
|
-
});
|
|
1455
|
-
var useBoxStyles = core.makeStyles(function (theme) { return ({
|
|
1456
|
-
root: function (props) { return gap(__assign(__assign({}, props), { theme: theme })); },
|
|
1457
|
-
}); });
|
|
1458
|
-
|
|
1459
|
-
var Box = function (props) {
|
|
1460
|
-
var className = props.className; props.gap; var restProps = __rest(props, ["className", "gap"]);
|
|
1461
|
-
var root = useBoxStyles(props).root;
|
|
1462
|
-
return React__default['default'].createElement(core.Box, __assign({ className: classNames(root, className) }, restProps));
|
|
1463
|
-
};
|
|
1464
|
-
Box.displayName = 'Box';
|
|
1465
|
-
|
|
1466
335
|
var useIconStyles = core.makeStyles(function (_a) {
|
|
1467
336
|
var spacing = _a.spacing, palette = _a.palette;
|
|
1468
337
|
var getFontSize = function (_a) {
|
|
@@ -1499,6 +368,68 @@ var useIconStyles = core.makeStyles(function (_a) {
|
|
|
1499
368
|
};
|
|
1500
369
|
});
|
|
1501
370
|
|
|
371
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
372
|
+
|
|
373
|
+
var classnames = {exports: {}};
|
|
374
|
+
|
|
375
|
+
/*!
|
|
376
|
+
Copyright (c) 2018 Jed Watson.
|
|
377
|
+
Licensed under the MIT License (MIT), see
|
|
378
|
+
http://jedwatson.github.io/classnames
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
(function (module) {
|
|
382
|
+
/* global define */
|
|
383
|
+
|
|
384
|
+
(function () {
|
|
385
|
+
|
|
386
|
+
var hasOwn = {}.hasOwnProperty;
|
|
387
|
+
|
|
388
|
+
function classNames() {
|
|
389
|
+
var classes = [];
|
|
390
|
+
|
|
391
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
392
|
+
var arg = arguments[i];
|
|
393
|
+
if (!arg) continue;
|
|
394
|
+
|
|
395
|
+
var argType = typeof arg;
|
|
396
|
+
|
|
397
|
+
if (argType === 'string' || argType === 'number') {
|
|
398
|
+
classes.push(arg);
|
|
399
|
+
} else if (Array.isArray(arg)) {
|
|
400
|
+
if (arg.length) {
|
|
401
|
+
var inner = classNames.apply(null, arg);
|
|
402
|
+
if (inner) {
|
|
403
|
+
classes.push(inner);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
} else if (argType === 'object') {
|
|
407
|
+
if (arg.toString === Object.prototype.toString) {
|
|
408
|
+
for (var key in arg) {
|
|
409
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
410
|
+
classes.push(key);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
} else {
|
|
414
|
+
classes.push(arg.toString());
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
return classes.join(' ');
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if (module.exports) {
|
|
423
|
+
classNames.default = classNames;
|
|
424
|
+
module.exports = classNames;
|
|
425
|
+
} else {
|
|
426
|
+
window.classNames = classNames;
|
|
427
|
+
}
|
|
428
|
+
}());
|
|
429
|
+
}(classnames));
|
|
430
|
+
|
|
431
|
+
var classNames = classnames.exports;
|
|
432
|
+
|
|
1502
433
|
var iconStaticClassName = 'pop-icon';
|
|
1503
434
|
var Icon = function (props) {
|
|
1504
435
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
@@ -1583,11 +514,11 @@ var AUDIO_PLAYER_EVENT_TYPES;
|
|
|
1583
514
|
AUDIO_PLAYER_EVENT_TYPES["DURATION_CHANGE"] = "DURATION_CHANGE";
|
|
1584
515
|
AUDIO_PLAYER_EVENT_TYPES["SET_TIME"] = "SET_TIME";
|
|
1585
516
|
AUDIO_PLAYER_EVENT_TYPES["CAN_PLAY"] = "CAN_PLAY";
|
|
517
|
+
AUDIO_PLAYER_EVENT_TYPES["RESET"] = "RESET";
|
|
1586
518
|
})(AUDIO_PLAYER_EVENT_TYPES || (AUDIO_PLAYER_EVENT_TYPES = {}));
|
|
1587
519
|
var PLAYBACK_STATES;
|
|
1588
520
|
(function (PLAYBACK_STATES) {
|
|
1589
521
|
PLAYBACK_STATES["NONE"] = "NONE";
|
|
1590
|
-
PLAYBACK_STATES["PLAYABLE"] = "PLAYABLE";
|
|
1591
522
|
PLAYBACK_STATES["PAUSED"] = "PAUSED";
|
|
1592
523
|
PLAYBACK_STATES["PLAYING"] = "PLAYING";
|
|
1593
524
|
})(PLAYBACK_STATES || (PLAYBACK_STATES = {}));
|
|
@@ -1613,22 +544,38 @@ var initialAudioPlayerState = {
|
|
|
1613
544
|
volumeButtonLabel: CONTROL_LABELS.MUTE,
|
|
1614
545
|
},
|
|
1615
546
|
};
|
|
547
|
+
var getPlayback = function (_a) {
|
|
548
|
+
var audio = _a.current;
|
|
549
|
+
var playback = PLAYBACK_STATES.NONE;
|
|
550
|
+
if (audio) {
|
|
551
|
+
var paused = audio.paused, readyState = audio.readyState;
|
|
552
|
+
if (readyState === 0) {
|
|
553
|
+
playback = PLAYBACK_STATES.NONE;
|
|
554
|
+
}
|
|
555
|
+
else if (paused) {
|
|
556
|
+
playback = PLAYBACK_STATES.PAUSED;
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
playback = PLAYBACK_STATES.PLAYING;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return playback;
|
|
563
|
+
};
|
|
1616
564
|
var audioPlayerReducer = function (state, event) {
|
|
1617
565
|
var _a, _b;
|
|
1618
|
-
console.log(event.type);
|
|
1619
566
|
var audioRef = state.context.audioRef;
|
|
1620
567
|
var nextState = __assign({}, state);
|
|
1621
568
|
switch (state.playback) {
|
|
1622
569
|
case PLAYBACK_STATES.NONE:
|
|
1623
570
|
if (event.type === AUDIO_PLAYER_EVENT_TYPES.CAN_PLAY) {
|
|
1624
|
-
nextState.playback =
|
|
571
|
+
nextState.playback = getPlayback(audioRef);
|
|
1625
572
|
return nextState;
|
|
1626
573
|
}
|
|
1627
574
|
break;
|
|
1628
575
|
case PLAYBACK_STATES.PAUSED:
|
|
1629
576
|
if (event.type === AUDIO_PLAYER_EVENT_TYPES.TOGGLE_PLAYBACK) {
|
|
1630
577
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
|
1631
|
-
nextState.playback =
|
|
578
|
+
nextState.playback = getPlayback(audioRef);
|
|
1632
579
|
nextState.context.playbackButtonLabel = CONTROL_LABELS.PAUSE;
|
|
1633
580
|
return nextState;
|
|
1634
581
|
}
|
|
@@ -1636,12 +583,11 @@ var audioPlayerReducer = function (state, event) {
|
|
|
1636
583
|
case PLAYBACK_STATES.PLAYING:
|
|
1637
584
|
if (event.type === AUDIO_PLAYER_EVENT_TYPES.TOGGLE_PLAYBACK) {
|
|
1638
585
|
(_b = audioRef.current) === null || _b === void 0 ? void 0 : _b.pause();
|
|
1639
|
-
nextState.playback =
|
|
586
|
+
nextState.playback = getPlayback(audioRef);
|
|
1640
587
|
nextState.context.playbackButtonLabel = CONTROL_LABELS.PLAY;
|
|
1641
588
|
return nextState;
|
|
1642
589
|
}
|
|
1643
590
|
if (event.type === AUDIO_PLAYER_EVENT_TYPES.TIME_CHANGE) {
|
|
1644
|
-
// time change is managed by audioRef automatically, return state to force re-render so ui stays synced
|
|
1645
591
|
return nextState;
|
|
1646
592
|
}
|
|
1647
593
|
break;
|
|
@@ -1682,183 +628,17 @@ var audioPlayerReducer = function (state, event) {
|
|
|
1682
628
|
return nextState;
|
|
1683
629
|
}
|
|
1684
630
|
break;
|
|
631
|
+
case AUDIO_PLAYER_EVENT_TYPES.RESET:
|
|
632
|
+
if (audioRef.current) {
|
|
633
|
+
audioRef.current.currentTime = 0;
|
|
634
|
+
nextState.playback = getPlayback(audioRef);
|
|
635
|
+
return nextState;
|
|
636
|
+
}
|
|
637
|
+
break;
|
|
1685
638
|
}
|
|
1686
639
|
return state;
|
|
1687
640
|
};
|
|
1688
641
|
|
|
1689
|
-
var _path$3K;
|
|
1690
|
-
|
|
1691
|
-
function _extends$3$() { _extends$3$ = 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; }; return _extends$3$.apply(this, arguments); }
|
|
1692
|
-
|
|
1693
|
-
function SvgMore(props) {
|
|
1694
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3$({
|
|
1695
|
-
viewBox: "0 0 16 16",
|
|
1696
|
-
strokeLinecap: "round",
|
|
1697
|
-
strokeLinejoin: "round",
|
|
1698
|
-
stroke: "currentColor",
|
|
1699
|
-
width: "1em",
|
|
1700
|
-
height: "1em",
|
|
1701
|
-
fill: "none"
|
|
1702
|
-
}, props), _path$3K || (_path$3K = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1703
|
-
d: "M8 8.667a.667.667 0 100-1.334.667.667 0 000 1.334zM8 4a.667.667 0 100-1.333A.667.667 0 008 4zm0 9.333A.667.667 0 108 12a.667.667 0 000 1.333z"
|
|
1704
|
-
})));
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
var _path$2X;
|
|
1708
|
-
|
|
1709
|
-
function _extends$3b() { _extends$3b = 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; }; return _extends$3b.apply(this, arguments); }
|
|
1710
|
-
|
|
1711
|
-
function SvgChevronDown(props) {
|
|
1712
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3b({
|
|
1713
|
-
viewBox: "0 0 16 16",
|
|
1714
|
-
strokeLinecap: "round",
|
|
1715
|
-
strokeLinejoin: "round",
|
|
1716
|
-
stroke: "currentColor",
|
|
1717
|
-
width: "1em",
|
|
1718
|
-
height: "1em",
|
|
1719
|
-
fill: "none"
|
|
1720
|
-
}, props), _path$2X || (_path$2X = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1721
|
-
d: "M4 6l4 4 4-4"
|
|
1722
|
-
})));
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
var _path$2W;
|
|
1726
|
-
|
|
1727
|
-
function _extends$3a() { _extends$3a = 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; }; return _extends$3a.apply(this, arguments); }
|
|
1728
|
-
|
|
1729
|
-
function SvgChevronUp(props) {
|
|
1730
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3a({
|
|
1731
|
-
viewBox: "0 0 16 16",
|
|
1732
|
-
strokeLinecap: "round",
|
|
1733
|
-
strokeLinejoin: "round",
|
|
1734
|
-
stroke: "currentColor",
|
|
1735
|
-
width: "1em",
|
|
1736
|
-
height: "1em",
|
|
1737
|
-
fill: "none"
|
|
1738
|
-
}, props), _path$2W || (_path$2W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1739
|
-
d: "M12 10L8 6l-4 4"
|
|
1740
|
-
})));
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
var _path$1f;
|
|
1744
|
-
|
|
1745
|
-
function _extends$1p() { _extends$1p = 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; }; return _extends$1p.apply(this, arguments); }
|
|
1746
|
-
|
|
1747
|
-
function SvgPause(props) {
|
|
1748
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1p({
|
|
1749
|
-
viewBox: "0 0 16 16",
|
|
1750
|
-
strokeLinecap: "round",
|
|
1751
|
-
strokeLinejoin: "round",
|
|
1752
|
-
stroke: "currentColor",
|
|
1753
|
-
width: "1em",
|
|
1754
|
-
height: "1em",
|
|
1755
|
-
fill: "none"
|
|
1756
|
-
}, props), _path$1f || (_path$1f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1757
|
-
d: "M6.667 2.667H4v10.666h2.667V2.667zm5.333 0H9.333v10.666H12V2.667z"
|
|
1758
|
-
})));
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
var _path$1d;
|
|
1762
|
-
|
|
1763
|
-
function _extends$1n() { _extends$1n = 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; }; return _extends$1n.apply(this, arguments); }
|
|
1764
|
-
|
|
1765
|
-
function SvgPlay(props) {
|
|
1766
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1n({
|
|
1767
|
-
viewBox: "0 0 16 16",
|
|
1768
|
-
strokeLinecap: "round",
|
|
1769
|
-
strokeLinejoin: "round",
|
|
1770
|
-
stroke: "currentColor",
|
|
1771
|
-
width: "1em",
|
|
1772
|
-
height: "1em",
|
|
1773
|
-
fill: "none"
|
|
1774
|
-
}, props), _path$1d || (_path$1d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1775
|
-
d: "M3.333 2l9.334 6-9.334 6V2z"
|
|
1776
|
-
})));
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
var _path$10;
|
|
1780
|
-
|
|
1781
|
-
function _extends$1a() { _extends$1a = 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; }; return _extends$1a.apply(this, arguments); }
|
|
1782
|
-
|
|
1783
|
-
function SvgVolumeDown(props) {
|
|
1784
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1a({
|
|
1785
|
-
viewBox: "0 0 16 16",
|
|
1786
|
-
strokeLinecap: "round",
|
|
1787
|
-
strokeLinejoin: "round",
|
|
1788
|
-
stroke: "currentColor",
|
|
1789
|
-
width: "1em",
|
|
1790
|
-
height: "1em",
|
|
1791
|
-
fill: "none"
|
|
1792
|
-
}, props), _path$10 || (_path$10 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1793
|
-
d: "M8.999 3.333L5.665 6H3v4h2.666L9 12.667V3.333zm3.026 2.307a3.333 3.333 0 010 4.713"
|
|
1794
|
-
})));
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
var _path$$;
|
|
1798
|
-
|
|
1799
|
-
function _extends$19() { _extends$19 = 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; }; return _extends$19.apply(this, arguments); }
|
|
1800
|
-
|
|
1801
|
-
function SvgVolumeMute(props) {
|
|
1802
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$19({
|
|
1803
|
-
viewBox: "0 0 16 16",
|
|
1804
|
-
strokeLinecap: "round",
|
|
1805
|
-
strokeLinejoin: "round",
|
|
1806
|
-
stroke: "currentColor",
|
|
1807
|
-
width: "1em",
|
|
1808
|
-
height: "1em",
|
|
1809
|
-
fill: "none"
|
|
1810
|
-
}, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1811
|
-
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333z"
|
|
1812
|
-
})));
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
var _path$_;
|
|
1816
|
-
|
|
1817
|
-
function _extends$18() { _extends$18 = 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; }; return _extends$18.apply(this, arguments); }
|
|
1818
|
-
|
|
1819
|
-
function SvgVolumeOff(props) {
|
|
1820
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$18({
|
|
1821
|
-
viewBox: "0 0 16 16",
|
|
1822
|
-
strokeLinecap: "round",
|
|
1823
|
-
strokeLinejoin: "round",
|
|
1824
|
-
stroke: "currentColor",
|
|
1825
|
-
width: "1em",
|
|
1826
|
-
height: "1em",
|
|
1827
|
-
fill: "none"
|
|
1828
|
-
}, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1829
|
-
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm8 2.667l-4 4m0-4l4 4"
|
|
1830
|
-
})));
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
var _path$Z;
|
|
1834
|
-
|
|
1835
|
-
function _extends$17() { _extends$17 = 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; }; return _extends$17.apply(this, arguments); }
|
|
1836
|
-
|
|
1837
|
-
function SvgVolumeUp(props) {
|
|
1838
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$17({
|
|
1839
|
-
viewBox: "0 0 16 16",
|
|
1840
|
-
strokeLinecap: "round",
|
|
1841
|
-
strokeLinejoin: "round",
|
|
1842
|
-
stroke: "currentColor",
|
|
1843
|
-
width: "1em",
|
|
1844
|
-
height: "1em",
|
|
1845
|
-
fill: "none"
|
|
1846
|
-
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1847
|
-
d: "M7.333 3.333L4 6H1.333v4H4l3.333 2.667V3.333zm5.38-.046a6.667 6.667 0 010 9.426M10.36 5.64a3.333 3.333 0 010 4.713"
|
|
1848
|
-
})));
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
var usePlaybackIcon = function (state) {
|
|
1852
|
-
var _a;
|
|
1853
|
-
var options = (_a = {},
|
|
1854
|
-
_a[PLAYBACK_STATES.PAUSED] = SvgPlay,
|
|
1855
|
-
_a[PLAYBACK_STATES.PLAYING] = SvgPause,
|
|
1856
|
-
_a[PLAYBACK_STATES.NONE] = SvgPlay,
|
|
1857
|
-
_a[PLAYBACK_STATES.PLAYABLE] = SvgPlay,
|
|
1858
|
-
_a);
|
|
1859
|
-
return options[state.playback];
|
|
1860
|
-
};
|
|
1861
|
-
|
|
1862
642
|
var useVolumeIcon = function (state) {
|
|
1863
643
|
var volumeIcon = SvgVolumeUp;
|
|
1864
644
|
if (state.context.volume >= 0.5) {
|
|
@@ -1890,7 +670,7 @@ var formatTime = function (time, remaning) {
|
|
|
1890
670
|
};
|
|
1891
671
|
|
|
1892
672
|
var setupAudioRef = function (config) { return function () {
|
|
1893
|
-
var _a, _b, _c;
|
|
673
|
+
var _a, _b, _c, _d;
|
|
1894
674
|
var audioRef = config.audioRef, send = config.send;
|
|
1895
675
|
var handleDurationChange = function (event) {
|
|
1896
676
|
var duration = event.target.duration;
|
|
@@ -1903,35 +683,41 @@ var setupAudioRef = function (config) { return function () {
|
|
|
1903
683
|
var handleCanPlay = function () {
|
|
1904
684
|
send({ type: AUDIO_PLAYER_EVENT_TYPES.CAN_PLAY });
|
|
1905
685
|
};
|
|
686
|
+
var handleEnded = function () {
|
|
687
|
+
send({ type: AUDIO_PLAYER_EVENT_TYPES.RESET });
|
|
688
|
+
};
|
|
1906
689
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('durationchange', handleDurationChange);
|
|
1907
690
|
(_b = audioRef.current) === null || _b === void 0 ? void 0 : _b.addEventListener('timeupdate', handleTimeUpdate);
|
|
1908
691
|
(_c = audioRef.current) === null || _c === void 0 ? void 0 : _c.addEventListener('canplay', handleCanPlay);
|
|
692
|
+
(_d = audioRef.current) === null || _d === void 0 ? void 0 : _d.addEventListener('ended', handleEnded);
|
|
1909
693
|
return function () {
|
|
1910
|
-
var _a, _b, _c;
|
|
694
|
+
var _a, _b, _c, _d;
|
|
1911
695
|
(_a = audioRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('durationchange', handleDurationChange);
|
|
1912
696
|
(_b = audioRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('timeupdate', handleTimeUpdate);
|
|
1913
697
|
(_c = audioRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('canplay', handleCanPlay);
|
|
698
|
+
(_d = audioRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('ended', handleEnded);
|
|
1914
699
|
};
|
|
1915
700
|
}; };
|
|
1916
701
|
|
|
1917
702
|
var AudioPlayer = function (props) {
|
|
1918
|
-
var _a, _b, _c, _d;
|
|
703
|
+
var _a, _b, _c, _d, _f;
|
|
1919
704
|
var src = props.src;
|
|
1920
705
|
var volumeRef = React.useRef(null);
|
|
1921
706
|
var audioRef = React.useRef(null);
|
|
1922
|
-
var
|
|
1923
|
-
var _g = React.
|
|
707
|
+
var spacing = core.useTheme().spacing;
|
|
708
|
+
var _g = React.useState(false), disableRipple = _g[0], setDisableRipple = _g[1];
|
|
709
|
+
var _h = React.useReducer(audioPlayerReducer, __assign(__assign({}, initialAudioPlayerState), { context: __assign(__assign({}, initialAudioPlayerState.context), { audioRef: audioRef }) })), state = _h[0], send = _h[1];
|
|
1924
710
|
React.useEffect(setupAudioRef({ audioRef: audioRef, send: send }), [audioRef]);
|
|
1925
|
-
var PlaybackIcon =
|
|
1926
|
-
var VolumeIcon = useVolumeIcon(state);
|
|
711
|
+
var PlaybackIcon = state.playback !== PLAYBACK_STATES.PAUSED ? SvgPause : SvgPlay;
|
|
712
|
+
var VolumeIcon = React.useMemo(function () { return useVolumeIcon(state); }, [state.context.volume, (_a = state.context.audioRef.current) === null || _a === void 0 ? void 0 : _a.muted]);
|
|
1927
713
|
var togglePlayback = function () { return send({ type: AUDIO_PLAYER_EVENT_TYPES.TOGGLE_PLAYBACK }); };
|
|
1928
714
|
var toggleVolumeControl = function () { return send({ type: AUDIO_PLAYER_EVENT_TYPES.TOGGLE_VOLUME_CONTROL }); };
|
|
1929
715
|
var toggleMute = function () { return send({ type: AUDIO_PLAYER_EVENT_TYPES.TOGGLE_MUTE }); };
|
|
1930
716
|
var setTime = function (_e, time) { return send({ type: AUDIO_PLAYER_EVENT_TYPES.SET_TIME, context: { time: time } }); };
|
|
1931
717
|
var setVolume = function (_e, volume) { return send({ type: AUDIO_PLAYER_EVENT_TYPES.VOLUME_CHANGE, context: { volume: volume } }); };
|
|
1932
|
-
return (React__default['default'].createElement(Box, { display: "flex", alignItems: "center",
|
|
718
|
+
return (React__default['default'].createElement(core.Box, { display: "flex", alignItems: "center", gridGap: spacing(1) },
|
|
1933
719
|
React__default['default'].createElement("audio", { ref: audioRef, src: src }),
|
|
1934
|
-
React__default['default'].createElement(Box, null,
|
|
720
|
+
React__default['default'].createElement(core.Box, null,
|
|
1935
721
|
React__default['default'].createElement(IconButton, { "aria-label": state.context.playbackButtonLabel, disabled: state.playback === PLAYBACK_STATES.NONE, onClick: togglePlayback },
|
|
1936
722
|
React__default['default'].createElement(Icon, { icon: PlaybackIcon })),
|
|
1937
723
|
React__default['default'].createElement(IconButton, { "aria-label": state.context.volumeButtonLabel, ref: volumeRef, onClick: toggleMute, onMouseEnter: toggleVolumeControl, onMouseLeave: toggleVolumeControl, disableRipple: disableRipple },
|
|
@@ -1940,15 +726,15 @@ var AudioPlayer = function (props) {
|
|
|
1940
726
|
var TransitionProps = _a.TransitionProps;
|
|
1941
727
|
return (React__default['default'].createElement(core.Grow, __assign({}, TransitionProps),
|
|
1942
728
|
React__default['default'].createElement(Paper, { elevation: 1 },
|
|
1943
|
-
React__default['default'].createElement(Box, { py: 1, height: 80 },
|
|
729
|
+
React__default['default'].createElement(core.Box, { py: 1, height: 80 },
|
|
1944
730
|
React__default['default'].createElement(core.Slider, { color: "secondary", orientation: "vertical", value: state.context.volume, onChange: setVolume, max: 1, step: 0.01 })))));
|
|
1945
731
|
}))),
|
|
1946
|
-
React__default['default'].createElement(Box, { display: "flex", flexGrow: 1, alignItems: "center",
|
|
1947
|
-
React__default['default'].createElement(Box, { flexBasis: 60 },
|
|
1948
|
-
React__default['default'].createElement(Typography, null, formatTime(((
|
|
1949
|
-
React__default['default'].createElement(core.Slider, { color: "secondary", value: ((
|
|
1950
|
-
React__default['default'].createElement(Box, { flexBasis: 60, textAlign: "end" },
|
|
1951
|
-
React__default['default'].createElement(Typography, null, formatTime(((
|
|
732
|
+
React__default['default'].createElement(core.Box, { display: "flex", flexGrow: 1, alignItems: "center", gridGap: spacing(1) },
|
|
733
|
+
React__default['default'].createElement(core.Box, { flexBasis: 60, flexShrink: 0 },
|
|
734
|
+
React__default['default'].createElement(Typography, null, formatTime(((_b = state.context.audioRef.current) === null || _b === void 0 ? void 0 : _b.currentTime) || 0))),
|
|
735
|
+
React__default['default'].createElement(core.Slider, { color: "secondary", value: ((_c = state.context.audioRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) || 0, max: ((_d = state.context.audioRef.current) === null || _d === void 0 ? void 0 : _d.duration) || 1, onChange: setTime, disabled: state.playback === PLAYBACK_STATES.NONE }),
|
|
736
|
+
React__default['default'].createElement(core.Box, { flexBasis: 60, flexShrink: 0, textAlign: "end" },
|
|
737
|
+
React__default['default'].createElement(Typography, null, formatTime(((_f = state.context.audioRef.current) === null || _f === void 0 ? void 0 : _f.duration) || 0))))));
|
|
1952
738
|
};
|
|
1953
739
|
|
|
1954
740
|
var LoadingStatus;
|
|
@@ -2158,10 +944,10 @@ var CollapsibleText = function (props) {
|
|
|
2158
944
|
};
|
|
2159
945
|
}, []);
|
|
2160
946
|
return (React__default['default'].createElement(React.Fragment, null,
|
|
2161
|
-
React__default['default'].createElement(Box, { position: "relative", overflow: "hidden" },
|
|
947
|
+
React__default['default'].createElement(core.Box, { position: "relative", overflow: "hidden" },
|
|
2162
948
|
React__default['default'].createElement(Collapse__default['default'], { in: open, collapsedSize: collapsedSize + 'rem' },
|
|
2163
949
|
React__default['default'].createElement(Typography, { ref: typographyRef, variant: typographyVariant }, text)),
|
|
2164
|
-
collapsible && !open && React__default['default'].createElement(Box, { className: classes.overlay }))));
|
|
950
|
+
collapsible && !open && React__default['default'].createElement(core.Box, { className: classes.overlay }))));
|
|
2165
951
|
};
|
|
2166
952
|
CollapsibleText.defaultProps = {
|
|
2167
953
|
previewLines: 2,
|
|
@@ -2217,11 +1003,11 @@ var Divider = function (props) {
|
|
|
2217
1003
|
var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
|
|
2218
1004
|
var classes = useStyles(props);
|
|
2219
1005
|
var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
|
|
2220
|
-
return (React__default['default'].createElement(Box, { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
|
|
2221
|
-
React__default['default'].createElement(Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
|
|
1006
|
+
return (React__default['default'].createElement(core.Box, { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
|
|
1007
|
+
React__default['default'].createElement(core.Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
|
|
2222
1008
|
text && (React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
2223
1009
|
React__default['default'].createElement(Typography, __assign({ className: classes.textRoot }, TypographyProps), text),
|
|
2224
|
-
React__default['default'].createElement(Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset })))));
|
|
1010
|
+
React__default['default'].createElement(core.Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset })))));
|
|
2225
1011
|
};
|
|
2226
1012
|
Divider.displayName = 'Divider';
|
|
2227
1013
|
Divider.defaultProps = {
|
|
@@ -2270,7 +1056,7 @@ Link.displayName = 'Link';
|
|
|
2270
1056
|
|
|
2271
1057
|
var PaperContent = function (props) {
|
|
2272
1058
|
var children = props.children;
|
|
2273
|
-
return React__default['default'].createElement(Box, { padding: 4 }, children);
|
|
1059
|
+
return React__default['default'].createElement(core.Box, { padding: 4 }, children);
|
|
2274
1060
|
};
|
|
2275
1061
|
|
|
2276
1062
|
var Radio = React.forwardRef(function (props, ref) {
|
|
@@ -2308,7 +1094,7 @@ var useSplitInputStyles = styles.makeStyles(function () { return ({
|
|
|
2308
1094
|
var SplitInput = function (props) {
|
|
2309
1095
|
var TextFieldProps = props.TextFieldProps, ButtonProps = props.ButtonProps, color = props.color, onChange = props.onChange, onClick = props.onClick;
|
|
2310
1096
|
var classes = useSplitInputStyles(props);
|
|
2311
|
-
return (React__default['default'].createElement(Box, { display: "flex" },
|
|
1097
|
+
return (React__default['default'].createElement(core.Box, { display: "flex" },
|
|
2312
1098
|
React__default['default'].createElement(TextField__default['default'], __assign({ classes: { root: classes.textfield }, InputProps: { classes: { root: classes.input, focused: classes.focused } }, color: color, variant: "outlined", onChange: onChange }, TextFieldProps)),
|
|
2313
1099
|
React__default['default'].createElement(Button, __assign({ classes: { root: classes.button }, disableElevation: true, color: color, variant: "contained", onClick: onClick }, ButtonProps), "Submit")));
|
|
2314
1100
|
};
|
|
@@ -6925,7 +5711,7 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
6925
5711
|
}
|
|
6926
5712
|
|
|
6927
5713
|
var TableFooter = function (props) {
|
|
6928
|
-
return (React__default['default'].createElement(Box, { display: "flex", justifyContent: "center", alignItems: "end", paddingTop: 3, paddingBottom: 4, flexGrow: 1 }, props.children));
|
|
5714
|
+
return (React__default['default'].createElement(core.Box, { display: "flex", justifyContent: "center", alignItems: "end", paddingTop: 3, paddingBottom: 4, flexGrow: 1 }, props.children));
|
|
6929
5715
|
};
|
|
6930
5716
|
|
|
6931
5717
|
var TableHeader = function (props) {
|
|
@@ -6968,12 +5754,12 @@ var useTableHeaderCellStyles = core.makeStyles(function (theme) { return ({
|
|
|
6968
5754
|
var TableHeaderCell = function (props) {
|
|
6969
5755
|
var children = props.children, column = props.column; props.tableProps; var restProps = __rest(props, ["children", "column", "tableProps"]);
|
|
6970
5756
|
var root = useTableHeaderCellStyles(props).root;
|
|
6971
|
-
var
|
|
5757
|
+
var _a = core.useTheme(), palette = _a.palette, spacing = _a.spacing;
|
|
6972
5758
|
//@ts-expect-error @types/react-table issue
|
|
6973
5759
|
var canSort = column.canSort, isSorted = column.isSorted, isSortedDesc = column.isSortedDesc, isActionColumn = column.isActionColumn;
|
|
6974
5760
|
var showSortIndicator = canSort && !isActionColumn;
|
|
6975
5761
|
return (React__default['default'].createElement("th", __assign({ className: root }, restProps),
|
|
6976
|
-
React__default['default'].createElement(Box, { display: "flex", alignItems: "center",
|
|
5762
|
+
React__default['default'].createElement(core.Box, { display: "flex", alignItems: "center", gridGap: spacing(1) },
|
|
6977
5763
|
children,
|
|
6978
5764
|
showSortIndicator && (React__default['default'].createElement(Icon, { icon: isSortedDesc ? SvgChevronDown : SvgChevronUp, color: isSorted ? palette.text.primary : palette.text.disabled, size: "large" })))));
|
|
6979
5765
|
};
|
|
@@ -7030,14 +5816,16 @@ var useTableStyles = core.makeStyles(function (_a) {
|
|
|
7030
5816
|
},
|
|
7031
5817
|
tableWrap: function () { return ({
|
|
7032
5818
|
maxWidth: '100%',
|
|
7033
|
-
overflowX: '
|
|
5819
|
+
overflowX: 'auto',
|
|
7034
5820
|
overflowY: 'hidden',
|
|
7035
5821
|
}); },
|
|
7036
5822
|
});
|
|
7037
5823
|
});
|
|
7038
5824
|
|
|
7039
5825
|
var TableActionsCell = function (props) {
|
|
7040
|
-
var _a = props.actions, primary = _a.primary, secondary = _a.secondary,
|
|
5826
|
+
var _a = props.actions, primary = _a.primary, secondary = _a.secondary, intermediate = __rest(_a, ["primary", "secondary"]);
|
|
5827
|
+
var tertiary = intermediate.tertiary, restActions = __rest(intermediate, ["tertiary"]);
|
|
5828
|
+
var overflow = Object.keys(props.actions).length > 3;
|
|
7041
5829
|
var _b = React__default['default'].useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
7042
5830
|
var openMenu = function (event) {
|
|
7043
5831
|
setAnchorEl(event.currentTarget);
|
|
@@ -7049,15 +5837,19 @@ var TableActionsCell = function (props) {
|
|
|
7049
5837
|
action(props.cell);
|
|
7050
5838
|
closeMenu();
|
|
7051
5839
|
};
|
|
7052
|
-
return (React__default['default'].createElement(Box, { display: "flex" },
|
|
5840
|
+
return (React__default['default'].createElement(core.Box, { display: "flex" },
|
|
7053
5841
|
primary && primary.icon && (React__default['default'].createElement(IconButton, { size: "small", onClick: function () { return primary.action(props.cell); } },
|
|
7054
5842
|
React__default['default'].createElement(Icon, { icon: primary.icon }))),
|
|
7055
5843
|
secondary && secondary.icon && (React__default['default'].createElement(IconButton, { size: "small", onClick: function () { return secondary.action(props.cell); } },
|
|
7056
5844
|
React__default['default'].createElement(Icon, { icon: secondary.icon }))),
|
|
7057
|
-
|
|
5845
|
+
!overflow && tertiary && tertiary.icon && (React__default['default'].createElement(IconButton, { size: "small", onClick: function () { return tertiary.action(props.cell); } },
|
|
5846
|
+
React__default['default'].createElement(Icon, { icon: tertiary.icon }))),
|
|
5847
|
+
overflow && restActions && (React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
7058
5848
|
React__default['default'].createElement(IconButton, { size: "small", onClick: openMenu },
|
|
7059
5849
|
React__default['default'].createElement(Icon, { icon: SvgMore })),
|
|
7060
|
-
React__default['default'].createElement(Menu__default['default'], { anchorEl: anchorEl, open: Boolean(anchorEl), onClose: closeMenu }, Object.values(
|
|
5850
|
+
React__default['default'].createElement(Menu__default['default'], { anchorEl: anchorEl, open: Boolean(anchorEl), onClose: closeMenu }, Object.values(__assign({ tertiary: tertiary }, restActions))
|
|
5851
|
+
.filter(function (value) { return value; })
|
|
5852
|
+
.map(function (_a, i) {
|
|
7061
5853
|
var label = _a.label, action = _a.action;
|
|
7062
5854
|
return (React__default['default'].createElement(MenuItem__default['default'], { key: i, onClick: function () { return handleItemClick(action); } }, label));
|
|
7063
5855
|
}))))));
|
|
@@ -7082,7 +5874,7 @@ var makeColumns = function (config) {
|
|
|
7082
5874
|
/* eslint-disable react/jsx-key */
|
|
7083
5875
|
var Table = function (props) {
|
|
7084
5876
|
var actionColumnId = 'table-actions-column';
|
|
7085
|
-
var rawColumns = props.columns, data = props.data, actions = props.actions, sortable = props.sortable, emptyMessage = props.emptyMessage, EmptyImage = props.EmptyImage, isLoading = props.loading;
|
|
5877
|
+
var rawColumns = props.columns, data = props.data, actions = props.actions, sortable = props.sortable, emptyMessage = props.emptyMessage, EmptyImage = props.EmptyImage, isLoading = props.loading, enableMinHeight = props.enableMinHeight;
|
|
7086
5878
|
var classes = useTableStyles(props);
|
|
7087
5879
|
var columns = React.useMemo(function () { return makeColumns({ columns: rawColumns, actions: actions, actionColumnId: actionColumnId }); }, [rawColumns, actions]);
|
|
7088
5880
|
// @ts-expect-error @types/react-table issue
|
|
@@ -7094,8 +5886,8 @@ var Table = function (props) {
|
|
|
7094
5886
|
var handlePagination = function (_e, pageNumber) {
|
|
7095
5887
|
gotoPage(pageNumber - 1);
|
|
7096
5888
|
};
|
|
7097
|
-
return (React__default['default'].createElement(Box, { className: classes.root, minHeight:
|
|
7098
|
-
React__default['default'].createElement(Box, { className: classes.tableWrap },
|
|
5889
|
+
return (React__default['default'].createElement(core.Box, { className: classes.root, minHeight: (isLoading || isEmpty) && enableMinHeight ? 618 : 'unset' },
|
|
5890
|
+
React__default['default'].createElement(core.Box, { className: classes.tableWrap, minHeight: page.length > 0 && !isLoading && enableMinHeight ? 618 : 'unset' },
|
|
7099
5891
|
React__default['default'].createElement("table", __assign({ className: classes.table }, getTableProps()),
|
|
7100
5892
|
React__default['default'].createElement(TableHeader, null, headerGroups.map(function (headerGroup) { return (React__default['default'].createElement(TableHeaderRow, __assign({}, headerGroup.getHeaderGroupProps()), headerGroup.headers.map(function (column) { return (React__default['default'].createElement(TableHeaderCell
|
|
7101
5893
|
// @ts-expect-error @types/react-table issue
|
|
@@ -7104,16 +5896,17 @@ var Table = function (props) {
|
|
|
7104
5896
|
prepareRow(row);
|
|
7105
5897
|
return (React__default['default'].createElement(TableRow, __assign({}, row.getRowProps()), row.cells.map(function (cell) { return (React__default['default'].createElement(TableCell, __assign({}, cell.getCellProps()), cell.render('Cell'))); })));
|
|
7106
5898
|
}))))),
|
|
7107
|
-
isEmpty && (React__default['default'].createElement(Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 2, flexGrow: 1 },
|
|
5899
|
+
isEmpty && (React__default['default'].createElement(core.Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 2, flexGrow: 1 },
|
|
7108
5900
|
EmptyImage && EmptyImage(),
|
|
7109
5901
|
React__default['default'].createElement(Typography, null, emptyMessage))),
|
|
7110
|
-
isLoading && (React__default['default'].createElement(Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 2, flexGrow: 1 },
|
|
5902
|
+
isLoading && (React__default['default'].createElement(core.Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 2, flexGrow: 1 },
|
|
7111
5903
|
React__default['default'].createElement(CircularProgress__default['default'], { size: 80, color: "inherit" }))),
|
|
7112
5904
|
isPaginated && !isLoading && (React__default['default'].createElement(TableFooter, null,
|
|
7113
5905
|
React__default['default'].createElement(lab.Pagination, { count: pageCount, page: state.pageIndex + 1, onChange: handlePagination })))));
|
|
7114
5906
|
};
|
|
7115
5907
|
Table.defaultProps = {
|
|
7116
5908
|
emptyMessage: 'No results.',
|
|
5909
|
+
enableMinHeight: true,
|
|
7117
5910
|
};
|
|
7118
5911
|
|
|
7119
5912
|
var useToggleButtonStyles = styles.makeStyles(function (theme) { return ({
|
|
@@ -7224,6 +6017,12 @@ Object.defineProperty(exports, 'AccordionSummary', {
|
|
|
7224
6017
|
return core.AccordionSummary;
|
|
7225
6018
|
}
|
|
7226
6019
|
});
|
|
6020
|
+
Object.defineProperty(exports, 'Box', {
|
|
6021
|
+
enumerable: true,
|
|
6022
|
+
get: function () {
|
|
6023
|
+
return core.Box;
|
|
6024
|
+
}
|
|
6025
|
+
});
|
|
7227
6026
|
Object.defineProperty(exports, 'Breadcrumbs', {
|
|
7228
6027
|
enumerable: true,
|
|
7229
6028
|
get: function () {
|
|
@@ -7592,7 +6391,6 @@ Object.defineProperty(exports, 'Tabs', {
|
|
|
7592
6391
|
});
|
|
7593
6392
|
exports.AudioPlayer = AudioPlayer;
|
|
7594
6393
|
exports.Avatar = Avatar;
|
|
7595
|
-
exports.Box = Box;
|
|
7596
6394
|
exports.Button = Button;
|
|
7597
6395
|
exports.Checkbox = Checkbox;
|
|
7598
6396
|
exports.CollapsibleText = CollapsibleText;
|