|
- webpackJsonp([20],{
-
- /***/ 1102:
- /***/ (function(module, exports) {
-
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
-
- module.exports = baseProperty;
-
-
- /***/ }),
-
- /***/ 1120:
- /***/ (function(module, exports, __webpack_require__) {
-
- var toFinite = __webpack_require__(1144);
-
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
-
- return result === result ? (remainder ? result - remainder : result) : 0;
- }
-
- module.exports = toInteger;
-
-
- /***/ }),
-
- /***/ 1144:
- /***/ (function(module, exports, __webpack_require__) {
-
- var toNumber = __webpack_require__(322);
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_INTEGER = 1.7976931348623157e+308;
-
- /**
- * Converts `value` to a finite number.
- *
- * @static
- * @memberOf _
- * @since 4.12.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted number.
- * @example
- *
- * _.toFinite(3.2);
- * // => 3.2
- *
- * _.toFinite(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toFinite(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toFinite('3.2');
- * // => 3.2
- */
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber(value);
- if (value === INFINITY || value === -INFINITY) {
- var sign = (value < 0 ? -1 : 1);
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
-
- module.exports = toFinite;
-
-
- /***/ }),
-
- /***/ 1489:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- __webpack_require__(29);
-
- __webpack_require__(1546);
- //# sourceMappingURL=css.js.map
-
-
- /***/ }),
-
- /***/ 1490:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = void 0;
-
- var React = _interopRequireWildcard(__webpack_require__(0));
-
- var _rcDrawer = _interopRequireDefault(__webpack_require__(1548));
-
- var _createReactContext = _interopRequireDefault(__webpack_require__(301));
-
- var _classnames = _interopRequireDefault(__webpack_require__(3));
-
- var _omit = _interopRequireDefault(__webpack_require__(47));
-
- var _warning = _interopRequireDefault(__webpack_require__(43));
-
- var _icon = _interopRequireDefault(__webpack_require__(26));
-
- var _context = __webpack_require__(337);
-
- var _type = __webpack_require__(72);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
-
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
-
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
-
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
-
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
-
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
-
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
-
- var __rest = void 0 && (void 0).__rest || function (s, e) {
- var t = {};
-
- for (var p in s) {
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
- }
-
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
- }
- return t;
- };
-
- var DrawerContext = (0, _createReactContext["default"])(null);
- var PlacementTypes = (0, _type.tuple)('top', 'right', 'bottom', 'left');
-
- var Drawer =
- /*#__PURE__*/
- function (_React$Component) {
- _inherits(Drawer, _React$Component);
-
- function Drawer() {
- var _this;
-
- _classCallCheck(this, Drawer);
-
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Drawer).apply(this, arguments));
- _this.state = {
- push: false
- };
-
- _this.push = function () {
- _this.setState({
- push: true
- });
- };
-
- _this.pull = function () {
- _this.setState({
- push: false
- });
- };
-
- _this.onDestroyTransitionEnd = function () {
- var isDestroyOnClose = _this.getDestroyOnClose();
-
- if (!isDestroyOnClose) {
- return;
- }
-
- if (!_this.props.visible) {
- _this.destroyClose = true;
-
- _this.forceUpdate();
- }
- };
-
- _this.getDestroyOnClose = function () {
- return _this.props.destroyOnClose && !_this.props.visible;
- }; // get drawer push width or height
-
-
- _this.getPushTransform = function (placement) {
- if (placement === 'left' || placement === 'right') {
- return "translateX(".concat(placement === 'left' ? 180 : -180, "px)");
- }
-
- if (placement === 'top' || placement === 'bottom') {
- return "translateY(".concat(placement === 'top' ? 180 : -180, "px)");
- }
- };
-
- _this.getRcDrawerStyle = function () {
- var _this$props = _this.props,
- zIndex = _this$props.zIndex,
- placement = _this$props.placement,
- style = _this$props.style;
- var push = _this.state.push;
- return _extends({
- zIndex: zIndex,
- transform: push ? _this.getPushTransform(placement) : undefined
- }, style);
- }; // render drawer body dom
-
-
- _this.renderBody = function () {
- var _this$props2 = _this.props,
- bodyStyle = _this$props2.bodyStyle,
- drawerStyle = _this$props2.drawerStyle,
- prefixCls = _this$props2.prefixCls,
- visible = _this$props2.visible;
-
- if (_this.destroyClose && !visible) {
- return null;
- }
-
- _this.destroyClose = false;
- var containerStyle = {};
-
- var isDestroyOnClose = _this.getDestroyOnClose();
-
- if (isDestroyOnClose) {
- // Increase the opacity transition, delete children after closing.
- containerStyle.opacity = 0;
- containerStyle.transition = 'opacity .3s';
- }
-
- return React.createElement("div", {
- className: "".concat(prefixCls, "-wrapper-body"),
- style: _extends(_extends({}, containerStyle), drawerStyle),
- onTransitionEnd: _this.onDestroyTransitionEnd
- }, _this.renderHeader(), React.createElement("div", {
- className: "".concat(prefixCls, "-body"),
- style: bodyStyle
- }, _this.props.children));
- }; // render Provider for Multi-level drawer
-
-
- _this.renderProvider = function (value) {
- var _a = _this.props,
- prefixCls = _a.prefixCls,
- placement = _a.placement,
- className = _a.className,
- wrapClassName = _a.wrapClassName,
- width = _a.width,
- height = _a.height,
- mask = _a.mask,
- rest = __rest(_a, ["prefixCls", "placement", "className", "wrapClassName", "width", "height", "mask"]);
-
- (0, _warning["default"])(wrapClassName === undefined, 'Drawer', 'wrapClassName is deprecated, please use className instead.');
- var haveMask = mask ? '' : 'no-mask';
- _this.parentDrawer = value;
- var offsetStyle = {};
-
- if (placement === 'left' || placement === 'right') {
- offsetStyle.width = width;
- } else {
- offsetStyle.height = height;
- }
-
- return React.createElement(DrawerContext.Provider, {
- value: _assertThisInitialized(_this)
- }, React.createElement(_rcDrawer["default"], _extends({
- handler: false
- }, (0, _omit["default"])(rest, ['zIndex', 'style', 'closable', 'destroyOnClose', 'drawerStyle', 'headerStyle', 'bodyStyle', 'title', 'push', 'visible', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'pageHeader', 'autoInsertSpaceInButton']), offsetStyle, {
- prefixCls: prefixCls,
- open: _this.props.visible,
- showMask: mask,
- placement: placement,
- style: _this.getRcDrawerStyle(),
- className: (0, _classnames["default"])(wrapClassName, className, haveMask)
- }), _this.renderBody()));
- };
-
- return _this;
- }
-
- _createClass(Drawer, [{
- key: "componentDidMount",
- value: function componentDidMount() {
- // fix: delete drawer in child and re-render, no push started.
- // <Drawer>{show && <Drawer />}</Drawer>
- var visible = this.props.visible;
-
- if (visible && this.parentDrawer) {
- this.parentDrawer.push();
- }
- }
- }, {
- key: "componentDidUpdate",
- value: function componentDidUpdate(preProps) {
- var visible = this.props.visible;
-
- if (preProps.visible !== visible && this.parentDrawer) {
- if (visible) {
- this.parentDrawer.push();
- } else {
- this.parentDrawer.pull();
- }
- }
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- // unmount drawer in child, clear push.
- if (this.parentDrawer) {
- this.parentDrawer.pull();
- this.parentDrawer = null;
- }
- }
- }, {
- key: "renderHeader",
- value: function renderHeader() {
- var _this$props3 = this.props,
- title = _this$props3.title,
- prefixCls = _this$props3.prefixCls,
- closable = _this$props3.closable,
- headerStyle = _this$props3.headerStyle;
-
- if (!title && !closable) {
- return null;
- }
-
- var headerClassName = title ? "".concat(prefixCls, "-header") : "".concat(prefixCls, "-header-no-title");
- return React.createElement("div", {
- className: headerClassName,
- style: headerStyle
- }, title && React.createElement("div", {
- className: "".concat(prefixCls, "-title")
- }, title), closable && this.renderCloseIcon());
- }
- }, {
- key: "renderCloseIcon",
- value: function renderCloseIcon() {
- var _this$props4 = this.props,
- closable = _this$props4.closable,
- prefixCls = _this$props4.prefixCls,
- onClose = _this$props4.onClose;
- return closable && // eslint-disable-next-line react/button-has-type
- React.createElement("button", {
- onClick: onClose,
- "aria-label": "Close",
- className: "".concat(prefixCls, "-close")
- }, React.createElement(_icon["default"], {
- type: "close"
- }));
- }
- }, {
- key: "render",
- value: function render() {
- return React.createElement(DrawerContext.Consumer, null, this.renderProvider);
- }
- }]);
-
- return Drawer;
- }(React.Component);
-
- Drawer.defaultProps = {
- width: 256,
- height: 256,
- closable: true,
- placement: 'right',
- maskClosable: true,
- mask: true,
- level: null,
- keyboard: true
- };
-
- var _default = (0, _context.withConfigConsumer)({
- prefixCls: 'drawer'
- })(Drawer);
-
- exports["default"] = _default;
- //# sourceMappingURL=index.js.map
-
-
- /***/ }),
-
- /***/ 1546:
- /***/ (function(module, exports, __webpack_require__) {
-
- // style-loader: Adds some css to the DOM by adding a <style> tag
-
- // load the styles
- var content = __webpack_require__(1547);
- if(typeof content === 'string') content = [[module.i, content, '']];
- // Prepare cssTransformation
- var transform;
-
- var options = {"hmr":false}
- options.transform = transform
- // add the styles to the DOM
- var update = __webpack_require__(300)(content, options);
- if(content.locals) module.exports = content.locals;
-
-
- /***/ }),
-
- /***/ 1547:
- /***/ (function(module, exports, __webpack_require__) {
-
- exports = module.exports = __webpack_require__(299)(true);
- // imports
-
-
- // module
- exports.push([module.i, ".ant-drawer{position:fixed;z-index:1000;width:0;height:100%;-webkit-transition:height 0s ease .3s,width 0s ease .3s,-webkit-transform .3s cubic-bezier(.7,.3,.1,1);transition:height 0s ease .3s,width 0s ease .3s,-webkit-transform .3s cubic-bezier(.7,.3,.1,1);-o-transition:transform .3s cubic-bezier(.7,.3,.1,1),height 0s ease .3s,width 0s ease .3s;transition:transform .3s cubic-bezier(.7,.3,.1,1),height 0s ease .3s,width 0s ease .3s;transition:transform .3s cubic-bezier(.7,.3,.1,1),height 0s ease .3s,width 0s ease .3s,-webkit-transform .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer>*{-webkit-transition:-webkit-transform .3s cubic-bezier(.7,.3,.1,1),-webkit-box-shadow .3s cubic-bezier(.7,.3,.1,1);transition:-webkit-transform .3s cubic-bezier(.7,.3,.1,1),-webkit-box-shadow .3s cubic-bezier(.7,.3,.1,1);-o-transition:transform .3s cubic-bezier(.7,.3,.1,1),box-shadow .3s cubic-bezier(.7,.3,.1,1);transition:transform .3s cubic-bezier(.7,.3,.1,1),box-shadow .3s cubic-bezier(.7,.3,.1,1);transition:transform .3s cubic-bezier(.7,.3,.1,1),box-shadow .3s cubic-bezier(.7,.3,.1,1),-webkit-transform .3s cubic-bezier(.7,.3,.1,1),-webkit-box-shadow .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-content-wrapper{position:absolute}.ant-drawer .ant-drawer-content{width:100%;height:100%}.ant-drawer-left,.ant-drawer-right{top:0;width:0;height:100%}.ant-drawer-left .ant-drawer-content-wrapper,.ant-drawer-right .ant-drawer-content-wrapper{height:100%}.ant-drawer-left.ant-drawer-open,.ant-drawer-right.ant-drawer-open{width:100%;-webkit-transition:-webkit-transform .3s cubic-bezier(.7,.3,.1,1);transition:-webkit-transform .3s cubic-bezier(.7,.3,.1,1);-o-transition:transform .3s cubic-bezier(.7,.3,.1,1);transition:transform .3s cubic-bezier(.7,.3,.1,1);transition:transform .3s cubic-bezier(.7,.3,.1,1),-webkit-transform .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-left.ant-drawer-open.no-mask,.ant-drawer-right.ant-drawer-open.no-mask{width:0}.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.15);box-shadow:2px 0 8px rgba(0,0,0,.15)}.ant-drawer-right,.ant-drawer-right .ant-drawer-content-wrapper{right:0}.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.15);box-shadow:-2px 0 8px rgba(0,0,0,.15)}.ant-drawer-right.ant-drawer-open.no-mask{right:1px;-webkit-transform:translateX(1px);-ms-transform:translateX(1px);transform:translateX(1px)}.ant-drawer-bottom,.ant-drawer-top{left:0;width:100%;height:0%}.ant-drawer-bottom .ant-drawer-content-wrapper,.ant-drawer-top .ant-drawer-content-wrapper{width:100%}.ant-drawer-bottom.ant-drawer-open,.ant-drawer-top.ant-drawer-open{height:100%;-webkit-transition:-webkit-transform .3s cubic-bezier(.7,.3,.1,1);transition:-webkit-transform .3s cubic-bezier(.7,.3,.1,1);-o-transition:transform .3s cubic-bezier(.7,.3,.1,1);transition:transform .3s cubic-bezier(.7,.3,.1,1);transition:transform .3s cubic-bezier(.7,.3,.1,1),-webkit-transform .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-bottom.ant-drawer-open.no-mask,.ant-drawer-top.ant-drawer-open.no-mask{height:0%}.ant-drawer-top{top:0}.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15)}.ant-drawer-bottom,.ant-drawer-bottom .ant-drawer-content-wrapper{bottom:0}.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.15);box-shadow:0 -2px 8px rgba(0,0,0,.15)}.ant-drawer-bottom.ant-drawer-open.no-mask{bottom:1px;-webkit-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.ant-drawer.ant-drawer-open .ant-drawer-mask{height:100%;opacity:1;-webkit-transition:none;-o-transition:none;transition:none;-webkit-animation:antdDrawerFadeIn .3s cubic-bezier(.7,.3,.1,1);animation:antdDrawerFadeIn .3s cubic-bezier(.7,.3,.1,1)}.ant-drawer-title{margin:0;color:rgba(0,0,0,.85);font-weight:500;font-size:16px;line-height:22px}.ant-drawer-content{position:relative;z-index:1;overflow:auto;background-color:#fff;background-clip:padding-box;border:0}.ant-drawer-close{position:absolute;top:0;right:0;z-index:10;display:block;width:56px;height:56px;padding:0;color:rgba(0,0,0,.45);font-weight:700;font-size:16px;font-style:normal;line-height:56px;text-align:center;text-transform:none;text-decoration:none;background:transparent;border:0;outline:0;cursor:pointer;-webkit-transition:color .3s;-o-transition:color .3s;transition:color .3s;text-rendering:auto}.ant-drawer-close:focus,.ant-drawer-close:hover{color:rgba(0,0,0,.75);text-decoration:none}.ant-drawer-header{position:relative;padding:16px 24px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0}.ant-drawer-header,.ant-drawer-header-no-title{color:rgba(0,0,0,.65);background:#fff}.ant-drawer-body{padding:24px;font-size:14px;line-height:1.5;word-wrap:break-word}.ant-drawer-wrapper-body{height:100%;overflow:auto}.ant-drawer-mask{position:absolute;top:0;left:0;width:100%;height:0;background-color:rgba(0,0,0,.45);opacity:0;filter:alpha(opacity=45);-webkit-transition:opacity .3s linear,height 0s ease .3s;-o-transition:opacity .3s linear,height 0s ease .3s;transition:opacity .3s linear,height 0s ease .3s}.ant-drawer-open-content{-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15)}@-webkit-keyframes antdDrawerFadeIn{0%{opacity:0}to{opacity:1}}@keyframes antdDrawerFadeIn{0%{opacity:0}to{opacity:1}}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/node_modules/antd/lib/drawer/style/index.css"],"names":[],"mappings":"AAIA,YACE,eAAgB,AAChB,aAAc,AACd,QAAU,AACV,YAAa,AACb,uGAAmH,AACnH,+FAA2G,AAC3G,0FAAsG,AACtG,uFAAmG,AACnG,qIAA0J,CAC3J,AACD,cACE,kHAAkI,AAClI,0GAA0H,AAC1H,6FAA6G,AAC7G,0FAA0G,AAC1G,wLAAyN,CAC1N,AACD,4BACE,iBAAmB,CACpB,AACD,gCACE,WAAY,AACZ,WAAa,CACd,AACD,mCAEE,MAAO,AACP,QAAU,AACV,WAAa,CACd,AACD,2FAEE,WAAa,CACd,AACD,mEAEE,WAAY,AACZ,kEAA0E,AAC1E,0DAAkE,AAClE,qDAA6D,AAC7D,kDAA0D,AAC1D,gGAAiH,CAClH,AACD,mFAEE,OAAU,CACX,AACD,6DACE,6CAAkD,AAC1C,oCAA0C,CACnD,AAID,gEACE,OAAS,CACV,AACD,8DACE,8CAAmD,AAC3C,qCAA2C,CACpD,AACD,0CACE,UAAW,AACX,kCAAmC,AAC/B,8BAA+B,AAC3B,yBAA2B,CACpC,AACD,mCAEE,OAAQ,AACR,WAAY,AACZ,SAAW,CACZ,AACD,2FAEE,UAAY,CACb,AACD,mEAEE,YAAa,AACb,kEAA0E,AAC1E,0DAAkE,AAClE,qDAA6D,AAC7D,kDAA0D,AAC1D,gGAAiH,CAClH,AACD,mFAEE,SAAW,CACZ,AACD,gBACE,KAAO,CACR,AACD,4DACE,6CAAkD,AAC1C,oCAA0C,CACnD,AAID,kEACE,QAAU,CACX,AACD,+DACE,8CAAmD,AAC3C,qCAA2C,CACpD,AACD,2CACE,WAAY,AACZ,kCAAmC,AAC/B,8BAA+B,AAC3B,yBAA2B,CACpC,AACD,6CACE,YAAa,AACb,UAAW,AACX,wBAAyB,AACzB,mBAAoB,AACpB,gBAAiB,AACjB,gEAAwE,AAChE,uDAAgE,CACzE,AACD,kBACE,SAAU,AACV,sBAA2B,AAC3B,gBAAiB,AACjB,eAAgB,AAChB,gBAAkB,CACnB,AACD,oBACE,kBAAmB,AACnB,UAAW,AACX,cAAe,AACf,sBAAuB,AACvB,4BAA6B,AAC7B,QAAU,CACX,AACD,kBACE,kBAAmB,AACnB,MAAO,AACP,QAAS,AACT,WAAY,AACZ,cAAe,AACf,WAAY,AACZ,YAAa,AACb,UAAW,AACX,sBAA2B,AAC3B,gBAAiB,AACjB,eAAgB,AAChB,kBAAmB,AACnB,iBAAkB,AAClB,kBAAmB,AACnB,oBAAqB,AACrB,qBAAsB,AACtB,uBAAwB,AACxB,SAAU,AACV,UAAW,AACX,eAAgB,AAChB,6BAA+B,AAC/B,wBAA0B,AAC1B,qBAAuB,AACvB,mBAAqB,CACtB,AACD,gDAEE,sBAA2B,AAC3B,oBAAsB,CACvB,AACD,mBACE,kBAAmB,AACnB,kBAAmB,AAGnB,gCAAiC,AACjC,yBAA2B,CAC5B,AACD,+CALE,sBAA2B,AAC3B,eAAiB,CAOlB,AACD,iBACE,aAAc,AACd,eAAgB,AAChB,gBAAiB,AACjB,oBAAsB,CACvB,AACD,yBACE,YAAa,AACb,aAAe,CAChB,AACD,iBACE,kBAAmB,AACnB,MAAO,AACP,OAAQ,AACR,WAAY,AACZ,SAAU,AACV,iCAAsC,AACtC,UAAW,AACX,yBAA0B,AAC1B,yDAA6D,AAC7D,oDAAwD,AACxD,gDAAqD,CACtD,AACD,yBACE,8CAAmD,AAC3C,qCAA2C,CACpD,AACD,oCACE,GACE,SAAW,CACZ,AACD,GACE,SAAW,CACZ,CACF,AACD,4BACE,GACE,SAAW,CACZ,AACD,GACE,SAAW,CACZ,CACF","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-drawer {\n position: fixed;\n z-index: 1000;\n width: 0%;\n height: 100%;\n -webkit-transition: height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n -o-transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s;\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer > * {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n -o-transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-content-wrapper {\n position: absolute;\n}\n.ant-drawer .ant-drawer-content {\n width: 100%;\n height: 100%;\n}\n.ant-drawer-left,\n.ant-drawer-right {\n top: 0;\n width: 0%;\n height: 100%;\n}\n.ant-drawer-left .ant-drawer-content-wrapper,\n.ant-drawer-right .ant-drawer-content-wrapper {\n height: 100%;\n}\n.ant-drawer-left.ant-drawer-open,\n.ant-drawer-right.ant-drawer-open {\n width: 100%;\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n -o-transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-left.ant-drawer-open.no-mask,\n.ant-drawer-right.ant-drawer-open.no-mask {\n width: 0%;\n}\n.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper {\n -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);\n box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);\n}\n.ant-drawer-right {\n right: 0;\n}\n.ant-drawer-right .ant-drawer-content-wrapper {\n right: 0;\n}\n.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {\n -webkit-box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);\n box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);\n}\n.ant-drawer-right.ant-drawer-open.no-mask {\n right: 1px;\n -webkit-transform: translateX(1px);\n -ms-transform: translateX(1px);\n transform: translateX(1px);\n}\n.ant-drawer-top,\n.ant-drawer-bottom {\n left: 0;\n width: 100%;\n height: 0%;\n}\n.ant-drawer-top .ant-drawer-content-wrapper,\n.ant-drawer-bottom .ant-drawer-content-wrapper {\n width: 100%;\n}\n.ant-drawer-top.ant-drawer-open,\n.ant-drawer-bottom.ant-drawer-open {\n height: 100%;\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n -o-transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-top.ant-drawer-open.no-mask,\n.ant-drawer-bottom.ant-drawer-open.no-mask {\n height: 0%;\n}\n.ant-drawer-top {\n top: 0;\n}\n.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper {\n -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n}\n.ant-drawer-bottom {\n bottom: 0;\n}\n.ant-drawer-bottom .ant-drawer-content-wrapper {\n bottom: 0;\n}\n.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper {\n -webkit-box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);\n box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);\n}\n.ant-drawer-bottom.ant-drawer-open.no-mask {\n bottom: 1px;\n -webkit-transform: translateY(1px);\n -ms-transform: translateY(1px);\n transform: translateY(1px);\n}\n.ant-drawer.ant-drawer-open .ant-drawer-mask {\n height: 100%;\n opacity: 1;\n -webkit-transition: none;\n -o-transition: none;\n transition: none;\n -webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);\n}\n.ant-drawer-title {\n margin: 0;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n font-size: 16px;\n line-height: 22px;\n}\n.ant-drawer-content {\n position: relative;\n z-index: 1;\n overflow: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 0;\n}\n.ant-drawer-close {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 10;\n display: block;\n width: 56px;\n height: 56px;\n padding: 0;\n color: rgba(0, 0, 0, 0.45);\n font-weight: 700;\n font-size: 16px;\n font-style: normal;\n line-height: 56px;\n text-align: center;\n text-transform: none;\n text-decoration: none;\n background: transparent;\n border: 0;\n outline: 0;\n cursor: pointer;\n -webkit-transition: color 0.3s;\n -o-transition: color 0.3s;\n transition: color 0.3s;\n text-rendering: auto;\n}\n.ant-drawer-close:focus,\n.ant-drawer-close:hover {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n}\n.ant-drawer-header {\n position: relative;\n padding: 16px 24px;\n color: rgba(0, 0, 0, 0.65);\n background: #fff;\n border-bottom: 1px solid #e8e8e8;\n border-radius: 4px 4px 0 0;\n}\n.ant-drawer-header-no-title {\n color: rgba(0, 0, 0, 0.65);\n background: #fff;\n}\n.ant-drawer-body {\n padding: 24px;\n font-size: 14px;\n line-height: 1.5;\n word-wrap: break-word;\n}\n.ant-drawer-wrapper-body {\n height: 100%;\n overflow: auto;\n}\n.ant-drawer-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 0;\n background-color: rgba(0, 0, 0, 0.45);\n opacity: 0;\n filter: alpha(opacity=45);\n -webkit-transition: opacity 0.3s linear, height 0s ease 0.3s;\n -o-transition: opacity 0.3s linear, height 0s ease 0.3s;\n transition: opacity 0.3s linear, height 0s ease 0.3s;\n}\n.ant-drawer-open-content {\n -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n}\n@-webkit-keyframes antdDrawerFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes antdDrawerFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n"],"sourceRoot":""}]);
-
- // exports
-
-
- /***/ }),
-
- /***/ 1548:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DrawerWrapper__ = __webpack_require__(1549);
- // export this package's api
-
- /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__DrawerWrapper__["a" /* default */]);
-
- /***/ }),
-
- /***/ 1549:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_util_es_PortalWrapper__ = __webpack_require__(344);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__DrawerChild__ = __webpack_require__(1550);
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
-
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
-
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
-
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
-
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
-
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
-
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
-
-
-
-
-
-
- var DrawerWrapper =
- /*#__PURE__*/
- function (_React$Component) {
- _inherits(DrawerWrapper, _React$Component);
-
- function DrawerWrapper(props) {
- var _this;
-
- _classCallCheck(this, DrawerWrapper);
-
- _this = _possibleConstructorReturn(this, _getPrototypeOf(DrawerWrapper).call(this, props));
-
- _this.onHandleClick = function (e) {
- var _this$props = _this.props,
- onHandleClick = _this$props.onHandleClick,
- $open = _this$props.open;
-
- if (onHandleClick) {
- onHandleClick(e);
- }
-
- if (typeof $open === 'undefined') {
- var _open = _this.state.open;
-
- _this.setState({
- open: !_open
- });
- }
- };
-
- _this.onClose = function (e) {
- var _this$props2 = _this.props,
- onClose = _this$props2.onClose,
- open = _this$props2.open;
-
- if (onClose) {
- onClose(e);
- }
-
- if (typeof open === 'undefined') {
- _this.setState({
- open: false
- });
- }
- };
-
- var open = typeof props.open !== 'undefined' ? props.open : !!props.defaultOpen;
- _this.state = {
- open: open
- };
-
- if ('onMaskClick' in props) {
- console.warn('`onMaskClick` are removed, please use `onClose` instead.');
- }
-
- return _this;
- }
-
- _createClass(DrawerWrapper, [{
- key: "render",
- // tslint:disable-next-line:member-ordering
- value: function render() {
- var _this2 = this;
-
- var _this$props3 = this.props,
- defaultOpen = _this$props3.defaultOpen,
- getContainer = _this$props3.getContainer,
- wrapperClassName = _this$props3.wrapperClassName,
- forceRender = _this$props3.forceRender,
- handler = _this$props3.handler,
- props = _objectWithoutProperties(_this$props3, ["defaultOpen", "getContainer", "wrapperClassName", "forceRender", "handler"]);
-
- var open = this.state.open; // 渲染在当前 dom 里;
-
- if (!getContainer) {
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"]("div", {
- className: wrapperClassName,
- ref: function ref(c) {
- _this2.dom = c;
- }
- }, __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](__WEBPACK_IMPORTED_MODULE_3__DrawerChild__["a" /* default */], Object.assign({}, props, {
- open: open,
- handler: handler,
- getContainer: function getContainer() {
- return _this2.dom;
- },
- onClose: this.onClose,
- onHandleClick: this.onHandleClick
- })));
- } // 如果有 handler 为内置强制渲染;
-
-
- var $forceRender = !!handler || forceRender;
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](__WEBPACK_IMPORTED_MODULE_0_rc_util_es_PortalWrapper__["a" /* default */], {
- visible: open,
- forceRender: $forceRender,
- getContainer: getContainer,
- wrapperClassName: wrapperClassName
- }, function (_ref) {
- var visible = _ref.visible,
- afterClose = _ref.afterClose,
- rest = _objectWithoutProperties(_ref, ["visible", "afterClose"]);
-
- return (// react 15,componentWillUnmount 时 Portal 返回 afterClose, visible.
- __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](__WEBPACK_IMPORTED_MODULE_3__DrawerChild__["a" /* default */], Object.assign({}, props, rest, {
- open: visible !== undefined ? visible : open,
- afterVisibleChange: afterClose !== undefined ? afterClose : props.afterVisibleChange,
- handler: handler,
- onClose: _this2.onClose,
- onHandleClick: _this2.onHandleClick
- }))
- );
- });
- }
- }], [{
- key: "getDerivedStateFromProps",
- value: function getDerivedStateFromProps(props, _ref2) {
- var prevProps = _ref2.prevProps;
- var newState = {
- prevProps: props
- };
-
- if (typeof prevProps !== 'undefined' && props.open !== prevProps.open) {
- newState.open = props.open;
- }
-
- return newState;
- }
- }]);
-
- return DrawerWrapper;
- }(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
-
- DrawerWrapper.defaultProps = {
- prefixCls: 'drawer',
- placement: 'left',
- getContainer: 'body',
- defaultOpen: false,
- level: 'all',
- duration: '.3s',
- ease: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
- onChange: function onChange() {},
- afterVisibleChange: function afterVisibleChange() {},
- handler: __WEBPACK_IMPORTED_MODULE_1_react__["createElement"]("div", {
- className: "drawer-handle"
- }, __WEBPACK_IMPORTED_MODULE_1_react__["createElement"]("i", {
- className: "drawer-handle-icon"
- })),
- showMask: true,
- maskClosable: true,
- maskStyle: {},
- wrapperClassName: '',
- className: '',
- keyboard: true,
- forceRender: false
- };
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_2_react_lifecycles_compat__["polyfill"])(DrawerWrapper));
-
- /***/ }),
-
- /***/ 1550:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(3);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rc_util_es_getScrollBarSize__ = __webpack_require__(345);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rc_util_es_KeyCode__ = __webpack_require__(52);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_lifecycles_compat__ = __webpack_require__(7);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils__ = __webpack_require__(1551);
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
-
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
-
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
-
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
-
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
-
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
-
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
-
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
-
-
-
-
-
-
-
- var currentDrawer = {};
-
- var DrawerChild =
- /*#__PURE__*/
- function (_React$Component) {
- _inherits(DrawerChild, _React$Component);
-
- function DrawerChild(props) {
- var _this;
-
- _classCallCheck(this, DrawerChild);
-
- _this = _possibleConstructorReturn(this, _getPrototypeOf(DrawerChild).call(this, props));
-
- _this.domFocus = function () {
- if (_this.dom) {
- _this.dom.focus();
- }
- };
-
- _this.removeStartHandler = function (e) {
- if (e.touches.length > 1) {
- return;
- }
-
- _this.startPos = {
- x: e.touches[0].clientX,
- y: e.touches[0].clientY
- };
- };
-
- _this.removeMoveHandler = function (e) {
- if (e.changedTouches.length > 1) {
- return;
- }
-
- var currentTarget = e.currentTarget;
- var differX = e.changedTouches[0].clientX - _this.startPos.x;
- var differY = e.changedTouches[0].clientY - _this.startPos.y;
-
- if (currentTarget === _this.maskDom || currentTarget === _this.handlerDom || currentTarget === _this.contentDom && Object(__WEBPACK_IMPORTED_MODULE_5__utils__["c" /* getTouchParentScroll */])(currentTarget, e.target, differX, differY)) {
- e.preventDefault();
- }
- };
-
- _this.transitionEnd = function (e) {
- var dom = e.target;
- Object(__WEBPACK_IMPORTED_MODULE_5__utils__["e" /* removeEventListener */])(dom, __WEBPACK_IMPORTED_MODULE_5__utils__["g" /* transitionEnd */], _this.transitionEnd);
- dom.style.transition = '';
- };
-
- _this.onKeyDown = function (e) {
- if (e.keyCode === __WEBPACK_IMPORTED_MODULE_2_rc_util_es_KeyCode__["a" /* default */].ESC) {
- var onClose = _this.props.onClose;
- e.stopPropagation();
-
- if (onClose) {
- onClose(e);
- }
- }
- };
-
- _this.onWrapperTransitionEnd = function (e) {
- var _this$props = _this.props,
- open = _this$props.open,
- afterVisibleChange = _this$props.afterVisibleChange;
-
- if (e.target === _this.contentWrapper && e.propertyName.match(/transform$/)) {
- _this.dom.style.transition = '';
-
- if (!open && _this.getCurrentDrawerSome()) {
- document.body.style.overflowX = '';
-
- if (_this.maskDom) {
- _this.maskDom.style.left = '';
- _this.maskDom.style.width = '';
- }
- }
-
- if (afterVisibleChange) {
- afterVisibleChange(!!open);
- }
- }
- };
-
- _this.openLevelTransition = function () {
- var _this$props2 = _this.props,
- open = _this$props2.open,
- width = _this$props2.width,
- height = _this$props2.height;
-
- var _this$getHorizontalBo = _this.getHorizontalBoolAndPlacementName(),
- isHorizontal = _this$getHorizontalBo.isHorizontal,
- placementName = _this$getHorizontalBo.placementName;
-
- var contentValue = _this.contentDom ? _this.contentDom.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0;
- var value = (isHorizontal ? width : height) || contentValue;
-
- _this.setLevelAndScrolling(open, placementName, value);
- };
-
- _this.setLevelTransform = function (open, placementName, value, right) {
- var _this$props3 = _this.props,
- placement = _this$props3.placement,
- levelMove = _this$props3.levelMove,
- duration = _this$props3.duration,
- ease = _this$props3.ease,
- showMask = _this$props3.showMask; // router 切换时可能会导至页面失去滚动条,所以需要时时获取。
-
- _this.levelDom.forEach(function (dom) {
- dom.style.transition = "transform ".concat(duration, " ").concat(ease);
- Object(__WEBPACK_IMPORTED_MODULE_5__utils__["a" /* addEventListener */])(dom, __WEBPACK_IMPORTED_MODULE_5__utils__["g" /* transitionEnd */], _this.transitionEnd);
- var levelValue = open ? value : 0;
-
- if (levelMove) {
- var $levelMove = Object(__WEBPACK_IMPORTED_MODULE_5__utils__["f" /* transformArguments */])(levelMove, {
- target: dom,
- open: open
- });
- levelValue = open ? $levelMove[0] : $levelMove[1] || 0;
- }
-
- var $value = typeof levelValue === 'number' ? "".concat(levelValue, "px") : levelValue;
- var placementPos = placement === 'left' || placement === 'top' ? $value : "-".concat($value);
- placementPos = showMask && placement === 'right' && right ? "calc(".concat(placementPos, " + ").concat(right, "px)") : placementPos;
- dom.style.transform = levelValue ? "".concat(placementName, "(").concat(placementPos, ")") : '';
- });
- };
-
- _this.setLevelAndScrolling = function (open, placementName, value) {
- var onChange = _this.props.onChange;
-
- if (!__WEBPACK_IMPORTED_MODULE_5__utils__["i" /* windowIsUndefined */]) {
- var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? Object(__WEBPACK_IMPORTED_MODULE_1_rc_util_es_getScrollBarSize__["a" /* default */])(true) : 0;
-
- _this.setLevelTransform(open, placementName, value, right);
-
- _this.toggleScrollingToDrawerAndBody(right);
- }
-
- if (onChange) {
- onChange(open);
- }
- };
-
- _this.toggleScrollingToDrawerAndBody = function (right) {
- var _this$props4 = _this.props,
- getOpenCount = _this$props4.getOpenCount,
- getContainer = _this$props4.getContainer,
- showMask = _this$props4.showMask,
- open = _this$props4.open;
- var container = getContainer && getContainer();
- var openCount = getOpenCount && getOpenCount(); // 处理 body 滚动
-
- if (container && container.parentNode === document.body && showMask) {
- var eventArray = ['touchstart'];
- var domArray = [document.body, _this.maskDom, _this.handlerDom, _this.contentDom];
-
- if (open && document.body.style.overflow !== 'hidden') {
- if (right) {
- _this.addScrollingEffect(right);
- }
-
- if (openCount === 1) {
- document.body.style.overflow = 'hidden';
- }
-
- document.body.style.touchAction = 'none'; // 手机禁滚
-
- domArray.forEach(function (item, i) {
- if (!item) {
- return;
- }
-
- Object(__WEBPACK_IMPORTED_MODULE_5__utils__["a" /* addEventListener */])(item, eventArray[i] || 'touchmove', i ? _this.removeMoveHandler : _this.removeStartHandler, _this.passive);
- });
- } else if (_this.getCurrentDrawerSome()) {
- // 没有弹框的状态下清除 overflow;
- if (!openCount) {
- document.body.style.overflow = '';
- }
-
- document.body.style.touchAction = '';
-
- if (right) {
- _this.remScrollingEffect(right);
- } // 恢复事件
-
-
- domArray.forEach(function (item, i) {
- if (!item) {
- return;
- }
-
- Object(__WEBPACK_IMPORTED_MODULE_5__utils__["e" /* removeEventListener */])(item, eventArray[i] || 'touchmove', i ? _this.removeMoveHandler : _this.removeStartHandler, _this.passive);
- });
- }
- }
- };
-
- _this.addScrollingEffect = function (right) {
- var _this$props5 = _this.props,
- placement = _this$props5.placement,
- duration = _this$props5.duration,
- ease = _this$props5.ease,
- getOpenCount = _this$props5.getOpenCount,
- switchScrollingEffect = _this$props5.switchScrollingEffect;
- var openCount = getOpenCount && getOpenCount();
-
- if (openCount === 1) {
- switchScrollingEffect();
- }
-
- var widthTransition = "width ".concat(duration, " ").concat(ease);
- var transformTransition = "transform ".concat(duration, " ").concat(ease);
- _this.dom.style.transition = 'none';
-
- switch (placement) {
- case 'right':
- _this.dom.style.transform = "translateX(-".concat(right, "px)");
- break;
-
- case 'top':
- case 'bottom':
- _this.dom.style.width = "calc(100% - ".concat(right, "px)");
- _this.dom.style.transform = 'translateZ(0)';
- break;
-
- default:
- break;
- }
-
- clearTimeout(_this.timeout);
- _this.timeout = setTimeout(function () {
- if (_this.dom) {
- _this.dom.style.transition = "".concat(transformTransition, ",").concat(widthTransition);
- _this.dom.style.width = '';
- _this.dom.style.transform = '';
- }
- });
- };
-
- _this.remScrollingEffect = function (right) {
- var _this$props6 = _this.props,
- placement = _this$props6.placement,
- duration = _this$props6.duration,
- ease = _this$props6.ease,
- getOpenCount = _this$props6.getOpenCount,
- switchScrollingEffect = _this$props6.switchScrollingEffect;
- var openCount = getOpenCount && getOpenCount();
-
- if (!openCount) {
- switchScrollingEffect(true);
- }
-
- if (__WEBPACK_IMPORTED_MODULE_5__utils__["h" /* transitionStr */]) {
- document.body.style.overflowX = 'hidden';
- }
-
- _this.dom.style.transition = 'none';
- var heightTransition;
- var widthTransition = "width ".concat(duration, " ").concat(ease);
- var transformTransition = "transform ".concat(duration, " ").concat(ease);
-
- switch (placement) {
- case 'left':
- {
- _this.dom.style.width = '100%';
- widthTransition = "width 0s ".concat(ease, " ").concat(duration);
- break;
- }
-
- case 'right':
- {
- _this.dom.style.transform = "translateX(".concat(right, "px)");
- _this.dom.style.width = '100%';
- widthTransition = "width 0s ".concat(ease, " ").concat(duration);
-
- if (_this.maskDom) {
- _this.maskDom.style.left = "-".concat(right, "px");
- _this.maskDom.style.width = "calc(100% + ".concat(right, "px)");
- }
-
- break;
- }
-
- case 'top':
- case 'bottom':
- {
- _this.dom.style.width = "calc(100% + ".concat(right, "px)");
- _this.dom.style.height = '100%';
- _this.dom.style.transform = 'translateZ(0)';
- heightTransition = "height 0s ".concat(ease, " ").concat(duration);
- break;
- }
-
- default:
- break;
- }
-
- clearTimeout(_this.timeout);
- _this.timeout = setTimeout(function () {
- if (_this.dom) {
- _this.dom.style.transition = "".concat(transformTransition, ",").concat(heightTransition ? "".concat(heightTransition, ",") : '').concat(widthTransition);
- _this.dom.style.transform = '';
- _this.dom.style.width = '';
- _this.dom.style.height = '';
- }
- });
- };
-
- _this.getCurrentDrawerSome = function () {
- return !Object.keys(currentDrawer).some(function (key) {
- return currentDrawer[key];
- });
- };
-
- _this.getLevelDom = function (_ref) {
- var level = _ref.level,
- getContainer = _ref.getContainer;
-
- if (__WEBPACK_IMPORTED_MODULE_5__utils__["i" /* windowIsUndefined */]) {
- return;
- }
-
- var container = getContainer && getContainer();
- var parent = container ? container.parentNode : null;
- _this.levelDom = [];
-
- if (level === 'all') {
- var children = parent ? Array.prototype.slice.call(parent.children) : [];
- children.forEach(function (child) {
- if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE' && child.nodeName !== 'LINK' && child !== container) {
- _this.levelDom.push(child);
- }
- });
- } else if (level) {
- Object(__WEBPACK_IMPORTED_MODULE_5__utils__["b" /* dataToArray */])(level).forEach(function (key) {
- document.querySelectorAll(key).forEach(function (item) {
- _this.levelDom.push(item);
- });
- });
- }
- };
-
- _this.getHorizontalBoolAndPlacementName = function () {
- var placement = _this.props.placement;
- var isHorizontal = placement === 'left' || placement === 'right';
- var placementName = "translate".concat(isHorizontal ? 'X' : 'Y');
- return {
- isHorizontal: isHorizontal,
- placementName: placementName
- };
- };
-
- _this.state = {
- _self: _assertThisInitialized(_this)
- };
- return _this;
- }
-
- _createClass(DrawerChild, [{
- key: "componentDidMount",
- value: function componentDidMount() {
- var _this2 = this;
-
- if (!__WEBPACK_IMPORTED_MODULE_5__utils__["i" /* windowIsUndefined */]) {
- var passiveSupported = false;
-
- try {
- window.addEventListener('test', null, Object.defineProperty({}, 'passive', {
- get: function get() {
- passiveSupported = true;
- return null;
- }
- }));
- } catch (err) {}
-
- this.passive = passiveSupported ? {
- passive: false
- } : false;
- }
-
- var open = this.props.open;
- this.drawerId = "drawer_id_".concat(Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9).toString())).toString(16));
- this.getLevelDom(this.props);
-
- if (open) {
- currentDrawer[this.drawerId] = open; // 默认打开状态时推出 level;
-
- this.openLevelTransition();
- this.forceUpdate(function () {
- _this2.domFocus();
- });
- }
- }
- }, {
- key: "componentDidUpdate",
- value: function componentDidUpdate(prevProps) {
- var open = this.props.open;
-
- if (open !== prevProps.open) {
- if (open) {
- this.domFocus();
- }
-
- currentDrawer[this.drawerId] = !!open;
- this.openLevelTransition();
- }
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- var _this$props7 = this.props,
- getOpenCount = _this$props7.getOpenCount,
- open = _this$props7.open,
- switchScrollingEffect = _this$props7.switchScrollingEffect;
- var openCount = typeof getOpenCount === 'function' && getOpenCount();
- delete currentDrawer[this.drawerId];
-
- if (open) {
- this.setLevelTransform(false);
- document.body.style.touchAction = '';
- }
-
- if (!openCount) {
- document.body.style.overflow = '';
- switchScrollingEffect(true);
- }
- } // tslint:disable-next-line:member-ordering
-
- }, {
- key: "render",
- value: function render() {
- var _classnames,
- _this3 = this;
-
- var _this$props8 = this.props,
- className = _this$props8.className,
- children = _this$props8.children,
- style = _this$props8.style,
- width = _this$props8.width,
- height = _this$props8.height,
- defaultOpen = _this$props8.defaultOpen,
- $open = _this$props8.open,
- prefixCls = _this$props8.prefixCls,
- placement = _this$props8.placement,
- level = _this$props8.level,
- levelMove = _this$props8.levelMove,
- ease = _this$props8.ease,
- duration = _this$props8.duration,
- getContainer = _this$props8.getContainer,
- handler = _this$props8.handler,
- onChange = _this$props8.onChange,
- afterVisibleChange = _this$props8.afterVisibleChange,
- showMask = _this$props8.showMask,
- maskClosable = _this$props8.maskClosable,
- maskStyle = _this$props8.maskStyle,
- onClose = _this$props8.onClose,
- onHandleClick = _this$props8.onHandleClick,
- keyboard = _this$props8.keyboard,
- getOpenCount = _this$props8.getOpenCount,
- switchScrollingEffect = _this$props8.switchScrollingEffect,
- props = _objectWithoutProperties(_this$props8, ["className", "children", "style", "width", "height", "defaultOpen", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "handler", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "onClose", "onHandleClick", "keyboard", "getOpenCount", "switchScrollingEffect"]); // 首次渲染都将是关闭状态。
-
-
- var open = this.dom ? $open : false;
- var wrapperClassName = __WEBPACK_IMPORTED_MODULE_0_classnames___default()(prefixCls, (_classnames = {}, _defineProperty(_classnames, "".concat(prefixCls, "-").concat(placement), true), _defineProperty(_classnames, "".concat(prefixCls, "-open"), open), _defineProperty(_classnames, className || '', !!className), _defineProperty(_classnames, 'no-mask', !showMask), _classnames));
-
- var _this$getHorizontalBo2 = this.getHorizontalBoolAndPlacementName(),
- placementName = _this$getHorizontalBo2.placementName; // 百分比与像素动画不同步,第一次打用后全用像素动画。
- // const defaultValue = !this.contentDom || !level ? '100%' : `${value}px`;
-
-
- var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%';
- var transform = open ? '' : "".concat(placementName, "(").concat(placementPos, ")");
- var handlerChildren = handler && __WEBPACK_IMPORTED_MODULE_3_react__["cloneElement"](handler, {
- onClick: function onClick(e) {
- if (handler.props.onClick) {
- handler.props.onClick();
- }
-
- if (onHandleClick) {
- onHandleClick(e);
- }
- },
- ref: function ref(c) {
- _this3.handlerDom = c;
- }
- });
- return __WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("div", Object.assign({}, props, {
- tabIndex: -1,
- className: wrapperClassName,
- style: style,
- ref: function ref(c) {
- _this3.dom = c;
- },
- onKeyDown: open && keyboard ? this.onKeyDown : undefined,
- onTransitionEnd: this.onWrapperTransitionEnd
- }), showMask && __WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("div", {
- className: "".concat(prefixCls, "-mask"),
- onClick: maskClosable ? onClose : undefined,
- style: maskStyle,
- ref: function ref(c) {
- _this3.maskDom = c;
- }
- }), __WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("div", {
- className: "".concat(prefixCls, "-content-wrapper"),
- style: {
- transform: transform,
- msTransform: transform,
- width: Object(__WEBPACK_IMPORTED_MODULE_5__utils__["d" /* isNumeric */])(width) ? "".concat(width, "px") : width,
- height: Object(__WEBPACK_IMPORTED_MODULE_5__utils__["d" /* isNumeric */])(height) ? "".concat(height, "px") : height
- },
- ref: function ref(c) {
- _this3.contentWrapper = c;
- }
- }, __WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("div", {
- className: "".concat(prefixCls, "-content"),
- ref: function ref(c) {
- _this3.contentDom = c;
- },
- onTouchStart: open && showMask ? this.removeStartHandler : undefined,
- onTouchMove: open && showMask ? this.removeMoveHandler : undefined
- }, children), handlerChildren));
- }
- }], [{
- key: "getDerivedStateFromProps",
- value: function getDerivedStateFromProps(props, _ref2) {
- var prevProps = _ref2.prevProps,
- _self = _ref2._self;
- var nextState = {
- prevProps: props
- };
-
- if (prevProps !== undefined) {
- var placement = props.placement,
- level = props.level;
-
- if (placement !== prevProps.placement) {
- // test 的 bug, 有动画过场,删除 dom
- _self.contentDom = null;
- }
-
- if (level !== prevProps.level) {
- _self.getLevelDom(props);
- }
- }
-
- return nextState;
- }
- }]);
-
- return DrawerChild;
- }(__WEBPACK_IMPORTED_MODULE_3_react__["Component"]);
-
- DrawerChild.defaultProps = {
- switchScrollingEffect: function switchScrollingEffect() {}
- };
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4_react_lifecycles_compat__["polyfill"])(DrawerChild));
-
- /***/ }),
-
- /***/ 1551:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony export (immutable) */ __webpack_exports__["b"] = dataToArray;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return transitionStr; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return transitionEnd; });
- /* harmony export (immutable) */ __webpack_exports__["a"] = addEventListener;
- /* harmony export (immutable) */ __webpack_exports__["e"] = removeEventListener;
- /* harmony export (immutable) */ __webpack_exports__["f"] = transformArguments;
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isNumeric; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return windowIsUndefined; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getTouchParentScroll; });
- function dataToArray(vars) {
- if (Array.isArray(vars)) {
- return vars;
- }
-
- return [vars];
- }
- var transitionEndObject = {
- transition: 'transitionend',
- WebkitTransition: 'webkitTransitionEnd',
- MozTransition: 'transitionend',
- OTransition: 'oTransitionEnd otransitionend'
- };
- var transitionStr = Object.keys(transitionEndObject).filter(function (key) {
- if (typeof document === 'undefined') {
- return false;
- }
-
- var html = document.getElementsByTagName('html')[0];
- return key in (html ? html.style : {});
- })[0];
- var transitionEnd = transitionEndObject[transitionStr];
- function addEventListener(target, eventType, callback, options) {
- if (target.addEventListener) {
- target.addEventListener(eventType, callback, options);
- } else if (target.attachEvent) {
- // tslint:disable-line
- target.attachEvent("on".concat(eventType), callback); // tslint:disable-line
- }
- }
- function removeEventListener(target, eventType, callback, options) {
- if (target.removeEventListener) {
- target.removeEventListener(eventType, callback, options);
- } else if (target.attachEvent) {
- // tslint:disable-line
- target.detachEvent("on".concat(eventType), callback); // tslint:disable-line
- }
- }
- function transformArguments(arg, cb) {
- var result = typeof arg === 'function' ? arg(cb) : arg;
-
- if (Array.isArray(result)) {
- if (result.length === 2) {
- return result;
- }
-
- return [result[0], result[1]];
- }
-
- return [result];
- }
- var isNumeric = function isNumeric(value) {
- return !isNaN(parseFloat(value)) && isFinite(value);
- };
- var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
- var getTouchParentScroll = function getTouchParentScroll(root, currentTarget, differX, differY) {
- if (!currentTarget || currentTarget === document || currentTarget instanceof Document) {
- return false;
- } // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
-
-
- if (currentTarget === root.parentNode) {
- return true;
- }
-
- var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
- var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
- var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
- var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
- var style = document.defaultView.getComputedStyle(currentTarget);
- var overflowY = style.overflowY === 'auto' || style.overflowY === 'scroll';
- var overflowX = style.overflowX === 'auto' || style.overflowX === 'scroll';
- var y = scrollY && overflowY;
- var x = scrollX && overflowX;
-
- if (isY && (!y || y && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!x || x && (currentTarget.scrollLeft >= scrollX && scrollX < 0 || currentTarget.scrollLeft <= 0 && scrollX > 0))) {
- return getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
- }
-
- return false;
- };
-
- /***/ }),
-
- /***/ 1948:
- /***/ (function(module, exports) {
-
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-
- /** Used to compose unicode capture groups. */
- var rsZWJ = '\\u200d';
-
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
- var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
-
- /**
- * Checks if `string` contains Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
- */
- function hasUnicode(string) {
- return reHasUnicode.test(string);
- }
-
- module.exports = hasUnicode;
-
-
- /***/ }),
-
- /***/ 1949:
- /***/ (function(module, exports, __webpack_require__) {
-
- var asciiSize = __webpack_require__(3002),
- hasUnicode = __webpack_require__(1948),
- unicodeSize = __webpack_require__(3003);
-
- /**
- * Gets the number of symbols in `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the string size.
- */
- function stringSize(string) {
- return hasUnicode(string)
- ? unicodeSize(string)
- : asciiSize(string);
- }
-
- module.exports = stringSize;
-
-
- /***/ }),
-
- /***/ 2387:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = void 0;
-
- var React = _interopRequireWildcard(__webpack_require__(0));
-
- var _classnames = _interopRequireDefault(__webpack_require__(3));
-
- var _context = __webpack_require__(337);
-
- var _Number = _interopRequireDefault(__webpack_require__(2997));
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
-
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
-
- var Statistic = function Statistic(props) {
- var prefixCls = props.prefixCls,
- className = props.className,
- style = props.style,
- valueStyle = props.valueStyle,
- _props$value = props.value,
- value = _props$value === void 0 ? 0 : _props$value,
- title = props.title,
- valueRender = props.valueRender,
- prefix = props.prefix,
- suffix = props.suffix;
- var valueNode = React.createElement(_Number["default"], _extends({}, props, {
- value: value
- }));
-
- if (valueRender) {
- valueNode = valueRender(valueNode);
- }
-
- return React.createElement("div", {
- className: (0, _classnames["default"])(prefixCls, className),
- style: style
- }, title && React.createElement("div", {
- className: "".concat(prefixCls, "-title")
- }, title), React.createElement("div", {
- style: valueStyle,
- className: "".concat(prefixCls, "-content")
- }, prefix && React.createElement("span", {
- className: "".concat(prefixCls, "-content-prefix")
- }, prefix), valueNode, suffix && React.createElement("span", {
- className: "".concat(prefixCls, "-content-suffix")
- }, suffix)));
- };
-
- Statistic.defaultProps = {
- decimalSeparator: '.',
- groupSeparator: ','
- };
- var WrapperStatistic = (0, _context.withConfigConsumer)({
- prefixCls: 'statistic'
- })(Statistic);
- var _default = WrapperStatistic;
- exports["default"] = _default;
- //# sourceMappingURL=Statistic.js.map
-
-
- /***/ }),
-
- /***/ 2388:
- /***/ (function(module, exports, __webpack_require__) {
-
- var baseRepeat = __webpack_require__(2999),
- baseToString = __webpack_require__(914),
- castSlice = __webpack_require__(3000),
- hasUnicode = __webpack_require__(1948),
- stringSize = __webpack_require__(1949),
- stringToArray = __webpack_require__(3004);
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeCeil = Math.ceil;
-
- /**
- * Creates the padding for `string` based on `length`. The `chars` string
- * is truncated if the number of characters exceeds `length`.
- *
- * @private
- * @param {number} length The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padding for `string`.
- */
- function createPadding(length, chars) {
- chars = chars === undefined ? ' ' : baseToString(chars);
-
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat(chars, length) : chars;
- }
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
- return hasUnicode(chars)
- ? castSlice(stringToArray(result), 0, length).join('')
- : result.slice(0, length);
- }
-
- module.exports = createPadding;
-
-
- /***/ }),
-
- /***/ 2471:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* unused harmony export UserInfo */
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_scss__ = __webpack_require__(2472);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__index_scss__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_educoder__ = __webpack_require__(5);
- /*
- * @Description: 用户头像及昵称
- * @Author: tangjiang
- * @Github:
- * @Date: 2019-12-09 17:11:28
- * @LastEditors: tangjiang
- * @LastEditTime: 2019-12-09 17:36:55
- */function UserInfo(props){var _props$userInfo=props.userInfo,image_url=_props$userInfo.image_url,name=_props$userInfo.name;return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'avator_nicker'},__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('img',{style:{display:image_url?'inline-block':'none'},alt:'\u7528\u6237\u5934\u50CF',className:'student_img',src:Object(__WEBPACK_IMPORTED_MODULE_2_educoder__["M" /* getImageUrl */])('images/'+image_url||'images/educoder/headNavLogo.png?1526520218')}),__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span',{className:'student_nicker'},name||''));}/* harmony default export */ __webpack_exports__["a"] = (UserInfo);
-
- /***/ }),
-
- /***/ 2472:
- /***/ (function(module, exports, __webpack_require__) {
-
- // style-loader: Adds some css to the DOM by adding a <style> tag
-
- // load the styles
- var content = __webpack_require__(2473);
- if(typeof content === 'string') content = [[module.i, content, '']];
- // Prepare cssTransformation
- var transform;
-
- var options = {"hmr":true}
- options.transform = transform
- // add the styles to the DOM
- var update = __webpack_require__(300)(content, options);
- if(content.locals) module.exports = content.locals;
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss", function() {
- var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
-
- /***/ }),
-
- /***/ 2473:
- /***/ (function(module, exports, __webpack_require__) {
-
- exports = module.exports = __webpack_require__(299)(true);
- // imports
-
-
- // module
- exports.push([module.i, ".avator_nicker{position:absolute;color:#fff;line-height:65px;left:20px}.avator_nicker .student_img,.avator_nicker .student_nicker{display:inline-block;vertical-align:top}.avator_nicker .student_nicker{margin-left:10px}.avator_nicker .student_img{width:30px;height:30px;border-radius:50%;margin-top:15px}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/src/modules/developer/components/userInfo/index.scss"],"names":[],"mappings":"AAAA,eAAe,kBAAkB,WAAW,iBAAiB,SAAS,CAAC,2DAA2D,qBAAqB,kBAAkB,CAAC,+BAA+B,gBAAgB,CAAC,4BAA4B,WAAW,YAAY,kBAAkB,eAAe,CAAC","file":"index.scss","sourcesContent":[".avator_nicker{position:absolute;color:#fff;line-height:65px;left:20px}.avator_nicker .student_img,.avator_nicker .student_nicker{display:inline-block;vertical-align:top}.avator_nicker .student_nicker{margin-left:10px}.avator_nicker .student_img{width:30px;height:30px;border-radius:50%;margin-top:15px}\n"],"sourceRoot":""}]);
-
- // exports
-
-
- /***/ }),
-
- /***/ 2827:
- /***/ (function(module, exports, __webpack_require__) {
-
- // style-loader: Adds some css to the DOM by adding a <style> tag
-
- // load the styles
- var content = __webpack_require__(3229);
- if(typeof content === 'string') content = [[module.i, content, '']];
- // Prepare cssTransformation
- var transform;
-
- var options = {"hmr":false}
- options.transform = transform
- // add the styles to the DOM
- var update = __webpack_require__(300)(content, options);
- if(content.locals) module.exports = content.locals;
-
-
- /***/ }),
-
- /***/ 2828:
- /***/ (function(module, exports) {
-
- module.exports = "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAACRCAYAAABAMKFdAAADsklEQVR4Xu2cv4scZRjHP8/s3ryj3s6sez/MzhyXI2rUIlH0ukSFg8QfWIgKEvEHYpHKQol2CmIVBBGxEhGxsEmhlf4DYidY2NuZSsRKwpl5ZPZc2ZDbc++5vZtXeKae77uf/bzfnV1mdx8h3kMkRrasP3yk1uSDmOAk5MPHEHkDON9Iax0uK1ZP1HQuCPIicO/kTrYBl2b9Y2fQzjnQ8woPTpN0uHC9aqkLJ7sdvU+VhxTdFJXTCNksXd8/3MrKYvpn53jS7a7U1P3kuhQqWigMRHSISqnCENgQWJoFYto5M8EtFMPNRHkB5HGEe4DkIA86a3ZPuIV+9UCi9Ucgj8664DzPmwYXQlF+CHoRpDPPB9zPWjfD9aqlIPo1wsP7Wegwzr0RLl8bBKl/gFGvWj8m4ZJQlN+Nr86tk01e/NK8fE+Ed2OAGjOMzIV87W6of0ZIo4NL8/ILEV6JCWznjb9Yvz3oX1cRQnRwWb98VZXPYwMbmUvz4Zci8lKccEX5k8D9scL9LtCPEi4Uw22QbqRwpcYINnpBhMLhTJvj5kzavHNWbW7OzR3AgDXq1zk3ZzVgzXnn3JzVgDXnnXNzVgPWnHfOzVkNWHPeOTdnNWDNeefcnNWANeedm7u56zVnm0U7Cd9bFz9obuq2Xvvj151vFFu8oe1w1u11c27OasCa8865OasBa8475+asBqw575ybsxqw5rxzbs5qwJrzzrk5qwFr7v/Zuahv5Fi3Yp45v3lotenm3JzVgDXnnXNzVgPWnHfOzVkNWHPeOTdnNWDNeefcnNWANeedc3NWA9acd87NWQ1YcxL135bTovxNYGB9doeZk7Qof5SdCT/RHc2l5DPgtejIdiYglBdE+CpKOJaXe+l2elXgttgAx78uvAy8HSVcr1cuX0v4RWAxJsB/Z+SEvHwd4eMo4RqoUFRXQJ+LBfDG0UeDQR7q7FuUMzEA7jLRqrw1FHoF5Mm2AaeN2+qmxfAtQd4BbmkLcs9BZaFYvRMWLkP9dBszwWYa8Zb1j23Umjwv0Eza2xTIj8LmTHA3gSzesbqQyIYIx0U666Dr1JxAOAWsz2uWog1uL22DQd7dzk51Ejmt6FmBZnZdZTE9f7hdKEK+dpeIbin6LOjWrDN5jgRukrd5q9xO9JkaufhfnyOPHG4SNCuqLVUuIfrEbtveKtwYKBTlOeAT4OQkZBRw/wA1cxbfBy6NX+0xwY0Ys7x6WdFPm6lu0cGNPh31qqdI6m+ihBsB9qs3/wb3Al1Npco7wAAAAABJRU5ErkJggg=="
-
- /***/ }),
-
- /***/ 2993:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- __webpack_require__(29);
-
- __webpack_require__(2994);
- //# sourceMappingURL=css.js.map
-
-
- /***/ }),
-
- /***/ 2994:
- /***/ (function(module, exports, __webpack_require__) {
-
- // style-loader: Adds some css to the DOM by adding a <style> tag
-
- // load the styles
- var content = __webpack_require__(2995);
- if(typeof content === 'string') content = [[module.i, content, '']];
- // Prepare cssTransformation
- var transform;
-
- var options = {"hmr":false}
- options.transform = transform
- // add the styles to the DOM
- var update = __webpack_require__(300)(content, options);
- if(content.locals) module.exports = content.locals;
-
-
- /***/ }),
-
- /***/ 2995:
- /***/ (function(module, exports, __webpack_require__) {
-
- exports = module.exports = __webpack_require__(299)(true);
- // imports
-
-
- // module
- exports.push([module.i, ".ant-statistic{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;color:rgba(0,0,0,.65);font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;-webkit-font-feature-settings:\"tnum\";font-feature-settings:\"tnum\"}.ant-statistic-title{margin-bottom:4px;color:rgba(0,0,0,.45);font-size:14px}.ant-statistic-content{color:rgba(0,0,0,.85);font-size:24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.ant-statistic-content-value-decimal{font-size:16px}.ant-statistic-content-prefix,.ant-statistic-content-suffix{display:inline-block}.ant-statistic-content-prefix{margin-right:4px}.ant-statistic-content-suffix{margin-left:4px;font-size:16px}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/node_modules/antd/lib/statistic/style/index.css"],"names":[],"mappings":"AAIA,eACE,8BAA+B,AACvB,sBAAuB,AAC/B,SAAU,AACV,UAAW,AACX,sBAA2B,AAC3B,eAAgB,AAChB,0BAA2B,AAC3B,gBAAiB,AACjB,gBAAiB,AACjB,qCAAsC,AAC9B,4BAA8B,CACvC,AACD,qBACE,kBAAmB,AACnB,sBAA2B,AAC3B,cAAgB,CACjB,AACD,uBACE,sBAA2B,AAC3B,eAAgB,AAChB,4IAA2N,CAC5N,AACD,qCACE,cAAgB,CACjB,AACD,4DAEE,oBAAsB,CACvB,AACD,8BACE,gBAAkB,CACnB,AACD,8BACE,gBAAiB,AACjB,cAAgB,CACjB","file":"index.css","sourcesContent":["/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-statistic {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n -webkit-font-feature-settings: 'tnum';\n font-feature-settings: 'tnum';\n}\n.ant-statistic-title {\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n}\n.ant-statistic-content {\n color: rgba(0, 0, 0, 0.85);\n font-size: 24px;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n}\n.ant-statistic-content-value-decimal {\n font-size: 16px;\n}\n.ant-statistic-content-prefix,\n.ant-statistic-content-suffix {\n display: inline-block;\n}\n.ant-statistic-content-prefix {\n margin-right: 4px;\n}\n.ant-statistic-content-suffix {\n margin-left: 4px;\n font-size: 16px;\n}\n"],"sourceRoot":""}]);
-
- // exports
-
-
- /***/ }),
-
- /***/ 2996:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = void 0;
-
- var _Statistic = _interopRequireDefault(__webpack_require__(2387));
-
- var _Countdown = _interopRequireDefault(__webpack_require__(3007));
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- _Statistic["default"].Countdown = _Countdown["default"];
- var _default = _Statistic["default"];
- exports["default"] = _default;
- //# sourceMappingURL=index.js.map
-
-
- /***/ }),
-
- /***/ 2997:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = void 0;
-
- var React = _interopRequireWildcard(__webpack_require__(0));
-
- var _padEnd = _interopRequireDefault(__webpack_require__(2998));
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
-
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
- var StatisticNumber = function StatisticNumber(props) {
- var value = props.value,
- formatter = props.formatter,
- precision = props.precision,
- decimalSeparator = props.decimalSeparator,
- _props$groupSeparator = props.groupSeparator,
- groupSeparator = _props$groupSeparator === void 0 ? '' : _props$groupSeparator,
- prefixCls = props.prefixCls;
- var valueNode;
-
- if (typeof formatter === 'function') {
- // Customize formatter
- valueNode = formatter(value);
- } else {
- // Internal formatter
- var val = String(value);
- var cells = val.match(/^(-?)(\d*)(\.(\d+))?$/); // Process if illegal number
-
- if (!cells) {
- valueNode = val;
- } else {
- var negative = cells[1];
-
- var _int = cells[2] || '0';
-
- var decimal = cells[4] || '';
- _int = _int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
-
- if (typeof precision === 'number') {
- decimal = (0, _padEnd["default"])(decimal, precision, '0').slice(0, precision);
- }
-
- if (decimal) {
- decimal = "".concat(decimalSeparator).concat(decimal);
- }
-
- valueNode = [React.createElement("span", {
- key: "int",
- className: "".concat(prefixCls, "-content-value-int")
- }, negative, _int), decimal && React.createElement("span", {
- key: "decimal",
- className: "".concat(prefixCls, "-content-value-decimal")
- }, decimal)];
- }
- }
-
- return React.createElement("span", {
- className: "".concat(prefixCls, "-content-value")
- }, valueNode);
- };
-
- var _default = StatisticNumber;
- exports["default"] = _default;
- //# sourceMappingURL=Number.js.map
-
-
- /***/ }),
-
- /***/ 2998:
- /***/ (function(module, exports, __webpack_require__) {
-
- var createPadding = __webpack_require__(2388),
- stringSize = __webpack_require__(1949),
- toInteger = __webpack_require__(1120),
- toString = __webpack_require__(912);
-
- /**
- * Pads `string` on the right side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padEnd('abc', 6);
- * // => 'abc '
- *
- * _.padEnd('abc', 6, '_-');
- * // => 'abc_-_'
- *
- * _.padEnd('abc', 3);
- * // => 'abc'
- */
- function padEnd(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (string + createPadding(length - strLength, chars))
- : string;
- }
-
- module.exports = padEnd;
-
-
- /***/ }),
-
- /***/ 2999:
- /***/ (function(module, exports) {
-
- /** Used as references for various `Number` constants. */
- var MAX_SAFE_INTEGER = 9007199254740991;
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeFloor = Math.floor;
-
- /**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
- function baseRepeat(string, n) {
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
- }
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string += string;
- }
- } while (n);
-
- return result;
- }
-
- module.exports = baseRepeat;
-
-
- /***/ }),
-
- /***/ 3000:
- /***/ (function(module, exports, __webpack_require__) {
-
- var baseSlice = __webpack_require__(3001);
-
- /**
- * Casts `array` to a slice if it's needed.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {number} start The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the cast slice.
- */
- function castSlice(array, start, end) {
- var length = array.length;
- end = end === undefined ? length : end;
- return (!start && end >= length) ? array : baseSlice(array, start, end);
- }
-
- module.exports = castSlice;
-
-
- /***/ }),
-
- /***/ 3001:
- /***/ (function(module, exports) {
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- module.exports = baseSlice;
-
-
- /***/ }),
-
- /***/ 3002:
- /***/ (function(module, exports, __webpack_require__) {
-
- var baseProperty = __webpack_require__(1102);
-
- /**
- * Gets the size of an ASCII `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
- var asciiSize = baseProperty('length');
-
- module.exports = asciiSize;
-
-
- /***/ }),
-
- /***/ 3003:
- /***/ (function(module, exports) {
-
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-
- /** Used to compose unicode capture groups. */
- var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsZWJ = '\\u200d';
-
- /** Used to compose unicode regexes. */
- var reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
- /**
- * Gets the size of a Unicode `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
- function unicodeSize(string) {
- var result = reUnicode.lastIndex = 0;
- while (reUnicode.test(string)) {
- ++result;
- }
- return result;
- }
-
- module.exports = unicodeSize;
-
-
- /***/ }),
-
- /***/ 3004:
- /***/ (function(module, exports, __webpack_require__) {
-
- var asciiToArray = __webpack_require__(3005),
- hasUnicode = __webpack_require__(1948),
- unicodeToArray = __webpack_require__(3006);
-
- /**
- * Converts `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function stringToArray(string) {
- return hasUnicode(string)
- ? unicodeToArray(string)
- : asciiToArray(string);
- }
-
- module.exports = stringToArray;
-
-
- /***/ }),
-
- /***/ 3005:
- /***/ (function(module, exports) {
-
- /**
- * Converts an ASCII `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function asciiToArray(string) {
- return string.split('');
- }
-
- module.exports = asciiToArray;
-
-
- /***/ }),
-
- /***/ 3006:
- /***/ (function(module, exports) {
-
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-
- /** Used to compose unicode capture groups. */
- var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsZWJ = '\\u200d';
-
- /** Used to compose unicode regexes. */
- var reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
- /**
- * Converts a Unicode `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function unicodeToArray(string) {
- return string.match(reUnicode) || [];
- }
-
- module.exports = unicodeToArray;
-
-
- /***/ }),
-
- /***/ 3007:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports["default"] = void 0;
-
- var React = _interopRequireWildcard(__webpack_require__(0));
-
- var _reactLifecyclesCompat = __webpack_require__(7);
-
- var moment = _interopRequireWildcard(__webpack_require__(70));
-
- var _interopDefault = _interopRequireDefault(__webpack_require__(310));
-
- var _Statistic = _interopRequireDefault(__webpack_require__(2387));
-
- var _utils = __webpack_require__(3008);
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
-
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
-
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
-
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
-
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
-
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
-
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
-
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
-
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
-
- var REFRESH_INTERVAL = 1000 / 30;
-
- function getTime(value) {
- return (0, _interopDefault["default"])(moment)(value).valueOf();
- }
-
- var Countdown =
- /*#__PURE__*/
- function (_React$Component) {
- _inherits(Countdown, _React$Component);
-
- function Countdown() {
- var _this;
-
- _classCallCheck(this, Countdown);
-
- _this = _possibleConstructorReturn(this, _getPrototypeOf(Countdown).apply(this, arguments));
-
- _this.syncTimer = function () {
- var value = _this.props.value;
- var timestamp = getTime(value);
-
- if (timestamp >= Date.now()) {
- _this.startTimer();
- } else {
- _this.stopTimer();
- }
- };
-
- _this.startTimer = function () {
- if (_this.countdownId) return;
- _this.countdownId = window.setInterval(function () {
- _this.forceUpdate();
- }, REFRESH_INTERVAL);
- };
-
- _this.stopTimer = function () {
- var _this$props = _this.props,
- onFinish = _this$props.onFinish,
- value = _this$props.value;
-
- if (_this.countdownId) {
- clearInterval(_this.countdownId);
- _this.countdownId = undefined;
- var timestamp = getTime(value);
-
- if (onFinish && timestamp < Date.now()) {
- onFinish();
- }
- }
- };
-
- _this.formatCountdown = function (value, config) {
- var format = _this.props.format;
- return (0, _utils.formatCountdown)(value, _extends(_extends({}, config), {
- format: format
- }));
- }; // Countdown do not need display the timestamp
-
-
- _this.valueRender = function (node) {
- return React.cloneElement(node, {
- title: undefined
- });
- };
-
- return _this;
- }
-
- _createClass(Countdown, [{
- key: "componentDidMount",
- value: function componentDidMount() {
- this.syncTimer();
- }
- }, {
- key: "componentDidUpdate",
- value: function componentDidUpdate() {
- this.syncTimer();
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- this.stopTimer();
- }
- }, {
- key: "render",
- value: function render() {
- return React.createElement(_Statistic["default"], _extends({
- valueRender: this.valueRender
- }, this.props, {
- formatter: this.formatCountdown
- }));
- }
- }]);
-
- return Countdown;
- }(React.Component);
-
- Countdown.defaultProps = {
- format: 'HH:mm:ss'
- };
- (0, _reactLifecyclesCompat.polyfill)(Countdown);
- var _default = Countdown;
- exports["default"] = _default;
- //# sourceMappingURL=Countdown.js.map
-
-
- /***/ }),
-
- /***/ 3008:
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.formatTimeStr = formatTimeStr;
- exports.formatCountdown = formatCountdown;
-
- var moment = _interopRequireWildcard(__webpack_require__(70));
-
- var _padStart = _interopRequireDefault(__webpack_require__(3009));
-
- var _interopDefault = _interopRequireDefault(__webpack_require__(310));
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
-
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
-
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
-
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
-
- function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
-
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
-
- // Countdown
- var timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], ['M', 1000 * 60 * 60 * 24 * 30], ['D', 1000 * 60 * 60 * 24], ['H', 1000 * 60 * 60], ['m', 1000 * 60], ['s', 1000], ['S', 1]];
-
- function formatTimeStr(duration, format) {
- var leftDuration = duration;
- var escapeRegex = /\[[^\]]*\]/g;
- var keepList = (format.match(escapeRegex) || []).map(function (str) {
- return str.slice(1, -1);
- });
- var templateText = format.replace(escapeRegex, '[]');
- var replacedText = timeUnits.reduce(function (current, _ref) {
- var _ref2 = _slicedToArray(_ref, 2),
- name = _ref2[0],
- unit = _ref2[1];
-
- if (current.indexOf(name) !== -1) {
- var value = Math.floor(leftDuration / unit);
- leftDuration -= value * unit;
- return current.replace(new RegExp("".concat(name, "+"), 'g'), function (match) {
- var len = match.length;
- return (0, _padStart["default"])(value.toString(), len, '0');
- });
- }
-
- return current;
- }, templateText);
- var index = 0;
- return replacedText.replace(escapeRegex, function () {
- var match = keepList[index];
- index += 1;
- return match;
- });
- }
-
- function formatCountdown(value, config) {
- var _config$format = config.format,
- format = _config$format === void 0 ? '' : _config$format;
- var target = (0, _interopDefault["default"])(moment)(value).valueOf();
- var current = (0, _interopDefault["default"])(moment)().valueOf();
- var diff = Math.max(target - current, 0);
- return formatTimeStr(diff, format);
- }
- //# sourceMappingURL=utils.js.map
-
-
- /***/ }),
-
- /***/ 3009:
- /***/ (function(module, exports, __webpack_require__) {
-
- var createPadding = __webpack_require__(2388),
- stringSize = __webpack_require__(1949),
- toInteger = __webpack_require__(1120),
- toString = __webpack_require__(912);
-
- /**
- * Pads `string` on the left side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padStart('abc', 6);
- * // => ' abc'
- *
- * _.padStart('abc', 6, '_-');
- * // => '_-_abc'
- *
- * _.padStart('abc', 3);
- * // => 'abc'
- */
- function padStart(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (createPadding(length - strLength, chars) + string)
- : string;
- }
-
- module.exports = padStart;
-
-
- /***/ }),
-
- /***/ 3068:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* unused harmony export Pane */
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_style_proptype__ = __webpack_require__(3069);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_style_proptype__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__ = __webpack_require__(7);
-
-
-
-
-
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
-
- function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, descriptor.key, descriptor);
- }
- }
-
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
- }
-
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
- }
-
- function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- var ownKeys = Object.keys(source);
-
- if (typeof Object.getOwnPropertySymbols === 'function') {
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
- }));
- }
-
- ownKeys.forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- }
-
- return target;
- }
-
- function _inherits(subClass, superClass) {
- if (typeof superClass !== "function" && superClass !== null) {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- subClass.prototype = Object.create(superClass && superClass.prototype, {
- constructor: {
- value: subClass,
- writable: true,
- configurable: true
- }
- });
- if (superClass) _setPrototypeOf(subClass, superClass);
- }
-
- function _getPrototypeOf(o) {
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || Object.getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
- }
-
- function _setPrototypeOf(o, p) {
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
-
- return _setPrototypeOf(o, p);
- }
-
- function _assertThisInitialized(self) {
- if (self === void 0) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
-
- return self;
- }
-
- function _possibleConstructorReturn(self, call) {
- if (call && (typeof call === "object" || typeof call === "function")) {
- return call;
- }
-
- return _assertThisInitialized(self);
- }
-
- var Pane =
- /*#__PURE__*/
- function (_React$PureComponent) {
- _inherits(Pane, _React$PureComponent);
-
- function Pane() {
- _classCallCheck(this, Pane);
-
- return _possibleConstructorReturn(this, _getPrototypeOf(Pane).apply(this, arguments));
- }
-
- _createClass(Pane, [{
- key: "render",
- value: function render() {
- var _this$props = this.props,
- children = _this$props.children,
- className = _this$props.className,
- split = _this$props.split,
- styleProps = _this$props.style,
- size = _this$props.size,
- eleRef = _this$props.eleRef;
- var classes = ['Pane', split, className];
- var style = {
- flex: 1,
- position: 'relative',
- outline: 'none'
- };
-
- if (size !== undefined) {
- if (split === 'vertical') {
- style.width = size;
- } else {
- style.height = size;
- style.display = 'flex';
- }
-
- style.flex = 'none';
- }
-
- style = Object.assign({}, style, styleProps || {});
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
- ref: eleRef,
- className: classes.join(' '),
- style: style
- }, children);
- }
- }]);
-
- return Pane;
- }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.PureComponent);
-
- Pane.propTypes = {
- className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired,
- children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node.isRequired,
- size: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
- split: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['vertical', 'horizontal']),
- style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- eleRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func
- };
- Pane.defaultProps = {};
-
- var RESIZER_DEFAULT_CLASSNAME = 'Resizer';
-
- var Resizer =
- /*#__PURE__*/
- function (_React$Component) {
- _inherits(Resizer, _React$Component);
-
- function Resizer() {
- _classCallCheck(this, Resizer);
-
- return _possibleConstructorReturn(this, _getPrototypeOf(Resizer).apply(this, arguments));
- }
-
- _createClass(Resizer, [{
- key: "render",
- value: function render() {
- var _this$props = this.props,
- className = _this$props.className,
- _onClick = _this$props.onClick,
- _onDoubleClick = _this$props.onDoubleClick,
- _onMouseDown = _this$props.onMouseDown,
- _onTouchEnd = _this$props.onTouchEnd,
- _onTouchStart = _this$props.onTouchStart,
- resizerClassName = _this$props.resizerClassName,
- split = _this$props.split,
- style = _this$props.style;
- var classes = [resizerClassName, split, className];
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", {
- role: "presentation",
- className: classes.join(' '),
- style: style,
- onMouseDown: function onMouseDown(event) {
- return _onMouseDown(event);
- },
- onTouchStart: function onTouchStart(event) {
- event.preventDefault();
-
- _onTouchStart(event);
- },
- onTouchEnd: function onTouchEnd(event) {
- event.preventDefault();
-
- _onTouchEnd(event);
- },
- onClick: function onClick(event) {
- if (_onClick) {
- event.preventDefault();
-
- _onClick(event);
- }
- },
- onDoubleClick: function onDoubleClick(event) {
- if (_onDoubleClick) {
- event.preventDefault();
-
- _onDoubleClick(event);
- }
- }
- });
- }
- }]);
-
- return Resizer;
- }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
-
- Resizer.propTypes = {
- className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired,
- onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- onDoubleClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- onMouseDown: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
- onTouchStart: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
- onTouchEnd: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
- split: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['vertical', 'horizontal']),
- style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- resizerClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired
- };
- Resizer.defaultProps = {
- resizerClassName: RESIZER_DEFAULT_CLASSNAME
- };
-
- function unFocus(document, window) {
- if (document.selection) {
- document.selection.empty();
- } else {
- try {
- window.getSelection().removeAllRanges(); // eslint-disable-next-line no-empty
- } catch (e) {}
- }
- }
-
- function getDefaultSize(defaultSize, minSize, maxSize, draggedSize) {
- if (typeof draggedSize === 'number') {
- var min = typeof minSize === 'number' ? minSize : 0;
- var max = typeof maxSize === 'number' && maxSize >= 0 ? maxSize : Infinity;
- return Math.max(min, Math.min(max, draggedSize));
- }
-
- if (defaultSize !== undefined) {
- return defaultSize;
- }
-
- return minSize;
- }
-
- function removeNullChildren(children) {
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.toArray(children).filter(function (c) {
- return c;
- });
- }
-
- var SplitPane =
- /*#__PURE__*/
- function (_React$Component) {
- _inherits(SplitPane, _React$Component);
-
- function SplitPane(props) {
- var _this;
-
- _classCallCheck(this, SplitPane);
-
- _this = _possibleConstructorReturn(this, _getPrototypeOf(SplitPane).call(this, props));
- _this.onMouseDown = _this.onMouseDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
- _this.onTouchStart = _this.onTouchStart.bind(_assertThisInitialized(_assertThisInitialized(_this)));
- _this.onMouseMove = _this.onMouseMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));
- _this.onTouchMove = _this.onTouchMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));
- _this.onMouseUp = _this.onMouseUp.bind(_assertThisInitialized(_assertThisInitialized(_this))); // order of setting panel sizes.
- // 1. size
- // 2. getDefaultSize(defaultSize, minsize, maxSize)
-
- var size = props.size,
- defaultSize = props.defaultSize,
- minSize = props.minSize,
- maxSize = props.maxSize,
- primary = props.primary;
- var initialSize = size !== undefined ? size : getDefaultSize(defaultSize, minSize, maxSize, null);
- _this.state = {
- active: false,
- resized: false,
- pane1Size: primary === 'first' ? initialSize : undefined,
- pane2Size: primary === 'second' ? initialSize : undefined,
- // these are props that are needed in static functions. ie: gDSFP
- instanceProps: {
- size: size
- }
- };
- return _this;
- }
-
- _createClass(SplitPane, [{
- key: "componentDidMount",
- value: function componentDidMount() {
- document.addEventListener('mouseup', this.onMouseUp);
- document.addEventListener('mousemove', this.onMouseMove);
- document.addEventListener('touchmove', this.onTouchMove);
- this.setState(SplitPane.getSizeUpdate(this.props, this.state));
- }
- }, {
- key: "componentWillUnmount",
- value: function componentWillUnmount() {
- document.removeEventListener('mouseup', this.onMouseUp);
- document.removeEventListener('mousemove', this.onMouseMove);
- document.removeEventListener('touchmove', this.onTouchMove);
- }
- }, {
- key: "onMouseDown",
- value: function onMouseDown(event) {
- var eventWithTouches = Object.assign({}, event, {
- touches: [{
- clientX: event.clientX,
- clientY: event.clientY
- }]
- });
- this.onTouchStart(eventWithTouches);
- }
- }, {
- key: "onTouchStart",
- value: function onTouchStart(event) {
- var _this$props = this.props,
- allowResize = _this$props.allowResize,
- onDragStarted = _this$props.onDragStarted,
- split = _this$props.split;
-
- if (allowResize) {
- unFocus(document, window);
- var position = split === 'vertical' ? event.touches[0].clientX : event.touches[0].clientY;
-
- if (typeof onDragStarted === 'function') {
- onDragStarted();
- }
-
- this.setState({
- active: true,
- position: position
- });
- }
- }
- }, {
- key: "onMouseMove",
- value: function onMouseMove(event) {
- var eventWithTouches = Object.assign({}, event, {
- touches: [{
- clientX: event.clientX,
- clientY: event.clientY
- }]
- });
- this.onTouchMove(eventWithTouches);
- }
- }, {
- key: "onTouchMove",
- value: function onTouchMove(event) {
- var _this$props2 = this.props,
- allowResize = _this$props2.allowResize,
- maxSize = _this$props2.maxSize,
- minSize = _this$props2.minSize,
- onChange = _this$props2.onChange,
- split = _this$props2.split,
- step = _this$props2.step;
- var _this$state = this.state,
- active = _this$state.active,
- position = _this$state.position;
-
- if (allowResize && active) {
- unFocus(document, window);
- var isPrimaryFirst = this.props.primary === 'first';
- var ref = isPrimaryFirst ? this.pane1 : this.pane2;
- var ref2 = isPrimaryFirst ? this.pane2 : this.pane1;
-
- if (ref) {
- var node = ref;
- var node2 = ref2;
-
- if (node.getBoundingClientRect) {
- var width = node.getBoundingClientRect().width;
- var height = node.getBoundingClientRect().height;
- var current = split === 'vertical' ? event.touches[0].clientX : event.touches[0].clientY;
- var size = split === 'vertical' ? width : height;
- var positionDelta = position - current;
-
- if (step) {
- if (Math.abs(positionDelta) < step) {
- return;
- } // Integer division
- // eslint-disable-next-line no-bitwise
-
-
- positionDelta = ~~(positionDelta / step) * step;
- }
-
- var sizeDelta = isPrimaryFirst ? positionDelta : -positionDelta;
- var pane1Order = parseInt(window.getComputedStyle(node).order);
- var pane2Order = parseInt(window.getComputedStyle(node2).order);
-
- if (pane1Order > pane2Order) {
- sizeDelta = -sizeDelta;
- }
-
- var newMaxSize = maxSize;
-
- if (maxSize !== undefined && maxSize <= 0) {
- var splitPane = this.splitPane;
-
- if (split === 'vertical') {
- newMaxSize = splitPane.getBoundingClientRect().width + maxSize;
- } else {
- newMaxSize = splitPane.getBoundingClientRect().height + maxSize;
- }
- }
-
- var newSize = size - sizeDelta;
- var newPosition = position - positionDelta;
-
- if (newSize < minSize) {
- newSize = minSize;
- } else if (maxSize !== undefined && newSize > newMaxSize) {
- newSize = newMaxSize;
- } else {
- this.setState({
- position: newPosition,
- resized: true
- });
- }
-
- if (onChange) onChange(newSize);
- this.setState(_defineProperty({
- draggedSize: newSize
- }, isPrimaryFirst ? 'pane1Size' : 'pane2Size', newSize));
- }
- }
- }
- }
- }, {
- key: "onMouseUp",
- value: function onMouseUp() {
- var _this$props3 = this.props,
- allowResize = _this$props3.allowResize,
- onDragFinished = _this$props3.onDragFinished;
- var _this$state2 = this.state,
- active = _this$state2.active,
- draggedSize = _this$state2.draggedSize;
-
- if (allowResize && active) {
- if (typeof onDragFinished === 'function') {
- onDragFinished(draggedSize);
- }
-
- this.setState({
- active: false
- });
- }
- } // we have to check values since gDSFP is called on every render and more in StrictMode
-
- }, {
- key: "render",
- value: function render() {
- var _this2 = this;
-
- var _this$props4 = this.props,
- allowResize = _this$props4.allowResize,
- children = _this$props4.children,
- className = _this$props4.className,
- onResizerClick = _this$props4.onResizerClick,
- onResizerDoubleClick = _this$props4.onResizerDoubleClick,
- paneClassName = _this$props4.paneClassName,
- pane1ClassName = _this$props4.pane1ClassName,
- pane2ClassName = _this$props4.pane2ClassName,
- paneStyle = _this$props4.paneStyle,
- pane1StyleProps = _this$props4.pane1Style,
- pane2StyleProps = _this$props4.pane2Style,
- resizerClassName = _this$props4.resizerClassName,
- resizerStyle = _this$props4.resizerStyle,
- split = _this$props4.split,
- styleProps = _this$props4.style;
- var _this$state3 = this.state,
- pane1Size = _this$state3.pane1Size,
- pane2Size = _this$state3.pane2Size;
- var disabledClass = allowResize ? '' : 'disabled';
- var resizerClassNamesIncludingDefault = resizerClassName ? "".concat(resizerClassName, " ").concat(RESIZER_DEFAULT_CLASSNAME) : resizerClassName;
- var notNullChildren = removeNullChildren(children);
-
- var style = _objectSpread({
- display: 'flex',
- flex: 1,
- height: '100%',
- position: 'absolute',
- outline: 'none',
- overflow: 'hidden',
- MozUserSelect: 'text',
- WebkitUserSelect: 'text',
- msUserSelect: 'text',
- userSelect: 'text'
- }, styleProps);
-
- if (split === 'vertical') {
- Object.assign(style, {
- flexDirection: 'row',
- left: 0,
- right: 0
- });
- } else {
- Object.assign(style, {
- bottom: 0,
- flexDirection: 'column',
- minHeight: '100%',
- top: 0,
- width: '100%'
- });
- }
-
- var classes = ['SplitPane', className, split, disabledClass];
-
- var pane1Style = _objectSpread({}, paneStyle, pane1StyleProps);
-
- var pane2Style = _objectSpread({}, paneStyle, pane2StyleProps);
-
- var pane1Classes = ['Pane1', paneClassName, pane1ClassName].join(' ');
- var pane2Classes = ['Pane2', paneClassName, pane2ClassName].join(' ');
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
- className: classes.join(' '),
- ref: function ref(node) {
- _this2.splitPane = node;
- },
- style: style
- }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Pane, {
- className: pane1Classes,
- key: "pane1",
- eleRef: function eleRef(node) {
- _this2.pane1 = node;
- },
- size: pane1Size,
- split: split,
- style: pane1Style
- }, notNullChildren[0]), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Resizer, {
- className: disabledClass,
- onClick: onResizerClick,
- onDoubleClick: onResizerDoubleClick,
- onMouseDown: this.onMouseDown,
- onTouchStart: this.onTouchStart,
- onTouchEnd: this.onMouseUp,
- key: "resizer",
- resizerClassName: resizerClassNamesIncludingDefault,
- split: split,
- style: resizerStyle || {}
- }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Pane, {
- className: pane2Classes,
- key: "pane2",
- eleRef: function eleRef(node) {
- _this2.pane2 = node;
- },
- size: pane2Size,
- split: split,
- style: pane2Style
- }, notNullChildren[1]));
- }
- }], [{
- key: "getDerivedStateFromProps",
- value: function getDerivedStateFromProps(nextProps, prevState) {
- return SplitPane.getSizeUpdate(nextProps, prevState);
- }
- }, {
- key: "getSizeUpdate",
- value: function getSizeUpdate(props, state) {
- var newState = {};
- var instanceProps = state.instanceProps;
-
- if (instanceProps.size === props.size && props.size !== undefined) {
- return {};
- }
-
- var newSize = props.size !== undefined ? props.size : getDefaultSize(props.defaultSize, props.minSize, props.maxSize, state.draggedSize);
-
- if (props.size !== undefined) {
- newState.draggedSize = newSize;
- }
-
- var isPanel1Primary = props.primary === 'first';
- newState[isPanel1Primary ? 'pane1Size' : 'pane2Size'] = newSize;
- newState[isPanel1Primary ? 'pane2Size' : 'pane1Size'] = undefined;
- newState.instanceProps = {
- size: props.size
- };
- return newState;
- }
- }]);
-
- return SplitPane;
- }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
-
- SplitPane.propTypes = {
- allowResize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
- children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node).isRequired,
- className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
- primary: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['first', 'second']),
- minSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
- maxSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
- // eslint-disable-next-line react/no-unused-prop-types
- defaultSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
- size: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number]),
- split: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(['vertical', 'horizontal']),
- onDragStarted: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- onDragFinished: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- onChange: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- onResizerClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- onResizerDoubleClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
- style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- resizerStyle: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- paneClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
- pane1ClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
- pane2ClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
- paneStyle: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- pane1Style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- pane2Style: __WEBPACK_IMPORTED_MODULE_2_react_style_proptype___default.a,
- resizerClassName: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
- step: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number
- };
- SplitPane.defaultProps = {
- allowResize: true,
- minSize: 50,
- primary: 'first',
- split: 'vertical',
- paneClassName: '',
- pane1ClassName: '',
- pane2ClassName: ''
- };
- Object(__WEBPACK_IMPORTED_MODULE_3_react_lifecycles_compat__["polyfill"])(SplitPane);
-
- /* harmony default export */ __webpack_exports__["a"] = (SplitPane);
-
-
-
- /***/ }),
-
- /***/ 3069:
- /***/ (function(module, exports, __webpack_require__) {
-
- var properties = __webpack_require__(3070);
- var PropTypes = __webpack_require__(1);
-
- module.exports = function(props, propName, componentName) {
- var styles = props[propName];
- if (!styles) {
- return;
- }
-
- var failures = [];
- Object.keys(styles).forEach(function(styleKey){
- if (properties.indexOf(styleKey) === -1) {
- failures.push(styleKey);
- }
- });
- if (failures.length) {
- throw new Error('Prop ' + propName + ' passed to ' + componentName + '. Has invalid keys ' + failures.join(', '));
- }
- };
-
- module.exports.isRequired = function(props, propName, componentName) {
- if (!props[propName]) {
- throw new Error('Prop ' + propName + ' passed to ' + componentName + ' is required');
- }
- return module.exports(props, propName, componentName);
- };
-
- module.exports.supportingArrays = PropTypes.oneOfType([
- PropTypes.arrayOf(module.exports),
- module.exports
- ]);
-
-
- /***/ }),
-
- /***/ 3070:
- /***/ (function(module, exports) {
-
- // GENERATED DO NOT EDIT
- module.exports = [
- "alignContent",
- "MozAlignContent",
- "WebkitAlignContent",
- "MSAlignContent",
- "OAlignContent",
- "alignItems",
- "MozAlignItems",
- "WebkitAlignItems",
- "MSAlignItems",
- "OAlignItems",
- "alignSelf",
- "MozAlignSelf",
- "WebkitAlignSelf",
- "MSAlignSelf",
- "OAlignSelf",
- "all",
- "MozAll",
- "WebkitAll",
- "MSAll",
- "OAll",
- "animation",
- "MozAnimation",
- "WebkitAnimation",
- "MSAnimation",
- "OAnimation",
- "animationDelay",
- "MozAnimationDelay",
- "WebkitAnimationDelay",
- "MSAnimationDelay",
- "OAnimationDelay",
- "animationDirection",
- "MozAnimationDirection",
- "WebkitAnimationDirection",
- "MSAnimationDirection",
- "OAnimationDirection",
- "animationDuration",
- "MozAnimationDuration",
- "WebkitAnimationDuration",
- "MSAnimationDuration",
- "OAnimationDuration",
- "animationFillMode",
- "MozAnimationFillMode",
- "WebkitAnimationFillMode",
- "MSAnimationFillMode",
- "OAnimationFillMode",
- "animationIterationCount",
- "MozAnimationIterationCount",
- "WebkitAnimationIterationCount",
- "MSAnimationIterationCount",
- "OAnimationIterationCount",
- "animationName",
- "MozAnimationName",
- "WebkitAnimationName",
- "MSAnimationName",
- "OAnimationName",
- "animationPlayState",
- "MozAnimationPlayState",
- "WebkitAnimationPlayState",
- "MSAnimationPlayState",
- "OAnimationPlayState",
- "animationTimingFunction",
- "MozAnimationTimingFunction",
- "WebkitAnimationTimingFunction",
- "MSAnimationTimingFunction",
- "OAnimationTimingFunction",
- "backfaceVisibility",
- "MozBackfaceVisibility",
- "WebkitBackfaceVisibility",
- "MSBackfaceVisibility",
- "OBackfaceVisibility",
- "background",
- "MozBackground",
- "WebkitBackground",
- "MSBackground",
- "OBackground",
- "backgroundAttachment",
- "MozBackgroundAttachment",
- "WebkitBackgroundAttachment",
- "MSBackgroundAttachment",
- "OBackgroundAttachment",
- "backgroundBlendMode",
- "MozBackgroundBlendMode",
- "WebkitBackgroundBlendMode",
- "MSBackgroundBlendMode",
- "OBackgroundBlendMode",
- "backgroundClip",
- "MozBackgroundClip",
- "WebkitBackgroundClip",
- "MSBackgroundClip",
- "OBackgroundClip",
- "backgroundColor",
- "MozBackgroundColor",
- "WebkitBackgroundColor",
- "MSBackgroundColor",
- "OBackgroundColor",
- "backgroundImage",
- "MozBackgroundImage",
- "WebkitBackgroundImage",
- "MSBackgroundImage",
- "OBackgroundImage",
- "backgroundOrigin",
- "MozBackgroundOrigin",
- "WebkitBackgroundOrigin",
- "MSBackgroundOrigin",
- "OBackgroundOrigin",
- "backgroundPosition",
- "MozBackgroundPosition",
- "WebkitBackgroundPosition",
- "MSBackgroundPosition",
- "OBackgroundPosition",
- "backgroundRepeat",
- "MozBackgroundRepeat",
- "WebkitBackgroundRepeat",
- "MSBackgroundRepeat",
- "OBackgroundRepeat",
- "backgroundSize",
- "MozBackgroundSize",
- "WebkitBackgroundSize",
- "MSBackgroundSize",
- "OBackgroundSize",
- "blockSize",
- "MozBlockSize",
- "WebkitBlockSize",
- "MSBlockSize",
- "OBlockSize",
- "border",
- "MozBorder",
- "WebkitBorder",
- "MSBorder",
- "OBorder",
- "borderBlockEnd",
- "MozBorderBlockEnd",
- "WebkitBorderBlockEnd",
- "MSBorderBlockEnd",
- "OBorderBlockEnd",
- "borderBlockEndColor",
- "MozBorderBlockEndColor",
- "WebkitBorderBlockEndColor",
- "MSBorderBlockEndColor",
- "OBorderBlockEndColor",
- "borderBlockEndStyle",
- "MozBorderBlockEndStyle",
- "WebkitBorderBlockEndStyle",
- "MSBorderBlockEndStyle",
- "OBorderBlockEndStyle",
- "borderBlockEndWidth",
- "MozBorderBlockEndWidth",
- "WebkitBorderBlockEndWidth",
- "MSBorderBlockEndWidth",
- "OBorderBlockEndWidth",
- "borderBlockStart",
- "MozBorderBlockStart",
- "WebkitBorderBlockStart",
- "MSBorderBlockStart",
- "OBorderBlockStart",
- "borderBlockStartColor",
- "MozBorderBlockStartColor",
- "WebkitBorderBlockStartColor",
- "MSBorderBlockStartColor",
- "OBorderBlockStartColor",
- "borderBlockStartStyle",
- "MozBorderBlockStartStyle",
- "WebkitBorderBlockStartStyle",
- "MSBorderBlockStartStyle",
- "OBorderBlockStartStyle",
- "borderBlockStartWidth",
- "MozBorderBlockStartWidth",
- "WebkitBorderBlockStartWidth",
- "MSBorderBlockStartWidth",
- "OBorderBlockStartWidth",
- "borderBottom",
- "MozBorderBottom",
- "WebkitBorderBottom",
- "MSBorderBottom",
- "OBorderBottom",
- "borderBottomColor",
- "MozBorderBottomColor",
- "WebkitBorderBottomColor",
- "MSBorderBottomColor",
- "OBorderBottomColor",
- "borderBottomLeftRadius",
- "MozBorderBottomLeftRadius",
- "WebkitBorderBottomLeftRadius",
- "MSBorderBottomLeftRadius",
- "OBorderBottomLeftRadius",
- "borderBottomRightRadius",
- "MozBorderBottomRightRadius",
- "WebkitBorderBottomRightRadius",
- "MSBorderBottomRightRadius",
- "OBorderBottomRightRadius",
- "borderBottomStyle",
- "MozBorderBottomStyle",
- "WebkitBorderBottomStyle",
- "MSBorderBottomStyle",
- "OBorderBottomStyle",
- "borderBottomWidth",
- "MozBorderBottomWidth",
- "WebkitBorderBottomWidth",
- "MSBorderBottomWidth",
- "OBorderBottomWidth",
- "borderCollapse",
- "MozBorderCollapse",
- "WebkitBorderCollapse",
- "MSBorderCollapse",
- "OBorderCollapse",
- "borderColor",
- "MozBorderColor",
- "WebkitBorderColor",
- "MSBorderColor",
- "OBorderColor",
- "borderImage",
- "MozBorderImage",
- "WebkitBorderImage",
- "MSBorderImage",
- "OBorderImage",
- "borderImageOutset",
- "MozBorderImageOutset",
- "WebkitBorderImageOutset",
- "MSBorderImageOutset",
- "OBorderImageOutset",
- "borderImageRepeat",
- "MozBorderImageRepeat",
- "WebkitBorderImageRepeat",
- "MSBorderImageRepeat",
- "OBorderImageRepeat",
- "borderImageSlice",
- "MozBorderImageSlice",
- "WebkitBorderImageSlice",
- "MSBorderImageSlice",
- "OBorderImageSlice",
- "borderImageSource",
- "MozBorderImageSource",
- "WebkitBorderImageSource",
- "MSBorderImageSource",
- "OBorderImageSource",
- "borderImageWidth",
- "MozBorderImageWidth",
- "WebkitBorderImageWidth",
- "MSBorderImageWidth",
- "OBorderImageWidth",
- "borderInlineEnd",
- "MozBorderInlineEnd",
- "WebkitBorderInlineEnd",
- "MSBorderInlineEnd",
- "OBorderInlineEnd",
- "borderInlineEndColor",
- "MozBorderInlineEndColor",
- "WebkitBorderInlineEndColor",
- "MSBorderInlineEndColor",
- "OBorderInlineEndColor",
- "borderInlineEndStyle",
- "MozBorderInlineEndStyle",
- "WebkitBorderInlineEndStyle",
- "MSBorderInlineEndStyle",
- "OBorderInlineEndStyle",
- "borderInlineEndWidth",
- "MozBorderInlineEndWidth",
- "WebkitBorderInlineEndWidth",
- "MSBorderInlineEndWidth",
- "OBorderInlineEndWidth",
- "borderInlineStart",
- "MozBorderInlineStart",
- "WebkitBorderInlineStart",
- "MSBorderInlineStart",
- "OBorderInlineStart",
- "borderInlineStartColor",
- "MozBorderInlineStartColor",
- "WebkitBorderInlineStartColor",
- "MSBorderInlineStartColor",
- "OBorderInlineStartColor",
- "borderInlineStartStyle",
- "MozBorderInlineStartStyle",
- "WebkitBorderInlineStartStyle",
- "MSBorderInlineStartStyle",
- "OBorderInlineStartStyle",
- "borderInlineStartWidth",
- "MozBorderInlineStartWidth",
- "WebkitBorderInlineStartWidth",
- "MSBorderInlineStartWidth",
- "OBorderInlineStartWidth",
- "borderLeft",
- "MozBorderLeft",
- "WebkitBorderLeft",
- "MSBorderLeft",
- "OBorderLeft",
- "borderLeftColor",
- "MozBorderLeftColor",
- "WebkitBorderLeftColor",
- "MSBorderLeftColor",
- "OBorderLeftColor",
- "borderLeftStyle",
- "MozBorderLeftStyle",
- "WebkitBorderLeftStyle",
- "MSBorderLeftStyle",
- "OBorderLeftStyle",
- "borderLeftWidth",
- "MozBorderLeftWidth",
- "WebkitBorderLeftWidth",
- "MSBorderLeftWidth",
- "OBorderLeftWidth",
- "borderRadius",
- "MozBorderRadius",
- "WebkitBorderRadius",
- "MSBorderRadius",
- "OBorderRadius",
- "borderRight",
- "MozBorderRight",
- "WebkitBorderRight",
- "MSBorderRight",
- "OBorderRight",
- "borderRightColor",
- "MozBorderRightColor",
- "WebkitBorderRightColor",
- "MSBorderRightColor",
- "OBorderRightColor",
- "borderRightStyle",
- "MozBorderRightStyle",
- "WebkitBorderRightStyle",
- "MSBorderRightStyle",
- "OBorderRightStyle",
- "borderRightWidth",
- "MozBorderRightWidth",
- "WebkitBorderRightWidth",
- "MSBorderRightWidth",
- "OBorderRightWidth",
- "borderSpacing",
- "MozBorderSpacing",
- "WebkitBorderSpacing",
- "MSBorderSpacing",
- "OBorderSpacing",
- "borderStyle",
- "MozBorderStyle",
- "WebkitBorderStyle",
- "MSBorderStyle",
- "OBorderStyle",
- "borderTop",
- "MozBorderTop",
- "WebkitBorderTop",
- "MSBorderTop",
- "OBorderTop",
- "borderTopColor",
- "MozBorderTopColor",
- "WebkitBorderTopColor",
- "MSBorderTopColor",
- "OBorderTopColor",
- "borderTopLeftRadius",
- "MozBorderTopLeftRadius",
- "WebkitBorderTopLeftRadius",
- "MSBorderTopLeftRadius",
- "OBorderTopLeftRadius",
- "borderTopRightRadius",
- "MozBorderTopRightRadius",
- "WebkitBorderTopRightRadius",
- "MSBorderTopRightRadius",
- "OBorderTopRightRadius",
- "borderTopStyle",
- "MozBorderTopStyle",
- "WebkitBorderTopStyle",
- "MSBorderTopStyle",
- "OBorderTopStyle",
- "borderTopWidth",
- "MozBorderTopWidth",
- "WebkitBorderTopWidth",
- "MSBorderTopWidth",
- "OBorderTopWidth",
- "borderWidth",
- "MozBorderWidth",
- "WebkitBorderWidth",
- "MSBorderWidth",
- "OBorderWidth",
- "bottom",
- "MozBottom",
- "WebkitBottom",
- "MSBottom",
- "OBottom",
- "boxDecorationBreak",
- "MozBoxDecorationBreak",
- "WebkitBoxDecorationBreak",
- "MSBoxDecorationBreak",
- "OBoxDecorationBreak",
- "boxShadow",
- "MozBoxShadow",
- "WebkitBoxShadow",
- "MSBoxShadow",
- "OBoxShadow",
- "boxSizing",
- "MozBoxSizing",
- "WebkitBoxSizing",
- "MSBoxSizing",
- "OBoxSizing",
- "breakAfter",
- "MozBreakAfter",
- "WebkitBreakAfter",
- "MSBreakAfter",
- "OBreakAfter",
- "breakBefore",
- "MozBreakBefore",
- "WebkitBreakBefore",
- "MSBreakBefore",
- "OBreakBefore",
- "breakInside",
- "MozBreakInside",
- "WebkitBreakInside",
- "MSBreakInside",
- "OBreakInside",
- "captionSide",
- "MozCaptionSide",
- "WebkitCaptionSide",
- "MSCaptionSide",
- "OCaptionSide",
- "caretColor",
- "MozCaretColor",
- "WebkitCaretColor",
- "MSCaretColor",
- "OCaretColor",
- "ch",
- "MozCh",
- "WebkitCh",
- "MSCh",
- "OCh",
- "clear",
- "MozClear",
- "WebkitClear",
- "MSClear",
- "OClear",
- "clip",
- "MozClip",
- "WebkitClip",
- "MSClip",
- "OClip",
- "clipPath",
- "MozClipPath",
- "WebkitClipPath",
- "MSClipPath",
- "OClipPath",
- "cm",
- "MozCm",
- "WebkitCm",
- "MSCm",
- "OCm",
- "color",
- "MozColor",
- "WebkitColor",
- "MSColor",
- "OColor",
- "columnCount",
- "MozColumnCount",
- "WebkitColumnCount",
- "MSColumnCount",
- "OColumnCount",
- "columnFill",
- "MozColumnFill",
- "WebkitColumnFill",
- "MSColumnFill",
- "OColumnFill",
- "columnGap",
- "MozColumnGap",
- "WebkitColumnGap",
- "MSColumnGap",
- "OColumnGap",
- "columnRule",
- "MozColumnRule",
- "WebkitColumnRule",
- "MSColumnRule",
- "OColumnRule",
- "columnRuleColor",
- "MozColumnRuleColor",
- "WebkitColumnRuleColor",
- "MSColumnRuleColor",
- "OColumnRuleColor",
- "columnRuleStyle",
- "MozColumnRuleStyle",
- "WebkitColumnRuleStyle",
- "MSColumnRuleStyle",
- "OColumnRuleStyle",
- "columnRuleWidth",
- "MozColumnRuleWidth",
- "WebkitColumnRuleWidth",
- "MSColumnRuleWidth",
- "OColumnRuleWidth",
- "columnSpan",
- "MozColumnSpan",
- "WebkitColumnSpan",
- "MSColumnSpan",
- "OColumnSpan",
- "columnWidth",
- "MozColumnWidth",
- "WebkitColumnWidth",
- "MSColumnWidth",
- "OColumnWidth",
- "columns",
- "MozColumns",
- "WebkitColumns",
- "MSColumns",
- "OColumns",
- "content",
- "MozContent",
- "WebkitContent",
- "MSContent",
- "OContent",
- "counterIncrement",
- "MozCounterIncrement",
- "WebkitCounterIncrement",
- "MSCounterIncrement",
- "OCounterIncrement",
- "counterReset",
- "MozCounterReset",
- "WebkitCounterReset",
- "MSCounterReset",
- "OCounterReset",
- "cursor",
- "MozCursor",
- "WebkitCursor",
- "MSCursor",
- "OCursor",
- "deg",
- "MozDeg",
- "WebkitDeg",
- "MSDeg",
- "ODeg",
- "direction",
- "MozDirection",
- "WebkitDirection",
- "MSDirection",
- "ODirection",
- "display",
- "MozDisplay",
- "WebkitDisplay",
- "MSDisplay",
- "ODisplay",
- "dpcm",
- "MozDpcm",
- "WebkitDpcm",
- "MSDpcm",
- "ODpcm",
- "dpi",
- "MozDpi",
- "WebkitDpi",
- "MSDpi",
- "ODpi",
- "dppx",
- "MozDppx",
- "WebkitDppx",
- "MSDppx",
- "ODppx",
- "em",
- "MozEm",
- "WebkitEm",
- "MSEm",
- "OEm",
- "emptyCells",
- "MozEmptyCells",
- "WebkitEmptyCells",
- "MSEmptyCells",
- "OEmptyCells",
- "ex",
- "MozEx",
- "WebkitEx",
- "MSEx",
- "OEx",
- "filter",
- "MozFilter",
- "WebkitFilter",
- "MSFilter",
- "OFilter",
- "flexBasis",
- "MozFlexBasis",
- "WebkitFlexBasis",
- "MSFlexBasis",
- "OFlexBasis",
- "flexDirection",
- "MozFlexDirection",
- "WebkitFlexDirection",
- "MSFlexDirection",
- "OFlexDirection",
- "flexFlow",
- "MozFlexFlow",
- "WebkitFlexFlow",
- "MSFlexFlow",
- "OFlexFlow",
- "flexGrow",
- "MozFlexGrow",
- "WebkitFlexGrow",
- "MSFlexGrow",
- "OFlexGrow",
- "flexShrink",
- "MozFlexShrink",
- "WebkitFlexShrink",
- "MSFlexShrink",
- "OFlexShrink",
- "flexWrap",
- "MozFlexWrap",
- "WebkitFlexWrap",
- "MSFlexWrap",
- "OFlexWrap",
- "float",
- "MozFloat",
- "WebkitFloat",
- "MSFloat",
- "OFloat",
- "font",
- "MozFont",
- "WebkitFont",
- "MSFont",
- "OFont",
- "fontFamily",
- "MozFontFamily",
- "WebkitFontFamily",
- "MSFontFamily",
- "OFontFamily",
- "fontFeatureSettings",
- "MozFontFeatureSettings",
- "WebkitFontFeatureSettings",
- "MSFontFeatureSettings",
- "OFontFeatureSettings",
- "fontKerning",
- "MozFontKerning",
- "WebkitFontKerning",
- "MSFontKerning",
- "OFontKerning",
- "fontLanguageOverride",
- "MozFontLanguageOverride",
- "WebkitFontLanguageOverride",
- "MSFontLanguageOverride",
- "OFontLanguageOverride",
- "fontSize",
- "MozFontSize",
- "WebkitFontSize",
- "MSFontSize",
- "OFontSize",
- "fontSizeAdjust",
- "MozFontSizeAdjust",
- "WebkitFontSizeAdjust",
- "MSFontSizeAdjust",
- "OFontSizeAdjust",
- "fontStretch",
- "MozFontStretch",
- "WebkitFontStretch",
- "MSFontStretch",
- "OFontStretch",
- "fontStyle",
- "MozFontStyle",
- "WebkitFontStyle",
- "MSFontStyle",
- "OFontStyle",
- "fontSynthesis",
- "MozFontSynthesis",
- "WebkitFontSynthesis",
- "MSFontSynthesis",
- "OFontSynthesis",
- "fontVariant",
- "MozFontVariant",
- "WebkitFontVariant",
- "MSFontVariant",
- "OFontVariant",
- "fontVariantAlternates",
- "MozFontVariantAlternates",
- "WebkitFontVariantAlternates",
- "MSFontVariantAlternates",
- "OFontVariantAlternates",
- "fontVariantCaps",
- "MozFontVariantCaps",
- "WebkitFontVariantCaps",
- "MSFontVariantCaps",
- "OFontVariantCaps",
- "fontVariantEastAsian",
- "MozFontVariantEastAsian",
- "WebkitFontVariantEastAsian",
- "MSFontVariantEastAsian",
- "OFontVariantEastAsian",
- "fontVariantLigatures",
- "MozFontVariantLigatures",
- "WebkitFontVariantLigatures",
- "MSFontVariantLigatures",
- "OFontVariantLigatures",
- "fontVariantNumeric",
- "MozFontVariantNumeric",
- "WebkitFontVariantNumeric",
- "MSFontVariantNumeric",
- "OFontVariantNumeric",
- "fontVariantPosition",
- "MozFontVariantPosition",
- "WebkitFontVariantPosition",
- "MSFontVariantPosition",
- "OFontVariantPosition",
- "fontWeight",
- "MozFontWeight",
- "WebkitFontWeight",
- "MSFontWeight",
- "OFontWeight",
- "fr",
- "MozFr",
- "WebkitFr",
- "MSFr",
- "OFr",
- "grad",
- "MozGrad",
- "WebkitGrad",
- "MSGrad",
- "OGrad",
- "grid",
- "MozGrid",
- "WebkitGrid",
- "MSGrid",
- "OGrid",
- "gridArea",
- "MozGridArea",
- "WebkitGridArea",
- "MSGridArea",
- "OGridArea",
- "gridAutoColumns",
- "MozGridAutoColumns",
- "WebkitGridAutoColumns",
- "MSGridAutoColumns",
- "OGridAutoColumns",
- "gridAutoFlow",
- "MozGridAutoFlow",
- "WebkitGridAutoFlow",
- "MSGridAutoFlow",
- "OGridAutoFlow",
- "gridAutoRows",
- "MozGridAutoRows",
- "WebkitGridAutoRows",
- "MSGridAutoRows",
- "OGridAutoRows",
- "gridColumn",
- "MozGridColumn",
- "WebkitGridColumn",
- "MSGridColumn",
- "OGridColumn",
- "gridColumnEnd",
- "MozGridColumnEnd",
- "WebkitGridColumnEnd",
- "MSGridColumnEnd",
- "OGridColumnEnd",
- "gridColumnGap",
- "MozGridColumnGap",
- "WebkitGridColumnGap",
- "MSGridColumnGap",
- "OGridColumnGap",
- "gridColumnStart",
- "MozGridColumnStart",
- "WebkitGridColumnStart",
- "MSGridColumnStart",
- "OGridColumnStart",
- "gridGap",
- "MozGridGap",
- "WebkitGridGap",
- "MSGridGap",
- "OGridGap",
- "gridRow",
- "MozGridRow",
- "WebkitGridRow",
- "MSGridRow",
- "OGridRow",
- "gridRowEnd",
- "MozGridRowEnd",
- "WebkitGridRowEnd",
- "MSGridRowEnd",
- "OGridRowEnd",
- "gridRowGap",
- "MozGridRowGap",
- "WebkitGridRowGap",
- "MSGridRowGap",
- "OGridRowGap",
- "gridRowStart",
- "MozGridRowStart",
- "WebkitGridRowStart",
- "MSGridRowStart",
- "OGridRowStart",
- "gridTemplate",
- "MozGridTemplate",
- "WebkitGridTemplate",
- "MSGridTemplate",
- "OGridTemplate",
- "gridTemplateAreas",
- "MozGridTemplateAreas",
- "WebkitGridTemplateAreas",
- "MSGridTemplateAreas",
- "OGridTemplateAreas",
- "gridTemplateColumns",
- "MozGridTemplateColumns",
- "WebkitGridTemplateColumns",
- "MSGridTemplateColumns",
- "OGridTemplateColumns",
- "gridTemplateRows",
- "MozGridTemplateRows",
- "WebkitGridTemplateRows",
- "MSGridTemplateRows",
- "OGridTemplateRows",
- "height",
- "MozHeight",
- "WebkitHeight",
- "MSHeight",
- "OHeight",
- "hyphens",
- "MozHyphens",
- "WebkitHyphens",
- "MSHyphens",
- "OHyphens",
- "hz",
- "MozHz",
- "WebkitHz",
- "MSHz",
- "OHz",
- "imageOrientation",
- "MozImageOrientation",
- "WebkitImageOrientation",
- "MSImageOrientation",
- "OImageOrientation",
- "imageRendering",
- "MozImageRendering",
- "WebkitImageRendering",
- "MSImageRendering",
- "OImageRendering",
- "imageResolution",
- "MozImageResolution",
- "WebkitImageResolution",
- "MSImageResolution",
- "OImageResolution",
- "imeMode",
- "MozImeMode",
- "WebkitImeMode",
- "MSImeMode",
- "OImeMode",
- "in",
- "MozIn",
- "WebkitIn",
- "MSIn",
- "OIn",
- "inherit",
- "MozInherit",
- "WebkitInherit",
- "MSInherit",
- "OInherit",
- "initial",
- "MozInitial",
- "WebkitInitial",
- "MSInitial",
- "OInitial",
- "inlineSize",
- "MozInlineSize",
- "WebkitInlineSize",
- "MSInlineSize",
- "OInlineSize",
- "isolation",
- "MozIsolation",
- "WebkitIsolation",
- "MSIsolation",
- "OIsolation",
- "justifyContent",
- "MozJustifyContent",
- "WebkitJustifyContent",
- "MSJustifyContent",
- "OJustifyContent",
- "khz",
- "MozKhz",
- "WebkitKhz",
- "MSKhz",
- "OKhz",
- "left",
- "MozLeft",
- "WebkitLeft",
- "MSLeft",
- "OLeft",
- "letterSpacing",
- "MozLetterSpacing",
- "WebkitLetterSpacing",
- "MSLetterSpacing",
- "OLetterSpacing",
- "lineBreak",
- "MozLineBreak",
- "WebkitLineBreak",
- "MSLineBreak",
- "OLineBreak",
- "lineHeight",
- "MozLineHeight",
- "WebkitLineHeight",
- "MSLineHeight",
- "OLineHeight",
- "listStyle",
- "MozListStyle",
- "WebkitListStyle",
- "MSListStyle",
- "OListStyle",
- "listStyleImage",
- "MozListStyleImage",
- "WebkitListStyleImage",
- "MSListStyleImage",
- "OListStyleImage",
- "listStylePosition",
- "MozListStylePosition",
- "WebkitListStylePosition",
- "MSListStylePosition",
- "OListStylePosition",
- "listStyleType",
- "MozListStyleType",
- "WebkitListStyleType",
- "MSListStyleType",
- "OListStyleType",
- "margin",
- "MozMargin",
- "WebkitMargin",
- "MSMargin",
- "OMargin",
- "marginBlockEnd",
- "MozMarginBlockEnd",
- "WebkitMarginBlockEnd",
- "MSMarginBlockEnd",
- "OMarginBlockEnd",
- "marginBlockStart",
- "MozMarginBlockStart",
- "WebkitMarginBlockStart",
- "MSMarginBlockStart",
- "OMarginBlockStart",
- "marginBottom",
- "MozMarginBottom",
- "WebkitMarginBottom",
- "MSMarginBottom",
- "OMarginBottom",
- "marginInlineEnd",
- "MozMarginInlineEnd",
- "WebkitMarginInlineEnd",
- "MSMarginInlineEnd",
- "OMarginInlineEnd",
- "marginInlineStart",
- "MozMarginInlineStart",
- "WebkitMarginInlineStart",
- "MSMarginInlineStart",
- "OMarginInlineStart",
- "marginLeft",
- "MozMarginLeft",
- "WebkitMarginLeft",
- "MSMarginLeft",
- "OMarginLeft",
- "marginRight",
- "MozMarginRight",
- "WebkitMarginRight",
- "MSMarginRight",
- "OMarginRight",
- "marginTop",
- "MozMarginTop",
- "WebkitMarginTop",
- "MSMarginTop",
- "OMarginTop",
- "mask",
- "MozMask",
- "WebkitMask",
- "MSMask",
- "OMask",
- "maskClip",
- "MozMaskClip",
- "WebkitMaskClip",
- "MSMaskClip",
- "OMaskClip",
- "maskComposite",
- "MozMaskComposite",
- "WebkitMaskComposite",
- "MSMaskComposite",
- "OMaskComposite",
- "maskImage",
- "MozMaskImage",
- "WebkitMaskImage",
- "MSMaskImage",
- "OMaskImage",
- "maskMode",
- "MozMaskMode",
- "WebkitMaskMode",
- "MSMaskMode",
- "OMaskMode",
- "maskOrigin",
- "MozMaskOrigin",
- "WebkitMaskOrigin",
- "MSMaskOrigin",
- "OMaskOrigin",
- "maskPosition",
- "MozMaskPosition",
- "WebkitMaskPosition",
- "MSMaskPosition",
- "OMaskPosition",
- "maskRepeat",
- "MozMaskRepeat",
- "WebkitMaskRepeat",
- "MSMaskRepeat",
- "OMaskRepeat",
- "maskSize",
- "MozMaskSize",
- "WebkitMaskSize",
- "MSMaskSize",
- "OMaskSize",
- "maskType",
- "MozMaskType",
- "WebkitMaskType",
- "MSMaskType",
- "OMaskType",
- "maxHeight",
- "MozMaxHeight",
- "WebkitMaxHeight",
- "MSMaxHeight",
- "OMaxHeight",
- "maxWidth",
- "MozMaxWidth",
- "WebkitMaxWidth",
- "MSMaxWidth",
- "OMaxWidth",
- "minBlockSize",
- "MozMinBlockSize",
- "WebkitMinBlockSize",
- "MSMinBlockSize",
- "OMinBlockSize",
- "minHeight",
- "MozMinHeight",
- "WebkitMinHeight",
- "MSMinHeight",
- "OMinHeight",
- "minInlineSize",
- "MozMinInlineSize",
- "WebkitMinInlineSize",
- "MSMinInlineSize",
- "OMinInlineSize",
- "minWidth",
- "MozMinWidth",
- "WebkitMinWidth",
- "MSMinWidth",
- "OMinWidth",
- "mixBlendMode",
- "MozMixBlendMode",
- "WebkitMixBlendMode",
- "MSMixBlendMode",
- "OMixBlendMode",
- "mm",
- "MozMm",
- "WebkitMm",
- "MSMm",
- "OMm",
- "ms",
- "MozMs",
- "WebkitMs",
- "MSMs",
- "OMs",
- "objectFit",
- "MozObjectFit",
- "WebkitObjectFit",
- "MSObjectFit",
- "OObjectFit",
- "objectPosition",
- "MozObjectPosition",
- "WebkitObjectPosition",
- "MSObjectPosition",
- "OObjectPosition",
- "offsetBlockEnd",
- "MozOffsetBlockEnd",
- "WebkitOffsetBlockEnd",
- "MSOffsetBlockEnd",
- "OOffsetBlockEnd",
- "offsetBlockStart",
- "MozOffsetBlockStart",
- "WebkitOffsetBlockStart",
- "MSOffsetBlockStart",
- "OOffsetBlockStart",
- "offsetInlineEnd",
- "MozOffsetInlineEnd",
- "WebkitOffsetInlineEnd",
- "MSOffsetInlineEnd",
- "OOffsetInlineEnd",
- "offsetInlineStart",
- "MozOffsetInlineStart",
- "WebkitOffsetInlineStart",
- "MSOffsetInlineStart",
- "OOffsetInlineStart",
- "opacity",
- "MozOpacity",
- "WebkitOpacity",
- "MSOpacity",
- "OOpacity",
- "order",
- "MozOrder",
- "WebkitOrder",
- "MSOrder",
- "OOrder",
- "orphans",
- "MozOrphans",
- "WebkitOrphans",
- "MSOrphans",
- "OOrphans",
- "outline",
- "MozOutline",
- "WebkitOutline",
- "MSOutline",
- "OOutline",
- "outlineColor",
- "MozOutlineColor",
- "WebkitOutlineColor",
- "MSOutlineColor",
- "OOutlineColor",
- "outlineOffset",
- "MozOutlineOffset",
- "WebkitOutlineOffset",
- "MSOutlineOffset",
- "OOutlineOffset",
- "outlineStyle",
- "MozOutlineStyle",
- "WebkitOutlineStyle",
- "MSOutlineStyle",
- "OOutlineStyle",
- "outlineWidth",
- "MozOutlineWidth",
- "WebkitOutlineWidth",
- "MSOutlineWidth",
- "OOutlineWidth",
- "overflow",
- "MozOverflow",
- "WebkitOverflow",
- "MSOverflow",
- "OOverflow",
- "overflowWrap",
- "MozOverflowWrap",
- "WebkitOverflowWrap",
- "MSOverflowWrap",
- "OOverflowWrap",
- "overflowX",
- "MozOverflowX",
- "WebkitOverflowX",
- "MSOverflowX",
- "OOverflowX",
- "overflowY",
- "MozOverflowY",
- "WebkitOverflowY",
- "MSOverflowY",
- "OOverflowY",
- "padding",
- "MozPadding",
- "WebkitPadding",
- "MSPadding",
- "OPadding",
- "paddingBlockEnd",
- "MozPaddingBlockEnd",
- "WebkitPaddingBlockEnd",
- "MSPaddingBlockEnd",
- "OPaddingBlockEnd",
- "paddingBlockStart",
- "MozPaddingBlockStart",
- "WebkitPaddingBlockStart",
- "MSPaddingBlockStart",
- "OPaddingBlockStart",
- "paddingBottom",
- "MozPaddingBottom",
- "WebkitPaddingBottom",
- "MSPaddingBottom",
- "OPaddingBottom",
- "paddingInlineEnd",
- "MozPaddingInlineEnd",
- "WebkitPaddingInlineEnd",
- "MSPaddingInlineEnd",
- "OPaddingInlineEnd",
- "paddingInlineStart",
- "MozPaddingInlineStart",
- "WebkitPaddingInlineStart",
- "MSPaddingInlineStart",
- "OPaddingInlineStart",
- "paddingLeft",
- "MozPaddingLeft",
- "WebkitPaddingLeft",
- "MSPaddingLeft",
- "OPaddingLeft",
- "paddingRight",
- "MozPaddingRight",
- "WebkitPaddingRight",
- "MSPaddingRight",
- "OPaddingRight",
- "paddingTop",
- "MozPaddingTop",
- "WebkitPaddingTop",
- "MSPaddingTop",
- "OPaddingTop",
- "pageBreakAfter",
- "MozPageBreakAfter",
- "WebkitPageBreakAfter",
- "MSPageBreakAfter",
- "OPageBreakAfter",
- "pageBreakBefore",
- "MozPageBreakBefore",
- "WebkitPageBreakBefore",
- "MSPageBreakBefore",
- "OPageBreakBefore",
- "pageBreakInside",
- "MozPageBreakInside",
- "WebkitPageBreakInside",
- "MSPageBreakInside",
- "OPageBreakInside",
- "pc",
- "MozPc",
- "WebkitPc",
- "MSPc",
- "OPc",
- "perspective",
- "MozPerspective",
- "WebkitPerspective",
- "MSPerspective",
- "OPerspective",
- "perspectiveOrigin",
- "MozPerspectiveOrigin",
- "WebkitPerspectiveOrigin",
- "MSPerspectiveOrigin",
- "OPerspectiveOrigin",
- "pointerEvents",
- "MozPointerEvents",
- "WebkitPointerEvents",
- "MSPointerEvents",
- "OPointerEvents",
- "position",
- "MozPosition",
- "WebkitPosition",
- "MSPosition",
- "OPosition",
- "pt",
- "MozPt",
- "WebkitPt",
- "MSPt",
- "OPt",
- "px",
- "MozPx",
- "WebkitPx",
- "MSPx",
- "OPx",
- "q",
- "MozQ",
- "WebkitQ",
- "MSQ",
- "OQ",
- "quotes",
- "MozQuotes",
- "WebkitQuotes",
- "MSQuotes",
- "OQuotes",
- "rad",
- "MozRad",
- "WebkitRad",
- "MSRad",
- "ORad",
- "rem",
- "MozRem",
- "WebkitRem",
- "MSRem",
- "ORem",
- "resize",
- "MozResize",
- "WebkitResize",
- "MSResize",
- "OResize",
- "revert",
- "MozRevert",
- "WebkitRevert",
- "MSRevert",
- "ORevert",
- "right",
- "MozRight",
- "WebkitRight",
- "MSRight",
- "ORight",
- "rubyAlign",
- "MozRubyAlign",
- "WebkitRubyAlign",
- "MSRubyAlign",
- "ORubyAlign",
- "rubyMerge",
- "MozRubyMerge",
- "WebkitRubyMerge",
- "MSRubyMerge",
- "ORubyMerge",
- "rubyPosition",
- "MozRubyPosition",
- "WebkitRubyPosition",
- "MSRubyPosition",
- "ORubyPosition",
- "s",
- "MozS",
- "WebkitS",
- "MSS",
- "OS",
- "scrollBehavior",
- "MozScrollBehavior",
- "WebkitScrollBehavior",
- "MSScrollBehavior",
- "OScrollBehavior",
- "scrollSnapCoordinate",
- "MozScrollSnapCoordinate",
- "WebkitScrollSnapCoordinate",
- "MSScrollSnapCoordinate",
- "OScrollSnapCoordinate",
- "scrollSnapDestination",
- "MozScrollSnapDestination",
- "WebkitScrollSnapDestination",
- "MSScrollSnapDestination",
- "OScrollSnapDestination",
- "scrollSnapType",
- "MozScrollSnapType",
- "WebkitScrollSnapType",
- "MSScrollSnapType",
- "OScrollSnapType",
- "shapeImageThreshold",
- "MozShapeImageThreshold",
- "WebkitShapeImageThreshold",
- "MSShapeImageThreshold",
- "OShapeImageThreshold",
- "shapeMargin",
- "MozShapeMargin",
- "WebkitShapeMargin",
- "MSShapeMargin",
- "OShapeMargin",
- "shapeOutside",
- "MozShapeOutside",
- "WebkitShapeOutside",
- "MSShapeOutside",
- "OShapeOutside",
- "tabSize",
- "MozTabSize",
- "WebkitTabSize",
- "MSTabSize",
- "OTabSize",
- "tableLayout",
- "MozTableLayout",
- "WebkitTableLayout",
- "MSTableLayout",
- "OTableLayout",
- "textAlign",
- "MozTextAlign",
- "WebkitTextAlign",
- "MSTextAlign",
- "OTextAlign",
- "textAlignLast",
- "MozTextAlignLast",
- "WebkitTextAlignLast",
- "MSTextAlignLast",
- "OTextAlignLast",
- "textCombineUpright",
- "MozTextCombineUpright",
- "WebkitTextCombineUpright",
- "MSTextCombineUpright",
- "OTextCombineUpright",
- "textDecoration",
- "MozTextDecoration",
- "WebkitTextDecoration",
- "MSTextDecoration",
- "OTextDecoration",
- "textDecorationColor",
- "MozTextDecorationColor",
- "WebkitTextDecorationColor",
- "MSTextDecorationColor",
- "OTextDecorationColor",
- "textDecorationLine",
- "MozTextDecorationLine",
- "WebkitTextDecorationLine",
- "MSTextDecorationLine",
- "OTextDecorationLine",
- "textDecorationStyle",
- "MozTextDecorationStyle",
- "WebkitTextDecorationStyle",
- "MSTextDecorationStyle",
- "OTextDecorationStyle",
- "textEmphasis",
- "MozTextEmphasis",
- "WebkitTextEmphasis",
- "MSTextEmphasis",
- "OTextEmphasis",
- "textEmphasisColor",
- "MozTextEmphasisColor",
- "WebkitTextEmphasisColor",
- "MSTextEmphasisColor",
- "OTextEmphasisColor",
- "textEmphasisPosition",
- "MozTextEmphasisPosition",
- "WebkitTextEmphasisPosition",
- "MSTextEmphasisPosition",
- "OTextEmphasisPosition",
- "textEmphasisStyle",
- "MozTextEmphasisStyle",
- "WebkitTextEmphasisStyle",
- "MSTextEmphasisStyle",
- "OTextEmphasisStyle",
- "textIndent",
- "MozTextIndent",
- "WebkitTextIndent",
- "MSTextIndent",
- "OTextIndent",
- "textOrientation",
- "MozTextOrientation",
- "WebkitTextOrientation",
- "MSTextOrientation",
- "OTextOrientation",
- "textOverflow",
- "MozTextOverflow",
- "WebkitTextOverflow",
- "MSTextOverflow",
- "OTextOverflow",
- "textRendering",
- "MozTextRendering",
- "WebkitTextRendering",
- "MSTextRendering",
- "OTextRendering",
- "textShadow",
- "MozTextShadow",
- "WebkitTextShadow",
- "MSTextShadow",
- "OTextShadow",
- "textTransform",
- "MozTextTransform",
- "WebkitTextTransform",
- "MSTextTransform",
- "OTextTransform",
- "textUnderlinePosition",
- "MozTextUnderlinePosition",
- "WebkitTextUnderlinePosition",
- "MSTextUnderlinePosition",
- "OTextUnderlinePosition",
- "top",
- "MozTop",
- "WebkitTop",
- "MSTop",
- "OTop",
- "touchAction",
- "MozTouchAction",
- "WebkitTouchAction",
- "MSTouchAction",
- "OTouchAction",
- "transform",
- "MozTransform",
- "WebkitTransform",
- "msTransform",
- "OTransform",
- "transformBox",
- "MozTransformBox",
- "WebkitTransformBox",
- "MSTransformBox",
- "OTransformBox",
- "transformOrigin",
- "MozTransformOrigin",
- "WebkitTransformOrigin",
- "MSTransformOrigin",
- "OTransformOrigin",
- "transformStyle",
- "MozTransformStyle",
- "WebkitTransformStyle",
- "MSTransformStyle",
- "OTransformStyle",
- "transition",
- "MozTransition",
- "WebkitTransition",
- "MSTransition",
- "OTransition",
- "transitionDelay",
- "MozTransitionDelay",
- "WebkitTransitionDelay",
- "MSTransitionDelay",
- "OTransitionDelay",
- "transitionDuration",
- "MozTransitionDuration",
- "WebkitTransitionDuration",
- "MSTransitionDuration",
- "OTransitionDuration",
- "transitionProperty",
- "MozTransitionProperty",
- "WebkitTransitionProperty",
- "MSTransitionProperty",
- "OTransitionProperty",
- "transitionTimingFunction",
- "MozTransitionTimingFunction",
- "WebkitTransitionTimingFunction",
- "MSTransitionTimingFunction",
- "OTransitionTimingFunction",
- "turn",
- "MozTurn",
- "WebkitTurn",
- "MSTurn",
- "OTurn",
- "unicodeBidi",
- "MozUnicodeBidi",
- "WebkitUnicodeBidi",
- "MSUnicodeBidi",
- "OUnicodeBidi",
- "unset",
- "MozUnset",
- "WebkitUnset",
- "MSUnset",
- "OUnset",
- "verticalAlign",
- "MozVerticalAlign",
- "WebkitVerticalAlign",
- "MSVerticalAlign",
- "OVerticalAlign",
- "vh",
- "MozVh",
- "WebkitVh",
- "MSVh",
- "OVh",
- "visibility",
- "MozVisibility",
- "WebkitVisibility",
- "MSVisibility",
- "OVisibility",
- "vmax",
- "MozVmax",
- "WebkitVmax",
- "MSVmax",
- "OVmax",
- "vmin",
- "MozVmin",
- "WebkitVmin",
- "MSVmin",
- "OVmin",
- "vw",
- "MozVw",
- "WebkitVw",
- "MSVw",
- "OVw",
- "whiteSpace",
- "MozWhiteSpace",
- "WebkitWhiteSpace",
- "MSWhiteSpace",
- "OWhiteSpace",
- "widows",
- "MozWidows",
- "WebkitWidows",
- "MSWidows",
- "OWidows",
- "width",
- "MozWidth",
- "WebkitWidth",
- "MSWidth",
- "OWidth",
- "willChange",
- "MozWillChange",
- "WebkitWillChange",
- "MSWillChange",
- "OWillChange",
- "wordBreak",
- "MozWordBreak",
- "WebkitWordBreak",
- "MSWordBreak",
- "OWordBreak",
- "wordSpacing",
- "MozWordSpacing",
- "WebkitWordSpacing",
- "MSWordSpacing",
- "OWordSpacing",
- "wordWrap",
- "MozWordWrap",
- "WebkitWordWrap",
- "MSWordWrap",
- "OWordWrap",
- "writingMode",
- "MozWritingMode",
- "WebkitWritingMode",
- "MSWritingMode",
- "OWritingMode",
- "zIndex",
- "MozZIndex",
- "WebkitZIndex",
- "MSZIndex",
- "OZIndex",
- "fontSize",
- "MozFontSize",
- "WebkitFontSize",
- "MSFontSize",
- "OFontSize",
- "flex",
- "MozFlex",
- "WebkitFlex",
- "MSFlex",
- "OFlex",
- "fr",
- "MozFr",
- "WebkitFr",
- "MSFr",
- "OFr",
- "overflowScrolling",
- "MozOverflowScrolling",
- "WebkitOverflowScrolling",
- "MSOverflowScrolling",
- "OOverflowScrolling",
- "userSelect",
- "MozUserSelect",
- "WebkitUserSelect",
- "MSUserSelect",
- "OUserSelect"
- ]
-
-
- /***/ }),
-
- /***/ 3103:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_icon_style_css__ = __webpack_require__(179);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_icon_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_icon__ = __webpack_require__(26);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_icon__);
- /*
- * @Description: 引入阿里图标库
- * @Author: tangjiang
- * @Github:
- * @Date: 2019-12-10 09:03:48
- * @LastEditors: tangjiang
- * @LastEditTime: 2019-12-12 10:53:47
- */var MyIcon=__WEBPACK_IMPORTED_MODULE_1_antd_lib_icon___default.a.createFromIconfontCN({scriptUrl:'//at.alicdn.com/t/font_1535266_i4ilpm93kp.js'});/* harmony default export */ __webpack_exports__["a"] = (MyIcon);
-
- /***/ }),
-
- /***/ 3133:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VNC_css__ = __webpack_require__(2827);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VNC_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__VNC_css__);
- var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var $=window.$;var FloatButton=function(_Component){_inherits(FloatButton,_Component);function FloatButton(){_classCallCheck(this,FloatButton);return _possibleConstructorReturn(this,(FloatButton.__proto__||Object.getPrototypeOf(FloatButton)).apply(this,arguments));}_createClass(FloatButton,[{key:'componentDidMount',value:function componentDidMount(){}},{key:'render',value:function render(){var _props=this.props,challenge=_props.challenge,vnc_url=_props.vnc_url,children=_props.children,className=_props.className;return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div',{className:'float_button '+className,onClick:this.props.onClick},__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('style',null,'\n \n '),__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('span',{'class':'text'},children||'版本库'));}}]);return FloatButton;}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (FloatButton);
-
- /***/ }),
-
- /***/ 3229:
- /***/ (function(module, exports, __webpack_require__) {
-
- exports = module.exports = __webpack_require__(299)(true);
- // imports
-
-
- // module
- exports.push([module.i, ".float_button{background-image:url(" + __webpack_require__(2828) + ");height:141px;width:38px;position:absolute;left:-38px;top:32%;cursor:pointer;padding-top:15px}.float_button .text{position:relative;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;top:36px;color:#fff;left:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jupyter_float_button{background-image:url(" + __webpack_require__(2828) + ");height:141px;width:38px;position:absolute;right:0;top:32%;cursor:pointer;left:auto;z-index:99999999;padding-top:15px}.jupyter_float_button .text{position:relative;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;top:36px;color:#fff;left:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn_test_case,.btn_test_case_active{display:inline-block;position:absolute;width:56px;height:28px;bottom:23px;line-height:28px;background:#2a3a4f;z-index:10;left:50%;margin-left:-28px;border-bottom-left-radius:100px;border-bottom-right-radius:100px;color:#fff;text-align:center;cursor:pointer;opacity:.4;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.btn_test_case:hover,.btn_test_case_active:hover{opacity:1}.btn_test_case .btn-arrow{position:relative;font-size:12px;line-height:28px;bottom:2px}.btn_test_case_active{bottom:203px;z-index:10000}.btn_test_case_active .btn-arrow{bottom:4px}.blacktab_con_abs{position:absolute!important;left:150px;right:150px;top:0;height:34px;line-height:32px}.code_evalute_icon{position:absolute;top:0;width:54px;height:27px;left:50%;margin-left:-27px;background:#2a3a4f;z-index:10;border-bottom-left-radius:100px;border-bottom-right-radius:100px;color:#fff;text-align:center;cursor:pointer;opacity:.4;-webkit-transition:all .3s;-o-transition:all .3s;transition:all .3s}.code_evalute_icon:hover{opacity:1}.btn-arrow{position:relative;bottom:3px;font-size:14px!important}@-webkit-keyframes mymove{0%{right:0}to{right:330px}}@keyframes mymove{0%{right:0}to{right:330px}}.newjupyter_float_button{-webkit-animation:mymove .35s;animation:mymove .35s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/src/modules/page/VNC.css"],"names":[],"mappings":"AAAA,cACI,+CAA+C,AAC/C,aAAc,AACd,WAAY,AACZ,kBAAmB,AACnB,WAAY,AACZ,QAAS,AACT,eAAgB,AAChB,gBAAkB,CACrB,AACD,oBACI,kBAAmB,AACnB,iCAAkC,AAC9B,uBAAwB,AACpB,yBAA0B,AAClC,SAAU,AACV,WAAY,AACZ,UAAW,AACX,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC7B,AAED,sBACI,+CAA+C,AAC/C,aAAc,AACd,WAAY,AACZ,kBAAmB,AACnB,QAAW,AACX,QAAS,AACT,eAAgB,AAChB,UAAU,AACV,iBAAkB,AAClB,gBAAkB,CACrB,AAED,4BACI,kBAAmB,AACnB,iCAAkC,AAC9B,uBAAwB,AACpB,yBAA0B,AAClC,SAAU,AACV,WAAY,AACZ,UAAW,AACX,yBAA0B,AACvB,sBAAuB,AACtB,qBAAsB,AAClB,gBAAkB,CAC7B,AAGD,qCAEI,qBAAsB,AACtB,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,YAAa,AACb,iBAAkB,AAClB,mBAA6B,AAC7B,WAAY,AACZ,SAAU,AACV,kBAAmB,AACnB,gCAAiC,AACjC,iCAAkC,AAClC,WAAY,AACZ,kBAAmB,AACnB,eAAgB,AAChB,WAAY,AACZ,2BAA4B,AAC5B,sBAAuB,AACvB,kBAAoB,CACvB,AAED,iDAEI,SAAW,CACd,AACD,0BACI,kBAAmB,AACnB,eAAgB,AAChB,iBAAkB,AAClB,UAAY,CACf,AAED,sBACI,aAAc,AACd,aAAe,CAElB,AACD,iCACI,UAAY,CACf,AAED,kBACI,4BAA8B,AAC9B,WAAY,AACZ,YAAa,AACb,MAAO,AACP,YAAa,AACb,gBAAkB,CAErB,AACD,mBACI,kBAAmB,AACnB,MAAO,AACP,WAAY,AACZ,YAAa,AACb,SAAU,AACV,kBAAmB,AACnB,mBAA6B,AAC7B,WAAY,AACZ,gCAAiC,AACjC,iCAAkC,AAClC,WAAY,AACZ,kBAAmB,AACnB,eAAgB,AAChB,WAAY,AACZ,2BAA4B,AAC5B,sBAAuB,AACvB,kBAAoB,CACvB,AACD,yBACI,SAAW,CACd,AAED,WACI,kBAAmB,AACnB,WAAY,AACZ,wBAA2B,CAC9B,AAED,0BAEI,GAAM,OAAU,CAAC,AACjB,GAAI,WAAY,CAAC,CACpB,AAED,kBAEI,GAAM,OAAU,CAAC,AACjB,GAAI,WAAY,CAAC,CACpB,AAED,yBAII,8BAA+B,AACvB,sBAAuB,AAC/B,qCAAqC,AAC7B,4BAA6B,CACxC","file":"VNC.css","sourcesContent":[".float_button {\n background-image: url(images/float_switch.jpg);\n height: 141px;\n width: 38px;\n position: absolute;\n left: -38px;\n top: 32%;\n cursor: pointer;\n padding-top: 15px;\n}\n.float_button .text {\n position: relative;\n -webkit-writing-mode: vertical-rl;\n -ms-writing-mode: tb-rl;\n writing-mode: vertical-rl;\n top: 36px;\n color: #fff;\n left: 13px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.jupyter_float_button {\n background-image: url(images/float_switch.jpg);\n height: 141px;\n width: 38px;\n position: absolute;\n right: 0px;\n top: 32%;\n cursor: pointer;\n left:auto;\n z-index: 99999999;\n padding-top: 15px;\n}\n\n.jupyter_float_button .text {\n position: relative;\n -webkit-writing-mode: vertical-rl;\n -ms-writing-mode: tb-rl;\n writing-mode: vertical-rl;\n top: 36px;\n color: #fff;\n left: 13px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n\n.btn_test_case,\n.btn_test_case_active{\n display: inline-block;\n position: absolute;\n width: 56px;\n height: 28px;\n bottom: 23px; \n line-height: 28px;\n background: rgba(42,58,79,1);\n z-index: 10;\n left: 50%;\n margin-left: -28px;\n border-bottom-left-radius: 100px;\n border-bottom-right-radius: 100px;\n color: #fff;\n text-align: center;\n cursor: pointer;\n opacity: .4;\n -webkit-transition: all .3s;\n -o-transition: all .3s;\n transition: all .3s;\n}\n\n.btn_test_case:hover,\n.btn_test_case_active:hover{\n opacity: 1;\n}\n.btn_test_case .btn-arrow{\n position: relative;\n font-size: 12px;\n line-height: 28px;\n bottom: 2px;\n}\n\n.btn_test_case_active{\n bottom: 203px;\n z-index: 10000;\n\n}\n.btn_test_case_active .btn-arrow{\n bottom: 4px;\n}\n\n.blacktab_con_abs{\n position: absolute !important;\n left: 150px;\n right: 150px;\n top: 0;\n height: 34px;\n line-height: 32px;\n /* background: gold; */\n}\n.code_evalute_icon{\n position: absolute;\n top: 0;\n width: 54px;\n height: 27px;\n left: 50%;\n margin-left: -27px;\n background: rgba(42,58,79,1);\n z-index: 10;\n border-bottom-left-radius: 100px;\n border-bottom-right-radius: 100px;\n color: #fff;\n text-align: center;\n cursor: pointer;\n opacity: .4;\n -webkit-transition: all .3s;\n -o-transition: all .3s;\n transition: all .3s;\n}\n.code_evalute_icon:hover{\n opacity: 1;\n}\n\n.btn-arrow{\n position: relative;\n bottom: 3px;\n font-size: 14px !important;\n}\n\n@-webkit-keyframes mymove\n{\n from {right:0px;}\n to {right:330px;}\n}\n\n@keyframes mymove\n{\n from {right:0px;}\n to {right:330px;}\n}\n\n.newjupyter_float_button{\n /*right: 330px;*/\n /*animation-duration:2s;*/\n /*infinite*/\n -webkit-animation:mymove 0.35s;\n animation:mymove 0.35s;\n -webkit-animation-fill-mode:forwards;\n animation-fill-mode:forwards;\n}"],"sourceRoot":""}]);
-
- // exports
-
-
- /***/ }),
-
- /***/ 5080:
- /***/ (function(module, exports, __webpack_require__) {
-
- // style-loader: Adds some css to the DOM by adding a <style> tag
-
- // load the styles
- var content = __webpack_require__(5081);
- if(typeof content === 'string') content = [[module.i, content, '']];
- // Prepare cssTransformation
- var transform;
-
- var options = {"hmr":true}
- options.transform = transform
- // add the styles to the DOM
- var update = __webpack_require__(300)(content, options);
- if(content.locals) module.exports = content.locals;
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../node_modules/css-loader/index.js??ref--1-oneOf-3-1!../../../../node_modules/sass-loader/dist/cjs.js!./index.scss", function() {
- var newContent = require("!!../../../../node_modules/css-loader/index.js??ref--1-oneOf-3-1!../../../../node_modules/sass-loader/dist/cjs.js!./index.scss");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
-
- /***/ }),
-
- /***/ 5081:
- /***/ (function(module, exports, __webpack_require__) {
-
- exports = module.exports = __webpack_require__(299)(true);
- // imports
-
-
- // module
- exports.push([module.i, ".Resizer{background:#000;opacity:.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;border-top:5px solid hsla(0,0%,100%,0);border-bottom:5px solid hsla(0,0%,100%,0);cursor:row-resize;width:100%}.filestyles{color:#28b887!important;font-size:25px!important;margin-left:48px}.Resizer.horizontal:hover{border-top:5px solid rgba(0,0,0,.5);border-bottom:5px solid rgba(0,0,0,.5)}.Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,100%,0);border-right:5px solid hsla(0,0%,100%,0);cursor:col-resize}.Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,.5);border-right:5px solid rgba(0,0,0,.5)}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.jupyter_area .jupyter_header{position:relative;height:60px;line-height:60px;background-color:#070f1a;padding-left:30px;z-index:999999}.jupyter_area .jupyter_header .jupyter_title{display:flex;flex-direction:column;align-items:center;height:100%;color:#fff}.jupyter_area .jupyter_header .jupyter_title .title_desc{margin-top:12px;font-size:16px}.jupyter_area .jupyter_header .jupyter_title .title_time{font-size:12px}.jupyter_area .jupyter_header .jupyter_btn{position:absolute;right:10px;top:14px}.jupyter_area .jupyter_header .jupyter_btn .btn_common{color:#888}.jupyter_area .jupyter_header .jupyter_btn .btn_common:hover{color:#1890ff}.jupyter_area .jupyter_ctx{position:relative;height:calc(100vh - 60px)}.jupyter_area .update_notice{text-align:center}.jupyter_area .update_notice .update_txt{line-height:18px;font-size:14px}.RightPaneDrawer .RightPaneDrawertop{width:330px;height:29px;background:#111c24}.RightPaneDrawer .ant-drawer-content-wrapper{width:330px!important}.RightPaneDrawer .ant-drawer-body{padding:0}.RightPaneDrawer .ant-drawer-wrapper-body{overflow:hidden!important;padding-top:60px;background:#070f1a;padding-bottom:40px}.RightPaneDrawer .jupyter_data_list{height:500px;overflow-y:auto}.RightPaneDrawer .ant-pagination{color:#fff!important}.newjupyter_data_sets_area{background:#070f1a!important}.newjupyter_data_sets_area .jupyter_h2_title{padding-left:20px;height:49px;line-height:49px;background:#070f1a!important;color:#fff!important}.newjupyter_data_sets_area .iconfont{color:#28b887!important;font-size:30px!important;margin-right:20px}.newjupyter_data_sets_area .jupyter_pagination{border-top:1px solid #070f1a!important;padding-left:50px}.newjupyter_data_sets_area .jupyter_name{color:#fff!important}.newjupyter_data_sets_area .file_path_input{position:absolute;right:-50%}.maxnamewidth150{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default;width:150px}.sortinxdirection{display:flex;flex-direction:row}.lineheighttaj{line-height:50px!important}.colorlineheighttaj{color:#fff}.jupytertitle_time .ant-statistic-content{font-size:20px!important}.jupytertitle_time .ant-statistic-content-value{color:#fff!important;font-size:14px!important}.jupyter_data_list{padding-left:20px}.bortop17212F{border-top:1px solid #17212f!important}.borbottom17212F{border-bottom:1px solid #17212f!important}.jupyterfilepaths{color:#888!important;font-size:16px!important;padding-left:20px;background:#070f1a!important}.maxnamewidth186JUPYTER{max-width:186px;width:186px}.maxnamewidth152,.maxnamewidth186JUPYTER{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default}.maxnamewidth152{max-width:152px;width:152px}.height45lineheight45{height:45px;line-height:45px!important}.Countdowntypes{width:1px;height:1px;overflow:hidden;display:block}.Countdownfonttpi{width:60px;display:inline-block}.Countdownfonttpi .ant-statistic-content-value{font-size:14px}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/src/modules/tpm/jupyter/index.scss"],"names":[],"mappings":"AAAA,SAAS,gBAAgB,WAAY,UAAU,2BAA2B,8BAA8B,sBAAsB,6BAA6B,gCAAgC,2BAA2B,CAAC,eAAe,+BAA+B,sBAAsB,CAAC,oBAAoB,YAAY,cAAc,uCAAyC,0CAA4C,kBAAkB,UAAU,CAAC,YAAY,wBAAyB,yBAA0B,gBAAgB,CAAC,0BAA0B,oCAAqC,sCAAuC,CAAC,kBAAkB,WAAW,cAAc,wCAA0C,yCAA2C,iBAAiB,CAAC,wBAAwB,qCAAsC,qCAAsC,CAAC,kBAAkB,kBAAkB,CAAC,wBAAwB,wBAAwB,CAAC,8BAA8B,kBAAkB,YAAY,iBAAiB,yBAAyB,kBAAkB,cAAc,CAAC,6CAA6C,aAAa,sBAAsB,mBAAmB,YAAY,UAAU,CAAC,yDAAyD,gBAAgB,cAAc,CAAC,yDAAyD,cAAc,CAAC,2CAA2C,kBAAkB,WAAW,QAAQ,CAAC,uDAAuD,UAAU,CAAC,6DAA6D,aAAa,CAAC,2BAA2B,kBAAkB,yBAAyB,CAAC,6BAA6B,iBAAiB,CAAC,yCAAyC,iBAAiB,cAAc,CAAC,qCAAqC,YAAY,YAAY,kBAAkB,CAAC,6CAA6C,qBAAuB,CAAC,kCAAkC,SAAW,CAAC,0CAA0C,0BAA2B,iBAAiB,mBAAmB,mBAAmB,CAAC,oCAAoC,aAAa,eAAe,CAAC,iCAAiC,oBAAqB,CAAC,2BAA2B,4BAA6B,CAAC,6CAA6C,kBAAkB,YAAY,iBAAiB,6BAA8B,oBAAwB,CAAC,qCAAqC,wBAAyB,yBAA0B,iBAAiB,CAAC,+CAA+C,uCAAwC,iBAAiB,CAAC,yCAAyC,oBAAwB,CAAC,4CAA4C,kBAAkB,UAAU,CAAC,iBAAiB,gBAAgB,gBAAgB,uBAAuB,mBAAmB,eAAe,WAAW,CAAC,kBAAkB,aAAa,kBAAkB,CAAC,eAAe,0BAA2B,CAAC,oBAAoB,UAAa,CAAC,0CAA0C,wBAA0B,CAAC,gDAAgD,qBAAuB,wBAA0B,CAAC,mBAAmB,iBAAiB,CAAC,cAAc,sCAAuC,CAAC,iBAAiB,yCAA0C,CAAC,kBAAkB,qBAAsB,yBAA0B,kBAAkB,4BAA6B,CAAC,wBAAwB,gBAAgB,AAAyE,WAAW,CAAC,yCAArF,gBAAgB,uBAAuB,mBAAmB,cAAe,CAAkI,AAAtH,iBAAiB,gBAAgB,AAAyE,WAAW,CAAC,sBAAsB,YAAY,0BAA2B,CAAC,gBAAgB,UAAU,WAAW,gBAAgB,aAAa,CAAC,kBAAkB,WAAW,oBAAoB,CAAC,+CAA+C,cAAc,CAAC","file":"index.scss","sourcesContent":[".Resizer{background:#000;opacity:0.2;z-index:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}.Resizer:hover{-webkit-transition:all 2s ease;transition:all 2s ease}.Resizer.horizontal{height:11px;margin:-5px 0;border-top:5px solid rgba(255,255,255,0);border-bottom:5px solid rgba(255,255,255,0);cursor:row-resize;width:100%}.filestyles{color:#28b887 !important;font-size:25px !important;margin-left:48px}.Resizer.horizontal:hover{border-top:5px solid rgba(0,0,0,0.5);border-bottom:5px solid rgba(0,0,0,0.5)}.Resizer.vertical{width:11px;margin:0 -5px;border-left:5px solid rgba(255,255,255,0);border-right:5px solid rgba(255,255,255,0);cursor:col-resize}.Resizer.vertical:hover{border-left:5px solid rgba(0,0,0,0.5);border-right:5px solid rgba(0,0,0,0.5)}.Resizer.disabled{cursor:not-allowed}.Resizer.disabled:hover{border-color:transparent}.jupyter_area .jupyter_header{position:relative;height:60px;line-height:60px;background-color:#070F1A;padding-left:30px;z-index:999999}.jupyter_area .jupyter_header .jupyter_title{display:flex;flex-direction:column;align-items:center;height:100%;color:#fff}.jupyter_area .jupyter_header .jupyter_title .title_desc{margin-top:12px;font-size:16px}.jupyter_area .jupyter_header .jupyter_title .title_time{font-size:12px}.jupyter_area .jupyter_header .jupyter_btn{position:absolute;right:10px;top:14px}.jupyter_area .jupyter_header .jupyter_btn .btn_common{color:#888}.jupyter_area .jupyter_header .jupyter_btn .btn_common:hover{color:#1890ff}.jupyter_area .jupyter_ctx{position:relative;height:calc(100vh - 60px)}.jupyter_area .update_notice{text-align:center}.jupyter_area .update_notice .update_txt{line-height:18px;font-size:14px}.RightPaneDrawer .RightPaneDrawertop{width:330px;height:29px;background:#111c24}.RightPaneDrawer .ant-drawer-content-wrapper{width:330px !important}.RightPaneDrawer .ant-drawer-body{padding:0px}.RightPaneDrawer .ant-drawer-wrapper-body{overflow:hidden !important;padding-top:60px;background:#070F1A;padding-bottom:40px}.RightPaneDrawer .jupyter_data_list{height:500px;overflow-y:auto}.RightPaneDrawer .ant-pagination{color:#fff !important}.newjupyter_data_sets_area{background:#070F1A !important}.newjupyter_data_sets_area .jupyter_h2_title{padding-left:20px;height:49px;line-height:49px;background:#070F1A !important;color:#FFFFFF !important}.newjupyter_data_sets_area .iconfont{color:#28b887 !important;font-size:30px !important;margin-right:20px}.newjupyter_data_sets_area .jupyter_pagination{border-top:1px solid #070F1A !important;padding-left:50px}.newjupyter_data_sets_area .jupyter_name{color:#FFFFFF !important}.newjupyter_data_sets_area .file_path_input{position:absolute;right:-50%}.maxnamewidth150{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default;width:150px}.sortinxdirection{display:flex;flex-direction:row}.lineheighttaj{line-height:50px !important}.colorlineheighttaj{color:#ffffff}.jupytertitle_time .ant-statistic-content{font-size:20px !important}.jupytertitle_time .ant-statistic-content-value{color:#fff !important;font-size:14px !important}.jupyter_data_list{padding-left:20px}.bortop17212F{border-top:1px solid #17212F !important}.borbottom17212F{border-bottom:1px solid #17212F !important}.jupyterfilepaths{color:#888 !important;font-size:16px !important;padding-left:20px;background:#070F1A !important}.maxnamewidth186JUPYTER{max-width:186px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default;width:186px}.maxnamewidth152{max-width:152px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:default;width:152px}.height45lineheight45{height:45px;line-height:45px !important}.Countdowntypes{width:1px;height:1px;overflow:hidden;display:block}.Countdownfonttpi{width:60px;display:inline-block}.Countdownfonttpi .ant-statistic-content-value{font-size:14px}\n"],"sourceRoot":""}]);
-
- // exports
-
-
- /***/ }),
-
- /***/ 5082:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_scss__ = __webpack_require__(5083);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__index_scss__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
- var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();/*
- * @Description:
- * @Author: tangjiang
- * @Github:
- * @Date: 2019-12-12 15:04:20
- * @LastEditors: tangjiang
- * @LastEditTime: 2019-12-13 11:25:22
- */function RightPane(props){var status=props.status,url=props.url,onReloadUrl=props.onReloadUrl,onSave=props.onSave,loading=props.loading;var _useState=Object(__WEBPACK_IMPORTED_MODULE_1_react__["useState"])(function(){return loadInit;}),_useState2=_slicedToArray(_useState,2),renderCtx=_useState2[0],setRenderCtx=_useState2[1];// 重新获取 url
- var handleClickReload=function handleClickReload(){onReloadUrl&&onReloadUrl();};var loadInit=__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'jupyter_loading_init'});var loadError=__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'jupyter_load_url_error'},__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span',{className:'iconfont icon-jiazaishibai1 icon-error'}),__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('p',{className:'jupyter_error_txt'},'\u5B9E\u8BAD\u52A0\u8F7D\u5931\u8D25\uFF0C',__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('span',{className:'jupyter_reload',onClick:handleClickReload},'\u91CD\u65B0\u52A0\u8F7D')));// 保存
- var handleClickSubmit=function handleClickSubmit(){console.log('调用了保存接口....');onSave&&onSave();};Object(__WEBPACK_IMPORTED_MODULE_1_react__["useEffect"])(function(){if(status===-1){setRenderCtx(function(){return loadInit;});}else if(status===0&&url){setRenderCtx(function(){return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'jupyter_result'},__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'jupyter_iframe'},__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('iframe',{id:"rightPaneframe",title:' ',width:'100%',height:'100%',src:url,className:'jupyter_iframe_style'})));});}else{setRenderCtx(function(){return loadError;});}},[status,url,loading]);return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement('div',{className:'jupyter_right_pane_area'},renderCtx);}/* harmony default export */ __webpack_exports__["a"] = (RightPane);
-
- /***/ }),
-
- /***/ 5083:
- /***/ (function(module, exports, __webpack_require__) {
-
- // style-loader: Adds some css to the DOM by adding a <style> tag
-
- // load the styles
- var content = __webpack_require__(5084);
- if(typeof content === 'string') content = [[module.i, content, '']];
- // Prepare cssTransformation
- var transform;
-
- var options = {"hmr":true}
- options.transform = transform
- // add the styles to the DOM
- var update = __webpack_require__(300)(content, options);
- if(content.locals) module.exports = content.locals;
- // Hot Module Replacement
- if(false) {
- // When the styles change, update the <style> tags
- if(!content.locals) {
- module.hot.accept("!!../../../../../node_modules/css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss", function() {
- var newContent = require("!!../../../../../node_modules/css-loader/index.js??ref--1-oneOf-3-1!../../../../../node_modules/sass-loader/dist/cjs.js!./index.scss");
- if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
- update(newContent);
- });
- }
- // When the module is disposed, remove the <style> tags
- module.hot.dispose(function() { update(); });
- }
-
- /***/ }),
-
- /***/ 5084:
- /***/ (function(module, exports, __webpack_require__) {
-
- exports = module.exports = __webpack_require__(299)(true);
- // imports
-
-
- // module
- exports.push([module.i, ".jupyter_right_pane_area{position:relative;height:calc(100vh - 60px)}.jupyter_right_pane_area .jupyter_load_url_error,.jupyter_right_pane_area .jupyter_loading_init{display:flex;position:relative;align-items:center;justify-content:center;height:100%}.jupyter_right_pane_area .jupyter_load_url_error:before,.jupyter_right_pane_area .jupyter_loading_init:before{position:absolute;left:0;right:0;top:0;bottom:0;content:\"\"}.jupyter_right_pane_area .jupyter_loading_init:before{background-color:rgba(0,0,0,.2)}.jupyter_right_pane_area .jupyter_load_url_error{display:flex;flex-direction:column;justify-content:center;align-items:center}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt{position:relative;z-index:1;font-size:12px}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt .jupyter_reload{cursor:pointer;color:#1890ff}.jupyter_right_pane_area .jupyter_load_url_error .icon-error{position:relative;color:#dce0e6;transform:scale(5);top:-35px}.jupyter_right_pane_area .jupyter_result{height:100%}.jupyter_right_pane_area .jupyter_result .jupyter_iframe{height:calc(100% - 56px)}.jupyter_right_pane_area .jupyter_result .jupyter_iframe .jupyter_iframe_style{border:none;outline:none}.jupyter_right_pane_area .jupyter_result .jupyter_submit{display:flex;align-items:center;height:56px;justify-content:flex-end;padding-right:20px}", "", {"version":3,"sources":["/Users/jasder/work/trustie3.0/educoder/public/react/src/modules/tpm/jupyter/rightPane/index.scss"],"names":[],"mappings":"AAAA,yBAAyB,kBAAkB,yBAAyB,CAAC,gGAAgG,aAAa,kBAAkB,mBAAmB,uBAAuB,WAAW,CAAC,8GAAgH,kBAAkB,OAAO,QAAQ,MAAM,SAAS,UAAU,CAAC,sDAAuD,+BAAgC,CAAC,iDAAiD,aAAa,sBAAsB,uBAAuB,kBAAkB,CAAC,oEAAoE,kBAAkB,UAAU,cAAc,CAAC,oFAAoF,eAAe,aAAa,CAAC,6DAA6D,kBAAkB,cAAc,mBAAmB,SAAS,CAAC,yCAAyC,WAAW,CAAC,yDAAyD,wBAAwB,CAAC,+EAA+E,YAAY,YAAY,CAAC,yDAAyD,aAAa,mBAAmB,YAAY,yBAAyB,kBAAkB,CAAC","file":"index.scss","sourcesContent":[".jupyter_right_pane_area{position:relative;height:calc(100vh - 60px)}.jupyter_right_pane_area .jupyter_load_url_error,.jupyter_right_pane_area .jupyter_loading_init{display:flex;position:relative;align-items:center;justify-content:center;height:100%}.jupyter_right_pane_area .jupyter_load_url_error::before,.jupyter_right_pane_area .jupyter_loading_init::before{position:absolute;left:0;right:0;top:0;bottom:0;content:''}.jupyter_right_pane_area .jupyter_loading_init::before{background-color:rgba(0,0,0,0.2)}.jupyter_right_pane_area .jupyter_load_url_error{display:flex;flex-direction:column;justify-content:center;align-items:center}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt{position:relative;z-index:1;font-size:12px}.jupyter_right_pane_area .jupyter_load_url_error .jupyter_error_txt .jupyter_reload{cursor:pointer;color:#1890ff}.jupyter_right_pane_area .jupyter_load_url_error .icon-error{position:relative;color:#DCE0E6;transform:scale(5);top:-35px}.jupyter_right_pane_area .jupyter_result{height:100%}.jupyter_right_pane_area .jupyter_result .jupyter_iframe{height:calc(100% - 56px)}.jupyter_right_pane_area .jupyter_result .jupyter_iframe .jupyter_iframe_style{border:none;outline:none}.jupyter_right_pane_area .jupyter_result .jupyter_submit{display:flex;align-items:center;height:56px;justify-content:flex-end;padding-right:20px}\n"],"sourceRoot":""}]);
-
- // exports
-
-
- /***/ }),
-
- /***/ 861:
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_spin_style_css__ = __webpack_require__(76);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_spin_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_spin__ = __webpack_require__(77);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_spin__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_drawer_style_css__ = __webpack_require__(1489);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_drawer_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_drawer_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_drawer__ = __webpack_require__(1490);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_drawer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_drawer__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_button_style_css__ = __webpack_require__(89);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_button_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_button_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_button__ = __webpack_require__(75);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_button___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_button__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_tooltip_style_css__ = __webpack_require__(173);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_tooltip_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_tooltip__ = __webpack_require__(172);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_tooltip__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_icon_style_css__ = __webpack_require__(179);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_icon_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_icon__ = __webpack_require__(26);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_icon__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_modal_style_css__ = __webpack_require__(27);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_antd_lib_modal_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_modal__ = __webpack_require__(28);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_statistic_style_css__ = __webpack_require__(2993);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_statistic_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_antd_lib_statistic_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_statistic__ = __webpack_require__(2996);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_statistic___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_antd_lib_statistic__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_empty_style_css__ = __webpack_require__(188);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_empty_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_antd_lib_empty_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_antd_lib_empty__ = __webpack_require__(360);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_antd_lib_empty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_antd_lib_empty__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_antd_lib_message_style_css__ = __webpack_require__(115);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_antd_lib_message_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_antd_lib_message_style_css__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_antd_lib_message__ = __webpack_require__(116);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_antd_lib_message___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_17_antd_lib_message__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__index_scss__ = __webpack_require__(5080);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__index_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18__index_scss__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_react__ = __webpack_require__(0);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19_react__);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_split_pane__ = __webpack_require__(3068);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21_react_redux__ = __webpack_require__(331);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__page_component_FloatButton__ = __webpack_require__(3133);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__developer_components_userInfo__ = __webpack_require__(2471);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__redux_actions__ = __webpack_require__(335);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__rightPane__ = __webpack_require__(5082);
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__common_components_MyIcon__ = __webpack_require__(3103);
- var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();/*
- * @Description: jupyter tpi
- * @Author: tangjiang
- * @Github:
- * @Date: 2019-12-11 08:35:23
- * @LastEditors: tangjiang
- * @LastEditTime: 2019-12-13 15:25:50
- */function clearSlct(){if("getSelection"in window){window.getSelection().removeAllRanges();}else{document.selection.empty();};}function jsCopy(s){clearSlct();var copyEle=document.getElementById(s);copyEle.select();var copyStatus=document.execCommand("Copy");// 对成功与否定进行提示
- copyStatuss(copyStatus);}function copyStatuss(copyStatus){if(copyStatus){__WEBPACK_IMPORTED_MODULE_17_antd_lib_message___default.a.success('复制成功');}else{__WEBPACK_IMPORTED_MODULE_17_antd_lib_message___default.a.error('复制失败');}}function JupyterTPI(props){// 获取 identifier 值
- var _props$match$params=props.match.params,params=_props$match$params===undefined?{}:_props$match$params,url=props.url,loading=props.loading,total=props.total,pagination=props.pagination,dataSets=props.dataSets,jupyter_info=props.jupyter_info,getJupyterInfo=props.getJupyterInfo,syncJupyterCode=props.syncJupyterCode,jupyter_tpi_url_state=props.jupyter_tpi_url_state,getJupyterTpiDataSet=props.getJupyterTpiDataSet,getJupyterTpiUrl=props.getJupyterTpiUrl,saveJupyterTpi=props.saveJupyterTpi,changeLoadingState=props.changeLoadingState,changeGetJupyterUrlState=props.changeGetJupyterUrlState,jupyter_identifier=props.jupyter_identifier,changeCurrentPage=props.changeCurrentPage,changeshowDrawer=props.changeshowDrawer,drawervisible=props.drawervisible,reset_with_tpi=props.reset_with_tpi,jupytertime=props.jupytertime,endjupytertime=props.endjupytertime,active_with_tpi=props.active_with_tpi,spinning=props.spinning,updataspinning=props.updataspinning,jupyter_folder_name=props.jupyter_folder_name;var emptyCtx=__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'jupyter_empty'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('style',null,'\n .ant-empty{\n margin-top:80px;\n color:#fff;\n }\n '),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15_antd_lib_empty___default.a,null));var Countdown=__WEBPACK_IMPORTED_MODULE_13_antd_lib_statistic___default.a.Countdown;var identifier=params.identifier;var _useState=Object(__WEBPACK_IMPORTED_MODULE_19_react__["useState"])({}),_useState2=_slicedToArray(_useState,2),userInfo=_useState2[0],setUserInfo=_useState2[1];var _useState3=Object(__WEBPACK_IMPORTED_MODULE_19_react__["useState"])({}),_useState4=_slicedToArray(_useState3,2),jupyterInfo=_useState4[0],setJupyterInfo=_useState4[1];var _useState5=Object(__WEBPACK_IMPORTED_MODULE_19_react__["useState"])(true),_useState6=_slicedToArray(_useState5,2),updateTip=_useState6[0],setUpdateTip=_useState6[1];var _useState7=Object(__WEBPACK_IMPORTED_MODULE_19_react__["useState"])(''),_useState8=_slicedToArray(_useState7,2),myIdentifier=_useState8[0],setMyIdentifier=_useState8[1];var _useState9=Object(__WEBPACK_IMPORTED_MODULE_19_react__["useState"])(function(){return emptyCtx;}),_useState10=_slicedToArray(_useState9,2),renderCtx=_useState10[0],setRenderCtx=_useState10[1];var newHandletype=false;var newHandle=function newHandle(event){if(newHandletype===false){newHandletype=true;saveJupyterTpi(event);setTimeout(function(){newHandletype=false;},500);}};// 保存代码
- var addEventListeners=function addEventListeners(){window.addEventListener('message',function(e){// console.log("触发了jupytermessage");
- if(e){if(e.data){if(e.data==="jupytermessage"){newHandle();}}}});};var stopposttpip=function stopposttpip(sum){var _iframe=document.getElementById("rightPaneframe");if(_iframe==null||_iframe==undefined||_iframe==""){return;}if(sum===1){_iframe.contentWindow.postMessage("stopParent","*");}else{_iframe.contentWindow.postMessage("clonsParent","*");}};Object(__WEBPACK_IMPORTED_MODULE_19_react__["useEffect"])(function(){addEventListeners();},[]);Object(__WEBPACK_IMPORTED_MODULE_19_react__["useEffect"])(function(){/* 先调用 jupyter的 TPI 接口,
- * 获取 用户信息,
- * 实训的 identifier, 状态, 名称, 是否被修改等信息
- */getJupyterInfo(identifier);},[identifier]);Object(__WEBPACK_IMPORTED_MODULE_19_react__["useEffect"])(function(){// 设置jupyter信息
- setJupyterInfo(jupyter_info||{});var user=jupyter_info.user,tpm_modified=jupyter_info.tpm_modified,myshixun_identifier=jupyter_info.myshixun_identifier;if(user){setUserInfo(user);}if(myshixun_identifier){setMyIdentifier(myshixun_identifier);}// 同步代码
- if(tpm_modified&&updateTip&&myshixun_identifier){setUpdateTip(false);updataspinning(true);__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default.a.confirm({title:'更新通知',content:__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'update_notice'},stopposttpip(1),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{className:'update_txt'},'\u8BE5\u5B9E\u8BAD\u5DF2\u66F4\u65B0\uFF0C\u60A8\u9009\u62E9\u66F4\u65B0\u540E\u4E4B\u524D\u7F16\u5199\u7684\u5B9E\u8BAD\u4EE3\u7801\u5C06\u4F1A\u4E22\u5931\uFF0C\u5982\u6709\u9700\u8981\u8BF7\u5148\u4F7F\u7528\u3010jupyter\u4E2D-\u6587\u4EF6-\u4E0B\u8F7D\u3011\u4FDD\u5B58\u4EE3\u7801\uFF0C\u518D\u8FDB\u884C\u66F4\u65B0')),okText:'立即更新',cancelText:'稍后再说',onOk:function onOk(){syncJupyterCode(myshixun_identifier,'同步成功');},onCancel:function onCancel(){updataspinning(false);stopposttpip(2);}});}},[props]);// 重置实训
- var handleClickResetTpi=function handleClickResetTpi(){stopposttpip(1);updataspinning(true);__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default.a.confirm({title:'重置实训',content:__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{style:{lineHeight:'24px'}},'\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,',__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('br',null),'\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F'),okText:'确定',cancelText:'取消',onOk:function onOk(){console.log('调用重置代码....',myIdentifier);if(myIdentifier){syncJupyterCode(myIdentifier,'重置成功');}},onCancel:function onCancel(){stopposttpip(2);updataspinning(false);}});};// 重置环境
- var handleEnvironmentTpi=function handleEnvironmentTpi(){stopposttpip(1);updataspinning(true);__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default.a.confirm({title:'重置环境',content:__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{style:{lineHeight:'24px'}},'\u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F'),okText:'确定',cancelText:'取消',onOk:function onOk(){console.log('调用重置代码....',myIdentifier);// if (myIdentifier) {
- //
- // }
- reset_with_tpi(myIdentifier,'重置成功');},onCancel:function onCancel(){updataspinning(false);stopposttpip(2);}});};// 退出实训
- var handleClickQuitTpi=function handleClickQuitTpi(){// console.log(jupyterInfo);
- var identifier=jupyterInfo.identifier;if(!identifier)return;props.history.push('/shixuns/'+identifier+'/challenges');};// 重新获取 jupyter url
- var handleOnReloadUrl=function handleOnReloadUrl(id){// console.log('jupyter 信息: ', jupyterInfo);
- // 改变加载状态值
- changeGetJupyterUrlState(-1);getJupyterTpiUrl({identifier:myIdentifier});};// 保存代码
- var handleOnSave=function handleOnSave(){// 改变按钮状态
- changeLoadingState(true);saveJupyterTpi();};// 分页信息改变时
- var handlePageChange=function handlePageChange(current){// 改变当前页
- changeCurrentPage(current);// 分页查找数据
- getJupyterTpiDataSet(jupyter_identifier);};var swtichFirstDrawer=function swtichFirstDrawer(){changeshowDrawer(!drawervisible);};var firstDrawerWidth=function firstDrawerWidth(){return 260;};var newPage=false;// 分页处理
- var handleChangePage=function handleChangePage(e,page){//滑动到底判断
- var newscrollTop=parseInt(e.currentTarget.scrollTop);var allclientHeight=e.currentTarget.clientHeight+newscrollTop;if(dataSets.length<total){if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1||e.currentTarget.scrollHeight-allclientHeight===-1){handlePageChange(page+1);}}};// const listCtx = ;
- Object(__WEBPACK_IMPORTED_MODULE_19_react__["useEffect"])(function(){if(dataSets.length>0){// console.log('数据集的个数: ', dataSets.length);
- var oList=dataSets.map(function(item,i){return __WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('li',{className:'jupyter_item',key:'key_'+i},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_tooltip___default.a,{placement:'right'// title={item.file_path}
- ,mouseLeaveDelay:0.3},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'sortinxdirection'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_icon___default.a,{type:'file-text',className:'jupyter_icon fl lineheighttaj filestyles'}),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('a',{className:'jupyter_name ml10 maxnamewidth152 lineheighttaj colorlineheighttaj',title:item.title},item.title),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('a',{className:"fr color-blue lineheighttaj",onClick:function onClick(){jsCopy("file_path"+i);}},'\u590D\u5236\u5730\u5740')),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('input',{id:"file_path"+i,className:"file_path_input",value:item.file_path})));});var oUl=__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('ul',{className:'jupyter_data_list',onScroll:function onScroll(event){return handleChangePage(event,pagination.page);}},oList);setRenderCtx(oUl);}},[props]);var onFinish=function onFinish(){__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default.a.destroyAll();__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default.a.confirm({title:'倒计时截止',content:__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{style:{lineHeight:'24px'}},'\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F'),okText:'确定',cancelText:'取消',onOk:function onOk(){reset_with_tpi(myIdentifier,'重置成功');}});};var endonFinish=function endonFinish(){__WEBPACK_IMPORTED_MODULE_11_antd_lib_modal___default.a.confirm({title:'服务中断提醒',content:__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{style:{lineHeight:'24px'}},'jupyter\u5C06\u4E8E',__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('span',{className:"Countdownfonttpi"},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(Countdown,{value:jupytertime,format:'HH:mm:ss'})),'\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F'),okText:'立即延长',cancelText:'不需要',onOk:function onOk(){active_with_tpi(myIdentifier,'延长成功');}});};return __WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_spin___default.a,{tip:'\u52A0\u8F7D\u4E2D...',spinning:spinning},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'jupyter_area'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'jupyter_header'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_23__developer_components_userInfo__["a" /* default */],{userInfo:userInfo}),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{className:'jupyter_title'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('span',{className:'title_desc',style:{marginTop:'10px'}},jupyterInfo.name),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('span',{className:'title_time jupytertitle_time'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(Countdown,{value:jupytertime,format:'HH:mm:ss',onFinish:onFinish}),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('span',{className:"Countdowntypes"},endjupytertime===false?"":__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(Countdown,{value:endjupytertime,format:'HH:mm:ss',onFinish:endonFinish})))),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('p',{className:'jupyter_btn'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_button___default.a,{className:'btn_common',type:'link',icon:'history',onClick:handleClickResetTpi},'\u91CD\u7F6E\u5B9E\u8BAD'),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_button___default.a,{className:'btn_common',type:'link',icon:'sync',onClick:handleEnvironmentTpi},'\u91CD\u7F6E\u73AF\u5883'),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_button___default.a,{className:'btn_common',type:'link',icon:'poweroff',onClick:handleClickQuitTpi},'\u9000\u51FA\u5B9E\u8BAD'))),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'jupyter_ctx'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_20_react_split_pane__["a" /* default */],{split:'vertical',minSize:350,maxSize:-350,defaultSize:'100%'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_20_react_split_pane__["a" /* default */],{split:'vertical',defaultSize:'100%',allowResize:false},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_25__rightPane__["a" /* default */],{identifier:myIdentifier,status:jupyter_tpi_url_state,url:url,loading:loading,onReloadUrl:handleOnReloadUrl,onSave:handleOnSave}),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_22__page_component_FloatButton__["a" /* default */],{onClick:swtichFirstDrawer,className:drawervisible===false?"jupyter_float_button":"jupyter_float_button newjupyter_float_button"},"数据集"))),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_drawer___default.a,{placement:"right",closable:false,mask:false// onClose={this.onClose}
- ,visible:drawervisible,className:"RightPaneDrawer"},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'jupyter_data_sets_area newjupyter_data_sets_area'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('h2',{className:'jupyter_h2_title bortop17212F'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('i',{className:"iconfont icon-base"}),'\u6570\u636E\u96C6'),dataSets&&dataSets.length===0?"":__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('h2',{className:'borbottom17212F jupyterfilepaths bortop17212F pt5'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('span',{className:"ml50"},'\u6587\u4EF6\u8DEF\u5F84'),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('div',{className:'sortinxdirection'},__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('a',{className:'jupyter_name ml50 maxnamewidth186JUPYTER colorlineheightta height45lineheight45'},jupyter_folder_name),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('a',{className:"fr color-blue font-14 height45lineheight45",onClick:function onClick(){jsCopy("jupyter_folder_name");}},'\u590D\u5236\u5730\u5740')),__WEBPACK_IMPORTED_MODULE_19_react___default.a.createElement('input',{id:'jupyter_folder_name',className:"file_path_input",value:jupyter_folder_name})),renderCtx)))));}var mapStateToProps=function mapStateToProps(state){var _state$jupyterReducer=state.jupyterReducer,jupyter_info=_state$jupyterReducer.jupyter_info,jupyter_tpi_url=_state$jupyterReducer.jupyter_tpi_url,jupyter_data_set=_state$jupyterReducer.jupyter_data_set,jupyter_tpi_url_state=_state$jupyterReducer.jupyter_tpi_url_state,jupyter_data_set_count=_state$jupyterReducer.jupyter_data_set_count,jupyter_folder_name=_state$jupyterReducer.jupyter_folder_name,jupyter_pagination=_state$jupyterReducer.jupyter_pagination,jupyter_identifier=_state$jupyterReducer.jupyter_identifier;var _state$commonReducer=state.commonReducer,loading=_state$commonReducer.loading,drawervisible=_state$commonReducer.drawervisible,jupytertime=_state$commonReducer.jupytertime,spinning=_state$commonReducer.spinning,endjupytertime=_state$commonReducer.endjupytertime;return{loading:loading,jupyter_info:jupyter_info,url:jupyter_tpi_url,dataSets:jupyter_data_set,jupyter_tpi_url_state:jupyter_tpi_url_state,total:jupyter_data_set_count,pagination:jupyter_pagination,jupyter_folder_name:jupyter_folder_name,jupyter_identifier:jupyter_identifier,drawervisible:drawervisible,jupytertime:jupytertime,endjupytertime:endjupytertime,spinning:spinning};};var mapDispatchToProps=function mapDispatchToProps(dispatch){return{changeGetJupyterUrlState:function changeGetJupyterUrlState(status){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].changeGetJupyterUrlState(status));},getJupyterInfo:function getJupyterInfo(identifier){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].getJupyterInfo(identifier));},// 重置代码
- syncJupyterCode:function syncJupyterCode(identifier,msg){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].syncJupyterCode(identifier,msg));},// 重置代码
- reset_with_tpi:function reset_with_tpi(identifier,msg){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].reset_with_tpi(identifier,msg));},getJupyterTpiDataSet:function getJupyterTpiDataSet(identifier,current){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].getJupyterTpiDataSet(identifier,current));},getJupyterTpiUrl:function getJupyterTpiUrl(identifier){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].getJupyterTpiUrl(identifier));},saveJupyterTpi:function saveJupyterTpi(){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].saveJupyterTpi());},changeLoadingState:function changeLoadingState(flag){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].changeLoadingState(flag));},changeCurrentPage:function changeCurrentPage(current){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].changeCurrentPage(current));},//展开Drawer
- changeshowDrawer:function changeshowDrawer(type){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].changeshowDrawer(type));},//倒计时增加
- addjypertime:function addjypertime(type){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].addjypertime(type));},//延时
- active_with_tpi:function active_with_tpi(identifier,msg){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].active_with_tpi(identifier,msg));},updataspinning:function updataspinning(identifier,msg){return dispatch(__WEBPACK_IMPORTED_MODULE_24__redux_actions__["a" /* default */].updataspinning(identifier,msg));}};};/* harmony default export */ __webpack_exports__["default"] = (Object(__WEBPACK_IMPORTED_MODULE_21_react_redux__["b" /* connect */])(mapStateToProps,mapDispatchToProps)(JupyterTPI));
-
- /***/ }),
-
- /***/ 865:
- /***/ (function(module, exports) {
-
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
-
- module.exports = isArray;
-
-
- /***/ }),
-
- /***/ 912:
- /***/ (function(module, exports, __webpack_require__) {
-
- var baseToString = __webpack_require__(914);
-
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- return value == null ? '' : baseToString(value);
- }
-
- module.exports = toString;
-
-
- /***/ }),
-
- /***/ 913:
- /***/ (function(module, exports) {
-
- /**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
-
- module.exports = arrayMap;
-
-
- /***/ }),
-
- /***/ 914:
- /***/ (function(module, exports, __webpack_require__) {
-
- var Symbol = __webpack_require__(177),
- arrayMap = __webpack_require__(913),
- isArray = __webpack_require__(865),
- isSymbol = __webpack_require__(306);
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0;
-
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
-
- /**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- */
- function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isArray(value)) {
- // Recursively convert values (susceptible to call stack limits).
- return arrayMap(value, baseToString) + '';
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- module.exports = baseToString;
-
-
- /***/ })
-
- });
|