From dcb677dfd02685151cfe176f9ce50d8180d75d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=A4=A9=E5=B0=A7?= Date: Fri, 24 Nov 2017 18:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E4=BA=8E=E6=96=87=E4=BB=B6=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=94=99=E8=AF=AF=E7=9A=84=EF=BC=8C=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=9C=A8=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=AB=AF=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E6=97=A0=E6=95=88=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=B5=AA=E8=B4=B9=E8=B4=B7=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/main.js | 8 +++--- server/common/upload.js | 42 ++++++++++++++++------------ src/components/content.js | 8 +++--- src/components/units/audio/index.js | 2 +- src/components/units/button/index.js | 2 +- src/components/units/image/index.js | 2 +- views/common/docHead.pug | 2 +- 7 files changed, 36 insertions(+), 30 deletions(-) diff --git a/public/main.js b/public/main.js index 83b94a9..343efe2 100644 --- a/public/main.js +++ b/public/main.js @@ -50,11 +50,11 @@ eval("'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-ri },function(module,exports){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar EVENT_NAME_MAP = {\n transitionend: {\n transition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'mozTransitionEnd',\n OTransition: 'oTransitionEnd',\n msTransition: 'MSTransitionEnd'\n },\n\n animationend: {\n animation: 'animationend',\n WebkitAnimation: 'webkitAnimationEnd',\n MozAnimation: 'mozAnimationEnd',\n OAnimation: 'oAnimationEnd',\n msAnimation: 'MSAnimationEnd'\n }\n};\n\nvar endEvents = [];\n\nfunction detectEvents() {\n var testEl = document.createElement('div');\n var style = testEl.style;\n\n if (!('AnimationEvent' in window)) {\n delete EVENT_NAME_MAP.animationend.animation;\n }\n\n if (!('TransitionEvent' in window)) {\n delete EVENT_NAME_MAP.transitionend.transition;\n }\n\n for (var baseEventName in EVENT_NAME_MAP) {\n if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {\n var baseEvents = EVENT_NAME_MAP[baseEventName];\n for (var styleName in baseEvents) {\n if (styleName in style) {\n endEvents.push(baseEvents[styleName]);\n break;\n }\n }\n }\n }\n}\n\nif (typeof window !== 'undefined' && typeof document !== 'undefined') {\n detectEvents();\n}\n\nfunction addEventListener(node, eventName, eventListener) {\n node.addEventListener(eventName, eventListener, false);\n}\n\nfunction removeEventListener(node, eventName, eventListener) {\n node.removeEventListener(eventName, eventListener, false);\n}\n\nvar TransitionEvents = {\n addEndEventListener: function addEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n window.setTimeout(eventListener, 0);\n return;\n }\n endEvents.forEach(function (endEvent) {\n addEventListener(node, endEvent, eventListener);\n });\n },\n\n\n endEvents: endEvents,\n\n removeEndEventListener: function removeEndEventListener(node, eventListener) {\n if (endEvents.length === 0) {\n return;\n }\n endEvents.forEach(function (endEvent) {\n removeEventListener(node, endEvent, eventListener);\n });\n }\n};\n\nexports['default'] = TransitionEvents;\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTg4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9jc3MtYW5pbWF0aW9uL2xpYi9FdmVudC5qcz9iNDIwIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztcblxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7XG4gIHZhbHVlOiB0cnVlXG59KTtcbnZhciBFVkVOVF9OQU1FX01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E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _utils = __webpack_require__(83);\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {\n var pos = _utils2['default'].clone(elFuturePos);\n var size = {\n width: elRegion.width,\n height: elRegion.height\n };\n\n if (overflow.adjustX && pos.left < visibleRect.left) {\n pos.left = visibleRect.left;\n }\n\n // Left edge inside and right edge outside viewport, try to resize it.\n if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {\n size.width -= pos.left + size.width - visibleRect.right;\n }\n\n // Right edge outside viewport, try to move it.\n if (overflow.adjustX && pos.left + size.width > visibleRect.right) {\n // 保证左边界和可视区域左边界对齐\n pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);\n }\n\n // Top edge outside viewport, try to move it.\n if (overflow.adjustY && pos.top < visibleRect.top) {\n pos.top = visibleRect.top;\n }\n\n // Top edge inside and bottom edge outside viewport, try to resize it.\n if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {\n size.height -= pos.top + size.height - visibleRect.bottom;\n }\n\n // Bottom edge outside viewport, try to move it.\n if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {\n // 保证上边界和可视区域上边界对齐\n pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);\n }\n\n return _utils2['default'].mix(pos, size);\n}\n\nexports['default'] = adjustForViewport;\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTg5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2FkanVzdEZvclZpZXdwb3J0LmpzP2JmZjMiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO1xuXG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHtcbiAgdmFsdWU6IHRydWVcbn0pO1xuXG52YXIgX3V0aWxzID0gcmVxdWlyZSgnLi91dGlscycpO1xuXG52YXIgX3V0aWxzMiA9IF9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX3V0aWxzKTtcblxuZnVuY3Rpb24gX2ludGVyb3BSZXF1aXJlRGVmYXVsdChvYmopIHsgcmV0dXJuIG9iaiAmJiBvYmouX19lc01vZHVsZSA/IG9iaiA6IHsgJ2RlZmF1bHQnOiBvYmogfTsgfVxuXG5mdW5jdGlvbiBhZGp1c3RGb3JWaWV3cG9ydChlbEZ1dHVyZVBvcywgZWxSZWdpb24sIHZpc2libGVSZWN0LCBvdmVyZmxvdykge1xuICB2YXIgcG9zID0gX3V0aWxzMlsnZGVmYXVsdCddLmNsb25lKGVsRnV0dXJlUG9zKTtcbiAgdmFyIHNpemUgPSB7XG4gICAgd2lkdGg6IGVsUmVnaW9uLndpZHRoLFxuICAgIGhlaWdodDogZWxSZWdpb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Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * 获取 node 上的 align 对齐点 相对于页面的坐标\n */\n\nfunction getAlignOffset(region, align) {\n var V = align.charAt(0);\n var H = align.charAt(1);\n var w = region.width;\n var h = region.height;\n\n var x = region.left;\n var y = region.top;\n\n if (V === 'c') {\n y += h / 2;\n } else if (V === 'b') {\n y += h;\n }\n\n if (H === 'c') {\n x += w / 2;\n } else if (H === 'r') {\n x += w;\n }\n\n return {\n left: x,\n top: y\n };\n}\n\nexports['default'] = getAlignOffset;\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2dldEFsaWduT2Zmc2V0LmpzPzI0OTEiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO1xuXG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHtcbiAgdmFsdWU6IHRydWVcbn0pO1xuLyoqXG4gKiDojrflj5Ygbm9kZSDkuIrnmoQgYWxpZ24g5a+56b2Q54K5IOebuOWvueS6jumhtemdoueahOWdkOagh1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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _getAlignOffset = __webpack_require__(590);\n\nvar _getAlignOffset2 = _interopRequireDefault(_getAlignOffset);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {\n var p1 = (0, _getAlignOffset2['default'])(refNodeRegion, points[1]);\n var p2 = (0, _getAlignOffset2['default'])(elRegion, points[0]);\n var diff = [p2.left - p1.left, p2.top - p1.top];\n\n return {\n left: elRegion.left - diff[0] + offset[0] - targetOffset[0],\n top: elRegion.top - diff[1] + offset[1] - targetOffset[1]\n };\n}\n\nexports['default'] = getElFuturePos;\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkxLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2dldEVsRnV0dXJlUG9zLmpzPzZiYmQiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO1xuXG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHtcbiAgdmFsdWU6IHRydWVcbn0pO1xuXG52YXIgX2dldEFsaWduT2Zmc2V0ID0gcmVxdWlyZSgnLi9nZXRBbGlnbk9mZnNldCcpO1xuXG52YXIgX2dldEFsaWduT2Zmc2V0MiA9IF9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX2dldEFsaWduT2Zmc2V0KTtcblxuZnVuY3Rpb24gX2ludGVyb3BSZXF1aXJlRGVmYXVsdChvYmopIHsgcmV0dXJuIG9iaiAmJiBvYmouX19lc01vZHVsZSA/IG9iaiA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UFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _utils = __webpack_require__(83);\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction getRegion(node) {\n var offset = void 0;\n var w = void 0;\n var h = void 0;\n if (!_utils2['default'].isWindow(node) && node.nodeType !== 9) {\n offset = _utils2['default'].offset(node);\n w = _utils2['default'].outerWidth(node);\n h = _utils2['default'].outerHeight(node);\n } else {\n var win = _utils2['default'].getWindow(node);\n offset = {\n left: _utils2['default'].getWindowScrollLeft(win),\n top: _utils2['default'].getWindowScrollTop(win)\n };\n w = _utils2['default'].viewportWidth(win);\n h = _utils2['default'].viewportHeight(win);\n }\n offset.width = w;\n offset.height = h;\n return offset;\n}\n\nexports['default'] = getRegion;\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkyLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2dldFJlZ2lvbi5qcz9jZGQ0Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztcblxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7XG4gIHZhbHVlOiB0cnVlXG59KTtcblxudmFyIF91dGlscyA9IHJlcXVpcmUoJy4vdXRpbHMnKTtcblxudmFyIF91dGlsczIgPSBfaW50ZXJvcFJlcXVpcmVEZWZhdWx0KF91dGlscyk7XG5cbmZ1bmN0aW9uIF9pbnRlcm9wUmVxdWlyZURlZmF1bHQob2JqKSB7IHJldHVybiBvYmogJiYgb2JqLl9fZXNNb2R1bGUgPyBvYmogOiB7ICdkZWZhdWx0Jzogb2JqIH07IH1cblx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4vLyBtb2R1bGUgaWQgPSA1OTJcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _utils = __webpack_require__(83);\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _getOffsetParent = __webpack_require__(256);\n\nvar _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);\n\nvar _isAncestorFixed = __webpack_require__(595);\n\nvar _isAncestorFixed2 = _interopRequireDefault(_isAncestorFixed);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * 获得元素的显示部分的区域\n */\nfunction getVisibleRectForElement(element) {\n var visibleRect = {\n left: 0,\n right: Infinity,\n top: 0,\n bottom: Infinity\n };\n var el = (0, _getOffsetParent2['default'])(element);\n var doc = _utils2['default'].getDocument(element);\n var win = doc.defaultView || doc.parentWindow;\n var body = doc.body;\n var documentElement = doc.documentElement;\n\n // Determine the size of the visible rect by climbing the dom accounting for\n // all scrollable containers.\n while (el) {\n // clientWidth is zero for inline block elements in ie.\n if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) &&\n // body may have overflow set on it, yet we still get the entire\n // viewport. In some browsers, el.offsetParent may be\n // document.documentElement, so check for that too.\n el !== body && el !== documentElement && _utils2['default'].css(el, 'overflow') !== 'visible') {\n var pos = _utils2['default'].offset(el);\n // add border\n pos.left += el.clientLeft;\n pos.top += el.clientTop;\n visibleRect.top = Math.max(visibleRect.top, pos.top);\n visibleRect.right = Math.min(visibleRect.right,\n // consider area without scrollBar\n pos.left + el.clientWidth);\n visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);\n visibleRect.left = Math.max(visibleRect.left, pos.left);\n } else if (el === body || el === documentElement) {\n break;\n }\n el = (0, _getOffsetParent2['default'])(el);\n }\n\n // Set element position to fixed\n // make sure absolute element itself don't affect it's visible area\n // https://github.com/ant-design/ant-design/issues/7601\n var originalPosition = null;\n if (!_utils2['default'].isWindow(element) && element.nodeType !== 9) {\n originalPosition = element.style.position;\n var position = _utils2['default'].css(element, 'position');\n if (position === 'absolute') {\n element.style.position = 'fixed';\n }\n }\n\n var scrollX = _utils2['default'].getWindowScrollLeft(win);\n var scrollY = _utils2['default'].getWindowScrollTop(win);\n var viewportWidth = _utils2['default'].viewportWidth(win);\n var viewportHeight = _utils2['default'].viewportHeight(win);\n var documentWidth = documentElement.scrollWidth;\n var documentHeight = documentElement.scrollHeight;\n\n // Reset element position after calculate the visible area\n if (element.style) {\n element.style.position = originalPosition;\n }\n\n if ((0, _isAncestorFixed2['default'])(element)) {\n // Clip by viewport's size.\n visibleRect.left = Math.max(visibleRect.left, scrollX);\n visibleRect.top = Math.max(visibleRect.top, scrollY);\n visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);\n visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);\n } else {\n // Clip by document's size.\n var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);\n visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);\n\n var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);\n visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);\n }\n\n return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;\n}\n\nexports['default'] = getVisibleRectForElement;\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTkzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2dldFZpc2libGVSZWN0Rm9yRWxlbWVudC5qcz9hNDRhIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztcblxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7XG4gIHZhbHVlOiB0cnVlXG59KTtcblxudmFyIF91dGlscyA9IHJlcXVpcmUoJy4vdXRpbHMnKTtcblxudmFyIF91dGlsczIgPSBfaW50ZXJvcFJlcXVpcmVEZWZhdWx0KF91dGlscyk7XG5cbnZhciBfZ2V0T2Zmc2V0UGFyZW50ID0gcmVxdWlyZSgnLi9nZXRPZmZzZXRQYXJlbnQnKTtcblxudmFyIF9nZXRPZmZzZXRQYXJlbnQyID0gX2ludGVyb3BSZXF1aXJlRGVmYXVsdChfZ2V0T2Zmc2V0UGFyZW50KTtcblxudmFyIF9pc0FuY2VzdG9yRml4ZWQgPSByZXF1aXJlKCcuL2lzQW5jZXN0b3JGaXhlZCcpO1xuXG52YXIgX2lzQW5jZXN0b3JGaXhlZDIgPSBfaW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9pc0FuY2VzdG9yRml4ZWQpO1xuXG5mdW5jdGlvbiBfaW50ZXJvcFJlcXVpcmVEZWZhdWx0KG9iaikgeyByZXR1cm4gb2JqICYmIG9iai5fX2VzTW9kdWxlID8gb2JqIDogeyAnZGVmYXVsdCc6IG9iaiB9OyB9XG5cbi8qKlxuICog6I635b6X5YWD57Sg55qE5pi+56S66YOo5YiG55qE5Yy65Z+fXG4gKi9cbmZ1bmN0aW9uIGdldFZpc2libGVSZWN0Rm9yRWxlbWVudChlbGVtZW50KSB7XG4gIHZhciB2aXNpYmxlU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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports,__webpack_require__){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _utils = __webpack_require__(83);\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nvar _getOffsetParent = __webpack_require__(256);\n\nvar _getOffsetParent2 = _interopRequireDefault(_getOffsetParent);\n\nvar _getVisibleRectForElement = __webpack_require__(593);\n\nvar _getVisibleRectForElement2 = _interopRequireDefault(_getVisibleRectForElement);\n\nvar _adjustForViewport = __webpack_require__(589);\n\nvar _adjustForViewport2 = _interopRequireDefault(_adjustForViewport);\n\nvar _getRegion = __webpack_require__(592);\n\nvar _getRegion2 = _interopRequireDefault(_getRegion);\n\nvar _getElFuturePos = __webpack_require__(591);\n\nvar _getElFuturePos2 = _interopRequireDefault(_getElFuturePos);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// http://yiminghe.iteye.com/blog/1124720\n\n/**\n * align dom node flexibly\n * @author yiminghe@gmail.com\n */\n\nfunction isFailX(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;\n}\n\nfunction isFailY(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;\n}\n\nfunction isCompleteFailX(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;\n}\n\nfunction isCompleteFailY(elFuturePos, elRegion, visibleRect) {\n return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;\n}\n\nfunction isOutOfVisibleRect(target) {\n var visibleRect = (0, _getVisibleRectForElement2['default'])(target);\n var targetRegion = (0, _getRegion2['default'])(target);\n\n return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;\n}\n\nfunction flip(points, reg, map) {\n var ret = [];\n _utils2['default'].each(points, function (p) {\n ret.push(p.replace(reg, function (m) {\n return map[m];\n }));\n });\n return ret;\n}\n\nfunction flipOffset(offset, index) {\n offset[index] = -offset[index];\n return offset;\n}\n\nfunction convertOffset(str, offsetLen) {\n var n = void 0;\n if (/%$/.test(str)) {\n n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;\n } else {\n n = parseInt(str, 10);\n }\n return n || 0;\n}\n\nfunction normalizeOffset(offset, el) {\n offset[0] = convertOffset(offset[0], el.width);\n offset[1] = convertOffset(offset[1], el.height);\n}\n\nfunction domAlign(el, refNode, align) {\n var points = align.points;\n var offset = align.offset || [0, 0];\n var targetOffset = align.targetOffset || [0, 0];\n var overflow = align.overflow;\n var target = align.target || refNode;\n var source = align.source || el;\n offset = [].concat(offset);\n targetOffset = [].concat(targetOffset);\n overflow = overflow || {};\n var newOverflowCfg = {};\n var fail = 0;\n // 当前节点可以被放置的显示区域\n var visibleRect = (0, _getVisibleRectForElement2['default'])(source);\n // 当前节点所占的区域, left/top/width/height\n var elRegion = (0, _getRegion2['default'])(source);\n // 参照节点所占的区域, left/top/width/height\n var refNodeRegion = (0, _getRegion2['default'])(target);\n // 将 offset 转换成数值,支持百分比\n normalizeOffset(offset, elRegion);\n normalizeOffset(targetOffset, refNodeRegion);\n // 当前节点将要被放置的位置\n var elFuturePos = (0, _getElFuturePos2['default'])(elRegion, refNodeRegion, points, offset, targetOffset);\n // 当前节点将要所处的区域\n var newElRegion = _utils2['default'].merge(elRegion, elFuturePos);\n\n var isTargetNotOutOfVisible = !isOutOfVisibleRect(target);\n\n // 如果可视区域不能完全放置当前节点时允许调整\n if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTargetNotOutOfVisible) {\n if (overflow.adjustX) {\n // 如果横向不能放下\n if (isFailX(elFuturePos, elRegion, visibleRect)) {\n // 对齐位置反下\n var newPoints = flip(points, /[lr]/ig, {\n l: 'r',\n r: 'l'\n });\n // 偏移量也反下\n var newOffset = flipOffset(offset, 0);\n var newTargetOffset = flipOffset(targetOffset, 0);\n var newElFuturePos = (0, _getElFuturePos2['default'])(elRegion, refNodeRegion, newPoints, newOffset, newTargetOffset);\n\n if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {\n fail = 1;\n points = newPoints;\n offset = newOffset;\n targetOffset = newTargetOffset;\n }\n }\n }\n\n if (overflow.adjustY) {\n // 如果纵向不能放下\n if (isFailY(elFuturePos, elRegion, visibleRect)) {\n // 对齐位置反下\n var _newPoints = flip(points, /[tb]/ig, {\n t: 'b',\n b: 't'\n });\n // 偏移量也反下\n var _newOffset = flipOffset(offset, 1);\n var _newTargetOffset = flipOffset(targetOffset, 1);\n var _newElFuturePos = (0, _getElFuturePos2['default'])(elRegion, refNodeRegion, _newPoints, _newOffset, _newTargetOffset);\n\n if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {\n fail = 1;\n points = _newPoints;\n offset = _newOffset;\n targetOffset = _newTargetOffset;\n }\n }\n }\n\n // 如果失败,重新计算当前节点将要被放置的位置\n if (fail) {\n elFuturePos = (0, _getElFuturePos2['default'])(elRegion, refNodeRegion, points, offset, targetOffset);\n _utils2['default'].mix(newElRegion, elFuturePos);\n }\n\n // 检查反下后的位置是否可以放下了\n // 如果仍然放不下只有指定了可以调整当前方向才调整\n newOverflowCfg.adjustX = overflow.adjustX && isFailX(elFuturePos, elRegion, visibleRect);\n\n newOverflowCfg.adjustY = overflow.adjustY && isFailY(elFuturePos, elRegion, visibleRect);\n\n // 确实要调整,甚至可能会调整高度宽度\n if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {\n newElRegion = (0, _adjustForViewport2['default'])(elFuturePos, elRegion, visibleRect, newOverflowCfg);\n }\n }\n\n // need judge to in case set fixed with in css on height auto element\n if (newElRegion.width !== elRegion.width) {\n _utils2['default'].css(source, 'width', _utils2['default'].width(source) + newElRegion.width - elRegion.width);\n }\n\n if (newElRegion.height !== elRegion.height) {\n _utils2['default'].css(source, 'height', _utils2['default'].height(source) + newElRegion.height - elRegion.height);\n }\n\n // https://github.com/kissyteam/kissy/issues/190\n // 相对于屏幕位置没变,而 left/top 变了\n // 例如
\n _utils2['default'].offset(source, {\n left: newElRegion.left,\n top: newElRegion.top\n }, {\n useCssRight: align.useCssRight,\n useCssBottom: align.useCssBottom,\n useCssTransform: align.useCssTransform\n });\n\n return {\n points: points,\n offset: offset,\n targetOffset: targetOffset,\n overflow: newOverflowCfg\n };\n}\n\ndomAlign.__getOffsetParent = _getOffsetParent2['default'];\n\ndomAlign.__getVisibleRectForElement = _getVisibleRectForElement2['default'];\n\nexports['default'] = domAlign;\n/**\n * 2012-04-26 yiminghe@gmail.com\n * - 优化智能对齐算法\n * - 慎用 resizeXX\n *\n * 2011-07-13 yiminghe@gmail.com note:\n * - 增加智能对齐,以及大小调整选项\n **/\n\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTk0LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2luZGV4LmpzPzQ2NWMiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO1xuXG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHtcbiAgdmFsdWU6IHRydWVcbn0pO1xuXG52YXIgX3V0aWxzID0gcmVxdWlyZSgnLi91dGlscycpO1xuXG52YXIgX3V0aWxzMiA9IF9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX3V0aWxzKTtcblxudmFyIF9nZXRPZmZzZXRQY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TtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0="); },function(module,exports,__webpack_require__){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = isAncestorFixed;\n\nvar _utils = __webpack_require__(83);\n\nvar _utils2 = _interopRequireDefault(_utils);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction isAncestorFixed(element) {\n if (_utils2['default'].isWindow(element) || element.nodeType === 9) {\n return false;\n }\n\n var doc = _utils2['default'].getDocument(element);\n var body = doc.body;\n var parent = null;\n for (parent = element.parentNode; parent && parent !== body; parent = parent.parentNode) {\n var positionStyle = _utils2['default'].css(parent, 'position');\n if (positionStyle === 'fixed') {\n return true;\n }\n }\n return false;\n}\nmodule.exports = exports['default'];//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTk1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL2lzQW5jZXN0b3JGaXhlZC5qcz8zYzQyIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztcblxuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7XG4gIHZhbHVlOiB0cnVlXG59KTtcbmV4cG9ydHNbJ2RlZmF1bHQnXSA9IGlzQW5jZXN0b3JGaXhlZDtcblxudmFyIF91dGlscyA9IHJlcXVpcmUoJy4vdXRpbH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hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getTransformName = getTransformName;\nexports.setTransitionProperty = setTransitionProperty;\nexports.getTransitionProperty = getTransitionProperty;\nexports.getTransformXY = getTransformXY;\nexports.setTransformXY = setTransformXY;\nvar vendorPrefix = void 0;\n\nvar jsCssMap = {\n Webkit: '-webkit-',\n Moz: '-moz-',\n // IE did it wrong again ...\n ms: '-ms-',\n O: '-o-'\n};\n\nfunction getVendorPrefix() {\n if (vendorPrefix !== undefined) {\n return vendorPrefix;\n }\n vendorPrefix = '';\n var style = document.createElement('p').style;\n var testProp = 'Transform';\n for (var key in jsCssMap) {\n if (key + testProp in style) {\n vendorPrefix = key;\n }\n }\n return vendorPrefix;\n}\n\nfunction getTransitionName() {\n return getVendorPrefix() ? getVendorPrefix() + 'TransitionProperty' : 'transitionProperty';\n}\n\nfunction getTransformName() {\n return getVendorPrefix() ? getVendorPrefix() + 'Transform' : 'transform';\n}\n\nfunction setTransitionProperty(node, value) {\n var name = getTransitionName();\n if (name) {\n node.style[name] = value;\n if (name !== 'transitionProperty') {\n node.style.transitionProperty = value;\n }\n }\n}\n\nfunction setTransform(node, value) {\n var name = getTransformName();\n if (name) {\n node.style[name] = value;\n if (name !== 'transform') {\n node.style.transform = value;\n }\n }\n}\n\nfunction getTransitionProperty(node) {\n return node.style.transitionProperty || node.style[getTransitionName()];\n}\n\nfunction getTransformXY(node) {\n var style = window.getComputedStyle(node, null);\n var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());\n if (transform && transform !== 'none') {\n var matrix = transform.replace(/[^0-9\\-.,]/g, '').split(',');\n return { x: parseFloat(matrix[12] || matrix[4], 0), y: parseFloat(matrix[13] || matrix[5], 0) };\n }\n return {\n x: 0,\n y: 0\n };\n}\n\nvar matrix2d = /matrix\\((.*)\\)/;\nvar matrix3d = /matrix3d\\((.*)\\)/;\n\nfunction setTransformXY(node, xy) {\n var style = window.getComputedStyle(node, null);\n var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());\n if (transform && transform !== 'none') {\n var arr = void 0;\n var match2d = transform.match(matrix2d);\n if (match2d) {\n match2d = match2d[1];\n arr = match2d.split(',').map(function (item) {\n return parseFloat(item, 10);\n });\n arr[4] = xy.x;\n arr[5] = xy.y;\n setTransform(node, 'matrix(' + arr.join(',') + ')');\n } else {\n var match3d = transform.match(matrix3d)[1];\n arr = match3d.split(',').map(function (item) {\n return parseFloat(item, 10);\n });\n arr[12] = xy.x;\n arr[13] = xy.y;\n setTransform(node, 'matrix3d(' + arr.join(',') + ')');\n }\n } else {\n setTransform(node, 'translateX(' + xy.x + 'px) translateY(' + xy.y + 'px) translateZ(0)');\n }\n}//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTk2LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9kb20tYWxpZ24vbGliL3Byb3BlcnR5VXRpbHMuanM/MjM2MyJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7XG5cbk9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcIl9fZXNNb2R1bGVcIiwge1xuICB2YWx1ZTogdHJ1ZVxufSk7XG5leHBvcnRzLmdldFRyYW5zZm9ybU5hbWUgPSBnZXRUcmFuc2Zvcm1OYW1lO1xuZXhwb3J0cy5zZXRUcmFuc2l0aW9uUHJvcGVydHkgPSBzZXRUcmFuc2l0aW9uUHJvc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EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTk4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9hbnRkL2xpYi9tZXNzYWdlL3N0eWxlL2luZGV4LmNzcz8zYTUzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2FudGQvbGliL21lc3NhZ2Uvc3R5bGUvaW5kZXguY3NzXG4vLyBtb2R1bGUgaWQgPSA1OThcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTk5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9hbnRkL2xpYi9tb2RhbC9zdHlsZS9pbmRleC5jc3M/NDc2NCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9hbnRkL2xpYi9tb2RhbC9zdHlsZS9pbmRleC5jc3Ncbi8vIG1vZHVsZSBpZCA9IDU5OVxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjAwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9hbnRkL2xpYi9wcm9ncmVzcy9zdHlsZS9pbmRleC5jc3M/YjE0ZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9hbnRkL2xpYi9wcm9ncmVzcy9zdHlsZS9pbmRleC5jc3Ncbi8vIG1vZHVsZSBpZCA9IDYwMFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjAxLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9hbnRkL2xpYi91cGxvYWQvc3R5bGUvaW5kZXguY3NzPzNkYjAiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vYW50ZC9saWIvdXBsb2FkL3N0eWxlL2luZGV4LmNzc1xuLy8gbW9kdWxlIGlkID0gNjAxXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjAyLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9yYy1jb2xvci1waWNrZXIvYXNzZXRzL2luZGV4LmNzcz9lZTE4Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L3JjLWNvbG9yLXBpY2tlci9hc3NldHMvaW5kZXguY3NzXG4vLyBtb2R1bGUgaWQgPSA2MDJcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjAzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvYXBwLnNjc3M/NDY0NSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvYXBwLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYwM1xuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjA0LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvY29tbW9uLnNjc3M/MzBkMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvY29tbW9uLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYwNFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjA1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvY29udGVudC5zY3NzPzRhZTgiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9jb21wb25lbnRzL2NvbnRlbnQuc2Nzc1xuLy8gbW9kdWxlIGlkID0gNjA1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjA2LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvZm9vdGVyLnNjc3M/MThjYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvZm9vdGVyLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYwNlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjA3LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvaGVhZGVyLnNjc3M/YzMzMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvaGVhZGVyLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYwN1xuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjA4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlldy5zY3NzP2JlMjUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9jb21wb25lbnRzL3ByZXZpZXcuc2Nzc1xuLy8gbW9kdWxlIGlkID0gNjA4XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjA5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYXVkaW8vaW5kZXguc2Nzcz9kNmFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvY29tcG9uZW50cy91bml0cy9hdWRpby9pbmRleC5zY3NzXG4vLyBtb2R1bGUgaWQgPSA2MDlcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjEwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYnV0dG9uL2luZGV4LnNjc3M/ZTlmYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYnV0dG9uL2luZGV4LnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYxMFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjExLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvY29kZS9pbmRleC5zY3NzPzFjMjAiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9jb21wb25lbnRzL3VuaXRzL2NvZGUvaW5kZXguc2Nzc1xuLy8gbW9kdWxlIGlkID0gNjExXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjEyLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvaW1hZ2UvaW5kZXguc2Nzcz9jMzFjIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvY29tcG9uZW50cy91bml0cy9pbWFnZS9pbmRleC5zY3NzXG4vLyBtb2R1bGUgaWQgPSA2MTJcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjEzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvbWV0YS9pbmRleC5zY3NzP2RlODEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9jb21wb25lbnRzL3VuaXRzL21ldGEvaW5kZXguc2Nzc1xuLy8gbW9kdWxlIGlkID0gNjEzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjE0LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvcGFuZWwvaW5kZXguc2Nzcz8yNzc5Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvY29tcG9uZW50cy91bml0cy9wYW5lbC9pbmRleC5zY3NzXG4vLyBtb2R1bGUgaWQgPSA2MTRcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjE1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvdGV4dGJvZHkvaW5kZXguc2Nzcz9kZWYyIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvY29tcG9uZW50cy91bml0cy90ZXh0Ym9keS9pbmRleC5zY3NzXG4vLyBtb2R1bGUgaWQgPSA2MTVcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjE2LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvdGl0bGUvaW5kZXguc2Nzcz8zZjg3Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvY29tcG9uZW50cy91bml0cy90aXRsZS9pbmRleC5zY3NzXG4vLyBtb2R1bGUgaWQgPSA2MTZcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjE3LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHNMaXN0LnNjc3M/YzMzMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbXBvbmVudHMvdW5pdHNMaXN0LnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYxN1xuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("// removed by extract-text-webpack-plugin//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjE4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2luZGV4LnNjc3M/NWUyZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2luZGV4LnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDYxOFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports,__webpack_require__){eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(24)))//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjE5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9mYmpzL2xpYi9lbXB0eU9iamVjdC5qcz80MmU0Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IChjKSAyMDEzLXByZXNlbnQsIEZhY2Vib29rLCBJbmMuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXG4gKlxuICovXG5cbid1c2Ugc3RyaWN0JztcblxudmFyIGVtcHR5T2JqZWN0ID0ge307XG5cbmlmIChwcm9jZXNzLmVudi5OT0RFX0VOViAhPT0gJ3Byb2R1Y3Rpb24nKSB7XG4gIE9iamVjdC5mcmVlemUoZW1wdHlPYmplY3QpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGVtcHR5T2JqZWN0O1xuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9mYmpzL2xpYi9lbXB0eU9iamVjdC5qc1xuLy8gbW9kdWxlIGlkID0gNjE5XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n * \n */\n\n/*eslint-disable no-self-compare */\n\n'use strict';\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\nfunction is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n // Added the nonzero y check to make Flow happy, but it is redundant\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n}\n\n/**\n * Performs equality by iterating through keys on an object and returning false\n * when any key has values which are not strictly equal between the arguments.\n * Returns true when the values of all keys are strictly equal.\n */\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = Object.keys(objA);\n var keysB = Object.keys(objB);\n\n if (keysA.length !== keysB.length) {\n return false;\n }\n\n // Test for A's keys different from B.\n for (var i = 0; i < keysA.length; i++) {\n if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = shallowEqual;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjIwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9mYmpzL2xpYi9zaGFsbG93RXF1YWwuanM/ZWUxZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIENvcHlyaWdodCAoYykgMjAxMy1wcmVzZW50LCBGYWNlYm9vaywgSW5jLlxuICpcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBsaWNlbnNlIGZvdW5kIGluIHRoZVxuICogTElDRU5TRSBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxuICpcbiAqIEB0eXBlY2hlY2tzXG4gKiBcbiAqL1xuXG4vKmVzbGludC1kaXNhYmxlIG5vLXNlbGYtY29tcGFyZSAqL1xuXG4ndXNlIHN0cmljdCc7XG5cbnZhciBoYXNPd25Qcm9wZXJ0eSA9IE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHk7XG5cbi8qKlxuICogaW5saW5lZCBPYmplY3QuaXMgcG9seWZpb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O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports){eval("/* global window */\nvar GetParams = function (func) {\n\t'use strict';\n\n\tif (typeof func !== 'function') {\n\t\treturn [];\n\t}\n\n\tvar patternComments = /((\\/\\/.*$)|(\\/\\*[\\s\\S]*?\\*\\/))/mg;\n\tvar patternArguments = /([^\\s,]+)/g;\n\n\tvar funcString = func\n\t\t.toString()\n\t\t.replace(patternComments, '');\n\n\tvar result = funcString\n\t\t.slice(\n\t\t\tfuncString.indexOf('(') + 1,\n\t\t\tfuncString.indexOf(')')\n\t\t)\n\t\t.match(patternArguments);\n\n\tif (result === null) {\n\t\treturn [];\n\t}\n\n\treturn result;\n};\n\nif (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {\n\tmodule.exports = GetParams;\n}\n\nif (typeof window !== 'undefined') {\n\twindow.GetParams = GetParams;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjIxLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9nZXQtcGFyYW1zL2luZGV4LmpzP2Q5OTQiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xudmFyIEdldFBhcmFtcyA9IGZ1bmN0aW9uIChmdW5jKSB7XG5cdCd1c2Ugc3RyaWN0JztcblxuXHRpZiAodHlwZW9mIGZ1bmMgIT09ICdmdW5jdGlvbicpIHtcblx0XHRyZXR1cm4gW107XG5cdH1cblxu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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9"); },function(module,exports){eval("/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\n\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n arguments: true,\n arity: true\n};\n\nvar isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function';\n\nmodule.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {\n if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components\n var keys = Object.getOwnPropertyNames(sourceComponent);\n\n /* istanbul ignore else */\n if (isGetOwnPropertySymbolsAvailable) {\n keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent));\n }\n\n for (var i = 0; i < keys.length; ++i) {\n if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) {\n try {\n targetComponent[keys[i]] = sourceComponent[keys[i]];\n } catch (error) {\n\n }\n }\n }\n }\n\n return targetComponent;\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjIyLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9ob2lzdC1ub24tcmVhY3Qtc3RhdGljcy9pbmRleC5qcz83NzliIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IDIwMTUsIFlhaG9vISBJbmMuXG4gKiBDb3B5cmlnaHR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Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjIzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9pZWVlNzU0L2luZGV4LmpzPzcwZmUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cy5yZWFkID0gZnVuY3Rpb24gKGJ1ZmZlciwgb2Zmc2V0LCBpc0xFLCBtTGVuLCBuQnl0ZXMpIHtcbiAgdmFyIGUsIG1cbiAgdmFyIGVMZW4gPSBuQnl0ZXMgKiA4IC0gbUxlbiAtIDFcbiAgdmFyIGVNYXggPSAoMSA8PCBlTGVuKSAtIDFcbiAgdmFyIGVCaWFzID0gZU1heCA+PiAxXG4gIHZhciBuQml0cyA9IC03XG4gIHZhciBpID0gaXNMRSA/IChuQnl0ZXMgLSAxKSA6IDBcbiAgdmFyIGQgPSBpc0xFID8gLTEgOiAxXG4gIHZhciBzID0gYnVmZmVyW29mZnNldCArIGldXG5cbiAgaSArPSBkXG5cbiAgZSA9IHMgJiAoKDEgPDwgKC1uQml0cykpIC0gMSlcbiAgcyA+Pj0gKC1uQml0cylcbiAgbkJpdHMgKz0gZUxlblxuICBmb3IgKDsgbkJpdHMgPiA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ICBmb3IgKDsgZUxlbiA+IDA7IGJ1ZmZlcltvZmZzZXQgKyBpXSA9IGUgJiAweGZmLCBpICs9IGQsIGUgLz0gMjU2LCBlTGVuIC09IDgpIHt9XG5cbiAgYnVmZmVyW29mZnNldCArIGkgLSBkXSB8PSBzICogMTI4XG59XG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vaWVlZTc1NC9pbmRleC5qc1xuLy8gbW9kdWxlIGlkID0gNjIzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports,__webpack_require__){eval("/* WEBPACK VAR INJECTION */(function(process) {/**\n * Copyright 2013-2015, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(24)))//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI0LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9pbnZhcmlhbnQvYnJvd3Nlci5qcz85NTIwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQ29weXJpZ2h0IDIwMTMtMjAxNSwgRmFjZWJvb2ssIEluYy5cbiAqIEFsbCByaWdodHMgcmVzZXJ2ZWQuXG4gKlxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgQlNELXN0eWxlIGxpY2Vuc2UgZm91bmQgaW4gdGhlXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuIEFuIGFkZGl0aW9uYWwgZ3JhbnRcbiAqIG9mIHBhdGV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E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9pc2FycmF5L2luZGV4LmpzP2VhYmMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHRvU3RyaW5nID0ge30udG9TdHJpbmc7XG5cbm1vZHVsZS5leHBvcnRzID0gQXJyYXkuaXNBcnJheSB8fCBmdW5jdGlvbiAoYXJyKSB7XG4gIHJldHVybiB0b1N0cmluZy5jYWxsKGFycikgPT0gJ1tvYmplY3QgQXJyYXldJztcbn07XG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vaXNhcnJheS9pbmRleC5qc1xuLy8gbW9kdWxlIGlkID0gNjI1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("var pathGetter = __webpack_require__(259);\nvar utils = __webpack_require__(627);\n\nvar WMap = typeof WeakMap !== 'undefined'?\n WeakMap:\n function() {\n var keys = [];\n var values = [];\n return {\n set: function(key, value) {\n keys.push(key);\n values.push(value);\n },\n get: function(key) {\n for (var i = 0; i < keys.length; i++) {\n if (keys[i] === key) {\n return values[i];\n }\n }\n }\n }\n };\n\n// Based on https://github.com/douglascrockford/JSON-js/blob/master/cycle.js\n\nexports.decycle = function decycle(object, options, replacer) {\n 'use strict';\n\n var map = new WMap()\n\n var hasCircular = Object.prototype.hasOwnProperty.call(options, 'circular');\n\n return (function derez(_value, path, key) {\n\n // The derez recurses through the object, producing the deep copy.\n\n var i, // The loop counter\n name, // Property name\n nu; // The new object or array\n\n // typeof null === 'object', so go on if this value is really an object but not\n // one of the weird builtin objects.\n\n var value = replacer ? replacer(key || '', _value) : _value;\n\n if (options.date && value instanceof Date) {\n return {$jsan: 'd' + value.getTime()};\n }\n if (options.regex && value instanceof RegExp) {\n return {$jsan: 'r' + utils.getRegexFlags(value) + ',' + value.source};\n }\n if (options['function'] && typeof value === 'function') {\n return {$jsan: 'f' + utils.stringifyFunction(value, options['function'])}\n }\n if (options['nan'] && typeof value === 'number' && isNaN(value)) {\n return {$jsan: 'n'}\n }\n if (options['infinity']) {\n if (Number.POSITIVE_INFINITY === value) return {$jsan: 'i'}\n if (Number.NEGATIVE_INFINITY === value) return {$jsan: 'y'}\n }\n if (options['undefined'] && value === undefined) {\n return {$jsan: 'u'}\n }\n if (options['error'] && value instanceof Error) {\n return {$jsan: 'e' + value.message}\n }\n if (options['symbol'] && typeof value === 'symbol') {\n var symbolKey = Symbol.keyFor(value)\n if (symbolKey !== undefined) {\n return {$jsan: 'g' + symbolKey}\n }\n\n // 'Symbol(foo)'.slice(7, -1) === 'foo'\n return {$jsan: 's' + value.toString().slice(7, -1)}\n }\n\n if (options['map'] && typeof Map === 'function' && value instanceof Map && typeof Array.from === 'function') {\n return {$jsan: 'm' + JSON.stringify(decycle(Array.from(value), options, replacer))}\n }\n\n if (options['set'] && typeof Set === 'function' && value instanceof Set && typeof Array.from === 'function') {\n return {$jsan: 'l' + JSON.stringify(decycle(Array.from(value), options, replacer))}\n }\n\n if (value && typeof value.toJSON === 'function') {\n value = value.toJSON(key);\n }\n\n if (typeof value === 'object' && value !== null &&\n !(value instanceof Boolean) &&\n !(value instanceof Date) &&\n !(value instanceof Number) &&\n !(value instanceof RegExp) &&\n !(value instanceof String) &&\n !(typeof value === 'symbol') &&\n !(value instanceof Error)) {\n\n // If the value is an object or array, look to see if we have already\n // encountered it. If so, return a $ref/path object.\n\n if (typeof value === 'object' && value !== null) {\n var foundPath = map.get(value);\n if (foundPath) {\n if (hasCircular && path.indexOf(foundPath) === 0) {\n return typeof options.circular === 'function'?\n options.circular(value, path, foundPath):\n options.circular;\n }\n return {$jsan: foundPath};\n }\n map.set(value, path);\n }\n\n\n // If it is an array, replicate the array.\n\n if (Object.prototype.toString.apply(value) === '[object Array]') {\n nu = [];\n for (i = 0; i < value.length; i += 1) {\n nu[i] = derez(value[i], path + '[' + i + ']', i);\n }\n } else {\n\n // If it is an object, replicate the object.\n\n nu = {};\n for (name in value) {\n if (Object.prototype.hasOwnProperty.call(value, name)) {\n var nextPath = /^\\w+$/.test(name) ?\n '.' + name :\n '[' + JSON.stringify(name) + ']';\n nu[name] = name === '$jsan' ? [derez(value[name], path + nextPath)] : derez(value[name], path + nextPath, name);\n }\n }\n }\n return nu;\n }\n return value;\n }(object, '$'));\n};\n\n\nexports.retrocycle = function retrocycle($) {\n 'use strict';\n\n\n return (function rez(value) {\n\n // The rez function walks recursively through the object looking for $jsan\n // properties. When it finds one that has a value that is a path, then it\n // replaces the $jsan object with a reference to the value that is found by\n // the path.\n\n var i, item, name, path;\n\n if (value && typeof value === 'object') {\n if (Object.prototype.toString.apply(value) === '[object Array]') {\n for (i = 0; i < value.length; i += 1) {\n item = value[i];\n if (item && typeof item === 'object') {\n if (item.$jsan) {\n value[i] = utils.restore(item.$jsan, $);\n } else {\n rez(item);\n }\n }\n }\n } else {\n for (name in value) {\n // base case passed raw object\n if(typeof value[name] === 'string' && name === '$jsan'){\n return utils.restore(value.$jsan, $);\n break;\n }\n else {\n if (name === '$jsan') {\n value[name] = value[name][0];\n }\n if (typeof value[name] === 'object') {\n item = value[name];\n if (item && typeof item === 'object') {\n if (item.$jsan) {\n value[name] = utils.restore(item.$jsan, $);\n } else {\n rez(item);\n }\n }\n }\n }\n }\n }\n }\n return value;\n }($));\n};\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI2LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9qc2FuL2xpYi9jeWNsZS5qcz84N2RhIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBwYXRoR2V0dGVyID0gcmVxdWlyZSgnLi9wYXRoLWdldHRlcicpO1xudmFyIHV0aWxzID0gcmVxdWlyZSgnLi91dGlscycpO1xuXG52YXIgV01hcCA9IHR5cGVvZiBXZWFrTWFwICE9PSAndW5kZWZpbmVkJz9cbiAgV2Vha01hcDpcbiAgZnVuY3Rpb24oKSB7XG4gICAgdmFyIGtleXMgPSBbXTtcbiAgICB2YXIgdmFsdWVzID0gW107XG4gICAgcmV0dXJuIHtcbiAgICAgIHNldDogZnVuY3Rpb24oa2V5LCB2YWx1ZSkge1xuICAgICAgICBrZXlzLnB1c2goa2V5KTtcbiAgICAgICAgdmFsdWVzLnB1c2godmFsdWUpO1xuICAgICAgfSxcbiAgICAgIGdldDogZnVuY3Rpb24oa2V5KSB7XG4gICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwga2V5cy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgIGlmIChrZXlzW2ldID09PSBrZXkpIHtcbiAgICAgICAgICAgIHJldHVybiB2YWx1ZXNbaV07XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9O1xuXG4vLyBCYXNlZCBvbiBodHRwczovL2dpdGh1Yi5jb20vZG91Z2xhc2Nyb2NrZm9yZC9KU09OLWpzL2Jsb2IvbWFzdGVyL2N5Y2xlLmpzXG5cbmV4cG9ydHMuZGVjeWNsZSA9IGZ1bmN0aW9uIGRlY3ljbGUob2JqZWN0LCBvcHRpb25zLCByZXBsYWNlcikge1xuICAndXNlIHN0cmljdCc7XG5cbi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ldJykge1xuICAgICAgICAgIG51ID0gW107XG4gICAgICAgICAgZm9yIChpID0gMDsgaSA8IHZhbHVlLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgICAgICAgICAgIG51W2ldID0gZGVyZXoodmFsdWVbaV0sIHBhdGggKyAnWycgKyBpICsgJ10nLCBpKTtcbiAgICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuXG4gICAgICAgIC8vIElmIGl0IGlzIGFuIG9iamVjdCwgcmVwbGljYXRlIHRoZSBvYmplY3QuXG5cbiAgICAgICAgbnUgPSB7fTtcbiAgICAgICAgZm9yIChuYW1lIGluIHZhbHVlKSB7XG4gICAgICAgICAgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbCh2YWx1ZSwgbmFtZSkpIHtcbiAgICAgICAgICAgIHZhciBuZXh0UGF0aCA9IC9eXFx3KyQvLnRlc3QobmFtZSkgP1xuICAgICAgICAgICAgICAnLicgKyBuYW1lIDpcbiAgICAgICAgICAgICAgJ1snICsgSlNPTi5zdHJpbmdpZnkobmFtZSkgKyAnXSc7XG4gICAgICAgICAgICBudVtuYW1lXSA9IG5hbWUgPT09ICckanNhbicgPyBbZGVyZXoodmFsdWVbbmFtZV0sIHBhdGggKyBuZXh0UGF0aCldIDogZGVyZXoodmFsdWVbbmFtZV0sIHBhdGggKyBuZXh0UGF0aCwgbmFtZSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgICByZXR1cm4gbnU7XG4gICAgfVxuICAgIHJldHVybiB2YWx1ZTtcbiAgfShvYmplY3QsICckJykpO1xufTtcblxuXG5leHBvcnRzLnJldHJvY3ljbGUgPSBmdW5jdGlvbiByZXRyb2N5Y2xlKCQpIHtcbiAgJ3VzZSBzdHJpY3QnO1xuXG5cbiAgcmV0dXJuIChmdW5jdGlvbiByZXoodmFsdWUpIHtcblxuICAgIC8vIFRoZSByZXogZnVuY3Rpb24gd2Fsa3MgcmVjdXJzaXZlbH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FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("var pathGetter = __webpack_require__(259);\nvar jsan = __webpack_require__(258);\n\nexports.getRegexFlags = function getRegexFlags(regex) {\n var flags = '';\n if (regex.ignoreCase) flags += 'i';\n if (regex.global) flags += 'g';\n if (regex.multiline) flags += 'm';\n return flags;\n};\n\nexports.stringifyFunction = function stringifyFunction(fn, customToString) {\n if (typeof customToString === 'function') {\n return customToString(fn);\n }\n var str = fn.toString();\n var match = str.match(/^[^{]*{|^[^=]*=>/);\n var start = match ? match[0] : ' ';\n var end = str[str.length - 1] === '}' ? '}' : '';\n return start.replace(/\\r\\n|\\n/g, ' ').replace(/\\s+/g, ' ') + ' /* ... */ ' + end;\n};\n\nexports.restore = function restore(obj, root) {\n var type = obj[0];\n var rest = obj.slice(1);\n switch(type) {\n case '$':\n return pathGetter(root, obj);\n case 'r':\n var comma = rest.indexOf(',');\n var flags = rest.slice(0, comma);\n var source = rest.slice(comma + 1);\n return RegExp(source, flags);\n case 'd':\n return new Date(+rest);\n case 'f':\n var fn = function() { throw new Error(\"can't run jsan parsed function\") };\n fn.toString = function() { return rest; };\n return fn;\n case 'u':\n return undefined;\n case 'e':\n var error = new Error(rest);\n error.stack = 'Stack is unavailable for jsan parsed errors';\n return error;\n case 's':\n return Symbol(rest);\n case 'g':\n return Symbol.for(rest);\n case 'm':\n return new Map(jsan.parse(rest));\n case 'l':\n return new Set(jsan.parse(rest));\n case 'n':\n return NaN;\n case 'i':\n return Infinity;\n case 'y':\n return -Infinity;\n default:\n console.warn('unknown type', obj);\n return obj;\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI3LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9qc2FuL2xpYi91dGlscy5qcz9iMGU2Il0sInNvdXJjZXNDb250ZW50IjpbInZhciBwYXRoR2V0dGVyID0gcmVxdWlyZSgnLi9wYXRoLWdldHRlcicpO1xudmFyIGpzYW4gPSByZXF1aXJlKCcuLycpO1xuXG5leHBvcnRzLmdldFJlZ2V4RmxhZ3MgPSBmdW5jdGlvbiBnZXRSZWdleEZsYWdzKHJlZ2V4KSB7XG4gIHZhciBmbGFncyA9ICcnO1xuICBpZiAocmVnZXguaWdub3JlQ2FzZSkgZmxhZ3MgKz0gJ2knO1xuICBpZiAocmVnZXguZ2xvYmFsKSBmbGFncyArPSAnZyc7XG4gIGlmIChyZWdleC5tdWx0aWxpbmUpIGZsYWdzICs9ICdtJztcbiAgcmV0dXJuIGZsYWdzO1xufTtcblxuZXhwb3J0cy5zdHJpbmdpZnlGdW5jdGlvbiA9IGZ1bmN0aW9uIHN0cmluZ2lmeUZ1bmN0aW9uKGZuLCBjdXN0b21Ub1N0cmluZykge1xuICBpZiAodHlwZW9mIGN1c3RvbVRvU3RyaW5nID09PSAnZnVuY3Rpb24nKSB7XG4gICAgcmV0dXJuIGN1c3RvbVRvU3RyaW5nKGZuKTtcbiAgfVxuICB2YXIgc3RyID0gZm4udG9TdHJpbmcoKTtcbiAgdmFyIG1hdGNoID0gc3RyLm1hdGNoKC9eW157XSp7fF5bXj1dKj0+Lyk7XG4gIHZhciBzdGFydCA9IG1hdGNoID8gbWF0Y2hbMF0gOiAnPGZ1bmN0aW9uPiAnO1xuICB2YXIgZW5kID0gc3RyW3N0ci5sZW5ndGggLSAxXSA9PT0gJ30nID8gJ30nIDogJyc7XG4gIHJldHVybiBzdGFydC5yZXBsYWNlKC9cXHJcXG58XFxuL2csICcgJykucm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tBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9"); -},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _promise=__webpack_require__(331);var _promise2=_interopRequireDefault(_promise);var _modal=__webpack_require__(87);var _modal2=_interopRequireDefault(_modal);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/app.js';__webpack_require__(88);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _reactRedux=__webpack_require__(134);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n__webpack_require__(604);\n__webpack_require__(603);\n\nvar _header=__webpack_require__(631);var _header2=_interopRequireDefault(_header);\nvar _unitsList=__webpack_require__(645);var _unitsList2=_interopRequireDefault(_unitsList);\nvar _content=__webpack_require__(629);var _content2=_interopRequireDefault(_content);\nvar _footer=__webpack_require__(630);var _footer2=_interopRequireDefault(_footer);\nvar _preview=__webpack_require__(260);var _preview2=_interopRequireDefault(_preview);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\n\n\nvar _jquery=__webpack_require__(198);var _jquery2=_interopRequireDefault(_jquery);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\nApp=function(_React$Component){(0,_inherits3.default)(App,_React$Component);function App(){(0,_classCallCheck3.default)(this,App);return(0,_possibleConstructorReturn3.default)(this,(App.__proto__||(0,_getPrototypeOf2.default)(App)).apply(this,arguments));}(0,_createClass3.default)(App,[{key:'handleClickMask',value:function handleClickMask(\nevent){\n(0,_jquery2.default)('.m-units-list').css('left','-200px');\n(0,_jquery2.default)('.m-preview').hide();\n(0,_jquery2.default)('.mask').hide();\n}},{key:'showConfirm',value:function showConfirm(\naddress){\n_modal2.default.confirm({\ntitle:'温馨提示',\ncontent:\n_react2.default.createElement('div',{__source:{fileName:_jsxFileName,lineNumber:29}},\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:30}},'\\u56E0\\u4E3A\\u670D\\u52A1\\u5668\\u4F1A\\u5B9A\\u671F\\u6E05\\u7406\\u4E00\\u4E2A\\u6708\\u524D\\u4E0A\\u4F20\\u5230\\u670D\\u52A1\\u5668\\u4F46\\u662F\\u6CA1\\u6709\\u53D1\\u5E03\\u7684\\u6587\\u4EF6\\uFF0C\\u6240\\u4EE5\\u4F1A\\u5BFC\\u81F4\\u90E8\\u5206\\u6587\\u4EF6\\u52A0\\u8F7D\\u4E0D\\u4E86\\u3002'),\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:31}},'\\u60A8\\u53EF\\u4EE5\\u9009\\u62E9\\u8FD4\\u56DE\\u91CD\\u65B0\\u4E0A\\u4F20\\u5982\\u4E0B\\u6587\\u4EF6\\uFF1A'),\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:32}},address),\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:33}},'\\u6216\\u8005\\uFF0C\\u5982\\u679C\\u4E0D\\u9700\\u8981\\u5B58\\u50A8\\u914D\\u7F6E\\u53EF\\u76F4\\u63A5\\u9009\\u62E9\\u6E05\\u7A7A\\u914D\\u7F6E\\u3002')),\n\nonOk:function onOk(){_unit2.default.clear();},\nonCancel:function onCancel(){},\nokText:\"清空\",\ncancelText:\"返回\"});\n\n}},{key:'componentWillMount',value:function componentWillMount()\n{\nvar me=this;\n\n\n\nfunction getFileType(filename){\nvar name=filename.toLowerCase();\nreturn /\\.(?:png|gif|jpg|jpeg|svg)$/.test(name)?\"img\":/\\.(?:mp3|ogg|wav)$/.test(name)?\"audio\":/\\.(?:ogg|mp4|webm)$/.test(name)?\"video\":'unknown';\n}\nvar localData=localStorage.getItem('config');\nif(!!localData){\nvar addressArr=[];\nvar formatlocalData=JSON.parse(localData);\nformatlocalData.forEach(function(item,index){\nitem.address&&addressArr.push(item.address);\n});\nvar promises=addressArr.map(function(address){\nreturn new _promise2.default(function(resolve,reject){\nvar type=getFileType(address);\nif(type!='unknown'){\nvar domType=document.createElement(type);\ndomType.onload=function(){\nresolve(domType);\n};\ndomType.onerror=function(){\nreject(new Error(address));\n};\ndomType.src=address;\n}else{\nreject(new Error(address));\n}\n});\n});\n_promise2.default.all(promises).then(function(posts){\n\nreturn;\n}).catch(function(reason){\n\nme.showConfirm(reason.message);\n});\n}\n}},{key:'componentDidMount',value:function componentDidMount()\n\n{\n\nvar setPreviewSize=function setPreviewSize(){\nvar wHeight=window.innerHeight;\nvar wWidth=window.innerWidth;\nvar ratio=wWidth<800?wHeight/800:(wHeight-100)/800;\n(0,_jquery2.default)('.m-preview').css('transform','scale('+ratio+')');\n};\nsetPreviewSize();\nif(window.innerWidth>800){\n(0,_jquery2.default)(window).on('resize',function(){\nsetPreviewSize();\n});\n}\n\nif(screen.width<800&&(0,_jquery2.default)('.m-units-list').height()>(0,_jquery2.default)('.m-units-list ul').height()+200){\n(0,_jquery2.default)('.m-units-list ul').css('height','100%');\n}\n(0,_jquery2.default)('#J_aside').click(function(event){\n(0,_jquery2.default)('.m-units-list').css('left','0');\n(0,_jquery2.default)('.mask').show();\n});\n(0,_jquery2.default)('#J_preview').click(function(event){\n(0,_jquery2.default)('.m-preview').show();\n(0,_jquery2.default)('.mask').show();\n});\n(0,_jquery2.default)('#app').on('touchmove',function(e){\nif((0,_jquery2.default)('.m-preview').css('display')=='block'&&(0,_jquery2.default)('.mask').css('display')=='block'){\ne.preventDefault();\n}\n});\n}},{key:'render',value:function render()\n{\n\nreturn(\n_react2.default.createElement('div',{id:'main',__source:{fileName:_jsxFileName,lineNumber:119}},\n_react2.default.createElement(_header2.default,{__source:{fileName:_jsxFileName,lineNumber:120}}),\n_react2.default.createElement('div',{className:'mask',onClick:this.handleClickMask,__source:{fileName:_jsxFileName,lineNumber:121}}),\n_react2.default.createElement('div',{className:'m-body f-cb',__source:{fileName:_jsxFileName,lineNumber:122}},\n_react2.default.createElement(_unitsList2.default,{__source:{fileName:_jsxFileName,lineNumber:123}}),\n_react2.default.createElement(_content2.default,{__source:{fileName:_jsxFileName,lineNumber:124}}),\n_react2.default.createElement(_preview2.default,{__source:{fileName:_jsxFileName,lineNumber:125}})),\n\n_react2.default.createElement(_footer2.default,{__source:{fileName:_jsxFileName,lineNumber:127}})));\n\n\n}}]);return App;}(_react2.default.Component);exports.default=\n\n\nApp;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvYXBwLmpzP2FkNDYiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF9wcm9taXNlPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvY29yZS1qcy9wcm9taXNlJyk7dmFyIF9wcm9taXNlMj1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9wcm9taXNlKTt2YXIgX21vZGFsPXJlcXVpcmUoJ2FudGQvbGliL21vZGFsJyk7dmFyIF9tb2RhbDI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfbW9kYWwpO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9jb3JlLWpzL29iamVjdC9nZXQtcHJvdG90eXBlLW9mJyk7dmFyIF9nZXRQcm90b3R5cGVPZjI9X2ludGVyb3BS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tBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _stringify=__webpack_require__(141);var _stringify2=_interopRequireDefault(_stringify);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _modal=__webpack_require__(87);var _modal2=_interopRequireDefault(_modal);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/content.js',_class,_class2,_temp;__webpack_require__(100);__webpack_require__(98);__webpack_require__(88);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _reactRedux=__webpack_require__(134);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\n\n\n__webpack_require__(605);\n\n__webpack_require__(602);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\n\nvar _index=__webpack_require__(642);var _index2=_interopRequireDefault(_index);\nvar _index3=__webpack_require__(644);var _index4=_interopRequireDefault(_index3);\nvar _index5=__webpack_require__(641);var _index6=_interopRequireDefault(_index5);\nvar _index7=__webpack_require__(639);var _index8=_interopRequireDefault(_index7);\nvar _index9=__webpack_require__(643);var _index10=_interopRequireDefault(_index9);\nvar _index11=__webpack_require__(638);var _index12=_interopRequireDefault(_index11);\nvar _index13=__webpack_require__(640);var _index14=_interopRequireDefault(_index13);\n\nvar _preview=__webpack_require__(260);var _preview2=_interopRequireDefault(_preview);\n\n__webpack_require__(830);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}\n\nvar renderUnits=function renderUnits(units){\nreturn units.map(function(item,index){\nswitch(item.get('type')){\ncase'META':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:30}},_react2.default.createElement(_index2.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:30}}));\ncase'TITLE':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:32}},_react2.default.createElement(_index4.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:32}}));\ncase'IMAGE':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:34}},_react2.default.createElement(_index6.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:34}}));\ncase'BUTTON':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:36}},_react2.default.createElement(_index8.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:36}}));\ncase'TEXTBODY':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:38}},_react2.default.createElement(_index10.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:38}}));\ncase'AUDIO':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:40}},_react2.default.createElement(_index12.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:40}}));\ncase'CODE':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:42}},_react2.default.createElement(_index14.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:42}}));}\n\n});\n};var\n\n\nContent=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(Content,_React$Component);\n\n\n\nfunction Content(props){(0,_classCallCheck3.default)(this,Content);var _this=(0,_possibleConstructorReturn3.default)(this,(Content.__proto__||(0,_getPrototypeOf2.default)(Content)).call(this,\nprops));\n_this.state={\nerrTip:'',\nvisible:false,\nconfirmLoading:false};return _this;\n\n}(0,_createClass3.default)(Content,[{key:'clearSettings',value:function clearSettings()\n{\n_modal2.default.confirm({\ntitle:'确认清空所有配置?',\nonOk:function onOk(){\n_unit2.default.clear();\n},\nonCancel:function onCancel(){}});\n\n}},{key:'handleChange',value:function handleChange(\ninfo){\nif(info.file.status!=='uploading'){\nconsole.log('正在导入...');\n}\nif(info.file.status==='done'){\nconsole.log('导入完成!');\nthis.setState({\nerrTip:'',\nvisible:false,\nconfirmLoading:false});\n\nif(info.file.response.file.ok){\nif(/\\.json$/.test(info.file.response.file.url)){\n_unit2.default.clear();\n_unit2.default.insert(info.file.response.file.data);\n_message3.default.success(info.file.name+' \\u5BFC\\u5165\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error('文件格式错误');\n}\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u5BFC\\u5165\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('导入失败!');\n_message3.default.error(info.file.name+' \\u5BFC\\u5165\\u5931\\u8D25\\uFF01');\n}\n}},{key:'handleOk',value:function handleOk()\n{var _this2=this;\nvar inputInfo=this.refs.inputInfo.value.trim();\nif(inputInfo===''){\nthis.setState({\nerrTip:'输入信息不能为空'});\n\nreturn;\n}\nthis.setState({\nconfirmLoading:true});\n\nfetch('/getConfig',{\nmethod:'POST',\nheaders:{\n'Content-Type':'application/json'},\n\nbody:(0,_stringify2.default)({inputInfo:inputInfo})}).\n\nthen(function(response){return response.json();}).\nthen(function(data){\n_this2.setState({\nconfirmLoading:false});\n\nif(data.retcode==200){\n_this2.handleCancel();\n_unit2.default.insert(data.config);\n_message3.default.success(data.retdesc||\"信息导入成功!\");\n}else{\n_this2.setState({\nerrTip:data.retdesc});\n\n}\n}).\ncatch(function(e){return console.log(\"Oops, error\",e);});\n}},{key:'handleCancel',value:function handleCancel()\n{var _this3=this;\nthis.setState({\nvisible:false});\n\nsetTimeout(function(){\n_this3.refs.inputInfo.value='';\n_this3.setState({\nerrTip:'',\nconfirmLoading:false});\n\n},500);\n}},{key:'download',value:function download()\n{\nvar config=JSON.parse(localStorage.getItem('config')||'');\nfetch('/download',{\nmethod:'POST',\nheaders:{\n'Content-Type':'application/json'},\n\nbody:(0,_stringify2.default)(config)}).\n\nthen(function(response){return response.json();}).\nthen(function(data){\nif(screen.width>800){\nvar a=document.createElement('a');\na.href=data.filepath;\na.download='config.json';\ndocument.body.appendChild(a);\na.click();\ndocument.body.removeChild(a);\n}else{\nlocation.href=data.filepath;\n}\n}).\ncatch(function(e){return console.log(\"Oops, error\",e);});\n}},{key:'render',value:function render()\n{var _this4=this;var\nunit=this.props.unit;var _state=\nthis.state,errTip=_state.errTip,visible=_state.visible,confirmLoading=_state.confirmLoading;\nvar uploadProps={\nname:'file',\naction:'/upload',\naccept:'.json',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:this.handleChange.bind(this)};\n\nif(screen.width<800){\nuploadProps.accept='.json,.txt,.js';\n}\nreturn(\n_react2.default.createElement('section',{className:'m-content f-fl',__source:{fileName:_jsxFileName,lineNumber:183}},\n_react2.default.createElement(_modal2.default,{title:'\\u5BFC\\u5165\\u914D\\u7F6E',\nwrapClassName:'upload-dialog',\nvisible:visible,\nmaskClosable:false,\nonOk:this.handleOk.bind(this),\nconfirmLoading:confirmLoading,\nonCancel:this.handleCancel.bind(this),__source:{fileName:_jsxFileName,lineNumber:184}},\n\n_react2.default.createElement('div',{className:'m-upload',__source:{fileName:_jsxFileName,lineNumber:192}},\n_react2.default.createElement('em',{__source:{fileName:_jsxFileName,lineNumber:193}},'1\\u3001\\u4E0A\\u4F20\\u672C\\u5730json\\u914D\\u7F6E\\u6587\\u4EF6\\uFF0C'),\n_react2.default.createElement('span',{__source:{fileName:_jsxFileName,lineNumber:194}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:195}}),'\\u70B9\\u51FB\\u8FD9\\u91CC'))),\n\n\n_react2.default.createElement('div',{className:'m-inputInfo',__source:{fileName:_jsxFileName,lineNumber:198}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:199}},'2\\u3001\\u8F93\\u5165\\u76F8\\u5173\\u4FE1\\u606F'),\n_react2.default.createElement('textarea',{\nref:'inputInfo',\ntype:'text',\nplaceholder:'\\u652F\\u6301\\u4EE5\\u4E0B\\u4FE1\\u606F\\u5BFC\\u5165\\uFF1A\\r\\n1. \\u53D1\\u5E03\\u76EE\\u5F55\\u540D\\u79F0\\r\\n2. \\u5B8C\\u6574\\u7684\\u7EBF\\u4E0A\\u5730\\u5740\\r\\n3. \\u5B8C\\u6574\\u7684 json \\u914D\\u7F6E\\u4FE1\\u606F',\nonFocus:function onFocus(){_this4.setState({errTip:''});},__source:{fileName:_jsxFileName,lineNumber:200}}),\n\n_react2.default.createElement('p',{className:'errTip',__source:{fileName:_jsxFileName,lineNumber:206}},_react2.default.createElement('i',{className:'iconfont icon-cuowu '+(errTip==\"\"?\"f-hide\":\"\"),__source:{fileName:_jsxFileName,lineNumber:206}}),errTip),\n_react2.default.createElement('h4',{__source:{fileName:_jsxFileName,lineNumber:207}},'\\u6CE8\\u610F\\uFF01\\uFF01\\u52A0\\u8F7D\\u65B0\\u914D\\u7F6E\\u4F1A\\u6E05\\u7A7A\\u73B0\\u6709\\u7684\\u914D\\u7F6E\\uFF01\\uFF01'))),\n\n\n_react2.default.createElement('div',{__source:{fileName:_jsxFileName,lineNumber:210}},'\\u5185\\u5BB9\\u914D\\u7F6E\\u533A(',\n\n_react2.default.createElement('span',{className:'J_insert',onClick:function onClick(){return _this4.setState({visible:true});},__source:{fileName:_jsxFileName,lineNumber:212}},'\\u5BFC\\u5165'),'|',\n_react2.default.createElement('span',{className:'J_output',onClick:this.download,__source:{fileName:_jsxFileName,lineNumber:213}},'\\u5BFC\\u51FA'),'|',\n_react2.default.createElement('span',{className:'J_clear',onClick:this.clearSettings,__source:{fileName:_jsxFileName,lineNumber:214}},'\\u6E05\\u7A7A'),')',\n_react2.default.createElement('em',{id:'J_preview',__source:{fileName:_jsxFileName,lineNumber:215}},'\\u9884\\u89C8',_react2.default.createElement('i',{className:'icon iconfont icon-yulan',__source:{fileName:_jsxFileName,lineNumber:215}}))),\n\n_react2.default.createElement('ul',{id:'unitMain',__source:{fileName:_jsxFileName,lineNumber:217}},\nrenderUnits(unit))));\n\n\n\n}}]);return Content;}(_react2.default.Component),_class2.propTypes={unit:_reactImmutableProptypes2.default.list},_temp))||_class;exports.default=\n\n\n(0,_reactRedux.connect)(\nfunction(state){return{\nunit:state.get('unit')};})(\n\nContent);//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvY29udGVudC5qcz9mMjJjIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J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TtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); +},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _promise=__webpack_require__(331);var _promise2=_interopRequireDefault(_promise);var _modal=__webpack_require__(87);var _modal2=_interopRequireDefault(_modal);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/app.js';__webpack_require__(88);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _reactRedux=__webpack_require__(134);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n__webpack_require__(604);\n__webpack_require__(603);\n\nvar _header=__webpack_require__(631);var _header2=_interopRequireDefault(_header);\nvar _unitsList=__webpack_require__(645);var _unitsList2=_interopRequireDefault(_unitsList);\nvar _content=__webpack_require__(629);var _content2=_interopRequireDefault(_content);\nvar _footer=__webpack_require__(630);var _footer2=_interopRequireDefault(_footer);\nvar _preview=__webpack_require__(260);var _preview2=_interopRequireDefault(_preview);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\n\n\nvar _jquery=__webpack_require__(198);var _jquery2=_interopRequireDefault(_jquery);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\nApp=function(_React$Component){(0,_inherits3.default)(App,_React$Component);function App(){(0,_classCallCheck3.default)(this,App);return(0,_possibleConstructorReturn3.default)(this,(App.__proto__||(0,_getPrototypeOf2.default)(App)).apply(this,arguments));}(0,_createClass3.default)(App,[{key:'handleClickMask',value:function handleClickMask(\nevent){\n(0,_jquery2.default)('.m-units-list').css('left','-200px');\n(0,_jquery2.default)('.m-preview').hide();\n(0,_jquery2.default)('.mask').hide();\n}},{key:'showConfirm',value:function showConfirm(\naddress){\n_modal2.default.confirm({\ntitle:'温馨提示',\ncontent:\n_react2.default.createElement('div',{__source:{fileName:_jsxFileName,lineNumber:29}},\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:30}},'\\u56E0\\u4E3A\\u670D\\u52A1\\u5668\\u4F1A\\u5B9A\\u671F\\u6E05\\u7406\\u4E00\\u4E2A\\u6708\\u524D\\u4E0A\\u4F20\\u5230\\u670D\\u52A1\\u5668\\u4F46\\u662F\\u6CA1\\u6709\\u53D1\\u5E03\\u7684\\u6587\\u4EF6\\uFF0C\\u6240\\u4EE5\\u4F1A\\u5BFC\\u81F4\\u90E8\\u5206\\u6587\\u4EF6\\u52A0\\u8F7D\\u4E0D\\u4E86\\u3002'),\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:31}},'\\u60A8\\u53EF\\u4EE5\\u9009\\u62E9\\u8FD4\\u56DE\\u91CD\\u65B0\\u4E0A\\u4F20\\u5982\\u4E0B\\u6587\\u4EF6\\uFF1A'),\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:32}},address),\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:33}},'\\u6216\\u8005\\uFF0C\\u5982\\u679C\\u4E0D\\u9700\\u8981\\u5B58\\u50A8\\u914D\\u7F6E\\u53EF\\u76F4\\u63A5\\u9009\\u62E9\\u6E05\\u7A7A\\u914D\\u7F6E\\u3002')),\n\nonOk:function onOk(){_unit2.default.clear();},\nonCancel:function onCancel(){},\nokText:\"清空\",\ncancelText:\"返回\"});\n\n}},{key:'componentWillMount',value:function componentWillMount()\n{\nvar me=this;\n\n\n\nfunction getFileType(filename){\nvar name=filename.toLowerCase();\nreturn /\\.(?:png|gif|jpg|jpeg|svg)$/.test(name)?\"img\":/\\.(?:mp3|ogg|wav)$/.test(name)?\"audio\":/\\.(?:ogg|mp4|webm)$/.test(name)?\"video\":'unknown';\n}\nvar localData=localStorage.getItem('config');\nif(!!localData){\nvar addressArr=[];\nvar formatlocalData=JSON.parse(localData);\nformatlocalData.forEach(function(item,index){\nitem.address&&addressArr.push(item.address);\n});\nvar promises=addressArr.map(function(address){\nreturn new _promise2.default(function(resolve,reject){\nvar type=getFileType(address);\nif(type!='unknown'){\nvar domType=document.createElement(type);\ndomType.onload=function(){\nresolve(domType);\n};\ndomType.onerror=function(){\nreject(new Error(address));\n};\ndomType.src=address;\n}else{\nreject(new Error(address));\n}\n});\n});\n_promise2.default.all(promises).then(function(posts){\n\nreturn;\n}).catch(function(reason){\n\nme.showConfirm(reason.message);\n});\n}\n}},{key:'componentDidMount',value:function componentDidMount()\n\n{\n\nvar setPreviewSize=function setPreviewSize(){\nvar wHeight=window.innerHeight;\nvar wWidth=window.innerWidth;\nvar ratio=wWidth<800?wHeight/800:(wHeight-100)/800;\n(0,_jquery2.default)('.m-preview').css('transform','scale('+ratio+')');\n};\nsetPreviewSize();\nif(window.innerWidth>800){\n(0,_jquery2.default)(window).on('resize',function(){\nsetPreviewSize();\n});\n}\n\nif(screen.width<800&&(0,_jquery2.default)('.m-units-list').height()>(0,_jquery2.default)('.m-units-list ul').height()+200){\n(0,_jquery2.default)('.m-units-list ul').css('height','100%');\n}\n(0,_jquery2.default)('#J_aside').click(function(event){\n(0,_jquery2.default)('.m-units-list').css('left','0');\n(0,_jquery2.default)('.mask').show();\n});\n(0,_jquery2.default)('#J_preview').click(function(event){\n(0,_jquery2.default)('.m-preview').show();\n(0,_jquery2.default)('.mask').show();\n});\n(0,_jquery2.default)('#app').on('touchmove',function(e){\nif((0,_jquery2.default)('.m-preview').css('display')=='block'&&(0,_jquery2.default)('.mask').css('display')=='block'){\ne.preventDefault();\n}\n});\n}},{key:'render',value:function render()\n{\n\nreturn(\n_react2.default.createElement('div',{id:'main',__source:{fileName:_jsxFileName,lineNumber:119}},\n_react2.default.createElement(_header2.default,{__source:{fileName:_jsxFileName,lineNumber:120}}),\n_react2.default.createElement('div',{className:'mask',onClick:this.handleClickMask,__source:{fileName:_jsxFileName,lineNumber:121}}),\n_react2.default.createElement('div',{className:'m-body f-cb',__source:{fileName:_jsxFileName,lineNumber:122}},\n_react2.default.createElement(_unitsList2.default,{__source:{fileName:_jsxFileName,lineNumber:123}}),\n_react2.default.createElement(_content2.default,{__source:{fileName:_jsxFileName,lineNumber:124}}),\n_react2.default.createElement(_preview2.default,{__source:{fileName:_jsxFileName,lineNumber:125}})),\n\n_react2.default.createElement(_footer2.default,{__source:{fileName:_jsxFileName,lineNumber:127}})));\n\n\n}}]);return App;}(_react2.default.Component);exports.default=\n\n\nApp;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvYXBwLmpzP2FkNDYiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF9wcm9taXNlPXJlcX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BQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _stringify=__webpack_require__(141);var _stringify2=_interopRequireDefault(_stringify);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _modal=__webpack_require__(87);var _modal2=_interopRequireDefault(_modal);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/content.js',_class,_class2,_temp;__webpack_require__(100);__webpack_require__(98);__webpack_require__(88);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _reactRedux=__webpack_require__(134);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\n\n\n__webpack_require__(605);\n\n__webpack_require__(602);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\n\nvar _index=__webpack_require__(642);var _index2=_interopRequireDefault(_index);\nvar _index3=__webpack_require__(644);var _index4=_interopRequireDefault(_index3);\nvar _index5=__webpack_require__(641);var _index6=_interopRequireDefault(_index5);\nvar _index7=__webpack_require__(639);var _index8=_interopRequireDefault(_index7);\nvar _index9=__webpack_require__(643);var _index10=_interopRequireDefault(_index9);\nvar _index11=__webpack_require__(638);var _index12=_interopRequireDefault(_index11);\nvar _index13=__webpack_require__(640);var _index14=_interopRequireDefault(_index13);\n\nvar _preview=__webpack_require__(260);var _preview2=_interopRequireDefault(_preview);\n\n__webpack_require__(830);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}\n\nvar renderUnits=function renderUnits(units){\nreturn units.map(function(item,index){\nswitch(item.get('type')){\ncase'META':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:30}},_react2.default.createElement(_index2.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:30}}));\ncase'TITLE':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:32}},_react2.default.createElement(_index4.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:32}}));\ncase'IMAGE':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:34}},_react2.default.createElement(_index6.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:34}}));\ncase'BUTTON':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:36}},_react2.default.createElement(_index8.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:36}}));\ncase'TEXTBODY':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:38}},_react2.default.createElement(_index10.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:38}}));\ncase'AUDIO':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:40}},_react2.default.createElement(_index12.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:40}}));\ncase'CODE':\nreturn _react2.default.createElement('li',{key:index,id:index,__source:{fileName:_jsxFileName,lineNumber:42}},_react2.default.createElement(_index14.default,{id:index,data:item,__source:{fileName:_jsxFileName,lineNumber:42}}));}\n\n});\n};var\n\n\nContent=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(Content,_React$Component);\n\n\n\nfunction Content(props){(0,_classCallCheck3.default)(this,Content);var _this=(0,_possibleConstructorReturn3.default)(this,(Content.__proto__||(0,_getPrototypeOf2.default)(Content)).call(this,\nprops));\n_this.state={\nerrTip:'',\nvisible:false,\nconfirmLoading:false};return _this;\n\n}(0,_createClass3.default)(Content,[{key:'clearSettings',value:function clearSettings()\n{\n_modal2.default.confirm({\ntitle:'确认清空所有配置?',\nonOk:function onOk(){\n_unit2.default.clear();\n},\nonCancel:function onCancel(){}});\n\n}},{key:'handleChange',value:function handleChange(\ninfo){\nif(info.file.status!=='uploading'){\nconsole.log('正在导入...');\n}\nif(info.file.status==='done'){\nconsole.log('导入完成!');\nthis.setState({\nerrTip:'',\nvisible:false,\nconfirmLoading:false});\n\nif(info.file.response.file.ok){\nif(/\\.json$/.test(info.file.response.file.url)){\n_unit2.default.clear();\n_unit2.default.insert(info.file.response.file.data);\n_message3.default.success(info.file.name+' \\u5BFC\\u5165\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error('文件格式错误');\n}\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u5BFC\\u5165\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('导入失败!');\n_message3.default.error(info.file.name+' \\u5BFC\\u5165\\u5931\\u8D25\\uFF01');\n}\n}},{key:'handleOk',value:function handleOk()\n{var _this2=this;\nvar inputInfo=this.refs.inputInfo.value.trim();\nif(inputInfo===''){\nthis.setState({\nerrTip:'输入信息不能为空'});\n\nreturn;\n}\nthis.setState({\nconfirmLoading:true});\n\nfetch('/getConfig',{\nmethod:'POST',\nheaders:{\n'Content-Type':'application/json'},\n\nbody:(0,_stringify2.default)({inputInfo:inputInfo})}).\n\nthen(function(response){return response.json();}).\nthen(function(data){\n_this2.setState({\nconfirmLoading:false});\n\nif(data.retcode==200){\n_this2.handleCancel();\n_unit2.default.insert(data.config);\n_message3.default.success(data.retdesc||\"信息导入成功!\");\n}else{\n_this2.setState({\nerrTip:data.retdesc});\n\n}\n}).\ncatch(function(e){return console.log(\"Oops, error\",e);});\n}},{key:'handleCancel',value:function handleCancel()\n{var _this3=this;\nthis.setState({\nvisible:false});\n\nsetTimeout(function(){\n_this3.refs.inputInfo.value='';\n_this3.setState({\nerrTip:'',\nconfirmLoading:false});\n\n},500);\n}},{key:'download',value:function download()\n{\nvar config=JSON.parse(localStorage.getItem('config')||'');\nfetch('/download',{\nmethod:'POST',\nheaders:{\n'Content-Type':'application/json'},\n\nbody:(0,_stringify2.default)(config)}).\n\nthen(function(response){return response.json();}).\nthen(function(data){\nif(screen.width>800){\nvar a=document.createElement('a');\na.href=data.filepath;\na.download='config.json';\ndocument.body.appendChild(a);\na.click();\ndocument.body.removeChild(a);\n}else{\nlocation.href=data.filepath;\n}\n}).\ncatch(function(e){return console.log(\"Oops, error\",e);});\n}},{key:'render',value:function render()\n{var _this4=this;var\nunit=this.props.unit;var _state=\nthis.state,errTip=_state.errTip,visible=_state.visible,confirmLoading=_state.confirmLoading;\nvar uploadProps={\nname:'file',\naction:'/upload?type=page',\naccept:'.json',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:this.handleChange.bind(this)};\n\n\n\n\nreturn(\n_react2.default.createElement('section',{className:'m-content f-fl',__source:{fileName:_jsxFileName,lineNumber:183}},\n_react2.default.createElement(_modal2.default,{title:'\\u5BFC\\u5165\\u914D\\u7F6E',\nwrapClassName:'upload-dialog',\nvisible:visible,\nmaskClosable:false,\nonOk:this.handleOk.bind(this),\nconfirmLoading:confirmLoading,\nonCancel:this.handleCancel.bind(this),__source:{fileName:_jsxFileName,lineNumber:184}},\n\n_react2.default.createElement('div',{className:'m-upload',__source:{fileName:_jsxFileName,lineNumber:192}},\n_react2.default.createElement('em',{__source:{fileName:_jsxFileName,lineNumber:193}},'1\\u3001\\u4E0A\\u4F20\\u672C\\u5730json\\u914D\\u7F6E\\u6587\\u4EF6\\uFF0C'),\n_react2.default.createElement('span',{__source:{fileName:_jsxFileName,lineNumber:194}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:195}}),'\\u70B9\\u51FB\\u8FD9\\u91CC'))),\n\n\n_react2.default.createElement('div',{className:'m-inputInfo',__source:{fileName:_jsxFileName,lineNumber:198}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:199}},'2\\u3001\\u8F93\\u5165\\u76F8\\u5173\\u4FE1\\u606F'),\n_react2.default.createElement('textarea',{\nref:'inputInfo',\ntype:'text',\nplaceholder:'\\u652F\\u6301\\u4EE5\\u4E0B\\u4FE1\\u606F\\u5BFC\\u5165\\uFF1A\\r\\n1. \\u53D1\\u5E03\\u76EE\\u5F55\\u540D\\u79F0\\r\\n2. \\u5B8C\\u6574\\u7684\\u7EBF\\u4E0A\\u5730\\u5740\\r\\n3. \\u5B8C\\u6574\\u7684 json \\u914D\\u7F6E\\u4FE1\\u606F',\nonFocus:function onFocus(){_this4.setState({errTip:''});},__source:{fileName:_jsxFileName,lineNumber:200}}),\n\n_react2.default.createElement('p',{className:'errTip',__source:{fileName:_jsxFileName,lineNumber:206}},_react2.default.createElement('i',{className:'iconfont icon-cuowu '+(errTip==\"\"?\"f-hide\":\"\"),__source:{fileName:_jsxFileName,lineNumber:206}}),errTip),\n_react2.default.createElement('h4',{__source:{fileName:_jsxFileName,lineNumber:207}},'\\u6CE8\\u610F\\uFF01\\uFF01\\u52A0\\u8F7D\\u65B0\\u914D\\u7F6E\\u4F1A\\u6E05\\u7A7A\\u73B0\\u6709\\u7684\\u914D\\u7F6E\\uFF01\\uFF01'))),\n\n\n_react2.default.createElement('div',{__source:{fileName:_jsxFileName,lineNumber:210}},'\\u5185\\u5BB9\\u914D\\u7F6E\\u533A(',\n\n_react2.default.createElement('span',{className:'J_insert',onClick:function onClick(){return _this4.setState({visible:true});},__source:{fileName:_jsxFileName,lineNumber:212}},'\\u5BFC\\u5165'),'|',\n_react2.default.createElement('span',{className:'J_output',onClick:this.download,__source:{fileName:_jsxFileName,lineNumber:213}},'\\u5BFC\\u51FA'),'|',\n_react2.default.createElement('span',{className:'J_clear',onClick:this.clearSettings,__source:{fileName:_jsxFileName,lineNumber:214}},'\\u6E05\\u7A7A'),')',\n_react2.default.createElement('em',{id:'J_preview',__source:{fileName:_jsxFileName,lineNumber:215}},'\\u9884\\u89C8',_react2.default.createElement('i',{className:'icon iconfont icon-yulan',__source:{fileName:_jsxFileName,lineNumber:215}}))),\n\n_react2.default.createElement('ul',{id:'unitMain',__source:{fileName:_jsxFileName,lineNumber:217}},\nrenderUnits(unit))));\n\n\n\n}}]);return Content;}(_react2.default.Component),_class2.propTypes={unit:_reactImmutableProptypes2.default.list},_temp))||_class;exports.default=\n\n\n(0,_reactRedux.connect)(\nfunction(state){return{\nunit:state.get('unit')};})(\n\nContent);//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjI5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvY29udGVudC5qcz9mMjJjIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3ZhciBfdXBsb2FkPXJlcXVpcmUoJ2FudGQvbGliL3VwbG9hZCcpO3ZhciBfdXBsb2FkMj1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF91cGxvYWQpO3ZhciBfZXh0ZW5kczI9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9oZWxwZXJzL2V4dGVuZHMnKTt2YXIgX2V4dGVuZHMzPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX2V4dGVuZHMyKTt2YXIgX3N0cmluZ2lmeT1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2NvcmUtanMvanNvbi9zdHJpbmdpZnknKTt2YXIgX3N0cmluZ2lmeTI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfc3RyaW5naWZ5KTt2YXIgX21lc3NhZ2UyPXJlcXVpcmUoJ2FudGQvbGliL21lc3NhZ2UnKTt2YXIgX21lc3NhZ2UzPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX21lc3NhZ2UyKTt2YXIgX21vZGFsPXJlcXVpcmUoJ2FudGQvbGliL21vZGFsJyk7dmFyIF9tb2RhbDI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfbW9kYWwpO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtc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QTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); },function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/footer.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\n__webpack_require__(606);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}\n\n\nvar Footer=_react2.default.createClass({displayName:'Footer',\n\nrender:function render(){\nreturn(\n_react2.default.createElement('footer',{__source:{fileName:_jsxFileName,lineNumber:9}},\n_react2.default.createElement('div',{className:'copyright',__source:{fileName:_jsxFileName,lineNumber:10}},'\\xA92017-2018 Tianyao Wei, tywei90@163.com')));\n\n\n}});exports.default=\n\n\nFooter;//# sourceM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2VpOTBAMTYzLmNvbScpKSk7XG5cblxufX0pO2V4cG9ydHMuZGVmYXVsdD1cblxuXG5Gb290ZXI7XG5cblxuLy8gV0VCUEFDSyBGT09URVIgLy9cbi8vIC4vfi9iYWJlbC1sb2FkZXIhLi9zcmMvY29tcG9uZW50cy9mb290ZXIuanMiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/header.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\n\n\n__webpack_require__(607);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nHeader=(0,_pureRenderDecorator2.default)(_class=function(_React$Component){(0,_inherits3.default)(Header,_React$Component);\n\n\n\n\n\n\nfunction Header(props){(0,_classCallCheck3.default)(this,Header);var _this=(0,_possibleConstructorReturn3.default)(this,(Header.__proto__||(0,_getPrototypeOf2.default)(Header)).call(this,\nprops));\n_this.state={\nusername:''};return _this;\n\n}(0,_createClass3.default)(Header,[{key:'componentDidMount',value:function componentDidMount()\n\n{var _this2=this;\nfetch('/username',{\nmethod:'get',\nheaders:{\n'Content-Type':'application/json'}}).\n\n\nthen(function(response){return response.json();}).\nthen(function(data){\n_this2.setState({username:data.data.username||'游客'});\n}).\ncatch(function(e){return console.log(\"Oops, error\",e);});\n}},{key:'render',value:function render()\n{var\nusername=this.state.username;\nreturn(\n_react2.default.createElement('header',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:39}},\n_react2.default.createElement('i',{className:'aside-unitList icon iconfont icon-zhankai',id:'J_aside',__source:{fileName:_jsxFileName,lineNumber:40}}),\n_react2.default.createElement('a',{href:'/',className:'goHome icon iconfont icon-fire f-fl',__source:{fileName:_jsxFileName,lineNumber:41}}),\n_react2.default.createElement('div',{className:'links f-fl',__source:{fileName:_jsxFileName,lineNumber:42}},\n_react2.default.createElement('a',{className:'active',href:'/',__source:{fileName:_jsxFileName,lineNumber:43}},'pagemaker'),\n_react2.default.createElement('a',{href:'/email',__source:{fileName:_jsxFileName,lineNumber:44}},'\\u76F4\\u90AE\\u5DE5\\u5177'),\n_react2.default.createElement('a',{href:'/h5',__source:{fileName:_jsxFileName,lineNumber:45}},'\\u52A8\\u6548\\u9875')),\n\n_react2.default.createElement('div',{className:'user f-fr',__source:{fileName:_jsxFileName,lineNumber:47}},\nscreen.width>800?\n_react2.default.createElement('a',{href:'/users',__source:{fileName:_jsxFileName,lineNumber:49}},'\\u60A8\\u597D\\uFF0C',username):\n_react2.default.createElement('a',{__source:{fileName:_jsxFileName,lineNumber:50}},'\\u60A8\\u597D\\uFF0C',username))));\n\n\n\n\n}}]);return Header;}(_react2.default.Component))||_class;exports.default=\n\n\nHeader;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjMxLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvaGVhZGVyLmpz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__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preAudio.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreTitle=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreTitle,_React$Component);\n\n\n\n\nfunction PreTitle(props){(0,_classCallCheck3.default)(this,PreTitle);return(0,_possibleConstructorReturn3.default)(this,(PreTitle.__proto__||(0,_getPrototypeOf2.default)(PreTitle)).call(this,\nprops));\n}(0,_createClass3.default)(PreTitle,[{key:'render',value:function render()\n{\nvar height,width,audio;\nvar style={};var\ndata=this.props.data;\nvar jsdata=data.toJS();\nswitch(jsdata.size){\ncase'small':height=width='2rem';break;\ncase'middle':height=width='3rem';break;\ncase'big':height=width='4rem';break;}\n\nstyle={\nheight:height,\nwidth:width,\nbackgroundColor:jsdata.bgColor};\n\naudio=function(){\nif(jsdata.auto&&jsdata.loop){\nreturn _react2.default.createElement('audio',{className:'bgMusic',src:jsdata.address,autoPlay:true,loop:true,__source:{fileName:_jsxFileName,lineNumber:33}});\n}else if(!jsdata.auto&&jsdata.loop){\nreturn _react2.default.createElement('audio',{className:'bgMusic',src:jsdata.address,loop:true,__source:{fileName:_jsxFileName,lineNumber:35}});\n}else if(jsdata.auto&&!jsdata.loop){\nreturn _react2.default.createElement('audio',{className:'bgMusic',src:jsdata.address,autoPlay:true,__source:{fileName:_jsxFileName,lineNumber:37}});\n}else{\nreturn _react2.default.createElement('audio',{className:'bgMusic',src:jsdata.address,__source:{fileName:_jsxFileName,lineNumber:39}});\n}\n}();\nreturn(\n!!jsdata.address?\n_react2.default.createElement('section',{className:'audio '+jsdata.position,style:style,__source:{fileName:_jsxFileName,lineNumber:44}},\n_react2.default.createElement('a',{className:'mscBtn',__source:{fileName:_jsxFileName,lineNumber:45}},\n_react2.default.createElement('i',{className:'music-pause',__source:{fileName:_jsxFileName,lineNumber:46}}),\n_react2.default.createElement('i',{className:'music-play',__source:{fileName:_jsxFileName,lineNumber:47}})),\n\naudio):\n\nnull);\n\n}}]);return PreTitle;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreTitle;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjMyLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlld1VuaXRzL3ByZUF1ZGlvLmpzPzM2MDgiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF9nZXRQcm90b3R5cGVPZj1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2NvcmUtanMvb2JqZWN0L2dldC1wcm90b3R5cGUtb2YnKTt2YXIgX2dldFByb3R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require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preButton.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreButton=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreButton,_React$Component);\n\n\n\n\nfunction PreButton(props){(0,_classCallCheck3.default)(this,PreButton);return(0,_possibleConstructorReturn3.default)(this,(PreButton.__proto__||(0,_getPrototypeOf2.default)(PreButton)).call(this,\nprops));\n}(0,_createClass3.default)(PreButton,[{key:'render',value:function render()\n{var _props=\nthis.props,data=_props.data,id=_props.id;\nvar style={},styleInner={};\nvar jsdata=data.toJS();\nstyle={\nmarginTop:jsdata.margin[0]+'px',\nmarginRight:jsdata.margin[1]+'px',\nmarginBottom:jsdata.margin[2]+'px',\nmarginLeft:jsdata.margin[3]+'px'};\n\nvar borderRadius=void 0;\nif(jsdata.bigRadius){\nborderRadius=\"3rem\";\n}else{\nborderRadius=\"0.5rem\";\n}\nvar btnStyle=jsdata.buttonStyle;\nvar bgColor=void 0;\nvar color=void 0;\nif(jsdata.style=='custome'){\nvar background=jsdata.address;\ncolor='#333';\nstyleInner={\ncolor:color,\nbackground:'url('+background+') no-repeat center center /100%',\nborderRadius:0};\n\n}else\n{\nswitch(btnStyle){\ncase'redStyle':\nbgColor='#d91d37';\ncolor='#ffffff';\nbreak;\ncase'yellowStyle':\nbgColor='#ffb400';\ncolor='#38200b';\nbreak;\ncase'blueStyle':\nbgColor='#4095d6';\ncolor='#ffffff';\nbreak;}\n\nstyleInner={\ncolor:color,\nbackgroundColor:bgColor,\nborderRadius:borderRadius};\n\n}\nreturn(\n_react2.default.createElement('section',{className:'button',style:style,__source:{fileName:_jsxFileName,lineNumber:66}},\njsdata.url?\n_react2.default.createElement('a',{style:styleInner,href:jsdata.url,__source:{fileName:_jsxFileName,lineNumber:68}},jsdata.style=='custome'?\" \":jsdata.txt):\n\n_react2.default.createElement('a',{style:styleInner,__source:{fileName:_jsxFileName,lineNumber:70}},jsdata.style=='custome'?\" \":jsdata.txt)));\n\n\n\n}}]);return PreButton;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreButton;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjMzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlld1VuaXRzL3ByZUJ1dHRvbi5qcz8zMDBhIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9jb3JlLWpzL29iamVjdC9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,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preCode.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreCode=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreCode,_React$Component);\n\n\n\nfunction PreCode(props){(0,_classCallCheck3.default)(this,PreCode);return(0,_possibleConstructorReturn3.default)(this,(PreCode.__proto__||(0,_getPrototypeOf2.default)(PreCode)).call(this,\nprops));\n}(0,_createClass3.default)(PreCode,[{key:'render',value:function render()\n{var\ndata=this.props.data;\ndata=data.toJS();\nreturn(\n_react2.default.createElement('setction',{className:'code',__source:{fileName:_jsxFileName,lineNumber:19}}));\n\n\n\n}}]);return PreCode;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map},_temp))||_class;exports.default=\n\nPreCode;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM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fi9iYWJlbC1sb2FkZXIhLi9zcmMvY29tcG9uZW50cy9wcmV2aWV3VW5pdHMvcHJlQ29kZS5qcyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0="); -},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preImg.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreImg=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreImg,_React$Component);\n\n\n\n\nfunction PreImg(props){(0,_classCallCheck3.default)(this,PreImg);var _this=(0,_possibleConstructorReturn3.default)(this,(PreImg.__proto__||(0,_getPrototypeOf2.default)(PreImg)).call(this,\nprops));\n_this.state={};return _this;\n\n}(0,_createClass3.default)(PreImg,[{key:'render',value:function render()\n{\nvar style={};var\ndata=this.props.data;\nvar jsdata=data.toJS();\nstyle={\nbackgroundColor:jsdata.bgColor,\nmarginTop:jsdata.margin[0],\nmarginRight:jsdata.margin[1],\nmarginBottom:jsdata.margin[2],\nmarginLeft:jsdata.margin[3],\npaddingTop:jsdata.padding[0],\npaddingRight:jsdata.padding[1],\npaddingBottom:jsdata.padding[2],\npaddingLeft:jsdata.padding[3]};\n\nreturn(\n_react2.default.createElement('section',{className:'image',style:style,__source:{fileName:_jsxFileName,lineNumber:34}},\njsdata.url?\n_react2.default.createElement('a',{href:jsdata.url,__source:{fileName:_jsxFileName,lineNumber:36}},_react2.default.createElement('img',{src:jsdata.address,__source:{fileName:_jsxFileName,lineNumber:36}})):\n\n_react2.default.createElement('a',{__source:{fileName:_jsxFileName,lineNumber:38}},_react2.default.createElement('img',{src:jsdata.address,__source:{fileName:_jsxFileName,lineNumber:38}}))));\n\n\n\n}}]);return PreImg;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreImg;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlld1VuaXRzL3ByZUltZy5qcz84M2M3Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9jb3JlLWpzL29iam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tBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preTextBody.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreTextBody=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreTextBody,_React$Component);\n\n\n\n\nfunction PreTextBody(props){(0,_classCallCheck3.default)(this,PreTextBody);var _this=(0,_possibleConstructorReturn3.default)(this,(PreTextBody.__proto__||(0,_getPrototypeOf2.default)(PreTextBody)).call(this,\nprops));\n_this.state={};return _this;\n\n}(0,_createClass3.default)(PreTextBody,[{key:'render',value:function render()\n{\nvar fontSize=void 0,textIndent=void 0,lineHeight=void 0,borderRadius=void 0;\nvar style={};\nvar content='';var\ndata=this.props.data;\nvar jsdata=data.toJS();\nif(jsdata.changeLine){\nvar text=jsdata.text.replace(/\\\\\\n/g,'');\nvar arr=text.split('\\n');\ncontent=arr.map(function(val){return'

'+val+'

';}).join('');\n}else{\ncontent=jsdata.text;\n}\nvar contentHtml=_react2.default.createElement('article',{className:'article-content',dangerouslySetInnerHTML:{__html:content},__source:{fileName:_jsxFileName,lineNumber:31}});\nswitch(jsdata.fontSize){\ncase'small':fontSize='1rem';break;\ncase'middle':fontSize='1.2rem';break;\ncase'big':fontSize='1.4rem';break;\ncase'superbig':fontSize='1.6rem';break;}\n\nif(jsdata.retract){\ntextIndent='2em';\n}else{\ntextIndent='0em';\n}\nif(jsdata.bigLH){\nlineHeight=2;\n}else{\nlineHeight=1.5;\n}\nif(jsdata.borderRadius){\nborderRadius='6px';\n}else{\nborderRadius='0';\n}\nstyle={\ncolor:jsdata.textColor,\nbackgroundColor:jsdata.bgColor,\ntextAlign:jsdata.textAlign,\nfontSize:fontSize,\ntextIndent:textIndent,\nlineHeight:lineHeight,\nborderRadius:borderRadius,\nmarginTop:jsdata.margin[0],\nmarginRight:jsdata.margin[1],\nmarginBottom:jsdata.margin[2],\nmarginLeft:jsdata.margin[3],\npaddingTop:jsdata.padding[0],\npaddingRight:jsdata.padding[1],\npaddingBottom:jsdata.padding[2],\npaddingLeft:jsdata.padding[3]};\n\nreturn(\n_react2.default.createElement('section',{className:'textbody '+(jsdata.bigPD?'bigPD':'')+' '+(jsdata.noUL?'noUL':''),style:style,__source:{fileName:_jsxFileName,lineNumber:71}},\ncontentHtml));\n\n\n}}]);return PreTextBody;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreTextBody;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM2LmpzIiwic291cmNlcyI6WyJ3ZW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7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preTitle.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreTitle=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreTitle,_React$Component);\n\n\n\n\nfunction PreTitle(props){(0,_classCallCheck3.default)(this,PreTitle);return(0,_possibleConstructorReturn3.default)(this,(PreTitle.__proto__||(0,_getPrototypeOf2.default)(PreTitle)).call(this,\nprops));\n}(0,_createClass3.default)(PreTitle,[{key:'render',value:function render()\n{\nvar fontSize;\nvar style={},styleInner={};var\ndata=this.props.data;\nvar jsdata=data.toJS();\nswitch(jsdata.fontSize){\ncase'small':fontSize='1.2rem';break;\ncase'middle':fontSize='1.5rem';break;\ncase'big':fontSize='2rem';break;}\n\nstyle={\nmarginTop:jsdata.margin[0],\nmarginRight:jsdata.margin[1],\nmarginBottom:jsdata.margin[2],\nmarginLeft:jsdata.margin[3],\npaddingTop:jsdata.padding[0],\npaddingRight:jsdata.padding[1],\npaddingBottom:jsdata.padding[2],\npaddingLeft:jsdata.padding[3]};\n\nstyleInner={\ncolor:jsdata.color,\nfontSize:fontSize,\ntextAlign:jsdata.textAlign};\n\nreturn(\n_react2.default.createElement('section',{className:'title',style:style,__source:{fileName:_jsxFileName,lineNumber:42}},\njsdata.url?\n_react2.default.createElement('a',{href:jsdata.url,style:styleInner,__source:{fileName:_jsxFileName,lineNumber:44}},jsdata.text):\n\n_react2.default.createElement('a',{style:styleInner,__source:{fileName:_jsxFileName,lineNumber:46}},jsdata.text)));\n\n\n\n}}]);return PreTitle;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreTitle;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM3LmpzIiwic291cmNlcyI6WyJ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VxuXG5QcmVUaXRsZTtcblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9+L2JhYmVsLWxvYWRlciEuL3NyYy9jb21wb25lbnRzL3ByZXZpZXdVbml0cy9wcmVUaXRsZS5qcyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/audio/index.js';__webpack_require__(100);__webpack_require__(98);__webpack_require__(609);\n\nvar _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);\nvar _rcColorPicker=__webpack_require__(133);var _rcColorPicker2=_interopRequireDefault(_rcColorPicker);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitAudio=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitAudio,_React$Component);\n\n\n\n\nfunction UnitAudio(props){(0,_classCallCheck3.default)(this,UnitAudio);var _this=(0,_possibleConstructorReturn3.default)(this,(UnitAudio.__proto__||(0,_getPrototypeOf2.default)(UnitAudio)).call(this,\nprops));\n_this.state={\nuploadProps:{\nname:'file',\naction:'/upload',\naccept:'audio/mp3,audio/wav',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:function onChange(info){\nif(info.file.status!=='uploading'){\nconsole.log('正在上传...');\n}\nif(info.file.status==='done'){\nconsole.log('上传完成!');\nif(info.file.response.file.ok){\n_unit2.default.editUnit(props.id,'address',info.file.response.file.url);\n_message3.default.success(info.file.name+' \\u4E0A\\u4F20\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('上传失败!');\n_message3.default.error(info.file.name+' \\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}}};return _this;\n\n\n}(0,_createClass3.default)(UnitAudio,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;var\nuploadProps=this.state.uploadProps;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:54}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:55}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:56}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:57}},'\\u97F3\\u9891\\u5730\\u5740'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u97F3\\u9891\\u6587\\u4EF6\\u6216\\u5730\\u5740\\uFF0C\\u652F\\u6301wav/mp3\\u683C\\u5F0F',\nvalue:data.get('address'),\nref:'address',\nonChange:function onChange(){return _unit2.default.editUnit(id,'address',_this2.refs.address.value);},__source:{fileName:_jsxFileName,lineNumber:58}}),\n_react2.default.createElement('div',{className:'upload',__source:{fileName:_jsxFileName,lineNumber:65}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:66}}),\n_react2.default.createElement('i',{className:'icon iconfont icon-iosbolt',__source:{fileName:_jsxFileName,lineNumber:67}})))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:71}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:72}},'\\u5C3A\\u5BF8\\u5927\\u5C0F'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:73}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:74}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'size'+id,\nref:'small',\nvalue:'small',\nid:'small'+id,\ndefaultChecked:data.get('size')===\"small\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'size',_this2.refs.small.value);},__source:{fileName:_jsxFileName,lineNumber:75}}),\n\n_react2.default.createElement('label',{htmlFor:'small'+id,__source:{fileName:_jsxFileName,lineNumber:84}},'\\u5C0F')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:86}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'size'+id,\nref:'middle',\nvalue:'middle',\nid:'middle'+id,\ndefaultChecked:data.get('size')===\"middle\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'size',_this2.refs.middle.value);},__source:{fileName:_jsxFileName,lineNumber:87}}),\n\n_react2.default.createElement('label',{htmlFor:'middle'+id,__source:{fileName:_jsxFileName,lineNumber:96}},'\\u4E2D')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:98}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'size'+id,\nref:'big',\nvalue:'big',\nid:'big'+id,\ndefaultChecked:data.get('size')===\"big\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'size',_this2.refs.big.value);},__source:{fileName:_jsxFileName,lineNumber:99}}),\n\n_react2.default.createElement('label',{htmlFor:'big'+id,__source:{fileName:_jsxFileName,lineNumber:108}},'\\u5927')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:112}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:113}},'\\u5B9A\\u4F4D'),\n_react2.default.createElement('ul',{className:'f-fr audio-position',__source:{fileName:_jsxFileName,lineNumber:114}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:115}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'topLeft',\nvalue:'topLeft',\nid:'topLeft'+id,\ndefaultChecked:data.get('position')===\"topLeft\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.topLeft.value);},__source:{fileName:_jsxFileName,lineNumber:116}}),\n\n_react2.default.createElement('label',{htmlFor:'topLeft'+id,__source:{fileName:_jsxFileName,lineNumber:125}},'\\u5DE6\\u4E0A')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:127}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'topRight',\nvalue:'topRight',\nid:'topRight'+id,\ndefaultChecked:data.get('position')===\"topRight\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.topRight.value);},__source:{fileName:_jsxFileName,lineNumber:128}}),\n\n_react2.default.createElement('label',{htmlFor:'topRight'+id,__source:{fileName:_jsxFileName,lineNumber:137}},'\\u53F3\\u4E0A')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:139}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'bottomRight',\nvalue:'bottomRight',\nid:'bottomRight'+id,\ndefaultChecked:data.get('position')===\"bottomRight\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.bottomRight.value);},__source:{fileName:_jsxFileName,lineNumber:140}}),\n\n_react2.default.createElement('label',{htmlFor:'bottomRight'+id,__source:{fileName:_jsxFileName,lineNumber:149}},'\\u53F3\\u4E0B')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:151}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'bottomLeft',\nvalue:'bottomLeft',\nid:'bottomLeft'+id,\ndefaultChecked:data.get('position')===\"bottomLeft\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.bottomLeft.value);},__source:{fileName:_jsxFileName,lineNumber:152}}),\n\n_react2.default.createElement('label',{htmlFor:'bottomLeft'+id,__source:{fileName:_jsxFileName,lineNumber:161}},'\\u5DE6\\u4E0B')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:165}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:166}},'\\u80CC\\u666F\\u989C\\u8272'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u80CC\\u666F\\u989C\\u8272',\nvalue:data.get('bgColor'),\nref:'bgColor',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:167}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('bgColor'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'bgColor',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:175}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:181}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:182}},'\\u64AD\\u653E\\u8BBE\\u7F6E'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:183}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:184}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'loop',\nvalue:'loop',\nid:'loop'+id,\ndefaultChecked:data.get('loop'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'loop',_this2.refs.loop.checked);},__source:{fileName:_jsxFileName,lineNumber:185}}),\n\n_react2.default.createElement('label',{htmlFor:'loop'+id,__source:{fileName:_jsxFileName,lineNumber:194}},'\\u5FAA\\u73AF\\u64AD\\u653E')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:196}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'auto',\nvalue:'auto',\nid:'auto'+id,\ndefaultChecked:data.get('auto'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'auto',_this2.refs.auto.checked);},__source:{fileName:_jsxFileName,lineNumber:197}}),\n\n_react2.default.createElement('label',{htmlFor:'auto'+id,__source:{fileName:_jsxFileName,lineNumber:206}},'\\u81EA\\u52A8\\u64AD\\u653E')))))));\n\n\n\n\n\n\n}}]);return UnitAudio;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitAudio;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYXVkaW8vaW5kZXguanM/Yzc1YyJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7T2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsXCJfX2VzTW9kdWxlXCIse3ZhbHVlOnRydWV9KTt2YXIgX3VwbG9hZD1yZXF1aXJlKCdhbnRkL2xpYi91cGxvYWQnKTt2YXIgX3VwbG9hZDI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfdXBsb2FkKTt2YXIgX2V4dGVuZHMyPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvaGVscGVycy9leHRlbmRzJyk7dmFyIF9leHRlbmRzMz1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9leHRlbmRzMik7dmFyIF9tZXNzYWdlMj1yZXF1aXJlKCdhbnRkL2xpYi9tZXNzYWdlJyk7dmFyIF9tZXNzYWdlMz1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9tZXNzYWdlMik7dmFyIF9nZXRQcm90b3R5cGVPZj1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2NvcmUtanMvb2JqZWN0L2dldC1wcm90b3R5cGUtb2YnKTt2YXIgX2dldFByb3RvdHlwZU9mMj1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9nZXRQcm90b3R5cGVPZik7dmFyIF9jbGFzc0NhbGxDaGVjazI9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9oZWxwZXJzL2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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ=="); -},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/button/index.js';__webpack_require__(100);__webpack_require__(98);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\n__webpack_require__(610);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitButton=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitButton,_React$Component);\n\n\n\n\nfunction UnitButton(props){(0,_classCallCheck3.default)(this,UnitButton);var _this=(0,_possibleConstructorReturn3.default)(this,(UnitButton.__proto__||(0,_getPrototypeOf2.default)(UnitButton)).call(this,\nprops));\n_this.state={\nuploadProps:{\nname:'file',\naction:'/upload',\naccept:'image/*',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:function onChange(info){\nif(info.file.status!=='uploading'){\nconsole.log('正在上传...');\n}\nif(info.file.status==='done'){\nconsole.log('上传完成!');\nif(info.file.response.file.ok){\n_unit2.default.editUnit(props.id,'address',info.file.response.file.url);\n_message3.default.success(info.file.name+' \\u4E0A\\u4F20\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('上传失败!');\n_message3.default.error(info.file.name+' \\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}}};return _this;\n\n\n}(0,_createClass3.default)(UnitButton,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;var\nuploadProps=this.state.uploadProps;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),cls:data.get('style')==\"default\"?'':'low-height',__source:{fileName:_jsxFileName,lineNumber:53}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:54}},\n_react2.default.createElement('li',{__source:{fileName:_jsxFileName,lineNumber:55}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:56}},'\\u6309\\u94AE\\u7C7B\\u578B'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:57}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:58}},\n_react2.default.createElement('input',{\nclassName:'',\nname:'buttonType'+id,\nid:'default'+id,\ntype:'radio',\nvalue:'default',\nref:'default',\nchecked:data.get('style')==\"default\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'style',_this2.refs.default.value);},__source:{fileName:_jsxFileName,lineNumber:59}}),\n\n_react2.default.createElement('label',{htmlFor:'default'+id,__source:{fileName:_jsxFileName,lineNumber:69}},'\\u5185\\u7F6E\\u6837\\u5F0F')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:71}},\n_react2.default.createElement('input',{\nclassName:'',\nname:'buttonType'+id,\nid:'custome'+id,\ntype:'radio',\nvalue:'custome',\nref:'custome',\nchecked:data.get('style')=='custome',\nonChange:function onChange(){return _unit2.default.editUnit(id,'style',_this2.refs.custome.value);},__source:{fileName:_jsxFileName,lineNumber:72}}),\n\n_react2.default.createElement('label',{htmlFor:'custome'+id,__source:{fileName:_jsxFileName,lineNumber:82}},'\\u81EA\\u5B9A\\u4E49\\u56FE\\u7247')))),\n\n\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"default\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:87}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:88}},'\\u6309\\u94AE\\u6587\\u5B57'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u6309\\u94AE\\u4E0A\\u663E\\u793A\\u7684\\u6587\\u5B57',\nvalue:data.get('txt'),\nref:'txt',\nonChange:function onChange(){return _unit2.default.editUnit(id,'txt',_this2.refs.txt.value);},__source:{fileName:_jsxFileName,lineNumber:89}})),\n\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"custome\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:99}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:100}},'\\u6309\\u94AE\\u56FE\\u7247'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u8F93\\u5165\\u5B8C\\u6574\\u56FE\\u7247\\u5730\\u5740\\uFF0C\\u6216\\u4E0A\\u4F20\\u56FE\\u7247',\nvalue:data.get('address'),\nref:'address',\nonChange:function onChange(){return _unit2.default.editUnit(id,'address',_this2.refs.address.value);},__source:{fileName:_jsxFileName,lineNumber:101}}),\n\n_react2.default.createElement('div',{className:'upload',__source:{fileName:_jsxFileName,lineNumber:109}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:110}}),\n_react2.default.createElement('i',{className:'icon iconfont icon-iosbolt',__source:{fileName:_jsxFileName,lineNumber:111}})))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:115}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:116}},'\\u94FE\\u63A5'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u56FE\\u7247\\u70B9\\u51FB\\u8DF3\\u8F6C\\u5730\\u5740',\nvalue:data.get('url'),\nref:'url',\nonChange:function onChange(){return _unit2.default.editUnit(id,'url',_this2.refs.url.value);},__source:{fileName:_jsxFileName,lineNumber:117}})),\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"default\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:126}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:127}},'\\u914D\\u8272'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:128}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:129}},\n_react2.default.createElement('input',{\nname:'buttonStyle'+id,\nid:'redStyle'+id,\ntype:'radio',\nvalue:'redStyle',\nref:'redStyle',\nchecked:data.get('buttonStyle')===\"redStyle\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'buttonStyle',_this2.refs.redStyle.value);},__source:{fileName:_jsxFileName,lineNumber:130}}),\n\n_react2.default.createElement('label',{htmlFor:'redStyle'+id,__source:{fileName:_jsxFileName,lineNumber:139}},'\\u7EA2\\u8272')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:141}},\n_react2.default.createElement('input',{\nname:'buttonStyle'+id,\nid:'yellowStyle'+id,\ntype:'radio',\nvalue:'yellowStyle',\nref:'yellowStyle',\nchecked:data.get('buttonStyle')===\"yellowStyle\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'buttonStyle',_this2.refs.yellowStyle.value);},__source:{fileName:_jsxFileName,lineNumber:142}}),\n\n_react2.default.createElement('label',{htmlFor:'yellowStyle'+id,__source:{fileName:_jsxFileName,lineNumber:151}},'\\u9EC4\\u8272')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:153}},\n_react2.default.createElement('input',{\nname:'buttonStyle'+id,\nid:'blueStyle'+id,\ntype:'radio',\nvalue:'blueStyle',\nref:'blueStyle',\nchecked:data.get('buttonStyle')===\"blueStyle\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'buttonStyle',_this2.refs.blueStyle.value);},__source:{fileName:_jsxFileName,lineNumber:154}}),\n\n_react2.default.createElement('label',{htmlFor:'blueStyle'+id,__source:{fileName:_jsxFileName,lineNumber:163}},'\\u84DD\\u8272')))),\n\n\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"default\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:168}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:169}},'\\u5176\\u4ED6'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:170}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:171}},\n_react2.default.createElement('input',{\nname:'bigRadius'+id,\nid:'bigRadius'+id,\nref:'bigRadius',\ntype:'checkbox',\nchecked:data.get('bigRadius'),\nonChange:function onChange(){return _unit2.default.editUnit(id,'bigRadius',_this2.refs.bigRadius.checked);},__source:{fileName:_jsxFileName,lineNumber:172}}),\n\n_react2.default.createElement('label',{htmlFor:'bigRadius'+id,__source:{fileName:_jsxFileName,lineNumber:180}},'\\u5927\\u5706\\u89D2')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:184}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:185}},'\\u7EC4\\u4EF6\\u5916\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:186}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:187}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:188}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginTop',\ndefaultValue:data.getIn(['margin',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginTop.value=_this2.refs.marginTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:189}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:202}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:203}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginRight',\ndefaultValue:data.getIn(['margin',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginRight.value=_this2.refs.marginRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:204}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:217}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:218}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginBottom',\ndefaultValue:data.getIn(['margin',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginBottom.value=_this2.refs.marginBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:219}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:232}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:233}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginLeft',\ndefaultValue:data.getIn(['margin',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginLeft.value=_this2.refs.marginLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:234}})))))));\n\n\n\n\n\n\n\n}}]);return UnitButton;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitButton;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYnV0dG9uL2luZGV4LmpzP2Q3MzgiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF91cGxvYWQ9cmVxdWlyZSgnYW50ZC9saWIvdXBsb2FkJyk7dmFyIF91cGxvYWQyPV9p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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); -},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/code/index.js';__webpack_require__(611);\n\n\n\nvar _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\n\nvar _CodeMirror=__webpack_require__(831);var _CodeMirror2=_interopRequireDefault(_CodeMirror);\n\n\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitCode=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitCode,_React$Component);\n\n\n\n\nfunction UnitCode(props){(0,_classCallCheck3.default)(this,UnitCode);return(0,_possibleConstructorReturn3.default)(this,(UnitCode.__proto__||(0,_getPrototypeOf2.default)(UnitCode)).call(this,\nprops));\n}(0,_createClass3.default)(UnitCode,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:29}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:30}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:31}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:32}},'\\u6837\\u5F0F(CSS)'),\n_react2.default.createElement('ul',{ref:'cssdiv',className:'css-input f-fr',__source:{fileName:_jsxFileName,lineNumber:33}})),\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:35}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:36}},'\\u811A\\u672C(JS)'),\n_react2.default.createElement('ul',{ref:'jsdiv',className:'js-input f-fr',__source:{fileName:_jsxFileName,lineNumber:37}})),\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:39}},\n_react2.default.createElement('button',{className:'f-fl',onClick:function onClick(e){return _this2.saveCode(e);},__source:{fileName:_jsxFileName,lineNumber:40}},'\\u4FDD\\u5B58\\u7F16\\u8F91')))));\n\n\n\n\n\n\n\n}},{key:'saveCode',value:function saveCode(\ne){var\nid=this.props.id;\n_unit2.default.editUnit(id,'js',this.jsCodeMirror.getValue());\n_unit2.default.editUnit(id,'css',this.cssCodeMirror.getValue());\n}},{key:'componentDidMount',value:function componentDidMount()\n{var\ndata=this.props.data;\nthis.jsCodeMirror=(0,_CodeMirror2.default)(this.refs.jsdiv,{\nvalue:data.get('js'),\nmode:\"javascript\",\nlineNumbers:true,\ntheme:'monokai'});\n\nthis.cssCodeMirror=(0,_CodeMirror2.default)(this.refs.cssdiv,{\nvalue:data.get('css'),\nmode:\"css\",\nlineNumbers:true,\ntheme:'monokai'});\n\n}}]);return UnitCode;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitCode;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvY29kZS9pbmRleC5qcz9jOTUxIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3Zh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99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/image/index.js';__webpack_require__(100);__webpack_require__(98);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\n__webpack_require__(612);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);\nvar _rcColorPicker=__webpack_require__(133);var _rcColorPicker2=_interopRequireDefault(_rcColorPicker);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitImage=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitImage,_React$Component);\n\n\n\n\nfunction UnitImage(props){(0,_classCallCheck3.default)(this,UnitImage);var _this=(0,_possibleConstructorReturn3.default)(this,(UnitImage.__proto__||(0,_getPrototypeOf2.default)(UnitImage)).call(this,\nprops));\n_this.state={\nuploadProps:{\nname:'file',\naction:'/upload',\naccept:'image/*',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:function onChange(info){\nif(info.file.status!=='uploading'){\nconsole.log('正在上传...');\n}\nif(info.file.status==='done'){\nconsole.log('上传完成!');\nif(info.file.response.file.ok){\n_unit2.default.editUnit(props.id,'address',info.file.response.file.url);\n_message3.default.success(info.file.name+' \\u4E0A\\u4F20\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('上传失败!');\n_message3.default.error(info.file.name+' \\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}}};return _this;\n\n\n}(0,_createClass3.default)(UnitImage,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;var\nuploadProps=this.state.uploadProps;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:54}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:55}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:56}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:57}},'\\u56FE\\u7247\\u5730\\u5740'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u8F93\\u5165\\u5B8C\\u6574\\u56FE\\u7247\\u5730\\u5740\\uFF0C\\u6216\\u4E0A\\u4F20\\u56FE\\u7247',\nvalue:data.get('address'),\nref:'address',\nonChange:function onChange(){return _unit2.default.editUnit(id,'address',_this2.refs.address.value);},__source:{fileName:_jsxFileName,lineNumber:58}}),\n\n_react2.default.createElement('div',{className:'upload',__source:{fileName:_jsxFileName,lineNumber:66}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:67}}),\n_react2.default.createElement('i',{className:'icon iconfont icon-iosbolt',__source:{fileName:_jsxFileName,lineNumber:68}})))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:72}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:73}},'\\u94FE\\u63A5'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u56FE\\u7247\\u70B9\\u51FB\\u8DF3\\u8F6C\\u5730\\u5740',\nvalue:data.get('url'),\nref:'url',\nonChange:function onChange(){return _unit2.default.editUnit(id,'url',_this2.refs.url.value);},__source:{fileName:_jsxFileName,lineNumber:74}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:83}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:84}},'\\u586B\\u5145\\u8272'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u586B\\u5145\\u8272',\nvalue:data.get('bgColor'),\nref:'bgColor',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:85}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('bgColor'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'bgColor',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:93}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:99}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:100}},'\\u7EC4\\u4EF6\\u5185\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:101}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:102}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:103}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingTop',\ndefaultValue:data.getIn(['padding',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingTop.value=_this2.refs.paddingTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:104}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:117}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:118}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingRight',\ndefaultValue:data.getIn(['padding',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingRight.value=_this2.refs.paddingRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:119}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:132}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:133}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingBottom',\ndefaultValue:data.getIn(['padding',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingBottom.value=_this2.refs.paddingBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:134}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:147}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:148}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingLeft',\ndefaultValue:data.getIn(['padding',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingLeft.value=_this2.refs.paddingLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:149}})))),\n\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:164}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:165}},'\\u7EC4\\u4EF6\\u5916\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:166}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:167}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:168}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginTop',\ndefaultValue:data.getIn(['margin',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginTop.value=_this2.refs.marginTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:169}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:182}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:183}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginRight',\ndefaultValue:data.getIn(['margin',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginRight.value=_this2.refs.marginRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:184}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:197}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:198}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginBottom',\ndefaultValue:data.getIn(['margin',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginBottom.value=_this2.refs.marginBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:199}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:212}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:213}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginLeft',\ndefaultValue:data.getIn(['margin',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginLeft.value=_this2.refs.marginLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:214}})))))));\n\n\n\n\n\n\n\n}}]);return UnitImage;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitImage;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQxLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvaW1hZ2UvaW5kZXguanM/MzA4NCJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7T2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsXCJfX2VzTW9kdWxlXCIse3ZhbHVlOnRydWV9KTt2YXIgX3VwbG9hZD1yZXF1aXJlKCdhbnRkL2xpYi91cGxvYWQnKTt2YXIgX3VwbG9hZDI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfdXBsb2FkKTt2YXIgX2V4dGVuZHMyPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvaGVscGVycy9leHRlbmRzJyk7dmFyIF9leHRlbmRzMz1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9leHRlbmRzMik7dmFyIF9tZXNzYWdlMj1yZXF1aXJlKCdhbnRkL2xpYi9tZXNzYWdlJyk7dmFyIF9tZXNzYWdlMz1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9tZXNzYWdlMik7dmFyIF9nZXRQcm90b3R5cGVPZj1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2NvcmUtanMvb2JqZWN0L2dldC1wcm90b3R5cGUtb2YnKTt2YXIgX2dldFByb3RvdHlwZU9mMj1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9nZXRQcm90b3R5cGVPZ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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); +},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preImg.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreImg=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreImg,_React$Component);\n\n\n\n\nfunction PreImg(props){(0,_classCallCheck3.default)(this,PreImg);var _this=(0,_possibleConstructorReturn3.default)(this,(PreImg.__proto__||(0,_getPrototypeOf2.default)(PreImg)).call(this,\nprops));\n_this.state={};return _this;\n\n}(0,_createClass3.default)(PreImg,[{key:'render',value:function render()\n{\nvar style={};var\ndata=this.props.data;\nvar jsdata=data.toJS();\nstyle={\nbackgroundColor:jsdata.bgColor,\nmarginTop:jsdata.margin[0],\nmarginRight:jsdata.margin[1],\nmarginBottom:jsdata.margin[2],\nmarginLeft:jsdata.margin[3],\npaddingTop:jsdata.padding[0],\npaddingRight:jsdata.padding[1],\npaddingBottom:jsdata.padding[2],\npaddingLeft:jsdata.padding[3]};\n\nreturn(\n_react2.default.createElement('section',{className:'image',style:style,__source:{fileName:_jsxFileName,lineNumber:34}},\njsdata.url?\n_react2.default.createElement('a',{href:jsdata.url,__source:{fileName:_jsxFileName,lineNumber:36}},_react2.default.createElement('img',{src:jsdata.address,__source:{fileName:_jsxFileName,lineNumber:36}})):\n\n_react2.default.createElement('a',{__source:{fileName:_jsxFileName,lineNumber:38}},_react2.default.createElement('img',{src:jsdata.address,__source:{fileName:_jsxFileName,lineNumber:38}}))));\n\n\n\n}}]);return PreImg;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreImg;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlld1VuaXRzL3ByZUltZy5qcz84M2M3Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9jb3JlLWpzL29iamVjdC9nZXQtcHJvdG90eXBlLW9mJyk7dmFyIF9nZXRQcm90b3R5cGVPZjI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfZ2V0UHJvdG90eXBlT2YpO3ZhciBfY2xhc3NDYWxsQ2hlY2syPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvaGVscGVycy9jbGFzc0NhbGxDaGVjaycpO3ZhciBfY2xhc3NDYWxsQ2hlY2szPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX2NsYXNzQ2FsbENoZWNrMik7dmFyIF9jcmVhdGVDbGFzczI9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9oZWxwZXJzL2NyZWF0ZUNsYXNzJyk7dmFyIF9jcmVhdGVDbGFzczM9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfY3JlYXRlQ2xhc3MyKTt2YXIgX3Bvc3NpYmxlQ29uc3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bn19XSk7cmV0dXJuIFByZUltZzt9KF9yZWFjdDIuZGVmYXVsdC5Db21wb25lbnQpLF9jbGFzczIucHJvcFR5cGVzPXtkYXRhOl9yZWFjdEltbXV0YWJsZVByb3B0eXBlczIuZGVmYXVsdC5tYXAsaWQ6X3JlYWN0LlByb3BUeXBlcy5udW1iZXJ9LF90ZW1wKSl8fF9jbGFzcztleHBvcnRzLmRlZmF1bHQ9XG5cblByZUltZztcblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9+L2JhYmVsLWxvYWRlciEuL3NyYy9jb21wb25lbnRzL3ByZXZpZXdVbml0cy9wcmVJbWcuanMiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preTextBody.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreTextBody=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreTextBody,_React$Component);\n\n\n\n\nfunction PreTextBody(props){(0,_classCallCheck3.default)(this,PreTextBody);var _this=(0,_possibleConstructorReturn3.default)(this,(PreTextBody.__proto__||(0,_getPrototypeOf2.default)(PreTextBody)).call(this,\nprops));\n_this.state={};return _this;\n\n}(0,_createClass3.default)(PreTextBody,[{key:'render',value:function render()\n{\nvar fontSize=void 0,textIndent=void 0,lineHeight=void 0,borderRadius=void 0;\nvar style={};\nvar content='';var\ndata=this.props.data;\nvar jsdata=data.toJS();\nif(jsdata.changeLine){\nvar text=jsdata.text.replace(/\\\\\\n/g,'');\nvar arr=text.split('\\n');\ncontent=arr.map(function(val){return'

'+val+'

';}).join('');\n}else{\ncontent=jsdata.text;\n}\nvar contentHtml=_react2.default.createElement('article',{className:'article-content',dangerouslySetInnerHTML:{__html:content},__source:{fileName:_jsxFileName,lineNumber:31}});\nswitch(jsdata.fontSize){\ncase'small':fontSize='1rem';break;\ncase'middle':fontSize='1.2rem';break;\ncase'big':fontSize='1.4rem';break;\ncase'superbig':fontSize='1.6rem';break;}\n\nif(jsdata.retract){\ntextIndent='2em';\n}else{\ntextIndent='0em';\n}\nif(jsdata.bigLH){\nlineHeight=2;\n}else{\nlineHeight=1.5;\n}\nif(jsdata.borderRadius){\nborderRadius='6px';\n}else{\nborderRadius='0';\n}\nstyle={\ncolor:jsdata.textColor,\nbackgroundColor:jsdata.bgColor,\ntextAlign:jsdata.textAlign,\nfontSize:fontSize,\ntextIndent:textIndent,\nlineHeight:lineHeight,\nborderRadius:borderRadius,\nmarginTop:jsdata.margin[0],\nmarginRight:jsdata.margin[1],\nmarginBottom:jsdata.margin[2],\nmarginLeft:jsdata.margin[3],\npaddingTop:jsdata.padding[0],\npaddingRight:jsdata.padding[1],\npaddingBottom:jsdata.padding[2],\npaddingLeft:jsdata.padding[3]};\n\nreturn(\n_react2.default.createElement('section',{className:'textbody '+(jsdata.bigPD?'bigPD':'')+' '+(jsdata.noUL?'noUL':''),style:style,__source:{fileName:_jsxFileName,lineNumber:71}},\ncontentHtml));\n\n\n}}]);return PreTextBody;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreTextBody;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM2LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlld1VuaXRzL3ByZVRleHRCb2R5LmpzPzRkMDkiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF9nZXRQcm90b3R5cGVPZj1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2NvcmUtanMvb2JqZWN0L2dldC1wcm90b3R5cGUtb2YnKTt2YXIgX2dldFByb3RvdHlwZU9mMj1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9nZXRQcm90b3R5cGVPZik7dmFyIF9jbGFzc0NhbGxDaGVjazI9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9oZWxwZXJzL2NsYXNzQ2FsbENoZWNrJyk7dmF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Q0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/previewUnits/preTitle.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nPreTitle=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(PreTitle,_React$Component);\n\n\n\n\nfunction PreTitle(props){(0,_classCallCheck3.default)(this,PreTitle);return(0,_possibleConstructorReturn3.default)(this,(PreTitle.__proto__||(0,_getPrototypeOf2.default)(PreTitle)).call(this,\nprops));\n}(0,_createClass3.default)(PreTitle,[{key:'render',value:function render()\n{\nvar fontSize;\nvar style={},styleInner={};var\ndata=this.props.data;\nvar jsdata=data.toJS();\nswitch(jsdata.fontSize){\ncase'small':fontSize='1.2rem';break;\ncase'middle':fontSize='1.5rem';break;\ncase'big':fontSize='2rem';break;}\n\nstyle={\nmarginTop:jsdata.margin[0],\nmarginRight:jsdata.margin[1],\nmarginBottom:jsdata.margin[2],\nmarginLeft:jsdata.margin[3],\npaddingTop:jsdata.padding[0],\npaddingRight:jsdata.padding[1],\npaddingBottom:jsdata.padding[2],\npaddingLeft:jsdata.padding[3]};\n\nstyleInner={\ncolor:jsdata.color,\nfontSize:fontSize,\ntextAlign:jsdata.textAlign};\n\nreturn(\n_react2.default.createElement('section',{className:'title',style:style,__source:{fileName:_jsxFileName,lineNumber:42}},\njsdata.url?\n_react2.default.createElement('a',{href:jsdata.url,style:styleInner,__source:{fileName:_jsxFileName,lineNumber:44}},jsdata.text):\n\n_react2.default.createElement('a',{style:styleInner,__source:{fileName:_jsxFileName,lineNumber:46}},jsdata.text)));\n\n\n\n}}]);return PreTitle;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\nPreTitle;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM3LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvcHJldmlld1VuaXRzL3ByZVRpdGxlLmpzP2MxNTEiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF9nZXRQcm90b3R5cGVPZj1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2NvcmUtanMvb2JqZWN0L2dldC1wcm90b3R5cGUtb2YnKTt2YXIgX2dldFByb3RvdHlwZU9mMj1faW50ZXJvcFJlcXVpcmVEZWZhdWx0KF9nZXRQcm90b3R5cGVPZik7dmFyIF9jbGFzc0NhbGxDaGVjazI9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9oZWxwZXJzL2NsYXNzQ2FsbENoZWNrJyk7dm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tBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/audio/index.js';__webpack_require__(100);__webpack_require__(98);__webpack_require__(609);\n\nvar _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);\nvar _rcColorPicker=__webpack_require__(133);var _rcColorPicker2=_interopRequireDefault(_rcColorPicker);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitAudio=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitAudio,_React$Component);\n\n\n\n\nfunction UnitAudio(props){(0,_classCallCheck3.default)(this,UnitAudio);var _this=(0,_possibleConstructorReturn3.default)(this,(UnitAudio.__proto__||(0,_getPrototypeOf2.default)(UnitAudio)).call(this,\nprops));\n_this.state={\nuploadProps:{\nname:'file',\naction:'/upload?type=media',\naccept:'audio/mp3,audio/wav',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:function onChange(info){\nif(info.file.status!=='uploading'){\nconsole.log('正在上传...');\n}\nif(info.file.status==='done'){\nconsole.log('上传完成!');\nif(info.file.response.file.ok){\n_unit2.default.editUnit(props.id,'address',info.file.response.file.url);\n_message3.default.success(info.file.name+' \\u4E0A\\u4F20\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('上传失败!');\n_message3.default.error(info.file.name+' \\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}}};return _this;\n\n\n}(0,_createClass3.default)(UnitAudio,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;var\nuploadProps=this.state.uploadProps;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:54}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:55}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:56}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:57}},'\\u97F3\\u9891\\u5730\\u5740'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u97F3\\u9891\\u6587\\u4EF6\\u6216\\u5730\\u5740\\uFF0C\\u652F\\u6301wav/mp3\\u683C\\u5F0F',\nvalue:data.get('address'),\nref:'address',\nonChange:function onChange(){return _unit2.default.editUnit(id,'address',_this2.refs.address.value);},__source:{fileName:_jsxFileName,lineNumber:58}}),\n_react2.default.createElement('div',{className:'upload',__source:{fileName:_jsxFileName,lineNumber:65}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:66}}),\n_react2.default.createElement('i',{className:'icon iconfont icon-iosbolt',__source:{fileName:_jsxFileName,lineNumber:67}})))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:71}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:72}},'\\u5C3A\\u5BF8\\u5927\\u5C0F'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:73}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:74}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'size'+id,\nref:'small',\nvalue:'small',\nid:'small'+id,\ndefaultChecked:data.get('size')===\"small\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'size',_this2.refs.small.value);},__source:{fileName:_jsxFileName,lineNumber:75}}),\n\n_react2.default.createElement('label',{htmlFor:'small'+id,__source:{fileName:_jsxFileName,lineNumber:84}},'\\u5C0F')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:86}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'size'+id,\nref:'middle',\nvalue:'middle',\nid:'middle'+id,\ndefaultChecked:data.get('size')===\"middle\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'size',_this2.refs.middle.value);},__source:{fileName:_jsxFileName,lineNumber:87}}),\n\n_react2.default.createElement('label',{htmlFor:'middle'+id,__source:{fileName:_jsxFileName,lineNumber:96}},'\\u4E2D')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:98}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'size'+id,\nref:'big',\nvalue:'big',\nid:'big'+id,\ndefaultChecked:data.get('size')===\"big\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'size',_this2.refs.big.value);},__source:{fileName:_jsxFileName,lineNumber:99}}),\n\n_react2.default.createElement('label',{htmlFor:'big'+id,__source:{fileName:_jsxFileName,lineNumber:108}},'\\u5927')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:112}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:113}},'\\u5B9A\\u4F4D'),\n_react2.default.createElement('ul',{className:'f-fr audio-position',__source:{fileName:_jsxFileName,lineNumber:114}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:115}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'topLeft',\nvalue:'topLeft',\nid:'topLeft'+id,\ndefaultChecked:data.get('position')===\"topLeft\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.topLeft.value);},__source:{fileName:_jsxFileName,lineNumber:116}}),\n\n_react2.default.createElement('label',{htmlFor:'topLeft'+id,__source:{fileName:_jsxFileName,lineNumber:125}},'\\u5DE6\\u4E0A')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:127}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'topRight',\nvalue:'topRight',\nid:'topRight'+id,\ndefaultChecked:data.get('position')===\"topRight\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.topRight.value);},__source:{fileName:_jsxFileName,lineNumber:128}}),\n\n_react2.default.createElement('label',{htmlFor:'topRight'+id,__source:{fileName:_jsxFileName,lineNumber:137}},'\\u53F3\\u4E0A')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:139}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'bottomRight',\nvalue:'bottomRight',\nid:'bottomRight'+id,\ndefaultChecked:data.get('position')===\"bottomRight\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.bottomRight.value);},__source:{fileName:_jsxFileName,lineNumber:140}}),\n\n_react2.default.createElement('label',{htmlFor:'bottomRight'+id,__source:{fileName:_jsxFileName,lineNumber:149}},'\\u53F3\\u4E0B')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:151}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'position'+id,\nref:'bottomLeft',\nvalue:'bottomLeft',\nid:'bottomLeft'+id,\ndefaultChecked:data.get('position')===\"bottomLeft\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'position',_this2.refs.bottomLeft.value);},__source:{fileName:_jsxFileName,lineNumber:152}}),\n\n_react2.default.createElement('label',{htmlFor:'bottomLeft'+id,__source:{fileName:_jsxFileName,lineNumber:161}},'\\u5DE6\\u4E0B')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:165}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:166}},'\\u80CC\\u666F\\u989C\\u8272'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u80CC\\u666F\\u989C\\u8272',\nvalue:data.get('bgColor'),\nref:'bgColor',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:167}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('bgColor'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'bgColor',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:175}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:181}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:182}},'\\u64AD\\u653E\\u8BBE\\u7F6E'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:183}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:184}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'loop',\nvalue:'loop',\nid:'loop'+id,\ndefaultChecked:data.get('loop'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'loop',_this2.refs.loop.checked);},__source:{fileName:_jsxFileName,lineNumber:185}}),\n\n_react2.default.createElement('label',{htmlFor:'loop'+id,__source:{fileName:_jsxFileName,lineNumber:194}},'\\u5FAA\\u73AF\\u64AD\\u653E')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:196}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'auto',\nvalue:'auto',\nid:'auto'+id,\ndefaultChecked:data.get('auto'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'auto',_this2.refs.auto.checked);},__source:{fileName:_jsxFileName,lineNumber:197}}),\n\n_react2.default.createElement('label',{htmlFor:'auto'+id,__source:{fileName:_jsxFileName,lineNumber:206}},'\\u81EA\\u52A8\\u64AD\\u653E')))))));\n\n\n\n\n\n\n}}]);return UnitAudio;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitAudio;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM4LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYXVkaW8vaW5kZXguanM/Yzc1YyJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7T2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsXCJfX2VzTW9kdWxlXCIse3ZhbHVlOnRydWV9KTt2YXIgX3VwbG9hZD1yZXF1aXJlKCdhb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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); +},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/button/index.js';__webpack_require__(100);__webpack_require__(98);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\n__webpack_require__(610);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitButton=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitButton,_React$Component);\n\n\n\n\nfunction UnitButton(props){(0,_classCallCheck3.default)(this,UnitButton);var _this=(0,_possibleConstructorReturn3.default)(this,(UnitButton.__proto__||(0,_getPrototypeOf2.default)(UnitButton)).call(this,\nprops));\n_this.state={\nuploadProps:{\nname:'file',\naction:'/upload?type=img',\naccept:'image/*',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:function onChange(info){\nif(info.file.status!=='uploading'){\nconsole.log('正在上传...');\n}\nif(info.file.status==='done'){\nconsole.log('上传完成!');\nif(info.file.response.file.ok){\n_unit2.default.editUnit(props.id,'address',info.file.response.file.url);\n_message3.default.success(info.file.name+' \\u4E0A\\u4F20\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('上传失败!');\n_message3.default.error(info.file.name+' \\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}}};return _this;\n\n\n}(0,_createClass3.default)(UnitButton,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;var\nuploadProps=this.state.uploadProps;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),cls:data.get('style')==\"default\"?'':'low-height',__source:{fileName:_jsxFileName,lineNumber:53}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:54}},\n_react2.default.createElement('li',{__source:{fileName:_jsxFileName,lineNumber:55}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:56}},'\\u6309\\u94AE\\u7C7B\\u578B'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:57}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:58}},\n_react2.default.createElement('input',{\nclassName:'',\nname:'buttonType'+id,\nid:'default'+id,\ntype:'radio',\nvalue:'default',\nref:'default',\nchecked:data.get('style')==\"default\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'style',_this2.refs.default.value);},__source:{fileName:_jsxFileName,lineNumber:59}}),\n\n_react2.default.createElement('label',{htmlFor:'default'+id,__source:{fileName:_jsxFileName,lineNumber:69}},'\\u5185\\u7F6E\\u6837\\u5F0F')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:71}},\n_react2.default.createElement('input',{\nclassName:'',\nname:'buttonType'+id,\nid:'custome'+id,\ntype:'radio',\nvalue:'custome',\nref:'custome',\nchecked:data.get('style')=='custome',\nonChange:function onChange(){return _unit2.default.editUnit(id,'style',_this2.refs.custome.value);},__source:{fileName:_jsxFileName,lineNumber:72}}),\n\n_react2.default.createElement('label',{htmlFor:'custome'+id,__source:{fileName:_jsxFileName,lineNumber:82}},'\\u81EA\\u5B9A\\u4E49\\u56FE\\u7247')))),\n\n\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"default\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:87}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:88}},'\\u6309\\u94AE\\u6587\\u5B57'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u6309\\u94AE\\u4E0A\\u663E\\u793A\\u7684\\u6587\\u5B57',\nvalue:data.get('txt'),\nref:'txt',\nonChange:function onChange(){return _unit2.default.editUnit(id,'txt',_this2.refs.txt.value);},__source:{fileName:_jsxFileName,lineNumber:89}})),\n\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"custome\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:99}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:100}},'\\u6309\\u94AE\\u56FE\\u7247'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u8F93\\u5165\\u5B8C\\u6574\\u56FE\\u7247\\u5730\\u5740\\uFF0C\\u6216\\u4E0A\\u4F20\\u56FE\\u7247',\nvalue:data.get('address'),\nref:'address',\nonChange:function onChange(){return _unit2.default.editUnit(id,'address',_this2.refs.address.value);},__source:{fileName:_jsxFileName,lineNumber:101}}),\n\n_react2.default.createElement('div',{className:'upload',__source:{fileName:_jsxFileName,lineNumber:109}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:110}}),\n_react2.default.createElement('i',{className:'icon iconfont icon-iosbolt',__source:{fileName:_jsxFileName,lineNumber:111}})))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:115}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:116}},'\\u94FE\\u63A5'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u56FE\\u7247\\u70B9\\u51FB\\u8DF3\\u8F6C\\u5730\\u5740',\nvalue:data.get('url'),\nref:'url',\nonChange:function onChange(){return _unit2.default.editUnit(id,'url',_this2.refs.url.value);},__source:{fileName:_jsxFileName,lineNumber:117}})),\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"default\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:126}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:127}},'\\u914D\\u8272'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:128}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:129}},\n_react2.default.createElement('input',{\nname:'buttonStyle'+id,\nid:'redStyle'+id,\ntype:'radio',\nvalue:'redStyle',\nref:'redStyle',\nchecked:data.get('buttonStyle')===\"redStyle\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'buttonStyle',_this2.refs.redStyle.value);},__source:{fileName:_jsxFileName,lineNumber:130}}),\n\n_react2.default.createElement('label',{htmlFor:'redStyle'+id,__source:{fileName:_jsxFileName,lineNumber:139}},'\\u7EA2\\u8272')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:141}},\n_react2.default.createElement('input',{\nname:'buttonStyle'+id,\nid:'yellowStyle'+id,\ntype:'radio',\nvalue:'yellowStyle',\nref:'yellowStyle',\nchecked:data.get('buttonStyle')===\"yellowStyle\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'buttonStyle',_this2.refs.yellowStyle.value);},__source:{fileName:_jsxFileName,lineNumber:142}}),\n\n_react2.default.createElement('label',{htmlFor:'yellowStyle'+id,__source:{fileName:_jsxFileName,lineNumber:151}},'\\u9EC4\\u8272')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:153}},\n_react2.default.createElement('input',{\nname:'buttonStyle'+id,\nid:'blueStyle'+id,\ntype:'radio',\nvalue:'blueStyle',\nref:'blueStyle',\nchecked:data.get('buttonStyle')===\"blueStyle\",\nonChange:function onChange(){return _unit2.default.editUnit(id,'buttonStyle',_this2.refs.blueStyle.value);},__source:{fileName:_jsxFileName,lineNumber:154}}),\n\n_react2.default.createElement('label',{htmlFor:'blueStyle'+id,__source:{fileName:_jsxFileName,lineNumber:163}},'\\u84DD\\u8272')))),\n\n\n\n\n_react2.default.createElement('li',{className:''+(data.get('style')==\"default\"?\"show-default\":\"f-hide\"),__source:{fileName:_jsxFileName,lineNumber:168}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:169}},'\\u5176\\u4ED6'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:170}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:171}},\n_react2.default.createElement('input',{\nname:'bigRadius'+id,\nid:'bigRadius'+id,\nref:'bigRadius',\ntype:'checkbox',\nchecked:data.get('bigRadius'),\nonChange:function onChange(){return _unit2.default.editUnit(id,'bigRadius',_this2.refs.bigRadius.checked);},__source:{fileName:_jsxFileName,lineNumber:172}}),\n\n_react2.default.createElement('label',{htmlFor:'bigRadius'+id,__source:{fileName:_jsxFileName,lineNumber:180}},'\\u5927\\u5706\\u89D2')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:184}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:185}},'\\u7EC4\\u4EF6\\u5916\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:186}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:187}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:188}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginTop',\ndefaultValue:data.getIn(['margin',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginTop.value=_this2.refs.marginTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:189}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:202}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:203}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginRight',\ndefaultValue:data.getIn(['margin',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginRight.value=_this2.refs.marginRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:204}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:217}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:218}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginBottom',\ndefaultValue:data.getIn(['margin',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginBottom.value=_this2.refs.marginBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:219}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:232}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:233}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginLeft',\ndefaultValue:data.getIn(['margin',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginLeft.value=_this2.refs.marginLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:234}})))))));\n\n\n\n\n\n\n\n}}]);return UnitButton;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitButton;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjM5LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvYnV0dG9uL2luZGV4LmpzP2Q3MzgiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF91cGxvYWQ9cmVxdWlyZSgnYW50ZC9saWIvdXBsb2FkJyk7dmFyIF91cGxvYWQyPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX3VwbG9hZCk7dmFyIF9leHRlbmRzMj1yZXF1aXJlKCdiYWJlbC1ydW50aW1lL2hlbHBlcnMvZXh0ZW5kcycpO3ZhciBfZXh0ZW5kczM9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfZXh0ZW5kczIpO3ZhciBfbWVzc2FnZTI9cmVxdWlyZSgnYW50ZC9saWIvbWVzc2FnZScpO3ZhciBfbWVzc2FnZTM9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfbWVzc2FnZTIpO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9jb3JlLWpzL29iamVjdC9nZXQtcHJvdG90eXBlLW9mJyk7dmFyIF9nZXRQcm90b3R5cGVPZj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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); +},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/code/index.js';__webpack_require__(611);\n\n\n\nvar _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\n\nvar _CodeMirror=__webpack_require__(831);var _CodeMirror2=_interopRequireDefault(_CodeMirror);\n\n\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitCode=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitCode,_React$Component);\n\n\n\n\nfunction UnitCode(props){(0,_classCallCheck3.default)(this,UnitCode);return(0,_possibleConstructorReturn3.default)(this,(UnitCode.__proto__||(0,_getPrototypeOf2.default)(UnitCode)).call(this,\nprops));\n}(0,_createClass3.default)(UnitCode,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:29}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:30}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:31}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:32}},'\\u6837\\u5F0F(CSS)'),\n_react2.default.createElement('ul',{ref:'cssdiv',className:'css-input f-fr',__source:{fileName:_jsxFileName,lineNumber:33}})),\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:35}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:36}},'\\u811A\\u672C(JS)'),\n_react2.default.createElement('ul',{ref:'jsdiv',className:'js-input f-fr',__source:{fileName:_jsxFileName,lineNumber:37}})),\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:39}},\n_react2.default.createElement('button',{className:'f-fl',onClick:function onClick(e){return _this2.saveCode(e);},__source:{fileName:_jsxFileName,lineNumber:40}},'\\u4FDD\\u5B58\\u7F16\\u8F91')))));\n\n\n\n\n\n\n\n}},{key:'saveCode',value:function saveCode(\ne){var\nid=this.props.id;\n_unit2.default.editUnit(id,'js',this.jsCodeMirror.getValue());\n_unit2.default.editUnit(id,'css',this.cssCodeMirror.getValue());\n}},{key:'componentDidMount',value:function componentDidMount()\n{var\ndata=this.props.data;\nthis.jsCodeMirror=(0,_CodeMirror2.default)(this.refs.jsdiv,{\nvalue:data.get('js'),\nmode:\"javascript\",\nlineNumbers:true,\ntheme:'monokai'});\n\nthis.cssCodeMirror=(0,_CodeMirror2.default)(this.refs.cssdiv,{\nvalue:data.get('css'),\nmode:\"css\",\nlineNumbers:true,\ntheme:'monokai'});\n\n}}]);return UnitCode;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitCode;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQwLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvY29kZS9pbmRleC5qcz9jOTUxIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3ZhciBfZ2V0UHJvdG90eXBlT2Y9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9jb3JlLWpzL29iamVjdC9nZXQtcHJvdG90eXBlLW9mJyk7dmFyIF9nZXRQcm90b3R5cGVPZjI9X2ludGVyb3BSZXF1aXJlRGVmYXVsdChfZ2V0UHJvdG90eXBlT2YpO3ZhciBfY2xhc3NDYWxsQ2hlY2syPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvaGVscGVycy9jbGFzc0NhbGxDaGVjaycpO3ZhciBfY2xhc3NDYWxsQ2hlY2szPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX2NsYXNzQ2FsbENoZWNrMik7dmFyIF9jcmVhdGVDbGFzczI9cmVxdWlyZSgnYmFiZWwtcnVudGltZS9oZW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5pdHMvY29kZS9pbmRleC5qcyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _upload=__webpack_require__(99);var _upload2=_interopRequireDefault(_upload);var _extends2=__webpack_require__(12);var _extends3=_interopRequireDefault(_extends2);var _message2=__webpack_require__(97);var _message3=_interopRequireDefault(_message2);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/image/index.js';__webpack_require__(100);__webpack_require__(98);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\n__webpack_require__(612);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);\nvar _rcColorPicker=__webpack_require__(133);var _rcColorPicker2=_interopRequireDefault(_rcColorPicker);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitImage=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitImage,_React$Component);\n\n\n\n\nfunction UnitImage(props){(0,_classCallCheck3.default)(this,UnitImage);var _this=(0,_possibleConstructorReturn3.default)(this,(UnitImage.__proto__||(0,_getPrototypeOf2.default)(UnitImage)).call(this,\nprops));\n_this.state={\nuploadProps:{\nname:'file',\naction:'/upload?type=img',\naccept:'image/*',\nheaders:{\nauthorization:'authorization-text'},\n\nonChange:function onChange(info){\nif(info.file.status!=='uploading'){\nconsole.log('正在上传...');\n}\nif(info.file.status==='done'){\nconsole.log('上传完成!');\nif(info.file.response.file.ok){\n_unit2.default.editUnit(props.id,'address',info.file.response.file.url);\n_message3.default.success(info.file.name+' \\u4E0A\\u4F20\\u6210\\u529F\\uFF01');\n}else{\n_message3.default.error(info.file.response.file.des+'\\uFF0C\\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}else if(info.file.status==='error'){\nconsole.log('上传失败!');\n_message3.default.error(info.file.name+' \\u4E0A\\u4F20\\u5931\\u8D25\\uFF01');\n}\n}}};return _this;\n\n\n}(0,_createClass3.default)(UnitImage,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;var\nuploadProps=this.state.uploadProps;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:54}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:55}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:56}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:57}},'\\u56FE\\u7247\\u5730\\u5740'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u8F93\\u5165\\u5B8C\\u6574\\u56FE\\u7247\\u5730\\u5740\\uFF0C\\u6216\\u4E0A\\u4F20\\u56FE\\u7247',\nvalue:data.get('address'),\nref:'address',\nonChange:function onChange(){return _unit2.default.editUnit(id,'address',_this2.refs.address.value);},__source:{fileName:_jsxFileName,lineNumber:58}}),\n\n_react2.default.createElement('div',{className:'upload',__source:{fileName:_jsxFileName,lineNumber:66}},\n_react2.default.createElement(_upload2.default,(0,_extends3.default)({},uploadProps,{__source:{fileName:_jsxFileName,lineNumber:67}}),\n_react2.default.createElement('i',{className:'icon iconfont icon-iosbolt',__source:{fileName:_jsxFileName,lineNumber:68}})))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:72}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:73}},'\\u94FE\\u63A5'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u56FE\\u7247\\u70B9\\u51FB\\u8DF3\\u8F6C\\u5730\\u5740',\nvalue:data.get('url'),\nref:'url',\nonChange:function onChange(){return _unit2.default.editUnit(id,'url',_this2.refs.url.value);},__source:{fileName:_jsxFileName,lineNumber:74}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:83}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:84}},'\\u586B\\u5145\\u8272'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u586B\\u5145\\u8272',\nvalue:data.get('bgColor'),\nref:'bgColor',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:85}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('bgColor'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'bgColor',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:93}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:99}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:100}},'\\u7EC4\\u4EF6\\u5185\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:101}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:102}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:103}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingTop',\ndefaultValue:data.getIn(['padding',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingTop.value=_this2.refs.paddingTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:104}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:117}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:118}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingRight',\ndefaultValue:data.getIn(['padding',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingRight.value=_this2.refs.paddingRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:119}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:132}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:133}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingBottom',\ndefaultValue:data.getIn(['padding',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingBottom.value=_this2.refs.paddingBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:134}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:147}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:148}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingLeft',\ndefaultValue:data.getIn(['padding',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingLeft.value=_this2.refs.paddingLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:149}})))),\n\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:164}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:165}},'\\u7EC4\\u4EF6\\u5916\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:166}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:167}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:168}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginTop',\ndefaultValue:data.getIn(['margin',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginTop.value=_this2.refs.marginTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:169}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:182}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:183}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginRight',\ndefaultValue:data.getIn(['margin',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginRight.value=_this2.refs.marginRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:184}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:197}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:198}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginBottom',\ndefaultValue:data.getIn(['margin',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginBottom.value=_this2.refs.marginBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:199}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:212}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:213}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginLeft',\ndefaultValue:data.getIn(['margin',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginLeft.value=_this2.refs.marginLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:214}})))))));\n\n\n\n\n\n\n\n}}]);return UnitImage;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitImage;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQxLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvaW1hZ2UvaW5kZXguanM/MzA4NCJdLCJzb3VyY2VzQ29udGVud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tBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); },function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/meta/index.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\n\n__webpack_require__(613);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitMeta=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitMeta,_React$Component);\n\n\n\n\nfunction UnitMeta(props){(0,_classCallCheck3.default)(this,UnitMeta);return(0,_possibleConstructorReturn3.default)(this,(UnitMeta.__proto__||(0,_getPrototypeOf2.default)(UnitMeta)).call(this,\nprops));\n}(0,_createClass3.default)(UnitMeta,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),editable:false,__source:{fileName:_jsxFileName,lineNumber:23}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:24}},\n_react2.default.createElement('li',{className:'f-cb li-first',__source:{fileName:_jsxFileName,lineNumber:25}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:26}},'\\u9875\\u9762\\u6807\\u9898'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u9875\\u9762\\u6807\\u9898',\nvalue:data.get('title'),\nref:'title',\nonChange:function onChange(){return _unit2.default.editUnit(id,'title',_this2.refs.title.value);},__source:{fileName:_jsxFileName,lineNumber:27}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:36}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:37}},'\\u5173\\u952E\\u8BCD'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u9875\\u9762\\u5173\\u952E\\u8BCD',\nvalue:data.get('keywords'),\nref:'keywords',\nonChange:function onChange(){return _unit2.default.editUnit(id,'keywords',_this2.refs.keywords.value);},__source:{fileName:_jsxFileName,lineNumber:38}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:47}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:48}},'\\u9875\\u9762\\u63CF\\u8FF0'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u9875\\u9762\\u63CF\\u8FF0',\nvalue:data.get('desc'),\nref:'desc',\nonChange:function onChange(){return _unit2.default.editUnit(id,'desc',_this2.refs.desc.value);},__source:{fileName:_jsxFileName,lineNumber:49}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',style:{'display':'none'},__source:{fileName:_jsxFileName,lineNumber:58}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:59}},'\\u9875\\u9762\\u80CC\\u666F'),\n_react2.default.createElement('input',{\nstyle:{background:data.get('bgColor')},\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u9875\\u9762\\u80CC\\u666F',\nvalue:data.get('bgColor'),\nref:'bgColor',\nonChange:function onChange(){return _unit2.default.editUnit(id,'bgColor',_this2.refs.bgColor.value);},__source:{fileName:_jsxFileName,lineNumber:60}})))));\n\n\n\n\n\n}}]);return UnitMeta;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitMeta;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQyLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvbWV0YS9pbmRleC5qcz9kNTc3Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1Z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ZDpfcmVhY3QuUHJvcFR5cGVzLm51bWJlcn0sX3RlbXApKXx8X2NsYXNzO2V4cG9ydHMuZGVmYXVsdD1cblxuXG5Vbml0TWV0YTtcblxuXG4vLyBXRUJQQUNLIEZPT1RFUiAvL1xuLy8gLi9+L2JhYmVsLWxvYWRlciEuL3NyYy9jb21wb25lbnRzL3VuaXRzL21ldGEvaW5kZXguanMiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9")},function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/textbody/index.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\n__webpack_require__(615);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);\nvar _rcColorPicker=__webpack_require__(133);var _rcColorPicker2=_interopRequireDefault(_rcColorPicker);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitTextBody=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitTextBody,_React$Component);\n\n\n\n\nfunction UnitTextBody(props){(0,_classCallCheck3.default)(this,UnitTextBody);return(0,_possibleConstructorReturn3.default)(this,(UnitTextBody.__proto__||(0,_getPrototypeOf2.default)(UnitTextBody)).call(this,\nprops));\n}(0,_createClass3.default)(UnitTextBody,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:26}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:27}},\n\n_react2.default.createElement('li',{className:'f-cb title-part',__source:{fileName:_jsxFileName,lineNumber:29}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:30}},'\\u6B63\\u6587\\u5185\\u5BB9'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:31}},\n_react2.default.createElement('li',{className:'f-cb f-fl',style:{position:'relative'},__source:{fileName:_jsxFileName,lineNumber:32}},\n_react2.default.createElement('textarea',{\nclassName:'f-fl',\ntype:'text',\nplaceholder:'\\u6B63\\u6587\\u5185\\u5BB9',\nvalue:data.get('text'),\nref:'text',\nonChange:function onChange(){return _unit2.default.editUnit(id,'text',_this2.refs.text.value);},__source:{fileName:_jsxFileName,lineNumber:33}}),\n\n_react2.default.createElement('span',{className:'example-btn f-fl',__source:{fileName:_jsxFileName,lineNumber:41}},\n_react2.default.createElement('a',{\n'data-info':'\\u8FD9\\u91CC\\u662F\\u6B63\\u6587\\uFF0C\\u539F\\u5219\\u4E0A\\u652F\\u6301\\u4EFB\\u4F55html\\u4EE3\\u7801\\uFF0C\\u4E0D\\u8FC7\\u4F60\\u8981\\u5C0F\\u5FC3\\uFF0C\\u4E0D\\u8981\\u4ECE\\u522B\\u5904\\u76F4\\u63A5\\u590D\\u5236html\\u8FC7\\u6765\\uFF0C\\u5426\\u5219\\u53EF\\u80FD\\u4F1A\\u9020\\u6210\\u4E00\\u4E9B\\u4E0D\\u53EF\\u9884\\u671F\\u7684\\u6F5C\\u5728\\u98CE\\u9669\\u3002\\u8FD9\\u91CC\\u53EF\\u4EE5\\u6807\\u7EA2\\u6807\\u9EC4\\u52A0\\u7C97\\u5206\\u4EAB\\u94FE\\u63A5\\u3002\\u5728\\u884C\\u5C3E\\u6DFB\\u52A0 \\\\ \\u5B57\\u7B26\\u540E\\uFF0C\\u53EF\\u4EE5\\u6D88\\u9664\\u4E00\\u4E2A\\u6362\\u884C\\u5BFC\\u81F4\\u7684\\u5206\\u6BB5\\uFF0C\\u53EF\\u4F7F\\u4E24\\u884C\\u95F4\\u8DDD\\u53D8\\u5C0F\\u4E00\\u4E9B\\u3002',\nonClick:function onClick(e){return _unit2.default.editUnit(id,'text',e.target.getAttribute('data-info'));},__source:{fileName:_jsxFileName,lineNumber:42}},'\\u793A\\u4F8B'))))),\n\n\n\n\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:52}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:53}},'\\u5B57\\u4F53\\u989C\\u8272'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u5B57\\u4F53\\u989C\\u8272',\nvalue:data.get('textColor'),\nref:'textColor',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:54}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('textColor'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'textColor',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:62}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:68}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:69}},'\\u6B63\\u6587\\u80CC\\u666F'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u6B63\\u6587\\u80CC\\u666F',\nvalue:data.get('bgColor'),\nref:'bgColor',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:70}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('bgColor'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'bgColor',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:78}})),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:85}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:86}},'\\u5E03\\u5C40'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:87}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:88}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'textAlign'+id,\nref:'left',\nvalue:'left',\nid:'left'+id,\ndefaultChecked:data.get('textAlign')===\"left\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'textAlign',_this2.refs.left.value);},__source:{fileName:_jsxFileName,lineNumber:89}}),\n\n_react2.default.createElement('label',{htmlFor:'left'+id,__source:{fileName:_jsxFileName,lineNumber:98}},'\\u5C45\\u5DE6')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:100}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'textAlign'+id,\nref:'center',\nvalue:'center',\nid:'center'+id,\ndefaultChecked:data.get('textAlign')===\"center\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'textAlign',_this2.refs.center.value);},__source:{fileName:_jsxFileName,lineNumber:101}}),\n\n_react2.default.createElement('label',{htmlFor:'center'+id,__source:{fileName:_jsxFileName,lineNumber:110}},'\\u5C45\\u4E2D')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:112}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'textAlign'+id,\nref:'right',\nvalue:'right',\nid:'right'+id,\ndefaultChecked:data.get('textAlign')===\"right\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'textAlign',_this2.refs.right.value);},__source:{fileName:_jsxFileName,lineNumber:113}}),\n\n_react2.default.createElement('label',{htmlFor:'right'+id,__source:{fileName:_jsxFileName,lineNumber:122}},'\\u5C45\\u53F3')))),\n\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:127}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:128}},'\\u5B57\\u4F53\\u5927\\u5C0F'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:129}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:130}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'small',\nvalue:'small',\nid:'small'+id,\ndefaultChecked:data.get('fontSize')===\"small\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.small.value);},__source:{fileName:_jsxFileName,lineNumber:131}}),\n\n_react2.default.createElement('label',{htmlFor:'small'+id,__source:{fileName:_jsxFileName,lineNumber:140}},'\\u5C0F')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:142}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'middle',\nvalue:'middle',\nid:'middle'+id,\ndefaultChecked:data.get('fontSize')===\"middle\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.middle.value);},__source:{fileName:_jsxFileName,lineNumber:143}}),\n\n_react2.default.createElement('label',{htmlFor:'middle'+id,__source:{fileName:_jsxFileName,lineNumber:152}},'\\u4E2D')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:154}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'big',\nvalue:'big',\nid:'big'+id,\ndefaultChecked:data.get('fontSize')===\"big\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.big.value);},__source:{fileName:_jsxFileName,lineNumber:155}}),\n\n_react2.default.createElement('label',{htmlFor:'big'+id,__source:{fileName:_jsxFileName,lineNumber:164}},'\\u5927')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:166}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'superbig',\nvalue:'superbig',\nid:'superbig'+id,\ndefaultChecked:data.get('fontSize')===\"superbig\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.superbig.value);},__source:{fileName:_jsxFileName,lineNumber:167}}),\n\n_react2.default.createElement('label',{htmlFor:'superbig'+id,__source:{fileName:_jsxFileName,lineNumber:176}},'\\u8D85\\u5927')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:180}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:181}},'\\u5176\\u4ED6\\u8BBE\\u7F6E1'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:182}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:183}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'changeLine',\nvalue:'changeLine',\nid:'changeLine'+id,\ndefaultChecked:data.get('changeLine'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'changeLine',_this2.refs.changeLine.checked);},__source:{fileName:_jsxFileName,lineNumber:184}}),\n\n_react2.default.createElement('label',{htmlFor:'changeLine'+id,__source:{fileName:_jsxFileName,lineNumber:193}},'\\u56DE\\u8F66\\u6362\\u884C')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:195}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'retract',\nvalue:'retract',\nid:'retract'+id,\ndefaultChecked:data.get('retract'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'retract',_this2.refs.retract.checked);},__source:{fileName:_jsxFileName,lineNumber:196}}),\n\n_react2.default.createElement('label',{htmlFor:'retract'+id,__source:{fileName:_jsxFileName,lineNumber:205}},'\\u6362\\u884C\\u7F29\\u8FDB')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:207}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'bigLH',\nvalue:'bigLH',\nid:'bigLH'+id,\ndefaultChecked:data.get('bigLH'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'bigLH',_this2.refs.bigLH.checked);},__source:{fileName:_jsxFileName,lineNumber:208}}),\n\n_react2.default.createElement('label',{htmlFor:'bigLH'+id,__source:{fileName:_jsxFileName,lineNumber:217}},'\\u5927\\u884C\\u8DDD')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:221}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:222}},'\\u5176\\u4ED6\\u8BBE\\u7F6E2'),\n_react2.default.createElement('ul',{className:'f-fr other-set2',__source:{fileName:_jsxFileName,lineNumber:223}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:224}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'bigPD',\nvalue:'bigPD',\nid:'bigPD'+id,\ndefaultChecked:data.get('bigPD'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'bigPD',_this2.refs.bigPD.checked);},__source:{fileName:_jsxFileName,lineNumber:225}}),\n\n_react2.default.createElement('label',{htmlFor:'bigPD'+id,__source:{fileName:_jsxFileName,lineNumber:234}},'\\u5927\\u6BB5\\u8DDD')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:236}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'noUL',\nvalue:'noUL',\nid:'noUL'+id,\ndefaultChecked:data.get('noUL'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'noUL',_this2.refs.noUL.checked);},__source:{fileName:_jsxFileName,lineNumber:237}}),\n\n_react2.default.createElement('label',{htmlFor:'noUL'+id,__source:{fileName:_jsxFileName,lineNumber:246}},'\\u94FE\\u63A5\\u65E0\\u4E0B\\u5212\\u7EBF')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:248}},\n_react2.default.createElement('input',{\ntype:'checkbox',\nname:'moreSettings'+id,\nref:'borderRadius',\nvalue:'borderRadius',\nid:'borderRadius'+id,\ndefaultChecked:data.get('borderRadius'),\nonClick:function onClick(){return _unit2.default.editUnit(id,'borderRadius',_this2.refs.borderRadius.checked);},__source:{fileName:_jsxFileName,lineNumber:249}}),\n\n_react2.default.createElement('label',{htmlFor:'borderRadius'+id,__source:{fileName:_jsxFileName,lineNumber:258}},'\\u5706\\u89D2\\u8FB9\\u6846')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:262}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:263}},'\\u7EC4\\u4EF6\\u5185\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:264}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:265}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:266}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingTop',\ndefaultValue:data.getIn(['padding',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingTop.value=_this2.refs.paddingTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:267}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:280}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:281}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingRight',\ndefaultValue:data.getIn(['padding',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingRight.value=_this2.refs.paddingRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:282}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:295}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:296}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingBottom',\ndefaultValue:data.getIn(['padding',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingBottom.value=_this2.refs.paddingBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:297}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:310}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:311}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingLeft',\ndefaultValue:data.getIn(['padding',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingLeft.value=_this2.refs.paddingLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:312}})))),\n\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:327}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:328}},'\\u7EC4\\u4EF6\\u5916\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:329}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:330}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:331}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginTop',\ndefaultValue:data.getIn(['margin',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginTop.value=_this2.refs.marginTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:332}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:345}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:346}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginRight',\ndefaultValue:data.getIn(['margin',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginRight.value=_this2.refs.marginRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:347}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:360}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:361}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginBottom',\ndefaultValue:data.getIn(['margin',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginBottom.value=_this2.refs.marginBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:362}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:375}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:376}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginLeft',\ndefaultValue:data.getIn(['margin',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginLeft.value=_this2.refs.marginLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:377}})))))));\n\n\n\n\n\n\n\n}}]);return UnitTextBody;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitTextBody;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHMvdGV4dGJvZHkvaW5kZXguanM/ZjcyMiJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7T2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsXCJfX2VzTW9kdWxlXCIse3ZhbHVlOnRydWV9KTt2YXIgX2dldFByb3RvdHlwZU9mPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvY29yZS1qcy9vYmplY3QvZ2V0L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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9"); },function(module,exports,__webpack_require__){eval("'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/units/title/index.js';var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\nvar _reactImmutableProptypes=__webpack_require__(25);var _reactImmutableProptypes2=_interopRequireDefault(_reactImmutableProptypes);\nvar _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);\n\n\n__webpack_require__(616);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _index=__webpack_require__(73);var _index2=_interopRequireDefault(_index);\nvar _rcColorPicker=__webpack_require__(133);var _rcColorPicker2=_interopRequireDefault(_rcColorPicker);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitTitle=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitTitle,_React$Component);\n\n\n\n\nfunction UnitTitle(props){(0,_classCallCheck3.default)(this,UnitTitle);return(0,_possibleConstructorReturn3.default)(this,(UnitTitle.__proto__||(0,_getPrototypeOf2.default)(UnitTitle)).call(this,\nprops));\n}(0,_createClass3.default)(UnitTitle,[{key:'render',value:function render()\n{var _this2=this;var _props=\nthis.props,data=_props.data,id=_props.id;\nreturn(\n_react2.default.createElement(_index2.default,{id:id,type:data.get('type').toLowerCase(),unitName:data.get('name'),__source:{fileName:_jsxFileName,lineNumber:26}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:27}},\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:28}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:29}},'\\u6807\\u9898\\u6587\\u5B57'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u6807\\u9898\\u6587\\u5B57',\nvalue:data.get('text'),\nref:'text',\nonChange:function onChange(){return _unit2.default.editUnit(id,'text',_this2.refs.text.value);},__source:{fileName:_jsxFileName,lineNumber:30}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:39}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:40}},'\\u94FE\\u63A5'),\n_react2.default.createElement('input',{\nclassName:'f-fr',\ntype:'text',\nplaceholder:'\\u6807\\u9898\\u70B9\\u51FB\\u8DF3\\u8F6C\\u5730\\u5740',\nvalue:data.get('url'),\nref:'url',\nonChange:function onChange(){return _unit2.default.editUnit(id,'url',_this2.refs.url.value);},__source:{fileName:_jsxFileName,lineNumber:41}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:50}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:51}},'\\u6807\\u9898\\u989C\\u8272'),\n_react2.default.createElement('input',{\nclassName:'input-color f-fl',\ntype:'text',\nplaceholder:'\\u6807\\u9898\\u989C\\u8272',\nvalue:data.get('color'),\nref:'color',\ndisabled:true,__source:{fileName:_jsxFileName,lineNumber:52}}),\n\n_react2.default.createElement(_rcColorPicker2.default,{\ncolor:data.get('color'),\nonChange:function onChange(colorObj){return _unit2.default.editUnit(id,'color',colorObj.color);},\nplacement:'bottomLeft',__source:{fileName:_jsxFileName,lineNumber:60}})),\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:66}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:67}},'\\u5B57\\u4F53\\u5927\\u5C0F'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:68}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:69}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'small',\nvalue:'small',\nid:'small'+id,\ndefaultChecked:data.get('fontSize')===\"small\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.small.value);},__source:{fileName:_jsxFileName,lineNumber:70}}),\n\n_react2.default.createElement('label',{htmlFor:'small'+id,__source:{fileName:_jsxFileName,lineNumber:79}},'\\u5C0F')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:81}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'middle',\nvalue:'middle',\nid:'middle'+id,\ndefaultChecked:data.get('fontSize')===\"middle\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.middle.value);},__source:{fileName:_jsxFileName,lineNumber:82}}),\n\n_react2.default.createElement('label',{htmlFor:'middle'+id,__source:{fileName:_jsxFileName,lineNumber:91}},'\\u4E2D')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:93}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'fontSize'+id,\nref:'big',\nvalue:'big',\nid:'big'+id,\ndefaultChecked:data.get('fontSize')===\"big\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'fontSize',_this2.refs.big.value);},__source:{fileName:_jsxFileName,lineNumber:94}}),\n\n_react2.default.createElement('label',{htmlFor:'big'+id,__source:{fileName:_jsxFileName,lineNumber:103}},'\\u5927')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:107}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:108}},'\\u5E03\\u5C40'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:109}},\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:110}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'textAlign'+id,\nref:'left',\nvalue:'left',\nid:'left'+id,\ndefaultChecked:data.get('textAlign')===\"left\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'textAlign',_this2.refs.left.value);},__source:{fileName:_jsxFileName,lineNumber:111}}),\n\n_react2.default.createElement('label',{htmlFor:'left'+id,__source:{fileName:_jsxFileName,lineNumber:120}},'\\u5C45\\u5DE6')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:122}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'textAlign'+id,\nref:'center',\nvalue:'center',\nid:'center'+id,\ndefaultChecked:data.get('textAlign')===\"center\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'textAlign',_this2.refs.center.value);},__source:{fileName:_jsxFileName,lineNumber:123}}),\n\n_react2.default.createElement('label',{htmlFor:'center'+id,__source:{fileName:_jsxFileName,lineNumber:132}},'\\u5C45\\u4E2D')),\n\n_react2.default.createElement('li',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:134}},\n_react2.default.createElement('input',{\ntype:'radio',\nname:'textAlign'+id,\nref:'right',\nvalue:'right',\nid:'right'+id,\ndefaultChecked:data.get('textAlign')===\"right\",\nonClick:function onClick(){return _unit2.default.editUnit(id,'textAlign',_this2.refs.right.value);},__source:{fileName:_jsxFileName,lineNumber:135}}),\n\n_react2.default.createElement('label',{htmlFor:'right'+id,__source:{fileName:_jsxFileName,lineNumber:144}},'\\u5C45\\u53F3')))),\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:148}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:149}},'\\u7EC4\\u4EF6\\u5185\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:150}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:151}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:152}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingTop',\ndefaultValue:data.getIn(['padding',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingTop.value=_this2.refs.paddingTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:153}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:166}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:167}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingRight',\ndefaultValue:data.getIn(['padding',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingRight.value=_this2.refs.paddingRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:168}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:181}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:182}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingBottom',\ndefaultValue:data.getIn(['padding',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingBottom.value=_this2.refs.paddingBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:183}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:196}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:197}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'paddingLeft',\ndefaultValue:data.getIn(['padding',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'padding',_immutable2.default.fromJS([\nparseFloat(_this2.refs.paddingTop.value)||0,\nparseFloat(_this2.refs.paddingRight.value)||0,\nparseFloat(_this2.refs.paddingBottom.value)||0,\nparseFloat(_this2.refs.paddingLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.paddingLeft.value=_this2.refs.paddingLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:198}})))),\n\n\n\n\n_react2.default.createElement('li',{className:'f-cb',__source:{fileName:_jsxFileName,lineNumber:213}},\n_react2.default.createElement('label',{className:'f-fl',__source:{fileName:_jsxFileName,lineNumber:214}},'\\u7EC4\\u4EF6\\u5916\\u8FB9\\u8DDD'),\n_react2.default.createElement('ul',{className:'f-fr',__source:{fileName:_jsxFileName,lineNumber:215}},\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:216}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:217}},'\\u4E0A'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginTop',\ndefaultValue:data.getIn(['margin',0]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginTop.value=_this2.refs.marginTop.value||0;},__source:{fileName:_jsxFileName,lineNumber:218}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:231}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:232}},'\\u53F3'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginRight',\ndefaultValue:data.getIn(['margin',1]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginRight.value=_this2.refs.marginRight.value||0;},__source:{fileName:_jsxFileName,lineNumber:233}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:246}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:247}},'\\u4E0B'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginBottom',\ndefaultValue:data.getIn(['margin',2]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginBottom.value=_this2.refs.marginBottom.value||0;},__source:{fileName:_jsxFileName,lineNumber:248}})),\n\n\n_react2.default.createElement('li',{className:'f-fl label-left',__source:{fileName:_jsxFileName,lineNumber:261}},\n_react2.default.createElement('label',{__source:{fileName:_jsxFileName,lineNumber:262}},'\\u5DE6'),\n_react2.default.createElement('input',{\ntype:'text',\nref:'marginLeft',\ndefaultValue:data.getIn(['margin',3]),\nonChange:function onChange(){return _unit2.default.editUnit(id,'margin',_immutable2.default.fromJS([\nparseFloat(_this2.refs.marginTop.value)||0,\nparseFloat(_this2.refs.marginRight.value)||0,\nparseFloat(_this2.refs.marginBottom.value)||0,\nparseFloat(_this2.refs.marginLeft.value)||0]));},\n\nonBlur:function onBlur(){return _this2.refs.marginLeft.value=_this2.refs.marginLeft.value||0;},__source:{fileName:_jsxFileName,lineNumber:263}})))))));\n\n\n\n\n\n\n\n}}]);return UnitTitle;}(_react2.default.Component),_class2.propTypes={data:_reactImmutableProptypes2.default.map,id:_react.PropTypes.number},_temp))||_class;exports.default=\n\n\nUnitTitle;//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exports,\"__esModule\",{value:true});var _modal=__webpack_require__(87);var _modal2=_interopRequireDefault(_modal);var _getPrototypeOf=__webpack_require__(16);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(5);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(10);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(7);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(6);var _inherits3=_interopRequireDefault(_inherits2);var _class,_class2,_temp,_jsxFileName='/Users/lmlc/work/pagemaker_production/src/components/unitsList.js';__webpack_require__(88);var _react=__webpack_require__(2);var _react2=_interopRequireDefault(_react);\nvar _autobindDecorator=__webpack_require__(17);var _autobindDecorator2=_interopRequireDefault(_autobindDecorator);\nvar _pureRenderDecorator=__webpack_require__(20);var _pureRenderDecorator2=_interopRequireDefault(_pureRenderDecorator);\n\n\n__webpack_require__(617);\n\nvar _unit=__webpack_require__(40);var _unit2=_interopRequireDefault(_unit);\nvar _jquery=__webpack_require__(198);var _jquery2=_interopRequireDefault(_jquery);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var\n\n\nUnitsList=(0,_pureRenderDecorator2.default)(_class=(_temp=_class2=function(_React$Component){(0,_inherits3.default)(UnitsList,_React$Component);function UnitsList(){(0,_classCallCheck3.default)(this,UnitsList);return(0,_possibleConstructorReturn3.default)(this,(UnitsList.__proto__||(0,_getPrototypeOf2.default)(UnitsList)).apply(this,arguments));}(0,_createClass3.default)(UnitsList,[{key:'handleClick',value:function handleClick(\n\n\n\nname){\n_unit2.default.addUnit(name);\nthis.success();\n}},{key:'success',value:function success()\n{\nvar modal=_modal2.default.success({\ntitle:'温馨提示',\ncontent:'组件添加成功!'});\n\nsetTimeout(function(){\nmodal.destroy();\nif(screen.width<=800){\n(0,_jquery2.default)('.m-units-list').css('left','-200px');\n(0,_jquery2.default)('.mask').hide();\n}\n},1000);\n}},{key:'info',value:function info()\n{\n_modal2.default.info({\ntitle:'温馨提示',\ncontent:\n_react2.default.createElement('div',{__source:{fileName:_jsxFileName,lineNumber:37}},\n_react2.default.createElement('p',{__source:{fileName:_jsxFileName,lineNumber:38}},'\\u8BE5\\u529F\\u80FD\\u6682\\u672A\\u5F00\\u53D1\\uFF0C\\u656C\\u8BF7\\u671F\\u5F85')),\n\n\nonOk:function onOk(){\nif(screen.width<=800){\n(0,_jquery2.default)('.m-units-list').css('left','-200px');\n(0,_jquery2.default)('.mask').hide();\n}\n}});\n\n}},{key:'render',value:function render()\n{\nreturn(\n_react2.default.createElement('section',{className:'m-units-list f-fl',__source:{fileName:_jsxFileName,lineNumber:51}},\n_react2.default.createElement('ul',{__source:{fileName:_jsxFileName,lineNumber:52}},\n_react2.default.createElement('li',{onClick:this.handleClick.bind(this,'TITLE'),__source:{fileName:_jsxFileName,lineNumber:53}},_react2.default.createElement('i',{className:'iconfont icon-iconfonth',__source:{fileName:_jsxFileName,lineNumber:53}}),'\\u6807\\u9898'),\n_react2.default.createElement('li',{onClick:this.handleClick.bind(this,'IMAGE'),__source:{fileName:_jsxFileName,lineNumber:54}},_react2.default.createElement('i',{className:'iconfont icon-tupian',__source:{fileName:_jsxFileName,lineNumber:54}}),'\\u56FE\\u7247'),\n_react2.default.createElement('li',{onClick:this.handleClick.bind(this,'BUTTON'),__source:{fileName:_jsxFileName,lineNumber:55}},_react2.default.createElement('i',{className:'iconfont icon-anniu',__source:{fileName:_jsxFileName,lineNumber:55}}),'\\u6309\\u94AE'),\n_react2.default.createElement('li',{onClick:this.handleClick.bind(this,'TEXTBODY'),__source:{fileName:_jsxFileName,lineNumber:56}},_react2.default.createElement('i',{className:'iconfont icon-zhengwen',__source:{fileName:_jsxFileName,lineNumber:56}}),'\\u6B63\\u6587'),\n_react2.default.createElement('li',{onClick:this.handleClick.bind(this,'AUDIO'),__source:{fileName:_jsxFileName,lineNumber:57}},_react2.default.createElement('i',{className:'iconfont icon-yinpin',__source:{fileName:_jsxFileName,lineNumber:57}}),'\\u97F3\\u9891'),\n_react2.default.createElement('li',{onClick:this.handleClick.bind(this,'CODE'),__source:{fileName:_jsxFileName,lineNumber:58}},_react2.default.createElement('i',{className:'iconfont icon-daima',__source:{fileName:_jsxFileName,lineNumber:58}}),'jscss'),\n_react2.default.createElement('li',{onClick:this.info,__source:{fileName:_jsxFileName,lineNumber:59}},_react2.default.createElement('i',{className:'iconfont icon-x-rmvb',__source:{fileName:_jsxFileName,lineNumber:59}}),'\\u89C6\\u9891'),\n_react2.default.createElement('li',{onClick:this.info,__source:{fileName:_jsxFileName,lineNumber:60}},_react2.default.createElement('i',{className:'iconfont icon-tongji',__source:{fileName:_jsxFileName,lineNumber:60}}),'\\u7EDF\\u8BA1'))));\n\n\n\n}}]);return UnitsList;}(_react2.default.Component),_class2.propTypes={},_temp))||_class;exports.default=\n\n\nUnitsList;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQ1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL2NvbXBvbmVudHMvdW5pdHNMaXN0LmpzPzA0M2MiXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO09iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLFwiX19lc01vZHVsZVwiLHt2YWx1ZTp0cnVlfSk7dmFyIF9tb2RhbD1yZXF1aXJlKCdhbnRkL2xpYi9tb2RhbCcpO3ZhciBfbW9kYWwyPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX21vZGFsKTt2YXIgX2dldFByb3RvdHlwZU9mPXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvY29yZS1qcy9vYmplY3QvZ2V0LXByb3RvdHlwZS1vZicpO3ZhciBfZ2V0UHJvdG90eXBlT2YyPV9pbnRlcm9wUmVxdWlyZURlZmF1bHQoX2dldFByb3RvdHlwZU9mKTt2YXIgX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';Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(141);var _stringify2=_interopRequireDefault(_stringify);var _immutable=__webpack_require__(21);var _immutable2=_interopRequireDefault(_immutable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}\n\nvar unitsConfig=_immutable2.default.fromJS({\nMETA:{\ntype:'META',\nname:'META信息配置',\ntitle:'',\nkeywords:'',\ndesc:''},\n\nTITLE:{\ntype:'TITLE',\nname:'标题',\ntext:'',\nurl:'',\ncolor:'#000',\nfontSize:\"middle\",\ntextAlign:\"center\",\npadding:[0,0,0,0],\nmargin:[10,0,20,0]},\n\nIMAGE:{\ntype:'IMAGE',\nname:'图片',\naddress:'',\nurl:'',\nbgColor:'#fff',\npadding:[0,0,0,0],\nmargin:[10,0,20,0]},\n\nBUTTON:{\ntype:'BUTTON',\nname:'按钮',\naddress:'',\nurl:'',\ntxt:'',\nmargin:[\n0,30,20,30],\n\nbuttonStyle:\"yellowStyle\",\nbigRadius:true,\nstyle:'default'},\n\nTEXTBODY:{\ntype:'TEXTBODY',\nname:'正文',\ntext:'',\ntextColor:'#333',\nbgColor:'#fff',\nfontSize:\"small\",\ntextAlign:\"center\",\npadding:[0,0,0,0],\nmargin:[0,30,20,30],\nchangeLine:true,\nretract:true,\nbigLH:true,\nbigPD:true,\nnoUL:true,\nborderRadius:true},\n\nAUDIO:{\ntype:'AUDIO',\nname:'音频',\naddress:'',\nsize:'middle',\nposition:'topRight',\nbgColor:'#9160c3',\nloop:true,\nauto:true},\n\nCODE:{\ntype:'CODE',\nname:'JSCSS',\njs:'',\ncss:''}});\n\n\n\nvar initialState=_immutable2.default.fromJS([\n{\ntype:'META',\nname:'META信息配置',\ntitle:'',\nkeywords:'',\ndesc:'',\n\nfromType:''}]);\n\n\n\n\nfunction reducer(){var state=arguments.length>0&&arguments[0]!==undefined?arguments[0]:initialState;var action=arguments[1];\nvar newState=void 0,localData=void 0,tmp=void 0;\n\nif(state===initialState){\nlocalData=localStorage.getItem('config');\n!!localData&&(state=_immutable2.default.fromJS(JSON.parse(localData)));\n}\nswitch(action.type){\ncase'AddUnit':{\ntmp=state.push(unitsConfig.get(action.name));\nnewState=tmp.setIn([0,'fromType'],action.name);\nbreak;\n}\ncase'CopyUnit':{\ntmp=state.push(state.get(action.id));\nnewState=tmp.setIn([0,'fromType'],state.getIn([action.id,'type']));\nbreak;\n}\ncase'EditUnit':{\ntmp=state.setIn([action.id,action.prop],action.value);\nnewState=tmp.setIn([0,'fromType'],state.getIn([action.id,'type']));\nbreak;\n}\ncase'RemoveUnit':{\nvar type=state.getIn([action.id,'type']);\ntmp=state.splice(action.id,1);\nnewState=tmp.setIn([0,'fromType'],type);\nbreak;\n}\ncase'Clear':{\ntmp=initialState;\nnewState=tmp.setIn([0,'fromType'],'ALL');\nbreak;\n}\ncase'Insert':{\ntmp=_immutable2.default.fromJS(action.data);\nnewState=tmp.setIn([0,'fromType'],'ALL');\nbreak;\n}\ncase'MoveUnit':{var\nfid=action.fid,tid=action.tid;\nvar fitem=state.get(fid);\nif(fitem&&fid!=tid){\ntmp=state.splice(fid,1).splice(tid,0,fitem);\n}else{\ntmp=state;\n}\nnewState=tmp.setIn([0,'fromType'],'');\nbreak;\n}\ndefault:\nnewState=state;}\n\n\n\nlocalStorage.setItem('config',(0,_stringify2.default)(newState.toJS()));\nreturn newState;\n}exports.default=\n\nreducer;//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQ2LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vc3JjL3JlZHVjZXIvdW5pdC5qcz8wNWI3Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2Ugc3RyaWN0JztPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cyxcIl9fZXNNb2R1bGVcIix7dmFsdWU6dHJ1ZX0pO3ZhciBfc3RyaW5naWZ5PXJlcXVpcmUoJ2JhYmVsLXJ1bnRpbWUvY29yZS1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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=")},function(module,exports){eval("'use strict';\n\n/**\n * Constants.\n */\n\nvar errorMessage;\n\nerrorMessage = 'An argument without append, prepend, ' +\n 'or detach methods was given to `List';\n\n/**\n * Creates a new List: A linked list is a bit like an Array, but\n * knows nothing about how many items are in it, and knows only about its\n * first (`head`) and last (`tail`) items. Each item (e.g. `head`, `tail`,\n * &c.) knows which item comes before or after it (its more like the\n * implementation of the DOM in JavaScript).\n * @global\n * @private\n * @constructor\n * @class Represents an instance of List.\n */\n\nfunction List(/*items...*/) {\n if (arguments.length) {\n return List.from(arguments);\n }\n}\n\nvar ListPrototype;\n\nListPrototype = List.prototype;\n\n/**\n * Creates a new list from the arguments (each a list item) passed in.\n * @name List.of\n * @param {...ListItem} [items] - Zero or more items to attach.\n * @returns {list} - A new instance of List.\n */\n\nList.of = function (/*items...*/) {\n return List.from.call(this, arguments);\n};\n\n/**\n * Creates a new list from the given array-like object (each a list item)\n * passed in.\n * @name List.from\n * @param {ListItem[]} [items] - The items to append.\n * @returns {list} - A new instance of List.\n */\nList.from = function (items) {\n var list = new this(), length, iterator, item;\n\n if (items && (length = items.length)) {\n iterator = -1;\n\n while (++iterator < length) {\n item = items[iterator];\n\n if (item !== null && item !== undefined) {\n list.append(item);\n }\n }\n }\n\n return list;\n};\n\n/**\n * List#head\n * Default to `null`.\n */\nListPrototype.head = null;\n\n/**\n * List#tail\n * Default to `null`.\n */\nListPrototype.tail = null;\n\n/**\n * Returns the list's items as an array. This does *not* detach the items.\n * @name List#toArray\n * @returns {ListItem[]} - An array of (still attached) ListItems.\n */\nListPrototype.toArray = function () {\n var item = this.head,\n result = [];\n\n while (item) {\n result.push(item);\n item = item.next;\n }\n\n return result;\n};\n\n/**\n * Prepends the given item to the list: Item will be the new first item\n * (`head`).\n * @name List#prepend\n * @param {ListItem} item - The item to prepend.\n * @returns {ListItem} - An instance of ListItem (the given item).\n */\nListPrototype.prepend = function (item) {\n if (!item) {\n return false;\n }\n\n if (!item.append || !item.prepend || !item.detach) {\n throw new Error(errorMessage + '#prepend`.');\n }\n\n var self, head;\n\n // Cache self.\n self = this;\n\n // If self has a first item, defer prepend to the first items prepend\n // method, and return the result.\n head = self.head;\n\n if (head) {\n return head.prepend(item);\n }\n\n // ...otherwise, there is no `head` (or `tail`) item yet.\n\n // Detach the prependee.\n item.detach();\n\n // Set the prependees parent list to reference self.\n item.list = self;\n\n // Set self's first item to the prependee, and return the item.\n self.head = item;\n\n return item;\n};\n\n/**\n * Appends the given item to the list: Item will be the new last item (`tail`)\n * if the list had a first item, and its first item (`head`) otherwise.\n * @name List#append\n * @param {ListItem} item - The item to append.\n * @returns {ListItem} - An instance of ListItem (the given item).\n */\n\nListPrototype.append = function (item) {\n if (!item) {\n return false;\n }\n\n if (!item.append || !item.prepend || !item.detach) {\n throw new Error(errorMessage + '#append`.');\n }\n\n var self, head, tail;\n\n // Cache self.\n self = this;\n\n // If self has a last item, defer appending to the last items append\n // method, and return the result.\n tail = self.tail;\n\n if (tail) {\n return tail.append(item);\n }\n\n // If self has a first item, defer appending to the first items append\n // method, and return the result.\n head = self.head;\n\n if (head) {\n return head.append(item);\n }\n\n // ...otherwise, there is no `tail` or `head` item yet.\n\n // Detach the appendee.\n item.detach();\n\n // Set the appendees parent list to reference self.\n item.list = self;\n\n // Set self's first item to the appendee, and return the item.\n self.head = item;\n\n return item;\n};\n\n/**\n * Creates a new ListItem: A linked list item is a bit like DOM node:\n * It knows only about its \"parent\" (`list`), the item before it (`prev`),\n * and the item after it (`next`).\n * @global\n * @private\n * @constructor\n * @class Represents an instance of ListItem.\n */\n\nfunction ListItem() {}\n\nList.Item = ListItem;\n\nvar ListItemPrototype = ListItem.prototype;\n\nListItemPrototype.next = null;\n\nListItemPrototype.prev = null;\n\nListItemPrototype.list = null;\n\n/**\n * Detaches the item operated on from its parent list.\n * @name ListItem#detach\n * @returns {ListItem} - The item operated on.\n */\nListItemPrototype.detach = function () {\n // Cache self, the parent list, and the previous and next items.\n var self = this,\n list = self.list,\n prev = self.prev,\n next = self.next;\n\n // If the item is already detached, return self.\n if (!list) {\n return self;\n }\n\n // If self is the last item in the parent list, link the lists last item\n // to the previous item.\n if (list.tail === self) {\n list.tail = prev;\n }\n\n // If self is the first item in the parent list, link the lists first item\n // to the next item.\n if (list.head === self) {\n list.head = next;\n }\n\n // If both the last and first items in the parent list are the same,\n // remove the link to the last item.\n if (list.tail === list.head) {\n list.tail = null;\n }\n\n // If a previous item exists, link its next item to selfs next item.\n if (prev) {\n prev.next = next;\n }\n\n // If a next item exists, link its previous item to selfs previous item.\n if (next) {\n next.prev = prev;\n }\n\n // Remove links from self to both the next and previous items, and to the\n // parent list.\n self.prev = self.next = self.list = null;\n\n // Return self.\n return self;\n};\n\n/**\n * Prepends the given item *before* the item operated on.\n * @name ListItem#prepend\n * @param {ListItem} item - The item to prepend.\n * @returns {ListItem} - The item operated on, or false when that item is not\n * attached.\n */\nListItemPrototype.prepend = function (item) {\n if (!item || !item.append || !item.prepend || !item.detach) {\n throw new Error(errorMessage + 'Item#prepend`.');\n }\n\n // Cache self, the parent list, and the previous item.\n var self = this,\n list = self.list,\n prev = self.prev;\n\n // If self is detached, return false.\n if (!list) {\n return false;\n }\n\n // Detach the prependee.\n item.detach();\n\n // If self has a previous item...\n if (prev) {\n // ...link the prependees previous item, to selfs previous item.\n item.prev = prev;\n\n // ...link the previous items next item, to self.\n prev.next = item;\n }\n\n // Set the prependees next item to self.\n item.next = self;\n\n // Set the prependees parent list to selfs parent list.\n item.list = list;\n\n // Set the previous item of self to the prependee.\n self.prev = item;\n\n // If self is the first item in the parent list, link the lists first item\n // to the prependee.\n if (self === list.head) {\n list.head = item;\n }\n\n // If the the parent list has no last item, link the lists last item to\n // self.\n if (!list.tail) {\n list.tail = self;\n }\n\n // Return the prependee.\n return item;\n};\n\n/**\n * Appends the given item *after* the item operated on.\n * @name ListItem#append\n * @param {ListItem} item - The item to append.\n * @returns {ListItem} - The item operated on, or false when that item is not\n * attached.\n */\nListItemPrototype.append = function (item) {\n // If item is falsey, return false.\n if (!item || !item.append || !item.prepend || !item.detach) {\n throw new Error(errorMessage + 'Item#append`.');\n }\n\n // Cache self, the parent list, and the next item.\n var self = this,\n list = self.list,\n next = self.next;\n\n // If self is detached, return false.\n if (!list) {\n return false;\n }\n\n // Detach the appendee.\n item.detach();\n\n // If self has a next item...\n if (next) {\n // ...link the appendees next item, to selfs next item.\n item.next = next;\n\n // ...link the next items previous item, to the appendee.\n next.prev = item;\n }\n\n // Set the appendees previous item to self.\n item.prev = self;\n\n // Set the appendees parent list to selfs parent list.\n item.list = list;\n\n // Set the next item of self to the appendee.\n self.next = item;\n\n // If the the parent list has no last item or if self is the parent lists\n // last item, link the lists last item to the appendee.\n if (self === list.tail || !list.tail) {\n list.tail = item;\n }\n\n // Return the appendee.\n return item;\n};\n\n/**\n * Expose `List`.\n */\n\nmodule.exports = List;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjQ3LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vfi9saW5rZWQtbGlzdC9fc291cmNlL2xpbmtlZC1saXN0LmpzPzhhYjciXSwic291cmNlc0NvbnRlbnQiOlsiJ3VzZSBzdHJpY3QnO1xuXG4vKipcbiAqIENvbnN0YW50cy5cbiAqL1xuXG52YXIgZXJyb3JNZXNzYWdlO1xuXG5lcnJvck1lc3NhZ2UgPSAnQW4gYXJndW1lbnQgd2l0aG91dCBhcHBlbmQsIHByZXBlbmQsICcgK1xuICAgICdvciBkZXRhY2ggbWV0aG9kcyB3YXMgZ2l2ZW4gdG8gYExpc3QnO1xuXG4vKipcbiAqIENyZWF0ZXMgYSBuZXcgTGlzdDogQSBsaW5rZWQgbGlzdCBpcyBhIGJpdCBsaWtlIGFuIEFycmF5LCBidXRcbiAqIGtub3dzIG5vdGhpbmcgYWJvdXQgaG93IG1hbnkgaXRlbXMgYXJlIGluIGl0LCBhbmQga25vd3Mgb25seSBhYm91dCBpdHNcbiAqIGZpcnN0IChgaGVhZGApIGFuZCBsYXN0IChgdGFpbGApIGl0ZW1zLiBFYWNoIGl0ZW0gKGUuZy4gYGhlYWRgLCBgdGFpbGAsXG4gKiAmYy4pIGtub3dzIHdoaWNoIGl0ZW0gY29tZXMgYmVmb3JlIG9yIGFmdGVyIGl0IChpdHMgbW9yZSBsaWtlIHRoZVxuIC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NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9"); diff --git a/server/common/upload.js b/server/common/upload.js index 76f6de7..0ba5a75 100755 --- a/server/common/upload.js +++ b/server/common/upload.js @@ -33,7 +33,7 @@ function getTmpFilePath(filename, mimetype) { //检测文件类型: img / doc / page / media / unknown function getFileType(filename) { var name = filename.toLowerCase(); - return /\.(?:png|gif|jpg|jpeg|svg)$/.test(name) ? "img" : /\.(?:mp3|mid|mp4|wav)$/.test(name) ? "media" : /\.(?:txt|doc|docx|md)$/.test(name) ? "doc" : /\.(?:js|css|json|html|htm)$/.test(name) ? "page" : "unknown"; + return /\.(?:png|gif|jpg|jpeg|svg)$/.test(name) ? "img" : /\.(?:mp3|mid|mp4|wav|wma)$/.test(name) ? "media" : /\.(?:txt|doc|docx|md)$/.test(name) ? "doc" : /\.(?:js|css|json|html|htm)$/.test(name) ? "page" : "unknown"; } //不同类型文件最大尺寸限制,单位 M @@ -91,7 +91,6 @@ module.exports = function(req, res) { lossless: req.query.lossless || "", //是否无损压缩png waterMark: req.query.waterMark || "" //是否为图片添加水印 }; - //创建上传组件 var busboy = new Busboy({ headers: req.headers @@ -106,22 +105,29 @@ module.exports = function(req, res) { maxLen = (maxLenForType[type] || 1), overflow = false; //检测文件名,只允许多媒体类型上传 - if (type == "unknown" || !filename) { - if (filename) { - ret[fieldname] = { - ok: false, - err: 1, - des: "错误的文件类型(" + filename.replace(/^.+\./, ".") + ")." - }; - } else { - ret[fieldname] = { - ok: false, - err: 2, - des: "nothing here." - }; - } - file.resume(); - return; + if(!filename){ + ret[fieldname] = { + ok: false, + err: 1, + des: "nothing here." + }; + return taskComplete(res, ret); + } + if(type == "unknown"){ + ret[fieldname] = { + ok: false, + err: 2, + des: "不支持的文件类型(" + filename.replace(/^.+\./, ".") + ")." + }; + return taskComplete(res, ret); + } + if(type != req.query.type){ + ret[fieldname] = { + ok: false, + err: 3, + des: "错误的文件类型(" + filename.replace(/^.+\./, ".") + ")." + }; + return taskComplete(res, ret); } //文件传输中 file.on('data', function(data) { diff --git a/src/components/content.js b/src/components/content.js index 1fa7310..bc3ce11 100755 --- a/src/components/content.js +++ b/src/components/content.js @@ -169,16 +169,16 @@ class Content extends React.Component { const { errTip, visible, confirmLoading } = this.state; const uploadProps = { name: 'file', - action: '/upload', + action: '/upload?type=page', accept: '.json', headers: { authorization: 'authorization-text', }, onChange: this.handleChange.bind(this) }; - if(screen.width < 800){ - uploadProps.accept = '.json,.txt,.js'; - } + // if(screen.width < 800){ + // uploadProps.accept = '.json,.txt,.js'; + // } return (