{"version":3,"sources":["webpack:///./node_modules/antd-mobile/lib/action-sheet/index.js","webpack:///./node_modules/antd-mobile/lib/style/index.js","webpack:///./node_modules/antd-mobile/lib/action-sheet/style/index.js","webpack:///./node_modules/antd-mobile/lib/badge/style/index.js","webpack:///./node_modules/antd-mobile/lib/_util/getDataAttr.js","webpack:///./node_modules/antd-mobile/lib/badge/index.js"],"names":["Object","defineProperty","exports","value","_defineProperty3","_interopRequireDefault","_extends3","_classnames3","React","_interopRequireWildcard","ReactDOM","_rmcDialog2","_rmcFeedback2","_getDataAttr2","_badge2","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","noop","queue","createActionSheet","flag","config","callback","props","prefixCls","cancelButtonText","className","transitionName","maskTransitionName","_props$maskClosable","maskClosable","undefined","div","document","createElement","close","unmountComponentAtNode","parentNode","removeChild","index","indexOf","splice","cb","rowIndex","arguments","length","res","then","body","appendChild","push","title","message","options","destructiveButtonIndex","cancelButtonIndex","_props$badges","badges","titleMsg","children","mode","normalOptions","badgesMap","forEach","element","role","map","item","_classnames","itemProps","onClick","bContent","bItem","activeClassName","multipleLine","Array","isArray","createList","icon","ii","ind","rootCls","render","visible","footer","onClose","wrapProps","showActionSheetWithOptions","showShareActionSheetWithOptions","q","module","keys","reduce","prev","substr","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames4","__rest","s","e","t","p","getOwnPropertySymbols","i","Badge","_React$Component","this","__proto__","getPrototypeOf","apply","_classnames2","_a","text","size","overflowCount","dot","corner","hot","restProps","scrollNumberCls","badgeCls","Component","defaultProps"],"mappings":"0FAEAA,OAAOC,eAAeC,EAAS,aAAc,CACzCC,OAAO,IAGX,IAEIC,EAAmBC,EAFA,EAAQ,IAM3BC,EAAYD,EAFA,EAAQ,IAMpBE,EAAeF,EAFA,EAAQ,IAMvBG,EAAQC,EAFC,EAAQ,IAMjBC,EAAWD,EAFC,EAAQ,IAMpBE,EAAcN,EAFD,EAAQ,MAMrBO,EAAgBP,EAFD,EAAQ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wBAAyB+F,GAAmB,UAATH,GAAmBH,IAClc,OAAO9G,EAAM+B,cACT,OACA,CAAER,UAAWiG,GACbhE,GACCwD,GAAQG,IAETnH,EAAM+B,cACF,OACA,EAAIjC,EAAmB,SAAG,CAAEyB,UAAWgG,GAAmBD,GAC1DN,QAKTR,EA/CC,CAgDVxG,EAAMyH,WAER/H,EAAiB,QAAI8G,EAErBA,EAAMkB,aAAe,CACjBrG,UAAW,WACX4F,KAAM,QACNC,cAAe,GACfC,KAAK,EACLC,QAAQ,GAEZ7B,EAAO7F,QAAUA,EAAiB","file":"npm.antd-mobile.c920b4ddeb9b68365139.js","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _reactDom = require('react-dom');\n\nvar ReactDOM = _interopRequireWildcard(_reactDom);\n\nvar _rmcDialog = require('rmc-dialog');\n\nvar _rmcDialog2 = _interopRequireDefault(_rmcDialog);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _badge = require('../badge');\n\nvar _badge2 = _interopRequireDefault(_badge);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar NORMAL = 'NORMAL'; /* tslint:disable:jsx-no-multiline-js */\n\nvar SHARE = 'SHARE';\n// tslint:disable-next-line:no-empty\nfunction noop() {}\nvar queue = [];\nfunction createActionSheet(flag, config, callback) {\n var props = (0, _extends3['default'])({ prefixCls: 'am-action-sheet', cancelButtonText: '取消' }, config);\n var prefixCls = props.prefixCls,\n className = props.className,\n transitionName = props.transitionName,\n maskTransitionName = props.maskTransitionName,\n _props$maskClosable = props.maskClosable,\n maskClosable = _props$maskClosable === undefined ? true : _props$maskClosable;\n\n var div = document.createElement('div');\n document.body.appendChild(div);\n queue.push(close);\n function close() {\n if (div) {\n ReactDOM.unmountComponentAtNode(div);\n if (div.parentNode) {\n div.parentNode.removeChild(div);\n }\n var index = queue.indexOf(close);\n if (index !== -1) {\n queue.splice(index, 1);\n }\n }\n }\n function cb(index) {\n var rowIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n var res = callback(index, rowIndex);\n if (res && res.then) {\n res.then(function () {\n close();\n });\n } else {\n close();\n }\n }\n var title = props.title,\n message = props.message,\n options = props.options,\n destructiveButtonIndex = props.destructiveButtonIndex,\n cancelButtonIndex = props.cancelButtonIndex,\n cancelButtonText = props.cancelButtonText,\n _props$badges = props.badges,\n badges = _props$badges === undefined ? [] : _props$badges;\n\n var titleMsg = [title ? React.createElement(\n 'h3',\n { key: '0', className: prefixCls + '-title' },\n title\n ) : null, message ? React.createElement(\n 'div',\n { key: '1', className: prefixCls + '-message' },\n message\n ) : null];\n var children = null;\n var mode = 'normal';\n switch (flag) {\n case NORMAL:\n mode = 'normal';\n var normalOptions = options;\n var badgesMap = {};\n if (badges && badges.length > 0) {\n badges.forEach(function (element) {\n if (element.index >= 0) {\n badgesMap[element.index] = React.createElement(_badge2['default'], element);\n }\n });\n }\n children = React.createElement(\n 'div',\n (0, _getDataAttr2['default'])(props),\n titleMsg,\n React.createElement(\n 'div',\n { className: prefixCls + '-button-list', role: 'group' },\n normalOptions.map(function (item, index) {\n var _classnames;\n\n var itemProps = {\n className: (0, _classnames3['default'])(prefixCls + '-button-list-item', (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-destructive-button', destructiveButtonIndex === index), (0, _defineProperty3['default'])(_classnames, prefixCls + '-cancel-button', cancelButtonIndex === index), _classnames)),\n onClick: function onClick() {\n return cb(index);\n },\n role: 'button'\n };\n var bContent = React.createElement(\n 'div',\n itemProps,\n item\n );\n // 仅在设置徽标的情况下修改dom结构\n if (badgesMap[index]) {\n bContent = React.createElement(\n 'div',\n (0, _extends3['default'])({}, itemProps, { className: itemProps.className + ' ' + prefixCls + '-button-list-badge' }),\n React.createElement(\n 'span',\n { className: prefixCls + '-button-list-item-content' },\n item\n ),\n badgesMap[index]\n );\n }\n var bItem = React.createElement(\n _rmcFeedback2['default'],\n { key: index, activeClassName: prefixCls + '-button-list-item-active' },\n bContent\n );\n if (cancelButtonIndex === index || destructiveButtonIndex === index) {\n bItem = React.createElement(\n _rmcFeedback2['default'],\n { key: index, activeClassName: prefixCls + '-button-list-item-active' },\n React.createElement(\n 'div',\n itemProps,\n item,\n cancelButtonIndex === index ? React.createElement('span', { className: prefixCls + '-cancel-button-mask' }) : null\n )\n );\n }\n return bItem;\n })\n )\n );\n break;\n case SHARE:\n mode = 'share';\n var multipleLine = options.length && Array.isArray(options[0]) || false;\n var createList = function createList(item, index) {\n var rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n return React.createElement(\n 'div',\n { className: prefixCls + '-share-list-item', role: 'button', key: index, onClick: function onClick() {\n return cb(index, rowIndex);\n } },\n React.createElement(\n 'div',\n { className: prefixCls + '-share-list-item-icon' },\n item.icon\n ),\n React.createElement(\n 'div',\n { className: prefixCls + '-share-list-item-title' },\n item.title\n )\n );\n };\n children = React.createElement(\n 'div',\n (0, _getDataAttr2['default'])(props),\n titleMsg,\n React.createElement(\n 'div',\n { className: prefixCls + '-share' },\n multipleLine ? options.map(function (item, index) {\n return React.createElement(\n 'div',\n { key: index, className: prefixCls + '-share-list' },\n item.map(function (ii, ind) {\n return createList(ii, ind, index);\n })\n );\n }) : React.createElement(\n 'div',\n { className: prefixCls + '-share-list' },\n options.map(function (item, index) {\n return createList(item, index);\n })\n ),\n React.createElement(\n _rmcFeedback2['default'],\n { activeClassName: prefixCls + '-share-cancel-button-active' },\n React.createElement(\n 'div',\n { className: prefixCls + '-share-cancel-button', role: 'button', onClick: function onClick() {\n return cb(-1);\n } },\n cancelButtonText\n )\n )\n )\n );\n break;\n default:\n break;\n }\n var rootCls = (0, _classnames3['default'])(prefixCls + '-' + mode, className);\n ReactDOM.render(React.createElement(\n _rmcDialog2['default'],\n { visible: true, title: '', footer: '', prefixCls: prefixCls, className: rootCls, transitionName: transitionName || 'am-slide-up', maskTransitionName: maskTransitionName || 'am-fade', onClose: function onClose() {\n return cb(cancelButtonIndex || -1);\n }, maskClosable: maskClosable, wrapProps: props.wrapProps || {} },\n children\n ), div);\n return {\n close: close\n };\n}\nexports['default'] = {\n showActionSheetWithOptions: function showActionSheetWithOptions(config) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n\n createActionSheet(NORMAL, config, callback);\n },\n showShareActionSheetWithOptions: function showShareActionSheetWithOptions(config) {\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n\n createActionSheet(SHARE, config, callback);\n },\n close: function close() {\n queue.forEach(function (q) {\n return q();\n });\n }\n};\nmodule.exports = exports['default'];","'use strict';\n\nrequire('normalize.css/normalize.css');\n\nrequire('./index.less');","'use strict';\n\nrequire('../../style/');\n\nrequire('../../badge/style/');\n\nrequire('./index.less');","'use strict';\n\nrequire('../../style/');\n\nrequire('./index.less');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames3 = require('classnames');\n\nvar _classnames4 = _interopRequireDefault(_classnames3);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }return t;\n};\n\nvar Badge = function (_React$Component) {\n (0, _inherits3['default'])(Badge, _React$Component);\n\n function Badge() {\n (0, _classCallCheck3['default'])(this, Badge);\n return (0, _possibleConstructorReturn3['default'])(this, (Badge.__proto__ || Object.getPrototypeOf(Badge)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Badge, [{\n key: 'render',\n value: function render() {\n var _classnames, _classnames2;\n\n // tslint:disable:prefer-const\n var _a = this.props,\n className = _a.className,\n prefixCls = _a.prefixCls,\n children = _a.children,\n text = _a.text,\n size = _a.size,\n overflowCount = _a.overflowCount,\n dot = _a.dot,\n corner = _a.corner,\n hot = _a.hot,\n restProps = __rest(_a, [\"className\", \"prefixCls\", \"children\", \"text\", \"size\", \"overflowCount\", \"dot\", \"corner\", \"hot\"]);\n overflowCount = overflowCount;\n text = typeof text === 'number' && text > overflowCount ? overflowCount + '+' : text;\n // dot mode don't need text\n if (dot) {\n text = '';\n }\n var scrollNumberCls = (0, _classnames4['default'])((_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-dot', dot), (0, _defineProperty3['default'])(_classnames, prefixCls + '-dot-large', dot && size === 'large'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-text', !dot && !corner), (0, _defineProperty3['default'])(_classnames, prefixCls + '-corner', corner), (0, _defineProperty3['default'])(_classnames, prefixCls + '-corner-large', corner && size === 'large'), _classnames));\n var badgeCls = (0, _classnames4['default'])(prefixCls, className, (_classnames2 = {}, (0, _defineProperty3['default'])(_classnames2, prefixCls + '-not-a-wrapper', !children), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-corner-wrapper', corner), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-hot', !!hot), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-corner-wrapper-large', corner && size === 'large'), _classnames2));\n return React.createElement(\n 'span',\n { className: badgeCls },\n children,\n (text || dot) &&\n // tslint:disable-next-line:jsx-no-multiline-js\n React.createElement(\n 'sup',\n (0, _extends3['default'])({ className: scrollNumberCls }, restProps),\n text\n )\n );\n }\n }]);\n return Badge;\n}(React.Component);\n\nexports['default'] = Badge;\n\nBadge.defaultProps = {\n prefixCls: 'am-badge',\n size: 'small',\n overflowCount: 99,\n dot: false,\n corner: false\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}